text: /*! For license information please see 40d5150cacf45d6bc237.js.LICENSE.txt */
  function _get(e,t,n){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=_superPropBase(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(n):o.value}},_get(e,t,n||e)}function _superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){_defineProperty(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var n,i=_getPrototypeOf(e);if(t){var o=_getPrototypeOf(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,r=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(i=n.next()).done)&&(r.push(i.value),!t||r.length!==t);s=!0);}catch(e){a=!0,o=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return r}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}!function(e,t){"object"==("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=t(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).bootstrap=t(e.Popper)}(this,(function(e){"use strict";var t=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}(e),n=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return(t=[]).concat.apply(t,_toConsumableArray(Element.prototype.querySelectorAll.call(n,e)))},i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return Element.prototype.querySelector.call(t,e)},o=function(e,t){var n;return(n=[]).concat.apply(n,_toConsumableArray(e.children)).filter((function(e){return e.matches(t)}))},r=function(e,t){for(var n=e.previousElementSibling;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},s=function(e){do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e},a=function(e){var t=e.getAttribute("data-bs-target");if(!t||"#"===t){var n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n="#"+n.split("#")[1]),t=n&&"#"!==n?n.trim():null}return t},l=function(e){var t=a(e);return t&&document.querySelector(t)?t:null},c=function(e){var t=a(e);return t?document.querySelector(t):null},u=function(e){e.dispatchEvent(new Event("transitionend"))},f=function(e){return!(!e||"object"!=_typeof(e))&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType)},h=function(e){return f(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?i(e):null},d=function(e,t,n){Object.keys(n).forEach((function(i){var o,r=n[i],s=t[i],a=s&&f(s)?"element":null==(o=s)?""+o:{}.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(r).test(a))throw new TypeError("".concat(e.toUpperCase(),': Option "').concat(i,'" provided type "').concat(a,'" but expected type "').concat(r,'".'))}))},p=function(e){return!(!f(e)||0===e.getClientRects().length)&&"visible"===getComputedStyle(e).getPropertyValue("visibility")},_=function(e){return!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled"))},g=function e(t){if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){var n=t.getRootNode();return n instanceof ShadowRoot?n:null}return t instanceof ShadowRoot?t:t.parentNode?e(t.parentNode):null},m=function(){},v=function(e){return e.offsetHeight},y=function(){var e=window.jQuery;return e&&!document.body.hasAttribute("data-bs-no-jquery")?e:null},b=[],k=function(){return"rtl"===document.documentElement.dir},w=function(e){var t;t=function(){var t=y();if(t){var n=e.NAME,i=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=function(){return t.fn[n]=i,e.jQueryInterface}}},"loading"===document.readyState?(b.length||document.addEventListener("DOMContentLoaded",(function(){b.forEach((function(e){return e()}))})),b.push(t)):t()},E=function(e){"function"==typeof e&&e()},A=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(n){var i=function(e){if(!e)return 0;var t=window.getComputedStyle(e),n=t.transitionDuration,i=t.transitionDelay,o=Number.parseFloat(n),r=Number.parseFloat(i);return o||r?(n=n.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(n)+Number.parseFloat(i))):0}(t)+5,o=!1,r=function n(i){i.target===t&&(o=!0,t.removeEventListener("transitionend",n),E(e))};t.addEventListener("transitionend",r),setTimeout((function(){o||u(t)}),i)}else E(e)},C=function(e,t,n,i){var o=e.indexOf(t);if(-1===o)return e[!n&&i?e.length-1:0];var r=e.length;return o+=n?1:-1,i&&(o=(o+r)%r),e[Math.max(0,Math.min(o,r-1))]},T=/[^.]*(?=\..*)\.|.*/,S=/\..*/,L=/::\d+$/,O={},j=1,I={mouseenter:"mouseover",mouseleave:"mouseout"},D=/^(mouseenter|mouseleave)/i,N=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function P(e,t){return t&&"".concat(t,"::").concat(j++)||e.uidEvent||j++}function M(e){var t=P(e);return e.uidEvent=t,O[t]=O[t]||{},O[t]}function x(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=Object.keys(e),o=0,r=i.length;o<r;o++){var s=e[i[o]];if(s.originalHandler===t&&s.delegationSelector===n)return s}return null}function H(e,t,n){var i="string"==typeof t,o=i?n:t,r=W(e);return N.has(r)||(r=e),[i,o,r]}function R(e,t,n,i,o){if("string"==typeof t&&e){if(n||(n=i,i=null),D.test(t)){var r=function(e){return function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)}};i?i=r(i):n=r(n)}var s=_slicedToArray(H(t,n,i),3),a=s[0],l=s[1],c=s[2],u=M(e),f=u[c]||(u[c]={}),h=x(f,l,a?n:null);if(h)h.oneOff=h.oneOff&&o;else{var d=P(l,t.replace(T,"")),p=a?function(e,t,n){return function i(o){for(var r=e.querySelectorAll(t),s=o.target;s&&s!==this;s=s.parentNode)for(var a=r.length;a--;)if(r[a]===s)return o.delegateTarget=s,i.oneOff&&z.off(e,o.type,t,n),n.apply(s,[o]);return null}}(e,n,i):function(e,t){return function n(i){return i.delegateTarget=e,n.oneOff&&z.off(e,i.type,t),t.apply(e,[i])}}(e,n);p.delegationSelector=a?n:null,p.originalHandler=l,p.oneOff=o,p.uidEvent=d,f[d]=p,e.addEventListener(c,p,a)}}}function B(e,t,n,i,o){var r=x(t[n],i,o);r&&(e.removeEventListener(n,r,Boolean(o)),delete t[n][r.uidEvent])}function W(e){return e=e.replace(S,""),I[e]||e}var z={on:function(e,t,n,i){R(e,t,n,i,!1)},one:function(e,t,n,i){R(e,t,n,i,!0)},off:function(e,t,n,i){if("string"==typeof t&&e){var o=_slicedToArray(H(t,n,i),3),r=o[0],s=o[1],a=o[2],l=a!==t,c=M(e),u=t.startsWith(".");if(void 0===s){u&&Object.keys(c).forEach((function(n){!function(e,t,n,i){var o=t[n]||{};Object.keys(o).forEach((function(r){if(r.includes(i)){var s=o[r];B(e,t,n,s.originalHandler,s.delegationSelector)}}))}(e,c,n,t.slice(1))}));var f=c[a]||{};Object.keys(f).forEach((function(n){var i=n.replace(L,"");if(!l||t.includes(i)){var o=f[n];B(e,c,a,o.originalHandler,o.delegationSelector)}}))}else{if(!c||!c[a])return;B(e,c,a,s,r?n:null)}}},trigger:function(e,t,n){if("string"!=typeof t||!e)return null;var i,o=y(),r=W(t),s=t!==r,a=N.has(r),l=!0,c=!0,u=!1,f=null;return s&&o&&(i=o.Event(t,n),o(e).trigger(i),l=!i.isPropagationStopped(),c=!i.isImmediatePropagationStopped(),u=i.isDefaultPrevented()),a?(f=document.createEvent("HTMLEvents")).initEvent(r,l,!0):f=new CustomEvent(t,{bubbles:l,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((function(e){Object.defineProperty(f,e,{get:function(){return n[e]}})})),u&&f.preventDefault(),c&&e.dispatchEvent(f),f.defaultPrevented&&void 0!==i&&i.preventDefault(),f}},q=new Map,U=function(e,t,n){q.has(e)||q.set(e,new Map);var i=q.get(e);i.has(t)||0===i.size?i.set(t,n):console.error("Bootstrap doesn't allow more than one instance per element. Bound instance: ".concat(Array.from(i.keys())[0],"."))},F=function(e,t){return q.has(e)&&q.get(e).get(t)||null},K=function(){function e(t){_classCallCheck(this,e),(t=h(t))&&(this._element=t,U(this._element,this.constructor.DATA_KEY,this))}return _createClass(e,[{key:"dispose",value:function(){var e=this;(function(e,t){if(q.has(e)){var n=q.get(e);n.delete(t),0===n.size&&q.delete(e)}})(this._element,this.constructor.DATA_KEY),z.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach((function(t){e[t]=null}))}},{key:"_queueCallback",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];A(e,t,n)}}],[{key:"getInstance",value:function(e){return F(e,this.DATA_KEY)}},{key:"getOrCreateInstance",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.getInstance(e)||new this(e,"object"==_typeof(t)?t:null)}},{key:"VERSION",get:function(){return"5.0.2"}},{key:"NAME",get:function(){throw new Error('You have to implement the static method "NAME", for each component!')}},{key:"DATA_KEY",get:function(){return"bs."+this.NAME}},{key:"EVENT_KEY",get:function(){return"."+this.DATA_KEY}}]),e}(),V=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"close",value:function(e){var t=e?this._getRootElement(e):this._element,n=this._triggerCloseEvent(t);null===n||n.defaultPrevented||this._removeElement(t)}},{key:"_getRootElement",value:function(e){return c(e)||e.closest(".alert")}},{key:"_triggerCloseEvent",value:function(e){return z.trigger(e,"close.bs.alert")}},{key:"_removeElement",value:function(e){var t=this;e.classList.remove("show");var n=e.classList.contains("fade");this._queueCallback((function(){return t._destroyElement(e)}),e,n)}},{key:"_destroyElement",value:function(e){e.remove(),z.trigger(e,"closed.bs.alert")}}],[{key:"NAME",get:function(){return"alert"}},{key:"jQueryInterface",value:function(e){return this.each((function(){var t=n.getOrCreateInstance(this);"close"===e&&t[e](this)}))}},{key:"handleDismiss",value:function(e){return function(t){t&&t.preventDefault(),e.close(this)}}}]),n}(K);z.on(document,"click.bs.alert.data-api",'[data-bs-dismiss="alert"]',V.handleDismiss(new V)),w(V);var Q=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"toggle",value:function(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}}],[{key:"NAME",get:function(){return"button"}},{key:"jQueryInterface",value:function(e){return this.each((function(){var t=n.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}]),n}(K);function X(e){return"true"===e||"false"!==e&&(e===Number(e).toString()?Number(e):""===e||"null"===e?null:e)}function Y(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}))}z.on(document,"click.bs.button.data-api",'[data-bs-toggle="button"]',(function(e){e.preventDefault();var t=e.target.closest('[data-bs-toggle="button"]');Q.getOrCreateInstance(t).toggle()})),w(Q);var $={setDataAttribute:function(e,t,n){e.setAttribute("data-bs-"+Y(t),n)},removeDataAttribute:function(e,t){e.removeAttribute("data-bs-"+Y(t))},getDataAttributes:function(e){if(!e)return{};var t={};return Object.keys(e.dataset).filter((function(e){return e.startsWith("bs")})).forEach((function(n){var i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),t[i]=X(e.dataset[n])})),t},getDataAttribute:function(e,t){return X(e.getAttribute("data-bs-"+Y(t)))},offset:function(e){var t=e.getBoundingClientRect();return{top:t.top+document.body.scrollTop,left:t.left+document.body.scrollLeft}},position:function(e){return{top:e.offsetTop,left:e.offsetLeft}}},G={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},Z={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},J="next",ee="prev",te="left",ne="right",ie={ArrowLeft:ne,ArrowRight:te},oe=function(e){_inherits(o,e);var t=_createSuper(o);function o(e,n){var r;return _classCallCheck(this,o),(r=t.call(this,e))._items=null,r._interval=null,r._activeElement=null,r._isPaused=!1,r._isSliding=!1,r.touchTimeout=null,r.touchStartX=0,r.touchDeltaX=0,r._config=r._getConfig(n),r._indicatorsElement=i(".carousel-indicators",r._element),r._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,r._pointerEvent=Boolean(window.PointerEvent),r._addEventListeners(),r}return _createClass(o,[{key:"next",value:function(){this._slide(J)}},{key:"nextWhenVisible",value:function(){!document.hidden&&p(this._element)&&this.next()}},{key:"prev",value:function(){this._slide(ee)}},{key:"pause",value:function(e){e||(this._isPaused=!0),i(".carousel-item-next, .carousel-item-prev",this._element)&&(u(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}},{key:"cycle",value:function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}},{key:"to",value:function(e){var t=this;this._activeElement=i(".active.carousel-item",this._element);var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)z.one(this._element,"slid.bs.carousel",(function(){return t.to(e)}));else{if(n===e)return this.pause(),void this.cycle();var o=e>n?J:ee;this._slide(o,this._items[e])}}},{key:"_getConfig",value:function(e){return e=_objectSpread(_objectSpread(_objectSpread({},G),$.getDataAttributes(this._element)),"object"==_typeof(e)?e:{}),d("carousel",e,Z),e}},{key:"_handleSwipe",value:function(){var e=Math.abs(this.touchDeltaX);if(!(e<=40)){var t=e/this.touchDeltaX;this.touchDeltaX=0,t&&this._slide(t>0?ne:te)}}},{key:"_addEventListeners",value:function(){var e=this;this._config.keyboard&&z.on(this._element,"keydown.bs.carousel",(function(t){return e._keydown(t)})),"hover"===this._config.pause&&(z.on(this._element,"mouseenter.bs.carousel",(function(t){return e.pause(t)})),z.on(this._element,"mouseleave.bs.carousel",(function(t){return e.cycle(t)}))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}},{key:"_addTouchEventListeners",value:function(){var e=this,t=function(t){!e._pointerEvent||"pen"!==t.pointerType&&"touch"!==t.pointerType?e._pointerEvent||(e.touchStartX=t.touches[0].clientX):e.touchStartX=t.clientX},i=function(t){!e._pointerEvent||"pen"!==t.pointerType&&"touch"!==t.pointerType||(e.touchDeltaX=t.clientX-e.touchStartX),e._handleSwipe(),"hover"===e._config.pause&&(e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout((function(t){return e.cycle(t)}),500+e._config.interval))};n(".carousel-item img",this._element).forEach((function(e){z.on(e,"dragstart.bs.carousel",(function(e){return e.preventDefault()}))})),this._pointerEvent?(z.on(this._element,"pointerdown.bs.carousel",(function(e){return t(e)})),z.on(this._element,"pointerup.bs.carousel",(function(e){return i(e)})),this._element.classList.add("pointer-event")):(z.on(this._element,"touchstart.bs.carousel",(function(e){return t(e)})),z.on(this._element,"touchmove.bs.carousel",(function(t){return function(t){e.touchDeltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-e.touchStartX}(t)})),z.on(this._element,"touchend.bs.carousel",(function(e){return i(e)})))}},{key:"_keydown",value:function(e){if(!/input|textarea/i.test(e.target.tagName)){var t=ie[e.key];t&&(e.preventDefault(),this._slide(t))}}},{key:"_getItemIndex",value:function(e){return this._items=e&&e.parentNode?n(".carousel-item",e.parentNode):[],this._items.indexOf(e)}},{key:"_getItemByOrder",value:function(e,t){var n=e===J;return C(this._items,t,n,this._config.wrap)}},{key:"_triggerSlideEvent",value:function(e,t){var n=this._getItemIndex(e),o=this._getItemIndex(i(".active.carousel-item",this._element));return z.trigger(this._element,"slide.bs.carousel",{relatedTarget:e,direction:t,from:o,to:n})}},{key:"_setActiveIndicatorElement",value:function(e){if(this._indicatorsElement){var t=i(".active",this._indicatorsElement);t.classList.remove("active"),t.removeAttribute("aria-current");for(var o=n("[data-bs-target]",this._indicatorsElement),r=0;r<o.length;r++)if(Number.parseInt(o[r].getAttribute("data-bs-slide-to"),10)===this._getItemIndex(e)){o[r].classList.add("active"),o[r].setAttribute("aria-current","true");break}}}},{key:"_updateInterval",value:function(){var e=this._activeElement||i(".active.carousel-item",this._element);if(e){var t=Number.parseInt(e.getAttribute("data-bs-interval"),10);t?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=t):this._config.interval=this._config.defaultInterval||this._config.interval}}},{key:"_slide",value:function(e,t){var n=this,o=this._directionToOrder(e),r=i(".active.carousel-item",this._element),s=this._getItemIndex(r),a=t||this._getItemByOrder(o,r),l=this._getItemIndex(a),c=Boolean(this._interval),u=o===J,f=u?"carousel-item-start":"carousel-item-end",h=u?"carousel-item-next":"carousel-item-prev",d=this._orderToDirection(o);if(a&&a.classList.contains("active"))this._isSliding=!1;else if(!this._isSliding&&!this._triggerSlideEvent(a,d).defaultPrevented&&r&&a){this._isSliding=!0,c&&this.pause(),this._setActiveIndicatorElement(a),this._activeElement=a;var p=function(){z.trigger(n._element,"slid.bs.carousel",{relatedTarget:a,direction:d,from:s,to:l})};this._element.classList.contains("slide")?(a.classList.add(h),v(a),r.classList.add(f),a.classList.add(f),this._queueCallback((function(){a.classList.remove(f,h),a.classList.add("active"),r.classList.remove("active",h,f),n._isSliding=!1,setTimeout(p,0)}),r,!0)):(r.classList.remove("active"),a.classList.add("active"),this._isSliding=!1,p()),c&&this.cycle()}}},{key:"_directionToOrder",value:function(e){return[ne,te].includes(e)?k()?e===te?ee:J:e===te?J:ee:e}},{key:"_orderToDirection",value:function(e){return[J,ee].includes(e)?k()?e===ee?te:ne:e===ee?ne:te:e}}],[{key:"Default",get:function(){return G}},{key:"NAME",get:function(){return"carousel"}},{key:"carouselInterface",value:function(e,t){var n=o.getOrCreateInstance(e,t),i=n._config;"object"==_typeof(t)&&(i=_objectSpread(_objectSpread({},i),t));var r="string"==typeof t?t:i.slide;if("number"==typeof t)n.to(t);else if("string"==typeof r){if(void 0===n[r])throw new TypeError('No method named "'.concat(r,'"'));n[r]()}else i.interval&&i.ride&&(n.pause(),n.cycle())}},{key:"jQueryInterface",value:function(e){return this.each((function(){o.carouselInterface(this,e)}))}},{key:"dataApiClickHandler",value:function(e){var t=c(this);if(t&&t.classList.contains("carousel")){var n=_objectSpread(_objectSpread({},$.getDataAttributes(t)),$.getDataAttributes(this)),i=this.getAttribute("data-bs-slide-to");i&&(n.interval=!1),o.carouselInterface(t,n),i&&o.getInstance(t).to(i),e.preventDefault()}}}]),o}(K);z.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",oe.dataApiClickHandler),z.on(window,"load.bs.carousel.data-api",(function(){for(var e=n('[data-bs-ride="carousel"]'),t=0,i=e.length;t<i;t++)oe.carouselInterface(e[t],oe.getInstance(e[t]))})),w(oe);var re={toggle:!0,parent:""},se={toggle:"boolean",parent:"(string|element)"},ae=function(e){_inherits(o,e);var t=_createSuper(o);function o(e,i){var r;_classCallCheck(this,o),(r=t.call(this,e))._isTransitioning=!1,r._config=r._getConfig(i),r._triggerArray=n('[data-bs-toggle="collapse"][href="#'.concat(r._element.id,'"],[data-bs-toggle="collapse"][data-bs-target="#').concat(r._element.id,'"]'));for(var s=n('[data-bs-toggle="collapse"]'),a=0,c=s.length;a<c;a++){var u=s[a],f=l(u),h=n(f).filter((function(e){return e===r._element}));null!==f&&h.length&&(r._selector=f,r._triggerArray.push(u))}return r._parent=r._config.parent?r._getParent():null,r._config.parent||r._addAriaAndCollapsedClass(r._element,r._triggerArray),r._config.toggle&&r.toggle(),r}return _createClass(o,[{key:"toggle",value:function(){this._element.classList.contains("show")?this.hide():this.show()}},{key:"show",value:function(){var e=this;if(!this._isTransitioning&&!this._element.classList.contains("show")){var t,r;this._parent&&0===(t=n(".show, .collapsing",this._parent).filter((function(t){return"string"==typeof e._config.parent?t.getAttribute("data-bs-parent")===e._config.parent:t.classList.contains("collapse")}))).length&&(t=null);var s=i(this._selector);if(t){var a=t.find((function(e){return s!==e}));if((r=a?o.getInstance(a):null)&&r._isTransitioning)return}if(!z.trigger(this._element,"show.bs.collapse").defaultPrevented){t&&t.forEach((function(e){s!==e&&o.collapseInterface(e,"hide"),r||U(e,"bs.collapse",null)}));var l=this._getDimension();this._element.classList.remove("collapse"),this._element.classList.add("collapsing"),this._element.style[l]=0,this._triggerArray.length&&this._triggerArray.forEach((function(e){e.classList.remove("collapsed"),e.setAttribute("aria-expanded",!0)})),this.setTransitioning(!0);var c="scroll"+(l[0].toUpperCase()+l.slice(1));this._queueCallback((function(){e._element.classList.remove("collapsing"),e._element.classList.add("collapse","show"),e._element.style[l]="",e.setTransitioning(!1),z.trigger(e._element,"shown.bs.collapse")}),this._element,!0),this._element.style[l]=this._element[c]+"px"}}}},{key:"hide",value:function(){var e=this;if(!this._isTransitioning&&this._element.classList.contains("show")&&!z.trigger(this._element,"hide.bs.collapse").defaultPrevented){var t=this._getDimension();this._element.style[t]=this._element.getBoundingClientRect()[t]+"px",v(this._element),this._element.classList.add("collapsing"),this._element.classList.remove("collapse","show");var n=this._triggerArray.length;if(n>0)for(var i=0;i<n;i++){var o=this._triggerArray[i],r=c(o);r&&!r.classList.contains("show")&&(o.classList.add("collapsed"),o.setAttribute("aria-expanded",!1))}this.setTransitioning(!0),this._element.style[t]="",this._queueCallback((function(){e.setTransitioning(!1),e._element.classList.remove("collapsing"),e._element.classList.add("collapse"),z.trigger(e._element,"hidden.bs.collapse")}),this._element,!0)}}},{key:"setTransitioning",value:function(e){this._isTransitioning=e}},{key:"_getConfig",value:function(e){return(e=_objectSpread(_objectSpread({},re),e)).toggle=Boolean(e.toggle),d("collapse",e,se),e}},{key:"_getDimension",value:function(){return this._element.classList.contains("width")?"width":"height"}},{key:"_getParent",value:function(){var e=this,t=this._config.parent;t=h(t);var i='[data-bs-toggle="collapse"][data-bs-parent="'.concat(t,'"]');return n(i,t).forEach((function(t){var n=c(t);e._addAriaAndCollapsedClass(n,[t])})),t}},{key:"_addAriaAndCollapsedClass",value:function(e,t){if(e&&t.length){var n=e.classList.contains("show");t.forEach((function(e){n?e.classList.remove("collapsed"):e.classList.add("collapsed"),e.setAttribute("aria-expanded",n)}))}}}],[{key:"Default",get:function(){return re}},{key:"NAME",get:function(){return"collapse"}},{key:"collapseInterface",value:function(e,t){var n=o.getInstance(e),i=_objectSpread(_objectSpread(_objectSpread({},re),$.getDataAttributes(e)),"object"==_typeof(t)&&t?t:{});if(!n&&i.toggle&&"string"==typeof t&&/show|hide/.test(t)&&(i.toggle=!1),n||(n=new o(e,i)),"string"==typeof t){if(void 0===n[t])throw new TypeError('No method named "'.concat(t,'"'));n[t]()}}},{key:"jQueryInterface",value:function(e){return this.each((function(){o.collapseInterface(this,e)}))}}]),o}(K);z.on(document,"click.bs.collapse.data-api",'[data-bs-toggle="collapse"]',(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();var t=$.getDataAttributes(this),i=l(this);n(i).forEach((function(e){var n,i=ae.getInstance(e);i?(null===i._parent&&"string"==typeof t.parent&&(i._config.parent=t.parent,i._parent=i._getParent()),n="toggle"):n=t,ae.collapseInterface(e,n)}))})),w(ae);var le=new RegExp("ArrowUp|ArrowDown|Escape"),ce=k()?"top-end":"top-start",ue=k()?"top-start":"top-end",fe=k()?"bottom-end":"bottom-start",he=k()?"bottom-start":"bottom-end",de=k()?"left-start":"right-start",pe=k()?"right-start":"left-start",_e={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},ge={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"},me=function(e){_inherits(o,e);var i=_createSuper(o);function o(e,t){var n;return _classCallCheck(this,o),(n=i.call(this,e))._popper=null,n._config=n._getConfig(t),n._menu=n._getMenuElement(),n._inNavbar=n._detectNavbar(),n._addEventListeners(),n}return _createClass(o,[{key:"toggle",value:function(){_(this._element)||(this._element.classList.contains("show")?this.hide():this.show())}},{key:"show",value:function(){if(!_(this._element)&&!this._menu.classList.contains("show")){var e=o.getParentFromElement(this._element),n={relatedTarget:this._element};if(!z.trigger(this._element,"show.bs.dropdown",n).defaultPrevented){var i;if(this._inNavbar)$.setDataAttribute(this._menu,"popper","none");else{if(void 0===t)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");var r=this._element;"parent"===this._config.reference?r=e:f(this._config.reference)?r=h(this._config.reference):"object"==_typeof(this._config.reference)&&(r=this._config.reference);var s=this._getPopperConfig(),a=s.modifiers.find((function(e){return"applyStyles"===e.name&&!1===e.enabled}));this._popper=t.createPopper(r,this._menu,s),a&&$.setDataAttribute(this._menu,"popper","static")}"ontouchstart"in document.documentElement&&!e.closest(".navbar-nav")&&(i=[]).concat.apply(i,_toConsumableArray(document.body.children)).forEach((function(e){return z.on(e,"mouseover",m)})),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.toggle("show"),this._element.classList.toggle("show"),z.trigger(this._element,"shown.bs.dropdown",n)}}}},{key:"hide",value:function(){if(!_(this._element)&&this._menu.classList.contains("show")){var e={relatedTarget:this._element};this._completeHide(e)}}},{key:"dispose",value:function(){this._popper&&this._popper.destroy(),_get(_getPrototypeOf(o.prototype),"dispose",this).call(this)}},{key:"update",value:function(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}},{key:"_addEventListeners",value:function(){var e=this;z.on(this._element,"click.bs.dropdown",(function(t){t.preventDefault(),e.toggle()}))}},{key:"_completeHide",value:function(e){var t;z.trigger(this._element,"hide.bs.dropdown",e).defaultPrevented||("ontouchstart"in document.documentElement&&(t=[]).concat.apply(t,_toConsumableArray(document.body.children)).forEach((function(e){return z.off(e,"mouseover",m)})),this._popper&&this._popper.destroy(),this._menu.classList.remove("show"),this._element.classList.remove("show"),this._element.setAttribute("aria-expanded","false"),$.removeDataAttribute(this._menu,"popper"),z.trigger(this._element,"hidden.bs.dropdown",e))}},{key:"_getConfig",value:function(e){if(e=_objectSpread(_objectSpread(_objectSpread({},this.constructor.Default),$.getDataAttributes(this._element)),e),d("dropdown",e,this.constructor.DefaultType),"object"==_typeof(e.reference)&&!f(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError("dropdown".toUpperCase()+': Option "reference" provided type "object" without a required "getBoundingClientRect" method.');return e}},{key:"_getMenuElement",value:function(){return function(e,t){for(var n=e.nextElementSibling;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]}(this._element,".dropdown-menu")[0]}},{key:"_getPlacement",value:function(){var e=this._element.parentNode;if(e.classList.contains("dropend"))return de;if(e.classList.contains("dropstart"))return pe;var t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?ue:ce:t?he:fe}},{key:"_detectNavbar",value:function(){return null!==this._element.closest(".navbar")}},{key:"_getOffset",value:function(){var e=this,t=this._config.offset;return"string"==typeof t?t.split(",").map((function(e){return Number.parseInt(e,10)})):"function"==typeof t?function(n){return t(n,e._element)}:t}},{key:"_getPopperConfig",value:function(){var e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return"static"===this._config.display&&(e.modifiers=[{name:"applyStyles",enabled:!1}]),_objectSpread(_objectSpread({},e),"function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig)}},{key:"_selectMenuItem",value:function(e){var t=e.key,i=e.target,o=n(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(p);o.length&&C(o,i,"ArrowDown"===t,!o.includes(i)).focus()}}],[{key:"Default",get:function(){return _e}},{key:"DefaultType",get:function(){return ge}},{key:"NAME",get:function(){return"dropdown"}},{key:"dropdownInterface",value:function(e,t){var n=o.getOrCreateInstance(e,t);if("string"==typeof t){if(void 0===n[t])throw new TypeError('No method named "'.concat(t,'"'));n[t]()}}},{key:"jQueryInterface",value:function(e){return this.each((function(){o.dropdownInterface(this,e)}))}},{key:"clearMenus",value:function(e){if(!e||2!==e.button&&("keyup"!==e.type||"Tab"===e.key))for(var t=n('[data-bs-toggle="dropdown"]'),i=0,r=t.length;i<r;i++){var s=o.getInstance(t[i]);if(s&&!1!==s._config.autoClose&&s._element.classList.contains("show")){var a={relatedTarget:s._element};if(e){var l=e.composedPath(),c=l.includes(s._menu);if(l.includes(s._element)||"inside"===s._config.autoClose&&!c||"outside"===s._config.autoClose&&c)continue;if(s._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;"click"===e.type&&(a.clickEvent=e)}s._completeHide(a)}}}},{key:"getParentFromElement",value:function(e){return c(e)||e.parentNode}},{key:"dataApiKeydownHandler",value:function(e){var t=this;if(!(/input|textarea/i.test(e.target.tagName)?"Space"===e.key||"Escape"!==e.key&&("ArrowDown"!==e.key&&"ArrowUp"!==e.key||e.target.closest(".dropdown-menu")):!le.test(e.key))){var n=this.classList.contains("show");if((n||"Escape"!==e.key)&&(e.preventDefault(),e.stopPropagation(),!_(this))){var i=function(){return t.matches('[data-bs-toggle="dropdown"]')?t:r(t,'[data-bs-toggle="dropdown"]')[0]};return"Escape"===e.key?(i().focus(),void o.clearMenus()):"ArrowUp"===e.key||"ArrowDown"===e.key?(n||i().click(),void o.getInstance(i())._selectMenuItem(e)):void(n&&"Space"!==e.key||o.clearMenus())}}}}]),o}(K);z.on(document,"keydown.bs.dropdown.data-api",'[data-bs-toggle="dropdown"]',me.dataApiKeydownHandler),z.on(document,"keydown.bs.dropdown.data-api",".dropdown-menu",me.dataApiKeydownHandler),z.on(document,"click.bs.dropdown.data-api",me.clearMenus),z.on(document,"keyup.bs.dropdown.data-api",me.clearMenus),z.on(document,"click.bs.dropdown.data-api",'[data-bs-toggle="dropdown"]',(function(e){e.preventDefault(),me.dropdownInterface(this)})),w(me);var ve=function(){function e(){_classCallCheck(this,e),this._element=document.body}return _createClass(e,[{key:"getWidth",value:function(){var e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}},{key:"hide",value:function(){var e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,"paddingRight",(function(t){return t+e})),this._setElementAttributes(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top","paddingRight",(function(t){return t+e})),this._setElementAttributes(".sticky-top","marginRight",(function(t){return t-e}))}},{key:"_disableOverFlow",value:function(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}},{key:"_setElementAttributes",value:function(e,t,n){var i=this,o=this.getWidth();this._applyManipulationCallback(e,(function(e){if(!(e!==i._element&&window.innerWidth>e.clientWidth+o)){i._saveInitialAttribute(e,t);var r=window.getComputedStyle(e)[t];e.style[t]=n(Number.parseFloat(r))+"px"}}))}},{key:"reset",value:function(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top","paddingRight"),this._resetElementAttributes(".sticky-top","marginRight")}},{key:"_saveInitialAttribute",value:function(e,t){var n=e.style[t];n&&$.setDataAttribute(e,t,n)}},{key:"_resetElementAttributes",value:function(e,t){this._applyManipulationCallback(e,(function(e){var n=$.getDataAttribute(e,t);void 0===n?e.style.removeProperty(t):($.removeDataAttribute(e,t),e.style[t]=n)}))}},{key:"_applyManipulationCallback",value:function(e,t){f(e)?t(e):n(e,this._element).forEach(t)}},{key:"isOverflowing",value:function(){return this.getWidth()>0}}]),e}(),ye={isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},be={isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"},ke=function(){function e(t){_classCallCheck(this,e),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}return _createClass(e,[{key:"show",value:function(e){this._config.isVisible?(this._append(),this._config.isAnimated&&v(this._getElement()),this._getElement().classList.add("show"),this._emulateAnimation((function(){E(e)}))):E(e)}},{key:"hide",value:function(e){var t=this;this._config.isVisible?(this._getElement().classList.remove("show"),this._emulateAnimation((function(){t.dispose(),E(e)}))):E(e)}},{key:"_getElement",value:function(){if(!this._element){var e=document.createElement("div");e.className="modal-backdrop",this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}},{key:"_getConfig",value:function(e){return(e=_objectSpread(_objectSpread({},ye),"object"==_typeof(e)?e:{})).rootElement=h(e.rootElement),d("backdrop",e,be),e}},{key:"_append",value:function(){var e=this;this._isAppended||(this._config.rootElement.appendChild(this._getElement()),z.on(this._getElement(),"mousedown.bs.backdrop",(function(){E(e._config.clickCallback)})),this._isAppended=!0)}},{key:"dispose",value:function(){this._isAppended&&(z.off(this._element,"mousedown.bs.backdrop"),this._element.remove(),this._isAppended=!1)}},{key:"_emulateAnimation",value:function(e){A(e,this._getElement(),this._config.isAnimated)}}]),e}(),we={backdrop:!0,keyboard:!0,focus:!0},Ee={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},Ae=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,o){var r;return _classCallCheck(this,n),(r=t.call(this,e))._config=r._getConfig(o),r._dialog=i(".modal-dialog",r._element),r._backdrop=r._initializeBackDrop(),r._isShown=!1,r._ignoreBackdropClick=!1,r._isTransitioning=!1,r._scrollBar=new ve,r}return _createClass(n,[{key:"toggle",value:function(e){return this._isShown?this.hide():this.show(e)}},{key:"show",value:function(e){var t=this;this._isShown||this._isTransitioning||z.trigger(this._element,"show.bs.modal",{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add("modal-open"),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),z.on(this._element,"click.dismiss.bs.modal",'[data-bs-dismiss="modal"]',(function(e){return t.hide(e)})),z.on(this._dialog,"mousedown.dismiss.bs.modal",(function(){z.one(t._element,"mouseup.dismiss.bs.modal",(function(e){e.target===t._element&&(t._ignoreBackdropClick=!0)}))})),this._showBackdrop((function(){return t._showElement(e)})))}},{key:"hide",value:function(e){var t=this;if(e&&["A","AREA"].includes(e.target.tagName)&&e.preventDefault(),this._isShown&&!this._isTransitioning&&!z.trigger(this._element,"hide.bs.modal").defaultPrevented){this._isShown=!1;var n=this._isAnimated();n&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),z.off(document,"focusin.bs.modal"),this._element.classList.remove("show"),z.off(this._element,"click.dismiss.bs.modal"),z.off(this._dialog,"mousedown.dismiss.bs.modal"),this._queueCallback((function(){return t._hideModal()}),this._element,n)}}},{key:"dispose",value:function(){[window,this._dialog].forEach((function(e){return z.off(e,".bs.modal")})),this._backdrop.dispose(),_get(_getPrototypeOf(n.prototype),"dispose",this).call(this),z.off(document,"focusin.bs.modal")}},{key:"handleUpdate",value:function(){this._adjustDialog()}},{key:"_initializeBackDrop",value:function(){return new ke({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}},{key:"_getConfig",value:function(e){return e=_objectSpread(_objectSpread(_objectSpread({},we),$.getDataAttributes(this._element)),"object"==_typeof(e)?e:{}),d("modal",e,Ee),e}},{key:"_showElement",value:function(e){var t=this,n=this._isAnimated(),o=i(".modal-body",this._dialog);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0,o&&(o.scrollTop=0),n&&v(this._element),this._element.classList.add("show"),this._config.focus&&this._enforceFocus(),this._queueCallback((function(){t._config.focus&&t._element.focus(),t._isTransitioning=!1,z.trigger(t._element,"shown.bs.modal",{relatedTarget:e})}),this._dialog,n)}},{key:"_enforceFocus",value:function(){var e=this;z.off(document,"focusin.bs.modal"),z.on(document,"focusin.bs.modal",(function(t){document===t.target||e._element===t.target||e._element.contains(t.target)||e._element.focus()}))}},{key:"_setEscapeEvent",value:function(){var e=this;this._isShown?z.on(this._element,"keydown.dismiss.bs.modal",(function(t){e._config.keyboard&&"Escape"===t.key?(t.preventDefault(),e.hide()):e._config.keyboard||"Escape"!==t.key||e._triggerBackdropTransition()})):z.off(this._element,"keydown.dismiss.bs.modal")}},{key:"_setResizeEvent",value:function(){var e=this;this._isShown?z.on(window,"resize.bs.modal",(function(){return e._adjustDialog()})):z.off(window,"resize.bs.modal")}},{key:"_hideModal",value:function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((function(){document.body.classList.remove("modal-open"),e._resetAdjustments(),e._scrollBar.reset(),z.trigger(e._element,"hidden.bs.modal")}))}},{key:"_showBackdrop",value:function(e){var t=this;z.on(this._element,"click.dismiss.bs.modal",(function(e){t._ignoreBackdropClick?t._ignoreBackdropClick=!1:e.target===e.currentTarget&&(!0===t._config.backdrop?t.hide():"static"===t._config.backdrop&&t._triggerBackdropTransition())})),this._backdrop.show(e)}},{key:"_isAnimated",value:function(){return this._element.classList.contains("fade")}},{key:"_triggerBackdropTransition",value:function(){var e=this;if(!z.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented){var t=this._element,n=t.classList,i=t.scrollHeight,o=t.style,r=i>document.documentElement.clientHeight;!r&&"hidden"===o.overflowY||n.contains("modal-static")||(r||(o.overflowY="hidden"),n.add("modal-static"),this._queueCallback((function(){n.remove("modal-static"),r||e._queueCallback((function(){o.overflowY=""}),e._dialog)}),this._dialog),this._element.focus())}}},{key:"_adjustDialog",value:function(){var e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;(!n&&e&&!k()||n&&!e&&k())&&(this._element.style.paddingLeft=t+"px"),(n&&!e&&!k()||!n&&e&&k())&&(this._element.style.paddingRight=t+"px")}},{key:"_resetAdjustments",value:function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}}],[{key:"Default",get:function(){return we}},{key:"NAME",get:function(){return"modal"}},{key:"jQueryInterface",value:function(e,t){return this.each((function(){var i=n.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'.concat(e,'"'));i[e](t)}}))}}]),n}(K);z.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',(function(e){var t=this,n=c(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),z.one(n,"show.bs.modal",(function(e){e.defaultPrevented||z.one(n,"hidden.bs.modal",(function(){p(t)&&t.focus()}))})),Ae.getOrCreateInstance(n).toggle(this)})),w(Ae);var Ce={backdrop:!0,keyboard:!0,scroll:!1},Te={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},Se=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var o;return _classCallCheck(this,n),(o=t.call(this,e))._config=o._getConfig(i),o._isShown=!1,o._backdrop=o._initializeBackDrop(),o._addEventListeners(),o}return _createClass(n,[{key:"toggle",value:function(e){return this._isShown?this.hide():this.show(e)}},{key:"show",value:function(e){var t=this;this._isShown||z.trigger(this._element,"show.bs.offcanvas",{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||((new ve).hide(),this._enforceFocusOnElement(this._element)),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add("show"),this._queueCallback((function(){z.trigger(t._element,"shown.bs.offcanvas",{relatedTarget:e})}),this._element,!0))}},{key:"hide",value:function(){var e=this;this._isShown&&(z.trigger(this._element,"hide.bs.offcanvas").defaultPrevented||(z.off(document,"focusin.bs.offcanvas"),this._element.blur(),this._isShown=!1,this._element.classList.remove("show"),this._backdrop.hide(),this._queueCallback((function(){e._element.setAttribute("aria-hidden",!0),e._element.removeAttribute("aria-modal"),e._element.removeAttribute("role"),e._element.style.visibility="hidden",e._config.scroll||(new ve).reset(),z.trigger(e._element,"hidden.bs.offcanvas")}),this._element,!0)))}},{key:"dispose",value:function(){this._backdrop.dispose(),_get(_getPrototypeOf(n.prototype),"dispose",this).call(this),z.off(document,"focusin.bs.offcanvas")}},{key:"_getConfig",value:function(e){return e=_objectSpread(_objectSpread(_objectSpread({},Ce),$.getDataAttributes(this._element)),"object"==_typeof(e)?e:{}),d("offcanvas",e,Te),e}},{key:"_initializeBackDrop",value:function(){var e=this;return new ke({isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:function(){return e.hide()}})}},{key:"_enforceFocusOnElement",value:function(e){z.off(document,"focusin.bs.offcanvas"),z.on(document,"focusin.bs.offcanvas",(function(t){document===t.target||e===t.target||e.contains(t.target)||e.focus()})),e.focus()}},{key:"_addEventListeners",value:function(){var e=this;z.on(this._element,"click.dismiss.bs.offcanvas",'[data-bs-dismiss="offcanvas"]',(function(){return e.hide()})),z.on(this._element,"keydown.dismiss.bs.offcanvas",(function(t){e._config.keyboard&&"Escape"===t.key&&e.hide()}))}}],[{key:"NAME",get:function(){return"offcanvas"}},{key:"Default",get:function(){return Ce}},{key:"jQueryInterface",value:function(e){return this.each((function(){var t=n.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError('No method named "'.concat(e,'"'));t[e](this)}}))}}]),n}(K);z.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',(function(e){var t=this,n=c(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),!_(this)){z.one(n,"hidden.bs.offcanvas",(function(){p(t)&&t.focus()}));var o=i(".offcanvas.show");o&&o!==n&&Se.getInstance(o).hide(),Se.getOrCreateInstance(n).toggle(this)}})),z.on(window,"load.bs.offcanvas.data-api",(function(){return n(".offcanvas.show").forEach((function(e){return Se.getOrCreateInstance(e).show()}))})),w(Se);var Le=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Oe=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i,je=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function Ie(e,t,n){var i;if(!e.length)return e;if(n&&"function"==typeof n)return n(e);for(var o=(new window.DOMParser).parseFromString(e,"text/html"),r=Object.keys(t),s=(i=[]).concat.apply(i,_toConsumableArray(o.body.querySelectorAll("*"))),a=function(e,n){var i,o=s[e],a=o.nodeName.toLowerCase();if(!r.includes(a))return o.remove(),"continue";var l=(i=[]).concat.apply(i,_toConsumableArray(o.attributes)),c=[].concat(t["*"]||[],t[a]||[]);l.forEach((function(e){(function(e,t){var n=e.nodeName.toLowerCase();if(t.includes(n))return!Le.has(n)||Boolean(Oe.test(e.nodeValue)||je.test(e.nodeValue));for(var i=t.filter((function(e){return e instanceof RegExp})),o=0,r=i.length;o<r;o++)if(i[o].test(n))return!0;return!1})(e,c)||o.removeAttribute(e.nodeName)}))},l=0,c=s.length;l<c;l++)a(l);return o.body.innerHTML}var De=new RegExp("(^|\\s)bs-tooltip\\S+","g"),Ne=new Set(["sanitize","allowList","sanitizeFn"]),Pe={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},Me={AUTO:"auto",TOP:"top",RIGHT:k()?"left":"right",BOTTOM:"bottom",LEFT:k()?"right":"left"},xe={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},He={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},Re=function(e){_inherits(o,e);var n=_createSuper(o);function o(e,i){var r;if(_classCallCheck(this,o),void 0===t)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");return(r=n.call(this,e))._isEnabled=!0,r._timeout=0,r._hoverState="",r._activeTrigger={},r._popper=null,r._config=r._getConfig(i),r.tip=null,r._setListeners(),r}return _createClass(o,[{key:"enable",value:function(){this._isEnabled=!0}},{key:"disable",value:function(){this._isEnabled=!1}},{key:"toggleEnabled",value:function(){this._isEnabled=!this._isEnabled}},{key:"toggle",value:function(e){if(this._isEnabled)if(e){var t=this._initializeOnDelegatedTarget(e);t._activeTrigger.click=!t._activeTrigger.click,t._isWithActiveTrigger()?t._enter(null,t):t._leave(null,t)}else{if(this.getTipElement().classList.contains("show"))return void this._leave(null,this);this._enter(null,this)}}},{key:"dispose",value:function(){clearTimeout(this._timeout),z.off(this._element.closest(".modal"),"hide.bs.modal",this._hideModalHandler),this.tip&&this.tip.remove(),this._popper&&this._popper.destroy(),_get(_getPrototypeOf(o.prototype),"dispose",this).call(this)}},{key:"show",value:function(){var e,n,i=this;if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(this.isWithContent()&&this._isEnabled){var o=z.trigger(this._element,this.constructor.Event.SHOW),r=g(this._element),a=null===r?this._element.ownerDocument.documentElement.contains(this._element):r.contains(this._element);if(!o.defaultPrevented&&a){var l=this.getTipElement(),c=s(this.constructor.NAME);l.setAttribute("id",c),this._element.setAttribute("aria-describedby",c),this.setContent(),this._config.animation&&l.classList.add("fade");var u="function"==typeof this._config.placement?this._config.placement.call(this,l,this._element):this._config.placement,f=this._getAttachment(u);this._addAttachmentClass(f);var h=this._config.container;U(l,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(h.appendChild(l),z.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=t.createPopper(this._element,l,this._getPopperConfig(f)),l.classList.add("show");var d="function"==typeof this._config.customClass?this._config.customClass():this._config.customClass;d&&(e=l.classList).add.apply(e,_toConsumableArray(d.split(" "))),"ontouchstart"in document.documentElement&&(n=[]).concat.apply(n,_toConsumableArray(document.body.children)).forEach((function(e){z.on(e,"mouseover",m)}));var p=this.tip.classList.contains("fade");this._queueCallback((function(){var e=i._hoverState;i._hoverState=null,z.trigger(i._element,i.constructor.Event.SHOWN),"out"===e&&i._leave(null,i)}),this.tip,p)}}}},{key:"hide",value:function(){var e,t=this;if(this._popper){var n=this.getTipElement();if(!z.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented){n.classList.remove("show"),"ontouchstart"in document.documentElement&&(e=[]).concat.apply(e,_toConsumableArray(document.body.children)).forEach((function(e){return z.off(e,"mouseover",m)})),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1;var i=this.tip.classList.contains("fade");this._queueCallback((function(){t._isWithActiveTrigger()||("show"!==t._hoverState&&n.remove(),t._cleanTipClass(),t._element.removeAttribute("aria-describedby"),z.trigger(t._element,t.constructor.Event.HIDDEN),t._popper&&(t._popper.destroy(),t._popper=null))}),this.tip,i),this._hoverState=""}}}},{key:"update",value:function(){null!==this._popper&&this._popper.update()}},{key:"isWithContent",value:function(){return Boolean(this.getTitle())}},{key:"getTipElement",value:function(){if(this.tip)return this.tip;var e=document.createElement("div");return e.innerHTML=this._config.template,this.tip=e.children[0],this.tip}},{key:"setContent",value:function(){var e=this.getTipElement();this.setElementContent(i(".tooltip-inner",e),this.getTitle()),e.classList.remove("fade","show")}},{key:"setElementContent",value:function(e,t){if(null!==e)return f(t)?(t=h(t),void(this._config.html?t.parentNode!==e&&(e.innerHTML="",e.appendChild(t)):e.textContent=t.textContent)):void(this._config.html?(this._config.sanitize&&(t=Ie(t,this._config.allowList,this._config.sanitizeFn)),e.innerHTML=t):e.textContent=t)}},{key:"getTitle",value:function(){var e=this._element.getAttribute("data-bs-original-title");return e||(e="function"==typeof this._config.title?this._config.title.call(this._element):this._config.title),e}},{key:"updateAttachment",value:function(e){return"right"===e?"end":"left"===e?"start":e}},{key:"_initializeOnDelegatedTarget",value:function(e,t){var n=this.constructor.DATA_KEY;return(t=t||F(e.delegateTarget,n))||(t=new this.constructor(e.delegateTarget,this._getDelegateConfig()),U(e.delegateTarget,n,t)),t}},{key:"_getOffset",value:function(){var e=this,t=this._config.offset;return"string"==typeof t?t.split(",").map((function(e){return Number.parseInt(e,10)})):"function"==typeof t?function(n){return t(n,e._element)}:t}},{key:"_getPopperConfig",value:function(e){var t=this,n={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:".".concat(this.constructor.NAME,"-arrow")}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:function(e){return t._handlePopperPlacementChange(e)}}],onFirstUpdate:function(e){e.options.placement!==e.placement&&t._handlePopperPlacementChange(e)}};return _objectSpread(_objectSpread({},n),"function"==typeof this._config.popperConfig?this._config.popperConfig(n):this._config.popperConfig)}},{key:"_addAttachmentClass",value:function(e){this.getTipElement().classList.add("bs-tooltip-"+this.updateAttachment(e))}},{key:"_getAttachment",value:function(e){return Me[e.toUpperCase()]}},{key:"_setListeners",value:function(){var e=this;this._config.trigger.split(" ").forEach((function(t){if("click"===t)z.on(e._element,e.constructor.Event.CLICK,e._config.selector,(function(t){return e.toggle(t)}));else if("manual"!==t){var n="hover"===t?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,i="hover"===t?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;z.on(e._element,n,e._config.selector,(function(t){return e._enter(t)})),z.on(e._element,i,e._config.selector,(function(t){return e._leave(t)}))}})),this._hideModalHandler=function(){e._element&&e.hide()},z.on(this._element.closest(".modal"),"hide.bs.modal",this._hideModalHandler),this._config.selector?this._config=_objectSpread(_objectSpread({},this._config),{},{trigger:"manual",selector:""}):this._fixTitle()}},{key:"_fixTitle",value:function(){var e=this._element.getAttribute("title"),t=_typeof(this._element.getAttribute("data-bs-original-title"));(e||"string"!==t)&&(this._element.setAttribute("data-bs-original-title",e||""),!e||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",e),this._element.setAttribute("title",""))}},{key:"_enter",value:function(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusin"===e.type?"focus":"hover"]=!0),t.getTipElement().classList.contains("show")||"show"===t._hoverState?t._hoverState="show":(clearTimeout(t._timeout),t._hoverState="show",t._config.delay&&t._config.delay.show?t._timeout=setTimeout((function(){"show"===t._hoverState&&t.show()}),t._config.delay.show):t.show())}},{key:"_leave",value:function(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusout"===e.type?"focus":"hover"]=t._element.contains(e.relatedTarget)),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState="out",t._config.delay&&t._config.delay.hide?t._timeout=setTimeout((function(){"out"===t._hoverState&&t.hide()}),t._config.delay.hide):t.hide())}},{key:"_isWithActiveTrigger",value:function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1}},{key:"_getConfig",value:function(e){var t=$.getDataAttributes(this._element);return Object.keys(t).forEach((function(e){Ne.has(e)&&delete t[e]})),(e=_objectSpread(_objectSpread(_objectSpread({},this.constructor.Default),t),"object"==_typeof(e)&&e?e:{})).container=!1===e.container?document.body:h(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),d("tooltip",e,this.constructor.DefaultType),e.sanitize&&(e.template=Ie(e.template,e.allowList,e.sanitizeFn)),e}},{key:"_getDelegateConfig",value:function(){var e={};if(this._config)for(var t in this._config)this.constructor.Default[t]!==this._config[t]&&(e[t]=this._config[t]);return e}},{key:"_cleanTipClass",value:function(){var e=this.getTipElement(),t=e.getAttribute("class").match(De);null!==t&&t.length>0&&t.map((function(e){return e.trim()})).forEach((function(t){return e.classList.remove(t)}))}},{key:"_handlePopperPlacementChange",value:function(e){var t=e.state;t&&(this.tip=t.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(t.placement)))}}],[{key:"Default",get:function(){return xe}},{key:"NAME",get:function(){return"tooltip"}},{key:"Event",get:function(){return He}},{key:"DefaultType",get:function(){return Pe}},{key:"jQueryInterface",value:function(e){return this.each((function(){var t=o.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError('No method named "'.concat(e,'"'));t[e]()}}))}}]),o}(K);w(Re);var Be=new RegExp("(^|\\s)bs-popover\\S+","g"),We=_objectSpread(_objectSpread({},Re.Default),{},{placement:"right",offset:[0,8],trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),ze=_objectSpread(_objectSpread({},Re.DefaultType),{},{content:"(string|element|function)"}),qe={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},Ue=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"isWithContent",value:function(){return this.getTitle()||this._getContent()}},{key:"getTipElement",value:function(){return this.tip||(this.tip=_get(_getPrototypeOf(n.prototype),"getTipElement",this).call(this),this.getTitle()||i(".popover-header",this.tip).remove(),this._getContent()||i(".popover-body",this.tip).remove()),this.tip}},{key:"setContent",value:function(){var e=this.getTipElement();this.setElementContent(i(".popover-header",e),this.getTitle());var t=this._getContent();"function"==typeof t&&(t=t.call(this._element)),this.setElementContent(i(".popover-body",e),t),e.classList.remove("fade","show")}},{key:"_addAttachmentClass",value:function(e){this.getTipElement().classList.add("bs-popover-"+this.updateAttachment(e))}},{key:"_getContent",value:function(){return this._element.getAttribute("data-bs-content")||this._config.content}},{key:"_cleanTipClass",value:function(){var e=this.getTipElement(),t=e.getAttribute("class").match(Be);null!==t&&t.length>0&&t.map((function(e){return e.trim()})).forEach((function(t){return e.classList.remove(t)}))}}],[{key:"Default",get:function(){return We}},{key:"NAME",get:function(){return"popover"}},{key:"Event",get:function(){return qe}},{key:"DefaultType",get:function(){return ze}},{key:"jQueryInterface",value:function(e){return this.each((function(){var t=n.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError('No method named "'.concat(e,'"'));t[e]()}}))}}]),n}(Re);w(Ue);var Fe={offset:10,method:"auto",target:""},Ke={offset:"number",method:"string",target:"(string|element)"},Ve=function(e){_inherits(a,e);var t=_createSuper(a);function a(e,n){var i;return _classCallCheck(this,a),(i=t.call(this,e))._scrollElement="BODY"===i._element.tagName?window:i._element,i._config=i._getConfig(n),i._selector="".concat(i._config.target," .nav-link, ").concat(i._config.target," .list-group-item, ").concat(i._config.target," .dropdown-item"),i._offsets=[],i._targets=[],i._activeTarget=null,i._scrollHeight=0,z.on(i._scrollElement,"scroll.bs.scrollspy",(function(){return i._process()})),i.refresh(),i._process(),i}return _createClass(a,[{key:"refresh",value:function(){var e=this,t=this._scrollElement===this._scrollElement.window?"offset":"position",o="auto"===this._config.method?t:this._config.method,r="position"===o?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),n(this._selector).map((function(e){var t=l(e),n=t?i(t):null;if(n){var s=n.getBoundingClientRect();if(s.width||s.height)return[$[o](n).top+r,t]}return null})).filter((function(e){return e})).sort((function(e,t){return e[0]-t[0]})).forEach((function(t){e._offsets.push(t[0]),e._targets.push(t[1])}))}},{key:"dispose",value:function(){z.off(this._scrollElement,".bs.scrollspy"),_get(_getPrototypeOf(a.prototype),"dispose",this).call(this)}},{key:"_getConfig",value:function(e){if("string"!=typeof(e=_objectSpread(_objectSpread(_objectSpread({},Fe),$.getDataAttributes(this._element)),"object"==_typeof(e)&&e?e:{})).target&&f(e.target)){var t=e.target.id;t||(t=s("scrollspy"),e.target.id=t),e.target="#"+t}return d("scrollspy",e,Ke),e}},{key:"_getScrollTop",value:function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}},{key:"_getScrollHeight",value:function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}},{key:"_getOffsetHeight",value:function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}},{key:"_process",value:function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&e<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;)this._activeTarget!==this._targets[o]&&e>=this._offsets[o]&&(void 0===this._offsets[o+1]||e<this._offsets[o+1])&&this._activate(this._targets[o])}}},{key:"_activate",value:function(e){this._activeTarget=e,this._clear();var t=this._selector.split(",").map((function(t){return"".concat(t,'[data-bs-target="').concat(e,'"],').concat(t,'[href="').concat(e,'"]')})),n=i(t.join(","));n.classList.contains("dropdown-item")?(i(".dropdown-toggle",n.closest(".dropdown")).classList.add("active"),n.classList.add("active")):(n.classList.add("active"),function(e,t){for(var n=[],i=e.parentNode;i&&i.nodeType===Node.ELEMENT_NODE&&3!==i.nodeType;)i.matches(t)&&n.push(i),i=i.parentNode;return n}(n,".nav, .list-group").forEach((function(e){r(e,".nav-link, .list-group-item").forEach((function(e){return e.classList.add("active")})),r(e,".nav-item").forEach((function(e){o(e,".nav-link").forEach((function(e){return e.classList.add("active")}))}))}))),z.trigger(this._scrollElement,"activate.bs.scrollspy",{relatedTarget:e})}},{key:"_clear",value:function(){n(this._selector).filter((function(e){return e.classList.contains("active")})).forEach((function(e){return e.classList.remove("active")}))}}],[{key:"Default",get:function(){return Fe}},{key:"NAME",get:function(){return"scrollspy"}},{key:"jQueryInterface",value:function(e){return this.each((function(){var t=a.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError('No method named "'.concat(e,'"'));t[e]()}}))}}]),a}(K);z.on(window,"load.bs.scrollspy.data-api",(function(){n('[data-bs-spy="scroll"]').forEach((function(e){return new Ve(e)}))})),w(Ve);var Qe=function(e){_inherits(r,e);var t=_createSuper(r);function r(){return _classCallCheck(this,r),t.apply(this,arguments)}return _createClass(r,[{key:"show",value:function(){var e=this;if(!this._element.parentNode||this._element.parentNode.nodeType!==Node.ELEMENT_NODE||!this._element.classList.contains("active")){var t,i=c(this._element),o=this._element.closest(".nav, .list-group");if(o){var r="UL"===o.nodeName||"OL"===o.nodeName?":scope > li > .active":".active";t=(t=n(r,o))[t.length-1]}var s=t?z.trigger(t,"hide.bs.tab",{relatedTarget:this._element}):null;if(!(z.trigger(this._element,"show.bs.tab",{relatedTarget:t}).defaultPrevented||null!==s&&s.defaultPrevented)){this._activate(this._element,o);var a=function(){z.trigger(t,"hidden.bs.tab",{relatedTarget:e._element}),z.trigger(e._element,"shown.bs.tab",{relatedTarget:t})};i?this._activate(i,i.parentNode,a):a()}}}},{key:"_activate",value:function(e,t,i){var r=this,s=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?o(t,".active"):n(":scope > li > .active",t))[0],a=i&&s&&s.classList.contains("fade"),l=function(){return r._transitionComplete(e,s,i)};s&&a?(s.classList.remove("show"),this._queueCallback(l,e,!0)):l()}},{key:"_transitionComplete",value:function(e,t,o){if(t){t.classList.remove("active");var r=i(":scope > .dropdown-menu .active",t.parentNode);r&&r.classList.remove("active"),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}e.classList.add("active"),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),v(e),e.classList.contains("fade")&&e.classList.add("show");var s=e.parentNode;if(s&&"LI"===s.nodeName&&(s=s.parentNode),s&&s.classList.contains("dropdown-menu")){var a=e.closest(".dropdown");a&&n(".dropdown-toggle",a).forEach((function(e){return e.classList.add("active")})),e.setAttribute("aria-expanded",!0)}o&&o()}}],[{key:"NAME",get:function(){return"tab"}},{key:"jQueryInterface",value:function(e){return this.each((function(){var t=r.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e])throw new TypeError('No method named "'.concat(e,'"'));t[e]()}}))}}]),r}(K);z.on(document,"click.bs.tab.data-api",'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',(function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),_(this)||Qe.getOrCreateInstance(this).show()})),w(Qe);var Xe={animation:"boolean",autohide:"boolean",delay:"number"},Ye={animation:!0,autohide:!0,delay:5e3},$e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var o;return _classCallCheck(this,n),(o=t.call(this,e))._config=o._getConfig(i),o._timeout=null,o._hasMouseInteraction=!1,o._hasKeyboardInteraction=!1,o._setListeners(),o}return _createClass(n,[{key:"show",value:function(){var e=this;z.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove("hide"),v(this._element),this._element.classList.add("showing"),this._queueCallback((function(){e._element.classList.remove("showing"),e._element.classList.add("show"),z.trigger(e._element,"shown.bs.toast"),e._maybeScheduleHide()}),this._element,this._config.animation))}},{key:"hide",value:function(){var e=this;this._element.classList.contains("show")&&(z.trigger(this._element,"hide.bs.toast").defaultPrevented||(this._element.classList.remove("show"),this._queueCallback((function(){e._element.classList.add("hide"),z.trigger(e._element,"hidden.bs.toast")}),this._element,this._config.animation)))}},{key:"dispose",value:function(){this._clearTimeout(),this._element.classList.contains("show")&&this._element.classList.remove("show"),_get(_getPrototypeOf(n.prototype),"dispose",this).call(this)}},{key:"_getConfig",value:function(e){return e=_objectSpread(_objectSpread(_objectSpread({},Ye),$.getDataAttributes(this._element)),"object"==_typeof(e)&&e?e:{}),d("toast",e,this.constructor.DefaultType),e}},{key:"_maybeScheduleHide",value:function(){var e=this;this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((function(){e.hide()}),this._config.delay)))}},{key:"_onInteraction",value:function(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)this._clearTimeout();else{var n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}}},{key:"_setListeners",value:function(){var e=this;z.on(this._element,"click.dismiss.bs.toast",'[data-bs-dismiss="toast"]',(function(){return e.hide()})),z.on(this._element,"mouseover.bs.toast",(function(t){return e._onInteraction(t,!0)})),z.on(this._element,"mouseout.bs.toast",(function(t){return e._onInteraction(t,!1)})),z.on(this._element,"focusin.bs.toast",(function(t){return e._onInteraction(t,!0)})),z.on(this._element,"focusout.bs.toast",(function(t){return e._onInteraction(t,!1)}))}},{key:"_clearTimeout",value:function(){clearTimeout(this._timeout),this._timeout=null}}],[{key:"DefaultType",get:function(){return Xe}},{key:"Default",get:function(){return Ye}},{key:"NAME",get:function(){return"toast"}},{key:"jQueryInterface",value:function(e){return this.each((function(){var t=n.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError('No method named "'.concat(e,'"'));t[e](this)}}))}}]),n}(K);return w($e),{Alert:V,Button:Q,Carousel:oe,Collapse:ae,Dropdown:me,Modal:Ae,Offcanvas:Se,Popover:Ue,ScrollSpy:Ve,Tab:Qe,Toast:$e,Tooltip:Re}}));