@coreui/coreui 2.1.10 → 2.1.16

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.
Files changed (61) hide show
  1. package/CHANGELOG.md +395 -313
  2. package/README.md +150 -147
  3. package/dist/css/bootstrap.css.map +1 -1
  4. package/dist/css/coreui-standalone.css +138 -2
  5. package/dist/css/coreui-standalone.css.map +1 -1
  6. package/dist/css/coreui-standalone.min.css +2 -2
  7. package/dist/css/coreui-standalone.min.css.map +1 -1
  8. package/dist/css/coreui.css +138 -2
  9. package/dist/css/coreui.css.map +1 -1
  10. package/dist/css/coreui.min.css +2 -2
  11. package/dist/css/coreui.min.css.map +1 -1
  12. package/dist/js/coreui-utilities.js +205 -122
  13. package/dist/js/coreui-utilities.js.map +1 -1
  14. package/dist/js/coreui-utilities.min.js +2 -2
  15. package/dist/js/coreui-utilities.min.js.map +1 -1
  16. package/dist/js/coreui.js +295 -166
  17. package/dist/js/coreui.js.map +1 -1
  18. package/dist/js/coreui.min.js +2 -2
  19. package/dist/js/coreui.min.js.map +1 -1
  20. package/js/dist/ajax-load.js +9 -3
  21. package/js/dist/ajax-load.js.map +1 -1
  22. package/js/dist/aside-menu.js +9 -3
  23. package/js/dist/aside-menu.js.map +1 -1
  24. package/js/dist/index.js +1 -1
  25. package/js/dist/index.js.map +1 -1
  26. package/js/dist/sidebar.js +25 -7
  27. package/js/dist/sidebar.js.map +1 -1
  28. package/js/dist/toggle-classes.js +1 -1
  29. package/js/dist/toggle-classes.js.map +1 -1
  30. package/js/dist/utilities/get-color.js +1 -1
  31. package/js/dist/utilities/get-color.js.map +1 -1
  32. package/js/dist/utilities/get-css-custom-properties.js +1 -1
  33. package/js/dist/utilities/get-css-custom-properties.js.map +1 -1
  34. package/js/dist/utilities/get-style.js +1 -1
  35. package/js/dist/utilities/get-style.js.map +1 -1
  36. package/js/dist/utilities/hex-to-rgb.js +1 -1
  37. package/js/dist/utilities/hex-to-rgb.js.map +1 -1
  38. package/js/dist/utilities/hex-to-rgba.js +1 -1
  39. package/js/dist/utilities/hex-to-rgba.js.map +1 -1
  40. package/js/dist/utilities/rgb-to-hex.js +1 -1
  41. package/js/dist/utilities/rgb-to-hex.js.map +1 -1
  42. package/js/src/ajax-load.js +7 -2
  43. package/js/src/aside-menu.js +8 -3
  44. package/js/src/index.js +1 -1
  45. package/js/src/sidebar.js +27 -6
  46. package/js/src/toggle-classes.js +1 -1
  47. package/js/src/utilities/classes.js +1 -1
  48. package/js/src/utilities/get-color.js +1 -1
  49. package/js/src/utilities/get-css-custom-properties.js +1 -1
  50. package/js/src/utilities/get-style.js +1 -1
  51. package/js/src/utilities/hex-to-rgb.js +1 -1
  52. package/js/src/utilities/hex-to-rgba.js +1 -1
  53. package/js/src/utilities/rgb-to-hex.js +1 -1
  54. package/package.json +30 -30
  55. package/scss/_header.scss +1 -1
  56. package/scss/_layout.scss +24 -8
  57. package/scss/_navbar.scss +1 -1
  58. package/scss/_sidebar.scss +18 -2
  59. package/scss/_variables.scss +4 -0
  60. package/scss/coreui-standalone.scss +1 -1
  61. package/scss/coreui.scss +1 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * CoreUI v2.1.10 (https://coreui.io)
2
+ * CoreUI v2.1.16 (https://coreui.io)
3
3
  * Copyright 2019 Łukasz Holeczek
4
4
  * Licensed under MIT (https://coreui.io)
5
5
  */
@@ -7,11 +7,11 @@
7
7
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
8
8
  typeof define === 'function' && define.amd ? define(['exports'], factory) :
9
9
  (global = global || self, factory(global.utilities = {}));
10
- }(this, function (exports) { 'use strict';
10
+ }(this, (function (exports) { 'use strict';
11
11
 
12
12
  /**
13
13
  * --------------------------------------------------------------------------
14
- * CoreUI Utilities (v2.1.10): classes.js
14
+ * CoreUI Utilities (v2.1.16): classes.js
15
15
  * Licensed under MIT (https://coreui.io/license)
16
16
  * --------------------------------------------------------------------------
17
17
  */
@@ -28,7 +28,6 @@
28
28
  return module = { exports: {} }, fn(module, module.exports), module.exports;
29
29
  }
30
30
 
31
- var O = 'object';
32
31
  var check = function (it) {
33
32
  return it && it.Math == Math && it;
34
33
  };
@@ -36,10 +35,10 @@
36
35
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
37
36
  var global_1 =
38
37
  // eslint-disable-next-line no-undef
39
- check(typeof globalThis == O && globalThis) ||
40
- check(typeof window == O && window) ||
41
- check(typeof self == O && self) ||
42
- check(typeof commonjsGlobal == O && commonjsGlobal) ||
38
+ check(typeof globalThis == 'object' && globalThis) ||
39
+ check(typeof window == 'object' && window) ||
40
+ check(typeof self == 'object' && self) ||
41
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
43
42
  // eslint-disable-next-line no-new-func
44
43
  Function('return this')();
45
44
 
@@ -62,6 +61,8 @@
62
61
  // Nashorn ~ JDK8 bug
63
62
  var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
64
63
 
64
+ // `Object.prototype.propertyIsEnumerable` method implementation
65
+ // https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable
65
66
  var f = NASHORN_BUG ? function propertyIsEnumerable(V) {
66
67
  var descriptor = getOwnPropertyDescriptor(this, V);
67
68
  return !!descriptor && descriptor.enumerable;
@@ -86,12 +87,9 @@
86
87
  return toString.call(it).slice(8, -1);
87
88
  };
88
89
 
89
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
90
-
91
-
92
-
93
90
  var split = ''.split;
94
91
 
92
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
95
93
  var indexedObject = fails(function () {
96
94
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
97
95
  // eslint-disable-next-line no-prototype-builtins
@@ -119,15 +117,16 @@
119
117
  return typeof it === 'object' ? it !== null : typeof it === 'function';
120
118
  };
121
119
 
122
- // 7.1.1 ToPrimitive(input [, PreferredType])
120
+ // `ToPrimitive` abstract operation
121
+ // https://tc39.github.io/ecma262/#sec-toprimitive
123
122
  // instead of the ES6 spec version, we didn't implement @@toPrimitive case
124
123
  // and the second argument - flag - preferred type is a string
125
- var toPrimitive = function (it, S) {
126
- if (!isObject(it)) return it;
124
+ var toPrimitive = function (input, PREFERRED_STRING) {
125
+ if (!isObject(input)) return input;
127
126
  var fn, val;
128
- if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
129
- if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
130
- if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
127
+ if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
128
+ if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;
129
+ if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
131
130
  throw TypeError("Can't convert object to primitive value");
132
131
  };
133
132
 
@@ -139,10 +138,10 @@
139
138
 
140
139
  var document$1 = global_1.document;
141
140
  // typeof document.createElement is 'object' in old IE
142
- var exist = isObject(document$1) && isObject(document$1.createElement);
141
+ var EXISTS = isObject(document$1) && isObject(document$1.createElement);
143
142
 
144
143
  var documentCreateElement = function (it) {
145
- return exist ? document$1.createElement(it) : {};
144
+ return EXISTS ? document$1.createElement(it) : {};
146
145
  };
147
146
 
148
147
  // Thank's IE8 for his funny defineProperty
@@ -154,6 +153,8 @@
154
153
 
155
154
  var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
156
155
 
156
+ // `Object.getOwnPropertyDescriptor` method
157
+ // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor
157
158
  var f$1 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
158
159
  O = toIndexedObject(O);
159
160
  P = toPrimitive(P, true);
@@ -175,6 +176,8 @@
175
176
 
176
177
  var nativeDefineProperty = Object.defineProperty;
177
178
 
179
+ // `Object.defineProperty` method
180
+ // https://tc39.github.io/ecma262/#sec-object.defineproperty
178
181
  var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
179
182
  anObject(O);
180
183
  P = toPrimitive(P, true);
@@ -191,7 +194,7 @@
191
194
  f: f$2
192
195
  };
193
196
 
194
- var hide = descriptors ? function (object, key, value) {
197
+ var createNonEnumerableProperty = descriptors ? function (object, key, value) {
195
198
  return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));
196
199
  } : function (object, key, value) {
197
200
  object[key] = value;
@@ -200,21 +203,23 @@
200
203
 
201
204
  var setGlobal = function (key, value) {
202
205
  try {
203
- hide(global_1, key, value);
206
+ createNonEnumerableProperty(global_1, key, value);
204
207
  } catch (error) {
205
208
  global_1[key] = value;
206
209
  } return value;
207
210
  };
208
211
 
209
- var shared = createCommonjsModule(function (module) {
210
212
  var SHARED = '__core-js_shared__';
211
213
  var store = global_1[SHARED] || setGlobal(SHARED, {});
212
214
 
215
+ var sharedStore = store;
216
+
217
+ var shared = createCommonjsModule(function (module) {
213
218
  (module.exports = function (key, value) {
214
- return store[key] || (store[key] = value !== undefined ? value : {});
219
+ return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
215
220
  })('versions', []).push({
216
- version: '3.1.3',
217
- mode: 'global',
221
+ version: '3.3.4',
222
+ mode: 'global',
218
223
  copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
219
224
  });
220
225
  });
@@ -229,7 +234,7 @@
229
234
  var postfix = Math.random();
230
235
 
231
236
  var uid = function (key) {
232
- return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + postfix).toString(36));
237
+ return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
233
238
  };
234
239
 
235
240
  var keys = shared('keys');
@@ -257,25 +262,25 @@
257
262
  };
258
263
 
259
264
  if (nativeWeakMap) {
260
- var store = new WeakMap$1();
261
- var wmget = store.get;
262
- var wmhas = store.has;
263
- var wmset = store.set;
265
+ var store$1 = new WeakMap$1();
266
+ var wmget = store$1.get;
267
+ var wmhas = store$1.has;
268
+ var wmset = store$1.set;
264
269
  set = function (it, metadata) {
265
- wmset.call(store, it, metadata);
270
+ wmset.call(store$1, it, metadata);
266
271
  return metadata;
267
272
  };
268
273
  get = function (it) {
269
- return wmget.call(store, it) || {};
274
+ return wmget.call(store$1, it) || {};
270
275
  };
271
276
  has$1 = function (it) {
272
- return wmhas.call(store, it);
277
+ return wmhas.call(store$1, it);
273
278
  };
274
279
  } else {
275
280
  var STATE = sharedKey('state');
276
281
  hiddenKeys[STATE] = true;
277
282
  set = function (it, metadata) {
278
- hide(it, STATE, metadata);
283
+ createNonEnumerableProperty(it, STATE, metadata);
279
284
  return metadata;
280
285
  };
281
286
  get = function (it) {
@@ -308,7 +313,7 @@
308
313
  var simple = options ? !!options.enumerable : false;
309
314
  var noTargetGet = options ? !!options.noTargetGet : false;
310
315
  if (typeof value == 'function') {
311
- if (typeof key == 'string' && !has(value, 'name')) hide(value, 'name', key);
316
+ if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key);
312
317
  enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');
313
318
  }
314
319
  if (O === global_1) {
@@ -321,13 +326,24 @@
321
326
  simple = true;
322
327
  }
323
328
  if (simple) O[key] = value;
324
- else hide(O, key, value);
329
+ else createNonEnumerableProperty(O, key, value);
325
330
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
326
331
  })(Function.prototype, 'toString', function toString() {
327
332
  return typeof this == 'function' && getInternalState(this).source || functionToString.call(this);
328
333
  });
329
334
  });
330
335
 
336
+ var path = global_1;
337
+
338
+ var aFunction = function (variable) {
339
+ return typeof variable == 'function' ? variable : undefined;
340
+ };
341
+
342
+ var getBuiltIn = function (namespace, method) {
343
+ return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global_1[namespace])
344
+ : path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];
345
+ };
346
+
331
347
  var ceil = Math.ceil;
332
348
  var floor = Math.floor;
333
349
 
@@ -357,11 +373,7 @@
357
373
  };
358
374
 
359
375
  // `Array.prototype.{ indexOf, includes }` methods implementation
360
- // false -> Array#indexOf
361
- // https://tc39.github.io/ecma262/#sec-array.prototype.indexof
362
- // true -> Array#includes
363
- // https://tc39.github.io/ecma262/#sec-array.prototype.includes
364
- var arrayIncludes = function (IS_INCLUDES) {
376
+ var createMethod = function (IS_INCLUDES) {
365
377
  return function ($this, el, fromIndex) {
366
378
  var O = toIndexedObject($this);
367
379
  var length = toLength(O.length);
@@ -374,13 +386,23 @@
374
386
  // eslint-disable-next-line no-self-compare
375
387
  if (value != value) return true;
376
388
  // Array#indexOf ignores holes, Array#includes - not
377
- } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
378
- if (O[index] === el) return IS_INCLUDES || index || 0;
389
+ } else for (;length > index; index++) {
390
+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
379
391
  } return !IS_INCLUDES && -1;
380
392
  };
381
393
  };
382
394
 
383
- var arrayIndexOf = arrayIncludes(false);
395
+ var arrayIncludes = {
396
+ // `Array.prototype.includes` method
397
+ // https://tc39.github.io/ecma262/#sec-array.prototype.includes
398
+ includes: createMethod(true),
399
+ // `Array.prototype.indexOf` method
400
+ // https://tc39.github.io/ecma262/#sec-array.prototype.indexof
401
+ indexOf: createMethod(false)
402
+ };
403
+
404
+ var indexOf = arrayIncludes.indexOf;
405
+
384
406
 
385
407
  var objectKeysInternal = function (object, names) {
386
408
  var O = toIndexedObject(object);
@@ -390,7 +412,7 @@
390
412
  for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);
391
413
  // Don't enum bug & hidden keys
392
414
  while (names.length > i) if (has(O, key = names[i++])) {
393
- ~arrayIndexOf(result, key) || result.push(key);
415
+ ~indexOf(result, key) || result.push(key);
394
416
  }
395
417
  return result;
396
418
  };
@@ -406,12 +428,10 @@
406
428
  'valueOf'
407
429
  ];
408
430
 
409
- // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
410
-
411
-
412
-
413
431
  var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
414
432
 
433
+ // `Object.getOwnPropertyNames` method
434
+ // https://tc39.github.io/ecma262/#sec-object.getownpropertynames
415
435
  var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
416
436
  return objectKeysInternal(O, hiddenKeys$1);
417
437
  };
@@ -426,10 +446,8 @@
426
446
  f: f$4
427
447
  };
428
448
 
429
- var Reflect = global_1.Reflect;
430
-
431
449
  // all object keys, includes non-enumerable and symbols
432
- var ownKeys = Reflect && Reflect.ownKeys || function ownKeys(it) {
450
+ var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
433
451
  var keys = objectGetOwnPropertyNames.f(anObject(it));
434
452
  var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
435
453
  return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
@@ -512,14 +530,15 @@
512
530
  }
513
531
  // add a flag to not completely full polyfills
514
532
  if (options.sham || (targetProperty && targetProperty.sham)) {
515
- hide(sourceProperty, 'sham', true);
533
+ createNonEnumerableProperty(sourceProperty, 'sham', true);
516
534
  }
517
535
  // extend global
518
536
  redefine(target, key, sourceProperty, options);
519
537
  }
520
538
  };
521
539
 
522
- // 19.1.2.14 / 15.2.3.14 Object.keys(O)
540
+ // `Object.keys` method
541
+ // https://tc39.github.io/ecma262/#sec-object.keys
523
542
  var objectKeys = Object.keys || function keys(O) {
524
543
  return objectKeysInternal(O, enumBugKeys);
525
544
  };
@@ -532,7 +551,8 @@
532
551
 
533
552
  var nativeAssign = Object.assign;
534
553
 
535
- // 19.1.2.1 Object.assign(target, source, ...)
554
+ // `Object.assign` method
555
+ // https://tc39.github.io/ecma262/#sec-object.assign
536
556
  // should work with symbols and should have deterministic property order (V8 bug)
537
557
  var objectAssign = !nativeAssign || fails(function () {
538
558
  var A = {};
@@ -600,10 +620,10 @@
600
620
  });
601
621
 
602
622
  var Symbol$1 = global_1.Symbol;
603
- var store$1 = shared('wks');
623
+ var store$2 = shared('wks');
604
624
 
605
625
  var wellKnownSymbol = function (name) {
606
- return store$1[name] || (store$1[name] = nativeSymbol && Symbol$1[name]
626
+ return store$2[name] || (store$2[name] = nativeSymbol && Symbol$1[name]
607
627
  || (nativeSymbol ? Symbol$1 : uid)('Symbol.' + name));
608
628
  };
609
629
 
@@ -615,6 +635,7 @@
615
635
  if (that.global) result += 'g';
616
636
  if (that.ignoreCase) result += 'i';
617
637
  if (that.multiline) result += 'm';
638
+ if (that.dotAll) result += 's';
618
639
  if (that.unicode) result += 'u';
619
640
  if (that.sticky) result += 'y';
620
641
  return result;
@@ -711,15 +732,22 @@
711
732
  // Symbol-named RegExp methods call .exec
712
733
  var execCalled = false;
713
734
  var re = /a/;
714
- re.exec = function () { execCalled = true; return null; };
715
735
 
716
736
  if (KEY === 'split') {
737
+ // We can't use real regex here since it causes deoptimization
738
+ // and serious performance degradation in V8
739
+ // https://github.com/zloirock/core-js/issues/306
740
+ re = {};
717
741
  // RegExp[@@split] doesn't call the regex's exec method, but first creates
718
742
  // a new one. We need to return the patched regex when creating the new one.
719
743
  re.constructor = {};
720
744
  re.constructor[SPECIES] = function () { return re; };
745
+ re.flags = '';
746
+ re[SYMBOL] = /./[SYMBOL];
721
747
  }
722
748
 
749
+ re.exec = function () { execCalled = true; return null; };
750
+
723
751
  re[SYMBOL]('');
724
752
  return !execCalled;
725
753
  });
@@ -755,29 +783,41 @@
755
783
  // 21.2.5.9 RegExp.prototype[@@search](string)
756
784
  : function (string) { return regexMethod.call(string, this); }
757
785
  );
758
- if (sham) hide(RegExp.prototype[SYMBOL], 'sham', true);
786
+ if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true);
759
787
  }
760
788
  };
761
789
 
762
- // CONVERT_TO_STRING: true -> String#at
763
- // CONVERT_TO_STRING: false -> String#codePointAt
764
- var stringAt = function (that, pos, CONVERT_TO_STRING) {
765
- var S = String(requireObjectCoercible(that));
766
- var position = toInteger(pos);
767
- var size = S.length;
768
- var first, second;
769
- if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
770
- first = S.charCodeAt(position);
771
- return first < 0xD800 || first > 0xDBFF || position + 1 === size
772
- || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
773
- ? CONVERT_TO_STRING ? S.charAt(position) : first
774
- : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
790
+ // `String.prototype.{ codePointAt, at }` methods implementation
791
+ var createMethod$1 = function (CONVERT_TO_STRING) {
792
+ return function ($this, pos) {
793
+ var S = String(requireObjectCoercible($this));
794
+ var position = toInteger(pos);
795
+ var size = S.length;
796
+ var first, second;
797
+ if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
798
+ first = S.charCodeAt(position);
799
+ return first < 0xD800 || first > 0xDBFF || position + 1 === size
800
+ || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
801
+ ? CONVERT_TO_STRING ? S.charAt(position) : first
802
+ : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
803
+ };
804
+ };
805
+
806
+ var stringMultibyte = {
807
+ // `String.prototype.codePointAt` method
808
+ // https://tc39.github.io/ecma262/#sec-string.prototype.codepointat
809
+ codeAt: createMethod$1(false),
810
+ // `String.prototype.at` method
811
+ // https://github.com/mathiasbynens/String.prototype.at
812
+ charAt: createMethod$1(true)
775
813
  };
776
814
 
815
+ var charAt = stringMultibyte.charAt;
816
+
777
817
  // `AdvanceStringIndex` abstract operation
778
818
  // https://tc39.github.io/ecma262/#sec-advancestringindex
779
819
  var advanceStringIndex = function (S, index, unicode) {
780
- return index + (unicode ? stringAt(S, index, true).length : 1);
820
+ return index + (unicode ? charAt(S, index).length : 1);
781
821
  };
782
822
 
783
823
  // `RegExpExec` abstract operation
@@ -962,7 +1002,7 @@
962
1002
  return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classofRaw(it) == 'RegExp');
963
1003
  };
964
1004
 
965
- var aFunction = function (it) {
1005
+ var aFunction$1 = function (it) {
966
1006
  if (typeof it != 'function') {
967
1007
  throw TypeError(String(it) + ' is not a function');
968
1008
  } return it;
@@ -975,7 +1015,7 @@
975
1015
  var speciesConstructor = function (O, defaultConstructor) {
976
1016
  var C = anObject(O).constructor;
977
1017
  var S;
978
- return C === undefined || (S = anObject(C)[SPECIES$1]) == undefined ? defaultConstructor : aFunction(S);
1018
+ return C === undefined || (S = anObject(C)[SPECIES$1]) == undefined ? defaultConstructor : aFunction$1(S);
979
1019
  };
980
1020
 
981
1021
  var arrayPush = [].push;
@@ -1109,14 +1149,26 @@
1109
1149
  var ltrim = RegExp('^' + whitespace + whitespace + '*');
1110
1150
  var rtrim = RegExp(whitespace + whitespace + '*$');
1111
1151
 
1112
- // 1 -> String#trimStart
1113
- // 2 -> String#trimEnd
1114
- // 3 -> String#trim
1115
- var stringTrim = function (string, TYPE) {
1116
- string = String(requireObjectCoercible(string));
1117
- if (TYPE & 1) string = string.replace(ltrim, '');
1118
- if (TYPE & 2) string = string.replace(rtrim, '');
1119
- return string;
1152
+ // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
1153
+ var createMethod$2 = function (TYPE) {
1154
+ return function ($this) {
1155
+ var string = String(requireObjectCoercible($this));
1156
+ if (TYPE & 1) string = string.replace(ltrim, '');
1157
+ if (TYPE & 2) string = string.replace(rtrim, '');
1158
+ return string;
1159
+ };
1160
+ };
1161
+
1162
+ var stringTrim = {
1163
+ // `String.prototype.{ trimLeft, trimStart }` methods
1164
+ // https://tc39.github.io/ecma262/#sec-string.prototype.trimstart
1165
+ start: createMethod$2(1),
1166
+ // `String.prototype.{ trimRight, trimEnd }` methods
1167
+ // https://tc39.github.io/ecma262/#sec-string.prototype.trimend
1168
+ end: createMethod$2(2),
1169
+ // `String.prototype.trim` method
1170
+ // https://tc39.github.io/ecma262/#sec-string.prototype.trim
1171
+ trim: createMethod$2(3)
1120
1172
  };
1121
1173
 
1122
1174
  var non = '\u200B\u0085\u180E';
@@ -1129,13 +1181,14 @@
1129
1181
  });
1130
1182
  };
1131
1183
 
1132
- var FORCED = forcedStringTrimMethod('trim');
1184
+ var $trim = stringTrim.trim;
1185
+
1133
1186
 
1134
1187
  // `String.prototype.trim` method
1135
1188
  // https://tc39.github.io/ecma262/#sec-string.prototype.trim
1136
- _export({ target: 'String', proto: true, forced: FORCED }, {
1189
+ _export({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
1137
1190
  trim: function trim() {
1138
- return stringTrim(this, 3);
1191
+ return $trim(this);
1139
1192
  }
1140
1193
  });
1141
1194
 
@@ -1177,7 +1230,7 @@
1177
1230
 
1178
1231
  // optional / simple context binding
1179
1232
  var bindContext = function (fn, that, length) {
1180
- aFunction(fn);
1233
+ aFunction$1(fn);
1181
1234
  if (that === undefined) return fn;
1182
1235
  switch (length) {
1183
1236
  case 0: return function () {
@@ -1221,35 +1274,23 @@
1221
1274
  } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
1222
1275
  };
1223
1276
 
1277
+ var push = [].push;
1278
+
1224
1279
  // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation
1225
- // 0 -> Array#forEach
1226
- // https://tc39.github.io/ecma262/#sec-array.prototype.foreach
1227
- // 1 -> Array#map
1228
- // https://tc39.github.io/ecma262/#sec-array.prototype.map
1229
- // 2 -> Array#filter
1230
- // https://tc39.github.io/ecma262/#sec-array.prototype.filter
1231
- // 3 -> Array#some
1232
- // https://tc39.github.io/ecma262/#sec-array.prototype.some
1233
- // 4 -> Array#every
1234
- // https://tc39.github.io/ecma262/#sec-array.prototype.every
1235
- // 5 -> Array#find
1236
- // https://tc39.github.io/ecma262/#sec-array.prototype.find
1237
- // 6 -> Array#findIndex
1238
- // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex
1239
- var arrayMethods = function (TYPE, specificCreate) {
1280
+ var createMethod$3 = function (TYPE) {
1240
1281
  var IS_MAP = TYPE == 1;
1241
1282
  var IS_FILTER = TYPE == 2;
1242
1283
  var IS_SOME = TYPE == 3;
1243
1284
  var IS_EVERY = TYPE == 4;
1244
1285
  var IS_FIND_INDEX = TYPE == 6;
1245
1286
  var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
1246
- var create = specificCreate || arraySpeciesCreate;
1247
- return function ($this, callbackfn, that) {
1287
+ return function ($this, callbackfn, that, specificCreate) {
1248
1288
  var O = toObject($this);
1249
1289
  var self = indexedObject(O);
1250
1290
  var boundFunction = bindContext(callbackfn, that, 3);
1251
1291
  var length = toLength(self.length);
1252
1292
  var index = 0;
1293
+ var create = specificCreate || arraySpeciesCreate;
1253
1294
  var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
1254
1295
  var value, result;
1255
1296
  for (;length > index; index++) if (NO_HOLES || index in self) {
@@ -1261,7 +1302,7 @@
1261
1302
  case 3: return true; // some
1262
1303
  case 5: return value; // find
1263
1304
  case 6: return index; // findIndex
1264
- case 2: target.push(value); // filter
1305
+ case 2: push.call(target, value); // filter
1265
1306
  } else if (IS_EVERY) return false; // every
1266
1307
  }
1267
1308
  }
@@ -1269,6 +1310,30 @@
1269
1310
  };
1270
1311
  };
1271
1312
 
1313
+ var arrayIteration = {
1314
+ // `Array.prototype.forEach` method
1315
+ // https://tc39.github.io/ecma262/#sec-array.prototype.foreach
1316
+ forEach: createMethod$3(0),
1317
+ // `Array.prototype.map` method
1318
+ // https://tc39.github.io/ecma262/#sec-array.prototype.map
1319
+ map: createMethod$3(1),
1320
+ // `Array.prototype.filter` method
1321
+ // https://tc39.github.io/ecma262/#sec-array.prototype.filter
1322
+ filter: createMethod$3(2),
1323
+ // `Array.prototype.some` method
1324
+ // https://tc39.github.io/ecma262/#sec-array.prototype.some
1325
+ some: createMethod$3(3),
1326
+ // `Array.prototype.every` method
1327
+ // https://tc39.github.io/ecma262/#sec-array.prototype.every
1328
+ every: createMethod$3(4),
1329
+ // `Array.prototype.find` method
1330
+ // https://tc39.github.io/ecma262/#sec-array.prototype.find
1331
+ find: createMethod$3(5),
1332
+ // `Array.prototype.findIndex` method
1333
+ // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex
1334
+ findIndex: createMethod$3(6)
1335
+ };
1336
+
1272
1337
  var sloppyArrayMethod = function (METHOD_NAME, argument) {
1273
1338
  var method = [][METHOD_NAME];
1274
1339
  return !method || !fails(function () {
@@ -1277,13 +1342,13 @@
1277
1342
  });
1278
1343
  };
1279
1344
 
1280
- var internalForEach = arrayMethods(0);
1281
- var SLOPPY_METHOD = sloppyArrayMethod('forEach');
1345
+ var $forEach = arrayIteration.forEach;
1346
+
1282
1347
 
1283
1348
  // `Array.prototype.forEach` method implementation
1284
1349
  // https://tc39.github.io/ecma262/#sec-array.prototype.foreach
1285
- var arrayForEach = SLOPPY_METHOD ? function forEach(callbackfn /* , thisArg */) {
1286
- return internalForEach(this, callbackfn, arguments[1]);
1350
+ var arrayForEach = sloppyArrayMethod('forEach') ? function forEach(callbackfn /* , thisArg */) {
1351
+ return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
1287
1352
  } : [].forEach;
1288
1353
 
1289
1354
  for (var COLLECTION_NAME in domIterables) {
@@ -1291,7 +1356,7 @@
1291
1356
  var CollectionPrototype = Collection && Collection.prototype;
1292
1357
  // some Chrome versions have non-configurable methods on DOMTokenList
1293
1358
  if (CollectionPrototype && CollectionPrototype.forEach !== arrayForEach) try {
1294
- hide(CollectionPrototype, 'forEach', arrayForEach);
1359
+ createNonEnumerableProperty(CollectionPrototype, 'forEach', arrayForEach);
1295
1360
  } catch (error) {
1296
1361
  CollectionPrototype.forEach = arrayForEach;
1297
1362
  }
@@ -1299,7 +1364,7 @@
1299
1364
 
1300
1365
  /**
1301
1366
  * --------------------------------------------------------------------------
1302
- * CoreUI Utilities (v2.1.10): get-css-custom-properties.js
1367
+ * CoreUI Utilities (v2.1.16): get-css-custom-properties.js
1303
1368
  * Licensed under MIT (https://coreui.io/license)
1304
1369
  * @returns {string} css custom property name
1305
1370
  * --------------------------------------------------------------------------
@@ -1367,7 +1432,7 @@
1367
1432
 
1368
1433
  /**
1369
1434
  * --------------------------------------------------------------------------
1370
- * CoreUI Utilities (v2.1.10): get-color.js
1435
+ * CoreUI Utilities (v2.1.16): get-color.js
1371
1436
  * Licensed under MIT (https://coreui.io/license)
1372
1437
  * --------------------------------------------------------------------------
1373
1438
  */
@@ -1384,7 +1449,7 @@
1384
1449
 
1385
1450
  /**
1386
1451
  * --------------------------------------------------------------------------
1387
- * CoreUI Utilities (v2.1.10): hex-to-rgb.js
1452
+ * CoreUI Utilities (v2.1.16): hex-to-rgb.js
1388
1453
  * Licensed under MIT (https://coreui.io/license)
1389
1454
  * --------------------------------------------------------------------------
1390
1455
  */
@@ -1420,7 +1485,7 @@
1420
1485
 
1421
1486
  /**
1422
1487
  * --------------------------------------------------------------------------
1423
- * CoreUI Utilities (v2.1.10): hex-to-rgba.js
1488
+ * CoreUI Utilities (v2.1.16): hex-to-rgba.js
1424
1489
  * Licensed under MIT (https://coreui.io/license)
1425
1490
  * --------------------------------------------------------------------------
1426
1491
  */
@@ -1464,10 +1529,30 @@
1464
1529
  else object[propertyKey] = value;
1465
1530
  };
1466
1531
 
1532
+ var userAgent = getBuiltIn('navigator', 'userAgent') || '';
1533
+
1534
+ var process = global_1.process;
1535
+ var versions = process && process.versions;
1536
+ var v8 = versions && versions.v8;
1537
+ var match, version;
1538
+
1539
+ if (v8) {
1540
+ match = v8.split('.');
1541
+ version = match[0] + match[1];
1542
+ } else if (userAgent) {
1543
+ match = userAgent.match(/Chrome\/(\d+)/);
1544
+ if (match) version = match[1];
1545
+ }
1546
+
1547
+ var v8Version = version && +version;
1548
+
1467
1549
  var SPECIES$3 = wellKnownSymbol('species');
1468
1550
 
1469
1551
  var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
1470
- return !fails(function () {
1552
+ // We can't use this feature detection in V8 since it causes
1553
+ // deoptimization and serious performance degradation
1554
+ // https://github.com/zloirock/core-js/issues/677
1555
+ return v8Version >= 51 || !fails(function () {
1471
1556
  var array = [];
1472
1557
  var constructor = array.constructor = {};
1473
1558
  constructor[SPECIES$3] = function () {
@@ -1481,12 +1566,10 @@
1481
1566
  var nativeSlice = [].slice;
1482
1567
  var max$2 = Math.max;
1483
1568
 
1484
- var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice');
1485
-
1486
1569
  // `Array.prototype.slice` method
1487
1570
  // https://tc39.github.io/ecma262/#sec-array.prototype.slice
1488
1571
  // fallback for not array-like ES3 strings and DOM objects
1489
- _export({ target: 'Array', proto: true, forced: !SPECIES_SUPPORT }, {
1572
+ _export({ target: 'Array', proto: true, forced: !arrayMethodHasSpeciesSupport('slice') }, {
1490
1573
  slice: function slice(start, end) {
1491
1574
  var O = toIndexedObject(this);
1492
1575
  var length = toLength(O.length);
@@ -1557,8 +1640,8 @@
1557
1640
  }
1558
1641
 
1559
1642
  var TO_STRING = 'toString';
1560
- var nativeToString = /./[TO_STRING];
1561
1643
  var RegExpPrototype = RegExp.prototype;
1644
+ var nativeToString = RegExpPrototype[TO_STRING];
1562
1645
 
1563
1646
  var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
1564
1647
  // FF44- RegExp#toString has a wrong name
@@ -1578,7 +1661,7 @@
1578
1661
 
1579
1662
  /**
1580
1663
  * --------------------------------------------------------------------------
1581
- * CoreUI (v2.1.10): rgb-to-hex.js
1664
+ * CoreUI (v2.1.16): rgb-to-hex.js
1582
1665
  * Licensed under MIT (https://coreui.io/license)
1583
1666
  * --------------------------------------------------------------------------
1584
1667
  */
@@ -1618,5 +1701,5 @@
1618
1701
 
1619
1702
  Object.defineProperty(exports, '__esModule', { value: true });
1620
1703
 
1621
- }));
1704
+ })));
1622
1705
  //# sourceMappingURL=coreui-utilities.js.map