@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
package/dist/js/coreui.js CHANGED
@@ -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,7 +7,7 @@
7
7
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('jquery'), require('perfect-scrollbar')) :
8
8
  typeof define === 'function' && define.amd ? define(['exports', 'jquery', 'perfect-scrollbar'], factory) :
9
9
  (global = global || self, factory(global.coreui = {}, global.jQuery, global.PerfectScrollbar));
10
- }(this, function (exports, $, PerfectScrollbar) { 'use strict';
10
+ }(this, (function (exports, $, PerfectScrollbar) { 'use strict';
11
11
 
12
12
  $ = $ && $.hasOwnProperty('default') ? $['default'] : $;
13
13
  PerfectScrollbar = PerfectScrollbar && PerfectScrollbar.hasOwnProperty('default') ? PerfectScrollbar['default'] : PerfectScrollbar;
@@ -31,7 +31,6 @@
31
31
  return module = { exports: {} }, fn(module, module.exports), module.exports;
32
32
  }
33
33
 
34
- var O = 'object';
35
34
  var check = function (it) {
36
35
  return it && it.Math == Math && it;
37
36
  };
@@ -39,10 +38,10 @@
39
38
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
40
39
  var global_1 =
41
40
  // eslint-disable-next-line no-undef
42
- check(typeof globalThis == O && globalThis) ||
43
- check(typeof window == O && window) ||
44
- check(typeof self == O && self) ||
45
- check(typeof commonjsGlobal == O && commonjsGlobal) ||
41
+ check(typeof globalThis == 'object' && globalThis) ||
42
+ check(typeof window == 'object' && window) ||
43
+ check(typeof self == 'object' && self) ||
44
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
46
45
  // eslint-disable-next-line no-new-func
47
46
  Function('return this')();
48
47
 
@@ -52,10 +51,10 @@
52
51
 
53
52
  var document$1 = global_1.document;
54
53
  // typeof document.createElement is 'object' in old IE
55
- var exist = isObject(document$1) && isObject(document$1.createElement);
54
+ var EXISTS = isObject(document$1) && isObject(document$1.createElement);
56
55
 
57
56
  var documentCreateElement = function (it) {
58
- return exist ? document$1.createElement(it) : {};
57
+ return EXISTS ? document$1.createElement(it) : {};
59
58
  };
60
59
 
61
60
  // Thank's IE8 for his funny defineProperty
@@ -71,20 +70,23 @@
71
70
  } return it;
72
71
  };
73
72
 
74
- // 7.1.1 ToPrimitive(input [, PreferredType])
73
+ // `ToPrimitive` abstract operation
74
+ // https://tc39.github.io/ecma262/#sec-toprimitive
75
75
  // instead of the ES6 spec version, we didn't implement @@toPrimitive case
76
76
  // and the second argument - flag - preferred type is a string
77
- var toPrimitive = function (it, S) {
78
- if (!isObject(it)) return it;
77
+ var toPrimitive = function (input, PREFERRED_STRING) {
78
+ if (!isObject(input)) return input;
79
79
  var fn, val;
80
- if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
81
- if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
82
- if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
80
+ if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
81
+ if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;
82
+ if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
83
83
  throw TypeError("Can't convert object to primitive value");
84
84
  };
85
85
 
86
86
  var nativeDefineProperty = Object.defineProperty;
87
87
 
88
+ // `Object.defineProperty` method
89
+ // https://tc39.github.io/ecma262/#sec-object.defineproperty
88
90
  var f = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
89
91
  anObject(O);
90
92
  P = toPrimitive(P, true);
@@ -110,7 +112,7 @@
110
112
  };
111
113
  };
112
114
 
113
- var hide = descriptors ? function (object, key, value) {
115
+ var createNonEnumerableProperty = descriptors ? function (object, key, value) {
114
116
  return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));
115
117
  } : function (object, key, value) {
116
118
  object[key] = value;
@@ -119,21 +121,23 @@
119
121
 
120
122
  var setGlobal = function (key, value) {
121
123
  try {
122
- hide(global_1, key, value);
124
+ createNonEnumerableProperty(global_1, key, value);
123
125
  } catch (error) {
124
126
  global_1[key] = value;
125
127
  } return value;
126
128
  };
127
129
 
128
- var shared = createCommonjsModule(function (module) {
129
130
  var SHARED = '__core-js_shared__';
130
131
  var store = global_1[SHARED] || setGlobal(SHARED, {});
131
132
 
133
+ var sharedStore = store;
134
+
135
+ var shared = createCommonjsModule(function (module) {
132
136
  (module.exports = function (key, value) {
133
- return store[key] || (store[key] = value !== undefined ? value : {});
137
+ return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
134
138
  })('versions', []).push({
135
- version: '3.1.3',
136
- mode: 'global',
139
+ version: '3.3.4',
140
+ mode: 'global',
137
141
  copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
138
142
  });
139
143
  });
@@ -154,7 +158,7 @@
154
158
  var postfix = Math.random();
155
159
 
156
160
  var uid = function (key) {
157
- return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + postfix).toString(36));
161
+ return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
158
162
  };
159
163
 
160
164
  var keys = shared('keys');
@@ -182,25 +186,25 @@
182
186
  };
183
187
 
184
188
  if (nativeWeakMap) {
185
- var store = new WeakMap$1();
186
- var wmget = store.get;
187
- var wmhas = store.has;
188
- var wmset = store.set;
189
+ var store$1 = new WeakMap$1();
190
+ var wmget = store$1.get;
191
+ var wmhas = store$1.has;
192
+ var wmset = store$1.set;
189
193
  set = function (it, metadata) {
190
- wmset.call(store, it, metadata);
194
+ wmset.call(store$1, it, metadata);
191
195
  return metadata;
192
196
  };
193
197
  get = function (it) {
194
- return wmget.call(store, it) || {};
198
+ return wmget.call(store$1, it) || {};
195
199
  };
196
200
  has$1 = function (it) {
197
- return wmhas.call(store, it);
201
+ return wmhas.call(store$1, it);
198
202
  };
199
203
  } else {
200
204
  var STATE = sharedKey('state');
201
205
  hiddenKeys[STATE] = true;
202
206
  set = function (it, metadata) {
203
- hide(it, STATE, metadata);
207
+ createNonEnumerableProperty(it, STATE, metadata);
204
208
  return metadata;
205
209
  };
206
210
  get = function (it) {
@@ -233,7 +237,7 @@
233
237
  var simple = options ? !!options.enumerable : false;
234
238
  var noTargetGet = options ? !!options.noTargetGet : false;
235
239
  if (typeof value == 'function') {
236
- if (typeof key == 'string' && !has(value, 'name')) hide(value, 'name', key);
240
+ if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key);
237
241
  enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');
238
242
  }
239
243
  if (O === global_1) {
@@ -246,7 +250,7 @@
246
250
  simple = true;
247
251
  }
248
252
  if (simple) O[key] = value;
249
- else hide(O, key, value);
253
+ else createNonEnumerableProperty(O, key, value);
250
254
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
251
255
  })(Function.prototype, 'toString', function toString() {
252
256
  return typeof this == 'function' && getInternalState(this).source || functionToString.call(this);
@@ -260,10 +264,10 @@
260
264
  });
261
265
 
262
266
  var Symbol$1 = global_1.Symbol;
263
- var store$1 = shared('wks');
267
+ var store$2 = shared('wks');
264
268
 
265
269
  var wellKnownSymbol = function (name) {
266
- return store$1[name] || (store$1[name] = nativeSymbol && Symbol$1[name]
270
+ return store$2[name] || (store$2[name] = nativeSymbol && Symbol$1[name]
267
271
  || (nativeSymbol ? Symbol$1 : uid)('Symbol.' + name));
268
272
  };
269
273
 
@@ -275,6 +279,7 @@
275
279
  if (that.global) result += 'g';
276
280
  if (that.ignoreCase) result += 'i';
277
281
  if (that.multiline) result += 'm';
282
+ if (that.dotAll) result += 's';
278
283
  if (that.unicode) result += 'u';
279
284
  if (that.sticky) result += 'y';
280
285
  return result;
@@ -371,15 +376,22 @@
371
376
  // Symbol-named RegExp methods call .exec
372
377
  var execCalled = false;
373
378
  var re = /a/;
374
- re.exec = function () { execCalled = true; return null; };
375
379
 
376
380
  if (KEY === 'split') {
381
+ // We can't use real regex here since it causes deoptimization
382
+ // and serious performance degradation in V8
383
+ // https://github.com/zloirock/core-js/issues/306
384
+ re = {};
377
385
  // RegExp[@@split] doesn't call the regex's exec method, but first creates
378
386
  // a new one. We need to return the patched regex when creating the new one.
379
387
  re.constructor = {};
380
388
  re.constructor[SPECIES] = function () { return re; };
389
+ re.flags = '';
390
+ re[SYMBOL] = /./[SYMBOL];
381
391
  }
382
392
 
393
+ re.exec = function () { execCalled = true; return null; };
394
+
383
395
  re[SYMBOL]('');
384
396
  return !execCalled;
385
397
  });
@@ -415,7 +427,7 @@
415
427
  // 21.2.5.9 RegExp.prototype[@@search](string)
416
428
  : function (string) { return regexMethod.call(string, this); }
417
429
  );
418
- if (sham) hide(RegExp.prototype[SYMBOL], 'sham', true);
430
+ if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true);
419
431
  }
420
432
  };
421
433
 
@@ -466,25 +478,37 @@
466
478
  return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
467
479
  };
468
480
 
469
- // CONVERT_TO_STRING: true -> String#at
470
- // CONVERT_TO_STRING: false -> String#codePointAt
471
- var stringAt = function (that, pos, CONVERT_TO_STRING) {
472
- var S = String(requireObjectCoercible(that));
473
- var position = toInteger(pos);
474
- var size = S.length;
475
- var first, second;
476
- if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
477
- first = S.charCodeAt(position);
478
- return first < 0xD800 || first > 0xDBFF || position + 1 === size
479
- || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
480
- ? CONVERT_TO_STRING ? S.charAt(position) : first
481
- : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
481
+ // `String.prototype.{ codePointAt, at }` methods implementation
482
+ var createMethod = function (CONVERT_TO_STRING) {
483
+ return function ($this, pos) {
484
+ var S = String(requireObjectCoercible($this));
485
+ var position = toInteger(pos);
486
+ var size = S.length;
487
+ var first, second;
488
+ if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
489
+ first = S.charCodeAt(position);
490
+ return first < 0xD800 || first > 0xDBFF || position + 1 === size
491
+ || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
492
+ ? CONVERT_TO_STRING ? S.charAt(position) : first
493
+ : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
494
+ };
495
+ };
496
+
497
+ var stringMultibyte = {
498
+ // `String.prototype.codePointAt` method
499
+ // https://tc39.github.io/ecma262/#sec-string.prototype.codepointat
500
+ codeAt: createMethod(false),
501
+ // `String.prototype.at` method
502
+ // https://github.com/mathiasbynens/String.prototype.at
503
+ charAt: createMethod(true)
482
504
  };
483
505
 
506
+ var charAt = stringMultibyte.charAt;
507
+
484
508
  // `AdvanceStringIndex` abstract operation
485
509
  // https://tc39.github.io/ecma262/#sec-advancestringindex
486
510
  var advanceStringIndex = function (S, index, unicode) {
487
- return index + (unicode ? stringAt(S, index, true).length : 1);
511
+ return index + (unicode ? charAt(S, index).length : 1);
488
512
  };
489
513
 
490
514
  var min = Math.min;
@@ -643,6 +667,8 @@
643
667
  // Nashorn ~ JDK8 bug
644
668
  var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
645
669
 
670
+ // `Object.prototype.propertyIsEnumerable` method implementation
671
+ // https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable
646
672
  var f$1 = NASHORN_BUG ? function propertyIsEnumerable(V) {
647
673
  var descriptor = getOwnPropertyDescriptor(this, V);
648
674
  return !!descriptor && descriptor.enumerable;
@@ -652,12 +678,9 @@
652
678
  f: f$1
653
679
  };
654
680
 
655
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
656
-
657
-
658
-
659
681
  var split = ''.split;
660
682
 
683
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
661
684
  var indexedObject = fails(function () {
662
685
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
663
686
  // eslint-disable-next-line no-prototype-builtins
@@ -676,6 +699,8 @@
676
699
 
677
700
  var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
678
701
 
702
+ // `Object.getOwnPropertyDescriptor` method
703
+ // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor
679
704
  var f$2 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
680
705
  O = toIndexedObject(O);
681
706
  P = toPrimitive(P, true);
@@ -689,6 +714,17 @@
689
714
  f: f$2
690
715
  };
691
716
 
717
+ var path = global_1;
718
+
719
+ var aFunction$1 = function (variable) {
720
+ return typeof variable == 'function' ? variable : undefined;
721
+ };
722
+
723
+ var getBuiltIn = function (namespace, method) {
724
+ return arguments.length < 2 ? aFunction$1(path[namespace]) || aFunction$1(global_1[namespace])
725
+ : path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];
726
+ };
727
+
692
728
  var max = Math.max;
693
729
  var min$2 = Math.min;
694
730
 
@@ -701,11 +737,7 @@
701
737
  };
702
738
 
703
739
  // `Array.prototype.{ indexOf, includes }` methods implementation
704
- // false -> Array#indexOf
705
- // https://tc39.github.io/ecma262/#sec-array.prototype.indexof
706
- // true -> Array#includes
707
- // https://tc39.github.io/ecma262/#sec-array.prototype.includes
708
- var arrayIncludes = function (IS_INCLUDES) {
740
+ var createMethod$1 = function (IS_INCLUDES) {
709
741
  return function ($this, el, fromIndex) {
710
742
  var O = toIndexedObject($this);
711
743
  var length = toLength(O.length);
@@ -718,13 +750,23 @@
718
750
  // eslint-disable-next-line no-self-compare
719
751
  if (value != value) return true;
720
752
  // Array#indexOf ignores holes, Array#includes - not
721
- } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
722
- if (O[index] === el) return IS_INCLUDES || index || 0;
753
+ } else for (;length > index; index++) {
754
+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
723
755
  } return !IS_INCLUDES && -1;
724
756
  };
725
757
  };
726
758
 
727
- var arrayIndexOf = arrayIncludes(false);
759
+ var arrayIncludes = {
760
+ // `Array.prototype.includes` method
761
+ // https://tc39.github.io/ecma262/#sec-array.prototype.includes
762
+ includes: createMethod$1(true),
763
+ // `Array.prototype.indexOf` method
764
+ // https://tc39.github.io/ecma262/#sec-array.prototype.indexof
765
+ indexOf: createMethod$1(false)
766
+ };
767
+
768
+ var indexOf = arrayIncludes.indexOf;
769
+
728
770
 
729
771
  var objectKeysInternal = function (object, names) {
730
772
  var O = toIndexedObject(object);
@@ -734,7 +776,7 @@
734
776
  for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);
735
777
  // Don't enum bug & hidden keys
736
778
  while (names.length > i) if (has(O, key = names[i++])) {
737
- ~arrayIndexOf(result, key) || result.push(key);
779
+ ~indexOf(result, key) || result.push(key);
738
780
  }
739
781
  return result;
740
782
  };
@@ -750,12 +792,10 @@
750
792
  'valueOf'
751
793
  ];
752
794
 
753
- // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
754
-
755
-
756
-
757
795
  var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
758
796
 
797
+ // `Object.getOwnPropertyNames` method
798
+ // https://tc39.github.io/ecma262/#sec-object.getownpropertynames
759
799
  var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
760
800
  return objectKeysInternal(O, hiddenKeys$1);
761
801
  };
@@ -770,10 +810,8 @@
770
810
  f: f$4
771
811
  };
772
812
 
773
- var Reflect = global_1.Reflect;
774
-
775
813
  // all object keys, includes non-enumerable and symbols
776
- var ownKeys = Reflect && Reflect.ownKeys || function ownKeys(it) {
814
+ var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
777
815
  var keys = objectGetOwnPropertyNames.f(anObject(it));
778
816
  var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
779
817
  return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
@@ -856,7 +894,7 @@
856
894
  }
857
895
  // add a flag to not completely full polyfills
858
896
  if (options.sham || (targetProperty && targetProperty.sham)) {
859
- hide(sourceProperty, 'sham', true);
897
+ createNonEnumerableProperty(sourceProperty, 'sham', true);
860
898
  }
861
899
  // extend global
862
900
  redefine(target, key, sourceProperty, options);
@@ -951,7 +989,7 @@
951
989
  || iterators[classof(it)];
952
990
  };
953
991
 
954
- // `Array.from` method
992
+ // `Array.from` method implementation
955
993
  // https://tc39.github.io/ecma262/#sec-array.from
956
994
  var arrayFrom = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
957
995
  var O = toObject(arrayLike);
@@ -961,13 +999,14 @@
961
999
  var mapping = mapfn !== undefined;
962
1000
  var index = 0;
963
1001
  var iteratorMethod = getIteratorMethod(O);
964
- var length, result, step, iterator;
1002
+ var length, result, step, iterator, next;
965
1003
  if (mapping) mapfn = bindContext(mapfn, argumentsLength > 2 ? arguments[2] : undefined, 2);
966
1004
  // if the target is not iterable or it's an array with the default iterator - use a simple case
967
1005
  if (iteratorMethod != undefined && !(C == Array && isArrayIteratorMethod(iteratorMethod))) {
968
1006
  iterator = iteratorMethod.call(O);
1007
+ next = iterator.next;
969
1008
  result = new C();
970
- for (;!(step = iterator.next()).done; index++) {
1009
+ for (;!(step = next.call(iterator)).done; index++) {
971
1010
  createProperty(result, index, mapping
972
1011
  ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true)
973
1012
  : step.value
@@ -1000,6 +1039,8 @@
1000
1039
  iteratorWithReturn[ITERATOR$2] = function () {
1001
1040
  return this;
1002
1041
  };
1042
+ // eslint-disable-next-line no-throw-literal
1043
+ Array.from(iteratorWithReturn, function () { throw 2; });
1003
1044
  } catch (error) { /* empty */ }
1004
1045
 
1005
1046
  var checkCorrectnessOfIteration = function (exec, SKIP_CLOSING) {
@@ -1020,6 +1061,7 @@
1020
1061
  };
1021
1062
 
1022
1063
  var INCORRECT_ITERATION = !checkCorrectnessOfIteration(function (iterable) {
1064
+ Array.from(iterable);
1023
1065
  });
1024
1066
 
1025
1067
  // `Array.from` method
@@ -1051,35 +1093,23 @@
1051
1093
  } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
1052
1094
  };
1053
1095
 
1096
+ var push = [].push;
1097
+
1054
1098
  // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation
1055
- // 0 -> Array#forEach
1056
- // https://tc39.github.io/ecma262/#sec-array.prototype.foreach
1057
- // 1 -> Array#map
1058
- // https://tc39.github.io/ecma262/#sec-array.prototype.map
1059
- // 2 -> Array#filter
1060
- // https://tc39.github.io/ecma262/#sec-array.prototype.filter
1061
- // 3 -> Array#some
1062
- // https://tc39.github.io/ecma262/#sec-array.prototype.some
1063
- // 4 -> Array#every
1064
- // https://tc39.github.io/ecma262/#sec-array.prototype.every
1065
- // 5 -> Array#find
1066
- // https://tc39.github.io/ecma262/#sec-array.prototype.find
1067
- // 6 -> Array#findIndex
1068
- // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex
1069
- var arrayMethods = function (TYPE, specificCreate) {
1099
+ var createMethod$2 = function (TYPE) {
1070
1100
  var IS_MAP = TYPE == 1;
1071
1101
  var IS_FILTER = TYPE == 2;
1072
1102
  var IS_SOME = TYPE == 3;
1073
1103
  var IS_EVERY = TYPE == 4;
1074
1104
  var IS_FIND_INDEX = TYPE == 6;
1075
1105
  var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
1076
- var create = specificCreate || arraySpeciesCreate;
1077
- return function ($this, callbackfn, that) {
1106
+ return function ($this, callbackfn, that, specificCreate) {
1078
1107
  var O = toObject($this);
1079
1108
  var self = indexedObject(O);
1080
1109
  var boundFunction = bindContext(callbackfn, that, 3);
1081
1110
  var length = toLength(self.length);
1082
1111
  var index = 0;
1112
+ var create = specificCreate || arraySpeciesCreate;
1083
1113
  var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
1084
1114
  var value, result;
1085
1115
  for (;length > index; index++) if (NO_HOLES || index in self) {
@@ -1091,7 +1121,7 @@
1091
1121
  case 3: return true; // some
1092
1122
  case 5: return value; // find
1093
1123
  case 6: return index; // findIndex
1094
- case 2: target.push(value); // filter
1124
+ case 2: push.call(target, value); // filter
1095
1125
  } else if (IS_EVERY) return false; // every
1096
1126
  }
1097
1127
  }
@@ -1099,10 +1129,54 @@
1099
1129
  };
1100
1130
  };
1101
1131
 
1132
+ var arrayIteration = {
1133
+ // `Array.prototype.forEach` method
1134
+ // https://tc39.github.io/ecma262/#sec-array.prototype.foreach
1135
+ forEach: createMethod$2(0),
1136
+ // `Array.prototype.map` method
1137
+ // https://tc39.github.io/ecma262/#sec-array.prototype.map
1138
+ map: createMethod$2(1),
1139
+ // `Array.prototype.filter` method
1140
+ // https://tc39.github.io/ecma262/#sec-array.prototype.filter
1141
+ filter: createMethod$2(2),
1142
+ // `Array.prototype.some` method
1143
+ // https://tc39.github.io/ecma262/#sec-array.prototype.some
1144
+ some: createMethod$2(3),
1145
+ // `Array.prototype.every` method
1146
+ // https://tc39.github.io/ecma262/#sec-array.prototype.every
1147
+ every: createMethod$2(4),
1148
+ // `Array.prototype.find` method
1149
+ // https://tc39.github.io/ecma262/#sec-array.prototype.find
1150
+ find: createMethod$2(5),
1151
+ // `Array.prototype.findIndex` method
1152
+ // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex
1153
+ findIndex: createMethod$2(6)
1154
+ };
1155
+
1156
+ var userAgent = getBuiltIn('navigator', 'userAgent') || '';
1157
+
1158
+ var process = global_1.process;
1159
+ var versions = process && process.versions;
1160
+ var v8 = versions && versions.v8;
1161
+ var match, version;
1162
+
1163
+ if (v8) {
1164
+ match = v8.split('.');
1165
+ version = match[0] + match[1];
1166
+ } else if (userAgent) {
1167
+ match = userAgent.match(/Chrome\/(\d+)/);
1168
+ if (match) version = match[1];
1169
+ }
1170
+
1171
+ var v8Version = version && +version;
1172
+
1102
1173
  var SPECIES$3 = wellKnownSymbol('species');
1103
1174
 
1104
1175
  var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
1105
- return !fails(function () {
1176
+ // We can't use this feature detection in V8 since it causes
1177
+ // deoptimization and serious performance degradation
1178
+ // https://github.com/zloirock/core-js/issues/677
1179
+ return v8Version >= 51 || !fails(function () {
1106
1180
  var array = [];
1107
1181
  var constructor = array.constructor = {};
1108
1182
  constructor[SPECIES$3] = function () {
@@ -1112,26 +1186,28 @@
1112
1186
  });
1113
1187
  };
1114
1188
 
1115
- var internalMap = arrayMethods(1);
1116
- var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');
1189
+ var $map = arrayIteration.map;
1190
+
1117
1191
 
1118
1192
  // `Array.prototype.map` method
1119
1193
  // https://tc39.github.io/ecma262/#sec-array.prototype.map
1120
1194
  // with adding support of @@species
1121
- _export({ target: 'Array', proto: true, forced: !SPECIES_SUPPORT }, {
1195
+ _export({ target: 'Array', proto: true, forced: !arrayMethodHasSpeciesSupport('map') }, {
1122
1196
  map: function map(callbackfn /* , thisArg */) {
1123
- return internalMap(this, callbackfn, arguments[1]);
1197
+ return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
1124
1198
  }
1125
1199
  });
1126
1200
 
1127
- // 19.1.2.14 / 15.2.3.14 Object.keys(O)
1201
+ // `Object.keys` method
1202
+ // https://tc39.github.io/ecma262/#sec-object.keys
1128
1203
  var objectKeys = Object.keys || function keys(O) {
1129
1204
  return objectKeysInternal(O, enumBugKeys);
1130
1205
  };
1131
1206
 
1132
1207
  var nativeAssign = Object.assign;
1133
1208
 
1134
- // 19.1.2.1 Object.assign(target, source, ...)
1209
+ // `Object.assign` method
1210
+ // https://tc39.github.io/ecma262/#sec-object.assign
1135
1211
  // should work with symbols and should have deterministic property order (V8 bug)
1136
1212
  var objectAssign = !nativeAssign || fails(function () {
1137
1213
  var A = {};
@@ -1176,7 +1252,8 @@
1176
1252
  var IE_PROTO = sharedKey('IE_PROTO');
1177
1253
  var ObjectPrototype = Object.prototype;
1178
1254
 
1179
- // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
1255
+ // `Object.getPrototypeOf` method
1256
+ // https://tc39.github.io/ecma262/#sec-object.getprototypeof
1180
1257
  var objectGetPrototypeOf = correctPrototypeGetter ? Object.getPrototypeOf : function (O) {
1181
1258
  O = toObject(O);
1182
1259
  if (has(O, IE_PROTO)) return O[IE_PROTO];
@@ -1207,26 +1284,28 @@
1207
1284
  if (IteratorPrototype == undefined) IteratorPrototype = {};
1208
1285
 
1209
1286
  // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
1210
- if (!has(IteratorPrototype, ITERATOR$3)) hide(IteratorPrototype, ITERATOR$3, returnThis);
1287
+ if ( !has(IteratorPrototype, ITERATOR$3)) {
1288
+ createNonEnumerableProperty(IteratorPrototype, ITERATOR$3, returnThis);
1289
+ }
1211
1290
 
1212
1291
  var iteratorsCore = {
1213
1292
  IteratorPrototype: IteratorPrototype,
1214
1293
  BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
1215
1294
  };
1216
1295
 
1296
+ // `Object.defineProperties` method
1297
+ // https://tc39.github.io/ecma262/#sec-object.defineproperties
1217
1298
  var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
1218
1299
  anObject(O);
1219
1300
  var keys = objectKeys(Properties);
1220
1301
  var length = keys.length;
1221
- var i = 0;
1302
+ var index = 0;
1222
1303
  var key;
1223
- while (length > i) objectDefineProperty.f(O, key = keys[i++], Properties[key]);
1304
+ while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]);
1224
1305
  return O;
1225
1306
  };
1226
1307
 
1227
- var document$2 = global_1.document;
1228
-
1229
- var html = document$2 && document$2.documentElement;
1308
+ var html = getBuiltIn('document', 'documentElement');
1230
1309
 
1231
1310
  var IE_PROTO$1 = sharedKey('IE_PROTO');
1232
1311
 
@@ -1255,7 +1334,8 @@
1255
1334
  return createDict();
1256
1335
  };
1257
1336
 
1258
- // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
1337
+ // `Object.create` method
1338
+ // https://tc39.github.io/ecma262/#sec-object.create
1259
1339
  var objectCreate = Object.create || function create(O, Properties) {
1260
1340
  var result;
1261
1341
  if (O !== null) {
@@ -1293,32 +1373,34 @@
1293
1373
  var createIteratorConstructor = function (IteratorConstructor, NAME, next) {
1294
1374
  var TO_STRING_TAG = NAME + ' Iterator';
1295
1375
  IteratorConstructor.prototype = objectCreate(IteratorPrototype$1, { next: createPropertyDescriptor(1, next) });
1296
- setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);
1376
+ setToStringTag(IteratorConstructor, TO_STRING_TAG, false);
1297
1377
  iterators[TO_STRING_TAG] = returnThis$1;
1298
1378
  return IteratorConstructor;
1299
1379
  };
1300
1380
 
1301
- var validateSetPrototypeOfArguments = function (O, proto) {
1302
- anObject(O);
1303
- if (!isObject(proto) && proto !== null) {
1304
- throw TypeError("Can't set " + String(proto) + ' as a prototype');
1305
- }
1381
+ var aPossiblePrototype = function (it) {
1382
+ if (!isObject(it) && it !== null) {
1383
+ throw TypeError("Can't set " + String(it) + ' as a prototype');
1384
+ } return it;
1306
1385
  };
1307
1386
 
1387
+ // `Object.setPrototypeOf` method
1388
+ // https://tc39.github.io/ecma262/#sec-object.setprototypeof
1308
1389
  // Works with __proto__ only. Old v8 can't work with null proto objects.
1309
1390
  /* eslint-disable no-proto */
1310
1391
  var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1311
- var correctSetter = false;
1392
+ var CORRECT_SETTER = false;
1312
1393
  var test = {};
1313
1394
  var setter;
1314
1395
  try {
1315
1396
  setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;
1316
1397
  setter.call(test, []);
1317
- correctSetter = test instanceof Array;
1398
+ CORRECT_SETTER = test instanceof Array;
1318
1399
  } catch (error) { /* empty */ }
1319
1400
  return function setPrototypeOf(O, proto) {
1320
- validateSetPrototypeOfArguments(O, proto);
1321
- if (correctSetter) setter.call(O, proto);
1401
+ anObject(O);
1402
+ aPossiblePrototype(proto);
1403
+ if (CORRECT_SETTER) setter.call(O, proto);
1322
1404
  else O.__proto__ = proto;
1323
1405
  return O;
1324
1406
  };
@@ -1360,15 +1442,15 @@
1360
1442
  if (anyNativeIterator) {
1361
1443
  CurrentIteratorPrototype = objectGetPrototypeOf(anyNativeIterator.call(new Iterable()));
1362
1444
  if (IteratorPrototype$2 !== Object.prototype && CurrentIteratorPrototype.next) {
1363
- if (objectGetPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype$2) {
1445
+ if ( objectGetPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype$2) {
1364
1446
  if (objectSetPrototypeOf) {
1365
1447
  objectSetPrototypeOf(CurrentIteratorPrototype, IteratorPrototype$2);
1366
1448
  } else if (typeof CurrentIteratorPrototype[ITERATOR$4] != 'function') {
1367
- hide(CurrentIteratorPrototype, ITERATOR$4, returnThis$2);
1449
+ createNonEnumerableProperty(CurrentIteratorPrototype, ITERATOR$4, returnThis$2);
1368
1450
  }
1369
1451
  }
1370
1452
  // Set @@toStringTag to native iterators
1371
- setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);
1453
+ setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);
1372
1454
  }
1373
1455
  }
1374
1456
 
@@ -1379,8 +1461,8 @@
1379
1461
  }
1380
1462
 
1381
1463
  // define iterator
1382
- if (IterablePrototype[ITERATOR$4] !== defaultIterator) {
1383
- hide(IterablePrototype, ITERATOR$4, defaultIterator);
1464
+ if ( IterablePrototype[ITERATOR$4] !== defaultIterator) {
1465
+ createNonEnumerableProperty(IterablePrototype, ITERATOR$4, defaultIterator);
1384
1466
  }
1385
1467
  iterators[NAME] = defaultIterator;
1386
1468
 
@@ -1401,6 +1483,10 @@
1401
1483
  return methods;
1402
1484
  };
1403
1485
 
1486
+ var charAt$1 = stringMultibyte.charAt;
1487
+
1488
+
1489
+
1404
1490
  var STRING_ITERATOR = 'String Iterator';
1405
1491
  var setInternalState = internalState.set;
1406
1492
  var getInternalState = internalState.getterFor(STRING_ITERATOR);
@@ -1421,7 +1507,7 @@
1421
1507
  var index = state.index;
1422
1508
  var point;
1423
1509
  if (index >= string.length) return { value: undefined, done: true };
1424
- point = stringAt(string, index, true);
1510
+ point = charAt$1(string, index);
1425
1511
  state.index += point.length;
1426
1512
  return { value: point, done: false };
1427
1513
  });
@@ -1587,13 +1673,13 @@
1587
1673
  });
1588
1674
  };
1589
1675
 
1590
- var internalForEach = arrayMethods(0);
1591
- var SLOPPY_METHOD = sloppyArrayMethod('forEach');
1676
+ var $forEach = arrayIteration.forEach;
1677
+
1592
1678
 
1593
1679
  // `Array.prototype.forEach` method implementation
1594
1680
  // https://tc39.github.io/ecma262/#sec-array.prototype.foreach
1595
- var arrayForEach = SLOPPY_METHOD ? function forEach(callbackfn /* , thisArg */) {
1596
- return internalForEach(this, callbackfn, arguments[1]);
1681
+ var arrayForEach = sloppyArrayMethod('forEach') ? function forEach(callbackfn /* , thisArg */) {
1682
+ return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
1597
1683
  } : [].forEach;
1598
1684
 
1599
1685
  for (var COLLECTION_NAME in domIterables) {
@@ -1601,7 +1687,7 @@
1601
1687
  var CollectionPrototype = Collection && Collection.prototype;
1602
1688
  // some Chrome versions have non-configurable methods on DOMTokenList
1603
1689
  if (CollectionPrototype && CollectionPrototype.forEach !== arrayForEach) try {
1604
- hide(CollectionPrototype, 'forEach', arrayForEach);
1690
+ createNonEnumerableProperty(CollectionPrototype, 'forEach', arrayForEach);
1605
1691
  } catch (error) {
1606
1692
  CollectionPrototype.forEach = arrayForEach;
1607
1693
  }
@@ -1625,7 +1711,7 @@
1625
1711
 
1626
1712
  /**
1627
1713
  * --------------------------------------------------------------------------
1628
- * CoreUI (v2.1.10): ajax-load.js
1714
+ * CoreUI (v2.1.16): ajax-load.js
1629
1715
  * Licensed under MIT (https://coreui.io/license)
1630
1716
  * --------------------------------------------------------------------------
1631
1717
  */
@@ -1637,7 +1723,7 @@
1637
1723
  * ------------------------------------------------------------------------
1638
1724
  */
1639
1725
  var NAME = 'ajaxLoad';
1640
- var VERSION = '2.1.10';
1726
+ var VERSION = '2.1.16';
1641
1727
  var DATA_KEY = 'coreui.ajaxLoad';
1642
1728
  var JQUERY_NO_CONFLICT = $.fn[NAME];
1643
1729
  var ClassName = {
@@ -1677,6 +1763,8 @@
1677
1763
  this.setUpUrl(this._config.defaultPage);
1678
1764
  }
1679
1765
 
1766
+ this._removeEventListeners();
1767
+
1680
1768
  this._addEventListeners();
1681
1769
  } // Getters
1682
1770
 
@@ -1761,7 +1849,7 @@
1761
1849
  ;
1762
1850
 
1763
1851
  _proto._getConfig = function _getConfig(config) {
1764
- config = Object.assign({}, Default, config);
1852
+ config = Object.assign({}, Default, {}, config);
1765
1853
  return config;
1766
1854
  };
1767
1855
 
@@ -1780,6 +1868,10 @@
1780
1868
  _this.setUpUrl(event.currentTarget.getAttribute('href'));
1781
1869
  }
1782
1870
  });
1871
+ };
1872
+
1873
+ _proto._removeEventListeners = function _removeEventListeners() {
1874
+ $(document).off(Event.CLICK, Selector.NAV_LINK + "[href!=\"#\"]");
1783
1875
  } // Static
1784
1876
  ;
1785
1877
 
@@ -1832,12 +1924,10 @@
1832
1924
  var nativeSlice = [].slice;
1833
1925
  var max$2 = Math.max;
1834
1926
 
1835
- var SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport('slice');
1836
-
1837
1927
  // `Array.prototype.slice` method
1838
1928
  // https://tc39.github.io/ecma262/#sec-array.prototype.slice
1839
1929
  // fallback for not array-like ES3 strings and DOM objects
1840
- _export({ target: 'Array', proto: true, forced: !SPECIES_SUPPORT$1 }, {
1930
+ _export({ target: 'Array', proto: true, forced: !arrayMethodHasSpeciesSupport('slice') }, {
1841
1931
  slice: function slice(start, end) {
1842
1932
  var O = toIndexedObject(this);
1843
1933
  var length = toLength(O.length);
@@ -1867,7 +1957,7 @@
1867
1957
 
1868
1958
  /**
1869
1959
  * --------------------------------------------------------------------------
1870
- * CoreUI (v2.1.10): toggle-classes.js
1960
+ * CoreUI (v2.1.16): toggle-classes.js
1871
1961
  * Licensed under MIT (https://coreui.io/license)
1872
1962
  * --------------------------------------------------------------------------
1873
1963
  */
@@ -1892,7 +1982,7 @@
1892
1982
 
1893
1983
  /**
1894
1984
  * --------------------------------------------------------------------------
1895
- * CoreUI (v2.1.10): aside-menu.js
1985
+ * CoreUI (v2.1.16): aside-menu.js
1896
1986
  * Licensed under MIT (https://coreui.io/license)
1897
1987
  * --------------------------------------------------------------------------
1898
1988
  */
@@ -1904,7 +1994,7 @@
1904
1994
  * ------------------------------------------------------------------------
1905
1995
  */
1906
1996
  var NAME = 'aside-menu';
1907
- var VERSION = '2.1.10';
1997
+ var VERSION = '2.1.16';
1908
1998
  var DATA_KEY = 'coreui.aside-menu';
1909
1999
  var EVENT_KEY = "." + DATA_KEY;
1910
2000
  var DATA_API_KEY = '.data-api';
@@ -1932,6 +2022,8 @@
1932
2022
  function AsideMenu(element) {
1933
2023
  this._element = element;
1934
2024
 
2025
+ this._removeEventListeners();
2026
+
1935
2027
  this._addEventListeners();
1936
2028
  } // Getters
1937
2029
 
@@ -1946,6 +2038,10 @@
1946
2038
  var toggle = event.currentTarget.dataset ? event.currentTarget.dataset.toggle : $(event.currentTarget).data('toggle');
1947
2039
  toggleClasses(toggle, ShowClassNames);
1948
2040
  });
2041
+ };
2042
+
2043
+ _proto._removeEventListeners = function _removeEventListeners() {
2044
+ $(document).off(Event.CLICK, Selector.ASIDE_MENU_TOGGLER);
1949
2045
  } // Static
1950
2046
  ;
1951
2047
 
@@ -1977,7 +2073,7 @@
1977
2073
  */
1978
2074
 
1979
2075
 
1980
- $(window).on(Event.LOAD_DATA_API, function () {
2076
+ $(window).one(Event.LOAD_DATA_API, function () {
1981
2077
  var asideMenu = $(Selector.ASIDE_MENU);
1982
2078
 
1983
2079
  AsideMenu._jQueryInterface.call(asideMenu);
@@ -2005,7 +2101,7 @@
2005
2101
  // Array.prototype[@@unscopables]
2006
2102
  // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
2007
2103
  if (ArrayPrototype$1[UNSCOPABLES] == undefined) {
2008
- hide(ArrayPrototype$1, UNSCOPABLES, objectCreate(null));
2104
+ createNonEnumerableProperty(ArrayPrototype$1, UNSCOPABLES, objectCreate(null));
2009
2105
  }
2010
2106
 
2011
2107
  // add a key to Array.prototype[@@unscopables]
@@ -2013,7 +2109,9 @@
2013
2109
  ArrayPrototype$1[UNSCOPABLES][key] = true;
2014
2110
  };
2015
2111
 
2016
- var internalFind = arrayMethods(5);
2112
+ var $find = arrayIteration.find;
2113
+
2114
+
2017
2115
  var FIND = 'find';
2018
2116
  var SKIPS_HOLES = true;
2019
2117
 
@@ -2024,7 +2122,7 @@
2024
2122
  // https://tc39.github.io/ecma262/#sec-array.prototype.find
2025
2123
  _export({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
2026
2124
  find: function find(callbackfn /* , that = undefined */) {
2027
- return internalFind(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
2125
+ return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
2028
2126
  }
2029
2127
  });
2030
2128
 
@@ -2076,14 +2174,26 @@
2076
2174
  var ltrim = RegExp('^' + whitespace + whitespace + '*');
2077
2175
  var rtrim = RegExp(whitespace + whitespace + '*$');
2078
2176
 
2079
- // 1 -> String#trimStart
2080
- // 2 -> String#trimEnd
2081
- // 3 -> String#trim
2082
- var stringTrim = function (string, TYPE) {
2083
- string = String(requireObjectCoercible(string));
2084
- if (TYPE & 1) string = string.replace(ltrim, '');
2085
- if (TYPE & 2) string = string.replace(rtrim, '');
2086
- return string;
2177
+ // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
2178
+ var createMethod$3 = function (TYPE) {
2179
+ return function ($this) {
2180
+ var string = String(requireObjectCoercible($this));
2181
+ if (TYPE & 1) string = string.replace(ltrim, '');
2182
+ if (TYPE & 2) string = string.replace(rtrim, '');
2183
+ return string;
2184
+ };
2185
+ };
2186
+
2187
+ var stringTrim = {
2188
+ // `String.prototype.{ trimLeft, trimStart }` methods
2189
+ // https://tc39.github.io/ecma262/#sec-string.prototype.trimstart
2190
+ start: createMethod$3(1),
2191
+ // `String.prototype.{ trimRight, trimEnd }` methods
2192
+ // https://tc39.github.io/ecma262/#sec-string.prototype.trimend
2193
+ end: createMethod$3(2),
2194
+ // `String.prototype.trim` method
2195
+ // https://tc39.github.io/ecma262/#sec-string.prototype.trim
2196
+ trim: createMethod$3(3)
2087
2197
  };
2088
2198
 
2089
2199
  var non = '\u200B\u0085\u180E';
@@ -2096,19 +2206,20 @@
2096
2206
  });
2097
2207
  };
2098
2208
 
2099
- var FORCED = forcedStringTrimMethod('trim');
2209
+ var $trim = stringTrim.trim;
2210
+
2100
2211
 
2101
2212
  // `String.prototype.trim` method
2102
2213
  // https://tc39.github.io/ecma262/#sec-string.prototype.trim
2103
- _export({ target: 'String', proto: true, forced: FORCED }, {
2214
+ _export({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
2104
2215
  trim: function trim() {
2105
- return stringTrim(this, 3);
2216
+ return $trim(this);
2106
2217
  }
2107
2218
  });
2108
2219
 
2109
2220
  /**
2110
2221
  * --------------------------------------------------------------------------
2111
- * CoreUI Utilities (v2.1.10): get-css-custom-properties.js
2222
+ * CoreUI Utilities (v2.1.16): get-css-custom-properties.js
2112
2223
  * Licensed under MIT (https://coreui.io/license)
2113
2224
  * @returns {string} css custom property name
2114
2225
  * --------------------------------------------------------------------------
@@ -2176,7 +2287,7 @@
2176
2287
 
2177
2288
  /**
2178
2289
  * --------------------------------------------------------------------------
2179
- * CoreUI (v2.1.10): sidebar.js
2290
+ * CoreUI (v2.1.16): sidebar.js
2180
2291
  * Licensed under MIT (https://coreui.io/license)
2181
2292
  * --------------------------------------------------------------------------
2182
2293
  */
@@ -2188,7 +2299,7 @@
2188
2299
  * ------------------------------------------------------------------------
2189
2300
  */
2190
2301
  var NAME = 'sidebar';
2191
- var VERSION = '2.1.10';
2302
+ var VERSION = '2.1.16';
2192
2303
  var DATA_KEY = 'coreui.sidebar';
2193
2304
  var EVENT_KEY = "." + DATA_KEY;
2194
2305
  var DATA_API_KEY = '.data-api';
@@ -2200,6 +2311,7 @@
2200
2311
  ACTIVE: 'active',
2201
2312
  BRAND_MINIMIZED: 'brand-minimized',
2202
2313
  NAV_DROPDOWN_TOGGLE: 'nav-dropdown-toggle',
2314
+ NAV_LINK_QUERIED: 'nav-link-queried',
2203
2315
  OPEN: 'open',
2204
2316
  SIDEBAR_FIXED: 'sidebar-fixed',
2205
2317
  SIDEBAR_MINIMIZED: 'sidebar-minimized',
@@ -2225,7 +2337,8 @@
2225
2337
  NAVIGATION: '.sidebar-nav > .nav',
2226
2338
  SIDEBAR: '.sidebar',
2227
2339
  SIDEBAR_MINIMIZER: '.sidebar-minimizer',
2228
- SIDEBAR_TOGGLER: '.sidebar-toggler'
2340
+ SIDEBAR_TOGGLER: '.sidebar-toggler',
2341
+ SIDEBAR_SCROLL: '.sidebar-scroll'
2229
2342
  };
2230
2343
  var ShowClassNames = ['sidebar-show', 'sidebar-sm-show', 'sidebar-md-show', 'sidebar-lg-show', 'sidebar-xl-show'];
2231
2344
  /**
@@ -2246,6 +2359,8 @@
2246
2359
  this._breakpointTest = this._breakpointTest.bind(this);
2247
2360
  this._clickOutListener = this._clickOutListener.bind(this);
2248
2361
 
2362
+ this._removeEventListeners();
2363
+
2249
2364
  this._addEventListeners();
2250
2365
 
2251
2366
  this._addMediaQuery();
@@ -2289,9 +2404,15 @@
2289
2404
  }
2290
2405
  };
2291
2406
 
2292
- _proto.makeScrollbar = function makeScrollbar(container) {
2293
- if (container === void 0) {
2407
+ _proto.makeScrollbar = function makeScrollbar() {
2408
+ var container = Selector.SIDEBAR_SCROLL;
2409
+
2410
+ if (document.querySelector(container) === null) {
2294
2411
  container = Selector.NAVIGATION_CONTAINER;
2412
+
2413
+ if (document.querySelector(container) === null) {
2414
+ return null;
2415
+ }
2295
2416
  }
2296
2417
 
2297
2418
  var ps = new PerfectScrollbar(document.querySelector(container), {
@@ -2314,7 +2435,7 @@
2314
2435
  var link = value;
2315
2436
  var cUrl;
2316
2437
 
2317
- if (link.classList.contains(Selector.NAV_LINK_QUERIED)) {
2438
+ if (link.classList.contains(ClassName.NAV_LINK_QUERIED)) {
2318
2439
  cUrl = String(window.location);
2319
2440
  } else {
2320
2441
  cUrl = String(window.location).split('?')[0];
@@ -2421,6 +2542,14 @@
2421
2542
 
2422
2543
  document.body.classList.remove('sidebar-show');
2423
2544
  });
2545
+ };
2546
+
2547
+ _proto._removeEventListeners = function _removeEventListeners() {
2548
+ $(document).off(Event.CLICK, Selector.BRAND_MINIMIZER);
2549
+ $(document).off(Event.CLICK, Selector.NAV_DROPDOWN_TOGGLE);
2550
+ $(document).off(Event.CLICK, Selector.SIDEBAR_MINIMIZER);
2551
+ $(document).off(Event.CLICK, Selector.SIDEBAR_TOGGLER);
2552
+ $(Selector.NAVIGATION + " > " + Selector.NAV_ITEM + " " + Selector.NAV_LINK + ":not(" + Selector.NAV_DROPDOWN_TOGGLE + ")").off(Event.CLICK);
2424
2553
  } // Static
2425
2554
  ;
2426
2555
 
@@ -2452,7 +2581,7 @@
2452
2581
  */
2453
2582
 
2454
2583
 
2455
- $(window).on(Event.LOAD_DATA_API, function () {
2584
+ $(window).one(Event.LOAD_DATA_API, function () {
2456
2585
  var sidebar = $(Selector.SIDEBAR);
2457
2586
 
2458
2587
  Sidebar._jQueryInterface.call(sidebar);
@@ -2476,7 +2605,7 @@
2476
2605
 
2477
2606
  /**
2478
2607
  * --------------------------------------------------------------------------
2479
- * CoreUI Utilities (v2.1.10): hex-to-rgb.js
2608
+ * CoreUI Utilities (v2.1.16): hex-to-rgb.js
2480
2609
  * Licensed under MIT (https://coreui.io/license)
2481
2610
  * --------------------------------------------------------------------------
2482
2611
  */
@@ -2512,7 +2641,7 @@
2512
2641
 
2513
2642
  /**
2514
2643
  * --------------------------------------------------------------------------
2515
- * CoreUI Utilities (v2.1.10): hex-to-rgba.js
2644
+ * CoreUI Utilities (v2.1.16): hex-to-rgba.js
2516
2645
  * Licensed under MIT (https://coreui.io/license)
2517
2646
  * --------------------------------------------------------------------------
2518
2647
  */
@@ -2570,8 +2699,8 @@
2570
2699
  }
2571
2700
 
2572
2701
  var TO_STRING = 'toString';
2573
- var nativeToString = /./[TO_STRING];
2574
2702
  var RegExpPrototype = RegExp.prototype;
2703
+ var nativeToString = RegExpPrototype[TO_STRING];
2575
2704
 
2576
2705
  var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
2577
2706
  // FF44- RegExp#toString has a wrong name
@@ -2591,7 +2720,7 @@
2591
2720
 
2592
2721
  /**
2593
2722
  * --------------------------------------------------------------------------
2594
- * CoreUI (v2.1.10): rgb-to-hex.js
2723
+ * CoreUI (v2.1.16): rgb-to-hex.js
2595
2724
  * Licensed under MIT (https://coreui.io/license)
2596
2725
  * --------------------------------------------------------------------------
2597
2726
  */
@@ -2620,7 +2749,7 @@
2620
2749
 
2621
2750
  /**
2622
2751
  * --------------------------------------------------------------------------
2623
- * CoreUI (v2.1.10): index.js
2752
+ * CoreUI (v2.1.16): index.js
2624
2753
  * Licensed under MIT (https://coreui.io/license)
2625
2754
  * --------------------------------------------------------------------------
2626
2755
  */
@@ -2652,5 +2781,5 @@
2652
2781
 
2653
2782
  Object.defineProperty(exports, '__esModule', { value: true });
2654
2783
 
2655
- }));
2784
+ })));
2656
2785
  //# sourceMappingURL=coreui.js.map