!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).bootstrap=t()}(this,function(){"use strict";const n=new Map,j={set(e,t,i){n.has(e)||n.set(e,new Map);e=n.get(e);e.has(t)||0===e.size?e.set(t,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(e.keys())[0]}.`)},get(e,t){return n.has(e)&&n.get(e).get(t)||null},remove(e,t){var i;n.has(e)&&((i=n.get(e)).delete(t),0===i.size)&&n.delete(e)}},F=1e3,H="transitionend",W=e=>e=e&&window.CSS&&window.CSS.escape?e.replace(/#([^\s"#']+)/g,(e,t)=>"#"+CSS.escape(t)):e,B=e=>{e.dispatchEvent(new Event(H))},o=e=>!(!e||"object"!=typeof e)&&void 0!==(e=void 0!==e.jquery?e[0]:e).nodeType,s=e=>o(e)?e.jquery?e[0]:e:"string"==typeof e&&0<e.length?document.querySelector(W(e)):null,r=e=>{if(!o(e)||0===e.getClientRects().length)return!1;var t="visible"===getComputedStyle(e).getPropertyValue("visibility"),i=e.closest("details:not([open])");if(i&&i!==e){e=e.closest("summary");if(e&&e.parentNode!==i)return!1;if(null===e)return!1}return t},a=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),z=e=>{var t;return document.documentElement.attachShadow?"function"==typeof e.getRootNode?(t=e.getRootNode())instanceof ShadowRoot?t:null:e instanceof ShadowRoot?e:e.parentNode?z(e.parentNode):null:null},R=()=>{},q=e=>{e.offsetHeight},V=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,$=[],l=()=>"rtl"===document.documentElement.dir;var e=n=>{var e;e=()=>{const e=V();if(e){const t=n.NAME,i=e.fn[t];e.fn[t]=n.jQueryInterface,e.fn[t].Constructor=n,e.fn[t].noConflict=()=>(e.fn[t]=i,n.jQueryInterface)}},"loading"===document.readyState?($.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of $)e()}),$.push(e)):e()};const c=(e,t=[],i=e)=>"function"==typeof e?e(...t):i,K=(i,n,e=!0)=>{if(e){e=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:i}=window.getComputedStyle(e);var e=Number.parseFloat(t),n=Number.parseFloat(i);return e||n?(t=t.split(",")[0],i=i.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(i))*F):0})(n)+5;let t=!1;const s=({target:e})=>{e===n&&(t=!0,n.removeEventListener(H,s),c(i))};n.addEventListener(H,s),setTimeout(()=>{t||B(n)},e)}else c(i)},Q=(e,t,i,n)=>{var s=e.length;let o=e.indexOf(t);return-1===o?!i&&n?e[s-1]:e[0]:(o+=i?1:-1,n&&(o=(o+s)%s),e[Math.max(0,Math.min(o,s-1))])},X=/[^.]*(?=\..*)\.|.*/,Y=/\..*/,U=/::\d+$/,G={};let J=1;const Z={mouseenter:"mouseover",mouseleave:"mouseout"},ee=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 te(e,t){return t&&t+"::"+J++||e.uidEvent||J++}function ie(e){var t=te(e);return e.uidEvent=t,G[t]=G[t]||{},G[t]}function ne(e,t,i=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===i)}function se(e,t,i){var n="string"==typeof t,t=!n&&t||i;let s=ae(e);return[n,t,s=ee.has(s)?s:e]}function oe(n,s,o,r,a){if("string"==typeof s&&n){let[e,t,i]=se(s,o,r);s in Z&&(t=(l=t,function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return l.call(this,e)}));var l,c,h,d,u,f,r=ie(n),r=r[i]||(r[i]={}),p=ne(r,t,e?o:null);p?p.oneOff=p.oneOff&&a:(p=te(t,s.replace(X,"")),(s=e?(d=n,u=o,f=t,function t(i){var n=d.querySelectorAll(u);for(let e=i["target"];e&&e!==this;e=e.parentNode)for(const s of n)if(s===e)return le(i,{delegateTarget:e}),t.oneOff&&m.off(d,i.type,u,f),f.apply(e,[i])}):(c=n,h=t,function e(t){return le(t,{delegateTarget:c}),e.oneOff&&m.off(c,t.type,h),h.apply(c,[t])})).delegationSelector=e?o:null,s.callable=t,s.oneOff=a,r[s.uidEvent=p]=s,n.addEventListener(i,s,e))}}function re(e,t,i,n,s){n=ne(t[i],n,s);n&&(e.removeEventListener(i,n,Boolean(s)),delete t[i][n.uidEvent])}function ae(e){return e=e.replace(Y,""),Z[e]||e}const m={on(e,t,i,n){oe(e,t,i,n,!1)},one(e,t,i,n){oe(e,t,i,n,!0)},off(e,t,i,n){if("string"==typeof t&&e){var s,o,[n,r,a]=se(t,i,n),l=a!==t,c=ie(e),h=c[a]||{},d=t.startsWith(".");if(void 0!==r)return Object.keys(h).length?void re(e,c,a,r,n?i:null):void 0;if(d)for(const y of Object.keys(c)){f=u=b=_=g=m=p=void 0;var u,f,p=e,m=c,g=y,_=t.slice(1),b=m[g]||{};for([u,f]of Object.entries(b))u.includes(_)&&re(p,m,g,f.callable,f.delegationSelector)}for([s,o]of Object.entries(h)){var v=s.replace(U,"");l&&!t.includes(v)||re(e,c,a,o.callable,o.delegationSelector)}}},trigger(e,t,i){if("string"!=typeof t||!e)return null;var n=V();let s=null,o=!0,r=!0,a=!1;t!==ae(t)&&n&&(s=n.Event(t,i),n(e).trigger(s),o=!s.isPropagationStopped(),r=!s.isImmediatePropagationStopped(),a=s.isDefaultPrevented());n=le(new Event(t,{bubbles:o,cancelable:!0}),i);return a&&n.preventDefault(),r&&e.dispatchEvent(n),n.defaultPrevented&&s&&s.preventDefault(),n}};function le(t,e={}){for(const[i,n]of Object.entries(e))try{t[i]=n}catch(e){Object.defineProperty(t,i,{configurable:!0,get(){return n}})}return t}function ce(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function he(e){return e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}const h={setDataAttribute(e,t,i){e.setAttribute("data-bs-"+he(t),i)},removeDataAttribute(e,t){e.removeAttribute("data-bs-"+he(t))},getDataAttributes(t){if(!t)return{};var i={};for(const n of Object.keys(t.dataset).filter(e=>e.startsWith("bs")&&!e.startsWith("bsConfig"))){let e=n.replace(/^bs/,"");i[e=e.charAt(0).toLowerCase()+e.slice(1,e.length)]=ce(t.dataset[n])}return i},getDataAttribute(e,t){return ce(e.getAttribute("data-bs-"+he(t)))}};class de{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){var i=o(t)?h.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...o(t)?h.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(var[i,n]of Object.entries(t)){var s=e[i],s=o(s)?"element":null==(s=s)?""+s:Object.prototype.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(n).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${s}" but expected type "${n}".`)}}}class t extends de{constructor(e,t){super(),(e=s(e))&&(this._element=e,this._config=this._getConfig(t),j.set(this._element,this.constructor.DATA_KEY,this))}dispose(){j.remove(this._element,this.constructor.DATA_KEY),m.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,i=!0){K(e,t,i)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return j.get(s(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.3.2"}static get DATA_KEY(){return"bs."+this.NAME}static get EVENT_KEY(){return"."+this.DATA_KEY}static eventName(e){return""+e+this.EVENT_KEY}}const ue=t=>{let i=t.getAttribute("data-bs-target");if(!i||"#"===i){let e=t.getAttribute("href");if(!e||!e.includes("#")&&!e.startsWith("."))return null;e.includes("#")&&!e.startsWith("#")&&(e="#"+e.split("#")[1]),i=e&&"#"!==e?W(e.trim()):null}return i},d={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(e=>e.matches(t))},parents(e,t){var i=[];let n=e.parentNode.closest(t);for(;n;)i.push(n),n=n.parentNode.closest(t);return i},prev(e,t){let i=e.previousElementSibling;for(;i;){if(i.matches(t))return[i];i=i.previousElementSibling}return[]},next(e,t){let i=e.nextElementSibling;for(;i;){if(i.matches(t))return[i];i=i.nextElementSibling}return[]},focusableChildren(e){var t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>e+':not([tabindex^="-"])').join(",");return this.find(t,e).filter(e=>!a(e)&&r(e))},getSelectorFromElement(e){e=ue(e);return e&&d.findOne(e)?e:null},getElementFromSelector(e){e=ue(e);return e?d.findOne(e):null},getMultipleElementsFromSelector(e){e=ue(e);return e?d.find(e):[]}};var fe=(t,i="hide")=>{var e="click.dismiss"+t.EVENT_KEY;const n=t.NAME;m.on(document,e,`[data-bs-dismiss="${n}"]`,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),a(this)||(e=d.getElementFromSelector(this)||this.closest("."+n),t.getOrCreateInstance(e)[i]())})};class pe extends t{static get NAME(){return"alert"}close(){var e;m.trigger(this._element,"close.bs.alert").defaultPrevented||(this._element.classList.remove("show"),e=this._element.classList.contains("fade"),this._queueCallback(()=>this._destroyElement(),this._element,e))}_destroyElement(){this._element.remove(),m.trigger(this._element,"closed.bs.alert"),this.dispose()}static jQueryInterface(t){return this.each(function(){var e=pe.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}})}}fe(pe,"close"),e(pe);const me='[data-bs-toggle="button"]';class ge extends t{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each(function(){var e=ge.getOrCreateInstance(this);"toggle"===t&&e[t]()})}}m.on(document,"click.bs.button.data-api",me,e=>{e.preventDefault();e=e.target.closest(me);ge.getOrCreateInstance(e).toggle()}),e(ge);const i=".bs.swipe",_e=(i,i,i,i,i,{endCallback:null,leftCallback:null,rightCallback:null}),be={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class ve extends de{constructor(e,t){super(),(this._element=e)&&ve.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return _e}static get DefaultType(){return be}static get NAME(){return"swipe"}dispose(){m.off(this._element,i)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),c(this._config.endCallback)}_move(e){this._deltaX=e.touches&&1<e.touches.length?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){var e=Math.abs(this._deltaX);e<=40||(e=e/this._deltaX,this._deltaX=0,e&&c(0<e?this._config.rightCallback:this._config.leftCallback))}_initEvents(){this._supportPointerEvents?(m.on(this._element,"pointerdown.bs.swipe",e=>this._start(e)),m.on(this._element,"pointerup.bs.swipe",e=>this._end(e)),this._element.classList.add("pointer-event")):(m.on(this._element,"touchstart.bs.swipe",e=>this._start(e)),m.on(this._element,"touchmove.bs.swipe",e=>this._move(e)),m.on(this._element,"touchend.bs.swipe",e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&("pen"===e.pointerType||"touch"===e.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||0<navigator.maxTouchPoints}}var u=".bs.carousel";const ye="next",f="prev",p="left",we="right",Ae="slid"+u;const Ee="carousel",Te="active",Ce=".active",Oe=".carousel-item";Ce,Oe;const xe={ArrowLeft:we,ArrowRight:p},ke={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Le={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Se extends t{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=d.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===Ee&&this.cycle()}static get Default(){return ke}static get DefaultType(){return Le}static get NAME(){return"carousel"}next(){this._slide(ye)}nextWhenVisible(){!document.hidden&&r(this._element)&&this.next()}prev(){this._slide(f)}pause(){this._isSliding&&B(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?m.one(this._element,Ae,()=>this.cycle()):this.cycle())}to(e){var t,i=this._getItems();e>i.length-1||e<0||(this._isSliding?m.one(this._element,Ae,()=>this.to(e)):(t=this._getItemIndex(this._getActive()))!==e&&(t=t<e?ye:f,this._slide(t,i[e])))}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&m.on(this._element,"keydown.bs.carousel",e=>this._keydown(e)),"hover"===this._config.pause&&(m.on(this._element,"mouseenter.bs.carousel",()=>this.pause()),m.on(this._element,"mouseleave.bs.carousel",()=>this._maybeEnableCycle())),this._config.touch&&ve.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of d.find(".carousel-item img",this._element))m.on(t,"dragstart.bs.carousel",e=>e.preventDefault());var e={leftCallback:()=>this._slide(this._directionToOrder(p)),rightCallback:()=>this._slide(this._directionToOrder(we)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new ve(this._element,e)}_keydown(e){var t;/input|textarea/i.test(e.target.tagName)||(t=xe[e.key])&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){var t;this._indicatorsElement&&((t=d.findOne(Ce,this._indicatorsElement)).classList.remove(Te),t.removeAttribute("aria-current"),t=d.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement))&&(t.classList.add(Te),t.setAttribute("aria-current","true"))}_updateInterval(){var e=this._activeElement||this._getActive();e&&(e=Number.parseInt(e.getAttribute("data-bs-interval"),10),this._config.interval=e||this._config.defaultInterval)}_slide(t,e=null){if(!this._isSliding){const n=this._getActive();var i=t===ye;const s=e||Q(this._getItems(),n,i,this._config.wrap);if(s!==n){const o=this._getItemIndex(s),r=e=>m.trigger(this._element,e,{relatedTarget:s,direction:this._orderToDirection(t),from:this._getItemIndex(n),to:o});e=r("slide.bs.carousel");if(!e.defaultPrevented&&n&&s){e=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=s;const a=i?"carousel-item-start":"carousel-item-end",l=i?"carousel-item-next":"carousel-item-prev";s.classList.add(l),q(s),n.classList.add(a),s.classList.add(a);this._queueCallback(()=>{s.classList.remove(a,l),s.classList.add(Te),n.classList.remove(Te,l,a),this._isSliding=!1,r(Ae)},n,this._isAnimated()),e&&this.cycle()}}}}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return d.findOne(".active.carousel-item",this._element)}_getItems(){return d.find(Oe,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return l()?e===p?f:ye:e===p?ye:f}_orderToDirection(e){return l()?e===f?p:we:e===f?we:p}static jQueryInterface(t){return this.each(function(){var e=Se.getOrCreateInstance(this,t);if("number"==typeof t)e.to(t);else if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}})}}m.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",function(e){var t=d.getElementFromSelector(this);t&&t.classList.contains(Ee)&&(e.preventDefault(),e=Se.getOrCreateInstance(t),(t=this.getAttribute("data-bs-slide-to"))?e.to(t):"next"===h.getDataAttribute(this,"slide")?e.next():e.prev(),e._maybeEnableCycle())}),m.on(window,"load.bs.carousel.data-api",()=>{for(const e of d.find('[data-bs-ride="carousel"]'))Se.getOrCreateInstance(e)}),e(Se);const De="show",g="collapse",Ie="collapsing",Ne=(g,g,'[data-bs-toggle="collapse"]'),Pe={parent:null,toggle:!0},Me={parent:"(null|element)",toggle:"boolean"};class je extends t{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];for(const s of d.find(Ne)){var i=d.getSelectorFromElement(s),n=d.find(i).filter(e=>e===this._element);null!==i&&n.length&&this._triggerArray.push(s)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Pe}static get DefaultType(){return Me}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(!this._isTransitioning&&!this._isShown()){let e=[];if(!(e=this._config.parent?this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(e=>e!==this._element).map(e=>je.getOrCreateInstance(e,{toggle:!1})):e).length||!e[0]._isTransitioning){var t=m.trigger(this._element,"show.bs.collapse");if(!t.defaultPrevented){for(const n of e)n.hide();const i=this._getDimension();this._element.classList.remove(g),this._element.classList.add(Ie),this._element.style[i]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;t="scroll"+(i[0].toUpperCase()+i.slice(1));this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Ie),this._element.classList.add(g,De),this._element.style[i]="",m.trigger(this._element,"shown.bs.collapse")},this._element,!0),this._element.style[i]=this._element[t]+"px"}}}}hide(){if(!this._isTransitioning&&this._isShown()){var e=m.trigger(this._element,"hide.bs.collapse");if(!e.defaultPrevented){e=this._getDimension();this._element.style[e]=this._element.getBoundingClientRect()[e]+"px",q(this._element),this._element.classList.add(Ie),this._element.classList.remove(g,De);for(const i of this._triggerArray){var t=d.getElementFromSelector(i);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0;this._element.style[e]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Ie),this._element.classList.add(g),m.trigger(this._element,"hidden.bs.collapse")},this._element,!0)}}}_isShown(e=this._element){return e.classList.contains(De)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=s(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(this._config.parent)for(const t of this._getFirstLevelChildren(Ne)){var e=d.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=d.find(":scope .collapse .collapse",this._config.parent);return d.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const i of e)i.classList.toggle("collapsed",!t),i.setAttribute("aria-expanded",t)}static jQueryInterface(t){const i={};return"string"==typeof t&&/show|hide/.test(t)&&(i.toggle=!1),this.each(function(){var e=je.getOrCreateInstance(this,i);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}m.on(document,"click.bs.collapse.data-api",Ne,function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const t of d.getMultipleElementsFromSelector(this))je.getOrCreateInstance(t,{toggle:!1}).toggle()}),e(je);var x="top",k="bottom",L="right",S="left",Fe="auto",D=[x,k,L,S],I="start",He="end",We="clippingParents",Be="viewport",ze="popper",Re="reference",qe=D.reduce(function(e,t){return e.concat([t+"-"+I,t+"-"+He])},[]),Ve=[].concat(D,[Fe]).reduce(function(e,t){return e.concat([t,t+"-"+I,t+"-"+He])},[]),u="beforeRead",$e="afterRead",Ke="beforeMain",Qe="afterMain",Xe="beforeWrite",Ye="afterWrite",Ue=[u,"read",$e,Ke,"main",Qe,Xe,"write",Ye];function _(e){return e?(e.nodeName||"").toLowerCase():null}function v(e){var t;return null==e?window:"[object Window]"!==e.toString()?(t=e.ownerDocument)&&t.defaultView||window:e}function b(e){return e instanceof v(e).Element||e instanceof Element}function y(e){return e instanceof v(e).HTMLElement||e instanceof HTMLElement}function Ge(e){return"undefined"!=typeof ShadowRoot&&(e instanceof v(e).ShadowRoot||e instanceof ShadowRoot)}var Je={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var s=e.state;Object.keys(s.elements).forEach(function(e){var t=s.styles[e]||{},i=s.attributes[e]||{},n=s.elements[e];y(n)&&_(n)&&(Object.assign(n.style,t),Object.keys(i).forEach(function(e){var t=i[e];!1===t?n.removeAttribute(e):n.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var n=e.state,s={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,s.popper),n.styles=s,n.elements.arrow&&Object.assign(n.elements.arrow.style,s.arrow),function(){Object.keys(n.elements).forEach(function(e){var t=n.elements[e],i=n.attributes[e]||{},e=Object.keys((n.styles.hasOwnProperty(e)?n.styles:s)[e]).reduce(function(e,t){return e[t]="",e},{});y(t)&&_(t)&&(Object.assign(t.style,e),Object.keys(i).forEach(function(e){t.removeAttribute(e)}))})}},requires:["computeStyles"]};function N(e){return e.split("-")[0]}var O=Math.max,Ze=Math.min,et=Math.round;function tt(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function it(){return!/^((?!chrome|android).)*safari/i.test(tt())}function nt(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),s=1,o=1;t&&y(e)&&(s=0<e.offsetWidth&&et(n.width)/e.offsetWidth||1,o=0<e.offsetHeight&&et(n.height)/e.offsetHeight||1);t=(b(e)?v(e):window).visualViewport,e=!it()&&i,i=(n.left+(e&&t?t.offsetLeft:0))/s,e=(n.top+(e&&t?t.offsetTop:0))/o,t=n.width/s,s=n.height/o;return{width:t,height:s,top:e,right:i+t,bottom:e+s,left:i,x:i,y:e}}function st(e){var t=nt(e),i=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function ot(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&Ge(i)){var n=t;do{if(n&&e.isSameNode(n))return!0}while(n=n.parentNode||n.host)}return!1}function w(e){return v(e).getComputedStyle(e)}function A(e){return((b(e)?e.ownerDocument:e.document)||window.document).documentElement}function rt(e){return"html"===_(e)?e:e.assignedSlot||e.parentNode||(Ge(e)?e.host:null)||A(e)}function at(e){return y(e)&&"fixed"!==w(e).position?e.offsetParent:null}function lt(e){for(var t,i=v(e),n=at(e);n&&(t=n,0<=["table","td","th"].indexOf(_(t)))&&"static"===w(n).position;)n=at(n);return(!n||"html"!==_(n)&&("body"!==_(n)||"static"!==w(n).position))&&(n||function(e){var t=/firefox/i.test(tt()),i=/Trident/i.test(tt());if(!i||!y(e)||"fixed"!==w(e).position){var n=rt(e);for(Ge(n)&&(n=n.host);y(n)&&["html","body"].indexOf(_(n))<0;){var s=w(n);if("none"!==s.transform||"none"!==s.perspective||"paint"===s.contain||-1!==["transform","perspective"].indexOf(s.willChange)||t&&"filter"===s.willChange||t&&s.filter&&"none"!==s.filter)return n;n=n.parentNode}}return null}(e))||i}function ct(e){return 0<=["top","bottom"].indexOf(e)?"x":"y"}function ht(e,t,i){return O(e,Ze(t,i))}function dt(){return{top:0,right:0,bottom:0,left:0}}function ut(e){return Object.assign({},dt(),e)}function ft(i,e){return e.reduce(function(e,t){return e[t]=i,e},{})}var pt={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i,n,s,o=e.state,r=e.name,e=e.options,a=o.elements.arrow,l=o.modifiersData.popperOffsets,c=ct(h=N(o.placement)),h=0<=[S,L].indexOf(h)?"height":"width";a&&l&&(e=e.padding,i=o,i=ut("number"!=typeof(e="function"==typeof e?e(Object.assign({},i.rects,{placement:i.placement})):e)?e:ft(e,D)),e=st(a),s="y"===c?x:S,n="y"===c?k:L,t=o.rects.reference[h]+o.rects.reference[c]-l[c]-o.rects.popper[h],l=l[c]-o.rects.reference[c],a=(a=lt(a))?"y"===c?a.clientHeight||0:a.clientWidth||0:0,s=i[s],i=a-e[h]-i[n],s=ht(s,n=a/2-e[h]/2+(t/2-l/2),i),o.modifiersData[r]=((a={})[c]=s,a.centerOffset=s-n,a))},effect:function(e){var t=e.state;null!=(e=void 0===(e=e.options.element)?"[data-popper-arrow]":e)&&("string"!=typeof e||(e=t.elements.popper.querySelector(e)))&&ot(t.elements.popper,e)&&(t.elements.arrow=e)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function mt(e){return e.split("-")[1]}var gt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _t(e){var t,i=e.popper,n=e.popperRect,s=e.placement,o=e.variation,r=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,h=e.roundOffsets,e=e.isFixed,d=r.x,d=void 0===d?0:d,u=r.y,u=void 0===u?0:u,f="function"==typeof h?h({x:d,y:u}):{x:d,y:u},f=(d=f.x,u=f.y,r.hasOwnProperty("x")),r=r.hasOwnProperty("y"),p=S,m=x,g=window,_=(c&&(_="clientHeight",t="clientWidth",(b=lt(i))===v(i)&&"static"!==w(b=A(i)).position&&"absolute"===a&&(_="scrollHeight",t="scrollWidth"),s!==x&&(s!==S&&s!==L||o!==He)||(m=k,u=(u-((e&&b===g&&g.visualViewport?g.visualViewport.height:b[_])-n.height))*(l?1:-1)),s!==S&&(s!==x&&s!==k||o!==He)||(p=L,d=(d-((e&&b===g&&g.visualViewport?g.visualViewport.width:b[t])-n.width))*(l?1:-1))),Object.assign({position:a},c&&gt)),b=!0===h?(s={x:d,y:u},o=v(i),e=s.x,s=s.y,o=o.devicePixelRatio||1,{x:et(e*o)/o||0,y:et(s*o)/o||0}):{x:d,y:u};return d=b.x,u=b.y,l?Object.assign({},_,((t={})[m]=r?"0":"",t[p]=f?"0":"",t.transform=(g.devicePixelRatio||1)<=1?"translate("+d+"px, "+u+"px)":"translate3d("+d+"px, "+u+"px, 0)",t)):Object.assign({},_,((n={})[m]=r?u+"px":"",n[p]=f?d+"px":"",n.transform="",n))}var bt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,e=e.options,i=void 0===(i=e.gpuAcceleration)||i,n=void 0===(n=e.adaptive)||n,e=void 0===(e=e.roundOffsets)||e,i={placement:N(t.placement),variation:mt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,_t(Object.assign({},i,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:n,roundOffsets:e})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,_t(Object.assign({},i,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:e})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},vt={passive:!0};var yt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,n=(e=e.options).scroll,s=void 0===n||n,o=void 0===(n=e.resize)||n,r=v(t.elements.popper),a=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&a.forEach(function(e){e.addEventListener("scroll",i.update,vt)}),o&&r.addEventListener("resize",i.update,vt),function(){s&&a.forEach(function(e){e.removeEventListener("scroll",i.update,vt)}),o&&r.removeEventListener("resize",i.update,vt)}},data:{}},wt={left:"right",right:"left",bottom:"top",top:"bottom"};function At(e){return e.replace(/left|right|bottom|top/g,function(e){return wt[e]})}var Et={start:"end",end:"start"};function Tt(e){return e.replace(/start|end/g,function(e){return Et[e]})}function Ct(e){e=v(e);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ot(e){return nt(A(e)).left+Ct(e).scrollLeft}function xt(e){var e=w(e),t=e.overflow,i=e.overflowX,e=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+e+i)}function kt(e,t){void 0===t&&(t=[]);var i=function e(t){return 0<=["html","body","#document"].indexOf(_(t))?t.ownerDocument.body:y(t)&&xt(t)?t:e(rt(t))}(e),e=i===(null==(e=e.ownerDocument)?void 0:e.body),n=v(i),n=e?[n].concat(n.visualViewport||[],xt(i)?i:[]):i,i=t.concat(n);return e?i:i.concat(kt(rt(n)))}function Lt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function St(e,t,i){return t===Be?Lt((s=i,r=v(n=e),a=A(n),r=r.visualViewport,l=a.clientWidth,a=a.clientHeight,h=c=0,r&&(l=r.width,a=r.height,(o=it())||!o&&"fixed"===s)&&(c=r.offsetLeft,h=r.offsetTop),{width:l,height:a,x:c+Ot(n),y:h})):b(t)?((s=nt(o=t,!1,"fixed"===(s=i))).top=s.top+o.clientTop,s.left=s.left+o.clientLeft,s.bottom=s.top+o.clientHeight,s.right=s.left+o.clientWidth,s.width=o.clientWidth,s.height=o.clientHeight,s.x=s.left,s.y=s.top,s):Lt((r=A(e),l=A(r),a=Ct(r),c=null==(c=r.ownerDocument)?void 0:c.body,n=O(l.scrollWidth,l.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),h=O(l.scrollHeight,l.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),r=-a.scrollLeft+Ot(r),a=-a.scrollTop,"rtl"===w(c||l).direction&&(r+=O(l.clientWidth,c?c.clientWidth:0)-n),{width:n,height:h,x:r,y:a}));var n,s,o,r,a,l,c,h}function Dt(i,e,t,n){var s,o="clippingParents"===e?(r=kt(rt(o=i)),b(s=0<=["absolute","fixed"].indexOf(w(o).position)&&y(o)?lt(o):o)?r.filter(function(e){return b(e)&&ot(e,s)&&"body"!==_(e)}):[]):[].concat(e),r=[].concat(o,[t]),e=r[0],t=r.reduce(function(e,t){t=St(i,t,n);return e.top=O(t.top,e.top),e.right=Ze(t.right,e.right),e.bottom=Ze(t.bottom,e.bottom),e.left=O(t.left,e.left),e},St(i,e,n));return t.width=t.right-t.left,t.height=t.bottom-t.top,t.x=t.left,t.y=t.top,t}function It(e){var t,i=e.reference,n=e.element,e=e.placement,s=e?N(e):null,e=e?mt(e):null,o=i.x+i.width/2-n.width/2,r=i.y+i.height/2-n.height/2;switch(s){case x:t={x:o,y:i.y-n.height};break;case k:t={x:o,y:i.y+i.height};break;case L:t={x:i.x+i.width,y:r};break;case S:t={x:i.x-n.width,y:r};break;default:t={x:i.x,y:i.y}}var a=s?ct(s):null;if(null!=a){var l="y"===a?"height":"width";switch(e){case I:t[a]=t[a]-(i[l]/2-n[l]/2);break;case He:t[a]=t[a]+(i[l]/2-n[l]/2)}}return t}function Nt(e,t){var n,t=t=void 0===t?{}:t,i=t.placement,i=void 0===i?e.placement:i,s=t.strategy,s=void 0===s?e.strategy:s,o=t.boundary,o=void 0===o?We:o,r=t.rootBoundary,r=void 0===r?Be:r,a=t.elementContext,a=void 0===a?ze:a,l=t.altBoundary,l=void 0!==l&&l,t=t.padding,t=void 0===t?0:t,t=ut("number"!=typeof t?t:ft(t,D)),c=e.rects.popper,l=e.elements[l?a===ze?Re:ze:a],l=Dt(b(l)?l:l.contextElement||A(e.elements.popper),o,r,s),o=nt(e.elements.reference),r=It({reference:o,element:c,strategy:"absolute",placement:i}),s=Lt(Object.assign({},c,r)),c=a===ze?s:o,h={top:l.top-c.top+t.top,bottom:c.bottom-l.bottom+t.bottom,left:l.left-c.left+t.left,right:c.right-l.right+t.right},r=e.modifiersData.offset;return a===ze&&r&&(n=r[i],Object.keys(h).forEach(function(e){var t=0<=[L,k].indexOf(e)?1:-1,i=0<=[x,k].indexOf(e)?"y":"x";h[e]+=n[i]*t})),h}var Pt={name:"flip",enabled:!0,phase:"main",fn:function(e){var d=e.state,t=e.options,e=e.name;if(!d.modifiersData[e]._skip){for(var i=t.mainAxis,n=void 0===i||i,i=t.altAxis,s=void 0===i||i,i=t.fallbackPlacements,u=t.padding,f=t.boundary,p=t.rootBoundary,o=t.altBoundary,r=t.flipVariations,m=void 0===r||r,g=t.allowedAutoPlacements,r=d.options.placement,t=N(r),i=i||(t===r||!m?[At(r)]:N(i=r)===Fe?[]:(t=At(i),[Tt(i),t,Tt(t)])),a=[r].concat(i).reduce(function(e,t){return e.concat(N(t)===Fe?(i=d,n=(e=e=void 0===(e={placement:t,boundary:f,rootBoundary:p,padding:u,flipVariations:m,allowedAutoPlacements:g})?{}:e).placement,s=e.boundary,o=e.rootBoundary,r=e.padding,a=e.flipVariations,l=void 0===(e=e.allowedAutoPlacements)?Ve:e,c=mt(n),e=c?a?qe:qe.filter(function(e){return mt(e)===c}):D,h=(n=0===(n=e.filter(function(e){return 0<=l.indexOf(e)})).length?e:n).reduce(function(e,t){return e[t]=Nt(i,{placement:t,boundary:s,rootBoundary:o,padding:r})[N(t)],e},{}),Object.keys(h).sort(function(e,t){return h[e]-h[t]})):t);var i,n,s,o,r,a,l,c,h},[]),l=d.rects.reference,c=d.rects.popper,h=new Map,_=!0,b=a[0],v=0;v<a.length;v++){var y=a[v],w=N(y),A=mt(y)===I,E=0<=[x,k].indexOf(w),T=E?"width":"height",C=Nt(d,{placement:y,boundary:f,rootBoundary:p,altBoundary:o,padding:u}),E=E?A?L:S:A?k:x,A=(l[T]>c[T]&&(E=At(E)),At(E)),T=[];if(n&&T.push(C[w]<=0),s&&T.push(C[E]<=0,C[A]<=0),T.every(function(e){return e})){b=y,_=!1;break}h.set(y,T)}if(_)for(var O=m?3:1;0<O;O--)if("break"===function(t){var e=a.find(function(e){e=h.get(e);if(e)return e.slice(0,t).every(function(e){return e})});if(e)return b=e,"break"}(O))break;d.placement!==b&&(d.modifiersData[e]._skip=!0,d.placement=b,d.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Mt(e,t,i){return{top:e.top-t.height-(i=void 0===i?{x:0,y:0}:i).y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function jt(t){return[x,L,k,S].some(function(e){return 0<=t[e]})}var Ft={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,e=e.name,i=t.rects.reference,n=t.rects.popper,s=t.modifiersData.preventOverflow,o=Nt(t,{elementContext:"reference"}),r=Nt(t,{altBoundary:!0}),o=Mt(o,i),i=Mt(r,n,s),r=jt(o),n=jt(i);t.modifiersData[e]={referenceClippingOffsets:o,popperEscapeOffsets:i,isReferenceHidden:r,hasPopperEscaped:n},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":r,"data-popper-escaped":n})}};var Ht={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var r=e.state,t=e.options,e=e.name,a=void 0===(t=t.offset)?[0,0]:t,t=Ve.reduce(function(e,t){var i,n,s,o;return e[t]=(t=t,i=r.rects,n=a,s=N(t),o=0<=[S,x].indexOf(s)?-1:1,t=(i="function"==typeof n?n(Object.assign({},i,{placement:t})):n)[0]||0,n=(i[1]||0)*o,0<=[S,L].indexOf(s)?{x:n,y:t}:{x:t,y:n}),e},{}),i=(n=t[r.placement]).x,n=n.y;null!=r.modifiersData.popperOffsets&&(r.modifiersData.popperOffsets.x+=i,r.modifiersData.popperOffsets.y+=n),r.modifiersData[e]=t}};var Wt={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,e=e.name;t.modifiersData[e]=It({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var Bt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t,i,n,s,o,r,a,l,c,h=e.state,d=e.options,e=e.name,u=void 0===(u=d.mainAxis)||u,f=void 0!==(f=d.altAxis)&&f,p=d.boundary,m=d.rootBoundary,g=d.altBoundary,_=d.padding,b=void 0===(b=d.tether)||b,d=void 0===(d=d.tetherOffset)?0:d,p=Nt(h,{boundary:p,rootBoundary:m,padding:_,altBoundary:g}),m=N(h.placement),g=!(_=mt(h.placement)),v=ct(m),y="x"===v?"y":"x",w=h.modifiersData.popperOffsets,A=h.rects.reference,E=h.rects.popper,d="number"==typeof(d="function"==typeof d?d(Object.assign({},h.rects,{placement:h.placement})):d)?{mainAxis:d,altAxis:d}:Object.assign({mainAxis:0,altAxis:0},d),T=h.modifiersData.offset?h.modifiersData.offset[h.placement]:null,C={x:0,y:0};w&&(u&&(u="y"===v?"height":"width",r=(a=w[v])+p[i="y"===v?x:S],l=a-p[c="y"===v?k:L],t=b?-E[u]/2:0,s=(_===I?A:E)[u],_=_===I?-E[u]:-A[u],o=h.elements.arrow,o=b&&o?st(o):{width:0,height:0},i=(n=h.modifiersData["arrow#persistent"]?h.modifiersData["arrow#persistent"].padding:dt())[i],n=n[c],c=ht(0,A[u],o[u]),o=g?A[u]/2-t-c-i-d.mainAxis:s-c-i-d.mainAxis,s=g?-A[u]/2+t+c+n+d.mainAxis:_+c+n+d.mainAxis,g=(i=h.elements.arrow&&lt(h.elements.arrow))?"y"===v?i.clientTop||0:i.clientLeft||0:0,_=a+s-(t=null!=(u=null==T?void 0:T[v])?u:0),c=ht(b?Ze(r,a+o-t-g):r,a,b?O(l,_):l),w[v]=c,C[v]=c-a),f&&(n="y"==y?"height":"width",s=(i=w[y])+p["x"===v?x:S],u=i-p["x"===v?k:L],o=-1!==[x,S].indexOf(m),g=null!=(t=null==T?void 0:T[y])?t:0,r=o?s:i-A[n]-E[n]-g+d.altAxis,_=o?i+A[n]+E[n]-g-d.altAxis:u,a=b&&o?(l=ht(l=r,i,c=_),c<l?c:l):ht(b?r:s,i,b?_:u),w[y]=a,C[y]=a-i),h.modifiersData[e]=C)},requiresIfExists:["offset"]};function zt(e,t,i){void 0===i&&(i=!1);var n=y(t),s=y(t)&&(r=(s=t).getBoundingClientRect(),o=et(r.width)/s.offsetWidth||1,r=et(r.height)/s.offsetHeight||1,1!==o||1!==r),o=A(t),r=nt(e,s,i),e={scrollLeft:0,scrollTop:0},a={x:0,y:0};return!n&&i||("body"===_(t)&&!xt(o)||(e=(n=t)!==v(n)&&y(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:Ct(n)),y(t)?((a=nt(t,!0)).x+=t.clientLeft,a.y+=t.clientTop):o&&(a.x=Ot(o))),{x:r.left+e.scrollLeft-a.x,y:r.top+e.scrollTop-a.y,width:r.width,height:r.height}}function Rt(e){var i=new Map,n=new Set,s=[];return e.forEach(function(e){i.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||!function t(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){n.has(e)||(e=i.get(e))&&t(e)}),s.push(e)}(e)}),s}var qt={placement:"bottom",modifiers:[],strategy:"absolute"};function Vt(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function $t(e){var e=e=void 0===e?{}:e,t=e.defaultModifiers,d=void 0===t?[]:t,t=e.defaultOptions,u=void 0===t?qt:t;return function(n,s,t){void 0===t&&(t=u);var i,o,r={placement:"bottom",orderedModifiers:[],options:Object.assign({},qt,u),modifiersData:{},elements:{reference:n,popper:s},attributes:{},styles:{}},a=[],l=!1,c={state:r,setOptions:function(e){var i,t,e="function"==typeof e?e(r.options):e,e=(h(),r.options=Object.assign({},u,r.options,e),r.scrollParents={reference:b(n)?kt(n):n.contextElement?kt(n.contextElement):[],popper:kt(s)},e=[].concat(d,r.options.modifiers),t=e.reduce(function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e},{}),e=Object.keys(t).map(function(e){return t[e]}),i=Rt(e),Ue.reduce(function(e,t){return e.concat(i.filter(function(e){return e.phase===t}))},[]));return r.orderedModifiers=e.filter(function(e){return e.enabled}),r.orderedModifiers.forEach(function(e){var t=e.name,i=e.options,e=e.effect;"function"==typeof e&&(e=e({state:r,name:t,instance:c,options:void 0===i?{}:i}),a.push(e||function(){}))}),c.update()},forceUpdate:function(){if(!l){var e=r.elements,t=e.reference,e=e.popper;if(Vt(t,e)){r.rects={reference:zt(t,lt(e),"fixed"===r.options.strategy),popper:st(e)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach(function(e){return r.modifiersData[e.name]=Object.assign({},e.data)});for(var i,n,s,o=0;o<r.orderedModifiers.length;o++)!0===r.reset?(r.reset=!1,o=-1):(i=(s=r.orderedModifiers[o]).fn,n=s.options,s=s.name,"function"==typeof i&&(r=i({state:r,options:void 0===n?{}:n,name:s,instance:c})||r))}}},update:(i=function(){return new Promise(function(e){c.forceUpdate(),e(r)})},function(){return o=o||new Promise(function(e){Promise.resolve().then(function(){o=void 0,e(i())})})}),destroy:function(){h(),l=!0}};return Vt(n,s)&&c.setOptions(t).then(function(e){!l&&t.onFirstUpdate&&t.onFirstUpdate(e)}),c;function h(){a.forEach(function(e){return e()}),a=[]}}}var Kt=$t({defaultModifiers:[yt,Wt,bt,Je,Ht,Pt,Bt,pt,Ft]});const Qt=Object.freeze(Object.defineProperty({__proto__:null,afterMain:Qe,afterRead:$e,afterWrite:Ye,applyStyles:Je,arrow:pt,auto:Fe,basePlacements:D,beforeMain:Ke,beforeRead:u,beforeWrite:Xe,bottom:k,clippingParents:We,computeStyles:bt,createPopper:Kt,createPopperBase:$t(),createPopperLite:$t({defaultModifiers:[yt,Wt,bt,Je]}),detectOverflow:Nt,end:He,eventListeners:yt,flip:Pt,hide:Ft,left:S,main:"main",modifierPhases:Ue,offset:Ht,placements:Ve,popper:ze,popperGenerator:$t,popperOffsets:Wt,preventOverflow:Bt,read:"read",reference:Re,right:L,start:I,top:x,variationPlacements:qe,viewport:Be,write:"write"},Symbol.toStringTag,{value:"Module"})),Xt="dropdown";Qe=".bs.dropdown",$e=".data-api";const Yt="ArrowDown";Ye="click"+Qe+$e,pt="keydown"+Qe+$e;const Ut="show",E='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Gt=(E,".dropdown-menu"),Jt=l()?"top-end":"top-start",Zt=l()?"top-start":"top-end",ei=l()?"bottom-end":"bottom-start",ti=l()?"bottom-start":"bottom-end",ii=l()?"left-start":"right-start",ni=l()?"right-start":"left-start",si={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},oi={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class T extends t{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=d.next(this._element,Gt)[0]||d.prev(this._element,Gt)[0]||d.findOne(Gt,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return si}static get DefaultType(){return oi}static get NAME(){return Xt}toggle(){return this._isShown()?this.hide():this.show()}show(){if(!a(this._element)&&!this._isShown()){var e={relatedTarget:this._element},t=m.trigger(this._element,"show.bs.dropdown",e);if(!t.defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const i of[].concat(...document.body.children))m.on(i,"mouseover",R);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Ut),this._element.classList.add(Ut),m.trigger(this._element,"shown.bs.dropdown",e)}}}hide(){var e;!a(this._element)&&this._isShown()&&(e={relatedTarget:this._element},this._completeHide(e))}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){var t=m.trigger(this._element,"hide.bs.dropdown",e);if(!t.defaultPrevented){if("ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))m.off(i,"mouseover",R);this._popper&&this._popper.destroy(),this._menu.classList.remove(Ut),this._element.classList.remove(Ut),this._element.setAttribute("aria-expanded","false"),h.removeDataAttribute(this._menu,"popper"),m.trigger(this._element,"hidden.bs.dropdown",e)}}_getConfig(e){if("object"!=typeof(e=super._getConfig(e)).reference||o(e.reference)||"function"==typeof e.reference.getBoundingClientRect)return e;throw new TypeError(Xt.toUpperCase()+': Option "reference" provided type "object" without a required "getBoundingClientRect" method.')}_createPopper(){if(void 0===Qt)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=this._parent:o(this._config.reference)?e=s(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);var t=this._getPopperConfig();this._popper=Kt(e,this._menu,t)}_isShown(){return this._menu.classList.contains(Ut)}_getPlacement(){var e,t=this._parent;return t.classList.contains("dropend")?ii:t.classList.contains("dropstart")?ni:t.classList.contains("dropup-center")?"top":t.classList.contains("dropdown-center")?"bottom":(e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim(),t.classList.contains("dropup")?e?Zt:Jt:e?ti:ei)}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const t=this._config["offset"];return"string"==typeof t?t.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){var e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return!this._inNavbar&&"static"!==this._config.display||(h.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...c(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){var i=d.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(e=>r(e));i.length&&Q(i,t,e===Yt,!i.includes(t)).focus()}static jQueryInterface(t){return this.each(function(){var e=T.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(e){if(2!==e.button&&("keyup"!==e.type||"Tab"===e.key))for(const s of d.find('[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled).show')){var t,i,n=T.getInstance(s);n&&!1!==n._config.autoClose&&(t=(i=e.composedPath()).includes(n._menu),i.includes(n._element)||"inside"===n._config.autoClose&&!t||"outside"===n._config.autoClose&&t||n._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName))||(i={relatedTarget:n._element},"click"===e.type&&(i.clickEvent=e),n._completeHide(i)))}}static dataApiKeydownHandler(e){var t=/input|textarea/i.test(e.target.tagName),i="Escape"===e.key,n=["ArrowUp",Yt].includes(e.key);!n&&!i||t&&!i||(e.preventDefault(),t=this.matches(E)?this:d.prev(this,E)[0]||d.next(this,E)[0]||d.findOne(E,e.delegateTarget.parentNode),i=T.getOrCreateInstance(t),n?(e.stopPropagation(),i.show(),i._selectMenuItem(e)):i._isShown()&&(e.stopPropagation(),i.hide(),t.focus()))}}m.on(document,pt,E,T.dataApiKeydownHandler),m.on(document,pt,Gt,T.dataApiKeydownHandler),m.on(document,Ye,T.clearMenus),m.on(document,"keyup.bs.dropdown.data-api",T.clearMenus),m.on(document,Ye,E,function(e){e.preventDefault(),T.getOrCreateInstance(this).toggle()}),e(T);const ri="backdrop",ai="mousedown.bs."+ri,li={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},ci={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class hi extends de{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return li}static get DefaultType(){return ci}static get NAME(){return ri}show(e){var t;this._config.isVisible?(this._append(),t=this._getElement(),this._config.isAnimated&&q(t),t.classList.add("show"),this._emulateAnimation(()=>{c(e)})):c(e)}hide(e){this._config.isVisible?(this._getElement().classList.remove("show"),this._emulateAnimation(()=>{this.dispose(),c(e)})):c(e)}dispose(){this._isAppended&&(m.off(this._element,ai),this._element.remove(),this._isAppended=!1)}_getElement(){var e;return this._element||((e=document.createElement("div")).className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e),this._element}_configAfterMerge(e){return e.rootElement=s(e.rootElement),e}_append(){var e;this._isAppended||(e=this._getElement(),this._config.rootElement.append(e),m.on(e,ai,()=>{c(this._config.clickCallback)}),this._isAppended=!0)}_emulateAnimation(e){K(e,this._getElement(),this._config.isAnimated)}}const di=".bs.focustrap",ui=(di,di,"backward"),fi={autofocus:!0,trapElement:null},pi={autofocus:"boolean",trapElement:"element"};class mi extends de{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return fi}static get DefaultType(){return pi}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),m.off(document,di),m.on(document,"focusin.bs.focustrap",e=>this._handleFocusin(e)),m.on(document,"keydown.tab.bs.focustrap",e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,m.off(document,di))}_handleFocusin(e){var t=this._config["trapElement"];e.target===document||e.target===t||t.contains(e.target)||(0===(e=d.focusableChildren(t)).length?t:this._lastTabNavDirection===ui?e[e.length-1]:e[0]).focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?ui:"forward")}}const gi=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",_i=".sticky-top",bi="padding-right",vi="margin-right";class yi{constructor(){this._element=document.body}getWidth(){var e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,bi,e=>e+t),this._setElementAttributes(gi,bi,e=>e+t),this._setElementAttributes(_i,vi,e=>e-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,bi),this._resetElementAttributes(gi,bi),this._resetElementAttributes(_i,vi)}isOverflowing(){return 0<this.getWidth()}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,i,n){const s=this.getWidth();this._applyManipulationCallback(e,e=>{var t;e!==this._element&&window.innerWidth>e.clientWidth+s||(this._saveInitialAttribute(e,i),t=window.getComputedStyle(e).getPropertyValue(i),e.style.setProperty(i,n(Number.parseFloat(t))+"px"))})}_saveInitialAttribute(e,t){var i=e.style.getPropertyValue(t);i&&h.setDataAttribute(e,t,i)}_resetElementAttributes(e,i){this._applyManipulationCallback(e,e=>{var t=h.getDataAttribute(e,i);null===t?e.style.removeProperty(i):(h.removeDataAttribute(e,i),e.style.setProperty(i,t))})}_applyManipulationCallback(e,t){if(o(e))t(e);else for(const i of d.find(e,this._element))t(i)}}const C=".bs.modal";C,C;const wi="hidden"+C,Ai="show"+C;C,C,C,C,C;C;const Ei="modal-open",Ti="modal-static";const Ci={backdrop:!0,focus:!0,keyboard:!0},Oi={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class xi extends t{constructor(e,t){super(e,t),this._dialog=d.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new yi,this._addEventListeners()}static get Default(){return Ci}static get DefaultType(){return Oi}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||m.trigger(this._element,Ai,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Ei),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||m.trigger(this._element,"hide.bs.modal").defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove("show"),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){m.off(window,C),m.off(this._dialog,C),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new hi({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new mi({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(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;var t=d.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),q(this._element),this._element.classList.add("show");this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,m.trigger(this._element,"shown.bs.modal",{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){m.on(this._element,"keydown.dismiss.bs.modal",e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),m.on(window,"resize.bs.modal",()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),m.on(this._element,"mousedown.dismiss.bs.modal",t=>{m.one(this._element,"click.dismiss.bs.modal",e=>{this._element===t.target&&this._element===e.target&&("static"===this._config.backdrop?this._triggerBackdropTransition():this._config.backdrop&&this.hide())})})}_hideModal(){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(()=>{document.body.classList.remove(Ei),this._resetAdjustments(),this._scrollBar.reset(),m.trigger(this._element,wi)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){var e=m.trigger(this._element,"hidePrevented.bs.modal");if(!e.defaultPrevented){e=this._element.scrollHeight>document.documentElement.clientHeight;const t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(Ti)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(Ti),this._queueCallback(()=>{this._element.classList.remove(Ti),this._queueCallback(()=>{this._element.style.overflowY=t},this._dialog)},this._dialog),this._element.focus())}}_adjustDialog(){var e,t=this._element.scrollHeight>document.documentElement.clientHeight,i=this._scrollBar.getWidth(),n=0<i;n&&!t&&(e=l()?"paddingLeft":"paddingRight",this._element.style[e]=i+"px"),!n&&t&&(e=l()?"paddingRight":"paddingLeft",this._element.style[e]=i+"px")}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,i){return this.each(function(){var e=xi.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](i)}})}}m.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',function(e){const t=d.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),m.one(t,Ai,e=>{e.defaultPrevented||m.one(t,wi,()=>{r(this)&&this.focus()})});e=d.findOne(".modal.show");e&&xi.getInstance(e).hide(),xi.getOrCreateInstance(t).toggle(this)}),fe(xi),e(xi);Ke=".bs.offcanvas";const ki="showing",Li=".offcanvas.show",Si="hidePrevented"+Ke,Di="hidden"+Ke;const Ii={backdrop:!0,keyboard:!0,scroll:!1},Ni={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class P extends t{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Ii}static get DefaultType(){return Ni}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||m.trigger(this._element,"show.bs.offcanvas",{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new yi).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(ki),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add("show"),this._element.classList.remove(ki),m.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:e})},this._element,!0))}hide(){this._isShown&&!m.trigger(this._element,"hide.bs.offcanvas").defaultPrevented&&(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add("hiding"),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove("show","hiding"),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new yi).reset(),m.trigger(this._element,Di)},this._element,!0))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){var e=Boolean(this._config.backdrop);return new hi({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"===this._config.backdrop?m.trigger(this._element,Si):this.hide()}:null})}_initializeFocusTrap(){return new mi({trapElement:this._element})}_addEventListeners(){m.on(this._element,"keydown.dismiss.bs.offcanvas",e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():m.trigger(this._element,Si))})}static jQueryInterface(t){return this.each(function(){var e=P.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}})}}m.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',function(e){var t=d.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),a(this)||(m.one(t,Di,()=>{r(this)&&this.focus()}),(e=d.findOne(Li))&&e!==t&&P.getInstance(e).hide(),P.getOrCreateInstance(t).toggle(this))}),m.on(window,"load.bs.offcanvas.data-api",()=>{for(const e of d.find(Li))P.getOrCreateInstance(e).show()}),m.on(window,"resize.bs.offcanvas",()=>{for(const e of d.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&P.getOrCreateInstance(e).hide()}),fe(P),e(P);u={"*":["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:[]};const Pi=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Mi=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i;function ji(e,t,i){if(!e.length)return e;if(i&&"function"==typeof i)return i(e);i=(new window.DOMParser).parseFromString(e,"text/html");for(const r of[].concat(...i.body.querySelectorAll("*"))){var n=r.nodeName.toLowerCase();if(Object.keys(t).includes(n)){var s=[].concat(...r.attributes),o=[].concat(t["*"]||[],t[n]||[]);for(const a of s)((e,t)=>{const i=e.nodeName.toLowerCase();return t.includes(i)?!Pi.has(i)||Boolean(Mi.test(e.nodeValue)):t.filter(e=>e instanceof RegExp).some(e=>e.test(i))})(a,o)||r.removeAttribute(a.nodeName)}else r.remove()}return i.body.innerHTML}const Fi={allowList:u,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Hi={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Wi={entry:"(string|element|function|null)",selector:"(string|element)"};class Bi extends de{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Fi}static get DefaultType(){return Hi}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return 0<this.getContent().length}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){var e,t,i=document.createElement("div");i.innerHTML=this._maybeSanitize(this._config.template);for([e,t]of Object.entries(this._config.content))this._setContent(i,t,e);var n=i.children[0],s=this._resolvePossibleFunction(this._config.extraClass);return s&&n.classList.add(...s.split(" ")),n}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(var[t,i]of Object.entries(e))super._typeCheckConfig({selector:t,entry:i},Wi)}_setContent(e,t,i){i=d.findOne(i,e);i&&((t=this._resolvePossibleFunction(t))?o(t)?this._putElementInTemplate(s(t),i):this._config.html?i.innerHTML=this._maybeSanitize(t):i.textContent=t:i.remove())}_maybeSanitize(e){return this._config.sanitize?ji(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return c(e,[this])}_putElementInTemplate(e,t){this._config.html?(t.innerHTML="",t.append(e)):t.textContent=e.textContent}}const zi=new Set(["sanitize","allowList","sanitizeFn"]),Ri="fade";const qi="show",Vi="hide.bs.modal",$i="hover",Ki="focus",Qi={AUTO:"auto",TOP:"top",RIGHT:l()?"left":"right",BOTTOM:"bottom",LEFT:l()?"right":"left"},Xi={allowList:u,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},Yi={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class Ui extends t{constructor(e,t){if(void 0===Qt)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Xi}static get DefaultType(){return Yi}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),m.off(this._element.closest(".modal"),Vi,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(this._isWithContent()&&this._isEnabled){var e=m.trigger(this._element,this.constructor.eventName("show")),t=(z(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(!e.defaultPrevented&&t){this._disposePopper();e=this._getTipElement(),t=(this._element.setAttribute("aria-describedby",e.getAttribute("id")),this._config)["container"];if(this._element.ownerDocument.documentElement.contains(this.tip)||(t.append(e),m.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(e),e.classList.add(qi),"ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))m.on(i,"mouseover",R);this._queueCallback(()=>{m.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}}}hide(){if(this._isShown()){var e=m.trigger(this._element,this.constructor.eventName("hide"));if(!e.defaultPrevented){if(this._getTipElement().classList.remove(qi),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))m.off(t,"mouseover",R);this._activeTrigger.click=!1,this._activeTrigger[Ki]=!1,this._activeTrigger[$i]=!1,this._isHovered=null;this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),m.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){e=this._getTemplateFactory(e).toHtml();if(!e)return null;e.classList.remove(Ri,qi),e.classList.add(`bs-${this.constructor.NAME}-auto`);var t=(e=>{for(;e+=Math.floor(1e6*Math.random()),document.getElementById(e););return e})(this.constructor.NAME).toString();return e.setAttribute("id",t),this._isAnimated()&&e.classList.add(Ri),e}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new Bi({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Ri)}_isShown(){return this.tip&&this.tip.classList.contains(qi)}_createPopper(e){var t=c(this._config.placement,[this,e,this._element]),t=Qi[t.toUpperCase()];return Kt(this._element,e,this._getPopperConfig(t))}_getOffset(){const t=this._config["offset"];return"string"==typeof t?t.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(e){return c(e,[this._element])}_getPopperConfig(e){e={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:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...e,...c(this._config.popperConfig,[e])}}_setListeners(){var e,t;for(const i of this._config.trigger.split(" "))"click"===i?m.on(this._element,this.constructor.eventName("click"),this._config.selector,e=>{this._initializeOnDelegatedTarget(e).toggle()}):"manual"!==i&&(e=i===$i?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),t=i===$i?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout"),m.on(this._element,e,this._config.selector,e=>{var t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?Ki:$i]=!0,t._enter()}),m.on(this._element,t,this._config.selector,e=>{var t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?Ki:$i]=t._element.contains(e.relatedTarget),t._leave()}));this._hideModalHandler=()=>{this._element&&this.hide()},m.on(this._element.closest(".modal"),Vi,this._hideModalHandler)}_fixTitle(){var e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){var t=h.getDataAttributes(this._element);for(const i of Object.keys(t))zi.has(i)&&delete t[i];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:s(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()),e}_getDelegateConfig(){var e,t,i={};for([e,t]of Object.entries(this._config))this.constructor.Default[e]!==t&&(i[e]=t);return i.selector=!1,i.trigger="manual",i}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){var e=Ui.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}e(Ui);const Gi={...Ui.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},Ji={...Ui.DefaultType,content:"(null|string|element|function)"};class Zi extends Ui{static get Default(){return Gi}static get DefaultType(){return Ji}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){var e=Zi.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}e(Zi);Xe=".bs.scrollspy";const en="click"+Xe;const tn="active",nn="[href]";const sn={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},on={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class rn extends t{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return sn}static get DefaultType(){return on}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=s(e.target)||document.body,e.rootMargin=e.offset?e.offset+"px 0px -30%":e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map(e=>Number.parseFloat(e))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(m.off(this._config.target,en),m.on(this._config.target,en,nn,e=>{var t=this._observableSections.get(e.target.hash);t&&(e.preventDefault(),e=this._rootElement||window,t=t.offsetTop-this._element.offsetTop,e.scrollTo?e.scrollTo({top:t,behavior:"smooth"}):e.scrollTop=t)}))}_getNewObserver(){var e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),e)}_observerCallback(e){const t=e=>this._targetLinks.get("#"+e.target.id);var i=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},n=(this._rootElement||document.documentElement).scrollTop,s=n>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=n;for(const r of e)if(r.isIntersecting){var o=r.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&o){if(i(r),n)continue;return}s||o||i(r)}else this._activeTarget=null,this._clearActiveClass(t(r))}_initializeTargetsAndObservables(){var e;this._targetLinks=new Map,this._observableSections=new Map;for(const t of d.find(nn,this._config.target))t.hash&&!a(t)&&(e=d.findOne(decodeURI(t.hash),this._element),r(e))&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),(this._activeTarget=e).classList.add(tn),this._activateParents(e),m.trigger(this._element,"activate.bs.scrollspy",{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))d.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(tn);else for(const t of d.parents(e,".nav, .list-group"))for(const i of d.prev(t,".nav-link, .nav-item > .nav-link, .list-group-item"))i.classList.add(tn)}_clearActiveClass(e){e.classList.remove(tn);for(const t of d.find(nn+"."+tn,e))t.classList.remove(tn)}static jQueryInterface(t){return this.each(function(){var e=rn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}})}}m.on(window,"load.bs.scrollspy.data-api",()=>{for(const e of d.find('[data-bs-spy="scroll"]'))rn.getOrCreateInstance(e)}),e(rn);const an="ArrowRight",ln="ArrowDown",cn="Home",M="active",hn="show",dn=".dropdown-toggle";dn;bt='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]';const un='.nav-link:not(.dropdown-toggle), .list-group-item:not(.dropdown-toggle), [role="tab"]:not(.dropdown-toggle), '+bt;M,M,M;class fn extends t{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),m.on(this._element,"keydown.bs.tab",e=>this._keydown(e)))}static get NAME(){return"tab"}show(){var e,t,i=this._element;this._elemIsActive(i)||(t=(e=this._getActiveElem())?m.trigger(e,"hide.bs.tab",{relatedTarget:i}):null,m.trigger(i,"show.bs.tab",{relatedTarget:e}).defaultPrevented)||t&&t.defaultPrevented||(this._deactivate(e,i),this._activate(i,e))}_activate(e,t){e&&(e.classList.add(M),this._activate(d.getElementFromSelector(e)),this._queueCallback(()=>{"tab"!==e.getAttribute("role")?e.classList.add(hn):(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),m.trigger(e,"shown.bs.tab",{relatedTarget:t}))},e,e.classList.contains("fade")))}_deactivate(e,t){e&&(e.classList.remove(M),e.blur(),this._deactivate(d.getElementFromSelector(e)),this._queueCallback(()=>{"tab"!==e.getAttribute("role")?e.classList.remove(hn):(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),m.trigger(e,"hidden.bs.tab",{relatedTarget:t}))},e,e.classList.contains("fade")))}_keydown(t){if(["ArrowLeft",an,"ArrowUp",ln,cn,"End"].includes(t.key)){t.stopPropagation(),t.preventDefault();var i,n=this._getChildren().filter(e=>!a(e));let e;(e=[cn,"End"].includes(t.key)?n[t.key===cn?0:n.length-1]:(i=[an,ln].includes(t.key),Q(n,t.target,i,!0)))&&(e.focus({preventScroll:!0}),fn.getOrCreateInstance(e).show())}}_getChildren(){return d.find(un,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const i of t)this._setInitialAttributesOnChild(i)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);var t=this._elemIsActive(e),i=this._getOuterElement(e);e.setAttribute("aria-selected",t),i!==e&&this._setAttributeIfNotExists(i,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){var t=d.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id)&&this._setAttributeIfNotExists(t,"aria-labelledby",""+e.id)}_toggleDropDown(e,i){const n=this._getOuterElement(e);n.classList.contains("dropdown")&&((e=(e,t)=>{e=d.findOne(e,n);e&&e.classList.toggle(t,i)})(dn,M),e(".dropdown-menu",hn),n.setAttribute("aria-expanded",i))}_setAttributeIfNotExists(e,t,i){e.hasAttribute(t)||e.setAttribute(t,i)}_elemIsActive(e){return e.classList.contains(M)}_getInnerElement(e){return e.matches(un)?e:d.findOne(un,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(t){return this.each(function(){var e=fn.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}})}}m.on(document,"click.bs.tab",bt,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),a(this)||fn.getOrCreateInstance(this).show()}),m.on(window,"load.bs.tab",()=>{for(const e of d.find('.active[data-bs-toggle="tab"], .active[data-bs-toggle="pill"], .active[data-bs-toggle="list"]'))fn.getOrCreateInstance(e)}),e(fn);const pn="show",mn="showing",gn={animation:"boolean",autohide:"boolean",delay:"number"},_n={animation:!0,autohide:!0,delay:5e3};class bn extends t{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return _n}static get DefaultType(){return gn}static get NAME(){return"toast"}show(){m.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove("hide"),q(this._element),this._element.classList.add(pn,mn),this._queueCallback(()=>{this._element.classList.remove(mn),m.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&!m.trigger(this._element,"hide.bs.toast").defaultPrevented&&(this._element.classList.add(mn),this._queueCallback(()=>{this._element.classList.add("hide"),this._element.classList.remove(mn,pn),m.trigger(this._element,"hidden.bs.toast")},this._element,this._config.animation))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(pn),super.dispose()}isShown(){return this._element.classList.contains(pn)}_maybeScheduleHide(){!this._config.autohide||this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}t?this._clearTimeout():(e=e.relatedTarget,this._element===e||this._element.contains(e)||this._maybeScheduleHide())}_setListeners(){m.on(this._element,"mouseover.bs.toast",e=>this._onInteraction(e,!0)),m.on(this._element,"mouseout.bs.toast",e=>this._onInteraction(e,!1)),m.on(this._element,"focusin.bs.toast",e=>this._onInteraction(e,!0)),m.on(this._element,"focusout.bs.toast",e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){var e=bn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}})}}return fe(bn),e(bn),{Alert:pe,Button:ge,Carousel:Se,Collapse:je,Dropdown:T,Modal:xi,Offcanvas:P,Popover:Zi,ScrollSpy:rn,Tab:fn,Toast:bn,Tooltip:Ui}});