diff --git a/CHANGELOG.md b/CHANGELOG.md index cb5b1a18..2f259bf8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,15 +1,23 @@ ## Changelog +### 1.7.0 + +- **New:** Added `onBeforeClick` event. +- **New:** Added `$.fn.multipleSelect.Constructor` to support extension. +- **New:** Added keyboard actions. +- **New:** Added `ja-JP` locale. +- **Update:** Updated `onFilter` event parameter to original search. + ### 1.6.0 -- **New:**: Added `setSelects` by text support. -- **New:**: Added `divider` option support. -- **New:**: Added `classes`, `classPrefix` and `size` options. -- **New:**: Added `dropdown` support for bootstrap theme. -- **New:**: Added class for `ms-parent` when open the select. -- **New:**: Added `getData` method. -- **New:**: Added `fr-FR`, `vi-VN`, `ru-RU`, `hu-HU`, `da-DK`, `pt-BR` and `cz-CS` locales. -- **New:**: Added index.d.ts to support TypeScript. +- **New:** Added `setSelects` by text support. +- **New:** Added `divider` option support. +- **New:** Added `classes`, `classPrefix` and `size` options. +- **New:** Added `dropdown` support for bootstrap theme. +- **New:** Added class for `ms-parent` when open the select. +- **New:** Added `getData` method. +- **New:** Added `fr-FR`, `vi-VN`, `ru-RU`, `hu-HU`, `da-DK`, `pt-BR` and `cz-CS` locales. +- **New:** Added index.d.ts to support TypeScript. - **Update:** Fixed one item of group selected bug. - **Update:** Fixed not check group with no children bug. - **Update:** Fixed clear button display error. diff --git a/dist/locale/multiple-select-cz-CS.min.js b/dist/locale/multiple-select-cz-CS.min.js index 81afa825..d0c3d51c 100644 --- a/dist/locale/multiple-select-cz-CS.min.js +++ b/dist/locale/multiple-select-cz-CS.min.js @@ -1,7 +1,7 @@ /** * multiple-select - Multiple select is a jQuery plugin to select multiple elements with checkboxes :). * - * @version v1.6.0 + * @version v1.7.0 * @homepage http://multiple-select.wenzhixin.net.cn * @author wenzhixin (http://wenzhixin.net.cn/) * @license MIT diff --git a/dist/locale/multiple-select-da-DK.min.js b/dist/locale/multiple-select-da-DK.min.js index 4f25beaa..054ddc01 100644 --- a/dist/locale/multiple-select-da-DK.min.js +++ b/dist/locale/multiple-select-da-DK.min.js @@ -1,7 +1,7 @@ /** * multiple-select - Multiple select is a jQuery plugin to select multiple elements with checkboxes :). * - * @version v1.6.0 + * @version v1.7.0 * @homepage http://multiple-select.wenzhixin.net.cn * @author wenzhixin (http://wenzhixin.net.cn/) * @license MIT diff --git a/dist/locale/multiple-select-en-US.min.js b/dist/locale/multiple-select-en-US.min.js index e0087596..c7a863f7 100644 --- a/dist/locale/multiple-select-en-US.min.js +++ b/dist/locale/multiple-select-en-US.min.js @@ -1,7 +1,7 @@ /** * multiple-select - Multiple select is a jQuery plugin to select multiple elements with checkboxes :). * - * @version v1.6.0 + * @version v1.7.0 * @homepage http://multiple-select.wenzhixin.net.cn * @author wenzhixin (http://wenzhixin.net.cn/) * @license MIT diff --git a/dist/locale/multiple-select-es-ES.min.js b/dist/locale/multiple-select-es-ES.min.js index 8cc2970e..42ad829b 100644 --- a/dist/locale/multiple-select-es-ES.min.js +++ b/dist/locale/multiple-select-es-ES.min.js @@ -1,7 +1,7 @@ /** * multiple-select - Multiple select is a jQuery plugin to select multiple elements with checkboxes :). * - * @version v1.6.0 + * @version v1.7.0 * @homepage http://multiple-select.wenzhixin.net.cn * @author wenzhixin (http://wenzhixin.net.cn/) * @license MIT diff --git a/dist/locale/multiple-select-fr-FR.min.js b/dist/locale/multiple-select-fr-FR.min.js index a1f2208d..8b08b4fd 100644 --- a/dist/locale/multiple-select-fr-FR.min.js +++ b/dist/locale/multiple-select-fr-FR.min.js @@ -1,7 +1,7 @@ /** * multiple-select - Multiple select is a jQuery plugin to select multiple elements with checkboxes :). * - * @version v1.6.0 + * @version v1.7.0 * @homepage http://multiple-select.wenzhixin.net.cn * @author wenzhixin (http://wenzhixin.net.cn/) * @license MIT diff --git a/dist/locale/multiple-select-hu-HU.min.js b/dist/locale/multiple-select-hu-HU.min.js index 5bfda2a0..ffa5cf5f 100644 --- a/dist/locale/multiple-select-hu-HU.min.js +++ b/dist/locale/multiple-select-hu-HU.min.js @@ -1,7 +1,7 @@ /** * multiple-select - Multiple select is a jQuery plugin to select multiple elements with checkboxes :). * - * @version v1.6.0 + * @version v1.7.0 * @homepage http://multiple-select.wenzhixin.net.cn * @author wenzhixin (http://wenzhixin.net.cn/) * @license MIT diff --git a/dist/locale/multiple-select-it-IT.min.js b/dist/locale/multiple-select-it-IT.min.js index a9e67f71..649cc61d 100644 --- a/dist/locale/multiple-select-it-IT.min.js +++ b/dist/locale/multiple-select-it-IT.min.js @@ -1,7 +1,7 @@ /** * multiple-select - Multiple select is a jQuery plugin to select multiple elements with checkboxes :). * - * @version v1.6.0 + * @version v1.7.0 * @homepage http://multiple-select.wenzhixin.net.cn * @author wenzhixin (http://wenzhixin.net.cn/) * @license MIT diff --git a/dist/locale/multiple-select-ja-JP.js b/dist/locale/multiple-select-ja-JP.js new file mode 100644 index 00000000..661f07ef --- /dev/null +++ b/dist/locale/multiple-select-ja-JP.js @@ -0,0 +1,1269 @@ +(function (global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) : + typeof define === 'function' && define.amd ? define(['jquery'], factory) : + (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jQuery)); +})(this, (function ($$1) { 'use strict'; + + var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; + + var check = function (it) { + return it && it.Math == Math && it; + }; + + // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 + var global$b = + // eslint-disable-next-line es/no-global-this -- safe + check(typeof globalThis == 'object' && globalThis) || + check(typeof window == 'object' && window) || + // eslint-disable-next-line no-restricted-globals -- safe + check(typeof self == 'object' && self) || + check(typeof commonjsGlobal == 'object' && commonjsGlobal) || + // eslint-disable-next-line no-new-func -- fallback + (function () { return this; })() || commonjsGlobal || Function('return this')(); + + var objectGetOwnPropertyDescriptor = {}; + + var fails$b = function (exec) { + try { + return !!exec(); + } catch (error) { + return true; + } + }; + + var fails$a = fails$b; + + // Detect IE8's incomplete defineProperty implementation + var descriptors = !fails$a(function () { + // eslint-disable-next-line es/no-object-defineproperty -- required for testing + return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7; + }); + + var fails$9 = fails$b; + + var functionBindNative = !fails$9(function () { + // eslint-disable-next-line es/no-function-prototype-bind -- safe + var test = (function () { /* empty */ }).bind(); + // eslint-disable-next-line no-prototype-builtins -- safe + return typeof test != 'function' || test.hasOwnProperty('prototype'); + }); + + var NATIVE_BIND$1 = functionBindNative; + + var call$4 = Function.prototype.call; + + var functionCall = NATIVE_BIND$1 ? call$4.bind(call$4) : function () { + return call$4.apply(call$4, arguments); + }; + + var objectPropertyIsEnumerable = {}; + + var $propertyIsEnumerable = {}.propertyIsEnumerable; + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; + + // Nashorn ~ JDK8 bug + var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1); + + // `Object.prototype.propertyIsEnumerable` method implementation + // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable + objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) { + var descriptor = getOwnPropertyDescriptor$1(this, V); + return !!descriptor && descriptor.enumerable; + } : $propertyIsEnumerable; + + var createPropertyDescriptor$3 = function (bitmap, value) { + return { + enumerable: !(bitmap & 1), + configurable: !(bitmap & 2), + writable: !(bitmap & 4), + value: value + }; + }; + + var NATIVE_BIND = functionBindNative; + + var FunctionPrototype$1 = Function.prototype; + var call$3 = FunctionPrototype$1.call; + var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$3, call$3); + + var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) { + return function () { + return call$3.apply(fn, arguments); + }; + }; + + var uncurryThis$9 = functionUncurryThis; + + var toString$1 = uncurryThis$9({}.toString); + var stringSlice$1 = uncurryThis$9(''.slice); + + var classofRaw$1 = function (it) { + return stringSlice$1(toString$1(it), 8, -1); + }; + + var uncurryThis$8 = functionUncurryThis; + var fails$8 = fails$b; + var classof$3 = classofRaw$1; + + var $Object$3 = Object; + var split = uncurryThis$8(''.split); + + // fallback for non-array-like ES3 and non-enumerable old V8 strings + var indexedObject = fails$8(function () { + // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346 + // eslint-disable-next-line no-prototype-builtins -- safe + return !$Object$3('z').propertyIsEnumerable(0); + }) ? function (it) { + return classof$3(it) == 'String' ? split(it, '') : $Object$3(it); + } : $Object$3; + + // we can't use just `it == null` since of `document.all` special case + // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec + var isNullOrUndefined$2 = function (it) { + return it === null || it === undefined; + }; + + var isNullOrUndefined$1 = isNullOrUndefined$2; + + var $TypeError$6 = TypeError; + + // `RequireObjectCoercible` abstract operation + // https://tc39.es/ecma262/#sec-requireobjectcoercible + var requireObjectCoercible$2 = function (it) { + if (isNullOrUndefined$1(it)) throw $TypeError$6("Can't call method on " + it); + return it; + }; + + // toObject with fallback for non-array-like ES3 strings + var IndexedObject = indexedObject; + var requireObjectCoercible$1 = requireObjectCoercible$2; + + var toIndexedObject$3 = function (it) { + return IndexedObject(requireObjectCoercible$1(it)); + }; + + var documentAll$2 = typeof document == 'object' && document.all; + + // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot + // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing + var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined; + + var documentAll_1 = { + all: documentAll$2, + IS_HTMLDDA: IS_HTMLDDA + }; + + var $documentAll$1 = documentAll_1; + + var documentAll$1 = $documentAll$1.all; + + // `IsCallable` abstract operation + // https://tc39.es/ecma262/#sec-iscallable + var isCallable$c = $documentAll$1.IS_HTMLDDA ? function (argument) { + return typeof argument == 'function' || argument === documentAll$1; + } : function (argument) { + return typeof argument == 'function'; + }; + + var isCallable$b = isCallable$c; + var $documentAll = documentAll_1; + + var documentAll = $documentAll.all; + + var isObject$7 = $documentAll.IS_HTMLDDA ? function (it) { + return typeof it == 'object' ? it !== null : isCallable$b(it) || it === documentAll; + } : function (it) { + return typeof it == 'object' ? it !== null : isCallable$b(it); + }; + + var global$a = global$b; + var isCallable$a = isCallable$c; + + var aFunction = function (argument) { + return isCallable$a(argument) ? argument : undefined; + }; + + var getBuiltIn$3 = function (namespace, method) { + return arguments.length < 2 ? aFunction(global$a[namespace]) : global$a[namespace] && global$a[namespace][method]; + }; + + var uncurryThis$7 = functionUncurryThis; + + var objectIsPrototypeOf = uncurryThis$7({}.isPrototypeOf); + + var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || ''; + + var global$9 = global$b; + var userAgent = engineUserAgent; + + var process = global$9.process; + var Deno = global$9.Deno; + var versions = process && process.versions || Deno && Deno.version; + var v8 = versions && versions.v8; + var match, version; + + if (v8) { + match = v8.split('.'); + // in old Chrome, versions of V8 isn't V8 = Chrome / 10 + // but their correct versions are not interesting for us + version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]); + } + + // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0` + // so check `userAgent` even if `.v8` exists, but 0 + if (!version && userAgent) { + match = userAgent.match(/Edge\/(\d+)/); + if (!match || match[1] >= 74) { + match = userAgent.match(/Chrome\/(\d+)/); + if (match) version = +match[1]; + } + } + + var engineV8Version = version; + + /* eslint-disable es/no-symbol -- required for testing */ + + var V8_VERSION$2 = engineV8Version; + var fails$7 = fails$b; + var global$8 = global$b; + + var $String$3 = global$8.String; + + // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing + var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$7(function () { + var symbol = Symbol(); + // Chrome 38 Symbol has incorrect toString conversion + // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances + // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will, + // of course, fail. + return !$String$3(symbol) || !(Object(symbol) instanceof Symbol) || + // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances + !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41; + }); + + /* eslint-disable es/no-symbol -- required for testing */ + + var NATIVE_SYMBOL$1 = symbolConstructorDetection; + + var useSymbolAsUid = NATIVE_SYMBOL$1 + && !Symbol.sham + && typeof Symbol.iterator == 'symbol'; + + var getBuiltIn$2 = getBuiltIn$3; + var isCallable$9 = isCallable$c; + var isPrototypeOf = objectIsPrototypeOf; + var USE_SYMBOL_AS_UID$1 = useSymbolAsUid; + + var $Object$2 = Object; + + var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) { + return typeof it == 'symbol'; + } : function (it) { + var $Symbol = getBuiltIn$2('Symbol'); + return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it)); + }; + + var $String$2 = String; + + var tryToString$1 = function (argument) { + try { + return $String$2(argument); + } catch (error) { + return 'Object'; + } + }; + + var isCallable$8 = isCallable$c; + var tryToString = tryToString$1; + + var $TypeError$5 = TypeError; + + // `Assert: IsCallable(argument) is true` + var aCallable$1 = function (argument) { + if (isCallable$8(argument)) return argument; + throw $TypeError$5(tryToString(argument) + ' is not a function'); + }; + + var aCallable = aCallable$1; + var isNullOrUndefined = isNullOrUndefined$2; + + // `GetMethod` abstract operation + // https://tc39.es/ecma262/#sec-getmethod + var getMethod$1 = function (V, P) { + var func = V[P]; + return isNullOrUndefined(func) ? undefined : aCallable(func); + }; + + var call$2 = functionCall; + var isCallable$7 = isCallable$c; + var isObject$6 = isObject$7; + + var $TypeError$4 = TypeError; + + // `OrdinaryToPrimitive` abstract operation + // https://tc39.es/ecma262/#sec-ordinarytoprimitive + var ordinaryToPrimitive$1 = function (input, pref) { + var fn, val; + if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val; + if (isCallable$7(fn = input.valueOf) && !isObject$6(val = call$2(fn, input))) return val; + if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val; + throw $TypeError$4("Can't convert object to primitive value"); + }; + + var shared$3 = {exports: {}}; + + var global$7 = global$b; + + // eslint-disable-next-line es/no-object-defineproperty -- safe + var defineProperty$1 = Object.defineProperty; + + var defineGlobalProperty$3 = function (key, value) { + try { + defineProperty$1(global$7, key, { value: value, configurable: true, writable: true }); + } catch (error) { + global$7[key] = value; + } return value; + }; + + var global$6 = global$b; + var defineGlobalProperty$2 = defineGlobalProperty$3; + + var SHARED = '__core-js_shared__'; + var store$3 = global$6[SHARED] || defineGlobalProperty$2(SHARED, {}); + + var sharedStore = store$3; + + var store$2 = sharedStore; + + (shared$3.exports = function (key, value) { + return store$2[key] || (store$2[key] = value !== undefined ? value : {}); + })('versions', []).push({ + version: '3.30.2', + mode: 'global', + copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)', + license: 'https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE', + source: 'https://github.com/zloirock/core-js' + }); + + var sharedExports = shared$3.exports; + + var requireObjectCoercible = requireObjectCoercible$2; + + var $Object$1 = Object; + + // `ToObject` abstract operation + // https://tc39.es/ecma262/#sec-toobject + var toObject$2 = function (argument) { + return $Object$1(requireObjectCoercible(argument)); + }; + + var uncurryThis$6 = functionUncurryThis; + var toObject$1 = toObject$2; + + var hasOwnProperty = uncurryThis$6({}.hasOwnProperty); + + // `HasOwnProperty` abstract operation + // https://tc39.es/ecma262/#sec-hasownproperty + // eslint-disable-next-line es/no-object-hasown -- safe + var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) { + return hasOwnProperty(toObject$1(it), key); + }; + + var uncurryThis$5 = functionUncurryThis; + + var id = 0; + var postfix = Math.random(); + var toString = uncurryThis$5(1.0.toString); + + var uid$2 = function (key) { + return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36); + }; + + var global$5 = global$b; + var shared$2 = sharedExports; + var hasOwn$6 = hasOwnProperty_1; + var uid$1 = uid$2; + var NATIVE_SYMBOL = symbolConstructorDetection; + var USE_SYMBOL_AS_UID = useSymbolAsUid; + + var Symbol$1 = global$5.Symbol; + var WellKnownSymbolsStore = shared$2('wks'); + var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1; + + var wellKnownSymbol$6 = function (name) { + if (!hasOwn$6(WellKnownSymbolsStore, name)) { + WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name) + ? Symbol$1[name] + : createWellKnownSymbol('Symbol.' + name); + } return WellKnownSymbolsStore[name]; + }; + + var call$1 = functionCall; + var isObject$5 = isObject$7; + var isSymbol$1 = isSymbol$2; + var getMethod = getMethod$1; + var ordinaryToPrimitive = ordinaryToPrimitive$1; + var wellKnownSymbol$5 = wellKnownSymbol$6; + + var $TypeError$3 = TypeError; + var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive'); + + // `ToPrimitive` abstract operation + // https://tc39.es/ecma262/#sec-toprimitive + var toPrimitive$1 = function (input, pref) { + if (!isObject$5(input) || isSymbol$1(input)) return input; + var exoticToPrim = getMethod(input, TO_PRIMITIVE); + var result; + if (exoticToPrim) { + if (pref === undefined) pref = 'default'; + result = call$1(exoticToPrim, input, pref); + if (!isObject$5(result) || isSymbol$1(result)) return result; + throw $TypeError$3("Can't convert object to primitive value"); + } + if (pref === undefined) pref = 'number'; + return ordinaryToPrimitive(input, pref); + }; + + var toPrimitive = toPrimitive$1; + var isSymbol = isSymbol$2; + + // `ToPropertyKey` abstract operation + // https://tc39.es/ecma262/#sec-topropertykey + var toPropertyKey$3 = function (argument) { + var key = toPrimitive(argument, 'string'); + return isSymbol(key) ? key : key + ''; + }; + + var global$4 = global$b; + var isObject$4 = isObject$7; + + var document$1 = global$4.document; + // typeof document.createElement is 'object' in old IE + var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement); + + var documentCreateElement = function (it) { + return EXISTS$1 ? document$1.createElement(it) : {}; + }; + + var DESCRIPTORS$6 = descriptors; + var fails$6 = fails$b; + var createElement = documentCreateElement; + + // Thanks to IE8 for its funny defineProperty + var ie8DomDefine = !DESCRIPTORS$6 && !fails$6(function () { + // eslint-disable-next-line es/no-object-defineproperty -- required for testing + return Object.defineProperty(createElement('div'), 'a', { + get: function () { return 7; } + }).a != 7; + }); + + var DESCRIPTORS$5 = descriptors; + var call = functionCall; + var propertyIsEnumerableModule = objectPropertyIsEnumerable; + var createPropertyDescriptor$2 = createPropertyDescriptor$3; + var toIndexedObject$2 = toIndexedObject$3; + var toPropertyKey$2 = toPropertyKey$3; + var hasOwn$5 = hasOwnProperty_1; + var IE8_DOM_DEFINE$1 = ie8DomDefine; + + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; + + // `Object.getOwnPropertyDescriptor` method + // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor + objectGetOwnPropertyDescriptor.f = DESCRIPTORS$5 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) { + O = toIndexedObject$2(O); + P = toPropertyKey$2(P); + if (IE8_DOM_DEFINE$1) try { + return $getOwnPropertyDescriptor$1(O, P); + } catch (error) { /* empty */ } + if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call(propertyIsEnumerableModule.f, O, P), O[P]); + }; + + var objectDefineProperty = {}; + + var DESCRIPTORS$4 = descriptors; + var fails$5 = fails$b; + + // V8 ~ Chrome 36- + // https://bugs.chromium.org/p/v8/issues/detail?id=3334 + var v8PrototypeDefineBug = DESCRIPTORS$4 && fails$5(function () { + // eslint-disable-next-line es/no-object-defineproperty -- required for testing + return Object.defineProperty(function () { /* empty */ }, 'prototype', { + value: 42, + writable: false + }).prototype != 42; + }); + + var isObject$3 = isObject$7; + + var $String$1 = String; + var $TypeError$2 = TypeError; + + // `Assert: Type(argument) is Object` + var anObject$2 = function (argument) { + if (isObject$3(argument)) return argument; + throw $TypeError$2($String$1(argument) + ' is not an object'); + }; + + var DESCRIPTORS$3 = descriptors; + var IE8_DOM_DEFINE = ie8DomDefine; + var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug; + var anObject$1 = anObject$2; + var toPropertyKey$1 = toPropertyKey$3; + + var $TypeError$1 = TypeError; + // eslint-disable-next-line es/no-object-defineproperty -- safe + var $defineProperty = Object.defineProperty; + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; + var ENUMERABLE = 'enumerable'; + var CONFIGURABLE$1 = 'configurable'; + var WRITABLE = 'writable'; + + // `Object.defineProperty` method + // https://tc39.es/ecma262/#sec-object.defineproperty + objectDefineProperty.f = DESCRIPTORS$3 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) { + anObject$1(O); + P = toPropertyKey$1(P); + anObject$1(Attributes); + if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) { + var current = $getOwnPropertyDescriptor(O, P); + if (current && current[WRITABLE]) { + O[P] = Attributes.value; + Attributes = { + configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1], + enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE], + writable: false + }; + } + } return $defineProperty(O, P, Attributes); + } : $defineProperty : function defineProperty(O, P, Attributes) { + anObject$1(O); + P = toPropertyKey$1(P); + anObject$1(Attributes); + if (IE8_DOM_DEFINE) try { + return $defineProperty(O, P, Attributes); + } catch (error) { /* empty */ } + if ('get' in Attributes || 'set' in Attributes) throw $TypeError$1('Accessors not supported'); + if ('value' in Attributes) O[P] = Attributes.value; + return O; + }; + + var DESCRIPTORS$2 = descriptors; + var definePropertyModule$3 = objectDefineProperty; + var createPropertyDescriptor$1 = createPropertyDescriptor$3; + + var createNonEnumerableProperty$2 = DESCRIPTORS$2 ? function (object, key, value) { + return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value)); + } : function (object, key, value) { + object[key] = value; + return object; + }; + + var makeBuiltIn$2 = {exports: {}}; + + var DESCRIPTORS$1 = descriptors; + var hasOwn$4 = hasOwnProperty_1; + + var FunctionPrototype = Function.prototype; + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe + var getDescriptor = DESCRIPTORS$1 && Object.getOwnPropertyDescriptor; + + var EXISTS = hasOwn$4(FunctionPrototype, 'name'); + // additional protection from minified / mangled / dropped function names + var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something'; + var CONFIGURABLE = EXISTS && (!DESCRIPTORS$1 || (DESCRIPTORS$1 && getDescriptor(FunctionPrototype, 'name').configurable)); + + var functionName = { + EXISTS: EXISTS, + PROPER: PROPER, + CONFIGURABLE: CONFIGURABLE + }; + + var uncurryThis$4 = functionUncurryThis; + var isCallable$6 = isCallable$c; + var store$1 = sharedStore; + + var functionToString = uncurryThis$4(Function.toString); + + // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper + if (!isCallable$6(store$1.inspectSource)) { + store$1.inspectSource = function (it) { + return functionToString(it); + }; + } + + var inspectSource$2 = store$1.inspectSource; + + var global$3 = global$b; + var isCallable$5 = isCallable$c; + + var WeakMap$1 = global$3.WeakMap; + + var weakMapBasicDetection = isCallable$5(WeakMap$1) && /native code/.test(String(WeakMap$1)); + + var shared$1 = sharedExports; + var uid = uid$2; + + var keys = shared$1('keys'); + + var sharedKey$1 = function (key) { + return keys[key] || (keys[key] = uid(key)); + }; + + var hiddenKeys$3 = {}; + + var NATIVE_WEAK_MAP = weakMapBasicDetection; + var global$2 = global$b; + var isObject$2 = isObject$7; + var createNonEnumerableProperty$1 = createNonEnumerableProperty$2; + var hasOwn$3 = hasOwnProperty_1; + var shared = sharedStore; + var sharedKey = sharedKey$1; + var hiddenKeys$2 = hiddenKeys$3; + + var OBJECT_ALREADY_INITIALIZED = 'Object already initialized'; + var TypeError$1 = global$2.TypeError; + var WeakMap = global$2.WeakMap; + var set, get, has; + + var enforce = function (it) { + return has(it) ? get(it) : set(it, {}); + }; + + var getterFor = function (TYPE) { + return function (it) { + var state; + if (!isObject$2(it) || (state = get(it)).type !== TYPE) { + throw TypeError$1('Incompatible receiver, ' + TYPE + ' required'); + } return state; + }; + }; + + if (NATIVE_WEAK_MAP || shared.state) { + var store = shared.state || (shared.state = new WeakMap()); + /* eslint-disable no-self-assign -- prototype methods protection */ + store.get = store.get; + store.has = store.has; + store.set = store.set; + /* eslint-enable no-self-assign -- prototype methods protection */ + set = function (it, metadata) { + if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED); + metadata.facade = it; + store.set(it, metadata); + return metadata; + }; + get = function (it) { + return store.get(it) || {}; + }; + has = function (it) { + return store.has(it); + }; + } else { + var STATE = sharedKey('state'); + hiddenKeys$2[STATE] = true; + set = function (it, metadata) { + if (hasOwn$3(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED); + metadata.facade = it; + createNonEnumerableProperty$1(it, STATE, metadata); + return metadata; + }; + get = function (it) { + return hasOwn$3(it, STATE) ? it[STATE] : {}; + }; + has = function (it) { + return hasOwn$3(it, STATE); + }; + } + + var internalState = { + set: set, + get: get, + has: has, + enforce: enforce, + getterFor: getterFor + }; + + var uncurryThis$3 = functionUncurryThis; + var fails$4 = fails$b; + var isCallable$4 = isCallable$c; + var hasOwn$2 = hasOwnProperty_1; + var DESCRIPTORS = descriptors; + var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE; + var inspectSource$1 = inspectSource$2; + var InternalStateModule = internalState; + + var enforceInternalState = InternalStateModule.enforce; + var getInternalState = InternalStateModule.get; + var $String = String; + // eslint-disable-next-line es/no-object-defineproperty -- safe + var defineProperty = Object.defineProperty; + var stringSlice = uncurryThis$3(''.slice); + var replace = uncurryThis$3(''.replace); + var join = uncurryThis$3([].join); + + var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails$4(function () { + return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8; + }); + + var TEMPLATE = String(String).split('String'); + + var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) { + if (stringSlice($String(name), 0, 7) === 'Symbol(') { + name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']'; + } + if (options && options.getter) name = 'get ' + name; + if (options && options.setter) name = 'set ' + name; + if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) { + if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true }); + else value.name = name; + } + if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) { + defineProperty(value, 'length', { value: options.arity }); + } + try { + if (options && hasOwn$2(options, 'constructor') && options.constructor) { + if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false }); + // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable + } else if (value.prototype) value.prototype = undefined; + } catch (error) { /* empty */ } + var state = enforceInternalState(value); + if (!hasOwn$2(state, 'source')) { + state.source = join(TEMPLATE, typeof name == 'string' ? name : ''); + } return value; + }; + + // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative + // eslint-disable-next-line no-extend-native -- required + Function.prototype.toString = makeBuiltIn$1(function toString() { + return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this); + }, 'toString'); + + var makeBuiltInExports = makeBuiltIn$2.exports; + + var isCallable$3 = isCallable$c; + var definePropertyModule$2 = objectDefineProperty; + var makeBuiltIn = makeBuiltInExports; + var defineGlobalProperty$1 = defineGlobalProperty$3; + + var defineBuiltIn$1 = function (O, key, value, options) { + if (!options) options = {}; + var simple = options.enumerable; + var name = options.name !== undefined ? options.name : key; + if (isCallable$3(value)) makeBuiltIn(value, name, options); + if (options.global) { + if (simple) O[key] = value; + else defineGlobalProperty$1(key, value); + } else { + try { + if (!options.unsafe) delete O[key]; + else if (O[key]) simple = true; + } catch (error) { /* empty */ } + if (simple) O[key] = value; + else definePropertyModule$2.f(O, key, { + value: value, + enumerable: false, + configurable: !options.nonConfigurable, + writable: !options.nonWritable + }); + } return O; + }; + + var objectGetOwnPropertyNames = {}; + + var ceil = Math.ceil; + var floor = Math.floor; + + // `Math.trunc` method + // https://tc39.es/ecma262/#sec-math.trunc + // eslint-disable-next-line es/no-math-trunc -- safe + var mathTrunc = Math.trunc || function trunc(x) { + var n = +x; + return (n > 0 ? floor : ceil)(n); + }; + + var trunc = mathTrunc; + + // `ToIntegerOrInfinity` abstract operation + // https://tc39.es/ecma262/#sec-tointegerorinfinity + var toIntegerOrInfinity$2 = function (argument) { + var number = +argument; + // eslint-disable-next-line no-self-compare -- NaN check + return number !== number || number === 0 ? 0 : trunc(number); + }; + + var toIntegerOrInfinity$1 = toIntegerOrInfinity$2; + + var max = Math.max; + var min$1 = Math.min; + + // Helper for a popular repeating case of the spec: + // Let integer be ? ToInteger(index). + // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length). + var toAbsoluteIndex$1 = function (index, length) { + var integer = toIntegerOrInfinity$1(index); + return integer < 0 ? max(integer + length, 0) : min$1(integer, length); + }; + + var toIntegerOrInfinity = toIntegerOrInfinity$2; + + var min = Math.min; + + // `ToLength` abstract operation + // https://tc39.es/ecma262/#sec-tolength + var toLength$1 = function (argument) { + return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 + }; + + var toLength = toLength$1; + + // `LengthOfArrayLike` abstract operation + // https://tc39.es/ecma262/#sec-lengthofarraylike + var lengthOfArrayLike$2 = function (obj) { + return toLength(obj.length); + }; + + var toIndexedObject$1 = toIndexedObject$3; + var toAbsoluteIndex = toAbsoluteIndex$1; + var lengthOfArrayLike$1 = lengthOfArrayLike$2; + + // `Array.prototype.{ indexOf, includes }` methods implementation + var createMethod = function (IS_INCLUDES) { + return function ($this, el, fromIndex) { + var O = toIndexedObject$1($this); + var length = lengthOfArrayLike$1(O); + var index = toAbsoluteIndex(fromIndex, length); + var value; + // Array#includes uses SameValueZero equality algorithm + // eslint-disable-next-line no-self-compare -- NaN check + if (IS_INCLUDES && el != el) while (length > index) { + value = O[index++]; + // eslint-disable-next-line no-self-compare -- NaN check + if (value != value) return true; + // Array#indexOf ignores holes, Array#includes - not + } else for (;length > index; index++) { + if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0; + } return !IS_INCLUDES && -1; + }; + }; + + var arrayIncludes = { + // `Array.prototype.includes` method + // https://tc39.es/ecma262/#sec-array.prototype.includes + includes: createMethod(true), + // `Array.prototype.indexOf` method + // https://tc39.es/ecma262/#sec-array.prototype.indexof + indexOf: createMethod(false) + }; + + var uncurryThis$2 = functionUncurryThis; + var hasOwn$1 = hasOwnProperty_1; + var toIndexedObject = toIndexedObject$3; + var indexOf = arrayIncludes.indexOf; + var hiddenKeys$1 = hiddenKeys$3; + + var push = uncurryThis$2([].push); + + var objectKeysInternal = function (object, names) { + var O = toIndexedObject(object); + var i = 0; + var result = []; + var key; + for (key in O) !hasOwn$1(hiddenKeys$1, key) && hasOwn$1(O, key) && push(result, key); + // Don't enum bug & hidden keys + while (names.length > i) if (hasOwn$1(O, key = names[i++])) { + ~indexOf(result, key) || push(result, key); + } + return result; + }; + + // IE8- don't enum bug keys + var enumBugKeys$1 = [ + 'constructor', + 'hasOwnProperty', + 'isPrototypeOf', + 'propertyIsEnumerable', + 'toLocaleString', + 'toString', + 'valueOf' + ]; + + var internalObjectKeys = objectKeysInternal; + var enumBugKeys = enumBugKeys$1; + + var hiddenKeys = enumBugKeys.concat('length', 'prototype'); + + // `Object.getOwnPropertyNames` method + // https://tc39.es/ecma262/#sec-object.getownpropertynames + // eslint-disable-next-line es/no-object-getownpropertynames -- safe + objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { + return internalObjectKeys(O, hiddenKeys); + }; + + var objectGetOwnPropertySymbols = {}; + + // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe + objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols; + + var getBuiltIn$1 = getBuiltIn$3; + var uncurryThis$1 = functionUncurryThis; + var getOwnPropertyNamesModule = objectGetOwnPropertyNames; + var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols; + var anObject = anObject$2; + + var concat = uncurryThis$1([].concat); + + // all object keys, includes non-enumerable and symbols + var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) { + var keys = getOwnPropertyNamesModule.f(anObject(it)); + var getOwnPropertySymbols = getOwnPropertySymbolsModule.f; + return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys; + }; + + var hasOwn = hasOwnProperty_1; + var ownKeys = ownKeys$1; + var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor; + var definePropertyModule$1 = objectDefineProperty; + + var copyConstructorProperties$1 = function (target, source, exceptions) { + var keys = ownKeys(source); + var defineProperty = definePropertyModule$1.f; + var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) { + defineProperty(target, key, getOwnPropertyDescriptor(source, key)); + } + } + }; + + var fails$3 = fails$b; + var isCallable$2 = isCallable$c; + + var replacement = /#|\.prototype\./; + + var isForced$1 = function (feature, detection) { + var value = data[normalize(feature)]; + return value == POLYFILL ? true + : value == NATIVE ? false + : isCallable$2(detection) ? fails$3(detection) + : !!detection; + }; + + var normalize = isForced$1.normalize = function (string) { + return String(string).replace(replacement, '.').toLowerCase(); + }; + + var data = isForced$1.data = {}; + var NATIVE = isForced$1.NATIVE = 'N'; + var POLYFILL = isForced$1.POLYFILL = 'P'; + + var isForced_1 = isForced$1; + + var global$1 = global$b; + var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f; + var createNonEnumerableProperty = createNonEnumerableProperty$2; + var defineBuiltIn = defineBuiltIn$1; + var defineGlobalProperty = defineGlobalProperty$3; + var copyConstructorProperties = copyConstructorProperties$1; + var isForced = isForced_1; + + /* + options.target - name of the target object + options.global - target is the global object + options.stat - export as static methods of target + options.proto - export as prototype methods of target + options.real - real prototype method for the `pure` version + options.forced - export even if the native feature is available + options.bind - bind methods to the target, required for the `pure` version + options.wrap - wrap constructors to preventing global pollution, required for the `pure` version + options.unsafe - use the simple assignment of property instead of delete + defineProperty + options.sham - add a flag to not completely full polyfills + options.enumerable - export as enumerable property + options.dontCallGetSet - prevent calling a getter on target + options.name - the .name of the function if it does not match the key + */ + var _export = function (options, source) { + var TARGET = options.target; + var GLOBAL = options.global; + var STATIC = options.stat; + var FORCED, target, key, targetProperty, sourceProperty, descriptor; + if (GLOBAL) { + target = global$1; + } else if (STATIC) { + target = global$1[TARGET] || defineGlobalProperty(TARGET, {}); + } else { + target = (global$1[TARGET] || {}).prototype; + } + if (target) for (key in source) { + sourceProperty = source[key]; + if (options.dontCallGetSet) { + descriptor = getOwnPropertyDescriptor(target, key); + targetProperty = descriptor && descriptor.value; + } else targetProperty = target[key]; + FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); + // contained in target + if (!FORCED && targetProperty !== undefined) { + if (typeof sourceProperty == typeof targetProperty) continue; + copyConstructorProperties(sourceProperty, targetProperty); + } + // add a flag to not completely full polyfills + if (options.sham || (targetProperty && targetProperty.sham)) { + createNonEnumerableProperty(sourceProperty, 'sham', true); + } + defineBuiltIn(target, key, sourceProperty, options); + } + }; + + var classof$2 = classofRaw$1; + + // `IsArray` abstract operation + // https://tc39.es/ecma262/#sec-isarray + // eslint-disable-next-line es/no-array-isarray -- safe + var isArray$2 = Array.isArray || function isArray(argument) { + return classof$2(argument) == 'Array'; + }; + + var $TypeError = TypeError; + var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991 + + var doesNotExceedSafeInteger$1 = function (it) { + if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded'); + return it; + }; + + var toPropertyKey = toPropertyKey$3; + var definePropertyModule = objectDefineProperty; + var createPropertyDescriptor = createPropertyDescriptor$3; + + var createProperty$1 = function (object, key, value) { + var propertyKey = toPropertyKey(key); + if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value)); + else object[propertyKey] = value; + }; + + var wellKnownSymbol$4 = wellKnownSymbol$6; + + var TO_STRING_TAG$1 = wellKnownSymbol$4('toStringTag'); + var test = {}; + + test[TO_STRING_TAG$1] = 'z'; + + var toStringTagSupport = String(test) === '[object z]'; + + var TO_STRING_TAG_SUPPORT = toStringTagSupport; + var isCallable$1 = isCallable$c; + var classofRaw = classofRaw$1; + var wellKnownSymbol$3 = wellKnownSymbol$6; + + var TO_STRING_TAG = wellKnownSymbol$3('toStringTag'); + var $Object = Object; + + // ES3 wrong here + var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments'; + + // fallback for IE11 Script Access Denied error + var tryGet = function (it, key) { + try { + return it[key]; + } catch (error) { /* empty */ } + }; + + // getting tag from ES6+ `Object.prototype.toString` + var classof$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) { + var O, tag, result; + return it === undefined ? 'Undefined' : it === null ? 'Null' + // @@toStringTag case + : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag + // builtinTag case + : CORRECT_ARGUMENTS ? classofRaw(O) + // ES3 arguments fallback + : (result = classofRaw(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result; + }; + + var uncurryThis = functionUncurryThis; + var fails$2 = fails$b; + var isCallable = isCallable$c; + var classof = classof$1; + var getBuiltIn = getBuiltIn$3; + var inspectSource = inspectSource$2; + + var noop = function () { /* empty */ }; + var empty = []; + var construct = getBuiltIn('Reflect', 'construct'); + var constructorRegExp = /^\s*(?:class|function)\b/; + var exec = uncurryThis(constructorRegExp.exec); + var INCORRECT_TO_STRING = !constructorRegExp.exec(noop); + + var isConstructorModern = function isConstructor(argument) { + if (!isCallable(argument)) return false; + try { + construct(noop, empty, argument); + return true; + } catch (error) { + return false; + } + }; + + var isConstructorLegacy = function isConstructor(argument) { + if (!isCallable(argument)) return false; + switch (classof(argument)) { + case 'AsyncFunction': + case 'GeneratorFunction': + case 'AsyncGeneratorFunction': return false; + } + try { + // we can't check .prototype since constructors produced by .bind haven't it + // `Function#toString` throws on some built-it function in some legacy engines + // (for example, `DOMQuad` and similar in FF41-) + return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument)); + } catch (error) { + return true; + } + }; + + isConstructorLegacy.sham = true; + + // `IsConstructor` abstract operation + // https://tc39.es/ecma262/#sec-isconstructor + var isConstructor$1 = !construct || fails$2(function () { + var called; + return isConstructorModern(isConstructorModern.call) + || !isConstructorModern(Object) + || !isConstructorModern(function () { called = true; }) + || called; + }) ? isConstructorLegacy : isConstructorModern; + + var isArray$1 = isArray$2; + var isConstructor = isConstructor$1; + var isObject$1 = isObject$7; + var wellKnownSymbol$2 = wellKnownSymbol$6; + + var SPECIES$1 = wellKnownSymbol$2('species'); + var $Array = Array; + + // a part of `ArraySpeciesCreate` abstract operation + // https://tc39.es/ecma262/#sec-arrayspeciescreate + var arraySpeciesConstructor$1 = function (originalArray) { + var C; + if (isArray$1(originalArray)) { + C = originalArray.constructor; + // cross-realm fallback + if (isConstructor(C) && (C === $Array || isArray$1(C.prototype))) C = undefined; + else if (isObject$1(C)) { + C = C[SPECIES$1]; + if (C === null) C = undefined; + } + } return C === undefined ? $Array : C; + }; + + var arraySpeciesConstructor = arraySpeciesConstructor$1; + + // `ArraySpeciesCreate` abstract operation + // https://tc39.es/ecma262/#sec-arrayspeciescreate + var arraySpeciesCreate$1 = function (originalArray, length) { + return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length); + }; + + var fails$1 = fails$b; + var wellKnownSymbol$1 = wellKnownSymbol$6; + var V8_VERSION$1 = engineV8Version; + + var SPECIES = wellKnownSymbol$1('species'); + + var arrayMethodHasSpeciesSupport$1 = function (METHOD_NAME) { + // We can't use this feature detection in V8 since it causes + // deoptimization and serious performance degradation + // https://github.com/zloirock/core-js/issues/677 + return V8_VERSION$1 >= 51 || !fails$1(function () { + var array = []; + var constructor = array.constructor = {}; + constructor[SPECIES] = function () { + return { foo: 1 }; + }; + return array[METHOD_NAME](Boolean).foo !== 1; + }); + }; + + var $ = _export; + var fails = fails$b; + var isArray = isArray$2; + var isObject = isObject$7; + var toObject = toObject$2; + var lengthOfArrayLike = lengthOfArrayLike$2; + var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1; + var createProperty = createProperty$1; + var arraySpeciesCreate = arraySpeciesCreate$1; + var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1; + var wellKnownSymbol = wellKnownSymbol$6; + var V8_VERSION = engineV8Version; + + var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable'); + + // We can't use this feature detection in V8 since it causes + // deoptimization and serious performance degradation + // https://github.com/zloirock/core-js/issues/679 + var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () { + var array = []; + array[IS_CONCAT_SPREADABLE] = false; + return array.concat()[0] !== array; + }); + + var isConcatSpreadable = function (O) { + if (!isObject(O)) return false; + var spreadable = O[IS_CONCAT_SPREADABLE]; + return spreadable !== undefined ? !!spreadable : isArray(O); + }; + + var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat'); + + // `Array.prototype.concat` method + // https://tc39.es/ecma262/#sec-array.prototype.concat + // with adding support of @@isConcatSpreadable and @@species + $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, { + // eslint-disable-next-line no-unused-vars -- required for `.length` + concat: function concat(arg) { + var O = toObject(this); + var A = arraySpeciesCreate(O, 0); + var n = 0; + var i, k, length, len, E; + for (i = -1, length = arguments.length; i < length; i++) { + E = i === -1 ? O : arguments[i]; + if (isConcatSpreadable(E)) { + len = lengthOfArrayLike(E); + doesNotExceedSafeInteger(n + len); + for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]); + } else { + doesNotExceedSafeInteger(n + 1); + createProperty(A, n++, E); + } + } + A.length = n; + return A; + } + }); + + /** + * Multiple Select ja-JP translation + * Author: Nozomi Anzai + */ + + $$1.fn.multipleSelect.locales['ja-JP'] = { + formatSelectAll: function formatSelectAll() { + return '[すべて選択]'; + }, + formatAllSelected: function formatAllSelected() { + return 'すべて選択'; + }, + formatCountSelected: function formatCountSelected(count, total) { + return "".concat(total, " \u4EF6\u4E2D ").concat(count, " \u4EF6\u9078\u629E"); + }, + formatNoMatchesFound: function formatNoMatchesFound() { + return '見つかりません'; + } + }; + $$1.extend($$1.fn.multipleSelect.defaults, $$1.fn.multipleSelect.locales['ja-JP']); + +})); diff --git a/dist/locale/multiple-select-ja-JP.min.js b/dist/locale/multiple-select-ja-JP.min.js new file mode 100644 index 00000000..34084203 --- /dev/null +++ b/dist/locale/multiple-select-ja-JP.min.js @@ -0,0 +1,10 @@ +/** + * multiple-select - Multiple select is a jQuery plugin to select multiple elements with checkboxes :). + * + * @version v1.7.0 + * @homepage http://multiple-select.wenzhixin.net.cn + * @author wenzhixin (http://wenzhixin.net.cn/) + * @license MIT + */ + +!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=function(t){return t&&t.Math==Math&&t},r=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n&&n)||function(){return this}()||n||Function("return this")(),o={},i=function(t){try{return!!t()}catch(t){return!0}},u=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=c,a=Function.prototype.call,l=f?a.bind(a):function(){return a.apply(a,arguments)},s={},p={}.propertyIsEnumerable,y=Object.getOwnPropertyDescriptor,b=y&&!p.call({1:2},1);s.f=b?function(t){var n=y(this,t);return!!n&&n.enumerable}:p;var v,g,d=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},h=c,m=Function.prototype,S=m.call,j=h&&m.bind.bind(S,S),w=h?j:function(t){return function(){return S.apply(t,arguments)}},O=w,P=O({}.toString),E=O("".slice),T=function(t){return E(P(t),8,-1)},A=i,x=T,M=Object,F=w("".split),I=A((function(){return!M("z").propertyIsEnumerable(0)}))?function(t){return"String"==x(t)?F(t,""):M(t)}:M,C=function(t){return null==t},D=C,L=TypeError,_=function(t){if(D(t))throw L("Can't call method on "+t);return t},k=I,z=_,N=function(t){return k(z(t))},R="object"==typeof document&&document.all,G={all:R,IS_HTMLDDA:void 0===R&&void 0!==R},q=G.all,B=G.IS_HTMLDDA?function(t){return"function"==typeof t||t===q}:function(t){return"function"==typeof t},H=B,U=G.all,W=G.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:H(t)||t===U}:function(t){return"object"==typeof t?null!==t:H(t)},J=r,K=B,Q=function(t,n){return arguments.length<2?(e=J[t],K(e)?e:void 0):J[t]&&J[t][n];var e},V=w({}.isPrototypeOf),X=r,Y="undefined"!=typeof navigator&&String(navigator.userAgent)||"",$=X.process,Z=X.Deno,tt=$&&$.versions||Z&&Z.version,nt=tt&&tt.v8;nt&&(g=(v=nt.split("."))[0]>0&&v[0]<4?1:+(v[0]+v[1])),!g&&Y&&(!(v=Y.match(/Edge\/(\d+)/))||v[1]>=74)&&(v=Y.match(/Chrome\/(\d+)/))&&(g=+v[1]);var et=g,rt=et,ot=i,it=r.String,ut=!!Object.getOwnPropertySymbols&&!ot((function(){var t=Symbol();return!it(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&rt&&rt<41})),ct=ut&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ft=Q,at=B,lt=V,st=Object,pt=ct?function(t){return"symbol"==typeof t}:function(t){var n=ft("Symbol");return at(n)&<(n.prototype,st(t))},yt=String,bt=B,vt=function(t){try{return yt(t)}catch(t){return"Object"}},gt=TypeError,dt=function(t){if(bt(t))return t;throw gt(vt(t)+" is not a function")},ht=C,mt=l,St=B,jt=W,wt=TypeError,Ot={exports:{}},Pt=r,Et=Object.defineProperty,Tt=function(t,n){try{Et(Pt,t,{value:n,configurable:!0,writable:!0})}catch(e){Pt[t]=n}return n},At=Tt,xt="__core-js_shared__",Mt=r[xt]||At(xt,{}),Ft=Mt;(Ot.exports=function(t,n){return Ft[t]||(Ft[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.30.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var It=Ot.exports,Ct=_,Dt=Object,Lt=function(t){return Dt(Ct(t))},_t=Lt,kt=w({}.hasOwnProperty),zt=Object.hasOwn||function(t,n){return kt(_t(t),n)},Nt=w,Rt=0,Gt=Math.random(),qt=Nt(1..toString),Bt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+qt(++Rt+Gt,36)},Ht=It,Ut=zt,Wt=Bt,Jt=ut,Kt=ct,Qt=r.Symbol,Vt=Ht("wks"),Xt=Kt?Qt.for||Qt:Qt&&Qt.withoutSetter||Wt,Yt=function(t){return Ut(Vt,t)||(Vt[t]=Jt&&Ut(Qt,t)?Qt[t]:Xt("Symbol."+t)),Vt[t]},$t=l,Zt=W,tn=pt,nn=function(t,n){var e=t[n];return ht(e)?void 0:dt(e)},en=function(t,n){var e,r;if("string"===n&&St(e=t.toString)&&!jt(r=mt(e,t)))return r;if(St(e=t.valueOf)&&!jt(r=mt(e,t)))return r;if("string"!==n&&St(e=t.toString)&&!jt(r=mt(e,t)))return r;throw wt("Can't convert object to primitive value")},rn=TypeError,on=Yt("toPrimitive"),un=function(t,n){if(!Zt(t)||tn(t))return t;var e,r=nn(t,on);if(r){if(void 0===n&&(n="default"),e=$t(r,t,n),!Zt(e)||tn(e))return e;throw rn("Can't convert object to primitive value")}return void 0===n&&(n="number"),en(t,n)},cn=pt,fn=function(t){var n=un(t,"string");return cn(n)?n:n+""},an=W,ln=r.document,sn=an(ln)&&an(ln.createElement),pn=function(t){return sn?ln.createElement(t):{}},yn=!u&&!i((function(){return 7!=Object.defineProperty(pn("div"),"a",{get:function(){return 7}}).a})),bn=u,vn=l,gn=s,dn=d,hn=N,mn=fn,Sn=zt,jn=yn,wn=Object.getOwnPropertyDescriptor;o.f=bn?wn:function(t,n){if(t=hn(t),n=mn(n),jn)try{return wn(t,n)}catch(t){}if(Sn(t,n))return dn(!vn(gn.f,t,n),t[n])};var On={},Pn=u&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),En=W,Tn=String,An=TypeError,xn=function(t){if(En(t))return t;throw An(Tn(t)+" is not an object")},Mn=u,Fn=yn,In=Pn,Cn=xn,Dn=fn,Ln=TypeError,_n=Object.defineProperty,kn=Object.getOwnPropertyDescriptor,zn="enumerable",Nn="configurable",Rn="writable";On.f=Mn?In?function(t,n,e){if(Cn(t),n=Dn(n),Cn(e),"function"==typeof t&&"prototype"===n&&"value"in e&&Rn in e&&!e[Rn]){var r=kn(t,n);r&&r[Rn]&&(t[n]=e.value,e={configurable:Nn in e?e[Nn]:r[Nn],enumerable:zn in e?e[zn]:r[zn],writable:!1})}return _n(t,n,e)}:_n:function(t,n,e){if(Cn(t),n=Dn(n),Cn(e),Fn)try{return _n(t,n,e)}catch(t){}if("get"in e||"set"in e)throw Ln("Accessors not supported");return"value"in e&&(t[n]=e.value),t};var Gn=On,qn=d,Bn=u?function(t,n,e){return Gn.f(t,n,qn(1,e))}:function(t,n,e){return t[n]=e,t},Hn={exports:{}},Un=u,Wn=zt,Jn=Function.prototype,Kn=Un&&Object.getOwnPropertyDescriptor,Qn=Wn(Jn,"name"),Vn={EXISTS:Qn,PROPER:Qn&&"something"===function(){}.name,CONFIGURABLE:Qn&&(!Un||Un&&Kn(Jn,"name").configurable)},Xn=B,Yn=Mt,$n=w(Function.toString);Xn(Yn.inspectSource)||(Yn.inspectSource=function(t){return $n(t)});var Zn,te,ne,ee=Yn.inspectSource,re=B,oe=r.WeakMap,ie=re(oe)&&/native code/.test(String(oe)),ue=Bt,ce=It("keys"),fe={},ae=ie,le=r,se=W,pe=Bn,ye=zt,be=Mt,ve=function(t){return ce[t]||(ce[t]=ue(t))},ge=fe,de="Object already initialized",he=le.TypeError,me=le.WeakMap;if(ae||be.state){var Se=be.state||(be.state=new me);Se.get=Se.get,Se.has=Se.has,Se.set=Se.set,Zn=function(t,n){if(Se.has(t))throw he(de);return n.facade=t,Se.set(t,n),n},te=function(t){return Se.get(t)||{}},ne=function(t){return Se.has(t)}}else{var je=ve("state");ge[je]=!0,Zn=function(t,n){if(ye(t,je))throw he(de);return n.facade=t,pe(t,je,n),n},te=function(t){return ye(t,je)?t[je]:{}},ne=function(t){return ye(t,je)}}var we={set:Zn,get:te,has:ne,enforce:function(t){return ne(t)?te(t):Zn(t,{})},getterFor:function(t){return function(n){var e;if(!se(n)||(e=te(n)).type!==t)throw he("Incompatible receiver, "+t+" required");return e}}},Oe=w,Pe=i,Ee=B,Te=zt,Ae=u,xe=Vn.CONFIGURABLE,Me=ee,Fe=we.enforce,Ie=we.get,Ce=String,De=Object.defineProperty,Le=Oe("".slice),_e=Oe("".replace),ke=Oe([].join),ze=Ae&&!Pe((function(){return 8!==De((function(){}),"length",{value:8}).length})),Ne=String(String).split("String"),Re=Hn.exports=function(t,n,e){"Symbol("===Le(Ce(n),0,7)&&(n="["+_e(Ce(n),/^Symbol\(([^)]*)\)/,"$1")+"]"),e&&e.getter&&(n="get "+n),e&&e.setter&&(n="set "+n),(!Te(t,"name")||xe&&t.name!==n)&&(Ae?De(t,"name",{value:n,configurable:!0}):t.name=n),ze&&e&&Te(e,"arity")&&t.length!==e.arity&&De(t,"length",{value:e.arity});try{e&&Te(e,"constructor")&&e.constructor?Ae&&De(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=Fe(t);return Te(r,"source")||(r.source=ke(Ne,"string"==typeof n?n:"")),t};Function.prototype.toString=Re((function(){return Ee(this)&&Ie(this).source||Me(this)}),"toString");var Ge=Hn.exports,qe=B,Be=On,He=Ge,Ue=Tt,We={},Je=Math.ceil,Ke=Math.floor,Qe=Math.trunc||function(t){var n=+t;return(n>0?Ke:Je)(n)},Ve=function(t){var n=+t;return n!=n||0===n?0:Qe(n)},Xe=Ve,Ye=Math.max,$e=Math.min,Ze=Ve,tr=Math.min,nr=function(t){return t>0?tr(Ze(t),9007199254740991):0},er=function(t){return nr(t.length)},rr=N,or=function(t,n){var e=Xe(t);return e<0?Ye(e+n,0):$e(e,n)},ir=er,ur=function(t){return function(n,e,r){var o,i=rr(n),u=ir(i),c=or(r,u);if(t&&e!=e){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===e)return t||c||0;return!t&&-1}},cr={includes:ur(!0),indexOf:ur(!1)},fr=zt,ar=N,lr=cr.indexOf,sr=fe,pr=w([].push),yr=function(t,n){var e,r=ar(t),o=0,i=[];for(e in r)!fr(sr,e)&&fr(r,e)&&pr(i,e);for(;n.length>o;)fr(r,e=n[o++])&&(~lr(i,e)||pr(i,e));return i},br=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");We.f=Object.getOwnPropertyNames||function(t){return yr(t,br)};var vr={};vr.f=Object.getOwnPropertySymbols;var gr=Q,dr=We,hr=vr,mr=xn,Sr=w([].concat),jr=gr("Reflect","ownKeys")||function(t){var n=dr.f(mr(t)),e=hr.f;return e?Sr(n,e(t)):n},wr=zt,Or=jr,Pr=o,Er=On,Tr=i,Ar=B,xr=/#|\.prototype\./,Mr=function(t,n){var e=Ir[Fr(t)];return e==Dr||e!=Cr&&(Ar(n)?Tr(n):!!n)},Fr=Mr.normalize=function(t){return String(t).replace(xr,".").toLowerCase()},Ir=Mr.data={},Cr=Mr.NATIVE="N",Dr=Mr.POLYFILL="P",Lr=Mr,_r=r,kr=o.f,zr=Bn,Nr=function(t,n,e,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:n;if(qe(e)&&He(e,i,r),r.global)o?t[n]=e:Ue(n,e);else{try{r.unsafe?t[n]&&(o=!0):delete t[n]}catch(t){}o?t[n]=e:Be.f(t,n,{value:e,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},Rr=Tt,Gr=function(t,n,e){for(var r=Or(n),o=Er.f,i=Pr.f,u=0;u9007199254740991)throw Ur("Maximum allowed index exceeded");return t},Co=function(t,n,e){var r=Wr(n);r in t?Jr.f(t,r,Kr(0,e)):t[r]=e},Do=function(t,n){return new(jo(t))(0===n?0:n)},Lo=function(t){return Oo>=51||!wo((function(){var n=[];return(n.constructor={})[Po]=function(){return{foo:1}},1!==n[t](Boolean).foo}))},_o=et,ko=Yt("isConcatSpreadable"),zo=_o>=51||!To((function(){var t=[];return t[ko]=!1,t.concat()[0]!==t})),No=function(t){if(!xo(t))return!1;var n=t[ko];return void 0!==n?!!n:Ao(t)};Eo({target:"Array",proto:!0,arity:1,forced:!zo||!Lo("concat")},{concat:function(t){var n,e,r,o,i,u=Mo(this),c=Do(u,0),f=0;for(n=-1,r=arguments.length;n (http://wenzhixin.net.cn/) * @license MIT diff --git a/dist/locale/multiple-select-ru-RU.min.js b/dist/locale/multiple-select-ru-RU.min.js index f057f1f0..4b061990 100644 --- a/dist/locale/multiple-select-ru-RU.min.js +++ b/dist/locale/multiple-select-ru-RU.min.js @@ -1,7 +1,7 @@ /** * multiple-select - Multiple select is a jQuery plugin to select multiple elements with checkboxes :). * - * @version v1.6.0 + * @version v1.7.0 * @homepage http://multiple-select.wenzhixin.net.cn * @author wenzhixin (http://wenzhixin.net.cn/) * @license MIT diff --git a/dist/locale/multiple-select-vi-VN.min.js b/dist/locale/multiple-select-vi-VN.min.js index ccbfa0d9..1774d786 100644 --- a/dist/locale/multiple-select-vi-VN.min.js +++ b/dist/locale/multiple-select-vi-VN.min.js @@ -1,7 +1,7 @@ /** * multiple-select - Multiple select is a jQuery plugin to select multiple elements with checkboxes :). * - * @version v1.6.0 + * @version v1.7.0 * @homepage http://multiple-select.wenzhixin.net.cn * @author wenzhixin (http://wenzhixin.net.cn/) * @license MIT diff --git a/dist/locale/multiple-select-zh-CN.min.js b/dist/locale/multiple-select-zh-CN.min.js index 5aef8280..f38f6cd4 100644 --- a/dist/locale/multiple-select-zh-CN.min.js +++ b/dist/locale/multiple-select-zh-CN.min.js @@ -1,7 +1,7 @@ /** * multiple-select - Multiple select is a jQuery plugin to select multiple elements with checkboxes :). * - * @version v1.6.0 + * @version v1.7.0 * @homepage http://multiple-select.wenzhixin.net.cn * @author wenzhixin (http://wenzhixin.net.cn/) * @license MIT diff --git a/dist/locale/multiple-select-zh-TW.min.js b/dist/locale/multiple-select-zh-TW.min.js index e92ad74b..552d3587 100644 --- a/dist/locale/multiple-select-zh-TW.min.js +++ b/dist/locale/multiple-select-zh-TW.min.js @@ -1,7 +1,7 @@ /** * multiple-select - Multiple select is a jQuery plugin to select multiple elements with checkboxes :). * - * @version v1.6.0 + * @version v1.7.0 * @homepage http://multiple-select.wenzhixin.net.cn * @author wenzhixin (http://wenzhixin.net.cn/) * @license MIT diff --git a/dist/multiple-select-es.js b/dist/multiple-select-es.js index ba0088fe..56b43cbe 100644 --- a/dist/multiple-select-es.js +++ b/dist/multiple-select-es.js @@ -175,7 +175,7 @@ var global$f = var objectGetOwnPropertyDescriptor = {}; -var fails$m = function (exec) { +var fails$n = function (exec) { try { return !!exec(); } catch (error) { @@ -183,17 +183,17 @@ var fails$m = function (exec) { } }; -var fails$l = fails$m; +var fails$m = fails$n; // Detect IE8's incomplete defineProperty implementation -var descriptors = !fails$l(function () { +var descriptors = !fails$m(function () { // eslint-disable-next-line es/no-object-defineproperty -- required for testing return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7; }); -var fails$k = fails$m; +var fails$l = fails$n; -var functionBindNative = !fails$k(function () { +var functionBindNative = !fails$l(function () { // eslint-disable-next-line es/no-function-prototype-bind -- safe var test = (function () { /* empty */ }).bind(); // eslint-disable-next-line no-prototype-builtins -- safe @@ -202,10 +202,10 @@ var functionBindNative = !fails$k(function () { var NATIVE_BIND$3 = functionBindNative; -var call$b = Function.prototype.call; +var call$c = Function.prototype.call; -var functionCall = NATIVE_BIND$3 ? call$b.bind(call$b) : function () { - return call$b.apply(call$b, arguments); +var functionCall = NATIVE_BIND$3 ? call$c.bind(call$c) : function () { + return call$c.apply(call$c, arguments); }; var objectPropertyIsEnumerable = {}; @@ -236,12 +236,12 @@ var createPropertyDescriptor$3 = function (bitmap, value) { var NATIVE_BIND$2 = functionBindNative; var FunctionPrototype$3 = Function.prototype; -var call$a = FunctionPrototype$3.call; -var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$3.bind.bind(call$a, call$a); +var call$b = FunctionPrototype$3.call; +var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$3.bind.bind(call$b, call$b); var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) { return function () { - return call$a.apply(fn, arguments); + return call$b.apply(fn, arguments); }; }; @@ -255,14 +255,14 @@ var classofRaw$2 = function (it) { }; var uncurryThis$o = functionUncurryThis; -var fails$j = fails$m; +var fails$k = fails$n; var classof$8 = classofRaw$2; var $Object$3 = Object; var split = uncurryThis$o(''.split); // fallback for non-array-like ES3 and non-enumerable old V8 strings -var indexedObject = fails$j(function () { +var indexedObject = fails$k(function () { // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346 // eslint-disable-next-line no-prototype-builtins -- safe return !$Object$3('z').propertyIsEnumerable(0); @@ -377,13 +377,13 @@ var engineV8Version = version; /* eslint-disable es/no-symbol -- required for testing */ var V8_VERSION$2 = engineV8Version; -var fails$i = fails$m; +var fails$j = fails$n; var global$c = global$f; var $String$4 = global$c.String; // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing -var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$i(function () { +var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$j(function () { var symbol = Symbol(); // Chrome 38 Symbol has incorrect toString conversion // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances @@ -404,7 +404,7 @@ var useSymbolAsUid = NATIVE_SYMBOL$1 var getBuiltIn$3 = getBuiltIn$4; var isCallable$b = isCallable$e; -var isPrototypeOf = objectIsPrototypeOf; +var isPrototypeOf$1 = objectIsPrototypeOf; var USE_SYMBOL_AS_UID$1 = useSymbolAsUid; var $Object$2 = Object; @@ -413,7 +413,7 @@ var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) { return typeof it == 'symbol'; } : function (it) { var $Symbol = getBuiltIn$3('Symbol'); - return isCallable$b($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it)); + return isCallable$b($Symbol) && isPrototypeOf$1($Symbol.prototype, $Object$2(it)); }; var $String$3 = String; @@ -447,7 +447,7 @@ var getMethod$4 = function (V, P) { return isNullOrUndefined$4(func) ? undefined : aCallable$2(func); }; -var call$9 = functionCall; +var call$a = functionCall; var isCallable$9 = isCallable$e; var isObject$8 = isObject$9; @@ -457,9 +457,9 @@ var $TypeError$8 = TypeError; // https://tc39.es/ecma262/#sec-ordinarytoprimitive var ordinaryToPrimitive$1 = function (input, pref) { var fn, val; - if (pref === 'string' && isCallable$9(fn = input.toString) && !isObject$8(val = call$9(fn, input))) return val; - if (isCallable$9(fn = input.valueOf) && !isObject$8(val = call$9(fn, input))) return val; - if (pref !== 'string' && isCallable$9(fn = input.toString) && !isObject$8(val = call$9(fn, input))) return val; + if (pref === 'string' && isCallable$9(fn = input.toString) && !isObject$8(val = call$a(fn, input))) return val; + if (isCallable$9(fn = input.valueOf) && !isObject$8(val = call$a(fn, input))) return val; + if (pref !== 'string' && isCallable$9(fn = input.toString) && !isObject$8(val = call$a(fn, input))) return val; throw $TypeError$8("Can't convert object to primitive value"); }; @@ -534,7 +534,7 @@ var uid$2 = function (key) { var global$9 = global$f; var shared$3 = sharedExports; -var hasOwn$6 = hasOwnProperty_1; +var hasOwn$7 = hasOwnProperty_1; var uid$1 = uid$2; var NATIVE_SYMBOL = symbolConstructorDetection; var USE_SYMBOL_AS_UID = useSymbolAsUid; @@ -544,14 +544,14 @@ var WellKnownSymbolsStore = shared$3('wks'); var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1; var wellKnownSymbol$d = function (name) { - if (!hasOwn$6(WellKnownSymbolsStore, name)) { - WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name) + if (!hasOwn$7(WellKnownSymbolsStore, name)) { + WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$7(Symbol$1, name) ? Symbol$1[name] : createWellKnownSymbol('Symbol.' + name); } return WellKnownSymbolsStore[name]; }; -var call$8 = functionCall; +var call$9 = functionCall; var isObject$7 = isObject$9; var isSymbol$1 = isSymbol$2; var getMethod$3 = getMethod$4; @@ -569,7 +569,7 @@ var toPrimitive$1 = function (input, pref) { var result; if (exoticToPrim) { if (pref === undefined) pref = 'default'; - result = call$8(exoticToPrim, input, pref); + result = call$9(exoticToPrim, input, pref); if (!isObject$7(result) || isSymbol$1(result)) return result; throw $TypeError$7("Can't convert object to primitive value"); } @@ -599,11 +599,11 @@ var documentCreateElement$2 = function (it) { }; var DESCRIPTORS$a = descriptors; -var fails$h = fails$m; +var fails$i = fails$n; var createElement = documentCreateElement$2; // Thanks to IE8 for its funny defineProperty -var ie8DomDefine = !DESCRIPTORS$a && !fails$h(function () { +var ie8DomDefine = !DESCRIPTORS$a && !fails$i(function () { // eslint-disable-next-line es/no-object-defineproperty -- required for testing return Object.defineProperty(createElement('div'), 'a', { get: function () { return 7; } @@ -611,12 +611,12 @@ var ie8DomDefine = !DESCRIPTORS$a && !fails$h(function () { }); var DESCRIPTORS$9 = descriptors; -var call$7 = functionCall; +var call$8 = functionCall; var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable; var createPropertyDescriptor$2 = createPropertyDescriptor$3; var toIndexedObject$6 = toIndexedObject$7; var toPropertyKey$2 = toPropertyKey$3; -var hasOwn$5 = hasOwnProperty_1; +var hasOwn$6 = hasOwnProperty_1; var IE8_DOM_DEFINE$1 = ie8DomDefine; // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe @@ -630,17 +630,17 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$9 ? $getOwnPropertyDescriptor$1 : if (IE8_DOM_DEFINE$1) try { return $getOwnPropertyDescriptor$1(O, P); } catch (error) { /* empty */ } - if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call$7(propertyIsEnumerableModule$1.f, O, P), O[P]); + if (hasOwn$6(O, P)) return createPropertyDescriptor$2(!call$8(propertyIsEnumerableModule$1.f, O, P), O[P]); }; var objectDefineProperty = {}; var DESCRIPTORS$8 = descriptors; -var fails$g = fails$m; +var fails$h = fails$n; // V8 ~ Chrome 36- // https://bugs.chromium.org/p/v8/issues/detail?id=3334 -var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$g(function () { +var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$h(function () { // eslint-disable-next-line es/no-object-defineproperty -- required for testing return Object.defineProperty(function () { /* empty */ }, 'prototype', { value: 42, @@ -654,7 +654,7 @@ var $String$2 = String; var $TypeError$6 = TypeError; // `Assert: Type(argument) is Object` -var anObject$a = function (argument) { +var anObject$b = function (argument) { if (isObject$5(argument)) return argument; throw $TypeError$6($String$2(argument) + ' is not an object'); }; @@ -662,7 +662,7 @@ var anObject$a = function (argument) { var DESCRIPTORS$7 = descriptors; var IE8_DOM_DEFINE = ie8DomDefine; var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug; -var anObject$9 = anObject$a; +var anObject$a = anObject$b; var toPropertyKey$1 = toPropertyKey$3; var $TypeError$5 = TypeError; @@ -677,9 +677,9 @@ var WRITABLE = 'writable'; // `Object.defineProperty` method // https://tc39.es/ecma262/#sec-object.defineproperty objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) { - anObject$9(O); + anObject$a(O); P = toPropertyKey$1(P); - anObject$9(Attributes); + anObject$a(Attributes); if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) { var current = $getOwnPropertyDescriptor(O, P); if (current && current[WRITABLE]) { @@ -692,9 +692,9 @@ objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de } } return $defineProperty(O, P, Attributes); } : $defineProperty : function defineProperty(O, P, Attributes) { - anObject$9(O); + anObject$a(O); P = toPropertyKey$1(P); - anObject$9(Attributes); + anObject$a(Attributes); if (IE8_DOM_DEFINE) try { return $defineProperty(O, P, Attributes); } catch (error) { /* empty */ } @@ -717,13 +717,13 @@ var createNonEnumerableProperty$4 = DESCRIPTORS$6 ? function (object, key, value var makeBuiltIn$3 = {exports: {}}; var DESCRIPTORS$5 = descriptors; -var hasOwn$4 = hasOwnProperty_1; +var hasOwn$5 = hasOwnProperty_1; var FunctionPrototype$2 = Function.prototype; // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor; -var EXISTS = hasOwn$4(FunctionPrototype$2, 'name'); +var EXISTS = hasOwn$5(FunctionPrototype$2, 'name'); // additional protection from minified / mangled / dropped function names var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something'; var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype$2, 'name').configurable)); @@ -771,7 +771,7 @@ var NATIVE_WEAK_MAP = weakMapBasicDetection; var global$6 = global$f; var isObject$4 = isObject$9; var createNonEnumerableProperty$3 = createNonEnumerableProperty$4; -var hasOwn$3 = hasOwnProperty_1; +var hasOwn$4 = hasOwnProperty_1; var shared$1 = sharedStore; var sharedKey$1 = sharedKey$2; var hiddenKeys$3 = hiddenKeys$4; @@ -817,16 +817,16 @@ if (NATIVE_WEAK_MAP || shared$1.state) { var STATE = sharedKey$1('state'); hiddenKeys$3[STATE] = true; set = function (it, metadata) { - if (hasOwn$3(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED); + if (hasOwn$4(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED); metadata.facade = it; createNonEnumerableProperty$3(it, STATE, metadata); return metadata; }; get = function (it) { - return hasOwn$3(it, STATE) ? it[STATE] : {}; + return hasOwn$4(it, STATE) ? it[STATE] : {}; }; has = function (it) { - return hasOwn$3(it, STATE); + return hasOwn$4(it, STATE); }; } @@ -839,9 +839,9 @@ var internalState = { }; var uncurryThis$j = functionUncurryThis; -var fails$f = fails$m; +var fails$g = fails$n; var isCallable$6 = isCallable$e; -var hasOwn$2 = hasOwnProperty_1; +var hasOwn$3 = hasOwnProperty_1; var DESCRIPTORS$4 = descriptors; var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE; var inspectSource$1 = inspectSource$2; @@ -856,7 +856,7 @@ var stringSlice$5 = uncurryThis$j(''.slice); var replace$3 = uncurryThis$j(''.replace); var join = uncurryThis$j([].join); -var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$f(function () { +var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$g(function () { return defineProperty$3(function () { /* empty */ }, 'length', { value: 8 }).length !== 8; }); @@ -868,21 +868,21 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) { } if (options && options.getter) name = 'get ' + name; if (options && options.setter) name = 'set ' + name; - if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) { + if (!hasOwn$3(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) { if (DESCRIPTORS$4) defineProperty$3(value, 'name', { value: name, configurable: true }); else value.name = name; } - if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) { + if (CONFIGURABLE_LENGTH && options && hasOwn$3(options, 'arity') && value.length !== options.arity) { defineProperty$3(value, 'length', { value: options.arity }); } try { - if (options && hasOwn$2(options, 'constructor') && options.constructor) { + if (options && hasOwn$3(options, 'constructor') && options.constructor) { if (DESCRIPTORS$4) defineProperty$3(value, 'prototype', { writable: false }); // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable } else if (value.prototype) value.prototype = undefined; } catch (error) { /* empty */ } var state = enforceInternalState(value); - if (!hasOwn$2(state, 'source')) { + if (!hasOwn$3(state, 'source')) { state.source = join(TEMPLATE, typeof name == 'string' ? name : ''); } return value; }; @@ -900,7 +900,7 @@ var definePropertyModule$3 = objectDefineProperty; var makeBuiltIn$1 = makeBuiltInExports; var defineGlobalProperty$1 = defineGlobalProperty$3; -var defineBuiltIn$3 = function (O, key, value, options) { +var defineBuiltIn$4 = function (O, key, value, options) { if (!options) options = {}; var simple = options.enumerable; var name = options.name !== undefined ? options.name : key; @@ -1011,7 +1011,7 @@ var arrayIncludes = { }; var uncurryThis$i = functionUncurryThis; -var hasOwn$1 = hasOwnProperty_1; +var hasOwn$2 = hasOwnProperty_1; var toIndexedObject$4 = toIndexedObject$7; var indexOf$1 = arrayIncludes.indexOf; var hiddenKeys$2 = hiddenKeys$4; @@ -1023,9 +1023,9 @@ var objectKeysInternal = function (object, names) { var i = 0; var result = []; var key; - for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && push$4(result, key); + for (key in O) !hasOwn$2(hiddenKeys$2, key) && hasOwn$2(O, key) && push$4(result, key); // Don't enum bug & hidden keys - while (names.length > i) if (hasOwn$1(O, key = names[i++])) { + while (names.length > i) if (hasOwn$2(O, key = names[i++])) { ~indexOf$1(result, key) || push$4(result, key); } return result; @@ -1063,18 +1063,18 @@ var getBuiltIn$2 = getBuiltIn$4; var uncurryThis$h = functionUncurryThis; var getOwnPropertyNamesModule = objectGetOwnPropertyNames; var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols; -var anObject$8 = anObject$a; +var anObject$9 = anObject$b; var concat$2 = uncurryThis$h([].concat); // all object keys, includes non-enumerable and symbols var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) { - var keys = getOwnPropertyNamesModule.f(anObject$8(it)); + var keys = getOwnPropertyNamesModule.f(anObject$9(it)); var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f; return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys; }; -var hasOwn = hasOwnProperty_1; +var hasOwn$1 = hasOwnProperty_1; var ownKeys = ownKeys$1; var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor; var definePropertyModule$2 = objectDefineProperty; @@ -1085,13 +1085,13 @@ var copyConstructorProperties$1 = function (target, source, exceptions) { var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; for (var i = 0; i < keys.length; i++) { var key = keys[i]; - if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) { + if (!hasOwn$1(target, key) && !(exceptions && hasOwn$1(exceptions, key))) { defineProperty(target, key, getOwnPropertyDescriptor(source, key)); } } }; -var fails$e = fails$m; +var fails$f = fails$n; var isCallable$4 = isCallable$e; var replacement = /#|\.prototype\./; @@ -1100,7 +1100,7 @@ var isForced$1 = function (feature, detection) { var value = data[normalize(feature)]; return value == POLYFILL ? true : value == NATIVE ? false - : isCallable$4(detection) ? fails$e(detection) + : isCallable$4(detection) ? fails$f(detection) : !!detection; }; @@ -1117,7 +1117,7 @@ var isForced_1 = isForced$1; var global$5 = global$f; var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f; var createNonEnumerableProperty$2 = createNonEnumerableProperty$4; -var defineBuiltIn$2 = defineBuiltIn$3; +var defineBuiltIn$3 = defineBuiltIn$4; var defineGlobalProperty = defineGlobalProperty$3; var copyConstructorProperties = copyConstructorProperties$1; var isForced = isForced_1; @@ -1165,7 +1165,7 @@ var _export = function (options, source) { if (options.sham || (targetProperty && targetProperty.sham)) { createNonEnumerableProperty$2(sourceProperty, 'sham', true); } - defineBuiltIn$2(target, key, sourceProperty, options); + defineBuiltIn$3(target, key, sourceProperty, options); } }; @@ -1217,12 +1217,12 @@ var toString$8 = function (argument) { return $String(argument); }; -var anObject$7 = anObject$a; +var anObject$8 = anObject$b; // `RegExp.prototype.flags` getter implementation // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags var regexpFlags$1 = function () { - var that = anObject$7(this); + var that = anObject$8(this); var result = ''; if (that.hasIndices) result += 'd'; if (that.global) result += 'g'; @@ -1235,13 +1235,13 @@ var regexpFlags$1 = function () { return result; }; -var fails$d = fails$m; +var fails$e = fails$n; var global$4 = global$f; // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError var $RegExp$2 = global$4.RegExp; -var UNSUPPORTED_Y$2 = fails$d(function () { +var UNSUPPORTED_Y$2 = fails$e(function () { var re = $RegExp$2('a', 'y'); re.lastIndex = 2; return re.exec('abcd') != null; @@ -1249,11 +1249,11 @@ var UNSUPPORTED_Y$2 = fails$d(function () { // UC Browser bug // https://github.com/zloirock/core-js/issues/1008 -var MISSED_STICKY = UNSUPPORTED_Y$2 || fails$d(function () { +var MISSED_STICKY = UNSUPPORTED_Y$2 || fails$e(function () { return !$RegExp$2('a', 'y').sticky; }); -var BROKEN_CARET = UNSUPPORTED_Y$2 || fails$d(function () { +var BROKEN_CARET = UNSUPPORTED_Y$2 || fails$e(function () { // https://bugzilla.mozilla.org/show_bug.cgi?id=773687 var re = $RegExp$2('^r', 'gy'); re.lastIndex = 2; @@ -1281,7 +1281,7 @@ var objectKeys$3 = Object.keys || function keys(O) { var DESCRIPTORS$3 = descriptors; var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug; var definePropertyModule$1 = objectDefineProperty; -var anObject$6 = anObject$a; +var anObject$7 = anObject$b; var toIndexedObject$3 = toIndexedObject$7; var objectKeys$2 = objectKeys$3; @@ -1289,7 +1289,7 @@ var objectKeys$2 = objectKeys$3; // https://tc39.es/ecma262/#sec-object.defineproperties // eslint-disable-next-line es/no-object-defineproperties -- safe objectDefineProperties.f = DESCRIPTORS$3 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) { - anObject$6(O); + anObject$7(O); var props = toIndexedObject$3(Properties); var keys = objectKeys$2(Properties); var length = keys.length; @@ -1305,7 +1305,7 @@ var html$1 = getBuiltIn$1('document', 'documentElement'); /* global ActiveXObject -- old IE, WSH */ -var anObject$5 = anObject$a; +var anObject$6 = anObject$b; var definePropertiesModule = objectDefineProperties; var enumBugKeys = enumBugKeys$3; var hiddenKeys = hiddenKeys$4; @@ -1379,7 +1379,7 @@ hiddenKeys[IE_PROTO] = true; var objectCreate = Object.create || function create(O, Properties) { var result; if (O !== null) { - EmptyConstructor[PROTOTYPE] = anObject$5(O); + EmptyConstructor[PROTOTYPE] = anObject$6(O); result = new EmptyConstructor(); EmptyConstructor[PROTOTYPE] = null; // add "__proto__" for Object.getPrototypeOf polyfill @@ -1388,24 +1388,24 @@ var objectCreate = Object.create || function create(O, Properties) { return Properties === undefined ? result : definePropertiesModule.f(result, Properties); }; -var fails$c = fails$m; +var fails$d = fails$n; var global$3 = global$f; // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError var $RegExp$1 = global$3.RegExp; -var regexpUnsupportedDotAll = fails$c(function () { +var regexpUnsupportedDotAll = fails$d(function () { var re = $RegExp$1('.', 's'); return !(re.dotAll && re.exec('\n') && re.flags === 's'); }); -var fails$b = fails$m; +var fails$c = fails$n; var global$2 = global$f; // babel-minify and Closure Compiler transpiles RegExp('(?b)', 'g') -> /(?b)/g and it causes SyntaxError var $RegExp = global$2.RegExp; -var regexpUnsupportedNcg = fails$b(function () { +var regexpUnsupportedNcg = fails$c(function () { var re = $RegExp('(?b)', 'g'); return re.exec('b').groups.a !== 'b' || 'b'.replace(re, '$c') !== 'bc'; @@ -1413,7 +1413,7 @@ var regexpUnsupportedNcg = fails$b(function () { /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */ /* eslint-disable regexp/no-useless-quantifier -- testing */ -var call$6 = functionCall; +var call$7 = functionCall; var uncurryThis$g = functionUncurryThis; var toString$7 = toString$8; var regexpFlags = regexpFlags$1; @@ -1435,8 +1435,8 @@ var stringSlice$4 = uncurryThis$g(''.slice); var UPDATES_LAST_INDEX_WRONG = (function () { var re1 = /a/; var re2 = /b*/g; - call$6(nativeExec, re1, 'a'); - call$6(nativeExec, re2, 'a'); + call$7(nativeExec, re1, 'a'); + call$7(nativeExec, re2, 'a'); return re1.lastIndex !== 0 || re2.lastIndex !== 0; })(); @@ -1457,14 +1457,14 @@ if (PATCH) { if (raw) { raw.lastIndex = re.lastIndex; - result = call$6(patchedExec, raw, str); + result = call$7(patchedExec, raw, str); re.lastIndex = raw.lastIndex; return result; } var groups = state.groups; var sticky = UNSUPPORTED_Y$1 && re.sticky; - var flags = call$6(regexpFlags, re); + var flags = call$7(regexpFlags, re); var source = re.source; var charsAdded = 0; var strCopy = str; @@ -1492,7 +1492,7 @@ if (PATCH) { } if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex; - match = call$6(nativeExec, sticky ? reCopy : re, strCopy); + match = call$7(nativeExec, sticky ? reCopy : re, strCopy); if (sticky) { if (match) { @@ -1507,7 +1507,7 @@ if (PATCH) { if (NPCG_INCLUDED && match && match.length > 1) { // Fix browsers whose `exec` methods don't consistently return `undefined` // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/ - call$6(nativeReplace, match[0], reCopy, function () { + call$7(nativeReplace, match[0], reCopy, function () { for (i = 1; i < arguments.length - 2; i++) { if (arguments[i] === undefined) match[i] = undefined; } @@ -1550,26 +1550,26 @@ var functionUncurryThisClause = function (fn) { // TODO: Remove from `core-js@4` since it's moved to entry points var uncurryThis$e = functionUncurryThisClause; -var defineBuiltIn$1 = defineBuiltIn$3; +var defineBuiltIn$2 = defineBuiltIn$4; var regexpExec$2 = regexpExec$3; -var fails$a = fails$m; +var fails$b = fails$n; var wellKnownSymbol$9 = wellKnownSymbol$d; var createNonEnumerableProperty$1 = createNonEnumerableProperty$4; var SPECIES$4 = wellKnownSymbol$9('species'); -var RegExpPrototype = RegExp.prototype; +var RegExpPrototype$2 = RegExp.prototype; var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) { var SYMBOL = wellKnownSymbol$9(KEY); - var DELEGATES_TO_SYMBOL = !fails$a(function () { + var DELEGATES_TO_SYMBOL = !fails$b(function () { // String methods call symbol-named RegEp methods var O = {}; O[SYMBOL] = function () { return 7; }; return ''[KEY](O) != 7; }); - var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$a(function () { + var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$b(function () { // Symbol-named RegExp methods call .exec var execCalled = false; var re = /a/; @@ -1602,7 +1602,7 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) { var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) { var uncurriedNativeMethod = uncurryThis$e(nativeMethod); var $exec = regexp.exec; - if ($exec === regexpExec$2 || $exec === RegExpPrototype.exec) { + if ($exec === regexpExec$2 || $exec === RegExpPrototype$2.exec) { if (DELEGATES_TO_SYMBOL && !forceStringMethod) { // The native String method already delegates to @@method (this // polyfilled function), leasing to infinite recursion. @@ -1614,11 +1614,11 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) { return { done: false }; }); - defineBuiltIn$1(String.prototype, KEY, methods[0]); - defineBuiltIn$1(RegExpPrototype, SYMBOL, methods[1]); + defineBuiltIn$2(String.prototype, KEY, methods[0]); + defineBuiltIn$2(RegExpPrototype$2, SYMBOL, methods[1]); } - if (SHAM) createNonEnumerableProperty$1(RegExpPrototype[SYMBOL], 'sham', true); + if (SHAM) createNonEnumerableProperty$1(RegExpPrototype$2[SYMBOL], 'sham', true); }; // `SameValue` abstract operation @@ -1629,8 +1629,8 @@ var sameValue$1 = Object.is || function is(x, y) { return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y; }; -var call$5 = functionCall; -var anObject$4 = anObject$a; +var call$6 = functionCall; +var anObject$5 = anObject$b; var isCallable$2 = isCallable$e; var classof$5 = classofRaw$2; var regexpExec$1 = regexpExec$3; @@ -1642,17 +1642,17 @@ var $TypeError$4 = TypeError; var regexpExecAbstract = function (R, S) { var exec = R.exec; if (isCallable$2(exec)) { - var result = call$5(exec, R, S); - if (result !== null) anObject$4(result); + var result = call$6(exec, R, S); + if (result !== null) anObject$5(result); return result; } - if (classof$5(R) === 'RegExp') return call$5(regexpExec$1, R, S); + if (classof$5(R) === 'RegExp') return call$6(regexpExec$1, R, S); throw $TypeError$4('RegExp#exec called on incompatible receiver'); }; -var call$4 = functionCall; +var call$5 = functionCall; var fixRegExpWellKnownSymbolLogic$2 = fixRegexpWellKnownSymbolLogic; -var anObject$3 = anObject$a; +var anObject$4 = anObject$b; var isNullOrUndefined$3 = isNullOrUndefined$6; var requireObjectCoercible$5 = requireObjectCoercible$8; var sameValue = sameValue$1; @@ -1668,12 +1668,12 @@ fixRegExpWellKnownSymbolLogic$2('search', function (SEARCH, nativeSearch, maybeC function search(regexp) { var O = requireObjectCoercible$5(this); var searcher = isNullOrUndefined$3(regexp) ? undefined : getMethod$2(regexp, SEARCH); - return searcher ? call$4(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString$6(O)); + return searcher ? call$5(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString$6(O)); }, // `RegExp.prototype[@@search]` method // https://tc39.es/ecma262/#sec-regexp.prototype-@@search function (string) { - var rx = anObject$3(this); + var rx = anObject$4(this); var S = toString$6(string); var res = maybeCallNative(nativeSearch, rx, S); @@ -1711,11 +1711,11 @@ var addToUnscopables$2 = function (key) { var $$d = _export; var $includes = arrayIncludes.includes; -var fails$9 = fails$m; +var fails$a = fails$n; var addToUnscopables$1 = addToUnscopables$2; // FF99+ bug -var BROKEN_ON_SPARSE = fails$9(function () { +var BROKEN_ON_SPARSE = fails$a(function () { // eslint-disable-next-line es/no-array-prototype-includes -- detection return !Array(1).includes(); }); @@ -1826,8 +1826,8 @@ var stringTrim = { trim: createMethod$4(3) }; -var PROPER_FUNCTION_NAME = functionName.PROPER; -var fails$8 = fails$m; +var PROPER_FUNCTION_NAME$1 = functionName.PROPER; +var fails$9 = fails$n; var whitespaces = whitespaces$2; var non = '\u200B\u0085\u180E'; @@ -1835,10 +1835,10 @@ var non = '\u200B\u0085\u180E'; // check that a method works with the correct list // of whitespaces and has a correct name var stringTrimForced = function (METHOD_NAME) { - return fails$8(function () { + return fails$9(function () { return !!whitespaces[METHOD_NAME]() || non[METHOD_NAME]() !== non - || (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME); + || (PROPER_FUNCTION_NAME$1 && whitespaces[METHOD_NAME].name !== METHOD_NAME); }); }; @@ -1882,7 +1882,7 @@ var createProperty$3 = function (object, key, value) { }; var uncurryThis$b = functionUncurryThis; -var fails$7 = fails$m; +var fails$8 = fails$n; var isCallable$1 = isCallable$e; var classof$2 = classof$7; var getBuiltIn = getBuiltIn$4; @@ -1926,7 +1926,7 @@ isConstructorLegacy.sham = true; // `IsConstructor` abstract operation // https://tc39.es/ecma262/#sec-isconstructor -var isConstructor$3 = !construct || fails$7(function () { +var isConstructor$3 = !construct || fails$8(function () { var called; return isConstructorModern(isConstructorModern.call) || !isConstructorModern(Object) @@ -1965,7 +1965,7 @@ var arraySpeciesCreate$2 = function (originalArray, length) { return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length); }; -var fails$6 = fails$m; +var fails$7 = fails$n; var wellKnownSymbol$4 = wellKnownSymbol$d; var V8_VERSION$1 = engineV8Version; @@ -1975,7 +1975,7 @@ var arrayMethodHasSpeciesSupport$4 = function (METHOD_NAME) { // We can't use this feature detection in V8 since it causes // deoptimization and serious performance degradation // https://github.com/zloirock/core-js/issues/677 - return V8_VERSION$1 >= 51 || !fails$6(function () { + return V8_VERSION$1 >= 51 || !fails$7(function () { var array = []; var constructor = array.constructor = {}; constructor[SPECIES$2] = function () { @@ -1986,7 +1986,7 @@ var arrayMethodHasSpeciesSupport$4 = function (METHOD_NAME) { }; var $$a = _export; -var fails$5 = fails$m; +var fails$6 = fails$n; var isArray$1 = isArray$3; var isObject$1 = isObject$9; var toObject$5 = toObject$7; @@ -2003,7 +2003,7 @@ var IS_CONCAT_SPREADABLE = wellKnownSymbol$3('isConcatSpreadable'); // We can't use this feature detection in V8 since it causes // deoptimization and serious performance degradation // https://github.com/zloirock/core-js/issues/679 -var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$5(function () { +var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$6(function () { var array = []; array[IS_CONCAT_SPREADABLE] = false; return array.concat()[0] !== array; @@ -2045,8 +2045,8 @@ $$a({ target: 'Array', proto: true, arity: 1, forced: FORCED$2 }, { var DESCRIPTORS$2 = descriptors; var uncurryThis$a = functionUncurryThis; -var call$3 = functionCall; -var fails$4 = fails$m; +var call$4 = functionCall; +var fails$5 = fails$n; var objectKeys$1 = objectKeys$3; var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols; var propertyIsEnumerableModule = objectPropertyIsEnumerable; @@ -2061,7 +2061,7 @@ var concat$1 = uncurryThis$a([].concat); // `Object.assign` method // https://tc39.es/ecma262/#sec-object.assign -var objectAssign = !$assign || fails$4(function () { +var objectAssign = !$assign || fails$5(function () { // should have correct order of operations (Edge bug) if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$1({}, 'a', { enumerable: true, @@ -2095,7 +2095,7 @@ var objectAssign = !$assign || fails$4(function () { var key; while (length > j) { key = keys[j++]; - if (!DESCRIPTORS$2 || call$3(propertyIsEnumerable, S, key)) T[key] = S[key]; + if (!DESCRIPTORS$2 || call$4(propertyIsEnumerable, S, key)) T[key] = S[key]; } } return T; } : $assign; @@ -2110,7 +2110,7 @@ $$9({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign } assign: assign }); -var VERSION = '1.6.0'; +var VERSION = '1.7.0'; var BLOCK_ROWS = 500; var CLUSTER_BLOCKS = 4; var DEFAULTS = { @@ -2184,6 +2184,9 @@ var DEFAULTS = { onOptgroupClick: function onOptgroupClick() { return false; }, + onBeforeClick: function onBeforeClick() { + return true; + }, onClick: function onClick() { return false; }, @@ -2229,11 +2232,11 @@ var NATIVE_BIND$1 = functionBindNative; var FunctionPrototype$1 = Function.prototype; var apply$2 = FunctionPrototype$1.apply; -var call$2 = FunctionPrototype$1.call; +var call$3 = FunctionPrototype$1.call; // eslint-disable-next-line es/no-reflect -- safe -var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$2.bind(apply$2) : function () { - return call$2.apply(apply$2, arguments); +var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$3.bind(apply$2) : function () { + return call$3.apply(apply$2, arguments); }); var isConstructor$1 = isConstructor$3; @@ -2247,7 +2250,7 @@ var aConstructor$1 = function (argument) { throw $TypeError$1(tryToString(argument) + ' is not a constructor'); }; -var anObject$2 = anObject$a; +var anObject$3 = anObject$b; var aConstructor = aConstructor$1; var isNullOrUndefined$2 = isNullOrUndefined$6; var wellKnownSymbol$2 = wellKnownSymbol$d; @@ -2257,9 +2260,9 @@ var SPECIES$1 = wellKnownSymbol$2('species'); // `SpeciesConstructor` abstract operation // https://tc39.es/ecma262/#sec-speciesconstructor var speciesConstructor$1 = function (O, defaultConstructor) { - var C = anObject$2(O).constructor; + var C = anObject$3(O).constructor; var S; - return C === undefined || isNullOrUndefined$2(S = anObject$2(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S); + return C === undefined || isNullOrUndefined$2(S = anObject$3(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S); }; var uncurryThis$9 = functionUncurryThis; @@ -2325,10 +2328,10 @@ var arraySliceSimple = function (O, start, end) { }; var apply$1 = functionApply; -var call$1 = functionCall; +var call$2 = functionCall; var uncurryThis$8 = functionUncurryThis; var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic; -var anObject$1 = anObject$a; +var anObject$2 = anObject$b; var isNullOrUndefined$1 = isNullOrUndefined$6; var isRegExp = isRegexp; var requireObjectCoercible$1 = requireObjectCoercible$8; @@ -2341,7 +2344,7 @@ var arraySlice$1 = arraySliceSimple; var callRegExpExec = regexpExecAbstract; var regexpExec = regexpExec$3; var stickyHelpers = regexpStickyHelpers; -var fails$3 = fails$m; +var fails$4 = fails$n; var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y; var MAX_UINT32 = 0xFFFFFFFF; @@ -2353,7 +2356,7 @@ var stringSlice$2 = uncurryThis$8(''.slice); // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec // Weex JS has frozen built-in prototypes, so use try / catch wrapper -var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails$3(function () { +var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails$4(function () { // eslint-disable-next-line regexp/no-empty-group -- required for testing var re = /(?:)/; var originalExec = re.exec; @@ -2383,7 +2386,7 @@ fixRegExpWellKnownSymbolLogic$1('split', function (SPLIT, nativeSplit, maybeCall if (separator === undefined) return [string]; // If `separator` is not a regex, use native split if (!isRegExp(separator)) { - return call$1(nativeSplit, string, separator, lim); + return call$2(nativeSplit, string, separator, lim); } var output = []; var flags = (separator.ignoreCase ? 'i' : '') + @@ -2394,7 +2397,7 @@ fixRegExpWellKnownSymbolLogic$1('split', function (SPLIT, nativeSplit, maybeCall // Make `global` and avoid `lastIndex` issues by working with a copy var separatorCopy = new RegExp(separator.source, flags + 'g'); var match, lastIndex, lastLength; - while (match = call$1(regexpExec, separatorCopy, string)) { + while (match = call$2(regexpExec, separatorCopy, string)) { lastIndex = separatorCopy.lastIndex; if (lastIndex > lastLastIndex) { push$3(output, stringSlice$2(string, lastLastIndex, match.index)); @@ -2413,7 +2416,7 @@ fixRegExpWellKnownSymbolLogic$1('split', function (SPLIT, nativeSplit, maybeCall // Chakra, V8 } else if ('0'.split(undefined, 0).length) { internalSplit = function (separator, limit) { - return separator === undefined && limit === 0 ? [] : call$1(nativeSplit, this, separator, limit); + return separator === undefined && limit === 0 ? [] : call$2(nativeSplit, this, separator, limit); }; } else internalSplit = nativeSplit; @@ -2424,8 +2427,8 @@ fixRegExpWellKnownSymbolLogic$1('split', function (SPLIT, nativeSplit, maybeCall var O = requireObjectCoercible$1(this); var splitter = isNullOrUndefined$1(separator) ? undefined : getMethod$1(separator, SPLIT); return splitter - ? call$1(splitter, separator, O, limit) - : call$1(internalSplit, toString$2(O), separator, limit); + ? call$2(splitter, separator, O, limit) + : call$2(internalSplit, toString$2(O), separator, limit); }, // `RegExp.prototype[@@split]` method // https://tc39.es/ecma262/#sec-regexp.prototype-@@split @@ -2433,7 +2436,7 @@ fixRegExpWellKnownSymbolLogic$1('split', function (SPLIT, nativeSplit, maybeCall // NOTE: This cannot be properly polyfilled in engines that don't support // the 'y' flag. function (string, limit) { - var rx = anObject$1(this); + var rx = anObject$2(this); var S = toString$2(string); var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit); @@ -2481,11 +2484,11 @@ fixRegExpWellKnownSymbolLogic$1('split', function (SPLIT, nativeSplit, maybeCall ]; }, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y); -var fails$2 = fails$m; +var fails$3 = fails$n; var arrayMethodIsStrict$3 = function (METHOD_NAME, argument) { var method = [][METHOD_NAME]; - return !!method && fails$2(function () { + return !!method && fails$3(function () { // eslint-disable-next-line no-useless-call -- required for testing method.call(null, argument || function () { return 1; }, 1); }); @@ -2665,13 +2668,13 @@ var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() }; var TO_STRING_TAG_SUPPORT = toStringTagSupport; -var defineBuiltIn = defineBuiltIn$3; +var defineBuiltIn$1 = defineBuiltIn$4; var toString$1 = objectToString; // `Object.prototype.toString` method // https://tc39.es/ecma262/#sec-object.prototype.tostring if (!TO_STRING_TAG_SUPPORT) { - defineBuiltIn(Object.prototype, 'toString', toString$1, { unsafe: true }); + defineBuiltIn$1(Object.prototype, 'toString', toString$1, { unsafe: true }); } var $$6 = _export; @@ -2740,9 +2743,9 @@ $$5({ target: 'Object', stat: true }, { var $$4 = _export; var toObject$2 = toObject$7; var nativeKeys = objectKeys$3; -var fails$1 = fails$m; +var fails$2 = fails$n; -var FAILS_ON_PRIMITIVES = fails$1(function () { nativeKeys(1); }); +var FAILS_ON_PRIMITIVES = fails$2(function () { nativeKeys(1); }); // `Object.keys` method // https://tc39.es/ecma262/#sec-object.keys @@ -2899,6 +2902,45 @@ $$2({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, { } }); +var call$1 = functionCall; +var hasOwn = hasOwnProperty_1; +var isPrototypeOf = objectIsPrototypeOf; +var regExpFlags = regexpFlags$1; + +var RegExpPrototype$1 = RegExp.prototype; + +var regexpGetFlags = function (R) { + var flags = R.flags; + return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype$1, R) + ? call$1(regExpFlags, R) : flags; +}; + +var PROPER_FUNCTION_NAME = functionName.PROPER; +var defineBuiltIn = defineBuiltIn$4; +var anObject$1 = anObject$b; +var $toString = toString$8; +var fails$1 = fails$n; +var getRegExpFlags = regexpGetFlags; + +var TO_STRING = 'toString'; +var RegExpPrototype = RegExp.prototype; +var nativeToString = RegExpPrototype[TO_STRING]; + +var NOT_GENERIC = fails$1(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; }); +// FF44- RegExp#toString has a wrong name +var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name != TO_STRING; + +// `RegExp.prototype.toString` method +// https://tc39.es/ecma262/#sec-regexp.prototype.tostring +if (NOT_GENERIC || INCORRECT_NAME) { + defineBuiltIn(RegExp.prototype, TO_STRING, function toString() { + var R = anObject$1(this); + var pattern = $toString(R.source); + var flags = $toString(getRegExpFlags(R)); + return '/' + pattern + '/' + flags; + }, { unsafe: true }); +} + var VirtualScroll = /*#__PURE__*/function () { function VirtualScroll(options) { var _this = this; @@ -3072,8 +3114,8 @@ var apply = functionApply; var call = functionCall; var uncurryThis = functionUncurryThis; var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic; -var fails = fails$m; -var anObject = anObject$a; +var fails = fails$n; +var anObject = anObject$b; var isCallable = isCallable$e; var isNullOrUndefined = isNullOrUndefined$6; var toIntegerOrInfinity = toIntegerOrInfinity$4; @@ -3694,9 +3736,9 @@ var MultipleSelect = /*#__PURE__*/function () { this.tabIndex = el.getAttribute('tabindex'); var tabIndex = ''; if (this.tabIndex !== null) { - this.$el.attr('tabindex', -1); tabIndex = this.tabIndex && "tabindex=\"".concat(this.tabIndex, "\""); } + this.$el.attr('tabindex', -1); this.$choice = $("\n \n ")); // default position is bottom @@ -3963,7 +4005,7 @@ var MultipleSelect = /*#__PURE__*/function () { var _this6 = this; var rows = []; if (this.options.selectAll && !this.options.single) { - rows.push("\n
  • \n \n
  • \n ")); + rows.push("\n
  • \n \n
  • \n ")); } this.updateData = []; this.data.forEach(function (row) { @@ -3995,11 +4037,11 @@ var MultipleSelect = /*#__PURE__*/function () { var _customStyle = this.options.styler(row); var _style = _customStyle ? "style=\"".concat(_customStyle, "\"") : ''; var html = []; - var group = this.options.hideOptgroupCheckboxes || this.options.single ? "") : ""); + var group = this.options.hideOptgroupCheckboxes || this.options.single ? "") : ""); if (!classes.includes('hide-radio') && (this.options.hideOptgroupCheckboxes || this.options.single)) { classes += 'hide-radio '; } - html.push("\n
  • \n \n
  • \n ")); + html.push("\n
  • \n \n
  • \n ")); row.children.forEach(function (child) { html.push.apply(html, _toConsumableArray(_this7.initListItem(child, 1))); }); @@ -4014,7 +4056,7 @@ var MultipleSelect = /*#__PURE__*/function () { if (row.divider) { return '
  • '; } - return ["\n
  • \n \n
  • \n ")]; + return ["\n
  • \n \n
  • \n ")]; } }, { key: "events", @@ -4112,6 +4154,15 @@ var MultipleSelect = /*#__PURE__*/function () { var $this = $(e.currentTarget); var checked = $this.prop('checked'); var option = findByParam(_this8.data, '_key', $this.data('key')); + var close = function close() { + if (_this8.options.single && _this8.options.isOpen && !_this8.options.keepOpen) { + _this8.close(); + } + }; + if (_this8.options.onBeforeClick(option) === false) { + close(); + return; + } _this8._check(option, checked); _this8.options.onClick(removeUndefined({ text: option.text, @@ -4119,8 +4170,33 @@ var MultipleSelect = /*#__PURE__*/function () { selected: option.selected, data: option._data })); - if (_this8.options.single && _this8.options.isOpen && !_this8.options.keepOpen) { - _this8.close(); + close(); + }); + this.$ul.find('li').off('keydown').on('keydown', function (e) { + var $this = $(e.currentTarget); + var $divider; + var $li; + switch (e.key) { + case 'ArrowUp': + e.preventDefault(); + $divider = $this.prev('li.option-divider'); + $li = $divider.length ? $divider : $this; + $li.prev().trigger('focus'); + break; + case 'ArrowDown': + e.preventDefault(); + $divider = $this.next('li.option-divider'); + $li = $divider.length ? $divider : $this; + $li.next().trigger('focus'); + break; + case 'Enter': + e.preventDefault(); + $this.find('input').trigger('click'); + if (_this8.options.single) { + _this8.$choice.trigger('focus'); + } + break; + // ignore } }); } @@ -4539,7 +4615,7 @@ var MultipleSelect = /*#__PURE__*/function () { }, { key: "filter", value: function filter(ignoreTrigger) { - var originalSearch = $.trim(this.$searchInput.val()); + var originalSearch = this.$searchInput.val().trim(); var search = originalSearch.toLowerCase(); if (this.filterText === search) { return; @@ -4553,7 +4629,7 @@ var MultipleSelect = /*#__PURE__*/function () { if (row.type === 'optgroup') { if (this.options.filterGroup) { var visible = this.options.customFilter({ - label: removeDiacritics(row.label.toLowerCase()), + label: removeDiacritics(row.label.toString().toLowerCase()), search: removeDiacritics(search), originalLabel: row.label, originalSearch: originalSearch, @@ -4579,7 +4655,7 @@ var MultipleSelect = /*#__PURE__*/function () { for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) { var _child = _step11.value; _child.visible = this.options.customFilter({ - text: removeDiacritics(_child.text.toLowerCase()), + text: removeDiacritics(_child.text.toString().toLowerCase()), search: removeDiacritics(search), originalText: _child.text, originalSearch: originalSearch, @@ -4598,7 +4674,7 @@ var MultipleSelect = /*#__PURE__*/function () { } } else { row.visible = this.options.customFilter({ - text: removeDiacritics(row.text.toLowerCase()), + text: removeDiacritics(row.text.toString().toLowerCase()), search: removeDiacritics(search), originalText: row.text, originalSearch: originalSearch, @@ -4615,7 +4691,7 @@ var MultipleSelect = /*#__PURE__*/function () { this.initSelected(ignoreTrigger); this.updateSelected(); if (!ignoreTrigger) { - this.options.onFilter(search); + this.options.onFilter(originalSearch); } } }, { @@ -4666,6 +4742,7 @@ $.fn.multipleSelect = function (option) { }); return typeof value !== 'undefined' ? value : this; }; +$.fn.multipleSelect.Constructor = MultipleSelect; $.fn.multipleSelect.defaults = Constants.DEFAULTS; $.fn.multipleSelect.locales = Constants.LOCALES; $.fn.multipleSelect.methods = Constants.METHODS; diff --git a/dist/multiple-select-es.min.js b/dist/multiple-select-es.min.js index 9b5cb179..a800943d 100644 --- a/dist/multiple-select-es.min.js +++ b/dist/multiple-select-es.min.js @@ -1,10 +1,10 @@ /** * multiple-select - Multiple select is a jQuery plugin to select multiple elements with checkboxes :). * - * @version v1.6.0 + * @version v1.7.0 * @homepage http://multiple-select.wenzhixin.net.cn * @author wenzhixin (http://wenzhixin.net.cn/) * @license MIT */ -function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,i=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,r=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw r}}}}var l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},c=function(t){return t&&t.Math==Math&&t},h=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof l&&l)||function(){return this}()||l||Function("return this")(),f={},d=function(t){try{return!!t()}catch(t){return!0}},p=!d((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),v=!d((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),g=v,E=Function.prototype.call,b=g?E.bind(E):function(){return E.apply(E,arguments)},y={},m={}.propertyIsEnumerable,A=Object.getOwnPropertyDescriptor,C=A&&!m.call({1:2},1);y.f=C?function(t){var e=A(this,t);return!!e&&e.enumerable}:m;var F,S,D=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},k=v,x=Function.prototype,O=x.call,w=k&&x.bind.bind(O,O),B=k?w:function(t){return function(){return O.apply(t,arguments)}},j=B,T=j({}.toString),L=j("".slice),I=function(t){return L(T(t),8,-1)},R=d,_=I,M=Object,P=B("".split),N=R((function(){return!M("z").propertyIsEnumerable(0)}))?function(t){return"String"==_(t)?P(t,""):M(t)}:M,H=function(t){return null==t},U=H,G=TypeError,W=function(t){if(U(t))throw G("Can't call method on "+t);return t},z=N,K=W,V=function(t){return z(K(t))},Y="object"==typeof document&&document.all,q={all:Y,IS_HTMLDDA:void 0===Y&&void 0!==Y},X=q.all,J=q.IS_HTMLDDA?function(t){return"function"==typeof t||t===X}:function(t){return"function"==typeof t},Z=J,Q=q.all,tt=q.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:Z(t)||t===Q}:function(t){return"object"==typeof t?null!==t:Z(t)},et=h,nt=J,it=function(t,e){return arguments.length<2?(n=et[t],nt(n)?n:void 0):et[t]&&et[t][e];var n},ut=B({}.isPrototypeOf),rt=h,ot="undefined"!=typeof navigator&&String(navigator.userAgent)||"",st=rt.process,at=rt.Deno,lt=st&&st.versions||at&&at.version,ct=lt&<.v8;ct&&(S=(F=ct.split("."))[0]>0&&F[0]<4?1:+(F[0]+F[1])),!S&&ot&&(!(F=ot.match(/Edge\/(\d+)/))||F[1]>=74)&&(F=ot.match(/Chrome\/(\d+)/))&&(S=+F[1]);var ht=S,ft=ht,dt=d,pt=h.String,vt=!!Object.getOwnPropertySymbols&&!dt((function(){var t=Symbol();return!pt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&ft&&ft<41})),gt=vt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Et=it,bt=J,yt=ut,mt=Object,At=gt?function(t){return"symbol"==typeof t}:function(t){var e=Et("Symbol");return bt(e)&&yt(e.prototype,mt(t))},Ct=String,Ft=function(t){try{return Ct(t)}catch(t){return"Object"}},St=J,Dt=Ft,kt=TypeError,xt=function(t){if(St(t))return t;throw kt(Dt(t)+" is not a function")},$t=xt,Ot=H,wt=function(t,e){var n=t[e];return Ot(n)?void 0:$t(n)},Bt=b,jt=J,Tt=tt,Lt=TypeError,It={exports:{}},Rt=h,_t=Object.defineProperty,Mt=function(t,e){try{_t(Rt,t,{value:e,configurable:!0,writable:!0})}catch(n){Rt[t]=e}return e},Pt=Mt,Nt="__core-js_shared__",Ht=h[Nt]||Pt(Nt,{}),Ut=Ht;(It.exports=function(t,e){return Ut[t]||(Ut[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.30.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Gt=It.exports,Wt=W,zt=Object,Kt=function(t){return zt(Wt(t))},Vt=Kt,Yt=B({}.hasOwnProperty),qt=Object.hasOwn||function(t,e){return Yt(Vt(t),e)},Xt=B,Jt=0,Zt=Math.random(),Qt=Xt(1..toString),te=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Qt(++Jt+Zt,36)},ee=Gt,ne=qt,ie=te,ue=vt,re=gt,oe=h.Symbol,se=ee("wks"),ae=re?oe.for||oe:oe&&oe.withoutSetter||ie,le=function(t){return ne(se,t)||(se[t]=ue&&ne(oe,t)?oe[t]:ae("Symbol."+t)),se[t]},ce=b,he=tt,fe=At,de=wt,pe=function(t,e){var n,i;if("string"===e&&jt(n=t.toString)&&!Tt(i=Bt(n,t)))return i;if(jt(n=t.valueOf)&&!Tt(i=Bt(n,t)))return i;if("string"!==e&&jt(n=t.toString)&&!Tt(i=Bt(n,t)))return i;throw Lt("Can't convert object to primitive value")},ve=TypeError,ge=le("toPrimitive"),Ee=function(t,e){if(!he(t)||fe(t))return t;var n,i=de(t,ge);if(i){if(void 0===e&&(e="default"),n=ce(i,t,e),!he(n)||fe(n))return n;throw ve("Can't convert object to primitive value")}return void 0===e&&(e="number"),pe(t,e)},be=At,ye=function(t){var e=Ee(t,"string");return be(e)?e:e+""},me=tt,Ae=h.document,Ce=me(Ae)&&me(Ae.createElement),Fe=function(t){return Ce?Ae.createElement(t):{}},Se=Fe,De=!p&&!d((function(){return 7!=Object.defineProperty(Se("div"),"a",{get:function(){return 7}}).a})),ke=p,xe=b,$e=y,Oe=D,we=V,Be=ye,je=qt,Te=De,Le=Object.getOwnPropertyDescriptor;f.f=ke?Le:function(t,e){if(t=we(t),e=Be(e),Te)try{return Le(t,e)}catch(t){}if(je(t,e))return Oe(!xe($e.f,t,e),t[e])};var Ie={},Re=p&&d((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),_e=tt,Me=String,Pe=TypeError,Ne=function(t){if(_e(t))return t;throw Pe(Me(t)+" is not an object")},He=p,Ue=De,Ge=Re,We=Ne,ze=ye,Ke=TypeError,Ve=Object.defineProperty,Ye=Object.getOwnPropertyDescriptor,qe="enumerable",Xe="configurable",Je="writable";Ie.f=He?Ge?function(t,e,n){if(We(t),e=ze(e),We(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Je in n&&!n[Je]){var i=Ye(t,e);i&&i[Je]&&(t[e]=n.value,n={configurable:Xe in n?n[Xe]:i[Xe],enumerable:qe in n?n[qe]:i[qe],writable:!1})}return Ve(t,e,n)}:Ve:function(t,e,n){if(We(t),e=ze(e),We(n),Ue)try{return Ve(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Ke("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var Ze=Ie,Qe=D,tn=p?function(t,e,n){return Ze.f(t,e,Qe(1,n))}:function(t,e,n){return t[e]=n,t},en={exports:{}},nn=p,un=qt,rn=Function.prototype,on=nn&&Object.getOwnPropertyDescriptor,sn=un(rn,"name"),an={EXISTS:sn,PROPER:sn&&"something"===function(){}.name,CONFIGURABLE:sn&&(!nn||nn&&on(rn,"name").configurable)},ln=J,cn=Ht,hn=B(Function.toString);ln(cn.inspectSource)||(cn.inspectSource=function(t){return hn(t)});var fn,dn,pn,vn=cn.inspectSource,gn=J,En=h.WeakMap,bn=gn(En)&&/native code/.test(String(En)),yn=te,mn=Gt("keys"),An=function(t){return mn[t]||(mn[t]=yn(t))},Cn={},Fn=bn,Sn=h,Dn=tt,kn=tn,xn=qt,$n=Ht,On=An,wn=Cn,Bn="Object already initialized",jn=Sn.TypeError,Tn=Sn.WeakMap;if(Fn||$n.state){var Ln=$n.state||($n.state=new Tn);Ln.get=Ln.get,Ln.has=Ln.has,Ln.set=Ln.set,fn=function(t,e){if(Ln.has(t))throw jn(Bn);return e.facade=t,Ln.set(t,e),e},dn=function(t){return Ln.get(t)||{}},pn=function(t){return Ln.has(t)}}else{var In=On("state");wn[In]=!0,fn=function(t,e){if(xn(t,In))throw jn(Bn);return e.facade=t,kn(t,In,e),e},dn=function(t){return xn(t,In)?t[In]:{}},pn=function(t){return xn(t,In)}}var Rn={set:fn,get:dn,has:pn,enforce:function(t){return pn(t)?dn(t):fn(t,{})},getterFor:function(t){return function(e){var n;if(!Dn(e)||(n=dn(e)).type!==t)throw jn("Incompatible receiver, "+t+" required");return n}}},_n=B,Mn=d,Pn=J,Nn=qt,Hn=p,Un=an.CONFIGURABLE,Gn=vn,Wn=Rn.enforce,zn=Rn.get,Kn=String,Vn=Object.defineProperty,Yn=_n("".slice),qn=_n("".replace),Xn=_n([].join),Jn=Hn&&!Mn((function(){return 8!==Vn((function(){}),"length",{value:8}).length})),Zn=String(String).split("String"),Qn=en.exports=function(t,e,n){"Symbol("===Yn(Kn(e),0,7)&&(e="["+qn(Kn(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!Nn(t,"name")||Un&&t.name!==e)&&(Hn?Vn(t,"name",{value:e,configurable:!0}):t.name=e),Jn&&n&&Nn(n,"arity")&&t.length!==n.arity&&Vn(t,"length",{value:n.arity});try{n&&Nn(n,"constructor")&&n.constructor?Hn&&Vn(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var i=Wn(t);return Nn(i,"source")||(i.source=Xn(Zn,"string"==typeof e?e:"")),t};Function.prototype.toString=Qn((function(){return Pn(this)&&zn(this).source||Gn(this)}),"toString");var ti=en.exports,ei=J,ni=Ie,ii=ti,ui=Mt,ri=function(t,e,n,i){i||(i={});var u=i.enumerable,r=void 0!==i.name?i.name:e;if(ei(n)&&ii(n,r,i),i.global)u?t[e]=n:ui(e,n);else{try{i.unsafe?t[e]&&(u=!0):delete t[e]}catch(t){}u?t[e]=n:ni.f(t,e,{value:n,enumerable:!1,configurable:!i.nonConfigurable,writable:!i.nonWritable})}return t},oi={},si=Math.ceil,ai=Math.floor,li=Math.trunc||function(t){var e=+t;return(e>0?ai:si)(e)},ci=function(t){var e=+t;return e!=e||0===e?0:li(e)},hi=ci,fi=Math.max,di=Math.min,pi=function(t,e){var n=hi(t);return n<0?fi(n+e,0):di(n,e)},vi=ci,gi=Math.min,Ei=function(t){return t>0?gi(vi(t),9007199254740991):0},bi=Ei,yi=function(t){return bi(t.length)},mi=V,Ai=pi,Ci=yi,Fi=function(t){return function(e,n,i){var u,r=mi(e),o=Ci(r),s=Ai(i,o);if(t&&n!=n){for(;o>s;)if((u=r[s++])!=u)return!0}else for(;o>s;s++)if((t||s in r)&&r[s]===n)return t||s||0;return!t&&-1}},Si={includes:Fi(!0),indexOf:Fi(!1)},Di=qt,ki=V,xi=Si.indexOf,$i=Cn,Oi=B([].push),wi=function(t,e){var n,i=ki(t),u=0,r=[];for(n in i)!Di($i,n)&&Di(i,n)&&Oi(r,n);for(;e.length>u;)Di(i,n=e[u++])&&(~xi(r,n)||Oi(r,n));return r},Bi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ji=wi,Ti=Bi.concat("length","prototype");oi.f=Object.getOwnPropertyNames||function(t){return ji(t,Ti)};var Li={};Li.f=Object.getOwnPropertySymbols;var Ii=it,Ri=oi,_i=Li,Mi=Ne,Pi=B([].concat),Ni=Ii("Reflect","ownKeys")||function(t){var e=Ri.f(Mi(t)),n=_i.f;return n?Pi(e,n(t)):e},Hi=qt,Ui=Ni,Gi=f,Wi=Ie,zi=d,Ki=J,Vi=/#|\.prototype\./,Yi=function(t,e){var n=Xi[qi(t)];return n==Zi||n!=Ji&&(Ki(e)?zi(e):!!e)},qi=Yi.normalize=function(t){return String(t).replace(Vi,".").toLowerCase()},Xi=Yi.data={},Ji=Yi.NATIVE="N",Zi=Yi.POLYFILL="P",Qi=Yi,tu=h,eu=f.f,nu=tn,iu=ri,uu=Mt,ru=function(t,e,n){for(var i=Ui(e),u=Wi.f,r=Gi.f,o=0;oo;)ju.f(t,n=u[o++],i[n]);return t};var Ru,_u=it("document","documentElement"),Mu=Ne,Pu=ku,Nu=Bi,Hu=Cn,Uu=_u,Gu=Fe,Wu="prototype",zu="script",Ku=An("IE_PROTO"),Vu=function(){},Yu=function(t){return"<"+zu+">"+t+""},qu=function(t){t.write(Yu("")),t.close();var e=t.parentWindow.Object;return t=null,e},Xu=function(){try{Ru=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;Xu="undefined"!=typeof document?document.domain&&Ru?qu(Ru):(e=Gu("iframe"),n="java"+zu+":",e.style.display="none",Uu.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Yu("document.F=Object")),t.close(),t.F):qu(Ru);for(var i=Nu.length;i--;)delete Xu[Wu][Nu[i]];return Xu()};Hu[Ku]=!0;var Ju,Zu,Qu=Object.create||function(t,e){var n;return null!==t?(Vu[Wu]=Mu(t),n=new Vu,Vu[Wu]=null,n[Ku]=t):n=Xu(),void 0===e?n:Pu.f(n,e)},tr=d,er=h.RegExp,nr=tr((function(){var t=er(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),ir=d,ur=h.RegExp,rr=ir((function(){var t=ur("(?
    b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")})),or=b,sr=B,ar=yu,lr=function(){var t=mu(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},cr=Du,hr=Qu,fr=Rn.get,dr=nr,pr=rr,vr=Gt("native-string-replace",String.prototype.replace),gr=RegExp.prototype.exec,Er=gr,br=sr("".charAt),yr=sr("".indexOf),mr=sr("".replace),Ar=sr("".slice),Cr=(Zu=/b*/g,or(gr,Ju=/a/,"a"),or(gr,Zu,"a"),0!==Ju.lastIndex||0!==Zu.lastIndex),Fr=cr.BROKEN_CARET,Sr=void 0!==/()??/.exec("")[1];(Cr||Sr||Fr||dr||pr)&&(Er=function(t){var e,n,i,u,r,o,s,a=this,l=fr(a),c=ar(t),h=l.raw;if(h)return h.lastIndex=a.lastIndex,e=or(Er,h,c),a.lastIndex=h.lastIndex,e;var f=l.groups,d=Fr&&a.sticky,p=or(lr,a),v=a.source,g=0,E=c;if(d&&(p=mr(p,"y",""),-1===yr(p,"g")&&(p+="g"),E=Ar(c,a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==br(c,a.lastIndex-1))&&(v="(?: "+v+")",E=" "+E,g++),n=new RegExp("^(?:"+v+")",p)),Sr&&(n=new RegExp("^"+v+"$(?!\\s)",p)),Cr&&(i=a.lastIndex),u=or(gr,d?n:a,E),d?u?(u.input=Ar(u.input,g),u[0]=Ar(u[0],g),u.index=a.lastIndex,a.lastIndex+=u[0].length):a.lastIndex=0:Cr&&u&&(a.lastIndex=a.global?u.index+u[0].length:i),Sr&&u&&u.length>1&&or(vr,u[0],n,(function(){for(r=1;r1?arguments[1]:void 0)}}),so("includes");var ao=tt,lo=I,co=le("match"),ho=function(t){var e;return ao(t)&&(void 0!==(e=t[co])?!!e:"RegExp"==lo(t))},fo=ho,po=TypeError,vo=le("match"),go=su,Eo=function(t){if(fo(t))throw po("The method doesn't accept regular expressions");return t},bo=W,yo=yu,mo=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[vo]=!1,"/./"[t](e)}catch(t){}}return!1},Ao=B("".indexOf);go({target:"String",proto:!0,forced:!mo("includes")},{includes:function(t){return!!~Ao(yo(bo(this)),yo(Eo(t)),arguments.length>1?arguments[1]:void 0)}});var Co="\t\n\v\f\r                 \u2028\u2029\ufeff",Fo=W,So=yu,Do=Co,ko=B("".replace),xo=RegExp("^["+Do+"]+"),$o=RegExp("(^|[^"+Do+"])["+Do+"]+$"),Oo=function(t){return function(e){var n=So(Fo(e));return 1&t&&(n=ko(n,xo,"")),2&t&&(n=ko(n,$o,"$1")),n}},wo={start:Oo(1),end:Oo(2),trim:Oo(3)},Bo=an.PROPER,jo=d,To=Co,Lo=wo.trim;su({target:"String",proto:!0,forced:function(t){return jo((function(){return!!To[t]()||"​…᠎"!=="​…᠎"[t]()||Bo&&To[t].name!==t}))}("trim")},{trim:function(){return Lo(this)}});var Io=I,Ro=Array.isArray||function(t){return"Array"==Io(t)},_o=TypeError,Mo=ye,Po=Ie,No=D,Ho=function(t,e,n){var i=Mo(e);i in t?Po.f(t,i,No(0,n)):t[i]=n},Uo=B,Go=d,Wo=J,zo=gu,Ko=vn,Vo=function(){},Yo=[],qo=it("Reflect","construct"),Xo=/^\s*(?:class|function)\b/,Jo=Uo(Xo.exec),Zo=!Xo.exec(Vo),Qo=function(t){if(!Wo(t))return!1;try{return qo(Vo,Yo,t),!0}catch(t){return!1}},ts=function(t){if(!Wo(t))return!1;switch(zo(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Zo||!!Jo(Xo,Ko(t))}catch(t){return!0}};ts.sham=!0;var es=!qo||Go((function(){var t;return Qo(Qo.call)||!Qo(Object)||!Qo((function(){t=!0}))||t}))?ts:Qo,ns=Ro,is=es,us=tt,rs=le("species"),os=Array,ss=function(t){var e;return ns(t)&&(e=t.constructor,(is(e)&&(e===os||ns(e.prototype))||us(e)&&null===(e=e[rs]))&&(e=void 0)),void 0===e?os:e},as=function(t,e){return new(ss(t))(0===e?0:e)},ls=d,cs=ht,hs=le("species"),fs=function(t){return cs>=51||!ls((function(){var e=[];return(e.constructor={})[hs]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},ds=su,ps=d,vs=Ro,gs=tt,Es=Kt,bs=yi,ys=function(t){if(t>9007199254740991)throw _o("Maximum allowed index exceeded");return t},ms=Ho,As=as,Cs=fs,Fs=ht,Ss=le("isConcatSpreadable"),Ds=Fs>=51||!ps((function(){var t=[];return t[Ss]=!1,t.concat()[0]!==t})),ks=function(t){if(!gs(t))return!1;var e=t[Ss];return void 0!==e?!!e:vs(t)};ds({target:"Array",proto:!0,arity:1,forced:!Ds||!Cs("concat")},{concat:function(t){var e,n,i,u,r,o=Es(this),s=As(o,0),a=0;for(e=-1,i=arguments.length;eu;)for(var s,a=Is(arguments[u++]),l=r?Ms(Bs(a),r(a)):Bs(a),c=l.length,h=0;c>h;)s=l[h++],xs&&!Os(o,a,s)||(n[s]=a[s]);return n}:Rs,Ns=Ps;su({target:"Object",stat:!0,arity:2,forced:Object.assign!==Ns},{assign:Ns});var Hs={name:"",placeholder:"",classes:"",classPrefix:"",data:void 0,locale:void 0,selectAll:!0,single:void 0,singleRadio:!1,multiple:!1,hideOptgroupCheckboxes:!1,multipleWidth:80,width:void 0,size:void 0,dropWidth:void 0,maxHeight:250,maxHeightUnit:"px",position:"bottom",displayValues:!1,displayTitle:!1,displayDelimiter:", ",minimumCountSelected:3,ellipsis:!1,isOpen:!1,keepOpen:!1,openOnHover:!1,container:null,filter:!1,filterGroup:!1,filterPlaceholder:"",filterAcceptOnEnter:!1,filterByDataLength:void 0,customFilter:function(t){var e=t.text,n=t.label,i=t.search;return(n||e).includes(i)},showClear:!1,animate:void 0,styler:function(){return!1},textTemplate:function(t){return t[0].innerHTML.trim()},labelTemplate:function(t){return t[0].getAttribute("label")},onOpen:function(){return!1},onClose:function(){return!1},onCheckAll:function(){return!1},onUncheckAll:function(){return!1},onFocus:function(){return!1},onBlur:function(){return!1},onOptgroupClick:function(){return!1},onClick:function(){return!1},onFilter:function(){return!1},onClear:function(){return!1},onAfterCreate:function(){return!1}},Us={formatSelectAll:function(){return"[Select all]"},formatAllSelected:function(){return"All selected"},formatCountSelected:function(t,e){return"".concat(t," of ").concat(e," selected")},formatNoMatchesFound:function(){return"No matches found"}};Object.assign(Hs,Us);var Gs={VERSION:"1.6.0",BLOCK_ROWS:500,CLUSTER_BLOCKS:4,DEFAULTS:Hs,METHODS:["getOptions","refreshOptions","getData","getSelects","setSelects","enable","disable","open","close","check","uncheck","checkAll","uncheckAll","checkInvert","focus","blur","refresh","destroy"],LOCALES:{en:Us,"en-US":Us}},Ws=v,zs=Function.prototype,Ks=zs.apply,Vs=zs.call,Ys="object"==typeof Reflect&&Reflect.apply||(Ws?Vs.bind(Ks):function(){return Vs.apply(Ks,arguments)}),qs=es,Xs=Ft,Js=TypeError,Zs=Ne,Qs=function(t){if(qs(t))return t;throw Js(Xs(t)+" is not a constructor")},ta=H,ea=le("species"),na=B,ia=ci,ua=yu,ra=W,oa=na("".charAt),sa=na("".charCodeAt),aa=na("".slice),la=function(t){return function(e,n){var i,u,r=ua(ra(e)),o=ia(n),s=r.length;return o<0||o>=s?t?"":void 0:(i=sa(r,o))<55296||i>56319||o+1===s||(u=sa(r,o+1))<56320||u>57343?t?oa(r,o):i:t?aa(r,o,o+2):u-56320+(i-55296<<10)+65536}},ca={codeAt:la(!1),charAt:la(!0)}.charAt,ha=function(t,e,n){return e+(n?ca(t,e).length:1)},fa=pi,da=yi,pa=Ho,va=Array,ga=Math.max,Ea=Ys,ba=b,ya=B,ma=_r,Aa=Ne,Ca=H,Fa=ho,Sa=W,Da=function(t,e){var n,i=Zs(t).constructor;return void 0===i||ta(n=Zs(i)[ea])?e:Qs(n)},ka=ha,xa=Ei,$a=yu,Oa=wt,wa=function(t,e,n){for(var i=da(t),u=fa(e,i),r=fa(void 0===n?i:n,i),o=va(ga(r-u,0)),s=0;u1||"".split(/.?/).length?function(t,n){var i=$a(Sa(this)),u=void 0===n?Ia:n>>>0;if(0===u)return[];if(void 0===t)return[i];if(!Fa(t))return ba(e,i,t,u);for(var r,o,s,a=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),c=0,h=new RegExp(t.source,l+"g");(r=ba(ja,h,i))&&!((o=h.lastIndex)>c&&(Pa(a,Na(i,c,r.index)),r.length>1&&r.index=u));)h.lastIndex===r.index&&h.lastIndex++;return c===i.length?!s&&Ma(h,"")||Pa(a,""):Pa(a,Na(i,c)),a.length>u?wa(a,0,u):a}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:ba(e,this,t,n)}:e,[function(e,n){var u=Sa(this),r=Ca(e)?void 0:Oa(e,t);return r?ba(r,e,u,n):ba(i,$a(u),e,n)},function(t,u){var r=Aa(this),o=$a(t),s=n(i,r,o,u,i!==e);if(s.done)return s.value;var a=Da(r,RegExp),l=r.unicode,c=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(La?"g":"y"),h=new a(La?"^(?:"+r.source+")":r,c),f=void 0===u?Ia:u>>>0;if(0===f)return[];if(0===o.length)return null===Ba(h,o)?[o]:[];for(var d=0,p=0,v=[];pb;b++)if((s||b in v)&&(d=g(f=v[b],b,p),t))if(e)m[b]=d;else if(d)switch(t){case 3:return!0;case 5:return f;case 6:return b;case 2:fl(m,f)}else switch(t){case 4:return!1;case 7:fl(m,f)}return r?-1:i||u?u:m}},pl={forEach:dl(0),map:dl(1),filter:dl(2),some:dl(3),every:dl(4),find:dl(5),findIndex:dl(6),filterReject:dl(7)},vl=su,gl=pl.find,El=ro,bl="find",yl=!0;bl in[]&&Array(1)[bl]((function(){yl=!1})),vl({target:"Array",proto:!0,forced:yl},{find:function(t){return gl(this,t,arguments.length>1?arguments[1]:void 0)}}),El(bl);var ml=gu,Al=lu?{}.toString:function(){return"[object "+ml(this)+"]"};lu||ri(Object.prototype,"toString",Al,{unsafe:!0});var Cl=pl.map;su({target:"Array",proto:!0,forced:!fs("map")},{map:function(t){return Cl(this,t,arguments.length>1?arguments[1]:void 0)}});var Fl=p,Sl=B,Dl=Ou,kl=V,xl=Sl(y.f),$l=Sl([].push),Ol=function(t){return function(e){for(var n,i=kl(e),u=Dl(i),r=u.length,o=0,s=[];r>o;)n=u[o++],Fl&&!xl(i,n)||$l(s,t?[n,i[n]]:i[n]);return s}},wl={entries:Ol(!0),values:Ol(!1)}.entries;su({target:"Object",stat:!0},{entries:function(t){return wl(t)}});var Bl=Kt,jl=Ou;su({target:"Object",stat:!0,forced:d((function(){jl(1)}))},{keys:function(t){return jl(Bl(t))}});var Tl=pl.filter;su({target:"Array",proto:!0,forced:!fs("filter")},{filter:function(t){return Tl(this,t,arguments.length>1?arguments[1]:void 0)}});var Ll=Fe("span").classList,Il=Ll&&Ll.constructor&&Ll.constructor.prototype,Rl=Il===Object.prototype?void 0:Il,_l=pl.forEach,Ml=h,Pl={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Nl=Rl,Hl=Ua("forEach")?[].forEach:function(t){return _l(this,t,arguments.length>1?arguments[1]:void 0)},Ul=tn,Gl=function(t){if(t&&t.forEach!==Hl)try{Ul(t,"forEach",Hl)}catch(e){t.forEach=Hl}};for(var Wl in Pl)Pl[Wl]&&Gl(Ml[Wl]&&Ml[Wl].prototype);Gl(Nl);var zl=B([].slice),Kl=su,Vl=Ro,Yl=es,ql=tt,Xl=pi,Jl=yi,Zl=V,Ql=Ho,tc=le,ec=zl,nc=fs("slice"),ic=tc("species"),uc=Array,rc=Math.max;Kl({target:"Array",proto:!0,forced:!nc},{slice:function(t,e){var n,i,u,r=Zl(this),o=Jl(r),s=Xl(t,o),a=Xl(void 0===e?o:e,o);if(Vl(r)&&(n=r.constructor,(Yl(n)&&(n===uc||Vl(n.prototype))||ql(n)&&null===(n=n[ic]))&&(n=void 0),n===uc||void 0===n))return ec(r,s,a);for(i=new(void 0===n?uc:n)(rc(a-s,0)),u=0;s]*>)/g,pc=/\$([$&'`]|\d{1,2})/g,vc=Ys,gc=b,Ec=B,bc=_r,yc=d,mc=Ne,Ac=J,Cc=H,Fc=ci,Sc=Ei,Dc=yu,kc=W,xc=ha,$c=wt,Oc=function(t,e,n,i,u,r){var o=n+t.length,s=i.length,a=pc;return void 0!==u&&(u=ac(u),a=dc),hc(r,a,(function(r,a){var l;switch(cc(a,0)){case"$":return"$";case"&":return t;case"`":return fc(e,0,n);case"'":return fc(e,o);case"<":l=u[fc(a,1,-1)];break;default:var c=+a;if(0===c)return r;if(c>s){var h=lc(c/10);return 0===h?r:h<=s?void 0===i[h-1]?cc(a,1):i[h-1]+cc(a,1):r}l=i[c-1]}return void 0===l?"":l}))},wc=zr,Bc=le("replace"),jc=Math.max,Tc=Math.min,Lc=Ec([].concat),Ic=Ec([].push),Rc=Ec("".indexOf),_c=Ec("".slice),Mc="$0"==="a".replace(/./,"$0"),Pc=!!/./[Bc]&&""===/./[Bc]("a","$0");bc("replace",(function(t,e,n){var i=Pc?"$":"$0";return[function(t,n){var i=kc(this),u=Cc(t)?void 0:$c(t,Bc);return u?gc(u,t,i,n):gc(e,Dc(i),t,n)},function(t,u){var r=mc(this),o=Dc(t);if("string"==typeof u&&-1===Rc(u,i)&&-1===Rc(u,"$<")){var s=n(e,r,o,u);if(s.done)return s.value}var a=Ac(u);a||(u=Dc(u));var l=r.global;if(l){var c=r.unicode;r.lastIndex=0}for(var h=[];;){var f=wc(r,o);if(null===f)break;if(Ic(h,f),!l)break;""===Dc(f[0])&&(r.lastIndex=xc(o,Sc(r.lastIndex),c))}for(var d,p="",v=0,g=0;g=v&&(p+=_c(o,v,b)+F,v=b+E.length)}return p+_c(o,v)}]}),!!yc((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}))||!Mc||Pc);var Nc=xt,Hc=Kt,Uc=N,Gc=yi,Wc=TypeError,zc=function(t){return function(e,n,i,u){Nc(n);var r=Hc(e),o=Uc(r),s=Gc(r),a=t?s-1:0,l=t?-1:1;if(i<2)for(;;){if(a in o){u=o[a],a+=l;break}if(a+=l,t?a<0:s<=a)throw Wc("Reduce of empty array with no initial value")}for(;t?a>=0:s>a;a+=l)a in o&&(u=n(u,o[a],a,r));return u}},Kc={left:zc(!1),right:zc(!0)},Vc="undefined"!=typeof process&&"process"==I(process),Yc=Kc.left;su({target:"Array",proto:!0,forced:!Vc&&ht>79&&ht<83||!Ua("reduce")},{reduce:function(t){var e=arguments.length;return Yc(this,t,e,e>1?arguments[1]:void 0)}});var qc=function(t){if(t.normalize)return t.normalize("NFD").replace(/[\u0300-\u036F]/g,"");return[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}].reduce((function(t,e){var n=e.letters,i=e.base;return t.replace(n,i)}),t)},Xc=function(t,e,n){var i,u=a(t);try{for(u.s();!(i=u.n()).done;){var r=i.value;if(r[e]===n||r[e]==="".concat(+r[e])&&+r[e]===n)return r;if("optgroup"===r.type){var o,s=a(r.children);try{for(s.s();!(o=s.n()).done;){var l=o.value;if(l[e]===n||l[e]==="".concat(+l[e])&&+l[e]===n)return l}}catch(t){s.e(t)}finally{s.f()}}}}catch(t){u.e(t)}finally{u.f()}},Jc=function(t){return Object.keys(t).forEach((function(e){return void 0===t[e]?delete t[e]:""})),t},Zc=function(){function n(t,i){e(this,n),this.$el=t,this.options=$.extend({},Gs.DEFAULTS,i)}return i(n,[{key:"init",value:function(){this.initLocale(),this.initContainer(),this.initData(),this.initSelected(!0),this.initFilter(),this.initDrop(),this.initView(),this.options.onAfterCreate()}},{key:"initLocale",value:function(){if(this.options.locale){var t=$.fn.multipleSelect.locales,e=this.options.locale.split(/-|_/);e[0]=e[0].toLowerCase(),e[1]&&(e[1]=e[1].toUpperCase()),t[this.options.locale]?$.extend(this.options,t[this.options.locale]):t[e.join("-")]?$.extend(this.options,t[e.join("-")]):t[e[0]]&&$.extend(this.options,t[e[0]])}}},{key:"initContainer",value:function(){var t=this,e=this.$el[0],n=e.getAttribute("name")||this.options.name||"";this.options.classes&&this.$el.addClass(this.options.classes),this.options.classPrefix&&(this.$el.addClass(this.options.classPrefix),this.options.size&&this.$el.addClass("".concat(this.options.classPrefix,"-").concat(this.options.size))),this.$el.hide(),this.$label=this.$el.closest("label"),!this.$label.length&&this.$el.attr("id")&&(this.$label=$('label[for="'.concat(this.$el.attr("id"),'"]'))),this.$label.find(">input").length&&(this.$label=null),void 0===this.options.single&&(this.options.single=null===e.getAttribute("multiple")),this.$parent=$('\n
    \n ')),this.options.placeholder=this.options.placeholder||e.getAttribute("placeholder")||"",this.tabIndex=e.getAttribute("tabindex");var i="";if(null!==this.tabIndex&&(this.$el.attr("tabindex",-1),i=this.tabIndex&&'tabindex="'.concat(this.tabIndex,'"')),this.$choice=$('\n \n ')),this.$drop=$('
    ')),this.$close=this.$choice.find(".icon-close"),this.options.dropWidth&&this.$drop.css("width",this.options.dropWidth),this.$el.after(this.$parent),this.$parent.append(this.$choice),this.$parent.append(this.$drop),e.disabled&&this.$choice.addClass("disabled"),this.selectAllName='data-name="selectAll'.concat(n,'"'),this.selectGroupName='data-name="selectGroup'.concat(n,'"'),this.selectItemName='data-name="selectItem'.concat(n,'"'),!this.options.keepOpen){var u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t=t||"".concat(+new Date).concat(~~(1e6*Math.random())),"click.multiple-select-".concat(t)}(this.$el.attr("id"));$(document).off(u).on(u,(function(n){$(n.target)[0]!==t.$choice[0]&&$(n.target).parents(".ms-choice")[0]!==t.$choice[0]&&($(n.target)[0]===t.$drop[0]||$(n.target).parents(".ms-drop")[0]!==t.$drop[0]&&n.target!==e)&&t.options.isOpen&&t.close()}))}}},{key:"initData",value:function(){var e=this,n=[];if(this.options.data){if(Array.isArray(this.options.data))this.data=this.options.data.map((function(t){return"string"==typeof t||"number"==typeof t?{text:t,value:t}:t}));else if("object"===t(this.options.data)){for(var i=0,r=Object.entries(this.options.data);ithis.options.filterByDataLength}}},{key:"initDrop",value:function(){var t=this;this.initList(),this.update(!0),this.options.isOpen&&setTimeout((function(){t.open()}),50),this.options.openOnHover&&this.$parent.hover((function(){t.open()}),(function(){t.close()}))}},{key:"initList",value:function(){var t=[];this.options.filter&&t.push('\n \n ')),t.push("
      "),this.$drop.html(t.join("")),this.$ul=this.$drop.find(">ul"),this.initListItems()}},{key:"initListItems",value:function(){var t=this,e=this.getListRows(),n=0;if(this.options.selectAll&&!this.options.single&&(n=-1),e.length>Gs.BLOCK_ROWS*Gs.CLUSTER_BLOCKS){this.virtualScroll&&this.virtualScroll.destroy();var i=this.$drop.is(":visible");i||this.$drop.css("left",-1e4).show();var u=function(){t.updateDataStart=t.virtualScroll.dataStart+n,t.updateDataEnd=t.virtualScroll.dataEnd+n,t.updateDataStart<0&&(t.updateDataStart=0),t.updateDataEnd>t.data.length&&(t.updateDataEnd=t.data.length)};this.virtualScroll=new oc({rows:e,scrollEl:this.$ul[0],contentEl:this.$ul[0],callback:function(){u(),t.events()}}),u(),i||this.$drop.css("left",0).hide()}else this.$ul.html(e.join("")),this.updateDataStart=0,this.updateDataEnd=this.updateData.length,this.virtualScroll=null;this.events()}},{key:"getListRows",value:function(){var t=this,e=[];return this.options.selectAll&&!this.options.single&&e.push('\n
    • \n \n
    • \n ")),this.updateData=[],this.data.forEach((function(n){e.push.apply(e,r(t.initListItem(n)))})),e.push('
    • '.concat(this.options.formatNoMatchesFound(),"
    • ")),e}},{key:"initListItem",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=t.title?'title="'.concat(t.title,'"'):"",u=this.options.multiple?"multiple":"",o=this.options.single?"radio":"checkbox",s="";if(!t.visible)return[];if(this.updateData.push(t),this.options.single&&!this.options.singleRadio&&(s="hide-radio "),t.selected&&(s+="selected "),"optgroup"===t.type){var a=this.options.styler(t),l=a?'style="'.concat(a,'"'):"",c=[],h=this.options.hideOptgroupCheckboxes||this.options.single?"'):'");return s.includes("hide-radio")||!this.options.hideOptgroupCheckboxes&&!this.options.single||(s+="hide-radio "),c.push('\n
    • \n \n
    • \n ")),t.children.forEach((function(t){c.push.apply(c,r(e.initListItem(t,1)))})),c}var f=this.options.styler(t),d=f?'style="'.concat(f,'"'):"";return s+=t.classes||"",n&&this.options.single&&(s+="option-level-".concat(n," ")),t.divider?'
    • ':['\n
    • \n \n
    • \n ")]}},{key:"events",value:function(){var t=this;this.$searchInput=this.$drop.find(".ms-search input"),this.$selectAll=this.$drop.find("input[".concat(this.selectAllName,"]")),this.$selectGroups=this.$drop.find("input[".concat(this.selectGroupName,"],span[").concat(this.selectGroupName,"]")),this.$selectItems=this.$drop.find("input[".concat(this.selectItemName,"]:enabled")),this.$disableItems=this.$drop.find("input[".concat(this.selectItemName,"]:disabled")),this.$noResults=this.$drop.find(".ms-no-results");var e=function(e){e.preventDefault(),$(e.target).hasClass("icon-close")||t[t.options.isOpen?"close":"open"]()};this.$label&&this.$label.length&&this.$label.off("click").on("click",(function(n){"label"===n.target.nodeName.toLowerCase()&&(e(n),t.options.filter&&t.options.isOpen||t.focus(),n.stopPropagation())})),this.$choice.off("click").on("click",e).off("focus").on("focus",this.options.onFocus).off("blur").on("blur",this.options.onBlur),this.$parent.off("keydown").on("keydown",(function(e){27!==e.which||t.options.keepOpen||(t.close(),t.$choice.focus())})),this.$close.off("click").on("click",(function(e){e.preventDefault(),t._checkAll(!1,!0),t.initSelected(!1),t.updateSelected(),t.update(),t.options.onClear()})),this.$searchInput.off("keydown").on("keydown",(function(e){9===e.keyCode&&e.shiftKey&&t.close()})).off("keyup").on("keyup",(function(e){if(t.options.filterAcceptOnEnter&&[13,32].includes(e.which)&&t.$searchInput.val()){if(t.options.single){var n=t.$selectItems.closest("li").filter(":visible");n.length&&t.setSelects([n.first().find("input[".concat(t.selectItemName,"]")).val()])}else t.$selectAll.click();return t.close(),void t.focus()}t.filter()})),this.$selectAll.off("click").on("click",(function(e){t._checkAll($(e.currentTarget).prop("checked"))})),this.$selectGroups.off("click").on("click",(function(e){var n=$(e.currentTarget),i=n.prop("checked"),u=Xc(t.data,"_key",n.data("key"));t._checkGroup(u,i),t.options.onOptgroupClick(Jc({label:u.label,selected:u.selected,data:u._data,children:u.children.map((function(t){return Jc({text:t.text,value:t.value,selected:t.selected,disabled:t.disabled,data:t._data})}))}))})),this.$selectItems.off("click").on("click",(function(e){var n=$(e.currentTarget),i=n.prop("checked"),u=Xc(t.data,"_key",n.data("key"));t._check(u,i),t.options.onClick(Jc({text:u.text,value:u.value,selected:u.selected,data:u._data})),t.options.single&&t.options.isOpen&&!t.options.keepOpen&&t.close()}))}},{key:"initView",value:function(){var t;window.getComputedStyle?"auto"===(t=window.getComputedStyle(this.$el[0]).width)&&(t=this.$drop.outerWidth()+20):t=this.$el.outerWidth()+20,this.$parent.css("width",this.options.width||t),this.$el.show().addClass("ms-offscreen")}},{key:"open",value:function(){if(!this.$choice.hasClass("disabled")){if(this.options.isOpen=!0,this.$parent.addClass("ms-parent-open"),this.$choice.find(">div").addClass("open"),this.$drop[this.animateMethod("show")](),this.$selectAll.parent().show(),this.$noResults.hide(),this.data.length||(this.$selectAll.parent().hide(),this.$noResults.show()),this.options.container){var t=this.$drop.offset();this.$drop.appendTo($(this.options.container)),this.$drop.offset({top:t.top,left:t.left}).css("min-width","auto").outerWidth(this.$parent.outerWidth())}var e=this.options.maxHeight;"row"===this.options.maxHeightUnit&&(e=this.$drop.find(">ul>li").first().outerHeight()*this.options.maxHeight),this.$drop.find(">ul").css("max-height","".concat(e,"px")),this.$drop.find(".multiple").css("width","".concat(this.options.multipleWidth,"px")),this.data.length&&this.options.filter&&(this.$searchInput.val(""),this.$searchInput.focus(),this.filter(!0)),this.options.onOpen()}}},{key:"close",value:function(){this.options.isOpen=!1,this.$parent.removeClass("ms-parent-open"),this.$choice.find(">div").removeClass("open"),this.$drop[this.animateMethod("hide")](),this.options.container&&(this.$parent.append(this.$drop),this.$drop.css({top:"auto",left:"auto"})),this.options.onClose()}},{key:"animateMethod",value:function(t){return{show:{fade:"fadeIn",slide:"slideDown"},hide:{fade:"fadeOut",slide:"slideUp"}}[t][this.options.animate]||t}},{key:"update",value:function(t){var e=this.getSelects(),n=this.getSelects("text");this.options.displayValues&&(n=e);var i=this.$choice.find(">span"),u=e.length,r="";0===u?i.addClass("placeholder").html(this.options.placeholder):r=uthis.options.minimumCountSelected?"".concat(n.slice(0,this.options.minimumCountSelected).join(this.options.displayDelimiter),"..."):this.options.formatCountSelected()&&u>this.options.minimumCountSelected?this.options.formatCountSelected(u,this.dataTotal):n.join(this.options.displayDelimiter),r&&i.removeClass("placeholder").html(r),this.options.displayTitle&&i.prop("title",this.getSelects("text")),this.$el.val(this.getSelects()),t||this.$el.trigger("change")}},{key:"updateSelected",value:function(){for(var t=this.updateDataStart;t0&&void 0!==arguments[0]?arguments[0]:"value",n=[],i=a(this.data);try{for(i.s();!(t=i.n()).done;){var u=t.value;if("optgroup"===u.type){var o=u.children.filter((function(t){return t.selected}));if(!o.length)continue;if("value"===e||this.options.single)n.push.apply(n,r(o.map((function(t){return"value"===e&&t._value||t[e]}))));else{var s=[];s.push("["),s.push(u.label),s.push(": ".concat(o.map((function(t){return t[e]})).join(", "))),s.push("]"),n.push(s.join(""))}}else u.selected&&n.push("value"===e&&u._value||u[e])}}catch(t){i.e(t)}finally{i.f()}return n}},{key:"setSelects",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],u=!1,r=function(e){var i,r=a(e);try{for(r.s();!(i=r.n()).done;){var o=i.value,s=!1;"text"===n?s=t.includes($("
      ").html(o.text).text().trim()):(s=t.includes(o._value||o.value))||o.value!=="".concat(+o.value)||(s=t.includes(+o.value)),o.selected!==s&&(u=!0),o.selected=s}}catch(t){r.e(t)}finally{r.f()}},o=a(this.data);try{for(o.s();!(e=o.n()).done;){var s=e.value;"optgroup"===s.type?r(s.children):r([s])}}catch(t){o.e(t)}finally{o.f()}u&&(this.initSelected(i),this.updateSelected(),this.update(i))}},{key:"enable",value:function(){this.$choice.removeClass("disabled")}},{key:"disable",value:function(){this.$choice.addClass("disabled")}},{key:"check",value:function(t){var e=Xc(this.data,"value",t);e&&this._check(e,!0)}},{key:"uncheck",value:function(t){var e=Xc(this.data,"value",t);e&&this._check(e,!1)}},{key:"_check",value:function(t,e){this.options.single&&this._checkAll(!1,!0),t.selected=e,this.initSelected(),this.updateSelected(),this.update()}},{key:"checkAll",value:function(){this._checkAll(!0)}},{key:"uncheckAll",value:function(){this._checkAll(!1)}},{key:"_checkAll",value:function(t,e){var n,i=a(this.data);try{for(i.s();!(n=i.n()).done;){var u=n.value;"optgroup"===u.type?this._checkGroup(u,t,!0):u.disabled||u.divider||!e&&!u.visible||(u.selected=t)}}catch(t){i.e(t)}finally{i.f()}e||(this.initSelected(),this.updateSelected(),this.update())}},{key:"_checkGroup",value:function(t,e,n){t.selected=e,t.children.forEach((function(t){t.disabled||t.divider||!n&&!t.visible||(t.selected=e)})),n||(this.initSelected(),this.updateSelected(),this.update())}},{key:"checkInvert",value:function(){if(!this.options.single){var t,e=a(this.data);try{for(e.s();!(t=e.n()).done;){var n=t.value;if("optgroup"===n.type){var i,u=a(n.children);try{for(u.s();!(i=u.n()).done;){var r=i.value;r.divider||(r.selected=!r.selected)}}catch(t){u.e(t)}finally{u.f()}}else n.divider||(n.selected=!n.selected)}}catch(t){e.e(t)}finally{e.f()}this.initSelected(),this.updateSelected(),this.update()}}},{key:"focus",value:function(){this.$choice.focus(),this.options.onFocus()}},{key:"blur",value:function(){this.$choice.blur(),this.options.onBlur()}},{key:"refresh",value:function(){this.destroy(),this.init()}},{key:"filter",value:function(t){var e=$.trim(this.$searchInput.val()),n=e.toLowerCase();if(this.filterText!==n){this.filterText=n;var i,u=a(this.data);try{for(u.s();!(i=u.n()).done;){var r=i.value;if("optgroup"===r.type)if(this.options.filterGroup){var o=this.options.customFilter({label:qc(r.label.toLowerCase()),search:qc(n),originalLabel:r.label,originalSearch:e,row:r});r.visible=o;var s,l=a(r.children);try{for(l.s();!(s=l.n()).done;){s.value.visible=o}}catch(t){l.e(t)}finally{l.f()}}else{var c,h=a(r.children);try{for(h.s();!(c=h.n()).done;){var f=c.value;f.visible=this.options.customFilter({text:qc(f.text.toLowerCase()),search:qc(n),originalText:f.text,originalSearch:e,row:f,parent:r})}}catch(t){h.e(t)}finally{h.f()}r.visible=r.children.filter((function(t){return t.visible})).length>0}else r.visible=this.options.customFilter({text:qc(r.text.toLowerCase()),search:qc(n),originalText:r.text,originalSearch:e,row:r})}}catch(t){u.e(t)}finally{u.f()}this.initListItems(),this.initSelected(t),this.updateSelected(),t||this.options.onFilter(n)}}},{key:"destroy",value:function(){this.$parent&&(this.$el.before(this.$parent).removeClass("ms-offscreen"),null!==this.tabIndex&&this.$el.attr("tabindex",this.tabIndex),this.$parent.remove(),this.fromHtml&&(delete this.options.data,this.fromHtml=!1))}}]),n}();$.fn.multipleSelect=function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),u=1;ut.length)&&(e=t.length);for(var n=0,i=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,u=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw u}}}}var l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},c=function(t){return t&&t.Math==Math&&t},h=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof l&&l)||function(){return this}()||l||Function("return this")(),f={},d=function(t){try{return!!t()}catch(t){return!0}},p=!d((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),v=!d((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),g=v,E=Function.prototype.call,b=g?E.bind(E):function(){return E.apply(E,arguments)},y={},m={}.propertyIsEnumerable,A=Object.getOwnPropertyDescriptor,C=A&&!m.call({1:2},1);y.f=C?function(t){var e=A(this,t);return!!e&&e.enumerable}:m;var F,S,k=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},D=v,x=Function.prototype,w=x.call,O=D&&x.bind.bind(w,w),B=D?O:function(t){return function(){return w.apply(t,arguments)}},j=B,T=j({}.toString),L=j("".slice),I=function(t){return L(T(t),8,-1)},R=d,_=I,M=Object,P=B("".split),N=R((function(){return!M("z").propertyIsEnumerable(0)}))?function(t){return"String"==_(t)?P(t,""):M(t)}:M,H=function(t){return null==t},U=H,G=TypeError,W=function(t){if(U(t))throw G("Can't call method on "+t);return t},z=N,K=W,V=function(t){return z(K(t))},Y="object"==typeof document&&document.all,q={all:Y,IS_HTMLDDA:void 0===Y&&void 0!==Y},X=q.all,J=q.IS_HTMLDDA?function(t){return"function"==typeof t||t===X}:function(t){return"function"==typeof t},Z=J,Q=q.all,tt=q.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:Z(t)||t===Q}:function(t){return"object"==typeof t?null!==t:Z(t)},et=h,nt=J,it=function(t,e){return arguments.length<2?(n=et[t],nt(n)?n:void 0):et[t]&&et[t][e];var n},rt=B({}.isPrototypeOf),ut=h,ot="undefined"!=typeof navigator&&String(navigator.userAgent)||"",st=ut.process,at=ut.Deno,lt=st&&st.versions||at&&at.version,ct=lt&<.v8;ct&&(S=(F=ct.split("."))[0]>0&&F[0]<4?1:+(F[0]+F[1])),!S&&ot&&(!(F=ot.match(/Edge\/(\d+)/))||F[1]>=74)&&(F=ot.match(/Chrome\/(\d+)/))&&(S=+F[1]);var ht=S,ft=ht,dt=d,pt=h.String,vt=!!Object.getOwnPropertySymbols&&!dt((function(){var t=Symbol();return!pt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&ft&&ft<41})),gt=vt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Et=it,bt=J,yt=rt,mt=Object,At=gt?function(t){return"symbol"==typeof t}:function(t){var e=Et("Symbol");return bt(e)&&yt(e.prototype,mt(t))},Ct=String,Ft=function(t){try{return Ct(t)}catch(t){return"Object"}},St=J,kt=Ft,Dt=TypeError,xt=function(t){if(St(t))return t;throw Dt(kt(t)+" is not a function")},$t=xt,wt=H,Ot=function(t,e){var n=t[e];return wt(n)?void 0:$t(n)},Bt=b,jt=J,Tt=tt,Lt=TypeError,It={exports:{}},Rt=h,_t=Object.defineProperty,Mt=function(t,e){try{_t(Rt,t,{value:e,configurable:!0,writable:!0})}catch(n){Rt[t]=e}return e},Pt=Mt,Nt="__core-js_shared__",Ht=h[Nt]||Pt(Nt,{}),Ut=Ht;(It.exports=function(t,e){return Ut[t]||(Ut[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.30.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Gt=It.exports,Wt=W,zt=Object,Kt=function(t){return zt(Wt(t))},Vt=Kt,Yt=B({}.hasOwnProperty),qt=Object.hasOwn||function(t,e){return Yt(Vt(t),e)},Xt=B,Jt=0,Zt=Math.random(),Qt=Xt(1..toString),te=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Qt(++Jt+Zt,36)},ee=Gt,ne=qt,ie=te,re=vt,ue=gt,oe=h.Symbol,se=ee("wks"),ae=ue?oe.for||oe:oe&&oe.withoutSetter||ie,le=function(t){return ne(se,t)||(se[t]=re&&ne(oe,t)?oe[t]:ae("Symbol."+t)),se[t]},ce=b,he=tt,fe=At,de=Ot,pe=function(t,e){var n,i;if("string"===e&&jt(n=t.toString)&&!Tt(i=Bt(n,t)))return i;if(jt(n=t.valueOf)&&!Tt(i=Bt(n,t)))return i;if("string"!==e&&jt(n=t.toString)&&!Tt(i=Bt(n,t)))return i;throw Lt("Can't convert object to primitive value")},ve=TypeError,ge=le("toPrimitive"),Ee=function(t,e){if(!he(t)||fe(t))return t;var n,i=de(t,ge);if(i){if(void 0===e&&(e="default"),n=ce(i,t,e),!he(n)||fe(n))return n;throw ve("Can't convert object to primitive value")}return void 0===e&&(e="number"),pe(t,e)},be=At,ye=function(t){var e=Ee(t,"string");return be(e)?e:e+""},me=tt,Ae=h.document,Ce=me(Ae)&&me(Ae.createElement),Fe=function(t){return Ce?Ae.createElement(t):{}},Se=Fe,ke=!p&&!d((function(){return 7!=Object.defineProperty(Se("div"),"a",{get:function(){return 7}}).a})),De=p,xe=b,$e=y,we=k,Oe=V,Be=ye,je=qt,Te=ke,Le=Object.getOwnPropertyDescriptor;f.f=De?Le:function(t,e){if(t=Oe(t),e=Be(e),Te)try{return Le(t,e)}catch(t){}if(je(t,e))return we(!xe($e.f,t,e),t[e])};var Ie={},Re=p&&d((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),_e=tt,Me=String,Pe=TypeError,Ne=function(t){if(_e(t))return t;throw Pe(Me(t)+" is not an object")},He=p,Ue=ke,Ge=Re,We=Ne,ze=ye,Ke=TypeError,Ve=Object.defineProperty,Ye=Object.getOwnPropertyDescriptor,qe="enumerable",Xe="configurable",Je="writable";Ie.f=He?Ge?function(t,e,n){if(We(t),e=ze(e),We(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Je in n&&!n[Je]){var i=Ye(t,e);i&&i[Je]&&(t[e]=n.value,n={configurable:Xe in n?n[Xe]:i[Xe],enumerable:qe in n?n[qe]:i[qe],writable:!1})}return Ve(t,e,n)}:Ve:function(t,e,n){if(We(t),e=ze(e),We(n),Ue)try{return Ve(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Ke("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var Ze=Ie,Qe=k,tn=p?function(t,e,n){return Ze.f(t,e,Qe(1,n))}:function(t,e,n){return t[e]=n,t},en={exports:{}},nn=p,rn=qt,un=Function.prototype,on=nn&&Object.getOwnPropertyDescriptor,sn=rn(un,"name"),an={EXISTS:sn,PROPER:sn&&"something"===function(){}.name,CONFIGURABLE:sn&&(!nn||nn&&on(un,"name").configurable)},ln=J,cn=Ht,hn=B(Function.toString);ln(cn.inspectSource)||(cn.inspectSource=function(t){return hn(t)});var fn,dn,pn,vn=cn.inspectSource,gn=J,En=h.WeakMap,bn=gn(En)&&/native code/.test(String(En)),yn=te,mn=Gt("keys"),An=function(t){return mn[t]||(mn[t]=yn(t))},Cn={},Fn=bn,Sn=h,kn=tt,Dn=tn,xn=qt,$n=Ht,wn=An,On=Cn,Bn="Object already initialized",jn=Sn.TypeError,Tn=Sn.WeakMap;if(Fn||$n.state){var Ln=$n.state||($n.state=new Tn);Ln.get=Ln.get,Ln.has=Ln.has,Ln.set=Ln.set,fn=function(t,e){if(Ln.has(t))throw jn(Bn);return e.facade=t,Ln.set(t,e),e},dn=function(t){return Ln.get(t)||{}},pn=function(t){return Ln.has(t)}}else{var In=wn("state");On[In]=!0,fn=function(t,e){if(xn(t,In))throw jn(Bn);return e.facade=t,Dn(t,In,e),e},dn=function(t){return xn(t,In)?t[In]:{}},pn=function(t){return xn(t,In)}}var Rn={set:fn,get:dn,has:pn,enforce:function(t){return pn(t)?dn(t):fn(t,{})},getterFor:function(t){return function(e){var n;if(!kn(e)||(n=dn(e)).type!==t)throw jn("Incompatible receiver, "+t+" required");return n}}},_n=B,Mn=d,Pn=J,Nn=qt,Hn=p,Un=an.CONFIGURABLE,Gn=vn,Wn=Rn.enforce,zn=Rn.get,Kn=String,Vn=Object.defineProperty,Yn=_n("".slice),qn=_n("".replace),Xn=_n([].join),Jn=Hn&&!Mn((function(){return 8!==Vn((function(){}),"length",{value:8}).length})),Zn=String(String).split("String"),Qn=en.exports=function(t,e,n){"Symbol("===Yn(Kn(e),0,7)&&(e="["+qn(Kn(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!Nn(t,"name")||Un&&t.name!==e)&&(Hn?Vn(t,"name",{value:e,configurable:!0}):t.name=e),Jn&&n&&Nn(n,"arity")&&t.length!==n.arity&&Vn(t,"length",{value:n.arity});try{n&&Nn(n,"constructor")&&n.constructor?Hn&&Vn(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var i=Wn(t);return Nn(i,"source")||(i.source=Xn(Zn,"string"==typeof e?e:"")),t};Function.prototype.toString=Qn((function(){return Pn(this)&&zn(this).source||Gn(this)}),"toString");var ti=en.exports,ei=J,ni=Ie,ii=ti,ri=Mt,ui=function(t,e,n,i){i||(i={});var r=i.enumerable,u=void 0!==i.name?i.name:e;if(ei(n)&&ii(n,u,i),i.global)r?t[e]=n:ri(e,n);else{try{i.unsafe?t[e]&&(r=!0):delete t[e]}catch(t){}r?t[e]=n:ni.f(t,e,{value:n,enumerable:!1,configurable:!i.nonConfigurable,writable:!i.nonWritable})}return t},oi={},si=Math.ceil,ai=Math.floor,li=Math.trunc||function(t){var e=+t;return(e>0?ai:si)(e)},ci=function(t){var e=+t;return e!=e||0===e?0:li(e)},hi=ci,fi=Math.max,di=Math.min,pi=function(t,e){var n=hi(t);return n<0?fi(n+e,0):di(n,e)},vi=ci,gi=Math.min,Ei=function(t){return t>0?gi(vi(t),9007199254740991):0},bi=Ei,yi=function(t){return bi(t.length)},mi=V,Ai=pi,Ci=yi,Fi=function(t){return function(e,n,i){var r,u=mi(e),o=Ci(u),s=Ai(i,o);if(t&&n!=n){for(;o>s;)if((r=u[s++])!=r)return!0}else for(;o>s;s++)if((t||s in u)&&u[s]===n)return t||s||0;return!t&&-1}},Si={includes:Fi(!0),indexOf:Fi(!1)},ki=qt,Di=V,xi=Si.indexOf,$i=Cn,wi=B([].push),Oi=function(t,e){var n,i=Di(t),r=0,u=[];for(n in i)!ki($i,n)&&ki(i,n)&&wi(u,n);for(;e.length>r;)ki(i,n=e[r++])&&(~xi(u,n)||wi(u,n));return u},Bi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ji=Oi,Ti=Bi.concat("length","prototype");oi.f=Object.getOwnPropertyNames||function(t){return ji(t,Ti)};var Li={};Li.f=Object.getOwnPropertySymbols;var Ii=it,Ri=oi,_i=Li,Mi=Ne,Pi=B([].concat),Ni=Ii("Reflect","ownKeys")||function(t){var e=Ri.f(Mi(t)),n=_i.f;return n?Pi(e,n(t)):e},Hi=qt,Ui=Ni,Gi=f,Wi=Ie,zi=d,Ki=J,Vi=/#|\.prototype\./,Yi=function(t,e){var n=Xi[qi(t)];return n==Zi||n!=Ji&&(Ki(e)?zi(e):!!e)},qi=Yi.normalize=function(t){return String(t).replace(Vi,".").toLowerCase()},Xi=Yi.data={},Ji=Yi.NATIVE="N",Zi=Yi.POLYFILL="P",Qi=Yi,tr=h,er=f.f,nr=tn,ir=ui,rr=Mt,ur=function(t,e,n){for(var i=Ui(e),r=Wi.f,u=Gi.f,o=0;oo;)Tr.f(t,n=r[o++],i[n]);return t};var _r,Mr=it("document","documentElement"),Pr=Ne,Nr=xr,Hr=Bi,Ur=Cn,Gr=Mr,Wr=Fe,zr="prototype",Kr="script",Vr=An("IE_PROTO"),Yr=function(){},qr=function(t){return"<"+Kr+">"+t+""},Xr=function(t){t.write(qr("")),t.close();var e=t.parentWindow.Object;return t=null,e},Jr=function(){try{_r=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;Jr="undefined"!=typeof document?document.domain&&_r?Xr(_r):(e=Wr("iframe"),n="java"+Kr+":",e.style.display="none",Gr.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(qr("document.F=Object")),t.close(),t.F):Xr(_r);for(var i=Hr.length;i--;)delete Jr[zr][Hr[i]];return Jr()};Ur[Vr]=!0;var Zr,Qr,tu=Object.create||function(t,e){var n;return null!==t?(Yr[zr]=Pr(t),n=new Yr,Yr[zr]=null,n[Vr]=t):n=Jr(),void 0===e?n:Nr.f(n,e)},eu=d,nu=h.RegExp,iu=eu((function(){var t=nu(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),ru=d,uu=h.RegExp,ou=ru((function(){var t=uu("(?b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")})),su=b,au=B,lu=yr,cu=Ar,hu=Dr,fu=tu,du=Rn.get,pu=iu,vu=ou,gu=Gt("native-string-replace",String.prototype.replace),Eu=RegExp.prototype.exec,bu=Eu,yu=au("".charAt),mu=au("".indexOf),Au=au("".replace),Cu=au("".slice),Fu=(Qr=/b*/g,su(Eu,Zr=/a/,"a"),su(Eu,Qr,"a"),0!==Zr.lastIndex||0!==Qr.lastIndex),Su=hu.BROKEN_CARET,ku=void 0!==/()??/.exec("")[1];(Fu||ku||Su||pu||vu)&&(bu=function(t){var e,n,i,r,u,o,s,a=this,l=du(a),c=lu(t),h=l.raw;if(h)return h.lastIndex=a.lastIndex,e=su(bu,h,c),a.lastIndex=h.lastIndex,e;var f=l.groups,d=Su&&a.sticky,p=su(cu,a),v=a.source,g=0,E=c;if(d&&(p=Au(p,"y",""),-1===mu(p,"g")&&(p+="g"),E=Cu(c,a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==yu(c,a.lastIndex-1))&&(v="(?: "+v+")",E=" "+E,g++),n=new RegExp("^(?:"+v+")",p)),ku&&(n=new RegExp("^"+v+"$(?!\\s)",p)),Fu&&(i=a.lastIndex),r=su(Eu,d?n:a,E),d?r?(r.input=Cu(r.input,g),r[0]=Cu(r[0],g),r.index=a.lastIndex,a.lastIndex+=r[0].length):a.lastIndex=0:Fu&&r&&(a.lastIndex=a.global?r.index+r[0].length:i),ku&&r&&r.length>1&&su(gu,r[0],n,(function(){for(u=1;u1?arguments[1]:void 0)}}),ao("includes");var lo=tt,co=I,ho=le("match"),fo=function(t){var e;return lo(t)&&(void 0!==(e=t[ho])?!!e:"RegExp"==co(t))},po=fo,vo=TypeError,go=le("match"),Eo=sr,bo=function(t){if(po(t))throw vo("The method doesn't accept regular expressions");return t},yo=W,mo=yr,Ao=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[go]=!1,"/./"[t](e)}catch(t){}}return!1},Co=B("".indexOf);Eo({target:"String",proto:!0,forced:!Ao("includes")},{includes:function(t){return!!~Co(mo(yo(this)),mo(bo(t)),arguments.length>1?arguments[1]:void 0)}});var Fo="\t\n\v\f\r                 \u2028\u2029\ufeff",So=W,ko=yr,Do=Fo,xo=B("".replace),$o=RegExp("^["+Do+"]+"),wo=RegExp("(^|[^"+Do+"])["+Do+"]+$"),Oo=function(t){return function(e){var n=ko(So(e));return 1&t&&(n=xo(n,$o,"")),2&t&&(n=xo(n,wo,"$1")),n}},Bo={start:Oo(1),end:Oo(2),trim:Oo(3)},jo=an.PROPER,To=d,Lo=Fo,Io=Bo.trim;sr({target:"String",proto:!0,forced:function(t){return To((function(){return!!Lo[t]()||"​…᠎"!=="​…᠎"[t]()||jo&&Lo[t].name!==t}))}("trim")},{trim:function(){return Io(this)}});var Ro=I,_o=Array.isArray||function(t){return"Array"==Ro(t)},Mo=TypeError,Po=ye,No=Ie,Ho=k,Uo=function(t,e,n){var i=Po(e);i in t?No.f(t,i,Ho(0,n)):t[i]=n},Go=B,Wo=d,zo=J,Ko=gr,Vo=vn,Yo=function(){},qo=[],Xo=it("Reflect","construct"),Jo=/^\s*(?:class|function)\b/,Zo=Go(Jo.exec),Qo=!Jo.exec(Yo),ts=function(t){if(!zo(t))return!1;try{return Xo(Yo,qo,t),!0}catch(t){return!1}},es=function(t){if(!zo(t))return!1;switch(Ko(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Qo||!!Zo(Jo,Vo(t))}catch(t){return!0}};es.sham=!0;var ns=!Xo||Wo((function(){var t;return ts(ts.call)||!ts(Object)||!ts((function(){t=!0}))||t}))?es:ts,is=_o,rs=ns,us=tt,os=le("species"),ss=Array,as=function(t){var e;return is(t)&&(e=t.constructor,(rs(e)&&(e===ss||is(e.prototype))||us(e)&&null===(e=e[os]))&&(e=void 0)),void 0===e?ss:e},ls=function(t,e){return new(as(t))(0===e?0:e)},cs=d,hs=ht,fs=le("species"),ds=function(t){return hs>=51||!cs((function(){var e=[];return(e.constructor={})[fs]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},ps=sr,vs=d,gs=_o,Es=tt,bs=Kt,ys=yi,ms=function(t){if(t>9007199254740991)throw Mo("Maximum allowed index exceeded");return t},As=Uo,Cs=ls,Fs=ds,Ss=ht,ks=le("isConcatSpreadable"),Ds=Ss>=51||!vs((function(){var t=[];return t[ks]=!1,t.concat()[0]!==t})),xs=function(t){if(!Es(t))return!1;var e=t[ks];return void 0!==e?!!e:gs(t)};ps({target:"Array",proto:!0,arity:1,forced:!Ds||!Fs("concat")},{concat:function(t){var e,n,i,r,u,o=bs(this),s=Cs(o,0),a=0;for(e=-1,i=arguments.length;er;)for(var s,a=Rs(arguments[r++]),l=u?Ps(js(a),u(a)):js(a),c=l.length,h=0;c>h;)s=l[h++],$s&&!Os(o,a,s)||(n[s]=a[s]);return n}:_s,Hs=Ns;sr({target:"Object",stat:!0,arity:2,forced:Object.assign!==Hs},{assign:Hs});var Us={name:"",placeholder:"",classes:"",classPrefix:"",data:void 0,locale:void 0,selectAll:!0,single:void 0,singleRadio:!1,multiple:!1,hideOptgroupCheckboxes:!1,multipleWidth:80,width:void 0,size:void 0,dropWidth:void 0,maxHeight:250,maxHeightUnit:"px",position:"bottom",displayValues:!1,displayTitle:!1,displayDelimiter:", ",minimumCountSelected:3,ellipsis:!1,isOpen:!1,keepOpen:!1,openOnHover:!1,container:null,filter:!1,filterGroup:!1,filterPlaceholder:"",filterAcceptOnEnter:!1,filterByDataLength:void 0,customFilter:function(t){var e=t.text,n=t.label,i=t.search;return(n||e).includes(i)},showClear:!1,animate:void 0,styler:function(){return!1},textTemplate:function(t){return t[0].innerHTML.trim()},labelTemplate:function(t){return t[0].getAttribute("label")},onOpen:function(){return!1},onClose:function(){return!1},onCheckAll:function(){return!1},onUncheckAll:function(){return!1},onFocus:function(){return!1},onBlur:function(){return!1},onOptgroupClick:function(){return!1},onBeforeClick:function(){return!0},onClick:function(){return!1},onFilter:function(){return!1},onClear:function(){return!1},onAfterCreate:function(){return!1}},Gs={formatSelectAll:function(){return"[Select all]"},formatAllSelected:function(){return"All selected"},formatCountSelected:function(t,e){return"".concat(t," of ").concat(e," selected")},formatNoMatchesFound:function(){return"No matches found"}};Object.assign(Us,Gs);var Ws={VERSION:"1.7.0",BLOCK_ROWS:500,CLUSTER_BLOCKS:4,DEFAULTS:Us,METHODS:["getOptions","refreshOptions","getData","getSelects","setSelects","enable","disable","open","close","check","uncheck","checkAll","uncheckAll","checkInvert","focus","blur","refresh","destroy"],LOCALES:{en:Gs,"en-US":Gs}},zs=v,Ks=Function.prototype,Vs=Ks.apply,Ys=Ks.call,qs="object"==typeof Reflect&&Reflect.apply||(zs?Ys.bind(Vs):function(){return Ys.apply(Vs,arguments)}),Xs=ns,Js=Ft,Zs=TypeError,Qs=Ne,ta=function(t){if(Xs(t))return t;throw Zs(Js(t)+" is not a constructor")},ea=H,na=le("species"),ia=B,ra=ci,ua=yr,oa=W,sa=ia("".charAt),aa=ia("".charCodeAt),la=ia("".slice),ca=function(t){return function(e,n){var i,r,u=ua(oa(e)),o=ra(n),s=u.length;return o<0||o>=s?t?"":void 0:(i=aa(u,o))<55296||i>56319||o+1===s||(r=aa(u,o+1))<56320||r>57343?t?sa(u,o):i:t?la(u,o,o+2):r-56320+(i-55296<<10)+65536}},ha={codeAt:ca(!1),charAt:ca(!0)}.charAt,fa=function(t,e,n){return e+(n?ha(t,e).length:1)},da=pi,pa=yi,va=Uo,ga=Array,Ea=Math.max,ba=qs,ya=b,ma=B,Aa=Mu,Ca=Ne,Fa=H,Sa=fo,ka=W,Da=function(t,e){var n,i=Qs(t).constructor;return void 0===i||ea(n=Qs(i)[na])?e:ta(n)},xa=fa,$a=Ei,wa=yr,Oa=Ot,Ba=function(t,e,n){for(var i=pa(t),r=da(e,i),u=da(void 0===n?i:n,i),o=ga(Ea(u-r,0)),s=0;r1||"".split(/.?/).length?function(t,n){var i=wa(ka(this)),r=void 0===n?Ra:n>>>0;if(0===r)return[];if(void 0===t)return[i];if(!Sa(t))return ya(e,i,t,r);for(var u,o,s,a=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),c=0,h=new RegExp(t.source,l+"g");(u=ya(Ta,h,i))&&!((o=h.lastIndex)>c&&(Na(a,Ha(i,c,u.index)),u.length>1&&u.index=r));)h.lastIndex===u.index&&h.lastIndex++;return c===i.length?!s&&Pa(h,"")||Na(a,""):Na(a,Ha(i,c)),a.length>r?Ba(a,0,r):a}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:ya(e,this,t,n)}:e,[function(e,n){var r=ka(this),u=Fa(e)?void 0:Oa(e,t);return u?ya(u,e,r,n):ya(i,wa(r),e,n)},function(t,r){var u=Ca(this),o=wa(t),s=n(i,u,o,r,i!==e);if(s.done)return s.value;var a=Da(u,RegExp),l=u.unicode,c=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(Ia?"g":"y"),h=new a(Ia?"^(?:"+u.source+")":u,c),f=void 0===r?Ra:r>>>0;if(0===f)return[];if(0===o.length)return null===ja(h,o)?[o]:[];for(var d=0,p=0,v=[];pb;b++)if((s||b in v)&&(d=g(f=v[b],b,p),t))if(e)m[b]=d;else if(d)switch(t){case 3:return!0;case 5:return f;case 6:return b;case 2:dl(m,f)}else switch(t){case 4:return!1;case 7:dl(m,f)}return u?-1:i||r?r:m}},vl={forEach:pl(0),map:pl(1),filter:pl(2),some:pl(3),every:pl(4),find:pl(5),findIndex:pl(6),filterReject:pl(7)},gl=sr,El=vl.find,bl=oo,yl="find",ml=!0;yl in[]&&Array(1)[yl]((function(){ml=!1})),gl({target:"Array",proto:!0,forced:ml},{find:function(t){return El(this,t,arguments.length>1?arguments[1]:void 0)}}),bl(yl);var Al=gr,Cl=lr?{}.toString:function(){return"[object "+Al(this)+"]"};lr||ui(Object.prototype,"toString",Cl,{unsafe:!0});var Fl=vl.map;sr({target:"Array",proto:!0,forced:!ds("map")},{map:function(t){return Fl(this,t,arguments.length>1?arguments[1]:void 0)}});var Sl=p,kl=B,Dl=Or,xl=V,$l=kl(y.f),wl=kl([].push),Ol=function(t){return function(e){for(var n,i=xl(e),r=Dl(i),u=r.length,o=0,s=[];u>o;)n=r[o++],Sl&&!$l(i,n)||wl(s,t?[n,i[n]]:i[n]);return s}},Bl={entries:Ol(!0),values:Ol(!1)}.entries;sr({target:"Object",stat:!0},{entries:function(t){return Bl(t)}});var jl=Kt,Tl=Or;sr({target:"Object",stat:!0,forced:d((function(){Tl(1)}))},{keys:function(t){return Tl(jl(t))}});var Ll=vl.filter;sr({target:"Array",proto:!0,forced:!ds("filter")},{filter:function(t){return Ll(this,t,arguments.length>1?arguments[1]:void 0)}});var Il=Fe("span").classList,Rl=Il&&Il.constructor&&Il.constructor.prototype,_l=Rl===Object.prototype?void 0:Rl,Ml=vl.forEach,Pl=h,Nl={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Hl=_l,Ul=Ga("forEach")?[].forEach:function(t){return Ml(this,t,arguments.length>1?arguments[1]:void 0)},Gl=tn,Wl=function(t){if(t&&t.forEach!==Ul)try{Gl(t,"forEach",Ul)}catch(e){t.forEach=Ul}};for(var zl in Nl)Nl[zl]&&Wl(Pl[zl]&&Pl[zl].prototype);Wl(Hl);var Kl=B([].slice),Vl=sr,Yl=_o,ql=ns,Xl=tt,Jl=pi,Zl=yi,Ql=V,tc=Uo,ec=le,nc=Kl,ic=ds("slice"),rc=ec("species"),uc=Array,oc=Math.max;Vl({target:"Array",proto:!0,forced:!ic},{slice:function(t,e){var n,i,r,u=Ql(this),o=Zl(u),s=Jl(t,o),a=Jl(void 0===e?o:e,o);if(Yl(u)&&(n=u.constructor,(ql(n)&&(n===uc||Yl(n.prototype))||Xl(n)&&null===(n=n[rc]))&&(n=void 0),n===uc||void 0===n))return nc(u,s,a);for(i=new(void 0===n?uc:n)(oc(a-s,0)),r=0;s]*>)/g,Oc=/\$([$&'`]|\d{1,2})/g,Bc=qs,jc=b,Tc=B,Lc=Mu,Ic=d,Rc=Ne,_c=J,Mc=H,Pc=ci,Nc=Ei,Hc=yr,Uc=W,Gc=fa,Wc=Ot,zc=function(t,e,n,i,r,u){var o=n+t.length,s=i.length,a=Oc;return void 0!==r&&(r=Sc(r),a=wc),xc(u,a,(function(u,a){var l;switch(Dc(a,0)){case"$":return"$";case"&":return t;case"`":return $c(e,0,n);case"'":return $c(e,o);case"<":l=r[$c(a,1,-1)];break;default:var c=+a;if(0===c)return u;if(c>s){var h=kc(c/10);return 0===h?u:h<=s?void 0===i[h-1]?Dc(a,1):i[h-1]+Dc(a,1):u}l=i[c-1]}return void 0===l?"":l}))},Kc=Ku,Vc=le("replace"),Yc=Math.max,qc=Math.min,Xc=Tc([].concat),Jc=Tc([].push),Zc=Tc("".indexOf),Qc=Tc("".slice),th="$0"==="a".replace(/./,"$0"),eh=!!/./[Vc]&&""===/./[Vc]("a","$0");Lc("replace",(function(t,e,n){var i=eh?"$":"$0";return[function(t,n){var i=Uc(this),r=Mc(t)?void 0:Wc(t,Vc);return r?jc(r,t,i,n):jc(e,Hc(i),t,n)},function(t,r){var u=Rc(this),o=Hc(t);if("string"==typeof r&&-1===Zc(r,i)&&-1===Zc(r,"$<")){var s=n(e,u,o,r);if(s.done)return s.value}var a=_c(r);a||(r=Hc(r));var l=u.global;if(l){var c=u.unicode;u.lastIndex=0}for(var h=[];;){var f=Kc(u,o);if(null===f)break;if(Jc(h,f),!l)break;""===Hc(f[0])&&(u.lastIndex=Gc(o,Nc(u.lastIndex),c))}for(var d,p="",v=0,g=0;g=v&&(p+=Qc(o,v,b)+F,v=b+E.length)}return p+Qc(o,v)}]}),!!Ic((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}))||!th||eh);var nh=xt,ih=Kt,rh=N,uh=yi,oh=TypeError,sh=function(t){return function(e,n,i,r){nh(n);var u=ih(e),o=rh(u),s=uh(u),a=t?s-1:0,l=t?-1:1;if(i<2)for(;;){if(a in o){r=o[a],a+=l;break}if(a+=l,t?a<0:s<=a)throw oh("Reduce of empty array with no initial value")}for(;t?a>=0:s>a;a+=l)a in o&&(r=n(r,o[a],a,u));return r}},ah={left:sh(!1),right:sh(!0)},lh="undefined"!=typeof process&&"process"==I(process),ch=ah.left;sr({target:"Array",proto:!0,forced:!lh&&ht>79&&ht<83||!Ga("reduce")},{reduce:function(t){var e=arguments.length;return ch(this,t,e,e>1?arguments[1]:void 0)}});var hh=function(t){if(t.normalize)return t.normalize("NFD").replace(/[\u0300-\u036F]/g,"");return[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}].reduce((function(t,e){var n=e.letters,i=e.base;return t.replace(n,i)}),t)},fh=function(t,e,n){var i,r=a(t);try{for(r.s();!(i=r.n()).done;){var u=i.value;if(u[e]===n||u[e]==="".concat(+u[e])&&+u[e]===n)return u;if("optgroup"===u.type){var o,s=a(u.children);try{for(s.s();!(o=s.n()).done;){var l=o.value;if(l[e]===n||l[e]==="".concat(+l[e])&&+l[e]===n)return l}}catch(t){s.e(t)}finally{s.f()}}}}catch(t){r.e(t)}finally{r.f()}},dh=function(t){return Object.keys(t).forEach((function(e){return void 0===t[e]?delete t[e]:""})),t},ph=function(){function n(t,i){e(this,n),this.$el=t,this.options=$.extend({},Ws.DEFAULTS,i)}return i(n,[{key:"init",value:function(){this.initLocale(),this.initContainer(),this.initData(),this.initSelected(!0),this.initFilter(),this.initDrop(),this.initView(),this.options.onAfterCreate()}},{key:"initLocale",value:function(){if(this.options.locale){var t=$.fn.multipleSelect.locales,e=this.options.locale.split(/-|_/);e[0]=e[0].toLowerCase(),e[1]&&(e[1]=e[1].toUpperCase()),t[this.options.locale]?$.extend(this.options,t[this.options.locale]):t[e.join("-")]?$.extend(this.options,t[e.join("-")]):t[e[0]]&&$.extend(this.options,t[e[0]])}}},{key:"initContainer",value:function(){var t=this,e=this.$el[0],n=e.getAttribute("name")||this.options.name||"";this.options.classes&&this.$el.addClass(this.options.classes),this.options.classPrefix&&(this.$el.addClass(this.options.classPrefix),this.options.size&&this.$el.addClass("".concat(this.options.classPrefix,"-").concat(this.options.size))),this.$el.hide(),this.$label=this.$el.closest("label"),!this.$label.length&&this.$el.attr("id")&&(this.$label=$('label[for="'.concat(this.$el.attr("id"),'"]'))),this.$label.find(">input").length&&(this.$label=null),void 0===this.options.single&&(this.options.single=null===e.getAttribute("multiple")),this.$parent=$('\n
      \n ')),this.options.placeholder=this.options.placeholder||e.getAttribute("placeholder")||"",this.tabIndex=e.getAttribute("tabindex");var i="";if(null!==this.tabIndex&&(i=this.tabIndex&&'tabindex="'.concat(this.tabIndex,'"')),this.$el.attr("tabindex",-1),this.$choice=$('\n \n ')),this.$drop=$('
      ')),this.$close=this.$choice.find(".icon-close"),this.options.dropWidth&&this.$drop.css("width",this.options.dropWidth),this.$el.after(this.$parent),this.$parent.append(this.$choice),this.$parent.append(this.$drop),e.disabled&&this.$choice.addClass("disabled"),this.selectAllName='data-name="selectAll'.concat(n,'"'),this.selectGroupName='data-name="selectGroup'.concat(n,'"'),this.selectItemName='data-name="selectItem'.concat(n,'"'),!this.options.keepOpen){var r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t=t||"".concat(+new Date).concat(~~(1e6*Math.random())),"click.multiple-select-".concat(t)}(this.$el.attr("id"));$(document).off(r).on(r,(function(n){$(n.target)[0]!==t.$choice[0]&&$(n.target).parents(".ms-choice")[0]!==t.$choice[0]&&($(n.target)[0]===t.$drop[0]||$(n.target).parents(".ms-drop")[0]!==t.$drop[0]&&n.target!==e)&&t.options.isOpen&&t.close()}))}}},{key:"initData",value:function(){var e=this,n=[];if(this.options.data){if(Array.isArray(this.options.data))this.data=this.options.data.map((function(t){return"string"==typeof t||"number"==typeof t?{text:t,value:t}:t}));else if("object"===t(this.options.data)){for(var i=0,u=Object.entries(this.options.data);ithis.options.filterByDataLength}}},{key:"initDrop",value:function(){var t=this;this.initList(),this.update(!0),this.options.isOpen&&setTimeout((function(){t.open()}),50),this.options.openOnHover&&this.$parent.hover((function(){t.open()}),(function(){t.close()}))}},{key:"initList",value:function(){var t=[];this.options.filter&&t.push('\n \n ')),t.push("
        "),this.$drop.html(t.join("")),this.$ul=this.$drop.find(">ul"),this.initListItems()}},{key:"initListItems",value:function(){var t=this,e=this.getListRows(),n=0;if(this.options.selectAll&&!this.options.single&&(n=-1),e.length>Ws.BLOCK_ROWS*Ws.CLUSTER_BLOCKS){this.virtualScroll&&this.virtualScroll.destroy();var i=this.$drop.is(":visible");i||this.$drop.css("left",-1e4).show();var r=function(){t.updateDataStart=t.virtualScroll.dataStart+n,t.updateDataEnd=t.virtualScroll.dataEnd+n,t.updateDataStart<0&&(t.updateDataStart=0),t.updateDataEnd>t.data.length&&(t.updateDataEnd=t.data.length)};this.virtualScroll=new Cc({rows:e,scrollEl:this.$ul[0],contentEl:this.$ul[0],callback:function(){r(),t.events()}}),r(),i||this.$drop.css("left",0).hide()}else this.$ul.html(e.join("")),this.updateDataStart=0,this.updateDataEnd=this.updateData.length,this.virtualScroll=null;this.events()}},{key:"getListRows",value:function(){var t=this,e=[];return this.options.selectAll&&!this.options.single&&e.push('\n
      • \n \n
      • \n ")),this.updateData=[],this.data.forEach((function(n){e.push.apply(e,u(t.initListItem(n)))})),e.push('
      • '.concat(this.options.formatNoMatchesFound(),"
      • ")),e}},{key:"initListItem",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=t.title?'title="'.concat(t.title,'"'):"",r=this.options.multiple?"multiple":"",o=this.options.single?"radio":"checkbox",s="";if(!t.visible)return[];if(this.updateData.push(t),this.options.single&&!this.options.singleRadio&&(s="hide-radio "),t.selected&&(s+="selected "),"optgroup"===t.type){var a=this.options.styler(t),l=a?'style="'.concat(a,'"'):"",c=[],h=this.options.hideOptgroupCheckboxes||this.options.single?"'):'');return s.includes("hide-radio")||!this.options.hideOptgroupCheckboxes&&!this.options.single||(s+="hide-radio "),c.push('\n
      • \n \n
      • \n ")),t.children.forEach((function(t){c.push.apply(c,u(e.initListItem(t,1)))})),c}var f=this.options.styler(t),d=f?'style="'.concat(f,'"'):"";return s+=t.classes||"",n&&this.options.single&&(s+="option-level-".concat(n," ")),t.divider?'
      • ':['\n
      • \n \n
      • \n ")]}},{key:"events",value:function(){var t=this;this.$searchInput=this.$drop.find(".ms-search input"),this.$selectAll=this.$drop.find("input[".concat(this.selectAllName,"]")),this.$selectGroups=this.$drop.find("input[".concat(this.selectGroupName,"],span[").concat(this.selectGroupName,"]")),this.$selectItems=this.$drop.find("input[".concat(this.selectItemName,"]:enabled")),this.$disableItems=this.$drop.find("input[".concat(this.selectItemName,"]:disabled")),this.$noResults=this.$drop.find(".ms-no-results");var e=function(e){e.preventDefault(),$(e.target).hasClass("icon-close")||t[t.options.isOpen?"close":"open"]()};this.$label&&this.$label.length&&this.$label.off("click").on("click",(function(n){"label"===n.target.nodeName.toLowerCase()&&(e(n),t.options.filter&&t.options.isOpen||t.focus(),n.stopPropagation())})),this.$choice.off("click").on("click",e).off("focus").on("focus",this.options.onFocus).off("blur").on("blur",this.options.onBlur),this.$parent.off("keydown").on("keydown",(function(e){27!==e.which||t.options.keepOpen||(t.close(),t.$choice.focus())})),this.$close.off("click").on("click",(function(e){e.preventDefault(),t._checkAll(!1,!0),t.initSelected(!1),t.updateSelected(),t.update(),t.options.onClear()})),this.$searchInput.off("keydown").on("keydown",(function(e){9===e.keyCode&&e.shiftKey&&t.close()})).off("keyup").on("keyup",(function(e){if(t.options.filterAcceptOnEnter&&[13,32].includes(e.which)&&t.$searchInput.val()){if(t.options.single){var n=t.$selectItems.closest("li").filter(":visible");n.length&&t.setSelects([n.first().find("input[".concat(t.selectItemName,"]")).val()])}else t.$selectAll.click();return t.close(),void t.focus()}t.filter()})),this.$selectAll.off("click").on("click",(function(e){t._checkAll($(e.currentTarget).prop("checked"))})),this.$selectGroups.off("click").on("click",(function(e){var n=$(e.currentTarget),i=n.prop("checked"),r=fh(t.data,"_key",n.data("key"));t._checkGroup(r,i),t.options.onOptgroupClick(dh({label:r.label,selected:r.selected,data:r._data,children:r.children.map((function(t){return dh({text:t.text,value:t.value,selected:t.selected,disabled:t.disabled,data:t._data})}))}))})),this.$selectItems.off("click").on("click",(function(e){var n=$(e.currentTarget),i=n.prop("checked"),r=fh(t.data,"_key",n.data("key")),u=function(){t.options.single&&t.options.isOpen&&!t.options.keepOpen&&t.close()};!1!==t.options.onBeforeClick(r)?(t._check(r,i),t.options.onClick(dh({text:r.text,value:r.value,selected:r.selected,data:r._data})),u()):u()})),this.$ul.find("li").off("keydown").on("keydown",(function(e){var n,i=$(e.currentTarget);switch(e.key){case"ArrowUp":e.preventDefault(),((n=i.prev("li.option-divider")).length?n:i).prev().trigger("focus");break;case"ArrowDown":e.preventDefault(),((n=i.next("li.option-divider")).length?n:i).next().trigger("focus");break;case"Enter":e.preventDefault(),i.find("input").trigger("click"),t.options.single&&t.$choice.trigger("focus")}}))}},{key:"initView",value:function(){var t;window.getComputedStyle?"auto"===(t=window.getComputedStyle(this.$el[0]).width)&&(t=this.$drop.outerWidth()+20):t=this.$el.outerWidth()+20,this.$parent.css("width",this.options.width||t),this.$el.show().addClass("ms-offscreen")}},{key:"open",value:function(){if(!this.$choice.hasClass("disabled")){if(this.options.isOpen=!0,this.$parent.addClass("ms-parent-open"),this.$choice.find(">div").addClass("open"),this.$drop[this.animateMethod("show")](),this.$selectAll.parent().show(),this.$noResults.hide(),this.data.length||(this.$selectAll.parent().hide(),this.$noResults.show()),this.options.container){var t=this.$drop.offset();this.$drop.appendTo($(this.options.container)),this.$drop.offset({top:t.top,left:t.left}).css("min-width","auto").outerWidth(this.$parent.outerWidth())}var e=this.options.maxHeight;"row"===this.options.maxHeightUnit&&(e=this.$drop.find(">ul>li").first().outerHeight()*this.options.maxHeight),this.$drop.find(">ul").css("max-height","".concat(e,"px")),this.$drop.find(".multiple").css("width","".concat(this.options.multipleWidth,"px")),this.data.length&&this.options.filter&&(this.$searchInput.val(""),this.$searchInput.focus(),this.filter(!0)),this.options.onOpen()}}},{key:"close",value:function(){this.options.isOpen=!1,this.$parent.removeClass("ms-parent-open"),this.$choice.find(">div").removeClass("open"),this.$drop[this.animateMethod("hide")](),this.options.container&&(this.$parent.append(this.$drop),this.$drop.css({top:"auto",left:"auto"})),this.options.onClose()}},{key:"animateMethod",value:function(t){return{show:{fade:"fadeIn",slide:"slideDown"},hide:{fade:"fadeOut",slide:"slideUp"}}[t][this.options.animate]||t}},{key:"update",value:function(t){var e=this.getSelects(),n=this.getSelects("text");this.options.displayValues&&(n=e);var i=this.$choice.find(">span"),r=e.length,u="";0===r?i.addClass("placeholder").html(this.options.placeholder):u=rthis.options.minimumCountSelected?"".concat(n.slice(0,this.options.minimumCountSelected).join(this.options.displayDelimiter),"..."):this.options.formatCountSelected()&&r>this.options.minimumCountSelected?this.options.formatCountSelected(r,this.dataTotal):n.join(this.options.displayDelimiter),u&&i.removeClass("placeholder").html(u),this.options.displayTitle&&i.prop("title",this.getSelects("text")),this.$el.val(this.getSelects()),t||this.$el.trigger("change")}},{key:"updateSelected",value:function(){for(var t=this.updateDataStart;t0&&void 0!==arguments[0]?arguments[0]:"value",n=[],i=a(this.data);try{for(i.s();!(t=i.n()).done;){var r=t.value;if("optgroup"===r.type){var o=r.children.filter((function(t){return t.selected}));if(!o.length)continue;if("value"===e||this.options.single)n.push.apply(n,u(o.map((function(t){return"value"===e&&t._value||t[e]}))));else{var s=[];s.push("["),s.push(r.label),s.push(": ".concat(o.map((function(t){return t[e]})).join(", "))),s.push("]"),n.push(s.join(""))}}else r.selected&&n.push("value"===e&&r._value||r[e])}}catch(t){i.e(t)}finally{i.f()}return n}},{key:"setSelects",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!1,u=function(e){var i,u=a(e);try{for(u.s();!(i=u.n()).done;){var o=i.value,s=!1;"text"===n?s=t.includes($("
        ").html(o.text).text().trim()):(s=t.includes(o._value||o.value))||o.value!=="".concat(+o.value)||(s=t.includes(+o.value)),o.selected!==s&&(r=!0),o.selected=s}}catch(t){u.e(t)}finally{u.f()}},o=a(this.data);try{for(o.s();!(e=o.n()).done;){var s=e.value;"optgroup"===s.type?u(s.children):u([s])}}catch(t){o.e(t)}finally{o.f()}r&&(this.initSelected(i),this.updateSelected(),this.update(i))}},{key:"enable",value:function(){this.$choice.removeClass("disabled")}},{key:"disable",value:function(){this.$choice.addClass("disabled")}},{key:"check",value:function(t){var e=fh(this.data,"value",t);e&&this._check(e,!0)}},{key:"uncheck",value:function(t){var e=fh(this.data,"value",t);e&&this._check(e,!1)}},{key:"_check",value:function(t,e){this.options.single&&this._checkAll(!1,!0),t.selected=e,this.initSelected(),this.updateSelected(),this.update()}},{key:"checkAll",value:function(){this._checkAll(!0)}},{key:"uncheckAll",value:function(){this._checkAll(!1)}},{key:"_checkAll",value:function(t,e){var n,i=a(this.data);try{for(i.s();!(n=i.n()).done;){var r=n.value;"optgroup"===r.type?this._checkGroup(r,t,!0):r.disabled||r.divider||!e&&!r.visible||(r.selected=t)}}catch(t){i.e(t)}finally{i.f()}e||(this.initSelected(),this.updateSelected(),this.update())}},{key:"_checkGroup",value:function(t,e,n){t.selected=e,t.children.forEach((function(t){t.disabled||t.divider||!n&&!t.visible||(t.selected=e)})),n||(this.initSelected(),this.updateSelected(),this.update())}},{key:"checkInvert",value:function(){if(!this.options.single){var t,e=a(this.data);try{for(e.s();!(t=e.n()).done;){var n=t.value;if("optgroup"===n.type){var i,r=a(n.children);try{for(r.s();!(i=r.n()).done;){var u=i.value;u.divider||(u.selected=!u.selected)}}catch(t){r.e(t)}finally{r.f()}}else n.divider||(n.selected=!n.selected)}}catch(t){e.e(t)}finally{e.f()}this.initSelected(),this.updateSelected(),this.update()}}},{key:"focus",value:function(){this.$choice.focus(),this.options.onFocus()}},{key:"blur",value:function(){this.$choice.blur(),this.options.onBlur()}},{key:"refresh",value:function(){this.destroy(),this.init()}},{key:"filter",value:function(t){var e=this.$searchInput.val().trim(),n=e.toLowerCase();if(this.filterText!==n){this.filterText=n;var i,r=a(this.data);try{for(r.s();!(i=r.n()).done;){var u=i.value;if("optgroup"===u.type)if(this.options.filterGroup){var o=this.options.customFilter({label:hh(u.label.toString().toLowerCase()),search:hh(n),originalLabel:u.label,originalSearch:e,row:u});u.visible=o;var s,l=a(u.children);try{for(l.s();!(s=l.n()).done;){s.value.visible=o}}catch(t){l.e(t)}finally{l.f()}}else{var c,h=a(u.children);try{for(h.s();!(c=h.n()).done;){var f=c.value;f.visible=this.options.customFilter({text:hh(f.text.toString().toLowerCase()),search:hh(n),originalText:f.text,originalSearch:e,row:f,parent:u})}}catch(t){h.e(t)}finally{h.f()}u.visible=u.children.filter((function(t){return t.visible})).length>0}else u.visible=this.options.customFilter({text:hh(u.text.toString().toLowerCase()),search:hh(n),originalText:u.text,originalSearch:e,row:u})}}catch(t){r.e(t)}finally{r.f()}this.initListItems(),this.initSelected(t),this.updateSelected(),t||this.options.onFilter(e)}}},{key:"destroy",value:function(){this.$parent&&(this.$el.before(this.$parent).removeClass("ms-offscreen"),null!==this.tabIndex&&this.$el.attr("tabindex",this.tabIndex),this.$parent.remove(),this.fromHtml&&(delete this.options.data,this.fromHtml=!1))}}]),n}();$.fn.multipleSelect=function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r + */ + + $$1.fn.multipleSelect.locales['en-US'] = { + formatSelectAll: function formatSelectAll() { + return '[Select all]'; + }, + formatAllSelected: function formatAllSelected() { + return 'All selected'; + }, + formatCountSelected: function formatCountSelected(count, total) { + return "".concat(count, " of ").concat(total, " selected"); + }, + formatNoMatchesFound: function formatNoMatchesFound() { + return 'No matches found'; + } + }; + $$1.extend($$1.fn.multipleSelect.defaults, $$1.fn.multipleSelect.locales['en-US']); + /** * Multiple Select cz-CS translation * Author: Matej Puhony @@ -1309,88 +1330,88 @@ $$1.extend($$1.fn.multipleSelect.defaults, $$1.fn.multipleSelect.locales['es-ES']); /** - * Multiple Select en-US translation - * Author: Zhixin Wen + * Multiple Select hu-HU translation + * Author: Péter Báthory */ - $$1.fn.multipleSelect.locales['en-US'] = { + $$1.fn.multipleSelect.locales['hu-HU'] = { formatSelectAll: function formatSelectAll() { - return '[Select all]'; + return '[Összes kiválasztása]'; }, formatAllSelected: function formatAllSelected() { - return 'All selected'; + return 'Összes kiválasztva'; }, formatCountSelected: function formatCountSelected(count, total) { - return "".concat(count, " of ").concat(total, " selected"); + return "".concat(count, " / ").concat(total, " kiv\xE1lasztva"); }, formatNoMatchesFound: function formatNoMatchesFound() { - return 'No matches found'; + return 'Nincs találat'; } }; - $$1.extend($$1.fn.multipleSelect.defaults, $$1.fn.multipleSelect.locales['en-US']); + $$1.extend($$1.fn.multipleSelect.defaults, $$1.fn.multipleSelect.locales['hu-HU']); /** - * Multiple Select fr-FR translation - * Author: Francis Perron + * Multiple Select it-IT translation + * Author: Giuseppe Lodi Rizzini */ - $$1.fn.multipleSelect.locales['fr-FR'] = { + $$1.fn.multipleSelect.locales['it-IT'] = { formatSelectAll: function formatSelectAll() { - return '[Tout sélectionner]'; + return '[Seleziona tutti]'; }, formatAllSelected: function formatAllSelected() { - return 'Tous sélectionnés'; + return 'Tutti selezionati'; }, formatCountSelected: function formatCountSelected(count, total) { - return "".concat(count, " de ").concat(total, " s\xE9lectionn\xE9s"); + return "".concat(count, " di ").concat(total, " selezionati"); }, formatNoMatchesFound: function formatNoMatchesFound() { - return 'Aucun résultat'; + return 'Nessun risultato'; } }; - $$1.extend($$1.fn.multipleSelect.defaults, $$1.fn.multipleSelect.locales['fr-FR']); + $$1.extend($$1.fn.multipleSelect.defaults, $$1.fn.multipleSelect.locales['it-IT']); /** - * Multiple Select hu-HU translation - * Author: Péter Báthory + * Multiple Select ja-JP translation + * Author: Nozomi Anzai */ - $$1.fn.multipleSelect.locales['hu-HU'] = { + $$1.fn.multipleSelect.locales['ja-JP'] = { formatSelectAll: function formatSelectAll() { - return '[Összes kiválasztása]'; + return '[すべて選択]'; }, formatAllSelected: function formatAllSelected() { - return 'Összes kiválasztva'; + return 'すべて選択'; }, formatCountSelected: function formatCountSelected(count, total) { - return "".concat(count, " / ").concat(total, " kiv\xE1lasztva"); + return "".concat(total, " \u4EF6\u4E2D ").concat(count, " \u4EF6\u9078\u629E"); }, formatNoMatchesFound: function formatNoMatchesFound() { - return 'Nincs találat'; + return '見つかりません'; } }; - $$1.extend($$1.fn.multipleSelect.defaults, $$1.fn.multipleSelect.locales['hu-HU']); + $$1.extend($$1.fn.multipleSelect.defaults, $$1.fn.multipleSelect.locales['ja-JP']); /** - * Multiple Select it-IT translation - * Author: Giuseppe Lodi Rizzini + * Multiple Select ru-RU translation + * Author: Zhixin Wen */ - $$1.fn.multipleSelect.locales['it-IT'] = { + $$1.fn.multipleSelect.locales['ru-RU'] = { formatSelectAll: function formatSelectAll() { - return '[Seleziona tutti]'; + return '[Выбрать все]'; }, formatAllSelected: function formatAllSelected() { - return 'Tutti selezionati'; + return 'Выбрано все'; }, formatCountSelected: function formatCountSelected(count, total) { - return "".concat(count, " di ").concat(total, " selezionati"); + return "".concat(count, " \u0438\u0437 ").concat(total, " \u0432\u044B\u0431\u0440\u0430\u043D\u043E"); }, formatNoMatchesFound: function formatNoMatchesFound() { - return 'Nessun risultato'; + return 'Совпадений не найдено'; } }; - $$1.extend($$1.fn.multipleSelect.defaults, $$1.fn.multipleSelect.locales['it-IT']); + $$1.extend($$1.fn.multipleSelect.defaults, $$1.fn.multipleSelect.locales['ru-RU']); /** * Multiple Select vi-VN translation @@ -1414,46 +1435,25 @@ $$1.extend($$1.fn.multipleSelect.defaults, $$1.fn.multipleSelect.locales['vi-VN']); /** - * Multiple Select pt-BR translation - * Author: Lucas Aguiar - */ - - $$1.fn.multipleSelect.locales['pt-BR'] = { - formatSelectAll: function formatSelectAll() { - return '[Selecionar todos]'; - }, - formatAllSelected: function formatAllSelected() { - return 'Todos selecionados'; - }, - formatCountSelected: function formatCountSelected(count, total) { - return "".concat(count, " de ").concat(total, " selecionado(s)"); - }, - formatNoMatchesFound: function formatNoMatchesFound() { - return 'Nenhum resultado encontrado'; - } - }; - $$1.extend($$1.fn.multipleSelect.defaults, $$1.fn.multipleSelect.locales['pt-BR']); - - /** - * Multiple Select ru-RU translation - * Author: Zhixin Wen + * Multiple Select fr-FR translation + * Author: Francis Perron */ - $$1.fn.multipleSelect.locales['ru-RU'] = { + $$1.fn.multipleSelect.locales['fr-FR'] = { formatSelectAll: function formatSelectAll() { - return '[Выбрать все]'; + return '[Tout sélectionner]'; }, formatAllSelected: function formatAllSelected() { - return 'Выбрано все'; + return 'Tous sélectionnés'; }, formatCountSelected: function formatCountSelected(count, total) { - return "".concat(count, " \u0438\u0437 ").concat(total, " \u0432\u044B\u0431\u0440\u0430\u043D\u043E"); + return "".concat(count, " de ").concat(total, " s\xE9lectionn\xE9s"); }, formatNoMatchesFound: function formatNoMatchesFound() { - return 'Совпадений не найдено'; + return 'Aucun résultat'; } }; - $$1.extend($$1.fn.multipleSelect.defaults, $$1.fn.multipleSelect.locales['ru-RU']); + $$1.extend($$1.fn.multipleSelect.defaults, $$1.fn.multipleSelect.locales['fr-FR']); /** * Multiple Select zh-CN translation @@ -1497,4 +1497,25 @@ }; $$1.extend($$1.fn.multipleSelect.defaults, $$1.fn.multipleSelect.locales['zh-TW']); + /** + * Multiple Select pt-BR translation + * Author: Lucas Aguiar + */ + + $$1.fn.multipleSelect.locales['pt-BR'] = { + formatSelectAll: function formatSelectAll() { + return '[Selecionar todos]'; + }, + formatAllSelected: function formatAllSelected() { + return 'Todos selecionados'; + }, + formatCountSelected: function formatCountSelected(count, total) { + return "".concat(count, " de ").concat(total, " selecionado(s)"); + }, + formatNoMatchesFound: function formatNoMatchesFound() { + return 'Nenhum resultado encontrado'; + } + }; + $$1.extend($$1.fn.multipleSelect.defaults, $$1.fn.multipleSelect.locales['pt-BR']); + })); diff --git a/dist/multiple-select-locale-all.min.js b/dist/multiple-select-locale-all.min.js index 4bcf8052..1766b911 100644 --- a/dist/multiple-select-locale-all.min.js +++ b/dist/multiple-select-locale-all.min.js @@ -1,10 +1,10 @@ /** * multiple-select - Multiple select is a jQuery plugin to select multiple elements with checkboxes :). * - * @version v1.6.0 + * @version v1.7.0 * @homepage http://multiple-select.wenzhixin.net.cn * @author wenzhixin (http://wenzhixin.net.cn/) * @license MIT */ -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=function(t){return t&&t.Math==Math&&t},r=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||e||Function("return this")(),o={},c=function(t){try{return!!t()}catch(t){return!0}},u=!c((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),l=!c((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),i=l,a=Function.prototype.call,f=i?a.bind(a):function(){return a.apply(a,arguments)},s={},p={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,m=d&&!p.call({1:2},1);s.f=m?function(t){var e=d(this,t);return!!e&&e.enumerable}:p;var S,y,h=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},v=l,b=Function.prototype,g=b.call,w=v&&b.bind.bind(g,g),A=v?w:function(t){return function(){return g.apply(t,arguments)}},O=A,j=O({}.toString),T=O("".slice),N=function(t){return T(j(t),8,-1)},C=c,x=N,F=Object,M=A("".split),z=C((function(){return!F("z").propertyIsEnumerable(0)}))?function(t){return"String"==x(t)?M(t,""):F(t)}:F,P=function(t){return null==t},E=P,I=TypeError,D=function(t){if(E(t))throw I("Can't call method on "+t);return t},k=z,R=D,L=function(t){return k(R(t))},U="object"==typeof document&&document.all,_={all:U,IS_HTMLDDA:void 0===U&&void 0!==U},V=_.all,q=_.IS_HTMLDDA?function(t){return"function"==typeof t||t===V}:function(t){return"function"==typeof t},B=q,G=_.all,H=_.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:B(t)||t===G}:function(t){return"object"==typeof t?null!==t:B(t)},W=r,K=q,Q=function(t,e){return arguments.length<2?(n=W[t],K(n)?n:void 0):W[t]&&W[t][e];var n},X=A({}.isPrototypeOf),Y=r,$="undefined"!=typeof navigator&&String(navigator.userAgent)||"",J=Y.process,Z=Y.Deno,tt=J&&J.versions||Z&&Z.version,et=tt&&tt.v8;et&&(y=(S=et.split("."))[0]>0&&S[0]<4?1:+(S[0]+S[1])),!y&&$&&(!(S=$.match(/Edge\/(\d+)/))||S[1]>=74)&&(S=$.match(/Chrome\/(\d+)/))&&(y=+S[1]);var nt=y,rt=nt,ot=c,ct=r.String,ut=!!Object.getOwnPropertySymbols&&!ot((function(){var t=Symbol();return!ct(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&rt&&rt<41})),lt=ut&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,it=Q,at=q,ft=X,st=Object,pt=lt?function(t){return"symbol"==typeof t}:function(t){var e=it("Symbol");return at(e)&&ft(e.prototype,st(t))},dt=String,mt=q,St=function(t){try{return dt(t)}catch(t){return"Object"}},yt=TypeError,ht=function(t){if(mt(t))return t;throw yt(St(t)+" is not a function")},vt=P,bt=f,gt=q,wt=H,At=TypeError,Ot={exports:{}},jt=r,Tt=Object.defineProperty,Nt=function(t,e){try{Tt(jt,t,{value:e,configurable:!0,writable:!0})}catch(n){jt[t]=e}return e},Ct=Nt,xt="__core-js_shared__",Ft=r[xt]||Ct(xt,{}),Mt=Ft;(Ot.exports=function(t,e){return Mt[t]||(Mt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.30.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var zt=Ot.exports,Pt=D,Et=Object,It=function(t){return Et(Pt(t))},Dt=It,kt=A({}.hasOwnProperty),Rt=Object.hasOwn||function(t,e){return kt(Dt(t),e)},Lt=A,Ut=0,_t=Math.random(),Vt=Lt(1..toString),qt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Vt(++Ut+_t,36)},Bt=zt,Gt=Rt,Ht=qt,Wt=ut,Kt=lt,Qt=r.Symbol,Xt=Bt("wks"),Yt=Kt?Qt.for||Qt:Qt&&Qt.withoutSetter||Ht,$t=function(t){return Gt(Xt,t)||(Xt[t]=Wt&&Gt(Qt,t)?Qt[t]:Yt("Symbol."+t)),Xt[t]},Jt=f,Zt=H,te=pt,ee=function(t,e){var n=t[e];return vt(n)?void 0:ht(n)},ne=function(t,e){var n,r;if("string"===e&>(n=t.toString)&&!wt(r=bt(n,t)))return r;if(gt(n=t.valueOf)&&!wt(r=bt(n,t)))return r;if("string"!==e&>(n=t.toString)&&!wt(r=bt(n,t)))return r;throw At("Can't convert object to primitive value")},re=TypeError,oe=$t("toPrimitive"),ce=function(t,e){if(!Zt(t)||te(t))return t;var n,r=ee(t,oe);if(r){if(void 0===e&&(e="default"),n=Jt(r,t,e),!Zt(n)||te(n))return n;throw re("Can't convert object to primitive value")}return void 0===e&&(e="number"),ne(t,e)},ue=pt,le=function(t){var e=ce(t,"string");return ue(e)?e:e+""},ie=H,ae=r.document,fe=ie(ae)&&ie(ae.createElement),se=function(t){return fe?ae.createElement(t):{}},pe=!u&&!c((function(){return 7!=Object.defineProperty(se("div"),"a",{get:function(){return 7}}).a})),de=u,me=f,Se=s,ye=h,he=L,ve=le,be=Rt,ge=pe,we=Object.getOwnPropertyDescriptor;o.f=de?we:function(t,e){if(t=he(t),e=ve(e),ge)try{return we(t,e)}catch(t){}if(be(t,e))return ye(!me(Se.f,t,e),t[e])};var Ae={},Oe=u&&c((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),je=H,Te=String,Ne=TypeError,Ce=function(t){if(je(t))return t;throw Ne(Te(t)+" is not an object")},xe=u,Fe=pe,Me=Oe,ze=Ce,Pe=le,Ee=TypeError,Ie=Object.defineProperty,De=Object.getOwnPropertyDescriptor,ke="enumerable",Re="configurable",Le="writable";Ae.f=xe?Me?function(t,e,n){if(ze(t),e=Pe(e),ze(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Le in n&&!n[Le]){var r=De(t,e);r&&r[Le]&&(t[e]=n.value,n={configurable:Re in n?n[Re]:r[Re],enumerable:ke in n?n[ke]:r[ke],writable:!1})}return Ie(t,e,n)}:Ie:function(t,e,n){if(ze(t),e=Pe(e),ze(n),Fe)try{return Ie(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Ee("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var Ue=Ae,_e=h,Ve=u?function(t,e,n){return Ue.f(t,e,_e(1,n))}:function(t,e,n){return t[e]=n,t},qe={exports:{}},Be=u,Ge=Rt,He=Function.prototype,We=Be&&Object.getOwnPropertyDescriptor,Ke=Ge(He,"name"),Qe={EXISTS:Ke,PROPER:Ke&&"something"===function(){}.name,CONFIGURABLE:Ke&&(!Be||Be&&We(He,"name").configurable)},Xe=q,Ye=Ft,$e=A(Function.toString);Xe(Ye.inspectSource)||(Ye.inspectSource=function(t){return $e(t)});var Je,Ze,tn,en=Ye.inspectSource,nn=q,rn=r.WeakMap,on=nn(rn)&&/native code/.test(String(rn)),cn=qt,un=zt("keys"),ln={},an=on,fn=r,sn=H,pn=Ve,dn=Rt,mn=Ft,Sn=function(t){return un[t]||(un[t]=cn(t))},yn=ln,hn="Object already initialized",vn=fn.TypeError,bn=fn.WeakMap;if(an||mn.state){var gn=mn.state||(mn.state=new bn);gn.get=gn.get,gn.has=gn.has,gn.set=gn.set,Je=function(t,e){if(gn.has(t))throw vn(hn);return e.facade=t,gn.set(t,e),e},Ze=function(t){return gn.get(t)||{}},tn=function(t){return gn.has(t)}}else{var wn=Sn("state");yn[wn]=!0,Je=function(t,e){if(dn(t,wn))throw vn(hn);return e.facade=t,pn(t,wn,e),e},Ze=function(t){return dn(t,wn)?t[wn]:{}},tn=function(t){return dn(t,wn)}}var An={set:Je,get:Ze,has:tn,enforce:function(t){return tn(t)?Ze(t):Je(t,{})},getterFor:function(t){return function(e){var n;if(!sn(e)||(n=Ze(e)).type!==t)throw vn("Incompatible receiver, "+t+" required");return n}}},On=A,jn=c,Tn=q,Nn=Rt,Cn=u,xn=Qe.CONFIGURABLE,Fn=en,Mn=An.enforce,zn=An.get,Pn=String,En=Object.defineProperty,In=On("".slice),Dn=On("".replace),kn=On([].join),Rn=Cn&&!jn((function(){return 8!==En((function(){}),"length",{value:8}).length})),Ln=String(String).split("String"),Un=qe.exports=function(t,e,n){"Symbol("===In(Pn(e),0,7)&&(e="["+Dn(Pn(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!Nn(t,"name")||xn&&t.name!==e)&&(Cn?En(t,"name",{value:e,configurable:!0}):t.name=e),Rn&&n&&Nn(n,"arity")&&t.length!==n.arity&&En(t,"length",{value:n.arity});try{n&&Nn(n,"constructor")&&n.constructor?Cn&&En(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=Mn(t);return Nn(r,"source")||(r.source=kn(Ln,"string"==typeof e?e:"")),t};Function.prototype.toString=Un((function(){return Tn(this)&&zn(this).source||Fn(this)}),"toString");var _n=qe.exports,Vn=q,qn=Ae,Bn=_n,Gn=Nt,Hn={},Wn=Math.ceil,Kn=Math.floor,Qn=Math.trunc||function(t){var e=+t;return(e>0?Kn:Wn)(e)},Xn=function(t){var e=+t;return e!=e||0===e?0:Qn(e)},Yn=Xn,$n=Math.max,Jn=Math.min,Zn=Xn,tr=Math.min,er=function(t){return t>0?tr(Zn(t),9007199254740991):0},nr=function(t){return er(t.length)},rr=L,or=function(t,e){var n=Yn(t);return n<0?$n(n+e,0):Jn(n,e)},cr=nr,ur=function(t){return function(e,n,r){var o,c=rr(e),u=cr(c),l=or(r,u);if(t&&n!=n){for(;u>l;)if((o=c[l++])!=o)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}},lr={includes:ur(!0),indexOf:ur(!1)},ir=Rt,ar=L,fr=lr.indexOf,sr=ln,pr=A([].push),dr=function(t,e){var n,r=ar(t),o=0,c=[];for(n in r)!ir(sr,n)&&ir(r,n)&&pr(c,n);for(;e.length>o;)ir(r,n=e[o++])&&(~fr(c,n)||pr(c,n));return c},mr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");Hn.f=Object.getOwnPropertyNames||function(t){return dr(t,mr)};var Sr={};Sr.f=Object.getOwnPropertySymbols;var yr=Q,hr=Hn,vr=Sr,br=Ce,gr=A([].concat),wr=yr("Reflect","ownKeys")||function(t){var e=hr.f(br(t)),n=vr.f;return n?gr(e,n(t)):e},Ar=Rt,Or=wr,jr=o,Tr=Ae,Nr=c,Cr=q,xr=/#|\.prototype\./,Fr=function(t,e){var n=zr[Mr(t)];return n==Er||n!=Pr&&(Cr(e)?Nr(e):!!e)},Mr=Fr.normalize=function(t){return String(t).replace(xr,".").toLowerCase()},zr=Fr.data={},Pr=Fr.NATIVE="N",Er=Fr.POLYFILL="P",Ir=Fr,Dr=r,kr=o.f,Rr=Ve,Lr=function(t,e,n,r){r||(r={});var o=r.enumerable,c=void 0!==r.name?r.name:e;if(Vn(n)&&Bn(n,c,r),r.global)o?t[e]=n:Gn(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:qn.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},Ur=Nt,_r=function(t,e,n){for(var r=Or(e),o=Tr.f,c=jr.f,u=0;u9007199254740991)throw Gr("Maximum allowed index exceeded");return t},Po=function(t,e,n){var r=Hr(e);r in t?Wr.f(t,r,Kr(0,n)):t[r]=n},Eo=function(t,e){return new(wo(t))(0===e?0:e)},Io=function(t){return Oo>=51||!Ao((function(){var e=[];return(e.constructor={})[jo]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Do=nt,ko=$t("isConcatSpreadable"),Ro=Do>=51||!No((function(){var t=[];return t[ko]=!1,t.concat()[0]!==t})),Lo=function(t){if(!xo(t))return!1;var e=t[ko];return void 0!==e?!!e:Co(t)};To({target:"Array",proto:!0,arity:1,forced:!Ro||!Io("concat")},{concat:function(t){var e,n,r,o,c,u=Fo(this),l=Eo(u,0),i=0;for(e=-1,r=arguments.length;e0&&S[0]<4?1:+(S[0]+S[1])),!y&&Y&&(!(S=Y.match(/Edge\/(\d+)/))||S[1]>=74)&&(S=Y.match(/Chrome\/(\d+)/))&&(y=+S[1]);var nt=y,rt=nt,ot=c,ct=r.String,ut=!!Object.getOwnPropertySymbols&&!ot((function(){var t=Symbol();return!ct(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&rt&&rt<41})),lt=ut&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,it=J,at=q,ft=Q,st=Object,pt=lt?function(t){return"symbol"==typeof t}:function(t){var e=it("Symbol");return at(e)&&ft(e.prototype,st(t))},dt=String,mt=q,St=function(t){try{return dt(t)}catch(t){return"Object"}},yt=TypeError,ht=function(t){if(mt(t))return t;throw yt(St(t)+" is not a function")},vt=z,bt=f,gt=q,At=H,jt=TypeError,wt={exports:{}},Ot=r,Tt=Object.defineProperty,Nt=function(t,e){try{Tt(Ot,t,{value:e,configurable:!0,writable:!0})}catch(n){Ot[t]=e}return e},Ct=Nt,xt="__core-js_shared__",Ft=r[xt]||Ct(xt,{}),Mt=Ft;(wt.exports=function(t,e){return Mt[t]||(Mt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.30.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Pt=wt.exports,zt=D,Et=Object,It=function(t){return Et(zt(t))},Dt=It,kt=j({}.hasOwnProperty),Rt=Object.hasOwn||function(t,e){return kt(Dt(t),e)},Lt=j,Ut=0,_t=Math.random(),Vt=Lt(1..toString),qt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Vt(++Ut+_t,36)},Bt=Pt,Gt=Rt,Ht=qt,Wt=ut,Kt=lt,Jt=r.Symbol,Qt=Bt("wks"),Xt=Kt?Jt.for||Jt:Jt&&Jt.withoutSetter||Ht,Yt=function(t){return Gt(Qt,t)||(Qt[t]=Wt&&Gt(Jt,t)?Jt[t]:Xt("Symbol."+t)),Qt[t]},$t=f,Zt=H,te=pt,ee=function(t,e){var n=t[e];return vt(n)?void 0:ht(n)},ne=function(t,e){var n,r;if("string"===e&>(n=t.toString)&&!At(r=bt(n,t)))return r;if(gt(n=t.valueOf)&&!At(r=bt(n,t)))return r;if("string"!==e&>(n=t.toString)&&!At(r=bt(n,t)))return r;throw jt("Can't convert object to primitive value")},re=TypeError,oe=Yt("toPrimitive"),ce=function(t,e){if(!Zt(t)||te(t))return t;var n,r=ee(t,oe);if(r){if(void 0===e&&(e="default"),n=$t(r,t,e),!Zt(n)||te(n))return n;throw re("Can't convert object to primitive value")}return void 0===e&&(e="number"),ne(t,e)},ue=pt,le=function(t){var e=ce(t,"string");return ue(e)?e:e+""},ie=H,ae=r.document,fe=ie(ae)&&ie(ae.createElement),se=function(t){return fe?ae.createElement(t):{}},pe=!u&&!c((function(){return 7!=Object.defineProperty(se("div"),"a",{get:function(){return 7}}).a})),de=u,me=f,Se=s,ye=h,he=L,ve=le,be=Rt,ge=pe,Ae=Object.getOwnPropertyDescriptor;o.f=de?Ae:function(t,e){if(t=he(t),e=ve(e),ge)try{return Ae(t,e)}catch(t){}if(be(t,e))return ye(!me(Se.f,t,e),t[e])};var je={},we=u&&c((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Oe=H,Te=String,Ne=TypeError,Ce=function(t){if(Oe(t))return t;throw Ne(Te(t)+" is not an object")},xe=u,Fe=pe,Me=we,Pe=Ce,ze=le,Ee=TypeError,Ie=Object.defineProperty,De=Object.getOwnPropertyDescriptor,ke="enumerable",Re="configurable",Le="writable";je.f=xe?Me?function(t,e,n){if(Pe(t),e=ze(e),Pe(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Le in n&&!n[Le]){var r=De(t,e);r&&r[Le]&&(t[e]=n.value,n={configurable:Re in n?n[Re]:r[Re],enumerable:ke in n?n[ke]:r[ke],writable:!1})}return Ie(t,e,n)}:Ie:function(t,e,n){if(Pe(t),e=ze(e),Pe(n),Fe)try{return Ie(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Ee("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var Ue=je,_e=h,Ve=u?function(t,e,n){return Ue.f(t,e,_e(1,n))}:function(t,e,n){return t[e]=n,t},qe={exports:{}},Be=u,Ge=Rt,He=Function.prototype,We=Be&&Object.getOwnPropertyDescriptor,Ke=Ge(He,"name"),Je={EXISTS:Ke,PROPER:Ke&&"something"===function(){}.name,CONFIGURABLE:Ke&&(!Be||Be&&We(He,"name").configurable)},Qe=q,Xe=Ft,Ye=j(Function.toString);Qe(Xe.inspectSource)||(Xe.inspectSource=function(t){return Ye(t)});var $e,Ze,tn,en=Xe.inspectSource,nn=q,rn=r.WeakMap,on=nn(rn)&&/native code/.test(String(rn)),cn=qt,un=Pt("keys"),ln={},an=on,fn=r,sn=H,pn=Ve,dn=Rt,mn=Ft,Sn=function(t){return un[t]||(un[t]=cn(t))},yn=ln,hn="Object already initialized",vn=fn.TypeError,bn=fn.WeakMap;if(an||mn.state){var gn=mn.state||(mn.state=new bn);gn.get=gn.get,gn.has=gn.has,gn.set=gn.set,$e=function(t,e){if(gn.has(t))throw vn(hn);return e.facade=t,gn.set(t,e),e},Ze=function(t){return gn.get(t)||{}},tn=function(t){return gn.has(t)}}else{var An=Sn("state");yn[An]=!0,$e=function(t,e){if(dn(t,An))throw vn(hn);return e.facade=t,pn(t,An,e),e},Ze=function(t){return dn(t,An)?t[An]:{}},tn=function(t){return dn(t,An)}}var jn={set:$e,get:Ze,has:tn,enforce:function(t){return tn(t)?Ze(t):$e(t,{})},getterFor:function(t){return function(e){var n;if(!sn(e)||(n=Ze(e)).type!==t)throw vn("Incompatible receiver, "+t+" required");return n}}},wn=j,On=c,Tn=q,Nn=Rt,Cn=u,xn=Je.CONFIGURABLE,Fn=en,Mn=jn.enforce,Pn=jn.get,zn=String,En=Object.defineProperty,In=wn("".slice),Dn=wn("".replace),kn=wn([].join),Rn=Cn&&!On((function(){return 8!==En((function(){}),"length",{value:8}).length})),Ln=String(String).split("String"),Un=qe.exports=function(t,e,n){"Symbol("===In(zn(e),0,7)&&(e="["+Dn(zn(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!Nn(t,"name")||xn&&t.name!==e)&&(Cn?En(t,"name",{value:e,configurable:!0}):t.name=e),Rn&&n&&Nn(n,"arity")&&t.length!==n.arity&&En(t,"length",{value:n.arity});try{n&&Nn(n,"constructor")&&n.constructor?Cn&&En(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=Mn(t);return Nn(r,"source")||(r.source=kn(Ln,"string"==typeof e?e:"")),t};Function.prototype.toString=Un((function(){return Tn(this)&&Pn(this).source||Fn(this)}),"toString");var _n=qe.exports,Vn=q,qn=je,Bn=_n,Gn=Nt,Hn={},Wn=Math.ceil,Kn=Math.floor,Jn=Math.trunc||function(t){var e=+t;return(e>0?Kn:Wn)(e)},Qn=function(t){var e=+t;return e!=e||0===e?0:Jn(e)},Xn=Qn,Yn=Math.max,$n=Math.min,Zn=Qn,tr=Math.min,er=function(t){return t>0?tr(Zn(t),9007199254740991):0},nr=function(t){return er(t.length)},rr=L,or=function(t,e){var n=Xn(t);return n<0?Yn(n+e,0):$n(n,e)},cr=nr,ur=function(t){return function(e,n,r){var o,c=rr(e),u=cr(c),l=or(r,u);if(t&&n!=n){for(;u>l;)if((o=c[l++])!=o)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}},lr={includes:ur(!0),indexOf:ur(!1)},ir=Rt,ar=L,fr=lr.indexOf,sr=ln,pr=j([].push),dr=function(t,e){var n,r=ar(t),o=0,c=[];for(n in r)!ir(sr,n)&&ir(r,n)&&pr(c,n);for(;e.length>o;)ir(r,n=e[o++])&&(~fr(c,n)||pr(c,n));return c},mr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");Hn.f=Object.getOwnPropertyNames||function(t){return dr(t,mr)};var Sr={};Sr.f=Object.getOwnPropertySymbols;var yr=J,hr=Hn,vr=Sr,br=Ce,gr=j([].concat),Ar=yr("Reflect","ownKeys")||function(t){var e=hr.f(br(t)),n=vr.f;return n?gr(e,n(t)):e},jr=Rt,wr=Ar,Or=o,Tr=je,Nr=c,Cr=q,xr=/#|\.prototype\./,Fr=function(t,e){var n=Pr[Mr(t)];return n==Er||n!=zr&&(Cr(e)?Nr(e):!!e)},Mr=Fr.normalize=function(t){return String(t).replace(xr,".").toLowerCase()},Pr=Fr.data={},zr=Fr.NATIVE="N",Er=Fr.POLYFILL="P",Ir=Fr,Dr=r,kr=o.f,Rr=Ve,Lr=function(t,e,n,r){r||(r={});var o=r.enumerable,c=void 0!==r.name?r.name:e;if(Vn(n)&&Bn(n,c,r),r.global)o?t[e]=n:Gn(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:qn.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},Ur=Nt,_r=function(t,e,n){for(var r=wr(e),o=Tr.f,c=Or.f,u=0;u9007199254740991)throw Gr("Maximum allowed index exceeded");return t},zo=function(t,e,n){var r=Hr(e);r in t?Wr.f(t,r,Kr(0,n)):t[r]=n},Eo=function(t,e){return new(Ao(t))(0===e?0:e)},Io=function(t){return wo>=51||!jo((function(){var e=[];return(e.constructor={})[Oo]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Do=nt,ko=Yt("isConcatSpreadable"),Ro=Do>=51||!No((function(){var t=[];return t[ko]=!1,t.concat()[0]!==t})),Lo=function(t){if(!xo(t))return!1;var e=t[ko];return void 0!==e?!!e:Co(t)};To({target:"Array",proto:!0,arity:1,forced:!Ro||!Io("concat")},{concat:function(t){var e,n,r,o,c,u=Fo(this),l=Eo(u,0),i=0;for(e=-1,r=arguments.length;e (http://wenzhixin.net.cn/) * @license MIT diff --git a/dist/multiple-select-vue.min.js b/dist/multiple-select-vue.min.js index 08ac1d63..3c02cbb8 100644 --- a/dist/multiple-select-vue.min.js +++ b/dist/multiple-select-vue.min.js @@ -1,7 +1,7 @@ /** * multiple-select - Multiple select is a jQuery plugin to select multiple elements with checkboxes :). * - * @version v1.6.0 + * @version v1.7.0 * @homepage http://multiple-select.wenzhixin.net.cn * @author wenzhixin (http://wenzhixin.net.cn/) * @license MIT diff --git a/dist/multiple-select.js b/dist/multiple-select.js index 0d57928e..5b9eb18e 100644 --- a/dist/multiple-select.js +++ b/dist/multiple-select.js @@ -181,7 +181,7 @@ var objectGetOwnPropertyDescriptor = {}; - var fails$m = function (exec) { + var fails$n = function (exec) { try { return !!exec(); } catch (error) { @@ -189,17 +189,17 @@ } }; - var fails$l = fails$m; + var fails$m = fails$n; // Detect IE8's incomplete defineProperty implementation - var descriptors = !fails$l(function () { + var descriptors = !fails$m(function () { // eslint-disable-next-line es/no-object-defineproperty -- required for testing return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7; }); - var fails$k = fails$m; + var fails$l = fails$n; - var functionBindNative = !fails$k(function () { + var functionBindNative = !fails$l(function () { // eslint-disable-next-line es/no-function-prototype-bind -- safe var test = (function () { /* empty */ }).bind(); // eslint-disable-next-line no-prototype-builtins -- safe @@ -208,10 +208,10 @@ var NATIVE_BIND$3 = functionBindNative; - var call$b = Function.prototype.call; + var call$c = Function.prototype.call; - var functionCall = NATIVE_BIND$3 ? call$b.bind(call$b) : function () { - return call$b.apply(call$b, arguments); + var functionCall = NATIVE_BIND$3 ? call$c.bind(call$c) : function () { + return call$c.apply(call$c, arguments); }; var objectPropertyIsEnumerable = {}; @@ -242,12 +242,12 @@ var NATIVE_BIND$2 = functionBindNative; var FunctionPrototype$3 = Function.prototype; - var call$a = FunctionPrototype$3.call; - var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$3.bind.bind(call$a, call$a); + var call$b = FunctionPrototype$3.call; + var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$3.bind.bind(call$b, call$b); var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) { return function () { - return call$a.apply(fn, arguments); + return call$b.apply(fn, arguments); }; }; @@ -261,14 +261,14 @@ }; var uncurryThis$o = functionUncurryThis; - var fails$j = fails$m; + var fails$k = fails$n; var classof$8 = classofRaw$2; var $Object$3 = Object; var split = uncurryThis$o(''.split); // fallback for non-array-like ES3 and non-enumerable old V8 strings - var indexedObject = fails$j(function () { + var indexedObject = fails$k(function () { // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346 // eslint-disable-next-line no-prototype-builtins -- safe return !$Object$3('z').propertyIsEnumerable(0); @@ -383,13 +383,13 @@ /* eslint-disable es/no-symbol -- required for testing */ var V8_VERSION$2 = engineV8Version; - var fails$i = fails$m; + var fails$j = fails$n; var global$c = global$f; var $String$4 = global$c.String; // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing - var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$i(function () { + var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$j(function () { var symbol = Symbol(); // Chrome 38 Symbol has incorrect toString conversion // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances @@ -410,7 +410,7 @@ var getBuiltIn$3 = getBuiltIn$4; var isCallable$b = isCallable$e; - var isPrototypeOf = objectIsPrototypeOf; + var isPrototypeOf$1 = objectIsPrototypeOf; var USE_SYMBOL_AS_UID$1 = useSymbolAsUid; var $Object$2 = Object; @@ -419,7 +419,7 @@ return typeof it == 'symbol'; } : function (it) { var $Symbol = getBuiltIn$3('Symbol'); - return isCallable$b($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it)); + return isCallable$b($Symbol) && isPrototypeOf$1($Symbol.prototype, $Object$2(it)); }; var $String$3 = String; @@ -453,7 +453,7 @@ return isNullOrUndefined$4(func) ? undefined : aCallable$2(func); }; - var call$9 = functionCall; + var call$a = functionCall; var isCallable$9 = isCallable$e; var isObject$8 = isObject$9; @@ -463,9 +463,9 @@ // https://tc39.es/ecma262/#sec-ordinarytoprimitive var ordinaryToPrimitive$1 = function (input, pref) { var fn, val; - if (pref === 'string' && isCallable$9(fn = input.toString) && !isObject$8(val = call$9(fn, input))) return val; - if (isCallable$9(fn = input.valueOf) && !isObject$8(val = call$9(fn, input))) return val; - if (pref !== 'string' && isCallable$9(fn = input.toString) && !isObject$8(val = call$9(fn, input))) return val; + if (pref === 'string' && isCallable$9(fn = input.toString) && !isObject$8(val = call$a(fn, input))) return val; + if (isCallable$9(fn = input.valueOf) && !isObject$8(val = call$a(fn, input))) return val; + if (pref !== 'string' && isCallable$9(fn = input.toString) && !isObject$8(val = call$a(fn, input))) return val; throw $TypeError$8("Can't convert object to primitive value"); }; @@ -540,7 +540,7 @@ var global$9 = global$f; var shared$3 = sharedExports; - var hasOwn$6 = hasOwnProperty_1; + var hasOwn$7 = hasOwnProperty_1; var uid$1 = uid$2; var NATIVE_SYMBOL = symbolConstructorDetection; var USE_SYMBOL_AS_UID = useSymbolAsUid; @@ -550,14 +550,14 @@ var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1; var wellKnownSymbol$d = function (name) { - if (!hasOwn$6(WellKnownSymbolsStore, name)) { - WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name) + if (!hasOwn$7(WellKnownSymbolsStore, name)) { + WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$7(Symbol$1, name) ? Symbol$1[name] : createWellKnownSymbol('Symbol.' + name); } return WellKnownSymbolsStore[name]; }; - var call$8 = functionCall; + var call$9 = functionCall; var isObject$7 = isObject$9; var isSymbol$1 = isSymbol$2; var getMethod$3 = getMethod$4; @@ -575,7 +575,7 @@ var result; if (exoticToPrim) { if (pref === undefined) pref = 'default'; - result = call$8(exoticToPrim, input, pref); + result = call$9(exoticToPrim, input, pref); if (!isObject$7(result) || isSymbol$1(result)) return result; throw $TypeError$7("Can't convert object to primitive value"); } @@ -605,11 +605,11 @@ }; var DESCRIPTORS$a = descriptors; - var fails$h = fails$m; + var fails$i = fails$n; var createElement = documentCreateElement$2; // Thanks to IE8 for its funny defineProperty - var ie8DomDefine = !DESCRIPTORS$a && !fails$h(function () { + var ie8DomDefine = !DESCRIPTORS$a && !fails$i(function () { // eslint-disable-next-line es/no-object-defineproperty -- required for testing return Object.defineProperty(createElement('div'), 'a', { get: function () { return 7; } @@ -617,12 +617,12 @@ }); var DESCRIPTORS$9 = descriptors; - var call$7 = functionCall; + var call$8 = functionCall; var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable; var createPropertyDescriptor$2 = createPropertyDescriptor$3; var toIndexedObject$6 = toIndexedObject$7; var toPropertyKey$2 = toPropertyKey$3; - var hasOwn$5 = hasOwnProperty_1; + var hasOwn$6 = hasOwnProperty_1; var IE8_DOM_DEFINE$1 = ie8DomDefine; // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe @@ -636,17 +636,17 @@ if (IE8_DOM_DEFINE$1) try { return $getOwnPropertyDescriptor$1(O, P); } catch (error) { /* empty */ } - if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call$7(propertyIsEnumerableModule$1.f, O, P), O[P]); + if (hasOwn$6(O, P)) return createPropertyDescriptor$2(!call$8(propertyIsEnumerableModule$1.f, O, P), O[P]); }; var objectDefineProperty = {}; var DESCRIPTORS$8 = descriptors; - var fails$g = fails$m; + var fails$h = fails$n; // V8 ~ Chrome 36- // https://bugs.chromium.org/p/v8/issues/detail?id=3334 - var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$g(function () { + var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$h(function () { // eslint-disable-next-line es/no-object-defineproperty -- required for testing return Object.defineProperty(function () { /* empty */ }, 'prototype', { value: 42, @@ -660,7 +660,7 @@ var $TypeError$6 = TypeError; // `Assert: Type(argument) is Object` - var anObject$a = function (argument) { + var anObject$b = function (argument) { if (isObject$5(argument)) return argument; throw $TypeError$6($String$2(argument) + ' is not an object'); }; @@ -668,7 +668,7 @@ var DESCRIPTORS$7 = descriptors; var IE8_DOM_DEFINE = ie8DomDefine; var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug; - var anObject$9 = anObject$a; + var anObject$a = anObject$b; var toPropertyKey$1 = toPropertyKey$3; var $TypeError$5 = TypeError; @@ -683,9 +683,9 @@ // `Object.defineProperty` method // https://tc39.es/ecma262/#sec-object.defineproperty objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) { - anObject$9(O); + anObject$a(O); P = toPropertyKey$1(P); - anObject$9(Attributes); + anObject$a(Attributes); if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) { var current = $getOwnPropertyDescriptor(O, P); if (current && current[WRITABLE]) { @@ -698,9 +698,9 @@ } } return $defineProperty(O, P, Attributes); } : $defineProperty : function defineProperty(O, P, Attributes) { - anObject$9(O); + anObject$a(O); P = toPropertyKey$1(P); - anObject$9(Attributes); + anObject$a(Attributes); if (IE8_DOM_DEFINE) try { return $defineProperty(O, P, Attributes); } catch (error) { /* empty */ } @@ -723,13 +723,13 @@ var makeBuiltIn$3 = {exports: {}}; var DESCRIPTORS$5 = descriptors; - var hasOwn$4 = hasOwnProperty_1; + var hasOwn$5 = hasOwnProperty_1; var FunctionPrototype$2 = Function.prototype; // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor; - var EXISTS = hasOwn$4(FunctionPrototype$2, 'name'); + var EXISTS = hasOwn$5(FunctionPrototype$2, 'name'); // additional protection from minified / mangled / dropped function names var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something'; var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype$2, 'name').configurable)); @@ -777,7 +777,7 @@ var global$6 = global$f; var isObject$4 = isObject$9; var createNonEnumerableProperty$3 = createNonEnumerableProperty$4; - var hasOwn$3 = hasOwnProperty_1; + var hasOwn$4 = hasOwnProperty_1; var shared$1 = sharedStore; var sharedKey$1 = sharedKey$2; var hiddenKeys$3 = hiddenKeys$4; @@ -823,16 +823,16 @@ var STATE = sharedKey$1('state'); hiddenKeys$3[STATE] = true; set = function (it, metadata) { - if (hasOwn$3(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED); + if (hasOwn$4(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED); metadata.facade = it; createNonEnumerableProperty$3(it, STATE, metadata); return metadata; }; get = function (it) { - return hasOwn$3(it, STATE) ? it[STATE] : {}; + return hasOwn$4(it, STATE) ? it[STATE] : {}; }; has = function (it) { - return hasOwn$3(it, STATE); + return hasOwn$4(it, STATE); }; } @@ -845,9 +845,9 @@ }; var uncurryThis$j = functionUncurryThis; - var fails$f = fails$m; + var fails$g = fails$n; var isCallable$6 = isCallable$e; - var hasOwn$2 = hasOwnProperty_1; + var hasOwn$3 = hasOwnProperty_1; var DESCRIPTORS$4 = descriptors; var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE; var inspectSource$1 = inspectSource$2; @@ -862,7 +862,7 @@ var replace$3 = uncurryThis$j(''.replace); var join = uncurryThis$j([].join); - var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$f(function () { + var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$g(function () { return defineProperty$3(function () { /* empty */ }, 'length', { value: 8 }).length !== 8; }); @@ -874,21 +874,21 @@ } if (options && options.getter) name = 'get ' + name; if (options && options.setter) name = 'set ' + name; - if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) { + if (!hasOwn$3(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) { if (DESCRIPTORS$4) defineProperty$3(value, 'name', { value: name, configurable: true }); else value.name = name; } - if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) { + if (CONFIGURABLE_LENGTH && options && hasOwn$3(options, 'arity') && value.length !== options.arity) { defineProperty$3(value, 'length', { value: options.arity }); } try { - if (options && hasOwn$2(options, 'constructor') && options.constructor) { + if (options && hasOwn$3(options, 'constructor') && options.constructor) { if (DESCRIPTORS$4) defineProperty$3(value, 'prototype', { writable: false }); // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable } else if (value.prototype) value.prototype = undefined; } catch (error) { /* empty */ } var state = enforceInternalState(value); - if (!hasOwn$2(state, 'source')) { + if (!hasOwn$3(state, 'source')) { state.source = join(TEMPLATE, typeof name == 'string' ? name : ''); } return value; }; @@ -906,7 +906,7 @@ var makeBuiltIn$1 = makeBuiltInExports; var defineGlobalProperty$1 = defineGlobalProperty$3; - var defineBuiltIn$3 = function (O, key, value, options) { + var defineBuiltIn$4 = function (O, key, value, options) { if (!options) options = {}; var simple = options.enumerable; var name = options.name !== undefined ? options.name : key; @@ -1017,7 +1017,7 @@ }; var uncurryThis$i = functionUncurryThis; - var hasOwn$1 = hasOwnProperty_1; + var hasOwn$2 = hasOwnProperty_1; var toIndexedObject$4 = toIndexedObject$7; var indexOf$1 = arrayIncludes.indexOf; var hiddenKeys$2 = hiddenKeys$4; @@ -1029,9 +1029,9 @@ var i = 0; var result = []; var key; - for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && push$4(result, key); + for (key in O) !hasOwn$2(hiddenKeys$2, key) && hasOwn$2(O, key) && push$4(result, key); // Don't enum bug & hidden keys - while (names.length > i) if (hasOwn$1(O, key = names[i++])) { + while (names.length > i) if (hasOwn$2(O, key = names[i++])) { ~indexOf$1(result, key) || push$4(result, key); } return result; @@ -1069,18 +1069,18 @@ var uncurryThis$h = functionUncurryThis; var getOwnPropertyNamesModule = objectGetOwnPropertyNames; var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols; - var anObject$8 = anObject$a; + var anObject$9 = anObject$b; var concat$2 = uncurryThis$h([].concat); // all object keys, includes non-enumerable and symbols var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) { - var keys = getOwnPropertyNamesModule.f(anObject$8(it)); + var keys = getOwnPropertyNamesModule.f(anObject$9(it)); var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f; return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys; }; - var hasOwn = hasOwnProperty_1; + var hasOwn$1 = hasOwnProperty_1; var ownKeys = ownKeys$1; var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor; var definePropertyModule$2 = objectDefineProperty; @@ -1091,13 +1091,13 @@ var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; for (var i = 0; i < keys.length; i++) { var key = keys[i]; - if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) { + if (!hasOwn$1(target, key) && !(exceptions && hasOwn$1(exceptions, key))) { defineProperty(target, key, getOwnPropertyDescriptor(source, key)); } } }; - var fails$e = fails$m; + var fails$f = fails$n; var isCallable$4 = isCallable$e; var replacement = /#|\.prototype\./; @@ -1106,7 +1106,7 @@ var value = data[normalize(feature)]; return value == POLYFILL ? true : value == NATIVE ? false - : isCallable$4(detection) ? fails$e(detection) + : isCallable$4(detection) ? fails$f(detection) : !!detection; }; @@ -1123,7 +1123,7 @@ var global$5 = global$f; var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f; var createNonEnumerableProperty$2 = createNonEnumerableProperty$4; - var defineBuiltIn$2 = defineBuiltIn$3; + var defineBuiltIn$3 = defineBuiltIn$4; var defineGlobalProperty = defineGlobalProperty$3; var copyConstructorProperties = copyConstructorProperties$1; var isForced = isForced_1; @@ -1171,7 +1171,7 @@ if (options.sham || (targetProperty && targetProperty.sham)) { createNonEnumerableProperty$2(sourceProperty, 'sham', true); } - defineBuiltIn$2(target, key, sourceProperty, options); + defineBuiltIn$3(target, key, sourceProperty, options); } }; @@ -1223,12 +1223,12 @@ return $String(argument); }; - var anObject$7 = anObject$a; + var anObject$8 = anObject$b; // `RegExp.prototype.flags` getter implementation // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags var regexpFlags$1 = function () { - var that = anObject$7(this); + var that = anObject$8(this); var result = ''; if (that.hasIndices) result += 'd'; if (that.global) result += 'g'; @@ -1241,13 +1241,13 @@ return result; }; - var fails$d = fails$m; + var fails$e = fails$n; var global$4 = global$f; // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError var $RegExp$2 = global$4.RegExp; - var UNSUPPORTED_Y$2 = fails$d(function () { + var UNSUPPORTED_Y$2 = fails$e(function () { var re = $RegExp$2('a', 'y'); re.lastIndex = 2; return re.exec('abcd') != null; @@ -1255,11 +1255,11 @@ // UC Browser bug // https://github.com/zloirock/core-js/issues/1008 - var MISSED_STICKY = UNSUPPORTED_Y$2 || fails$d(function () { + var MISSED_STICKY = UNSUPPORTED_Y$2 || fails$e(function () { return !$RegExp$2('a', 'y').sticky; }); - var BROKEN_CARET = UNSUPPORTED_Y$2 || fails$d(function () { + var BROKEN_CARET = UNSUPPORTED_Y$2 || fails$e(function () { // https://bugzilla.mozilla.org/show_bug.cgi?id=773687 var re = $RegExp$2('^r', 'gy'); re.lastIndex = 2; @@ -1287,7 +1287,7 @@ var DESCRIPTORS$3 = descriptors; var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug; var definePropertyModule$1 = objectDefineProperty; - var anObject$6 = anObject$a; + var anObject$7 = anObject$b; var toIndexedObject$3 = toIndexedObject$7; var objectKeys$2 = objectKeys$3; @@ -1295,7 +1295,7 @@ // https://tc39.es/ecma262/#sec-object.defineproperties // eslint-disable-next-line es/no-object-defineproperties -- safe objectDefineProperties.f = DESCRIPTORS$3 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) { - anObject$6(O); + anObject$7(O); var props = toIndexedObject$3(Properties); var keys = objectKeys$2(Properties); var length = keys.length; @@ -1311,7 +1311,7 @@ /* global ActiveXObject -- old IE, WSH */ - var anObject$5 = anObject$a; + var anObject$6 = anObject$b; var definePropertiesModule = objectDefineProperties; var enumBugKeys = enumBugKeys$3; var hiddenKeys = hiddenKeys$4; @@ -1385,7 +1385,7 @@ var objectCreate = Object.create || function create(O, Properties) { var result; if (O !== null) { - EmptyConstructor[PROTOTYPE] = anObject$5(O); + EmptyConstructor[PROTOTYPE] = anObject$6(O); result = new EmptyConstructor(); EmptyConstructor[PROTOTYPE] = null; // add "__proto__" for Object.getPrototypeOf polyfill @@ -1394,24 +1394,24 @@ return Properties === undefined ? result : definePropertiesModule.f(result, Properties); }; - var fails$c = fails$m; + var fails$d = fails$n; var global$3 = global$f; // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError var $RegExp$1 = global$3.RegExp; - var regexpUnsupportedDotAll = fails$c(function () { + var regexpUnsupportedDotAll = fails$d(function () { var re = $RegExp$1('.', 's'); return !(re.dotAll && re.exec('\n') && re.flags === 's'); }); - var fails$b = fails$m; + var fails$c = fails$n; var global$2 = global$f; // babel-minify and Closure Compiler transpiles RegExp('(?b)', 'g') -> /(?b)/g and it causes SyntaxError var $RegExp = global$2.RegExp; - var regexpUnsupportedNcg = fails$b(function () { + var regexpUnsupportedNcg = fails$c(function () { var re = $RegExp('(?b)', 'g'); return re.exec('b').groups.a !== 'b' || 'b'.replace(re, '$c') !== 'bc'; @@ -1419,7 +1419,7 @@ /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */ /* eslint-disable regexp/no-useless-quantifier -- testing */ - var call$6 = functionCall; + var call$7 = functionCall; var uncurryThis$g = functionUncurryThis; var toString$7 = toString$8; var regexpFlags = regexpFlags$1; @@ -1441,8 +1441,8 @@ var UPDATES_LAST_INDEX_WRONG = (function () { var re1 = /a/; var re2 = /b*/g; - call$6(nativeExec, re1, 'a'); - call$6(nativeExec, re2, 'a'); + call$7(nativeExec, re1, 'a'); + call$7(nativeExec, re2, 'a'); return re1.lastIndex !== 0 || re2.lastIndex !== 0; })(); @@ -1463,14 +1463,14 @@ if (raw) { raw.lastIndex = re.lastIndex; - result = call$6(patchedExec, raw, str); + result = call$7(patchedExec, raw, str); re.lastIndex = raw.lastIndex; return result; } var groups = state.groups; var sticky = UNSUPPORTED_Y$1 && re.sticky; - var flags = call$6(regexpFlags, re); + var flags = call$7(regexpFlags, re); var source = re.source; var charsAdded = 0; var strCopy = str; @@ -1498,7 +1498,7 @@ } if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex; - match = call$6(nativeExec, sticky ? reCopy : re, strCopy); + match = call$7(nativeExec, sticky ? reCopy : re, strCopy); if (sticky) { if (match) { @@ -1513,7 +1513,7 @@ if (NPCG_INCLUDED && match && match.length > 1) { // Fix browsers whose `exec` methods don't consistently return `undefined` // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/ - call$6(nativeReplace, match[0], reCopy, function () { + call$7(nativeReplace, match[0], reCopy, function () { for (i = 1; i < arguments.length - 2; i++) { if (arguments[i] === undefined) match[i] = undefined; } @@ -1556,26 +1556,26 @@ // TODO: Remove from `core-js@4` since it's moved to entry points var uncurryThis$e = functionUncurryThisClause; - var defineBuiltIn$1 = defineBuiltIn$3; + var defineBuiltIn$2 = defineBuiltIn$4; var regexpExec$2 = regexpExec$3; - var fails$a = fails$m; + var fails$b = fails$n; var wellKnownSymbol$9 = wellKnownSymbol$d; var createNonEnumerableProperty$1 = createNonEnumerableProperty$4; var SPECIES$4 = wellKnownSymbol$9('species'); - var RegExpPrototype = RegExp.prototype; + var RegExpPrototype$2 = RegExp.prototype; var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) { var SYMBOL = wellKnownSymbol$9(KEY); - var DELEGATES_TO_SYMBOL = !fails$a(function () { + var DELEGATES_TO_SYMBOL = !fails$b(function () { // String methods call symbol-named RegEp methods var O = {}; O[SYMBOL] = function () { return 7; }; return ''[KEY](O) != 7; }); - var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$a(function () { + var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$b(function () { // Symbol-named RegExp methods call .exec var execCalled = false; var re = /a/; @@ -1608,7 +1608,7 @@ var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) { var uncurriedNativeMethod = uncurryThis$e(nativeMethod); var $exec = regexp.exec; - if ($exec === regexpExec$2 || $exec === RegExpPrototype.exec) { + if ($exec === regexpExec$2 || $exec === RegExpPrototype$2.exec) { if (DELEGATES_TO_SYMBOL && !forceStringMethod) { // The native String method already delegates to @@method (this // polyfilled function), leasing to infinite recursion. @@ -1620,11 +1620,11 @@ return { done: false }; }); - defineBuiltIn$1(String.prototype, KEY, methods[0]); - defineBuiltIn$1(RegExpPrototype, SYMBOL, methods[1]); + defineBuiltIn$2(String.prototype, KEY, methods[0]); + defineBuiltIn$2(RegExpPrototype$2, SYMBOL, methods[1]); } - if (SHAM) createNonEnumerableProperty$1(RegExpPrototype[SYMBOL], 'sham', true); + if (SHAM) createNonEnumerableProperty$1(RegExpPrototype$2[SYMBOL], 'sham', true); }; // `SameValue` abstract operation @@ -1635,8 +1635,8 @@ return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y; }; - var call$5 = functionCall; - var anObject$4 = anObject$a; + var call$6 = functionCall; + var anObject$5 = anObject$b; var isCallable$2 = isCallable$e; var classof$5 = classofRaw$2; var regexpExec$1 = regexpExec$3; @@ -1648,17 +1648,17 @@ var regexpExecAbstract = function (R, S) { var exec = R.exec; if (isCallable$2(exec)) { - var result = call$5(exec, R, S); - if (result !== null) anObject$4(result); + var result = call$6(exec, R, S); + if (result !== null) anObject$5(result); return result; } - if (classof$5(R) === 'RegExp') return call$5(regexpExec$1, R, S); + if (classof$5(R) === 'RegExp') return call$6(regexpExec$1, R, S); throw $TypeError$4('RegExp#exec called on incompatible receiver'); }; - var call$4 = functionCall; + var call$5 = functionCall; var fixRegExpWellKnownSymbolLogic$2 = fixRegexpWellKnownSymbolLogic; - var anObject$3 = anObject$a; + var anObject$4 = anObject$b; var isNullOrUndefined$3 = isNullOrUndefined$6; var requireObjectCoercible$5 = requireObjectCoercible$8; var sameValue = sameValue$1; @@ -1674,12 +1674,12 @@ function search(regexp) { var O = requireObjectCoercible$5(this); var searcher = isNullOrUndefined$3(regexp) ? undefined : getMethod$2(regexp, SEARCH); - return searcher ? call$4(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString$6(O)); + return searcher ? call$5(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString$6(O)); }, // `RegExp.prototype[@@search]` method // https://tc39.es/ecma262/#sec-regexp.prototype-@@search function (string) { - var rx = anObject$3(this); + var rx = anObject$4(this); var S = toString$6(string); var res = maybeCallNative(nativeSearch, rx, S); @@ -1717,11 +1717,11 @@ var $$c = _export; var $includes = arrayIncludes.includes; - var fails$9 = fails$m; + var fails$a = fails$n; var addToUnscopables$1 = addToUnscopables$2; // FF99+ bug - var BROKEN_ON_SPARSE = fails$9(function () { + var BROKEN_ON_SPARSE = fails$a(function () { // eslint-disable-next-line es/no-array-prototype-includes -- detection return !Array(1).includes(); }); @@ -1832,8 +1832,8 @@ trim: createMethod$4(3) }; - var PROPER_FUNCTION_NAME = functionName.PROPER; - var fails$8 = fails$m; + var PROPER_FUNCTION_NAME$1 = functionName.PROPER; + var fails$9 = fails$n; var whitespaces = whitespaces$2; var non = '\u200B\u0085\u180E'; @@ -1841,10 +1841,10 @@ // check that a method works with the correct list // of whitespaces and has a correct name var stringTrimForced = function (METHOD_NAME) { - return fails$8(function () { + return fails$9(function () { return !!whitespaces[METHOD_NAME]() || non[METHOD_NAME]() !== non - || (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME); + || (PROPER_FUNCTION_NAME$1 && whitespaces[METHOD_NAME].name !== METHOD_NAME); }); }; @@ -1888,7 +1888,7 @@ }; var uncurryThis$b = functionUncurryThis; - var fails$7 = fails$m; + var fails$8 = fails$n; var isCallable$1 = isCallable$e; var classof$2 = classof$7; var getBuiltIn = getBuiltIn$4; @@ -1932,7 +1932,7 @@ // `IsConstructor` abstract operation // https://tc39.es/ecma262/#sec-isconstructor - var isConstructor$3 = !construct || fails$7(function () { + var isConstructor$3 = !construct || fails$8(function () { var called; return isConstructorModern(isConstructorModern.call) || !isConstructorModern(Object) @@ -1971,7 +1971,7 @@ return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length); }; - var fails$6 = fails$m; + var fails$7 = fails$n; var wellKnownSymbol$4 = wellKnownSymbol$d; var V8_VERSION$1 = engineV8Version; @@ -1981,7 +1981,7 @@ // We can't use this feature detection in V8 since it causes // deoptimization and serious performance degradation // https://github.com/zloirock/core-js/issues/677 - return V8_VERSION$1 >= 51 || !fails$6(function () { + return V8_VERSION$1 >= 51 || !fails$7(function () { var array = []; var constructor = array.constructor = {}; constructor[SPECIES$2] = function () { @@ -1992,7 +1992,7 @@ }; var $$9 = _export; - var fails$5 = fails$m; + var fails$6 = fails$n; var isArray$1 = isArray$3; var isObject$1 = isObject$9; var toObject$5 = toObject$7; @@ -2009,7 +2009,7 @@ // We can't use this feature detection in V8 since it causes // deoptimization and serious performance degradation // https://github.com/zloirock/core-js/issues/679 - var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$5(function () { + var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$6(function () { var array = []; array[IS_CONCAT_SPREADABLE] = false; return array.concat()[0] !== array; @@ -2051,8 +2051,8 @@ var DESCRIPTORS$2 = descriptors; var uncurryThis$a = functionUncurryThis; - var call$3 = functionCall; - var fails$4 = fails$m; + var call$4 = functionCall; + var fails$5 = fails$n; var objectKeys$1 = objectKeys$3; var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols; var propertyIsEnumerableModule = objectPropertyIsEnumerable; @@ -2067,7 +2067,7 @@ // `Object.assign` method // https://tc39.es/ecma262/#sec-object.assign - var objectAssign = !$assign || fails$4(function () { + var objectAssign = !$assign || fails$5(function () { // should have correct order of operations (Edge bug) if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$1({}, 'a', { enumerable: true, @@ -2101,7 +2101,7 @@ var key; while (length > j) { key = keys[j++]; - if (!DESCRIPTORS$2 || call$3(propertyIsEnumerable, S, key)) T[key] = S[key]; + if (!DESCRIPTORS$2 || call$4(propertyIsEnumerable, S, key)) T[key] = S[key]; } } return T; } : $assign; @@ -2116,7 +2116,7 @@ assign: assign }); - var VERSION = '1.6.0'; + var VERSION = '1.7.0'; var BLOCK_ROWS = 500; var CLUSTER_BLOCKS = 4; var DEFAULTS = { @@ -2190,6 +2190,9 @@ onOptgroupClick: function onOptgroupClick() { return false; }, + onBeforeClick: function onBeforeClick() { + return true; + }, onClick: function onClick() { return false; }, @@ -2235,11 +2238,11 @@ var FunctionPrototype$1 = Function.prototype; var apply$2 = FunctionPrototype$1.apply; - var call$2 = FunctionPrototype$1.call; + var call$3 = FunctionPrototype$1.call; // eslint-disable-next-line es/no-reflect -- safe - var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$2.bind(apply$2) : function () { - return call$2.apply(apply$2, arguments); + var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$3.bind(apply$2) : function () { + return call$3.apply(apply$2, arguments); }); var isConstructor$1 = isConstructor$3; @@ -2253,7 +2256,7 @@ throw $TypeError$1(tryToString(argument) + ' is not a constructor'); }; - var anObject$2 = anObject$a; + var anObject$3 = anObject$b; var aConstructor = aConstructor$1; var isNullOrUndefined$2 = isNullOrUndefined$6; var wellKnownSymbol$2 = wellKnownSymbol$d; @@ -2263,9 +2266,9 @@ // `SpeciesConstructor` abstract operation // https://tc39.es/ecma262/#sec-speciesconstructor var speciesConstructor$1 = function (O, defaultConstructor) { - var C = anObject$2(O).constructor; + var C = anObject$3(O).constructor; var S; - return C === undefined || isNullOrUndefined$2(S = anObject$2(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S); + return C === undefined || isNullOrUndefined$2(S = anObject$3(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S); }; var uncurryThis$9 = functionUncurryThis; @@ -2331,10 +2334,10 @@ }; var apply$1 = functionApply; - var call$1 = functionCall; + var call$2 = functionCall; var uncurryThis$8 = functionUncurryThis; var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic; - var anObject$1 = anObject$a; + var anObject$2 = anObject$b; var isNullOrUndefined$1 = isNullOrUndefined$6; var isRegExp = isRegexp; var requireObjectCoercible$1 = requireObjectCoercible$8; @@ -2347,7 +2350,7 @@ var callRegExpExec = regexpExecAbstract; var regexpExec = regexpExec$3; var stickyHelpers = regexpStickyHelpers; - var fails$3 = fails$m; + var fails$4 = fails$n; var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y; var MAX_UINT32 = 0xFFFFFFFF; @@ -2359,7 +2362,7 @@ // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec // Weex JS has frozen built-in prototypes, so use try / catch wrapper - var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails$3(function () { + var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails$4(function () { // eslint-disable-next-line regexp/no-empty-group -- required for testing var re = /(?:)/; var originalExec = re.exec; @@ -2389,7 +2392,7 @@ if (separator === undefined) return [string]; // If `separator` is not a regex, use native split if (!isRegExp(separator)) { - return call$1(nativeSplit, string, separator, lim); + return call$2(nativeSplit, string, separator, lim); } var output = []; var flags = (separator.ignoreCase ? 'i' : '') + @@ -2400,7 +2403,7 @@ // Make `global` and avoid `lastIndex` issues by working with a copy var separatorCopy = new RegExp(separator.source, flags + 'g'); var match, lastIndex, lastLength; - while (match = call$1(regexpExec, separatorCopy, string)) { + while (match = call$2(regexpExec, separatorCopy, string)) { lastIndex = separatorCopy.lastIndex; if (lastIndex > lastLastIndex) { push$3(output, stringSlice$2(string, lastLastIndex, match.index)); @@ -2419,7 +2422,7 @@ // Chakra, V8 } else if ('0'.split(undefined, 0).length) { internalSplit = function (separator, limit) { - return separator === undefined && limit === 0 ? [] : call$1(nativeSplit, this, separator, limit); + return separator === undefined && limit === 0 ? [] : call$2(nativeSplit, this, separator, limit); }; } else internalSplit = nativeSplit; @@ -2430,8 +2433,8 @@ var O = requireObjectCoercible$1(this); var splitter = isNullOrUndefined$1(separator) ? undefined : getMethod$1(separator, SPLIT); return splitter - ? call$1(splitter, separator, O, limit) - : call$1(internalSplit, toString$2(O), separator, limit); + ? call$2(splitter, separator, O, limit) + : call$2(internalSplit, toString$2(O), separator, limit); }, // `RegExp.prototype[@@split]` method // https://tc39.es/ecma262/#sec-regexp.prototype-@@split @@ -2439,7 +2442,7 @@ // NOTE: This cannot be properly polyfilled in engines that don't support // the 'y' flag. function (string, limit) { - var rx = anObject$1(this); + var rx = anObject$2(this); var S = toString$2(string); var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit); @@ -2487,11 +2490,11 @@ ]; }, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y); - var fails$2 = fails$m; + var fails$3 = fails$n; var arrayMethodIsStrict$3 = function (METHOD_NAME, argument) { var method = [][METHOD_NAME]; - return !!method && fails$2(function () { + return !!method && fails$3(function () { // eslint-disable-next-line no-useless-call -- required for testing method.call(null, argument || function () { return 1; }, 1); }); @@ -2671,13 +2674,13 @@ }; var TO_STRING_TAG_SUPPORT = toStringTagSupport; - var defineBuiltIn = defineBuiltIn$3; + var defineBuiltIn$1 = defineBuiltIn$4; var toString$1 = objectToString; // `Object.prototype.toString` method // https://tc39.es/ecma262/#sec-object.prototype.tostring if (!TO_STRING_TAG_SUPPORT) { - defineBuiltIn(Object.prototype, 'toString', toString$1, { unsafe: true }); + defineBuiltIn$1(Object.prototype, 'toString', toString$1, { unsafe: true }); } var $$5 = _export; @@ -2746,9 +2749,9 @@ var $$3 = _export; var toObject$2 = toObject$7; var nativeKeys = objectKeys$3; - var fails$1 = fails$m; + var fails$2 = fails$n; - var FAILS_ON_PRIMITIVES = fails$1(function () { nativeKeys(1); }); + var FAILS_ON_PRIMITIVES = fails$2(function () { nativeKeys(1); }); // `Object.keys` method // https://tc39.es/ecma262/#sec-object.keys @@ -2905,6 +2908,45 @@ } }); + var call$1 = functionCall; + var hasOwn = hasOwnProperty_1; + var isPrototypeOf = objectIsPrototypeOf; + var regExpFlags = regexpFlags$1; + + var RegExpPrototype$1 = RegExp.prototype; + + var regexpGetFlags = function (R) { + var flags = R.flags; + return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype$1, R) + ? call$1(regExpFlags, R) : flags; + }; + + var PROPER_FUNCTION_NAME = functionName.PROPER; + var defineBuiltIn = defineBuiltIn$4; + var anObject$1 = anObject$b; + var $toString = toString$8; + var fails$1 = fails$n; + var getRegExpFlags = regexpGetFlags; + + var TO_STRING = 'toString'; + var RegExpPrototype = RegExp.prototype; + var nativeToString = RegExpPrototype[TO_STRING]; + + var NOT_GENERIC = fails$1(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; }); + // FF44- RegExp#toString has a wrong name + var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name != TO_STRING; + + // `RegExp.prototype.toString` method + // https://tc39.es/ecma262/#sec-regexp.prototype.tostring + if (NOT_GENERIC || INCORRECT_NAME) { + defineBuiltIn(RegExp.prototype, TO_STRING, function toString() { + var R = anObject$1(this); + var pattern = $toString(R.source); + var flags = $toString(getRegExpFlags(R)); + return '/' + pattern + '/' + flags; + }, { unsafe: true }); + } + var VirtualScroll = /*#__PURE__*/function () { function VirtualScroll(options) { var _this = this; @@ -3078,8 +3120,8 @@ var call = functionCall; var uncurryThis = functionUncurryThis; var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic; - var fails = fails$m; - var anObject = anObject$a; + var fails = fails$n; + var anObject = anObject$b; var isCallable = isCallable$e; var isNullOrUndefined = isNullOrUndefined$6; var toIntegerOrInfinity = toIntegerOrInfinity$4; @@ -3700,9 +3742,9 @@ this.tabIndex = el.getAttribute('tabindex'); var tabIndex = ''; if (this.tabIndex !== null) { - this.$el.attr('tabindex', -1); tabIndex = this.tabIndex && "tabindex=\"".concat(this.tabIndex, "\""); } + this.$el.attr('tabindex', -1); this.$choice = $$e("\n \n ")); // default position is bottom @@ -3969,7 +4011,7 @@ var _this6 = this; var rows = []; if (this.options.selectAll && !this.options.single) { - rows.push("\n
      • \n \n
      • \n ")); + rows.push("\n
      • \n \n
      • \n ")); } this.updateData = []; this.data.forEach(function (row) { @@ -4001,11 +4043,11 @@ var _customStyle = this.options.styler(row); var _style = _customStyle ? "style=\"".concat(_customStyle, "\"") : ''; var html = []; - var group = this.options.hideOptgroupCheckboxes || this.options.single ? "") : ""); + var group = this.options.hideOptgroupCheckboxes || this.options.single ? "") : ""); if (!classes.includes('hide-radio') && (this.options.hideOptgroupCheckboxes || this.options.single)) { classes += 'hide-radio '; } - html.push("\n
      • \n \n
      • \n ")); + html.push("\n
      • \n \n
      • \n ")); row.children.forEach(function (child) { html.push.apply(html, _toConsumableArray(_this7.initListItem(child, 1))); }); @@ -4020,7 +4062,7 @@ if (row.divider) { return '
      • '; } - return ["\n
      • \n \n
      • \n ")]; + return ["\n
      • \n \n
      • \n ")]; } }, { key: "events", @@ -4118,6 +4160,15 @@ var $this = $$e(e.currentTarget); var checked = $this.prop('checked'); var option = findByParam(_this8.data, '_key', $this.data('key')); + var close = function close() { + if (_this8.options.single && _this8.options.isOpen && !_this8.options.keepOpen) { + _this8.close(); + } + }; + if (_this8.options.onBeforeClick(option) === false) { + close(); + return; + } _this8._check(option, checked); _this8.options.onClick(removeUndefined({ text: option.text, @@ -4125,8 +4176,33 @@ selected: option.selected, data: option._data })); - if (_this8.options.single && _this8.options.isOpen && !_this8.options.keepOpen) { - _this8.close(); + close(); + }); + this.$ul.find('li').off('keydown').on('keydown', function (e) { + var $this = $$e(e.currentTarget); + var $divider; + var $li; + switch (e.key) { + case 'ArrowUp': + e.preventDefault(); + $divider = $this.prev('li.option-divider'); + $li = $divider.length ? $divider : $this; + $li.prev().trigger('focus'); + break; + case 'ArrowDown': + e.preventDefault(); + $divider = $this.next('li.option-divider'); + $li = $divider.length ? $divider : $this; + $li.next().trigger('focus'); + break; + case 'Enter': + e.preventDefault(); + $this.find('input').trigger('click'); + if (_this8.options.single) { + _this8.$choice.trigger('focus'); + } + break; + // ignore } }); } @@ -4545,7 +4621,7 @@ }, { key: "filter", value: function filter(ignoreTrigger) { - var originalSearch = $$e.trim(this.$searchInput.val()); + var originalSearch = this.$searchInput.val().trim(); var search = originalSearch.toLowerCase(); if (this.filterText === search) { return; @@ -4559,7 +4635,7 @@ if (row.type === 'optgroup') { if (this.options.filterGroup) { var visible = this.options.customFilter({ - label: removeDiacritics(row.label.toLowerCase()), + label: removeDiacritics(row.label.toString().toLowerCase()), search: removeDiacritics(search), originalLabel: row.label, originalSearch: originalSearch, @@ -4585,7 +4661,7 @@ for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) { var _child = _step11.value; _child.visible = this.options.customFilter({ - text: removeDiacritics(_child.text.toLowerCase()), + text: removeDiacritics(_child.text.toString().toLowerCase()), search: removeDiacritics(search), originalText: _child.text, originalSearch: originalSearch, @@ -4604,7 +4680,7 @@ } } else { row.visible = this.options.customFilter({ - text: removeDiacritics(row.text.toLowerCase()), + text: removeDiacritics(row.text.toString().toLowerCase()), search: removeDiacritics(search), originalText: row.text, originalSearch: originalSearch, @@ -4621,7 +4697,7 @@ this.initSelected(ignoreTrigger); this.updateSelected(); if (!ignoreTrigger) { - this.options.onFilter(search); + this.options.onFilter(originalSearch); } } }, { @@ -4672,6 +4748,7 @@ }); return typeof value !== 'undefined' ? value : this; }; + $$e.fn.multipleSelect.Constructor = MultipleSelect; $$e.fn.multipleSelect.defaults = Constants.DEFAULTS; $$e.fn.multipleSelect.locales = Constants.LOCALES; $$e.fn.multipleSelect.methods = Constants.METHODS; diff --git a/dist/multiple-select.min.css b/dist/multiple-select.min.css index fb88d710..c8344db2 100644 --- a/dist/multiple-select.min.css +++ b/dist/multiple-select.min.css @@ -1,7 +1,7 @@ /** * multiple-select - Multiple select is a jQuery plugin to select multiple elements with checkboxes :). * - * @version v1.6.0 + * @version v1.7.0 * @homepage http://multiple-select.wenzhixin.net.cn * @author wenzhixin (http://wenzhixin.net.cn/) * @license MIT diff --git a/dist/multiple-select.min.js b/dist/multiple-select.min.js index feedb131..eaa097b8 100644 --- a/dist/multiple-select.min.js +++ b/dist/multiple-select.min.js @@ -1,10 +1,10 @@ /** * multiple-select - Multiple select is a jQuery plugin to select multiple elements with checkboxes :). * - * @version v1.6.0 + * @version v1.7.0 * @homepage http://multiple-select.wenzhixin.net.cn * @author wenzhixin (http://wenzhixin.net.cn/) * @license MIT */ -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,i=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){a=!0,r=t},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw r}}}}var c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},h=function(t){return t&&t.Math==Math&&t},f=h("object"==typeof globalThis&&globalThis)||h("object"==typeof window&&window)||h("object"==typeof self&&self)||h("object"==typeof c&&c)||function(){return this}()||c||Function("return this")(),d={},p=function(t){try{return!!t()}catch(t){return!0}},v=!p((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),g=!p((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),E=g,b=Function.prototype.call,y=E?b.bind(b):function(){return b.apply(b,arguments)},m={},A={}.propertyIsEnumerable,C=Object.getOwnPropertyDescriptor,F=C&&!A.call({1:2},1);m.f=F?function(t){var e=C(this,t);return!!e&&e.enumerable}:A;var S,D,k=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},x=g,O=Function.prototype,w=O.call,$=x&&O.bind.bind(w,w),B=x?$:function(t){return function(){return w.apply(t,arguments)}},j=B,T=j({}.toString),L=j("".slice),I=function(t){return L(T(t),8,-1)},R=p,_=I,M=Object,P=B("".split),N=R((function(){return!M("z").propertyIsEnumerable(0)}))?function(t){return"String"==_(t)?P(t,""):M(t)}:M,H=function(t){return null==t},U=H,G=TypeError,W=function(t){if(U(t))throw G("Can't call method on "+t);return t},z=N,K=W,V=function(t){return z(K(t))},q="object"==typeof document&&document.all,Y={all:q,IS_HTMLDDA:void 0===q&&void 0!==q},X=Y.all,J=Y.IS_HTMLDDA?function(t){return"function"==typeof t||t===X}:function(t){return"function"==typeof t},Z=J,Q=Y.all,tt=Y.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:Z(t)||t===Q}:function(t){return"object"==typeof t?null!==t:Z(t)},et=f,nt=J,it=function(t,e){return arguments.length<2?(n=et[t],nt(n)?n:void 0):et[t]&&et[t][e];var n},ut=B({}.isPrototypeOf),rt=f,ot="undefined"!=typeof navigator&&String(navigator.userAgent)||"",st=rt.process,at=rt.Deno,lt=st&&st.versions||at&&at.version,ct=lt&<.v8;ct&&(D=(S=ct.split("."))[0]>0&&S[0]<4?1:+(S[0]+S[1])),!D&&ot&&(!(S=ot.match(/Edge\/(\d+)/))||S[1]>=74)&&(S=ot.match(/Chrome\/(\d+)/))&&(D=+S[1]);var ht=D,ft=ht,dt=p,pt=f.String,vt=!!Object.getOwnPropertySymbols&&!dt((function(){var t=Symbol();return!pt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&ft&&ft<41})),gt=vt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Et=it,bt=J,yt=ut,mt=Object,At=gt?function(t){return"symbol"==typeof t}:function(t){var e=Et("Symbol");return bt(e)&&yt(e.prototype,mt(t))},Ct=String,Ft=function(t){try{return Ct(t)}catch(t){return"Object"}},St=J,Dt=Ft,kt=TypeError,xt=function(t){if(St(t))return t;throw kt(Dt(t)+" is not a function")},Ot=xt,wt=H,$t=function(t,e){var n=t[e];return wt(n)?void 0:Ot(n)},Bt=y,jt=J,Tt=tt,Lt=TypeError,It={exports:{}},Rt=f,_t=Object.defineProperty,Mt=function(t,e){try{_t(Rt,t,{value:e,configurable:!0,writable:!0})}catch(n){Rt[t]=e}return e},Pt=Mt,Nt="__core-js_shared__",Ht=f[Nt]||Pt(Nt,{}),Ut=Ht;(It.exports=function(t,e){return Ut[t]||(Ut[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.30.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Gt=It.exports,Wt=W,zt=Object,Kt=function(t){return zt(Wt(t))},Vt=Kt,qt=B({}.hasOwnProperty),Yt=Object.hasOwn||function(t,e){return qt(Vt(t),e)},Xt=B,Jt=0,Zt=Math.random(),Qt=Xt(1..toString),te=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Qt(++Jt+Zt,36)},ee=Gt,ne=Yt,ie=te,ue=vt,re=gt,oe=f.Symbol,se=ee("wks"),ae=re?oe.for||oe:oe&&oe.withoutSetter||ie,le=function(t){return ne(se,t)||(se[t]=ue&&ne(oe,t)?oe[t]:ae("Symbol."+t)),se[t]},ce=y,he=tt,fe=At,de=$t,pe=function(t,e){var n,i;if("string"===e&&jt(n=t.toString)&&!Tt(i=Bt(n,t)))return i;if(jt(n=t.valueOf)&&!Tt(i=Bt(n,t)))return i;if("string"!==e&&jt(n=t.toString)&&!Tt(i=Bt(n,t)))return i;throw Lt("Can't convert object to primitive value")},ve=TypeError,ge=le("toPrimitive"),Ee=function(t,e){if(!he(t)||fe(t))return t;var n,i=de(t,ge);if(i){if(void 0===e&&(e="default"),n=ce(i,t,e),!he(n)||fe(n))return n;throw ve("Can't convert object to primitive value")}return void 0===e&&(e="number"),pe(t,e)},be=At,ye=function(t){var e=Ee(t,"string");return be(e)?e:e+""},me=tt,Ae=f.document,Ce=me(Ae)&&me(Ae.createElement),Fe=function(t){return Ce?Ae.createElement(t):{}},Se=Fe,De=!v&&!p((function(){return 7!=Object.defineProperty(Se("div"),"a",{get:function(){return 7}}).a})),ke=v,xe=y,Oe=m,we=k,$e=V,Be=ye,je=Yt,Te=De,Le=Object.getOwnPropertyDescriptor;d.f=ke?Le:function(t,e){if(t=$e(t),e=Be(e),Te)try{return Le(t,e)}catch(t){}if(je(t,e))return we(!xe(Oe.f,t,e),t[e])};var Ie={},Re=v&&p((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),_e=tt,Me=String,Pe=TypeError,Ne=function(t){if(_e(t))return t;throw Pe(Me(t)+" is not an object")},He=v,Ue=De,Ge=Re,We=Ne,ze=ye,Ke=TypeError,Ve=Object.defineProperty,qe=Object.getOwnPropertyDescriptor,Ye="enumerable",Xe="configurable",Je="writable";Ie.f=He?Ge?function(t,e,n){if(We(t),e=ze(e),We(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Je in n&&!n[Je]){var i=qe(t,e);i&&i[Je]&&(t[e]=n.value,n={configurable:Xe in n?n[Xe]:i[Xe],enumerable:Ye in n?n[Ye]:i[Ye],writable:!1})}return Ve(t,e,n)}:Ve:function(t,e,n){if(We(t),e=ze(e),We(n),Ue)try{return Ve(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Ke("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var Ze=Ie,Qe=k,tn=v?function(t,e,n){return Ze.f(t,e,Qe(1,n))}:function(t,e,n){return t[e]=n,t},en={exports:{}},nn=v,un=Yt,rn=Function.prototype,on=nn&&Object.getOwnPropertyDescriptor,sn=un(rn,"name"),an={EXISTS:sn,PROPER:sn&&"something"===function(){}.name,CONFIGURABLE:sn&&(!nn||nn&&on(rn,"name").configurable)},ln=J,cn=Ht,hn=B(Function.toString);ln(cn.inspectSource)||(cn.inspectSource=function(t){return hn(t)});var fn,dn,pn,vn=cn.inspectSource,gn=J,En=f.WeakMap,bn=gn(En)&&/native code/.test(String(En)),yn=te,mn=Gt("keys"),An=function(t){return mn[t]||(mn[t]=yn(t))},Cn={},Fn=bn,Sn=f,Dn=tt,kn=tn,xn=Yt,On=Ht,wn=An,$n=Cn,Bn="Object already initialized",jn=Sn.TypeError,Tn=Sn.WeakMap;if(Fn||On.state){var Ln=On.state||(On.state=new Tn);Ln.get=Ln.get,Ln.has=Ln.has,Ln.set=Ln.set,fn=function(t,e){if(Ln.has(t))throw jn(Bn);return e.facade=t,Ln.set(t,e),e},dn=function(t){return Ln.get(t)||{}},pn=function(t){return Ln.has(t)}}else{var In=wn("state");$n[In]=!0,fn=function(t,e){if(xn(t,In))throw jn(Bn);return e.facade=t,kn(t,In,e),e},dn=function(t){return xn(t,In)?t[In]:{}},pn=function(t){return xn(t,In)}}var Rn={set:fn,get:dn,has:pn,enforce:function(t){return pn(t)?dn(t):fn(t,{})},getterFor:function(t){return function(e){var n;if(!Dn(e)||(n=dn(e)).type!==t)throw jn("Incompatible receiver, "+t+" required");return n}}},_n=B,Mn=p,Pn=J,Nn=Yt,Hn=v,Un=an.CONFIGURABLE,Gn=vn,Wn=Rn.enforce,zn=Rn.get,Kn=String,Vn=Object.defineProperty,qn=_n("".slice),Yn=_n("".replace),Xn=_n([].join),Jn=Hn&&!Mn((function(){return 8!==Vn((function(){}),"length",{value:8}).length})),Zn=String(String).split("String"),Qn=en.exports=function(t,e,n){"Symbol("===qn(Kn(e),0,7)&&(e="["+Yn(Kn(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!Nn(t,"name")||Un&&t.name!==e)&&(Hn?Vn(t,"name",{value:e,configurable:!0}):t.name=e),Jn&&n&&Nn(n,"arity")&&t.length!==n.arity&&Vn(t,"length",{value:n.arity});try{n&&Nn(n,"constructor")&&n.constructor?Hn&&Vn(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var i=Wn(t);return Nn(i,"source")||(i.source=Xn(Zn,"string"==typeof e?e:"")),t};Function.prototype.toString=Qn((function(){return Pn(this)&&zn(this).source||Gn(this)}),"toString");var ti=en.exports,ei=J,ni=Ie,ii=ti,ui=Mt,ri=function(t,e,n,i){i||(i={});var u=i.enumerable,r=void 0!==i.name?i.name:e;if(ei(n)&&ii(n,r,i),i.global)u?t[e]=n:ui(e,n);else{try{i.unsafe?t[e]&&(u=!0):delete t[e]}catch(t){}u?t[e]=n:ni.f(t,e,{value:n,enumerable:!1,configurable:!i.nonConfigurable,writable:!i.nonWritable})}return t},oi={},si=Math.ceil,ai=Math.floor,li=Math.trunc||function(t){var e=+t;return(e>0?ai:si)(e)},ci=function(t){var e=+t;return e!=e||0===e?0:li(e)},hi=ci,fi=Math.max,di=Math.min,pi=function(t,e){var n=hi(t);return n<0?fi(n+e,0):di(n,e)},vi=ci,gi=Math.min,Ei=function(t){return t>0?gi(vi(t),9007199254740991):0},bi=Ei,yi=function(t){return bi(t.length)},mi=V,Ai=pi,Ci=yi,Fi=function(t){return function(e,n,i){var u,r=mi(e),o=Ci(r),s=Ai(i,o);if(t&&n!=n){for(;o>s;)if((u=r[s++])!=u)return!0}else for(;o>s;s++)if((t||s in r)&&r[s]===n)return t||s||0;return!t&&-1}},Si={includes:Fi(!0),indexOf:Fi(!1)},Di=Yt,ki=V,xi=Si.indexOf,Oi=Cn,wi=B([].push),$i=function(t,e){var n,i=ki(t),u=0,r=[];for(n in i)!Di(Oi,n)&&Di(i,n)&&wi(r,n);for(;e.length>u;)Di(i,n=e[u++])&&(~xi(r,n)||wi(r,n));return r},Bi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ji=$i,Ti=Bi.concat("length","prototype");oi.f=Object.getOwnPropertyNames||function(t){return ji(t,Ti)};var Li={};Li.f=Object.getOwnPropertySymbols;var Ii=it,Ri=oi,_i=Li,Mi=Ne,Pi=B([].concat),Ni=Ii("Reflect","ownKeys")||function(t){var e=Ri.f(Mi(t)),n=_i.f;return n?Pi(e,n(t)):e},Hi=Yt,Ui=Ni,Gi=d,Wi=Ie,zi=p,Ki=J,Vi=/#|\.prototype\./,qi=function(t,e){var n=Xi[Yi(t)];return n==Zi||n!=Ji&&(Ki(e)?zi(e):!!e)},Yi=qi.normalize=function(t){return String(t).replace(Vi,".").toLowerCase()},Xi=qi.data={},Ji=qi.NATIVE="N",Zi=qi.POLYFILL="P",Qi=qi,tu=f,eu=d.f,nu=tn,iu=ri,uu=Mt,ru=function(t,e,n){for(var i=Ui(e),u=Wi.f,r=Gi.f,o=0;oo;)ju.f(t,n=u[o++],i[n]);return t};var Ru,_u=it("document","documentElement"),Mu=Ne,Pu=ku,Nu=Bi,Hu=Cn,Uu=_u,Gu=Fe,Wu="prototype",zu="script",Ku=An("IE_PROTO"),Vu=function(){},qu=function(t){return"<"+zu+">"+t+""},Yu=function(t){t.write(qu("")),t.close();var e=t.parentWindow.Object;return t=null,e},Xu=function(){try{Ru=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;Xu="undefined"!=typeof document?document.domain&&Ru?Yu(Ru):(e=Gu("iframe"),n="java"+zu+":",e.style.display="none",Uu.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(qu("document.F=Object")),t.close(),t.F):Yu(Ru);for(var i=Nu.length;i--;)delete Xu[Wu][Nu[i]];return Xu()};Hu[Ku]=!0;var Ju,Zu,Qu=Object.create||function(t,e){var n;return null!==t?(Vu[Wu]=Mu(t),n=new Vu,Vu[Wu]=null,n[Ku]=t):n=Xu(),void 0===e?n:Pu.f(n,e)},tr=p,er=f.RegExp,nr=tr((function(){var t=er(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),ir=p,ur=f.RegExp,rr=ir((function(){var t=ur("(?
        b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")})),or=y,sr=B,ar=yu,lr=function(){var t=mu(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},cr=Du,hr=Qu,fr=Rn.get,dr=nr,pr=rr,vr=Gt("native-string-replace",String.prototype.replace),gr=RegExp.prototype.exec,Er=gr,br=sr("".charAt),yr=sr("".indexOf),mr=sr("".replace),Ar=sr("".slice),Cr=(Zu=/b*/g,or(gr,Ju=/a/,"a"),or(gr,Zu,"a"),0!==Ju.lastIndex||0!==Zu.lastIndex),Fr=cr.BROKEN_CARET,Sr=void 0!==/()??/.exec("")[1];(Cr||Sr||Fr||dr||pr)&&(Er=function(t){var e,n,i,u,r,o,s,a=this,l=fr(a),c=ar(t),h=l.raw;if(h)return h.lastIndex=a.lastIndex,e=or(Er,h,c),a.lastIndex=h.lastIndex,e;var f=l.groups,d=Fr&&a.sticky,p=or(lr,a),v=a.source,g=0,E=c;if(d&&(p=mr(p,"y",""),-1===yr(p,"g")&&(p+="g"),E=Ar(c,a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==br(c,a.lastIndex-1))&&(v="(?: "+v+")",E=" "+E,g++),n=new RegExp("^(?:"+v+")",p)),Sr&&(n=new RegExp("^"+v+"$(?!\\s)",p)),Cr&&(i=a.lastIndex),u=or(gr,d?n:a,E),d?u?(u.input=Ar(u.input,g),u[0]=Ar(u[0],g),u.index=a.lastIndex,a.lastIndex+=u[0].length):a.lastIndex=0:Cr&&u&&(a.lastIndex=a.global?u.index+u[0].length:i),Sr&&u&&u.length>1&&or(vr,u[0],n,(function(){for(r=1;r1?arguments[1]:void 0)}}),so("includes");var ao=tt,lo=I,co=le("match"),ho=function(t){var e;return ao(t)&&(void 0!==(e=t[co])?!!e:"RegExp"==lo(t))},fo=ho,po=TypeError,vo=le("match"),go=su,Eo=function(t){if(fo(t))throw po("The method doesn't accept regular expressions");return t},bo=W,yo=yu,mo=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[vo]=!1,"/./"[t](e)}catch(t){}}return!1},Ao=B("".indexOf);go({target:"String",proto:!0,forced:!mo("includes")},{includes:function(t){return!!~Ao(yo(bo(this)),yo(Eo(t)),arguments.length>1?arguments[1]:void 0)}});var Co="\t\n\v\f\r                 \u2028\u2029\ufeff",Fo=W,So=yu,Do=Co,ko=B("".replace),xo=RegExp("^["+Do+"]+"),Oo=RegExp("(^|[^"+Do+"])["+Do+"]+$"),wo=function(t){return function(e){var n=So(Fo(e));return 1&t&&(n=ko(n,xo,"")),2&t&&(n=ko(n,Oo,"$1")),n}},$o={start:wo(1),end:wo(2),trim:wo(3)},Bo=an.PROPER,jo=p,To=Co,Lo=$o.trim;su({target:"String",proto:!0,forced:function(t){return jo((function(){return!!To[t]()||"​…᠎"!=="​…᠎"[t]()||Bo&&To[t].name!==t}))}("trim")},{trim:function(){return Lo(this)}});var Io=I,Ro=Array.isArray||function(t){return"Array"==Io(t)},_o=TypeError,Mo=ye,Po=Ie,No=k,Ho=function(t,e,n){var i=Mo(e);i in t?Po.f(t,i,No(0,n)):t[i]=n},Uo=B,Go=p,Wo=J,zo=gu,Ko=vn,Vo=function(){},qo=[],Yo=it("Reflect","construct"),Xo=/^\s*(?:class|function)\b/,Jo=Uo(Xo.exec),Zo=!Xo.exec(Vo),Qo=function(t){if(!Wo(t))return!1;try{return Yo(Vo,qo,t),!0}catch(t){return!1}},ts=function(t){if(!Wo(t))return!1;switch(zo(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Zo||!!Jo(Xo,Ko(t))}catch(t){return!0}};ts.sham=!0;var es=!Yo||Go((function(){var t;return Qo(Qo.call)||!Qo(Object)||!Qo((function(){t=!0}))||t}))?ts:Qo,ns=Ro,is=es,us=tt,rs=le("species"),os=Array,ss=function(t){var e;return ns(t)&&(e=t.constructor,(is(e)&&(e===os||ns(e.prototype))||us(e)&&null===(e=e[rs]))&&(e=void 0)),void 0===e?os:e},as=function(t,e){return new(ss(t))(0===e?0:e)},ls=p,cs=ht,hs=le("species"),fs=function(t){return cs>=51||!ls((function(){var e=[];return(e.constructor={})[hs]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},ds=su,ps=p,vs=Ro,gs=tt,Es=Kt,bs=yi,ys=function(t){if(t>9007199254740991)throw _o("Maximum allowed index exceeded");return t},ms=Ho,As=as,Cs=fs,Fs=ht,Ss=le("isConcatSpreadable"),Ds=Fs>=51||!ps((function(){var t=[];return t[Ss]=!1,t.concat()[0]!==t})),ks=function(t){if(!gs(t))return!1;var e=t[Ss];return void 0!==e?!!e:vs(t)};ds({target:"Array",proto:!0,arity:1,forced:!Ds||!Cs("concat")},{concat:function(t){var e,n,i,u,r,o=Es(this),s=As(o,0),a=0;for(e=-1,i=arguments.length;eu;)for(var s,a=Is(arguments[u++]),l=r?Ms(Bs(a),r(a)):Bs(a),c=l.length,h=0;c>h;)s=l[h++],xs&&!ws(o,a,s)||(n[s]=a[s]);return n}:Rs,Ns=Ps;su({target:"Object",stat:!0,arity:2,forced:Object.assign!==Ns},{assign:Ns});var Hs={name:"",placeholder:"",classes:"",classPrefix:"",data:void 0,locale:void 0,selectAll:!0,single:void 0,singleRadio:!1,multiple:!1,hideOptgroupCheckboxes:!1,multipleWidth:80,width:void 0,size:void 0,dropWidth:void 0,maxHeight:250,maxHeightUnit:"px",position:"bottom",displayValues:!1,displayTitle:!1,displayDelimiter:", ",minimumCountSelected:3,ellipsis:!1,isOpen:!1,keepOpen:!1,openOnHover:!1,container:null,filter:!1,filterGroup:!1,filterPlaceholder:"",filterAcceptOnEnter:!1,filterByDataLength:void 0,customFilter:function(t){var e=t.text,n=t.label,i=t.search;return(n||e).includes(i)},showClear:!1,animate:void 0,styler:function(){return!1},textTemplate:function(t){return t[0].innerHTML.trim()},labelTemplate:function(t){return t[0].getAttribute("label")},onOpen:function(){return!1},onClose:function(){return!1},onCheckAll:function(){return!1},onUncheckAll:function(){return!1},onFocus:function(){return!1},onBlur:function(){return!1},onOptgroupClick:function(){return!1},onClick:function(){return!1},onFilter:function(){return!1},onClear:function(){return!1},onAfterCreate:function(){return!1}},Us={formatSelectAll:function(){return"[Select all]"},formatAllSelected:function(){return"All selected"},formatCountSelected:function(t,e){return"".concat(t," of ").concat(e," selected")},formatNoMatchesFound:function(){return"No matches found"}};Object.assign(Hs,Us);var Gs={VERSION:"1.6.0",BLOCK_ROWS:500,CLUSTER_BLOCKS:4,DEFAULTS:Hs,METHODS:["getOptions","refreshOptions","getData","getSelects","setSelects","enable","disable","open","close","check","uncheck","checkAll","uncheckAll","checkInvert","focus","blur","refresh","destroy"],LOCALES:{en:Us,"en-US":Us}},Ws=g,zs=Function.prototype,Ks=zs.apply,Vs=zs.call,qs="object"==typeof Reflect&&Reflect.apply||(Ws?Vs.bind(Ks):function(){return Vs.apply(Ks,arguments)}),Ys=es,Xs=Ft,Js=TypeError,Zs=Ne,Qs=function(t){if(Ys(t))return t;throw Js(Xs(t)+" is not a constructor")},ta=H,ea=le("species"),na=B,ia=ci,ua=yu,ra=W,oa=na("".charAt),sa=na("".charCodeAt),aa=na("".slice),la=function(t){return function(e,n){var i,u,r=ua(ra(e)),o=ia(n),s=r.length;return o<0||o>=s?t?"":void 0:(i=sa(r,o))<55296||i>56319||o+1===s||(u=sa(r,o+1))<56320||u>57343?t?oa(r,o):i:t?aa(r,o,o+2):u-56320+(i-55296<<10)+65536}},ca={codeAt:la(!1),charAt:la(!0)}.charAt,ha=function(t,e,n){return e+(n?ca(t,e).length:1)},fa=pi,da=yi,pa=Ho,va=Array,ga=Math.max,Ea=qs,ba=y,ya=B,ma=_r,Aa=Ne,Ca=H,Fa=ho,Sa=W,Da=function(t,e){var n,i=Zs(t).constructor;return void 0===i||ta(n=Zs(i)[ea])?e:Qs(n)},ka=ha,xa=Ei,Oa=yu,wa=$t,$a=function(t,e,n){for(var i=da(t),u=fa(e,i),r=fa(void 0===n?i:n,i),o=va(ga(r-u,0)),s=0;u1||"".split(/.?/).length?function(t,n){var i=Oa(Sa(this)),u=void 0===n?Ia:n>>>0;if(0===u)return[];if(void 0===t)return[i];if(!Fa(t))return ba(e,i,t,u);for(var r,o,s,a=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),c=0,h=new RegExp(t.source,l+"g");(r=ba(ja,h,i))&&!((o=h.lastIndex)>c&&(Pa(a,Na(i,c,r.index)),r.length>1&&r.index=u));)h.lastIndex===r.index&&h.lastIndex++;return c===i.length?!s&&Ma(h,"")||Pa(a,""):Pa(a,Na(i,c)),a.length>u?$a(a,0,u):a}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:ba(e,this,t,n)}:e,[function(e,n){var u=Sa(this),r=Ca(e)?void 0:wa(e,t);return r?ba(r,e,u,n):ba(i,Oa(u),e,n)},function(t,u){var r=Aa(this),o=Oa(t),s=n(i,r,o,u,i!==e);if(s.done)return s.value;var a=Da(r,RegExp),l=r.unicode,c=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(La?"g":"y"),h=new a(La?"^(?:"+r.source+")":r,c),f=void 0===u?Ia:u>>>0;if(0===f)return[];if(0===o.length)return null===Ba(h,o)?[o]:[];for(var d=0,p=0,v=[];pb;b++)if((s||b in v)&&(d=g(f=v[b],b,p),t))if(e)m[b]=d;else if(d)switch(t){case 3:return!0;case 5:return f;case 6:return b;case 2:dl(m,f)}else switch(t){case 4:return!1;case 7:dl(m,f)}return r?-1:i||u?u:m}},vl={forEach:pl(0),map:pl(1),filter:pl(2),some:pl(3),every:pl(4),find:pl(5),findIndex:pl(6),filterReject:pl(7)},gl=su,El=vl.find,bl=ro,yl="find",ml=!0;yl in[]&&Array(1)[yl]((function(){ml=!1})),gl({target:"Array",proto:!0,forced:ml},{find:function(t){return El(this,t,arguments.length>1?arguments[1]:void 0)}}),bl(yl);var Al=gu,Cl=lu?{}.toString:function(){return"[object "+Al(this)+"]"};lu||ri(Object.prototype,"toString",Cl,{unsafe:!0});var Fl=vl.map;su({target:"Array",proto:!0,forced:!fs("map")},{map:function(t){return Fl(this,t,arguments.length>1?arguments[1]:void 0)}});var Sl=v,Dl=B,kl=wu,xl=V,Ol=Dl(m.f),wl=Dl([].push),$l=function(t){return function(e){for(var n,i=xl(e),u=kl(i),r=u.length,o=0,s=[];r>o;)n=u[o++],Sl&&!Ol(i,n)||wl(s,t?[n,i[n]]:i[n]);return s}},Bl={entries:$l(!0),values:$l(!1)}.entries;su({target:"Object",stat:!0},{entries:function(t){return Bl(t)}});var jl=Kt,Tl=wu;su({target:"Object",stat:!0,forced:p((function(){Tl(1)}))},{keys:function(t){return Tl(jl(t))}});var Ll=vl.filter;su({target:"Array",proto:!0,forced:!fs("filter")},{filter:function(t){return Ll(this,t,arguments.length>1?arguments[1]:void 0)}});var Il=Fe("span").classList,Rl=Il&&Il.constructor&&Il.constructor.prototype,_l=Rl===Object.prototype?void 0:Rl,Ml=vl.forEach,Pl=Ga("forEach")?[].forEach:function(t){return Ml(this,t,arguments.length>1?arguments[1]:void 0)},Nl=f,Hl={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Ul=_l,Gl=Pl,Wl=tn,zl=function(t){if(t&&t.forEach!==Gl)try{Wl(t,"forEach",Gl)}catch(e){t.forEach=Gl}};for(var Kl in Hl)Hl[Kl]&&zl(Nl[Kl]&&Nl[Kl].prototype);zl(Ul);var Vl=B([].slice),ql=su,Yl=Ro,Xl=es,Jl=tt,Zl=pi,Ql=yi,tc=V,ec=Ho,nc=le,ic=Vl,uc=fs("slice"),rc=nc("species"),oc=Array,sc=Math.max;ql({target:"Array",proto:!0,forced:!uc},{slice:function(t,e){var n,i,u,r=tc(this),o=Ql(r),s=Zl(t,o),a=Zl(void 0===e?o:e,o);if(Yl(r)&&(n=r.constructor,(Xl(n)&&(n===oc||Yl(n.prototype))||Jl(n)&&null===(n=n[rc]))&&(n=void 0),n===oc||void 0===n))return ic(r,s,a);for(i=new(void 0===n?oc:n)(sc(a-s,0)),u=0;s]*>)/g,gc=/\$([$&'`]|\d{1,2})/g,Ec=qs,bc=y,yc=B,mc=_r,Ac=p,Cc=Ne,Fc=J,Sc=H,Dc=ci,kc=Ei,xc=yu,Oc=W,wc=ha,$c=$t,Bc=function(t,e,n,i,u,r){var o=n+t.length,s=i.length,a=gc;return void 0!==u&&(u=cc(u),a=vc),dc(r,a,(function(r,a){var l;switch(fc(a,0)){case"$":return"$";case"&":return t;case"`":return pc(e,0,n);case"'":return pc(e,o);case"<":l=u[pc(a,1,-1)];break;default:var c=+a;if(0===c)return r;if(c>s){var h=hc(c/10);return 0===h?r:h<=s?void 0===i[h-1]?fc(a,1):i[h-1]+fc(a,1):r}l=i[c-1]}return void 0===l?"":l}))},jc=zr,Tc=le("replace"),Lc=Math.max,Ic=Math.min,Rc=yc([].concat),_c=yc([].push),Mc=yc("".indexOf),Pc=yc("".slice),Nc="$0"==="a".replace(/./,"$0"),Hc=!!/./[Tc]&&""===/./[Tc]("a","$0");mc("replace",(function(t,e,n){var i=Hc?"$":"$0";return[function(t,n){var i=Oc(this),u=Sc(t)?void 0:$c(t,Tc);return u?bc(u,t,i,n):bc(e,xc(i),t,n)},function(t,u){var r=Cc(this),o=xc(t);if("string"==typeof u&&-1===Mc(u,i)&&-1===Mc(u,"$<")){var s=n(e,r,o,u);if(s.done)return s.value}var a=Fc(u);a||(u=xc(u));var l=r.global;if(l){var c=r.unicode;r.lastIndex=0}for(var h=[];;){var f=jc(r,o);if(null===f)break;if(_c(h,f),!l)break;""===xc(f[0])&&(r.lastIndex=wc(o,kc(r.lastIndex),c))}for(var d,p="",v=0,g=0;g=v&&(p+=Pc(o,v,b)+F,v=b+E.length)}return p+Pc(o,v)}]}),!!Ac((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}))||!Nc||Hc);var Uc=xt,Gc=Kt,Wc=N,zc=yi,Kc=TypeError,Vc=function(t){return function(e,n,i,u){Uc(n);var r=Gc(e),o=Wc(r),s=zc(r),a=t?s-1:0,l=t?-1:1;if(i<2)for(;;){if(a in o){u=o[a],a+=l;break}if(a+=l,t?a<0:s<=a)throw Kc("Reduce of empty array with no initial value")}for(;t?a>=0:s>a;a+=l)a in o&&(u=n(u,o[a],a,r));return u}},qc={left:Vc(!1),right:Vc(!0)},Yc="undefined"!=typeof process&&"process"==I(process),Xc=qc.left;su({target:"Array",proto:!0,forced:!Yc&&ht>79&&ht<83||!Ga("reduce")},{reduce:function(t){var e=arguments.length;return Xc(this,t,e,e>1?arguments[1]:void 0)}});var Jc=function(t){if(t.normalize)return t.normalize("NFD").replace(/[\u0300-\u036F]/g,"");return[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}].reduce((function(t,e){var n=e.letters,i=e.base;return t.replace(n,i)}),t)},Zc=function(t,e,n){var i,u=l(t);try{for(u.s();!(i=u.n()).done;){var r=i.value;if(r[e]===n||r[e]==="".concat(+r[e])&&+r[e]===n)return r;if("optgroup"===r.type){var o,s=l(r.children);try{for(s.s();!(o=s.n()).done;){var a=o.value;if(a[e]===n||a[e]==="".concat(+a[e])&&+a[e]===n)return a}}catch(t){s.e(t)}finally{s.f()}}}}catch(t){u.e(t)}finally{u.f()}},Qc=function(t){return Object.keys(t).forEach((function(e){return void 0===t[e]?delete t[e]:""})),t},th=function(){function i(e,u){n(this,i),this.$el=e,this.options=t.extend({},Gs.DEFAULTS,u)}return u(i,[{key:"init",value:function(){this.initLocale(),this.initContainer(),this.initData(),this.initSelected(!0),this.initFilter(),this.initDrop(),this.initView(),this.options.onAfterCreate()}},{key:"initLocale",value:function(){if(this.options.locale){var e=t.fn.multipleSelect.locales,n=this.options.locale.split(/-|_/);n[0]=n[0].toLowerCase(),n[1]&&(n[1]=n[1].toUpperCase()),e[this.options.locale]?t.extend(this.options,e[this.options.locale]):e[n.join("-")]?t.extend(this.options,e[n.join("-")]):e[n[0]]&&t.extend(this.options,e[n[0]])}}},{key:"initContainer",value:function(){var e=this,n=this.$el[0],i=n.getAttribute("name")||this.options.name||"";this.options.classes&&this.$el.addClass(this.options.classes),this.options.classPrefix&&(this.$el.addClass(this.options.classPrefix),this.options.size&&this.$el.addClass("".concat(this.options.classPrefix,"-").concat(this.options.size))),this.$el.hide(),this.$label=this.$el.closest("label"),!this.$label.length&&this.$el.attr("id")&&(this.$label=t('label[for="'.concat(this.$el.attr("id"),'"]'))),this.$label.find(">input").length&&(this.$label=null),void 0===this.options.single&&(this.options.single=null===n.getAttribute("multiple")),this.$parent=t('\n
        \n ')),this.options.placeholder=this.options.placeholder||n.getAttribute("placeholder")||"",this.tabIndex=n.getAttribute("tabindex");var u="";if(null!==this.tabIndex&&(this.$el.attr("tabindex",-1),u=this.tabIndex&&'tabindex="'.concat(this.tabIndex,'"')),this.$choice=t('\n \n ')),this.$drop=t('
        ')),this.$close=this.$choice.find(".icon-close"),this.options.dropWidth&&this.$drop.css("width",this.options.dropWidth),this.$el.after(this.$parent),this.$parent.append(this.$choice),this.$parent.append(this.$drop),n.disabled&&this.$choice.addClass("disabled"),this.selectAllName='data-name="selectAll'.concat(i,'"'),this.selectGroupName='data-name="selectGroup'.concat(i,'"'),this.selectItemName='data-name="selectItem'.concat(i,'"'),!this.options.keepOpen){var r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t=t||"".concat(+new Date).concat(~~(1e6*Math.random())),"click.multiple-select-".concat(t)}(this.$el.attr("id"));t(document).off(r).on(r,(function(i){t(i.target)[0]!==e.$choice[0]&&t(i.target).parents(".ms-choice")[0]!==e.$choice[0]&&(t(i.target)[0]===e.$drop[0]||t(i.target).parents(".ms-drop")[0]!==e.$drop[0]&&i.target!==n)&&e.options.isOpen&&e.close()}))}}},{key:"initData",value:function(){var n=this,i=[];if(this.options.data){if(Array.isArray(this.options.data))this.data=this.options.data.map((function(t){return"string"==typeof t||"number"==typeof t?{text:t,value:t}:t}));else if("object"===e(this.options.data)){for(var u=0,o=Object.entries(this.options.data);uthis.options.filterByDataLength}}},{key:"initDrop",value:function(){var t=this;this.initList(),this.update(!0),this.options.isOpen&&setTimeout((function(){t.open()}),50),this.options.openOnHover&&this.$parent.hover((function(){t.open()}),(function(){t.close()}))}},{key:"initList",value:function(){var t=[];this.options.filter&&t.push('\n \n ')),t.push("
          "),this.$drop.html(t.join("")),this.$ul=this.$drop.find(">ul"),this.initListItems()}},{key:"initListItems",value:function(){var t=this,e=this.getListRows(),n=0;if(this.options.selectAll&&!this.options.single&&(n=-1),e.length>Gs.BLOCK_ROWS*Gs.CLUSTER_BLOCKS){this.virtualScroll&&this.virtualScroll.destroy();var i=this.$drop.is(":visible");i||this.$drop.css("left",-1e4).show();var u=function(){t.updateDataStart=t.virtualScroll.dataStart+n,t.updateDataEnd=t.virtualScroll.dataEnd+n,t.updateDataStart<0&&(t.updateDataStart=0),t.updateDataEnd>t.data.length&&(t.updateDataEnd=t.data.length)};this.virtualScroll=new ac({rows:e,scrollEl:this.$ul[0],contentEl:this.$ul[0],callback:function(){u(),t.events()}}),u(),i||this.$drop.css("left",0).hide()}else this.$ul.html(e.join("")),this.updateDataStart=0,this.updateDataEnd=this.updateData.length,this.virtualScroll=null;this.events()}},{key:"getListRows",value:function(){var t=this,e=[];return this.options.selectAll&&!this.options.single&&e.push('\n
        • \n \n
        • \n ")),this.updateData=[],this.data.forEach((function(n){e.push.apply(e,o(t.initListItem(n)))})),e.push('
        • '.concat(this.options.formatNoMatchesFound(),"
        • ")),e}},{key:"initListItem",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=t.title?'title="'.concat(t.title,'"'):"",u=this.options.multiple?"multiple":"",r=this.options.single?"radio":"checkbox",s="";if(!t.visible)return[];if(this.updateData.push(t),this.options.single&&!this.options.singleRadio&&(s="hide-radio "),t.selected&&(s+="selected "),"optgroup"===t.type){var a=this.options.styler(t),l=a?'style="'.concat(a,'"'):"",c=[],h=this.options.hideOptgroupCheckboxes||this.options.single?"'):'");return s.includes("hide-radio")||!this.options.hideOptgroupCheckboxes&&!this.options.single||(s+="hide-radio "),c.push('\n
        • \n \n
        • \n ")),t.children.forEach((function(t){c.push.apply(c,o(e.initListItem(t,1)))})),c}var f=this.options.styler(t),d=f?'style="'.concat(f,'"'):"";return s+=t.classes||"",n&&this.options.single&&(s+="option-level-".concat(n," ")),t.divider?'
        • ':['\n
        • \n \n
        • \n ")]}},{key:"events",value:function(){var e=this;this.$searchInput=this.$drop.find(".ms-search input"),this.$selectAll=this.$drop.find("input[".concat(this.selectAllName,"]")),this.$selectGroups=this.$drop.find("input[".concat(this.selectGroupName,"],span[").concat(this.selectGroupName,"]")),this.$selectItems=this.$drop.find("input[".concat(this.selectItemName,"]:enabled")),this.$disableItems=this.$drop.find("input[".concat(this.selectItemName,"]:disabled")),this.$noResults=this.$drop.find(".ms-no-results");var n=function(n){n.preventDefault(),t(n.target).hasClass("icon-close")||e[e.options.isOpen?"close":"open"]()};this.$label&&this.$label.length&&this.$label.off("click").on("click",(function(t){"label"===t.target.nodeName.toLowerCase()&&(n(t),e.options.filter&&e.options.isOpen||e.focus(),t.stopPropagation())})),this.$choice.off("click").on("click",n).off("focus").on("focus",this.options.onFocus).off("blur").on("blur",this.options.onBlur),this.$parent.off("keydown").on("keydown",(function(t){27!==t.which||e.options.keepOpen||(e.close(),e.$choice.focus())})),this.$close.off("click").on("click",(function(t){t.preventDefault(),e._checkAll(!1,!0),e.initSelected(!1),e.updateSelected(),e.update(),e.options.onClear()})),this.$searchInput.off("keydown").on("keydown",(function(t){9===t.keyCode&&t.shiftKey&&e.close()})).off("keyup").on("keyup",(function(t){if(e.options.filterAcceptOnEnter&&[13,32].includes(t.which)&&e.$searchInput.val()){if(e.options.single){var n=e.$selectItems.closest("li").filter(":visible");n.length&&e.setSelects([n.first().find("input[".concat(e.selectItemName,"]")).val()])}else e.$selectAll.click();return e.close(),void e.focus()}e.filter()})),this.$selectAll.off("click").on("click",(function(n){e._checkAll(t(n.currentTarget).prop("checked"))})),this.$selectGroups.off("click").on("click",(function(n){var i=t(n.currentTarget),u=i.prop("checked"),r=Zc(e.data,"_key",i.data("key"));e._checkGroup(r,u),e.options.onOptgroupClick(Qc({label:r.label,selected:r.selected,data:r._data,children:r.children.map((function(t){return Qc({text:t.text,value:t.value,selected:t.selected,disabled:t.disabled,data:t._data})}))}))})),this.$selectItems.off("click").on("click",(function(n){var i=t(n.currentTarget),u=i.prop("checked"),r=Zc(e.data,"_key",i.data("key"));e._check(r,u),e.options.onClick(Qc({text:r.text,value:r.value,selected:r.selected,data:r._data})),e.options.single&&e.options.isOpen&&!e.options.keepOpen&&e.close()}))}},{key:"initView",value:function(){var t;window.getComputedStyle?"auto"===(t=window.getComputedStyle(this.$el[0]).width)&&(t=this.$drop.outerWidth()+20):t=this.$el.outerWidth()+20,this.$parent.css("width",this.options.width||t),this.$el.show().addClass("ms-offscreen")}},{key:"open",value:function(){if(!this.$choice.hasClass("disabled")){if(this.options.isOpen=!0,this.$parent.addClass("ms-parent-open"),this.$choice.find(">div").addClass("open"),this.$drop[this.animateMethod("show")](),this.$selectAll.parent().show(),this.$noResults.hide(),this.data.length||(this.$selectAll.parent().hide(),this.$noResults.show()),this.options.container){var e=this.$drop.offset();this.$drop.appendTo(t(this.options.container)),this.$drop.offset({top:e.top,left:e.left}).css("min-width","auto").outerWidth(this.$parent.outerWidth())}var n=this.options.maxHeight;"row"===this.options.maxHeightUnit&&(n=this.$drop.find(">ul>li").first().outerHeight()*this.options.maxHeight),this.$drop.find(">ul").css("max-height","".concat(n,"px")),this.$drop.find(".multiple").css("width","".concat(this.options.multipleWidth,"px")),this.data.length&&this.options.filter&&(this.$searchInput.val(""),this.$searchInput.focus(),this.filter(!0)),this.options.onOpen()}}},{key:"close",value:function(){this.options.isOpen=!1,this.$parent.removeClass("ms-parent-open"),this.$choice.find(">div").removeClass("open"),this.$drop[this.animateMethod("hide")](),this.options.container&&(this.$parent.append(this.$drop),this.$drop.css({top:"auto",left:"auto"})),this.options.onClose()}},{key:"animateMethod",value:function(t){return{show:{fade:"fadeIn",slide:"slideDown"},hide:{fade:"fadeOut",slide:"slideUp"}}[t][this.options.animate]||t}},{key:"update",value:function(t){var e=this.getSelects(),n=this.getSelects("text");this.options.displayValues&&(n=e);var i=this.$choice.find(">span"),u=e.length,r="";0===u?i.addClass("placeholder").html(this.options.placeholder):r=uthis.options.minimumCountSelected?"".concat(n.slice(0,this.options.minimumCountSelected).join(this.options.displayDelimiter),"..."):this.options.formatCountSelected()&&u>this.options.minimumCountSelected?this.options.formatCountSelected(u,this.dataTotal):n.join(this.options.displayDelimiter),r&&i.removeClass("placeholder").html(r),this.options.displayTitle&&i.prop("title",this.getSelects("text")),this.$el.val(this.getSelects()),t||this.$el.trigger("change")}},{key:"updateSelected",value:function(){for(var t=this.updateDataStart;t0&&void 0!==arguments[0]?arguments[0]:"value",n=[],i=l(this.data);try{for(i.s();!(t=i.n()).done;){var u=t.value;if("optgroup"===u.type){var r=u.children.filter((function(t){return t.selected}));if(!r.length)continue;if("value"===e||this.options.single)n.push.apply(n,o(r.map((function(t){return"value"===e&&t._value||t[e]}))));else{var s=[];s.push("["),s.push(u.label),s.push(": ".concat(r.map((function(t){return t[e]})).join(", "))),s.push("]"),n.push(s.join(""))}}else u.selected&&n.push("value"===e&&u._value||u[e])}}catch(t){i.e(t)}finally{i.f()}return n}},{key:"setSelects",value:function(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value",u=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!1,o=function(n){var u,o=l(n);try{for(o.s();!(u=o.n()).done;){var s=u.value,a=!1;"text"===i?a=e.includes(t("
          ").html(s.text).text().trim()):(a=e.includes(s._value||s.value))||s.value!=="".concat(+s.value)||(a=e.includes(+s.value)),s.selected!==a&&(r=!0),s.selected=a}}catch(t){o.e(t)}finally{o.f()}},s=l(this.data);try{for(s.s();!(n=s.n()).done;){var a=n.value;"optgroup"===a.type?o(a.children):o([a])}}catch(t){s.e(t)}finally{s.f()}r&&(this.initSelected(u),this.updateSelected(),this.update(u))}},{key:"enable",value:function(){this.$choice.removeClass("disabled")}},{key:"disable",value:function(){this.$choice.addClass("disabled")}},{key:"check",value:function(t){var e=Zc(this.data,"value",t);e&&this._check(e,!0)}},{key:"uncheck",value:function(t){var e=Zc(this.data,"value",t);e&&this._check(e,!1)}},{key:"_check",value:function(t,e){this.options.single&&this._checkAll(!1,!0),t.selected=e,this.initSelected(),this.updateSelected(),this.update()}},{key:"checkAll",value:function(){this._checkAll(!0)}},{key:"uncheckAll",value:function(){this._checkAll(!1)}},{key:"_checkAll",value:function(t,e){var n,i=l(this.data);try{for(i.s();!(n=i.n()).done;){var u=n.value;"optgroup"===u.type?this._checkGroup(u,t,!0):u.disabled||u.divider||!e&&!u.visible||(u.selected=t)}}catch(t){i.e(t)}finally{i.f()}e||(this.initSelected(),this.updateSelected(),this.update())}},{key:"_checkGroup",value:function(t,e,n){t.selected=e,t.children.forEach((function(t){t.disabled||t.divider||!n&&!t.visible||(t.selected=e)})),n||(this.initSelected(),this.updateSelected(),this.update())}},{key:"checkInvert",value:function(){if(!this.options.single){var t,e=l(this.data);try{for(e.s();!(t=e.n()).done;){var n=t.value;if("optgroup"===n.type){var i,u=l(n.children);try{for(u.s();!(i=u.n()).done;){var r=i.value;r.divider||(r.selected=!r.selected)}}catch(t){u.e(t)}finally{u.f()}}else n.divider||(n.selected=!n.selected)}}catch(t){e.e(t)}finally{e.f()}this.initSelected(),this.updateSelected(),this.update()}}},{key:"focus",value:function(){this.$choice.focus(),this.options.onFocus()}},{key:"blur",value:function(){this.$choice.blur(),this.options.onBlur()}},{key:"refresh",value:function(){this.destroy(),this.init()}},{key:"filter",value:function(e){var n=t.trim(this.$searchInput.val()),i=n.toLowerCase();if(this.filterText!==i){this.filterText=i;var u,r=l(this.data);try{for(r.s();!(u=r.n()).done;){var o=u.value;if("optgroup"===o.type)if(this.options.filterGroup){var s=this.options.customFilter({label:Jc(o.label.toLowerCase()),search:Jc(i),originalLabel:o.label,originalSearch:n,row:o});o.visible=s;var a,c=l(o.children);try{for(c.s();!(a=c.n()).done;){a.value.visible=s}}catch(t){c.e(t)}finally{c.f()}}else{var h,f=l(o.children);try{for(f.s();!(h=f.n()).done;){var d=h.value;d.visible=this.options.customFilter({text:Jc(d.text.toLowerCase()),search:Jc(i),originalText:d.text,originalSearch:n,row:d,parent:o})}}catch(t){f.e(t)}finally{f.f()}o.visible=o.children.filter((function(t){return t.visible})).length>0}else o.visible=this.options.customFilter({text:Jc(o.text.toLowerCase()),search:Jc(i),originalText:o.text,originalSearch:n,row:o})}}catch(t){r.e(t)}finally{r.f()}this.initListItems(),this.initSelected(e),this.updateSelected(),e||this.options.onFilter(i)}}},{key:"destroy",value:function(){this.$parent&&(this.$el.before(this.$parent).removeClass("ms-offscreen"),null!==this.tabIndex&&this.$el.attr("tabindex",this.tabIndex),this.$parent.remove(),this.fromHtml&&(delete this.options.data,this.fromHtml=!1))}}]),i}();t.fn.multipleSelect=function(n){for(var i=arguments.length,u=new Array(i>1?i-1:0),r=1;rt.length)&&(e=t.length);for(var n=0,i=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){a=!0,r=t},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw r}}}}var c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},h=function(t){return t&&t.Math==Math&&t},f=h("object"==typeof globalThis&&globalThis)||h("object"==typeof window&&window)||h("object"==typeof self&&self)||h("object"==typeof c&&c)||function(){return this}()||c||Function("return this")(),d={},p=function(t){try{return!!t()}catch(t){return!0}},v=!p((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),g=!p((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),E=g,b=Function.prototype.call,y=E?b.bind(b):function(){return b.apply(b,arguments)},m={},A={}.propertyIsEnumerable,C=Object.getOwnPropertyDescriptor,F=C&&!A.call({1:2},1);m.f=F?function(t){var e=C(this,t);return!!e&&e.enumerable}:A;var S,k,D=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},x=g,w=Function.prototype,O=w.call,$=x&&w.bind.bind(O,O),B=x?$:function(t){return function(){return O.apply(t,arguments)}},j=B,T=j({}.toString),L=j("".slice),I=function(t){return L(T(t),8,-1)},R=p,_=I,M=Object,P=B("".split),N=R((function(){return!M("z").propertyIsEnumerable(0)}))?function(t){return"String"==_(t)?P(t,""):M(t)}:M,H=function(t){return null==t},U=H,G=TypeError,W=function(t){if(U(t))throw G("Can't call method on "+t);return t},z=N,K=W,V=function(t){return z(K(t))},q="object"==typeof document&&document.all,Y={all:q,IS_HTMLDDA:void 0===q&&void 0!==q},X=Y.all,J=Y.IS_HTMLDDA?function(t){return"function"==typeof t||t===X}:function(t){return"function"==typeof t},Z=J,Q=Y.all,tt=Y.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:Z(t)||t===Q}:function(t){return"object"==typeof t?null!==t:Z(t)},et=f,nt=J,it=function(t,e){return arguments.length<2?(n=et[t],nt(n)?n:void 0):et[t]&&et[t][e];var n},ut=B({}.isPrototypeOf),rt=f,ot="undefined"!=typeof navigator&&String(navigator.userAgent)||"",st=rt.process,at=rt.Deno,lt=st&&st.versions||at&&at.version,ct=lt&<.v8;ct&&(k=(S=ct.split("."))[0]>0&&S[0]<4?1:+(S[0]+S[1])),!k&&ot&&(!(S=ot.match(/Edge\/(\d+)/))||S[1]>=74)&&(S=ot.match(/Chrome\/(\d+)/))&&(k=+S[1]);var ht=k,ft=ht,dt=p,pt=f.String,vt=!!Object.getOwnPropertySymbols&&!dt((function(){var t=Symbol();return!pt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&ft&&ft<41})),gt=vt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Et=it,bt=J,yt=ut,mt=Object,At=gt?function(t){return"symbol"==typeof t}:function(t){var e=Et("Symbol");return bt(e)&&yt(e.prototype,mt(t))},Ct=String,Ft=function(t){try{return Ct(t)}catch(t){return"Object"}},St=J,kt=Ft,Dt=TypeError,xt=function(t){if(St(t))return t;throw Dt(kt(t)+" is not a function")},wt=xt,Ot=H,$t=function(t,e){var n=t[e];return Ot(n)?void 0:wt(n)},Bt=y,jt=J,Tt=tt,Lt=TypeError,It={exports:{}},Rt=f,_t=Object.defineProperty,Mt=function(t,e){try{_t(Rt,t,{value:e,configurable:!0,writable:!0})}catch(n){Rt[t]=e}return e},Pt=Mt,Nt="__core-js_shared__",Ht=f[Nt]||Pt(Nt,{}),Ut=Ht;(It.exports=function(t,e){return Ut[t]||(Ut[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.30.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Gt=It.exports,Wt=W,zt=Object,Kt=function(t){return zt(Wt(t))},Vt=Kt,qt=B({}.hasOwnProperty),Yt=Object.hasOwn||function(t,e){return qt(Vt(t),e)},Xt=B,Jt=0,Zt=Math.random(),Qt=Xt(1..toString),te=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Qt(++Jt+Zt,36)},ee=Gt,ne=Yt,ie=te,ue=vt,re=gt,oe=f.Symbol,se=ee("wks"),ae=re?oe.for||oe:oe&&oe.withoutSetter||ie,le=function(t){return ne(se,t)||(se[t]=ue&&ne(oe,t)?oe[t]:ae("Symbol."+t)),se[t]},ce=y,he=tt,fe=At,de=$t,pe=function(t,e){var n,i;if("string"===e&&jt(n=t.toString)&&!Tt(i=Bt(n,t)))return i;if(jt(n=t.valueOf)&&!Tt(i=Bt(n,t)))return i;if("string"!==e&&jt(n=t.toString)&&!Tt(i=Bt(n,t)))return i;throw Lt("Can't convert object to primitive value")},ve=TypeError,ge=le("toPrimitive"),Ee=function(t,e){if(!he(t)||fe(t))return t;var n,i=de(t,ge);if(i){if(void 0===e&&(e="default"),n=ce(i,t,e),!he(n)||fe(n))return n;throw ve("Can't convert object to primitive value")}return void 0===e&&(e="number"),pe(t,e)},be=At,ye=function(t){var e=Ee(t,"string");return be(e)?e:e+""},me=tt,Ae=f.document,Ce=me(Ae)&&me(Ae.createElement),Fe=function(t){return Ce?Ae.createElement(t):{}},Se=Fe,ke=!v&&!p((function(){return 7!=Object.defineProperty(Se("div"),"a",{get:function(){return 7}}).a})),De=v,xe=y,we=m,Oe=D,$e=V,Be=ye,je=Yt,Te=ke,Le=Object.getOwnPropertyDescriptor;d.f=De?Le:function(t,e){if(t=$e(t),e=Be(e),Te)try{return Le(t,e)}catch(t){}if(je(t,e))return Oe(!xe(we.f,t,e),t[e])};var Ie={},Re=v&&p((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),_e=tt,Me=String,Pe=TypeError,Ne=function(t){if(_e(t))return t;throw Pe(Me(t)+" is not an object")},He=v,Ue=ke,Ge=Re,We=Ne,ze=ye,Ke=TypeError,Ve=Object.defineProperty,qe=Object.getOwnPropertyDescriptor,Ye="enumerable",Xe="configurable",Je="writable";Ie.f=He?Ge?function(t,e,n){if(We(t),e=ze(e),We(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Je in n&&!n[Je]){var i=qe(t,e);i&&i[Je]&&(t[e]=n.value,n={configurable:Xe in n?n[Xe]:i[Xe],enumerable:Ye in n?n[Ye]:i[Ye],writable:!1})}return Ve(t,e,n)}:Ve:function(t,e,n){if(We(t),e=ze(e),We(n),Ue)try{return Ve(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Ke("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var Ze=Ie,Qe=D,tn=v?function(t,e,n){return Ze.f(t,e,Qe(1,n))}:function(t,e,n){return t[e]=n,t},en={exports:{}},nn=v,un=Yt,rn=Function.prototype,on=nn&&Object.getOwnPropertyDescriptor,sn=un(rn,"name"),an={EXISTS:sn,PROPER:sn&&"something"===function(){}.name,CONFIGURABLE:sn&&(!nn||nn&&on(rn,"name").configurable)},ln=J,cn=Ht,hn=B(Function.toString);ln(cn.inspectSource)||(cn.inspectSource=function(t){return hn(t)});var fn,dn,pn,vn=cn.inspectSource,gn=J,En=f.WeakMap,bn=gn(En)&&/native code/.test(String(En)),yn=te,mn=Gt("keys"),An=function(t){return mn[t]||(mn[t]=yn(t))},Cn={},Fn=bn,Sn=f,kn=tt,Dn=tn,xn=Yt,wn=Ht,On=An,$n=Cn,Bn="Object already initialized",jn=Sn.TypeError,Tn=Sn.WeakMap;if(Fn||wn.state){var Ln=wn.state||(wn.state=new Tn);Ln.get=Ln.get,Ln.has=Ln.has,Ln.set=Ln.set,fn=function(t,e){if(Ln.has(t))throw jn(Bn);return e.facade=t,Ln.set(t,e),e},dn=function(t){return Ln.get(t)||{}},pn=function(t){return Ln.has(t)}}else{var In=On("state");$n[In]=!0,fn=function(t,e){if(xn(t,In))throw jn(Bn);return e.facade=t,Dn(t,In,e),e},dn=function(t){return xn(t,In)?t[In]:{}},pn=function(t){return xn(t,In)}}var Rn={set:fn,get:dn,has:pn,enforce:function(t){return pn(t)?dn(t):fn(t,{})},getterFor:function(t){return function(e){var n;if(!kn(e)||(n=dn(e)).type!==t)throw jn("Incompatible receiver, "+t+" required");return n}}},_n=B,Mn=p,Pn=J,Nn=Yt,Hn=v,Un=an.CONFIGURABLE,Gn=vn,Wn=Rn.enforce,zn=Rn.get,Kn=String,Vn=Object.defineProperty,qn=_n("".slice),Yn=_n("".replace),Xn=_n([].join),Jn=Hn&&!Mn((function(){return 8!==Vn((function(){}),"length",{value:8}).length})),Zn=String(String).split("String"),Qn=en.exports=function(t,e,n){"Symbol("===qn(Kn(e),0,7)&&(e="["+Yn(Kn(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!Nn(t,"name")||Un&&t.name!==e)&&(Hn?Vn(t,"name",{value:e,configurable:!0}):t.name=e),Jn&&n&&Nn(n,"arity")&&t.length!==n.arity&&Vn(t,"length",{value:n.arity});try{n&&Nn(n,"constructor")&&n.constructor?Hn&&Vn(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var i=Wn(t);return Nn(i,"source")||(i.source=Xn(Zn,"string"==typeof e?e:"")),t};Function.prototype.toString=Qn((function(){return Pn(this)&&zn(this).source||Gn(this)}),"toString");var ti=en.exports,ei=J,ni=Ie,ii=ti,ui=Mt,ri=function(t,e,n,i){i||(i={});var u=i.enumerable,r=void 0!==i.name?i.name:e;if(ei(n)&&ii(n,r,i),i.global)u?t[e]=n:ui(e,n);else{try{i.unsafe?t[e]&&(u=!0):delete t[e]}catch(t){}u?t[e]=n:ni.f(t,e,{value:n,enumerable:!1,configurable:!i.nonConfigurable,writable:!i.nonWritable})}return t},oi={},si=Math.ceil,ai=Math.floor,li=Math.trunc||function(t){var e=+t;return(e>0?ai:si)(e)},ci=function(t){var e=+t;return e!=e||0===e?0:li(e)},hi=ci,fi=Math.max,di=Math.min,pi=function(t,e){var n=hi(t);return n<0?fi(n+e,0):di(n,e)},vi=ci,gi=Math.min,Ei=function(t){return t>0?gi(vi(t),9007199254740991):0},bi=Ei,yi=function(t){return bi(t.length)},mi=V,Ai=pi,Ci=yi,Fi=function(t){return function(e,n,i){var u,r=mi(e),o=Ci(r),s=Ai(i,o);if(t&&n!=n){for(;o>s;)if((u=r[s++])!=u)return!0}else for(;o>s;s++)if((t||s in r)&&r[s]===n)return t||s||0;return!t&&-1}},Si={includes:Fi(!0),indexOf:Fi(!1)},ki=Yt,Di=V,xi=Si.indexOf,wi=Cn,Oi=B([].push),$i=function(t,e){var n,i=Di(t),u=0,r=[];for(n in i)!ki(wi,n)&&ki(i,n)&&Oi(r,n);for(;e.length>u;)ki(i,n=e[u++])&&(~xi(r,n)||Oi(r,n));return r},Bi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ji=$i,Ti=Bi.concat("length","prototype");oi.f=Object.getOwnPropertyNames||function(t){return ji(t,Ti)};var Li={};Li.f=Object.getOwnPropertySymbols;var Ii=it,Ri=oi,_i=Li,Mi=Ne,Pi=B([].concat),Ni=Ii("Reflect","ownKeys")||function(t){var e=Ri.f(Mi(t)),n=_i.f;return n?Pi(e,n(t)):e},Hi=Yt,Ui=Ni,Gi=d,Wi=Ie,zi=p,Ki=J,Vi=/#|\.prototype\./,qi=function(t,e){var n=Xi[Yi(t)];return n==Zi||n!=Ji&&(Ki(e)?zi(e):!!e)},Yi=qi.normalize=function(t){return String(t).replace(Vi,".").toLowerCase()},Xi=qi.data={},Ji=qi.NATIVE="N",Zi=qi.POLYFILL="P",Qi=qi,tu=f,eu=d.f,nu=tn,iu=ri,uu=Mt,ru=function(t,e,n){for(var i=Ui(e),u=Wi.f,r=Gi.f,o=0;oo;)Tu.f(t,n=u[o++],i[n]);return t};var _u,Mu=it("document","documentElement"),Pu=Ne,Nu=xu,Hu=Bi,Uu=Cn,Gu=Mu,Wu=Fe,zu="prototype",Ku="script",Vu=An("IE_PROTO"),qu=function(){},Yu=function(t){return"<"+Ku+">"+t+""},Xu=function(t){t.write(Yu("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ju=function(){try{_u=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;Ju="undefined"!=typeof document?document.domain&&_u?Xu(_u):(e=Wu("iframe"),n="java"+Ku+":",e.style.display="none",Gu.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Yu("document.F=Object")),t.close(),t.F):Xu(_u);for(var i=Hu.length;i--;)delete Ju[zu][Hu[i]];return Ju()};Uu[Vu]=!0;var Zu,Qu,tr=Object.create||function(t,e){var n;return null!==t?(qu[zu]=Pu(t),n=new qu,qu[zu]=null,n[Vu]=t):n=Ju(),void 0===e?n:Nu.f(n,e)},er=p,nr=f.RegExp,ir=er((function(){var t=nr(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),ur=p,rr=f.RegExp,or=ur((function(){var t=rr("(?b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")})),sr=y,ar=B,lr=yu,cr=Au,hr=Du,fr=tr,dr=Rn.get,pr=ir,vr=or,gr=Gt("native-string-replace",String.prototype.replace),Er=RegExp.prototype.exec,br=Er,yr=ar("".charAt),mr=ar("".indexOf),Ar=ar("".replace),Cr=ar("".slice),Fr=(Qu=/b*/g,sr(Er,Zu=/a/,"a"),sr(Er,Qu,"a"),0!==Zu.lastIndex||0!==Qu.lastIndex),Sr=hr.BROKEN_CARET,kr=void 0!==/()??/.exec("")[1];(Fr||kr||Sr||pr||vr)&&(br=function(t){var e,n,i,u,r,o,s,a=this,l=dr(a),c=lr(t),h=l.raw;if(h)return h.lastIndex=a.lastIndex,e=sr(br,h,c),a.lastIndex=h.lastIndex,e;var f=l.groups,d=Sr&&a.sticky,p=sr(cr,a),v=a.source,g=0,E=c;if(d&&(p=Ar(p,"y",""),-1===mr(p,"g")&&(p+="g"),E=Cr(c,a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==yr(c,a.lastIndex-1))&&(v="(?: "+v+")",E=" "+E,g++),n=new RegExp("^(?:"+v+")",p)),kr&&(n=new RegExp("^"+v+"$(?!\\s)",p)),Fr&&(i=a.lastIndex),u=sr(Er,d?n:a,E),d?u?(u.input=Cr(u.input,g),u[0]=Cr(u[0],g),u.index=a.lastIndex,a.lastIndex+=u[0].length):a.lastIndex=0:Fr&&u&&(a.lastIndex=a.global?u.index+u[0].length:i),kr&&u&&u.length>1&&sr(gr,u[0],n,(function(){for(r=1;r1?arguments[1]:void 0)}}),ao("includes");var lo=tt,co=I,ho=le("match"),fo=function(t){var e;return lo(t)&&(void 0!==(e=t[ho])?!!e:"RegExp"==co(t))},po=fo,vo=TypeError,go=le("match"),Eo=su,bo=function(t){if(po(t))throw vo("The method doesn't accept regular expressions");return t},yo=W,mo=yu,Ao=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[go]=!1,"/./"[t](e)}catch(t){}}return!1},Co=B("".indexOf);Eo({target:"String",proto:!0,forced:!Ao("includes")},{includes:function(t){return!!~Co(mo(yo(this)),mo(bo(t)),arguments.length>1?arguments[1]:void 0)}});var Fo="\t\n\v\f\r                 \u2028\u2029\ufeff",So=W,ko=yu,Do=Fo,xo=B("".replace),wo=RegExp("^["+Do+"]+"),Oo=RegExp("(^|[^"+Do+"])["+Do+"]+$"),$o=function(t){return function(e){var n=ko(So(e));return 1&t&&(n=xo(n,wo,"")),2&t&&(n=xo(n,Oo,"$1")),n}},Bo={start:$o(1),end:$o(2),trim:$o(3)},jo=an.PROPER,To=p,Lo=Fo,Io=Bo.trim;su({target:"String",proto:!0,forced:function(t){return To((function(){return!!Lo[t]()||"​…᠎"!=="​…᠎"[t]()||jo&&Lo[t].name!==t}))}("trim")},{trim:function(){return Io(this)}});var Ro=I,_o=Array.isArray||function(t){return"Array"==Ro(t)},Mo=TypeError,Po=ye,No=Ie,Ho=D,Uo=function(t,e,n){var i=Po(e);i in t?No.f(t,i,Ho(0,n)):t[i]=n},Go=B,Wo=p,zo=J,Ko=gu,Vo=vn,qo=function(){},Yo=[],Xo=it("Reflect","construct"),Jo=/^\s*(?:class|function)\b/,Zo=Go(Jo.exec),Qo=!Jo.exec(qo),ts=function(t){if(!zo(t))return!1;try{return Xo(qo,Yo,t),!0}catch(t){return!1}},es=function(t){if(!zo(t))return!1;switch(Ko(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Qo||!!Zo(Jo,Vo(t))}catch(t){return!0}};es.sham=!0;var ns=!Xo||Wo((function(){var t;return ts(ts.call)||!ts(Object)||!ts((function(){t=!0}))||t}))?es:ts,is=_o,us=ns,rs=tt,os=le("species"),ss=Array,as=function(t){var e;return is(t)&&(e=t.constructor,(us(e)&&(e===ss||is(e.prototype))||rs(e)&&null===(e=e[os]))&&(e=void 0)),void 0===e?ss:e},ls=function(t,e){return new(as(t))(0===e?0:e)},cs=p,hs=ht,fs=le("species"),ds=function(t){return hs>=51||!cs((function(){var e=[];return(e.constructor={})[fs]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},ps=su,vs=p,gs=_o,Es=tt,bs=Kt,ys=yi,ms=function(t){if(t>9007199254740991)throw Mo("Maximum allowed index exceeded");return t},As=Uo,Cs=ls,Fs=ds,Ss=ht,ks=le("isConcatSpreadable"),Ds=Ss>=51||!vs((function(){var t=[];return t[ks]=!1,t.concat()[0]!==t})),xs=function(t){if(!Es(t))return!1;var e=t[ks];return void 0!==e?!!e:gs(t)};ps({target:"Array",proto:!0,arity:1,forced:!Ds||!Fs("concat")},{concat:function(t){var e,n,i,u,r,o=bs(this),s=Cs(o,0),a=0;for(e=-1,i=arguments.length;eu;)for(var s,a=Rs(arguments[u++]),l=r?Ps(js(a),r(a)):js(a),c=l.length,h=0;c>h;)s=l[h++],ws&&!$s(o,a,s)||(n[s]=a[s]);return n}:_s,Hs=Ns;su({target:"Object",stat:!0,arity:2,forced:Object.assign!==Hs},{assign:Hs});var Us={name:"",placeholder:"",classes:"",classPrefix:"",data:void 0,locale:void 0,selectAll:!0,single:void 0,singleRadio:!1,multiple:!1,hideOptgroupCheckboxes:!1,multipleWidth:80,width:void 0,size:void 0,dropWidth:void 0,maxHeight:250,maxHeightUnit:"px",position:"bottom",displayValues:!1,displayTitle:!1,displayDelimiter:", ",minimumCountSelected:3,ellipsis:!1,isOpen:!1,keepOpen:!1,openOnHover:!1,container:null,filter:!1,filterGroup:!1,filterPlaceholder:"",filterAcceptOnEnter:!1,filterByDataLength:void 0,customFilter:function(t){var e=t.text,n=t.label,i=t.search;return(n||e).includes(i)},showClear:!1,animate:void 0,styler:function(){return!1},textTemplate:function(t){return t[0].innerHTML.trim()},labelTemplate:function(t){return t[0].getAttribute("label")},onOpen:function(){return!1},onClose:function(){return!1},onCheckAll:function(){return!1},onUncheckAll:function(){return!1},onFocus:function(){return!1},onBlur:function(){return!1},onOptgroupClick:function(){return!1},onBeforeClick:function(){return!0},onClick:function(){return!1},onFilter:function(){return!1},onClear:function(){return!1},onAfterCreate:function(){return!1}},Gs={formatSelectAll:function(){return"[Select all]"},formatAllSelected:function(){return"All selected"},formatCountSelected:function(t,e){return"".concat(t," of ").concat(e," selected")},formatNoMatchesFound:function(){return"No matches found"}};Object.assign(Us,Gs);var Ws={VERSION:"1.7.0",BLOCK_ROWS:500,CLUSTER_BLOCKS:4,DEFAULTS:Us,METHODS:["getOptions","refreshOptions","getData","getSelects","setSelects","enable","disable","open","close","check","uncheck","checkAll","uncheckAll","checkInvert","focus","blur","refresh","destroy"],LOCALES:{en:Gs,"en-US":Gs}},zs=g,Ks=Function.prototype,Vs=Ks.apply,qs=Ks.call,Ys="object"==typeof Reflect&&Reflect.apply||(zs?qs.bind(Vs):function(){return qs.apply(Vs,arguments)}),Xs=ns,Js=Ft,Zs=TypeError,Qs=Ne,ta=function(t){if(Xs(t))return t;throw Zs(Js(t)+" is not a constructor")},ea=H,na=le("species"),ia=B,ua=ci,ra=yu,oa=W,sa=ia("".charAt),aa=ia("".charCodeAt),la=ia("".slice),ca=function(t){return function(e,n){var i,u,r=ra(oa(e)),o=ua(n),s=r.length;return o<0||o>=s?t?"":void 0:(i=aa(r,o))<55296||i>56319||o+1===s||(u=aa(r,o+1))<56320||u>57343?t?sa(r,o):i:t?la(r,o,o+2):u-56320+(i-55296<<10)+65536}},ha={codeAt:ca(!1),charAt:ca(!0)}.charAt,fa=function(t,e,n){return e+(n?ha(t,e).length:1)},da=pi,pa=yi,va=Uo,ga=Array,Ea=Math.max,ba=Ys,ya=y,ma=B,Aa=Mr,Ca=Ne,Fa=H,Sa=fo,ka=W,Da=function(t,e){var n,i=Qs(t).constructor;return void 0===i||ea(n=Qs(i)[na])?e:ta(n)},xa=fa,wa=Ei,Oa=yu,$a=$t,Ba=function(t,e,n){for(var i=pa(t),u=da(e,i),r=da(void 0===n?i:n,i),o=ga(Ea(r-u,0)),s=0;u1||"".split(/.?/).length?function(t,n){var i=Oa(ka(this)),u=void 0===n?Ra:n>>>0;if(0===u)return[];if(void 0===t)return[i];if(!Sa(t))return ya(e,i,t,u);for(var r,o,s,a=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),c=0,h=new RegExp(t.source,l+"g");(r=ya(Ta,h,i))&&!((o=h.lastIndex)>c&&(Na(a,Ha(i,c,r.index)),r.length>1&&r.index=u));)h.lastIndex===r.index&&h.lastIndex++;return c===i.length?!s&&Pa(h,"")||Na(a,""):Na(a,Ha(i,c)),a.length>u?Ba(a,0,u):a}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:ya(e,this,t,n)}:e,[function(e,n){var u=ka(this),r=Fa(e)?void 0:$a(e,t);return r?ya(r,e,u,n):ya(i,Oa(u),e,n)},function(t,u){var r=Ca(this),o=Oa(t),s=n(i,r,o,u,i!==e);if(s.done)return s.value;var a=Da(r,RegExp),l=r.unicode,c=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(Ia?"g":"y"),h=new a(Ia?"^(?:"+r.source+")":r,c),f=void 0===u?Ra:u>>>0;if(0===f)return[];if(0===o.length)return null===ja(h,o)?[o]:[];for(var d=0,p=0,v=[];pb;b++)if((s||b in v)&&(d=g(f=v[b],b,p),t))if(e)m[b]=d;else if(d)switch(t){case 3:return!0;case 5:return f;case 6:return b;case 2:pl(m,f)}else switch(t){case 4:return!1;case 7:pl(m,f)}return r?-1:i||u?u:m}},gl={forEach:vl(0),map:vl(1),filter:vl(2),some:vl(3),every:vl(4),find:vl(5),findIndex:vl(6),filterReject:vl(7)},El=su,bl=gl.find,yl=oo,ml="find",Al=!0;ml in[]&&Array(1)[ml]((function(){Al=!1})),El({target:"Array",proto:!0,forced:Al},{find:function(t){return bl(this,t,arguments.length>1?arguments[1]:void 0)}}),yl(ml);var Cl=gu,Fl=lu?{}.toString:function(){return"[object "+Cl(this)+"]"};lu||ri(Object.prototype,"toString",Fl,{unsafe:!0});var Sl=gl.map;su({target:"Array",proto:!0,forced:!ds("map")},{map:function(t){return Sl(this,t,arguments.length>1?arguments[1]:void 0)}});var kl=v,Dl=B,xl=$u,wl=V,Ol=Dl(m.f),$l=Dl([].push),Bl=function(t){return function(e){for(var n,i=wl(e),u=xl(i),r=u.length,o=0,s=[];r>o;)n=u[o++],kl&&!Ol(i,n)||$l(s,t?[n,i[n]]:i[n]);return s}},jl={entries:Bl(!0),values:Bl(!1)}.entries;su({target:"Object",stat:!0},{entries:function(t){return jl(t)}});var Tl=Kt,Ll=$u;su({target:"Object",stat:!0,forced:p((function(){Ll(1)}))},{keys:function(t){return Ll(Tl(t))}});var Il=gl.filter;su({target:"Array",proto:!0,forced:!ds("filter")},{filter:function(t){return Il(this,t,arguments.length>1?arguments[1]:void 0)}});var Rl=Fe("span").classList,_l=Rl&&Rl.constructor&&Rl.constructor.prototype,Ml=_l===Object.prototype?void 0:_l,Pl=gl.forEach,Nl=Wa("forEach")?[].forEach:function(t){return Pl(this,t,arguments.length>1?arguments[1]:void 0)},Hl=f,Ul={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Gl=Ml,Wl=Nl,zl=tn,Kl=function(t){if(t&&t.forEach!==Wl)try{zl(t,"forEach",Wl)}catch(e){t.forEach=Wl}};for(var Vl in Ul)Ul[Vl]&&Kl(Hl[Vl]&&Hl[Vl].prototype);Kl(Gl);var ql=B([].slice),Yl=su,Xl=_o,Jl=ns,Zl=tt,Ql=pi,tc=yi,ec=V,nc=Uo,ic=le,uc=ql,rc=ds("slice"),oc=ic("species"),sc=Array,ac=Math.max;Yl({target:"Array",proto:!0,forced:!rc},{slice:function(t,e){var n,i,u,r=ec(this),o=tc(r),s=Ql(t,o),a=Ql(void 0===e?o:e,o);if(Xl(r)&&(n=r.constructor,(Jl(n)&&(n===sc||Xl(n.prototype))||Zl(n)&&null===(n=n[oc]))&&(n=void 0),n===sc||void 0===n))return uc(r,s,a);for(i=new(void 0===n?sc:n)(ac(a-s,0)),u=0;s]*>)/g,jc=/\$([$&'`]|\d{1,2})/g,Tc=Ys,Lc=y,Ic=B,Rc=Mr,_c=p,Mc=Ne,Pc=J,Nc=H,Hc=ci,Uc=Ei,Gc=yu,Wc=W,zc=fa,Kc=$t,Vc=function(t,e,n,i,u,r){var o=n+t.length,s=i.length,a=jc;return void 0!==u&&(u=Dc(u),a=Bc),Oc(r,a,(function(r,a){var l;switch(wc(a,0)){case"$":return"$";case"&":return t;case"`":return $c(e,0,n);case"'":return $c(e,o);case"<":l=u[$c(a,1,-1)];break;default:var c=+a;if(0===c)return r;if(c>s){var h=xc(c/10);return 0===h?r:h<=s?void 0===i[h-1]?wc(a,1):i[h-1]+wc(a,1):r}l=i[c-1]}return void 0===l?"":l}))},qc=Kr,Yc=le("replace"),Xc=Math.max,Jc=Math.min,Zc=Ic([].concat),Qc=Ic([].push),th=Ic("".indexOf),eh=Ic("".slice),nh="$0"==="a".replace(/./,"$0"),ih=!!/./[Yc]&&""===/./[Yc]("a","$0");Rc("replace",(function(t,e,n){var i=ih?"$":"$0";return[function(t,n){var i=Wc(this),u=Nc(t)?void 0:Kc(t,Yc);return u?Lc(u,t,i,n):Lc(e,Gc(i),t,n)},function(t,u){var r=Mc(this),o=Gc(t);if("string"==typeof u&&-1===th(u,i)&&-1===th(u,"$<")){var s=n(e,r,o,u);if(s.done)return s.value}var a=Pc(u);a||(u=Gc(u));var l=r.global;if(l){var c=r.unicode;r.lastIndex=0}for(var h=[];;){var f=qc(r,o);if(null===f)break;if(Qc(h,f),!l)break;""===Gc(f[0])&&(r.lastIndex=zc(o,Uc(r.lastIndex),c))}for(var d,p="",v=0,g=0;g=v&&(p+=eh(o,v,b)+F,v=b+E.length)}return p+eh(o,v)}]}),!!_c((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}))||!nh||ih);var uh=xt,rh=Kt,oh=N,sh=yi,ah=TypeError,lh=function(t){return function(e,n,i,u){uh(n);var r=rh(e),o=oh(r),s=sh(r),a=t?s-1:0,l=t?-1:1;if(i<2)for(;;){if(a in o){u=o[a],a+=l;break}if(a+=l,t?a<0:s<=a)throw ah("Reduce of empty array with no initial value")}for(;t?a>=0:s>a;a+=l)a in o&&(u=n(u,o[a],a,r));return u}},ch={left:lh(!1),right:lh(!0)},hh="undefined"!=typeof process&&"process"==I(process),fh=ch.left;su({target:"Array",proto:!0,forced:!hh&&ht>79&&ht<83||!Wa("reduce")},{reduce:function(t){var e=arguments.length;return fh(this,t,e,e>1?arguments[1]:void 0)}});var dh=function(t){if(t.normalize)return t.normalize("NFD").replace(/[\u0300-\u036F]/g,"");return[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}].reduce((function(t,e){var n=e.letters,i=e.base;return t.replace(n,i)}),t)},ph=function(t,e,n){var i,u=l(t);try{for(u.s();!(i=u.n()).done;){var r=i.value;if(r[e]===n||r[e]==="".concat(+r[e])&&+r[e]===n)return r;if("optgroup"===r.type){var o,s=l(r.children);try{for(s.s();!(o=s.n()).done;){var a=o.value;if(a[e]===n||a[e]==="".concat(+a[e])&&+a[e]===n)return a}}catch(t){s.e(t)}finally{s.f()}}}}catch(t){u.e(t)}finally{u.f()}},vh=function(t){return Object.keys(t).forEach((function(e){return void 0===t[e]?delete t[e]:""})),t},gh=function(){function i(e,u){n(this,i),this.$el=e,this.options=t.extend({},Ws.DEFAULTS,u)}return u(i,[{key:"init",value:function(){this.initLocale(),this.initContainer(),this.initData(),this.initSelected(!0),this.initFilter(),this.initDrop(),this.initView(),this.options.onAfterCreate()}},{key:"initLocale",value:function(){if(this.options.locale){var e=t.fn.multipleSelect.locales,n=this.options.locale.split(/-|_/);n[0]=n[0].toLowerCase(),n[1]&&(n[1]=n[1].toUpperCase()),e[this.options.locale]?t.extend(this.options,e[this.options.locale]):e[n.join("-")]?t.extend(this.options,e[n.join("-")]):e[n[0]]&&t.extend(this.options,e[n[0]])}}},{key:"initContainer",value:function(){var e=this,n=this.$el[0],i=n.getAttribute("name")||this.options.name||"";this.options.classes&&this.$el.addClass(this.options.classes),this.options.classPrefix&&(this.$el.addClass(this.options.classPrefix),this.options.size&&this.$el.addClass("".concat(this.options.classPrefix,"-").concat(this.options.size))),this.$el.hide(),this.$label=this.$el.closest("label"),!this.$label.length&&this.$el.attr("id")&&(this.$label=t('label[for="'.concat(this.$el.attr("id"),'"]'))),this.$label.find(">input").length&&(this.$label=null),void 0===this.options.single&&(this.options.single=null===n.getAttribute("multiple")),this.$parent=t('\n
          \n ')),this.options.placeholder=this.options.placeholder||n.getAttribute("placeholder")||"",this.tabIndex=n.getAttribute("tabindex");var u="";if(null!==this.tabIndex&&(u=this.tabIndex&&'tabindex="'.concat(this.tabIndex,'"')),this.$el.attr("tabindex",-1),this.$choice=t('\n \n ')),this.$drop=t('
          ')),this.$close=this.$choice.find(".icon-close"),this.options.dropWidth&&this.$drop.css("width",this.options.dropWidth),this.$el.after(this.$parent),this.$parent.append(this.$choice),this.$parent.append(this.$drop),n.disabled&&this.$choice.addClass("disabled"),this.selectAllName='data-name="selectAll'.concat(i,'"'),this.selectGroupName='data-name="selectGroup'.concat(i,'"'),this.selectItemName='data-name="selectItem'.concat(i,'"'),!this.options.keepOpen){var r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t=t||"".concat(+new Date).concat(~~(1e6*Math.random())),"click.multiple-select-".concat(t)}(this.$el.attr("id"));t(document).off(r).on(r,(function(i){t(i.target)[0]!==e.$choice[0]&&t(i.target).parents(".ms-choice")[0]!==e.$choice[0]&&(t(i.target)[0]===e.$drop[0]||t(i.target).parents(".ms-drop")[0]!==e.$drop[0]&&i.target!==n)&&e.options.isOpen&&e.close()}))}}},{key:"initData",value:function(){var n=this,i=[];if(this.options.data){if(Array.isArray(this.options.data))this.data=this.options.data.map((function(t){return"string"==typeof t||"number"==typeof t?{text:t,value:t}:t}));else if("object"===e(this.options.data)){for(var u=0,o=Object.entries(this.options.data);uthis.options.filterByDataLength}}},{key:"initDrop",value:function(){var t=this;this.initList(),this.update(!0),this.options.isOpen&&setTimeout((function(){t.open()}),50),this.options.openOnHover&&this.$parent.hover((function(){t.open()}),(function(){t.close()}))}},{key:"initList",value:function(){var t=[];this.options.filter&&t.push('\n \n ')),t.push("
            "),this.$drop.html(t.join("")),this.$ul=this.$drop.find(">ul"),this.initListItems()}},{key:"initListItems",value:function(){var t=this,e=this.getListRows(),n=0;if(this.options.selectAll&&!this.options.single&&(n=-1),e.length>Ws.BLOCK_ROWS*Ws.CLUSTER_BLOCKS){this.virtualScroll&&this.virtualScroll.destroy();var i=this.$drop.is(":visible");i||this.$drop.css("left",-1e4).show();var u=function(){t.updateDataStart=t.virtualScroll.dataStart+n,t.updateDataEnd=t.virtualScroll.dataEnd+n,t.updateDataStart<0&&(t.updateDataStart=0),t.updateDataEnd>t.data.length&&(t.updateDataEnd=t.data.length)};this.virtualScroll=new Sc({rows:e,scrollEl:this.$ul[0],contentEl:this.$ul[0],callback:function(){u(),t.events()}}),u(),i||this.$drop.css("left",0).hide()}else this.$ul.html(e.join("")),this.updateDataStart=0,this.updateDataEnd=this.updateData.length,this.virtualScroll=null;this.events()}},{key:"getListRows",value:function(){var t=this,e=[];return this.options.selectAll&&!this.options.single&&e.push('\n
          • \n \n
          • \n ")),this.updateData=[],this.data.forEach((function(n){e.push.apply(e,o(t.initListItem(n)))})),e.push('
          • '.concat(this.options.formatNoMatchesFound(),"
          • ")),e}},{key:"initListItem",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=t.title?'title="'.concat(t.title,'"'):"",u=this.options.multiple?"multiple":"",r=this.options.single?"radio":"checkbox",s="";if(!t.visible)return[];if(this.updateData.push(t),this.options.single&&!this.options.singleRadio&&(s="hide-radio "),t.selected&&(s+="selected "),"optgroup"===t.type){var a=this.options.styler(t),l=a?'style="'.concat(a,'"'):"",c=[],h=this.options.hideOptgroupCheckboxes||this.options.single?"'):'');return s.includes("hide-radio")||!this.options.hideOptgroupCheckboxes&&!this.options.single||(s+="hide-radio "),c.push('\n
          • \n \n
          • \n ")),t.children.forEach((function(t){c.push.apply(c,o(e.initListItem(t,1)))})),c}var f=this.options.styler(t),d=f?'style="'.concat(f,'"'):"";return s+=t.classes||"",n&&this.options.single&&(s+="option-level-".concat(n," ")),t.divider?'
          • ':['\n
          • \n \n
          • \n ")]}},{key:"events",value:function(){var e=this;this.$searchInput=this.$drop.find(".ms-search input"),this.$selectAll=this.$drop.find("input[".concat(this.selectAllName,"]")),this.$selectGroups=this.$drop.find("input[".concat(this.selectGroupName,"],span[").concat(this.selectGroupName,"]")),this.$selectItems=this.$drop.find("input[".concat(this.selectItemName,"]:enabled")),this.$disableItems=this.$drop.find("input[".concat(this.selectItemName,"]:disabled")),this.$noResults=this.$drop.find(".ms-no-results");var n=function(n){n.preventDefault(),t(n.target).hasClass("icon-close")||e[e.options.isOpen?"close":"open"]()};this.$label&&this.$label.length&&this.$label.off("click").on("click",(function(t){"label"===t.target.nodeName.toLowerCase()&&(n(t),e.options.filter&&e.options.isOpen||e.focus(),t.stopPropagation())})),this.$choice.off("click").on("click",n).off("focus").on("focus",this.options.onFocus).off("blur").on("blur",this.options.onBlur),this.$parent.off("keydown").on("keydown",(function(t){27!==t.which||e.options.keepOpen||(e.close(),e.$choice.focus())})),this.$close.off("click").on("click",(function(t){t.preventDefault(),e._checkAll(!1,!0),e.initSelected(!1),e.updateSelected(),e.update(),e.options.onClear()})),this.$searchInput.off("keydown").on("keydown",(function(t){9===t.keyCode&&t.shiftKey&&e.close()})).off("keyup").on("keyup",(function(t){if(e.options.filterAcceptOnEnter&&[13,32].includes(t.which)&&e.$searchInput.val()){if(e.options.single){var n=e.$selectItems.closest("li").filter(":visible");n.length&&e.setSelects([n.first().find("input[".concat(e.selectItemName,"]")).val()])}else e.$selectAll.click();return e.close(),void e.focus()}e.filter()})),this.$selectAll.off("click").on("click",(function(n){e._checkAll(t(n.currentTarget).prop("checked"))})),this.$selectGroups.off("click").on("click",(function(n){var i=t(n.currentTarget),u=i.prop("checked"),r=ph(e.data,"_key",i.data("key"));e._checkGroup(r,u),e.options.onOptgroupClick(vh({label:r.label,selected:r.selected,data:r._data,children:r.children.map((function(t){return vh({text:t.text,value:t.value,selected:t.selected,disabled:t.disabled,data:t._data})}))}))})),this.$selectItems.off("click").on("click",(function(n){var i=t(n.currentTarget),u=i.prop("checked"),r=ph(e.data,"_key",i.data("key")),o=function(){e.options.single&&e.options.isOpen&&!e.options.keepOpen&&e.close()};!1!==e.options.onBeforeClick(r)?(e._check(r,u),e.options.onClick(vh({text:r.text,value:r.value,selected:r.selected,data:r._data})),o()):o()})),this.$ul.find("li").off("keydown").on("keydown",(function(n){var i,u=t(n.currentTarget);switch(n.key){case"ArrowUp":n.preventDefault(),((i=u.prev("li.option-divider")).length?i:u).prev().trigger("focus");break;case"ArrowDown":n.preventDefault(),((i=u.next("li.option-divider")).length?i:u).next().trigger("focus");break;case"Enter":n.preventDefault(),u.find("input").trigger("click"),e.options.single&&e.$choice.trigger("focus")}}))}},{key:"initView",value:function(){var t;window.getComputedStyle?"auto"===(t=window.getComputedStyle(this.$el[0]).width)&&(t=this.$drop.outerWidth()+20):t=this.$el.outerWidth()+20,this.$parent.css("width",this.options.width||t),this.$el.show().addClass("ms-offscreen")}},{key:"open",value:function(){if(!this.$choice.hasClass("disabled")){if(this.options.isOpen=!0,this.$parent.addClass("ms-parent-open"),this.$choice.find(">div").addClass("open"),this.$drop[this.animateMethod("show")](),this.$selectAll.parent().show(),this.$noResults.hide(),this.data.length||(this.$selectAll.parent().hide(),this.$noResults.show()),this.options.container){var e=this.$drop.offset();this.$drop.appendTo(t(this.options.container)),this.$drop.offset({top:e.top,left:e.left}).css("min-width","auto").outerWidth(this.$parent.outerWidth())}var n=this.options.maxHeight;"row"===this.options.maxHeightUnit&&(n=this.$drop.find(">ul>li").first().outerHeight()*this.options.maxHeight),this.$drop.find(">ul").css("max-height","".concat(n,"px")),this.$drop.find(".multiple").css("width","".concat(this.options.multipleWidth,"px")),this.data.length&&this.options.filter&&(this.$searchInput.val(""),this.$searchInput.focus(),this.filter(!0)),this.options.onOpen()}}},{key:"close",value:function(){this.options.isOpen=!1,this.$parent.removeClass("ms-parent-open"),this.$choice.find(">div").removeClass("open"),this.$drop[this.animateMethod("hide")](),this.options.container&&(this.$parent.append(this.$drop),this.$drop.css({top:"auto",left:"auto"})),this.options.onClose()}},{key:"animateMethod",value:function(t){return{show:{fade:"fadeIn",slide:"slideDown"},hide:{fade:"fadeOut",slide:"slideUp"}}[t][this.options.animate]||t}},{key:"update",value:function(t){var e=this.getSelects(),n=this.getSelects("text");this.options.displayValues&&(n=e);var i=this.$choice.find(">span"),u=e.length,r="";0===u?i.addClass("placeholder").html(this.options.placeholder):r=uthis.options.minimumCountSelected?"".concat(n.slice(0,this.options.minimumCountSelected).join(this.options.displayDelimiter),"..."):this.options.formatCountSelected()&&u>this.options.minimumCountSelected?this.options.formatCountSelected(u,this.dataTotal):n.join(this.options.displayDelimiter),r&&i.removeClass("placeholder").html(r),this.options.displayTitle&&i.prop("title",this.getSelects("text")),this.$el.val(this.getSelects()),t||this.$el.trigger("change")}},{key:"updateSelected",value:function(){for(var t=this.updateDataStart;t0&&void 0!==arguments[0]?arguments[0]:"value",n=[],i=l(this.data);try{for(i.s();!(t=i.n()).done;){var u=t.value;if("optgroup"===u.type){var r=u.children.filter((function(t){return t.selected}));if(!r.length)continue;if("value"===e||this.options.single)n.push.apply(n,o(r.map((function(t){return"value"===e&&t._value||t[e]}))));else{var s=[];s.push("["),s.push(u.label),s.push(": ".concat(r.map((function(t){return t[e]})).join(", "))),s.push("]"),n.push(s.join(""))}}else u.selected&&n.push("value"===e&&u._value||u[e])}}catch(t){i.e(t)}finally{i.f()}return n}},{key:"setSelects",value:function(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value",u=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!1,o=function(n){var u,o=l(n);try{for(o.s();!(u=o.n()).done;){var s=u.value,a=!1;"text"===i?a=e.includes(t("
            ").html(s.text).text().trim()):(a=e.includes(s._value||s.value))||s.value!=="".concat(+s.value)||(a=e.includes(+s.value)),s.selected!==a&&(r=!0),s.selected=a}}catch(t){o.e(t)}finally{o.f()}},s=l(this.data);try{for(s.s();!(n=s.n()).done;){var a=n.value;"optgroup"===a.type?o(a.children):o([a])}}catch(t){s.e(t)}finally{s.f()}r&&(this.initSelected(u),this.updateSelected(),this.update(u))}},{key:"enable",value:function(){this.$choice.removeClass("disabled")}},{key:"disable",value:function(){this.$choice.addClass("disabled")}},{key:"check",value:function(t){var e=ph(this.data,"value",t);e&&this._check(e,!0)}},{key:"uncheck",value:function(t){var e=ph(this.data,"value",t);e&&this._check(e,!1)}},{key:"_check",value:function(t,e){this.options.single&&this._checkAll(!1,!0),t.selected=e,this.initSelected(),this.updateSelected(),this.update()}},{key:"checkAll",value:function(){this._checkAll(!0)}},{key:"uncheckAll",value:function(){this._checkAll(!1)}},{key:"_checkAll",value:function(t,e){var n,i=l(this.data);try{for(i.s();!(n=i.n()).done;){var u=n.value;"optgroup"===u.type?this._checkGroup(u,t,!0):u.disabled||u.divider||!e&&!u.visible||(u.selected=t)}}catch(t){i.e(t)}finally{i.f()}e||(this.initSelected(),this.updateSelected(),this.update())}},{key:"_checkGroup",value:function(t,e,n){t.selected=e,t.children.forEach((function(t){t.disabled||t.divider||!n&&!t.visible||(t.selected=e)})),n||(this.initSelected(),this.updateSelected(),this.update())}},{key:"checkInvert",value:function(){if(!this.options.single){var t,e=l(this.data);try{for(e.s();!(t=e.n()).done;){var n=t.value;if("optgroup"===n.type){var i,u=l(n.children);try{for(u.s();!(i=u.n()).done;){var r=i.value;r.divider||(r.selected=!r.selected)}}catch(t){u.e(t)}finally{u.f()}}else n.divider||(n.selected=!n.selected)}}catch(t){e.e(t)}finally{e.f()}this.initSelected(),this.updateSelected(),this.update()}}},{key:"focus",value:function(){this.$choice.focus(),this.options.onFocus()}},{key:"blur",value:function(){this.$choice.blur(),this.options.onBlur()}},{key:"refresh",value:function(){this.destroy(),this.init()}},{key:"filter",value:function(t){var e=this.$searchInput.val().trim(),n=e.toLowerCase();if(this.filterText!==n){this.filterText=n;var i,u=l(this.data);try{for(u.s();!(i=u.n()).done;){var r=i.value;if("optgroup"===r.type)if(this.options.filterGroup){var o=this.options.customFilter({label:dh(r.label.toString().toLowerCase()),search:dh(n),originalLabel:r.label,originalSearch:e,row:r});r.visible=o;var s,a=l(r.children);try{for(a.s();!(s=a.n()).done;){s.value.visible=o}}catch(t){a.e(t)}finally{a.f()}}else{var c,h=l(r.children);try{for(h.s();!(c=h.n()).done;){var f=c.value;f.visible=this.options.customFilter({text:dh(f.text.toString().toLowerCase()),search:dh(n),originalText:f.text,originalSearch:e,row:f,parent:r})}}catch(t){h.e(t)}finally{h.f()}r.visible=r.children.filter((function(t){return t.visible})).length>0}else r.visible=this.options.customFilter({text:dh(r.text.toString().toLowerCase()),search:dh(n),originalText:r.text,originalSearch:e,row:r})}}catch(t){u.e(t)}finally{u.f()}this.initListItems(),this.initSelected(t),this.updateSelected(),t||this.options.onFilter(e)}}},{key:"destroy",value:function(){this.$parent&&(this.$el.before(this.$parent).removeClass("ms-offscreen"),null!==this.tabIndex&&this.$el.attr("tabindex",this.tabIndex),this.$parent.remove(),this.fromHtml&&(delete this.options.data,this.fromHtml=!1))}}]),i}();t.fn.multipleSelect=function(n){for(var i=arguments.length,u=new Array(i>1?i-1:0),r=1;r (http://wenzhixin.net.cn/) * @license MIT diff --git a/multiple-select.jquery.json b/multiple-select.jquery.json index 3dcce6ca..eac356bf 100644 --- a/multiple-select.jquery.json +++ b/multiple-select.jquery.json @@ -1,6 +1,6 @@ { "name": "multiple-select", - "version": "1.6.0", + "version": "1.7.0", "title": "Multiple Select", "description": "Multiple select is a jQuery plugin to select multiple elements with checkboxes :).", "author": { diff --git a/package.json b/package.json index 9dc7fc0a..1d1bb20f 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "multiple-select", "main": "dist/multiple-select.min.js", "module": "dist/multiple-select-es.min.js", - "version": "1.6.0", + "version": "1.7.0", "type": "module", "title": "Multiple Select", "description": "Multiple select is a jQuery plugin to select multiple elements with checkboxes :).", diff --git a/site/docs/browser.md b/site/docs/browser.md index c0f1831c..34bd0a63 100644 --- a/site/docs/browser.md +++ b/site/docs/browser.md @@ -10,7 +10,7 @@ title: Browser In addition to the files that [Usage](/docs/en/usage) mentions, you also need to include our vue component file. ```html - + ``` ## Usage @@ -56,7 +56,7 @@ In addition to the files that [Usage](/docs/en/usage) mentions, you also need to Hello, Multiple Select! - +
            @@ -92,8 +92,8 @@ In addition to the files that [Usage](/docs/en/usage) mentions, you also need to
            - - + + + ``` ## NPM diff --git a/site/docs/events.md b/site/docs/events.md index e24d5e57..64873d6d 100644 --- a/site/docs/events.md +++ b/site/docs/events.md @@ -61,6 +61,12 @@ Example: [The Event](/examples#events.html) - **Detail:** Fires when a an optgroup label is clicked on. The `view` parameter is an object, it contains `label, selected, children, data`, the `children` contains `text, value, selected, disabled, data`. +## onBeforeClick + +- **Parameter:** `view` + +- **Detail:** Fires before a checkbox is clicked. The `view` parameter is an object, it contains `text, value, selected, data`. Return `false` to prevent the click event. + ## onClick - **Parameter:** `view` diff --git a/site/docs/introduction.md b/site/docs/introduction.md index f6f9f285..e79fd36f 100644 --- a/site/docs/introduction.md +++ b/site/docs/introduction.md @@ -24,10 +24,10 @@ npm install multiple-select ### UNPKG -The folks over at [UNPKG](https://unpkg.com/multiple-select@1.6.0/dist/) graciously provide CDN support for CSS and JavaScript of Multiple Select. Just use these links. +The folks over at [UNPKG](https://unpkg.com/multiple-select@1.7.0/dist/) graciously provide CDN support for CSS and JavaScript of Multiple Select. Just use these links. ```html -https://unpkg.com/multiple-select@1.6.0 +https://unpkg.com/multiple-select@1.7.0 ``` ## Build Files diff --git a/site/docs/usage.md b/site/docs/usage.md index 8e8e4a62..83f2bc02 100644 --- a/site/docs/usage.md +++ b/site/docs/usage.md @@ -59,7 +59,7 @@ Put it all together and your pages should look like this: Hello, Multiple Select! - + @@ -95,7 +95,7 @@ Put it all together and your pages should look like this: - + diff --git a/site/website/static/templates/themes.html b/site/website/static/templates/themes.html index 67ed2d14..5a512445 100644 --- a/site/website/static/templates/themes.html +++ b/site/website/static/templates/themes.html @@ -4,7 +4,7 @@ desc: 'Multiple select with bootstrap theme.', links: [ 'multiple-select.min.css', - 'https://unpkg.com/multiple-select@1.6.0/dist/themes/bootstrap.min.css' + 'https://unpkg.com/multiple-select@1.7.0/dist/themes/bootstrap.min.css' ], scripts: ['multiple-select.min.js'] }) diff --git a/site/website/static/templates/vue-component.html b/site/website/static/templates/vue-component.html index 3d233b35..2e3b02f4 100644 --- a/site/website/static/templates/vue-component.html +++ b/site/website/static/templates/vue-component.html @@ -6,7 +6,7 @@ scripts: [ 'https://cdn.jsdelivr.net/npm/vue@2.6.12/dist/vue.min.js', 'multiple-select.min.js', - 'https://unpkg.com/multiple-select@1.6.0/dist/multiple-select-vue.min.js' + 'https://unpkg.com/multiple-select@1.7.0/dist/multiple-select-vue.min.js' ] }) diff --git a/src/MultipleSelect.js b/src/MultipleSelect.js index 83a277b7..63d01bfd 100644 --- a/src/MultipleSelect.js +++ b/src/MultipleSelect.js @@ -92,9 +92,9 @@ class MultipleSelect { let tabIndex = '' if (this.tabIndex !== null) { - this.$el.attr('tabindex', -1) tabIndex = this.tabIndex && `tabindex="${this.tabIndex}"` } + this.$el.attr('tabindex', -1) this.$choice = $(`