@danielgindi/selectbox 1.0.71 → 1.0.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib.cjs.js +214 -170
- package/dist/lib.cjs.js.map +1 -1
- package/dist/lib.cjs.min.js +2 -2
- package/dist/lib.cjs.min.js.map +1 -1
- package/dist/lib.es6.js +53 -33
- package/dist/lib.es6.js.map +1 -1
- package/dist/lib.es6.min.js +2 -2
- package/dist/lib.es6.min.js.map +1 -1
- package/dist/lib.umd.js +214 -170
- package/dist/lib.umd.js.map +1 -1
- package/dist/lib.umd.min.js +2 -2
- package/dist/lib.umd.min.js.map +1 -1
- package/lib/SelectBox.js +52 -32
- package/package.json +1 -1
package/dist/lib.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @danielgindi/selectbox 1.0.
|
|
2
|
+
* @danielgindi/selectbox 1.0.74
|
|
3
3
|
* git://github.com/danielgindi/selectbox.git
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
@@ -2358,7 +2358,7 @@
|
|
|
2358
2358
|
|
|
2359
2359
|
var objectGetOwnPropertyDescriptor = {};
|
|
2360
2360
|
|
|
2361
|
-
var fails$
|
|
2361
|
+
var fails$z = function (exec) {
|
|
2362
2362
|
try {
|
|
2363
2363
|
return !!exec();
|
|
2364
2364
|
} catch (error) {
|
|
@@ -2366,17 +2366,17 @@
|
|
|
2366
2366
|
}
|
|
2367
2367
|
};
|
|
2368
2368
|
|
|
2369
|
-
var fails$
|
|
2369
|
+
var fails$y = fails$z;
|
|
2370
2370
|
|
|
2371
2371
|
// Detect IE8's incomplete defineProperty implementation
|
|
2372
|
-
var descriptors = !fails$
|
|
2372
|
+
var descriptors = !fails$y(function () {
|
|
2373
2373
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
2374
2374
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
2375
2375
|
});
|
|
2376
2376
|
|
|
2377
|
-
var fails$
|
|
2377
|
+
var fails$x = fails$z;
|
|
2378
2378
|
|
|
2379
|
-
var functionBindNative = !fails$
|
|
2379
|
+
var functionBindNative = !fails$x(function () {
|
|
2380
2380
|
// eslint-disable-next-line es-x/no-function-prototype-bind -- safe
|
|
2381
2381
|
var test = (function () { /* empty */ }).bind();
|
|
2382
2382
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
@@ -2442,14 +2442,14 @@
|
|
|
2442
2442
|
};
|
|
2443
2443
|
|
|
2444
2444
|
var uncurryThis$x = functionUncurryThis;
|
|
2445
|
-
var fails$
|
|
2445
|
+
var fails$w = fails$z;
|
|
2446
2446
|
var classof$b = classofRaw$1;
|
|
2447
2447
|
|
|
2448
2448
|
var $Object$4 = Object;
|
|
2449
2449
|
var split = uncurryThis$x(''.split);
|
|
2450
2450
|
|
|
2451
2451
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
2452
|
-
var indexedObject = fails$
|
|
2452
|
+
var indexedObject = fails$w(function () {
|
|
2453
2453
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
2454
2454
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
2455
2455
|
return !$Object$4('z').propertyIsEnumerable(0);
|
|
@@ -2536,10 +2536,10 @@
|
|
|
2536
2536
|
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
2537
2537
|
|
|
2538
2538
|
var V8_VERSION$2 = engineV8Version;
|
|
2539
|
-
var fails$
|
|
2539
|
+
var fails$v = fails$z;
|
|
2540
2540
|
|
|
2541
2541
|
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
|
2542
|
-
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$
|
|
2542
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$v(function () {
|
|
2543
2543
|
var symbol = Symbol();
|
|
2544
2544
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
2545
2545
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -2759,11 +2759,11 @@
|
|
|
2759
2759
|
};
|
|
2760
2760
|
|
|
2761
2761
|
var DESCRIPTORS$f = descriptors;
|
|
2762
|
-
var fails$
|
|
2762
|
+
var fails$u = fails$z;
|
|
2763
2763
|
var createElement = documentCreateElement$2;
|
|
2764
2764
|
|
|
2765
2765
|
// Thanks to IE8 for its funny defineProperty
|
|
2766
|
-
var ie8DomDefine = !DESCRIPTORS$f && !fails$
|
|
2766
|
+
var ie8DomDefine = !DESCRIPTORS$f && !fails$u(function () {
|
|
2767
2767
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
2768
2768
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
2769
2769
|
get: function () { return 7; }
|
|
@@ -2796,11 +2796,11 @@
|
|
|
2796
2796
|
var objectDefineProperty = {};
|
|
2797
2797
|
|
|
2798
2798
|
var DESCRIPTORS$d = descriptors;
|
|
2799
|
-
var fails$
|
|
2799
|
+
var fails$t = fails$z;
|
|
2800
2800
|
|
|
2801
2801
|
// V8 ~ Chrome 36-
|
|
2802
2802
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
2803
|
-
var v8PrototypeDefineBug = DESCRIPTORS$d && fails$
|
|
2803
|
+
var v8PrototypeDefineBug = DESCRIPTORS$d && fails$t(function () {
|
|
2804
2804
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
2805
2805
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
2806
2806
|
value: 42,
|
|
@@ -2998,7 +2998,7 @@
|
|
|
2998
2998
|
getterFor: getterFor
|
|
2999
2999
|
};
|
|
3000
3000
|
|
|
3001
|
-
var fails$
|
|
3001
|
+
var fails$s = fails$z;
|
|
3002
3002
|
var isCallable$e = isCallable$m;
|
|
3003
3003
|
var hasOwn$c = hasOwnProperty_1;
|
|
3004
3004
|
var DESCRIPTORS$9 = descriptors;
|
|
@@ -3011,7 +3011,7 @@
|
|
|
3011
3011
|
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
3012
3012
|
var defineProperty$9 = Object.defineProperty;
|
|
3013
3013
|
|
|
3014
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$9 && !fails$
|
|
3014
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$9 && !fails$s(function () {
|
|
3015
3015
|
return defineProperty$9(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
3016
3016
|
});
|
|
3017
3017
|
|
|
@@ -3236,7 +3236,7 @@
|
|
|
3236
3236
|
}
|
|
3237
3237
|
};
|
|
3238
3238
|
|
|
3239
|
-
var fails$
|
|
3239
|
+
var fails$r = fails$z;
|
|
3240
3240
|
var isCallable$c = isCallable$m;
|
|
3241
3241
|
|
|
3242
3242
|
var replacement = /#|\.prototype\./;
|
|
@@ -3245,7 +3245,7 @@
|
|
|
3245
3245
|
var value = data[normalize(feature)];
|
|
3246
3246
|
return value == POLYFILL ? true
|
|
3247
3247
|
: value == NATIVE ? false
|
|
3248
|
-
: isCallable$c(detection) ? fails$
|
|
3248
|
+
: isCallable$c(detection) ? fails$r(detection)
|
|
3249
3249
|
: !!detection;
|
|
3250
3250
|
};
|
|
3251
3251
|
|
|
@@ -3619,7 +3619,7 @@
|
|
|
3619
3619
|
};
|
|
3620
3620
|
|
|
3621
3621
|
var uncurryThis$o = functionUncurryThis;
|
|
3622
|
-
var fails$
|
|
3622
|
+
var fails$q = fails$z;
|
|
3623
3623
|
var isCallable$a = isCallable$m;
|
|
3624
3624
|
var classof$6 = classof$a;
|
|
3625
3625
|
var getBuiltIn$3 = getBuiltIn$9;
|
|
@@ -3663,7 +3663,7 @@
|
|
|
3663
3663
|
|
|
3664
3664
|
// `IsConstructor` abstract operation
|
|
3665
3665
|
// https://tc39.es/ecma262/#sec-isconstructor
|
|
3666
|
-
var isConstructor$4 = !construct || fails$
|
|
3666
|
+
var isConstructor$4 = !construct || fails$q(function () {
|
|
3667
3667
|
var called;
|
|
3668
3668
|
return isConstructorModern(isConstructorModern.call)
|
|
3669
3669
|
|| !isConstructorModern(Object)
|
|
@@ -3777,14 +3777,14 @@
|
|
|
3777
3777
|
};
|
|
3778
3778
|
|
|
3779
3779
|
'use strict';
|
|
3780
|
-
var $$
|
|
3780
|
+
var $$s = _export;
|
|
3781
3781
|
var global$a = global$l;
|
|
3782
3782
|
var call$d = functionCall;
|
|
3783
3783
|
var uncurryThis$m = functionUncurryThis;
|
|
3784
3784
|
var IS_PURE$4 = isPure;
|
|
3785
3785
|
var DESCRIPTORS$7 = descriptors;
|
|
3786
3786
|
var NATIVE_SYMBOL$4 = nativeSymbol;
|
|
3787
|
-
var fails$
|
|
3787
|
+
var fails$p = fails$z;
|
|
3788
3788
|
var hasOwn$7 = hasOwnProperty_1;
|
|
3789
3789
|
var isPrototypeOf$5 = objectIsPrototypeOf;
|
|
3790
3790
|
var anObject$b = anObject$g;
|
|
@@ -3840,7 +3840,7 @@
|
|
|
3840
3840
|
var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
|
|
3841
3841
|
|
|
3842
3842
|
// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
|
|
3843
|
-
var setSymbolDescriptor = DESCRIPTORS$7 && fails$
|
|
3843
|
+
var setSymbolDescriptor = DESCRIPTORS$7 && fails$p(function () {
|
|
3844
3844
|
return nativeObjectCreate(nativeDefineProperty({}, 'a', {
|
|
3845
3845
|
get: function () { return nativeDefineProperty(this, 'a', { value: 7 }).a; }
|
|
3846
3846
|
})).a != 7;
|
|
@@ -3985,7 +3985,7 @@
|
|
|
3985
3985
|
}
|
|
3986
3986
|
}
|
|
3987
3987
|
|
|
3988
|
-
$$
|
|
3988
|
+
$$s({ global: true, constructor: true, wrap: true, forced: !NATIVE_SYMBOL$4, sham: !NATIVE_SYMBOL$4 }, {
|
|
3989
3989
|
Symbol: $Symbol
|
|
3990
3990
|
});
|
|
3991
3991
|
|
|
@@ -3993,12 +3993,12 @@
|
|
|
3993
3993
|
defineWellKnownSymbol(name);
|
|
3994
3994
|
});
|
|
3995
3995
|
|
|
3996
|
-
$$
|
|
3996
|
+
$$s({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL$4 }, {
|
|
3997
3997
|
useSetter: function () { USE_SETTER = true; },
|
|
3998
3998
|
useSimple: function () { USE_SETTER = false; }
|
|
3999
3999
|
});
|
|
4000
4000
|
|
|
4001
|
-
$$
|
|
4001
|
+
$$s({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL$4, sham: !DESCRIPTORS$7 }, {
|
|
4002
4002
|
// `Object.create` method
|
|
4003
4003
|
// https://tc39.es/ecma262/#sec-object.create
|
|
4004
4004
|
create: $create,
|
|
@@ -4013,7 +4013,7 @@
|
|
|
4013
4013
|
getOwnPropertyDescriptor: $getOwnPropertyDescriptor
|
|
4014
4014
|
});
|
|
4015
4015
|
|
|
4016
|
-
$$
|
|
4016
|
+
$$s({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL$4 }, {
|
|
4017
4017
|
// `Object.getOwnPropertyNames` method
|
|
4018
4018
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
4019
4019
|
getOwnPropertyNames: $getOwnPropertyNames
|
|
@@ -4036,7 +4036,7 @@
|
|
|
4036
4036
|
/* eslint-disable es-x/no-symbol -- safe */
|
|
4037
4037
|
var nativeSymbolRegistry = NATIVE_SYMBOL$3 && !!Symbol['for'] && !!Symbol.keyFor;
|
|
4038
4038
|
|
|
4039
|
-
var $$
|
|
4039
|
+
var $$r = _export;
|
|
4040
4040
|
var getBuiltIn$2 = getBuiltIn$9;
|
|
4041
4041
|
var hasOwn$6 = hasOwnProperty_1;
|
|
4042
4042
|
var toString$d = toString$e;
|
|
@@ -4048,7 +4048,7 @@
|
|
|
4048
4048
|
|
|
4049
4049
|
// `Symbol.for` method
|
|
4050
4050
|
// https://tc39.es/ecma262/#sec-symbol.for
|
|
4051
|
-
$$
|
|
4051
|
+
$$r({ target: 'Symbol', stat: true, forced: !NATIVE_SYMBOL_REGISTRY$1 }, {
|
|
4052
4052
|
'for': function (key) {
|
|
4053
4053
|
var string = toString$d(key);
|
|
4054
4054
|
if (hasOwn$6(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];
|
|
@@ -4061,7 +4061,7 @@
|
|
|
4061
4061
|
|
|
4062
4062
|
var es_symbol_keyFor = {};
|
|
4063
4063
|
|
|
4064
|
-
var $$
|
|
4064
|
+
var $$q = _export;
|
|
4065
4065
|
var hasOwn$5 = hasOwnProperty_1;
|
|
4066
4066
|
var isSymbol$1 = isSymbol$4;
|
|
4067
4067
|
var tryToString$4 = tryToString$6;
|
|
@@ -4072,7 +4072,7 @@
|
|
|
4072
4072
|
|
|
4073
4073
|
// `Symbol.keyFor` method
|
|
4074
4074
|
// https://tc39.es/ecma262/#sec-symbol.keyfor
|
|
4075
|
-
$$
|
|
4075
|
+
$$q({ target: 'Symbol', stat: true, forced: !NATIVE_SYMBOL_REGISTRY }, {
|
|
4076
4076
|
keyFor: function keyFor(sym) {
|
|
4077
4077
|
if (!isSymbol$1(sym)) throw TypeError(tryToString$4(sym) + ' is not a symbol');
|
|
4078
4078
|
if (hasOwn$5(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
|
|
@@ -4096,12 +4096,12 @@
|
|
|
4096
4096
|
|
|
4097
4097
|
var arraySlice$3 = uncurryThis$l([].slice);
|
|
4098
4098
|
|
|
4099
|
-
var $$
|
|
4099
|
+
var $$p = _export;
|
|
4100
4100
|
var getBuiltIn$1 = getBuiltIn$9;
|
|
4101
4101
|
var apply$2 = functionApply;
|
|
4102
4102
|
var call$b = functionCall;
|
|
4103
4103
|
var uncurryThis$k = functionUncurryThis;
|
|
4104
|
-
var fails$
|
|
4104
|
+
var fails$o = fails$z;
|
|
4105
4105
|
var isArray$2 = isArray$4;
|
|
4106
4106
|
var isCallable$9 = isCallable$m;
|
|
4107
4107
|
var isObject$7 = isObject$e;
|
|
@@ -4120,7 +4120,7 @@
|
|
|
4120
4120
|
var low = /^[\uD800-\uDBFF]$/;
|
|
4121
4121
|
var hi = /^[\uDC00-\uDFFF]$/;
|
|
4122
4122
|
|
|
4123
|
-
var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL$2 || fails$
|
|
4123
|
+
var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL$2 || fails$o(function () {
|
|
4124
4124
|
var symbol = getBuiltIn$1('Symbol')();
|
|
4125
4125
|
// MS Edge converts symbol values to JSON as {}
|
|
4126
4126
|
return $stringify([symbol]) != '[null]'
|
|
@@ -4131,7 +4131,7 @@
|
|
|
4131
4131
|
});
|
|
4132
4132
|
|
|
4133
4133
|
// https://github.com/tc39/proposal-well-formed-stringify
|
|
4134
|
-
var ILL_FORMED_UNICODE = fails$
|
|
4134
|
+
var ILL_FORMED_UNICODE = fails$o(function () {
|
|
4135
4135
|
return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"'
|
|
4136
4136
|
|| $stringify('\uDEAD') !== '"\\udead"';
|
|
4137
4137
|
});
|
|
@@ -4159,7 +4159,7 @@
|
|
|
4159
4159
|
if ($stringify) {
|
|
4160
4160
|
// `JSON.stringify` method
|
|
4161
4161
|
// https://tc39.es/ecma262/#sec-json.stringify
|
|
4162
|
-
$$
|
|
4162
|
+
$$p({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {
|
|
4163
4163
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
4164
4164
|
stringify: function stringify(it, replacer, space) {
|
|
4165
4165
|
var args = arraySlice$2(arguments);
|
|
@@ -4171,19 +4171,19 @@
|
|
|
4171
4171
|
|
|
4172
4172
|
var es_object_getOwnPropertySymbols = {};
|
|
4173
4173
|
|
|
4174
|
-
var $$
|
|
4174
|
+
var $$o = _export;
|
|
4175
4175
|
var NATIVE_SYMBOL$1 = nativeSymbol;
|
|
4176
|
-
var fails$
|
|
4176
|
+
var fails$n = fails$z;
|
|
4177
4177
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
4178
4178
|
var toObject$8 = toObject$b;
|
|
4179
4179
|
|
|
4180
4180
|
// V8 ~ Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
|
|
4181
4181
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3443
|
|
4182
|
-
var FORCED$3 = !NATIVE_SYMBOL$1 || fails$
|
|
4182
|
+
var FORCED$3 = !NATIVE_SYMBOL$1 || fails$n(function () { getOwnPropertySymbolsModule$1.f(1); });
|
|
4183
4183
|
|
|
4184
4184
|
// `Object.getOwnPropertySymbols` method
|
|
4185
4185
|
// https://tc39.es/ecma262/#sec-object.getownpropertysymbols
|
|
4186
|
-
$$
|
|
4186
|
+
$$o({ target: 'Object', stat: true, forced: FORCED$3 }, {
|
|
4187
4187
|
getOwnPropertySymbols: function getOwnPropertySymbols(it) {
|
|
4188
4188
|
var $getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
4189
4189
|
return $getOwnPropertySymbols ? $getOwnPropertySymbols(toObject$8(it)) : [];
|
|
@@ -4195,7 +4195,7 @@
|
|
|
4195
4195
|
// `Symbol.prototype.description` getter
|
|
4196
4196
|
// https://tc39.es/ecma262/#sec-symbol.prototype.description
|
|
4197
4197
|
'use strict';
|
|
4198
|
-
var $$
|
|
4198
|
+
var $$n = _export;
|
|
4199
4199
|
var DESCRIPTORS$6 = descriptors;
|
|
4200
4200
|
var global$9 = global$l;
|
|
4201
4201
|
var uncurryThis$j = functionUncurryThis;
|
|
@@ -4247,7 +4247,7 @@
|
|
|
4247
4247
|
}
|
|
4248
4248
|
});
|
|
4249
4249
|
|
|
4250
|
-
$$
|
|
4250
|
+
$$n({ global: true, constructor: true, forced: true }, {
|
|
4251
4251
|
Symbol: SymbolWrapper
|
|
4252
4252
|
});
|
|
4253
4253
|
}
|
|
@@ -4313,12 +4313,12 @@
|
|
|
4313
4313
|
values: createMethod$3(false)
|
|
4314
4314
|
};
|
|
4315
4315
|
|
|
4316
|
-
var $$
|
|
4316
|
+
var $$m = _export;
|
|
4317
4317
|
var $entries = objectToArray.entries;
|
|
4318
4318
|
|
|
4319
4319
|
// `Object.entries` method
|
|
4320
4320
|
// https://tc39.es/ecma262/#sec-object.entries
|
|
4321
|
-
$$
|
|
4321
|
+
$$m({ target: 'Object', stat: true }, {
|
|
4322
4322
|
entries: function entries(O) {
|
|
4323
4323
|
return $entries(O);
|
|
4324
4324
|
}
|
|
@@ -4334,7 +4334,7 @@
|
|
|
4334
4334
|
return it;
|
|
4335
4335
|
};
|
|
4336
4336
|
|
|
4337
|
-
var fails$
|
|
4337
|
+
var fails$m = fails$z;
|
|
4338
4338
|
var wellKnownSymbol$g = wellKnownSymbol$p;
|
|
4339
4339
|
var V8_VERSION$1 = engineV8Version;
|
|
4340
4340
|
|
|
@@ -4344,7 +4344,7 @@
|
|
|
4344
4344
|
// We can't use this feature detection in V8 since it causes
|
|
4345
4345
|
// deoptimization and serious performance degradation
|
|
4346
4346
|
// https://github.com/zloirock/core-js/issues/677
|
|
4347
|
-
return V8_VERSION$1 >= 51 || !fails$
|
|
4347
|
+
return V8_VERSION$1 >= 51 || !fails$m(function () {
|
|
4348
4348
|
var array = [];
|
|
4349
4349
|
var constructor = array.constructor = {};
|
|
4350
4350
|
constructor[SPECIES$4] = function () {
|
|
@@ -4355,8 +4355,8 @@
|
|
|
4355
4355
|
};
|
|
4356
4356
|
|
|
4357
4357
|
'use strict';
|
|
4358
|
-
var $$
|
|
4359
|
-
var fails$
|
|
4358
|
+
var $$l = _export;
|
|
4359
|
+
var fails$l = fails$z;
|
|
4360
4360
|
var isArray$1 = isArray$4;
|
|
4361
4361
|
var isObject$6 = isObject$e;
|
|
4362
4362
|
var toObject$7 = toObject$b;
|
|
@@ -4373,7 +4373,7 @@
|
|
|
4373
4373
|
// We can't use this feature detection in V8 since it causes
|
|
4374
4374
|
// deoptimization and serious performance degradation
|
|
4375
4375
|
// https://github.com/zloirock/core-js/issues/679
|
|
4376
|
-
var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$
|
|
4376
|
+
var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$l(function () {
|
|
4377
4377
|
var array = [];
|
|
4378
4378
|
array[IS_CONCAT_SPREADABLE] = false;
|
|
4379
4379
|
return array.concat()[0] !== array;
|
|
@@ -4392,7 +4392,7 @@
|
|
|
4392
4392
|
// `Array.prototype.concat` method
|
|
4393
4393
|
// https://tc39.es/ecma262/#sec-array.prototype.concat
|
|
4394
4394
|
// with adding support of @@isConcatSpreadable and @@species
|
|
4395
|
-
$$
|
|
4395
|
+
$$l({ target: 'Array', proto: true, arity: 1, forced: FORCED$2 }, {
|
|
4396
4396
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
4397
4397
|
concat: function concat(arg) {
|
|
4398
4398
|
var O = toObject$7(this);
|
|
@@ -4418,7 +4418,7 @@
|
|
|
4418
4418
|
var es_array_filter = {};
|
|
4419
4419
|
|
|
4420
4420
|
'use strict';
|
|
4421
|
-
var $$
|
|
4421
|
+
var $$k = _export;
|
|
4422
4422
|
var $filter = arrayIteration.filter;
|
|
4423
4423
|
var arrayMethodHasSpeciesSupport$3 = arrayMethodHasSpeciesSupport$5;
|
|
4424
4424
|
|
|
@@ -4427,7 +4427,7 @@
|
|
|
4427
4427
|
// `Array.prototype.filter` method
|
|
4428
4428
|
// https://tc39.es/ecma262/#sec-array.prototype.filter
|
|
4429
4429
|
// with adding support of @@species
|
|
4430
|
-
$$
|
|
4430
|
+
$$k({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$3 }, {
|
|
4431
4431
|
filter: function filter(callbackfn /* , thisArg */) {
|
|
4432
4432
|
return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
4433
4433
|
}
|
|
@@ -4453,13 +4453,13 @@
|
|
|
4453
4453
|
return result;
|
|
4454
4454
|
};
|
|
4455
4455
|
|
|
4456
|
-
var fails$
|
|
4456
|
+
var fails$k = fails$z;
|
|
4457
4457
|
var global$8 = global$l;
|
|
4458
4458
|
|
|
4459
4459
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
4460
4460
|
var $RegExp$2 = global$8.RegExp;
|
|
4461
4461
|
|
|
4462
|
-
var UNSUPPORTED_Y$3 = fails$
|
|
4462
|
+
var UNSUPPORTED_Y$3 = fails$k(function () {
|
|
4463
4463
|
var re = $RegExp$2('a', 'y');
|
|
4464
4464
|
re.lastIndex = 2;
|
|
4465
4465
|
return re.exec('abcd') != null;
|
|
@@ -4467,11 +4467,11 @@
|
|
|
4467
4467
|
|
|
4468
4468
|
// UC Browser bug
|
|
4469
4469
|
// https://github.com/zloirock/core-js/issues/1008
|
|
4470
|
-
var MISSED_STICKY$1 = UNSUPPORTED_Y$3 || fails$
|
|
4470
|
+
var MISSED_STICKY$1 = UNSUPPORTED_Y$3 || fails$k(function () {
|
|
4471
4471
|
return !$RegExp$2('a', 'y').sticky;
|
|
4472
4472
|
});
|
|
4473
4473
|
|
|
4474
|
-
var BROKEN_CARET = UNSUPPORTED_Y$3 || fails$
|
|
4474
|
+
var BROKEN_CARET = UNSUPPORTED_Y$3 || fails$k(function () {
|
|
4475
4475
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
4476
4476
|
var re = $RegExp$2('^r', 'gy');
|
|
4477
4477
|
re.lastIndex = 2;
|
|
@@ -4484,24 +4484,24 @@
|
|
|
4484
4484
|
UNSUPPORTED_Y: UNSUPPORTED_Y$3
|
|
4485
4485
|
};
|
|
4486
4486
|
|
|
4487
|
-
var fails$
|
|
4487
|
+
var fails$j = fails$z;
|
|
4488
4488
|
var global$7 = global$l;
|
|
4489
4489
|
|
|
4490
4490
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
4491
4491
|
var $RegExp$1 = global$7.RegExp;
|
|
4492
4492
|
|
|
4493
|
-
var regexpUnsupportedDotAll = fails$
|
|
4493
|
+
var regexpUnsupportedDotAll = fails$j(function () {
|
|
4494
4494
|
var re = $RegExp$1('.', 's');
|
|
4495
4495
|
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
|
4496
4496
|
});
|
|
4497
4497
|
|
|
4498
|
-
var fails$
|
|
4498
|
+
var fails$i = fails$z;
|
|
4499
4499
|
var global$6 = global$l;
|
|
4500
4500
|
|
|
4501
4501
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
4502
4502
|
var $RegExp = global$6.RegExp;
|
|
4503
4503
|
|
|
4504
|
-
var regexpUnsupportedNcg = fails$
|
|
4504
|
+
var regexpUnsupportedNcg = fails$i(function () {
|
|
4505
4505
|
var re = $RegExp('(?<a>b)', 'g');
|
|
4506
4506
|
return re.exec('b').groups.a !== 'b' ||
|
|
4507
4507
|
'b'.replace(re, '$<a>c') !== 'bc';
|
|
@@ -4626,12 +4626,12 @@
|
|
|
4626
4626
|
var regexpExec$3 = patchedExec;
|
|
4627
4627
|
|
|
4628
4628
|
'use strict';
|
|
4629
|
-
var $$
|
|
4629
|
+
var $$j = _export;
|
|
4630
4630
|
var exec$2 = regexpExec$3;
|
|
4631
4631
|
|
|
4632
4632
|
// `RegExp.prototype.exec` method
|
|
4633
4633
|
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
4634
|
-
$$
|
|
4634
|
+
$$j({ target: 'RegExp', proto: true, forced: /./.exec !== exec$2 }, {
|
|
4635
4635
|
exec: exec$2
|
|
4636
4636
|
});
|
|
4637
4637
|
|
|
@@ -4643,7 +4643,7 @@
|
|
|
4643
4643
|
var uncurryThis$g = functionUncurryThis;
|
|
4644
4644
|
var defineBuiltIn$6 = defineBuiltIn$b;
|
|
4645
4645
|
var regexpExec$2 = regexpExec$3;
|
|
4646
|
-
var fails$
|
|
4646
|
+
var fails$h = fails$z;
|
|
4647
4647
|
var wellKnownSymbol$e = wellKnownSymbol$p;
|
|
4648
4648
|
var createNonEnumerableProperty$3 = createNonEnumerableProperty$7;
|
|
4649
4649
|
|
|
@@ -4653,14 +4653,14 @@
|
|
|
4653
4653
|
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
4654
4654
|
var SYMBOL = wellKnownSymbol$e(KEY);
|
|
4655
4655
|
|
|
4656
|
-
var DELEGATES_TO_SYMBOL = !fails$
|
|
4656
|
+
var DELEGATES_TO_SYMBOL = !fails$h(function () {
|
|
4657
4657
|
// String methods call symbol-named RegEp methods
|
|
4658
4658
|
var O = {};
|
|
4659
4659
|
O[SYMBOL] = function () { return 7; };
|
|
4660
4660
|
return ''[KEY](O) != 7;
|
|
4661
4661
|
});
|
|
4662
4662
|
|
|
4663
|
-
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$
|
|
4663
|
+
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$h(function () {
|
|
4664
4664
|
// Symbol-named RegExp methods call .exec
|
|
4665
4665
|
var execCalled = false;
|
|
4666
4666
|
var re = /a/;
|
|
@@ -4834,7 +4834,7 @@
|
|
|
4834
4834
|
var callRegExpExec = regexpExecAbstract;
|
|
4835
4835
|
var regexpExec = regexpExec$3;
|
|
4836
4836
|
var stickyHelpers$1 = regexpStickyHelpers;
|
|
4837
|
-
var fails$
|
|
4837
|
+
var fails$g = fails$z;
|
|
4838
4838
|
|
|
4839
4839
|
var UNSUPPORTED_Y$1 = stickyHelpers$1.UNSUPPORTED_Y;
|
|
4840
4840
|
var MAX_UINT32 = 0xFFFFFFFF;
|
|
@@ -4846,7 +4846,7 @@
|
|
|
4846
4846
|
|
|
4847
4847
|
// Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
|
|
4848
4848
|
// Weex JS has frozen built-in prototypes, so use try / catch wrapper
|
|
4849
|
-
var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails$
|
|
4849
|
+
var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails$g(function () {
|
|
4850
4850
|
// eslint-disable-next-line regexp/no-empty-group -- required for testing
|
|
4851
4851
|
var re = /(?:)/;
|
|
4852
4852
|
var originalExec = re.exec;
|
|
@@ -4977,18 +4977,18 @@
|
|
|
4977
4977
|
var es_array_join = {};
|
|
4978
4978
|
|
|
4979
4979
|
'use strict';
|
|
4980
|
-
var fails$
|
|
4980
|
+
var fails$f = fails$z;
|
|
4981
4981
|
|
|
4982
4982
|
var arrayMethodIsStrict$4 = function (METHOD_NAME, argument) {
|
|
4983
4983
|
var method = [][METHOD_NAME];
|
|
4984
|
-
return !!method && fails$
|
|
4984
|
+
return !!method && fails$f(function () {
|
|
4985
4985
|
// eslint-disable-next-line no-useless-call -- required for testing
|
|
4986
4986
|
method.call(null, argument || function () { return 1; }, 1);
|
|
4987
4987
|
});
|
|
4988
4988
|
};
|
|
4989
4989
|
|
|
4990
4990
|
'use strict';
|
|
4991
|
-
var $$
|
|
4991
|
+
var $$i = _export;
|
|
4992
4992
|
var uncurryThis$d = functionUncurryThis;
|
|
4993
4993
|
var IndexedObject$2 = indexedObject;
|
|
4994
4994
|
var toIndexedObject$2 = toIndexedObject$a;
|
|
@@ -5001,7 +5001,7 @@
|
|
|
5001
5001
|
|
|
5002
5002
|
// `Array.prototype.join` method
|
|
5003
5003
|
// https://tc39.es/ecma262/#sec-array.prototype.join
|
|
5004
|
-
$$
|
|
5004
|
+
$$i({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD$3 }, {
|
|
5005
5005
|
join: function join(separator) {
|
|
5006
5006
|
return un$Join(toIndexedObject$2(this), separator === undefined ? ',' : separator);
|
|
5007
5007
|
}
|
|
@@ -5171,7 +5171,7 @@
|
|
|
5171
5171
|
return ITERATION_SUPPORT;
|
|
5172
5172
|
};
|
|
5173
5173
|
|
|
5174
|
-
var $$
|
|
5174
|
+
var $$h = _export;
|
|
5175
5175
|
var from = arrayFrom;
|
|
5176
5176
|
var checkCorrectnessOfIteration$1 = checkCorrectnessOfIteration$2;
|
|
5177
5177
|
|
|
@@ -5182,15 +5182,15 @@
|
|
|
5182
5182
|
|
|
5183
5183
|
// `Array.from` method
|
|
5184
5184
|
// https://tc39.es/ecma262/#sec-array.from
|
|
5185
|
-
$$
|
|
5185
|
+
$$h({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {
|
|
5186
5186
|
from: from
|
|
5187
5187
|
});
|
|
5188
5188
|
|
|
5189
5189
|
var es_string_iterator = {};
|
|
5190
5190
|
|
|
5191
|
-
var fails$
|
|
5191
|
+
var fails$e = fails$z;
|
|
5192
5192
|
|
|
5193
|
-
var correctPrototypeGetter = !fails$
|
|
5193
|
+
var correctPrototypeGetter = !fails$e(function () {
|
|
5194
5194
|
function F() { /* empty */ }
|
|
5195
5195
|
F.prototype.constructor = null;
|
|
5196
5196
|
// eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing
|
|
@@ -5220,7 +5220,7 @@
|
|
|
5220
5220
|
};
|
|
5221
5221
|
|
|
5222
5222
|
'use strict';
|
|
5223
|
-
var fails$
|
|
5223
|
+
var fails$d = fails$z;
|
|
5224
5224
|
var isCallable$5 = isCallable$m;
|
|
5225
5225
|
var create$3 = objectCreate;
|
|
5226
5226
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
@@ -5246,7 +5246,7 @@
|
|
|
5246
5246
|
}
|
|
5247
5247
|
}
|
|
5248
5248
|
|
|
5249
|
-
var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$
|
|
5249
|
+
var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$d(function () {
|
|
5250
5250
|
var test = {};
|
|
5251
5251
|
// FF44- legacy iterators case
|
|
5252
5252
|
return IteratorPrototype$2[ITERATOR$3].call(test) !== test;
|
|
@@ -5325,7 +5325,7 @@
|
|
|
5325
5325
|
}() : undefined);
|
|
5326
5326
|
|
|
5327
5327
|
'use strict';
|
|
5328
|
-
var $$
|
|
5328
|
+
var $$g = _export;
|
|
5329
5329
|
var call$4 = functionCall;
|
|
5330
5330
|
var IS_PURE$2 = isPure;
|
|
5331
5331
|
var FunctionName = functionName;
|
|
@@ -5412,7 +5412,7 @@
|
|
|
5412
5412
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
5413
5413
|
defineBuiltIn$4(IterablePrototype, KEY, methods[KEY]);
|
|
5414
5414
|
}
|
|
5415
|
-
} else $$
|
|
5415
|
+
} else $$g({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
5416
5416
|
}
|
|
5417
5417
|
|
|
5418
5418
|
// define iterator
|
|
@@ -5484,7 +5484,7 @@
|
|
|
5484
5484
|
};
|
|
5485
5485
|
|
|
5486
5486
|
'use strict';
|
|
5487
|
-
var $$
|
|
5487
|
+
var $$f = _export;
|
|
5488
5488
|
var uncurryThis$b = functionUncurryThis;
|
|
5489
5489
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
5490
5490
|
var toLength$1 = toLength$4;
|
|
@@ -5508,7 +5508,7 @@
|
|
|
5508
5508
|
|
|
5509
5509
|
// `String.prototype.startsWith` method
|
|
5510
5510
|
// https://tc39.es/ecma262/#sec-string.prototype.startswith
|
|
5511
|
-
$$
|
|
5511
|
+
$$f({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
|
|
5512
5512
|
startsWith: function startsWith(searchString /* , position = 0 */) {
|
|
5513
5513
|
var that = toString$6(requireObjectCoercible$3(this));
|
|
5514
5514
|
notARegExp(searchString);
|
|
@@ -5532,7 +5532,7 @@
|
|
|
5532
5532
|
};
|
|
5533
5533
|
|
|
5534
5534
|
'use strict';
|
|
5535
|
-
var $$
|
|
5535
|
+
var $$e = _export;
|
|
5536
5536
|
var toObject$4 = toObject$b;
|
|
5537
5537
|
var toAbsoluteIndex$1 = toAbsoluteIndex$4;
|
|
5538
5538
|
var toIntegerOrInfinity$1 = toIntegerOrInfinity$5;
|
|
@@ -5551,7 +5551,7 @@
|
|
|
5551
5551
|
// `Array.prototype.splice` method
|
|
5552
5552
|
// https://tc39.es/ecma262/#sec-array.prototype.splice
|
|
5553
5553
|
// with adding support of @@species
|
|
5554
|
-
$$
|
|
5554
|
+
$$e({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$2 }, {
|
|
5555
5555
|
splice: function splice(start, deleteCount /* , ...items */) {
|
|
5556
5556
|
var O = toObject$4(this);
|
|
5557
5557
|
var len = lengthOfArrayLike$4(O);
|
|
@@ -5601,7 +5601,7 @@
|
|
|
5601
5601
|
var es_array_map = {};
|
|
5602
5602
|
|
|
5603
5603
|
'use strict';
|
|
5604
|
-
var $$
|
|
5604
|
+
var $$d = _export;
|
|
5605
5605
|
var $map = arrayIteration.map;
|
|
5606
5606
|
var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$5;
|
|
5607
5607
|
|
|
@@ -5610,7 +5610,7 @@
|
|
|
5610
5610
|
// `Array.prototype.map` method
|
|
5611
5611
|
// https://tc39.es/ecma262/#sec-array.prototype.map
|
|
5612
5612
|
// with adding support of @@species
|
|
5613
|
-
$$
|
|
5613
|
+
$$d({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
|
|
5614
5614
|
map: function map(callbackfn /* , thisArg */) {
|
|
5615
5615
|
return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
5616
5616
|
}
|
|
@@ -5655,7 +5655,7 @@
|
|
|
5655
5655
|
};
|
|
5656
5656
|
|
|
5657
5657
|
var global$5 = global$l;
|
|
5658
|
-
var fails$
|
|
5658
|
+
var fails$c = fails$z;
|
|
5659
5659
|
var uncurryThis$9 = functionUncurryThis;
|
|
5660
5660
|
var toString$4 = toString$e;
|
|
5661
5661
|
var trim = stringTrim.trim;
|
|
@@ -5667,7 +5667,7 @@
|
|
|
5667
5667
|
var ITERATOR$1 = Symbol$1 && Symbol$1.iterator;
|
|
5668
5668
|
var FORCED$1 = 1 / n$ParseFloat(whitespaces$1 + '-0') !== -Infinity
|
|
5669
5669
|
// MS Edge 18- broken with boxed symbols
|
|
5670
|
-
|| (ITERATOR$1 && !fails$
|
|
5670
|
+
|| (ITERATOR$1 && !fails$c(function () { n$ParseFloat(Object(ITERATOR$1)); }));
|
|
5671
5671
|
|
|
5672
5672
|
// `parseFloat` method
|
|
5673
5673
|
// https://tc39.es/ecma262/#sec-parsefloat-string
|
|
@@ -5677,12 +5677,12 @@
|
|
|
5677
5677
|
return result === 0 && charAt$2(trimmedString, 0) == '-' ? -0 : result;
|
|
5678
5678
|
} : n$ParseFloat;
|
|
5679
5679
|
|
|
5680
|
-
var $$
|
|
5680
|
+
var $$c = _export;
|
|
5681
5681
|
var $parseFloat = numberParseFloat;
|
|
5682
5682
|
|
|
5683
5683
|
// `parseFloat` method
|
|
5684
5684
|
// https://tc39.es/ecma262/#sec-parsefloat-string
|
|
5685
|
-
$$
|
|
5685
|
+
$$c({ global: true, forced: parseFloat != $parseFloat }, {
|
|
5686
5686
|
parseFloat: $parseFloat
|
|
5687
5687
|
});
|
|
5688
5688
|
|
|
@@ -5704,25 +5704,25 @@
|
|
|
5704
5704
|
return p1 + '>' + S + '</' + tag + '>';
|
|
5705
5705
|
};
|
|
5706
5706
|
|
|
5707
|
-
var fails$
|
|
5707
|
+
var fails$b = fails$z;
|
|
5708
5708
|
|
|
5709
5709
|
// check the existence of a method, lowercase
|
|
5710
5710
|
// of a tag and escaping quotes in arguments
|
|
5711
5711
|
var stringHtmlForced = function (METHOD_NAME) {
|
|
5712
|
-
return fails$
|
|
5712
|
+
return fails$b(function () {
|
|
5713
5713
|
var test = ''[METHOD_NAME]('"');
|
|
5714
5714
|
return test !== test.toLowerCase() || test.split('"').length > 3;
|
|
5715
5715
|
});
|
|
5716
5716
|
};
|
|
5717
5717
|
|
|
5718
5718
|
'use strict';
|
|
5719
|
-
var $$
|
|
5719
|
+
var $$b = _export;
|
|
5720
5720
|
var createHTML = createHtml;
|
|
5721
5721
|
var forcedStringHTMLMethod = stringHtmlForced;
|
|
5722
5722
|
|
|
5723
5723
|
// `String.prototype.anchor` method
|
|
5724
5724
|
// https://tc39.es/ecma262/#sec-string.prototype.anchor
|
|
5725
|
-
$$
|
|
5725
|
+
$$b({ target: 'String', proto: true, forced: forcedStringHTMLMethod('anchor') }, {
|
|
5726
5726
|
anchor: function anchor(name) {
|
|
5727
5727
|
return createHTML(this, 'a', 'name', name);
|
|
5728
5728
|
}
|
|
@@ -5732,7 +5732,7 @@
|
|
|
5732
5732
|
|
|
5733
5733
|
'use strict';
|
|
5734
5734
|
/* eslint-disable es-x/no-array-prototype-indexof -- required for testing */
|
|
5735
|
-
var $$
|
|
5735
|
+
var $$a = _export;
|
|
5736
5736
|
var uncurryThis$7 = functionUncurryThis;
|
|
5737
5737
|
var $IndexOf = arrayIncludes.indexOf;
|
|
5738
5738
|
var arrayMethodIsStrict$2 = arrayMethodIsStrict$4;
|
|
@@ -5744,7 +5744,7 @@
|
|
|
5744
5744
|
|
|
5745
5745
|
// `Array.prototype.indexOf` method
|
|
5746
5746
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
5747
|
-
$$
|
|
5747
|
+
$$a({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || !STRICT_METHOD$2 }, {
|
|
5748
5748
|
indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {
|
|
5749
5749
|
var fromIndex = arguments.length > 1 ? arguments[1] : undefined;
|
|
5750
5750
|
return NEGATIVE_ZERO
|
|
@@ -5805,7 +5805,7 @@
|
|
|
5805
5805
|
var engineIsNode = classof$1(global$4.process) == 'process';
|
|
5806
5806
|
|
|
5807
5807
|
'use strict';
|
|
5808
|
-
var $$
|
|
5808
|
+
var $$9 = _export;
|
|
5809
5809
|
var $reduce = arrayReduce.left;
|
|
5810
5810
|
var arrayMethodIsStrict$1 = arrayMethodIsStrict$4;
|
|
5811
5811
|
var CHROME_VERSION = engineV8Version;
|
|
@@ -5818,7 +5818,7 @@
|
|
|
5818
5818
|
|
|
5819
5819
|
// `Array.prototype.reduce` method
|
|
5820
5820
|
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
5821
|
-
$$
|
|
5821
|
+
$$9({ target: 'Array', proto: true, forced: !STRICT_METHOD$1 || CHROME_BUG }, {
|
|
5822
5822
|
reduce: function reduce(callbackfn /* , initialValue */) {
|
|
5823
5823
|
var length = arguments.length;
|
|
5824
5824
|
return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
|
|
@@ -5844,14 +5844,14 @@
|
|
|
5844
5844
|
}
|
|
5845
5845
|
|
|
5846
5846
|
// add a key to Array.prototype[@@unscopables]
|
|
5847
|
-
var addToUnscopables$
|
|
5847
|
+
var addToUnscopables$4 = function (key) {
|
|
5848
5848
|
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
5849
5849
|
};
|
|
5850
5850
|
|
|
5851
5851
|
'use strict';
|
|
5852
|
-
var $$
|
|
5852
|
+
var $$8 = _export;
|
|
5853
5853
|
var $find = arrayIteration.find;
|
|
5854
|
-
var addToUnscopables$
|
|
5854
|
+
var addToUnscopables$3 = addToUnscopables$4;
|
|
5855
5855
|
|
|
5856
5856
|
var FIND = 'find';
|
|
5857
5857
|
var SKIPS_HOLES$1 = true;
|
|
@@ -5861,14 +5861,14 @@
|
|
|
5861
5861
|
|
|
5862
5862
|
// `Array.prototype.find` method
|
|
5863
5863
|
// https://tc39.es/ecma262/#sec-array.prototype.find
|
|
5864
|
-
$$
|
|
5864
|
+
$$8({ target: 'Array', proto: true, forced: SKIPS_HOLES$1 }, {
|
|
5865
5865
|
find: function find(callbackfn /* , that = undefined */) {
|
|
5866
5866
|
return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
5867
5867
|
}
|
|
5868
5868
|
});
|
|
5869
5869
|
|
|
5870
5870
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
5871
|
-
addToUnscopables$
|
|
5871
|
+
addToUnscopables$3(FIND);
|
|
5872
5872
|
|
|
5873
5873
|
var es_regexp_constructor = {};
|
|
5874
5874
|
|
|
@@ -5948,7 +5948,7 @@
|
|
|
5948
5948
|
var stickyHelpers = regexpStickyHelpers;
|
|
5949
5949
|
var proxyAccessor = proxyAccessor$1;
|
|
5950
5950
|
var defineBuiltIn$3 = defineBuiltIn$b;
|
|
5951
|
-
var fails$
|
|
5951
|
+
var fails$a = fails$z;
|
|
5952
5952
|
var hasOwn$1 = hasOwnProperty_1;
|
|
5953
5953
|
var enforceInternalState = internalState.enforce;
|
|
5954
5954
|
var setSpecies$1 = setSpecies$2;
|
|
@@ -5977,7 +5977,7 @@
|
|
|
5977
5977
|
var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
|
|
5978
5978
|
|
|
5979
5979
|
var BASE_FORCED = DESCRIPTORS$3 &&
|
|
5980
|
-
(!CORRECT_NEW || MISSED_STICKY || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG || fails$
|
|
5980
|
+
(!CORRECT_NEW || MISSED_STICKY || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG || fails$a(function () {
|
|
5981
5981
|
re2[MATCH] = false;
|
|
5982
5982
|
// RegExp constructor can alter flags and IsRegExp works correct with @@match
|
|
5983
5983
|
return NativeRegExp(re1) != re1 || NativeRegExp(re2) == re2 || NativeRegExp(re1, 'i') != '/a/i';
|
|
@@ -6132,14 +6132,14 @@
|
|
|
6132
6132
|
var defineBuiltIn$2 = defineBuiltIn$b;
|
|
6133
6133
|
var anObject$2 = anObject$g;
|
|
6134
6134
|
var $toString = toString$e;
|
|
6135
|
-
var fails$
|
|
6135
|
+
var fails$9 = fails$z;
|
|
6136
6136
|
var getRegExpFlags = regexpGetFlags;
|
|
6137
6137
|
|
|
6138
6138
|
var TO_STRING = 'toString';
|
|
6139
6139
|
var RegExpPrototype = RegExp.prototype;
|
|
6140
6140
|
var n$ToString = RegExpPrototype[TO_STRING];
|
|
6141
6141
|
|
|
6142
|
-
var NOT_GENERIC = fails$
|
|
6142
|
+
var NOT_GENERIC = fails$9(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
|
|
6143
6143
|
// FF44- RegExp#toString has a wrong name
|
|
6144
6144
|
var INCORRECT_NAME = PROPER_FUNCTION_NAME$1 && n$ToString.name != TO_STRING;
|
|
6145
6145
|
|
|
@@ -6206,7 +6206,7 @@
|
|
|
6206
6206
|
var call$2 = functionCall;
|
|
6207
6207
|
var uncurryThis$4 = functionUncurryThis;
|
|
6208
6208
|
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
6209
|
-
var fails$
|
|
6209
|
+
var fails$8 = fails$z;
|
|
6210
6210
|
var anObject$1 = anObject$g;
|
|
6211
6211
|
var isCallable$1 = isCallable$m;
|
|
6212
6212
|
var toIntegerOrInfinity = toIntegerOrInfinity$5;
|
|
@@ -6246,7 +6246,7 @@
|
|
|
6246
6246
|
return false;
|
|
6247
6247
|
})();
|
|
6248
6248
|
|
|
6249
|
-
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$
|
|
6249
|
+
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$8(function () {
|
|
6250
6250
|
var re = /./;
|
|
6251
6251
|
re.exec = function () {
|
|
6252
6252
|
var result = [];
|
|
@@ -8532,7 +8532,7 @@
|
|
|
8532
8532
|
|
|
8533
8533
|
'use strict';
|
|
8534
8534
|
var toIndexedObject$1 = toIndexedObject$a;
|
|
8535
|
-
var addToUnscopables$
|
|
8535
|
+
var addToUnscopables$2 = addToUnscopables$4;
|
|
8536
8536
|
var Iterators = iterators;
|
|
8537
8537
|
var InternalStateModule$1 = internalState;
|
|
8538
8538
|
var defineProperty$3 = objectDefineProperty.f;
|
|
@@ -8583,9 +8583,9 @@
|
|
|
8583
8583
|
var values = Iterators.Arguments = Iterators.Array;
|
|
8584
8584
|
|
|
8585
8585
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
8586
|
-
addToUnscopables$
|
|
8587
|
-
addToUnscopables$
|
|
8588
|
-
addToUnscopables$
|
|
8586
|
+
addToUnscopables$2('keys');
|
|
8587
|
+
addToUnscopables$2('values');
|
|
8588
|
+
addToUnscopables$2('entries');
|
|
8589
8589
|
|
|
8590
8590
|
// V8 ~ Chrome 45- bug
|
|
8591
8591
|
if (!IS_PURE && DESCRIPTORS$2 && values.name !== 'values') try {
|
|
@@ -8599,9 +8599,9 @@
|
|
|
8599
8599
|
var internalMetadata = {exports: {}};
|
|
8600
8600
|
|
|
8601
8601
|
// FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it
|
|
8602
|
-
var fails$
|
|
8602
|
+
var fails$7 = fails$z;
|
|
8603
8603
|
|
|
8604
|
-
var arrayBufferNonExtensible = fails$
|
|
8604
|
+
var arrayBufferNonExtensible = fails$7(function () {
|
|
8605
8605
|
if (typeof ArrayBuffer == 'function') {
|
|
8606
8606
|
var buffer = new ArrayBuffer(8);
|
|
8607
8607
|
// eslint-disable-next-line es-x/no-object-isextensible, es-x/no-object-defineproperty -- safe
|
|
@@ -8609,14 +8609,14 @@
|
|
|
8609
8609
|
}
|
|
8610
8610
|
});
|
|
8611
8611
|
|
|
8612
|
-
var fails$
|
|
8612
|
+
var fails$6 = fails$z;
|
|
8613
8613
|
var isObject$3 = isObject$e;
|
|
8614
8614
|
var classof = classofRaw$1;
|
|
8615
8615
|
var ARRAY_BUFFER_NON_EXTENSIBLE = arrayBufferNonExtensible;
|
|
8616
8616
|
|
|
8617
8617
|
// eslint-disable-next-line es-x/no-object-isextensible -- safe
|
|
8618
8618
|
var $isExtensible = Object.isExtensible;
|
|
8619
|
-
var FAILS_ON_PRIMITIVES = fails$
|
|
8619
|
+
var FAILS_ON_PRIMITIVES = fails$6(function () { $isExtensible(1); });
|
|
8620
8620
|
|
|
8621
8621
|
// `Object.isExtensible` method
|
|
8622
8622
|
// https://tc39.es/ecma262/#sec-object.isextensible
|
|
@@ -8626,14 +8626,14 @@
|
|
|
8626
8626
|
return $isExtensible ? $isExtensible(it) : true;
|
|
8627
8627
|
} : $isExtensible;
|
|
8628
8628
|
|
|
8629
|
-
var fails$
|
|
8629
|
+
var fails$5 = fails$z;
|
|
8630
8630
|
|
|
8631
|
-
var freezing = !fails$
|
|
8631
|
+
var freezing = !fails$5(function () {
|
|
8632
8632
|
// eslint-disable-next-line es-x/no-object-isextensible, es-x/no-object-preventextensions -- required for testing
|
|
8633
8633
|
return Object.isExtensible(Object.preventExtensions({}));
|
|
8634
8634
|
});
|
|
8635
8635
|
|
|
8636
|
-
var $$
|
|
8636
|
+
var $$7 = _export;
|
|
8637
8637
|
var uncurryThis$3 = functionUncurryThis;
|
|
8638
8638
|
var hiddenKeys = hiddenKeys$6;
|
|
8639
8639
|
var isObject$2 = isObject$e;
|
|
@@ -8708,7 +8708,7 @@
|
|
|
8708
8708
|
} return result;
|
|
8709
8709
|
};
|
|
8710
8710
|
|
|
8711
|
-
$$
|
|
8711
|
+
$$7({ target: 'Object', stat: true, forced: true }, {
|
|
8712
8712
|
getOwnPropertyNames: getOwnPropertyNamesExternalModule.f
|
|
8713
8713
|
});
|
|
8714
8714
|
}
|
|
@@ -8799,7 +8799,7 @@
|
|
|
8799
8799
|
};
|
|
8800
8800
|
|
|
8801
8801
|
'use strict';
|
|
8802
|
-
var $$
|
|
8802
|
+
var $$6 = _export;
|
|
8803
8803
|
var global$2 = global$l;
|
|
8804
8804
|
var uncurryThis$2 = functionUncurryThis;
|
|
8805
8805
|
var isForced = isForced_1;
|
|
@@ -8809,7 +8809,7 @@
|
|
|
8809
8809
|
var anInstance$1 = anInstance$2;
|
|
8810
8810
|
var isCallable = isCallable$m;
|
|
8811
8811
|
var isObject$1 = isObject$e;
|
|
8812
|
-
var fails$
|
|
8812
|
+
var fails$4 = fails$z;
|
|
8813
8813
|
var checkCorrectnessOfIteration = checkCorrectnessOfIteration$2;
|
|
8814
8814
|
var setToStringTag = setToStringTag$4;
|
|
8815
8815
|
var inheritIfRequired = inheritIfRequired$2;
|
|
@@ -8844,7 +8844,7 @@
|
|
|
8844
8844
|
|
|
8845
8845
|
var REPLACE = isForced(
|
|
8846
8846
|
CONSTRUCTOR_NAME,
|
|
8847
|
-
!isCallable(NativeConstructor) || !(IS_WEAK || NativePrototype.forEach && !fails$
|
|
8847
|
+
!isCallable(NativeConstructor) || !(IS_WEAK || NativePrototype.forEach && !fails$4(function () {
|
|
8848
8848
|
new NativeConstructor().entries().next();
|
|
8849
8849
|
}))
|
|
8850
8850
|
);
|
|
@@ -8858,12 +8858,12 @@
|
|
|
8858
8858
|
// early implementations not supports chaining
|
|
8859
8859
|
var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;
|
|
8860
8860
|
// V8 ~ Chromium 40- weak-collections throws on primitives, but should return false
|
|
8861
|
-
var THROWS_ON_PRIMITIVES = fails$
|
|
8861
|
+
var THROWS_ON_PRIMITIVES = fails$4(function () { instance.has(1); });
|
|
8862
8862
|
// most early implementations doesn't supports iterables, most modern - not close it correctly
|
|
8863
8863
|
// eslint-disable-next-line no-new -- required for testing
|
|
8864
8864
|
var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { new NativeConstructor(iterable); });
|
|
8865
8865
|
// for early implementations -0 and +0 not the same
|
|
8866
|
-
var BUGGY_ZERO = !IS_WEAK && fails$
|
|
8866
|
+
var BUGGY_ZERO = !IS_WEAK && fails$4(function () {
|
|
8867
8867
|
// V8 ~ Chromium 42- fails only with 5+ elements
|
|
8868
8868
|
var $instance = new NativeConstructor();
|
|
8869
8869
|
var index = 5;
|
|
@@ -8895,7 +8895,7 @@
|
|
|
8895
8895
|
}
|
|
8896
8896
|
|
|
8897
8897
|
exported[CONSTRUCTOR_NAME] = Constructor;
|
|
8898
|
-
$$
|
|
8898
|
+
$$6({ global: true, constructor: true, forced: Constructor != NativeConstructor }, exported);
|
|
8899
8899
|
|
|
8900
8900
|
setToStringTag(Constructor, CONSTRUCTOR_NAME);
|
|
8901
8901
|
|
|
@@ -9214,7 +9214,7 @@
|
|
|
9214
9214
|
var es_array_slice = {};
|
|
9215
9215
|
|
|
9216
9216
|
'use strict';
|
|
9217
|
-
var $$
|
|
9217
|
+
var $$5 = _export;
|
|
9218
9218
|
var isArray = isArray$4;
|
|
9219
9219
|
var isConstructor = isConstructor$4;
|
|
9220
9220
|
var isObject = isObject$e;
|
|
@@ -9235,7 +9235,7 @@
|
|
|
9235
9235
|
// `Array.prototype.slice` method
|
|
9236
9236
|
// https://tc39.es/ecma262/#sec-array.prototype.slice
|
|
9237
9237
|
// fallback for not array-like ES3 strings and DOM objects
|
|
9238
|
-
$$
|
|
9238
|
+
$$5({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
|
9239
9239
|
slice: function slice(start, end) {
|
|
9240
9240
|
var O = toIndexedObject(this);
|
|
9241
9241
|
var length = lengthOfArrayLike$1(O);
|
|
@@ -9269,7 +9269,7 @@
|
|
|
9269
9269
|
var DESCRIPTORS = descriptors;
|
|
9270
9270
|
var uncurryThis$1 = functionUncurryThis;
|
|
9271
9271
|
var call = functionCall;
|
|
9272
|
-
var fails$
|
|
9272
|
+
var fails$3 = fails$z;
|
|
9273
9273
|
var objectKeys = objectKeys$4;
|
|
9274
9274
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
9275
9275
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
@@ -9284,7 +9284,7 @@
|
|
|
9284
9284
|
|
|
9285
9285
|
// `Object.assign` method
|
|
9286
9286
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
9287
|
-
var objectAssign = !$assign || fails$
|
|
9287
|
+
var objectAssign = !$assign || fails$3(function () {
|
|
9288
9288
|
// should have correct order of operations (Edge bug)
|
|
9289
9289
|
if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
|
|
9290
9290
|
enumerable: true,
|
|
@@ -9323,20 +9323,20 @@
|
|
|
9323
9323
|
} return T;
|
|
9324
9324
|
} : $assign;
|
|
9325
9325
|
|
|
9326
|
-
var $$
|
|
9326
|
+
var $$4 = _export;
|
|
9327
9327
|
var assign = objectAssign;
|
|
9328
9328
|
|
|
9329
9329
|
// `Object.assign` method
|
|
9330
9330
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
9331
9331
|
// eslint-disable-next-line es-x/no-object-assign -- required for testing
|
|
9332
|
-
$$
|
|
9332
|
+
$$4({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
9333
9333
|
assign: assign
|
|
9334
9334
|
});
|
|
9335
9335
|
|
|
9336
9336
|
var es_string_trim = {};
|
|
9337
9337
|
|
|
9338
9338
|
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
9339
|
-
var fails$
|
|
9339
|
+
var fails$2 = fails$z;
|
|
9340
9340
|
var whitespaces = whitespaces$3;
|
|
9341
9341
|
|
|
9342
9342
|
var non = '\u200B\u0085\u180E';
|
|
@@ -9344,7 +9344,7 @@
|
|
|
9344
9344
|
// check that a method works with the correct list
|
|
9345
9345
|
// of whitespaces and has a correct name
|
|
9346
9346
|
var stringTrimForced = function (METHOD_NAME) {
|
|
9347
|
-
return fails$
|
|
9347
|
+
return fails$2(function () {
|
|
9348
9348
|
return !!whitespaces[METHOD_NAME]()
|
|
9349
9349
|
|| non[METHOD_NAME]() !== non
|
|
9350
9350
|
|| (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);
|
|
@@ -9352,13 +9352,13 @@
|
|
|
9352
9352
|
};
|
|
9353
9353
|
|
|
9354
9354
|
'use strict';
|
|
9355
|
-
var $$
|
|
9355
|
+
var $$3 = _export;
|
|
9356
9356
|
var $trim = stringTrim.trim;
|
|
9357
9357
|
var forcedStringTrimMethod = stringTrimForced;
|
|
9358
9358
|
|
|
9359
9359
|
// `String.prototype.trim` method
|
|
9360
9360
|
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
9361
|
-
$$
|
|
9361
|
+
$$3({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
|
|
9362
9362
|
trim: function trim() {
|
|
9363
9363
|
return $trim(this);
|
|
9364
9364
|
}
|
|
@@ -9378,12 +9378,36 @@
|
|
|
9378
9378
|
return function Map() { return init(this, arguments.length ? arguments[0] : undefined); };
|
|
9379
9379
|
}, collectionStrong);
|
|
9380
9380
|
|
|
9381
|
+
var es_array_includes = {};
|
|
9382
|
+
|
|
9383
|
+
'use strict';
|
|
9384
|
+
var $$2 = _export;
|
|
9385
|
+
var $includes = arrayIncludes.includes;
|
|
9386
|
+
var fails$1 = fails$z;
|
|
9387
|
+
var addToUnscopables$1 = addToUnscopables$4;
|
|
9388
|
+
|
|
9389
|
+
// FF99+ bug
|
|
9390
|
+
var BROKEN_ON_SPARSE = fails$1(function () {
|
|
9391
|
+
return !Array(1).includes();
|
|
9392
|
+
});
|
|
9393
|
+
|
|
9394
|
+
// `Array.prototype.includes` method
|
|
9395
|
+
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
9396
|
+
$$2({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
9397
|
+
includes: function includes(el /* , fromIndex = 0 */) {
|
|
9398
|
+
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
9399
|
+
}
|
|
9400
|
+
});
|
|
9401
|
+
|
|
9402
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
9403
|
+
addToUnscopables$1('includes');
|
|
9404
|
+
|
|
9381
9405
|
var es_array_findIndex = {};
|
|
9382
9406
|
|
|
9383
9407
|
'use strict';
|
|
9384
9408
|
var $$1 = _export;
|
|
9385
9409
|
var $findIndex = arrayIteration.findIndex;
|
|
9386
|
-
var addToUnscopables = addToUnscopables$
|
|
9410
|
+
var addToUnscopables = addToUnscopables$4;
|
|
9387
9411
|
|
|
9388
9412
|
var FIND_INDEX = 'findIndex';
|
|
9389
9413
|
var SKIPS_HOLES = true;
|
|
@@ -9473,7 +9497,7 @@
|
|
|
9473
9497
|
var lengthOfArrayLike = lengthOfArrayLike$a;
|
|
9474
9498
|
var deletePropertyOrThrow = deletePropertyOrThrow$2;
|
|
9475
9499
|
var toString = toString$e;
|
|
9476
|
-
var fails = fails$
|
|
9500
|
+
var fails = fails$z;
|
|
9477
9501
|
var internalSort = arraySort;
|
|
9478
9502
|
var arrayMethodIsStrict = arrayMethodIsStrict$4;
|
|
9479
9503
|
var FF = engineFfVersion;
|
|
@@ -9954,7 +9978,7 @@
|
|
|
9954
9978
|
this.setValue(o.value);
|
|
9955
9979
|
}
|
|
9956
9980
|
|
|
9957
|
-
this._scheduleSync();
|
|
9981
|
+
this._scheduleSync('full');
|
|
9958
9982
|
|
|
9959
9983
|
this.silenceEvents = false;
|
|
9960
9984
|
|
|
@@ -10159,7 +10183,7 @@
|
|
|
10159
10183
|
return this;
|
|
10160
10184
|
|
|
10161
10185
|
this._p.clearable = !!clearable;
|
|
10162
|
-
this._scheduleSync();
|
|
10186
|
+
this._scheduleSync('render_clear');
|
|
10163
10187
|
return this;
|
|
10164
10188
|
}
|
|
10165
10189
|
|
|
@@ -10181,7 +10205,7 @@
|
|
|
10181
10205
|
return this;
|
|
10182
10206
|
|
|
10183
10207
|
this._p.hasOpenIndicator = enabled;
|
|
10184
|
-
this._scheduleSync();
|
|
10208
|
+
this._scheduleSync('render_base');
|
|
10185
10209
|
return this;
|
|
10186
10210
|
}
|
|
10187
10211
|
|
|
@@ -10198,7 +10222,7 @@
|
|
|
10198
10222
|
*/ }, { key: "setPlaceholder", value:
|
|
10199
10223
|
function setPlaceholder(placeholder) {
|
|
10200
10224
|
this._p.placeholder = placeholder == null ? '' : String(placeholder);
|
|
10201
|
-
this._scheduleSync();
|
|
10225
|
+
this._scheduleSync('render_base');
|
|
10202
10226
|
return this;
|
|
10203
10227
|
}
|
|
10204
10228
|
|
|
@@ -10247,8 +10271,10 @@
|
|
|
10247
10271
|
|
|
10248
10272
|
function invokeRefilter() {
|
|
10249
10273
|
var p = this._p;
|
|
10250
|
-
if (!p.filterTerm && !p.filterOnEmptyTerm)
|
|
10274
|
+
if (!p.filterTerm && !p.filterOnEmptyTerm && !p.filteredItems)
|
|
10251
10275
|
return this;
|
|
10276
|
+
p.filteredItems = null;
|
|
10277
|
+
p.itemsChanged = true;
|
|
10252
10278
|
p.throttledUpdateListItems();
|
|
10253
10279
|
return this;
|
|
10254
10280
|
}
|
|
@@ -10264,7 +10290,7 @@
|
|
|
10264
10290
|
return this;
|
|
10265
10291
|
|
|
10266
10292
|
p.sortSelectedItems = sortSelectedItems;
|
|
10267
|
-
this._scheduleSync('
|
|
10293
|
+
this._scheduleSync('render_items');
|
|
10268
10294
|
return this;
|
|
10269
10295
|
}
|
|
10270
10296
|
|
|
@@ -10288,7 +10314,7 @@
|
|
|
10288
10314
|
p.sortListItems = sortListItems;
|
|
10289
10315
|
p.filteredItems = null;
|
|
10290
10316
|
p.itemsChanged = true;
|
|
10291
|
-
this._scheduleSync();
|
|
10317
|
+
this._scheduleSync('render_list');
|
|
10292
10318
|
return this;
|
|
10293
10319
|
}
|
|
10294
10320
|
|
|
@@ -10311,7 +10337,7 @@
|
|
|
10311
10337
|
|
|
10312
10338
|
p.sortCheckedFirst = sortListCheckedFirst;
|
|
10313
10339
|
p.itemsChanged = true;
|
|
10314
|
-
this._scheduleSync();
|
|
10340
|
+
this._scheduleSync('render_list');
|
|
10315
10341
|
return this;
|
|
10316
10342
|
}
|
|
10317
10343
|
|
|
@@ -10331,7 +10357,7 @@
|
|
|
10331
10357
|
|
|
10332
10358
|
p.stickyValues = Array.isArray(values) ? new Set(values) : null;
|
|
10333
10359
|
p.itemsChanged = true;
|
|
10334
|
-
this._scheduleSync();
|
|
10360
|
+
this._scheduleSync('render_list');
|
|
10335
10361
|
return this;
|
|
10336
10362
|
}
|
|
10337
10363
|
|
|
@@ -10353,7 +10379,7 @@
|
|
|
10353
10379
|
|
|
10354
10380
|
p.sortItemComparator = comparator;
|
|
10355
10381
|
p.itemsChanged = true;
|
|
10356
|
-
this._scheduleSync();
|
|
10382
|
+
this._scheduleSync('render_list');
|
|
10357
10383
|
return this;
|
|
10358
10384
|
}
|
|
10359
10385
|
|
|
@@ -10376,7 +10402,7 @@
|
|
|
10376
10402
|
|
|
10377
10403
|
p.treatGroupSelectionAsItems = treatGroupSelectionAsItems;
|
|
10378
10404
|
p.itemsChanged = true;
|
|
10379
|
-
this._scheduleSync();
|
|
10405
|
+
this._scheduleSync('render_list');
|
|
10380
10406
|
return this;
|
|
10381
10407
|
}
|
|
10382
10408
|
|
|
@@ -10399,7 +10425,7 @@
|
|
|
10399
10425
|
|
|
10400
10426
|
p.splitListCheckedGroups = splitListCheckedGroups;
|
|
10401
10427
|
p.itemsChanged = true;
|
|
10402
|
-
this._scheduleSync();
|
|
10428
|
+
this._scheduleSync('render_list');
|
|
10403
10429
|
return this;
|
|
10404
10430
|
}
|
|
10405
10431
|
|
|
@@ -10421,7 +10447,7 @@
|
|
|
10421
10447
|
return this;
|
|
10422
10448
|
|
|
10423
10449
|
p.showSelection = showSelection;
|
|
10424
|
-
this._scheduleSync('
|
|
10450
|
+
this._scheduleSync('render_items');
|
|
10425
10451
|
return this;
|
|
10426
10452
|
}
|
|
10427
10453
|
|
|
@@ -10443,7 +10469,7 @@
|
|
|
10443
10469
|
return this;
|
|
10444
10470
|
|
|
10445
10471
|
p.showPlaceholderInTooltip = showPlaceholderInTooltip;
|
|
10446
|
-
this._scheduleSync('
|
|
10472
|
+
this._scheduleSync('render_base');
|
|
10447
10473
|
return this;
|
|
10448
10474
|
}
|
|
10449
10475
|
|
|
@@ -10465,7 +10491,7 @@
|
|
|
10465
10491
|
return this;
|
|
10466
10492
|
|
|
10467
10493
|
p.multiPlaceholderFormatter = formatter;
|
|
10468
|
-
this._scheduleSync('
|
|
10494
|
+
this._scheduleSync('render_base');
|
|
10469
10495
|
return this;
|
|
10470
10496
|
}
|
|
10471
10497
|
|
|
@@ -10548,7 +10574,7 @@
|
|
|
10548
10574
|
*/ }, { key: "setNoResultsText", value:
|
|
10549
10575
|
function setNoResultsText(noResultsText) {
|
|
10550
10576
|
this._p.noResultsText = noResultsText;
|
|
10551
|
-
this._scheduleSync('
|
|
10577
|
+
this._scheduleSync('render_list');
|
|
10552
10578
|
return this;
|
|
10553
10579
|
}
|
|
10554
10580
|
|
|
@@ -11367,7 +11393,7 @@
|
|
|
11367
11393
|
|
|
11368
11394
|
if (!p.multi) {
|
|
11369
11395
|
_this5._setInputText('');
|
|
11370
|
-
_this5._scheduleSync();
|
|
11396
|
+
_this5._scheduleSync('render_base');
|
|
11371
11397
|
}
|
|
11372
11398
|
|
|
11373
11399
|
_this5._trigger('close');
|
|
@@ -11429,7 +11455,7 @@
|
|
|
11429
11455
|
}
|
|
11430
11456
|
|
|
11431
11457
|
if (!hasGroupSync)
|
|
11432
|
-
_this5._scheduleSync();
|
|
11458
|
+
_this5._scheduleSync('render_base');
|
|
11433
11459
|
}
|
|
11434
11460
|
} else {
|
|
11435
11461
|
if (p.maxMultiItems != null &&
|
|
@@ -11440,7 +11466,7 @@
|
|
|
11440
11466
|
}
|
|
11441
11467
|
|
|
11442
11468
|
if (!hasGroupSync)
|
|
11443
|
-
_this5._scheduleSync();
|
|
11469
|
+
_this5._scheduleSync('render_base');
|
|
11444
11470
|
}
|
|
11445
11471
|
}
|
|
11446
11472
|
|
|
@@ -11452,7 +11478,7 @@
|
|
|
11452
11478
|
if (!p.multi) return;
|
|
11453
11479
|
|
|
11454
11480
|
if (event.affectedItems) {
|
|
11455
|
-
_this5._scheduleSync(p.sortSelectedItems ? 'full' :
|
|
11481
|
+
_this5._scheduleSync(p.sortSelectedItems ? 'full' : 'render_base');
|
|
11456
11482
|
}
|
|
11457
11483
|
}
|
|
11458
11484
|
break;
|
|
@@ -11978,10 +12004,11 @@
|
|
|
11978
12004
|
if (!p.syncQueue)
|
|
11979
12005
|
p.syncQueue = [];
|
|
11980
12006
|
|
|
11981
|
-
if (mode === 'full')
|
|
12007
|
+
if (mode === 'full' || 'render_items' === mode && !p.syncQueue.some(function (x) {return x.mode === 'full';}))
|
|
11982
12008
|
p.syncQueue.length = 0;
|
|
11983
12009
|
|
|
11984
|
-
if (p.syncQueue.length === 0 ||
|
|
12010
|
+
if (p.syncQueue.length === 0 ||
|
|
12011
|
+
!['full', 'render_items'].includes(mode))
|
|
11985
12012
|
p.syncQueue.push({ mode: mode, data: data });
|
|
11986
12013
|
|
|
11987
12014
|
if (p.syncTimeout)
|
|
@@ -12005,7 +12032,24 @@
|
|
|
12005
12032
|
queue),_step4;try {for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {var op = _step4.value;
|
|
12006
12033
|
switch (op.mode) {
|
|
12007
12034
|
case 'full':
|
|
12008
|
-
this._syncFull(true);
|
|
12035
|
+
this._syncFull(true, true);
|
|
12036
|
+
break;
|
|
12037
|
+
|
|
12038
|
+
case 'render_base':
|
|
12039
|
+
this._syncFull(false, false);
|
|
12040
|
+
break;
|
|
12041
|
+
|
|
12042
|
+
case 'render_items':
|
|
12043
|
+
this._syncFull(true, false);
|
|
12044
|
+
break;
|
|
12045
|
+
|
|
12046
|
+
case 'render_list':
|
|
12047
|
+
this._syncFull(false, true);
|
|
12048
|
+
break;
|
|
12049
|
+
|
|
12050
|
+
case 'render_clear':
|
|
12051
|
+
this._syncClearButton();
|
|
12052
|
+
this._resizeInput();
|
|
12009
12053
|
break;
|
|
12010
12054
|
|
|
12011
12055
|
case 'singleItem':
|
|
@@ -12061,10 +12105,6 @@
|
|
|
12061
12105
|
case 'resize_input':{
|
|
12062
12106
|
this._resizeInput();
|
|
12063
12107
|
}
|
|
12064
|
-
break;
|
|
12065
|
-
|
|
12066
|
-
default:
|
|
12067
|
-
this._syncFull(false);
|
|
12068
12108
|
break;}
|
|
12069
12109
|
|
|
12070
12110
|
}} catch (err) {_iterator4.e(err);} finally {_iterator4.f();}
|
|
@@ -12275,9 +12315,10 @@
|
|
|
12275
12315
|
/**
|
|
12276
12316
|
* Syncs render state, selected items, and position
|
|
12277
12317
|
* @param {boolean=false} fullItemsRender Should re-render all items?
|
|
12318
|
+
* @param {boolean=false} updateListItems Should call updateListItems?
|
|
12278
12319
|
* @returns {SelectBox}
|
|
12279
12320
|
*/ }, { key: "_syncFull", value:
|
|
12280
|
-
function _syncFull(fullItemsRender) {
|
|
12321
|
+
function _syncFull(fullItemsRender, updateListItems) {
|
|
12281
12322
|
var p = this._p,
|
|
12282
12323
|
multiItemLabelProp = p.multiItemLabelProp;
|
|
12283
12324
|
|
|
@@ -12370,8 +12411,9 @@
|
|
|
12370
12411
|
// Update input size
|
|
12371
12412
|
this._resizeInput();
|
|
12372
12413
|
|
|
12373
|
-
|
|
12374
|
-
|
|
12414
|
+
if (updateListItems) {
|
|
12415
|
+
this._updateListItems();
|
|
12416
|
+
}
|
|
12375
12417
|
|
|
12376
12418
|
return this;
|
|
12377
12419
|
}
|
|
@@ -12462,6 +12504,7 @@
|
|
|
12462
12504
|
}} catch (err) {_iterator5.e(err);} finally {_iterator5.f();}
|
|
12463
12505
|
|
|
12464
12506
|
if (itemsToRemove.length > 0) {
|
|
12507
|
+
// remove the "rest" element, we'll add that back later if necessary
|
|
12465
12508
|
this._removeMultiItemElementByIndex(p.multiItemEls.length - 1);var _iterator6 = _createForOfIteratorHelper(
|
|
12466
12509
|
|
|
12467
12510
|
itemsToRemove),_step6;try {for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {var _item2 = _step6.value;
|
|
@@ -12478,12 +12521,13 @@
|
|
|
12478
12521
|
}} catch (err) {_iterator6.e(err);} finally {_iterator6.f();}
|
|
12479
12522
|
}
|
|
12480
12523
|
|
|
12524
|
+
// we have not removed the whole "rest", then add the "rest" element back
|
|
12481
12525
|
if (items.length > itemsToRemove.length) {
|
|
12482
12526
|
this._addMultiItemRestElement();
|
|
12483
12527
|
}
|
|
12484
12528
|
|
|
12485
12529
|
if (itemsToRemove.length > 0) {
|
|
12486
|
-
this._scheduleSync();
|
|
12530
|
+
this._scheduleSync('render_list');
|
|
12487
12531
|
}
|
|
12488
12532
|
} else {
|
|
12489
12533
|
var _removeselEvt = { value: value, item: item, cancel: false };
|
|
@@ -12551,7 +12595,7 @@
|
|
|
12551
12595
|
}
|
|
12552
12596
|
|
|
12553
12597
|
// sync
|
|
12554
|
-
this._scheduleSync();
|
|
12598
|
+
this._scheduleSync('render_list');
|
|
12555
12599
|
}
|
|
12556
12600
|
|
|
12557
12601
|
/**
|