UNPKG

67.4 kBJavaScriptView Raw
1(function (global, factory) {
2 typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
3 typeof define === 'function' && define.amd ? define(factory) :
4 (global = global || self, global.MultipleSelect = factory());
5}(this, function () { 'use strict';
6
7 var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
8
9 function createCommonjsModule(fn, module) {
10 return module = { exports: {} }, fn(module, module.exports), module.exports;
11 }
12
13 var O = 'object';
14 var check = function (it) {
15 return it && it.Math == Math && it;
16 };
17
18 // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
19 var global_1 =
20 // eslint-disable-next-line no-undef
21 check(typeof globalThis == O && globalThis) ||
22 check(typeof window == O && window) ||
23 check(typeof self == O && self) ||
24 check(typeof commonjsGlobal == O && commonjsGlobal) ||
25 // eslint-disable-next-line no-new-func
26 Function('return this')();
27
28 var fails = function (exec) {
29 try {
30 return !!exec();
31 } catch (error) {
32 return true;
33 }
34 };
35
36 // Thank's IE8 for his funny defineProperty
37 var descriptors = !fails(function () {
38 return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
39 });
40
41 var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
42 var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
43
44 // Nashorn ~ JDK8 bug
45 var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
46
47 // `Object.prototype.propertyIsEnumerable` method implementation
48 // https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable
49 var f = NASHORN_BUG ? function propertyIsEnumerable(V) {
50 var descriptor = getOwnPropertyDescriptor(this, V);
51 return !!descriptor && descriptor.enumerable;
52 } : nativePropertyIsEnumerable;
53
54 var objectPropertyIsEnumerable = {
55 f: f
56 };
57
58 var createPropertyDescriptor = function (bitmap, value) {
59 return {
60 enumerable: !(bitmap & 1),
61 configurable: !(bitmap & 2),
62 writable: !(bitmap & 4),
63 value: value
64 };
65 };
66
67 var toString = {}.toString;
68
69 var classofRaw = function (it) {
70 return toString.call(it).slice(8, -1);
71 };
72
73 var split = ''.split;
74
75 // fallback for non-array-like ES3 and non-enumerable old V8 strings
76 var indexedObject = fails(function () {
77 // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
78 // eslint-disable-next-line no-prototype-builtins
79 return !Object('z').propertyIsEnumerable(0);
80 }) ? function (it) {
81 return classofRaw(it) == 'String' ? split.call(it, '') : Object(it);
82 } : Object;
83
84 // `RequireObjectCoercible` abstract operation
85 // https://tc39.github.io/ecma262/#sec-requireobjectcoercible
86 var requireObjectCoercible = function (it) {
87 if (it == undefined) throw TypeError("Can't call method on " + it);
88 return it;
89 };
90
91 // toObject with fallback for non-array-like ES3 strings
92
93
94
95 var toIndexedObject = function (it) {
96 return indexedObject(requireObjectCoercible(it));
97 };
98
99 var isObject = function (it) {
100 return typeof it === 'object' ? it !== null : typeof it === 'function';
101 };
102
103 // `ToPrimitive` abstract operation
104 // https://tc39.github.io/ecma262/#sec-toprimitive
105 // instead of the ES6 spec version, we didn't implement @@toPrimitive case
106 // and the second argument - flag - preferred type is a string
107 var toPrimitive = function (input, PREFERRED_STRING) {
108 if (!isObject(input)) return input;
109 var fn, val;
110 if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
111 if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;
112 if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
113 throw TypeError("Can't convert object to primitive value");
114 };
115
116 var hasOwnProperty = {}.hasOwnProperty;
117
118 var has = function (it, key) {
119 return hasOwnProperty.call(it, key);
120 };
121
122 var document = global_1.document;
123 // typeof document.createElement is 'object' in old IE
124 var EXISTS = isObject(document) && isObject(document.createElement);
125
126 var documentCreateElement = function (it) {
127 return EXISTS ? document.createElement(it) : {};
128 };
129
130 // Thank's IE8 for his funny defineProperty
131 var ie8DomDefine = !descriptors && !fails(function () {
132 return Object.defineProperty(documentCreateElement('div'), 'a', {
133 get: function () { return 7; }
134 }).a != 7;
135 });
136
137 var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
138
139 // `Object.getOwnPropertyDescriptor` method
140 // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor
141 var f$1 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
142 O = toIndexedObject(O);
143 P = toPrimitive(P, true);
144 if (ie8DomDefine) try {
145 return nativeGetOwnPropertyDescriptor(O, P);
146 } catch (error) { /* empty */ }
147 if (has(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
148 };
149
150 var objectGetOwnPropertyDescriptor = {
151 f: f$1
152 };
153
154 var anObject = function (it) {
155 if (!isObject(it)) {
156 throw TypeError(String(it) + ' is not an object');
157 } return it;
158 };
159
160 var nativeDefineProperty = Object.defineProperty;
161
162 // `Object.defineProperty` method
163 // https://tc39.github.io/ecma262/#sec-object.defineproperty
164 var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
165 anObject(O);
166 P = toPrimitive(P, true);
167 anObject(Attributes);
168 if (ie8DomDefine) try {
169 return nativeDefineProperty(O, P, Attributes);
170 } catch (error) { /* empty */ }
171 if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
172 if ('value' in Attributes) O[P] = Attributes.value;
173 return O;
174 };
175
176 var objectDefineProperty = {
177 f: f$2
178 };
179
180 var hide = descriptors ? function (object, key, value) {
181 return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));
182 } : function (object, key, value) {
183 object[key] = value;
184 return object;
185 };
186
187 var setGlobal = function (key, value) {
188 try {
189 hide(global_1, key, value);
190 } catch (error) {
191 global_1[key] = value;
192 } return value;
193 };
194
195 var shared = createCommonjsModule(function (module) {
196 var SHARED = '__core-js_shared__';
197 var store = global_1[SHARED] || setGlobal(SHARED, {});
198
199 (module.exports = function (key, value) {
200 return store[key] || (store[key] = value !== undefined ? value : {});
201 })('versions', []).push({
202 version: '3.2.1',
203 mode: 'global',
204 copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
205 });
206 });
207
208 var functionToString = shared('native-function-to-string', Function.toString);
209
210 var WeakMap = global_1.WeakMap;
211
212 var nativeWeakMap = typeof WeakMap === 'function' && /native code/.test(functionToString.call(WeakMap));
213
214 var id = 0;
215 var postfix = Math.random();
216
217 var uid = function (key) {
218 return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
219 };
220
221 var keys = shared('keys');
222
223 var sharedKey = function (key) {
224 return keys[key] || (keys[key] = uid(key));
225 };
226
227 var hiddenKeys = {};
228
229 var WeakMap$1 = global_1.WeakMap;
230 var set, get, has$1;
231
232 var enforce = function (it) {
233 return has$1(it) ? get(it) : set(it, {});
234 };
235
236 var getterFor = function (TYPE) {
237 return function (it) {
238 var state;
239 if (!isObject(it) || (state = get(it)).type !== TYPE) {
240 throw TypeError('Incompatible receiver, ' + TYPE + ' required');
241 } return state;
242 };
243 };
244
245 if (nativeWeakMap) {
246 var store = new WeakMap$1();
247 var wmget = store.get;
248 var wmhas = store.has;
249 var wmset = store.set;
250 set = function (it, metadata) {
251 wmset.call(store, it, metadata);
252 return metadata;
253 };
254 get = function (it) {
255 return wmget.call(store, it) || {};
256 };
257 has$1 = function (it) {
258 return wmhas.call(store, it);
259 };
260 } else {
261 var STATE = sharedKey('state');
262 hiddenKeys[STATE] = true;
263 set = function (it, metadata) {
264 hide(it, STATE, metadata);
265 return metadata;
266 };
267 get = function (it) {
268 return has(it, STATE) ? it[STATE] : {};
269 };
270 has$1 = function (it) {
271 return has(it, STATE);
272 };
273 }
274
275 var internalState = {
276 set: set,
277 get: get,
278 has: has$1,
279 enforce: enforce,
280 getterFor: getterFor
281 };
282
283 var redefine = createCommonjsModule(function (module) {
284 var getInternalState = internalState.get;
285 var enforceInternalState = internalState.enforce;
286 var TEMPLATE = String(functionToString).split('toString');
287
288 shared('inspectSource', function (it) {
289 return functionToString.call(it);
290 });
291
292 (module.exports = function (O, key, value, options) {
293 var unsafe = options ? !!options.unsafe : false;
294 var simple = options ? !!options.enumerable : false;
295 var noTargetGet = options ? !!options.noTargetGet : false;
296 if (typeof value == 'function') {
297 if (typeof key == 'string' && !has(value, 'name')) hide(value, 'name', key);
298 enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');
299 }
300 if (O === global_1) {
301 if (simple) O[key] = value;
302 else setGlobal(key, value);
303 return;
304 } else if (!unsafe) {
305 delete O[key];
306 } else if (!noTargetGet && O[key]) {
307 simple = true;
308 }
309 if (simple) O[key] = value;
310 else hide(O, key, value);
311 // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
312 })(Function.prototype, 'toString', function toString() {
313 return typeof this == 'function' && getInternalState(this).source || functionToString.call(this);
314 });
315 });
316
317 var path = global_1;
318
319 var aFunction = function (variable) {
320 return typeof variable == 'function' ? variable : undefined;
321 };
322
323 var getBuiltIn = function (namespace, method) {
324 return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global_1[namespace])
325 : path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];
326 };
327
328 var ceil = Math.ceil;
329 var floor = Math.floor;
330
331 // `ToInteger` abstract operation
332 // https://tc39.github.io/ecma262/#sec-tointeger
333 var toInteger = function (argument) {
334 return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
335 };
336
337 var min = Math.min;
338
339 // `ToLength` abstract operation
340 // https://tc39.github.io/ecma262/#sec-tolength
341 var toLength = function (argument) {
342 return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
343 };
344
345 var max = Math.max;
346 var min$1 = Math.min;
347
348 // Helper for a popular repeating case of the spec:
349 // Let integer be ? ToInteger(index).
350 // If integer < 0, let result be max((length + integer), 0); else let result be min(length, length).
351 var toAbsoluteIndex = function (index, length) {
352 var integer = toInteger(index);
353 return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
354 };
355
356 // `Array.prototype.{ indexOf, includes }` methods implementation
357 var createMethod = function (IS_INCLUDES) {
358 return function ($this, el, fromIndex) {
359 var O = toIndexedObject($this);
360 var length = toLength(O.length);
361 var index = toAbsoluteIndex(fromIndex, length);
362 var value;
363 // Array#includes uses SameValueZero equality algorithm
364 // eslint-disable-next-line no-self-compare
365 if (IS_INCLUDES && el != el) while (length > index) {
366 value = O[index++];
367 // eslint-disable-next-line no-self-compare
368 if (value != value) return true;
369 // Array#indexOf ignores holes, Array#includes - not
370 } else for (;length > index; index++) {
371 if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
372 } return !IS_INCLUDES && -1;
373 };
374 };
375
376 var arrayIncludes = {
377 // `Array.prototype.includes` method
378 // https://tc39.github.io/ecma262/#sec-array.prototype.includes
379 includes: createMethod(true),
380 // `Array.prototype.indexOf` method
381 // https://tc39.github.io/ecma262/#sec-array.prototype.indexof
382 indexOf: createMethod(false)
383 };
384
385 var indexOf = arrayIncludes.indexOf;
386
387
388 var objectKeysInternal = function (object, names) {
389 var O = toIndexedObject(object);
390 var i = 0;
391 var result = [];
392 var key;
393 for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);
394 // Don't enum bug & hidden keys
395 while (names.length > i) if (has(O, key = names[i++])) {
396 ~indexOf(result, key) || result.push(key);
397 }
398 return result;
399 };
400
401 // IE8- don't enum bug keys
402 var enumBugKeys = [
403 'constructor',
404 'hasOwnProperty',
405 'isPrototypeOf',
406 'propertyIsEnumerable',
407 'toLocaleString',
408 'toString',
409 'valueOf'
410 ];
411
412 var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
413
414 // `Object.getOwnPropertyNames` method
415 // https://tc39.github.io/ecma262/#sec-object.getownpropertynames
416 var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
417 return objectKeysInternal(O, hiddenKeys$1);
418 };
419
420 var objectGetOwnPropertyNames = {
421 f: f$3
422 };
423
424 var f$4 = Object.getOwnPropertySymbols;
425
426 var objectGetOwnPropertySymbols = {
427 f: f$4
428 };
429
430 // all object keys, includes non-enumerable and symbols
431 var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
432 var keys = objectGetOwnPropertyNames.f(anObject(it));
433 var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
434 return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
435 };
436
437 var copyConstructorProperties = function (target, source) {
438 var keys = ownKeys(source);
439 var defineProperty = objectDefineProperty.f;
440 var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
441 for (var i = 0; i < keys.length; i++) {
442 var key = keys[i];
443 if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
444 }
445 };
446
447 var replacement = /#|\.prototype\./;
448
449 var isForced = function (feature, detection) {
450 var value = data[normalize(feature)];
451 return value == POLYFILL ? true
452 : value == NATIVE ? false
453 : typeof detection == 'function' ? fails(detection)
454 : !!detection;
455 };
456
457 var normalize = isForced.normalize = function (string) {
458 return String(string).replace(replacement, '.').toLowerCase();
459 };
460
461 var data = isForced.data = {};
462 var NATIVE = isForced.NATIVE = 'N';
463 var POLYFILL = isForced.POLYFILL = 'P';
464
465 var isForced_1 = isForced;
466
467 var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
468
469
470
471
472
473
474 /*
475 options.target - name of the target object
476 options.global - target is the global object
477 options.stat - export as static methods of target
478 options.proto - export as prototype methods of target
479 options.real - real prototype method for the `pure` version
480 options.forced - export even if the native feature is available
481 options.bind - bind methods to the target, required for the `pure` version
482 options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
483 options.unsafe - use the simple assignment of property instead of delete + defineProperty
484 options.sham - add a flag to not completely full polyfills
485 options.enumerable - export as enumerable property
486 options.noTargetGet - prevent calling a getter on target
487 */
488 var _export = function (options, source) {
489 var TARGET = options.target;
490 var GLOBAL = options.global;
491 var STATIC = options.stat;
492 var FORCED, target, key, targetProperty, sourceProperty, descriptor;
493 if (GLOBAL) {
494 target = global_1;
495 } else if (STATIC) {
496 target = global_1[TARGET] || setGlobal(TARGET, {});
497 } else {
498 target = (global_1[TARGET] || {}).prototype;
499 }
500 if (target) for (key in source) {
501 sourceProperty = source[key];
502 if (options.noTargetGet) {
503 descriptor = getOwnPropertyDescriptor$1(target, key);
504 targetProperty = descriptor && descriptor.value;
505 } else targetProperty = target[key];
506 FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
507 // contained in target
508 if (!FORCED && targetProperty !== undefined) {
509 if (typeof sourceProperty === typeof targetProperty) continue;
510 copyConstructorProperties(sourceProperty, targetProperty);
511 }
512 // add a flag to not completely full polyfills
513 if (options.sham || (targetProperty && targetProperty.sham)) {
514 hide(sourceProperty, 'sham', true);
515 }
516 // extend global
517 redefine(target, key, sourceProperty, options);
518 }
519 };
520
521 var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
522 // Chrome 38 Symbol has incorrect toString conversion
523 // eslint-disable-next-line no-undef
524 return !String(Symbol());
525 });
526
527 // `IsArray` abstract operation
528 // https://tc39.github.io/ecma262/#sec-isarray
529 var isArray = Array.isArray || function isArray(arg) {
530 return classofRaw(arg) == 'Array';
531 };
532
533 // `ToObject` abstract operation
534 // https://tc39.github.io/ecma262/#sec-toobject
535 var toObject = function (argument) {
536 return Object(requireObjectCoercible(argument));
537 };
538
539 // `Object.keys` method
540 // https://tc39.github.io/ecma262/#sec-object.keys
541 var objectKeys = Object.keys || function keys(O) {
542 return objectKeysInternal(O, enumBugKeys);
543 };
544
545 // `Object.defineProperties` method
546 // https://tc39.github.io/ecma262/#sec-object.defineproperties
547 var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
548 anObject(O);
549 var keys = objectKeys(Properties);
550 var length = keys.length;
551 var index = 0;
552 var key;
553 while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]);
554 return O;
555 };
556
557 var html = getBuiltIn('document', 'documentElement');
558
559 var IE_PROTO = sharedKey('IE_PROTO');
560
561 var PROTOTYPE = 'prototype';
562 var Empty = function () { /* empty */ };
563
564 // Create object with fake `null` prototype: use iframe Object with cleared prototype
565 var createDict = function () {
566 // Thrash, waste and sodomy: IE GC bug
567 var iframe = documentCreateElement('iframe');
568 var length = enumBugKeys.length;
569 var lt = '<';
570 var script = 'script';
571 var gt = '>';
572 var js = 'java' + script + ':';
573 var iframeDocument;
574 iframe.style.display = 'none';
575 html.appendChild(iframe);
576 iframe.src = String(js);
577 iframeDocument = iframe.contentWindow.document;
578 iframeDocument.open();
579 iframeDocument.write(lt + script + gt + 'document.F=Object' + lt + '/' + script + gt);
580 iframeDocument.close();
581 createDict = iframeDocument.F;
582 while (length--) delete createDict[PROTOTYPE][enumBugKeys[length]];
583 return createDict();
584 };
585
586 // `Object.create` method
587 // https://tc39.github.io/ecma262/#sec-object.create
588 var objectCreate = Object.create || function create(O, Properties) {
589 var result;
590 if (O !== null) {
591 Empty[PROTOTYPE] = anObject(O);
592 result = new Empty();
593 Empty[PROTOTYPE] = null;
594 // add "__proto__" for Object.getPrototypeOf polyfill
595 result[IE_PROTO] = O;
596 } else result = createDict();
597 return Properties === undefined ? result : objectDefineProperties(result, Properties);
598 };
599
600 hiddenKeys[IE_PROTO] = true;
601
602 var nativeGetOwnPropertyNames = objectGetOwnPropertyNames.f;
603
604 var toString$1 = {}.toString;
605
606 var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
607 ? Object.getOwnPropertyNames(window) : [];
608
609 var getWindowNames = function (it) {
610 try {
611 return nativeGetOwnPropertyNames(it);
612 } catch (error) {
613 return windowNames.slice();
614 }
615 };
616
617 // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
618 var f$5 = function getOwnPropertyNames(it) {
619 return windowNames && toString$1.call(it) == '[object Window]'
620 ? getWindowNames(it)
621 : nativeGetOwnPropertyNames(toIndexedObject(it));
622 };
623
624 var objectGetOwnPropertyNamesExternal = {
625 f: f$5
626 };
627
628 var Symbol$1 = global_1.Symbol;
629 var store$1 = shared('wks');
630
631 var wellKnownSymbol = function (name) {
632 return store$1[name] || (store$1[name] = nativeSymbol && Symbol$1[name]
633 || (nativeSymbol ? Symbol$1 : uid)('Symbol.' + name));
634 };
635
636 var f$6 = wellKnownSymbol;
637
638 var wrappedWellKnownSymbol = {
639 f: f$6
640 };
641
642 var defineProperty = objectDefineProperty.f;
643
644 var defineWellKnownSymbol = function (NAME) {
645 var Symbol = path.Symbol || (path.Symbol = {});
646 if (!has(Symbol, NAME)) defineProperty(Symbol, NAME, {
647 value: wrappedWellKnownSymbol.f(NAME)
648 });
649 };
650
651 var defineProperty$1 = objectDefineProperty.f;
652
653
654
655 var TO_STRING_TAG = wellKnownSymbol('toStringTag');
656
657 var setToStringTag = function (it, TAG, STATIC) {
658 if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {
659 defineProperty$1(it, TO_STRING_TAG, { configurable: true, value: TAG });
660 }
661 };
662
663 var aFunction$1 = function (it) {
664 if (typeof it != 'function') {
665 throw TypeError(String(it) + ' is not a function');
666 } return it;
667 };
668
669 // optional / simple context binding
670 var bindContext = function (fn, that, length) {
671 aFunction$1(fn);
672 if (that === undefined) return fn;
673 switch (length) {
674 case 0: return function () {
675 return fn.call(that);
676 };
677 case 1: return function (a) {
678 return fn.call(that, a);
679 };
680 case 2: return function (a, b) {
681 return fn.call(that, a, b);
682 };
683 case 3: return function (a, b, c) {
684 return fn.call(that, a, b, c);
685 };
686 }
687 return function (/* ...args */) {
688 return fn.apply(that, arguments);
689 };
690 };
691
692 var SPECIES = wellKnownSymbol('species');
693
694 // `ArraySpeciesCreate` abstract operation
695 // https://tc39.github.io/ecma262/#sec-arrayspeciescreate
696 var arraySpeciesCreate = function (originalArray, length) {
697 var C;
698 if (isArray(originalArray)) {
699 C = originalArray.constructor;
700 // cross-realm fallback
701 if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
702 else if (isObject(C)) {
703 C = C[SPECIES];
704 if (C === null) C = undefined;
705 }
706 } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
707 };
708
709 var push = [].push;
710
711 // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation
712 var createMethod$1 = function (TYPE) {
713 var IS_MAP = TYPE == 1;
714 var IS_FILTER = TYPE == 2;
715 var IS_SOME = TYPE == 3;
716 var IS_EVERY = TYPE == 4;
717 var IS_FIND_INDEX = TYPE == 6;
718 var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
719 return function ($this, callbackfn, that, specificCreate) {
720 var O = toObject($this);
721 var self = indexedObject(O);
722 var boundFunction = bindContext(callbackfn, that, 3);
723 var length = toLength(self.length);
724 var index = 0;
725 var create = specificCreate || arraySpeciesCreate;
726 var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
727 var value, result;
728 for (;length > index; index++) if (NO_HOLES || index in self) {
729 value = self[index];
730 result = boundFunction(value, index, O);
731 if (TYPE) {
732 if (IS_MAP) target[index] = result; // map
733 else if (result) switch (TYPE) {
734 case 3: return true; // some
735 case 5: return value; // find
736 case 6: return index; // findIndex
737 case 2: push.call(target, value); // filter
738 } else if (IS_EVERY) return false; // every
739 }
740 }
741 return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
742 };
743 };
744
745 var arrayIteration = {
746 // `Array.prototype.forEach` method
747 // https://tc39.github.io/ecma262/#sec-array.prototype.foreach
748 forEach: createMethod$1(0),
749 // `Array.prototype.map` method
750 // https://tc39.github.io/ecma262/#sec-array.prototype.map
751 map: createMethod$1(1),
752 // `Array.prototype.filter` method
753 // https://tc39.github.io/ecma262/#sec-array.prototype.filter
754 filter: createMethod$1(2),
755 // `Array.prototype.some` method
756 // https://tc39.github.io/ecma262/#sec-array.prototype.some
757 some: createMethod$1(3),
758 // `Array.prototype.every` method
759 // https://tc39.github.io/ecma262/#sec-array.prototype.every
760 every: createMethod$1(4),
761 // `Array.prototype.find` method
762 // https://tc39.github.io/ecma262/#sec-array.prototype.find
763 find: createMethod$1(5),
764 // `Array.prototype.findIndex` method
765 // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex
766 findIndex: createMethod$1(6)
767 };
768
769 var $forEach = arrayIteration.forEach;
770
771 var HIDDEN = sharedKey('hidden');
772 var SYMBOL = 'Symbol';
773 var PROTOTYPE$1 = 'prototype';
774 var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
775 var setInternalState = internalState.set;
776 var getInternalState = internalState.getterFor(SYMBOL);
777 var ObjectPrototype = Object[PROTOTYPE$1];
778 var $Symbol = global_1.Symbol;
779 var JSON = global_1.JSON;
780 var nativeJSONStringify = JSON && JSON.stringify;
781 var nativeGetOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
782 var nativeDefineProperty$1 = objectDefineProperty.f;
783 var nativeGetOwnPropertyNames$1 = objectGetOwnPropertyNamesExternal.f;
784 var nativePropertyIsEnumerable$1 = objectPropertyIsEnumerable.f;
785 var AllSymbols = shared('symbols');
786 var ObjectPrototypeSymbols = shared('op-symbols');
787 var StringToSymbolRegistry = shared('string-to-symbol-registry');
788 var SymbolToStringRegistry = shared('symbol-to-string-registry');
789 var WellKnownSymbolsStore = shared('wks');
790 var QObject = global_1.QObject;
791 // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
792 var USE_SETTER = !QObject || !QObject[PROTOTYPE$1] || !QObject[PROTOTYPE$1].findChild;
793
794 // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
795 var setSymbolDescriptor = descriptors && fails(function () {
796 return objectCreate(nativeDefineProperty$1({}, 'a', {
797 get: function () { return nativeDefineProperty$1(this, 'a', { value: 7 }).a; }
798 })).a != 7;
799 }) ? function (O, P, Attributes) {
800 var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor$1(ObjectPrototype, P);
801 if (ObjectPrototypeDescriptor) delete ObjectPrototype[P];
802 nativeDefineProperty$1(O, P, Attributes);
803 if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {
804 nativeDefineProperty$1(ObjectPrototype, P, ObjectPrototypeDescriptor);
805 }
806 } : nativeDefineProperty$1;
807
808 var wrap = function (tag, description) {
809 var symbol = AllSymbols[tag] = objectCreate($Symbol[PROTOTYPE$1]);
810 setInternalState(symbol, {
811 type: SYMBOL,
812 tag: tag,
813 description: description
814 });
815 if (!descriptors) symbol.description = description;
816 return symbol;
817 };
818
819 var isSymbol = nativeSymbol && typeof $Symbol.iterator == 'symbol' ? function (it) {
820 return typeof it == 'symbol';
821 } : function (it) {
822 return Object(it) instanceof $Symbol;
823 };
824
825 var $defineProperty = function defineProperty(O, P, Attributes) {
826 if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes);
827 anObject(O);
828 var key = toPrimitive(P, true);
829 anObject(Attributes);
830 if (has(AllSymbols, key)) {
831 if (!Attributes.enumerable) {
832 if (!has(O, HIDDEN)) nativeDefineProperty$1(O, HIDDEN, createPropertyDescriptor(1, {}));
833 O[HIDDEN][key] = true;
834 } else {
835 if (has(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;
836 Attributes = objectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });
837 } return setSymbolDescriptor(O, key, Attributes);
838 } return nativeDefineProperty$1(O, key, Attributes);
839 };
840
841 var $defineProperties = function defineProperties(O, Properties) {
842 anObject(O);
843 var properties = toIndexedObject(Properties);
844 var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));
845 $forEach(keys, function (key) {
846 if (!descriptors || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]);
847 });
848 return O;
849 };
850
851 var $create = function create(O, Properties) {
852 return Properties === undefined ? objectCreate(O) : $defineProperties(objectCreate(O), Properties);
853 };
854
855 var $propertyIsEnumerable = function propertyIsEnumerable(V) {
856 var P = toPrimitive(V, true);
857 var enumerable = nativePropertyIsEnumerable$1.call(this, P);
858 if (this === ObjectPrototype && has(AllSymbols, P) && !has(ObjectPrototypeSymbols, P)) return false;
859 return enumerable || !has(this, P) || !has(AllSymbols, P) || has(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;
860 };
861
862 var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {
863 var it = toIndexedObject(O);
864 var key = toPrimitive(P, true);
865 if (it === ObjectPrototype && has(AllSymbols, key) && !has(ObjectPrototypeSymbols, key)) return;
866 var descriptor = nativeGetOwnPropertyDescriptor$1(it, key);
867 if (descriptor && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) {
868 descriptor.enumerable = true;
869 }
870 return descriptor;
871 };
872
873 var $getOwnPropertyNames = function getOwnPropertyNames(O) {
874 var names = nativeGetOwnPropertyNames$1(toIndexedObject(O));
875 var result = [];
876 $forEach(names, function (key) {
877 if (!has(AllSymbols, key) && !has(hiddenKeys, key)) result.push(key);
878 });
879 return result;
880 };
881
882 var $getOwnPropertySymbols = function getOwnPropertySymbols(O) {
883 var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;
884 var names = nativeGetOwnPropertyNames$1(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));
885 var result = [];
886 $forEach(names, function (key) {
887 if (has(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || has(ObjectPrototype, key))) {
888 result.push(AllSymbols[key]);
889 }
890 });
891 return result;
892 };
893
894 // `Symbol` constructor
895 // https://tc39.github.io/ecma262/#sec-symbol-constructor
896 if (!nativeSymbol) {
897 $Symbol = function Symbol() {
898 if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor');
899 var description = !arguments.length || arguments[0] === undefined ? undefined : String(arguments[0]);
900 var tag = uid(description);
901 var setter = function (value) {
902 if (this === ObjectPrototype) setter.call(ObjectPrototypeSymbols, value);
903 if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
904 setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));
905 };
906 if (descriptors && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });
907 return wrap(tag, description);
908 };
909
910 redefine($Symbol[PROTOTYPE$1], 'toString', function toString() {
911 return getInternalState(this).tag;
912 });
913
914 objectPropertyIsEnumerable.f = $propertyIsEnumerable;
915 objectDefineProperty.f = $defineProperty;
916 objectGetOwnPropertyDescriptor.f = $getOwnPropertyDescriptor;
917 objectGetOwnPropertyNames.f = objectGetOwnPropertyNamesExternal.f = $getOwnPropertyNames;
918 objectGetOwnPropertySymbols.f = $getOwnPropertySymbols;
919
920 if (descriptors) {
921 // https://github.com/tc39/proposal-Symbol-description
922 nativeDefineProperty$1($Symbol[PROTOTYPE$1], 'description', {
923 configurable: true,
924 get: function description() {
925 return getInternalState(this).description;
926 }
927 });
928 {
929 redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
930 }
931 }
932
933 wrappedWellKnownSymbol.f = function (name) {
934 return wrap(wellKnownSymbol(name), name);
935 };
936 }
937
938 _export({ global: true, wrap: true, forced: !nativeSymbol, sham: !nativeSymbol }, {
939 Symbol: $Symbol
940 });
941
942 $forEach(objectKeys(WellKnownSymbolsStore), function (name) {
943 defineWellKnownSymbol(name);
944 });
945
946 _export({ target: SYMBOL, stat: true, forced: !nativeSymbol }, {
947 // `Symbol.for` method
948 // https://tc39.github.io/ecma262/#sec-symbol.for
949 'for': function (key) {
950 var string = String(key);
951 if (has(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];
952 var symbol = $Symbol(string);
953 StringToSymbolRegistry[string] = symbol;
954 SymbolToStringRegistry[symbol] = string;
955 return symbol;
956 },
957 // `Symbol.keyFor` method
958 // https://tc39.github.io/ecma262/#sec-symbol.keyfor
959 keyFor: function keyFor(sym) {
960 if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');
961 if (has(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
962 },
963 useSetter: function () { USE_SETTER = true; },
964 useSimple: function () { USE_SETTER = false; }
965 });
966
967 _export({ target: 'Object', stat: true, forced: !nativeSymbol, sham: !descriptors }, {
968 // `Object.create` method
969 // https://tc39.github.io/ecma262/#sec-object.create
970 create: $create,
971 // `Object.defineProperty` method
972 // https://tc39.github.io/ecma262/#sec-object.defineproperty
973 defineProperty: $defineProperty,
974 // `Object.defineProperties` method
975 // https://tc39.github.io/ecma262/#sec-object.defineproperties
976 defineProperties: $defineProperties,
977 // `Object.getOwnPropertyDescriptor` method
978 // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors
979 getOwnPropertyDescriptor: $getOwnPropertyDescriptor
980 });
981
982 _export({ target: 'Object', stat: true, forced: !nativeSymbol }, {
983 // `Object.getOwnPropertyNames` method
984 // https://tc39.github.io/ecma262/#sec-object.getownpropertynames
985 getOwnPropertyNames: $getOwnPropertyNames,
986 // `Object.getOwnPropertySymbols` method
987 // https://tc39.github.io/ecma262/#sec-object.getownpropertysymbols
988 getOwnPropertySymbols: $getOwnPropertySymbols
989 });
990
991 // Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
992 // https://bugs.chromium.org/p/v8/issues/detail?id=3443
993 _export({ target: 'Object', stat: true, forced: fails(function () { objectGetOwnPropertySymbols.f(1); }) }, {
994 getOwnPropertySymbols: function getOwnPropertySymbols(it) {
995 return objectGetOwnPropertySymbols.f(toObject(it));
996 }
997 });
998
999 // `JSON.stringify` method behavior with symbols
1000 // https://tc39.github.io/ecma262/#sec-json.stringify
1001 JSON && _export({ target: 'JSON', stat: true, forced: !nativeSymbol || fails(function () {
1002 var symbol = $Symbol();
1003 // MS Edge converts symbol values to JSON as {}
1004 return nativeJSONStringify([symbol]) != '[null]'
1005 // WebKit converts symbol values to JSON as null
1006 || nativeJSONStringify({ a: symbol }) != '{}'
1007 // V8 throws on boxed symbols
1008 || nativeJSONStringify(Object(symbol)) != '{}';
1009 }) }, {
1010 stringify: function stringify(it) {
1011 var args = [it];
1012 var index = 1;
1013 var replacer, $replacer;
1014 while (arguments.length > index) args.push(arguments[index++]);
1015 $replacer = replacer = args[1];
1016 if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
1017 if (!isArray(replacer)) replacer = function (key, value) {
1018 if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
1019 if (!isSymbol(value)) return value;
1020 };
1021 args[1] = replacer;
1022 return nativeJSONStringify.apply(JSON, args);
1023 }
1024 });
1025
1026 // `Symbol.prototype[@@toPrimitive]` method
1027 // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@toprimitive
1028 if (!$Symbol[PROTOTYPE$1][TO_PRIMITIVE]) hide($Symbol[PROTOTYPE$1], TO_PRIMITIVE, $Symbol[PROTOTYPE$1].valueOf);
1029 // `Symbol.prototype[@@toStringTag]` property
1030 // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@tostringtag
1031 setToStringTag($Symbol, SYMBOL);
1032
1033 hiddenKeys[HIDDEN] = true;
1034
1035 var defineProperty$2 = objectDefineProperty.f;
1036
1037
1038 var NativeSymbol = global_1.Symbol;
1039
1040 if (descriptors && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||
1041 // Safari 12 bug
1042 NativeSymbol().description !== undefined
1043 )) {
1044 var EmptyStringDescriptionStore = {};
1045 // wrap Symbol constructor for correct work with undefined description
1046 var SymbolWrapper = function Symbol() {
1047 var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]);
1048 var result = this instanceof SymbolWrapper
1049 ? new NativeSymbol(description)
1050 // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
1051 : description === undefined ? NativeSymbol() : NativeSymbol(description);
1052 if (description === '') EmptyStringDescriptionStore[result] = true;
1053 return result;
1054 };
1055 copyConstructorProperties(SymbolWrapper, NativeSymbol);
1056 var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype;
1057 symbolPrototype.constructor = SymbolWrapper;
1058
1059 var symbolToString = symbolPrototype.toString;
1060 var native = String(NativeSymbol('test')) == 'Symbol(test)';
1061 var regexp = /^Symbol\((.*)\)[^)]+$/;
1062 defineProperty$2(symbolPrototype, 'description', {
1063 configurable: true,
1064 get: function description() {
1065 var symbol = isObject(this) ? this.valueOf() : this;
1066 var string = symbolToString.call(symbol);
1067 if (has(EmptyStringDescriptionStore, symbol)) return '';
1068 var desc = native ? string.slice(7, -1) : string.replace(regexp, '$1');
1069 return desc === '' ? undefined : desc;
1070 }
1071 });
1072
1073 _export({ global: true, forced: true }, {
1074 Symbol: SymbolWrapper
1075 });
1076 }
1077
1078 // `Symbol.iterator` well-known symbol
1079 // https://tc39.github.io/ecma262/#sec-symbol.iterator
1080 defineWellKnownSymbol('iterator');
1081
1082 var createProperty = function (object, key, value) {
1083 var propertyKey = toPrimitive(key);
1084 if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
1085 else object[propertyKey] = value;
1086 };
1087
1088 var SPECIES$1 = wellKnownSymbol('species');
1089
1090 var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
1091 return !fails(function () {
1092 var array = [];
1093 var constructor = array.constructor = {};
1094 constructor[SPECIES$1] = function () {
1095 return { foo: 1 };
1096 };
1097 return array[METHOD_NAME](Boolean).foo !== 1;
1098 });
1099 };
1100
1101 var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
1102 var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
1103 var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
1104
1105 var IS_CONCAT_SPREADABLE_SUPPORT = !fails(function () {
1106 var array = [];
1107 array[IS_CONCAT_SPREADABLE] = false;
1108 return array.concat()[0] !== array;
1109 });
1110
1111 var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
1112
1113 var isConcatSpreadable = function (O) {
1114 if (!isObject(O)) return false;
1115 var spreadable = O[IS_CONCAT_SPREADABLE];
1116 return spreadable !== undefined ? !!spreadable : isArray(O);
1117 };
1118
1119 var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
1120
1121 // `Array.prototype.concat` method
1122 // https://tc39.github.io/ecma262/#sec-array.prototype.concat
1123 // with adding support of @@isConcatSpreadable and @@species
1124 _export({ target: 'Array', proto: true, forced: FORCED }, {
1125 concat: function concat(arg) { // eslint-disable-line no-unused-vars
1126 var O = toObject(this);
1127 var A = arraySpeciesCreate(O, 0);
1128 var n = 0;
1129 var i, k, length, len, E;
1130 for (i = -1, length = arguments.length; i < length; i++) {
1131 E = i === -1 ? O : arguments[i];
1132 if (isConcatSpreadable(E)) {
1133 len = toLength(E.length);
1134 if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1135 for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
1136 } else {
1137 if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1138 createProperty(A, n++, E);
1139 }
1140 }
1141 A.length = n;
1142 return A;
1143 }
1144 });
1145
1146 var UNSCOPABLES = wellKnownSymbol('unscopables');
1147 var ArrayPrototype = Array.prototype;
1148
1149 // Array.prototype[@@unscopables]
1150 // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
1151 if (ArrayPrototype[UNSCOPABLES] == undefined) {
1152 hide(ArrayPrototype, UNSCOPABLES, objectCreate(null));
1153 }
1154
1155 // add a key to Array.prototype[@@unscopables]
1156 var addToUnscopables = function (key) {
1157 ArrayPrototype[UNSCOPABLES][key] = true;
1158 };
1159
1160 var correctPrototypeGetter = !fails(function () {
1161 function F() { /* empty */ }
1162 F.prototype.constructor = null;
1163 return Object.getPrototypeOf(new F()) !== F.prototype;
1164 });
1165
1166 var IE_PROTO$1 = sharedKey('IE_PROTO');
1167 var ObjectPrototype$1 = Object.prototype;
1168
1169 // `Object.getPrototypeOf` method
1170 // https://tc39.github.io/ecma262/#sec-object.getprototypeof
1171 var objectGetPrototypeOf = correctPrototypeGetter ? Object.getPrototypeOf : function (O) {
1172 O = toObject(O);
1173 if (has(O, IE_PROTO$1)) return O[IE_PROTO$1];
1174 if (typeof O.constructor == 'function' && O instanceof O.constructor) {
1175 return O.constructor.prototype;
1176 } return O instanceof Object ? ObjectPrototype$1 : null;
1177 };
1178
1179 var ITERATOR = wellKnownSymbol('iterator');
1180 var BUGGY_SAFARI_ITERATORS = false;
1181
1182 var returnThis = function () { return this; };
1183
1184 // `%IteratorPrototype%` object
1185 // https://tc39.github.io/ecma262/#sec-%iteratorprototype%-object
1186 var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;
1187
1188 if ([].keys) {
1189 arrayIterator = [].keys();
1190 // Safari 8 has buggy iterators w/o `next`
1191 if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
1192 else {
1193 PrototypeOfArrayIteratorPrototype = objectGetPrototypeOf(objectGetPrototypeOf(arrayIterator));
1194 if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;
1195 }
1196 }
1197
1198 if (IteratorPrototype == undefined) IteratorPrototype = {};
1199
1200 // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
1201 if ( !has(IteratorPrototype, ITERATOR)) hide(IteratorPrototype, ITERATOR, returnThis);
1202
1203 var iteratorsCore = {
1204 IteratorPrototype: IteratorPrototype,
1205 BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
1206 };
1207
1208 var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1209
1210 var createIteratorConstructor = function (IteratorConstructor, NAME, next) {
1211 var TO_STRING_TAG = NAME + ' Iterator';
1212 IteratorConstructor.prototype = objectCreate(IteratorPrototype$1, { next: createPropertyDescriptor(1, next) });
1213 setToStringTag(IteratorConstructor, TO_STRING_TAG, false);
1214 return IteratorConstructor;
1215 };
1216
1217 var aPossiblePrototype = function (it) {
1218 if (!isObject(it) && it !== null) {
1219 throw TypeError("Can't set " + String(it) + ' as a prototype');
1220 } return it;
1221 };
1222
1223 // `Object.setPrototypeOf` method
1224 // https://tc39.github.io/ecma262/#sec-object.setprototypeof
1225 // Works with __proto__ only. Old v8 can't work with null proto objects.
1226 /* eslint-disable no-proto */
1227 var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1228 var CORRECT_SETTER = false;
1229 var test = {};
1230 var setter;
1231 try {
1232 setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;
1233 setter.call(test, []);
1234 CORRECT_SETTER = test instanceof Array;
1235 } catch (error) { /* empty */ }
1236 return function setPrototypeOf(O, proto) {
1237 anObject(O);
1238 aPossiblePrototype(proto);
1239 if (CORRECT_SETTER) setter.call(O, proto);
1240 else O.__proto__ = proto;
1241 return O;
1242 };
1243 }() : undefined);
1244
1245 var IteratorPrototype$2 = iteratorsCore.IteratorPrototype;
1246 var BUGGY_SAFARI_ITERATORS$1 = iteratorsCore.BUGGY_SAFARI_ITERATORS;
1247 var ITERATOR$1 = wellKnownSymbol('iterator');
1248 var KEYS = 'keys';
1249 var VALUES = 'values';
1250 var ENTRIES = 'entries';
1251
1252 var returnThis$1 = function () { return this; };
1253
1254 var defineIterator = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1255 createIteratorConstructor(IteratorConstructor, NAME, next);
1256
1257 var getIterationMethod = function (KIND) {
1258 if (KIND === DEFAULT && defaultIterator) return defaultIterator;
1259 if (!BUGGY_SAFARI_ITERATORS$1 && KIND in IterablePrototype) return IterablePrototype[KIND];
1260 switch (KIND) {
1261 case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
1262 case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
1263 case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
1264 } return function () { return new IteratorConstructor(this); };
1265 };
1266
1267 var TO_STRING_TAG = NAME + ' Iterator';
1268 var INCORRECT_VALUES_NAME = false;
1269 var IterablePrototype = Iterable.prototype;
1270 var nativeIterator = IterablePrototype[ITERATOR$1]
1271 || IterablePrototype['@@iterator']
1272 || DEFAULT && IterablePrototype[DEFAULT];
1273 var defaultIterator = !BUGGY_SAFARI_ITERATORS$1 && nativeIterator || getIterationMethod(DEFAULT);
1274 var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1275 var CurrentIteratorPrototype, methods, KEY;
1276
1277 // fix native
1278 if (anyNativeIterator) {
1279 CurrentIteratorPrototype = objectGetPrototypeOf(anyNativeIterator.call(new Iterable()));
1280 if (IteratorPrototype$2 !== Object.prototype && CurrentIteratorPrototype.next) {
1281 if ( objectGetPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype$2) {
1282 if (objectSetPrototypeOf) {
1283 objectSetPrototypeOf(CurrentIteratorPrototype, IteratorPrototype$2);
1284 } else if (typeof CurrentIteratorPrototype[ITERATOR$1] != 'function') {
1285 hide(CurrentIteratorPrototype, ITERATOR$1, returnThis$1);
1286 }
1287 }
1288 // Set @@toStringTag to native iterators
1289 setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);
1290 }
1291 }
1292
1293 // fix Array#{values, @@iterator}.name in V8 / FF
1294 if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1295 INCORRECT_VALUES_NAME = true;
1296 defaultIterator = function values() { return nativeIterator.call(this); };
1297 }
1298
1299 // define iterator
1300 if ( IterablePrototype[ITERATOR$1] !== defaultIterator) {
1301 hide(IterablePrototype, ITERATOR$1, defaultIterator);
1302 }
1303
1304 // export additional methods
1305 if (DEFAULT) {
1306 methods = {
1307 values: getIterationMethod(VALUES),
1308 keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
1309 entries: getIterationMethod(ENTRIES)
1310 };
1311 if (FORCED) for (KEY in methods) {
1312 if (BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1313 redefine(IterablePrototype, KEY, methods[KEY]);
1314 }
1315 } else _export({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME }, methods);
1316 }
1317
1318 return methods;
1319 };
1320
1321 var ARRAY_ITERATOR = 'Array Iterator';
1322 var setInternalState$1 = internalState.set;
1323 var getInternalState$1 = internalState.getterFor(ARRAY_ITERATOR);
1324
1325 // `Array.prototype.entries` method
1326 // https://tc39.github.io/ecma262/#sec-array.prototype.entries
1327 // `Array.prototype.keys` method
1328 // https://tc39.github.io/ecma262/#sec-array.prototype.keys
1329 // `Array.prototype.values` method
1330 // https://tc39.github.io/ecma262/#sec-array.prototype.values
1331 // `Array.prototype[@@iterator]` method
1332 // https://tc39.github.io/ecma262/#sec-array.prototype-@@iterator
1333 // `CreateArrayIterator` internal method
1334 // https://tc39.github.io/ecma262/#sec-createarrayiterator
1335 var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
1336 setInternalState$1(this, {
1337 type: ARRAY_ITERATOR,
1338 target: toIndexedObject(iterated), // target
1339 index: 0, // next index
1340 kind: kind // kind
1341 });
1342 // `%ArrayIteratorPrototype%.next` method
1343 // https://tc39.github.io/ecma262/#sec-%arrayiteratorprototype%.next
1344 }, function () {
1345 var state = getInternalState$1(this);
1346 var target = state.target;
1347 var kind = state.kind;
1348 var index = state.index++;
1349 if (!target || index >= target.length) {
1350 state.target = undefined;
1351 return { value: undefined, done: true };
1352 }
1353 if (kind == 'keys') return { value: index, done: false };
1354 if (kind == 'values') return { value: target[index], done: false };
1355 return { value: [index, target[index]], done: false };
1356 }, 'values');
1357
1358 // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
1359 addToUnscopables('keys');
1360 addToUnscopables('values');
1361 addToUnscopables('entries');
1362
1363 // makes subclassing work correct for wrapped built-ins
1364 var inheritIfRequired = function ($this, dummy, Wrapper) {
1365 var NewTarget, NewTargetPrototype;
1366 if (
1367 // it can work only with native `setPrototypeOf`
1368 objectSetPrototypeOf &&
1369 // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
1370 typeof (NewTarget = dummy.constructor) == 'function' &&
1371 NewTarget !== Wrapper &&
1372 isObject(NewTargetPrototype = NewTarget.prototype) &&
1373 NewTargetPrototype !== Wrapper.prototype
1374 ) objectSetPrototypeOf($this, NewTargetPrototype);
1375 return $this;
1376 };
1377
1378 // a string of all valid unicode whitespaces
1379 // eslint-disable-next-line max-len
1380 var whitespaces = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
1381
1382 var whitespace = '[' + whitespaces + ']';
1383 var ltrim = RegExp('^' + whitespace + whitespace + '*');
1384 var rtrim = RegExp(whitespace + whitespace + '*$');
1385
1386 // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
1387 var createMethod$2 = function (TYPE) {
1388 return function ($this) {
1389 var string = String(requireObjectCoercible($this));
1390 if (TYPE & 1) string = string.replace(ltrim, '');
1391 if (TYPE & 2) string = string.replace(rtrim, '');
1392 return string;
1393 };
1394 };
1395
1396 var stringTrim = {
1397 // `String.prototype.{ trimLeft, trimStart }` methods
1398 // https://tc39.github.io/ecma262/#sec-string.prototype.trimstart
1399 start: createMethod$2(1),
1400 // `String.prototype.{ trimRight, trimEnd }` methods
1401 // https://tc39.github.io/ecma262/#sec-string.prototype.trimend
1402 end: createMethod$2(2),
1403 // `String.prototype.trim` method
1404 // https://tc39.github.io/ecma262/#sec-string.prototype.trim
1405 trim: createMethod$2(3)
1406 };
1407
1408 var getOwnPropertyNames = objectGetOwnPropertyNames.f;
1409 var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
1410 var defineProperty$3 = objectDefineProperty.f;
1411 var trim = stringTrim.trim;
1412
1413 var NUMBER = 'Number';
1414 var NativeNumber = global_1[NUMBER];
1415 var NumberPrototype = NativeNumber.prototype;
1416
1417 // Opera ~12 has broken Object#toString
1418 var BROKEN_CLASSOF = classofRaw(objectCreate(NumberPrototype)) == NUMBER;
1419
1420 // `ToNumber` abstract operation
1421 // https://tc39.github.io/ecma262/#sec-tonumber
1422 var toNumber = function (argument) {
1423 var it = toPrimitive(argument, false);
1424 var first, third, radix, maxCode, digits, length, index, code;
1425 if (typeof it == 'string' && it.length > 2) {
1426 it = trim(it);
1427 first = it.charCodeAt(0);
1428 if (first === 43 || first === 45) {
1429 third = it.charCodeAt(2);
1430 if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
1431 } else if (first === 48) {
1432 switch (it.charCodeAt(1)) {
1433 case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i
1434 case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i
1435 default: return +it;
1436 }
1437 digits = it.slice(2);
1438 length = digits.length;
1439 for (index = 0; index < length; index++) {
1440 code = digits.charCodeAt(index);
1441 // parseInt parses a string to a first unavailable symbol
1442 // but ToNumber should return NaN if a string contains unavailable symbols
1443 if (code < 48 || code > maxCode) return NaN;
1444 } return parseInt(digits, radix);
1445 }
1446 } return +it;
1447 };
1448
1449 // `Number` constructor
1450 // https://tc39.github.io/ecma262/#sec-number-constructor
1451 if (isForced_1(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {
1452 var NumberWrapper = function Number(value) {
1453 var it = arguments.length < 1 ? 0 : value;
1454 var dummy = this;
1455 return dummy instanceof NumberWrapper
1456 // check on 1..constructor(foo) case
1457 && (BROKEN_CLASSOF ? fails(function () { NumberPrototype.valueOf.call(dummy); }) : classofRaw(dummy) != NUMBER)
1458 ? inheritIfRequired(new NativeNumber(toNumber(it)), dummy, NumberWrapper) : toNumber(it);
1459 };
1460 for (var keys$1 = descriptors ? getOwnPropertyNames(NativeNumber) : (
1461 // ES3:
1462 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
1463 // ES2015 (in case, if modules with ES2015 Number statics required before):
1464 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +
1465 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger'
1466 ).split(','), j = 0, key; keys$1.length > j; j++) {
1467 if (has(NativeNumber, key = keys$1[j]) && !has(NumberWrapper, key)) {
1468 defineProperty$3(NumberWrapper, key, getOwnPropertyDescriptor$2(NativeNumber, key));
1469 }
1470 }
1471 NumberWrapper.prototype = NumberPrototype;
1472 NumberPrototype.constructor = NumberWrapper;
1473 redefine(global_1, NUMBER, NumberWrapper);
1474 }
1475
1476 var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
1477 // ES3 wrong here
1478 var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
1479
1480 // fallback for IE11 Script Access Denied error
1481 var tryGet = function (it, key) {
1482 try {
1483 return it[key];
1484 } catch (error) { /* empty */ }
1485 };
1486
1487 // getting tag from ES6+ `Object.prototype.toString`
1488 var classof = function (it) {
1489 var O, tag, result;
1490 return it === undefined ? 'Undefined' : it === null ? 'Null'
1491 // @@toStringTag case
1492 : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG$1)) == 'string' ? tag
1493 // builtinTag case
1494 : CORRECT_ARGUMENTS ? classofRaw(O)
1495 // ES3 arguments fallback
1496 : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;
1497 };
1498
1499 var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
1500 var test = {};
1501
1502 test[TO_STRING_TAG$2] = 'z';
1503
1504 // `Object.prototype.toString` method implementation
1505 // https://tc39.github.io/ecma262/#sec-object.prototype.tostring
1506 var objectToString = String(test) !== '[object z]' ? function toString() {
1507 return '[object ' + classof(this) + ']';
1508 } : test.toString;
1509
1510 var ObjectPrototype$2 = Object.prototype;
1511
1512 // `Object.prototype.toString` method
1513 // https://tc39.github.io/ecma262/#sec-object.prototype.tostring
1514 if (objectToString !== ObjectPrototype$2.toString) {
1515 redefine(ObjectPrototype$2, 'toString', objectToString, { unsafe: true });
1516 }
1517
1518 // `String.prototype.{ codePointAt, at }` methods implementation
1519 var createMethod$3 = function (CONVERT_TO_STRING) {
1520 return function ($this, pos) {
1521 var S = String(requireObjectCoercible($this));
1522 var position = toInteger(pos);
1523 var size = S.length;
1524 var first, second;
1525 if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
1526 first = S.charCodeAt(position);
1527 return first < 0xD800 || first > 0xDBFF || position + 1 === size
1528 || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
1529 ? CONVERT_TO_STRING ? S.charAt(position) : first
1530 : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
1531 };
1532 };
1533
1534 var stringMultibyte = {
1535 // `String.prototype.codePointAt` method
1536 // https://tc39.github.io/ecma262/#sec-string.prototype.codepointat
1537 codeAt: createMethod$3(false),
1538 // `String.prototype.at` method
1539 // https://github.com/mathiasbynens/String.prototype.at
1540 charAt: createMethod$3(true)
1541 };
1542
1543 var charAt = stringMultibyte.charAt;
1544
1545
1546
1547 var STRING_ITERATOR = 'String Iterator';
1548 var setInternalState$2 = internalState.set;
1549 var getInternalState$2 = internalState.getterFor(STRING_ITERATOR);
1550
1551 // `String.prototype[@@iterator]` method
1552 // https://tc39.github.io/ecma262/#sec-string.prototype-@@iterator
1553 defineIterator(String, 'String', function (iterated) {
1554 setInternalState$2(this, {
1555 type: STRING_ITERATOR,
1556 string: String(iterated),
1557 index: 0
1558 });
1559 // `%StringIteratorPrototype%.next` method
1560 // https://tc39.github.io/ecma262/#sec-%stringiteratorprototype%.next
1561 }, function next() {
1562 var state = getInternalState$2(this);
1563 var string = state.string;
1564 var index = state.index;
1565 var point;
1566 if (index >= string.length) return { value: undefined, done: true };
1567 point = charAt(string, index);
1568 state.index += point.length;
1569 return { value: point, done: false };
1570 });
1571
1572 // iterable DOM collections
1573 // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
1574 var domIterables = {
1575 CSSRuleList: 0,
1576 CSSStyleDeclaration: 0,
1577 CSSValueList: 0,
1578 ClientRectList: 0,
1579 DOMRectList: 0,
1580 DOMStringList: 0,
1581 DOMTokenList: 1,
1582 DataTransferItemList: 0,
1583 FileList: 0,
1584 HTMLAllCollection: 0,
1585 HTMLCollection: 0,
1586 HTMLFormElement: 0,
1587 HTMLSelectElement: 0,
1588 MediaList: 0,
1589 MimeTypeArray: 0,
1590 NamedNodeMap: 0,
1591 NodeList: 1,
1592 PaintRequestList: 0,
1593 Plugin: 0,
1594 PluginArray: 0,
1595 SVGLengthList: 0,
1596 SVGNumberList: 0,
1597 SVGPathSegList: 0,
1598 SVGPointList: 0,
1599 SVGStringList: 0,
1600 SVGTransformList: 0,
1601 SourceBufferList: 0,
1602 StyleSheetList: 0,
1603 TextTrackCueList: 0,
1604 TextTrackList: 0,
1605 TouchList: 0
1606 };
1607
1608 var ITERATOR$2 = wellKnownSymbol('iterator');
1609 var TO_STRING_TAG$3 = wellKnownSymbol('toStringTag');
1610 var ArrayValues = es_array_iterator.values;
1611
1612 for (var COLLECTION_NAME in domIterables) {
1613 var Collection = global_1[COLLECTION_NAME];
1614 var CollectionPrototype = Collection && Collection.prototype;
1615 if (CollectionPrototype) {
1616 // some Chrome versions have non-configurable methods on DOMTokenList
1617 if (CollectionPrototype[ITERATOR$2] !== ArrayValues) try {
1618 hide(CollectionPrototype, ITERATOR$2, ArrayValues);
1619 } catch (error) {
1620 CollectionPrototype[ITERATOR$2] = ArrayValues;
1621 }
1622 if (!CollectionPrototype[TO_STRING_TAG$3]) hide(CollectionPrototype, TO_STRING_TAG$3, COLLECTION_NAME);
1623 if (domIterables[COLLECTION_NAME]) for (var METHOD_NAME in es_array_iterator) {
1624 // some Chrome versions have non-configurable methods on DOMTokenList
1625 if (CollectionPrototype[METHOD_NAME] !== es_array_iterator[METHOD_NAME]) try {
1626 hide(CollectionPrototype, METHOD_NAME, es_array_iterator[METHOD_NAME]);
1627 } catch (error) {
1628 CollectionPrototype[METHOD_NAME] = es_array_iterator[METHOD_NAME];
1629 }
1630 }
1631 }
1632 }
1633
1634 function _defineProperty(obj, key, value) {
1635 if (key in obj) {
1636 Object.defineProperty(obj, key, {
1637 value: value,
1638 enumerable: true,
1639 configurable: true,
1640 writable: true
1641 });
1642 } else {
1643 obj[key] = value;
1644 }
1645
1646 return obj;
1647 }
1648
1649 function ownKeys$1(object, enumerableOnly) {
1650 var keys = Object.keys(object);
1651
1652 if (Object.getOwnPropertySymbols) {
1653 var symbols = Object.getOwnPropertySymbols(object);
1654 if (enumerableOnly) symbols = symbols.filter(function (sym) {
1655 return Object.getOwnPropertyDescriptor(object, sym).enumerable;
1656 });
1657 keys.push.apply(keys, symbols);
1658 }
1659
1660 return keys;
1661 }
1662
1663 function _objectSpread2(target) {
1664 for (var i = 1; i < arguments.length; i++) {
1665 var source = arguments[i] != null ? arguments[i] : {};
1666
1667 if (i % 2) {
1668 ownKeys$1(source, true).forEach(function (key) {
1669 _defineProperty(target, key, source[key]);
1670 });
1671 } else if (Object.getOwnPropertyDescriptors) {
1672 Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
1673 } else {
1674 ownKeys$1(source).forEach(function (key) {
1675 Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
1676 });
1677 }
1678 }
1679
1680 return target;
1681 }
1682
1683 //
1684 //
1685 //
1686 //
1687 //
1688 //
1689 //
1690 //
1691 //
1692 //
1693 var $ = window.jQuery;
1694
1695 var deepCopy = function deepCopy(arg) {
1696 if (!arg) {
1697 return arg;
1698 }
1699
1700 return $.extend(true, Array.isArray(arg) ? [] : {}, arg);
1701 };
1702
1703 var script = {
1704 name: 'MultipleSelect',
1705 props: {
1706 value: {
1707 type: [String, Array],
1708 default: undefined
1709 },
1710 name: {
1711 type: String,
1712 default: undefined
1713 },
1714 single: {
1715 type: Boolean,
1716 default: false
1717 },
1718 width: {
1719 type: [Number, String],
1720 default: undefined
1721 },
1722 data: {
1723 type: Array,
1724 default: function _default() {
1725 return undefined;
1726 }
1727 },
1728 options: {
1729 type: Object,
1730 default: function _default() {
1731 return {};
1732 }
1733 }
1734 },
1735 data: function data() {
1736 return {
1737 currentValue: this.value
1738 };
1739 },
1740 watch: {
1741 options: {
1742 handler: function handler() {
1743 this._initSelect();
1744 },
1745 deep: true
1746 },
1747 data: {
1748 handler: function handler() {
1749 this.load(deepCopy(this.data));
1750 },
1751 deep: true
1752 }
1753 },
1754 mounted: function mounted() {
1755 var _this = this;
1756
1757 this.$select = $(this.$el).change(function () {
1758 var value = _this.$select.val();
1759
1760 _this.$emit('input', value);
1761
1762 _this.$emit('change', value);
1763 });
1764
1765 var _loop = function _loop(event) {
1766 if (/^on[A-Z]/.test(event)) {
1767 $.fn.multipleSelect.defaults[event] = function () {
1768 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1769 args[_key] = arguments[_key];
1770 }
1771
1772 _this.$emit.apply(_this, [event].concat(args));
1773 };
1774 }
1775 };
1776
1777 for (var event in $.fn.multipleSelect.defaults) {
1778 _loop(event);
1779 }
1780
1781 this._initSelect();
1782 },
1783 methods: _objectSpread2({
1784 _initSelect: function _initSelect() {
1785 var options = _objectSpread2({}, deepCopy(this.options), {
1786 single: this.single,
1787 width: this.width,
1788 data: deepCopy(this.data)
1789 });
1790
1791 if (!this._hasInit) {
1792 this.$select.multipleSelect(options);
1793 this._hasInit = true;
1794 } else {
1795 this.refreshOptions(options);
1796 }
1797 }
1798 }, function () {
1799 var res = {};
1800 var _iteratorNormalCompletion = true;
1801 var _didIteratorError = false;
1802 var _iteratorError = undefined;
1803
1804 try {
1805 var _loop2 = function _loop2() {
1806 var method = _step.value;
1807
1808 res[method] = function () {
1809 var _this$$select;
1810
1811 for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
1812 args[_key2] = arguments[_key2];
1813 }
1814
1815 return (_this$$select = this.$select).multipleSelect.apply(_this$$select, [method].concat(args));
1816 };
1817 };
1818
1819 for (var _iterator = $.fn.multipleSelect.methods[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
1820 _loop2();
1821 }
1822 } catch (err) {
1823 _didIteratorError = true;
1824 _iteratorError = err;
1825 } finally {
1826 try {
1827 if (!_iteratorNormalCompletion && _iterator.return != null) {
1828 _iterator.return();
1829 }
1830 } finally {
1831 if (_didIteratorError) {
1832 throw _iteratorError;
1833 }
1834 }
1835 }
1836
1837 return res;
1838 }())
1839 };
1840
1841 function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier
1842 /* server only */
1843 , shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
1844 if (typeof shadowMode !== 'boolean') {
1845 createInjectorSSR = createInjector;
1846 createInjector = shadowMode;
1847 shadowMode = false;
1848 } // Vue.extend constructor export interop.
1849
1850
1851 var options = typeof script === 'function' ? script.options : script; // render functions
1852
1853 if (template && template.render) {
1854 options.render = template.render;
1855 options.staticRenderFns = template.staticRenderFns;
1856 options._compiled = true; // functional template
1857
1858 if (isFunctionalTemplate) {
1859 options.functional = true;
1860 }
1861 } // scopedId
1862
1863
1864 if (scopeId) {
1865 options._scopeId = scopeId;
1866 }
1867
1868 var hook;
1869
1870 if (moduleIdentifier) {
1871 // server build
1872 hook = function hook(context) {
1873 // 2.3 injection
1874 context = context || // cached call
1875 this.$vnode && this.$vnode.ssrContext || // stateful
1876 this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional
1877 // 2.2 with runInNewContext: true
1878
1879 if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
1880 context = __VUE_SSR_CONTEXT__;
1881 } // inject component styles
1882
1883
1884 if (style) {
1885 style.call(this, createInjectorSSR(context));
1886 } // register component module identifier for async chunk inference
1887
1888
1889 if (context && context._registeredComponents) {
1890 context._registeredComponents.add(moduleIdentifier);
1891 }
1892 }; // used by ssr in case component is cached and beforeCreate
1893 // never gets called
1894
1895
1896 options._ssrRegister = hook;
1897 } else if (style) {
1898 hook = shadowMode ? function () {
1899 style.call(this, createInjectorShadow(this.$root.$options.shadowRoot));
1900 } : function (context) {
1901 style.call(this, createInjector(context));
1902 };
1903 }
1904
1905 if (hook) {
1906 if (options.functional) {
1907 // register for functional component in vue file
1908 var originalRender = options.render;
1909
1910 options.render = function renderWithStyleInjection(h, context) {
1911 hook.call(context);
1912 return originalRender(h, context);
1913 };
1914 } else {
1915 // inject component registration as beforeCreate hook
1916 var existing = options.beforeCreate;
1917 options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
1918 }
1919 }
1920
1921 return script;
1922 }
1923
1924 var normalizeComponent_1 = normalizeComponent;
1925
1926 /* script */
1927 const __vue_script__ = script;
1928
1929 /* template */
1930 var __vue_render__ = function() {
1931 var _vm = this;
1932 var _h = _vm.$createElement;
1933 var _c = _vm._self._c || _h;
1934 return _c(
1935 "select",
1936 {
1937 directives: [
1938 {
1939 name: "model",
1940 rawName: "v-model",
1941 value: _vm.currentValue,
1942 expression: "currentValue"
1943 }
1944 ],
1945 attrs: { name: _vm.name, multiple: !_vm.single },
1946 on: {
1947 change: function($event) {
1948 var $$selectedVal = Array.prototype.filter
1949 .call($event.target.options, function(o) {
1950 return o.selected
1951 })
1952 .map(function(o) {
1953 var val = "_value" in o ? o._value : o.value;
1954 return val
1955 });
1956 _vm.currentValue = $event.target.multiple
1957 ? $$selectedVal
1958 : $$selectedVal[0];
1959 }
1960 }
1961 },
1962 [_vm._t("default")],
1963 2
1964 )
1965 };
1966 var __vue_staticRenderFns__ = [];
1967 __vue_render__._withStripped = true;
1968
1969 /* style */
1970 const __vue_inject_styles__ = undefined;
1971 /* scoped */
1972 const __vue_scope_id__ = undefined;
1973 /* module identifier */
1974 const __vue_module_identifier__ = undefined;
1975 /* functional template */
1976 const __vue_is_functional_template__ = false;
1977 /* style inject */
1978
1979 /* style inject SSR */
1980
1981
1982
1983 var MultipleSelect = normalizeComponent_1(
1984 { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
1985 __vue_inject_styles__,
1986 __vue_script__,
1987 __vue_scope_id__,
1988 __vue_is_functional_template__,
1989 __vue_module_identifier__,
1990 undefined,
1991 undefined
1992 );
1993
1994 return MultipleSelect;
1995
1996}));