2 * Bootstrap v4.1.3 (https://getbootstrap.com/)
3 * Copyright 2011-2018 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
6 (function (global, factory) {
7 typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('jquery'), require('popper.js')) :
8 typeof define === 'function' && define.amd ? define(['exports', 'jquery', 'popper.js'], factory) :
9 (factory((global.bootstrap = {}),global.jQuery,global.Popper));
10 }(this, (function (exports,$,Popper) { 'use strict';
12 $ = $ && $.hasOwnProperty('default') ? $['default'] : $;
13 Popper = Popper && Popper.hasOwnProperty('default') ? Popper['default'] : Popper;
15 function _defineProperties(target, props) {
16 for (var i = 0; i < props.length; i++) {
17 var descriptor = props[i];
18 descriptor.enumerable = descriptor.enumerable || false;
19 descriptor.configurable = true;
20 if ("value" in descriptor) descriptor.writable = true;
21 Object.defineProperty(target, descriptor.key, descriptor);
25 function _createClass(Constructor, protoProps, staticProps) {
26 if (protoProps) _defineProperties(Constructor.prototype, protoProps);
27 if (staticProps) _defineProperties(Constructor, staticProps);
31 function _defineProperty(obj, key, value) {
33 Object.defineProperty(obj, key, {
46 function _objectSpread(target) {
47 for (var i = 1; i < arguments.length; i++) {
48 var source = arguments[i] != null ? arguments[i] : {};
49 var ownKeys = Object.keys(source);
51 if (typeof Object.getOwnPropertySymbols === 'function') {
52 ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
53 return Object.getOwnPropertyDescriptor(source, sym).enumerable;
57 ownKeys.forEach(function (key) {
58 _defineProperty(target, key, source[key]);
65 function _inheritsLoose(subClass, superClass) {
66 subClass.prototype = Object.create(superClass.prototype);
67 subClass.prototype.constructor = subClass;
68 subClass.__proto__ = superClass;
72 * --------------------------------------------------------------------------
73 * Bootstrap (v4.1.3): util.js
74 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
75 * --------------------------------------------------------------------------
78 var Util = function ($$$1) {
80 * ------------------------------------------------------------------------
81 * Private TransitionEnd Helpers
82 * ------------------------------------------------------------------------
84 var TRANSITION_END = 'transitionend';
85 var MAX_UID = 1000000;
86 var MILLISECONDS_MULTIPLIER = 1000; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
88 function toType(obj) {
89 return {}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase();
92 function getSpecialTransitionEndEvent() {
94 bindType: TRANSITION_END,
95 delegateType: TRANSITION_END,
96 handle: function handle(event) {
97 if ($$$1(event.target).is(this)) {
98 return event.handleObj.handler.apply(this, arguments); // eslint-disable-line prefer-rest-params
101 return undefined; // eslint-disable-line no-undefined
106 function transitionEndEmulator(duration) {
110 $$$1(this).one(Util.TRANSITION_END, function () {
113 setTimeout(function () {
115 Util.triggerTransitionEnd(_this);
121 function setTransitionEndSupport() {
122 $$$1.fn.emulateTransitionEnd = transitionEndEmulator;
123 $$$1.event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent();
126 * --------------------------------------------------------------------------
128 * --------------------------------------------------------------------------
133 TRANSITION_END: 'bsTransitionEnd',
134 getUID: function getUID(prefix) {
136 // eslint-disable-next-line no-bitwise
137 prefix += ~~(Math.random() * MAX_UID); // "~~" acts like a faster Math.floor() here
138 } while (document.getElementById(prefix));
142 getSelectorFromElement: function getSelectorFromElement(element) {
143 var selector = element.getAttribute('data-target');
145 if (!selector || selector === '#') {
146 selector = element.getAttribute('href') || '';
150 return document.querySelector(selector) ? selector : null;
155 getTransitionDurationFromElement: function getTransitionDurationFromElement(element) {
158 } // Get transition-duration of the element
161 var transitionDuration = $$$1(element).css('transition-duration');
162 var floatTransitionDuration = parseFloat(transitionDuration); // Return 0 if element or transition duration is not found
164 if (!floatTransitionDuration) {
166 } // If multiple durations are defined, take the first
169 transitionDuration = transitionDuration.split(',')[0];
170 return parseFloat(transitionDuration) * MILLISECONDS_MULTIPLIER;
172 reflow: function reflow(element) {
173 return element.offsetHeight;
175 triggerTransitionEnd: function triggerTransitionEnd(element) {
176 $$$1(element).trigger(TRANSITION_END);
178 // TODO: Remove in v5
179 supportsTransitionEnd: function supportsTransitionEnd() {
180 return Boolean(TRANSITION_END);
182 isElement: function isElement(obj) {
183 return (obj[0] || obj).nodeType;
185 typeCheckConfig: function typeCheckConfig(componentName, config, configTypes) {
186 for (var property in configTypes) {
187 if (Object.prototype.hasOwnProperty.call(configTypes, property)) {
188 var expectedTypes = configTypes[property];
189 var value = config[property];
190 var valueType = value && Util.isElement(value) ? 'element' : toType(value);
192 if (!new RegExp(expectedTypes).test(valueType)) {
193 throw new Error(componentName.toUpperCase() + ": " + ("Option \"" + property + "\" provided type \"" + valueType + "\" ") + ("but expected type \"" + expectedTypes + "\"."));
199 setTransitionEndSupport();
204 * --------------------------------------------------------------------------
205 * Bootstrap (v4.1.3): alert.js
206 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
207 * --------------------------------------------------------------------------
210 var Alert = function ($$$1) {
212 * ------------------------------------------------------------------------
214 * ------------------------------------------------------------------------
217 var VERSION = '4.1.3';
218 var DATA_KEY = 'bs.alert';
219 var EVENT_KEY = "." + DATA_KEY;
220 var DATA_API_KEY = '.data-api';
221 var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
223 DISMISS: '[data-dismiss="alert"]'
226 CLOSE: "close" + EVENT_KEY,
227 CLOSED: "closed" + EVENT_KEY,
228 CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY
235 * ------------------------------------------------------------------------
237 * ------------------------------------------------------------------------
245 function Alert(element) {
246 this._element = element;
250 var _proto = Alert.prototype;
253 _proto.close = function close(element) {
254 var rootElement = this._element;
257 rootElement = this._getRootElement(element);
260 var customEvent = this._triggerCloseEvent(rootElement);
262 if (customEvent.isDefaultPrevented()) {
266 this._removeElement(rootElement);
269 _proto.dispose = function dispose() {
270 $$$1.removeData(this._element, DATA_KEY);
271 this._element = null;
275 _proto._getRootElement = function _getRootElement(element) {
276 var selector = Util.getSelectorFromElement(element);
280 parent = document.querySelector(selector);
284 parent = $$$1(element).closest("." + ClassName.ALERT)[0];
290 _proto._triggerCloseEvent = function _triggerCloseEvent(element) {
291 var closeEvent = $$$1.Event(Event.CLOSE);
292 $$$1(element).trigger(closeEvent);
296 _proto._removeElement = function _removeElement(element) {
299 $$$1(element).removeClass(ClassName.SHOW);
301 if (!$$$1(element).hasClass(ClassName.FADE)) {
302 this._destroyElement(element);
307 var transitionDuration = Util.getTransitionDurationFromElement(element);
308 $$$1(element).one(Util.TRANSITION_END, function (event) {
309 return _this._destroyElement(element, event);
310 }).emulateTransitionEnd(transitionDuration);
313 _proto._destroyElement = function _destroyElement(element) {
314 $$$1(element).detach().trigger(Event.CLOSED).remove();
318 Alert._jQueryInterface = function _jQueryInterface(config) {
319 return this.each(function () {
320 var $element = $$$1(this);
321 var data = $element.data(DATA_KEY);
324 data = new Alert(this);
325 $element.data(DATA_KEY, data);
328 if (config === 'close') {
334 Alert._handleDismiss = function _handleDismiss(alertInstance) {
335 return function (event) {
337 event.preventDefault();
340 alertInstance.close(this);
344 _createClass(Alert, null, [{
346 get: function get() {
354 * ------------------------------------------------------------------------
355 * Data Api implementation
356 * ------------------------------------------------------------------------
360 $$$1(document).on(Event.CLICK_DATA_API, Selector.DISMISS, Alert._handleDismiss(new Alert()));
362 * ------------------------------------------------------------------------
364 * ------------------------------------------------------------------------
367 $$$1.fn[NAME] = Alert._jQueryInterface;
368 $$$1.fn[NAME].Constructor = Alert;
370 $$$1.fn[NAME].noConflict = function () {
371 $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
372 return Alert._jQueryInterface;
379 * --------------------------------------------------------------------------
380 * Bootstrap (v4.1.3): button.js
381 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
382 * --------------------------------------------------------------------------
385 var Button = function ($$$1) {
387 * ------------------------------------------------------------------------
389 * ------------------------------------------------------------------------
392 var VERSION = '4.1.3';
393 var DATA_KEY = 'bs.button';
394 var EVENT_KEY = "." + DATA_KEY;
395 var DATA_API_KEY = '.data-api';
396 var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
403 DATA_TOGGLE_CARROT: '[data-toggle^="button"]',
404 DATA_TOGGLE: '[data-toggle="buttons"]',
410 CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY,
411 FOCUS_BLUR_DATA_API: "focus" + EVENT_KEY + DATA_API_KEY + " " + ("blur" + EVENT_KEY + DATA_API_KEY)
413 * ------------------------------------------------------------------------
415 * ------------------------------------------------------------------------
423 function Button(element) {
424 this._element = element;
428 var _proto = Button.prototype;
431 _proto.toggle = function toggle() {
432 var triggerChangeEvent = true;
433 var addAriaPressed = true;
434 var rootElement = $$$1(this._element).closest(Selector.DATA_TOGGLE)[0];
437 var input = this._element.querySelector(Selector.INPUT);
440 if (input.type === 'radio') {
441 if (input.checked && this._element.classList.contains(ClassName.ACTIVE)) {
442 triggerChangeEvent = false;
444 var activeElement = rootElement.querySelector(Selector.ACTIVE);
447 $$$1(activeElement).removeClass(ClassName.ACTIVE);
452 if (triggerChangeEvent) {
453 if (input.hasAttribute('disabled') || rootElement.hasAttribute('disabled') || input.classList.contains('disabled') || rootElement.classList.contains('disabled')) {
457 input.checked = !this._element.classList.contains(ClassName.ACTIVE);
458 $$$1(input).trigger('change');
462 addAriaPressed = false;
466 if (addAriaPressed) {
467 this._element.setAttribute('aria-pressed', !this._element.classList.contains(ClassName.ACTIVE));
470 if (triggerChangeEvent) {
471 $$$1(this._element).toggleClass(ClassName.ACTIVE);
475 _proto.dispose = function dispose() {
476 $$$1.removeData(this._element, DATA_KEY);
477 this._element = null;
481 Button._jQueryInterface = function _jQueryInterface(config) {
482 return this.each(function () {
483 var data = $$$1(this).data(DATA_KEY);
486 data = new Button(this);
487 $$$1(this).data(DATA_KEY, data);
490 if (config === 'toggle') {
496 _createClass(Button, null, [{
498 get: function get() {
506 * ------------------------------------------------------------------------
507 * Data Api implementation
508 * ------------------------------------------------------------------------
512 $$$1(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE_CARROT, function (event) {
513 event.preventDefault();
514 var button = event.target;
516 if (!$$$1(button).hasClass(ClassName.BUTTON)) {
517 button = $$$1(button).closest(Selector.BUTTON);
520 Button._jQueryInterface.call($$$1(button), 'toggle');
521 }).on(Event.FOCUS_BLUR_DATA_API, Selector.DATA_TOGGLE_CARROT, function (event) {
522 var button = $$$1(event.target).closest(Selector.BUTTON)[0];
523 $$$1(button).toggleClass(ClassName.FOCUS, /^focus(in)?$/.test(event.type));
526 * ------------------------------------------------------------------------
528 * ------------------------------------------------------------------------
531 $$$1.fn[NAME] = Button._jQueryInterface;
532 $$$1.fn[NAME].Constructor = Button;
534 $$$1.fn[NAME].noConflict = function () {
535 $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
536 return Button._jQueryInterface;
543 * --------------------------------------------------------------------------
544 * Bootstrap (v4.1.3): carousel.js
545 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
546 * --------------------------------------------------------------------------
549 var Carousel = function ($$$1) {
551 * ------------------------------------------------------------------------
553 * ------------------------------------------------------------------------
555 var NAME = 'carousel';
556 var VERSION = '4.1.3';
557 var DATA_KEY = 'bs.carousel';
558 var EVENT_KEY = "." + DATA_KEY;
559 var DATA_API_KEY = '.data-api';
560 var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
561 var ARROW_LEFT_KEYCODE = 37; // KeyboardEvent.which value for left arrow key
563 var ARROW_RIGHT_KEYCODE = 39; // KeyboardEvent.which value for right arrow key
565 var TOUCHEVENT_COMPAT_WAIT = 500; // Time for mouse compat events to fire after touch
575 interval: '(number|boolean)',
577 slide: '(boolean|string)',
578 pause: '(string|boolean)',
588 SLIDE: "slide" + EVENT_KEY,
589 SLID: "slid" + EVENT_KEY,
590 KEYDOWN: "keydown" + EVENT_KEY,
591 MOUSEENTER: "mouseenter" + EVENT_KEY,
592 MOUSELEAVE: "mouseleave" + EVENT_KEY,
593 TOUCHEND: "touchend" + EVENT_KEY,
594 LOAD_DATA_API: "load" + EVENT_KEY + DATA_API_KEY,
595 CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY
598 CAROUSEL: 'carousel',
601 RIGHT: 'carousel-item-right',
602 LEFT: 'carousel-item-left',
603 NEXT: 'carousel-item-next',
604 PREV: 'carousel-item-prev',
605 ITEM: 'carousel-item'
609 ACTIVE_ITEM: '.active.carousel-item',
610 ITEM: '.carousel-item',
611 NEXT_PREV: '.carousel-item-next, .carousel-item-prev',
612 INDICATORS: '.carousel-indicators',
613 DATA_SLIDE: '[data-slide], [data-slide-to]',
614 DATA_RIDE: '[data-ride="carousel"]'
616 * ------------------------------------------------------------------------
618 * ------------------------------------------------------------------------
626 function Carousel(element, config) {
628 this._interval = null;
629 this._activeElement = null;
630 this._isPaused = false;
631 this._isSliding = false;
632 this.touchTimeout = null;
633 this._config = this._getConfig(config);
634 this._element = $$$1(element)[0];
635 this._indicatorsElement = this._element.querySelector(Selector.INDICATORS);
637 this._addEventListeners();
641 var _proto = Carousel.prototype;
644 _proto.next = function next() {
645 if (!this._isSliding) {
646 this._slide(Direction.NEXT);
650 _proto.nextWhenVisible = function nextWhenVisible() {
651 // Don't call next when the page isn't visible
652 // or the carousel or its parent isn't visible
653 if (!document.hidden && $$$1(this._element).is(':visible') && $$$1(this._element).css('visibility') !== 'hidden') {
658 _proto.prev = function prev() {
659 if (!this._isSliding) {
660 this._slide(Direction.PREV);
664 _proto.pause = function pause(event) {
666 this._isPaused = true;
669 if (this._element.querySelector(Selector.NEXT_PREV)) {
670 Util.triggerTransitionEnd(this._element);
674 clearInterval(this._interval);
675 this._interval = null;
678 _proto.cycle = function cycle(event) {
680 this._isPaused = false;
683 if (this._interval) {
684 clearInterval(this._interval);
685 this._interval = null;
688 if (this._config.interval && !this._isPaused) {
689 this._interval = setInterval((document.visibilityState ? this.nextWhenVisible : this.next).bind(this), this._config.interval);
693 _proto.to = function to(index) {
696 this._activeElement = this._element.querySelector(Selector.ACTIVE_ITEM);
698 var activeIndex = this._getItemIndex(this._activeElement);
700 if (index > this._items.length - 1 || index < 0) {
704 if (this._isSliding) {
705 $$$1(this._element).one(Event.SLID, function () {
706 return _this.to(index);
711 if (activeIndex === index) {
717 var direction = index > activeIndex ? Direction.NEXT : Direction.PREV;
719 this._slide(direction, this._items[index]);
722 _proto.dispose = function dispose() {
723 $$$1(this._element).off(EVENT_KEY);
724 $$$1.removeData(this._element, DATA_KEY);
727 this._element = null;
728 this._interval = null;
729 this._isPaused = null;
730 this._isSliding = null;
731 this._activeElement = null;
732 this._indicatorsElement = null;
736 _proto._getConfig = function _getConfig(config) {
737 config = _objectSpread({}, Default, config);
738 Util.typeCheckConfig(NAME, config, DefaultType);
742 _proto._addEventListeners = function _addEventListeners() {
745 if (this._config.keyboard) {
746 $$$1(this._element).on(Event.KEYDOWN, function (event) {
747 return _this2._keydown(event);
751 if (this._config.pause === 'hover') {
752 $$$1(this._element).on(Event.MOUSEENTER, function (event) {
753 return _this2.pause(event);
754 }).on(Event.MOUSELEAVE, function (event) {
755 return _this2.cycle(event);
758 if ('ontouchstart' in document.documentElement) {
759 // If it's a touch-enabled device, mouseenter/leave are fired as
760 // part of the mouse compatibility events on first tap - the carousel
761 // would stop cycling until user tapped out of it;
762 // here, we listen for touchend, explicitly pause the carousel
763 // (as if it's the second time we tap on it, mouseenter compat event
764 // is NOT fired) and after a timeout (to allow for mouse compatibility
765 // events to fire) we explicitly restart cycling
766 $$$1(this._element).on(Event.TOUCHEND, function () {
769 if (_this2.touchTimeout) {
770 clearTimeout(_this2.touchTimeout);
773 _this2.touchTimeout = setTimeout(function (event) {
774 return _this2.cycle(event);
775 }, TOUCHEVENT_COMPAT_WAIT + _this2._config.interval);
781 _proto._keydown = function _keydown(event) {
782 if (/input|textarea/i.test(event.target.tagName)) {
786 switch (event.which) {
787 case ARROW_LEFT_KEYCODE:
788 event.preventDefault();
792 case ARROW_RIGHT_KEYCODE:
793 event.preventDefault();
801 _proto._getItemIndex = function _getItemIndex(element) {
802 this._items = element && element.parentNode ? [].slice.call(element.parentNode.querySelectorAll(Selector.ITEM)) : [];
803 return this._items.indexOf(element);
806 _proto._getItemByDirection = function _getItemByDirection(direction, activeElement) {
807 var isNextDirection = direction === Direction.NEXT;
808 var isPrevDirection = direction === Direction.PREV;
810 var activeIndex = this._getItemIndex(activeElement);
812 var lastItemIndex = this._items.length - 1;
813 var isGoingToWrap = isPrevDirection && activeIndex === 0 || isNextDirection && activeIndex === lastItemIndex;
815 if (isGoingToWrap && !this._config.wrap) {
816 return activeElement;
819 var delta = direction === Direction.PREV ? -1 : 1;
820 var itemIndex = (activeIndex + delta) % this._items.length;
821 return itemIndex === -1 ? this._items[this._items.length - 1] : this._items[itemIndex];
824 _proto._triggerSlideEvent = function _triggerSlideEvent(relatedTarget, eventDirectionName) {
825 var targetIndex = this._getItemIndex(relatedTarget);
827 var fromIndex = this._getItemIndex(this._element.querySelector(Selector.ACTIVE_ITEM));
829 var slideEvent = $$$1.Event(Event.SLIDE, {
830 relatedTarget: relatedTarget,
831 direction: eventDirectionName,
835 $$$1(this._element).trigger(slideEvent);
839 _proto._setActiveIndicatorElement = function _setActiveIndicatorElement(element) {
840 if (this._indicatorsElement) {
841 var indicators = [].slice.call(this._indicatorsElement.querySelectorAll(Selector.ACTIVE));
842 $$$1(indicators).removeClass(ClassName.ACTIVE);
844 var nextIndicator = this._indicatorsElement.children[this._getItemIndex(element)];
847 $$$1(nextIndicator).addClass(ClassName.ACTIVE);
852 _proto._slide = function _slide(direction, element) {
855 var activeElement = this._element.querySelector(Selector.ACTIVE_ITEM);
857 var activeElementIndex = this._getItemIndex(activeElement);
859 var nextElement = element || activeElement && this._getItemByDirection(direction, activeElement);
861 var nextElementIndex = this._getItemIndex(nextElement);
863 var isCycling = Boolean(this._interval);
864 var directionalClassName;
866 var eventDirectionName;
868 if (direction === Direction.NEXT) {
869 directionalClassName = ClassName.LEFT;
870 orderClassName = ClassName.NEXT;
871 eventDirectionName = Direction.LEFT;
873 directionalClassName = ClassName.RIGHT;
874 orderClassName = ClassName.PREV;
875 eventDirectionName = Direction.RIGHT;
878 if (nextElement && $$$1(nextElement).hasClass(ClassName.ACTIVE)) {
879 this._isSliding = false;
883 var slideEvent = this._triggerSlideEvent(nextElement, eventDirectionName);
885 if (slideEvent.isDefaultPrevented()) {
889 if (!activeElement || !nextElement) {
890 // Some weirdness is happening, so we bail
894 this._isSliding = true;
900 this._setActiveIndicatorElement(nextElement);
902 var slidEvent = $$$1.Event(Event.SLID, {
903 relatedTarget: nextElement,
904 direction: eventDirectionName,
905 from: activeElementIndex,
909 if ($$$1(this._element).hasClass(ClassName.SLIDE)) {
910 $$$1(nextElement).addClass(orderClassName);
911 Util.reflow(nextElement);
912 $$$1(activeElement).addClass(directionalClassName);
913 $$$1(nextElement).addClass(directionalClassName);
914 var transitionDuration = Util.getTransitionDurationFromElement(activeElement);
915 $$$1(activeElement).one(Util.TRANSITION_END, function () {
916 $$$1(nextElement).removeClass(directionalClassName + " " + orderClassName).addClass(ClassName.ACTIVE);
917 $$$1(activeElement).removeClass(ClassName.ACTIVE + " " + orderClassName + " " + directionalClassName);
918 _this3._isSliding = false;
919 setTimeout(function () {
920 return $$$1(_this3._element).trigger(slidEvent);
922 }).emulateTransitionEnd(transitionDuration);
924 $$$1(activeElement).removeClass(ClassName.ACTIVE);
925 $$$1(nextElement).addClass(ClassName.ACTIVE);
926 this._isSliding = false;
927 $$$1(this._element).trigger(slidEvent);
936 Carousel._jQueryInterface = function _jQueryInterface(config) {
937 return this.each(function () {
938 var data = $$$1(this).data(DATA_KEY);
940 var _config = _objectSpread({}, Default, $$$1(this).data());
942 if (typeof config === 'object') {
943 _config = _objectSpread({}, _config, config);
946 var action = typeof config === 'string' ? config : _config.slide;
949 data = new Carousel(this, _config);
950 $$$1(this).data(DATA_KEY, data);
953 if (typeof config === 'number') {
955 } else if (typeof action === 'string') {
956 if (typeof data[action] === 'undefined') {
957 throw new TypeError("No method named \"" + action + "\"");
961 } else if (_config.interval) {
968 Carousel._dataApiClickHandler = function _dataApiClickHandler(event) {
969 var selector = Util.getSelectorFromElement(this);
975 var target = $$$1(selector)[0];
977 if (!target || !$$$1(target).hasClass(ClassName.CAROUSEL)) {
981 var config = _objectSpread({}, $$$1(target).data(), $$$1(this).data());
983 var slideIndex = this.getAttribute('data-slide-to');
986 config.interval = false;
989 Carousel._jQueryInterface.call($$$1(target), config);
992 $$$1(target).data(DATA_KEY).to(slideIndex);
995 event.preventDefault();
998 _createClass(Carousel, null, [{
1000 get: function get() {
1005 get: function get() {
1013 * ------------------------------------------------------------------------
1014 * Data Api implementation
1015 * ------------------------------------------------------------------------
1019 $$$1(document).on(Event.CLICK_DATA_API, Selector.DATA_SLIDE, Carousel._dataApiClickHandler);
1020 $$$1(window).on(Event.LOAD_DATA_API, function () {
1021 var carousels = [].slice.call(document.querySelectorAll(Selector.DATA_RIDE));
1023 for (var i = 0, len = carousels.length; i < len; i++) {
1024 var $carousel = $$$1(carousels[i]);
1026 Carousel._jQueryInterface.call($carousel, $carousel.data());
1030 * ------------------------------------------------------------------------
1032 * ------------------------------------------------------------------------
1035 $$$1.fn[NAME] = Carousel._jQueryInterface;
1036 $$$1.fn[NAME].Constructor = Carousel;
1038 $$$1.fn[NAME].noConflict = function () {
1039 $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
1040 return Carousel._jQueryInterface;
1047 * --------------------------------------------------------------------------
1048 * Bootstrap (v4.1.3): collapse.js
1049 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
1050 * --------------------------------------------------------------------------
1053 var Collapse = function ($$$1) {
1055 * ------------------------------------------------------------------------
1057 * ------------------------------------------------------------------------
1059 var NAME = 'collapse';
1060 var VERSION = '4.1.3';
1061 var DATA_KEY = 'bs.collapse';
1062 var EVENT_KEY = "." + DATA_KEY;
1063 var DATA_API_KEY = '.data-api';
1064 var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
1071 parent: '(string|element)'
1074 SHOW: "show" + EVENT_KEY,
1075 SHOWN: "shown" + EVENT_KEY,
1076 HIDE: "hide" + EVENT_KEY,
1077 HIDDEN: "hidden" + EVENT_KEY,
1078 CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY
1082 COLLAPSE: 'collapse',
1083 COLLAPSING: 'collapsing',
1084 COLLAPSED: 'collapsed'
1091 ACTIVES: '.show, .collapsing',
1092 DATA_TOGGLE: '[data-toggle="collapse"]'
1094 * ------------------------------------------------------------------------
1096 * ------------------------------------------------------------------------
1104 function Collapse(element, config) {
1105 this._isTransitioning = false;
1106 this._element = element;
1107 this._config = this._getConfig(config);
1108 this._triggerArray = $$$1.makeArray(document.querySelectorAll("[data-toggle=\"collapse\"][href=\"#" + element.id + "\"]," + ("[data-toggle=\"collapse\"][data-target=\"#" + element.id + "\"]")));
1109 var toggleList = [].slice.call(document.querySelectorAll(Selector.DATA_TOGGLE));
1111 for (var i = 0, len = toggleList.length; i < len; i++) {
1112 var elem = toggleList[i];
1113 var selector = Util.getSelectorFromElement(elem);
1114 var filterElement = [].slice.call(document.querySelectorAll(selector)).filter(function (foundElem) {
1115 return foundElem === element;
1118 if (selector !== null && filterElement.length > 0) {
1119 this._selector = selector;
1121 this._triggerArray.push(elem);
1125 this._parent = this._config.parent ? this._getParent() : null;
1127 if (!this._config.parent) {
1128 this._addAriaAndCollapsedClass(this._element, this._triggerArray);
1131 if (this._config.toggle) {
1137 var _proto = Collapse.prototype;
1140 _proto.toggle = function toggle() {
1141 if ($$$1(this._element).hasClass(ClassName.SHOW)) {
1148 _proto.show = function show() {
1151 if (this._isTransitioning || $$$1(this._element).hasClass(ClassName.SHOW)) {
1159 actives = [].slice.call(this._parent.querySelectorAll(Selector.ACTIVES)).filter(function (elem) {
1160 return elem.getAttribute('data-parent') === _this._config.parent;
1163 if (actives.length === 0) {
1169 activesData = $$$1(actives).not(this._selector).data(DATA_KEY);
1171 if (activesData && activesData._isTransitioning) {
1176 var startEvent = $$$1.Event(Event.SHOW);
1177 $$$1(this._element).trigger(startEvent);
1179 if (startEvent.isDefaultPrevented()) {
1184 Collapse._jQueryInterface.call($$$1(actives).not(this._selector), 'hide');
1187 $$$1(actives).data(DATA_KEY, null);
1191 var dimension = this._getDimension();
1193 $$$1(this._element).removeClass(ClassName.COLLAPSE).addClass(ClassName.COLLAPSING);
1194 this._element.style[dimension] = 0;
1196 if (this._triggerArray.length) {
1197 $$$1(this._triggerArray).removeClass(ClassName.COLLAPSED).attr('aria-expanded', true);
1200 this.setTransitioning(true);
1202 var complete = function complete() {
1203 $$$1(_this._element).removeClass(ClassName.COLLAPSING).addClass(ClassName.COLLAPSE).addClass(ClassName.SHOW);
1204 _this._element.style[dimension] = '';
1206 _this.setTransitioning(false);
1208 $$$1(_this._element).trigger(Event.SHOWN);
1211 var capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1);
1212 var scrollSize = "scroll" + capitalizedDimension;
1213 var transitionDuration = Util.getTransitionDurationFromElement(this._element);
1214 $$$1(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
1215 this._element.style[dimension] = this._element[scrollSize] + "px";
1218 _proto.hide = function hide() {
1221 if (this._isTransitioning || !$$$1(this._element).hasClass(ClassName.SHOW)) {
1225 var startEvent = $$$1.Event(Event.HIDE);
1226 $$$1(this._element).trigger(startEvent);
1228 if (startEvent.isDefaultPrevented()) {
1232 var dimension = this._getDimension();
1234 this._element.style[dimension] = this._element.getBoundingClientRect()[dimension] + "px";
1235 Util.reflow(this._element);
1236 $$$1(this._element).addClass(ClassName.COLLAPSING).removeClass(ClassName.COLLAPSE).removeClass(ClassName.SHOW);
1237 var triggerArrayLength = this._triggerArray.length;
1239 if (triggerArrayLength > 0) {
1240 for (var i = 0; i < triggerArrayLength; i++) {
1241 var trigger = this._triggerArray[i];
1242 var selector = Util.getSelectorFromElement(trigger);
1244 if (selector !== null) {
1245 var $elem = $$$1([].slice.call(document.querySelectorAll(selector)));
1247 if (!$elem.hasClass(ClassName.SHOW)) {
1248 $$$1(trigger).addClass(ClassName.COLLAPSED).attr('aria-expanded', false);
1254 this.setTransitioning(true);
1256 var complete = function complete() {
1257 _this2.setTransitioning(false);
1259 $$$1(_this2._element).removeClass(ClassName.COLLAPSING).addClass(ClassName.COLLAPSE).trigger(Event.HIDDEN);
1262 this._element.style[dimension] = '';
1263 var transitionDuration = Util.getTransitionDurationFromElement(this._element);
1264 $$$1(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
1267 _proto.setTransitioning = function setTransitioning(isTransitioning) {
1268 this._isTransitioning = isTransitioning;
1271 _proto.dispose = function dispose() {
1272 $$$1.removeData(this._element, DATA_KEY);
1273 this._config = null;
1274 this._parent = null;
1275 this._element = null;
1276 this._triggerArray = null;
1277 this._isTransitioning = null;
1281 _proto._getConfig = function _getConfig(config) {
1282 config = _objectSpread({}, Default, config);
1283 config.toggle = Boolean(config.toggle); // Coerce string values
1285 Util.typeCheckConfig(NAME, config, DefaultType);
1289 _proto._getDimension = function _getDimension() {
1290 var hasWidth = $$$1(this._element).hasClass(Dimension.WIDTH);
1291 return hasWidth ? Dimension.WIDTH : Dimension.HEIGHT;
1294 _proto._getParent = function _getParent() {
1299 if (Util.isElement(this._config.parent)) {
1300 parent = this._config.parent; // It's a jQuery object
1302 if (typeof this._config.parent.jquery !== 'undefined') {
1303 parent = this._config.parent[0];
1306 parent = document.querySelector(this._config.parent);
1309 var selector = "[data-toggle=\"collapse\"][data-parent=\"" + this._config.parent + "\"]";
1310 var children = [].slice.call(parent.querySelectorAll(selector));
1311 $$$1(children).each(function (i, element) {
1312 _this3._addAriaAndCollapsedClass(Collapse._getTargetFromElement(element), [element]);
1317 _proto._addAriaAndCollapsedClass = function _addAriaAndCollapsedClass(element, triggerArray) {
1319 var isOpen = $$$1(element).hasClass(ClassName.SHOW);
1321 if (triggerArray.length) {
1322 $$$1(triggerArray).toggleClass(ClassName.COLLAPSED, !isOpen).attr('aria-expanded', isOpen);
1328 Collapse._getTargetFromElement = function _getTargetFromElement(element) {
1329 var selector = Util.getSelectorFromElement(element);
1330 return selector ? document.querySelector(selector) : null;
1333 Collapse._jQueryInterface = function _jQueryInterface(config) {
1334 return this.each(function () {
1335 var $this = $$$1(this);
1336 var data = $this.data(DATA_KEY);
1338 var _config = _objectSpread({}, Default, $this.data(), typeof config === 'object' && config ? config : {});
1340 if (!data && _config.toggle && /show|hide/.test(config)) {
1341 _config.toggle = false;
1345 data = new Collapse(this, _config);
1346 $this.data(DATA_KEY, data);
1349 if (typeof config === 'string') {
1350 if (typeof data[config] === 'undefined') {
1351 throw new TypeError("No method named \"" + config + "\"");
1359 _createClass(Collapse, null, [{
1361 get: function get() {
1366 get: function get() {
1374 * ------------------------------------------------------------------------
1375 * Data Api implementation
1376 * ------------------------------------------------------------------------
1380 $$$1(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {
1381 // preventDefault only for <a> elements (which change the URL) not inside the collapsible element
1382 if (event.currentTarget.tagName === 'A') {
1383 event.preventDefault();
1386 var $trigger = $$$1(this);
1387 var selector = Util.getSelectorFromElement(this);
1388 var selectors = [].slice.call(document.querySelectorAll(selector));
1389 $$$1(selectors).each(function () {
1390 var $target = $$$1(this);
1391 var data = $target.data(DATA_KEY);
1392 var config = data ? 'toggle' : $trigger.data();
1394 Collapse._jQueryInterface.call($target, config);
1398 * ------------------------------------------------------------------------
1400 * ------------------------------------------------------------------------
1403 $$$1.fn[NAME] = Collapse._jQueryInterface;
1404 $$$1.fn[NAME].Constructor = Collapse;
1406 $$$1.fn[NAME].noConflict = function () {
1407 $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
1408 return Collapse._jQueryInterface;
1415 * --------------------------------------------------------------------------
1416 * Bootstrap (v4.1.3): dropdown.js
1417 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
1418 * --------------------------------------------------------------------------
1421 var Dropdown = function ($$$1) {
1423 * ------------------------------------------------------------------------
1425 * ------------------------------------------------------------------------
1427 var NAME = 'dropdown';
1428 var VERSION = '4.1.3';
1429 var DATA_KEY = 'bs.dropdown';
1430 var EVENT_KEY = "." + DATA_KEY;
1431 var DATA_API_KEY = '.data-api';
1432 var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
1433 var ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key
1435 var SPACE_KEYCODE = 32; // KeyboardEvent.which value for space key
1437 var TAB_KEYCODE = 9; // KeyboardEvent.which value for tab key
1439 var ARROW_UP_KEYCODE = 38; // KeyboardEvent.which value for up arrow key
1441 var ARROW_DOWN_KEYCODE = 40; // KeyboardEvent.which value for down arrow key
1443 var RIGHT_MOUSE_BUTTON_WHICH = 3; // MouseEvent.which value for the right button (assuming a right-handed mouse)
1445 var REGEXP_KEYDOWN = new RegExp(ARROW_UP_KEYCODE + "|" + ARROW_DOWN_KEYCODE + "|" + ESCAPE_KEYCODE);
1447 HIDE: "hide" + EVENT_KEY,
1448 HIDDEN: "hidden" + EVENT_KEY,
1449 SHOW: "show" + EVENT_KEY,
1450 SHOWN: "shown" + EVENT_KEY,
1451 CLICK: "click" + EVENT_KEY,
1452 CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY,
1453 KEYDOWN_DATA_API: "keydown" + EVENT_KEY + DATA_API_KEY,
1454 KEYUP_DATA_API: "keyup" + EVENT_KEY + DATA_API_KEY
1457 DISABLED: 'disabled',
1460 DROPRIGHT: 'dropright',
1461 DROPLEFT: 'dropleft',
1462 MENURIGHT: 'dropdown-menu-right',
1463 MENULEFT: 'dropdown-menu-left',
1464 POSITION_STATIC: 'position-static'
1467 DATA_TOGGLE: '[data-toggle="dropdown"]',
1468 FORM_CHILD: '.dropdown form',
1469 MENU: '.dropdown-menu',
1470 NAVBAR_NAV: '.navbar-nav',
1471 VISIBLE_ITEMS: '.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)'
1473 var AttachmentMap = {
1476 BOTTOM: 'bottom-start',
1477 BOTTOMEND: 'bottom-end',
1478 RIGHT: 'right-start',
1479 RIGHTEND: 'right-end',
1486 boundary: 'scrollParent',
1487 reference: 'toggle',
1491 offset: '(number|string|function)',
1493 boundary: '(string|element)',
1494 reference: '(string|element)',
1497 * ------------------------------------------------------------------------
1499 * ------------------------------------------------------------------------
1507 function Dropdown(element, config) {
1508 this._element = element;
1509 this._popper = null;
1510 this._config = this._getConfig(config);
1511 this._menu = this._getMenuElement();
1512 this._inNavbar = this._detectNavbar();
1514 this._addEventListeners();
1518 var _proto = Dropdown.prototype;
1521 _proto.toggle = function toggle() {
1522 if (this._element.disabled || $$$1(this._element).hasClass(ClassName.DISABLED)) {
1526 var parent = Dropdown._getParentFromElement(this._element);
1528 var isActive = $$$1(this._menu).hasClass(ClassName.SHOW);
1530 Dropdown._clearMenus();
1536 var relatedTarget = {
1537 relatedTarget: this._element
1539 var showEvent = $$$1.Event(Event.SHOW, relatedTarget);
1540 $$$1(parent).trigger(showEvent);
1542 if (showEvent.isDefaultPrevented()) {
1544 } // Disable totally Popper.js for Dropdown in Navbar
1547 if (!this._inNavbar) {
1549 * Check for Popper dependency
1550 * Popper - https://popper.js.org
1552 if (typeof Popper === 'undefined') {
1553 throw new TypeError('Bootstrap dropdown require Popper.js (https://popper.js.org)');
1556 var referenceElement = this._element;
1558 if (this._config.reference === 'parent') {
1559 referenceElement = parent;
1560 } else if (Util.isElement(this._config.reference)) {
1561 referenceElement = this._config.reference; // Check if it's jQuery element
1563 if (typeof this._config.reference.jquery !== 'undefined') {
1564 referenceElement = this._config.reference[0];
1566 } // If boundary is not `scrollParent`, then set position to `static`
1567 // to allow the menu to "escape" the scroll parent's boundaries
1568 // https://github.com/twbs/bootstrap/issues/24251
1571 if (this._config.boundary !== 'scrollParent') {
1572 $$$1(parent).addClass(ClassName.POSITION_STATIC);
1575 this._popper = new Popper(referenceElement, this._menu, this._getPopperConfig());
1576 } // If this is a touch-enabled device we add extra
1577 // empty mouseover listeners to the body's immediate children;
1578 // only needed because of broken event delegation on iOS
1579 // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
1582 if ('ontouchstart' in document.documentElement && $$$1(parent).closest(Selector.NAVBAR_NAV).length === 0) {
1583 $$$1(document.body).children().on('mouseover', null, $$$1.noop);
1586 this._element.focus();
1588 this._element.setAttribute('aria-expanded', true);
1590 $$$1(this._menu).toggleClass(ClassName.SHOW);
1591 $$$1(parent).toggleClass(ClassName.SHOW).trigger($$$1.Event(Event.SHOWN, relatedTarget));
1594 _proto.dispose = function dispose() {
1595 $$$1.removeData(this._element, DATA_KEY);
1596 $$$1(this._element).off(EVENT_KEY);
1597 this._element = null;
1600 if (this._popper !== null) {
1601 this._popper.destroy();
1603 this._popper = null;
1607 _proto.update = function update() {
1608 this._inNavbar = this._detectNavbar();
1610 if (this._popper !== null) {
1611 this._popper.scheduleUpdate();
1616 _proto._addEventListeners = function _addEventListeners() {
1619 $$$1(this._element).on(Event.CLICK, function (event) {
1620 event.preventDefault();
1621 event.stopPropagation();
1627 _proto._getConfig = function _getConfig(config) {
1628 config = _objectSpread({}, this.constructor.Default, $$$1(this._element).data(), config);
1629 Util.typeCheckConfig(NAME, config, this.constructor.DefaultType);
1633 _proto._getMenuElement = function _getMenuElement() {
1635 var parent = Dropdown._getParentFromElement(this._element);
1638 this._menu = parent.querySelector(Selector.MENU);
1645 _proto._getPlacement = function _getPlacement() {
1646 var $parentDropdown = $$$1(this._element.parentNode);
1647 var placement = AttachmentMap.BOTTOM; // Handle dropup
1649 if ($parentDropdown.hasClass(ClassName.DROPUP)) {
1650 placement = AttachmentMap.TOP;
1652 if ($$$1(this._menu).hasClass(ClassName.MENURIGHT)) {
1653 placement = AttachmentMap.TOPEND;
1655 } else if ($parentDropdown.hasClass(ClassName.DROPRIGHT)) {
1656 placement = AttachmentMap.RIGHT;
1657 } else if ($parentDropdown.hasClass(ClassName.DROPLEFT)) {
1658 placement = AttachmentMap.LEFT;
1659 } else if ($$$1(this._menu).hasClass(ClassName.MENURIGHT)) {
1660 placement = AttachmentMap.BOTTOMEND;
1666 _proto._detectNavbar = function _detectNavbar() {
1667 return $$$1(this._element).closest('.navbar').length > 0;
1670 _proto._getPopperConfig = function _getPopperConfig() {
1673 var offsetConf = {};
1675 if (typeof this._config.offset === 'function') {
1676 offsetConf.fn = function (data) {
1677 data.offsets = _objectSpread({}, data.offsets, _this2._config.offset(data.offsets) || {});
1681 offsetConf.offset = this._config.offset;
1684 var popperConfig = {
1685 placement: this._getPlacement(),
1689 enabled: this._config.flip
1692 boundariesElement: this._config.boundary
1694 } // Disable Popper.js if we have a static display
1698 if (this._config.display === 'static') {
1699 popperConfig.modifiers.applyStyle = {
1704 return popperConfig;
1708 Dropdown._jQueryInterface = function _jQueryInterface(config) {
1709 return this.each(function () {
1710 var data = $$$1(this).data(DATA_KEY);
1712 var _config = typeof config === 'object' ? config : null;
1715 data = new Dropdown(this, _config);
1716 $$$1(this).data(DATA_KEY, data);
1719 if (typeof config === 'string') {
1720 if (typeof data[config] === 'undefined') {
1721 throw new TypeError("No method named \"" + config + "\"");
1729 Dropdown._clearMenus = function _clearMenus(event) {
1730 if (event && (event.which === RIGHT_MOUSE_BUTTON_WHICH || event.type === 'keyup' && event.which !== TAB_KEYCODE)) {
1734 var toggles = [].slice.call(document.querySelectorAll(Selector.DATA_TOGGLE));
1736 for (var i = 0, len = toggles.length; i < len; i++) {
1737 var parent = Dropdown._getParentFromElement(toggles[i]);
1739 var context = $$$1(toggles[i]).data(DATA_KEY);
1740 var relatedTarget = {
1741 relatedTarget: toggles[i]
1744 if (event && event.type === 'click') {
1745 relatedTarget.clickEvent = event;
1752 var dropdownMenu = context._menu;
1754 if (!$$$1(parent).hasClass(ClassName.SHOW)) {
1758 if (event && (event.type === 'click' && /input|textarea/i.test(event.target.tagName) || event.type === 'keyup' && event.which === TAB_KEYCODE) && $$$1.contains(parent, event.target)) {
1762 var hideEvent = $$$1.Event(Event.HIDE, relatedTarget);
1763 $$$1(parent).trigger(hideEvent);
1765 if (hideEvent.isDefaultPrevented()) {
1767 } // If this is a touch-enabled device we remove the extra
1768 // empty mouseover listeners we added for iOS support
1771 if ('ontouchstart' in document.documentElement) {
1772 $$$1(document.body).children().off('mouseover', null, $$$1.noop);
1775 toggles[i].setAttribute('aria-expanded', 'false');
1776 $$$1(dropdownMenu).removeClass(ClassName.SHOW);
1777 $$$1(parent).removeClass(ClassName.SHOW).trigger($$$1.Event(Event.HIDDEN, relatedTarget));
1781 Dropdown._getParentFromElement = function _getParentFromElement(element) {
1783 var selector = Util.getSelectorFromElement(element);
1786 parent = document.querySelector(selector);
1789 return parent || element.parentNode;
1790 }; // eslint-disable-next-line complexity
1793 Dropdown._dataApiKeydownHandler = function _dataApiKeydownHandler(event) {
1794 // If not input/textarea:
1795 // - And not a key in REGEXP_KEYDOWN => not a dropdown command
1796 // If input/textarea:
1797 // - If space key => not a dropdown command
1798 // - If key is other than escape
1799 // - If key is not up or down => not a dropdown command
1800 // - If trigger inside the menu => not a dropdown command
1801 if (/input|textarea/i.test(event.target.tagName) ? event.which === SPACE_KEYCODE || event.which !== ESCAPE_KEYCODE && (event.which !== ARROW_DOWN_KEYCODE && event.which !== ARROW_UP_KEYCODE || $$$1(event.target).closest(Selector.MENU).length) : !REGEXP_KEYDOWN.test(event.which)) {
1805 event.preventDefault();
1806 event.stopPropagation();
1808 if (this.disabled || $$$1(this).hasClass(ClassName.DISABLED)) {
1812 var parent = Dropdown._getParentFromElement(this);
1814 var isActive = $$$1(parent).hasClass(ClassName.SHOW);
1816 if (!isActive && (event.which !== ESCAPE_KEYCODE || event.which !== SPACE_KEYCODE) || isActive && (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) {
1817 if (event.which === ESCAPE_KEYCODE) {
1818 var toggle = parent.querySelector(Selector.DATA_TOGGLE);
1819 $$$1(toggle).trigger('focus');
1822 $$$1(this).trigger('click');
1826 var items = [].slice.call(parent.querySelectorAll(Selector.VISIBLE_ITEMS));
1828 if (items.length === 0) {
1832 var index = items.indexOf(event.target);
1834 if (event.which === ARROW_UP_KEYCODE && index > 0) {
1839 if (event.which === ARROW_DOWN_KEYCODE && index < items.length - 1) {
1848 items[index].focus();
1851 _createClass(Dropdown, null, [{
1853 get: function get() {
1858 get: function get() {
1863 get: function get() {
1871 * ------------------------------------------------------------------------
1872 * Data Api implementation
1873 * ------------------------------------------------------------------------
1877 $$$1(document).on(Event.KEYDOWN_DATA_API, Selector.DATA_TOGGLE, Dropdown._dataApiKeydownHandler).on(Event.KEYDOWN_DATA_API, Selector.MENU, Dropdown._dataApiKeydownHandler).on(Event.CLICK_DATA_API + " " + Event.KEYUP_DATA_API, Dropdown._clearMenus).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {
1878 event.preventDefault();
1879 event.stopPropagation();
1881 Dropdown._jQueryInterface.call($$$1(this), 'toggle');
1882 }).on(Event.CLICK_DATA_API, Selector.FORM_CHILD, function (e) {
1883 e.stopPropagation();
1886 * ------------------------------------------------------------------------
1888 * ------------------------------------------------------------------------
1891 $$$1.fn[NAME] = Dropdown._jQueryInterface;
1892 $$$1.fn[NAME].Constructor = Dropdown;
1894 $$$1.fn[NAME].noConflict = function () {
1895 $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
1896 return Dropdown._jQueryInterface;
1903 * --------------------------------------------------------------------------
1904 * Bootstrap (v4.1.3): modal.js
1905 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
1906 * --------------------------------------------------------------------------
1909 var Modal = function ($$$1) {
1911 * ------------------------------------------------------------------------
1913 * ------------------------------------------------------------------------
1916 var VERSION = '4.1.3';
1917 var DATA_KEY = 'bs.modal';
1918 var EVENT_KEY = "." + DATA_KEY;
1919 var DATA_API_KEY = '.data-api';
1920 var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
1921 var ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key
1930 backdrop: '(boolean|string)',
1931 keyboard: 'boolean',
1936 HIDE: "hide" + EVENT_KEY,
1937 HIDDEN: "hidden" + EVENT_KEY,
1938 SHOW: "show" + EVENT_KEY,
1939 SHOWN: "shown" + EVENT_KEY,
1940 FOCUSIN: "focusin" + EVENT_KEY,
1941 RESIZE: "resize" + EVENT_KEY,
1942 CLICK_DISMISS: "click.dismiss" + EVENT_KEY,
1943 KEYDOWN_DISMISS: "keydown.dismiss" + EVENT_KEY,
1944 MOUSEUP_DISMISS: "mouseup.dismiss" + EVENT_KEY,
1945 MOUSEDOWN_DISMISS: "mousedown.dismiss" + EVENT_KEY,
1946 CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY
1949 SCROLLBAR_MEASURER: 'modal-scrollbar-measure',
1950 BACKDROP: 'modal-backdrop',
1956 DIALOG: '.modal-dialog',
1957 DATA_TOGGLE: '[data-toggle="modal"]',
1958 DATA_DISMISS: '[data-dismiss="modal"]',
1959 FIXED_CONTENT: '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top',
1960 STICKY_CONTENT: '.sticky-top'
1962 * ------------------------------------------------------------------------
1964 * ------------------------------------------------------------------------
1972 function Modal(element, config) {
1973 this._config = this._getConfig(config);
1974 this._element = element;
1975 this._dialog = element.querySelector(Selector.DIALOG);
1976 this._backdrop = null;
1977 this._isShown = false;
1978 this._isBodyOverflowing = false;
1979 this._ignoreBackdropClick = false;
1980 this._scrollbarWidth = 0;
1984 var _proto = Modal.prototype;
1987 _proto.toggle = function toggle(relatedTarget) {
1988 return this._isShown ? this.hide() : this.show(relatedTarget);
1991 _proto.show = function show(relatedTarget) {
1994 if (this._isTransitioning || this._isShown) {
1998 if ($$$1(this._element).hasClass(ClassName.FADE)) {
1999 this._isTransitioning = true;
2002 var showEvent = $$$1.Event(Event.SHOW, {
2003 relatedTarget: relatedTarget
2005 $$$1(this._element).trigger(showEvent);
2007 if (this._isShown || showEvent.isDefaultPrevented()) {
2011 this._isShown = true;
2013 this._checkScrollbar();
2015 this._setScrollbar();
2017 this._adjustDialog();
2019 $$$1(document.body).addClass(ClassName.OPEN);
2021 this._setEscapeEvent();
2023 this._setResizeEvent();
2025 $$$1(this._element).on(Event.CLICK_DISMISS, Selector.DATA_DISMISS, function (event) {
2026 return _this.hide(event);
2028 $$$1(this._dialog).on(Event.MOUSEDOWN_DISMISS, function () {
2029 $$$1(_this._element).one(Event.MOUSEUP_DISMISS, function (event) {
2030 if ($$$1(event.target).is(_this._element)) {
2031 _this._ignoreBackdropClick = true;
2036 this._showBackdrop(function () {
2037 return _this._showElement(relatedTarget);
2041 _proto.hide = function hide(event) {
2045 event.preventDefault();
2048 if (this._isTransitioning || !this._isShown) {
2052 var hideEvent = $$$1.Event(Event.HIDE);
2053 $$$1(this._element).trigger(hideEvent);
2055 if (!this._isShown || hideEvent.isDefaultPrevented()) {
2059 this._isShown = false;
2060 var transition = $$$1(this._element).hasClass(ClassName.FADE);
2063 this._isTransitioning = true;
2066 this._setEscapeEvent();
2068 this._setResizeEvent();
2070 $$$1(document).off(Event.FOCUSIN);
2071 $$$1(this._element).removeClass(ClassName.SHOW);
2072 $$$1(this._element).off(Event.CLICK_DISMISS);
2073 $$$1(this._dialog).off(Event.MOUSEDOWN_DISMISS);
2076 var transitionDuration = Util.getTransitionDurationFromElement(this._element);
2077 $$$1(this._element).one(Util.TRANSITION_END, function (event) {
2078 return _this2._hideModal(event);
2079 }).emulateTransitionEnd(transitionDuration);
2085 _proto.dispose = function dispose() {
2086 $$$1.removeData(this._element, DATA_KEY);
2087 $$$1(window, document, this._element, this._backdrop).off(EVENT_KEY);
2088 this._config = null;
2089 this._element = null;
2090 this._dialog = null;
2091 this._backdrop = null;
2092 this._isShown = null;
2093 this._isBodyOverflowing = null;
2094 this._ignoreBackdropClick = null;
2095 this._scrollbarWidth = null;
2098 _proto.handleUpdate = function handleUpdate() {
2099 this._adjustDialog();
2103 _proto._getConfig = function _getConfig(config) {
2104 config = _objectSpread({}, Default, config);
2105 Util.typeCheckConfig(NAME, config, DefaultType);
2109 _proto._showElement = function _showElement(relatedTarget) {
2112 var transition = $$$1(this._element).hasClass(ClassName.FADE);
2114 if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE) {
2115 // Don't move modal's DOM position
2116 document.body.appendChild(this._element);
2119 this._element.style.display = 'block';
2121 this._element.removeAttribute('aria-hidden');
2123 this._element.scrollTop = 0;
2126 Util.reflow(this._element);
2129 $$$1(this._element).addClass(ClassName.SHOW);
2131 if (this._config.focus) {
2132 this._enforceFocus();
2135 var shownEvent = $$$1.Event(Event.SHOWN, {
2136 relatedTarget: relatedTarget
2139 var transitionComplete = function transitionComplete() {
2140 if (_this3._config.focus) {
2141 _this3._element.focus();
2144 _this3._isTransitioning = false;
2145 $$$1(_this3._element).trigger(shownEvent);
2149 var transitionDuration = Util.getTransitionDurationFromElement(this._element);
2150 $$$1(this._dialog).one(Util.TRANSITION_END, transitionComplete).emulateTransitionEnd(transitionDuration);
2152 transitionComplete();
2156 _proto._enforceFocus = function _enforceFocus() {
2159 $$$1(document).off(Event.FOCUSIN) // Guard against infinite focus loop
2160 .on(Event.FOCUSIN, function (event) {
2161 if (document !== event.target && _this4._element !== event.target && $$$1(_this4._element).has(event.target).length === 0) {
2162 _this4._element.focus();
2167 _proto._setEscapeEvent = function _setEscapeEvent() {
2170 if (this._isShown && this._config.keyboard) {
2171 $$$1(this._element).on(Event.KEYDOWN_DISMISS, function (event) {
2172 if (event.which === ESCAPE_KEYCODE) {
2173 event.preventDefault();
2178 } else if (!this._isShown) {
2179 $$$1(this._element).off(Event.KEYDOWN_DISMISS);
2183 _proto._setResizeEvent = function _setResizeEvent() {
2186 if (this._isShown) {
2187 $$$1(window).on(Event.RESIZE, function (event) {
2188 return _this6.handleUpdate(event);
2191 $$$1(window).off(Event.RESIZE);
2195 _proto._hideModal = function _hideModal() {
2198 this._element.style.display = 'none';
2200 this._element.setAttribute('aria-hidden', true);
2202 this._isTransitioning = false;
2204 this._showBackdrop(function () {
2205 $$$1(document.body).removeClass(ClassName.OPEN);
2207 _this7._resetAdjustments();
2209 _this7._resetScrollbar();
2211 $$$1(_this7._element).trigger(Event.HIDDEN);
2215 _proto._removeBackdrop = function _removeBackdrop() {
2216 if (this._backdrop) {
2217 $$$1(this._backdrop).remove();
2218 this._backdrop = null;
2222 _proto._showBackdrop = function _showBackdrop(callback) {
2225 var animate = $$$1(this._element).hasClass(ClassName.FADE) ? ClassName.FADE : '';
2227 if (this._isShown && this._config.backdrop) {
2228 this._backdrop = document.createElement('div');
2229 this._backdrop.className = ClassName.BACKDROP;
2232 this._backdrop.classList.add(animate);
2235 $$$1(this._backdrop).appendTo(document.body);
2236 $$$1(this._element).on(Event.CLICK_DISMISS, function (event) {
2237 if (_this8._ignoreBackdropClick) {
2238 _this8._ignoreBackdropClick = false;
2242 if (event.target !== event.currentTarget) {
2246 if (_this8._config.backdrop === 'static') {
2247 _this8._element.focus();
2254 Util.reflow(this._backdrop);
2257 $$$1(this._backdrop).addClass(ClassName.SHOW);
2268 var backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop);
2269 $$$1(this._backdrop).one(Util.TRANSITION_END, callback).emulateTransitionEnd(backdropTransitionDuration);
2270 } else if (!this._isShown && this._backdrop) {
2271 $$$1(this._backdrop).removeClass(ClassName.SHOW);
2273 var callbackRemove = function callbackRemove() {
2274 _this8._removeBackdrop();
2281 if ($$$1(this._element).hasClass(ClassName.FADE)) {
2282 var _backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop);
2284 $$$1(this._backdrop).one(Util.TRANSITION_END, callbackRemove).emulateTransitionEnd(_backdropTransitionDuration);
2288 } else if (callback) {
2291 }; // ----------------------------------------------------------------------
2292 // the following methods are used to handle overflowing modals
2293 // todo (fat): these should probably be refactored out of modal.js
2294 // ----------------------------------------------------------------------
2297 _proto._adjustDialog = function _adjustDialog() {
2298 var isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight;
2300 if (!this._isBodyOverflowing && isModalOverflowing) {
2301 this._element.style.paddingLeft = this._scrollbarWidth + "px";
2304 if (this._isBodyOverflowing && !isModalOverflowing) {
2305 this._element.style.paddingRight = this._scrollbarWidth + "px";
2309 _proto._resetAdjustments = function _resetAdjustments() {
2310 this._element.style.paddingLeft = '';
2311 this._element.style.paddingRight = '';
2314 _proto._checkScrollbar = function _checkScrollbar() {
2315 var rect = document.body.getBoundingClientRect();
2316 this._isBodyOverflowing = rect.left + rect.right < window.innerWidth;
2317 this._scrollbarWidth = this._getScrollbarWidth();
2320 _proto._setScrollbar = function _setScrollbar() {
2323 if (this._isBodyOverflowing) {
2324 // Note: DOMNode.style.paddingRight returns the actual value or '' if not set
2325 // while $(DOMNode).css('padding-right') returns the calculated value or 0 if not set
2326 var fixedContent = [].slice.call(document.querySelectorAll(Selector.FIXED_CONTENT));
2327 var stickyContent = [].slice.call(document.querySelectorAll(Selector.STICKY_CONTENT)); // Adjust fixed content padding
2329 $$$1(fixedContent).each(function (index, element) {
2330 var actualPadding = element.style.paddingRight;
2331 var calculatedPadding = $$$1(element).css('padding-right');
2332 $$$1(element).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + _this9._scrollbarWidth + "px");
2333 }); // Adjust sticky content margin
2335 $$$1(stickyContent).each(function (index, element) {
2336 var actualMargin = element.style.marginRight;
2337 var calculatedMargin = $$$1(element).css('margin-right');
2338 $$$1(element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) - _this9._scrollbarWidth + "px");
2339 }); // Adjust body padding
2341 var actualPadding = document.body.style.paddingRight;
2342 var calculatedPadding = $$$1(document.body).css('padding-right');
2343 $$$1(document.body).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + this._scrollbarWidth + "px");
2347 _proto._resetScrollbar = function _resetScrollbar() {
2348 // Restore fixed content padding
2349 var fixedContent = [].slice.call(document.querySelectorAll(Selector.FIXED_CONTENT));
2350 $$$1(fixedContent).each(function (index, element) {
2351 var padding = $$$1(element).data('padding-right');
2352 $$$1(element).removeData('padding-right');
2353 element.style.paddingRight = padding ? padding : '';
2354 }); // Restore sticky content
2356 var elements = [].slice.call(document.querySelectorAll("" + Selector.STICKY_CONTENT));
2357 $$$1(elements).each(function (index, element) {
2358 var margin = $$$1(element).data('margin-right');
2360 if (typeof margin !== 'undefined') {
2361 $$$1(element).css('margin-right', margin).removeData('margin-right');
2363 }); // Restore body padding
2365 var padding = $$$1(document.body).data('padding-right');
2366 $$$1(document.body).removeData('padding-right');
2367 document.body.style.paddingRight = padding ? padding : '';
2370 _proto._getScrollbarWidth = function _getScrollbarWidth() {
2372 var scrollDiv = document.createElement('div');
2373 scrollDiv.className = ClassName.SCROLLBAR_MEASURER;
2374 document.body.appendChild(scrollDiv);
2375 var scrollbarWidth = scrollDiv.getBoundingClientRect().width - scrollDiv.clientWidth;
2376 document.body.removeChild(scrollDiv);
2377 return scrollbarWidth;
2381 Modal._jQueryInterface = function _jQueryInterface(config, relatedTarget) {
2382 return this.each(function () {
2383 var data = $$$1(this).data(DATA_KEY);
2385 var _config = _objectSpread({}, Default, $$$1(this).data(), typeof config === 'object' && config ? config : {});
2388 data = new Modal(this, _config);
2389 $$$1(this).data(DATA_KEY, data);
2392 if (typeof config === 'string') {
2393 if (typeof data[config] === 'undefined') {
2394 throw new TypeError("No method named \"" + config + "\"");
2397 data[config](relatedTarget);
2398 } else if (_config.show) {
2399 data.show(relatedTarget);
2404 _createClass(Modal, null, [{
2406 get: function get() {
2411 get: function get() {
2419 * ------------------------------------------------------------------------
2420 * Data Api implementation
2421 * ------------------------------------------------------------------------
2425 $$$1(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {
2429 var selector = Util.getSelectorFromElement(this);
2432 target = document.querySelector(selector);
2435 var config = $$$1(target).data(DATA_KEY) ? 'toggle' : _objectSpread({}, $$$1(target).data(), $$$1(this).data());
2437 if (this.tagName === 'A' || this.tagName === 'AREA') {
2438 event.preventDefault();
2441 var $target = $$$1(target).one(Event.SHOW, function (showEvent) {
2442 if (showEvent.isDefaultPrevented()) {
2443 // Only register focus restorer if modal will actually get shown
2447 $target.one(Event.HIDDEN, function () {
2448 if ($$$1(_this10).is(':visible')) {
2454 Modal._jQueryInterface.call($$$1(target), config, this);
2457 * ------------------------------------------------------------------------
2459 * ------------------------------------------------------------------------
2462 $$$1.fn[NAME] = Modal._jQueryInterface;
2463 $$$1.fn[NAME].Constructor = Modal;
2465 $$$1.fn[NAME].noConflict = function () {
2466 $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
2467 return Modal._jQueryInterface;
2474 * --------------------------------------------------------------------------
2475 * Bootstrap (v4.1.3): tooltip.js
2476 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
2477 * --------------------------------------------------------------------------
2480 var Tooltip = function ($$$1) {
2482 * ------------------------------------------------------------------------
2484 * ------------------------------------------------------------------------
2486 var NAME = 'tooltip';
2487 var VERSION = '4.1.3';
2488 var DATA_KEY = 'bs.tooltip';
2489 var EVENT_KEY = "." + DATA_KEY;
2490 var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
2491 var CLASS_PREFIX = 'bs-tooltip';
2492 var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g');
2494 animation: 'boolean',
2496 title: '(string|element|function)',
2498 delay: '(number|object)',
2500 selector: '(string|boolean)',
2501 placement: '(string|function)',
2502 offset: '(number|string)',
2503 container: '(string|element|boolean)',
2504 fallbackPlacement: '(string|array)',
2505 boundary: '(string|element)'
2507 var AttachmentMap = {
2516 template: '<div class="tooltip" role="tooltip">' + '<div class="arrow"></div>' + '<div class="tooltip-inner"></div></div>',
2517 trigger: 'hover focus',
2525 fallbackPlacement: 'flip',
2526 boundary: 'scrollParent'
2533 HIDE: "hide" + EVENT_KEY,
2534 HIDDEN: "hidden" + EVENT_KEY,
2535 SHOW: "show" + EVENT_KEY,
2536 SHOWN: "shown" + EVENT_KEY,
2537 INSERTED: "inserted" + EVENT_KEY,
2538 CLICK: "click" + EVENT_KEY,
2539 FOCUSIN: "focusin" + EVENT_KEY,
2540 FOCUSOUT: "focusout" + EVENT_KEY,
2541 MOUSEENTER: "mouseenter" + EVENT_KEY,
2542 MOUSELEAVE: "mouseleave" + EVENT_KEY
2549 TOOLTIP: '.tooltip',
2550 TOOLTIP_INNER: '.tooltip-inner',
2559 * ------------------------------------------------------------------------
2561 * ------------------------------------------------------------------------
2569 function Tooltip(element, config) {
2571 * Check for Popper dependency
2572 * Popper - https://popper.js.org
2574 if (typeof Popper === 'undefined') {
2575 throw new TypeError('Bootstrap tooltips require Popper.js (https://popper.js.org)');
2579 this._isEnabled = true;
2581 this._hoverState = '';
2582 this._activeTrigger = {};
2583 this._popper = null; // Protected
2585 this.element = element;
2586 this.config = this._getConfig(config);
2589 this._setListeners();
2593 var _proto = Tooltip.prototype;
2596 _proto.enable = function enable() {
2597 this._isEnabled = true;
2600 _proto.disable = function disable() {
2601 this._isEnabled = false;
2604 _proto.toggleEnabled = function toggleEnabled() {
2605 this._isEnabled = !this._isEnabled;
2608 _proto.toggle = function toggle(event) {
2609 if (!this._isEnabled) {
2614 var dataKey = this.constructor.DATA_KEY;
2615 var context = $$$1(event.currentTarget).data(dataKey);
2618 context = new this.constructor(event.currentTarget, this._getDelegateConfig());
2619 $$$1(event.currentTarget).data(dataKey, context);
2622 context._activeTrigger.click = !context._activeTrigger.click;
2624 if (context._isWithActiveTrigger()) {
2625 context._enter(null, context);
2627 context._leave(null, context);
2630 if ($$$1(this.getTipElement()).hasClass(ClassName.SHOW)) {
2631 this._leave(null, this);
2636 this._enter(null, this);
2640 _proto.dispose = function dispose() {
2641 clearTimeout(this._timeout);
2642 $$$1.removeData(this.element, this.constructor.DATA_KEY);
2643 $$$1(this.element).off(this.constructor.EVENT_KEY);
2644 $$$1(this.element).closest('.modal').off('hide.bs.modal');
2647 $$$1(this.tip).remove();
2650 this._isEnabled = null;
2651 this._timeout = null;
2652 this._hoverState = null;
2653 this._activeTrigger = null;
2655 if (this._popper !== null) {
2656 this._popper.destroy();
2659 this._popper = null;
2660 this.element = null;
2665 _proto.show = function show() {
2668 if ($$$1(this.element).css('display') === 'none') {
2669 throw new Error('Please use show on visible elements');
2672 var showEvent = $$$1.Event(this.constructor.Event.SHOW);
2674 if (this.isWithContent() && this._isEnabled) {
2675 $$$1(this.element).trigger(showEvent);
2676 var isInTheDom = $$$1.contains(this.element.ownerDocument.documentElement, this.element);
2678 if (showEvent.isDefaultPrevented() || !isInTheDom) {
2682 var tip = this.getTipElement();
2683 var tipId = Util.getUID(this.constructor.NAME);
2684 tip.setAttribute('id', tipId);
2685 this.element.setAttribute('aria-describedby', tipId);
2688 if (this.config.animation) {
2689 $$$1(tip).addClass(ClassName.FADE);
2692 var placement = typeof this.config.placement === 'function' ? this.config.placement.call(this, tip, this.element) : this.config.placement;
2694 var attachment = this._getAttachment(placement);
2696 this.addAttachmentClass(attachment);
2697 var container = this.config.container === false ? document.body : $$$1(document).find(this.config.container);
2698 $$$1(tip).data(this.constructor.DATA_KEY, this);
2700 if (!$$$1.contains(this.element.ownerDocument.documentElement, this.tip)) {
2701 $$$1(tip).appendTo(container);
2704 $$$1(this.element).trigger(this.constructor.Event.INSERTED);
2705 this._popper = new Popper(this.element, tip, {
2706 placement: attachment,
2709 offset: this.config.offset
2712 behavior: this.config.fallbackPlacement
2715 element: Selector.ARROW
2718 boundariesElement: this.config.boundary
2721 onCreate: function onCreate(data) {
2722 if (data.originalPlacement !== data.placement) {
2723 _this._handlePopperPlacementChange(data);
2726 onUpdate: function onUpdate(data) {
2727 _this._handlePopperPlacementChange(data);
2730 $$$1(tip).addClass(ClassName.SHOW); // If this is a touch-enabled device we add extra
2731 // empty mouseover listeners to the body's immediate children;
2732 // only needed because of broken event delegation on iOS
2733 // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
2735 if ('ontouchstart' in document.documentElement) {
2736 $$$1(document.body).children().on('mouseover', null, $$$1.noop);
2739 var complete = function complete() {
2740 if (_this.config.animation) {
2741 _this._fixTransition();
2744 var prevHoverState = _this._hoverState;
2745 _this._hoverState = null;
2746 $$$1(_this.element).trigger(_this.constructor.Event.SHOWN);
2748 if (prevHoverState === HoverState.OUT) {
2749 _this._leave(null, _this);
2753 if ($$$1(this.tip).hasClass(ClassName.FADE)) {
2754 var transitionDuration = Util.getTransitionDurationFromElement(this.tip);
2755 $$$1(this.tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
2762 _proto.hide = function hide(callback) {
2765 var tip = this.getTipElement();
2766 var hideEvent = $$$1.Event(this.constructor.Event.HIDE);
2768 var complete = function complete() {
2769 if (_this2._hoverState !== HoverState.SHOW && tip.parentNode) {
2770 tip.parentNode.removeChild(tip);
2773 _this2._cleanTipClass();
2775 _this2.element.removeAttribute('aria-describedby');
2777 $$$1(_this2.element).trigger(_this2.constructor.Event.HIDDEN);
2779 if (_this2._popper !== null) {
2780 _this2._popper.destroy();
2788 $$$1(this.element).trigger(hideEvent);
2790 if (hideEvent.isDefaultPrevented()) {
2794 $$$1(tip).removeClass(ClassName.SHOW); // If this is a touch-enabled device we remove the extra
2795 // empty mouseover listeners we added for iOS support
2797 if ('ontouchstart' in document.documentElement) {
2798 $$$1(document.body).children().off('mouseover', null, $$$1.noop);
2801 this._activeTrigger[Trigger.CLICK] = false;
2802 this._activeTrigger[Trigger.FOCUS] = false;
2803 this._activeTrigger[Trigger.HOVER] = false;
2805 if ($$$1(this.tip).hasClass(ClassName.FADE)) {
2806 var transitionDuration = Util.getTransitionDurationFromElement(tip);
2807 $$$1(tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
2812 this._hoverState = '';
2815 _proto.update = function update() {
2816 if (this._popper !== null) {
2817 this._popper.scheduleUpdate();
2822 _proto.isWithContent = function isWithContent() {
2823 return Boolean(this.getTitle());
2826 _proto.addAttachmentClass = function addAttachmentClass(attachment) {
2827 $$$1(this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment);
2830 _proto.getTipElement = function getTipElement() {
2831 this.tip = this.tip || $$$1(this.config.template)[0];
2835 _proto.setContent = function setContent() {
2836 var tip = this.getTipElement();
2837 this.setElementContent($$$1(tip.querySelectorAll(Selector.TOOLTIP_INNER)), this.getTitle());
2838 $$$1(tip).removeClass(ClassName.FADE + " " + ClassName.SHOW);
2841 _proto.setElementContent = function setElementContent($element, content) {
2842 var html = this.config.html;
2844 if (typeof content === 'object' && (content.nodeType || content.jquery)) {
2845 // Content is a DOM node or a jQuery
2847 if (!$$$1(content).parent().is($element)) {
2848 $element.empty().append(content);
2851 $element.text($$$1(content).text());
2854 $element[html ? 'html' : 'text'](content);
2858 _proto.getTitle = function getTitle() {
2859 var title = this.element.getAttribute('data-original-title');
2862 title = typeof this.config.title === 'function' ? this.config.title.call(this.element) : this.config.title;
2869 _proto._getAttachment = function _getAttachment(placement) {
2870 return AttachmentMap[placement.toUpperCase()];
2873 _proto._setListeners = function _setListeners() {
2876 var triggers = this.config.trigger.split(' ');
2877 triggers.forEach(function (trigger) {
2878 if (trigger === 'click') {
2879 $$$1(_this3.element).on(_this3.constructor.Event.CLICK, _this3.config.selector, function (event) {
2880 return _this3.toggle(event);
2882 } else if (trigger !== Trigger.MANUAL) {
2883 var eventIn = trigger === Trigger.HOVER ? _this3.constructor.Event.MOUSEENTER : _this3.constructor.Event.FOCUSIN;
2884 var eventOut = trigger === Trigger.HOVER ? _this3.constructor.Event.MOUSELEAVE : _this3.constructor.Event.FOCUSOUT;
2885 $$$1(_this3.element).on(eventIn, _this3.config.selector, function (event) {
2886 return _this3._enter(event);
2887 }).on(eventOut, _this3.config.selector, function (event) {
2888 return _this3._leave(event);
2892 $$$1(_this3.element).closest('.modal').on('hide.bs.modal', function () {
2893 return _this3.hide();
2897 if (this.config.selector) {
2898 this.config = _objectSpread({}, this.config, {
2907 _proto._fixTitle = function _fixTitle() {
2908 var titleType = typeof this.element.getAttribute('data-original-title');
2910 if (this.element.getAttribute('title') || titleType !== 'string') {
2911 this.element.setAttribute('data-original-title', this.element.getAttribute('title') || '');
2912 this.element.setAttribute('title', '');
2916 _proto._enter = function _enter(event, context) {
2917 var dataKey = this.constructor.DATA_KEY;
2918 context = context || $$$1(event.currentTarget).data(dataKey);
2921 context = new this.constructor(event.currentTarget, this._getDelegateConfig());
2922 $$$1(event.currentTarget).data(dataKey, context);
2926 context._activeTrigger[event.type === 'focusin' ? Trigger.FOCUS : Trigger.HOVER] = true;
2929 if ($$$1(context.getTipElement()).hasClass(ClassName.SHOW) || context._hoverState === HoverState.SHOW) {
2930 context._hoverState = HoverState.SHOW;
2934 clearTimeout(context._timeout);
2935 context._hoverState = HoverState.SHOW;
2937 if (!context.config.delay || !context.config.delay.show) {
2942 context._timeout = setTimeout(function () {
2943 if (context._hoverState === HoverState.SHOW) {
2946 }, context.config.delay.show);
2949 _proto._leave = function _leave(event, context) {
2950 var dataKey = this.constructor.DATA_KEY;
2951 context = context || $$$1(event.currentTarget).data(dataKey);
2954 context = new this.constructor(event.currentTarget, this._getDelegateConfig());
2955 $$$1(event.currentTarget).data(dataKey, context);
2959 context._activeTrigger[event.type === 'focusout' ? Trigger.FOCUS : Trigger.HOVER] = false;
2962 if (context._isWithActiveTrigger()) {
2966 clearTimeout(context._timeout);
2967 context._hoverState = HoverState.OUT;
2969 if (!context.config.delay || !context.config.delay.hide) {
2974 context._timeout = setTimeout(function () {
2975 if (context._hoverState === HoverState.OUT) {
2978 }, context.config.delay.hide);
2981 _proto._isWithActiveTrigger = function _isWithActiveTrigger() {
2982 for (var trigger in this._activeTrigger) {
2983 if (this._activeTrigger[trigger]) {
2991 _proto._getConfig = function _getConfig(config) {
2992 config = _objectSpread({}, this.constructor.Default, $$$1(this.element).data(), typeof config === 'object' && config ? config : {});
2994 if (typeof config.delay === 'number') {
3001 if (typeof config.title === 'number') {
3002 config.title = config.title.toString();
3005 if (typeof config.content === 'number') {
3006 config.content = config.content.toString();
3009 Util.typeCheckConfig(NAME, config, this.constructor.DefaultType);
3013 _proto._getDelegateConfig = function _getDelegateConfig() {
3017 for (var key in this.config) {
3018 if (this.constructor.Default[key] !== this.config[key]) {
3019 config[key] = this.config[key];
3027 _proto._cleanTipClass = function _cleanTipClass() {
3028 var $tip = $$$1(this.getTipElement());
3029 var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX);
3031 if (tabClass !== null && tabClass.length) {
3032 $tip.removeClass(tabClass.join(''));
3036 _proto._handlePopperPlacementChange = function _handlePopperPlacementChange(popperData) {
3037 var popperInstance = popperData.instance;
3038 this.tip = popperInstance.popper;
3040 this._cleanTipClass();
3042 this.addAttachmentClass(this._getAttachment(popperData.placement));
3045 _proto._fixTransition = function _fixTransition() {
3046 var tip = this.getTipElement();
3047 var initConfigAnimation = this.config.animation;
3049 if (tip.getAttribute('x-placement') !== null) {
3053 $$$1(tip).removeClass(ClassName.FADE);
3054 this.config.animation = false;
3057 this.config.animation = initConfigAnimation;
3061 Tooltip._jQueryInterface = function _jQueryInterface(config) {
3062 return this.each(function () {
3063 var data = $$$1(this).data(DATA_KEY);
3065 var _config = typeof config === 'object' && config;
3067 if (!data && /dispose|hide/.test(config)) {
3072 data = new Tooltip(this, _config);
3073 $$$1(this).data(DATA_KEY, data);
3076 if (typeof config === 'string') {
3077 if (typeof data[config] === 'undefined') {
3078 throw new TypeError("No method named \"" + config + "\"");
3086 _createClass(Tooltip, null, [{
3088 get: function get() {
3093 get: function get() {
3098 get: function get() {
3103 get: function get() {
3108 get: function get() {
3113 get: function get() {
3118 get: function get() {
3126 * ------------------------------------------------------------------------
3128 * ------------------------------------------------------------------------
3132 $$$1.fn[NAME] = Tooltip._jQueryInterface;
3133 $$$1.fn[NAME].Constructor = Tooltip;
3135 $$$1.fn[NAME].noConflict = function () {
3136 $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
3137 return Tooltip._jQueryInterface;
3144 * --------------------------------------------------------------------------
3145 * Bootstrap (v4.1.3): popover.js
3146 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
3147 * --------------------------------------------------------------------------
3150 var Popover = function ($$$1) {
3152 * ------------------------------------------------------------------------
3154 * ------------------------------------------------------------------------
3156 var NAME = 'popover';
3157 var VERSION = '4.1.3';
3158 var DATA_KEY = 'bs.popover';
3159 var EVENT_KEY = "." + DATA_KEY;
3160 var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
3161 var CLASS_PREFIX = 'bs-popover';
3162 var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g');
3164 var Default = _objectSpread({}, Tooltip.Default, {
3168 template: '<div class="popover" role="tooltip">' + '<div class="arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div></div>'
3171 var DefaultType = _objectSpread({}, Tooltip.DefaultType, {
3172 content: '(string|element|function)'
3180 TITLE: '.popover-header',
3181 CONTENT: '.popover-body'
3184 HIDE: "hide" + EVENT_KEY,
3185 HIDDEN: "hidden" + EVENT_KEY,
3186 SHOW: "show" + EVENT_KEY,
3187 SHOWN: "shown" + EVENT_KEY,
3188 INSERTED: "inserted" + EVENT_KEY,
3189 CLICK: "click" + EVENT_KEY,
3190 FOCUSIN: "focusin" + EVENT_KEY,
3191 FOCUSOUT: "focusout" + EVENT_KEY,
3192 MOUSEENTER: "mouseenter" + EVENT_KEY,
3193 MOUSELEAVE: "mouseleave" + EVENT_KEY
3195 * ------------------------------------------------------------------------
3197 * ------------------------------------------------------------------------
3204 function (_Tooltip) {
3205 _inheritsLoose(Popover, _Tooltip);
3207 function Popover() {
3208 return _Tooltip.apply(this, arguments) || this;
3211 var _proto = Popover.prototype;
3214 _proto.isWithContent = function isWithContent() {
3215 return this.getTitle() || this._getContent();
3218 _proto.addAttachmentClass = function addAttachmentClass(attachment) {
3219 $$$1(this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment);
3222 _proto.getTipElement = function getTipElement() {
3223 this.tip = this.tip || $$$1(this.config.template)[0];
3227 _proto.setContent = function setContent() {
3228 var $tip = $$$1(this.getTipElement()); // We use append for html objects to maintain js events
3230 this.setElementContent($tip.find(Selector.TITLE), this.getTitle());
3232 var content = this._getContent();
3234 if (typeof content === 'function') {
3235 content = content.call(this.element);
3238 this.setElementContent($tip.find(Selector.CONTENT), content);
3239 $tip.removeClass(ClassName.FADE + " " + ClassName.SHOW);
3243 _proto._getContent = function _getContent() {
3244 return this.element.getAttribute('data-content') || this.config.content;
3247 _proto._cleanTipClass = function _cleanTipClass() {
3248 var $tip = $$$1(this.getTipElement());
3249 var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX);
3251 if (tabClass !== null && tabClass.length > 0) {
3252 $tip.removeClass(tabClass.join(''));
3257 Popover._jQueryInterface = function _jQueryInterface(config) {
3258 return this.each(function () {
3259 var data = $$$1(this).data(DATA_KEY);
3261 var _config = typeof config === 'object' ? config : null;
3263 if (!data && /destroy|hide/.test(config)) {
3268 data = new Popover(this, _config);
3269 $$$1(this).data(DATA_KEY, data);
3272 if (typeof config === 'string') {
3273 if (typeof data[config] === 'undefined') {
3274 throw new TypeError("No method named \"" + config + "\"");
3282 _createClass(Popover, null, [{
3285 get: function get() {
3290 get: function get() {
3295 get: function get() {
3300 get: function get() {
3305 get: function get() {
3310 get: function get() {
3315 get: function get() {
3323 * ------------------------------------------------------------------------
3325 * ------------------------------------------------------------------------
3329 $$$1.fn[NAME] = Popover._jQueryInterface;
3330 $$$1.fn[NAME].Constructor = Popover;
3332 $$$1.fn[NAME].noConflict = function () {
3333 $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
3334 return Popover._jQueryInterface;
3341 * --------------------------------------------------------------------------
3342 * Bootstrap (v4.1.3): scrollspy.js
3343 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
3344 * --------------------------------------------------------------------------
3347 var ScrollSpy = function ($$$1) {
3349 * ------------------------------------------------------------------------
3351 * ------------------------------------------------------------------------
3353 var NAME = 'scrollspy';
3354 var VERSION = '4.1.3';
3355 var DATA_KEY = 'bs.scrollspy';
3356 var EVENT_KEY = "." + DATA_KEY;
3357 var DATA_API_KEY = '.data-api';
3358 var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
3367 target: '(string|element)'
3370 ACTIVATE: "activate" + EVENT_KEY,
3371 SCROLL: "scroll" + EVENT_KEY,
3372 LOAD_DATA_API: "load" + EVENT_KEY + DATA_API_KEY
3375 DROPDOWN_ITEM: 'dropdown-item',
3376 DROPDOWN_MENU: 'dropdown-menu',
3380 DATA_SPY: '[data-spy="scroll"]',
3382 NAV_LIST_GROUP: '.nav, .list-group',
3383 NAV_LINKS: '.nav-link',
3384 NAV_ITEMS: '.nav-item',
3385 LIST_ITEMS: '.list-group-item',
3386 DROPDOWN: '.dropdown',
3387 DROPDOWN_ITEMS: '.dropdown-item',
3388 DROPDOWN_TOGGLE: '.dropdown-toggle'
3390 var OffsetMethod = {
3392 POSITION: 'position'
3394 * ------------------------------------------------------------------------
3396 * ------------------------------------------------------------------------
3404 function ScrollSpy(element, config) {
3407 this._element = element;
3408 this._scrollElement = element.tagName === 'BODY' ? window : element;
3409 this._config = this._getConfig(config);
3410 this._selector = this._config.target + " " + Selector.NAV_LINKS + "," + (this._config.target + " " + Selector.LIST_ITEMS + ",") + (this._config.target + " " + Selector.DROPDOWN_ITEMS);
3413 this._activeTarget = null;
3414 this._scrollHeight = 0;
3415 $$$1(this._scrollElement).on(Event.SCROLL, function (event) {
3416 return _this._process(event);
3424 var _proto = ScrollSpy.prototype;
3427 _proto.refresh = function refresh() {
3430 var autoMethod = this._scrollElement === this._scrollElement.window ? OffsetMethod.OFFSET : OffsetMethod.POSITION;
3431 var offsetMethod = this._config.method === 'auto' ? autoMethod : this._config.method;
3432 var offsetBase = offsetMethod === OffsetMethod.POSITION ? this._getScrollTop() : 0;
3435 this._scrollHeight = this._getScrollHeight();
3436 var targets = [].slice.call(document.querySelectorAll(this._selector));
3437 targets.map(function (element) {
3439 var targetSelector = Util.getSelectorFromElement(element);
3441 if (targetSelector) {
3442 target = document.querySelector(targetSelector);
3446 var targetBCR = target.getBoundingClientRect();
3448 if (targetBCR.width || targetBCR.height) {
3449 // TODO (fat): remove sketch reliance on jQuery position/offset
3450 return [$$$1(target)[offsetMethod]().top + offsetBase, targetSelector];
3455 }).filter(function (item) {
3457 }).sort(function (a, b) {
3459 }).forEach(function (item) {
3460 _this2._offsets.push(item[0]);
3462 _this2._targets.push(item[1]);
3466 _proto.dispose = function dispose() {
3467 $$$1.removeData(this._element, DATA_KEY);
3468 $$$1(this._scrollElement).off(EVENT_KEY);
3469 this._element = null;
3470 this._scrollElement = null;
3471 this._config = null;
3472 this._selector = null;
3473 this._offsets = null;
3474 this._targets = null;
3475 this._activeTarget = null;
3476 this._scrollHeight = null;
3480 _proto._getConfig = function _getConfig(config) {
3481 config = _objectSpread({}, Default, typeof config === 'object' && config ? config : {});
3483 if (typeof config.target !== 'string') {
3484 var id = $$$1(config.target).attr('id');
3487 id = Util.getUID(NAME);
3488 $$$1(config.target).attr('id', id);
3491 config.target = "#" + id;
3494 Util.typeCheckConfig(NAME, config, DefaultType);
3498 _proto._getScrollTop = function _getScrollTop() {
3499 return this._scrollElement === window ? this._scrollElement.pageYOffset : this._scrollElement.scrollTop;
3502 _proto._getScrollHeight = function _getScrollHeight() {
3503 return this._scrollElement.scrollHeight || Math.max(document.body.scrollHeight, document.documentElement.scrollHeight);
3506 _proto._getOffsetHeight = function _getOffsetHeight() {
3507 return this._scrollElement === window ? window.innerHeight : this._scrollElement.getBoundingClientRect().height;
3510 _proto._process = function _process() {
3511 var scrollTop = this._getScrollTop() + this._config.offset;
3513 var scrollHeight = this._getScrollHeight();
3515 var maxScroll = this._config.offset + scrollHeight - this._getOffsetHeight();
3517 if (this._scrollHeight !== scrollHeight) {
3521 if (scrollTop >= maxScroll) {
3522 var target = this._targets[this._targets.length - 1];
3524 if (this._activeTarget !== target) {
3525 this._activate(target);
3531 if (this._activeTarget && scrollTop < this._offsets[0] && this._offsets[0] > 0) {
3532 this._activeTarget = null;
3539 var offsetLength = this._offsets.length;
3541 for (var i = offsetLength; i--;) {
3542 var isActiveTarget = this._activeTarget !== this._targets[i] && scrollTop >= this._offsets[i] && (typeof this._offsets[i + 1] === 'undefined' || scrollTop < this._offsets[i + 1]);
3544 if (isActiveTarget) {
3545 this._activate(this._targets[i]);
3550 _proto._activate = function _activate(target) {
3551 this._activeTarget = target;
3555 var queries = this._selector.split(','); // eslint-disable-next-line arrow-body-style
3558 queries = queries.map(function (selector) {
3559 return selector + "[data-target=\"" + target + "\"]," + (selector + "[href=\"" + target + "\"]");
3561 var $link = $$$1([].slice.call(document.querySelectorAll(queries.join(','))));
3563 if ($link.hasClass(ClassName.DROPDOWN_ITEM)) {
3564 $link.closest(Selector.DROPDOWN).find(Selector.DROPDOWN_TOGGLE).addClass(ClassName.ACTIVE);
3565 $link.addClass(ClassName.ACTIVE);
3567 // Set triggered link as active
3568 $link.addClass(ClassName.ACTIVE); // Set triggered links parents as active
3569 // With both <ul> and <nav> markup a parent is the previous sibling of any nav ancestor
3571 $link.parents(Selector.NAV_LIST_GROUP).prev(Selector.NAV_LINKS + ", " + Selector.LIST_ITEMS).addClass(ClassName.ACTIVE); // Handle special case when .nav-link is inside .nav-item
3573 $link.parents(Selector.NAV_LIST_GROUP).prev(Selector.NAV_ITEMS).children(Selector.NAV_LINKS).addClass(ClassName.ACTIVE);
3576 $$$1(this._scrollElement).trigger(Event.ACTIVATE, {
3577 relatedTarget: target
3581 _proto._clear = function _clear() {
3582 var nodes = [].slice.call(document.querySelectorAll(this._selector));
3583 $$$1(nodes).filter(Selector.ACTIVE).removeClass(ClassName.ACTIVE);
3587 ScrollSpy._jQueryInterface = function _jQueryInterface(config) {
3588 return this.each(function () {
3589 var data = $$$1(this).data(DATA_KEY);
3591 var _config = typeof config === 'object' && config;
3594 data = new ScrollSpy(this, _config);
3595 $$$1(this).data(DATA_KEY, data);
3598 if (typeof config === 'string') {
3599 if (typeof data[config] === 'undefined') {
3600 throw new TypeError("No method named \"" + config + "\"");
3608 _createClass(ScrollSpy, null, [{
3610 get: function get() {
3615 get: function get() {
3623 * ------------------------------------------------------------------------
3624 * Data Api implementation
3625 * ------------------------------------------------------------------------
3629 $$$1(window).on(Event.LOAD_DATA_API, function () {
3630 var scrollSpys = [].slice.call(document.querySelectorAll(Selector.DATA_SPY));
3631 var scrollSpysLength = scrollSpys.length;
3633 for (var i = scrollSpysLength; i--;) {
3634 var $spy = $$$1(scrollSpys[i]);
3636 ScrollSpy._jQueryInterface.call($spy, $spy.data());
3640 * ------------------------------------------------------------------------
3642 * ------------------------------------------------------------------------
3645 $$$1.fn[NAME] = ScrollSpy._jQueryInterface;
3646 $$$1.fn[NAME].Constructor = ScrollSpy;
3648 $$$1.fn[NAME].noConflict = function () {
3649 $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
3650 return ScrollSpy._jQueryInterface;
3657 * --------------------------------------------------------------------------
3658 * Bootstrap (v4.1.3): tab.js
3659 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
3660 * --------------------------------------------------------------------------
3663 var Tab = function ($$$1) {
3665 * ------------------------------------------------------------------------
3667 * ------------------------------------------------------------------------
3670 var VERSION = '4.1.3';
3671 var DATA_KEY = 'bs.tab';
3672 var EVENT_KEY = "." + DATA_KEY;
3673 var DATA_API_KEY = '.data-api';
3674 var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
3676 HIDE: "hide" + EVENT_KEY,
3677 HIDDEN: "hidden" + EVENT_KEY,
3678 SHOW: "show" + EVENT_KEY,
3679 SHOWN: "shown" + EVENT_KEY,
3680 CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY
3683 DROPDOWN_MENU: 'dropdown-menu',
3685 DISABLED: 'disabled',
3690 DROPDOWN: '.dropdown',
3691 NAV_LIST_GROUP: '.nav, .list-group',
3693 ACTIVE_UL: '> li > .active',
3694 DATA_TOGGLE: '[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',
3695 DROPDOWN_TOGGLE: '.dropdown-toggle',
3696 DROPDOWN_ACTIVE_CHILD: '> .dropdown-menu .active'
3698 * ------------------------------------------------------------------------
3700 * ------------------------------------------------------------------------
3708 function Tab(element) {
3709 this._element = element;
3713 var _proto = Tab.prototype;
3716 _proto.show = function show() {
3719 if (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && $$$1(this._element).hasClass(ClassName.ACTIVE) || $$$1(this._element).hasClass(ClassName.DISABLED)) {
3725 var listElement = $$$1(this._element).closest(Selector.NAV_LIST_GROUP)[0];
3726 var selector = Util.getSelectorFromElement(this._element);
3729 var itemSelector = listElement.nodeName === 'UL' ? Selector.ACTIVE_UL : Selector.ACTIVE;
3730 previous = $$$1.makeArray($$$1(listElement).find(itemSelector));
3731 previous = previous[previous.length - 1];
3734 var hideEvent = $$$1.Event(Event.HIDE, {
3735 relatedTarget: this._element
3737 var showEvent = $$$1.Event(Event.SHOW, {
3738 relatedTarget: previous
3742 $$$1(previous).trigger(hideEvent);
3745 $$$1(this._element).trigger(showEvent);
3747 if (showEvent.isDefaultPrevented() || hideEvent.isDefaultPrevented()) {
3752 target = document.querySelector(selector);
3755 this._activate(this._element, listElement);
3757 var complete = function complete() {
3758 var hiddenEvent = $$$1.Event(Event.HIDDEN, {
3759 relatedTarget: _this._element
3761 var shownEvent = $$$1.Event(Event.SHOWN, {
3762 relatedTarget: previous
3764 $$$1(previous).trigger(hiddenEvent);
3765 $$$1(_this._element).trigger(shownEvent);
3769 this._activate(target, target.parentNode, complete);
3775 _proto.dispose = function dispose() {
3776 $$$1.removeData(this._element, DATA_KEY);
3777 this._element = null;
3781 _proto._activate = function _activate(element, container, callback) {
3786 if (container.nodeName === 'UL') {
3787 activeElements = $$$1(container).find(Selector.ACTIVE_UL);
3789 activeElements = $$$1(container).children(Selector.ACTIVE);
3792 var active = activeElements[0];
3793 var isTransitioning = callback && active && $$$1(active).hasClass(ClassName.FADE);
3795 var complete = function complete() {
3796 return _this2._transitionComplete(element, active, callback);
3799 if (active && isTransitioning) {
3800 var transitionDuration = Util.getTransitionDurationFromElement(active);
3801 $$$1(active).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
3807 _proto._transitionComplete = function _transitionComplete(element, active, callback) {
3809 $$$1(active).removeClass(ClassName.SHOW + " " + ClassName.ACTIVE);
3810 var dropdownChild = $$$1(active.parentNode).find(Selector.DROPDOWN_ACTIVE_CHILD)[0];
3812 if (dropdownChild) {
3813 $$$1(dropdownChild).removeClass(ClassName.ACTIVE);
3816 if (active.getAttribute('role') === 'tab') {
3817 active.setAttribute('aria-selected', false);
3821 $$$1(element).addClass(ClassName.ACTIVE);
3823 if (element.getAttribute('role') === 'tab') {
3824 element.setAttribute('aria-selected', true);
3827 Util.reflow(element);
3828 $$$1(element).addClass(ClassName.SHOW);
3830 if (element.parentNode && $$$1(element.parentNode).hasClass(ClassName.DROPDOWN_MENU)) {
3831 var dropdownElement = $$$1(element).closest(Selector.DROPDOWN)[0];
3833 if (dropdownElement) {
3834 var dropdownToggleList = [].slice.call(dropdownElement.querySelectorAll(Selector.DROPDOWN_TOGGLE));
3835 $$$1(dropdownToggleList).addClass(ClassName.ACTIVE);
3838 element.setAttribute('aria-expanded', true);
3847 Tab._jQueryInterface = function _jQueryInterface(config) {
3848 return this.each(function () {
3849 var $this = $$$1(this);
3850 var data = $this.data(DATA_KEY);
3853 data = new Tab(this);
3854 $this.data(DATA_KEY, data);
3857 if (typeof config === 'string') {
3858 if (typeof data[config] === 'undefined') {
3859 throw new TypeError("No method named \"" + config + "\"");
3867 _createClass(Tab, null, [{
3869 get: function get() {
3877 * ------------------------------------------------------------------------
3878 * Data Api implementation
3879 * ------------------------------------------------------------------------
3883 $$$1(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {
3884 event.preventDefault();
3886 Tab._jQueryInterface.call($$$1(this), 'show');
3889 * ------------------------------------------------------------------------
3891 * ------------------------------------------------------------------------
3894 $$$1.fn[NAME] = Tab._jQueryInterface;
3895 $$$1.fn[NAME].Constructor = Tab;
3897 $$$1.fn[NAME].noConflict = function () {
3898 $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
3899 return Tab._jQueryInterface;
3906 * --------------------------------------------------------------------------
3907 * Bootstrap (v4.1.3): index.js
3908 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
3909 * --------------------------------------------------------------------------
3913 if (typeof $$$1 === 'undefined') {
3914 throw new TypeError('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.');
3917 var version = $$$1.fn.jquery.split(' ')[0].split('.');
3924 if (version[0] < ltMajor && version[1] < minMinor || version[0] === minMajor && version[1] === minMinor && version[2] < minPatch || version[0] >= maxMajor) {
3925 throw new Error('Bootstrap\'s JavaScript requires at least jQuery v1.9.1 but less than v4.0.0');
3929 exports.Util = Util;
3930 exports.Alert = Alert;
3931 exports.Button = Button;
3932 exports.Carousel = Carousel;
3933 exports.Collapse = Collapse;
3934 exports.Dropdown = Dropdown;
3935 exports.Modal = Modal;
3936 exports.Popover = Popover;
3937 exports.Scrollspy = ScrollSpy;
3939 exports.Tooltip = Tooltip;
3941 Object.defineProperty(exports, '__esModule', { value: true });
3944 //# sourceMappingURL=bootstrap.js.map