!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e()}(this,function(){"use strict";function i(t,e){for(var n=0;nthis._items.length-1||t<0))if(this._isSliding)W.one(this._element,st,function(){return e.to(t)});else{if(n===t)return this.pause(),void this.cycle();n=nc[O]&&(T=he(T));E=he(T),O=[];if(o&&O.push(L[w]<=0),r&&O.push(L[T]<=0,L[E]<=0),O.every(function(t){return t})){v=y,_=!1;break}u.set(y,O)}if(_)for(var k=g?3:1;0document.documentElement.clientHeight)||(this._element.style.overflowY="hidden"),this._element.classList.add(An),e=h(this._dialog),W.off(this._element,E),W.one(this._element,E,function(){n._element.classList.remove(An),t||(W.one(n._element,E,function(){n._element.style.overflowY=""}),g(n._element,e))}),g(this._element,e),this._element.focus())},t._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;(!this._isBodyOverflowing&&t&&!n||this._isBodyOverflowing&&!t&&n)&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),(this._isBodyOverflowing&&!t&&!n||!this._isBodyOverflowing&&t&&n)&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},t._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},t._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",container:!1,fallbackPlacements:null,boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:je,popperConfig:null},Fn={HIDE:"hide"+Bn,HIDDEN:"hidden"+Bn,SHOW:"show"+Bn,SHOWN:"shown"+Bn,INSERTED:"inserted"+Bn,CLICK:"click"+Bn,FOCUSIN:"focusin"+Bn,FOCUSOUT:"focusout"+Bn,MOUSEENTER:"mouseenter"+Bn,MOUSELEAVE:"mouseleave"+Bn},Yn="fade",qn="show",zn="show",Vn="hover",Xn="focus",$n=function(n){function i(t,e){if(void 0===Qe)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");return(t=n.call(this,t)||this)._isEnabled=!0,t._timeout=0,t._hoverState="",t._activeTrigger={},t._popper=null,t.config=t._getConfig(e),t.tip=null,t._setListeners(),t}u(i,n);var t=i.prototype;return t.enable=function(){this._isEnabled=!0},t.disable=function(){this._isEnabled=!1},t.toggleEnabled=function(){this._isEnabled=!this._isEnabled},t.toggle=function(t){var e,n;this._isEnabled&&(t?(e=this.constructor.DATA_KEY,(n=L(t.delegateTarget,e))||(n=new this.constructor(t.delegateTarget,this._getDelegateConfig()),O(t.delegateTarget,e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)):this.getTipElement().classList.contains(qn)?this._leave(null,this):this._enter(null,this))},t.dispose=function(){clearTimeout(this._timeout),W.off(this._element,this.constructor.EVENT_KEY),W.off(this._element.closest(".modal"),"hide.bs.modal",this._hideModalHandler),this.tip&&this.tip.parentNode.removeChild(this.tip),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.config=null,this.tip=null,n.prototype.dispose.call(this)},t.show=function(){var t,e,n,i,o=this;if("none"===this._element.style.display)throw new Error("Please use show on visible elements");this.isWithContent()&&this._isEnabled&&(n=W.trigger(this._element,this.constructor.Event.SHOW),t=(null===(e=c(this._element))?this._element.ownerDocument.documentElement:e).contains(this._element),!n.defaultPrevented&&t&&(e=this.getTipElement(),n=r(this.constructor.NAME),e.setAttribute("id",n),this._element.setAttribute("aria-describedby",n),this.setContent(),this.config.animation&&e.classList.add(Yn),t="function"==typeof this.config.placement?this.config.placement.call(this,e,this._element):this.config.placement,n=this._getAttachment(t),this._addAttachmentClass(n),t=this._getContainer(),O(e,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||t.appendChild(e),W.trigger(this._element,this.constructor.Event.INSERTED),this._popper=Ke(this._element,e,this._getPopperConfig(n)),e.classList.add(qn),(n="function"==typeof this.config.customClass?this.config.customClass():this.config.customClass)&&(e=e.classList).add.apply(e,n.split(" ")),"ontouchstart"in document.documentElement&&(i=[]).concat.apply(i,document.body.children).forEach(function(t){W.on(t,"mouseover",_())}),n=function(){var t=o._hoverState;o._hoverState=null,W.trigger(o._element,o.constructor.Event.SHOWN),"out"===t&&o._leave(null,o)},this.tip.classList.contains(Yn)?(i=h(this.tip),W.one(this.tip,E,n),g(this.tip,i)):n()))},t.hide=function(){var t,e,n,i=this;this._popper&&(t=this.getTipElement(),e=function(){i._hoverState!==zn&&t.parentNode&&t.parentNode.removeChild(t),i._cleanTipClass(),i._element.removeAttribute("aria-describedby"),W.trigger(i._element,i.constructor.Event.HIDDEN),i._popper&&(i._popper.destroy(),i._popper=null)},W.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented||(t.classList.remove(qn),"ontouchstart"in document.documentElement&&(n=[]).concat.apply(n,document.body.children).forEach(function(t){return W.off(t,"mouseover",_)}),this._activeTrigger.click=!1,this._activeTrigger[Xn]=!1,this._activeTrigger[Vn]=!1,this.tip.classList.contains(Yn)?(n=h(t),W.one(t,E,e),g(t,n)):e(),this._hoverState=""))},t.update=function(){null!==this._popper&&this._popper.update()},t.isWithContent=function(){return Boolean(this.getTitle())},t.getTipElement=function(){if(this.tip)return this.tip;var t=document.createElement("div");return t.innerHTML=this.config.template,this.tip=t.children[0],this.tip},t.setContent=function(){var t=this.getTipElement();this.setElementContent(Z.findOne(".tooltip-inner",t),this.getTitle()),t.classList.remove(Yn,qn)},t.setElementContent=function(t,e){if(null!==t)return"object"==typeof e&&p(e)?(e.jquery&&(e=e[0]),void(this.config.html?e.parentNode!==t&&(t.innerHTML="",t.appendChild(e)):t.textContent=e.textContent)):void(this.config.html?(this.config.sanitize&&(e=In(e,this.config.allowList,this.config.sanitizeFn)),t.innerHTML=e):t.textContent=e)},t.getTitle=function(){return this._element.getAttribute("data-bs-original-title")||("function"==typeof this.config.title?this.config.title.call(this._element):this.config.title)},t.updateAttachment=function(t){return"right"===t?"end":"left"===t?"start":t},t._getPopperConfig=function(t){var e=this,n={name:"flip",options:{altBoundary:!0}};return this.config.fallbackPlacements&&(n.options.fallbackPlacements=this.config.fallbackPlacements),l({},{placement:t,modifiers:[n,{name:"preventOverflow",options:{rootBoundary:this.config.boundary}},{name:"arrow",options:{element:"."+this.constructor.NAME+"-arrow"}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:function(t){return e._handlePopperPlacementChange(t)}}],onFirstUpdate:function(t){t.options.placement!==t.placement&&e._handlePopperPlacementChange(t)}},this.config.popperConfig)},t._addAttachmentClass=function(t){this.getTipElement().classList.add(Hn+"-"+this.updateAttachment(t))},t._getContainer=function(){return!1===this.config.container?document.body:p(this.config.container)?this.config.container:Z.findOne(this.config.container)},t._getAttachment=function(t){return Qn[t.toUpperCase()]},t._setListeners=function(){var n=this;this.config.trigger.split(" ").forEach(function(t){var e;"click"===t?W.on(n._element,n.constructor.Event.CLICK,n.config.selector,function(t){return n.toggle(t)}):"manual"!==t&&(e=t===Vn?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN,t=t===Vn?n.constructor.Event.MOUSELEAVE:n.constructor.Event.FOCUSOUT,W.on(n._element,e,n.config.selector,function(t){return n._enter(t)}),W.on(n._element,t,n.config.selector,function(t){return n._leave(t)}))}),this._hideModalHandler=function(){n._element&&n.hide()},W.on(this._element.closest(".modal"),"hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},t._fixTitle=function(){var t=this._element.getAttribute("title"),e=typeof this._element.getAttribute("data-bs-original-title");!t&&"string"==e||(this._element.setAttribute("data-bs-original-title",t||""),!t||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",t),this._element.setAttribute("title",""))},t._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||L(t.delegateTarget,n))||(e=new this.constructor(t.delegateTarget,this._getDelegateConfig()),O(t.delegateTarget,n,e)),t&&(e._activeTrigger["focusin"===t.type?Xn:Vn]=!0),e.getTipElement().classList.contains(qn)||e._hoverState===zn?e._hoverState=zn:(clearTimeout(e._timeout),e._hoverState=zn,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===zn&&e.show()},e.config.delay.show):e.show())},t._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||L(t.delegateTarget,n))||(e=new this.constructor(t.delegateTarget,this._getDelegateConfig()),O(t.delegateTarget,n,e)),t&&(e._activeTrigger["focusout"===t.type?Xn:Vn]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState="out",e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){"out"===e._hoverState&&e.hide()},e.config.delay.hide):e.hide())},t._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},t._getConfig=function(t){var e=G.getDataAttributes(this._element);return Object.keys(e).forEach(function(t){Wn.has(t)&&delete e[t]}),t&&"object"==typeof t.container&&t.container.jquery&&(t.container=t.container[0]),"number"==typeof(t=l({},this.constructor.Default,e,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),m(Pn,t,this.constructor.DefaultType),t.sanitize&&(t.template=In(t.template,t.allowList,t.sanitizeFn)),t},t._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},t._cleanTipClass=function(){var e=this.getTipElement(),t=e.getAttribute("class").match(Rn);null!==t&&0

'}),ii=l({},$n.DefaultType,{content:"(string|element|function)"}),oi={HIDE:"hide"+Jn,HIDDEN:"hidden"+Jn,SHOW:"show"+Jn,SHOWN:"shown"+Jn,INSERTED:"inserted"+Jn,CLICK:"click"+Jn,FOCUSIN:"focusin"+Jn,FOCUSOUT:"focusout"+Jn,MOUSEENTER:"mouseenter"+Jn,MOUSELEAVE:"mouseleave"+Jn},ri=function(t){function i(){return t.apply(this,arguments)||this}u(i,t);var e=i.prototype;return e.isWithContent=function(){return this.getTitle()||this._getContent()},e.setContent=function(){var t=this.getTipElement();this.setElementContent(Z.findOne(".popover-header",t),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this._element)),this.setElementContent(Z.findOne(".popover-body",t),e),t.classList.remove("fade","show")},e._addAttachmentClass=function(t){this.getTipElement().classList.add(ti+"-"+this.updateAttachment(t))},e._getContent=function(){return this._element.getAttribute("data-bs-content")||this.config.content},e._cleanTipClass=function(){var e=this.getTipElement(),t=e.getAttribute("class").match(ei);null!==t&&0=this._offsets[i]&&(void 0===this._offsets[i+1]||t .dropdown-menu .active",e.parentNode))&&i.classList.remove(vi),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)),t.classList.add(vi),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),v(t),t.classList.contains("fade")&&t.classList.add("show"),t.parentNode&&t.parentNode.classList.contains("dropdown-menu")&&(t.closest(".dropdown")&&Z.find(".dropdown-toggle").forEach(function(t){return t.classList.add(vi)}),t.setAttribute("aria-expanded",!0)),n&&n()},n.jQueryInterface=function(e){return this.each(function(){var t=L(this,_i)||new n(this);if("string"==typeof e){if(void 0===t[e])throw new TypeError('No method named "'+e+'"');t[e]()}})},a(n,null,[{key:"DATA_KEY",get:function(){return _i}}]),n}(K);W.on(document,"click.bs.tab.data-api",'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',function(t){t.preventDefault(),(L(this,_i)||new wi(this)).show()}),t(function(){var t,e=b();e&&(t=e.fn.tab,e.fn.tab=wi.jQueryInterface,e.fn.tab.Constructor=wi,e.fn.tab.noConflict=function(){return e.fn.tab=t,wi.jQueryInterface})});var Ei="toast",Ti="bs.toast",je="."+Ti,Oi="click.dismiss"+je,Li="show",ki="showing",Ai={animation:"boolean",autohide:"boolean",delay:"number"},Ci={animation:!0,autohide:!0,delay:5e3},Di=function(n){function i(t,e){t=n.call(this,t)||this;return t._config=t._getConfig(e),t._timeout=null,t._setListeners(),t}u(i,n);var t=i.prototype;return t.show=function(){var t,e,n=this;W.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),t=function(){n._element.classList.remove(ki),n._element.classList.add(Li),W.trigger(n._element,"shown.bs.toast"),n._config.autohide&&(n._timeout=setTimeout(function(){n.hide()},n._config.delay))},this._element.classList.remove("hide"),v(this._element),this._element.classList.add(ki),this._config.animation?(e=h(this._element),W.one(this._element,E,t),g(this._element,e)):t())},t.hide=function(){var t,e,n=this;this._element.classList.contains(Li)&&(W.trigger(this._element,"hide.bs.toast").defaultPrevented||(t=function(){n._element.classList.add("hide"),W.trigger(n._element,"hidden.bs.toast")},this._element.classList.remove(Li),this._config.animation?(e=h(this._element),W.one(this._element,E,t),g(this._element,e)):t()))},t.dispose=function(){this._clearTimeout(),this._element.classList.contains(Li)&&this._element.classList.remove(Li),W.off(this._element,Oi),n.prototype.dispose.call(this),this._config=null},t._getConfig=function(t){return t=l({},Ci,G.getDataAttributes(this._element),"object"==typeof t&&t?t:{}),m(Ei,t,this.constructor.DefaultType),t},t._setListeners=function(){var t=this;W.on(this._element,Oi,'[data-bs-dismiss="toast"]',function(){return t.hide()})},t._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},i.jQueryInterface=function(e){return this.each(function(){var t=(t=L(this,Ti))||new i(this,"object"==typeof e&&e);if("string"==typeof e){if(void 0===t[e])throw new TypeError('No method named "'+e+'"');t[e](this)}})},a(i,null,[{key:"DefaultType",get:function(){return Ai}},{key:"Default",get:function(){return Ci}},{key:"DATA_KEY",get:function(){return Ti}}]),i}(K);return t(function(){var t,e=b();e&&(t=e.fn[Ei],e.fn[Ei]=Di.jQueryInterface,e.fn[Ei].Constructor=Di,e.fn[Ei].noConflict=function(){return e.fn[Ei]=t,Di.jQueryInterface})}),{Alert:F,Button:V,Carousel:ut,Collapse:yt,Dropdown:fn,Modal:xn,Popover:ri,ScrollSpy:mi,Tab:wi,Toast:Di,Tooltip:$n}});