From 79f3ca3074b8f1cf93031c289683582797b21370 Mon Sep 17 00:00:00 2001 From: Daniel Meltzer Date: Mon, 6 Feb 2017 20:04:36 -0600 Subject: [PATCH] Modify the jquery that fires select2 to prevent it being run twice on the importer vue select2 (which is created separately). (#3276) --- public/assets/js/all.js | 100 +++++++++--------- public/assets/js/all.js.map | 2 +- .../{all-0c172586e9.js => all-af13f4d46c.js} | 100 +++++++++--------- public/build/assets/js/all.js.map | 2 +- public/build/rev-manifest.json | 2 +- resources/assets/js/snipeit.js | 2 +- resources/assets/js/vue-dist.js | 98 ++++++++--------- 7 files changed, 153 insertions(+), 153 deletions(-) rename public/build/assets/js/{all-0c172586e9.js => all-af13f4d46c.js} (97%) diff --git a/public/assets/js/all.js b/public/assets/js/all.js index 46f2e03b92..0e6faddf80 100644 --- a/public/assets/js/all.js +++ b/public/assets/js/all.js @@ -1884,15 +1884,15 @@ eval("/*\r\n\tMIT License http://www.opensource.org/licenses/mit-license.php\r\n /***/ }, /* 1 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { -eval("module.exports = function normalizeComponent (\n rawScriptExports,\n compiledTemplate,\n scopeId,\n cssModules\n) {\n var esModule\n var scriptExports = rawScriptExports = rawScriptExports || {}\n\n // ES6 modules interop\n var type = typeof rawScriptExports.default\n if (type === 'object' || type === 'function') {\n esModule = rawScriptExports\n scriptExports = rawScriptExports.default\n }\n\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (compiledTemplate) {\n options.render = compiledTemplate.render\n options.staticRenderFns = compiledTemplate.staticRenderFns\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = scopeId\n }\n\n // inject cssModules\n if (cssModules) {\n var computed = options.computed || (options.computed = {})\n Object.keys(cssModules).forEach(function (key) {\n var module = cssModules[key]\n computed[key] = function () { return module }\n })\n }\n\n return {\n esModule: esModule,\n exports: scriptExports,\n options: options\n }\n}\n//# sourceMappingURL=data:application/json;charset=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0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOyIsInNvdXJjZVJvb3QiOiIifQ=="); +eval("/* WEBPACK VAR INJECTION */(function(process) {module.exports = function normalizeComponent (\n name,\n scriptExports,\n compiledTemplate,\n scopeId,\n cssModules\n) {\n scriptExports = scriptExports || {}\n\n // ES6 modules interop\n var type = typeof scriptExports.default\n if (type === 'object' || type === 'function') {\n // check named exports\n if (process.env.NODE_ENV !== 'production') {\n if (Object.keys(scriptExports).some(function (key) {\n return key !== 'default' && key !== '__esModule'\n })) {\n console.error('named exports are not supported in *.vue files.')\n }\n }\n scriptExports = scriptExports.default\n }\n\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // default name option based on filename\n if (options.name == null) {\n options.name = name\n }\n\n // render functions\n if (compiledTemplate) {\n options.render = compiledTemplate.render\n options.staticRenderFns = compiledTemplate.staticRenderFns\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = scopeId\n }\n\n // inject cssModules\n if (cssModules) {\n var computed = options.computed || (options.computed = {})\n Object.keys(cssModules).forEach(function (key) {\n var module = cssModules[key]\n computed[key] = function () { return module }\n })\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(30)))//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMS5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL34vdnVlLWxvYWRlci9saWIvY29tcG9uZW50LW5vcm1hbGl6ZXIuanM/ZDRmMyJdLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IGZ1bmN0aW9uIG5vcm1hbGl6ZUNvbXBvbmVudCAoXG4gIG5hbWUsXG4gIHNjcmlwdEV4cG9ydHMsXG4g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Q0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0="); /***/ }, /* 2 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { -eval("/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n Modified by Evan You @yyx990803\n*/\n\nvar hasDocument = typeof document !== 'undefined'\n\nif (typeof DEBUG !== 'undefined' && DEBUG) {\n if (!hasDocument) {\n throw new Error(\n 'vue-style-loader cannot be used in a non-browser environment. ' +\n \"Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.\"\n ) }\n}\n\nvar listToStyles = __webpack_require__(47)\n\n/*\ntype StyleObject = {\n id: number;\n parts: Array\n}\n\ntype StyleObjectPart = {\n css: string;\n media: string;\n sourceMap: ?string\n}\n*/\n\nvar stylesInDom = {/*\n [id: number]: {\n id: number,\n refs: number,\n parts: Array<(obj?: StyleObjectPart) => void>\n }\n*/}\n\nvar head = hasDocument && (document.head || document.getElementsByTagName('head')[0])\nvar singletonElement = null\nvar singletonCounter = 0\nvar isProduction = false\nvar noop = function () {}\n\n// Force single-tag solution on IE6-9, which has a hard limit on the # of \\n\\n\\n\\n\\n\"],\"sourceRoot\":\"webpack://\"}]);\n\n// exports\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMTkuanMiLCJzb3VyY2VzIjpbIndlYnBhY2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FxcXCI+XFxuICAgICAgICAgICAgPGRpdiBjbGFzcz1cXFwicGFuZWwtaGVhZGluZ1xcXCI+XFxuICAgICAgICAgICAgICAgIDxkaXYgc3R5bGU9XFxcImRpc3BsYXk6IGZsZXg7IGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjsgYWxpZ24taXRlbXM6IGNlbnRlcjtcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgPHNwYW4+XFxuICAgICAgICAgICAgICAgICAgICAgICAgT0F1dGggQ2xpZW50c1xcbiAgICAgICAgICAgICAgICAgICAgPC9zcGFuPlxcblxcbiAgICAgICAgICAgICAgICAgICAgPGEgY2xhc3M9XFxcImFjdGlvbi1saW5rXFxcIiBAY2xpY2s9XFxcInNob3dDcmVhdGVDbGllbnRGb3JtXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICBDcmVhdGUgTmV3IENsaWVudFxcbiAgICAgICAgICAgICAgICAgICAgPC9hPlxcbiAgICAgICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgICAgICA8L2Rpdj5cXG5cXG4gICAgICAgICAgICA8ZGl2IGNsYXNzPVxcXCJwYW5lbC1ib2R5XFxcIj5cXG4gICAgICAgICAgICAgICAgPCEtLSBDdXJyZW50IENsaWVudHMgLS0+XFxuICAgICAgICAgICAgICAgIDxwIGNsYXNzPVxcXCJtLWItbm9uZVxcXCIgdi1pZj1cXFwiY2xpZW50cy5sZW5ndGggPT09IDBcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgWW91IGhhdmUgbm90IGNyZWF0ZWQgYW55IE9BdXRoIGNsaWVudHMuXFxuICAgICAgICAgICAgICAgIDwvcD5cXG5cXG4gICAgICAgICAgICAgICAgPHRhYmxlIGNsYXNzPVxcXCJ0YWJsZSB0YWJsZS1ib3JkZXJsZXNzIG0tYi1ub25lXFxcIiB2LWlmPVxcXCJjbGllbnRzLmxlbmd0aCA+IDBcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgPHRoZWFkPlxcbiAgICAgICAgICAgICAgICAgICAgICAgIDx0cj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRoPkNsaWVudCBJRDwvdGg+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0aD5OYW1lPC90aD5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRoPlNlY3JldDwvdGg+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0aD48L3RoPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGg+PC90aD5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8L3RyPlxcbiAgICAgICAgICAgICAgICAgICAgPC90aGVhZD5cXG5cXG4gICAgICAgICAgICAgICAgICAgIDx0Ym9keT5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8dHIgdi1mb3I9XFxcImNsaWVudCBpbiBjbGllbnRzXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPCEtLSBJRCAtLT5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkIHN0eWxlPVxcXCJ2ZXJ0aWNhbC1hbGlnbjogbWlkZGxlO1xcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7eyBjbGllbnQuaWQgfX1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD5cXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPCEtLSBOYW1lIC0tPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQgc3R5bGU9XFxcInZlcnRpY2FsLWFsaWduOiBtaWRkbGU7XFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHt7IGNsaWVudC5uYW1lIH19XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+XFxuXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwhLS0gU2VjcmV0IC0tPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQgc3R5bGU9XFxcInZlcnRpY2FsLWFsaWduOiBtaWRkbGU7XFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxjb2RlPnt7IGNsaWVudC5zZWNyZXQgfX08L2NvZGU+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+XFxuXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwhLS0gRWRpdCBCdXR0b24gLS0+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZCBzdHlsZT1cXFwidmVydGljYWwtYWxpZ246IG1pZGRsZTtcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGEgY2xhc3M9XFxcImFjdGlvbi1saW5rXFxcIiBAY2xpY2s9XFxcImVkaXQoY2xpZW50KVxcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgRWRpdFxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9hPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPlxcblxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8IS0tIERlbGV0ZSBCdXR0b24gLS0+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZCBzdHlsZT1cXFwidmVydGljYWwtYWxpZ246IG1pZGRsZTtcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGEgY2xhc3M9XFxcImFjdGlvbi1saW5rIHRleHQtZGFuZ2VyXFxcIiBAY2xpY2s9XFxcImRlc3Ryb3koY2xpZW50KVxcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgRGVsZXRlXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2E+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+XFxuICAgICAgICAgICAgICAgICAgICAgICAgPC90cj5cXG4gICAgICAgICAgICAgICAgICAgIDwvdGJvZHk+XFxuICAgICAgICAgICAgICAgIDwvdGFibGU+XFxuICAgICAgICAgICAgPC9kaXY+XFxuICAgICAgICA8L2Rpdj5cXG5cXG4gICAgICAgIDwhLS0gQ3JlYXRlIENsaWVudCBNb2RhbCAtLT5cXG4gICAgICAgIDxkaXYgY2xhc3M9XFxcIm1vZGFsIGZhZGVcXFwiIGlkPVxcXCJtb2RhbC1jcmVhdGUtY2xpZW50XFxcIiB0YWJpbmRleD1cXFwiLTFcXFwiIHJvbGU9XFxcImRpYWxvZ1xcXCI+XFxuICAgICAgICAgICAgPGRpdiBjbGFzcz1cXFwibW9kYWwtZGlhbG9nXFxcIj5cXG4gICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cXFwibW9kYWwtY29udGVudFxcXCI+XFxuICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVxcXCJtb2RhbC1oZWFkZXJcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgIDxidXR0b24gdHlwZT1cXFwiYnV0dG9uIFxcXCIgY2xhc3M9XFxcImNsb3NlXFxcIiBkYXRhLWRpc21pc3M9XFxcIm1vZGFsXFxcIiBhcmlhLWhpZGRlbj1cXFwidHJ1ZVxcXCI+JnRpbWVzOzwvYnV0dG9uPlxcblxcbiAgICAgICAgICAgICAgICAgICAgICAgIDxoNCBjbGFzcz1cXFwibW9kYWwtdGl0bGVcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBDcmVhdGUgQ2xpZW50XFxuICAgICAgICAgICAgICAgICAgICAgICAgPC9oND5cXG4gICAgICAgICAgICAgICAgICAgIDwvZGl2PlxcblxcbiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cXFwibW9kYWwtYm9keVxcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgPCEtLSBGb3JtIEVycm9ycyAtLT5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVxcXCJhbGVydCBhbGVydC1kYW5nZXJcXFwiIHYtaWY9XFxcImNyZWF0ZUZvcm0uZXJyb3JzLmxlbmd0aCA+IDBcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cD48c3Ryb25nPldob29wcyE8L3N0cm9uZz4gU29tZXRoaW5nIHdlbnQgd3JvbmchPC9wPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8YnI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx1bD5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxsaSB2LWZvcj1cXFwiZXJyb3IgaW4gY3JlYXRlRm9ybS5lcnJvcnNcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHt7IGVycm9yIH19XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2xpPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3VsPlxcbiAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxcblxcbiAgICAgICAgICAgICAgICAgICAgICAgIDwhLS0gQ3JlYXRlIENsaWVudCBGb3JtIC0tPlxcbiAgICAgICAgICAgICAgICAgICAgICAgIDxmb3JtIGNsYXNzPVxcXCJmb3JtLWhvcml6b250YWxcXFwiIHJvbGU9XFxcImZvcm1cXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8IS0tIE5hbWUgLS0+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XFxcImZvcm0tZ3JvdXBcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGxhYmVsIGNsYXNzPVxcXCJjb2wtbWQtMyBjb250cm9sLWxhYmVsXFxcIj5OYW1lPC9sYWJlbD5cXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XFxcImNvbC1tZC03XFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8aW5wdXQgaWQ9XFxcImNyZWF0ZS1jbGllbnQtbmFtZVxcXCIgdHlwZT1cXFwidGV4dFxcXCIgY2xhc3M9XFxcImZvcm0tY29udHJvbFxcXCJcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQGtleXVwLmVudGVyPVxcXCJzdG9yZVxcXCIgdi1tb2RlbD1cXFwiY3JlYXRlRm9ybS5uYW1lXFxcIj5cXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8c3BhbiBjbGFzcz1cXFwiaGVscC1ibG9ja1xcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFNvbWV0aGluZyB5b3VyIHVzZXJzIHdpbGwgcmVjb2duaXplIGFuZCB0cnVzdC5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3NwYW4+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XFxuXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwhLS0gUmVkaXJlY3QgVVJMIC0tPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVxcXCJmb3JtLWdyb3VwXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxsYWJlbCBjbGFzcz1cXFwiY29sLW1kLTMgY29udHJvbC1sYWJlbFxcXCI+UmVkaXJlY3QgVVJMPC9sYWJlbD5cXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XFxcImNvbC1tZC03XFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8aW5wdXQgdHlwZT1cXFwidGV4dFxcXCIgY2xhc3M9XFxcImZvcm0tY29udHJvbFxcXCIgbmFtZT1cXFwicmVkaXJlY3RcXFwiXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIEBrZXl1cC5lbnRlcj1cXFwic3RvcmVcXFwiIHYtbW9kZWw9XFxcImNyZWF0ZUZvcm0ucmVkaXJlY3RcXFwiPlxcblxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzcGFuIGNsYXNzPVxcXCJoZWxwLWJsb2NrXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgWW91ciBhcHBsaWNhdGlvbidzIGF1dGhvcml6YXRpb24gY2FsbGJhY2sgVVJMLlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvc3Bhbj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8L2Zvcm0+XFxuICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cXG5cXG4gICAgICAgICAgICAgICAgICAgIDwhLS0gTW9kYWwgQWN0aW9ucyAtLT5cXG4gICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XFxcIm1vZGFsLWZvb3RlclxcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgPGJ1dHRvbiB0eXBlPVxcXCJidXR0b25cXFwiIGNsYXNzPVxcXCJidG4gYnRuLWRlZmF1bHRcXFwiIGRhdGEtZGlzbWlzcz1cXFwibW9kYWxcXFwiPkNsb3NlPC9idXR0b24+XFxuXFxuICAgICAgICAgICAgICAgICAgICAgICAgPGJ1dHRvbiB0eXBlPVxcXCJidXR0b25cXFwiIGNsYXNzPVxcXCJidG4gYnRuLXByaW1hcnlcXFwiIEBjbGljaz1cXFwic3RvcmVcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBDcmVhdGVcXG4gICAgICAgICAgICAgICAgICAgICAgICA8L2J1dHRvbj5cXG4gICAgICAgICAgICAgICAgICAgIDwvZGl2PlxcbiAgICAgICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgIDwvZGl2PlxcblxcbiAgICAgICAgPCEtLSBFZGl0IENsaWVudCBNb2RhbCAtLT5cXG4gICAgICAgIDxkaXYgY2xhc3M9XFxcIm1vZGFsIGZhZGVcXFwiIGlkPVxcXCJtb2RhbC1lZGl0LWNsaWVudFxcXCIgdGFiaW5kZXg9XFxcIi0xXFxcIiByb2xlPVxcXCJkaWFsb2dcXFwiPlxcbiAgICAgICAgICAgIDxkaXYgY2xhc3M9XFxcIm1vZGFsLWRpYWxvZ1xcXCI+XFxuICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XFxcIm1vZGFsLWNvbnRlbnRcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cXFwibW9kYWwtaGVhZGVyXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8YnV0dG9uIHR5cGU9XFxcImJ1dHRvbiBcXFwiIGNsYXNzPVxcXCJjbG9zZVxcXCIgZGF0YS1kaXNtaXNzPVxcXCJtb2RhbFxcXCIgYXJpYS1oaWRkZW49XFxcInRydWVcXFwiPiZ0aW1lczs8L2J1dHRvbj5cXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8aDQgY2xhc3M9XFxcIm1vZGFsLXRpdGxlXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgRWRpdCBDbGllbnRcXG4gICAgICAgICAgICAgICAgICAgICAgICA8L2g0PlxcbiAgICAgICAgICAgICAgICAgICAgPC9kaXY+XFxuXFxuICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVxcXCJtb2RhbC1ib2R5XFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8IS0tIEZvcm0gRXJyb3JzIC0tPlxcbiAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XFxcImFsZXJ0IGFsZXJ0LWRhbmdlclxcXCIgdi1pZj1cXFwiZWRpdEZvcm0uZXJyb3JzLmxlbmd0aCA+IDBcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cD48c3Ryb25nPldob29wcyE8L3N0cm9uZz4gU29tZXRoaW5nIHdlbnQgd3JvbmchPC9wPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8YnI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx1bD5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxsaSB2LWZvcj1cXFwiZXJyb3IgaW4gZWRpdEZvcm0uZXJyb3JzXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7eyBlcnJvciB9fVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9saT5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC91bD5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8IS0tIEVkaXQgQ2xpZW50IEZvcm0gLS0+XFxuICAgICAgICAgICAgICAgICAgICAgICAgPGZvcm0gY2xhc3M9XFxcImZvcm0taG9yaXpvbnRhbFxcXCIgcm9sZT1cXFwiZm9ybVxcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwhLS0gTmFtZSAtLT5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cXFwiZm9ybS1ncm91cFxcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bGFiZWwgY2xhc3M9XFxcImNvbC1tZC0zIGNvbnRyb2wtbGFiZWxcXFwiPk5hbWU8L2xhYmVsPlxcblxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cXFwiY29sLW1kLTdcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxpbnB1dCBpZD1cXFwiZWRpdC1jbGllbnQtbmFtZVxcXCIgdHlwZT1cXFwidGV4dFxcXCIgY2xhc3M9XFxcImZvcm0tY29udHJvbFxcXCJcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQGtleXVwLmVudGVyPVxcXCJ1cGRhdGVcXFwiIHYtbW9kZWw9XFxcImVkaXRGb3JtLm5hbWVcXFwiPlxcblxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzcGFuIGNsYXNzPVxcXCJoZWxwLWJsb2NrXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgU29tZXRoaW5nIHlvdXIgdXNlcnMgd2lsbCByZWNvZ25pemUgYW5kIHRydXN0LlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvc3Bhbj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPCEtLSBSZWRpcmVjdCBVUkwgLS0+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XFxcImZvcm0tZ3JvdXBcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGxhYmVsIGNsYXNzPVxcXCJjb2wtbWQtMyBjb250cm9sLWxhYmVsXFxcIj5SZWRpcmVjdCBVUkw8L2xhYmVsPlxcblxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cXFwiY29sLW1kLTdcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxpbnB1dCB0eXBlPVxcXCJ0ZXh0XFxcIiBjbGFzcz1cXFwiZm9ybS1jb250cm9sXFxcIiBuYW1lPVxcXCJyZWRpcmVjdFxcXCJcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQGtleXVwLmVudGVyPVxcXCJ1cGRhdGVcXFwiIHYtbW9kZWw9XFxcImVkaXRGb3JtLnJlZGlyZWN0XFxcIj5cXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8c3BhbiBjbGFzcz1cXFwiaGVscC1ibG9ja1xcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFlvdXIgYXBwbGljYXRpb24ncyBhdXRob3JpemF0aW9uIGNhbGxiYWNrIFVSTC5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3NwYW4+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XFxuICAgICAgICAgICAgICAgICAgICAgICAgPC9mb3JtPlxcbiAgICAgICAgICAgICAgICAgICAgPC9kaXY+XFxuXFxuICAgICAgICAgICAgICAgICAgICA8IS0tIE1vZGFsIEFjdGlvbnMgLS0+XFxuICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVxcXCJtb2RhbC1mb290ZXJcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgIDxidXR0b24gdHlwZT1cXFwiYnV0dG9uXFxcIiBjbGFzcz1cXFwiYnRuIGJ0bi1kZWZhdWx0XFxcIiBkYXRhLWRpc21pc3M9XFxcIm1vZGFsXFxcIj5DbG9zZTwvYnV0dG9uPlxcblxcbiAgICAgICAgICAgICAgICAgICAgICAgIDxidXR0b24gdHlwZT1cXFwiYnV0dG9uXFxcIiBjbGFzcz1cXFwiYnRuIGJ0bi1wcmltYXJ5XFxcIiBAY2xpY2s9XFxcInVwZGF0ZVxcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIFNhdmUgQ2hhbmdlc1xcbiAgICAgICAgICAgICAgICAgICAgICAgIDwvYnV0dG9uPlxcbiAgICAgICAgICAgICAgICAgICAgPC9kaXY+XFxuICAgICAgICAgICAgICAgIDwvZGl2PlxcbiAgICAgICAgICAgIDwvZGl2PlxcbiAgICAgICAgPC9kaXY+XFxuICAgIDwvZGl2PlxcbjwvdGVtcGxhdGU+XFxuXFxuPHNjcmlwdD5cXG4gICAgZXhwb3J0IGRlZmF1bHQge1xcbiAgICAgICAgLypcXG4gICAgICAgICAqIFRoZSBjb21wb25lbnQncyBkYXRhLlxcbiAgICAgICAgICovXFxuICAgICAgICBkYXRhKCkge1xcbiAgICAgICAgICAgIHJldHVybiB7XFxuICAgICAgICAgICAgICAgIGNsaWVudHM6IFtdLFxcblxcbiAgICAgICAgICAgICAgICBjcmVhdGVGb3JtOiB7XFxuICAgICAgICAgICAgICAgICAgICBlcnJvcnM6IFtdLFxcbiAgICAgICAgICAgICAgICAgICAgbmFtZTogJycsXFxuICAgICAgICAgICAgICAgICAgICByZWRpcmVjdDogJydcXG4gICAgICAgICAgICAgICAgfSxcXG5cXG4gICAgICAgICAgICAgICAgZWRpdEZvcm06IHtcXG4gICAgICAgICAgICAgICAgICAgIGVycm9yczogW10sXFxuICAgICAgICAgICAgICAgICAgICBuYW1lOiAnJyxcXG4gICAgICAgICAgICAgICAgICAgIHJlZGlyZWN0OiAnJ1xcbiAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgfTtcXG4gICAgICAgIH0sXFxuXFxuICAgICAgICAvKipcXG4gICAgICAgICAqIFByZXBhcmUgdGhlIGNvbXBvbmVudCAoVnVlIDEueCkuXFxuICAgICAgICAgKi9cXG4gICAgICAgIHJlYWR5KCkge1xcbiAgICAgICAgICAgIHRoaXMucHJlcGFyZUNvbXBvbmVudCgpO1xcbiAgICAgICAgfSxcXG5cXG4gICAgICAgIC8qKlxcbiAgICAgICAgICogUHJlcGFyZSB0aGUgY29tcG9uZW50IChWdWUgMi54KS5cXG4gICAgICAgICAqL1xcbiAgICAgICAgbW91bnRlZCgpIHtcXG4gICAgICAgICAgICB0aGlzLnByZXBhcmVDb21wb25lbnQoKTtcXG4gICAgICAgIH0sXFxuXFxuICAgICAgICBtZXRob2RzOiB7XFxuICAgICAgICAgICAgLyoqXFxuICAgICAgICAgICAgICogUHJlcGFyZSB0aGUgY29tcG9uZW50LlxcbiAgICAgICAgICAgICAqL1xcbiAgICAgICAgICAgIHByZXBhcmVDb21wb25lbnQoKSB7XFxuICAgICAgICAgICAgICAgIHRoaXMuZ2V0Q2xpZW50cygpO1xcblxcbiAgICAgICAgICAgICAgICAkKCcjbW9kYWwtY3JlYXRlLWNsaWVudCcpLm9uKCdzaG93bi5icy5tb2RhbCcsICgpID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICQoJyNjcmVhdGUtY2xpZW50LW5hbWUnKS5mb2N1cygpO1xcbiAgICAgICAgICAgICAgICB9KTtcXG5cXG4gICAgICAgICAgICAgICAgJCgnI21vZGFsLWVkaXQtY2xpZW50Jykub24oJ3Nob3duLmJzLm1vZGFsJywgKCkgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgJCgnI2VkaXQtY2xpZW50LW5hbWUnKS5mb2N1cygpO1xcbiAgICAgICAgICAgICAgICB9KTtcXG4gICAgICAgICAgICB9LFxcblxcbiAgICAgICAgICAgIC8qKlxcbiAgICAgICAgICAgICAqIEdldCBhbGwgb2YgdGhlIE9BdXRoIGNsaWVudHMgZm9yIHRoZSB1c2VyLlxcbiAgICAgICAgICAgICAqL1xcbiAgICAgICAgICAgIGdldENsaWVudHMoKSB7XFxuICAgICAgICAgICAgICAgIHRoaXMuJGh0dHAuZ2V0KCcvb2F1dGgvY2xpZW50cycpXFxuICAgICAgICAgICAgICAgICAgICAgICAgLnRoZW4ocmVzcG9uc2UgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmNsaWVudHMgPSByZXNwb25zZS5kYXRhO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xcbiAgICAgICAgICAgIH0sXFxuXFxuICAgICAgICAgICAgLyoqXFxuICAgICAgICAgICAgICogU2hvdyB0aGUgZm9ybSBmb3IgY3JlYXRpbmcgbmV3IGNsaWVudHMuXFxuICAgICAgICAgICAgICovXFxuICAgICAgICAgICAgc2hvd0NyZWF0ZUNsaWVudEZvcm0oKSB7XFxuICAgICAgICAgICAgICAgICQoJyNtb2RhbC1jcmVhdGUtY2xpZW50JykubW9kYWwoJ3Nob3cnKTtcXG4gICAgICAgICAgICB9LFxcblxcbiAgICAgICAgICAgIC8qKlxcbiAgICAgICAgICAgICAqIENyZWF0ZSBhIG5ldyBPQXV0aCBjbGllbnQgZm9yIHRoZSB1c2VyLlxcbiAgICAgICAgICAgICAqL1xcbiAgICAgICAgICAgIHN0b3JlKCkge1xcbiAgICAgICAgICAgICAgICB0aGlzLnBlcnNpc3RDbGllbnQoXFxuICAgICAgICAgICAgICAgICAgICAncG9zdCcsICcvb2F1dGgvY2xpZW50cycsXFxuICAgICAgICAgICAgICAgICAgICB0aGlzLmNyZWF0ZUZvcm0sICcjbW9kYWwtY3JlYXRlLWNsaWVudCdcXG4gICAgICAgICAgICAgICAgKTtcXG4gICAgICAgICAgICB9LFxcblxcbiAgICAgICAgICAgIC8qKlxcbiAgICAgICAgICAgICAqIEVkaXQgdGhlIGdpdmVuIGNsaWVudC5cXG4gICAgICAgICAgICAgKi9cXG4gICAgICAgICAgICBlZGl0KGNsaWVudCkge1xcbiAgICAgICAgICAgICAgICB0aGlzLmVkaXRGb3JtLmlkID0gY2xpZW50LmlkO1xcbiAgICAgICAgICAgICAgICB0aGlzLmVkaXRGb3JtLm5hbWUgPSBjbGllbnQubmFtZTtcXG4gICAgICAgICAgICAgICAgdGhpcy5lZGl0Rm9ybS5yZWRpcmVjdCA9IGNsaWVudC5yZWRpcmVjdDtcXG5cXG4gICAgICAgICAgICAgICAgJCgnI21vZGFsLWVkaXQtY2xpZW50JykubW9kYWwoJ3Nob3cnKTtcXG4gICAgICAgICAgICB9LFxcblxcbiAgICAgICAgICAgIC8qKlxcbiAgICAgICAgICAgICAqIFVwZGF0ZSB0aGUgY2xpZW50IGJlaW5nIGVkaXRlZC5cXG4gICAgICAgICAgICAgKi9cXG4gICAgICAgICAgICB1cGRhdGUoKSB7XFxuICAgICAgICAgICAgICAgIHRoaXMucGVyc2lzdENsaWVudChcXG4gICAgICAgICAgICAgICAgICAgICdwdXQnLCAnL29hdXRoL2NsaWVudHMvJyArIHRoaXMuZWRpdEZvcm0uaWQsXFxuICAgICAgICAgICAgICAgICAgICB0aGlzLmVkaXRGb3JtLCAnI21vZGFsLWVkaXQtY2xpZW50J1xcbiAgICAgICAgICAgICAgICApO1xcbiAgICAgICAgICAgIH0sXFxuXFxuICAgICAgICAgICAgLyoqXFxuICAgICAgICAgICAgICogUGVyc2lzdCB0aGUgY2xpZW50IHRvIHN0b3JhZ2UgdXNpbmcgdGhlIGdpdmVuIGZvcm0uXFxuICAgICAgICAgICAgICovXFxuICAgICAgICAgICAgcGVyc2lzdENsaWVudChtZXRob2QsIHVyaSwgZm9ybSwgbW9kYWwpIHtcXG4gICAgICAgICAgICAgICAgZm9ybS5lcnJvcnMgPSBbXTtcXG5cXG4gICAgICAgICAgICAgICAgdGhpcy4kaHR0cFttZXRob2RdKHVyaSwgZm9ybSlcXG4gICAgICAgICAgICAgICAgICAgIC50aGVuKHJlc3BvbnNlID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmdldENsaWVudHMoKTtcXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICBmb3JtLm5hbWUgPSAnJztcXG4gICAgICAgICAgICAgICAgICAgICAgICBmb3JtLnJlZGlyZWN0ID0gJyc7XFxuICAgICAgICAgICAgICAgICAgICAgICAgZm9ybS5lcnJvcnMgPSBbXTtcXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICAkKG1vZGFsKS5tb2RhbCgnaGlkZScpO1xcbiAgICAgICAgICAgICAgICAgICAgfSlcXG4gICAgICAgICAgICAgICAgICAgIC5jYXRjaChyZXNwb25zZSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHR5cGVvZiByZXNwb25zZS5kYXRhID09PSAnb2JqZWN0Jykge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb3JtLmVycm9ycyA9IF8uZmxhdHRlbihfLnRvQXJyYXkocmVzcG9uc2UuZGF0YSkpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZvcm0uZXJyb3JzID0gWydTb21ldGhpbmcgd2VudCB3cm9uZy4gUGxlYXNlIHRyeSBhZ2Fpbi4nXTtcXG4gICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICB9KTtcXG4gICAgICAgICAgICB9LFxcblxcbiAgICAgICAgICAgIC8qKlxcbiAgICAgICAgICAgICAqIERlc3Ryb3kgdGhlIGdpdmVuIGNsaWVudC5cXG4gICAgICAgICAgICAgKi9cXG4gICAgICAgICAgICBkZXN0cm95KGNsaWVudCkge1xcbiAgICAgICAgICAgICAgICB0aGlzLiRodHRwLmRlbGV0ZSgnL29hdXRoL2NsaWVudHMvJyArIGNsaWVudC5pZClcXG4gICAgICAgICAgICAgICAgICAgICAgICAudGhlbihyZXNwb25zZSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuZ2V0Q2xpZW50cygpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xcbiAgICAgICAgICAgIH1cXG4gICAgICAgIH1cXG4gICAgfVxcbjwvc2NyaXB0PlxcblwiXSxcInNvdXJjZVJvb3RcIjpcIndlYnBhY2s6Ly9cIn1dKTtcblxuLy8gZXhwb3J0c1xuXG5cblxuLy8vLy8vLy8vLy8vLy8vLy8vXG4vLyBXRUJQQUNLIEZPT1RFUlxuLy8gLi9+L2Nzcy1sb2FkZXI/c291cmNlTWFwIS4vfi92dWUtbG9hZGVyL2xpYi9zdHlsZS1yZXdyaXRlci5qcz9pZD1kYXRhLXYtMGMxMzQyZDQmc2NvcGVkPXRydWUhLi9+L3Z1ZS1sb2FkZXIvbGliL3NlbGVjdG9yLmpzP3R5cGU9c3R5bGVzJmluZGV4PTAhLi9yZXNvdXJjZXMvYXNzZXRzL2pzL2NvbXBvbmVudHMvcGFzc3BvcnQvQ2xpZW50cy52dWVcbi8vIG1vZHVsZSBpZCA9IDE5XG4vLyBtb2R1bGUgY2h1bmtzID0gMCJdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTsiLCJzb3VyY2VSb290IjoiIn0="); +eval("exports = module.exports = __webpack_require__(0)();\n// imports\n\n\n// module\nexports.push([module.i, \"\\n\\n\", \"\", {\"version\":3,\"sources\":[],\"names\":[],\"mappings\":\"\",\"file\":\"select2.vue\",\"sourceRoot\":\"webpack://\"}]);\n\n// exports\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMTkuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvYXNzZXRzL2pzL2NvbXBvbmVudHMvc2VsZWN0Mi52dWU/ZDY5MiJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnRzID0gbW9kdWxlLmV4cG9ydHMgPSByZXF1aXJlKFwiLi8uLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvY3NzLWxvYWRlci9saWIvY3NzLWJhc2UuanNcIikoKTtcbi8vIGltcG9ydHNcblxuXG4vLyBtb2R1bGVcbmV4cG9ydHMucHVzaChbbW9kdWxlLmlkLCBcIlxcblxcblwiLCBcIlwiLCB7XCJ2ZXJzaW9uXCI6MyxcInNvdXJjZXNcIjpbXSxcIm5hbWVzXCI6W10sXCJtYXBwaW5nc1wiOlwiXCIsXCJmaWxlXCI6XCJzZWxlY3QyLnZ1ZVwiLFwic291cmNlUm9vdFwiOlwid2VicGFjazovL1wifV0pO1xuXG4vLyBleHBvcnRzXG5cblxuXG4vLy8vLy8vLy8vLy8vLy8vLy9cbi8vIFdFQlBBQ0sgRk9PVEVSXG4vLyAuL34vY3NzLWxvYWRlcj9zb3VyY2VNYXAhLi9+L3Z1ZS1sb2FkZXIvbGliL3N0eWxlLXJld3JpdGVyLmpzP2lkPWRhdGEtdi0zZTBlYzM2NiZzY29wZWQ9dHJ1ZSEuL34vdnVlLWxvYWRlci9saWIvc2VsZWN0b3IuanM/dHlwZT1zdHlsZXMmaW5kZXg9MCEuL3Jlc291cmNlcy9hc3NldHMvanMvY29tcG9uZW50cy9zZWxlY3QyLnZ1ZVxuLy8gbW9kdWxlIGlkID0gMTlcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOyIsInNvdXJjZVJvb3QiOiIifQ=="); /***/ }, /* 20 */ /***/ function(module, exports, __webpack_require__) { -eval("exports = module.exports = __webpack_require__(0)();\n// imports\n\n\n// module\nexports.push([module.i, \"\\n\\n\", \"\", {\"version\":3,\"sources\":[],\"names\":[],\"mappings\":\"\",\"file\":\"alert.vue\",\"sourceRoot\":\"webpack://\"}]);\n\n// exports\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjAuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvYXNzZXRzL2pzL2NvbXBvbmVudHMvYWxlcnQudnVlP2Y5ZmYiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0cyA9IG1vZHVsZS5leHBvcnRzID0gcmVxdWlyZShcIi4vLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL2Nzcy1sb2FkZXIvbGliL2Nzcy1iYXNlLmpzXCIpKCk7XG4vLyBpbXBvcnRzXG5cblxuLy8gbW9kdWxlXG5leHBvcnRzLnB1c2goW21vZHVsZS5pZCwgXCJcXG5cXG5cIiwgXCJcIiwge1widmVyc2lvblwiOjMsXCJzb3VyY2VzXCI6W10sXCJuYW1lc1wiOltdLFwibWFwcGluZ3NcIjpcIlwiLFwiZmlsZVwiOlwiYWxlcnQudnVlXCIsXCJzb3VyY2VSb290XCI6XCJ3ZWJwYWNrOi8vXCJ9XSk7XG5cbi8vIGV4cG9ydHNcblxuXG5cbi8vLy8vLy8vLy8vLy8vLy8vL1xuLy8gV0VCUEFDSyBGT09URVJcbi8vIC4vfi9jc3MtbG9hZGVyP3NvdXJjZU1hcCEuL34vdnVlLWxvYWRlci9saWIvc3R5bGUtcmV3cml0ZXIuanM/aWQ9ZGF0YS12LTI0MzBlNzQxJnNjb3BlZD10cnVlIS4vfi92dWUtbG9hZGVyL2xpYi9zZWxlY3Rvci5qcz90eXBlPXN0eWxlcyZpbmRleD0wIS4vcmVzb3VyY2VzL2Fzc2V0cy9qcy9jb21wb25lbnRzL2FsZXJ0LnZ1ZVxuLy8gbW9kdWxlIGlkID0gMjBcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOyIsInNvdXJjZVJvb3QiOiIifQ=="); +eval("exports = module.exports = __webpack_require__(0)();\n// imports\n\n\n// module\nexports.push([module.i, \"\\n.action-link[data-v-40c96b49] {\\n cursor: pointer;\\n}\\n.m-b-none[data-v-40c96b49] {\\n margin-bottom: 0;\\n}\\n\", \"\", {\"version\":3,\"sources\":[\"/./resources/assets/js/components/passport/AuthorizedClients.vue?a99076c0\"],\"names\":[],\"mappings\":\";AACA;IACA,gBAAA;CACA;AAEA;IACA,iBAAA;CACA\",\"file\":\"AuthorizedClients.vue\",\"sourcesContent\":[\"\\n\\n\\n\\n\\n\"],\"sourceRoot\":\"webpack://\"}]);\n\n// exports\n//# sourceMapping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cXG4gICAgfVxcbjwvc3R5bGU+XFxuXFxuPHRlbXBsYXRlPlxcbiAgICA8ZGl2PlxcbiAgICAgICAgPGRpdiB2LWlmPVxcXCJ0b2tlbnMubGVuZ3RoID4gMFxcXCI+XFxuICAgICAgICAgICAgPGRpdiBjbGFzcz1cXFwicGFuZWwgcGFuZWwtZGVmYXVsdFxcXCI+XFxuICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XFxcInBhbmVsLWhlYWRpbmdcXFwiPkF1dGhvcml6ZWQgQXBwbGljYXRpb25zPC9kaXY+XFxuXFxuICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XFxcInBhbmVsLWJvZHlcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgPCEtLSBBdXRob3JpemVkIFRva2VucyAtLT5cXG4gICAgICAgICAgICAgICAgICAgIDx0YWJsZSBjbGFzcz1cXFwidGFibGUgdGFibGUtYm9yZGVybGVzcyBtLWItbm9uZVxcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgPHRoZWFkPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dHI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGg+TmFtZTwvdGg+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGg+U2NvcGVzPC90aD5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0aD48L3RoPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPlxcbiAgICAgICAgICAgICAgICAgICAgICAgIDwvdGhlYWQ+XFxuXFxuICAgICAgICAgICAgICAgICAgICAgICAgPHRib2R5PlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dHIgdi1mb3I9XFxcInRva2VuIGluIHRva2Vuc1xcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8IS0tIENsaWVudCBOYW1lIC0tPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkIHN0eWxlPVxcXCJ2ZXJ0aWNhbC1hbGlnbjogbWlkZGxlO1xcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge3sgdG9rZW4uY2xpZW50Lm5hbWUgfX1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+XFxuXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8IS0tIFNjb3BlcyAtLT5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZCBzdHlsZT1cXFwidmVydGljYWwtYWxpZ246IG1pZGRsZTtcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzcGFuIHYtaWY9XFxcInRva2VuLnNjb3Blcy5sZW5ndGggPiAwXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge3sgdG9rZW4uc2NvcGVzLmpvaW4oJywgJykgfX1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3NwYW4+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPlxcblxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPCEtLSBSZXZva2UgQnV0dG9uIC0tPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkIHN0eWxlPVxcXCJ2ZXJ0aWNhbC1hbGlnbjogbWlkZGxlO1xcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGEgY2xhc3M9XFxcImFjdGlvbi1saW5rIHRleHQtZGFuZ2VyXFxcIiBAY2xpY2s9XFxcInJldm9rZSh0b2tlbilcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBSZXZva2VcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2E+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPlxcbiAgICAgICAgICAgICAgICAgICAgICAgIDwvdGJvZHk+XFxuICAgICAgICAgICAgICAgICAgICA8L3RhYmxlPlxcbiAgICAgICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgIDwvZGl2PlxcbiAgICA8L2Rpdj5cXG48L3RlbXBsYXRlPlxcblxcbjxzY3JpcHQ+XFxuICAgIGV4cG9ydCBkZWZhdWx0IHtcXG4gICAgICAgIC8qXFxuICAgICAgICAgKiBUaGUgY29tcG9uZW50J3MgZGF0YS5cXG4gICAgICAgICAqL1xcbiAgICAgICAgZGF0YSgpIHtcXG4gICAgICAgICAgICByZXR1cm4ge1xcbiAgICAgICAgICAgICAgICB0b2tlbnM6IFtdXFxuICAgICAgICAgICAgfTtcXG4gICAgICAgIH0sXFxuXFxuICAgICAgICAvKipcXG4gICAgICAgICAqIFByZXBhcmUgdGhlIGNvbXBvbmVudCAoVnVlIDEueCkuXFxuICAgICAgICAgKi9cXG4gICAgICAgIHJlYWR5KCkge1xcbiAgICAgICAgICAgIHRoaXMucHJlcGFyZUNvbXBvbmVudCgpO1xcbiAgICAgICAgfSxcXG5cXG4gICAgICAgIC8qKlxcbiAgICAgICAgICogUHJlcGFyZSB0aGUgY29tcG9uZW50IChWdWUgMi54KS5cXG4gICAgICAgICAqL1xcbiAgICAgICAgbW91bnRlZCgpIHtcXG4gICAgICAgICAgICB0aGlzLnByZXBhcmVDb21wb25lbnQoKTtcXG4gICAgICAgIH0sXFxuXFxuICAgICAgICBtZXRob2RzOiB7XFxuICAgICAgICAgICAgLyoqXFxuICAgICAgICAgICAgICogUHJlcGFyZSB0aGUgY29tcG9uZW50IChWdWUgMi54KS5cXG4gICAgICAgICAgICAgKi9cXG4gICAgICAgICAgICBwcmVwYXJlQ29tcG9uZW50KCkge1xcbiAgICAgICAgICAgICAgICB0aGlzLmdldFRva2VucygpO1xcbiAgICAgICAgICAgIH0sXFxuXFxuICAgICAgICAgICAgLyoqXFxuICAgICAgICAgICAgICogR2V0IGFsbCBvZiB0aGUgYXV0aG9yaXplZCB0b2tlbnMgZm9yIHRoZSB1c2VyLlxcbiAgICAgICAgICAgICAqL1xcbiAgICAgICAgICAgIGdldFRva2VucygpIHtcXG4gICAgICAgICAgICAgICAgdGhpcy4kaHR0cC5nZXQoJy9vYXV0aC90b2tlbnMnKVxcbiAgICAgICAgICAgICAgICAgICAgICAgIC50aGVuKHJlc3BvbnNlID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy50b2tlbnMgPSByZXNwb25zZS5kYXRhO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xcbiAgICAgICAgICAgIH0sXFxuXFxuICAgICAgICAgICAgLyoqXFxuICAgICAgICAgICAgICogUmV2b2tlIHRoZSBnaXZlbiB0b2tlbi5cXG4gICAgICAgICAgICAgKi9cXG4gICAgICAgICAgICByZXZva2UodG9rZW4pIHtcXG4gICAgICAgICAgICAgICAgdGhpcy4kaHR0cC5kZWxldGUoJy9vYXV0aC90b2tlbnMvJyArIHRva2VuLmlkKVxcbiAgICAgICAgICAgICAgICAgICAgICAgIC50aGVuKHJlc3BvbnNlID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5nZXRUb2tlbnMoKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICB9KTtcXG4gICAgICAgICAgICB9XFxuICAgICAgICB9XFxuICAgIH1cXG48L3NjcmlwdD5cXG5cIl0sXCJzb3VyY2VSb290XCI6XCJ3ZWJwYWNrOi8vXCJ9XSk7XG5cbi8vIGV4cG9ydHNcblxuXG5cbi8vLy8vLy8vLy8vLy8vLy8vL1xuLy8gV0VCUEFDSyBGT09URVJcbi8vIC4vfi9jc3MtbG9hZGVyP3NvdXJjZU1hcCEuL34vdnVlLWxvYWRlci9saWIvc3R5bGUtcmV3cml0ZXIuanM/aWQ9ZGF0YS12LTQwYzk2YjQ5JnNjb3BlZD10cnVlIS4vfi92dWUtbG9hZGVyL2xpYi9zZWxlY3Rvci5qcz90eXBlPXN0eWxlcyZpbmRleD0wIS4vcmVzb3VyY2VzL2Fzc2V0cy9qcy9jb21wb25lbnRzL3Bhc3Nwb3J0L0F1dGhvcml6ZWRDbGllbnRzLnZ1ZVxuLy8gbW9kdWxlIGlkID0gMjBcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOyIsInNvdXJjZVJvb3QiOiIifQ=="); /***/ }, /* 21 */ /***/ function(module, exports, __webpack_require__) { -eval("exports = module.exports = __webpack_require__(0)();\n// imports\n\n\n// module\nexports.push([module.i, \"\\n.action-link[data-v-40bb967b] {\\n cursor: pointer;\\n}\\n.m-b-none[data-v-40bb967b] {\\n margin-bottom: 0;\\n}\\n\", \"\", {\"version\":3,\"sources\":[\"/./resources/assets/js/components/passport/AuthorizedClients.vue?a99076c0\"],\"names\":[],\"mappings\":\";AACA;IACA,gBAAA;CACA;AAEA;IACA,iBAAA;CACA\",\"file\":\"AuthorizedClients.vue\",\"sourcesContent\":[\"\\n\\n\\n\\n\\n\"],\"sourceRoot\":\"webpack://\"}]);\n\n// exports\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjEuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvYXNzZXRzL2pzL2NvbXBvbmVudHMvcGFzc3BvcnQvQXV0aG9yaXplZENsaWVudHMudnVlP2FlYmMiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0cyA9IG1vZHVsZS5leHBvcnRzID0gcmVxdWlyZShcIi4vLi4vLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL2Nzcy1sb2FkZXIvbGliL2Nzcy1iYXNlLmpzXCIpKCk7XG4vLyBpbXB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JvZHlcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgPCEtLSBBdXRob3JpemVkIFRva2VucyAtLT5cXG4gICAgICAgICAgICAgICAgICAgIDx0YWJsZSBjbGFzcz1cXFwidGFibGUgdGFibGUtYm9yZGVybGVzcyBtLWItbm9uZVxcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgPHRoZWFkPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dHI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGg+TmFtZTwvdGg+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGg+U2NvcGVzPC90aD5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0aD48L3RoPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPlxcbiAgICAgICAgICAgICAgICAgICAgICAgIDwvdGhlYWQ+XFxuXFxuICAgICAgICAgICAgICAgICAgICAgICAgPHRib2R5PlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dHIgdi1mb3I9XFxcInRva2VuIGluIHRva2Vuc1xcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8IS0tIENsaWVudCBOYW1lIC0tPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkIHN0eWxlPVxcXCJ2ZXJ0aWNhbC1hbGlnbjogbWlkZGxlO1xcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge3sgdG9rZW4uY2xpZW50Lm5hbWUgfX1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+XFxuXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8IS0tIFNjb3BlcyAtLT5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZCBzdHlsZT1cXFwidmVydGljYWwtYWxpZ246IG1pZGRsZTtcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzcGFuIHYtaWY9XFxcInRva2VuLnNjb3Blcy5sZW5ndGggPiAwXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge3sgdG9rZW4uc2NvcGVzLmpvaW4oJywgJykgfX1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3NwYW4+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPlxcblxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPCEtLSBSZXZva2UgQnV0dG9uIC0tPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkIHN0eWxlPVxcXCJ2ZXJ0aWNhbC1hbGlnbjogbWlkZGxlO1xcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGEgY2xhc3M9XFxcImFjdGlvbi1saW5rIHRleHQtZGFuZ2VyXFxcIiBAY2xpY2s9XFxcInJldm9rZSh0b2tlbilcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBSZXZva2VcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2E+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPlxcbiAgICAgICAgICAgICAgICAgICAgICAgIDwvdGJvZHk+XFxuICAgICAgICAgICAgICAgICAgICA8L3RhYmxlPlxcbiAgICAgICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgIDwvZGl2PlxcbiAgICA8L2Rpdj5cXG48L3RlbXBsYXRlPlxcblxcbjxzY3JpcHQ+XFxuICAgIGV4cG9ydCBkZWZhdWx0IHtcXG4gICAgICAgIC8qXFxuICAgICAgICAgKiBUaGUgY29tcG9uZW50J3MgZGF0YS5cXG4gICAgICAgICAqL1xcbiAgICAgICAgZGF0YSgpIHtcXG4gICAgICAgICAgICByZXR1cm4ge1xcbiAgICAgICAgICAgICAgICB0b2tlbnM6IFtdXFxuICAgICAgICAgICAgfTtcXG4gICAgICAgIH0sXFxuXFxuICAgICAgICAvKipcXG4gICAgICAgICAqIFByZXBhcmUgdGhlIGNvbXBvbmVudCAoVnVlIDEueCkuXFxuICAgICAgICAgKi9cXG4gICAgICAgIHJlYWR5KCkge1xcbiAgICAgICAgICAgIHRoaXMucHJlcGFyZUNvbXBvbmVudCgpO1xcbiAgICAgICAgfSxcXG5cXG4gICAgICAgIC8qKlxcbiAgICAgICAgICogUHJlcGFyZSB0aGUgY29tcG9uZW50IChWdWUgMi54KS5cXG4gICAgICAgICAqL1xcbiAgICAgICAgbW91bnRlZCgpIHtcXG4gICAgICAgICAgICB0aGlzLnByZXBhcmVDb21wb25lbnQoKTtcXG4gICAgICAgIH0sXFxuXFxuICAgICAgICBtZXRob2RzOiB7XFxuICAgICAgICAgICAgLyoqXFxuICAgICAgICAgICAgICogUHJlcGFyZSB0aGUgY29tcG9uZW50IChWdWUgMi54KS5cXG4gICAgICAgICAgICAgKi9cXG4gICAgICAgICAgICBwcmVwYXJlQ29tcG9uZW50KCkge1xcbiAgICAgICAgICAgICAgICB0aGlzLmdldFRva2VucygpO1xcbiAgICAgICAgICAgIH0sXFxuXFxuICAgICAgICAgICAgLyoqXFxuICAgICAgICAgICAgICogR2V0IGFsbCBvZiB0aGUgYXV0aG9yaXplZCB0b2tlbnMgZm9yIHRoZSB1c2VyLlxcbiAgICAgICAgICAgICAqL1xcbiAgICAgICAgICAgIGdldFRva2VucygpIHtcXG4gICAgICAgICAgICAgICAgdGhpcy4kaHR0cC5nZXQoJy9vYXV0aC90b2tlbnMnKVxcbiAgICAgICAgICAgICAgICAgICAgICAgIC50aGVuKHJlc3BvbnNlID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy50b2tlbnMgPSByZXNwb25zZS5kYXRhO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xcbiAgICAgICAgICAgIH0sXFxuXFxuICAgICAgICAgICAgLyoqXFxuICAgICAgICAgICAgICogUmV2b2tlIHRoZSBnaXZlbiB0b2tlbi5cXG4gICAgICAgICAgICAgKi9cXG4gICAgICAgICAgICByZXZva2UodG9rZW4pIHtcXG4gICAgICAgICAgICAgICAgdGhpcy4kaHR0cC5kZWxldGUoJy9vYXV0aC90b2tlbnMvJyArIHRva2VuLmlkKVxcbiAgICAgICAgICAgICAgICAgICAgICAgIC50aGVuKHJlc3BvbnNlID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5nZXRUb2tlbnMoKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICB9KTtcXG4gICAgICAgICAgICB9XFxuICAgICAgICB9XFxuICAgIH1cXG48L3NjcmlwdD5cXG5cIl0sXCJzb3VyY2VSb290XCI6XCJ3ZWJwYWNrOi8vXCJ9XSk7XG5cbi8vIGV4cG9ydHNcblxuXG5cbi8vLy8vLy8vLy8vLy8vLy8vL1xuLy8gV0VCUEFDSyBGT09URVJcbi8vIC4vfi9jc3MtbG9hZGVyP3NvdXJjZU1hcCEuL34vdnVlLWxvYWRlci9saWIvc3R5bGUtcmV3cml0ZXIuanM/aWQ9ZGF0YS12LTQwYmI5NjdiJnNjb3BlZD10cnVlIS4vfi92dWUtbG9hZGVyL2xpYi9zZWxlY3Rvci5qcz90eXBlPXN0eWxlcyZpbmRleD0wIS4vcmVzb3VyY2VzL2Fzc2V0cy9qcy9jb21wb25lbnRzL3Bhc3Nwb3J0L0F1dGhvcml6ZWRDbGllbnRzLnZ1ZVxuLy8gbW9kdWxlIGlkID0gMjFcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOyIsInNvdXJjZVJvb3QiOiIifQ=="); +eval("exports = module.exports = __webpack_require__(0)();\n// imports\n\n\n// module\nexports.push([module.i, \"\\n\\n\", \"\", {\"version\":3,\"sources\":[],\"names\":[],\"mappings\":\"\",\"file\":\"importer.vue\",\"sourceRoot\":\"webpack://\"}]);\n\n// exports\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjEuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvYXNzZXRzL2pzL2NvbXBvbmVudHMvaW1wb3J0ZXIvaW1wb3J0ZXIudnVlP2FlN2UiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0cyA9IG1vZHVsZS5leHBvcnRzID0gcmVxdWlyZShcIi4vLi4vLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL2Nzcy1sb2FkZXIvbGliL2Nzcy1iYXNlLmpzXCIpKCk7XG4vLyBpbXBvcnRzXG5cblxuLy8gbW9kdWxlXG5leHBvcnRzLnB1c2goW21vZHVsZS5pZCwgXCJcXG5cXG5cIiwgXCJcIiwge1widmVyc2lvblwiOjMsXCJzb3VyY2VzXCI6W10sXCJuYW1lc1wiOltdLFwibWFwcGluZ3NcIjpcIlwiLFwiZmlsZVwiOlwiaW1wb3J0ZXIudnVlXCIsXCJzb3VyY2VSb290XCI6XCJ3ZWJwYWNrOi8vXCJ9XSk7XG5cbi8vIGV4cG9ydHNcblxuXG5cbi8vLy8vLy8vLy8vLy8vLy8vL1xuLy8gV0VCUEFDSyBGT09URVJcbi8vIC4vfi9jc3MtbG9hZGVyP3NvdXJjZU1hcCEuL34vdnVlLWxvYWRlci9saWIvc3R5bGUtcmV3cml0ZXIuanM/aWQ9ZGF0YS12LTc4YjIzMWM2JnNjb3BlZD10cnVlIS4vfi92dWUtbG9hZGVyL2xpYi9zZWxlY3Rvci5qcz90eXBlPXN0eWxlcyZpbmRleD0wIS4vcmVzb3VyY2VzL2Fzc2V0cy9qcy9jb21wb25lbnRzL2ltcG9ydGVyL2ltcG9ydGVyLnZ1ZVxuLy8gbW9kdWxlIGlkID0gMjFcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOyIsInNvdXJjZVJvb3QiOiIifQ=="); /***/ }, /* 22 */ /***/ function(module, exports, __webpack_require__) { -eval("exports = module.exports = __webpack_require__(0)();\n// imports\n\n\n// module\nexports.push([module.i, \"\\n.action-link[data-v-50cddfe0] {\\n cursor: pointer;\\n}\\n.m-b-none[data-v-50cddfe0] {\\n margin-bottom: 0;\\n}\\n\", \"\", {\"version\":3,\"sources\":[\"/./resources/assets/js/components/passport/PersonalAccessTokens.vue?5734f4e4\"],\"names\":[],\"mappings\":\";AACA;IACA,gBAAA;CACA;AAEA;IACA,iBAAA;CACA\",\"file\":\"PersonalAccessTokens.vue\",\"sourcesContent\":[\"\\n\\n\\n\\n\\n\"],\"sourceRoot\":\"webpack://\"}]);\n\n// exports\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjIuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvYXNzZXRzL2pzL2NvbXBvbmVudHMvcGFzc3BvcnQvUGVyc29uYWxBY2Nlc3NUb2tlbnMudnVlPzFjYTEiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0cyA9IG1vZHVsZS5leHBvcnRzID0gcmVxdWlyZShcIi4vLi4vLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL2Nzcy1sb2FkZXIvbGliL2Nzcy1iYXNlLmpzXCIpKCk7XG4vLyBpbXBvcnRzXG5cblxuLy8gbW9kdWxlXG5leHBvcnRzLnB1c2goW21vZHVsZS5pZCwgXCJcXG4uYWN0aW9uLWxpbmtbZGF0YS12LTUwY2RkZmUwXSB7XFxuICAgIGN1cnNvcjogcG9pbnRlcjtcXG59XFxu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gICAgICAgIDwvc3Bhbj5cXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8YSBjbGFzcz1cXFwiYWN0aW9uLWxpbmtcXFwiIEBjbGljaz1cXFwic2hvd0NyZWF0ZVRva2VuRm9ybVxcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIENyZWF0ZSBOZXcgVG9rZW5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8L2E+XFxuICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgICAgICAgICAgPC9kaXY+XFxuXFxuICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XFxcInBhbmVsLWJvZHlcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgPCEtLSBObyBUb2tlbnMgTm90aWNlIC0tPlxcbiAgICAgICAgICAgICAgICAgICAgPHAgY2xhc3M9XFxcIm0tYi1ub25lXFxcIiB2LWlmPVxcXCJ0b2tlbnMubGVuZ3RoID09PSAwXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICBZb3UgaGF2ZSBub3QgY3JlYXRlZCBhbnkgcGVyc29uYWwgYWNjZXNzIHRva2Vucy5cXG4gICAgICAgICAgICAgICAgICAgIDwvcD5cXG5cXG4gICAgICAgICAgICAgICAgICAgIDwhLS0gUGVyc29uYWwgQWNjZXNzIFRva2VucyAtLT5cXG4gICAgICAgICAgICAgICAgICAgIDx0YWJsZSBjbGFzcz1cXFwidGFibGUgdGFibGUtYm9yZGVybGVzcyBtLWItbm9uZVxcXCIgdi1pZj1cXFwidG9rZW5zLmxlbmd0aCA+IDBcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgIDx0aGVhZD5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRyPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRoPk5hbWU8L3RoPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRoPjwvdGg+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdHI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgPC90aGVhZD5cXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8dGJvZHk+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ciB2LWZvcj1cXFwidG9rZW4gaW4gdG9rZW5zXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwhLS0gQ2xpZW50IE5hbWUgLS0+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQgc3R5bGU9XFxcInZlcnRpY2FsLWFsaWduOiBtaWRkbGU7XFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7eyB0b2tlbi5uYW1lIH19XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPlxcblxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPCEtLSBEZWxldGUgQnV0dG9uIC0tPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkIHN0eWxlPVxcXCJ2ZXJ0aWNhbC1hbGlnbjogbWlkZGxlO1xcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGEgY2xhc3M9XFxcImFjdGlvbi1saW5rIHRleHQtZGFuZ2VyXFxcIiBAY2xpY2s9XFxcInJldm9rZSh0b2tlbilcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBEZWxldGVcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2E+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPlxcbiAgICAgICAgICAgICAgICAgICAgICAgIDwvdGJvZHk+XFxuICAgICAgICAgICAgICAgICAgICA8L3RhYmxlPlxcbiAgICAgICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgICAgICA8L2Rpdj5c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gICAgICAgICAgICAgICAgICAgICAgICAgIDxwPjxzdHJvbmc+V2hvb3BzITwvc3Ryb25nPiBTb21ldGhpbmcgd2VudCB3cm9uZyE8L3A+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxicj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPHVsPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGxpIHYtZm9yPVxcXCJlcnJvciBpbiBmb3JtLmVycm9yc1xcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge3sgZXJyb3IgfX1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvbGk+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdWw+XFxuICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XFxuXFxuICAgICAgICAgICAgICAgICAgICAgICAgPCEtLSBDcmVhdGUgVG9rZW4gRm9ybSAtLT5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8Zm9ybSBjbGFzcz1cXFwiZm9ybS1ob3Jpem9udGFsXFxcIiByb2xlPVxcXCJmb3JtXFxcIiBAc3VibWl0LnByZXZlbnQ9XFxcInN0b3JlXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPCEtLSBOYW1lIC0tPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVxcXCJmb3JtLWdyb3VwXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxsYWJlbCBjbGFzcz1cXFwiY29sLW1kLTQgY29udHJvbC1sYWJlbFxcXCI+TmFtZTwvbGFiZWw+XFxuXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVxcXCJjb2wtbWQtNlxcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGlucHV0IGlkPVxcXCJjcmVhdGUtdG9rZW4tbmFtZVxcXCIgdHlwZT1cXFwidGV4dFxcXCIgY2xhc3M9XFxcImZvcm0tY29udHJvbFxcXCIgbmFtZT1cXFwibmFtZVxcXCIgdi1tb2RlbD1cXFwiZm9ybS5uYW1lXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPCEtLSBTY29wZXMgLS0+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XFxcImZvcm0tZ3JvdXBcXFwiIHYtaWY9XFxcInNjb3Blcy5sZW5ndGggPiAwXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxsYWJlbCBjbGFzcz1cXFwiY29sLW1kLTQgY29udHJvbC1sYWJlbFxcXCI+U2NvcGVzPC9sYWJlbD5cXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XFxcImNvbC1tZC02XFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IHYtZm9yPVxcXCJzY29wZSBpbiBzY29wZXNcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVxcXCJjaGVja2JveFxcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bGFiZWw+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGlucHV0IHR5cGU9XFxcImNoZWNrYm94XFxcIlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBAY2xpY2s9XFxcInRvZ2dsZVNjb3BlKHNjb3BlLmlkKVxcXCJcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgOmNoZWNrZWQ9XFxcInNjb3BlSXNBc3NpZ25lZChzY29wZS5pZClcXFwiPlxcblxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7eyBzY29wZS5pZCB9fVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9sYWJlbD5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XFxuICAgICAgICAgICAgICAgICAgICAgICAgPC9mb3JtPlxcbiAgICAgICAgICAgICAgICAgICAgPC9kaXY+XFxuXFxuICAgICAgICAgICAgICAgICAgICA8IS0tIE1vZGFsIEFjdGlvbnMgLS0+XFxuICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVxcXCJtb2RhbC1mb290ZXJcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgIDxidXR0b24gdHlwZT1cXFwiYnV0dG9uXFxcIiBjbGFzcz1cXFwiYnRuIGJ0bi1kZWZhdWx0XFxcIiBkYXRhLWRpc21pc3M9XFxcIm1vZGFsXFxcIj5DbG9zZTwvYnV0dG9uPlxcblxcbiAgICAgICAgICAgICAgICAgICAgICAgIDxidXR0b24gdHlwZT1cXFwiYnV0dG9uXFxcIiBjbGFzcz1cXFwiYnRuIGJ0bi1wcmltYXJ5XFxcIiBAY2xpY2s9XFxcInN0b3JlXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgQ3JlYXRlXFxuICAgICAgICAgICAgICAgICAgICAgICAgPC9idXR0b24+XFxuICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgICAgICAgICAgPC9kaXY+XFxuICAgICAgICAgICAgP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byBkb24ndCBsb3NlIGl0IVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBZb3UgbWF5IG5vdyB1c2UgdGhpcyB0b2tlbiB0byBtYWtlIEFQSSByZXF1ZXN0cy5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8L3A+XFxuXFxuICAgICAgICAgICAgICAgICAgICAgICAgPHByZT48Y29kZT57eyBhY2Nlc3NUb2tlbiB9fTwvY29kZT48L3ByZT5cXG4gICAgICAgICAgICAgICAgICAgIDwvZGl2PlxcblxcbiAgICAgICAgICAgICAgICAgICAgPCEtLSBNb2RhbCBBY3Rpb25zIC0tPlxcbiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cXFwibW9kYWwtZm9vdGVyXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8YnV0dG9uIHR5cGU9XFxcImJ1dHRvblxcXCIgY2xhc3M9XFxcImJ0biBidG4tZGVmYXVsdFxcXCIgZGF0YS1kaXNtaXNzPVxcXCJtb2RhbFxcXCI+Q2xvc2U8L2J1dHRvbj5cXG4gICAgICAgICAgICAgICAgICAgIDwvZGl2PlxcbiAgICAgICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgIDwvZGl2PlxcbiAgICA8L2Rpdj5cXG48L3RlbXBsYXRlPlxcblxcbjxzY3JpcHQ+XFxuICAgIGV4cG9ydCBkZWZhdWx0IHtcXG4gICAgICAgIC8qXFxuICAgICAgICAgKiBUaGUgY29tcG9uZW50J3MgZGF0YS5cXG4gICAgICAgICAqL1xcbiAgICAgICAgZGF0YSgpIHtcXG4gICAgICAgICAgICByZXR1cm4ge1xcbiAgICAgICAgICAgICAgICBhY2Nlc3NUb2tlbjogbnVsbCxcXG5cXG4gICAgICAgICAgICAgICAgdG9rZW5zOiBbXSxcXG4gICAgICAgICAgICAgICAgc2NvcGVzOiBbXSxcXG5cXG4gICAgICAgICAgICAgICAgZm9ybToge1xcbiAgICAgICAgICAgICAgICAgICAgbmFtZTogJycsXFxuICAgICAgICAgICAgICAgICAgICBzY29wZXM6IFtdLFxcbiAgICAgICAgICAgICAgICAgICAgZXJyb3JzOiBbXVxcbiAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgfTtcXG4gICAgICAgIH0sXFxuXFxuICAgICAgICAvKipcXG4gICAgICAgICAqIFByZXBhcmUgdGhlIGNvbXBvbmVudCAoVnVlIDEueCkuXFxuICAgICAgICAgKi9cXG4gICAgICAgIHJlYWR5KCkge1xcbiAgICAgICAgICAgIHRoaXMucHJlcGFyZUNvbXBvbmVudCgpO1xcbiAgICAgICAgfSxcXG5cXG4gICAgICAgIC8qKlxcbiAgICAgICAgICogUHJlcGFyZSB0aGUgY29tcG9uZW50IChWdWUgMi54KS5cXG4gICAgICAgICAqL1xcbiAgICAgICAgbW91bnRlZCgpIHtcXG4gICAgICAgICAgICB0aGlzLnByZXBhcmVDb21wb25lbnQoKTtcXG4gICAgICAgIH0sXFxuXFxuICAgICAgICBtZXRob2RzOiB7XFxuICAgICAgICAgICAgLyoqXFxuICAgICAgICAgICAgICogUHJlcGFyZSB0aGUgY29tcG9uZW50LlxcbiAgICAgICAgICAgICAqL1xcbiAgICAgICAgICAgIHByZXBhcmVDb21wb25lbnQoKSB7XFxuICAgICAgICAgICAgICAgIHRoaXMuZ2V0VG9rZW5zKCk7XFxuICAgICAgICAgICAgICAgIHRoaXMuZ2V0U2NvcGVzKCk7XFxuXFxuICAgICAgICAgICAgICAgICQoJyNtb2RhbC1jcmVhdGUtdG9rZW4nKS5vbignc2hvd24uYnMubW9kYWwnLCAoKSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAkKCcjY3JlYXRlLXRva2VuLW5hbWUnKS5mb2N1cygpO1xcbiAgICAgICAgICAgICAgICB9KTtcXG4gICAgICAgICAgICB9LFxcblxcbiAgICAgICAgICAgIC8qKlxcbiAgICAgICAgICAgICAqIEdldCBhbGwgb2YgdGhlIHBlcnNvbmFsIGFjY2VzcyB0b2tlbnMgZm9yIHRoZSB1c2VyLlxcbiAgICAgICAgICAgICAqL1xcbiAgICAgICAgICAgIGdldFRva2VucygpIHtcXG4gICAgICAgICAgICAgICAgdGhpcy4kaHR0cC5nZXQoJy9vYXV0aC9wZXJzb25hbC1hY2Nlc3MtdG9rZW5zJylcXG4gICAgICAgICAgICAgICAgICAgICAgICAudGhlbihyZXNwb25zZSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMudG9rZW5zID0gcmVzcG9uc2UuZGF0YTtcXG4gICAgICAgICAgICAgICAgICAgICAgICB9KTtcXG4gICAgICAgICAgICB9LFxcblxcbiAgICAgICAgICAgIC8qKlxcbiAgICAgICAgICAgICAqIEdldCBhbGwgb2YgdGhlIGF2YWlsYWJsZSBzY29wZXMuXFxuICAgICAgICAgICAgICovXFxuICAgICAgICAgICAgZ2V0U2NvcGVzKCkge1xcbiAgICAgICAgICAgICAgICB0aGlzLiRodHRwLmdldCgnL29hdXRoL3Njb3BlcycpXFxuICAgICAgICAgICAgICAgICAgICAgICAgLnRoZW4ocmVzcG9uc2UgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnNjb3BlcyA9IHJlc3BvbnNlLmRhdGE7XFxuICAgICAgICAgICAgICAgICAgICAgICAgfSk7XFxuICAgICAgICAgICAgfSxcXG5cXG4gICAgICAgICAgICAvKipcXG4gICAgICAgICAgICAgKiBTaG93IHRoZSBmb3JtIGZvciBjcmVhdGluZyBuZXcgdG9rZW5zLlxcbiAgICAgICAgICAgICAqL1xcbiAgICAgICAgICAgIHNob3dDcmVhdGVUb2tlbkZvcm0oKSB7XFxuICAgICAgICAgICAgICAgICQoJyNtb2RhbC1jcmVhdGUtdG9rZW4nKS5tb2RhbCgnc2hvdycpO1xcbiAgICAgICAgICAgIH0sXFxuXFxuICAgICAgICAgICAgLyoqXFxuICAgICAgICAgICAgICogQ3JlYXRlIGEgbmV3IHBlcnNvbmFsIGFjY2VzcyB0b2tlbi5cXG4gICAgICAgICAgICAgKi9cXG4gICAgICAgICAgICBzdG9yZSgpIHtcXG4gICAgICAgICAgICAgICAgdGhpcy5hY2Nlc3NUb2tlbiA9IG51bGw7XFxuXFxuICAgICAgICAgICAgICAgIHRoaXMuZm9ybS5lcnJvcnMgPSBbXTtcXG5cXG4gICAgICAgICAgICAgICAgdGhpcy4kaHR0cC5wb3N0KCcvb2F1dGgvcGVyc29uYWwtYWNjZXNzLXRva2VucycsIHRoaXMuZm9ybSlcXG4gICAgICAgICAgICAgICAgICAgICAgICAudGhlbihyZXNwb25zZSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuZm9ybS5uYW1lID0gJyc7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuZm9ybS5zY29wZXMgPSBbXTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5mb3JtLmVycm9ycyA9IFtdO1xcblxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnRva2Vucy5wdXNoKHJlc3BvbnNlLmRhdGEudG9rZW4pO1xcblxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnNob3dBY2Nlc3NUb2tlbihyZXNwb25zZS5kYXRhLmFjY2Vzc1Rva2VuKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICB9KVxcbiAgICAgICAgICAgICAgICAgICAgICAgIC5jYXRjaChyZXNwb25zZSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgcmVzcG9uc2UuZGF0YSA9PT0gJ29iamVjdCcpIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuZm9ybS5lcnJvcnMgPSBfLmZsYXR0ZW4oXy50b0FycmF5KHJlc3BvbnNlLmRhdGEpKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY29uc29sZS5kaXIodGhpcy5mb3JtKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuZm9ybS5lcnJvcnMgPSBbJ1NvbWV0aGluZyB3ZW50IHdyb25nLiBQbGVhc2UgdHJ5IGFnYWluLiddO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgfSk7XFxuICAgICAgICAgICAgfSxcXG5cXG4gICAgICAgICAgICAvKipcXG4gICAgICAgICAgICAgKiBUb2dnbGUgdGhlIGdpdmVuIHNjb3BlIGluIHRoZSBsaXN0IG9mIGFzc2lnbmVkIHNjb3Blcy5cXG4gICAgICAgICAgICAgKi9cXG4gICAgICAgICAgICB0b2dnbGVTY29wZShzY29wZSkge1xcbiAgICAgICAgICAgICAgICBpZiAodGhpcy5zY29wZUlzQXNzaWduZWQoc2NvcGUpKSB7XFxuICAgICAgICAgICAgICAgICAgICB0aGlzLmZvcm0uc2NvcGVzID0gXy5yZWplY3QodGhpcy5mb3JtLnNjb3BlcywgcyA9PiBzID09IHNjb3BlKTtcXG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuZm9ybS5zY29wZXMucHVzaChzY29wZSk7XFxuICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICB9LFxcblxcbiAgICAgICAgICAgIC8qKlxcbiAgICAgICAgICAgICAqIERldGVybWluZSBpZiB0aGUgZ2l2ZW4gc2NvcGUgaGFzIGJlZW4gYXNzaWduZWQgdG8gdGhlIHRva2VuLlxcbiAgICAgICAgICAgICAqL1xcbiAgICAgICAgICAgIHNjb3BlSXNBc3NpZ25lZChzY29wZSkge1xcbiAgICAgICAgICAgICAgICByZXR1cm4gXy5pbmRleE9mKHRoaXMuZm9ybS5zY29wZXMsIHNjb3BlKSA+PSAwO1xcbiAgICAgICAgICAgIH0sXFxuXFxuICAgICAgICAgICAgLyoqXFxuICAgICAgICAg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ZTAmc2NvcGVkPXRydWUhLi9+L3Z1ZS1sb2FkZXIvbGliL3NlbGVjdG9yLmpzP3R5cGU9c3R5bGVzJmluZGV4PTAhLi9yZXNvdXJjZXMvYXNzZXRzL2pzL2NvbXBvbmVudHMvcGFzc3BvcnQvUGVyc29uYWxBY2Nlc3NUb2tlbnMudnVlXG4vLyBtb2R1bGUgaWQgPSAyMlxuLy8gbW9kdWxlIGNodW5rcyA9IDAiXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Iiwic291cmNlUm9vdCI6IiJ9"); +eval("exports = module.exports = __webpack_require__(0)();\n// imports\n\n\n// module\nexports.push([module.i, \"\\n\\n\", \"\", {\"version\":3,\"sources\":[],\"names\":[],\"mappings\":\"\",\"file\":\"alert.vue\",\"sourceRoot\":\"webpack://\"}]);\n\n// exports\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjIuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvYXNzZXRzL2pzL2NvbXBvbmVudHMvYWxlcnQudnVlPzlmZTIiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0cyA9IG1vZHVsZS5leHBvcnRzID0gcmVxdWlyZShcIi4vLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL2Nzcy1sb2FkZXIvbGliL2Nzcy1iYXNlLmpzXCIpKCk7XG4vLyBpbXBvcnRzXG5cblxuLy8gbW9kdWxlXG5leHBvcnRzLnB1c2goW21vZHVsZS5pZCwgXCJcXG5cXG5cIiwgXCJcIiwge1widmVyc2lvblwiOjMsXCJzb3VyY2VzXCI6W10sXCJuYW1lc1wiOltdLFwibWFwcGluZ3NcIjpcIlwiLFwiZmlsZVwiOlwiYWxlcnQudnVlXCIsXCJzb3VyY2VSb290XCI6XCJ3ZWJwYWNrOi8vXCJ9XSk7XG5cbi8vIGV4cG9ydHNcblxuXG5cbi8vLy8vLy8vLy8vLy8vLy8vL1xuLy8gV0VCUEFDSyBGT09URVJcbi8vIC4vfi9jc3MtbG9hZGVyP3NvdXJjZU1hcCEuL34vdnVlLWxvYWRlci9saWIvc3R5bGUtcmV3cml0ZXIuanM/aWQ9ZGF0YS12LTdiNmZlZGIzJnNjb3BlZD10cnVlIS4vfi92dWUtbG9hZGVyL2xpYi9zZWxlY3Rvci5qcz90eXBlPXN0eWxlcyZpbmRleD0wIS4vcmVzb3VyY2VzL2Fzc2V0cy9qcy9jb21wb25lbnRzL2FsZXJ0LnZ1ZVxuLy8gbW9kdWxlIGlkID0gMjJcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOyIsInNvdXJjZVJvb3QiOiIifQ=="); /***/ }, /* 23 */ /***/ function(module, exports, __webpack_require__) { -eval("exports = module.exports = __webpack_require__(0)();\n// imports\n\n\n// module\nexports.push([module.i, \"\\n\\n\", \"\", {\"version\":3,\"sources\":[],\"names\":[],\"mappings\":\"\",\"file\":\"select2.vue\",\"sourceRoot\":\"webpack://\"}]);\n\n// exports\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvYXNzZXRzL2pzL2NvbXBvbmVudHMvc2VsZWN0Mi52dWU/YmE2ZCJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnRzID0gbW9kdWxlLmV4cG9ydHMgPSByZXF1aXJlKFwiLi8uLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvY3NzLWxvYWRlci9saWIvY3NzLWJhc2UuanNcIikoKTtcbi8vIGltcG9ydHNcblxuXG4vLyBtb2R1bGVcbmV4cG9ydHMucHVzaChbbW9kdWxlLmlkLCBcIlxcblxcblwiLCBcIlwiLCB7XCJ2ZXJzaW9uXCI6MyxcInNvdXJjZXNcIjpbXSxcIm5hbWVzXCI6W10sXCJtYXBwaW5nc1wiOlwiXCIsXCJmaWxlXCI6XCJzZWxlY3QyLnZ1ZVwiLFwic291cmNlUm9vdFwiOlwid2VicGFjazovL1wifV0pO1xuXG4vLyBleHBvcnRzXG5cblxuXG4vLy8vLy8vLy8vLy8vLy8vLy9cbi8vIFdFQlBBQ0sgRk9PVEVSXG4vLyAuL34vY3NzLWxvYWRlcj9zb3VyY2VNYXAhLi9+L3Z1ZS1sb2FkZXIvbGliL3N0eWxlLXJld3JpdGVyLmpzP2lkPWRhdGEtdi01ZDYxNmM1YiZzY29wZWQ9dHJ1ZSEuL34vdnVlLWxvYWRlci9saWIvc2VsZWN0b3IuanM/dHlwZT1zdHlsZXMmaW5kZXg9MCEuL3Jlc291cmNlcy9hc3NldHMvanMvY29tcG9uZW50cy9zZWxlY3QyLnZ1ZVxuLy8gbW9kdWxlIGlkID0gMjNcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOyIsInNvdXJjZVJvb3QiOiIifQ=="); +eval("exports = module.exports = __webpack_require__(0)();\n// imports\n\n\n// module\nexports.push([module.i, \"\\n\\n\", \"\", {\"version\":3,\"sources\":[],\"names\":[],\"mappings\":\"\",\"file\":\"importer-errors.vue\",\"sourceRoot\":\"webpack://\"}]);\n\n// exports\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvYXNzZXRzL2pzL2NvbXBvbmVudHMvaW1wb3J0ZXIvaW1wb3J0ZXItZXJyb3JzLnZ1ZT9jMmZiIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydHMgPSBtb2R1bGUuZXhwb3J0cyA9IHJlcXVpcmUoXCIuLy4uLy4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy9jc3MtbG9hZGVyL2xpYi9jc3MtYmFzZS5qc1wiKSgpO1xuLy8gaW1wb3J0c1xuXG5cbi8vIG1vZHVsZVxuZXhwb3J0cy5wdXNoKFttb2R1bGUuaWQsIFwiXFxuXFxuXCIsIFwiXCIsIHtcInZlcnNpb25cIjozLFwic291cmNlc1wiOltdLFwibmFtZXNcIjpbXSxcIm1hcHBpbmdzXCI6XCJcIixcImZpbGVcIjpcImltcG9ydGVyLWVycm9ycy52dWVcIixcInNvdXJjZVJvb3RcIjpcIndlYnBhY2s6Ly9cIn1dKTtcblxuLy8gZXhwb3J0c1xuXG5cblxuLy8vLy8vLy8vLy8vLy8vLy8vXG4vLyBXRUJQQUNLIEZPT1RFUlxuLy8gLi9+L2Nzcy1sb2FkZXI/c291cmNlTWFwIS4vfi92dWUtbG9hZGVyL2xpYi9zdHlsZS1yZXdyaXRlci5qcz9pZD1kYXRhLXYtYmQxY2RjZmMmc2NvcGVkPXRydWUhLi9+L3Z1ZS1sb2FkZXIvbGliL3NlbGVjdG9yLmpzP3R5cGU9c3R5bGVzJmluZGV4PTAhLi9yZXNvdXJjZXMvYXNzZXRzL2pzL2NvbXBvbmVudHMvaW1wb3J0ZXIvaW1wb3J0ZXItZXJyb3JzLnZ1ZVxuLy8gbW9kdWxlIGlkID0gMjNcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOyIsInNvdXJjZVJvb3QiOiIifQ=="); /***/ }, /* 24 */ /***/ function(module, exports, __webpack_require__) { -eval("exports = module.exports = __webpack_require__(0)();\n// imports\n\n\n// module\nexports.push([module.i, \"\\n\\n\", \"\", {\"version\":3,\"sources\":[],\"names\":[],\"mappings\":\"\",\"file\":\"importer.vue\",\"sourceRoot\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O0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOyIsInNvdXJjZVJvb3QiOiIifQ=="); +eval("exports = module.exports = __webpack_require__(0)();\n// imports\n\n\n// module\nexports.push([module.i, \"\\n.action-link[data-v-cb459f5c] {\\n cursor: pointer;\\n}\\n.m-b-none[data-v-cb459f5c] {\\n margin-bottom: 0;\\n}\\n\", \"\", {\"version\":3,\"sources\":[\"/./resources/assets/js/components/passport/PersonalAccessTokens.vue?5734f4e4\"],\"names\":[],\"mappings\":\";AACA;IACA,gBAAA;CACA;AAEA;IACA,iBAAA;CACA\",\"file\":\"PersonalAccessTokens.vue\",\"sourcesContent\":[\"\\n\\n\\n\\n\\n\"],\"sourceRoot\":\"webpack://\"}]);\n\n// exports\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjQuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvYXNzZXRzL2pzL2NvbXBvbmVudHMvcGFzc3BvcnQvUGVyc29uYWxBY2Nlc3NUb2tlbnMudnVlP2RiZTQiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0cyA9IG1vZHVsZS5leHBvcnRzID0gcmVxdWlyZShcIi4vLi4vLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL2Nzcy1sb2FkZXIvbGliL2Nzcy1iYXNlLmpzXCIpKCk7XG4vLyBpbXBvcnRzXG5cblxuLy8gbW9kdWxlXG5leHBvcnRzLnB1c2goW21vZHVsZS5pZCwgXCJcXG4uYWN0aW9uLWxpbmtbZGF0YS12LWNiNDU5ZjVjXSB7XFxuICAgIGN1cnNvcjogcG9pbnRlcjtcXG59XFxuLm0tYi1ub25lW2RhdGEtdi1jYjQ1OWY1Y10ge1xcbiAgICBtYXJnaW4tYm90dG9tOiAwO1xcbn1cXG5cIiwgXCJcIiwge1widmVyc2lvblwiOjMsXCJzb3VyY2VzXCI6W1wiLy4vcm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XCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIENyZWF0ZSBOZXcgVG9rZW5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8L2E+XFxuICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgICAgICAgICAgPC9kaXY+XFxuXFxuICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XFxcInBhbmVsLWJvZHlcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgPCEtLSBObyBUb2tlbnMgTm90aWNlIC0tPlxcbiAgICAgICAgICAgICAgICAgICAgPHAgY2xhc3M9XFxcIm0tYi1ub25lXFxcIiB2LWlmPVxcXCJ0b2tlbnMubGVuZ3RoID09PSAwXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICBZb3UgaGF2ZSBub3QgY3JlYXRlZCBhbnkgcGVyc29uYWwgYWNjZXNzIHRva2Vucy5cXG4gICAgICAgICAgICAgICAgICAgIDwvcD5cXG5cXG4gICAgICAgICAgICAgICAgICAgIDwhLS0gUGVyc29uYWwgQWNjZXNzIFRva2VucyAtLT5cXG4gICAgICAgICAgICAgICAgICAgIDx0YWJsZSBjbGFzcz1cXFwidGFibGUgdGFibGUtYm9yZGVybGVzcyBtLWItbm9uZVxcXCIgdi1pZj1cXFwidG9rZW5zLmxlbmd0aCA+IDBcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgIDx0aGVhZD5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRyPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRoPk5hbWU8L3RoPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRoPjwvdGg+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdHI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgPC90aGVhZD5cXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8dGJvZHk+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ciB2LWZvcj1cXFwidG9rZW4gaW4gdG9rZW5zXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwhLS0gQ2xpZW50IE5hbWUgLS0+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQgc3R5bGU9XFxcInZlcnRpY2FsLWFsaWduOiBtaWRkbGU7XFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7eyB0b2tlbi5uYW1lIH19XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPlxcblxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPCEtLSBEZWxldGUgQnV0dG9uIC0tPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkIHN0eWxlPVxcXCJ2ZXJ0aWNhbC1hbGlnbjogbWlkZGxlO1xcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGEgY2xhc3M9XFxcImFjdGlvbi1saW5rIHRleHQtZGFuZ2VyXFxcIiBAY2xpY2s9XFxcInJldm9rZSh0b2tlbilcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBEZWxldGVcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2E+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPlxcbiAgICAgICAgICAgICAgICAgICAgICAgIDwvdGJvZHk+XFxuICAgICAgICAgICAgICAgICAgICA8L3RhYmxlPlxcbiAgICAgICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgIDwvZGl2PlxcblxcbiAgICAgICAgPCEtLSBDcmVhdGUgVG9rZW4gTW9kYWwgLS0+XFxuICAgICAgICA8ZGl2IGNsYXNzPVxcXCJtb2RhbCBmYWRlXFxcIiBpZD1cXFwibW9kYWwtY3JlYXRlLXRva2VuXFxcIiB0YWJpbmRleD1cXFwiLTFcXFwiIHJvbGU9XFxcImRpYWxvZ1xcXCI+XFxuICAgICAgICAgICAgPGRpdiBjbGFzcz1cXFwibW9kYWwtZGlhbG9nXFxcIj5cXG4gICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cXFwibW9kYWwtY29udGVudFxcXCI+XFxuICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVxcXCJtb2RhbC1oZWFkZXJcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgIDxidXR0b24gdHlwZT1cXFwiYnV0dG9uIFxcXCIgY2xhc3M9XFxcImNsb3NlXFxcIiBkYXRhLWRpc21pc3M9XFxcIm1vZGFsXFxcIiBhcmlhLWhpZGRlbj1cXFwidHJ1ZVxcXCI+JnRpbWVzOzwvYnV0dG9uPlxcblxcbiAgICAgICAgICAgICAgICAgICAgICAgIDxoNCBjbGFzcz1cXFwibW9kYWwtdGl0bGVcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBDcmVhdGUgVG9rZW5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8L2g0PlxcbiAgICAgICAgICAgICAgICAgICAgPC9kaXY+XFxuXFxuICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVxcXCJtb2RhbC1ib2R5XFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8IS0tIEZvcm0gRXJyb3JzIC0tPlxcbiAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XFxcImFsZXJ0IGFsZXJ0LWRhbmdlclxcXCIgdi1pZj1cXFwiZm9ybS5lcnJvcnMubGVuZ3RoID4gMFxcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxwPjxzdHJvbmc+V2hvb3BzITwvc3Ryb25nPiBTb21ldGhpbmcgd2VudCB3cm9uZyE8L3A+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxicj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPHVsPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGxpIHYtZm9yPVxcXCJlcnJvciBpbiBmb3JtLmVycm9yc1xcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge3sgZXJyb3IgfX1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvbGk+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdWw+XFxuICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XFxuXFxuICAgICAgICAgICAgICAgICAgICAgICAgPCEtLSBDcmVhdGUgVG9rZW4gRm9ybSAtLT5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8Zm9ybSBjbGFzcz1cXFwiZm9ybS1ob3Jpem9udGFsXFxcIiByb2xlPVxcXCJmb3JtXFxcIiBAc3VibWl0LnByZXZlbnQ9XFxcInN0b3JlXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPCEtLSBOYW1lIC0tPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVxcXCJmb3JtLWdyb3VwXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxsYWJlbCBjbGFzcz1cXFwiY29sLW1kLTQgY29udHJvbC1sYWJlbFxcXCI+TmFtZTwvbGFiZWw+XFxuXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVxcXCJjb2wtbWQtNlxcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGlucHV0IGlkPVxcXCJjcmVhdGUtdG9rZW4tbmFtZVxcXCIgdHlwZT1cXFwidGV4dFxcXCIgY2xhc3M9XFxcImZvcm0tY29udHJvbFxcXCIgbmFtZT1cXFwibmFtZVxcXCIgdi1tb2RlbD1cXFwiZm9ybS5uYW1lXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPCEtLSBTY29wZXMgLS0+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XFxcImZvcm0tZ3JvdXBcXFwiIHYtaWY9XFxcInNjb3Blcy5sZW5ndGggPiAwXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxsYWJlbCBjbGFzcz1cXFwiY29sLW1kLTQgY29udHJvbC1sYWJlbFxcXCI+U2NvcGVzPC9sYWJlbD5cXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XFxcImNvbC1tZC02XFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IHYtZm9yPVxcXCJzY29wZSBpbiBzY29wZXNcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVxcXCJjaGVja2JveFxcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bGFiZWw+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGlucHV0IHR5cGU9XFxcImNoZWNrYm94XFxcIlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBAY2xpY2s9XFxcInRvZ2dsZVNjb3BlKHNjb3BlLmlkKVxcXCJcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgOmNoZWNrZWQ9XFxcInNjb3BlSXNBc3NpZ25lZChzY29wZS5pZClcXFwiPlxcblxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7eyBzY29wZS5pZCB9fVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9sYWJlbD5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XFxuICAgICAgICAgICAgICAgICAgICAgICAgPC9mb3JtPlxcbiAgICAgICAgICAgICAgICAgICAgPC9kaXY+XFxuXFxuICAgICAgICAgICAgICAgICAgICA8IS0tIE1vZGFsIEFjdGlvbnMgLS0+XFxuICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVxcXCJtb2RhbC1mb290ZXJcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgIDxidXR0b24gdHlwZT1cXFwiYnV0dG9uXFxcIiBjbGFzcz1cXFwiYnRuIGJ0bi1kZWZhdWx0XFxcIiBkYXRhLWRpc21pc3M9XFxcIm1vZGFsXFxcIj5DbG9zZTwvYnV0dG9uPlxcblxcbiAgICAgICAgICAgICAgICAgICAgICAgIDxidXR0b24gdHlwZT1cXFwiYnV0dG9uXFxcIiBjbGFzcz1cXFwiYnRuIGJ0bi1wcmltYXJ5XFxcIiBAY2xpY2s9XFxcInN0b3JlXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgQ3JlYXRlXFxuICAgICAgICAgICAgICAgICAgICAgICAgPC9idXR0b24+XFxuICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgICAgICAgICAgPC9kaXY+XFxuICAgICAgICAgICAgPC9kaXY+XFxuICAgICAgICA8L2Rpdj5cXG5cXG4gICAgICAgIDwhLS0gQWNjZXNzIFRva2VuIE1vZGFsIC0tPlxcbiAgICAgICAgPGRpdiBjbGFzcz1cXFwibW9kYWwgZmFkZVxcXCIgaWQ9XFxcIm1vZGFsLWFjY2Vzcy10b2tlblxcXCIgdGFiaW5kZXg9XFxcIi0xXFxcIiByb2xlPVxcXCJkaWFsb2dcXFwiPlxcbiAgICAgICAgICAgIDxkaXYgY2xhc3M9XFxcIm1vZGFsLWRpYWxvZ1xcXCI+XFxuICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XFxcIm1vZGFsLWNvbnRlbnRcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cXFwibW9kYWwtaGVhZGVyXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8YnV0dG9uIHR5cGU9XFxcImJ1dHRvbiBcXFwiIGNsYXNzPVxcXCJjbG9zZVxcXCIgZGF0YS1kaXNtaXNzPVxcXCJtb2RhbFxcXCIgYXJpYS1oaWRkZW49XFxcInRydWVcXFwiPiZ0aW1lczs8L2J1dHRvbj5cXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8aDQgY2xhc3M9XFxcIm1vZGFsLXRpdGxlXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgUGVyc29uYWwgQWNjZXNzIFRva2VuXFxuICAgICAgICAgICAgICAgICAgICAgICAgPC9oND5cXG4gICAgICAgICAgICAgICAgICAgIDwvZGl2PlxcblxcbiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cXFwibW9kYWwtYm9keVxcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgPHA+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIEhlcmUgaXMgeW91ciBuZXcgcGVyc29uYWwgYWNjZXNzIHRva2VuLiBUaGlzIGlzIHRoZSBvbmx5IHRpbWUgaXQgd2lsbCBiZSBzaG93biBzbyBkb24ndCBsb3NlIGl0IVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBZb3UgbWF5IG5vdyB1c2UgdGhpcyB0b2tlbiB0byBtYWtlIEFQSSByZXF1ZXN0cy5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8L3A+XFxuXFxuICAgICAgICAgICAgICAgICAgICAgICAgPHByZT48Y29kZT57eyBhY2Nlc3NUb2tlbiB9fTwvY29kZT48L3ByZT5cXG4gICAgICAgICAgICAgICAgICAgIDwvZGl2PlxcblxcbiAgICAgICAgICAgICAgICAgICAgPCEtLSBNb2RhbCBBY3Rpb25zIC0tPlxcbiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cXFwibW9kYWwtZm9vdGVyXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8YnV0dG9uIHR5cGU9XFxcImJ1dHRvblxcXCIgY2xhc3M9XFxcImJ0biBidG4tZGVmYXVsdFxcXCIgZGF0YS1kaXNtaXNzPVxcXCJtb2RhbFxcXCI+Q2xvc2U8L2J1dHRvbj5cXG4gICAgICAgICAgICAgICAgICAgIDwvZGl2PlxcbiAgICAgICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgIDwvZGl2PlxcbiAgICA8L2Rpdj5cXG48L3RlbXBsYXRlPlxcblxcbjxzY3JpcHQ+XFxuICAgIGV4cG9ydCBkZWZhdWx0IHtcXG4gICAgICAgIC8qXFxuICAgICAgICAgKiBUaGUgY29tcG9uZW50J3MgZGF0YS5cXG4gICAgICAgICAqL1xcbiAgICAgICAgZGF0YSgpIHtcXG4gICAgICAgICAgICByZXR1cm4ge1xcbiAgICAgICAgICAgICAgICBhY2Nlc3NUb2tlbjogbnVsbCxcXG5cXG4gICAgICAgICAgICAgICAgdG9rZW5zOiBbXSxcXG4gICAgICAgICAgICAgICAgc2NvcGVzOiBbXSxcXG5cXG4gICAgICAgICAgICAgICAgZm9ybToge1xcbiAgICAgICAgICAgICAgICAgICAgbmFtZTogJycsXFxuICAgICAgICAgICAgICAgICAgICBzY29wZXM6IFtdLFxcbiAgICAgICAgICAgICAgICAgICAgZXJyb3JzOiBbXVxcbiAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgfTtcXG4gICAgICAgIH0sXFxuXFxuICAgICAgICAvKipcXG4gICAgICAgICAqIFByZXBhcmUgdGhlIGNvbXBvbmVudCAoVnVlIDEueCkuXFxuICAgICAgICAgKi9cXG4gICAgICAgIHJlYWR5KCkge1xcbiAgICAgICAgICAgIHRoaXMucHJlcGFyZUNvbXBvbmVudCgpO1xcbiAgICAgICAgfSxcXG5cXG4gICAgICAgIC8qKlxcbiAgICAgICAgICogUHJlcGFyZSB0aGUgY29tcG9uZW50IChWdWUgMi54KS5cXG4gICAgICAgICAqL1xcbiAgICAgICAgbW91bnRlZCgpIHtcXG4gICAgICAgICAgICB0aGlzLnByZXBhcmVDb21wb25lbnQoKTtcXG4gICAgICAgIH0sXFxuXFxuICAgICAgICBtZXRob2RzOiB7XFxuICAgICAgICAgICAgLyoqXFxuICAgICAgICAgICAgICogUHJlcGFyZSB0aGUgY29tcG9uZW50LlxcbiAgICAgICAgICAgICAqL1xcbiAgICAgICAgICAgIHByZXBhcmVDb21wb25lbnQoKSB7XFxuICAgICAgICAgICAgICAgIHRoaXMuZ2V0VG9rZW5zKCk7XFxuICAgICAgICAgICAgICAgIHRoaXMuZ2V0U2NvcGVzKCk7XFxuXFxuICAgICAgICAgICAgICAgICQoJyNtb2RhbC1jcmVhdGUtdG9rZW4nKS5vbignc2hvd24uYnMubW9kYWwnLCAoKSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAkKCcjY3JlYXRlLXRva2VuLW5hbWUnKS5mb2N1cygpO1xcbiAgICAgICAgICAgICAgICB9KTtcXG4gICAgICAgICAgICB9LFxcblxcbiAgICAgICAgICAgIC8qKlxcbiAgICAgICAgICAgICAqIEdldCBhbGwgb2YgdGhlIHBlcnNvbmFsIGFjY2VzcyB0b2tlbnMgZm9yIHRoZSB1c2VyLlxcbiAgICAgICAgICAgICAqL1xcbiAgICAgICAgICAgIGdldFRva2VucygpIHtcXG4gICAgICAgICAgICAgICAgdGhpcy4kaHR0cC5nZXQoJy9vYXV0aC9wZXJzb25hbC1hY2Nlc3MtdG9rZW5zJylcXG4gICAgICAgICAgICAgICAgICAgICAgICAudGhlbihyZXNwb25zZSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMudG9rZW5zID0gcmVzcG9uc2UuZGF0YTtcXG4gICAgICAgICAgICAgICAgICAgICAgICB9KTtcXG4gICAgICAgICAgICB9LFxcblxcbiAgICAgICAgICAgIC8qKlxcbiAgICAgICAgICAgICAqIEdldCBhbGwgb2YgdGhlIGF2YWlsYWJsZSBzY29wZXMuXFxuICAgICAgICAgICAgICovXFxuICAgICAgICAgICAgZ2V0U2NvcGVzKCkge1xcbiAgICAgICAgICAgICAgICB0aGlzLiRodHRwLmdldCgnL29hdXRoL3Njb3BlcycpXFxuICAgICAgICAgICAgICAgICAgICAgICAgLnRoZW4ocmVzcG9uc2UgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnNjb3BlcyA9IHJlc3BvbnNlLmRhdGE7XFxuICAgICAgICAgICAgICAgICAgICAgICAgfSk7XFxuICAgICAgICAgICAgfSxcXG5cXG4gICAgICAgICAgICAvKipcXG4gICAgICAgICAgICAgKiBTaG93IHRoZSBmb3JtIGZvciBjcmVhdGluZyBuZXcgdG9rZW5zLlxcbiAgICAgICAgICAgICAqL1xcbiAgICAgICAgICAgIHNob3dDcmVhdGVUb2tlbkZvcm0oKSB7XFxuICAgICAgICAgICAgICAgICQoJyNtb2RhbC1jcmVhdGUtdG9rZW4nKS5tb2RhbCgnc2hvdycpO1xcbiAgICAgICAgICAgIH0sXFxuXFxuICAgICAgICAgICAgLyoqXFxuICAgICAgICAgICAgICogQ3JlYXRlIGEgbmV3IHBlcnNvbmFsIGFjY2VzcyB0b2tlbi5cXG4gICAgICAgICAgICAgKi9cXG4gICAgICAgICAgICBzdG9yZSgpIHtcXG4gICAgICAgICAgICAgICAgdGhpcy5hY2Nlc3NUb2tlbiA9IG51bGw7XFxuXFxuICAgICAgICAgICAgICAgIHRoaXMuZm9ybS5lcnJvcnMgPSBbXTtcXG5cXG4gICAgICAgICAgICAgICAgdGhpcy4kaHR0cC5wb3N0KCcvb2F1dGgvcGVyc29uYWwtYWNjZXNzLXRva2VucycsIHRoaXMuZm9ybSlcXG4gICAgICAgICAgICAgICAgICAgICAgICAudGhlbihyZXNwb25zZSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuZm9ybS5uYW1lID0gJyc7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuZm9ybS5zY29wZXMgPSBbXTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5mb3JtLmVycm9ycyA9IFtdO1xcblxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnRva2Vucy5wdXNoKHJlc3BvbnNlLmRhdGEudG9rZW4pO1xcblxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnNob3dBY2Nlc3NUb2tlbihyZXNwb25zZS5kYXRhLmFjY2Vzc1Rva2VuKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICB9KVxcbiAgICAgICAgICAgICAgICAgICAgICAgIC5jYXRjaChyZXNwb25zZSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgcmVzcG9uc2UuZGF0YSA9PT0gJ29iamVjdCcpIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuZm9ybS5lcnJvcnMgPSBfLmZsYXR0ZW4oXy50b0FycmF5KHJlc3BvbnNlLmRhdGEpKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY29uc29sZS5kaXIodGhpcy5mb3JtKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuZm9ybS5lcnJvcnMgPSBbJ1NvbWV0aGluZyB3ZW50IHdyb25nLiBQbGVhc2UgdHJ5IGFnYWluLiddO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgfSk7XFxuICAgICAgICAgICAgfSxcXG5cXG4gICAgICAgICAgICAvKipcXG4gICAgICAgICAgICAgKiBUb2dnbGUgdGhlIGdpdmVuIHNjb3BlIGluIHRoZSBsaXN0IG9mIGFzc2lnbmVkIHNjb3Blcy5cXG4gICAgICAgICAgICAgKi9cXG4gICAgICAgICAgICB0b2dnbGVTY29wZShzY29wZSkge1xcbiAgICAgICAgICAgICAgICBpZiAodGhpcy5zY29wZUlzQXNzaWduZWQoc2NvcGUpKSB7XFxuICAgICAgICAgICAgICAgICAgICB0aGlzLmZvcm0uc2NvcGVzID0gXy5yZWplY3QodGhpcy5mb3JtLnNjb3BlcywgcyA9PiBzID09IHNjb3BlKTtcXG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuZm9ybS5zY29wZXMucHVzaChzY29wZSk7XFxuICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICB9LFxcblxcbiAgICAgICAgICAgIC8qKlxcbiAgICAgICAgICAgICAqIERldGVybWluZSBpZiB0aGUgZ2l2ZW4gc2NvcGUgaGFzIGJlZW4gYXNzaWduZWQgdG8gdGhlIHRva2VuLlxcbiAgICAgICAgICAgICAqL1xcbiAgICAgICAgICAgIHNjb3BlSXNBc3NpZ25lZChzY29wZSkge1xcbiAgICAgICAgICAgICAgICByZXR1cm4gXy5pbmRleE9mKHRoaXMuZm9ybS5zY29wZXMsIHNjb3BlKSA+PSAwO1xcbiAgICAgICAgICAgIH0sXFxuXFxuICAgICAgICAgICAgLyoqXFxuICAgICAgICAgICAgICogU2hvdyB0aGUgZ2l2ZW4gYWNjZXNzIHRva2VuIHRvIHRoZSB1c2VyLlxcbiAgICAgICAgICAgICAqL1xcbiAgICAgICAgICAgIHNob3dBY2Nlc3NUb2tlbihhY2Nlc3NUb2t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cGFzc3BvcnQvUGVyc29uYWxBY2Nlc3NUb2tlbnMudnVlXG4vLyBtb2R1bGUgaWQgPSAyNFxuLy8gbW9kdWxlIGNodW5rcyA9IDAiXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Iiwic291cmNlUm9vdCI6IiJ9"); /***/ }, /* 25 */ /***/ function(module, exports, __webpack_require__) { -eval("exports = module.exports = __webpack_require__(0)();\n// imports\n\n\n// module\nexports.push([module.i, \"\\n\\n\", \"\", {\"version\":3,\"sources\":[],\"names\":[],\"mappings\":\"\",\"file\":\"importer-errors.vue\",\"sourceRoot\":\"webpack://\"}]);\n\n// exports\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjUuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvYXNzZXRzL2pzL2NvbXBvbmVudHMvaW1wb3J0ZXIvaW1wb3J0ZXItZXJyb3JzLnZ1ZT85M2MyIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydHMgPSBtb2R1bGUuZXhwb3J0cyA9IHJlcXVpcmUoXCIuLy4uLy4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy9jc3MtbG9hZGVyL2xpYi9jc3MtYmFzZS5qc1wiKSgpO1xuLy8gaW1wb3J0c1xuXG5cbi8vIG1vZHVsZVxuZXhwb3J0cy5wdXNoKFttb2R1bGUuaWQsIFwiXFxuXFxuXCIsIFwiXCIsIHtcInZlcnNpb25cIjozLFwic291cmNlc1wiOltdLFwibmFtZXNcIjpbXSxcIm1hcHBpbmdzXCI6XCJcIixcImZpbGVcIjpcImltcG9ydGVyLWVycm9ycy52dWVcIixcInNvdXJjZVJvb3RcIjpcIndlYnBhY2s6Ly9cIn1dKTtcblxuLy8gZXhwb3J0c1xuXG5cblxuLy8vLy8vLy8vLy8vLy8vLy8vXG4vLyBXRUJQQUNLIEZPT1RFUlxuLy8gLi9+L2Nzcy1sb2FkZXI/c291cmNlTWFwIS4vfi92dWUtbG9hZGVyL2xpYi9zdHlsZS1yZXdyaXRlci5qcz9pZD1kYXRhLXYtYjQwZTNkOTgmc2NvcGVkPXRydWUhLi9+L3Z1ZS1sb2FkZXIvbGliL3NlbGVjdG9yLmpzP3R5cGU9c3R5bGVzJmluZGV4PTAhLi9yZXNvdXJjZXMvYXNzZXRzL2pzL2NvbXBvbmVudHMvaW1wb3J0ZXIvaW1wb3J0ZXItZXJyb3JzLnZ1ZVxuLy8gbW9kdWxlIGlkID0gMjVcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOyIsInNvdXJjZVJvb3QiOiIifQ=="); +eval("exports = module.exports = __webpack_require__(0)();\n// imports\n\n\n// module\nexports.push([module.i, \"\\n.action-link[data-v-e7598638] {\\n cursor: pointer;\\n}\\n.m-b-none[data-v-e7598638] {\\n margin-bottom: 0;\\n}\\n\", \"\", {\"version\":3,\"sources\":[\"/./resources/assets/js/components/passport/Clients.vue?35867ce4\"],\"names\":[],\"mappings\":\";AACA;IACA,gBAAA;CACA;AAEA;IACA,iBAAA;CACA\",\"file\":\"Clients.vue\",\"sourcesContent\":[\"\\n\\n\\n\\n\\n\"],\"sourceRoot\":\"webpack://\"}]);\n\n// exports\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjUuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvYXNzZXRzL2pzL2NvbXBvbmVudHMvcGFzc3BvcnQvQ2xpZW50cy52dWU/YzY2MCJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnRzID0gbW9kdWxlLmV4cG9ydHMgPSByZXF1aXJlKFwiLi8uLi8uLi8uLi8uLi8uLi9ub2R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RlcjtcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgPHNwYW4+XFxuICAgICAgICAgICAgICAgICAgICAgICAgT0F1dGggQ2xpZW50c1xcbiAgICAgICAgICAgICAgICAgICAgPC9zcGFuPlxcblxcbiAgICAgICAgICAgICAgICAgICAgPGEgY2xhc3M9XFxcImFjdGlvbi1saW5rXFxcIiBAY2xpY2s9XFxcInNob3dDcmVhdGVDbGllbnRGb3JtXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICBDcmVhdGUgTmV3IENsaWVudFxcbiAgICAgICAgICAgICAgICAgICAgPC9hPlxcbiAgICAgICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgICAgICA8L2Rpdj5cXG5cXG4gICAgICAgICAgICA8ZGl2IGNsYXNzPVxcXCJwYW5lbC1ib2R5XFxcIj5cXG4gICAgICAgICAgICAgICAgPCEtLSBDdXJyZW50IENsaWVudHMgLS0+XFxuICAgICAgICAgICAgICAgIDxwIGNsYXNzPVxcXCJtLWItbm9uZVxcXCIgdi1pZj1cXFwiY2xpZW50cy5sZW5ndGggPT09IDBcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgWW91IGhhdmUgbm90IGNyZWF0ZWQgYW55IE9BdXRoIGNsaWVudHMuXFxuICAgICAgICAgICAgICAgIDwvcD5cXG5cXG4gICAgICAgICAgICAgICAgPHRhYmxlIGNsYXNzPVxcXCJ0YWJsZSB0YWJsZS1ib3JkZXJsZXNzIG0tYi1ub25lXFxcIiB2LWlmPVxcXCJjbGllbnRzLmxlbmd0aCA+IDBcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgPHRoZWFkPlxcbiAgICAgICAgICAgICAgICAgICAgICAgIDx0cj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRoPkNsaWVudCBJRDwvdGg+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0aD5OYW1lPC90aD5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRoPlNlY3JldDwvdGg+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0aD48L3RoPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGg+PC90aD5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8L3RyPlxcbiAgICAgICAgICAgICAgICAgICAgPC90aGVhZD5cXG5cXG4gICAgICAgICAgICAgICAgICAgIDx0Ym9keT5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8dHIgdi1mb3I9XFxcImNsaWVudCBpbiBjbGllbnRzXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPCEtLSBJRCAtLT5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkIHN0eWxlPVxcXCJ2ZXJ0aWNhbC1hbGlnbjogbWlkZGxlO1xcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7eyBjbGllbnQuaWQgfX1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD5cXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPCEtLSBOYW1lIC0tPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQgc3R5bGU9XFxcInZlcnRpY2FsLWFsaWduOiBtaWRkbGU7XFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHt7IGNsaWVudC5uYW1lIH19XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+XFxuXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwhLS0gU2VjcmV0IC0tPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQgc3R5bGU9XFxcInZlcnRpY2FsLWFsaWduOiBtaWRkbGU7XFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxjb2RlPnt7IGNsaWVudC5zZWNyZXQgfX08L2NvZGU+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+XFxuXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwhLS0gRWRpdCBCdXR0b24gLS0+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZCBzdHlsZT1cXFwidmVydGljYWwtYWxpZ246IG1pZGRsZTtcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGEgY2xhc3M9XFxcImFjdGlvbi1saW5rXFxcIiBAY2xpY2s9XFxcImVkaXQoY2xpZW50KVxcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgRWRpdFxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9hPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPlxcblxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8IS0tIERlbGV0ZSBCdXR0b24gLS0+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZCBzdHlsZT1cXFwidmVydGljYWwtYWxpZ246IG1pZGRsZTtcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGEgY2xhc3M9XFxcImFjdGlvbi1saW5rIHRleHQtZGFuZ2VyXFxcIiBAY2xpY2s9XFxcImRlc3Ryb3koY2xpZW50KVxcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgRGVsZXRlXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2E+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+XFxuICAgICAgICAgICAgICAgICAgICAgICAgPC90cj5cXG4gICAgICAgICAgICAgICAgICAgIDwvdGJvZHk+XFxuICAgICAgICAgICAgICAgIDwvdGFibGU+XFxuICAgICAgICAgICAgPC9kaXY+XFxuICAgICAgICA8L2Rpdj5cXG5cXG4gICAgICAgIDwhLS0gQ3JlYXRlIENsaWVudCBNb2RhbCAtLT5cXG4gICAgICAgIDxkaXYgY2xhc3M9XFxcIm1vZGFsIGZhZGVcXFwiIGlkPVxcXCJtb2RhbC1jcmVhdGUtY2xpZW50XFxcIiB0YWJpbmRleD1cXFwiLTFcXFwiIHJvbGU9XFxcImRpYWxvZ1xcXCI+XFxuICAgICAgICAgICAgPGRpdiBjbGFzcz1cXFwibW9kYWwtZGlhbG9nXFxcIj5cXG4gICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cXFwibW9kYWwtY29udGVudFxcXCI+XFxuICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVxcXCJtb2RhbC1oZWFkZXJcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgIDxidXR0b24gdHlwZT1cXFwiYnV0dG9uIFxcXCIgY2xhc3M9XFxcImNsb3NlXFxcIiBkYXRhLWRpc21pc3M9XFxcIm1vZGFsXFxcIiBhcmlhLWhpZGRlbj1cXFwidHJ1ZVxcXCI+JnRpbWVzOzwvYnV0dG9uPlxcblxcbiAgICAgICAgICAgICAgICAgICAgICAgIDxoNCBjbGFzcz1cXFwibW9kYWwtdGl0bGVcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBDcmVhdGUgQ2xpZW50XFxuICAgICAgICAgICAgICAgICAgICAgICAgPC9oND5cXG4gICAgICAgICAgICAgICAgICAgIDwvZGl2PlxcblxcbiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cXFwibW9kYWwtYm9keVxcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgPCEtLSBGb3JtIEVycm9ycyAtLT5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVxcXCJhbGVydCBhbGVydC1kYW5nZXJcXFwiIHYtaWY9XFxcImNyZWF0ZUZvcm0uZXJyb3JzLmxlbmd0aCA+IDBcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cD48c3Ryb25nPldob29wcyE8L3N0cm9uZz4gU29tZXRoaW5nIHdlbnQgd3JvbmchPC9wPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8YnI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx1bD5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxsaSB2LWZvcj1cXFwiZXJyb3IgaW4gY3JlYXRlRm9ybS5lcnJvcnNcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHt7IGVycm9yIH19XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2xpPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3VsPlxcbiAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxcblxcbiAgICAgICAgICAgICAgICAgICAgICAgIDwhLS0gQ3JlYXRlIENsaWVudCBGb3JtIC0tPlxcbiAgICAgICAgICAgICAgICAgICAgICAgIDxmb3JtIGNsYXNzPVxcXCJmb3JtLWhvcml6b250YWxcXFwiIHJvbGU9XFxcImZvcm1cXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8IS0tIE5hbWUgLS0+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XFxcImZvcm0tZ3JvdXBcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGxhYmVsIGNsYXNzPVxcXCJjb2wtbWQtMyBjb250cm9sLWxhYmVsXFxcIj5OYW1lPC9sYWJlbD5cXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XFxcImNvbC1tZC03XFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8aW5wdXQgaWQ9XFxcImNyZWF0ZS1jbGllbnQtbmFtZVxcXCIgdHlwZT1cXFwidGV4dFxcXCIgY2xhc3M9XFxcImZvcm0tY29udHJvbFxcXCJcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQGtleXVwLmVudGVyPVxcXCJzdG9yZVxcXCIgdi1tb2RlbD1cXFwiY3JlYXRlRm9ybS5uYW1lXFxcIj5cXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8c3BhbiBjbGFzcz1cXFwiaGVscC1ibG9ja1xcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFNvbWV0aGluZyB5b3VyIHVzZXJzIHdpbGwgcmVjb2duaXplIGFuZCB0cnVzdC5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3NwYW4+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XFxuXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwhLS0gUmVkaXJlY3QgVVJMIC0tPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVxcXCJmb3JtLWdyb3VwXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxsYWJlbCBjbGFzcz1cXFwiY29sLW1kLTMgY29udHJvbC1sYWJlbFxcXCI+UmVkaXJlY3QgVVJMPC9sYWJlbD5cXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XFxcImNvbC1tZC03XFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8aW5wdXQgdHlwZT1cXFwidGV4dFxcXCIgY2xhc3M9XFxcImZvcm0tY29udHJvbFxcXCIgbmFtZT1cXFwicmVkaXJlY3RcXFwiXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIEBrZXl1cC5lbnRlcj1cXFwic3RvcmVcXFwiIHYtbW9kZWw9XFxcImNyZWF0ZUZvcm0ucmVkaXJlY3RcXFwiPlxcblxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzcGFuIGNsYXNzPVxcXCJoZWxwLWJsb2NrXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgWW91ciBhcHBsaWNhdGlvbidzIGF1dGhvcml6YXRpb24gY2FsbGJhY2sgVVJMLlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvc3Bhbj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8L2Zvcm0+XFxuICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cXG5cXG4gICAgICAgICAgICAgICAgICAgIDwhLS0gTW9kYWwgQWN0aW9ucyAtLT5cXG4gICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XFxcIm1vZGFsLWZvb3RlclxcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgPGJ1dHRvbiB0eXBlPVxcXCJidXR0b25cXFwiIGNsYXNzPVxcXCJidG4gYnRuLWRlZmF1bHRcXFwiIGRhdGEtZGlzbWlzcz1cXFwibW9kYWxcXFwiPkNsb3NlPC9idXR0b24+XFxuXFxuICAgICAgICAgICAgICAgICAgICAgICAgPGJ1dHRvbiB0eXBlPVxcXCJidXR0b25cXFwiIGNsYXNzPVxcXCJidG4gYnRuLXByaW1hcnlcXFwiIEBjbGljaz1cXFwic3RvcmVcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBDcmVhdGVcXG4gICAgICAgICAgICAgICAgICAgICAgICA8L2J1dHRvbj5cXG4gICAgICAgICAgICAgICAgICAgIDwvZGl2PlxcbiAgICAgICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgIDwvZGl2PlxcblxcbiAgICAgICAgPCEtLSBFZGl0IENsaWVudCBNb2RhbCAtLT5cXG4gICAgICAgIDxkaXYgY2xhc3M9XFxcIm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iAgICAgICAgICAgICAgICAgICAgICAgICAgICA8YnI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx1bD5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxsaSB2LWZvcj1cXFwiZXJyb3IgaW4gZWRpdEZvcm0uZXJyb3JzXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7eyBlcnJvciB9fVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9saT5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC91bD5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8IS0tIEVkaXQgQ2xpZW50IEZvcm0gLS0+XFxuICAgICAgICAgICAgICAgICAgICAgICAgPGZvcm0gY2xhc3M9XFxcImZvcm0taG9yaXpvbnRhbFxcXCIgcm9sZT1cXFwiZm9ybVxcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwhLS0gTmFtZSAtLT5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cXFwiZm9ybS1ncm91cFxcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bGFiZWwgY2xhc3M9XFxcImNvbC1tZC0zIGNvbnRyb2wtbGFiZWxcXFwiPk5hbWU8L2xhYmVsPlxcblxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cXFwiY29sLW1kLTdcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxpbnB1dCBpZD1cXFwiZWRpdC1jbGllbnQtbmFtZVxcXCIgdHlwZT1cXFwidGV4dFxcXCIgY2xhc3M9XFxcImZvcm0tY29udHJvbFxcXCJcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQGtleXVwLmVudGVyPVxcXCJ1cGRhdGVcXFwiIHYtbW9kZWw9XFxcImVkaXRGb3JtLm5hbWVcXFwiPlxcblxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzcGFuIGNsYXNzPVxcXCJoZWxwLWJsb2NrXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgU29tZXRoaW5nIHlvdXIgdXNlcnMgd2lsbCByZWNvZ25pemUgYW5kIHRydXN0LlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvc3Bhbj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPCEtLSBSZWRpcmVjdCBVUkwgLS0+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XFxcImZvcm0tZ3JvdXBcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGxhYmVsIGNsYXNzPVxcXCJjb2wtbWQtMyBjb250cm9sLWxhYmVsXFxcIj5SZWRpcmVjdCBVUkw8L2xhYmVsPlxcblxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cXFwiY29sLW1kLTdcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxpbnB1dCB0eXBlPVxcXCJ0ZXh0XFxcIiBjbGFzcz1cXFwiZm9ybS1jb250cm9sXFxcIiBuYW1lPVxcXCJyZWRpcmVjdFxcXCJcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQGtleXVwLmVudGVyPVxcXCJ1cGRhdGVcXFwiIHYtbW9kZWw9XFxcImVkaXRGb3JtLnJlZGlyZWN0XFxcIj5cXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8c3BhbiBjbGFzcz1cXFwiaGVscC1ibG9ja1xcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFlvdXIgYXBwbGljYXRpb24ncyBhdXRob3JpemF0aW9uIGNhbGxiYWNrIFVSTC5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3NwYW4+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XFxuICAgICAgICAgICAgICAgICAgICAgICAgPC9mb3JtPlxcbiAgICAgICAgICAgICAgICAgICAgPC9kaXY+XFxuXFxuICAgICAgICAgICAgICAgICAgICA8IS0tIE1vZGFsIEFjdGlvbnMgLS0+XFxuICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVxcXCJtb2RhbC1mb290ZXJcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgIDxidXR0b24gdHlwZT1cXFwiYnV0dG9uXFxcIiBjbGFzcz1cXFwiYnRuIGJ0bi1kZWZhdWx0XFxcIiBkYXRhLWRpc21pc3M9XFxcIm1vZGFsXFxcIj5DbG9zZTwvYnV0dG9uPlxcblxcbiAgICAgICAgICAgICAgICAgICAgICAgIDxidXR0b24gdHlwZT1cXFwiYnV0dG9uXFxcIiBjbGFzcz1cXFwiYnRuIGJ0bi1wcmltYXJ5XFxcIiBAY2xpY2s9XFxcInVwZGF0ZVxcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIFNhdmUgQ2hhbmdlc1xcbiAgICAgICAgICAgICAgICAgICAgICAgIDwvYnV0dG9uPlxcbiAgICAgICAgICAgICAgICAgICAgPC9kaXY+XFxuICAgICAgICAgICAgICAgIDwvZGl2PlxcbiAgICAgICAgICAgIDwvZGl2PlxcbiAgICAgICAgPC9kaXY+XFxuICAgIDwvZGl2PlxcbjwvdGVtcGxhdGU+XFxuXFxuPHNjcmlwdD5cXG4gICAgZXhwb3J0IGRlZmF1bHQge1xcbiAgICAgICAgLypcXG4gICAgICAgICAqIFRoZSBjb21wb25lbnQncyBkYXRhLlxcbiAgICAgICAgICovXFxuICAgICAgICBkYXRhKCkge1xcbiAgICAgICAgICAgIHJldHVybiB7XFxuICAgICAgICAgICAgICAgIGNsaWVudHM6IFtdLFxcblxcbiAgICAgICAgICAgICAgICBjcmVhdGVGb3JtOiB7XFxuICAgICAgICAgICAgICAgICAgICBlcnJvcnM6IFtdLFxcbiAgICAgICAgICAgICAgICAgICAgbmFtZTogJycsXFxuICAgICAgICAgICAgICAgICAgICByZWRpcmVjdDogJydcXG4gICAgICAgICAgICAgICAgfSxcXG5cXG4gICAgICAgICAgICAgICAgZWRpdEZvcm06IHtcXG4gICAgICAgICAgICAgICAgICAgIGVycm9yczogW10sXFxuICAgICAgICAgICAgICAgICAgICBuYW1lOiAnJyxcXG4gICAgICAgICAgICAgICAgICAgIHJlZGlyZWN0OiAnJ1xcbiAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgfTtcXG4gICAgICAgIH0sXFxuXFxuICAgICAgICAvKipcXG4gICAgICAgICAqIFByZXBhcmUgdGhlIGNvbXBvbmVudCAoVnVlIDEueCkuXFxuICAgICAgICAgKi9cXG4gICAgICAgIHJlYWR5KCkge1xcbiAgICAgICAgICAgIHRoaXMucHJlcGFyZUNvbXBvbmVudCgpO1xcbiAgICAgICAgfSxcXG5cXG4gICAgICAgIC8qKlxcbiAgICAgICAgICogUHJlcGFyZSB0aGUgY29tcG9uZW50IChWdWUgMi54KS5cXG4gICAgICAgICAqL1xcbiAgICAgICAgbW91bnRlZCgpIHtcXG4gICAgICAgICAgICB0aGlzLnByZXBhcmVDb21wb25lbnQoKTtcXG4gICAgICAgIH0sXFxuXFxuICAgICAgICBtZXRob2RzOiB7XFxuICAgICAgICAgICAgLyoqXFxuICAgICAgICAgICAgICogUHJlcGFyZSB0aGUgY29tcG9uZW50LlxcbiAgICAgICAgICAgICAqL1xcbiAgICAgICAgICAgIHByZXBhcmVDb21wb25lbnQoKSB7XFxuICAgICAgICAgICAgICAgIHRoaXMuZ2V0Q2xpZW50cygpO1xcblxcbiAgICAgICAgICAgICAgICAkKCcjbW9kYWwtY3JlYXRlLWNsaWVudCcpLm9uKCdzaG93bi5icy5tb2RhbCcsICgpID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICQoJyNjcmVhdGUtY2xpZW50LW5hbWUnKS5mb2N1cygpO1xcbiAgICAgICAgICAgICAgICB9KTtcXG5cXG4gICAgICAgICAgICAgICAgJCgnI21vZGFsLWVkaXQtY2xpZW50Jykub24oJ3Nob3duLmJzLm1vZGFsJywgKCkgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgJCgnI2VkaXQtY2xpZW50LW5hbWUnKS5mb2N1cygpO1xcbiAgICAgICAgICAgICAgICB9KTtcXG4gICAgICAgICAgICB9LFxcblxcbiAgICAgICAgICAgIC8qKlxcbiAgICAgICAgICAgICAqIEdldCBhbGwgb2YgdGhlIE9BdXRoIGNsaWVudHMgZm9yIHRoZSB1c2VyLlxcbiAgICAgICAgICAgICAqL1xcbiAgICAgICAgICAgIGdldENsaWVudHMoKSB7XFxuICAgICAgICAgICAgICAgIHRoaXMuJGh0dHAuZ2V0KCcvb2F1dGgvY2xpZW50cycpXFxuICAgICAgICAgICAgICAgICAgICAgICAgLnRoZW4ocmVzcG9uc2UgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmNsaWVudHMgPSByZXNwb25zZS5kYXRhO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xcbiAgICAgICAgICAgIH0sXFxuXFxuICAgICAgICAgICAgLyoqXFxuICAgICAgICAgICAgICogU2hvdyB0aGUgZm9ybSBmb3IgY3JlYXRpbmcgbmV3IGNsaWVudHMuXFxuICAgICAgICAgICAgICovXFxuICAgICAgICAgICAgc2hvd0NyZWF0ZUNsaWVudEZvcm0oKSB7XFxuICAgICAgICAgICAgICAgICQoJyNtb2RhbC1jcmVhdGUtY2xpZW50JykubW9kYWwoJ3Nob3cnKTtcXG4gICAgICAgICAgICB9LFxcblxcbiAgICAgICAgICAgIC8qKlxcbiAgICAgICAgICAgICAqIENyZWF0ZSBhIG5ldyBPQXV0aCBjbGllbnQgZm9yIHRoZSB1c2VyLlxcbiAgICAgICAgICAgICAqL1xcbiAgICAgICAgICAgIHN0b3JlKCkge1xcbiAgICAgICAgICAgICAgICB0aGlzLnBlcnNpc3RDbGllbnQoXFxuICAgICAgICAgICAgICAgICAgICAncG9zdCcsICcvb2F1dGgvY2xpZW50cycsXFxuICAgICAgICAgICAgICAgICAgICB0aGlzLmNyZWF0ZUZvcm0sICcjbW9kYWwtY3JlYXRlLWNsaWVudCdcXG4gICAgICAgICAgICAgICAgKTtcXG4gICAgICAgICAgICB9LFxcblxcbiAgICAgICAgICAgIC8qKlxcbiAgICAgICAgICAgICAqIEVkaXQgdGhlIGdpdmVuIGNsaWVudC5cXG4gICAgICAgICAgICAgKi9cXG4gICAgICAgICAgICBlZGl0KGNsaWVudCkge1xcbiAgICAgICAgICAgICAgICB0aGlzLmVkaXRGb3JtLmlkID0gY2xpZW50LmlkO1xcbiAgICAgICAgICAgICAgICB0aGlzLmVkaXRGb3JtLm5hbWUgPSBjbGllbnQubmFtZTtcXG4gICAgICAgICAgICAgICAgdGhpcy5lZGl0Rm9ybS5yZWRpcmVjdCA9IGNsaWVudC5yZWRpcmVjdDtcXG5cXG4gICAgICAgICAgICAgICAgJCgnI21vZGFsLWVkaXQtY2xpZW50JykubW9kYWwoJ3Nob3cnKTtcXG4gICAgICAgICAgICB9LFxcblxcbiAgICAgICAgICAgIC8qKlxcbiAgICAgICAgICAgICAqIFVwZGF0ZSB0aGUgY2xpZW50IGJlaW5nIGVkaXRlZC5cXG4gICAgICAgICAgICAgKi9cXG4gICAgICAgICAgICB1cGRhdGUoKSB7XFxuICAgICAgICAgICAgICAgIHRoaXMucGVyc2lzdENsaWVudChcXG4gICAgICAgICAgICAgICAgICAgICdwdXQnLCAnL29hdXRoL2NsaWVudHMvJyArIHRoaXMuZWRpdEZvcm0uaWQsXFxuICAgICAgICAgICAgICAgICAgICB0aGlzLmVkaXRGb3JtLCAnI21vZGFsLWVkaXQtY2xpZW50J1xcbiAgICAgICAgICAgICAgICApO1xcbiAgICAgICAgICAgIH0sXFxuXFxuICAgICAgICAgICAgLyoqXFxuICAgICAgICAgICAgICogUGVyc2lzdCB0aGUgY2xpZW50IHRvIHN0b3JhZ2UgdXNpbmcgdGhlIGdpdmVuIGZvcm0uXFxuICAgICAgICAgICAgICovXFxuICAgICAgICAgICAgcGVyc2lzdENsaWVudChtZXRob2QsIHVyaSwgZm9ybSwgbW9kYWwpIHtcXG4gICAgICAgICAgICAgICAgZm9ybS5lcnJvcnMgPSBbXTtcXG5cXG4gICAgICAgICAgICAgICAgdGhpcy4kaHR0cFttZXRob2RdKHVyaSwgZm9ybSlcXG4gICAgICAgICAgICAgICAgICAgIC50aGVuKHJlc3BvbnNlID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmdldENsaWVudHMoKTtcXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICBmb3JtLm5hbWUgPSAnJztcXG4gICAgICAgICAgICAgICAgICAgICAgICBmb3JtLnJlZGlyZWN0ID0gJyc7XFxuICAgICAgICAgICAgICAgICAgICAgICAgZm9ybS5lcnJvcnMgPSBbXTtcXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICAkKG1vZGFsKS5tb2RhbCgnaGlkZScpO1xcbiAgICAgICAgICAgICAgICAgICAgfSlcXG4gICAgICAgICAgICAgICAgICAgIC5jYXRjaChyZXNwb25zZSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHR5cGVvZiByZXNwb25zZS5kYXRhID09PSAnb2JqZWN0Jykge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb3JtLmVycm9ycyA9IF8uZmxhdHRlbihfLnRvQXJyYXkocmVzcG9uc2UuZGF0YSkpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZvcm0uZXJyb3JzID0gWydTb21ldGhpbmcgd2VudCB3cm9uZy4gUGxlYXNlIHRyeSBhZ2Fpbi4nXTtcXG4gICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICB9KTtcXG4gICAgICAgICAgICB9LFxcblxcbiAgICAgICAgICAgIC8qKlxcbiAgICAgICAgICAgICAqIERlc3Ryb3kgdGhlIGdpdmVuIGNsaWVudC5cXG4gICAgICAgICAgICAgKi9cXG4gICAgICAgICAgICBkZXN0cm95KGNsaWVudCkge1xcbiAgICAgICAgICAgICAgICB0aGlzLiRodHRwLmRlbGV0ZSgnL29hdXRoL2NsaWVudHMvJyArIGNsaWVudC5pZClcXG4gICAgICAgICAgICAgICAgICAgICAgICAudGhlbihyZXNwb25zZSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuZ2V0Q2xpZW50cygpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xcbiAgICAgICAgICAgIH1cXG4gICAgICAgIH1cXG4gICAgfVxcbjwvc2NyaXB0PlxcblwiXSxcInNvdXJjZVJvb3RcIjpcIndlYnBhY2s6Ly9cIn1dKTtcblxuLy8gZXhwb3J0c1xuXG5cblxuLy8vLy8vLy8vLy8vLy8vLy8vXG4vLyBXRUJQQUNLIEZPT1RFUlxuLy8gLi9+L2Nzcy1sb2FkZXI/c291cmNlTWFwIS4vfi92dWUtbG9hZGVyL2xpYi9zdHlsZS1yZXdyaXRlci5qcz9pZD1kYXRhLXYtZTc1OTg2Mzgmc2NvcGVkPXRydWUhLi9+L3Z1ZS1sb2FkZXIvbGliL3NlbGVjdG9yLmpzP3R5cGU9c3R5bGVzJmluZGV4PTAhLi9yZXNvdXJjZXMvYXNzZXRzL2pzL2NvbXBvbmVudHMvcGFzc3BvcnQvQ2xpZW50cy52dWVcbi8vIG1vZHVsZSBpZCA9IDI1XG4vLyBtb2R1bGUgY2h1bmtzID0gMCJdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTsiLCJzb3VyY2VSb290IjoiIn0="); /***/ }, /* 26 */ @@ -2053,148 +2053,148 @@ eval("var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPAC /***/ }, /* 28 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { -eval("/* WEBPACK VAR INJECTION */(function(global, module) {var __WEBPACK_AMD_DEFINE_RESULT__;/**\n * @license\n * Lodash \n * Copyright JS Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n;(function() {\n\n /** Used as a safe reference for `undefined` in pre-ES5 environments. */\n var undefined;\n\n /** Used as the semantic version number. */\n var VERSION = '4.17.4';\n\n /** Used as the size to enable large array optimizations. */\n var LARGE_ARRAY_SIZE = 200;\n\n /** Error message constants. */\n var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',\n FUNC_ERROR_TEXT = 'Expected a function';\n\n /** Used to stand-in for `undefined` hash values. */\n var HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n /** Used as the maximum memoize cache size. */\n var MAX_MEMOIZE_SIZE = 500;\n\n /** Used as the internal argument placeholder. */\n var PLACEHOLDER = '__lodash_placeholder__';\n\n /** Used to compose bitmasks for cloning. */\n var CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n\n /** Used to compose bitmasks for value comparisons. */\n var COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n /** Used to compose bitmasks for function metadata. */\n var WRAP_BIND_FLAG = 1,\n WRAP_BIND_KEY_FLAG = 2,\n WRAP_CURRY_BOUND_FLAG = 4,\n WRAP_CURRY_FLAG = 8,\n WRAP_CURRY_RIGHT_FLAG = 16,\n WRAP_PARTIAL_FLAG = 32,\n WRAP_PARTIAL_RIGHT_FLAG = 64,\n WRAP_ARY_FLAG = 128,\n WRAP_REARG_FLAG = 256,\n WRAP_FLIP_FLAG = 512;\n\n /** Used as default options for `_.truncate`. */\n var DEFAULT_TRUNC_LENGTH = 30,\n DEFAULT_TRUNC_OMISSION = '...';\n\n /** Used to detect hot functions by number of calls within a span of milliseconds. */\n var HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n /** Used to indicate the type of lazy iteratees. */\n var LAZY_FILTER_FLAG = 1,\n LAZY_MAP_FLAG = 2,\n LAZY_WHILE_FLAG = 3;\n\n /** Used as references for various `Number` constants. */\n var INFINITY = 1 / 0,\n MAX_SAFE_INTEGER = 9007199254740991,\n MAX_INTEGER = 1.7976931348623157e+308,\n NAN = 0 / 0;\n\n /** Used as references for the maximum length and index of an array. */\n var MAX_ARRAY_LENGTH = 4294967295,\n MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1,\n HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;\n\n /** Used to associate wrap methods with their bit flags. */\n var wrapFlags = [\n ['ary', WRAP_ARY_FLAG],\n ['bind', WRAP_BIND_FLAG],\n ['bindKey', WRAP_BIND_KEY_FLAG],\n ['curry', WRAP_CURRY_FLAG],\n ['curryRight', WRAP_CURRY_RIGHT_FLAG],\n ['flip', WRAP_FLIP_FLAG],\n ['partial', WRAP_PARTIAL_FLAG],\n ['partialRight', WRAP_PARTIAL_RIGHT_FLAG],\n ['rearg', WRAP_REARG_FLAG]\n ];\n\n /** `Object#toString` result references. */\n var argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n asyncTag = '[object AsyncFunction]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n domExcTag = '[object DOMException]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n nullTag = '[object Null]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n proxyTag = '[object Proxy]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n undefinedTag = '[object Undefined]',\n weakMapTag = '[object WeakMap]',\n weakSetTag = '[object WeakSet]';\n\n var arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n /** Used to match empty string literals in compiled template source. */\n var reEmptyStringLeading = /\\b__p \\+= '';/g,\n reEmptyStringMiddle = /\\b(__p \\+=) '' \\+/g,\n reEmptyStringTrailing = /(__e\\(.*?\\)|\\b__t\\)) \\+\\n'';/g;\n\n /** Used to match HTML entities and HTML characters. */\n var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g,\n reUnescapedHtml = /[&<>\"']/g,\n reHasEscapedHtml = RegExp(reEscapedHtml.source),\n reHasUnescapedHtml = RegExp(reUnescapedHtml.source);\n\n /** Used to match template delimiters. */\n var reEscape = /<%-([\\s\\S]+?)%>/g,\n reEvaluate = /<%([\\s\\S]+?)%>/g,\n reInterpolate = /<%=([\\s\\S]+?)%>/g;\n\n /** Used to match property names within property paths. */\n var reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/,\n reLeadingDot = /^\\./,\n rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n /**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\n var reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g,\n reHasRegExpChar = RegExp(reRegExpChar.source);\n\n /** Used to match leading and trailing whitespace. */\n var reTrim = /^\\s+|\\s+$/g,\n reTrimStart = /^\\s+/,\n reTrimEnd = /\\s+$/;\n\n /** Used to match wrap detail comments. */\n var reWrapComment = /\\{(?:\\n\\/\\* \\[wrapped with .+\\] \\*\\/)?\\n?/,\n reWrapDetails = /\\{\\n\\/\\* \\[wrapped with (.+)\\] \\*/,\n reSplitDetails = /,? & /;\n\n /** Used to match words composed of alphanumeric characters. */\n var reAsciiWord = /[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g;\n\n /** Used to match backslashes in property paths. */\n var reEscapeChar = /\\\\(\\\\)?/g;\n\n /**\n * Used to match\n * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).\n */\n var reEsTemplate = /\\$\\{([^\\\\}]*(?:\\\\.[^\\\\}]*)*)\\}/g;\n\n /** Used to match `RegExp` flags from their coerced string values. */\n var reFlags = /\\w*$/;\n\n /** Used to detect bad signed hexadecimal string values. */\n var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n /** Used to detect binary string values. */\n var reIsBinary = /^0b[01]+$/i;\n\n /** Used to detect host constructors (Safari). */\n var reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n /** Used to detect octal string values. */\n var reIsOctal = /^0o[0-7]+$/i;\n\n /** Used to detect unsigned integer values. */\n var reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n /** Used to match Latin Unicode letters (excluding mathematical operators). */\n var reLatin = /[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g;\n\n /** Used to ensure capturing order of template delimiters. */\n var reNoMatch = /($^)/;\n\n /** Used to match unescaped characters in compiled string literals. */\n var reUnescapedString = /['\\n\\r\\u2028\\u2029\\\\]/g;\n\n /** Used to compose unicode character classes. */\n var rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsDingbatRange = '\\\\u2700-\\\\u27bf',\n rsLowerRange = 'a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff',\n rsMathOpRange = '\\\\xac\\\\xb1\\\\xd7\\\\xf7',\n rsNonCharRange = '\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf',\n rsPunctuationRange = '\\\\u2000-\\\\u206f',\n 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',\n rsUpperRange = 'A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde',\n rsVarRange = '\\\\ufe0e\\\\ufe0f',\n rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;\n\n /** Used to compose unicode capture groups. */\n var rsApos = \"['\\u2019]\",\n rsAstral = '[' + rsAstralRange + ']',\n rsBreak = '[' + rsBreakRange + ']',\n rsCombo = '[' + rsComboRange + ']',\n rsDigits = '\\\\d+',\n rsDingbat = '[' + rsDingbatRange + ']',\n rsLower = '[' + rsLowerRange + ']',\n rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n rsNonAstral = '[^' + rsAstralRange + ']',\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n rsUpper = '[' + rsUpperRange + ']',\n rsZWJ = '\\\\u200d';\n\n /** Used to compose unicode regexes. */\n var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',\n rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',\n rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',\n rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',\n reOptMod = rsModifier + '?',\n rsOptVar = '[' + rsVarRange + ']?',\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n rsOrdLower = '\\\\d*(?:(?:1st|2nd|3rd|(?![123])\\\\dth)\\\\b)',\n rsOrdUpper = '\\\\d*(?:(?:1ST|2ND|3RD|(?![123])\\\\dTH)\\\\b)',\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\n rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,\n rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n /** Used to match apostrophes. */\n var reApos = RegExp(rsApos, 'g');\n\n /**\n * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and\n * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).\n */\n var reComboMark = RegExp(rsCombo, 'g');\n\n /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\n var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n /** Used to match complex or compound words. */\n var reUnicodeWord = RegExp([\n rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',\n rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',\n rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,\n rsUpper + '+' + rsOptContrUpper,\n rsOrdUpper,\n rsOrdLower,\n rsDigits,\n rsEmoji\n ].join('|'), 'g');\n\n /** 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/). */\n var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');\n\n /** Used to detect strings that need a more robust regexp to match words. */\n 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 ]/;\n\n /** Used to assign default `context` object properties. */\n var contextProps = [\n 'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array',\n 'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object',\n 'Promise', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array',\n 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap',\n '_', 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout'\n ];\n\n /** Used to make template sourceURLs easier to identify. */\n var templateCounter = -1;\n\n /** Used to identify `toStringTag` values of typed arrays. */\n var typedArrayTags = {};\n typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\n typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\n typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\n typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\n typedArrayTags[uint32Tag] = true;\n typedArrayTags[argsTag] = typedArrayTags[arrayTag] =\n typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\n typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\n typedArrayTags[errorTag] = typedArrayTags[funcTag] =\n typedArrayTags[mapTag] = typedArrayTags[numberTag] =\n typedArrayTags[objectTag] = typedArrayTags[regexpTag] =\n typedArrayTags[setTag] = typedArrayTags[stringTag] =\n typedArrayTags[weakMapTag] = false;\n\n /** Used to identify `toStringTag` values supported by `_.clone`. */\n var cloneableTags = {};\n cloneableTags[argsTag] = cloneableTags[arrayTag] =\n cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\n cloneableTags[boolTag] = cloneableTags[dateTag] =\n cloneableTags[float32Tag] = cloneableTags[float64Tag] =\n cloneableTags[int8Tag] = cloneableTags[int16Tag] =\n cloneableTags[int32Tag] = cloneableTags[mapTag] =\n cloneableTags[numberTag] = cloneableTags[objectTag] =\n cloneableTags[regexpTag] = cloneableTags[setTag] =\n cloneableTags[stringTag] = cloneableTags[symbolTag] =\n cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\n cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\n cloneableTags[errorTag] = cloneableTags[funcTag] =\n cloneableTags[weakMapTag] = false;\n\n /** Used to map Latin Unicode letters to basic Latin letters. */\n var deburredLetters = {\n // Latin-1 Supplement block.\n '\\xc0': 'A', '\\xc1': 'A', '\\xc2': 'A', '\\xc3': 'A', '\\xc4': 'A', '\\xc5': 'A',\n '\\xe0': 'a', '\\xe1': 'a', '\\xe2': 'a', '\\xe3': 'a', '\\xe4': 'a', '\\xe5': 'a',\n '\\xc7': 'C', '\\xe7': 'c',\n '\\xd0': 'D', '\\xf0': 'd',\n '\\xc8': 'E', '\\xc9': 'E', '\\xca': 'E', '\\xcb': 'E',\n '\\xe8': 'e', '\\xe9': 'e', '\\xea': 'e', '\\xeb': 'e',\n '\\xcc': 'I', '\\xcd': 'I', '\\xce': 'I', '\\xcf': 'I',\n '\\xec': 'i', '\\xed': 'i', '\\xee': 'i', '\\xef': 'i',\n '\\xd1': 'N', '\\xf1': 'n',\n '\\xd2': 'O', '\\xd3': 'O', '\\xd4': 'O', '\\xd5': 'O', '\\xd6': 'O', '\\xd8': 'O',\n '\\xf2': 'o', '\\xf3': 'o', '\\xf4': 'o', '\\xf5': 'o', '\\xf6': 'o', '\\xf8': 'o',\n '\\xd9': 'U', '\\xda': 'U', '\\xdb': 'U', '\\xdc': 'U',\n '\\xf9': 'u', '\\xfa': 'u', '\\xfb': 'u', '\\xfc': 'u',\n '\\xdd': 'Y', '\\xfd': 'y', '\\xff': 'y',\n '\\xc6': 'Ae', '\\xe6': 'ae',\n '\\xde': 'Th', '\\xfe': 'th',\n '\\xdf': 'ss',\n // Latin Extended-A block.\n '\\u0100': 'A', '\\u0102': 'A', '\\u0104': 'A',\n '\\u0101': 'a', '\\u0103': 'a', '\\u0105': 'a',\n '\\u0106': 'C', '\\u0108': 'C', '\\u010a': 'C', '\\u010c': 'C',\n '\\u0107': 'c', '\\u0109': 'c', '\\u010b': 'c', '\\u010d': 'c',\n '\\u010e': 'D', '\\u0110': 'D', '\\u010f': 'd', '\\u0111': 'd',\n '\\u0112': 'E', '\\u0114': 'E', '\\u0116': 'E', '\\u0118': 'E', '\\u011a': 'E',\n '\\u0113': 'e', '\\u0115': 'e', '\\u0117': 'e', '\\u0119': 'e', '\\u011b': 'e',\n '\\u011c': 'G', '\\u011e': 'G', '\\u0120': 'G', '\\u0122': 'G',\n '\\u011d': 'g', '\\u011f': 'g', '\\u0121': 'g', '\\u0123': 'g',\n '\\u0124': 'H', '\\u0126': 'H', '\\u0125': 'h', '\\u0127': 'h',\n '\\u0128': 'I', '\\u012a': 'I', '\\u012c': 'I', '\\u012e': 'I', '\\u0130': 'I',\n '\\u0129': 'i', '\\u012b': 'i', '\\u012d': 'i', '\\u012f': 'i', '\\u0131': 'i',\n '\\u0134': 'J', '\\u0135': 'j',\n '\\u0136': 'K', '\\u0137': 'k', '\\u0138': 'k',\n '\\u0139': 'L', '\\u013b': 'L', '\\u013d': 'L', '\\u013f': 'L', '\\u0141': 'L',\n '\\u013a': 'l', '\\u013c': 'l', '\\u013e': 'l', '\\u0140': 'l', '\\u0142': 'l',\n '\\u0143': 'N', '\\u0145': 'N', '\\u0147': 'N', '\\u014a': 'N',\n '\\u0144': 'n', '\\u0146': 'n', '\\u0148': 'n', '\\u014b': 'n',\n '\\u014c': 'O', '\\u014e': 'O', '\\u0150': 'O',\n '\\u014d': 'o', '\\u014f': 'o', '\\u0151': 'o',\n '\\u0154': 'R', '\\u0156': 'R', '\\u0158': 'R',\n '\\u0155': 'r', '\\u0157': 'r', '\\u0159': 'r',\n '\\u015a': 'S', '\\u015c': 'S', '\\u015e': 'S', '\\u0160': 'S',\n '\\u015b': 's', '\\u015d': 's', '\\u015f': 's', '\\u0161': 's',\n '\\u0162': 'T', '\\u0164': 'T', '\\u0166': 'T',\n '\\u0163': 't', '\\u0165': 't', '\\u0167': 't',\n '\\u0168': 'U', '\\u016a': 'U', '\\u016c': 'U', '\\u016e': 'U', '\\u0170': 'U', '\\u0172': 'U',\n '\\u0169': 'u', '\\u016b': 'u', '\\u016d': 'u', '\\u016f': 'u', '\\u0171': 'u', '\\u0173': 'u',\n '\\u0174': 'W', '\\u0175': 'w',\n '\\u0176': 'Y', '\\u0177': 'y', '\\u0178': 'Y',\n '\\u0179': 'Z', '\\u017b': 'Z', '\\u017d': 'Z',\n '\\u017a': 'z', '\\u017c': 'z', '\\u017e': 'z',\n '\\u0132': 'IJ', '\\u0133': 'ij',\n '\\u0152': 'Oe', '\\u0153': 'oe',\n '\\u0149': \"'n\", '\\u017f': 's'\n };\n\n /** Used to map characters to HTML entities. */\n var htmlEscapes = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n \"'\": '''\n };\n\n /** Used to map HTML entities to characters. */\n var htmlUnescapes = {\n '&': '&',\n '<': '<',\n '>': '>',\n '"': '\"',\n ''': \"'\"\n };\n\n /** Used to escape characters for inclusion in compiled string literals. */\n var stringEscapes = {\n '\\\\': '\\\\',\n \"'\": \"'\",\n '\\n': 'n',\n '\\r': 'r',\n '\\u2028': 'u2028',\n '\\u2029': 'u2029'\n };\n\n /** Built-in method references without a dependency on `root`. */\n var freeParseFloat = parseFloat,\n freeParseInt = parseInt;\n\n /** Detect free variable `global` from Node.js. */\n var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n /** Detect free variable `self`. */\n var freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n /** Used as a reference to the global object. */\n var root = freeGlobal || freeSelf || Function('return this')();\n\n /** Detect free variable `exports`. */\n var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n /** Detect free variable `module`. */\n var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n /** Detect the popular CommonJS extension `module.exports`. */\n var moduleExports = freeModule && freeModule.exports === freeExports;\n\n /** Detect free variable `process` from Node.js. */\n var freeProcess = moduleExports && freeGlobal.process;\n\n /** Used to access faster Node.js helpers. */\n var nodeUtil = (function() {\n try {\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n }());\n\n /* Node.js helper references. */\n var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer,\n nodeIsDate = nodeUtil && nodeUtil.isDate,\n nodeIsMap = nodeUtil && nodeUtil.isMap,\n nodeIsRegExp = nodeUtil && nodeUtil.isRegExp,\n nodeIsSet = nodeUtil && nodeUtil.isSet,\n nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n /*--------------------------------------------------------------------------*/\n\n /**\n * Adds the key-value `pair` to `map`.\n *\n * @private\n * @param {Object} map The map to modify.\n * @param {Array} pair The key-value pair to add.\n * @returns {Object} Returns `map`.\n */\n function addMapEntry(map, pair) {\n // Don't return `map.set` because it's not chainable in IE 11.\n map.set(pair[0], pair[1]);\n return map;\n }\n\n /**\n * Adds `value` to `set`.\n *\n * @private\n * @param {Object} set The set to modify.\n * @param {*} value The value to add.\n * @returns {Object} Returns `set`.\n */\n function addSetEntry(set, value) {\n // Don't return `set.add` because it's not chainable in IE 11.\n set.add(value);\n return set;\n }\n\n /**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\n function apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n }\n\n /**\n * A specialized version of `baseAggregator` for arrays.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\n function arrayAggregator(array, setter, iteratee, accumulator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n var value = array[index];\n setter(accumulator, value, iteratee(value), array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\n function arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n }\n\n /**\n * A specialized version of `_.forEachRight` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\n function arrayEachRight(array, iteratee) {\n var length = array == null ? 0 : array.length;\n\n while (length--) {\n if (iteratee(array[length], length, array) === false) {\n break;\n }\n }\n return array;\n }\n\n /**\n * A specialized version of `_.every` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`.\n */\n function arrayEvery(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (!predicate(array[index], index, array)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\n function arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `_.includes` for arrays without support for\n * specifying an index to search from.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\n function arrayIncludes(array, value) {\n var length = array == null ? 0 : array.length;\n return !!length && baseIndexOf(array, value, 0) > -1;\n }\n\n /**\n * This function is like `arrayIncludes` except that it accepts a comparator.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\n function arrayIncludesWith(array, value, comparator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (comparator(value, array[index])) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\n function arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n }\n\n /**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\n function arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n }\n\n /**\n * A specialized version of `_.reduce` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the first element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\n function arrayReduce(array, iteratee, accumulator, initAccum) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n if (initAccum && length) {\n accumulator = array[++index];\n }\n while (++index < length) {\n accumulator = iteratee(accumulator, array[index], index, array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.reduceRight` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the last element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\n function arrayReduceRight(array, iteratee, accumulator, initAccum) {\n var length = array == null ? 0 : array.length;\n if (initAccum && length) {\n accumulator = array[--length];\n }\n while (length--) {\n accumulator = iteratee(accumulator, array[length], length, array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\n function arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * Gets the size of an ASCII `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\n var asciiSize = baseProperty('length');\n\n /**\n * Converts an ASCII `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function asciiToArray(string) {\n return string.split('');\n }\n\n /**\n * Splits an ASCII `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\n function asciiWords(string) {\n return string.match(reAsciiWord) || [];\n }\n\n /**\n * The base implementation of methods like `_.findKey` and `_.findLastKey`,\n * without support for iteratee shorthands, which iterates over `collection`\n * using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the found element or its key, else `undefined`.\n */\n function baseFindKey(collection, predicate, eachFunc) {\n var result;\n eachFunc(collection, function(value, key, collection) {\n if (predicate(value, key, collection)) {\n result = key;\n return false;\n }\n });\n return result;\n }\n\n /**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseIndexOf(array, value, fromIndex) {\n return value === value\n ? strictIndexOf(array, value, fromIndex)\n : baseFindIndex(array, baseIsNaN, fromIndex);\n }\n\n /**\n * This function is like `baseIndexOf` except that it accepts a comparator.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseIndexOfWith(array, value, fromIndex, comparator) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (comparator(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */\n function baseIsNaN(value) {\n return value !== value;\n }\n\n /**\n * The base implementation of `_.mean` and `_.meanBy` without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {number} Returns the mean.\n */\n function baseMean(array, iteratee) {\n var length = array == null ? 0 : array.length;\n return length ? (baseSum(array, iteratee) / length) : NAN;\n }\n\n /**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\n function baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n }\n\n /**\n * The base implementation of `_.propertyOf` without support for deep paths.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Function} Returns the new accessor function.\n */\n function basePropertyOf(object) {\n return function(key) {\n return object == null ? undefined : object[key];\n };\n }\n\n /**\n * The base implementation of `_.reduce` and `_.reduceRight`, without support\n * for iteratee shorthands, which iterates over `collection` using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} accumulator The initial value.\n * @param {boolean} initAccum Specify using the first or last element of\n * `collection` as the initial value.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the accumulated value.\n */\n function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {\n eachFunc(collection, function(value, index, collection) {\n accumulator = initAccum\n ? (initAccum = false, value)\n : iteratee(accumulator, value, index, collection);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.sortBy` which uses `comparer` to define the\n * sort order of `array` and replaces criteria objects with their corresponding\n * values.\n *\n * @private\n * @param {Array} array The array to sort.\n * @param {Function} comparer The function to define sort order.\n * @returns {Array} Returns `array`.\n */\n function baseSortBy(array, comparer) {\n var length = array.length;\n\n array.sort(comparer);\n while (length--) {\n array[length] = array[length].value;\n }\n return array;\n }\n\n /**\n * The base implementation of `_.sum` and `_.sumBy` without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {number} Returns the sum.\n */\n function baseSum(array, iteratee) {\n var result,\n index = -1,\n length = array.length;\n\n while (++index < length) {\n var current = iteratee(array[index]);\n if (current !== undefined) {\n result = result === undefined ? current : (result + current);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\n function baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n }\n\n /**\n * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array\n * of key-value pairs for `object` corresponding to the property names of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the key-value pairs.\n */\n function baseToPairs(object, props) {\n return arrayMap(props, function(key) {\n return [key, object[key]];\n });\n }\n\n /**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\n function baseUnary(func) {\n return function(value) {\n return func(value);\n };\n }\n\n /**\n * The base implementation of `_.values` and `_.valuesIn` which creates an\n * array of `object` property values corresponding to the property names\n * of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the array of property values.\n */\n function baseValues(object, props) {\n return arrayMap(props, function(key) {\n return object[key];\n });\n }\n\n /**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function cacheHas(cache, key) {\n return cache.has(key);\n }\n\n /**\n * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the first unmatched string symbol.\n */\n function charsStartIndex(strSymbols, chrSymbols) {\n var index = -1,\n length = strSymbols.length;\n\n while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n }\n\n /**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the last unmatched string symbol.\n */\n function charsEndIndex(strSymbols, chrSymbols) {\n var index = strSymbols.length;\n\n while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n }\n\n /**\n * Gets the number of `placeholder` occurrences in `array`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} placeholder The placeholder to search for.\n * @returns {number} Returns the placeholder count.\n */\n function countHolders(array, placeholder) {\n var length = array.length,\n result = 0;\n\n while (length--) {\n if (array[length] === placeholder) {\n ++result;\n }\n }\n return result;\n }\n\n /**\n * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A\n * letters to basic Latin letters.\n *\n * @private\n * @param {string} letter The matched letter to deburr.\n * @returns {string} Returns the deburred letter.\n */\n var deburrLetter = basePropertyOf(deburredLetters);\n\n /**\n * Used by `_.escape` to convert characters to HTML entities.\n *\n * @private\n * @param {string} chr The matched character to escape.\n * @returns {string} Returns the escaped character.\n */\n var escapeHtmlChar = basePropertyOf(htmlEscapes);\n\n /**\n * Used by `_.template` to escape characters for inclusion in compiled string literals.\n *\n * @private\n * @param {string} chr The matched character to escape.\n * @returns {string} Returns the escaped character.\n */\n function escapeStringChar(chr) {\n return '\\\\' + stringEscapes[chr];\n }\n\n /**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\n function getValue(object, key) {\n return object == null ? undefined : object[key];\n }\n\n /**\n * Checks if `string` contains Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a symbol is found, else `false`.\n */\n function hasUnicode(string) {\n return reHasUnicode.test(string);\n }\n\n /**\n * Checks if `string` contains a word composed of Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a word is found, else `false`.\n */\n function hasUnicodeWord(string) {\n return reHasUnicodeWord.test(string);\n }\n\n /**\n * Converts `iterator` to an array.\n *\n * @private\n * @param {Object} iterator The iterator to convert.\n * @returns {Array} Returns the converted array.\n */\n function iteratorToArray(iterator) {\n var data,\n result = [];\n\n while (!(data = iterator.next()).done) {\n result.push(data.value);\n }\n return result;\n }\n\n /**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\n function mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n }\n\n /**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\n function overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n }\n\n /**\n * Replaces all `placeholder` elements in `array` with an internal placeholder\n * and returns an array of their indexes.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {*} placeholder The placeholder to replace.\n * @returns {Array} Returns the new array of placeholder indexes.\n */\n function replaceHolders(array, placeholder) {\n var index = -1,\n length = array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (value === placeholder || value === PLACEHOLDER) {\n array[index] = PLACEHOLDER;\n result[resIndex++] = index;\n }\n }\n return result;\n }\n\n /**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\n function setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n }\n\n /**\n * Converts `set` to its value-value pairs.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the value-value pairs.\n */\n function setToPairs(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = [value, value];\n });\n return result;\n }\n\n /**\n * A specialized version of `_.indexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function strictIndexOf(array, value, fromIndex) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (array[index] === value) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * A specialized version of `_.lastIndexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function strictLastIndexOf(array, value, fromIndex) {\n var index = fromIndex + 1;\n while (index--) {\n if (array[index] === value) {\n return index;\n }\n }\n return index;\n }\n\n /**\n * Gets the number of symbols in `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the string size.\n */\n function stringSize(string) {\n return hasUnicode(string)\n ? unicodeSize(string)\n : asciiSize(string);\n }\n\n /**\n * Converts `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function stringToArray(string) {\n return hasUnicode(string)\n ? unicodeToArray(string)\n : asciiToArray(string);\n }\n\n /**\n * Used by `_.unescape` to convert HTML entities to characters.\n *\n * @private\n * @param {string} chr The matched character to unescape.\n * @returns {string} Returns the unescaped character.\n */\n var unescapeHtmlChar = basePropertyOf(htmlUnescapes);\n\n /**\n * Gets the size of a Unicode `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\n function unicodeSize(string) {\n var result = reUnicode.lastIndex = 0;\n while (reUnicode.test(string)) {\n ++result;\n }\n return result;\n }\n\n /**\n * Converts a Unicode `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function unicodeToArray(string) {\n return string.match(reUnicode) || [];\n }\n\n /**\n * Splits a Unicode `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\n function unicodeWords(string) {\n return string.match(reUnicodeWord) || [];\n }\n\n /*--------------------------------------------------------------------------*/\n\n /**\n * Create a new pristine `lodash` function using the `context` object.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Util\n * @param {Object} [context=root] The context object.\n * @returns {Function} Returns a new `lodash` function.\n * @example\n *\n * _.mixin({ 'foo': _.constant('foo') });\n *\n * var lodash = _.runInContext();\n * lodash.mixin({ 'bar': lodash.constant('bar') });\n *\n * _.isFunction(_.foo);\n * // => true\n * _.isFunction(_.bar);\n * // => false\n *\n * lodash.isFunction(lodash.foo);\n * // => false\n * lodash.isFunction(lodash.bar);\n * // => true\n *\n * // Create a suped-up `defer` in Node.js.\n * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;\n */\n var runInContext = (function runInContext(context) {\n context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));\n\n /** Built-in constructor references. */\n var Array = context.Array,\n Date = context.Date,\n Error = context.Error,\n Function = context.Function,\n Math = context.Math,\n Object = context.Object,\n RegExp = context.RegExp,\n String = context.String,\n TypeError = context.TypeError;\n\n /** Used for built-in method references. */\n var arrayProto = Array.prototype,\n funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n /** Used to detect overreaching core-js shims. */\n var coreJsData = context['__core-js_shared__'];\n\n /** Used to resolve the decompiled source of functions. */\n var funcToString = funcProto.toString;\n\n /** Used to check objects for own properties. */\n var hasOwnProperty = objectProto.hasOwnProperty;\n\n /** Used to generate unique IDs. */\n var idCounter = 0;\n\n /** Used to detect methods masquerading as native. */\n var maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n }());\n\n /**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\n var nativeObjectToString = objectProto.toString;\n\n /** Used to infer the `Object` constructor. */\n var objectCtorString = funcToString.call(Object);\n\n /** Used to restore the original `_` reference in `_.noConflict`. */\n var oldDash = root._;\n\n /** Used to detect if a method is native. */\n var reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n );\n\n /** Built-in value references. */\n var Buffer = moduleExports ? context.Buffer : undefined,\n Symbol = context.Symbol,\n Uint8Array = context.Uint8Array,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,\n getPrototype = overArg(Object.getPrototypeOf, Object),\n objectCreate = Object.create,\n propertyIsEnumerable = objectProto.propertyIsEnumerable,\n splice = arrayProto.splice,\n spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined,\n symIterator = Symbol ? Symbol.iterator : undefined,\n symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n var defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n }());\n\n /** Mocked built-ins. */\n var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout,\n ctxNow = Date && Date.now !== root.Date.now && Date.now,\n ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;\n\n /* Built-in method references for those with the same name as other `lodash` methods. */\n var nativeCeil = Math.ceil,\n nativeFloor = Math.floor,\n nativeGetSymbols = Object.getOwnPropertySymbols,\n nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,\n nativeIsFinite = context.isFinite,\n nativeJoin = arrayProto.join,\n nativeKeys = overArg(Object.keys, Object),\n nativeMax = Math.max,\n nativeMin = Math.min,\n nativeNow = Date.now,\n nativeParseInt = context.parseInt,\n nativeRandom = Math.random,\n nativeReverse = arrayProto.reverse;\n\n /* Built-in method references that are verified to be native. */\n var DataView = getNative(context, 'DataView'),\n Map = getNative(context, 'Map'),\n Promise = getNative(context, 'Promise'),\n Set = getNative(context, 'Set'),\n WeakMap = getNative(context, 'WeakMap'),\n nativeCreate = getNative(Object, 'create');\n\n /** Used to store function metadata. */\n var metaMap = WeakMap && new WeakMap;\n\n /** Used to lookup unminified function names. */\n var realNames = {};\n\n /** Used to detect maps, sets, and weakmaps. */\n var dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n /** Used to convert symbols to primitives and strings. */\n var symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a `lodash` object which wraps `value` to enable implicit method\n * chain sequences. Methods that operate on and return arrays, collections,\n * and functions can be chained together. Methods that retrieve a single value\n * or may return a primitive value will automatically end the chain sequence\n * and return the unwrapped value. Otherwise, the value must be unwrapped\n * with `_#value`.\n *\n * Explicit chain sequences, which must be unwrapped with `_#value`, may be\n * enabled using `_.chain`.\n *\n * The execution of chained methods is lazy, that is, it's deferred until\n * `_#value` is implicitly or explicitly called.\n *\n * Lazy evaluation allows several methods to support shortcut fusion.\n * Shortcut fusion is an optimization to merge iteratee calls; this avoids\n * the creation of intermediate arrays and can greatly reduce the number of\n * iteratee executions. Sections of a chain sequence qualify for shortcut\n * fusion if the section is applied to an array and iteratees accept only\n * one argument. The heuristic for whether a section qualifies for shortcut\n * fusion is subject to change.\n *\n * Chaining is supported in custom builds as long as the `_#value` method is\n * directly or indirectly included in the build.\n *\n * In addition to lodash methods, wrappers have `Array` and `String` methods.\n *\n * The wrapper `Array` methods are:\n * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`\n *\n * The wrapper `String` methods are:\n * `replace` and `split`\n *\n * The wrapper methods that support shortcut fusion are:\n * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,\n * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,\n * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`\n *\n * The chainable wrapper methods are:\n * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,\n * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,\n * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,\n * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,\n * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,\n * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,\n * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,\n * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,\n * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,\n * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,\n * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,\n * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,\n * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,\n * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,\n * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,\n * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,\n * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,\n * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,\n * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,\n * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,\n * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,\n * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,\n * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,\n * `zipObject`, `zipObjectDeep`, and `zipWith`\n *\n * The wrapper methods that are **not** chainable by default are:\n * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,\n * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,\n * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,\n * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,\n * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,\n * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,\n * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,\n * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,\n * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,\n * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,\n * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,\n * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,\n * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,\n * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,\n * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,\n * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,\n * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,\n * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,\n * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,\n * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,\n * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,\n * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,\n * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,\n * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,\n * `upperFirst`, `value`, and `words`\n *\n * @name _\n * @constructor\n * @category Seq\n * @param {*} value The value to wrap in a `lodash` instance.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var wrapped = _([1, 2, 3]);\n *\n * // Returns an unwrapped value.\n * wrapped.reduce(_.add);\n * // => 6\n *\n * // Returns a wrapped value.\n * var squares = wrapped.map(square);\n *\n * _.isArray(squares);\n * // => false\n *\n * _.isArray(squares.value());\n * // => true\n */\n function lodash(value) {\n if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {\n if (value instanceof LodashWrapper) {\n return value;\n }\n if (hasOwnProperty.call(value, '__wrapped__')) {\n return wrapperClone(value);\n }\n }\n return new LodashWrapper(value);\n }\n\n /**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\n var baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n }());\n\n /**\n * The function whose prototype chain sequence wrappers inherit from.\n *\n * @private\n */\n function baseLodash() {\n // No operation performed.\n }\n\n /**\n * The base constructor for creating `lodash` wrapper objects.\n *\n * @private\n * @param {*} value The value to wrap.\n * @param {boolean} [chainAll] Enable explicit method chain sequences.\n */\n function LodashWrapper(value, chainAll) {\n this.__wrapped__ = value;\n this.__actions__ = [];\n this.__chain__ = !!chainAll;\n this.__index__ = 0;\n this.__values__ = undefined;\n }\n\n /**\n * By default, the template delimiters used by lodash are like those in\n * embedded Ruby (ERB) as well as ES2015 template strings. Change the\n * following template settings to use alternative delimiters.\n *\n * @static\n * @memberOf _\n * @type {Object}\n */\n lodash.templateSettings = {\n\n /**\n * Used to detect `data` property values to be HTML-escaped.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'escape': reEscape,\n\n /**\n * Used to detect code to be evaluated.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'evaluate': reEvaluate,\n\n /**\n * Used to detect `data` property values to inject.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'interpolate': reInterpolate,\n\n /**\n * Used to reference the data object in the template text.\n *\n * @memberOf _.templateSettings\n * @type {string}\n */\n 'variable': '',\n\n /**\n * Used to import variables into the compiled template.\n *\n * @memberOf _.templateSettings\n * @type {Object}\n */\n 'imports': {\n\n /**\n * A reference to the `lodash` function.\n *\n * @memberOf _.templateSettings.imports\n * @type {Function}\n */\n '_': lodash\n }\n };\n\n // Ensure wrappers are instances of `baseLodash`.\n lodash.prototype = baseLodash.prototype;\n lodash.prototype.constructor = lodash;\n\n LodashWrapper.prototype = baseCreate(baseLodash.prototype);\n LodashWrapper.prototype.constructor = LodashWrapper;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.\n *\n * @private\n * @constructor\n * @param {*} value The value to wrap.\n */\n function LazyWrapper(value) {\n this.__wrapped__ = value;\n this.__actions__ = [];\n this.__dir__ = 1;\n this.__filtered__ = false;\n this.__iteratees__ = [];\n this.__takeCount__ = MAX_ARRAY_LENGTH;\n this.__views__ = [];\n }\n\n /**\n * Creates a clone of the lazy wrapper object.\n *\n * @private\n * @name clone\n * @memberOf LazyWrapper\n * @returns {Object} Returns the cloned `LazyWrapper` object.\n */\n function lazyClone() {\n var result = new LazyWrapper(this.__wrapped__);\n result.__actions__ = copyArray(this.__actions__);\n result.__dir__ = this.__dir__;\n result.__filtered__ = this.__filtered__;\n result.__iteratees__ = copyArray(this.__iteratees__);\n result.__takeCount__ = this.__takeCount__;\n result.__views__ = copyArray(this.__views__);\n return result;\n }\n\n /**\n * Reverses the direction of lazy iteration.\n *\n * @private\n * @name reverse\n * @memberOf LazyWrapper\n * @returns {Object} Returns the new reversed `LazyWrapper` object.\n */\n function lazyReverse() {\n if (this.__filtered__) {\n var result = new LazyWrapper(this);\n result.__dir__ = -1;\n result.__filtered__ = true;\n } else {\n result = this.clone();\n result.__dir__ *= -1;\n }\n return result;\n }\n\n /**\n * Extracts the unwrapped value from its lazy wrapper.\n *\n * @private\n * @name value\n * @memberOf LazyWrapper\n * @returns {*} Returns the unwrapped value.\n */\n function lazyValue() {\n var array = this.__wrapped__.value(),\n dir = this.__dir__,\n isArr = isArray(array),\n isRight = dir < 0,\n arrLength = isArr ? array.length : 0,\n view = getView(0, arrLength, this.__views__),\n start = view.start,\n end = view.end,\n length = end - start,\n index = isRight ? end : (start - 1),\n iteratees = this.__iteratees__,\n iterLength = iteratees.length,\n resIndex = 0,\n takeCount = nativeMin(length, this.__takeCount__);\n\n if (!isArr || (!isRight && arrLength == length && takeCount == length)) {\n return baseWrapperValue(array, this.__actions__);\n }\n var result = [];\n\n outer:\n while (length-- && resIndex < takeCount) {\n index += dir;\n\n var iterIndex = -1,\n value = array[index];\n\n while (++iterIndex < iterLength) {\n var data = iteratees[iterIndex],\n iteratee = data.iteratee,\n type = data.type,\n computed = iteratee(value);\n\n if (type == LAZY_MAP_FLAG) {\n value = computed;\n } else if (!computed) {\n if (type == LAZY_FILTER_FLAG) {\n continue outer;\n } else {\n break outer;\n }\n }\n }\n result[resIndex++] = value;\n }\n return result;\n }\n\n // Ensure `LazyWrapper` is an instance of `baseLodash`.\n LazyWrapper.prototype = baseCreate(baseLodash.prototype);\n LazyWrapper.prototype.constructor = LazyWrapper;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\n function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n }\n\n /**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n }\n\n /**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n }\n\n /**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\n function hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n }\n\n // Add methods to `Hash`.\n Hash.prototype.clear = hashClear;\n Hash.prototype['delete'] = hashDelete;\n Hash.prototype.get = hashGet;\n Hash.prototype.has = hashHas;\n Hash.prototype.set = hashSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\n function listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n }\n\n /**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n }\n\n /**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n }\n\n /**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\n function listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n }\n\n // Add methods to `ListCache`.\n ListCache.prototype.clear = listCacheClear;\n ListCache.prototype['delete'] = listCacheDelete;\n ListCache.prototype.get = listCacheGet;\n ListCache.prototype.has = listCacheHas;\n ListCache.prototype.set = listCacheSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\n function mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n }\n\n /**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n }\n\n /**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function mapCacheGet(key) {\n return getMapData(this, key).get(key);\n }\n\n /**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function mapCacheHas(key) {\n return getMapData(this, key).has(key);\n }\n\n /**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\n function mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n }\n\n // Add methods to `MapCache`.\n MapCache.prototype.clear = mapCacheClear;\n MapCache.prototype['delete'] = mapCacheDelete;\n MapCache.prototype.get = mapCacheGet;\n MapCache.prototype.has = mapCacheHas;\n MapCache.prototype.set = mapCacheSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\n function SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n }\n\n /**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\n function setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n }\n\n /**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\n function setCacheHas(value) {\n return this.__data__.has(value);\n }\n\n // Add methods to `SetCache`.\n SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\n SetCache.prototype.has = setCacheHas;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n }\n\n /**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\n function stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n }\n\n /**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function stackGet(key) {\n return this.__data__.get(key);\n }\n\n /**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function stackHas(key) {\n return this.__data__.has(key);\n }\n\n /**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\n function stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n }\n\n // Add methods to `Stack`.\n Stack.prototype.clear = stackClear;\n Stack.prototype['delete'] = stackDelete;\n Stack.prototype.get = stackGet;\n Stack.prototype.has = stackHas;\n Stack.prototype.set = stackSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\n function arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `_.sample` for arrays.\n *\n * @private\n * @param {Array} array The array to sample.\n * @returns {*} Returns the random element.\n */\n function arraySample(array) {\n var length = array.length;\n return length ? array[baseRandom(0, length - 1)] : undefined;\n }\n\n /**\n * A specialized version of `_.sampleSize` for arrays.\n *\n * @private\n * @param {Array} array The array to sample.\n * @param {number} n The number of elements to sample.\n * @returns {Array} Returns the random elements.\n */\n function arraySampleSize(array, n) {\n return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));\n }\n\n /**\n * A specialized version of `_.shuffle` for arrays.\n *\n * @private\n * @param {Array} array The array to shuffle.\n * @returns {Array} Returns the new shuffled array.\n */\n function arrayShuffle(array) {\n return shuffleSelf(copyArray(array));\n }\n\n /**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function assignMergeValue(object, key, value) {\n if ((value !== undefined && !eq(object[key], value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n }\n\n /**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n }\n\n /**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n }\n\n /**\n * Aggregates elements of `collection` on `accumulator` with keys transformed\n * by `iteratee` and values set by `setter`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\n function baseAggregator(collection, setter, iteratee, accumulator) {\n baseEach(collection, function(value, key, collection) {\n setter(accumulator, value, iteratee(value), collection);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.assign` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\n function baseAssign(object, source) {\n return object && copyObject(source, keys(source), object);\n }\n\n /**\n * The base implementation of `_.assignIn` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\n function baseAssignIn(object, source) {\n return object && copyObject(source, keysIn(source), object);\n }\n\n /**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n }\n\n /**\n * The base implementation of `_.at` without support for individual paths.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {string[]} paths The property paths to pick.\n * @returns {Array} Returns the picked elements.\n */\n function baseAt(object, paths) {\n var index = -1,\n length = paths.length,\n result = Array(length),\n skip = object == null;\n\n while (++index < length) {\n result[index] = skip ? undefined : get(object, paths[index]);\n }\n return result;\n }\n\n /**\n * The base implementation of `_.clamp` which doesn't coerce arguments.\n *\n * @private\n * @param {number} number The number to clamp.\n * @param {number} [lower] The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the clamped number.\n */\n function baseClamp(number, lower, upper) {\n if (number === number) {\n if (upper !== undefined) {\n number = number <= upper ? number : upper;\n }\n if (lower !== undefined) {\n number = number >= lower ? number : lower;\n }\n }\n return number;\n }\n\n /**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Deep clone\n * 2 - Flatten inherited properties\n * 4 - Clone symbols\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\n function baseClone(value, bitmask, customizer, key, object, stack) {\n var result,\n isDeep = bitmask & CLONE_DEEP_FLAG,\n isFlat = bitmask & CLONE_FLAT_FLAG,\n isFull = bitmask & CLONE_SYMBOLS_FLAG;\n\n if (customizer) {\n result = object ? customizer(value, key, object, stack) : customizer(value);\n }\n if (result !== undefined) {\n return result;\n }\n if (!isObject(value)) {\n return value;\n }\n var isArr = isArray(value);\n if (isArr) {\n result = initCloneArray(value);\n if (!isDeep) {\n return copyArray(value, result);\n }\n } else {\n var tag = getTag(value),\n isFunc = tag == funcTag || tag == genTag;\n\n if (isBuffer(value)) {\n return cloneBuffer(value, isDeep);\n }\n if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n result = (isFlat || isFunc) ? {} : initCloneObject(value);\n if (!isDeep) {\n return isFlat\n ? copySymbolsIn(value, baseAssignIn(result, value))\n : copySymbols(value, baseAssign(result, value));\n }\n } else {\n if (!cloneableTags[tag]) {\n return object ? value : {};\n }\n result = initCloneByTag(value, tag, baseClone, isDeep);\n }\n }\n // Check for circular references and return its corresponding clone.\n stack || (stack = new Stack);\n var stacked = stack.get(value);\n if (stacked) {\n return stacked;\n }\n stack.set(value, result);\n\n var keysFunc = isFull\n ? (isFlat ? getAllKeysIn : getAllKeys)\n : (isFlat ? keysIn : keys);\n\n var props = isArr ? undefined : keysFunc(value);\n arrayEach(props || value, function(subValue, key) {\n if (props) {\n key = subValue;\n subValue = value[key];\n }\n // Recursively populate clone (susceptible to call stack limits).\n assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n return result;\n }\n\n /**\n * The base implementation of `_.conforms` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property predicates to conform to.\n * @returns {Function} Returns the new spec function.\n */\n function baseConforms(source) {\n var props = keys(source);\n return function(object) {\n return baseConformsTo(object, source, props);\n };\n }\n\n /**\n * The base implementation of `_.conformsTo` which accepts `props` to check.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property predicates to conform to.\n * @returns {boolean} Returns `true` if `object` conforms, else `false`.\n */\n function baseConformsTo(object, source, props) {\n var length = props.length;\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (length--) {\n var key = props[length],\n predicate = source[key],\n value = object[key];\n\n if ((value === undefined && !(key in object)) || !predicate(value)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * The base implementation of `_.delay` and `_.defer` which accepts `args`\n * to provide to `func`.\n *\n * @private\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @param {Array} args The arguments to provide to `func`.\n * @returns {number|Object} Returns the timer id or timeout object.\n */\n function baseDelay(func, wait, args) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return setTimeout(function() { func.apply(undefined, args); }, wait);\n }\n\n /**\n * The base implementation of methods like `_.difference` without support\n * for excluding multiple arrays or iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Array} values The values to exclude.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n */\n function baseDifference(array, values, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n isCommon = true,\n length = array.length,\n result = [],\n valuesLength = values.length;\n\n if (!length) {\n return result;\n }\n if (iteratee) {\n values = arrayMap(values, baseUnary(iteratee));\n }\n if (comparator) {\n includes = arrayIncludesWith;\n isCommon = false;\n }\n else if (values.length >= LARGE_ARRAY_SIZE) {\n includes = cacheHas;\n isCommon = false;\n values = new SetCache(values);\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee == null ? value : iteratee(value);\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var valuesIndex = valuesLength;\n while (valuesIndex--) {\n if (values[valuesIndex] === computed) {\n continue outer;\n }\n }\n result.push(value);\n }\n else if (!includes(values, computed, comparator)) {\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\n var baseEach = createBaseEach(baseForOwn);\n\n /**\n * The base implementation of `_.forEachRight` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\n var baseEachRight = createBaseEach(baseForOwnRight, true);\n\n /**\n * The base implementation of `_.every` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`\n */\n function baseEvery(collection, predicate) {\n var result = true;\n baseEach(collection, function(value, index, collection) {\n result = !!predicate(value, index, collection);\n return result;\n });\n return result;\n }\n\n /**\n * The base implementation of methods like `_.max` and `_.min` which accepts a\n * `comparator` to determine the extremum value.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The iteratee invoked per iteration.\n * @param {Function} comparator The comparator used to compare values.\n * @returns {*} Returns the extremum value.\n */\n function baseExtremum(array, iteratee, comparator) {\n var index = -1,\n length = array.length;\n\n while (++index < length) {\n var value = array[index],\n current = iteratee(value);\n\n if (current != null && (computed === undefined\n ? (current === current && !isSymbol(current))\n : comparator(current, computed)\n )) {\n var computed = current,\n result = value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.fill` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to fill.\n * @param {*} value The value to fill `array` with.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns `array`.\n */\n function baseFill(array, value, start, end) {\n var length = array.length;\n\n start = toInteger(start);\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = (end === undefined || end > length) ? length : toInteger(end);\n if (end < 0) {\n end += length;\n }\n end = start > end ? 0 : toLength(end);\n while (start < end) {\n array[start++] = value;\n }\n return array;\n }\n\n /**\n * The base implementation of `_.filter` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\n function baseFilter(collection, predicate) {\n var result = [];\n baseEach(collection, function(value, index, collection) {\n if (predicate(value, index, collection)) {\n result.push(value);\n }\n });\n return result;\n }\n\n /**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\n function baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\n var baseFor = createBaseFor();\n\n /**\n * This function is like `baseFor` except that it iterates over properties\n * in the opposite order.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\n var baseForRight = createBaseFor(true);\n\n /**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\n function baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n }\n\n /**\n * The base implementation of `_.forOwnRight` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\n function baseForOwnRight(object, iteratee) {\n return object && baseForRight(object, iteratee, keys);\n }\n\n /**\n * The base implementation of `_.functions` which creates an array of\n * `object` function property names filtered from `props`.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Array} props The property names to filter.\n * @returns {Array} Returns the function names.\n */\n function baseFunctions(object, props) {\n return arrayFilter(props, function(key) {\n return isFunction(object[key]);\n });\n }\n\n /**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\n function baseGet(object, path) {\n path = castPath(path, object);\n\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[toKey(path[index++])];\n }\n return (index && index == length) ? object : undefined;\n }\n\n /**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n }\n\n /**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n function baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n }\n\n /**\n * The base implementation of `_.gt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n */\n function baseGt(value, other) {\n return value > other;\n }\n\n /**\n * The base implementation of `_.has` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\n function baseHas(object, key) {\n return object != null && hasOwnProperty.call(object, key);\n }\n\n /**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\n function baseHasIn(object, key) {\n return object != null && key in Object(object);\n }\n\n /**\n * The base implementation of `_.inRange` which doesn't coerce arguments.\n *\n * @private\n * @param {number} number The number to check.\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @returns {boolean} Returns `true` if `number` is in the range, else `false`.\n */\n function baseInRange(number, start, end) {\n return number >= nativeMin(start, end) && number < nativeMax(start, end);\n }\n\n /**\n * The base implementation of methods like `_.intersection`, without support\n * for iteratee shorthands, that accepts an array of arrays to inspect.\n *\n * @private\n * @param {Array} arrays The arrays to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of shared values.\n */\n function baseIntersection(arrays, iteratee, comparator) {\n var includes = comparator ? arrayIncludesWith : arrayIncludes,\n length = arrays[0].length,\n othLength = arrays.length,\n othIndex = othLength,\n caches = Array(othLength),\n maxLength = Infinity,\n result = [];\n\n while (othIndex--) {\n var array = arrays[othIndex];\n if (othIndex && iteratee) {\n array = arrayMap(array, baseUnary(iteratee));\n }\n maxLength = nativeMin(array.length, maxLength);\n caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))\n ? new SetCache(othIndex && array)\n : undefined;\n }\n array = arrays[0];\n\n var index = -1,\n seen = caches[0];\n\n outer:\n while (++index < length && result.length < maxLength) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (!(seen\n ? cacheHas(seen, computed)\n : includes(result, computed, comparator)\n )) {\n othIndex = othLength;\n while (--othIndex) {\n var cache = caches[othIndex];\n if (!(cache\n ? cacheHas(cache, computed)\n : includes(arrays[othIndex], computed, comparator))\n ) {\n continue outer;\n }\n }\n if (seen) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.invert` and `_.invertBy` which inverts\n * `object` with values transformed by `iteratee` and set by `setter`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform values.\n * @param {Object} accumulator The initial inverted object.\n * @returns {Function} Returns `accumulator`.\n */\n function baseInverter(object, setter, iteratee, accumulator) {\n baseForOwn(object, function(value, key, object) {\n setter(accumulator, iteratee(value), key, object);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.invoke` without support for individual\n * method arguments.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the method to invoke.\n * @param {Array} args The arguments to invoke the method with.\n * @returns {*} Returns the result of the invoked method.\n */\n function baseInvoke(object, path, args) {\n path = castPath(path, object);\n object = parent(object, path);\n var func = object == null ? object : object[toKey(last(path))];\n return func == null ? undefined : apply(func, object, args);\n }\n\n /**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\n function baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n }\n\n /**\n * The base implementation of `_.isArrayBuffer` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.\n */\n function baseIsArrayBuffer(value) {\n return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;\n }\n\n /**\n * The base implementation of `_.isDate` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a date object, else `false`.\n */\n function baseIsDate(value) {\n return isObjectLike(value) && baseGetTag(value) == dateTag;\n }\n\n /**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\n function baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n }\n\n /**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return (objIsArr || isTypedArray(object))\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack);\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n }\n\n /**\n * The base implementation of `_.isMap` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n */\n function baseIsMap(value) {\n return isObjectLike(value) && getTag(value) == mapTag;\n }\n\n /**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\n function baseIsMatch(object, source, matchData, customizer) {\n var index = matchData.length,\n length = index,\n noCustomizer = !customizer;\n\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (index--) {\n var data = matchData[index];\n if ((noCustomizer && data[2])\n ? data[1] !== object[data[0]]\n : !(data[0] in object)\n ) {\n return false;\n }\n }\n while (++index < length) {\n data = matchData[index];\n var key = data[0],\n objValue = object[key],\n srcValue = data[1];\n\n if (noCustomizer && data[2]) {\n if (objValue === undefined && !(key in object)) {\n return false;\n }\n } else {\n var stack = new Stack;\n if (customizer) {\n var result = customizer(objValue, srcValue, key, object, source, stack);\n }\n if (!(result === undefined\n ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\n : result\n )) {\n return false;\n }\n }\n }\n return true;\n }\n\n /**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\n function baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n }\n\n /**\n * The base implementation of `_.isRegExp` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\n */\n function baseIsRegExp(value) {\n return isObjectLike(value) && baseGetTag(value) == regexpTag;\n }\n\n /**\n * The base implementation of `_.isSet` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n */\n function baseIsSet(value) {\n return isObjectLike(value) && getTag(value) == setTag;\n }\n\n /**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\n function baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n }\n\n /**\n * The base implementation of `_.iteratee`.\n *\n * @private\n * @param {*} [value=_.identity] The value to convert to an iteratee.\n * @returns {Function} Returns the iteratee.\n */\n function baseIteratee(value) {\n // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n if (typeof value == 'function') {\n return value;\n }\n if (value == null) {\n return identity;\n }\n if (typeof value == 'object') {\n return isArray(value)\n ? baseMatchesProperty(value[0], value[1])\n : baseMatches(value);\n }\n return property(value);\n }\n\n /**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.lt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than `other`,\n * else `false`.\n */\n function baseLt(value, other) {\n return value < other;\n }\n\n /**\n * The base implementation of `_.map` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\n function baseMap(collection, iteratee) {\n var index = -1,\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value, key, collection) {\n result[++index] = iteratee(value, key, collection);\n });\n return result;\n }\n\n /**\n * The base implementation of `_.matches` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n */\n function baseMatches(source) {\n var matchData = getMatchData(source);\n if (matchData.length == 1 && matchData[0][2]) {\n return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n }\n return function(object) {\n return object === source || baseIsMatch(object, source, matchData);\n };\n }\n\n /**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\n function baseMatchesProperty(path, srcValue) {\n if (isKey(path) && isStrictComparable(srcValue)) {\n return matchesStrictComparable(toKey(path), srcValue);\n }\n return function(object) {\n var objValue = get(object, path);\n return (objValue === undefined && objValue === srcValue)\n ? hasIn(object, path)\n : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n };\n }\n\n /**\n * The base implementation of `_.merge` without support for multiple sources.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} [customizer] The function to customize merged values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\n function baseMerge(object, source, srcIndex, customizer, stack) {\n if (object === source) {\n return;\n }\n baseFor(source, function(srcValue, key) {\n if (isObject(srcValue)) {\n stack || (stack = new Stack);\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n }\n else {\n var newValue = customizer\n ? customizer(object[key], srcValue, (key + ''), object, source, stack)\n : undefined;\n\n if (newValue === undefined) {\n newValue = srcValue;\n }\n assignMergeValue(object, key, newValue);\n }\n }, keysIn);\n }\n\n /**\n * A specialized version of `baseMerge` for arrays and objects which performs\n * deep merges and tracks traversed objects enabling objects with circular\n * references to be merged.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {string} key The key of the value to merge.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} mergeFunc The function to merge values.\n * @param {Function} [customizer] The function to customize assigned values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\n function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n var objValue = object[key],\n srcValue = source[key],\n stacked = stack.get(srcValue);\n\n if (stacked) {\n assignMergeValue(object, key, stacked);\n return;\n }\n var newValue = customizer\n ? customizer(objValue, srcValue, (key + ''), object, source, stack)\n : undefined;\n\n var isCommon = newValue === undefined;\n\n if (isCommon) {\n var isArr = isArray(srcValue),\n isBuff = !isArr && isBuffer(srcValue),\n isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n\n newValue = srcValue;\n if (isArr || isBuff || isTyped) {\n if (isArray(objValue)) {\n newValue = objValue;\n }\n else if (isArrayLikeObject(objValue)) {\n newValue = copyArray(objValue);\n }\n else if (isBuff) {\n isCommon = false;\n newValue = cloneBuffer(srcValue, true);\n }\n else if (isTyped) {\n isCommon = false;\n newValue = cloneTypedArray(srcValue, true);\n }\n else {\n newValue = [];\n }\n }\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n newValue = objValue;\n if (isArguments(objValue)) {\n newValue = toPlainObject(objValue);\n }\n else if (!isObject(objValue) || (srcIndex && isFunction(objValue))) {\n newValue = initCloneObject(srcValue);\n }\n }\n else {\n isCommon = false;\n }\n }\n if (isCommon) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, newValue);\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n stack['delete'](srcValue);\n }\n assignMergeValue(object, key, newValue);\n }\n\n /**\n * The base implementation of `_.nth` which doesn't coerce arguments.\n *\n * @private\n * @param {Array} array The array to query.\n * @param {number} n The index of the element to return.\n * @returns {*} Returns the nth element of `array`.\n */\n function baseNth(array, n) {\n var length = array.length;\n if (!length) {\n return;\n }\n n += n < 0 ? length : 0;\n return isIndex(n, length) ? array[n] : undefined;\n }\n\n /**\n * The base implementation of `_.orderBy` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\n * @param {string[]} orders The sort orders of `iteratees`.\n * @returns {Array} Returns the new sorted array.\n */\n function baseOrderBy(collection, iteratees, orders) {\n var index = -1;\n iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(getIteratee()));\n\n var result = baseMap(collection, function(value, key, collection) {\n var criteria = arrayMap(iteratees, function(iteratee) {\n return iteratee(value);\n });\n return { 'criteria': criteria, 'index': ++index, 'value': value };\n });\n\n return baseSortBy(result, function(object, other) {\n return compareMultiple(object, other, orders);\n });\n }\n\n /**\n * The base implementation of `_.pick` without support for individual\n * property identifiers.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @returns {Object} Returns the new object.\n */\n function basePick(object, paths) {\n return basePickBy(object, paths, function(value, path) {\n return hasIn(object, path);\n });\n }\n\n /**\n * The base implementation of `_.pickBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @param {Function} predicate The function invoked per property.\n * @returns {Object} Returns the new object.\n */\n function basePickBy(object, paths, predicate) {\n var index = -1,\n length = paths.length,\n result = {};\n\n while (++index < length) {\n var path = paths[index],\n value = baseGet(object, path);\n\n if (predicate(value, path)) {\n baseSet(result, castPath(path, object), value);\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\n function basePropertyDeep(path) {\n return function(object) {\n return baseGet(object, path);\n };\n }\n\n /**\n * The base implementation of `_.pullAllBy` without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns `array`.\n */\n function basePullAll(array, values, iteratee, comparator) {\n var indexOf = comparator ? baseIndexOfWith : baseIndexOf,\n index = -1,\n length = values.length,\n seen = array;\n\n if (array === values) {\n values = copyArray(values);\n }\n if (iteratee) {\n seen = arrayMap(array, baseUnary(iteratee));\n }\n while (++index < length) {\n var fromIndex = 0,\n value = values[index],\n computed = iteratee ? iteratee(value) : value;\n\n while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) {\n if (seen !== array) {\n splice.call(seen, fromIndex, 1);\n }\n splice.call(array, fromIndex, 1);\n }\n }\n return array;\n }\n\n /**\n * The base implementation of `_.pullAt` without support for individual\n * indexes or capturing the removed elements.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {number[]} indexes The indexes of elements to remove.\n * @returns {Array} Returns `array`.\n */\n function basePullAt(array, indexes) {\n var length = array ? indexes.length : 0,\n lastIndex = length - 1;\n\n while (length--) {\n var index = indexes[length];\n if (length == lastIndex || index !== previous) {\n var previous = index;\n if (isIndex(index)) {\n splice.call(array, index, 1);\n } else {\n baseUnset(array, index);\n }\n }\n }\n return array;\n }\n\n /**\n * The base implementation of `_.random` without support for returning\n * floating-point numbers.\n *\n * @private\n * @param {number} lower The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the random number.\n */\n function baseRandom(lower, upper) {\n return lower + nativeFloor(nativeRandom() * (upper - lower + 1));\n }\n\n /**\n * The base implementation of `_.range` and `_.rangeRight` which doesn't\n * coerce arguments.\n *\n * @private\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @param {number} step The value to increment or decrement by.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the range of numbers.\n */\n function baseRange(start, end, step, fromRight) {\n var index = -1,\n length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),\n result = Array(length);\n\n while (length--) {\n result[fromRight ? length : ++index] = start;\n start += step;\n }\n return result;\n }\n\n /**\n * The base implementation of `_.repeat` which doesn't coerce arguments.\n *\n * @private\n * @param {string} string The string to repeat.\n * @param {number} n The number of times to repeat the string.\n * @returns {string} Returns the repeated string.\n */\n function baseRepeat(string, n) {\n var result = '';\n if (!string || n < 1 || n > MAX_SAFE_INTEGER) {\n return result;\n }\n // Leverage the exponentiation by squaring algorithm for a faster repeat.\n // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.\n do {\n if (n % 2) {\n result += string;\n }\n n = nativeFloor(n / 2);\n if (n) {\n string += string;\n }\n } while (n);\n\n return result;\n }\n\n /**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\n function baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n }\n\n /**\n * The base implementation of `_.sample`.\n *\n * @private\n * @param {Array|Object} collection The collection to sample.\n * @returns {*} Returns the random element.\n */\n function baseSample(collection) {\n return arraySample(values(collection));\n }\n\n /**\n * The base implementation of `_.sampleSize` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to sample.\n * @param {number} n The number of elements to sample.\n * @returns {Array} Returns the random elements.\n */\n function baseSampleSize(collection, n) {\n var array = values(collection);\n return shuffleSelf(array, baseClamp(n, 0, array.length));\n }\n\n /**\n * The base implementation of `_.set`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\n function baseSet(object, path, value, customizer) {\n if (!isObject(object)) {\n return object;\n }\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n lastIndex = length - 1,\n nested = object;\n\n while (nested != null && ++index < length) {\n var key = toKey(path[index]),\n newValue = value;\n\n if (index != lastIndex) {\n var objValue = nested[key];\n newValue = customizer ? customizer(objValue, key, nested) : undefined;\n if (newValue === undefined) {\n newValue = isObject(objValue)\n ? objValue\n : (isIndex(path[index + 1]) ? [] : {});\n }\n }\n assignValue(nested, key, newValue);\n nested = nested[key];\n }\n return object;\n }\n\n /**\n * The base implementation of `setData` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to associate metadata with.\n * @param {*} data The metadata.\n * @returns {Function} Returns `func`.\n */\n var baseSetData = !metaMap ? identity : function(func, data) {\n metaMap.set(func, data);\n return func;\n };\n\n /**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\n var baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n };\n\n /**\n * The base implementation of `_.shuffle`.\n *\n * @private\n * @param {Array|Object} collection The collection to shuffle.\n * @returns {Array} Returns the new shuffled array.\n */\n function baseShuffle(collection) {\n return shuffleSelf(values(collection));\n }\n\n /**\n * The base implementation of `_.slice` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\n function baseSlice(array, start, end) {\n var index = -1,\n length = array.length;\n\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = end > length ? length : end;\n if (end < 0) {\n end += length;\n }\n length = start > end ? 0 : ((end - start) >>> 0);\n start >>>= 0;\n\n var result = Array(length);\n while (++index < length) {\n result[index] = array[index + start];\n }\n return result;\n }\n\n /**\n * The base implementation of `_.some` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\n function baseSome(collection, predicate) {\n var result;\n\n baseEach(collection, function(value, index, collection) {\n result = predicate(value, index, collection);\n return !result;\n });\n return !!result;\n }\n\n /**\n * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which\n * performs a binary search of `array` to determine the index at which `value`\n * should be inserted into `array` in order to maintain its sort order.\n *\n * @private\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {boolean} [retHighest] Specify returning the highest qualified index.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n */\n function baseSortedIndex(array, value, retHighest) {\n var low = 0,\n high = array == null ? low : array.length;\n\n if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {\n while (low < high) {\n var mid = (low + high) >>> 1,\n computed = array[mid];\n\n if (computed !== null && !isSymbol(computed) &&\n (retHighest ? (computed <= value) : (computed < value))) {\n low = mid + 1;\n } else {\n high = mid;\n }\n }\n return high;\n }\n return baseSortedIndexBy(array, value, identity, retHighest);\n }\n\n /**\n * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`\n * which invokes `iteratee` for `value` and each element of `array` to compute\n * their sort ranking. The iteratee is invoked with one argument; (value).\n *\n * @private\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} iteratee The iteratee invoked per element.\n * @param {boolean} [retHighest] Specify returning the highest qualified index.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n */\n function baseSortedIndexBy(array, value, iteratee, retHighest) {\n value = iteratee(value);\n\n var low = 0,\n high = array == null ? 0 : array.length,\n valIsNaN = value !== value,\n valIsNull = value === null,\n valIsSymbol = isSymbol(value),\n valIsUndefined = value === undefined;\n\n while (low < high) {\n var mid = nativeFloor((low + high) / 2),\n computed = iteratee(array[mid]),\n othIsDefined = computed !== undefined,\n othIsNull = computed === null,\n othIsReflexive = computed === computed,\n othIsSymbol = isSymbol(computed);\n\n if (valIsNaN) {\n var setLow = retHighest || othIsReflexive;\n } else if (valIsUndefined) {\n setLow = othIsReflexive && (retHighest || othIsDefined);\n } else if (valIsNull) {\n setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);\n } else if (valIsSymbol) {\n setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);\n } else if (othIsNull || othIsSymbol) {\n setLow = false;\n } else {\n setLow = retHighest ? (computed <= value) : (computed < value);\n }\n if (setLow) {\n low = mid + 1;\n } else {\n high = mid;\n }\n }\n return nativeMin(high, MAX_ARRAY_INDEX);\n }\n\n /**\n * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\n function baseSortedUniq(array, iteratee) {\n var index = -1,\n length = array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n if (!index || !eq(computed, seen)) {\n var seen = computed;\n result[resIndex++] = value === 0 ? 0 : value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.toNumber` which doesn't ensure correct\n * conversions of binary, hexadecimal, or octal string values.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n */\n function baseToNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n return +value;\n }\n\n /**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\n function baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n }\n\n /**\n * The base implementation of `_.uniqBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\n function baseUniq(array, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n length = array.length,\n isCommon = true,\n result = [],\n seen = result;\n\n if (comparator) {\n isCommon = false;\n includes = arrayIncludesWith;\n }\n else if (length >= LARGE_ARRAY_SIZE) {\n var set = iteratee ? null : createSet(array);\n if (set) {\n return setToArray(set);\n }\n isCommon = false;\n includes = cacheHas;\n seen = new SetCache;\n }\n else {\n seen = iteratee ? [] : result;\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var seenIndex = seen.length;\n while (seenIndex--) {\n if (seen[seenIndex] === computed) {\n continue outer;\n }\n }\n if (iteratee) {\n seen.push(computed);\n }\n result.push(value);\n }\n else if (!includes(seen, computed, comparator)) {\n if (seen !== result) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.unset`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The property path to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n */\n function baseUnset(object, path) {\n path = castPath(path, object);\n object = parent(object, path);\n return object == null || delete object[toKey(last(path))];\n }\n\n /**\n * The base implementation of `_.update`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to update.\n * @param {Function} updater The function to produce the updated value.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\n function baseUpdate(object, path, updater, customizer) {\n return baseSet(object, path, updater(baseGet(object, path)), customizer);\n }\n\n /**\n * The base implementation of methods like `_.dropWhile` and `_.takeWhile`\n * without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to query.\n * @param {Function} predicate The function invoked per iteration.\n * @param {boolean} [isDrop] Specify dropping elements instead of taking them.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the slice of `array`.\n */\n function baseWhile(array, predicate, isDrop, fromRight) {\n var length = array.length,\n index = fromRight ? length : -1;\n\n while ((fromRight ? index-- : ++index < length) &&\n predicate(array[index], index, array)) {}\n\n return isDrop\n ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length))\n : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index));\n }\n\n /**\n * The base implementation of `wrapperValue` which returns the result of\n * performing a sequence of actions on the unwrapped `value`, where each\n * successive action is supplied the return value of the previous.\n *\n * @private\n * @param {*} value The unwrapped value.\n * @param {Array} actions Actions to perform to resolve the unwrapped value.\n * @returns {*} Returns the resolved value.\n */\n function baseWrapperValue(value, actions) {\n var result = value;\n if (result instanceof LazyWrapper) {\n result = result.value();\n }\n return arrayReduce(actions, function(result, action) {\n return action.func.apply(action.thisArg, arrayPush([result], action.args));\n }, result);\n }\n\n /**\n * The base implementation of methods like `_.xor`, without support for\n * iteratee shorthands, that accepts an array of arrays to inspect.\n *\n * @private\n * @param {Array} arrays The arrays to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of values.\n */\n function baseXor(arrays, iteratee, comparator) {\n var length = arrays.length;\n if (length < 2) {\n return length ? baseUniq(arrays[0]) : [];\n }\n var index = -1,\n result = Array(length);\n\n while (++index < length) {\n var array = arrays[index],\n othIndex = -1;\n\n while (++othIndex < length) {\n if (othIndex != index) {\n result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator);\n }\n }\n }\n return baseUniq(baseFlatten(result, 1), iteratee, comparator);\n }\n\n /**\n * This base implementation of `_.zipObject` which assigns values using `assignFunc`.\n *\n * @private\n * @param {Array} props The property identifiers.\n * @param {Array} values The property values.\n * @param {Function} assignFunc The function to assign values.\n * @returns {Object} Returns the new object.\n */\n function baseZipObject(props, values, assignFunc) {\n var index = -1,\n length = props.length,\n valsLength = values.length,\n result = {};\n\n while (++index < length) {\n var value = index < valsLength ? values[index] : undefined;\n assignFunc(result, props[index], value);\n }\n return result;\n }\n\n /**\n * Casts `value` to an empty array if it's not an array like object.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Array|Object} Returns the cast array-like object.\n */\n function castArrayLikeObject(value) {\n return isArrayLikeObject(value) ? value : [];\n }\n\n /**\n * Casts `value` to `identity` if it's not a function.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Function} Returns cast function.\n */\n function castFunction(value) {\n return typeof value == 'function' ? value : identity;\n }\n\n /**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\n function castPath(value, object) {\n if (isArray(value)) {\n return value;\n }\n return isKey(value, object) ? [value] : stringToPath(toString(value));\n }\n\n /**\n * A `baseRest` alias which can be replaced with `identity` by module\n * replacement plugins.\n *\n * @private\n * @type {Function}\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\n var castRest = baseRest;\n\n /**\n * Casts `array` to a slice if it's needed.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {number} start The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the cast slice.\n */\n function castSlice(array, start, end) {\n var length = array.length;\n end = end === undefined ? length : end;\n return (!start && end >= length) ? array : baseSlice(array, start, end);\n }\n\n /**\n * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout).\n *\n * @private\n * @param {number|Object} id The timer id or timeout object of the timer to clear.\n */\n var clearTimeout = ctxClearTimeout || function(id) {\n return root.clearTimeout(id);\n };\n\n /**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\n function cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n }\n\n /**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\n function cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n }\n\n /**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\n function cloneDataView(dataView, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n }\n\n /**\n * Creates a clone of `map`.\n *\n * @private\n * @param {Object} map The map to clone.\n * @param {Function} cloneFunc The function to clone values.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned map.\n */\n function cloneMap(map, isDeep, cloneFunc) {\n var array = isDeep ? cloneFunc(mapToArray(map), CLONE_DEEP_FLAG) : mapToArray(map);\n return arrayReduce(array, addMapEntry, new map.constructor);\n }\n\n /**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\n function cloneRegExp(regexp) {\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n result.lastIndex = regexp.lastIndex;\n return result;\n }\n\n /**\n * Creates a clone of `set`.\n *\n * @private\n * @param {Object} set The set to clone.\n * @param {Function} cloneFunc The function to clone values.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned set.\n */\n function cloneSet(set, isDeep, cloneFunc) {\n var array = isDeep ? cloneFunc(setToArray(set), CLONE_DEEP_FLAG) : setToArray(set);\n return arrayReduce(array, addSetEntry, new set.constructor);\n }\n\n /**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\n function cloneSymbol(symbol) {\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n }\n\n /**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\n function cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n }\n\n /**\n * Compares values to sort them in ascending order.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {number} Returns the sort order indicator for `value`.\n */\n function compareAscending(value, other) {\n if (value !== other) {\n var valIsDefined = value !== undefined,\n valIsNull = value === null,\n valIsReflexive = value === value,\n valIsSymbol = isSymbol(value);\n\n var othIsDefined = other !== undefined,\n othIsNull = other === null,\n othIsReflexive = other === other,\n othIsSymbol = isSymbol(other);\n\n if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||\n (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||\n (valIsNull && othIsDefined && othIsReflexive) ||\n (!valIsDefined && othIsReflexive) ||\n !valIsReflexive) {\n return 1;\n }\n if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||\n (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||\n (othIsNull && valIsDefined && valIsReflexive) ||\n (!othIsDefined && valIsReflexive) ||\n !othIsReflexive) {\n return -1;\n }\n }\n return 0;\n }\n\n /**\n * Used by `_.orderBy` to compare multiple properties of a value to another\n * and stable sort them.\n *\n * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,\n * specify an order of \"desc\" for descending or \"asc\" for ascending sort order\n * of corresponding values.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {boolean[]|string[]} orders The order to sort by for each property.\n * @returns {number} Returns the sort order indicator for `object`.\n */\n function compareMultiple(object, other, orders) {\n var index = -1,\n objCriteria = object.criteria,\n othCriteria = other.criteria,\n length = objCriteria.length,\n ordersLength = orders.length;\n\n while (++index < length) {\n var result = compareAscending(objCriteria[index], othCriteria[index]);\n if (result) {\n if (index >= ordersLength) {\n return result;\n }\n var order = orders[index];\n return result * (order == 'desc' ? -1 : 1);\n }\n }\n // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications\n // that causes it, under certain circumstances, to provide the same value for\n // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247\n // for more details.\n //\n // This also ensures a stable sort in V8 and other engines.\n // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.\n return object.index - other.index;\n }\n\n /**\n * Creates an array that is the composition of partially applied arguments,\n * placeholders, and provided arguments into a single array of arguments.\n *\n * @private\n * @param {Array} args The provided arguments.\n * @param {Array} partials The arguments to prepend to those provided.\n * @param {Array} holders The `partials` placeholder indexes.\n * @params {boolean} [isCurried] Specify composing for a curried function.\n * @returns {Array} Returns the new array of composed arguments.\n */\n function composeArgs(args, partials, holders, isCurried) {\n var argsIndex = -1,\n argsLength = args.length,\n holdersLength = holders.length,\n leftIndex = -1,\n leftLength = partials.length,\n rangeLength = nativeMax(argsLength - holdersLength, 0),\n result = Array(leftLength + rangeLength),\n isUncurried = !isCurried;\n\n while (++leftIndex < leftLength) {\n result[leftIndex] = partials[leftIndex];\n }\n while (++argsIndex < holdersLength) {\n if (isUncurried || argsIndex < argsLength) {\n result[holders[argsIndex]] = args[argsIndex];\n }\n }\n while (rangeLength--) {\n result[leftIndex++] = args[argsIndex++];\n }\n return result;\n }\n\n /**\n * This function is like `composeArgs` except that the arguments composition\n * is tailored for `_.partialRight`.\n *\n * @private\n * @param {Array} args The provided arguments.\n * @param {Array} partials The arguments to append to those provided.\n * @param {Array} holders The `partials` placeholder indexes.\n * @params {boolean} [isCurried] Specify composing for a curried function.\n * @returns {Array} Returns the new array of composed arguments.\n */\n function composeArgsRight(args, partials, holders, isCurried) {\n var argsIndex = -1,\n argsLength = args.length,\n holdersIndex = -1,\n holdersLength = holders.length,\n rightIndex = -1,\n rightLength = partials.length,\n rangeLength = nativeMax(argsLength - holdersLength, 0),\n result = Array(rangeLength + rightLength),\n isUncurried = !isCurried;\n\n while (++argsIndex < rangeLength) {\n result[argsIndex] = args[argsIndex];\n }\n var offset = argsIndex;\n while (++rightIndex < rightLength) {\n result[offset + rightIndex] = partials[rightIndex];\n }\n while (++holdersIndex < holdersLength) {\n if (isUncurried || argsIndex < argsLength) {\n result[offset + holders[holdersIndex]] = args[argsIndex++];\n }\n }\n return result;\n }\n\n /**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\n function copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n }\n\n /**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\n function copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n }\n\n /**\n * Copies own symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\n function copySymbols(source, object) {\n return copyObject(source, getSymbols(source), object);\n }\n\n /**\n * Copies own and inherited symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\n function copySymbolsIn(source, object) {\n return copyObject(source, getSymbolsIn(source), object);\n }\n\n /**\n * Creates a function like `_.groupBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} [initializer] The accumulator object initializer.\n * @returns {Function} Returns the new aggregator function.\n */\n function createAggregator(setter, initializer) {\n return function(collection, iteratee) {\n var func = isArray(collection) ? arrayAggregator : baseAggregator,\n accumulator = initializer ? initializer() : {};\n\n return func(collection, setter, getIteratee(iteratee, 2), accumulator);\n };\n }\n\n /**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\n function createAssigner(assigner) {\n return baseRest(function(object, sources) {\n var index = -1,\n length = sources.length,\n customizer = length > 1 ? sources[length - 1] : undefined,\n guard = length > 2 ? sources[2] : undefined;\n\n customizer = (assigner.length > 3 && typeof customizer == 'function')\n ? (length--, customizer)\n : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? undefined : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index < length) {\n var source = sources[index];\n if (source) {\n assigner(object, source, index, customizer);\n }\n }\n return object;\n });\n }\n\n /**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\n function createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n }\n\n /**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\n function createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with the optional `this`\n * binding of `thisArg`.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createBind(func, bitmask, thisArg) {\n var isBind = bitmask & WRAP_BIND_FLAG,\n Ctor = createCtor(func);\n\n function wrapper() {\n var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n return fn.apply(isBind ? thisArg : this, arguments);\n }\n return wrapper;\n }\n\n /**\n * Creates a function like `_.lowerFirst`.\n *\n * @private\n * @param {string} methodName The name of the `String` case method to use.\n * @returns {Function} Returns the new case function.\n */\n function createCaseFirst(methodName) {\n return function(string) {\n string = toString(string);\n\n var strSymbols = hasUnicode(string)\n ? stringToArray(string)\n : undefined;\n\n var chr = strSymbols\n ? strSymbols[0]\n : string.charAt(0);\n\n var trailing = strSymbols\n ? castSlice(strSymbols, 1).join('')\n : string.slice(1);\n\n return chr[methodName]() + trailing;\n };\n }\n\n /**\n * Creates a function like `_.camelCase`.\n *\n * @private\n * @param {Function} callback The function to combine each word.\n * @returns {Function} Returns the new compounder function.\n */\n function createCompounder(callback) {\n return function(string) {\n return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');\n };\n }\n\n /**\n * Creates a function that produces an instance of `Ctor` regardless of\n * whether it was invoked as part of a `new` expression or by `call` or `apply`.\n *\n * @private\n * @param {Function} Ctor The constructor to wrap.\n * @returns {Function} Returns the new wrapped function.\n */\n function createCtor(Ctor) {\n return function() {\n // Use a `switch` statement to work with class constructors. See\n // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist\n // for more details.\n var args = arguments;\n switch (args.length) {\n case 0: return new Ctor;\n case 1: return new Ctor(args[0]);\n case 2: return new Ctor(args[0], args[1]);\n case 3: return new Ctor(args[0], args[1], args[2]);\n case 4: return new Ctor(args[0], args[1], args[2], args[3]);\n case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);\n case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);\n case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);\n }\n var thisBinding = baseCreate(Ctor.prototype),\n result = Ctor.apply(thisBinding, args);\n\n // Mimic the constructor's `return` behavior.\n // See https://es5.github.io/#x13.2.2 for more details.\n return isObject(result) ? result : thisBinding;\n };\n }\n\n /**\n * Creates a function that wraps `func` to enable currying.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {number} arity The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createCurry(func, bitmask, arity) {\n var Ctor = createCtor(func);\n\n function wrapper() {\n var length = arguments.length,\n args = Array(length),\n index = length,\n placeholder = getHolder(wrapper);\n\n while (index--) {\n args[index] = arguments[index];\n }\n var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)\n ? []\n : replaceHolders(args, placeholder);\n\n length -= holders.length;\n if (length < arity) {\n return createRecurry(\n func, bitmask, createHybrid, wrapper.placeholder, undefined,\n args, holders, undefined, undefined, arity - length);\n }\n var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n return apply(fn, this, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a `_.find` or `_.findLast` function.\n *\n * @private\n * @param {Function} findIndexFunc The function to find the collection index.\n * @returns {Function} Returns the new find function.\n */\n function createFind(findIndexFunc) {\n return function(collection, predicate, fromIndex) {\n var iterable = Object(collection);\n if (!isArrayLike(collection)) {\n var iteratee = getIteratee(predicate, 3);\n collection = keys(collection);\n predicate = function(key) { return iteratee(iterable[key], key, iterable); };\n }\n var index = findIndexFunc(collection, predicate, fromIndex);\n return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;\n };\n }\n\n /**\n * Creates a `_.flow` or `_.flowRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new flow function.\n */\n function createFlow(fromRight) {\n return flatRest(function(funcs) {\n var length = funcs.length,\n index = length,\n prereq = LodashWrapper.prototype.thru;\n\n if (fromRight) {\n funcs.reverse();\n }\n while (index--) {\n var func = funcs[index];\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (prereq && !wrapper && getFuncName(func) == 'wrapper') {\n var wrapper = new LodashWrapper([], true);\n }\n }\n index = wrapper ? index : length;\n while (++index < length) {\n func = funcs[index];\n\n var funcName = getFuncName(func),\n data = funcName == 'wrapper' ? getData(func) : undefined;\n\n if (data && isLaziable(data[0]) &&\n data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) &&\n !data[4].length && data[9] == 1\n ) {\n wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);\n } else {\n wrapper = (func.length == 1 && isLaziable(func))\n ? wrapper[funcName]()\n : wrapper.thru(func);\n }\n }\n return function() {\n var args = arguments,\n value = args[0];\n\n if (wrapper && args.length == 1 && isArray(value)) {\n return wrapper.plant(value).value();\n }\n var index = 0,\n result = length ? funcs[index].apply(this, args) : value;\n\n while (++index < length) {\n result = funcs[index].call(this, result);\n }\n return result;\n };\n });\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with optional `this`\n * binding of `thisArg`, partial application, and currying.\n *\n * @private\n * @param {Function|string} func The function or method name to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to prepend to those provided to\n * the new function.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [partialsRight] The arguments to append to those provided\n * to the new function.\n * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {\n var isAry = bitmask & WRAP_ARY_FLAG,\n isBind = bitmask & WRAP_BIND_FLAG,\n isBindKey = bitmask & WRAP_BIND_KEY_FLAG,\n isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG),\n isFlip = bitmask & WRAP_FLIP_FLAG,\n Ctor = isBindKey ? undefined : createCtor(func);\n\n function wrapper() {\n var length = arguments.length,\n args = Array(length),\n index = length;\n\n while (index--) {\n args[index] = arguments[index];\n }\n if (isCurried) {\n var placeholder = getHolder(wrapper),\n holdersCount = countHolders(args, placeholder);\n }\n if (partials) {\n args = composeArgs(args, partials, holders, isCurried);\n }\n if (partialsRight) {\n args = composeArgsRight(args, partialsRight, holdersRight, isCurried);\n }\n length -= holdersCount;\n if (isCurried && length < arity) {\n var newHolders = replaceHolders(args, placeholder);\n return createRecurry(\n func, bitmask, createHybrid, wrapper.placeholder, thisArg,\n args, newHolders, argPos, ary, arity - length\n );\n }\n var thisBinding = isBind ? thisArg : this,\n fn = isBindKey ? thisBinding[func] : func;\n\n length = args.length;\n if (argPos) {\n args = reorder(args, argPos);\n } else if (isFlip && length > 1) {\n args.reverse();\n }\n if (isAry && ary < length) {\n args.length = ary;\n }\n if (this && this !== root && this instanceof wrapper) {\n fn = Ctor || createCtor(fn);\n }\n return fn.apply(thisBinding, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a function like `_.invertBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} toIteratee The function to resolve iteratees.\n * @returns {Function} Returns the new inverter function.\n */\n function createInverter(setter, toIteratee) {\n return function(object, iteratee) {\n return baseInverter(object, setter, toIteratee(iteratee), {});\n };\n }\n\n /**\n * Creates a function that performs a mathematical operation on two values.\n *\n * @private\n * @param {Function} operator The function to perform the operation.\n * @param {number} [defaultValue] The value used for `undefined` arguments.\n * @returns {Function} Returns the new mathematical operation function.\n */\n function createMathOperation(operator, defaultValue) {\n return function(value, other) {\n var result;\n if (value === undefined && other === undefined) {\n return defaultValue;\n }\n if (value !== undefined) {\n result = value;\n }\n if (other !== undefined) {\n if (result === undefined) {\n return other;\n }\n if (typeof value == 'string' || typeof other == 'string') {\n value = baseToString(value);\n other = baseToString(other);\n } else {\n value = baseToNumber(value);\n other = baseToNumber(other);\n }\n result = operator(value, other);\n }\n return result;\n };\n }\n\n /**\n * Creates a function like `_.over`.\n *\n * @private\n * @param {Function} arrayFunc The function to iterate over iteratees.\n * @returns {Function} Returns the new over function.\n */\n function createOver(arrayFunc) {\n return flatRest(function(iteratees) {\n iteratees = arrayMap(iteratees, baseUnary(getIteratee()));\n return baseRest(function(args) {\n var thisArg = this;\n return arrayFunc(iteratees, function(iteratee) {\n return apply(iteratee, thisArg, args);\n });\n });\n });\n }\n\n /**\n * Creates the padding for `string` based on `length`. The `chars` string\n * is truncated if the number of characters exceeds `length`.\n *\n * @private\n * @param {number} length The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padding for `string`.\n */\n function createPadding(length, chars) {\n chars = chars === undefined ? ' ' : baseToString(chars);\n\n var charsLength = chars.length;\n if (charsLength < 2) {\n return charsLength ? baseRepeat(chars, length) : chars;\n }\n var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));\n return hasUnicode(chars)\n ? castSlice(stringToArray(result), 0, length).join('')\n : result.slice(0, length);\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with the `this` binding\n * of `thisArg` and `partials` prepended to the arguments it receives.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} partials The arguments to prepend to those provided to\n * the new function.\n * @returns {Function} Returns the new wrapped function.\n */\n function createPartial(func, bitmask, thisArg, partials) {\n var isBind = bitmask & WRAP_BIND_FLAG,\n Ctor = createCtor(func);\n\n function wrapper() {\n var argsIndex = -1,\n argsLength = arguments.length,\n leftIndex = -1,\n leftLength = partials.length,\n args = Array(leftLength + argsLength),\n fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n\n while (++leftIndex < leftLength) {\n args[leftIndex] = partials[leftIndex];\n }\n while (argsLength--) {\n args[leftIndex++] = arguments[++argsIndex];\n }\n return apply(fn, isBind ? thisArg : this, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a `_.range` or `_.rangeRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new range function.\n */\n function createRange(fromRight) {\n return function(start, end, step) {\n if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {\n end = step = undefined;\n }\n // Ensure the sign of `-0` is preserved.\n start = toFinite(start);\n if (end === undefined) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);\n return baseRange(start, end, step, fromRight);\n };\n }\n\n /**\n * Creates a function that performs a relational operation on two values.\n *\n * @private\n * @param {Function} operator The function to perform the operation.\n * @returns {Function} Returns the new relational operation function.\n */\n function createRelationalOperation(operator) {\n return function(value, other) {\n if (!(typeof value == 'string' && typeof other == 'string')) {\n value = toNumber(value);\n other = toNumber(other);\n }\n return operator(value, other);\n };\n }\n\n /**\n * Creates a function that wraps `func` to continue currying.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {Function} wrapFunc The function to create the `func` wrapper.\n * @param {*} placeholder The placeholder value.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to prepend to those provided to\n * the new function.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {\n var isCurry = bitmask & WRAP_CURRY_FLAG,\n newHolders = isCurry ? holders : undefined,\n newHoldersRight = isCurry ? undefined : holders,\n newPartials = isCurry ? partials : undefined,\n newPartialsRight = isCurry ? undefined : partials;\n\n bitmask |= (isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG);\n bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);\n\n if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {\n bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG);\n }\n var newData = [\n func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,\n newHoldersRight, argPos, ary, arity\n ];\n\n var result = wrapFunc.apply(undefined, newData);\n if (isLaziable(func)) {\n setData(result, newData);\n }\n result.placeholder = placeholder;\n return setWrapToString(result, func, bitmask);\n }\n\n /**\n * Creates a function like `_.round`.\n *\n * @private\n * @param {string} methodName The name of the `Math` method to use when rounding.\n * @returns {Function} Returns the new round function.\n */\n function createRound(methodName) {\n var func = Math[methodName];\n return function(number, precision) {\n number = toNumber(number);\n precision = precision == null ? 0 : nativeMin(toInteger(precision), 292);\n if (precision) {\n // Shift with exponential notation to avoid floating-point issues.\n // See [MDN](https://mdn.io/round#Examples) for more details.\n var pair = (toString(number) + 'e').split('e'),\n value = func(pair[0] + 'e' + (+pair[1] + precision));\n\n pair = (toString(value) + 'e').split('e');\n return +(pair[0] + 'e' + (+pair[1] - precision));\n }\n return func(number);\n };\n }\n\n /**\n * Creates a set object of `values`.\n *\n * @private\n * @param {Array} values The values to add to the set.\n * @returns {Object} Returns the new set.\n */\n var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {\n return new Set(values);\n };\n\n /**\n * Creates a `_.toPairs` or `_.toPairsIn` function.\n *\n * @private\n * @param {Function} keysFunc The function to get the keys of a given object.\n * @returns {Function} Returns the new pairs function.\n */\n function createToPairs(keysFunc) {\n return function(object) {\n var tag = getTag(object);\n if (tag == mapTag) {\n return mapToArray(object);\n }\n if (tag == setTag) {\n return setToPairs(object);\n }\n return baseToPairs(object, keysFunc(object));\n };\n }\n\n /**\n * Creates a function that either curries or invokes `func` with optional\n * `this` binding and partially applied arguments.\n *\n * @private\n * @param {Function|string} func The function or method name to wrap.\n * @param {number} bitmask The bitmask flags.\n * 1 - `_.bind`\n * 2 - `_.bindKey`\n * 4 - `_.curry` or `_.curryRight` of a bound function\n * 8 - `_.curry`\n * 16 - `_.curryRight`\n * 32 - `_.partial`\n * 64 - `_.partialRight`\n * 128 - `_.rearg`\n * 256 - `_.ary`\n * 512 - `_.flip`\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to be partially applied.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {\n var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;\n if (!isBindKey && typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var length = partials ? partials.length : 0;\n if (!length) {\n bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);\n partials = holders = undefined;\n }\n ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);\n arity = arity === undefined ? arity : toInteger(arity);\n length -= holders ? holders.length : 0;\n\n if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {\n var partialsRight = partials,\n holdersRight = holders;\n\n partials = holders = undefined;\n }\n var data = isBindKey ? undefined : getData(func);\n\n var newData = [\n func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,\n argPos, ary, arity\n ];\n\n if (data) {\n mergeData(newData, data);\n }\n func = newData[0];\n bitmask = newData[1];\n thisArg = newData[2];\n partials = newData[3];\n holders = newData[4];\n arity = newData[9] = newData[9] === undefined\n ? (isBindKey ? 0 : func.length)\n : nativeMax(newData[9] - length, 0);\n\n if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {\n bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);\n }\n if (!bitmask || bitmask == WRAP_BIND_FLAG) {\n var result = createBind(func, bitmask, thisArg);\n } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) {\n result = createCurry(func, bitmask, arity);\n } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {\n result = createPartial(func, bitmask, thisArg, partials);\n } else {\n result = createHybrid.apply(undefined, newData);\n }\n var setter = data ? baseSetData : setData;\n return setWrapToString(setter(result, newData), func, bitmask);\n }\n\n /**\n * Used by `_.defaults` to customize its `_.assignIn` use to assign properties\n * of source objects to the destination object for all destination properties\n * that resolve to `undefined`.\n *\n * @private\n * @param {*} objValue The destination value.\n * @param {*} srcValue The source value.\n * @param {string} key The key of the property to assign.\n * @param {Object} object The parent object of `objValue`.\n * @returns {*} Returns the value to assign.\n */\n function customDefaultsAssignIn(objValue, srcValue, key, object) {\n if (objValue === undefined ||\n (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n return srcValue;\n }\n return objValue;\n }\n\n /**\n * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source\n * objects into destination objects that are passed thru.\n *\n * @private\n * @param {*} objValue The destination value.\n * @param {*} srcValue The source value.\n * @param {string} key The key of the property to merge.\n * @param {Object} object The parent object of `objValue`.\n * @param {Object} source The parent object of `srcValue`.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n * @returns {*} Returns the value to assign.\n */\n function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {\n if (isObject(objValue) && isObject(srcValue)) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, objValue);\n baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack);\n stack['delete'](srcValue);\n }\n return objValue;\n }\n\n /**\n * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain\n * objects.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {string} key The key of the property to inspect.\n * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.\n */\n function customOmitClone(value) {\n return isPlainObject(value) ? undefined : value;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\n function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(array);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, objValue, key, other, object, stack)\n : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n : compared\n )) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n }\n\n /**\n * A specialized version of `baseRest` which flattens the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\n function flatRest(func) {\n return setToString(overRest(func, undefined, flatten), func + '');\n }\n\n /**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n }\n\n /**\n * Creates an array of own and inherited enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function getAllKeysIn(object) {\n return baseGetAllKeys(object, keysIn, getSymbolsIn);\n }\n\n /**\n * Gets metadata for `func`.\n *\n * @private\n * @param {Function} func The function to query.\n * @returns {*} Returns the metadata for `func`.\n */\n var getData = !metaMap ? noop : function(func) {\n return metaMap.get(func);\n };\n\n /**\n * Gets the name of `func`.\n *\n * @private\n * @param {Function} func The function to query.\n * @returns {string} Returns the function name.\n */\n function getFuncName(func) {\n var result = (func.name + ''),\n array = realNames[result],\n length = hasOwnProperty.call(realNames, result) ? array.length : 0;\n\n while (length--) {\n var data = array[length],\n otherFunc = data.func;\n if (otherFunc == null || otherFunc == func) {\n return data.name;\n }\n }\n return result;\n }\n\n /**\n * Gets the argument placeholder value for `func`.\n *\n * @private\n * @param {Function} func The function to inspect.\n * @returns {*} Returns the placeholder value.\n */\n function getHolder(func) {\n var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func;\n return object.placeholder;\n }\n\n /**\n * Gets the appropriate \"iteratee\" function. If `_.iteratee` is customized,\n * this function returns the custom method, otherwise it returns `baseIteratee`.\n * If arguments are provided, the chosen function is invoked with them and\n * its result is returned.\n *\n * @private\n * @param {*} [value] The value to convert to an iteratee.\n * @param {number} [arity] The arity of the created iteratee.\n * @returns {Function} Returns the chosen function or its result.\n */\n function getIteratee() {\n var result = lodash.iteratee || iteratee;\n result = result === iteratee ? baseIteratee : result;\n return arguments.length ? result(arguments[0], arguments[1]) : result;\n }\n\n /**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\n function getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n }\n\n /**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\n function getMatchData(object) {\n var result = keys(object),\n length = result.length;\n\n while (length--) {\n var key = result[length],\n value = object[key];\n\n result[length] = [key, value, isStrictComparable(value)];\n }\n return result;\n }\n\n /**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\n function getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n }\n\n /**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\n function getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n }\n\n /**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n var getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n };\n\n /**\n * Creates an array of the own and inherited enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {\n var result = [];\n while (object) {\n arrayPush(result, getSymbols(object));\n object = getPrototype(object);\n }\n return result;\n };\n\n /**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n var getTag = baseGetTag;\n\n // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\n if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n }\n\n /**\n * Gets the view, applying any `transforms` to the `start` and `end` positions.\n *\n * @private\n * @param {number} start The start of the view.\n * @param {number} end The end of the view.\n * @param {Array} transforms The transformations to apply to the view.\n * @returns {Object} Returns an object containing the `start` and `end`\n * positions of the view.\n */\n function getView(start, end, transforms) {\n var index = -1,\n length = transforms.length;\n\n while (++index < length) {\n var data = transforms[index],\n size = data.size;\n\n switch (data.type) {\n case 'drop': start += size; break;\n case 'dropRight': end -= size; break;\n case 'take': end = nativeMin(end, start + size); break;\n case 'takeRight': start = nativeMax(start, end - size); break;\n }\n }\n return { 'start': start, 'end': end };\n }\n\n /**\n * Extracts wrapper details from the `source` body comment.\n *\n * @private\n * @param {string} source The source to inspect.\n * @returns {Array} Returns the wrapper details.\n */\n function getWrapDetails(source) {\n var match = source.match(reWrapDetails);\n return match ? match[1].split(reSplitDetails) : [];\n }\n\n /**\n * Checks if `path` exists on `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @param {Function} hasFunc The function to check properties.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n */\n function hasPath(object, path, hasFunc) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n result = false;\n\n while (++index < length) {\n var key = toKey(path[index]);\n if (!(result = object != null && hasFunc(object, key))) {\n break;\n }\n object = object[key];\n }\n if (result || ++index != length) {\n return result;\n }\n length = object == null ? 0 : object.length;\n return !!length && isLength(length) && isIndex(key, length) &&\n (isArray(object) || isArguments(object));\n }\n\n /**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\n function initCloneArray(array) {\n var length = array.length,\n result = array.constructor(length);\n\n // Add properties assigned by `RegExp#exec`.\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n return result;\n }\n\n /**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\n function initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n }\n\n /**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {Function} cloneFunc The function to clone values.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\n function initCloneByTag(object, tag, cloneFunc, isDeep) {\n var Ctor = object.constructor;\n switch (tag) {\n case arrayBufferTag:\n return cloneArrayBuffer(object);\n\n case boolTag:\n case dateTag:\n return new Ctor(+object);\n\n case dataViewTag:\n return cloneDataView(object, isDeep);\n\n case float32Tag: case float64Tag:\n case int8Tag: case int16Tag: case int32Tag:\n case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:\n return cloneTypedArray(object, isDeep);\n\n case mapTag:\n return cloneMap(object, isDeep, cloneFunc);\n\n case numberTag:\n case stringTag:\n return new Ctor(object);\n\n case regexpTag:\n return cloneRegExp(object);\n\n case setTag:\n return cloneSet(object, isDeep, cloneFunc);\n\n case symbolTag:\n return cloneSymbol(object);\n }\n }\n\n /**\n * Inserts wrapper `details` in a comment at the top of the `source` body.\n *\n * @private\n * @param {string} source The source to modify.\n * @returns {Array} details The details to insert.\n * @returns {string} Returns the modified source.\n */\n function insertWrapDetails(source, details) {\n var length = details.length;\n if (!length) {\n return source;\n }\n var lastIndex = length - 1;\n details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex];\n details = details.join(length > 2 ? ', ' : ' ');\n return source.replace(reWrapComment, '{\\n/* [wrapped with ' + details + '] */\\n');\n }\n\n /**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\n function isFlattenable(value) {\n return isArray(value) || isArguments(value) ||\n !!(spreadableSymbol && value && value[spreadableSymbol]);\n }\n\n /**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\n function isIndex(value, length) {\n length = length == null ? MAX_SAFE_INTEGER : length;\n return !!length &&\n (typeof value == 'number' || reIsUint.test(value)) &&\n (value > -1 && value % 1 == 0 && value < length);\n }\n\n /**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\n function isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n }\n\n /**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\n function isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n var type = typeof value;\n if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n value == null || isSymbol(value)) {\n return true;\n }\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n (object != null && value in Object(object));\n }\n\n /**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\n function isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n }\n\n /**\n * Checks if `func` has a lazy counterpart.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` has a lazy counterpart,\n * else `false`.\n */\n function isLaziable(func) {\n var funcName = getFuncName(func),\n other = lodash[funcName];\n\n if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {\n return false;\n }\n if (func === other) {\n return true;\n }\n var data = getData(other);\n return !!data && func === data[0];\n }\n\n /**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\n function isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n }\n\n /**\n * Checks if `func` is capable of being masked.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `func` is maskable, else `false`.\n */\n var isMaskable = coreJsData ? isFunction : stubFalse;\n\n /**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\n function isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n }\n\n /**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n * equality comparisons, else `false`.\n */\n function isStrictComparable(value) {\n return value === value && !isObject(value);\n }\n\n /**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\n function matchesStrictComparable(key, srcValue) {\n return function(object) {\n if (object == null) {\n return false;\n }\n return object[key] === srcValue &&\n (srcValue !== undefined || (key in Object(object)));\n };\n }\n\n /**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\n function memoizeCapped(func) {\n var result = memoize(func, function(key) {\n if (cache.size === MAX_MEMOIZE_SIZE) {\n cache.clear();\n }\n return key;\n });\n\n var cache = result.cache;\n return result;\n }\n\n /**\n * Merges the function metadata of `source` into `data`.\n *\n * Merging metadata reduces the number of wrappers used to invoke a function.\n * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`\n * may be applied regardless of execution order. Methods like `_.ary` and\n * `_.rearg` modify function arguments, making the order in which they are\n * executed important, preventing the merging of metadata. However, we make\n * an exception for a safe combined case where curried functions have `_.ary`\n * and or `_.rearg` applied.\n *\n * @private\n * @param {Array} data The destination metadata.\n * @param {Array} source The source metadata.\n * @returns {Array} Returns `data`.\n */\n function mergeData(data, source) {\n var bitmask = data[1],\n srcBitmask = source[1],\n newBitmask = bitmask | srcBitmask,\n isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);\n\n var isCombo =\n ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) ||\n ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) ||\n ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG));\n\n // Exit early if metadata can't be merged.\n if (!(isCommon || isCombo)) {\n return data;\n }\n // Use source `thisArg` if available.\n if (srcBitmask & WRAP_BIND_FLAG) {\n data[2] = source[2];\n // Set when currying a bound function.\n newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;\n }\n // Compose partial arguments.\n var value = source[3];\n if (value) {\n var partials = data[3];\n data[3] = partials ? composeArgs(partials, value, source[4]) : value;\n data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];\n }\n // Compose partial right arguments.\n value = source[5];\n if (value) {\n partials = data[5];\n data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;\n data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];\n }\n // Use source `argPos` if available.\n value = source[7];\n if (value) {\n data[7] = value;\n }\n // Use source `ary` if it's smaller.\n if (srcBitmask & WRAP_ARY_FLAG) {\n data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);\n }\n // Use source `arity` if one is not provided.\n if (data[9] == null) {\n data[9] = source[9];\n }\n // Use source `func` and merge bitmasks.\n data[0] = source[0];\n data[1] = newBitmask;\n\n return data;\n }\n\n /**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\n function objectToString(value) {\n return nativeObjectToString.call(value);\n }\n\n /**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\n function overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n }\n\n /**\n * Gets the parent value at `path` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} path The path to get the parent value of.\n * @returns {*} Returns the parent value.\n */\n function parent(object, path) {\n return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));\n }\n\n /**\n * Reorder `array` according to the specified indexes where the element at\n * the first index is assigned as the first element, the element at\n * the second index is assigned as the second element, and so on.\n *\n * @private\n * @param {Array} array The array to reorder.\n * @param {Array} indexes The arranged array indexes.\n * @returns {Array} Returns `array`.\n */\n function reorder(array, indexes) {\n var arrLength = array.length,\n length = nativeMin(indexes.length, arrLength),\n oldArray = copyArray(array);\n\n while (length--) {\n var index = indexes[length];\n array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;\n }\n return array;\n }\n\n /**\n * Sets metadata for `func`.\n *\n * **Note:** If this function becomes hot, i.e. is invoked a lot in a short\n * period of time, it will trip its breaker and transition to an identity\n * function to avoid garbage collection pauses in V8. See\n * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)\n * for more details.\n *\n * @private\n * @param {Function} func The function to associate metadata with.\n * @param {*} data The metadata.\n * @returns {Function} Returns `func`.\n */\n var setData = shortOut(baseSetData);\n\n /**\n * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout).\n *\n * @private\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @returns {number|Object} Returns the timer id or timeout object.\n */\n var setTimeout = ctxSetTimeout || function(func, wait) {\n return root.setTimeout(func, wait);\n };\n\n /**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\n var setToString = shortOut(baseSetToString);\n\n /**\n * Sets the `toString` method of `wrapper` to mimic the source of `reference`\n * with wrapper details in a comment at the top of the source body.\n *\n * @private\n * @param {Function} wrapper The function to modify.\n * @param {Function} reference The reference function.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @returns {Function} Returns `wrapper`.\n */\n function setWrapToString(wrapper, reference, bitmask) {\n var source = (reference + '');\n return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));\n }\n\n /**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\n function shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n }\n\n /**\n * A specialized version of `_.shuffle` which mutates and sets the size of `array`.\n *\n * @private\n * @param {Array} array The array to shuffle.\n * @param {number} [size=array.length] The size of `array`.\n * @returns {Array} Returns `array`.\n */\n function shuffleSelf(array, size) {\n var index = -1,\n length = array.length,\n lastIndex = length - 1;\n\n size = size === undefined ? length : size;\n while (++index < size) {\n var rand = baseRandom(index, lastIndex),\n value = array[rand];\n\n array[rand] = array[index];\n array[index] = value;\n }\n array.length = size;\n return array;\n }\n\n /**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\n var stringToPath = memoizeCapped(function(string) {\n var result = [];\n if (reLeadingDot.test(string)) {\n result.push('');\n }\n string.replace(rePropName, function(match, number, quote, string) {\n result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n });\n\n /**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\n function toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n }\n\n /**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\n function toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n }\n\n /**\n * Updates wrapper `details` based on `bitmask` flags.\n *\n * @private\n * @returns {Array} details The details to modify.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @returns {Array} Returns `details`.\n */\n function updateWrapDetails(details, bitmask) {\n arrayEach(wrapFlags, function(pair) {\n var value = '_.' + pair[0];\n if ((bitmask & pair[1]) && !arrayIncludes(details, value)) {\n details.push(value);\n }\n });\n return details.sort();\n }\n\n /**\n * Creates a clone of `wrapper`.\n *\n * @private\n * @param {Object} wrapper The wrapper to clone.\n * @returns {Object} Returns the cloned wrapper.\n */\n function wrapperClone(wrapper) {\n if (wrapper instanceof LazyWrapper) {\n return wrapper.clone();\n }\n var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);\n result.__actions__ = copyArray(wrapper.__actions__);\n result.__index__ = wrapper.__index__;\n result.__values__ = wrapper.__values__;\n return result;\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an array of elements split into groups the length of `size`.\n * If `array` can't be split evenly, the final chunk will be the remaining\n * elements.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to process.\n * @param {number} [size=1] The length of each chunk\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the new array of chunks.\n * @example\n *\n * _.chunk(['a', 'b', 'c', 'd'], 2);\n * // => [['a', 'b'], ['c', 'd']]\n *\n * _.chunk(['a', 'b', 'c', 'd'], 3);\n * // => [['a', 'b', 'c'], ['d']]\n */\n function chunk(array, size, guard) {\n if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) {\n size = 1;\n } else {\n size = nativeMax(toInteger(size), 0);\n }\n var length = array == null ? 0 : array.length;\n if (!length || size < 1) {\n return [];\n }\n var index = 0,\n resIndex = 0,\n result = Array(nativeCeil(length / size));\n\n while (index < length) {\n result[resIndex++] = baseSlice(array, index, (index += size));\n }\n return result;\n }\n\n /**\n * Creates an array with all falsey values removed. The values `false`, `null`,\n * `0`, `\"\"`, `undefined`, and `NaN` are falsey.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to compact.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.compact([0, 1, false, 2, '', 3]);\n * // => [1, 2, 3]\n */\n function compact(array) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (value) {\n result[resIndex++] = value;\n }\n }\n return result;\n }\n\n /**\n * Creates a new array concatenating `array` with any additional arrays\n * and/or values.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to concatenate.\n * @param {...*} [values] The values to concatenate.\n * @returns {Array} Returns the new concatenated array.\n * @example\n *\n * var array = [1];\n * var other = _.concat(array, 2, [3], [[4]]);\n *\n * console.log(other);\n * // => [1, 2, 3, [4]]\n *\n * console.log(array);\n * // => [1]\n */\n function concat() {\n var length = arguments.length;\n if (!length) {\n return [];\n }\n var args = Array(length - 1),\n array = arguments[0],\n index = length;\n\n while (index--) {\n args[index - 1] = arguments[index];\n }\n return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));\n }\n\n /**\n * Creates an array of `array` values not included in the other given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * **Note:** Unlike `_.pullAll`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.without, _.xor\n * @example\n *\n * _.difference([2, 1], [2, 3]);\n * // => [1]\n */\n var difference = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))\n : [];\n });\n\n /**\n * This method is like `_.difference` except that it accepts `iteratee` which\n * is invoked for each element of `array` and `values` to generate the criterion\n * by which they're compared. The order and references of result values are\n * determined by the first array. The iteratee is invoked with one argument:\n * (value).\n *\n * **Note:** Unlike `_.pullAllBy`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');\n * // => [{ 'x': 2 }]\n */\n var differenceBy = baseRest(function(array, values) {\n var iteratee = last(values);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined;\n }\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee, 2))\n : [];\n });\n\n /**\n * This method is like `_.difference` except that it accepts `comparator`\n * which is invoked to compare elements of `array` to `values`. The order and\n * references of result values are determined by the first array. The comparator\n * is invoked with two arguments: (arrVal, othVal).\n *\n * **Note:** Unlike `_.pullAllWith`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n *\n * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);\n * // => [{ 'x': 2, 'y': 1 }]\n */\n var differenceWith = baseRest(function(array, values) {\n var comparator = last(values);\n if (isArrayLikeObject(comparator)) {\n comparator = undefined;\n }\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), undefined, comparator)\n : [];\n });\n\n /**\n * Creates a slice of `array` with `n` elements dropped from the beginning.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to drop.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.drop([1, 2, 3]);\n * // => [2, 3]\n *\n * _.drop([1, 2, 3], 2);\n * // => [3]\n *\n * _.drop([1, 2, 3], 5);\n * // => []\n *\n * _.drop([1, 2, 3], 0);\n * // => [1, 2, 3]\n */\n function drop(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n return baseSlice(array, n < 0 ? 0 : n, length);\n }\n\n /**\n * Creates a slice of `array` with `n` elements dropped from the end.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to drop.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.dropRight([1, 2, 3]);\n * // => [1, 2]\n *\n * _.dropRight([1, 2, 3], 2);\n * // => [1]\n *\n * _.dropRight([1, 2, 3], 5);\n * // => []\n *\n * _.dropRight([1, 2, 3], 0);\n * // => [1, 2, 3]\n */\n function dropRight(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n n = length - n;\n return baseSlice(array, 0, n < 0 ? 0 : n);\n }\n\n /**\n * Creates a slice of `array` excluding elements dropped from the end.\n * Elements are dropped until `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.dropRightWhile(users, function(o) { return !o.active; });\n * // => objects for ['barney']\n *\n * // The `_.matches` iteratee shorthand.\n * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });\n * // => objects for ['barney', 'fred']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.dropRightWhile(users, ['active', false]);\n * // => objects for ['barney']\n *\n * // The `_.property` iteratee shorthand.\n * _.dropRightWhile(users, 'active');\n * // => objects for ['barney', 'fred', 'pebbles']\n */\n function dropRightWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), true, true)\n : [];\n }\n\n /**\n * Creates a slice of `array` excluding elements dropped from the beginning.\n * Elements are dropped until `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.dropWhile(users, function(o) { return !o.active; });\n * // => objects for ['pebbles']\n *\n * // The `_.matches` iteratee shorthand.\n * _.dropWhile(users, { 'user': 'barney', 'active': false });\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.dropWhile(users, ['active', false]);\n * // => objects for ['pebbles']\n *\n * // The `_.property` iteratee shorthand.\n * _.dropWhile(users, 'active');\n * // => objects for ['barney', 'fred', 'pebbles']\n */\n function dropWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), true)\n : [];\n }\n\n /**\n * Fills elements of `array` with `value` from `start` up to, but not\n * including, `end`.\n *\n * **Note:** This method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 3.2.0\n * @category Array\n * @param {Array} array The array to fill.\n * @param {*} value The value to fill `array` with.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _.fill(array, 'a');\n * console.log(array);\n * // => ['a', 'a', 'a']\n *\n * _.fill(Array(3), 2);\n * // => [2, 2, 2]\n *\n * _.fill([4, 6, 8, 10], '*', 1, 3);\n * // => [4, '*', '*', 10]\n */\n function fill(array, value, start, end) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n if (start && typeof start != 'number' && isIterateeCall(array, value, start)) {\n start = 0;\n end = length;\n }\n return baseFill(array, value, start, end);\n }\n\n /**\n * This method is like `_.find` except that it returns the index of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.findIndex(users, function(o) { return o.user == 'barney'; });\n * // => 0\n *\n * // The `_.matches` iteratee shorthand.\n * _.findIndex(users, { 'user': 'fred', 'active': false });\n * // => 1\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findIndex(users, ['active', false]);\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.findIndex(users, 'active');\n * // => 2\n */\n function findIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseFindIndex(array, getIteratee(predicate, 3), index);\n }\n\n /**\n * This method is like `_.findIndex` except that it iterates over elements\n * of `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=array.length-1] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });\n * // => 2\n *\n * // The `_.matches` iteratee shorthand.\n * _.findLastIndex(users, { 'user': 'barney', 'active': true });\n * // => 0\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findLastIndex(users, ['active', false]);\n * // => 2\n *\n * // The `_.property` iteratee shorthand.\n * _.findLastIndex(users, 'active');\n * // => 0\n */\n function findLastIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = length - 1;\n if (fromIndex !== undefined) {\n index = toInteger(fromIndex);\n index = fromIndex < 0\n ? nativeMax(length + index, 0)\n : nativeMin(index, length - 1);\n }\n return baseFindIndex(array, getIteratee(predicate, 3), index, true);\n }\n\n /**\n * Flattens `array` a single level deep.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flatten([1, [2, [3, [4]], 5]]);\n * // => [1, 2, [3, [4]], 5]\n */\n function flatten(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, 1) : [];\n }\n\n /**\n * Recursively flattens `array`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flattenDeep([1, [2, [3, [4]], 5]]);\n * // => [1, 2, 3, 4, 5]\n */\n function flattenDeep(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, INFINITY) : [];\n }\n\n /**\n * Recursively flatten `array` up to `depth` times.\n *\n * @static\n * @memberOf _\n * @since 4.4.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @param {number} [depth=1] The maximum recursion depth.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * var array = [1, [2, [3, [4]], 5]];\n *\n * _.flattenDepth(array, 1);\n * // => [1, 2, [3, [4]], 5]\n *\n * _.flattenDepth(array, 2);\n * // => [1, 2, 3, [4], 5]\n */\n function flattenDepth(array, depth) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n depth = depth === undefined ? 1 : toInteger(depth);\n return baseFlatten(array, depth);\n }\n\n /**\n * The inverse of `_.toPairs`; this method returns an object composed\n * from key-value `pairs`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} pairs The key-value pairs.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.fromPairs([['a', 1], ['b', 2]]);\n * // => { 'a': 1, 'b': 2 }\n */\n function fromPairs(pairs) {\n var index = -1,\n length = pairs == null ? 0 : pairs.length,\n result = {};\n\n while (++index < length) {\n var pair = pairs[index];\n result[pair[0]] = pair[1];\n }\n return result;\n }\n\n /**\n * Gets the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias first\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the first element of `array`.\n * @example\n *\n * _.head([1, 2, 3]);\n * // => 1\n *\n * _.head([]);\n * // => undefined\n */\n function head(array) {\n return (array && array.length) ? array[0] : undefined;\n }\n\n /**\n * Gets the index at which the first occurrence of `value` is found in `array`\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. If `fromIndex` is negative, it's used as the\n * offset from the end of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.indexOf([1, 2, 1, 2], 2);\n * // => 1\n *\n * // Search from the `fromIndex`.\n * _.indexOf([1, 2, 1, 2], 2, 2);\n * // => 3\n */\n function indexOf(array, value, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseIndexOf(array, value, index);\n }\n\n /**\n * Gets all but the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.initial([1, 2, 3]);\n * // => [1, 2]\n */\n function initial(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseSlice(array, 0, -1) : [];\n }\n\n /**\n * Creates an array of unique values that are included in all given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * _.intersection([2, 1], [2, 3]);\n * // => [2]\n */\n var intersection = baseRest(function(arrays) {\n var mapped = arrayMap(arrays, castArrayLikeObject);\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped)\n : [];\n });\n\n /**\n * This method is like `_.intersection` except that it accepts `iteratee`\n * which is invoked for each element of each `arrays` to generate the criterion\n * by which they're compared. The order and references of result values are\n * determined by the first array. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [2.1]\n *\n * // The `_.property` iteratee shorthand.\n * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }]\n */\n var intersectionBy = baseRest(function(arrays) {\n var iteratee = last(arrays),\n mapped = arrayMap(arrays, castArrayLikeObject);\n\n if (iteratee === last(mapped)) {\n iteratee = undefined;\n } else {\n mapped.pop();\n }\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped, getIteratee(iteratee, 2))\n : [];\n });\n\n /**\n * This method is like `_.intersection` except that it accepts `comparator`\n * which is invoked to compare elements of `arrays`. The order and references\n * of result values are determined by the first array. The comparator is\n * invoked with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.intersectionWith(objects, others, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }]\n */\n var intersectionWith = baseRest(function(arrays) {\n var comparator = last(arrays),\n mapped = arrayMap(arrays, castArrayLikeObject);\n\n comparator = typeof comparator == 'function' ? comparator : undefined;\n if (comparator) {\n mapped.pop();\n }\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped, undefined, comparator)\n : [];\n });\n\n /**\n * Converts all elements in `array` into a string separated by `separator`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to convert.\n * @param {string} [separator=','] The element separator.\n * @returns {string} Returns the joined string.\n * @example\n *\n * _.join(['a', 'b', 'c'], '~');\n * // => 'a~b~c'\n */\n function join(array, separator) {\n return array == null ? '' : nativeJoin.call(array, separator);\n }\n\n /**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\n function last(array) {\n var length = array == null ? 0 : array.length;\n return length ? array[length - 1] : undefined;\n }\n\n /**\n * This method is like `_.indexOf` except that it iterates over elements of\n * `array` from right to left.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=array.length-1] The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.lastIndexOf([1, 2, 1, 2], 2);\n * // => 3\n *\n * // Search from the `fromIndex`.\n * _.lastIndexOf([1, 2, 1, 2], 2, 2);\n * // => 1\n */\n function lastIndexOf(array, value, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = length;\n if (fromIndex !== undefined) {\n index = toInteger(fromIndex);\n index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);\n }\n return value === value\n ? strictLastIndexOf(array, value, index)\n : baseFindIndex(array, baseIsNaN, index, true);\n }\n\n /**\n * Gets the element at index `n` of `array`. If `n` is negative, the nth\n * element from the end is returned.\n *\n * @static\n * @memberOf _\n * @since 4.11.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=0] The index of the element to return.\n * @returns {*} Returns the nth element of `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'd'];\n *\n * _.nth(array, 1);\n * // => 'b'\n *\n * _.nth(array, -2);\n * // => 'c';\n */\n function nth(array, n) {\n return (array && array.length) ? baseNth(array, toInteger(n)) : undefined;\n }\n\n /**\n * Removes all given values from `array` using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`\n * to remove elements from an array by predicate.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {...*} [values] The values to remove.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'a', 'b', 'c'];\n *\n * _.pull(array, 'a', 'c');\n * console.log(array);\n * // => ['b', 'b']\n */\n var pull = baseRest(pullAll);\n\n /**\n * This method is like `_.pull` except that it accepts an array of values to remove.\n *\n * **Note:** Unlike `_.difference`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'a', 'b', 'c'];\n *\n * _.pullAll(array, ['a', 'c']);\n * console.log(array);\n * // => ['b', 'b']\n */\n function pullAll(array, values) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values)\n : array;\n }\n\n /**\n * This method is like `_.pullAll` except that it accepts `iteratee` which is\n * invoked for each element of `array` and `values` to generate the criterion\n * by which they're compared. The iteratee is invoked with one argument: (value).\n *\n * **Note:** Unlike `_.differenceBy`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];\n *\n * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');\n * console.log(array);\n * // => [{ 'x': 2 }]\n */\n function pullAllBy(array, values, iteratee) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values, getIteratee(iteratee, 2))\n : array;\n }\n\n /**\n * This method is like `_.pullAll` except that it accepts `comparator` which\n * is invoked to compare elements of `array` to `values`. The comparator is\n * invoked with two arguments: (arrVal, othVal).\n *\n * **Note:** Unlike `_.differenceWith`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];\n *\n * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);\n * console.log(array);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]\n */\n function pullAllWith(array, values, comparator) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values, undefined, comparator)\n : array;\n }\n\n /**\n * Removes elements from `array` corresponding to `indexes` and returns an\n * array of removed elements.\n *\n * **Note:** Unlike `_.at`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {...(number|number[])} [indexes] The indexes of elements to remove.\n * @returns {Array} Returns the new array of removed elements.\n * @example\n *\n * var array = ['a', 'b', 'c', 'd'];\n * var pulled = _.pullAt(array, [1, 3]);\n *\n * console.log(array);\n * // => ['a', 'c']\n *\n * console.log(pulled);\n * // => ['b', 'd']\n */\n var pullAt = flatRest(function(array, indexes) {\n var length = array == null ? 0 : array.length,\n result = baseAt(array, indexes);\n\n basePullAt(array, arrayMap(indexes, function(index) {\n return isIndex(index, length) ? +index : index;\n }).sort(compareAscending));\n\n return result;\n });\n\n /**\n * Removes all elements from `array` that `predicate` returns truthy for\n * and returns an array of the removed elements. The predicate is invoked\n * with three arguments: (value, index, array).\n *\n * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`\n * to pull elements from an array by value.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new array of removed elements.\n * @example\n *\n * var array = [1, 2, 3, 4];\n * var evens = _.remove(array, function(n) {\n * return n % 2 == 0;\n * });\n *\n * console.log(array);\n * // => [1, 3]\n *\n * console.log(evens);\n * // => [2, 4]\n */\n function remove(array, predicate) {\n var result = [];\n if (!(array && array.length)) {\n return result;\n }\n var index = -1,\n indexes = [],\n length = array.length;\n\n predicate = getIteratee(predicate, 3);\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result.push(value);\n indexes.push(index);\n }\n }\n basePullAt(array, indexes);\n return result;\n }\n\n /**\n * Reverses `array` so that the first element becomes the last, the second\n * element becomes the second to last, and so on.\n *\n * **Note:** This method mutates `array` and is based on\n * [`Array#reverse`](https://mdn.io/Array/reverse).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _.reverse(array);\n * // => [3, 2, 1]\n *\n * console.log(array);\n * // => [3, 2, 1]\n */\n function reverse(array) {\n return array == null ? array : nativeReverse.call(array);\n }\n\n /**\n * Creates a slice of `array` from `start` up to, but not including, `end`.\n *\n * **Note:** This method is used instead of\n * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are\n * returned.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\n function slice(array, start, end) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {\n start = 0;\n end = length;\n }\n else {\n start = start == null ? 0 : toInteger(start);\n end = end === undefined ? length : toInteger(end);\n }\n return baseSlice(array, start, end);\n }\n\n /**\n * Uses a binary search to determine the lowest index at which `value`\n * should be inserted into `array` in order to maintain its sort order.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * _.sortedIndex([30, 50], 40);\n * // => 1\n */\n function sortedIndex(array, value) {\n return baseSortedIndex(array, value);\n }\n\n /**\n * This method is like `_.sortedIndex` except that it accepts `iteratee`\n * which is invoked for `value` and each element of `array` to compute their\n * sort ranking. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * var objects = [{ 'x': 4 }, { 'x': 5 }];\n *\n * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.sortedIndexBy(objects, { 'x': 4 }, 'x');\n * // => 0\n */\n function sortedIndexBy(array, value, iteratee) {\n return baseSortedIndexBy(array, value, getIteratee(iteratee, 2));\n }\n\n /**\n * This method is like `_.indexOf` except that it performs a binary\n * search on a sorted `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.sortedIndexOf([4, 5, 5, 5, 6], 5);\n * // => 1\n */\n function sortedIndexOf(array, value) {\n var length = array == null ? 0 : array.length;\n if (length) {\n var index = baseSortedIndex(array, value);\n if (index < length && eq(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * This method is like `_.sortedIndex` except that it returns the highest\n * index at which `value` should be inserted into `array` in order to\n * maintain its sort order.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * _.sortedLastIndex([4, 5, 5, 5, 6], 5);\n * // => 4\n */\n function sortedLastIndex(array, value) {\n return baseSortedIndex(array, value, true);\n }\n\n /**\n * This method is like `_.sortedLastIndex` except that it accepts `iteratee`\n * which is invoked for `value` and each element of `array` to compute their\n * sort ranking. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * var objects = [{ 'x': 4 }, { 'x': 5 }];\n *\n * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });\n * // => 1\n *\n * // The `_.property` iteratee shorthand.\n * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');\n * // => 1\n */\n function sortedLastIndexBy(array, value, iteratee) {\n return baseSortedIndexBy(array, value, getIteratee(iteratee, 2), true);\n }\n\n /**\n * This method is like `_.lastIndexOf` except that it performs a binary\n * search on a sorted `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);\n * // => 3\n */\n function sortedLastIndexOf(array, value) {\n var length = array == null ? 0 : array.length;\n if (length) {\n var index = baseSortedIndex(array, value, true) - 1;\n if (eq(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * This method is like `_.uniq` except that it's designed and optimized\n * for sorted arrays.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.sortedUniq([1, 1, 2]);\n * // => [1, 2]\n */\n function sortedUniq(array) {\n return (array && array.length)\n ? baseSortedUniq(array)\n : [];\n }\n\n /**\n * This method is like `_.uniqBy` except that it's designed and optimized\n * for sorted arrays.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);\n * // => [1.1, 2.3]\n */\n function sortedUniqBy(array, iteratee) {\n return (array && array.length)\n ? baseSortedUniq(array, getIteratee(iteratee, 2))\n : [];\n }\n\n /**\n * Gets all but the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.tail([1, 2, 3]);\n * // => [2, 3]\n */\n function tail(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseSlice(array, 1, length) : [];\n }\n\n /**\n * Creates a slice of `array` with `n` elements taken from the beginning.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to take.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.take([1, 2, 3]);\n * // => [1]\n *\n * _.take([1, 2, 3], 2);\n * // => [1, 2]\n *\n * _.take([1, 2, 3], 5);\n * // => [1, 2, 3]\n *\n * _.take([1, 2, 3], 0);\n * // => []\n */\n function take(array, n, guard) {\n if (!(array && array.length)) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n return baseSlice(array, 0, n < 0 ? 0 : n);\n }\n\n /**\n * Creates a slice of `array` with `n` elements taken from the end.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to take.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.takeRight([1, 2, 3]);\n * // => [3]\n *\n * _.takeRight([1, 2, 3], 2);\n * // => [2, 3]\n *\n * _.takeRight([1, 2, 3], 5);\n * // => [1, 2, 3]\n *\n * _.takeRight([1, 2, 3], 0);\n * // => []\n */\n function takeRight(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n n = length - n;\n return baseSlice(array, n < 0 ? 0 : n, length);\n }\n\n /**\n * Creates a slice of `array` with elements taken from the end. Elements are\n * taken until `predicate` returns falsey. The predicate is invoked with\n * three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.takeRightWhile(users, function(o) { return !o.active; });\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.matches` iteratee shorthand.\n * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false });\n * // => objects for ['pebbles']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.takeRightWhile(users, ['active', false]);\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.property` iteratee shorthand.\n * _.takeRightWhile(users, 'active');\n * // => []\n */\n function takeRightWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), false, true)\n : [];\n }\n\n /**\n * Creates a slice of `array` with elements taken from the beginning. Elements\n * are taken until `predicate` returns falsey. The predicate is invoked with\n * three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.takeWhile(users, function(o) { return !o.active; });\n * // => objects for ['barney', 'fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.takeWhile(users, { 'user': 'barney', 'active': false });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.takeWhile(users, ['active', false]);\n * // => objects for ['barney', 'fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.takeWhile(users, 'active');\n * // => []\n */\n function takeWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3))\n : [];\n }\n\n /**\n * Creates an array of unique values, in order, from all given arrays using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.union([2], [1, 2]);\n * // => [2, 1]\n */\n var union = baseRest(function(arrays) {\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));\n });\n\n /**\n * This method is like `_.union` except that it accepts `iteratee` which is\n * invoked for each element of each `arrays` to generate the criterion by\n * which uniqueness is computed. Result values are chosen from the first\n * array in which the value occurs. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.unionBy([2.1], [1.2, 2.3], Math.floor);\n * // => [2.1, 1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }, { 'x': 2 }]\n */\n var unionBy = baseRest(function(arrays) {\n var iteratee = last(arrays);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined;\n }\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee, 2));\n });\n\n /**\n * This method is like `_.union` except that it accepts `comparator` which\n * is invoked to compare elements of `arrays`. Result values are chosen from\n * the first array in which the value occurs. The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.unionWith(objects, others, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]\n */\n var unionWith = baseRest(function(arrays) {\n var comparator = last(arrays);\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator);\n });\n\n /**\n * Creates a duplicate-free version of an array, using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons, in which only the first occurrence of each element\n * is kept. The order of result values is determined by the order they occur\n * in the array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniq([2, 1, 2]);\n * // => [2, 1]\n */\n function uniq(array) {\n return (array && array.length) ? baseUniq(array) : [];\n }\n\n /**\n * This method is like `_.uniq` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the criterion by which\n * uniqueness is computed. The order of result values is determined by the\n * order they occur in the array. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniqBy([2.1, 1.2, 2.3], Math.floor);\n * // => [2.1, 1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }, { 'x': 2 }]\n */\n function uniqBy(array, iteratee) {\n return (array && array.length) ? baseUniq(array, getIteratee(iteratee, 2)) : [];\n }\n\n /**\n * This method is like `_.uniq` except that it accepts `comparator` which\n * is invoked to compare elements of `array`. The order of result values is\n * determined by the order they occur in the array.The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.uniqWith(objects, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]\n */\n function uniqWith(array, comparator) {\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return (array && array.length) ? baseUniq(array, undefined, comparator) : [];\n }\n\n /**\n * This method is like `_.zip` except that it accepts an array of grouped\n * elements and creates an array regrouping the elements to their pre-zip\n * configuration.\n *\n * @static\n * @memberOf _\n * @since 1.2.0\n * @category Array\n * @param {Array} array The array of grouped elements to process.\n * @returns {Array} Returns the new array of regrouped elements.\n * @example\n *\n * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);\n * // => [['a', 1, true], ['b', 2, false]]\n *\n * _.unzip(zipped);\n * // => [['a', 'b'], [1, 2], [true, false]]\n */\n function unzip(array) {\n if (!(array && array.length)) {\n return [];\n }\n var length = 0;\n array = arrayFilter(array, function(group) {\n if (isArrayLikeObject(group)) {\n length = nativeMax(group.length, length);\n return true;\n }\n });\n return baseTimes(length, function(index) {\n return arrayMap(array, baseProperty(index));\n });\n }\n\n /**\n * This method is like `_.unzip` except that it accepts `iteratee` to specify\n * how regrouped values should be combined. The iteratee is invoked with the\n * elements of each group: (...group).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Array\n * @param {Array} array The array of grouped elements to process.\n * @param {Function} [iteratee=_.identity] The function to combine\n * regrouped values.\n * @returns {Array} Returns the new array of regrouped elements.\n * @example\n *\n * var zipped = _.zip([1, 2], [10, 20], [100, 200]);\n * // => [[1, 10, 100], [2, 20, 200]]\n *\n * _.unzipWith(zipped, _.add);\n * // => [3, 30, 300]\n */\n function unzipWith(array, iteratee) {\n if (!(array && array.length)) {\n return [];\n }\n var result = unzip(array);\n if (iteratee == null) {\n return result;\n }\n return arrayMap(result, function(group) {\n return apply(iteratee, undefined, group);\n });\n }\n\n /**\n * Creates an array excluding all given values using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * **Note:** Unlike `_.pull`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...*} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.difference, _.xor\n * @example\n *\n * _.without([2, 1, 2, 3], 1, 2);\n * // => [3]\n */\n var without = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, values)\n : [];\n });\n\n /**\n * Creates an array of unique values that is the\n * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)\n * of the given arrays. The order of result values is determined by the order\n * they occur in the arrays.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.difference, _.without\n * @example\n *\n * _.xor([2, 1], [2, 3]);\n * // => [1, 3]\n */\n var xor = baseRest(function(arrays) {\n return baseXor(arrayFilter(arrays, isArrayLikeObject));\n });\n\n /**\n * This method is like `_.xor` except that it accepts `iteratee` which is\n * invoked for each element of each `arrays` to generate the criterion by\n * which by which they're compared. The order of result values is determined\n * by the order they occur in the arrays. The iteratee is invoked with one\n * argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [1.2, 3.4]\n *\n * // The `_.property` iteratee shorthand.\n * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 2 }]\n */\n var xorBy = baseRest(function(arrays) {\n var iteratee = last(arrays);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined;\n }\n return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee, 2));\n });\n\n /**\n * This method is like `_.xor` except that it accepts `comparator` which is\n * invoked to compare elements of `arrays`. The order of result values is\n * determined by the order they occur in the arrays. The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.xorWith(objects, others, _.isEqual);\n * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]\n */\n var xorWith = baseRest(function(arrays) {\n var comparator = last(arrays);\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator);\n });\n\n /**\n * Creates an array of grouped elements, the first of which contains the\n * first elements of the given arrays, the second of which contains the\n * second elements of the given arrays, and so on.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to process.\n * @returns {Array} Returns the new array of grouped elements.\n * @example\n *\n * _.zip(['a', 'b'], [1, 2], [true, false]);\n * // => [['a', 1, true], ['b', 2, false]]\n */\n var zip = baseRest(unzip);\n\n /**\n * This method is like `_.fromPairs` except that it accepts two arrays,\n * one of property identifiers and one of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 0.4.0\n * @category Array\n * @param {Array} [props=[]] The property identifiers.\n * @param {Array} [values=[]] The property values.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.zipObject(['a', 'b'], [1, 2]);\n * // => { 'a': 1, 'b': 2 }\n */\n function zipObject(props, values) {\n return baseZipObject(props || [], values || [], assignValue);\n }\n\n /**\n * This method is like `_.zipObject` except that it supports property paths.\n *\n * @static\n * @memberOf _\n * @since 4.1.0\n * @category Array\n * @param {Array} [props=[]] The property identifiers.\n * @param {Array} [values=[]] The property values.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);\n * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }\n */\n function zipObjectDeep(props, values) {\n return baseZipObject(props || [], values || [], baseSet);\n }\n\n /**\n * This method is like `_.zip` except that it accepts `iteratee` to specify\n * how grouped values should be combined. The iteratee is invoked with the\n * elements of each group: (...group).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Array\n * @param {...Array} [arrays] The arrays to process.\n * @param {Function} [iteratee=_.identity] The function to combine\n * grouped values.\n * @returns {Array} Returns the new array of grouped elements.\n * @example\n *\n * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {\n * return a + b + c;\n * });\n * // => [111, 222]\n */\n var zipWith = baseRest(function(arrays) {\n var length = arrays.length,\n iteratee = length > 1 ? arrays[length - 1] : undefined;\n\n iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined;\n return unzipWith(arrays, iteratee);\n });\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a `lodash` wrapper instance that wraps `value` with explicit method\n * chain sequences enabled. The result of such sequences must be unwrapped\n * with `_#value`.\n *\n * @static\n * @memberOf _\n * @since 1.3.0\n * @category Seq\n * @param {*} value The value to wrap.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'pebbles', 'age': 1 }\n * ];\n *\n * var youngest = _\n * .chain(users)\n * .sortBy('age')\n * .map(function(o) {\n * return o.user + ' is ' + o.age;\n * })\n * .head()\n * .value();\n * // => 'pebbles is 1'\n */\n function chain(value) {\n var result = lodash(value);\n result.__chain__ = true;\n return result;\n }\n\n /**\n * This method invokes `interceptor` and returns `value`. The interceptor\n * is invoked with one argument; (value). The purpose of this method is to\n * \"tap into\" a method chain sequence in order to modify intermediate results.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @param {*} value The value to provide to `interceptor`.\n * @param {Function} interceptor The function to invoke.\n * @returns {*} Returns `value`.\n * @example\n *\n * _([1, 2, 3])\n * .tap(function(array) {\n * // Mutate input array.\n * array.pop();\n * })\n * .reverse()\n * .value();\n * // => [2, 1]\n */\n function tap(value, interceptor) {\n interceptor(value);\n return value;\n }\n\n /**\n * This method is like `_.tap` except that it returns the result of `interceptor`.\n * The purpose of this method is to \"pass thru\" values replacing intermediate\n * results in a method chain sequence.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Seq\n * @param {*} value The value to provide to `interceptor`.\n * @param {Function} interceptor The function to invoke.\n * @returns {*} Returns the result of `interceptor`.\n * @example\n *\n * _(' abc ')\n * .chain()\n * .trim()\n * .thru(function(value) {\n * return [value];\n * })\n * .value();\n * // => ['abc']\n */\n function thru(value, interceptor) {\n return interceptor(value);\n }\n\n /**\n * This method is the wrapper version of `_.at`.\n *\n * @name at\n * @memberOf _\n * @since 1.0.0\n * @category Seq\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };\n *\n * _(object).at(['a[0].b.c', 'a[1]']).value();\n * // => [3, 4]\n */\n var wrapperAt = flatRest(function(paths) {\n var length = paths.length,\n start = length ? paths[0] : 0,\n value = this.__wrapped__,\n interceptor = function(object) { return baseAt(object, paths); };\n\n if (length > 1 || this.__actions__.length ||\n !(value instanceof LazyWrapper) || !isIndex(start)) {\n return this.thru(interceptor);\n }\n value = value.slice(start, +start + (length ? 1 : 0));\n value.__actions__.push({\n 'func': thru,\n 'args': [interceptor],\n 'thisArg': undefined\n });\n return new LodashWrapper(value, this.__chain__).thru(function(array) {\n if (length && !array.length) {\n array.push(undefined);\n }\n return array;\n });\n });\n\n /**\n * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.\n *\n * @name chain\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 }\n * ];\n *\n * // A sequence without explicit chaining.\n * _(users).head();\n * // => { 'user': 'barney', 'age': 36 }\n *\n * // A sequence with explicit chaining.\n * _(users)\n * .chain()\n * .head()\n * .pick('user')\n * .value();\n * // => { 'user': 'barney' }\n */\n function wrapperChain() {\n return chain(this);\n }\n\n /**\n * Executes the chain sequence and returns the wrapped result.\n *\n * @name commit\n * @memberOf _\n * @since 3.2.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var array = [1, 2];\n * var wrapped = _(array).push(3);\n *\n * console.log(array);\n * // => [1, 2]\n *\n * wrapped = wrapped.commit();\n * console.log(array);\n * // => [1, 2, 3]\n *\n * wrapped.last();\n * // => 3\n *\n * console.log(array);\n * // => [1, 2, 3]\n */\n function wrapperCommit() {\n return new LodashWrapper(this.value(), this.__chain__);\n }\n\n /**\n * Gets the next value on a wrapped object following the\n * [iterator protocol](https://mdn.io/iteration_protocols#iterator).\n *\n * @name next\n * @memberOf _\n * @since 4.0.0\n * @category Seq\n * @returns {Object} Returns the next iterator value.\n * @example\n *\n * var wrapped = _([1, 2]);\n *\n * wrapped.next();\n * // => { 'done': false, 'value': 1 }\n *\n * wrapped.next();\n * // => { 'done': false, 'value': 2 }\n *\n * wrapped.next();\n * // => { 'done': true, 'value': undefined }\n */\n function wrapperNext() {\n if (this.__values__ === undefined) {\n this.__values__ = toArray(this.value());\n }\n var done = this.__index__ >= this.__values__.length,\n value = done ? undefined : this.__values__[this.__index__++];\n\n return { 'done': done, 'value': value };\n }\n\n /**\n * Enables the wrapper to be iterable.\n *\n * @name Symbol.iterator\n * @memberOf _\n * @since 4.0.0\n * @category Seq\n * @returns {Object} Returns the wrapper object.\n * @example\n *\n * var wrapped = _([1, 2]);\n *\n * wrapped[Symbol.iterator]() === wrapped;\n * // => true\n *\n * Array.from(wrapped);\n * // => [1, 2]\n */\n function wrapperToIterator() {\n return this;\n }\n\n /**\n * Creates a clone of the chain sequence planting `value` as the wrapped value.\n *\n * @name plant\n * @memberOf _\n * @since 3.2.0\n * @category Seq\n * @param {*} value The value to plant.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var wrapped = _([1, 2]).map(square);\n * var other = wrapped.plant([3, 4]);\n *\n * other.value();\n * // => [9, 16]\n *\n * wrapped.value();\n * // => [1, 4]\n */\n function wrapperPlant(value) {\n var result,\n parent = this;\n\n while (parent instanceof baseLodash) {\n var clone = wrapperClone(parent);\n clone.__index__ = 0;\n clone.__values__ = undefined;\n if (result) {\n previous.__wrapped__ = clone;\n } else {\n result = clone;\n }\n var previous = clone;\n parent = parent.__wrapped__;\n }\n previous.__wrapped__ = value;\n return result;\n }\n\n /**\n * This method is the wrapper version of `_.reverse`.\n *\n * **Note:** This method mutates the wrapped array.\n *\n * @name reverse\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _(array).reverse().value()\n * // => [3, 2, 1]\n *\n * console.log(array);\n * // => [3, 2, 1]\n */\n function wrapperReverse() {\n var value = this.__wrapped__;\n if (value instanceof LazyWrapper) {\n var wrapped = value;\n if (this.__actions__.length) {\n wrapped = new LazyWrapper(this);\n }\n wrapped = wrapped.reverse();\n wrapped.__actions__.push({\n 'func': thru,\n 'args': [reverse],\n 'thisArg': undefined\n });\n return new LodashWrapper(wrapped, this.__chain__);\n }\n return this.thru(reverse);\n }\n\n /**\n * Executes the chain sequence to resolve the unwrapped value.\n *\n * @name value\n * @memberOf _\n * @since 0.1.0\n * @alias toJSON, valueOf\n * @category Seq\n * @returns {*} Returns the resolved unwrapped value.\n * @example\n *\n * _([1, 2, 3]).value();\n * // => [1, 2, 3]\n */\n function wrapperValue() {\n return baseWrapperValue(this.__wrapped__, this.__actions__);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The corresponding value of\n * each key is the number of times the key was returned by `iteratee`. The\n * iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.countBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': 1, '6': 2 }\n *\n * // The `_.property` iteratee shorthand.\n * _.countBy(['one', 'two', 'three'], 'length');\n * // => { '3': 2, '5': 1 }\n */\n var countBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n ++result[key];\n } else {\n baseAssignValue(result, key, 1);\n }\n });\n\n /**\n * Checks if `predicate` returns truthy for **all** elements of `collection`.\n * Iteration is stopped once `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index|key, collection).\n *\n * **Note:** This method returns `true` for\n * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because\n * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of\n * elements of empty collections.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`.\n * @example\n *\n * _.every([true, 1, null, 'yes'], Boolean);\n * // => false\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * // The `_.matches` iteratee shorthand.\n * _.every(users, { 'user': 'barney', 'active': false });\n * // => false\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.every(users, ['active', false]);\n * // => true\n *\n * // The `_.property` iteratee shorthand.\n * _.every(users, 'active');\n * // => false\n */\n function every(collection, predicate, guard) {\n var func = isArray(collection) ? arrayEvery : baseEvery;\n if (guard && isIterateeCall(collection, predicate, guard)) {\n predicate = undefined;\n }\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Iterates over elements of `collection`, returning an array of all elements\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * **Note:** Unlike `_.remove`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.reject\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * _.filter(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.filter(users, { 'age': 36, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.filter(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.filter(users, 'active');\n * // => objects for ['barney']\n */\n function filter(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Iterates over elements of `collection`, returning the first element\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false },\n * { 'user': 'pebbles', 'age': 1, 'active': true }\n * ];\n *\n * _.find(users, function(o) { return o.age < 40; });\n * // => object for 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.find(users, { 'age': 1, 'active': true });\n * // => object for 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.find(users, ['active', false]);\n * // => object for 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.find(users, 'active');\n * // => object for 'barney'\n */\n var find = createFind(findIndex);\n\n /**\n * This method is like `_.find` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=collection.length-1] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * _.findLast([1, 2, 3, 4], function(n) {\n * return n % 2 == 1;\n * });\n * // => 3\n */\n var findLast = createFind(findLastIndex);\n\n /**\n * Creates a flattened array of values by running each element in `collection`\n * thru `iteratee` and flattening the mapped results. The iteratee is invoked\n * with three arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [n, n];\n * }\n *\n * _.flatMap([1, 2], duplicate);\n * // => [1, 1, 2, 2]\n */\n function flatMap(collection, iteratee) {\n return baseFlatten(map(collection, iteratee), 1);\n }\n\n /**\n * This method is like `_.flatMap` except that it recursively flattens the\n * mapped results.\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [[[n, n]]];\n * }\n *\n * _.flatMapDeep([1, 2], duplicate);\n * // => [1, 1, 2, 2]\n */\n function flatMapDeep(collection, iteratee) {\n return baseFlatten(map(collection, iteratee), INFINITY);\n }\n\n /**\n * This method is like `_.flatMap` except that it recursively flattens the\n * mapped results up to `depth` times.\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {number} [depth=1] The maximum recursion depth.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [[[n, n]]];\n * }\n *\n * _.flatMapDepth([1, 2], duplicate, 2);\n * // => [[1, 1], [2, 2]]\n */\n function flatMapDepth(collection, iteratee, depth) {\n depth = depth === undefined ? 1 : toInteger(depth);\n return baseFlatten(map(collection, iteratee), depth);\n }\n\n /**\n * Iterates over elements of `collection` and invokes `iteratee` for each element.\n * The iteratee is invoked with three arguments: (value, index|key, collection).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * **Note:** As with other \"Collections\" methods, objects with a \"length\"\n * property are iterated like arrays. To avoid this behavior use `_.forIn`\n * or `_.forOwn` for object iteration.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias each\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n * @see _.forEachRight\n * @example\n *\n * _.forEach([1, 2], function(value) {\n * console.log(value);\n * });\n * // => Logs `1` then `2`.\n *\n * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\n function forEach(collection, iteratee) {\n var func = isArray(collection) ? arrayEach : baseEach;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.forEach` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @alias eachRight\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n * @see _.forEach\n * @example\n *\n * _.forEachRight([1, 2], function(value) {\n * console.log(value);\n * });\n * // => Logs `2` then `1`.\n */\n function forEachRight(collection, iteratee) {\n var func = isArray(collection) ? arrayEachRight : baseEachRight;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The order of grouped values\n * is determined by the order they occur in `collection`. The corresponding\n * value of each key is an array of elements responsible for generating the\n * key. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.groupBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': [4.2], '6': [6.1, 6.3] }\n *\n * // The `_.property` iteratee shorthand.\n * _.groupBy(['one', 'two', 'three'], 'length');\n * // => { '3': ['one', 'two'], '5': ['three'] }\n */\n var groupBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n result[key].push(value);\n } else {\n baseAssignValue(result, key, [value]);\n }\n });\n\n /**\n * Checks if `value` is in `collection`. If `collection` is a string, it's\n * checked for a substring of `value`, otherwise\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * is used for equality comparisons. If `fromIndex` is negative, it's used as\n * the offset from the end of `collection`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=0] The index to search from.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {boolean} Returns `true` if `value` is found, else `false`.\n * @example\n *\n * _.includes([1, 2, 3], 1);\n * // => true\n *\n * _.includes([1, 2, 3], 1, 2);\n * // => false\n *\n * _.includes({ 'a': 1, 'b': 2 }, 1);\n * // => true\n *\n * _.includes('abcd', 'bc');\n * // => true\n */\n function includes(collection, value, fromIndex, guard) {\n collection = isArrayLike(collection) ? collection : values(collection);\n fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;\n\n var length = collection.length;\n if (fromIndex < 0) {\n fromIndex = nativeMax(length + fromIndex, 0);\n }\n return isString(collection)\n ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)\n : (!!length && baseIndexOf(collection, value, fromIndex) > -1);\n }\n\n /**\n * Invokes the method at `path` of each element in `collection`, returning\n * an array of the results of each invoked method. Any additional arguments\n * are provided to each invoked method. If `path` is a function, it's invoked\n * for, and `this` bound to, each element in `collection`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Array|Function|string} path The path of the method to invoke or\n * the function invoked per iteration.\n * @param {...*} [args] The arguments to invoke each method with.\n * @returns {Array} Returns the array of results.\n * @example\n *\n * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');\n * // => [[1, 5, 7], [1, 2, 3]]\n *\n * _.invokeMap([123, 456], String.prototype.split, '');\n * // => [['1', '2', '3'], ['4', '5', '6']]\n */\n var invokeMap = baseRest(function(collection, path, args) {\n var index = -1,\n isFunc = typeof path == 'function',\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value) {\n result[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);\n });\n return result;\n });\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The corresponding value of\n * each key is the last element responsible for generating the key. The\n * iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * var array = [\n * { 'dir': 'left', 'code': 97 },\n * { 'dir': 'right', 'code': 100 }\n * ];\n *\n * _.keyBy(array, function(o) {\n * return String.fromCharCode(o.code);\n * });\n * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }\n *\n * _.keyBy(array, 'dir');\n * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }\n */\n var keyBy = createAggregator(function(result, value, key) {\n baseAssignValue(result, key, value);\n });\n\n /**\n * Creates an array of values by running each element in `collection` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.\n *\n * The guarded methods are:\n * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,\n * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,\n * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,\n * `template`, `trim`, `trimEnd`, `trimStart`, and `words`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * _.map([4, 8], square);\n * // => [16, 64]\n *\n * _.map({ 'a': 4, 'b': 8 }, square);\n * // => [16, 64] (iteration order is not guaranteed)\n *\n * var users = [\n * { 'user': 'barney' },\n * { 'user': 'fred' }\n * ];\n *\n * // The `_.property` iteratee shorthand.\n * _.map(users, 'user');\n * // => ['barney', 'fred']\n */\n function map(collection, iteratee) {\n var func = isArray(collection) ? arrayMap : baseMap;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.sortBy` except that it allows specifying the sort\n * orders of the iteratees to sort by. If `orders` is unspecified, all values\n * are sorted in ascending order. Otherwise, specify an order of \"desc\" for\n * descending or \"asc\" for ascending sort order of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @param {string[]} [orders] The sort orders of `iteratees`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 34 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'barney', 'age': 36 }\n * ];\n *\n * // Sort by `user` in ascending order and by `age` in descending order.\n * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n */\n function orderBy(collection, iteratees, orders, guard) {\n if (collection == null) {\n return [];\n }\n if (!isArray(iteratees)) {\n iteratees = iteratees == null ? [] : [iteratees];\n }\n orders = guard ? undefined : orders;\n if (!isArray(orders)) {\n orders = orders == null ? [] : [orders];\n }\n return baseOrderBy(collection, iteratees, orders);\n }\n\n /**\n * Creates an array of elements split into two groups, the first of which\n * contains elements `predicate` returns truthy for, the second of which\n * contains elements `predicate` returns falsey for. The predicate is\n * invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the array of grouped elements.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': true },\n * { 'user': 'pebbles', 'age': 1, 'active': false }\n * ];\n *\n * _.partition(users, function(o) { return o.active; });\n * // => objects for [['fred'], ['barney', 'pebbles']]\n *\n * // The `_.matches` iteratee shorthand.\n * _.partition(users, { 'age': 1, 'active': false });\n * // => objects for [['pebbles'], ['barney', 'fred']]\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.partition(users, ['active', false]);\n * // => objects for [['barney', 'pebbles'], ['fred']]\n *\n * // The `_.property` iteratee shorthand.\n * _.partition(users, 'active');\n * // => objects for [['fred'], ['barney', 'pebbles']]\n */\n var partition = createAggregator(function(result, value, key) {\n result[key ? 0 : 1].push(value);\n }, function() { return [[], []]; });\n\n /**\n * Reduces `collection` to a value which is the accumulated result of running\n * each element in `collection` thru `iteratee`, where each successive\n * invocation is supplied the return value of the previous. If `accumulator`\n * is not given, the first element of `collection` is used as the initial\n * value. The iteratee is invoked with four arguments:\n * (accumulator, value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.reduce`, `_.reduceRight`, and `_.transform`.\n *\n * The guarded methods are:\n * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,\n * and `sortBy`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduceRight\n * @example\n *\n * _.reduce([1, 2], function(sum, n) {\n * return sum + n;\n * }, 0);\n * // => 3\n *\n * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * return result;\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)\n */\n function reduce(collection, iteratee, accumulator) {\n var func = isArray(collection) ? arrayReduce : baseReduce,\n initAccum = arguments.length < 3;\n\n return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEach);\n }\n\n /**\n * This method is like `_.reduce` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduce\n * @example\n *\n * var array = [[0, 1], [2, 3], [4, 5]];\n *\n * _.reduceRight(array, function(flattened, other) {\n * return flattened.concat(other);\n * }, []);\n * // => [4, 5, 2, 3, 0, 1]\n */\n function reduceRight(collection, iteratee, accumulator) {\n var func = isArray(collection) ? arrayReduceRight : baseReduce,\n initAccum = arguments.length < 3;\n\n return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEachRight);\n }\n\n /**\n * The opposite of `_.filter`; this method returns the elements of `collection`\n * that `predicate` does **not** return truthy for.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.filter\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': true }\n * ];\n *\n * _.reject(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.reject(users, { 'age': 40, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.reject(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.reject(users, 'active');\n * // => objects for ['barney']\n */\n function reject(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, negate(getIteratee(predicate, 3)));\n }\n\n /**\n * Gets a random element from `collection`.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to sample.\n * @returns {*} Returns the random element.\n * @example\n *\n * _.sample([1, 2, 3, 4]);\n * // => 2\n */\n function sample(collection) {\n var func = isArray(collection) ? arraySample : baseSample;\n return func(collection);\n }\n\n /**\n * Gets `n` random elements at unique keys from `collection` up to the\n * size of `collection`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to sample.\n * @param {number} [n=1] The number of elements to sample.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the random elements.\n * @example\n *\n * _.sampleSize([1, 2, 3], 2);\n * // => [3, 1]\n *\n * _.sampleSize([1, 2, 3], 4);\n * // => [2, 3, 1]\n */\n function sampleSize(collection, n, guard) {\n if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) {\n n = 1;\n } else {\n n = toInteger(n);\n }\n var func = isArray(collection) ? arraySampleSize : baseSampleSize;\n return func(collection, n);\n }\n\n /**\n * Creates an array of shuffled values, using a version of the\n * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to shuffle.\n * @returns {Array} Returns the new shuffled array.\n * @example\n *\n * _.shuffle([1, 2, 3, 4]);\n * // => [4, 1, 3, 2]\n */\n function shuffle(collection) {\n var func = isArray(collection) ? arrayShuffle : baseShuffle;\n return func(collection);\n }\n\n /**\n * Gets the size of `collection` by returning its length for array-like\n * values or the number of own enumerable string keyed properties for objects.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @returns {number} Returns the collection size.\n * @example\n *\n * _.size([1, 2, 3]);\n * // => 3\n *\n * _.size({ 'a': 1, 'b': 2 });\n * // => 2\n *\n * _.size('pebbles');\n * // => 7\n */\n function size(collection) {\n if (collection == null) {\n return 0;\n }\n if (isArrayLike(collection)) {\n return isString(collection) ? stringSize(collection) : collection.length;\n }\n var tag = getTag(collection);\n if (tag == mapTag || tag == setTag) {\n return collection.size;\n }\n return baseKeys(collection).length;\n }\n\n /**\n * Checks if `predicate` returns truthy for **any** element of `collection`.\n * Iteration is stopped once `predicate` returns truthy. The predicate is\n * invoked with three arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n * @example\n *\n * _.some([null, 0, 'yes', false], Boolean);\n * // => true\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false }\n * ];\n *\n * // The `_.matches` iteratee shorthand.\n * _.some(users, { 'user': 'barney', 'active': false });\n * // => false\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.some(users, ['active', false]);\n * // => true\n *\n * // The `_.property` iteratee shorthand.\n * _.some(users, 'active');\n * // => true\n */\n function some(collection, predicate, guard) {\n var func = isArray(collection) ? arraySome : baseSome;\n if (guard && isIterateeCall(collection, predicate, guard)) {\n predicate = undefined;\n }\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Creates an array of elements, sorted in ascending order by the results of\n * running each element in a collection thru each iteratee. This method\n * performs a stable sort, that is, it preserves the original sort order of\n * equal elements. The iteratees are invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'barney', 'age': 34 }\n * ];\n *\n * _.sortBy(users, [function(o) { return o.user; }]);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n *\n * _.sortBy(users, ['user', 'age']);\n * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]\n */\n var sortBy = baseRest(function(collection, iteratees) {\n if (collection == null) {\n return [];\n }\n var length = iteratees.length;\n if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {\n iteratees = [];\n } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {\n iteratees = [iteratees[0]];\n }\n return baseOrderBy(collection, baseFlatten(iteratees, 1), []);\n });\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\n var now = ctxNow || function() {\n return root.Date.now();\n };\n\n /*------------------------------------------------------------------------*/\n\n /**\n * The opposite of `_.before`; this method creates a function that invokes\n * `func` once it's called `n` or more times.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {number} n The number of calls before `func` is invoked.\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * var saves = ['profile', 'settings'];\n *\n * var done = _.after(saves.length, function() {\n * console.log('done saving!');\n * });\n *\n * _.forEach(saves, function(type) {\n * asyncSave({ 'type': type, 'complete': done });\n * });\n * // => Logs 'done saving!' after the two async saves have completed.\n */\n function after(n, func) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n n = toInteger(n);\n return function() {\n if (--n < 1) {\n return func.apply(this, arguments);\n }\n };\n }\n\n /**\n * Creates a function that invokes `func`, with up to `n` arguments,\n * ignoring any additional arguments.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to cap arguments for.\n * @param {number} [n=func.length] The arity cap.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new capped function.\n * @example\n *\n * _.map(['6', '8', '10'], _.ary(parseInt, 1));\n * // => [6, 8, 10]\n */\n function ary(func, n, guard) {\n n = guard ? undefined : n;\n n = (func && n == null) ? func.length : n;\n return createWrap(func, WRAP_ARY_FLAG, undefined, undefined, undefined, undefined, n);\n }\n\n /**\n * Creates a function that invokes `func`, with the `this` binding and arguments\n * of the created function, while it's called less than `n` times. Subsequent\n * calls to the created function return the result of the last `func` invocation.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {number} n The number of calls at which `func` is no longer invoked.\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * jQuery(element).on('click', _.before(5, addContactToList));\n * // => Allows adding up to 4 contacts to the list.\n */\n function before(n, func) {\n var result;\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n n = toInteger(n);\n return function() {\n if (--n > 0) {\n result = func.apply(this, arguments);\n }\n if (n <= 1) {\n func = undefined;\n }\n return result;\n };\n }\n\n /**\n * Creates a function that invokes `func` with the `this` binding of `thisArg`\n * and `partials` prepended to the arguments it receives.\n *\n * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,\n * may be used as a placeholder for partially applied arguments.\n *\n * **Note:** Unlike native `Function#bind`, this method doesn't set the \"length\"\n * property of bound functions.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to bind.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new bound function.\n * @example\n *\n * function greet(greeting, punctuation) {\n * return greeting + ' ' + this.user + punctuation;\n * }\n *\n * var object = { 'user': 'fred' };\n *\n * var bound = _.bind(greet, object, 'hi');\n * bound('!');\n * // => 'hi fred!'\n *\n * // Bound with placeholders.\n * var bound = _.bind(greet, object, _, '!');\n * bound('hi');\n * // => 'hi fred!'\n */\n var bind = baseRest(function(func, thisArg, partials) {\n var bitmask = WRAP_BIND_FLAG;\n if (partials.length) {\n var holders = replaceHolders(partials, getHolder(bind));\n bitmask |= WRAP_PARTIAL_FLAG;\n }\n return createWrap(func, bitmask, thisArg, partials, holders);\n });\n\n /**\n * Creates a function that invokes the method at `object[key]` with `partials`\n * prepended to the arguments it receives.\n *\n * This method differs from `_.bind` by allowing bound functions to reference\n * methods that may be redefined or don't yet exist. See\n * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)\n * for more details.\n *\n * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * @static\n * @memberOf _\n * @since 0.10.0\n * @category Function\n * @param {Object} object The object to invoke the method on.\n * @param {string} key The key of the method.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new bound function.\n * @example\n *\n * var object = {\n * 'user': 'fred',\n * 'greet': function(greeting, punctuation) {\n * return greeting + ' ' + this.user + punctuation;\n * }\n * };\n *\n * var bound = _.bindKey(object, 'greet', 'hi');\n * bound('!');\n * // => 'hi fred!'\n *\n * object.greet = function(greeting, punctuation) {\n * return greeting + 'ya ' + this.user + punctuation;\n * };\n *\n * bound('!');\n * // => 'hiya fred!'\n *\n * // Bound with placeholders.\n * var bound = _.bindKey(object, 'greet', _, '!');\n * bound('hi');\n * // => 'hiya fred!'\n */\n var bindKey = baseRest(function(object, key, partials) {\n var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG;\n if (partials.length) {\n var holders = replaceHolders(partials, getHolder(bindKey));\n bitmask |= WRAP_PARTIAL_FLAG;\n }\n return createWrap(key, bitmask, object, partials, holders);\n });\n\n /**\n * Creates a function that accepts arguments of `func` and either invokes\n * `func` returning its result, if at least `arity` number of arguments have\n * been provided, or returns a function that accepts the remaining `func`\n * arguments, and so on. The arity of `func` may be specified if `func.length`\n * is not sufficient.\n *\n * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,\n * may be used as a placeholder for provided arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of curried functions.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Function\n * @param {Function} func The function to curry.\n * @param {number} [arity=func.length] The arity of `func`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new curried function.\n * @example\n *\n * var abc = function(a, b, c) {\n * return [a, b, c];\n * };\n *\n * var curried = _.curry(abc);\n *\n * curried(1)(2)(3);\n * // => [1, 2, 3]\n *\n * curried(1, 2)(3);\n * // => [1, 2, 3]\n *\n * curried(1, 2, 3);\n * // => [1, 2, 3]\n *\n * // Curried with placeholders.\n * curried(1)(_, 3)(2);\n * // => [1, 2, 3]\n */\n function curry(func, arity, guard) {\n arity = guard ? undefined : arity;\n var result = createWrap(func, WRAP_CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity);\n result.placeholder = curry.placeholder;\n return result;\n }\n\n /**\n * This method is like `_.curry` except that arguments are applied to `func`\n * in the manner of `_.partialRight` instead of `_.partial`.\n *\n * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for provided arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of curried functions.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to curry.\n * @param {number} [arity=func.length] The arity of `func`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new curried function.\n * @example\n *\n * var abc = function(a, b, c) {\n * return [a, b, c];\n * };\n *\n * var curried = _.curryRight(abc);\n *\n * curried(3)(2)(1);\n * // => [1, 2, 3]\n *\n * curried(2, 3)(1);\n * // => [1, 2, 3]\n *\n * curried(1, 2, 3);\n * // => [1, 2, 3]\n *\n * // Curried with placeholders.\n * curried(3)(1, _)(2);\n * // => [1, 2, 3]\n */\n function curryRight(func, arity, guard) {\n arity = guard ? undefined : arity;\n var result = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity);\n result.placeholder = curryRight.placeholder;\n return result;\n }\n\n /**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\n function debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n result = wait - timeSinceLastCall;\n\n return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n }\n\n /**\n * Defers invoking the `func` until the current call stack has cleared. Any\n * additional arguments are provided to `func` when it's invoked.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to defer.\n * @param {...*} [args] The arguments to invoke `func` with.\n * @returns {number} Returns the timer id.\n * @example\n *\n * _.defer(function(text) {\n * console.log(text);\n * }, 'deferred');\n * // => Logs 'deferred' after one millisecond.\n */\n var defer = baseRest(function(func, args) {\n return baseDelay(func, 1, args);\n });\n\n /**\n * Invokes `func` after `wait` milliseconds. Any additional arguments are\n * provided to `func` when it's invoked.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @param {...*} [args] The arguments to invoke `func` with.\n * @returns {number} Returns the timer id.\n * @example\n *\n * _.delay(function(text) {\n * console.log(text);\n * }, 1000, 'later');\n * // => Logs 'later' after one second.\n */\n var delay = baseRest(function(func, wait, args) {\n return baseDelay(func, toNumber(wait) || 0, args);\n });\n\n /**\n * Creates a function that invokes `func` with arguments reversed.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to flip arguments for.\n * @returns {Function} Returns the new flipped function.\n * @example\n *\n * var flipped = _.flip(function() {\n * return _.toArray(arguments);\n * });\n *\n * flipped('a', 'b', 'c', 'd');\n * // => ['d', 'c', 'b', 'a']\n */\n function flip(func) {\n return createWrap(func, WRAP_FLIP_FLAG);\n }\n\n /**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\n function memoize(func, resolver) {\n if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var args = arguments,\n key = resolver ? resolver.apply(this, args) : args[0],\n cache = memoized.cache;\n\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result) || cache;\n return result;\n };\n memoized.cache = new (memoize.Cache || MapCache);\n return memoized;\n }\n\n // Expose `MapCache`.\n memoize.Cache = MapCache;\n\n /**\n * Creates a function that negates the result of the predicate `func`. The\n * `func` predicate is invoked with the `this` binding and arguments of the\n * created function.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} predicate The predicate to negate.\n * @returns {Function} Returns the new negated function.\n * @example\n *\n * function isEven(n) {\n * return n % 2 == 0;\n * }\n *\n * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));\n * // => [1, 3, 5]\n */\n function negate(predicate) {\n if (typeof predicate != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return function() {\n var args = arguments;\n switch (args.length) {\n case 0: return !predicate.call(this);\n case 1: return !predicate.call(this, args[0]);\n case 2: return !predicate.call(this, args[0], args[1]);\n case 3: return !predicate.call(this, args[0], args[1], args[2]);\n }\n return !predicate.apply(this, args);\n };\n }\n\n /**\n * Creates a function that is restricted to invoking `func` once. Repeat calls\n * to the function return the value of the first invocation. The `func` is\n * invoked with the `this` binding and arguments of the created function.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * var initialize = _.once(createApplication);\n * initialize();\n * initialize();\n * // => `createApplication` is invoked once\n */\n function once(func) {\n return before(2, func);\n }\n\n /**\n * Creates a function that invokes `func` with its arguments transformed.\n *\n * @static\n * @since 4.0.0\n * @memberOf _\n * @category Function\n * @param {Function} func The function to wrap.\n * @param {...(Function|Function[])} [transforms=[_.identity]]\n * The argument transforms.\n * @returns {Function} Returns the new function.\n * @example\n *\n * function doubled(n) {\n * return n * 2;\n * }\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var func = _.overArgs(function(x, y) {\n * return [x, y];\n * }, [square, doubled]);\n *\n * func(9, 3);\n * // => [81, 6]\n *\n * func(10, 5);\n * // => [100, 10]\n */\n var overArgs = castRest(function(func, transforms) {\n transforms = (transforms.length == 1 && isArray(transforms[0]))\n ? arrayMap(transforms[0], baseUnary(getIteratee()))\n : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));\n\n var funcsLength = transforms.length;\n return baseRest(function(args) {\n var index = -1,\n length = nativeMin(args.length, funcsLength);\n\n while (++index < length) {\n args[index] = transforms[index].call(this, args[index]);\n }\n return apply(func, this, args);\n });\n });\n\n /**\n * Creates a function that invokes `func` with `partials` prepended to the\n * arguments it receives. This method is like `_.bind` except it does **not**\n * alter the `this` binding.\n *\n * The `_.partial.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of partially\n * applied functions.\n *\n * @static\n * @memberOf _\n * @since 0.2.0\n * @category Function\n * @param {Function} func The function to partially apply arguments to.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new partially applied function.\n * @example\n *\n * function greet(greeting, name) {\n * return greeting + ' ' + name;\n * }\n *\n * var sayHelloTo = _.partial(greet, 'hello');\n * sayHelloTo('fred');\n * // => 'hello fred'\n *\n * // Partially applied with placeholders.\n * var greetFred = _.partial(greet, _, 'fred');\n * greetFred('hi');\n * // => 'hi fred'\n */\n var partial = baseRest(function(func, partials) {\n var holders = replaceHolders(partials, getHolder(partial));\n return createWrap(func, WRAP_PARTIAL_FLAG, undefined, partials, holders);\n });\n\n /**\n * This method is like `_.partial` except that partially applied arguments\n * are appended to the arguments it receives.\n *\n * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of partially\n * applied functions.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Function\n * @param {Function} func The function to partially apply arguments to.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new partially applied function.\n * @example\n *\n * function greet(greeting, name) {\n * return greeting + ' ' + name;\n * }\n *\n * var greetFred = _.partialRight(greet, 'fred');\n * greetFred('hi');\n * // => 'hi fred'\n *\n * // Partially applied with placeholders.\n * var sayHelloTo = _.partialRight(greet, 'hello', _);\n * sayHelloTo('fred');\n * // => 'hello fred'\n */\n var partialRight = baseRest(function(func, partials) {\n var holders = replaceHolders(partials, getHolder(partialRight));\n return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined, partials, holders);\n });\n\n /**\n * Creates a function that invokes `func` with arguments arranged according\n * to the specified `indexes` where the argument value at the first index is\n * provided as the first argument, the argument value at the second index is\n * provided as the second argument, and so on.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to rearrange arguments for.\n * @param {...(number|number[])} indexes The arranged argument indexes.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var rearged = _.rearg(function(a, b, c) {\n * return [a, b, c];\n * }, [2, 0, 1]);\n *\n * rearged('b', 'c', 'a')\n * // => ['a', 'b', 'c']\n */\n var rearg = flatRest(function(func, indexes) {\n return createWrap(func, WRAP_REARG_FLAG, undefined, undefined, undefined, indexes);\n });\n\n /**\n * Creates a function that invokes `func` with the `this` binding of the\n * created function and arguments from `start` and beyond provided as\n * an array.\n *\n * **Note:** This method is based on the\n * [rest parameter](https://mdn.io/rest_parameters).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var say = _.rest(function(what, names) {\n * return what + ' ' + _.initial(names).join(', ') +\n * (_.size(names) > 1 ? ', & ' : '') + _.last(names);\n * });\n *\n * say('hello', 'fred', 'barney', 'pebbles');\n * // => 'hello fred, barney, & pebbles'\n */\n function rest(func, start) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n start = start === undefined ? start : toInteger(start);\n return baseRest(func, start);\n }\n\n /**\n * Creates a function that invokes `func` with the `this` binding of the\n * create function and an array of arguments much like\n * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).\n *\n * **Note:** This method is based on the\n * [spread operator](https://mdn.io/spread_operator).\n *\n * @static\n * @memberOf _\n * @since 3.2.0\n * @category Function\n * @param {Function} func The function to spread arguments over.\n * @param {number} [start=0] The start position of the spread.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var say = _.spread(function(who, what) {\n * return who + ' says ' + what;\n * });\n *\n * say(['fred', 'hello']);\n * // => 'fred says hello'\n *\n * var numbers = Promise.all([\n * Promise.resolve(40),\n * Promise.resolve(36)\n * ]);\n *\n * numbers.then(_.spread(function(x, y) {\n * return x + y;\n * }));\n * // => a Promise of 76\n */\n function spread(func, start) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n start = start == null ? 0 : nativeMax(toInteger(start), 0);\n return baseRest(function(args) {\n var array = args[start],\n otherArgs = castSlice(args, 0, start);\n\n if (array) {\n arrayPush(otherArgs, array);\n }\n return apply(func, this, otherArgs);\n });\n }\n\n /**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\n function throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n }\n\n /**\n * Creates a function that accepts up to one argument, ignoring any\n * additional arguments.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n * @example\n *\n * _.map(['6', '8', '10'], _.unary(parseInt));\n * // => [6, 8, 10]\n */\n function unary(func) {\n return ary(func, 1);\n }\n\n /**\n * Creates a function that provides `value` to `wrapper` as its first\n * argument. Any additional arguments provided to the function are appended\n * to those provided to the `wrapper`. The wrapper is invoked with the `this`\n * binding of the created function.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {*} value The value to wrap.\n * @param {Function} [wrapper=identity] The wrapper function.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var p = _.wrap(_.escape, function(func, text) {\n * return '

' + func(text) + '

';\n * });\n *\n * p('fred, barney, & pebbles');\n * // => '

fred, barney, & pebbles

'\n */\n function wrap(value, wrapper) {\n return partial(castFunction(wrapper), value);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Casts `value` as an array if it's not one.\n *\n * @static\n * @memberOf _\n * @since 4.4.0\n * @category Lang\n * @param {*} value The value to inspect.\n * @returns {Array} Returns the cast array.\n * @example\n *\n * _.castArray(1);\n * // => [1]\n *\n * _.castArray({ 'a': 1 });\n * // => [{ 'a': 1 }]\n *\n * _.castArray('abc');\n * // => ['abc']\n *\n * _.castArray(null);\n * // => [null]\n *\n * _.castArray(undefined);\n * // => [undefined]\n *\n * _.castArray();\n * // => []\n *\n * var array = [1, 2, 3];\n * console.log(_.castArray(array) === array);\n * // => true\n */\n function castArray() {\n if (!arguments.length) {\n return [];\n }\n var value = arguments[0];\n return isArray(value) ? value : [value];\n }\n\n /**\n * Creates a shallow clone of `value`.\n *\n * **Note:** This method is loosely based on the\n * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)\n * and supports cloning arrays, array buffers, booleans, date objects, maps,\n * numbers, `Object` objects, regexes, sets, strings, symbols, and typed\n * arrays. The own enumerable properties of `arguments` objects are cloned\n * as plain objects. An empty object is returned for uncloneable values such\n * as error objects, functions, DOM nodes, and WeakMaps.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to clone.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeep\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var shallow = _.clone(objects);\n * console.log(shallow[0] === objects[0]);\n * // => true\n */\n function clone(value) {\n return baseClone(value, CLONE_SYMBOLS_FLAG);\n }\n\n /**\n * This method is like `_.clone` except that it accepts `customizer` which\n * is invoked to produce the cloned value. If `customizer` returns `undefined`,\n * cloning is handled by the method instead. The `customizer` is invoked with\n * up to four arguments; (value [, index|key, object, stack]).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to clone.\n * @param {Function} [customizer] The function to customize cloning.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeepWith\n * @example\n *\n * function customizer(value) {\n * if (_.isElement(value)) {\n * return value.cloneNode(false);\n * }\n * }\n *\n * var el = _.cloneWith(document.body, customizer);\n *\n * console.log(el === document.body);\n * // => false\n * console.log(el.nodeName);\n * // => 'BODY'\n * console.log(el.childNodes.length);\n * // => 0\n */\n function cloneWith(value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);\n }\n\n /**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\n function cloneDeep(value) {\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\n }\n\n /**\n * This method is like `_.cloneWith` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @param {Function} [customizer] The function to customize cloning.\n * @returns {*} Returns the deep cloned value.\n * @see _.cloneWith\n * @example\n *\n * function customizer(value) {\n * if (_.isElement(value)) {\n * return value.cloneNode(true);\n * }\n * }\n *\n * var el = _.cloneDeepWith(document.body, customizer);\n *\n * console.log(el === document.body);\n * // => false\n * console.log(el.nodeName);\n * // => 'BODY'\n * console.log(el.childNodes.length);\n * // => 20\n */\n function cloneDeepWith(value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);\n }\n\n /**\n * Checks if `object` conforms to `source` by invoking the predicate\n * properties of `source` with the corresponding property values of `object`.\n *\n * **Note:** This method is equivalent to `_.conforms` when `source` is\n * partially applied.\n *\n * @static\n * @memberOf _\n * @since 4.14.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property predicates to conform to.\n * @returns {boolean} Returns `true` if `object` conforms, else `false`.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n *\n * _.conformsTo(object, { 'b': function(n) { return n > 1; } });\n * // => true\n *\n * _.conformsTo(object, { 'b': function(n) { return n > 2; } });\n * // => false\n */\n function conformsTo(object, source) {\n return source == null || baseConformsTo(object, source, keys(source));\n }\n\n /**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\n function eq(value, other) {\n return value === other || (value !== value && other !== other);\n }\n\n /**\n * Checks if `value` is greater than `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n * @see _.lt\n * @example\n *\n * _.gt(3, 1);\n * // => true\n *\n * _.gt(3, 3);\n * // => false\n *\n * _.gt(1, 3);\n * // => false\n */\n var gt = createRelationalOperation(baseGt);\n\n /**\n * Checks if `value` is greater than or equal to `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than or equal to\n * `other`, else `false`.\n * @see _.lte\n * @example\n *\n * _.gte(3, 1);\n * // => true\n *\n * _.gte(3, 3);\n * // => true\n *\n * _.gte(1, 3);\n * // => false\n */\n var gte = createRelationalOperation(function(value, other) {\n return value >= other;\n });\n\n /**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\n var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n };\n\n /**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\n var isArray = Array.isArray;\n\n /**\n * Checks if `value` is classified as an `ArrayBuffer` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.\n * @example\n *\n * _.isArrayBuffer(new ArrayBuffer(2));\n * // => true\n *\n * _.isArrayBuffer(new Array(2));\n * // => false\n */\n var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;\n\n /**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\n function isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n }\n\n /**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\n function isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n }\n\n /**\n * Checks if `value` is classified as a boolean primitive or object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.\n * @example\n *\n * _.isBoolean(false);\n * // => true\n *\n * _.isBoolean(null);\n * // => false\n */\n function isBoolean(value) {\n return value === true || value === false ||\n (isObjectLike(value) && baseGetTag(value) == boolTag);\n }\n\n /**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\n var isBuffer = nativeIsBuffer || stubFalse;\n\n /**\n * Checks if `value` is classified as a `Date` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a date object, else `false`.\n * @example\n *\n * _.isDate(new Date);\n * // => true\n *\n * _.isDate('Mon April 23 2012');\n * // => false\n */\n var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;\n\n /**\n * Checks if `value` is likely a DOM element.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.\n * @example\n *\n * _.isElement(document.body);\n * // => true\n *\n * _.isElement('');\n * // => false\n */\n function isElement(value) {\n return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);\n }\n\n /**\n * Checks if `value` is an empty object, collection, map, or set.\n *\n * Objects are considered empty if they have no own enumerable string keyed\n * properties.\n *\n * Array-like values such as `arguments` objects, arrays, buffers, strings, or\n * jQuery-like collections are considered empty if they have a `length` of `0`.\n * Similarly, maps and sets are considered empty if they have a `size` of `0`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is empty, else `false`.\n * @example\n *\n * _.isEmpty(null);\n * // => true\n *\n * _.isEmpty(true);\n * // => true\n *\n * _.isEmpty(1);\n * // => true\n *\n * _.isEmpty([1, 2, 3]);\n * // => false\n *\n * _.isEmpty({ 'a': 1 });\n * // => false\n */\n function isEmpty(value) {\n if (value == null) {\n return true;\n }\n if (isArrayLike(value) &&\n (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||\n isBuffer(value) || isTypedArray(value) || isArguments(value))) {\n return !value.length;\n }\n var tag = getTag(value);\n if (tag == mapTag || tag == setTag) {\n return !value.size;\n }\n if (isPrototype(value)) {\n return !baseKeys(value).length;\n }\n for (var key in value) {\n if (hasOwnProperty.call(value, key)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * Performs a deep comparison between two values to determine if they are\n * equivalent.\n *\n * **Note:** This method supports comparing arrays, array buffers, booleans,\n * date objects, error objects, maps, numbers, `Object` objects, regexes,\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\n * by their own, not inherited, enumerable properties. Functions and DOM\n * nodes are compared by strict equality, i.e. `===`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.isEqual(object, other);\n * // => true\n *\n * object === other;\n * // => false\n */\n function isEqual(value, other) {\n return baseIsEqual(value, other);\n }\n\n /**\n * This method is like `_.isEqual` except that it accepts `customizer` which\n * is invoked to compare values. If `customizer` returns `undefined`, comparisons\n * are handled by the method instead. The `customizer` is invoked with up to\n * six arguments: (objValue, othValue [, index|key, object, other, stack]).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * function isGreeting(value) {\n * return /^h(?:i|ello)$/.test(value);\n * }\n *\n * function customizer(objValue, othValue) {\n * if (isGreeting(objValue) && isGreeting(othValue)) {\n * return true;\n * }\n * }\n *\n * var array = ['hello', 'goodbye'];\n * var other = ['hi', 'goodbye'];\n *\n * _.isEqualWith(array, other, customizer);\n * // => true\n */\n function isEqualWith(value, other, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n var result = customizer ? customizer(value, other) : undefined;\n return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result;\n }\n\n /**\n * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,\n * `SyntaxError`, `TypeError`, or `URIError` object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an error object, else `false`.\n * @example\n *\n * _.isError(new Error);\n * // => true\n *\n * _.isError(Error);\n * // => false\n */\n function isError(value) {\n if (!isObjectLike(value)) {\n return false;\n }\n var tag = baseGetTag(value);\n return tag == errorTag || tag == domExcTag ||\n (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value));\n }\n\n /**\n * Checks if `value` is a finite primitive number.\n *\n * **Note:** This method is based on\n * [`Number.isFinite`](https://mdn.io/Number/isFinite).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.\n * @example\n *\n * _.isFinite(3);\n * // => true\n *\n * _.isFinite(Number.MIN_VALUE);\n * // => true\n *\n * _.isFinite(Infinity);\n * // => false\n *\n * _.isFinite('3');\n * // => false\n */\n function isFinite(value) {\n return typeof value == 'number' && nativeIsFinite(value);\n }\n\n /**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\n function isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n }\n\n /**\n * Checks if `value` is an integer.\n *\n * **Note:** This method is based on\n * [`Number.isInteger`](https://mdn.io/Number/isInteger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an integer, else `false`.\n * @example\n *\n * _.isInteger(3);\n * // => true\n *\n * _.isInteger(Number.MIN_VALUE);\n * // => false\n *\n * _.isInteger(Infinity);\n * // => false\n *\n * _.isInteger('3');\n * // => false\n */\n function isInteger(value) {\n return typeof value == 'number' && value == toInteger(value);\n }\n\n /**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\n function isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n }\n\n /**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\n function isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n }\n\n /**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\n function isObjectLike(value) {\n return value != null && typeof value == 'object';\n }\n\n /**\n * Checks if `value` is classified as a `Map` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n * @example\n *\n * _.isMap(new Map);\n * // => true\n *\n * _.isMap(new WeakMap);\n * // => false\n */\n var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\n\n /**\n * Performs a partial deep comparison between `object` and `source` to\n * determine if `object` contains equivalent property values.\n *\n * **Note:** This method is equivalent to `_.matches` when `source` is\n * partially applied.\n *\n * Partial comparisons will match empty array and empty object `source`\n * values against any array or object value, respectively. See `_.isEqual`\n * for a list of supported value comparisons.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n *\n * _.isMatch(object, { 'b': 2 });\n * // => true\n *\n * _.isMatch(object, { 'b': 1 });\n * // => false\n */\n function isMatch(object, source) {\n return object === source || baseIsMatch(object, source, getMatchData(source));\n }\n\n /**\n * This method is like `_.isMatch` except that it accepts `customizer` which\n * is invoked to compare values. If `customizer` returns `undefined`, comparisons\n * are handled by the method instead. The `customizer` is invoked with five\n * arguments: (objValue, srcValue, index|key, object, source).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n * @example\n *\n * function isGreeting(value) {\n * return /^h(?:i|ello)$/.test(value);\n * }\n *\n * function customizer(objValue, srcValue) {\n * if (isGreeting(objValue) && isGreeting(srcValue)) {\n * return true;\n * }\n * }\n *\n * var object = { 'greeting': 'hello' };\n * var source = { 'greeting': 'hi' };\n *\n * _.isMatchWith(object, source, customizer);\n * // => true\n */\n function isMatchWith(object, source, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return baseIsMatch(object, source, getMatchData(source), customizer);\n }\n\n /**\n * Checks if `value` is `NaN`.\n *\n * **Note:** This method is based on\n * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as\n * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for\n * `undefined` and other non-number values.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n * @example\n *\n * _.isNaN(NaN);\n * // => true\n *\n * _.isNaN(new Number(NaN));\n * // => true\n *\n * isNaN(undefined);\n * // => true\n *\n * _.isNaN(undefined);\n * // => false\n */\n function isNaN(value) {\n // An `NaN` primitive is the only value that is not equal to itself.\n // Perform the `toStringTag` check first to avoid errors with some\n // ActiveX objects in IE.\n return isNumber(value) && value != +value;\n }\n\n /**\n * Checks if `value` is a pristine native function.\n *\n * **Note:** This method can't reliably detect native functions in the presence\n * of the core-js package because core-js circumvents this kind of detection.\n * Despite multiple requests, the core-js maintainer has made it clear: any\n * attempt to fix the detection will be obstructed. As a result, we're left\n * with little choice but to throw an error. Unfortunately, this also affects\n * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),\n * which rely on core-js.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n * @example\n *\n * _.isNative(Array.prototype.push);\n * // => true\n *\n * _.isNative(_);\n * // => false\n */\n function isNative(value) {\n if (isMaskable(value)) {\n throw new Error(CORE_ERROR_TEXT);\n }\n return baseIsNative(value);\n }\n\n /**\n * Checks if `value` is `null`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `null`, else `false`.\n * @example\n *\n * _.isNull(null);\n * // => true\n *\n * _.isNull(void 0);\n * // => false\n */\n function isNull(value) {\n return value === null;\n }\n\n /**\n * Checks if `value` is `null` or `undefined`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is nullish, else `false`.\n * @example\n *\n * _.isNil(null);\n * // => true\n *\n * _.isNil(void 0);\n * // => true\n *\n * _.isNil(NaN);\n * // => false\n */\n function isNil(value) {\n return value == null;\n }\n\n /**\n * Checks if `value` is classified as a `Number` primitive or object.\n *\n * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are\n * classified as numbers, use the `_.isFinite` method.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a number, else `false`.\n * @example\n *\n * _.isNumber(3);\n * // => true\n *\n * _.isNumber(Number.MIN_VALUE);\n * // => true\n *\n * _.isNumber(Infinity);\n * // => true\n *\n * _.isNumber('3');\n * // => false\n */\n function isNumber(value) {\n return typeof value == 'number' ||\n (isObjectLike(value) && baseGetTag(value) == numberTag);\n }\n\n /**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\n function isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n }\n\n /**\n * Checks if `value` is classified as a `RegExp` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\n * @example\n *\n * _.isRegExp(/abc/);\n * // => true\n *\n * _.isRegExp('/abc/');\n * // => false\n */\n var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;\n\n /**\n * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754\n * double precision number which isn't the result of a rounded unsafe integer.\n *\n * **Note:** This method is based on\n * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.\n * @example\n *\n * _.isSafeInteger(3);\n * // => true\n *\n * _.isSafeInteger(Number.MIN_VALUE);\n * // => false\n *\n * _.isSafeInteger(Infinity);\n * // => false\n *\n * _.isSafeInteger('3');\n * // => false\n */\n function isSafeInteger(value) {\n return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;\n }\n\n /**\n * Checks if `value` is classified as a `Set` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n * @example\n *\n * _.isSet(new Set);\n * // => true\n *\n * _.isSet(new WeakSet);\n * // => false\n */\n var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\n\n /**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\n function isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n }\n\n /**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\n function isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n }\n\n /**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\n var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\n /**\n * Checks if `value` is `undefined`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.\n * @example\n *\n * _.isUndefined(void 0);\n * // => true\n *\n * _.isUndefined(null);\n * // => false\n */\n function isUndefined(value) {\n return value === undefined;\n }\n\n /**\n * Checks if `value` is classified as a `WeakMap` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a weak map, else `false`.\n * @example\n *\n * _.isWeakMap(new WeakMap);\n * // => true\n *\n * _.isWeakMap(new Map);\n * // => false\n */\n function isWeakMap(value) {\n return isObjectLike(value) && getTag(value) == weakMapTag;\n }\n\n /**\n * Checks if `value` is classified as a `WeakSet` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a weak set, else `false`.\n * @example\n *\n * _.isWeakSet(new WeakSet);\n * // => true\n *\n * _.isWeakSet(new Set);\n * // => false\n */\n function isWeakSet(value) {\n return isObjectLike(value) && baseGetTag(value) == weakSetTag;\n }\n\n /**\n * Checks if `value` is less than `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than `other`,\n * else `false`.\n * @see _.gt\n * @example\n *\n * _.lt(1, 3);\n * // => true\n *\n * _.lt(3, 3);\n * // => false\n *\n * _.lt(3, 1);\n * // => false\n */\n var lt = createRelationalOperation(baseLt);\n\n /**\n * Checks if `value` is less than or equal to `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than or equal to\n * `other`, else `false`.\n * @see _.gte\n * @example\n *\n * _.lte(1, 3);\n * // => true\n *\n * _.lte(3, 3);\n * // => true\n *\n * _.lte(3, 1);\n * // => false\n */\n var lte = createRelationalOperation(function(value, other) {\n return value <= other;\n });\n\n /**\n * Converts `value` to an array.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Array} Returns the converted array.\n * @example\n *\n * _.toArray({ 'a': 1, 'b': 2 });\n * // => [1, 2]\n *\n * _.toArray('abc');\n * // => ['a', 'b', 'c']\n *\n * _.toArray(1);\n * // => []\n *\n * _.toArray(null);\n * // => []\n */\n function toArray(value) {\n if (!value) {\n return [];\n }\n if (isArrayLike(value)) {\n return isString(value) ? stringToArray(value) : copyArray(value);\n }\n if (symIterator && value[symIterator]) {\n return iteratorToArray(value[symIterator]());\n }\n var tag = getTag(value),\n func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values);\n\n return func(value);\n }\n\n /**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\n function toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber(value);\n if (value === INFINITY || value === -INFINITY) {\n var sign = (value < 0 ? -1 : 1);\n return sign * MAX_INTEGER;\n }\n return value === value ? value : 0;\n }\n\n /**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\n function toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n }\n\n /**\n * Converts `value` to an integer suitable for use as the length of an\n * array-like object.\n *\n * **Note:** This method is based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toLength(3.2);\n * // => 3\n *\n * _.toLength(Number.MIN_VALUE);\n * // => 0\n *\n * _.toLength(Infinity);\n * // => 4294967295\n *\n * _.toLength('3.2');\n * // => 3\n */\n function toLength(value) {\n return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;\n }\n\n /**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\n function toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n }\n\n /**\n * Converts `value` to a plain object flattening inherited enumerable string\n * keyed properties of `value` to own properties of the plain object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Object} Returns the converted plain object.\n * @example\n *\n * function Foo() {\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.assign({ 'a': 1 }, new Foo);\n * // => { 'a': 1, 'b': 2 }\n *\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n * // => { 'a': 1, 'b': 2, 'c': 3 }\n */\n function toPlainObject(value) {\n return copyObject(value, keysIn(value));\n }\n\n /**\n * Converts `value` to a safe integer. A safe integer can be compared and\n * represented correctly.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toSafeInteger(3.2);\n * // => 3\n *\n * _.toSafeInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toSafeInteger(Infinity);\n * // => 9007199254740991\n *\n * _.toSafeInteger('3.2');\n * // => 3\n */\n function toSafeInteger(value) {\n return value\n ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER)\n : (value === 0 ? value : 0);\n }\n\n /**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\n function toString(value) {\n return value == null ? '' : baseToString(value);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Assigns own enumerable string keyed properties of source objects to the\n * destination object. Source objects are applied from left to right.\n * Subsequent sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object` and is loosely based on\n * [`Object.assign`](https://mdn.io/Object/assign).\n *\n * @static\n * @memberOf _\n * @since 0.10.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.assignIn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * function Bar() {\n * this.c = 3;\n * }\n *\n * Foo.prototype.b = 2;\n * Bar.prototype.d = 4;\n *\n * _.assign({ 'a': 0 }, new Foo, new Bar);\n * // => { 'a': 1, 'c': 3 }\n */\n var assign = createAssigner(function(object, source) {\n if (isPrototype(source) || isArrayLike(source)) {\n copyObject(source, keys(source), object);\n return;\n }\n for (var key in source) {\n if (hasOwnProperty.call(source, key)) {\n assignValue(object, key, source[key]);\n }\n }\n });\n\n /**\n * This method is like `_.assign` except that it iterates over own and\n * inherited source properties.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias extend\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.assign\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * function Bar() {\n * this.c = 3;\n * }\n *\n * Foo.prototype.b = 2;\n * Bar.prototype.d = 4;\n *\n * _.assignIn({ 'a': 0 }, new Foo, new Bar);\n * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }\n */\n var assignIn = createAssigner(function(object, source) {\n copyObject(source, keysIn(source), object);\n });\n\n /**\n * This method is like `_.assignIn` except that it accepts `customizer`\n * which is invoked to produce the assigned values. If `customizer` returns\n * `undefined`, assignment is handled by the method instead. The `customizer`\n * is invoked with five arguments: (objValue, srcValue, key, object, source).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias extendWith\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @see _.assignWith\n * @example\n *\n * function customizer(objValue, srcValue) {\n * return _.isUndefined(objValue) ? srcValue : objValue;\n * }\n *\n * var defaults = _.partialRight(_.assignInWith, customizer);\n *\n * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {\n copyObject(source, keysIn(source), object, customizer);\n });\n\n /**\n * This method is like `_.assign` except that it accepts `customizer`\n * which is invoked to produce the assigned values. If `customizer` returns\n * `undefined`, assignment is handled by the method instead. The `customizer`\n * is invoked with five arguments: (objValue, srcValue, key, object, source).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @see _.assignInWith\n * @example\n *\n * function customizer(objValue, srcValue) {\n * return _.isUndefined(objValue) ? srcValue : objValue;\n * }\n *\n * var defaults = _.partialRight(_.assignWith, customizer);\n *\n * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var assignWith = createAssigner(function(object, source, srcIndex, customizer) {\n copyObject(source, keys(source), object, customizer);\n });\n\n /**\n * Creates an array of values corresponding to `paths` of `object`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Array} Returns the picked values.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };\n *\n * _.at(object, ['a[0].b.c', 'a[1]']);\n * // => [3, 4]\n */\n var at = flatRest(baseAt);\n\n /**\n * Creates an object that inherits from the `prototype` object. If a\n * `properties` object is given, its own enumerable string keyed properties\n * are assigned to the created object.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Object\n * @param {Object} prototype The object to inherit from.\n * @param {Object} [properties] The properties to assign to the object.\n * @returns {Object} Returns the new object.\n * @example\n *\n * function Shape() {\n * this.x = 0;\n * this.y = 0;\n * }\n *\n * function Circle() {\n * Shape.call(this);\n * }\n *\n * Circle.prototype = _.create(Shape.prototype, {\n * 'constructor': Circle\n * });\n *\n * var circle = new Circle;\n * circle instanceof Circle;\n * // => true\n *\n * circle instanceof Shape;\n * // => true\n */\n function create(prototype, properties) {\n var result = baseCreate(prototype);\n return properties == null ? result : baseAssign(result, properties);\n }\n\n /**\n * Assigns own and inherited enumerable string keyed properties of source\n * objects to the destination object for all destination properties that\n * resolve to `undefined`. Source objects are applied from left to right.\n * Once a property is set, additional values of the same property are ignored.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaultsDeep\n * @example\n *\n * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var defaults = baseRest(function(args) {\n args.push(undefined, customDefaultsAssignIn);\n return apply(assignInWith, undefined, args);\n });\n\n /**\n * This method is like `_.defaults` except that it recursively assigns\n * default properties.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 3.10.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaults\n * @example\n *\n * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });\n * // => { 'a': { 'b': 2, 'c': 3 } }\n */\n var defaultsDeep = baseRest(function(args) {\n args.push(undefined, customDefaultsMerge);\n return apply(mergeWith, undefined, args);\n });\n\n /**\n * This method is like `_.find` except that it returns the key of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {string|undefined} Returns the key of the matched element,\n * else `undefined`.\n * @example\n *\n * var users = {\n * 'barney': { 'age': 36, 'active': true },\n * 'fred': { 'age': 40, 'active': false },\n * 'pebbles': { 'age': 1, 'active': true }\n * };\n *\n * _.findKey(users, function(o) { return o.age < 40; });\n * // => 'barney' (iteration order is not guaranteed)\n *\n * // The `_.matches` iteratee shorthand.\n * _.findKey(users, { 'age': 1, 'active': true });\n * // => 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findKey(users, ['active', false]);\n * // => 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.findKey(users, 'active');\n * // => 'barney'\n */\n function findKey(object, predicate) {\n return baseFindKey(object, getIteratee(predicate, 3), baseForOwn);\n }\n\n /**\n * This method is like `_.findKey` except that it iterates over elements of\n * a collection in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {string|undefined} Returns the key of the matched element,\n * else `undefined`.\n * @example\n *\n * var users = {\n * 'barney': { 'age': 36, 'active': true },\n * 'fred': { 'age': 40, 'active': false },\n * 'pebbles': { 'age': 1, 'active': true }\n * };\n *\n * _.findLastKey(users, function(o) { return o.age < 40; });\n * // => returns 'pebbles' assuming `_.findKey` returns 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.findLastKey(users, { 'age': 36, 'active': true });\n * // => 'barney'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findLastKey(users, ['active', false]);\n * // => 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.findLastKey(users, 'active');\n * // => 'pebbles'\n */\n function findLastKey(object, predicate) {\n return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight);\n }\n\n /**\n * Iterates over own and inherited enumerable string keyed properties of an\n * object and invokes `iteratee` for each property. The iteratee is invoked\n * with three arguments: (value, key, object). Iteratee functions may exit\n * iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 0.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forInRight\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forIn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).\n */\n function forIn(object, iteratee) {\n return object == null\n ? object\n : baseFor(object, getIteratee(iteratee, 3), keysIn);\n }\n\n /**\n * This method is like `_.forIn` except that it iterates over properties of\n * `object` in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forIn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forInRight(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.\n */\n function forInRight(object, iteratee) {\n return object == null\n ? object\n : baseForRight(object, getIteratee(iteratee, 3), keysIn);\n }\n\n /**\n * Iterates over own enumerable string keyed properties of an object and\n * invokes `iteratee` for each property. The iteratee is invoked with three\n * arguments: (value, key, object). Iteratee functions may exit iteration\n * early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 0.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forOwnRight\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forOwn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\n function forOwn(object, iteratee) {\n return object && baseForOwn(object, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.forOwn` except that it iterates over properties of\n * `object` in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forOwn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forOwnRight(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.\n */\n function forOwnRight(object, iteratee) {\n return object && baseForOwnRight(object, getIteratee(iteratee, 3));\n }\n\n /**\n * Creates an array of function property names from own enumerable properties\n * of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to inspect.\n * @returns {Array} Returns the function names.\n * @see _.functionsIn\n * @example\n *\n * function Foo() {\n * this.a = _.constant('a');\n * this.b = _.constant('b');\n * }\n *\n * Foo.prototype.c = _.constant('c');\n *\n * _.functions(new Foo);\n * // => ['a', 'b']\n */\n function functions(object) {\n return object == null ? [] : baseFunctions(object, keys(object));\n }\n\n /**\n * Creates an array of function property names from own and inherited\n * enumerable properties of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @returns {Array} Returns the function names.\n * @see _.functions\n * @example\n *\n * function Foo() {\n * this.a = _.constant('a');\n * this.b = _.constant('b');\n * }\n *\n * Foo.prototype.c = _.constant('c');\n *\n * _.functionsIn(new Foo);\n * // => ['a', 'b', 'c']\n */\n function functionsIn(object) {\n return object == null ? [] : baseFunctions(object, keysIn(object));\n }\n\n /**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\n function get(object, path, defaultValue) {\n var result = object == null ? undefined : baseGet(object, path);\n return result === undefined ? defaultValue : result;\n }\n\n /**\n * Checks if `path` is a direct property of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = { 'a': { 'b': 2 } };\n * var other = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.has(object, 'a');\n * // => true\n *\n * _.has(object, 'a.b');\n * // => true\n *\n * _.has(object, ['a', 'b']);\n * // => true\n *\n * _.has(other, 'a');\n * // => false\n */\n function has(object, path) {\n return object != null && hasPath(object, path, baseHas);\n }\n\n /**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\n function hasIn(object, path) {\n return object != null && hasPath(object, path, baseHasIn);\n }\n\n /**\n * Creates an object composed of the inverted keys and values of `object`.\n * If `object` contains duplicate values, subsequent values overwrite\n * property assignments of previous values.\n *\n * @static\n * @memberOf _\n * @since 0.7.0\n * @category Object\n * @param {Object} object The object to invert.\n * @returns {Object} Returns the new inverted object.\n * @example\n *\n * var object = { 'a': 1, 'b': 2, 'c': 1 };\n *\n * _.invert(object);\n * // => { '1': 'c', '2': 'b' }\n */\n var invert = createInverter(function(result, value, key) {\n result[value] = key;\n }, constant(identity));\n\n /**\n * This method is like `_.invert` except that the inverted object is generated\n * from the results of running each element of `object` thru `iteratee`. The\n * corresponding inverted value of each inverted key is an array of keys\n * responsible for generating the inverted value. The iteratee is invoked\n * with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.1.0\n * @category Object\n * @param {Object} object The object to invert.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Object} Returns the new inverted object.\n * @example\n *\n * var object = { 'a': 1, 'b': 2, 'c': 1 };\n *\n * _.invertBy(object);\n * // => { '1': ['a', 'c'], '2': ['b'] }\n *\n * _.invertBy(object, function(value) {\n * return 'group' + value;\n * });\n * // => { 'group1': ['a', 'c'], 'group2': ['b'] }\n */\n var invertBy = createInverter(function(result, value, key) {\n if (hasOwnProperty.call(result, value)) {\n result[value].push(key);\n } else {\n result[value] = [key];\n }\n }, getIteratee);\n\n /**\n * Invokes the method at `path` of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the method to invoke.\n * @param {...*} [args] The arguments to invoke the method with.\n * @returns {*} Returns the result of the invoked method.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };\n *\n * _.invoke(object, 'a[0].b.c.slice', 1, 3);\n * // => [2, 3]\n */\n var invoke = baseRest(baseInvoke);\n\n /**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\n function keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n }\n\n /**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\n function keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n }\n\n /**\n * The opposite of `_.mapValues`; this method creates an object with the\n * same values as `object` and keys generated by running each own enumerable\n * string keyed property of `object` thru `iteratee`. The iteratee is invoked\n * with three arguments: (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapValues\n * @example\n *\n * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {\n * return key + value;\n * });\n * // => { 'a1': 1, 'b2': 2 }\n */\n function mapKeys(object, iteratee) {\n var result = {};\n iteratee = getIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, iteratee(value, key, object), value);\n });\n return result;\n }\n\n /**\n * Creates an object with the same keys as `object` and values generated\n * by running each own enumerable string keyed property of `object` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapKeys\n * @example\n *\n * var users = {\n * 'fred': { 'user': 'fred', 'age': 40 },\n * 'pebbles': { 'user': 'pebbles', 'age': 1 }\n * };\n *\n * _.mapValues(users, function(o) { return o.age; });\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n *\n * // The `_.property` iteratee shorthand.\n * _.mapValues(users, 'age');\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n */\n function mapValues(object, iteratee) {\n var result = {};\n iteratee = getIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, key, iteratee(value, key, object));\n });\n return result;\n }\n\n /**\n * This method is like `_.assign` except that it recursively merges own and\n * inherited enumerable string keyed properties of source objects into the\n * destination object. Source properties that resolve to `undefined` are\n * skipped if a destination value exists. Array and plain object properties\n * are merged recursively. Other objects and value types are overridden by\n * assignment. Source objects are applied from left to right. Subsequent\n * sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\n * };\n *\n * var other = {\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\n * };\n *\n * _.merge(object, other);\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\n */\n var merge = createAssigner(function(object, source, srcIndex) {\n baseMerge(object, source, srcIndex);\n });\n\n /**\n * This method is like `_.merge` except that it accepts `customizer` which\n * is invoked to produce the merged values of the destination and source\n * properties. If `customizer` returns `undefined`, merging is handled by the\n * method instead. The `customizer` is invoked with six arguments:\n * (objValue, srcValue, key, object, source, stack).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} customizer The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * function customizer(objValue, srcValue) {\n * if (_.isArray(objValue)) {\n * return objValue.concat(srcValue);\n * }\n * }\n *\n * var object = { 'a': [1], 'b': [2] };\n * var other = { 'a': [3], 'b': [4] };\n *\n * _.mergeWith(object, other, customizer);\n * // => { 'a': [1, 3], 'b': [2, 4] }\n */\n var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {\n baseMerge(object, source, srcIndex, customizer);\n });\n\n /**\n * The opposite of `_.pick`; this method creates an object composed of the\n * own and inherited enumerable property paths of `object` that are not omitted.\n *\n * **Note:** This method is considerably slower than `_.pick`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to omit.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omit(object, ['a', 'c']);\n * // => { 'b': '2' }\n */\n var omit = flatRest(function(object, paths) {\n var result = {};\n if (object == null) {\n return result;\n }\n var isDeep = false;\n paths = arrayMap(paths, function(path) {\n path = castPath(path, object);\n isDeep || (isDeep = path.length > 1);\n return path;\n });\n copyObject(object, getAllKeysIn(object), result);\n if (isDeep) {\n result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);\n }\n var length = paths.length;\n while (length--) {\n baseUnset(result, paths[length]);\n }\n return result;\n });\n\n /**\n * The opposite of `_.pickBy`; this method creates an object composed of\n * the own and inherited enumerable string keyed properties of `object` that\n * `predicate` doesn't return truthy for. The predicate is invoked with two\n * arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omitBy(object, _.isNumber);\n * // => { 'b': '2' }\n */\n function omitBy(object, predicate) {\n return pickBy(object, negate(getIteratee(predicate)));\n }\n\n /**\n * Creates an object composed of the picked `object` properties.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pick(object, ['a', 'c']);\n * // => { 'a': 1, 'c': 3 }\n */\n var pick = flatRest(function(object, paths) {\n return object == null ? {} : basePick(object, paths);\n });\n\n /**\n * Creates an object composed of the `object` properties `predicate` returns\n * truthy for. The predicate is invoked with two arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pickBy(object, _.isNumber);\n * // => { 'a': 1, 'c': 3 }\n */\n function pickBy(object, predicate) {\n if (object == null) {\n return {};\n }\n var props = arrayMap(getAllKeysIn(object), function(prop) {\n return [prop];\n });\n predicate = getIteratee(predicate);\n return basePickBy(object, props, function(value, path) {\n return predicate(value, path[0]);\n });\n }\n\n /**\n * This method is like `_.get` except that if the resolved value is a\n * function it's invoked with the `this` binding of its parent object and\n * its result is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to resolve.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };\n *\n * _.result(object, 'a[0].b.c1');\n * // => 3\n *\n * _.result(object, 'a[0].b.c2');\n * // => 4\n *\n * _.result(object, 'a[0].b.c3', 'default');\n * // => 'default'\n *\n * _.result(object, 'a[0].b.c3', _.constant('default'));\n * // => 'default'\n */\n function result(object, path, defaultValue) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length;\n\n // Ensure the loop is entered when path is empty.\n if (!length) {\n length = 1;\n object = undefined;\n }\n while (++index < length) {\n var value = object == null ? undefined : object[toKey(path[index])];\n if (value === undefined) {\n index = length;\n value = defaultValue;\n }\n object = isFunction(value) ? value.call(object) : value;\n }\n return object;\n }\n\n /**\n * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,\n * it's created. Arrays are created for missing index properties while objects\n * are created for all other missing properties. Use `_.setWith` to customize\n * `path` creation.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.set(object, 'a[0].b.c', 4);\n * console.log(object.a[0].b.c);\n * // => 4\n *\n * _.set(object, ['x', '0', 'y', 'z'], 5);\n * console.log(object.x[0].y.z);\n * // => 5\n */\n function set(object, path, value) {\n return object == null ? object : baseSet(object, path, value);\n }\n\n /**\n * This method is like `_.set` except that it accepts `customizer` which is\n * invoked to produce the objects of `path`. If `customizer` returns `undefined`\n * path creation is handled by the method instead. The `customizer` is invoked\n * with three arguments: (nsValue, key, nsObject).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {};\n *\n * _.setWith(object, '[0][1]', 'a', Object);\n * // => { '0': { '1': 'a' } }\n */\n function setWith(object, path, value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return object == null ? object : baseSet(object, path, value, customizer);\n }\n\n /**\n * Creates an array of own enumerable string keyed-value pairs for `object`\n * which can be consumed by `_.fromPairs`. If `object` is a map or set, its\n * entries are returned.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias entries\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the key-value pairs.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.toPairs(new Foo);\n * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)\n */\n var toPairs = createToPairs(keys);\n\n /**\n * Creates an array of own and inherited enumerable string keyed-value pairs\n * for `object` which can be consumed by `_.fromPairs`. If `object` is a map\n * or set, its entries are returned.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias entriesIn\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the key-value pairs.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.toPairsIn(new Foo);\n * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)\n */\n var toPairsIn = createToPairs(keysIn);\n\n /**\n * An alternative to `_.reduce`; this method transforms `object` to a new\n * `accumulator` object which is the result of running each of its own\n * enumerable string keyed properties thru `iteratee`, with each invocation\n * potentially mutating the `accumulator` object. If `accumulator` is not\n * provided, a new object with the same `[[Prototype]]` will be used. The\n * iteratee is invoked with four arguments: (accumulator, value, key, object).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 1.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The custom accumulator value.\n * @returns {*} Returns the accumulated value.\n * @example\n *\n * _.transform([2, 3, 4], function(result, n) {\n * result.push(n *= n);\n * return n % 2 == 0;\n * }, []);\n * // => [4, 9]\n *\n * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] }\n */\n function transform(object, iteratee, accumulator) {\n var isArr = isArray(object),\n isArrLike = isArr || isBuffer(object) || isTypedArray(object);\n\n iteratee = getIteratee(iteratee, 4);\n if (accumulator == null) {\n var Ctor = object && object.constructor;\n if (isArrLike) {\n accumulator = isArr ? new Ctor : [];\n }\n else if (isObject(object)) {\n accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};\n }\n else {\n accumulator = {};\n }\n }\n (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {\n return iteratee(accumulator, value, index, object);\n });\n return accumulator;\n }\n\n /**\n * Removes the property at `path` of `object`.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 7 } }] };\n * _.unset(object, 'a[0].b.c');\n * // => true\n *\n * console.log(object);\n * // => { 'a': [{ 'b': {} }] };\n *\n * _.unset(object, ['a', '0', 'b', 'c']);\n * // => true\n *\n * console.log(object);\n * // => { 'a': [{ 'b': {} }] };\n */\n function unset(object, path) {\n return object == null ? true : baseUnset(object, path);\n }\n\n /**\n * This method is like `_.set` except that accepts `updater` to produce the\n * value to set. Use `_.updateWith` to customize `path` creation. The `updater`\n * is invoked with one argument: (value).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {Function} updater The function to produce the updated value.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.update(object, 'a[0].b.c', function(n) { return n * n; });\n * console.log(object.a[0].b.c);\n * // => 9\n *\n * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });\n * console.log(object.x[0].y.z);\n * // => 0\n */\n function update(object, path, updater) {\n return object == null ? object : baseUpdate(object, path, castFunction(updater));\n }\n\n /**\n * This method is like `_.update` except that it accepts `customizer` which is\n * invoked to produce the objects of `path`. If `customizer` returns `undefined`\n * path creation is handled by the method instead. The `customizer` is invoked\n * with three arguments: (nsValue, key, nsObject).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {Function} updater The function to produce the updated value.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {};\n *\n * _.updateWith(object, '[0][1]', _.constant('a'), Object);\n * // => { '0': { '1': 'a' } }\n */\n function updateWith(object, path, updater, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);\n }\n\n /**\n * Creates an array of the own enumerable string keyed property values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.values(new Foo);\n * // => [1, 2] (iteration order is not guaranteed)\n *\n * _.values('hi');\n * // => ['h', 'i']\n */\n function values(object) {\n return object == null ? [] : baseValues(object, keys(object));\n }\n\n /**\n * Creates an array of the own and inherited enumerable string keyed property\n * values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.valuesIn(new Foo);\n * // => [1, 2, 3] (iteration order is not guaranteed)\n */\n function valuesIn(object) {\n return object == null ? [] : baseValues(object, keysIn(object));\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Clamps `number` within the inclusive `lower` and `upper` bounds.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Number\n * @param {number} number The number to clamp.\n * @param {number} [lower] The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the clamped number.\n * @example\n *\n * _.clamp(-10, -5, 5);\n * // => -5\n *\n * _.clamp(10, -5, 5);\n * // => 5\n */\n function clamp(number, lower, upper) {\n if (upper === undefined) {\n upper = lower;\n lower = undefined;\n }\n if (upper !== undefined) {\n upper = toNumber(upper);\n upper = upper === upper ? upper : 0;\n }\n if (lower !== undefined) {\n lower = toNumber(lower);\n lower = lower === lower ? lower : 0;\n }\n return baseClamp(toNumber(number), lower, upper);\n }\n\n /**\n * Checks if `n` is between `start` and up to, but not including, `end`. If\n * `end` is not specified, it's set to `start` with `start` then set to `0`.\n * If `start` is greater than `end` the params are swapped to support\n * negative ranges.\n *\n * @static\n * @memberOf _\n * @since 3.3.0\n * @category Number\n * @param {number} number The number to check.\n * @param {number} [start=0] The start of the range.\n * @param {number} end The end of the range.\n * @returns {boolean} Returns `true` if `number` is in the range, else `false`.\n * @see _.range, _.rangeRight\n * @example\n *\n * _.inRange(3, 2, 4);\n * // => true\n *\n * _.inRange(4, 8);\n * // => true\n *\n * _.inRange(4, 2);\n * // => false\n *\n * _.inRange(2, 2);\n * // => false\n *\n * _.inRange(1.2, 2);\n * // => true\n *\n * _.inRange(5.2, 4);\n * // => false\n *\n * _.inRange(-3, -2, -6);\n * // => true\n */\n function inRange(number, start, end) {\n start = toFinite(start);\n if (end === undefined) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n number = toNumber(number);\n return baseInRange(number, start, end);\n }\n\n /**\n * Produces a random number between the inclusive `lower` and `upper` bounds.\n * If only one argument is provided a number between `0` and the given number\n * is returned. If `floating` is `true`, or either `lower` or `upper` are\n * floats, a floating-point number is returned instead of an integer.\n *\n * **Note:** JavaScript follows the IEEE-754 standard for resolving\n * floating-point values which can produce unexpected results.\n *\n * @static\n * @memberOf _\n * @since 0.7.0\n * @category Number\n * @param {number} [lower=0] The lower bound.\n * @param {number} [upper=1] The upper bound.\n * @param {boolean} [floating] Specify returning a floating-point number.\n * @returns {number} Returns the random number.\n * @example\n *\n * _.random(0, 5);\n * // => an integer between 0 and 5\n *\n * _.random(5);\n * // => also an integer between 0 and 5\n *\n * _.random(5, true);\n * // => a floating-point number between 0 and 5\n *\n * _.random(1.2, 5.2);\n * // => a floating-point number between 1.2 and 5.2\n */\n function random(lower, upper, floating) {\n if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) {\n upper = floating = undefined;\n }\n if (floating === undefined) {\n if (typeof upper == 'boolean') {\n floating = upper;\n upper = undefined;\n }\n else if (typeof lower == 'boolean') {\n floating = lower;\n lower = undefined;\n }\n }\n if (lower === undefined && upper === undefined) {\n lower = 0;\n upper = 1;\n }\n else {\n lower = toFinite(lower);\n if (upper === undefined) {\n upper = lower;\n lower = 0;\n } else {\n upper = toFinite(upper);\n }\n }\n if (lower > upper) {\n var temp = lower;\n lower = upper;\n upper = temp;\n }\n if (floating || lower % 1 || upper % 1) {\n var rand = nativeRandom();\n return nativeMin(lower + (rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1)))), upper);\n }\n return baseRandom(lower, upper);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the camel cased string.\n * @example\n *\n * _.camelCase('Foo Bar');\n * // => 'fooBar'\n *\n * _.camelCase('--foo-bar--');\n * // => 'fooBar'\n *\n * _.camelCase('__FOO_BAR__');\n * // => 'fooBar'\n */\n var camelCase = createCompounder(function(result, word, index) {\n word = word.toLowerCase();\n return result + (index ? capitalize(word) : word);\n });\n\n /**\n * Converts the first character of `string` to upper case and the remaining\n * to lower case.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to capitalize.\n * @returns {string} Returns the capitalized string.\n * @example\n *\n * _.capitalize('FRED');\n * // => 'Fred'\n */\n function capitalize(string) {\n return upperFirst(toString(string).toLowerCase());\n }\n\n /**\n * Deburrs `string` by converting\n * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)\n * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)\n * letters to basic Latin letters and removing\n * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to deburr.\n * @returns {string} Returns the deburred string.\n * @example\n *\n * _.deburr('déjà vu');\n * // => 'deja vu'\n */\n function deburr(string) {\n string = toString(string);\n return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');\n }\n\n /**\n * Checks if `string` ends with the given target string.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {string} [target] The string to search for.\n * @param {number} [position=string.length] The position to search up to.\n * @returns {boolean} Returns `true` if `string` ends with `target`,\n * else `false`.\n * @example\n *\n * _.endsWith('abc', 'c');\n * // => true\n *\n * _.endsWith('abc', 'b');\n * // => false\n *\n * _.endsWith('abc', 'b', 2);\n * // => true\n */\n function endsWith(string, target, position) {\n string = toString(string);\n target = baseToString(target);\n\n var length = string.length;\n position = position === undefined\n ? length\n : baseClamp(toInteger(position), 0, length);\n\n var end = position;\n position -= target.length;\n return position >= 0 && string.slice(position, end) == target;\n }\n\n /**\n * Converts the characters \"&\", \"<\", \">\", '\"', and \"'\" in `string` to their\n * corresponding HTML entities.\n *\n * **Note:** No other characters are escaped. To escape additional\n * characters use a third-party library like [_he_](https://mths.be/he).\n *\n * Though the \">\" character is escaped for symmetry, characters like\n * \">\" and \"/\" don't need escaping in HTML and have no special meaning\n * unless they're part of a tag or unquoted attribute value. See\n * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)\n * (under \"semi-related fun fact\") for more details.\n *\n * When working with HTML you should always\n * [quote attribute values](http://wonko.com/post/html-escaping) to reduce\n * XSS vectors.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category String\n * @param {string} [string=''] The string to escape.\n * @returns {string} Returns the escaped string.\n * @example\n *\n * _.escape('fred, barney, & pebbles');\n * // => 'fred, barney, & pebbles'\n */\n function escape(string) {\n string = toString(string);\n return (string && reHasUnescapedHtml.test(string))\n ? string.replace(reUnescapedHtml, escapeHtmlChar)\n : string;\n }\n\n /**\n * Escapes the `RegExp` special characters \"^\", \"$\", \"\\\", \".\", \"*\", \"+\",\n * \"?\", \"(\", \")\", \"[\", \"]\", \"{\", \"}\", and \"|\" in `string`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to escape.\n * @returns {string} Returns the escaped string.\n * @example\n *\n * _.escapeRegExp('[lodash](https://lodash.com/)');\n * // => '\\[lodash\\]\\(https://lodash\\.com/\\)'\n */\n function escapeRegExp(string) {\n string = toString(string);\n return (string && reHasRegExpChar.test(string))\n ? string.replace(reRegExpChar, '\\\\$&')\n : string;\n }\n\n /**\n * Converts `string` to\n * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the kebab cased string.\n * @example\n *\n * _.kebabCase('Foo Bar');\n * // => 'foo-bar'\n *\n * _.kebabCase('fooBar');\n * // => 'foo-bar'\n *\n * _.kebabCase('__FOO_BAR__');\n * // => 'foo-bar'\n */\n var kebabCase = createCompounder(function(result, word, index) {\n return result + (index ? '-' : '') + word.toLowerCase();\n });\n\n /**\n * Converts `string`, as space separated words, to lower case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the lower cased string.\n * @example\n *\n * _.lowerCase('--Foo-Bar--');\n * // => 'foo bar'\n *\n * _.lowerCase('fooBar');\n * // => 'foo bar'\n *\n * _.lowerCase('__FOO_BAR__');\n * // => 'foo bar'\n */\n var lowerCase = createCompounder(function(result, word, index) {\n return result + (index ? ' ' : '') + word.toLowerCase();\n });\n\n /**\n * Converts the first character of `string` to lower case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.lowerFirst('Fred');\n * // => 'fred'\n *\n * _.lowerFirst('FRED');\n * // => 'fRED'\n */\n var lowerFirst = createCaseFirst('toLowerCase');\n\n /**\n * Pads `string` on the left and right sides if it's shorter than `length`.\n * Padding characters are truncated if they can't be evenly divided by `length`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.pad('abc', 8);\n * // => ' abc '\n *\n * _.pad('abc', 8, '_-');\n * // => '_-abc_-_'\n *\n * _.pad('abc', 3);\n * // => 'abc'\n */\n function pad(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n if (!length || strLength >= length) {\n return string;\n }\n var mid = (length - strLength) / 2;\n return (\n createPadding(nativeFloor(mid), chars) +\n string +\n createPadding(nativeCeil(mid), chars)\n );\n }\n\n /**\n * Pads `string` on the right side if it's shorter than `length`. Padding\n * characters are truncated if they exceed `length`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.padEnd('abc', 6);\n * // => 'abc '\n *\n * _.padEnd('abc', 6, '_-');\n * // => 'abc_-_'\n *\n * _.padEnd('abc', 3);\n * // => 'abc'\n */\n function padEnd(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n return (length && strLength < length)\n ? (string + createPadding(length - strLength, chars))\n : string;\n }\n\n /**\n * Pads `string` on the left side if it's shorter than `length`. Padding\n * characters are truncated if they exceed `length`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.padStart('abc', 6);\n * // => ' abc'\n *\n * _.padStart('abc', 6, '_-');\n * // => '_-_abc'\n *\n * _.padStart('abc', 3);\n * // => 'abc'\n */\n function padStart(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n return (length && strLength < length)\n ? (createPadding(length - strLength, chars) + string)\n : string;\n }\n\n /**\n * Converts `string` to an integer of the specified radix. If `radix` is\n * `undefined` or `0`, a `radix` of `10` is used unless `value` is a\n * hexadecimal, in which case a `radix` of `16` is used.\n *\n * **Note:** This method aligns with the\n * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category String\n * @param {string} string The string to convert.\n * @param {number} [radix=10] The radix to interpret `value` by.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.parseInt('08');\n * // => 8\n *\n * _.map(['6', '08', '10'], _.parseInt);\n * // => [6, 8, 10]\n */\n function parseInt(string, radix, guard) {\n if (guard || radix == null) {\n radix = 0;\n } else if (radix) {\n radix = +radix;\n }\n return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0);\n }\n\n /**\n * Repeats the given string `n` times.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to repeat.\n * @param {number} [n=1] The number of times to repeat the string.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {string} Returns the repeated string.\n * @example\n *\n * _.repeat('*', 3);\n * // => '***'\n *\n * _.repeat('abc', 2);\n * // => 'abcabc'\n *\n * _.repeat('abc', 0);\n * // => ''\n */\n function repeat(string, n, guard) {\n if ((guard ? isIterateeCall(string, n, guard) : n === undefined)) {\n n = 1;\n } else {\n n = toInteger(n);\n }\n return baseRepeat(toString(string), n);\n }\n\n /**\n * Replaces matches for `pattern` in `string` with `replacement`.\n *\n * **Note:** This method is based on\n * [`String#replace`](https://mdn.io/String/replace).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to modify.\n * @param {RegExp|string} pattern The pattern to replace.\n * @param {Function|string} replacement The match replacement.\n * @returns {string} Returns the modified string.\n * @example\n *\n * _.replace('Hi Fred', 'Fred', 'Barney');\n * // => 'Hi Barney'\n */\n function replace() {\n var args = arguments,\n string = toString(args[0]);\n\n return args.length < 3 ? string : string.replace(args[1], args[2]);\n }\n\n /**\n * Converts `string` to\n * [snake case](https://en.wikipedia.org/wiki/Snake_case).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the snake cased string.\n * @example\n *\n * _.snakeCase('Foo Bar');\n * // => 'foo_bar'\n *\n * _.snakeCase('fooBar');\n * // => 'foo_bar'\n *\n * _.snakeCase('--FOO-BAR--');\n * // => 'foo_bar'\n */\n var snakeCase = createCompounder(function(result, word, index) {\n return result + (index ? '_' : '') + word.toLowerCase();\n });\n\n /**\n * Splits `string` by `separator`.\n *\n * **Note:** This method is based on\n * [`String#split`](https://mdn.io/String/split).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to split.\n * @param {RegExp|string} separator The separator pattern to split by.\n * @param {number} [limit] The length to truncate results to.\n * @returns {Array} Returns the string segments.\n * @example\n *\n * _.split('a-b-c', '-', 2);\n * // => ['a', 'b']\n */\n function split(string, separator, limit) {\n if (limit && typeof limit != 'number' && isIterateeCall(string, separator, limit)) {\n separator = limit = undefined;\n }\n limit = limit === undefined ? MAX_ARRAY_LENGTH : limit >>> 0;\n if (!limit) {\n return [];\n }\n string = toString(string);\n if (string && (\n typeof separator == 'string' ||\n (separator != null && !isRegExp(separator))\n )) {\n separator = baseToString(separator);\n if (!separator && hasUnicode(string)) {\n return castSlice(stringToArray(string), 0, limit);\n }\n }\n return string.split(separator, limit);\n }\n\n /**\n * Converts `string` to\n * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).\n *\n * @static\n * @memberOf _\n * @since 3.1.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the start cased string.\n * @example\n *\n * _.startCase('--foo-bar--');\n * // => 'Foo Bar'\n *\n * _.startCase('fooBar');\n * // => 'Foo Bar'\n *\n * _.startCase('__FOO_BAR__');\n * // => 'FOO BAR'\n */\n var startCase = createCompounder(function(result, word, index) {\n return result + (index ? ' ' : '') + upperFirst(word);\n });\n\n /**\n * Checks if `string` starts with the given target string.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {string} [target] The string to search for.\n * @param {number} [position=0] The position to search from.\n * @returns {boolean} Returns `true` if `string` starts with `target`,\n * else `false`.\n * @example\n *\n * _.startsWith('abc', 'a');\n * // => true\n *\n * _.startsWith('abc', 'b');\n * // => false\n *\n * _.startsWith('abc', 'b', 1);\n * // => true\n */\n function startsWith(string, target, position) {\n string = toString(string);\n position = position == null\n ? 0\n : baseClamp(toInteger(position), 0, string.length);\n\n target = baseToString(target);\n return string.slice(position, position + target.length) == target;\n }\n\n /**\n * Creates a compiled template function that can interpolate data properties\n * in \"interpolate\" delimiters, HTML-escape interpolated data properties in\n * \"escape\" delimiters, and execute JavaScript in \"evaluate\" delimiters. Data\n * properties may be accessed as free variables in the template. If a setting\n * object is given, it takes precedence over `_.templateSettings` values.\n *\n * **Note:** In the development build `_.template` utilizes\n * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)\n * for easier debugging.\n *\n * For more information on precompiling templates see\n * [lodash's custom builds documentation](https://lodash.com/custom-builds).\n *\n * For more information on Chrome extension sandboxes see\n * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category String\n * @param {string} [string=''] The template string.\n * @param {Object} [options={}] The options object.\n * @param {RegExp} [options.escape=_.templateSettings.escape]\n * The HTML \"escape\" delimiter.\n * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]\n * The \"evaluate\" delimiter.\n * @param {Object} [options.imports=_.templateSettings.imports]\n * An object to import into the template as free variables.\n * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]\n * The \"interpolate\" delimiter.\n * @param {string} [options.sourceURL='lodash.templateSources[n]']\n * The sourceURL of the compiled template.\n * @param {string} [options.variable='obj']\n * The data object variable name.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the compiled template function.\n * @example\n *\n * // Use the \"interpolate\" delimiter to create a compiled template.\n * var compiled = _.template('hello <%= user %>!');\n * compiled({ 'user': 'fred' });\n * // => 'hello fred!'\n *\n * // Use the HTML \"escape\" delimiter to escape data property values.\n * var compiled = _.template('<%- value %>');\n * compiled({ 'value': '\\r\\n\\r\\n\\r\\n\"],\"sourceRoot\":\"webpack://\"}]);\n\t\n\t// exports\n\n\n/***/ },\n/* 78 */\n/***/ function(module, exports) {\n\n\t/*\r\n\t\tMIT License http://www.opensource.org/licenses/mit-license.php\r\n\t\tAuthor Tobias Koppers @sokra\r\n\t*/\r\n\t// css base code, injected by the css-loader\r\n\tmodule.exports = function() {\r\n\t\tvar list = [];\r\n\t\r\n\t\t// return the list of modules as css string\r\n\t\tlist.toString = function toString() {\r\n\t\t\tvar result = [];\r\n\t\t\tfor(var i = 0; i < this.length; i++) {\r\n\t\t\t\tvar item = this[i];\r\n\t\t\t\tif(item[2]) {\r\n\t\t\t\t\tresult.push(\"@media \" + item[2] + \"{\" + item[1] + \"}\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tresult.push(item[1]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn result.join(\"\");\r\n\t\t};\r\n\t\r\n\t\t// import a list of modules into the list\r\n\t\tlist.i = function(modules, mediaQuery) {\r\n\t\t\tif(typeof modules === \"string\")\r\n\t\t\t\tmodules = [[null, modules, \"\"]];\r\n\t\t\tvar alreadyImportedModules = {};\r\n\t\t\tfor(var i = 0; i < this.length; i++) {\r\n\t\t\t\tvar id = this[i][0];\r\n\t\t\t\tif(typeof id === \"number\")\r\n\t\t\t\t\talreadyImportedModules[id] = true;\r\n\t\t\t}\r\n\t\t\tfor(i = 0; i < modules.length; i++) {\r\n\t\t\t\tvar item = modules[i];\r\n\t\t\t\t// skip already imported module\r\n\t\t\t\t// this implementation is not 100% perfect for weird media query combinations\r\n\t\t\t\t// when a module is imported multiple times with different media queries.\r\n\t\t\t\t// I hope this will never occur (Hey this way we have smaller bundles)\r\n\t\t\t\tif(typeof item[0] !== \"number\" || !alreadyImportedModules[item[0]]) {\r\n\t\t\t\t\tif(mediaQuery && !item[2]) {\r\n\t\t\t\t\t\titem[2] = mediaQuery;\r\n\t\t\t\t\t} else if(mediaQuery) {\r\n\t\t\t\t\t\titem[2] = \"(\" + item[2] + \") and (\" + mediaQuery + \")\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlist.push(item);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t\treturn list;\r\n\t};\r\n\n\n/***/ },\n/* 79 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/*\n\t\tMIT License http://www.opensource.org/licenses/mit-license.php\n\t\tAuthor Tobias Koppers @sokra\n\t*/\n\tvar stylesInDom = {},\n\t\tmemoize = function(fn) {\n\t\t\tvar memo;\n\t\t\treturn function () {\n\t\t\t\tif (typeof memo === \"undefined\") memo = fn.apply(this, arguments);\n\t\t\t\treturn memo;\n\t\t\t};\n\t\t},\n\t\tisOldIE = memoize(function() {\n\t\t\treturn /msie [6-9]\\b/.test(window.navigator.userAgent.toLowerCase());\n\t\t}),\n\t\tgetHeadElement = memoize(function () {\n\t\t\treturn document.head || document.getElementsByTagName(\"head\")[0];\n\t\t}),\n\t\tsingletonElement = null,\n\t\tsingletonCounter = 0,\n\t\tstyleElementsInsertedAtTop = [];\n\t\n\tmodule.exports = function(list, options) {\n\t\tif(false) {\n\t\t\tif(typeof document !== \"object\") throw new Error(\"The style-loader cannot be used in a non-browser environment\");\n\t\t}\n\t\n\t\toptions = options || {};\n\t\t// Force single-tag solution on IE6-9, which has a hard limit on the # of \\r\\n\"],\"sourceRoot\":\"webpack://\"}]);\n\t\n\t// exports\n\n\n/***/ },\n/* 85 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _utils = __webpack_require__(65);\n\t\n\tvar _NodeList = __webpack_require__(1);\n\t\n\tvar _NodeList2 = _interopRequireDefault(_NodeList);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t\n\texports.default = {\n\t props: {\n\t header: { type: String },\n\t placement: { type: String, default: 'right' },\n\t show: { type: Boolean, required: true },\n\t width: { type: Number, default: 320 }\n\t },\n\t watch: {\n\t show: function show(val, old) {\n\t var _this = this;\n\t\n\t this.$emit('input', val);\n\t this.$emit(this.show ? 'open' : 'close');\n\t var body = document.body;\n\t var scrollBarWidth = (0, _utils.getScrollBarWidth)();\n\t if (val) {\n\t if (!this._backdrop) {\n\t this._backdrop = document.createElement('div');\n\t }\n\t this._backdrop.className = 'aside-backdrop';\n\t body.appendChild(this._backdrop);\n\t body.classList.add('modal-open');\n\t if (scrollBarWidth !== 0) {\n\t body.style.paddingRight = scrollBarWidth + 'px';\n\t }\n\t // request property that requires layout to force a layout\n\t var x = this._backdrop.clientHeight;\n\t this._backdrop.classList.add('in');\n\t (0, _NodeList2.default)(this._backdrop).on('click', function () {\n\t return _this.trigger_close();\n\t });\n\t } else {\n\t (0, _NodeList2.default)(this._backdrop).on('transitionend', function () {\n\t (0, _NodeList2.default)(_this._backdrop).off();\n\t try {\n\t body.classList.remove('modal-open');\n\t body.style.paddingRight = '0';\n\t body.removeChild(_this._backdrop);\n\t _this._backdrop = null;\n\t } catch (e) {}\n\t });\n\t this._backdrop.className = 'aside-backdrop';\n\t }\n\t }\n\t },\n\t methods: {\n\t trigger: function trigger() {\n\t var _this2 = this;\n\t\n\t return {\n\t close: function close() {\n\t return _this2.trigger_close();\n\t },\n\t open: function open() {\n\t return _this2.trigger_open();\n\t }\n\t };\n\t },\n\t trigger_close: function trigger_close() {\n\t this.$emit('close');\n\t },\n\t trigger_open: function trigger_open() {\n\t this.$emit('open');\n\t }\n\t },\n\t mounted: function mounted() {\n\t var _this3 = this;\n\t\n\t this.$emit('trigger', function () {\n\t return _this3.trigger;\n\t });\n\t }\n\t};\n\n/***/ },\n/* 86 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('transition', {\n\t attrs: {\n\t \"name\": 'slide' + _vm.placement\n\t }\n\t }, [(_vm.show) ? _vm._c('div', {\n\t staticClass: \"aside\",\n\t class: _vm.placement,\n\t style: ({\n\t width: _vm.width + 'px'\n\t })\n\t }, [_vm._c('div', {\n\t staticClass: \"aside-dialog\"\n\t }, [_vm._c('div', {\n\t staticClass: \"aside-content\"\n\t }, [_vm._c('div', {\n\t staticClass: \"aside-header\"\n\t }, [_vm._c('button', {\n\t staticClass: \"close\",\n\t attrs: {\n\t \"type\": \"button\"\n\t },\n\t on: {\n\t \"click\": _vm.trigger_close\n\t }\n\t }, [_vm._c('span', [_vm._v(\"×\")])]), _vm._v(\" \"), _vm._c('h4', {\n\t staticClass: \"aside-title\"\n\t }, [_vm._t(\"header\", [_vm._v(_vm._s(_vm.header))])], 2)]), _vm._v(\" \"), _vm._c('div', {\n\t staticClass: \"aside-body\"\n\t }, [_vm._t(\"default\")], 2)])])]) : _vm._e()])\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-3a4bde27\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 87 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(88)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(89)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\ButtonGroup.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-125eb0c8\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-125eb0c8\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] ButtonGroup.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 88 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t\n\texports.default = {\n\t props: {\n\t buttons: { default: true },\n\t justified: { type: Boolean, default: false },\n\t type: { type: String, default: 'default' },\n\t value: { default: null },\n\t vertical: { type: Boolean, default: false }\n\t },\n\t data: function data() {\n\t this._btnGroup = true;\n\t return {\n\t val: this.value\n\t };\n\t },\n\t\n\t watch: {\n\t val: function val(_val) {\n\t this.$emit('input', _val);\n\t }\n\t }\n\t};\n\n/***/ },\n/* 89 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('div', {\n\t class: {\n\t 'btn-group': _vm.buttons, 'btn-group-justified': _vm.justified, 'btn-group-vertical': _vm.vertical\n\t },\n\t attrs: {\n\t \"data-toggle\": _vm.buttons && 'buttons'\n\t }\n\t }, [_vm._t(\"default\")], 2)\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-125eb0c8\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 90 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* styles */\n\t__webpack_require__(91)\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(93)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(94)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\Carousel.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t__vue_options__._scopeId = \"data-v-322dee41\"\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-322dee41\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-322dee41\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] Carousel.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 91 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// style-loader: Adds some css to the DOM by adding a \\r\\n\"],\"sourceRoot\":\"webpack://\"}]);\n\t\n\t// exports\n\n\n/***/ },\n/* 93 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _NodeList = __webpack_require__(1);\n\t\n\tvar _NodeList2 = _interopRequireDefault(_NodeList);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\t// let coerce = {\n\t// interval: 'number'\n\t// }\n\t\n\texports.default = {\n\t props: {\n\t indicators: {\n\t type: Boolean,\n\t default: true\n\t },\n\t controls: {\n\t type: Boolean,\n\t default: true\n\t },\n\t interval: {\n\t type: Number,\n\t default: 5000\n\t }\n\t },\n\t data: function data() {\n\t return {\n\t indicator_list: [],\n\t index: 0,\n\t isAnimating: false\n\t };\n\t },\n\t\n\t watch: {\n\t index: function index(newVal, oldVal) {\n\t this.slide(newVal > oldVal ? 'left' : 'right', newVal, oldVal);\n\t }\n\t },\n\t methods: {\n\t indicatorClick: function indicatorClick(index) {\n\t if (this.isAnimating || this.index === index) return false;\n\t this.isAnimating = true;\n\t this.index = index;\n\t },\n\t slide: function slide(direction, next, prev) {\n\t var _this = this;\n\t\n\t if (!this.$el) {\n\t return;\n\t }\n\t var $slider = (0, _NodeList2.default)('.item', this.$el);\n\t if (!$slider.length) {\n\t return;\n\t }\n\t var selected = $slider[next] || $slider[0];\n\t (0, _NodeList2.default)(selected).addClass(direction === 'left' ? 'next' : 'prev');\n\t // request property that requires layout to force a layout\n\t var x = selected.clientHeight;\n\t (0, _NodeList2.default)([$slider[prev], selected]).addClass(direction).on('transitionend', function () {\n\t $slider.off('transitionend').className = 'item';\n\t (0, _NodeList2.default)(selected).addClass('active');\n\t _this.isAnimating = false;\n\t });\n\t },\n\t next: function next() {\n\t if (!this.$el || this.isAnimating) {\n\t return false;\n\t }\n\t this.isAnimating = true;\n\t this.index + 1 < (0, _NodeList2.default)('.item', this.$el).length ? this.index += 1 : this.index = 0;\n\t },\n\t prev: function prev() {\n\t if (!this.$el || this.isAnimating) {\n\t return false;\n\t }\n\t this.isAnimating = true;\n\t this.index === 0 ? this.index = (0, _NodeList2.default)('.item', this.$el).length - 1 : this.index -= 1;\n\t },\n\t toggleInterval: function toggleInterval(val) {\n\t if (val === undefined) {\n\t val = this._intervalID;\n\t }\n\t if (this._intervalID) {\n\t clearInterval(this._intervalID);\n\t delete this._intervalID;\n\t }\n\t if (val && this.interval > 0) {\n\t this._intervalID = setInterval(this.next, this.interval);\n\t }\n\t }\n\t },\n\t mounted: function mounted() {\n\t var _this2 = this;\n\t\n\t this.toggleInterval(true);\n\t (0, _NodeList2.default)(this.$el).on('mouseenter', function () {\n\t return _this2.toggleInterval(false);\n\t }).on('mouseleave', function () {\n\t return _this2.toggleInterval(true);\n\t });\n\t },\n\t beforeDestroy: function beforeDestroy() {\n\t this.toggleInterval(false);\n\t (0, _NodeList2.default)(this.$el).off('mouseenter mouseleave');\n\t }\n\t}; //\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\n/***/ },\n/* 94 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('div', {\n\t staticClass: \"carousel slide\",\n\t attrs: {\n\t \"data-ride\": \"carousel\"\n\t }\n\t }, [_vm._c('ol', {\n\t directives: [{\n\t name: \"show\",\n\t rawName: \"v-show\",\n\t value: (_vm.indicators),\n\t expression: \"indicators\"\n\t }],\n\t staticClass: \"carousel-indicators\"\n\t }, _vm._l((_vm.indicator_list), function(indicator, i) {\n\t return _vm._c('li', {\n\t class: {\n\t active: i === _vm.index\n\t },\n\t on: {\n\t \"click\": function($event) {\n\t _vm.indicatorClick(i)\n\t }\n\t }\n\t }, [_vm._c('span')])\n\t })), _vm._v(\" \"), _vm._c('div', {\n\t staticClass: \"carousel-inner\",\n\t attrs: {\n\t \"role\": \"listbox\"\n\t }\n\t }, [_vm._t(\"default\")], 2), _vm._v(\" \"), _vm._c('div', {\n\t directives: [{\n\t name: \"show\",\n\t rawName: \"v-show\",\n\t value: (_vm.controls),\n\t expression: \"controls\"\n\t }],\n\t staticClass: \"carousel-controls hidden-xs\"\n\t }, [_vm._c('a', {\n\t staticClass: \"left carousel-control\",\n\t attrs: {\n\t \"role\": \"button\"\n\t },\n\t on: {\n\t \"click\": _vm.prev\n\t }\n\t }, [_vm._c('span', {\n\t staticClass: \"glyphicon glyphicon-chevron-left\",\n\t attrs: {\n\t \"aria-hidden\": \"true\"\n\t }\n\t })]), _vm._v(\" \"), _vm._c('a', {\n\t staticClass: \"right carousel-control\",\n\t attrs: {\n\t \"role\": \"button\"\n\t },\n\t on: {\n\t \"click\": _vm.next\n\t }\n\t }, [_vm._c('span', {\n\t staticClass: \"glyphicon glyphicon-chevron-right\",\n\t attrs: {\n\t \"aria-hidden\": \"true\"\n\t }\n\t })])])])\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-322dee41\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 95 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* styles */\n\t__webpack_require__(96)\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(98)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(99)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\Checkbox.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t__vue_options__._scopeId = \"data-v-6922bf24\"\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-6922bf24\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-6922bf24\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] Checkbox.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 96 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// style-loader: Adds some css to the DOM by adding a \\r\\n\"],\"sourceRoot\":\"webpack://\"}]);\n\t\n\t// exports\n\n\n/***/ },\n/* 98 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t\n\texports.default = {\n\t props: {\n\t button: { type: Boolean, default: false },\n\t disabled: { type: Boolean, default: false },\n\t falseValue: { default: false },\n\t name: { type: String, default: null },\n\t readonly: { type: Boolean, default: false },\n\t trueValue: { default: true },\n\t type: { type: String, default: null },\n\t value: { default: false }\n\t },\n\t data: function data() {\n\t return {\n\t checked: this.value === this.trueValue\n\t };\n\t },\n\t\n\t computed: {\n\t isButton: function isButton() {\n\t return this.button || this._inGroup && this.$parent.buttons;\n\t },\n\t isFalse: function isFalse() {\n\t return this.value === this.falseValue;\n\t },\n\t isTrue: function isTrue() {\n\t return this.value === this.trueValue;\n\t },\n\t parentValue: function parentValue() {\n\t return this._ingroup && this.$parent.val;\n\t },\n\t typeColor: function typeColor() {\n\t return this.type || this.$parent && this.$parent.type || 'default';\n\t }\n\t },\n\t watch: {\n\t checked: function checked(val, old) {\n\t var value = val ? this.trueValue : this.falseValue;\n\t this.$emit('checked', val);\n\t this.$emit('input', value);\n\t this.eval();\n\t },\n\t parentValue: function parentValue(val) {\n\t var checked = val === this.trueValue;\n\t if (this.checked !== checked) {\n\t this.checked = checked;\n\t }\n\t },\n\t value: function value(val, old) {\n\t var checked = val === this.trueValue;\n\t if (this.checked !== checked) {\n\t this.checked = checked;\n\t }\n\t }\n\t },\n\t created: function created() {\n\t var parent = this.$parent;\n\t if (parent && parent._btnGroup && !parent._radioGroup) {\n\t this._inGroup = true;\n\t parent._checkboxGroup = true;\n\t if (!(parent.val instanceof Array)) {\n\t parent.val = [];\n\t }\n\t this.eval();\n\t }\n\t },\n\t mounted: function mounted() {\n\t if (!this.$parent._checkboxGroup || typeof this.value === 'boolean') {\n\t return;\n\t }\n\t if (this.$parent.val.length) {\n\t // this.checked = ~this.$parent.val.indexOf(this.value)\n\t this.$emit('checked', ~this.$parent.val.indexOf(this.value));\n\t } else if (this.checked) {\n\t this.$parent.val.push(this.value);\n\t }\n\t },\n\t\n\t methods: {\n\t eval: function _eval() {\n\t if (this._inGroup) {\n\t var value = this.checked ? this.isTrue : this.isFalse;\n\t var index = this.$parent.val.indexOf(value);\n\t if (this.checked && !~index) this.$parent.val.push(value);\n\t if (!this.checked && ~index) this.$parent.val.splice(index, 1);\n\t }\n\t },\n\t toggle: function toggle() {\n\t if (this.disabled || this.readonly) {\n\t return;\n\t }\n\t this.checked = !this.checked;\n\t }\n\t }\n\t};\n\n/***/ },\n/* 99 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c(_vm.isButton ? 'a' : 'label', {\n\t tag: \"a\",\n\t class: [_vm.isButton ? 'btn btn-' + _vm.typeColor : 'open checkbox ' + _vm.typeColor, {\n\t active: _vm.checked,\n\t disabled: _vm.disabled,\n\t readonly: _vm.readonly\n\t }],\n\t on: {\n\t \"click\": _vm.toggle\n\t }\n\t }, [(_vm.name) ? _vm._c('input', {\n\t attrs: {\n\t \"type\": \"hidden\",\n\t \"name\": _vm.name\n\t },\n\t domProps: {\n\t \"value\": _vm.checked ? _vm.trueValue : _vm.falseValue\n\t }\n\t }) : _vm._e(), _vm._v(\" \"), (!_vm.isButton) ? _vm._c('span', {\n\t staticClass: \"icon dropdown-toggle\",\n\t class: [_vm.checked ? 'btn-' + _vm.typeColor : '', {\n\t bg: _vm.typeColor === 'default'\n\t }]\n\t }) : _vm._e(), _vm._v(\" \"), (!_vm.isButton && _vm.checked && _vm.typeColor === 'default') ? _vm._c('span', {\n\t staticClass: \"icon\"\n\t }) : _vm._e(), _vm._v(\" \"), _vm._t(\"default\")], 2)\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-6922bf24\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 100 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* styles */\n\t__webpack_require__(101)\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(103)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(104)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\Datepicker.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-477b8e5d\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-477b8e5d\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] Datepicker.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 101 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// style-loader: Adds some css to the DOM by adding a \\r\\n\"],\"sourceRoot\":\"webpack://\"}]);\n\t\n\t// exports\n\n\n/***/ },\n/* 103 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _utils = __webpack_require__(65);\n\t\n\t// import $ from './utils/NodeList.js'\n\t\n\texports.default = {\n\t props: {\n\t value: { type: String },\n\t format: { default: 'MM/dd/yyyy' },\n\t disabledDaysOfWeek: { type: Array, default: function _default() {\n\t return [];\n\t }\n\t },\n\t width: { type: String /*, default: '200px'*/ },\n\t clearButton: { type: Boolean, default: false },\n\t lang: { type: String, default: navigator.language },\n\t placeholder: { type: String },\n\t iconsFont: { type: String, default: 'glyphicon' }\n\t },\n\t data: function data() {\n\t return {\n\t currDate: new Date(),\n\t dateRange: [],\n\t decadeRange: [],\n\t displayDayView: false,\n\t displayMonthView: false,\n\t displayYearView: false\n\t };\n\t },\n\t\n\t watch: {\n\t currDate: function currDate() {\n\t this.getDateRange();\n\t },\n\t format: function format() {\n\t this.$emit('input', this.stringify(this.currDate));\n\t }\n\t },\n\t computed: {\n\t text: function text() {\n\t return (0, _utils.translations)(this.lang);\n\t },\n\t preBtnClasses: function preBtnClasses() {\n\t return 'datepicker-preBtn ' + this.iconsFont + ' ' + this.iconsFont + '-chevron-left';\n\t },\n\t nextBtnClasses: function nextBtnClasses() {\n\t return 'datepicker-nextBtn ' + this.iconsFont + ' ' + this.iconsFont + '-chevron-right';\n\t },\n\t disabledDaysArray: function disabledDaysArray() {\n\t return this.disabledDaysOfWeek.map(function (d) {\n\t return parseInt(d, 10);\n\t });\n\t }\n\t },\n\t methods: {\n\t close: function close() {\n\t this.displayDayView = this.displayMonthView = this.displayYearView = false;\n\t },\n\t inputClick: function inputClick() {\n\t this.currDate = this.parse(this.value) || this.parse(new Date());\n\t if (this.displayMonthView || this.displayYearView) {\n\t this.displayDayView = false;\n\t } else {\n\t this.displayDayView = !this.displayDayView;\n\t }\n\t },\n\t preNextDecadeClick: function preNextDecadeClick(flag) {\n\t var year = this.currDate.getFullYear();\n\t var months = this.currDate.getMonth();\n\t var date = this.currDate.getDate();\n\t\n\t if (flag === 0) {\n\t this.currDate = new Date(year - 10, months, date);\n\t } else {\n\t this.currDate = new Date(year + 10, months, date);\n\t }\n\t },\n\t preNextMonthClick: function preNextMonthClick(flag) {\n\t var year = this.currDate.getFullYear();\n\t var month = this.currDate.getMonth();\n\t var date = this.currDate.getDate();\n\t\n\t if (flag === 0) {\n\t var preMonth = this.getYearMonth(year, month - 1);\n\t this.currDate = new Date(preMonth.year, preMonth.month, date);\n\t } else {\n\t var nextMonth = this.getYearMonth(year, month + 1);\n\t this.currDate = new Date(nextMonth.year, nextMonth.month, date);\n\t }\n\t },\n\t preNextYearClick: function preNextYearClick(flag) {\n\t var year = this.currDate.getFullYear();\n\t var months = this.currDate.getMonth();\n\t var date = this.currDate.getDate();\n\t\n\t if (flag === 0) {\n\t this.currDate = new Date(year - 1, months, date);\n\t } else {\n\t this.currDate = new Date(year + 1, months, date);\n\t }\n\t },\n\t yearSelect: function yearSelect(year) {\n\t this.displayYearView = false;\n\t this.displayMonthView = true;\n\t this.currDate = new Date(year, this.currDate.getMonth(), this.currDate.getDate());\n\t },\n\t daySelect: function daySelect(day) {\n\t if (day.sclass === 'datepicker-item-disable') {\n\t return false;\n\t } else {\n\t this.currDate = day.date;\n\t this.$emit('input', this.stringify(this.currDate));\n\t this.displayDayView = false;\n\t }\n\t },\n\t switchMonthView: function switchMonthView() {\n\t this.displayDayView = false;\n\t this.displayMonthView = true;\n\t },\n\t switchDecadeView: function switchDecadeView() {\n\t this.displayMonthView = false;\n\t this.displayYearView = true;\n\t },\n\t monthSelect: function monthSelect(index) {\n\t this.displayMonthView = false;\n\t this.displayDayView = true;\n\t this.currDate = new Date(this.currDate.getFullYear(), index, this.currDate.getDate());\n\t },\n\t getYearMonth: function getYearMonth(year, month) {\n\t if (month > 11) {\n\t year++;\n\t month = 0;\n\t } else if (month < 0) {\n\t year--;\n\t month = 11;\n\t }\n\t return { year: year, month: month };\n\t },\n\t stringifyDecadeHeader: function stringifyDecadeHeader(date) {\n\t var yearStr = date.getFullYear().toString();\n\t var firstYearOfDecade = yearStr.substring(0, yearStr.length - 1) + 0;\n\t var lastYearOfDecade = parseInt(firstYearOfDecade, 10) + 10;\n\t return firstYearOfDecade + '-' + lastYearOfDecade;\n\t },\n\t stringifyDayHeader: function stringifyDayHeader(date) {\n\t return this.text.months[date.getMonth()] + ' ' + date.getFullYear();\n\t },\n\t parseMonth: function parseMonth(date) {\n\t return this.text.months[date.getMonth()];\n\t },\n\t stringifyYearHeader: function stringifyYearHeader(date) {\n\t return date.getFullYear();\n\t },\n\t stringify: function stringify(date) {\n\t var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.format;\n\t\n\t if (!date) date = this.parse();\n\t if (!date) return '';\n\t var year = date.getFullYear();\n\t var month = date.getMonth() + 1;\n\t var day = date.getDate();\n\t var monthName = this.parseMonth(date);\n\t\n\t return format.replace(/yyyy/g, year).replace(/MMMM/g, monthName).replace(/MMM/g, monthName.substring(0, 3)).replace(/MM/g, ('0' + month).slice(-2)).replace(/dd/g, ('0' + day).slice(-2)).replace(/yy/g, year).replace(/M(?!a)/g, month).replace(/d/g, day);\n\t },\n\t parse: function parse() {\n\t var str = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.value;\n\t\n\t var date = void 0;\n\t if (str.length === 10 && (this.format === 'dd-MM-yyyy' || this.format === 'dd/MM/yyyy')) {\n\t date = new Date(str.substring(6, 10), str.substring(3, 5) - 1, str.substring(0, 2));\n\t } else {\n\t date = new Date(str);\n\t }\n\t return isNaN(date.getFullYear()) ? new Date() : date;\n\t },\n\t getDayCount: function getDayCount(year, month) {\n\t var dict = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\n\t if (month === 1) {\n\t if (year % 400 === 0 || year % 4 === 0 && year % 100 !== 0) {\n\t return 29;\n\t }\n\t }\n\t return dict[month];\n\t },\n\t getDateRange: function getDateRange() {\n\t this.dateRange = [];\n\t this.decadeRange = [];\n\t var time = {\n\t year: this.currDate.getFullYear(),\n\t month: this.currDate.getMonth(),\n\t day: this.currDate.getDate()\n\t };\n\t var yearStr = time.year.toString();\n\t var firstYearOfDecade = yearStr.substring(0, yearStr.length - 1) + 0 - 1;\n\t for (var i = 0; i < 12; i++) {\n\t this.decadeRange.push({\n\t text: firstYearOfDecade + i\n\t });\n\t }\n\t\n\t var currMonthFirstDay = new Date(time.year, time.month, 1);\n\t var firstDayWeek = currMonthFirstDay.getDay() + 1;\n\t if (firstDayWeek === 0) {\n\t firstDayWeek = 7;\n\t }\n\t var dayCount = this.getDayCount(time.year, time.month);\n\t if (firstDayWeek > 1) {\n\t var preMonth = this.getYearMonth(time.year, time.month - 1);\n\t var prevMonthDayCount = this.getDayCount(preMonth.year, preMonth.month);\n\t for (var _i = 1; _i < firstDayWeek; _i++) {\n\t var dayText = prevMonthDayCount - firstDayWeek + _i + 1;\n\t var date = new Date(preMonth.year, preMonth.month, dayText);\n\t var sclass = 'datepicker-item-gray';\n\t if (this.disabledDaysArray.indexOf(date.getDay()) > -1) {\n\t sclass = 'datepicker-item-disable';\n\t }\n\t this.dateRange.push({\n\t text: dayText,\n\t date: date,\n\t sclass: 'datepicker-item-gray'\n\t });\n\t }\n\t }\n\t\n\t for (var _i2 = 1; _i2 <= dayCount; _i2++) {\n\t var _date = new Date(time.year, time.month, _i2);\n\t var _sclass = '';\n\t if (this.disabledDaysArray.indexOf(_date.getDay()) > -1) {\n\t _sclass = 'datepicker-item-disable';\n\t }\n\t if (_i2 == time.day && _date.getFullYear() == time.year && _date.getMonth() == time.month) {\n\t _sclass = 'datepicker-dateRange-item-active';\n\t }\n\t this.dateRange.push({\n\t text: _i2,\n\t date: _date,\n\t sclass: _sclass\n\t });\n\t }\n\t\n\t if (this.dateRange.length < 42) {\n\t var nextMonthNeed = 42 - this.dateRange.length;\n\t var nextMonth = this.getYearMonth(time.year, time.month + 1);\n\t\n\t for (var _i3 = 1; _i3 <= nextMonthNeed; _i3++) {\n\t var _date2 = new Date(nextMonth.year, nextMonth.month, _i3);\n\t var _sclass2 = 'datepicker-item-gray';\n\t if (this.disabledDaysArray.indexOf(_date2.getDay()) > -1) {\n\t _sclass2 = 'datepicker-item-disable';\n\t }\n\t this.dateRange.push({\n\t text: _i3,\n\t date: _date2,\n\t sclass: _sclass2\n\t });\n\t }\n\t }\n\t }\n\t },\n\t mounted: function mounted() {\n\t var _this = this;\n\t\n\t var el = this.$el;\n\t this._blur = function (e) {\n\t if (!el.contains(e.target)) _this.close();\n\t };\n\t this.$emit('child-created', this);\n\t this.currDate = this.parse(this.value) || this.parse(new Date());\n\t window.addEventListener('click', this._blur);\n\t },\n\t beforeDestroy: function beforeDestroy() {\n\t window.removeEventListener('click', this._blur);\n\t }\n\t}; //\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\n/***/ },\n/* 104 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('div', {\n\t staticClass: \"datepicker\"\n\t }, [_vm._c('input', {\n\t staticClass: \"form-control datepicker-input\",\n\t class: {\n\t 'with-reset-button': _vm.clearButton\n\t },\n\t style: ({\n\t width: _vm.width\n\t }),\n\t attrs: {\n\t \"type\": \"text\",\n\t \"placeholder\": _vm.placeholder\n\t },\n\t domProps: {\n\t \"value\": _vm.value\n\t },\n\t on: {\n\t \"click\": _vm.inputClick,\n\t \"input\": function($event) {\n\t _vm.$emit('input', $event.target.value)\n\t }\n\t }\n\t }), _vm._v(\" \"), (_vm.clearButton && _vm.value) ? _vm._c('button', {\n\t staticClass: \"close\",\n\t attrs: {\n\t \"type\": \"button\"\n\t },\n\t on: {\n\t \"click\": function($event) {\n\t _vm.$emit('input', '')\n\t }\n\t }\n\t }, [_vm._c('span', [_vm._v(\"×\")])]) : _vm._e(), _vm._v(\" \"), _vm._c('div', {\n\t directives: [{\n\t name: \"show\",\n\t rawName: \"v-show\",\n\t value: (_vm.displayDayView),\n\t expression: \"displayDayView\"\n\t }],\n\t staticClass: \"datepicker-popup\"\n\t }, [_vm._c('div', {\n\t staticClass: \"datepicker-inner\"\n\t }, [_vm._c('div', {\n\t staticClass: \"datepicker-body\"\n\t }, [_vm._c('div', {\n\t staticClass: \"datepicker-ctrl\"\n\t }, [_vm._c('span', {\n\t class: _vm.preBtnClasses,\n\t attrs: {\n\t \"aria-hidden\": \"true\"\n\t },\n\t on: {\n\t \"click\": function($event) {\n\t _vm.preNextMonthClick(0)\n\t }\n\t }\n\t }), _vm._v(\" \"), _vm._c('span', {\n\t class: _vm.nextBtnClasses,\n\t attrs: {\n\t \"aria-hidden\": \"true\"\n\t },\n\t on: {\n\t \"click\": function($event) {\n\t _vm.preNextMonthClick(1)\n\t }\n\t }\n\t }), _vm._v(\" \"), _vm._c('p', {\n\t on: {\n\t \"click\": _vm.switchMonthView\n\t }\n\t }, [_vm._v(_vm._s(_vm.stringifyDayHeader(_vm.currDate)))])]), _vm._v(\" \"), _vm._c('div', {\n\t staticClass: \"datepicker-weekRange\"\n\t }, _vm._l((_vm.text.daysOfWeek), function(w) {\n\t return _vm._c('span', [_vm._v(_vm._s(w))])\n\t })), _vm._v(\" \"), _vm._c('div', {\n\t staticClass: \"datepicker-dateRange\"\n\t }, _vm._l((_vm.dateRange), function(d) {\n\t return _vm._c('span', {\n\t class: d.sclass,\n\t on: {\n\t \"click\": function($event) {\n\t _vm.daySelect(d)\n\t }\n\t }\n\t }, [_vm._v(_vm._s(d.text))])\n\t }))])])]), _vm._v(\" \"), _vm._c('div', {\n\t directives: [{\n\t name: \"show\",\n\t rawName: \"v-show\",\n\t value: (_vm.displayMonthView),\n\t expression: \"displayMonthView\"\n\t }],\n\t staticClass: \"datepicker-popup\"\n\t }, [_vm._c('div', {\n\t staticClass: \"datepicker-inner\"\n\t }, [_vm._c('div', {\n\t staticClass: \"datepicker-body\"\n\t }, [_vm._c('div', {\n\t staticClass: \"datepicker-ctrl\"\n\t }, [_vm._c('span', {\n\t class: _vm.preBtnClasses,\n\t attrs: {\n\t \"aria-hidden\": \"true\"\n\t },\n\t on: {\n\t \"click\": function($event) {\n\t _vm.preNextYearClick(0)\n\t }\n\t }\n\t }), _vm._v(\" \"), _vm._c('span', {\n\t class: _vm.nextBtnClasses,\n\t attrs: {\n\t \"aria-hidden\": \"true\"\n\t },\n\t on: {\n\t \"click\": function($event) {\n\t _vm.preNextYearClick(1)\n\t }\n\t }\n\t }), _vm._v(\" \"), _vm._c('p', {\n\t on: {\n\t \"click\": _vm.switchDecadeView\n\t }\n\t }, [_vm._v(_vm._s(_vm.stringifyYearHeader(_vm.currDate)))])]), _vm._v(\" \"), _vm._c('div', {\n\t staticClass: \"datepicker-monthRange\"\n\t }, [_vm._l((_vm.text.months), function(m, index) {\n\t return [_vm._c('span', {\n\t class: {\n\t 'datepicker-dateRange-item-active':\n\t (_vm.text.months[_vm.parse(_vm.value).getMonth()] === m) &&\n\t _vm.currDate.getFullYear() === _vm.parse(_vm.value).getFullYear()\n\t },\n\t on: {\n\t \"click\": function($event) {\n\t _vm.monthSelect(index)\n\t }\n\t }\n\t }, [_vm._v(_vm._s(m.substr(0, 3)))])]\n\t })], 2)])])]), _vm._v(\" \"), _vm._c('div', {\n\t directives: [{\n\t name: \"show\",\n\t rawName: \"v-show\",\n\t value: (_vm.displayYearView),\n\t expression: \"displayYearView\"\n\t }],\n\t staticClass: \"datepicker-popup\"\n\t }, [_vm._c('div', {\n\t staticClass: \"datepicker-inner\"\n\t }, [_vm._c('div', {\n\t staticClass: \"datepicker-body\"\n\t }, [_vm._c('div', {\n\t staticClass: \"datepicker-ctrl\"\n\t }, [_vm._c('span', {\n\t class: _vm.preBtnClasses,\n\t attrs: {\n\t \"aria-hidden\": \"true\"\n\t },\n\t on: {\n\t \"click\": function($event) {\n\t _vm.preNextDecadeClick(0)\n\t }\n\t }\n\t }), _vm._v(\" \"), _vm._c('span', {\n\t class: _vm.nextBtnClasses,\n\t attrs: {\n\t \"aria-hidden\": \"true\"\n\t },\n\t on: {\n\t \"click\": function($event) {\n\t _vm.preNextDecadeClick(1)\n\t }\n\t }\n\t }), _vm._v(\" \"), _vm._c('p', [_vm._v(_vm._s(_vm.stringifyDecadeHeader(_vm.currDate)))])]), _vm._v(\" \"), _vm._c('div', {\n\t staticClass: \"datepicker-monthRange decadeRange\"\n\t }, [_vm._l((_vm.decadeRange), function(decade) {\n\t return [_vm._c('span', {\n\t class: {\n\t 'datepicker-dateRange-item-active': _vm.parse(this.value).getFullYear() === decade.text\n\t },\n\t on: {\n\t \"click\": function($event) {\n\t $event.stopPropagation();\n\t _vm.yearSelect(decade.text)\n\t }\n\t }\n\t }, [_vm._v(_vm._s(decade.text))])]\n\t })], 2)])])])])\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-477b8e5d\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 105 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(106)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(107)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\Dropdown.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-39be1072\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-39be1072\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] Dropdown.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 106 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _NodeList = __webpack_require__(1);\n\t\n\tvar _NodeList2 = _interopRequireDefault(_NodeList);\n\t\n\tvar _ClickOutside = __webpack_require__(66);\n\t\n\tvar _ClickOutside2 = _interopRequireDefault(_ClickOutside);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t\n\texports.default = {\n\t directives: {\n\t ClickOutside: _ClickOutside2.default\n\t },\n\t props: {\n\t disabled: { type: Boolean, default: false },\n\t size: { type: String, default: null },\n\t text: { type: String, default: null },\n\t type: { type: String, default: 'default' },\n\t value: { type: Boolean, default: false }\n\t },\n\t data: function data() {\n\t var show = this.value;\n\t return { show: show };\n\t },\n\t\n\t watch: {\n\t show: function show(val) {\n\t this.$emit('input', val);\n\t },\n\t value: function value(val) {\n\t this.show = val;\n\t }\n\t },\n\t computed: {\n\t buttonSize: function buttonSize() {\n\t return ~['lg', 'sm', 'xs'].indexOf(this.size) ? 'btn-' + this.size : '';\n\t },\n\t inInput: function inInput() {\n\t return this.$parent._input;\n\t },\n\t isLi: function isLi() {\n\t return this.$parent._isTabs || this.$parent._navbar || this.$parent.menu;\n\t },\n\t menu: function menu() {\n\t return !this.$parent || this.$parent.navbar;\n\t },\n\t slots: function slots() {\n\t return this._slotContents;\n\t },\n\t submenu: function submenu() {\n\t return this.$parent && (this.$parent.menu || this.$parent.submenu);\n\t }\n\t },\n\t methods: {\n\t blur: function blur() {\n\t this.show = false;\n\t },\n\t toggle: function toggle() {\n\t if (!this.disabled) {\n\t this.show = !this.show;\n\t }\n\t }\n\t },\n\t mounted: function mounted() {\n\t var _this = this;\n\t\n\t (0, _NodeList2.default)('ul', this.$el).on('click', 'li>a', function (e) {\n\t _this.show = false;\n\t });\n\t },\n\t beforeDestroy: function beforeDestroy() {\n\t (0, _NodeList2.default)('ul', this.$el).off();\n\t }\n\t};\n\n/***/ },\n/* 107 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c(_vm.isLi ? 'li' : 'div', {\n\t directives: [{\n\t name: \"click-outside\",\n\t rawName: \"v-click-outside\",\n\t value: (_vm.blur),\n\t expression: \"blur\"\n\t }],\n\t tag: \"div\",\n\t class: [{\n\t open: _vm.show,\n\t disabled: _vm.disabled,\n\t dropdown: _vm.isLi,\n\t 'input-group-btn': _vm.inInput,\n\t 'btn-group': !_vm.isLi && !_vm.inInput\n\t }]\n\t }, [_vm._t(\"before\"), _vm._v(\" \"), (_vm.isLi) ? _vm._c('a', {\n\t class: ['dropdown-toggle', _vm.buttonSize, {\n\t disabled: _vm.disabled\n\t }],\n\t attrs: {\n\t \"role\": \"button\"\n\t },\n\t on: {\n\t \"keyup\": function($event) {\n\t if (_vm._k($event.keyCode, \"esc\", 27)) { return; }\n\t _vm.show = false\n\t },\n\t \"click\": function($event) {\n\t $event.preventDefault();\n\t _vm.toggle($event)\n\t }\n\t }\n\t }, [_vm._t(\"button\", [_vm._v(_vm._s(_vm.text))]), _vm._v(\" \"), _vm._c('span', {\n\t staticClass: \"caret\"\n\t })], 2) : _vm._c('button', {\n\t class: ['btn btn-' + _vm.type, _vm.buttonSize, 'dropdown-toggle'],\n\t attrs: {\n\t \"type\": \"button\",\n\t \"disabled\": _vm.disabled\n\t },\n\t on: {\n\t \"keyup\": function($event) {\n\t if (_vm._k($event.keyCode, \"esc\", 27)) { return; }\n\t _vm.show = false\n\t },\n\t \"click\": function($event) {\n\t $event.preventDefault();\n\t _vm.toggle($event)\n\t }\n\t }\n\t }, [_vm._t(\"button\", [_vm._v(_vm._s(_vm.text))]), _vm._v(\" \"), _vm._c('span', {\n\t staticClass: \"caret\"\n\t })], 2), _vm._v(\" \"), _vm._t(\"dropdown-menu\", [_vm._c('ul', {\n\t staticClass: \"dropdown-menu\"\n\t }, [_vm._t(\"default\")], 2)])], 2)\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-39be1072\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 108 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(109)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(110)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\FormGroup.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-79eb400a\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-79eb400a\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] FormGroup.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 109 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _NodeList = __webpack_require__(1);\n\t\n\tvar _NodeList2 = _interopRequireDefault(_NodeList);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\t// let coerce = {\n\t// enterSubmit: 'boolean',\n\t// icon: 'boolean'\n\t// }\n\t\n\texports.default = {\n\t props: {\n\t enterSubmit: {\n\t type: Boolean,\n\t default: false\n\t },\n\t icon: {\n\t type: Boolean,\n\t default: false\n\t },\n\t lang: {\n\t type: String,\n\t default: navigator.language\n\t }\n\t },\n\t data: function data() {\n\t return {\n\t children: [],\n\t valid: null,\n\t timeout: null\n\t };\n\t },\n\t\n\t watch: {\n\t valid: function valid(val, old) {\n\t this.$emit('isvalid', val);\n\t this.$emit(!val ? 'invalid' : 'valid');\n\t if (val !== old && this._parent) this._parent.validate();\n\t }\n\t },\n\t methods: {\n\t validate: function validate() {\n\t var valid = true;\n\t this.children.some(function (el) {\n\t var v = el.validate ? el.validate() : el.valid !== undefined ? el.valid : el.required && !~['', null, undefined].indexOf(el.value);\n\t if (!v) valid = false;\n\t return !valid;\n\t });\n\t this.valid = valid;\n\t return valid === true;\n\t }\n\t },\n\t created: function created() {\n\t this._formGroup = true;\n\t var parent = this.$parent;\n\t while (parent && !parent._formGroup) {\n\t parent = parent.$parent;\n\t }\n\t if (parent && parent._formGroup) {\n\t parent.children.push(this);\n\t this._parent = parent;\n\t }\n\t },\n\t mounted: function mounted() {\n\t this.validate();\n\t },\n\t beforeDestroy: function beforeDestroy() {\n\t if (this._parent) {\n\t var index = this._parent.children.indexOf(this);\n\t this._parent.children.splice(index, 1);\n\t }\n\t }\n\t}; //\n\t//\n\n/***/ },\n/* 110 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('span', [_vm._t(\"default\")], 2)\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-79eb400a\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 111 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(112)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(113)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\FormValidator.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-b9f57c46\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-b9f57c46\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] FormValidator.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 112 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _NodeList = __webpack_require__(1);\n\t\n\tvar _NodeList2 = _interopRequireDefault(_NodeList);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = {\n\t props: {\n\t enterSubmit: { type: Boolean, default: false },\n\t icon: { type: Boolean, default: false },\n\t lang: { type: String, default: navigator.language },\n\t value: null\n\t },\n\t data: function data() {\n\t return {\n\t children: [],\n\t valid: null,\n\t timeout: null\n\t };\n\t },\n\t\n\t watch: {\n\t valid: function valid(val, old) {\n\t this.$emit('isvalid', val);\n\t this.$emit('input', val);\n\t this.$emit(!val ? 'invalid' : 'valid');\n\t if (val !== old && this._parent) this._parent.validate();\n\t }\n\t },\n\t methods: {\n\t validate: function validate() {\n\t var invalid = !this.children.every(function (el) {\n\t return el.validate ? el.validate() : el.valid !== undefined ? el.valid : el.required && !~['', null, undefined].indexOf(el.value);\n\t });\n\t this.valid = !invalid;\n\t return !invalid;\n\t }\n\t },\n\t created: function created() {\n\t this._formValidator = true;\n\t var parent = this.$parent;\n\t while (parent && !parent._formValidator) {\n\t parent = parent.$parent;\n\t }\n\t if (parent && parent._formValidator) {\n\t parent.children.push(this);\n\t this._parent = parent;\n\t }\n\t },\n\t mounted: function mounted() {\n\t this.validate();\n\t },\n\t beforeDestroy: function beforeDestroy() {\n\t if (this._parent) {\n\t var index = this._parent.children.indexOf(this);\n\t this._parent.children.splice(index, 1);\n\t }\n\t }\n\t}; //\n\t//\n\n/***/ },\n/* 113 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('span', [_vm._t(\"default\")], 2)\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-b9f57c46\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 114 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* styles */\n\t__webpack_require__(115)\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(117)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(118)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\Input.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t__vue_options__._scopeId = \"data-v-652ad7b9\"\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-652ad7b9\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-652ad7b9\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] Input.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 115 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// style-loader: Adds some css to the DOM by adding a \\r\\n\"],\"sourceRoot\":\"webpack://\"}]);\n\t\n\t// exports\n\n\n/***/ },\n/* 117 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _utils = __webpack_require__(65);\n\t\n\tvar _NodeList = __webpack_require__(1);\n\t\n\tvar _NodeList2 = _interopRequireDefault(_NodeList);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t\n\tvar DELAY = 300;\n\t\n\texports.default = {\n\t props: {\n\t clearButton: { type: Boolean, default: false },\n\t cols: { type: Number, default: null },\n\t datalist: { type: Array, default: null },\n\t disabled: { type: Boolean, default: false },\n\t enterSubmit: { type: Boolean, default: false },\n\t error: { type: String, default: null },\n\t help: { type: String, default: null },\n\t hideHelp: { type: Boolean, default: true },\n\t icon: { type: Boolean, default: false },\n\t label: { type: String, default: null },\n\t lang: { type: String, default: navigator.language },\n\t mask: null,\n\t maskDelay: { type: Number, default: 100 },\n\t match: { type: String, default: null },\n\t max: { type: String, default: null },\n\t maxlength: { type: Number, default: null },\n\t min: { type: String, default: null },\n\t minlength: { type: Number, default: 0 },\n\t name: { type: String, default: null },\n\t pattern: { default: null },\n\t placeholder: { type: String, default: null },\n\t readonly: { type: Boolean, default: false },\n\t required: { type: Boolean, default: false },\n\t rows: { type: Number, default: 3 },\n\t step: { type: Number, default: null },\n\t type: { type: String, default: 'text' },\n\t url: { type: String, default: null },\n\t urlMap: { type: Function, default: null },\n\t validationDelay: { type: Number, default: 250 },\n\t value: { default: null }\n\t },\n\t data: function data() {\n\t var val = this.value;\n\t return {\n\t options: this.datalist,\n\t val: val,\n\t valid: null,\n\t timeout: null\n\t };\n\t },\n\t\n\t computed: {\n\t canValidate: function canValidate() {\n\t return !this.disabled && !this.readonly && (this.required || this.regex || this.nativeValidate || this.match !== null);\n\t },\n\t errorText: function errorText() {\n\t var value = this.value;\n\t var error = [this.error];\n\t if (!value && this.required) error.push('(' + this.text.required.toLowerCase() + ')');\n\t if (value && value.length < this.minlength) error.push('(' + this.text.minLength.toLowerCase() + ': ' + this.minlength + ')');\n\t return error.join(' ');\n\t },\n\t id_datalist: function id_datalist() {\n\t if (this.type !== 'textarea' && this.datalist instanceof Array) {\n\t if (!this._id_datalist) {\n\t if (!this.$root.id_datalist) {\n\t this.$root.id_datalist = 0;\n\t }\n\t this._id_datalist = 'input-datalist' + this.$root.id_datalist++;\n\t }\n\t return this._id_datalist;\n\t }\n\t return null;\n\t },\n\t input: function input() {\n\t return this.$refs.input;\n\t },\n\t nativeValidate: function nativeValidate() {\n\t return (this.input || {}).checkValidity && (~['url', 'email'].indexOf(this.type.toLowerCase()) || this.min || this.max);\n\t },\n\t regex: function regex() {\n\t return _utils.coerce.pattern(this.pattern);\n\t },\n\t showError: function showError() {\n\t return this.error && this.valid === false;\n\t },\n\t showHelp: function showHelp() {\n\t return this.help && (!this.showError || !this.hideHelp);\n\t },\n\t text: function text() {\n\t return (0, _utils.translations)(this.lang);\n\t },\n\t title: function title() {\n\t return this.errorText || this.help || '';\n\t }\n\t },\n\t watch: {\n\t datalist: function datalist(val, old) {\n\t if (val !== old && val instanceof Array) {\n\t this.options = val;\n\t }\n\t },\n\t match: function match(val) {\n\t this.eval();\n\t },\n\t options: function options(val, old) {\n\t if (val !== old) this.$emit('options', val);\n\t },\n\t url: function url(val) {\n\t this._url();\n\t },\n\t val: function val(_val, old) {\n\t var _this = this;\n\t\n\t this.$emit('input', _val);\n\t if (_val !== old) {\n\t if (this.mask instanceof Function) {\n\t _val = this.mask(_val || '');\n\t if (this.val !== _val) {\n\t if (this._timeout.mask) clearTimeout(this._timeout.mask);\n\t this._timeout.mask = setTimeout(function () {\n\t _this.val = _val;\n\t }, isNaN(this.maskDelay) ? 0 : this.maskDelay);\n\t }\n\t }\n\t this.eval();\n\t }\n\t },\n\t valid: function valid(val, old) {\n\t this.$emit('isvalid', val);\n\t this.$emit(!val ? 'invalid' : 'valid');\n\t if (this._parent) this._parent.validate();\n\t },\n\t value: function value(val) {\n\t if (this.val !== val) {\n\t this.val = val;\n\t }\n\t }\n\t },\n\t methods: {\n\t attr: function attr(value) {\n\t return ~['', null, undefined].indexOf(value) || value instanceof Function ? null : value;\n\t },\n\t emit: function emit(e) {\n\t this.$emit(e.type, e.type == 'input' ? e.target.value : e);\n\t if (e.type === 'blur' && this.canValidate) {\n\t this.valid = this.validate();\n\t }\n\t },\n\t eval: function _eval() {\n\t var _this2 = this;\n\t\n\t if (this._timeout.eval) clearTimeout(this._timeout.eval);\n\t if (!this.canValidate) {\n\t this.valid = true;\n\t } else {\n\t this._timeout.eval = setTimeout(function () {\n\t _this2.valid = _this2.validate();\n\t _this2._timeout.eval = null;\n\t }, this.validationDelay);\n\t }\n\t },\n\t focus: function focus() {\n\t this.input.focus();\n\t },\n\t submit: function submit() {\n\t if (this.$parent._formValidator) {\n\t return this.$parent.validate();\n\t }\n\t if (this.input.form) {\n\t var invalids = (0, _NodeList2.default)('.form-group.validate:not(.has-success)', this.input.form);\n\t if (invalids.length) {\n\t invalids.find('input,textarea,select')[0].focus();\n\t } else {\n\t this.input.form.submit();\n\t }\n\t }\n\t },\n\t validate: function validate() {\n\t if (!this.canValidate) {\n\t return true;\n\t }\n\t var value = (this.val || '').trim();\n\t if (!value) {\n\t return !this.required;\n\t }\n\t if (this.match !== null) {\n\t return this.match === value;\n\t }\n\t if (value.length < this.minlength) {\n\t return false;\n\t }\n\t if (this.nativeValidate && !this.input.checkValidity()) {\n\t return false;\n\t }\n\t if (this.regex) {\n\t if (!(this.regex instanceof Function ? this.regex(this.value) : this.regex.test(this.value))) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t },\n\t reset: function reset() {\n\t this.value = '';\n\t this.valid = null;\n\t if (this._timeout.mask) clearTimeout(this._timeout.mask);\n\t if (this._timeout.eval) clearTimeout(this._timeout.eval);\n\t }\n\t },\n\t created: function created() {\n\t this._input = true;\n\t this._timeout = {};\n\t var parent = this.$parent;\n\t while (parent && !parent._formValidator) {\n\t parent = parent.$parent;\n\t }\n\t if (parent && parent._formValidator) {\n\t parent.children.push(this);\n\t this._parent = parent;\n\t }\n\t this._url = (0, _utils.delayer)(function () {\n\t var _this3 = this;\n\t\n\t if (!this.url || !this.$http || this._loading) {\n\t return;\n\t }\n\t this._loading = true;\n\t this.$http.get(this.url).then(function (response) {\n\t var data = response.data instanceof Array ? response.data : [];\n\t try {\n\t data = JSON.parse(data);\n\t } catch (e) {}\n\t if (_this3.urlMap) {\n\t data = data.map(_this3.urlMap);\n\t }\n\t _this3.options = data;\n\t _this3.loading = false;\n\t }, function (response) {\n\t _this3.loading = false;\n\t });\n\t }, DELAY);\n\t if (this.url) this._url();\n\t },\n\t mounted: function mounted() {\n\t // $(this.input).on('focus', e => { this.$emit('focus', e) }).on('blur', e => {\n\t // if (this.canValidate) { this.valid = this.validate() }\n\t // this.$emit('blur', e)\n\t // })\n\t },\n\t beforeDestroy: function beforeDestroy() {\n\t // $(this.input).off()\n\t if (this._parent) {\n\t var index = this._parent.children.indexOf(this);\n\t this._parent.children.splice(index, 1);\n\t }\n\t }\n\t};\n\n/***/ },\n/* 118 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('div', {\n\t staticClass: \"form-group\",\n\t class: {\n\t validate: _vm.canValidate, 'has-feedback': _vm.icon, 'has-error': _vm.canValidate && _vm.valid === false, 'has-success': _vm.canValidate && _vm.valid\n\t }\n\t }, [_vm._t(\"label\", [(_vm.label) ? _vm._c('label', {\n\t staticClass: \"control-label\",\n\t on: {\n\t \"click\": _vm.focus\n\t }\n\t }, [_vm._v(_vm._s(_vm.label))]) : _vm._e()]), _vm._v(\" \"), (_vm.$slots.before || _vm.$slots.after) ? _vm._c('div', {\n\t staticClass: \"input-group\"\n\t }, [_vm._t(\"before\"), _vm._v(\" \"), _vm._c(_vm.type == 'textarea' ? _vm.type : 'input', {\n\t directives: [{\n\t name: \"model\",\n\t rawName: \"v-model\",\n\t value: (_vm.val),\n\t expression: \"val\"\n\t }],\n\t ref: \"input\",\n\t tag: \"textarea\",\n\t staticClass: \"form-control\",\n\t attrs: {\n\t \"cols\": _vm.cols,\n\t \"disabled\": _vm.disabled,\n\t \"list\": _vm.id_datalist,\n\t \"max\": _vm.attr(_vm.max),\n\t \"maxlength\": _vm.maxlength,\n\t \"min\": _vm.attr(_vm.min),\n\t \"name\": _vm.name,\n\t \"placeholder\": _vm.placeholder,\n\t \"readonly\": _vm.readonly,\n\t \"required\": _vm.required,\n\t \"rows\": _vm.rows,\n\t \"step\": _vm.step,\n\t \"title\": _vm.attr(_vm.title),\n\t \"type\": _vm.type == 'textarea' ? null : _vm.type\n\t },\n\t domProps: {\n\t \"value\": _vm._s(_vm.val)\n\t },\n\t on: {\n\t \"blur\": _vm.emit,\n\t \"focus\": _vm.emit,\n\t \"input\": [function($event) {\n\t if ($event.target.composing) { return; }\n\t _vm.val = $event.target.value\n\t }, _vm.emit],\n\t \"keyup\": function($event) {\n\t if (_vm._k($event.keyCode, \"enter\", 13)) { return; }\n\t _vm.type != 'textarea' && _vm.enterSubmit && _vm.submit()\n\t }\n\t }\n\t }), _vm._v(\" \"), (_vm.clearButton && _vm.value) ? _vm._c('div', {\n\t class: {\n\t icon: _vm.icon\n\t }\n\t }, [_vm._c('span', {\n\t staticClass: \"close\",\n\t on: {\n\t \"click\": function($event) {\n\t _vm.value = ''\n\t }\n\t }\n\t }, [_vm._v(\"×\")])]) : _vm._e(), _vm._v(\" \"), (_vm.icon) ? _vm._c('div', {\n\t staticClass: \"icon\"\n\t }, [(_vm.icon && _vm.valid !== null) ? _vm._c('span', {\n\t class: ['form-control-feedback glyphicon', 'glyphicon-' + (_vm.valid ? 'ok' : 'remove')],\n\t attrs: {\n\t \"aria-hidden\": \"true\"\n\t }\n\t }) : _vm._e()]) : _vm._e(), _vm._v(\" \"), _vm._t(\"after\")], 2) : [_vm._c(_vm.type == 'textarea' ? _vm.type : 'input', {\n\t directives: [{\n\t name: \"model\",\n\t rawName: \"v-model\",\n\t value: (_vm.val),\n\t expression: \"val\"\n\t }],\n\t ref: \"input\",\n\t tag: \"textarea\",\n\t staticClass: \"form-control\",\n\t attrs: {\n\t \"cols\": _vm.cols,\n\t \"disabled\": _vm.disabled,\n\t \"list\": _vm.id_datalist,\n\t \"max\": _vm.attr(_vm.max),\n\t \"maxlength\": _vm.maxlength,\n\t \"min\": _vm.attr(_vm.min),\n\t \"name\": _vm.name,\n\t \"placeholder\": _vm.placeholder,\n\t \"readonly\": _vm.readonly,\n\t \"required\": _vm.required,\n\t \"rows\": _vm.rows,\n\t \"step\": _vm.step,\n\t \"title\": _vm.attr(_vm.title),\n\t \"type\": _vm.type == 'textarea' ? null : _vm.type\n\t },\n\t domProps: {\n\t \"value\": _vm._s(_vm.val)\n\t },\n\t on: {\n\t \"blur\": _vm.emit,\n\t \"focus\": _vm.emit,\n\t \"input\": [function($event) {\n\t if ($event.target.composing) { return; }\n\t _vm.val = $event.target.value\n\t }, _vm.emit],\n\t \"keyup\": function($event) {\n\t if (_vm._k($event.keyCode, \"enter\", 13)) { return; }\n\t _vm.type != 'textarea' && _vm.enterSubmit && _vm.submit()\n\t }\n\t }\n\t }), _vm._v(\" \"), (_vm.clearButton && _vm.val) ? _vm._c('span', {\n\t staticClass: \"close\",\n\t on: {\n\t \"click\": function($event) {\n\t _vm.val = ''\n\t }\n\t }\n\t }, [_vm._v(\"×\")]) : _vm._e(), _vm._v(\" \"), (_vm.icon && _vm.valid !== null) ? _vm._c('span', {\n\t class: ['form-control-feedback glyphicon', 'glyphicon-' + (_vm.valid ? 'ok' : 'remove')],\n\t attrs: {\n\t \"aria-hidden\": \"true\"\n\t }\n\t }) : _vm._e()], _vm._v(\" \"), (_vm.id_datalist) ? _vm._c('datalist', {\n\t attrs: {\n\t \"id\": _vm.id_datalist\n\t }\n\t }, _vm._l((_vm.options), function(opc) {\n\t return _vm._c('option', {\n\t domProps: {\n\t \"value\": opc\n\t }\n\t })\n\t })) : _vm._e(), _vm._v(\" \"), (_vm.showHelp) ? _vm._c('div', {\n\t staticClass: \"help-block\",\n\t on: {\n\t \"click\": _vm.focus\n\t }\n\t }, [_vm._v(_vm._s(_vm.help))]) : _vm._e(), _vm._v(\" \"), (_vm.showError) ? _vm._c('div', {\n\t staticClass: \"help-block with-errors\",\n\t on: {\n\t \"click\": _vm.focus\n\t }\n\t }, [_vm._v(_vm._s(_vm.errorText))]) : _vm._e()], 2)\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-652ad7b9\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 119 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* styles */\n\t__webpack_require__(120)\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(122)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(127)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\Modal.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-fe7d5dc8\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-fe7d5dc8\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] Modal.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 120 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// style-loader: Adds some css to the DOM by adding a \\r\\n\"],\"sourceRoot\":\"webpack://\"}]);\n\t\n\t// exports\n\n\n/***/ },\n/* 122 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _isInteger = __webpack_require__(123);\n\t\n\tvar _isInteger2 = _interopRequireDefault(_isInteger);\n\t\n\tvar _utils = __webpack_require__(65);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = {\n\t props: {\n\t backdrop: { type: Boolean, default: true },\n\t callback: { type: Function, default: null },\n\t cancelText: { type: String, default: 'Close' },\n\t effect: { type: String, default: null },\n\t large: { type: Boolean, default: false },\n\t okText: { type: String, default: 'Save changes' },\n\t small: { type: Boolean, default: false },\n\t title: { type: String, default: '' },\n\t value: { type: Boolean, required: true },\n\t width: { default: null }\n\t },\n\t computed: {\n\t optionalWidth: function optionalWidth() {\n\t if (this.width === null) {\n\t return null;\n\t } else if ((0, _isInteger2.default)(this.width)) {\n\t return this.width + 'px';\n\t }\n\t return this.width;\n\t }\n\t },\n\t watch: {\n\t value: function value(val) {\n\t this.transitionstart();\n\t }\n\t },\n\t methods: {\n\t backClose: function backClose(e) {\n\t if (this.backdrop && e.target === this.$el) {\n\t this.close();\n\t }\n\t },\n\t close: function close() {\n\t this.$emit('cancel');\n\t this.$emit('input', false);\n\t },\n\t ok: function ok() {\n\t if (this.callback instanceof Function) this.callback();\n\t this.$emit('ok');\n\t this.$emit('input', true);\n\t },\n\t transitionstart: function transitionstart() {\n\t var el = this.$el;\n\t var body = document.body;\n\t var scrollBarWidth = (0, _utils.getScrollBarWidth)();\n\t if (this.value) {\n\t el.querySelector('.modal-content').focus();\n\t el.style.display = 'block';\n\t setTimeout(function () {\n\t return el.classList.add('in');\n\t }, 0);\n\t body.classList.add('modal-open');\n\t if (scrollBarWidth !== 0) {\n\t body.style.paddingRight = scrollBarWidth + 'px';\n\t }\n\t } else {\n\t el.classList.remove('in');\n\t }\n\t },\n\t transitionend: function transitionend() {\n\t if (!this.value) {\n\t this.$el.style.display = 'none';\n\t var body = document.body;\n\t body.style.paddingRight = null;\n\t body.classList.remove('modal-open');\n\t }\n\t }\n\t }\n\t}; //\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\n/***/ },\n/* 123 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(124), __esModule: true };\n\n/***/ },\n/* 124 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(125);\n\tmodule.exports = __webpack_require__(7).Number.isInteger;\n\n/***/ },\n/* 125 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 20.1.2.3 Number.isInteger(number)\n\tvar $export = __webpack_require__(5);\n\t\n\t$export($export.S, 'Number', {isInteger: __webpack_require__(126)});\n\n/***/ },\n/* 126 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 20.1.2.3 Number.isInteger(number)\n\tvar isObject = __webpack_require__(13)\n\t , floor = Math.floor;\n\tmodule.exports = function isInteger(it){\n\t return !isObject(it) && isFinite(it) && floor(it) === it;\n\t};\n\n/***/ },\n/* 127 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('div', {\n\t class: ['modal', _vm.effect],\n\t attrs: {\n\t \"role\": \"dialog\"\n\t },\n\t on: {\n\t \"click\": _vm.backClose,\n\t \"transitionend\": _vm.transitionend\n\t }\n\t }, [_vm._c('div', {\n\t class: {\n\t 'modal-dialog': true, 'modal-lg': _vm.large, 'modal-sm': _vm.small\n\t },\n\t style: ({\n\t width: _vm.optionalWidth\n\t }),\n\t attrs: {\n\t \"role\": \"document\"\n\t }\n\t }, [_vm._c('div', {\n\t staticClass: \"modal-content\"\n\t }, [_vm._t(\"modal-header\", [_vm._c('div', {\n\t staticClass: \"modal-header\"\n\t }, [_vm._c('button', {\n\t staticClass: \"close\",\n\t attrs: {\n\t \"type\": \"button\"\n\t },\n\t on: {\n\t \"click\": _vm.close\n\t }\n\t }, [_vm._c('span', [_vm._v(\"×\")])]), _vm._v(\" \"), _vm._c('h4', {\n\t staticClass: \"modal-title\"\n\t }, [_vm._t(\"title\", [_vm._v(_vm._s(_vm.title))])], 2)])]), _vm._v(\" \"), _vm._t(\"modal-body\", [_vm._c('div', {\n\t staticClass: \"modal-body\"\n\t }, [_vm._t(\"default\")], 2)]), _vm._v(\" \"), _vm._t(\"modal-footer\", [_vm._c('div', {\n\t staticClass: \"modal-footer\"\n\t }, [_vm._c('button', {\n\t staticClass: \"btn btn-default\",\n\t attrs: {\n\t \"type\": \"button\"\n\t },\n\t on: {\n\t \"click\": _vm.close\n\t }\n\t }, [_vm._v(_vm._s(_vm.cancelText))]), _vm._v(\" \"), _vm._c('button', {\n\t staticClass: \"btn btn-primary\",\n\t attrs: {\n\t \"type\": \"button\"\n\t },\n\t on: {\n\t \"click\": _vm.ok\n\t }\n\t }, [_vm._v(_vm._s(_vm.okText))])])])], 2)])])\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-fe7d5dc8\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 128 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(129)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(130)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\Navbar.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-38f0619e\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-38f0619e\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] Navbar.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 129 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _NodeList = __webpack_require__(1);\n\t\n\tvar _NodeList2 = _interopRequireDefault(_NodeList);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = {\n\t props: {\n\t type: { type: String, default: 'default' },\n\t placement: { type: String, default: '' }\n\t },\n\t data: function data() {\n\t return {\n\t id: 'bs-example-navbar-collapse-1',\n\t collapsed: true,\n\t styles: {}\n\t };\n\t },\n\t\n\t computed: {\n\t slots: function slots() {\n\t return this._slotContents;\n\t }\n\t },\n\t methods: {\n\t toggleCollapse: function toggleCollapse(e) {\n\t e && e.preventDefault();\n\t this.collapsed = !this.collapsed;\n\t }\n\t },\n\t created: function created() {\n\t this._navbar = true;\n\t },\n\t mounted: function mounted() {\n\t var _this = this;\n\t\n\t try {\n\t (function () {\n\t var $dropdown = (0, _NodeList2.default)('.dropdown>[data-toggle=\"dropdown\"]', _this.$el).parent();\n\t if ($dropdown) {\n\t $dropdown.on('click', '.dropdown-toggle', function (e) {\n\t e.preventDefault();\n\t $dropdown.each(function (content) {\n\t if (content.contains(e.target)) content.classList.toggle('open');\n\t });\n\t }).on('click', '.dropdown-menu>li>a', function (e) {\n\t $dropdown.each(function (content) {\n\t if (content.contains(e.target)) content.classList.remove('open');\n\t });\n\t }).onBlur(function (e) {\n\t $dropdown.each(function (content) {\n\t if (!content.contains(e.target)) content.classList.remove('open');\n\t });\n\t });\n\t }\n\t })();\n\t } catch (ex) {\n\t console.log('error finding dropdown');\n\t }\n\t\n\t (0, _NodeList2.default)(this.$el).on('click touchstart', 'li:not(.dropdown)>a', function (e) {\n\t setTimeout(function () {\n\t _this.collapsed = true;\n\t }, 200);\n\t }).onBlur(function (e) {\n\t if (!_this.$el.contains(e.target)) {\n\t _this.collapsed = true;\n\t }\n\t });\n\t var height = this.$el.offsetHeight;\n\t if (this.placement === 'top') {\n\t document.body.style.paddingTop = height + 'px';\n\t }\n\t if (this.placement === 'bottom') {\n\t document.body.style.paddingBottom = height + 'px';\n\t }\n\t if (this.$slots.collapse) (0, _NodeList2.default)('[data-toggle=\"collapse\"]', this.$el).on('click', function (e) {\n\t return _this.toggleCollapse(e);\n\t });\n\t },\n\t beforeDestroy: function beforeDestroy() {\n\t (0, _NodeList2.default)('.dropdown', this.$el).off('click').offBlur();\n\t if (this.$slots.collapse) (0, _NodeList2.default)('[data-toggle=\"collapse\"]', this.$el).off('click');\n\t }\n\t}; //\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\n/***/ },\n/* 130 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('nav', {\n\t class: ['navbar', 'navbar-' + _vm.type, _vm.placement === 'static' ? 'navbar-static-top' : 'navbar-fixed-' + _vm.placement]\n\t }, [_vm._c('div', {\n\t staticClass: \"container-fluid\"\n\t }, [_vm._c('div', {\n\t staticClass: \"navbar-header\"\n\t }, [(!_vm.$slots.collapse) ? _vm._c('button', {\n\t staticClass: \"navbar-toggle collapsed\",\n\t attrs: {\n\t \"type\": \"button\",\n\t \"aria-expanded\": \"false\"\n\t },\n\t on: {\n\t \"click\": _vm.toggleCollapse\n\t }\n\t }, [_vm._c('span', {\n\t staticClass: \"sr-only\"\n\t }, [_vm._v(\"Toggle navigation\")]), _vm._v(\" \"), _vm._c('span', {\n\t staticClass: \"icon-bar\"\n\t }), _vm._v(\" \"), _vm._c('span', {\n\t staticClass: \"icon-bar\"\n\t }), _vm._v(\" \"), _vm._c('span', {\n\t staticClass: \"icon-bar\"\n\t })]) : _vm._e(), _vm._v(\" \"), _vm._t(\"collapse\"), _vm._v(\" \"), _vm._t(\"brand\")], 2), _vm._v(\" \"), _vm._c('div', {\n\t class: ['navbar-collapse', {\n\t collapse: _vm.collapsed\n\t }]\n\t }, [_vm._c('ul', {\n\t staticClass: \"nav navbar-nav\"\n\t }, [_vm._t(\"default\")], 2), _vm._v(\" \"), (_vm.$slots.left) ? _vm._c('ul', {\n\t staticClass: \"nav navbar-nav navbar-left\"\n\t }, [_vm._t(\"left\")], 2) : _vm._e(), _vm._v(\" \"), (_vm.$slots.right) ? _vm._c('ul', {\n\t staticClass: \"nav navbar-nav navbar-right\"\n\t }, [_vm._t(\"right\")], 2) : _vm._e()])])])\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-38f0619e\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 131 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(132)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(133)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\Option.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-42088116\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-42088116\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] Option.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 132 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t//\n\t\n\texports.default = {\n\t props: { value: null },\n\t data: function data() {\n\t return { loading: true };\n\t },\n\t mounted: function mounted() {\n\t if (this.$parent._select) {\n\t if (!this.$parent.options) {\n\t this.$parent.options = [];\n\t }\n\t var el = {};\n\t el[this.$parent.optionsLabel] = this.$el.innerHTML;\n\t el[this.$parent.optionsValue] = this.value;\n\t this.$parent.options.push(el);\n\t this.loading = false;\n\t } else {\n\t console.warn('options only work inside a select component');\n\t }\n\t }\n\t};\n\n/***/ },\n/* 133 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return (_vm.loading) ? _vm._c('li', [_vm._t(\"default\")], 2) : _vm._e()\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-42088116\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 134 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* styles */\n\t__webpack_require__(135)\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(137)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(138)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\Panel.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-b1e0461a\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-b1e0461a\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] Panel.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 135 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// style-loader: Adds some css to the DOM by adding a \\r\\n\"],\"sourceRoot\":\"webpack://\"}]);\n\t\n\t// exports\n\n\n/***/ },\n/* 137 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t\n\texports.default = {\n\t props: {\n\t header: { type: String },\n\t isOpen: { type: Boolean, default: null },\n\t type: { type: String, default: null }\n\t },\n\t data: function data() {\n\t return {\n\t open: this.isOpen\n\t };\n\t },\n\t\n\t watch: {\n\t isOpen: function isOpen(val) {\n\t this.open = val;\n\t }\n\t },\n\t computed: {\n\t inAccordion: function inAccordion() {\n\t return this.$parent && this.$parent._isAccordion;\n\t },\n\t panelType: function panelType() {\n\t return 'panel-' + (this.type || this.$parent && this.$parent.type || 'default');\n\t }\n\t },\n\t methods: {\n\t toggle: function toggle() {\n\t this.open = !this.open;\n\t if (this.inAccordion) {\n\t this.$parent.openChild(this);\n\t }\n\t },\n\t enter: function enter(el) {\n\t el.style.height = 'auto';\n\t var endWidth = getComputedStyle(el).height;\n\t el.style.height = '0px';\n\t el.offsetHeight; // force repaint\n\t el.style.height = endWidth;\n\t },\n\t afterEnter: function afterEnter(el) {\n\t el.style.height = 'auto';\n\t },\n\t beforeLeave: function beforeLeave(el) {\n\t el.style.height = getComputedStyle(el).height;\n\t el.offsetHeight; // force repaint\n\t el.style.height = '0px';\n\t }\n\t },\n\t created: function created() {\n\t if (this.isOpen === null) {\n\t this.open = !this.inAccordion;\n\t }\n\t }\n\t};\n\n/***/ },\n/* 138 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('div', {\n\t class: ['panel', _vm.panelType]\n\t }, [_vm._c('div', {\n\t class: ['panel-heading', {\n\t 'accordion-toggle': _vm.inAccordion\n\t }],\n\t on: {\n\t \"click\": function($event) {\n\t $event.preventDefault();\n\t _vm.inAccordion && _vm.toggle()\n\t }\n\t }\n\t }, [_vm._t(\"header\", [_vm._c('h4', {\n\t staticClass: \"panel-title\"\n\t }, [_vm._v(_vm._s(_vm.header))])])], 2), _vm._v(\" \"), _vm._c('transition', {\n\t attrs: {\n\t \"name\": \"collapse\"\n\t },\n\t on: {\n\t \"enter\": _vm.enter,\n\t \"after-enter\": _vm.afterEnter,\n\t \"before-leave\": _vm.beforeLeave\n\t }\n\t }, [(_vm.open) ? _vm._c('div', {\n\t staticClass: \"panel-collapse\"\n\t }, [_vm._c('div', {\n\t staticClass: \"panel-body\"\n\t }, [_vm._t(\"default\")], 2)]) : _vm._e()])], 1)\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-b1e0461a\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 139 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* styles */\n\t__webpack_require__(140)\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(142)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(144)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\Popover.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-2465bf54\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-2465bf54\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] Popover.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 140 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// style-loader: Adds some css to the DOM by adding a \\r\\n\"],\"sourceRoot\":\"webpack://\"}]);\n\t\n\t// exports\n\n\n/***/ },\n/* 142 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _popoverMixins = __webpack_require__(143);\n\t\n\tvar _popoverMixins2 = _interopRequireDefault(_popoverMixins);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = {\n\t mixins: [_popoverMixins2.default],\n\t props: {\n\t trigger: { type: String, default: 'click' }\n\t }\n\t}; //\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\n/***/ },\n/* 143 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _NodeList = __webpack_require__(1);\n\t\n\tvar _NodeList2 = _interopRequireDefault(_NodeList);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = {\n\t props: {\n\t content: { type: String },\n\t effect: { type: String, default: 'fade' },\n\t header: { type: Boolean, default: true },\n\t placement: { type: String, default: 'top' },\n\t title: { type: String },\n\t trigger: { type: String }\n\t },\n\t data: function data() {\n\t return {\n\t top: 0,\n\t left: 0,\n\t show: false\n\t };\n\t },\n\t\n\t computed: {\n\t events: function events() {\n\t return { contextmenu: ['contextmenu'], hover: ['mouseleave', 'mouseenter'], focus: ['blur', 'focus'] }[this.trigger] || ['click'];\n\t }\n\t },\n\t methods: {\n\t beforeEnter: function beforeEnter() {\n\t var _this = this;\n\t\n\t this.position();\n\t setTimeout(function () {\n\t return _this.position();\n\t }, 30);\n\t },\n\t position: function position() {\n\t var _this2 = this;\n\t\n\t this.$nextTick(function () {\n\t var popover = _this2.$refs.popover;\n\t var trigger = _this2.$refs.trigger.children[0];\n\t switch (_this2.placement) {\n\t case 'top':\n\t _this2.left = trigger.offsetLeft - popover.offsetWidth / 2 + trigger.offsetWidth / 2;\n\t _this2.top = trigger.offsetTop - popover.offsetHeight;\n\t break;\n\t case 'left':\n\t _this2.left = trigger.offsetLeft - popover.offsetWidth;\n\t _this2.top = trigger.offsetTop + trigger.offsetHeight / 2 - popover.offsetHeight / 2;\n\t break;\n\t case 'right':\n\t _this2.left = trigger.offsetLeft + trigger.offsetWidth;\n\t _this2.top = trigger.offsetTop + trigger.offsetHeight / 2 - popover.offsetHeight / 2;\n\t break;\n\t case 'bottom':\n\t _this2.left = trigger.offsetLeft - popover.offsetWidth / 2 + trigger.offsetWidth / 2;\n\t _this2.top = trigger.offsetTop + trigger.offsetHeight;\n\t break;\n\t default:\n\t console.warn('Wrong placement prop');\n\t }\n\t popover.style.top = _this2.top + 'px';\n\t popover.style.left = _this2.left + 'px';\n\t });\n\t },\n\t toggle: function toggle(e) {\n\t if (e && this.trigger === 'contextmenu') e.preventDefault();\n\t this.show = !this.show;\n\t if (this.show) this.beforeEnter();\n\t }\n\t },\n\t mounted: function mounted() {\n\t var _this3 = this;\n\t\n\t var trigger = this.$refs.trigger.children[0];\n\t if (!trigger) return console.error('Could not find trigger v-el in your component that uses popoverMixin.');\n\t\n\t if (this.trigger === 'focus' && !~trigger.tabIndex) {\n\t trigger = (0, _NodeList2.default)('a,input,select,textarea,button', trigger);\n\t if (!trigger.length) {\n\t return;\n\t }\n\t }\n\t this.events.forEach(function (event) {\n\t (0, _NodeList2.default)(trigger).on(event, _this3.toggle);\n\t });\n\t },\n\t beforeDestroy: function beforeDestroy() {\n\t if (this._trigger) (0, _NodeList2.default)(this._trigger).off();\n\t }\n\t};\n\n/***/ },\n/* 144 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('span', {\n\t ref: \"trigger\"\n\t }, [_vm._t(\"default\"), _vm._v(\" \"), _vm._c('transition', {\n\t attrs: {\n\t \"name\": _vm.effect\n\t }\n\t }, [(_vm.show) ? _vm._c('div', {\n\t ref: \"popover\",\n\t class: ['popover', _vm.placement]\n\t }, [_vm._c('div', {\n\t staticClass: \"arrow\"\n\t }), _vm._v(\" \"), (_vm.title) ? _vm._c('h3', {\n\t staticClass: \"popover-title\"\n\t }, [_vm._t(\"title\", [_vm._v(_vm._s(_vm.title))])], 2) : _vm._e(), _vm._v(\" \"), _vm._c('div', {\n\t staticClass: \"popover-content\"\n\t }, [_vm._t(\"content\", [_vm._c('span', {\n\t domProps: {\n\t \"innerHTML\": _vm._s(_vm.content)\n\t }\n\t })])], 2)]) : _vm._e()])], 2)\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-2465bf54\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 145 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(146)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(147)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\Progressbar.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-68aa3375\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-68aa3375\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] Progressbar.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 146 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _utils = __webpack_require__(65);\n\t\n\texports.default = {\n\t props: {\n\t animated: { type: Boolean, default: false },\n\t label: { default: false },\n\t now: { required: true },\n\t striped: { type: Boolean, default: false },\n\t type: { type: String }\n\t },\n\t computed: {\n\t labelBool: function labelBool() {\n\t return _utils.coerce.boolean(this.label);\n\t },\n\t nowNum: function nowNum() {\n\t return _utils.coerce.number(this.now);\n\t }\n\t }\n\t}; //\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\n/***/ },\n/* 147 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('div', {\n\t class: ['progress-bar', 'progress-bar-' + _vm.type, {\n\t active: _vm.animated,\n\t 'progress-bar-striped': _vm.striped\n\t }],\n\t style: ({\n\t width: _vm.nowNum + '%'\n\t }),\n\t domProps: {\n\t \"textContent\": _vm._s(_vm.labelBool ? _vm.nowNum + '%' : null)\n\t }\n\t })\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-68aa3375\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 148 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* styles */\n\t__webpack_require__(149)\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(151)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(152)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\Radio.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-74cfd92c\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-74cfd92c\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] Radio.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 149 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// style-loader: Adds some css to the DOM by adding a \\r\\n\"],\"sourceRoot\":\"webpack://\"}]);\n\t\n\t// exports\n\n\n/***/ },\n/* 151 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t\n\texports.default = {\n\t props: {\n\t button: { type: Boolean, default: false },\n\t checkedValue: { default: true },\n\t disabled: { type: Boolean, default: false },\n\t name: { type: String, default: null },\n\t readonly: { type: Boolean, default: false },\n\t type: { type: String, default: null },\n\t value: { default: false }\n\t },\n\t data: function data() {\n\t return {\n\t check: this.value\n\t };\n\t },\n\t\n\t computed: {\n\t active: function active() {\n\t return this.check === this.checkedValue;\n\t },\n\t parentValue: function parentValue() {\n\t return this._inGroup ? this.$parent.val === this.value : null;\n\t },\n\t buttonStyle: function buttonStyle() {\n\t return this.button || this._inGroup && this.$parent.buttons;\n\t },\n\t typeColor: function typeColor() {\n\t return this.type || this.$parent && this.$parent.type || 'default';\n\t }\n\t },\n\t watch: {\n\t check: function check(val) {\n\t if (this.checkedValue === val) {\n\t this.$emit('input', val);\n\t this.$emit('checked', true);\n\t if (this._inGroup) {\n\t this.$parent.val = val;\n\t }\n\t }\n\t },\n\t parentValue: function parentValue(val) {\n\t if (this.check !== val && this.checkedValue === val) {\n\t this.check = val;\n\t }\n\t },\n\t value: function value(val) {\n\t this.check = this.checkedValue === val ? val : null;\n\t }\n\t },\n\t created: function created() {\n\t var parent = this.$parent;\n\t if (parent && parent._btnGroup && !parent._checkboxGroup) {\n\t this._inGroup = true;\n\t parent._radioGroup = true;\n\t }\n\t if (this.$parent._radioGroup) {\n\t if (this.$parent.val) {\n\t this.check = this.$parent.val === this.checkedValue;\n\t } else if (this.check) {\n\t this.$parent.val = this.checkedValue;\n\t }\n\t }\n\t },\n\t\n\t methods: {\n\t focus: function focus() {\n\t this.$refs.input.focus();\n\t },\n\t toggle: function toggle() {\n\t if (this.disabled) {\n\t return;\n\t }\n\t this.focus();\n\t if (this.readonly) {\n\t return;\n\t }\n\t this.check = this.checkedValue;\n\t if (this._inGroup) {\n\t this.$parent.val = this.checkedValue;\n\t }\n\t }\n\t }\n\t};\n\n/***/ },\n/* 152 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c(_vm.buttonStyle ? 'label' : 'div', {\n\t tag: \"div\",\n\t class: [(_vm.buttonStyle ? 'btn btn-' + _vm.typeColor : 'radio ' + _vm.typeColor), {\n\t active: _vm.active,\n\t disabled: _vm.disabled,\n\t readonly: _vm.readonly\n\t }],\n\t on: {\n\t \"click\": function($event) {\n\t $event.preventDefault();\n\t _vm.toggle($event)\n\t }\n\t }\n\t }, [(_vm.buttonStyle) ? [_vm._c('input', {\n\t directives: [{\n\t name: \"show\",\n\t rawName: \"v-show\",\n\t value: (!_vm.readonly),\n\t expression: \"!readonly\"\n\t }, {\n\t name: \"model\",\n\t rawName: \"v-model\",\n\t value: (_vm.check),\n\t expression: \"check\"\n\t }],\n\t ref: \"input\",\n\t attrs: {\n\t \"type\": \"radio\",\n\t \"autocomplete\": \"off\",\n\t \"name\": _vm.name,\n\t \"readonly\": _vm.readonly,\n\t \"disabled\": _vm.disabled\n\t },\n\t domProps: {\n\t \"value\": _vm.checkedValue,\n\t \"checked\": _vm._q(_vm.check, _vm.checkedValue)\n\t },\n\t on: {\n\t \"click\": function($event) {\n\t _vm.check = _vm.checkedValue\n\t }\n\t }\n\t }), _vm._v(\" \"), _vm._t(\"default\")] : _vm._c('label', {\n\t staticClass: \"open\"\n\t }, [_vm._c('input', {\n\t directives: [{\n\t name: \"model\",\n\t rawName: \"v-model\",\n\t value: (_vm.check),\n\t expression: \"check\"\n\t }],\n\t ref: \"input\",\n\t attrs: {\n\t \"type\": \"radio\",\n\t \"autocomplete\": \"off\",\n\t \"name\": _vm.name,\n\t \"readonly\": _vm.readonly,\n\t \"disabled\": _vm.disabled\n\t },\n\t domProps: {\n\t \"value\": _vm.checkedValue,\n\t \"checked\": _vm._q(_vm.check, _vm.checkedValue)\n\t },\n\t on: {\n\t \"click\": function($event) {\n\t _vm.check = _vm.checkedValue\n\t }\n\t }\n\t }), _vm._v(\" \"), _vm._c('span', {\n\t staticClass: \"icon dropdown-toggle\",\n\t class: [_vm.active ? 'btn-' + _vm.typeColor : '', {\n\t bg: _vm.typeColor === 'default'\n\t }]\n\t }), _vm._v(\" \"), (_vm.active && _vm.typeColor === 'default') ? _vm._c('span', {\n\t staticClass: \"icon\"\n\t }) : _vm._e(), _vm._v(\" \"), _vm._t(\"default\")], 2)], 2)\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-74cfd92c\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 153 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* styles */\n\t__webpack_require__(154)\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(156)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(157)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\Select.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t__vue_options__._scopeId = \"data-v-e514dbc6\"\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-e514dbc6\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-e514dbc6\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] Select.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 154 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// style-loader: Adds some css to the DOM by adding a \\r\\n\"],\"sourceRoot\":\"webpack://\"}]);\n\t\n\t// exports\n\n\n/***/ },\n/* 156 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _utils = __webpack_require__(65);\n\t\n\tvar _ClickOutside = __webpack_require__(66);\n\t\n\tvar _ClickOutside2 = _interopRequireDefault(_ClickOutside);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t\n\tvar timeout = {};\n\texports.default = {\n\t directives: {\n\t ClickOutside: _ClickOutside2.default\n\t },\n\t props: {\n\t clearButton: { type: Boolean, default: false },\n\t closeOnSelect: { type: Boolean, default: false },\n\t disabled: { type: Boolean, default: false },\n\t lang: { type: String, default: navigator.language },\n\t limit: { type: Number, default: 1024 },\n\t minSearch: { type: Number, default: 0 },\n\t multiple: { type: Boolean, default: false },\n\t name: { type: String, default: null },\n\t options: { type: Array, default: function _default() {\n\t return [];\n\t }\n\t },\n\t optionsLabel: { type: String, default: 'label' },\n\t optionsValue: { type: String, default: 'value' },\n\t parent: { default: true },\n\t placeholder: { type: String, default: null },\n\t readonly: { type: Boolean, default: null },\n\t required: { type: Boolean, default: null },\n\t search: { type: Boolean, default: false },\n\t searchText: { type: String, default: null },\n\t url: { type: String, default: null },\n\t value: null\n\t },\n\t data: function data() {\n\t return {\n\t list: [],\n\t loading: null,\n\t searchValue: null,\n\t show: false,\n\t notify: false,\n\t val: null,\n\t valid: null\n\t };\n\t },\n\t\n\t computed: {\n\t canSearch: function canSearch() {\n\t return this.minSearch ? this.list.length >= this.minSearch : this.search;\n\t },\n\t classes: function classes() {\n\t return [{ open: this.show, disabled: this.disabled }, this.class, this.isLi ? 'dropdown' : this.inInput ? 'input-group-btn' : 'btn-group'];\n\t },\n\t filteredOptions: function filteredOptions() {\n\t var _this = this;\n\t\n\t var search = (this.searchValue || '').toLowerCase();\n\t return !search ? this.list : this.list.filter(function (el) {\n\t return ~el[_this.optionsLabel].toLowerCase().search(search);\n\t });\n\t },\n\t hasParent: function hasParent() {\n\t return this.parent instanceof Array ? this.parent.length : this.parent;\n\t },\n\t inInput: function inInput() {\n\t return this.$parent._input;\n\t },\n\t isLi: function isLi() {\n\t return this.$parent._navbar || this.$parent.menu || this.$parent._tabset;\n\t },\n\t limitText: function limitText() {\n\t return this.text.limit.replace('{{limit}}', this.limit);\n\t },\n\t selected: function selected() {\n\t var _this2 = this;\n\t\n\t if (this.list.length === 0) {\n\t return '';\n\t }\n\t var sel = this.values.map(function (val) {\n\t return (_this2.list.find(function (o) {\n\t return o[_this2.optionsValue] === val;\n\t }) || {})[_this2.optionsLabel];\n\t }).filter(function (val) {\n\t return val !== undefined;\n\t });\n\t this.$emit('selected', sel);\n\t return sel.join(', ');\n\t },\n\t showPlaceholder: function showPlaceholder() {\n\t return this.values.length === 0 || !this.hasParent ? this.placeholder || this.text.notSelected : null;\n\t },\n\t text: function text() {\n\t return (0, _utils.translations)(this.lang);\n\t },\n\t values: function values() {\n\t return this.val instanceof Array ? this.val : ~[null, undefined].indexOf(this.val) ? [] : [this.val];\n\t },\n\t valOptions: function valOptions() {\n\t var _this3 = this;\n\t\n\t return this.list.map(function (el) {\n\t return el[_this3.optionsValue];\n\t });\n\t }\n\t },\n\t watch: {\n\t options: function options(_options) {\n\t if (_options instanceof Array) this.setOptions(_options);\n\t },\n\t show: function show(val) {\n\t if (val) {\n\t this.$refs.search ? this.$refs.search.focus() : this.$refs.btn.focus();\n\t // onBlur(this.$refs.select, e => { this.show = false })\n\t } else {\n\t // offBlur(this.$refs.select)\n\t }\n\t },\n\t url: function url() {\n\t this.urlChanged();\n\t },\n\t valid: function valid(val, old) {\n\t this.$emit('isvalid', val);\n\t this.$emit(!val ? 'invalid' : 'valid');\n\t if (val !== old && this._parent) this._parent.validate();\n\t },\n\t value: function value(val, old) {\n\t if (val !== old) {\n\t this.val = val;\n\t }\n\t },\n\t val: function val(_val, old) {\n\t var _this4 = this;\n\t\n\t if (_val === undefined) {\n\t this.val = _val = null;\n\t }\n\t if (_val !== old) {\n\t this.$emit('change', _val);\n\t this.$emit('input', _val);\n\t }\n\t if (_val instanceof Array && _val.length > this.limit) {\n\t this.val = _val.slice(0, this.limit);\n\t this.notify = true;\n\t if (timeout.limit) clearTimeout(timeout.limit);\n\t timeout.limit = setTimeout(function () {\n\t timeout.limit = false;\n\t _this4.notify = false;\n\t }, 1500);\n\t }\n\t this.valid = this.validate();\n\t }\n\t },\n\t methods: {\n\t close: function close() {\n\t this.show = false;\n\t },\n\t checkData: function checkData() {\n\t if (this.multiple) {\n\t if (this.limit < 1) {\n\t this.limit = 1;\n\t }\n\t if (!(this.val instanceof Array)) {\n\t this.val = this.val === null || this.val === undefined ? [] : [this.val];\n\t }\n\t var values = this.valOptions;\n\t this.val = this.val.filter(function (el) {\n\t return ~values.indexOf(el);\n\t });\n\t if (this.values.length > this.limit) {\n\t this.val = this.val.slice(0, this.limit);\n\t }\n\t } else {\n\t if (!~this.valOptions.indexOf(this.val)) {\n\t this.val = null;\n\t }\n\t }\n\t },\n\t clear: function clear() {\n\t if (this.disabled || this.readonly) {\n\t return;\n\t }\n\t this.val = this.val instanceof Array ? [] : null;\n\t this.toggle();\n\t },\n\t clearSearch: function clearSearch() {\n\t this.searchValue = '';\n\t this.$refs.search.focus();\n\t },\n\t isSelected: function isSelected(v) {\n\t return this.values.indexOf(v) > -1;\n\t },\n\t select: function select(v) {\n\t if (this.val instanceof Array) {\n\t var newVal = this.val.slice(0);\n\t if (~newVal.indexOf(v)) {\n\t newVal.splice(newVal.indexOf(v), 1);\n\t } else {\n\t newVal.push(v);\n\t }\n\t this.val = newVal;\n\t if (this.closeOnSelect) {\n\t this.toggle();\n\t }\n\t } else {\n\t this.val = v;\n\t this.toggle();\n\t }\n\t },\n\t setOptions: function setOptions(options) {\n\t var _this5 = this;\n\t\n\t this.list = options.map(function (el) {\n\t if (el instanceof Object) {\n\t return el;\n\t }\n\t var obj = {};\n\t obj[_this5.optionsLabel] = el;\n\t obj[_this5.optionsValue] = el;\n\t return obj;\n\t });\n\t this.$emit('options', this.list);\n\t },\n\t toggle: function toggle() {\n\t this.show = !this.show;\n\t if (!this.show) this.$refs.btn.focus();\n\t },\n\t urlChanged: function urlChanged() {\n\t var _this6 = this;\n\t\n\t if (!this.url || !this.$http) {\n\t return;\n\t }\n\t this.loading = true;\n\t this.$http.get(this.url).then(function (response) {\n\t var data = response.data instanceof Array ? response.data : [];\n\t try {\n\t data = JSON.parse(data);\n\t } catch (e) {}\n\t _this6.setOptions(data);\n\t _this6.loading = false;\n\t _this6.checkData();\n\t }, function (response) {\n\t _this6.loading = false;\n\t });\n\t },\n\t validate: function validate() {\n\t return !this.required ? true : this.val instanceof Array ? this.val.length > 0 : this.val !== null;\n\t }\n\t },\n\t created: function created() {\n\t this.setOptions(this.options);\n\t this.val = this.value;\n\t this._select = true;\n\t if (this.val === undefined || !this.parent) {\n\t this.val = null;\n\t }\n\t if (!this.multiple && this.val instanceof Array) {\n\t this.val = this.val[0];\n\t }\n\t this.checkData();\n\t if (this.url) this.urlChanged();\n\t var parent = this.$parent;\n\t while (parent && !parent._formValidator) {\n\t parent = parent.$parent;\n\t }\n\t if (parent && parent._formValidator) {\n\t parent.children.push(this);\n\t this._parent = parent;\n\t }\n\t },\n\t mounted: function mounted() {\n\t if (this._parent) this._parent.children.push(this);\n\t this.setOptions(this.options);\n\t this.val = this.value;\n\t this.checkData();\n\t },\n\t beforeDestroy: function beforeDestroy() {\n\t if (this._parent) {\n\t var index = this._parent.children.indexOf(this);\n\t this._parent.children.splice(index, 1);\n\t }\n\t }\n\t};\n\n/***/ },\n/* 157 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('div', {\n\t directives: [{\n\t name: \"click-outside\",\n\t rawName: \"v-click-outside\",\n\t value: (_vm.close),\n\t expression: \"close\"\n\t }],\n\t ref: \"select\",\n\t class: _vm.classes\n\t }, [_vm._c('div', {\n\t ref: \"btn\",\n\t staticClass: \"form-control dropdown-toggle\",\n\t attrs: {\n\t \"tabindex\": \"1\",\n\t \"disabled\": _vm.disabled || !_vm.hasParent,\n\t \"readonly\": _vm.readonly\n\t },\n\t on: {\n\t \"blur\": function($event) {\n\t _vm.canSearch ? null : _vm.close()\n\t },\n\t \"click\": function($event) {\n\t _vm.toggle()\n\t },\n\t \"keydown\": [function($event) {\n\t if (_vm._k($event.keyCode, \"esc\", 27)) { return; }\n\t $event.stopPropagation();\n\t $event.preventDefault();\n\t _vm.close($event)\n\t }, function($event) {\n\t if (_vm._k($event.keyCode, \"space\", 32)) { return; }\n\t $event.stopPropagation();\n\t $event.preventDefault();\n\t _vm.toggle($event)\n\t }, function($event) {\n\t if (_vm._k($event.keyCode, \"enter\", 13)) { return; }\n\t $event.stopPropagation();\n\t $event.preventDefault();\n\t _vm.toggle($event)\n\t }]\n\t }\n\t }, [_vm._c('span', {\n\t staticClass: \"btn-content\",\n\t domProps: {\n\t \"innerHTML\": _vm._s(_vm.loading ? _vm.text.loading : _vm.showPlaceholder || _vm.selected)\n\t }\n\t }), _vm._v(\" \"), (_vm.clearButton && _vm.values.length) ? _vm._c('span', {\n\t staticClass: \"close\",\n\t on: {\n\t \"click\": function($event) {\n\t _vm.clear()\n\t }\n\t }\n\t }, [_vm._v(\"×\")]) : _vm._e()]), _vm._v(\" \"), _vm._c('select', {\n\t directives: [{\n\t name: \"model\",\n\t rawName: \"v-model\",\n\t value: (_vm.val),\n\t expression: \"val\"\n\t }],\n\t ref: \"sel\",\n\t staticClass: \"secret\",\n\t attrs: {\n\t \"name\": _vm.name,\n\t \"multiple\": _vm.multiple,\n\t \"required\": _vm.required,\n\t \"readonly\": _vm.readonly,\n\t \"disabled\": _vm.disabled\n\t },\n\t on: {\n\t \"change\": function($event) {\n\t _vm.val = Array.prototype.filter.call($event.target.options, function(o) {\n\t return o.selected\n\t }).map(function(o) {\n\t var val = \"_value\" in o ? o._value : o.value;\n\t return val\n\t })[0]\n\t }\n\t }\n\t }, [(_vm.required) ? _vm._c('option', {\n\t attrs: {\n\t \"value\": \"\"\n\t }\n\t }) : _vm._e(), _vm._v(\" \"), _vm._l((_vm.list), function(option) {\n\t return _vm._c('option', {\n\t domProps: {\n\t \"value\": option[_vm.optionsValue]\n\t }\n\t }, [_vm._v(_vm._s(option[_vm.optionsLabel]))])\n\t })], 2), _vm._v(\" \"), _vm._c('ul', {\n\t staticClass: \"dropdown-menu\"\n\t }, [(_vm.list.length) ? [(_vm.canSearch) ? _vm._c('li', {\n\t staticClass: \"bs-searchbox\"\n\t }, [_vm._c('input', {\n\t directives: [{\n\t name: \"model\",\n\t rawName: \"v-model\",\n\t value: (_vm.searchValue),\n\t expression: \"searchValue\"\n\t }],\n\t ref: \"search\",\n\t staticClass: \"form-control\",\n\t attrs: {\n\t \"type\": \"text\",\n\t \"placeholder\": _vm.searchText || _vm.text.search,\n\t \"autocomplete\": \"off\"\n\t },\n\t domProps: {\n\t \"value\": _vm._s(_vm.searchValue)\n\t },\n\t on: {\n\t \"keyup\": function($event) {\n\t if (_vm._k($event.keyCode, \"esc\", 27)) { return; }\n\t _vm.close($event)\n\t },\n\t \"input\": function($event) {\n\t if ($event.target.composing) { return; }\n\t _vm.searchValue = $event.target.value\n\t }\n\t }\n\t }), _vm._v(\" \"), _vm._c('span', {\n\t directives: [{\n\t name: \"show\",\n\t rawName: \"v-show\",\n\t value: (_vm.searchValue),\n\t expression: \"searchValue\"\n\t }],\n\t staticClass: \"close\",\n\t on: {\n\t \"click\": _vm.clearSearch\n\t }\n\t }, [_vm._v(\"×\")])]) : _vm._e(), _vm._v(\" \"), (_vm.required && !_vm.clearButton) ? _vm._c('li', [_vm._c('a', {\n\t on: {\n\t \"mousedown\": function($event) {\n\t $event.preventDefault();\n\t _vm.clear() && _vm.close()\n\t }\n\t }\n\t }, [_vm._v(_vm._s(_vm.placeholder || _vm.text.notSelected))])]) : _vm._e(), _vm._v(\" \"), _vm._l((_vm.filteredOptions), function(option) {\n\t return _vm._c('li', {\n\t attrs: {\n\t \"id\": option[_vm.optionsValue]\n\t }\n\t }, [_vm._c('a', {\n\t on: {\n\t \"mousedown\": function($event) {\n\t $event.preventDefault();\n\t _vm.select(option[_vm.optionsValue])\n\t }\n\t }\n\t }, [_vm._c('span', {\n\t domProps: {\n\t \"innerHTML\": _vm._s(option[_vm.optionsLabel])\n\t }\n\t }), _vm._v(\" \"), _vm._c('span', {\n\t directives: [{\n\t name: \"show\",\n\t rawName: \"v-show\",\n\t value: (_vm.isSelected(option[_vm.optionsValue])),\n\t expression: \"isSelected(option[optionsValue])\"\n\t }],\n\t staticClass: \"glyphicon glyphicon-ok check-mark\"\n\t })])])\n\t })] : _vm._e(), _vm._v(\" \"), _vm._t(\"default\"), _vm._v(\" \"), (_vm.notify && !_vm.closeOnSelect) ? _vm._c('transition', {\n\t attrs: {\n\t \"name\": \"fadein\"\n\t }\n\t }, [_vm._c('div', {\n\t staticClass: \"notify in\"\n\t }, [_vm._v(_vm._s(_vm.limitText))])]) : _vm._e()], 2), _vm._v(\" \"), (_vm.notify && _vm.closeOnSelect) ? _vm._c('transition', {\n\t attrs: {\n\t \"name\": \"fadein\"\n\t }\n\t }, [_vm._c('div', {\n\t staticClass: \"notify out\"\n\t }, [_vm._c('div', [_vm._v(_vm._s(_vm.limitText))])])]) : _vm._e()], 1)\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-e514dbc6\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 158 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(159)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(160)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\Slider.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-32185b82\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-32185b82\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] Slider.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 159 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t//\n\t//\n\t\n\texports.default = {\n\t computed: {\n\t index: function index() {\n\t return this.$parent.$children.indexOf(this);\n\t },\n\t show: function show() {\n\t return this.$parent.index === this.index;\n\t }\n\t },\n\t mounted: function mounted() {\n\t if (this.$parent.indicator_list) {\n\t this.$parent.indicator_list.push(this.index);\n\t }\n\t\n\t if (this.index === 0) {\n\t this.$el.classList.add('active');\n\t }\n\t }\n\t};\n\n/***/ },\n/* 160 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('div', {\n\t staticClass: \"item\"\n\t }, [_vm._t(\"default\")], 2)\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-32185b82\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 161 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* styles */\n\t__webpack_require__(162)\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(164)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(165)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\Spinner.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-8b298e70\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-8b298e70\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] Spinner.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 162 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// style-loader: Adds some css to the DOM by adding a \\r\\n\"],\"sourceRoot\":\"webpack://\"}]);\n\t\n\t// exports\n\n\n/***/ },\n/* 164 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _utils = __webpack_require__(65);\n\t\n\tvar MIN_WAIT = 500; // in ms\n\t\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t\n\texports.default = {\n\t props: {\n\t fixed: { type: Boolean, default: false },\n\t global: { type: Boolean, default: false },\n\t size: { type: String, default: 'md' },\n\t text: { type: String, default: '' },\n\t value: { default: false }\n\t },\n\t data: function data() {\n\t return {\n\t active: this.value,\n\t locked: false\n\t };\n\t },\n\t\n\t computed: {\n\t spinnerSize: function spinnerSize() {\n\t return 'spinner-' + (this.size ? this.size : 'sm');\n\t }\n\t },\n\t watch: {\n\t active: function active(val, old) {\n\t if (val !== old) this.$emit('input', val);\n\t },\n\t value: function value(val, old) {\n\t if (val !== old) {\n\t this[val ? 'show' : 'hide']();\n\t }\n\t }\n\t },\n\t methods: {\n\t hide: function hide() {\n\t var delay = 0;\n\t this.active = false;\n\t },\n\t show: function show(options) {\n\t if (options) {\n\t if (options.text) {\n\t this.text = options.text;\n\t }\n\t if (options.size) {\n\t this.size = options.size;\n\t }\n\t if (options.fixed) {\n\t this.fixed = options.fixed;\n\t }\n\t }\n\t // block scrolling when spinner is on\n\t this._body.style.overflowY = 'hidden';\n\t // activate spinner\n\t this._started = new Date();\n\t this.active = true;\n\t this.locked = true;\n\t this._unlock();\n\t }\n\t },\n\t created: function created() {\n\t this._body = document.body;\n\t this._bodyOverflow = document.body.style.overflowY;\n\t this._unlock = (0, _utils.delayer)(function () {\n\t this.locked = false;\n\t this._body.style.overflowY = this._bodyOverflow;\n\t }, MIN_WAIT);\n\t if (this.global) {\n\t if (!this.$root._globalSpinner) {\n\t this.$root._globalSpinner = true;\n\t var self = this;\n\t this._global = {\n\t hide: function hide() {\n\t self.hide();\n\t },\n\t show: function show() {\n\t self.show();\n\t }\n\t };\n\t this.$root.$on('spinner::show', this._global.show);\n\t this.$root.$on('spinner::hide', this._global.hide);\n\t }\n\t }\n\t },\n\t beforeDestroy: function beforeDestroy() {\n\t if (this._global) {\n\t this.$root.$off('spinner::show', this._global.show);\n\t this.$root.$off('spinner::hide', this._global.hide);\n\t delete this.$root._globalSpinner;\n\t }\n\t clearTimeout(this._spinnerAnimation);\n\t this._body.style.overflowY = this._bodyOverflow;\n\t }\n\t};\n\n/***/ },\n/* 165 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('div', {\n\t directives: [{\n\t name: \"show\",\n\t rawName: \"v-show\",\n\t value: (_vm.active || _vm.locked),\n\t expression: \"active||locked\"\n\t }],\n\t class: ['spinner spinner-gritcode', _vm.spinnerSize, {\n\t 'spinner-fixed': _vm.fixed\n\t }]\n\t }, [_vm._c('div', {\n\t staticClass: \"spinner-wrapper\"\n\t }, [_vm._c('div', {\n\t staticClass: \"spinner-circle\"\n\t }), _vm._v(\" \"), _vm._c('div', {\n\t staticClass: \"spinner-text\"\n\t }, [_vm._v(_vm._s(_vm.text))])])])\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-8b298e70\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 166 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(167)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(168)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\Tab.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-0985e878\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-0985e878\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] Tab.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 167 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t//\n\t//\n\t//\n\t//\n\t\n\texports.default = {\n\t props: {\n\t disabled: { type: Boolean, default: false },\n\t header: { type: String }\n\t },\n\t data: function data() {\n\t return {\n\t fadein: false\n\t };\n\t },\n\t\n\t computed: {\n\t active: function active() {\n\t var _this = this;\n\t\n\t var active = !this._tabs || this._tabs.show === this;\n\t this.fadein = false;\n\t if (active) {\n\t setTimeout(function () {\n\t _this.fadein = true;\n\t }, 0);\n\t }\n\t return active;\n\t },\n\t index: function index() {\n\t return this._tabs.tabs.indexOf(this);\n\t },\n\t transition: function transition() {\n\t return this._tabs ? this._tabs.effect : null;\n\t }\n\t },\n\t created: function created() {\n\t this._isTab = true;\n\t var tabs = this;\n\t while (!this._tabs && tabs.$parent) {\n\t if (tabs._isTabGroup) {\n\t tabs.tabs.push(this);\n\t this._tabGroup = tabs;\n\t }\n\t if (tabs._isTabs) {\n\t tabs.tabs.push(this);\n\t this._tabs = tabs;\n\t if (!this._tabGroup) tabs.headers.push(this);\n\t }\n\t tabs = tabs.$parent;\n\t }\n\t if (!this._tabs) throw Error('tab depend on tabs.');\n\t },\n\t beforeDestroy: function beforeDestroy() {\n\t var _this2 = this;\n\t\n\t if (this._tabGroup) {\n\t this._tabGroup.tabs = this._tabGroup.tabs.filter(function (el) {\n\t return el !== _this2;\n\t });\n\t }\n\t if (this._tabs) {\n\t this._tabs.tabs = this._tabs.tabs.filter(function (el) {\n\t return el !== _this2;\n\t });\n\t }\n\t if (this._tabs) {\n\t if (this._tabs.active === this.index) {\n\t this._tabs.index = 0;\n\t }\n\t if (this._ingroup) {\n\t var id = this.$parent.tabs.indexOf(this);\n\t if (~id) this.$parent.tabs.splice(id, 1);\n\t }\n\t }\n\t if (this._tabs) {\n\t var _id = this._tabs.tabs.indexOf(this);\n\t if (~_id) this._tabs.tabs.splice(_id, 1);\n\t }\n\t }\n\t};\n\n/***/ },\n/* 168 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('div', {\n\t ref: \"panel\",\n\t class: ['tab-pane', {\n\t 'active fade': _vm.active,\n\t 'in': _vm.fadein\n\t }],\n\t attrs: {\n\t \"role\": \"tabpanel\"\n\t }\n\t }, [_vm._t(\"default\")], 2)\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-0985e878\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 169 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* styles */\n\t__webpack_require__(170)\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(172)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(173)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\TabGroup.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-55faf3cb\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-55faf3cb\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] TabGroup.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 170 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// style-loader: Adds some css to the DOM by adding a \\r\\n\"],\"sourceRoot\":\"webpack://\"}]);\n\t\n\t// exports\n\n\n/***/ },\n/* 172 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t//\n\t//\n\t\n\texports.default = {\n\t props: {\n\t disabled: { type: Boolean, default: false },\n\t header: { type: String }\n\t },\n\t data: function data() {\n\t return {\n\t show: false,\n\t tabs: []\n\t };\n\t },\n\t\n\t computed: {\n\t active: function active() {\n\t return ~this.tabs.indexOf(this._tabs.show);\n\t }\n\t },\n\t methods: {\n\t blur: function blur() {\n\t this.show = false;\n\t },\n\t toggle: function toggle() {\n\t this.show = !this.show;\n\t }\n\t },\n\t created: function created() {\n\t this._isTabGroup = true;\n\t if (this.$parent) {\n\t if (this.$parent._isTabGroup) throw Error('Can\\'t nest tab-groups.');\n\t if (!this.$parent._isTabs) throw Error('tab-group depend on tabs.');\n\t }\n\t this._tabs = this.$parent;\n\t this._tabs.headers.push(this);\n\t }\n\t};\n\n/***/ },\n/* 173 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('span', [_vm._t(\"default\")], 2)\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-55faf3cb\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 174 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* styles */\n\t__webpack_require__(175)\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(177)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(178)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\Tabs.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-70100ddf\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-70100ddf\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] Tabs.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 175 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// style-loader: Adds some css to the DOM by adding a \"],\"sourceRoot\":\"webpack://\"}]);\n\t\n\t// exports\n\n\n/***/ },\n/* 177 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _utils = __webpack_require__(65);\n\t\n\tvar _Dropdown = __webpack_require__(105);\n\t\n\tvar _Dropdown2 = _interopRequireDefault(_Dropdown);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t\n\texports.default = {\n\t components: {\n\t dropdown: _Dropdown2.default\n\t },\n\t props: {\n\t // effect: {type: String, default: 'fadein'},\n\t justified: false,\n\t navStyle: { type: String, default: null },\n\t value: { type: Number, default: 0 }\n\t },\n\t data: function data() {\n\t var index = this.value || 0;\n\t return {\n\t index: index,\n\t headers: [],\n\t tabs: []\n\t };\n\t },\n\t\n\t watch: {\n\t index: function index(val) {\n\t this.$emit('active', val);\n\t this.$emit('input', val);\n\t },\n\t value: function value(val) {\n\t this.index = val;\n\t }\n\t },\n\t computed: {\n\t navStyleClass: function navStyleClass() {\n\t return ['nav', ~['pills', 'stacked'].indexOf(this.navStyle) ? 'nav-' + this.navStyle : 'nav-tabs', {\n\t 'nav-justified': _utils.coerce.boolean(this.justified),\n\t 'nav-pills': this.navStyle === 'stacked'\n\t }];\n\t },\n\t show: function show() {\n\t return this.tabs[this.index] || this.tabs[0];\n\t }\n\t },\n\t methods: {\n\t select: function select(tab) {\n\t if (!tab.disabled) {\n\t this.index = this.tabs.indexOf(tab);\n\t }\n\t }\n\t },\n\t created: function created() {\n\t this._isTabs = true;\n\t }\n\t};\n\n/***/ },\n/* 178 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('div', {\n\t attrs: {\n\t \"tabs\": \"\"\n\t }\n\t }, [_vm._c('ul', {\n\t class: _vm.navStyleClass,\n\t attrs: {\n\t \"role\": \"tablist\"\n\t }\n\t }, [_vm._l((_vm.headers), function(header) {\n\t return [(header._isTab) ? _vm._c('li', {\n\t class: {\n\t active: header.active, disabled: header.disabled\n\t },\n\t on: {\n\t \"click\": function($event) {\n\t $event.preventDefault();\n\t _vm.select(header)\n\t }\n\t }\n\t }, [_vm._t(\"header\", [_vm._c('a', {\n\t attrs: {\n\t \"href\": \"#\"\n\t },\n\t domProps: {\n\t \"innerHTML\": _vm._s(header.header)\n\t }\n\t })])], 2) : _vm._e(), _vm._v(\" \"), (header._isTabGroup) ? _vm._c('dropdown', {\n\t class: {\n\t active: header.active\n\t },\n\t attrs: {\n\t \"text\": header.header,\n\t \"disabled\": header.disabled\n\t }\n\t }, _vm._l((header.tabs), function(tab) {\n\t return _vm._c('li', {\n\t class: {\n\t disabled: tab.disabled\n\t }\n\t }, [_vm._c('a', {\n\t attrs: {\n\t \"href\": \"#\"\n\t },\n\t on: {\n\t \"click\": function($event) {\n\t $event.preventDefault();\n\t _vm.select(tab)\n\t }\n\t }\n\t }, [_vm._v(_vm._s(tab.header))])])\n\t })) : _vm._e()]\n\t })], 2), _vm._v(\" \"), _vm._c('div', {\n\t staticClass: \"tab-content\"\n\t }, [_vm._t(\"default\")], 2)])\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-70100ddf\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 179 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(180)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(181)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\ToggleButton.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-f034a5f2\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-f034a5f2\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] ToggleButton.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 180 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _utils = __webpack_require__(65);\n\t\n\texports.default = {\n\t props: {\n\t disabled: { default: null },\n\t falseType: { default: null },\n\t name: null,\n\t readonly: { default: null },\n\t trueType: { default: 'primary' },\n\t value: false\n\t },\n\t data: function data() {\n\t return {\n\t active: _utils.coerce.boolean(this.value),\n\t types: {\n\t danger: 'btn-danger',\n\t info: 'btn-info',\n\t primary: 'btn-primary',\n\t success: 'btn-success',\n\t warning: 'btn-warning'\n\t }\n\t };\n\t },\n\t\n\t watch: {\n\t active: function active(val, old) {\n\t if (val !== old) {\n\t this.$emit('changed', val);\n\t this.$emit(val ? 'enabled' : 'disabled');\n\t this.$emit('input', val);\n\t }\n\t },\n\t value: function value(val, old) {\n\t if (val !== old) {\n\t this.active = _utils.coerce.boolean(this.value);\n\t }\n\t }\n\t },\n\t computed: {\n\t boolDisabled: function boolDisabled() {\n\t return _utils.coerce.boolean(this.disabled);\n\t },\n\t boolReadonly: function boolReadonly() {\n\t return _utils.coerce.boolean(this.readonly);\n\t },\n\t type: function type() {\n\t return this.types[this.value ? this.trueType : this.falseType] || 'btn-default';\n\t }\n\t },\n\t methods: {\n\t toggle: function toggle() {\n\t if (this.boolDisabled || this.boolReadonly) {\n\t return;\n\t }\n\t this.active = !this.active;\n\t }\n\t }\n\t}; //\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\n/***/ },\n/* 181 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('a', {\n\t class: ['btn', _vm.type, {\n\t readonly: _vm.boolReadonly\n\t }],\n\t attrs: {\n\t \"href\": \"javascript:void(0)\",\n\t \"disabled\": _vm.boolDisabled\n\t },\n\t on: {\n\t \"click\": _vm.toggle\n\t }\n\t }, [_vm._c('span', {\n\t class: ['glyphicon', 'glyphicon-' + (_vm.value ? 'ok' : 'remove')]\n\t }), _vm._v(\" \"), _vm._t(\"default\"), _vm._v(\" \"), (_vm.name) ? _vm._c('input', {\n\t attrs: {\n\t \"type\": \"hidden\",\n\t \"name\": _vm.name\n\t },\n\t domProps: {\n\t \"value\": _vm.active ? 1 : 0\n\t }\n\t }) : _vm._e()], 2)\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-f034a5f2\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 182 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* styles */\n\t__webpack_require__(183)\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(185)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(186)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\Tooltip.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-48fb51b2\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-48fb51b2\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] Tooltip.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 183 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// style-loader: Adds some css to the DOM by adding a \\r\\n\"],\"sourceRoot\":\"webpack://\"}]);\n\t\n\t// exports\n\n\n/***/ },\n/* 185 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _popoverMixins = __webpack_require__(143);\n\t\n\tvar _popoverMixins2 = _interopRequireDefault(_popoverMixins);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = {\n\t mixins: [_popoverMixins2.default],\n\t props: {\n\t effect: { type: String, default: 'scale' },\n\t trigger: { type: String, default: 'hover' }\n\t }\n\t}; //\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\n/***/ },\n/* 186 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('span', {\n\t ref: \"trigger\"\n\t }, [_vm._t(\"default\"), _vm._v(\" \"), _vm._c('transition', {\n\t attrs: {\n\t \"name\": _vm.effect\n\t }\n\t }, [(_vm.show) ? _vm._c('div', {\n\t ref: \"popover\",\n\t class: ['tooltip', _vm.placement]\n\t }, [_vm._c('div', {\n\t staticClass: \"tooltip-arrow\"\n\t }), _vm._v(\" \"), _vm._c('div', {\n\t staticClass: \"tooltip-inner\"\n\t }, [_vm._t(\"content\", [_vm._c('div', {\n\t domProps: {\n\t \"innerHTML\": _vm._s(_vm.content)\n\t }\n\t })])], 2)]) : _vm._e()])], 2)\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-48fb51b2\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 187 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* styles */\n\t__webpack_require__(188)\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(190)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(206)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\Typeahead.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-5b5f5e94\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-5b5f5e94\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] Typeahead.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 188 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// style-loader: Adds some css to the DOM by adding a \"],\"sourceRoot\":\"webpack://\"}]);\n\t\n\t// exports\n\n\n/***/ },\n/* 190 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _typeof2 = __webpack_require__(191);\n\t\n\tvar _typeof3 = _interopRequireDefault(_typeof2);\n\t\n\tvar _utils = __webpack_require__(65);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\tvar DELAY = 300; //\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t\n\texports.default = {\n\t props: {\n\t async: { type: String },\n\t data: { type: Array },\n\t delay: { type: Number, default: DELAY },\n\t asyncKey: { type: String, default: null },\n\t limit: { type: Number, default: 8 },\n\t matchCase: { type: Boolean, default: false },\n\t matchStart: { type: Boolean, default: false },\n\t onHit: {\n\t type: Function,\n\t default: function _default(item) {\n\t this.reset();\n\t this.value = item;\n\t }\n\t },\n\t placeholder: { type: String },\n\t template: { type: String },\n\t value: { type: String, default: '' }\n\t },\n\t data: function data() {\n\t return {\n\t showDropdown: false,\n\t noResults: true,\n\t current: 0,\n\t items: [],\n\t val: ''\n\t };\n\t },\n\t\n\t computed: {\n\t templateHtml: function templateHtml() {\n\t return typeof this.template === 'string' ? '' + this.template + '' : null;\n\t },\n\t tmpl: function tmpl() {\n\t return this._tmpl;\n\t }\n\t },\n\t watch: {\n\t val: function val(_val, old) {\n\t this.$emit('input', _val);\n\t if (_val !== old) this._update();\n\t },\n\t value: function value(val) {\n\t if (this.val !== val) {\n\t this.val = val;\n\t }\n\t }\n\t },\n\t methods: {\n\t setItems: function setItems(data) {\n\t var _this = this;\n\t\n\t if (this.async) {\n\t this.items = this.asyncKey ? data[this.asyncKey] : data;\n\t this.items = this.items.slice(0, this.limit);\n\t } else {\n\t this.items = (data || []).filter(function (value) {\n\t if ((typeof value === 'undefined' ? 'undefined' : (0, _typeof3.default)(value)) === 'object') {\n\t return true;\n\t }\n\t value = _this.matchCase ? value : value.toLowerCase();\n\t var query = _this.matchCase ? _this.val : _this.val.toLowerCase();\n\t return _this.matchStart ? value.indexOf(query) === 0 : value.indexOf(query) !== -1;\n\t }).slice(0, this.limit);\n\t }\n\t this.showDropdown = this.items.length > 0;\n\t },\n\t reset: function reset() {\n\t this.items = [];\n\t this.val = '';\n\t this.loading = false;\n\t this.showDropdown = false;\n\t },\n\t setActive: function setActive(index) {\n\t this.current = index;\n\t },\n\t isActive: function isActive(index) {\n\t return this.current === index;\n\t },\n\t hit: function hit(e) {\n\t e.preventDefault();\n\t this.onHit(this.items[this.current], this);\n\t },\n\t up: function up() {\n\t if (this.current > 0) this.current--;\n\t },\n\t down: function down() {\n\t if (this.current < this.items.length - 1) this.current++;\n\t }\n\t },\n\t created: function created() {\n\t this.val = this.value;\n\t this._tmpl = {\n\t template: this.templateHtml || '',\n\t props: {\n\t item: { default: null }\n\t }\n\t };\n\t this._update = (0, _utils.delayer)(function () {\n\t var _this2 = this;\n\t\n\t if (!this.val) {\n\t this.reset();\n\t return false;\n\t }\n\t if (this.async) {\n\t (0, _utils.getJSON)(this.async + this.val).then(function (data) {\n\t _this2.setItems(data);\n\t });\n\t } else if (this.data) {\n\t this.setItems(this.data);\n\t }\n\t }, 'delay', DELAY);\n\t this._update();\n\t }\n\t};\n\n/***/ },\n/* 191 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\texports.__esModule = true;\n\t\n\tvar _iterator = __webpack_require__(20);\n\t\n\tvar _iterator2 = _interopRequireDefault(_iterator);\n\t\n\tvar _symbol = __webpack_require__(192);\n\t\n\tvar _symbol2 = _interopRequireDefault(_symbol);\n\t\n\tvar _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; };\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = typeof _symbol2.default === \"function\" && _typeof(_iterator2.default) === \"symbol\" ? function (obj) {\n\t return typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n\t} : function (obj) {\n\t return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? \"symbol\" : typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n\t};\n\n/***/ },\n/* 192 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(193), __esModule: true };\n\n/***/ },\n/* 193 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(194);\n\t__webpack_require__(203);\n\t__webpack_require__(204);\n\t__webpack_require__(205);\n\tmodule.exports = __webpack_require__(7).Symbol;\n\n/***/ },\n/* 194 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t// ECMAScript 6 symbols shim\n\tvar global = __webpack_require__(6)\n\t , has = __webpack_require__(29)\n\t , DESCRIPTORS = __webpack_require__(15)\n\t , $export = __webpack_require__(5)\n\t , redefine = __webpack_require__(28)\n\t , META = __webpack_require__(195).KEY\n\t , $fails = __webpack_require__(16)\n\t , shared = __webpack_require__(43)\n\t , setToStringTag = __webpack_require__(47)\n\t , uid = __webpack_require__(44)\n\t , wks = __webpack_require__(48)\n\t , wksExt = __webpack_require__(55)\n\t , wksDefine = __webpack_require__(196)\n\t , keyOf = __webpack_require__(197)\n\t , enumKeys = __webpack_require__(198)\n\t , isArray = __webpack_require__(201)\n\t , anObject = __webpack_require__(12)\n\t , toIObject = __webpack_require__(36)\n\t , toPrimitive = __webpack_require__(18)\n\t , createDesc = __webpack_require__(19)\n\t , _create = __webpack_require__(32)\n\t , gOPNExt = __webpack_require__(60)\n\t , $GOPD = __webpack_require__(202)\n\t , $DP = __webpack_require__(11)\n\t , $keys = __webpack_require__(34)\n\t , gOPD = $GOPD.f\n\t , dP = $DP.f\n\t , gOPN = gOPNExt.f\n\t , $Symbol = global.Symbol\n\t , $JSON = global.JSON\n\t , _stringify = $JSON && $JSON.stringify\n\t , PROTOTYPE = 'prototype'\n\t , HIDDEN = wks('_hidden')\n\t , TO_PRIMITIVE = wks('toPrimitive')\n\t , isEnum = {}.propertyIsEnumerable\n\t , SymbolRegistry = shared('symbol-registry')\n\t , AllSymbols = shared('symbols')\n\t , OPSymbols = shared('op-symbols')\n\t , ObjectProto = Object[PROTOTYPE]\n\t , USE_NATIVE = typeof $Symbol == 'function'\n\t , QObject = global.QObject;\n\t// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173\n\tvar setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;\n\t\n\t// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\n\tvar setSymbolDesc = DESCRIPTORS && $fails(function(){\n\t return _create(dP({}, 'a', {\n\t get: function(){ return dP(this, 'a', {value: 7}).a; }\n\t })).a != 7;\n\t}) ? function(it, key, D){\n\t var protoDesc = gOPD(ObjectProto, key);\n\t if(protoDesc)delete ObjectProto[key];\n\t dP(it, key, D);\n\t if(protoDesc && it !== ObjectProto)dP(ObjectProto, key, protoDesc);\n\t} : dP;\n\t\n\tvar wrap = function(tag){\n\t var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);\n\t sym._k = tag;\n\t return sym;\n\t};\n\t\n\tvar isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function(it){\n\t return typeof it == 'symbol';\n\t} : function(it){\n\t return it instanceof $Symbol;\n\t};\n\t\n\tvar $defineProperty = function defineProperty(it, key, D){\n\t if(it === ObjectProto)$defineProperty(OPSymbols, key, D);\n\t anObject(it);\n\t key = toPrimitive(key, true);\n\t anObject(D);\n\t if(has(AllSymbols, key)){\n\t if(!D.enumerable){\n\t if(!has(it, HIDDEN))dP(it, HIDDEN, createDesc(1, {}));\n\t it[HIDDEN][key] = true;\n\t } else {\n\t if(has(it, HIDDEN) && it[HIDDEN][key])it[HIDDEN][key] = false;\n\t D = _create(D, {enumerable: createDesc(0, false)});\n\t } return setSymbolDesc(it, key, D);\n\t } return dP(it, key, D);\n\t};\n\tvar $defineProperties = function defineProperties(it, P){\n\t anObject(it);\n\t var keys = enumKeys(P = toIObject(P))\n\t , i = 0\n\t , l = keys.length\n\t , key;\n\t while(l > i)$defineProperty(it, key = keys[i++], P[key]);\n\t return it;\n\t};\n\tvar $create = function create(it, P){\n\t return P === undefined ? _create(it) : $defineProperties(_create(it), P);\n\t};\n\tvar $propertyIsEnumerable = function propertyIsEnumerable(key){\n\t var E = isEnum.call(this, key = toPrimitive(key, true));\n\t if(this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key))return false;\n\t return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;\n\t};\n\tvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key){\n\t it = toIObject(it);\n\t key = toPrimitive(key, true);\n\t if(it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key))return;\n\t var D = gOPD(it, key);\n\t if(D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key]))D.enumerable = true;\n\t return D;\n\t};\n\tvar $getOwnPropertyNames = function getOwnPropertyNames(it){\n\t var names = gOPN(toIObject(it))\n\t , result = []\n\t , i = 0\n\t , key;\n\t while(names.length > i){\n\t if(!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META)result.push(key);\n\t } return result;\n\t};\n\tvar $getOwnPropertySymbols = function getOwnPropertySymbols(it){\n\t var IS_OP = it === ObjectProto\n\t , names = gOPN(IS_OP ? OPSymbols : toIObject(it))\n\t , result = []\n\t , i = 0\n\t , key;\n\t while(names.length > i){\n\t if(has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true))result.push(AllSymbols[key]);\n\t } return result;\n\t};\n\t\n\t// 19.4.1.1 Symbol([description])\n\tif(!USE_NATIVE){\n\t $Symbol = function Symbol(){\n\t if(this instanceof $Symbol)throw TypeError('Symbol is not a constructor!');\n\t var tag = uid(arguments.length > 0 ? arguments[0] : undefined);\n\t var $set = function(value){\n\t if(this === ObjectProto)$set.call(OPSymbols, value);\n\t if(has(this, HIDDEN) && has(this[HIDDEN], tag))this[HIDDEN][tag] = false;\n\t setSymbolDesc(this, tag, createDesc(1, value));\n\t };\n\t if(DESCRIPTORS && setter)setSymbolDesc(ObjectProto, tag, {configurable: true, set: $set});\n\t return wrap(tag);\n\t };\n\t redefine($Symbol[PROTOTYPE], 'toString', function toString(){\n\t return this._k;\n\t });\n\t\n\t $GOPD.f = $getOwnPropertyDescriptor;\n\t $DP.f = $defineProperty;\n\t __webpack_require__(61).f = gOPNExt.f = $getOwnPropertyNames;\n\t __webpack_require__(200).f = $propertyIsEnumerable;\n\t __webpack_require__(199).f = $getOwnPropertySymbols;\n\t\n\t if(DESCRIPTORS && !__webpack_require__(27)){\n\t redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);\n\t }\n\t\n\t wksExt.f = function(name){\n\t return wrap(wks(name));\n\t }\n\t}\n\t\n\t$export($export.G + $export.W + $export.F * !USE_NATIVE, {Symbol: $Symbol});\n\t\n\tfor(var symbols = (\n\t // 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\n\t 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'\n\t).split(','), i = 0; symbols.length > i; )wks(symbols[i++]);\n\t\n\tfor(var symbols = $keys(wks.store), i = 0; symbols.length > i; )wksDefine(symbols[i++]);\n\t\n\t$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {\n\t // 19.4.2.1 Symbol.for(key)\n\t 'for': function(key){\n\t return has(SymbolRegistry, key += '')\n\t ? SymbolRegistry[key]\n\t : SymbolRegistry[key] = $Symbol(key);\n\t },\n\t // 19.4.2.5 Symbol.keyFor(sym)\n\t keyFor: function keyFor(key){\n\t if(isSymbol(key))return keyOf(SymbolRegistry, key);\n\t throw TypeError(key + ' is not a symbol!');\n\t },\n\t useSetter: function(){ setter = true; },\n\t useSimple: function(){ setter = false; }\n\t});\n\t\n\t$export($export.S + $export.F * !USE_NATIVE, 'Object', {\n\t // 19.1.2.2 Object.create(O [, Properties])\n\t create: $create,\n\t // 19.1.2.4 Object.defineProperty(O, P, Attributes)\n\t defineProperty: $defineProperty,\n\t // 19.1.2.3 Object.defineProperties(O, Properties)\n\t defineProperties: $defineProperties,\n\t // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\n\t getOwnPropertyDescriptor: $getOwnPropertyDescriptor,\n\t // 19.1.2.7 Object.getOwnPropertyNames(O)\n\t getOwnPropertyNames: $getOwnPropertyNames,\n\t // 19.1.2.8 Object.getOwnPropertySymbols(O)\n\t getOwnPropertySymbols: $getOwnPropertySymbols\n\t});\n\t\n\t// 24.3.2 JSON.stringify(value [, replacer [, space]])\n\t$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function(){\n\t var S = $Symbol();\n\t // MS Edge converts symbol values to JSON as {}\n\t // WebKit converts symbol values to JSON as null\n\t // V8 throws on boxed symbols\n\t return _stringify([S]) != '[null]' || _stringify({a: S}) != '{}' || _stringify(Object(S)) != '{}';\n\t})), 'JSON', {\n\t stringify: function stringify(it){\n\t if(it === undefined || isSymbol(it))return; // IE8 returns string on undefined\n\t var args = [it]\n\t , i = 1\n\t , replacer, $replacer;\n\t while(arguments.length > i)args.push(arguments[i++]);\n\t replacer = args[1];\n\t if(typeof replacer == 'function')$replacer = replacer;\n\t if($replacer || !isArray(replacer))replacer = function(key, value){\n\t if($replacer)value = $replacer.call(this, key, value);\n\t if(!isSymbol(value))return value;\n\t };\n\t args[1] = replacer;\n\t return _stringify.apply($JSON, args);\n\t }\n\t});\n\t\n\t// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)\n\t$Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(10)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);\n\t// 19.4.3.5 Symbol.prototype[@@toStringTag]\n\tsetToStringTag($Symbol, 'Symbol');\n\t// 20.2.1.9 Math[@@toStringTag]\n\tsetToStringTag(Math, 'Math', true);\n\t// 24.3.3 JSON[@@toStringTag]\n\tsetToStringTag(global.JSON, 'JSON', true);\n\n/***/ },\n/* 195 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar META = __webpack_require__(44)('meta')\n\t , isObject = __webpack_require__(13)\n\t , has = __webpack_require__(29)\n\t , setDesc = __webpack_require__(11).f\n\t , id = 0;\n\tvar isExtensible = Object.isExtensible || function(){\n\t return true;\n\t};\n\tvar FREEZE = !__webpack_require__(16)(function(){\n\t return isExtensible(Object.preventExtensions({}));\n\t});\n\tvar setMeta = function(it){\n\t setDesc(it, META, {value: {\n\t i: 'O' + ++id, // object ID\n\t w: {} // weak collections IDs\n\t }});\n\t};\n\tvar fastKey = function(it, create){\n\t // return primitive with prefix\n\t if(!isObject(it))return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n\t if(!has(it, META)){\n\t // can't set metadata to uncaught frozen object\n\t if(!isExtensible(it))return 'F';\n\t // not necessary to add metadata\n\t if(!create)return 'E';\n\t // add missing metadata\n\t setMeta(it);\n\t // return object ID\n\t } return it[META].i;\n\t};\n\tvar getWeak = function(it, create){\n\t if(!has(it, META)){\n\t // can't set metadata to uncaught frozen object\n\t if(!isExtensible(it))return true;\n\t // not necessary to add metadata\n\t if(!create)return false;\n\t // add missing metadata\n\t setMeta(it);\n\t // return hash weak collections IDs\n\t } return it[META].w;\n\t};\n\t// add metadata on freeze-family methods calling\n\tvar onFreeze = function(it){\n\t if(FREEZE && meta.NEED && isExtensible(it) && !has(it, META))setMeta(it);\n\t return it;\n\t};\n\tvar meta = module.exports = {\n\t KEY: META,\n\t NEED: false,\n\t fastKey: fastKey,\n\t getWeak: getWeak,\n\t onFreeze: onFreeze\n\t};\n\n/***/ },\n/* 196 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar global = __webpack_require__(6)\n\t , core = __webpack_require__(7)\n\t , LIBRARY = __webpack_require__(27)\n\t , wksExt = __webpack_require__(55)\n\t , defineProperty = __webpack_require__(11).f;\n\tmodule.exports = function(name){\n\t var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});\n\t if(name.charAt(0) != '_' && !(name in $Symbol))defineProperty($Symbol, name, {value: wksExt.f(name)});\n\t};\n\n/***/ },\n/* 197 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar getKeys = __webpack_require__(34)\n\t , toIObject = __webpack_require__(36);\n\tmodule.exports = function(object, el){\n\t var O = toIObject(object)\n\t , keys = getKeys(O)\n\t , length = keys.length\n\t , index = 0\n\t , key;\n\t while(length > index)if(O[key = keys[index++]] === el)return key;\n\t};\n\n/***/ },\n/* 198 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// all enumerable object keys, includes symbols\n\tvar getKeys = __webpack_require__(34)\n\t , gOPS = __webpack_require__(199)\n\t , pIE = __webpack_require__(200);\n\tmodule.exports = function(it){\n\t var result = getKeys(it)\n\t , getSymbols = gOPS.f;\n\t if(getSymbols){\n\t var symbols = getSymbols(it)\n\t , isEnum = pIE.f\n\t , i = 0\n\t , key;\n\t while(symbols.length > i)if(isEnum.call(it, key = symbols[i++]))result.push(key);\n\t } return result;\n\t};\n\n/***/ },\n/* 199 */\n/***/ function(module, exports) {\n\n\texports.f = Object.getOwnPropertySymbols;\n\n/***/ },\n/* 200 */\n/***/ function(module, exports) {\n\n\texports.f = {}.propertyIsEnumerable;\n\n/***/ },\n/* 201 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 7.2.2 IsArray(argument)\n\tvar cof = __webpack_require__(38);\n\tmodule.exports = Array.isArray || function isArray(arg){\n\t return cof(arg) == 'Array';\n\t};\n\n/***/ },\n/* 202 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar pIE = __webpack_require__(200)\n\t , createDesc = __webpack_require__(19)\n\t , toIObject = __webpack_require__(36)\n\t , toPrimitive = __webpack_require__(18)\n\t , has = __webpack_require__(29)\n\t , IE8_DOM_DEFINE = __webpack_require__(14)\n\t , gOPD = Object.getOwnPropertyDescriptor;\n\t\n\texports.f = __webpack_require__(15) ? gOPD : function getOwnPropertyDescriptor(O, P){\n\t O = toIObject(O);\n\t P = toPrimitive(P, true);\n\t if(IE8_DOM_DEFINE)try {\n\t return gOPD(O, P);\n\t } catch(e){ /* empty */ }\n\t if(has(O, P))return createDesc(!pIE.f.call(O, P), O[P]);\n\t};\n\n/***/ },\n/* 203 */\n/***/ function(module, exports) {\n\n\n\n/***/ },\n/* 204 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(196)('asyncIterator');\n\n/***/ },\n/* 205 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(196)('observable');\n\n/***/ },\n/* 206 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('div', {\n\t class: {\n\t 'open': _vm.showDropdown\n\t },\n\t staticStyle: {\n\t \"position\": \"relative\"\n\t }\n\t }, [_vm._c('input', {\n\t directives: [{\n\t name: \"model\",\n\t rawName: \"v-model\",\n\t value: (_vm.val),\n\t expression: \"val\"\n\t }],\n\t staticClass: \"form-control\",\n\t attrs: {\n\t \"type\": \"text\",\n\t \"autocomplete\": \"off\",\n\t \"placeholder\": _vm.placeholder\n\t },\n\t domProps: {\n\t \"value\": _vm._s(_vm.val)\n\t },\n\t on: {\n\t \"blur\": function($event) {\n\t _vm.showDropdown = false\n\t },\n\t \"keydown\": [function($event) {\n\t if (_vm._k($event.keyCode, \"down\", 40)) { return; }\n\t _vm.down($event)\n\t }, function($event) {\n\t if (_vm._k($event.keyCode, \"enter\", 13)) { return; }\n\t _vm.hit($event)\n\t }, function($event) {\n\t if (_vm._k($event.keyCode, \"esc\", 27)) { return; }\n\t _vm.reset($event)\n\t }, function($event) {\n\t if (_vm._k($event.keyCode, \"up\", 38)) { return; }\n\t _vm.up($event)\n\t }],\n\t \"input\": function($event) {\n\t if ($event.target.composing) { return; }\n\t _vm.val = $event.target.value\n\t }\n\t }\n\t }), _vm._v(\" \"), _vm._c('ul', {\n\t ref: \"dropdown\",\n\t staticClass: \"dropdown-menu\"\n\t }, _vm._l((_vm.items), function(item, i) {\n\t return _vm._c('li', {\n\t class: {\n\t 'active': _vm.isActive(i)\n\t }\n\t }, [_vm._c('a', {\n\t on: {\n\t \"mousedown\": function($event) {\n\t $event.preventDefault();\n\t _vm.hit($event)\n\t },\n\t \"mousemove\": function($event) {\n\t _vm.setActive(i)\n\t }\n\t }\n\t }, [_vm._c(_vm.tmpl, {\n\t tag: \"component\",\n\t attrs: {\n\t \"item\": item\n\t }\n\t })], 1)])\n\t }))])\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-5b5f5e94\", module.exports)\n\t }\n\t}\n\n/***/ }\n/******/ ])\n});\n;\n//# sourceMappingURL=vue-strap.js.map//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNDMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9+L3Z1ZS1zdHJhcC9kaXN0L3Z1ZS1zdHJhcC5qcz9lMTQ3Il0sInNvdXJjZXNDb250ZW50IjpbIihmdW5jdGlvbiB3ZWJwYWNrVW5pdmVyc2FsTW9kdWxlRGVmaW5pdGlvbihyb290LCBmYWN0b3J5KSB7XG5cdGlmKHR5cGVvZiBleHBvcnRzID09PSAnb2JqZWN0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pIHtcblx0ICAgICAgICAgIGlmIChlbCkge1xuXHQgICAgICAgICAgICBmb3IgKHZhciBrZXkgaW4gcHJvcCkge1xuXHQgICAgICAgICAgICAgIGlmIChrZXkgaW4gZWwpIHtcblx0ICAgICAgICAgICAgICAgIGVsW2tleV0gPSBwcm9wW2tleV07XG5cdCAgICAgICAgICAgICAgfVxuXHQgICAgICAgICAgICB9XG5cdCAgICAgICAgICB9XG5cdCAgICAgICAgfSk7XG5cdCAgICAgIH0gZWxzZSB7XG5cdCAgICAgICAgdGhpcy5lYWNoKGZ1bmN0aW9uIChlbCkge1xuXHQgICAgICAgICAgaWYgKHByb3AgaW4gZWwpIHtcblx0ICAgICAgICAgICAgZWxbcHJvcF0gPSB2YWx1ZTtcblx0ICAgICAgICAgIH1cblx0ICAgICAgICB9KTtcblx0ICAgICAgfVxuXHQgICAgICByZXR1cm4gdGhpcztcblx0ICAgIH1cblx0ICB9LCB7XG5cdCAgICBrZXk6ICdjYWxsJyxcblx0ICAgIHZhbHVlOiBmdW5jdGlvbiBjYWxsKCkge1xuXHQgICAgICBmb3IgKHZhciBfbGVuMTAgPSBhcmd1bWVudHMubGVuZ3RoLCBhcmdzID0gQXJyYXkoX2xlbjEwKSwgX2tleTEwID0gMDsgX2tleTEwIDwgX2xlbjEwOyBfa2V5MTArKykge1xuXHQgICAgICAgIGFyZ3NbX2tleTEwXSA9IGFyZ3VtZW50c1tfa2V5MTBdO1xuXHQgICAgICB9XG5cdFxuXHQgICAgICB2YXIgbWV0aG9kID0gQXJyYXlQcm90by5zaGlmdC5jYWxsKGFyZ3MpO1xuXHQgICAgICB2YXIgYXJyID0gW107XG5cdCAgICAgIHZhciByZXR1cm5UaGlzID0gdHJ1ZTtcblx0ICAgICAgdGhpcy5lYWNoKGZ1bmN0aW9uIChlbCkge1xuXHQgICAgICAgIGlmIChlbCAmJiBlbFttZXRob2RdIGluc3RhbmNlb2YgRnVuY3Rpb24pIHtcblx0ICAgICAgICAgIGVsID0gZWxbbWV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x0ICAgICAgICBhcmdzW19rZXkxMV0gPSBhcmd1bWVudHNbX2tleTExXTtcblx0ICAgICAgfVxuXHRcblx0ICAgICAgdmFyIGFyciA9IFtdO1xuXHQgICAgICB2YXIgcmV0dXJuVGhpcyA9IHRydWU7XG5cdCAgICAgIGZvciAodmFyIGkgaW4gTkwpIHtcblx0ICAgICAgICB2YXIgZWwgPSBOTFtpXTtcblx0ICAgICAgICBpZiAoZWwgJiYgZWxbcHJvcF0gaW5zdGFuY2VvZiBGdW5jdGlvbikge1xuXHQgICAgICAgICAgZWwgPSBlbFtwcm9wXS5hcHBseShlbCwgYXJncyk7XG5cdCAgICAgICAgICBhcnIucHVzaChlbCk7XG5cdCAgICAgICAgICBpZiAocmV0dXJuVGhpcyAmJiBlbCAhPT0gdW5kZWZpbmVkKSB7XG5cdCAgICAgICAgICAgIHJldHVyblRoaXMgPSBmYWxzZTtcblx0ICAgICAgICAgIH1cblx0ICAgICAgICB9IGVsc2Uge1xuXHQgICAgICAgICAgYXJyLnB1c2godW5kZWZpbmVkKTtcblx0ICAgICAgICB9XG5cdCAgICAgIH1cblx0ICAgICAgcmV0dXJuIHJldHVyblRoaXMgPyBfdGhpczMgOiBmbGF0dGVuKGFyciwgX3RoaXMzKTtcblx0ICAgIH07XG5cdCAgfSBlbHNlIHtcblx0ICAgICgwLCBfZGVmaW5lUHJvcGVydHkyLmRlZmF1bHQpKE5MLCBwcm9wLCB7XG5cdCAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkge1xuXHQgICAgICAgIHZhciBhcnIgPSBbXTtcblx0ICAgICAgICB0aGlzLmVhY2goZnVuY3Rpb24gKGVsKSB7XG5cdCAgICAgICAgICBpZiAoZWwgIT09IG51bGwpIHtcblx0ICAgICAgICAgICAgZWwgPSBlbFtwcm9wXTtcblx0ICAgICAgICAgIH1cblx0ICAgICAgICAgIGFyci5wdXNoKGVsKTtcblx0ICAgICAgICB9KTtcblx0ICAgICAgICByZXR1cm4gZmxhdHRlbihhcnI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gICAgICAgdG9rZW4sXG5cdCAgICAgICAgICAgIHVwZGF0ZWQgPSBmYWxzZTtcblx0ICAgICAgICBkbyB7XG5cdCAgICAgICAgICB0b2tlbiA9IHRva2Vuc1tpXSArIFwiXCI7XG5cdCAgICAgICAgICBpZiAoY2hlY2tUb2tlbkFuZEdldEluZGV4KHRoaXMsIHRva2VuKSA9PT0gLTEpIHtcblx0ICAgICAgICAgICAgdGhpcy5wdXNoKHRva2VuKTtcblx0ICAgICAgICAgICAgdXBkYXRlZCA9IHRydWU7XG5cdCAgICAgICAgICB9XG5cdCAgICAgICAgfSB3aGlsZSAoKytpIDwgbCk7XG5cdFxuXHQgICAgICAgIGlmICh1cGRhdGVkKSB7XG5cdCAgICAgICAgICB0aGlzLl91cGRhdGVDbGFzc05hbWUoKTtcblx0ICAgICAgICB9XG5cdCAgICAgIH07XG5cdCAgICAgIGNsYXNzTGlzdFByb3RvLnJlbW92ZSA9IGZ1bmN0aW9uICgpIHtcblx0ICAgICAgICB2YXIgdG9rZW5zID0gYXJndW1lbnRzLFxuXHQgICAgICAgICAgICBpID0gMCxcblx0ICAgICAgICAgICAgbCA9IHRva2Vucy5sZW5ndGgsXG5cdCAgICAgICAgICAgIHRva2VuLFxuXHQgICAgICAgICAgICB1cGRhdGVkID0gZmFsc2UsXG5cdCAgICAgICAgICAgIGluZGV4O1xuXHQgICAgICAgIGRvIHtcblx0ICAgICAgICAgIHRva2VuID0gdG9rZW5zW2ldICsgXCJcIjtcblx0ICAgICAgICAgIGluZGV4ID0gY2hlY2tUb2tlbkFuZEdldEluZGV4KHRoaXMsIHRva2VuKTtcblx0ICAgICAgICAgIHdoaWxlIChpbmRleCAhPT0gLTEpIHtcblx0ICAgICAgICAgICAgdGhpcy5zcGxpY2UoaW5kZXgsIDEpO1xuXHQgICAgICAgICAgICB1cGRhdGVkID0gdHJ1ZTtcblx0ICAgICAgICAgICAgaW5kZXggPSBjaGVja1Rva2VuQW5kR2V0SW5kZXgodGhpcywgdG9rZW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FkZVJhbmdlLnB1c2goe1xcclxcbiAgICAgICAgICB0ZXh0OiBmaXJzdFllYXJPZkRlY2FkZSArIGlcXHJcXG4gICAgICAgIH0pXFxyXFxuICAgICAgfVxcclxcblxcclxcbiAgICAgIGNvbnN0IGN1cnJNb250aEZpcnN0RGF5ID0gbmV3IERhdGUodGltZS55ZWFyLCB0aW1lLm1vbnRoLCAxKVxcclxcbiAgICAgIGxldCBmaXJzdERheVdlZWsgPSBjdXJyTW9udGhGaXJzdERheS5nZXREYXkoKSArIDFcXHJcXG4gICAgICBpZiAoZmlyc3REYXlXZWVrID09PSAwKSB7XFxyXFxuICAgICAgICBmaXJzdERheVdlZWsgPSA3XFxyXFxuICAgICAgfVxcclxcbiAgICAgIGNvbnN0IGRheUNvdW50ID0gdGhpcy5nZXREYXlDb3VudCh0aW1lLnllYXIsIHRpbWUubW9udGgpXFxyXFxuICAgICAgaWYgKGZpcnN0RGF5V2VlayA+IDEpIHtcXHJcXG4gICAgICAgIGNvbnN0IHByZU1vbnRoID0gdGhpcy5nZXRZZWFyTW9udGgodGltZS55ZWFyLCB0aW1lLm1vbnRoIC0gMSlcXHJcXG4gICAgICAgIGNvbnN0IHByZXZNb250aERheUNvdW50ID0gdGhpcy5nZXREYXlDb3VudChwcmVNb250aC55ZWFyLCBwcmVNb250aC5tb250aClcXHJcXG4gICAgICAgIGZvciAobGV0IGkgPSAxOyBpIDwgZmlyc3REYXlXZWVrOyBpKyspIHtcXHJcXG4gICAgICAgICAgY29uc3QgZGF5VGV4dCA9IHByZXZNb250aERheUNvdW50IC0gZmlyc3REYXlXZWVrICsgaSArIDFcXHJcXG4gICAgICAgICAgY29uc3QgZGF0ZSA9IG5ldyBEYXRlKHByZU1vbnRoLnllYXIsIHByZU1vbnRoLm1vbnRoLCBkYXlUZXh0KVxcclxcbiAgICAgICAgICBsZXQgc2NsYXNzID0gJ2RhdGVwaWNrZXItaXRlbS1ncmF5J1xcclxcbiAgICAgICAgICBpZiAodGhpcy5kaXN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193ZWJwYWNrX3JlcXVpcmVfXyg2MClcblx0ICAsICRHT1BEICAgICAgICAgID0gX193ZWJwYWNrX3JlcXVpcmVfXygyMDIpXG5cdCAgLCAkRFAgICAgICAgICAgICA9IF9fd2VicGFja19yZXF1aXJlX18oMTEpXG5cdCAgLCAka2V5cyAgICAgICAgICA9IF9fd2VicGFja19yZXF1aXJlX18oMzQpXG5cdCAgLCBnT1BEICAgICAgICAgICA9ICRHT1BELmZcblx0ICAsIGRQICAgICAgICAgICAgID0gJERQLmZcblx0ICAsIGdPUE4gICAgICAgICAgID0gZ09QTkV4dC5mXG5cdCAgLCAkU3ltYm9sICAgICAgICA9IGdsb2JhbC5TeW1ib2xcblx0ICAsICRKU09OICAgICAgICAgID0gZ2xvYmFsLkpTT05cblx0ICAsIF9zdHJpbmdpZnkgICAgID0gJEpTT04gJiYgJEpTT04uc3RyaW5naWZ5XG5cdCAgLCBQUk9UT1RZUEUgICAgICA9ICdwcm90b3R5cGUnXG5cdCAgLCBISURERU4gICAgICAgICA9IHdrcygnX2hpZGRlbicpXG5cdCAgLCBUT19QUklNSVRJVkUgICA9IHdrcygndG9QcmltaXRpdmUnKVxuXHQgICwgaXNFbnVtICAgICAgICAgPSB7fS5wcm9wZXJ0eUlzRW51bWVyYWJsZVxuXHQgICwgU3ltYm9sUmVnaXN0cnkgPSBzaGFyZWQoJ3N5bWJvbC1yZWdpc3RyeScpXG5cdCAgLCBBbGxTeW1ib2xzICAgICA9IHNoYXJlZCgnc3ltYm9scycpXG5cdCAgLCBPUFN5bWJvbHMgICAgICA9IHNoYXJlZCgnb3Atc3ltYm9scycpXG5cdCAgLCBPYmplY3RQcm90byAgICA9IE9iamVjdFtQUk9UT1RZUEVdXG5cdCAgLCBVU0VfTkFUSVZFICAgICA9IHR5cGVvZiAkU3ltYm9sID09ICdmdW5jdGlvbidcblx0ICAsIFFPYmplY3QgICAgICAgID0gZ2xvYmFsLlFPYmplY3Q7XG5cdC8vIERvbid0IHVzZSBzZXR0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ZTogKF92bS52YWwpLFxuXHQgICAgICBleHByZXNzaW9uOiBcInZhbFwiXG5cdCAgICB9XSxcblx0ICAgIHN0YXRpY0NsYXNzOiBcImZvcm0tY29udHJvbFwiLFxuXHQgICAgYXR0cnM6IHtcblx0ICAgICAgXCJ0eXBlXCI6IFwidGV4dFwiLFxuXHQgICAgICBcImF1dG9jb21wbGV0ZVwiOiBcIm9mZlwiLFxuXHQgICAgICBcInBsYWNlaG9sZGVyXCI6IF92bS5wbGFjZWhvbGRlclxuXHQgICAgfSxcblx0ICAgIGRvbVByb3BzOiB7XG5cdCAgICAgIFwidmFsdWVcIjogX3ZtLl9zKF92bS52YWwpXG5cdCAgICB9LFxuXHQgICAgb246IHtcblx0ICAgICAgXCJibHVyXCI6IGZ1bmN0aW9uKCRldmVudCkge1xuXHQgICAgICAgIF92bS5zaG93RHJvcGRvd24gPSBmYWxzZVxuXHQgICAgICB9LFxuXHQgICAgICBcImtleWRvd25cIjogW2Z1bmN0aW9uKCRldmVudCkge1xuXHQgICAgICAgIGlmIChfdm0uX2soJGV2ZW50LmtleUNvZGUsIFwiZG93blwiLCA0MCkpIHsgcmV0dXJuOyB9XG5cdCAgICAgICAgX3ZtLmRvd24oJGV2ZW50KVxuXHQgICAgICB9LCBmdW5jdGlvbigkZXZlbnQpIHtcblx0ICAgICAgICBpZiAoX3ZtLl9rKCRldmVudC5rZXlDb2RlLCBcImVudGVyXCIsIDEzKSkgeyByZXR1cm47IH1cblx0ICAgICAgICBfdm0uaGl0KCRldmVudClcblx0ICAgICAgfSwgZnVuY3Rpb24oJGV2ZW50KSB7XG5cdCAgICAgICAgaWYgKF92bS5faygkZXZlbnQua2V5Q29kZSwgXCJlc2NcIiwgMjcpKSB7IHJldHVybjsgfVxuXHQgICAgICAgIF92bS5yZXNldCgkZXZlbnQpXG5cdCAgICAgIH0sIGZ1bmN0aW9uKCRldmVudCkge1xuXHQgICAgICAgIGlmIChfdm0uX2soJGV2ZW50LmtleUNvZGUsIFwidXB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UFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0="); /***/ }, /* 44 */ /***/ function(module, exports, __webpack_require__) { -eval("// style-loader: Adds some css to the DOM by adding a \\r\\n\"],\"sourceRoot\":\"webpack://\"}]);\n\t\n\t// exports\n\n\n/***/ },\n/* 78 */\n/***/ function(module, exports) {\n\n\t/*\r\n\t\tMIT License http://www.opensource.org/licenses/mit-license.php\r\n\t\tAuthor Tobias Koppers @sokra\r\n\t*/\r\n\t// css base code, injected by the css-loader\r\n\tmodule.exports = function() {\r\n\t\tvar list = [];\r\n\t\r\n\t\t// return the list of modules as css string\r\n\t\tlist.toString = function toString() {\r\n\t\t\tvar result = [];\r\n\t\t\tfor(var i = 0; i < this.length; i++) {\r\n\t\t\t\tvar item = this[i];\r\n\t\t\t\tif(item[2]) {\r\n\t\t\t\t\tresult.push(\"@media \" + item[2] + \"{\" + item[1] + \"}\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tresult.push(item[1]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn result.join(\"\");\r\n\t\t};\r\n\t\r\n\t\t// import a list of modules into the list\r\n\t\tlist.i = function(modules, mediaQuery) {\r\n\t\t\tif(typeof modules === \"string\")\r\n\t\t\t\tmodules = [[null, modules, \"\"]];\r\n\t\t\tvar alreadyImportedModules = {};\r\n\t\t\tfor(var i = 0; i < this.length; i++) {\r\n\t\t\t\tvar id = this[i][0];\r\n\t\t\t\tif(typeof id === \"number\")\r\n\t\t\t\t\talreadyImportedModules[id] = true;\r\n\t\t\t}\r\n\t\t\tfor(i = 0; i < modules.length; i++) {\r\n\t\t\t\tvar item = modules[i];\r\n\t\t\t\t// skip already imported module\r\n\t\t\t\t// this implementation is not 100% perfect for weird media query combinations\r\n\t\t\t\t// when a module is imported multiple times with different media queries.\r\n\t\t\t\t// I hope this will never occur (Hey this way we have smaller bundles)\r\n\t\t\t\tif(typeof item[0] !== \"number\" || !alreadyImportedModules[item[0]]) {\r\n\t\t\t\t\tif(mediaQuery && !item[2]) {\r\n\t\t\t\t\t\titem[2] = mediaQuery;\r\n\t\t\t\t\t} else if(mediaQuery) {\r\n\t\t\t\t\t\titem[2] = \"(\" + item[2] + \") and (\" + mediaQuery + \")\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlist.push(item);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t\treturn list;\r\n\t};\r\n\n\n/***/ },\n/* 79 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/*\n\t\tMIT License http://www.opensource.org/licenses/mit-license.php\n\t\tAuthor Tobias Koppers @sokra\n\t*/\n\tvar stylesInDom = {},\n\t\tmemoize = function(fn) {\n\t\t\tvar memo;\n\t\t\treturn function () {\n\t\t\t\tif (typeof memo === \"undefined\") memo = fn.apply(this, arguments);\n\t\t\t\treturn memo;\n\t\t\t};\n\t\t},\n\t\tisOldIE = memoize(function() {\n\t\t\treturn /msie [6-9]\\b/.test(window.navigator.userAgent.toLowerCase());\n\t\t}),\n\t\tgetHeadElement = memoize(function () {\n\t\t\treturn document.head || document.getElementsByTagName(\"head\")[0];\n\t\t}),\n\t\tsingletonElement = null,\n\t\tsingletonCounter = 0,\n\t\tstyleElementsInsertedAtTop = [];\n\t\n\tmodule.exports = function(list, options) {\n\t\tif(false) {\n\t\t\tif(typeof document !== \"object\") throw new Error(\"The style-loader cannot be used in a non-browser environment\");\n\t\t}\n\t\n\t\toptions = options || {};\n\t\t// Force single-tag solution on IE6-9, which has a hard limit on the # of \\r\\n\"],\"sourceRoot\":\"webpack://\"}]);\n\t\n\t// exports\n\n\n/***/ },\n/* 85 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _utils = __webpack_require__(65);\n\t\n\tvar _NodeList = __webpack_require__(1);\n\t\n\tvar _NodeList2 = _interopRequireDefault(_NodeList);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t\n\texports.default = {\n\t props: {\n\t header: { type: String },\n\t placement: { type: String, default: 'right' },\n\t show: { type: Boolean, required: true },\n\t width: { type: Number, default: 320 }\n\t },\n\t watch: {\n\t show: function show(val, old) {\n\t var _this = this;\n\t\n\t this.$emit('input', val);\n\t this.$emit(this.show ? 'open' : 'close');\n\t var body = document.body;\n\t var scrollBarWidth = (0, _utils.getScrollBarWidth)();\n\t if (val) {\n\t if (!this._backdrop) {\n\t this._backdrop = document.createElement('div');\n\t }\n\t this._backdrop.className = 'aside-backdrop';\n\t body.appendChild(this._backdrop);\n\t body.classList.add('modal-open');\n\t if (scrollBarWidth !== 0) {\n\t body.style.paddingRight = scrollBarWidth + 'px';\n\t }\n\t // request property that requires layout to force a layout\n\t var x = this._backdrop.clientHeight;\n\t this._backdrop.classList.add('in');\n\t (0, _NodeList2.default)(this._backdrop).on('click', function () {\n\t return _this.trigger_close();\n\t });\n\t } else {\n\t (0, _NodeList2.default)(this._backdrop).on('transitionend', function () {\n\t (0, _NodeList2.default)(_this._backdrop).off();\n\t try {\n\t body.classList.remove('modal-open');\n\t body.style.paddingRight = '0';\n\t body.removeChild(_this._backdrop);\n\t _this._backdrop = null;\n\t } catch (e) {}\n\t });\n\t this._backdrop.className = 'aside-backdrop';\n\t }\n\t }\n\t },\n\t methods: {\n\t trigger: function trigger() {\n\t var _this2 = this;\n\t\n\t return {\n\t close: function close() {\n\t return _this2.trigger_close();\n\t },\n\t open: function open() {\n\t return _this2.trigger_open();\n\t }\n\t };\n\t },\n\t trigger_close: function trigger_close() {\n\t this.$emit('close');\n\t },\n\t trigger_open: function trigger_open() {\n\t this.$emit('open');\n\t }\n\t },\n\t mounted: function mounted() {\n\t var _this3 = this;\n\t\n\t this.$emit('trigger', function () {\n\t return _this3.trigger;\n\t });\n\t }\n\t};\n\n/***/ },\n/* 86 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('transition', {\n\t attrs: {\n\t \"name\": 'slide' + _vm.placement\n\t }\n\t }, [(_vm.show) ? _vm._c('div', {\n\t staticClass: \"aside\",\n\t class: _vm.placement,\n\t style: ({\n\t width: _vm.width + 'px'\n\t })\n\t }, [_vm._c('div', {\n\t staticClass: \"aside-dialog\"\n\t }, [_vm._c('div', {\n\t staticClass: \"aside-content\"\n\t }, [_vm._c('div', {\n\t staticClass: \"aside-header\"\n\t }, [_vm._c('button', {\n\t staticClass: \"close\",\n\t attrs: {\n\t \"type\": \"button\"\n\t },\n\t on: {\n\t \"click\": _vm.trigger_close\n\t }\n\t }, [_vm._c('span', [_vm._v(\"×\")])]), _vm._v(\" \"), _vm._c('h4', {\n\t staticClass: \"aside-title\"\n\t }, [_vm._t(\"header\", [_vm._v(_vm._s(_vm.header))])], 2)]), _vm._v(\" \"), _vm._c('div', {\n\t staticClass: \"aside-body\"\n\t }, [_vm._t(\"default\")], 2)])])]) : _vm._e()])\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-3a4bde27\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 87 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(88)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(89)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\ButtonGroup.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-125eb0c8\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-125eb0c8\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] ButtonGroup.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 88 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t\n\texports.default = {\n\t props: {\n\t buttons: { default: true },\n\t justified: { type: Boolean, default: false },\n\t type: { type: String, default: 'default' },\n\t value: { default: null },\n\t vertical: { type: Boolean, default: false }\n\t },\n\t data: function data() {\n\t this._btnGroup = true;\n\t return {\n\t val: this.value\n\t };\n\t },\n\t\n\t watch: {\n\t val: function val(_val) {\n\t this.$emit('input', _val);\n\t }\n\t }\n\t};\n\n/***/ },\n/* 89 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('div', {\n\t class: {\n\t 'btn-group': _vm.buttons, 'btn-group-justified': _vm.justified, 'btn-group-vertical': _vm.vertical\n\t },\n\t attrs: {\n\t \"data-toggle\": _vm.buttons && 'buttons'\n\t }\n\t }, [_vm._t(\"default\")], 2)\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-125eb0c8\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 90 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* styles */\n\t__webpack_require__(91)\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(93)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(94)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\Carousel.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t__vue_options__._scopeId = \"data-v-322dee41\"\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-322dee41\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-322dee41\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] Carousel.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 91 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// style-loader: Adds some css to the DOM by adding a \\r\\n\"],\"sourceRoot\":\"webpack://\"}]);\n\t\n\t// exports\n\n\n/***/ },\n/* 93 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _NodeList = __webpack_require__(1);\n\t\n\tvar _NodeList2 = _interopRequireDefault(_NodeList);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\t// let coerce = {\n\t// interval: 'number'\n\t// }\n\t\n\texports.default = {\n\t props: {\n\t indicators: {\n\t type: Boolean,\n\t default: true\n\t },\n\t controls: {\n\t type: Boolean,\n\t default: true\n\t },\n\t interval: {\n\t type: Number,\n\t default: 5000\n\t }\n\t },\n\t data: function data() {\n\t return {\n\t indicator_list: [],\n\t index: 0,\n\t isAnimating: false\n\t };\n\t },\n\t\n\t watch: {\n\t index: function index(newVal, oldVal) {\n\t this.slide(newVal > oldVal ? 'left' : 'right', newVal, oldVal);\n\t }\n\t },\n\t methods: {\n\t indicatorClick: function indicatorClick(index) {\n\t if (this.isAnimating || this.index === index) return false;\n\t this.isAnimating = true;\n\t this.index = index;\n\t },\n\t slide: function slide(direction, next, prev) {\n\t var _this = this;\n\t\n\t if (!this.$el) {\n\t return;\n\t }\n\t var $slider = (0, _NodeList2.default)('.item', this.$el);\n\t if (!$slider.length) {\n\t return;\n\t }\n\t var selected = $slider[next] || $slider[0];\n\t (0, _NodeList2.default)(selected).addClass(direction === 'left' ? 'next' : 'prev');\n\t // request property that requires layout to force a layout\n\t var x = selected.clientHeight;\n\t (0, _NodeList2.default)([$slider[prev], selected]).addClass(direction).on('transitionend', function () {\n\t $slider.off('transitionend').className = 'item';\n\t (0, _NodeList2.default)(selected).addClass('active');\n\t _this.isAnimating = false;\n\t });\n\t },\n\t next: function next() {\n\t if (!this.$el || this.isAnimating) {\n\t return false;\n\t }\n\t this.isAnimating = true;\n\t this.index + 1 < (0, _NodeList2.default)('.item', this.$el).length ? this.index += 1 : this.index = 0;\n\t },\n\t prev: function prev() {\n\t if (!this.$el || this.isAnimating) {\n\t return false;\n\t }\n\t this.isAnimating = true;\n\t this.index === 0 ? this.index = (0, _NodeList2.default)('.item', this.$el).length - 1 : this.index -= 1;\n\t },\n\t toggleInterval: function toggleInterval(val) {\n\t if (val === undefined) {\n\t val = this._intervalID;\n\t }\n\t if (this._intervalID) {\n\t clearInterval(this._intervalID);\n\t delete this._intervalID;\n\t }\n\t if (val && this.interval > 0) {\n\t this._intervalID = setInterval(this.next, this.interval);\n\t }\n\t }\n\t },\n\t mounted: function mounted() {\n\t var _this2 = this;\n\t\n\t this.toggleInterval(true);\n\t (0, _NodeList2.default)(this.$el).on('mouseenter', function () {\n\t return _this2.toggleInterval(false);\n\t }).on('mouseleave', function () {\n\t return _this2.toggleInterval(true);\n\t });\n\t },\n\t beforeDestroy: function beforeDestroy() {\n\t this.toggleInterval(false);\n\t (0, _NodeList2.default)(this.$el).off('mouseenter mouseleave');\n\t }\n\t}; //\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\n/***/ },\n/* 94 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('div', {\n\t staticClass: \"carousel slide\",\n\t attrs: {\n\t \"data-ride\": \"carousel\"\n\t }\n\t }, [_vm._c('ol', {\n\t directives: [{\n\t name: \"show\",\n\t rawName: \"v-show\",\n\t value: (_vm.indicators),\n\t expression: \"indicators\"\n\t }],\n\t staticClass: \"carousel-indicators\"\n\t }, _vm._l((_vm.indicator_list), function(indicator, i) {\n\t return _vm._c('li', {\n\t class: {\n\t active: i === _vm.index\n\t },\n\t on: {\n\t \"click\": function($event) {\n\t _vm.indicatorClick(i)\n\t }\n\t }\n\t }, [_vm._c('span')])\n\t })), _vm._v(\" \"), _vm._c('div', {\n\t staticClass: \"carousel-inner\",\n\t attrs: {\n\t \"role\": \"listbox\"\n\t }\n\t }, [_vm._t(\"default\")], 2), _vm._v(\" \"), _vm._c('div', {\n\t directives: [{\n\t name: \"show\",\n\t rawName: \"v-show\",\n\t value: (_vm.controls),\n\t expression: \"controls\"\n\t }],\n\t staticClass: \"carousel-controls hidden-xs\"\n\t }, [_vm._c('a', {\n\t staticClass: \"left carousel-control\",\n\t attrs: {\n\t \"role\": \"button\"\n\t },\n\t on: {\n\t \"click\": _vm.prev\n\t }\n\t }, [_vm._c('span', {\n\t staticClass: \"glyphicon glyphicon-chevron-left\",\n\t attrs: {\n\t \"aria-hidden\": \"true\"\n\t }\n\t })]), _vm._v(\" \"), _vm._c('a', {\n\t staticClass: \"right carousel-control\",\n\t attrs: {\n\t \"role\": \"button\"\n\t },\n\t on: {\n\t \"click\": _vm.next\n\t }\n\t }, [_vm._c('span', {\n\t staticClass: \"glyphicon glyphicon-chevron-right\",\n\t attrs: {\n\t \"aria-hidden\": \"true\"\n\t }\n\t })])])])\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-322dee41\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 95 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* styles */\n\t__webpack_require__(96)\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(98)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(99)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\Checkbox.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t__vue_options__._scopeId = \"data-v-6922bf24\"\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-6922bf24\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-6922bf24\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] Checkbox.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 96 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// style-loader: Adds some css to the DOM by adding a \\r\\n\"],\"sourceRoot\":\"webpack://\"}]);\n\t\n\t// exports\n\n\n/***/ },\n/* 98 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t\n\texports.default = {\n\t props: {\n\t button: { type: Boolean, default: false },\n\t disabled: { type: Boolean, default: false },\n\t falseValue: { default: false },\n\t name: { type: String, default: null },\n\t readonly: { type: Boolean, default: false },\n\t trueValue: { default: true },\n\t type: { type: String, default: null },\n\t value: { default: false }\n\t },\n\t data: function data() {\n\t return {\n\t checked: this.value === this.trueValue\n\t };\n\t },\n\t\n\t computed: {\n\t isButton: function isButton() {\n\t return this.button || this._inGroup && this.$parent.buttons;\n\t },\n\t isFalse: function isFalse() {\n\t return this.value === this.falseValue;\n\t },\n\t isTrue: function isTrue() {\n\t return this.value === this.trueValue;\n\t },\n\t parentValue: function parentValue() {\n\t return this._ingroup && this.$parent.val;\n\t },\n\t typeColor: function typeColor() {\n\t return this.type || this.$parent && this.$parent.type || 'default';\n\t }\n\t },\n\t watch: {\n\t checked: function checked(val, old) {\n\t var value = val ? this.trueValue : this.falseValue;\n\t this.$emit('checked', val);\n\t this.$emit('input', value);\n\t this.eval();\n\t },\n\t parentValue: function parentValue(val) {\n\t var checked = val === this.trueValue;\n\t if (this.checked !== checked) {\n\t this.checked = checked;\n\t }\n\t },\n\t value: function value(val, old) {\n\t var checked = val === this.trueValue;\n\t if (this.checked !== checked) {\n\t this.checked = checked;\n\t }\n\t }\n\t },\n\t created: function created() {\n\t var parent = this.$parent;\n\t if (parent && parent._btnGroup && !parent._radioGroup) {\n\t this._inGroup = true;\n\t parent._checkboxGroup = true;\n\t if (!(parent.val instanceof Array)) {\n\t parent.val = [];\n\t }\n\t this.eval();\n\t }\n\t },\n\t mounted: function mounted() {\n\t if (!this.$parent._checkboxGroup || typeof this.value === 'boolean') {\n\t return;\n\t }\n\t if (this.$parent.val.length) {\n\t // this.checked = ~this.$parent.val.indexOf(this.value)\n\t this.$emit('checked', ~this.$parent.val.indexOf(this.value));\n\t } else if (this.checked) {\n\t this.$parent.val.push(this.value);\n\t }\n\t },\n\t\n\t methods: {\n\t eval: function _eval() {\n\t if (this._inGroup) {\n\t var value = this.checked ? this.isTrue : this.isFalse;\n\t var index = this.$parent.val.indexOf(value);\n\t if (this.checked && !~index) this.$parent.val.push(value);\n\t if (!this.checked && ~index) this.$parent.val.splice(index, 1);\n\t }\n\t },\n\t toggle: function toggle() {\n\t if (this.disabled || this.readonly) {\n\t return;\n\t }\n\t this.checked = !this.checked;\n\t }\n\t }\n\t};\n\n/***/ },\n/* 99 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c(_vm.isButton ? 'a' : 'label', {\n\t tag: \"a\",\n\t class: [_vm.isButton ? 'btn btn-' + _vm.typeColor : 'open checkbox ' + _vm.typeColor, {\n\t active: _vm.checked,\n\t disabled: _vm.disabled,\n\t readonly: _vm.readonly\n\t }],\n\t on: {\n\t \"click\": _vm.toggle\n\t }\n\t }, [(_vm.name) ? _vm._c('input', {\n\t attrs: {\n\t \"type\": \"hidden\",\n\t \"name\": _vm.name\n\t },\n\t domProps: {\n\t \"value\": _vm.checked ? _vm.trueValue : _vm.falseValue\n\t }\n\t }) : _vm._e(), _vm._v(\" \"), (!_vm.isButton) ? _vm._c('span', {\n\t staticClass: \"icon dropdown-toggle\",\n\t class: [_vm.checked ? 'btn-' + _vm.typeColor : '', {\n\t bg: _vm.typeColor === 'default'\n\t }]\n\t }) : _vm._e(), _vm._v(\" \"), (!_vm.isButton && _vm.checked && _vm.typeColor === 'default') ? _vm._c('span', {\n\t staticClass: \"icon\"\n\t }) : _vm._e(), _vm._v(\" \"), _vm._t(\"default\")], 2)\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-6922bf24\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 100 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* styles */\n\t__webpack_require__(101)\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(103)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(104)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\Datepicker.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-477b8e5d\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-477b8e5d\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] Datepicker.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 101 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// style-loader: Adds some css to the DOM by adding a \\r\\n\"],\"sourceRoot\":\"webpack://\"}]);\n\t\n\t// exports\n\n\n/***/ },\n/* 103 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _utils = __webpack_require__(65);\n\t\n\t// import $ from './utils/NodeList.js'\n\t\n\texports.default = {\n\t props: {\n\t value: { type: String },\n\t format: { default: 'MM/dd/yyyy' },\n\t disabledDaysOfWeek: { type: Array, default: function _default() {\n\t return [];\n\t }\n\t },\n\t width: { type: String /*, default: '200px'*/ },\n\t clearButton: { type: Boolean, default: false },\n\t lang: { type: String, default: navigator.language },\n\t placeholder: { type: String },\n\t iconsFont: { type: String, default: 'glyphicon' }\n\t },\n\t data: function data() {\n\t return {\n\t currDate: new Date(),\n\t dateRange: [],\n\t decadeRange: [],\n\t displayDayView: false,\n\t displayMonthView: false,\n\t displayYearView: false\n\t };\n\t },\n\t\n\t watch: {\n\t currDate: function currDate() {\n\t this.getDateRange();\n\t },\n\t format: function format() {\n\t this.$emit('input', this.stringify(this.currDate));\n\t }\n\t },\n\t computed: {\n\t text: function text() {\n\t return (0, _utils.translations)(this.lang);\n\t },\n\t preBtnClasses: function preBtnClasses() {\n\t return 'datepicker-preBtn ' + this.iconsFont + ' ' + this.iconsFont + '-chevron-left';\n\t },\n\t nextBtnClasses: function nextBtnClasses() {\n\t return 'datepicker-nextBtn ' + this.iconsFont + ' ' + this.iconsFont + '-chevron-right';\n\t },\n\t disabledDaysArray: function disabledDaysArray() {\n\t return this.disabledDaysOfWeek.map(function (d) {\n\t return parseInt(d, 10);\n\t });\n\t }\n\t },\n\t methods: {\n\t close: function close() {\n\t this.displayDayView = this.displayMonthView = this.displayYearView = false;\n\t },\n\t inputClick: function inputClick() {\n\t this.currDate = this.parse(this.value) || this.parse(new Date());\n\t if (this.displayMonthView || this.displayYearView) {\n\t this.displayDayView = false;\n\t } else {\n\t this.displayDayView = !this.displayDayView;\n\t }\n\t },\n\t preNextDecadeClick: function preNextDecadeClick(flag) {\n\t var year = this.currDate.getFullYear();\n\t var months = this.currDate.getMonth();\n\t var date = this.currDate.getDate();\n\t\n\t if (flag === 0) {\n\t this.currDate = new Date(year - 10, months, date);\n\t } else {\n\t this.currDate = new Date(year + 10, months, date);\n\t }\n\t },\n\t preNextMonthClick: function preNextMonthClick(flag) {\n\t var year = this.currDate.getFullYear();\n\t var month = this.currDate.getMonth();\n\t var date = this.currDate.getDate();\n\t\n\t if (flag === 0) {\n\t var preMonth = this.getYearMonth(year, month - 1);\n\t this.currDate = new Date(preMonth.year, preMonth.month, date);\n\t } else {\n\t var nextMonth = this.getYearMonth(year, month + 1);\n\t this.currDate = new Date(nextMonth.year, nextMonth.month, date);\n\t }\n\t },\n\t preNextYearClick: function preNextYearClick(flag) {\n\t var year = this.currDate.getFullYear();\n\t var months = this.currDate.getMonth();\n\t var date = this.currDate.getDate();\n\t\n\t if (flag === 0) {\n\t this.currDate = new Date(year - 1, months, date);\n\t } else {\n\t this.currDate = new Date(year + 1, months, date);\n\t }\n\t },\n\t yearSelect: function yearSelect(year) {\n\t this.displayYearView = false;\n\t this.displayMonthView = true;\n\t this.currDate = new Date(year, this.currDate.getMonth(), this.currDate.getDate());\n\t },\n\t daySelect: function daySelect(day) {\n\t if (day.sclass === 'datepicker-item-disable') {\n\t return false;\n\t } else {\n\t this.currDate = day.date;\n\t this.$emit('input', this.stringify(this.currDate));\n\t this.displayDayView = false;\n\t }\n\t },\n\t switchMonthView: function switchMonthView() {\n\t this.displayDayView = false;\n\t this.displayMonthView = true;\n\t },\n\t switchDecadeView: function switchDecadeView() {\n\t this.displayMonthView = false;\n\t this.displayYearView = true;\n\t },\n\t monthSelect: function monthSelect(index) {\n\t this.displayMonthView = false;\n\t this.displayDayView = true;\n\t this.currDate = new Date(this.currDate.getFullYear(), index, this.currDate.getDate());\n\t },\n\t getYearMonth: function getYearMonth(year, month) {\n\t if (month > 11) {\n\t year++;\n\t month = 0;\n\t } else if (month < 0) {\n\t year--;\n\t month = 11;\n\t }\n\t return { year: year, month: month };\n\t },\n\t stringifyDecadeHeader: function stringifyDecadeHeader(date) {\n\t var yearStr = date.getFullYear().toString();\n\t var firstYearOfDecade = yearStr.substring(0, yearStr.length - 1) + 0;\n\t var lastYearOfDecade = parseInt(firstYearOfDecade, 10) + 10;\n\t return firstYearOfDecade + '-' + lastYearOfDecade;\n\t },\n\t stringifyDayHeader: function stringifyDayHeader(date) {\n\t return this.text.months[date.getMonth()] + ' ' + date.getFullYear();\n\t },\n\t parseMonth: function parseMonth(date) {\n\t return this.text.months[date.getMonth()];\n\t },\n\t stringifyYearHeader: function stringifyYearHeader(date) {\n\t return date.getFullYear();\n\t },\n\t stringify: function stringify(date) {\n\t var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.format;\n\t\n\t if (!date) date = this.parse();\n\t if (!date) return '';\n\t var year = date.getFullYear();\n\t var month = date.getMonth() + 1;\n\t var day = date.getDate();\n\t var monthName = this.parseMonth(date);\n\t\n\t return format.replace(/yyyy/g, year).replace(/MMMM/g, monthName).replace(/MMM/g, monthName.substring(0, 3)).replace(/MM/g, ('0' + month).slice(-2)).replace(/dd/g, ('0' + day).slice(-2)).replace(/yy/g, year).replace(/M(?!a)/g, month).replace(/d/g, day);\n\t },\n\t parse: function parse() {\n\t var str = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.value;\n\t\n\t var date = void 0;\n\t if (str.length === 10 && (this.format === 'dd-MM-yyyy' || this.format === 'dd/MM/yyyy')) {\n\t date = new Date(str.substring(6, 10), str.substring(3, 5) - 1, str.substring(0, 2));\n\t } else {\n\t date = new Date(str);\n\t }\n\t return isNaN(date.getFullYear()) ? new Date() : date;\n\t },\n\t getDayCount: function getDayCount(year, month) {\n\t var dict = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\n\t if (month === 1) {\n\t if (year % 400 === 0 || year % 4 === 0 && year % 100 !== 0) {\n\t return 29;\n\t }\n\t }\n\t return dict[month];\n\t },\n\t getDateRange: function getDateRange() {\n\t this.dateRange = [];\n\t this.decadeRange = [];\n\t var time = {\n\t year: this.currDate.getFullYear(),\n\t month: this.currDate.getMonth(),\n\t day: this.currDate.getDate()\n\t };\n\t var yearStr = time.year.toString();\n\t var firstYearOfDecade = yearStr.substring(0, yearStr.length - 1) + 0 - 1;\n\t for (var i = 0; i < 12; i++) {\n\t this.decadeRange.push({\n\t text: firstYearOfDecade + i\n\t });\n\t }\n\t\n\t var currMonthFirstDay = new Date(time.year, time.month, 1);\n\t var firstDayWeek = currMonthFirstDay.getDay() + 1;\n\t if (firstDayWeek === 0) {\n\t firstDayWeek = 7;\n\t }\n\t var dayCount = this.getDayCount(time.year, time.month);\n\t if (firstDayWeek > 1) {\n\t var preMonth = this.getYearMonth(time.year, time.month - 1);\n\t var prevMonthDayCount = this.getDayCount(preMonth.year, preMonth.month);\n\t for (var _i = 1; _i < firstDayWeek; _i++) {\n\t var dayText = prevMonthDayCount - firstDayWeek + _i + 1;\n\t var date = new Date(preMonth.year, preMonth.month, dayText);\n\t var sclass = 'datepicker-item-gray';\n\t if (this.disabledDaysArray.indexOf(date.getDay()) > -1) {\n\t sclass = 'datepicker-item-disable';\n\t }\n\t this.dateRange.push({\n\t text: dayText,\n\t date: date,\n\t sclass: 'datepicker-item-gray'\n\t });\n\t }\n\t }\n\t\n\t for (var _i2 = 1; _i2 <= dayCount; _i2++) {\n\t var _date = new Date(time.year, time.month, _i2);\n\t var _sclass = '';\n\t if (this.disabledDaysArray.indexOf(_date.getDay()) > -1) {\n\t _sclass = 'datepicker-item-disable';\n\t }\n\t if (_i2 == time.day && _date.getFullYear() == time.year && _date.getMonth() == time.month) {\n\t _sclass = 'datepicker-dateRange-item-active';\n\t }\n\t this.dateRange.push({\n\t text: _i2,\n\t date: _date,\n\t sclass: _sclass\n\t });\n\t }\n\t\n\t if (this.dateRange.length < 42) {\n\t var nextMonthNeed = 42 - this.dateRange.length;\n\t var nextMonth = this.getYearMonth(time.year, time.month + 1);\n\t\n\t for (var _i3 = 1; _i3 <= nextMonthNeed; _i3++) {\n\t var _date2 = new Date(nextMonth.year, nextMonth.month, _i3);\n\t var _sclass2 = 'datepicker-item-gray';\n\t if (this.disabledDaysArray.indexOf(_date2.getDay()) > -1) {\n\t _sclass2 = 'datepicker-item-disable';\n\t }\n\t this.dateRange.push({\n\t text: _i3,\n\t date: _date2,\n\t sclass: _sclass2\n\t });\n\t }\n\t }\n\t }\n\t },\n\t mounted: function mounted() {\n\t var _this = this;\n\t\n\t var el = this.$el;\n\t this._blur = function (e) {\n\t if (!el.contains(e.target)) _this.close();\n\t };\n\t this.$emit('child-created', this);\n\t this.currDate = this.parse(this.value) || this.parse(new Date());\n\t window.addEventListener('click', this._blur);\n\t },\n\t beforeDestroy: function beforeDestroy() {\n\t window.removeEventListener('click', this._blur);\n\t }\n\t}; //\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\n/***/ },\n/* 104 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('div', {\n\t staticClass: \"datepicker\"\n\t }, [_vm._c('input', {\n\t staticClass: \"form-control datepicker-input\",\n\t class: {\n\t 'with-reset-button': _vm.clearButton\n\t },\n\t style: ({\n\t width: _vm.width\n\t }),\n\t attrs: {\n\t \"type\": \"text\",\n\t \"placeholder\": _vm.placeholder\n\t },\n\t domProps: {\n\t \"value\": _vm.value\n\t },\n\t on: {\n\t \"click\": _vm.inputClick,\n\t \"input\": function($event) {\n\t _vm.$emit('input', $event.target.value)\n\t }\n\t }\n\t }), _vm._v(\" \"), (_vm.clearButton && _vm.value) ? _vm._c('button', {\n\t staticClass: \"close\",\n\t attrs: {\n\t \"type\": \"button\"\n\t },\n\t on: {\n\t \"click\": function($event) {\n\t _vm.$emit('input', '')\n\t }\n\t }\n\t }, [_vm._c('span', [_vm._v(\"×\")])]) : _vm._e(), _vm._v(\" \"), _vm._c('div', {\n\t directives: [{\n\t name: \"show\",\n\t rawName: \"v-show\",\n\t value: (_vm.displayDayView),\n\t expression: \"displayDayView\"\n\t }],\n\t staticClass: \"datepicker-popup\"\n\t }, [_vm._c('div', {\n\t staticClass: \"datepicker-inner\"\n\t }, [_vm._c('div', {\n\t staticClass: \"datepicker-body\"\n\t }, [_vm._c('div', {\n\t staticClass: \"datepicker-ctrl\"\n\t }, [_vm._c('span', {\n\t class: _vm.preBtnClasses,\n\t attrs: {\n\t \"aria-hidden\": \"true\"\n\t },\n\t on: {\n\t \"click\": function($event) {\n\t _vm.preNextMonthClick(0)\n\t }\n\t }\n\t }), _vm._v(\" \"), _vm._c('span', {\n\t class: _vm.nextBtnClasses,\n\t attrs: {\n\t \"aria-hidden\": \"true\"\n\t },\n\t on: {\n\t \"click\": function($event) {\n\t _vm.preNextMonthClick(1)\n\t }\n\t }\n\t }), _vm._v(\" \"), _vm._c('p', {\n\t on: {\n\t \"click\": _vm.switchMonthView\n\t }\n\t }, [_vm._v(_vm._s(_vm.stringifyDayHeader(_vm.currDate)))])]), _vm._v(\" \"), _vm._c('div', {\n\t staticClass: \"datepicker-weekRange\"\n\t }, _vm._l((_vm.text.daysOfWeek), function(w) {\n\t return _vm._c('span', [_vm._v(_vm._s(w))])\n\t })), _vm._v(\" \"), _vm._c('div', {\n\t staticClass: \"datepicker-dateRange\"\n\t }, _vm._l((_vm.dateRange), function(d) {\n\t return _vm._c('span', {\n\t class: d.sclass,\n\t on: {\n\t \"click\": function($event) {\n\t _vm.daySelect(d)\n\t }\n\t }\n\t }, [_vm._v(_vm._s(d.text))])\n\t }))])])]), _vm._v(\" \"), _vm._c('div', {\n\t directives: [{\n\t name: \"show\",\n\t rawName: \"v-show\",\n\t value: (_vm.displayMonthView),\n\t expression: \"displayMonthView\"\n\t }],\n\t staticClass: \"datepicker-popup\"\n\t }, [_vm._c('div', {\n\t staticClass: \"datepicker-inner\"\n\t }, [_vm._c('div', {\n\t staticClass: \"datepicker-body\"\n\t }, [_vm._c('div', {\n\t staticClass: \"datepicker-ctrl\"\n\t }, [_vm._c('span', {\n\t class: _vm.preBtnClasses,\n\t attrs: {\n\t \"aria-hidden\": \"true\"\n\t },\n\t on: {\n\t \"click\": function($event) {\n\t _vm.preNextYearClick(0)\n\t }\n\t }\n\t }), _vm._v(\" \"), _vm._c('span', {\n\t class: _vm.nextBtnClasses,\n\t attrs: {\n\t \"aria-hidden\": \"true\"\n\t },\n\t on: {\n\t \"click\": function($event) {\n\t _vm.preNextYearClick(1)\n\t }\n\t }\n\t }), _vm._v(\" \"), _vm._c('p', {\n\t on: {\n\t \"click\": _vm.switchDecadeView\n\t }\n\t }, [_vm._v(_vm._s(_vm.stringifyYearHeader(_vm.currDate)))])]), _vm._v(\" \"), _vm._c('div', {\n\t staticClass: \"datepicker-monthRange\"\n\t }, [_vm._l((_vm.text.months), function(m, index) {\n\t return [_vm._c('span', {\n\t class: {\n\t 'datepicker-dateRange-item-active':\n\t (_vm.text.months[_vm.parse(_vm.value).getMonth()] === m) &&\n\t _vm.currDate.getFullYear() === _vm.parse(_vm.value).getFullYear()\n\t },\n\t on: {\n\t \"click\": function($event) {\n\t _vm.monthSelect(index)\n\t }\n\t }\n\t }, [_vm._v(_vm._s(m.substr(0, 3)))])]\n\t })], 2)])])]), _vm._v(\" \"), _vm._c('div', {\n\t directives: [{\n\t name: \"show\",\n\t rawName: \"v-show\",\n\t value: (_vm.displayYearView),\n\t expression: \"displayYearView\"\n\t }],\n\t staticClass: \"datepicker-popup\"\n\t }, [_vm._c('div', {\n\t staticClass: \"datepicker-inner\"\n\t }, [_vm._c('div', {\n\t staticClass: \"datepicker-body\"\n\t }, [_vm._c('div', {\n\t staticClass: \"datepicker-ctrl\"\n\t }, [_vm._c('span', {\n\t class: _vm.preBtnClasses,\n\t attrs: {\n\t \"aria-hidden\": \"true\"\n\t },\n\t on: {\n\t \"click\": function($event) {\n\t _vm.preNextDecadeClick(0)\n\t }\n\t }\n\t }), _vm._v(\" \"), _vm._c('span', {\n\t class: _vm.nextBtnClasses,\n\t attrs: {\n\t \"aria-hidden\": \"true\"\n\t },\n\t on: {\n\t \"click\": function($event) {\n\t _vm.preNextDecadeClick(1)\n\t }\n\t }\n\t }), _vm._v(\" \"), _vm._c('p', [_vm._v(_vm._s(_vm.stringifyDecadeHeader(_vm.currDate)))])]), _vm._v(\" \"), _vm._c('div', {\n\t staticClass: \"datepicker-monthRange decadeRange\"\n\t }, [_vm._l((_vm.decadeRange), function(decade) {\n\t return [_vm._c('span', {\n\t class: {\n\t 'datepicker-dateRange-item-active': _vm.parse(this.value).getFullYear() === decade.text\n\t },\n\t on: {\n\t \"click\": function($event) {\n\t $event.stopPropagation();\n\t _vm.yearSelect(decade.text)\n\t }\n\t }\n\t }, [_vm._v(_vm._s(decade.text))])]\n\t })], 2)])])])])\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-477b8e5d\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 105 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(106)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(107)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\Dropdown.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-39be1072\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-39be1072\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] Dropdown.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 106 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _NodeList = __webpack_require__(1);\n\t\n\tvar _NodeList2 = _interopRequireDefault(_NodeList);\n\t\n\tvar _ClickOutside = __webpack_require__(66);\n\t\n\tvar _ClickOutside2 = _interopRequireDefault(_ClickOutside);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t\n\texports.default = {\n\t directives: {\n\t ClickOutside: _ClickOutside2.default\n\t },\n\t props: {\n\t disabled: { type: Boolean, default: false },\n\t size: { type: String, default: null },\n\t text: { type: String, default: null },\n\t type: { type: String, default: 'default' },\n\t value: { type: Boolean, default: false }\n\t },\n\t data: function data() {\n\t var show = this.value;\n\t return { show: show };\n\t },\n\t\n\t watch: {\n\t show: function show(val) {\n\t this.$emit('input', val);\n\t },\n\t value: function value(val) {\n\t this.show = val;\n\t }\n\t },\n\t computed: {\n\t buttonSize: function buttonSize() {\n\t return ~['lg', 'sm', 'xs'].indexOf(this.size) ? 'btn-' + this.size : '';\n\t },\n\t inInput: function inInput() {\n\t return this.$parent._input;\n\t },\n\t isLi: function isLi() {\n\t return this.$parent._isTabs || this.$parent._navbar || this.$parent.menu;\n\t },\n\t menu: function menu() {\n\t return !this.$parent || this.$parent.navbar;\n\t },\n\t slots: function slots() {\n\t return this._slotContents;\n\t },\n\t submenu: function submenu() {\n\t return this.$parent && (this.$parent.menu || this.$parent.submenu);\n\t }\n\t },\n\t methods: {\n\t blur: function blur() {\n\t this.show = false;\n\t },\n\t toggle: function toggle() {\n\t if (!this.disabled) {\n\t this.show = !this.show;\n\t }\n\t }\n\t },\n\t mounted: function mounted() {\n\t var _this = this;\n\t\n\t (0, _NodeList2.default)('ul', this.$el).on('click', 'li>a', function (e) {\n\t _this.show = false;\n\t });\n\t },\n\t beforeDestroy: function beforeDestroy() {\n\t (0, _NodeList2.default)('ul', this.$el).off();\n\t }\n\t};\n\n/***/ },\n/* 107 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c(_vm.isLi ? 'li' : 'div', {\n\t directives: [{\n\t name: \"click-outside\",\n\t rawName: \"v-click-outside\",\n\t value: (_vm.blur),\n\t expression: \"blur\"\n\t }],\n\t tag: \"div\",\n\t class: [{\n\t open: _vm.show,\n\t disabled: _vm.disabled,\n\t dropdown: _vm.isLi,\n\t 'input-group-btn': _vm.inInput,\n\t 'btn-group': !_vm.isLi && !_vm.inInput\n\t }]\n\t }, [_vm._t(\"before\"), _vm._v(\" \"), (_vm.isLi) ? _vm._c('a', {\n\t class: ['dropdown-toggle', _vm.buttonSize, {\n\t disabled: _vm.disabled\n\t }],\n\t attrs: {\n\t \"role\": \"button\"\n\t },\n\t on: {\n\t \"keyup\": function($event) {\n\t if (_vm._k($event.keyCode, \"esc\", 27)) { return; }\n\t _vm.show = false\n\t },\n\t \"click\": function($event) {\n\t $event.preventDefault();\n\t _vm.toggle($event)\n\t }\n\t }\n\t }, [_vm._t(\"button\", [_vm._v(_vm._s(_vm.text))]), _vm._v(\" \"), _vm._c('span', {\n\t staticClass: \"caret\"\n\t })], 2) : _vm._c('button', {\n\t class: ['btn btn-' + _vm.type, _vm.buttonSize, 'dropdown-toggle'],\n\t attrs: {\n\t \"type\": \"button\",\n\t \"disabled\": _vm.disabled\n\t },\n\t on: {\n\t \"keyup\": function($event) {\n\t if (_vm._k($event.keyCode, \"esc\", 27)) { return; }\n\t _vm.show = false\n\t },\n\t \"click\": function($event) {\n\t $event.preventDefault();\n\t _vm.toggle($event)\n\t }\n\t }\n\t }, [_vm._t(\"button\", [_vm._v(_vm._s(_vm.text))]), _vm._v(\" \"), _vm._c('span', {\n\t staticClass: \"caret\"\n\t })], 2), _vm._v(\" \"), _vm._t(\"dropdown-menu\", [_vm._c('ul', {\n\t staticClass: \"dropdown-menu\"\n\t }, [_vm._t(\"default\")], 2)])], 2)\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-39be1072\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 108 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(109)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(110)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\FormGroup.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-79eb400a\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-79eb400a\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] FormGroup.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 109 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _NodeList = __webpack_require__(1);\n\t\n\tvar _NodeList2 = _interopRequireDefault(_NodeList);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\t// let coerce = {\n\t// enterSubmit: 'boolean',\n\t// icon: 'boolean'\n\t// }\n\t\n\texports.default = {\n\t props: {\n\t enterSubmit: {\n\t type: Boolean,\n\t default: false\n\t },\n\t icon: {\n\t type: Boolean,\n\t default: false\n\t },\n\t lang: {\n\t type: String,\n\t default: navigator.language\n\t }\n\t },\n\t data: function data() {\n\t return {\n\t children: [],\n\t valid: null,\n\t timeout: null\n\t };\n\t },\n\t\n\t watch: {\n\t valid: function valid(val, old) {\n\t this.$emit('isvalid', val);\n\t this.$emit(!val ? 'invalid' : 'valid');\n\t if (val !== old && this._parent) this._parent.validate();\n\t }\n\t },\n\t methods: {\n\t validate: function validate() {\n\t var valid = true;\n\t this.children.some(function (el) {\n\t var v = el.validate ? el.validate() : el.valid !== undefined ? el.valid : el.required && !~['', null, undefined].indexOf(el.value);\n\t if (!v) valid = false;\n\t return !valid;\n\t });\n\t this.valid = valid;\n\t return valid === true;\n\t }\n\t },\n\t created: function created() {\n\t this._formGroup = true;\n\t var parent = this.$parent;\n\t while (parent && !parent._formGroup) {\n\t parent = parent.$parent;\n\t }\n\t if (parent && parent._formGroup) {\n\t parent.children.push(this);\n\t this._parent = parent;\n\t }\n\t },\n\t mounted: function mounted() {\n\t this.validate();\n\t },\n\t beforeDestroy: function beforeDestroy() {\n\t if (this._parent) {\n\t var index = this._parent.children.indexOf(this);\n\t this._parent.children.splice(index, 1);\n\t }\n\t }\n\t}; //\n\t//\n\n/***/ },\n/* 110 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('span', [_vm._t(\"default\")], 2)\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-79eb400a\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 111 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(112)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(113)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\FormValidator.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-b9f57c46\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-b9f57c46\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] FormValidator.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 112 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _NodeList = __webpack_require__(1);\n\t\n\tvar _NodeList2 = _interopRequireDefault(_NodeList);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = {\n\t props: {\n\t enterSubmit: { type: Boolean, default: false },\n\t icon: { type: Boolean, default: false },\n\t lang: { type: String, default: navigator.language },\n\t value: null\n\t },\n\t data: function data() {\n\t return {\n\t children: [],\n\t valid: null,\n\t timeout: null\n\t };\n\t },\n\t\n\t watch: {\n\t valid: function valid(val, old) {\n\t this.$emit('isvalid', val);\n\t this.$emit('input', val);\n\t this.$emit(!val ? 'invalid' : 'valid');\n\t if (val !== old && this._parent) this._parent.validate();\n\t }\n\t },\n\t methods: {\n\t validate: function validate() {\n\t var invalid = !this.children.every(function (el) {\n\t return el.validate ? el.validate() : el.valid !== undefined ? el.valid : el.required && !~['', null, undefined].indexOf(el.value);\n\t });\n\t this.valid = !invalid;\n\t return !invalid;\n\t }\n\t },\n\t created: function created() {\n\t this._formValidator = true;\n\t var parent = this.$parent;\n\t while (parent && !parent._formValidator) {\n\t parent = parent.$parent;\n\t }\n\t if (parent && parent._formValidator) {\n\t parent.children.push(this);\n\t this._parent = parent;\n\t }\n\t },\n\t mounted: function mounted() {\n\t this.validate();\n\t },\n\t beforeDestroy: function beforeDestroy() {\n\t if (this._parent) {\n\t var index = this._parent.children.indexOf(this);\n\t this._parent.children.splice(index, 1);\n\t }\n\t }\n\t}; //\n\t//\n\n/***/ },\n/* 113 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('span', [_vm._t(\"default\")], 2)\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-b9f57c46\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 114 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* styles */\n\t__webpack_require__(115)\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(117)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(118)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\Input.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t__vue_options__._scopeId = \"data-v-652ad7b9\"\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-652ad7b9\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-652ad7b9\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] Input.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 115 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// style-loader: Adds some css to the DOM by adding a \\r\\n\"],\"sourceRoot\":\"webpack://\"}]);\n\t\n\t// exports\n\n\n/***/ },\n/* 117 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _utils = __webpack_require__(65);\n\t\n\tvar _NodeList = __webpack_require__(1);\n\t\n\tvar _NodeList2 = _interopRequireDefault(_NodeList);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t\n\tvar DELAY = 300;\n\t\n\texports.default = {\n\t props: {\n\t clearButton: { type: Boolean, default: false },\n\t cols: { type: Number, default: null },\n\t datalist: { type: Array, default: null },\n\t disabled: { type: Boolean, default: false },\n\t enterSubmit: { type: Boolean, default: false },\n\t error: { type: String, default: null },\n\t help: { type: String, default: null },\n\t hideHelp: { type: Boolean, default: true },\n\t icon: { type: Boolean, default: false },\n\t label: { type: String, default: null },\n\t lang: { type: String, default: navigator.language },\n\t mask: null,\n\t maskDelay: { type: Number, default: 100 },\n\t match: { type: String, default: null },\n\t max: { type: String, default: null },\n\t maxlength: { type: Number, default: null },\n\t min: { type: String, default: null },\n\t minlength: { type: Number, default: 0 },\n\t name: { type: String, default: null },\n\t pattern: { default: null },\n\t placeholder: { type: String, default: null },\n\t readonly: { type: Boolean, default: false },\n\t required: { type: Boolean, default: false },\n\t rows: { type: Number, default: 3 },\n\t step: { type: Number, default: null },\n\t type: { type: String, default: 'text' },\n\t url: { type: String, default: null },\n\t urlMap: { type: Function, default: null },\n\t validationDelay: { type: Number, default: 250 },\n\t value: { default: null }\n\t },\n\t data: function data() {\n\t var val = this.value;\n\t return {\n\t options: this.datalist,\n\t val: val,\n\t valid: null,\n\t timeout: null\n\t };\n\t },\n\t\n\t computed: {\n\t canValidate: function canValidate() {\n\t return !this.disabled && !this.readonly && (this.required || this.regex || this.nativeValidate || this.match !== null);\n\t },\n\t errorText: function errorText() {\n\t var value = this.value;\n\t var error = [this.error];\n\t if (!value && this.required) error.push('(' + this.text.required.toLowerCase() + ')');\n\t if (value && value.length < this.minlength) error.push('(' + this.text.minLength.toLowerCase() + ': ' + this.minlength + ')');\n\t return error.join(' ');\n\t },\n\t id_datalist: function id_datalist() {\n\t if (this.type !== 'textarea' && this.datalist instanceof Array) {\n\t if (!this._id_datalist) {\n\t if (!this.$root.id_datalist) {\n\t this.$root.id_datalist = 0;\n\t }\n\t this._id_datalist = 'input-datalist' + this.$root.id_datalist++;\n\t }\n\t return this._id_datalist;\n\t }\n\t return null;\n\t },\n\t input: function input() {\n\t return this.$refs.input;\n\t },\n\t nativeValidate: function nativeValidate() {\n\t return (this.input || {}).checkValidity && (~['url', 'email'].indexOf(this.type.toLowerCase()) || this.min || this.max);\n\t },\n\t regex: function regex() {\n\t return _utils.coerce.pattern(this.pattern);\n\t },\n\t showError: function showError() {\n\t return this.error && this.valid === false;\n\t },\n\t showHelp: function showHelp() {\n\t return this.help && (!this.showError || !this.hideHelp);\n\t },\n\t text: function text() {\n\t return (0, _utils.translations)(this.lang);\n\t },\n\t title: function title() {\n\t return this.errorText || this.help || '';\n\t }\n\t },\n\t watch: {\n\t datalist: function datalist(val, old) {\n\t if (val !== old && val instanceof Array) {\n\t this.options = val;\n\t }\n\t },\n\t match: function match(val) {\n\t this.eval();\n\t },\n\t options: function options(val, old) {\n\t if (val !== old) this.$emit('options', val);\n\t },\n\t url: function url(val) {\n\t this._url();\n\t },\n\t val: function val(_val, old) {\n\t var _this = this;\n\t\n\t this.$emit('input', _val);\n\t if (_val !== old) {\n\t if (this.mask instanceof Function) {\n\t _val = this.mask(_val || '');\n\t if (this.val !== _val) {\n\t if (this._timeout.mask) clearTimeout(this._timeout.mask);\n\t this._timeout.mask = setTimeout(function () {\n\t _this.val = _val;\n\t }, isNaN(this.maskDelay) ? 0 : this.maskDelay);\n\t }\n\t }\n\t this.eval();\n\t }\n\t },\n\t valid: function valid(val, old) {\n\t this.$emit('isvalid', val);\n\t this.$emit(!val ? 'invalid' : 'valid');\n\t if (this._parent) this._parent.validate();\n\t },\n\t value: function value(val) {\n\t if (this.val !== val) {\n\t this.val = val;\n\t }\n\t }\n\t },\n\t methods: {\n\t attr: function attr(value) {\n\t return ~['', null, undefined].indexOf(value) || value instanceof Function ? null : value;\n\t },\n\t emit: function emit(e) {\n\t this.$emit(e.type, e.type == 'input' ? e.target.value : e);\n\t if (e.type === 'blur' && this.canValidate) {\n\t this.valid = this.validate();\n\t }\n\t },\n\t eval: function _eval() {\n\t var _this2 = this;\n\t\n\t if (this._timeout.eval) clearTimeout(this._timeout.eval);\n\t if (!this.canValidate) {\n\t this.valid = true;\n\t } else {\n\t this._timeout.eval = setTimeout(function () {\n\t _this2.valid = _this2.validate();\n\t _this2._timeout.eval = null;\n\t }, this.validationDelay);\n\t }\n\t },\n\t focus: function focus() {\n\t this.input.focus();\n\t },\n\t submit: function submit() {\n\t if (this.$parent._formValidator) {\n\t return this.$parent.validate();\n\t }\n\t if (this.input.form) {\n\t var invalids = (0, _NodeList2.default)('.form-group.validate:not(.has-success)', this.input.form);\n\t if (invalids.length) {\n\t invalids.find('input,textarea,select')[0].focus();\n\t } else {\n\t this.input.form.submit();\n\t }\n\t }\n\t },\n\t validate: function validate() {\n\t if (!this.canValidate) {\n\t return true;\n\t }\n\t var value = (this.val || '').trim();\n\t if (!value) {\n\t return !this.required;\n\t }\n\t if (this.match !== null) {\n\t return this.match === value;\n\t }\n\t if (value.length < this.minlength) {\n\t return false;\n\t }\n\t if (this.nativeValidate && !this.input.checkValidity()) {\n\t return false;\n\t }\n\t if (this.regex) {\n\t if (!(this.regex instanceof Function ? this.regex(this.value) : this.regex.test(this.value))) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t },\n\t reset: function reset() {\n\t this.value = '';\n\t this.valid = null;\n\t if (this._timeout.mask) clearTimeout(this._timeout.mask);\n\t if (this._timeout.eval) clearTimeout(this._timeout.eval);\n\t }\n\t },\n\t created: function created() {\n\t this._input = true;\n\t this._timeout = {};\n\t var parent = this.$parent;\n\t while (parent && !parent._formValidator) {\n\t parent = parent.$parent;\n\t }\n\t if (parent && parent._formValidator) {\n\t parent.children.push(this);\n\t this._parent = parent;\n\t }\n\t this._url = (0, _utils.delayer)(function () {\n\t var _this3 = this;\n\t\n\t if (!this.url || !this.$http || this._loading) {\n\t return;\n\t }\n\t this._loading = true;\n\t this.$http.get(this.url).then(function (response) {\n\t var data = response.data instanceof Array ? response.data : [];\n\t try {\n\t data = JSON.parse(data);\n\t } catch (e) {}\n\t if (_this3.urlMap) {\n\t data = data.map(_this3.urlMap);\n\t }\n\t _this3.options = data;\n\t _this3.loading = false;\n\t }, function (response) {\n\t _this3.loading = false;\n\t });\n\t }, DELAY);\n\t if (this.url) this._url();\n\t },\n\t mounted: function mounted() {\n\t // $(this.input).on('focus', e => { this.$emit('focus', e) }).on('blur', e => {\n\t // if (this.canValidate) { this.valid = this.validate() }\n\t // this.$emit('blur', e)\n\t // })\n\t },\n\t beforeDestroy: function beforeDestroy() {\n\t // $(this.input).off()\n\t if (this._parent) {\n\t var index = this._parent.children.indexOf(this);\n\t this._parent.children.splice(index, 1);\n\t }\n\t }\n\t};\n\n/***/ },\n/* 118 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('div', {\n\t staticClass: \"form-group\",\n\t class: {\n\t validate: _vm.canValidate, 'has-feedback': _vm.icon, 'has-error': _vm.canValidate && _vm.valid === false, 'has-success': _vm.canValidate && _vm.valid\n\t }\n\t }, [_vm._t(\"label\", [(_vm.label) ? _vm._c('label', {\n\t staticClass: \"control-label\",\n\t on: {\n\t \"click\": _vm.focus\n\t }\n\t }, [_vm._v(_vm._s(_vm.label))]) : _vm._e()]), _vm._v(\" \"), (_vm.$slots.before || _vm.$slots.after) ? _vm._c('div', {\n\t staticClass: \"input-group\"\n\t }, [_vm._t(\"before\"), _vm._v(\" \"), _vm._c(_vm.type == 'textarea' ? _vm.type : 'input', {\n\t directives: [{\n\t name: \"model\",\n\t rawName: \"v-model\",\n\t value: (_vm.val),\n\t expression: \"val\"\n\t }],\n\t ref: \"input\",\n\t tag: \"textarea\",\n\t staticClass: \"form-control\",\n\t attrs: {\n\t \"cols\": _vm.cols,\n\t \"disabled\": _vm.disabled,\n\t \"list\": _vm.id_datalist,\n\t \"max\": _vm.attr(_vm.max),\n\t \"maxlength\": _vm.maxlength,\n\t \"min\": _vm.attr(_vm.min),\n\t \"name\": _vm.name,\n\t \"placeholder\": _vm.placeholder,\n\t \"readonly\": _vm.readonly,\n\t \"required\": _vm.required,\n\t \"rows\": _vm.rows,\n\t \"step\": _vm.step,\n\t \"title\": _vm.attr(_vm.title),\n\t \"type\": _vm.type == 'textarea' ? null : _vm.type\n\t },\n\t domProps: {\n\t \"value\": _vm._s(_vm.val)\n\t },\n\t on: {\n\t \"blur\": _vm.emit,\n\t \"focus\": _vm.emit,\n\t \"input\": [function($event) {\n\t if ($event.target.composing) { return; }\n\t _vm.val = $event.target.value\n\t }, _vm.emit],\n\t \"keyup\": function($event) {\n\t if (_vm._k($event.keyCode, \"enter\", 13)) { return; }\n\t _vm.type != 'textarea' && _vm.enterSubmit && _vm.submit()\n\t }\n\t }\n\t }), _vm._v(\" \"), (_vm.clearButton && _vm.value) ? _vm._c('div', {\n\t class: {\n\t icon: _vm.icon\n\t }\n\t }, [_vm._c('span', {\n\t staticClass: \"close\",\n\t on: {\n\t \"click\": function($event) {\n\t _vm.value = ''\n\t }\n\t }\n\t }, [_vm._v(\"×\")])]) : _vm._e(), _vm._v(\" \"), (_vm.icon) ? _vm._c('div', {\n\t staticClass: \"icon\"\n\t }, [(_vm.icon && _vm.valid !== null) ? _vm._c('span', {\n\t class: ['form-control-feedback glyphicon', 'glyphicon-' + (_vm.valid ? 'ok' : 'remove')],\n\t attrs: {\n\t \"aria-hidden\": \"true\"\n\t }\n\t }) : _vm._e()]) : _vm._e(), _vm._v(\" \"), _vm._t(\"after\")], 2) : [_vm._c(_vm.type == 'textarea' ? _vm.type : 'input', {\n\t directives: [{\n\t name: \"model\",\n\t rawName: \"v-model\",\n\t value: (_vm.val),\n\t expression: \"val\"\n\t }],\n\t ref: \"input\",\n\t tag: \"textarea\",\n\t staticClass: \"form-control\",\n\t attrs: {\n\t \"cols\": _vm.cols,\n\t \"disabled\": _vm.disabled,\n\t \"list\": _vm.id_datalist,\n\t \"max\": _vm.attr(_vm.max),\n\t \"maxlength\": _vm.maxlength,\n\t \"min\": _vm.attr(_vm.min),\n\t \"name\": _vm.name,\n\t \"placeholder\": _vm.placeholder,\n\t \"readonly\": _vm.readonly,\n\t \"required\": _vm.required,\n\t \"rows\": _vm.rows,\n\t \"step\": _vm.step,\n\t \"title\": _vm.attr(_vm.title),\n\t \"type\": _vm.type == 'textarea' ? null : _vm.type\n\t },\n\t domProps: {\n\t \"value\": _vm._s(_vm.val)\n\t },\n\t on: {\n\t \"blur\": _vm.emit,\n\t \"focus\": _vm.emit,\n\t \"input\": [function($event) {\n\t if ($event.target.composing) { return; }\n\t _vm.val = $event.target.value\n\t }, _vm.emit],\n\t \"keyup\": function($event) {\n\t if (_vm._k($event.keyCode, \"enter\", 13)) { return; }\n\t _vm.type != 'textarea' && _vm.enterSubmit && _vm.submit()\n\t }\n\t }\n\t }), _vm._v(\" \"), (_vm.clearButton && _vm.val) ? _vm._c('span', {\n\t staticClass: \"close\",\n\t on: {\n\t \"click\": function($event) {\n\t _vm.val = ''\n\t }\n\t }\n\t }, [_vm._v(\"×\")]) : _vm._e(), _vm._v(\" \"), (_vm.icon && _vm.valid !== null) ? _vm._c('span', {\n\t class: ['form-control-feedback glyphicon', 'glyphicon-' + (_vm.valid ? 'ok' : 'remove')],\n\t attrs: {\n\t \"aria-hidden\": \"true\"\n\t }\n\t }) : _vm._e()], _vm._v(\" \"), (_vm.id_datalist) ? _vm._c('datalist', {\n\t attrs: {\n\t \"id\": _vm.id_datalist\n\t }\n\t }, _vm._l((_vm.options), function(opc) {\n\t return _vm._c('option', {\n\t domProps: {\n\t \"value\": opc\n\t }\n\t })\n\t })) : _vm._e(), _vm._v(\" \"), (_vm.showHelp) ? _vm._c('div', {\n\t staticClass: \"help-block\",\n\t on: {\n\t \"click\": _vm.focus\n\t }\n\t }, [_vm._v(_vm._s(_vm.help))]) : _vm._e(), _vm._v(\" \"), (_vm.showError) ? _vm._c('div', {\n\t staticClass: \"help-block with-errors\",\n\t on: {\n\t \"click\": _vm.focus\n\t }\n\t }, [_vm._v(_vm._s(_vm.errorText))]) : _vm._e()], 2)\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-652ad7b9\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 119 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* styles */\n\t__webpack_require__(120)\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(122)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(127)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\Modal.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-fe7d5dc8\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-fe7d5dc8\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] Modal.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 120 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// style-loader: Adds some css to the DOM by adding a \\r\\n\"],\"sourceRoot\":\"webpack://\"}]);\n\t\n\t// exports\n\n\n/***/ },\n/* 122 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _isInteger = __webpack_require__(123);\n\t\n\tvar _isInteger2 = _interopRequireDefault(_isInteger);\n\t\n\tvar _utils = __webpack_require__(65);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = {\n\t props: {\n\t backdrop: { type: Boolean, default: true },\n\t callback: { type: Function, default: null },\n\t cancelText: { type: String, default: 'Close' },\n\t effect: { type: String, default: null },\n\t large: { type: Boolean, default: false },\n\t okText: { type: String, default: 'Save changes' },\n\t small: { type: Boolean, default: false },\n\t title: { type: String, default: '' },\n\t value: { type: Boolean, required: true },\n\t width: { default: null }\n\t },\n\t computed: {\n\t optionalWidth: function optionalWidth() {\n\t if (this.width === null) {\n\t return null;\n\t } else if ((0, _isInteger2.default)(this.width)) {\n\t return this.width + 'px';\n\t }\n\t return this.width;\n\t }\n\t },\n\t watch: {\n\t value: function value(val) {\n\t this.transitionstart();\n\t }\n\t },\n\t methods: {\n\t backClose: function backClose(e) {\n\t if (this.backdrop && e.target === this.$el) {\n\t this.close();\n\t }\n\t },\n\t close: function close() {\n\t this.$emit('cancel');\n\t this.$emit('input', false);\n\t },\n\t ok: function ok() {\n\t if (this.callback instanceof Function) this.callback();\n\t this.$emit('ok');\n\t this.$emit('input', true);\n\t },\n\t transitionstart: function transitionstart() {\n\t var el = this.$el;\n\t var body = document.body;\n\t var scrollBarWidth = (0, _utils.getScrollBarWidth)();\n\t if (this.value) {\n\t el.querySelector('.modal-content').focus();\n\t el.style.display = 'block';\n\t setTimeout(function () {\n\t return el.classList.add('in');\n\t }, 0);\n\t body.classList.add('modal-open');\n\t if (scrollBarWidth !== 0) {\n\t body.style.paddingRight = scrollBarWidth + 'px';\n\t }\n\t } else {\n\t el.classList.remove('in');\n\t }\n\t },\n\t transitionend: function transitionend() {\n\t if (!this.value) {\n\t this.$el.style.display = 'none';\n\t var body = document.body;\n\t body.style.paddingRight = null;\n\t body.classList.remove('modal-open');\n\t }\n\t }\n\t }\n\t}; //\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\n/***/ },\n/* 123 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(124), __esModule: true };\n\n/***/ },\n/* 124 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(125);\n\tmodule.exports = __webpack_require__(7).Number.isInteger;\n\n/***/ },\n/* 125 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 20.1.2.3 Number.isInteger(number)\n\tvar $export = __webpack_require__(5);\n\t\n\t$export($export.S, 'Number', {isInteger: __webpack_require__(126)});\n\n/***/ },\n/* 126 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 20.1.2.3 Number.isInteger(number)\n\tvar isObject = __webpack_require__(13)\n\t , floor = Math.floor;\n\tmodule.exports = function isInteger(it){\n\t return !isObject(it) && isFinite(it) && floor(it) === it;\n\t};\n\n/***/ },\n/* 127 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('div', {\n\t class: ['modal', _vm.effect],\n\t attrs: {\n\t \"role\": \"dialog\"\n\t },\n\t on: {\n\t \"click\": _vm.backClose,\n\t \"transitionend\": _vm.transitionend\n\t }\n\t }, [_vm._c('div', {\n\t class: {\n\t 'modal-dialog': true, 'modal-lg': _vm.large, 'modal-sm': _vm.small\n\t },\n\t style: ({\n\t width: _vm.optionalWidth\n\t }),\n\t attrs: {\n\t \"role\": \"document\"\n\t }\n\t }, [_vm._c('div', {\n\t staticClass: \"modal-content\"\n\t }, [_vm._t(\"modal-header\", [_vm._c('div', {\n\t staticClass: \"modal-header\"\n\t }, [_vm._c('button', {\n\t staticClass: \"close\",\n\t attrs: {\n\t \"type\": \"button\"\n\t },\n\t on: {\n\t \"click\": _vm.close\n\t }\n\t }, [_vm._c('span', [_vm._v(\"×\")])]), _vm._v(\" \"), _vm._c('h4', {\n\t staticClass: \"modal-title\"\n\t }, [_vm._t(\"title\", [_vm._v(_vm._s(_vm.title))])], 2)])]), _vm._v(\" \"), _vm._t(\"modal-body\", [_vm._c('div', {\n\t staticClass: \"modal-body\"\n\t }, [_vm._t(\"default\")], 2)]), _vm._v(\" \"), _vm._t(\"modal-footer\", [_vm._c('div', {\n\t staticClass: \"modal-footer\"\n\t }, [_vm._c('button', {\n\t staticClass: \"btn btn-default\",\n\t attrs: {\n\t \"type\": \"button\"\n\t },\n\t on: {\n\t \"click\": _vm.close\n\t }\n\t }, [_vm._v(_vm._s(_vm.cancelText))]), _vm._v(\" \"), _vm._c('button', {\n\t staticClass: \"btn btn-primary\",\n\t attrs: {\n\t \"type\": \"button\"\n\t },\n\t on: {\n\t \"click\": _vm.ok\n\t }\n\t }, [_vm._v(_vm._s(_vm.okText))])])])], 2)])])\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-fe7d5dc8\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 128 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(129)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(130)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\Navbar.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-38f0619e\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-38f0619e\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] Navbar.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 129 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _NodeList = __webpack_require__(1);\n\t\n\tvar _NodeList2 = _interopRequireDefault(_NodeList);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = {\n\t props: {\n\t type: { type: String, default: 'default' },\n\t placement: { type: String, default: '' }\n\t },\n\t data: function data() {\n\t return {\n\t id: 'bs-example-navbar-collapse-1',\n\t collapsed: true,\n\t styles: {}\n\t };\n\t },\n\t\n\t computed: {\n\t slots: function slots() {\n\t return this._slotContents;\n\t }\n\t },\n\t methods: {\n\t toggleCollapse: function toggleCollapse(e) {\n\t e && e.preventDefault();\n\t this.collapsed = !this.collapsed;\n\t }\n\t },\n\t created: function created() {\n\t this._navbar = true;\n\t },\n\t mounted: function mounted() {\n\t var _this = this;\n\t\n\t try {\n\t (function () {\n\t var $dropdown = (0, _NodeList2.default)('.dropdown>[data-toggle=\"dropdown\"]', _this.$el).parent();\n\t if ($dropdown) {\n\t $dropdown.on('click', '.dropdown-toggle', function (e) {\n\t e.preventDefault();\n\t $dropdown.each(function (content) {\n\t if (content.contains(e.target)) content.classList.toggle('open');\n\t });\n\t }).on('click', '.dropdown-menu>li>a', function (e) {\n\t $dropdown.each(function (content) {\n\t if (content.contains(e.target)) content.classList.remove('open');\n\t });\n\t }).onBlur(function (e) {\n\t $dropdown.each(function (content) {\n\t if (!content.contains(e.target)) content.classList.remove('open');\n\t });\n\t });\n\t }\n\t })();\n\t } catch (ex) {\n\t console.log('error finding dropdown');\n\t }\n\t\n\t (0, _NodeList2.default)(this.$el).on('click touchstart', 'li:not(.dropdown)>a', function (e) {\n\t setTimeout(function () {\n\t _this.collapsed = true;\n\t }, 200);\n\t }).onBlur(function (e) {\n\t if (!_this.$el.contains(e.target)) {\n\t _this.collapsed = true;\n\t }\n\t });\n\t var height = this.$el.offsetHeight;\n\t if (this.placement === 'top') {\n\t document.body.style.paddingTop = height + 'px';\n\t }\n\t if (this.placement === 'bottom') {\n\t document.body.style.paddingBottom = height + 'px';\n\t }\n\t if (this.$slots.collapse) (0, _NodeList2.default)('[data-toggle=\"collapse\"]', this.$el).on('click', function (e) {\n\t return _this.toggleCollapse(e);\n\t });\n\t },\n\t beforeDestroy: function beforeDestroy() {\n\t (0, _NodeList2.default)('.dropdown', this.$el).off('click').offBlur();\n\t if (this.$slots.collapse) (0, _NodeList2.default)('[data-toggle=\"collapse\"]', this.$el).off('click');\n\t }\n\t}; //\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\n/***/ },\n/* 130 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('nav', {\n\t class: ['navbar', 'navbar-' + _vm.type, _vm.placement === 'static' ? 'navbar-static-top' : 'navbar-fixed-' + _vm.placement]\n\t }, [_vm._c('div', {\n\t staticClass: \"container-fluid\"\n\t }, [_vm._c('div', {\n\t staticClass: \"navbar-header\"\n\t }, [(!_vm.$slots.collapse) ? _vm._c('button', {\n\t staticClass: \"navbar-toggle collapsed\",\n\t attrs: {\n\t \"type\": \"button\",\n\t \"aria-expanded\": \"false\"\n\t },\n\t on: {\n\t \"click\": _vm.toggleCollapse\n\t }\n\t }, [_vm._c('span', {\n\t staticClass: \"sr-only\"\n\t }, [_vm._v(\"Toggle navigation\")]), _vm._v(\" \"), _vm._c('span', {\n\t staticClass: \"icon-bar\"\n\t }), _vm._v(\" \"), _vm._c('span', {\n\t staticClass: \"icon-bar\"\n\t }), _vm._v(\" \"), _vm._c('span', {\n\t staticClass: \"icon-bar\"\n\t })]) : _vm._e(), _vm._v(\" \"), _vm._t(\"collapse\"), _vm._v(\" \"), _vm._t(\"brand\")], 2), _vm._v(\" \"), _vm._c('div', {\n\t class: ['navbar-collapse', {\n\t collapse: _vm.collapsed\n\t }]\n\t }, [_vm._c('ul', {\n\t staticClass: \"nav navbar-nav\"\n\t }, [_vm._t(\"default\")], 2), _vm._v(\" \"), (_vm.$slots.left) ? _vm._c('ul', {\n\t staticClass: \"nav navbar-nav navbar-left\"\n\t }, [_vm._t(\"left\")], 2) : _vm._e(), _vm._v(\" \"), (_vm.$slots.right) ? _vm._c('ul', {\n\t staticClass: \"nav navbar-nav navbar-right\"\n\t }, [_vm._t(\"right\")], 2) : _vm._e()])])])\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-38f0619e\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 131 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(132)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(133)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\Option.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-42088116\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-42088116\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] Option.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 132 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t//\n\t\n\texports.default = {\n\t props: { value: null },\n\t data: function data() {\n\t return { loading: true };\n\t },\n\t mounted: function mounted() {\n\t if (this.$parent._select) {\n\t if (!this.$parent.options) {\n\t this.$parent.options = [];\n\t }\n\t var el = {};\n\t el[this.$parent.optionsLabel] = this.$el.innerHTML;\n\t el[this.$parent.optionsValue] = this.value;\n\t this.$parent.options.push(el);\n\t this.loading = false;\n\t } else {\n\t console.warn('options only work inside a select component');\n\t }\n\t }\n\t};\n\n/***/ },\n/* 133 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return (_vm.loading) ? _vm._c('li', [_vm._t(\"default\")], 2) : _vm._e()\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-42088116\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 134 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* styles */\n\t__webpack_require__(135)\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(137)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(138)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\Panel.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-b1e0461a\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-b1e0461a\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] Panel.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 135 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// style-loader: Adds some css to the DOM by adding a \\r\\n\"],\"sourceRoot\":\"webpack://\"}]);\n\t\n\t// exports\n\n\n/***/ },\n/* 137 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t\n\texports.default = {\n\t props: {\n\t header: { type: String },\n\t isOpen: { type: Boolean, default: null },\n\t type: { type: String, default: null }\n\t },\n\t data: function data() {\n\t return {\n\t open: this.isOpen\n\t };\n\t },\n\t\n\t watch: {\n\t isOpen: function isOpen(val) {\n\t this.open = val;\n\t }\n\t },\n\t computed: {\n\t inAccordion: function inAccordion() {\n\t return this.$parent && this.$parent._isAccordion;\n\t },\n\t panelType: function panelType() {\n\t return 'panel-' + (this.type || this.$parent && this.$parent.type || 'default');\n\t }\n\t },\n\t methods: {\n\t toggle: function toggle() {\n\t this.open = !this.open;\n\t if (this.inAccordion) {\n\t this.$parent.openChild(this);\n\t }\n\t },\n\t enter: function enter(el) {\n\t el.style.height = 'auto';\n\t var endWidth = getComputedStyle(el).height;\n\t el.style.height = '0px';\n\t el.offsetHeight; // force repaint\n\t el.style.height = endWidth;\n\t },\n\t afterEnter: function afterEnter(el) {\n\t el.style.height = 'auto';\n\t },\n\t beforeLeave: function beforeLeave(el) {\n\t el.style.height = getComputedStyle(el).height;\n\t el.offsetHeight; // force repaint\n\t el.style.height = '0px';\n\t }\n\t },\n\t created: function created() {\n\t if (this.isOpen === null) {\n\t this.open = !this.inAccordion;\n\t }\n\t }\n\t};\n\n/***/ },\n/* 138 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('div', {\n\t class: ['panel', _vm.panelType]\n\t }, [_vm._c('div', {\n\t class: ['panel-heading', {\n\t 'accordion-toggle': _vm.inAccordion\n\t }],\n\t on: {\n\t \"click\": function($event) {\n\t $event.preventDefault();\n\t _vm.inAccordion && _vm.toggle()\n\t }\n\t }\n\t }, [_vm._t(\"header\", [_vm._c('h4', {\n\t staticClass: \"panel-title\"\n\t }, [_vm._v(_vm._s(_vm.header))])])], 2), _vm._v(\" \"), _vm._c('transition', {\n\t attrs: {\n\t \"name\": \"collapse\"\n\t },\n\t on: {\n\t \"enter\": _vm.enter,\n\t \"after-enter\": _vm.afterEnter,\n\t \"before-leave\": _vm.beforeLeave\n\t }\n\t }, [(_vm.open) ? _vm._c('div', {\n\t staticClass: \"panel-collapse\"\n\t }, [_vm._c('div', {\n\t staticClass: \"panel-body\"\n\t }, [_vm._t(\"default\")], 2)]) : _vm._e()])], 1)\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-b1e0461a\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 139 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* styles */\n\t__webpack_require__(140)\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(142)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(144)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\Popover.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-2465bf54\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-2465bf54\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] Popover.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 140 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// style-loader: Adds some css to the DOM by adding a \\r\\n\"],\"sourceRoot\":\"webpack://\"}]);\n\t\n\t// exports\n\n\n/***/ },\n/* 142 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _popoverMixins = __webpack_require__(143);\n\t\n\tvar _popoverMixins2 = _interopRequireDefault(_popoverMixins);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = {\n\t mixins: [_popoverMixins2.default],\n\t props: {\n\t trigger: { type: String, default: 'click' }\n\t }\n\t}; //\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\n/***/ },\n/* 143 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _NodeList = __webpack_require__(1);\n\t\n\tvar _NodeList2 = _interopRequireDefault(_NodeList);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = {\n\t props: {\n\t content: { type: String },\n\t effect: { type: String, default: 'fade' },\n\t header: { type: Boolean, default: true },\n\t placement: { type: String, default: 'top' },\n\t title: { type: String },\n\t trigger: { type: String }\n\t },\n\t data: function data() {\n\t return {\n\t top: 0,\n\t left: 0,\n\t show: false\n\t };\n\t },\n\t\n\t computed: {\n\t events: function events() {\n\t return { contextmenu: ['contextmenu'], hover: ['mouseleave', 'mouseenter'], focus: ['blur', 'focus'] }[this.trigger] || ['click'];\n\t }\n\t },\n\t methods: {\n\t beforeEnter: function beforeEnter() {\n\t var _this = this;\n\t\n\t this.position();\n\t setTimeout(function () {\n\t return _this.position();\n\t }, 30);\n\t },\n\t position: function position() {\n\t var _this2 = this;\n\t\n\t this.$nextTick(function () {\n\t var popover = _this2.$refs.popover;\n\t var trigger = _this2.$refs.trigger.children[0];\n\t switch (_this2.placement) {\n\t case 'top':\n\t _this2.left = trigger.offsetLeft - popover.offsetWidth / 2 + trigger.offsetWidth / 2;\n\t _this2.top = trigger.offsetTop - popover.offsetHeight;\n\t break;\n\t case 'left':\n\t _this2.left = trigger.offsetLeft - popover.offsetWidth;\n\t _this2.top = trigger.offsetTop + trigger.offsetHeight / 2 - popover.offsetHeight / 2;\n\t break;\n\t case 'right':\n\t _this2.left = trigger.offsetLeft + trigger.offsetWidth;\n\t _this2.top = trigger.offsetTop + trigger.offsetHeight / 2 - popover.offsetHeight / 2;\n\t break;\n\t case 'bottom':\n\t _this2.left = trigger.offsetLeft - popover.offsetWidth / 2 + trigger.offsetWidth / 2;\n\t _this2.top = trigger.offsetTop + trigger.offsetHeight;\n\t break;\n\t default:\n\t console.warn('Wrong placement prop');\n\t }\n\t popover.style.top = _this2.top + 'px';\n\t popover.style.left = _this2.left + 'px';\n\t });\n\t },\n\t toggle: function toggle(e) {\n\t if (e && this.trigger === 'contextmenu') e.preventDefault();\n\t this.show = !this.show;\n\t if (this.show) this.beforeEnter();\n\t }\n\t },\n\t mounted: function mounted() {\n\t var _this3 = this;\n\t\n\t var trigger = this.$refs.trigger.children[0];\n\t if (!trigger) return console.error('Could not find trigger v-el in your component that uses popoverMixin.');\n\t\n\t if (this.trigger === 'focus' && !~trigger.tabIndex) {\n\t trigger = (0, _NodeList2.default)('a,input,select,textarea,button', trigger);\n\t if (!trigger.length) {\n\t return;\n\t }\n\t }\n\t this.events.forEach(function (event) {\n\t (0, _NodeList2.default)(trigger).on(event, _this3.toggle);\n\t });\n\t },\n\t beforeDestroy: function beforeDestroy() {\n\t if (this._trigger) (0, _NodeList2.default)(this._trigger).off();\n\t }\n\t};\n\n/***/ },\n/* 144 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('span', {\n\t ref: \"trigger\"\n\t }, [_vm._t(\"default\"), _vm._v(\" \"), _vm._c('transition', {\n\t attrs: {\n\t \"name\": _vm.effect\n\t }\n\t }, [(_vm.show) ? _vm._c('div', {\n\t ref: \"popover\",\n\t class: ['popover', _vm.placement]\n\t }, [_vm._c('div', {\n\t staticClass: \"arrow\"\n\t }), _vm._v(\" \"), (_vm.title) ? _vm._c('h3', {\n\t staticClass: \"popover-title\"\n\t }, [_vm._t(\"title\", [_vm._v(_vm._s(_vm.title))])], 2) : _vm._e(), _vm._v(\" \"), _vm._c('div', {\n\t staticClass: \"popover-content\"\n\t }, [_vm._t(\"content\", [_vm._c('span', {\n\t domProps: {\n\t \"innerHTML\": _vm._s(_vm.content)\n\t }\n\t })])], 2)]) : _vm._e()])], 2)\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-2465bf54\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 145 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(146)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(147)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\Progressbar.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-68aa3375\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-68aa3375\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] Progressbar.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 146 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _utils = __webpack_require__(65);\n\t\n\texports.default = {\n\t props: {\n\t animated: { type: Boolean, default: false },\n\t label: { default: false },\n\t now: { required: true },\n\t striped: { type: Boolean, default: false },\n\t type: { type: String }\n\t },\n\t computed: {\n\t labelBool: function labelBool() {\n\t return _utils.coerce.boolean(this.label);\n\t },\n\t nowNum: function nowNum() {\n\t return _utils.coerce.number(this.now);\n\t }\n\t }\n\t}; //\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\n/***/ },\n/* 147 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('div', {\n\t class: ['progress-bar', 'progress-bar-' + _vm.type, {\n\t active: _vm.animated,\n\t 'progress-bar-striped': _vm.striped\n\t }],\n\t style: ({\n\t width: _vm.nowNum + '%'\n\t }),\n\t domProps: {\n\t \"textContent\": _vm._s(_vm.labelBool ? _vm.nowNum + '%' : null)\n\t }\n\t })\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-68aa3375\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 148 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* styles */\n\t__webpack_require__(149)\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(151)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(152)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\Radio.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-74cfd92c\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-74cfd92c\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] Radio.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 149 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// style-loader: Adds some css to the DOM by adding a \\r\\n\"],\"sourceRoot\":\"webpack://\"}]);\n\t\n\t// exports\n\n\n/***/ },\n/* 151 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t\n\texports.default = {\n\t props: {\n\t button: { type: Boolean, default: false },\n\t checkedValue: { default: true },\n\t disabled: { type: Boolean, default: false },\n\t name: { type: String, default: null },\n\t readonly: { type: Boolean, default: false },\n\t type: { type: String, default: null },\n\t value: { default: false }\n\t },\n\t data: function data() {\n\t return {\n\t check: this.value\n\t };\n\t },\n\t\n\t computed: {\n\t active: function active() {\n\t return this.check === this.checkedValue;\n\t },\n\t parentValue: function parentValue() {\n\t return this._inGroup ? this.$parent.val === this.value : null;\n\t },\n\t buttonStyle: function buttonStyle() {\n\t return this.button || this._inGroup && this.$parent.buttons;\n\t },\n\t typeColor: function typeColor() {\n\t return this.type || this.$parent && this.$parent.type || 'default';\n\t }\n\t },\n\t watch: {\n\t check: function check(val) {\n\t if (this.checkedValue === val) {\n\t this.$emit('input', val);\n\t this.$emit('checked', true);\n\t if (this._inGroup) {\n\t this.$parent.val = val;\n\t }\n\t }\n\t },\n\t parentValue: function parentValue(val) {\n\t if (this.check !== val && this.checkedValue === val) {\n\t this.check = val;\n\t }\n\t },\n\t value: function value(val) {\n\t this.check = this.checkedValue === val ? val : null;\n\t }\n\t },\n\t created: function created() {\n\t var parent = this.$parent;\n\t if (parent && parent._btnGroup && !parent._checkboxGroup) {\n\t this._inGroup = true;\n\t parent._radioGroup = true;\n\t }\n\t if (this.$parent._radioGroup) {\n\t if (this.$parent.val) {\n\t this.check = this.$parent.val === this.checkedValue;\n\t } else if (this.check) {\n\t this.$parent.val = this.checkedValue;\n\t }\n\t }\n\t },\n\t\n\t methods: {\n\t focus: function focus() {\n\t this.$refs.input.focus();\n\t },\n\t toggle: function toggle() {\n\t if (this.disabled) {\n\t return;\n\t }\n\t this.focus();\n\t if (this.readonly) {\n\t return;\n\t }\n\t this.check = this.checkedValue;\n\t if (this._inGroup) {\n\t this.$parent.val = this.checkedValue;\n\t }\n\t }\n\t }\n\t};\n\n/***/ },\n/* 152 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c(_vm.buttonStyle ? 'label' : 'div', {\n\t tag: \"div\",\n\t class: [(_vm.buttonStyle ? 'btn btn-' + _vm.typeColor : 'radio ' + _vm.typeColor), {\n\t active: _vm.active,\n\t disabled: _vm.disabled,\n\t readonly: _vm.readonly\n\t }],\n\t on: {\n\t \"click\": function($event) {\n\t $event.preventDefault();\n\t _vm.toggle($event)\n\t }\n\t }\n\t }, [(_vm.buttonStyle) ? [_vm._c('input', {\n\t directives: [{\n\t name: \"show\",\n\t rawName: \"v-show\",\n\t value: (!_vm.readonly),\n\t expression: \"!readonly\"\n\t }, {\n\t name: \"model\",\n\t rawName: \"v-model\",\n\t value: (_vm.check),\n\t expression: \"check\"\n\t }],\n\t ref: \"input\",\n\t attrs: {\n\t \"type\": \"radio\",\n\t \"autocomplete\": \"off\",\n\t \"name\": _vm.name,\n\t \"readonly\": _vm.readonly,\n\t \"disabled\": _vm.disabled\n\t },\n\t domProps: {\n\t \"value\": _vm.checkedValue,\n\t \"checked\": _vm._q(_vm.check, _vm.checkedValue)\n\t },\n\t on: {\n\t \"click\": function($event) {\n\t _vm.check = _vm.checkedValue\n\t }\n\t }\n\t }), _vm._v(\" \"), _vm._t(\"default\")] : _vm._c('label', {\n\t staticClass: \"open\"\n\t }, [_vm._c('input', {\n\t directives: [{\n\t name: \"model\",\n\t rawName: \"v-model\",\n\t value: (_vm.check),\n\t expression: \"check\"\n\t }],\n\t ref: \"input\",\n\t attrs: {\n\t \"type\": \"radio\",\n\t \"autocomplete\": \"off\",\n\t \"name\": _vm.name,\n\t \"readonly\": _vm.readonly,\n\t \"disabled\": _vm.disabled\n\t },\n\t domProps: {\n\t \"value\": _vm.checkedValue,\n\t \"checked\": _vm._q(_vm.check, _vm.checkedValue)\n\t },\n\t on: {\n\t \"click\": function($event) {\n\t _vm.check = _vm.checkedValue\n\t }\n\t }\n\t }), _vm._v(\" \"), _vm._c('span', {\n\t staticClass: \"icon dropdown-toggle\",\n\t class: [_vm.active ? 'btn-' + _vm.typeColor : '', {\n\t bg: _vm.typeColor === 'default'\n\t }]\n\t }), _vm._v(\" \"), (_vm.active && _vm.typeColor === 'default') ? _vm._c('span', {\n\t staticClass: \"icon\"\n\t }) : _vm._e(), _vm._v(\" \"), _vm._t(\"default\")], 2)], 2)\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-74cfd92c\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 153 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* styles */\n\t__webpack_require__(154)\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(156)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(157)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\Select.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t__vue_options__._scopeId = \"data-v-e514dbc6\"\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-e514dbc6\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-e514dbc6\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] Select.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 154 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// style-loader: Adds some css to the DOM by adding a \\r\\n\"],\"sourceRoot\":\"webpack://\"}]);\n\t\n\t// exports\n\n\n/***/ },\n/* 156 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _utils = __webpack_require__(65);\n\t\n\tvar _ClickOutside = __webpack_require__(66);\n\t\n\tvar _ClickOutside2 = _interopRequireDefault(_ClickOutside);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t\n\tvar timeout = {};\n\texports.default = {\n\t directives: {\n\t ClickOutside: _ClickOutside2.default\n\t },\n\t props: {\n\t clearButton: { type: Boolean, default: false },\n\t closeOnSelect: { type: Boolean, default: false },\n\t disabled: { type: Boolean, default: false },\n\t lang: { type: String, default: navigator.language },\n\t limit: { type: Number, default: 1024 },\n\t minSearch: { type: Number, default: 0 },\n\t multiple: { type: Boolean, default: false },\n\t name: { type: String, default: null },\n\t options: { type: Array, default: function _default() {\n\t return [];\n\t }\n\t },\n\t optionsLabel: { type: String, default: 'label' },\n\t optionsValue: { type: String, default: 'value' },\n\t parent: { default: true },\n\t placeholder: { type: String, default: null },\n\t readonly: { type: Boolean, default: null },\n\t required: { type: Boolean, default: null },\n\t search: { type: Boolean, default: false },\n\t searchText: { type: String, default: null },\n\t url: { type: String, default: null },\n\t value: null\n\t },\n\t data: function data() {\n\t return {\n\t list: [],\n\t loading: null,\n\t searchValue: null,\n\t show: false,\n\t notify: false,\n\t val: null,\n\t valid: null\n\t };\n\t },\n\t\n\t computed: {\n\t canSearch: function canSearch() {\n\t return this.minSearch ? this.list.length >= this.minSearch : this.search;\n\t },\n\t classes: function classes() {\n\t return [{ open: this.show, disabled: this.disabled }, this.class, this.isLi ? 'dropdown' : this.inInput ? 'input-group-btn' : 'btn-group'];\n\t },\n\t filteredOptions: function filteredOptions() {\n\t var _this = this;\n\t\n\t var search = (this.searchValue || '').toLowerCase();\n\t return !search ? this.list : this.list.filter(function (el) {\n\t return ~el[_this.optionsLabel].toLowerCase().search(search);\n\t });\n\t },\n\t hasParent: function hasParent() {\n\t return this.parent instanceof Array ? this.parent.length : this.parent;\n\t },\n\t inInput: function inInput() {\n\t return this.$parent._input;\n\t },\n\t isLi: function isLi() {\n\t return this.$parent._navbar || this.$parent.menu || this.$parent._tabset;\n\t },\n\t limitText: function limitText() {\n\t return this.text.limit.replace('{{limit}}', this.limit);\n\t },\n\t selected: function selected() {\n\t var _this2 = this;\n\t\n\t if (this.list.length === 0) {\n\t return '';\n\t }\n\t var sel = this.values.map(function (val) {\n\t return (_this2.list.find(function (o) {\n\t return o[_this2.optionsValue] === val;\n\t }) || {})[_this2.optionsLabel];\n\t }).filter(function (val) {\n\t return val !== undefined;\n\t });\n\t this.$emit('selected', sel);\n\t return sel.join(', ');\n\t },\n\t showPlaceholder: function showPlaceholder() {\n\t return this.values.length === 0 || !this.hasParent ? this.placeholder || this.text.notSelected : null;\n\t },\n\t text: function text() {\n\t return (0, _utils.translations)(this.lang);\n\t },\n\t values: function values() {\n\t return this.val instanceof Array ? this.val : ~[null, undefined].indexOf(this.val) ? [] : [this.val];\n\t },\n\t valOptions: function valOptions() {\n\t var _this3 = this;\n\t\n\t return this.list.map(function (el) {\n\t return el[_this3.optionsValue];\n\t });\n\t }\n\t },\n\t watch: {\n\t options: function options(_options) {\n\t if (_options instanceof Array) this.setOptions(_options);\n\t },\n\t show: function show(val) {\n\t if (val) {\n\t this.$refs.search ? this.$refs.search.focus() : this.$refs.btn.focus();\n\t // onBlur(this.$refs.select, e => { this.show = false })\n\t } else {\n\t // offBlur(this.$refs.select)\n\t }\n\t },\n\t url: function url() {\n\t this.urlChanged();\n\t },\n\t valid: function valid(val, old) {\n\t this.$emit('isvalid', val);\n\t this.$emit(!val ? 'invalid' : 'valid');\n\t if (val !== old && this._parent) this._parent.validate();\n\t },\n\t value: function value(val, old) {\n\t if (val !== old) {\n\t this.val = val;\n\t }\n\t },\n\t val: function val(_val, old) {\n\t var _this4 = this;\n\t\n\t if (_val === undefined) {\n\t this.val = _val = null;\n\t }\n\t if (_val !== old) {\n\t this.$emit('change', _val);\n\t this.$emit('input', _val);\n\t }\n\t if (_val instanceof Array && _val.length > this.limit) {\n\t this.val = _val.slice(0, this.limit);\n\t this.notify = true;\n\t if (timeout.limit) clearTimeout(timeout.limit);\n\t timeout.limit = setTimeout(function () {\n\t timeout.limit = false;\n\t _this4.notify = false;\n\t }, 1500);\n\t }\n\t this.valid = this.validate();\n\t }\n\t },\n\t methods: {\n\t close: function close() {\n\t this.show = false;\n\t },\n\t checkData: function checkData() {\n\t if (this.multiple) {\n\t if (this.limit < 1) {\n\t this.limit = 1;\n\t }\n\t if (!(this.val instanceof Array)) {\n\t this.val = this.val === null || this.val === undefined ? [] : [this.val];\n\t }\n\t var values = this.valOptions;\n\t this.val = this.val.filter(function (el) {\n\t return ~values.indexOf(el);\n\t });\n\t if (this.values.length > this.limit) {\n\t this.val = this.val.slice(0, this.limit);\n\t }\n\t } else {\n\t if (!~this.valOptions.indexOf(this.val)) {\n\t this.val = null;\n\t }\n\t }\n\t },\n\t clear: function clear() {\n\t if (this.disabled || this.readonly) {\n\t return;\n\t }\n\t this.val = this.val instanceof Array ? [] : null;\n\t this.toggle();\n\t },\n\t clearSearch: function clearSearch() {\n\t this.searchValue = '';\n\t this.$refs.search.focus();\n\t },\n\t isSelected: function isSelected(v) {\n\t return this.values.indexOf(v) > -1;\n\t },\n\t select: function select(v) {\n\t if (this.val instanceof Array) {\n\t var newVal = this.val.slice(0);\n\t if (~newVal.indexOf(v)) {\n\t newVal.splice(newVal.indexOf(v), 1);\n\t } else {\n\t newVal.push(v);\n\t }\n\t this.val = newVal;\n\t if (this.closeOnSelect) {\n\t this.toggle();\n\t }\n\t } else {\n\t this.val = v;\n\t this.toggle();\n\t }\n\t },\n\t setOptions: function setOptions(options) {\n\t var _this5 = this;\n\t\n\t this.list = options.map(function (el) {\n\t if (el instanceof Object) {\n\t return el;\n\t }\n\t var obj = {};\n\t obj[_this5.optionsLabel] = el;\n\t obj[_this5.optionsValue] = el;\n\t return obj;\n\t });\n\t this.$emit('options', this.list);\n\t },\n\t toggle: function toggle() {\n\t this.show = !this.show;\n\t if (!this.show) this.$refs.btn.focus();\n\t },\n\t urlChanged: function urlChanged() {\n\t var _this6 = this;\n\t\n\t if (!this.url || !this.$http) {\n\t return;\n\t }\n\t this.loading = true;\n\t this.$http.get(this.url).then(function (response) {\n\t var data = response.data instanceof Array ? response.data : [];\n\t try {\n\t data = JSON.parse(data);\n\t } catch (e) {}\n\t _this6.setOptions(data);\n\t _this6.loading = false;\n\t _this6.checkData();\n\t }, function (response) {\n\t _this6.loading = false;\n\t });\n\t },\n\t validate: function validate() {\n\t return !this.required ? true : this.val instanceof Array ? this.val.length > 0 : this.val !== null;\n\t }\n\t },\n\t created: function created() {\n\t this.setOptions(this.options);\n\t this.val = this.value;\n\t this._select = true;\n\t if (this.val === undefined || !this.parent) {\n\t this.val = null;\n\t }\n\t if (!this.multiple && this.val instanceof Array) {\n\t this.val = this.val[0];\n\t }\n\t this.checkData();\n\t if (this.url) this.urlChanged();\n\t var parent = this.$parent;\n\t while (parent && !parent._formValidator) {\n\t parent = parent.$parent;\n\t }\n\t if (parent && parent._formValidator) {\n\t parent.children.push(this);\n\t this._parent = parent;\n\t }\n\t },\n\t mounted: function mounted() {\n\t if (this._parent) this._parent.children.push(this);\n\t this.setOptions(this.options);\n\t this.val = this.value;\n\t this.checkData();\n\t },\n\t beforeDestroy: function beforeDestroy() {\n\t if (this._parent) {\n\t var index = this._parent.children.indexOf(this);\n\t this._parent.children.splice(index, 1);\n\t }\n\t }\n\t};\n\n/***/ },\n/* 157 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('div', {\n\t directives: [{\n\t name: \"click-outside\",\n\t rawName: \"v-click-outside\",\n\t value: (_vm.close),\n\t expression: \"close\"\n\t }],\n\t ref: \"select\",\n\t class: _vm.classes\n\t }, [_vm._c('div', {\n\t ref: \"btn\",\n\t staticClass: \"form-control dropdown-toggle\",\n\t attrs: {\n\t \"tabindex\": \"1\",\n\t \"disabled\": _vm.disabled || !_vm.hasParent,\n\t \"readonly\": _vm.readonly\n\t },\n\t on: {\n\t \"blur\": function($event) {\n\t _vm.canSearch ? null : _vm.close()\n\t },\n\t \"click\": function($event) {\n\t _vm.toggle()\n\t },\n\t \"keydown\": [function($event) {\n\t if (_vm._k($event.keyCode, \"esc\", 27)) { return; }\n\t $event.stopPropagation();\n\t $event.preventDefault();\n\t _vm.close($event)\n\t }, function($event) {\n\t if (_vm._k($event.keyCode, \"space\", 32)) { return; }\n\t $event.stopPropagation();\n\t $event.preventDefault();\n\t _vm.toggle($event)\n\t }, function($event) {\n\t if (_vm._k($event.keyCode, \"enter\", 13)) { return; }\n\t $event.stopPropagation();\n\t $event.preventDefault();\n\t _vm.toggle($event)\n\t }]\n\t }\n\t }, [_vm._c('span', {\n\t staticClass: \"btn-content\",\n\t domProps: {\n\t \"innerHTML\": _vm._s(_vm.loading ? _vm.text.loading : _vm.showPlaceholder || _vm.selected)\n\t }\n\t }), _vm._v(\" \"), (_vm.clearButton && _vm.values.length) ? _vm._c('span', {\n\t staticClass: \"close\",\n\t on: {\n\t \"click\": function($event) {\n\t _vm.clear()\n\t }\n\t }\n\t }, [_vm._v(\"×\")]) : _vm._e()]), _vm._v(\" \"), _vm._c('select', {\n\t directives: [{\n\t name: \"model\",\n\t rawName: \"v-model\",\n\t value: (_vm.val),\n\t expression: \"val\"\n\t }],\n\t ref: \"sel\",\n\t staticClass: \"secret\",\n\t attrs: {\n\t \"name\": _vm.name,\n\t \"multiple\": _vm.multiple,\n\t \"required\": _vm.required,\n\t \"readonly\": _vm.readonly,\n\t \"disabled\": _vm.disabled\n\t },\n\t on: {\n\t \"change\": function($event) {\n\t _vm.val = Array.prototype.filter.call($event.target.options, function(o) {\n\t return o.selected\n\t }).map(function(o) {\n\t var val = \"_value\" in o ? o._value : o.value;\n\t return val\n\t })[0]\n\t }\n\t }\n\t }, [(_vm.required) ? _vm._c('option', {\n\t attrs: {\n\t \"value\": \"\"\n\t }\n\t }) : _vm._e(), _vm._v(\" \"), _vm._l((_vm.list), function(option) {\n\t return _vm._c('option', {\n\t domProps: {\n\t \"value\": option[_vm.optionsValue]\n\t }\n\t }, [_vm._v(_vm._s(option[_vm.optionsLabel]))])\n\t })], 2), _vm._v(\" \"), _vm._c('ul', {\n\t staticClass: \"dropdown-menu\"\n\t }, [(_vm.list.length) ? [(_vm.canSearch) ? _vm._c('li', {\n\t staticClass: \"bs-searchbox\"\n\t }, [_vm._c('input', {\n\t directives: [{\n\t name: \"model\",\n\t rawName: \"v-model\",\n\t value: (_vm.searchValue),\n\t expression: \"searchValue\"\n\t }],\n\t ref: \"search\",\n\t staticClass: \"form-control\",\n\t attrs: {\n\t \"type\": \"text\",\n\t \"placeholder\": _vm.searchText || _vm.text.search,\n\t \"autocomplete\": \"off\"\n\t },\n\t domProps: {\n\t \"value\": _vm._s(_vm.searchValue)\n\t },\n\t on: {\n\t \"keyup\": function($event) {\n\t if (_vm._k($event.keyCode, \"esc\", 27)) { return; }\n\t _vm.close($event)\n\t },\n\t \"input\": function($event) {\n\t if ($event.target.composing) { return; }\n\t _vm.searchValue = $event.target.value\n\t }\n\t }\n\t }), _vm._v(\" \"), _vm._c('span', {\n\t directives: [{\n\t name: \"show\",\n\t rawName: \"v-show\",\n\t value: (_vm.searchValue),\n\t expression: \"searchValue\"\n\t }],\n\t staticClass: \"close\",\n\t on: {\n\t \"click\": _vm.clearSearch\n\t }\n\t }, [_vm._v(\"×\")])]) : _vm._e(), _vm._v(\" \"), (_vm.required && !_vm.clearButton) ? _vm._c('li', [_vm._c('a', {\n\t on: {\n\t \"mousedown\": function($event) {\n\t $event.preventDefault();\n\t _vm.clear() && _vm.close()\n\t }\n\t }\n\t }, [_vm._v(_vm._s(_vm.placeholder || _vm.text.notSelected))])]) : _vm._e(), _vm._v(\" \"), _vm._l((_vm.filteredOptions), function(option) {\n\t return _vm._c('li', {\n\t attrs: {\n\t \"id\": option[_vm.optionsValue]\n\t }\n\t }, [_vm._c('a', {\n\t on: {\n\t \"mousedown\": function($event) {\n\t $event.preventDefault();\n\t _vm.select(option[_vm.optionsValue])\n\t }\n\t }\n\t }, [_vm._c('span', {\n\t domProps: {\n\t \"innerHTML\": _vm._s(option[_vm.optionsLabel])\n\t }\n\t }), _vm._v(\" \"), _vm._c('span', {\n\t directives: [{\n\t name: \"show\",\n\t rawName: \"v-show\",\n\t value: (_vm.isSelected(option[_vm.optionsValue])),\n\t expression: \"isSelected(option[optionsValue])\"\n\t }],\n\t staticClass: \"glyphicon glyphicon-ok check-mark\"\n\t })])])\n\t })] : _vm._e(), _vm._v(\" \"), _vm._t(\"default\"), _vm._v(\" \"), (_vm.notify && !_vm.closeOnSelect) ? _vm._c('transition', {\n\t attrs: {\n\t \"name\": \"fadein\"\n\t }\n\t }, [_vm._c('div', {\n\t staticClass: \"notify in\"\n\t }, [_vm._v(_vm._s(_vm.limitText))])]) : _vm._e()], 2), _vm._v(\" \"), (_vm.notify && _vm.closeOnSelect) ? _vm._c('transition', {\n\t attrs: {\n\t \"name\": \"fadein\"\n\t }\n\t }, [_vm._c('div', {\n\t staticClass: \"notify out\"\n\t }, [_vm._c('div', [_vm._v(_vm._s(_vm.limitText))])])]) : _vm._e()], 1)\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-e514dbc6\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 158 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(159)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(160)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\Slider.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-32185b82\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-32185b82\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] Slider.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 159 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t//\n\t//\n\t\n\texports.default = {\n\t computed: {\n\t index: function index() {\n\t return this.$parent.$children.indexOf(this);\n\t },\n\t show: function show() {\n\t return this.$parent.index === this.index;\n\t }\n\t },\n\t mounted: function mounted() {\n\t if (this.$parent.indicator_list) {\n\t this.$parent.indicator_list.push(this.index);\n\t }\n\t\n\t if (this.index === 0) {\n\t this.$el.classList.add('active');\n\t }\n\t }\n\t};\n\n/***/ },\n/* 160 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('div', {\n\t staticClass: \"item\"\n\t }, [_vm._t(\"default\")], 2)\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-32185b82\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 161 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* styles */\n\t__webpack_require__(162)\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(164)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(165)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\Spinner.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-8b298e70\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-8b298e70\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] Spinner.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 162 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// style-loader: Adds some css to the DOM by adding a \\r\\n\"],\"sourceRoot\":\"webpack://\"}]);\n\t\n\t// exports\n\n\n/***/ },\n/* 164 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _utils = __webpack_require__(65);\n\t\n\tvar MIN_WAIT = 500; // in ms\n\t\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t\n\texports.default = {\n\t props: {\n\t fixed: { type: Boolean, default: false },\n\t global: { type: Boolean, default: false },\n\t size: { type: String, default: 'md' },\n\t text: { type: String, default: '' },\n\t value: { default: false }\n\t },\n\t data: function data() {\n\t return {\n\t active: this.value,\n\t locked: false\n\t };\n\t },\n\t\n\t computed: {\n\t spinnerSize: function spinnerSize() {\n\t return 'spinner-' + (this.size ? this.size : 'sm');\n\t }\n\t },\n\t watch: {\n\t active: function active(val, old) {\n\t if (val !== old) this.$emit('input', val);\n\t },\n\t value: function value(val, old) {\n\t if (val !== old) {\n\t this[val ? 'show' : 'hide']();\n\t }\n\t }\n\t },\n\t methods: {\n\t hide: function hide() {\n\t var delay = 0;\n\t this.active = false;\n\t },\n\t show: function show(options) {\n\t if (options) {\n\t if (options.text) {\n\t this.text = options.text;\n\t }\n\t if (options.size) {\n\t this.size = options.size;\n\t }\n\t if (options.fixed) {\n\t this.fixed = options.fixed;\n\t }\n\t }\n\t // block scrolling when spinner is on\n\t this._body.style.overflowY = 'hidden';\n\t // activate spinner\n\t this._started = new Date();\n\t this.active = true;\n\t this.locked = true;\n\t this._unlock();\n\t }\n\t },\n\t created: function created() {\n\t this._body = document.body;\n\t this._bodyOverflow = document.body.style.overflowY;\n\t this._unlock = (0, _utils.delayer)(function () {\n\t this.locked = false;\n\t this._body.style.overflowY = this._bodyOverflow;\n\t }, MIN_WAIT);\n\t if (this.global) {\n\t if (!this.$root._globalSpinner) {\n\t this.$root._globalSpinner = true;\n\t var self = this;\n\t this._global = {\n\t hide: function hide() {\n\t self.hide();\n\t },\n\t show: function show() {\n\t self.show();\n\t }\n\t };\n\t this.$root.$on('spinner::show', this._global.show);\n\t this.$root.$on('spinner::hide', this._global.hide);\n\t }\n\t }\n\t },\n\t beforeDestroy: function beforeDestroy() {\n\t if (this._global) {\n\t this.$root.$off('spinner::show', this._global.show);\n\t this.$root.$off('spinner::hide', this._global.hide);\n\t delete this.$root._globalSpinner;\n\t }\n\t clearTimeout(this._spinnerAnimation);\n\t this._body.style.overflowY = this._bodyOverflow;\n\t }\n\t};\n\n/***/ },\n/* 165 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('div', {\n\t directives: [{\n\t name: \"show\",\n\t rawName: \"v-show\",\n\t value: (_vm.active || _vm.locked),\n\t expression: \"active||locked\"\n\t }],\n\t class: ['spinner spinner-gritcode', _vm.spinnerSize, {\n\t 'spinner-fixed': _vm.fixed\n\t }]\n\t }, [_vm._c('div', {\n\t staticClass: \"spinner-wrapper\"\n\t }, [_vm._c('div', {\n\t staticClass: \"spinner-circle\"\n\t }), _vm._v(\" \"), _vm._c('div', {\n\t staticClass: \"spinner-text\"\n\t }, [_vm._v(_vm._s(_vm.text))])])])\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-8b298e70\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 166 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(167)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(168)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\Tab.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-0985e878\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-0985e878\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] Tab.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 167 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t//\n\t//\n\t//\n\t//\n\t\n\texports.default = {\n\t props: {\n\t disabled: { type: Boolean, default: false },\n\t header: { type: String }\n\t },\n\t data: function data() {\n\t return {\n\t fadein: false\n\t };\n\t },\n\t\n\t computed: {\n\t active: function active() {\n\t var _this = this;\n\t\n\t var active = !this._tabs || this._tabs.show === this;\n\t this.fadein = false;\n\t if (active) {\n\t setTimeout(function () {\n\t _this.fadein = true;\n\t }, 0);\n\t }\n\t return active;\n\t },\n\t index: function index() {\n\t return this._tabs.tabs.indexOf(this);\n\t },\n\t transition: function transition() {\n\t return this._tabs ? this._tabs.effect : null;\n\t }\n\t },\n\t created: function created() {\n\t this._isTab = true;\n\t var tabs = this;\n\t while (!this._tabs && tabs.$parent) {\n\t if (tabs._isTabGroup) {\n\t tabs.tabs.push(this);\n\t this._tabGroup = tabs;\n\t }\n\t if (tabs._isTabs) {\n\t tabs.tabs.push(this);\n\t this._tabs = tabs;\n\t if (!this._tabGroup) tabs.headers.push(this);\n\t }\n\t tabs = tabs.$parent;\n\t }\n\t if (!this._tabs) throw Error('tab depend on tabs.');\n\t },\n\t beforeDestroy: function beforeDestroy() {\n\t var _this2 = this;\n\t\n\t if (this._tabGroup) {\n\t this._tabGroup.tabs = this._tabGroup.tabs.filter(function (el) {\n\t return el !== _this2;\n\t });\n\t }\n\t if (this._tabs) {\n\t this._tabs.tabs = this._tabs.tabs.filter(function (el) {\n\t return el !== _this2;\n\t });\n\t }\n\t if (this._tabs) {\n\t if (this._tabs.active === this.index) {\n\t this._tabs.index = 0;\n\t }\n\t if (this._ingroup) {\n\t var id = this.$parent.tabs.indexOf(this);\n\t if (~id) this.$parent.tabs.splice(id, 1);\n\t }\n\t }\n\t if (this._tabs) {\n\t var _id = this._tabs.tabs.indexOf(this);\n\t if (~_id) this._tabs.tabs.splice(_id, 1);\n\t }\n\t }\n\t};\n\n/***/ },\n/* 168 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('div', {\n\t ref: \"panel\",\n\t class: ['tab-pane', {\n\t 'active fade': _vm.active,\n\t 'in': _vm.fadein\n\t }],\n\t attrs: {\n\t \"role\": \"tabpanel\"\n\t }\n\t }, [_vm._t(\"default\")], 2)\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-0985e878\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 169 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* styles */\n\t__webpack_require__(170)\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(172)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(173)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\TabGroup.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-55faf3cb\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-55faf3cb\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] TabGroup.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 170 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// style-loader: Adds some css to the DOM by adding a \\r\\n\"],\"sourceRoot\":\"webpack://\"}]);\n\t\n\t// exports\n\n\n/***/ },\n/* 172 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t//\n\t//\n\t\n\texports.default = {\n\t props: {\n\t disabled: { type: Boolean, default: false },\n\t header: { type: String }\n\t },\n\t data: function data() {\n\t return {\n\t show: false,\n\t tabs: []\n\t };\n\t },\n\t\n\t computed: {\n\t active: function active() {\n\t return ~this.tabs.indexOf(this._tabs.show);\n\t }\n\t },\n\t methods: {\n\t blur: function blur() {\n\t this.show = false;\n\t },\n\t toggle: function toggle() {\n\t this.show = !this.show;\n\t }\n\t },\n\t created: function created() {\n\t this._isTabGroup = true;\n\t if (this.$parent) {\n\t if (this.$parent._isTabGroup) throw Error('Can\\'t nest tab-groups.');\n\t if (!this.$parent._isTabs) throw Error('tab-group depend on tabs.');\n\t }\n\t this._tabs = this.$parent;\n\t this._tabs.headers.push(this);\n\t }\n\t};\n\n/***/ },\n/* 173 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('span', [_vm._t(\"default\")], 2)\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-55faf3cb\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 174 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* styles */\n\t__webpack_require__(175)\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(177)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(178)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\Tabs.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-70100ddf\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-70100ddf\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] Tabs.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 175 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// style-loader: Adds some css to the DOM by adding a \"],\"sourceRoot\":\"webpack://\"}]);\n\t\n\t// exports\n\n\n/***/ },\n/* 177 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _utils = __webpack_require__(65);\n\t\n\tvar _Dropdown = __webpack_require__(105);\n\t\n\tvar _Dropdown2 = _interopRequireDefault(_Dropdown);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t\n\texports.default = {\n\t components: {\n\t dropdown: _Dropdown2.default\n\t },\n\t props: {\n\t // effect: {type: String, default: 'fadein'},\n\t justified: false,\n\t navStyle: { type: String, default: null },\n\t value: { type: Number, default: 0 }\n\t },\n\t data: function data() {\n\t var index = this.value || 0;\n\t return {\n\t index: index,\n\t headers: [],\n\t tabs: []\n\t };\n\t },\n\t\n\t watch: {\n\t index: function index(val) {\n\t this.$emit('active', val);\n\t this.$emit('input', val);\n\t },\n\t value: function value(val) {\n\t this.index = val;\n\t }\n\t },\n\t computed: {\n\t navStyleClass: function navStyleClass() {\n\t return ['nav', ~['pills', 'stacked'].indexOf(this.navStyle) ? 'nav-' + this.navStyle : 'nav-tabs', {\n\t 'nav-justified': _utils.coerce.boolean(this.justified),\n\t 'nav-pills': this.navStyle === 'stacked'\n\t }];\n\t },\n\t show: function show() {\n\t return this.tabs[this.index] || this.tabs[0];\n\t }\n\t },\n\t methods: {\n\t select: function select(tab) {\n\t if (!tab.disabled) {\n\t this.index = this.tabs.indexOf(tab);\n\t }\n\t }\n\t },\n\t created: function created() {\n\t this._isTabs = true;\n\t }\n\t};\n\n/***/ },\n/* 178 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('div', {\n\t attrs: {\n\t \"tabs\": \"\"\n\t }\n\t }, [_vm._c('ul', {\n\t class: _vm.navStyleClass,\n\t attrs: {\n\t \"role\": \"tablist\"\n\t }\n\t }, [_vm._l((_vm.headers), function(header) {\n\t return [(header._isTab) ? _vm._c('li', {\n\t class: {\n\t active: header.active, disabled: header.disabled\n\t },\n\t on: {\n\t \"click\": function($event) {\n\t $event.preventDefault();\n\t _vm.select(header)\n\t }\n\t }\n\t }, [_vm._t(\"header\", [_vm._c('a', {\n\t attrs: {\n\t \"href\": \"#\"\n\t },\n\t domProps: {\n\t \"innerHTML\": _vm._s(header.header)\n\t }\n\t })])], 2) : _vm._e(), _vm._v(\" \"), (header._isTabGroup) ? _vm._c('dropdown', {\n\t class: {\n\t active: header.active\n\t },\n\t attrs: {\n\t \"text\": header.header,\n\t \"disabled\": header.disabled\n\t }\n\t }, _vm._l((header.tabs), function(tab) {\n\t return _vm._c('li', {\n\t class: {\n\t disabled: tab.disabled\n\t }\n\t }, [_vm._c('a', {\n\t attrs: {\n\t \"href\": \"#\"\n\t },\n\t on: {\n\t \"click\": function($event) {\n\t $event.preventDefault();\n\t _vm.select(tab)\n\t }\n\t }\n\t }, [_vm._v(_vm._s(tab.header))])])\n\t })) : _vm._e()]\n\t })], 2), _vm._v(\" \"), _vm._c('div', {\n\t staticClass: \"tab-content\"\n\t }, [_vm._t(\"default\")], 2)])\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-70100ddf\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 179 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(180)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(181)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\ToggleButton.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-f034a5f2\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-f034a5f2\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] ToggleButton.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 180 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _utils = __webpack_require__(65);\n\t\n\texports.default = {\n\t props: {\n\t disabled: { default: null },\n\t falseType: { default: null },\n\t name: null,\n\t readonly: { default: null },\n\t trueType: { default: 'primary' },\n\t value: false\n\t },\n\t data: function data() {\n\t return {\n\t active: _utils.coerce.boolean(this.value),\n\t types: {\n\t danger: 'btn-danger',\n\t info: 'btn-info',\n\t primary: 'btn-primary',\n\t success: 'btn-success',\n\t warning: 'btn-warning'\n\t }\n\t };\n\t },\n\t\n\t watch: {\n\t active: function active(val, old) {\n\t if (val !== old) {\n\t this.$emit('changed', val);\n\t this.$emit(val ? 'enabled' : 'disabled');\n\t this.$emit('input', val);\n\t }\n\t },\n\t value: function value(val, old) {\n\t if (val !== old) {\n\t this.active = _utils.coerce.boolean(this.value);\n\t }\n\t }\n\t },\n\t computed: {\n\t boolDisabled: function boolDisabled() {\n\t return _utils.coerce.boolean(this.disabled);\n\t },\n\t boolReadonly: function boolReadonly() {\n\t return _utils.coerce.boolean(this.readonly);\n\t },\n\t type: function type() {\n\t return this.types[this.value ? this.trueType : this.falseType] || 'btn-default';\n\t }\n\t },\n\t methods: {\n\t toggle: function toggle() {\n\t if (this.boolDisabled || this.boolReadonly) {\n\t return;\n\t }\n\t this.active = !this.active;\n\t }\n\t }\n\t}; //\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\n/***/ },\n/* 181 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('a', {\n\t class: ['btn', _vm.type, {\n\t readonly: _vm.boolReadonly\n\t }],\n\t attrs: {\n\t \"href\": \"javascript:void(0)\",\n\t \"disabled\": _vm.boolDisabled\n\t },\n\t on: {\n\t \"click\": _vm.toggle\n\t }\n\t }, [_vm._c('span', {\n\t class: ['glyphicon', 'glyphicon-' + (_vm.value ? 'ok' : 'remove')]\n\t }), _vm._v(\" \"), _vm._t(\"default\"), _vm._v(\" \"), (_vm.name) ? _vm._c('input', {\n\t attrs: {\n\t \"type\": \"hidden\",\n\t \"name\": _vm.name\n\t },\n\t domProps: {\n\t \"value\": _vm.active ? 1 : 0\n\t }\n\t }) : _vm._e()], 2)\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-f034a5f2\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 182 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* styles */\n\t__webpack_require__(183)\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(185)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(186)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\Tooltip.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-48fb51b2\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-48fb51b2\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] Tooltip.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 183 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// style-loader: Adds some css to the DOM by adding a \\r\\n\"],\"sourceRoot\":\"webpack://\"}]);\n\t\n\t// exports\n\n\n/***/ },\n/* 185 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _popoverMixins = __webpack_require__(143);\n\t\n\tvar _popoverMixins2 = _interopRequireDefault(_popoverMixins);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = {\n\t mixins: [_popoverMixins2.default],\n\t props: {\n\t effect: { type: String, default: 'scale' },\n\t trigger: { type: String, default: 'hover' }\n\t }\n\t}; //\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\n/***/ },\n/* 186 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('span', {\n\t ref: \"trigger\"\n\t }, [_vm._t(\"default\"), _vm._v(\" \"), _vm._c('transition', {\n\t attrs: {\n\t \"name\": _vm.effect\n\t }\n\t }, [(_vm.show) ? _vm._c('div', {\n\t ref: \"popover\",\n\t class: ['tooltip', _vm.placement]\n\t }, [_vm._c('div', {\n\t staticClass: \"tooltip-arrow\"\n\t }), _vm._v(\" \"), _vm._c('div', {\n\t staticClass: \"tooltip-inner\"\n\t }, [_vm._t(\"content\", [_vm._c('div', {\n\t domProps: {\n\t \"innerHTML\": _vm._s(_vm.content)\n\t }\n\t })])], 2)]) : _vm._e()])], 2)\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-48fb51b2\", module.exports)\n\t }\n\t}\n\n/***/ },\n/* 187 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __vue_exports__, __vue_options__\n\tvar __vue_styles__ = {}\n\t\n\t/* styles */\n\t__webpack_require__(188)\n\t\n\t/* script */\n\t__vue_exports__ = __webpack_require__(190)\n\t\n\t/* template */\n\tvar __vue_template__ = __webpack_require__(206)\n\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\n\tif (\n\t typeof __vue_exports__.default === \"object\" ||\n\t typeof __vue_exports__.default === \"function\"\n\t) {\n\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \"default\" && key !== \"__esModule\" })) {console.error(\"named exports are not supported in *.vue files.\")}\n\t__vue_options__ = __vue_exports__ = __vue_exports__.default\n\t}\n\tif (typeof __vue_options__ === \"function\") {\n\t __vue_options__ = __vue_options__.options\n\t}\n\t__vue_options__.__file = \"C:\\\\laragon\\\\www\\\\vue-strap\\\\src\\\\Typeahead.vue\"\n\t__vue_options__.render = __vue_template__.render\n\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\n\t\n\t/* hot reload */\n\tif (false) {(function () {\n\t var hotAPI = require(\"vue-hot-reload-api\")\n\t hotAPI.install(require(\"vue\"), false)\n\t if (!hotAPI.compatible) return\n\t module.hot.accept()\n\t if (!module.hot.data) {\n\t hotAPI.createRecord(\"data-v-5b5f5e94\", __vue_options__)\n\t } else {\n\t hotAPI.reload(\"data-v-5b5f5e94\", __vue_options__)\n\t }\n\t})()}\n\tif (__vue_options__.functional) {console.error(\"[vue-loader] Typeahead.vue: functional components are not supported and should be defined in plain js files using render functions.\")}\n\t\n\tmodule.exports = __vue_exports__\n\n\n/***/ },\n/* 188 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// style-loader: Adds some css to the DOM by adding a \"],\"sourceRoot\":\"webpack://\"}]);\n\t\n\t// exports\n\n\n/***/ },\n/* 190 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _typeof2 = __webpack_require__(191);\n\t\n\tvar _typeof3 = _interopRequireDefault(_typeof2);\n\t\n\tvar _utils = __webpack_require__(65);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\tvar DELAY = 300; //\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t//\n\t\n\texports.default = {\n\t props: {\n\t async: { type: String },\n\t data: { type: Array },\n\t delay: { type: Number, default: DELAY },\n\t asyncKey: { type: String, default: null },\n\t limit: { type: Number, default: 8 },\n\t matchCase: { type: Boolean, default: false },\n\t matchStart: { type: Boolean, default: false },\n\t onHit: {\n\t type: Function,\n\t default: function _default(item) {\n\t this.reset();\n\t this.value = item;\n\t }\n\t },\n\t placeholder: { type: String },\n\t template: { type: String },\n\t value: { type: String, default: '' }\n\t },\n\t data: function data() {\n\t return {\n\t showDropdown: false,\n\t noResults: true,\n\t current: 0,\n\t items: [],\n\t val: ''\n\t };\n\t },\n\t\n\t computed: {\n\t templateHtml: function templateHtml() {\n\t return typeof this.template === 'string' ? '' + this.template + '' : null;\n\t },\n\t tmpl: function tmpl() {\n\t return this._tmpl;\n\t }\n\t },\n\t watch: {\n\t val: function val(_val, old) {\n\t this.$emit('input', _val);\n\t if (_val !== old) this._update();\n\t },\n\t value: function value(val) {\n\t if (this.val !== val) {\n\t this.val = val;\n\t }\n\t }\n\t },\n\t methods: {\n\t setItems: function setItems(data) {\n\t var _this = this;\n\t\n\t if (this.async) {\n\t this.items = this.asyncKey ? data[this.asyncKey] : data;\n\t this.items = this.items.slice(0, this.limit);\n\t } else {\n\t this.items = (data || []).filter(function (value) {\n\t if ((typeof value === 'undefined' ? 'undefined' : (0, _typeof3.default)(value)) === 'object') {\n\t return true;\n\t }\n\t value = _this.matchCase ? value : value.toLowerCase();\n\t var query = _this.matchCase ? _this.val : _this.val.toLowerCase();\n\t return _this.matchStart ? value.indexOf(query) === 0 : value.indexOf(query) !== -1;\n\t }).slice(0, this.limit);\n\t }\n\t this.showDropdown = this.items.length > 0;\n\t },\n\t reset: function reset() {\n\t this.items = [];\n\t this.val = '';\n\t this.loading = false;\n\t this.showDropdown = false;\n\t },\n\t setActive: function setActive(index) {\n\t this.current = index;\n\t },\n\t isActive: function isActive(index) {\n\t return this.current === index;\n\t },\n\t hit: function hit(e) {\n\t e.preventDefault();\n\t this.onHit(this.items[this.current], this);\n\t },\n\t up: function up() {\n\t if (this.current > 0) this.current--;\n\t },\n\t down: function down() {\n\t if (this.current < this.items.length - 1) this.current++;\n\t }\n\t },\n\t created: function created() {\n\t this.val = this.value;\n\t this._tmpl = {\n\t template: this.templateHtml || '',\n\t props: {\n\t item: { default: null }\n\t }\n\t };\n\t this._update = (0, _utils.delayer)(function () {\n\t var _this2 = this;\n\t\n\t if (!this.val) {\n\t this.reset();\n\t return false;\n\t }\n\t if (this.async) {\n\t (0, _utils.getJSON)(this.async + this.val).then(function (data) {\n\t _this2.setItems(data);\n\t });\n\t } else if (this.data) {\n\t this.setItems(this.data);\n\t }\n\t }, 'delay', DELAY);\n\t this._update();\n\t }\n\t};\n\n/***/ },\n/* 191 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\texports.__esModule = true;\n\t\n\tvar _iterator = __webpack_require__(20);\n\t\n\tvar _iterator2 = _interopRequireDefault(_iterator);\n\t\n\tvar _symbol = __webpack_require__(192);\n\t\n\tvar _symbol2 = _interopRequireDefault(_symbol);\n\t\n\tvar _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; };\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = typeof _symbol2.default === \"function\" && _typeof(_iterator2.default) === \"symbol\" ? function (obj) {\n\t return typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n\t} : function (obj) {\n\t return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? \"symbol\" : typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n\t};\n\n/***/ },\n/* 192 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(193), __esModule: true };\n\n/***/ },\n/* 193 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(194);\n\t__webpack_require__(203);\n\t__webpack_require__(204);\n\t__webpack_require__(205);\n\tmodule.exports = __webpack_require__(7).Symbol;\n\n/***/ },\n/* 194 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t// ECMAScript 6 symbols shim\n\tvar global = __webpack_require__(6)\n\t , has = __webpack_require__(29)\n\t , DESCRIPTORS = __webpack_require__(15)\n\t , $export = __webpack_require__(5)\n\t , redefine = __webpack_require__(28)\n\t , META = __webpack_require__(195).KEY\n\t , $fails = __webpack_require__(16)\n\t , shared = __webpack_require__(43)\n\t , setToStringTag = __webpack_require__(47)\n\t , uid = __webpack_require__(44)\n\t , wks = __webpack_require__(48)\n\t , wksExt = __webpack_require__(55)\n\t , wksDefine = __webpack_require__(196)\n\t , keyOf = __webpack_require__(197)\n\t , enumKeys = __webpack_require__(198)\n\t , isArray = __webpack_require__(201)\n\t , anObject = __webpack_require__(12)\n\t , toIObject = __webpack_require__(36)\n\t , toPrimitive = __webpack_require__(18)\n\t , createDesc = __webpack_require__(19)\n\t , _create = __webpack_require__(32)\n\t , gOPNExt = __webpack_require__(60)\n\t , $GOPD = __webpack_require__(202)\n\t , $DP = __webpack_require__(11)\n\t , $keys = __webpack_require__(34)\n\t , gOPD = $GOPD.f\n\t , dP = $DP.f\n\t , gOPN = gOPNExt.f\n\t , $Symbol = global.Symbol\n\t , $JSON = global.JSON\n\t , _stringify = $JSON && $JSON.stringify\n\t , PROTOTYPE = 'prototype'\n\t , HIDDEN = wks('_hidden')\n\t , TO_PRIMITIVE = wks('toPrimitive')\n\t , isEnum = {}.propertyIsEnumerable\n\t , SymbolRegistry = shared('symbol-registry')\n\t , AllSymbols = shared('symbols')\n\t , OPSymbols = shared('op-symbols')\n\t , ObjectProto = Object[PROTOTYPE]\n\t , USE_NATIVE = typeof $Symbol == 'function'\n\t , QObject = global.QObject;\n\t// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173\n\tvar setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;\n\t\n\t// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\n\tvar setSymbolDesc = DESCRIPTORS && $fails(function(){\n\t return _create(dP({}, 'a', {\n\t get: function(){ return dP(this, 'a', {value: 7}).a; }\n\t })).a != 7;\n\t}) ? function(it, key, D){\n\t var protoDesc = gOPD(ObjectProto, key);\n\t if(protoDesc)delete ObjectProto[key];\n\t dP(it, key, D);\n\t if(protoDesc && it !== ObjectProto)dP(ObjectProto, key, protoDesc);\n\t} : dP;\n\t\n\tvar wrap = function(tag){\n\t var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);\n\t sym._k = tag;\n\t return sym;\n\t};\n\t\n\tvar isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function(it){\n\t return typeof it == 'symbol';\n\t} : function(it){\n\t return it instanceof $Symbol;\n\t};\n\t\n\tvar $defineProperty = function defineProperty(it, key, D){\n\t if(it === ObjectProto)$defineProperty(OPSymbols, key, D);\n\t anObject(it);\n\t key = toPrimitive(key, true);\n\t anObject(D);\n\t if(has(AllSymbols, key)){\n\t if(!D.enumerable){\n\t if(!has(it, HIDDEN))dP(it, HIDDEN, createDesc(1, {}));\n\t it[HIDDEN][key] = true;\n\t } else {\n\t if(has(it, HIDDEN) && it[HIDDEN][key])it[HIDDEN][key] = false;\n\t D = _create(D, {enumerable: createDesc(0, false)});\n\t } return setSymbolDesc(it, key, D);\n\t } return dP(it, key, D);\n\t};\n\tvar $defineProperties = function defineProperties(it, P){\n\t anObject(it);\n\t var keys = enumKeys(P = toIObject(P))\n\t , i = 0\n\t , l = keys.length\n\t , key;\n\t while(l > i)$defineProperty(it, key = keys[i++], P[key]);\n\t return it;\n\t};\n\tvar $create = function create(it, P){\n\t return P === undefined ? _create(it) : $defineProperties(_create(it), P);\n\t};\n\tvar $propertyIsEnumerable = function propertyIsEnumerable(key){\n\t var E = isEnum.call(this, key = toPrimitive(key, true));\n\t if(this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key))return false;\n\t return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;\n\t};\n\tvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key){\n\t it = toIObject(it);\n\t key = toPrimitive(key, true);\n\t if(it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key))return;\n\t var D = gOPD(it, key);\n\t if(D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key]))D.enumerable = true;\n\t return D;\n\t};\n\tvar $getOwnPropertyNames = function getOwnPropertyNames(it){\n\t var names = gOPN(toIObject(it))\n\t , result = []\n\t , i = 0\n\t , key;\n\t while(names.length > i){\n\t if(!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META)result.push(key);\n\t } return result;\n\t};\n\tvar $getOwnPropertySymbols = function getOwnPropertySymbols(it){\n\t var IS_OP = it === ObjectProto\n\t , names = gOPN(IS_OP ? OPSymbols : toIObject(it))\n\t , result = []\n\t , i = 0\n\t , key;\n\t while(names.length > i){\n\t if(has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true))result.push(AllSymbols[key]);\n\t } return result;\n\t};\n\t\n\t// 19.4.1.1 Symbol([description])\n\tif(!USE_NATIVE){\n\t $Symbol = function Symbol(){\n\t if(this instanceof $Symbol)throw TypeError('Symbol is not a constructor!');\n\t var tag = uid(arguments.length > 0 ? arguments[0] : undefined);\n\t var $set = function(value){\n\t if(this === ObjectProto)$set.call(OPSymbols, value);\n\t if(has(this, HIDDEN) && has(this[HIDDEN], tag))this[HIDDEN][tag] = false;\n\t setSymbolDesc(this, tag, createDesc(1, value));\n\t };\n\t if(DESCRIPTORS && setter)setSymbolDesc(ObjectProto, tag, {configurable: true, set: $set});\n\t return wrap(tag);\n\t };\n\t redefine($Symbol[PROTOTYPE], 'toString', function toString(){\n\t return this._k;\n\t });\n\t\n\t $GOPD.f = $getOwnPropertyDescriptor;\n\t $DP.f = $defineProperty;\n\t __webpack_require__(61).f = gOPNExt.f = $getOwnPropertyNames;\n\t __webpack_require__(200).f = $propertyIsEnumerable;\n\t __webpack_require__(199).f = $getOwnPropertySymbols;\n\t\n\t if(DESCRIPTORS && !__webpack_require__(27)){\n\t redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);\n\t }\n\t\n\t wksExt.f = function(name){\n\t return wrap(wks(name));\n\t }\n\t}\n\t\n\t$export($export.G + $export.W + $export.F * !USE_NATIVE, {Symbol: $Symbol});\n\t\n\tfor(var symbols = (\n\t // 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\n\t 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'\n\t).split(','), i = 0; symbols.length > i; )wks(symbols[i++]);\n\t\n\tfor(var symbols = $keys(wks.store), i = 0; symbols.length > i; )wksDefine(symbols[i++]);\n\t\n\t$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {\n\t // 19.4.2.1 Symbol.for(key)\n\t 'for': function(key){\n\t return has(SymbolRegistry, key += '')\n\t ? SymbolRegistry[key]\n\t : SymbolRegistry[key] = $Symbol(key);\n\t },\n\t // 19.4.2.5 Symbol.keyFor(sym)\n\t keyFor: function keyFor(key){\n\t if(isSymbol(key))return keyOf(SymbolRegistry, key);\n\t throw TypeError(key + ' is not a symbol!');\n\t },\n\t useSetter: function(){ setter = true; },\n\t useSimple: function(){ setter = false; }\n\t});\n\t\n\t$export($export.S + $export.F * !USE_NATIVE, 'Object', {\n\t // 19.1.2.2 Object.create(O [, Properties])\n\t create: $create,\n\t // 19.1.2.4 Object.defineProperty(O, P, Attributes)\n\t defineProperty: $defineProperty,\n\t // 19.1.2.3 Object.defineProperties(O, Properties)\n\t defineProperties: $defineProperties,\n\t // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\n\t getOwnPropertyDescriptor: $getOwnPropertyDescriptor,\n\t // 19.1.2.7 Object.getOwnPropertyNames(O)\n\t getOwnPropertyNames: $getOwnPropertyNames,\n\t // 19.1.2.8 Object.getOwnPropertySymbols(O)\n\t getOwnPropertySymbols: $getOwnPropertySymbols\n\t});\n\t\n\t// 24.3.2 JSON.stringify(value [, replacer [, space]])\n\t$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function(){\n\t var S = $Symbol();\n\t // MS Edge converts symbol values to JSON as {}\n\t // WebKit converts symbol values to JSON as null\n\t // V8 throws on boxed symbols\n\t return _stringify([S]) != '[null]' || _stringify({a: S}) != '{}' || _stringify(Object(S)) != '{}';\n\t})), 'JSON', {\n\t stringify: function stringify(it){\n\t if(it === undefined || isSymbol(it))return; // IE8 returns string on undefined\n\t var args = [it]\n\t , i = 1\n\t , replacer, $replacer;\n\t while(arguments.length > i)args.push(arguments[i++]);\n\t replacer = args[1];\n\t if(typeof replacer == 'function')$replacer = replacer;\n\t if($replacer || !isArray(replacer))replacer = function(key, value){\n\t if($replacer)value = $replacer.call(this, key, value);\n\t if(!isSymbol(value))return value;\n\t };\n\t args[1] = replacer;\n\t return _stringify.apply($JSON, args);\n\t }\n\t});\n\t\n\t// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)\n\t$Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(10)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);\n\t// 19.4.3.5 Symbol.prototype[@@toStringTag]\n\tsetToStringTag($Symbol, 'Symbol');\n\t// 20.2.1.9 Math[@@toStringTag]\n\tsetToStringTag(Math, 'Math', true);\n\t// 24.3.3 JSON[@@toStringTag]\n\tsetToStringTag(global.JSON, 'JSON', true);\n\n/***/ },\n/* 195 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar META = __webpack_require__(44)('meta')\n\t , isObject = __webpack_require__(13)\n\t , has = __webpack_require__(29)\n\t , setDesc = __webpack_require__(11).f\n\t , id = 0;\n\tvar isExtensible = Object.isExtensible || function(){\n\t return true;\n\t};\n\tvar FREEZE = !__webpack_require__(16)(function(){\n\t return isExtensible(Object.preventExtensions({}));\n\t});\n\tvar setMeta = function(it){\n\t setDesc(it, META, {value: {\n\t i: 'O' + ++id, // object ID\n\t w: {} // weak collections IDs\n\t }});\n\t};\n\tvar fastKey = function(it, create){\n\t // return primitive with prefix\n\t if(!isObject(it))return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n\t if(!has(it, META)){\n\t // can't set metadata to uncaught frozen object\n\t if(!isExtensible(it))return 'F';\n\t // not necessary to add metadata\n\t if(!create)return 'E';\n\t // add missing metadata\n\t setMeta(it);\n\t // return object ID\n\t } return it[META].i;\n\t};\n\tvar getWeak = function(it, create){\n\t if(!has(it, META)){\n\t // can't set metadata to uncaught frozen object\n\t if(!isExtensible(it))return true;\n\t // not necessary to add metadata\n\t if(!create)return false;\n\t // add missing metadata\n\t setMeta(it);\n\t // return hash weak collections IDs\n\t } return it[META].w;\n\t};\n\t// add metadata on freeze-family methods calling\n\tvar onFreeze = function(it){\n\t if(FREEZE && meta.NEED && isExtensible(it) && !has(it, META))setMeta(it);\n\t return it;\n\t};\n\tvar meta = module.exports = {\n\t KEY: META,\n\t NEED: false,\n\t fastKey: fastKey,\n\t getWeak: getWeak,\n\t onFreeze: onFreeze\n\t};\n\n/***/ },\n/* 196 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar global = __webpack_require__(6)\n\t , core = __webpack_require__(7)\n\t , LIBRARY = __webpack_require__(27)\n\t , wksExt = __webpack_require__(55)\n\t , defineProperty = __webpack_require__(11).f;\n\tmodule.exports = function(name){\n\t var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});\n\t if(name.charAt(0) != '_' && !(name in $Symbol))defineProperty($Symbol, name, {value: wksExt.f(name)});\n\t};\n\n/***/ },\n/* 197 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar getKeys = __webpack_require__(34)\n\t , toIObject = __webpack_require__(36);\n\tmodule.exports = function(object, el){\n\t var O = toIObject(object)\n\t , keys = getKeys(O)\n\t , length = keys.length\n\t , index = 0\n\t , key;\n\t while(length > index)if(O[key = keys[index++]] === el)return key;\n\t};\n\n/***/ },\n/* 198 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// all enumerable object keys, includes symbols\n\tvar getKeys = __webpack_require__(34)\n\t , gOPS = __webpack_require__(199)\n\t , pIE = __webpack_require__(200);\n\tmodule.exports = function(it){\n\t var result = getKeys(it)\n\t , getSymbols = gOPS.f;\n\t if(getSymbols){\n\t var symbols = getSymbols(it)\n\t , isEnum = pIE.f\n\t , i = 0\n\t , key;\n\t while(symbols.length > i)if(isEnum.call(it, key = symbols[i++]))result.push(key);\n\t } return result;\n\t};\n\n/***/ },\n/* 199 */\n/***/ function(module, exports) {\n\n\texports.f = Object.getOwnPropertySymbols;\n\n/***/ },\n/* 200 */\n/***/ function(module, exports) {\n\n\texports.f = {}.propertyIsEnumerable;\n\n/***/ },\n/* 201 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 7.2.2 IsArray(argument)\n\tvar cof = __webpack_require__(38);\n\tmodule.exports = Array.isArray || function isArray(arg){\n\t return cof(arg) == 'Array';\n\t};\n\n/***/ },\n/* 202 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar pIE = __webpack_require__(200)\n\t , createDesc = __webpack_require__(19)\n\t , toIObject = __webpack_require__(36)\n\t , toPrimitive = __webpack_require__(18)\n\t , has = __webpack_require__(29)\n\t , IE8_DOM_DEFINE = __webpack_require__(14)\n\t , gOPD = Object.getOwnPropertyDescriptor;\n\t\n\texports.f = __webpack_require__(15) ? gOPD : function getOwnPropertyDescriptor(O, P){\n\t O = toIObject(O);\n\t P = toPrimitive(P, true);\n\t if(IE8_DOM_DEFINE)try {\n\t return gOPD(O, P);\n\t } catch(e){ /* empty */ }\n\t if(has(O, P))return createDesc(!pIE.f.call(O, P), O[P]);\n\t};\n\n/***/ },\n/* 203 */\n/***/ function(module, exports) {\n\n\n\n/***/ },\n/* 204 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(196)('asyncIterator');\n\n/***/ },\n/* 205 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(196)('observable');\n\n/***/ },\n/* 206 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\n\t return _vm._c('div', {\n\t class: {\n\t 'open': _vm.showDropdown\n\t },\n\t staticStyle: {\n\t \"position\": \"relative\"\n\t }\n\t }, [_vm._c('input', {\n\t directives: [{\n\t name: \"model\",\n\t rawName: \"v-model\",\n\t value: (_vm.val),\n\t expression: \"val\"\n\t }],\n\t staticClass: \"form-control\",\n\t attrs: {\n\t \"type\": \"text\",\n\t \"autocomplete\": \"off\",\n\t \"placeholder\": _vm.placeholder\n\t },\n\t domProps: {\n\t \"value\": _vm._s(_vm.val)\n\t },\n\t on: {\n\t \"blur\": function($event) {\n\t _vm.showDropdown = false\n\t },\n\t \"keydown\": [function($event) {\n\t if (_vm._k($event.keyCode, \"down\", 40)) { return; }\n\t _vm.down($event)\n\t }, function($event) {\n\t if (_vm._k($event.keyCode, \"enter\", 13)) { return; }\n\t _vm.hit($event)\n\t }, function($event) {\n\t if (_vm._k($event.keyCode, \"esc\", 27)) { return; }\n\t _vm.reset($event)\n\t }, function($event) {\n\t if (_vm._k($event.keyCode, \"up\", 38)) { return; }\n\t _vm.up($event)\n\t }],\n\t \"input\": function($event) {\n\t if ($event.target.composing) { return; }\n\t _vm.val = $event.target.value\n\t }\n\t }\n\t }), _vm._v(\" \"), _vm._c('ul', {\n\t ref: \"dropdown\",\n\t staticClass: \"dropdown-menu\"\n\t }, _vm._l((_vm.items), function(item, i) {\n\t return _vm._c('li', {\n\t class: {\n\t 'active': _vm.isActive(i)\n\t }\n\t }, [_vm._c('a', {\n\t on: {\n\t \"mousedown\": function($event) {\n\t $event.preventDefault();\n\t _vm.hit($event)\n\t },\n\t \"mousemove\": function($event) {\n\t _vm.setActive(i)\n\t }\n\t }\n\t }, [_vm._c(_vm.tmpl, {\n\t tag: \"component\",\n\t attrs: {\n\t \"item\": item\n\t }\n\t })], 1)])\n\t }))])\n\t},staticRenderFns: []}\n\tif (false) {\n\t module.hot.accept()\n\t if (module.hot.data) {\n\t require(\"vue-hot-reload-api\").rerender(\"data-v-5b5f5e94\", module.exports)\n\t }\n\t}\n\n/***/ }\n/******/ ])\n});\n;\n//# sourceMappingURL=vue-strap.js.map//# sourceMapp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VxuXHQgICAgICAgIGFyci5wdXNoKGVsKTtcblx0ICAgICAgfSk7XG5cdCAgICAgIHJldHVybiBmbGF0dGVuKGFyciwgdGhpcyk7XG5cdCAgICB9XG5cdCAgfSwge1xuXHQgICAga2V5OiAnc2V0Jyxcblx0ICAgIHZhbHVlOiBmdW5jdGlvbiBzZXQocHJvcCwgdmFsdWUpIHtcblx0ICAgICAgaWYgKHByb3AuY29uc3RydWN0b3IgPT09IE9iamVjdCkge1xuXHQgICAgICAgIHRoaXMuZWFjaChmdW5jdGlvbiAoZWwpIHtcblx0ICAgICAgICAgIGlmIChlbCkge1xuXHQgICAgICAgICAgICBmb3IgKHZhciBrZXkgaW4gcHJvcCkge1xuXHQgICAgICAgICAgICAgIGlmIChrZXkgaW4gZWwpIHtcblx0ICAgICAgICAgICAgICAgIGVsW2tleV0gPSBwcm9wW2tleV07XG5cdCAgICAgICAgICAgICAgfVxuXHQgICAgICAgICAgICB9XG5cdCAgICAgICAgICB9XG5cdCAgICAgICAgfSk7XG5cdCAgICAgIH0gZWxzZSB7XG5cdCAgICAgICAgdGhpcy5lYWNoKGZ1bmN0aW9uIChlbCkge1xuXHQgICAgICAgICAgaWYgKHByb3AgaW4gZWwpIHtcblx0ICAgICAgICAgICAgZWxbcHJvcF0gPSB2YWx1ZTtcblx0ICAgICAgICAgIH1cblx0ICAgICAgICB9KTtcblx0ICAgICAgfVxuXHQgICAgICByZXR1cm4gdGhpcztcblx0ICAgIH1cblx0ICB9LCB7XG5cdCAgICBrZXk6ICdjYWxsJyxcblx0ICAgIHZhbHVlOiBmdW5jdGlvbiBjYWxsKCkge1xuXHQgICAgICBmb3IgKHZhciBfbGVuMTAgPSBhcmd1bWVudHMubGVuZ3RoLCBhcmdzID0gQXJyYXkoX2xlbjEwKSwgX2tleTEwID0gMDsgX2tleTEwIDwgX2xlbjEwOyBfa2V5MTArKykge1xuXHQgICAgICAgIGFyZ3NbX2tleTEwXSA9IGFyZ3VtZW50c1tfa2V5MTBdO1xu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gICAgICB0b2tlbiArPSBcIlwiO1xuXHQgICAgICAgIHJldHVybiBjaGVja1Rva2VuQW5kR2V0SW5kZXgodGhpcywgdG9rZW4pICE9PSAtMTtcblx0ICAgICAgfTtcblx0ICAgICAgY2xhc3NMaXN0UHJvdG8uYWRkID0gZnVuY3Rpb24gKCkge1xuXHQgICAgICAgIHZhciB0b2tlbnMgPSBhcmd1bWVudHMsXG5cdCAgICAgICAgICAgIGkgPSAwLFxuXHQgICAgICAgICAgICBsID0gdG9rZW5zLmxlbmd0aCxcblx0ICAgICAgICAgICAgdG9rZW4sXG5cdCAgICAgICAgICAgIHVwZGF0ZWQgPSBmYWxzZTtcblx0ICAgICAgICBkbyB7XG5cdCAgICAgICAgICB0b2tlbiA9IHRva2Vuc1tpXSArIFwiXCI7XG5cdCAgICAgICAgICBpZiAoY2hlY2tUb2tlbkFuZEdldEluZGV4KHRoaXMsIHRva2VuKSA9PT0gLTEpIHtcblx0ICAgICAgICAgICAgdGhpcy5wdXNoKHRva2VuKTtcblx0ICAgICAgICAgICAgdXBkYXRlZCA9IHRydWU7XG5cdCAgICAgICAgICB9XG5cdCAgICAgICAgfSB3aGlsZSAoKytpIDwgbCk7XG5cdFxuXHQgICAgICAgIGlmICh1cGRhdGVkKSB7XG5cdCAgICAgICAgICB0aGlzLl91cGRhdGVDbGFzc05hbWUoKTtcblx0ICAgICAgICB9XG5cdCAgICAgIH07XG5cdCAgICAgIGNsYXNzTGlzdFByb3RvLnJlbW92ZSA9IGZ1bmN0aW9uICgpIHtcblx0ICAgICAgICB2YXIgdG9rZW5zID0gYXJndW1lbnRzLFxuXHQgICAgICAgICAgICBpID0gMCxcblx0ICAgICAgICAgICAgbCA9IHRva2Vucy5sZW5ndGgsXG5cdCAgICAgICAgICAgIHRva2VuLFxuXHQgICAgICAgICAgICB1cGRhdGVkID0gZmFsc2UsXG5cdCAgICAgICAgICAgIGluZGV4O1xuXHQgICAgICAgIGRvIHtcblx0ICAgICAgICAgIHRva2VuID0gd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nJEYXRlLmdldERhdGUoKVxcclxcbiAgICAgIH1cXHJcXG4gICAgICBjb25zdCB5ZWFyU3RyID0gdGltZS55ZWFyLnRvU3RyaW5nKClcXHJcXG4gICAgICBjb25zdCBmaXJzdFllYXJPZkRlY2FkZSA9ICh5ZWFyU3RyLnN1YnN0cmluZygwLCB5ZWFyU3RyLmxlbmd0aCAtIDEpICsgMCkgLSAxXFxyXFxuICAgICAgZm9yIChsZXQgaSA9IDA7IGkgPCAxMjsgaSsrKSB7XFxyXFxuICAgICAgICB0aGlzLmRlY2FkZVJhbmdlLnB1c2goe1xcclxcbiAgICAgICAgICB0ZXh0OiBmaXJzdFllYXJPZkRlY2FkZSArIGlcXHJcXG4gICAgICAgIH0pXFxyXFxuICAgICAgfVxcclxcblxcclxcbiAgICAgIGNvbnN0IGN1cnJNb250aEZpcnN0RGF5ID0gbmV3IERhdGUodGltZS55ZWFyLCB0aW1lLm1vbnRoLCAxKVxcclxcbiAgICAgIGxldCBmaXJzdERheVdlZWsgPSBjdXJyTW9udGhGaXJzdERheS5nZXREYXkoKSArIDFcXHJcXG4gICAgICBpZiAoZmlyc3REYXlXZWVrID09PSAwKSB7XFxyXFxuICAgICAgICBmaXJzdERheVdlZWsgPSA3XFxyXFxuICAgICAgfVxcclxcbiAgICAgIGNvbnN0IGRheUNvdW50ID0gdGhpcy5nZXREYXlDb3VudCh0aW1lLnllYXIsIHRpbWUubW9udGgpXFxyXFxuICAgICAgaWYgKGZpcnN0RGF5V2VlayA+IDEpIHtcXHJcXG4gICAgICAgIGNvbnN0IHByZU1vbnRoID0gdGhpcy5nZXRZZWFyTW9udGgodGltZS55ZWFyLCB0aW1lLm1vbnRoIC0gMSlcXHJcXG4gICAgICAgIGNvbnN0IHByZXZNb250aERheUNvdW50ID0gdGhpcy5nZXREYXlDb3VudChwcmVNb250aC55ZWFyLCBwcmVNb250aC5tb250aClcXHJcXG4gICAgICAgIGZvciAobGV0IGkgPSAxOyBpIDwgZmlyc3REYXlXZWVr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gpIHtcblx0ICAgICAgICB2YXIgJGRyb3Bkb3duID0gKDAsIF9Ob2RlTGlzdDIuZGVmYXVsdCkoJy5kcm9wZG93bj5bZGF0YS10b2dnbGU9XCJkcm9wZG93blwiXScsIF90aGlzLiRlbCkucGFyZW50KCk7XG5cdCAgICAgICAgaWYgKCRkcm9wZG93bikge1xuXHQgICAgICAgICAgJGRyb3Bkb3duLm9uKCdjbGljaycsICcuZHJvcGRvd24tdG9nZ2xlJywgZnVuY3Rpb24gKGUpIHtcblx0ICAgICAgICAgICAgZS5wcmV2ZW50RGVmYXVsdCgpO1xuXHQgICAgICAgICAgICAkZHJvcGRvd24uZWFjaChmdW5jdGlvbiAoY29udGVudCkge1xuXHQgICAgICAgICAgICAgIGlmIChjb250ZW50LmNvbnRhaW5zKGUudGFyZ2V0KSkgY29udGVudC5jbGFzc0xpc3QudG9nZ2xlKCdvcGVuJyk7XG5cdCAgICAgICAgICAgIH0pO1xuXHQgICAgICAgICAgfSkub24oJ2NsaWNrJywgJy5kcm9wZG93bi1tZW51PmxpPmEnLCBmdW5jdGlvbiAoZSkge1xuXHQgICAgICAgICAgICAkZHJvcGRvd24uZWFjaChmdW5jdGlvbiAoY29udGVudCkge1xuXHQgICAgICAgICAgICAgIGlmIChjb250ZW50LmNvbnRhaW5zKGUudGFyZ2V0KSkgY29udGVudC5jbGFzc0xpc3QucmVtb3ZlKCdvcGVuJyk7XG5cdCAgICAgICAgICAgIH0pO1xuXHQgICAgICAgICAgfSkub25CbHVyKGZ1bmN0aW9uIChlKSB7XG5cdCAgICAgICAgICAgICRkcm9wZG93bi5lYWNoKGZ1bmN0aW9uIChjb250ZW50KSB7XG5cdCAgICAgICAgICAgICAgaWYgKCFjb250ZW50LmNvbnRhaW5zKGUudGFyZ2V0KSkgY29udGVudC5jbGFzc0xpc3QucmVtb3ZlKCdvcGVuJyk7XG5cdCAgICAgICAgICAgIH0pO1xuXHQgICAgICAgICAgfSk7XG5cdCAgICAgICAgfVxuXHQgICAgIC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WJwYWNrX3JlcXVpcmVfXygxMilcblx0ICAsIHRvSU9iamVjdCAgICAgID0gX193ZWJwYWNrX3JlcXVpcmVfXygzNilcblx0ICAsIHRvUHJpbWl0aXZlICAgID0gX193ZWJwYWNrX3JlcXVpcmVfXygxOClcblx0ICAsIGNyZWF0ZURlc2MgICAgID0gX193ZWJwYWNrX3JlcXVpcmVfXygxOSlcblx0ICAsIF9jcmVhdGUgICAgICAgID0gX193ZWJwYWNrX3JlcXVpcmVfXygzMilcblx0ICAsIGdPUE5FeHQgICAgICAgID0gX193ZWJwYWNrX3JlcXVpcmVfXyg2MClcblx0ICAsICRHT1BEICAgICAgICAgID0gX193ZWJwYWNrX3JlcXVpcmVfXygyMDIpXG5cdCAgLCAkRFAgICAgICAgICAgICA9IF9fd2VicGFja19yZXF1aXJlX18oMTEpXG5cdCAgLCAka2V5cyAgICAgICAgICA9IF9fd2VicGFja19yZXF1aXJlX18oMzQpXG5cdCAgLCBnT1BEICAgICAgICAgICA9ICRHT1BELmZcblx0ICAsIGRQICAgICAgICAgICAgID0gJERQLmZcblx0ICAsIGdPUE4gICAgICAgICAgID0gZ09QTkV4dC5mXG5cdCAgLCAkU3ltYm9sICAgICAgICA9IGdsb2JhbC5TeW1ib2xcblx0ICAsICRKU09OICAgICAgICAgID0gZ2xvYmFsLkpTT05cblx0ICAsIF9zdHJpbmdpZnkgICAgID0gJEpTT04gJiYgJEpTT04uc3RyaW5naWZ5XG5cdCAgLCBQUk9UT1RZUEUgICAgICA9ICdwcm90b3R5cGUnXG5cdCAgLCBISURERU4gICAgICAgICA9IHdrcygnX2hpZGRlbicpXG5cdCAgLCBUT19QUklNSVRJVkUgICA9IHdrcygndG9QcmltaXRpdmUnKVxuXHQgICwgaXNFbnVtICAgICAgICAgPSB7fS5wcm9wZXJ0eUlzRW51bWVyYWJsZVxuXHQgICwgU3ltYm9sUmVnaXN0cnkgPSBzaGFyZWQoJ3N5bWJvbC1yZWdpc3RyeScpXG5cdCAgLCBBbGxT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geyByZXR1cm47IH1cblx0ICAgICAgICBfdm0uaGl0KCRldmVudClcblx0ICAgICAgfSwgZnVuY3Rpb24oJGV2ZW50KSB7XG5cdCAgICAgICAgaWYgKF92bS5faygkZXZlbnQua2V5Q29kZSwgXCJlc2NcIiwgMjcpKSB7IHJldHVybjsgfVxuXHQgICAgICAgIF92bS5yZXNldCgkZXZlbnQpXG5cdCAgICAgIH0sIGZ1bmN0aW9uKCRldmVudCkge1xuXHQgICAgICAgIGlmIChfdm0uX2soJGV2ZW50LmtleUNvZGUsIFwidXBcIiwgMzgpKSB7IHJldHVybjsgfVxuXHQgICAgICAgIF92bS51cCgkZXZlbnQpXG5cdCAgICAgIH1dLFxuXHQgICAgICBcImlucHV0XCI6IGZ1bmN0aW9uKCRldmVudCkge1xuXHQgICAgICAgIGlmICgkZXZlbnQudGFyZ2V0LmNvbXBvc2luZykgeyByZXR1cm47IH1cblx0ICAgICAgICBfdm0udmFsID0gJGV2ZW50LnRhcmdldC52YWx1ZVxuXHQgICAgICB9XG5cdCAgICB9XG5cdCAgfSksIF92bS5fdihcIiBcIiksIF92bS5fYygndWwnLCB7XG5cdCAgICByZWY6IFwiZHJvcGRvd25cIixcblx0ICAgIHN0YXRpY0NsYXNzOiBcImRyb3Bkb3duLW1lbnVcIlxuXHQgIH0sIF92bS5fbCgoX3ZtLml0ZW1zKSwgZnVuY3Rpb24oaXRlbSwgaSkge1xuXHQgICAgcmV0dXJuIF92bS5fYygnbGknLCB7XG5cdCAgICAgIGNsYXNzOiB7XG5cdCAgICAgICAgJ2FjdGl2ZSc6IF92bS5pc0FjdGl2ZShpKVxuXHQgICAgICB9XG5cdCAgICB9LCBbX3ZtLl9jKCdhJywge1xuXHQgICAgICBvbjoge1xuXHQgICAgICAgIFwibW91c2Vkb3duXCI6IGZ1bmN0aW9uKCRldmVudCkge1xuXHQgICAgICAgICAgJGV2ZW50LnByZXZlbnREZWZhdWx0KCk7XG5cdCAgICAgICAgICBfdm0uaGl0KCRldmVudCl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NBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0="); +eval("// style-loader: Adds some css to the DOM by adding a \\\\n\\\\n\\\\n\\\\n\\\\n\\\"],\\\"sourceRoot\\\":\\\"webpack://\\\"}]);\\n\\n// exports\\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMTkuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvYXNzZXRzL2pzL2NvbXBvbmVudHMvcGFzc3BvcnQvQ2xpZW50cy52dWU/YmIyMSJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnRzID0gbW9kdWxlLmV4cG9ydHMgPSByZXF1aXJlKFwiLi8uLi8uLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvY3NzLWxvYWRlci9saWIvY3NzLWJhc2UuanNcIikoKTtcbi8vIGltcG9ydHNcblxuXG4vLyBtb2R1bGVcbmV4cG9ydHMucHVzaChbbW9kdWxlLmlkLCBcIlxcbi5hY3Rpb24tbGlua1tkYXRhLXYtMGMxMzQyZDRdIHtcXG4gICAgY3Vyc29yOiBwb2ludGVyO1xcbn1cXG4ubS1iLW5vbmVbZGF0YS12LTBjMTM0MmQ0XSB7XFxuICAgIG1hcmdpbi1ib3R0b206IDA7XFxufVxcblwiLCBcIlw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gICAgICAgICAgICAgICAgICAgPC9hPlxcbiAgICAgICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgICAgICA8L2Rpdj5cXG5cXG4gICAgICAgICAgICA8ZGl2IGNsYXNzPVxcXCJwYW5lbC1ib2R5XFxcIj5cXG4gICAgICAgICAgICAgICAgPCEtLSBDdXJyZW50IENsaWVudHMgLS0+XFxuICAgICAgICAgICAgICAgIDxwIGNsYXNzPVxcXCJtLWItbm9uZVxcXCIgdi1pZj1cXFwiY2xpZW50cy5sZW5ndGggPT09IDBcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgWW91IGhhdmUgbm90IGNyZWF0ZWQgYW55IE9BdXRoIGNsaWVudHMuXFxuICAgICAgICAgICAgICAgIDwvcD5cXG5cXG4gICAgICAgICAgICAgICAgPHRhYmxlIGNsYXNzPVxcXCJ0YWJsZSB0YWJsZS1ib3JkZXJsZXNzIG0tYi1ub25lXFxcIiB2LWlmPVxcXCJjbGllbnRzLmxlbmd0aCA+IDBcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgPHRoZWFkPlxcbiAgICAgICAgICAgICAgICAgICAgICAgIDx0cj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRoPkNsaWVudCBJRDwvdGg+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0aD5OYW1lPC90aD5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRoPlNlY3JldDwvdGg+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0aD48L3RoPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGg+PC90aD5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8L3RyPlxcbiAgICAgICAgICAgICAgICAgICAgPC90aGVhZD5cXG5cXG4gICAgICAgICAgICAgICAgICAgIDx0Ym9keT5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8dHIgdi1mb3I9XFxcImNsaWVudCBpbiBjbGllbnRzXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPCEtLSBJRCAtLT5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkIHN0eWxlPVxcXCJ2ZXJ0aWNhbC1hbGlnbjogbWlkZGxlO1xcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7eyBjbGllbnQuaWQgfX1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC90ZD5cXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPCEtLSBOYW1lIC0tPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQgc3R5bGU9XFxcInZlcnRpY2FsLWFsaWduOiBtaWRkbGU7XFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHt7IGNsaWVudC5uYW1lIH19XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+XFxuXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwhLS0gU2VjcmV0IC0tPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQgc3R5bGU9XFxcInZlcnRpY2FsLWFsaWduOiBtaWRkbGU7XFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxjb2RlPnt7IGNsaWVudC5zZWNyZXQgfX08L2NvZGU+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+XFxuXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwhLS0gRWRpdCBCdXR0b24gLS0+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZCBzdHlsZT1cXFwidmVydGljYWwtYWxpZ246IG1pZGRsZTtcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGEgY2xhc3M9XFxcImFjdGlvbi1saW5rXFxcIiBAY2xpY2s9XFxcImVkaXQoY2xpZW50KVxcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgRWRpdFxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9hPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPlxcblxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8IS0tIERlbGV0ZSBCdXR0b24gLS0+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZCBzdHlsZT1cXFwidmVydGljYWwtYWxpZ246IG1pZGRsZTtcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGEgY2xhc3M9XFxcImFjdGlvbi1saW5rIHRleHQtZGFuZ2VyXFxcIiBAY2xpY2s9XFxcImRlc3Ryb3koY2xpZW50KVxcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgRGVsZXRlXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2E+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+XFxuICAgICAgICAgICAgICAgICAgICAgICAgPC90cj5cXG4gICAgICAgICAgICAgICAgICAgIDwvdGJvZHk+XFxuICAgICAgICAgICAgICAgIDwvdGFibGU+XFxuICAgICAgICAgICAgPC9kaXY+XFxuICAgICAgICA8L2Rpdj5cXG5cXG4gICAgICAgIDwhLS0gQ3JlYXRlIENsaWVudCBNb2RhbCAtLT5cXG4gICAgICAgIDxkaXYgY2xhc3M9XFxcIm1vZGFsIGZhZGVcXFwiIGlkPVxcXCJtb2RhbC1jcmVhdGUtY2xpZW50XFxcIiB0YWJpbmRleD1cXFwiLTFcXFwiIHJvbGU9XFxcImRpYWxvZ1xcXCI+XFxuICAgICAgICAgICAgPGRpdiBjbGFzcz1cXFwibW9kYWwtZGlhbG9nXFxcIj5cXG4gICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cXFwibW9kYWwtY29udGVudFxcXCI+XFxuICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVxcXCJtb2RhbC1oZWFkZXJcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgIDxidXR0b24gdHlwZT1cXFwiYnV0dG9uIFxcXCIgY2xhc3M9XFxcImNsb3NlXFxcIiBkYXRhLWRpc21pc3M9XFxcIm1vZGFsXFxcIiBhcmlhLWhpZGRlbj1cXFwidHJ1ZVxcXCI+JnRpbWVzOzwvYnV0dG9uPlxcblxcbiAgICAgICAgICAgICAgICAgICAgICAgIDxoNCBjbGFzcz1cXFwibW9kYWwtdGl0bGVcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBDcmVhdGUgQ2xpZW50XFxuICAgICAgICAgICAgICAgICAgICAgICAgPC9oND5cXG4gICAgICAgICAgICAgICAgICAgIDwvZGl2PlxcblxcbiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cXFwibW9kYWwtYm9keVxcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgPCEtLSBGb3JtIEVycm9ycyAtLT5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVxcXCJhbGVydCBhbGVydC1kYW5nZXJcXFwiIHYtaWY9XFxcImNyZWF0ZUZvcm0uZXJyb3JzLmxlbmd0aCA+IDBcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cD48c3Ryb25nPldob29wcyE8L3N0cm9uZz4gU29tZXRoaW5nIHdlbnQgd3JvbmchPC9wPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8YnI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx1bD5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxsaSB2LWZvcj1cXFwiZXJyb3IgaW4gY3JlYXRlRm9ybS5lcnJvcnNcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHt7IGVycm9yIH19XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2xpPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3VsPlxcbiAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxcblxcbiAgICAgICAgICAgICAgICAgICAgICAgIDwhLS0gQ3JlYXRlIENsaWVudCBGb3JtIC0tPlxcbiAgICAgICAgICAgICAgICAgICAgICAgIDxmb3JtIGNsYXNzPVxcXCJmb3JtLWhvcml6b250YWxcXFwiIHJvbGU9XFxcImZvcm1cXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8IS0tIE5hbWUgLS0+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XFxcImZvcm0tZ3JvdXBcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGxhYmVsIGNsYXNzPVxcXCJjb2wtbWQtMyBjb250cm9sLWxhYmVsXFxcIj5OYW1lPC9sYWJlbD5cXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XFxcImNvbC1tZC03XFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8aW5wdXQgaWQ9XFxcImNyZWF0ZS1jbGllbnQtbmFtZVxcXCIgdHlwZT1cXFwidGV4dFxcXCIgY2xhc3M9XFxcImZvcm0tY29udHJvbFxcXCJcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQGtleXVwLmVudGVyPVxcXCJzdG9yZVxcXCIgdi1tb2RlbD1cXFwiY3JlYXRlRm9ybS5uYW1lXFxcIj5cXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8c3BhbiBjbGFzcz1cXFwiaGVscC1ibG9ja1xcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFNvbWV0aGluZyB5b3VyIHVzZXJzIHdpbGwgcmVjb2duaXplIGFuZCB0cnVzdC5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3NwYW4+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XFxuXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwhLS0gUmVkaXJlY3QgVVJMIC0tPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVxcXCJmb3JtLWdyb3VwXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxsYWJlbCBjbGFzcz1cXFwiY29sLW1kLTMgY29udHJvbC1sYWJlbFxcXCI+UmVkaXJlY3QgVVJMPC9sYWJlbD5cXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XFxcImNvbC1tZC03XFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8aW5wdXQgdHlwZT1cXFwidGV4dFxcXCIgY2xhc3M9XFxcImZvcm0tY29udHJvbFxcXCIgbmFtZT1cXFwicmVkaXJlY3RcXFwiXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIEBrZXl1cC5lbnRlcj1cXFwic3RvcmVcXFwiIHYtbW9kZWw9XFxcImNyZWF0ZUZvcm0ucmVkaXJlY3RcXFwiPlxcblxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzcGFuIGNsYXNzPVxcXCJoZWxwLWJsb2NrXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgWW91ciBhcHBsaWNhdGlvbidzIGF1dGhvcml6YXRpb24gY2FsbGJhY2sgVVJMLlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvc3Bhbj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8L2Zvcm0+XFxuICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cXG5cXG4gICAgICAgICAgICAgICAgICAgIDwhLS0gTW9kYWwgQWN0aW9ucyAtLT5cXG4gICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XFxcIm1vZGFsLWZvb3RlclxcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgPGJ1dHRvbiB0eXBlPVxcXCJidXR0b25cXFwiIGNsYXNzPVxcXCJidG4gYnRuLWRlZmF1bHRcXFwiIGRhdGEtZGlzbWlzcz1cXFwibW9kYWxcXFwiPkNsb3NlPC9idXR0b24+XFxuXFxuICAgICAgICAgICAgICAgICAgICAgICAgPGJ1dHRvbiB0eXBlPVxcXCJidXR0b25cXFwiIGNsYXNzPVxcXCJidG4gYnRuLXByaW1hcnlcXFwiIEBjbGljaz1cXFwic3RvcmVcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBDcmVhdGVcXG4gICAgICAgICAgICAgICAgICAgICAgICA8L2J1dHRvbj5cXG4gICAgICAgICAgICAgICAgICAgIDwvZGl2PlxcbiAgICAgICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgIDwvZGl2PlxcblxcbiAgICAgICAgPCEtLSBFZGl0IENsaWVudCBNb2RhbCAtLT5cXG4gICAgICAgIDxkaXYgY2xhc3M9XFxcIm1vZGFsIGZhZGVcXFwiIGlkPVxcXCJtb2RhbC1lZGl0LWNsaWVudFxcXCIgdGFiaW5kZXg9XFxcIi0xXFxcIiByb2xlPVxcXCJkaWFsb2dcXFwiPlxcbiAgICAgICAgICAgIDxkaXYgY2xhc3M9XFxcIm1vZGFsLWRpYWxvZ1xcXCI+XFxuICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XFxcIm1vZGFsLWNvbnRlbnRcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cXFwibW9kYWwtaGVhZGVyXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8YnV0dG9uIHR5cGU9XFxcImJ1dHRvbiBcXFwiIGNsYXNzPVxcXCJjbG9zZVxcXCIgZGF0YS1kaXNtaXNzPVxcXCJtb2RhbFxcXCIgYXJpYS1oaWRkZW49XFxcInRydWVcXFwiPiZ0aW1lczs8L2J1dHRvbj5cXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8aDQgY2xhc3M9XFxcIm1vZGFsLXRpdGxlXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgRWRpdCBDbGllbnRcXG4gICAgICAgICAgICAgICAgICAgICAgICA8L2g0PlxcbiAgICAgICAgICAgICAgICAgICAgPC9kaXY+XFxuXFxuICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVxcXCJtb2RhbC1ib2R5XFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8IS0tIEZvcm0gRXJyb3JzIC0tPlxcbiAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XFxcImFsZXJ0IGFsZXJ0LWRhbmdlclxcXCIgdi1pZj1cXFwiZWRpdEZvcm0uZXJyb3JzLmxlbmd0aCA+IDBcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cD48c3Ryb25nPldob29wcyE8L3N0cm9uZz4gU29tZXRoaW5nIHdlbnQgd3JvbmchPC9wPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8YnI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx1bD5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxsaSB2LWZvcj1cXFwiZXJyb3IgaW4gZWRpdEZvcm0uZXJyb3JzXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7eyBlcnJvciB9fVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9saT5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC91bD5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8IS0tIEVkaXQgQ2xpZW50IEZvcm0gLS0+XFxuICAgICAgICAgICAgICAgICAgICAgICAgPGZvcm0gY2xhc3M9XFxcImZvcm0taG9yaXpvbnRhbFxcXCIgcm9sZT1cXFwiZm9ybVxcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwhLS0gTmFtZSAtLT5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cXFwiZm9ybS1ncm91cFxcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bGFiZWwgY2xhc3M9XFxcImNvbC1tZC0zIGNvbnRyb2wtbGFiZWxcXFwiPk5hbWU8L2xhYmVsPlxcblxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cXFwiY29sLW1kLTdcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxpbnB1dCBpZD1cXFwiZWRpdC1jbGllbnQtbmFtZVxcXCIgdHlwZT1cXFwidGV4dFxcXCIgY2xhc3M9XFxcImZvcm0tY29udHJvbFxcXCJcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQGtleXVwLmVudGVyPVxcXCJ1cGRhdGVcXFwiIHYtbW9kZWw9XFxcImVkaXRGb3JtLm5hbWVcXFwiPlxcblxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzcGFuIGNsYXNzPVxcXCJoZWxwLWJsb2NrXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgU29tZXRoaW5nIHlvdXIgdXNlcnMgd2lsbCByZWNvZ25pemUgYW5kIHRydXN0LlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvc3Bhbj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPCEtLSBSZWRpcmVjdCBVUkwgLS0+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XFxcImZvcm0tZ3JvdXBcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGxhYmVsIGNsYXNzPVxcXCJjb2wtbWQtMyBjb250cm9sLWxhYmVsXFxcIj5SZWRpcmVjdCBVUkw8L2xhYmVsPlxcblxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cXFwiY29sLW1kLTdcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxpbnB1dCB0eXBlPVxcXCJ0ZXh0XFxcIiBjbGFzcz1cXFwiZm9ybS1jb250cm9sXFxcIiBuYW1lPVxcXCJyZWRpcmVjdFxcXCJcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQGtleXVwLmVudGVyPVxcXCJ1cGRhdGVcXFwiIHYtbW9kZWw9XFxcImVkaXRGb3JtLnJlZGlyZWN0XFxcIj5cXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8c3BhbiBjbGFzcz1cXFwiaGVscC1ibG9ja1xcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFlvdXIgYXBwbGljYXRpb24ncyBhdXRob3JpemF0aW9uIGNhbGxiYWNrIFVSTC5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3NwYW4+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XFxuICAgICAgICAgICAgICAgICAgICAgICAgPC9mb3JtPlxcbiAgICAgICAgICAgICAgICAgICAgPC9kaXY+XFxuXFxuICAgICAgICAgICAgICAgICAgICA8IS0tIE1vZGFsIEFjdGlvbnMgLS0+XFxuICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVxcXCJtb2RhbC1mb290ZXJcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgIDxidXR0b24gdHlwZT1cXFwiYnV0dG9uXFxcIiBjbGFzcz1cXFwiYnRuIGJ0bi1kZWZhdWx0XFxcIiBkYXRhLWRpc21pc3M9XFxcIm1vZGFsXFxcIj5DbG9zZTwvYnV0dG9uPlxcblxcbiAgICAgICAgICAgICAgICAgICAgICAgIDxidXR0b24gdHlwZT1cXFwiYnV0dG9uXFxcIiBjbGFzcz1cXFwiYnRuIGJ0bi1wcmltYXJ5XFxcIiBAY2xpY2s9XFxcInVwZGF0ZVxcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIFNhdmUgQ2hhbmdlc1xcbiAgICAgICAgICAgICAgICAgICAgICAgIDwvYnV0dG9uPlxcbiAgICAgICAgICAgICAgICAgICAgPC9kaXY+XFxuICAgICAgICAgICAgICAgIDwvZGl2PlxcbiAgICAgICAgICAgIDwvZGl2PlxcbiAgICAgICAgPC9kaXY+XFxuICAgIDwvZGl2PlxcbjwvdGVtcGxhdGU+XFxuXFxuPHNjcmlwdD5cXG4gICAgZXhwb3J0IGRlZmF1bHQge1xcbiAgICAgICAgLypcXG4gICAgICAgICAqIFRoZSBjb21wb25lbnQncyBkYXRhLlxcbiAgICAgICAgICovXFxuICAgICAgICBkYXRhKCkge1xcbiAgICAgICAgICAgIHJldHVybiB7XFxuICAgICAgICAgICAgICAgIGNsaWVudHM6IFtdLFxcblxcbiAgICAgICAgICAgICAgICBjcmVhdGVGb3JtOiB7XFxuICAgICAgICAgICAgICAgICAgICBlcnJvcnM6IFtdLFxcbiAgICAgICAgICAgICAgICAgICAgbmFtZTogJycsXFxuICAgICAgICAgICAgICAgICAgICByZWRpcmVjdDogJydcXG4gICAgICAgICAgICAgICAgfSxcXG5cXG4gICAgICAgICAgICAgICAgZWRpdEZvcm06IHtcXG4gICAgICAgICAgICAgICAgICAgIGVycm9yczogW10sXFxuICAgICAgICAgICAgICAgICAgICBuYW1lOiAnJyxcXG4gICAgICAgICAgICAgICAgICAgIHJlZGlyZWN0OiAnJ1xcbiAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgfTtcXG4gICAgICAgIH0sXFxuXFxuICAgICAgICAvKipcXG4gICAgICAgICAqIFByZXBhcmUgdGhlIGNvbXBvbmVudCAoVnVlIDEueCkuXFxuICAgICAgICAgKi9cXG4gICAgICAgIHJlYWR5KCkge1xcbiAgICAgICAgICAgIHRoaXMucHJlcGFyZUNvbXBvbmVudCgpO1xcbiAgICAgICAgfSxcXG5cXG4gICAgICAgIC8qKlxcbiAgICAgICAgICogUHJlcGFyZSB0aGUgY29tcG9uZW50IChWdWUgMi54KS5cXG4gICAgICAgICAqL1xcbiAgICAgICAgbW91bnRlZCgpIHtcXG4gICAgICAgICAgICB0aGlzLnByZXBhcmVDb21wb25lbnQoKTtcXG4gICAgICAgIH0sXFxuXFxuICAgICAgICBtZXRob2RzOiB7XFxuICAgICAgICAgICAgLyoqXFxuICAgICAgICAgICAgICogUHJlcGFyZSB0aGUgY29tcG9uZW50LlxcbiAgICAgICAgICAgICAqL1xcbiAgICAgICAgICAgIHByZXBhcmVDb21wb25lbnQoKSB7XFxuICAgICAgICAgICAgICAgIHRoaXMuZ2V0Q2xpZW50cygpO1xcblxcbiAgICAgICAgICAgICAgICAkKCcjbW9kYWwtY3JlYXRlLWNsaWVudCcpLm9uKCdzaG93bi5icy5tb2RhbCcsICgpID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICQoJyNjcmVhdGUtY2xpZW50LW5hbWUnKS5mb2N1cygpO1xcbiAgICAgICAgICAgICAgICB9KTtcXG5cXG4gICAgICAgICAgICAgICAgJCgnI21vZGFsLWVkaXQtY2xpZW50Jykub24oJ3Nob3duLmJzLm1vZGFsJywgKCkgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgJCgnI2VkaXQtY2xpZW50LW5hbWUnKS5mb2N1cygpO1xcbiAgICAgICAgICAgICAgICB9KTtcXG4gICAgICAgICAgICB9LFxcblxcbiAgICAgICAgICAgIC8qKlxcbiAgICAgICAgICAgICAqIEdldCBhbGwgb2YgdGhlIE9BdXRoIGNsaWVudHMgZm9yIHRoZSB1c2VyLlxcbiAgICAgICAgICAgICAqL1xcbiAgICAgICAgICAgIGdldENsaWVudHMoKSB7XFxuICAgICAgICAgICAgICAgIHRoaXMuJGh0dHAuZ2V0KCcvb2F1dGgvY2xpZW50cycpXFxuICAgICAgICAgICAgICAgICAgICAgICAgLnRoZW4ocmVzcG9uc2UgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmNsaWVudHMgPSByZXNwb25zZS5kYXRhO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xcbiAgICAgICAgICAgIH0sXFxuXFxuICAgICAgICAgICAgLyoqXFxuICAgICAgICAgICAgICogU2hvdyB0aGUgZm9ybSBmb3IgY3JlYXRpbmcgbmV3IGNsaWVudHMuXFxuICAgICAgICAgICAgICovXFxuICAgICAgICAgICAgc2hvd0NyZWF0ZUNsaWVudEZvcm0oKSB7XFxuICAgICAgICAgICAgICAgICQoJyNtb2RhbC1jcmVhdGUtY2xpZW50JykubW9kYWwoJ3Nob3cnKTtcXG4gICAgICAgICAgICB9LFxcblxcbiAgICAgICAgICAgIC8qKlxcbiAgICAgICAgICAgICAqIENyZWF0ZSBhIG5ldyBPQXV0aCBjbGllbnQgZm9yIHRoZSB1c2VyLlxcbiAgICAgICAgICAgICAqL1xcbiAgICAgICAgICAgIHN0b3JlKCkge1xcbiAgICAgICAgICAgICAgICB0aGlzLnBlcnNpc3RDbGllbnQoXFxuICAgICAgICAgICAgICAgICAgICAncG9zdCcsICcvb2F1dGgvY2xpZW50cycsXFxuICAgICAgICAgICAgICAgICAgICB0aGlzLmNyZWF0ZUZvcm0sICcjbW9kYWwtY3JlYXRlLWNsaWVudCdcXG4gICAgICAgICAgICAgICAgKTtcXG4gICAgICAgICAgICB9LFxcblxcbiAgICAgICAgICAgIC8qKlxcbiAgICAgICAgICAgICAqIEVkaXQgdGhlIGdpdmVuIGNsaWVudC5cXG4gICAgICAgICAgICAgKi9cXG4gICAgICAgICAgICBlZGl0KGNsaWVudCkge1xcbiAgICAgICAgICAgICAgICB0aGlzLmVkaXRGb3JtLmlkID0gY2xpZW50LmlkO1xcbiAgICAgICAgICAgICAgICB0aGlzLmVkaXRGb3JtLm5hbWUgPSBjbGllbnQubmFtZTtcXG4gICAgICAgICAgICAgICAgdGhpcy5lZGl0Rm9ybS5yZWRpcmVjdCA9IGNsaWVudC5yZWRpcmVjdDtcXG5cXG4gICAgICAgICAgICAgICAgJCgnI21vZGFsLWVkaXQtY2xpZW50JykubW9kYWwoJ3Nob3cnKTtcXG4gICAgICAgICAgICB9LFxcblxcbiAgICAgICAgICAgIC8qKlxcbiAgICAgICAgICAgICAqIFVwZGF0ZSB0aGUgY2xpZW50IGJlaW5nIGVkaXRlZC5cXG4gICAgICAgICAgICAgKi9cXG4gICAgICAgICAgICB1cGRhdGUoKSB7XFxuICAgICAgICAgICAgICAgIHRoaXMucGVyc2lzdENsaWVudChcXG4gICAgICAgICAgICAgICAgICAgICdwdXQnLCAnL29hdXRoL2NsaWVudHMvJyArIHRoaXMuZWRpdEZvcm0uaWQsXFxuICAgICAgICAgICAgICAgICAgICB0aGlzLmVkaXRGb3JtLCAnI21vZGFsLWVkaXQtY2xpZW50J1xcbiAgICAgICAgICAgICAgICApO1xcbiAgICAgICAgICAgIH0sXFxuXFxuICAgICAgICAgICAgLyoqXFxuICAgICAgICAgICAgICogUGVyc2lzdCB0aGUgY2xpZW50IHRvIHN0b3JhZ2UgdXNpbmcgdGhlIGdpdmVuIGZvcm0uXFxuICAgICAgICAgICAgICovXFxuICAgICAgICAgICAgcGVyc2lzdENsaWVudChtZXRob2QsIHVyaSwgZm9ybSwgbW9kYWwpIHtcXG4gICAgICAgICAgICAgICAgZm9ybS5lcnJvcnMgPSBbXTtcXG5cXG4gICAgICAgICAgICAgICAgdGhpcy4kaHR0cFttZXRob2RdKHVyaSwgZm9ybSlcXG4gICAgICAgICAgICAgICAgICAgIC50aGVuKHJlc3BvbnNlID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmdldENsaWVudHMoKTtcXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICBmb3JtLm5hbWUgPSAnJztcXG4gICAgICAgICAgICAgICAgICAgICAgICBmb3JtLnJlZGlyZWN0ID0gJyc7XFxuICAgICAgICAgICAgICAgICAgICAgICAgZm9ybS5lcnJvcnMgPSBbXTtcXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICAkKG1vZGFsKS5tb2RhbCgnaGlkZScpO1xcbiAgICAgICAgICAgICAgICAgICAgfSlcXG4gICAgICAgICAgICAgICAgICAgIC5jYXRjaChyZXNwb25zZSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHR5cGVvZiByZXNwb25zZS5kYXRhID09PSAnb2JqZWN0Jykge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb3JtLmVycm9ycyA9IF8uZmxhdHRlbihfLnRvQXJyYXkocmVzcG9uc2UuZGF0YSkpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZvcm0uZXJyb3JzID0gWydTb21ldGhpbmcgd2VudCB3cm9uZy4gUGxlYXNlIHRyeSBhZ2Fpbi4nXTtcXG4gICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICB9KTtcXG4gICAgICAgICAgICB9LFxcblxcbiAgICAgICAgICAgIC8qKlxcbiAgICAgICAgICAgICAqIERlc3Ryb3kgdGhlIGdpdmVuIGNsaWVudC5cXG4gICAgICAgICAgICAgKi9cXG4gICAgICAgICAgICBkZXN0cm95KGNsaWVudCkge1xcbiAgICAgICAgICAgICAgICB0aGlzLiRodHRwLmRlbGV0ZSgnL29hdXRoL2NsaWVudHMvJyArIGNsaWVudC5pZClcXG4gICAgICAgICAgICAgICAgICAgICAgICAudGhlbihyZXNwb25zZSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuZ2V0Q2xpZW50cygpO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xcbiAgICAgICAgICAgIH1cXG4gICAgICAgIH1cXG4gICAgfVxcbjwvc2NyaXB0PlxcblwiXSxcInNvdXJjZVJvb3RcIjpcIndlYnBhY2s6Ly9cIn1dKTtcblxuLy8gZXhwb3J0c1xuXG5cblxuLy8vLy8vLy8vLy8vLy8vLy8vXG4vLyBXRUJQQUNLIEZPT1RFUlxuLy8gLi9+L2Nzcy1sb2FkZXI/c291cmNlTWFwIS4vfi92dWUtbG9hZGVyL2xpYi9zdHlsZS1yZXdyaXRlci5qcz9pZD1kYXRhLXYtMGMxMzQyZDQmc2NvcGVkPXRydWUhLi9+L3Z1ZS1sb2FkZXIvbGliL3NlbGVjdG9yLmpzP3R5cGU9c3R5bGVzJmluZGV4PTAhLi9yZXNvdXJjZXMvYXNzZXRzL2pzL2NvbXBvbmVudHMvcGFzc3BvcnQvQ2xpZW50cy52dWVcbi8vIG1vZHVsZSBpZCA9IDE5XG4vLyBtb2R1bGUgY2h1bmtzID0gMCJdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTsiLCJzb3VyY2VSb290IjoiIn0=\");\n\n/***/ },\n/* 20 */\n/***/ function(module, exports, __webpack_require__) {\n\neval(\"exports = module.exports = __webpack_require__(0)();\\n// imports\\n\\n\\n// module\\nexports.push([module.i, \\\"\\\\n\\\\n\\\", \\\"\\\", {\\\"version\\\":3,\\\"sources\\\":[],\\\"names\\\":[],\\\"mappings\\\":\\\"\\\",\\\"file\\\":\\\"alert.vue\\\",\\\"sourceRoot\\\":\\\"webpack://\\\"}]);\\n\\n// exports\\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjAuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvYXNzZXRzL2pzL2NvbXBvbmVudHMvYWxlcnQudnVlP2Y5ZmYiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0cyA9IG1vZHVsZS5leHBvcnRzID0gcmVxdWlyZShcIi4vLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL2Nzcy1sb2FkZXIvbGliL2Nzcy1iYXNlLmpzXCIpKCk7XG4vLyBpbXBvcnRzXG5cblxuLy8gbW9kdWxlXG5leHBvcnRzLnB1c2goW21vZHVsZS5pZCwgXCJcXG5cXG5cIiwgXCJcIiwge1widmVyc2lvblwiOjMsXCJzb3VyY2VzXCI6W10sXCJuYW1lc1wiOltdLFwibWFwcGluZ3NcIjpcIlwiLFwiZmlsZVwiOlwiYWxlcnQudnVlXCIsXCJzb3VyY2VSb290XCI6XCJ3ZWJwYWNrOi8vXCJ9XSk7XG5cbi8vIGV4cG9ydHNcblxuXG5cbi8vLy8vLy8vLy8vLy8vLy8vL1xuLy8gV0VCUEFDSyBGT09URVJcbi8vIC4vfi9jc3MtbG9hZGVyP3NvdXJjZU1hcCEuL34vdnVlLWxvYWRlci9saWIvc3R5bGUtcmV3cml0ZXIuanM/aWQ9ZGF0YS12LTI0MzBlNzQxJnNjb3BlZD10cnVlIS4vfi92dWUtbG9hZGVyL2xpYi9zZWxlY3Rvci5qcz90eXBlPXN0eWxlcyZpbmRleD0wIS4vcmVzb3VyY2VzL2Fzc2V0cy9qcy9jb21wb25lbnRzL2FsZXJ0LnZ1ZVxuLy8gbW9kdWxlIGlkID0gMjBcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOyIsInNvdXJjZVJvb3QiOiIifQ==\");\n\n/***/ },\n/* 21 */\n/***/ function(module, exports, __webpack_require__) {\n\neval(\"exports = module.exports = __webpack_require__(0)();\\n// imports\\n\\n\\n// module\\nexports.push([module.i, \\\"\\\\n.action-link[data-v-40bb967b] {\\\\n cursor: pointer;\\\\n}\\\\n.m-b-none[data-v-40bb967b] {\\\\n margin-bottom: 0;\\\\n}\\\\n\\\", \\\"\\\", {\\\"version\\\":3,\\\"sources\\\":[\\\"/./resources/assets/js/components/passport/AuthorizedClients.vue?a99076c0\\\"],\\\"names\\\":[],\\\"mappings\\\":\\\";AACA;IACA,gBAAA;CACA;AAEA;IACA,iBAAA;CACA\\\",\\\"file\\\":\\\"AuthorizedClients.vue\\\",\\\"sourcesContent\\\":[\\\"\\\\n\\\\n\\\\n\\\\n\\\\n\\\"],\\\"sourceRoot\\\":\\\"webpack://\\\"}]);\\n\\n// exports\\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjEuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvYXNzZXRzL2pzL2NvbXBvbmVudHMvcGFzc3BvcnQvQXV0aG9yaXplZENsaWVudHMudnVlP2FlYmMiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0cyA9IG1vZHVsZS5leHBvcnRzID0gcmVxdWlyZShcIi4vLi4vLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL2Nzcy1sb2FkZXIvbGliL2Nzcy1iYXNlLmpzXCIpKCk7XG4vLyBpbXBvcnRzXG5cblxuLy8gbW9kdWxlXG5leHBvcnRzLnB1c2goW21vZHVsZS5pZCwgXCJcXG4uYWN0aW9uLWxpbmtb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ICAgICAgICAgIDx0YWJsZSBjbGFzcz1cXFwidGFibGUgdGFibGUtYm9yZGVybGVzcyBtLWItbm9uZVxcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgPHRoZWFkPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dHI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGg+TmFtZTwvdGg+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGg+U2NvcGVzPC90aD5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0aD48L3RoPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPlxcbiAgICAgICAgICAgICAgICAgICAgICAgIDwvdGhlYWQ+XFxuXFxuICAgICAgICAgICAgICAgICAgICAgICAgPHRib2R5PlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dHIgdi1mb3I9XFxcInRva2VuIGluIHRva2Vuc1xcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8IS0tIENsaWVudCBOYW1lIC0tPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkIHN0eWxlPVxcXCJ2ZXJ0aWNhbC1hbGlnbjogbWlkZGxlO1xcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge3sgdG9rZW4uY2xpZW50Lm5hbWUgfX1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdGQ+XFxuXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8IS0tIFNjb3BlcyAtLT5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZCBzdHlsZT1cXFwidmVydGljYWwtYWxpZ246IG1pZGRsZTtcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzcGFuIHYtaWY9XFxcInRva2VuLnNjb3Blcy5sZW5ndGggPiAwXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge3sgdG9rZW4uc2NvcGVzLmpvaW4oJywgJykgfX1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3NwYW4+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPlxcblxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPCEtLSBSZXZva2UgQnV0dG9uIC0tPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkIHN0eWxlPVxcXCJ2ZXJ0aWNhbC1hbGlnbjogbWlkZGxlO1xcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGEgY2xhc3M9XFxcImFjdGlvbi1saW5rIHRleHQtZGFuZ2VyXFxcIiBAY2xpY2s9XFxcInJldm9rZSh0b2tlbilcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBSZXZva2VcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2E+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPlxcbiAgICAgICAgICAgICAgICAgICAgICAgIDwvdGJvZHk+XFxuICAgICAgICAgICAgICAgICAgICA8L3RhYmxlPlxcbiAgICAgICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgIDwvZGl2PlxcbiAgICA8L2Rpdj5cXG48L3RlbXBsYXRlPlxcblxcbjxzY3JpcHQ+XFxuICAgIGV4cG9ydCBkZWZhdWx0IHtcXG4gICAgICAgIC8qXFxuICAgICAgICAgKiBUaGUgY29tcG9uZW50J3MgZGF0YS5cXG4gICAgICAgICAqL1xcbiAgICAgICAgZGF0YSgpIHtcXG4gICAgICAgICAgICByZXR1cm4ge1xcbiAgICAgICAgICAgICAgICB0b2tlbnM6IFtdXFxuICAgICAgICAgICAgfTtcXG4gICAgICAgIH0sXFxuXFxuICAgICAgICAvKipcXG4gICAgICAgICAqIFByZXBhcmUgdGhlIGNvbXBvbmVudCAoVnVlIDEueCkuXFxuICAgICAgICAgKi9cXG4gICAgICAgIHJlYWR5KCkge1xcbiAgICAgICAgICAgIHRoaXMucHJlcGFyZUNvbXBvbmVudCgpO1xcbiAgICAgICAgfSxcXG5cXG4gICAgICAgIC8qKlxcbiAgICAgICAgICogUHJlcGFyZSB0aGUgY29tcG9uZW50IChWdWUgMi54KS5cXG4gICAgICAgICAqL1xcbiAgICAgICAgbW91bnRlZCgpIHtcXG4gICAgICAgICAgICB0aGlzLnByZXBhcmVDb21wb25lbnQoKTtcXG4gICAgICAgIH0sXFxuXFxuICAgICAgICBtZXRob2RzOiB7XFxuICAgICAgICAgICAgLyoqXFxuICAgICAgICAgICAgICogUHJlcGFyZSB0aGUgY29tcG9uZW50IChWdWUgMi54KS5cXG4gICAgICAgICAgICAgKi9cXG4gICAgICAgICAgICBwcmVwYXJlQ29tcG9uZW50KCkge1xcbiAgICAgICAgICAgICAgICB0aGlzLmdldFRva2VucygpO1xcbiAgICAgICAgICAgIH0sXFxuXFxuICAgICAgICAgICAgLyoqXFxuICAgICAgICAgICAgICogR2V0IGFsbCBvZiB0aGUgYXV0aG9yaXplZCB0b2tlbnMgZm9yIHRoZSB1c2VyLlxcbiAgICAgICAgICAgICAqL1xcbiAgICAgICAgICAgIGdldFRva2VucygpIHtcXG4gICAgICAgICAgICAgICAgdGhpcy4kaHR0cC5nZXQoJy9vYXV0aC90b2tlbnMnKVxcbiAgICAgICAgICAgICAgICAgICAgICAgIC50aGVuKHJlc3BvbnNlID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy50b2tlbnMgPSByZXNwb25zZS5kYXRhO1xcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xcbiAgICAgICAgICAgIH0sXFxuXFxuICAgICAgICAgICAgLyoqXFxuICAgICAgICAgICAgICogUmV2b2tlIHRoZSBnaXZlbiB0b2tlbi5cXG4gICAgICAgICAgICAgKi9cXG4gICAgICAgICAgICByZXZva2UodG9rZW4pIHtcXG4gICAgICAgICAgICAgICAgdGhpcy4kaHR0cC5kZWxldGUoJy9vYXV0aC90b2tlbnMvJyArIHRva2VuLmlkKVxcbiAgICAgICAgICAgICAgICAgICAgICAgIC50aGVuKHJlc3BvbnNlID0+IHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5nZXRUb2tlbnMoKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICB9KTtcXG4gICAgICAgICAgICB9XFxuICAgICAgICB9XFxuICAgIH1cXG48L3NjcmlwdD5cXG5cIl0sXCJzb3VyY2VSb290XCI6XCJ3ZWJwYWNrOi8vXCJ9XSk7XG5cbi8vIGV4cG9ydHNcblxuXG5cbi8vLy8vLy8vLy8vLy8vLy8vL1xuLy8gV0VCUEFDSyBGT09URVJcbi8vIC4vfi9jc3MtbG9hZGVyP3NvdXJjZU1hcCEuL34vdnVlLWxvYWRlci9saWIvc3R5bGUtcmV3cml0ZXIuanM/aWQ9ZGF0YS12LTQwYmI5NjdiJnNjb3BlZD10cnVlIS4vfi92dWUtbG9hZGVyL2xpYi9zZWxlY3Rvci5qcz90eXBlPXN0eWxlcyZpbmRleD0wIS4vcmVzb3VyY2VzL2Fzc2V0cy9qcy9jb21wb25lbnRzL3Bhc3Nwb3J0L0F1dGhvcml6ZWRDbGllbnRzLnZ1ZVxuLy8gbW9kdWxlIGlkID0gMjFcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOyIsInNvdXJjZVJvb3QiOiIifQ==\");\n\n/***/ },\n/* 22 */\n/***/ function(module, exports, __webpack_require__) {\n\neval(\"exports = module.exports = __webpack_require__(0)();\\n// imports\\n\\n\\n// module\\nexports.push([module.i, \\\"\\\\n.action-link[data-v-50cddfe0] {\\\\n cursor: pointer;\\\\n}\\\\n.m-b-none[data-v-50cddfe0] {\\\\n margin-bottom: 0;\\\\n}\\\\n\\\", \\\"\\\", {\\\"version\\\":3,\\\"sources\\\":[\\\"/./resources/assets/js/components/passport/PersonalAccessTokens.vue?5734f4e4\\\"],\\\"names\\\":[],\\\"mappings\\\":\\\";AACA;IACA,gBAAA;CACA;AAEA;IACA,iBAAA;CACA\\\",\\\"file\\\":\\\"PersonalAccessTokens.vue\\\",\\\"sourcesContent\\\":[\\\"\\\\n\\\\n\\\\n\\\\n\\\\n\\\"],\\\"sourceRoot\\\":\\\"webpack://\\\"}]);\\n\\n// exports\\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjIuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvYXNzZXRzL2pzL2NvbXBvbmVudHMvcGFzc3BvcnQvUGVyc29uYWxBY2Nlc3NUb2tlbnMudnVlPzFjYTEiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0cyA9IG1vZHVsZS5leHBvcnRzID0gcmVxdWlyZShcIi4vLi4vLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL2Nzcy1sb2FkZXIvbGliL2Nzcy1iYXNlLmpzXCIpKCk7XG4vLyBpbXBvcnRzXG5cblxuLy8gbW9kdWxlXG5leHBvcnRzLnB1c2goW21vZHVsZS5pZCwgXCJcXG4uYWN0aW9uLWxpbmtbZGF0YS12LTUwY2RkZmUwXSB7XFxuICAgIGN1cnNvcjogcG9pbnRlcjtcXG59XFxuLm0tYi1ub25lW2RhdGEtdi01MGNkZGZlMF0ge1xcbiAgICBtYXJnaW4tYm90dG9tOiAwO1xcbn1cXG5cIiwgXCJcIiwge1widmVyc2lvblwiOjMsXCJzb3VyY2VzXCI6W1wiLy4vcmVzb3VyY2VzL2Fzc2V0cy9qcy9jb21wb25lbnRzL3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F0ZSBOZXcgVG9rZW5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8L2E+XFxuICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgICAgICAgICAgPC9kaXY+XFxuXFxuICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XFxcInBhbmVsLWJvZHlcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgPCEtLSBObyBUb2tlbnMgTm90aWNlIC0tPlxcbiAgICAgICAgICAgICAgICAgICAgPHAgY2xhc3M9XFxcIm0tYi1ub25lXFxcIiB2LWlmPVxcXCJ0b2tlbnMubGVuZ3RoID09PSAwXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICBZb3UgaGF2ZSBub3QgY3JlYXRlZCBhbnkgcGVyc29uYWwgYWNjZXNzIHRva2Vucy5cXG4gICAgICAgICAgICAgICAgICAgIDwvcD5cXG5cXG4gICAgICAgICAgICAgICAgICAgIDwhLS0gUGVyc29uYWwgQWNjZXNzIFRva2VucyAtLT5cXG4gICAgICAgICAgICAgICAgICAgIDx0YWJsZSBjbGFzcz1cXFwidGFibGUgdGFibGUtYm9yZGVybGVzcyBtLWItbm9uZVxcXCIgdi1pZj1cXFwidG9rZW5zLmxlbmd0aCA+IDBcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgIDx0aGVhZD5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRyPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRoPk5hbWU8L3RoPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRoPjwvdGg+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdHI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgPC90aGVhZD5cXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8dGJvZHk+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ciB2LWZvcj1cXFwidG9rZW4gaW4gdG9rZW5zXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwhLS0gQ2xpZW50IE5hbWUgLS0+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQgc3R5bGU9XFxcInZlcnRpY2FsLWFsaWduOiBtaWRkbGU7XFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7eyB0b2tlbi5uYW1lIH19XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPlxcblxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPCEtLSBEZWxldGUgQnV0dG9uIC0tPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkIHN0eWxlPVxcXCJ2ZXJ0aWNhbC1hbGlnbjogbWlkZGxlO1xcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGEgY2xhc3M9XFxcImFjdGlvbi1saW5rIHRleHQtZGFuZ2VyXFxcIiBAY2xpY2s9XFxcInJldm9rZSh0b2tlbilcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBEZWxldGVcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2E+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RkPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3RyPlxcbiAgICAgICAgICAgICAgICAgICAgICAgIDwvdGJvZHk+XFxuICAgICAgICAgICAgICAgICAgICA8L3RhYmxlPlxcbiAgICAgICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgIDwvZGl2PlxcblxcbiAgICAgICAgPCEtLSBDcmVhdGUgVG9rZW4gTW9kYWwgLS0+XFxuICAgICAgICA8ZGl2IGNsYXNzPVxcXCJtb2RhbCBmYWRlXFxcIiBpZD1cXFwibW9kYWwtY3JlYXRlLXRva2VuXFxcIiB0YWJpbmRleD1cXFwiLTFcXFwiIHJvbGU9XFxcImRpYWxvZ1xcXCI+XFxuICAgICAgICAgICAgPGRpdiBjbGFzcz1cXFwibW9kYWwtZGlhbG9nXFxcIj5cXG4gICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cXFwibW9kYWwtY29udGVudFxcXCI+XFxuICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVxcXCJtb2RhbC1oZWFkZXJcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgIDxidXR0b24gdHlwZT1cXFwiYnV0dG9uIFxcXCIgY2xhc3M9XFxcImNsb3NlXFxcIiBkYXRhLWRpc21pc3M9XFxcIm1vZGFsXFxcIiBhcmlhLWhpZGRlbj1cXFwidHJ1ZVxcXCI+JnRpbWVzOzwvYnV0dG9uPlxcblxcbiAgICAgICAgICAgICAgICAgICAgICAgIDxoNCBjbGFzcz1cXFwibW9kYWwtdGl0bGVcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBDcmVhdGUgVG9rZW5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8L2g0PlxcbiAgICAgICAgICAgICAgICAgICAgPC9kaXY+XFxuXFxuICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVxcXCJtb2RhbC1ib2R5XFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8IS0tIEZvcm0gRXJyb3JzIC0tPlxcbiAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XFxcImFsZXJ0IGFsZXJ0LWRhbmdlclxcXCIgdi1pZj1cXFwiZm9ybS5lcnJvcnMubGVuZ3RoID4gMFxcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxwPjxzdHJvbmc+V2hvb3BzITwvc3Ryb25nPiBTb21ldGhpbmcgd2VudCB3cm9uZyE8L3A+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxicj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPHVsPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGxpIHYtZm9yPVxcXCJlcnJvciBpbiBmb3JtLmVycm9yc1xcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge3sgZXJyb3IgfX1cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvbGk+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvdWw+XFxuICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XFxuXFxuICAgICAgICAgICAgICAgICAgICAgICAgPCEtLSBDcmVhdGUgVG9rZW4gRm9ybSAtLT5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8Zm9ybSBjbGFzcz1cXFwiZm9ybS1ob3Jpem9udGFsXFxcIiByb2xlPVxcXCJmb3JtXFxcIiBAc3VibWl0LnByZXZlbnQ9XFxcInN0b3JlXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPCEtLSBOYW1lIC0tPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVxcXCJmb3JtLWdyb3VwXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxsYWJlbCBjbGFzcz1cXFwiY29sLW1kLTQgY29udHJvbC1sYWJlbFxcXCI+TmFtZTwvbGFiZWw+XFxuXFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVxcXCJjb2wtbWQtNlxcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGlucHV0IGlkPVxcXCJjcmVhdGUtdG9rZW4tbmFtZVxcXCIgdHlwZT1cXFwidGV4dFxcXCIgY2xhc3M9XFxcImZvcm0tY29udHJvbFxcXCIgbmFtZT1cXFwibmFtZVxcXCIgdi1tb2RlbD1cXFwiZm9ybS5uYW1lXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPCEtLSBTY29wZXMgLS0+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XFxcImZvcm0tZ3JvdXBcXFwiIHYtaWY9XFxcInNjb3Blcy5sZW5ndGggPiAwXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxsYWJlbCBjbGFzcz1cXFwiY29sLW1kLTQgY29udHJvbC1sYWJlbFxcXCI+U2NvcGVzPC9sYWJlbD5cXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XFxcImNvbC1tZC02XFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IHYtZm9yPVxcXCJzY29wZSBpbiBzY29wZXNcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVxcXCJjaGVja2JveFxcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bGFiZWw+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGlucHV0IHR5cGU9XFxcImNoZWNrYm94XFxcIlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBAY2xpY2s9XFxcInRvZ2dsZVNjb3BlKHNjb3BlLmlkKVxcXCJcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgOmNoZWNrZWQ9XFxcInNjb3BlSXNBc3NpZ25lZChzY29wZS5pZClcXFwiPlxcblxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7eyBzY29wZS5pZCB9fVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9sYWJlbD5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XFxuICAgICAgICAgICAgICAgICAgICAgICAgPC9mb3JtPlxcbiAgICAgICAgICAgICAgICAgICAgPC9kaXY+XFxuXFxuICAgICAgICAgICAgICAgICAgICA8IS0tIE1vZGFsIEFjdGlvbnMgLS0+XFxuICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVxcXCJtb2RhbC1mb290ZXJcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgICAgIDxidXR0b24gdHlwZT1cXFwiYnV0dG9uXFxcIiBjbGFzcz1cXFwiYnRuIGJ0bi1kZWZhdWx0XFxcIiBkYXRhLWRpc21pc3M9XFxcIm1vZGFsXFxcIj5DbG9zZTwvYnV0dG9uPlxcblxcbiAgICAgICAgICAgICAgICAgICAgICAgIDxidXR0b24gdHlwZT1cXFwiYnV0dG9uXFxcIiBjbGFzcz1cXFwiYnRuIGJ0bi1wcmltYXJ5XFxcIiBAY2xpY2s9XFxcInN0b3JlXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgQ3JlYXRlXFxuICAgICAgICAgICAgICAgICAgICAgICAgPC9idXR0b24+XFxuICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgICAgICAgICAgPC9kaXY+XFxuICAgICAgICAgICAgPC9kaXY+XFxuICAgICAgICA8L2Rpdj5cXG5cXG4gICAgICAgIDwhLS0gQWNjZXNzIFRva2VuIE1vZGFsIC0tPlxcbiAgICAgICAgPGRpdiBjbGFzcz1cXFwibW9kYWwgZmFkZVxcXCIgaWQ9XFxcIm1vZGFsLWFjY2Vzcy10b2tlblxcXCIgdGFiaW5kZXg9XFxcIi0xXFxcIiByb2xlPVxcXCJkaWFsb2dcXFwiPlxcbiAgICAgICAgICAgIDxkaXYgY2xhc3M9XFxcIm1vZGFsLWRpYWxvZ1xcXCI+XFxuICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XFxcIm1vZGFsLWNvbnRlbnRcXFwiPlxcbiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cXFwibW9kYWwtaGVhZGVyXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8YnV0dG9uIHR5cGU9XFxcImJ1dHRvbiBcXFwiIGNsYXNzPVxcXCJjbG9zZVxcXCIgZGF0YS1kaXNtaXNzPVxcXCJtb2RhbFxcXCIgYXJpYS1oaWRkZW49XFxcInRydWVcXFwiPiZ0aW1lczs8L2J1dHRvbj5cXG5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8aDQgY2xhc3M9XFxcIm1vZGFsLXRpdGxlXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgUGVyc29uYWwgQWNjZXNzIFRva2VuXFxuICAgICAgICAgICAgICAgICAgICAgICAgPC9oND5cXG4gICAgICAgICAgICAgICAgICAgIDwvZGl2PlxcblxcbiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cXFwibW9kYWwtYm9keVxcXCI+XFxuICAgICAgICAgICAgICAgICAgICAgICAgPHA+XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIEhlcmUgaXMgeW91ciBuZXcgcGVyc29uYWwgYWNjZXNzIHRva2VuLiBUaGlzIGlzIHRoZSBvbmx5IHRpbWUgaXQgd2lsbCBiZSBzaG93biBzbyBkb24ndCBsb3NlIGl0IVxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBZb3UgbWF5IG5vdyB1c2UgdGhpcyB0b2tlbiB0byBtYWtlIEFQSSByZXF1ZXN0cy5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8L3A+XFxuXFxuICAgICAgICAgICAgICAgICAgICAgICAgPHByZT48Y29kZT57eyBhY2Nlc3NUb2tlbiB9fTwvY29kZT48L3ByZT5cXG4gICAgICAgICAgICAgICAgICAgIDwvZGl2PlxcblxcbiAgICAgICAgICAgICAgICAgICAgPCEtLSBNb2RhbCBBY3Rpb25zIC0tPlxcbiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cXFwibW9kYWwtZm9vdGVyXFxcIj5cXG4gICAgICAgICAgICAgICAgICAgICAgICA8YnV0dG9uIHR5cGU9XFxcImJ1dHRvblxcXCIgY2xhc3M9XFxcImJ0biBidG4tZGVmYXVsdFxcXCIgZGF0YS1kaXNtaXNzPVxcXCJtb2RhbFxcXCI+Q2xvc2U8L2J1dHRvbj5cXG4gICAgICAgICAgICAgICAgICAgIDwvZGl2PlxcbiAgICAgICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgICAgICA8L2Rpdj5cXG4gICAgICAgIDwvZGl2PlxcbiAgICA8L2Rpdj5cXG48L3RlbXBsYXRlPlxcblxcbjxzY3JpcHQ+XFxuICAgIGV4cG9ydCBkZWZhdWx0IHtcXG4gICAgICAgIC8qXFxuICAgICAgICAgKiBUaGUgY29tcG9uZW50J3MgZGF0YS5cXG4gICAgICAgICAqL1xcbiAgICAgICAgZGF0YSgpIHtcXG4gICAgICAgICAgICByZXR1cm4ge1xcbiAgICAgICAgICAgICAgICBhY2Nlc3NUb2tlbjogbnVsbCxcXG5cXG4gICAgICAgICAgICAgICAgdG9rZW5zOiBbXSxcXG4gICAgICAgICAgICAgICAgc2NvcGVzOiBbXSxcXG5cXG4gICAgICAgICAgICAgICAgZm9ybToge1xcbiAgICAgICAgICAgICAgICAgICAgbmFtZTogJycsXFxuICAgICAgICAgICAgICAgICAgICBzY29wZXM6IFtdLFxcbiAgICAgICAgICAgICAgICAgICAgZXJyb3JzOiBbXVxcbiAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgfTtcXG4gICAgICAgIH0sXFxuXFxuICAgICAgICAvKipcXG4gICAgICAgICAqIFByZXBhcmUgdGhlIGNvbXBvbmVudCAoVnVlIDEueCkuXFxuICAgICAgICAgKi9cXG4gICAgICAgIHJlYWR5KCkge1xcbiAgICAgICAgICAgIHRoaXMucHJlcGFyZUNvbXBvbmVudCgpO1xcbiAgICAgICAgfSxcXG5cXG4gICAgICAgIC8qKlxcbiAgICAgICAgICogUHJlcGFyZSB0aGUgY29tcG9uZW50IChWdWUgMi54KS5cXG4gICAgICAgICAqL1xcbiAgICAgICAgbW91bnRlZCgpIHtcXG4gICAgICAgICAgICB0aGlzLnByZXBhcmVDb21wb25lbnQoKTtcXG4gICAgICAgIH0sXFxuXFxuICAgICAgICBtZXRob2RzOiB7XFxuICAgICAgICAgICAgLyoqXFxuICAgICAgICAgICAgICogUHJlcGFyZSB0aGUgY29tcG9uZW50LlxcbiAgICAgICAgICAgICAqL1xcbiAgICAgICAgICAgIHByZXBhcmVDb21wb25lbnQoKSB7XFxuICAgICAgICAgICAgICAgIHRoaXMuZ2V0VG9rZW5zKCk7XFxuICAgICAgICAgICAgICAgIHRoaXMuZ2V0U2NvcGVzKCk7XFxuXFxuICAgICAgICAgICAgICAgICQoJyNtb2RhbC1jcmVhdGUtdG9rZW4nKS5vbignc2hvd24uYnMubW9kYWwnLCAoKSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAkKCcjY3JlYXRlLXRva2VuLW5hbWUnKS5mb2N1cygpO1xcbiAgICAgICAgICAgICAgICB9KTtcXG4gICAgICAgICAgICB9LFxcblxcbiAgICAgICAgICAgIC8qKlxcbiAgICAgICAgICAgICAqIEdldCBhbGwgb2YgdGhlIHBlcnNvbmFsIGFjY2VzcyB0b2tlbnMgZm9yIHRoZSB1c2VyLlxcbiAgICAgICAgICAgICAqL1xcbiAgICAgICAgICAgIGdldFRva2VucygpIHtcXG4gICAgICAgICAgICAgICAgdGhpcy4kaHR0cC5nZXQoJy9vYXV0aC9wZXJzb25hbC1hY2Nlc3MtdG9rZW5zJylcXG4gICAgICAgICAgICAgICAgICAgICAgICAudGhlbihyZXNwb25zZSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMudG9rZW5zID0gcmVzcG9uc2UuZGF0YTtcXG4gICAgICAgICAgICAgICAgICAgICAgICB9KTtcXG4gICAgICAgICAgICB9LFxcblxcbiAgICAgICAgICAgIC8qKlxcbiAgICAgICAgICAgICAqIEdldCBhbGwgb2YgdGhlIGF2YWlsYWJsZSBzY29wZXMuXFxuICAgICAgICAgICAgICovXFxuICAgICAgICAgICAgZ2V0U2NvcGVzKCkge1xcbiAgICAgICAgICAgICAgICB0aGlzLiRodHRwLmdldCgnL29hdXRoL3Njb3BlcycpXFxuICAgICAgICAgICAgICAgICAgICAgICAgLnRoZW4ocmVzcG9uc2UgPT4ge1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnNjb3BlcyA9IHJlc3BvbnNlLmRhdGE7XFxuICAgICAgICAgICAgICAgICAgICAgICAgfSk7XFxuICAgICAgICAgICAgfSxcXG5cXG4gICAgICAgICAgICAvKipcXG4gICAgICAgICAgICAgKiBTaG93IHRoZSBmb3JtIGZvciBjcmVhdGluZyBuZXcgdG9rZW5zLlxcbiAgICAgICAgICAgICAqL1xcbiAgICAgICAgICAgIHNob3dDcmVhdGVUb2tlbkZvcm0oKSB7XFxuICAgICAgICAgICAgICAgICQoJyNtb2RhbC1jcmVhdGUtdG9rZW4nKS5tb2RhbCgnc2hvdycpO1xcbiAgICAgICAgICAgIH0sXFxuXFxuICAgICAgICAgICAgLyoqXFxuICAgICAgICAgICAgICogQ3JlYXRlIGEgbmV3IHBlcnNvbmFsIGFjY2VzcyB0b2tlbi5cXG4gICAgICAgICAgICAgKi9cXG4gICAgICAgICAgICBzdG9yZSgpIHtcXG4gICAgICAgICAgICAgICAgdGhpcy5hY2Nlc3NUb2tlbiA9IG51bGw7XFxuXFxuICAgICAgICAgICAgICAgIHRoaXMuZm9ybS5lcnJvcnMgPSBbXTtcXG5cXG4gICAgICAgICAgICAgICAgdGhpcy4kaHR0cC5wb3N0KCcvb2F1dGgvcGVyc29uYWwtYWNjZXNzLXRva2VucycsIHRoaXMuZm9ybSlcXG4gICAgICAgICAgICAgICAgICAgICAgICAudGhlbihyZXNwb25zZSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuZm9ybS5uYW1lID0gJyc7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuZm9ybS5zY29wZXMgPSBbXTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5mb3JtLmVycm9ycyA9IFtdO1xcblxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnRva2Vucy5wdXNoKHJlc3BvbnNlLmRhdGEudG9rZW4pO1xcblxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnNob3dBY2Nlc3NUb2tlbihyZXNwb25zZS5kYXRhLmFjY2Vzc1Rva2VuKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICB9KVxcbiAgICAgICAgICAgICAgICAgICAgICAgIC5jYXRjaChyZXNwb25zZSA9PiB7XFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgcmVzcG9uc2UuZGF0YSA9PT0gJ29iamVjdCcpIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuZm9ybS5lcnJvcnMgPSBfLmZsYXR0ZW4oXy50b0FycmF5KHJlc3BvbnNlLmRhdGEpKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY29uc29sZS5kaXIodGhpcy5mb3JtKTtcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuZm9ybS5lcnJvcnMgPSBbJ1NvbWV0aGluZyB3ZW50IHdyb25nLiBQbGVhc2UgdHJ5IGFnYWluLiddO1xcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XFxuICAgICAgICAgICAgICAgICAgICAgICAgfSk7XFxuICAgICAgICAgICAgfSxcXG5cXG4gICAgICAgICAgICAvKipcXG4gICAgICAgICAgICAgKiBUb2dnbGUgdGhlIGdpdmVuIHNjb3BlIGluIHRoZSBsaXN0IG9mIGFzc2lnbmVkIHNjb3Blcy5cXG4gICAgICAgICAgICAgKi9cXG4gICAgICAgICAgICB0b2dnbGVTY29wZShzY29wZSkge1xcbiAgICAgICAgICAgICAgICBpZiAodGhpcy5zY29wZUlzQXNzaWduZWQoc2NvcGUpKSB7XFxuICAgICAgICAgICAgICAgICAgICB0aGlzLmZvcm0uc2NvcGVzID0gXy5yZWplY3QodGhpcy5mb3JtLnNjb3BlcywgcyA9PiBzID09IHNjb3BlKTtcXG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuZm9ybS5zY29wZXMucHVzaChzY29wZSk7XFxuICAgICAgICAgICAgICAgIH1cXG4gICAgICAgICAgICB9LFxcblxcbiAgICAgICAgICAgIC8qKlxcbiAgICAgICAgICAgICAqIERldGVybWluZSBpZiB0aGUgZ2l2ZW4gc2NvcGUgaGFzIGJlZW4gYXNzaWduZWQgdG8gdGhlIHRva2VuLlxcbiAgICAgICAgICAgICAqL1xcbiAgICAgICAgICAgIHNjb3BlSXNBc3NpZ25lZChzY29wZSkge1xcbiAgICAgICAgICAgICAgICByZXR1cm4gXy5pbmRleE9mKHRoaXMuZm9ybS5zY29wZXMsIHNjb3BlKSA+PSAwO1xcbiAgICAgICAgICAgIH0sXFxuXFxuICAgICAgICAgICAgLyoqXFxuICAgICAgICAgICAgICogU2hvdyB0aGUgZ2l2ZW4gYWNjZXNzIHRva2VuIHRvIHRoZSB1c2VyLlxcbiAgICAgICAgICAgICAqL1xcbiAgICAgICAgICAgIHNob3dBY2Nlc3NUb2tlbihhY2Nlc3NUb2tlbikge1xcbiAgICAgICAgICAgICAgICAkKCcjbW9kYWwtY3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nVlXG4vLyBtb2R1bGUgaWQgPSAyMlxuLy8gbW9kdWxlIGNodW5rcyA9IDAiXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Iiwic291cmNlUm9vdCI6IiJ9\");\n\n/***/ },\n/* 23 */\n/***/ function(module, exports, __webpack_require__) {\n\neval(\"exports = module.exports = __webpack_require__(0)();\\n// imports\\n\\n\\n// module\\nexports.push([module.i, \\\"\\\\n\\\\n\\\", \\\"\\\", {\\\"version\\\":3,\\\"sources\\\":[],\\\"names\\\":[],\\\"mappings\\\":\\\"\\\",\\\"file\\\":\\\"select2.vue\\\",\\\"sourceRoot\\\":\\\"webpack://\\\"}]);\\n\\n// exports\\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvYXNzZXRzL2pzL2NvbXBvbmVudHMvc2VsZWN0Mi52dWU/YmE2ZCJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnRzID0gbW9kdWxlLmV4cG9ydHMgPSByZXF1aXJlKFwiLi8uLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvY3NzLWxvYWRlci9saWIvY3NzLWJhc2UuanNcIikoKTtcbi8vIGltcG9ydHNcblxuXG4vLyBtb2R1bGVcbmV4cG9ydHMucHVzaChbbW9kdWxlLmlkLCBcIlxcblxcblwiLCBcIlwiLCB7XCJ2ZXJzaW9uXCI6MyxcInNvdXJjZXNcIjpbXSxcIm5hbWVzXCI6W10sXCJtYXBwaW5nc1wiOlwiXCIsXCJmaWxlXCI6XCJzZWxlY3QyLnZ1ZVwiLFwic291cmNlUm9vdFwiOlwid2VicGFjazovL1wifV0pO1xuXG4vLyBleHBvcnRzXG5cblxuXG4vLy8vLy8vLy8vLy8vLy8vLy9cbi8vIFdFQlBBQ0sgRk9PVEVSXG4vLyAuL34vY3NzLWxvYWRlcj9zb3VyY2VNYXAhLi9+L3Z1ZS1sb2FkZXIvbGliL3N0eWxlLXJld3JpdGVyLmpzP2lkPWRhdGEtdi01ZDYxNmM1YiZzY29wZWQ9dHJ1ZSEuL34vdnVlLWxvYWRlci9saWIvc2VsZWN0b3IuanM/dHlwZT1zdHlsZXMmaW5kZXg9MCEuL3Jlc291cmNlcy9hc3NldHMvanMvY29tcG9uZW50cy9zZWxlY3QyLnZ1ZVxuLy8gbW9kdWxlIGlkID0gMjNcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOyIsInNvdXJjZVJvb3QiOiIifQ==\");\n\n/***/ },\n/* 24 */\n/***/ function(module, exports, __webpack_require__) {\n\neval(\"exports = module.exports = __webpack_require__(0)();\\n// imports\\n\\n\\n// module\\nexports.push([module.i, \\\"\\\\n\\\\n\\\", \\\"\\\", {\\\"version\\\":3,\\\"sources\\\":[],\\\"names\\\":[],\\\"mappings\\\":\\\"\\\",\\\"file\\\":\\\"importer.vue\\\",\\\"sourceRoot\\\":\\\"webpack://\\\"}]);\\n\\n// exports\\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjQuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvYXNzZXRzL2pzL2NvbXBvbmVudHMvaW1wb3J0ZXIvaW1wb3J0ZXIudnVlPzQ4ODgiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0cyA9IG1vZHVsZS5leHBvcnRzID0gcmVxdWlyZShcIi4vLi4vLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL2Nzcy1sb2FkZXIvbGliL2Nzcy1iYXNlLmpzXCIpKCk7XG4vLyBpbXBvcnRzXG5cblxuLy8gbW9kdWxlXG5leHBvcnRzLnB1c2goW21vZHVsZS5pZCwgXCJcXG5cXG5cIiwgXCJcIiwge1widmVyc2lvblwiOjMsXCJzb3VyY2VzXCI6W10sXCJuYW1lc1wiOltdLFwibWFwcGluZ3NcIjpcIlwiLFwiZmlsZVwiOlwiaW1wb3J0ZXIudnVlXCIsXCJzb3VyY2VSb290XCI6XCJ3ZWJwYWNrOi8vXCJ9XSk7XG5cbi8vIGV4cG9ydHNcblxuXG5cbi8vLy8vLy8vLy8vLy8vLy8vL1xuLy8gV0VCUEFDSyBGT09URVJcbi8vIC4vfi9jc3MtbG9hZGVyP3NvdXJjZU1hcCEuL34vdnVlLWxvYWRlci9saWIvc3R5bGUtcmV3cml0ZXIuanM/aWQ9ZGF0YS12LTgxMTk3MzU4JnNjb3BlZD10cnVlIS4vfi92dWUtbG9hZGVyL2xpYi9zZWxlY3Rvci5qcz90eXBlPXN0eWxlcyZpbmRleD0wIS4vcmVzb3VyY2VzL2Fzc2V0cy9qcy9jb21wb25lbnRzL2ltcG9ydGVyL2ltcG9ydGVyLnZ1ZVxuLy8gbW9kdWxlIGlkID0gMjRcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOyIsInNvdXJjZVJvb3QiOiIifQ==\");\n\n/***/ },\n/* 25 */\n/***/ function(module, exports, __webpack_require__) {\n\neval(\"exports = module.exports = __webpack_require__(0)();\\n// imports\\n\\n\\n// module\\nexports.push([module.i, \\\"\\\\n\\\\n\\\", \\\"\\\", {\\\"version\\\":3,\\\"sources\\\":[],\\\"names\\\":[],\\\"mappings\\\":\\\"\\\",\\\"file\\\":\\\"importer-errors.vue\\\",\\\"sourceRoot\\\":\\\"webpack://\\\"}]);\\n\\n// exports\\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjUuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s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 */\n/***/ function(module, exports, __webpack_require__) {\n\neval(\"var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;( function( factory ) {\\n\\tif ( true ) {\\n\\n\\t\\t// AMD. Register as an anonymous module.\\n\\t\\t!(__WEBPACK_AMD_DEFINE_ARRAY__ = [ __webpack_require__(3) ], __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__));\\n\\t} else {\\n\\n\\t\\t// Browser globals\\n\\t\\tfactory( jQuery );\\n\\t}\\n} ( function( $ ) {\\n\\n$.ui = $.ui || {};\\n\\nreturn $.ui.version = \\\"1.12.1\\\";\\n\\n} ) );\\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjYuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9+L2pxdWVyeS11aS91aS92ZXJzaW9uLmpzP2JkNDEiXSwic291cmNlc0NvbnRlbnQiOlsiKCBmdW5jdGlvbiggZmFjdG9yeSApIHtcblx0aWYgKCB0eXBlb2YgZGVmaW5lID09PSBcImZ1bmN0aW9uXCIgJiYgZGVmaW5lLmFtZCApIHtcblxuXHRcdC8vIEFNRC4gUmVnaXN0ZXIgYXMgYW4gYW5vbnltb3VzIG1vZHVsZS5cblx0XHRkZWZpbmUoIFsgXCJqcXVlcnlcIiBdLCBmYWN0b3J5ICk7XG5cdH0gZWxzZSB7XG5cblx0XHQvLyBCcm93c2VyIGdsb2JhbHNcblx0XHRmYWN0b3J5KCBqUXVlcnkgKTtcblx0fVxufSAoIGZ1bmN0aW9uKCAkICkge1xuXG4kLnVpID0gJC51aSB8fCB7fTtcblxucmV0dXJuICQudWkudmVyc2lvbiA9IFwiMS4xMi4xXCI7XG5cbn0gKSApO1xuXG5cblxuLy8vLy8vLy8vLy8vLy8vLy8vXG4vLyBXRUJQQUNLIEZPT1RFUlxuLy8gLi9+L2pxdWVyeS11aS91aS92ZXJzaW9uLmpzXG4vLyBtb2R1bGUgaWQgPSAyNlxuLy8gbW9kdWxlIGNodW5rcyA9IDAiXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Iiwic291cmNlUm9vdCI6IiJ9\");\n\n/***/ },\n/* 27 */\n/***/ function(module, exports, __webpack_require__) {\n\neval(\"var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!\\n * jQuery UI Widget 1.12.1\\n * http://jqueryui.com\\n *\\n * Copyright jQuery Foundation and other contributors\\n * Released under the MIT license.\\n * http://jquery.org/license\\n */\\n\\n//>>label: Widget\\n//>>group: Core\\n//>>description: Provides a factory for creating stateful widgets with a common API.\\n//>>docs: http://api.jqueryui.com/jQuery.widget/\\n//>>demos: http://jqueryui.com/widget/\\n\\n( function( factory ) {\\n\\tif ( true ) {\\n\\n\\t\\t// AMD. Register as an anonymous module.\\n\\t\\t!(__WEBPACK_AMD_DEFINE_ARRAY__ = [ __webpack_require__(3), __webpack_require__(26) ], __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__));\\n\\t} else {\\n\\n\\t\\t// Browser globals\\n\\t\\tfactory( jQuery );\\n\\t}\\n}( function( $ ) {\\n\\nvar widgetUuid = 0;\\nvar widgetSlice = Array.prototype.slice;\\n\\n$.cleanData = ( function( orig ) {\\n\\treturn function( elems ) {\\n\\t\\tvar events, elem, i;\\n\\t\\tfor ( i = 0; ( elem = elems[ i ] ) != null; i++ ) {\\n\\t\\t\\ttry {\\n\\n\\t\\t\\t\\t// Only trigger remove when necessary to save time\\n\\t\\t\\t\\tevents = $._data( elem, \\\"events\\\" );\\n\\t\\t\\t\\tif ( events && events.remove ) {\\n\\t\\t\\t\\t\\t$( elem ).triggerHandler( \\\"remove\\\" );\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t// Http://bugs.jquery.com/ticket/8235\\n\\t\\t\\t} catch ( e ) {}\\n\\t\\t}\\n\\t\\torig( elems );\\n\\t};\\n} )( $.cleanData );\\n\\n$.widget = function( name, base, prototype ) {\\n\\tvar existingConstructor, constructor, basePrototype;\\n\\n\\t// ProxiedPrototype allows the provided prototype to remain unmodified\\n\\t// so that it can be used as a mixin for multiple widgets (#8876)\\n\\tvar proxiedPrototype = {};\\n\\n\\tvar namespace = name.split( \\\".\\\" )[ 0 ];\\n\\tname = name.split( \\\".\\\" )[ 1 ];\\n\\tvar fullName = namespace + \\\"-\\\" + name;\\n\\n\\tif ( !prototype ) {\\n\\t\\tprototype = base;\\n\\t\\tbase = $.Widget;\\n\\t}\\n\\n\\tif ( $.isArray( prototype ) ) {\\n\\t\\tprototype = $.extend.apply( null, [ {} ].concat( prototype ) );\\n\\t}\\n\\n\\t// Create selector for plugin\\n\\t$.expr[ \\\":\\\" ][ fullName.toLowerCase() ] = function( elem ) {\\n\\t\\treturn !!$.data( elem, fullName );\\n\\t};\\n\\n\\t$[ namespace ] = $[ namespace ] || {};\\n\\texistingConstructor = $[ namespace ][ name ];\\n\\tconstructor = $[ namespace ][ name ] = function( options, element ) {\\n\\n\\t\\t// Allow instantiation without \\\"new\\\" keyword\\n\\t\\tif ( !this._createWidget ) {\\n\\t\\t\\treturn new constructor( options, element );\\n\\t\\t}\\n\\n\\t\\t// Allow instantiation without initializing for simple inheritance\\n\\t\\t// must use \\\"new\\\" keyword (the code above always passes args)\\n\\t\\tif ( arguments.length ) {\\n\\t\\t\\tthis._createWidget( options, element );\\n\\t\\t}\\n\\t};\\n\\n\\t// Extend with the existing constructor to carry over any static properties\\n\\t$.extend( constructor, existingConstructor, {\\n\\t\\tversion: prototype.version,\\n\\n\\t\\t// Copy the object used to create the prototype in case we need to\\n\\t\\t// redefine the widget later\\n\\t\\t_proto: $.extend( {}, prototype ),\\n\\n\\t\\t// Track widgets that inherit from this widget in case this widget is\\n\\t\\t// redefined after a widget inherits from it\\n\\t\\t_childConstructors: []\\n\\t} );\\n\\n\\tbasePrototype = new base();\\n\\n\\t// We need to make the options hash a property directly on the new instance\\n\\t// otherwise we'll modify the options hash on the prototype that we're\\n\\t// inheriting from\\n\\tbasePrototype.options = $.widget.extend( {}, basePrototype.options );\\n\\t$.each( prototype, function( prop, value ) {\\n\\t\\tif ( !$.isFunction( value ) ) {\\n\\t\\t\\tproxiedPrototype[ prop ] = value;\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\t\\tproxiedPrototype[ prop ] = ( function() {\\n\\t\\t\\tfunction _super() {\\n\\t\\t\\t\\treturn base.prototype[ prop ].apply( this, arguments );\\n\\t\\t\\t}\\n\\n\\t\\t\\tfunction _superApply( args ) {\\n\\t\\t\\t\\treturn base.prototype[ prop ].apply( this, args );\\n\\t\\t\\t}\\n\\n\\t\\t\\treturn function() {\\n\\t\\t\\t\\tvar __super = this._super;\\n\\t\\t\\t\\tvar __superApply = this._superApply;\\n\\t\\t\\t\\tvar returnValue;\\n\\n\\t\\t\\t\\tthis._super = _super;\\n\\t\\t\\t\\tthis._superApply = _superApply;\\n\\n\\t\\t\\t\\treturnValue = value.apply( this, arguments );\\n\\n\\t\\t\\t\\tthis._super = __super;\\n\\t\\t\\t\\tthis._superApply = __superApply;\\n\\n\\t\\t\\t\\treturn returnValue;\\n\\t\\t\\t};\\n\\t\\t} )();\\n\\t} );\\n\\tconstructor.prototype = $.widget.extend( basePrototype, {\\n\\n\\t\\t// TODO: remove support for widgetEventPrefix\\n\\t\\t// always use the name + a colon as the prefix, e.g., draggable:start\\n\\t\\t// don't prefix for widgets that aren't DOM-based\\n\\t\\twidgetEventPrefix: existingConstructor ? ( basePrototype.widgetEventPrefix || name ) : name\\n\\t}, proxiedPrototype, {\\n\\t\\tconstructor: constructor,\\n\\t\\tnamespace: namespace,\\n\\t\\twidgetName: name,\\n\\t\\twidgetFullName: fullName\\n\\t} );\\n\\n\\t// If this widget is being redefined then we need to find all widgets that\\n\\t// are inheriting from it and redefine all of them so that they inherit from\\n\\t// the new version of this widget. We're essentially trying to replace one\\n\\t// level in the prototype chain.\\n\\tif ( existingConstructor ) {\\n\\t\\t$.each( existingConstructor._childConstructors, function( i, child ) {\\n\\t\\t\\tvar childPrototype = child.prototype;\\n\\n\\t\\t\\t// Redefine the child widget using the same prototype that was\\n\\t\\t\\t// originally used, but inherit from the new version of the base\\n\\t\\t\\t$.widget( childPrototype.namespace + \\\".\\\" + childPrototype.widgetName, constructor,\\n\\t\\t\\t\\tchild._proto );\\n\\t\\t} );\\n\\n\\t\\t// Remove the list of existing child constructors from the old constructor\\n\\t\\t// so the old child constructors can be garbage collected\\n\\t\\tdelete existingConstructor._childConstructors;\\n\\t} else {\\n\\t\\tbase._childConstructors.push( constructor );\\n\\t}\\n\\n\\t$.widget.bridge( name, constructor );\\n\\n\\treturn constructor;\\n};\\n\\n$.widget.extend = function( target ) {\\n\\tvar input = widgetSlice.call( arguments, 1 );\\n\\tvar inputIndex = 0;\\n\\tvar inputLength = input.length;\\n\\tvar key;\\n\\tvar value;\\n\\n\\tfor ( ; inputIndex < inputLength; inputIndex++ ) {\\n\\t\\tfor ( key in input[ inputIndex ] ) {\\n\\t\\t\\tvalue = input[ inputIndex ][ key ];\\n\\t\\t\\tif ( input[ inputIndex ].hasOwnProperty( key ) && value !== undefined ) {\\n\\n\\t\\t\\t\\t// Clone objects\\n\\t\\t\\t\\tif ( $.isPlainObject( value ) ) {\\n\\t\\t\\t\\t\\ttarget[ key ] = $.isPlainObject( target[ key ] ) ?\\n\\t\\t\\t\\t\\t\\t$.widget.extend( {}, target[ key ], value ) :\\n\\n\\t\\t\\t\\t\\t\\t// Don't extend strings, arrays, etc. with objects\\n\\t\\t\\t\\t\\t\\t$.widget.extend( {}, value );\\n\\n\\t\\t\\t\\t// Copy everything else by reference\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\ttarget[ key ] = value;\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n\\treturn target;\\n};\\n\\n$.widget.bridge = function( name, object ) {\\n\\tvar fullName = object.prototype.widgetFullName || name;\\n\\t$.fn[ name ] = function( options ) {\\n\\t\\tvar isMethodCall = typeof options === \\\"string\\\";\\n\\t\\tvar args = widgetSlice.call( arguments, 1 );\\n\\t\\tvar returnValue = this;\\n\\n\\t\\tif ( isMethodCall ) {\\n\\n\\t\\t\\t// If this is an empty collection, we need to have the instance method\\n\\t\\t\\t// return undefined instead of the jQuery instance\\n\\t\\t\\tif ( !this.length && options === \\\"instance\\\" ) {\\n\\t\\t\\t\\treturnValue = undefined;\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tthis.each( function() {\\n\\t\\t\\t\\t\\tvar methodValue;\\n\\t\\t\\t\\t\\tvar instance = $.data( this, fullName );\\n\\n\\t\\t\\t\\t\\tif ( options === \\\"instance\\\" ) {\\n\\t\\t\\t\\t\\t\\treturnValue = instance;\\n\\t\\t\\t\\t\\t\\treturn false;\\n\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\tif ( !instance ) {\\n\\t\\t\\t\\t\\t\\treturn $.error( \\\"cannot call methods on \\\" + name +\\n\\t\\t\\t\\t\\t\\t\\t\\\" prior to initialization; \\\" +\\n\\t\\t\\t\\t\\t\\t\\t\\\"attempted to call method '\\\" + options + \\\"'\\\" );\\n\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\tif ( !$.isFunction( instance[ options ] ) || options.charAt( 0 ) === \\\"_\\\" ) {\\n\\t\\t\\t\\t\\t\\treturn $.error( \\\"no such method '\\\" + options + \\\"' for \\\" + name +\\n\\t\\t\\t\\t\\t\\t\\t\\\" widget instance\\\" );\\n\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\tmethodValue = instance[ options ].apply( instance, args );\\n\\n\\t\\t\\t\\t\\tif ( methodValue !== instance && methodValue !== undefined ) {\\n\\t\\t\\t\\t\\t\\treturnValue = methodValue && methodValue.jquery ?\\n\\t\\t\\t\\t\\t\\t\\treturnValue.pushStack( methodValue.get() ) :\\n\\t\\t\\t\\t\\t\\t\\tmethodValue;\\n\\t\\t\\t\\t\\t\\treturn false;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t} );\\n\\t\\t\\t}\\n\\t\\t} else {\\n\\n\\t\\t\\t// Allow multiple hashes to be passed on init\\n\\t\\t\\tif ( args.length ) {\\n\\t\\t\\t\\toptions = $.widget.extend.apply( null, [ options ].concat( args ) );\\n\\t\\t\\t}\\n\\n\\t\\t\\tthis.each( function() {\\n\\t\\t\\t\\tvar instance = $.data( this, fullName );\\n\\t\\t\\t\\tif ( instance ) {\\n\\t\\t\\t\\t\\tinstance.option( options || {} );\\n\\t\\t\\t\\t\\tif ( instance._init ) {\\n\\t\\t\\t\\t\\t\\tinstance._init();\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t$.data( this, fullName, new object( options, this ) );\\n\\t\\t\\t\\t}\\n\\t\\t\\t} );\\n\\t\\t}\\n\\n\\t\\treturn returnValue;\\n\\t};\\n};\\n\\n$.Widget = function( /* options, element */ ) {};\\n$.Widget._childConstructors = [];\\n\\n$.Widget.prototype = {\\n\\twidgetName: \\\"widget\\\",\\n\\twidgetEventPrefix: \\\"\\\",\\n\\tdefaultElement: \\\"
\\\",\\n\\n\\toptions: {\\n\\t\\tclasses: {},\\n\\t\\tdisabled: false,\\n\\n\\t\\t// Callbacks\\n\\t\\tcreate: null\\n\\t},\\n\\n\\t_createWidget: function( options, element ) {\\n\\t\\telement = $( element || this.defaultElement || this )[ 0 ];\\n\\t\\tthis.element = $( element );\\n\\t\\tthis.uuid = widgetUuid++;\\n\\t\\tthis.eventNamespace = \\\".\\\" + this.widgetName + this.uuid;\\n\\n\\t\\tthis.bindings = $();\\n\\t\\tthis.hoverable = $();\\n\\t\\tthis.focusable = $();\\n\\t\\tthis.classesElementLookup = {};\\n\\n\\t\\tif ( element !== this ) {\\n\\t\\t\\t$.data( element, this.widgetFullName, this );\\n\\t\\t\\tthis._on( true, this.element, {\\n\\t\\t\\t\\tremove: function( event ) {\\n\\t\\t\\t\\t\\tif ( event.target === element ) {\\n\\t\\t\\t\\t\\t\\tthis.destroy();\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t} );\\n\\t\\t\\tthis.document = $( element.style ?\\n\\n\\t\\t\\t\\t// Element within the document\\n\\t\\t\\t\\telement.ownerDocument :\\n\\n\\t\\t\\t\\t// Element is window or document\\n\\t\\t\\t\\telement.document || element );\\n\\t\\t\\tthis.window = $( this.document[ 0 ].defaultView || this.document[ 0 ].parentWindow );\\n\\t\\t}\\n\\n\\t\\tthis.options = $.widget.extend( {},\\n\\t\\t\\tthis.options,\\n\\t\\t\\tthis._getCreateOptions(),\\n\\t\\t\\toptions );\\n\\n\\t\\tthis._create();\\n\\n\\t\\tif ( this.options.disabled ) {\\n\\t\\t\\tthis._setOptionDisabled( this.options.disabled );\\n\\t\\t}\\n\\n\\t\\tthis._trigger( \\\"create\\\", null, this._getCreateEventData() );\\n\\t\\tthis._init();\\n\\t},\\n\\n\\t_getCreateOptions: function() {\\n\\t\\treturn {};\\n\\t},\\n\\n\\t_getCreateEventData: $.noop,\\n\\n\\t_create: $.noop,\\n\\n\\t_init: $.noop,\\n\\n\\tdestroy: function() {\\n\\t\\tvar that = this;\\n\\n\\t\\tthis._destroy();\\n\\t\\t$.each( this.classesElementLookup, function( key, value ) {\\n\\t\\t\\tthat._removeClass( value, key );\\n\\t\\t} );\\n\\n\\t\\t// We can probably remove the unbind calls in 2.0\\n\\t\\t// all event bindings should go through this._on()\\n\\t\\tthis.element\\n\\t\\t\\t.off( this.eventNamespace )\\n\\t\\t\\t.removeData( this.widgetFullName );\\n\\t\\tthis.widget()\\n\\t\\t\\t.off( this.eventNamespace )\\n\\t\\t\\t.removeAttr( \\\"aria-disabled\\\" );\\n\\n\\t\\t// Clean up events and states\\n\\t\\tthis.bindings.off( this.eventNamespace );\\n\\t},\\n\\n\\t_destroy: $.noop,\\n\\n\\twidget: function() {\\n\\t\\treturn this.element;\\n\\t},\\n\\n\\toption: function( key, value ) {\\n\\t\\tvar options = key;\\n\\t\\tvar parts;\\n\\t\\tvar curOption;\\n\\t\\tvar i;\\n\\n\\t\\tif ( arguments.length === 0 ) {\\n\\n\\t\\t\\t// Don't return a reference to the internal hash\\n\\t\\t\\treturn $.widget.extend( {}, this.options );\\n\\t\\t}\\n\\n\\t\\tif ( typeof key === \\\"string\\\" ) {\\n\\n\\t\\t\\t// Handle nested keys, e.g., \\\"foo.bar\\\" => { foo: { bar: ___ } }\\n\\t\\t\\toptions = {};\\n\\t\\t\\tparts = key.split( \\\".\\\" );\\n\\t\\t\\tkey = parts.shift();\\n\\t\\t\\tif ( parts.length ) {\\n\\t\\t\\t\\tcurOption = options[ key ] = $.widget.extend( {}, this.options[ key ] );\\n\\t\\t\\t\\tfor ( i = 0; i < parts.length - 1; i++ ) {\\n\\t\\t\\t\\t\\tcurOption[ parts[ i ] ] = curOption[ parts[ i ] ] || {};\\n\\t\\t\\t\\t\\tcurOption = curOption[ parts[ i ] ];\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tkey = parts.pop();\\n\\t\\t\\t\\tif ( arguments.length === 1 ) {\\n\\t\\t\\t\\t\\treturn curOption[ key ] === undefined ? null : curOption[ key ];\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tcurOption[ key ] = value;\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tif ( arguments.length === 1 ) {\\n\\t\\t\\t\\t\\treturn this.options[ key ] === undefined ? null : this.options[ key ];\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\toptions[ key ] = value;\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\tthis._setOptions( options );\\n\\n\\t\\treturn this;\\n\\t},\\n\\n\\t_setOptions: function( options ) {\\n\\t\\tvar key;\\n\\n\\t\\tfor ( key in options ) {\\n\\t\\t\\tthis._setOption( key, options[ key ] );\\n\\t\\t}\\n\\n\\t\\treturn this;\\n\\t},\\n\\n\\t_setOption: function( key, value ) {\\n\\t\\tif ( key === \\\"classes\\\" ) {\\n\\t\\t\\tthis._setOptionClasses( value );\\n\\t\\t}\\n\\n\\t\\tthis.options[ key ] = value;\\n\\n\\t\\tif ( key === \\\"disabled\\\" ) {\\n\\t\\t\\tthis._setOptionDisabled( value );\\n\\t\\t}\\n\\n\\t\\treturn this;\\n\\t},\\n\\n\\t_setOptionClasses: function( value ) {\\n\\t\\tvar classKey, elements, currentElements;\\n\\n\\t\\tfor ( classKey in value ) {\\n\\t\\t\\tcurrentElements = this.classesElementLookup[ classKey ];\\n\\t\\t\\tif ( value[ classKey ] === this.options.classes[ classKey ] ||\\n\\t\\t\\t\\t\\t!currentElements ||\\n\\t\\t\\t\\t\\t!currentElements.length ) {\\n\\t\\t\\t\\tcontinue;\\n\\t\\t\\t}\\n\\n\\t\\t\\t// We are doing this to create a new jQuery object because the _removeClass() call\\n\\t\\t\\t// on the next line is going to destroy the reference to the current elements being\\n\\t\\t\\t// tracked. We need to save a copy of this collection so that we can add the new classes\\n\\t\\t\\t// below.\\n\\t\\t\\telements = $( currentElements.get() );\\n\\t\\t\\tthis._removeClass( currentElements, classKey );\\n\\n\\t\\t\\t// We don't use _addClass() here, because that uses this.options.classes\\n\\t\\t\\t// for generating the string of classes. We want to use the value passed in from\\n\\t\\t\\t// _setOption(), this is the new value of the classes option which was passed to\\n\\t\\t\\t// _setOption(). We pass this value directly to _classes().\\n\\t\\t\\telements.addClass( this._classes( {\\n\\t\\t\\t\\telement: elements,\\n\\t\\t\\t\\tkeys: classKey,\\n\\t\\t\\t\\tclasses: value,\\n\\t\\t\\t\\tadd: true\\n\\t\\t\\t} ) );\\n\\t\\t}\\n\\t},\\n\\n\\t_setOptionDisabled: function( value ) {\\n\\t\\tthis._toggleClass( this.widget(), this.widgetFullName + \\\"-disabled\\\", null, !!value );\\n\\n\\t\\t// If the widget is becoming disabled, then nothing is interactive\\n\\t\\tif ( value ) {\\n\\t\\t\\tthis._removeClass( this.hoverable, null, \\\"ui-state-hover\\\" );\\n\\t\\t\\tthis._removeClass( this.focusable, null, \\\"ui-state-focus\\\" );\\n\\t\\t}\\n\\t},\\n\\n\\tenable: function() {\\n\\t\\treturn this._setOptions( { disabled: false } );\\n\\t},\\n\\n\\tdisable: function() {\\n\\t\\treturn this._setOptions( { disabled: true } );\\n\\t},\\n\\n\\t_classes: function( options ) {\\n\\t\\tvar full = [];\\n\\t\\tvar that = this;\\n\\n\\t\\toptions = $.extend( {\\n\\t\\t\\telement: this.element,\\n\\t\\t\\tclasses: this.options.classes || {}\\n\\t\\t}, options );\\n\\n\\t\\tfunction processClassString( classes, checkOption ) {\\n\\t\\t\\tvar current, i;\\n\\t\\t\\tfor ( i = 0; i < classes.length; i++ ) {\\n\\t\\t\\t\\tcurrent = that.classesElementLookup[ classes[ i ] ] || $();\\n\\t\\t\\t\\tif ( options.add ) {\\n\\t\\t\\t\\t\\tcurrent = $( $.unique( current.get().concat( options.element.get() ) ) );\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\tcurrent = $( current.not( options.element ).get() );\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tthat.classesElementLookup[ classes[ i ] ] = current;\\n\\t\\t\\t\\tfull.push( classes[ i ] );\\n\\t\\t\\t\\tif ( checkOption && options.classes[ classes[ i ] ] ) {\\n\\t\\t\\t\\t\\tfull.push( options.classes[ classes[ i ] ] );\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\tthis._on( options.element, {\\n\\t\\t\\t\\\"remove\\\": \\\"_untrackClassesElement\\\"\\n\\t\\t} );\\n\\n\\t\\tif ( options.keys ) {\\n\\t\\t\\tprocessClassString( options.keys.match( /\\\\S+/g ) || [], true );\\n\\t\\t}\\n\\t\\tif ( options.extra ) {\\n\\t\\t\\tprocessClassString( options.extra.match( /\\\\S+/g ) || [] );\\n\\t\\t}\\n\\n\\t\\treturn full.join( \\\" \\\" );\\n\\t},\\n\\n\\t_untrackClassesElement: function( event ) {\\n\\t\\tvar that = this;\\n\\t\\t$.each( that.classesElementLookup, function( key, value ) {\\n\\t\\t\\tif ( $.inArray( event.target, value ) !== -1 ) {\\n\\t\\t\\t\\tthat.classesElementLookup[ key ] = $( value.not( event.target ).get() );\\n\\t\\t\\t}\\n\\t\\t} );\\n\\t},\\n\\n\\t_removeClass: function( element, keys, extra ) {\\n\\t\\treturn this._toggleClass( element, keys, extra, false );\\n\\t},\\n\\n\\t_addClass: function( element, keys, extra ) {\\n\\t\\treturn this._toggleClass( element, keys, extra, true );\\n\\t},\\n\\n\\t_toggleClass: function( element, keys, extra, add ) {\\n\\t\\tadd = ( typeof add === \\\"boolean\\\" ) ? add : extra;\\n\\t\\tvar shift = ( typeof element === \\\"string\\\" || element === null ),\\n\\t\\t\\toptions = {\\n\\t\\t\\t\\textra: shift ? keys : extra,\\n\\t\\t\\t\\tkeys: shift ? element : keys,\\n\\t\\t\\t\\telement: shift ? this.element : element,\\n\\t\\t\\t\\tadd: add\\n\\t\\t\\t};\\n\\t\\toptions.element.toggleClass( this._classes( options ), add );\\n\\t\\treturn this;\\n\\t},\\n\\n\\t_on: function( suppressDisabledCheck, element, handlers ) {\\n\\t\\tvar delegateElement;\\n\\t\\tvar instance = this;\\n\\n\\t\\t// No suppressDisabledCheck flag, shuffle arguments\\n\\t\\tif ( typeof suppressDisabledCheck !== \\\"boolean\\\" ) {\\n\\t\\t\\thandlers = element;\\n\\t\\t\\telement = suppressDisabledCheck;\\n\\t\\t\\tsuppressDisabledCheck = false;\\n\\t\\t}\\n\\n\\t\\t// No element argument, shuffle and use this.element\\n\\t\\tif ( !handlers ) {\\n\\t\\t\\thandlers = element;\\n\\t\\t\\telement = this.element;\\n\\t\\t\\tdelegateElement = this.widget();\\n\\t\\t} else {\\n\\t\\t\\telement = delegateElement = $( element );\\n\\t\\t\\tthis.bindings = this.bindings.add( element );\\n\\t\\t}\\n\\n\\t\\t$.each( handlers, function( event, handler ) {\\n\\t\\t\\tfunction handlerProxy() {\\n\\n\\t\\t\\t\\t// Allow widgets to customize the disabled handling\\n\\t\\t\\t\\t// - disabled as an array instead of boolean\\n\\t\\t\\t\\t// - disabled class as method for disabling individual parts\\n\\t\\t\\t\\tif ( !suppressDisabledCheck &&\\n\\t\\t\\t\\t\\t\\t( instance.options.disabled === true ||\\n\\t\\t\\t\\t\\t\\t$( this ).hasClass( \\\"ui-state-disabled\\\" ) ) ) {\\n\\t\\t\\t\\t\\treturn;\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\treturn ( typeof handler === \\\"string\\\" ? instance[ handler ] : handler )\\n\\t\\t\\t\\t\\t.apply( instance, arguments );\\n\\t\\t\\t}\\n\\n\\t\\t\\t// Copy the guid so direct unbinding works\\n\\t\\t\\tif ( typeof handler !== \\\"string\\\" ) {\\n\\t\\t\\t\\thandlerProxy.guid = handler.guid =\\n\\t\\t\\t\\t\\thandler.guid || handlerProxy.guid || $.guid++;\\n\\t\\t\\t}\\n\\n\\t\\t\\tvar match = event.match( /^([\\\\w:-]*)\\\\s*(.*)$/ );\\n\\t\\t\\tvar eventName = match[ 1 ] + instance.eventNamespace;\\n\\t\\t\\tvar selector = match[ 2 ];\\n\\n\\t\\t\\tif ( selector ) {\\n\\t\\t\\t\\tdelegateElement.on( eventName, selector, handlerProxy );\\n\\t\\t\\t} else {\\n\\t\\t\\t\\telement.on( eventName, handlerProxy );\\n\\t\\t\\t}\\n\\t\\t} );\\n\\t},\\n\\n\\t_off: function( element, eventName ) {\\n\\t\\teventName = ( eventName || \\\"\\\" ).split( \\\" \\\" ).join( this.eventNamespace + \\\" \\\" ) +\\n\\t\\t\\tthis.eventNamespace;\\n\\t\\telement.off( eventName ).off( eventName );\\n\\n\\t\\t// Clear the stack to avoid memory leaks (#10056)\\n\\t\\tthis.bindings = $( this.bindings.not( element ).get() );\\n\\t\\tthis.focusable = $( this.focusable.not( element ).get() );\\n\\t\\tthis.hoverable = $( this.hoverable.not( element ).get() );\\n\\t},\\n\\n\\t_delay: function( handler, delay ) {\\n\\t\\tfunction handlerProxy() {\\n\\t\\t\\treturn ( typeof handler === \\\"string\\\" ? instance[ handler ] : handler )\\n\\t\\t\\t\\t.apply( instance, arguments );\\n\\t\\t}\\n\\t\\tvar instance = this;\\n\\t\\treturn setTimeout( handlerProxy, delay || 0 );\\n\\t},\\n\\n\\t_hoverable: function( element ) {\\n\\t\\tthis.hoverable = this.hoverable.add( element );\\n\\t\\tthis._on( element, {\\n\\t\\t\\tmouseenter: function( event ) {\\n\\t\\t\\t\\tthis._addClass( $( event.currentTarget ), null, \\\"ui-state-hover\\\" );\\n\\t\\t\\t},\\n\\t\\t\\tmouseleave: function( event ) {\\n\\t\\t\\t\\tthis._removeClass( $( event.currentTarget ), null, \\\"ui-state-hover\\\" );\\n\\t\\t\\t}\\n\\t\\t} );\\n\\t},\\n\\n\\t_focusable: function( element ) {\\n\\t\\tthis.focusable = this.focusable.add( element );\\n\\t\\tthis._on( element, {\\n\\t\\t\\tfocusin: function( event ) {\\n\\t\\t\\t\\tthis._addClass( $( event.currentTarget ), null, \\\"ui-state-focus\\\" );\\n\\t\\t\\t},\\n\\t\\t\\tfocusout: function( event ) {\\n\\t\\t\\t\\tthis._removeClass( $( event.currentTarget ), null, \\\"ui-state-focus\\\" );\\n\\t\\t\\t}\\n\\t\\t} );\\n\\t},\\n\\n\\t_trigger: function( type, event, data ) {\\n\\t\\tvar prop, orig;\\n\\t\\tvar callback = this.options[ type ];\\n\\n\\t\\tdata = data || {};\\n\\t\\tevent = $.Event( event );\\n\\t\\tevent.type = ( type === this.widgetEventPrefix ?\\n\\t\\t\\ttype :\\n\\t\\t\\tthis.widgetEventPrefix + type ).toLowerCase();\\n\\n\\t\\t// The original event may come from any element\\n\\t\\t// so we need to reset the target on the new event\\n\\t\\tevent.target = this.element[ 0 ];\\n\\n\\t\\t// Copy original event properties over to the new event\\n\\t\\torig = event.originalEvent;\\n\\t\\tif ( orig ) {\\n\\t\\t\\tfor ( prop in orig ) {\\n\\t\\t\\t\\tif ( !( prop in event ) ) {\\n\\t\\t\\t\\t\\tevent[ prop ] = orig[ prop ];\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\tthis.element.trigger( event, data );\\n\\t\\treturn !( $.isFunction( callback ) &&\\n\\t\\t\\tcallback.apply( this.element[ 0 ], [ event ].concat( data ) ) === false ||\\n\\t\\t\\tevent.isDefaultPrevented() );\\n\\t}\\n};\\n\\n$.each( { show: \\\"fadeIn\\\", hide: \\\"fadeOut\\\" }, function( method, defaultEffect ) {\\n\\t$.Widget.prototype[ \\\"_\\\" + method ] = function( element, options, callback ) {\\n\\t\\tif ( typeof options === \\\"string\\\" ) {\\n\\t\\t\\toptions = { effect: options };\\n\\t\\t}\\n\\n\\t\\tvar hasOptions;\\n\\t\\tvar effectName = !options ?\\n\\t\\t\\tmethod :\\n\\t\\t\\toptions === true || typeof options === \\\"number\\\" ?\\n\\t\\t\\t\\tdefaultEffect :\\n\\t\\t\\t\\toptions.effect || defaultEffect;\\n\\n\\t\\toptions = options || {};\\n\\t\\tif ( typeof options === \\\"number\\\" ) {\\n\\t\\t\\toptions = { duration: options };\\n\\t\\t}\\n\\n\\t\\thasOptions = !$.isEmptyObject( options );\\n\\t\\toptions.complete = callback;\\n\\n\\t\\tif ( options.delay ) {\\n\\t\\t\\telement.delay( options.delay );\\n\\t\\t}\\n\\n\\t\\tif ( hasOptions && $.effects && $.effects.effect[ effectName ] ) {\\n\\t\\t\\telement[ method ]( options );\\n\\t\\t} else if ( effectName !== method && element[ effectName ] ) {\\n\\t\\t\\telement[ effectName ]( options.duration, options.easing, callback );\\n\\t\\t} else {\\n\\t\\t\\telement.queue( function( next ) {\\n\\t\\t\\t\\t$( this )[ method ]();\\n\\t\\t\\t\\tif ( callback ) {\\n\\t\\t\\t\\t\\tcallback.call( element[ 0 ] );\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tnext();\\n\\t\\t\\t} );\\n\\t\\t}\\n\\t};\\n} );\\n\\nreturn $.widget;\\n\\n} ) );\\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjcuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9+L2pxdWVyeS11aS91aS93aWRnZXQuanM/NDliZiJdLCJzb3VyY2VzQ29udGVudCI6WyIvKiFcbiAqIGpRdWVyeSBVSSBXaWRnZXQgMS4xMi4xXG4gKiBodHRwOi8vanF1ZXJ5dWkuY29tXG4gKlxuICogQ29weXJpZ2h0IGpRdWVyeSBGb3VuZGF0aW9uIGFuZCBvdGhlciBjb250cmlidXRvcnNcbiAqIFJlbGVhc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZS5cbiAqIGh0dHA6Ly9qcXVlcnkub3JnL2xpY2Vuc2VcbiAqL1xuXG4vLz4+bGFiZWw6IFdpZGdldFxuLy8+Pmdyb3VwOiBDb3JlXG4vLz4+ZGVzY3JpcHRpb246IFByb3ZpZGVzIGEgZmFjdG9yeSBmb3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QUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTsiLCJzb3VyY2VSb290IjoiIn0=\");\n\n/***/ },\n/* 28 */\n/***/ function(module, exports, __webpack_require__) {\n\neval(\"/* WEBPACK VAR INJECTION */(function(global, module) {var __WEBPACK_AMD_DEFINE_RESULT__;/**\\n * @license\\n * Lodash \\n * Copyright JS Foundation and other contributors \\n * Released under MIT license \\n * Based on Underscore.js 1.8.3 \\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\\n */\\n;(function() {\\n\\n /** Used as a safe reference for `undefined` in pre-ES5 environments. */\\n var undefined;\\n\\n /** Used as the semantic version number. */\\n var VERSION = '4.17.4';\\n\\n /** Used as the size to enable large array optimizations. */\\n var LARGE_ARRAY_SIZE = 200;\\n\\n /** Error message constants. */\\n var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',\\n FUNC_ERROR_TEXT = 'Expected a function';\\n\\n /** Used to stand-in for `undefined` hash values. */\\n var HASH_UNDEFINED = '__lodash_hash_undefined__';\\n\\n /** Used as the maximum memoize cache size. */\\n var MAX_MEMOIZE_SIZE = 500;\\n\\n /** Used as the internal argument placeholder. */\\n var PLACEHOLDER = '__lodash_placeholder__';\\n\\n /** Used to compose bitmasks for cloning. */\\n var CLONE_DEEP_FLAG = 1,\\n CLONE_FLAT_FLAG = 2,\\n CLONE_SYMBOLS_FLAG = 4;\\n\\n /** Used to compose bitmasks for value comparisons. */\\n var COMPARE_PARTIAL_FLAG = 1,\\n COMPARE_UNORDERED_FLAG = 2;\\n\\n /** Used to compose bitmasks for function metadata. */\\n var WRAP_BIND_FLAG = 1,\\n WRAP_BIND_KEY_FLAG = 2,\\n WRAP_CURRY_BOUND_FLAG = 4,\\n WRAP_CURRY_FLAG = 8,\\n WRAP_CURRY_RIGHT_FLAG = 16,\\n WRAP_PARTIAL_FLAG = 32,\\n WRAP_PARTIAL_RIGHT_FLAG = 64,\\n WRAP_ARY_FLAG = 128,\\n WRAP_REARG_FLAG = 256,\\n WRAP_FLIP_FLAG = 512;\\n\\n /** Used as default options for `_.truncate`. */\\n var DEFAULT_TRUNC_LENGTH = 30,\\n DEFAULT_TRUNC_OMISSION = '...';\\n\\n /** Used to detect hot functions by number of calls within a span of milliseconds. */\\n var HOT_COUNT = 800,\\n HOT_SPAN = 16;\\n\\n /** Used to indicate the type of lazy iteratees. */\\n var LAZY_FILTER_FLAG = 1,\\n LAZY_MAP_FLAG = 2,\\n LAZY_WHILE_FLAG = 3;\\n\\n /** Used as references for various `Number` constants. */\\n var INFINITY = 1 / 0,\\n MAX_SAFE_INTEGER = 9007199254740991,\\n MAX_INTEGER = 1.7976931348623157e+308,\\n NAN = 0 / 0;\\n\\n /** Used as references for the maximum length and index of an array. */\\n var MAX_ARRAY_LENGTH = 4294967295,\\n MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1,\\n HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;\\n\\n /** Used to associate wrap methods with their bit flags. */\\n var wrapFlags = [\\n ['ary', WRAP_ARY_FLAG],\\n ['bind', WRAP_BIND_FLAG],\\n ['bindKey', WRAP_BIND_KEY_FLAG],\\n ['curry', WRAP_CURRY_FLAG],\\n ['curryRight', WRAP_CURRY_RIGHT_FLAG],\\n ['flip', WRAP_FLIP_FLAG],\\n ['partial', WRAP_PARTIAL_FLAG],\\n ['partialRight', WRAP_PARTIAL_RIGHT_FLAG],\\n ['rearg', WRAP_REARG_FLAG]\\n ];\\n\\n /** `Object#toString` result references. */\\n var argsTag = '[object Arguments]',\\n arrayTag = '[object Array]',\\n asyncTag = '[object AsyncFunction]',\\n boolTag = '[object Boolean]',\\n dateTag = '[object Date]',\\n domExcTag = '[object DOMException]',\\n errorTag = '[object Error]',\\n funcTag = '[object Function]',\\n genTag = '[object GeneratorFunction]',\\n mapTag = '[object Map]',\\n numberTag = '[object Number]',\\n nullTag = '[object Null]',\\n objectTag = '[object Object]',\\n promiseTag = '[object Promise]',\\n proxyTag = '[object Proxy]',\\n regexpTag = '[object RegExp]',\\n setTag = '[object Set]',\\n stringTag = '[object String]',\\n symbolTag = '[object Symbol]',\\n undefinedTag = '[object Undefined]',\\n weakMapTag = '[object WeakMap]',\\n weakSetTag = '[object WeakSet]';\\n\\n var arrayBufferTag = '[object ArrayBuffer]',\\n dataViewTag = '[object DataView]',\\n float32Tag = '[object Float32Array]',\\n float64Tag = '[object Float64Array]',\\n int8Tag = '[object Int8Array]',\\n int16Tag = '[object Int16Array]',\\n int32Tag = '[object Int32Array]',\\n uint8Tag = '[object Uint8Array]',\\n uint8ClampedTag = '[object Uint8ClampedArray]',\\n uint16Tag = '[object Uint16Array]',\\n uint32Tag = '[object Uint32Array]';\\n\\n /** Used to match empty string literals in compiled template source. */\\n var reEmptyStringLeading = /\\\\b__p \\\\+= '';/g,\\n reEmptyStringMiddle = /\\\\b(__p \\\\+=) '' \\\\+/g,\\n reEmptyStringTrailing = /(__e\\\\(.*?\\\\)|\\\\b__t\\\\)) \\\\+\\\\n'';/g;\\n\\n /** Used to match HTML entities and HTML characters. */\\n var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g,\\n reUnescapedHtml = /[&<>\\\"']/g,\\n reHasEscapedHtml = RegExp(reEscapedHtml.source),\\n reHasUnescapedHtml = RegExp(reUnescapedHtml.source);\\n\\n /** Used to match template delimiters. */\\n var reEscape = /<%-([\\\\s\\\\S]+?)%>/g,\\n reEvaluate = /<%([\\\\s\\\\S]+?)%>/g,\\n reInterpolate = /<%=([\\\\s\\\\S]+?)%>/g;\\n\\n /** Used to match property names within property paths. */\\n var reIsDeepProp = /\\\\.|\\\\[(?:[^[\\\\]]*|([\\\"'])(?:(?!\\\\1)[^\\\\\\\\]|\\\\\\\\.)*?\\\\1)\\\\]/,\\n reIsPlainProp = /^\\\\w*$/,\\n reLeadingDot = /^\\\\./,\\n rePropName = /[^.[\\\\]]+|\\\\[(?:(-?\\\\d+(?:\\\\.\\\\d+)?)|([\\\"'])((?:(?!\\\\2)[^\\\\\\\\]|\\\\\\\\.)*?)\\\\2)\\\\]|(?=(?:\\\\.|\\\\[\\\\])(?:\\\\.|\\\\[\\\\]|$))/g;\\n\\n /**\\n * Used to match `RegExp`\\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\\n */\\n var reRegExpChar = /[\\\\\\\\^$.*+?()[\\\\]{}|]/g,\\n reHasRegExpChar = RegExp(reRegExpChar.source);\\n\\n /** Used to match leading and trailing whitespace. */\\n var reTrim = /^\\\\s+|\\\\s+$/g,\\n reTrimStart = /^\\\\s+/,\\n reTrimEnd = /\\\\s+$/;\\n\\n /** Used to match wrap detail comments. */\\n var reWrapComment = /\\\\{(?:\\\\n\\\\/\\\\* \\\\[wrapped with .+\\\\] \\\\*\\\\/)?\\\\n?/,\\n reWrapDetails = /\\\\{\\\\n\\\\/\\\\* \\\\[wrapped with (.+)\\\\] \\\\*/,\\n reSplitDetails = /,? & /;\\n\\n /** Used to match words composed of alphanumeric characters. */\\n var reAsciiWord = /[^\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\x7f]+/g;\\n\\n /** Used to match backslashes in property paths. */\\n var reEscapeChar = /\\\\\\\\(\\\\\\\\)?/g;\\n\\n /**\\n * Used to match\\n * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).\\n */\\n var reEsTemplate = /\\\\$\\\\{([^\\\\\\\\}]*(?:\\\\\\\\.[^\\\\\\\\}]*)*)\\\\}/g;\\n\\n /** Used to match `RegExp` flags from their coerced string values. */\\n var reFlags = /\\\\w*$/;\\n\\n /** Used to detect bad signed hexadecimal string values. */\\n var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\\n\\n /** Used to detect binary string values. */\\n var reIsBinary = /^0b[01]+$/i;\\n\\n /** Used to detect host constructors (Safari). */\\n var reIsHostCtor = /^\\\\[object .+?Constructor\\\\]$/;\\n\\n /** Used to detect octal string values. */\\n var reIsOctal = /^0o[0-7]+$/i;\\n\\n /** Used to detect unsigned integer values. */\\n var reIsUint = /^(?:0|[1-9]\\\\d*)$/;\\n\\n /** Used to match Latin Unicode letters (excluding mathematical operators). */\\n var reLatin = /[\\\\xc0-\\\\xd6\\\\xd8-\\\\xf6\\\\xf8-\\\\xff\\\\u0100-\\\\u017f]/g;\\n\\n /** Used to ensure capturing order of template delimiters. */\\n var reNoMatch = /($^)/;\\n\\n /** Used to match unescaped characters in compiled string literals. */\\n var reUnescapedString = /['\\\\n\\\\r\\\\u2028\\\\u2029\\\\\\\\]/g;\\n\\n /** Used to compose unicode character classes. */\\n var rsAstralRange = '\\\\\\\\ud800-\\\\\\\\udfff',\\n rsComboMarksRange = '\\\\\\\\u0300-\\\\\\\\u036f',\\n reComboHalfMarksRange = '\\\\\\\\ufe20-\\\\\\\\ufe2f',\\n rsComboSymbolsRange = '\\\\\\\\u20d0-\\\\\\\\u20ff',\\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\\n rsDingbatRange = '\\\\\\\\u2700-\\\\\\\\u27bf',\\n rsLowerRange = 'a-z\\\\\\\\xdf-\\\\\\\\xf6\\\\\\\\xf8-\\\\\\\\xff',\\n rsMathOpRange = '\\\\\\\\xac\\\\\\\\xb1\\\\\\\\xd7\\\\\\\\xf7',\\n rsNonCharRange = '\\\\\\\\x00-\\\\\\\\x2f\\\\\\\\x3a-\\\\\\\\x40\\\\\\\\x5b-\\\\\\\\x60\\\\\\\\x7b-\\\\\\\\xbf',\\n rsPunctuationRange = '\\\\\\\\u2000-\\\\\\\\u206f',\\n 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',\\n rsUpperRange = 'A-Z\\\\\\\\xc0-\\\\\\\\xd6\\\\\\\\xd8-\\\\\\\\xde',\\n rsVarRange = '\\\\\\\\ufe0e\\\\\\\\ufe0f',\\n rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;\\n\\n /** Used to compose unicode capture groups. */\\n var rsApos = \\\"['\\\\u2019]\\\",\\n rsAstral = '[' + rsAstralRange + ']',\\n rsBreak = '[' + rsBreakRange + ']',\\n rsCombo = '[' + rsComboRange + ']',\\n rsDigits = '\\\\\\\\d+',\\n rsDingbat = '[' + rsDingbatRange + ']',\\n rsLower = '[' + rsLowerRange + ']',\\n rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',\\n rsFitz = '\\\\\\\\ud83c[\\\\\\\\udffb-\\\\\\\\udfff]',\\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\\n rsNonAstral = '[^' + rsAstralRange + ']',\\n rsRegional = '(?:\\\\\\\\ud83c[\\\\\\\\udde6-\\\\\\\\uddff]){2}',\\n rsSurrPair = '[\\\\\\\\ud800-\\\\\\\\udbff][\\\\\\\\udc00-\\\\\\\\udfff]',\\n rsUpper = '[' + rsUpperRange + ']',\\n rsZWJ = '\\\\\\\\u200d';\\n\\n /** Used to compose unicode regexes. */\\n var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',\\n rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',\\n rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',\\n rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',\\n reOptMod = rsModifier + '?',\\n rsOptVar = '[' + rsVarRange + ']?',\\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\\n rsOrdLower = '\\\\\\\\d*(?:(?:1st|2nd|3rd|(?![123])\\\\\\\\dth)\\\\\\\\b)',\\n rsOrdUpper = '\\\\\\\\d*(?:(?:1ST|2ND|3RD|(?![123])\\\\\\\\dTH)\\\\\\\\b)',\\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\\n rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,\\n rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\\n\\n /** Used to match apostrophes. */\\n var reApos = RegExp(rsApos, 'g');\\n\\n /**\\n * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and\\n * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).\\n */\\n var reComboMark = RegExp(rsCombo, 'g');\\n\\n /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\\n var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\\n\\n /** Used to match complex or compound words. */\\n var reUnicodeWord = RegExp([\\n rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',\\n rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',\\n rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,\\n rsUpper + '+' + rsOptContrUpper,\\n rsOrdUpper,\\n rsOrdLower,\\n rsDigits,\\n rsEmoji\\n ].join('|'), 'g');\\n\\n /** 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/). */\\n var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');\\n\\n /** Used to detect strings that need a more robust regexp to match words. */\\n 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 ]/;\\n\\n /** Used to assign default `context` object properties. */\\n var contextProps = [\\n 'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array',\\n 'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object',\\n 'Promise', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array',\\n 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap',\\n '_', 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout'\\n ];\\n\\n /** Used to make template sourceURLs easier to identify. */\\n var templateCounter = -1;\\n\\n /** Used to identify `toStringTag` values of typed arrays. */\\n var typedArrayTags = {};\\n typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\\n typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\\n typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\\n typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\\n typedArrayTags[uint32Tag] = true;\\n typedArrayTags[argsTag] = typedArrayTags[arrayTag] =\\n typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\\n typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\\n typedArrayTags[errorTag] = typedArrayTags[funcTag] =\\n typedArrayTags[mapTag] = typedArrayTags[numberTag] =\\n typedArrayTags[objectTag] = typedArrayTags[regexpTag] =\\n typedArrayTags[setTag] = typedArrayTags[stringTag] =\\n typedArrayTags[weakMapTag] = false;\\n\\n /** Used to identify `toStringTag` values supported by `_.clone`. */\\n var cloneableTags = {};\\n cloneableTags[argsTag] = cloneableTags[arrayTag] =\\n cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\\n cloneableTags[boolTag] = cloneableTags[dateTag] =\\n cloneableTags[float32Tag] = cloneableTags[float64Tag] =\\n cloneableTags[int8Tag] = cloneableTags[int16Tag] =\\n cloneableTags[int32Tag] = cloneableTags[mapTag] =\\n cloneableTags[numberTag] = cloneableTags[objectTag] =\\n cloneableTags[regexpTag] = cloneableTags[setTag] =\\n cloneableTags[stringTag] = cloneableTags[symbolTag] =\\n cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\\n cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\\n cloneableTags[errorTag] = cloneableTags[funcTag] =\\n cloneableTags[weakMapTag] = false;\\n\\n /** Used to map Latin Unicode letters to basic Latin letters. */\\n var deburredLetters = {\\n // Latin-1 Supplement block.\\n '\\\\xc0': 'A', '\\\\xc1': 'A', '\\\\xc2': 'A', '\\\\xc3': 'A', '\\\\xc4': 'A', '\\\\xc5': 'A',\\n '\\\\xe0': 'a', '\\\\xe1': 'a', '\\\\xe2': 'a', '\\\\xe3': 'a', '\\\\xe4': 'a', '\\\\xe5': 'a',\\n '\\\\xc7': 'C', '\\\\xe7': 'c',\\n '\\\\xd0': 'D', '\\\\xf0': 'd',\\n '\\\\xc8': 'E', '\\\\xc9': 'E', '\\\\xca': 'E', '\\\\xcb': 'E',\\n '\\\\xe8': 'e', '\\\\xe9': 'e', '\\\\xea': 'e', '\\\\xeb': 'e',\\n '\\\\xcc': 'I', '\\\\xcd': 'I', '\\\\xce': 'I', '\\\\xcf': 'I',\\n '\\\\xec': 'i', '\\\\xed': 'i', '\\\\xee': 'i', '\\\\xef': 'i',\\n '\\\\xd1': 'N', '\\\\xf1': 'n',\\n '\\\\xd2': 'O', '\\\\xd3': 'O', '\\\\xd4': 'O', '\\\\xd5': 'O', '\\\\xd6': 'O', '\\\\xd8': 'O',\\n '\\\\xf2': 'o', '\\\\xf3': 'o', '\\\\xf4': 'o', '\\\\xf5': 'o', '\\\\xf6': 'o', '\\\\xf8': 'o',\\n '\\\\xd9': 'U', '\\\\xda': 'U', '\\\\xdb': 'U', '\\\\xdc': 'U',\\n '\\\\xf9': 'u', '\\\\xfa': 'u', '\\\\xfb': 'u', '\\\\xfc': 'u',\\n '\\\\xdd': 'Y', '\\\\xfd': 'y', '\\\\xff': 'y',\\n '\\\\xc6': 'Ae', '\\\\xe6': 'ae',\\n '\\\\xde': 'Th', '\\\\xfe': 'th',\\n '\\\\xdf': 'ss',\\n // Latin Extended-A block.\\n '\\\\u0100': 'A', '\\\\u0102': 'A', '\\\\u0104': 'A',\\n '\\\\u0101': 'a', '\\\\u0103': 'a', '\\\\u0105': 'a',\\n '\\\\u0106': 'C', '\\\\u0108': 'C', '\\\\u010a': 'C', '\\\\u010c': 'C',\\n '\\\\u0107': 'c', '\\\\u0109': 'c', '\\\\u010b': 'c', '\\\\u010d': 'c',\\n '\\\\u010e': 'D', '\\\\u0110': 'D', '\\\\u010f': 'd', '\\\\u0111': 'd',\\n '\\\\u0112': 'E', '\\\\u0114': 'E', '\\\\u0116': 'E', '\\\\u0118': 'E', '\\\\u011a': 'E',\\n '\\\\u0113': 'e', '\\\\u0115': 'e', '\\\\u0117': 'e', '\\\\u0119': 'e', '\\\\u011b': 'e',\\n '\\\\u011c': 'G', '\\\\u011e': 'G', '\\\\u0120': 'G', '\\\\u0122': 'G',\\n '\\\\u011d': 'g', '\\\\u011f': 'g', '\\\\u0121': 'g', '\\\\u0123': 'g',\\n '\\\\u0124': 'H', '\\\\u0126': 'H', '\\\\u0125': 'h', '\\\\u0127': 'h',\\n '\\\\u0128': 'I', '\\\\u012a': 'I', '\\\\u012c': 'I', '\\\\u012e': 'I', '\\\\u0130': 'I',\\n '\\\\u0129': 'i', '\\\\u012b': 'i', '\\\\u012d': 'i', '\\\\u012f': 'i', '\\\\u0131': 'i',\\n '\\\\u0134': 'J', '\\\\u0135': 'j',\\n '\\\\u0136': 'K', '\\\\u0137': 'k', '\\\\u0138': 'k',\\n '\\\\u0139': 'L', '\\\\u013b': 'L', '\\\\u013d': 'L', '\\\\u013f': 'L', '\\\\u0141': 'L',\\n '\\\\u013a': 'l', '\\\\u013c': 'l', '\\\\u013e': 'l', '\\\\u0140': 'l', '\\\\u0142': 'l',\\n '\\\\u0143': 'N', '\\\\u0145': 'N', '\\\\u0147': 'N', '\\\\u014a': 'N',\\n '\\\\u0144': 'n', '\\\\u0146': 'n', '\\\\u0148': 'n', '\\\\u014b': 'n',\\n '\\\\u014c': 'O', '\\\\u014e': 'O', '\\\\u0150': 'O',\\n '\\\\u014d': 'o', '\\\\u014f': 'o', '\\\\u0151': 'o',\\n '\\\\u0154': 'R', '\\\\u0156': 'R', '\\\\u0158': 'R',\\n '\\\\u0155': 'r', '\\\\u0157': 'r', '\\\\u0159': 'r',\\n '\\\\u015a': 'S', '\\\\u015c': 'S', '\\\\u015e': 'S', '\\\\u0160': 'S',\\n '\\\\u015b': 's', '\\\\u015d': 's', '\\\\u015f': 's', '\\\\u0161': 's',\\n '\\\\u0162': 'T', '\\\\u0164': 'T', '\\\\u0166': 'T',\\n '\\\\u0163': 't', '\\\\u0165': 't', '\\\\u0167': 't',\\n '\\\\u0168': 'U', '\\\\u016a': 'U', '\\\\u016c': 'U', '\\\\u016e': 'U', '\\\\u0170': 'U', '\\\\u0172': 'U',\\n '\\\\u0169': 'u', '\\\\u016b': 'u', '\\\\u016d': 'u', '\\\\u016f': 'u', '\\\\u0171': 'u', '\\\\u0173': 'u',\\n '\\\\u0174': 'W', '\\\\u0175': 'w',\\n '\\\\u0176': 'Y', '\\\\u0177': 'y', '\\\\u0178': 'Y',\\n '\\\\u0179': 'Z', '\\\\u017b': 'Z', '\\\\u017d': 'Z',\\n '\\\\u017a': 'z', '\\\\u017c': 'z', '\\\\u017e': 'z',\\n '\\\\u0132': 'IJ', '\\\\u0133': 'ij',\\n '\\\\u0152': 'Oe', '\\\\u0153': 'oe',\\n '\\\\u0149': \\\"'n\\\", '\\\\u017f': 's'\\n };\\n\\n /** Used to map characters to HTML entities. */\\n var htmlEscapes = {\\n '&': '&',\\n '<': '<',\\n '>': '>',\\n '\\\"': '"',\\n \\\"'\\\": '''\\n };\\n\\n /** Used to map HTML entities to characters. */\\n var htmlUnescapes = {\\n '&': '&',\\n '<': '<',\\n '>': '>',\\n '"': '\\\"',\\n ''': \\\"'\\\"\\n };\\n\\n /** Used to escape characters for inclusion in compiled string literals. */\\n var stringEscapes = {\\n '\\\\\\\\': '\\\\\\\\',\\n \\\"'\\\": \\\"'\\\",\\n '\\\\n': 'n',\\n '\\\\r': 'r',\\n '\\\\u2028': 'u2028',\\n '\\\\u2029': 'u2029'\\n };\\n\\n /** Built-in method references without a dependency on `root`. */\\n var freeParseFloat = parseFloat,\\n freeParseInt = parseInt;\\n\\n /** Detect free variable `global` from Node.js. */\\n var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\\n\\n /** Detect free variable `self`. */\\n var freeSelf = typeof self == 'object' && self && self.Object === Object && self;\\n\\n /** Used as a reference to the global object. */\\n var root = freeGlobal || freeSelf || Function('return this')();\\n\\n /** Detect free variable `exports`. */\\n var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\\n\\n /** Detect free variable `module`. */\\n var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\\n\\n /** Detect the popular CommonJS extension `module.exports`. */\\n var moduleExports = freeModule && freeModule.exports === freeExports;\\n\\n /** Detect free variable `process` from Node.js. */\\n var freeProcess = moduleExports && freeGlobal.process;\\n\\n /** Used to access faster Node.js helpers. */\\n var nodeUtil = (function() {\\n try {\\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\\n } catch (e) {}\\n }());\\n\\n /* Node.js helper references. */\\n var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer,\\n nodeIsDate = nodeUtil && nodeUtil.isDate,\\n nodeIsMap = nodeUtil && nodeUtil.isMap,\\n nodeIsRegExp = nodeUtil && nodeUtil.isRegExp,\\n nodeIsSet = nodeUtil && nodeUtil.isSet,\\n nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\\n\\n /*--------------------------------------------------------------------------*/\\n\\n /**\\n * Adds the key-value `pair` to `map`.\\n *\\n * @private\\n * @param {Object} map The map to modify.\\n * @param {Array} pair The key-value pair to add.\\n * @returns {Object} Returns `map`.\\n */\\n function addMapEntry(map, pair) {\\n // Don't return `map.set` because it's not chainable in IE 11.\\n map.set(pair[0], pair[1]);\\n return map;\\n }\\n\\n /**\\n * Adds `value` to `set`.\\n *\\n * @private\\n * @param {Object} set The set to modify.\\n * @param {*} value The value to add.\\n * @returns {Object} Returns `set`.\\n */\\n function addSetEntry(set, value) {\\n // Don't return `set.add` because it's not chainable in IE 11.\\n set.add(value);\\n return set;\\n }\\n\\n /**\\n * A faster alternative to `Function#apply`, this function invokes `func`\\n * with the `this` binding of `thisArg` and the arguments of `args`.\\n *\\n * @private\\n * @param {Function} func The function to invoke.\\n * @param {*} thisArg The `this` binding of `func`.\\n * @param {Array} args The arguments to invoke `func` with.\\n * @returns {*} Returns the result of `func`.\\n */\\n function apply(func, thisArg, args) {\\n switch (args.length) {\\n case 0: return func.call(thisArg);\\n case 1: return func.call(thisArg, args[0]);\\n case 2: return func.call(thisArg, args[0], args[1]);\\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\\n }\\n return func.apply(thisArg, args);\\n }\\n\\n /**\\n * A specialized version of `baseAggregator` for arrays.\\n *\\n * @private\\n * @param {Array} [array] The array to iterate over.\\n * @param {Function} setter The function to set `accumulator` values.\\n * @param {Function} iteratee The iteratee to transform keys.\\n * @param {Object} accumulator The initial aggregated object.\\n * @returns {Function} Returns `accumulator`.\\n */\\n function arrayAggregator(array, setter, iteratee, accumulator) {\\n var index = -1,\\n length = array == null ? 0 : array.length;\\n\\n while (++index < length) {\\n var value = array[index];\\n setter(accumulator, value, iteratee(value), array);\\n }\\n return accumulator;\\n }\\n\\n /**\\n * A specialized version of `_.forEach` for arrays without support for\\n * iteratee shorthands.\\n *\\n * @private\\n * @param {Array} [array] The array to iterate over.\\n * @param {Function} iteratee The function invoked per iteration.\\n * @returns {Array} Returns `array`.\\n */\\n function arrayEach(array, iteratee) {\\n var index = -1,\\n length = array == null ? 0 : array.length;\\n\\n while (++index < length) {\\n if (iteratee(array[index], index, array) === false) {\\n break;\\n }\\n }\\n return array;\\n }\\n\\n /**\\n * A specialized version of `_.forEachRight` for arrays without support for\\n * iteratee shorthands.\\n *\\n * @private\\n * @param {Array} [array] The array to iterate over.\\n * @param {Function} iteratee The function invoked per iteration.\\n * @returns {Array} Returns `array`.\\n */\\n function arrayEachRight(array, iteratee) {\\n var length = array == null ? 0 : array.length;\\n\\n while (length--) {\\n if (iteratee(array[length], length, array) === false) {\\n break;\\n }\\n }\\n return array;\\n }\\n\\n /**\\n * A specialized version of `_.every` for arrays without support for\\n * iteratee shorthands.\\n *\\n * @private\\n * @param {Array} [array] The array to iterate over.\\n * @param {Function} predicate The function invoked per iteration.\\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\\n * else `false`.\\n */\\n function arrayEvery(array, predicate) {\\n var index = -1,\\n length = array == null ? 0 : array.length;\\n\\n while (++index < length) {\\n if (!predicate(array[index], index, array)) {\\n return false;\\n }\\n }\\n return true;\\n }\\n\\n /**\\n * A specialized version of `_.filter` for arrays without support for\\n * iteratee shorthands.\\n *\\n * @private\\n * @param {Array} [array] The array to iterate over.\\n * @param {Function} predicate The function invoked per iteration.\\n * @returns {Array} Returns the new filtered array.\\n */\\n function arrayFilter(array, predicate) {\\n var index = -1,\\n length = array == null ? 0 : array.length,\\n resIndex = 0,\\n result = [];\\n\\n while (++index < length) {\\n var value = array[index];\\n if (predicate(value, index, array)) {\\n result[resIndex++] = value;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * A specialized version of `_.includes` for arrays without support for\\n * specifying an index to search from.\\n *\\n * @private\\n * @param {Array} [array] The array to inspect.\\n * @param {*} target The value to search for.\\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\\n */\\n function arrayIncludes(array, value) {\\n var length = array == null ? 0 : array.length;\\n return !!length && baseIndexOf(array, value, 0) > -1;\\n }\\n\\n /**\\n * This function is like `arrayIncludes` except that it accepts a comparator.\\n *\\n * @private\\n * @param {Array} [array] The array to inspect.\\n * @param {*} target The value to search for.\\n * @param {Function} comparator The comparator invoked per element.\\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\\n */\\n function arrayIncludesWith(array, value, comparator) {\\n var index = -1,\\n length = array == null ? 0 : array.length;\\n\\n while (++index < length) {\\n if (comparator(value, array[index])) {\\n return true;\\n }\\n }\\n return false;\\n }\\n\\n /**\\n * A specialized version of `_.map` for arrays without support for iteratee\\n * shorthands.\\n *\\n * @private\\n * @param {Array} [array] The array to iterate over.\\n * @param {Function} iteratee The function invoked per iteration.\\n * @returns {Array} Returns the new mapped array.\\n */\\n function arrayMap(array, iteratee) {\\n var index = -1,\\n length = array == null ? 0 : array.length,\\n result = Array(length);\\n\\n while (++index < length) {\\n result[index] = iteratee(array[index], index, array);\\n }\\n return result;\\n }\\n\\n /**\\n * Appends the elements of `values` to `array`.\\n *\\n * @private\\n * @param {Array} array The array to modify.\\n * @param {Array} values The values to append.\\n * @returns {Array} Returns `array`.\\n */\\n function arrayPush(array, values) {\\n var index = -1,\\n length = values.length,\\n offset = array.length;\\n\\n while (++index < length) {\\n array[offset + index] = values[index];\\n }\\n return array;\\n }\\n\\n /**\\n * A specialized version of `_.reduce` for arrays without support for\\n * iteratee shorthands.\\n *\\n * @private\\n * @param {Array} [array] The array to iterate over.\\n * @param {Function} iteratee The function invoked per iteration.\\n * @param {*} [accumulator] The initial value.\\n * @param {boolean} [initAccum] Specify using the first element of `array` as\\n * the initial value.\\n * @returns {*} Returns the accumulated value.\\n */\\n function arrayReduce(array, iteratee, accumulator, initAccum) {\\n var index = -1,\\n length = array == null ? 0 : array.length;\\n\\n if (initAccum && length) {\\n accumulator = array[++index];\\n }\\n while (++index < length) {\\n accumulator = iteratee(accumulator, array[index], index, array);\\n }\\n return accumulator;\\n }\\n\\n /**\\n * A specialized version of `_.reduceRight` for arrays without support for\\n * iteratee shorthands.\\n *\\n * @private\\n * @param {Array} [array] The array to iterate over.\\n * @param {Function} iteratee The function invoked per iteration.\\n * @param {*} [accumulator] The initial value.\\n * @param {boolean} [initAccum] Specify using the last element of `array` as\\n * the initial value.\\n * @returns {*} Returns the accumulated value.\\n */\\n function arrayReduceRight(array, iteratee, accumulator, initAccum) {\\n var length = array == null ? 0 : array.length;\\n if (initAccum && length) {\\n accumulator = array[--length];\\n }\\n while (length--) {\\n accumulator = iteratee(accumulator, array[length], length, array);\\n }\\n return accumulator;\\n }\\n\\n /**\\n * A specialized version of `_.some` for arrays without support for iteratee\\n * shorthands.\\n *\\n * @private\\n * @param {Array} [array] The array to iterate over.\\n * @param {Function} predicate The function invoked per iteration.\\n * @returns {boolean} Returns `true` if any element passes the predicate check,\\n * else `false`.\\n */\\n function arraySome(array, predicate) {\\n var index = -1,\\n length = array == null ? 0 : array.length;\\n\\n while (++index < length) {\\n if (predicate(array[index], index, array)) {\\n return true;\\n }\\n }\\n return false;\\n }\\n\\n /**\\n * Gets the size of an ASCII `string`.\\n *\\n * @private\\n * @param {string} string The string inspect.\\n * @returns {number} Returns the string size.\\n */\\n var asciiSize = baseProperty('length');\\n\\n /**\\n * Converts an ASCII `string` to an array.\\n *\\n * @private\\n * @param {string} string The string to convert.\\n * @returns {Array} Returns the converted array.\\n */\\n function asciiToArray(string) {\\n return string.split('');\\n }\\n\\n /**\\n * Splits an ASCII `string` into an array of its words.\\n *\\n * @private\\n * @param {string} The string to inspect.\\n * @returns {Array} Returns the words of `string`.\\n */\\n function asciiWords(string) {\\n return string.match(reAsciiWord) || [];\\n }\\n\\n /**\\n * The base implementation of methods like `_.findKey` and `_.findLastKey`,\\n * without support for iteratee shorthands, which iterates over `collection`\\n * using `eachFunc`.\\n *\\n * @private\\n * @param {Array|Object} collection The collection to inspect.\\n * @param {Function} predicate The function invoked per iteration.\\n * @param {Function} eachFunc The function to iterate over `collection`.\\n * @returns {*} Returns the found element or its key, else `undefined`.\\n */\\n function baseFindKey(collection, predicate, eachFunc) {\\n var result;\\n eachFunc(collection, function(value, key, collection) {\\n if (predicate(value, key, collection)) {\\n result = key;\\n return false;\\n }\\n });\\n return result;\\n }\\n\\n /**\\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\\n * support for iteratee shorthands.\\n *\\n * @private\\n * @param {Array} array The array to inspect.\\n * @param {Function} predicate The function invoked per iteration.\\n * @param {number} fromIndex The index to search from.\\n * @param {boolean} [fromRight] Specify iterating from right to left.\\n * @returns {number} Returns the index of the matched value, else `-1`.\\n */\\n function baseFindIndex(array, predicate, fromIndex, fromRight) {\\n var length = array.length,\\n index = fromIndex + (fromRight ? 1 : -1);\\n\\n while ((fromRight ? index-- : ++index < length)) {\\n if (predicate(array[index], index, array)) {\\n return index;\\n }\\n }\\n return -1;\\n }\\n\\n /**\\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\\n *\\n * @private\\n * @param {Array} array The array to inspect.\\n * @param {*} value The value to search for.\\n * @param {number} fromIndex The index to search from.\\n * @returns {number} Returns the index of the matched value, else `-1`.\\n */\\n function baseIndexOf(array, value, fromIndex) {\\n return value === value\\n ? strictIndexOf(array, value, fromIndex)\\n : baseFindIndex(array, baseIsNaN, fromIndex);\\n }\\n\\n /**\\n * This function is like `baseIndexOf` except that it accepts a comparator.\\n *\\n * @private\\n * @param {Array} array The array to inspect.\\n * @param {*} value The value to search for.\\n * @param {number} fromIndex The index to search from.\\n * @param {Function} comparator The comparator invoked per element.\\n * @returns {number} Returns the index of the matched value, else `-1`.\\n */\\n function baseIndexOfWith(array, value, fromIndex, comparator) {\\n var index = fromIndex - 1,\\n length = array.length;\\n\\n while (++index < length) {\\n if (comparator(array[index], value)) {\\n return index;\\n }\\n }\\n return -1;\\n }\\n\\n /**\\n * The base implementation of `_.isNaN` without support for number objects.\\n *\\n * @private\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\\n */\\n function baseIsNaN(value) {\\n return value !== value;\\n }\\n\\n /**\\n * The base implementation of `_.mean` and `_.meanBy` without support for\\n * iteratee shorthands.\\n *\\n * @private\\n * @param {Array} array The array to iterate over.\\n * @param {Function} iteratee The function invoked per iteration.\\n * @returns {number} Returns the mean.\\n */\\n function baseMean(array, iteratee) {\\n var length = array == null ? 0 : array.length;\\n return length ? (baseSum(array, iteratee) / length) : NAN;\\n }\\n\\n /**\\n * The base implementation of `_.property` without support for deep paths.\\n *\\n * @private\\n * @param {string} key The key of the property to get.\\n * @returns {Function} Returns the new accessor function.\\n */\\n function baseProperty(key) {\\n return function(object) {\\n return object == null ? undefined : object[key];\\n };\\n }\\n\\n /**\\n * The base implementation of `_.propertyOf` without support for deep paths.\\n *\\n * @private\\n * @param {Object} object The object to query.\\n * @returns {Function} Returns the new accessor function.\\n */\\n function basePropertyOf(object) {\\n return function(key) {\\n return object == null ? undefined : object[key];\\n };\\n }\\n\\n /**\\n * The base implementation of `_.reduce` and `_.reduceRight`, without support\\n * for iteratee shorthands, which iterates over `collection` using `eachFunc`.\\n *\\n * @private\\n * @param {Array|Object} collection The collection to iterate over.\\n * @param {Function} iteratee The function invoked per iteration.\\n * @param {*} accumulator The initial value.\\n * @param {boolean} initAccum Specify using the first or last element of\\n * `collection` as the initial value.\\n * @param {Function} eachFunc The function to iterate over `collection`.\\n * @returns {*} Returns the accumulated value.\\n */\\n function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {\\n eachFunc(collection, function(value, index, collection) {\\n accumulator = initAccum\\n ? (initAccum = false, value)\\n : iteratee(accumulator, value, index, collection);\\n });\\n return accumulator;\\n }\\n\\n /**\\n * The base implementation of `_.sortBy` which uses `comparer` to define the\\n * sort order of `array` and replaces criteria objects with their corresponding\\n * values.\\n *\\n * @private\\n * @param {Array} array The array to sort.\\n * @param {Function} comparer The function to define sort order.\\n * @returns {Array} Returns `array`.\\n */\\n function baseSortBy(array, comparer) {\\n var length = array.length;\\n\\n array.sort(comparer);\\n while (length--) {\\n array[length] = array[length].value;\\n }\\n return array;\\n }\\n\\n /**\\n * The base implementation of `_.sum` and `_.sumBy` without support for\\n * iteratee shorthands.\\n *\\n * @private\\n * @param {Array} array The array to iterate over.\\n * @param {Function} iteratee The function invoked per iteration.\\n * @returns {number} Returns the sum.\\n */\\n function baseSum(array, iteratee) {\\n var result,\\n index = -1,\\n length = array.length;\\n\\n while (++index < length) {\\n var current = iteratee(array[index]);\\n if (current !== undefined) {\\n result = result === undefined ? current : (result + current);\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * The base implementation of `_.times` without support for iteratee shorthands\\n * or max array length checks.\\n *\\n * @private\\n * @param {number} n The number of times to invoke `iteratee`.\\n * @param {Function} iteratee The function invoked per iteration.\\n * @returns {Array} Returns the array of results.\\n */\\n function baseTimes(n, iteratee) {\\n var index = -1,\\n result = Array(n);\\n\\n while (++index < n) {\\n result[index] = iteratee(index);\\n }\\n return result;\\n }\\n\\n /**\\n * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array\\n * of key-value pairs for `object` corresponding to the property names of `props`.\\n *\\n * @private\\n * @param {Object} object The object to query.\\n * @param {Array} props The property names to get values for.\\n * @returns {Object} Returns the key-value pairs.\\n */\\n function baseToPairs(object, props) {\\n return arrayMap(props, function(key) {\\n return [key, object[key]];\\n });\\n }\\n\\n /**\\n * The base implementation of `_.unary` without support for storing metadata.\\n *\\n * @private\\n * @param {Function} func The function to cap arguments for.\\n * @returns {Function} Returns the new capped function.\\n */\\n function baseUnary(func) {\\n return function(value) {\\n return func(value);\\n };\\n }\\n\\n /**\\n * The base implementation of `_.values` and `_.valuesIn` which creates an\\n * array of `object` property values corresponding to the property names\\n * of `props`.\\n *\\n * @private\\n * @param {Object} object The object to query.\\n * @param {Array} props The property names to get values for.\\n * @returns {Object} Returns the array of property values.\\n */\\n function baseValues(object, props) {\\n return arrayMap(props, function(key) {\\n return object[key];\\n });\\n }\\n\\n /**\\n * Checks if a `cache` value for `key` exists.\\n *\\n * @private\\n * @param {Object} cache The cache to query.\\n * @param {string} key The key of the entry to check.\\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\\n */\\n function cacheHas(cache, key) {\\n return cache.has(key);\\n }\\n\\n /**\\n * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol\\n * that is not found in the character symbols.\\n *\\n * @private\\n * @param {Array} strSymbols The string symbols to inspect.\\n * @param {Array} chrSymbols The character symbols to find.\\n * @returns {number} Returns the index of the first unmatched string symbol.\\n */\\n function charsStartIndex(strSymbols, chrSymbols) {\\n var index = -1,\\n length = strSymbols.length;\\n\\n while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\\n return index;\\n }\\n\\n /**\\n * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol\\n * that is not found in the character symbols.\\n *\\n * @private\\n * @param {Array} strSymbols The string symbols to inspect.\\n * @param {Array} chrSymbols The character symbols to find.\\n * @returns {number} Returns the index of the last unmatched string symbol.\\n */\\n function charsEndIndex(strSymbols, chrSymbols) {\\n var index = strSymbols.length;\\n\\n while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\\n return index;\\n }\\n\\n /**\\n * Gets the number of `placeholder` occurrences in `array`.\\n *\\n * @private\\n * @param {Array} array The array to inspect.\\n * @param {*} placeholder The placeholder to search for.\\n * @returns {number} Returns the placeholder count.\\n */\\n function countHolders(array, placeholder) {\\n var length = array.length,\\n result = 0;\\n\\n while (length--) {\\n if (array[length] === placeholder) {\\n ++result;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A\\n * letters to basic Latin letters.\\n *\\n * @private\\n * @param {string} letter The matched letter to deburr.\\n * @returns {string} Returns the deburred letter.\\n */\\n var deburrLetter = basePropertyOf(deburredLetters);\\n\\n /**\\n * Used by `_.escape` to convert characters to HTML entities.\\n *\\n * @private\\n * @param {string} chr The matched character to escape.\\n * @returns {string} Returns the escaped character.\\n */\\n var escapeHtmlChar = basePropertyOf(htmlEscapes);\\n\\n /**\\n * Used by `_.template` to escape characters for inclusion in compiled string literals.\\n *\\n * @private\\n * @param {string} chr The matched character to escape.\\n * @returns {string} Returns the escaped character.\\n */\\n function escapeStringChar(chr) {\\n return '\\\\\\\\' + stringEscapes[chr];\\n }\\n\\n /**\\n * Gets the value at `key` of `object`.\\n *\\n * @private\\n * @param {Object} [object] The object to query.\\n * @param {string} key The key of the property to get.\\n * @returns {*} Returns the property value.\\n */\\n function getValue(object, key) {\\n return object == null ? undefined : object[key];\\n }\\n\\n /**\\n * Checks if `string` contains Unicode symbols.\\n *\\n * @private\\n * @param {string} string The string to inspect.\\n * @returns {boolean} Returns `true` if a symbol is found, else `false`.\\n */\\n function hasUnicode(string) {\\n return reHasUnicode.test(string);\\n }\\n\\n /**\\n * Checks if `string` contains a word composed of Unicode symbols.\\n *\\n * @private\\n * @param {string} string The string to inspect.\\n * @returns {boolean} Returns `true` if a word is found, else `false`.\\n */\\n function hasUnicodeWord(string) {\\n return reHasUnicodeWord.test(string);\\n }\\n\\n /**\\n * Converts `iterator` to an array.\\n *\\n * @private\\n * @param {Object} iterator The iterator to convert.\\n * @returns {Array} Returns the converted array.\\n */\\n function iteratorToArray(iterator) {\\n var data,\\n result = [];\\n\\n while (!(data = iterator.next()).done) {\\n result.push(data.value);\\n }\\n return result;\\n }\\n\\n /**\\n * Converts `map` to its key-value pairs.\\n *\\n * @private\\n * @param {Object} map The map to convert.\\n * @returns {Array} Returns the key-value pairs.\\n */\\n function mapToArray(map) {\\n var index = -1,\\n result = Array(map.size);\\n\\n map.forEach(function(value, key) {\\n result[++index] = [key, value];\\n });\\n return result;\\n }\\n\\n /**\\n * Creates a unary function that invokes `func` with its argument transformed.\\n *\\n * @private\\n * @param {Function} func The function to wrap.\\n * @param {Function} transform The argument transform.\\n * @returns {Function} Returns the new function.\\n */\\n function overArg(func, transform) {\\n return function(arg) {\\n return func(transform(arg));\\n };\\n }\\n\\n /**\\n * Replaces all `placeholder` elements in `array` with an internal placeholder\\n * and returns an array of their indexes.\\n *\\n * @private\\n * @param {Array} array The array to modify.\\n * @param {*} placeholder The placeholder to replace.\\n * @returns {Array} Returns the new array of placeholder indexes.\\n */\\n function replaceHolders(array, placeholder) {\\n var index = -1,\\n length = array.length,\\n resIndex = 0,\\n result = [];\\n\\n while (++index < length) {\\n var value = array[index];\\n if (value === placeholder || value === PLACEHOLDER) {\\n array[index] = PLACEHOLDER;\\n result[resIndex++] = index;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * Converts `set` to an array of its values.\\n *\\n * @private\\n * @param {Object} set The set to convert.\\n * @returns {Array} Returns the values.\\n */\\n function setToArray(set) {\\n var index = -1,\\n result = Array(set.size);\\n\\n set.forEach(function(value) {\\n result[++index] = value;\\n });\\n return result;\\n }\\n\\n /**\\n * Converts `set` to its value-value pairs.\\n *\\n * @private\\n * @param {Object} set The set to convert.\\n * @returns {Array} Returns the value-value pairs.\\n */\\n function setToPairs(set) {\\n var index = -1,\\n result = Array(set.size);\\n\\n set.forEach(function(value) {\\n result[++index] = [value, value];\\n });\\n return result;\\n }\\n\\n /**\\n * A specialized version of `_.indexOf` which performs strict equality\\n * comparisons of values, i.e. `===`.\\n *\\n * @private\\n * @param {Array} array The array to inspect.\\n * @param {*} value The value to search for.\\n * @param {number} fromIndex The index to search from.\\n * @returns {number} Returns the index of the matched value, else `-1`.\\n */\\n function strictIndexOf(array, value, fromIndex) {\\n var index = fromIndex - 1,\\n length = array.length;\\n\\n while (++index < length) {\\n if (array[index] === value) {\\n return index;\\n }\\n }\\n return -1;\\n }\\n\\n /**\\n * A specialized version of `_.lastIndexOf` which performs strict equality\\n * comparisons of values, i.e. `===`.\\n *\\n * @private\\n * @param {Array} array The array to inspect.\\n * @param {*} value The value to search for.\\n * @param {number} fromIndex The index to search from.\\n * @returns {number} Returns the index of the matched value, else `-1`.\\n */\\n function strictLastIndexOf(array, value, fromIndex) {\\n var index = fromIndex + 1;\\n while (index--) {\\n if (array[index] === value) {\\n return index;\\n }\\n }\\n return index;\\n }\\n\\n /**\\n * Gets the number of symbols in `string`.\\n *\\n * @private\\n * @param {string} string The string to inspect.\\n * @returns {number} Returns the string size.\\n */\\n function stringSize(string) {\\n return hasUnicode(string)\\n ? unicodeSize(string)\\n : asciiSize(string);\\n }\\n\\n /**\\n * Converts `string` to an array.\\n *\\n * @private\\n * @param {string} string The string to convert.\\n * @returns {Array} Returns the converted array.\\n */\\n function stringToArray(string) {\\n return hasUnicode(string)\\n ? unicodeToArray(string)\\n : asciiToArray(string);\\n }\\n\\n /**\\n * Used by `_.unescape` to convert HTML entities to characters.\\n *\\n * @private\\n * @param {string} chr The matched character to unescape.\\n * @returns {string} Returns the unescaped character.\\n */\\n var unescapeHtmlChar = basePropertyOf(htmlUnescapes);\\n\\n /**\\n * Gets the size of a Unicode `string`.\\n *\\n * @private\\n * @param {string} string The string inspect.\\n * @returns {number} Returns the string size.\\n */\\n function unicodeSize(string) {\\n var result = reUnicode.lastIndex = 0;\\n while (reUnicode.test(string)) {\\n ++result;\\n }\\n return result;\\n }\\n\\n /**\\n * Converts a Unicode `string` to an array.\\n *\\n * @private\\n * @param {string} string The string to convert.\\n * @returns {Array} Returns the converted array.\\n */\\n function unicodeToArray(string) {\\n return string.match(reUnicode) || [];\\n }\\n\\n /**\\n * Splits a Unicode `string` into an array of its words.\\n *\\n * @private\\n * @param {string} The string to inspect.\\n * @returns {Array} Returns the words of `string`.\\n */\\n function unicodeWords(string) {\\n return string.match(reUnicodeWord) || [];\\n }\\n\\n /*--------------------------------------------------------------------------*/\\n\\n /**\\n * Create a new pristine `lodash` function using the `context` object.\\n *\\n * @static\\n * @memberOf _\\n * @since 1.1.0\\n * @category Util\\n * @param {Object} [context=root] The context object.\\n * @returns {Function} Returns a new `lodash` function.\\n * @example\\n *\\n * _.mixin({ 'foo': _.constant('foo') });\\n *\\n * var lodash = _.runInContext();\\n * lodash.mixin({ 'bar': lodash.constant('bar') });\\n *\\n * _.isFunction(_.foo);\\n * // => true\\n * _.isFunction(_.bar);\\n * // => false\\n *\\n * lodash.isFunction(lodash.foo);\\n * // => false\\n * lodash.isFunction(lodash.bar);\\n * // => true\\n *\\n * // Create a suped-up `defer` in Node.js.\\n * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;\\n */\\n var runInContext = (function runInContext(context) {\\n context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));\\n\\n /** Built-in constructor references. */\\n var Array = context.Array,\\n Date = context.Date,\\n Error = context.Error,\\n Function = context.Function,\\n Math = context.Math,\\n Object = context.Object,\\n RegExp = context.RegExp,\\n String = context.String,\\n TypeError = context.TypeError;\\n\\n /** Used for built-in method references. */\\n var arrayProto = Array.prototype,\\n funcProto = Function.prototype,\\n objectProto = Object.prototype;\\n\\n /** Used to detect overreaching core-js shims. */\\n var coreJsData = context['__core-js_shared__'];\\n\\n /** Used to resolve the decompiled source of functions. */\\n var funcToString = funcProto.toString;\\n\\n /** Used to check objects for own properties. */\\n var hasOwnProperty = objectProto.hasOwnProperty;\\n\\n /** Used to generate unique IDs. */\\n var idCounter = 0;\\n\\n /** Used to detect methods masquerading as native. */\\n var maskSrcKey = (function() {\\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\\n return uid ? ('Symbol(src)_1.' + uid) : '';\\n }());\\n\\n /**\\n * Used to resolve the\\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\\n * of values.\\n */\\n var nativeObjectToString = objectProto.toString;\\n\\n /** Used to infer the `Object` constructor. */\\n var objectCtorString = funcToString.call(Object);\\n\\n /** Used to restore the original `_` reference in `_.noConflict`. */\\n var oldDash = root._;\\n\\n /** Used to detect if a method is native. */\\n var reIsNative = RegExp('^' +\\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\\\\\$&')\\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\\\\\\\()| for .+?(?=\\\\\\\\\\\\])/g, '$1.*?') + '$'\\n );\\n\\n /** Built-in value references. */\\n var Buffer = moduleExports ? context.Buffer : undefined,\\n Symbol = context.Symbol,\\n Uint8Array = context.Uint8Array,\\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,\\n getPrototype = overArg(Object.getPrototypeOf, Object),\\n objectCreate = Object.create,\\n propertyIsEnumerable = objectProto.propertyIsEnumerable,\\n splice = arrayProto.splice,\\n spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined,\\n symIterator = Symbol ? Symbol.iterator : undefined,\\n symToStringTag = Symbol ? Symbol.toStringTag : undefined;\\n\\n var defineProperty = (function() {\\n try {\\n var func = getNative(Object, 'defineProperty');\\n func({}, '', {});\\n return func;\\n } catch (e) {}\\n }());\\n\\n /** Mocked built-ins. */\\n var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout,\\n ctxNow = Date && Date.now !== root.Date.now && Date.now,\\n ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;\\n\\n /* Built-in method references for those with the same name as other `lodash` methods. */\\n var nativeCeil = Math.ceil,\\n nativeFloor = Math.floor,\\n nativeGetSymbols = Object.getOwnPropertySymbols,\\n nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,\\n nativeIsFinite = context.isFinite,\\n nativeJoin = arrayProto.join,\\n nativeKeys = overArg(Object.keys, Object),\\n nativeMax = Math.max,\\n nativeMin = Math.min,\\n nativeNow = Date.now,\\n nativeParseInt = context.parseInt,\\n nativeRandom = Math.random,\\n nativeReverse = arrayProto.reverse;\\n\\n /* Built-in method references that are verified to be native. */\\n var DataView = getNative(context, 'DataView'),\\n Map = getNative(context, 'Map'),\\n Promise = getNative(context, 'Promise'),\\n Set = getNative(context, 'Set'),\\n WeakMap = getNative(context, 'WeakMap'),\\n nativeCreate = getNative(Object, 'create');\\n\\n /** Used to store function metadata. */\\n var metaMap = WeakMap && new WeakMap;\\n\\n /** Used to lookup unminified function names. */\\n var realNames = {};\\n\\n /** Used to detect maps, sets, and weakmaps. */\\n var dataViewCtorString = toSource(DataView),\\n mapCtorString = toSource(Map),\\n promiseCtorString = toSource(Promise),\\n setCtorString = toSource(Set),\\n weakMapCtorString = toSource(WeakMap);\\n\\n /** Used to convert symbols to primitives and strings. */\\n var symbolProto = Symbol ? Symbol.prototype : undefined,\\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined,\\n symbolToString = symbolProto ? symbolProto.toString : undefined;\\n\\n /*------------------------------------------------------------------------*/\\n\\n /**\\n * Creates a `lodash` object which wraps `value` to enable implicit method\\n * chain sequences. Methods that operate on and return arrays, collections,\\n * and functions can be chained together. Methods that retrieve a single value\\n * or may return a primitive value will automatically end the chain sequence\\n * and return the unwrapped value. Otherwise, the value must be unwrapped\\n * with `_#value`.\\n *\\n * Explicit chain sequences, which must be unwrapped with `_#value`, may be\\n * enabled using `_.chain`.\\n *\\n * The execution of chained methods is lazy, that is, it's deferred until\\n * `_#value` is implicitly or explicitly called.\\n *\\n * Lazy evaluation allows several methods to support shortcut fusion.\\n * Shortcut fusion is an optimization to merge iteratee calls; this avoids\\n * the creation of intermediate arrays and can greatly reduce the number of\\n * iteratee executions. Sections of a chain sequence qualify for shortcut\\n * fusion if the section is applied to an array and iteratees accept only\\n * one argument. The heuristic for whether a section qualifies for shortcut\\n * fusion is subject to change.\\n *\\n * Chaining is supported in custom builds as long as the `_#value` method is\\n * directly or indirectly included in the build.\\n *\\n * In addition to lodash methods, wrappers have `Array` and `String` methods.\\n *\\n * The wrapper `Array` methods are:\\n * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`\\n *\\n * The wrapper `String` methods are:\\n * `replace` and `split`\\n *\\n * The wrapper methods that support shortcut fusion are:\\n * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,\\n * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,\\n * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`\\n *\\n * The chainable wrapper methods are:\\n * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,\\n * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,\\n * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,\\n * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,\\n * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,\\n * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,\\n * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,\\n * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,\\n * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,\\n * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,\\n * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,\\n * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,\\n * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,\\n * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,\\n * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,\\n * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,\\n * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,\\n * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,\\n * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,\\n * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,\\n * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,\\n * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,\\n * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,\\n * `zipObject`, `zipObjectDeep`, and `zipWith`\\n *\\n * The wrapper methods that are **not** chainable by default are:\\n * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,\\n * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,\\n * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,\\n * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,\\n * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,\\n * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,\\n * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,\\n * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,\\n * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,\\n * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,\\n * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,\\n * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,\\n * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,\\n * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,\\n * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,\\n * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,\\n * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,\\n * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,\\n * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,\\n * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,\\n * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,\\n * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,\\n * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,\\n * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,\\n * `upperFirst`, `value`, and `words`\\n *\\n * @name _\\n * @constructor\\n * @category Seq\\n * @param {*} value The value to wrap in a `lodash` instance.\\n * @returns {Object} Returns the new `lodash` wrapper instance.\\n * @example\\n *\\n * function square(n) {\\n * return n * n;\\n * }\\n *\\n * var wrapped = _([1, 2, 3]);\\n *\\n * // Returns an unwrapped value.\\n * wrapped.reduce(_.add);\\n * // => 6\\n *\\n * // Returns a wrapped value.\\n * var squares = wrapped.map(square);\\n *\\n * _.isArray(squares);\\n * // => false\\n *\\n * _.isArray(squares.value());\\n * // => true\\n */\\n function lodash(value) {\\n if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {\\n if (value instanceof LodashWrapper) {\\n return value;\\n }\\n if (hasOwnProperty.call(value, '__wrapped__')) {\\n return wrapperClone(value);\\n }\\n }\\n return new LodashWrapper(value);\\n }\\n\\n /**\\n * The base implementation of `_.create` without support for assigning\\n * properties to the created object.\\n *\\n * @private\\n * @param {Object} proto The object to inherit from.\\n * @returns {Object} Returns the new object.\\n */\\n var baseCreate = (function() {\\n function object() {}\\n return function(proto) {\\n if (!isObject(proto)) {\\n return {};\\n }\\n if (objectCreate) {\\n return objectCreate(proto);\\n }\\n object.prototype = proto;\\n var result = new object;\\n object.prototype = undefined;\\n return result;\\n };\\n }());\\n\\n /**\\n * The function whose prototype chain sequence wrappers inherit from.\\n *\\n * @private\\n */\\n function baseLodash() {\\n // No operation performed.\\n }\\n\\n /**\\n * The base constructor for creating `lodash` wrapper objects.\\n *\\n * @private\\n * @param {*} value The value to wrap.\\n * @param {boolean} [chainAll] Enable explicit method chain sequences.\\n */\\n function LodashWrapper(value, chainAll) {\\n this.__wrapped__ = value;\\n this.__actions__ = [];\\n this.__chain__ = !!chainAll;\\n this.__index__ = 0;\\n this.__values__ = undefined;\\n }\\n\\n /**\\n * By default, the template delimiters used by lodash are like those in\\n * embedded Ruby (ERB) as well as ES2015 template strings. Change the\\n * following template settings to use alternative delimiters.\\n *\\n * @static\\n * @memberOf _\\n * @type {Object}\\n */\\n lodash.templateSettings = {\\n\\n /**\\n * Used to detect `data` property values to be HTML-escaped.\\n *\\n * @memberOf _.templateSettings\\n * @type {RegExp}\\n */\\n 'escape': reEscape,\\n\\n /**\\n * Used to detect code to be evaluated.\\n *\\n * @memberOf _.templateSettings\\n * @type {RegExp}\\n */\\n 'evaluate': reEvaluate,\\n\\n /**\\n * Used to detect `data` property values to inject.\\n *\\n * @memberOf _.templateSettings\\n * @type {RegExp}\\n */\\n 'interpolate': reInterpolate,\\n\\n /**\\n * Used to reference the data object in the template text.\\n *\\n * @memberOf _.templateSettings\\n * @type {string}\\n */\\n 'variable': '',\\n\\n /**\\n * Used to import variables into the compiled template.\\n *\\n * @memberOf _.templateSettings\\n * @type {Object}\\n */\\n 'imports': {\\n\\n /**\\n * A reference to the `lodash` function.\\n *\\n * @memberOf _.templateSettings.imports\\n * @type {Function}\\n */\\n '_': lodash\\n }\\n };\\n\\n // Ensure wrappers are instances of `baseLodash`.\\n lodash.prototype = baseLodash.prototype;\\n lodash.prototype.constructor = lodash;\\n\\n LodashWrapper.prototype = baseCreate(baseLodash.prototype);\\n LodashWrapper.prototype.constructor = LodashWrapper;\\n\\n /*------------------------------------------------------------------------*/\\n\\n /**\\n * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.\\n *\\n * @private\\n * @constructor\\n * @param {*} value The value to wrap.\\n */\\n function LazyWrapper(value) {\\n this.__wrapped__ = value;\\n this.__actions__ = [];\\n this.__dir__ = 1;\\n this.__filtered__ = false;\\n this.__iteratees__ = [];\\n this.__takeCount__ = MAX_ARRAY_LENGTH;\\n this.__views__ = [];\\n }\\n\\n /**\\n * Creates a clone of the lazy wrapper object.\\n *\\n * @private\\n * @name clone\\n * @memberOf LazyWrapper\\n * @returns {Object} Returns the cloned `LazyWrapper` object.\\n */\\n function lazyClone() {\\n var result = new LazyWrapper(this.__wrapped__);\\n result.__actions__ = copyArray(this.__actions__);\\n result.__dir__ = this.__dir__;\\n result.__filtered__ = this.__filtered__;\\n result.__iteratees__ = copyArray(this.__iteratees__);\\n result.__takeCount__ = this.__takeCount__;\\n result.__views__ = copyArray(this.__views__);\\n return result;\\n }\\n\\n /**\\n * Reverses the direction of lazy iteration.\\n *\\n * @private\\n * @name reverse\\n * @memberOf LazyWrapper\\n * @returns {Object} Returns the new reversed `LazyWrapper` object.\\n */\\n function lazyReverse() {\\n if (this.__filtered__) {\\n var result = new LazyWrapper(this);\\n result.__dir__ = -1;\\n result.__filtered__ = true;\\n } else {\\n result = this.clone();\\n result.__dir__ *= -1;\\n }\\n return result;\\n }\\n\\n /**\\n * Extracts the unwrapped value from its lazy wrapper.\\n *\\n * @private\\n * @name value\\n * @memberOf LazyWrapper\\n * @returns {*} Returns the unwrapped value.\\n */\\n function lazyValue() {\\n var array = this.__wrapped__.value(),\\n dir = this.__dir__,\\n isArr = isArray(array),\\n isRight = dir < 0,\\n arrLength = isArr ? array.length : 0,\\n view = getView(0, arrLength, this.__views__),\\n start = view.start,\\n end = view.end,\\n length = end - start,\\n index = isRight ? end : (start - 1),\\n iteratees = this.__iteratees__,\\n iterLength = iteratees.length,\\n resIndex = 0,\\n takeCount = nativeMin(length, this.__takeCount__);\\n\\n if (!isArr || (!isRight && arrLength == length && takeCount == length)) {\\n return baseWrapperValue(array, this.__actions__);\\n }\\n var result = [];\\n\\n outer:\\n while (length-- && resIndex < takeCount) {\\n index += dir;\\n\\n var iterIndex = -1,\\n value = array[index];\\n\\n while (++iterIndex < iterLength) {\\n var data = iteratees[iterIndex],\\n iteratee = data.iteratee,\\n type = data.type,\\n computed = iteratee(value);\\n\\n if (type == LAZY_MAP_FLAG) {\\n value = computed;\\n } else if (!computed) {\\n if (type == LAZY_FILTER_FLAG) {\\n continue outer;\\n } else {\\n break outer;\\n }\\n }\\n }\\n result[resIndex++] = value;\\n }\\n return result;\\n }\\n\\n // Ensure `LazyWrapper` is an instance of `baseLodash`.\\n LazyWrapper.prototype = baseCreate(baseLodash.prototype);\\n LazyWrapper.prototype.constructor = LazyWrapper;\\n\\n /*------------------------------------------------------------------------*/\\n\\n /**\\n * Creates a hash object.\\n *\\n * @private\\n * @constructor\\n * @param {Array} [entries] The key-value pairs to cache.\\n */\\n function Hash(entries) {\\n var index = -1,\\n length = entries == null ? 0 : entries.length;\\n\\n this.clear();\\n while (++index < length) {\\n var entry = entries[index];\\n this.set(entry[0], entry[1]);\\n }\\n }\\n\\n /**\\n * Removes all key-value entries from the hash.\\n *\\n * @private\\n * @name clear\\n * @memberOf Hash\\n */\\n function hashClear() {\\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\\n this.size = 0;\\n }\\n\\n /**\\n * Removes `key` and its value from the hash.\\n *\\n * @private\\n * @name delete\\n * @memberOf Hash\\n * @param {Object} hash The hash to modify.\\n * @param {string} key The key of the value to remove.\\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\\n */\\n function hashDelete(key) {\\n var result = this.has(key) && delete this.__data__[key];\\n this.size -= result ? 1 : 0;\\n return result;\\n }\\n\\n /**\\n * Gets the hash value for `key`.\\n *\\n * @private\\n * @name get\\n * @memberOf Hash\\n * @param {string} key The key of the value to get.\\n * @returns {*} Returns the entry value.\\n */\\n function hashGet(key) {\\n var data = this.__data__;\\n if (nativeCreate) {\\n var result = data[key];\\n return result === HASH_UNDEFINED ? undefined : result;\\n }\\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\\n }\\n\\n /**\\n * Checks if a hash value for `key` exists.\\n *\\n * @private\\n * @name has\\n * @memberOf Hash\\n * @param {string} key The key of the entry to check.\\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\\n */\\n function hashHas(key) {\\n var data = this.__data__;\\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\\n }\\n\\n /**\\n * Sets the hash `key` to `value`.\\n *\\n * @private\\n * @name set\\n * @memberOf Hash\\n * @param {string} key The key of the value to set.\\n * @param {*} value The value to set.\\n * @returns {Object} Returns the hash instance.\\n */\\n function hashSet(key, value) {\\n var data = this.__data__;\\n this.size += this.has(key) ? 0 : 1;\\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\\n return this;\\n }\\n\\n // Add methods to `Hash`.\\n Hash.prototype.clear = hashClear;\\n Hash.prototype['delete'] = hashDelete;\\n Hash.prototype.get = hashGet;\\n Hash.prototype.has = hashHas;\\n Hash.prototype.set = hashSet;\\n\\n /*------------------------------------------------------------------------*/\\n\\n /**\\n * Creates an list cache object.\\n *\\n * @private\\n * @constructor\\n * @param {Array} [entries] The key-value pairs to cache.\\n */\\n function ListCache(entries) {\\n var index = -1,\\n length = entries == null ? 0 : entries.length;\\n\\n this.clear();\\n while (++index < length) {\\n var entry = entries[index];\\n this.set(entry[0], entry[1]);\\n }\\n }\\n\\n /**\\n * Removes all key-value entries from the list cache.\\n *\\n * @private\\n * @name clear\\n * @memberOf ListCache\\n */\\n function listCacheClear() {\\n this.__data__ = [];\\n this.size = 0;\\n }\\n\\n /**\\n * Removes `key` and its value from the list cache.\\n *\\n * @private\\n * @name delete\\n * @memberOf ListCache\\n * @param {string} key The key of the value to remove.\\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\\n */\\n function listCacheDelete(key) {\\n var data = this.__data__,\\n index = assocIndexOf(data, key);\\n\\n if (index < 0) {\\n return false;\\n }\\n var lastIndex = data.length - 1;\\n if (index == lastIndex) {\\n data.pop();\\n } else {\\n splice.call(data, index, 1);\\n }\\n --this.size;\\n return true;\\n }\\n\\n /**\\n * Gets the list cache value for `key`.\\n *\\n * @private\\n * @name get\\n * @memberOf ListCache\\n * @param {string} key The key of the value to get.\\n * @returns {*} Returns the entry value.\\n */\\n function listCacheGet(key) {\\n var data = this.__data__,\\n index = assocIndexOf(data, key);\\n\\n return index < 0 ? undefined : data[index][1];\\n }\\n\\n /**\\n * Checks if a list cache value for `key` exists.\\n *\\n * @private\\n * @name has\\n * @memberOf ListCache\\n * @param {string} key The key of the entry to check.\\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\\n */\\n function listCacheHas(key) {\\n return assocIndexOf(this.__data__, key) > -1;\\n }\\n\\n /**\\n * Sets the list cache `key` to `value`.\\n *\\n * @private\\n * @name set\\n * @memberOf ListCache\\n * @param {string} key The key of the value to set.\\n * @param {*} value The value to set.\\n * @returns {Object} Returns the list cache instance.\\n */\\n function listCacheSet(key, value) {\\n var data = this.__data__,\\n index = assocIndexOf(data, key);\\n\\n if (index < 0) {\\n ++this.size;\\n data.push([key, value]);\\n } else {\\n data[index][1] = value;\\n }\\n return this;\\n }\\n\\n // Add methods to `ListCache`.\\n ListCache.prototype.clear = listCacheClear;\\n ListCache.prototype['delete'] = listCacheDelete;\\n ListCache.prototype.get = listCacheGet;\\n ListCache.prototype.has = listCacheHas;\\n ListCache.prototype.set = listCacheSet;\\n\\n /*------------------------------------------------------------------------*/\\n\\n /**\\n * Creates a map cache object to store key-value pairs.\\n *\\n * @private\\n * @constructor\\n * @param {Array} [entries] The key-value pairs to cache.\\n */\\n function MapCache(entries) {\\n var index = -1,\\n length = entries == null ? 0 : entries.length;\\n\\n this.clear();\\n while (++index < length) {\\n var entry = entries[index];\\n this.set(entry[0], entry[1]);\\n }\\n }\\n\\n /**\\n * Removes all key-value entries from the map.\\n *\\n * @private\\n * @name clear\\n * @memberOf MapCache\\n */\\n function mapCacheClear() {\\n this.size = 0;\\n this.__data__ = {\\n 'hash': new Hash,\\n 'map': new (Map || ListCache),\\n 'string': new Hash\\n };\\n }\\n\\n /**\\n * Removes `key` and its value from the map.\\n *\\n * @private\\n * @name delete\\n * @memberOf MapCache\\n * @param {string} key The key of the value to remove.\\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\\n */\\n function mapCacheDelete(key) {\\n var result = getMapData(this, key)['delete'](key);\\n this.size -= result ? 1 : 0;\\n return result;\\n }\\n\\n /**\\n * Gets the map value for `key`.\\n *\\n * @private\\n * @name get\\n * @memberOf MapCache\\n * @param {string} key The key of the value to get.\\n * @returns {*} Returns the entry value.\\n */\\n function mapCacheGet(key) {\\n return getMapData(this, key).get(key);\\n }\\n\\n /**\\n * Checks if a map value for `key` exists.\\n *\\n * @private\\n * @name has\\n * @memberOf MapCache\\n * @param {string} key The key of the entry to check.\\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\\n */\\n function mapCacheHas(key) {\\n return getMapData(this, key).has(key);\\n }\\n\\n /**\\n * Sets the map `key` to `value`.\\n *\\n * @private\\n * @name set\\n * @memberOf MapCache\\n * @param {string} key The key of the value to set.\\n * @param {*} value The value to set.\\n * @returns {Object} Returns the map cache instance.\\n */\\n function mapCacheSet(key, value) {\\n var data = getMapData(this, key),\\n size = data.size;\\n\\n data.set(key, value);\\n this.size += data.size == size ? 0 : 1;\\n return this;\\n }\\n\\n // Add methods to `MapCache`.\\n MapCache.prototype.clear = mapCacheClear;\\n MapCache.prototype['delete'] = mapCacheDelete;\\n MapCache.prototype.get = mapCacheGet;\\n MapCache.prototype.has = mapCacheHas;\\n MapCache.prototype.set = mapCacheSet;\\n\\n /*------------------------------------------------------------------------*/\\n\\n /**\\n *\\n * Creates an array cache object to store unique values.\\n *\\n * @private\\n * @constructor\\n * @param {Array} [values] The values to cache.\\n */\\n function SetCache(values) {\\n var index = -1,\\n length = values == null ? 0 : values.length;\\n\\n this.__data__ = new MapCache;\\n while (++index < length) {\\n this.add(values[index]);\\n }\\n }\\n\\n /**\\n * Adds `value` to the array cache.\\n *\\n * @private\\n * @name add\\n * @memberOf SetCache\\n * @alias push\\n * @param {*} value The value to cache.\\n * @returns {Object} Returns the cache instance.\\n */\\n function setCacheAdd(value) {\\n this.__data__.set(value, HASH_UNDEFINED);\\n return this;\\n }\\n\\n /**\\n * Checks if `value` is in the array cache.\\n *\\n * @private\\n * @name has\\n * @memberOf SetCache\\n * @param {*} value The value to search for.\\n * @returns {number} Returns `true` if `value` is found, else `false`.\\n */\\n function setCacheHas(value) {\\n return this.__data__.has(value);\\n }\\n\\n // Add methods to `SetCache`.\\n SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\\n SetCache.prototype.has = setCacheHas;\\n\\n /*------------------------------------------------------------------------*/\\n\\n /**\\n * Creates a stack cache object to store key-value pairs.\\n *\\n * @private\\n * @constructor\\n * @param {Array} [entries] The key-value pairs to cache.\\n */\\n function Stack(entries) {\\n var data = this.__data__ = new ListCache(entries);\\n this.size = data.size;\\n }\\n\\n /**\\n * Removes all key-value entries from the stack.\\n *\\n * @private\\n * @name clear\\n * @memberOf Stack\\n */\\n function stackClear() {\\n this.__data__ = new ListCache;\\n this.size = 0;\\n }\\n\\n /**\\n * Removes `key` and its value from the stack.\\n *\\n * @private\\n * @name delete\\n * @memberOf Stack\\n * @param {string} key The key of the value to remove.\\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\\n */\\n function stackDelete(key) {\\n var data = this.__data__,\\n result = data['delete'](key);\\n\\n this.size = data.size;\\n return result;\\n }\\n\\n /**\\n * Gets the stack value for `key`.\\n *\\n * @private\\n * @name get\\n * @memberOf Stack\\n * @param {string} key The key of the value to get.\\n * @returns {*} Returns the entry value.\\n */\\n function stackGet(key) {\\n return this.__data__.get(key);\\n }\\n\\n /**\\n * Checks if a stack value for `key` exists.\\n *\\n * @private\\n * @name has\\n * @memberOf Stack\\n * @param {string} key The key of the entry to check.\\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\\n */\\n function stackHas(key) {\\n return this.__data__.has(key);\\n }\\n\\n /**\\n * Sets the stack `key` to `value`.\\n *\\n * @private\\n * @name set\\n * @memberOf Stack\\n * @param {string} key The key of the value to set.\\n * @param {*} value The value to set.\\n * @returns {Object} Returns the stack cache instance.\\n */\\n function stackSet(key, value) {\\n var data = this.__data__;\\n if (data instanceof ListCache) {\\n var pairs = data.__data__;\\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\\n pairs.push([key, value]);\\n this.size = ++data.size;\\n return this;\\n }\\n data = this.__data__ = new MapCache(pairs);\\n }\\n data.set(key, value);\\n this.size = data.size;\\n return this;\\n }\\n\\n // Add methods to `Stack`.\\n Stack.prototype.clear = stackClear;\\n Stack.prototype['delete'] = stackDelete;\\n Stack.prototype.get = stackGet;\\n Stack.prototype.has = stackHas;\\n Stack.prototype.set = stackSet;\\n\\n /*------------------------------------------------------------------------*/\\n\\n /**\\n * Creates an array of the enumerable property names of the array-like `value`.\\n *\\n * @private\\n * @param {*} value The value to query.\\n * @param {boolean} inherited Specify returning inherited property names.\\n * @returns {Array} Returns the array of property names.\\n */\\n function arrayLikeKeys(value, inherited) {\\n var isArr = isArray(value),\\n isArg = !isArr && isArguments(value),\\n isBuff = !isArr && !isArg && isBuffer(value),\\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\\n skipIndexes = isArr || isArg || isBuff || isType,\\n result = skipIndexes ? baseTimes(value.length, String) : [],\\n length = result.length;\\n\\n for (var key in value) {\\n if ((inherited || hasOwnProperty.call(value, key)) &&\\n !(skipIndexes && (\\n // Safari 9 has enumerable `arguments.length` in strict mode.\\n key == 'length' ||\\n // Node.js 0.10 has enumerable non-index properties on buffers.\\n (isBuff && (key == 'offset' || key == 'parent')) ||\\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\\n // Skip index properties.\\n isIndex(key, length)\\n ))) {\\n result.push(key);\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * A specialized version of `_.sample` for arrays.\\n *\\n * @private\\n * @param {Array} array The array to sample.\\n * @returns {*} Returns the random element.\\n */\\n function arraySample(array) {\\n var length = array.length;\\n return length ? array[baseRandom(0, length - 1)] : undefined;\\n }\\n\\n /**\\n * A specialized version of `_.sampleSize` for arrays.\\n *\\n * @private\\n * @param {Array} array The array to sample.\\n * @param {number} n The number of elements to sample.\\n * @returns {Array} Returns the random elements.\\n */\\n function arraySampleSize(array, n) {\\n return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));\\n }\\n\\n /**\\n * A specialized version of `_.shuffle` for arrays.\\n *\\n * @private\\n * @param {Array} array The array to shuffle.\\n * @returns {Array} Returns the new shuffled array.\\n */\\n function arrayShuffle(array) {\\n return shuffleSelf(copyArray(array));\\n }\\n\\n /**\\n * This function is like `assignValue` except that it doesn't assign\\n * `undefined` values.\\n *\\n * @private\\n * @param {Object} object The object to modify.\\n * @param {string} key The key of the property to assign.\\n * @param {*} value The value to assign.\\n */\\n function assignMergeValue(object, key, value) {\\n if ((value !== undefined && !eq(object[key], value)) ||\\n (value === undefined && !(key in object))) {\\n baseAssignValue(object, key, value);\\n }\\n }\\n\\n /**\\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\\n * for equality comparisons.\\n *\\n * @private\\n * @param {Object} object The object to modify.\\n * @param {string} key The key of the property to assign.\\n * @param {*} value The value to assign.\\n */\\n function assignValue(object, key, value) {\\n var objValue = object[key];\\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\\n (value === undefined && !(key in object))) {\\n baseAssignValue(object, key, value);\\n }\\n }\\n\\n /**\\n * Gets the index at which the `key` is found in `array` of key-value pairs.\\n *\\n * @private\\n * @param {Array} array The array to inspect.\\n * @param {*} key The key to search for.\\n * @returns {number} Returns the index of the matched value, else `-1`.\\n */\\n function assocIndexOf(array, key) {\\n var length = array.length;\\n while (length--) {\\n if (eq(array[length][0], key)) {\\n return length;\\n }\\n }\\n return -1;\\n }\\n\\n /**\\n * Aggregates elements of `collection` on `accumulator` with keys transformed\\n * by `iteratee` and values set by `setter`.\\n *\\n * @private\\n * @param {Array|Object} collection The collection to iterate over.\\n * @param {Function} setter The function to set `accumulator` values.\\n * @param {Function} iteratee The iteratee to transform keys.\\n * @param {Object} accumulator The initial aggregated object.\\n * @returns {Function} Returns `accumulator`.\\n */\\n function baseAggregator(collection, setter, iteratee, accumulator) {\\n baseEach(collection, function(value, key, collection) {\\n setter(accumulator, value, iteratee(value), collection);\\n });\\n return accumulator;\\n }\\n\\n /**\\n * The base implementation of `_.assign` without support for multiple sources\\n * or `customizer` functions.\\n *\\n * @private\\n * @param {Object} object The destination object.\\n * @param {Object} source The source object.\\n * @returns {Object} Returns `object`.\\n */\\n function baseAssign(object, source) {\\n return object && copyObject(source, keys(source), object);\\n }\\n\\n /**\\n * The base implementation of `_.assignIn` without support for multiple sources\\n * or `customizer` functions.\\n *\\n * @private\\n * @param {Object} object The destination object.\\n * @param {Object} source The source object.\\n * @returns {Object} Returns `object`.\\n */\\n function baseAssignIn(object, source) {\\n return object && copyObject(source, keysIn(source), object);\\n }\\n\\n /**\\n * The base implementation of `assignValue` and `assignMergeValue` without\\n * value checks.\\n *\\n * @private\\n * @param {Object} object The object to modify.\\n * @param {string} key The key of the property to assign.\\n * @param {*} value The value to assign.\\n */\\n function baseAssignValue(object, key, value) {\\n if (key == '__proto__' && defineProperty) {\\n defineProperty(object, key, {\\n 'configurable': true,\\n 'enumerable': true,\\n 'value': value,\\n 'writable': true\\n });\\n } else {\\n object[key] = value;\\n }\\n }\\n\\n /**\\n * The base implementation of `_.at` without support for individual paths.\\n *\\n * @private\\n * @param {Object} object The object to iterate over.\\n * @param {string[]} paths The property paths to pick.\\n * @returns {Array} Returns the picked elements.\\n */\\n function baseAt(object, paths) {\\n var index = -1,\\n length = paths.length,\\n result = Array(length),\\n skip = object == null;\\n\\n while (++index < length) {\\n result[index] = skip ? undefined : get(object, paths[index]);\\n }\\n return result;\\n }\\n\\n /**\\n * The base implementation of `_.clamp` which doesn't coerce arguments.\\n *\\n * @private\\n * @param {number} number The number to clamp.\\n * @param {number} [lower] The lower bound.\\n * @param {number} upper The upper bound.\\n * @returns {number} Returns the clamped number.\\n */\\n function baseClamp(number, lower, upper) {\\n if (number === number) {\\n if (upper !== undefined) {\\n number = number <= upper ? number : upper;\\n }\\n if (lower !== undefined) {\\n number = number >= lower ? number : lower;\\n }\\n }\\n return number;\\n }\\n\\n /**\\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\\n * traversed objects.\\n *\\n * @private\\n * @param {*} value The value to clone.\\n * @param {boolean} bitmask The bitmask flags.\\n * 1 - Deep clone\\n * 2 - Flatten inherited properties\\n * 4 - Clone symbols\\n * @param {Function} [customizer] The function to customize cloning.\\n * @param {string} [key] The key of `value`.\\n * @param {Object} [object] The parent object of `value`.\\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\\n * @returns {*} Returns the cloned value.\\n */\\n function baseClone(value, bitmask, customizer, key, object, stack) {\\n var result,\\n isDeep = bitmask & CLONE_DEEP_FLAG,\\n isFlat = bitmask & CLONE_FLAT_FLAG,\\n isFull = bitmask & CLONE_SYMBOLS_FLAG;\\n\\n if (customizer) {\\n result = object ? customizer(value, key, object, stack) : customizer(value);\\n }\\n if (result !== undefined) {\\n return result;\\n }\\n if (!isObject(value)) {\\n return value;\\n }\\n var isArr = isArray(value);\\n if (isArr) {\\n result = initCloneArray(value);\\n if (!isDeep) {\\n return copyArray(value, result);\\n }\\n } else {\\n var tag = getTag(value),\\n isFunc = tag == funcTag || tag == genTag;\\n\\n if (isBuffer(value)) {\\n return cloneBuffer(value, isDeep);\\n }\\n if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\\n result = (isFlat || isFunc) ? {} : initCloneObject(value);\\n if (!isDeep) {\\n return isFlat\\n ? copySymbolsIn(value, baseAssignIn(result, value))\\n : copySymbols(value, baseAssign(result, value));\\n }\\n } else {\\n if (!cloneableTags[tag]) {\\n return object ? value : {};\\n }\\n result = initCloneByTag(value, tag, baseClone, isDeep);\\n }\\n }\\n // Check for circular references and return its corresponding clone.\\n stack || (stack = new Stack);\\n var stacked = stack.get(value);\\n if (stacked) {\\n return stacked;\\n }\\n stack.set(value, result);\\n\\n var keysFunc = isFull\\n ? (isFlat ? getAllKeysIn : getAllKeys)\\n : (isFlat ? keysIn : keys);\\n\\n var props = isArr ? undefined : keysFunc(value);\\n arrayEach(props || value, function(subValue, key) {\\n if (props) {\\n key = subValue;\\n subValue = value[key];\\n }\\n // Recursively populate clone (susceptible to call stack limits).\\n assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\\n });\\n return result;\\n }\\n\\n /**\\n * The base implementation of `_.conforms` which doesn't clone `source`.\\n *\\n * @private\\n * @param {Object} source The object of property predicates to conform to.\\n * @returns {Function} Returns the new spec function.\\n */\\n function baseConforms(source) {\\n var props = keys(source);\\n return function(object) {\\n return baseConformsTo(object, source, props);\\n };\\n }\\n\\n /**\\n * The base implementation of `_.conformsTo` which accepts `props` to check.\\n *\\n * @private\\n * @param {Object} object The object to inspect.\\n * @param {Object} source The object of property predicates to conform to.\\n * @returns {boolean} Returns `true` if `object` conforms, else `false`.\\n */\\n function baseConformsTo(object, source, props) {\\n var length = props.length;\\n if (object == null) {\\n return !length;\\n }\\n object = Object(object);\\n while (length--) {\\n var key = props[length],\\n predicate = source[key],\\n value = object[key];\\n\\n if ((value === undefined && !(key in object)) || !predicate(value)) {\\n return false;\\n }\\n }\\n return true;\\n }\\n\\n /**\\n * The base implementation of `_.delay` and `_.defer` which accepts `args`\\n * to provide to `func`.\\n *\\n * @private\\n * @param {Function} func The function to delay.\\n * @param {number} wait The number of milliseconds to delay invocation.\\n * @param {Array} args The arguments to provide to `func`.\\n * @returns {number|Object} Returns the timer id or timeout object.\\n */\\n function baseDelay(func, wait, args) {\\n if (typeof func != 'function') {\\n throw new TypeError(FUNC_ERROR_TEXT);\\n }\\n return setTimeout(function() { func.apply(undefined, args); }, wait);\\n }\\n\\n /**\\n * The base implementation of methods like `_.difference` without support\\n * for excluding multiple arrays or iteratee shorthands.\\n *\\n * @private\\n * @param {Array} array The array to inspect.\\n * @param {Array} values The values to exclude.\\n * @param {Function} [iteratee] The iteratee invoked per element.\\n * @param {Function} [comparator] The comparator invoked per element.\\n * @returns {Array} Returns the new array of filtered values.\\n */\\n function baseDifference(array, values, iteratee, comparator) {\\n var index = -1,\\n includes = arrayIncludes,\\n isCommon = true,\\n length = array.length,\\n result = [],\\n valuesLength = values.length;\\n\\n if (!length) {\\n return result;\\n }\\n if (iteratee) {\\n values = arrayMap(values, baseUnary(iteratee));\\n }\\n if (comparator) {\\n includes = arrayIncludesWith;\\n isCommon = false;\\n }\\n else if (values.length >= LARGE_ARRAY_SIZE) {\\n includes = cacheHas;\\n isCommon = false;\\n values = new SetCache(values);\\n }\\n outer:\\n while (++index < length) {\\n var value = array[index],\\n computed = iteratee == null ? value : iteratee(value);\\n\\n value = (comparator || value !== 0) ? value : 0;\\n if (isCommon && computed === computed) {\\n var valuesIndex = valuesLength;\\n while (valuesIndex--) {\\n if (values[valuesIndex] === computed) {\\n continue outer;\\n }\\n }\\n result.push(value);\\n }\\n else if (!includes(values, computed, comparator)) {\\n result.push(value);\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * The base implementation of `_.forEach` without support for iteratee shorthands.\\n *\\n * @private\\n * @param {Array|Object} collection The collection to iterate over.\\n * @param {Function} iteratee The function invoked per iteration.\\n * @returns {Array|Object} Returns `collection`.\\n */\\n var baseEach = createBaseEach(baseForOwn);\\n\\n /**\\n * The base implementation of `_.forEachRight` without support for iteratee shorthands.\\n *\\n * @private\\n * @param {Array|Object} collection The collection to iterate over.\\n * @param {Function} iteratee The function invoked per iteration.\\n * @returns {Array|Object} Returns `collection`.\\n */\\n var baseEachRight = createBaseEach(baseForOwnRight, true);\\n\\n /**\\n * The base implementation of `_.every` without support for iteratee shorthands.\\n *\\n * @private\\n * @param {Array|Object} collection The collection to iterate over.\\n * @param {Function} predicate The function invoked per iteration.\\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\\n * else `false`\\n */\\n function baseEvery(collection, predicate) {\\n var result = true;\\n baseEach(collection, function(value, index, collection) {\\n result = !!predicate(value, index, collection);\\n return result;\\n });\\n return result;\\n }\\n\\n /**\\n * The base implementation of methods like `_.max` and `_.min` which accepts a\\n * `comparator` to determine the extremum value.\\n *\\n * @private\\n * @param {Array} array The array to iterate over.\\n * @param {Function} iteratee The iteratee invoked per iteration.\\n * @param {Function} comparator The comparator used to compare values.\\n * @returns {*} Returns the extremum value.\\n */\\n function baseExtremum(array, iteratee, comparator) {\\n var index = -1,\\n length = array.length;\\n\\n while (++index < length) {\\n var value = array[index],\\n current = iteratee(value);\\n\\n if (current != null && (computed === undefined\\n ? (current === current && !isSymbol(current))\\n : comparator(current, computed)\\n )) {\\n var computed = current,\\n result = value;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * The base implementation of `_.fill` without an iteratee call guard.\\n *\\n * @private\\n * @param {Array} array The array to fill.\\n * @param {*} value The value to fill `array` with.\\n * @param {number} [start=0] The start position.\\n * @param {number} [end=array.length] The end position.\\n * @returns {Array} Returns `array`.\\n */\\n function baseFill(array, value, start, end) {\\n var length = array.length;\\n\\n start = toInteger(start);\\n if (start < 0) {\\n start = -start > length ? 0 : (length + start);\\n }\\n end = (end === undefined || end > length) ? length : toInteger(end);\\n if (end < 0) {\\n end += length;\\n }\\n end = start > end ? 0 : toLength(end);\\n while (start < end) {\\n array[start++] = value;\\n }\\n return array;\\n }\\n\\n /**\\n * The base implementation of `_.filter` without support for iteratee shorthands.\\n *\\n * @private\\n * @param {Array|Object} collection The collection to iterate over.\\n * @param {Function} predicate The function invoked per iteration.\\n * @returns {Array} Returns the new filtered array.\\n */\\n function baseFilter(collection, predicate) {\\n var result = [];\\n baseEach(collection, function(value, index, collection) {\\n if (predicate(value, index, collection)) {\\n result.push(value);\\n }\\n });\\n return result;\\n }\\n\\n /**\\n * The base implementation of `_.flatten` with support for restricting flattening.\\n *\\n * @private\\n * @param {Array} array The array to flatten.\\n * @param {number} depth The maximum recursion depth.\\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\\n * @param {Array} [result=[]] The initial result value.\\n * @returns {Array} Returns the new flattened array.\\n */\\n function baseFlatten(array, depth, predicate, isStrict, result) {\\n var index = -1,\\n length = array.length;\\n\\n predicate || (predicate = isFlattenable);\\n result || (result = []);\\n\\n while (++index < length) {\\n var value = array[index];\\n if (depth > 0 && predicate(value)) {\\n if (depth > 1) {\\n // Recursively flatten arrays (susceptible to call stack limits).\\n baseFlatten(value, depth - 1, predicate, isStrict, result);\\n } else {\\n arrayPush(result, value);\\n }\\n } else if (!isStrict) {\\n result[result.length] = value;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * The base implementation of `baseForOwn` which iterates over `object`\\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\\n * Iteratee functions may exit iteration early by explicitly returning `false`.\\n *\\n * @private\\n * @param {Object} object The object to iterate over.\\n * @param {Function} iteratee The function invoked per iteration.\\n * @param {Function} keysFunc The function to get the keys of `object`.\\n * @returns {Object} Returns `object`.\\n */\\n var baseFor = createBaseFor();\\n\\n /**\\n * This function is like `baseFor` except that it iterates over properties\\n * in the opposite order.\\n *\\n * @private\\n * @param {Object} object The object to iterate over.\\n * @param {Function} iteratee The function invoked per iteration.\\n * @param {Function} keysFunc The function to get the keys of `object`.\\n * @returns {Object} Returns `object`.\\n */\\n var baseForRight = createBaseFor(true);\\n\\n /**\\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\\n *\\n * @private\\n * @param {Object} object The object to iterate over.\\n * @param {Function} iteratee The function invoked per iteration.\\n * @returns {Object} Returns `object`.\\n */\\n function baseForOwn(object, iteratee) {\\n return object && baseFor(object, iteratee, keys);\\n }\\n\\n /**\\n * The base implementation of `_.forOwnRight` without support for iteratee shorthands.\\n *\\n * @private\\n * @param {Object} object The object to iterate over.\\n * @param {Function} iteratee The function invoked per iteration.\\n * @returns {Object} Returns `object`.\\n */\\n function baseForOwnRight(object, iteratee) {\\n return object && baseForRight(object, iteratee, keys);\\n }\\n\\n /**\\n * The base implementation of `_.functions` which creates an array of\\n * `object` function property names filtered from `props`.\\n *\\n * @private\\n * @param {Object} object The object to inspect.\\n * @param {Array} props The property names to filter.\\n * @returns {Array} Returns the function names.\\n */\\n function baseFunctions(object, props) {\\n return arrayFilter(props, function(key) {\\n return isFunction(object[key]);\\n });\\n }\\n\\n /**\\n * The base implementation of `_.get` without support for default values.\\n *\\n * @private\\n * @param {Object} object The object to query.\\n * @param {Array|string} path The path of the property to get.\\n * @returns {*} Returns the resolved value.\\n */\\n function baseGet(object, path) {\\n path = castPath(path, object);\\n\\n var index = 0,\\n length = path.length;\\n\\n while (object != null && index < length) {\\n object = object[toKey(path[index++])];\\n }\\n return (index && index == length) ? object : undefined;\\n }\\n\\n /**\\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\\n * symbols of `object`.\\n *\\n * @private\\n * @param {Object} object The object to query.\\n * @param {Function} keysFunc The function to get the keys of `object`.\\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\\n * @returns {Array} Returns the array of property names and symbols.\\n */\\n function baseGetAllKeys(object, keysFunc, symbolsFunc) {\\n var result = keysFunc(object);\\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\\n }\\n\\n /**\\n * The base implementation of `getTag` without fallbacks for buggy environments.\\n *\\n * @private\\n * @param {*} value The value to query.\\n * @returns {string} Returns the `toStringTag`.\\n */\\n function baseGetTag(value) {\\n if (value == null) {\\n return value === undefined ? undefinedTag : nullTag;\\n }\\n return (symToStringTag && symToStringTag in Object(value))\\n ? getRawTag(value)\\n : objectToString(value);\\n }\\n\\n /**\\n * The base implementation of `_.gt` which doesn't coerce arguments.\\n *\\n * @private\\n * @param {*} value The value to compare.\\n * @param {*} other The other value to compare.\\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\\n * else `false`.\\n */\\n function baseGt(value, other) {\\n return value > other;\\n }\\n\\n /**\\n * The base implementation of `_.has` without support for deep paths.\\n *\\n * @private\\n * @param {Object} [object] The object to query.\\n * @param {Array|string} key The key to check.\\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\\n */\\n function baseHas(object, key) {\\n return object != null && hasOwnProperty.call(object, key);\\n }\\n\\n /**\\n * The base implementation of `_.hasIn` without support for deep paths.\\n *\\n * @private\\n * @param {Object} [object] The object to query.\\n * @param {Array|string} key The key to check.\\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\\n */\\n function baseHasIn(object, key) {\\n return object != null && key in Object(object);\\n }\\n\\n /**\\n * The base implementation of `_.inRange` which doesn't coerce arguments.\\n *\\n * @private\\n * @param {number} number The number to check.\\n * @param {number} start The start of the range.\\n * @param {number} end The end of the range.\\n * @returns {boolean} Returns `true` if `number` is in the range, else `false`.\\n */\\n function baseInRange(number, start, end) {\\n return number >= nativeMin(start, end) && number < nativeMax(start, end);\\n }\\n\\n /**\\n * The base implementation of methods like `_.intersection`, without support\\n * for iteratee shorthands, that accepts an array of arrays to inspect.\\n *\\n * @private\\n * @param {Array} arrays The arrays to inspect.\\n * @param {Function} [iteratee] The iteratee invoked per element.\\n * @param {Function} [comparator] The comparator invoked per element.\\n * @returns {Array} Returns the new array of shared values.\\n */\\n function baseIntersection(arrays, iteratee, comparator) {\\n var includes = comparator ? arrayIncludesWith : arrayIncludes,\\n length = arrays[0].length,\\n othLength = arrays.length,\\n othIndex = othLength,\\n caches = Array(othLength),\\n maxLength = Infinity,\\n result = [];\\n\\n while (othIndex--) {\\n var array = arrays[othIndex];\\n if (othIndex && iteratee) {\\n array = arrayMap(array, baseUnary(iteratee));\\n }\\n maxLength = nativeMin(array.length, maxLength);\\n caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))\\n ? new SetCache(othIndex && array)\\n : undefined;\\n }\\n array = arrays[0];\\n\\n var index = -1,\\n seen = caches[0];\\n\\n outer:\\n while (++index < length && result.length < maxLength) {\\n var value = array[index],\\n computed = iteratee ? iteratee(value) : value;\\n\\n value = (comparator || value !== 0) ? value : 0;\\n if (!(seen\\n ? cacheHas(seen, computed)\\n : includes(result, computed, comparator)\\n )) {\\n othIndex = othLength;\\n while (--othIndex) {\\n var cache = caches[othIndex];\\n if (!(cache\\n ? cacheHas(cache, computed)\\n : includes(arrays[othIndex], computed, comparator))\\n ) {\\n continue outer;\\n }\\n }\\n if (seen) {\\n seen.push(computed);\\n }\\n result.push(value);\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * The base implementation of `_.invert` and `_.invertBy` which inverts\\n * `object` with values transformed by `iteratee` and set by `setter`.\\n *\\n * @private\\n * @param {Object} object The object to iterate over.\\n * @param {Function} setter The function to set `accumulator` values.\\n * @param {Function} iteratee The iteratee to transform values.\\n * @param {Object} accumulator The initial inverted object.\\n * @returns {Function} Returns `accumulator`.\\n */\\n function baseInverter(object, setter, iteratee, accumulator) {\\n baseForOwn(object, function(value, key, object) {\\n setter(accumulator, iteratee(value), key, object);\\n });\\n return accumulator;\\n }\\n\\n /**\\n * The base implementation of `_.invoke` without support for individual\\n * method arguments.\\n *\\n * @private\\n * @param {Object} object The object to query.\\n * @param {Array|string} path The path of the method to invoke.\\n * @param {Array} args The arguments to invoke the method with.\\n * @returns {*} Returns the result of the invoked method.\\n */\\n function baseInvoke(object, path, args) {\\n path = castPath(path, object);\\n object = parent(object, path);\\n var func = object == null ? object : object[toKey(last(path))];\\n return func == null ? undefined : apply(func, object, args);\\n }\\n\\n /**\\n * The base implementation of `_.isArguments`.\\n *\\n * @private\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\\n */\\n function baseIsArguments(value) {\\n return isObjectLike(value) && baseGetTag(value) == argsTag;\\n }\\n\\n /**\\n * The base implementation of `_.isArrayBuffer` without Node.js optimizations.\\n *\\n * @private\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.\\n */\\n function baseIsArrayBuffer(value) {\\n return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;\\n }\\n\\n /**\\n * The base implementation of `_.isDate` without Node.js optimizations.\\n *\\n * @private\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is a date object, else `false`.\\n */\\n function baseIsDate(value) {\\n return isObjectLike(value) && baseGetTag(value) == dateTag;\\n }\\n\\n /**\\n * The base implementation of `_.isEqual` which supports partial comparisons\\n * and tracks traversed objects.\\n *\\n * @private\\n * @param {*} value The value to compare.\\n * @param {*} other The other value to compare.\\n * @param {boolean} bitmask The bitmask flags.\\n * 1 - Unordered comparison\\n * 2 - Partial comparison\\n * @param {Function} [customizer] The function to customize comparisons.\\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\\n */\\n function baseIsEqual(value, other, bitmask, customizer, stack) {\\n if (value === other) {\\n return true;\\n }\\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\\n return value !== value && other !== other;\\n }\\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\\n }\\n\\n /**\\n * A specialized version of `baseIsEqual` for arrays and objects which performs\\n * deep comparisons and tracks traversed objects enabling objects with circular\\n * references to be compared.\\n *\\n * @private\\n * @param {Object} object The object to compare.\\n * @param {Object} other The other object to compare.\\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\\n * @param {Function} customizer The function to customize comparisons.\\n * @param {Function} equalFunc The function to determine equivalents of values.\\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\\n */\\n function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\\n var objIsArr = isArray(object),\\n othIsArr = isArray(other),\\n objTag = objIsArr ? arrayTag : getTag(object),\\n othTag = othIsArr ? arrayTag : getTag(other);\\n\\n objTag = objTag == argsTag ? objectTag : objTag;\\n othTag = othTag == argsTag ? objectTag : othTag;\\n\\n var objIsObj = objTag == objectTag,\\n othIsObj = othTag == objectTag,\\n isSameTag = objTag == othTag;\\n\\n if (isSameTag && isBuffer(object)) {\\n if (!isBuffer(other)) {\\n return false;\\n }\\n objIsArr = true;\\n objIsObj = false;\\n }\\n if (isSameTag && !objIsObj) {\\n stack || (stack = new Stack);\\n return (objIsArr || isTypedArray(object))\\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\\n }\\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\\n\\n if (objIsWrapped || othIsWrapped) {\\n var objUnwrapped = objIsWrapped ? object.value() : object,\\n othUnwrapped = othIsWrapped ? other.value() : other;\\n\\n stack || (stack = new Stack);\\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\\n }\\n }\\n if (!isSameTag) {\\n return false;\\n }\\n stack || (stack = new Stack);\\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\\n }\\n\\n /**\\n * The base implementation of `_.isMap` without Node.js optimizations.\\n *\\n * @private\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\\n */\\n function baseIsMap(value) {\\n return isObjectLike(value) && getTag(value) == mapTag;\\n }\\n\\n /**\\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\\n *\\n * @private\\n * @param {Object} object The object to inspect.\\n * @param {Object} source The object of property values to match.\\n * @param {Array} matchData The property names, values, and compare flags to match.\\n * @param {Function} [customizer] The function to customize comparisons.\\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\\n */\\n function baseIsMatch(object, source, matchData, customizer) {\\n var index = matchData.length,\\n length = index,\\n noCustomizer = !customizer;\\n\\n if (object == null) {\\n return !length;\\n }\\n object = Object(object);\\n while (index--) {\\n var data = matchData[index];\\n if ((noCustomizer && data[2])\\n ? data[1] !== object[data[0]]\\n : !(data[0] in object)\\n ) {\\n return false;\\n }\\n }\\n while (++index < length) {\\n data = matchData[index];\\n var key = data[0],\\n objValue = object[key],\\n srcValue = data[1];\\n\\n if (noCustomizer && data[2]) {\\n if (objValue === undefined && !(key in object)) {\\n return false;\\n }\\n } else {\\n var stack = new Stack;\\n if (customizer) {\\n var result = customizer(objValue, srcValue, key, object, source, stack);\\n }\\n if (!(result === undefined\\n ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\\n : result\\n )) {\\n return false;\\n }\\n }\\n }\\n return true;\\n }\\n\\n /**\\n * The base implementation of `_.isNative` without bad shim checks.\\n *\\n * @private\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is a native function,\\n * else `false`.\\n */\\n function baseIsNative(value) {\\n if (!isObject(value) || isMasked(value)) {\\n return false;\\n }\\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\\n return pattern.test(toSource(value));\\n }\\n\\n /**\\n * The base implementation of `_.isRegExp` without Node.js optimizations.\\n *\\n * @private\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\\n */\\n function baseIsRegExp(value) {\\n return isObjectLike(value) && baseGetTag(value) == regexpTag;\\n }\\n\\n /**\\n * The base implementation of `_.isSet` without Node.js optimizations.\\n *\\n * @private\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\\n */\\n function baseIsSet(value) {\\n return isObjectLike(value) && getTag(value) == setTag;\\n }\\n\\n /**\\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\\n *\\n * @private\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\\n */\\n function baseIsTypedArray(value) {\\n return isObjectLike(value) &&\\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\\n }\\n\\n /**\\n * The base implementation of `_.iteratee`.\\n *\\n * @private\\n * @param {*} [value=_.identity] The value to convert to an iteratee.\\n * @returns {Function} Returns the iteratee.\\n */\\n function baseIteratee(value) {\\n // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\\n // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\\n if (typeof value == 'function') {\\n return value;\\n }\\n if (value == null) {\\n return identity;\\n }\\n if (typeof value == 'object') {\\n return isArray(value)\\n ? baseMatchesProperty(value[0], value[1])\\n : baseMatches(value);\\n }\\n return property(value);\\n }\\n\\n /**\\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\\n *\\n * @private\\n * @param {Object} object The object to query.\\n * @returns {Array} Returns the array of property names.\\n */\\n function baseKeys(object) {\\n if (!isPrototype(object)) {\\n return nativeKeys(object);\\n }\\n var result = [];\\n for (var key in Object(object)) {\\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\\n result.push(key);\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\\n *\\n * @private\\n * @param {Object} object The object to query.\\n * @returns {Array} Returns the array of property names.\\n */\\n function baseKeysIn(object) {\\n if (!isObject(object)) {\\n return nativeKeysIn(object);\\n }\\n var isProto = isPrototype(object),\\n result = [];\\n\\n for (var key in object) {\\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\\n result.push(key);\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * The base implementation of `_.lt` which doesn't coerce arguments.\\n *\\n * @private\\n * @param {*} value The value to compare.\\n * @param {*} other The other value to compare.\\n * @returns {boolean} Returns `true` if `value` is less than `other`,\\n * else `false`.\\n */\\n function baseLt(value, other) {\\n return value < other;\\n }\\n\\n /**\\n * The base implementation of `_.map` without support for iteratee shorthands.\\n *\\n * @private\\n * @param {Array|Object} collection The collection to iterate over.\\n * @param {Function} iteratee The function invoked per iteration.\\n * @returns {Array} Returns the new mapped array.\\n */\\n function baseMap(collection, iteratee) {\\n var index = -1,\\n result = isArrayLike(collection) ? Array(collection.length) : [];\\n\\n baseEach(collection, function(value, key, collection) {\\n result[++index] = iteratee(value, key, collection);\\n });\\n return result;\\n }\\n\\n /**\\n * The base implementation of `_.matches` which doesn't clone `source`.\\n *\\n * @private\\n * @param {Object} source The object of property values to match.\\n * @returns {Function} Returns the new spec function.\\n */\\n function baseMatches(source) {\\n var matchData = getMatchData(source);\\n if (matchData.length == 1 && matchData[0][2]) {\\n return matchesStrictComparable(matchData[0][0], matchData[0][1]);\\n }\\n return function(object) {\\n return object === source || baseIsMatch(object, source, matchData);\\n };\\n }\\n\\n /**\\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\\n *\\n * @private\\n * @param {string} path The path of the property to get.\\n * @param {*} srcValue The value to match.\\n * @returns {Function} Returns the new spec function.\\n */\\n function baseMatchesProperty(path, srcValue) {\\n if (isKey(path) && isStrictComparable(srcValue)) {\\n return matchesStrictComparable(toKey(path), srcValue);\\n }\\n return function(object) {\\n var objValue = get(object, path);\\n return (objValue === undefined && objValue === srcValue)\\n ? hasIn(object, path)\\n : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\\n };\\n }\\n\\n /**\\n * The base implementation of `_.merge` without support for multiple sources.\\n *\\n * @private\\n * @param {Object} object The destination object.\\n * @param {Object} source The source object.\\n * @param {number} srcIndex The index of `source`.\\n * @param {Function} [customizer] The function to customize merged values.\\n * @param {Object} [stack] Tracks traversed source values and their merged\\n * counterparts.\\n */\\n function baseMerge(object, source, srcIndex, customizer, stack) {\\n if (object === source) {\\n return;\\n }\\n baseFor(source, function(srcValue, key) {\\n if (isObject(srcValue)) {\\n stack || (stack = new Stack);\\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\\n }\\n else {\\n var newValue = customizer\\n ? customizer(object[key], srcValue, (key + ''), object, source, stack)\\n : undefined;\\n\\n if (newValue === undefined) {\\n newValue = srcValue;\\n }\\n assignMergeValue(object, key, newValue);\\n }\\n }, keysIn);\\n }\\n\\n /**\\n * A specialized version of `baseMerge` for arrays and objects which performs\\n * deep merges and tracks traversed objects enabling objects with circular\\n * references to be merged.\\n *\\n * @private\\n * @param {Object} object The destination object.\\n * @param {Object} source The source object.\\n * @param {string} key The key of the value to merge.\\n * @param {number} srcIndex The index of `source`.\\n * @param {Function} mergeFunc The function to merge values.\\n * @param {Function} [customizer] The function to customize assigned values.\\n * @param {Object} [stack] Tracks traversed source values and their merged\\n * counterparts.\\n */\\n function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\\n var objValue = object[key],\\n srcValue = source[key],\\n stacked = stack.get(srcValue);\\n\\n if (stacked) {\\n assignMergeValue(object, key, stacked);\\n return;\\n }\\n var newValue = customizer\\n ? customizer(objValue, srcValue, (key + ''), object, source, stack)\\n : undefined;\\n\\n var isCommon = newValue === undefined;\\n\\n if (isCommon) {\\n var isArr = isArray(srcValue),\\n isBuff = !isArr && isBuffer(srcValue),\\n isTyped = !isArr && !isBuff && isTypedArray(srcValue);\\n\\n newValue = srcValue;\\n if (isArr || isBuff || isTyped) {\\n if (isArray(objValue)) {\\n newValue = objValue;\\n }\\n else if (isArrayLikeObject(objValue)) {\\n newValue = copyArray(objValue);\\n }\\n else if (isBuff) {\\n isCommon = false;\\n newValue = cloneBuffer(srcValue, true);\\n }\\n else if (isTyped) {\\n isCommon = false;\\n newValue = cloneTypedArray(srcValue, true);\\n }\\n else {\\n newValue = [];\\n }\\n }\\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\\n newValue = objValue;\\n if (isArguments(objValue)) {\\n newValue = toPlainObject(objValue);\\n }\\n else if (!isObject(objValue) || (srcIndex && isFunction(objValue))) {\\n newValue = initCloneObject(srcValue);\\n }\\n }\\n else {\\n isCommon = false;\\n }\\n }\\n if (isCommon) {\\n // Recursively merge objects and arrays (susceptible to call stack limits).\\n stack.set(srcValue, newValue);\\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\\n stack['delete'](srcValue);\\n }\\n assignMergeValue(object, key, newValue);\\n }\\n\\n /**\\n * The base implementation of `_.nth` which doesn't coerce arguments.\\n *\\n * @private\\n * @param {Array} array The array to query.\\n * @param {number} n The index of the element to return.\\n * @returns {*} Returns the nth element of `array`.\\n */\\n function baseNth(array, n) {\\n var length = array.length;\\n if (!length) {\\n return;\\n }\\n n += n < 0 ? length : 0;\\n return isIndex(n, length) ? array[n] : undefined;\\n }\\n\\n /**\\n * The base implementation of `_.orderBy` without param guards.\\n *\\n * @private\\n * @param {Array|Object} collection The collection to iterate over.\\n * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\\n * @param {string[]} orders The sort orders of `iteratees`.\\n * @returns {Array} Returns the new sorted array.\\n */\\n function baseOrderBy(collection, iteratees, orders) {\\n var index = -1;\\n iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(getIteratee()));\\n\\n var result = baseMap(collection, function(value, key, collection) {\\n var criteria = arrayMap(iteratees, function(iteratee) {\\n return iteratee(value);\\n });\\n return { 'criteria': criteria, 'index': ++index, 'value': value };\\n });\\n\\n return baseSortBy(result, function(object, other) {\\n return compareMultiple(object, other, orders);\\n });\\n }\\n\\n /**\\n * The base implementation of `_.pick` without support for individual\\n * property identifiers.\\n *\\n * @private\\n * @param {Object} object The source object.\\n * @param {string[]} paths The property paths to pick.\\n * @returns {Object} Returns the new object.\\n */\\n function basePick(object, paths) {\\n return basePickBy(object, paths, function(value, path) {\\n return hasIn(object, path);\\n });\\n }\\n\\n /**\\n * The base implementation of `_.pickBy` without support for iteratee shorthands.\\n *\\n * @private\\n * @param {Object} object The source object.\\n * @param {string[]} paths The property paths to pick.\\n * @param {Function} predicate The function invoked per property.\\n * @returns {Object} Returns the new object.\\n */\\n function basePickBy(object, paths, predicate) {\\n var index = -1,\\n length = paths.length,\\n result = {};\\n\\n while (++index < length) {\\n var path = paths[index],\\n value = baseGet(object, path);\\n\\n if (predicate(value, path)) {\\n baseSet(result, castPath(path, object), value);\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * A specialized version of `baseProperty` which supports deep paths.\\n *\\n * @private\\n * @param {Array|string} path The path of the property to get.\\n * @returns {Function} Returns the new accessor function.\\n */\\n function basePropertyDeep(path) {\\n return function(object) {\\n return baseGet(object, path);\\n };\\n }\\n\\n /**\\n * The base implementation of `_.pullAllBy` without support for iteratee\\n * shorthands.\\n *\\n * @private\\n * @param {Array} array The array to modify.\\n * @param {Array} values The values to remove.\\n * @param {Function} [iteratee] The iteratee invoked per element.\\n * @param {Function} [comparator] The comparator invoked per element.\\n * @returns {Array} Returns `array`.\\n */\\n function basePullAll(array, values, iteratee, comparator) {\\n var indexOf = comparator ? baseIndexOfWith : baseIndexOf,\\n index = -1,\\n length = values.length,\\n seen = array;\\n\\n if (array === values) {\\n values = copyArray(values);\\n }\\n if (iteratee) {\\n seen = arrayMap(array, baseUnary(iteratee));\\n }\\n while (++index < length) {\\n var fromIndex = 0,\\n value = values[index],\\n computed = iteratee ? iteratee(value) : value;\\n\\n while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) {\\n if (seen !== array) {\\n splice.call(seen, fromIndex, 1);\\n }\\n splice.call(array, fromIndex, 1);\\n }\\n }\\n return array;\\n }\\n\\n /**\\n * The base implementation of `_.pullAt` without support for individual\\n * indexes or capturing the removed elements.\\n *\\n * @private\\n * @param {Array} array The array to modify.\\n * @param {number[]} indexes The indexes of elements to remove.\\n * @returns {Array} Returns `array`.\\n */\\n function basePullAt(array, indexes) {\\n var length = array ? indexes.length : 0,\\n lastIndex = length - 1;\\n\\n while (length--) {\\n var index = indexes[length];\\n if (length == lastIndex || index !== previous) {\\n var previous = index;\\n if (isIndex(index)) {\\n splice.call(array, index, 1);\\n } else {\\n baseUnset(array, index);\\n }\\n }\\n }\\n return array;\\n }\\n\\n /**\\n * The base implementation of `_.random` without support for returning\\n * floating-point numbers.\\n *\\n * @private\\n * @param {number} lower The lower bound.\\n * @param {number} upper The upper bound.\\n * @returns {number} Returns the random number.\\n */\\n function baseRandom(lower, upper) {\\n return lower + nativeFloor(nativeRandom() * (upper - lower + 1));\\n }\\n\\n /**\\n * The base implementation of `_.range` and `_.rangeRight` which doesn't\\n * coerce arguments.\\n *\\n * @private\\n * @param {number} start The start of the range.\\n * @param {number} end The end of the range.\\n * @param {number} step The value to increment or decrement by.\\n * @param {boolean} [fromRight] Specify iterating from right to left.\\n * @returns {Array} Returns the range of numbers.\\n */\\n function baseRange(start, end, step, fromRight) {\\n var index = -1,\\n length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),\\n result = Array(length);\\n\\n while (length--) {\\n result[fromRight ? length : ++index] = start;\\n start += step;\\n }\\n return result;\\n }\\n\\n /**\\n * The base implementation of `_.repeat` which doesn't coerce arguments.\\n *\\n * @private\\n * @param {string} string The string to repeat.\\n * @param {number} n The number of times to repeat the string.\\n * @returns {string} Returns the repeated string.\\n */\\n function baseRepeat(string, n) {\\n var result = '';\\n if (!string || n < 1 || n > MAX_SAFE_INTEGER) {\\n return result;\\n }\\n // Leverage the exponentiation by squaring algorithm for a faster repeat.\\n // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.\\n do {\\n if (n % 2) {\\n result += string;\\n }\\n n = nativeFloor(n / 2);\\n if (n) {\\n string += string;\\n }\\n } while (n);\\n\\n return result;\\n }\\n\\n /**\\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\\n *\\n * @private\\n * @param {Function} func The function to apply a rest parameter to.\\n * @param {number} [start=func.length-1] The start position of the rest parameter.\\n * @returns {Function} Returns the new function.\\n */\\n function baseRest(func, start) {\\n return setToString(overRest(func, start, identity), func + '');\\n }\\n\\n /**\\n * The base implementation of `_.sample`.\\n *\\n * @private\\n * @param {Array|Object} collection The collection to sample.\\n * @returns {*} Returns the random element.\\n */\\n function baseSample(collection) {\\n return arraySample(values(collection));\\n }\\n\\n /**\\n * The base implementation of `_.sampleSize` without param guards.\\n *\\n * @private\\n * @param {Array|Object} collection The collection to sample.\\n * @param {number} n The number of elements to sample.\\n * @returns {Array} Returns the random elements.\\n */\\n function baseSampleSize(collection, n) {\\n var array = values(collection);\\n return shuffleSelf(array, baseClamp(n, 0, array.length));\\n }\\n\\n /**\\n * The base implementation of `_.set`.\\n *\\n * @private\\n * @param {Object} object The object to modify.\\n * @param {Array|string} path The path of the property to set.\\n * @param {*} value The value to set.\\n * @param {Function} [customizer] The function to customize path creation.\\n * @returns {Object} Returns `object`.\\n */\\n function baseSet(object, path, value, customizer) {\\n if (!isObject(object)) {\\n return object;\\n }\\n path = castPath(path, object);\\n\\n var index = -1,\\n length = path.length,\\n lastIndex = length - 1,\\n nested = object;\\n\\n while (nested != null && ++index < length) {\\n var key = toKey(path[index]),\\n newValue = value;\\n\\n if (index != lastIndex) {\\n var objValue = nested[key];\\n newValue = customizer ? customizer(objValue, key, nested) : undefined;\\n if (newValue === undefined) {\\n newValue = isObject(objValue)\\n ? objValue\\n : (isIndex(path[index + 1]) ? [] : {});\\n }\\n }\\n assignValue(nested, key, newValue);\\n nested = nested[key];\\n }\\n return object;\\n }\\n\\n /**\\n * The base implementation of `setData` without support for hot loop shorting.\\n *\\n * @private\\n * @param {Function} func The function to associate metadata with.\\n * @param {*} data The metadata.\\n * @returns {Function} Returns `func`.\\n */\\n var baseSetData = !metaMap ? identity : function(func, data) {\\n metaMap.set(func, data);\\n return func;\\n };\\n\\n /**\\n * The base implementation of `setToString` without support for hot loop shorting.\\n *\\n * @private\\n * @param {Function} func The function to modify.\\n * @param {Function} string The `toString` result.\\n * @returns {Function} Returns `func`.\\n */\\n var baseSetToString = !defineProperty ? identity : function(func, string) {\\n return defineProperty(func, 'toString', {\\n 'configurable': true,\\n 'enumerable': false,\\n 'value': constant(string),\\n 'writable': true\\n });\\n };\\n\\n /**\\n * The base implementation of `_.shuffle`.\\n *\\n * @private\\n * @param {Array|Object} collection The collection to shuffle.\\n * @returns {Array} Returns the new shuffled array.\\n */\\n function baseShuffle(collection) {\\n return shuffleSelf(values(collection));\\n }\\n\\n /**\\n * The base implementation of `_.slice` without an iteratee call guard.\\n *\\n * @private\\n * @param {Array} array The array to slice.\\n * @param {number} [start=0] The start position.\\n * @param {number} [end=array.length] The end position.\\n * @returns {Array} Returns the slice of `array`.\\n */\\n function baseSlice(array, start, end) {\\n var index = -1,\\n length = array.length;\\n\\n if (start < 0) {\\n start = -start > length ? 0 : (length + start);\\n }\\n end = end > length ? length : end;\\n if (end < 0) {\\n end += length;\\n }\\n length = start > end ? 0 : ((end - start) >>> 0);\\n start >>>= 0;\\n\\n var result = Array(length);\\n while (++index < length) {\\n result[index] = array[index + start];\\n }\\n return result;\\n }\\n\\n /**\\n * The base implementation of `_.some` without support for iteratee shorthands.\\n *\\n * @private\\n * @param {Array|Object} collection The collection to iterate over.\\n * @param {Function} predicate The function invoked per iteration.\\n * @returns {boolean} Returns `true` if any element passes the predicate check,\\n * else `false`.\\n */\\n function baseSome(collection, predicate) {\\n var result;\\n\\n baseEach(collection, function(value, index, collection) {\\n result = predicate(value, index, collection);\\n return !result;\\n });\\n return !!result;\\n }\\n\\n /**\\n * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which\\n * performs a binary search of `array` to determine the index at which `value`\\n * should be inserted into `array` in order to maintain its sort order.\\n *\\n * @private\\n * @param {Array} array The sorted array to inspect.\\n * @param {*} value The value to evaluate.\\n * @param {boolean} [retHighest] Specify returning the highest qualified index.\\n * @returns {number} Returns the index at which `value` should be inserted\\n * into `array`.\\n */\\n function baseSortedIndex(array, value, retHighest) {\\n var low = 0,\\n high = array == null ? low : array.length;\\n\\n if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {\\n while (low < high) {\\n var mid = (low + high) >>> 1,\\n computed = array[mid];\\n\\n if (computed !== null && !isSymbol(computed) &&\\n (retHighest ? (computed <= value) : (computed < value))) {\\n low = mid + 1;\\n } else {\\n high = mid;\\n }\\n }\\n return high;\\n }\\n return baseSortedIndexBy(array, value, identity, retHighest);\\n }\\n\\n /**\\n * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`\\n * which invokes `iteratee` for `value` and each element of `array` to compute\\n * their sort ranking. The iteratee is invoked with one argument; (value).\\n *\\n * @private\\n * @param {Array} array The sorted array to inspect.\\n * @param {*} value The value to evaluate.\\n * @param {Function} iteratee The iteratee invoked per element.\\n * @param {boolean} [retHighest] Specify returning the highest qualified index.\\n * @returns {number} Returns the index at which `value` should be inserted\\n * into `array`.\\n */\\n function baseSortedIndexBy(array, value, iteratee, retHighest) {\\n value = iteratee(value);\\n\\n var low = 0,\\n high = array == null ? 0 : array.length,\\n valIsNaN = value !== value,\\n valIsNull = value === null,\\n valIsSymbol = isSymbol(value),\\n valIsUndefined = value === undefined;\\n\\n while (low < high) {\\n var mid = nativeFloor((low + high) / 2),\\n computed = iteratee(array[mid]),\\n othIsDefined = computed !== undefined,\\n othIsNull = computed === null,\\n othIsReflexive = computed === computed,\\n othIsSymbol = isSymbol(computed);\\n\\n if (valIsNaN) {\\n var setLow = retHighest || othIsReflexive;\\n } else if (valIsUndefined) {\\n setLow = othIsReflexive && (retHighest || othIsDefined);\\n } else if (valIsNull) {\\n setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);\\n } else if (valIsSymbol) {\\n setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);\\n } else if (othIsNull || othIsSymbol) {\\n setLow = false;\\n } else {\\n setLow = retHighest ? (computed <= value) : (computed < value);\\n }\\n if (setLow) {\\n low = mid + 1;\\n } else {\\n high = mid;\\n }\\n }\\n return nativeMin(high, MAX_ARRAY_INDEX);\\n }\\n\\n /**\\n * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without\\n * support for iteratee shorthands.\\n *\\n * @private\\n * @param {Array} array The array to inspect.\\n * @param {Function} [iteratee] The iteratee invoked per element.\\n * @returns {Array} Returns the new duplicate free array.\\n */\\n function baseSortedUniq(array, iteratee) {\\n var index = -1,\\n length = array.length,\\n resIndex = 0,\\n result = [];\\n\\n while (++index < length) {\\n var value = array[index],\\n computed = iteratee ? iteratee(value) : value;\\n\\n if (!index || !eq(computed, seen)) {\\n var seen = computed;\\n result[resIndex++] = value === 0 ? 0 : value;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * The base implementation of `_.toNumber` which doesn't ensure correct\\n * conversions of binary, hexadecimal, or octal string values.\\n *\\n * @private\\n * @param {*} value The value to process.\\n * @returns {number} Returns the number.\\n */\\n function baseToNumber(value) {\\n if (typeof value == 'number') {\\n return value;\\n }\\n if (isSymbol(value)) {\\n return NAN;\\n }\\n return +value;\\n }\\n\\n /**\\n * The base implementation of `_.toString` which doesn't convert nullish\\n * values to empty strings.\\n *\\n * @private\\n * @param {*} value The value to process.\\n * @returns {string} Returns the string.\\n */\\n function baseToString(value) {\\n // Exit early for strings to avoid a performance hit in some environments.\\n if (typeof value == 'string') {\\n return value;\\n }\\n if (isArray(value)) {\\n // Recursively convert values (susceptible to call stack limits).\\n return arrayMap(value, baseToString) + '';\\n }\\n if (isSymbol(value)) {\\n return symbolToString ? symbolToString.call(value) : '';\\n }\\n var result = (value + '');\\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\\n }\\n\\n /**\\n * The base implementation of `_.uniqBy` without support for iteratee shorthands.\\n *\\n * @private\\n * @param {Array} array The array to inspect.\\n * @param {Function} [iteratee] The iteratee invoked per element.\\n * @param {Function} [comparator] The comparator invoked per element.\\n * @returns {Array} Returns the new duplicate free array.\\n */\\n function baseUniq(array, iteratee, comparator) {\\n var index = -1,\\n includes = arrayIncludes,\\n length = array.length,\\n isCommon = true,\\n result = [],\\n seen = result;\\n\\n if (comparator) {\\n isCommon = false;\\n includes = arrayIncludesWith;\\n }\\n else if (length >= LARGE_ARRAY_SIZE) {\\n var set = iteratee ? null : createSet(array);\\n if (set) {\\n return setToArray(set);\\n }\\n isCommon = false;\\n includes = cacheHas;\\n seen = new SetCache;\\n }\\n else {\\n seen = iteratee ? [] : result;\\n }\\n outer:\\n while (++index < length) {\\n var value = array[index],\\n computed = iteratee ? iteratee(value) : value;\\n\\n value = (comparator || value !== 0) ? value : 0;\\n if (isCommon && computed === computed) {\\n var seenIndex = seen.length;\\n while (seenIndex--) {\\n if (seen[seenIndex] === computed) {\\n continue outer;\\n }\\n }\\n if (iteratee) {\\n seen.push(computed);\\n }\\n result.push(value);\\n }\\n else if (!includes(seen, computed, comparator)) {\\n if (seen !== result) {\\n seen.push(computed);\\n }\\n result.push(value);\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * The base implementation of `_.unset`.\\n *\\n * @private\\n * @param {Object} object The object to modify.\\n * @param {Array|string} path The property path to unset.\\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\\n */\\n function baseUnset(object, path) {\\n path = castPath(path, object);\\n object = parent(object, path);\\n return object == null || delete object[toKey(last(path))];\\n }\\n\\n /**\\n * The base implementation of `_.update`.\\n *\\n * @private\\n * @param {Object} object The object to modify.\\n * @param {Array|string} path The path of the property to update.\\n * @param {Function} updater The function to produce the updated value.\\n * @param {Function} [customizer] The function to customize path creation.\\n * @returns {Object} Returns `object`.\\n */\\n function baseUpdate(object, path, updater, customizer) {\\n return baseSet(object, path, updater(baseGet(object, path)), customizer);\\n }\\n\\n /**\\n * The base implementation of methods like `_.dropWhile` and `_.takeWhile`\\n * without support for iteratee shorthands.\\n *\\n * @private\\n * @param {Array} array The array to query.\\n * @param {Function} predicate The function invoked per iteration.\\n * @param {boolean} [isDrop] Specify dropping elements instead of taking them.\\n * @param {boolean} [fromRight] Specify iterating from right to left.\\n * @returns {Array} Returns the slice of `array`.\\n */\\n function baseWhile(array, predicate, isDrop, fromRight) {\\n var length = array.length,\\n index = fromRight ? length : -1;\\n\\n while ((fromRight ? index-- : ++index < length) &&\\n predicate(array[index], index, array)) {}\\n\\n return isDrop\\n ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length))\\n : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index));\\n }\\n\\n /**\\n * The base implementation of `wrapperValue` which returns the result of\\n * performing a sequence of actions on the unwrapped `value`, where each\\n * successive action is supplied the return value of the previous.\\n *\\n * @private\\n * @param {*} value The unwrapped value.\\n * @param {Array} actions Actions to perform to resolve the unwrapped value.\\n * @returns {*} Returns the resolved value.\\n */\\n function baseWrapperValue(value, actions) {\\n var result = value;\\n if (result instanceof LazyWrapper) {\\n result = result.value();\\n }\\n return arrayReduce(actions, function(result, action) {\\n return action.func.apply(action.thisArg, arrayPush([result], action.args));\\n }, result);\\n }\\n\\n /**\\n * The base implementation of methods like `_.xor`, without support for\\n * iteratee shorthands, that accepts an array of arrays to inspect.\\n *\\n * @private\\n * @param {Array} arrays The arrays to inspect.\\n * @param {Function} [iteratee] The iteratee invoked per element.\\n * @param {Function} [comparator] The comparator invoked per element.\\n * @returns {Array} Returns the new array of values.\\n */\\n function baseXor(arrays, iteratee, comparator) {\\n var length = arrays.length;\\n if (length < 2) {\\n return length ? baseUniq(arrays[0]) : [];\\n }\\n var index = -1,\\n result = Array(length);\\n\\n while (++index < length) {\\n var array = arrays[index],\\n othIndex = -1;\\n\\n while (++othIndex < length) {\\n if (othIndex != index) {\\n result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator);\\n }\\n }\\n }\\n return baseUniq(baseFlatten(result, 1), iteratee, comparator);\\n }\\n\\n /**\\n * This base implementation of `_.zipObject` which assigns values using `assignFunc`.\\n *\\n * @private\\n * @param {Array} props The property identifiers.\\n * @param {Array} values The property values.\\n * @param {Function} assignFunc The function to assign values.\\n * @returns {Object} Returns the new object.\\n */\\n function baseZipObject(props, values, assignFunc) {\\n var index = -1,\\n length = props.length,\\n valsLength = values.length,\\n result = {};\\n\\n while (++index < length) {\\n var value = index < valsLength ? values[index] : undefined;\\n assignFunc(result, props[index], value);\\n }\\n return result;\\n }\\n\\n /**\\n * Casts `value` to an empty array if it's not an array like object.\\n *\\n * @private\\n * @param {*} value The value to inspect.\\n * @returns {Array|Object} Returns the cast array-like object.\\n */\\n function castArrayLikeObject(value) {\\n return isArrayLikeObject(value) ? value : [];\\n }\\n\\n /**\\n * Casts `value` to `identity` if it's not a function.\\n *\\n * @private\\n * @param {*} value The value to inspect.\\n * @returns {Function} Returns cast function.\\n */\\n function castFunction(value) {\\n return typeof value == 'function' ? value : identity;\\n }\\n\\n /**\\n * Casts `value` to a path array if it's not one.\\n *\\n * @private\\n * @param {*} value The value to inspect.\\n * @param {Object} [object] The object to query keys on.\\n * @returns {Array} Returns the cast property path array.\\n */\\n function castPath(value, object) {\\n if (isArray(value)) {\\n return value;\\n }\\n return isKey(value, object) ? [value] : stringToPath(toString(value));\\n }\\n\\n /**\\n * A `baseRest` alias which can be replaced with `identity` by module\\n * replacement plugins.\\n *\\n * @private\\n * @type {Function}\\n * @param {Function} func The function to apply a rest parameter to.\\n * @returns {Function} Returns the new function.\\n */\\n var castRest = baseRest;\\n\\n /**\\n * Casts `array` to a slice if it's needed.\\n *\\n * @private\\n * @param {Array} array The array to inspect.\\n * @param {number} start The start position.\\n * @param {number} [end=array.length] The end position.\\n * @returns {Array} Returns the cast slice.\\n */\\n function castSlice(array, start, end) {\\n var length = array.length;\\n end = end === undefined ? length : end;\\n return (!start && end >= length) ? array : baseSlice(array, start, end);\\n }\\n\\n /**\\n * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout).\\n *\\n * @private\\n * @param {number|Object} id The timer id or timeout object of the timer to clear.\\n */\\n var clearTimeout = ctxClearTimeout || function(id) {\\n return root.clearTimeout(id);\\n };\\n\\n /**\\n * Creates a clone of `buffer`.\\n *\\n * @private\\n * @param {Buffer} buffer The buffer to clone.\\n * @param {boolean} [isDeep] Specify a deep clone.\\n * @returns {Buffer} Returns the cloned buffer.\\n */\\n function cloneBuffer(buffer, isDeep) {\\n if (isDeep) {\\n return buffer.slice();\\n }\\n var length = buffer.length,\\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\\n\\n buffer.copy(result);\\n return result;\\n }\\n\\n /**\\n * Creates a clone of `arrayBuffer`.\\n *\\n * @private\\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\\n * @returns {ArrayBuffer} Returns the cloned array buffer.\\n */\\n function cloneArrayBuffer(arrayBuffer) {\\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\\n return result;\\n }\\n\\n /**\\n * Creates a clone of `dataView`.\\n *\\n * @private\\n * @param {Object} dataView The data view to clone.\\n * @param {boolean} [isDeep] Specify a deep clone.\\n * @returns {Object} Returns the cloned data view.\\n */\\n function cloneDataView(dataView, isDeep) {\\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\\n }\\n\\n /**\\n * Creates a clone of `map`.\\n *\\n * @private\\n * @param {Object} map The map to clone.\\n * @param {Function} cloneFunc The function to clone values.\\n * @param {boolean} [isDeep] Specify a deep clone.\\n * @returns {Object} Returns the cloned map.\\n */\\n function cloneMap(map, isDeep, cloneFunc) {\\n var array = isDeep ? cloneFunc(mapToArray(map), CLONE_DEEP_FLAG) : mapToArray(map);\\n return arrayReduce(array, addMapEntry, new map.constructor);\\n }\\n\\n /**\\n * Creates a clone of `regexp`.\\n *\\n * @private\\n * @param {Object} regexp The regexp to clone.\\n * @returns {Object} Returns the cloned regexp.\\n */\\n function cloneRegExp(regexp) {\\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\\n result.lastIndex = regexp.lastIndex;\\n return result;\\n }\\n\\n /**\\n * Creates a clone of `set`.\\n *\\n * @private\\n * @param {Object} set The set to clone.\\n * @param {Function} cloneFunc The function to clone values.\\n * @param {boolean} [isDeep] Specify a deep clone.\\n * @returns {Object} Returns the cloned set.\\n */\\n function cloneSet(set, isDeep, cloneFunc) {\\n var array = isDeep ? cloneFunc(setToArray(set), CLONE_DEEP_FLAG) : setToArray(set);\\n return arrayReduce(array, addSetEntry, new set.constructor);\\n }\\n\\n /**\\n * Creates a clone of the `symbol` object.\\n *\\n * @private\\n * @param {Object} symbol The symbol object to clone.\\n * @returns {Object} Returns the cloned symbol object.\\n */\\n function cloneSymbol(symbol) {\\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\\n }\\n\\n /**\\n * Creates a clone of `typedArray`.\\n *\\n * @private\\n * @param {Object} typedArray The typed array to clone.\\n * @param {boolean} [isDeep] Specify a deep clone.\\n * @returns {Object} Returns the cloned typed array.\\n */\\n function cloneTypedArray(typedArray, isDeep) {\\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\\n }\\n\\n /**\\n * Compares values to sort them in ascending order.\\n *\\n * @private\\n * @param {*} value The value to compare.\\n * @param {*} other The other value to compare.\\n * @returns {number} Returns the sort order indicator for `value`.\\n */\\n function compareAscending(value, other) {\\n if (value !== other) {\\n var valIsDefined = value !== undefined,\\n valIsNull = value === null,\\n valIsReflexive = value === value,\\n valIsSymbol = isSymbol(value);\\n\\n var othIsDefined = other !== undefined,\\n othIsNull = other === null,\\n othIsReflexive = other === other,\\n othIsSymbol = isSymbol(other);\\n\\n if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||\\n (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||\\n (valIsNull && othIsDefined && othIsReflexive) ||\\n (!valIsDefined && othIsReflexive) ||\\n !valIsReflexive) {\\n return 1;\\n }\\n if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||\\n (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||\\n (othIsNull && valIsDefined && valIsReflexive) ||\\n (!othIsDefined && valIsReflexive) ||\\n !othIsReflexive) {\\n return -1;\\n }\\n }\\n return 0;\\n }\\n\\n /**\\n * Used by `_.orderBy` to compare multiple properties of a value to another\\n * and stable sort them.\\n *\\n * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,\\n * specify an order of \\\"desc\\\" for descending or \\\"asc\\\" for ascending sort order\\n * of corresponding values.\\n *\\n * @private\\n * @param {Object} object The object to compare.\\n * @param {Object} other The other object to compare.\\n * @param {boolean[]|string[]} orders The order to sort by for each property.\\n * @returns {number} Returns the sort order indicator for `object`.\\n */\\n function compareMultiple(object, other, orders) {\\n var index = -1,\\n objCriteria = object.criteria,\\n othCriteria = other.criteria,\\n length = objCriteria.length,\\n ordersLength = orders.length;\\n\\n while (++index < length) {\\n var result = compareAscending(objCriteria[index], othCriteria[index]);\\n if (result) {\\n if (index >= ordersLength) {\\n return result;\\n }\\n var order = orders[index];\\n return result * (order == 'desc' ? -1 : 1);\\n }\\n }\\n // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications\\n // that causes it, under certain circumstances, to provide the same value for\\n // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247\\n // for more details.\\n //\\n // This also ensures a stable sort in V8 and other engines.\\n // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.\\n return object.index - other.index;\\n }\\n\\n /**\\n * Creates an array that is the composition of partially applied arguments,\\n * placeholders, and provided arguments into a single array of arguments.\\n *\\n * @private\\n * @param {Array} args The provided arguments.\\n * @param {Array} partials The arguments to prepend to those provided.\\n * @param {Array} holders The `partials` placeholder indexes.\\n * @params {boolean} [isCurried] Specify composing for a curried function.\\n * @returns {Array} Returns the new array of composed arguments.\\n */\\n function composeArgs(args, partials, holders, isCurried) {\\n var argsIndex = -1,\\n argsLength = args.length,\\n holdersLength = holders.length,\\n leftIndex = -1,\\n leftLength = partials.length,\\n rangeLength = nativeMax(argsLength - holdersLength, 0),\\n result = Array(leftLength + rangeLength),\\n isUncurried = !isCurried;\\n\\n while (++leftIndex < leftLength) {\\n result[leftIndex] = partials[leftIndex];\\n }\\n while (++argsIndex < holdersLength) {\\n if (isUncurried || argsIndex < argsLength) {\\n result[holders[argsIndex]] = args[argsIndex];\\n }\\n }\\n while (rangeLength--) {\\n result[leftIndex++] = args[argsIndex++];\\n }\\n return result;\\n }\\n\\n /**\\n * This function is like `composeArgs` except that the arguments composition\\n * is tailored for `_.partialRight`.\\n *\\n * @private\\n * @param {Array} args The provided arguments.\\n * @param {Array} partials The arguments to append to those provided.\\n * @param {Array} holders The `partials` placeholder indexes.\\n * @params {boolean} [isCurried] Specify composing for a curried function.\\n * @returns {Array} Returns the new array of composed arguments.\\n */\\n function composeArgsRight(args, partials, holders, isCurried) {\\n var argsIndex = -1,\\n argsLength = args.length,\\n holdersIndex = -1,\\n holdersLength = holders.length,\\n rightIndex = -1,\\n rightLength = partials.length,\\n rangeLength = nativeMax(argsLength - holdersLength, 0),\\n result = Array(rangeLength + rightLength),\\n isUncurried = !isCurried;\\n\\n while (++argsIndex < rangeLength) {\\n result[argsIndex] = args[argsIndex];\\n }\\n var offset = argsIndex;\\n while (++rightIndex < rightLength) {\\n result[offset + rightIndex] = partials[rightIndex];\\n }\\n while (++holdersIndex < holdersLength) {\\n if (isUncurried || argsIndex < argsLength) {\\n result[offset + holders[holdersIndex]] = args[argsIndex++];\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * Copies the values of `source` to `array`.\\n *\\n * @private\\n * @param {Array} source The array to copy values from.\\n * @param {Array} [array=[]] The array to copy values to.\\n * @returns {Array} Returns `array`.\\n */\\n function copyArray(source, array) {\\n var index = -1,\\n length = source.length;\\n\\n array || (array = Array(length));\\n while (++index < length) {\\n array[index] = source[index];\\n }\\n return array;\\n }\\n\\n /**\\n * Copies properties of `source` to `object`.\\n *\\n * @private\\n * @param {Object} source The object to copy properties from.\\n * @param {Array} props The property identifiers to copy.\\n * @param {Object} [object={}] The object to copy properties to.\\n * @param {Function} [customizer] The function to customize copied values.\\n * @returns {Object} Returns `object`.\\n */\\n function copyObject(source, props, object, customizer) {\\n var isNew = !object;\\n object || (object = {});\\n\\n var index = -1,\\n length = props.length;\\n\\n while (++index < length) {\\n var key = props[index];\\n\\n var newValue = customizer\\n ? customizer(object[key], source[key], key, object, source)\\n : undefined;\\n\\n if (newValue === undefined) {\\n newValue = source[key];\\n }\\n if (isNew) {\\n baseAssignValue(object, key, newValue);\\n } else {\\n assignValue(object, key, newValue);\\n }\\n }\\n return object;\\n }\\n\\n /**\\n * Copies own symbols of `source` to `object`.\\n *\\n * @private\\n * @param {Object} source The object to copy symbols from.\\n * @param {Object} [object={}] The object to copy symbols to.\\n * @returns {Object} Returns `object`.\\n */\\n function copySymbols(source, object) {\\n return copyObject(source, getSymbols(source), object);\\n }\\n\\n /**\\n * Copies own and inherited symbols of `source` to `object`.\\n *\\n * @private\\n * @param {Object} source The object to copy symbols from.\\n * @param {Object} [object={}] The object to copy symbols to.\\n * @returns {Object} Returns `object`.\\n */\\n function copySymbolsIn(source, object) {\\n return copyObject(source, getSymbolsIn(source), object);\\n }\\n\\n /**\\n * Creates a function like `_.groupBy`.\\n *\\n * @private\\n * @param {Function} setter The function to set accumulator values.\\n * @param {Function} [initializer] The accumulator object initializer.\\n * @returns {Function} Returns the new aggregator function.\\n */\\n function createAggregator(setter, initializer) {\\n return function(collection, iteratee) {\\n var func = isArray(collection) ? arrayAggregator : baseAggregator,\\n accumulator = initializer ? initializer() : {};\\n\\n return func(collection, setter, getIteratee(iteratee, 2), accumulator);\\n };\\n }\\n\\n /**\\n * Creates a function like `_.assign`.\\n *\\n * @private\\n * @param {Function} assigner The function to assign values.\\n * @returns {Function} Returns the new assigner function.\\n */\\n function createAssigner(assigner) {\\n return baseRest(function(object, sources) {\\n var index = -1,\\n length = sources.length,\\n customizer = length > 1 ? sources[length - 1] : undefined,\\n guard = length > 2 ? sources[2] : undefined;\\n\\n customizer = (assigner.length > 3 && typeof customizer == 'function')\\n ? (length--, customizer)\\n : undefined;\\n\\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\\n customizer = length < 3 ? undefined : customizer;\\n length = 1;\\n }\\n object = Object(object);\\n while (++index < length) {\\n var source = sources[index];\\n if (source) {\\n assigner(object, source, index, customizer);\\n }\\n }\\n return object;\\n });\\n }\\n\\n /**\\n * Creates a `baseEach` or `baseEachRight` function.\\n *\\n * @private\\n * @param {Function} eachFunc The function to iterate over a collection.\\n * @param {boolean} [fromRight] Specify iterating from right to left.\\n * @returns {Function} Returns the new base function.\\n */\\n function createBaseEach(eachFunc, fromRight) {\\n return function(collection, iteratee) {\\n if (collection == null) {\\n return collection;\\n }\\n if (!isArrayLike(collection)) {\\n return eachFunc(collection, iteratee);\\n }\\n var length = collection.length,\\n index = fromRight ? length : -1,\\n iterable = Object(collection);\\n\\n while ((fromRight ? index-- : ++index < length)) {\\n if (iteratee(iterable[index], index, iterable) === false) {\\n break;\\n }\\n }\\n return collection;\\n };\\n }\\n\\n /**\\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\\n *\\n * @private\\n * @param {boolean} [fromRight] Specify iterating from right to left.\\n * @returns {Function} Returns the new base function.\\n */\\n function createBaseFor(fromRight) {\\n return function(object, iteratee, keysFunc) {\\n var index = -1,\\n iterable = Object(object),\\n props = keysFunc(object),\\n length = props.length;\\n\\n while (length--) {\\n var key = props[fromRight ? length : ++index];\\n if (iteratee(iterable[key], key, iterable) === false) {\\n break;\\n }\\n }\\n return object;\\n };\\n }\\n\\n /**\\n * Creates a function that wraps `func` to invoke it with the optional `this`\\n * binding of `thisArg`.\\n *\\n * @private\\n * @param {Function} func The function to wrap.\\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\\n * @param {*} [thisArg] The `this` binding of `func`.\\n * @returns {Function} Returns the new wrapped function.\\n */\\n function createBind(func, bitmask, thisArg) {\\n var isBind = bitmask & WRAP_BIND_FLAG,\\n Ctor = createCtor(func);\\n\\n function wrapper() {\\n var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\\n return fn.apply(isBind ? thisArg : this, arguments);\\n }\\n return wrapper;\\n }\\n\\n /**\\n * Creates a function like `_.lowerFirst`.\\n *\\n * @private\\n * @param {string} methodName The name of the `String` case method to use.\\n * @returns {Function} Returns the new case function.\\n */\\n function createCaseFirst(methodName) {\\n return function(string) {\\n string = toString(string);\\n\\n var strSymbols = hasUnicode(string)\\n ? stringToArray(string)\\n : undefined;\\n\\n var chr = strSymbols\\n ? strSymbols[0]\\n : string.charAt(0);\\n\\n var trailing = strSymbols\\n ? castSlice(strSymbols, 1).join('')\\n : string.slice(1);\\n\\n return chr[methodName]() + trailing;\\n };\\n }\\n\\n /**\\n * Creates a function like `_.camelCase`.\\n *\\n * @private\\n * @param {Function} callback The function to combine each word.\\n * @returns {Function} Returns the new compounder function.\\n */\\n function createCompounder(callback) {\\n return function(string) {\\n return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');\\n };\\n }\\n\\n /**\\n * Creates a function that produces an instance of `Ctor` regardless of\\n * whether it was invoked as part of a `new` expression or by `call` or `apply`.\\n *\\n * @private\\n * @param {Function} Ctor The constructor to wrap.\\n * @returns {Function} Returns the new wrapped function.\\n */\\n function createCtor(Ctor) {\\n return function() {\\n // Use a `switch` statement to work with class constructors. See\\n // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist\\n // for more details.\\n var args = arguments;\\n switch (args.length) {\\n case 0: return new Ctor;\\n case 1: return new Ctor(args[0]);\\n case 2: return new Ctor(args[0], args[1]);\\n case 3: return new Ctor(args[0], args[1], args[2]);\\n case 4: return new Ctor(args[0], args[1], args[2], args[3]);\\n case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);\\n case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);\\n case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);\\n }\\n var thisBinding = baseCreate(Ctor.prototype),\\n result = Ctor.apply(thisBinding, args);\\n\\n // Mimic the constructor's `return` behavior.\\n // See https://es5.github.io/#x13.2.2 for more details.\\n return isObject(result) ? result : thisBinding;\\n };\\n }\\n\\n /**\\n * Creates a function that wraps `func` to enable currying.\\n *\\n * @private\\n * @param {Function} func The function to wrap.\\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\\n * @param {number} arity The arity of `func`.\\n * @returns {Function} Returns the new wrapped function.\\n */\\n function createCurry(func, bitmask, arity) {\\n var Ctor = createCtor(func);\\n\\n function wrapper() {\\n var length = arguments.length,\\n args = Array(length),\\n index = length,\\n placeholder = getHolder(wrapper);\\n\\n while (index--) {\\n args[index] = arguments[index];\\n }\\n var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)\\n ? []\\n : replaceHolders(args, placeholder);\\n\\n length -= holders.length;\\n if (length < arity) {\\n return createRecurry(\\n func, bitmask, createHybrid, wrapper.placeholder, undefined,\\n args, holders, undefined, undefined, arity - length);\\n }\\n var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\\n return apply(fn, this, args);\\n }\\n return wrapper;\\n }\\n\\n /**\\n * Creates a `_.find` or `_.findLast` function.\\n *\\n * @private\\n * @param {Function} findIndexFunc The function to find the collection index.\\n * @returns {Function} Returns the new find function.\\n */\\n function createFind(findIndexFunc) {\\n return function(collection, predicate, fromIndex) {\\n var iterable = Object(collection);\\n if (!isArrayLike(collection)) {\\n var iteratee = getIteratee(predicate, 3);\\n collection = keys(collection);\\n predicate = function(key) { return iteratee(iterable[key], key, iterable); };\\n }\\n var index = findIndexFunc(collection, predicate, fromIndex);\\n return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;\\n };\\n }\\n\\n /**\\n * Creates a `_.flow` or `_.flowRight` function.\\n *\\n * @private\\n * @param {boolean} [fromRight] Specify iterating from right to left.\\n * @returns {Function} Returns the new flow function.\\n */\\n function createFlow(fromRight) {\\n return flatRest(function(funcs) {\\n var length = funcs.length,\\n index = length,\\n prereq = LodashWrapper.prototype.thru;\\n\\n if (fromRight) {\\n funcs.reverse();\\n }\\n while (index--) {\\n var func = funcs[index];\\n if (typeof func != 'function') {\\n throw new TypeError(FUNC_ERROR_TEXT);\\n }\\n if (prereq && !wrapper && getFuncName(func) == 'wrapper') {\\n var wrapper = new LodashWrapper([], true);\\n }\\n }\\n index = wrapper ? index : length;\\n while (++index < length) {\\n func = funcs[index];\\n\\n var funcName = getFuncName(func),\\n data = funcName == 'wrapper' ? getData(func) : undefined;\\n\\n if (data && isLaziable(data[0]) &&\\n data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) &&\\n !data[4].length && data[9] == 1\\n ) {\\n wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);\\n } else {\\n wrapper = (func.length == 1 && isLaziable(func))\\n ? wrapper[funcName]()\\n : wrapper.thru(func);\\n }\\n }\\n return function() {\\n var args = arguments,\\n value = args[0];\\n\\n if (wrapper && args.length == 1 && isArray(value)) {\\n return wrapper.plant(value).value();\\n }\\n var index = 0,\\n result = length ? funcs[index].apply(this, args) : value;\\n\\n while (++index < length) {\\n result = funcs[index].call(this, result);\\n }\\n return result;\\n };\\n });\\n }\\n\\n /**\\n * Creates a function that wraps `func` to invoke it with optional `this`\\n * binding of `thisArg`, partial application, and currying.\\n *\\n * @private\\n * @param {Function|string} func The function or method name to wrap.\\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\\n * @param {*} [thisArg] The `this` binding of `func`.\\n * @param {Array} [partials] The arguments to prepend to those provided to\\n * the new function.\\n * @param {Array} [holders] The `partials` placeholder indexes.\\n * @param {Array} [partialsRight] The arguments to append to those provided\\n * to the new function.\\n * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.\\n * @param {Array} [argPos] The argument positions of the new function.\\n * @param {number} [ary] The arity cap of `func`.\\n * @param {number} [arity] The arity of `func`.\\n * @returns {Function} Returns the new wrapped function.\\n */\\n function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {\\n var isAry = bitmask & WRAP_ARY_FLAG,\\n isBind = bitmask & WRAP_BIND_FLAG,\\n isBindKey = bitmask & WRAP_BIND_KEY_FLAG,\\n isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG),\\n isFlip = bitmask & WRAP_FLIP_FLAG,\\n Ctor = isBindKey ? undefined : createCtor(func);\\n\\n function wrapper() {\\n var length = arguments.length,\\n args = Array(length),\\n index = length;\\n\\n while (index--) {\\n args[index] = arguments[index];\\n }\\n if (isCurried) {\\n var placeholder = getHolder(wrapper),\\n holdersCount = countHolders(args, placeholder);\\n }\\n if (partials) {\\n args = composeArgs(args, partials, holders, isCurried);\\n }\\n if (partialsRight) {\\n args = composeArgsRight(args, partialsRight, holdersRight, isCurried);\\n }\\n length -= holdersCount;\\n if (isCurried && length < arity) {\\n var newHolders = replaceHolders(args, placeholder);\\n return createRecurry(\\n func, bitmask, createHybrid, wrapper.placeholder, thisArg,\\n args, newHolders, argPos, ary, arity - length\\n );\\n }\\n var thisBinding = isBind ? thisArg : this,\\n fn = isBindKey ? thisBinding[func] : func;\\n\\n length = args.length;\\n if (argPos) {\\n args = reorder(args, argPos);\\n } else if (isFlip && length > 1) {\\n args.reverse();\\n }\\n if (isAry && ary < length) {\\n args.length = ary;\\n }\\n if (this && this !== root && this instanceof wrapper) {\\n fn = Ctor || createCtor(fn);\\n }\\n return fn.apply(thisBinding, args);\\n }\\n return wrapper;\\n }\\n\\n /**\\n * Creates a function like `_.invertBy`.\\n *\\n * @private\\n * @param {Function} setter The function to set accumulator values.\\n * @param {Function} toIteratee The function to resolve iteratees.\\n * @returns {Function} Returns the new inverter function.\\n */\\n function createInverter(setter, toIteratee) {\\n return function(object, iteratee) {\\n return baseInverter(object, setter, toIteratee(iteratee), {});\\n };\\n }\\n\\n /**\\n * Creates a function that performs a mathematical operation on two values.\\n *\\n * @private\\n * @param {Function} operator The function to perform the operation.\\n * @param {number} [defaultValue] The value used for `undefined` arguments.\\n * @returns {Function} Returns the new mathematical operation function.\\n */\\n function createMathOperation(operator, defaultValue) {\\n return function(value, other) {\\n var result;\\n if (value === undefined && other === undefined) {\\n return defaultValue;\\n }\\n if (value !== undefined) {\\n result = value;\\n }\\n if (other !== undefined) {\\n if (result === undefined) {\\n return other;\\n }\\n if (typeof value == 'string' || typeof other == 'string') {\\n value = baseToString(value);\\n other = baseToString(other);\\n } else {\\n value = baseToNumber(value);\\n other = baseToNumber(other);\\n }\\n result = operator(value, other);\\n }\\n return result;\\n };\\n }\\n\\n /**\\n * Creates a function like `_.over`.\\n *\\n * @private\\n * @param {Function} arrayFunc The function to iterate over iteratees.\\n * @returns {Function} Returns the new over function.\\n */\\n function createOver(arrayFunc) {\\n return flatRest(function(iteratees) {\\n iteratees = arrayMap(iteratees, baseUnary(getIteratee()));\\n return baseRest(function(args) {\\n var thisArg = this;\\n return arrayFunc(iteratees, function(iteratee) {\\n return apply(iteratee, thisArg, args);\\n });\\n });\\n });\\n }\\n\\n /**\\n * Creates the padding for `string` based on `length`. The `chars` string\\n * is truncated if the number of characters exceeds `length`.\\n *\\n * @private\\n * @param {number} length The padding length.\\n * @param {string} [chars=' '] The string used as padding.\\n * @returns {string} Returns the padding for `string`.\\n */\\n function createPadding(length, chars) {\\n chars = chars === undefined ? ' ' : baseToString(chars);\\n\\n var charsLength = chars.length;\\n if (charsLength < 2) {\\n return charsLength ? baseRepeat(chars, length) : chars;\\n }\\n var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));\\n return hasUnicode(chars)\\n ? castSlice(stringToArray(result), 0, length).join('')\\n : result.slice(0, length);\\n }\\n\\n /**\\n * Creates a function that wraps `func` to invoke it with the `this` binding\\n * of `thisArg` and `partials` prepended to the arguments it receives.\\n *\\n * @private\\n * @param {Function} func The function to wrap.\\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\\n * @param {*} thisArg The `this` binding of `func`.\\n * @param {Array} partials The arguments to prepend to those provided to\\n * the new function.\\n * @returns {Function} Returns the new wrapped function.\\n */\\n function createPartial(func, bitmask, thisArg, partials) {\\n var isBind = bitmask & WRAP_BIND_FLAG,\\n Ctor = createCtor(func);\\n\\n function wrapper() {\\n var argsIndex = -1,\\n argsLength = arguments.length,\\n leftIndex = -1,\\n leftLength = partials.length,\\n args = Array(leftLength + argsLength),\\n fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\\n\\n while (++leftIndex < leftLength) {\\n args[leftIndex] = partials[leftIndex];\\n }\\n while (argsLength--) {\\n args[leftIndex++] = arguments[++argsIndex];\\n }\\n return apply(fn, isBind ? thisArg : this, args);\\n }\\n return wrapper;\\n }\\n\\n /**\\n * Creates a `_.range` or `_.rangeRight` function.\\n *\\n * @private\\n * @param {boolean} [fromRight] Specify iterating from right to left.\\n * @returns {Function} Returns the new range function.\\n */\\n function createRange(fromRight) {\\n return function(start, end, step) {\\n if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {\\n end = step = undefined;\\n }\\n // Ensure the sign of `-0` is preserved.\\n start = toFinite(start);\\n if (end === undefined) {\\n end = start;\\n start = 0;\\n } else {\\n end = toFinite(end);\\n }\\n step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);\\n return baseRange(start, end, step, fromRight);\\n };\\n }\\n\\n /**\\n * Creates a function that performs a relational operation on two values.\\n *\\n * @private\\n * @param {Function} operator The function to perform the operation.\\n * @returns {Function} Returns the new relational operation function.\\n */\\n function createRelationalOperation(operator) {\\n return function(value, other) {\\n if (!(typeof value == 'string' && typeof other == 'string')) {\\n value = toNumber(value);\\n other = toNumber(other);\\n }\\n return operator(value, other);\\n };\\n }\\n\\n /**\\n * Creates a function that wraps `func` to continue currying.\\n *\\n * @private\\n * @param {Function} func The function to wrap.\\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\\n * @param {Function} wrapFunc The function to create the `func` wrapper.\\n * @param {*} placeholder The placeholder value.\\n * @param {*} [thisArg] The `this` binding of `func`.\\n * @param {Array} [partials] The arguments to prepend to those provided to\\n * the new function.\\n * @param {Array} [holders] The `partials` placeholder indexes.\\n * @param {Array} [argPos] The argument positions of the new function.\\n * @param {number} [ary] The arity cap of `func`.\\n * @param {number} [arity] The arity of `func`.\\n * @returns {Function} Returns the new wrapped function.\\n */\\n function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {\\n var isCurry = bitmask & WRAP_CURRY_FLAG,\\n newHolders = isCurry ? holders : undefined,\\n newHoldersRight = isCurry ? undefined : holders,\\n newPartials = isCurry ? partials : undefined,\\n newPartialsRight = isCurry ? undefined : partials;\\n\\n bitmask |= (isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG);\\n bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);\\n\\n if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {\\n bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG);\\n }\\n var newData = [\\n func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,\\n newHoldersRight, argPos, ary, arity\\n ];\\n\\n var result = wrapFunc.apply(undefined, newData);\\n if (isLaziable(func)) {\\n setData(result, newData);\\n }\\n result.placeholder = placeholder;\\n return setWrapToString(result, func, bitmask);\\n }\\n\\n /**\\n * Creates a function like `_.round`.\\n *\\n * @private\\n * @param {string} methodName The name of the `Math` method to use when rounding.\\n * @returns {Function} Returns the new round function.\\n */\\n function createRound(methodName) {\\n var func = Math[methodName];\\n return function(number, precision) {\\n number = toNumber(number);\\n precision = precision == null ? 0 : nativeMin(toInteger(precision), 292);\\n if (precision) {\\n // Shift with exponential notation to avoid floating-point issues.\\n // See [MDN](https://mdn.io/round#Examples) for more details.\\n var pair = (toString(number) + 'e').split('e'),\\n value = func(pair[0] + 'e' + (+pair[1] + precision));\\n\\n pair = (toString(value) + 'e').split('e');\\n return +(pair[0] + 'e' + (+pair[1] - precision));\\n }\\n return func(number);\\n };\\n }\\n\\n /**\\n * Creates a set object of `values`.\\n *\\n * @private\\n * @param {Array} values The values to add to the set.\\n * @returns {Object} Returns the new set.\\n */\\n var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {\\n return new Set(values);\\n };\\n\\n /**\\n * Creates a `_.toPairs` or `_.toPairsIn` function.\\n *\\n * @private\\n * @param {Function} keysFunc The function to get the keys of a given object.\\n * @returns {Function} Returns the new pairs function.\\n */\\n function createToPairs(keysFunc) {\\n return function(object) {\\n var tag = getTag(object);\\n if (tag == mapTag) {\\n return mapToArray(object);\\n }\\n if (tag == setTag) {\\n return setToPairs(object);\\n }\\n return baseToPairs(object, keysFunc(object));\\n };\\n }\\n\\n /**\\n * Creates a function that either curries or invokes `func` with optional\\n * `this` binding and partially applied arguments.\\n *\\n * @private\\n * @param {Function|string} func The function or method name to wrap.\\n * @param {number} bitmask The bitmask flags.\\n * 1 - `_.bind`\\n * 2 - `_.bindKey`\\n * 4 - `_.curry` or `_.curryRight` of a bound function\\n * 8 - `_.curry`\\n * 16 - `_.curryRight`\\n * 32 - `_.partial`\\n * 64 - `_.partialRight`\\n * 128 - `_.rearg`\\n * 256 - `_.ary`\\n * 512 - `_.flip`\\n * @param {*} [thisArg] The `this` binding of `func`.\\n * @param {Array} [partials] The arguments to be partially applied.\\n * @param {Array} [holders] The `partials` placeholder indexes.\\n * @param {Array} [argPos] The argument positions of the new function.\\n * @param {number} [ary] The arity cap of `func`.\\n * @param {number} [arity] The arity of `func`.\\n * @returns {Function} Returns the new wrapped function.\\n */\\n function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {\\n var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;\\n if (!isBindKey && typeof func != 'function') {\\n throw new TypeError(FUNC_ERROR_TEXT);\\n }\\n var length = partials ? partials.length : 0;\\n if (!length) {\\n bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);\\n partials = holders = undefined;\\n }\\n ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);\\n arity = arity === undefined ? arity : toInteger(arity);\\n length -= holders ? holders.length : 0;\\n\\n if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {\\n var partialsRight = partials,\\n holdersRight = holders;\\n\\n partials = holders = undefined;\\n }\\n var data = isBindKey ? undefined : getData(func);\\n\\n var newData = [\\n func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,\\n argPos, ary, arity\\n ];\\n\\n if (data) {\\n mergeData(newData, data);\\n }\\n func = newData[0];\\n bitmask = newData[1];\\n thisArg = newData[2];\\n partials = newData[3];\\n holders = newData[4];\\n arity = newData[9] = newData[9] === undefined\\n ? (isBindKey ? 0 : func.length)\\n : nativeMax(newData[9] - length, 0);\\n\\n if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {\\n bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);\\n }\\n if (!bitmask || bitmask == WRAP_BIND_FLAG) {\\n var result = createBind(func, bitmask, thisArg);\\n } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) {\\n result = createCurry(func, bitmask, arity);\\n } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {\\n result = createPartial(func, bitmask, thisArg, partials);\\n } else {\\n result = createHybrid.apply(undefined, newData);\\n }\\n var setter = data ? baseSetData : setData;\\n return setWrapToString(setter(result, newData), func, bitmask);\\n }\\n\\n /**\\n * Used by `_.defaults` to customize its `_.assignIn` use to assign properties\\n * of source objects to the destination object for all destination properties\\n * that resolve to `undefined`.\\n *\\n * @private\\n * @param {*} objValue The destination value.\\n * @param {*} srcValue The source value.\\n * @param {string} key The key of the property to assign.\\n * @param {Object} object The parent object of `objValue`.\\n * @returns {*} Returns the value to assign.\\n */\\n function customDefaultsAssignIn(objValue, srcValue, key, object) {\\n if (objValue === undefined ||\\n (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {\\n return srcValue;\\n }\\n return objValue;\\n }\\n\\n /**\\n * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source\\n * objects into destination objects that are passed thru.\\n *\\n * @private\\n * @param {*} objValue The destination value.\\n * @param {*} srcValue The source value.\\n * @param {string} key The key of the property to merge.\\n * @param {Object} object The parent object of `objValue`.\\n * @param {Object} source The parent object of `srcValue`.\\n * @param {Object} [stack] Tracks traversed source values and their merged\\n * counterparts.\\n * @returns {*} Returns the value to assign.\\n */\\n function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {\\n if (isObject(objValue) && isObject(srcValue)) {\\n // Recursively merge objects and arrays (susceptible to call stack limits).\\n stack.set(srcValue, objValue);\\n baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack);\\n stack['delete'](srcValue);\\n }\\n return objValue;\\n }\\n\\n /**\\n * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain\\n * objects.\\n *\\n * @private\\n * @param {*} value The value to inspect.\\n * @param {string} key The key of the property to inspect.\\n * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.\\n */\\n function customOmitClone(value) {\\n return isPlainObject(value) ? undefined : value;\\n }\\n\\n /**\\n * A specialized version of `baseIsEqualDeep` for arrays with support for\\n * partial deep comparisons.\\n *\\n * @private\\n * @param {Array} array The array to compare.\\n * @param {Array} other The other array to compare.\\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\\n * @param {Function} customizer The function to customize comparisons.\\n * @param {Function} equalFunc The function to determine equivalents of values.\\n * @param {Object} stack Tracks traversed `array` and `other` objects.\\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\\n */\\n function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\\n arrLength = array.length,\\n othLength = other.length;\\n\\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\\n return false;\\n }\\n // Assume cyclic values are equal.\\n var stacked = stack.get(array);\\n if (stacked && stack.get(other)) {\\n return stacked == other;\\n }\\n var index = -1,\\n result = true,\\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\\n\\n stack.set(array, other);\\n stack.set(other, array);\\n\\n // Ignore non-index properties.\\n while (++index < arrLength) {\\n var arrValue = array[index],\\n othValue = other[index];\\n\\n if (customizer) {\\n var compared = isPartial\\n ? customizer(othValue, arrValue, index, other, array, stack)\\n : customizer(arrValue, othValue, index, array, other, stack);\\n }\\n if (compared !== undefined) {\\n if (compared) {\\n continue;\\n }\\n result = false;\\n break;\\n }\\n // Recursively compare arrays (susceptible to call stack limits).\\n if (seen) {\\n if (!arraySome(other, function(othValue, othIndex) {\\n if (!cacheHas(seen, othIndex) &&\\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\\n return seen.push(othIndex);\\n }\\n })) {\\n result = false;\\n break;\\n }\\n } else if (!(\\n arrValue === othValue ||\\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\\n )) {\\n result = false;\\n break;\\n }\\n }\\n stack['delete'](array);\\n stack['delete'](other);\\n return result;\\n }\\n\\n /**\\n * A specialized version of `baseIsEqualDeep` for comparing objects of\\n * the same `toStringTag`.\\n *\\n * **Note:** This function only supports comparing values with tags of\\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\\n *\\n * @private\\n * @param {Object} object The object to compare.\\n * @param {Object} other The other object to compare.\\n * @param {string} tag The `toStringTag` of the objects to compare.\\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\\n * @param {Function} customizer The function to customize comparisons.\\n * @param {Function} equalFunc The function to determine equivalents of values.\\n * @param {Object} stack Tracks traversed `object` and `other` objects.\\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\\n */\\n function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\\n switch (tag) {\\n case dataViewTag:\\n if ((object.byteLength != other.byteLength) ||\\n (object.byteOffset != other.byteOffset)) {\\n return false;\\n }\\n object = object.buffer;\\n other = other.buffer;\\n\\n case arrayBufferTag:\\n if ((object.byteLength != other.byteLength) ||\\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\\n return false;\\n }\\n return true;\\n\\n case boolTag:\\n case dateTag:\\n case numberTag:\\n // Coerce booleans to `1` or `0` and dates to milliseconds.\\n // Invalid dates are coerced to `NaN`.\\n return eq(+object, +other);\\n\\n case errorTag:\\n return object.name == other.name && object.message == other.message;\\n\\n case regexpTag:\\n case stringTag:\\n // Coerce regexes to strings and treat strings, primitives and objects,\\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\\n // for more details.\\n return object == (other + '');\\n\\n case mapTag:\\n var convert = mapToArray;\\n\\n case setTag:\\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\\n convert || (convert = setToArray);\\n\\n if (object.size != other.size && !isPartial) {\\n return false;\\n }\\n // Assume cyclic values are equal.\\n var stacked = stack.get(object);\\n if (stacked) {\\n return stacked == other;\\n }\\n bitmask |= COMPARE_UNORDERED_FLAG;\\n\\n // Recursively compare objects (susceptible to call stack limits).\\n stack.set(object, other);\\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\\n stack['delete'](object);\\n return result;\\n\\n case symbolTag:\\n if (symbolValueOf) {\\n return symbolValueOf.call(object) == symbolValueOf.call(other);\\n }\\n }\\n return false;\\n }\\n\\n /**\\n * A specialized version of `baseIsEqualDeep` for objects with support for\\n * partial deep comparisons.\\n *\\n * @private\\n * @param {Object} object The object to compare.\\n * @param {Object} other The other object to compare.\\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\\n * @param {Function} customizer The function to customize comparisons.\\n * @param {Function} equalFunc The function to determine equivalents of values.\\n * @param {Object} stack Tracks traversed `object` and `other` objects.\\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\\n */\\n function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\\n objProps = getAllKeys(object),\\n objLength = objProps.length,\\n othProps = getAllKeys(other),\\n othLength = othProps.length;\\n\\n if (objLength != othLength && !isPartial) {\\n return false;\\n }\\n var index = objLength;\\n while (index--) {\\n var key = objProps[index];\\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\\n return false;\\n }\\n }\\n // Assume cyclic values are equal.\\n var stacked = stack.get(object);\\n if (stacked && stack.get(other)) {\\n return stacked == other;\\n }\\n var result = true;\\n stack.set(object, other);\\n stack.set(other, object);\\n\\n var skipCtor = isPartial;\\n while (++index < objLength) {\\n key = objProps[index];\\n var objValue = object[key],\\n othValue = other[key];\\n\\n if (customizer) {\\n var compared = isPartial\\n ? customizer(othValue, objValue, key, other, object, stack)\\n : customizer(objValue, othValue, key, object, other, stack);\\n }\\n // Recursively compare objects (susceptible to call stack limits).\\n if (!(compared === undefined\\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\\n : compared\\n )) {\\n result = false;\\n break;\\n }\\n skipCtor || (skipCtor = key == 'constructor');\\n }\\n if (result && !skipCtor) {\\n var objCtor = object.constructor,\\n othCtor = other.constructor;\\n\\n // Non `Object` object instances with different constructors are not equal.\\n if (objCtor != othCtor &&\\n ('constructor' in object && 'constructor' in other) &&\\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\\n result = false;\\n }\\n }\\n stack['delete'](object);\\n stack['delete'](other);\\n return result;\\n }\\n\\n /**\\n * A specialized version of `baseRest` which flattens the rest array.\\n *\\n * @private\\n * @param {Function} func The function to apply a rest parameter to.\\n * @returns {Function} Returns the new function.\\n */\\n function flatRest(func) {\\n return setToString(overRest(func, undefined, flatten), func + '');\\n }\\n\\n /**\\n * Creates an array of own enumerable property names and symbols of `object`.\\n *\\n * @private\\n * @param {Object} object The object to query.\\n * @returns {Array} Returns the array of property names and symbols.\\n */\\n function getAllKeys(object) {\\n return baseGetAllKeys(object, keys, getSymbols);\\n }\\n\\n /**\\n * Creates an array of own and inherited enumerable property names and\\n * symbols of `object`.\\n *\\n * @private\\n * @param {Object} object The object to query.\\n * @returns {Array} Returns the array of property names and symbols.\\n */\\n function getAllKeysIn(object) {\\n return baseGetAllKeys(object, keysIn, getSymbolsIn);\\n }\\n\\n /**\\n * Gets metadata for `func`.\\n *\\n * @private\\n * @param {Function} func The function to query.\\n * @returns {*} Returns the metadata for `func`.\\n */\\n var getData = !metaMap ? noop : function(func) {\\n return metaMap.get(func);\\n };\\n\\n /**\\n * Gets the name of `func`.\\n *\\n * @private\\n * @param {Function} func The function to query.\\n * @returns {string} Returns the function name.\\n */\\n function getFuncName(func) {\\n var result = (func.name + ''),\\n array = realNames[result],\\n length = hasOwnProperty.call(realNames, result) ? array.length : 0;\\n\\n while (length--) {\\n var data = array[length],\\n otherFunc = data.func;\\n if (otherFunc == null || otherFunc == func) {\\n return data.name;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * Gets the argument placeholder value for `func`.\\n *\\n * @private\\n * @param {Function} func The function to inspect.\\n * @returns {*} Returns the placeholder value.\\n */\\n function getHolder(func) {\\n var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func;\\n return object.placeholder;\\n }\\n\\n /**\\n * Gets the appropriate \\\"iteratee\\\" function. If `_.iteratee` is customized,\\n * this function returns the custom method, otherwise it returns `baseIteratee`.\\n * If arguments are provided, the chosen function is invoked with them and\\n * its result is returned.\\n *\\n * @private\\n * @param {*} [value] The value to convert to an iteratee.\\n * @param {number} [arity] The arity of the created iteratee.\\n * @returns {Function} Returns the chosen function or its result.\\n */\\n function getIteratee() {\\n var result = lodash.iteratee || iteratee;\\n result = result === iteratee ? baseIteratee : result;\\n return arguments.length ? result(arguments[0], arguments[1]) : result;\\n }\\n\\n /**\\n * Gets the data for `map`.\\n *\\n * @private\\n * @param {Object} map The map to query.\\n * @param {string} key The reference key.\\n * @returns {*} Returns the map data.\\n */\\n function getMapData(map, key) {\\n var data = map.__data__;\\n return isKeyable(key)\\n ? data[typeof key == 'string' ? 'string' : 'hash']\\n : data.map;\\n }\\n\\n /**\\n * Gets the property names, values, and compare flags of `object`.\\n *\\n * @private\\n * @param {Object} object The object to query.\\n * @returns {Array} Returns the match data of `object`.\\n */\\n function getMatchData(object) {\\n var result = keys(object),\\n length = result.length;\\n\\n while (length--) {\\n var key = result[length],\\n value = object[key];\\n\\n result[length] = [key, value, isStrictComparable(value)];\\n }\\n return result;\\n }\\n\\n /**\\n * Gets the native function at `key` of `object`.\\n *\\n * @private\\n * @param {Object} object The object to query.\\n * @param {string} key The key of the method to get.\\n * @returns {*} Returns the function if it's native, else `undefined`.\\n */\\n function getNative(object, key) {\\n var value = getValue(object, key);\\n return baseIsNative(value) ? value : undefined;\\n }\\n\\n /**\\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\\n *\\n * @private\\n * @param {*} value The value to query.\\n * @returns {string} Returns the raw `toStringTag`.\\n */\\n function getRawTag(value) {\\n var isOwn = hasOwnProperty.call(value, symToStringTag),\\n tag = value[symToStringTag];\\n\\n try {\\n value[symToStringTag] = undefined;\\n var unmasked = true;\\n } catch (e) {}\\n\\n var result = nativeObjectToString.call(value);\\n if (unmasked) {\\n if (isOwn) {\\n value[symToStringTag] = tag;\\n } else {\\n delete value[symToStringTag];\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * Creates an array of the own enumerable symbols of `object`.\\n *\\n * @private\\n * @param {Object} object The object to query.\\n * @returns {Array} Returns the array of symbols.\\n */\\n var getSymbols = !nativeGetSymbols ? stubArray : function(object) {\\n if (object == null) {\\n return [];\\n }\\n object = Object(object);\\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\\n return propertyIsEnumerable.call(object, symbol);\\n });\\n };\\n\\n /**\\n * Creates an array of the own and inherited enumerable symbols of `object`.\\n *\\n * @private\\n * @param {Object} object The object to query.\\n * @returns {Array} Returns the array of symbols.\\n */\\n var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {\\n var result = [];\\n while (object) {\\n arrayPush(result, getSymbols(object));\\n object = getPrototype(object);\\n }\\n return result;\\n };\\n\\n /**\\n * Gets the `toStringTag` of `value`.\\n *\\n * @private\\n * @param {*} value The value to query.\\n * @returns {string} Returns the `toStringTag`.\\n */\\n var getTag = baseGetTag;\\n\\n // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\\n if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\\n (Map && getTag(new Map) != mapTag) ||\\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\\n (Set && getTag(new Set) != setTag) ||\\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\\n getTag = function(value) {\\n var result = baseGetTag(value),\\n Ctor = result == objectTag ? value.constructor : undefined,\\n ctorString = Ctor ? toSource(Ctor) : '';\\n\\n if (ctorString) {\\n switch (ctorString) {\\n case dataViewCtorString: return dataViewTag;\\n case mapCtorString: return mapTag;\\n case promiseCtorString: return promiseTag;\\n case setCtorString: return setTag;\\n case weakMapCtorString: return weakMapTag;\\n }\\n }\\n return result;\\n };\\n }\\n\\n /**\\n * Gets the view, applying any `transforms` to the `start` and `end` positions.\\n *\\n * @private\\n * @param {number} start The start of the view.\\n * @param {number} end The end of the view.\\n * @param {Array} transforms The transformations to apply to the view.\\n * @returns {Object} Returns an object containing the `start` and `end`\\n * positions of the view.\\n */\\n function getView(start, end, transforms) {\\n var index = -1,\\n length = transforms.length;\\n\\n while (++index < length) {\\n var data = transforms[index],\\n size = data.size;\\n\\n switch (data.type) {\\n case 'drop': start += size; break;\\n case 'dropRight': end -= size; break;\\n case 'take': end = nativeMin(end, start + size); break;\\n case 'takeRight': start = nativeMax(start, end - size); break;\\n }\\n }\\n return { 'start': start, 'end': end };\\n }\\n\\n /**\\n * Extracts wrapper details from the `source` body comment.\\n *\\n * @private\\n * @param {string} source The source to inspect.\\n * @returns {Array} Returns the wrapper details.\\n */\\n function getWrapDetails(source) {\\n var match = source.match(reWrapDetails);\\n return match ? match[1].split(reSplitDetails) : [];\\n }\\n\\n /**\\n * Checks if `path` exists on `object`.\\n *\\n * @private\\n * @param {Object} object The object to query.\\n * @param {Array|string} path The path to check.\\n * @param {Function} hasFunc The function to check properties.\\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\\n */\\n function hasPath(object, path, hasFunc) {\\n path = castPath(path, object);\\n\\n var index = -1,\\n length = path.length,\\n result = false;\\n\\n while (++index < length) {\\n var key = toKey(path[index]);\\n if (!(result = object != null && hasFunc(object, key))) {\\n break;\\n }\\n object = object[key];\\n }\\n if (result || ++index != length) {\\n return result;\\n }\\n length = object == null ? 0 : object.length;\\n return !!length && isLength(length) && isIndex(key, length) &&\\n (isArray(object) || isArguments(object));\\n }\\n\\n /**\\n * Initializes an array clone.\\n *\\n * @private\\n * @param {Array} array The array to clone.\\n * @returns {Array} Returns the initialized clone.\\n */\\n function initCloneArray(array) {\\n var length = array.length,\\n result = array.constructor(length);\\n\\n // Add properties assigned by `RegExp#exec`.\\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\\n result.index = array.index;\\n result.input = array.input;\\n }\\n return result;\\n }\\n\\n /**\\n * Initializes an object clone.\\n *\\n * @private\\n * @param {Object} object The object to clone.\\n * @returns {Object} Returns the initialized clone.\\n */\\n function initCloneObject(object) {\\n return (typeof object.constructor == 'function' && !isPrototype(object))\\n ? baseCreate(getPrototype(object))\\n : {};\\n }\\n\\n /**\\n * Initializes an object clone based on its `toStringTag`.\\n *\\n * **Note:** This function only supports cloning values with tags of\\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\\n *\\n * @private\\n * @param {Object} object The object to clone.\\n * @param {string} tag The `toStringTag` of the object to clone.\\n * @param {Function} cloneFunc The function to clone values.\\n * @param {boolean} [isDeep] Specify a deep clone.\\n * @returns {Object} Returns the initialized clone.\\n */\\n function initCloneByTag(object, tag, cloneFunc, isDeep) {\\n var Ctor = object.constructor;\\n switch (tag) {\\n case arrayBufferTag:\\n return cloneArrayBuffer(object);\\n\\n case boolTag:\\n case dateTag:\\n return new Ctor(+object);\\n\\n case dataViewTag:\\n return cloneDataView(object, isDeep);\\n\\n case float32Tag: case float64Tag:\\n case int8Tag: case int16Tag: case int32Tag:\\n case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:\\n return cloneTypedArray(object, isDeep);\\n\\n case mapTag:\\n return cloneMap(object, isDeep, cloneFunc);\\n\\n case numberTag:\\n case stringTag:\\n return new Ctor(object);\\n\\n case regexpTag:\\n return cloneRegExp(object);\\n\\n case setTag:\\n return cloneSet(object, isDeep, cloneFunc);\\n\\n case symbolTag:\\n return cloneSymbol(object);\\n }\\n }\\n\\n /**\\n * Inserts wrapper `details` in a comment at the top of the `source` body.\\n *\\n * @private\\n * @param {string} source The source to modify.\\n * @returns {Array} details The details to insert.\\n * @returns {string} Returns the modified source.\\n */\\n function insertWrapDetails(source, details) {\\n var length = details.length;\\n if (!length) {\\n return source;\\n }\\n var lastIndex = length - 1;\\n details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex];\\n details = details.join(length > 2 ? ', ' : ' ');\\n return source.replace(reWrapComment, '{\\\\n/* [wrapped with ' + details + '] */\\\\n');\\n }\\n\\n /**\\n * Checks if `value` is a flattenable `arguments` object or array.\\n *\\n * @private\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\\n */\\n function isFlattenable(value) {\\n return isArray(value) || isArguments(value) ||\\n !!(spreadableSymbol && value && value[spreadableSymbol]);\\n }\\n\\n /**\\n * Checks if `value` is a valid array-like index.\\n *\\n * @private\\n * @param {*} value The value to check.\\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\\n */\\n function isIndex(value, length) {\\n length = length == null ? MAX_SAFE_INTEGER : length;\\n return !!length &&\\n (typeof value == 'number' || reIsUint.test(value)) &&\\n (value > -1 && value % 1 == 0 && value < length);\\n }\\n\\n /**\\n * Checks if the given arguments are from an iteratee call.\\n *\\n * @private\\n * @param {*} value The potential iteratee value argument.\\n * @param {*} index The potential iteratee index or key argument.\\n * @param {*} object The potential iteratee object argument.\\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\\n * else `false`.\\n */\\n function isIterateeCall(value, index, object) {\\n if (!isObject(object)) {\\n return false;\\n }\\n var type = typeof index;\\n if (type == 'number'\\n ? (isArrayLike(object) && isIndex(index, object.length))\\n : (type == 'string' && index in object)\\n ) {\\n return eq(object[index], value);\\n }\\n return false;\\n }\\n\\n /**\\n * Checks if `value` is a property name and not a property path.\\n *\\n * @private\\n * @param {*} value The value to check.\\n * @param {Object} [object] The object to query keys on.\\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\\n */\\n function isKey(value, object) {\\n if (isArray(value)) {\\n return false;\\n }\\n var type = typeof value;\\n if (type == 'number' || type == 'symbol' || type == 'boolean' ||\\n value == null || isSymbol(value)) {\\n return true;\\n }\\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\\n (object != null && value in Object(object));\\n }\\n\\n /**\\n * Checks if `value` is suitable for use as unique object key.\\n *\\n * @private\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\\n */\\n function isKeyable(value) {\\n var type = typeof value;\\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\\n ? (value !== '__proto__')\\n : (value === null);\\n }\\n\\n /**\\n * Checks if `func` has a lazy counterpart.\\n *\\n * @private\\n * @param {Function} func The function to check.\\n * @returns {boolean} Returns `true` if `func` has a lazy counterpart,\\n * else `false`.\\n */\\n function isLaziable(func) {\\n var funcName = getFuncName(func),\\n other = lodash[funcName];\\n\\n if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {\\n return false;\\n }\\n if (func === other) {\\n return true;\\n }\\n var data = getData(other);\\n return !!data && func === data[0];\\n }\\n\\n /**\\n * Checks if `func` has its source masked.\\n *\\n * @private\\n * @param {Function} func The function to check.\\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\\n */\\n function isMasked(func) {\\n return !!maskSrcKey && (maskSrcKey in func);\\n }\\n\\n /**\\n * Checks if `func` is capable of being masked.\\n *\\n * @private\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `func` is maskable, else `false`.\\n */\\n var isMaskable = coreJsData ? isFunction : stubFalse;\\n\\n /**\\n * Checks if `value` is likely a prototype object.\\n *\\n * @private\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\\n */\\n function isPrototype(value) {\\n var Ctor = value && value.constructor,\\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\\n\\n return value === proto;\\n }\\n\\n /**\\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\\n *\\n * @private\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` if suitable for strict\\n * equality comparisons, else `false`.\\n */\\n function isStrictComparable(value) {\\n return value === value && !isObject(value);\\n }\\n\\n /**\\n * A specialized version of `matchesProperty` for source values suitable\\n * for strict equality comparisons, i.e. `===`.\\n *\\n * @private\\n * @param {string} key The key of the property to get.\\n * @param {*} srcValue The value to match.\\n * @returns {Function} Returns the new spec function.\\n */\\n function matchesStrictComparable(key, srcValue) {\\n return function(object) {\\n if (object == null) {\\n return false;\\n }\\n return object[key] === srcValue &&\\n (srcValue !== undefined || (key in Object(object)));\\n };\\n }\\n\\n /**\\n * A specialized version of `_.memoize` which clears the memoized function's\\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\\n *\\n * @private\\n * @param {Function} func The function to have its output memoized.\\n * @returns {Function} Returns the new memoized function.\\n */\\n function memoizeCapped(func) {\\n var result = memoize(func, function(key) {\\n if (cache.size === MAX_MEMOIZE_SIZE) {\\n cache.clear();\\n }\\n return key;\\n });\\n\\n var cache = result.cache;\\n return result;\\n }\\n\\n /**\\n * Merges the function metadata of `source` into `data`.\\n *\\n * Merging metadata reduces the number of wrappers used to invoke a function.\\n * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`\\n * may be applied regardless of execution order. Methods like `_.ary` and\\n * `_.rearg` modify function arguments, making the order in which they are\\n * executed important, preventing the merging of metadata. However, we make\\n * an exception for a safe combined case where curried functions have `_.ary`\\n * and or `_.rearg` applied.\\n *\\n * @private\\n * @param {Array} data The destination metadata.\\n * @param {Array} source The source metadata.\\n * @returns {Array} Returns `data`.\\n */\\n function mergeData(data, source) {\\n var bitmask = data[1],\\n srcBitmask = source[1],\\n newBitmask = bitmask | srcBitmask,\\n isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);\\n\\n var isCombo =\\n ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) ||\\n ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) ||\\n ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG));\\n\\n // Exit early if metadata can't be merged.\\n if (!(isCommon || isCombo)) {\\n return data;\\n }\\n // Use source `thisArg` if available.\\n if (srcBitmask & WRAP_BIND_FLAG) {\\n data[2] = source[2];\\n // Set when currying a bound function.\\n newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;\\n }\\n // Compose partial arguments.\\n var value = source[3];\\n if (value) {\\n var partials = data[3];\\n data[3] = partials ? composeArgs(partials, value, source[4]) : value;\\n data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];\\n }\\n // Compose partial right arguments.\\n value = source[5];\\n if (value) {\\n partials = data[5];\\n data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;\\n data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];\\n }\\n // Use source `argPos` if available.\\n value = source[7];\\n if (value) {\\n data[7] = value;\\n }\\n // Use source `ary` if it's smaller.\\n if (srcBitmask & WRAP_ARY_FLAG) {\\n data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);\\n }\\n // Use source `arity` if one is not provided.\\n if (data[9] == null) {\\n data[9] = source[9];\\n }\\n // Use source `func` and merge bitmasks.\\n data[0] = source[0];\\n data[1] = newBitmask;\\n\\n return data;\\n }\\n\\n /**\\n * This function is like\\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\\n * except that it includes inherited enumerable properties.\\n *\\n * @private\\n * @param {Object} object The object to query.\\n * @returns {Array} Returns the array of property names.\\n */\\n function nativeKeysIn(object) {\\n var result = [];\\n if (object != null) {\\n for (var key in Object(object)) {\\n result.push(key);\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * Converts `value` to a string using `Object.prototype.toString`.\\n *\\n * @private\\n * @param {*} value The value to convert.\\n * @returns {string} Returns the converted string.\\n */\\n function objectToString(value) {\\n return nativeObjectToString.call(value);\\n }\\n\\n /**\\n * A specialized version of `baseRest` which transforms the rest array.\\n *\\n * @private\\n * @param {Function} func The function to apply a rest parameter to.\\n * @param {number} [start=func.length-1] The start position of the rest parameter.\\n * @param {Function} transform The rest array transform.\\n * @returns {Function} Returns the new function.\\n */\\n function overRest(func, start, transform) {\\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\\n return function() {\\n var args = arguments,\\n index = -1,\\n length = nativeMax(args.length - start, 0),\\n array = Array(length);\\n\\n while (++index < length) {\\n array[index] = args[start + index];\\n }\\n index = -1;\\n var otherArgs = Array(start + 1);\\n while (++index < start) {\\n otherArgs[index] = args[index];\\n }\\n otherArgs[start] = transform(array);\\n return apply(func, this, otherArgs);\\n };\\n }\\n\\n /**\\n * Gets the parent value at `path` of `object`.\\n *\\n * @private\\n * @param {Object} object The object to query.\\n * @param {Array} path The path to get the parent value of.\\n * @returns {*} Returns the parent value.\\n */\\n function parent(object, path) {\\n return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));\\n }\\n\\n /**\\n * Reorder `array` according to the specified indexes where the element at\\n * the first index is assigned as the first element, the element at\\n * the second index is assigned as the second element, and so on.\\n *\\n * @private\\n * @param {Array} array The array to reorder.\\n * @param {Array} indexes The arranged array indexes.\\n * @returns {Array} Returns `array`.\\n */\\n function reorder(array, indexes) {\\n var arrLength = array.length,\\n length = nativeMin(indexes.length, arrLength),\\n oldArray = copyArray(array);\\n\\n while (length--) {\\n var index = indexes[length];\\n array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;\\n }\\n return array;\\n }\\n\\n /**\\n * Sets metadata for `func`.\\n *\\n * **Note:** If this function becomes hot, i.e. is invoked a lot in a short\\n * period of time, it will trip its breaker and transition to an identity\\n * function to avoid garbage collection pauses in V8. See\\n * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)\\n * for more details.\\n *\\n * @private\\n * @param {Function} func The function to associate metadata with.\\n * @param {*} data The metadata.\\n * @returns {Function} Returns `func`.\\n */\\n var setData = shortOut(baseSetData);\\n\\n /**\\n * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout).\\n *\\n * @private\\n * @param {Function} func The function to delay.\\n * @param {number} wait The number of milliseconds to delay invocation.\\n * @returns {number|Object} Returns the timer id or timeout object.\\n */\\n var setTimeout = ctxSetTimeout || function(func, wait) {\\n return root.setTimeout(func, wait);\\n };\\n\\n /**\\n * Sets the `toString` method of `func` to return `string`.\\n *\\n * @private\\n * @param {Function} func The function to modify.\\n * @param {Function} string The `toString` result.\\n * @returns {Function} Returns `func`.\\n */\\n var setToString = shortOut(baseSetToString);\\n\\n /**\\n * Sets the `toString` method of `wrapper` to mimic the source of `reference`\\n * with wrapper details in a comment at the top of the source body.\\n *\\n * @private\\n * @param {Function} wrapper The function to modify.\\n * @param {Function} reference The reference function.\\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\\n * @returns {Function} Returns `wrapper`.\\n */\\n function setWrapToString(wrapper, reference, bitmask) {\\n var source = (reference + '');\\n return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));\\n }\\n\\n /**\\n * Creates a function that'll short out and invoke `identity` instead\\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\\n * milliseconds.\\n *\\n * @private\\n * @param {Function} func The function to restrict.\\n * @returns {Function} Returns the new shortable function.\\n */\\n function shortOut(func) {\\n var count = 0,\\n lastCalled = 0;\\n\\n return function() {\\n var stamp = nativeNow(),\\n remaining = HOT_SPAN - (stamp - lastCalled);\\n\\n lastCalled = stamp;\\n if (remaining > 0) {\\n if (++count >= HOT_COUNT) {\\n return arguments[0];\\n }\\n } else {\\n count = 0;\\n }\\n return func.apply(undefined, arguments);\\n };\\n }\\n\\n /**\\n * A specialized version of `_.shuffle` which mutates and sets the size of `array`.\\n *\\n * @private\\n * @param {Array} array The array to shuffle.\\n * @param {number} [size=array.length] The size of `array`.\\n * @returns {Array} Returns `array`.\\n */\\n function shuffleSelf(array, size) {\\n var index = -1,\\n length = array.length,\\n lastIndex = length - 1;\\n\\n size = size === undefined ? length : size;\\n while (++index < size) {\\n var rand = baseRandom(index, lastIndex),\\n value = array[rand];\\n\\n array[rand] = array[index];\\n array[index] = value;\\n }\\n array.length = size;\\n return array;\\n }\\n\\n /**\\n * Converts `string` to a property path array.\\n *\\n * @private\\n * @param {string} string The string to convert.\\n * @returns {Array} Returns the property path array.\\n */\\n var stringToPath = memoizeCapped(function(string) {\\n var result = [];\\n if (reLeadingDot.test(string)) {\\n result.push('');\\n }\\n string.replace(rePropName, function(match, number, quote, string) {\\n result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match));\\n });\\n return result;\\n });\\n\\n /**\\n * Converts `value` to a string key if it's not a string or symbol.\\n *\\n * @private\\n * @param {*} value The value to inspect.\\n * @returns {string|symbol} Returns the key.\\n */\\n function toKey(value) {\\n if (typeof value == 'string' || isSymbol(value)) {\\n return value;\\n }\\n var result = (value + '');\\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\\n }\\n\\n /**\\n * Converts `func` to its source code.\\n *\\n * @private\\n * @param {Function} func The function to convert.\\n * @returns {string} Returns the source code.\\n */\\n function toSource(func) {\\n if (func != null) {\\n try {\\n return funcToString.call(func);\\n } catch (e) {}\\n try {\\n return (func + '');\\n } catch (e) {}\\n }\\n return '';\\n }\\n\\n /**\\n * Updates wrapper `details` based on `bitmask` flags.\\n *\\n * @private\\n * @returns {Array} details The details to modify.\\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\\n * @returns {Array} Returns `details`.\\n */\\n function updateWrapDetails(details, bitmask) {\\n arrayEach(wrapFlags, function(pair) {\\n var value = '_.' + pair[0];\\n if ((bitmask & pair[1]) && !arrayIncludes(details, value)) {\\n details.push(value);\\n }\\n });\\n return details.sort();\\n }\\n\\n /**\\n * Creates a clone of `wrapper`.\\n *\\n * @private\\n * @param {Object} wrapper The wrapper to clone.\\n * @returns {Object} Returns the cloned wrapper.\\n */\\n function wrapperClone(wrapper) {\\n if (wrapper instanceof LazyWrapper) {\\n return wrapper.clone();\\n }\\n var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);\\n result.__actions__ = copyArray(wrapper.__actions__);\\n result.__index__ = wrapper.__index__;\\n result.__values__ = wrapper.__values__;\\n return result;\\n }\\n\\n /*------------------------------------------------------------------------*/\\n\\n /**\\n * Creates an array of elements split into groups the length of `size`.\\n * If `array` can't be split evenly, the final chunk will be the remaining\\n * elements.\\n *\\n * @static\\n * @memberOf _\\n * @since 3.0.0\\n * @category Array\\n * @param {Array} array The array to process.\\n * @param {number} [size=1] The length of each chunk\\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\\n * @returns {Array} Returns the new array of chunks.\\n * @example\\n *\\n * _.chunk(['a', 'b', 'c', 'd'], 2);\\n * // => [['a', 'b'], ['c', 'd']]\\n *\\n * _.chunk(['a', 'b', 'c', 'd'], 3);\\n * // => [['a', 'b', 'c'], ['d']]\\n */\\n function chunk(array, size, guard) {\\n if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) {\\n size = 1;\\n } else {\\n size = nativeMax(toInteger(size), 0);\\n }\\n var length = array == null ? 0 : array.length;\\n if (!length || size < 1) {\\n return [];\\n }\\n var index = 0,\\n resIndex = 0,\\n result = Array(nativeCeil(length / size));\\n\\n while (index < length) {\\n result[resIndex++] = baseSlice(array, index, (index += size));\\n }\\n return result;\\n }\\n\\n /**\\n * Creates an array with all falsey values removed. The values `false`, `null`,\\n * `0`, `\\\"\\\"`, `undefined`, and `NaN` are falsey.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Array\\n * @param {Array} array The array to compact.\\n * @returns {Array} Returns the new array of filtered values.\\n * @example\\n *\\n * _.compact([0, 1, false, 2, '', 3]);\\n * // => [1, 2, 3]\\n */\\n function compact(array) {\\n var index = -1,\\n length = array == null ? 0 : array.length,\\n resIndex = 0,\\n result = [];\\n\\n while (++index < length) {\\n var value = array[index];\\n if (value) {\\n result[resIndex++] = value;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * Creates a new array concatenating `array` with any additional arrays\\n * and/or values.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Array\\n * @param {Array} array The array to concatenate.\\n * @param {...*} [values] The values to concatenate.\\n * @returns {Array} Returns the new concatenated array.\\n * @example\\n *\\n * var array = [1];\\n * var other = _.concat(array, 2, [3], [[4]]);\\n *\\n * console.log(other);\\n * // => [1, 2, 3, [4]]\\n *\\n * console.log(array);\\n * // => [1]\\n */\\n function concat() {\\n var length = arguments.length;\\n if (!length) {\\n return [];\\n }\\n var args = Array(length - 1),\\n array = arguments[0],\\n index = length;\\n\\n while (index--) {\\n args[index - 1] = arguments[index];\\n }\\n return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));\\n }\\n\\n /**\\n * Creates an array of `array` values not included in the other given arrays\\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\\n * for equality comparisons. The order and references of result values are\\n * determined by the first array.\\n *\\n * **Note:** Unlike `_.pullAll`, this method returns a new array.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Array\\n * @param {Array} array The array to inspect.\\n * @param {...Array} [values] The values to exclude.\\n * @returns {Array} Returns the new array of filtered values.\\n * @see _.without, _.xor\\n * @example\\n *\\n * _.difference([2, 1], [2, 3]);\\n * // => [1]\\n */\\n var difference = baseRest(function(array, values) {\\n return isArrayLikeObject(array)\\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))\\n : [];\\n });\\n\\n /**\\n * This method is like `_.difference` except that it accepts `iteratee` which\\n * is invoked for each element of `array` and `values` to generate the criterion\\n * by which they're compared. The order and references of result values are\\n * determined by the first array. The iteratee is invoked with one argument:\\n * (value).\\n *\\n * **Note:** Unlike `_.pullAllBy`, this method returns a new array.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Array\\n * @param {Array} array The array to inspect.\\n * @param {...Array} [values] The values to exclude.\\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\\n * @returns {Array} Returns the new array of filtered values.\\n * @example\\n *\\n * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);\\n * // => [1.2]\\n *\\n * // The `_.property` iteratee shorthand.\\n * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');\\n * // => [{ 'x': 2 }]\\n */\\n var differenceBy = baseRest(function(array, values) {\\n var iteratee = last(values);\\n if (isArrayLikeObject(iteratee)) {\\n iteratee = undefined;\\n }\\n return isArrayLikeObject(array)\\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee, 2))\\n : [];\\n });\\n\\n /**\\n * This method is like `_.difference` except that it accepts `comparator`\\n * which is invoked to compare elements of `array` to `values`. The order and\\n * references of result values are determined by the first array. The comparator\\n * is invoked with two arguments: (arrVal, othVal).\\n *\\n * **Note:** Unlike `_.pullAllWith`, this method returns a new array.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Array\\n * @param {Array} array The array to inspect.\\n * @param {...Array} [values] The values to exclude.\\n * @param {Function} [comparator] The comparator invoked per element.\\n * @returns {Array} Returns the new array of filtered values.\\n * @example\\n *\\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\\n *\\n * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);\\n * // => [{ 'x': 2, 'y': 1 }]\\n */\\n var differenceWith = baseRest(function(array, values) {\\n var comparator = last(values);\\n if (isArrayLikeObject(comparator)) {\\n comparator = undefined;\\n }\\n return isArrayLikeObject(array)\\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), undefined, comparator)\\n : [];\\n });\\n\\n /**\\n * Creates a slice of `array` with `n` elements dropped from the beginning.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.5.0\\n * @category Array\\n * @param {Array} array The array to query.\\n * @param {number} [n=1] The number of elements to drop.\\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\\n * @returns {Array} Returns the slice of `array`.\\n * @example\\n *\\n * _.drop([1, 2, 3]);\\n * // => [2, 3]\\n *\\n * _.drop([1, 2, 3], 2);\\n * // => [3]\\n *\\n * _.drop([1, 2, 3], 5);\\n * // => []\\n *\\n * _.drop([1, 2, 3], 0);\\n * // => [1, 2, 3]\\n */\\n function drop(array, n, guard) {\\n var length = array == null ? 0 : array.length;\\n if (!length) {\\n return [];\\n }\\n n = (guard || n === undefined) ? 1 : toInteger(n);\\n return baseSlice(array, n < 0 ? 0 : n, length);\\n }\\n\\n /**\\n * Creates a slice of `array` with `n` elements dropped from the end.\\n *\\n * @static\\n * @memberOf _\\n * @since 3.0.0\\n * @category Array\\n * @param {Array} array The array to query.\\n * @param {number} [n=1] The number of elements to drop.\\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\\n * @returns {Array} Returns the slice of `array`.\\n * @example\\n *\\n * _.dropRight([1, 2, 3]);\\n * // => [1, 2]\\n *\\n * _.dropRight([1, 2, 3], 2);\\n * // => [1]\\n *\\n * _.dropRight([1, 2, 3], 5);\\n * // => []\\n *\\n * _.dropRight([1, 2, 3], 0);\\n * // => [1, 2, 3]\\n */\\n function dropRight(array, n, guard) {\\n var length = array == null ? 0 : array.length;\\n if (!length) {\\n return [];\\n }\\n n = (guard || n === undefined) ? 1 : toInteger(n);\\n n = length - n;\\n return baseSlice(array, 0, n < 0 ? 0 : n);\\n }\\n\\n /**\\n * Creates a slice of `array` excluding elements dropped from the end.\\n * Elements are dropped until `predicate` returns falsey. The predicate is\\n * invoked with three arguments: (value, index, array).\\n *\\n * @static\\n * @memberOf _\\n * @since 3.0.0\\n * @category Array\\n * @param {Array} array The array to query.\\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\\n * @returns {Array} Returns the slice of `array`.\\n * @example\\n *\\n * var users = [\\n * { 'user': 'barney', 'active': true },\\n * { 'user': 'fred', 'active': false },\\n * { 'user': 'pebbles', 'active': false }\\n * ];\\n *\\n * _.dropRightWhile(users, function(o) { return !o.active; });\\n * // => objects for ['barney']\\n *\\n * // The `_.matches` iteratee shorthand.\\n * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });\\n * // => objects for ['barney', 'fred']\\n *\\n * // The `_.matchesProperty` iteratee shorthand.\\n * _.dropRightWhile(users, ['active', false]);\\n * // => objects for ['barney']\\n *\\n * // The `_.property` iteratee shorthand.\\n * _.dropRightWhile(users, 'active');\\n * // => objects for ['barney', 'fred', 'pebbles']\\n */\\n function dropRightWhile(array, predicate) {\\n return (array && array.length)\\n ? baseWhile(array, getIteratee(predicate, 3), true, true)\\n : [];\\n }\\n\\n /**\\n * Creates a slice of `array` excluding elements dropped from the beginning.\\n * Elements are dropped until `predicate` returns falsey. The predicate is\\n * invoked with three arguments: (value, index, array).\\n *\\n * @static\\n * @memberOf _\\n * @since 3.0.0\\n * @category Array\\n * @param {Array} array The array to query.\\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\\n * @returns {Array} Returns the slice of `array`.\\n * @example\\n *\\n * var users = [\\n * { 'user': 'barney', 'active': false },\\n * { 'user': 'fred', 'active': false },\\n * { 'user': 'pebbles', 'active': true }\\n * ];\\n *\\n * _.dropWhile(users, function(o) { return !o.active; });\\n * // => objects for ['pebbles']\\n *\\n * // The `_.matches` iteratee shorthand.\\n * _.dropWhile(users, { 'user': 'barney', 'active': false });\\n * // => objects for ['fred', 'pebbles']\\n *\\n * // The `_.matchesProperty` iteratee shorthand.\\n * _.dropWhile(users, ['active', false]);\\n * // => objects for ['pebbles']\\n *\\n * // The `_.property` iteratee shorthand.\\n * _.dropWhile(users, 'active');\\n * // => objects for ['barney', 'fred', 'pebbles']\\n */\\n function dropWhile(array, predicate) {\\n return (array && array.length)\\n ? baseWhile(array, getIteratee(predicate, 3), true)\\n : [];\\n }\\n\\n /**\\n * Fills elements of `array` with `value` from `start` up to, but not\\n * including, `end`.\\n *\\n * **Note:** This method mutates `array`.\\n *\\n * @static\\n * @memberOf _\\n * @since 3.2.0\\n * @category Array\\n * @param {Array} array The array to fill.\\n * @param {*} value The value to fill `array` with.\\n * @param {number} [start=0] The start position.\\n * @param {number} [end=array.length] The end position.\\n * @returns {Array} Returns `array`.\\n * @example\\n *\\n * var array = [1, 2, 3];\\n *\\n * _.fill(array, 'a');\\n * console.log(array);\\n * // => ['a', 'a', 'a']\\n *\\n * _.fill(Array(3), 2);\\n * // => [2, 2, 2]\\n *\\n * _.fill([4, 6, 8, 10], '*', 1, 3);\\n * // => [4, '*', '*', 10]\\n */\\n function fill(array, value, start, end) {\\n var length = array == null ? 0 : array.length;\\n if (!length) {\\n return [];\\n }\\n if (start && typeof start != 'number' && isIterateeCall(array, value, start)) {\\n start = 0;\\n end = length;\\n }\\n return baseFill(array, value, start, end);\\n }\\n\\n /**\\n * This method is like `_.find` except that it returns the index of the first\\n * element `predicate` returns truthy for instead of the element itself.\\n *\\n * @static\\n * @memberOf _\\n * @since 1.1.0\\n * @category Array\\n * @param {Array} array The array to inspect.\\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\\n * @param {number} [fromIndex=0] The index to search from.\\n * @returns {number} Returns the index of the found element, else `-1`.\\n * @example\\n *\\n * var users = [\\n * { 'user': 'barney', 'active': false },\\n * { 'user': 'fred', 'active': false },\\n * { 'user': 'pebbles', 'active': true }\\n * ];\\n *\\n * _.findIndex(users, function(o) { return o.user == 'barney'; });\\n * // => 0\\n *\\n * // The `_.matches` iteratee shorthand.\\n * _.findIndex(users, { 'user': 'fred', 'active': false });\\n * // => 1\\n *\\n * // The `_.matchesProperty` iteratee shorthand.\\n * _.findIndex(users, ['active', false]);\\n * // => 0\\n *\\n * // The `_.property` iteratee shorthand.\\n * _.findIndex(users, 'active');\\n * // => 2\\n */\\n function findIndex(array, predicate, fromIndex) {\\n var length = array == null ? 0 : array.length;\\n if (!length) {\\n return -1;\\n }\\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\\n if (index < 0) {\\n index = nativeMax(length + index, 0);\\n }\\n return baseFindIndex(array, getIteratee(predicate, 3), index);\\n }\\n\\n /**\\n * This method is like `_.findIndex` except that it iterates over elements\\n * of `collection` from right to left.\\n *\\n * @static\\n * @memberOf _\\n * @since 2.0.0\\n * @category Array\\n * @param {Array} array The array to inspect.\\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\\n * @param {number} [fromIndex=array.length-1] The index to search from.\\n * @returns {number} Returns the index of the found element, else `-1`.\\n * @example\\n *\\n * var users = [\\n * { 'user': 'barney', 'active': true },\\n * { 'user': 'fred', 'active': false },\\n * { 'user': 'pebbles', 'active': false }\\n * ];\\n *\\n * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });\\n * // => 2\\n *\\n * // The `_.matches` iteratee shorthand.\\n * _.findLastIndex(users, { 'user': 'barney', 'active': true });\\n * // => 0\\n *\\n * // The `_.matchesProperty` iteratee shorthand.\\n * _.findLastIndex(users, ['active', false]);\\n * // => 2\\n *\\n * // The `_.property` iteratee shorthand.\\n * _.findLastIndex(users, 'active');\\n * // => 0\\n */\\n function findLastIndex(array, predicate, fromIndex) {\\n var length = array == null ? 0 : array.length;\\n if (!length) {\\n return -1;\\n }\\n var index = length - 1;\\n if (fromIndex !== undefined) {\\n index = toInteger(fromIndex);\\n index = fromIndex < 0\\n ? nativeMax(length + index, 0)\\n : nativeMin(index, length - 1);\\n }\\n return baseFindIndex(array, getIteratee(predicate, 3), index, true);\\n }\\n\\n /**\\n * Flattens `array` a single level deep.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Array\\n * @param {Array} array The array to flatten.\\n * @returns {Array} Returns the new flattened array.\\n * @example\\n *\\n * _.flatten([1, [2, [3, [4]], 5]]);\\n * // => [1, 2, [3, [4]], 5]\\n */\\n function flatten(array) {\\n var length = array == null ? 0 : array.length;\\n return length ? baseFlatten(array, 1) : [];\\n }\\n\\n /**\\n * Recursively flattens `array`.\\n *\\n * @static\\n * @memberOf _\\n * @since 3.0.0\\n * @category Array\\n * @param {Array} array The array to flatten.\\n * @returns {Array} Returns the new flattened array.\\n * @example\\n *\\n * _.flattenDeep([1, [2, [3, [4]], 5]]);\\n * // => [1, 2, 3, 4, 5]\\n */\\n function flattenDeep(array) {\\n var length = array == null ? 0 : array.length;\\n return length ? baseFlatten(array, INFINITY) : [];\\n }\\n\\n /**\\n * Recursively flatten `array` up to `depth` times.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.4.0\\n * @category Array\\n * @param {Array} array The array to flatten.\\n * @param {number} [depth=1] The maximum recursion depth.\\n * @returns {Array} Returns the new flattened array.\\n * @example\\n *\\n * var array = [1, [2, [3, [4]], 5]];\\n *\\n * _.flattenDepth(array, 1);\\n * // => [1, 2, [3, [4]], 5]\\n *\\n * _.flattenDepth(array, 2);\\n * // => [1, 2, 3, [4], 5]\\n */\\n function flattenDepth(array, depth) {\\n var length = array == null ? 0 : array.length;\\n if (!length) {\\n return [];\\n }\\n depth = depth === undefined ? 1 : toInteger(depth);\\n return baseFlatten(array, depth);\\n }\\n\\n /**\\n * The inverse of `_.toPairs`; this method returns an object composed\\n * from key-value `pairs`.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Array\\n * @param {Array} pairs The key-value pairs.\\n * @returns {Object} Returns the new object.\\n * @example\\n *\\n * _.fromPairs([['a', 1], ['b', 2]]);\\n * // => { 'a': 1, 'b': 2 }\\n */\\n function fromPairs(pairs) {\\n var index = -1,\\n length = pairs == null ? 0 : pairs.length,\\n result = {};\\n\\n while (++index < length) {\\n var pair = pairs[index];\\n result[pair[0]] = pair[1];\\n }\\n return result;\\n }\\n\\n /**\\n * Gets the first element of `array`.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @alias first\\n * @category Array\\n * @param {Array} array The array to query.\\n * @returns {*} Returns the first element of `array`.\\n * @example\\n *\\n * _.head([1, 2, 3]);\\n * // => 1\\n *\\n * _.head([]);\\n * // => undefined\\n */\\n function head(array) {\\n return (array && array.length) ? array[0] : undefined;\\n }\\n\\n /**\\n * Gets the index at which the first occurrence of `value` is found in `array`\\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\\n * for equality comparisons. If `fromIndex` is negative, it's used as the\\n * offset from the end of `array`.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Array\\n * @param {Array} array The array to inspect.\\n * @param {*} value The value to search for.\\n * @param {number} [fromIndex=0] The index to search from.\\n * @returns {number} Returns the index of the matched value, else `-1`.\\n * @example\\n *\\n * _.indexOf([1, 2, 1, 2], 2);\\n * // => 1\\n *\\n * // Search from the `fromIndex`.\\n * _.indexOf([1, 2, 1, 2], 2, 2);\\n * // => 3\\n */\\n function indexOf(array, value, fromIndex) {\\n var length = array == null ? 0 : array.length;\\n if (!length) {\\n return -1;\\n }\\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\\n if (index < 0) {\\n index = nativeMax(length + index, 0);\\n }\\n return baseIndexOf(array, value, index);\\n }\\n\\n /**\\n * Gets all but the last element of `array`.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Array\\n * @param {Array} array The array to query.\\n * @returns {Array} Returns the slice of `array`.\\n * @example\\n *\\n * _.initial([1, 2, 3]);\\n * // => [1, 2]\\n */\\n function initial(array) {\\n var length = array == null ? 0 : array.length;\\n return length ? baseSlice(array, 0, -1) : [];\\n }\\n\\n /**\\n * Creates an array of unique values that are included in all given arrays\\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\\n * for equality comparisons. The order and references of result values are\\n * determined by the first array.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Array\\n * @param {...Array} [arrays] The arrays to inspect.\\n * @returns {Array} Returns the new array of intersecting values.\\n * @example\\n *\\n * _.intersection([2, 1], [2, 3]);\\n * // => [2]\\n */\\n var intersection = baseRest(function(arrays) {\\n var mapped = arrayMap(arrays, castArrayLikeObject);\\n return (mapped.length && mapped[0] === arrays[0])\\n ? baseIntersection(mapped)\\n : [];\\n });\\n\\n /**\\n * This method is like `_.intersection` except that it accepts `iteratee`\\n * which is invoked for each element of each `arrays` to generate the criterion\\n * by which they're compared. The order and references of result values are\\n * determined by the first array. The iteratee is invoked with one argument:\\n * (value).\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Array\\n * @param {...Array} [arrays] The arrays to inspect.\\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\\n * @returns {Array} Returns the new array of intersecting values.\\n * @example\\n *\\n * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);\\n * // => [2.1]\\n *\\n * // The `_.property` iteratee shorthand.\\n * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\\n * // => [{ 'x': 1 }]\\n */\\n var intersectionBy = baseRest(function(arrays) {\\n var iteratee = last(arrays),\\n mapped = arrayMap(arrays, castArrayLikeObject);\\n\\n if (iteratee === last(mapped)) {\\n iteratee = undefined;\\n } else {\\n mapped.pop();\\n }\\n return (mapped.length && mapped[0] === arrays[0])\\n ? baseIntersection(mapped, getIteratee(iteratee, 2))\\n : [];\\n });\\n\\n /**\\n * This method is like `_.intersection` except that it accepts `comparator`\\n * which is invoked to compare elements of `arrays`. The order and references\\n * of result values are determined by the first array. The comparator is\\n * invoked with two arguments: (arrVal, othVal).\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Array\\n * @param {...Array} [arrays] The arrays to inspect.\\n * @param {Function} [comparator] The comparator invoked per element.\\n * @returns {Array} Returns the new array of intersecting values.\\n * @example\\n *\\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\\n *\\n * _.intersectionWith(objects, others, _.isEqual);\\n * // => [{ 'x': 1, 'y': 2 }]\\n */\\n var intersectionWith = baseRest(function(arrays) {\\n var comparator = last(arrays),\\n mapped = arrayMap(arrays, castArrayLikeObject);\\n\\n comparator = typeof comparator == 'function' ? comparator : undefined;\\n if (comparator) {\\n mapped.pop();\\n }\\n return (mapped.length && mapped[0] === arrays[0])\\n ? baseIntersection(mapped, undefined, comparator)\\n : [];\\n });\\n\\n /**\\n * Converts all elements in `array` into a string separated by `separator`.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Array\\n * @param {Array} array The array to convert.\\n * @param {string} [separator=','] The element separator.\\n * @returns {string} Returns the joined string.\\n * @example\\n *\\n * _.join(['a', 'b', 'c'], '~');\\n * // => 'a~b~c'\\n */\\n function join(array, separator) {\\n return array == null ? '' : nativeJoin.call(array, separator);\\n }\\n\\n /**\\n * Gets the last element of `array`.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Array\\n * @param {Array} array The array to query.\\n * @returns {*} Returns the last element of `array`.\\n * @example\\n *\\n * _.last([1, 2, 3]);\\n * // => 3\\n */\\n function last(array) {\\n var length = array == null ? 0 : array.length;\\n return length ? array[length - 1] : undefined;\\n }\\n\\n /**\\n * This method is like `_.indexOf` except that it iterates over elements of\\n * `array` from right to left.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Array\\n * @param {Array} array The array to inspect.\\n * @param {*} value The value to search for.\\n * @param {number} [fromIndex=array.length-1] The index to search from.\\n * @returns {number} Returns the index of the matched value, else `-1`.\\n * @example\\n *\\n * _.lastIndexOf([1, 2, 1, 2], 2);\\n * // => 3\\n *\\n * // Search from the `fromIndex`.\\n * _.lastIndexOf([1, 2, 1, 2], 2, 2);\\n * // => 1\\n */\\n function lastIndexOf(array, value, fromIndex) {\\n var length = array == null ? 0 : array.length;\\n if (!length) {\\n return -1;\\n }\\n var index = length;\\n if (fromIndex !== undefined) {\\n index = toInteger(fromIndex);\\n index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);\\n }\\n return value === value\\n ? strictLastIndexOf(array, value, index)\\n : baseFindIndex(array, baseIsNaN, index, true);\\n }\\n\\n /**\\n * Gets the element at index `n` of `array`. If `n` is negative, the nth\\n * element from the end is returned.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.11.0\\n * @category Array\\n * @param {Array} array The array to query.\\n * @param {number} [n=0] The index of the element to return.\\n * @returns {*} Returns the nth element of `array`.\\n * @example\\n *\\n * var array = ['a', 'b', 'c', 'd'];\\n *\\n * _.nth(array, 1);\\n * // => 'b'\\n *\\n * _.nth(array, -2);\\n * // => 'c';\\n */\\n function nth(array, n) {\\n return (array && array.length) ? baseNth(array, toInteger(n)) : undefined;\\n }\\n\\n /**\\n * Removes all given values from `array` using\\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\\n * for equality comparisons.\\n *\\n * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`\\n * to remove elements from an array by predicate.\\n *\\n * @static\\n * @memberOf _\\n * @since 2.0.0\\n * @category Array\\n * @param {Array} array The array to modify.\\n * @param {...*} [values] The values to remove.\\n * @returns {Array} Returns `array`.\\n * @example\\n *\\n * var array = ['a', 'b', 'c', 'a', 'b', 'c'];\\n *\\n * _.pull(array, 'a', 'c');\\n * console.log(array);\\n * // => ['b', 'b']\\n */\\n var pull = baseRest(pullAll);\\n\\n /**\\n * This method is like `_.pull` except that it accepts an array of values to remove.\\n *\\n * **Note:** Unlike `_.difference`, this method mutates `array`.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Array\\n * @param {Array} array The array to modify.\\n * @param {Array} values The values to remove.\\n * @returns {Array} Returns `array`.\\n * @example\\n *\\n * var array = ['a', 'b', 'c', 'a', 'b', 'c'];\\n *\\n * _.pullAll(array, ['a', 'c']);\\n * console.log(array);\\n * // => ['b', 'b']\\n */\\n function pullAll(array, values) {\\n return (array && array.length && values && values.length)\\n ? basePullAll(array, values)\\n : array;\\n }\\n\\n /**\\n * This method is like `_.pullAll` except that it accepts `iteratee` which is\\n * invoked for each element of `array` and `values` to generate the criterion\\n * by which they're compared. The iteratee is invoked with one argument: (value).\\n *\\n * **Note:** Unlike `_.differenceBy`, this method mutates `array`.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Array\\n * @param {Array} array The array to modify.\\n * @param {Array} values The values to remove.\\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\\n * @returns {Array} Returns `array`.\\n * @example\\n *\\n * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];\\n *\\n * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');\\n * console.log(array);\\n * // => [{ 'x': 2 }]\\n */\\n function pullAllBy(array, values, iteratee) {\\n return (array && array.length && values && values.length)\\n ? basePullAll(array, values, getIteratee(iteratee, 2))\\n : array;\\n }\\n\\n /**\\n * This method is like `_.pullAll` except that it accepts `comparator` which\\n * is invoked to compare elements of `array` to `values`. The comparator is\\n * invoked with two arguments: (arrVal, othVal).\\n *\\n * **Note:** Unlike `_.differenceWith`, this method mutates `array`.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.6.0\\n * @category Array\\n * @param {Array} array The array to modify.\\n * @param {Array} values The values to remove.\\n * @param {Function} [comparator] The comparator invoked per element.\\n * @returns {Array} Returns `array`.\\n * @example\\n *\\n * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];\\n *\\n * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);\\n * console.log(array);\\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]\\n */\\n function pullAllWith(array, values, comparator) {\\n return (array && array.length && values && values.length)\\n ? basePullAll(array, values, undefined, comparator)\\n : array;\\n }\\n\\n /**\\n * Removes elements from `array` corresponding to `indexes` and returns an\\n * array of removed elements.\\n *\\n * **Note:** Unlike `_.at`, this method mutates `array`.\\n *\\n * @static\\n * @memberOf _\\n * @since 3.0.0\\n * @category Array\\n * @param {Array} array The array to modify.\\n * @param {...(number|number[])} [indexes] The indexes of elements to remove.\\n * @returns {Array} Returns the new array of removed elements.\\n * @example\\n *\\n * var array = ['a', 'b', 'c', 'd'];\\n * var pulled = _.pullAt(array, [1, 3]);\\n *\\n * console.log(array);\\n * // => ['a', 'c']\\n *\\n * console.log(pulled);\\n * // => ['b', 'd']\\n */\\n var pullAt = flatRest(function(array, indexes) {\\n var length = array == null ? 0 : array.length,\\n result = baseAt(array, indexes);\\n\\n basePullAt(array, arrayMap(indexes, function(index) {\\n return isIndex(index, length) ? +index : index;\\n }).sort(compareAscending));\\n\\n return result;\\n });\\n\\n /**\\n * Removes all elements from `array` that `predicate` returns truthy for\\n * and returns an array of the removed elements. The predicate is invoked\\n * with three arguments: (value, index, array).\\n *\\n * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`\\n * to pull elements from an array by value.\\n *\\n * @static\\n * @memberOf _\\n * @since 2.0.0\\n * @category Array\\n * @param {Array} array The array to modify.\\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\\n * @returns {Array} Returns the new array of removed elements.\\n * @example\\n *\\n * var array = [1, 2, 3, 4];\\n * var evens = _.remove(array, function(n) {\\n * return n % 2 == 0;\\n * });\\n *\\n * console.log(array);\\n * // => [1, 3]\\n *\\n * console.log(evens);\\n * // => [2, 4]\\n */\\n function remove(array, predicate) {\\n var result = [];\\n if (!(array && array.length)) {\\n return result;\\n }\\n var index = -1,\\n indexes = [],\\n length = array.length;\\n\\n predicate = getIteratee(predicate, 3);\\n while (++index < length) {\\n var value = array[index];\\n if (predicate(value, index, array)) {\\n result.push(value);\\n indexes.push(index);\\n }\\n }\\n basePullAt(array, indexes);\\n return result;\\n }\\n\\n /**\\n * Reverses `array` so that the first element becomes the last, the second\\n * element becomes the second to last, and so on.\\n *\\n * **Note:** This method mutates `array` and is based on\\n * [`Array#reverse`](https://mdn.io/Array/reverse).\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Array\\n * @param {Array} array The array to modify.\\n * @returns {Array} Returns `array`.\\n * @example\\n *\\n * var array = [1, 2, 3];\\n *\\n * _.reverse(array);\\n * // => [3, 2, 1]\\n *\\n * console.log(array);\\n * // => [3, 2, 1]\\n */\\n function reverse(array) {\\n return array == null ? array : nativeReverse.call(array);\\n }\\n\\n /**\\n * Creates a slice of `array` from `start` up to, but not including, `end`.\\n *\\n * **Note:** This method is used instead of\\n * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are\\n * returned.\\n *\\n * @static\\n * @memberOf _\\n * @since 3.0.0\\n * @category Array\\n * @param {Array} array The array to slice.\\n * @param {number} [start=0] The start position.\\n * @param {number} [end=array.length] The end position.\\n * @returns {Array} Returns the slice of `array`.\\n */\\n function slice(array, start, end) {\\n var length = array == null ? 0 : array.length;\\n if (!length) {\\n return [];\\n }\\n if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {\\n start = 0;\\n end = length;\\n }\\n else {\\n start = start == null ? 0 : toInteger(start);\\n end = end === undefined ? length : toInteger(end);\\n }\\n return baseSlice(array, start, end);\\n }\\n\\n /**\\n * Uses a binary search to determine the lowest index at which `value`\\n * should be inserted into `array` in order to maintain its sort order.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Array\\n * @param {Array} array The sorted array to inspect.\\n * @param {*} value The value to evaluate.\\n * @returns {number} Returns the index at which `value` should be inserted\\n * into `array`.\\n * @example\\n *\\n * _.sortedIndex([30, 50], 40);\\n * // => 1\\n */\\n function sortedIndex(array, value) {\\n return baseSortedIndex(array, value);\\n }\\n\\n /**\\n * This method is like `_.sortedIndex` except that it accepts `iteratee`\\n * which is invoked for `value` and each element of `array` to compute their\\n * sort ranking. The iteratee is invoked with one argument: (value).\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Array\\n * @param {Array} array The sorted array to inspect.\\n * @param {*} value The value to evaluate.\\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\\n * @returns {number} Returns the index at which `value` should be inserted\\n * into `array`.\\n * @example\\n *\\n * var objects = [{ 'x': 4 }, { 'x': 5 }];\\n *\\n * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });\\n * // => 0\\n *\\n * // The `_.property` iteratee shorthand.\\n * _.sortedIndexBy(objects, { 'x': 4 }, 'x');\\n * // => 0\\n */\\n function sortedIndexBy(array, value, iteratee) {\\n return baseSortedIndexBy(array, value, getIteratee(iteratee, 2));\\n }\\n\\n /**\\n * This method is like `_.indexOf` except that it performs a binary\\n * search on a sorted `array`.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Array\\n * @param {Array} array The array to inspect.\\n * @param {*} value The value to search for.\\n * @returns {number} Returns the index of the matched value, else `-1`.\\n * @example\\n *\\n * _.sortedIndexOf([4, 5, 5, 5, 6], 5);\\n * // => 1\\n */\\n function sortedIndexOf(array, value) {\\n var length = array == null ? 0 : array.length;\\n if (length) {\\n var index = baseSortedIndex(array, value);\\n if (index < length && eq(array[index], value)) {\\n return index;\\n }\\n }\\n return -1;\\n }\\n\\n /**\\n * This method is like `_.sortedIndex` except that it returns the highest\\n * index at which `value` should be inserted into `array` in order to\\n * maintain its sort order.\\n *\\n * @static\\n * @memberOf _\\n * @since 3.0.0\\n * @category Array\\n * @param {Array} array The sorted array to inspect.\\n * @param {*} value The value to evaluate.\\n * @returns {number} Returns the index at which `value` should be inserted\\n * into `array`.\\n * @example\\n *\\n * _.sortedLastIndex([4, 5, 5, 5, 6], 5);\\n * // => 4\\n */\\n function sortedLastIndex(array, value) {\\n return baseSortedIndex(array, value, true);\\n }\\n\\n /**\\n * This method is like `_.sortedLastIndex` except that it accepts `iteratee`\\n * which is invoked for `value` and each element of `array` to compute their\\n * sort ranking. The iteratee is invoked with one argument: (value).\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Array\\n * @param {Array} array The sorted array to inspect.\\n * @param {*} value The value to evaluate.\\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\\n * @returns {number} Returns the index at which `value` should be inserted\\n * into `array`.\\n * @example\\n *\\n * var objects = [{ 'x': 4 }, { 'x': 5 }];\\n *\\n * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });\\n * // => 1\\n *\\n * // The `_.property` iteratee shorthand.\\n * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');\\n * // => 1\\n */\\n function sortedLastIndexBy(array, value, iteratee) {\\n return baseSortedIndexBy(array, value, getIteratee(iteratee, 2), true);\\n }\\n\\n /**\\n * This method is like `_.lastIndexOf` except that it performs a binary\\n * search on a sorted `array`.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Array\\n * @param {Array} array The array to inspect.\\n * @param {*} value The value to search for.\\n * @returns {number} Returns the index of the matched value, else `-1`.\\n * @example\\n *\\n * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);\\n * // => 3\\n */\\n function sortedLastIndexOf(array, value) {\\n var length = array == null ? 0 : array.length;\\n if (length) {\\n var index = baseSortedIndex(array, value, true) - 1;\\n if (eq(array[index], value)) {\\n return index;\\n }\\n }\\n return -1;\\n }\\n\\n /**\\n * This method is like `_.uniq` except that it's designed and optimized\\n * for sorted arrays.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Array\\n * @param {Array} array The array to inspect.\\n * @returns {Array} Returns the new duplicate free array.\\n * @example\\n *\\n * _.sortedUniq([1, 1, 2]);\\n * // => [1, 2]\\n */\\n function sortedUniq(array) {\\n return (array && array.length)\\n ? baseSortedUniq(array)\\n : [];\\n }\\n\\n /**\\n * This method is like `_.uniqBy` except that it's designed and optimized\\n * for sorted arrays.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Array\\n * @param {Array} array The array to inspect.\\n * @param {Function} [iteratee] The iteratee invoked per element.\\n * @returns {Array} Returns the new duplicate free array.\\n * @example\\n *\\n * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);\\n * // => [1.1, 2.3]\\n */\\n function sortedUniqBy(array, iteratee) {\\n return (array && array.length)\\n ? baseSortedUniq(array, getIteratee(iteratee, 2))\\n : [];\\n }\\n\\n /**\\n * Gets all but the first element of `array`.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Array\\n * @param {Array} array The array to query.\\n * @returns {Array} Returns the slice of `array`.\\n * @example\\n *\\n * _.tail([1, 2, 3]);\\n * // => [2, 3]\\n */\\n function tail(array) {\\n var length = array == null ? 0 : array.length;\\n return length ? baseSlice(array, 1, length) : [];\\n }\\n\\n /**\\n * Creates a slice of `array` with `n` elements taken from the beginning.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Array\\n * @param {Array} array The array to query.\\n * @param {number} [n=1] The number of elements to take.\\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\\n * @returns {Array} Returns the slice of `array`.\\n * @example\\n *\\n * _.take([1, 2, 3]);\\n * // => [1]\\n *\\n * _.take([1, 2, 3], 2);\\n * // => [1, 2]\\n *\\n * _.take([1, 2, 3], 5);\\n * // => [1, 2, 3]\\n *\\n * _.take([1, 2, 3], 0);\\n * // => []\\n */\\n function take(array, n, guard) {\\n if (!(array && array.length)) {\\n return [];\\n }\\n n = (guard || n === undefined) ? 1 : toInteger(n);\\n return baseSlice(array, 0, n < 0 ? 0 : n);\\n }\\n\\n /**\\n * Creates a slice of `array` with `n` elements taken from the end.\\n *\\n * @static\\n * @memberOf _\\n * @since 3.0.0\\n * @category Array\\n * @param {Array} array The array to query.\\n * @param {number} [n=1] The number of elements to take.\\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\\n * @returns {Array} Returns the slice of `array`.\\n * @example\\n *\\n * _.takeRight([1, 2, 3]);\\n * // => [3]\\n *\\n * _.takeRight([1, 2, 3], 2);\\n * // => [2, 3]\\n *\\n * _.takeRight([1, 2, 3], 5);\\n * // => [1, 2, 3]\\n *\\n * _.takeRight([1, 2, 3], 0);\\n * // => []\\n */\\n function takeRight(array, n, guard) {\\n var length = array == null ? 0 : array.length;\\n if (!length) {\\n return [];\\n }\\n n = (guard || n === undefined) ? 1 : toInteger(n);\\n n = length - n;\\n return baseSlice(array, n < 0 ? 0 : n, length);\\n }\\n\\n /**\\n * Creates a slice of `array` with elements taken from the end. Elements are\\n * taken until `predicate` returns falsey. The predicate is invoked with\\n * three arguments: (value, index, array).\\n *\\n * @static\\n * @memberOf _\\n * @since 3.0.0\\n * @category Array\\n * @param {Array} array The array to query.\\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\\n * @returns {Array} Returns the slice of `array`.\\n * @example\\n *\\n * var users = [\\n * { 'user': 'barney', 'active': true },\\n * { 'user': 'fred', 'active': false },\\n * { 'user': 'pebbles', 'active': false }\\n * ];\\n *\\n * _.takeRightWhile(users, function(o) { return !o.active; });\\n * // => objects for ['fred', 'pebbles']\\n *\\n * // The `_.matches` iteratee shorthand.\\n * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false });\\n * // => objects for ['pebbles']\\n *\\n * // The `_.matchesProperty` iteratee shorthand.\\n * _.takeRightWhile(users, ['active', false]);\\n * // => objects for ['fred', 'pebbles']\\n *\\n * // The `_.property` iteratee shorthand.\\n * _.takeRightWhile(users, 'active');\\n * // => []\\n */\\n function takeRightWhile(array, predicate) {\\n return (array && array.length)\\n ? baseWhile(array, getIteratee(predicate, 3), false, true)\\n : [];\\n }\\n\\n /**\\n * Creates a slice of `array` with elements taken from the beginning. Elements\\n * are taken until `predicate` returns falsey. The predicate is invoked with\\n * three arguments: (value, index, array).\\n *\\n * @static\\n * @memberOf _\\n * @since 3.0.0\\n * @category Array\\n * @param {Array} array The array to query.\\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\\n * @returns {Array} Returns the slice of `array`.\\n * @example\\n *\\n * var users = [\\n * { 'user': 'barney', 'active': false },\\n * { 'user': 'fred', 'active': false },\\n * { 'user': 'pebbles', 'active': true }\\n * ];\\n *\\n * _.takeWhile(users, function(o) { return !o.active; });\\n * // => objects for ['barney', 'fred']\\n *\\n * // The `_.matches` iteratee shorthand.\\n * _.takeWhile(users, { 'user': 'barney', 'active': false });\\n * // => objects for ['barney']\\n *\\n * // The `_.matchesProperty` iteratee shorthand.\\n * _.takeWhile(users, ['active', false]);\\n * // => objects for ['barney', 'fred']\\n *\\n * // The `_.property` iteratee shorthand.\\n * _.takeWhile(users, 'active');\\n * // => []\\n */\\n function takeWhile(array, predicate) {\\n return (array && array.length)\\n ? baseWhile(array, getIteratee(predicate, 3))\\n : [];\\n }\\n\\n /**\\n * Creates an array of unique values, in order, from all given arrays using\\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\\n * for equality comparisons.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Array\\n * @param {...Array} [arrays] The arrays to inspect.\\n * @returns {Array} Returns the new array of combined values.\\n * @example\\n *\\n * _.union([2], [1, 2]);\\n * // => [2, 1]\\n */\\n var union = baseRest(function(arrays) {\\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));\\n });\\n\\n /**\\n * This method is like `_.union` except that it accepts `iteratee` which is\\n * invoked for each element of each `arrays` to generate the criterion by\\n * which uniqueness is computed. Result values are chosen from the first\\n * array in which the value occurs. The iteratee is invoked with one argument:\\n * (value).\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Array\\n * @param {...Array} [arrays] The arrays to inspect.\\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\\n * @returns {Array} Returns the new array of combined values.\\n * @example\\n *\\n * _.unionBy([2.1], [1.2, 2.3], Math.floor);\\n * // => [2.1, 1.2]\\n *\\n * // The `_.property` iteratee shorthand.\\n * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\\n * // => [{ 'x': 1 }, { 'x': 2 }]\\n */\\n var unionBy = baseRest(function(arrays) {\\n var iteratee = last(arrays);\\n if (isArrayLikeObject(iteratee)) {\\n iteratee = undefined;\\n }\\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee, 2));\\n });\\n\\n /**\\n * This method is like `_.union` except that it accepts `comparator` which\\n * is invoked to compare elements of `arrays`. Result values are chosen from\\n * the first array in which the value occurs. The comparator is invoked\\n * with two arguments: (arrVal, othVal).\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Array\\n * @param {...Array} [arrays] The arrays to inspect.\\n * @param {Function} [comparator] The comparator invoked per element.\\n * @returns {Array} Returns the new array of combined values.\\n * @example\\n *\\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\\n *\\n * _.unionWith(objects, others, _.isEqual);\\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]\\n */\\n var unionWith = baseRest(function(arrays) {\\n var comparator = last(arrays);\\n comparator = typeof comparator == 'function' ? comparator : undefined;\\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator);\\n });\\n\\n /**\\n * Creates a duplicate-free version of an array, using\\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\\n * for equality comparisons, in which only the first occurrence of each element\\n * is kept. The order of result values is determined by the order they occur\\n * in the array.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Array\\n * @param {Array} array The array to inspect.\\n * @returns {Array} Returns the new duplicate free array.\\n * @example\\n *\\n * _.uniq([2, 1, 2]);\\n * // => [2, 1]\\n */\\n function uniq(array) {\\n return (array && array.length) ? baseUniq(array) : [];\\n }\\n\\n /**\\n * This method is like `_.uniq` except that it accepts `iteratee` which is\\n * invoked for each element in `array` to generate the criterion by which\\n * uniqueness is computed. The order of result values is determined by the\\n * order they occur in the array. The iteratee is invoked with one argument:\\n * (value).\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Array\\n * @param {Array} array The array to inspect.\\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\\n * @returns {Array} Returns the new duplicate free array.\\n * @example\\n *\\n * _.uniqBy([2.1, 1.2, 2.3], Math.floor);\\n * // => [2.1, 1.2]\\n *\\n * // The `_.property` iteratee shorthand.\\n * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');\\n * // => [{ 'x': 1 }, { 'x': 2 }]\\n */\\n function uniqBy(array, iteratee) {\\n return (array && array.length) ? baseUniq(array, getIteratee(iteratee, 2)) : [];\\n }\\n\\n /**\\n * This method is like `_.uniq` except that it accepts `comparator` which\\n * is invoked to compare elements of `array`. The order of result values is\\n * determined by the order they occur in the array.The comparator is invoked\\n * with two arguments: (arrVal, othVal).\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Array\\n * @param {Array} array The array to inspect.\\n * @param {Function} [comparator] The comparator invoked per element.\\n * @returns {Array} Returns the new duplicate free array.\\n * @example\\n *\\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];\\n *\\n * _.uniqWith(objects, _.isEqual);\\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]\\n */\\n function uniqWith(array, comparator) {\\n comparator = typeof comparator == 'function' ? comparator : undefined;\\n return (array && array.length) ? baseUniq(array, undefined, comparator) : [];\\n }\\n\\n /**\\n * This method is like `_.zip` except that it accepts an array of grouped\\n * elements and creates an array regrouping the elements to their pre-zip\\n * configuration.\\n *\\n * @static\\n * @memberOf _\\n * @since 1.2.0\\n * @category Array\\n * @param {Array} array The array of grouped elements to process.\\n * @returns {Array} Returns the new array of regrouped elements.\\n * @example\\n *\\n * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);\\n * // => [['a', 1, true], ['b', 2, false]]\\n *\\n * _.unzip(zipped);\\n * // => [['a', 'b'], [1, 2], [true, false]]\\n */\\n function unzip(array) {\\n if (!(array && array.length)) {\\n return [];\\n }\\n var length = 0;\\n array = arrayFilter(array, function(group) {\\n if (isArrayLikeObject(group)) {\\n length = nativeMax(group.length, length);\\n return true;\\n }\\n });\\n return baseTimes(length, function(index) {\\n return arrayMap(array, baseProperty(index));\\n });\\n }\\n\\n /**\\n * This method is like `_.unzip` except that it accepts `iteratee` to specify\\n * how regrouped values should be combined. The iteratee is invoked with the\\n * elements of each group: (...group).\\n *\\n * @static\\n * @memberOf _\\n * @since 3.8.0\\n * @category Array\\n * @param {Array} array The array of grouped elements to process.\\n * @param {Function} [iteratee=_.identity] The function to combine\\n * regrouped values.\\n * @returns {Array} Returns the new array of regrouped elements.\\n * @example\\n *\\n * var zipped = _.zip([1, 2], [10, 20], [100, 200]);\\n * // => [[1, 10, 100], [2, 20, 200]]\\n *\\n * _.unzipWith(zipped, _.add);\\n * // => [3, 30, 300]\\n */\\n function unzipWith(array, iteratee) {\\n if (!(array && array.length)) {\\n return [];\\n }\\n var result = unzip(array);\\n if (iteratee == null) {\\n return result;\\n }\\n return arrayMap(result, function(group) {\\n return apply(iteratee, undefined, group);\\n });\\n }\\n\\n /**\\n * Creates an array excluding all given values using\\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\\n * for equality comparisons.\\n *\\n * **Note:** Unlike `_.pull`, this method returns a new array.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Array\\n * @param {Array} array The array to inspect.\\n * @param {...*} [values] The values to exclude.\\n * @returns {Array} Returns the new array of filtered values.\\n * @see _.difference, _.xor\\n * @example\\n *\\n * _.without([2, 1, 2, 3], 1, 2);\\n * // => [3]\\n */\\n var without = baseRest(function(array, values) {\\n return isArrayLikeObject(array)\\n ? baseDifference(array, values)\\n : [];\\n });\\n\\n /**\\n * Creates an array of unique values that is the\\n * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)\\n * of the given arrays. The order of result values is determined by the order\\n * they occur in the arrays.\\n *\\n * @static\\n * @memberOf _\\n * @since 2.4.0\\n * @category Array\\n * @param {...Array} [arrays] The arrays to inspect.\\n * @returns {Array} Returns the new array of filtered values.\\n * @see _.difference, _.without\\n * @example\\n *\\n * _.xor([2, 1], [2, 3]);\\n * // => [1, 3]\\n */\\n var xor = baseRest(function(arrays) {\\n return baseXor(arrayFilter(arrays, isArrayLikeObject));\\n });\\n\\n /**\\n * This method is like `_.xor` except that it accepts `iteratee` which is\\n * invoked for each element of each `arrays` to generate the criterion by\\n * which by which they're compared. The order of result values is determined\\n * by the order they occur in the arrays. The iteratee is invoked with one\\n * argument: (value).\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Array\\n * @param {...Array} [arrays] The arrays to inspect.\\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\\n * @returns {Array} Returns the new array of filtered values.\\n * @example\\n *\\n * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);\\n * // => [1.2, 3.4]\\n *\\n * // The `_.property` iteratee shorthand.\\n * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\\n * // => [{ 'x': 2 }]\\n */\\n var xorBy = baseRest(function(arrays) {\\n var iteratee = last(arrays);\\n if (isArrayLikeObject(iteratee)) {\\n iteratee = undefined;\\n }\\n return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee, 2));\\n });\\n\\n /**\\n * This method is like `_.xor` except that it accepts `comparator` which is\\n * invoked to compare elements of `arrays`. The order of result values is\\n * determined by the order they occur in the arrays. The comparator is invoked\\n * with two arguments: (arrVal, othVal).\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Array\\n * @param {...Array} [arrays] The arrays to inspect.\\n * @param {Function} [comparator] The comparator invoked per element.\\n * @returns {Array} Returns the new array of filtered values.\\n * @example\\n *\\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\\n *\\n * _.xorWith(objects, others, _.isEqual);\\n * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]\\n */\\n var xorWith = baseRest(function(arrays) {\\n var comparator = last(arrays);\\n comparator = typeof comparator == 'function' ? comparator : undefined;\\n return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator);\\n });\\n\\n /**\\n * Creates an array of grouped elements, the first of which contains the\\n * first elements of the given arrays, the second of which contains the\\n * second elements of the given arrays, and so on.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Array\\n * @param {...Array} [arrays] The arrays to process.\\n * @returns {Array} Returns the new array of grouped elements.\\n * @example\\n *\\n * _.zip(['a', 'b'], [1, 2], [true, false]);\\n * // => [['a', 1, true], ['b', 2, false]]\\n */\\n var zip = baseRest(unzip);\\n\\n /**\\n * This method is like `_.fromPairs` except that it accepts two arrays,\\n * one of property identifiers and one of corresponding values.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.4.0\\n * @category Array\\n * @param {Array} [props=[]] The property identifiers.\\n * @param {Array} [values=[]] The property values.\\n * @returns {Object} Returns the new object.\\n * @example\\n *\\n * _.zipObject(['a', 'b'], [1, 2]);\\n * // => { 'a': 1, 'b': 2 }\\n */\\n function zipObject(props, values) {\\n return baseZipObject(props || [], values || [], assignValue);\\n }\\n\\n /**\\n * This method is like `_.zipObject` except that it supports property paths.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.1.0\\n * @category Array\\n * @param {Array} [props=[]] The property identifiers.\\n * @param {Array} [values=[]] The property values.\\n * @returns {Object} Returns the new object.\\n * @example\\n *\\n * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);\\n * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }\\n */\\n function zipObjectDeep(props, values) {\\n return baseZipObject(props || [], values || [], baseSet);\\n }\\n\\n /**\\n * This method is like `_.zip` except that it accepts `iteratee` to specify\\n * how grouped values should be combined. The iteratee is invoked with the\\n * elements of each group: (...group).\\n *\\n * @static\\n * @memberOf _\\n * @since 3.8.0\\n * @category Array\\n * @param {...Array} [arrays] The arrays to process.\\n * @param {Function} [iteratee=_.identity] The function to combine\\n * grouped values.\\n * @returns {Array} Returns the new array of grouped elements.\\n * @example\\n *\\n * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {\\n * return a + b + c;\\n * });\\n * // => [111, 222]\\n */\\n var zipWith = baseRest(function(arrays) {\\n var length = arrays.length,\\n iteratee = length > 1 ? arrays[length - 1] : undefined;\\n\\n iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined;\\n return unzipWith(arrays, iteratee);\\n });\\n\\n /*------------------------------------------------------------------------*/\\n\\n /**\\n * Creates a `lodash` wrapper instance that wraps `value` with explicit method\\n * chain sequences enabled. The result of such sequences must be unwrapped\\n * with `_#value`.\\n *\\n * @static\\n * @memberOf _\\n * @since 1.3.0\\n * @category Seq\\n * @param {*} value The value to wrap.\\n * @returns {Object} Returns the new `lodash` wrapper instance.\\n * @example\\n *\\n * var users = [\\n * { 'user': 'barney', 'age': 36 },\\n * { 'user': 'fred', 'age': 40 },\\n * { 'user': 'pebbles', 'age': 1 }\\n * ];\\n *\\n * var youngest = _\\n * .chain(users)\\n * .sortBy('age')\\n * .map(function(o) {\\n * return o.user + ' is ' + o.age;\\n * })\\n * .head()\\n * .value();\\n * // => 'pebbles is 1'\\n */\\n function chain(value) {\\n var result = lodash(value);\\n result.__chain__ = true;\\n return result;\\n }\\n\\n /**\\n * This method invokes `interceptor` and returns `value`. The interceptor\\n * is invoked with one argument; (value). The purpose of this method is to\\n * \\\"tap into\\\" a method chain sequence in order to modify intermediate results.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Seq\\n * @param {*} value The value to provide to `interceptor`.\\n * @param {Function} interceptor The function to invoke.\\n * @returns {*} Returns `value`.\\n * @example\\n *\\n * _([1, 2, 3])\\n * .tap(function(array) {\\n * // Mutate input array.\\n * array.pop();\\n * })\\n * .reverse()\\n * .value();\\n * // => [2, 1]\\n */\\n function tap(value, interceptor) {\\n interceptor(value);\\n return value;\\n }\\n\\n /**\\n * This method is like `_.tap` except that it returns the result of `interceptor`.\\n * The purpose of this method is to \\\"pass thru\\\" values replacing intermediate\\n * results in a method chain sequence.\\n *\\n * @static\\n * @memberOf _\\n * @since 3.0.0\\n * @category Seq\\n * @param {*} value The value to provide to `interceptor`.\\n * @param {Function} interceptor The function to invoke.\\n * @returns {*} Returns the result of `interceptor`.\\n * @example\\n *\\n * _(' abc ')\\n * .chain()\\n * .trim()\\n * .thru(function(value) {\\n * return [value];\\n * })\\n * .value();\\n * // => ['abc']\\n */\\n function thru(value, interceptor) {\\n return interceptor(value);\\n }\\n\\n /**\\n * This method is the wrapper version of `_.at`.\\n *\\n * @name at\\n * @memberOf _\\n * @since 1.0.0\\n * @category Seq\\n * @param {...(string|string[])} [paths] The property paths to pick.\\n * @returns {Object} Returns the new `lodash` wrapper instance.\\n * @example\\n *\\n * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };\\n *\\n * _(object).at(['a[0].b.c', 'a[1]']).value();\\n * // => [3, 4]\\n */\\n var wrapperAt = flatRest(function(paths) {\\n var length = paths.length,\\n start = length ? paths[0] : 0,\\n value = this.__wrapped__,\\n interceptor = function(object) { return baseAt(object, paths); };\\n\\n if (length > 1 || this.__actions__.length ||\\n !(value instanceof LazyWrapper) || !isIndex(start)) {\\n return this.thru(interceptor);\\n }\\n value = value.slice(start, +start + (length ? 1 : 0));\\n value.__actions__.push({\\n 'func': thru,\\n 'args': [interceptor],\\n 'thisArg': undefined\\n });\\n return new LodashWrapper(value, this.__chain__).thru(function(array) {\\n if (length && !array.length) {\\n array.push(undefined);\\n }\\n return array;\\n });\\n });\\n\\n /**\\n * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.\\n *\\n * @name chain\\n * @memberOf _\\n * @since 0.1.0\\n * @category Seq\\n * @returns {Object} Returns the new `lodash` wrapper instance.\\n * @example\\n *\\n * var users = [\\n * { 'user': 'barney', 'age': 36 },\\n * { 'user': 'fred', 'age': 40 }\\n * ];\\n *\\n * // A sequence without explicit chaining.\\n * _(users).head();\\n * // => { 'user': 'barney', 'age': 36 }\\n *\\n * // A sequence with explicit chaining.\\n * _(users)\\n * .chain()\\n * .head()\\n * .pick('user')\\n * .value();\\n * // => { 'user': 'barney' }\\n */\\n function wrapperChain() {\\n return chain(this);\\n }\\n\\n /**\\n * Executes the chain sequence and returns the wrapped result.\\n *\\n * @name commit\\n * @memberOf _\\n * @since 3.2.0\\n * @category Seq\\n * @returns {Object} Returns the new `lodash` wrapper instance.\\n * @example\\n *\\n * var array = [1, 2];\\n * var wrapped = _(array).push(3);\\n *\\n * console.log(array);\\n * // => [1, 2]\\n *\\n * wrapped = wrapped.commit();\\n * console.log(array);\\n * // => [1, 2, 3]\\n *\\n * wrapped.last();\\n * // => 3\\n *\\n * console.log(array);\\n * // => [1, 2, 3]\\n */\\n function wrapperCommit() {\\n return new LodashWrapper(this.value(), this.__chain__);\\n }\\n\\n /**\\n * Gets the next value on a wrapped object following the\\n * [iterator protocol](https://mdn.io/iteration_protocols#iterator).\\n *\\n * @name next\\n * @memberOf _\\n * @since 4.0.0\\n * @category Seq\\n * @returns {Object} Returns the next iterator value.\\n * @example\\n *\\n * var wrapped = _([1, 2]);\\n *\\n * wrapped.next();\\n * // => { 'done': false, 'value': 1 }\\n *\\n * wrapped.next();\\n * // => { 'done': false, 'value': 2 }\\n *\\n * wrapped.next();\\n * // => { 'done': true, 'value': undefined }\\n */\\n function wrapperNext() {\\n if (this.__values__ === undefined) {\\n this.__values__ = toArray(this.value());\\n }\\n var done = this.__index__ >= this.__values__.length,\\n value = done ? undefined : this.__values__[this.__index__++];\\n\\n return { 'done': done, 'value': value };\\n }\\n\\n /**\\n * Enables the wrapper to be iterable.\\n *\\n * @name Symbol.iterator\\n * @memberOf _\\n * @since 4.0.0\\n * @category Seq\\n * @returns {Object} Returns the wrapper object.\\n * @example\\n *\\n * var wrapped = _([1, 2]);\\n *\\n * wrapped[Symbol.iterator]() === wrapped;\\n * // => true\\n *\\n * Array.from(wrapped);\\n * // => [1, 2]\\n */\\n function wrapperToIterator() {\\n return this;\\n }\\n\\n /**\\n * Creates a clone of the chain sequence planting `value` as the wrapped value.\\n *\\n * @name plant\\n * @memberOf _\\n * @since 3.2.0\\n * @category Seq\\n * @param {*} value The value to plant.\\n * @returns {Object} Returns the new `lodash` wrapper instance.\\n * @example\\n *\\n * function square(n) {\\n * return n * n;\\n * }\\n *\\n * var wrapped = _([1, 2]).map(square);\\n * var other = wrapped.plant([3, 4]);\\n *\\n * other.value();\\n * // => [9, 16]\\n *\\n * wrapped.value();\\n * // => [1, 4]\\n */\\n function wrapperPlant(value) {\\n var result,\\n parent = this;\\n\\n while (parent instanceof baseLodash) {\\n var clone = wrapperClone(parent);\\n clone.__index__ = 0;\\n clone.__values__ = undefined;\\n if (result) {\\n previous.__wrapped__ = clone;\\n } else {\\n result = clone;\\n }\\n var previous = clone;\\n parent = parent.__wrapped__;\\n }\\n previous.__wrapped__ = value;\\n return result;\\n }\\n\\n /**\\n * This method is the wrapper version of `_.reverse`.\\n *\\n * **Note:** This method mutates the wrapped array.\\n *\\n * @name reverse\\n * @memberOf _\\n * @since 0.1.0\\n * @category Seq\\n * @returns {Object} Returns the new `lodash` wrapper instance.\\n * @example\\n *\\n * var array = [1, 2, 3];\\n *\\n * _(array).reverse().value()\\n * // => [3, 2, 1]\\n *\\n * console.log(array);\\n * // => [3, 2, 1]\\n */\\n function wrapperReverse() {\\n var value = this.__wrapped__;\\n if (value instanceof LazyWrapper) {\\n var wrapped = value;\\n if (this.__actions__.length) {\\n wrapped = new LazyWrapper(this);\\n }\\n wrapped = wrapped.reverse();\\n wrapped.__actions__.push({\\n 'func': thru,\\n 'args': [reverse],\\n 'thisArg': undefined\\n });\\n return new LodashWrapper(wrapped, this.__chain__);\\n }\\n return this.thru(reverse);\\n }\\n\\n /**\\n * Executes the chain sequence to resolve the unwrapped value.\\n *\\n * @name value\\n * @memberOf _\\n * @since 0.1.0\\n * @alias toJSON, valueOf\\n * @category Seq\\n * @returns {*} Returns the resolved unwrapped value.\\n * @example\\n *\\n * _([1, 2, 3]).value();\\n * // => [1, 2, 3]\\n */\\n function wrapperValue() {\\n return baseWrapperValue(this.__wrapped__, this.__actions__);\\n }\\n\\n /*------------------------------------------------------------------------*/\\n\\n /**\\n * Creates an object composed of keys generated from the results of running\\n * each element of `collection` thru `iteratee`. The corresponding value of\\n * each key is the number of times the key was returned by `iteratee`. The\\n * iteratee is invoked with one argument: (value).\\n *\\n * @static\\n * @memberOf _\\n * @since 0.5.0\\n * @category Collection\\n * @param {Array|Object} collection The collection to iterate over.\\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\\n * @returns {Object} Returns the composed aggregate object.\\n * @example\\n *\\n * _.countBy([6.1, 4.2, 6.3], Math.floor);\\n * // => { '4': 1, '6': 2 }\\n *\\n * // The `_.property` iteratee shorthand.\\n * _.countBy(['one', 'two', 'three'], 'length');\\n * // => { '3': 2, '5': 1 }\\n */\\n var countBy = createAggregator(function(result, value, key) {\\n if (hasOwnProperty.call(result, key)) {\\n ++result[key];\\n } else {\\n baseAssignValue(result, key, 1);\\n }\\n });\\n\\n /**\\n * Checks if `predicate` returns truthy for **all** elements of `collection`.\\n * Iteration is stopped once `predicate` returns falsey. The predicate is\\n * invoked with three arguments: (value, index|key, collection).\\n *\\n * **Note:** This method returns `true` for\\n * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because\\n * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of\\n * elements of empty collections.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Collection\\n * @param {Array|Object} collection The collection to iterate over.\\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\\n * else `false`.\\n * @example\\n *\\n * _.every([true, 1, null, 'yes'], Boolean);\\n * // => false\\n *\\n * var users = [\\n * { 'user': 'barney', 'age': 36, 'active': false },\\n * { 'user': 'fred', 'age': 40, 'active': false }\\n * ];\\n *\\n * // The `_.matches` iteratee shorthand.\\n * _.every(users, { 'user': 'barney', 'active': false });\\n * // => false\\n *\\n * // The `_.matchesProperty` iteratee shorthand.\\n * _.every(users, ['active', false]);\\n * // => true\\n *\\n * // The `_.property` iteratee shorthand.\\n * _.every(users, 'active');\\n * // => false\\n */\\n function every(collection, predicate, guard) {\\n var func = isArray(collection) ? arrayEvery : baseEvery;\\n if (guard && isIterateeCall(collection, predicate, guard)) {\\n predicate = undefined;\\n }\\n return func(collection, getIteratee(predicate, 3));\\n }\\n\\n /**\\n * Iterates over elements of `collection`, returning an array of all elements\\n * `predicate` returns truthy for. The predicate is invoked with three\\n * arguments: (value, index|key, collection).\\n *\\n * **Note:** Unlike `_.remove`, this method returns a new array.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Collection\\n * @param {Array|Object} collection The collection to iterate over.\\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\\n * @returns {Array} Returns the new filtered array.\\n * @see _.reject\\n * @example\\n *\\n * var users = [\\n * { 'user': 'barney', 'age': 36, 'active': true },\\n * { 'user': 'fred', 'age': 40, 'active': false }\\n * ];\\n *\\n * _.filter(users, function(o) { return !o.active; });\\n * // => objects for ['fred']\\n *\\n * // The `_.matches` iteratee shorthand.\\n * _.filter(users, { 'age': 36, 'active': true });\\n * // => objects for ['barney']\\n *\\n * // The `_.matchesProperty` iteratee shorthand.\\n * _.filter(users, ['active', false]);\\n * // => objects for ['fred']\\n *\\n * // The `_.property` iteratee shorthand.\\n * _.filter(users, 'active');\\n * // => objects for ['barney']\\n */\\n function filter(collection, predicate) {\\n var func = isArray(collection) ? arrayFilter : baseFilter;\\n return func(collection, getIteratee(predicate, 3));\\n }\\n\\n /**\\n * Iterates over elements of `collection`, returning the first element\\n * `predicate` returns truthy for. The predicate is invoked with three\\n * arguments: (value, index|key, collection).\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Collection\\n * @param {Array|Object} collection The collection to inspect.\\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\\n * @param {number} [fromIndex=0] The index to search from.\\n * @returns {*} Returns the matched element, else `undefined`.\\n * @example\\n *\\n * var users = [\\n * { 'user': 'barney', 'age': 36, 'active': true },\\n * { 'user': 'fred', 'age': 40, 'active': false },\\n * { 'user': 'pebbles', 'age': 1, 'active': true }\\n * ];\\n *\\n * _.find(users, function(o) { return o.age < 40; });\\n * // => object for 'barney'\\n *\\n * // The `_.matches` iteratee shorthand.\\n * _.find(users, { 'age': 1, 'active': true });\\n * // => object for 'pebbles'\\n *\\n * // The `_.matchesProperty` iteratee shorthand.\\n * _.find(users, ['active', false]);\\n * // => object for 'fred'\\n *\\n * // The `_.property` iteratee shorthand.\\n * _.find(users, 'active');\\n * // => object for 'barney'\\n */\\n var find = createFind(findIndex);\\n\\n /**\\n * This method is like `_.find` except that it iterates over elements of\\n * `collection` from right to left.\\n *\\n * @static\\n * @memberOf _\\n * @since 2.0.0\\n * @category Collection\\n * @param {Array|Object} collection The collection to inspect.\\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\\n * @param {number} [fromIndex=collection.length-1] The index to search from.\\n * @returns {*} Returns the matched element, else `undefined`.\\n * @example\\n *\\n * _.findLast([1, 2, 3, 4], function(n) {\\n * return n % 2 == 1;\\n * });\\n * // => 3\\n */\\n var findLast = createFind(findLastIndex);\\n\\n /**\\n * Creates a flattened array of values by running each element in `collection`\\n * thru `iteratee` and flattening the mapped results. The iteratee is invoked\\n * with three arguments: (value, index|key, collection).\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Collection\\n * @param {Array|Object} collection The collection to iterate over.\\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\\n * @returns {Array} Returns the new flattened array.\\n * @example\\n *\\n * function duplicate(n) {\\n * return [n, n];\\n * }\\n *\\n * _.flatMap([1, 2], duplicate);\\n * // => [1, 1, 2, 2]\\n */\\n function flatMap(collection, iteratee) {\\n return baseFlatten(map(collection, iteratee), 1);\\n }\\n\\n /**\\n * This method is like `_.flatMap` except that it recursively flattens the\\n * mapped results.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.7.0\\n * @category Collection\\n * @param {Array|Object} collection The collection to iterate over.\\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\\n * @returns {Array} Returns the new flattened array.\\n * @example\\n *\\n * function duplicate(n) {\\n * return [[[n, n]]];\\n * }\\n *\\n * _.flatMapDeep([1, 2], duplicate);\\n * // => [1, 1, 2, 2]\\n */\\n function flatMapDeep(collection, iteratee) {\\n return baseFlatten(map(collection, iteratee), INFINITY);\\n }\\n\\n /**\\n * This method is like `_.flatMap` except that it recursively flattens the\\n * mapped results up to `depth` times.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.7.0\\n * @category Collection\\n * @param {Array|Object} collection The collection to iterate over.\\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\\n * @param {number} [depth=1] The maximum recursion depth.\\n * @returns {Array} Returns the new flattened array.\\n * @example\\n *\\n * function duplicate(n) {\\n * return [[[n, n]]];\\n * }\\n *\\n * _.flatMapDepth([1, 2], duplicate, 2);\\n * // => [[1, 1], [2, 2]]\\n */\\n function flatMapDepth(collection, iteratee, depth) {\\n depth = depth === undefined ? 1 : toInteger(depth);\\n return baseFlatten(map(collection, iteratee), depth);\\n }\\n\\n /**\\n * Iterates over elements of `collection` and invokes `iteratee` for each element.\\n * The iteratee is invoked with three arguments: (value, index|key, collection).\\n * Iteratee functions may exit iteration early by explicitly returning `false`.\\n *\\n * **Note:** As with other \\\"Collections\\\" methods, objects with a \\\"length\\\"\\n * property are iterated like arrays. To avoid this behavior use `_.forIn`\\n * or `_.forOwn` for object iteration.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @alias each\\n * @category Collection\\n * @param {Array|Object} collection The collection to iterate over.\\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\\n * @returns {Array|Object} Returns `collection`.\\n * @see _.forEachRight\\n * @example\\n *\\n * _.forEach([1, 2], function(value) {\\n * console.log(value);\\n * });\\n * // => Logs `1` then `2`.\\n *\\n * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {\\n * console.log(key);\\n * });\\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\\n */\\n function forEach(collection, iteratee) {\\n var func = isArray(collection) ? arrayEach : baseEach;\\n return func(collection, getIteratee(iteratee, 3));\\n }\\n\\n /**\\n * This method is like `_.forEach` except that it iterates over elements of\\n * `collection` from right to left.\\n *\\n * @static\\n * @memberOf _\\n * @since 2.0.0\\n * @alias eachRight\\n * @category Collection\\n * @param {Array|Object} collection The collection to iterate over.\\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\\n * @returns {Array|Object} Returns `collection`.\\n * @see _.forEach\\n * @example\\n *\\n * _.forEachRight([1, 2], function(value) {\\n * console.log(value);\\n * });\\n * // => Logs `2` then `1`.\\n */\\n function forEachRight(collection, iteratee) {\\n var func = isArray(collection) ? arrayEachRight : baseEachRight;\\n return func(collection, getIteratee(iteratee, 3));\\n }\\n\\n /**\\n * Creates an object composed of keys generated from the results of running\\n * each element of `collection` thru `iteratee`. The order of grouped values\\n * is determined by the order they occur in `collection`. The corresponding\\n * value of each key is an array of elements responsible for generating the\\n * key. The iteratee is invoked with one argument: (value).\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Collection\\n * @param {Array|Object} collection The collection to iterate over.\\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\\n * @returns {Object} Returns the composed aggregate object.\\n * @example\\n *\\n * _.groupBy([6.1, 4.2, 6.3], Math.floor);\\n * // => { '4': [4.2], '6': [6.1, 6.3] }\\n *\\n * // The `_.property` iteratee shorthand.\\n * _.groupBy(['one', 'two', 'three'], 'length');\\n * // => { '3': ['one', 'two'], '5': ['three'] }\\n */\\n var groupBy = createAggregator(function(result, value, key) {\\n if (hasOwnProperty.call(result, key)) {\\n result[key].push(value);\\n } else {\\n baseAssignValue(result, key, [value]);\\n }\\n });\\n\\n /**\\n * Checks if `value` is in `collection`. If `collection` is a string, it's\\n * checked for a substring of `value`, otherwise\\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\\n * is used for equality comparisons. If `fromIndex` is negative, it's used as\\n * the offset from the end of `collection`.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Collection\\n * @param {Array|Object|string} collection The collection to inspect.\\n * @param {*} value The value to search for.\\n * @param {number} [fromIndex=0] The index to search from.\\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\\n * @returns {boolean} Returns `true` if `value` is found, else `false`.\\n * @example\\n *\\n * _.includes([1, 2, 3], 1);\\n * // => true\\n *\\n * _.includes([1, 2, 3], 1, 2);\\n * // => false\\n *\\n * _.includes({ 'a': 1, 'b': 2 }, 1);\\n * // => true\\n *\\n * _.includes('abcd', 'bc');\\n * // => true\\n */\\n function includes(collection, value, fromIndex, guard) {\\n collection = isArrayLike(collection) ? collection : values(collection);\\n fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;\\n\\n var length = collection.length;\\n if (fromIndex < 0) {\\n fromIndex = nativeMax(length + fromIndex, 0);\\n }\\n return isString(collection)\\n ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)\\n : (!!length && baseIndexOf(collection, value, fromIndex) > -1);\\n }\\n\\n /**\\n * Invokes the method at `path` of each element in `collection`, returning\\n * an array of the results of each invoked method. Any additional arguments\\n * are provided to each invoked method. If `path` is a function, it's invoked\\n * for, and `this` bound to, each element in `collection`.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Collection\\n * @param {Array|Object} collection The collection to iterate over.\\n * @param {Array|Function|string} path The path of the method to invoke or\\n * the function invoked per iteration.\\n * @param {...*} [args] The arguments to invoke each method with.\\n * @returns {Array} Returns the array of results.\\n * @example\\n *\\n * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');\\n * // => [[1, 5, 7], [1, 2, 3]]\\n *\\n * _.invokeMap([123, 456], String.prototype.split, '');\\n * // => [['1', '2', '3'], ['4', '5', '6']]\\n */\\n var invokeMap = baseRest(function(collection, path, args) {\\n var index = -1,\\n isFunc = typeof path == 'function',\\n result = isArrayLike(collection) ? Array(collection.length) : [];\\n\\n baseEach(collection, function(value) {\\n result[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);\\n });\\n return result;\\n });\\n\\n /**\\n * Creates an object composed of keys generated from the results of running\\n * each element of `collection` thru `iteratee`. The corresponding value of\\n * each key is the last element responsible for generating the key. The\\n * iteratee is invoked with one argument: (value).\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Collection\\n * @param {Array|Object} collection The collection to iterate over.\\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\\n * @returns {Object} Returns the composed aggregate object.\\n * @example\\n *\\n * var array = [\\n * { 'dir': 'left', 'code': 97 },\\n * { 'dir': 'right', 'code': 100 }\\n * ];\\n *\\n * _.keyBy(array, function(o) {\\n * return String.fromCharCode(o.code);\\n * });\\n * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }\\n *\\n * _.keyBy(array, 'dir');\\n * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }\\n */\\n var keyBy = createAggregator(function(result, value, key) {\\n baseAssignValue(result, key, value);\\n });\\n\\n /**\\n * Creates an array of values by running each element in `collection` thru\\n * `iteratee`. The iteratee is invoked with three arguments:\\n * (value, index|key, collection).\\n *\\n * Many lodash methods are guarded to work as iteratees for methods like\\n * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.\\n *\\n * The guarded methods are:\\n * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,\\n * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,\\n * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,\\n * `template`, `trim`, `trimEnd`, `trimStart`, and `words`\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Collection\\n * @param {Array|Object} collection The collection to iterate over.\\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\\n * @returns {Array} Returns the new mapped array.\\n * @example\\n *\\n * function square(n) {\\n * return n * n;\\n * }\\n *\\n * _.map([4, 8], square);\\n * // => [16, 64]\\n *\\n * _.map({ 'a': 4, 'b': 8 }, square);\\n * // => [16, 64] (iteration order is not guaranteed)\\n *\\n * var users = [\\n * { 'user': 'barney' },\\n * { 'user': 'fred' }\\n * ];\\n *\\n * // The `_.property` iteratee shorthand.\\n * _.map(users, 'user');\\n * // => ['barney', 'fred']\\n */\\n function map(collection, iteratee) {\\n var func = isArray(collection) ? arrayMap : baseMap;\\n return func(collection, getIteratee(iteratee, 3));\\n }\\n\\n /**\\n * This method is like `_.sortBy` except that it allows specifying the sort\\n * orders of the iteratees to sort by. If `orders` is unspecified, all values\\n * are sorted in ascending order. Otherwise, specify an order of \\\"desc\\\" for\\n * descending or \\\"asc\\\" for ascending sort order of corresponding values.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Collection\\n * @param {Array|Object} collection The collection to iterate over.\\n * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]\\n * The iteratees to sort by.\\n * @param {string[]} [orders] The sort orders of `iteratees`.\\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\\n * @returns {Array} Returns the new sorted array.\\n * @example\\n *\\n * var users = [\\n * { 'user': 'fred', 'age': 48 },\\n * { 'user': 'barney', 'age': 34 },\\n * { 'user': 'fred', 'age': 40 },\\n * { 'user': 'barney', 'age': 36 }\\n * ];\\n *\\n * // Sort by `user` in ascending order and by `age` in descending order.\\n * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);\\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\\n */\\n function orderBy(collection, iteratees, orders, guard) {\\n if (collection == null) {\\n return [];\\n }\\n if (!isArray(iteratees)) {\\n iteratees = iteratees == null ? [] : [iteratees];\\n }\\n orders = guard ? undefined : orders;\\n if (!isArray(orders)) {\\n orders = orders == null ? [] : [orders];\\n }\\n return baseOrderBy(collection, iteratees, orders);\\n }\\n\\n /**\\n * Creates an array of elements split into two groups, the first of which\\n * contains elements `predicate` returns truthy for, the second of which\\n * contains elements `predicate` returns falsey for. The predicate is\\n * invoked with one argument: (value).\\n *\\n * @static\\n * @memberOf _\\n * @since 3.0.0\\n * @category Collection\\n * @param {Array|Object} collection The collection to iterate over.\\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\\n * @returns {Array} Returns the array of grouped elements.\\n * @example\\n *\\n * var users = [\\n * { 'user': 'barney', 'age': 36, 'active': false },\\n * { 'user': 'fred', 'age': 40, 'active': true },\\n * { 'user': 'pebbles', 'age': 1, 'active': false }\\n * ];\\n *\\n * _.partition(users, function(o) { return o.active; });\\n * // => objects for [['fred'], ['barney', 'pebbles']]\\n *\\n * // The `_.matches` iteratee shorthand.\\n * _.partition(users, { 'age': 1, 'active': false });\\n * // => objects for [['pebbles'], ['barney', 'fred']]\\n *\\n * // The `_.matchesProperty` iteratee shorthand.\\n * _.partition(users, ['active', false]);\\n * // => objects for [['barney', 'pebbles'], ['fred']]\\n *\\n * // The `_.property` iteratee shorthand.\\n * _.partition(users, 'active');\\n * // => objects for [['fred'], ['barney', 'pebbles']]\\n */\\n var partition = createAggregator(function(result, value, key) {\\n result[key ? 0 : 1].push(value);\\n }, function() { return [[], []]; });\\n\\n /**\\n * Reduces `collection` to a value which is the accumulated result of running\\n * each element in `collection` thru `iteratee`, where each successive\\n * invocation is supplied the return value of the previous. If `accumulator`\\n * is not given, the first element of `collection` is used as the initial\\n * value. The iteratee is invoked with four arguments:\\n * (accumulator, value, index|key, collection).\\n *\\n * Many lodash methods are guarded to work as iteratees for methods like\\n * `_.reduce`, `_.reduceRight`, and `_.transform`.\\n *\\n * The guarded methods are:\\n * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,\\n * and `sortBy`\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Collection\\n * @param {Array|Object} collection The collection to iterate over.\\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\\n * @param {*} [accumulator] The initial value.\\n * @returns {*} Returns the accumulated value.\\n * @see _.reduceRight\\n * @example\\n *\\n * _.reduce([1, 2], function(sum, n) {\\n * return sum + n;\\n * }, 0);\\n * // => 3\\n *\\n * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\\n * (result[value] || (result[value] = [])).push(key);\\n * return result;\\n * }, {});\\n * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)\\n */\\n function reduce(collection, iteratee, accumulator) {\\n var func = isArray(collection) ? arrayReduce : baseReduce,\\n initAccum = arguments.length < 3;\\n\\n return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEach);\\n }\\n\\n /**\\n * This method is like `_.reduce` except that it iterates over elements of\\n * `collection` from right to left.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Collection\\n * @param {Array|Object} collection The collection to iterate over.\\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\\n * @param {*} [accumulator] The initial value.\\n * @returns {*} Returns the accumulated value.\\n * @see _.reduce\\n * @example\\n *\\n * var array = [[0, 1], [2, 3], [4, 5]];\\n *\\n * _.reduceRight(array, function(flattened, other) {\\n * return flattened.concat(other);\\n * }, []);\\n * // => [4, 5, 2, 3, 0, 1]\\n */\\n function reduceRight(collection, iteratee, accumulator) {\\n var func = isArray(collection) ? arrayReduceRight : baseReduce,\\n initAccum = arguments.length < 3;\\n\\n return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEachRight);\\n }\\n\\n /**\\n * The opposite of `_.filter`; this method returns the elements of `collection`\\n * that `predicate` does **not** return truthy for.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Collection\\n * @param {Array|Object} collection The collection to iterate over.\\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\\n * @returns {Array} Returns the new filtered array.\\n * @see _.filter\\n * @example\\n *\\n * var users = [\\n * { 'user': 'barney', 'age': 36, 'active': false },\\n * { 'user': 'fred', 'age': 40, 'active': true }\\n * ];\\n *\\n * _.reject(users, function(o) { return !o.active; });\\n * // => objects for ['fred']\\n *\\n * // The `_.matches` iteratee shorthand.\\n * _.reject(users, { 'age': 40, 'active': true });\\n * // => objects for ['barney']\\n *\\n * // The `_.matchesProperty` iteratee shorthand.\\n * _.reject(users, ['active', false]);\\n * // => objects for ['fred']\\n *\\n * // The `_.property` iteratee shorthand.\\n * _.reject(users, 'active');\\n * // => objects for ['barney']\\n */\\n function reject(collection, predicate) {\\n var func = isArray(collection) ? arrayFilter : baseFilter;\\n return func(collection, negate(getIteratee(predicate, 3)));\\n }\\n\\n /**\\n * Gets a random element from `collection`.\\n *\\n * @static\\n * @memberOf _\\n * @since 2.0.0\\n * @category Collection\\n * @param {Array|Object} collection The collection to sample.\\n * @returns {*} Returns the random element.\\n * @example\\n *\\n * _.sample([1, 2, 3, 4]);\\n * // => 2\\n */\\n function sample(collection) {\\n var func = isArray(collection) ? arraySample : baseSample;\\n return func(collection);\\n }\\n\\n /**\\n * Gets `n` random elements at unique keys from `collection` up to the\\n * size of `collection`.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Collection\\n * @param {Array|Object} collection The collection to sample.\\n * @param {number} [n=1] The number of elements to sample.\\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\\n * @returns {Array} Returns the random elements.\\n * @example\\n *\\n * _.sampleSize([1, 2, 3], 2);\\n * // => [3, 1]\\n *\\n * _.sampleSize([1, 2, 3], 4);\\n * // => [2, 3, 1]\\n */\\n function sampleSize(collection, n, guard) {\\n if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) {\\n n = 1;\\n } else {\\n n = toInteger(n);\\n }\\n var func = isArray(collection) ? arraySampleSize : baseSampleSize;\\n return func(collection, n);\\n }\\n\\n /**\\n * Creates an array of shuffled values, using a version of the\\n * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Collection\\n * @param {Array|Object} collection The collection to shuffle.\\n * @returns {Array} Returns the new shuffled array.\\n * @example\\n *\\n * _.shuffle([1, 2, 3, 4]);\\n * // => [4, 1, 3, 2]\\n */\\n function shuffle(collection) {\\n var func = isArray(collection) ? arrayShuffle : baseShuffle;\\n return func(collection);\\n }\\n\\n /**\\n * Gets the size of `collection` by returning its length for array-like\\n * values or the number of own enumerable string keyed properties for objects.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Collection\\n * @param {Array|Object|string} collection The collection to inspect.\\n * @returns {number} Returns the collection size.\\n * @example\\n *\\n * _.size([1, 2, 3]);\\n * // => 3\\n *\\n * _.size({ 'a': 1, 'b': 2 });\\n * // => 2\\n *\\n * _.size('pebbles');\\n * // => 7\\n */\\n function size(collection) {\\n if (collection == null) {\\n return 0;\\n }\\n if (isArrayLike(collection)) {\\n return isString(collection) ? stringSize(collection) : collection.length;\\n }\\n var tag = getTag(collection);\\n if (tag == mapTag || tag == setTag) {\\n return collection.size;\\n }\\n return baseKeys(collection).length;\\n }\\n\\n /**\\n * Checks if `predicate` returns truthy for **any** element of `collection`.\\n * Iteration is stopped once `predicate` returns truthy. The predicate is\\n * invoked with three arguments: (value, index|key, collection).\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Collection\\n * @param {Array|Object} collection The collection to iterate over.\\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\\n * @returns {boolean} Returns `true` if any element passes the predicate check,\\n * else `false`.\\n * @example\\n *\\n * _.some([null, 0, 'yes', false], Boolean);\\n * // => true\\n *\\n * var users = [\\n * { 'user': 'barney', 'active': true },\\n * { 'user': 'fred', 'active': false }\\n * ];\\n *\\n * // The `_.matches` iteratee shorthand.\\n * _.some(users, { 'user': 'barney', 'active': false });\\n * // => false\\n *\\n * // The `_.matchesProperty` iteratee shorthand.\\n * _.some(users, ['active', false]);\\n * // => true\\n *\\n * // The `_.property` iteratee shorthand.\\n * _.some(users, 'active');\\n * // => true\\n */\\n function some(collection, predicate, guard) {\\n var func = isArray(collection) ? arraySome : baseSome;\\n if (guard && isIterateeCall(collection, predicate, guard)) {\\n predicate = undefined;\\n }\\n return func(collection, getIteratee(predicate, 3));\\n }\\n\\n /**\\n * Creates an array of elements, sorted in ascending order by the results of\\n * running each element in a collection thru each iteratee. This method\\n * performs a stable sort, that is, it preserves the original sort order of\\n * equal elements. The iteratees are invoked with one argument: (value).\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Collection\\n * @param {Array|Object} collection The collection to iterate over.\\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\\n * The iteratees to sort by.\\n * @returns {Array} Returns the new sorted array.\\n * @example\\n *\\n * var users = [\\n * { 'user': 'fred', 'age': 48 },\\n * { 'user': 'barney', 'age': 36 },\\n * { 'user': 'fred', 'age': 40 },\\n * { 'user': 'barney', 'age': 34 }\\n * ];\\n *\\n * _.sortBy(users, [function(o) { return o.user; }]);\\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\\n *\\n * _.sortBy(users, ['user', 'age']);\\n * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]\\n */\\n var sortBy = baseRest(function(collection, iteratees) {\\n if (collection == null) {\\n return [];\\n }\\n var length = iteratees.length;\\n if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {\\n iteratees = [];\\n } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {\\n iteratees = [iteratees[0]];\\n }\\n return baseOrderBy(collection, baseFlatten(iteratees, 1), []);\\n });\\n\\n /*------------------------------------------------------------------------*/\\n\\n /**\\n * Gets the timestamp of the number of milliseconds that have elapsed since\\n * the Unix epoch (1 January 1970 00:00:00 UTC).\\n *\\n * @static\\n * @memberOf _\\n * @since 2.4.0\\n * @category Date\\n * @returns {number} Returns the timestamp.\\n * @example\\n *\\n * _.defer(function(stamp) {\\n * console.log(_.now() - stamp);\\n * }, _.now());\\n * // => Logs the number of milliseconds it took for the deferred invocation.\\n */\\n var now = ctxNow || function() {\\n return root.Date.now();\\n };\\n\\n /*------------------------------------------------------------------------*/\\n\\n /**\\n * The opposite of `_.before`; this method creates a function that invokes\\n * `func` once it's called `n` or more times.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Function\\n * @param {number} n The number of calls before `func` is invoked.\\n * @param {Function} func The function to restrict.\\n * @returns {Function} Returns the new restricted function.\\n * @example\\n *\\n * var saves = ['profile', 'settings'];\\n *\\n * var done = _.after(saves.length, function() {\\n * console.log('done saving!');\\n * });\\n *\\n * _.forEach(saves, function(type) {\\n * asyncSave({ 'type': type, 'complete': done });\\n * });\\n * // => Logs 'done saving!' after the two async saves have completed.\\n */\\n function after(n, func) {\\n if (typeof func != 'function') {\\n throw new TypeError(FUNC_ERROR_TEXT);\\n }\\n n = toInteger(n);\\n return function() {\\n if (--n < 1) {\\n return func.apply(this, arguments);\\n }\\n };\\n }\\n\\n /**\\n * Creates a function that invokes `func`, with up to `n` arguments,\\n * ignoring any additional arguments.\\n *\\n * @static\\n * @memberOf _\\n * @since 3.0.0\\n * @category Function\\n * @param {Function} func The function to cap arguments for.\\n * @param {number} [n=func.length] The arity cap.\\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\\n * @returns {Function} Returns the new capped function.\\n * @example\\n *\\n * _.map(['6', '8', '10'], _.ary(parseInt, 1));\\n * // => [6, 8, 10]\\n */\\n function ary(func, n, guard) {\\n n = guard ? undefined : n;\\n n = (func && n == null) ? func.length : n;\\n return createWrap(func, WRAP_ARY_FLAG, undefined, undefined, undefined, undefined, n);\\n }\\n\\n /**\\n * Creates a function that invokes `func`, with the `this` binding and arguments\\n * of the created function, while it's called less than `n` times. Subsequent\\n * calls to the created function return the result of the last `func` invocation.\\n *\\n * @static\\n * @memberOf _\\n * @since 3.0.0\\n * @category Function\\n * @param {number} n The number of calls at which `func` is no longer invoked.\\n * @param {Function} func The function to restrict.\\n * @returns {Function} Returns the new restricted function.\\n * @example\\n *\\n * jQuery(element).on('click', _.before(5, addContactToList));\\n * // => Allows adding up to 4 contacts to the list.\\n */\\n function before(n, func) {\\n var result;\\n if (typeof func != 'function') {\\n throw new TypeError(FUNC_ERROR_TEXT);\\n }\\n n = toInteger(n);\\n return function() {\\n if (--n > 0) {\\n result = func.apply(this, arguments);\\n }\\n if (n <= 1) {\\n func = undefined;\\n }\\n return result;\\n };\\n }\\n\\n /**\\n * Creates a function that invokes `func` with the `this` binding of `thisArg`\\n * and `partials` prepended to the arguments it receives.\\n *\\n * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,\\n * may be used as a placeholder for partially applied arguments.\\n *\\n * **Note:** Unlike native `Function#bind`, this method doesn't set the \\\"length\\\"\\n * property of bound functions.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Function\\n * @param {Function} func The function to bind.\\n * @param {*} thisArg The `this` binding of `func`.\\n * @param {...*} [partials] The arguments to be partially applied.\\n * @returns {Function} Returns the new bound function.\\n * @example\\n *\\n * function greet(greeting, punctuation) {\\n * return greeting + ' ' + this.user + punctuation;\\n * }\\n *\\n * var object = { 'user': 'fred' };\\n *\\n * var bound = _.bind(greet, object, 'hi');\\n * bound('!');\\n * // => 'hi fred!'\\n *\\n * // Bound with placeholders.\\n * var bound = _.bind(greet, object, _, '!');\\n * bound('hi');\\n * // => 'hi fred!'\\n */\\n var bind = baseRest(function(func, thisArg, partials) {\\n var bitmask = WRAP_BIND_FLAG;\\n if (partials.length) {\\n var holders = replaceHolders(partials, getHolder(bind));\\n bitmask |= WRAP_PARTIAL_FLAG;\\n }\\n return createWrap(func, bitmask, thisArg, partials, holders);\\n });\\n\\n /**\\n * Creates a function that invokes the method at `object[key]` with `partials`\\n * prepended to the arguments it receives.\\n *\\n * This method differs from `_.bind` by allowing bound functions to reference\\n * methods that may be redefined or don't yet exist. See\\n * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)\\n * for more details.\\n *\\n * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic\\n * builds, may be used as a placeholder for partially applied arguments.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.10.0\\n * @category Function\\n * @param {Object} object The object to invoke the method on.\\n * @param {string} key The key of the method.\\n * @param {...*} [partials] The arguments to be partially applied.\\n * @returns {Function} Returns the new bound function.\\n * @example\\n *\\n * var object = {\\n * 'user': 'fred',\\n * 'greet': function(greeting, punctuation) {\\n * return greeting + ' ' + this.user + punctuation;\\n * }\\n * };\\n *\\n * var bound = _.bindKey(object, 'greet', 'hi');\\n * bound('!');\\n * // => 'hi fred!'\\n *\\n * object.greet = function(greeting, punctuation) {\\n * return greeting + 'ya ' + this.user + punctuation;\\n * };\\n *\\n * bound('!');\\n * // => 'hiya fred!'\\n *\\n * // Bound with placeholders.\\n * var bound = _.bindKey(object, 'greet', _, '!');\\n * bound('hi');\\n * // => 'hiya fred!'\\n */\\n var bindKey = baseRest(function(object, key, partials) {\\n var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG;\\n if (partials.length) {\\n var holders = replaceHolders(partials, getHolder(bindKey));\\n bitmask |= WRAP_PARTIAL_FLAG;\\n }\\n return createWrap(key, bitmask, object, partials, holders);\\n });\\n\\n /**\\n * Creates a function that accepts arguments of `func` and either invokes\\n * `func` returning its result, if at least `arity` number of arguments have\\n * been provided, or returns a function that accepts the remaining `func`\\n * arguments, and so on. The arity of `func` may be specified if `func.length`\\n * is not sufficient.\\n *\\n * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,\\n * may be used as a placeholder for provided arguments.\\n *\\n * **Note:** This method doesn't set the \\\"length\\\" property of curried functions.\\n *\\n * @static\\n * @memberOf _\\n * @since 2.0.0\\n * @category Function\\n * @param {Function} func The function to curry.\\n * @param {number} [arity=func.length] The arity of `func`.\\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\\n * @returns {Function} Returns the new curried function.\\n * @example\\n *\\n * var abc = function(a, b, c) {\\n * return [a, b, c];\\n * };\\n *\\n * var curried = _.curry(abc);\\n *\\n * curried(1)(2)(3);\\n * // => [1, 2, 3]\\n *\\n * curried(1, 2)(3);\\n * // => [1, 2, 3]\\n *\\n * curried(1, 2, 3);\\n * // => [1, 2, 3]\\n *\\n * // Curried with placeholders.\\n * curried(1)(_, 3)(2);\\n * // => [1, 2, 3]\\n */\\n function curry(func, arity, guard) {\\n arity = guard ? undefined : arity;\\n var result = createWrap(func, WRAP_CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity);\\n result.placeholder = curry.placeholder;\\n return result;\\n }\\n\\n /**\\n * This method is like `_.curry` except that arguments are applied to `func`\\n * in the manner of `_.partialRight` instead of `_.partial`.\\n *\\n * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic\\n * builds, may be used as a placeholder for provided arguments.\\n *\\n * **Note:** This method doesn't set the \\\"length\\\" property of curried functions.\\n *\\n * @static\\n * @memberOf _\\n * @since 3.0.0\\n * @category Function\\n * @param {Function} func The function to curry.\\n * @param {number} [arity=func.length] The arity of `func`.\\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\\n * @returns {Function} Returns the new curried function.\\n * @example\\n *\\n * var abc = function(a, b, c) {\\n * return [a, b, c];\\n * };\\n *\\n * var curried = _.curryRight(abc);\\n *\\n * curried(3)(2)(1);\\n * // => [1, 2, 3]\\n *\\n * curried(2, 3)(1);\\n * // => [1, 2, 3]\\n *\\n * curried(1, 2, 3);\\n * // => [1, 2, 3]\\n *\\n * // Curried with placeholders.\\n * curried(3)(1, _)(2);\\n * // => [1, 2, 3]\\n */\\n function curryRight(func, arity, guard) {\\n arity = guard ? undefined : arity;\\n var result = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity);\\n result.placeholder = curryRight.placeholder;\\n return result;\\n }\\n\\n /**\\n * Creates a debounced function that delays invoking `func` until after `wait`\\n * milliseconds have elapsed since the last time the debounced function was\\n * invoked. The debounced function comes with a `cancel` method to cancel\\n * delayed `func` invocations and a `flush` method to immediately invoke them.\\n * Provide `options` to indicate whether `func` should be invoked on the\\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\\n * with the last arguments provided to the debounced function. Subsequent\\n * calls to the debounced function return the result of the last `func`\\n * invocation.\\n *\\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\\n * invoked on the trailing edge of the timeout only if the debounced function\\n * is invoked more than once during the `wait` timeout.\\n *\\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\\n *\\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\\n * for details over the differences between `_.debounce` and `_.throttle`.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Function\\n * @param {Function} func The function to debounce.\\n * @param {number} [wait=0] The number of milliseconds to delay.\\n * @param {Object} [options={}] The options object.\\n * @param {boolean} [options.leading=false]\\n * Specify invoking on the leading edge of the timeout.\\n * @param {number} [options.maxWait]\\n * The maximum time `func` is allowed to be delayed before it's invoked.\\n * @param {boolean} [options.trailing=true]\\n * Specify invoking on the trailing edge of the timeout.\\n * @returns {Function} Returns the new debounced function.\\n * @example\\n *\\n * // Avoid costly calculations while the window size is in flux.\\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\\n *\\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\\n * 'leading': true,\\n * 'trailing': false\\n * }));\\n *\\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\\n * var source = new EventSource('/stream');\\n * jQuery(source).on('message', debounced);\\n *\\n * // Cancel the trailing debounced invocation.\\n * jQuery(window).on('popstate', debounced.cancel);\\n */\\n function debounce(func, wait, options) {\\n var lastArgs,\\n lastThis,\\n maxWait,\\n result,\\n timerId,\\n lastCallTime,\\n lastInvokeTime = 0,\\n leading = false,\\n maxing = false,\\n trailing = true;\\n\\n if (typeof func != 'function') {\\n throw new TypeError(FUNC_ERROR_TEXT);\\n }\\n wait = toNumber(wait) || 0;\\n if (isObject(options)) {\\n leading = !!options.leading;\\n maxing = 'maxWait' in options;\\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\\n trailing = 'trailing' in options ? !!options.trailing : trailing;\\n }\\n\\n function invokeFunc(time) {\\n var args = lastArgs,\\n thisArg = lastThis;\\n\\n lastArgs = lastThis = undefined;\\n lastInvokeTime = time;\\n result = func.apply(thisArg, args);\\n return result;\\n }\\n\\n function leadingEdge(time) {\\n // Reset any `maxWait` timer.\\n lastInvokeTime = time;\\n // Start the timer for the trailing edge.\\n timerId = setTimeout(timerExpired, wait);\\n // Invoke the leading edge.\\n return leading ? invokeFunc(time) : result;\\n }\\n\\n function remainingWait(time) {\\n var timeSinceLastCall = time - lastCallTime,\\n timeSinceLastInvoke = time - lastInvokeTime,\\n result = wait - timeSinceLastCall;\\n\\n return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;\\n }\\n\\n function shouldInvoke(time) {\\n var timeSinceLastCall = time - lastCallTime,\\n timeSinceLastInvoke = time - lastInvokeTime;\\n\\n // Either this is the first call, activity has stopped and we're at the\\n // trailing edge, the system time has gone backwards and we're treating\\n // it as the trailing edge, or we've hit the `maxWait` limit.\\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\\n }\\n\\n function timerExpired() {\\n var time = now();\\n if (shouldInvoke(time)) {\\n return trailingEdge(time);\\n }\\n // Restart the timer.\\n timerId = setTimeout(timerExpired, remainingWait(time));\\n }\\n\\n function trailingEdge(time) {\\n timerId = undefined;\\n\\n // Only invoke if we have `lastArgs` which means `func` has been\\n // debounced at least once.\\n if (trailing && lastArgs) {\\n return invokeFunc(time);\\n }\\n lastArgs = lastThis = undefined;\\n return result;\\n }\\n\\n function cancel() {\\n if (timerId !== undefined) {\\n clearTimeout(timerId);\\n }\\n lastInvokeTime = 0;\\n lastArgs = lastCallTime = lastThis = timerId = undefined;\\n }\\n\\n function flush() {\\n return timerId === undefined ? result : trailingEdge(now());\\n }\\n\\n function debounced() {\\n var time = now(),\\n isInvoking = shouldInvoke(time);\\n\\n lastArgs = arguments;\\n lastThis = this;\\n lastCallTime = time;\\n\\n if (isInvoking) {\\n if (timerId === undefined) {\\n return leadingEdge(lastCallTime);\\n }\\n if (maxing) {\\n // Handle invocations in a tight loop.\\n timerId = setTimeout(timerExpired, wait);\\n return invokeFunc(lastCallTime);\\n }\\n }\\n if (timerId === undefined) {\\n timerId = setTimeout(timerExpired, wait);\\n }\\n return result;\\n }\\n debounced.cancel = cancel;\\n debounced.flush = flush;\\n return debounced;\\n }\\n\\n /**\\n * Defers invoking the `func` until the current call stack has cleared. Any\\n * additional arguments are provided to `func` when it's invoked.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Function\\n * @param {Function} func The function to defer.\\n * @param {...*} [args] The arguments to invoke `func` with.\\n * @returns {number} Returns the timer id.\\n * @example\\n *\\n * _.defer(function(text) {\\n * console.log(text);\\n * }, 'deferred');\\n * // => Logs 'deferred' after one millisecond.\\n */\\n var defer = baseRest(function(func, args) {\\n return baseDelay(func, 1, args);\\n });\\n\\n /**\\n * Invokes `func` after `wait` milliseconds. Any additional arguments are\\n * provided to `func` when it's invoked.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Function\\n * @param {Function} func The function to delay.\\n * @param {number} wait The number of milliseconds to delay invocation.\\n * @param {...*} [args] The arguments to invoke `func` with.\\n * @returns {number} Returns the timer id.\\n * @example\\n *\\n * _.delay(function(text) {\\n * console.log(text);\\n * }, 1000, 'later');\\n * // => Logs 'later' after one second.\\n */\\n var delay = baseRest(function(func, wait, args) {\\n return baseDelay(func, toNumber(wait) || 0, args);\\n });\\n\\n /**\\n * Creates a function that invokes `func` with arguments reversed.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Function\\n * @param {Function} func The function to flip arguments for.\\n * @returns {Function} Returns the new flipped function.\\n * @example\\n *\\n * var flipped = _.flip(function() {\\n * return _.toArray(arguments);\\n * });\\n *\\n * flipped('a', 'b', 'c', 'd');\\n * // => ['d', 'c', 'b', 'a']\\n */\\n function flip(func) {\\n return createWrap(func, WRAP_FLIP_FLAG);\\n }\\n\\n /**\\n * Creates a function that memoizes the result of `func`. If `resolver` is\\n * provided, it determines the cache key for storing the result based on the\\n * arguments provided to the memoized function. By default, the first argument\\n * provided to the memoized function is used as the map cache key. The `func`\\n * is invoked with the `this` binding of the memoized function.\\n *\\n * **Note:** The cache is exposed as the `cache` property on the memoized\\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\\n * constructor with one whose instances implement the\\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Function\\n * @param {Function} func The function to have its output memoized.\\n * @param {Function} [resolver] The function to resolve the cache key.\\n * @returns {Function} Returns the new memoized function.\\n * @example\\n *\\n * var object = { 'a': 1, 'b': 2 };\\n * var other = { 'c': 3, 'd': 4 };\\n *\\n * var values = _.memoize(_.values);\\n * values(object);\\n * // => [1, 2]\\n *\\n * values(other);\\n * // => [3, 4]\\n *\\n * object.a = 2;\\n * values(object);\\n * // => [1, 2]\\n *\\n * // Modify the result cache.\\n * values.cache.set(object, ['a', 'b']);\\n * values(object);\\n * // => ['a', 'b']\\n *\\n * // Replace `_.memoize.Cache`.\\n * _.memoize.Cache = WeakMap;\\n */\\n function memoize(func, resolver) {\\n if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\\n throw new TypeError(FUNC_ERROR_TEXT);\\n }\\n var memoized = function() {\\n var args = arguments,\\n key = resolver ? resolver.apply(this, args) : args[0],\\n cache = memoized.cache;\\n\\n if (cache.has(key)) {\\n return cache.get(key);\\n }\\n var result = func.apply(this, args);\\n memoized.cache = cache.set(key, result) || cache;\\n return result;\\n };\\n memoized.cache = new (memoize.Cache || MapCache);\\n return memoized;\\n }\\n\\n // Expose `MapCache`.\\n memoize.Cache = MapCache;\\n\\n /**\\n * Creates a function that negates the result of the predicate `func`. The\\n * `func` predicate is invoked with the `this` binding and arguments of the\\n * created function.\\n *\\n * @static\\n * @memberOf _\\n * @since 3.0.0\\n * @category Function\\n * @param {Function} predicate The predicate to negate.\\n * @returns {Function} Returns the new negated function.\\n * @example\\n *\\n * function isEven(n) {\\n * return n % 2 == 0;\\n * }\\n *\\n * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));\\n * // => [1, 3, 5]\\n */\\n function negate(predicate) {\\n if (typeof predicate != 'function') {\\n throw new TypeError(FUNC_ERROR_TEXT);\\n }\\n return function() {\\n var args = arguments;\\n switch (args.length) {\\n case 0: return !predicate.call(this);\\n case 1: return !predicate.call(this, args[0]);\\n case 2: return !predicate.call(this, args[0], args[1]);\\n case 3: return !predicate.call(this, args[0], args[1], args[2]);\\n }\\n return !predicate.apply(this, args);\\n };\\n }\\n\\n /**\\n * Creates a function that is restricted to invoking `func` once. Repeat calls\\n * to the function return the value of the first invocation. The `func` is\\n * invoked with the `this` binding and arguments of the created function.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Function\\n * @param {Function} func The function to restrict.\\n * @returns {Function} Returns the new restricted function.\\n * @example\\n *\\n * var initialize = _.once(createApplication);\\n * initialize();\\n * initialize();\\n * // => `createApplication` is invoked once\\n */\\n function once(func) {\\n return before(2, func);\\n }\\n\\n /**\\n * Creates a function that invokes `func` with its arguments transformed.\\n *\\n * @static\\n * @since 4.0.0\\n * @memberOf _\\n * @category Function\\n * @param {Function} func The function to wrap.\\n * @param {...(Function|Function[])} [transforms=[_.identity]]\\n * The argument transforms.\\n * @returns {Function} Returns the new function.\\n * @example\\n *\\n * function doubled(n) {\\n * return n * 2;\\n * }\\n *\\n * function square(n) {\\n * return n * n;\\n * }\\n *\\n * var func = _.overArgs(function(x, y) {\\n * return [x, y];\\n * }, [square, doubled]);\\n *\\n * func(9, 3);\\n * // => [81, 6]\\n *\\n * func(10, 5);\\n * // => [100, 10]\\n */\\n var overArgs = castRest(function(func, transforms) {\\n transforms = (transforms.length == 1 && isArray(transforms[0]))\\n ? arrayMap(transforms[0], baseUnary(getIteratee()))\\n : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));\\n\\n var funcsLength = transforms.length;\\n return baseRest(function(args) {\\n var index = -1,\\n length = nativeMin(args.length, funcsLength);\\n\\n while (++index < length) {\\n args[index] = transforms[index].call(this, args[index]);\\n }\\n return apply(func, this, args);\\n });\\n });\\n\\n /**\\n * Creates a function that invokes `func` with `partials` prepended to the\\n * arguments it receives. This method is like `_.bind` except it does **not**\\n * alter the `this` binding.\\n *\\n * The `_.partial.placeholder` value, which defaults to `_` in monolithic\\n * builds, may be used as a placeholder for partially applied arguments.\\n *\\n * **Note:** This method doesn't set the \\\"length\\\" property of partially\\n * applied functions.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.2.0\\n * @category Function\\n * @param {Function} func The function to partially apply arguments to.\\n * @param {...*} [partials] The arguments to be partially applied.\\n * @returns {Function} Returns the new partially applied function.\\n * @example\\n *\\n * function greet(greeting, name) {\\n * return greeting + ' ' + name;\\n * }\\n *\\n * var sayHelloTo = _.partial(greet, 'hello');\\n * sayHelloTo('fred');\\n * // => 'hello fred'\\n *\\n * // Partially applied with placeholders.\\n * var greetFred = _.partial(greet, _, 'fred');\\n * greetFred('hi');\\n * // => 'hi fred'\\n */\\n var partial = baseRest(function(func, partials) {\\n var holders = replaceHolders(partials, getHolder(partial));\\n return createWrap(func, WRAP_PARTIAL_FLAG, undefined, partials, holders);\\n });\\n\\n /**\\n * This method is like `_.partial` except that partially applied arguments\\n * are appended to the arguments it receives.\\n *\\n * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic\\n * builds, may be used as a placeholder for partially applied arguments.\\n *\\n * **Note:** This method doesn't set the \\\"length\\\" property of partially\\n * applied functions.\\n *\\n * @static\\n * @memberOf _\\n * @since 1.0.0\\n * @category Function\\n * @param {Function} func The function to partially apply arguments to.\\n * @param {...*} [partials] The arguments to be partially applied.\\n * @returns {Function} Returns the new partially applied function.\\n * @example\\n *\\n * function greet(greeting, name) {\\n * return greeting + ' ' + name;\\n * }\\n *\\n * var greetFred = _.partialRight(greet, 'fred');\\n * greetFred('hi');\\n * // => 'hi fred'\\n *\\n * // Partially applied with placeholders.\\n * var sayHelloTo = _.partialRight(greet, 'hello', _);\\n * sayHelloTo('fred');\\n * // => 'hello fred'\\n */\\n var partialRight = baseRest(function(func, partials) {\\n var holders = replaceHolders(partials, getHolder(partialRight));\\n return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined, partials, holders);\\n });\\n\\n /**\\n * Creates a function that invokes `func` with arguments arranged according\\n * to the specified `indexes` where the argument value at the first index is\\n * provided as the first argument, the argument value at the second index is\\n * provided as the second argument, and so on.\\n *\\n * @static\\n * @memberOf _\\n * @since 3.0.0\\n * @category Function\\n * @param {Function} func The function to rearrange arguments for.\\n * @param {...(number|number[])} indexes The arranged argument indexes.\\n * @returns {Function} Returns the new function.\\n * @example\\n *\\n * var rearged = _.rearg(function(a, b, c) {\\n * return [a, b, c];\\n * }, [2, 0, 1]);\\n *\\n * rearged('b', 'c', 'a')\\n * // => ['a', 'b', 'c']\\n */\\n var rearg = flatRest(function(func, indexes) {\\n return createWrap(func, WRAP_REARG_FLAG, undefined, undefined, undefined, indexes);\\n });\\n\\n /**\\n * Creates a function that invokes `func` with the `this` binding of the\\n * created function and arguments from `start` and beyond provided as\\n * an array.\\n *\\n * **Note:** This method is based on the\\n * [rest parameter](https://mdn.io/rest_parameters).\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Function\\n * @param {Function} func The function to apply a rest parameter to.\\n * @param {number} [start=func.length-1] The start position of the rest parameter.\\n * @returns {Function} Returns the new function.\\n * @example\\n *\\n * var say = _.rest(function(what, names) {\\n * return what + ' ' + _.initial(names).join(', ') +\\n * (_.size(names) > 1 ? ', & ' : '') + _.last(names);\\n * });\\n *\\n * say('hello', 'fred', 'barney', 'pebbles');\\n * // => 'hello fred, barney, & pebbles'\\n */\\n function rest(func, start) {\\n if (typeof func != 'function') {\\n throw new TypeError(FUNC_ERROR_TEXT);\\n }\\n start = start === undefined ? start : toInteger(start);\\n return baseRest(func, start);\\n }\\n\\n /**\\n * Creates a function that invokes `func` with the `this` binding of the\\n * create function and an array of arguments much like\\n * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).\\n *\\n * **Note:** This method is based on the\\n * [spread operator](https://mdn.io/spread_operator).\\n *\\n * @static\\n * @memberOf _\\n * @since 3.2.0\\n * @category Function\\n * @param {Function} func The function to spread arguments over.\\n * @param {number} [start=0] The start position of the spread.\\n * @returns {Function} Returns the new function.\\n * @example\\n *\\n * var say = _.spread(function(who, what) {\\n * return who + ' says ' + what;\\n * });\\n *\\n * say(['fred', 'hello']);\\n * // => 'fred says hello'\\n *\\n * var numbers = Promise.all([\\n * Promise.resolve(40),\\n * Promise.resolve(36)\\n * ]);\\n *\\n * numbers.then(_.spread(function(x, y) {\\n * return x + y;\\n * }));\\n * // => a Promise of 76\\n */\\n function spread(func, start) {\\n if (typeof func != 'function') {\\n throw new TypeError(FUNC_ERROR_TEXT);\\n }\\n start = start == null ? 0 : nativeMax(toInteger(start), 0);\\n return baseRest(function(args) {\\n var array = args[start],\\n otherArgs = castSlice(args, 0, start);\\n\\n if (array) {\\n arrayPush(otherArgs, array);\\n }\\n return apply(func, this, otherArgs);\\n });\\n }\\n\\n /**\\n * Creates a throttled function that only invokes `func` at most once per\\n * every `wait` milliseconds. The throttled function comes with a `cancel`\\n * method to cancel delayed `func` invocations and a `flush` method to\\n * immediately invoke them. Provide `options` to indicate whether `func`\\n * should be invoked on the leading and/or trailing edge of the `wait`\\n * timeout. The `func` is invoked with the last arguments provided to the\\n * throttled function. Subsequent calls to the throttled function return the\\n * result of the last `func` invocation.\\n *\\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\\n * invoked on the trailing edge of the timeout only if the throttled function\\n * is invoked more than once during the `wait` timeout.\\n *\\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\\n *\\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\\n * for details over the differences between `_.throttle` and `_.debounce`.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Function\\n * @param {Function} func The function to throttle.\\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\\n * @param {Object} [options={}] The options object.\\n * @param {boolean} [options.leading=true]\\n * Specify invoking on the leading edge of the timeout.\\n * @param {boolean} [options.trailing=true]\\n * Specify invoking on the trailing edge of the timeout.\\n * @returns {Function} Returns the new throttled function.\\n * @example\\n *\\n * // Avoid excessively updating the position while scrolling.\\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\\n *\\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\\n * jQuery(element).on('click', throttled);\\n *\\n * // Cancel the trailing throttled invocation.\\n * jQuery(window).on('popstate', throttled.cancel);\\n */\\n function throttle(func, wait, options) {\\n var leading = true,\\n trailing = true;\\n\\n if (typeof func != 'function') {\\n throw new TypeError(FUNC_ERROR_TEXT);\\n }\\n if (isObject(options)) {\\n leading = 'leading' in options ? !!options.leading : leading;\\n trailing = 'trailing' in options ? !!options.trailing : trailing;\\n }\\n return debounce(func, wait, {\\n 'leading': leading,\\n 'maxWait': wait,\\n 'trailing': trailing\\n });\\n }\\n\\n /**\\n * Creates a function that accepts up to one argument, ignoring any\\n * additional arguments.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Function\\n * @param {Function} func The function to cap arguments for.\\n * @returns {Function} Returns the new capped function.\\n * @example\\n *\\n * _.map(['6', '8', '10'], _.unary(parseInt));\\n * // => [6, 8, 10]\\n */\\n function unary(func) {\\n return ary(func, 1);\\n }\\n\\n /**\\n * Creates a function that provides `value` to `wrapper` as its first\\n * argument. Any additional arguments provided to the function are appended\\n * to those provided to the `wrapper`. The wrapper is invoked with the `this`\\n * binding of the created function.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Function\\n * @param {*} value The value to wrap.\\n * @param {Function} [wrapper=identity] The wrapper function.\\n * @returns {Function} Returns the new function.\\n * @example\\n *\\n * var p = _.wrap(_.escape, function(func, text) {\\n * return '

' + func(text) + '

';\\n * });\\n *\\n * p('fred, barney, & pebbles');\\n * // => '

fred, barney, & pebbles

'\\n */\\n function wrap(value, wrapper) {\\n return partial(castFunction(wrapper), value);\\n }\\n\\n /*------------------------------------------------------------------------*/\\n\\n /**\\n * Casts `value` as an array if it's not one.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.4.0\\n * @category Lang\\n * @param {*} value The value to inspect.\\n * @returns {Array} Returns the cast array.\\n * @example\\n *\\n * _.castArray(1);\\n * // => [1]\\n *\\n * _.castArray({ 'a': 1 });\\n * // => [{ 'a': 1 }]\\n *\\n * _.castArray('abc');\\n * // => ['abc']\\n *\\n * _.castArray(null);\\n * // => [null]\\n *\\n * _.castArray(undefined);\\n * // => [undefined]\\n *\\n * _.castArray();\\n * // => []\\n *\\n * var array = [1, 2, 3];\\n * console.log(_.castArray(array) === array);\\n * // => true\\n */\\n function castArray() {\\n if (!arguments.length) {\\n return [];\\n }\\n var value = arguments[0];\\n return isArray(value) ? value : [value];\\n }\\n\\n /**\\n * Creates a shallow clone of `value`.\\n *\\n * **Note:** This method is loosely based on the\\n * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)\\n * and supports cloning arrays, array buffers, booleans, date objects, maps,\\n * numbers, `Object` objects, regexes, sets, strings, symbols, and typed\\n * arrays. The own enumerable properties of `arguments` objects are cloned\\n * as plain objects. An empty object is returned for uncloneable values such\\n * as error objects, functions, DOM nodes, and WeakMaps.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Lang\\n * @param {*} value The value to clone.\\n * @returns {*} Returns the cloned value.\\n * @see _.cloneDeep\\n * @example\\n *\\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\\n *\\n * var shallow = _.clone(objects);\\n * console.log(shallow[0] === objects[0]);\\n * // => true\\n */\\n function clone(value) {\\n return baseClone(value, CLONE_SYMBOLS_FLAG);\\n }\\n\\n /**\\n * This method is like `_.clone` except that it accepts `customizer` which\\n * is invoked to produce the cloned value. If `customizer` returns `undefined`,\\n * cloning is handled by the method instead. The `customizer` is invoked with\\n * up to four arguments; (value [, index|key, object, stack]).\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Lang\\n * @param {*} value The value to clone.\\n * @param {Function} [customizer] The function to customize cloning.\\n * @returns {*} Returns the cloned value.\\n * @see _.cloneDeepWith\\n * @example\\n *\\n * function customizer(value) {\\n * if (_.isElement(value)) {\\n * return value.cloneNode(false);\\n * }\\n * }\\n *\\n * var el = _.cloneWith(document.body, customizer);\\n *\\n * console.log(el === document.body);\\n * // => false\\n * console.log(el.nodeName);\\n * // => 'BODY'\\n * console.log(el.childNodes.length);\\n * // => 0\\n */\\n function cloneWith(value, customizer) {\\n customizer = typeof customizer == 'function' ? customizer : undefined;\\n return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);\\n }\\n\\n /**\\n * This method is like `_.clone` except that it recursively clones `value`.\\n *\\n * @static\\n * @memberOf _\\n * @since 1.0.0\\n * @category Lang\\n * @param {*} value The value to recursively clone.\\n * @returns {*} Returns the deep cloned value.\\n * @see _.clone\\n * @example\\n *\\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\\n *\\n * var deep = _.cloneDeep(objects);\\n * console.log(deep[0] === objects[0]);\\n * // => false\\n */\\n function cloneDeep(value) {\\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\\n }\\n\\n /**\\n * This method is like `_.cloneWith` except that it recursively clones `value`.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Lang\\n * @param {*} value The value to recursively clone.\\n * @param {Function} [customizer] The function to customize cloning.\\n * @returns {*} Returns the deep cloned value.\\n * @see _.cloneWith\\n * @example\\n *\\n * function customizer(value) {\\n * if (_.isElement(value)) {\\n * return value.cloneNode(true);\\n * }\\n * }\\n *\\n * var el = _.cloneDeepWith(document.body, customizer);\\n *\\n * console.log(el === document.body);\\n * // => false\\n * console.log(el.nodeName);\\n * // => 'BODY'\\n * console.log(el.childNodes.length);\\n * // => 20\\n */\\n function cloneDeepWith(value, customizer) {\\n customizer = typeof customizer == 'function' ? customizer : undefined;\\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);\\n }\\n\\n /**\\n * Checks if `object` conforms to `source` by invoking the predicate\\n * properties of `source` with the corresponding property values of `object`.\\n *\\n * **Note:** This method is equivalent to `_.conforms` when `source` is\\n * partially applied.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.14.0\\n * @category Lang\\n * @param {Object} object The object to inspect.\\n * @param {Object} source The object of property predicates to conform to.\\n * @returns {boolean} Returns `true` if `object` conforms, else `false`.\\n * @example\\n *\\n * var object = { 'a': 1, 'b': 2 };\\n *\\n * _.conformsTo(object, { 'b': function(n) { return n > 1; } });\\n * // => true\\n *\\n * _.conformsTo(object, { 'b': function(n) { return n > 2; } });\\n * // => false\\n */\\n function conformsTo(object, source) {\\n return source == null || baseConformsTo(object, source, keys(source));\\n }\\n\\n /**\\n * Performs a\\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\\n * comparison between two values to determine if they are equivalent.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Lang\\n * @param {*} value The value to compare.\\n * @param {*} other The other value to compare.\\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\\n * @example\\n *\\n * var object = { 'a': 1 };\\n * var other = { 'a': 1 };\\n *\\n * _.eq(object, object);\\n * // => true\\n *\\n * _.eq(object, other);\\n * // => false\\n *\\n * _.eq('a', 'a');\\n * // => true\\n *\\n * _.eq('a', Object('a'));\\n * // => false\\n *\\n * _.eq(NaN, NaN);\\n * // => true\\n */\\n function eq(value, other) {\\n return value === other || (value !== value && other !== other);\\n }\\n\\n /**\\n * Checks if `value` is greater than `other`.\\n *\\n * @static\\n * @memberOf _\\n * @since 3.9.0\\n * @category Lang\\n * @param {*} value The value to compare.\\n * @param {*} other The other value to compare.\\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\\n * else `false`.\\n * @see _.lt\\n * @example\\n *\\n * _.gt(3, 1);\\n * // => true\\n *\\n * _.gt(3, 3);\\n * // => false\\n *\\n * _.gt(1, 3);\\n * // => false\\n */\\n var gt = createRelationalOperation(baseGt);\\n\\n /**\\n * Checks if `value` is greater than or equal to `other`.\\n *\\n * @static\\n * @memberOf _\\n * @since 3.9.0\\n * @category Lang\\n * @param {*} value The value to compare.\\n * @param {*} other The other value to compare.\\n * @returns {boolean} Returns `true` if `value` is greater than or equal to\\n * `other`, else `false`.\\n * @see _.lte\\n * @example\\n *\\n * _.gte(3, 1);\\n * // => true\\n *\\n * _.gte(3, 3);\\n * // => true\\n *\\n * _.gte(1, 3);\\n * // => false\\n */\\n var gte = createRelationalOperation(function(value, other) {\\n return value >= other;\\n });\\n\\n /**\\n * Checks if `value` is likely an `arguments` object.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Lang\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\\n * else `false`.\\n * @example\\n *\\n * _.isArguments(function() { return arguments; }());\\n * // => true\\n *\\n * _.isArguments([1, 2, 3]);\\n * // => false\\n */\\n var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\\n !propertyIsEnumerable.call(value, 'callee');\\n };\\n\\n /**\\n * Checks if `value` is classified as an `Array` object.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Lang\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\\n * @example\\n *\\n * _.isArray([1, 2, 3]);\\n * // => true\\n *\\n * _.isArray(document.body.children);\\n * // => false\\n *\\n * _.isArray('abc');\\n * // => false\\n *\\n * _.isArray(_.noop);\\n * // => false\\n */\\n var isArray = Array.isArray;\\n\\n /**\\n * Checks if `value` is classified as an `ArrayBuffer` object.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.3.0\\n * @category Lang\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.\\n * @example\\n *\\n * _.isArrayBuffer(new ArrayBuffer(2));\\n * // => true\\n *\\n * _.isArrayBuffer(new Array(2));\\n * // => false\\n */\\n var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;\\n\\n /**\\n * Checks if `value` is array-like. A value is considered array-like if it's\\n * not a function and has a `value.length` that's an integer greater than or\\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Lang\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\\n * @example\\n *\\n * _.isArrayLike([1, 2, 3]);\\n * // => true\\n *\\n * _.isArrayLike(document.body.children);\\n * // => true\\n *\\n * _.isArrayLike('abc');\\n * // => true\\n *\\n * _.isArrayLike(_.noop);\\n * // => false\\n */\\n function isArrayLike(value) {\\n return value != null && isLength(value.length) && !isFunction(value);\\n }\\n\\n /**\\n * This method is like `_.isArrayLike` except that it also checks if `value`\\n * is an object.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Lang\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is an array-like object,\\n * else `false`.\\n * @example\\n *\\n * _.isArrayLikeObject([1, 2, 3]);\\n * // => true\\n *\\n * _.isArrayLikeObject(document.body.children);\\n * // => true\\n *\\n * _.isArrayLikeObject('abc');\\n * // => false\\n *\\n * _.isArrayLikeObject(_.noop);\\n * // => false\\n */\\n function isArrayLikeObject(value) {\\n return isObjectLike(value) && isArrayLike(value);\\n }\\n\\n /**\\n * Checks if `value` is classified as a boolean primitive or object.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Lang\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.\\n * @example\\n *\\n * _.isBoolean(false);\\n * // => true\\n *\\n * _.isBoolean(null);\\n * // => false\\n */\\n function isBoolean(value) {\\n return value === true || value === false ||\\n (isObjectLike(value) && baseGetTag(value) == boolTag);\\n }\\n\\n /**\\n * Checks if `value` is a buffer.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.3.0\\n * @category Lang\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\\n * @example\\n *\\n * _.isBuffer(new Buffer(2));\\n * // => true\\n *\\n * _.isBuffer(new Uint8Array(2));\\n * // => false\\n */\\n var isBuffer = nativeIsBuffer || stubFalse;\\n\\n /**\\n * Checks if `value` is classified as a `Date` object.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Lang\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is a date object, else `false`.\\n * @example\\n *\\n * _.isDate(new Date);\\n * // => true\\n *\\n * _.isDate('Mon April 23 2012');\\n * // => false\\n */\\n var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;\\n\\n /**\\n * Checks if `value` is likely a DOM element.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Lang\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.\\n * @example\\n *\\n * _.isElement(document.body);\\n * // => true\\n *\\n * _.isElement('');\\n * // => false\\n */\\n function isElement(value) {\\n return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);\\n }\\n\\n /**\\n * Checks if `value` is an empty object, collection, map, or set.\\n *\\n * Objects are considered empty if they have no own enumerable string keyed\\n * properties.\\n *\\n * Array-like values such as `arguments` objects, arrays, buffers, strings, or\\n * jQuery-like collections are considered empty if they have a `length` of `0`.\\n * Similarly, maps and sets are considered empty if they have a `size` of `0`.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Lang\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is empty, else `false`.\\n * @example\\n *\\n * _.isEmpty(null);\\n * // => true\\n *\\n * _.isEmpty(true);\\n * // => true\\n *\\n * _.isEmpty(1);\\n * // => true\\n *\\n * _.isEmpty([1, 2, 3]);\\n * // => false\\n *\\n * _.isEmpty({ 'a': 1 });\\n * // => false\\n */\\n function isEmpty(value) {\\n if (value == null) {\\n return true;\\n }\\n if (isArrayLike(value) &&\\n (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||\\n isBuffer(value) || isTypedArray(value) || isArguments(value))) {\\n return !value.length;\\n }\\n var tag = getTag(value);\\n if (tag == mapTag || tag == setTag) {\\n return !value.size;\\n }\\n if (isPrototype(value)) {\\n return !baseKeys(value).length;\\n }\\n for (var key in value) {\\n if (hasOwnProperty.call(value, key)) {\\n return false;\\n }\\n }\\n return true;\\n }\\n\\n /**\\n * Performs a deep comparison between two values to determine if they are\\n * equivalent.\\n *\\n * **Note:** This method supports comparing arrays, array buffers, booleans,\\n * date objects, error objects, maps, numbers, `Object` objects, regexes,\\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\\n * by their own, not inherited, enumerable properties. Functions and DOM\\n * nodes are compared by strict equality, i.e. `===`.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Lang\\n * @param {*} value The value to compare.\\n * @param {*} other The other value to compare.\\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\\n * @example\\n *\\n * var object = { 'a': 1 };\\n * var other = { 'a': 1 };\\n *\\n * _.isEqual(object, other);\\n * // => true\\n *\\n * object === other;\\n * // => false\\n */\\n function isEqual(value, other) {\\n return baseIsEqual(value, other);\\n }\\n\\n /**\\n * This method is like `_.isEqual` except that it accepts `customizer` which\\n * is invoked to compare values. If `customizer` returns `undefined`, comparisons\\n * are handled by the method instead. The `customizer` is invoked with up to\\n * six arguments: (objValue, othValue [, index|key, object, other, stack]).\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Lang\\n * @param {*} value The value to compare.\\n * @param {*} other The other value to compare.\\n * @param {Function} [customizer] The function to customize comparisons.\\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\\n * @example\\n *\\n * function isGreeting(value) {\\n * return /^h(?:i|ello)$/.test(value);\\n * }\\n *\\n * function customizer(objValue, othValue) {\\n * if (isGreeting(objValue) && isGreeting(othValue)) {\\n * return true;\\n * }\\n * }\\n *\\n * var array = ['hello', 'goodbye'];\\n * var other = ['hi', 'goodbye'];\\n *\\n * _.isEqualWith(array, other, customizer);\\n * // => true\\n */\\n function isEqualWith(value, other, customizer) {\\n customizer = typeof customizer == 'function' ? customizer : undefined;\\n var result = customizer ? customizer(value, other) : undefined;\\n return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result;\\n }\\n\\n /**\\n * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,\\n * `SyntaxError`, `TypeError`, or `URIError` object.\\n *\\n * @static\\n * @memberOf _\\n * @since 3.0.0\\n * @category Lang\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is an error object, else `false`.\\n * @example\\n *\\n * _.isError(new Error);\\n * // => true\\n *\\n * _.isError(Error);\\n * // => false\\n */\\n function isError(value) {\\n if (!isObjectLike(value)) {\\n return false;\\n }\\n var tag = baseGetTag(value);\\n return tag == errorTag || tag == domExcTag ||\\n (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value));\\n }\\n\\n /**\\n * Checks if `value` is a finite primitive number.\\n *\\n * **Note:** This method is based on\\n * [`Number.isFinite`](https://mdn.io/Number/isFinite).\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Lang\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.\\n * @example\\n *\\n * _.isFinite(3);\\n * // => true\\n *\\n * _.isFinite(Number.MIN_VALUE);\\n * // => true\\n *\\n * _.isFinite(Infinity);\\n * // => false\\n *\\n * _.isFinite('3');\\n * // => false\\n */\\n function isFinite(value) {\\n return typeof value == 'number' && nativeIsFinite(value);\\n }\\n\\n /**\\n * Checks if `value` is classified as a `Function` object.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Lang\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\\n * @example\\n *\\n * _.isFunction(_);\\n * // => true\\n *\\n * _.isFunction(/abc/);\\n * // => false\\n */\\n function isFunction(value) {\\n if (!isObject(value)) {\\n return false;\\n }\\n // The use of `Object#toString` avoids issues with the `typeof` operator\\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\\n var tag = baseGetTag(value);\\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\\n }\\n\\n /**\\n * Checks if `value` is an integer.\\n *\\n * **Note:** This method is based on\\n * [`Number.isInteger`](https://mdn.io/Number/isInteger).\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Lang\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is an integer, else `false`.\\n * @example\\n *\\n * _.isInteger(3);\\n * // => true\\n *\\n * _.isInteger(Number.MIN_VALUE);\\n * // => false\\n *\\n * _.isInteger(Infinity);\\n * // => false\\n *\\n * _.isInteger('3');\\n * // => false\\n */\\n function isInteger(value) {\\n return typeof value == 'number' && value == toInteger(value);\\n }\\n\\n /**\\n * Checks if `value` is a valid array-like length.\\n *\\n * **Note:** This method is loosely based on\\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Lang\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\\n * @example\\n *\\n * _.isLength(3);\\n * // => true\\n *\\n * _.isLength(Number.MIN_VALUE);\\n * // => false\\n *\\n * _.isLength(Infinity);\\n * // => false\\n *\\n * _.isLength('3');\\n * // => false\\n */\\n function isLength(value) {\\n return typeof value == 'number' &&\\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\\n }\\n\\n /**\\n * Checks if `value` is the\\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Lang\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\\n * @example\\n *\\n * _.isObject({});\\n * // => true\\n *\\n * _.isObject([1, 2, 3]);\\n * // => true\\n *\\n * _.isObject(_.noop);\\n * // => true\\n *\\n * _.isObject(null);\\n * // => false\\n */\\n function isObject(value) {\\n var type = typeof value;\\n return value != null && (type == 'object' || type == 'function');\\n }\\n\\n /**\\n * Checks if `value` is object-like. A value is object-like if it's not `null`\\n * and has a `typeof` result of \\\"object\\\".\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Lang\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\\n * @example\\n *\\n * _.isObjectLike({});\\n * // => true\\n *\\n * _.isObjectLike([1, 2, 3]);\\n * // => true\\n *\\n * _.isObjectLike(_.noop);\\n * // => false\\n *\\n * _.isObjectLike(null);\\n * // => false\\n */\\n function isObjectLike(value) {\\n return value != null && typeof value == 'object';\\n }\\n\\n /**\\n * Checks if `value` is classified as a `Map` object.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.3.0\\n * @category Lang\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\\n * @example\\n *\\n * _.isMap(new Map);\\n * // => true\\n *\\n * _.isMap(new WeakMap);\\n * // => false\\n */\\n var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\\n\\n /**\\n * Performs a partial deep comparison between `object` and `source` to\\n * determine if `object` contains equivalent property values.\\n *\\n * **Note:** This method is equivalent to `_.matches` when `source` is\\n * partially applied.\\n *\\n * Partial comparisons will match empty array and empty object `source`\\n * values against any array or object value, respectively. See `_.isEqual`\\n * for a list of supported value comparisons.\\n *\\n * @static\\n * @memberOf _\\n * @since 3.0.0\\n * @category Lang\\n * @param {Object} object The object to inspect.\\n * @param {Object} source The object of property values to match.\\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\\n * @example\\n *\\n * var object = { 'a': 1, 'b': 2 };\\n *\\n * _.isMatch(object, { 'b': 2 });\\n * // => true\\n *\\n * _.isMatch(object, { 'b': 1 });\\n * // => false\\n */\\n function isMatch(object, source) {\\n return object === source || baseIsMatch(object, source, getMatchData(source));\\n }\\n\\n /**\\n * This method is like `_.isMatch` except that it accepts `customizer` which\\n * is invoked to compare values. If `customizer` returns `undefined`, comparisons\\n * are handled by the method instead. The `customizer` is invoked with five\\n * arguments: (objValue, srcValue, index|key, object, source).\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Lang\\n * @param {Object} object The object to inspect.\\n * @param {Object} source The object of property values to match.\\n * @param {Function} [customizer] The function to customize comparisons.\\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\\n * @example\\n *\\n * function isGreeting(value) {\\n * return /^h(?:i|ello)$/.test(value);\\n * }\\n *\\n * function customizer(objValue, srcValue) {\\n * if (isGreeting(objValue) && isGreeting(srcValue)) {\\n * return true;\\n * }\\n * }\\n *\\n * var object = { 'greeting': 'hello' };\\n * var source = { 'greeting': 'hi' };\\n *\\n * _.isMatchWith(object, source, customizer);\\n * // => true\\n */\\n function isMatchWith(object, source, customizer) {\\n customizer = typeof customizer == 'function' ? customizer : undefined;\\n return baseIsMatch(object, source, getMatchData(source), customizer);\\n }\\n\\n /**\\n * Checks if `value` is `NaN`.\\n *\\n * **Note:** This method is based on\\n * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as\\n * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for\\n * `undefined` and other non-number values.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Lang\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\\n * @example\\n *\\n * _.isNaN(NaN);\\n * // => true\\n *\\n * _.isNaN(new Number(NaN));\\n * // => true\\n *\\n * isNaN(undefined);\\n * // => true\\n *\\n * _.isNaN(undefined);\\n * // => false\\n */\\n function isNaN(value) {\\n // An `NaN` primitive is the only value that is not equal to itself.\\n // Perform the `toStringTag` check first to avoid errors with some\\n // ActiveX objects in IE.\\n return isNumber(value) && value != +value;\\n }\\n\\n /**\\n * Checks if `value` is a pristine native function.\\n *\\n * **Note:** This method can't reliably detect native functions in the presence\\n * of the core-js package because core-js circumvents this kind of detection.\\n * Despite multiple requests, the core-js maintainer has made it clear: any\\n * attempt to fix the detection will be obstructed. As a result, we're left\\n * with little choice but to throw an error. Unfortunately, this also affects\\n * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),\\n * which rely on core-js.\\n *\\n * @static\\n * @memberOf _\\n * @since 3.0.0\\n * @category Lang\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is a native function,\\n * else `false`.\\n * @example\\n *\\n * _.isNative(Array.prototype.push);\\n * // => true\\n *\\n * _.isNative(_);\\n * // => false\\n */\\n function isNative(value) {\\n if (isMaskable(value)) {\\n throw new Error(CORE_ERROR_TEXT);\\n }\\n return baseIsNative(value);\\n }\\n\\n /**\\n * Checks if `value` is `null`.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Lang\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is `null`, else `false`.\\n * @example\\n *\\n * _.isNull(null);\\n * // => true\\n *\\n * _.isNull(void 0);\\n * // => false\\n */\\n function isNull(value) {\\n return value === null;\\n }\\n\\n /**\\n * Checks if `value` is `null` or `undefined`.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Lang\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is nullish, else `false`.\\n * @example\\n *\\n * _.isNil(null);\\n * // => true\\n *\\n * _.isNil(void 0);\\n * // => true\\n *\\n * _.isNil(NaN);\\n * // => false\\n */\\n function isNil(value) {\\n return value == null;\\n }\\n\\n /**\\n * Checks if `value` is classified as a `Number` primitive or object.\\n *\\n * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are\\n * classified as numbers, use the `_.isFinite` method.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Lang\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is a number, else `false`.\\n * @example\\n *\\n * _.isNumber(3);\\n * // => true\\n *\\n * _.isNumber(Number.MIN_VALUE);\\n * // => true\\n *\\n * _.isNumber(Infinity);\\n * // => true\\n *\\n * _.isNumber('3');\\n * // => false\\n */\\n function isNumber(value) {\\n return typeof value == 'number' ||\\n (isObjectLike(value) && baseGetTag(value) == numberTag);\\n }\\n\\n /**\\n * Checks if `value` is a plain object, that is, an object created by the\\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.8.0\\n * @category Lang\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\\n * @example\\n *\\n * function Foo() {\\n * this.a = 1;\\n * }\\n *\\n * _.isPlainObject(new Foo);\\n * // => false\\n *\\n * _.isPlainObject([1, 2, 3]);\\n * // => false\\n *\\n * _.isPlainObject({ 'x': 0, 'y': 0 });\\n * // => true\\n *\\n * _.isPlainObject(Object.create(null));\\n * // => true\\n */\\n function isPlainObject(value) {\\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\\n return false;\\n }\\n var proto = getPrototype(value);\\n if (proto === null) {\\n return true;\\n }\\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\\n funcToString.call(Ctor) == objectCtorString;\\n }\\n\\n /**\\n * Checks if `value` is classified as a `RegExp` object.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.1.0\\n * @category Lang\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\\n * @example\\n *\\n * _.isRegExp(/abc/);\\n * // => true\\n *\\n * _.isRegExp('/abc/');\\n * // => false\\n */\\n var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;\\n\\n /**\\n * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754\\n * double precision number which isn't the result of a rounded unsafe integer.\\n *\\n * **Note:** This method is based on\\n * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Lang\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.\\n * @example\\n *\\n * _.isSafeInteger(3);\\n * // => true\\n *\\n * _.isSafeInteger(Number.MIN_VALUE);\\n * // => false\\n *\\n * _.isSafeInteger(Infinity);\\n * // => false\\n *\\n * _.isSafeInteger('3');\\n * // => false\\n */\\n function isSafeInteger(value) {\\n return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;\\n }\\n\\n /**\\n * Checks if `value` is classified as a `Set` object.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.3.0\\n * @category Lang\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\\n * @example\\n *\\n * _.isSet(new Set);\\n * // => true\\n *\\n * _.isSet(new WeakSet);\\n * // => false\\n */\\n var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\\n\\n /**\\n * Checks if `value` is classified as a `String` primitive or object.\\n *\\n * @static\\n * @since 0.1.0\\n * @memberOf _\\n * @category Lang\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\\n * @example\\n *\\n * _.isString('abc');\\n * // => true\\n *\\n * _.isString(1);\\n * // => false\\n */\\n function isString(value) {\\n return typeof value == 'string' ||\\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\\n }\\n\\n /**\\n * Checks if `value` is classified as a `Symbol` primitive or object.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Lang\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\\n * @example\\n *\\n * _.isSymbol(Symbol.iterator);\\n * // => true\\n *\\n * _.isSymbol('abc');\\n * // => false\\n */\\n function isSymbol(value) {\\n return typeof value == 'symbol' ||\\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\\n }\\n\\n /**\\n * Checks if `value` is classified as a typed array.\\n *\\n * @static\\n * @memberOf _\\n * @since 3.0.0\\n * @category Lang\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\\n * @example\\n *\\n * _.isTypedArray(new Uint8Array);\\n * // => true\\n *\\n * _.isTypedArray([]);\\n * // => false\\n */\\n var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\\n\\n /**\\n * Checks if `value` is `undefined`.\\n *\\n * @static\\n * @since 0.1.0\\n * @memberOf _\\n * @category Lang\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.\\n * @example\\n *\\n * _.isUndefined(void 0);\\n * // => true\\n *\\n * _.isUndefined(null);\\n * // => false\\n */\\n function isUndefined(value) {\\n return value === undefined;\\n }\\n\\n /**\\n * Checks if `value` is classified as a `WeakMap` object.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.3.0\\n * @category Lang\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is a weak map, else `false`.\\n * @example\\n *\\n * _.isWeakMap(new WeakMap);\\n * // => true\\n *\\n * _.isWeakMap(new Map);\\n * // => false\\n */\\n function isWeakMap(value) {\\n return isObjectLike(value) && getTag(value) == weakMapTag;\\n }\\n\\n /**\\n * Checks if `value` is classified as a `WeakSet` object.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.3.0\\n * @category Lang\\n * @param {*} value The value to check.\\n * @returns {boolean} Returns `true` if `value` is a weak set, else `false`.\\n * @example\\n *\\n * _.isWeakSet(new WeakSet);\\n * // => true\\n *\\n * _.isWeakSet(new Set);\\n * // => false\\n */\\n function isWeakSet(value) {\\n return isObjectLike(value) && baseGetTag(value) == weakSetTag;\\n }\\n\\n /**\\n * Checks if `value` is less than `other`.\\n *\\n * @static\\n * @memberOf _\\n * @since 3.9.0\\n * @category Lang\\n * @param {*} value The value to compare.\\n * @param {*} other The other value to compare.\\n * @returns {boolean} Returns `true` if `value` is less than `other`,\\n * else `false`.\\n * @see _.gt\\n * @example\\n *\\n * _.lt(1, 3);\\n * // => true\\n *\\n * _.lt(3, 3);\\n * // => false\\n *\\n * _.lt(3, 1);\\n * // => false\\n */\\n var lt = createRelationalOperation(baseLt);\\n\\n /**\\n * Checks if `value` is less than or equal to `other`.\\n *\\n * @static\\n * @memberOf _\\n * @since 3.9.0\\n * @category Lang\\n * @param {*} value The value to compare.\\n * @param {*} other The other value to compare.\\n * @returns {boolean} Returns `true` if `value` is less than or equal to\\n * `other`, else `false`.\\n * @see _.gte\\n * @example\\n *\\n * _.lte(1, 3);\\n * // => true\\n *\\n * _.lte(3, 3);\\n * // => true\\n *\\n * _.lte(3, 1);\\n * // => false\\n */\\n var lte = createRelationalOperation(function(value, other) {\\n return value <= other;\\n });\\n\\n /**\\n * Converts `value` to an array.\\n *\\n * @static\\n * @since 0.1.0\\n * @memberOf _\\n * @category Lang\\n * @param {*} value The value to convert.\\n * @returns {Array} Returns the converted array.\\n * @example\\n *\\n * _.toArray({ 'a': 1, 'b': 2 });\\n * // => [1, 2]\\n *\\n * _.toArray('abc');\\n * // => ['a', 'b', 'c']\\n *\\n * _.toArray(1);\\n * // => []\\n *\\n * _.toArray(null);\\n * // => []\\n */\\n function toArray(value) {\\n if (!value) {\\n return [];\\n }\\n if (isArrayLike(value)) {\\n return isString(value) ? stringToArray(value) : copyArray(value);\\n }\\n if (symIterator && value[symIterator]) {\\n return iteratorToArray(value[symIterator]());\\n }\\n var tag = getTag(value),\\n func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values);\\n\\n return func(value);\\n }\\n\\n /**\\n * Converts `value` to a finite number.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.12.0\\n * @category Lang\\n * @param {*} value The value to convert.\\n * @returns {number} Returns the converted number.\\n * @example\\n *\\n * _.toFinite(3.2);\\n * // => 3.2\\n *\\n * _.toFinite(Number.MIN_VALUE);\\n * // => 5e-324\\n *\\n * _.toFinite(Infinity);\\n * // => 1.7976931348623157e+308\\n *\\n * _.toFinite('3.2');\\n * // => 3.2\\n */\\n function toFinite(value) {\\n if (!value) {\\n return value === 0 ? value : 0;\\n }\\n value = toNumber(value);\\n if (value === INFINITY || value === -INFINITY) {\\n var sign = (value < 0 ? -1 : 1);\\n return sign * MAX_INTEGER;\\n }\\n return value === value ? value : 0;\\n }\\n\\n /**\\n * Converts `value` to an integer.\\n *\\n * **Note:** This method is loosely based on\\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Lang\\n * @param {*} value The value to convert.\\n * @returns {number} Returns the converted integer.\\n * @example\\n *\\n * _.toInteger(3.2);\\n * // => 3\\n *\\n * _.toInteger(Number.MIN_VALUE);\\n * // => 0\\n *\\n * _.toInteger(Infinity);\\n * // => 1.7976931348623157e+308\\n *\\n * _.toInteger('3.2');\\n * // => 3\\n */\\n function toInteger(value) {\\n var result = toFinite(value),\\n remainder = result % 1;\\n\\n return result === result ? (remainder ? result - remainder : result) : 0;\\n }\\n\\n /**\\n * Converts `value` to an integer suitable for use as the length of an\\n * array-like object.\\n *\\n * **Note:** This method is based on\\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Lang\\n * @param {*} value The value to convert.\\n * @returns {number} Returns the converted integer.\\n * @example\\n *\\n * _.toLength(3.2);\\n * // => 3\\n *\\n * _.toLength(Number.MIN_VALUE);\\n * // => 0\\n *\\n * _.toLength(Infinity);\\n * // => 4294967295\\n *\\n * _.toLength('3.2');\\n * // => 3\\n */\\n function toLength(value) {\\n return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;\\n }\\n\\n /**\\n * Converts `value` to a number.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Lang\\n * @param {*} value The value to process.\\n * @returns {number} Returns the number.\\n * @example\\n *\\n * _.toNumber(3.2);\\n * // => 3.2\\n *\\n * _.toNumber(Number.MIN_VALUE);\\n * // => 5e-324\\n *\\n * _.toNumber(Infinity);\\n * // => Infinity\\n *\\n * _.toNumber('3.2');\\n * // => 3.2\\n */\\n function toNumber(value) {\\n if (typeof value == 'number') {\\n return value;\\n }\\n if (isSymbol(value)) {\\n return NAN;\\n }\\n if (isObject(value)) {\\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\\n value = isObject(other) ? (other + '') : other;\\n }\\n if (typeof value != 'string') {\\n return value === 0 ? value : +value;\\n }\\n value = value.replace(reTrim, '');\\n var isBinary = reIsBinary.test(value);\\n return (isBinary || reIsOctal.test(value))\\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\\n : (reIsBadHex.test(value) ? NAN : +value);\\n }\\n\\n /**\\n * Converts `value` to a plain object flattening inherited enumerable string\\n * keyed properties of `value` to own properties of the plain object.\\n *\\n * @static\\n * @memberOf _\\n * @since 3.0.0\\n * @category Lang\\n * @param {*} value The value to convert.\\n * @returns {Object} Returns the converted plain object.\\n * @example\\n *\\n * function Foo() {\\n * this.b = 2;\\n * }\\n *\\n * Foo.prototype.c = 3;\\n *\\n * _.assign({ 'a': 1 }, new Foo);\\n * // => { 'a': 1, 'b': 2 }\\n *\\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\\n * // => { 'a': 1, 'b': 2, 'c': 3 }\\n */\\n function toPlainObject(value) {\\n return copyObject(value, keysIn(value));\\n }\\n\\n /**\\n * Converts `value` to a safe integer. A safe integer can be compared and\\n * represented correctly.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Lang\\n * @param {*} value The value to convert.\\n * @returns {number} Returns the converted integer.\\n * @example\\n *\\n * _.toSafeInteger(3.2);\\n * // => 3\\n *\\n * _.toSafeInteger(Number.MIN_VALUE);\\n * // => 0\\n *\\n * _.toSafeInteger(Infinity);\\n * // => 9007199254740991\\n *\\n * _.toSafeInteger('3.2');\\n * // => 3\\n */\\n function toSafeInteger(value) {\\n return value\\n ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER)\\n : (value === 0 ? value : 0);\\n }\\n\\n /**\\n * Converts `value` to a string. An empty string is returned for `null`\\n * and `undefined` values. The sign of `-0` is preserved.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Lang\\n * @param {*} value The value to convert.\\n * @returns {string} Returns the converted string.\\n * @example\\n *\\n * _.toString(null);\\n * // => ''\\n *\\n * _.toString(-0);\\n * // => '-0'\\n *\\n * _.toString([1, 2, 3]);\\n * // => '1,2,3'\\n */\\n function toString(value) {\\n return value == null ? '' : baseToString(value);\\n }\\n\\n /*------------------------------------------------------------------------*/\\n\\n /**\\n * Assigns own enumerable string keyed properties of source objects to the\\n * destination object. Source objects are applied from left to right.\\n * Subsequent sources overwrite property assignments of previous sources.\\n *\\n * **Note:** This method mutates `object` and is loosely based on\\n * [`Object.assign`](https://mdn.io/Object/assign).\\n *\\n * @static\\n * @memberOf _\\n * @since 0.10.0\\n * @category Object\\n * @param {Object} object The destination object.\\n * @param {...Object} [sources] The source objects.\\n * @returns {Object} Returns `object`.\\n * @see _.assignIn\\n * @example\\n *\\n * function Foo() {\\n * this.a = 1;\\n * }\\n *\\n * function Bar() {\\n * this.c = 3;\\n * }\\n *\\n * Foo.prototype.b = 2;\\n * Bar.prototype.d = 4;\\n *\\n * _.assign({ 'a': 0 }, new Foo, new Bar);\\n * // => { 'a': 1, 'c': 3 }\\n */\\n var assign = createAssigner(function(object, source) {\\n if (isPrototype(source) || isArrayLike(source)) {\\n copyObject(source, keys(source), object);\\n return;\\n }\\n for (var key in source) {\\n if (hasOwnProperty.call(source, key)) {\\n assignValue(object, key, source[key]);\\n }\\n }\\n });\\n\\n /**\\n * This method is like `_.assign` except that it iterates over own and\\n * inherited source properties.\\n *\\n * **Note:** This method mutates `object`.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @alias extend\\n * @category Object\\n * @param {Object} object The destination object.\\n * @param {...Object} [sources] The source objects.\\n * @returns {Object} Returns `object`.\\n * @see _.assign\\n * @example\\n *\\n * function Foo() {\\n * this.a = 1;\\n * }\\n *\\n * function Bar() {\\n * this.c = 3;\\n * }\\n *\\n * Foo.prototype.b = 2;\\n * Bar.prototype.d = 4;\\n *\\n * _.assignIn({ 'a': 0 }, new Foo, new Bar);\\n * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }\\n */\\n var assignIn = createAssigner(function(object, source) {\\n copyObject(source, keysIn(source), object);\\n });\\n\\n /**\\n * This method is like `_.assignIn` except that it accepts `customizer`\\n * which is invoked to produce the assigned values. If `customizer` returns\\n * `undefined`, assignment is handled by the method instead. The `customizer`\\n * is invoked with five arguments: (objValue, srcValue, key, object, source).\\n *\\n * **Note:** This method mutates `object`.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @alias extendWith\\n * @category Object\\n * @param {Object} object The destination object.\\n * @param {...Object} sources The source objects.\\n * @param {Function} [customizer] The function to customize assigned values.\\n * @returns {Object} Returns `object`.\\n * @see _.assignWith\\n * @example\\n *\\n * function customizer(objValue, srcValue) {\\n * return _.isUndefined(objValue) ? srcValue : objValue;\\n * }\\n *\\n * var defaults = _.partialRight(_.assignInWith, customizer);\\n *\\n * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\\n * // => { 'a': 1, 'b': 2 }\\n */\\n var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {\\n copyObject(source, keysIn(source), object, customizer);\\n });\\n\\n /**\\n * This method is like `_.assign` except that it accepts `customizer`\\n * which is invoked to produce the assigned values. If `customizer` returns\\n * `undefined`, assignment is handled by the method instead. The `customizer`\\n * is invoked with five arguments: (objValue, srcValue, key, object, source).\\n *\\n * **Note:** This method mutates `object`.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Object\\n * @param {Object} object The destination object.\\n * @param {...Object} sources The source objects.\\n * @param {Function} [customizer] The function to customize assigned values.\\n * @returns {Object} Returns `object`.\\n * @see _.assignInWith\\n * @example\\n *\\n * function customizer(objValue, srcValue) {\\n * return _.isUndefined(objValue) ? srcValue : objValue;\\n * }\\n *\\n * var defaults = _.partialRight(_.assignWith, customizer);\\n *\\n * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\\n * // => { 'a': 1, 'b': 2 }\\n */\\n var assignWith = createAssigner(function(object, source, srcIndex, customizer) {\\n copyObject(source, keys(source), object, customizer);\\n });\\n\\n /**\\n * Creates an array of values corresponding to `paths` of `object`.\\n *\\n * @static\\n * @memberOf _\\n * @since 1.0.0\\n * @category Object\\n * @param {Object} object The object to iterate over.\\n * @param {...(string|string[])} [paths] The property paths to pick.\\n * @returns {Array} Returns the picked values.\\n * @example\\n *\\n * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };\\n *\\n * _.at(object, ['a[0].b.c', 'a[1]']);\\n * // => [3, 4]\\n */\\n var at = flatRest(baseAt);\\n\\n /**\\n * Creates an object that inherits from the `prototype` object. If a\\n * `properties` object is given, its own enumerable string keyed properties\\n * are assigned to the created object.\\n *\\n * @static\\n * @memberOf _\\n * @since 2.3.0\\n * @category Object\\n * @param {Object} prototype The object to inherit from.\\n * @param {Object} [properties] The properties to assign to the object.\\n * @returns {Object} Returns the new object.\\n * @example\\n *\\n * function Shape() {\\n * this.x = 0;\\n * this.y = 0;\\n * }\\n *\\n * function Circle() {\\n * Shape.call(this);\\n * }\\n *\\n * Circle.prototype = _.create(Shape.prototype, {\\n * 'constructor': Circle\\n * });\\n *\\n * var circle = new Circle;\\n * circle instanceof Circle;\\n * // => true\\n *\\n * circle instanceof Shape;\\n * // => true\\n */\\n function create(prototype, properties) {\\n var result = baseCreate(prototype);\\n return properties == null ? result : baseAssign(result, properties);\\n }\\n\\n /**\\n * Assigns own and inherited enumerable string keyed properties of source\\n * objects to the destination object for all destination properties that\\n * resolve to `undefined`. Source objects are applied from left to right.\\n * Once a property is set, additional values of the same property are ignored.\\n *\\n * **Note:** This method mutates `object`.\\n *\\n * @static\\n * @since 0.1.0\\n * @memberOf _\\n * @category Object\\n * @param {Object} object The destination object.\\n * @param {...Object} [sources] The source objects.\\n * @returns {Object} Returns `object`.\\n * @see _.defaultsDeep\\n * @example\\n *\\n * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\\n * // => { 'a': 1, 'b': 2 }\\n */\\n var defaults = baseRest(function(args) {\\n args.push(undefined, customDefaultsAssignIn);\\n return apply(assignInWith, undefined, args);\\n });\\n\\n /**\\n * This method is like `_.defaults` except that it recursively assigns\\n * default properties.\\n *\\n * **Note:** This method mutates `object`.\\n *\\n * @static\\n * @memberOf _\\n * @since 3.10.0\\n * @category Object\\n * @param {Object} object The destination object.\\n * @param {...Object} [sources] The source objects.\\n * @returns {Object} Returns `object`.\\n * @see _.defaults\\n * @example\\n *\\n * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });\\n * // => { 'a': { 'b': 2, 'c': 3 } }\\n */\\n var defaultsDeep = baseRest(function(args) {\\n args.push(undefined, customDefaultsMerge);\\n return apply(mergeWith, undefined, args);\\n });\\n\\n /**\\n * This method is like `_.find` except that it returns the key of the first\\n * element `predicate` returns truthy for instead of the element itself.\\n *\\n * @static\\n * @memberOf _\\n * @since 1.1.0\\n * @category Object\\n * @param {Object} object The object to inspect.\\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\\n * @returns {string|undefined} Returns the key of the matched element,\\n * else `undefined`.\\n * @example\\n *\\n * var users = {\\n * 'barney': { 'age': 36, 'active': true },\\n * 'fred': { 'age': 40, 'active': false },\\n * 'pebbles': { 'age': 1, 'active': true }\\n * };\\n *\\n * _.findKey(users, function(o) { return o.age < 40; });\\n * // => 'barney' (iteration order is not guaranteed)\\n *\\n * // The `_.matches` iteratee shorthand.\\n * _.findKey(users, { 'age': 1, 'active': true });\\n * // => 'pebbles'\\n *\\n * // The `_.matchesProperty` iteratee shorthand.\\n * _.findKey(users, ['active', false]);\\n * // => 'fred'\\n *\\n * // The `_.property` iteratee shorthand.\\n * _.findKey(users, 'active');\\n * // => 'barney'\\n */\\n function findKey(object, predicate) {\\n return baseFindKey(object, getIteratee(predicate, 3), baseForOwn);\\n }\\n\\n /**\\n * This method is like `_.findKey` except that it iterates over elements of\\n * a collection in the opposite order.\\n *\\n * @static\\n * @memberOf _\\n * @since 2.0.0\\n * @category Object\\n * @param {Object} object The object to inspect.\\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\\n * @returns {string|undefined} Returns the key of the matched element,\\n * else `undefined`.\\n * @example\\n *\\n * var users = {\\n * 'barney': { 'age': 36, 'active': true },\\n * 'fred': { 'age': 40, 'active': false },\\n * 'pebbles': { 'age': 1, 'active': true }\\n * };\\n *\\n * _.findLastKey(users, function(o) { return o.age < 40; });\\n * // => returns 'pebbles' assuming `_.findKey` returns 'barney'\\n *\\n * // The `_.matches` iteratee shorthand.\\n * _.findLastKey(users, { 'age': 36, 'active': true });\\n * // => 'barney'\\n *\\n * // The `_.matchesProperty` iteratee shorthand.\\n * _.findLastKey(users, ['active', false]);\\n * // => 'fred'\\n *\\n * // The `_.property` iteratee shorthand.\\n * _.findLastKey(users, 'active');\\n * // => 'pebbles'\\n */\\n function findLastKey(object, predicate) {\\n return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight);\\n }\\n\\n /**\\n * Iterates over own and inherited enumerable string keyed properties of an\\n * object and invokes `iteratee` for each property. The iteratee is invoked\\n * with three arguments: (value, key, object). Iteratee functions may exit\\n * iteration early by explicitly returning `false`.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.3.0\\n * @category Object\\n * @param {Object} object The object to iterate over.\\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\\n * @returns {Object} Returns `object`.\\n * @see _.forInRight\\n * @example\\n *\\n * function Foo() {\\n * this.a = 1;\\n * this.b = 2;\\n * }\\n *\\n * Foo.prototype.c = 3;\\n *\\n * _.forIn(new Foo, function(value, key) {\\n * console.log(key);\\n * });\\n * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).\\n */\\n function forIn(object, iteratee) {\\n return object == null\\n ? object\\n : baseFor(object, getIteratee(iteratee, 3), keysIn);\\n }\\n\\n /**\\n * This method is like `_.forIn` except that it iterates over properties of\\n * `object` in the opposite order.\\n *\\n * @static\\n * @memberOf _\\n * @since 2.0.0\\n * @category Object\\n * @param {Object} object The object to iterate over.\\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\\n * @returns {Object} Returns `object`.\\n * @see _.forIn\\n * @example\\n *\\n * function Foo() {\\n * this.a = 1;\\n * this.b = 2;\\n * }\\n *\\n * Foo.prototype.c = 3;\\n *\\n * _.forInRight(new Foo, function(value, key) {\\n * console.log(key);\\n * });\\n * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.\\n */\\n function forInRight(object, iteratee) {\\n return object == null\\n ? object\\n : baseForRight(object, getIteratee(iteratee, 3), keysIn);\\n }\\n\\n /**\\n * Iterates over own enumerable string keyed properties of an object and\\n * invokes `iteratee` for each property. The iteratee is invoked with three\\n * arguments: (value, key, object). Iteratee functions may exit iteration\\n * early by explicitly returning `false`.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.3.0\\n * @category Object\\n * @param {Object} object The object to iterate over.\\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\\n * @returns {Object} Returns `object`.\\n * @see _.forOwnRight\\n * @example\\n *\\n * function Foo() {\\n * this.a = 1;\\n * this.b = 2;\\n * }\\n *\\n * Foo.prototype.c = 3;\\n *\\n * _.forOwn(new Foo, function(value, key) {\\n * console.log(key);\\n * });\\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\\n */\\n function forOwn(object, iteratee) {\\n return object && baseForOwn(object, getIteratee(iteratee, 3));\\n }\\n\\n /**\\n * This method is like `_.forOwn` except that it iterates over properties of\\n * `object` in the opposite order.\\n *\\n * @static\\n * @memberOf _\\n * @since 2.0.0\\n * @category Object\\n * @param {Object} object The object to iterate over.\\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\\n * @returns {Object} Returns `object`.\\n * @see _.forOwn\\n * @example\\n *\\n * function Foo() {\\n * this.a = 1;\\n * this.b = 2;\\n * }\\n *\\n * Foo.prototype.c = 3;\\n *\\n * _.forOwnRight(new Foo, function(value, key) {\\n * console.log(key);\\n * });\\n * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.\\n */\\n function forOwnRight(object, iteratee) {\\n return object && baseForOwnRight(object, getIteratee(iteratee, 3));\\n }\\n\\n /**\\n * Creates an array of function property names from own enumerable properties\\n * of `object`.\\n *\\n * @static\\n * @since 0.1.0\\n * @memberOf _\\n * @category Object\\n * @param {Object} object The object to inspect.\\n * @returns {Array} Returns the function names.\\n * @see _.functionsIn\\n * @example\\n *\\n * function Foo() {\\n * this.a = _.constant('a');\\n * this.b = _.constant('b');\\n * }\\n *\\n * Foo.prototype.c = _.constant('c');\\n *\\n * _.functions(new Foo);\\n * // => ['a', 'b']\\n */\\n function functions(object) {\\n return object == null ? [] : baseFunctions(object, keys(object));\\n }\\n\\n /**\\n * Creates an array of function property names from own and inherited\\n * enumerable properties of `object`.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Object\\n * @param {Object} object The object to inspect.\\n * @returns {Array} Returns the function names.\\n * @see _.functions\\n * @example\\n *\\n * function Foo() {\\n * this.a = _.constant('a');\\n * this.b = _.constant('b');\\n * }\\n *\\n * Foo.prototype.c = _.constant('c');\\n *\\n * _.functionsIn(new Foo);\\n * // => ['a', 'b', 'c']\\n */\\n function functionsIn(object) {\\n return object == null ? [] : baseFunctions(object, keysIn(object));\\n }\\n\\n /**\\n * Gets the value at `path` of `object`. If the resolved value is\\n * `undefined`, the `defaultValue` is returned in its place.\\n *\\n * @static\\n * @memberOf _\\n * @since 3.7.0\\n * @category Object\\n * @param {Object} object The object to query.\\n * @param {Array|string} path The path of the property to get.\\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\\n * @returns {*} Returns the resolved value.\\n * @example\\n *\\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\\n *\\n * _.get(object, 'a[0].b.c');\\n * // => 3\\n *\\n * _.get(object, ['a', '0', 'b', 'c']);\\n * // => 3\\n *\\n * _.get(object, 'a.b.c', 'default');\\n * // => 'default'\\n */\\n function get(object, path, defaultValue) {\\n var result = object == null ? undefined : baseGet(object, path);\\n return result === undefined ? defaultValue : result;\\n }\\n\\n /**\\n * Checks if `path` is a direct property of `object`.\\n *\\n * @static\\n * @since 0.1.0\\n * @memberOf _\\n * @category Object\\n * @param {Object} object The object to query.\\n * @param {Array|string} path The path to check.\\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\\n * @example\\n *\\n * var object = { 'a': { 'b': 2 } };\\n * var other = _.create({ 'a': _.create({ 'b': 2 }) });\\n *\\n * _.has(object, 'a');\\n * // => true\\n *\\n * _.has(object, 'a.b');\\n * // => true\\n *\\n * _.has(object, ['a', 'b']);\\n * // => true\\n *\\n * _.has(other, 'a');\\n * // => false\\n */\\n function has(object, path) {\\n return object != null && hasPath(object, path, baseHas);\\n }\\n\\n /**\\n * Checks if `path` is a direct or inherited property of `object`.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Object\\n * @param {Object} object The object to query.\\n * @param {Array|string} path The path to check.\\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\\n * @example\\n *\\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\\n *\\n * _.hasIn(object, 'a');\\n * // => true\\n *\\n * _.hasIn(object, 'a.b');\\n * // => true\\n *\\n * _.hasIn(object, ['a', 'b']);\\n * // => true\\n *\\n * _.hasIn(object, 'b');\\n * // => false\\n */\\n function hasIn(object, path) {\\n return object != null && hasPath(object, path, baseHasIn);\\n }\\n\\n /**\\n * Creates an object composed of the inverted keys and values of `object`.\\n * If `object` contains duplicate values, subsequent values overwrite\\n * property assignments of previous values.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.7.0\\n * @category Object\\n * @param {Object} object The object to invert.\\n * @returns {Object} Returns the new inverted object.\\n * @example\\n *\\n * var object = { 'a': 1, 'b': 2, 'c': 1 };\\n *\\n * _.invert(object);\\n * // => { '1': 'c', '2': 'b' }\\n */\\n var invert = createInverter(function(result, value, key) {\\n result[value] = key;\\n }, constant(identity));\\n\\n /**\\n * This method is like `_.invert` except that the inverted object is generated\\n * from the results of running each element of `object` thru `iteratee`. The\\n * corresponding inverted value of each inverted key is an array of keys\\n * responsible for generating the inverted value. The iteratee is invoked\\n * with one argument: (value).\\n *\\n * @static\\n * @memberOf _\\n * @since 4.1.0\\n * @category Object\\n * @param {Object} object The object to invert.\\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\\n * @returns {Object} Returns the new inverted object.\\n * @example\\n *\\n * var object = { 'a': 1, 'b': 2, 'c': 1 };\\n *\\n * _.invertBy(object);\\n * // => { '1': ['a', 'c'], '2': ['b'] }\\n *\\n * _.invertBy(object, function(value) {\\n * return 'group' + value;\\n * });\\n * // => { 'group1': ['a', 'c'], 'group2': ['b'] }\\n */\\n var invertBy = createInverter(function(result, value, key) {\\n if (hasOwnProperty.call(result, value)) {\\n result[value].push(key);\\n } else {\\n result[value] = [key];\\n }\\n }, getIteratee);\\n\\n /**\\n * Invokes the method at `path` of `object`.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Object\\n * @param {Object} object The object to query.\\n * @param {Array|string} path The path of the method to invoke.\\n * @param {...*} [args] The arguments to invoke the method with.\\n * @returns {*} Returns the result of the invoked method.\\n * @example\\n *\\n * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };\\n *\\n * _.invoke(object, 'a[0].b.c.slice', 1, 3);\\n * // => [2, 3]\\n */\\n var invoke = baseRest(baseInvoke);\\n\\n /**\\n * Creates an array of the own enumerable property names of `object`.\\n *\\n * **Note:** Non-object values are coerced to objects. See the\\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\\n * for more details.\\n *\\n * @static\\n * @since 0.1.0\\n * @memberOf _\\n * @category Object\\n * @param {Object} object The object to query.\\n * @returns {Array} Returns the array of property names.\\n * @example\\n *\\n * function Foo() {\\n * this.a = 1;\\n * this.b = 2;\\n * }\\n *\\n * Foo.prototype.c = 3;\\n *\\n * _.keys(new Foo);\\n * // => ['a', 'b'] (iteration order is not guaranteed)\\n *\\n * _.keys('hi');\\n * // => ['0', '1']\\n */\\n function keys(object) {\\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\\n }\\n\\n /**\\n * Creates an array of the own and inherited enumerable property names of `object`.\\n *\\n * **Note:** Non-object values are coerced to objects.\\n *\\n * @static\\n * @memberOf _\\n * @since 3.0.0\\n * @category Object\\n * @param {Object} object The object to query.\\n * @returns {Array} Returns the array of property names.\\n * @example\\n *\\n * function Foo() {\\n * this.a = 1;\\n * this.b = 2;\\n * }\\n *\\n * Foo.prototype.c = 3;\\n *\\n * _.keysIn(new Foo);\\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\\n */\\n function keysIn(object) {\\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\\n }\\n\\n /**\\n * The opposite of `_.mapValues`; this method creates an object with the\\n * same values as `object` and keys generated by running each own enumerable\\n * string keyed property of `object` thru `iteratee`. The iteratee is invoked\\n * with three arguments: (value, key, object).\\n *\\n * @static\\n * @memberOf _\\n * @since 3.8.0\\n * @category Object\\n * @param {Object} object The object to iterate over.\\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\\n * @returns {Object} Returns the new mapped object.\\n * @see _.mapValues\\n * @example\\n *\\n * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {\\n * return key + value;\\n * });\\n * // => { 'a1': 1, 'b2': 2 }\\n */\\n function mapKeys(object, iteratee) {\\n var result = {};\\n iteratee = getIteratee(iteratee, 3);\\n\\n baseForOwn(object, function(value, key, object) {\\n baseAssignValue(result, iteratee(value, key, object), value);\\n });\\n return result;\\n }\\n\\n /**\\n * Creates an object with the same keys as `object` and values generated\\n * by running each own enumerable string keyed property of `object` thru\\n * `iteratee`. The iteratee is invoked with three arguments:\\n * (value, key, object).\\n *\\n * @static\\n * @memberOf _\\n * @since 2.4.0\\n * @category Object\\n * @param {Object} object The object to iterate over.\\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\\n * @returns {Object} Returns the new mapped object.\\n * @see _.mapKeys\\n * @example\\n *\\n * var users = {\\n * 'fred': { 'user': 'fred', 'age': 40 },\\n * 'pebbles': { 'user': 'pebbles', 'age': 1 }\\n * };\\n *\\n * _.mapValues(users, function(o) { return o.age; });\\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\\n *\\n * // The `_.property` iteratee shorthand.\\n * _.mapValues(users, 'age');\\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\\n */\\n function mapValues(object, iteratee) {\\n var result = {};\\n iteratee = getIteratee(iteratee, 3);\\n\\n baseForOwn(object, function(value, key, object) {\\n baseAssignValue(result, key, iteratee(value, key, object));\\n });\\n return result;\\n }\\n\\n /**\\n * This method is like `_.assign` except that it recursively merges own and\\n * inherited enumerable string keyed properties of source objects into the\\n * destination object. Source properties that resolve to `undefined` are\\n * skipped if a destination value exists. Array and plain object properties\\n * are merged recursively. Other objects and value types are overridden by\\n * assignment. Source objects are applied from left to right. Subsequent\\n * sources overwrite property assignments of previous sources.\\n *\\n * **Note:** This method mutates `object`.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.5.0\\n * @category Object\\n * @param {Object} object The destination object.\\n * @param {...Object} [sources] The source objects.\\n * @returns {Object} Returns `object`.\\n * @example\\n *\\n * var object = {\\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\\n * };\\n *\\n * var other = {\\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\\n * };\\n *\\n * _.merge(object, other);\\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\\n */\\n var merge = createAssigner(function(object, source, srcIndex) {\\n baseMerge(object, source, srcIndex);\\n });\\n\\n /**\\n * This method is like `_.merge` except that it accepts `customizer` which\\n * is invoked to produce the merged values of the destination and source\\n * properties. If `customizer` returns `undefined`, merging is handled by the\\n * method instead. The `customizer` is invoked with six arguments:\\n * (objValue, srcValue, key, object, source, stack).\\n *\\n * **Note:** This method mutates `object`.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Object\\n * @param {Object} object The destination object.\\n * @param {...Object} sources The source objects.\\n * @param {Function} customizer The function to customize assigned values.\\n * @returns {Object} Returns `object`.\\n * @example\\n *\\n * function customizer(objValue, srcValue) {\\n * if (_.isArray(objValue)) {\\n * return objValue.concat(srcValue);\\n * }\\n * }\\n *\\n * var object = { 'a': [1], 'b': [2] };\\n * var other = { 'a': [3], 'b': [4] };\\n *\\n * _.mergeWith(object, other, customizer);\\n * // => { 'a': [1, 3], 'b': [2, 4] }\\n */\\n var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {\\n baseMerge(object, source, srcIndex, customizer);\\n });\\n\\n /**\\n * The opposite of `_.pick`; this method creates an object composed of the\\n * own and inherited enumerable property paths of `object` that are not omitted.\\n *\\n * **Note:** This method is considerably slower than `_.pick`.\\n *\\n * @static\\n * @since 0.1.0\\n * @memberOf _\\n * @category Object\\n * @param {Object} object The source object.\\n * @param {...(string|string[])} [paths] The property paths to omit.\\n * @returns {Object} Returns the new object.\\n * @example\\n *\\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\\n *\\n * _.omit(object, ['a', 'c']);\\n * // => { 'b': '2' }\\n */\\n var omit = flatRest(function(object, paths) {\\n var result = {};\\n if (object == null) {\\n return result;\\n }\\n var isDeep = false;\\n paths = arrayMap(paths, function(path) {\\n path = castPath(path, object);\\n isDeep || (isDeep = path.length > 1);\\n return path;\\n });\\n copyObject(object, getAllKeysIn(object), result);\\n if (isDeep) {\\n result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);\\n }\\n var length = paths.length;\\n while (length--) {\\n baseUnset(result, paths[length]);\\n }\\n return result;\\n });\\n\\n /**\\n * The opposite of `_.pickBy`; this method creates an object composed of\\n * the own and inherited enumerable string keyed properties of `object` that\\n * `predicate` doesn't return truthy for. The predicate is invoked with two\\n * arguments: (value, key).\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Object\\n * @param {Object} object The source object.\\n * @param {Function} [predicate=_.identity] The function invoked per property.\\n * @returns {Object} Returns the new object.\\n * @example\\n *\\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\\n *\\n * _.omitBy(object, _.isNumber);\\n * // => { 'b': '2' }\\n */\\n function omitBy(object, predicate) {\\n return pickBy(object, negate(getIteratee(predicate)));\\n }\\n\\n /**\\n * Creates an object composed of the picked `object` properties.\\n *\\n * @static\\n * @since 0.1.0\\n * @memberOf _\\n * @category Object\\n * @param {Object} object The source object.\\n * @param {...(string|string[])} [paths] The property paths to pick.\\n * @returns {Object} Returns the new object.\\n * @example\\n *\\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\\n *\\n * _.pick(object, ['a', 'c']);\\n * // => { 'a': 1, 'c': 3 }\\n */\\n var pick = flatRest(function(object, paths) {\\n return object == null ? {} : basePick(object, paths);\\n });\\n\\n /**\\n * Creates an object composed of the `object` properties `predicate` returns\\n * truthy for. The predicate is invoked with two arguments: (value, key).\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Object\\n * @param {Object} object The source object.\\n * @param {Function} [predicate=_.identity] The function invoked per property.\\n * @returns {Object} Returns the new object.\\n * @example\\n *\\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\\n *\\n * _.pickBy(object, _.isNumber);\\n * // => { 'a': 1, 'c': 3 }\\n */\\n function pickBy(object, predicate) {\\n if (object == null) {\\n return {};\\n }\\n var props = arrayMap(getAllKeysIn(object), function(prop) {\\n return [prop];\\n });\\n predicate = getIteratee(predicate);\\n return basePickBy(object, props, function(value, path) {\\n return predicate(value, path[0]);\\n });\\n }\\n\\n /**\\n * This method is like `_.get` except that if the resolved value is a\\n * function it's invoked with the `this` binding of its parent object and\\n * its result is returned.\\n *\\n * @static\\n * @since 0.1.0\\n * @memberOf _\\n * @category Object\\n * @param {Object} object The object to query.\\n * @param {Array|string} path The path of the property to resolve.\\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\\n * @returns {*} Returns the resolved value.\\n * @example\\n *\\n * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };\\n *\\n * _.result(object, 'a[0].b.c1');\\n * // => 3\\n *\\n * _.result(object, 'a[0].b.c2');\\n * // => 4\\n *\\n * _.result(object, 'a[0].b.c3', 'default');\\n * // => 'default'\\n *\\n * _.result(object, 'a[0].b.c3', _.constant('default'));\\n * // => 'default'\\n */\\n function result(object, path, defaultValue) {\\n path = castPath(path, object);\\n\\n var index = -1,\\n length = path.length;\\n\\n // Ensure the loop is entered when path is empty.\\n if (!length) {\\n length = 1;\\n object = undefined;\\n }\\n while (++index < length) {\\n var value = object == null ? undefined : object[toKey(path[index])];\\n if (value === undefined) {\\n index = length;\\n value = defaultValue;\\n }\\n object = isFunction(value) ? value.call(object) : value;\\n }\\n return object;\\n }\\n\\n /**\\n * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,\\n * it's created. Arrays are created for missing index properties while objects\\n * are created for all other missing properties. Use `_.setWith` to customize\\n * `path` creation.\\n *\\n * **Note:** This method mutates `object`.\\n *\\n * @static\\n * @memberOf _\\n * @since 3.7.0\\n * @category Object\\n * @param {Object} object The object to modify.\\n * @param {Array|string} path The path of the property to set.\\n * @param {*} value The value to set.\\n * @returns {Object} Returns `object`.\\n * @example\\n *\\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\\n *\\n * _.set(object, 'a[0].b.c', 4);\\n * console.log(object.a[0].b.c);\\n * // => 4\\n *\\n * _.set(object, ['x', '0', 'y', 'z'], 5);\\n * console.log(object.x[0].y.z);\\n * // => 5\\n */\\n function set(object, path, value) {\\n return object == null ? object : baseSet(object, path, value);\\n }\\n\\n /**\\n * This method is like `_.set` except that it accepts `customizer` which is\\n * invoked to produce the objects of `path`. If `customizer` returns `undefined`\\n * path creation is handled by the method instead. The `customizer` is invoked\\n * with three arguments: (nsValue, key, nsObject).\\n *\\n * **Note:** This method mutates `object`.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Object\\n * @param {Object} object The object to modify.\\n * @param {Array|string} path The path of the property to set.\\n * @param {*} value The value to set.\\n * @param {Function} [customizer] The function to customize assigned values.\\n * @returns {Object} Returns `object`.\\n * @example\\n *\\n * var object = {};\\n *\\n * _.setWith(object, '[0][1]', 'a', Object);\\n * // => { '0': { '1': 'a' } }\\n */\\n function setWith(object, path, value, customizer) {\\n customizer = typeof customizer == 'function' ? customizer : undefined;\\n return object == null ? object : baseSet(object, path, value, customizer);\\n }\\n\\n /**\\n * Creates an array of own enumerable string keyed-value pairs for `object`\\n * which can be consumed by `_.fromPairs`. If `object` is a map or set, its\\n * entries are returned.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @alias entries\\n * @category Object\\n * @param {Object} object The object to query.\\n * @returns {Array} Returns the key-value pairs.\\n * @example\\n *\\n * function Foo() {\\n * this.a = 1;\\n * this.b = 2;\\n * }\\n *\\n * Foo.prototype.c = 3;\\n *\\n * _.toPairs(new Foo);\\n * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)\\n */\\n var toPairs = createToPairs(keys);\\n\\n /**\\n * Creates an array of own and inherited enumerable string keyed-value pairs\\n * for `object` which can be consumed by `_.fromPairs`. If `object` is a map\\n * or set, its entries are returned.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @alias entriesIn\\n * @category Object\\n * @param {Object} object The object to query.\\n * @returns {Array} Returns the key-value pairs.\\n * @example\\n *\\n * function Foo() {\\n * this.a = 1;\\n * this.b = 2;\\n * }\\n *\\n * Foo.prototype.c = 3;\\n *\\n * _.toPairsIn(new Foo);\\n * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)\\n */\\n var toPairsIn = createToPairs(keysIn);\\n\\n /**\\n * An alternative to `_.reduce`; this method transforms `object` to a new\\n * `accumulator` object which is the result of running each of its own\\n * enumerable string keyed properties thru `iteratee`, with each invocation\\n * potentially mutating the `accumulator` object. If `accumulator` is not\\n * provided, a new object with the same `[[Prototype]]` will be used. The\\n * iteratee is invoked with four arguments: (accumulator, value, key, object).\\n * Iteratee functions may exit iteration early by explicitly returning `false`.\\n *\\n * @static\\n * @memberOf _\\n * @since 1.3.0\\n * @category Object\\n * @param {Object} object The object to iterate over.\\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\\n * @param {*} [accumulator] The custom accumulator value.\\n * @returns {*} Returns the accumulated value.\\n * @example\\n *\\n * _.transform([2, 3, 4], function(result, n) {\\n * result.push(n *= n);\\n * return n % 2 == 0;\\n * }, []);\\n * // => [4, 9]\\n *\\n * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\\n * (result[value] || (result[value] = [])).push(key);\\n * }, {});\\n * // => { '1': ['a', 'c'], '2': ['b'] }\\n */\\n function transform(object, iteratee, accumulator) {\\n var isArr = isArray(object),\\n isArrLike = isArr || isBuffer(object) || isTypedArray(object);\\n\\n iteratee = getIteratee(iteratee, 4);\\n if (accumulator == null) {\\n var Ctor = object && object.constructor;\\n if (isArrLike) {\\n accumulator = isArr ? new Ctor : [];\\n }\\n else if (isObject(object)) {\\n accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};\\n }\\n else {\\n accumulator = {};\\n }\\n }\\n (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {\\n return iteratee(accumulator, value, index, object);\\n });\\n return accumulator;\\n }\\n\\n /**\\n * Removes the property at `path` of `object`.\\n *\\n * **Note:** This method mutates `object`.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Object\\n * @param {Object} object The object to modify.\\n * @param {Array|string} path The path of the property to unset.\\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\\n * @example\\n *\\n * var object = { 'a': [{ 'b': { 'c': 7 } }] };\\n * _.unset(object, 'a[0].b.c');\\n * // => true\\n *\\n * console.log(object);\\n * // => { 'a': [{ 'b': {} }] };\\n *\\n * _.unset(object, ['a', '0', 'b', 'c']);\\n * // => true\\n *\\n * console.log(object);\\n * // => { 'a': [{ 'b': {} }] };\\n */\\n function unset(object, path) {\\n return object == null ? true : baseUnset(object, path);\\n }\\n\\n /**\\n * This method is like `_.set` except that accepts `updater` to produce the\\n * value to set. Use `_.updateWith` to customize `path` creation. The `updater`\\n * is invoked with one argument: (value).\\n *\\n * **Note:** This method mutates `object`.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.6.0\\n * @category Object\\n * @param {Object} object The object to modify.\\n * @param {Array|string} path The path of the property to set.\\n * @param {Function} updater The function to produce the updated value.\\n * @returns {Object} Returns `object`.\\n * @example\\n *\\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\\n *\\n * _.update(object, 'a[0].b.c', function(n) { return n * n; });\\n * console.log(object.a[0].b.c);\\n * // => 9\\n *\\n * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });\\n * console.log(object.x[0].y.z);\\n * // => 0\\n */\\n function update(object, path, updater) {\\n return object == null ? object : baseUpdate(object, path, castFunction(updater));\\n }\\n\\n /**\\n * This method is like `_.update` except that it accepts `customizer` which is\\n * invoked to produce the objects of `path`. If `customizer` returns `undefined`\\n * path creation is handled by the method instead. The `customizer` is invoked\\n * with three arguments: (nsValue, key, nsObject).\\n *\\n * **Note:** This method mutates `object`.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.6.0\\n * @category Object\\n * @param {Object} object The object to modify.\\n * @param {Array|string} path The path of the property to set.\\n * @param {Function} updater The function to produce the updated value.\\n * @param {Function} [customizer] The function to customize assigned values.\\n * @returns {Object} Returns `object`.\\n * @example\\n *\\n * var object = {};\\n *\\n * _.updateWith(object, '[0][1]', _.constant('a'), Object);\\n * // => { '0': { '1': 'a' } }\\n */\\n function updateWith(object, path, updater, customizer) {\\n customizer = typeof customizer == 'function' ? customizer : undefined;\\n return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);\\n }\\n\\n /**\\n * Creates an array of the own enumerable string keyed property values of `object`.\\n *\\n * **Note:** Non-object values are coerced to objects.\\n *\\n * @static\\n * @since 0.1.0\\n * @memberOf _\\n * @category Object\\n * @param {Object} object The object to query.\\n * @returns {Array} Returns the array of property values.\\n * @example\\n *\\n * function Foo() {\\n * this.a = 1;\\n * this.b = 2;\\n * }\\n *\\n * Foo.prototype.c = 3;\\n *\\n * _.values(new Foo);\\n * // => [1, 2] (iteration order is not guaranteed)\\n *\\n * _.values('hi');\\n * // => ['h', 'i']\\n */\\n function values(object) {\\n return object == null ? [] : baseValues(object, keys(object));\\n }\\n\\n /**\\n * Creates an array of the own and inherited enumerable string keyed property\\n * values of `object`.\\n *\\n * **Note:** Non-object values are coerced to objects.\\n *\\n * @static\\n * @memberOf _\\n * @since 3.0.0\\n * @category Object\\n * @param {Object} object The object to query.\\n * @returns {Array} Returns the array of property values.\\n * @example\\n *\\n * function Foo() {\\n * this.a = 1;\\n * this.b = 2;\\n * }\\n *\\n * Foo.prototype.c = 3;\\n *\\n * _.valuesIn(new Foo);\\n * // => [1, 2, 3] (iteration order is not guaranteed)\\n */\\n function valuesIn(object) {\\n return object == null ? [] : baseValues(object, keysIn(object));\\n }\\n\\n /*------------------------------------------------------------------------*/\\n\\n /**\\n * Clamps `number` within the inclusive `lower` and `upper` bounds.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category Number\\n * @param {number} number The number to clamp.\\n * @param {number} [lower] The lower bound.\\n * @param {number} upper The upper bound.\\n * @returns {number} Returns the clamped number.\\n * @example\\n *\\n * _.clamp(-10, -5, 5);\\n * // => -5\\n *\\n * _.clamp(10, -5, 5);\\n * // => 5\\n */\\n function clamp(number, lower, upper) {\\n if (upper === undefined) {\\n upper = lower;\\n lower = undefined;\\n }\\n if (upper !== undefined) {\\n upper = toNumber(upper);\\n upper = upper === upper ? upper : 0;\\n }\\n if (lower !== undefined) {\\n lower = toNumber(lower);\\n lower = lower === lower ? lower : 0;\\n }\\n return baseClamp(toNumber(number), lower, upper);\\n }\\n\\n /**\\n * Checks if `n` is between `start` and up to, but not including, `end`. If\\n * `end` is not specified, it's set to `start` with `start` then set to `0`.\\n * If `start` is greater than `end` the params are swapped to support\\n * negative ranges.\\n *\\n * @static\\n * @memberOf _\\n * @since 3.3.0\\n * @category Number\\n * @param {number} number The number to check.\\n * @param {number} [start=0] The start of the range.\\n * @param {number} end The end of the range.\\n * @returns {boolean} Returns `true` if `number` is in the range, else `false`.\\n * @see _.range, _.rangeRight\\n * @example\\n *\\n * _.inRange(3, 2, 4);\\n * // => true\\n *\\n * _.inRange(4, 8);\\n * // => true\\n *\\n * _.inRange(4, 2);\\n * // => false\\n *\\n * _.inRange(2, 2);\\n * // => false\\n *\\n * _.inRange(1.2, 2);\\n * // => true\\n *\\n * _.inRange(5.2, 4);\\n * // => false\\n *\\n * _.inRange(-3, -2, -6);\\n * // => true\\n */\\n function inRange(number, start, end) {\\n start = toFinite(start);\\n if (end === undefined) {\\n end = start;\\n start = 0;\\n } else {\\n end = toFinite(end);\\n }\\n number = toNumber(number);\\n return baseInRange(number, start, end);\\n }\\n\\n /**\\n * Produces a random number between the inclusive `lower` and `upper` bounds.\\n * If only one argument is provided a number between `0` and the given number\\n * is returned. If `floating` is `true`, or either `lower` or `upper` are\\n * floats, a floating-point number is returned instead of an integer.\\n *\\n * **Note:** JavaScript follows the IEEE-754 standard for resolving\\n * floating-point values which can produce unexpected results.\\n *\\n * @static\\n * @memberOf _\\n * @since 0.7.0\\n * @category Number\\n * @param {number} [lower=0] The lower bound.\\n * @param {number} [upper=1] The upper bound.\\n * @param {boolean} [floating] Specify returning a floating-point number.\\n * @returns {number} Returns the random number.\\n * @example\\n *\\n * _.random(0, 5);\\n * // => an integer between 0 and 5\\n *\\n * _.random(5);\\n * // => also an integer between 0 and 5\\n *\\n * _.random(5, true);\\n * // => a floating-point number between 0 and 5\\n *\\n * _.random(1.2, 5.2);\\n * // => a floating-point number between 1.2 and 5.2\\n */\\n function random(lower, upper, floating) {\\n if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) {\\n upper = floating = undefined;\\n }\\n if (floating === undefined) {\\n if (typeof upper == 'boolean') {\\n floating = upper;\\n upper = undefined;\\n }\\n else if (typeof lower == 'boolean') {\\n floating = lower;\\n lower = undefined;\\n }\\n }\\n if (lower === undefined && upper === undefined) {\\n lower = 0;\\n upper = 1;\\n }\\n else {\\n lower = toFinite(lower);\\n if (upper === undefined) {\\n upper = lower;\\n lower = 0;\\n } else {\\n upper = toFinite(upper);\\n }\\n }\\n if (lower > upper) {\\n var temp = lower;\\n lower = upper;\\n upper = temp;\\n }\\n if (floating || lower % 1 || upper % 1) {\\n var rand = nativeRandom();\\n return nativeMin(lower + (rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1)))), upper);\\n }\\n return baseRandom(lower, upper);\\n }\\n\\n /*------------------------------------------------------------------------*/\\n\\n /**\\n * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).\\n *\\n * @static\\n * @memberOf _\\n * @since 3.0.0\\n * @category String\\n * @param {string} [string=''] The string to convert.\\n * @returns {string} Returns the camel cased string.\\n * @example\\n *\\n * _.camelCase('Foo Bar');\\n * // => 'fooBar'\\n *\\n * _.camelCase('--foo-bar--');\\n * // => 'fooBar'\\n *\\n * _.camelCase('__FOO_BAR__');\\n * // => 'fooBar'\\n */\\n var camelCase = createCompounder(function(result, word, index) {\\n word = word.toLowerCase();\\n return result + (index ? capitalize(word) : word);\\n });\\n\\n /**\\n * Converts the first character of `string` to upper case and the remaining\\n * to lower case.\\n *\\n * @static\\n * @memberOf _\\n * @since 3.0.0\\n * @category String\\n * @param {string} [string=''] The string to capitalize.\\n * @returns {string} Returns the capitalized string.\\n * @example\\n *\\n * _.capitalize('FRED');\\n * // => 'Fred'\\n */\\n function capitalize(string) {\\n return upperFirst(toString(string).toLowerCase());\\n }\\n\\n /**\\n * Deburrs `string` by converting\\n * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)\\n * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)\\n * letters to basic Latin letters and removing\\n * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).\\n *\\n * @static\\n * @memberOf _\\n * @since 3.0.0\\n * @category String\\n * @param {string} [string=''] The string to deburr.\\n * @returns {string} Returns the deburred string.\\n * @example\\n *\\n * _.deburr('déjà vu');\\n * // => 'deja vu'\\n */\\n function deburr(string) {\\n string = toString(string);\\n return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');\\n }\\n\\n /**\\n * Checks if `string` ends with the given target string.\\n *\\n * @static\\n * @memberOf _\\n * @since 3.0.0\\n * @category String\\n * @param {string} [string=''] The string to inspect.\\n * @param {string} [target] The string to search for.\\n * @param {number} [position=string.length] The position to search up to.\\n * @returns {boolean} Returns `true` if `string` ends with `target`,\\n * else `false`.\\n * @example\\n *\\n * _.endsWith('abc', 'c');\\n * // => true\\n *\\n * _.endsWith('abc', 'b');\\n * // => false\\n *\\n * _.endsWith('abc', 'b', 2);\\n * // => true\\n */\\n function endsWith(string, target, position) {\\n string = toString(string);\\n target = baseToString(target);\\n\\n var length = string.length;\\n position = position === undefined\\n ? length\\n : baseClamp(toInteger(position), 0, length);\\n\\n var end = position;\\n position -= target.length;\\n return position >= 0 && string.slice(position, end) == target;\\n }\\n\\n /**\\n * Converts the characters \\\"&\\\", \\\"<\\\", \\\">\\\", '\\\"', and \\\"'\\\" in `string` to their\\n * corresponding HTML entities.\\n *\\n * **Note:** No other characters are escaped. To escape additional\\n * characters use a third-party library like [_he_](https://mths.be/he).\\n *\\n * Though the \\\">\\\" character is escaped for symmetry, characters like\\n * \\\">\\\" and \\\"/\\\" don't need escaping in HTML and have no special meaning\\n * unless they're part of a tag or unquoted attribute value. See\\n * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)\\n * (under \\\"semi-related fun fact\\\") for more details.\\n *\\n * When working with HTML you should always\\n * [quote attribute values](http://wonko.com/post/html-escaping) to reduce\\n * XSS vectors.\\n *\\n * @static\\n * @since 0.1.0\\n * @memberOf _\\n * @category String\\n * @param {string} [string=''] The string to escape.\\n * @returns {string} Returns the escaped string.\\n * @example\\n *\\n * _.escape('fred, barney, & pebbles');\\n * // => 'fred, barney, & pebbles'\\n */\\n function escape(string) {\\n string = toString(string);\\n return (string && reHasUnescapedHtml.test(string))\\n ? string.replace(reUnescapedHtml, escapeHtmlChar)\\n : string;\\n }\\n\\n /**\\n * Escapes the `RegExp` special characters \\\"^\\\", \\\"$\\\", \\\"\\\\\\\", \\\".\\\", \\\"*\\\", \\\"+\\\",\\n * \\\"?\\\", \\\"(\\\", \\\")\\\", \\\"[\\\", \\\"]\\\", \\\"{\\\", \\\"}\\\", and \\\"|\\\" in `string`.\\n *\\n * @static\\n * @memberOf _\\n * @since 3.0.0\\n * @category String\\n * @param {string} [string=''] The string to escape.\\n * @returns {string} Returns the escaped string.\\n * @example\\n *\\n * _.escapeRegExp('[lodash](https://lodash.com/)');\\n * // => '\\\\[lodash\\\\]\\\\(https://lodash\\\\.com/\\\\)'\\n */\\n function escapeRegExp(string) {\\n string = toString(string);\\n return (string && reHasRegExpChar.test(string))\\n ? string.replace(reRegExpChar, '\\\\\\\\$&')\\n : string;\\n }\\n\\n /**\\n * Converts `string` to\\n * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).\\n *\\n * @static\\n * @memberOf _\\n * @since 3.0.0\\n * @category String\\n * @param {string} [string=''] The string to convert.\\n * @returns {string} Returns the kebab cased string.\\n * @example\\n *\\n * _.kebabCase('Foo Bar');\\n * // => 'foo-bar'\\n *\\n * _.kebabCase('fooBar');\\n * // => 'foo-bar'\\n *\\n * _.kebabCase('__FOO_BAR__');\\n * // => 'foo-bar'\\n */\\n var kebabCase = createCompounder(function(result, word, index) {\\n return result + (index ? '-' : '') + word.toLowerCase();\\n });\\n\\n /**\\n * Converts `string`, as space separated words, to lower case.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category String\\n * @param {string} [string=''] The string to convert.\\n * @returns {string} Returns the lower cased string.\\n * @example\\n *\\n * _.lowerCase('--Foo-Bar--');\\n * // => 'foo bar'\\n *\\n * _.lowerCase('fooBar');\\n * // => 'foo bar'\\n *\\n * _.lowerCase('__FOO_BAR__');\\n * // => 'foo bar'\\n */\\n var lowerCase = createCompounder(function(result, word, index) {\\n return result + (index ? ' ' : '') + word.toLowerCase();\\n });\\n\\n /**\\n * Converts the first character of `string` to lower case.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category String\\n * @param {string} [string=''] The string to convert.\\n * @returns {string} Returns the converted string.\\n * @example\\n *\\n * _.lowerFirst('Fred');\\n * // => 'fred'\\n *\\n * _.lowerFirst('FRED');\\n * // => 'fRED'\\n */\\n var lowerFirst = createCaseFirst('toLowerCase');\\n\\n /**\\n * Pads `string` on the left and right sides if it's shorter than `length`.\\n * Padding characters are truncated if they can't be evenly divided by `length`.\\n *\\n * @static\\n * @memberOf _\\n * @since 3.0.0\\n * @category String\\n * @param {string} [string=''] The string to pad.\\n * @param {number} [length=0] The padding length.\\n * @param {string} [chars=' '] The string used as padding.\\n * @returns {string} Returns the padded string.\\n * @example\\n *\\n * _.pad('abc', 8);\\n * // => ' abc '\\n *\\n * _.pad('abc', 8, '_-');\\n * // => '_-abc_-_'\\n *\\n * _.pad('abc', 3);\\n * // => 'abc'\\n */\\n function pad(string, length, chars) {\\n string = toString(string);\\n length = toInteger(length);\\n\\n var strLength = length ? stringSize(string) : 0;\\n if (!length || strLength >= length) {\\n return string;\\n }\\n var mid = (length - strLength) / 2;\\n return (\\n createPadding(nativeFloor(mid), chars) +\\n string +\\n createPadding(nativeCeil(mid), chars)\\n );\\n }\\n\\n /**\\n * Pads `string` on the right side if it's shorter than `length`. Padding\\n * characters are truncated if they exceed `length`.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category String\\n * @param {string} [string=''] The string to pad.\\n * @param {number} [length=0] The padding length.\\n * @param {string} [chars=' '] The string used as padding.\\n * @returns {string} Returns the padded string.\\n * @example\\n *\\n * _.padEnd('abc', 6);\\n * // => 'abc '\\n *\\n * _.padEnd('abc', 6, '_-');\\n * // => 'abc_-_'\\n *\\n * _.padEnd('abc', 3);\\n * // => 'abc'\\n */\\n function padEnd(string, length, chars) {\\n string = toString(string);\\n length = toInteger(length);\\n\\n var strLength = length ? stringSize(string) : 0;\\n return (length && strLength < length)\\n ? (string + createPadding(length - strLength, chars))\\n : string;\\n }\\n\\n /**\\n * Pads `string` on the left side if it's shorter than `length`. Padding\\n * characters are truncated if they exceed `length`.\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category String\\n * @param {string} [string=''] The string to pad.\\n * @param {number} [length=0] The padding length.\\n * @param {string} [chars=' '] The string used as padding.\\n * @returns {string} Returns the padded string.\\n * @example\\n *\\n * _.padStart('abc', 6);\\n * // => ' abc'\\n *\\n * _.padStart('abc', 6, '_-');\\n * // => '_-_abc'\\n *\\n * _.padStart('abc', 3);\\n * // => 'abc'\\n */\\n function padStart(string, length, chars) {\\n string = toString(string);\\n length = toInteger(length);\\n\\n var strLength = length ? stringSize(string) : 0;\\n return (length && strLength < length)\\n ? (createPadding(length - strLength, chars) + string)\\n : string;\\n }\\n\\n /**\\n * Converts `string` to an integer of the specified radix. If `radix` is\\n * `undefined` or `0`, a `radix` of `10` is used unless `value` is a\\n * hexadecimal, in which case a `radix` of `16` is used.\\n *\\n * **Note:** This method aligns with the\\n * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.\\n *\\n * @static\\n * @memberOf _\\n * @since 1.1.0\\n * @category String\\n * @param {string} string The string to convert.\\n * @param {number} [radix=10] The radix to interpret `value` by.\\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\\n * @returns {number} Returns the converted integer.\\n * @example\\n *\\n * _.parseInt('08');\\n * // => 8\\n *\\n * _.map(['6', '08', '10'], _.parseInt);\\n * // => [6, 8, 10]\\n */\\n function parseInt(string, radix, guard) {\\n if (guard || radix == null) {\\n radix = 0;\\n } else if (radix) {\\n radix = +radix;\\n }\\n return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0);\\n }\\n\\n /**\\n * Repeats the given string `n` times.\\n *\\n * @static\\n * @memberOf _\\n * @since 3.0.0\\n * @category String\\n * @param {string} [string=''] The string to repeat.\\n * @param {number} [n=1] The number of times to repeat the string.\\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\\n * @returns {string} Returns the repeated string.\\n * @example\\n *\\n * _.repeat('*', 3);\\n * // => '***'\\n *\\n * _.repeat('abc', 2);\\n * // => 'abcabc'\\n *\\n * _.repeat('abc', 0);\\n * // => ''\\n */\\n function repeat(string, n, guard) {\\n if ((guard ? isIterateeCall(string, n, guard) : n === undefined)) {\\n n = 1;\\n } else {\\n n = toInteger(n);\\n }\\n return baseRepeat(toString(string), n);\\n }\\n\\n /**\\n * Replaces matches for `pattern` in `string` with `replacement`.\\n *\\n * **Note:** This method is based on\\n * [`String#replace`](https://mdn.io/String/replace).\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category String\\n * @param {string} [string=''] The string to modify.\\n * @param {RegExp|string} pattern The pattern to replace.\\n * @param {Function|string} replacement The match replacement.\\n * @returns {string} Returns the modified string.\\n * @example\\n *\\n * _.replace('Hi Fred', 'Fred', 'Barney');\\n * // => 'Hi Barney'\\n */\\n function replace() {\\n var args = arguments,\\n string = toString(args[0]);\\n\\n return args.length < 3 ? string : string.replace(args[1], args[2]);\\n }\\n\\n /**\\n * Converts `string` to\\n * [snake case](https://en.wikipedia.org/wiki/Snake_case).\\n *\\n * @static\\n * @memberOf _\\n * @since 3.0.0\\n * @category String\\n * @param {string} [string=''] The string to convert.\\n * @returns {string} Returns the snake cased string.\\n * @example\\n *\\n * _.snakeCase('Foo Bar');\\n * // => 'foo_bar'\\n *\\n * _.snakeCase('fooBar');\\n * // => 'foo_bar'\\n *\\n * _.snakeCase('--FOO-BAR--');\\n * // => 'foo_bar'\\n */\\n var snakeCase = createCompounder(function(result, word, index) {\\n return result + (index ? '_' : '') + word.toLowerCase();\\n });\\n\\n /**\\n * Splits `string` by `separator`.\\n *\\n * **Note:** This method is based on\\n * [`String#split`](https://mdn.io/String/split).\\n *\\n * @static\\n * @memberOf _\\n * @since 4.0.0\\n * @category String\\n * @param {string} [string=''] The string to split.\\n * @param {RegExp|string} separator The separator pattern to split by.\\n * @param {number} [limit] The length to truncate results to.\\n * @returns {Array} Returns the string segments.\\n * @example\\n *\\n * _.split('a-b-c', '-', 2);\\n * // => ['a', 'b']\\n */\\n function split(string, separator, limit) {\\n if (limit && typeof limit != 'number' && isIterateeCall(string, separator, limit)) {\\n separator = limit = undefined;\\n }\\n limit = limit === undefined ? MAX_ARRAY_LENGTH : limit >>> 0;\\n if (!limit) {\\n return [];\\n }\\n string = toString(string);\\n if (string && (\\n typeof separator == 'string' ||\\n (separator != null && !isRegExp(separator))\\n )) {\\n separator = baseToString(separator);\\n if (!separator && hasUnicode(string)) {\\n return castSlice(stringToArray(string), 0, limit);\\n }\\n }\\n return string.split(separator, limit);\\n }\\n\\n /**\\n * Converts `string` to\\n * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).\\n *\\n * @static\\n * @memberOf _\\n * @since 3.1.0\\n * @category String\\n * @param {string} [string=''] The string to convert.\\n * @returns {string} Returns the start cased string.\\n * @example\\n *\\n * _.startCase('--foo-bar--');\\n * // => 'Foo Bar'\\n *\\n * _.startCase('fooBar');\\n * // => 'Foo Bar'\\n *\\n * _.startCase('__FOO_BAR__');\\n * // => 'FOO BAR'\\n */\\n var startCase = createCompounder(function(result, word, index) {\\n return result + (index ? ' ' : '') + upperFirst(word);\\n });\\n\\n /**\\n * Checks if `string` starts with the given target string.\\n *\\n * @static\\n * @memberOf _\\n * @since 3.0.0\\n * @category String\\n * @param {string} [string=''] The string to inspect.\\n * @param {string} [target] The string to search for.\\n * @param {number} [position=0] The position to search from.\\n * @returns {boolean} Returns `true` if `string` starts with `target`,\\n * else `false`.\\n * @example\\n *\\n * _.startsWith('abc', 'a');\\n * // => true\\n *\\n * _.startsWith('abc', 'b');\\n * // => false\\n *\\n * _.startsWith('abc', 'b', 1);\\n * // => true\\n */\\n function startsWith(string, target, position) {\\n string = toString(string);\\n position = position == null\\n ? 0\\n : baseClamp(toInteger(position), 0, string.length);\\n\\n target = baseToString(target);\\n return string.slice(position, position + target.length) == target;\\n }\\n\\n /**\\n * Creates a compiled template function that can interpolate data properties\\n * in \\\"interpolate\\\" delimiters, HTML-escape interpolated data properties in\\n * \\\"escape\\\" delimiters, and execute JavaScript in \\\"evaluate\\\" delimiters. Data\\n * properties may be accessed as free variables in the template. If a setting\\n * object is given, it takes precedence over `_.templateSettings` values.\\n *\\n * **Note:** In the development build `_.template` utilizes\\n * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)\\n * for easier debugging.\\n *\\n * For more information on precompiling templates see\\n * [lodash's custom builds documentation](https://lodash.com/custom-builds).\\n *\\n * For more information on Chrome extension sandboxes see\\n * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).\\n *\\n * @static\\n * @since 0.1.0\\n * @memberOf _\\n * @category String\\n * @param {string} [string=''] The template string.\\n * @param {Object} [options={}] The options object.\\n * @param {RegExp} [options.escape=_.templateSettings.escape]\\n * The HTML \\\"escape\\\" delimiter.\\n * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]\\n * The \\\"evaluate\\\" delimiter.\\n * @param {Object} [options.imports=_.templateSettings.imports]\\n * An object to import into the template as free variables.\\n * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]\\n * The \\\"interpolate\\\" delimiter.\\n * @param {string} [options.sourceURL='lodash.templateSources[n]']\\n * The sourceURL of the compiled template.\\n * @param {string} [options.variable='obj']\\n * The data object variable name.\\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\\n * @returns {Function} Returns the compiled template function.\\n * @example\\n *\\n * // Use the \\\"interpolate\\\" delimiter to create a compiled template.\\n * var compiled = _.template('hello <%= user %>!');\\n * compiled({ 'user': 'fred' });\\n * // => 'hello fred!'\\n *\\n * // Use the HTML \\\"escape\\\" delimiter to escape data property values.\\n * var compiled = _.template('<%- value %>');\\n * compiled({ 'value': '\\\\r\\\\n\\\\r\\\\n\\\\r\\\\n\\\"],\\\"sourceRoot\\\":\\\"webpack://\\\"}]);\\n\\t\\n\\t// exports\\n\\n\\n/***/ },\\n/* 78 */\\n/***/ function(module, exports) {\\n\\n\\t/*\\r\\n\\t\\tMIT License http://www.opensource.org/licenses/mit-license.php\\r\\n\\t\\tAuthor Tobias Koppers @sokra\\r\\n\\t*/\\r\\n\\t// css base code, injected by the css-loader\\r\\n\\tmodule.exports = function() {\\r\\n\\t\\tvar list = [];\\r\\n\\t\\r\\n\\t\\t// return the list of modules as css string\\r\\n\\t\\tlist.toString = function toString() {\\r\\n\\t\\t\\tvar result = [];\\r\\n\\t\\t\\tfor(var i = 0; i < this.length; i++) {\\r\\n\\t\\t\\t\\tvar item = this[i];\\r\\n\\t\\t\\t\\tif(item[2]) {\\r\\n\\t\\t\\t\\t\\tresult.push(\\\"@media \\\" + item[2] + \\\"{\\\" + item[1] + \\\"}\\\");\\r\\n\\t\\t\\t\\t} else {\\r\\n\\t\\t\\t\\t\\tresult.push(item[1]);\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\treturn result.join(\\\"\\\");\\r\\n\\t\\t};\\r\\n\\t\\r\\n\\t\\t// import a list of modules into the list\\r\\n\\t\\tlist.i = function(modules, mediaQuery) {\\r\\n\\t\\t\\tif(typeof modules === \\\"string\\\")\\r\\n\\t\\t\\t\\tmodules = [[null, modules, \\\"\\\"]];\\r\\n\\t\\t\\tvar alreadyImportedModules = {};\\r\\n\\t\\t\\tfor(var i = 0; i < this.length; i++) {\\r\\n\\t\\t\\t\\tvar id = this[i][0];\\r\\n\\t\\t\\t\\tif(typeof id === \\\"number\\\")\\r\\n\\t\\t\\t\\t\\talreadyImportedModules[id] = true;\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\tfor(i = 0; i < modules.length; i++) {\\r\\n\\t\\t\\t\\tvar item = modules[i];\\r\\n\\t\\t\\t\\t// skip already imported module\\r\\n\\t\\t\\t\\t// this implementation is not 100% perfect for weird media query combinations\\r\\n\\t\\t\\t\\t// when a module is imported multiple times with different media queries.\\r\\n\\t\\t\\t\\t// I hope this will never occur (Hey this way we have smaller bundles)\\r\\n\\t\\t\\t\\tif(typeof item[0] !== \\\"number\\\" || !alreadyImportedModules[item[0]]) {\\r\\n\\t\\t\\t\\t\\tif(mediaQuery && !item[2]) {\\r\\n\\t\\t\\t\\t\\t\\titem[2] = mediaQuery;\\r\\n\\t\\t\\t\\t\\t} else if(mediaQuery) {\\r\\n\\t\\t\\t\\t\\t\\titem[2] = \\\"(\\\" + item[2] + \\\") and (\\\" + mediaQuery + \\\")\\\";\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\tlist.push(item);\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t}\\r\\n\\t\\t};\\r\\n\\t\\treturn list;\\r\\n\\t};\\r\\n\\n\\n/***/ },\\n/* 79 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t/*\\n\\t\\tMIT License http://www.opensource.org/licenses/mit-license.php\\n\\t\\tAuthor Tobias Koppers @sokra\\n\\t*/\\n\\tvar stylesInDom = {},\\n\\t\\tmemoize = function(fn) {\\n\\t\\t\\tvar memo;\\n\\t\\t\\treturn function () {\\n\\t\\t\\t\\tif (typeof memo === \\\"undefined\\\") memo = fn.apply(this, arguments);\\n\\t\\t\\t\\treturn memo;\\n\\t\\t\\t};\\n\\t\\t},\\n\\t\\tisOldIE = memoize(function() {\\n\\t\\t\\treturn /msie [6-9]\\\\b/.test(window.navigator.userAgent.toLowerCase());\\n\\t\\t}),\\n\\t\\tgetHeadElement = memoize(function () {\\n\\t\\t\\treturn document.head || document.getElementsByTagName(\\\"head\\\")[0];\\n\\t\\t}),\\n\\t\\tsingletonElement = null,\\n\\t\\tsingletonCounter = 0,\\n\\t\\tstyleElementsInsertedAtTop = [];\\n\\t\\n\\tmodule.exports = function(list, options) {\\n\\t\\tif(false) {\\n\\t\\t\\tif(typeof document !== \\\"object\\\") throw new Error(\\\"The style-loader cannot be used in a non-browser environment\\\");\\n\\t\\t}\\n\\t\\n\\t\\toptions = options || {};\\n\\t\\t// Force single-tag solution on IE6-9, which has a hard limit on the # of \\\\r\\\\n\\\"],\\\"sourceRoot\\\":\\\"webpack://\\\"}]);\\n\\t\\n\\t// exports\\n\\n\\n/***/ },\\n/* 85 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t'use strict';\\n\\t\\n\\tObject.defineProperty(exports, \\\"__esModule\\\", {\\n\\t value: true\\n\\t});\\n\\t\\n\\tvar _utils = __webpack_require__(65);\\n\\t\\n\\tvar _NodeList = __webpack_require__(1);\\n\\t\\n\\tvar _NodeList2 = _interopRequireDefault(_NodeList);\\n\\t\\n\\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\\n\\t\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t\\n\\texports.default = {\\n\\t props: {\\n\\t header: { type: String },\\n\\t placement: { type: String, default: 'right' },\\n\\t show: { type: Boolean, required: true },\\n\\t width: { type: Number, default: 320 }\\n\\t },\\n\\t watch: {\\n\\t show: function show(val, old) {\\n\\t var _this = this;\\n\\t\\n\\t this.$emit('input', val);\\n\\t this.$emit(this.show ? 'open' : 'close');\\n\\t var body = document.body;\\n\\t var scrollBarWidth = (0, _utils.getScrollBarWidth)();\\n\\t if (val) {\\n\\t if (!this._backdrop) {\\n\\t this._backdrop = document.createElement('div');\\n\\t }\\n\\t this._backdrop.className = 'aside-backdrop';\\n\\t body.appendChild(this._backdrop);\\n\\t body.classList.add('modal-open');\\n\\t if (scrollBarWidth !== 0) {\\n\\t body.style.paddingRight = scrollBarWidth + 'px';\\n\\t }\\n\\t // request property that requires layout to force a layout\\n\\t var x = this._backdrop.clientHeight;\\n\\t this._backdrop.classList.add('in');\\n\\t (0, _NodeList2.default)(this._backdrop).on('click', function () {\\n\\t return _this.trigger_close();\\n\\t });\\n\\t } else {\\n\\t (0, _NodeList2.default)(this._backdrop).on('transitionend', function () {\\n\\t (0, _NodeList2.default)(_this._backdrop).off();\\n\\t try {\\n\\t body.classList.remove('modal-open');\\n\\t body.style.paddingRight = '0';\\n\\t body.removeChild(_this._backdrop);\\n\\t _this._backdrop = null;\\n\\t } catch (e) {}\\n\\t });\\n\\t this._backdrop.className = 'aside-backdrop';\\n\\t }\\n\\t }\\n\\t },\\n\\t methods: {\\n\\t trigger: function trigger() {\\n\\t var _this2 = this;\\n\\t\\n\\t return {\\n\\t close: function close() {\\n\\t return _this2.trigger_close();\\n\\t },\\n\\t open: function open() {\\n\\t return _this2.trigger_open();\\n\\t }\\n\\t };\\n\\t },\\n\\t trigger_close: function trigger_close() {\\n\\t this.$emit('close');\\n\\t },\\n\\t trigger_open: function trigger_open() {\\n\\t this.$emit('open');\\n\\t }\\n\\t },\\n\\t mounted: function mounted() {\\n\\t var _this3 = this;\\n\\t\\n\\t this.$emit('trigger', function () {\\n\\t return _this3.trigger;\\n\\t });\\n\\t }\\n\\t};\\n\\n/***/ },\\n/* 86 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\\n\\t return _vm._c('transition', {\\n\\t attrs: {\\n\\t \\\"name\\\": 'slide' + _vm.placement\\n\\t }\\n\\t }, [(_vm.show) ? _vm._c('div', {\\n\\t staticClass: \\\"aside\\\",\\n\\t class: _vm.placement,\\n\\t style: ({\\n\\t width: _vm.width + 'px'\\n\\t })\\n\\t }, [_vm._c('div', {\\n\\t staticClass: \\\"aside-dialog\\\"\\n\\t }, [_vm._c('div', {\\n\\t staticClass: \\\"aside-content\\\"\\n\\t }, [_vm._c('div', {\\n\\t staticClass: \\\"aside-header\\\"\\n\\t }, [_vm._c('button', {\\n\\t staticClass: \\\"close\\\",\\n\\t attrs: {\\n\\t \\\"type\\\": \\\"button\\\"\\n\\t },\\n\\t on: {\\n\\t \\\"click\\\": _vm.trigger_close\\n\\t }\\n\\t }, [_vm._c('span', [_vm._v(\\\"×\\\")])]), _vm._v(\\\" \\\"), _vm._c('h4', {\\n\\t staticClass: \\\"aside-title\\\"\\n\\t }, [_vm._t(\\\"header\\\", [_vm._v(_vm._s(_vm.header))])], 2)]), _vm._v(\\\" \\\"), _vm._c('div', {\\n\\t staticClass: \\\"aside-body\\\"\\n\\t }, [_vm._t(\\\"default\\\")], 2)])])]) : _vm._e()])\\n\\t},staticRenderFns: []}\\n\\tif (false) {\\n\\t module.hot.accept()\\n\\t if (module.hot.data) {\\n\\t require(\\\"vue-hot-reload-api\\\").rerender(\\\"data-v-3a4bde27\\\", module.exports)\\n\\t }\\n\\t}\\n\\n/***/ },\\n/* 87 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tvar __vue_exports__, __vue_options__\\n\\tvar __vue_styles__ = {}\\n\\t\\n\\t/* script */\\n\\t__vue_exports__ = __webpack_require__(88)\\n\\t\\n\\t/* template */\\n\\tvar __vue_template__ = __webpack_require__(89)\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\\n\\tif (\\n\\t typeof __vue_exports__.default === \\\"object\\\" ||\\n\\t typeof __vue_exports__.default === \\\"function\\\"\\n\\t) {\\n\\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \\\"default\\\" && key !== \\\"__esModule\\\" })) {console.error(\\\"named exports are not supported in *.vue files.\\\")}\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__.default\\n\\t}\\n\\tif (typeof __vue_options__ === \\\"function\\\") {\\n\\t __vue_options__ = __vue_options__.options\\n\\t}\\n\\t__vue_options__.__file = \\\"C:\\\\\\\\laragon\\\\\\\\www\\\\\\\\vue-strap\\\\\\\\src\\\\\\\\ButtonGroup.vue\\\"\\n\\t__vue_options__.render = __vue_template__.render\\n\\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\\n\\t\\n\\t/* hot reload */\\n\\tif (false) {(function () {\\n\\t var hotAPI = require(\\\"vue-hot-reload-api\\\")\\n\\t hotAPI.install(require(\\\"vue\\\"), false)\\n\\t if (!hotAPI.compatible) return\\n\\t module.hot.accept()\\n\\t if (!module.hot.data) {\\n\\t hotAPI.createRecord(\\\"data-v-125eb0c8\\\", __vue_options__)\\n\\t } else {\\n\\t hotAPI.reload(\\\"data-v-125eb0c8\\\", __vue_options__)\\n\\t }\\n\\t})()}\\n\\tif (__vue_options__.functional) {console.error(\\\"[vue-loader] ButtonGroup.vue: functional components are not supported and should be defined in plain js files using render functions.\\\")}\\n\\t\\n\\tmodule.exports = __vue_exports__\\n\\n\\n/***/ },\\n/* 88 */\\n/***/ function(module, exports) {\\n\\n\\t'use strict';\\n\\t\\n\\tObject.defineProperty(exports, \\\"__esModule\\\", {\\n\\t value: true\\n\\t});\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t\\n\\texports.default = {\\n\\t props: {\\n\\t buttons: { default: true },\\n\\t justified: { type: Boolean, default: false },\\n\\t type: { type: String, default: 'default' },\\n\\t value: { default: null },\\n\\t vertical: { type: Boolean, default: false }\\n\\t },\\n\\t data: function data() {\\n\\t this._btnGroup = true;\\n\\t return {\\n\\t val: this.value\\n\\t };\\n\\t },\\n\\t\\n\\t watch: {\\n\\t val: function val(_val) {\\n\\t this.$emit('input', _val);\\n\\t }\\n\\t }\\n\\t};\\n\\n/***/ },\\n/* 89 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\\n\\t return _vm._c('div', {\\n\\t class: {\\n\\t 'btn-group': _vm.buttons, 'btn-group-justified': _vm.justified, 'btn-group-vertical': _vm.vertical\\n\\t },\\n\\t attrs: {\\n\\t \\\"data-toggle\\\": _vm.buttons && 'buttons'\\n\\t }\\n\\t }, [_vm._t(\\\"default\\\")], 2)\\n\\t},staticRenderFns: []}\\n\\tif (false) {\\n\\t module.hot.accept()\\n\\t if (module.hot.data) {\\n\\t require(\\\"vue-hot-reload-api\\\").rerender(\\\"data-v-125eb0c8\\\", module.exports)\\n\\t }\\n\\t}\\n\\n/***/ },\\n/* 90 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tvar __vue_exports__, __vue_options__\\n\\tvar __vue_styles__ = {}\\n\\t\\n\\t/* styles */\\n\\t__webpack_require__(91)\\n\\t\\n\\t/* script */\\n\\t__vue_exports__ = __webpack_require__(93)\\n\\t\\n\\t/* template */\\n\\tvar __vue_template__ = __webpack_require__(94)\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\\n\\tif (\\n\\t typeof __vue_exports__.default === \\\"object\\\" ||\\n\\t typeof __vue_exports__.default === \\\"function\\\"\\n\\t) {\\n\\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \\\"default\\\" && key !== \\\"__esModule\\\" })) {console.error(\\\"named exports are not supported in *.vue files.\\\")}\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__.default\\n\\t}\\n\\tif (typeof __vue_options__ === \\\"function\\\") {\\n\\t __vue_options__ = __vue_options__.options\\n\\t}\\n\\t__vue_options__.__file = \\\"C:\\\\\\\\laragon\\\\\\\\www\\\\\\\\vue-strap\\\\\\\\src\\\\\\\\Carousel.vue\\\"\\n\\t__vue_options__.render = __vue_template__.render\\n\\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\\n\\t__vue_options__._scopeId = \\\"data-v-322dee41\\\"\\n\\t\\n\\t/* hot reload */\\n\\tif (false) {(function () {\\n\\t var hotAPI = require(\\\"vue-hot-reload-api\\\")\\n\\t hotAPI.install(require(\\\"vue\\\"), false)\\n\\t if (!hotAPI.compatible) return\\n\\t module.hot.accept()\\n\\t if (!module.hot.data) {\\n\\t hotAPI.createRecord(\\\"data-v-322dee41\\\", __vue_options__)\\n\\t } else {\\n\\t hotAPI.reload(\\\"data-v-322dee41\\\", __vue_options__)\\n\\t }\\n\\t})()}\\n\\tif (__vue_options__.functional) {console.error(\\\"[vue-loader] Carousel.vue: functional components are not supported and should be defined in plain js files using render functions.\\\")}\\n\\t\\n\\tmodule.exports = __vue_exports__\\n\\n\\n/***/ },\\n/* 91 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t// style-loader: Adds some css to the DOM by adding a \\\\r\\\\n\\\"],\\\"sourceRoot\\\":\\\"webpack://\\\"}]);\\n\\t\\n\\t// exports\\n\\n\\n/***/ },\\n/* 93 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t'use strict';\\n\\t\\n\\tObject.defineProperty(exports, \\\"__esModule\\\", {\\n\\t value: true\\n\\t});\\n\\t\\n\\tvar _NodeList = __webpack_require__(1);\\n\\t\\n\\tvar _NodeList2 = _interopRequireDefault(_NodeList);\\n\\t\\n\\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\\n\\t\\n\\t// let coerce = {\\n\\t// interval: 'number'\\n\\t// }\\n\\t\\n\\texports.default = {\\n\\t props: {\\n\\t indicators: {\\n\\t type: Boolean,\\n\\t default: true\\n\\t },\\n\\t controls: {\\n\\t type: Boolean,\\n\\t default: true\\n\\t },\\n\\t interval: {\\n\\t type: Number,\\n\\t default: 5000\\n\\t }\\n\\t },\\n\\t data: function data() {\\n\\t return {\\n\\t indicator_list: [],\\n\\t index: 0,\\n\\t isAnimating: false\\n\\t };\\n\\t },\\n\\t\\n\\t watch: {\\n\\t index: function index(newVal, oldVal) {\\n\\t this.slide(newVal > oldVal ? 'left' : 'right', newVal, oldVal);\\n\\t }\\n\\t },\\n\\t methods: {\\n\\t indicatorClick: function indicatorClick(index) {\\n\\t if (this.isAnimating || this.index === index) return false;\\n\\t this.isAnimating = true;\\n\\t this.index = index;\\n\\t },\\n\\t slide: function slide(direction, next, prev) {\\n\\t var _this = this;\\n\\t\\n\\t if (!this.$el) {\\n\\t return;\\n\\t }\\n\\t var $slider = (0, _NodeList2.default)('.item', this.$el);\\n\\t if (!$slider.length) {\\n\\t return;\\n\\t }\\n\\t var selected = $slider[next] || $slider[0];\\n\\t (0, _NodeList2.default)(selected).addClass(direction === 'left' ? 'next' : 'prev');\\n\\t // request property that requires layout to force a layout\\n\\t var x = selected.clientHeight;\\n\\t (0, _NodeList2.default)([$slider[prev], selected]).addClass(direction).on('transitionend', function () {\\n\\t $slider.off('transitionend').className = 'item';\\n\\t (0, _NodeList2.default)(selected).addClass('active');\\n\\t _this.isAnimating = false;\\n\\t });\\n\\t },\\n\\t next: function next() {\\n\\t if (!this.$el || this.isAnimating) {\\n\\t return false;\\n\\t }\\n\\t this.isAnimating = true;\\n\\t this.index + 1 < (0, _NodeList2.default)('.item', this.$el).length ? this.index += 1 : this.index = 0;\\n\\t },\\n\\t prev: function prev() {\\n\\t if (!this.$el || this.isAnimating) {\\n\\t return false;\\n\\t }\\n\\t this.isAnimating = true;\\n\\t this.index === 0 ? this.index = (0, _NodeList2.default)('.item', this.$el).length - 1 : this.index -= 1;\\n\\t },\\n\\t toggleInterval: function toggleInterval(val) {\\n\\t if (val === undefined) {\\n\\t val = this._intervalID;\\n\\t }\\n\\t if (this._intervalID) {\\n\\t clearInterval(this._intervalID);\\n\\t delete this._intervalID;\\n\\t }\\n\\t if (val && this.interval > 0) {\\n\\t this._intervalID = setInterval(this.next, this.interval);\\n\\t }\\n\\t }\\n\\t },\\n\\t mounted: function mounted() {\\n\\t var _this2 = this;\\n\\t\\n\\t this.toggleInterval(true);\\n\\t (0, _NodeList2.default)(this.$el).on('mouseenter', function () {\\n\\t return _this2.toggleInterval(false);\\n\\t }).on('mouseleave', function () {\\n\\t return _this2.toggleInterval(true);\\n\\t });\\n\\t },\\n\\t beforeDestroy: function beforeDestroy() {\\n\\t this.toggleInterval(false);\\n\\t (0, _NodeList2.default)(this.$el).off('mouseenter mouseleave');\\n\\t }\\n\\t}; //\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\n/***/ },\\n/* 94 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\\n\\t return _vm._c('div', {\\n\\t staticClass: \\\"carousel slide\\\",\\n\\t attrs: {\\n\\t \\\"data-ride\\\": \\\"carousel\\\"\\n\\t }\\n\\t }, [_vm._c('ol', {\\n\\t directives: [{\\n\\t name: \\\"show\\\",\\n\\t rawName: \\\"v-show\\\",\\n\\t value: (_vm.indicators),\\n\\t expression: \\\"indicators\\\"\\n\\t }],\\n\\t staticClass: \\\"carousel-indicators\\\"\\n\\t }, _vm._l((_vm.indicator_list), function(indicator, i) {\\n\\t return _vm._c('li', {\\n\\t class: {\\n\\t active: i === _vm.index\\n\\t },\\n\\t on: {\\n\\t \\\"click\\\": function($event) {\\n\\t _vm.indicatorClick(i)\\n\\t }\\n\\t }\\n\\t }, [_vm._c('span')])\\n\\t })), _vm._v(\\\" \\\"), _vm._c('div', {\\n\\t staticClass: \\\"carousel-inner\\\",\\n\\t attrs: {\\n\\t \\\"role\\\": \\\"listbox\\\"\\n\\t }\\n\\t }, [_vm._t(\\\"default\\\")], 2), _vm._v(\\\" \\\"), _vm._c('div', {\\n\\t directives: [{\\n\\t name: \\\"show\\\",\\n\\t rawName: \\\"v-show\\\",\\n\\t value: (_vm.controls),\\n\\t expression: \\\"controls\\\"\\n\\t }],\\n\\t staticClass: \\\"carousel-controls hidden-xs\\\"\\n\\t }, [_vm._c('a', {\\n\\t staticClass: \\\"left carousel-control\\\",\\n\\t attrs: {\\n\\t \\\"role\\\": \\\"button\\\"\\n\\t },\\n\\t on: {\\n\\t \\\"click\\\": _vm.prev\\n\\t }\\n\\t }, [_vm._c('span', {\\n\\t staticClass: \\\"glyphicon glyphicon-chevron-left\\\",\\n\\t attrs: {\\n\\t \\\"aria-hidden\\\": \\\"true\\\"\\n\\t }\\n\\t })]), _vm._v(\\\" \\\"), _vm._c('a', {\\n\\t staticClass: \\\"right carousel-control\\\",\\n\\t attrs: {\\n\\t \\\"role\\\": \\\"button\\\"\\n\\t },\\n\\t on: {\\n\\t \\\"click\\\": _vm.next\\n\\t }\\n\\t }, [_vm._c('span', {\\n\\t staticClass: \\\"glyphicon glyphicon-chevron-right\\\",\\n\\t attrs: {\\n\\t \\\"aria-hidden\\\": \\\"true\\\"\\n\\t }\\n\\t })])])])\\n\\t},staticRenderFns: []}\\n\\tif (false) {\\n\\t module.hot.accept()\\n\\t if (module.hot.data) {\\n\\t require(\\\"vue-hot-reload-api\\\").rerender(\\\"data-v-322dee41\\\", module.exports)\\n\\t }\\n\\t}\\n\\n/***/ },\\n/* 95 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tvar __vue_exports__, __vue_options__\\n\\tvar __vue_styles__ = {}\\n\\t\\n\\t/* styles */\\n\\t__webpack_require__(96)\\n\\t\\n\\t/* script */\\n\\t__vue_exports__ = __webpack_require__(98)\\n\\t\\n\\t/* template */\\n\\tvar __vue_template__ = __webpack_require__(99)\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\\n\\tif (\\n\\t typeof __vue_exports__.default === \\\"object\\\" ||\\n\\t typeof __vue_exports__.default === \\\"function\\\"\\n\\t) {\\n\\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \\\"default\\\" && key !== \\\"__esModule\\\" })) {console.error(\\\"named exports are not supported in *.vue files.\\\")}\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__.default\\n\\t}\\n\\tif (typeof __vue_options__ === \\\"function\\\") {\\n\\t __vue_options__ = __vue_options__.options\\n\\t}\\n\\t__vue_options__.__file = \\\"C:\\\\\\\\laragon\\\\\\\\www\\\\\\\\vue-strap\\\\\\\\src\\\\\\\\Checkbox.vue\\\"\\n\\t__vue_options__.render = __vue_template__.render\\n\\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\\n\\t__vue_options__._scopeId = \\\"data-v-6922bf24\\\"\\n\\t\\n\\t/* hot reload */\\n\\tif (false) {(function () {\\n\\t var hotAPI = require(\\\"vue-hot-reload-api\\\")\\n\\t hotAPI.install(require(\\\"vue\\\"), false)\\n\\t if (!hotAPI.compatible) return\\n\\t module.hot.accept()\\n\\t if (!module.hot.data) {\\n\\t hotAPI.createRecord(\\\"data-v-6922bf24\\\", __vue_options__)\\n\\t } else {\\n\\t hotAPI.reload(\\\"data-v-6922bf24\\\", __vue_options__)\\n\\t }\\n\\t})()}\\n\\tif (__vue_options__.functional) {console.error(\\\"[vue-loader] Checkbox.vue: functional components are not supported and should be defined in plain js files using render functions.\\\")}\\n\\t\\n\\tmodule.exports = __vue_exports__\\n\\n\\n/***/ },\\n/* 96 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t// style-loader: Adds some css to the DOM by adding a \\\\r\\\\n\\\"],\\\"sourceRoot\\\":\\\"webpack://\\\"}]);\\n\\t\\n\\t// exports\\n\\n\\n/***/ },\\n/* 98 */\\n/***/ function(module, exports) {\\n\\n\\t'use strict';\\n\\t\\n\\tObject.defineProperty(exports, \\\"__esModule\\\", {\\n\\t value: true\\n\\t});\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t\\n\\texports.default = {\\n\\t props: {\\n\\t button: { type: Boolean, default: false },\\n\\t disabled: { type: Boolean, default: false },\\n\\t falseValue: { default: false },\\n\\t name: { type: String, default: null },\\n\\t readonly: { type: Boolean, default: false },\\n\\t trueValue: { default: true },\\n\\t type: { type: String, default: null },\\n\\t value: { default: false }\\n\\t },\\n\\t data: function data() {\\n\\t return {\\n\\t checked: this.value === this.trueValue\\n\\t };\\n\\t },\\n\\t\\n\\t computed: {\\n\\t isButton: function isButton() {\\n\\t return this.button || this._inGroup && this.$parent.buttons;\\n\\t },\\n\\t isFalse: function isFalse() {\\n\\t return this.value === this.falseValue;\\n\\t },\\n\\t isTrue: function isTrue() {\\n\\t return this.value === this.trueValue;\\n\\t },\\n\\t parentValue: function parentValue() {\\n\\t return this._ingroup && this.$parent.val;\\n\\t },\\n\\t typeColor: function typeColor() {\\n\\t return this.type || this.$parent && this.$parent.type || 'default';\\n\\t }\\n\\t },\\n\\t watch: {\\n\\t checked: function checked(val, old) {\\n\\t var value = val ? this.trueValue : this.falseValue;\\n\\t this.$emit('checked', val);\\n\\t this.$emit('input', value);\\n\\t this.eval();\\n\\t },\\n\\t parentValue: function parentValue(val) {\\n\\t var checked = val === this.trueValue;\\n\\t if (this.checked !== checked) {\\n\\t this.checked = checked;\\n\\t }\\n\\t },\\n\\t value: function value(val, old) {\\n\\t var checked = val === this.trueValue;\\n\\t if (this.checked !== checked) {\\n\\t this.checked = checked;\\n\\t }\\n\\t }\\n\\t },\\n\\t created: function created() {\\n\\t var parent = this.$parent;\\n\\t if (parent && parent._btnGroup && !parent._radioGroup) {\\n\\t this._inGroup = true;\\n\\t parent._checkboxGroup = true;\\n\\t if (!(parent.val instanceof Array)) {\\n\\t parent.val = [];\\n\\t }\\n\\t this.eval();\\n\\t }\\n\\t },\\n\\t mounted: function mounted() {\\n\\t if (!this.$parent._checkboxGroup || typeof this.value === 'boolean') {\\n\\t return;\\n\\t }\\n\\t if (this.$parent.val.length) {\\n\\t // this.checked = ~this.$parent.val.indexOf(this.value)\\n\\t this.$emit('checked', ~this.$parent.val.indexOf(this.value));\\n\\t } else if (this.checked) {\\n\\t this.$parent.val.push(this.value);\\n\\t }\\n\\t },\\n\\t\\n\\t methods: {\\n\\t eval: function _eval() {\\n\\t if (this._inGroup) {\\n\\t var value = this.checked ? this.isTrue : this.isFalse;\\n\\t var index = this.$parent.val.indexOf(value);\\n\\t if (this.checked && !~index) this.$parent.val.push(value);\\n\\t if (!this.checked && ~index) this.$parent.val.splice(index, 1);\\n\\t }\\n\\t },\\n\\t toggle: function toggle() {\\n\\t if (this.disabled || this.readonly) {\\n\\t return;\\n\\t }\\n\\t this.checked = !this.checked;\\n\\t }\\n\\t }\\n\\t};\\n\\n/***/ },\\n/* 99 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\\n\\t return _vm._c(_vm.isButton ? 'a' : 'label', {\\n\\t tag: \\\"a\\\",\\n\\t class: [_vm.isButton ? 'btn btn-' + _vm.typeColor : 'open checkbox ' + _vm.typeColor, {\\n\\t active: _vm.checked,\\n\\t disabled: _vm.disabled,\\n\\t readonly: _vm.readonly\\n\\t }],\\n\\t on: {\\n\\t \\\"click\\\": _vm.toggle\\n\\t }\\n\\t }, [(_vm.name) ? _vm._c('input', {\\n\\t attrs: {\\n\\t \\\"type\\\": \\\"hidden\\\",\\n\\t \\\"name\\\": _vm.name\\n\\t },\\n\\t domProps: {\\n\\t \\\"value\\\": _vm.checked ? _vm.trueValue : _vm.falseValue\\n\\t }\\n\\t }) : _vm._e(), _vm._v(\\\" \\\"), (!_vm.isButton) ? _vm._c('span', {\\n\\t staticClass: \\\"icon dropdown-toggle\\\",\\n\\t class: [_vm.checked ? 'btn-' + _vm.typeColor : '', {\\n\\t bg: _vm.typeColor === 'default'\\n\\t }]\\n\\t }) : _vm._e(), _vm._v(\\\" \\\"), (!_vm.isButton && _vm.checked && _vm.typeColor === 'default') ? _vm._c('span', {\\n\\t staticClass: \\\"icon\\\"\\n\\t }) : _vm._e(), _vm._v(\\\" \\\"), _vm._t(\\\"default\\\")], 2)\\n\\t},staticRenderFns: []}\\n\\tif (false) {\\n\\t module.hot.accept()\\n\\t if (module.hot.data) {\\n\\t require(\\\"vue-hot-reload-api\\\").rerender(\\\"data-v-6922bf24\\\", module.exports)\\n\\t }\\n\\t}\\n\\n/***/ },\\n/* 100 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tvar __vue_exports__, __vue_options__\\n\\tvar __vue_styles__ = {}\\n\\t\\n\\t/* styles */\\n\\t__webpack_require__(101)\\n\\t\\n\\t/* script */\\n\\t__vue_exports__ = __webpack_require__(103)\\n\\t\\n\\t/* template */\\n\\tvar __vue_template__ = __webpack_require__(104)\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\\n\\tif (\\n\\t typeof __vue_exports__.default === \\\"object\\\" ||\\n\\t typeof __vue_exports__.default === \\\"function\\\"\\n\\t) {\\n\\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \\\"default\\\" && key !== \\\"__esModule\\\" })) {console.error(\\\"named exports are not supported in *.vue files.\\\")}\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__.default\\n\\t}\\n\\tif (typeof __vue_options__ === \\\"function\\\") {\\n\\t __vue_options__ = __vue_options__.options\\n\\t}\\n\\t__vue_options__.__file = \\\"C:\\\\\\\\laragon\\\\\\\\www\\\\\\\\vue-strap\\\\\\\\src\\\\\\\\Datepicker.vue\\\"\\n\\t__vue_options__.render = __vue_template__.render\\n\\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\\n\\t\\n\\t/* hot reload */\\n\\tif (false) {(function () {\\n\\t var hotAPI = require(\\\"vue-hot-reload-api\\\")\\n\\t hotAPI.install(require(\\\"vue\\\"), false)\\n\\t if (!hotAPI.compatible) return\\n\\t module.hot.accept()\\n\\t if (!module.hot.data) {\\n\\t hotAPI.createRecord(\\\"data-v-477b8e5d\\\", __vue_options__)\\n\\t } else {\\n\\t hotAPI.reload(\\\"data-v-477b8e5d\\\", __vue_options__)\\n\\t }\\n\\t})()}\\n\\tif (__vue_options__.functional) {console.error(\\\"[vue-loader] Datepicker.vue: functional components are not supported and should be defined in plain js files using render functions.\\\")}\\n\\t\\n\\tmodule.exports = __vue_exports__\\n\\n\\n/***/ },\\n/* 101 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t// style-loader: Adds some css to the DOM by adding a \\\\r\\\\n\\\"],\\\"sourceRoot\\\":\\\"webpack://\\\"}]);\\n\\t\\n\\t// exports\\n\\n\\n/***/ },\\n/* 103 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t'use strict';\\n\\t\\n\\tObject.defineProperty(exports, \\\"__esModule\\\", {\\n\\t value: true\\n\\t});\\n\\t\\n\\tvar _utils = __webpack_require__(65);\\n\\t\\n\\t// import $ from './utils/NodeList.js'\\n\\t\\n\\texports.default = {\\n\\t props: {\\n\\t value: { type: String },\\n\\t format: { default: 'MM/dd/yyyy' },\\n\\t disabledDaysOfWeek: { type: Array, default: function _default() {\\n\\t return [];\\n\\t }\\n\\t },\\n\\t width: { type: String /*, default: '200px'*/ },\\n\\t clearButton: { type: Boolean, default: false },\\n\\t lang: { type: String, default: navigator.language },\\n\\t placeholder: { type: String },\\n\\t iconsFont: { type: String, default: 'glyphicon' }\\n\\t },\\n\\t data: function data() {\\n\\t return {\\n\\t currDate: new Date(),\\n\\t dateRange: [],\\n\\t decadeRange: [],\\n\\t displayDayView: false,\\n\\t displayMonthView: false,\\n\\t displayYearView: false\\n\\t };\\n\\t },\\n\\t\\n\\t watch: {\\n\\t currDate: function currDate() {\\n\\t this.getDateRange();\\n\\t },\\n\\t format: function format() {\\n\\t this.$emit('input', this.stringify(this.currDate));\\n\\t }\\n\\t },\\n\\t computed: {\\n\\t text: function text() {\\n\\t return (0, _utils.translations)(this.lang);\\n\\t },\\n\\t preBtnClasses: function preBtnClasses() {\\n\\t return 'datepicker-preBtn ' + this.iconsFont + ' ' + this.iconsFont + '-chevron-left';\\n\\t },\\n\\t nextBtnClasses: function nextBtnClasses() {\\n\\t return 'datepicker-nextBtn ' + this.iconsFont + ' ' + this.iconsFont + '-chevron-right';\\n\\t },\\n\\t disabledDaysArray: function disabledDaysArray() {\\n\\t return this.disabledDaysOfWeek.map(function (d) {\\n\\t return parseInt(d, 10);\\n\\t });\\n\\t }\\n\\t },\\n\\t methods: {\\n\\t close: function close() {\\n\\t this.displayDayView = this.displayMonthView = this.displayYearView = false;\\n\\t },\\n\\t inputClick: function inputClick() {\\n\\t this.currDate = this.parse(this.value) || this.parse(new Date());\\n\\t if (this.displayMonthView || this.displayYearView) {\\n\\t this.displayDayView = false;\\n\\t } else {\\n\\t this.displayDayView = !this.displayDayView;\\n\\t }\\n\\t },\\n\\t preNextDecadeClick: function preNextDecadeClick(flag) {\\n\\t var year = this.currDate.getFullYear();\\n\\t var months = this.currDate.getMonth();\\n\\t var date = this.currDate.getDate();\\n\\t\\n\\t if (flag === 0) {\\n\\t this.currDate = new Date(year - 10, months, date);\\n\\t } else {\\n\\t this.currDate = new Date(year + 10, months, date);\\n\\t }\\n\\t },\\n\\t preNextMonthClick: function preNextMonthClick(flag) {\\n\\t var year = this.currDate.getFullYear();\\n\\t var month = this.currDate.getMonth();\\n\\t var date = this.currDate.getDate();\\n\\t\\n\\t if (flag === 0) {\\n\\t var preMonth = this.getYearMonth(year, month - 1);\\n\\t this.currDate = new Date(preMonth.year, preMonth.month, date);\\n\\t } else {\\n\\t var nextMonth = this.getYearMonth(year, month + 1);\\n\\t this.currDate = new Date(nextMonth.year, nextMonth.month, date);\\n\\t }\\n\\t },\\n\\t preNextYearClick: function preNextYearClick(flag) {\\n\\t var year = this.currDate.getFullYear();\\n\\t var months = this.currDate.getMonth();\\n\\t var date = this.currDate.getDate();\\n\\t\\n\\t if (flag === 0) {\\n\\t this.currDate = new Date(year - 1, months, date);\\n\\t } else {\\n\\t this.currDate = new Date(year + 1, months, date);\\n\\t }\\n\\t },\\n\\t yearSelect: function yearSelect(year) {\\n\\t this.displayYearView = false;\\n\\t this.displayMonthView = true;\\n\\t this.currDate = new Date(year, this.currDate.getMonth(), this.currDate.getDate());\\n\\t },\\n\\t daySelect: function daySelect(day) {\\n\\t if (day.sclass === 'datepicker-item-disable') {\\n\\t return false;\\n\\t } else {\\n\\t this.currDate = day.date;\\n\\t this.$emit('input', this.stringify(this.currDate));\\n\\t this.displayDayView = false;\\n\\t }\\n\\t },\\n\\t switchMonthView: function switchMonthView() {\\n\\t this.displayDayView = false;\\n\\t this.displayMonthView = true;\\n\\t },\\n\\t switchDecadeView: function switchDecadeView() {\\n\\t this.displayMonthView = false;\\n\\t this.displayYearView = true;\\n\\t },\\n\\t monthSelect: function monthSelect(index) {\\n\\t this.displayMonthView = false;\\n\\t this.displayDayView = true;\\n\\t this.currDate = new Date(this.currDate.getFullYear(), index, this.currDate.getDate());\\n\\t },\\n\\t getYearMonth: function getYearMonth(year, month) {\\n\\t if (month > 11) {\\n\\t year++;\\n\\t month = 0;\\n\\t } else if (month < 0) {\\n\\t year--;\\n\\t month = 11;\\n\\t }\\n\\t return { year: year, month: month };\\n\\t },\\n\\t stringifyDecadeHeader: function stringifyDecadeHeader(date) {\\n\\t var yearStr = date.getFullYear().toString();\\n\\t var firstYearOfDecade = yearStr.substring(0, yearStr.length - 1) + 0;\\n\\t var lastYearOfDecade = parseInt(firstYearOfDecade, 10) + 10;\\n\\t return firstYearOfDecade + '-' + lastYearOfDecade;\\n\\t },\\n\\t stringifyDayHeader: function stringifyDayHeader(date) {\\n\\t return this.text.months[date.getMonth()] + ' ' + date.getFullYear();\\n\\t },\\n\\t parseMonth: function parseMonth(date) {\\n\\t return this.text.months[date.getMonth()];\\n\\t },\\n\\t stringifyYearHeader: function stringifyYearHeader(date) {\\n\\t return date.getFullYear();\\n\\t },\\n\\t stringify: function stringify(date) {\\n\\t var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.format;\\n\\t\\n\\t if (!date) date = this.parse();\\n\\t if (!date) return '';\\n\\t var year = date.getFullYear();\\n\\t var month = date.getMonth() + 1;\\n\\t var day = date.getDate();\\n\\t var monthName = this.parseMonth(date);\\n\\t\\n\\t return format.replace(/yyyy/g, year).replace(/MMMM/g, monthName).replace(/MMM/g, monthName.substring(0, 3)).replace(/MM/g, ('0' + month).slice(-2)).replace(/dd/g, ('0' + day).slice(-2)).replace(/yy/g, year).replace(/M(?!a)/g, month).replace(/d/g, day);\\n\\t },\\n\\t parse: function parse() {\\n\\t var str = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.value;\\n\\t\\n\\t var date = void 0;\\n\\t if (str.length === 10 && (this.format === 'dd-MM-yyyy' || this.format === 'dd/MM/yyyy')) {\\n\\t date = new Date(str.substring(6, 10), str.substring(3, 5) - 1, str.substring(0, 2));\\n\\t } else {\\n\\t date = new Date(str);\\n\\t }\\n\\t return isNaN(date.getFullYear()) ? new Date() : date;\\n\\t },\\n\\t getDayCount: function getDayCount(year, month) {\\n\\t var dict = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\\n\\t if (month === 1) {\\n\\t if (year % 400 === 0 || year % 4 === 0 && year % 100 !== 0) {\\n\\t return 29;\\n\\t }\\n\\t }\\n\\t return dict[month];\\n\\t },\\n\\t getDateRange: function getDateRange() {\\n\\t this.dateRange = [];\\n\\t this.decadeRange = [];\\n\\t var time = {\\n\\t year: this.currDate.getFullYear(),\\n\\t month: this.currDate.getMonth(),\\n\\t day: this.currDate.getDate()\\n\\t };\\n\\t var yearStr = time.year.toString();\\n\\t var firstYearOfDecade = yearStr.substring(0, yearStr.length - 1) + 0 - 1;\\n\\t for (var i = 0; i < 12; i++) {\\n\\t this.decadeRange.push({\\n\\t text: firstYearOfDecade + i\\n\\t });\\n\\t }\\n\\t\\n\\t var currMonthFirstDay = new Date(time.year, time.month, 1);\\n\\t var firstDayWeek = currMonthFirstDay.getDay() + 1;\\n\\t if (firstDayWeek === 0) {\\n\\t firstDayWeek = 7;\\n\\t }\\n\\t var dayCount = this.getDayCount(time.year, time.month);\\n\\t if (firstDayWeek > 1) {\\n\\t var preMonth = this.getYearMonth(time.year, time.month - 1);\\n\\t var prevMonthDayCount = this.getDayCount(preMonth.year, preMonth.month);\\n\\t for (var _i = 1; _i < firstDayWeek; _i++) {\\n\\t var dayText = prevMonthDayCount - firstDayWeek + _i + 1;\\n\\t var date = new Date(preMonth.year, preMonth.month, dayText);\\n\\t var sclass = 'datepicker-item-gray';\\n\\t if (this.disabledDaysArray.indexOf(date.getDay()) > -1) {\\n\\t sclass = 'datepicker-item-disable';\\n\\t }\\n\\t this.dateRange.push({\\n\\t text: dayText,\\n\\t date: date,\\n\\t sclass: 'datepicker-item-gray'\\n\\t });\\n\\t }\\n\\t }\\n\\t\\n\\t for (var _i2 = 1; _i2 <= dayCount; _i2++) {\\n\\t var _date = new Date(time.year, time.month, _i2);\\n\\t var _sclass = '';\\n\\t if (this.disabledDaysArray.indexOf(_date.getDay()) > -1) {\\n\\t _sclass = 'datepicker-item-disable';\\n\\t }\\n\\t if (_i2 == time.day && _date.getFullYear() == time.year && _date.getMonth() == time.month) {\\n\\t _sclass = 'datepicker-dateRange-item-active';\\n\\t }\\n\\t this.dateRange.push({\\n\\t text: _i2,\\n\\t date: _date,\\n\\t sclass: _sclass\\n\\t });\\n\\t }\\n\\t\\n\\t if (this.dateRange.length < 42) {\\n\\t var nextMonthNeed = 42 - this.dateRange.length;\\n\\t var nextMonth = this.getYearMonth(time.year, time.month + 1);\\n\\t\\n\\t for (var _i3 = 1; _i3 <= nextMonthNeed; _i3++) {\\n\\t var _date2 = new Date(nextMonth.year, nextMonth.month, _i3);\\n\\t var _sclass2 = 'datepicker-item-gray';\\n\\t if (this.disabledDaysArray.indexOf(_date2.getDay()) > -1) {\\n\\t _sclass2 = 'datepicker-item-disable';\\n\\t }\\n\\t this.dateRange.push({\\n\\t text: _i3,\\n\\t date: _date2,\\n\\t sclass: _sclass2\\n\\t });\\n\\t }\\n\\t }\\n\\t }\\n\\t },\\n\\t mounted: function mounted() {\\n\\t var _this = this;\\n\\t\\n\\t var el = this.$el;\\n\\t this._blur = function (e) {\\n\\t if (!el.contains(e.target)) _this.close();\\n\\t };\\n\\t this.$emit('child-created', this);\\n\\t this.currDate = this.parse(this.value) || this.parse(new Date());\\n\\t window.addEventListener('click', this._blur);\\n\\t },\\n\\t beforeDestroy: function beforeDestroy() {\\n\\t window.removeEventListener('click', this._blur);\\n\\t }\\n\\t}; //\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\n/***/ },\\n/* 104 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\\n\\t return _vm._c('div', {\\n\\t staticClass: \\\"datepicker\\\"\\n\\t }, [_vm._c('input', {\\n\\t staticClass: \\\"form-control datepicker-input\\\",\\n\\t class: {\\n\\t 'with-reset-button': _vm.clearButton\\n\\t },\\n\\t style: ({\\n\\t width: _vm.width\\n\\t }),\\n\\t attrs: {\\n\\t \\\"type\\\": \\\"text\\\",\\n\\t \\\"placeholder\\\": _vm.placeholder\\n\\t },\\n\\t domProps: {\\n\\t \\\"value\\\": _vm.value\\n\\t },\\n\\t on: {\\n\\t \\\"click\\\": _vm.inputClick,\\n\\t \\\"input\\\": function($event) {\\n\\t _vm.$emit('input', $event.target.value)\\n\\t }\\n\\t }\\n\\t }), _vm._v(\\\" \\\"), (_vm.clearButton && _vm.value) ? _vm._c('button', {\\n\\t staticClass: \\\"close\\\",\\n\\t attrs: {\\n\\t \\\"type\\\": \\\"button\\\"\\n\\t },\\n\\t on: {\\n\\t \\\"click\\\": function($event) {\\n\\t _vm.$emit('input', '')\\n\\t }\\n\\t }\\n\\t }, [_vm._c('span', [_vm._v(\\\"×\\\")])]) : _vm._e(), _vm._v(\\\" \\\"), _vm._c('div', {\\n\\t directives: [{\\n\\t name: \\\"show\\\",\\n\\t rawName: \\\"v-show\\\",\\n\\t value: (_vm.displayDayView),\\n\\t expression: \\\"displayDayView\\\"\\n\\t }],\\n\\t staticClass: \\\"datepicker-popup\\\"\\n\\t }, [_vm._c('div', {\\n\\t staticClass: \\\"datepicker-inner\\\"\\n\\t }, [_vm._c('div', {\\n\\t staticClass: \\\"datepicker-body\\\"\\n\\t }, [_vm._c('div', {\\n\\t staticClass: \\\"datepicker-ctrl\\\"\\n\\t }, [_vm._c('span', {\\n\\t class: _vm.preBtnClasses,\\n\\t attrs: {\\n\\t \\\"aria-hidden\\\": \\\"true\\\"\\n\\t },\\n\\t on: {\\n\\t \\\"click\\\": function($event) {\\n\\t _vm.preNextMonthClick(0)\\n\\t }\\n\\t }\\n\\t }), _vm._v(\\\" \\\"), _vm._c('span', {\\n\\t class: _vm.nextBtnClasses,\\n\\t attrs: {\\n\\t \\\"aria-hidden\\\": \\\"true\\\"\\n\\t },\\n\\t on: {\\n\\t \\\"click\\\": function($event) {\\n\\t _vm.preNextMonthClick(1)\\n\\t }\\n\\t }\\n\\t }), _vm._v(\\\" \\\"), _vm._c('p', {\\n\\t on: {\\n\\t \\\"click\\\": _vm.switchMonthView\\n\\t }\\n\\t }, [_vm._v(_vm._s(_vm.stringifyDayHeader(_vm.currDate)))])]), _vm._v(\\\" \\\"), _vm._c('div', {\\n\\t staticClass: \\\"datepicker-weekRange\\\"\\n\\t }, _vm._l((_vm.text.daysOfWeek), function(w) {\\n\\t return _vm._c('span', [_vm._v(_vm._s(w))])\\n\\t })), _vm._v(\\\" \\\"), _vm._c('div', {\\n\\t staticClass: \\\"datepicker-dateRange\\\"\\n\\t }, _vm._l((_vm.dateRange), function(d) {\\n\\t return _vm._c('span', {\\n\\t class: d.sclass,\\n\\t on: {\\n\\t \\\"click\\\": function($event) {\\n\\t _vm.daySelect(d)\\n\\t }\\n\\t }\\n\\t }, [_vm._v(_vm._s(d.text))])\\n\\t }))])])]), _vm._v(\\\" \\\"), _vm._c('div', {\\n\\t directives: [{\\n\\t name: \\\"show\\\",\\n\\t rawName: \\\"v-show\\\",\\n\\t value: (_vm.displayMonthView),\\n\\t expression: \\\"displayMonthView\\\"\\n\\t }],\\n\\t staticClass: \\\"datepicker-popup\\\"\\n\\t }, [_vm._c('div', {\\n\\t staticClass: \\\"datepicker-inner\\\"\\n\\t }, [_vm._c('div', {\\n\\t staticClass: \\\"datepicker-body\\\"\\n\\t }, [_vm._c('div', {\\n\\t staticClass: \\\"datepicker-ctrl\\\"\\n\\t }, [_vm._c('span', {\\n\\t class: _vm.preBtnClasses,\\n\\t attrs: {\\n\\t \\\"aria-hidden\\\": \\\"true\\\"\\n\\t },\\n\\t on: {\\n\\t \\\"click\\\": function($event) {\\n\\t _vm.preNextYearClick(0)\\n\\t }\\n\\t }\\n\\t }), _vm._v(\\\" \\\"), _vm._c('span', {\\n\\t class: _vm.nextBtnClasses,\\n\\t attrs: {\\n\\t \\\"aria-hidden\\\": \\\"true\\\"\\n\\t },\\n\\t on: {\\n\\t \\\"click\\\": function($event) {\\n\\t _vm.preNextYearClick(1)\\n\\t }\\n\\t }\\n\\t }), _vm._v(\\\" \\\"), _vm._c('p', {\\n\\t on: {\\n\\t \\\"click\\\": _vm.switchDecadeView\\n\\t }\\n\\t }, [_vm._v(_vm._s(_vm.stringifyYearHeader(_vm.currDate)))])]), _vm._v(\\\" \\\"), _vm._c('div', {\\n\\t staticClass: \\\"datepicker-monthRange\\\"\\n\\t }, [_vm._l((_vm.text.months), function(m, index) {\\n\\t return [_vm._c('span', {\\n\\t class: {\\n\\t 'datepicker-dateRange-item-active':\\n\\t (_vm.text.months[_vm.parse(_vm.value).getMonth()] === m) &&\\n\\t _vm.currDate.getFullYear() === _vm.parse(_vm.value).getFullYear()\\n\\t },\\n\\t on: {\\n\\t \\\"click\\\": function($event) {\\n\\t _vm.monthSelect(index)\\n\\t }\\n\\t }\\n\\t }, [_vm._v(_vm._s(m.substr(0, 3)))])]\\n\\t })], 2)])])]), _vm._v(\\\" \\\"), _vm._c('div', {\\n\\t directives: [{\\n\\t name: \\\"show\\\",\\n\\t rawName: \\\"v-show\\\",\\n\\t value: (_vm.displayYearView),\\n\\t expression: \\\"displayYearView\\\"\\n\\t }],\\n\\t staticClass: \\\"datepicker-popup\\\"\\n\\t }, [_vm._c('div', {\\n\\t staticClass: \\\"datepicker-inner\\\"\\n\\t }, [_vm._c('div', {\\n\\t staticClass: \\\"datepicker-body\\\"\\n\\t }, [_vm._c('div', {\\n\\t staticClass: \\\"datepicker-ctrl\\\"\\n\\t }, [_vm._c('span', {\\n\\t class: _vm.preBtnClasses,\\n\\t attrs: {\\n\\t \\\"aria-hidden\\\": \\\"true\\\"\\n\\t },\\n\\t on: {\\n\\t \\\"click\\\": function($event) {\\n\\t _vm.preNextDecadeClick(0)\\n\\t }\\n\\t }\\n\\t }), _vm._v(\\\" \\\"), _vm._c('span', {\\n\\t class: _vm.nextBtnClasses,\\n\\t attrs: {\\n\\t \\\"aria-hidden\\\": \\\"true\\\"\\n\\t },\\n\\t on: {\\n\\t \\\"click\\\": function($event) {\\n\\t _vm.preNextDecadeClick(1)\\n\\t }\\n\\t }\\n\\t }), _vm._v(\\\" \\\"), _vm._c('p', [_vm._v(_vm._s(_vm.stringifyDecadeHeader(_vm.currDate)))])]), _vm._v(\\\" \\\"), _vm._c('div', {\\n\\t staticClass: \\\"datepicker-monthRange decadeRange\\\"\\n\\t }, [_vm._l((_vm.decadeRange), function(decade) {\\n\\t return [_vm._c('span', {\\n\\t class: {\\n\\t 'datepicker-dateRange-item-active': _vm.parse(this.value).getFullYear() === decade.text\\n\\t },\\n\\t on: {\\n\\t \\\"click\\\": function($event) {\\n\\t $event.stopPropagation();\\n\\t _vm.yearSelect(decade.text)\\n\\t }\\n\\t }\\n\\t }, [_vm._v(_vm._s(decade.text))])]\\n\\t })], 2)])])])])\\n\\t},staticRenderFns: []}\\n\\tif (false) {\\n\\t module.hot.accept()\\n\\t if (module.hot.data) {\\n\\t require(\\\"vue-hot-reload-api\\\").rerender(\\\"data-v-477b8e5d\\\", module.exports)\\n\\t }\\n\\t}\\n\\n/***/ },\\n/* 105 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tvar __vue_exports__, __vue_options__\\n\\tvar __vue_styles__ = {}\\n\\t\\n\\t/* script */\\n\\t__vue_exports__ = __webpack_require__(106)\\n\\t\\n\\t/* template */\\n\\tvar __vue_template__ = __webpack_require__(107)\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\\n\\tif (\\n\\t typeof __vue_exports__.default === \\\"object\\\" ||\\n\\t typeof __vue_exports__.default === \\\"function\\\"\\n\\t) {\\n\\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \\\"default\\\" && key !== \\\"__esModule\\\" })) {console.error(\\\"named exports are not supported in *.vue files.\\\")}\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__.default\\n\\t}\\n\\tif (typeof __vue_options__ === \\\"function\\\") {\\n\\t __vue_options__ = __vue_options__.options\\n\\t}\\n\\t__vue_options__.__file = \\\"C:\\\\\\\\laragon\\\\\\\\www\\\\\\\\vue-strap\\\\\\\\src\\\\\\\\Dropdown.vue\\\"\\n\\t__vue_options__.render = __vue_template__.render\\n\\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\\n\\t\\n\\t/* hot reload */\\n\\tif (false) {(function () {\\n\\t var hotAPI = require(\\\"vue-hot-reload-api\\\")\\n\\t hotAPI.install(require(\\\"vue\\\"), false)\\n\\t if (!hotAPI.compatible) return\\n\\t module.hot.accept()\\n\\t if (!module.hot.data) {\\n\\t hotAPI.createRecord(\\\"data-v-39be1072\\\", __vue_options__)\\n\\t } else {\\n\\t hotAPI.reload(\\\"data-v-39be1072\\\", __vue_options__)\\n\\t }\\n\\t})()}\\n\\tif (__vue_options__.functional) {console.error(\\\"[vue-loader] Dropdown.vue: functional components are not supported and should be defined in plain js files using render functions.\\\")}\\n\\t\\n\\tmodule.exports = __vue_exports__\\n\\n\\n/***/ },\\n/* 106 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t'use strict';\\n\\t\\n\\tObject.defineProperty(exports, \\\"__esModule\\\", {\\n\\t value: true\\n\\t});\\n\\t\\n\\tvar _NodeList = __webpack_require__(1);\\n\\t\\n\\tvar _NodeList2 = _interopRequireDefault(_NodeList);\\n\\t\\n\\tvar _ClickOutside = __webpack_require__(66);\\n\\t\\n\\tvar _ClickOutside2 = _interopRequireDefault(_ClickOutside);\\n\\t\\n\\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\\n\\t\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t\\n\\texports.default = {\\n\\t directives: {\\n\\t ClickOutside: _ClickOutside2.default\\n\\t },\\n\\t props: {\\n\\t disabled: { type: Boolean, default: false },\\n\\t size: { type: String, default: null },\\n\\t text: { type: String, default: null },\\n\\t type: { type: String, default: 'default' },\\n\\t value: { type: Boolean, default: false }\\n\\t },\\n\\t data: function data() {\\n\\t var show = this.value;\\n\\t return { show: show };\\n\\t },\\n\\t\\n\\t watch: {\\n\\t show: function show(val) {\\n\\t this.$emit('input', val);\\n\\t },\\n\\t value: function value(val) {\\n\\t this.show = val;\\n\\t }\\n\\t },\\n\\t computed: {\\n\\t buttonSize: function buttonSize() {\\n\\t return ~['lg', 'sm', 'xs'].indexOf(this.size) ? 'btn-' + this.size : '';\\n\\t },\\n\\t inInput: function inInput() {\\n\\t return this.$parent._input;\\n\\t },\\n\\t isLi: function isLi() {\\n\\t return this.$parent._isTabs || this.$parent._navbar || this.$parent.menu;\\n\\t },\\n\\t menu: function menu() {\\n\\t return !this.$parent || this.$parent.navbar;\\n\\t },\\n\\t slots: function slots() {\\n\\t return this._slotContents;\\n\\t },\\n\\t submenu: function submenu() {\\n\\t return this.$parent && (this.$parent.menu || this.$parent.submenu);\\n\\t }\\n\\t },\\n\\t methods: {\\n\\t blur: function blur() {\\n\\t this.show = false;\\n\\t },\\n\\t toggle: function toggle() {\\n\\t if (!this.disabled) {\\n\\t this.show = !this.show;\\n\\t }\\n\\t }\\n\\t },\\n\\t mounted: function mounted() {\\n\\t var _this = this;\\n\\t\\n\\t (0, _NodeList2.default)('ul', this.$el).on('click', 'li>a', function (e) {\\n\\t _this.show = false;\\n\\t });\\n\\t },\\n\\t beforeDestroy: function beforeDestroy() {\\n\\t (0, _NodeList2.default)('ul', this.$el).off();\\n\\t }\\n\\t};\\n\\n/***/ },\\n/* 107 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\\n\\t return _vm._c(_vm.isLi ? 'li' : 'div', {\\n\\t directives: [{\\n\\t name: \\\"click-outside\\\",\\n\\t rawName: \\\"v-click-outside\\\",\\n\\t value: (_vm.blur),\\n\\t expression: \\\"blur\\\"\\n\\t }],\\n\\t tag: \\\"div\\\",\\n\\t class: [{\\n\\t open: _vm.show,\\n\\t disabled: _vm.disabled,\\n\\t dropdown: _vm.isLi,\\n\\t 'input-group-btn': _vm.inInput,\\n\\t 'btn-group': !_vm.isLi && !_vm.inInput\\n\\t }]\\n\\t }, [_vm._t(\\\"before\\\"), _vm._v(\\\" \\\"), (_vm.isLi) ? _vm._c('a', {\\n\\t class: ['dropdown-toggle', _vm.buttonSize, {\\n\\t disabled: _vm.disabled\\n\\t }],\\n\\t attrs: {\\n\\t \\\"role\\\": \\\"button\\\"\\n\\t },\\n\\t on: {\\n\\t \\\"keyup\\\": function($event) {\\n\\t if (_vm._k($event.keyCode, \\\"esc\\\", 27)) { return; }\\n\\t _vm.show = false\\n\\t },\\n\\t \\\"click\\\": function($event) {\\n\\t $event.preventDefault();\\n\\t _vm.toggle($event)\\n\\t }\\n\\t }\\n\\t }, [_vm._t(\\\"button\\\", [_vm._v(_vm._s(_vm.text))]), _vm._v(\\\" \\\"), _vm._c('span', {\\n\\t staticClass: \\\"caret\\\"\\n\\t })], 2) : _vm._c('button', {\\n\\t class: ['btn btn-' + _vm.type, _vm.buttonSize, 'dropdown-toggle'],\\n\\t attrs: {\\n\\t \\\"type\\\": \\\"button\\\",\\n\\t \\\"disabled\\\": _vm.disabled\\n\\t },\\n\\t on: {\\n\\t \\\"keyup\\\": function($event) {\\n\\t if (_vm._k($event.keyCode, \\\"esc\\\", 27)) { return; }\\n\\t _vm.show = false\\n\\t },\\n\\t \\\"click\\\": function($event) {\\n\\t $event.preventDefault();\\n\\t _vm.toggle($event)\\n\\t }\\n\\t }\\n\\t }, [_vm._t(\\\"button\\\", [_vm._v(_vm._s(_vm.text))]), _vm._v(\\\" \\\"), _vm._c('span', {\\n\\t staticClass: \\\"caret\\\"\\n\\t })], 2), _vm._v(\\\" \\\"), _vm._t(\\\"dropdown-menu\\\", [_vm._c('ul', {\\n\\t staticClass: \\\"dropdown-menu\\\"\\n\\t }, [_vm._t(\\\"default\\\")], 2)])], 2)\\n\\t},staticRenderFns: []}\\n\\tif (false) {\\n\\t module.hot.accept()\\n\\t if (module.hot.data) {\\n\\t require(\\\"vue-hot-reload-api\\\").rerender(\\\"data-v-39be1072\\\", module.exports)\\n\\t }\\n\\t}\\n\\n/***/ },\\n/* 108 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tvar __vue_exports__, __vue_options__\\n\\tvar __vue_styles__ = {}\\n\\t\\n\\t/* script */\\n\\t__vue_exports__ = __webpack_require__(109)\\n\\t\\n\\t/* template */\\n\\tvar __vue_template__ = __webpack_require__(110)\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\\n\\tif (\\n\\t typeof __vue_exports__.default === \\\"object\\\" ||\\n\\t typeof __vue_exports__.default === \\\"function\\\"\\n\\t) {\\n\\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \\\"default\\\" && key !== \\\"__esModule\\\" })) {console.error(\\\"named exports are not supported in *.vue files.\\\")}\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__.default\\n\\t}\\n\\tif (typeof __vue_options__ === \\\"function\\\") {\\n\\t __vue_options__ = __vue_options__.options\\n\\t}\\n\\t__vue_options__.__file = \\\"C:\\\\\\\\laragon\\\\\\\\www\\\\\\\\vue-strap\\\\\\\\src\\\\\\\\FormGroup.vue\\\"\\n\\t__vue_options__.render = __vue_template__.render\\n\\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\\n\\t\\n\\t/* hot reload */\\n\\tif (false) {(function () {\\n\\t var hotAPI = require(\\\"vue-hot-reload-api\\\")\\n\\t hotAPI.install(require(\\\"vue\\\"), false)\\n\\t if (!hotAPI.compatible) return\\n\\t module.hot.accept()\\n\\t if (!module.hot.data) {\\n\\t hotAPI.createRecord(\\\"data-v-79eb400a\\\", __vue_options__)\\n\\t } else {\\n\\t hotAPI.reload(\\\"data-v-79eb400a\\\", __vue_options__)\\n\\t }\\n\\t})()}\\n\\tif (__vue_options__.functional) {console.error(\\\"[vue-loader] FormGroup.vue: functional components are not supported and should be defined in plain js files using render functions.\\\")}\\n\\t\\n\\tmodule.exports = __vue_exports__\\n\\n\\n/***/ },\\n/* 109 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t'use strict';\\n\\t\\n\\tObject.defineProperty(exports, \\\"__esModule\\\", {\\n\\t value: true\\n\\t});\\n\\t\\n\\tvar _NodeList = __webpack_require__(1);\\n\\t\\n\\tvar _NodeList2 = _interopRequireDefault(_NodeList);\\n\\t\\n\\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\\n\\t\\n\\t// let coerce = {\\n\\t// enterSubmit: 'boolean',\\n\\t// icon: 'boolean'\\n\\t// }\\n\\t\\n\\texports.default = {\\n\\t props: {\\n\\t enterSubmit: {\\n\\t type: Boolean,\\n\\t default: false\\n\\t },\\n\\t icon: {\\n\\t type: Boolean,\\n\\t default: false\\n\\t },\\n\\t lang: {\\n\\t type: String,\\n\\t default: navigator.language\\n\\t }\\n\\t },\\n\\t data: function data() {\\n\\t return {\\n\\t children: [],\\n\\t valid: null,\\n\\t timeout: null\\n\\t };\\n\\t },\\n\\t\\n\\t watch: {\\n\\t valid: function valid(val, old) {\\n\\t this.$emit('isvalid', val);\\n\\t this.$emit(!val ? 'invalid' : 'valid');\\n\\t if (val !== old && this._parent) this._parent.validate();\\n\\t }\\n\\t },\\n\\t methods: {\\n\\t validate: function validate() {\\n\\t var valid = true;\\n\\t this.children.some(function (el) {\\n\\t var v = el.validate ? el.validate() : el.valid !== undefined ? el.valid : el.required && !~['', null, undefined].indexOf(el.value);\\n\\t if (!v) valid = false;\\n\\t return !valid;\\n\\t });\\n\\t this.valid = valid;\\n\\t return valid === true;\\n\\t }\\n\\t },\\n\\t created: function created() {\\n\\t this._formGroup = true;\\n\\t var parent = this.$parent;\\n\\t while (parent && !parent._formGroup) {\\n\\t parent = parent.$parent;\\n\\t }\\n\\t if (parent && parent._formGroup) {\\n\\t parent.children.push(this);\\n\\t this._parent = parent;\\n\\t }\\n\\t },\\n\\t mounted: function mounted() {\\n\\t this.validate();\\n\\t },\\n\\t beforeDestroy: function beforeDestroy() {\\n\\t if (this._parent) {\\n\\t var index = this._parent.children.indexOf(this);\\n\\t this._parent.children.splice(index, 1);\\n\\t }\\n\\t }\\n\\t}; //\\n\\t//\\n\\n/***/ },\\n/* 110 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\\n\\t return _vm._c('span', [_vm._t(\\\"default\\\")], 2)\\n\\t},staticRenderFns: []}\\n\\tif (false) {\\n\\t module.hot.accept()\\n\\t if (module.hot.data) {\\n\\t require(\\\"vue-hot-reload-api\\\").rerender(\\\"data-v-79eb400a\\\", module.exports)\\n\\t }\\n\\t}\\n\\n/***/ },\\n/* 111 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tvar __vue_exports__, __vue_options__\\n\\tvar __vue_styles__ = {}\\n\\t\\n\\t/* script */\\n\\t__vue_exports__ = __webpack_require__(112)\\n\\t\\n\\t/* template */\\n\\tvar __vue_template__ = __webpack_require__(113)\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\\n\\tif (\\n\\t typeof __vue_exports__.default === \\\"object\\\" ||\\n\\t typeof __vue_exports__.default === \\\"function\\\"\\n\\t) {\\n\\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \\\"default\\\" && key !== \\\"__esModule\\\" })) {console.error(\\\"named exports are not supported in *.vue files.\\\")}\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__.default\\n\\t}\\n\\tif (typeof __vue_options__ === \\\"function\\\") {\\n\\t __vue_options__ = __vue_options__.options\\n\\t}\\n\\t__vue_options__.__file = \\\"C:\\\\\\\\laragon\\\\\\\\www\\\\\\\\vue-strap\\\\\\\\src\\\\\\\\FormValidator.vue\\\"\\n\\t__vue_options__.render = __vue_template__.render\\n\\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\\n\\t\\n\\t/* hot reload */\\n\\tif (false) {(function () {\\n\\t var hotAPI = require(\\\"vue-hot-reload-api\\\")\\n\\t hotAPI.install(require(\\\"vue\\\"), false)\\n\\t if (!hotAPI.compatible) return\\n\\t module.hot.accept()\\n\\t if (!module.hot.data) {\\n\\t hotAPI.createRecord(\\\"data-v-b9f57c46\\\", __vue_options__)\\n\\t } else {\\n\\t hotAPI.reload(\\\"data-v-b9f57c46\\\", __vue_options__)\\n\\t }\\n\\t})()}\\n\\tif (__vue_options__.functional) {console.error(\\\"[vue-loader] FormValidator.vue: functional components are not supported and should be defined in plain js files using render functions.\\\")}\\n\\t\\n\\tmodule.exports = __vue_exports__\\n\\n\\n/***/ },\\n/* 112 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t'use strict';\\n\\t\\n\\tObject.defineProperty(exports, \\\"__esModule\\\", {\\n\\t value: true\\n\\t});\\n\\t\\n\\tvar _NodeList = __webpack_require__(1);\\n\\t\\n\\tvar _NodeList2 = _interopRequireDefault(_NodeList);\\n\\t\\n\\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\\n\\t\\n\\texports.default = {\\n\\t props: {\\n\\t enterSubmit: { type: Boolean, default: false },\\n\\t icon: { type: Boolean, default: false },\\n\\t lang: { type: String, default: navigator.language },\\n\\t value: null\\n\\t },\\n\\t data: function data() {\\n\\t return {\\n\\t children: [],\\n\\t valid: null,\\n\\t timeout: null\\n\\t };\\n\\t },\\n\\t\\n\\t watch: {\\n\\t valid: function valid(val, old) {\\n\\t this.$emit('isvalid', val);\\n\\t this.$emit('input', val);\\n\\t this.$emit(!val ? 'invalid' : 'valid');\\n\\t if (val !== old && this._parent) this._parent.validate();\\n\\t }\\n\\t },\\n\\t methods: {\\n\\t validate: function validate() {\\n\\t var invalid = !this.children.every(function (el) {\\n\\t return el.validate ? el.validate() : el.valid !== undefined ? el.valid : el.required && !~['', null, undefined].indexOf(el.value);\\n\\t });\\n\\t this.valid = !invalid;\\n\\t return !invalid;\\n\\t }\\n\\t },\\n\\t created: function created() {\\n\\t this._formValidator = true;\\n\\t var parent = this.$parent;\\n\\t while (parent && !parent._formValidator) {\\n\\t parent = parent.$parent;\\n\\t }\\n\\t if (parent && parent._formValidator) {\\n\\t parent.children.push(this);\\n\\t this._parent = parent;\\n\\t }\\n\\t },\\n\\t mounted: function mounted() {\\n\\t this.validate();\\n\\t },\\n\\t beforeDestroy: function beforeDestroy() {\\n\\t if (this._parent) {\\n\\t var index = this._parent.children.indexOf(this);\\n\\t this._parent.children.splice(index, 1);\\n\\t }\\n\\t }\\n\\t}; //\\n\\t//\\n\\n/***/ },\\n/* 113 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\\n\\t return _vm._c('span', [_vm._t(\\\"default\\\")], 2)\\n\\t},staticRenderFns: []}\\n\\tif (false) {\\n\\t module.hot.accept()\\n\\t if (module.hot.data) {\\n\\t require(\\\"vue-hot-reload-api\\\").rerender(\\\"data-v-b9f57c46\\\", module.exports)\\n\\t }\\n\\t}\\n\\n/***/ },\\n/* 114 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tvar __vue_exports__, __vue_options__\\n\\tvar __vue_styles__ = {}\\n\\t\\n\\t/* styles */\\n\\t__webpack_require__(115)\\n\\t\\n\\t/* script */\\n\\t__vue_exports__ = __webpack_require__(117)\\n\\t\\n\\t/* template */\\n\\tvar __vue_template__ = __webpack_require__(118)\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\\n\\tif (\\n\\t typeof __vue_exports__.default === \\\"object\\\" ||\\n\\t typeof __vue_exports__.default === \\\"function\\\"\\n\\t) {\\n\\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \\\"default\\\" && key !== \\\"__esModule\\\" })) {console.error(\\\"named exports are not supported in *.vue files.\\\")}\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__.default\\n\\t}\\n\\tif (typeof __vue_options__ === \\\"function\\\") {\\n\\t __vue_options__ = __vue_options__.options\\n\\t}\\n\\t__vue_options__.__file = \\\"C:\\\\\\\\laragon\\\\\\\\www\\\\\\\\vue-strap\\\\\\\\src\\\\\\\\Input.vue\\\"\\n\\t__vue_options__.render = __vue_template__.render\\n\\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\\n\\t__vue_options__._scopeId = \\\"data-v-652ad7b9\\\"\\n\\t\\n\\t/* hot reload */\\n\\tif (false) {(function () {\\n\\t var hotAPI = require(\\\"vue-hot-reload-api\\\")\\n\\t hotAPI.install(require(\\\"vue\\\"), false)\\n\\t if (!hotAPI.compatible) return\\n\\t module.hot.accept()\\n\\t if (!module.hot.data) {\\n\\t hotAPI.createRecord(\\\"data-v-652ad7b9\\\", __vue_options__)\\n\\t } else {\\n\\t hotAPI.reload(\\\"data-v-652ad7b9\\\", __vue_options__)\\n\\t }\\n\\t})()}\\n\\tif (__vue_options__.functional) {console.error(\\\"[vue-loader] Input.vue: functional components are not supported and should be defined in plain js files using render functions.\\\")}\\n\\t\\n\\tmodule.exports = __vue_exports__\\n\\n\\n/***/ },\\n/* 115 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t// style-loader: Adds some css to the DOM by adding a \\\\r\\\\n\\\"],\\\"sourceRoot\\\":\\\"webpack://\\\"}]);\\n\\t\\n\\t// exports\\n\\n\\n/***/ },\\n/* 117 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t'use strict';\\n\\t\\n\\tObject.defineProperty(exports, \\\"__esModule\\\", {\\n\\t value: true\\n\\t});\\n\\t\\n\\tvar _utils = __webpack_require__(65);\\n\\t\\n\\tvar _NodeList = __webpack_require__(1);\\n\\t\\n\\tvar _NodeList2 = _interopRequireDefault(_NodeList);\\n\\t\\n\\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\\n\\t\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t\\n\\tvar DELAY = 300;\\n\\t\\n\\texports.default = {\\n\\t props: {\\n\\t clearButton: { type: Boolean, default: false },\\n\\t cols: { type: Number, default: null },\\n\\t datalist: { type: Array, default: null },\\n\\t disabled: { type: Boolean, default: false },\\n\\t enterSubmit: { type: Boolean, default: false },\\n\\t error: { type: String, default: null },\\n\\t help: { type: String, default: null },\\n\\t hideHelp: { type: Boolean, default: true },\\n\\t icon: { type: Boolean, default: false },\\n\\t label: { type: String, default: null },\\n\\t lang: { type: String, default: navigator.language },\\n\\t mask: null,\\n\\t maskDelay: { type: Number, default: 100 },\\n\\t match: { type: String, default: null },\\n\\t max: { type: String, default: null },\\n\\t maxlength: { type: Number, default: null },\\n\\t min: { type: String, default: null },\\n\\t minlength: { type: Number, default: 0 },\\n\\t name: { type: String, default: null },\\n\\t pattern: { default: null },\\n\\t placeholder: { type: String, default: null },\\n\\t readonly: { type: Boolean, default: false },\\n\\t required: { type: Boolean, default: false },\\n\\t rows: { type: Number, default: 3 },\\n\\t step: { type: Number, default: null },\\n\\t type: { type: String, default: 'text' },\\n\\t url: { type: String, default: null },\\n\\t urlMap: { type: Function, default: null },\\n\\t validationDelay: { type: Number, default: 250 },\\n\\t value: { default: null }\\n\\t },\\n\\t data: function data() {\\n\\t var val = this.value;\\n\\t return {\\n\\t options: this.datalist,\\n\\t val: val,\\n\\t valid: null,\\n\\t timeout: null\\n\\t };\\n\\t },\\n\\t\\n\\t computed: {\\n\\t canValidate: function canValidate() {\\n\\t return !this.disabled && !this.readonly && (this.required || this.regex || this.nativeValidate || this.match !== null);\\n\\t },\\n\\t errorText: function errorText() {\\n\\t var value = this.value;\\n\\t var error = [this.error];\\n\\t if (!value && this.required) error.push('(' + this.text.required.toLowerCase() + ')');\\n\\t if (value && value.length < this.minlength) error.push('(' + this.text.minLength.toLowerCase() + ': ' + this.minlength + ')');\\n\\t return error.join(' ');\\n\\t },\\n\\t id_datalist: function id_datalist() {\\n\\t if (this.type !== 'textarea' && this.datalist instanceof Array) {\\n\\t if (!this._id_datalist) {\\n\\t if (!this.$root.id_datalist) {\\n\\t this.$root.id_datalist = 0;\\n\\t }\\n\\t this._id_datalist = 'input-datalist' + this.$root.id_datalist++;\\n\\t }\\n\\t return this._id_datalist;\\n\\t }\\n\\t return null;\\n\\t },\\n\\t input: function input() {\\n\\t return this.$refs.input;\\n\\t },\\n\\t nativeValidate: function nativeValidate() {\\n\\t return (this.input || {}).checkValidity && (~['url', 'email'].indexOf(this.type.toLowerCase()) || this.min || this.max);\\n\\t },\\n\\t regex: function regex() {\\n\\t return _utils.coerce.pattern(this.pattern);\\n\\t },\\n\\t showError: function showError() {\\n\\t return this.error && this.valid === false;\\n\\t },\\n\\t showHelp: function showHelp() {\\n\\t return this.help && (!this.showError || !this.hideHelp);\\n\\t },\\n\\t text: function text() {\\n\\t return (0, _utils.translations)(this.lang);\\n\\t },\\n\\t title: function title() {\\n\\t return this.errorText || this.help || '';\\n\\t }\\n\\t },\\n\\t watch: {\\n\\t datalist: function datalist(val, old) {\\n\\t if (val !== old && val instanceof Array) {\\n\\t this.options = val;\\n\\t }\\n\\t },\\n\\t match: function match(val) {\\n\\t this.eval();\\n\\t },\\n\\t options: function options(val, old) {\\n\\t if (val !== old) this.$emit('options', val);\\n\\t },\\n\\t url: function url(val) {\\n\\t this._url();\\n\\t },\\n\\t val: function val(_val, old) {\\n\\t var _this = this;\\n\\t\\n\\t this.$emit('input', _val);\\n\\t if (_val !== old) {\\n\\t if (this.mask instanceof Function) {\\n\\t _val = this.mask(_val || '');\\n\\t if (this.val !== _val) {\\n\\t if (this._timeout.mask) clearTimeout(this._timeout.mask);\\n\\t this._timeout.mask = setTimeout(function () {\\n\\t _this.val = _val;\\n\\t }, isNaN(this.maskDelay) ? 0 : this.maskDelay);\\n\\t }\\n\\t }\\n\\t this.eval();\\n\\t }\\n\\t },\\n\\t valid: function valid(val, old) {\\n\\t this.$emit('isvalid', val);\\n\\t this.$emit(!val ? 'invalid' : 'valid');\\n\\t if (this._parent) this._parent.validate();\\n\\t },\\n\\t value: function value(val) {\\n\\t if (this.val !== val) {\\n\\t this.val = val;\\n\\t }\\n\\t }\\n\\t },\\n\\t methods: {\\n\\t attr: function attr(value) {\\n\\t return ~['', null, undefined].indexOf(value) || value instanceof Function ? null : value;\\n\\t },\\n\\t emit: function emit(e) {\\n\\t this.$emit(e.type, e.type == 'input' ? e.target.value : e);\\n\\t if (e.type === 'blur' && this.canValidate) {\\n\\t this.valid = this.validate();\\n\\t }\\n\\t },\\n\\t eval: function _eval() {\\n\\t var _this2 = this;\\n\\t\\n\\t if (this._timeout.eval) clearTimeout(this._timeout.eval);\\n\\t if (!this.canValidate) {\\n\\t this.valid = true;\\n\\t } else {\\n\\t this._timeout.eval = setTimeout(function () {\\n\\t _this2.valid = _this2.validate();\\n\\t _this2._timeout.eval = null;\\n\\t }, this.validationDelay);\\n\\t }\\n\\t },\\n\\t focus: function focus() {\\n\\t this.input.focus();\\n\\t },\\n\\t submit: function submit() {\\n\\t if (this.$parent._formValidator) {\\n\\t return this.$parent.validate();\\n\\t }\\n\\t if (this.input.form) {\\n\\t var invalids = (0, _NodeList2.default)('.form-group.validate:not(.has-success)', this.input.form);\\n\\t if (invalids.length) {\\n\\t invalids.find('input,textarea,select')[0].focus();\\n\\t } else {\\n\\t this.input.form.submit();\\n\\t }\\n\\t }\\n\\t },\\n\\t validate: function validate() {\\n\\t if (!this.canValidate) {\\n\\t return true;\\n\\t }\\n\\t var value = (this.val || '').trim();\\n\\t if (!value) {\\n\\t return !this.required;\\n\\t }\\n\\t if (this.match !== null) {\\n\\t return this.match === value;\\n\\t }\\n\\t if (value.length < this.minlength) {\\n\\t return false;\\n\\t }\\n\\t if (this.nativeValidate && !this.input.checkValidity()) {\\n\\t return false;\\n\\t }\\n\\t if (this.regex) {\\n\\t if (!(this.regex instanceof Function ? this.regex(this.value) : this.regex.test(this.value))) {\\n\\t return false;\\n\\t }\\n\\t }\\n\\t return true;\\n\\t },\\n\\t reset: function reset() {\\n\\t this.value = '';\\n\\t this.valid = null;\\n\\t if (this._timeout.mask) clearTimeout(this._timeout.mask);\\n\\t if (this._timeout.eval) clearTimeout(this._timeout.eval);\\n\\t }\\n\\t },\\n\\t created: function created() {\\n\\t this._input = true;\\n\\t this._timeout = {};\\n\\t var parent = this.$parent;\\n\\t while (parent && !parent._formValidator) {\\n\\t parent = parent.$parent;\\n\\t }\\n\\t if (parent && parent._formValidator) {\\n\\t parent.children.push(this);\\n\\t this._parent = parent;\\n\\t }\\n\\t this._url = (0, _utils.delayer)(function () {\\n\\t var _this3 = this;\\n\\t\\n\\t if (!this.url || !this.$http || this._loading) {\\n\\t return;\\n\\t }\\n\\t this._loading = true;\\n\\t this.$http.get(this.url).then(function (response) {\\n\\t var data = response.data instanceof Array ? response.data : [];\\n\\t try {\\n\\t data = JSON.parse(data);\\n\\t } catch (e) {}\\n\\t if (_this3.urlMap) {\\n\\t data = data.map(_this3.urlMap);\\n\\t }\\n\\t _this3.options = data;\\n\\t _this3.loading = false;\\n\\t }, function (response) {\\n\\t _this3.loading = false;\\n\\t });\\n\\t }, DELAY);\\n\\t if (this.url) this._url();\\n\\t },\\n\\t mounted: function mounted() {\\n\\t // $(this.input).on('focus', e => { this.$emit('focus', e) }).on('blur', e => {\\n\\t // if (this.canValidate) { this.valid = this.validate() }\\n\\t // this.$emit('blur', e)\\n\\t // })\\n\\t },\\n\\t beforeDestroy: function beforeDestroy() {\\n\\t // $(this.input).off()\\n\\t if (this._parent) {\\n\\t var index = this._parent.children.indexOf(this);\\n\\t this._parent.children.splice(index, 1);\\n\\t }\\n\\t }\\n\\t};\\n\\n/***/ },\\n/* 118 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\\n\\t return _vm._c('div', {\\n\\t staticClass: \\\"form-group\\\",\\n\\t class: {\\n\\t validate: _vm.canValidate, 'has-feedback': _vm.icon, 'has-error': _vm.canValidate && _vm.valid === false, 'has-success': _vm.canValidate && _vm.valid\\n\\t }\\n\\t }, [_vm._t(\\\"label\\\", [(_vm.label) ? _vm._c('label', {\\n\\t staticClass: \\\"control-label\\\",\\n\\t on: {\\n\\t \\\"click\\\": _vm.focus\\n\\t }\\n\\t }, [_vm._v(_vm._s(_vm.label))]) : _vm._e()]), _vm._v(\\\" \\\"), (_vm.$slots.before || _vm.$slots.after) ? _vm._c('div', {\\n\\t staticClass: \\\"input-group\\\"\\n\\t }, [_vm._t(\\\"before\\\"), _vm._v(\\\" \\\"), _vm._c(_vm.type == 'textarea' ? _vm.type : 'input', {\\n\\t directives: [{\\n\\t name: \\\"model\\\",\\n\\t rawName: \\\"v-model\\\",\\n\\t value: (_vm.val),\\n\\t expression: \\\"val\\\"\\n\\t }],\\n\\t ref: \\\"input\\\",\\n\\t tag: \\\"textarea\\\",\\n\\t staticClass: \\\"form-control\\\",\\n\\t attrs: {\\n\\t \\\"cols\\\": _vm.cols,\\n\\t \\\"disabled\\\": _vm.disabled,\\n\\t \\\"list\\\": _vm.id_datalist,\\n\\t \\\"max\\\": _vm.attr(_vm.max),\\n\\t \\\"maxlength\\\": _vm.maxlength,\\n\\t \\\"min\\\": _vm.attr(_vm.min),\\n\\t \\\"name\\\": _vm.name,\\n\\t \\\"placeholder\\\": _vm.placeholder,\\n\\t \\\"readonly\\\": _vm.readonly,\\n\\t \\\"required\\\": _vm.required,\\n\\t \\\"rows\\\": _vm.rows,\\n\\t \\\"step\\\": _vm.step,\\n\\t \\\"title\\\": _vm.attr(_vm.title),\\n\\t \\\"type\\\": _vm.type == 'textarea' ? null : _vm.type\\n\\t },\\n\\t domProps: {\\n\\t \\\"value\\\": _vm._s(_vm.val)\\n\\t },\\n\\t on: {\\n\\t \\\"blur\\\": _vm.emit,\\n\\t \\\"focus\\\": _vm.emit,\\n\\t \\\"input\\\": [function($event) {\\n\\t if ($event.target.composing) { return; }\\n\\t _vm.val = $event.target.value\\n\\t }, _vm.emit],\\n\\t \\\"keyup\\\": function($event) {\\n\\t if (_vm._k($event.keyCode, \\\"enter\\\", 13)) { return; }\\n\\t _vm.type != 'textarea' && _vm.enterSubmit && _vm.submit()\\n\\t }\\n\\t }\\n\\t }), _vm._v(\\\" \\\"), (_vm.clearButton && _vm.value) ? _vm._c('div', {\\n\\t class: {\\n\\t icon: _vm.icon\\n\\t }\\n\\t }, [_vm._c('span', {\\n\\t staticClass: \\\"close\\\",\\n\\t on: {\\n\\t \\\"click\\\": function($event) {\\n\\t _vm.value = ''\\n\\t }\\n\\t }\\n\\t }, [_vm._v(\\\"×\\\")])]) : _vm._e(), _vm._v(\\\" \\\"), (_vm.icon) ? _vm._c('div', {\\n\\t staticClass: \\\"icon\\\"\\n\\t }, [(_vm.icon && _vm.valid !== null) ? _vm._c('span', {\\n\\t class: ['form-control-feedback glyphicon', 'glyphicon-' + (_vm.valid ? 'ok' : 'remove')],\\n\\t attrs: {\\n\\t \\\"aria-hidden\\\": \\\"true\\\"\\n\\t }\\n\\t }) : _vm._e()]) : _vm._e(), _vm._v(\\\" \\\"), _vm._t(\\\"after\\\")], 2) : [_vm._c(_vm.type == 'textarea' ? _vm.type : 'input', {\\n\\t directives: [{\\n\\t name: \\\"model\\\",\\n\\t rawName: \\\"v-model\\\",\\n\\t value: (_vm.val),\\n\\t expression: \\\"val\\\"\\n\\t }],\\n\\t ref: \\\"input\\\",\\n\\t tag: \\\"textarea\\\",\\n\\t staticClass: \\\"form-control\\\",\\n\\t attrs: {\\n\\t \\\"cols\\\": _vm.cols,\\n\\t \\\"disabled\\\": _vm.disabled,\\n\\t \\\"list\\\": _vm.id_datalist,\\n\\t \\\"max\\\": _vm.attr(_vm.max),\\n\\t \\\"maxlength\\\": _vm.maxlength,\\n\\t \\\"min\\\": _vm.attr(_vm.min),\\n\\t \\\"name\\\": _vm.name,\\n\\t \\\"placeholder\\\": _vm.placeholder,\\n\\t \\\"readonly\\\": _vm.readonly,\\n\\t \\\"required\\\": _vm.required,\\n\\t \\\"rows\\\": _vm.rows,\\n\\t \\\"step\\\": _vm.step,\\n\\t \\\"title\\\": _vm.attr(_vm.title),\\n\\t \\\"type\\\": _vm.type == 'textarea' ? null : _vm.type\\n\\t },\\n\\t domProps: {\\n\\t \\\"value\\\": _vm._s(_vm.val)\\n\\t },\\n\\t on: {\\n\\t \\\"blur\\\": _vm.emit,\\n\\t \\\"focus\\\": _vm.emit,\\n\\t \\\"input\\\": [function($event) {\\n\\t if ($event.target.composing) { return; }\\n\\t _vm.val = $event.target.value\\n\\t }, _vm.emit],\\n\\t \\\"keyup\\\": function($event) {\\n\\t if (_vm._k($event.keyCode, \\\"enter\\\", 13)) { return; }\\n\\t _vm.type != 'textarea' && _vm.enterSubmit && _vm.submit()\\n\\t }\\n\\t }\\n\\t }), _vm._v(\\\" \\\"), (_vm.clearButton && _vm.val) ? _vm._c('span', {\\n\\t staticClass: \\\"close\\\",\\n\\t on: {\\n\\t \\\"click\\\": function($event) {\\n\\t _vm.val = ''\\n\\t }\\n\\t }\\n\\t }, [_vm._v(\\\"×\\\")]) : _vm._e(), _vm._v(\\\" \\\"), (_vm.icon && _vm.valid !== null) ? _vm._c('span', {\\n\\t class: ['form-control-feedback glyphicon', 'glyphicon-' + (_vm.valid ? 'ok' : 'remove')],\\n\\t attrs: {\\n\\t \\\"aria-hidden\\\": \\\"true\\\"\\n\\t }\\n\\t }) : _vm._e()], _vm._v(\\\" \\\"), (_vm.id_datalist) ? _vm._c('datalist', {\\n\\t attrs: {\\n\\t \\\"id\\\": _vm.id_datalist\\n\\t }\\n\\t }, _vm._l((_vm.options), function(opc) {\\n\\t return _vm._c('option', {\\n\\t domProps: {\\n\\t \\\"value\\\": opc\\n\\t }\\n\\t })\\n\\t })) : _vm._e(), _vm._v(\\\" \\\"), (_vm.showHelp) ? _vm._c('div', {\\n\\t staticClass: \\\"help-block\\\",\\n\\t on: {\\n\\t \\\"click\\\": _vm.focus\\n\\t }\\n\\t }, [_vm._v(_vm._s(_vm.help))]) : _vm._e(), _vm._v(\\\" \\\"), (_vm.showError) ? _vm._c('div', {\\n\\t staticClass: \\\"help-block with-errors\\\",\\n\\t on: {\\n\\t \\\"click\\\": _vm.focus\\n\\t }\\n\\t }, [_vm._v(_vm._s(_vm.errorText))]) : _vm._e()], 2)\\n\\t},staticRenderFns: []}\\n\\tif (false) {\\n\\t module.hot.accept()\\n\\t if (module.hot.data) {\\n\\t require(\\\"vue-hot-reload-api\\\").rerender(\\\"data-v-652ad7b9\\\", module.exports)\\n\\t }\\n\\t}\\n\\n/***/ },\\n/* 119 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tvar __vue_exports__, __vue_options__\\n\\tvar __vue_styles__ = {}\\n\\t\\n\\t/* styles */\\n\\t__webpack_require__(120)\\n\\t\\n\\t/* script */\\n\\t__vue_exports__ = __webpack_require__(122)\\n\\t\\n\\t/* template */\\n\\tvar __vue_template__ = __webpack_require__(127)\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\\n\\tif (\\n\\t typeof __vue_exports__.default === \\\"object\\\" ||\\n\\t typeof __vue_exports__.default === \\\"function\\\"\\n\\t) {\\n\\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \\\"default\\\" && key !== \\\"__esModule\\\" })) {console.error(\\\"named exports are not supported in *.vue files.\\\")}\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__.default\\n\\t}\\n\\tif (typeof __vue_options__ === \\\"function\\\") {\\n\\t __vue_options__ = __vue_options__.options\\n\\t}\\n\\t__vue_options__.__file = \\\"C:\\\\\\\\laragon\\\\\\\\www\\\\\\\\vue-strap\\\\\\\\src\\\\\\\\Modal.vue\\\"\\n\\t__vue_options__.render = __vue_template__.render\\n\\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\\n\\t\\n\\t/* hot reload */\\n\\tif (false) {(function () {\\n\\t var hotAPI = require(\\\"vue-hot-reload-api\\\")\\n\\t hotAPI.install(require(\\\"vue\\\"), false)\\n\\t if (!hotAPI.compatible) return\\n\\t module.hot.accept()\\n\\t if (!module.hot.data) {\\n\\t hotAPI.createRecord(\\\"data-v-fe7d5dc8\\\", __vue_options__)\\n\\t } else {\\n\\t hotAPI.reload(\\\"data-v-fe7d5dc8\\\", __vue_options__)\\n\\t }\\n\\t})()}\\n\\tif (__vue_options__.functional) {console.error(\\\"[vue-loader] Modal.vue: functional components are not supported and should be defined in plain js files using render functions.\\\")}\\n\\t\\n\\tmodule.exports = __vue_exports__\\n\\n\\n/***/ },\\n/* 120 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t// style-loader: Adds some css to the DOM by adding a \\\\r\\\\n\\\"],\\\"sourceRoot\\\":\\\"webpack://\\\"}]);\\n\\t\\n\\t// exports\\n\\n\\n/***/ },\\n/* 122 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t'use strict';\\n\\t\\n\\tObject.defineProperty(exports, \\\"__esModule\\\", {\\n\\t value: true\\n\\t});\\n\\t\\n\\tvar _isInteger = __webpack_require__(123);\\n\\t\\n\\tvar _isInteger2 = _interopRequireDefault(_isInteger);\\n\\t\\n\\tvar _utils = __webpack_require__(65);\\n\\t\\n\\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\\n\\t\\n\\texports.default = {\\n\\t props: {\\n\\t backdrop: { type: Boolean, default: true },\\n\\t callback: { type: Function, default: null },\\n\\t cancelText: { type: String, default: 'Close' },\\n\\t effect: { type: String, default: null },\\n\\t large: { type: Boolean, default: false },\\n\\t okText: { type: String, default: 'Save changes' },\\n\\t small: { type: Boolean, default: false },\\n\\t title: { type: String, default: '' },\\n\\t value: { type: Boolean, required: true },\\n\\t width: { default: null }\\n\\t },\\n\\t computed: {\\n\\t optionalWidth: function optionalWidth() {\\n\\t if (this.width === null) {\\n\\t return null;\\n\\t } else if ((0, _isInteger2.default)(this.width)) {\\n\\t return this.width + 'px';\\n\\t }\\n\\t return this.width;\\n\\t }\\n\\t },\\n\\t watch: {\\n\\t value: function value(val) {\\n\\t this.transitionstart();\\n\\t }\\n\\t },\\n\\t methods: {\\n\\t backClose: function backClose(e) {\\n\\t if (this.backdrop && e.target === this.$el) {\\n\\t this.close();\\n\\t }\\n\\t },\\n\\t close: function close() {\\n\\t this.$emit('cancel');\\n\\t this.$emit('input', false);\\n\\t },\\n\\t ok: function ok() {\\n\\t if (this.callback instanceof Function) this.callback();\\n\\t this.$emit('ok');\\n\\t this.$emit('input', true);\\n\\t },\\n\\t transitionstart: function transitionstart() {\\n\\t var el = this.$el;\\n\\t var body = document.body;\\n\\t var scrollBarWidth = (0, _utils.getScrollBarWidth)();\\n\\t if (this.value) {\\n\\t el.querySelector('.modal-content').focus();\\n\\t el.style.display = 'block';\\n\\t setTimeout(function () {\\n\\t return el.classList.add('in');\\n\\t }, 0);\\n\\t body.classList.add('modal-open');\\n\\t if (scrollBarWidth !== 0) {\\n\\t body.style.paddingRight = scrollBarWidth + 'px';\\n\\t }\\n\\t } else {\\n\\t el.classList.remove('in');\\n\\t }\\n\\t },\\n\\t transitionend: function transitionend() {\\n\\t if (!this.value) {\\n\\t this.$el.style.display = 'none';\\n\\t var body = document.body;\\n\\t body.style.paddingRight = null;\\n\\t body.classList.remove('modal-open');\\n\\t }\\n\\t }\\n\\t }\\n\\t}; //\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\n/***/ },\\n/* 123 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tmodule.exports = { \\\"default\\\": __webpack_require__(124), __esModule: true };\\n\\n/***/ },\\n/* 124 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t__webpack_require__(125);\\n\\tmodule.exports = __webpack_require__(7).Number.isInteger;\\n\\n/***/ },\\n/* 125 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t// 20.1.2.3 Number.isInteger(number)\\n\\tvar $export = __webpack_require__(5);\\n\\t\\n\\t$export($export.S, 'Number', {isInteger: __webpack_require__(126)});\\n\\n/***/ },\\n/* 126 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t// 20.1.2.3 Number.isInteger(number)\\n\\tvar isObject = __webpack_require__(13)\\n\\t , floor = Math.floor;\\n\\tmodule.exports = function isInteger(it){\\n\\t return !isObject(it) && isFinite(it) && floor(it) === it;\\n\\t};\\n\\n/***/ },\\n/* 127 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\\n\\t return _vm._c('div', {\\n\\t class: ['modal', _vm.effect],\\n\\t attrs: {\\n\\t \\\"role\\\": \\\"dialog\\\"\\n\\t },\\n\\t on: {\\n\\t \\\"click\\\": _vm.backClose,\\n\\t \\\"transitionend\\\": _vm.transitionend\\n\\t }\\n\\t }, [_vm._c('div', {\\n\\t class: {\\n\\t 'modal-dialog': true, 'modal-lg': _vm.large, 'modal-sm': _vm.small\\n\\t },\\n\\t style: ({\\n\\t width: _vm.optionalWidth\\n\\t }),\\n\\t attrs: {\\n\\t \\\"role\\\": \\\"document\\\"\\n\\t }\\n\\t }, [_vm._c('div', {\\n\\t staticClass: \\\"modal-content\\\"\\n\\t }, [_vm._t(\\\"modal-header\\\", [_vm._c('div', {\\n\\t staticClass: \\\"modal-header\\\"\\n\\t }, [_vm._c('button', {\\n\\t staticClass: \\\"close\\\",\\n\\t attrs: {\\n\\t \\\"type\\\": \\\"button\\\"\\n\\t },\\n\\t on: {\\n\\t \\\"click\\\": _vm.close\\n\\t }\\n\\t }, [_vm._c('span', [_vm._v(\\\"×\\\")])]), _vm._v(\\\" \\\"), _vm._c('h4', {\\n\\t staticClass: \\\"modal-title\\\"\\n\\t }, [_vm._t(\\\"title\\\", [_vm._v(_vm._s(_vm.title))])], 2)])]), _vm._v(\\\" \\\"), _vm._t(\\\"modal-body\\\", [_vm._c('div', {\\n\\t staticClass: \\\"modal-body\\\"\\n\\t }, [_vm._t(\\\"default\\\")], 2)]), _vm._v(\\\" \\\"), _vm._t(\\\"modal-footer\\\", [_vm._c('div', {\\n\\t staticClass: \\\"modal-footer\\\"\\n\\t }, [_vm._c('button', {\\n\\t staticClass: \\\"btn btn-default\\\",\\n\\t attrs: {\\n\\t \\\"type\\\": \\\"button\\\"\\n\\t },\\n\\t on: {\\n\\t \\\"click\\\": _vm.close\\n\\t }\\n\\t }, [_vm._v(_vm._s(_vm.cancelText))]), _vm._v(\\\" \\\"), _vm._c('button', {\\n\\t staticClass: \\\"btn btn-primary\\\",\\n\\t attrs: {\\n\\t \\\"type\\\": \\\"button\\\"\\n\\t },\\n\\t on: {\\n\\t \\\"click\\\": _vm.ok\\n\\t }\\n\\t }, [_vm._v(_vm._s(_vm.okText))])])])], 2)])])\\n\\t},staticRenderFns: []}\\n\\tif (false) {\\n\\t module.hot.accept()\\n\\t if (module.hot.data) {\\n\\t require(\\\"vue-hot-reload-api\\\").rerender(\\\"data-v-fe7d5dc8\\\", module.exports)\\n\\t }\\n\\t}\\n\\n/***/ },\\n/* 128 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tvar __vue_exports__, __vue_options__\\n\\tvar __vue_styles__ = {}\\n\\t\\n\\t/* script */\\n\\t__vue_exports__ = __webpack_require__(129)\\n\\t\\n\\t/* template */\\n\\tvar __vue_template__ = __webpack_require__(130)\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\\n\\tif (\\n\\t typeof __vue_exports__.default === \\\"object\\\" ||\\n\\t typeof __vue_exports__.default === \\\"function\\\"\\n\\t) {\\n\\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \\\"default\\\" && key !== \\\"__esModule\\\" })) {console.error(\\\"named exports are not supported in *.vue files.\\\")}\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__.default\\n\\t}\\n\\tif (typeof __vue_options__ === \\\"function\\\") {\\n\\t __vue_options__ = __vue_options__.options\\n\\t}\\n\\t__vue_options__.__file = \\\"C:\\\\\\\\laragon\\\\\\\\www\\\\\\\\vue-strap\\\\\\\\src\\\\\\\\Navbar.vue\\\"\\n\\t__vue_options__.render = __vue_template__.render\\n\\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\\n\\t\\n\\t/* hot reload */\\n\\tif (false) {(function () {\\n\\t var hotAPI = require(\\\"vue-hot-reload-api\\\")\\n\\t hotAPI.install(require(\\\"vue\\\"), false)\\n\\t if (!hotAPI.compatible) return\\n\\t module.hot.accept()\\n\\t if (!module.hot.data) {\\n\\t hotAPI.createRecord(\\\"data-v-38f0619e\\\", __vue_options__)\\n\\t } else {\\n\\t hotAPI.reload(\\\"data-v-38f0619e\\\", __vue_options__)\\n\\t }\\n\\t})()}\\n\\tif (__vue_options__.functional) {console.error(\\\"[vue-loader] Navbar.vue: functional components are not supported and should be defined in plain js files using render functions.\\\")}\\n\\t\\n\\tmodule.exports = __vue_exports__\\n\\n\\n/***/ },\\n/* 129 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t'use strict';\\n\\t\\n\\tObject.defineProperty(exports, \\\"__esModule\\\", {\\n\\t value: true\\n\\t});\\n\\t\\n\\tvar _NodeList = __webpack_require__(1);\\n\\t\\n\\tvar _NodeList2 = _interopRequireDefault(_NodeList);\\n\\t\\n\\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\\n\\t\\n\\texports.default = {\\n\\t props: {\\n\\t type: { type: String, default: 'default' },\\n\\t placement: { type: String, default: '' }\\n\\t },\\n\\t data: function data() {\\n\\t return {\\n\\t id: 'bs-example-navbar-collapse-1',\\n\\t collapsed: true,\\n\\t styles: {}\\n\\t };\\n\\t },\\n\\t\\n\\t computed: {\\n\\t slots: function slots() {\\n\\t return this._slotContents;\\n\\t }\\n\\t },\\n\\t methods: {\\n\\t toggleCollapse: function toggleCollapse(e) {\\n\\t e && e.preventDefault();\\n\\t this.collapsed = !this.collapsed;\\n\\t }\\n\\t },\\n\\t created: function created() {\\n\\t this._navbar = true;\\n\\t },\\n\\t mounted: function mounted() {\\n\\t var _this = this;\\n\\t\\n\\t try {\\n\\t (function () {\\n\\t var $dropdown = (0, _NodeList2.default)('.dropdown>[data-toggle=\\\"dropdown\\\"]', _this.$el).parent();\\n\\t if ($dropdown) {\\n\\t $dropdown.on('click', '.dropdown-toggle', function (e) {\\n\\t e.preventDefault();\\n\\t $dropdown.each(function (content) {\\n\\t if (content.contains(e.target)) content.classList.toggle('open');\\n\\t });\\n\\t }).on('click', '.dropdown-menu>li>a', function (e) {\\n\\t $dropdown.each(function (content) {\\n\\t if (content.contains(e.target)) content.classList.remove('open');\\n\\t });\\n\\t }).onBlur(function (e) {\\n\\t $dropdown.each(function (content) {\\n\\t if (!content.contains(e.target)) content.classList.remove('open');\\n\\t });\\n\\t });\\n\\t }\\n\\t })();\\n\\t } catch (ex) {\\n\\t console.log('error finding dropdown');\\n\\t }\\n\\t\\n\\t (0, _NodeList2.default)(this.$el).on('click touchstart', 'li:not(.dropdown)>a', function (e) {\\n\\t setTimeout(function () {\\n\\t _this.collapsed = true;\\n\\t }, 200);\\n\\t }).onBlur(function (e) {\\n\\t if (!_this.$el.contains(e.target)) {\\n\\t _this.collapsed = true;\\n\\t }\\n\\t });\\n\\t var height = this.$el.offsetHeight;\\n\\t if (this.placement === 'top') {\\n\\t document.body.style.paddingTop = height + 'px';\\n\\t }\\n\\t if (this.placement === 'bottom') {\\n\\t document.body.style.paddingBottom = height + 'px';\\n\\t }\\n\\t if (this.$slots.collapse) (0, _NodeList2.default)('[data-toggle=\\\"collapse\\\"]', this.$el).on('click', function (e) {\\n\\t return _this.toggleCollapse(e);\\n\\t });\\n\\t },\\n\\t beforeDestroy: function beforeDestroy() {\\n\\t (0, _NodeList2.default)('.dropdown', this.$el).off('click').offBlur();\\n\\t if (this.$slots.collapse) (0, _NodeList2.default)('[data-toggle=\\\"collapse\\\"]', this.$el).off('click');\\n\\t }\\n\\t}; //\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\n/***/ },\\n/* 130 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\\n\\t return _vm._c('nav', {\\n\\t class: ['navbar', 'navbar-' + _vm.type, _vm.placement === 'static' ? 'navbar-static-top' : 'navbar-fixed-' + _vm.placement]\\n\\t }, [_vm._c('div', {\\n\\t staticClass: \\\"container-fluid\\\"\\n\\t }, [_vm._c('div', {\\n\\t staticClass: \\\"navbar-header\\\"\\n\\t }, [(!_vm.$slots.collapse) ? _vm._c('button', {\\n\\t staticClass: \\\"navbar-toggle collapsed\\\",\\n\\t attrs: {\\n\\t \\\"type\\\": \\\"button\\\",\\n\\t \\\"aria-expanded\\\": \\\"false\\\"\\n\\t },\\n\\t on: {\\n\\t \\\"click\\\": _vm.toggleCollapse\\n\\t }\\n\\t }, [_vm._c('span', {\\n\\t staticClass: \\\"sr-only\\\"\\n\\t }, [_vm._v(\\\"Toggle navigation\\\")]), _vm._v(\\\" \\\"), _vm._c('span', {\\n\\t staticClass: \\\"icon-bar\\\"\\n\\t }), _vm._v(\\\" \\\"), _vm._c('span', {\\n\\t staticClass: \\\"icon-bar\\\"\\n\\t }), _vm._v(\\\" \\\"), _vm._c('span', {\\n\\t staticClass: \\\"icon-bar\\\"\\n\\t })]) : _vm._e(), _vm._v(\\\" \\\"), _vm._t(\\\"collapse\\\"), _vm._v(\\\" \\\"), _vm._t(\\\"brand\\\")], 2), _vm._v(\\\" \\\"), _vm._c('div', {\\n\\t class: ['navbar-collapse', {\\n\\t collapse: _vm.collapsed\\n\\t }]\\n\\t }, [_vm._c('ul', {\\n\\t staticClass: \\\"nav navbar-nav\\\"\\n\\t }, [_vm._t(\\\"default\\\")], 2), _vm._v(\\\" \\\"), (_vm.$slots.left) ? _vm._c('ul', {\\n\\t staticClass: \\\"nav navbar-nav navbar-left\\\"\\n\\t }, [_vm._t(\\\"left\\\")], 2) : _vm._e(), _vm._v(\\\" \\\"), (_vm.$slots.right) ? _vm._c('ul', {\\n\\t staticClass: \\\"nav navbar-nav navbar-right\\\"\\n\\t }, [_vm._t(\\\"right\\\")], 2) : _vm._e()])])])\\n\\t},staticRenderFns: []}\\n\\tif (false) {\\n\\t module.hot.accept()\\n\\t if (module.hot.data) {\\n\\t require(\\\"vue-hot-reload-api\\\").rerender(\\\"data-v-38f0619e\\\", module.exports)\\n\\t }\\n\\t}\\n\\n/***/ },\\n/* 131 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tvar __vue_exports__, __vue_options__\\n\\tvar __vue_styles__ = {}\\n\\t\\n\\t/* script */\\n\\t__vue_exports__ = __webpack_require__(132)\\n\\t\\n\\t/* template */\\n\\tvar __vue_template__ = __webpack_require__(133)\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\\n\\tif (\\n\\t typeof __vue_exports__.default === \\\"object\\\" ||\\n\\t typeof __vue_exports__.default === \\\"function\\\"\\n\\t) {\\n\\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \\\"default\\\" && key !== \\\"__esModule\\\" })) {console.error(\\\"named exports are not supported in *.vue files.\\\")}\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__.default\\n\\t}\\n\\tif (typeof __vue_options__ === \\\"function\\\") {\\n\\t __vue_options__ = __vue_options__.options\\n\\t}\\n\\t__vue_options__.__file = \\\"C:\\\\\\\\laragon\\\\\\\\www\\\\\\\\vue-strap\\\\\\\\src\\\\\\\\Option.vue\\\"\\n\\t__vue_options__.render = __vue_template__.render\\n\\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\\n\\t\\n\\t/* hot reload */\\n\\tif (false) {(function () {\\n\\t var hotAPI = require(\\\"vue-hot-reload-api\\\")\\n\\t hotAPI.install(require(\\\"vue\\\"), false)\\n\\t if (!hotAPI.compatible) return\\n\\t module.hot.accept()\\n\\t if (!module.hot.data) {\\n\\t hotAPI.createRecord(\\\"data-v-42088116\\\", __vue_options__)\\n\\t } else {\\n\\t hotAPI.reload(\\\"data-v-42088116\\\", __vue_options__)\\n\\t }\\n\\t})()}\\n\\tif (__vue_options__.functional) {console.error(\\\"[vue-loader] Option.vue: functional components are not supported and should be defined in plain js files using render functions.\\\")}\\n\\t\\n\\tmodule.exports = __vue_exports__\\n\\n\\n/***/ },\\n/* 132 */\\n/***/ function(module, exports) {\\n\\n\\t'use strict';\\n\\t\\n\\tObject.defineProperty(exports, \\\"__esModule\\\", {\\n\\t value: true\\n\\t});\\n\\t//\\n\\t\\n\\texports.default = {\\n\\t props: { value: null },\\n\\t data: function data() {\\n\\t return { loading: true };\\n\\t },\\n\\t mounted: function mounted() {\\n\\t if (this.$parent._select) {\\n\\t if (!this.$parent.options) {\\n\\t this.$parent.options = [];\\n\\t }\\n\\t var el = {};\\n\\t el[this.$parent.optionsLabel] = this.$el.innerHTML;\\n\\t el[this.$parent.optionsValue] = this.value;\\n\\t this.$parent.options.push(el);\\n\\t this.loading = false;\\n\\t } else {\\n\\t console.warn('options only work inside a select component');\\n\\t }\\n\\t }\\n\\t};\\n\\n/***/ },\\n/* 133 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\\n\\t return (_vm.loading) ? _vm._c('li', [_vm._t(\\\"default\\\")], 2) : _vm._e()\\n\\t},staticRenderFns: []}\\n\\tif (false) {\\n\\t module.hot.accept()\\n\\t if (module.hot.data) {\\n\\t require(\\\"vue-hot-reload-api\\\").rerender(\\\"data-v-42088116\\\", module.exports)\\n\\t }\\n\\t}\\n\\n/***/ },\\n/* 134 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tvar __vue_exports__, __vue_options__\\n\\tvar __vue_styles__ = {}\\n\\t\\n\\t/* styles */\\n\\t__webpack_require__(135)\\n\\t\\n\\t/* script */\\n\\t__vue_exports__ = __webpack_require__(137)\\n\\t\\n\\t/* template */\\n\\tvar __vue_template__ = __webpack_require__(138)\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\\n\\tif (\\n\\t typeof __vue_exports__.default === \\\"object\\\" ||\\n\\t typeof __vue_exports__.default === \\\"function\\\"\\n\\t) {\\n\\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \\\"default\\\" && key !== \\\"__esModule\\\" })) {console.error(\\\"named exports are not supported in *.vue files.\\\")}\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__.default\\n\\t}\\n\\tif (typeof __vue_options__ === \\\"function\\\") {\\n\\t __vue_options__ = __vue_options__.options\\n\\t}\\n\\t__vue_options__.__file = \\\"C:\\\\\\\\laragon\\\\\\\\www\\\\\\\\vue-strap\\\\\\\\src\\\\\\\\Panel.vue\\\"\\n\\t__vue_options__.render = __vue_template__.render\\n\\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\\n\\t\\n\\t/* hot reload */\\n\\tif (false) {(function () {\\n\\t var hotAPI = require(\\\"vue-hot-reload-api\\\")\\n\\t hotAPI.install(require(\\\"vue\\\"), false)\\n\\t if (!hotAPI.compatible) return\\n\\t module.hot.accept()\\n\\t if (!module.hot.data) {\\n\\t hotAPI.createRecord(\\\"data-v-b1e0461a\\\", __vue_options__)\\n\\t } else {\\n\\t hotAPI.reload(\\\"data-v-b1e0461a\\\", __vue_options__)\\n\\t }\\n\\t})()}\\n\\tif (__vue_options__.functional) {console.error(\\\"[vue-loader] Panel.vue: functional components are not supported and should be defined in plain js files using render functions.\\\")}\\n\\t\\n\\tmodule.exports = __vue_exports__\\n\\n\\n/***/ },\\n/* 135 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t// style-loader: Adds some css to the DOM by adding a \\\\r\\\\n\\\"],\\\"sourceRoot\\\":\\\"webpack://\\\"}]);\\n\\t\\n\\t// exports\\n\\n\\n/***/ },\\n/* 137 */\\n/***/ function(module, exports) {\\n\\n\\t'use strict';\\n\\t\\n\\tObject.defineProperty(exports, \\\"__esModule\\\", {\\n\\t value: true\\n\\t});\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t\\n\\texports.default = {\\n\\t props: {\\n\\t header: { type: String },\\n\\t isOpen: { type: Boolean, default: null },\\n\\t type: { type: String, default: null }\\n\\t },\\n\\t data: function data() {\\n\\t return {\\n\\t open: this.isOpen\\n\\t };\\n\\t },\\n\\t\\n\\t watch: {\\n\\t isOpen: function isOpen(val) {\\n\\t this.open = val;\\n\\t }\\n\\t },\\n\\t computed: {\\n\\t inAccordion: function inAccordion() {\\n\\t return this.$parent && this.$parent._isAccordion;\\n\\t },\\n\\t panelType: function panelType() {\\n\\t return 'panel-' + (this.type || this.$parent && this.$parent.type || 'default');\\n\\t }\\n\\t },\\n\\t methods: {\\n\\t toggle: function toggle() {\\n\\t this.open = !this.open;\\n\\t if (this.inAccordion) {\\n\\t this.$parent.openChild(this);\\n\\t }\\n\\t },\\n\\t enter: function enter(el) {\\n\\t el.style.height = 'auto';\\n\\t var endWidth = getComputedStyle(el).height;\\n\\t el.style.height = '0px';\\n\\t el.offsetHeight; // force repaint\\n\\t el.style.height = endWidth;\\n\\t },\\n\\t afterEnter: function afterEnter(el) {\\n\\t el.style.height = 'auto';\\n\\t },\\n\\t beforeLeave: function beforeLeave(el) {\\n\\t el.style.height = getComputedStyle(el).height;\\n\\t el.offsetHeight; // force repaint\\n\\t el.style.height = '0px';\\n\\t }\\n\\t },\\n\\t created: function created() {\\n\\t if (this.isOpen === null) {\\n\\t this.open = !this.inAccordion;\\n\\t }\\n\\t }\\n\\t};\\n\\n/***/ },\\n/* 138 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\\n\\t return _vm._c('div', {\\n\\t class: ['panel', _vm.panelType]\\n\\t }, [_vm._c('div', {\\n\\t class: ['panel-heading', {\\n\\t 'accordion-toggle': _vm.inAccordion\\n\\t }],\\n\\t on: {\\n\\t \\\"click\\\": function($event) {\\n\\t $event.preventDefault();\\n\\t _vm.inAccordion && _vm.toggle()\\n\\t }\\n\\t }\\n\\t }, [_vm._t(\\\"header\\\", [_vm._c('h4', {\\n\\t staticClass: \\\"panel-title\\\"\\n\\t }, [_vm._v(_vm._s(_vm.header))])])], 2), _vm._v(\\\" \\\"), _vm._c('transition', {\\n\\t attrs: {\\n\\t \\\"name\\\": \\\"collapse\\\"\\n\\t },\\n\\t on: {\\n\\t \\\"enter\\\": _vm.enter,\\n\\t \\\"after-enter\\\": _vm.afterEnter,\\n\\t \\\"before-leave\\\": _vm.beforeLeave\\n\\t }\\n\\t }, [(_vm.open) ? _vm._c('div', {\\n\\t staticClass: \\\"panel-collapse\\\"\\n\\t }, [_vm._c('div', {\\n\\t staticClass: \\\"panel-body\\\"\\n\\t }, [_vm._t(\\\"default\\\")], 2)]) : _vm._e()])], 1)\\n\\t},staticRenderFns: []}\\n\\tif (false) {\\n\\t module.hot.accept()\\n\\t if (module.hot.data) {\\n\\t require(\\\"vue-hot-reload-api\\\").rerender(\\\"data-v-b1e0461a\\\", module.exports)\\n\\t }\\n\\t}\\n\\n/***/ },\\n/* 139 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tvar __vue_exports__, __vue_options__\\n\\tvar __vue_styles__ = {}\\n\\t\\n\\t/* styles */\\n\\t__webpack_require__(140)\\n\\t\\n\\t/* script */\\n\\t__vue_exports__ = __webpack_require__(142)\\n\\t\\n\\t/* template */\\n\\tvar __vue_template__ = __webpack_require__(144)\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\\n\\tif (\\n\\t typeof __vue_exports__.default === \\\"object\\\" ||\\n\\t typeof __vue_exports__.default === \\\"function\\\"\\n\\t) {\\n\\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \\\"default\\\" && key !== \\\"__esModule\\\" })) {console.error(\\\"named exports are not supported in *.vue files.\\\")}\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__.default\\n\\t}\\n\\tif (typeof __vue_options__ === \\\"function\\\") {\\n\\t __vue_options__ = __vue_options__.options\\n\\t}\\n\\t__vue_options__.__file = \\\"C:\\\\\\\\laragon\\\\\\\\www\\\\\\\\vue-strap\\\\\\\\src\\\\\\\\Popover.vue\\\"\\n\\t__vue_options__.render = __vue_template__.render\\n\\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\\n\\t\\n\\t/* hot reload */\\n\\tif (false) {(function () {\\n\\t var hotAPI = require(\\\"vue-hot-reload-api\\\")\\n\\t hotAPI.install(require(\\\"vue\\\"), false)\\n\\t if (!hotAPI.compatible) return\\n\\t module.hot.accept()\\n\\t if (!module.hot.data) {\\n\\t hotAPI.createRecord(\\\"data-v-2465bf54\\\", __vue_options__)\\n\\t } else {\\n\\t hotAPI.reload(\\\"data-v-2465bf54\\\", __vue_options__)\\n\\t }\\n\\t})()}\\n\\tif (__vue_options__.functional) {console.error(\\\"[vue-loader] Popover.vue: functional components are not supported and should be defined in plain js files using render functions.\\\")}\\n\\t\\n\\tmodule.exports = __vue_exports__\\n\\n\\n/***/ },\\n/* 140 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t// style-loader: Adds some css to the DOM by adding a \\\\r\\\\n\\\"],\\\"sourceRoot\\\":\\\"webpack://\\\"}]);\\n\\t\\n\\t// exports\\n\\n\\n/***/ },\\n/* 142 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t'use strict';\\n\\t\\n\\tObject.defineProperty(exports, \\\"__esModule\\\", {\\n\\t value: true\\n\\t});\\n\\t\\n\\tvar _popoverMixins = __webpack_require__(143);\\n\\t\\n\\tvar _popoverMixins2 = _interopRequireDefault(_popoverMixins);\\n\\t\\n\\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\\n\\t\\n\\texports.default = {\\n\\t mixins: [_popoverMixins2.default],\\n\\t props: {\\n\\t trigger: { type: String, default: 'click' }\\n\\t }\\n\\t}; //\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\n/***/ },\\n/* 143 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t'use strict';\\n\\t\\n\\tObject.defineProperty(exports, \\\"__esModule\\\", {\\n\\t value: true\\n\\t});\\n\\t\\n\\tvar _NodeList = __webpack_require__(1);\\n\\t\\n\\tvar _NodeList2 = _interopRequireDefault(_NodeList);\\n\\t\\n\\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\\n\\t\\n\\texports.default = {\\n\\t props: {\\n\\t content: { type: String },\\n\\t effect: { type: String, default: 'fade' },\\n\\t header: { type: Boolean, default: true },\\n\\t placement: { type: String, default: 'top' },\\n\\t title: { type: String },\\n\\t trigger: { type: String }\\n\\t },\\n\\t data: function data() {\\n\\t return {\\n\\t top: 0,\\n\\t left: 0,\\n\\t show: false\\n\\t };\\n\\t },\\n\\t\\n\\t computed: {\\n\\t events: function events() {\\n\\t return { contextmenu: ['contextmenu'], hover: ['mouseleave', 'mouseenter'], focus: ['blur', 'focus'] }[this.trigger] || ['click'];\\n\\t }\\n\\t },\\n\\t methods: {\\n\\t beforeEnter: function beforeEnter() {\\n\\t var _this = this;\\n\\t\\n\\t this.position();\\n\\t setTimeout(function () {\\n\\t return _this.position();\\n\\t }, 30);\\n\\t },\\n\\t position: function position() {\\n\\t var _this2 = this;\\n\\t\\n\\t this.$nextTick(function () {\\n\\t var popover = _this2.$refs.popover;\\n\\t var trigger = _this2.$refs.trigger.children[0];\\n\\t switch (_this2.placement) {\\n\\t case 'top':\\n\\t _this2.left = trigger.offsetLeft - popover.offsetWidth / 2 + trigger.offsetWidth / 2;\\n\\t _this2.top = trigger.offsetTop - popover.offsetHeight;\\n\\t break;\\n\\t case 'left':\\n\\t _this2.left = trigger.offsetLeft - popover.offsetWidth;\\n\\t _this2.top = trigger.offsetTop + trigger.offsetHeight / 2 - popover.offsetHeight / 2;\\n\\t break;\\n\\t case 'right':\\n\\t _this2.left = trigger.offsetLeft + trigger.offsetWidth;\\n\\t _this2.top = trigger.offsetTop + trigger.offsetHeight / 2 - popover.offsetHeight / 2;\\n\\t break;\\n\\t case 'bottom':\\n\\t _this2.left = trigger.offsetLeft - popover.offsetWidth / 2 + trigger.offsetWidth / 2;\\n\\t _this2.top = trigger.offsetTop + trigger.offsetHeight;\\n\\t break;\\n\\t default:\\n\\t console.warn('Wrong placement prop');\\n\\t }\\n\\t popover.style.top = _this2.top + 'px';\\n\\t popover.style.left = _this2.left + 'px';\\n\\t });\\n\\t },\\n\\t toggle: function toggle(e) {\\n\\t if (e && this.trigger === 'contextmenu') e.preventDefault();\\n\\t this.show = !this.show;\\n\\t if (this.show) this.beforeEnter();\\n\\t }\\n\\t },\\n\\t mounted: function mounted() {\\n\\t var _this3 = this;\\n\\t\\n\\t var trigger = this.$refs.trigger.children[0];\\n\\t if (!trigger) return console.error('Could not find trigger v-el in your component that uses popoverMixin.');\\n\\t\\n\\t if (this.trigger === 'focus' && !~trigger.tabIndex) {\\n\\t trigger = (0, _NodeList2.default)('a,input,select,textarea,button', trigger);\\n\\t if (!trigger.length) {\\n\\t return;\\n\\t }\\n\\t }\\n\\t this.events.forEach(function (event) {\\n\\t (0, _NodeList2.default)(trigger).on(event, _this3.toggle);\\n\\t });\\n\\t },\\n\\t beforeDestroy: function beforeDestroy() {\\n\\t if (this._trigger) (0, _NodeList2.default)(this._trigger).off();\\n\\t }\\n\\t};\\n\\n/***/ },\\n/* 144 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\\n\\t return _vm._c('span', {\\n\\t ref: \\\"trigger\\\"\\n\\t }, [_vm._t(\\\"default\\\"), _vm._v(\\\" \\\"), _vm._c('transition', {\\n\\t attrs: {\\n\\t \\\"name\\\": _vm.effect\\n\\t }\\n\\t }, [(_vm.show) ? _vm._c('div', {\\n\\t ref: \\\"popover\\\",\\n\\t class: ['popover', _vm.placement]\\n\\t }, [_vm._c('div', {\\n\\t staticClass: \\\"arrow\\\"\\n\\t }), _vm._v(\\\" \\\"), (_vm.title) ? _vm._c('h3', {\\n\\t staticClass: \\\"popover-title\\\"\\n\\t }, [_vm._t(\\\"title\\\", [_vm._v(_vm._s(_vm.title))])], 2) : _vm._e(), _vm._v(\\\" \\\"), _vm._c('div', {\\n\\t staticClass: \\\"popover-content\\\"\\n\\t }, [_vm._t(\\\"content\\\", [_vm._c('span', {\\n\\t domProps: {\\n\\t \\\"innerHTML\\\": _vm._s(_vm.content)\\n\\t }\\n\\t })])], 2)]) : _vm._e()])], 2)\\n\\t},staticRenderFns: []}\\n\\tif (false) {\\n\\t module.hot.accept()\\n\\t if (module.hot.data) {\\n\\t require(\\\"vue-hot-reload-api\\\").rerender(\\\"data-v-2465bf54\\\", module.exports)\\n\\t }\\n\\t}\\n\\n/***/ },\\n/* 145 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tvar __vue_exports__, __vue_options__\\n\\tvar __vue_styles__ = {}\\n\\t\\n\\t/* script */\\n\\t__vue_exports__ = __webpack_require__(146)\\n\\t\\n\\t/* template */\\n\\tvar __vue_template__ = __webpack_require__(147)\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\\n\\tif (\\n\\t typeof __vue_exports__.default === \\\"object\\\" ||\\n\\t typeof __vue_exports__.default === \\\"function\\\"\\n\\t) {\\n\\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \\\"default\\\" && key !== \\\"__esModule\\\" })) {console.error(\\\"named exports are not supported in *.vue files.\\\")}\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__.default\\n\\t}\\n\\tif (typeof __vue_options__ === \\\"function\\\") {\\n\\t __vue_options__ = __vue_options__.options\\n\\t}\\n\\t__vue_options__.__file = \\\"C:\\\\\\\\laragon\\\\\\\\www\\\\\\\\vue-strap\\\\\\\\src\\\\\\\\Progressbar.vue\\\"\\n\\t__vue_options__.render = __vue_template__.render\\n\\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\\n\\t\\n\\t/* hot reload */\\n\\tif (false) {(function () {\\n\\t var hotAPI = require(\\\"vue-hot-reload-api\\\")\\n\\t hotAPI.install(require(\\\"vue\\\"), false)\\n\\t if (!hotAPI.compatible) return\\n\\t module.hot.accept()\\n\\t if (!module.hot.data) {\\n\\t hotAPI.createRecord(\\\"data-v-68aa3375\\\", __vue_options__)\\n\\t } else {\\n\\t hotAPI.reload(\\\"data-v-68aa3375\\\", __vue_options__)\\n\\t }\\n\\t})()}\\n\\tif (__vue_options__.functional) {console.error(\\\"[vue-loader] Progressbar.vue: functional components are not supported and should be defined in plain js files using render functions.\\\")}\\n\\t\\n\\tmodule.exports = __vue_exports__\\n\\n\\n/***/ },\\n/* 146 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t'use strict';\\n\\t\\n\\tObject.defineProperty(exports, \\\"__esModule\\\", {\\n\\t value: true\\n\\t});\\n\\t\\n\\tvar _utils = __webpack_require__(65);\\n\\t\\n\\texports.default = {\\n\\t props: {\\n\\t animated: { type: Boolean, default: false },\\n\\t label: { default: false },\\n\\t now: { required: true },\\n\\t striped: { type: Boolean, default: false },\\n\\t type: { type: String }\\n\\t },\\n\\t computed: {\\n\\t labelBool: function labelBool() {\\n\\t return _utils.coerce.boolean(this.label);\\n\\t },\\n\\t nowNum: function nowNum() {\\n\\t return _utils.coerce.number(this.now);\\n\\t }\\n\\t }\\n\\t}; //\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\n/***/ },\\n/* 147 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\\n\\t return _vm._c('div', {\\n\\t class: ['progress-bar', 'progress-bar-' + _vm.type, {\\n\\t active: _vm.animated,\\n\\t 'progress-bar-striped': _vm.striped\\n\\t }],\\n\\t style: ({\\n\\t width: _vm.nowNum + '%'\\n\\t }),\\n\\t domProps: {\\n\\t \\\"textContent\\\": _vm._s(_vm.labelBool ? _vm.nowNum + '%' : null)\\n\\t }\\n\\t })\\n\\t},staticRenderFns: []}\\n\\tif (false) {\\n\\t module.hot.accept()\\n\\t if (module.hot.data) {\\n\\t require(\\\"vue-hot-reload-api\\\").rerender(\\\"data-v-68aa3375\\\", module.exports)\\n\\t }\\n\\t}\\n\\n/***/ },\\n/* 148 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tvar __vue_exports__, __vue_options__\\n\\tvar __vue_styles__ = {}\\n\\t\\n\\t/* styles */\\n\\t__webpack_require__(149)\\n\\t\\n\\t/* script */\\n\\t__vue_exports__ = __webpack_require__(151)\\n\\t\\n\\t/* template */\\n\\tvar __vue_template__ = __webpack_require__(152)\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\\n\\tif (\\n\\t typeof __vue_exports__.default === \\\"object\\\" ||\\n\\t typeof __vue_exports__.default === \\\"function\\\"\\n\\t) {\\n\\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \\\"default\\\" && key !== \\\"__esModule\\\" })) {console.error(\\\"named exports are not supported in *.vue files.\\\")}\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__.default\\n\\t}\\n\\tif (typeof __vue_options__ === \\\"function\\\") {\\n\\t __vue_options__ = __vue_options__.options\\n\\t}\\n\\t__vue_options__.__file = \\\"C:\\\\\\\\laragon\\\\\\\\www\\\\\\\\vue-strap\\\\\\\\src\\\\\\\\Radio.vue\\\"\\n\\t__vue_options__.render = __vue_template__.render\\n\\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\\n\\t\\n\\t/* hot reload */\\n\\tif (false) {(function () {\\n\\t var hotAPI = require(\\\"vue-hot-reload-api\\\")\\n\\t hotAPI.install(require(\\\"vue\\\"), false)\\n\\t if (!hotAPI.compatible) return\\n\\t module.hot.accept()\\n\\t if (!module.hot.data) {\\n\\t hotAPI.createRecord(\\\"data-v-74cfd92c\\\", __vue_options__)\\n\\t } else {\\n\\t hotAPI.reload(\\\"data-v-74cfd92c\\\", __vue_options__)\\n\\t }\\n\\t})()}\\n\\tif (__vue_options__.functional) {console.error(\\\"[vue-loader] Radio.vue: functional components are not supported and should be defined in plain js files using render functions.\\\")}\\n\\t\\n\\tmodule.exports = __vue_exports__\\n\\n\\n/***/ },\\n/* 149 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t// style-loader: Adds some css to the DOM by adding a \\\\r\\\\n\\\"],\\\"sourceRoot\\\":\\\"webpack://\\\"}]);\\n\\t\\n\\t// exports\\n\\n\\n/***/ },\\n/* 151 */\\n/***/ function(module, exports) {\\n\\n\\t'use strict';\\n\\t\\n\\tObject.defineProperty(exports, \\\"__esModule\\\", {\\n\\t value: true\\n\\t});\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t\\n\\texports.default = {\\n\\t props: {\\n\\t button: { type: Boolean, default: false },\\n\\t checkedValue: { default: true },\\n\\t disabled: { type: Boolean, default: false },\\n\\t name: { type: String, default: null },\\n\\t readonly: { type: Boolean, default: false },\\n\\t type: { type: String, default: null },\\n\\t value: { default: false }\\n\\t },\\n\\t data: function data() {\\n\\t return {\\n\\t check: this.value\\n\\t };\\n\\t },\\n\\t\\n\\t computed: {\\n\\t active: function active() {\\n\\t return this.check === this.checkedValue;\\n\\t },\\n\\t parentValue: function parentValue() {\\n\\t return this._inGroup ? this.$parent.val === this.value : null;\\n\\t },\\n\\t buttonStyle: function buttonStyle() {\\n\\t return this.button || this._inGroup && this.$parent.buttons;\\n\\t },\\n\\t typeColor: function typeColor() {\\n\\t return this.type || this.$parent && this.$parent.type || 'default';\\n\\t }\\n\\t },\\n\\t watch: {\\n\\t check: function check(val) {\\n\\t if (this.checkedValue === val) {\\n\\t this.$emit('input', val);\\n\\t this.$emit('checked', true);\\n\\t if (this._inGroup) {\\n\\t this.$parent.val = val;\\n\\t }\\n\\t }\\n\\t },\\n\\t parentValue: function parentValue(val) {\\n\\t if (this.check !== val && this.checkedValue === val) {\\n\\t this.check = val;\\n\\t }\\n\\t },\\n\\t value: function value(val) {\\n\\t this.check = this.checkedValue === val ? val : null;\\n\\t }\\n\\t },\\n\\t created: function created() {\\n\\t var parent = this.$parent;\\n\\t if (parent && parent._btnGroup && !parent._checkboxGroup) {\\n\\t this._inGroup = true;\\n\\t parent._radioGroup = true;\\n\\t }\\n\\t if (this.$parent._radioGroup) {\\n\\t if (this.$parent.val) {\\n\\t this.check = this.$parent.val === this.checkedValue;\\n\\t } else if (this.check) {\\n\\t this.$parent.val = this.checkedValue;\\n\\t }\\n\\t }\\n\\t },\\n\\t\\n\\t methods: {\\n\\t focus: function focus() {\\n\\t this.$refs.input.focus();\\n\\t },\\n\\t toggle: function toggle() {\\n\\t if (this.disabled) {\\n\\t return;\\n\\t }\\n\\t this.focus();\\n\\t if (this.readonly) {\\n\\t return;\\n\\t }\\n\\t this.check = this.checkedValue;\\n\\t if (this._inGroup) {\\n\\t this.$parent.val = this.checkedValue;\\n\\t }\\n\\t }\\n\\t }\\n\\t};\\n\\n/***/ },\\n/* 152 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\\n\\t return _vm._c(_vm.buttonStyle ? 'label' : 'div', {\\n\\t tag: \\\"div\\\",\\n\\t class: [(_vm.buttonStyle ? 'btn btn-' + _vm.typeColor : 'radio ' + _vm.typeColor), {\\n\\t active: _vm.active,\\n\\t disabled: _vm.disabled,\\n\\t readonly: _vm.readonly\\n\\t }],\\n\\t on: {\\n\\t \\\"click\\\": function($event) {\\n\\t $event.preventDefault();\\n\\t _vm.toggle($event)\\n\\t }\\n\\t }\\n\\t }, [(_vm.buttonStyle) ? [_vm._c('input', {\\n\\t directives: [{\\n\\t name: \\\"show\\\",\\n\\t rawName: \\\"v-show\\\",\\n\\t value: (!_vm.readonly),\\n\\t expression: \\\"!readonly\\\"\\n\\t }, {\\n\\t name: \\\"model\\\",\\n\\t rawName: \\\"v-model\\\",\\n\\t value: (_vm.check),\\n\\t expression: \\\"check\\\"\\n\\t }],\\n\\t ref: \\\"input\\\",\\n\\t attrs: {\\n\\t \\\"type\\\": \\\"radio\\\",\\n\\t \\\"autocomplete\\\": \\\"off\\\",\\n\\t \\\"name\\\": _vm.name,\\n\\t \\\"readonly\\\": _vm.readonly,\\n\\t \\\"disabled\\\": _vm.disabled\\n\\t },\\n\\t domProps: {\\n\\t \\\"value\\\": _vm.checkedValue,\\n\\t \\\"checked\\\": _vm._q(_vm.check, _vm.checkedValue)\\n\\t },\\n\\t on: {\\n\\t \\\"click\\\": function($event) {\\n\\t _vm.check = _vm.checkedValue\\n\\t }\\n\\t }\\n\\t }), _vm._v(\\\" \\\"), _vm._t(\\\"default\\\")] : _vm._c('label', {\\n\\t staticClass: \\\"open\\\"\\n\\t }, [_vm._c('input', {\\n\\t directives: [{\\n\\t name: \\\"model\\\",\\n\\t rawName: \\\"v-model\\\",\\n\\t value: (_vm.check),\\n\\t expression: \\\"check\\\"\\n\\t }],\\n\\t ref: \\\"input\\\",\\n\\t attrs: {\\n\\t \\\"type\\\": \\\"radio\\\",\\n\\t \\\"autocomplete\\\": \\\"off\\\",\\n\\t \\\"name\\\": _vm.name,\\n\\t \\\"readonly\\\": _vm.readonly,\\n\\t \\\"disabled\\\": _vm.disabled\\n\\t },\\n\\t domProps: {\\n\\t \\\"value\\\": _vm.checkedValue,\\n\\t \\\"checked\\\": _vm._q(_vm.check, _vm.checkedValue)\\n\\t },\\n\\t on: {\\n\\t \\\"click\\\": function($event) {\\n\\t _vm.check = _vm.checkedValue\\n\\t }\\n\\t }\\n\\t }), _vm._v(\\\" \\\"), _vm._c('span', {\\n\\t staticClass: \\\"icon dropdown-toggle\\\",\\n\\t class: [_vm.active ? 'btn-' + _vm.typeColor : '', {\\n\\t bg: _vm.typeColor === 'default'\\n\\t }]\\n\\t }), _vm._v(\\\" \\\"), (_vm.active && _vm.typeColor === 'default') ? _vm._c('span', {\\n\\t staticClass: \\\"icon\\\"\\n\\t }) : _vm._e(), _vm._v(\\\" \\\"), _vm._t(\\\"default\\\")], 2)], 2)\\n\\t},staticRenderFns: []}\\n\\tif (false) {\\n\\t module.hot.accept()\\n\\t if (module.hot.data) {\\n\\t require(\\\"vue-hot-reload-api\\\").rerender(\\\"data-v-74cfd92c\\\", module.exports)\\n\\t }\\n\\t}\\n\\n/***/ },\\n/* 153 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tvar __vue_exports__, __vue_options__\\n\\tvar __vue_styles__ = {}\\n\\t\\n\\t/* styles */\\n\\t__webpack_require__(154)\\n\\t\\n\\t/* script */\\n\\t__vue_exports__ = __webpack_require__(156)\\n\\t\\n\\t/* template */\\n\\tvar __vue_template__ = __webpack_require__(157)\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\\n\\tif (\\n\\t typeof __vue_exports__.default === \\\"object\\\" ||\\n\\t typeof __vue_exports__.default === \\\"function\\\"\\n\\t) {\\n\\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \\\"default\\\" && key !== \\\"__esModule\\\" })) {console.error(\\\"named exports are not supported in *.vue files.\\\")}\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__.default\\n\\t}\\n\\tif (typeof __vue_options__ === \\\"function\\\") {\\n\\t __vue_options__ = __vue_options__.options\\n\\t}\\n\\t__vue_options__.__file = \\\"C:\\\\\\\\laragon\\\\\\\\www\\\\\\\\vue-strap\\\\\\\\src\\\\\\\\Select.vue\\\"\\n\\t__vue_options__.render = __vue_template__.render\\n\\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\\n\\t__vue_options__._scopeId = \\\"data-v-e514dbc6\\\"\\n\\t\\n\\t/* hot reload */\\n\\tif (false) {(function () {\\n\\t var hotAPI = require(\\\"vue-hot-reload-api\\\")\\n\\t hotAPI.install(require(\\\"vue\\\"), false)\\n\\t if (!hotAPI.compatible) return\\n\\t module.hot.accept()\\n\\t if (!module.hot.data) {\\n\\t hotAPI.createRecord(\\\"data-v-e514dbc6\\\", __vue_options__)\\n\\t } else {\\n\\t hotAPI.reload(\\\"data-v-e514dbc6\\\", __vue_options__)\\n\\t }\\n\\t})()}\\n\\tif (__vue_options__.functional) {console.error(\\\"[vue-loader] Select.vue: functional components are not supported and should be defined in plain js files using render functions.\\\")}\\n\\t\\n\\tmodule.exports = __vue_exports__\\n\\n\\n/***/ },\\n/* 154 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t// style-loader: Adds some css to the DOM by adding a \\\\r\\\\n\\\"],\\\"sourceRoot\\\":\\\"webpack://\\\"}]);\\n\\t\\n\\t// exports\\n\\n\\n/***/ },\\n/* 156 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t'use strict';\\n\\t\\n\\tObject.defineProperty(exports, \\\"__esModule\\\", {\\n\\t value: true\\n\\t});\\n\\t\\n\\tvar _utils = __webpack_require__(65);\\n\\t\\n\\tvar _ClickOutside = __webpack_require__(66);\\n\\t\\n\\tvar _ClickOutside2 = _interopRequireDefault(_ClickOutside);\\n\\t\\n\\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\\n\\t\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t\\n\\tvar timeout = {};\\n\\texports.default = {\\n\\t directives: {\\n\\t ClickOutside: _ClickOutside2.default\\n\\t },\\n\\t props: {\\n\\t clearButton: { type: Boolean, default: false },\\n\\t closeOnSelect: { type: Boolean, default: false },\\n\\t disabled: { type: Boolean, default: false },\\n\\t lang: { type: String, default: navigator.language },\\n\\t limit: { type: Number, default: 1024 },\\n\\t minSearch: { type: Number, default: 0 },\\n\\t multiple: { type: Boolean, default: false },\\n\\t name: { type: String, default: null },\\n\\t options: { type: Array, default: function _default() {\\n\\t return [];\\n\\t }\\n\\t },\\n\\t optionsLabel: { type: String, default: 'label' },\\n\\t optionsValue: { type: String, default: 'value' },\\n\\t parent: { default: true },\\n\\t placeholder: { type: String, default: null },\\n\\t readonly: { type: Boolean, default: null },\\n\\t required: { type: Boolean, default: null },\\n\\t search: { type: Boolean, default: false },\\n\\t searchText: { type: String, default: null },\\n\\t url: { type: String, default: null },\\n\\t value: null\\n\\t },\\n\\t data: function data() {\\n\\t return {\\n\\t list: [],\\n\\t loading: null,\\n\\t searchValue: null,\\n\\t show: false,\\n\\t notify: false,\\n\\t val: null,\\n\\t valid: null\\n\\t };\\n\\t },\\n\\t\\n\\t computed: {\\n\\t canSearch: function canSearch() {\\n\\t return this.minSearch ? this.list.length >= this.minSearch : this.search;\\n\\t },\\n\\t classes: function classes() {\\n\\t return [{ open: this.show, disabled: this.disabled }, this.class, this.isLi ? 'dropdown' : this.inInput ? 'input-group-btn' : 'btn-group'];\\n\\t },\\n\\t filteredOptions: function filteredOptions() {\\n\\t var _this = this;\\n\\t\\n\\t var search = (this.searchValue || '').toLowerCase();\\n\\t return !search ? this.list : this.list.filter(function (el) {\\n\\t return ~el[_this.optionsLabel].toLowerCase().search(search);\\n\\t });\\n\\t },\\n\\t hasParent: function hasParent() {\\n\\t return this.parent instanceof Array ? this.parent.length : this.parent;\\n\\t },\\n\\t inInput: function inInput() {\\n\\t return this.$parent._input;\\n\\t },\\n\\t isLi: function isLi() {\\n\\t return this.$parent._navbar || this.$parent.menu || this.$parent._tabset;\\n\\t },\\n\\t limitText: function limitText() {\\n\\t return this.text.limit.replace('{{limit}}', this.limit);\\n\\t },\\n\\t selected: function selected() {\\n\\t var _this2 = this;\\n\\t\\n\\t if (this.list.length === 0) {\\n\\t return '';\\n\\t }\\n\\t var sel = this.values.map(function (val) {\\n\\t return (_this2.list.find(function (o) {\\n\\t return o[_this2.optionsValue] === val;\\n\\t }) || {})[_this2.optionsLabel];\\n\\t }).filter(function (val) {\\n\\t return val !== undefined;\\n\\t });\\n\\t this.$emit('selected', sel);\\n\\t return sel.join(', ');\\n\\t },\\n\\t showPlaceholder: function showPlaceholder() {\\n\\t return this.values.length === 0 || !this.hasParent ? this.placeholder || this.text.notSelected : null;\\n\\t },\\n\\t text: function text() {\\n\\t return (0, _utils.translations)(this.lang);\\n\\t },\\n\\t values: function values() {\\n\\t return this.val instanceof Array ? this.val : ~[null, undefined].indexOf(this.val) ? [] : [this.val];\\n\\t },\\n\\t valOptions: function valOptions() {\\n\\t var _this3 = this;\\n\\t\\n\\t return this.list.map(function (el) {\\n\\t return el[_this3.optionsValue];\\n\\t });\\n\\t }\\n\\t },\\n\\t watch: {\\n\\t options: function options(_options) {\\n\\t if (_options instanceof Array) this.setOptions(_options);\\n\\t },\\n\\t show: function show(val) {\\n\\t if (val) {\\n\\t this.$refs.search ? this.$refs.search.focus() : this.$refs.btn.focus();\\n\\t // onBlur(this.$refs.select, e => { this.show = false })\\n\\t } else {\\n\\t // offBlur(this.$refs.select)\\n\\t }\\n\\t },\\n\\t url: function url() {\\n\\t this.urlChanged();\\n\\t },\\n\\t valid: function valid(val, old) {\\n\\t this.$emit('isvalid', val);\\n\\t this.$emit(!val ? 'invalid' : 'valid');\\n\\t if (val !== old && this._parent) this._parent.validate();\\n\\t },\\n\\t value: function value(val, old) {\\n\\t if (val !== old) {\\n\\t this.val = val;\\n\\t }\\n\\t },\\n\\t val: function val(_val, old) {\\n\\t var _this4 = this;\\n\\t\\n\\t if (_val === undefined) {\\n\\t this.val = _val = null;\\n\\t }\\n\\t if (_val !== old) {\\n\\t this.$emit('change', _val);\\n\\t this.$emit('input', _val);\\n\\t }\\n\\t if (_val instanceof Array && _val.length > this.limit) {\\n\\t this.val = _val.slice(0, this.limit);\\n\\t this.notify = true;\\n\\t if (timeout.limit) clearTimeout(timeout.limit);\\n\\t timeout.limit = setTimeout(function () {\\n\\t timeout.limit = false;\\n\\t _this4.notify = false;\\n\\t }, 1500);\\n\\t }\\n\\t this.valid = this.validate();\\n\\t }\\n\\t },\\n\\t methods: {\\n\\t close: function close() {\\n\\t this.show = false;\\n\\t },\\n\\t checkData: function checkData() {\\n\\t if (this.multiple) {\\n\\t if (this.limit < 1) {\\n\\t this.limit = 1;\\n\\t }\\n\\t if (!(this.val instanceof Array)) {\\n\\t this.val = this.val === null || this.val === undefined ? [] : [this.val];\\n\\t }\\n\\t var values = this.valOptions;\\n\\t this.val = this.val.filter(function (el) {\\n\\t return ~values.indexOf(el);\\n\\t });\\n\\t if (this.values.length > this.limit) {\\n\\t this.val = this.val.slice(0, this.limit);\\n\\t }\\n\\t } else {\\n\\t if (!~this.valOptions.indexOf(this.val)) {\\n\\t this.val = null;\\n\\t }\\n\\t }\\n\\t },\\n\\t clear: function clear() {\\n\\t if (this.disabled || this.readonly) {\\n\\t return;\\n\\t }\\n\\t this.val = this.val instanceof Array ? [] : null;\\n\\t this.toggle();\\n\\t },\\n\\t clearSearch: function clearSearch() {\\n\\t this.searchValue = '';\\n\\t this.$refs.search.focus();\\n\\t },\\n\\t isSelected: function isSelected(v) {\\n\\t return this.values.indexOf(v) > -1;\\n\\t },\\n\\t select: function select(v) {\\n\\t if (this.val instanceof Array) {\\n\\t var newVal = this.val.slice(0);\\n\\t if (~newVal.indexOf(v)) {\\n\\t newVal.splice(newVal.indexOf(v), 1);\\n\\t } else {\\n\\t newVal.push(v);\\n\\t }\\n\\t this.val = newVal;\\n\\t if (this.closeOnSelect) {\\n\\t this.toggle();\\n\\t }\\n\\t } else {\\n\\t this.val = v;\\n\\t this.toggle();\\n\\t }\\n\\t },\\n\\t setOptions: function setOptions(options) {\\n\\t var _this5 = this;\\n\\t\\n\\t this.list = options.map(function (el) {\\n\\t if (el instanceof Object) {\\n\\t return el;\\n\\t }\\n\\t var obj = {};\\n\\t obj[_this5.optionsLabel] = el;\\n\\t obj[_this5.optionsValue] = el;\\n\\t return obj;\\n\\t });\\n\\t this.$emit('options', this.list);\\n\\t },\\n\\t toggle: function toggle() {\\n\\t this.show = !this.show;\\n\\t if (!this.show) this.$refs.btn.focus();\\n\\t },\\n\\t urlChanged: function urlChanged() {\\n\\t var _this6 = this;\\n\\t\\n\\t if (!this.url || !this.$http) {\\n\\t return;\\n\\t }\\n\\t this.loading = true;\\n\\t this.$http.get(this.url).then(function (response) {\\n\\t var data = response.data instanceof Array ? response.data : [];\\n\\t try {\\n\\t data = JSON.parse(data);\\n\\t } catch (e) {}\\n\\t _this6.setOptions(data);\\n\\t _this6.loading = false;\\n\\t _this6.checkData();\\n\\t }, function (response) {\\n\\t _this6.loading = false;\\n\\t });\\n\\t },\\n\\t validate: function validate() {\\n\\t return !this.required ? true : this.val instanceof Array ? this.val.length > 0 : this.val !== null;\\n\\t }\\n\\t },\\n\\t created: function created() {\\n\\t this.setOptions(this.options);\\n\\t this.val = this.value;\\n\\t this._select = true;\\n\\t if (this.val === undefined || !this.parent) {\\n\\t this.val = null;\\n\\t }\\n\\t if (!this.multiple && this.val instanceof Array) {\\n\\t this.val = this.val[0];\\n\\t }\\n\\t this.checkData();\\n\\t if (this.url) this.urlChanged();\\n\\t var parent = this.$parent;\\n\\t while (parent && !parent._formValidator) {\\n\\t parent = parent.$parent;\\n\\t }\\n\\t if (parent && parent._formValidator) {\\n\\t parent.children.push(this);\\n\\t this._parent = parent;\\n\\t }\\n\\t },\\n\\t mounted: function mounted() {\\n\\t if (this._parent) this._parent.children.push(this);\\n\\t this.setOptions(this.options);\\n\\t this.val = this.value;\\n\\t this.checkData();\\n\\t },\\n\\t beforeDestroy: function beforeDestroy() {\\n\\t if (this._parent) {\\n\\t var index = this._parent.children.indexOf(this);\\n\\t this._parent.children.splice(index, 1);\\n\\t }\\n\\t }\\n\\t};\\n\\n/***/ },\\n/* 157 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\\n\\t return _vm._c('div', {\\n\\t directives: [{\\n\\t name: \\\"click-outside\\\",\\n\\t rawName: \\\"v-click-outside\\\",\\n\\t value: (_vm.close),\\n\\t expression: \\\"close\\\"\\n\\t }],\\n\\t ref: \\\"select\\\",\\n\\t class: _vm.classes\\n\\t }, [_vm._c('div', {\\n\\t ref: \\\"btn\\\",\\n\\t staticClass: \\\"form-control dropdown-toggle\\\",\\n\\t attrs: {\\n\\t \\\"tabindex\\\": \\\"1\\\",\\n\\t \\\"disabled\\\": _vm.disabled || !_vm.hasParent,\\n\\t \\\"readonly\\\": _vm.readonly\\n\\t },\\n\\t on: {\\n\\t \\\"blur\\\": function($event) {\\n\\t _vm.canSearch ? null : _vm.close()\\n\\t },\\n\\t \\\"click\\\": function($event) {\\n\\t _vm.toggle()\\n\\t },\\n\\t \\\"keydown\\\": [function($event) {\\n\\t if (_vm._k($event.keyCode, \\\"esc\\\", 27)) { return; }\\n\\t $event.stopPropagation();\\n\\t $event.preventDefault();\\n\\t _vm.close($event)\\n\\t }, function($event) {\\n\\t if (_vm._k($event.keyCode, \\\"space\\\", 32)) { return; }\\n\\t $event.stopPropagation();\\n\\t $event.preventDefault();\\n\\t _vm.toggle($event)\\n\\t }, function($event) {\\n\\t if (_vm._k($event.keyCode, \\\"enter\\\", 13)) { return; }\\n\\t $event.stopPropagation();\\n\\t $event.preventDefault();\\n\\t _vm.toggle($event)\\n\\t }]\\n\\t }\\n\\t }, [_vm._c('span', {\\n\\t staticClass: \\\"btn-content\\\",\\n\\t domProps: {\\n\\t \\\"innerHTML\\\": _vm._s(_vm.loading ? _vm.text.loading : _vm.showPlaceholder || _vm.selected)\\n\\t }\\n\\t }), _vm._v(\\\" \\\"), (_vm.clearButton && _vm.values.length) ? _vm._c('span', {\\n\\t staticClass: \\\"close\\\",\\n\\t on: {\\n\\t \\\"click\\\": function($event) {\\n\\t _vm.clear()\\n\\t }\\n\\t }\\n\\t }, [_vm._v(\\\"×\\\")]) : _vm._e()]), _vm._v(\\\" \\\"), _vm._c('select', {\\n\\t directives: [{\\n\\t name: \\\"model\\\",\\n\\t rawName: \\\"v-model\\\",\\n\\t value: (_vm.val),\\n\\t expression: \\\"val\\\"\\n\\t }],\\n\\t ref: \\\"sel\\\",\\n\\t staticClass: \\\"secret\\\",\\n\\t attrs: {\\n\\t \\\"name\\\": _vm.name,\\n\\t \\\"multiple\\\": _vm.multiple,\\n\\t \\\"required\\\": _vm.required,\\n\\t \\\"readonly\\\": _vm.readonly,\\n\\t \\\"disabled\\\": _vm.disabled\\n\\t },\\n\\t on: {\\n\\t \\\"change\\\": function($event) {\\n\\t _vm.val = Array.prototype.filter.call($event.target.options, function(o) {\\n\\t return o.selected\\n\\t }).map(function(o) {\\n\\t var val = \\\"_value\\\" in o ? o._value : o.value;\\n\\t return val\\n\\t })[0]\\n\\t }\\n\\t }\\n\\t }, [(_vm.required) ? _vm._c('option', {\\n\\t attrs: {\\n\\t \\\"value\\\": \\\"\\\"\\n\\t }\\n\\t }) : _vm._e(), _vm._v(\\\" \\\"), _vm._l((_vm.list), function(option) {\\n\\t return _vm._c('option', {\\n\\t domProps: {\\n\\t \\\"value\\\": option[_vm.optionsValue]\\n\\t }\\n\\t }, [_vm._v(_vm._s(option[_vm.optionsLabel]))])\\n\\t })], 2), _vm._v(\\\" \\\"), _vm._c('ul', {\\n\\t staticClass: \\\"dropdown-menu\\\"\\n\\t }, [(_vm.list.length) ? [(_vm.canSearch) ? _vm._c('li', {\\n\\t staticClass: \\\"bs-searchbox\\\"\\n\\t }, [_vm._c('input', {\\n\\t directives: [{\\n\\t name: \\\"model\\\",\\n\\t rawName: \\\"v-model\\\",\\n\\t value: (_vm.searchValue),\\n\\t expression: \\\"searchValue\\\"\\n\\t }],\\n\\t ref: \\\"search\\\",\\n\\t staticClass: \\\"form-control\\\",\\n\\t attrs: {\\n\\t \\\"type\\\": \\\"text\\\",\\n\\t \\\"placeholder\\\": _vm.searchText || _vm.text.search,\\n\\t \\\"autocomplete\\\": \\\"off\\\"\\n\\t },\\n\\t domProps: {\\n\\t \\\"value\\\": _vm._s(_vm.searchValue)\\n\\t },\\n\\t on: {\\n\\t \\\"keyup\\\": function($event) {\\n\\t if (_vm._k($event.keyCode, \\\"esc\\\", 27)) { return; }\\n\\t _vm.close($event)\\n\\t },\\n\\t \\\"input\\\": function($event) {\\n\\t if ($event.target.composing) { return; }\\n\\t _vm.searchValue = $event.target.value\\n\\t }\\n\\t }\\n\\t }), _vm._v(\\\" \\\"), _vm._c('span', {\\n\\t directives: [{\\n\\t name: \\\"show\\\",\\n\\t rawName: \\\"v-show\\\",\\n\\t value: (_vm.searchValue),\\n\\t expression: \\\"searchValue\\\"\\n\\t }],\\n\\t staticClass: \\\"close\\\",\\n\\t on: {\\n\\t \\\"click\\\": _vm.clearSearch\\n\\t }\\n\\t }, [_vm._v(\\\"×\\\")])]) : _vm._e(), _vm._v(\\\" \\\"), (_vm.required && !_vm.clearButton) ? _vm._c('li', [_vm._c('a', {\\n\\t on: {\\n\\t \\\"mousedown\\\": function($event) {\\n\\t $event.preventDefault();\\n\\t _vm.clear() && _vm.close()\\n\\t }\\n\\t }\\n\\t }, [_vm._v(_vm._s(_vm.placeholder || _vm.text.notSelected))])]) : _vm._e(), _vm._v(\\\" \\\"), _vm._l((_vm.filteredOptions), function(option) {\\n\\t return _vm._c('li', {\\n\\t attrs: {\\n\\t \\\"id\\\": option[_vm.optionsValue]\\n\\t }\\n\\t }, [_vm._c('a', {\\n\\t on: {\\n\\t \\\"mousedown\\\": function($event) {\\n\\t $event.preventDefault();\\n\\t _vm.select(option[_vm.optionsValue])\\n\\t }\\n\\t }\\n\\t }, [_vm._c('span', {\\n\\t domProps: {\\n\\t \\\"innerHTML\\\": _vm._s(option[_vm.optionsLabel])\\n\\t }\\n\\t }), _vm._v(\\\" \\\"), _vm._c('span', {\\n\\t directives: [{\\n\\t name: \\\"show\\\",\\n\\t rawName: \\\"v-show\\\",\\n\\t value: (_vm.isSelected(option[_vm.optionsValue])),\\n\\t expression: \\\"isSelected(option[optionsValue])\\\"\\n\\t }],\\n\\t staticClass: \\\"glyphicon glyphicon-ok check-mark\\\"\\n\\t })])])\\n\\t })] : _vm._e(), _vm._v(\\\" \\\"), _vm._t(\\\"default\\\"), _vm._v(\\\" \\\"), (_vm.notify && !_vm.closeOnSelect) ? _vm._c('transition', {\\n\\t attrs: {\\n\\t \\\"name\\\": \\\"fadein\\\"\\n\\t }\\n\\t }, [_vm._c('div', {\\n\\t staticClass: \\\"notify in\\\"\\n\\t }, [_vm._v(_vm._s(_vm.limitText))])]) : _vm._e()], 2), _vm._v(\\\" \\\"), (_vm.notify && _vm.closeOnSelect) ? _vm._c('transition', {\\n\\t attrs: {\\n\\t \\\"name\\\": \\\"fadein\\\"\\n\\t }\\n\\t }, [_vm._c('div', {\\n\\t staticClass: \\\"notify out\\\"\\n\\t }, [_vm._c('div', [_vm._v(_vm._s(_vm.limitText))])])]) : _vm._e()], 1)\\n\\t},staticRenderFns: []}\\n\\tif (false) {\\n\\t module.hot.accept()\\n\\t if (module.hot.data) {\\n\\t require(\\\"vue-hot-reload-api\\\").rerender(\\\"data-v-e514dbc6\\\", module.exports)\\n\\t }\\n\\t}\\n\\n/***/ },\\n/* 158 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tvar __vue_exports__, __vue_options__\\n\\tvar __vue_styles__ = {}\\n\\t\\n\\t/* script */\\n\\t__vue_exports__ = __webpack_require__(159)\\n\\t\\n\\t/* template */\\n\\tvar __vue_template__ = __webpack_require__(160)\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\\n\\tif (\\n\\t typeof __vue_exports__.default === \\\"object\\\" ||\\n\\t typeof __vue_exports__.default === \\\"function\\\"\\n\\t) {\\n\\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \\\"default\\\" && key !== \\\"__esModule\\\" })) {console.error(\\\"named exports are not supported in *.vue files.\\\")}\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__.default\\n\\t}\\n\\tif (typeof __vue_options__ === \\\"function\\\") {\\n\\t __vue_options__ = __vue_options__.options\\n\\t}\\n\\t__vue_options__.__file = \\\"C:\\\\\\\\laragon\\\\\\\\www\\\\\\\\vue-strap\\\\\\\\src\\\\\\\\Slider.vue\\\"\\n\\t__vue_options__.render = __vue_template__.render\\n\\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\\n\\t\\n\\t/* hot reload */\\n\\tif (false) {(function () {\\n\\t var hotAPI = require(\\\"vue-hot-reload-api\\\")\\n\\t hotAPI.install(require(\\\"vue\\\"), false)\\n\\t if (!hotAPI.compatible) return\\n\\t module.hot.accept()\\n\\t if (!module.hot.data) {\\n\\t hotAPI.createRecord(\\\"data-v-32185b82\\\", __vue_options__)\\n\\t } else {\\n\\t hotAPI.reload(\\\"data-v-32185b82\\\", __vue_options__)\\n\\t }\\n\\t})()}\\n\\tif (__vue_options__.functional) {console.error(\\\"[vue-loader] Slider.vue: functional components are not supported and should be defined in plain js files using render functions.\\\")}\\n\\t\\n\\tmodule.exports = __vue_exports__\\n\\n\\n/***/ },\\n/* 159 */\\n/***/ function(module, exports) {\\n\\n\\t'use strict';\\n\\t\\n\\tObject.defineProperty(exports, \\\"__esModule\\\", {\\n\\t value: true\\n\\t});\\n\\t//\\n\\t//\\n\\t\\n\\texports.default = {\\n\\t computed: {\\n\\t index: function index() {\\n\\t return this.$parent.$children.indexOf(this);\\n\\t },\\n\\t show: function show() {\\n\\t return this.$parent.index === this.index;\\n\\t }\\n\\t },\\n\\t mounted: function mounted() {\\n\\t if (this.$parent.indicator_list) {\\n\\t this.$parent.indicator_list.push(this.index);\\n\\t }\\n\\t\\n\\t if (this.index === 0) {\\n\\t this.$el.classList.add('active');\\n\\t }\\n\\t }\\n\\t};\\n\\n/***/ },\\n/* 160 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\\n\\t return _vm._c('div', {\\n\\t staticClass: \\\"item\\\"\\n\\t }, [_vm._t(\\\"default\\\")], 2)\\n\\t},staticRenderFns: []}\\n\\tif (false) {\\n\\t module.hot.accept()\\n\\t if (module.hot.data) {\\n\\t require(\\\"vue-hot-reload-api\\\").rerender(\\\"data-v-32185b82\\\", module.exports)\\n\\t }\\n\\t}\\n\\n/***/ },\\n/* 161 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tvar __vue_exports__, __vue_options__\\n\\tvar __vue_styles__ = {}\\n\\t\\n\\t/* styles */\\n\\t__webpack_require__(162)\\n\\t\\n\\t/* script */\\n\\t__vue_exports__ = __webpack_require__(164)\\n\\t\\n\\t/* template */\\n\\tvar __vue_template__ = __webpack_require__(165)\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\\n\\tif (\\n\\t typeof __vue_exports__.default === \\\"object\\\" ||\\n\\t typeof __vue_exports__.default === \\\"function\\\"\\n\\t) {\\n\\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \\\"default\\\" && key !== \\\"__esModule\\\" })) {console.error(\\\"named exports are not supported in *.vue files.\\\")}\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__.default\\n\\t}\\n\\tif (typeof __vue_options__ === \\\"function\\\") {\\n\\t __vue_options__ = __vue_options__.options\\n\\t}\\n\\t__vue_options__.__file = \\\"C:\\\\\\\\laragon\\\\\\\\www\\\\\\\\vue-strap\\\\\\\\src\\\\\\\\Spinner.vue\\\"\\n\\t__vue_options__.render = __vue_template__.render\\n\\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\\n\\t\\n\\t/* hot reload */\\n\\tif (false) {(function () {\\n\\t var hotAPI = require(\\\"vue-hot-reload-api\\\")\\n\\t hotAPI.install(require(\\\"vue\\\"), false)\\n\\t if (!hotAPI.compatible) return\\n\\t module.hot.accept()\\n\\t if (!module.hot.data) {\\n\\t hotAPI.createRecord(\\\"data-v-8b298e70\\\", __vue_options__)\\n\\t } else {\\n\\t hotAPI.reload(\\\"data-v-8b298e70\\\", __vue_options__)\\n\\t }\\n\\t})()}\\n\\tif (__vue_options__.functional) {console.error(\\\"[vue-loader] Spinner.vue: functional components are not supported and should be defined in plain js files using render functions.\\\")}\\n\\t\\n\\tmodule.exports = __vue_exports__\\n\\n\\n/***/ },\\n/* 162 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t// style-loader: Adds some css to the DOM by adding a \\\\r\\\\n\\\"],\\\"sourceRoot\\\":\\\"webpack://\\\"}]);\\n\\t\\n\\t// exports\\n\\n\\n/***/ },\\n/* 164 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t'use strict';\\n\\t\\n\\tObject.defineProperty(exports, \\\"__esModule\\\", {\\n\\t value: true\\n\\t});\\n\\t\\n\\tvar _utils = __webpack_require__(65);\\n\\t\\n\\tvar MIN_WAIT = 500; // in ms\\n\\t\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t\\n\\texports.default = {\\n\\t props: {\\n\\t fixed: { type: Boolean, default: false },\\n\\t global: { type: Boolean, default: false },\\n\\t size: { type: String, default: 'md' },\\n\\t text: { type: String, default: '' },\\n\\t value: { default: false }\\n\\t },\\n\\t data: function data() {\\n\\t return {\\n\\t active: this.value,\\n\\t locked: false\\n\\t };\\n\\t },\\n\\t\\n\\t computed: {\\n\\t spinnerSize: function spinnerSize() {\\n\\t return 'spinner-' + (this.size ? this.size : 'sm');\\n\\t }\\n\\t },\\n\\t watch: {\\n\\t active: function active(val, old) {\\n\\t if (val !== old) this.$emit('input', val);\\n\\t },\\n\\t value: function value(val, old) {\\n\\t if (val !== old) {\\n\\t this[val ? 'show' : 'hide']();\\n\\t }\\n\\t }\\n\\t },\\n\\t methods: {\\n\\t hide: function hide() {\\n\\t var delay = 0;\\n\\t this.active = false;\\n\\t },\\n\\t show: function show(options) {\\n\\t if (options) {\\n\\t if (options.text) {\\n\\t this.text = options.text;\\n\\t }\\n\\t if (options.size) {\\n\\t this.size = options.size;\\n\\t }\\n\\t if (options.fixed) {\\n\\t this.fixed = options.fixed;\\n\\t }\\n\\t }\\n\\t // block scrolling when spinner is on\\n\\t this._body.style.overflowY = 'hidden';\\n\\t // activate spinner\\n\\t this._started = new Date();\\n\\t this.active = true;\\n\\t this.locked = true;\\n\\t this._unlock();\\n\\t }\\n\\t },\\n\\t created: function created() {\\n\\t this._body = document.body;\\n\\t this._bodyOverflow = document.body.style.overflowY;\\n\\t this._unlock = (0, _utils.delayer)(function () {\\n\\t this.locked = false;\\n\\t this._body.style.overflowY = this._bodyOverflow;\\n\\t }, MIN_WAIT);\\n\\t if (this.global) {\\n\\t if (!this.$root._globalSpinner) {\\n\\t this.$root._globalSpinner = true;\\n\\t var self = this;\\n\\t this._global = {\\n\\t hide: function hide() {\\n\\t self.hide();\\n\\t },\\n\\t show: function show() {\\n\\t self.show();\\n\\t }\\n\\t };\\n\\t this.$root.$on('spinner::show', this._global.show);\\n\\t this.$root.$on('spinner::hide', this._global.hide);\\n\\t }\\n\\t }\\n\\t },\\n\\t beforeDestroy: function beforeDestroy() {\\n\\t if (this._global) {\\n\\t this.$root.$off('spinner::show', this._global.show);\\n\\t this.$root.$off('spinner::hide', this._global.hide);\\n\\t delete this.$root._globalSpinner;\\n\\t }\\n\\t clearTimeout(this._spinnerAnimation);\\n\\t this._body.style.overflowY = this._bodyOverflow;\\n\\t }\\n\\t};\\n\\n/***/ },\\n/* 165 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\\n\\t return _vm._c('div', {\\n\\t directives: [{\\n\\t name: \\\"show\\\",\\n\\t rawName: \\\"v-show\\\",\\n\\t value: (_vm.active || _vm.locked),\\n\\t expression: \\\"active||locked\\\"\\n\\t }],\\n\\t class: ['spinner spinner-gritcode', _vm.spinnerSize, {\\n\\t 'spinner-fixed': _vm.fixed\\n\\t }]\\n\\t }, [_vm._c('div', {\\n\\t staticClass: \\\"spinner-wrapper\\\"\\n\\t }, [_vm._c('div', {\\n\\t staticClass: \\\"spinner-circle\\\"\\n\\t }), _vm._v(\\\" \\\"), _vm._c('div', {\\n\\t staticClass: \\\"spinner-text\\\"\\n\\t }, [_vm._v(_vm._s(_vm.text))])])])\\n\\t},staticRenderFns: []}\\n\\tif (false) {\\n\\t module.hot.accept()\\n\\t if (module.hot.data) {\\n\\t require(\\\"vue-hot-reload-api\\\").rerender(\\\"data-v-8b298e70\\\", module.exports)\\n\\t }\\n\\t}\\n\\n/***/ },\\n/* 166 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tvar __vue_exports__, __vue_options__\\n\\tvar __vue_styles__ = {}\\n\\t\\n\\t/* script */\\n\\t__vue_exports__ = __webpack_require__(167)\\n\\t\\n\\t/* template */\\n\\tvar __vue_template__ = __webpack_require__(168)\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\\n\\tif (\\n\\t typeof __vue_exports__.default === \\\"object\\\" ||\\n\\t typeof __vue_exports__.default === \\\"function\\\"\\n\\t) {\\n\\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \\\"default\\\" && key !== \\\"__esModule\\\" })) {console.error(\\\"named exports are not supported in *.vue files.\\\")}\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__.default\\n\\t}\\n\\tif (typeof __vue_options__ === \\\"function\\\") {\\n\\t __vue_options__ = __vue_options__.options\\n\\t}\\n\\t__vue_options__.__file = \\\"C:\\\\\\\\laragon\\\\\\\\www\\\\\\\\vue-strap\\\\\\\\src\\\\\\\\Tab.vue\\\"\\n\\t__vue_options__.render = __vue_template__.render\\n\\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\\n\\t\\n\\t/* hot reload */\\n\\tif (false) {(function () {\\n\\t var hotAPI = require(\\\"vue-hot-reload-api\\\")\\n\\t hotAPI.install(require(\\\"vue\\\"), false)\\n\\t if (!hotAPI.compatible) return\\n\\t module.hot.accept()\\n\\t if (!module.hot.data) {\\n\\t hotAPI.createRecord(\\\"data-v-0985e878\\\", __vue_options__)\\n\\t } else {\\n\\t hotAPI.reload(\\\"data-v-0985e878\\\", __vue_options__)\\n\\t }\\n\\t})()}\\n\\tif (__vue_options__.functional) {console.error(\\\"[vue-loader] Tab.vue: functional components are not supported and should be defined in plain js files using render functions.\\\")}\\n\\t\\n\\tmodule.exports = __vue_exports__\\n\\n\\n/***/ },\\n/* 167 */\\n/***/ function(module, exports) {\\n\\n\\t'use strict';\\n\\t\\n\\tObject.defineProperty(exports, \\\"__esModule\\\", {\\n\\t value: true\\n\\t});\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t\\n\\texports.default = {\\n\\t props: {\\n\\t disabled: { type: Boolean, default: false },\\n\\t header: { type: String }\\n\\t },\\n\\t data: function data() {\\n\\t return {\\n\\t fadein: false\\n\\t };\\n\\t },\\n\\t\\n\\t computed: {\\n\\t active: function active() {\\n\\t var _this = this;\\n\\t\\n\\t var active = !this._tabs || this._tabs.show === this;\\n\\t this.fadein = false;\\n\\t if (active) {\\n\\t setTimeout(function () {\\n\\t _this.fadein = true;\\n\\t }, 0);\\n\\t }\\n\\t return active;\\n\\t },\\n\\t index: function index() {\\n\\t return this._tabs.tabs.indexOf(this);\\n\\t },\\n\\t transition: function transition() {\\n\\t return this._tabs ? this._tabs.effect : null;\\n\\t }\\n\\t },\\n\\t created: function created() {\\n\\t this._isTab = true;\\n\\t var tabs = this;\\n\\t while (!this._tabs && tabs.$parent) {\\n\\t if (tabs._isTabGroup) {\\n\\t tabs.tabs.push(this);\\n\\t this._tabGroup = tabs;\\n\\t }\\n\\t if (tabs._isTabs) {\\n\\t tabs.tabs.push(this);\\n\\t this._tabs = tabs;\\n\\t if (!this._tabGroup) tabs.headers.push(this);\\n\\t }\\n\\t tabs = tabs.$parent;\\n\\t }\\n\\t if (!this._tabs) throw Error('tab depend on tabs.');\\n\\t },\\n\\t beforeDestroy: function beforeDestroy() {\\n\\t var _this2 = this;\\n\\t\\n\\t if (this._tabGroup) {\\n\\t this._tabGroup.tabs = this._tabGroup.tabs.filter(function (el) {\\n\\t return el !== _this2;\\n\\t });\\n\\t }\\n\\t if (this._tabs) {\\n\\t this._tabs.tabs = this._tabs.tabs.filter(function (el) {\\n\\t return el !== _this2;\\n\\t });\\n\\t }\\n\\t if (this._tabs) {\\n\\t if (this._tabs.active === this.index) {\\n\\t this._tabs.index = 0;\\n\\t }\\n\\t if (this._ingroup) {\\n\\t var id = this.$parent.tabs.indexOf(this);\\n\\t if (~id) this.$parent.tabs.splice(id, 1);\\n\\t }\\n\\t }\\n\\t if (this._tabs) {\\n\\t var _id = this._tabs.tabs.indexOf(this);\\n\\t if (~_id) this._tabs.tabs.splice(_id, 1);\\n\\t }\\n\\t }\\n\\t};\\n\\n/***/ },\\n/* 168 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\\n\\t return _vm._c('div', {\\n\\t ref: \\\"panel\\\",\\n\\t class: ['tab-pane', {\\n\\t 'active fade': _vm.active,\\n\\t 'in': _vm.fadein\\n\\t }],\\n\\t attrs: {\\n\\t \\\"role\\\": \\\"tabpanel\\\"\\n\\t }\\n\\t }, [_vm._t(\\\"default\\\")], 2)\\n\\t},staticRenderFns: []}\\n\\tif (false) {\\n\\t module.hot.accept()\\n\\t if (module.hot.data) {\\n\\t require(\\\"vue-hot-reload-api\\\").rerender(\\\"data-v-0985e878\\\", module.exports)\\n\\t }\\n\\t}\\n\\n/***/ },\\n/* 169 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tvar __vue_exports__, __vue_options__\\n\\tvar __vue_styles__ = {}\\n\\t\\n\\t/* styles */\\n\\t__webpack_require__(170)\\n\\t\\n\\t/* script */\\n\\t__vue_exports__ = __webpack_require__(172)\\n\\t\\n\\t/* template */\\n\\tvar __vue_template__ = __webpack_require__(173)\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\\n\\tif (\\n\\t typeof __vue_exports__.default === \\\"object\\\" ||\\n\\t typeof __vue_exports__.default === \\\"function\\\"\\n\\t) {\\n\\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \\\"default\\\" && key !== \\\"__esModule\\\" })) {console.error(\\\"named exports are not supported in *.vue files.\\\")}\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__.default\\n\\t}\\n\\tif (typeof __vue_options__ === \\\"function\\\") {\\n\\t __vue_options__ = __vue_options__.options\\n\\t}\\n\\t__vue_options__.__file = \\\"C:\\\\\\\\laragon\\\\\\\\www\\\\\\\\vue-strap\\\\\\\\src\\\\\\\\TabGroup.vue\\\"\\n\\t__vue_options__.render = __vue_template__.render\\n\\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\\n\\t\\n\\t/* hot reload */\\n\\tif (false) {(function () {\\n\\t var hotAPI = require(\\\"vue-hot-reload-api\\\")\\n\\t hotAPI.install(require(\\\"vue\\\"), false)\\n\\t if (!hotAPI.compatible) return\\n\\t module.hot.accept()\\n\\t if (!module.hot.data) {\\n\\t hotAPI.createRecord(\\\"data-v-55faf3cb\\\", __vue_options__)\\n\\t } else {\\n\\t hotAPI.reload(\\\"data-v-55faf3cb\\\", __vue_options__)\\n\\t }\\n\\t})()}\\n\\tif (__vue_options__.functional) {console.error(\\\"[vue-loader] TabGroup.vue: functional components are not supported and should be defined in plain js files using render functions.\\\")}\\n\\t\\n\\tmodule.exports = __vue_exports__\\n\\n\\n/***/ },\\n/* 170 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t// style-loader: Adds some css to the DOM by adding a \\\\r\\\\n\\\"],\\\"sourceRoot\\\":\\\"webpack://\\\"}]);\\n\\t\\n\\t// exports\\n\\n\\n/***/ },\\n/* 172 */\\n/***/ function(module, exports) {\\n\\n\\t'use strict';\\n\\t\\n\\tObject.defineProperty(exports, \\\"__esModule\\\", {\\n\\t value: true\\n\\t});\\n\\t//\\n\\t//\\n\\t\\n\\texports.default = {\\n\\t props: {\\n\\t disabled: { type: Boolean, default: false },\\n\\t header: { type: String }\\n\\t },\\n\\t data: function data() {\\n\\t return {\\n\\t show: false,\\n\\t tabs: []\\n\\t };\\n\\t },\\n\\t\\n\\t computed: {\\n\\t active: function active() {\\n\\t return ~this.tabs.indexOf(this._tabs.show);\\n\\t }\\n\\t },\\n\\t methods: {\\n\\t blur: function blur() {\\n\\t this.show = false;\\n\\t },\\n\\t toggle: function toggle() {\\n\\t this.show = !this.show;\\n\\t }\\n\\t },\\n\\t created: function created() {\\n\\t this._isTabGroup = true;\\n\\t if (this.$parent) {\\n\\t if (this.$parent._isTabGroup) throw Error('Can\\\\'t nest tab-groups.');\\n\\t if (!this.$parent._isTabs) throw Error('tab-group depend on tabs.');\\n\\t }\\n\\t this._tabs = this.$parent;\\n\\t this._tabs.headers.push(this);\\n\\t }\\n\\t};\\n\\n/***/ },\\n/* 173 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\\n\\t return _vm._c('span', [_vm._t(\\\"default\\\")], 2)\\n\\t},staticRenderFns: []}\\n\\tif (false) {\\n\\t module.hot.accept()\\n\\t if (module.hot.data) {\\n\\t require(\\\"vue-hot-reload-api\\\").rerender(\\\"data-v-55faf3cb\\\", module.exports)\\n\\t }\\n\\t}\\n\\n/***/ },\\n/* 174 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tvar __vue_exports__, __vue_options__\\n\\tvar __vue_styles__ = {}\\n\\t\\n\\t/* styles */\\n\\t__webpack_require__(175)\\n\\t\\n\\t/* script */\\n\\t__vue_exports__ = __webpack_require__(177)\\n\\t\\n\\t/* template */\\n\\tvar __vue_template__ = __webpack_require__(178)\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\\n\\tif (\\n\\t typeof __vue_exports__.default === \\\"object\\\" ||\\n\\t typeof __vue_exports__.default === \\\"function\\\"\\n\\t) {\\n\\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \\\"default\\\" && key !== \\\"__esModule\\\" })) {console.error(\\\"named exports are not supported in *.vue files.\\\")}\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__.default\\n\\t}\\n\\tif (typeof __vue_options__ === \\\"function\\\") {\\n\\t __vue_options__ = __vue_options__.options\\n\\t}\\n\\t__vue_options__.__file = \\\"C:\\\\\\\\laragon\\\\\\\\www\\\\\\\\vue-strap\\\\\\\\src\\\\\\\\Tabs.vue\\\"\\n\\t__vue_options__.render = __vue_template__.render\\n\\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\\n\\t\\n\\t/* hot reload */\\n\\tif (false) {(function () {\\n\\t var hotAPI = require(\\\"vue-hot-reload-api\\\")\\n\\t hotAPI.install(require(\\\"vue\\\"), false)\\n\\t if (!hotAPI.compatible) return\\n\\t module.hot.accept()\\n\\t if (!module.hot.data) {\\n\\t hotAPI.createRecord(\\\"data-v-70100ddf\\\", __vue_options__)\\n\\t } else {\\n\\t hotAPI.reload(\\\"data-v-70100ddf\\\", __vue_options__)\\n\\t }\\n\\t})()}\\n\\tif (__vue_options__.functional) {console.error(\\\"[vue-loader] Tabs.vue: functional components are not supported and should be defined in plain js files using render functions.\\\")}\\n\\t\\n\\tmodule.exports = __vue_exports__\\n\\n\\n/***/ },\\n/* 175 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t// style-loader: Adds some css to the DOM by adding a \\\"],\\\"sourceRoot\\\":\\\"webpack://\\\"}]);\\n\\t\\n\\t// exports\\n\\n\\n/***/ },\\n/* 177 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t'use strict';\\n\\t\\n\\tObject.defineProperty(exports, \\\"__esModule\\\", {\\n\\t value: true\\n\\t});\\n\\t\\n\\tvar _utils = __webpack_require__(65);\\n\\t\\n\\tvar _Dropdown = __webpack_require__(105);\\n\\t\\n\\tvar _Dropdown2 = _interopRequireDefault(_Dropdown);\\n\\t\\n\\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\\n\\t\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t\\n\\texports.default = {\\n\\t components: {\\n\\t dropdown: _Dropdown2.default\\n\\t },\\n\\t props: {\\n\\t // effect: {type: String, default: 'fadein'},\\n\\t justified: false,\\n\\t navStyle: { type: String, default: null },\\n\\t value: { type: Number, default: 0 }\\n\\t },\\n\\t data: function data() {\\n\\t var index = this.value || 0;\\n\\t return {\\n\\t index: index,\\n\\t headers: [],\\n\\t tabs: []\\n\\t };\\n\\t },\\n\\t\\n\\t watch: {\\n\\t index: function index(val) {\\n\\t this.$emit('active', val);\\n\\t this.$emit('input', val);\\n\\t },\\n\\t value: function value(val) {\\n\\t this.index = val;\\n\\t }\\n\\t },\\n\\t computed: {\\n\\t navStyleClass: function navStyleClass() {\\n\\t return ['nav', ~['pills', 'stacked'].indexOf(this.navStyle) ? 'nav-' + this.navStyle : 'nav-tabs', {\\n\\t 'nav-justified': _utils.coerce.boolean(this.justified),\\n\\t 'nav-pills': this.navStyle === 'stacked'\\n\\t }];\\n\\t },\\n\\t show: function show() {\\n\\t return this.tabs[this.index] || this.tabs[0];\\n\\t }\\n\\t },\\n\\t methods: {\\n\\t select: function select(tab) {\\n\\t if (!tab.disabled) {\\n\\t this.index = this.tabs.indexOf(tab);\\n\\t }\\n\\t }\\n\\t },\\n\\t created: function created() {\\n\\t this._isTabs = true;\\n\\t }\\n\\t};\\n\\n/***/ },\\n/* 178 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\\n\\t return _vm._c('div', {\\n\\t attrs: {\\n\\t \\\"tabs\\\": \\\"\\\"\\n\\t }\\n\\t }, [_vm._c('ul', {\\n\\t class: _vm.navStyleClass,\\n\\t attrs: {\\n\\t \\\"role\\\": \\\"tablist\\\"\\n\\t }\\n\\t }, [_vm._l((_vm.headers), function(header) {\\n\\t return [(header._isTab) ? _vm._c('li', {\\n\\t class: {\\n\\t active: header.active, disabled: header.disabled\\n\\t },\\n\\t on: {\\n\\t \\\"click\\\": function($event) {\\n\\t $event.preventDefault();\\n\\t _vm.select(header)\\n\\t }\\n\\t }\\n\\t }, [_vm._t(\\\"header\\\", [_vm._c('a', {\\n\\t attrs: {\\n\\t \\\"href\\\": \\\"#\\\"\\n\\t },\\n\\t domProps: {\\n\\t \\\"innerHTML\\\": _vm._s(header.header)\\n\\t }\\n\\t })])], 2) : _vm._e(), _vm._v(\\\" \\\"), (header._isTabGroup) ? _vm._c('dropdown', {\\n\\t class: {\\n\\t active: header.active\\n\\t },\\n\\t attrs: {\\n\\t \\\"text\\\": header.header,\\n\\t \\\"disabled\\\": header.disabled\\n\\t }\\n\\t }, _vm._l((header.tabs), function(tab) {\\n\\t return _vm._c('li', {\\n\\t class: {\\n\\t disabled: tab.disabled\\n\\t }\\n\\t }, [_vm._c('a', {\\n\\t attrs: {\\n\\t \\\"href\\\": \\\"#\\\"\\n\\t },\\n\\t on: {\\n\\t \\\"click\\\": function($event) {\\n\\t $event.preventDefault();\\n\\t _vm.select(tab)\\n\\t }\\n\\t }\\n\\t }, [_vm._v(_vm._s(tab.header))])])\\n\\t })) : _vm._e()]\\n\\t })], 2), _vm._v(\\\" \\\"), _vm._c('div', {\\n\\t staticClass: \\\"tab-content\\\"\\n\\t }, [_vm._t(\\\"default\\\")], 2)])\\n\\t},staticRenderFns: []}\\n\\tif (false) {\\n\\t module.hot.accept()\\n\\t if (module.hot.data) {\\n\\t require(\\\"vue-hot-reload-api\\\").rerender(\\\"data-v-70100ddf\\\", module.exports)\\n\\t }\\n\\t}\\n\\n/***/ },\\n/* 179 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tvar __vue_exports__, __vue_options__\\n\\tvar __vue_styles__ = {}\\n\\t\\n\\t/* script */\\n\\t__vue_exports__ = __webpack_require__(180)\\n\\t\\n\\t/* template */\\n\\tvar __vue_template__ = __webpack_require__(181)\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\\n\\tif (\\n\\t typeof __vue_exports__.default === \\\"object\\\" ||\\n\\t typeof __vue_exports__.default === \\\"function\\\"\\n\\t) {\\n\\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \\\"default\\\" && key !== \\\"__esModule\\\" })) {console.error(\\\"named exports are not supported in *.vue files.\\\")}\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__.default\\n\\t}\\n\\tif (typeof __vue_options__ === \\\"function\\\") {\\n\\t __vue_options__ = __vue_options__.options\\n\\t}\\n\\t__vue_options__.__file = \\\"C:\\\\\\\\laragon\\\\\\\\www\\\\\\\\vue-strap\\\\\\\\src\\\\\\\\ToggleButton.vue\\\"\\n\\t__vue_options__.render = __vue_template__.render\\n\\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\\n\\t\\n\\t/* hot reload */\\n\\tif (false) {(function () {\\n\\t var hotAPI = require(\\\"vue-hot-reload-api\\\")\\n\\t hotAPI.install(require(\\\"vue\\\"), false)\\n\\t if (!hotAPI.compatible) return\\n\\t module.hot.accept()\\n\\t if (!module.hot.data) {\\n\\t hotAPI.createRecord(\\\"data-v-f034a5f2\\\", __vue_options__)\\n\\t } else {\\n\\t hotAPI.reload(\\\"data-v-f034a5f2\\\", __vue_options__)\\n\\t }\\n\\t})()}\\n\\tif (__vue_options__.functional) {console.error(\\\"[vue-loader] ToggleButton.vue: functional components are not supported and should be defined in plain js files using render functions.\\\")}\\n\\t\\n\\tmodule.exports = __vue_exports__\\n\\n\\n/***/ },\\n/* 180 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t'use strict';\\n\\t\\n\\tObject.defineProperty(exports, \\\"__esModule\\\", {\\n\\t value: true\\n\\t});\\n\\t\\n\\tvar _utils = __webpack_require__(65);\\n\\t\\n\\texports.default = {\\n\\t props: {\\n\\t disabled: { default: null },\\n\\t falseType: { default: null },\\n\\t name: null,\\n\\t readonly: { default: null },\\n\\t trueType: { default: 'primary' },\\n\\t value: false\\n\\t },\\n\\t data: function data() {\\n\\t return {\\n\\t active: _utils.coerce.boolean(this.value),\\n\\t types: {\\n\\t danger: 'btn-danger',\\n\\t info: 'btn-info',\\n\\t primary: 'btn-primary',\\n\\t success: 'btn-success',\\n\\t warning: 'btn-warning'\\n\\t }\\n\\t };\\n\\t },\\n\\t\\n\\t watch: {\\n\\t active: function active(val, old) {\\n\\t if (val !== old) {\\n\\t this.$emit('changed', val);\\n\\t this.$emit(val ? 'enabled' : 'disabled');\\n\\t this.$emit('input', val);\\n\\t }\\n\\t },\\n\\t value: function value(val, old) {\\n\\t if (val !== old) {\\n\\t this.active = _utils.coerce.boolean(this.value);\\n\\t }\\n\\t }\\n\\t },\\n\\t computed: {\\n\\t boolDisabled: function boolDisabled() {\\n\\t return _utils.coerce.boolean(this.disabled);\\n\\t },\\n\\t boolReadonly: function boolReadonly() {\\n\\t return _utils.coerce.boolean(this.readonly);\\n\\t },\\n\\t type: function type() {\\n\\t return this.types[this.value ? this.trueType : this.falseType] || 'btn-default';\\n\\t }\\n\\t },\\n\\t methods: {\\n\\t toggle: function toggle() {\\n\\t if (this.boolDisabled || this.boolReadonly) {\\n\\t return;\\n\\t }\\n\\t this.active = !this.active;\\n\\t }\\n\\t }\\n\\t}; //\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\n/***/ },\\n/* 181 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\\n\\t return _vm._c('a', {\\n\\t class: ['btn', _vm.type, {\\n\\t readonly: _vm.boolReadonly\\n\\t }],\\n\\t attrs: {\\n\\t \\\"href\\\": \\\"javascript:void(0)\\\",\\n\\t \\\"disabled\\\": _vm.boolDisabled\\n\\t },\\n\\t on: {\\n\\t \\\"click\\\": _vm.toggle\\n\\t }\\n\\t }, [_vm._c('span', {\\n\\t class: ['glyphicon', 'glyphicon-' + (_vm.value ? 'ok' : 'remove')]\\n\\t }), _vm._v(\\\" \\\"), _vm._t(\\\"default\\\"), _vm._v(\\\" \\\"), (_vm.name) ? _vm._c('input', {\\n\\t attrs: {\\n\\t \\\"type\\\": \\\"hidden\\\",\\n\\t \\\"name\\\": _vm.name\\n\\t },\\n\\t domProps: {\\n\\t \\\"value\\\": _vm.active ? 1 : 0\\n\\t }\\n\\t }) : _vm._e()], 2)\\n\\t},staticRenderFns: []}\\n\\tif (false) {\\n\\t module.hot.accept()\\n\\t if (module.hot.data) {\\n\\t require(\\\"vue-hot-reload-api\\\").rerender(\\\"data-v-f034a5f2\\\", module.exports)\\n\\t }\\n\\t}\\n\\n/***/ },\\n/* 182 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tvar __vue_exports__, __vue_options__\\n\\tvar __vue_styles__ = {}\\n\\t\\n\\t/* styles */\\n\\t__webpack_require__(183)\\n\\t\\n\\t/* script */\\n\\t__vue_exports__ = __webpack_require__(185)\\n\\t\\n\\t/* template */\\n\\tvar __vue_template__ = __webpack_require__(186)\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\\n\\tif (\\n\\t typeof __vue_exports__.default === \\\"object\\\" ||\\n\\t typeof __vue_exports__.default === \\\"function\\\"\\n\\t) {\\n\\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \\\"default\\\" && key !== \\\"__esModule\\\" })) {console.error(\\\"named exports are not supported in *.vue files.\\\")}\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__.default\\n\\t}\\n\\tif (typeof __vue_options__ === \\\"function\\\") {\\n\\t __vue_options__ = __vue_options__.options\\n\\t}\\n\\t__vue_options__.__file = \\\"C:\\\\\\\\laragon\\\\\\\\www\\\\\\\\vue-strap\\\\\\\\src\\\\\\\\Tooltip.vue\\\"\\n\\t__vue_options__.render = __vue_template__.render\\n\\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\\n\\t\\n\\t/* hot reload */\\n\\tif (false) {(function () {\\n\\t var hotAPI = require(\\\"vue-hot-reload-api\\\")\\n\\t hotAPI.install(require(\\\"vue\\\"), false)\\n\\t if (!hotAPI.compatible) return\\n\\t module.hot.accept()\\n\\t if (!module.hot.data) {\\n\\t hotAPI.createRecord(\\\"data-v-48fb51b2\\\", __vue_options__)\\n\\t } else {\\n\\t hotAPI.reload(\\\"data-v-48fb51b2\\\", __vue_options__)\\n\\t }\\n\\t})()}\\n\\tif (__vue_options__.functional) {console.error(\\\"[vue-loader] Tooltip.vue: functional components are not supported and should be defined in plain js files using render functions.\\\")}\\n\\t\\n\\tmodule.exports = __vue_exports__\\n\\n\\n/***/ },\\n/* 183 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t// style-loader: Adds some css to the DOM by adding a \\\\r\\\\n\\\"],\\\"sourceRoot\\\":\\\"webpack://\\\"}]);\\n\\t\\n\\t// exports\\n\\n\\n/***/ },\\n/* 185 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t'use strict';\\n\\t\\n\\tObject.defineProperty(exports, \\\"__esModule\\\", {\\n\\t value: true\\n\\t});\\n\\t\\n\\tvar _popoverMixins = __webpack_require__(143);\\n\\t\\n\\tvar _popoverMixins2 = _interopRequireDefault(_popoverMixins);\\n\\t\\n\\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\\n\\t\\n\\texports.default = {\\n\\t mixins: [_popoverMixins2.default],\\n\\t props: {\\n\\t effect: { type: String, default: 'scale' },\\n\\t trigger: { type: String, default: 'hover' }\\n\\t }\\n\\t}; //\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\n/***/ },\\n/* 186 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\\n\\t return _vm._c('span', {\\n\\t ref: \\\"trigger\\\"\\n\\t }, [_vm._t(\\\"default\\\"), _vm._v(\\\" \\\"), _vm._c('transition', {\\n\\t attrs: {\\n\\t \\\"name\\\": _vm.effect\\n\\t }\\n\\t }, [(_vm.show) ? _vm._c('div', {\\n\\t ref: \\\"popover\\\",\\n\\t class: ['tooltip', _vm.placement]\\n\\t }, [_vm._c('div', {\\n\\t staticClass: \\\"tooltip-arrow\\\"\\n\\t }), _vm._v(\\\" \\\"), _vm._c('div', {\\n\\t staticClass: \\\"tooltip-inner\\\"\\n\\t }, [_vm._t(\\\"content\\\", [_vm._c('div', {\\n\\t domProps: {\\n\\t \\\"innerHTML\\\": _vm._s(_vm.content)\\n\\t }\\n\\t })])], 2)]) : _vm._e()])], 2)\\n\\t},staticRenderFns: []}\\n\\tif (false) {\\n\\t module.hot.accept()\\n\\t if (module.hot.data) {\\n\\t require(\\\"vue-hot-reload-api\\\").rerender(\\\"data-v-48fb51b2\\\", module.exports)\\n\\t }\\n\\t}\\n\\n/***/ },\\n/* 187 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tvar __vue_exports__, __vue_options__\\n\\tvar __vue_styles__ = {}\\n\\t\\n\\t/* styles */\\n\\t__webpack_require__(188)\\n\\t\\n\\t/* script */\\n\\t__vue_exports__ = __webpack_require__(190)\\n\\t\\n\\t/* template */\\n\\tvar __vue_template__ = __webpack_require__(206)\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__ || {}\\n\\tif (\\n\\t typeof __vue_exports__.default === \\\"object\\\" ||\\n\\t typeof __vue_exports__.default === \\\"function\\\"\\n\\t) {\\n\\tif (Object.keys(__vue_exports__).some(function (key) { return key !== \\\"default\\\" && key !== \\\"__esModule\\\" })) {console.error(\\\"named exports are not supported in *.vue files.\\\")}\\n\\t__vue_options__ = __vue_exports__ = __vue_exports__.default\\n\\t}\\n\\tif (typeof __vue_options__ === \\\"function\\\") {\\n\\t __vue_options__ = __vue_options__.options\\n\\t}\\n\\t__vue_options__.__file = \\\"C:\\\\\\\\laragon\\\\\\\\www\\\\\\\\vue-strap\\\\\\\\src\\\\\\\\Typeahead.vue\\\"\\n\\t__vue_options__.render = __vue_template__.render\\n\\t__vue_options__.staticRenderFns = __vue_template__.staticRenderFns\\n\\t\\n\\t/* hot reload */\\n\\tif (false) {(function () {\\n\\t var hotAPI = require(\\\"vue-hot-reload-api\\\")\\n\\t hotAPI.install(require(\\\"vue\\\"), false)\\n\\t if (!hotAPI.compatible) return\\n\\t module.hot.accept()\\n\\t if (!module.hot.data) {\\n\\t hotAPI.createRecord(\\\"data-v-5b5f5e94\\\", __vue_options__)\\n\\t } else {\\n\\t hotAPI.reload(\\\"data-v-5b5f5e94\\\", __vue_options__)\\n\\t }\\n\\t})()}\\n\\tif (__vue_options__.functional) {console.error(\\\"[vue-loader] Typeahead.vue: functional components are not supported and should be defined in plain js files using render functions.\\\")}\\n\\t\\n\\tmodule.exports = __vue_exports__\\n\\n\\n/***/ },\\n/* 188 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t// style-loader: Adds some css to the DOM by adding a \\\"],\\\"sourceRoot\\\":\\\"webpack://\\\"}]);\\n\\t\\n\\t// exports\\n\\n\\n/***/ },\\n/* 190 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t'use strict';\\n\\t\\n\\tObject.defineProperty(exports, \\\"__esModule\\\", {\\n\\t value: true\\n\\t});\\n\\t\\n\\tvar _typeof2 = __webpack_require__(191);\\n\\t\\n\\tvar _typeof3 = _interopRequireDefault(_typeof2);\\n\\t\\n\\tvar _utils = __webpack_require__(65);\\n\\t\\n\\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\\n\\t\\n\\tvar DELAY = 300; //\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t//\\n\\t\\n\\texports.default = {\\n\\t props: {\\n\\t async: { type: String },\\n\\t data: { type: Array },\\n\\t delay: { type: Number, default: DELAY },\\n\\t asyncKey: { type: String, default: null },\\n\\t limit: { type: Number, default: 8 },\\n\\t matchCase: { type: Boolean, default: false },\\n\\t matchStart: { type: Boolean, default: false },\\n\\t onHit: {\\n\\t type: Function,\\n\\t default: function _default(item) {\\n\\t this.reset();\\n\\t this.value = item;\\n\\t }\\n\\t },\\n\\t placeholder: { type: String },\\n\\t template: { type: String },\\n\\t value: { type: String, default: '' }\\n\\t },\\n\\t data: function data() {\\n\\t return {\\n\\t showDropdown: false,\\n\\t noResults: true,\\n\\t current: 0,\\n\\t items: [],\\n\\t val: ''\\n\\t };\\n\\t },\\n\\t\\n\\t computed: {\\n\\t templateHtml: function templateHtml() {\\n\\t return typeof this.template === 'string' ? '' + this.template + '' : null;\\n\\t },\\n\\t tmpl: function tmpl() {\\n\\t return this._tmpl;\\n\\t }\\n\\t },\\n\\t watch: {\\n\\t val: function val(_val, old) {\\n\\t this.$emit('input', _val);\\n\\t if (_val !== old) this._update();\\n\\t },\\n\\t value: function value(val) {\\n\\t if (this.val !== val) {\\n\\t this.val = val;\\n\\t }\\n\\t }\\n\\t },\\n\\t methods: {\\n\\t setItems: function setItems(data) {\\n\\t var _this = this;\\n\\t\\n\\t if (this.async) {\\n\\t this.items = this.asyncKey ? data[this.asyncKey] : data;\\n\\t this.items = this.items.slice(0, this.limit);\\n\\t } else {\\n\\t this.items = (data || []).filter(function (value) {\\n\\t if ((typeof value === 'undefined' ? 'undefined' : (0, _typeof3.default)(value)) === 'object') {\\n\\t return true;\\n\\t }\\n\\t value = _this.matchCase ? value : value.toLowerCase();\\n\\t var query = _this.matchCase ? _this.val : _this.val.toLowerCase();\\n\\t return _this.matchStart ? value.indexOf(query) === 0 : value.indexOf(query) !== -1;\\n\\t }).slice(0, this.limit);\\n\\t }\\n\\t this.showDropdown = this.items.length > 0;\\n\\t },\\n\\t reset: function reset() {\\n\\t this.items = [];\\n\\t this.val = '';\\n\\t this.loading = false;\\n\\t this.showDropdown = false;\\n\\t },\\n\\t setActive: function setActive(index) {\\n\\t this.current = index;\\n\\t },\\n\\t isActive: function isActive(index) {\\n\\t return this.current === index;\\n\\t },\\n\\t hit: function hit(e) {\\n\\t e.preventDefault();\\n\\t this.onHit(this.items[this.current], this);\\n\\t },\\n\\t up: function up() {\\n\\t if (this.current > 0) this.current--;\\n\\t },\\n\\t down: function down() {\\n\\t if (this.current < this.items.length - 1) this.current++;\\n\\t }\\n\\t },\\n\\t created: function created() {\\n\\t this.val = this.value;\\n\\t this._tmpl = {\\n\\t template: this.templateHtml || '',\\n\\t props: {\\n\\t item: { default: null }\\n\\t }\\n\\t };\\n\\t this._update = (0, _utils.delayer)(function () {\\n\\t var _this2 = this;\\n\\t\\n\\t if (!this.val) {\\n\\t this.reset();\\n\\t return false;\\n\\t }\\n\\t if (this.async) {\\n\\t (0, _utils.getJSON)(this.async + this.val).then(function (data) {\\n\\t _this2.setItems(data);\\n\\t });\\n\\t } else if (this.data) {\\n\\t this.setItems(this.data);\\n\\t }\\n\\t }, 'delay', DELAY);\\n\\t this._update();\\n\\t }\\n\\t};\\n\\n/***/ },\\n/* 191 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t\\\"use strict\\\";\\n\\t\\n\\texports.__esModule = true;\\n\\t\\n\\tvar _iterator = __webpack_require__(20);\\n\\t\\n\\tvar _iterator2 = _interopRequireDefault(_iterator);\\n\\t\\n\\tvar _symbol = __webpack_require__(192);\\n\\t\\n\\tvar _symbol2 = _interopRequireDefault(_symbol);\\n\\t\\n\\tvar _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; };\\n\\t\\n\\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\\n\\t\\n\\texports.default = typeof _symbol2.default === \\\"function\\\" && _typeof(_iterator2.default) === \\\"symbol\\\" ? function (obj) {\\n\\t return typeof obj === \\\"undefined\\\" ? \\\"undefined\\\" : _typeof(obj);\\n\\t} : function (obj) {\\n\\t return obj && typeof _symbol2.default === \\\"function\\\" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? \\\"symbol\\\" : typeof obj === \\\"undefined\\\" ? \\\"undefined\\\" : _typeof(obj);\\n\\t};\\n\\n/***/ },\\n/* 192 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tmodule.exports = { \\\"default\\\": __webpack_require__(193), __esModule: true };\\n\\n/***/ },\\n/* 193 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t__webpack_require__(194);\\n\\t__webpack_require__(203);\\n\\t__webpack_require__(204);\\n\\t__webpack_require__(205);\\n\\tmodule.exports = __webpack_require__(7).Symbol;\\n\\n/***/ },\\n/* 194 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t'use strict';\\n\\t// ECMAScript 6 symbols shim\\n\\tvar global = __webpack_require__(6)\\n\\t , has = __webpack_require__(29)\\n\\t , DESCRIPTORS = __webpack_require__(15)\\n\\t , $export = __webpack_require__(5)\\n\\t , redefine = __webpack_require__(28)\\n\\t , META = __webpack_require__(195).KEY\\n\\t , $fails = __webpack_require__(16)\\n\\t , shared = __webpack_require__(43)\\n\\t , setToStringTag = __webpack_require__(47)\\n\\t , uid = __webpack_require__(44)\\n\\t , wks = __webpack_require__(48)\\n\\t , wksExt = __webpack_require__(55)\\n\\t , wksDefine = __webpack_require__(196)\\n\\t , keyOf = __webpack_require__(197)\\n\\t , enumKeys = __webpack_require__(198)\\n\\t , isArray = __webpack_require__(201)\\n\\t , anObject = __webpack_require__(12)\\n\\t , toIObject = __webpack_require__(36)\\n\\t , toPrimitive = __webpack_require__(18)\\n\\t , createDesc = __webpack_require__(19)\\n\\t , _create = __webpack_require__(32)\\n\\t , gOPNExt = __webpack_require__(60)\\n\\t , $GOPD = __webpack_require__(202)\\n\\t , $DP = __webpack_require__(11)\\n\\t , $keys = __webpack_require__(34)\\n\\t , gOPD = $GOPD.f\\n\\t , dP = $DP.f\\n\\t , gOPN = gOPNExt.f\\n\\t , $Symbol = global.Symbol\\n\\t , $JSON = global.JSON\\n\\t , _stringify = $JSON && $JSON.stringify\\n\\t , PROTOTYPE = 'prototype'\\n\\t , HIDDEN = wks('_hidden')\\n\\t , TO_PRIMITIVE = wks('toPrimitive')\\n\\t , isEnum = {}.propertyIsEnumerable\\n\\t , SymbolRegistry = shared('symbol-registry')\\n\\t , AllSymbols = shared('symbols')\\n\\t , OPSymbols = shared('op-symbols')\\n\\t , ObjectProto = Object[PROTOTYPE]\\n\\t , USE_NATIVE = typeof $Symbol == 'function'\\n\\t , QObject = global.QObject;\\n\\t// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173\\n\\tvar setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;\\n\\t\\n\\t// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\\n\\tvar setSymbolDesc = DESCRIPTORS && $fails(function(){\\n\\t return _create(dP({}, 'a', {\\n\\t get: function(){ return dP(this, 'a', {value: 7}).a; }\\n\\t })).a != 7;\\n\\t}) ? function(it, key, D){\\n\\t var protoDesc = gOPD(ObjectProto, key);\\n\\t if(protoDesc)delete ObjectProto[key];\\n\\t dP(it, key, D);\\n\\t if(protoDesc && it !== ObjectProto)dP(ObjectProto, key, protoDesc);\\n\\t} : dP;\\n\\t\\n\\tvar wrap = function(tag){\\n\\t var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);\\n\\t sym._k = tag;\\n\\t return sym;\\n\\t};\\n\\t\\n\\tvar isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function(it){\\n\\t return typeof it == 'symbol';\\n\\t} : function(it){\\n\\t return it instanceof $Symbol;\\n\\t};\\n\\t\\n\\tvar $defineProperty = function defineProperty(it, key, D){\\n\\t if(it === ObjectProto)$defineProperty(OPSymbols, key, D);\\n\\t anObject(it);\\n\\t key = toPrimitive(key, true);\\n\\t anObject(D);\\n\\t if(has(AllSymbols, key)){\\n\\t if(!D.enumerable){\\n\\t if(!has(it, HIDDEN))dP(it, HIDDEN, createDesc(1, {}));\\n\\t it[HIDDEN][key] = true;\\n\\t } else {\\n\\t if(has(it, HIDDEN) && it[HIDDEN][key])it[HIDDEN][key] = false;\\n\\t D = _create(D, {enumerable: createDesc(0, false)});\\n\\t } return setSymbolDesc(it, key, D);\\n\\t } return dP(it, key, D);\\n\\t};\\n\\tvar $defineProperties = function defineProperties(it, P){\\n\\t anObject(it);\\n\\t var keys = enumKeys(P = toIObject(P))\\n\\t , i = 0\\n\\t , l = keys.length\\n\\t , key;\\n\\t while(l > i)$defineProperty(it, key = keys[i++], P[key]);\\n\\t return it;\\n\\t};\\n\\tvar $create = function create(it, P){\\n\\t return P === undefined ? _create(it) : $defineProperties(_create(it), P);\\n\\t};\\n\\tvar $propertyIsEnumerable = function propertyIsEnumerable(key){\\n\\t var E = isEnum.call(this, key = toPrimitive(key, true));\\n\\t if(this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key))return false;\\n\\t return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;\\n\\t};\\n\\tvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key){\\n\\t it = toIObject(it);\\n\\t key = toPrimitive(key, true);\\n\\t if(it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key))return;\\n\\t var D = gOPD(it, key);\\n\\t if(D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key]))D.enumerable = true;\\n\\t return D;\\n\\t};\\n\\tvar $getOwnPropertyNames = function getOwnPropertyNames(it){\\n\\t var names = gOPN(toIObject(it))\\n\\t , result = []\\n\\t , i = 0\\n\\t , key;\\n\\t while(names.length > i){\\n\\t if(!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META)result.push(key);\\n\\t } return result;\\n\\t};\\n\\tvar $getOwnPropertySymbols = function getOwnPropertySymbols(it){\\n\\t var IS_OP = it === ObjectProto\\n\\t , names = gOPN(IS_OP ? OPSymbols : toIObject(it))\\n\\t , result = []\\n\\t , i = 0\\n\\t , key;\\n\\t while(names.length > i){\\n\\t if(has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true))result.push(AllSymbols[key]);\\n\\t } return result;\\n\\t};\\n\\t\\n\\t// 19.4.1.1 Symbol([description])\\n\\tif(!USE_NATIVE){\\n\\t $Symbol = function Symbol(){\\n\\t if(this instanceof $Symbol)throw TypeError('Symbol is not a constructor!');\\n\\t var tag = uid(arguments.length > 0 ? arguments[0] : undefined);\\n\\t var $set = function(value){\\n\\t if(this === ObjectProto)$set.call(OPSymbols, value);\\n\\t if(has(this, HIDDEN) && has(this[HIDDEN], tag))this[HIDDEN][tag] = false;\\n\\t setSymbolDesc(this, tag, createDesc(1, value));\\n\\t };\\n\\t if(DESCRIPTORS && setter)setSymbolDesc(ObjectProto, tag, {configurable: true, set: $set});\\n\\t return wrap(tag);\\n\\t };\\n\\t redefine($Symbol[PROTOTYPE], 'toString', function toString(){\\n\\t return this._k;\\n\\t });\\n\\t\\n\\t $GOPD.f = $getOwnPropertyDescriptor;\\n\\t $DP.f = $defineProperty;\\n\\t __webpack_require__(61).f = gOPNExt.f = $getOwnPropertyNames;\\n\\t __webpack_require__(200).f = $propertyIsEnumerable;\\n\\t __webpack_require__(199).f = $getOwnPropertySymbols;\\n\\t\\n\\t if(DESCRIPTORS && !__webpack_require__(27)){\\n\\t redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);\\n\\t }\\n\\t\\n\\t wksExt.f = function(name){\\n\\t return wrap(wks(name));\\n\\t }\\n\\t}\\n\\t\\n\\t$export($export.G + $export.W + $export.F * !USE_NATIVE, {Symbol: $Symbol});\\n\\t\\n\\tfor(var symbols = (\\n\\t // 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\\n\\t 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'\\n\\t).split(','), i = 0; symbols.length > i; )wks(symbols[i++]);\\n\\t\\n\\tfor(var symbols = $keys(wks.store), i = 0; symbols.length > i; )wksDefine(symbols[i++]);\\n\\t\\n\\t$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {\\n\\t // 19.4.2.1 Symbol.for(key)\\n\\t 'for': function(key){\\n\\t return has(SymbolRegistry, key += '')\\n\\t ? SymbolRegistry[key]\\n\\t : SymbolRegistry[key] = $Symbol(key);\\n\\t },\\n\\t // 19.4.2.5 Symbol.keyFor(sym)\\n\\t keyFor: function keyFor(key){\\n\\t if(isSymbol(key))return keyOf(SymbolRegistry, key);\\n\\t throw TypeError(key + ' is not a symbol!');\\n\\t },\\n\\t useSetter: function(){ setter = true; },\\n\\t useSimple: function(){ setter = false; }\\n\\t});\\n\\t\\n\\t$export($export.S + $export.F * !USE_NATIVE, 'Object', {\\n\\t // 19.1.2.2 Object.create(O [, Properties])\\n\\t create: $create,\\n\\t // 19.1.2.4 Object.defineProperty(O, P, Attributes)\\n\\t defineProperty: $defineProperty,\\n\\t // 19.1.2.3 Object.defineProperties(O, Properties)\\n\\t defineProperties: $defineProperties,\\n\\t // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\\n\\t getOwnPropertyDescriptor: $getOwnPropertyDescriptor,\\n\\t // 19.1.2.7 Object.getOwnPropertyNames(O)\\n\\t getOwnPropertyNames: $getOwnPropertyNames,\\n\\t // 19.1.2.8 Object.getOwnPropertySymbols(O)\\n\\t getOwnPropertySymbols: $getOwnPropertySymbols\\n\\t});\\n\\t\\n\\t// 24.3.2 JSON.stringify(value [, replacer [, space]])\\n\\t$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function(){\\n\\t var S = $Symbol();\\n\\t // MS Edge converts symbol values to JSON as {}\\n\\t // WebKit converts symbol values to JSON as null\\n\\t // V8 throws on boxed symbols\\n\\t return _stringify([S]) != '[null]' || _stringify({a: S}) != '{}' || _stringify(Object(S)) != '{}';\\n\\t})), 'JSON', {\\n\\t stringify: function stringify(it){\\n\\t if(it === undefined || isSymbol(it))return; // IE8 returns string on undefined\\n\\t var args = [it]\\n\\t , i = 1\\n\\t , replacer, $replacer;\\n\\t while(arguments.length > i)args.push(arguments[i++]);\\n\\t replacer = args[1];\\n\\t if(typeof replacer == 'function')$replacer = replacer;\\n\\t if($replacer || !isArray(replacer))replacer = function(key, value){\\n\\t if($replacer)value = $replacer.call(this, key, value);\\n\\t if(!isSymbol(value))return value;\\n\\t };\\n\\t args[1] = replacer;\\n\\t return _stringify.apply($JSON, args);\\n\\t }\\n\\t});\\n\\t\\n\\t// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)\\n\\t$Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(10)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);\\n\\t// 19.4.3.5 Symbol.prototype[@@toStringTag]\\n\\tsetToStringTag($Symbol, 'Symbol');\\n\\t// 20.2.1.9 Math[@@toStringTag]\\n\\tsetToStringTag(Math, 'Math', true);\\n\\t// 24.3.3 JSON[@@toStringTag]\\n\\tsetToStringTag(global.JSON, 'JSON', true);\\n\\n/***/ },\\n/* 195 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tvar META = __webpack_require__(44)('meta')\\n\\t , isObject = __webpack_require__(13)\\n\\t , has = __webpack_require__(29)\\n\\t , setDesc = __webpack_require__(11).f\\n\\t , id = 0;\\n\\tvar isExtensible = Object.isExtensible || function(){\\n\\t return true;\\n\\t};\\n\\tvar FREEZE = !__webpack_require__(16)(function(){\\n\\t return isExtensible(Object.preventExtensions({}));\\n\\t});\\n\\tvar setMeta = function(it){\\n\\t setDesc(it, META, {value: {\\n\\t i: 'O' + ++id, // object ID\\n\\t w: {} // weak collections IDs\\n\\t }});\\n\\t};\\n\\tvar fastKey = function(it, create){\\n\\t // return primitive with prefix\\n\\t if(!isObject(it))return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\\n\\t if(!has(it, META)){\\n\\t // can't set metadata to uncaught frozen object\\n\\t if(!isExtensible(it))return 'F';\\n\\t // not necessary to add metadata\\n\\t if(!create)return 'E';\\n\\t // add missing metadata\\n\\t setMeta(it);\\n\\t // return object ID\\n\\t } return it[META].i;\\n\\t};\\n\\tvar getWeak = function(it, create){\\n\\t if(!has(it, META)){\\n\\t // can't set metadata to uncaught frozen object\\n\\t if(!isExtensible(it))return true;\\n\\t // not necessary to add metadata\\n\\t if(!create)return false;\\n\\t // add missing metadata\\n\\t setMeta(it);\\n\\t // return hash weak collections IDs\\n\\t } return it[META].w;\\n\\t};\\n\\t// add metadata on freeze-family methods calling\\n\\tvar onFreeze = function(it){\\n\\t if(FREEZE && meta.NEED && isExtensible(it) && !has(it, META))setMeta(it);\\n\\t return it;\\n\\t};\\n\\tvar meta = module.exports = {\\n\\t KEY: META,\\n\\t NEED: false,\\n\\t fastKey: fastKey,\\n\\t getWeak: getWeak,\\n\\t onFreeze: onFreeze\\n\\t};\\n\\n/***/ },\\n/* 196 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tvar global = __webpack_require__(6)\\n\\t , core = __webpack_require__(7)\\n\\t , LIBRARY = __webpack_require__(27)\\n\\t , wksExt = __webpack_require__(55)\\n\\t , defineProperty = __webpack_require__(11).f;\\n\\tmodule.exports = function(name){\\n\\t var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});\\n\\t if(name.charAt(0) != '_' && !(name in $Symbol))defineProperty($Symbol, name, {value: wksExt.f(name)});\\n\\t};\\n\\n/***/ },\\n/* 197 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tvar getKeys = __webpack_require__(34)\\n\\t , toIObject = __webpack_require__(36);\\n\\tmodule.exports = function(object, el){\\n\\t var O = toIObject(object)\\n\\t , keys = getKeys(O)\\n\\t , length = keys.length\\n\\t , index = 0\\n\\t , key;\\n\\t while(length > index)if(O[key = keys[index++]] === el)return key;\\n\\t};\\n\\n/***/ },\\n/* 198 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t// all enumerable object keys, includes symbols\\n\\tvar getKeys = __webpack_require__(34)\\n\\t , gOPS = __webpack_require__(199)\\n\\t , pIE = __webpack_require__(200);\\n\\tmodule.exports = function(it){\\n\\t var result = getKeys(it)\\n\\t , getSymbols = gOPS.f;\\n\\t if(getSymbols){\\n\\t var symbols = getSymbols(it)\\n\\t , isEnum = pIE.f\\n\\t , i = 0\\n\\t , key;\\n\\t while(symbols.length > i)if(isEnum.call(it, key = symbols[i++]))result.push(key);\\n\\t } return result;\\n\\t};\\n\\n/***/ },\\n/* 199 */\\n/***/ function(module, exports) {\\n\\n\\texports.f = Object.getOwnPropertySymbols;\\n\\n/***/ },\\n/* 200 */\\n/***/ function(module, exports) {\\n\\n\\texports.f = {}.propertyIsEnumerable;\\n\\n/***/ },\\n/* 201 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t// 7.2.2 IsArray(argument)\\n\\tvar cof = __webpack_require__(38);\\n\\tmodule.exports = Array.isArray || function isArray(arg){\\n\\t return cof(arg) == 'Array';\\n\\t};\\n\\n/***/ },\\n/* 202 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tvar pIE = __webpack_require__(200)\\n\\t , createDesc = __webpack_require__(19)\\n\\t , toIObject = __webpack_require__(36)\\n\\t , toPrimitive = __webpack_require__(18)\\n\\t , has = __webpack_require__(29)\\n\\t , IE8_DOM_DEFINE = __webpack_require__(14)\\n\\t , gOPD = Object.getOwnPropertyDescriptor;\\n\\t\\n\\texports.f = __webpack_require__(15) ? gOPD : function getOwnPropertyDescriptor(O, P){\\n\\t O = toIObject(O);\\n\\t P = toPrimitive(P, true);\\n\\t if(IE8_DOM_DEFINE)try {\\n\\t return gOPD(O, P);\\n\\t } catch(e){ /* empty */ }\\n\\t if(has(O, P))return createDesc(!pIE.f.call(O, P), O[P]);\\n\\t};\\n\\n/***/ },\\n/* 203 */\\n/***/ function(module, exports) {\\n\\n\\n\\n/***/ },\\n/* 204 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t__webpack_require__(196)('asyncIterator');\\n\\n/***/ },\\n/* 205 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\t__webpack_require__(196)('observable');\\n\\n/***/ },\\n/* 206 */\\n/***/ function(module, exports, __webpack_require__) {\\n\\n\\tmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;\\n\\t return _vm._c('div', {\\n\\t class: {\\n\\t 'open': _vm.showDropdown\\n\\t },\\n\\t staticStyle: {\\n\\t \\\"position\\\": \\\"relative\\\"\\n\\t }\\n\\t }, [_vm._c('input', {\\n\\t directives: [{\\n\\t name: \\\"model\\\",\\n\\t rawName: \\\"v-model\\\",\\n\\t value: (_vm.val),\\n\\t expression: \\\"val\\\"\\n\\t }],\\n\\t staticClass: \\\"form-control\\\",\\n\\t attrs: {\\n\\t \\\"type\\\": \\\"text\\\",\\n\\t \\\"autocomplete\\\": \\\"off\\\",\\n\\t \\\"placeholder\\\": _vm.placeholder\\n\\t },\\n\\t domProps: {\\n\\t \\\"value\\\": _vm._s(_vm.val)\\n\\t },\\n\\t on: {\\n\\t \\\"blur\\\": function($event) {\\n\\t _vm.showDropdown = false\\n\\t },\\n\\t \\\"keydown\\\": [function($event) {\\n\\t if (_vm._k($event.keyCode, \\\"down\\\", 40)) { return; }\\n\\t _vm.down($event)\\n\\t }, function($event) {\\n\\t if (_vm._k($event.keyCode, \\\"enter\\\", 13)) { return; }\\n\\t _vm.hit($event)\\n\\t }, function($event) {\\n\\t if (_vm._k($event.keyCode, \\\"esc\\\", 27)) { return; }\\n\\t _vm.reset($event)\\n\\t }, function($event) {\\n\\t if (_vm._k($event.keyCode, \\\"up\\\", 38)) { return; }\\n\\t _vm.up($event)\\n\\t }],\\n\\t \\\"input\\\": function($event) {\\n\\t if ($event.target.composing) { return; }\\n\\t _vm.val = $event.target.value\\n\\t }\\n\\t }\\n\\t }), _vm._v(\\\" \\\"), _vm._c('ul', {\\n\\t ref: \\\"dropdown\\\",\\n\\t staticClass: \\\"dropdown-menu\\\"\\n\\t }, _vm._l((_vm.items), function(item, i) {\\n\\t return _vm._c('li', {\\n\\t class: {\\n\\t 'active': _vm.isActive(i)\\n\\t }\\n\\t }, [_vm._c('a', {\\n\\t on: {\\n\\t \\\"mousedown\\\": function($event) {\\n\\t $event.preventDefault();\\n\\t _vm.hit($event)\\n\\t },\\n\\t \\\"mousemove\\\": function($event) {\\n\\t _vm.setActive(i)\\n\\t }\\n\\t }\\n\\t }, [_vm._c(_vm.tmpl, {\\n\\t tag: \\\"component\\\",\\n\\t attrs: {\\n\\t \\\"item\\\": item\\n\\t }\\n\\t })], 1)])\\n\\t }))])\\n\\t},staticRenderFns: []}\\n\\tif (false) {\\n\\t module.hot.accept()\\n\\t if (module.hot.data) {\\n\\t require(\\\"vue-hot-reload-api\\\").rerender(\\\"data-v-5b5f5e94\\\", module.exports)\\n\\t }\\n\\t}\\n\\n/***/ }\\n/******/ ])\\n});\\n;\\n//# sourceMappingURL=vue-strap.js.map//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNDkuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9+L3Z1ZS1zdHJhcC9kaXN0L3Z1ZS1zdHJhcC5qcz9lMTQ3Il0sInNvdXJjZXNDb250ZW50IjpbIihmdW5jdGlvbiB3ZWJwYWNrVW5pdmVyc2FsTW9kdWxlRGVmaW5pdGlvbihyb290LCBmYWN0b3J5KSB7XG5cdGlmKHR5cGVvZiBleHBvcnRzID09PSAnb2JqZWN0JyAmJiB0eXBlb2YgbW9kdWxlID09PSAnb2JqZWN0Jylcblx0XHRtb2R1bGUuZXhwb3J0cyA9IGZhY3RvcnkoKTtcblx0ZWxzZSBpZih0eXBlb2YgZGVmaW5lID09PSAnZnVuY3Rpb24nICYmIGRlZmluZS5hbWQpXG5cdFx0ZGVmaW5lKFtdLCBmYWN0b3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T0gJ3N0cmluZycpIHtcblx0ICAgICAgICBjbGFzc2VzID0gY2xhc3Nlcy50cmltKCkucmVwbGFjZSgvXFxzKy8sICcgJykuc3BsaXQoJyAnKTtcblx0ICAgICAgfVxuXHQgICAgICByZXR1cm4gdGhpcy5lYWNoKGZ1bmN0aW9uIChlbCkge1xuXHQgICAgICAgIHJldHVybiBjbGFzc2VzLmZvckVhY2goZnVuY3Rpb24gKGMpIHtcblx0ICAgICAgICAgIHJldHVybiBlbC5jbGFzc0xpc3RbbWV0aG9kXShjKTtcblx0ICAgICAgICB9KTtcblx0ICAgICAgfSk7XG5cdCAgICB9XG5cdCAgfSwge1xuXHQgICAga2V5OiAnZ2V0Jyxcblx0ICAgIHZhbHVlOiBmdW5jdGlvbiBnZXQocHJvcCkge1xuXHQgICAgICB2YXIgYXJyID0gW107XG5cdCAgICAgIHRoaXMuZWFjaChmdW5jdGlvbiAoZWwpIHtcblx0ICAgICAgICBpZiAoZWwgIT09IG51bGwpIHtcblx0ICAgICAgICAgIGVsID0gZWxbcHJvcF07XG5cdCAgICAgICAgfVxuXHQgICAgICAgIGFyci5wdXNoKGVsKTtcblx0ICAgICAgfSk7XG5cdCAgICAgIHJldHVybiBmbGF0dGVuKGFyciwgdGhpcyk7XG5cdCAgICB9XG5cdCAgfSwge1xuXHQgICAga2V5OiAnc2V0Jyxcblx0ICAgIHZhbHVlOiBmdW5jdGlvbiBzZXQocHJvcCwgdmFsdWUpIHtcblx0ICAgICAgaWYgKHByb3AuY29uc3RydWN0b3IgPT09IE9iamVjdCkge1xuXHQgICAgICAgIHRoaXMuZWFjaChmdW5jdGlvbiAoZWwpIHtcblx0ICAgICAgICAgIGlmIChlbCkge1xuXHQgICAgICAgICAgICBmb3IgKHZhciBrZXkgaW4gcHJvcCkge1xuXHQgICAgICAgICAgICAgIGlmIChrZXkgaW4gZWwpIHtcblx0ICAgICAgICAgICAgICAgIGVsW2tleV0gPSBwcm9wW2tleV07XG5cdCAgICAgICAgICAgICAgfV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uKSA9PT0gLTEpIHtcblx0ICAgICAgICAgICAgdGhpcy5wdXNoKHRva2VuKTtcblx0ICAgICAgICAgICAgdXBkYXRlZCA9IHRydWU7XG5cdCAgICAgICAgICB9XG5cdCAgICAgICAgfSB3aGlsZSAoKytpIDwgbCk7XG5cdFxuXHQgICAgICAgIGlmICh1cGRhdGVkKSB7XG5cdCAgICAgICAgICB0aGlzLl91cGRhdGVDbGFzc05hbWUoKTtcblx0ICAgICAgICB9XG5cdCAgICAgIH07XG5cdCAgICAgIGNsYXNzTGlzdFByb3RvLnJlbW92ZSA9IGZ1bmN0aW9uICgpIHtcblx0ICAgICAgICB2YXIgdG9rZW5zID0gYXJndW1lbnRzLFxuXHQgICAgICAgICAgICBpID0gMCxcblx0ICAgICAgICAgICAgbCA9IHRva2Vucy5sZW5ndGgsXG5cdCAgICAgICAgICAgIHRva2VuLFxuXHQgICAgICAgICAgICB1cGRhdGVkID0gZmFsc2UsXG5cdCAgICAgICAgICAgIGluZGV4O1xuXHQgICAgICAgIGRvIHtcblx0ICAgICAgICAgIHRva2VuID0gdG9rZW5zW2ldICsgXCJcIjtcblx0ICAgICAgICAgIGluZGV4ID0gY2hlY2tUb2tlbkFuZEdldEluZGV4KHRoaXMsIHRva2VuKTtcblx0ICAgICAgICAgIHdoaWxlIChpbmRleCAhPT0gLTEpIHtcblx0ICAgICAgICAgICAgdGhpcy5zcGxpY2UoaW5kZXgsIDEpO1xuXHQgICAgICAgICAgICB1cGRhdGVkID0gdHJ1ZTtcblx0ICAgICAgICAgICAgaW5kZXggPSBjaGVja1Rva2VuQW5kR2V0SW5kZXgodGhpcywgdG9rZW4pO1xuXHQgICAgICAgICAgfVxuXHQgICAgICAgIH0gd2hpbGUgKCsraSA8IGwpO1xuXHRcblx0ICAgICAgICBpZiAodXBkYXRlZCkge1xuXHQgICAgICAgICAgdGhpcy5fdXBkYXRlQ2xhc3NOYW1lKCk7XG5cdCAgICAgICAgfVxuXHQgICAgICB9O1xuXHQgICAgICBj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aW1lLm1vbnRoLCAxKVxcclxcbiAgICAgIGxldCBmaXJzdERheVdlZWsgPSBjdXJyTW9udGhGaXJzdERheS5nZXREYXkoKSArIDFcXHJcXG4gICAgICBpZiAoZmlyc3REYXlXZWVrID09PSAwKSB7XFxyXFxuICAgICAgICBmaXJzdERheVdlZWsgPSA3XFxyXFxuICAgICAgfVxcclxcbiAgICAgIGNvbnN0IGRheUNvdW50ID0gdGhpcy5nZXREYXlDb3VudCh0aW1lLnllYXIsIHRpbWUubW9udGgpXFxyXFxuICAgICAgaWYgKGZpcnN0RGF5V2VlayA+IDEpIHtcXHJcXG4gICAgICAgIGNvbnN0IHByZU1vbnRoID0gdGhpcy5nZXRZZWFyTW9udGgodGltZS55ZWFyLCB0aW1lLm1vbnRoIC0gMSlcXHJcXG4gICAgICAgIGNvbnN0IHByZXZNb250aERheUNvdW50ID0gdGhpcy5nZXREYXlDb3VudChwcmVNb250aC55ZWFyLCBwcmVNb250aC5tb250aClcXHJcXG4gICAgICAgIGZvciAobGV0IGkgPSAxOyBpIDwgZmlyc3REYXlXZWVrOyBpKyspIHtcXHJcXG4gICAgICAgICAgY29uc3QgZGF5VGV4dCA9IHByZXZNb250aERheUNvdW50IC0gZmlyc3REYXlXZWVrICsgaSArIDFcXHJcXG4gICAgICAgICAgY29uc3QgZGF0ZSA9IG5ldyBEYXRlKHByZU1vbnRoLnllYXIsIHByZU1vbnRoLm1vbnRoLCBkYXlUZXh0KVxcclxcbiAgICAgICAgICBsZXQgc2NsYXNzID0gJ2RhdGVwaWNrZXItaXRlbS1ncmF5J1xcclxcbiAgICAgICAgICBpZiAodGhpcy5kaXNhYmxlZERheXNBcnJheS5pbmRleE9mKGRhdGUuZ2V0RGF5KCkpID4gLTEpIHtcXHJcXG4gICAgICAgICAgICBzY2xhc3MgPSAnZGF0ZXBpY2tlci1pdGVtLWRpc2FibGUnXFxyXFxuICAgICAgICAgIH1cXHJcXG4gICAgICAgICAgdGhpcy5kYXRlUmFuZ2UucHVza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lLmdldERhdGUoKVxuXHQgICAgICB9O1xuXHQgICAgICB2YXIgeWVhclN0ciA9IHRpbWUueWVhci50b1N0cmluZygpO1xuXHQgICAgICB2YXIgZmlyc3RZZWFyT2ZEZWNhZGUgPSB5ZWFyU3RyLnN1YnN0cmluZygwLCB5ZWFyU3RyLmxlbmd0aCAtIDEpICsgMCAtIDE7XG5cdCAgICAgIGZvciAodmFyIGkgPSAwOyBpIDwgMTI7IGkrKykge1xuXHQgICAgICAgIHRoaXMuZGVjYWRlUmFuZ2UucHVzaCh7XG5cdCAgICAgICAgICB0ZXh0OiBmaXJzdFllYXJPZkRlY2FkZSArIGlcblx0ICAgICAgICB9KTtcblx0ICAgICAgfVxuXHRcblx0ICAgICAgdmFyIGN1cnJNb250aEZpcnN0RGF5ID0gbmV3IERhdGUodGltZS55ZWFyLCB0aW1lLm1vbnRoLCAxKTtcblx0ICAgICAgdmFyIGZpcnN0RGF5V2VlayA9IGN1cnJNb250aEZpcnN0RGF5LmdldERheSgpICsgMTtcblx0ICAgICAgaWYgKGZpcnN0RGF5V2VlayA9PT0gMCkge1xuXHQgICAgICAgIGZpcnN0RGF5V2VlayA9IDc7XG5cdCAgICAgIH1cblx0ICAgICAgdmFyIGRheUNvdW50ID0gdGhpcy5nZXREYXlDb3VudCh0aW1lLnllYXIsIHRpbWUubW9udGgpO1xuXHQgICAgICBpZiAoZmlyc3REYXlXZWVrID4gMSkge1xuXHQgICAgICAgIHZhciBwcmVNb250aCA9IHRoaXMuZ2V0WWVhck1vbnRoKHRpbWUueWVhciwgdGltZS5tb250aCAtIDEpO1xuXHQgICAgICAgIHZhciBwcmV2TW9udGhEYXlDb3VudCA9IHRoaXMuZ2V0RGF5Q291bnQocHJlTW9udGgueWVhciwgcHJlTW9udGgubW9udGgpO1xuXHQgICAgICAgIGZvciAodmFyIF9pID0gMTsgX2kgPCBmaXJzdERheVdlZWs7IF9pKyspIHtcblx0ICAgICAgICAgIHZhciBkYXlUZXh0ID0gcHJldk1vbn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G9jb21wbGV0ZVwiOiBcIm9mZlwiLFxuXHQgICAgICBcInBsYWNlaG9sZGVyXCI6IF92bS5wbGFjZWhvbGRlclxuXHQgICAgfSxcblx0ICAgIGRvbVByb3BzOiB7XG5cdCAgICAgIFwidmFsdWVcIjogX3ZtLl9zKF92bS52YWwpXG5cdCAgICB9LFxuXHQgICAgb246IHtcblx0ICAgICAgXCJibHVyXCI6IGZ1bmN0aW9uKCRldmVudCkge1xuXHQgICAgICAgIF92bS5zaG93RHJvcGRvd24gPSBmYWxzZVxuXHQgICAgICB9LFxuXHQgICAgICBcImtleWRvd25cIjogW2Z1bmN0aW9uKCRldmVudCkge1xuXHQgICAgICAgIGlmIChfdm0uX2soJGV2ZW50LmtleUNvZGUsIFwiZG93blwiLCA0MCkpIHsgcmV0dXJuOyB9XG5cdCAgICAgICAgX3ZtLmRvd24oJGV2ZW50KVxuXHQgICAgICB9LCBmdW5jdGlvbigkZXZlbnQpIHtcblx0ICAgICAgICBpZiAoX3ZtLl9rKCRldmVudC5rZXlDb2RlLCBcImVudGVyXCIsIDEzKSkgeyByZXR1cm47IH1cblx0ICAgICAgICBfdm0uaGl0KCRldmVudClcblx0ICAgICAgfSwgZnVuY3Rpb24oJGV2ZW50KSB7XG5cdCAgICAgICAgaWYgKF92bS5faygkZXZlbnQua2V5Q29kZSwgXCJlc2NcIiwgMjcpKSB7IHJldHVybjsgfVxuXHQgICAgICAgIF92bS5yZXNldCgkZXZlbnQpXG5cdCAgICAgIH0sIGZ1bmN0aW9uKCRldmVudCkge1xuXHQgICAgICAgIGlmIChfdm0uX2soJGV2ZW50LmtleUNvZGUsIFwidXBcIiwgMzgpKSB7IHJldHVybjsgfVxuXHQgICAgICAgIF92bS51cCgkZXZlbnQpXG5cdCAgICAgIH1dLFxuXHQgICAgICBcImlucHV0XCI6IGZ1bmN0aW9uKCRldmVudCkge1xuXHQgICAgICAgIGlmICgkZXZlbnQudGFyZ2V0LmNvbXBvc2luZykgeyByZXR1cm47IH1cblx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014-2016 Evan You\\n * Released under the MIT License.\\n */\\n(function (global, factory) {\\n true ? module.exports = factory() :\\n typeof define === 'function' && define.amd ? define(factory) :\\n (global.Vue = factory());\\n}(this, (function () { 'use strict';\\n\\n/* */\\n\\n/**\\n * Convert a value to a string that is actually rendered.\\n */\\nfunction _toString (val) {\\n return val == null\\n ? ''\\n : typeof val === 'object'\\n ? JSON.stringify(val, null, 2)\\n : String(val)\\n}\\n\\n/**\\n * Convert a input value to a number for persistence.\\n * If the conversion fails, return original string.\\n */\\nfunction toNumber (val) {\\n var n = parseFloat(val, 10);\\n return (n || n === 0) ? n : val\\n}\\n\\n/**\\n * Make a map and return a function for checking if a key\\n * is in that map.\\n */\\nfunction makeMap (\\n str,\\n expectsLowerCase\\n) {\\n var map = Object.create(null);\\n var list = str.split(',');\\n for (var i = 0; i < list.length; i++) {\\n map[list[i]] = true;\\n }\\n return expectsLowerCase\\n ? function (val) { return map[val.toLowerCase()]; }\\n : function (val) { return map[val]; }\\n}\\n\\n/**\\n * Check if a tag is a built-in tag.\\n */\\nvar isBuiltInTag = makeMap('slot,component', true);\\n\\n/**\\n * Remove an item from an array\\n */\\nfunction remove$1 (arr, item) {\\n if (arr.length) {\\n var index = arr.indexOf(item);\\n if (index > -1) {\\n return arr.splice(index, 1)\\n }\\n }\\n}\\n\\n/**\\n * Check whether the object has the property.\\n */\\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\\nfunction hasOwn (obj, key) {\\n return hasOwnProperty.call(obj, key)\\n}\\n\\n/**\\n * Check if value is primitive\\n */\\nfunction isPrimitive (value) {\\n return typeof value === 'string' || typeof value === 'number'\\n}\\n\\n/**\\n * Create a cached version of a pure function.\\n */\\nfunction cached (fn) {\\n var cache = Object.create(null);\\n return function cachedFn (str) {\\n var hit = cache[str];\\n return hit || (cache[str] = fn(str))\\n }\\n}\\n\\n/**\\n * Camelize a hyphen-delmited string.\\n */\\nvar camelizeRE = /-(\\\\w)/g;\\nvar camelize = cached(function (str) {\\n return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })\\n});\\n\\n/**\\n * Capitalize a string.\\n */\\nvar capitalize = cached(function (str) {\\n return str.charAt(0).toUpperCase() + str.slice(1)\\n});\\n\\n/**\\n * Hyphenate a camelCase string.\\n */\\nvar hyphenateRE = /([^-])([A-Z])/g;\\nvar hyphenate = cached(function (str) {\\n return str\\n .replace(hyphenateRE, '$1-$2')\\n .replace(hyphenateRE, '$1-$2')\\n .toLowerCase()\\n});\\n\\n/**\\n * Simple bind, faster than native\\n */\\nfunction bind$1 (fn, ctx) {\\n function boundFn (a) {\\n var l = arguments.length;\\n return l\\n ? l > 1\\n ? fn.apply(ctx, arguments)\\n : fn.call(ctx, a)\\n : fn.call(ctx)\\n }\\n // record original fn length\\n boundFn._length = fn.length;\\n return boundFn\\n}\\n\\n/**\\n * Convert an Array-like object to a real Array.\\n */\\nfunction toArray (list, start) {\\n start = start || 0;\\n var i = list.length - start;\\n var ret = new Array(i);\\n while (i--) {\\n ret[i] = list[i + start];\\n }\\n return ret\\n}\\n\\n/**\\n * Mix properties into target object.\\n */\\nfunction extend (to, _from) {\\n for (var key in _from) {\\n to[key] = _from[key];\\n }\\n return to\\n}\\n\\n/**\\n * Quick object check - this is primarily used to tell\\n * Objects from primitive values when we know the value\\n * is a JSON-compliant type.\\n */\\nfunction isObject (obj) {\\n return obj !== null && typeof obj === 'object'\\n}\\n\\n/**\\n * Strict object type check. Only returns true\\n * for plain JavaScript objects.\\n */\\nvar toString = Object.prototype.toString;\\nvar OBJECT_STRING = '[object Object]';\\nfunction isPlainObject (obj) {\\n return toString.call(obj) === OBJECT_STRING\\n}\\n\\n/**\\n * Merge an Array of Objects into a single Object.\\n */\\nfunction toObject (arr) {\\n var res = {};\\n for (var i = 0; i < arr.length; i++) {\\n if (arr[i]) {\\n extend(res, arr[i]);\\n }\\n }\\n return res\\n}\\n\\n/**\\n * Perform no operation.\\n */\\nfunction noop () {}\\n\\n/**\\n * Always return false.\\n */\\nvar no = function () { return false; };\\n\\n/**\\n * Return same value\\n */\\nvar identity = function (_) { return _; };\\n\\n/**\\n * Generate a static keys string from compiler modules.\\n */\\nfunction genStaticKeys (modules) {\\n return modules.reduce(function (keys, m) {\\n return keys.concat(m.staticKeys || [])\\n }, []).join(',')\\n}\\n\\n/**\\n * Check if two values are loosely equal - that is,\\n * if they are plain objects, do they have the same shape?\\n */\\nfunction looseEqual (a, b) {\\n /* eslint-disable eqeqeq */\\n return a == b || (\\n isObject(a) && isObject(b)\\n ? JSON.stringify(a) === JSON.stringify(b)\\n : false\\n )\\n /* eslint-enable eqeqeq */\\n}\\n\\nfunction looseIndexOf (arr, val) {\\n for (var i = 0; i < arr.length; i++) {\\n if (looseEqual(arr[i], val)) { return i }\\n }\\n return -1\\n}\\n\\n/* */\\n\\nvar config = {\\n /**\\n * Option merge strategies (used in core/util/options)\\n */\\n optionMergeStrategies: Object.create(null),\\n\\n /**\\n * Whether to suppress warnings.\\n */\\n silent: false,\\n\\n /**\\n * Whether to enable devtools\\n */\\n devtools: \\\"development\\\" !== 'production',\\n\\n /**\\n * Error handler for watcher errors\\n */\\n errorHandler: null,\\n\\n /**\\n * Ignore certain custom elements\\n */\\n ignoredElements: null,\\n\\n /**\\n * Custom user key aliases for v-on\\n */\\n keyCodes: Object.create(null),\\n\\n /**\\n * Check if a tag is reserved so that it cannot be registered as a\\n * component. This is platform-dependent and may be overwritten.\\n */\\n isReservedTag: no,\\n\\n /**\\n * Check if a tag is an unknown element.\\n * Platform-dependent.\\n */\\n isUnknownElement: no,\\n\\n /**\\n * Get the namespace of an element\\n */\\n getTagNamespace: noop,\\n\\n /**\\n * Parse the real tag name for the specific platform.\\n */\\n parsePlatformTagName: identity,\\n\\n /**\\n * Check if an attribute must be bound using property, e.g. value\\n * Platform-dependent.\\n */\\n mustUseProp: no,\\n\\n /**\\n * List of asset types that a component can own.\\n */\\n _assetTypes: [\\n 'component',\\n 'directive',\\n 'filter'\\n ],\\n\\n /**\\n * List of lifecycle hooks.\\n */\\n _lifecycleHooks: [\\n 'beforeCreate',\\n 'created',\\n 'beforeMount',\\n 'mounted',\\n 'beforeUpdate',\\n 'updated',\\n 'beforeDestroy',\\n 'destroyed',\\n 'activated',\\n 'deactivated'\\n ],\\n\\n /**\\n * Max circular updates allowed in a scheduler flush cycle.\\n */\\n _maxUpdateCount: 100\\n};\\n\\n/* */\\n\\n/**\\n * Check if a string starts with $ or _\\n */\\nfunction isReserved (str) {\\n var c = (str + '').charCodeAt(0);\\n return c === 0x24 || c === 0x5F\\n}\\n\\n/**\\n * Define a property.\\n */\\nfunction def (obj, key, val, enumerable) {\\n Object.defineProperty(obj, key, {\\n value: val,\\n enumerable: !!enumerable,\\n writable: true,\\n configurable: true\\n });\\n}\\n\\n/**\\n * Parse simple path.\\n */\\nvar bailRE = /[^\\\\w.$]/;\\nfunction parsePath (path) {\\n if (bailRE.test(path)) {\\n return\\n } else {\\n var segments = path.split('.');\\n return function (obj) {\\n for (var i = 0; i < segments.length; i++) {\\n if (!obj) { return }\\n obj = obj[segments[i]];\\n }\\n return obj\\n }\\n }\\n}\\n\\n/* */\\n/* globals MutationObserver */\\n\\n// can we use __proto__?\\nvar hasProto = '__proto__' in {};\\n\\n// Browser environment sniffing\\nvar inBrowser = typeof window !== 'undefined';\\nvar UA = inBrowser && window.navigator.userAgent.toLowerCase();\\nvar isIE = UA && /msie|trident/.test(UA);\\nvar isIE9 = UA && UA.indexOf('msie 9.0') > 0;\\nvar isEdge = UA && UA.indexOf('edge/') > 0;\\nvar isAndroid = UA && UA.indexOf('android') > 0;\\nvar isIOS = UA && /iphone|ipad|ipod|ios/.test(UA);\\n\\n// this needs to be lazy-evaled because vue may be required before\\n// vue-server-renderer can set VUE_ENV\\nvar _isServer;\\nvar isServerRendering = function () {\\n if (_isServer === undefined) {\\n /* istanbul ignore if */\\n if (!inBrowser && typeof global !== 'undefined') {\\n // detect presence of vue-server-renderer and avoid\\n // Webpack shimming the process\\n _isServer = global['process'].env.VUE_ENV === 'server';\\n } else {\\n _isServer = false;\\n }\\n }\\n return _isServer\\n};\\n\\n// detect devtools\\nvar devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;\\n\\n/* istanbul ignore next */\\nfunction isNative (Ctor) {\\n return /native code/.test(Ctor.toString())\\n}\\n\\n/**\\n * Defer a task to execute it asynchronously.\\n */\\nvar nextTick = (function () {\\n var callbacks = [];\\n var pending = false;\\n var timerFunc;\\n\\n function nextTickHandler () {\\n pending = false;\\n var copies = callbacks.slice(0);\\n callbacks.length = 0;\\n for (var i = 0; i < copies.length; i++) {\\n copies[i]();\\n }\\n }\\n\\n // the nextTick behavior leverages the microtask queue, which can be accessed\\n // via either native Promise.then or MutationObserver.\\n // MutationObserver has wider support, however it is seriously bugged in\\n // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It\\n // completely stops working after triggering a few times... so, if native\\n // Promise is available, we will use it:\\n /* istanbul ignore if */\\n if (typeof Promise !== 'undefined' && isNative(Promise)) {\\n var p = Promise.resolve();\\n var logError = function (err) { console.error(err); };\\n timerFunc = function () {\\n p.then(nextTickHandler).catch(logError);\\n // in problematic UIWebViews, Promise.then doesn't completely break, but\\n // it can get stuck in a weird state where callbacks are pushed into the\\n // microtask queue but the queue isn't being flushed, until the browser\\n // needs to do some other work, e.g. handle a timer. Therefore we can\\n // \\\"force\\\" the microtask queue to be flushed by adding an empty timer.\\n if (isIOS) { setTimeout(noop); }\\n };\\n } else if (typeof MutationObserver !== 'undefined' && (\\n isNative(MutationObserver) ||\\n // PhantomJS and iOS 7.x\\n MutationObserver.toString() === '[object MutationObserverConstructor]'\\n )) {\\n // use MutationObserver where native Promise is not available,\\n // e.g. PhantomJS IE11, iOS7, Android 4.4\\n var counter = 1;\\n var observer = new MutationObserver(nextTickHandler);\\n var textNode = document.createTextNode(String(counter));\\n observer.observe(textNode, {\\n characterData: true\\n });\\n timerFunc = function () {\\n counter = (counter + 1) % 2;\\n textNode.data = String(counter);\\n };\\n } else {\\n // fallback to setTimeout\\n /* istanbul ignore next */\\n timerFunc = function () {\\n setTimeout(nextTickHandler, 0);\\n };\\n }\\n\\n return function queueNextTick (cb, ctx) {\\n var _resolve;\\n callbacks.push(function () {\\n if (cb) { cb.call(ctx); }\\n if (_resolve) { _resolve(ctx); }\\n });\\n if (!pending) {\\n pending = true;\\n timerFunc();\\n }\\n if (!cb && typeof Promise !== 'undefined') {\\n return new Promise(function (resolve) {\\n _resolve = resolve;\\n })\\n }\\n }\\n})();\\n\\nvar _Set;\\n/* istanbul ignore if */\\nif (typeof Set !== 'undefined' && isNative(Set)) {\\n // use native Set when available.\\n _Set = Set;\\n} else {\\n // a non-standard Set polyfill that only works with primitive keys.\\n _Set = (function () {\\n function Set () {\\n this.set = Object.create(null);\\n }\\n Set.prototype.has = function has (key) {\\n return this.set[key] === true\\n };\\n Set.prototype.add = function add (key) {\\n this.set[key] = true;\\n };\\n Set.prototype.clear = function clear () {\\n this.set = Object.create(null);\\n };\\n\\n return Set;\\n }());\\n}\\n\\nvar warn = noop;\\nvar formatComponentName;\\n\\n{\\n var hasConsole = typeof console !== 'undefined';\\n\\n warn = function (msg, vm) {\\n if (hasConsole && (!config.silent)) {\\n console.error(\\\"[Vue warn]: \\\" + msg + \\\" \\\" + (\\n vm ? formatLocation(formatComponentName(vm)) : ''\\n ));\\n }\\n };\\n\\n formatComponentName = function (vm) {\\n if (vm.$root === vm) {\\n return 'root instance'\\n }\\n var name = vm._isVue\\n ? vm.$options.name || vm.$options._componentTag\\n : vm.name;\\n return (\\n (name ? (\\\"component <\\\" + name + \\\">\\\") : \\\"anonymous component\\\") +\\n (vm._isVue && vm.$options.__file ? (\\\" at \\\" + (vm.$options.__file)) : '')\\n )\\n };\\n\\n var formatLocation = function (str) {\\n if (str === 'anonymous component') {\\n str += \\\" - use the \\\\\\\"name\\\\\\\" option for better debugging messages.\\\";\\n }\\n return (\\\"\\\\n(found in \\\" + str + \\\")\\\")\\n };\\n}\\n\\n/* */\\n\\n\\nvar uid$1 = 0;\\n\\n/**\\n * A dep is an observable that can have multiple\\n * directives subscribing to it.\\n */\\nvar Dep = function Dep () {\\n this.id = uid$1++;\\n this.subs = [];\\n};\\n\\nDep.prototype.addSub = function addSub (sub) {\\n this.subs.push(sub);\\n};\\n\\nDep.prototype.removeSub = function removeSub (sub) {\\n remove$1(this.subs, sub);\\n};\\n\\nDep.prototype.depend = function depend () {\\n if (Dep.target) {\\n Dep.target.addDep(this);\\n }\\n};\\n\\nDep.prototype.notify = function notify () {\\n // stablize the subscriber list first\\n var subs = this.subs.slice();\\n for (var i = 0, l = subs.length; i < l; i++) {\\n subs[i].update();\\n }\\n};\\n\\n// the current target watcher being evaluated.\\n// this is globally unique because there could be only one\\n// watcher being evaluated at any time.\\nDep.target = null;\\nvar targetStack = [];\\n\\nfunction pushTarget (_target) {\\n if (Dep.target) { targetStack.push(Dep.target); }\\n Dep.target = _target;\\n}\\n\\nfunction popTarget () {\\n Dep.target = targetStack.pop();\\n}\\n\\n/*\\n * not type checking this file because flow doesn't play well with\\n * dynamically accessing methods on Array prototype\\n */\\n\\nvar arrayProto = Array.prototype;\\nvar arrayMethods = Object.create(arrayProto);[\\n 'push',\\n 'pop',\\n 'shift',\\n 'unshift',\\n 'splice',\\n 'sort',\\n 'reverse'\\n]\\n.forEach(function (method) {\\n // cache original method\\n var original = arrayProto[method];\\n def(arrayMethods, method, function mutator () {\\n var arguments$1 = arguments;\\n\\n // avoid leaking arguments:\\n // http://jsperf.com/closure-with-arguments\\n var i = arguments.length;\\n var args = new Array(i);\\n while (i--) {\\n args[i] = arguments$1[i];\\n }\\n var result = original.apply(this, args);\\n var ob = this.__ob__;\\n var inserted;\\n switch (method) {\\n case 'push':\\n inserted = args;\\n break\\n case 'unshift':\\n inserted = args;\\n break\\n case 'splice':\\n inserted = args.slice(2);\\n break\\n }\\n if (inserted) { ob.observeArray(inserted); }\\n // notify change\\n ob.dep.notify();\\n return result\\n });\\n});\\n\\n/* */\\n\\nvar arrayKeys = Object.getOwnPropertyNames(arrayMethods);\\n\\n/**\\n * By default, when a reactive property is set, the new value is\\n * also converted to become reactive. However when passing down props,\\n * we don't want to force conversion because the value may be a nested value\\n * under a frozen data structure. Converting it would defeat the optimization.\\n */\\nvar observerState = {\\n shouldConvert: true,\\n isSettingProps: false\\n};\\n\\n/**\\n * Observer class that are attached to each observed\\n * object. Once attached, the observer converts target\\n * object's property keys into getter/setters that\\n * collect dependencies and dispatches updates.\\n */\\nvar Observer = function Observer (value) {\\n this.value = value;\\n this.dep = new Dep();\\n this.vmCount = 0;\\n def(value, '__ob__', this);\\n if (Array.isArray(value)) {\\n var augment = hasProto\\n ? protoAugment\\n : copyAugment;\\n augment(value, arrayMethods, arrayKeys);\\n this.observeArray(value);\\n } else {\\n this.walk(value);\\n }\\n};\\n\\n/**\\n * Walk through each property and convert them into\\n * getter/setters. This method should only be called when\\n * value type is Object.\\n */\\nObserver.prototype.walk = function walk (obj) {\\n var keys = Object.keys(obj);\\n for (var i = 0; i < keys.length; i++) {\\n defineReactive$$1(obj, keys[i], obj[keys[i]]);\\n }\\n};\\n\\n/**\\n * Observe a list of Array items.\\n */\\nObserver.prototype.observeArray = function observeArray (items) {\\n for (var i = 0, l = items.length; i < l; i++) {\\n observe(items[i]);\\n }\\n};\\n\\n// helpers\\n\\n/**\\n * Augment an target Object or Array by intercepting\\n * the prototype chain using __proto__\\n */\\nfunction protoAugment (target, src) {\\n /* eslint-disable no-proto */\\n target.__proto__ = src;\\n /* eslint-enable no-proto */\\n}\\n\\n/**\\n * Augment an target Object or Array by defining\\n * hidden properties.\\n */\\n/* istanbul ignore next */\\nfunction copyAugment (target, src, keys) {\\n for (var i = 0, l = keys.length; i < l; i++) {\\n var key = keys[i];\\n def(target, key, src[key]);\\n }\\n}\\n\\n/**\\n * Attempt to create an observer instance for a value,\\n * returns the new observer if successfully observed,\\n * or the existing observer if the value already has one.\\n */\\nfunction observe (value) {\\n if (!isObject(value)) {\\n return\\n }\\n var ob;\\n if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {\\n ob = value.__ob__;\\n } else if (\\n observerState.shouldConvert &&\\n !isServerRendering() &&\\n (Array.isArray(value) || isPlainObject(value)) &&\\n Object.isExtensible(value) &&\\n !value._isVue\\n ) {\\n ob = new Observer(value);\\n }\\n return ob\\n}\\n\\n/**\\n * Define a reactive property on an Object.\\n */\\nfunction defineReactive$$1 (\\n obj,\\n key,\\n val,\\n customSetter\\n) {\\n var dep = new Dep();\\n\\n var property = Object.getOwnPropertyDescriptor(obj, key);\\n if (property && property.configurable === false) {\\n return\\n }\\n\\n // cater for pre-defined getter/setters\\n var getter = property && property.get;\\n var setter = property && property.set;\\n\\n var childOb = observe(val);\\n Object.defineProperty(obj, key, {\\n enumerable: true,\\n configurable: true,\\n get: function reactiveGetter () {\\n var value = getter ? getter.call(obj) : val;\\n if (Dep.target) {\\n dep.depend();\\n if (childOb) {\\n childOb.dep.depend();\\n }\\n if (Array.isArray(value)) {\\n dependArray(value);\\n }\\n }\\n return value\\n },\\n set: function reactiveSetter (newVal) {\\n var value = getter ? getter.call(obj) : val;\\n /* eslint-disable no-self-compare */\\n if (newVal === value || (newVal !== newVal && value !== value)) {\\n return\\n }\\n /* eslint-enable no-self-compare */\\n if (\\\"development\\\" !== 'production' && customSetter) {\\n customSetter();\\n }\\n if (setter) {\\n setter.call(obj, newVal);\\n } else {\\n val = newVal;\\n }\\n childOb = observe(newVal);\\n dep.notify();\\n }\\n });\\n}\\n\\n/**\\n * Set a property on an object. Adds the new property and\\n * triggers change notification if the property doesn't\\n * already exist.\\n */\\nfunction set$1 (obj, key, val) {\\n if (Array.isArray(obj)) {\\n obj.length = Math.max(obj.length, key);\\n obj.splice(key, 1, val);\\n return val\\n }\\n if (hasOwn(obj, key)) {\\n obj[key] = val;\\n return\\n }\\n var ob = obj.__ob__;\\n if (obj._isVue || (ob && ob.vmCount)) {\\n \\\"development\\\" !== 'production' && warn(\\n 'Avoid adding reactive properties to a Vue instance or its root $data ' +\\n 'at runtime - declare it upfront in the data option.'\\n );\\n return\\n }\\n if (!ob) {\\n obj[key] = val;\\n return\\n }\\n defineReactive$$1(ob.value, key, val);\\n ob.dep.notify();\\n return val\\n}\\n\\n/**\\n * Delete a property and trigger change if necessary.\\n */\\nfunction del (obj, key) {\\n var ob = obj.__ob__;\\n if (obj._isVue || (ob && ob.vmCount)) {\\n \\\"development\\\" !== 'production' && warn(\\n 'Avoid deleting properties on a Vue instance or its root $data ' +\\n '- just set it to null.'\\n );\\n return\\n }\\n if (!hasOwn(obj, key)) {\\n return\\n }\\n delete obj[key];\\n if (!ob) {\\n return\\n }\\n ob.dep.notify();\\n}\\n\\n/**\\n * Collect dependencies on array elements when the array is touched, since\\n * we cannot intercept array element access like property getters.\\n */\\nfunction dependArray (value) {\\n for (var e = (void 0), i = 0, l = value.length; i < l; i++) {\\n e = value[i];\\n e && e.__ob__ && e.__ob__.dep.depend();\\n if (Array.isArray(e)) {\\n dependArray(e);\\n }\\n }\\n}\\n\\n/* */\\n\\n/**\\n * Option overwriting strategies are functions that handle\\n * how to merge a parent option value and a child option\\n * value into the final value.\\n */\\nvar strats = config.optionMergeStrategies;\\n\\n/**\\n * Options with restrictions\\n */\\n{\\n strats.el = strats.propsData = function (parent, child, vm, key) {\\n if (!vm) {\\n warn(\\n \\\"option \\\\\\\"\\\" + key + \\\"\\\\\\\" can only be used during instance \\\" +\\n 'creation with the `new` keyword.'\\n );\\n }\\n return defaultStrat(parent, child)\\n };\\n}\\n\\n/**\\n * Helper that recursively merges two data objects together.\\n */\\nfunction mergeData (to, from) {\\n if (!from) { return to }\\n var key, toVal, fromVal;\\n var keys = Object.keys(from);\\n for (var i = 0; i < keys.length; i++) {\\n key = keys[i];\\n toVal = to[key];\\n fromVal = from[key];\\n if (!hasOwn(to, key)) {\\n set$1(to, key, fromVal);\\n } else if (isPlainObject(toVal) && isPlainObject(fromVal)) {\\n mergeData(toVal, fromVal);\\n }\\n }\\n return to\\n}\\n\\n/**\\n * Data\\n */\\nstrats.data = function (\\n parentVal,\\n childVal,\\n vm\\n) {\\n if (!vm) {\\n // in a Vue.extend merge, both should be functions\\n if (!childVal) {\\n return parentVal\\n }\\n if (typeof childVal !== 'function') {\\n \\\"development\\\" !== 'production' && warn(\\n 'The \\\"data\\\" option should be a function ' +\\n 'that returns a per-instance value in component ' +\\n 'definitions.',\\n vm\\n );\\n return parentVal\\n }\\n if (!parentVal) {\\n return childVal\\n }\\n // when parentVal & childVal are both present,\\n // we need to return a function that returns the\\n // merged result of both functions... no need to\\n // check if parentVal is a function here because\\n // it has to be a function to pass previous merges.\\n return function mergedDataFn () {\\n return mergeData(\\n childVal.call(this),\\n parentVal.call(this)\\n )\\n }\\n } else if (parentVal || childVal) {\\n return function mergedInstanceDataFn () {\\n // instance merge\\n var instanceData = typeof childVal === 'function'\\n ? childVal.call(vm)\\n : childVal;\\n var defaultData = typeof parentVal === 'function'\\n ? parentVal.call(vm)\\n : undefined;\\n if (instanceData) {\\n return mergeData(instanceData, defaultData)\\n } else {\\n return defaultData\\n }\\n }\\n }\\n};\\n\\n/**\\n * Hooks and param attributes are merged as arrays.\\n */\\nfunction mergeHook (\\n parentVal,\\n childVal\\n) {\\n return childVal\\n ? parentVal\\n ? parentVal.concat(childVal)\\n : Array.isArray(childVal)\\n ? childVal\\n : [childVal]\\n : parentVal\\n}\\n\\nconfig._lifecycleHooks.forEach(function (hook) {\\n strats[hook] = mergeHook;\\n});\\n\\n/**\\n * Assets\\n *\\n * When a vm is present (instance creation), we need to do\\n * a three-way merge between constructor options, instance\\n * options and parent options.\\n */\\nfunction mergeAssets (parentVal, childVal) {\\n var res = Object.create(parentVal || null);\\n return childVal\\n ? extend(res, childVal)\\n : res\\n}\\n\\nconfig._assetTypes.forEach(function (type) {\\n strats[type + 's'] = mergeAssets;\\n});\\n\\n/**\\n * Watchers.\\n *\\n * Watchers hashes should not overwrite one\\n * another, so we merge them as arrays.\\n */\\nstrats.watch = function (parentVal, childVal) {\\n /* istanbul ignore if */\\n if (!childVal) { return parentVal }\\n if (!parentVal) { return childVal }\\n var ret = {};\\n extend(ret, parentVal);\\n for (var key in childVal) {\\n var parent = ret[key];\\n var child = childVal[key];\\n if (parent && !Array.isArray(parent)) {\\n parent = [parent];\\n }\\n ret[key] = parent\\n ? parent.concat(child)\\n : [child];\\n }\\n return ret\\n};\\n\\n/**\\n * Other object hashes.\\n */\\nstrats.props =\\nstrats.methods =\\nstrats.computed = function (parentVal, childVal) {\\n if (!childVal) { return parentVal }\\n if (!parentVal) { return childVal }\\n var ret = Object.create(null);\\n extend(ret, parentVal);\\n extend(ret, childVal);\\n return ret\\n};\\n\\n/**\\n * Default strategy.\\n */\\nvar defaultStrat = function (parentVal, childVal) {\\n return childVal === undefined\\n ? parentVal\\n : childVal\\n};\\n\\n/**\\n * Validate component names\\n */\\nfunction checkComponents (options) {\\n for (var key in options.components) {\\n var lower = key.toLowerCase();\\n if (isBuiltInTag(lower) || config.isReservedTag(lower)) {\\n warn(\\n 'Do not use built-in or reserved HTML elements as component ' +\\n 'id: ' + key\\n );\\n }\\n }\\n}\\n\\n/**\\n * Ensure all props option syntax are normalized into the\\n * Object-based format.\\n */\\nfunction normalizeProps (options) {\\n var props = options.props;\\n if (!props) { return }\\n var res = {};\\n var i, val, name;\\n if (Array.isArray(props)) {\\n i = props.length;\\n while (i--) {\\n val = props[i];\\n if (typeof val === 'string') {\\n name = camelize(val);\\n res[name] = { type: null };\\n } else {\\n warn('props must be strings when using array syntax.');\\n }\\n }\\n } else if (isPlainObject(props)) {\\n for (var key in props) {\\n val = props[key];\\n name = camelize(key);\\n res[name] = isPlainObject(val)\\n ? val\\n : { type: val };\\n }\\n }\\n options.props = res;\\n}\\n\\n/**\\n * Normalize raw function directives into object format.\\n */\\nfunction normalizeDirectives (options) {\\n var dirs = options.directives;\\n if (dirs) {\\n for (var key in dirs) {\\n var def = dirs[key];\\n if (typeof def === 'function') {\\n dirs[key] = { bind: def, update: def };\\n }\\n }\\n }\\n}\\n\\n/**\\n * Merge two option objects into a new one.\\n * Core utility used in both instantiation and inheritance.\\n */\\nfunction mergeOptions (\\n parent,\\n child,\\n vm\\n) {\\n {\\n checkComponents(child);\\n }\\n normalizeProps(child);\\n normalizeDirectives(child);\\n var extendsFrom = child.extends;\\n if (extendsFrom) {\\n parent = typeof extendsFrom === 'function'\\n ? mergeOptions(parent, extendsFrom.options, vm)\\n : mergeOptions(parent, extendsFrom, vm);\\n }\\n if (child.mixins) {\\n for (var i = 0, l = child.mixins.length; i < l; i++) {\\n var mixin = child.mixins[i];\\n if (mixin.prototype instanceof Vue$3) {\\n mixin = mixin.options;\\n }\\n parent = mergeOptions(parent, mixin, vm);\\n }\\n }\\n var options = {};\\n var key;\\n for (key in parent) {\\n mergeField(key);\\n }\\n for (key in child) {\\n if (!hasOwn(parent, key)) {\\n mergeField(key);\\n }\\n }\\n function mergeField (key) {\\n var strat = strats[key] || defaultStrat;\\n options[key] = strat(parent[key], child[key], vm, key);\\n }\\n return options\\n}\\n\\n/**\\n * Resolve an asset.\\n * This function is used because child instances need access\\n * to assets defined in its ancestor chain.\\n */\\nfunction resolveAsset (\\n options,\\n type,\\n id,\\n warnMissing\\n) {\\n /* istanbul ignore if */\\n if (typeof id !== 'string') {\\n return\\n }\\n var assets = options[type];\\n // check local registration variations first\\n if (hasOwn(assets, id)) { return assets[id] }\\n var camelizedId = camelize(id);\\n if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }\\n var PascalCaseId = capitalize(camelizedId);\\n if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }\\n // fallback to prototype chain\\n var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];\\n if (\\\"development\\\" !== 'production' && warnMissing && !res) {\\n warn(\\n 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,\\n options\\n );\\n }\\n return res\\n}\\n\\n/* */\\n\\nfunction validateProp (\\n key,\\n propOptions,\\n propsData,\\n vm\\n) {\\n var prop = propOptions[key];\\n var absent = !hasOwn(propsData, key);\\n var value = propsData[key];\\n // handle boolean props\\n if (isBooleanType(prop.type)) {\\n if (absent && !hasOwn(prop, 'default')) {\\n value = false;\\n } else if (value === '' || value === hyphenate(key)) {\\n value = true;\\n }\\n }\\n // check default value\\n if (value === undefined) {\\n value = getPropDefaultValue(vm, prop, key);\\n // since the default value is a fresh copy,\\n // make sure to observe it.\\n var prevShouldConvert = observerState.shouldConvert;\\n observerState.shouldConvert = true;\\n observe(value);\\n observerState.shouldConvert = prevShouldConvert;\\n }\\n {\\n assertProp(prop, key, value, vm, absent);\\n }\\n return value\\n}\\n\\n/**\\n * Get the default value of a prop.\\n */\\nfunction getPropDefaultValue (vm, prop, key) {\\n // no default, return undefined\\n if (!hasOwn(prop, 'default')) {\\n return undefined\\n }\\n var def = prop.default;\\n // warn against non-factory defaults for Object & Array\\n if (isObject(def)) {\\n \\\"development\\\" !== 'production' && warn(\\n 'Invalid default value for prop \\\"' + key + '\\\": ' +\\n 'Props with type Object/Array must use a factory function ' +\\n 'to return the default value.',\\n vm\\n );\\n }\\n // the raw prop value was also undefined from previous render,\\n // return previous default value to avoid unnecessary watcher trigger\\n if (vm && vm.$options.propsData &&\\n vm.$options.propsData[key] === undefined &&\\n vm[key] !== undefined) {\\n return vm[key]\\n }\\n // call factory function for non-Function types\\n return typeof def === 'function' && prop.type !== Function\\n ? def.call(vm)\\n : def\\n}\\n\\n/**\\n * Assert whether a prop is valid.\\n */\\nfunction assertProp (\\n prop,\\n name,\\n value,\\n vm,\\n absent\\n) {\\n if (prop.required && absent) {\\n warn(\\n 'Missing required prop: \\\"' + name + '\\\"',\\n vm\\n );\\n return\\n }\\n if (value == null && !prop.required) {\\n return\\n }\\n var type = prop.type;\\n var valid = !type || type === true;\\n var expectedTypes = [];\\n if (type) {\\n if (!Array.isArray(type)) {\\n type = [type];\\n }\\n for (var i = 0; i < type.length && !valid; i++) {\\n var assertedType = assertType(value, type[i]);\\n expectedTypes.push(assertedType.expectedType);\\n valid = assertedType.valid;\\n }\\n }\\n if (!valid) {\\n warn(\\n 'Invalid prop: type check failed for prop \\\"' + name + '\\\".' +\\n ' Expected ' + expectedTypes.map(capitalize).join(', ') +\\n ', got ' + Object.prototype.toString.call(value).slice(8, -1) + '.',\\n vm\\n );\\n return\\n }\\n var validator = prop.validator;\\n if (validator) {\\n if (!validator(value)) {\\n warn(\\n 'Invalid prop: custom validator check failed for prop \\\"' + name + '\\\".',\\n vm\\n );\\n }\\n }\\n}\\n\\n/**\\n * Assert the type of a value\\n */\\nfunction assertType (value, type) {\\n var valid;\\n var expectedType = getType(type);\\n if (expectedType === 'String') {\\n valid = typeof value === (expectedType = 'string');\\n } else if (expectedType === 'Number') {\\n valid = typeof value === (expectedType = 'number');\\n } else if (expectedType === 'Boolean') {\\n valid = typeof value === (expectedType = 'boolean');\\n } else if (expectedType === 'Function') {\\n valid = typeof value === (expectedType = 'function');\\n } else if (expectedType === 'Object') {\\n valid = isPlainObject(value);\\n } else if (expectedType === 'Array') {\\n valid = Array.isArray(value);\\n } else {\\n valid = value instanceof type;\\n }\\n return {\\n valid: valid,\\n expectedType: expectedType\\n }\\n}\\n\\n/**\\n * Use function string name to check built-in types,\\n * because a simple equality check will fail when running\\n * across different vms / iframes.\\n */\\nfunction getType (fn) {\\n var match = fn && fn.toString().match(/^\\\\s*function (\\\\w+)/);\\n return match && match[1]\\n}\\n\\nfunction isBooleanType (fn) {\\n if (!Array.isArray(fn)) {\\n return getType(fn) === 'Boolean'\\n }\\n for (var i = 0, len = fn.length; i < len; i++) {\\n if (getType(fn[i]) === 'Boolean') {\\n return true\\n }\\n }\\n /* istanbul ignore next */\\n return false\\n}\\n\\n\\n\\nvar util = Object.freeze({\\n\\tdefineReactive: defineReactive$$1,\\n\\t_toString: _toString,\\n\\ttoNumber: toNumber,\\n\\tmakeMap: makeMap,\\n\\tisBuiltInTag: isBuiltInTag,\\n\\tremove: remove$1,\\n\\thasOwn: hasOwn,\\n\\tisPrimitive: isPrimitive,\\n\\tcached: cached,\\n\\tcamelize: camelize,\\n\\tcapitalize: capitalize,\\n\\thyphenate: hyphenate,\\n\\tbind: bind$1,\\n\\ttoArray: toArray,\\n\\textend: extend,\\n\\tisObject: isObject,\\n\\tisPlainObject: isPlainObject,\\n\\ttoObject: toObject,\\n\\tnoop: noop,\\n\\tno: no,\\n\\tidentity: identity,\\n\\tgenStaticKeys: genStaticKeys,\\n\\tlooseEqual: looseEqual,\\n\\tlooseIndexOf: looseIndexOf,\\n\\tisReserved: isReserved,\\n\\tdef: def,\\n\\tparsePath: parsePath,\\n\\thasProto: hasProto,\\n\\tinBrowser: inBrowser,\\n\\tUA: UA,\\n\\tisIE: isIE,\\n\\tisIE9: isIE9,\\n\\tisEdge: isEdge,\\n\\tisAndroid: isAndroid,\\n\\tisIOS: isIOS,\\n\\tisServerRendering: isServerRendering,\\n\\tdevtools: devtools,\\n\\tnextTick: nextTick,\\n\\tget _Set () { return _Set; },\\n\\tmergeOptions: mergeOptions,\\n\\tresolveAsset: resolveAsset,\\n\\tget warn () { return warn; },\\n\\tget formatComponentName () { return formatComponentName; },\\n\\tvalidateProp: validateProp\\n});\\n\\n/* not type checking this file because flow doesn't play well with Proxy */\\n\\nvar initProxy;\\n\\n{\\n var allowedGlobals = makeMap(\\n 'Infinity,undefined,NaN,isFinite,isNaN,' +\\n 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +\\n 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +\\n 'require' // for Webpack/Browserify\\n );\\n\\n var warnNonPresent = function (target, key) {\\n warn(\\n \\\"Property or method \\\\\\\"\\\" + key + \\\"\\\\\\\" is not defined on the instance but \\\" +\\n \\\"referenced during render. Make sure to declare reactive data \\\" +\\n \\\"properties in the data option.\\\",\\n target\\n );\\n };\\n\\n var hasProxy =\\n typeof Proxy !== 'undefined' &&\\n Proxy.toString().match(/native code/);\\n\\n if (hasProxy) {\\n var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta');\\n config.keyCodes = new Proxy(config.keyCodes, {\\n set: function set (target, key, value) {\\n if (isBuiltInModifier(key)) {\\n warn((\\\"Avoid overwriting built-in modifier in config.keyCodes: .\\\" + key));\\n return false\\n } else {\\n target[key] = value;\\n return true\\n }\\n }\\n });\\n }\\n\\n var hasHandler = {\\n has: function has (target, key) {\\n var has = key in target;\\n var isAllowed = allowedGlobals(key) || key.charAt(0) === '_';\\n if (!has && !isAllowed) {\\n warnNonPresent(target, key);\\n }\\n return has || !isAllowed\\n }\\n };\\n\\n var getHandler = {\\n get: function get (target, key) {\\n if (typeof key === 'string' && !(key in target)) {\\n warnNonPresent(target, key);\\n }\\n return target[key]\\n }\\n };\\n\\n initProxy = function initProxy (vm) {\\n if (hasProxy) {\\n // determine which proxy handler to use\\n var options = vm.$options;\\n var handlers = options.render && options.render._withStripped\\n ? getHandler\\n : hasHandler;\\n vm._renderProxy = new Proxy(vm, handlers);\\n } else {\\n vm._renderProxy = vm;\\n }\\n };\\n}\\n\\n/* */\\n\\n\\nvar queue = [];\\nvar has$1 = {};\\nvar circular = {};\\nvar waiting = false;\\nvar flushing = false;\\nvar index = 0;\\n\\n/**\\n * Reset the scheduler's state.\\n */\\nfunction resetSchedulerState () {\\n queue.length = 0;\\n has$1 = {};\\n {\\n circular = {};\\n }\\n waiting = flushing = false;\\n}\\n\\n/**\\n * Flush both queues and run the watchers.\\n */\\nfunction flushSchedulerQueue () {\\n flushing = true;\\n\\n // Sort queue before flush.\\n // This ensures that:\\n // 1. Components are updated from parent to child. (because parent is always\\n // created before the child)\\n // 2. A component's user watchers are run before its render watcher (because\\n // user watchers are created before the render watcher)\\n // 3. If a component is destroyed during a parent component's watcher run,\\n // its watchers can be skipped.\\n queue.sort(function (a, b) { return a.id - b.id; });\\n\\n // do not cache length because more watchers might be pushed\\n // as we run existing watchers\\n for (index = 0; index < queue.length; index++) {\\n var watcher = queue[index];\\n var id = watcher.id;\\n has$1[id] = null;\\n watcher.run();\\n // in dev build, check and stop circular updates.\\n if (\\\"development\\\" !== 'production' && has$1[id] != null) {\\n circular[id] = (circular[id] || 0) + 1;\\n if (circular[id] > config._maxUpdateCount) {\\n warn(\\n 'You may have an infinite update loop ' + (\\n watcher.user\\n ? (\\\"in watcher with expression \\\\\\\"\\\" + (watcher.expression) + \\\"\\\\\\\"\\\")\\n : \\\"in a component render function.\\\"\\n ),\\n watcher.vm\\n );\\n break\\n }\\n }\\n }\\n\\n // devtool hook\\n /* istanbul ignore if */\\n if (devtools && config.devtools) {\\n devtools.emit('flush');\\n }\\n\\n resetSchedulerState();\\n}\\n\\n/**\\n * Push a watcher into the watcher queue.\\n * Jobs with duplicate IDs will be skipped unless it's\\n * pushed when the queue is being flushed.\\n */\\nfunction queueWatcher (watcher) {\\n var id = watcher.id;\\n if (has$1[id] == null) {\\n has$1[id] = true;\\n if (!flushing) {\\n queue.push(watcher);\\n } else {\\n // if already flushing, splice the watcher based on its id\\n // if already past its id, it will be run next immediately.\\n var i = queue.length - 1;\\n while (i >= 0 && queue[i].id > watcher.id) {\\n i--;\\n }\\n queue.splice(Math.max(i, index) + 1, 0, watcher);\\n }\\n // queue the flush\\n if (!waiting) {\\n waiting = true;\\n nextTick(flushSchedulerQueue);\\n }\\n }\\n}\\n\\n/* */\\n\\nvar uid$2 = 0;\\n\\n/**\\n * A watcher parses an expression, collects dependencies,\\n * and fires callback when the expression value changes.\\n * This is used for both the $watch() api and directives.\\n */\\nvar Watcher = function Watcher (\\n vm,\\n expOrFn,\\n cb,\\n options\\n) {\\n if ( options === void 0 ) options = {};\\n\\n this.vm = vm;\\n vm._watchers.push(this);\\n // options\\n this.deep = !!options.deep;\\n this.user = !!options.user;\\n this.lazy = !!options.lazy;\\n this.sync = !!options.sync;\\n this.expression = expOrFn.toString();\\n this.cb = cb;\\n this.id = ++uid$2; // uid for batching\\n this.active = true;\\n this.dirty = this.lazy; // for lazy watchers\\n this.deps = [];\\n this.newDeps = [];\\n this.depIds = new _Set();\\n this.newDepIds = new _Set();\\n // parse expression for getter\\n if (typeof expOrFn === 'function') {\\n this.getter = expOrFn;\\n } else {\\n this.getter = parsePath(expOrFn);\\n if (!this.getter) {\\n this.getter = function () {};\\n \\\"development\\\" !== 'production' && warn(\\n \\\"Failed watching path: \\\\\\\"\\\" + expOrFn + \\\"\\\\\\\" \\\" +\\n 'Watcher only accepts simple dot-delimited paths. ' +\\n 'For full control, use a function instead.',\\n vm\\n );\\n }\\n }\\n this.value = this.lazy\\n ? undefined\\n : this.get();\\n};\\n\\n/**\\n * Evaluate the getter, and re-collect dependencies.\\n */\\nWatcher.prototype.get = function get () {\\n pushTarget(this);\\n var value = this.getter.call(this.vm, this.vm);\\n // \\\"touch\\\" every property so they are all tracked as\\n // dependencies for deep watching\\n if (this.deep) {\\n traverse(value);\\n }\\n popTarget();\\n this.cleanupDeps();\\n return value\\n};\\n\\n/**\\n * Add a dependency to this directive.\\n */\\nWatcher.prototype.addDep = function addDep (dep) {\\n var id = dep.id;\\n if (!this.newDepIds.has(id)) {\\n this.newDepIds.add(id);\\n this.newDeps.push(dep);\\n if (!this.depIds.has(id)) {\\n dep.addSub(this);\\n }\\n }\\n};\\n\\n/**\\n * Clean up for dependency collection.\\n */\\nWatcher.prototype.cleanupDeps = function cleanupDeps () {\\n var this$1 = this;\\n\\n var i = this.deps.length;\\n while (i--) {\\n var dep = this$1.deps[i];\\n if (!this$1.newDepIds.has(dep.id)) {\\n dep.removeSub(this$1);\\n }\\n }\\n var tmp = this.depIds;\\n this.depIds = this.newDepIds;\\n this.newDepIds = tmp;\\n this.newDepIds.clear();\\n tmp = this.deps;\\n this.deps = this.newDeps;\\n this.newDeps = tmp;\\n this.newDeps.length = 0;\\n};\\n\\n/**\\n * Subscriber interface.\\n * Will be called when a dependency changes.\\n */\\nWatcher.prototype.update = function update () {\\n /* istanbul ignore else */\\n if (this.lazy) {\\n this.dirty = true;\\n } else if (this.sync) {\\n this.run();\\n } else {\\n queueWatcher(this);\\n }\\n};\\n\\n/**\\n * Scheduler job interface.\\n * Will be called by the scheduler.\\n */\\nWatcher.prototype.run = function run () {\\n if (this.active) {\\n var value = this.get();\\n if (\\n value !== this.value ||\\n // Deep watchers and watchers on Object/Arrays should fire even\\n // when the value is the same, because the value may\\n // have mutated.\\n isObject(value) ||\\n this.deep\\n ) {\\n // set new value\\n var oldValue = this.value;\\n this.value = value;\\n if (this.user) {\\n try {\\n this.cb.call(this.vm, value, oldValue);\\n } catch (e) {\\n /* istanbul ignore else */\\n if (config.errorHandler) {\\n config.errorHandler.call(null, e, this.vm);\\n } else {\\n \\\"development\\\" !== 'production' && warn(\\n (\\\"Error in watcher \\\\\\\"\\\" + (this.expression) + \\\"\\\\\\\"\\\"),\\n this.vm\\n );\\n throw e\\n }\\n }\\n } else {\\n this.cb.call(this.vm, value, oldValue);\\n }\\n }\\n }\\n};\\n\\n/**\\n * Evaluate the value of the watcher.\\n * This only gets called for lazy watchers.\\n */\\nWatcher.prototype.evaluate = function evaluate () {\\n this.value = this.get();\\n this.dirty = false;\\n};\\n\\n/**\\n * Depend on all deps collected by this watcher.\\n */\\nWatcher.prototype.depend = function depend () {\\n var this$1 = this;\\n\\n var i = this.deps.length;\\n while (i--) {\\n this$1.deps[i].depend();\\n }\\n};\\n\\n/**\\n * Remove self from all dependencies' subscriber list.\\n */\\nWatcher.prototype.teardown = function teardown () {\\n var this$1 = this;\\n\\n if (this.active) {\\n // remove self from vm's watcher list\\n // this is a somewhat expensive operation so we skip it\\n // if the vm is being destroyed or is performing a v-for\\n // re-render (the watcher list is then filtered by v-for).\\n if (!this.vm._isBeingDestroyed && !this.vm._vForRemoving) {\\n remove$1(this.vm._watchers, this);\\n }\\n var i = this.deps.length;\\n while (i--) {\\n this$1.deps[i].removeSub(this$1);\\n }\\n this.active = false;\\n }\\n};\\n\\n/**\\n * Recursively traverse an object to evoke all converted\\n * getters, so that every nested property inside the object\\n * is collected as a \\\"deep\\\" dependency.\\n */\\nvar seenObjects = new _Set();\\nfunction traverse (val) {\\n seenObjects.clear();\\n _traverse(val, seenObjects);\\n}\\n\\nfunction _traverse (val, seen) {\\n var i, keys;\\n var isA = Array.isArray(val);\\n if ((!isA && !isObject(val)) || !Object.isExtensible(val)) {\\n return\\n }\\n if (val.__ob__) {\\n var depId = val.__ob__.dep.id;\\n if (seen.has(depId)) {\\n return\\n }\\n seen.add(depId);\\n }\\n if (isA) {\\n i = val.length;\\n while (i--) { _traverse(val[i], seen); }\\n } else {\\n keys = Object.keys(val);\\n i = keys.length;\\n while (i--) { _traverse(val[keys[i]], seen); }\\n }\\n}\\n\\n/* */\\n\\nfunction initState (vm) {\\n vm._watchers = [];\\n initProps(vm);\\n initMethods(vm);\\n initData(vm);\\n initComputed(vm);\\n initWatch(vm);\\n}\\n\\nvar isReservedProp = { key: 1, ref: 1, slot: 1 };\\n\\nfunction initProps (vm) {\\n var props = vm.$options.props;\\n if (props) {\\n var propsData = vm.$options.propsData || {};\\n var keys = vm.$options._propKeys = Object.keys(props);\\n var isRoot = !vm.$parent;\\n // root instance props should be converted\\n observerState.shouldConvert = isRoot;\\n var loop = function ( i ) {\\n var key = keys[i];\\n /* istanbul ignore else */\\n {\\n if (isReservedProp[key]) {\\n warn(\\n (\\\"\\\\\\\"\\\" + key + \\\"\\\\\\\" is a reserved attribute and cannot be used as component prop.\\\"),\\n vm\\n );\\n }\\n defineReactive$$1(vm, key, validateProp(key, props, propsData, vm), function () {\\n if (vm.$parent && !observerState.isSettingProps) {\\n warn(\\n \\\"Avoid mutating a prop directly since the value will be \\\" +\\n \\\"overwritten whenever the parent component re-renders. \\\" +\\n \\\"Instead, use a data or computed property based on the prop's \\\" +\\n \\\"value. Prop being mutated: \\\\\\\"\\\" + key + \\\"\\\\\\\"\\\",\\n vm\\n );\\n }\\n });\\n }\\n };\\n\\n for (var i = 0; i < keys.length; i++) loop( i );\\n observerState.shouldConvert = true;\\n }\\n}\\n\\nfunction initData (vm) {\\n var data = vm.$options.data;\\n data = vm._data = typeof data === 'function'\\n ? data.call(vm)\\n : data || {};\\n if (!isPlainObject(data)) {\\n data = {};\\n \\\"development\\\" !== 'production' && warn(\\n 'data functions should return an object:\\\\n' +\\n 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',\\n vm\\n );\\n }\\n // proxy data on instance\\n var keys = Object.keys(data);\\n var props = vm.$options.props;\\n var i = keys.length;\\n while (i--) {\\n if (props && hasOwn(props, keys[i])) {\\n \\\"development\\\" !== 'production' && warn(\\n \\\"The data property \\\\\\\"\\\" + (keys[i]) + \\\"\\\\\\\" is already declared as a prop. \\\" +\\n \\\"Use prop default value instead.\\\",\\n vm\\n );\\n } else {\\n proxy(vm, keys[i]);\\n }\\n }\\n // observe data\\n observe(data);\\n data.__ob__ && data.__ob__.vmCount++;\\n}\\n\\nvar computedSharedDefinition = {\\n enumerable: true,\\n configurable: true,\\n get: noop,\\n set: noop\\n};\\n\\nfunction initComputed (vm) {\\n var computed = vm.$options.computed;\\n if (computed) {\\n for (var key in computed) {\\n var userDef = computed[key];\\n if (typeof userDef === 'function') {\\n computedSharedDefinition.get = makeComputedGetter(userDef, vm);\\n computedSharedDefinition.set = noop;\\n } else {\\n computedSharedDefinition.get = userDef.get\\n ? userDef.cache !== false\\n ? makeComputedGetter(userDef.get, vm)\\n : bind$1(userDef.get, vm)\\n : noop;\\n computedSharedDefinition.set = userDef.set\\n ? bind$1(userDef.set, vm)\\n : noop;\\n }\\n Object.defineProperty(vm, key, computedSharedDefinition);\\n }\\n }\\n}\\n\\nfunction makeComputedGetter (getter, owner) {\\n var watcher = new Watcher(owner, getter, noop, {\\n lazy: true\\n });\\n return function computedGetter () {\\n if (watcher.dirty) {\\n watcher.evaluate();\\n }\\n if (Dep.target) {\\n watcher.depend();\\n }\\n return watcher.value\\n }\\n}\\n\\nfunction initMethods (vm) {\\n var methods = vm.$options.methods;\\n if (methods) {\\n for (var key in methods) {\\n vm[key] = methods[key] == null ? noop : bind$1(methods[key], vm);\\n if (\\\"development\\\" !== 'production' && methods[key] == null) {\\n warn(\\n \\\"method \\\\\\\"\\\" + key + \\\"\\\\\\\" has an undefined value in the component definition. \\\" +\\n \\\"Did you reference the function correctly?\\\",\\n vm\\n );\\n }\\n }\\n }\\n}\\n\\nfunction initWatch (vm) {\\n var watch = vm.$options.watch;\\n if (watch) {\\n for (var key in watch) {\\n var handler = watch[key];\\n if (Array.isArray(handler)) {\\n for (var i = 0; i < handler.length; i++) {\\n createWatcher(vm, key, handler[i]);\\n }\\n } else {\\n createWatcher(vm, key, handler);\\n }\\n }\\n }\\n}\\n\\nfunction createWatcher (vm, key, handler) {\\n var options;\\n if (isPlainObject(handler)) {\\n options = handler;\\n handler = handler.handler;\\n }\\n if (typeof handler === 'string') {\\n handler = vm[handler];\\n }\\n vm.$watch(key, handler, options);\\n}\\n\\nfunction stateMixin (Vue) {\\n // flow somehow has problems with directly declared definition object\\n // when using Object.defineProperty, so we have to procedurally build up\\n // the object here.\\n var dataDef = {};\\n dataDef.get = function () {\\n return this._data\\n };\\n {\\n dataDef.set = function (newData) {\\n warn(\\n 'Avoid replacing instance root $data. ' +\\n 'Use nested data properties instead.',\\n this\\n );\\n };\\n }\\n Object.defineProperty(Vue.prototype, '$data', dataDef);\\n\\n Vue.prototype.$set = set$1;\\n Vue.prototype.$delete = del;\\n\\n Vue.prototype.$watch = function (\\n expOrFn,\\n cb,\\n options\\n ) {\\n var vm = this;\\n options = options || {};\\n options.user = true;\\n var watcher = new Watcher(vm, expOrFn, cb, options);\\n if (options.immediate) {\\n cb.call(vm, watcher.value);\\n }\\n return function unwatchFn () {\\n watcher.teardown();\\n }\\n };\\n}\\n\\nfunction proxy (vm, key) {\\n if (!isReserved(key)) {\\n Object.defineProperty(vm, key, {\\n configurable: true,\\n enumerable: true,\\n get: function proxyGetter () {\\n return vm._data[key]\\n },\\n set: function proxySetter (val) {\\n vm._data[key] = val;\\n }\\n });\\n }\\n}\\n\\n/* */\\n\\nvar VNode = function VNode (\\n tag,\\n data,\\n children,\\n text,\\n elm,\\n context,\\n componentOptions\\n) {\\n this.tag = tag;\\n this.data = data;\\n this.children = children;\\n this.text = text;\\n this.elm = elm;\\n this.ns = undefined;\\n this.context = context;\\n this.functionalContext = undefined;\\n this.key = data && data.key;\\n this.componentOptions = componentOptions;\\n this.child = undefined;\\n this.parent = undefined;\\n this.raw = false;\\n this.isStatic = false;\\n this.isRootInsert = true;\\n this.isComment = false;\\n this.isCloned = false;\\n this.isOnce = false;\\n};\\n\\nvar createEmptyVNode = function () {\\n var node = new VNode();\\n node.text = '';\\n node.isComment = true;\\n return node\\n};\\n\\nfunction createTextVNode (val) {\\n return new VNode(undefined, undefined, undefined, String(val))\\n}\\n\\n// optimized shallow clone\\n// used for static nodes and slot nodes because they may be reused across\\n// multiple renders, cloning them avoids errors when DOM manipulations rely\\n// on their elm reference.\\nfunction cloneVNode (vnode) {\\n var cloned = new VNode(\\n vnode.tag,\\n vnode.data,\\n vnode.children,\\n vnode.text,\\n vnode.elm,\\n vnode.context,\\n vnode.componentOptions\\n );\\n cloned.ns = vnode.ns;\\n cloned.isStatic = vnode.isStatic;\\n cloned.key = vnode.key;\\n cloned.isCloned = true;\\n return cloned\\n}\\n\\nfunction cloneVNodes (vnodes) {\\n var res = new Array(vnodes.length);\\n for (var i = 0; i < vnodes.length; i++) {\\n res[i] = cloneVNode(vnodes[i]);\\n }\\n return res\\n}\\n\\n/* */\\n\\nvar activeInstance = null;\\n\\nfunction initLifecycle (vm) {\\n var options = vm.$options;\\n\\n // locate first non-abstract parent\\n var parent = options.parent;\\n if (parent && !options.abstract) {\\n while (parent.$options.abstract && parent.$parent) {\\n parent = parent.$parent;\\n }\\n parent.$children.push(vm);\\n }\\n\\n vm.$parent = parent;\\n vm.$root = parent ? parent.$root : vm;\\n\\n vm.$children = [];\\n vm.$refs = {};\\n\\n vm._watcher = null;\\n vm._inactive = false;\\n vm._isMounted = false;\\n vm._isDestroyed = false;\\n vm._isBeingDestroyed = false;\\n}\\n\\nfunction lifecycleMixin (Vue) {\\n Vue.prototype._mount = function (\\n el,\\n hydrating\\n ) {\\n var vm = this;\\n vm.$el = el;\\n if (!vm.$options.render) {\\n vm.$options.render = createEmptyVNode;\\n {\\n /* istanbul ignore if */\\n if (vm.$options.template && vm.$options.template.charAt(0) !== '#') {\\n warn(\\n 'You are using the runtime-only build of Vue where the template ' +\\n 'option is not available. Either pre-compile the templates into ' +\\n 'render functions, or use the compiler-included build.',\\n vm\\n );\\n } else {\\n warn(\\n 'Failed to mount component: template or render function not defined.',\\n vm\\n );\\n }\\n }\\n }\\n callHook(vm, 'beforeMount');\\n vm._watcher = new Watcher(vm, function () {\\n vm._update(vm._render(), hydrating);\\n }, noop);\\n hydrating = false;\\n // manually mounted instance, call mounted on self\\n // mounted is called for render-created child components in its inserted hook\\n if (vm.$vnode == null) {\\n vm._isMounted = true;\\n callHook(vm, 'mounted');\\n }\\n return vm\\n };\\n\\n Vue.prototype._update = function (vnode, hydrating) {\\n var vm = this;\\n if (vm._isMounted) {\\n callHook(vm, 'beforeUpdate');\\n }\\n var prevEl = vm.$el;\\n var prevVnode = vm._vnode;\\n var prevActiveInstance = activeInstance;\\n activeInstance = vm;\\n vm._vnode = vnode;\\n // Vue.prototype.__patch__ is injected in entry points\\n // based on the rendering backend used.\\n if (!prevVnode) {\\n // initial render\\n vm.$el = vm.__patch__(\\n vm.$el, vnode, hydrating, false /* removeOnly */,\\n vm.$options._parentElm,\\n vm.$options._refElm\\n );\\n } else {\\n // updates\\n vm.$el = vm.__patch__(prevVnode, vnode);\\n }\\n activeInstance = prevActiveInstance;\\n // update __vue__ reference\\n if (prevEl) {\\n prevEl.__vue__ = null;\\n }\\n if (vm.$el) {\\n vm.$el.__vue__ = vm;\\n }\\n // if parent is an HOC, update its $el as well\\n if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {\\n vm.$parent.$el = vm.$el;\\n }\\n if (vm._isMounted) {\\n callHook(vm, 'updated');\\n }\\n };\\n\\n Vue.prototype._updateFromParent = function (\\n propsData,\\n listeners,\\n parentVnode,\\n renderChildren\\n ) {\\n var vm = this;\\n var hasChildren = !!(vm.$options._renderChildren || renderChildren);\\n vm.$options._parentVnode = parentVnode;\\n vm.$vnode = parentVnode; // update vm's placeholder node without re-render\\n if (vm._vnode) { // update child tree's parent\\n vm._vnode.parent = parentVnode;\\n }\\n vm.$options._renderChildren = renderChildren;\\n // update props\\n if (propsData && vm.$options.props) {\\n observerState.shouldConvert = false;\\n {\\n observerState.isSettingProps = true;\\n }\\n var propKeys = vm.$options._propKeys || [];\\n for (var i = 0; i < propKeys.length; i++) {\\n var key = propKeys[i];\\n vm[key] = validateProp(key, vm.$options.props, propsData, vm);\\n }\\n observerState.shouldConvert = true;\\n {\\n observerState.isSettingProps = false;\\n }\\n vm.$options.propsData = propsData;\\n }\\n // update listeners\\n if (listeners) {\\n var oldListeners = vm.$options._parentListeners;\\n vm.$options._parentListeners = listeners;\\n vm._updateListeners(listeners, oldListeners);\\n }\\n // resolve slots + force update if has children\\n if (hasChildren) {\\n vm.$slots = resolveSlots(renderChildren, parentVnode.context);\\n vm.$forceUpdate();\\n }\\n };\\n\\n Vue.prototype.$forceUpdate = function () {\\n var vm = this;\\n if (vm._watcher) {\\n vm._watcher.update();\\n }\\n };\\n\\n Vue.prototype.$destroy = function () {\\n var vm = this;\\n if (vm._isBeingDestroyed) {\\n return\\n }\\n callHook(vm, 'beforeDestroy');\\n vm._isBeingDestroyed = true;\\n // remove self from parent\\n var parent = vm.$parent;\\n if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {\\n remove$1(parent.$children, vm);\\n }\\n // teardown watchers\\n if (vm._watcher) {\\n vm._watcher.teardown();\\n }\\n var i = vm._watchers.length;\\n while (i--) {\\n vm._watchers[i].teardown();\\n }\\n // remove reference from data ob\\n // frozen object may not have observer.\\n if (vm._data.__ob__) {\\n vm._data.__ob__.vmCount--;\\n }\\n // call the last hook...\\n vm._isDestroyed = true;\\n callHook(vm, 'destroyed');\\n // turn off all instance listeners.\\n vm.$off();\\n // remove __vue__ reference\\n if (vm.$el) {\\n vm.$el.__vue__ = null;\\n }\\n // invoke destroy hooks on current rendered tree\\n vm.__patch__(vm._vnode, null);\\n };\\n}\\n\\nfunction callHook (vm, hook) {\\n var handlers = vm.$options[hook];\\n if (handlers) {\\n for (var i = 0, j = handlers.length; i < j; i++) {\\n handlers[i].call(vm);\\n }\\n }\\n vm.$emit('hook:' + hook);\\n}\\n\\n/* */\\n\\nvar hooks = { init: init, prepatch: prepatch, insert: insert, destroy: destroy$1 };\\nvar hooksToMerge = Object.keys(hooks);\\n\\nfunction createComponent (\\n Ctor,\\n data,\\n context,\\n children,\\n tag\\n) {\\n if (!Ctor) {\\n return\\n }\\n\\n var baseCtor = context.$options._base;\\n if (isObject(Ctor)) {\\n Ctor = baseCtor.extend(Ctor);\\n }\\n\\n if (typeof Ctor !== 'function') {\\n {\\n warn((\\\"Invalid Component definition: \\\" + (String(Ctor))), context);\\n }\\n return\\n }\\n\\n // async component\\n if (!Ctor.cid) {\\n if (Ctor.resolved) {\\n Ctor = Ctor.resolved;\\n } else {\\n Ctor = resolveAsyncComponent(Ctor, baseCtor, function () {\\n // it's ok to queue this on every render because\\n // $forceUpdate is buffered by the scheduler.\\n context.$forceUpdate();\\n });\\n if (!Ctor) {\\n // return nothing if this is indeed an async component\\n // wait for the callback to trigger parent update.\\n return\\n }\\n }\\n }\\n\\n // resolve constructor options in case global mixins are applied after\\n // component constructor creation\\n resolveConstructorOptions(Ctor);\\n\\n data = data || {};\\n\\n // extract props\\n var propsData = extractProps(data, Ctor);\\n\\n // functional component\\n if (Ctor.options.functional) {\\n return createFunctionalComponent(Ctor, propsData, data, context, children)\\n }\\n\\n // extract listeners, since these needs to be treated as\\n // child component listeners instead of DOM listeners\\n var listeners = data.on;\\n // replace with listeners with .native modifier\\n data.on = data.nativeOn;\\n\\n if (Ctor.options.abstract) {\\n // abstract components do not keep anything\\n // other than props & listeners\\n data = {};\\n }\\n\\n // merge component management hooks onto the placeholder node\\n mergeHooks(data);\\n\\n // return a placeholder vnode\\n var name = Ctor.options.name || tag;\\n var vnode = new VNode(\\n (\\\"vue-component-\\\" + (Ctor.cid) + (name ? (\\\"-\\\" + name) : '')),\\n data, undefined, undefined, undefined, context,\\n { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children }\\n );\\n return vnode\\n}\\n\\nfunction createFunctionalComponent (\\n Ctor,\\n propsData,\\n data,\\n context,\\n children\\n) {\\n var props = {};\\n var propOptions = Ctor.options.props;\\n if (propOptions) {\\n for (var key in propOptions) {\\n props[key] = validateProp(key, propOptions, propsData);\\n }\\n }\\n // ensure the createElement function in functional components\\n // gets a unique context - this is necessary for correct named slot check\\n var _context = Object.create(context);\\n var h = function (a, b, c, d) { return createElement(_context, a, b, c, d, true); };\\n var vnode = Ctor.options.render.call(null, h, {\\n props: props,\\n data: data,\\n parent: context,\\n children: children,\\n slots: function () { return resolveSlots(children, context); }\\n });\\n if (vnode instanceof VNode) {\\n vnode.functionalContext = context;\\n if (data.slot) {\\n (vnode.data || (vnode.data = {})).slot = data.slot;\\n }\\n }\\n return vnode\\n}\\n\\nfunction createComponentInstanceForVnode (\\n vnode, // we know it's MountedComponentVNode but flow doesn't\\n parent, // activeInstance in lifecycle state\\n parentElm,\\n refElm\\n) {\\n var vnodeComponentOptions = vnode.componentOptions;\\n var options = {\\n _isComponent: true,\\n parent: parent,\\n propsData: vnodeComponentOptions.propsData,\\n _componentTag: vnodeComponentOptions.tag,\\n _parentVnode: vnode,\\n _parentListeners: vnodeComponentOptions.listeners,\\n _renderChildren: vnodeComponentOptions.children,\\n _parentElm: parentElm || null,\\n _refElm: refElm || null\\n };\\n // check inline-template render functions\\n var inlineTemplate = vnode.data.inlineTemplate;\\n if (inlineTemplate) {\\n options.render = inlineTemplate.render;\\n options.staticRenderFns = inlineTemplate.staticRenderFns;\\n }\\n return new vnodeComponentOptions.Ctor(options)\\n}\\n\\nfunction init (\\n vnode,\\n hydrating,\\n parentElm,\\n refElm\\n) {\\n if (!vnode.child || vnode.child._isDestroyed) {\\n var child = vnode.child = createComponentInstanceForVnode(\\n vnode,\\n activeInstance,\\n parentElm,\\n refElm\\n );\\n child.$mount(hydrating ? vnode.elm : undefined, hydrating);\\n } else if (vnode.data.keepAlive) {\\n // kept-alive components, treat as a patch\\n var mountedNode = vnode; // work around flow\\n prepatch(mountedNode, mountedNode);\\n }\\n}\\n\\nfunction prepatch (\\n oldVnode,\\n vnode\\n) {\\n var options = vnode.componentOptions;\\n var child = vnode.child = oldVnode.child;\\n child._updateFromParent(\\n options.propsData, // updated props\\n options.listeners, // updated listeners\\n vnode, // new parent vnode\\n options.children // new children\\n );\\n}\\n\\nfunction insert (vnode) {\\n if (!vnode.child._isMounted) {\\n vnode.child._isMounted = true;\\n callHook(vnode.child, 'mounted');\\n }\\n if (vnode.data.keepAlive) {\\n vnode.child._inactive = false;\\n callHook(vnode.child, 'activated');\\n }\\n}\\n\\nfunction destroy$1 (vnode) {\\n if (!vnode.child._isDestroyed) {\\n if (!vnode.data.keepAlive) {\\n vnode.child.$destroy();\\n } else {\\n vnode.child._inactive = true;\\n callHook(vnode.child, 'deactivated');\\n }\\n }\\n}\\n\\nfunction resolveAsyncComponent (\\n factory,\\n baseCtor,\\n cb\\n) {\\n if (factory.requested) {\\n // pool callbacks\\n factory.pendingCallbacks.push(cb);\\n } else {\\n factory.requested = true;\\n var cbs = factory.pendingCallbacks = [cb];\\n var sync = true;\\n\\n var resolve = function (res) {\\n if (isObject(res)) {\\n res = baseCtor.extend(res);\\n }\\n // cache resolved\\n factory.resolved = res;\\n // invoke callbacks only if this is not a synchronous resolve\\n // (async resolves are shimmed as synchronous during SSR)\\n if (!sync) {\\n for (var i = 0, l = cbs.length; i < l; i++) {\\n cbs[i](res);\\n }\\n }\\n };\\n\\n var reject = function (reason) {\\n \\\"development\\\" !== 'production' && warn(\\n \\\"Failed to resolve async component: \\\" + (String(factory)) +\\n (reason ? (\\\"\\\\nReason: \\\" + reason) : '')\\n );\\n };\\n\\n var res = factory(resolve, reject);\\n\\n // handle promise\\n if (res && typeof res.then === 'function' && !factory.resolved) {\\n res.then(resolve, reject);\\n }\\n\\n sync = false;\\n // return in case resolved synchronously\\n return factory.resolved\\n }\\n}\\n\\nfunction extractProps (data, Ctor) {\\n // we are only extracting raw values here.\\n // validation and default values are handled in the child\\n // component itself.\\n var propOptions = Ctor.options.props;\\n if (!propOptions) {\\n return\\n }\\n var res = {};\\n var attrs = data.attrs;\\n var props = data.props;\\n var domProps = data.domProps;\\n if (attrs || props || domProps) {\\n for (var key in propOptions) {\\n var altKey = hyphenate(key);\\n checkProp(res, props, key, altKey, true) ||\\n checkProp(res, attrs, key, altKey) ||\\n checkProp(res, domProps, key, altKey);\\n }\\n }\\n return res\\n}\\n\\nfunction checkProp (\\n res,\\n hash,\\n key,\\n altKey,\\n preserve\\n) {\\n if (hash) {\\n if (hasOwn(hash, key)) {\\n res[key] = hash[key];\\n if (!preserve) {\\n delete hash[key];\\n }\\n return true\\n } else if (hasOwn(hash, altKey)) {\\n res[key] = hash[altKey];\\n if (!preserve) {\\n delete hash[altKey];\\n }\\n return true\\n }\\n }\\n return false\\n}\\n\\nfunction mergeHooks (data) {\\n if (!data.hook) {\\n data.hook = {};\\n }\\n for (var i = 0; i < hooksToMerge.length; i++) {\\n var key = hooksToMerge[i];\\n var fromParent = data.hook[key];\\n var ours = hooks[key];\\n data.hook[key] = fromParent ? mergeHook$1(ours, fromParent) : ours;\\n }\\n}\\n\\nfunction mergeHook$1 (one, two) {\\n return function (a, b, c, d) {\\n one(a, b, c, d);\\n two(a, b, c, d);\\n }\\n}\\n\\n/* */\\n\\nfunction mergeVNodeHook (def, hookKey, hook, key) {\\n key = key + hookKey;\\n var injectedHash = def.__injected || (def.__injected = {});\\n if (!injectedHash[key]) {\\n injectedHash[key] = true;\\n var oldHook = def[hookKey];\\n if (oldHook) {\\n def[hookKey] = function () {\\n oldHook.apply(this, arguments);\\n hook.apply(this, arguments);\\n };\\n } else {\\n def[hookKey] = hook;\\n }\\n }\\n}\\n\\n/* */\\n\\nfunction updateListeners (\\n on,\\n oldOn,\\n add,\\n remove$$1,\\n vm\\n) {\\n var name, cur, old, fn, event, capture, once;\\n for (name in on) {\\n cur = on[name];\\n old = oldOn[name];\\n if (!cur) {\\n \\\"development\\\" !== 'production' && warn(\\n \\\"Invalid handler for event \\\\\\\"\\\" + name + \\\"\\\\\\\": got \\\" + String(cur),\\n vm\\n );\\n } else if (!old) {\\n once = name.charAt(0) === '~'; // Prefixed last, checked first\\n event = once ? name.slice(1) : name;\\n capture = event.charAt(0) === '!';\\n event = capture ? event.slice(1) : event;\\n if (Array.isArray(cur)) {\\n add(event, (cur.invoker = arrInvoker(cur)), once, capture);\\n } else {\\n if (!cur.invoker) {\\n fn = cur;\\n cur = on[name] = {};\\n cur.fn = fn;\\n cur.invoker = fnInvoker(cur);\\n }\\n add(event, cur.invoker, once, capture);\\n }\\n } else if (cur !== old) {\\n if (Array.isArray(old)) {\\n old.length = cur.length;\\n for (var i = 0; i < old.length; i++) { old[i] = cur[i]; }\\n on[name] = old;\\n } else {\\n old.fn = cur;\\n on[name] = old;\\n }\\n }\\n }\\n for (name in oldOn) {\\n if (!on[name]) {\\n once = name.charAt(0) === '~'; // Prefixed last, checked first\\n event = once ? name.slice(1) : name;\\n capture = event.charAt(0) === '!';\\n event = capture ? event.slice(1) : event;\\n remove$$1(event, oldOn[name].invoker, capture);\\n }\\n }\\n}\\n\\nfunction arrInvoker (arr) {\\n return function (ev) {\\n var arguments$1 = arguments;\\n\\n var single = arguments.length === 1;\\n for (var i = 0; i < arr.length; i++) {\\n single ? arr[i](ev) : arr[i].apply(null, arguments$1);\\n }\\n }\\n}\\n\\nfunction fnInvoker (o) {\\n return function (ev) {\\n var single = arguments.length === 1;\\n single ? o.fn(ev) : o.fn.apply(null, arguments);\\n }\\n}\\n\\n/* */\\n\\nfunction normalizeChildren (children) {\\n return isPrimitive(children)\\n ? [createTextVNode(children)]\\n : Array.isArray(children)\\n ? normalizeArrayChildren(children)\\n : undefined\\n}\\n\\nfunction normalizeArrayChildren (children, nestedIndex) {\\n var res = [];\\n var i, c, last;\\n for (i = 0; i < children.length; i++) {\\n c = children[i];\\n if (c == null || typeof c === 'boolean') { continue }\\n last = res[res.length - 1];\\n // nested\\n if (Array.isArray(c)) {\\n res.push.apply(res, normalizeArrayChildren(c, ((nestedIndex || '') + \\\"_\\\" + i)));\\n } else if (isPrimitive(c)) {\\n if (last && last.text) {\\n last.text += String(c);\\n } else if (c !== '') {\\n // convert primitive to vnode\\n res.push(createTextVNode(c));\\n }\\n } else {\\n if (c.text && last && last.text) {\\n res[res.length - 1] = createTextVNode(last.text + c.text);\\n } else {\\n // default key for nested array children (likely generated by v-for)\\n if (c.tag && c.key == null && nestedIndex != null) {\\n c.key = \\\"__vlist\\\" + nestedIndex + \\\"_\\\" + i + \\\"__\\\";\\n }\\n res.push(c);\\n }\\n }\\n }\\n return res\\n}\\n\\n/* */\\n\\nfunction getFirstComponentChild (children) {\\n return children && children.filter(function (c) { return c && c.componentOptions; })[0]\\n}\\n\\n/* */\\n\\n// wrapper function for providing a more flexible interface\\n// without getting yelled at by flow\\nfunction createElement (\\n context,\\n tag,\\n data,\\n children,\\n needNormalization,\\n alwaysNormalize\\n) {\\n if (Array.isArray(data) || isPrimitive(data)) {\\n needNormalization = children;\\n children = data;\\n data = undefined;\\n }\\n if (alwaysNormalize) { needNormalization = true; }\\n return _createElement(context, tag, data, children, needNormalization)\\n}\\n\\nfunction _createElement (\\n context,\\n tag,\\n data,\\n children,\\n needNormalization\\n) {\\n if (data && data.__ob__) {\\n \\\"development\\\" !== 'production' && warn(\\n \\\"Avoid using observed data object as vnode data: \\\" + (JSON.stringify(data)) + \\\"\\\\n\\\" +\\n 'Always create fresh vnode data objects in each render!',\\n context\\n );\\n return createEmptyVNode()\\n }\\n if (!tag) {\\n // in case of component :is set to falsy value\\n return createEmptyVNode()\\n }\\n // support single function children as default scoped slot\\n if (Array.isArray(children) &&\\n typeof children[0] === 'function') {\\n data = data || {};\\n data.scopedSlots = { default: children[0] };\\n children.length = 0;\\n }\\n if (needNormalization) {\\n children = normalizeChildren(children);\\n }\\n var vnode, ns;\\n if (typeof tag === 'string') {\\n var Ctor;\\n ns = config.getTagNamespace(tag);\\n if (config.isReservedTag(tag)) {\\n // platform built-in elements\\n vnode = new VNode(\\n config.parsePlatformTagName(tag), data, children,\\n undefined, undefined, context\\n );\\n } else if ((Ctor = resolveAsset(context.$options, 'components', tag))) {\\n // component\\n vnode = createComponent(Ctor, data, context, children, tag);\\n } else {\\n // unknown or unlisted namespaced elements\\n // check at runtime because it may get assigned a namespace when its\\n // parent normalizes children\\n ns = tag === 'foreignObject' ? 'xhtml' : ns;\\n vnode = new VNode(\\n tag, data, children,\\n undefined, undefined, context\\n );\\n }\\n } else {\\n // direct component options / constructor\\n vnode = createComponent(tag, data, context, children);\\n }\\n if (vnode) {\\n if (ns) { applyNS(vnode, ns); }\\n return vnode\\n } else {\\n return createEmptyVNode()\\n }\\n}\\n\\nfunction applyNS (vnode, ns) {\\n vnode.ns = ns;\\n if (vnode.children) {\\n for (var i = 0, l = vnode.children.length; i < l; i++) {\\n var child = vnode.children[i];\\n if (child.tag && !child.ns) {\\n applyNS(child, ns);\\n }\\n }\\n }\\n}\\n\\n/* */\\n\\nfunction initRender (vm) {\\n vm.$vnode = null; // the placeholder node in parent tree\\n vm._vnode = null; // the root of the child tree\\n vm._staticTrees = null;\\n var parentVnode = vm.$options._parentVnode;\\n var renderContext = parentVnode && parentVnode.context;\\n vm.$slots = resolveSlots(vm.$options._renderChildren, renderContext);\\n vm.$scopedSlots = {};\\n // bind the createElement fn to this instance\\n // so that we get proper render context inside it.\\n // args order: tag, data, children, needNormalization, alwaysNormalize\\n // internal version is used by render functions compiled from templates\\n vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };\\n // normalization is always applied for the public version, used in\\n // user-written render functions.\\n vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };\\n if (vm.$options.el) {\\n vm.$mount(vm.$options.el);\\n }\\n}\\n\\nfunction renderMixin (Vue) {\\n Vue.prototype.$nextTick = function (fn) {\\n return nextTick(fn, this)\\n };\\n\\n Vue.prototype._render = function () {\\n var vm = this;\\n var ref = vm.$options;\\n var render = ref.render;\\n var staticRenderFns = ref.staticRenderFns;\\n var _parentVnode = ref._parentVnode;\\n\\n if (vm._isMounted) {\\n // clone slot nodes on re-renders\\n for (var key in vm.$slots) {\\n vm.$slots[key] = cloneVNodes(vm.$slots[key]);\\n }\\n }\\n\\n if (_parentVnode && _parentVnode.data.scopedSlots) {\\n vm.$scopedSlots = _parentVnode.data.scopedSlots;\\n }\\n\\n if (staticRenderFns && !vm._staticTrees) {\\n vm._staticTrees = [];\\n }\\n // set parent vnode. this allows render functions to have access\\n // to the data on the placeholder node.\\n vm.$vnode = _parentVnode;\\n // render self\\n var vnode;\\n try {\\n vnode = render.call(vm._renderProxy, vm.$createElement);\\n } catch (e) {\\n /* istanbul ignore else */\\n if (config.errorHandler) {\\n config.errorHandler.call(null, e, vm);\\n } else {\\n {\\n warn((\\\"Error when rendering \\\" + (formatComponentName(vm)) + \\\":\\\"));\\n }\\n throw e\\n }\\n // return previous vnode to prevent render error causing blank component\\n vnode = vm._vnode;\\n }\\n // return empty vnode in case the render function errored out\\n if (!(vnode instanceof VNode)) {\\n if (\\\"development\\\" !== 'production' && Array.isArray(vnode)) {\\n warn(\\n 'Multiple root nodes returned from render function. Render function ' +\\n 'should return a single root node.',\\n vm\\n );\\n }\\n vnode = createEmptyVNode();\\n }\\n // set parent\\n vnode.parent = _parentVnode;\\n return vnode\\n };\\n\\n // toString for mustaches\\n Vue.prototype._s = _toString;\\n // convert text to vnode\\n Vue.prototype._v = createTextVNode;\\n // number conversion\\n Vue.prototype._n = toNumber;\\n // empty vnode\\n Vue.prototype._e = createEmptyVNode;\\n // loose equal\\n Vue.prototype._q = looseEqual;\\n // loose indexOf\\n Vue.prototype._i = looseIndexOf;\\n\\n // render static tree by index\\n Vue.prototype._m = function renderStatic (\\n index,\\n isInFor\\n ) {\\n var tree = this._staticTrees[index];\\n // if has already-rendered static tree and not inside v-for,\\n // we can reuse the same tree by doing a shallow clone.\\n if (tree && !isInFor) {\\n return Array.isArray(tree)\\n ? cloneVNodes(tree)\\n : cloneVNode(tree)\\n }\\n // otherwise, render a fresh tree.\\n tree = this._staticTrees[index] = this.$options.staticRenderFns[index].call(this._renderProxy);\\n markStatic(tree, (\\\"__static__\\\" + index), false);\\n return tree\\n };\\n\\n // mark node as static (v-once)\\n Vue.prototype._o = function markOnce (\\n tree,\\n index,\\n key\\n ) {\\n markStatic(tree, (\\\"__once__\\\" + index + (key ? (\\\"_\\\" + key) : \\\"\\\")), true);\\n return tree\\n };\\n\\n function markStatic (tree, key, isOnce) {\\n if (Array.isArray(tree)) {\\n for (var i = 0; i < tree.length; i++) {\\n if (tree[i] && typeof tree[i] !== 'string') {\\n markStaticNode(tree[i], (key + \\\"_\\\" + i), isOnce);\\n }\\n }\\n } else {\\n markStaticNode(tree, key, isOnce);\\n }\\n }\\n\\n function markStaticNode (node, key, isOnce) {\\n node.isStatic = true;\\n node.key = key;\\n node.isOnce = isOnce;\\n }\\n\\n // filter resolution helper\\n Vue.prototype._f = function resolveFilter (id) {\\n return resolveAsset(this.$options, 'filters', id, true) || identity\\n };\\n\\n // render v-for\\n Vue.prototype._l = function renderList (\\n val,\\n render\\n ) {\\n var ret, i, l, keys, key;\\n if (Array.isArray(val)) {\\n ret = new Array(val.length);\\n for (i = 0, l = val.length; i < l; i++) {\\n ret[i] = render(val[i], i);\\n }\\n } else if (typeof val === 'number') {\\n ret = new Array(val);\\n for (i = 0; i < val; i++) {\\n ret[i] = render(i + 1, i);\\n }\\n } else if (isObject(val)) {\\n keys = Object.keys(val);\\n ret = new Array(keys.length);\\n for (i = 0, l = keys.length; i < l; i++) {\\n key = keys[i];\\n ret[i] = render(val[key], key, i);\\n }\\n }\\n return ret\\n };\\n\\n // renderSlot\\n Vue.prototype._t = function (\\n name,\\n fallback,\\n props\\n ) {\\n var scopedSlotFn = this.$scopedSlots[name];\\n if (scopedSlotFn) { // scoped slot\\n return scopedSlotFn(props || {}) || fallback\\n } else {\\n var slotNodes = this.$slots[name];\\n // warn duplicate slot usage\\n if (slotNodes && \\\"development\\\" !== 'production') {\\n slotNodes._rendered && warn(\\n \\\"Duplicate presence of slot \\\\\\\"\\\" + name + \\\"\\\\\\\" found in the same render tree \\\" +\\n \\\"- this will likely cause render errors.\\\",\\n this\\n );\\n slotNodes._rendered = true;\\n }\\n return slotNodes || fallback\\n }\\n };\\n\\n // apply v-bind object\\n Vue.prototype._b = function bindProps (\\n data,\\n tag,\\n value,\\n asProp\\n ) {\\n if (value) {\\n if (!isObject(value)) {\\n \\\"development\\\" !== 'production' && warn(\\n 'v-bind without argument expects an Object or Array value',\\n this\\n );\\n } else {\\n if (Array.isArray(value)) {\\n value = toObject(value);\\n }\\n for (var key in value) {\\n if (key === 'class' || key === 'style') {\\n data[key] = value[key];\\n } else {\\n var hash = asProp || config.mustUseProp(tag, key)\\n ? data.domProps || (data.domProps = {})\\n : data.attrs || (data.attrs = {});\\n hash[key] = value[key];\\n }\\n }\\n }\\n }\\n return data\\n };\\n\\n // check v-on keyCodes\\n Vue.prototype._k = function checkKeyCodes (\\n eventKeyCode,\\n key,\\n builtInAlias\\n ) {\\n var keyCodes = config.keyCodes[key] || builtInAlias;\\n if (Array.isArray(keyCodes)) {\\n return keyCodes.indexOf(eventKeyCode) === -1\\n } else {\\n return keyCodes !== eventKeyCode\\n }\\n };\\n}\\n\\nfunction resolveSlots (\\n children,\\n context\\n) {\\n var slots = {};\\n if (!children) {\\n return slots\\n }\\n var defaultSlot = [];\\n var name, child;\\n for (var i = 0, l = children.length; i < l; i++) {\\n child = children[i];\\n // named slots should only be respected if the vnode was rendered in the\\n // same context.\\n if ((child.context === context || child.functionalContext === context) &&\\n child.data && (name = child.data.slot)) {\\n var slot = (slots[name] || (slots[name] = []));\\n if (child.tag === 'template') {\\n slot.push.apply(slot, child.children);\\n } else {\\n slot.push(child);\\n }\\n } else {\\n defaultSlot.push(child);\\n }\\n }\\n // ignore single whitespace\\n if (defaultSlot.length && !(\\n defaultSlot.length === 1 &&\\n (defaultSlot[0].text === ' ' || defaultSlot[0].isComment)\\n )) {\\n slots.default = defaultSlot;\\n }\\n return slots\\n}\\n\\n/* */\\n\\nfunction initEvents (vm) {\\n vm._events = Object.create(null);\\n // init parent attached events\\n var listeners = vm.$options._parentListeners;\\n var add = function (event, fn, once) {\\n once ? vm.$once(event, fn) : vm.$on(event, fn);\\n };\\n var remove$$1 = bind$1(vm.$off, vm);\\n vm._updateListeners = function (listeners, oldListeners) {\\n updateListeners(listeners, oldListeners || {}, add, remove$$1, vm);\\n };\\n if (listeners) {\\n vm._updateListeners(listeners);\\n }\\n}\\n\\nfunction eventsMixin (Vue) {\\n Vue.prototype.$on = function (event, fn) {\\n var vm = this;(vm._events[event] || (vm._events[event] = [])).push(fn);\\n return vm\\n };\\n\\n Vue.prototype.$once = function (event, fn) {\\n var vm = this;\\n function on () {\\n vm.$off(event, on);\\n fn.apply(vm, arguments);\\n }\\n on.fn = fn;\\n vm.$on(event, on);\\n return vm\\n };\\n\\n Vue.prototype.$off = function (event, fn) {\\n var vm = this;\\n // all\\n if (!arguments.length) {\\n vm._events = Object.create(null);\\n return vm\\n }\\n // specific event\\n var cbs = vm._events[event];\\n if (!cbs) {\\n return vm\\n }\\n if (arguments.length === 1) {\\n vm._events[event] = null;\\n return vm\\n }\\n // specific handler\\n var cb;\\n var i = cbs.length;\\n while (i--) {\\n cb = cbs[i];\\n if (cb === fn || cb.fn === fn) {\\n cbs.splice(i, 1);\\n break\\n }\\n }\\n return vm\\n };\\n\\n Vue.prototype.$emit = function (event) {\\n var vm = this;\\n var cbs = vm._events[event];\\n if (cbs) {\\n cbs = cbs.length > 1 ? toArray(cbs) : cbs;\\n var args = toArray(arguments, 1);\\n for (var i = 0, l = cbs.length; i < l; i++) {\\n cbs[i].apply(vm, args);\\n }\\n }\\n return vm\\n };\\n}\\n\\n/* */\\n\\nvar uid = 0;\\n\\nfunction initMixin (Vue) {\\n Vue.prototype._init = function (options) {\\n var vm = this;\\n // a uid\\n vm._uid = uid++;\\n // a flag to avoid this being observed\\n vm._isVue = true;\\n // merge options\\n if (options && options._isComponent) {\\n // optimize internal component instantiation\\n // since dynamic options merging is pretty slow, and none of the\\n // internal component options needs special treatment.\\n initInternalComponent(vm, options);\\n } else {\\n vm.$options = mergeOptions(\\n resolveConstructorOptions(vm.constructor),\\n options || {},\\n vm\\n );\\n }\\n /* istanbul ignore else */\\n {\\n initProxy(vm);\\n }\\n // expose real self\\n vm._self = vm;\\n initLifecycle(vm);\\n initEvents(vm);\\n callHook(vm, 'beforeCreate');\\n initState(vm);\\n callHook(vm, 'created');\\n initRender(vm);\\n };\\n}\\n\\nfunction initInternalComponent (vm, options) {\\n var opts = vm.$options = Object.create(vm.constructor.options);\\n // doing this because it's faster than dynamic enumeration.\\n opts.parent = options.parent;\\n opts.propsData = options.propsData;\\n opts._parentVnode = options._parentVnode;\\n opts._parentListeners = options._parentListeners;\\n opts._renderChildren = options._renderChildren;\\n opts._componentTag = options._componentTag;\\n opts._parentElm = options._parentElm;\\n opts._refElm = options._refElm;\\n if (options.render) {\\n opts.render = options.render;\\n opts.staticRenderFns = options.staticRenderFns;\\n }\\n}\\n\\nfunction resolveConstructorOptions (Ctor) {\\n var options = Ctor.options;\\n if (Ctor.super) {\\n var superOptions = Ctor.super.options;\\n var cachedSuperOptions = Ctor.superOptions;\\n var extendOptions = Ctor.extendOptions;\\n if (superOptions !== cachedSuperOptions) {\\n // super option changed\\n Ctor.superOptions = superOptions;\\n extendOptions.render = options.render;\\n extendOptions.staticRenderFns = options.staticRenderFns;\\n extendOptions._scopeId = options._scopeId;\\n options = Ctor.options = mergeOptions(superOptions, extendOptions);\\n if (options.name) {\\n options.components[options.name] = Ctor;\\n }\\n }\\n }\\n return options\\n}\\n\\nfunction Vue$3 (options) {\\n if (\\\"development\\\" !== 'production' &&\\n !(this instanceof Vue$3)) {\\n warn('Vue is a constructor and should be called with the `new` keyword');\\n }\\n this._init(options);\\n}\\n\\ninitMixin(Vue$3);\\nstateMixin(Vue$3);\\neventsMixin(Vue$3);\\nlifecycleMixin(Vue$3);\\nrenderMixin(Vue$3);\\n\\n/* */\\n\\nfunction initUse (Vue) {\\n Vue.use = function (plugin) {\\n /* istanbul ignore if */\\n if (plugin.installed) {\\n return\\n }\\n // additional parameters\\n var args = toArray(arguments, 1);\\n args.unshift(this);\\n if (typeof plugin.install === 'function') {\\n plugin.install.apply(plugin, args);\\n } else {\\n plugin.apply(null, args);\\n }\\n plugin.installed = true;\\n return this\\n };\\n}\\n\\n/* */\\n\\nfunction initMixin$1 (Vue) {\\n Vue.mixin = function (mixin) {\\n this.options = mergeOptions(this.options, mixin);\\n };\\n}\\n\\n/* */\\n\\nfunction initExtend (Vue) {\\n /**\\n * Each instance constructor, including Vue, has a unique\\n * cid. This enables us to create wrapped \\\"child\\n * constructors\\\" for prototypal inheritance and cache them.\\n */\\n Vue.cid = 0;\\n var cid = 1;\\n\\n /**\\n * Class inheritance\\n */\\n Vue.extend = function (extendOptions) {\\n extendOptions = extendOptions || {};\\n var Super = this;\\n var SuperId = Super.cid;\\n var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});\\n if (cachedCtors[SuperId]) {\\n return cachedCtors[SuperId]\\n }\\n var name = extendOptions.name || Super.options.name;\\n {\\n if (!/^[a-zA-Z][\\\\w-]*$/.test(name)) {\\n warn(\\n 'Invalid component name: \\\"' + name + '\\\". Component names ' +\\n 'can only contain alphanumeric characters and the hyphen, ' +\\n 'and must start with a letter.'\\n );\\n }\\n }\\n var Sub = function VueComponent (options) {\\n this._init(options);\\n };\\n Sub.prototype = Object.create(Super.prototype);\\n Sub.prototype.constructor = Sub;\\n Sub.cid = cid++;\\n Sub.options = mergeOptions(\\n Super.options,\\n extendOptions\\n );\\n Sub['super'] = Super;\\n // allow further extension/mixin/plugin usage\\n Sub.extend = Super.extend;\\n Sub.mixin = Super.mixin;\\n Sub.use = Super.use;\\n // create asset registers, so extended classes\\n // can have their private assets too.\\n config._assetTypes.forEach(function (type) {\\n Sub[type] = Super[type];\\n });\\n // enable recursive self-lookup\\n if (name) {\\n Sub.options.components[name] = Sub;\\n }\\n // keep a reference to the super options at extension time.\\n // later at instantiation we can check if Super's options have\\n // been updated.\\n Sub.superOptions = Super.options;\\n Sub.extendOptions = extendOptions;\\n // cache constructor\\n cachedCtors[SuperId] = Sub;\\n return Sub\\n };\\n}\\n\\n/* */\\n\\nfunction initAssetRegisters (Vue) {\\n /**\\n * Create asset registration methods.\\n */\\n config._assetTypes.forEach(function (type) {\\n Vue[type] = function (\\n id,\\n definition\\n ) {\\n if (!definition) {\\n return this.options[type + 's'][id]\\n } else {\\n /* istanbul ignore if */\\n {\\n if (type === 'component' && config.isReservedTag(id)) {\\n warn(\\n 'Do not use built-in or reserved HTML elements as component ' +\\n 'id: ' + id\\n );\\n }\\n }\\n if (type === 'component' && isPlainObject(definition)) {\\n definition.name = definition.name || id;\\n definition = this.options._base.extend(definition);\\n }\\n if (type === 'directive' && typeof definition === 'function') {\\n definition = { bind: definition, update: definition };\\n }\\n this.options[type + 's'][id] = definition;\\n return definition\\n }\\n };\\n });\\n}\\n\\n/* */\\n\\nvar patternTypes = [String, RegExp];\\n\\nfunction matches (pattern, name) {\\n if (typeof pattern === 'string') {\\n return pattern.split(',').indexOf(name) > -1\\n } else {\\n return pattern.test(name)\\n }\\n}\\n\\nvar KeepAlive = {\\n name: 'keep-alive',\\n abstract: true,\\n props: {\\n include: patternTypes,\\n exclude: patternTypes\\n },\\n created: function created () {\\n this.cache = Object.create(null);\\n },\\n render: function render () {\\n var vnode = getFirstComponentChild(this.$slots.default);\\n if (vnode && vnode.componentOptions) {\\n var opts = vnode.componentOptions;\\n // check pattern\\n var name = opts.Ctor.options.name || opts.tag;\\n if (name && (\\n (this.include && !matches(this.include, name)) ||\\n (this.exclude && matches(this.exclude, name))\\n )) {\\n return vnode\\n }\\n var key = vnode.key == null\\n // same constructor may get registered as different local components\\n // so cid alone is not enough (#3269)\\n ? opts.Ctor.cid + (opts.tag ? (\\\"::\\\" + (opts.tag)) : '')\\n : vnode.key;\\n if (this.cache[key]) {\\n vnode.child = this.cache[key].child;\\n } else {\\n this.cache[key] = vnode;\\n }\\n vnode.data.keepAlive = true;\\n }\\n return vnode\\n },\\n destroyed: function destroyed () {\\n var this$1 = this;\\n\\n for (var key in this.cache) {\\n var vnode = this$1.cache[key];\\n callHook(vnode.child, 'deactivated');\\n vnode.child.$destroy();\\n }\\n }\\n};\\n\\nvar builtInComponents = {\\n KeepAlive: KeepAlive\\n};\\n\\n/* */\\n\\nfunction initGlobalAPI (Vue) {\\n // config\\n var configDef = {};\\n configDef.get = function () { return config; };\\n {\\n configDef.set = function () {\\n warn(\\n 'Do not replace the Vue.config object, set individual fields instead.'\\n );\\n };\\n }\\n Object.defineProperty(Vue, 'config', configDef);\\n Vue.util = util;\\n Vue.set = set$1;\\n Vue.delete = del;\\n Vue.nextTick = nextTick;\\n\\n Vue.options = Object.create(null);\\n config._assetTypes.forEach(function (type) {\\n Vue.options[type + 's'] = Object.create(null);\\n });\\n\\n // this is used to identify the \\\"base\\\" constructor to extend all plain-object\\n // components with in Weex's multi-instance scenarios.\\n Vue.options._base = Vue;\\n\\n extend(Vue.options.components, builtInComponents);\\n\\n initUse(Vue);\\n initMixin$1(Vue);\\n initExtend(Vue);\\n initAssetRegisters(Vue);\\n}\\n\\ninitGlobalAPI(Vue$3);\\n\\nObject.defineProperty(Vue$3.prototype, '$isServer', {\\n get: isServerRendering\\n});\\n\\nVue$3.version = '2.1.6';\\n\\n/* */\\n\\n// attributes that should be using props for binding\\nvar acceptValue = makeMap('input,textarea,option,select');\\nvar mustUseProp = function (tag, attr) {\\n return (\\n (attr === 'value' && acceptValue(tag)) ||\\n (attr === 'selected' && tag === 'option') ||\\n (attr === 'checked' && tag === 'input') ||\\n (attr === 'muted' && tag === 'video')\\n )\\n};\\n\\nvar isEnumeratedAttr = makeMap('contenteditable,draggable,spellcheck');\\n\\nvar isBooleanAttr = makeMap(\\n 'allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,' +\\n 'default,defaultchecked,defaultmuted,defaultselected,defer,disabled,' +\\n 'enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,' +\\n 'muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,' +\\n 'required,reversed,scoped,seamless,selected,sortable,translate,' +\\n 'truespeed,typemustmatch,visible'\\n);\\n\\nvar xlinkNS = 'http://www.w3.org/1999/xlink';\\n\\nvar isXlink = function (name) {\\n return name.charAt(5) === ':' && name.slice(0, 5) === 'xlink'\\n};\\n\\nvar getXlinkProp = function (name) {\\n return isXlink(name) ? name.slice(6, name.length) : ''\\n};\\n\\nvar isFalsyAttrValue = function (val) {\\n return val == null || val === false\\n};\\n\\n/* */\\n\\nfunction genClassForVnode (vnode) {\\n var data = vnode.data;\\n var parentNode = vnode;\\n var childNode = vnode;\\n while (childNode.child) {\\n childNode = childNode.child._vnode;\\n if (childNode.data) {\\n data = mergeClassData(childNode.data, data);\\n }\\n }\\n while ((parentNode = parentNode.parent)) {\\n if (parentNode.data) {\\n data = mergeClassData(data, parentNode.data);\\n }\\n }\\n return genClassFromData(data)\\n}\\n\\nfunction mergeClassData (child, parent) {\\n return {\\n staticClass: concat(child.staticClass, parent.staticClass),\\n class: child.class\\n ? [child.class, parent.class]\\n : parent.class\\n }\\n}\\n\\nfunction genClassFromData (data) {\\n var dynamicClass = data.class;\\n var staticClass = data.staticClass;\\n if (staticClass || dynamicClass) {\\n return concat(staticClass, stringifyClass(dynamicClass))\\n }\\n /* istanbul ignore next */\\n return ''\\n}\\n\\nfunction concat (a, b) {\\n return a ? b ? (a + ' ' + b) : a : (b || '')\\n}\\n\\nfunction stringifyClass (value) {\\n var res = '';\\n if (!value) {\\n return res\\n }\\n if (typeof value === 'string') {\\n return value\\n }\\n if (Array.isArray(value)) {\\n var stringified;\\n for (var i = 0, l = value.length; i < l; i++) {\\n if (value[i]) {\\n if ((stringified = stringifyClass(value[i]))) {\\n res += stringified + ' ';\\n }\\n }\\n }\\n return res.slice(0, -1)\\n }\\n if (isObject(value)) {\\n for (var key in value) {\\n if (value[key]) { res += key + ' '; }\\n }\\n return res.slice(0, -1)\\n }\\n /* istanbul ignore next */\\n return res\\n}\\n\\n/* */\\n\\nvar namespaceMap = {\\n svg: 'http://www.w3.org/2000/svg',\\n math: 'http://www.w3.org/1998/Math/MathML',\\n xhtml: 'http://www.w3.org/1999/xhtml'\\n};\\n\\nvar isHTMLTag = makeMap(\\n 'html,body,base,head,link,meta,style,title,' +\\n 'address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,' +\\n 'div,dd,dl,dt,figcaption,figure,hr,img,li,main,ol,p,pre,ul,' +\\n 'a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,' +\\n 's,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,' +\\n 'embed,object,param,source,canvas,script,noscript,del,ins,' +\\n 'caption,col,colgroup,table,thead,tbody,td,th,tr,' +\\n 'button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,' +\\n 'output,progress,select,textarea,' +\\n 'details,dialog,menu,menuitem,summary,' +\\n 'content,element,shadow,template'\\n);\\n\\n// this map is intentionally selective, only covering SVG elements that may\\n// contain child elements.\\nvar isSVG = makeMap(\\n 'svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,' +\\n 'font-face,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,' +\\n 'polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view',\\n true\\n);\\n\\nvar isPreTag = function (tag) { return tag === 'pre'; };\\n\\nvar isReservedTag = function (tag) {\\n return isHTMLTag(tag) || isSVG(tag)\\n};\\n\\nfunction getTagNamespace (tag) {\\n if (isSVG(tag)) {\\n return 'svg'\\n }\\n // basic support for MathML\\n // note it doesn't support other MathML elements being component roots\\n if (tag === 'math') {\\n return 'math'\\n }\\n}\\n\\nvar unknownElementCache = Object.create(null);\\nfunction isUnknownElement (tag) {\\n /* istanbul ignore if */\\n if (!inBrowser) {\\n return true\\n }\\n if (isReservedTag(tag)) {\\n return false\\n }\\n tag = tag.toLowerCase();\\n /* istanbul ignore if */\\n if (unknownElementCache[tag] != null) {\\n return unknownElementCache[tag]\\n }\\n var el = document.createElement(tag);\\n if (tag.indexOf('-') > -1) {\\n // http://stackoverflow.com/a/28210364/1070244\\n return (unknownElementCache[tag] = (\\n el.constructor === window.HTMLUnknownElement ||\\n el.constructor === window.HTMLElement\\n ))\\n } else {\\n return (unknownElementCache[tag] = /HTMLUnknownElement/.test(el.toString()))\\n }\\n}\\n\\n/* */\\n\\n/**\\n * Query an element selector if it's not an element already.\\n */\\nfunction query (el) {\\n if (typeof el === 'string') {\\n var selector = el;\\n el = document.querySelector(el);\\n if (!el) {\\n \\\"development\\\" !== 'production' && warn(\\n 'Cannot find element: ' + selector\\n );\\n return document.createElement('div')\\n }\\n }\\n return el\\n}\\n\\n/* */\\n\\nfunction createElement$1 (tagName, vnode) {\\n var elm = document.createElement(tagName);\\n if (tagName !== 'select') {\\n return elm\\n }\\n if (vnode.data && vnode.data.attrs && 'multiple' in vnode.data.attrs) {\\n elm.setAttribute('multiple', 'multiple');\\n }\\n return elm\\n}\\n\\nfunction createElementNS (namespace, tagName) {\\n return document.createElementNS(namespaceMap[namespace], tagName)\\n}\\n\\nfunction createTextNode (text) {\\n return document.createTextNode(text)\\n}\\n\\nfunction createComment (text) {\\n return document.createComment(text)\\n}\\n\\nfunction insertBefore (parentNode, newNode, referenceNode) {\\n parentNode.insertBefore(newNode, referenceNode);\\n}\\n\\nfunction removeChild (node, child) {\\n node.removeChild(child);\\n}\\n\\nfunction appendChild (node, child) {\\n node.appendChild(child);\\n}\\n\\nfunction parentNode (node) {\\n return node.parentNode\\n}\\n\\nfunction nextSibling (node) {\\n return node.nextSibling\\n}\\n\\nfunction tagName (node) {\\n return node.tagName\\n}\\n\\nfunction setTextContent (node, text) {\\n node.textContent = text;\\n}\\n\\nfunction setAttribute (node, key, val) {\\n node.setAttribute(key, val);\\n}\\n\\n\\nvar nodeOps = Object.freeze({\\n\\tcreateElement: createElement$1,\\n\\tcreateElementNS: createElementNS,\\n\\tcreateTextNode: createTextNode,\\n\\tcreateComment: createComment,\\n\\tinsertBefore: insertBefore,\\n\\tremoveChild: removeChild,\\n\\tappendChild: appendChild,\\n\\tparentNode: parentNode,\\n\\tnextSibling: nextSibling,\\n\\ttagName: tagName,\\n\\tsetTextContent: setTextContent,\\n\\tsetAttribute: setAttribute\\n});\\n\\n/* */\\n\\nvar ref = {\\n create: function create (_, vnode) {\\n registerRef(vnode);\\n },\\n update: function update (oldVnode, vnode) {\\n if (oldVnode.data.ref !== vnode.data.ref) {\\n registerRef(oldVnode, true);\\n registerRef(vnode);\\n }\\n },\\n destroy: function destroy (vnode) {\\n registerRef(vnode, true);\\n }\\n};\\n\\nfunction registerRef (vnode, isRemoval) {\\n var key = vnode.data.ref;\\n if (!key) { return }\\n\\n var vm = vnode.context;\\n var ref = vnode.child || vnode.elm;\\n var refs = vm.$refs;\\n if (isRemoval) {\\n if (Array.isArray(refs[key])) {\\n remove$1(refs[key], ref);\\n } else if (refs[key] === ref) {\\n refs[key] = undefined;\\n }\\n } else {\\n if (vnode.data.refInFor) {\\n if (Array.isArray(refs[key]) && refs[key].indexOf(ref) < 0) {\\n refs[key].push(ref);\\n } else {\\n refs[key] = [ref];\\n }\\n } else {\\n refs[key] = ref;\\n }\\n }\\n}\\n\\n/**\\n * Virtual DOM patching algorithm based on Snabbdom by\\n * Simon Friis Vindum (@paldepind)\\n * Licensed under the MIT License\\n * https://github.com/paldepind/snabbdom/blob/master/LICENSE\\n *\\n * modified by Evan You (@yyx990803)\\n *\\n\\n/*\\n * Not type-checking this because this file is perf-critical and the cost\\n * of making flow understand it is not worth it.\\n */\\n\\nvar emptyNode = new VNode('', {}, []);\\n\\nvar hooks$1 = ['create', 'activate', 'update', 'remove', 'destroy'];\\n\\nfunction isUndef (s) {\\n return s == null\\n}\\n\\nfunction isDef (s) {\\n return s != null\\n}\\n\\nfunction sameVnode (vnode1, vnode2) {\\n return (\\n vnode1.key === vnode2.key &&\\n vnode1.tag === vnode2.tag &&\\n vnode1.isComment === vnode2.isComment &&\\n !vnode1.data === !vnode2.data\\n )\\n}\\n\\nfunction createKeyToOldIdx (children, beginIdx, endIdx) {\\n var i, key;\\n var map = {};\\n for (i = beginIdx; i <= endIdx; ++i) {\\n key = children[i].key;\\n if (isDef(key)) { map[key] = i; }\\n }\\n return map\\n}\\n\\nfunction createPatchFunction (backend) {\\n var i, j;\\n var cbs = {};\\n\\n var modules = backend.modules;\\n var nodeOps = backend.nodeOps;\\n\\n for (i = 0; i < hooks$1.length; ++i) {\\n cbs[hooks$1[i]] = [];\\n for (j = 0; j < modules.length; ++j) {\\n if (modules[j][hooks$1[i]] !== undefined) { cbs[hooks$1[i]].push(modules[j][hooks$1[i]]); }\\n }\\n }\\n\\n function emptyNodeAt (elm) {\\n return new VNode(nodeOps.tagName(elm).toLowerCase(), {}, [], undefined, elm)\\n }\\n\\n function createRmCb (childElm, listeners) {\\n function remove$$1 () {\\n if (--remove$$1.listeners === 0) {\\n removeElement(childElm);\\n }\\n }\\n remove$$1.listeners = listeners;\\n return remove$$1\\n }\\n\\n function removeElement (el) {\\n var parent = nodeOps.parentNode(el);\\n // element may have already been removed due to v-html\\n if (parent) {\\n nodeOps.removeChild(parent, el);\\n }\\n }\\n\\n var inPre = 0;\\n function createElm (vnode, insertedVnodeQueue, parentElm, refElm, nested) {\\n vnode.isRootInsert = !nested; // for transition enter check\\n if (createComponent(vnode, insertedVnodeQueue, parentElm, refElm)) {\\n return\\n }\\n\\n var data = vnode.data;\\n var children = vnode.children;\\n var tag = vnode.tag;\\n if (isDef(tag)) {\\n {\\n if (data && data.pre) {\\n inPre++;\\n }\\n if (\\n !inPre &&\\n !vnode.ns &&\\n !(config.ignoredElements && config.ignoredElements.indexOf(tag) > -1) &&\\n config.isUnknownElement(tag)\\n ) {\\n warn(\\n 'Unknown custom element: <' + tag + '> - did you ' +\\n 'register the component correctly? For recursive components, ' +\\n 'make sure to provide the \\\"name\\\" option.',\\n vnode.context\\n );\\n }\\n }\\n vnode.elm = vnode.ns\\n ? nodeOps.createElementNS(vnode.ns, tag)\\n : nodeOps.createElement(tag, vnode);\\n setScope(vnode);\\n\\n /* istanbul ignore if */\\n {\\n createChildren(vnode, children, insertedVnodeQueue);\\n if (isDef(data)) {\\n invokeCreateHooks(vnode, insertedVnodeQueue);\\n }\\n insert(parentElm, vnode.elm, refElm);\\n }\\n\\n if (\\\"development\\\" !== 'production' && data && data.pre) {\\n inPre--;\\n }\\n } else if (vnode.isComment) {\\n vnode.elm = nodeOps.createComment(vnode.text);\\n insert(parentElm, vnode.elm, refElm);\\n } else {\\n vnode.elm = nodeOps.createTextNode(vnode.text);\\n insert(parentElm, vnode.elm, refElm);\\n }\\n }\\n\\n function createComponent (vnode, insertedVnodeQueue, parentElm, refElm) {\\n var i = vnode.data;\\n if (isDef(i)) {\\n var isReactivated = isDef(vnode.child) && i.keepAlive;\\n if (isDef(i = i.hook) && isDef(i = i.init)) {\\n i(vnode, false /* hydrating */, parentElm, refElm);\\n }\\n // after calling the init hook, if the vnode is a child component\\n // it should've created a child instance and mounted it. the child\\n // component also has set the placeholder vnode's elm.\\n // in that case we can just return the element and be done.\\n if (isDef(vnode.child)) {\\n initComponent(vnode, insertedVnodeQueue);\\n if (isReactivated) {\\n reactivateComponent(vnode, insertedVnodeQueue, parentElm, refElm);\\n }\\n return true\\n }\\n }\\n }\\n\\n function reactivateComponent (vnode, insertedVnodeQueue, parentElm, refElm) {\\n var i;\\n // hack for #4339: a reactivated component with inner transition\\n // does not trigger because the inner node's created hooks are not called\\n // again. It's not ideal to involve module-specific logic in here but\\n // there doesn't seem to be a better way to do it.\\n var innerNode = vnode;\\n while (innerNode.child) {\\n innerNode = innerNode.child._vnode;\\n if (isDef(i = innerNode.data) && isDef(i = i.transition)) {\\n for (i = 0; i < cbs.activate.length; ++i) {\\n cbs.activate[i](emptyNode, innerNode);\\n }\\n insertedVnodeQueue.push(innerNode);\\n break\\n }\\n }\\n // unlike a newly created component,\\n // a reactivated keep-alive component doesn't insert itself\\n insert(parentElm, vnode.elm, refElm);\\n }\\n\\n function insert (parent, elm, ref) {\\n if (parent) {\\n if (ref) {\\n nodeOps.insertBefore(parent, elm, ref);\\n } else {\\n nodeOps.appendChild(parent, elm);\\n }\\n }\\n }\\n\\n function createChildren (vnode, children, insertedVnodeQueue) {\\n if (Array.isArray(children)) {\\n for (var i = 0; i < children.length; ++i) {\\n createElm(children[i], insertedVnodeQueue, vnode.elm, null, true);\\n }\\n } else if (isPrimitive(vnode.text)) {\\n nodeOps.appendChild(vnode.elm, nodeOps.createTextNode(vnode.text));\\n }\\n }\\n\\n function isPatchable (vnode) {\\n while (vnode.child) {\\n vnode = vnode.child._vnode;\\n }\\n return isDef(vnode.tag)\\n }\\n\\n function invokeCreateHooks (vnode, insertedVnodeQueue) {\\n for (var i$1 = 0; i$1 < cbs.create.length; ++i$1) {\\n cbs.create[i$1](emptyNode, vnode);\\n }\\n i = vnode.data.hook; // Reuse variable\\n if (isDef(i)) {\\n if (i.create) { i.create(emptyNode, vnode); }\\n if (i.insert) { insertedVnodeQueue.push(vnode); }\\n }\\n }\\n\\n function initComponent (vnode, insertedVnodeQueue) {\\n if (vnode.data.pendingInsert) {\\n insertedVnodeQueue.push.apply(insertedVnodeQueue, vnode.data.pendingInsert);\\n }\\n vnode.elm = vnode.child.$el;\\n if (isPatchable(vnode)) {\\n invokeCreateHooks(vnode, insertedVnodeQueue);\\n setScope(vnode);\\n } else {\\n // empty component root.\\n // skip all element-related modules except for ref (#3455)\\n registerRef(vnode);\\n // make sure to invoke the insert hook\\n insertedVnodeQueue.push(vnode);\\n }\\n }\\n\\n // set scope id attribute for scoped CSS.\\n // this is implemented as a special case to avoid the overhead\\n // of going through the normal attribute patching process.\\n function setScope (vnode) {\\n var i;\\n if (isDef(i = vnode.context) && isDef(i = i.$options._scopeId)) {\\n nodeOps.setAttribute(vnode.elm, i, '');\\n }\\n if (isDef(i = activeInstance) &&\\n i !== vnode.context &&\\n isDef(i = i.$options._scopeId)) {\\n nodeOps.setAttribute(vnode.elm, i, '');\\n }\\n }\\n\\n function addVnodes (parentElm, refElm, vnodes, startIdx, endIdx, insertedVnodeQueue) {\\n for (; startIdx <= endIdx; ++startIdx) {\\n createElm(vnodes[startIdx], insertedVnodeQueue, parentElm, refElm);\\n }\\n }\\n\\n function invokeDestroyHook (vnode) {\\n var i, j;\\n var data = vnode.data;\\n if (isDef(data)) {\\n if (isDef(i = data.hook) && isDef(i = i.destroy)) { i(vnode); }\\n for (i = 0; i < cbs.destroy.length; ++i) { cbs.destroy[i](vnode); }\\n }\\n if (isDef(i = vnode.children)) {\\n for (j = 0; j < vnode.children.length; ++j) {\\n invokeDestroyHook(vnode.children[j]);\\n }\\n }\\n }\\n\\n function removeVnodes (parentElm, vnodes, startIdx, endIdx) {\\n for (; startIdx <= endIdx; ++startIdx) {\\n var ch = vnodes[startIdx];\\n if (isDef(ch)) {\\n if (isDef(ch.tag)) {\\n removeAndInvokeRemoveHook(ch);\\n invokeDestroyHook(ch);\\n } else { // Text node\\n nodeOps.removeChild(parentElm, ch.elm);\\n }\\n }\\n }\\n }\\n\\n function removeAndInvokeRemoveHook (vnode, rm) {\\n if (rm || isDef(vnode.data)) {\\n var listeners = cbs.remove.length + 1;\\n if (!rm) {\\n // directly removing\\n rm = createRmCb(vnode.elm, listeners);\\n } else {\\n // we have a recursively passed down rm callback\\n // increase the listeners count\\n rm.listeners += listeners;\\n }\\n // recursively invoke hooks on child component root node\\n if (isDef(i = vnode.child) && isDef(i = i._vnode) && isDef(i.data)) {\\n removeAndInvokeRemoveHook(i, rm);\\n }\\n for (i = 0; i < cbs.remove.length; ++i) {\\n cbs.remove[i](vnode, rm);\\n }\\n if (isDef(i = vnode.data.hook) && isDef(i = i.remove)) {\\n i(vnode, rm);\\n } else {\\n rm();\\n }\\n } else {\\n removeElement(vnode.elm);\\n }\\n }\\n\\n function updateChildren (parentElm, oldCh, newCh, insertedVnodeQueue, removeOnly) {\\n var oldStartIdx = 0;\\n var newStartIdx = 0;\\n var oldEndIdx = oldCh.length - 1;\\n var oldStartVnode = oldCh[0];\\n var oldEndVnode = oldCh[oldEndIdx];\\n var newEndIdx = newCh.length - 1;\\n var newStartVnode = newCh[0];\\n var newEndVnode = newCh[newEndIdx];\\n var oldKeyToIdx, idxInOld, elmToMove, refElm;\\n\\n // removeOnly is a special flag used only by \\n // to ensure removed elements stay in correct relative positions\\n // during leaving transitions\\n var canMove = !removeOnly;\\n\\n while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {\\n if (isUndef(oldStartVnode)) {\\n oldStartVnode = oldCh[++oldStartIdx]; // Vnode has been moved left\\n } else if (isUndef(oldEndVnode)) {\\n oldEndVnode = oldCh[--oldEndIdx];\\n } else if (sameVnode(oldStartVnode, newStartVnode)) {\\n patchVnode(oldStartVnode, newStartVnode, insertedVnodeQueue);\\n oldStartVnode = oldCh[++oldStartIdx];\\n newStartVnode = newCh[++newStartIdx];\\n } else if (sameVnode(oldEndVnode, newEndVnode)) {\\n patchVnode(oldEndVnode, newEndVnode, insertedVnodeQueue);\\n oldEndVnode = oldCh[--oldEndIdx];\\n newEndVnode = newCh[--newEndIdx];\\n } else if (sameVnode(oldStartVnode, newEndVnode)) { // Vnode moved right\\n patchVnode(oldStartVnode, newEndVnode, insertedVnodeQueue);\\n canMove && nodeOps.insertBefore(parentElm, oldStartVnode.elm, nodeOps.nextSibling(oldEndVnode.elm));\\n oldStartVnode = oldCh[++oldStartIdx];\\n newEndVnode = newCh[--newEndIdx];\\n } else if (sameVnode(oldEndVnode, newStartVnode)) { // Vnode moved left\\n patchVnode(oldEndVnode, newStartVnode, insertedVnodeQueue);\\n canMove && nodeOps.insertBefore(parentElm, oldEndVnode.elm, oldStartVnode.elm);\\n oldEndVnode = oldCh[--oldEndIdx];\\n newStartVnode = newCh[++newStartIdx];\\n } else {\\n if (isUndef(oldKeyToIdx)) { oldKeyToIdx = createKeyToOldIdx(oldCh, oldStartIdx, oldEndIdx); }\\n idxInOld = isDef(newStartVnode.key) ? oldKeyToIdx[newStartVnode.key] : null;\\n if (isUndef(idxInOld)) { // New element\\n createElm(newStartVnode, insertedVnodeQueue, parentElm, oldStartVnode.elm);\\n newStartVnode = newCh[++newStartIdx];\\n } else {\\n elmToMove = oldCh[idxInOld];\\n /* istanbul ignore if */\\n if (\\\"development\\\" !== 'production' && !elmToMove) {\\n warn(\\n 'It seems there are duplicate keys that is causing an update error. ' +\\n 'Make sure each v-for item has a unique key.'\\n );\\n }\\n if (sameVnode(elmToMove, newStartVnode)) {\\n patchVnode(elmToMove, newStartVnode, insertedVnodeQueue);\\n oldCh[idxInOld] = undefined;\\n canMove && nodeOps.insertBefore(parentElm, newStartVnode.elm, oldStartVnode.elm);\\n newStartVnode = newCh[++newStartIdx];\\n } else {\\n // same key but different element. treat as new element\\n createElm(newStartVnode, insertedVnodeQueue, parentElm, oldStartVnode.elm);\\n newStartVnode = newCh[++newStartIdx];\\n }\\n }\\n }\\n }\\n if (oldStartIdx > oldEndIdx) {\\n refElm = isUndef(newCh[newEndIdx + 1]) ? null : newCh[newEndIdx + 1].elm;\\n addVnodes(parentElm, refElm, newCh, newStartIdx, newEndIdx, insertedVnodeQueue);\\n } else if (newStartIdx > newEndIdx) {\\n removeVnodes(parentElm, oldCh, oldStartIdx, oldEndIdx);\\n }\\n }\\n\\n function patchVnode (oldVnode, vnode, insertedVnodeQueue, removeOnly) {\\n if (oldVnode === vnode) {\\n return\\n }\\n // reuse element for static trees.\\n // note we only do this if the vnode is cloned -\\n // if the new node is not cloned it means the render functions have been\\n // reset by the hot-reload-api and we need to do a proper re-render.\\n if (vnode.isStatic &&\\n oldVnode.isStatic &&\\n vnode.key === oldVnode.key &&\\n (vnode.isCloned || vnode.isOnce)) {\\n vnode.elm = oldVnode.elm;\\n vnode.child = oldVnode.child;\\n return\\n }\\n var i;\\n var data = vnode.data;\\n var hasData = isDef(data);\\n if (hasData && isDef(i = data.hook) && isDef(i = i.prepatch)) {\\n i(oldVnode, vnode);\\n }\\n var elm = vnode.elm = oldVnode.elm;\\n var oldCh = oldVnode.children;\\n var ch = vnode.children;\\n if (hasData && isPatchable(vnode)) {\\n for (i = 0; i < cbs.update.length; ++i) { cbs.update[i](oldVnode, vnode); }\\n if (isDef(i = data.hook) && isDef(i = i.update)) { i(oldVnode, vnode); }\\n }\\n if (isUndef(vnode.text)) {\\n if (isDef(oldCh) && isDef(ch)) {\\n if (oldCh !== ch) { updateChildren(elm, oldCh, ch, insertedVnodeQueue, removeOnly); }\\n } else if (isDef(ch)) {\\n if (isDef(oldVnode.text)) { nodeOps.setTextContent(elm, ''); }\\n addVnodes(elm, null, ch, 0, ch.length - 1, insertedVnodeQueue);\\n } else if (isDef(oldCh)) {\\n removeVnodes(elm, oldCh, 0, oldCh.length - 1);\\n } else if (isDef(oldVnode.text)) {\\n nodeOps.setTextContent(elm, '');\\n }\\n } else if (oldVnode.text !== vnode.text) {\\n nodeOps.setTextContent(elm, vnode.text);\\n }\\n if (hasData) {\\n if (isDef(i = data.hook) && isDef(i = i.postpatch)) { i(oldVnode, vnode); }\\n }\\n }\\n\\n function invokeInsertHook (vnode, queue, initial) {\\n // delay insert hooks for component root nodes, invoke them after the\\n // element is really inserted\\n if (initial && vnode.parent) {\\n vnode.parent.data.pendingInsert = queue;\\n } else {\\n for (var i = 0; i < queue.length; ++i) {\\n queue[i].data.hook.insert(queue[i]);\\n }\\n }\\n }\\n\\n var bailed = false;\\n // list of modules that can skip create hook during hydration because they\\n // are already rendered on the client or has no need for initialization\\n var isRenderedModule = makeMap('attrs,style,class,staticClass,staticStyle,key');\\n\\n // Note: this is a browser-only function so we can assume elms are DOM nodes.\\n function hydrate (elm, vnode, insertedVnodeQueue) {\\n {\\n if (!assertNodeMatch(elm, vnode)) {\\n return false\\n }\\n }\\n vnode.elm = elm;\\n var tag = vnode.tag;\\n var data = vnode.data;\\n var children = vnode.children;\\n if (isDef(data)) {\\n if (isDef(i = data.hook) && isDef(i = i.init)) { i(vnode, true /* hydrating */); }\\n if (isDef(i = vnode.child)) {\\n // child component. it should have hydrated its own tree.\\n initComponent(vnode, insertedVnodeQueue);\\n return true\\n }\\n }\\n if (isDef(tag)) {\\n if (isDef(children)) {\\n // empty element, allow client to pick up and populate children\\n if (!elm.hasChildNodes()) {\\n createChildren(vnode, children, insertedVnodeQueue);\\n } else {\\n var childrenMatch = true;\\n var childNode = elm.firstChild;\\n for (var i$1 = 0; i$1 < children.length; i$1++) {\\n if (!childNode || !hydrate(childNode, children[i$1], insertedVnodeQueue)) {\\n childrenMatch = false;\\n break\\n }\\n childNode = childNode.nextSibling;\\n }\\n // if childNode is not null, it means the actual childNodes list is\\n // longer than the virtual children list.\\n if (!childrenMatch || childNode) {\\n if (\\\"development\\\" !== 'production' &&\\n typeof console !== 'undefined' &&\\n !bailed) {\\n bailed = true;\\n console.warn('Parent: ', elm);\\n console.warn('Mismatching childNodes vs. VNodes: ', elm.childNodes, children);\\n }\\n return false\\n }\\n }\\n }\\n if (isDef(data)) {\\n for (var key in data) {\\n if (!isRenderedModule(key)) {\\n invokeCreateHooks(vnode, insertedVnodeQueue);\\n break\\n }\\n }\\n }\\n }\\n return true\\n }\\n\\n function assertNodeMatch (node, vnode) {\\n if (vnode.tag) {\\n return (\\n vnode.tag.indexOf('vue-component') === 0 ||\\n vnode.tag.toLowerCase() === (node.tagName && node.tagName.toLowerCase())\\n )\\n } else {\\n return _toString(vnode.text) === node.data\\n }\\n }\\n\\n return function patch (oldVnode, vnode, hydrating, removeOnly, parentElm, refElm) {\\n if (!vnode) {\\n if (oldVnode) { invokeDestroyHook(oldVnode); }\\n return\\n }\\n\\n var elm, parent;\\n var isInitialPatch = false;\\n var insertedVnodeQueue = [];\\n\\n if (!oldVnode) {\\n // empty mount (likely as component), create new root element\\n isInitialPatch = true;\\n createElm(vnode, insertedVnodeQueue, parentElm, refElm);\\n } else {\\n var isRealElement = isDef(oldVnode.nodeType);\\n if (!isRealElement && sameVnode(oldVnode, vnode)) {\\n // patch existing root node\\n patchVnode(oldVnode, vnode, insertedVnodeQueue, removeOnly);\\n } else {\\n if (isRealElement) {\\n // mounting to a real element\\n // check if this is server-rendered content and if we can perform\\n // a successful hydration.\\n if (oldVnode.nodeType === 1 && oldVnode.hasAttribute('server-rendered')) {\\n oldVnode.removeAttribute('server-rendered');\\n hydrating = true;\\n }\\n if (hydrating) {\\n if (hydrate(oldVnode, vnode, insertedVnodeQueue)) {\\n invokeInsertHook(vnode, insertedVnodeQueue, true);\\n return oldVnode\\n } else {\\n warn(\\n 'The client-side rendered virtual DOM tree is not matching ' +\\n 'server-rendered content. This is likely caused by incorrect ' +\\n 'HTML markup, for example nesting block-level elements inside ' +\\n '

, or missing . Bailing hydration and performing ' +\\n 'full client-side render.'\\n );\\n }\\n }\\n // either not server-rendered, or hydration failed.\\n // create an empty node and replace it\\n oldVnode = emptyNodeAt(oldVnode);\\n }\\n\\n // replacing existing element\\n elm = oldVnode.elm;\\n parent = nodeOps.parentNode(elm);\\n createElm(vnode, insertedVnodeQueue, parent, nodeOps.nextSibling(elm));\\n\\n if (vnode.parent) {\\n // component root element replaced.\\n // update parent placeholder node element, recursively\\n var ancestor = vnode.parent;\\n while (ancestor) {\\n ancestor.elm = vnode.elm;\\n ancestor = ancestor.parent;\\n }\\n if (isPatchable(vnode)) {\\n for (var i = 0; i < cbs.create.length; ++i) {\\n cbs.create[i](emptyNode, vnode.parent);\\n }\\n }\\n }\\n\\n if (parent !== null) {\\n removeVnodes(parent, [oldVnode], 0, 0);\\n } else if (isDef(oldVnode.tag)) {\\n invokeDestroyHook(oldVnode);\\n }\\n }\\n }\\n\\n invokeInsertHook(vnode, insertedVnodeQueue, isInitialPatch);\\n return vnode.elm\\n }\\n}\\n\\n/* */\\n\\nvar directives = {\\n create: updateDirectives,\\n update: updateDirectives,\\n destroy: function unbindDirectives (vnode) {\\n updateDirectives(vnode, emptyNode);\\n }\\n};\\n\\nfunction updateDirectives (oldVnode, vnode) {\\n if (oldVnode.data.directives || vnode.data.directives) {\\n _update(oldVnode, vnode);\\n }\\n}\\n\\nfunction _update (oldVnode, vnode) {\\n var isCreate = oldVnode === emptyNode;\\n var oldDirs = normalizeDirectives$1(oldVnode.data.directives, oldVnode.context);\\n var newDirs = normalizeDirectives$1(vnode.data.directives, vnode.context);\\n\\n var dirsWithInsert = [];\\n var dirsWithPostpatch = [];\\n\\n var key, oldDir, dir;\\n for (key in newDirs) {\\n oldDir = oldDirs[key];\\n dir = newDirs[key];\\n if (!oldDir) {\\n // new directive, bind\\n callHook$1(dir, 'bind', vnode, oldVnode);\\n if (dir.def && dir.def.inserted) {\\n dirsWithInsert.push(dir);\\n }\\n } else {\\n // existing directive, update\\n dir.oldValue = oldDir.value;\\n callHook$1(dir, 'update', vnode, oldVnode);\\n if (dir.def && dir.def.componentUpdated) {\\n dirsWithPostpatch.push(dir);\\n }\\n }\\n }\\n\\n if (dirsWithInsert.length) {\\n var callInsert = function () {\\n for (var i = 0; i < dirsWithInsert.length; i++) {\\n callHook$1(dirsWithInsert[i], 'inserted', vnode, oldVnode);\\n }\\n };\\n if (isCreate) {\\n mergeVNodeHook(vnode.data.hook || (vnode.data.hook = {}), 'insert', callInsert, 'dir-insert');\\n } else {\\n callInsert();\\n }\\n }\\n\\n if (dirsWithPostpatch.length) {\\n mergeVNodeHook(vnode.data.hook || (vnode.data.hook = {}), 'postpatch', function () {\\n for (var i = 0; i < dirsWithPostpatch.length; i++) {\\n callHook$1(dirsWithPostpatch[i], 'componentUpdated', vnode, oldVnode);\\n }\\n }, 'dir-postpatch');\\n }\\n\\n if (!isCreate) {\\n for (key in oldDirs) {\\n if (!newDirs[key]) {\\n // no longer present, unbind\\n callHook$1(oldDirs[key], 'unbind', oldVnode);\\n }\\n }\\n }\\n}\\n\\nvar emptyModifiers = Object.create(null);\\n\\nfunction normalizeDirectives$1 (\\n dirs,\\n vm\\n) {\\n var res = Object.create(null);\\n if (!dirs) {\\n return res\\n }\\n var i, dir;\\n for (i = 0; i < dirs.length; i++) {\\n dir = dirs[i];\\n if (!dir.modifiers) {\\n dir.modifiers = emptyModifiers;\\n }\\n res[getRawDirName(dir)] = dir;\\n dir.def = resolveAsset(vm.$options, 'directives', dir.name, true);\\n }\\n return res\\n}\\n\\nfunction getRawDirName (dir) {\\n return dir.rawName || ((dir.name) + \\\".\\\" + (Object.keys(dir.modifiers || {}).join('.')))\\n}\\n\\nfunction callHook$1 (dir, hook, vnode, oldVnode) {\\n var fn = dir.def && dir.def[hook];\\n if (fn) {\\n fn(vnode.elm, dir, vnode, oldVnode);\\n }\\n}\\n\\nvar baseModules = [\\n ref,\\n directives\\n];\\n\\n/* */\\n\\nfunction updateAttrs (oldVnode, vnode) {\\n if (!oldVnode.data.attrs && !vnode.data.attrs) {\\n return\\n }\\n var key, cur, old;\\n var elm = vnode.elm;\\n var oldAttrs = oldVnode.data.attrs || {};\\n var attrs = vnode.data.attrs || {};\\n // clone observed objects, as the user probably wants to mutate it\\n if (attrs.__ob__) {\\n attrs = vnode.data.attrs = extend({}, attrs);\\n }\\n\\n for (key in attrs) {\\n cur = attrs[key];\\n old = oldAttrs[key];\\n if (old !== cur) {\\n setAttr(elm, key, cur);\\n }\\n }\\n // #4391: in IE9, setting type can reset value for input[type=radio]\\n /* istanbul ignore if */\\n if (isIE9 && attrs.value !== oldAttrs.value) {\\n setAttr(elm, 'value', attrs.value);\\n }\\n for (key in oldAttrs) {\\n if (attrs[key] == null) {\\n if (isXlink(key)) {\\n elm.removeAttributeNS(xlinkNS, getXlinkProp(key));\\n } else if (!isEnumeratedAttr(key)) {\\n elm.removeAttribute(key);\\n }\\n }\\n }\\n}\\n\\nfunction setAttr (el, key, value) {\\n if (isBooleanAttr(key)) {\\n // set attribute for blank value\\n // e.g. \\n if (isFalsyAttrValue(value)) {\\n el.removeAttribute(key);\\n } else {\\n el.setAttribute(key, key);\\n }\\n } else if (isEnumeratedAttr(key)) {\\n el.setAttribute(key, isFalsyAttrValue(value) || value === 'false' ? 'false' : 'true');\\n } else if (isXlink(key)) {\\n if (isFalsyAttrValue(value)) {\\n el.removeAttributeNS(xlinkNS, getXlinkProp(key));\\n } else {\\n el.setAttributeNS(xlinkNS, key, value);\\n }\\n } else {\\n if (isFalsyAttrValue(value)) {\\n el.removeAttribute(key);\\n } else {\\n el.setAttribute(key, value);\\n }\\n }\\n}\\n\\nvar attrs = {\\n create: updateAttrs,\\n update: updateAttrs\\n};\\n\\n/* */\\n\\nfunction updateClass (oldVnode, vnode) {\\n var el = vnode.elm;\\n var data = vnode.data;\\n var oldData = oldVnode.data;\\n if (!data.staticClass && !data.class &&\\n (!oldData || (!oldData.staticClass && !oldData.class))) {\\n return\\n }\\n\\n var cls = genClassForVnode(vnode);\\n\\n // handle transition classes\\n var transitionClass = el._transitionClasses;\\n if (transitionClass) {\\n cls = concat(cls, stringifyClass(transitionClass));\\n }\\n\\n // set the class\\n if (cls !== el._prevClass) {\\n el.setAttribute('class', cls);\\n el._prevClass = cls;\\n }\\n}\\n\\nvar klass = {\\n create: updateClass,\\n update: updateClass\\n};\\n\\n/* */\\n\\nvar target;\\n\\nfunction add$1 (event, handler, once, capture) {\\n if (once) {\\n var oldHandler = handler;\\n handler = function (ev) {\\n remove$2(event, handler, capture);\\n arguments.length === 1\\n ? oldHandler(ev)\\n : oldHandler.apply(null, arguments);\\n };\\n }\\n target.addEventListener(event, handler, capture);\\n}\\n\\nfunction remove$2 (event, handler, capture) {\\n target.removeEventListener(event, handler, capture);\\n}\\n\\nfunction updateDOMListeners (oldVnode, vnode) {\\n if (!oldVnode.data.on && !vnode.data.on) {\\n return\\n }\\n var on = vnode.data.on || {};\\n var oldOn = oldVnode.data.on || {};\\n target = vnode.elm;\\n updateListeners(on, oldOn, add$1, remove$2, vnode.context);\\n}\\n\\nvar events = {\\n create: updateDOMListeners,\\n update: updateDOMListeners\\n};\\n\\n/* */\\n\\nfunction updateDOMProps (oldVnode, vnode) {\\n if (!oldVnode.data.domProps && !vnode.data.domProps) {\\n return\\n }\\n var key, cur;\\n var elm = vnode.elm;\\n var oldProps = oldVnode.data.domProps || {};\\n var props = vnode.data.domProps || {};\\n // clone observed objects, as the user probably wants to mutate it\\n if (props.__ob__) {\\n props = vnode.data.domProps = extend({}, props);\\n }\\n\\n for (key in oldProps) {\\n if (props[key] == null) {\\n elm[key] = '';\\n }\\n }\\n for (key in props) {\\n cur = props[key];\\n // ignore children if the node has textContent or innerHTML,\\n // as these will throw away existing DOM nodes and cause removal errors\\n // on subsequent patches (#3360)\\n if (key === 'textContent' || key === 'innerHTML') {\\n if (vnode.children) { vnode.children.length = 0; }\\n if (cur === oldProps[key]) { continue }\\n }\\n if (key === 'value') {\\n // store value as _value as well since\\n // non-string values will be stringified\\n elm._value = cur;\\n // avoid resetting cursor position when value is the same\\n var strCur = cur == null ? '' : String(cur);\\n if (!elm.composing && (\\n (document.activeElement !== elm && elm.value !== strCur) ||\\n isValueChanged(vnode, strCur)\\n )) {\\n elm.value = strCur;\\n }\\n } else {\\n elm[key] = cur;\\n }\\n }\\n}\\n\\nfunction isValueChanged (vnode, newVal) {\\n var value = vnode.elm.value;\\n var modifiers = vnode.elm._vModifiers; // injected by v-model runtime\\n if ((modifiers && modifiers.number) || vnode.elm.type === 'number') {\\n return toNumber(value) !== toNumber(newVal)\\n }\\n if (modifiers && modifiers.trim) {\\n return value.trim() !== newVal.trim()\\n }\\n return value !== newVal\\n}\\n\\nvar domProps = {\\n create: updateDOMProps,\\n update: updateDOMProps\\n};\\n\\n/* */\\n\\nvar parseStyleText = cached(function (cssText) {\\n var res = {};\\n var listDelimiter = /;(?![^(]*\\\\))/g;\\n var propertyDelimiter = /:(.+)/;\\n cssText.split(listDelimiter).forEach(function (item) {\\n if (item) {\\n var tmp = item.split(propertyDelimiter);\\n tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());\\n }\\n });\\n return res\\n});\\n\\n// merge static and dynamic style data on the same vnode\\nfunction normalizeStyleData (data) {\\n var style = normalizeStyleBinding(data.style);\\n // static style is pre-processed into an object during compilation\\n // and is always a fresh object, so it's safe to merge into it\\n return data.staticStyle\\n ? extend(data.staticStyle, style)\\n : style\\n}\\n\\n// normalize possible array / string values into Object\\nfunction normalizeStyleBinding (bindingStyle) {\\n if (Array.isArray(bindingStyle)) {\\n return toObject(bindingStyle)\\n }\\n if (typeof bindingStyle === 'string') {\\n return parseStyleText(bindingStyle)\\n }\\n return bindingStyle\\n}\\n\\n/**\\n * parent component style should be after child's\\n * so that parent component's style could override it\\n */\\nfunction getStyle (vnode, checkChild) {\\n var res = {};\\n var styleData;\\n\\n if (checkChild) {\\n var childNode = vnode;\\n while (childNode.child) {\\n childNode = childNode.child._vnode;\\n if (childNode.data && (styleData = normalizeStyleData(childNode.data))) {\\n extend(res, styleData);\\n }\\n }\\n }\\n\\n if ((styleData = normalizeStyleData(vnode.data))) {\\n extend(res, styleData);\\n }\\n\\n var parentNode = vnode;\\n while ((parentNode = parentNode.parent)) {\\n if (parentNode.data && (styleData = normalizeStyleData(parentNode.data))) {\\n extend(res, styleData);\\n }\\n }\\n return res\\n}\\n\\n/* */\\n\\nvar cssVarRE = /^--/;\\nvar importantRE = /\\\\s*!important$/;\\nvar setProp = function (el, name, val) {\\n /* istanbul ignore if */\\n if (cssVarRE.test(name)) {\\n el.style.setProperty(name, val);\\n } else if (importantRE.test(val)) {\\n el.style.setProperty(name, val.replace(importantRE, ''), 'important');\\n } else {\\n el.style[normalize(name)] = val;\\n }\\n};\\n\\nvar prefixes = ['Webkit', 'Moz', 'ms'];\\n\\nvar testEl;\\nvar normalize = cached(function (prop) {\\n testEl = testEl || document.createElement('div');\\n prop = camelize(prop);\\n if (prop !== 'filter' && (prop in testEl.style)) {\\n return prop\\n }\\n var upper = prop.charAt(0).toUpperCase() + prop.slice(1);\\n for (var i = 0; i < prefixes.length; i++) {\\n var prefixed = prefixes[i] + upper;\\n if (prefixed in testEl.style) {\\n return prefixed\\n }\\n }\\n});\\n\\nfunction updateStyle (oldVnode, vnode) {\\n var data = vnode.data;\\n var oldData = oldVnode.data;\\n\\n if (!data.staticStyle && !data.style &&\\n !oldData.staticStyle && !oldData.style) {\\n return\\n }\\n\\n var cur, name;\\n var el = vnode.elm;\\n var oldStaticStyle = oldVnode.data.staticStyle;\\n var oldStyleBinding = oldVnode.data.style || {};\\n\\n // if static style exists, stylebinding already merged into it when doing normalizeStyleData\\n var oldStyle = oldStaticStyle || oldStyleBinding;\\n\\n var style = normalizeStyleBinding(vnode.data.style) || {};\\n\\n vnode.data.style = style.__ob__ ? extend({}, style) : style;\\n\\n var newStyle = getStyle(vnode, true);\\n\\n for (name in oldStyle) {\\n if (newStyle[name] == null) {\\n setProp(el, name, '');\\n }\\n }\\n for (name in newStyle) {\\n cur = newStyle[name];\\n if (cur !== oldStyle[name]) {\\n // ie9 setting to null has no effect, must use empty string\\n setProp(el, name, cur == null ? '' : cur);\\n }\\n }\\n}\\n\\nvar style = {\\n create: updateStyle,\\n update: updateStyle\\n};\\n\\n/* */\\n\\n/**\\n * Add class with compatibility for SVG since classList is not supported on\\n * SVG elements in IE\\n */\\nfunction addClass (el, cls) {\\n /* istanbul ignore if */\\n if (!cls || !cls.trim()) {\\n return\\n }\\n\\n /* istanbul ignore else */\\n if (el.classList) {\\n if (cls.indexOf(' ') > -1) {\\n cls.split(/\\\\s+/).forEach(function (c) { return el.classList.add(c); });\\n } else {\\n el.classList.add(cls);\\n }\\n } else {\\n var cur = ' ' + el.getAttribute('class') + ' ';\\n if (cur.indexOf(' ' + cls + ' ') < 0) {\\n el.setAttribute('class', (cur + cls).trim());\\n }\\n }\\n}\\n\\n/**\\n * Remove class with compatibility for SVG since classList is not supported on\\n * SVG elements in IE\\n */\\nfunction removeClass (el, cls) {\\n /* istanbul ignore if */\\n if (!cls || !cls.trim()) {\\n return\\n }\\n\\n /* istanbul ignore else */\\n if (el.classList) {\\n if (cls.indexOf(' ') > -1) {\\n cls.split(/\\\\s+/).forEach(function (c) { return el.classList.remove(c); });\\n } else {\\n el.classList.remove(cls);\\n }\\n } else {\\n var cur = ' ' + el.getAttribute('class') + ' ';\\n var tar = ' ' + cls + ' ';\\n while (cur.indexOf(tar) >= 0) {\\n cur = cur.replace(tar, ' ');\\n }\\n el.setAttribute('class', cur.trim());\\n }\\n}\\n\\n/* */\\n\\nvar hasTransition = inBrowser && !isIE9;\\nvar TRANSITION = 'transition';\\nvar ANIMATION = 'animation';\\n\\n// Transition property/event sniffing\\nvar transitionProp = 'transition';\\nvar transitionEndEvent = 'transitionend';\\nvar animationProp = 'animation';\\nvar animationEndEvent = 'animationend';\\nif (hasTransition) {\\n /* istanbul ignore if */\\n if (window.ontransitionend === undefined &&\\n window.onwebkittransitionend !== undefined) {\\n transitionProp = 'WebkitTransition';\\n transitionEndEvent = 'webkitTransitionEnd';\\n }\\n if (window.onanimationend === undefined &&\\n window.onwebkitanimationend !== undefined) {\\n animationProp = 'WebkitAnimation';\\n animationEndEvent = 'webkitAnimationEnd';\\n }\\n}\\n\\nvar raf = (inBrowser && window.requestAnimationFrame) || setTimeout;\\nfunction nextFrame (fn) {\\n raf(function () {\\n raf(fn);\\n });\\n}\\n\\nfunction addTransitionClass (el, cls) {\\n (el._transitionClasses || (el._transitionClasses = [])).push(cls);\\n addClass(el, cls);\\n}\\n\\nfunction removeTransitionClass (el, cls) {\\n if (el._transitionClasses) {\\n remove$1(el._transitionClasses, cls);\\n }\\n removeClass(el, cls);\\n}\\n\\nfunction whenTransitionEnds (\\n el,\\n expectedType,\\n cb\\n) {\\n var ref = getTransitionInfo(el, expectedType);\\n var type = ref.type;\\n var timeout = ref.timeout;\\n var propCount = ref.propCount;\\n if (!type) { return cb() }\\n var event = type === TRANSITION ? transitionEndEvent : animationEndEvent;\\n var ended = 0;\\n var end = function () {\\n el.removeEventListener(event, onEnd);\\n cb();\\n };\\n var onEnd = function (e) {\\n if (e.target === el) {\\n if (++ended >= propCount) {\\n end();\\n }\\n }\\n };\\n setTimeout(function () {\\n if (ended < propCount) {\\n end();\\n }\\n }, timeout + 1);\\n el.addEventListener(event, onEnd);\\n}\\n\\nvar transformRE = /\\\\b(transform|all)(,|$)/;\\n\\nfunction getTransitionInfo (el, expectedType) {\\n var styles = window.getComputedStyle(el);\\n var transitioneDelays = styles[transitionProp + 'Delay'].split(', ');\\n var transitionDurations = styles[transitionProp + 'Duration'].split(', ');\\n var transitionTimeout = getTimeout(transitioneDelays, transitionDurations);\\n var animationDelays = styles[animationProp + 'Delay'].split(', ');\\n var animationDurations = styles[animationProp + 'Duration'].split(', ');\\n var animationTimeout = getTimeout(animationDelays, animationDurations);\\n\\n var type;\\n var timeout = 0;\\n var propCount = 0;\\n /* istanbul ignore if */\\n if (expectedType === TRANSITION) {\\n if (transitionTimeout > 0) {\\n type = TRANSITION;\\n timeout = transitionTimeout;\\n propCount = transitionDurations.length;\\n }\\n } else if (expectedType === ANIMATION) {\\n if (animationTimeout > 0) {\\n type = ANIMATION;\\n timeout = animationTimeout;\\n propCount = animationDurations.length;\\n }\\n } else {\\n timeout = Math.max(transitionTimeout, animationTimeout);\\n type = timeout > 0\\n ? transitionTimeout > animationTimeout\\n ? TRANSITION\\n : ANIMATION\\n : null;\\n propCount = type\\n ? type === TRANSITION\\n ? transitionDurations.length\\n : animationDurations.length\\n : 0;\\n }\\n var hasTransform =\\n type === TRANSITION &&\\n transformRE.test(styles[transitionProp + 'Property']);\\n return {\\n type: type,\\n timeout: timeout,\\n propCount: propCount,\\n hasTransform: hasTransform\\n }\\n}\\n\\nfunction getTimeout (delays, durations) {\\n /* istanbul ignore next */\\n while (delays.length < durations.length) {\\n delays = delays.concat(delays);\\n }\\n\\n return Math.max.apply(null, durations.map(function (d, i) {\\n return toMs(d) + toMs(delays[i])\\n }))\\n}\\n\\nfunction toMs (s) {\\n return Number(s.slice(0, -1)) * 1000\\n}\\n\\n/* */\\n\\nfunction enter (vnode, toggleDisplay) {\\n var el = vnode.elm;\\n\\n // call leave callback now\\n if (el._leaveCb) {\\n el._leaveCb.cancelled = true;\\n el._leaveCb();\\n }\\n\\n var data = resolveTransition(vnode.data.transition);\\n if (!data) {\\n return\\n }\\n\\n /* istanbul ignore if */\\n if (el._enterCb || el.nodeType !== 1) {\\n return\\n }\\n\\n var css = data.css;\\n var type = data.type;\\n var enterClass = data.enterClass;\\n var enterActiveClass = data.enterActiveClass;\\n var appearClass = data.appearClass;\\n var appearActiveClass = data.appearActiveClass;\\n var beforeEnter = data.beforeEnter;\\n var enter = data.enter;\\n var afterEnter = data.afterEnter;\\n var enterCancelled = data.enterCancelled;\\n var beforeAppear = data.beforeAppear;\\n var appear = data.appear;\\n var afterAppear = data.afterAppear;\\n var appearCancelled = data.appearCancelled;\\n\\n // activeInstance will always be the component managing this\\n // transition. One edge case to check is when the is placed\\n // as the root node of a child component. In that case we need to check\\n // 's parent for appear check.\\n var context = activeInstance;\\n var transitionNode = activeInstance.$vnode;\\n while (transitionNode && transitionNode.parent) {\\n transitionNode = transitionNode.parent;\\n context = transitionNode.context;\\n }\\n\\n var isAppear = !context._isMounted || !vnode.isRootInsert;\\n\\n if (isAppear && !appear && appear !== '') {\\n return\\n }\\n\\n var startClass = isAppear ? appearClass : enterClass;\\n var activeClass = isAppear ? appearActiveClass : enterActiveClass;\\n var beforeEnterHook = isAppear ? (beforeAppear || beforeEnter) : beforeEnter;\\n var enterHook = isAppear ? (typeof appear === 'function' ? appear : enter) : enter;\\n var afterEnterHook = isAppear ? (afterAppear || afterEnter) : afterEnter;\\n var enterCancelledHook = isAppear ? (appearCancelled || enterCancelled) : enterCancelled;\\n\\n var expectsCSS = css !== false && !isIE9;\\n var userWantsControl =\\n enterHook &&\\n // enterHook may be a bound method which exposes\\n // the length of original fn as _length\\n (enterHook._length || enterHook.length) > 1;\\n\\n var cb = el._enterCb = once(function () {\\n if (expectsCSS) {\\n removeTransitionClass(el, activeClass);\\n }\\n if (cb.cancelled) {\\n if (expectsCSS) {\\n removeTransitionClass(el, startClass);\\n }\\n enterCancelledHook && enterCancelledHook(el);\\n } else {\\n afterEnterHook && afterEnterHook(el);\\n }\\n el._enterCb = null;\\n });\\n\\n if (!vnode.data.show) {\\n // remove pending leave element on enter by injecting an insert hook\\n mergeVNodeHook(vnode.data.hook || (vnode.data.hook = {}), 'insert', function () {\\n var parent = el.parentNode;\\n var pendingNode = parent && parent._pending && parent._pending[vnode.key];\\n if (pendingNode &&\\n pendingNode.context === vnode.context &&\\n pendingNode.tag === vnode.tag &&\\n pendingNode.elm._leaveCb) {\\n pendingNode.elm._leaveCb();\\n }\\n enterHook && enterHook(el, cb);\\n }, 'transition-insert');\\n }\\n\\n // start enter transition\\n beforeEnterHook && beforeEnterHook(el);\\n if (expectsCSS) {\\n addTransitionClass(el, startClass);\\n addTransitionClass(el, activeClass);\\n nextFrame(function () {\\n removeTransitionClass(el, startClass);\\n if (!cb.cancelled && !userWantsControl) {\\n whenTransitionEnds(el, type, cb);\\n }\\n });\\n }\\n\\n if (vnode.data.show) {\\n toggleDisplay && toggleDisplay();\\n enterHook && enterHook(el, cb);\\n }\\n\\n if (!expectsCSS && !userWantsControl) {\\n cb();\\n }\\n}\\n\\nfunction leave (vnode, rm) {\\n var el = vnode.elm;\\n\\n // call enter callback now\\n if (el._enterCb) {\\n el._enterCb.cancelled = true;\\n el._enterCb();\\n }\\n\\n var data = resolveTransition(vnode.data.transition);\\n if (!data) {\\n return rm()\\n }\\n\\n /* istanbul ignore if */\\n if (el._leaveCb || el.nodeType !== 1) {\\n return\\n }\\n\\n var css = data.css;\\n var type = data.type;\\n var leaveClass = data.leaveClass;\\n var leaveActiveClass = data.leaveActiveClass;\\n var beforeLeave = data.beforeLeave;\\n var leave = data.leave;\\n var afterLeave = data.afterLeave;\\n var leaveCancelled = data.leaveCancelled;\\n var delayLeave = data.delayLeave;\\n\\n var expectsCSS = css !== false && !isIE9;\\n var userWantsControl =\\n leave &&\\n // leave hook may be a bound method which exposes\\n // the length of original fn as _length\\n (leave._length || leave.length) > 1;\\n\\n var cb = el._leaveCb = once(function () {\\n if (el.parentNode && el.parentNode._pending) {\\n el.parentNode._pending[vnode.key] = null;\\n }\\n if (expectsCSS) {\\n removeTransitionClass(el, leaveActiveClass);\\n }\\n if (cb.cancelled) {\\n if (expectsCSS) {\\n removeTransitionClass(el, leaveClass);\\n }\\n leaveCancelled && leaveCancelled(el);\\n } else {\\n rm();\\n afterLeave && afterLeave(el);\\n }\\n el._leaveCb = null;\\n });\\n\\n if (delayLeave) {\\n delayLeave(performLeave);\\n } else {\\n performLeave();\\n }\\n\\n function performLeave () {\\n // the delayed leave may have already been cancelled\\n if (cb.cancelled) {\\n return\\n }\\n // record leaving element\\n if (!vnode.data.show) {\\n (el.parentNode._pending || (el.parentNode._pending = {}))[vnode.key] = vnode;\\n }\\n beforeLeave && beforeLeave(el);\\n if (expectsCSS) {\\n addTransitionClass(el, leaveClass);\\n addTransitionClass(el, leaveActiveClass);\\n nextFrame(function () {\\n removeTransitionClass(el, leaveClass);\\n if (!cb.cancelled && !userWantsControl) {\\n whenTransitionEnds(el, type, cb);\\n }\\n });\\n }\\n leave && leave(el, cb);\\n if (!expectsCSS && !userWantsControl) {\\n cb();\\n }\\n }\\n}\\n\\nfunction resolveTransition (def$$1) {\\n if (!def$$1) {\\n return\\n }\\n /* istanbul ignore else */\\n if (typeof def$$1 === 'object') {\\n var res = {};\\n if (def$$1.css !== false) {\\n extend(res, autoCssTransition(def$$1.name || 'v'));\\n }\\n extend(res, def$$1);\\n return res\\n } else if (typeof def$$1 === 'string') {\\n return autoCssTransition(def$$1)\\n }\\n}\\n\\nvar autoCssTransition = cached(function (name) {\\n return {\\n enterClass: (name + \\\"-enter\\\"),\\n leaveClass: (name + \\\"-leave\\\"),\\n appearClass: (name + \\\"-enter\\\"),\\n enterActiveClass: (name + \\\"-enter-active\\\"),\\n leaveActiveClass: (name + \\\"-leave-active\\\"),\\n appearActiveClass: (name + \\\"-enter-active\\\")\\n }\\n});\\n\\nfunction once (fn) {\\n var called = false;\\n return function () {\\n if (!called) {\\n called = true;\\n fn();\\n }\\n }\\n}\\n\\nfunction _enter (_, vnode) {\\n if (!vnode.data.show) {\\n enter(vnode);\\n }\\n}\\n\\nvar transition = inBrowser ? {\\n create: _enter,\\n activate: _enter,\\n remove: function remove (vnode, rm) {\\n /* istanbul ignore else */\\n if (!vnode.data.show) {\\n leave(vnode, rm);\\n } else {\\n rm();\\n }\\n }\\n} : {};\\n\\nvar platformModules = [\\n attrs,\\n klass,\\n events,\\n domProps,\\n style,\\n transition\\n];\\n\\n/* */\\n\\n// the directive module should be applied last, after all\\n// built-in modules have been applied.\\nvar modules = platformModules.concat(baseModules);\\n\\nvar patch$1 = createPatchFunction({ nodeOps: nodeOps, modules: modules });\\n\\n/**\\n * Not type checking this file because flow doesn't like attaching\\n * properties to Elements.\\n */\\n\\nvar modelableTagRE = /^input|select|textarea|vue-component-[0-9]+(-[0-9a-zA-Z_-]*)?$/;\\n\\n/* istanbul ignore if */\\nif (isIE9) {\\n // http://www.matts411.com/post/internet-explorer-9-oninput/\\n document.addEventListener('selectionchange', function () {\\n var el = document.activeElement;\\n if (el && el.vmodel) {\\n trigger(el, 'input');\\n }\\n });\\n}\\n\\nvar model = {\\n inserted: function inserted (el, binding, vnode) {\\n {\\n if (!modelableTagRE.test(vnode.tag)) {\\n warn(\\n \\\"v-model is not supported on element type: <\\\" + (vnode.tag) + \\\">. \\\" +\\n 'If you are working with contenteditable, it\\\\'s recommended to ' +\\n 'wrap a library dedicated for that purpose inside a custom component.',\\n vnode.context\\n );\\n }\\n }\\n if (vnode.tag === 'select') {\\n var cb = function () {\\n setSelected(el, binding, vnode.context);\\n };\\n cb();\\n /* istanbul ignore if */\\n if (isIE || isEdge) {\\n setTimeout(cb, 0);\\n }\\n } else if (vnode.tag === 'textarea' || el.type === 'text') {\\n el._vModifiers = binding.modifiers;\\n if (!binding.modifiers.lazy) {\\n if (!isAndroid) {\\n el.addEventListener('compositionstart', onCompositionStart);\\n el.addEventListener('compositionend', onCompositionEnd);\\n }\\n /* istanbul ignore if */\\n if (isIE9) {\\n el.vmodel = true;\\n }\\n }\\n }\\n },\\n componentUpdated: function componentUpdated (el, binding, vnode) {\\n if (vnode.tag === 'select') {\\n setSelected(el, binding, vnode.context);\\n // in case the options rendered by v-for have changed,\\n // it's possible that the value is out-of-sync with the rendered options.\\n // detect such cases and filter out values that no longer has a matching\\n // option in the DOM.\\n var needReset = el.multiple\\n ? binding.value.some(function (v) { return hasNoMatchingOption(v, el.options); })\\n : binding.value !== binding.oldValue && hasNoMatchingOption(binding.value, el.options);\\n if (needReset) {\\n trigger(el, 'change');\\n }\\n }\\n }\\n};\\n\\nfunction setSelected (el, binding, vm) {\\n var value = binding.value;\\n var isMultiple = el.multiple;\\n if (isMultiple && !Array.isArray(value)) {\\n \\\"development\\\" !== 'production' && warn(\\n \\\" \" +\n \"expects an Array value for its binding, but got \" + (Object.prototype.toString.call(value).slice(8, -1)),\n vm\n );\n return\n }\n var selected, option;\n for (var i = 0, l = el.options.length; i < l; i++) {\n option = el.options[i];\n if (isMultiple) {\n selected = looseIndexOf(value, getValue(option)) > -1;\n if (option.selected !== selected) {\n option.selected = selected;\n }\n } else {\n if (looseEqual(getValue(option), value)) {\n if (el.selectedIndex !== i) {\n el.selectedIndex = i;\n }\n return\n }\n }\n }\n if (!isMultiple) {\n el.selectedIndex = -1;\n }\n}\n\nfunction hasNoMatchingOption (value, options) {\n for (var i = 0, l = options.length; i < l; i++) {\n if (looseEqual(getValue(options[i]), value)) {\n return false\n }\n }\n return true\n}\n\nfunction getValue (option) {\n return '_value' in option\n ? option._value\n : option.value\n}\n\nfunction onCompositionStart (e) {\n e.target.composing = true;\n}\n\nfunction onCompositionEnd (e) {\n e.target.composing = false;\n trigger(e.target, 'input');\n}\n\nfunction trigger (el, type) {\n var e = document.createEvent('HTMLEvents');\n e.initEvent(type, true, true);\n el.dispatchEvent(e);\n}\n\n/* */\n\n// recursively search for possible transition defined inside the component root\nfunction locateNode (vnode) {\n return vnode.child && (!vnode.data || !vnode.data.transition)\n ? locateNode(vnode.child._vnode)\n : vnode\n}\n\nvar show = {\n bind: function bind (el, ref, vnode) {\n var value = ref.value;\n\n vnode = locateNode(vnode);\n var transition = vnode.data && vnode.data.transition;\n var originalDisplay = el.__vOriginalDisplay =\n el.style.display === 'none' ? '' : el.style.display;\n if (value && transition && !isIE9) {\n vnode.data.show = true;\n enter(vnode, function () {\n el.style.display = originalDisplay;\n });\n } else {\n el.style.display = value ? originalDisplay : 'none';\n }\n },\n update: function update (el, ref, vnode) {\n var value = ref.value;\n var oldValue = ref.oldValue;\n\n /* istanbul ignore if */\n if (value === oldValue) { return }\n vnode = locateNode(vnode);\n var transition = vnode.data && vnode.data.transition;\n if (transition && !isIE9) {\n vnode.data.show = true;\n if (value) {\n enter(vnode, function () {\n el.style.display = el.__vOriginalDisplay;\n });\n } else {\n leave(vnode, function () {\n el.style.display = 'none';\n });\n }\n } else {\n el.style.display = value ? el.__vOriginalDisplay : 'none';\n }\n }\n};\n\nvar platformDirectives = {\n model: model,\n show: show\n};\n\n/* */\n\n// Provides transition support for a single element/component.\n// supports transition mode (out-in / in-out)\n\nvar transitionProps = {\n name: String,\n appear: Boolean,\n css: Boolean,\n mode: String,\n type: String,\n enterClass: String,\n leaveClass: String,\n enterActiveClass: String,\n leaveActiveClass: String,\n appearClass: String,\n appearActiveClass: String\n};\n\n// in case the child is also an abstract component, e.g. \n// we want to recursively retrieve the real component to be rendered\nfunction getRealChild (vnode) {\n var compOptions = vnode && vnode.componentOptions;\n if (compOptions && compOptions.Ctor.options.abstract) {\n return getRealChild(getFirstComponentChild(compOptions.children))\n } else {\n return vnode\n }\n}\n\nfunction extractTransitionData (comp) {\n var data = {};\n var options = comp.$options;\n // props\n for (var key in options.propsData) {\n data[key] = comp[key];\n }\n // events.\n // extract listeners and pass them directly to the transition methods\n var listeners = options._parentListeners;\n for (var key$1 in listeners) {\n data[camelize(key$1)] = listeners[key$1].fn;\n }\n return data\n}\n\nfunction placeholder (h, rawChild) {\n return /\\d-keep-alive$/.test(rawChild.tag)\n ? h('keep-alive')\n : null\n}\n\nfunction hasParentTransition (vnode) {\n while ((vnode = vnode.parent)) {\n if (vnode.data.transition) {\n return true\n }\n }\n}\n\nvar Transition = {\n name: 'transition',\n props: transitionProps,\n abstract: true,\n render: function render (h) {\n var this$1 = this;\n\n var children = this.$slots.default;\n if (!children) {\n return\n }\n\n // filter out text nodes (possible whitespaces)\n children = children.filter(function (c) { return c.tag; });\n /* istanbul ignore if */\n if (!children.length) {\n return\n }\n\n // warn multiple elements\n if (\"development\" !== 'production' && children.length > 1) {\n warn(\n ' can only be used on a single element. Use ' +\n ' for lists.',\n this.$parent\n );\n }\n\n var mode = this.mode;\n\n // warn invalid mode\n if (\"development\" !== 'production' &&\n mode && mode !== 'in-out' && mode !== 'out-in') {\n warn(\n 'invalid mode: ' + mode,\n this.$parent\n );\n }\n\n var rawChild = children[0];\n\n // if this is a component root node and the component's\n // parent container node also has transition, skip.\n if (hasParentTransition(this.$vnode)) {\n return rawChild\n }\n\n // apply transition data to child\n // use getRealChild() to ignore abstract components e.g. keep-alive\n var child = getRealChild(rawChild);\n /* istanbul ignore if */\n if (!child) {\n return rawChild\n }\n\n if (this._leaving) {\n return placeholder(h, rawChild)\n }\n\n var key = child.key = child.key == null || child.isStatic\n ? (\"__v\" + (child.tag + this._uid) + \"__\")\n : child.key;\n var data = (child.data || (child.data = {})).transition = extractTransitionData(this);\n var oldRawChild = this._vnode;\n var oldChild = getRealChild(oldRawChild);\n\n // mark v-show\n // so that the transition module can hand over the control to the directive\n if (child.data.directives && child.data.directives.some(function (d) { return d.name === 'show'; })) {\n child.data.show = true;\n }\n\n if (oldChild && oldChild.data && oldChild.key !== key) {\n // replace old child transition data with fresh one\n // important for dynamic transitions!\n var oldData = oldChild.data.transition = extend({}, data);\n\n // handle transition mode\n if (mode === 'out-in') {\n // return placeholder node and queue update when leave finishes\n this._leaving = true;\n mergeVNodeHook(oldData, 'afterLeave', function () {\n this$1._leaving = false;\n this$1.$forceUpdate();\n }, key);\n return placeholder(h, rawChild)\n } else if (mode === 'in-out') {\n var delayedLeave;\n var performLeave = function () { delayedLeave(); };\n mergeVNodeHook(data, 'afterEnter', performLeave, key);\n mergeVNodeHook(data, 'enterCancelled', performLeave, key);\n mergeVNodeHook(oldData, 'delayLeave', function (leave) {\n delayedLeave = leave;\n }, key);\n }\n }\n\n return rawChild\n }\n};\n\n/* */\n\n// Provides transition support for list items.\n// supports move transitions using the FLIP technique.\n\n// Because the vdom's children update algorithm is \"unstable\" - i.e.\n// it doesn't guarantee the relative positioning of removed elements,\n// we force transition-group to update its children into two passes:\n// in the first pass, we remove all nodes that need to be removed,\n// triggering their leaving transition; in the second pass, we insert/move\n// into the final disired state. This way in the second pass removed\n// nodes will remain where they should be.\n\nvar props = extend({\n tag: String,\n moveClass: String\n}, transitionProps);\n\ndelete props.mode;\n\nvar TransitionGroup = {\n props: props,\n\n render: function render (h) {\n var tag = this.tag || this.$vnode.data.tag || 'span';\n var map = Object.create(null);\n var prevChildren = this.prevChildren = this.children;\n var rawChildren = this.$slots.default || [];\n var children = this.children = [];\n var transitionData = extractTransitionData(this);\n\n for (var i = 0; i < rawChildren.length; i++) {\n var c = rawChildren[i];\n if (c.tag) {\n if (c.key != null && String(c.key).indexOf('__vlist') !== 0) {\n children.push(c);\n map[c.key] = c\n ;(c.data || (c.data = {})).transition = transitionData;\n } else {\n var opts = c.componentOptions;\n var name = opts\n ? (opts.Ctor.options.name || opts.tag)\n : c.tag;\n warn((\" children must be keyed: <\" + name + \">\"));\n }\n }\n }\n\n if (prevChildren) {\n var kept = [];\n var removed = [];\n for (var i$1 = 0; i$1 < prevChildren.length; i$1++) {\n var c$1 = prevChildren[i$1];\n c$1.data.transition = transitionData;\n c$1.data.pos = c$1.elm.getBoundingClientRect();\n if (map[c$1.key]) {\n kept.push(c$1);\n } else {\n removed.push(c$1);\n }\n }\n this.kept = h(tag, null, kept);\n this.removed = removed;\n }\n\n return h(tag, null, children)\n },\n\n beforeUpdate: function beforeUpdate () {\n // force removing pass\n this.__patch__(\n this._vnode,\n this.kept,\n false, // hydrating\n true // removeOnly (!important, avoids unnecessary moves)\n );\n this._vnode = this.kept;\n },\n\n updated: function updated () {\n var children = this.prevChildren;\n var moveClass = this.moveClass || ((this.name || 'v') + '-move');\n if (!children.length || !this.hasMove(children[0].elm, moveClass)) {\n return\n }\n\n // we divide the work into three loops to avoid mixing DOM reads and writes\n // in each iteration - which helps prevent layout thrashing.\n children.forEach(callPendingCbs);\n children.forEach(recordPosition);\n children.forEach(applyTranslation);\n\n // force reflow to put everything in position\n var f = document.body.offsetHeight; // eslint-disable-line\n\n children.forEach(function (c) {\n if (c.data.moved) {\n var el = c.elm;\n var s = el.style;\n addTransitionClass(el, moveClass);\n s.transform = s.WebkitTransform = s.transitionDuration = '';\n el.addEventListener(transitionEndEvent, el._moveCb = function cb (e) {\n if (!e || /transform$/.test(e.propertyName)) {\n el.removeEventListener(transitionEndEvent, cb);\n el._moveCb = null;\n removeTransitionClass(el, moveClass);\n }\n });\n }\n });\n },\n\n methods: {\n hasMove: function hasMove (el, moveClass) {\n /* istanbul ignore if */\n if (!hasTransition) {\n return false\n }\n if (this._hasMove != null) {\n return this._hasMove\n }\n addTransitionClass(el, moveClass);\n var info = getTransitionInfo(el);\n removeTransitionClass(el, moveClass);\n return (this._hasMove = info.hasTransform)\n }\n }\n};\n\nfunction callPendingCbs (c) {\n /* istanbul ignore if */\n if (c.elm._moveCb) {\n c.elm._moveCb();\n }\n /* istanbul ignore if */\n if (c.elm._enterCb) {\n c.elm._enterCb();\n }\n}\n\nfunction recordPosition (c) {\n c.data.newPos = c.elm.getBoundingClientRect();\n}\n\nfunction applyTranslation (c) {\n var oldPos = c.data.pos;\n var newPos = c.data.newPos;\n var dx = oldPos.left - newPos.left;\n var dy = oldPos.top - newPos.top;\n if (dx || dy) {\n c.data.moved = true;\n var s = c.elm.style;\n s.transform = s.WebkitTransform = \"translate(\" + dx + \"px,\" + dy + \"px)\";\n s.transitionDuration = '0s';\n }\n}\n\nvar platformComponents = {\n Transition: Transition,\n TransitionGroup: TransitionGroup\n};\n\n/* */\n\n// install platform specific utils\nVue$3.config.isUnknownElement = isUnknownElement;\nVue$3.config.isReservedTag = isReservedTag;\nVue$3.config.getTagNamespace = getTagNamespace;\nVue$3.config.mustUseProp = mustUseProp;\n\n// install platform runtime directives & components\nextend(Vue$3.options.directives, platformDirectives);\nextend(Vue$3.options.components, platformComponents);\n\n// install platform patch function\nVue$3.prototype.__patch__ = inBrowser ? patch$1 : noop;\n\n// wrap mount\nVue$3.prototype.$mount = function (\n el,\n hydrating\n) {\n el = el && inBrowser ? query(el) : undefined;\n return this._mount(el, hydrating)\n};\n\n// devtools global hook\n/* istanbul ignore next */\nsetTimeout(function () {\n if (config.devtools) {\n if (devtools) {\n devtools.emit('init', Vue$3);\n } else if (\n \"development\" !== 'production' &&\n inBrowser && !isEdge && /Chrome\\/\\d+/.test(window.navigator.userAgent)\n ) {\n console.log(\n 'Download the Vue Devtools for a better development experience:\\n' +\n 'https://github.com/vuejs/vue-devtools'\n );\n }\n }\n}, 0);\n\n/* */\n\n// check whether current browser encodes a char inside attribute values\nfunction shouldDecode (content, encoded) {\n var div = document.createElement('div');\n div.innerHTML = \"

\";\n return div.innerHTML.indexOf(encoded) > 0\n}\n\n// #3663\n// IE encodes newlines inside attribute values while other browsers don't\nvar shouldDecodeNewlines = inBrowser ? shouldDecode('\\n', ' ') : false;\n\n/* */\n\nvar decoder;\n\nfunction decode (html) {\n decoder = decoder || document.createElement('div');\n decoder.innerHTML = html;\n return decoder.textContent\n}\n\n/* */\n\nvar isUnaryTag = makeMap(\n 'area,base,br,col,embed,frame,hr,img,input,isindex,keygen,' +\n 'link,meta,param,source,track,wbr',\n true\n);\n\n// Elements that you can, intentionally, leave open\n// (and which close themselves)\nvar canBeLeftOpenTag = makeMap(\n 'colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source',\n true\n);\n\n// HTML5 tags https://html.spec.whatwg.org/multipage/indices.html#elements-3\n// Phrasing Content https://html.spec.whatwg.org/multipage/dom.html#phrasing-content\nvar isNonPhrasingTag = makeMap(\n 'address,article,aside,base,blockquote,body,caption,col,colgroup,dd,' +\n 'details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,' +\n 'h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,' +\n 'optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,' +\n 'title,tr,track',\n true\n);\n\n/**\n * Not type-checking this file because it's mostly vendor code.\n */\n\n/*!\n * HTML Parser By John Resig (ejohn.org)\n * Modified by Juriy \"kangax\" Zaytsev\n * Original code by Erik Arvidsson, Mozilla Public License\n * http://erik.eae.net/simplehtmlparser/simplehtmlparser.js\n */\n\n// Regular Expressions for parsing tags and attributes\nvar singleAttrIdentifier = /([^\\s\"'<>/=]+)/;\nvar singleAttrAssign = /(?:=)/;\nvar singleAttrValues = [\n // attr value double quotes\n /\"([^\"]*)\"+/.source,\n // attr value, single quotes\n /'([^']*)'+/.source,\n // attr value, no quotes\n /([^\\s\"'=<>`]+)/.source\n];\nvar attribute = new RegExp(\n '^\\\\s*' + singleAttrIdentifier.source +\n '(?:\\\\s*(' + singleAttrAssign.source + ')' +\n '\\\\s*(?:' + singleAttrValues.join('|') + '))?'\n);\n\n// could use https://www.w3.org/TR/1999/REC-xml-names-19990114/#NT-QName\n// but for Vue templates we can enforce a simple charset\nvar ncname = '[a-zA-Z_][\\\\w\\\\-\\\\.]*';\nvar qnameCapture = '((?:' + ncname + '\\\\:)?' + ncname + ')';\nvar startTagOpen = new RegExp('^<' + qnameCapture);\nvar startTagClose = /^\\s*(\\/?)>/;\nvar endTag = new RegExp('^<\\\\/' + qnameCapture + '[^>]*>');\nvar doctype = /^]+>/i;\nvar comment = /^');\n\n if (commentEnd >= 0) {\n advance(commentEnd + 3);\n continue\n }\n }\n\n // http://en.wikipedia.org/wiki/Conditional_comment#Downlevel-revealed_conditional_comment\n if (conditionalComment.test(html)) {\n var conditionalEnd = html.indexOf(']>');\n\n if (conditionalEnd >= 0) {\n advance(conditionalEnd + 2);\n continue\n }\n }\n\n // Doctype:\n var doctypeMatch = html.match(doctype);\n if (doctypeMatch) {\n advance(doctypeMatch[0].length);\n continue\n }\n\n // End tag:\n var endTagMatch = html.match(endTag);\n if (endTagMatch) {\n var curIndex = index;\n advance(endTagMatch[0].length);\n parseEndTag(endTagMatch[0], endTagMatch[1], curIndex, index);\n continue\n }\n\n // Start tag:\n var startTagMatch = parseStartTag();\n if (startTagMatch) {\n handleStartTag(startTagMatch);\n continue\n }\n }\n\n var text = (void 0), rest$1 = (void 0), next = (void 0);\n if (textEnd > 0) {\n rest$1 = html.slice(textEnd);\n while (\n !endTag.test(rest$1) &&\n !startTagOpen.test(rest$1) &&\n !comment.test(rest$1) &&\n !conditionalComment.test(rest$1)\n ) {\n // < in plain text, be forgiving and treat it as text\n next = rest$1.indexOf('<', 1);\n if (next < 0) { break }\n textEnd += next;\n rest$1 = html.slice(textEnd);\n }\n text = html.substring(0, textEnd);\n advance(textEnd);\n }\n\n if (textEnd < 0) {\n text = html;\n html = '';\n }\n\n if (options.chars && text) {\n options.chars(text);\n }\n } else {\n var stackedTag = lastTag.toLowerCase();\n var reStackedTag = reCache[stackedTag] || (reCache[stackedTag] = new RegExp('([\\\\s\\\\S]*?)(]*>)', 'i'));\n var endTagLength = 0;\n var rest = html.replace(reStackedTag, function (all, text, endTag) {\n endTagLength = endTag.length;\n if (stackedTag !== 'script' && stackedTag !== 'style' && stackedTag !== 'noscript') {\n text = text\n .replace(//g, '$1')\n .replace(//g, '$1');\n }\n if (options.chars) {\n options.chars(text);\n }\n return ''\n });\n index += html.length - rest.length;\n html = rest;\n parseEndTag('', stackedTag, index - endTagLength, index);\n }\n\n if (html === last && options.chars) {\n options.chars(html);\n break\n }\n }\n\n // Clean up any remaining tags\n parseEndTag();\n\n function advance (n) {\n index += n;\n html = html.substring(n);\n }\n\n function parseStartTag () {\n var start = html.match(startTagOpen);\n if (start) {\n var match = {\n tagName: start[1],\n attrs: [],\n start: index\n };\n advance(start[0].length);\n var end, attr;\n while (!(end = html.match(startTagClose)) && (attr = html.match(attribute))) {\n advance(attr[0].length);\n match.attrs.push(attr);\n }\n if (end) {\n match.unarySlash = end[1];\n advance(end[0].length);\n match.end = index;\n return match\n }\n }\n }\n\n function handleStartTag (match) {\n var tagName = match.tagName;\n var unarySlash = match.unarySlash;\n\n if (expectHTML) {\n if (lastTag === 'p' && isNonPhrasingTag(tagName)) {\n parseEndTag('', lastTag);\n }\n if (canBeLeftOpenTag(tagName) && lastTag === tagName) {\n parseEndTag('', tagName);\n }\n }\n\n var unary = isUnaryTag$$1(tagName) || tagName === 'html' && lastTag === 'head' || !!unarySlash;\n\n var l = match.attrs.length;\n var attrs = new Array(l);\n for (var i = 0; i < l; i++) {\n var args = match.attrs[i];\n // hackish work around FF bug https://bugzilla.mozilla.org/show_bug.cgi?id=369778\n if (IS_REGEX_CAPTURING_BROKEN && args[0].indexOf('\"\"') === -1) {\n if (args[3] === '') { delete args[3]; }\n if (args[4] === '') { delete args[4]; }\n if (args[5] === '') { delete args[5]; }\n }\n var value = args[3] || args[4] || args[5] || '';\n attrs[i] = {\n name: args[1],\n value: decodeAttr(\n value,\n options.shouldDecodeNewlines\n )\n };\n }\n\n if (!unary) {\n stack.push({ tag: tagName, attrs: attrs });\n lastTag = tagName;\n unarySlash = '';\n }\n\n if (options.start) {\n options.start(tagName, attrs, unary, match.start, match.end);\n }\n }\n\n function parseEndTag (tag, tagName, start, end) {\n var pos;\n if (start == null) { start = index; }\n if (end == null) { end = index; }\n\n // Find the closest opened tag of the same type\n if (tagName) {\n var needle = tagName.toLowerCase();\n for (pos = stack.length - 1; pos >= 0; pos--) {\n if (stack[pos].tag.toLowerCase() === needle) {\n break\n }\n }\n } else {\n // If no tag name is provided, clean shop\n pos = 0;\n }\n\n if (pos >= 0) {\n // Close all the open elements, up the stack\n for (var i = stack.length - 1; i >= pos; i--) {\n if (options.end) {\n options.end(stack[i].tag, start, end);\n }\n }\n\n // Remove the open elements from the stack\n stack.length = pos;\n lastTag = pos && stack[pos - 1].tag;\n } else if (tagName.toLowerCase() === 'br') {\n if (options.start) {\n options.start(tagName, [], true, start, end);\n }\n } else if (tagName.toLowerCase() === 'p') {\n if (options.start) {\n options.start(tagName, [], false, start, end);\n }\n if (options.end) {\n options.end(tagName, start, end);\n }\n }\n }\n}\n\n/* */\n\nfunction parseFilters (exp) {\n var inSingle = false;\n var inDouble = false;\n var inTemplateString = false;\n var inRegex = false;\n var curly = 0;\n var square = 0;\n var paren = 0;\n var lastFilterIndex = 0;\n var c, prev, i, expression, filters;\n\n for (i = 0; i < exp.length; i++) {\n prev = c;\n c = exp.charCodeAt(i);\n if (inSingle) {\n if (c === 0x27 && prev !== 0x5C) { inSingle = false; }\n } else if (inDouble) {\n if (c === 0x22 && prev !== 0x5C) { inDouble = false; }\n } else if (inTemplateString) {\n if (c === 0x60 && prev !== 0x5C) { inTemplateString = false; }\n } else if (inRegex) {\n if (c === 0x2f && prev !== 0x5C) { inRegex = false; }\n } else if (\n c === 0x7C && // pipe\n exp.charCodeAt(i + 1) !== 0x7C &&\n exp.charCodeAt(i - 1) !== 0x7C &&\n !curly && !square && !paren\n ) {\n if (expression === undefined) {\n // first filter, end of expression\n lastFilterIndex = i + 1;\n expression = exp.slice(0, i).trim();\n } else {\n pushFilter();\n }\n } else {\n switch (c) {\n case 0x22: inDouble = true; break // \"\n case 0x27: inSingle = true; break // '\n case 0x60: inTemplateString = true; break // `\n case 0x28: paren++; break // (\n case 0x29: paren--; break // )\n case 0x5B: square++; break // [\n case 0x5D: square--; break // ]\n case 0x7B: curly++; break // {\n case 0x7D: curly--; break // }\n }\n if (c === 0x2f) { // /\n var j = i - 1;\n var p = (void 0);\n // find first non-whitespace prev char\n for (; j >= 0; j--) {\n p = exp.charAt(j);\n if (p !== ' ') { break }\n }\n if (!p || !/[\\w$]/.test(p)) {\n inRegex = true;\n }\n }\n }\n }\n\n if (expression === undefined) {\n expression = exp.slice(0, i).trim();\n } else if (lastFilterIndex !== 0) {\n pushFilter();\n }\n\n function pushFilter () {\n (filters || (filters = [])).push(exp.slice(lastFilterIndex, i).trim());\n lastFilterIndex = i + 1;\n }\n\n if (filters) {\n for (i = 0; i < filters.length; i++) {\n expression = wrapFilter(expression, filters[i]);\n }\n }\n\n return expression\n}\n\nfunction wrapFilter (exp, filter) {\n var i = filter.indexOf('(');\n if (i < 0) {\n // _f: resolveFilter\n return (\"_f(\\\"\" + filter + \"\\\")(\" + exp + \")\")\n } else {\n var name = filter.slice(0, i);\n var args = filter.slice(i + 1);\n return (\"_f(\\\"\" + name + \"\\\")(\" + exp + \",\" + args)\n }\n}\n\n/* */\n\nvar defaultTagRE = /\\{\\{((?:.|\\n)+?)\\}\\}/g;\nvar regexEscapeRE = /[-.*+?^${}()|[\\]/\\\\]/g;\n\nvar buildRegex = cached(function (delimiters) {\n var open = delimiters[0].replace(regexEscapeRE, '\\\\$&');\n var close = delimiters[1].replace(regexEscapeRE, '\\\\$&');\n return new RegExp(open + '((?:.|\\\\n)+?)' + close, 'g')\n});\n\nfunction parseText (\n text,\n delimiters\n) {\n var tagRE = delimiters ? buildRegex(delimiters) : defaultTagRE;\n if (!tagRE.test(text)) {\n return\n }\n var tokens = [];\n var lastIndex = tagRE.lastIndex = 0;\n var match, index;\n while ((match = tagRE.exec(text))) {\n index = match.index;\n // push text token\n if (index > lastIndex) {\n tokens.push(JSON.stringify(text.slice(lastIndex, index)));\n }\n // tag token\n var exp = parseFilters(match[1].trim());\n tokens.push((\"_s(\" + exp + \")\"));\n lastIndex = index + match[0].length;\n }\n if (lastIndex < text.length) {\n tokens.push(JSON.stringify(text.slice(lastIndex)));\n }\n return tokens.join('+')\n}\n\n/* */\n\nfunction baseWarn (msg) {\n console.error((\"[Vue parser]: \" + msg));\n}\n\nfunction pluckModuleFunction (\n modules,\n key\n) {\n return modules\n ? modules.map(function (m) { return m[key]; }).filter(function (_) { return _; })\n : []\n}\n\nfunction addProp (el, name, value) {\n (el.props || (el.props = [])).push({ name: name, value: value });\n}\n\nfunction addAttr (el, name, value) {\n (el.attrs || (el.attrs = [])).push({ name: name, value: value });\n}\n\nfunction addDirective (\n el,\n name,\n rawName,\n value,\n arg,\n modifiers\n) {\n (el.directives || (el.directives = [])).push({ name: name, rawName: rawName, value: value, arg: arg, modifiers: modifiers });\n}\n\nfunction addHandler (\n el,\n name,\n value,\n modifiers,\n important\n) {\n // check capture modifier\n if (modifiers && modifiers.capture) {\n delete modifiers.capture;\n name = '!' + name; // mark the event as captured\n }\n if (modifiers && modifiers.once) {\n delete modifiers.once;\n name = '~' + name; // mark the event as once\n }\n var events;\n if (modifiers && modifiers.native) {\n delete modifiers.native;\n events = el.nativeEvents || (el.nativeEvents = {});\n } else {\n events = el.events || (el.events = {});\n }\n var newHandler = { value: value, modifiers: modifiers };\n var handlers = events[name];\n /* istanbul ignore if */\n if (Array.isArray(handlers)) {\n important ? handlers.unshift(newHandler) : handlers.push(newHandler);\n } else if (handlers) {\n events[name] = important ? [newHandler, handlers] : [handlers, newHandler];\n } else {\n events[name] = newHandler;\n }\n}\n\nfunction getBindingAttr (\n el,\n name,\n getStatic\n) {\n var dynamicValue =\n getAndRemoveAttr(el, ':' + name) ||\n getAndRemoveAttr(el, 'v-bind:' + name);\n if (dynamicValue != null) {\n return parseFilters(dynamicValue)\n } else if (getStatic !== false) {\n var staticValue = getAndRemoveAttr(el, name);\n if (staticValue != null) {\n return JSON.stringify(staticValue)\n }\n }\n}\n\nfunction getAndRemoveAttr (el, name) {\n var val;\n if ((val = el.attrsMap[name]) != null) {\n var list = el.attrsList;\n for (var i = 0, l = list.length; i < l; i++) {\n if (list[i].name === name) {\n list.splice(i, 1);\n break\n }\n }\n }\n return val\n}\n\nvar len;\nvar str;\nvar chr;\nvar index$1;\nvar expressionPos;\nvar expressionEndPos;\n\n/**\n * parse directive model to do the array update transform. a[idx] = val => $$a.splice($$idx, 1, val)\n *\n * for loop possible cases:\n *\n * - test\n * - test[idx]\n * - test[test1[idx]]\n * - test[\"a\"][idx]\n * - xxx.test[a[a].test1[idx]]\n * - test.xxx.a[\"asa\"][test1[idx]]\n *\n */\n\nfunction parseModel (val) {\n str = val;\n len = str.length;\n index$1 = expressionPos = expressionEndPos = 0;\n\n if (val.indexOf('[') < 0 || val.lastIndexOf(']') < len - 1) {\n return {\n exp: val,\n idx: null\n }\n }\n\n while (!eof()) {\n chr = next();\n /* istanbul ignore if */\n if (isStringStart(chr)) {\n parseString(chr);\n } else if (chr === 0x5B) {\n parseBracket(chr);\n }\n }\n\n return {\n exp: val.substring(0, expressionPos),\n idx: val.substring(expressionPos + 1, expressionEndPos)\n }\n}\n\nfunction next () {\n return str.charCodeAt(++index$1)\n}\n\nfunction eof () {\n return index$1 >= len\n}\n\nfunction isStringStart (chr) {\n return chr === 0x22 || chr === 0x27\n}\n\nfunction parseBracket (chr) {\n var inBracket = 1;\n expressionPos = index$1;\n while (!eof()) {\n chr = next();\n if (isStringStart(chr)) {\n parseString(chr);\n continue\n }\n if (chr === 0x5B) { inBracket++; }\n if (chr === 0x5D) { inBracket--; }\n if (inBracket === 0) {\n expressionEndPos = index$1;\n break\n }\n }\n}\n\nfunction parseString (chr) {\n var stringQuote = chr;\n while (!eof()) {\n chr = next();\n if (chr === stringQuote) {\n break\n }\n }\n}\n\n/* */\n\nvar dirRE = /^v-|^@|^:/;\nvar forAliasRE = /(.*?)\\s+(?:in|of)\\s+(.*)/;\nvar forIteratorRE = /\\((\\{[^}]*\\}|[^,]*),([^,]*)(?:,([^,]*))?\\)/;\nvar bindRE = /^:|^v-bind:/;\nvar onRE = /^@|^v-on:/;\nvar argRE = /:(.*)$/;\nvar modifierRE = /\\.[^.]+/g;\n\nvar decodeHTMLCached = cached(decode);\n\n// configurable state\nvar warn$1;\nvar platformGetTagNamespace;\nvar platformMustUseProp;\nvar platformIsPreTag;\nvar preTransforms;\nvar transforms;\nvar postTransforms;\nvar delimiters;\n\n/**\n * Convert HTML string to AST.\n */\nfunction parse (\n template,\n options\n) {\n warn$1 = options.warn || baseWarn;\n platformGetTagNamespace = options.getTagNamespace || no;\n platformMustUseProp = options.mustUseProp || no;\n platformIsPreTag = options.isPreTag || no;\n preTransforms = pluckModuleFunction(options.modules, 'preTransformNode');\n transforms = pluckModuleFunction(options.modules, 'transformNode');\n postTransforms = pluckModuleFunction(options.modules, 'postTransformNode');\n delimiters = options.delimiters;\n var stack = [];\n var preserveWhitespace = options.preserveWhitespace !== false;\n var root;\n var currentParent;\n var inVPre = false;\n var inPre = false;\n var warned = false;\n parseHTML(template, {\n expectHTML: options.expectHTML,\n isUnaryTag: options.isUnaryTag,\n shouldDecodeNewlines: options.shouldDecodeNewlines,\n start: function start (tag, attrs, unary) {\n // check namespace.\n // inherit parent ns if there is one\n var ns = (currentParent && currentParent.ns) || platformGetTagNamespace(tag);\n\n // handle IE svg bug\n /* istanbul ignore if */\n if (isIE && ns === 'svg') {\n attrs = guardIESVGBug(attrs);\n }\n\n var element = {\n type: 1,\n tag: tag,\n attrsList: attrs,\n attrsMap: makeAttrsMap(attrs),\n parent: currentParent,\n children: []\n };\n if (ns) {\n element.ns = ns;\n }\n\n if (isForbiddenTag(element) && !isServerRendering()) {\n element.forbidden = true;\n \"development\" !== 'production' && warn$1(\n 'Templates should only be responsible for mapping the state to the ' +\n 'UI. Avoid placing tags with side-effects in your templates, such as ' +\n \"<\" + tag + \">.\"\n );\n }\n\n // apply pre-transforms\n for (var i = 0; i < preTransforms.length; i++) {\n preTransforms[i](element, options);\n }\n\n if (!inVPre) {\n processPre(element);\n if (element.pre) {\n inVPre = true;\n }\n }\n if (platformIsPreTag(element.tag)) {\n inPre = true;\n }\n if (inVPre) {\n processRawAttrs(element);\n } else {\n processFor(element);\n processIf(element);\n processOnce(element);\n processKey(element);\n\n // determine whether this is a plain element after\n // removing structural attributes\n element.plain = !element.key && !attrs.length;\n\n processRef(element);\n processSlot(element);\n processComponent(element);\n for (var i$1 = 0; i$1 < transforms.length; i$1++) {\n transforms[i$1](element, options);\n }\n processAttrs(element);\n }\n\n function checkRootConstraints (el) {\n if (\"development\" !== 'production' && !warned) {\n if (el.tag === 'slot' || el.tag === 'template') {\n warned = true;\n warn$1(\n \"Cannot use <\" + (el.tag) + \"> as component root element because it may \" +\n 'contain multiple nodes:\\n' + template\n );\n }\n if (el.attrsMap.hasOwnProperty('v-for')) {\n warned = true;\n warn$1(\n 'Cannot use v-for on stateful component root element because ' +\n 'it renders multiple elements:\\n' + template\n );\n }\n }\n }\n\n // tree management\n if (!root) {\n root = element;\n checkRootConstraints(root);\n } else if (!stack.length) {\n // allow root elements with v-if, v-else-if and v-else\n if (root.if && (element.elseif || element.else)) {\n checkRootConstraints(element);\n addIfCondition(root, {\n exp: element.elseif,\n block: element\n });\n } else if (\"development\" !== 'production' && !warned) {\n warned = true;\n warn$1(\n \"Component template should contain exactly one root element:\" +\n \"\\n\\n\" + template + \"\\n\\n\" +\n \"If you are using v-if on multiple elements, \" +\n \"use v-else-if to chain them instead.\"\n );\n }\n }\n if (currentParent && !element.forbidden) {\n if (element.elseif || element.else) {\n processIfConditions(element, currentParent);\n } else if (element.slotScope) { // scoped slot\n currentParent.plain = false;\n var name = element.slotTarget || 'default';(currentParent.scopedSlots || (currentParent.scopedSlots = {}))[name] = element;\n } else {\n currentParent.children.push(element);\n element.parent = currentParent;\n }\n }\n if (!unary) {\n currentParent = element;\n stack.push(element);\n }\n // apply post-transforms\n for (var i$2 = 0; i$2 < postTransforms.length; i$2++) {\n postTransforms[i$2](element, options);\n }\n },\n\n end: function end () {\n // remove trailing whitespace\n var element = stack[stack.length - 1];\n var lastNode = element.children[element.children.length - 1];\n if (lastNode && lastNode.type === 3 && lastNode.text === ' ') {\n element.children.pop();\n }\n // pop stack\n stack.length -= 1;\n currentParent = stack[stack.length - 1];\n // check pre state\n if (element.pre) {\n inVPre = false;\n }\n if (platformIsPreTag(element.tag)) {\n inPre = false;\n }\n },\n\n chars: function chars (text) {\n if (!currentParent) {\n if (\"development\" !== 'production' && !warned && text === template) {\n warned = true;\n warn$1(\n 'Component template requires a root element, rather than just text:\\n\\n' + template\n );\n }\n return\n }\n // IE textarea placeholder bug\n /* istanbul ignore if */\n if (isIE &&\n currentParent.tag === 'textarea' &&\n currentParent.attrsMap.placeholder === text) {\n return\n }\n text = inPre || text.trim()\n ? decodeHTMLCached(text)\n // only preserve whitespace if its not right after a starting tag\n : preserveWhitespace && currentParent.children.length ? ' ' : '';\n if (text) {\n var expression;\n if (!inVPre && text !== ' ' && (expression = parseText(text, delimiters))) {\n currentParent.children.push({\n type: 2,\n expression: expression,\n text: text\n });\n } else {\n currentParent.children.push({\n type: 3,\n text: text\n });\n }\n }\n }\n });\n return root\n}\n\nfunction processPre (el) {\n if (getAndRemoveAttr(el, 'v-pre') != null) {\n el.pre = true;\n }\n}\n\nfunction processRawAttrs (el) {\n var l = el.attrsList.length;\n if (l) {\n var attrs = el.attrs = new Array(l);\n for (var i = 0; i < l; i++) {\n attrs[i] = {\n name: el.attrsList[i].name,\n value: JSON.stringify(el.attrsList[i].value)\n };\n }\n } else if (!el.pre) {\n // non root node in pre blocks with no attributes\n el.plain = true;\n }\n}\n\nfunction processKey (el) {\n var exp = getBindingAttr(el, 'key');\n if (exp) {\n if (\"development\" !== 'production' && el.tag === 'template') {\n warn$1(\"