var yc=Object.defineProperty,Oc=Object.defineProperties,wc=Object.getOwnPropertyDescriptors,mn=Object.getOwnPropertySymbols,Sc=Object.prototype.hasOwnProperty,Cc=Object.prototype.propertyIsEnumerable,gn=(L,N,I)=>N in L?yc(L,N,{enumerable:!0,configurable:!0,writable:!0,value:I}):L[N]=I,_=(L,N)=>{for(var I in N||(N={}))Sc.call(N,I)&&gn(L,I,N[I]);if(mn)for(var I of mn(N))Cc.call(N,I)&&gn(L,I,N[I]);return L},De=(L,N)=>Oc(L,wc(N));!function(L,N){"object"==typeof exports&&"undefined"!=typeof module?module.exports=N():"function"==typeof define&&define.amd?define(N):(L="undefined"!=typeof globalThis?globalThis:L||self).bootstrap=N()}(this,function(){"use strict";const I="transitionend",hi=i=>{let t=i.getAttribute("data-bs-target");if(!t||"#"===t){let e=i.getAttribute("href");if(!e||!e.includes("#")&&!e.startsWith("."))return null;e.includes("#")&&!e.startsWith("#")&&(e=`#${e.split("#")[1]}`),t=e&&"#"!==e?e.trim():null}return t},$e=i=>{const t=hi(i);return t&&document.querySelector(t)?t:null},it=i=>{const t=hi(i);return t?document.querySelector(t):null},fi=i=>{i.dispatchEvent(new Event(I))},lt=i=>!(!i||"object"!=typeof i)&&(void 0!==i.jquery&&(i=i[0]),void 0!==i.nodeType),st=i=>lt(i)?i.jquery?i[0]:i:"string"==typeof i&&i.length>0?document.querySelector(i):null,q=(i,t,e)=>{Object.keys(e).forEach(s=>{const n=e[s],o=t[s],r=o&<(o)?"element":(i=>null==i?`${i}`:{}.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase())(o);if(!new RegExp(n).test(r))throw new TypeError(`${i.toUpperCase()}: Option "${s}" provided type "${r}" but expected type "${n}".`)})},Ht=i=>!(!lt(i)||0===i.getClientRects().length)&&"visible"===getComputedStyle(i).getPropertyValue("visibility"),ut=i=>!(i&&i.nodeType===Node.ELEMENT_NODE&&!i.classList.contains("disabled"))||(void 0!==i.disabled?i.disabled:i.hasAttribute("disabled")&&"false"!==i.getAttribute("disabled")),di=i=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof i.getRootNode){const t=i.getRootNode();return t instanceof ShadowRoot?t:null}return i instanceof ShadowRoot?i:i.parentNode?di(i.parentNode):null},ae=()=>{},pi=()=>{const{jQuery:i}=window;return i&&!document.body.hasAttribute("data-bs-no-jquery")?i:null},Le=[],R=()=>"rtl"===document.documentElement.dir,W=i=>{(i=>{"loading"===document.readyState?(Le.length||document.addEventListener("DOMContentLoaded",()=>{Le.forEach(t=>t())}),Le.push(i)):i()})(()=>{const t=pi();if(t){const e=i.NAME,s=t.fn[e];t.fn[e]=i.jQueryInterface,t.fn[e].Constructor=i,t.fn[e].noConflict=()=>(t.fn[e]=s,i.jQueryInterface)}})},ht=i=>{"function"==typeof i&&i()},_i=(i,t,e=!0)=>{if(!e)return void ht(i);const n=(i=>{if(!i)return 0;let{transitionDuration:t,transitionDelay:e}=window.getComputedStyle(i);const s=Number.parseFloat(t),n=Number.parseFloat(e);return s||n?(t=t.split(",")[0],e=e.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(e))):0})(t)+5;let o=!1;const r=({target:a})=>{a===t&&(o=!0,t.removeEventListener(I,r),ht(i))};t.addEventListener(I,r),setTimeout(()=>{o||fi(t)},n)},mi=(i,t,e,s)=>{let n=i.indexOf(t);if(-1===n)return i[!e&&s?i.length-1:0];const o=i.length;return n+=e?1:-1,s&&(n=(n+o)%o),i[Math.max(0,Math.min(n,o-1))]},bn=/[^.]*(?=\..*)\.|.*/,yn=/\..*/,On=/::\d+$/,Ie={};let gi=1;const wn={mouseenter:"mouseover",mouseleave:"mouseout"},Sn=/^(mouseenter|mouseleave)/i,Ei=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 vi(i,t){return t&&`${t}::${gi++}`||i.uidEvent||gi++}function Ai(i){const t=vi(i);return i.uidEvent=t,Ie[t]=Ie[t]||{},Ie[t]}function Ti(i,t,e=null){const s=Object.keys(i);for(let n=0,o=s.length;nfunction(E){if(!E.relatedTarget||E.relatedTarget!==E.delegateTarget&&!E.delegateTarget.contains(E.relatedTarget))return v.call(this,E)};s?s=m(s):e=m(e)}const[o,r,a]=bi(t,e,s),l=Ai(i),h=l[a]||(l[a]={}),u=Ti(h,r,o?e:null);if(u)return void(u.oneOff=u.oneOff&&n);const f=vi(r,t.replace(bn,"")),p=o?function Nn(i,t,e){return function s(n){const o=i.querySelectorAll(t);for(let{target:r}=n;r&&r!==this;r=r.parentNode)for(let a=o.length;a--;)if(o[a]===r)return n.delegateTarget=r,s.oneOff&&c.off(i,n.type,t,e),e.apply(r,[n]);return null}}(i,e,s):function Cn(i,t){return function e(s){return s.delegateTarget=i,e.oneOff&&c.off(i,s.type,t),t.apply(i,[s])}}(i,e);p.delegationSelector=o?e:null,p.originalHandler=r,p.oneOff=n,p.uidEvent=f,h[f]=p,i.addEventListener(a,p,o)}function Re(i,t,e,s,n){const o=Ti(t[e],s,n);!o||(i.removeEventListener(e,o,Boolean(n)),delete t[e][o.uidEvent])}function Oi(i){return i=i.replace(yn,""),wn[i]||i}const c={on(i,t,e,s){yi(i,t,e,s,!1)},one(i,t,e,s){yi(i,t,e,s,!0)},off(i,t,e,s){if("string"!=typeof t||!i)return;const[n,o,r]=bi(t,e,s),a=r!==t,l=Ai(i),h=t.startsWith(".");if(void 0!==o){if(!l||!l[r])return;return void Re(i,l,r,o,n?e:null)}h&&Object.keys(l).forEach(f=>{!function Dn(i,t,e,s){const n=t[e]||{};Object.keys(n).forEach(o=>{if(o.includes(s)){const r=n[o];Re(i,t,e,r.originalHandler,r.delegationSelector)}})}(i,l,f,t.slice(1))});const u=l[r]||{};Object.keys(u).forEach(f=>{const p=f.replace(On,"");if(!a||t.includes(p)){const m=u[f];Re(i,l,r,m.originalHandler,m.delegationSelector)}})},trigger(i,t,e){if("string"!=typeof t||!i)return null;const s=pi(),n=Oi(t),o=t!==n,r=Ei.has(n);let a,l=!0,h=!0,u=!1,f=null;return o&&s&&(a=s.Event(t,e),s(i).trigger(a),l=!a.isPropagationStopped(),h=!a.isImmediatePropagationStopped(),u=a.isDefaultPrevented()),r?(f=document.createEvent("HTMLEvents"),f.initEvent(n,l,!0)):f=new CustomEvent(t,{bubbles:l,cancelable:!0}),void 0!==e&&Object.keys(e).forEach(p=>{Object.defineProperty(f,p,{get:()=>e[p]})}),u&&f.preventDefault(),h&&i.dispatchEvent(f),f.defaultPrevented&&void 0!==a&&a.preventDefault(),f}},nt=new Map,Bt={set(i,t,e){nt.has(i)||nt.set(i,new Map);const s=nt.get(i);s.has(t)||0===s.size?s.set(t,e):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(s.keys())[0]}.`)},get:(i,t)=>nt.has(i)&&nt.get(i).get(t)||null,remove(i,t){if(!nt.has(i))return;const e=nt.get(i);e.delete(t),0===e.size&&nt.delete(i)}};class F{constructor(t){(t=st(t))&&(this._element=t,Bt.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Bt.remove(this._element,this.constructor.DATA_KEY),c.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach(t=>{this[t]=null})}_queueCallback(t,e,s=!0){_i(t,e,s)}static getInstance(t){return Bt.get(st(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.1.3"}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}}const ce=(i,t="hide")=>{const s=i.NAME;c.on(document,`click.dismiss${i.EVENT_KEY}`,`[data-bs-dismiss="${s}"]`,function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),ut(this))return;const o=it(this)||this.closest(`.${s}`);i.getOrCreateInstance(o)[t]()})},wi=".bs.alert",In=`close${wi}`,Rn=`closed${wi}`;class Wt extends F{static get NAME(){return"alert"}close(){if(c.trigger(this._element,In).defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),c.trigger(this._element,Rn),this.dispose()}static jQueryInterface(t){return this.each(function(){const e=Wt.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)}})}}ce(Wt,"close"),W(Wt);const Si='[data-bs-toggle="button"]';class Kt extends F{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each(function(){const e=Kt.getOrCreateInstance(this);"toggle"===t&&e[t]()})}}function Ci(i){return"true"===i||"false"!==i&&(i===Number(i).toString()?Number(i):""===i||"null"===i?null:i)}function Pe(i){return i.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}c.on(document,"click.bs.button.data-api",Si,i=>{i.preventDefault();const t=i.target.closest(Si);Kt.getOrCreateInstance(t).toggle()}),W(Kt);const D={setDataAttribute(i,t,e){i.setAttribute(`data-bs-${Pe(t)}`,e)},removeDataAttribute(i,t){i.removeAttribute(`data-bs-${Pe(t)}`)},getDataAttributes(i){if(!i)return{};const t={};return Object.keys(i.dataset).filter(e=>e.startsWith("bs")).forEach(e=>{let s=e.replace(/^bs/,"");s=s.charAt(0).toLowerCase()+s.slice(1,s.length),t[s]=Ci(i.dataset[e])}),t},getDataAttribute:(i,t)=>Ci(i.getAttribute(`data-bs-${Pe(t)}`)),offset(i){const t=i.getBoundingClientRect();return{top:t.top+window.pageYOffset,left:t.left+window.pageXOffset}},position:i=>({top:i.offsetTop,left:i.offsetLeft})},d={find:(i,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,i)),findOne:(i,t=document.documentElement)=>Element.prototype.querySelector.call(t,i),children:(i,t)=>[].concat(...i.children).filter(e=>e.matches(t)),parents(i,t){const e=[];let s=i.parentNode;for(;s&&s.nodeType===Node.ELEMENT_NODE&&3!==s.nodeType;)s.matches(t)&&e.push(s),s=s.parentNode;return e},prev(i,t){let e=i.previousElementSibling;for(;e;){if(e.matches(t))return[e];e=e.previousElementSibling}return[]},next(i,t){let e=i.nextElementSibling;for(;e;){if(e.matches(t))return[e];e=e.nextElementSibling}return[]},focusableChildren(i){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>`${e}:not([tabindex^="-"])`).join(", ");return this.find(t,i).filter(e=>!ut(e)&&Ht(e))}},Ni="carousel",x=".bs.carousel",Di=".data-api",$i={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},Fn={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},ft="next",dt="prev",pt="left",Yt="right",zn={ArrowLeft:Yt,ArrowRight:pt},qn=`slide${x}`,Li=`slid${x}`,Gn=`keydown${x}`,Xn=`mouseenter${x}`,Qn=`mouseleave${x}`,Zn=`touchstart${x}`,Jn=`touchmove${x}`,to=`touchend${x}`,eo=`pointerdown${x}`,io=`pointerup${x}`,so=`dragstart${x}`,no=`load${x}${Di}`,oo=`click${x}${Di}`,_t="active",le=".active.carousel-item";class G extends F{constructor(t,e){super(t),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._indicatorsElement=d.findOne(".carousel-indicators",this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners()}static get Default(){return $i}static get NAME(){return Ni}next(){this._slide(ft)}nextWhenVisible(){!document.hidden&&Ht(this._element)&&this.next()}prev(){this._slide(dt)}pause(t){t||(this._isPaused=!0),d.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(fi(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(t){this._activeElement=d.findOne(le,this._element);const e=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0)){if(!this._isSliding)return e===t?(this.pause(),void this.cycle()):void this._slide(t>e?ft:dt,this._items[t]);c.one(this._element,Li,()=>this.to(t))}}_getConfig(t){return t=_(_(_({},$i),D.getDataAttributes(this._element)),"object"==typeof t?t:{}),q(Ni,t,Fn),t}_handleSwipe(){const t=Math.abs(this.touchDeltaX);if(t<=40)return;const e=t/this.touchDeltaX;this.touchDeltaX=0,e&&this._slide(e>0?Yt:pt)}_addEventListeners(){this._config.keyboard&&c.on(this._element,Gn,t=>this._keydown(t)),"hover"===this._config.pause&&(c.on(this._element,Xn,t=>this.pause(t)),c.on(this._element,Qn,t=>this.cycle(t))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){const t=o=>this._pointerEvent&&("pen"===o.pointerType||"touch"===o.pointerType),e=o=>{t(o)?this.touchStartX=o.clientX:this._pointerEvent||(this.touchStartX=o.touches[0].clientX)},s=o=>{this.touchDeltaX=o.touches&&o.touches.length>1?0:o.touches[0].clientX-this.touchStartX},n=o=>{t(o)&&(this.touchDeltaX=o.clientX-this.touchStartX),this._handleSwipe(),"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(r=>this.cycle(r),500+this._config.interval))};d.find(".carousel-item img",this._element).forEach(o=>{c.on(o,so,r=>r.preventDefault())}),this._pointerEvent?(c.on(this._element,eo,o=>e(o)),c.on(this._element,io,o=>n(o)),this._element.classList.add("pointer-event")):(c.on(this._element,Zn,o=>e(o)),c.on(this._element,Jn,o=>s(o)),c.on(this._element,to,o=>n(o)))}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=zn[t.key];e&&(t.preventDefault(),this._slide(e))}_getItemIndex(t){return this._items=t&&t.parentNode?d.find(".carousel-item",t.parentNode):[],this._items.indexOf(t)}_getItemByOrder(t,e){return mi(this._items,e,t===ft,this._config.wrap)}_triggerSlideEvent(t,e){const s=this._getItemIndex(t),n=this._getItemIndex(d.findOne(le,this._element));return c.trigger(this._element,qn,{relatedTarget:t,direction:e,from:n,to:s})}_setActiveIndicatorElement(t){if(this._indicatorsElement){const e=d.findOne(".active",this._indicatorsElement);e.classList.remove(_t),e.removeAttribute("aria-current");const s=d.find("[data-bs-target]",this._indicatorsElement);for(let n=0;n{c.trigger(this._element,Li,{relatedTarget:r,direction:p,from:o,to:a})};this._element.classList.contains("slide")?(r.classList.add(f),n.classList.add(u),r.classList.add(u),this._queueCallback(()=>{r.classList.remove(u,f),r.classList.add(_t),n.classList.remove(_t,f,u),this._isSliding=!1,setTimeout(v,0)},n,!0)):(n.classList.remove(_t),r.classList.add(_t),this._isSliding=!1,v()),l&&this.cycle()}_directionToOrder(t){return[Yt,pt].includes(t)?R()?t===pt?dt:ft:t===pt?ft:dt:t}_orderToDirection(t){return[ft,dt].includes(t)?R()?t===dt?pt:Yt:t===dt?Yt:pt:t}static carouselInterface(t,e){const s=G.getOrCreateInstance(t,e);let{_config:n}=s;"object"==typeof e&&(n=_(_({},n),e));const o="string"==typeof e?e:n.slide;if("number"==typeof e)s.to(e);else if("string"==typeof o){if(void 0===s[o])throw new TypeError(`No method named "${o}"`);s[o]()}else n.interval&&n.ride&&(s.pause(),s.cycle())}static jQueryInterface(t){return this.each(function(){G.carouselInterface(this,t)})}static dataApiClickHandler(t){const e=it(this);if(!e||!e.classList.contains("carousel"))return;const s=_(_({},D.getDataAttributes(e)),D.getDataAttributes(this)),n=this.getAttribute("data-bs-slide-to");n&&(s.interval=!1),G.carouselInterface(e,s),n&&G.getInstance(e).to(n),t.preventDefault()}}c.on(document,oo,"[data-bs-slide], [data-bs-slide-to]",G.dataApiClickHandler),c.on(window,no,()=>{const i=d.find('[data-bs-ride="carousel"]');for(let t=0,e=i.length;th===this._element);null!==a&&l.length&&(this._selector=a,this._triggerArray.push(r))}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Pi}static get NAME(){return Ii}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e,t=[];if(this._config.parent){const h=d.find(ki,this._config.parent);t=d.find(".collapse.show, .collapse.collapsing",this._config.parent).filter(u=>!h.includes(u))}const s=d.findOne(this._selector);if(t.length){const h=t.find(u=>s!==u);if(e=h?mt.getInstance(h):null,e&&e._isTransitioning)return}if(c.trigger(this._element,So).defaultPrevented)return;t.forEach(h=>{s!==h&&mt.getOrCreateInstance(h,{toggle:!1}).hide(),e||Bt.set(h,Ri,null)});const o=this._getDimension();this._element.classList.remove(St),this._element.classList.add(ue),this._element.style[o]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const l=`scroll${o[0].toUpperCase()+o.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(ue),this._element.classList.add(St,Me),this._element.style[o]="",c.trigger(this._element,Co)},this._element,!0),this._element.style[o]=`${this._element[l]}px`}hide(){if(this._isTransitioning||!this._isShown()||c.trigger(this._element,No).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,this._element.classList.add(ue),this._element.classList.remove(St,Me);const s=this._triggerArray.length;for(let o=0;o{this._isTransitioning=!1,this._element.classList.remove(ue),this._element.classList.add(St),c.trigger(this._element,Do)},this._element,!0)}_isShown(t=this._element){return t.classList.contains(Me)}_getConfig(t){return(t=_(_(_({},Pi),D.getDataAttributes(this._element)),t)).toggle=Boolean(t.toggle),t.parent=st(t.parent),q(Ii,t,wo),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=d.find(ki,this._config.parent);d.find(ke,this._config.parent).filter(e=>!t.includes(e)).forEach(e=>{const s=it(e);s&&this._addAriaAndCollapsedClass([e],this._isShown(s))})}_addAriaAndCollapsedClass(t,e){!t.length||t.forEach(s=>{e?s.classList.remove(Mi):s.classList.add(Mi),s.setAttribute("aria-expanded",e)})}static jQueryInterface(t){return this.each(function(){const e={};"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1);const s=mt.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===s[t])throw new TypeError(`No method named "${t}"`);s[t]()}})}}c.on(document,$o,ke,function(i){("A"===i.target.tagName||i.delegateTarget&&"A"===i.delegateTarget.tagName)&&i.preventDefault();const t=$e(this);d.find(t).forEach(s=>{mt.getOrCreateInstance(s,{toggle:!1}).toggle()})}),W(mt);var P="top",V="bottom",H="right",M="left",he="auto",Ct=[P,V,H,M],gt="start",Nt="end",xi="clippingParents",xe="viewport",Dt="popper",Vi="reference",Ve=Ct.reduce(function(i,t){return i.concat([t+"-"+gt,t+"-"+Nt])},[]),He=[].concat(Ct,[he]).reduce(function(i,t){return i.concat([t,t+"-"+gt,t+"-"+Nt])},[]),Hi="beforeRead",Wi="afterRead",Ki="beforeMain",ji="afterMain",Ui="beforeWrite",zi="afterWrite",qi=[Hi,"read",Wi,Ki,"main",ji,Ui,"write",zi];function X(i){return i?(i.nodeName||"").toLowerCase():null}function z(i){if(null==i)return window;if("[object Window]"!==i.toString()){var t=i.ownerDocument;return t&&t.defaultView||window}return i}function Ut(i){return i instanceof z(i).Element||i instanceof Element}function K(i){return i instanceof z(i).HTMLElement||i instanceof HTMLElement}function Gi(i){return"undefined"!=typeof ShadowRoot&&(i instanceof z(i).ShadowRoot||i instanceof ShadowRoot)}const Be={name:"applyStyles",enabled:!0,phase:"write",fn:function Mo(i){var t=i.state;Object.keys(t.elements).forEach(function(e){var s=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];!K(o)||!X(o)||(Object.assign(o.style,s),Object.keys(n).forEach(function(r){var a=n[r];!1===a?o.removeAttribute(r):o.setAttribute(r,!0===a?"":a)}))})},effect:function ko(i){var t=i.state,e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,e.popper),t.styles=e,t.elements.arrow&&Object.assign(t.elements.arrow.style,e.arrow),function(){Object.keys(t.elements).forEach(function(s){var n=t.elements[s],o=t.attributes[s]||{},a=Object.keys(t.styles.hasOwnProperty(s)?t.styles[s]:e[s]).reduce(function(l,h){return l[h]="",l},{});!K(n)||!X(n)||(Object.assign(n.style,a),Object.keys(o).forEach(function(l){n.removeAttribute(l)}))})}},requires:["computeStyles"]};function Q(i){return i.split("-")[0]}function $t(i,t){var e=i.getBoundingClientRect();return{width:e.width/1,height:e.height/1,top:e.top/1,right:e.right/1,bottom:e.bottom/1,left:e.left/1,x:e.left/1,y:e.top/1}}function We(i){var t=$t(i),e=i.offsetWidth,s=i.offsetHeight;return Math.abs(t.width-e)<=1&&(e=t.width),Math.abs(t.height-s)<=1&&(s=t.height),{x:i.offsetLeft,y:i.offsetTop,width:e,height:s}}function Xi(i,t){var e=t.getRootNode&&t.getRootNode();if(i.contains(t))return!0;if(e&&Gi(e)){var s=t;do{if(s&&i.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function et(i){return z(i).getComputedStyle(i)}function xo(i){return["table","td","th"].indexOf(X(i))>=0}function ot(i){return((Ut(i)?i.ownerDocument:i.document)||window.document).documentElement}function fe(i){return"html"===X(i)?i:i.assignedSlot||i.parentNode||(Gi(i)?i.host:null)||ot(i)}function Qi(i){return K(i)&&"fixed"!==et(i).position?i.offsetParent:null}function Ft(i){for(var t=z(i),e=Qi(i);e&&xo(e)&&"static"===et(e).position;)e=Qi(e);return e&&("html"===X(e)||"body"===X(e)&&"static"===et(e).position)?t:e||function Vo(i){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&K(i)&&"fixed"===et(i).position)return null;for(var n=fe(i);K(n)&&["html","body"].indexOf(X(n))<0;){var o=et(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(i)||t}function Ke(i){return["top","bottom"].indexOf(i)>=0?"x":"y"}var rt=Math.max,zt=Math.min,de=Math.round;function pe(i,t,e){return rt(i,zt(t,e))}function Ji(i){return Object.assign({},{top:0,right:0,bottom:0,left:0},i)}function ts(i,t){return t.reduce(function(e,s){return e[s]=i,e},{})}const es={name:"arrow",enabled:!0,phase:"main",fn:function Bo(i){var t,e=i.state,s=i.name,n=i.options,o=e.elements.arrow,r=e.modifiersData.popperOffsets,a=Q(e.placement),l=Ke(a),u=[M,H].indexOf(a)>=0?"height":"width";if(o&&r){var f=function(t,e){return Ji("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:ts(t,Ct))}(n.padding,e),p=We(o),m="y"===l?P:M,v="y"===l?V:H,E=e.rects.reference[u]+e.rects.reference[l]-r[l]-e.rects.popper[u],A=r[l]-e.rects.reference[l],S=Ft(o),T=S?"y"===l?S.clientHeight||0:S.clientWidth||0:0,b=T/2-p[u]/2+(E/2-A/2),w=pe(f[m],b,T-p[u]-f[v]);e.modifiersData[s]=((t={})[l]=w,t.centerOffset=w-b,t)}},effect:function Wo(i){var t=i.state,s=i.options.element,n=void 0===s?"[data-popper-arrow]":s;null!=n&&("string"==typeof n&&!(n=t.elements.popper.querySelector(n))||!Xi(t.elements.popper,n)||(t.elements.arrow=n))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Lt(i){return i.split("-")[1]}var Ko={top:"auto",right:"auto",bottom:"auto",left:"auto"};function is(i){var t,e=i.popper,s=i.popperRect,n=i.placement,o=i.variation,r=i.offsets,a=i.position,l=i.gpuAcceleration,h=i.adaptive,u=i.roundOffsets,f=!0===u?function Yo(i){var e=i.y,n=window.devicePixelRatio||1;return{x:de(de(i.x*n)/n)||0,y:de(de(e*n)/n)||0}}(r):"function"==typeof u?u(r):r,p=f.x,m=void 0===p?0:p,v=f.y,E=void 0===v?0:v,A=r.hasOwnProperty("x"),S=r.hasOwnProperty("y"),T=M,y=P,g=window;if(h){var O=Ft(e),b="clientHeight",w="clientWidth";O===z(e)&&"static"!==et(O=ot(e)).position&&"absolute"===a&&(b="scrollHeight",w="scrollWidth"),O=O,(n===P||(n===M||n===H)&&o===Nt)&&(y=V,E-=O[b]-s.height,E*=l?1:-1),(n===M||(n===P||n===V)&&o===Nt)&&(T=H,m-=O[w]-s.width,m*=l?1:-1)}var C,$=Object.assign({position:a},h&&Ko);return Object.assign({},$,l?((C={})[y]=S?"0":"",C[T]=A?"0":"",C.transform=(g.devicePixelRatio||1)<=1?"translate("+m+"px, "+E+"px)":"translate3d("+m+"px, "+E+"px, 0)",C):((t={})[y]=S?E+"px":"",t[T]=A?m+"px":"",t.transform="",t))}const Ye={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function jo(i){var t=i.state,e=i.options,s=e.gpuAcceleration,n=void 0===s||s,o=e.adaptive,r=void 0===o||o,a=e.roundOffsets,l=void 0===a||a,h={placement:Q(t.placement),variation:Lt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,is(Object.assign({},h,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,is(Object.assign({},h,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var _e={passive:!0};const je={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function Uo(i){var t=i.state,e=i.instance,s=i.options,n=s.scroll,o=void 0===n||n,r=s.resize,a=void 0===r||r,l=z(t.elements.popper),h=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&h.forEach(function(u){u.addEventListener("scroll",e.update,_e)}),a&&l.addEventListener("resize",e.update,_e),function(){o&&h.forEach(function(u){u.removeEventListener("scroll",e.update,_e)}),a&&l.removeEventListener("resize",e.update,_e)}},data:{}};var Fo={left:"right",right:"left",bottom:"top",top:"bottom"};function me(i){return i.replace(/left|right|bottom|top/g,function(t){return Fo[t]})}var zo={start:"end",end:"start"};function ss(i){return i.replace(/start|end/g,function(t){return zo[t]})}function Ue(i){var t=z(i);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Fe(i){return $t(ot(i)).left+Ue(i).scrollLeft}function ze(i){var t=et(i);return/auto|scroll|overlay|hidden/.test(t.overflow+t.overflowY+t.overflowX)}function ns(i){return["html","body","#document"].indexOf(X(i))>=0?i.ownerDocument.body:K(i)&&ze(i)?i:ns(fe(i))}function qt(i,t){var e;void 0===t&&(t=[]);var s=ns(i),n=s===(null==(e=i.ownerDocument)?void 0:e.body),o=z(s),r=n?[o].concat(o.visualViewport||[],ze(s)?s:[]):s,a=t.concat(r);return n?a:a.concat(qt(fe(r)))}function qe(i){return Object.assign({},i,{left:i.x,top:i.y,right:i.x+i.width,bottom:i.y+i.height})}function os(i,t){return t===xe?qe(function qo(i){var t=z(i),e=ot(i),s=t.visualViewport,n=e.clientWidth,o=e.clientHeight,r=0,a=0;return s&&(n=s.width,o=s.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(r=s.offsetLeft,a=s.offsetTop)),{width:n,height:o,x:r+Fe(i),y:a}}(i)):K(t)?function Xo(i){var t=$t(i);return t.top=t.top+i.clientTop,t.left=t.left+i.clientLeft,t.bottom=t.top+i.clientHeight,t.right=t.left+i.clientWidth,t.width=i.clientWidth,t.height=i.clientHeight,t.x=t.left,t.y=t.top,t}(t):qe(function Go(i){var t,e=ot(i),s=Ue(i),n=null==(t=i.ownerDocument)?void 0:t.body,o=rt(e.scrollWidth,e.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),r=rt(e.scrollHeight,e.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-s.scrollLeft+Fe(i),l=-s.scrollTop;return"rtl"===et(n||e).direction&&(a+=rt(e.clientWidth,n?n.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}(ot(i)))}function rs(i){var l,t=i.reference,e=i.element,s=i.placement,n=s?Q(s):null,o=s?Lt(s):null,r=t.x+t.width/2-e.width/2,a=t.y+t.height/2-e.height/2;switch(n){case P:l={x:r,y:t.y-e.height};break;case V:l={x:r,y:t.y+t.height};break;case H:l={x:t.x+t.width,y:a};break;case M:l={x:t.x-e.width,y:a};break;default:l={x:t.x,y:t.y}}var h=n?Ke(n):null;if(null!=h){var u="y"===h?"height":"width";switch(o){case gt:l[h]=l[h]-(t[u]/2-e[u]/2);break;case Nt:l[h]=l[h]+(t[u]/2-e[u]/2)}}return l}function It(i,t){void 0===t&&(t={});var s=t.placement,n=void 0===s?i.placement:s,o=t.boundary,r=void 0===o?xi:o,a=t.rootBoundary,l=void 0===a?xe:a,h=t.elementContext,u=void 0===h?Dt:h,f=t.altBoundary,p=void 0!==f&&f,m=t.padding,v=void 0===m?0:m,E=Ji("number"!=typeof v?v:ts(v,Ct)),S=i.rects.popper,T=i.elements[p?u===Dt?Vi:Dt:u],y=function Zo(i,t,e){var s="clippingParents"===t?function Qo(i){var t=qt(fe(i)),s=["absolute","fixed"].indexOf(et(i).position)>=0&&K(i)?Ft(i):i;return Ut(s)?t.filter(function(n){return Ut(n)&&Xi(n,s)&&"body"!==X(n)}):[]}(i):[].concat(t),n=[].concat(s,[e]),r=n.reduce(function(a,l){var h=os(i,l);return a.top=rt(h.top,a.top),a.right=zt(h.right,a.right),a.bottom=zt(h.bottom,a.bottom),a.left=rt(h.left,a.left),a},os(i,n[0]));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}(Ut(T)?T:T.contextElement||ot(i.elements.popper),r,l),g=$t(i.elements.reference),O=rs({reference:g,element:S,strategy:"absolute",placement:n}),b=qe(Object.assign({},S,O)),w=u===Dt?b:g,$={top:y.top-w.top+E.top,bottom:w.bottom-y.bottom+E.bottom,left:y.left-w.left+E.left,right:w.right-y.right+E.right},C=i.modifiersData.offset;if(u===Dt&&C){var j=C[n];Object.keys($).forEach(function(U){var bt=[H,V].indexOf(U)>=0?1:-1,k=[P,V].indexOf(U)>=0?"y":"x";$[U]+=j[k]*bt})}return $}const as={name:"flip",enabled:!0,phase:"main",fn:function er(i){var t=i.state,e=i.options,s=i.name;if(!t.modifiersData[s]._skip){for(var n=e.mainAxis,o=void 0===n||n,r=e.altAxis,a=void 0===r||r,l=e.fallbackPlacements,h=e.padding,u=e.boundary,f=e.rootBoundary,p=e.altBoundary,m=e.flipVariations,v=void 0===m||m,E=e.allowedAutoPlacements,A=t.options.placement,S=Q(A),y=l||(S!==A&&v?function tr(i){if(Q(i)===he)return[];var t=me(i);return[ss(i),t,ss(t)]}(A):[me(A)]),g=[A].concat(y).reduce(function(Ot,tt){return Ot.concat(Q(tt)===he?function Jo(i,t){void 0===t&&(t={});var n=t.boundary,o=t.rootBoundary,r=t.padding,a=t.flipVariations,l=t.allowedAutoPlacements,h=void 0===l?He:l,u=Lt(t.placement),f=u?a?Ve:Ve.filter(function(v){return Lt(v)===u}):Ct,p=f.filter(function(v){return h.indexOf(v)>=0});0===p.length&&(p=f);var m=p.reduce(function(v,E){return v[E]=It(i,{placement:E,boundary:n,rootBoundary:o,padding:r})[Q(E)],v},{});return Object.keys(m).sort(function(v,E){return m[v]-m[E]})}(t,{placement:tt,boundary:u,rootBoundary:f,padding:h,flipVariations:v,allowedAutoPlacements:E}):tt)},[]),O=t.rects.reference,b=t.rects.popper,w=new Map,$=!0,C=g[0],j=0;j=0,re=oe?"width":"height",Mt=It(t,{placement:U,boundary:u,rootBoundary:f,altBoundary:p,padding:h}),yt=oe?k?H:M:k?V:P;O[re]>b[re]&&(yt=me(yt));var ai=me(yt),kt=[];if(o&&kt.push(Mt[bt]<=0),a&&kt.push(Mt[yt]<=0,Mt[ai]<=0),kt.every(function(Ot){return Ot})){C=U,$=!1;break}w.set(U,kt)}if($)for(var ci=function(tt){var Ce=g.find(function(li){var Vt=w.get(li);if(Vt)return Vt.slice(0,tt).every(function(ui){return ui})});if(Ce)return C=Ce,"break"},xt=v?3:1;xt>0&&"break"!==ci(xt);xt--);t.placement!==C&&(t.modifiersData[s]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function cs(i,t,e){return void 0===e&&(e={x:0,y:0}),{top:i.top-t.height-e.y,right:i.right-t.width+e.x,bottom:i.bottom-t.height+e.y,left:i.left-t.width-e.x}}function ls(i){return[P,H,V,M].some(function(t){return i[t]>=0})}const us={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function ir(i){var t=i.state,e=i.name,s=t.rects.reference,n=t.rects.popper,o=t.modifiersData.preventOverflow,r=It(t,{elementContext:"reference"}),a=It(t,{altBoundary:!0}),l=cs(r,s),h=cs(a,n,o),u=ls(l),f=ls(h);t.modifiersData[e]={referenceClippingOffsets:l,popperEscapeOffsets:h,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}},hs={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function nr(i){var t=i.state,s=i.name,n=i.options.offset,o=void 0===n?[0,0]:n,r=He.reduce(function(u,f){return u[f]=function sr(i,t,e){var s=Q(i),n=[M,P].indexOf(s)>=0?-1:1,o="function"==typeof e?e(Object.assign({},t,{placement:i})):e,r=o[0],a=o[1];return r=r||0,a=(a||0)*n,[M,H].indexOf(s)>=0?{x:a,y:r}:{x:r,y:a}}(f,t.rects,o),u},{}),a=r[t.placement],h=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=a.x,t.modifiersData.popperOffsets.y+=h),t.modifiersData[s]=r}},Ge={name:"popperOffsets",enabled:!0,phase:"read",fn:function or(i){var t=i.state;t.modifiersData[i.name]=rs({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},fs={name:"preventOverflow",enabled:!0,phase:"main",fn:function ar(i){var t=i.state,e=i.options,s=i.name,n=e.mainAxis,o=void 0===n||n,r=e.altAxis,a=void 0!==r&&r,p=e.tether,m=void 0===p||p,v=e.tetherOffset,E=void 0===v?0:v,A=It(t,{boundary:e.boundary,rootBoundary:e.rootBoundary,padding:e.padding,altBoundary:e.altBoundary}),S=Q(t.placement),T=Lt(t.placement),y=!T,g=Ke(S),O=function rr(i){return"x"===i?"y":"x"}(g),b=t.modifiersData.popperOffsets,w=t.rects.reference,$=t.rects.popper,C="function"==typeof E?E(Object.assign({},t.rects,{placement:t.placement})):E,j={x:0,y:0};if(b){if(o||a){var U="y"===g?P:M,bt="y"===g?V:H,k="y"===g?"height":"width",oe=b[g],re=b[g]+A[U],Mt=b[g]-A[bt],yt=m?-$[k]/2:0,ai=T===gt?w[k]:$[k],kt=T===gt?-$[k]:-w[k],we=t.elements.arrow,ci=m&&we?We(we):{width:0,height:0},xt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Se=xt[U],Ot=xt[bt],tt=pe(0,w[k],ci[k]),Ce=y?w[k]/2-yt-tt-Se-C:ai-tt-Se-C,li=y?-w[k]/2+yt+tt+Ot+C:kt+tt+Ot+C,Vt=t.elements.arrow&&Ft(t.elements.arrow),ln=t.modifiersData.offset?t.modifiersData.offset[t.placement][g]:0,un=b[g]+Ce-ln-(Vt?"y"===g?Vt.clientTop||0:Vt.clientLeft||0:0),hn=b[g]+li-ln;if(o){var fn=pe(m?zt(re,un):re,oe,m?rt(Mt,hn):Mt);b[g]=fn,j[g]=fn-oe}if(a){var Ne=b[O],dn=Ne+A["x"===g?P:M],pn=Ne-A["x"===g?V:H],_n=pe(m?zt(dn,un):dn,Ne,m?rt(pn,hn):pn);b[O]=_n,j[O]=_n-Ne}}t.modifiersData[s]=j}},requiresIfExists:["offset"]};function hr(i,t,e){void 0===e&&(e=!1);var s=K(t);K(t)&&function ur(i){var t=i.getBoundingClientRect()}(t);var n=ot(t),o=$t(i),r={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(s||!s&&!e)&&(("body"!==X(t)||ze(n))&&(r=function lr(i){return i!==z(i)&&K(i)?function cr(i){return{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}}(i):Ue(i)}(t)),K(t)?((a=$t(t)).x+=t.clientLeft,a.y+=t.clientTop):n&&(a.x=Fe(n))),{x:o.left+r.scrollLeft-a.x,y:o.top+r.scrollTop-a.y,width:o.width,height:o.height}}function fr(i){var t=new Map,e=new Set,s=[];function n(o){e.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach(function(a){if(!e.has(a)){var l=t.get(a);l&&n(l)}}),s.push(o)}return i.forEach(function(o){t.set(o.name,o)}),i.forEach(function(o){e.has(o.name)||n(o)}),s}function pr(i){var t;return function(){return t||(t=new Promise(function(e){Promise.resolve().then(function(){t=void 0,e(i())})})),t}}var ds={placement:"bottom",modifiers:[],strategy:"absolute"};function ps(){for(var i=arguments.length,t=new Array(i),e=0;ec.on(n,"mouseover",ae)),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Rt),this._element.classList.add(Rt),c.trigger(this._element,wr,t)}hide(){!ut(this._element)&&this._isShown(this._menu)&&this._completeHide({relatedTarget:this._element})}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){c.trigger(this._element,br,t).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(s=>c.off(s,"mouseover",ae)),this._popper&&this._popper.destroy(),this._menu.classList.remove(Rt),this._element.classList.remove(Rt),this._element.setAttribute("aria-expanded","false"),D.removeDataAttribute(this._menu,"popper"),c.trigger(this._element,yr,t))}_getConfig(t){if(t=_(_(_({},this.constructor.Default),D.getDataAttributes(this._element)),t),q(Qe,t,this.constructor.DefaultType),"object"==typeof t.reference&&!lt(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${Qe.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(t){if(void 0===_s)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=t:lt(this._config.reference)?e=st(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const s=this._getPopperConfig(),n=s.modifiers.find(o=>"applyStyles"===o.name&&!1===o.enabled);this._popper=Xe(e,this._menu,s),n&&D.setDataAttribute(this._menu,"popper","static")}_isShown(t=this._element){return t.classList.contains(Rt)}_getMenuElement(){return d.next(this._element,ti)[0]}_getPlacement(){const t=this._element.parentNode;if(t.classList.contains("dropend"))return xr;if(t.classList.contains("dropstart"))return Vr;const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?Pr:Rr:e?kr:Mr}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return"static"===this._config.display&&(t.modifiers=[{name:"applyStyles",enabled:!1}]),_(_({},t),"function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig)}_selectMenuItem({key:t,target:e}){const s=d.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(Ht);!s.length||mi(s,e,t===ve,!s.includes(e)).focus()}static jQueryInterface(t){return this.each(function(){const e=B.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(t){if(t&&(2===t.button||"keyup"===t.type&&"Tab"!==t.key))return;const e=d.find(Gt);for(let s=0,n=e.length;se+t),this._setElementAttributes(As,"paddingRight",e=>e+t),this._setElementAttributes(Ts,"marginRight",e=>e-t)}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,s){const n=this.getWidth();this._applyManipulationCallback(t,r=>{if(r!==this._element&&window.innerWidth>r.clientWidth+n)return;this._saveInitialAttribute(r,e);const a=window.getComputedStyle(r)[e];r.style[e]=`${s(Number.parseFloat(a))}px`})}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(As,"paddingRight"),this._resetElementAttributes(Ts,"marginRight")}_saveInitialAttribute(t,e){const s=t.style[e];s&&D.setDataAttribute(t,e,s)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,n=>{const o=D.getDataAttribute(n,e);void 0===o?n.style.removeProperty(e):(D.removeDataAttribute(n,e),n.style[e]=o)})}_applyManipulationCallback(t,e){lt(t)?e(t):d.find(t,this._element).forEach(e)}isOverflowing(){return this.getWidth()>0}}const Wr={className:"modal-backdrop",isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},Kr={className:"string",isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"},bs="backdrop",Os=`mousedown.bs.${bs}`;class ws{constructor(t){this._config=this._getConfig(t),this._isAppended=!1,this._element=null}show(t){this._config.isVisible?(this._append(),this._config.isAnimated&&this._getElement(),this._getElement().classList.add("show"),this._emulateAnimation(()=>{ht(t)})):ht(t)}hide(t){this._config.isVisible?(this._getElement().classList.remove("show"),this._emulateAnimation(()=>{this.dispose(),ht(t)})):ht(t)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_getConfig(t){return(t=_(_({},Wr),"object"==typeof t?t:{})).rootElement=st(t.rootElement),q(bs,t,Kr),t}_append(){this._isAppended||(this._config.rootElement.append(this._getElement()),c.on(this._getElement(),Os,()=>{ht(this._config.clickCallback)}),this._isAppended=!0)}dispose(){!this._isAppended||(c.off(this._element,Os),this._element.remove(),this._isAppended=!1)}_emulateAnimation(t){_i(t,this._getElement(),this._config.isAnimated)}}const jr={trapElement:null,autofocus:!0},Ur={trapElement:"element",autofocus:"boolean"},Ae=".bs.focustrap",zr=`focusin${Ae}`,qr=`keydown.tab${Ae}`,Ss="backward";class Cs{constructor(t){this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}activate(){const{trapElement:t,autofocus:e}=this._config;this._isActive||(e&&t.focus(),c.off(document,Ae),c.on(document,zr,s=>this._handleFocusin(s)),c.on(document,qr,s=>this._handleKeydown(s)),this._isActive=!0)}deactivate(){!this._isActive||(this._isActive=!1,c.off(document,Ae))}_handleFocusin(t){const{target:e}=t,{trapElement:s}=this._config;if(e===document||e===s||s.contains(e))return;const n=d.focusableChildren(s);0===n.length?s.focus():this._lastTabNavDirection===Ss?n[n.length-1].focus():n[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?Ss:"forward")}_getConfig(t){return t=_(_({},jr),"object"==typeof t?t:{}),q("focustrap",t,Ur),t}}const Y=".bs.modal",$s={backdrop:!0,keyboard:!0,focus:!0},Zr={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},Jr=`hide${Y}`,ta=`hidePrevented${Y}`,Ls=`hidden${Y}`,Is=`show${Y}`,ea=`shown${Y}`,Rs=`resize${Y}`,Ps=`click.dismiss${Y}`,Ms=`keydown.dismiss${Y}`,ia=`mouseup.dismiss${Y}`,ks=`mousedown.dismiss${Y}`,sa=`click${Y}.data-api`,xs="modal-open",ii="modal-static";class vt extends F{constructor(t,e){super(t),this._config=this._getConfig(e),this._dialog=d.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollBar=new ei}static get Default(){return $s}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||c.trigger(this._element,Is,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add(xs),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),c.on(this._dialog,ks,()=>{c.one(this._element,ia,s=>{s.target===this._element&&(this._ignoreBackdropClick=!0)})}),this._showBackdrop(()=>this._showElement(t)))}hide(){if(!this._isShown||this._isTransitioning||c.trigger(this._element,Jr).defaultPrevented)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),this._focustrap.deactivate(),this._element.classList.remove("show"),c.off(this._element,Ps),c.off(this._dialog,ks),this._queueCallback(()=>this._hideModal(),this._element,e)}dispose(){[window,this._dialog].forEach(t=>c.off(t,Y)),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new ws({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Cs({trapElement:this._element})}_getConfig(t){return t=_(_(_({},$s),D.getDataAttributes(this._element)),"object"==typeof t?t:{}),q("modal",t,Zr),t}_showElement(t){const e=this._isAnimated(),s=d.findOne(".modal-body",this._dialog);(!this._element.parentNode||this._element.parentNode.nodeType!==Node.ELEMENT_NODE)&&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,s&&(s.scrollTop=0),this._element.classList.add("show"),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,c.trigger(this._element,ea,{relatedTarget:t})},this._dialog,e)}_setEscapeEvent(){this._isShown?c.on(this._element,Ms,t=>{this._config.keyboard&&"Escape"===t.key?(t.preventDefault(),this.hide()):!this._config.keyboard&&"Escape"===t.key&&this._triggerBackdropTransition()}):c.off(this._element,Ms)}_setResizeEvent(){this._isShown?c.on(window,Rs,()=>this._adjustDialog()):c.off(window,Rs)}_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(xs),this._resetAdjustments(),this._scrollBar.reset(),c.trigger(this._element,Ls)})}_showBackdrop(t){c.on(this._element,Ps,e=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:e.target===e.currentTarget&&(!0===this._config.backdrop?this.hide():"static"===this._config.backdrop&&this._triggerBackdropTransition())}),this._backdrop.show(t)}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(c.trigger(this._element,ta).defaultPrevented)return;const{classList:e,scrollHeight:s,style:n}=this._element,o=s>document.documentElement.clientHeight;!o&&"hidden"===n.overflowY||e.contains(ii)||(o||(n.overflowY="hidden"),e.add(ii),this._queueCallback(()=>{e.remove(ii),o||this._queueCallback(()=>{n.overflowY=""},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),s=e>0;(!s&&t&&!R()||s&&!t&&R())&&(this._element.style.paddingLeft=`${e}px`),(s&&!t&&!R()||!s&&t&&R())&&(this._element.style.paddingRight=`${e}px`)}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each(function(){const s=vt.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===s[t])throw new TypeError(`No method named "${t}"`);s[t](e)}})}}c.on(document,sa,'[data-bs-toggle="modal"]',function(i){const t=it(this);["A","AREA"].includes(this.tagName)&&i.preventDefault(),c.one(t,Is,n=>{n.defaultPrevented||c.one(t,Ls,()=>{Ht(this)&&this.focus()})});const e=d.findOne(".modal.show");e&&vt.getInstance(e).hide(),vt.getOrCreateInstance(t).toggle(this)}),ce(vt),W(vt);const Hs="offcanvas",At=".bs.offcanvas",Bs=".data-api",la=`load${At}${Bs}`,Ws={backdrop:!0,keyboard:!0,scroll:!1},ha={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},Ys=".offcanvas.show",da=`show${At}`,pa=`shown${At}`,_a=`hide${At}`,js=`hidden${At}`,ma=`click${At}${Bs}`,ga=`keydown.dismiss${At}`;class at extends F{constructor(t,e){super(t),this._config=this._getConfig(e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get NAME(){return Hs}static get Default(){return Ws}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||c.trigger(this._element,da,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||(new ei).hide(),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add("show"),this._queueCallback(()=>{this._config.scroll||this._focustrap.activate(),c.trigger(this._element,pa,{relatedTarget:t})},this._element,!0))}hide(){this._isShown&&!c.trigger(this._element,_a).defaultPrevented&&(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.remove("show"),this._backdrop.hide(),this._queueCallback(()=>{this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._element.style.visibility="hidden",this._config.scroll||(new ei).reset(),c.trigger(this._element,js)},this._element,!0))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_getConfig(t){return t=_(_(_({},Ws),D.getDataAttributes(this._element)),"object"==typeof t?t:{}),q(Hs,t,ha),t}_initializeBackDrop(){return new ws({className:"offcanvas-backdrop",isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_initializeFocusTrap(){return new Cs({trapElement:this._element})}_addEventListeners(){c.on(this._element,ga,t=>{this._config.keyboard&&"Escape"===t.key&&this.hide()})}static jQueryInterface(t){return this.each(function(){const e=at.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)}})}}c.on(document,ma,'[data-bs-toggle="offcanvas"]',function(i){const t=it(this);if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),ut(this))return;c.one(t,js,()=>{Ht(this)&&this.focus()});const e=d.findOne(Ys);e&&e!==t&&at.getInstance(e).hide(),at.getOrCreateInstance(t).toggle(this)}),c.on(window,la,()=>d.find(Ys).forEach(i=>at.getOrCreateInstance(i).show())),ce(at),W(at);const va=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Ta=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,ba=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,ya=(i,t)=>{const e=i.nodeName.toLowerCase();if(t.includes(e))return!va.has(e)||Boolean(Ta.test(i.nodeValue)||ba.test(i.nodeValue));const s=t.filter(n=>n instanceof RegExp);for(let n=0,o=s.length;n{ya(p,f)||l.removeAttribute(p.nodeName)})}return n.body.innerHTML}const Fs="tooltip",Z=".bs.tooltip",Sa=new Set(["sanitize","allowList","sanitizeFn"]),Ca={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},Na={AUTO:"auto",TOP:"top",RIGHT:R()?"left":"right",BOTTOM:"bottom",LEFT:R()?"right":"left"},Da={animation:!0,template:'',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},$a={HIDE:`hide${Z}`,HIDDEN:`hidden${Z}`,SHOW:`show${Z}`,SHOWN:`shown${Z}`,INSERTED:`inserted${Z}`,CLICK:`click${Z}`,FOCUSIN:`focusin${Z}`,FOCUSOUT:`focusout${Z}`,MOUSEENTER:`mouseenter${Z}`,MOUSELEAVE:`mouseleave${Z}`},Te="fade",Xt="show",Qt="show",zs=".tooltip-inner",Gs="hide.bs.modal",Zt="hover",ni="focus";class Tt extends F{constructor(t,e){if(void 0===_s)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this._config=this._getConfig(e),this.tip=null,this._setListeners()}static get Default(){return Da}static get NAME(){return Fs}static get Event(){return $a}static get DefaultType(){return Ca}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(t){if(this._isEnabled)if(t){const e=this._initializeOnDelegatedTarget(t);e._activeTrigger.click=!e._activeTrigger.click,e._isWithActiveTrigger()?e._enter(null,e):e._leave(null,e)}else{if(this.getTipElement().classList.contains(Xt))return void this._leave(null,this);this._enter(null,this)}}dispose(){clearTimeout(this._timeout),c.off(this._element.closest(".modal"),Gs,this._hideModalHandler),this.tip&&this.tip.remove(),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)return;const t=c.trigger(this._element,this.constructor.Event.SHOW),e=di(this._element),s=null===e?this._element.ownerDocument.documentElement.contains(this._element):e.contains(this._element);if(t.defaultPrevented||!s)return;"tooltip"===this.constructor.NAME&&this.tip&&this.getTitle()!==this.tip.querySelector(zs).innerHTML&&(this._disposePopper(),this.tip.remove(),this.tip=null);const n=this.getTipElement(),o=(i=>{do{i+=Math.floor(1e6*Math.random())}while(document.getElementById(i));return i})(this.constructor.NAME);n.setAttribute("id",o),this._element.setAttribute("aria-describedby",o),this._config.animation&&n.classList.add(Te);const r="function"==typeof this._config.placement?this._config.placement.call(this,n,this._element):this._config.placement,a=this._getAttachment(r);this._addAttachmentClass(a);const{container:l}=this._config;Bt.set(n,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(l.append(n),c.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=Xe(this._element,n,this._getPopperConfig(a)),n.classList.add(Xt);const h=this._resolvePossibleFunction(this._config.customClass);h&&n.classList.add(...h.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(p=>{c.on(p,"mouseover",ae)});const f=this.tip.classList.contains(Te);this._queueCallback(()=>{const p=this._hoverState;this._hoverState=null,c.trigger(this._element,this.constructor.Event.SHOWN),"out"===p&&this._leave(null,this)},this.tip,f)}hide(){if(!this._popper)return;const t=this.getTipElement();if(c.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented)return;t.classList.remove(Xt),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(o=>c.off(o,"mouseover",ae)),this._activeTrigger.click=!1,this._activeTrigger[ni]=!1,this._activeTrigger[Zt]=!1;const n=this.tip.classList.contains(Te);this._queueCallback(()=>{this._isWithActiveTrigger()||(this._hoverState!==Qt&&t.remove(),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),c.trigger(this._element,this.constructor.Event.HIDDEN),this._disposePopper())},this.tip,n),this._hoverState=""}update(){null!==this._popper&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){if(this.tip)return this.tip;const t=document.createElement("div");t.innerHTML=this._config.template;const e=t.children[0];return this.setContent(e),e.classList.remove(Te,Xt),this.tip=e,this.tip}setContent(t){this._sanitizeAndSetContent(t,this.getTitle(),zs)}_sanitizeAndSetContent(t,e,s){const n=d.findOne(s,t);e||!n?this.setElementContent(n,e):n.remove()}setElementContent(t,e){if(null!==t){if(lt(e))return e=st(e),void(this._config.html?e.parentNode!==t&&(t.innerHTML="",t.append(e)):t.textContent=e.textContent);this._config.html?(this._config.sanitize&&(e=Us(e,this._config.allowList,this._config.sanitizeFn)),t.innerHTML=e):t.textContent=e}}getTitle(){const t=this._element.getAttribute("data-bs-original-title")||this._config.title;return this._resolvePossibleFunction(t)}updateAttachment(t){return"right"===t?"end":"left"===t?"start":t}_initializeOnDelegatedTarget(t,e){return e||this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return"function"==typeof t?t.call(this._element):t}_getPopperConfig(t){const e={placement:t,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:"onChange",enabled:!0,phase:"afterWrite",fn:s=>this._handlePopperPlacementChange(s)}],onFirstUpdate:s=>{s.options.placement!==s.placement&&this._handlePopperPlacementChange(s)}};return _(_({},e),"function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig)}_addAttachmentClass(t){this.getTipElement().classList.add(`${this._getBasicClassPrefix()}-${this.updateAttachment(t)}`)}_getAttachment(t){return Na[t.toUpperCase()]}_setListeners(){this._config.trigger.split(" ").forEach(e=>{if("click"===e)c.on(this._element,this.constructor.Event.CLICK,this._config.selector,s=>this.toggle(s));else if("manual"!==e){const n=e===Zt?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;c.on(this._element,e===Zt?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,this._config.selector,o=>this._enter(o)),c.on(this._element,n,this._config.selector,o=>this._leave(o))}}),this._hideModalHandler=()=>{this._element&&this.hide()},c.on(this._element.closest(".modal"),Gs,this._hideModalHandler),this._config.selector?this._config=De(_({},this._config),{trigger:"manual",selector:""}):this._fixTitle()}_fixTitle(){const 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",""))}_enter(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusin"===t.type?ni:Zt]=!0),e.getTipElement().classList.contains(Xt)||e._hoverState===Qt?e._hoverState=Qt:(clearTimeout(e._timeout),e._hoverState=Qt,e._config.delay&&e._config.delay.show?e._timeout=setTimeout(()=>{e._hoverState===Qt&&e.show()},e._config.delay.show):e.show())}_leave(t,e){if(e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusout"===t.type?ni:Zt]=e._element.contains(t.relatedTarget)),!e._isWithActiveTrigger()){if(clearTimeout(e._timeout),e._hoverState="out",!e._config.delay||!e._config.delay.hide)return void e.hide();e._timeout=setTimeout(()=>{"out"===e._hoverState&&e.hide()},e._config.delay.hide)}}_isWithActiveTrigger(){for(const t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1}_getConfig(t){const e=D.getDataAttributes(this._element);return Object.keys(e).forEach(s=>{Sa.has(s)&&delete e[s]}),(t=_(_(_({},this.constructor.Default),e),"object"==typeof t&&t?t:{})).container=!1===t.container?document.body:st(t.container),"number"==typeof 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()),q(Fs,t,this.constructor.DefaultType),t.sanitize&&(t.template=Us(t.template,t.allowList,t.sanitizeFn)),t}_getDelegateConfig(){const t={};for(const e in this._config)this.constructor.Default[e]!==this._config[e]&&(t[e]=this._config[e]);return t}_cleanTipClass(){const t=this.getTipElement(),e=new RegExp(`(^|\\s)${this._getBasicClassPrefix()}\\S+`,"g"),s=t.getAttribute("class").match(e);null!==s&&s.length>0&&s.map(n=>n.trim()).forEach(n=>t.classList.remove(n))}_getBasicClassPrefix(){return"bs-tooltip"}_handlePopperPlacementChange(t){const{state:e}=t;!e||(this.tip=e.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(e.placement)))}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jQueryInterface(t){return this.each(function(){const e=Tt.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}W(Tt);const J=".bs.popover",ka=De(_({},Tt.Default),{placement:"right",offset:[0,8],trigger:"click",content:"",template:''}),xa=De(_({},Tt.DefaultType),{content:"(string|element|function)"}),Va={HIDE:`hide${J}`,HIDDEN:`hidden${J}`,SHOW:`show${J}`,SHOWN:`shown${J}`,INSERTED:`inserted${J}`,CLICK:`click${J}`,FOCUSIN:`focusin${J}`,FOCUSOUT:`focusout${J}`,MOUSEENTER:`mouseenter${J}`,MOUSELEAVE:`mouseleave${J}`};class be extends Tt{static get Default(){return ka}static get NAME(){return"popover"}static get Event(){return Va}static get DefaultType(){return xa}isWithContent(){return this.getTitle()||this._getContent()}setContent(t){this._sanitizeAndSetContent(t,this.getTitle(),".popover-header"),this._sanitizeAndSetContent(t,this._getContent(),".popover-body")}_getContent(){return this._resolvePossibleFunction(this._config.content)}_getBasicClassPrefix(){return"bs-popover"}static jQueryInterface(t){return this.each(function(){const e=be.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}W(be);const Xs="scrollspy",ye=".bs.scrollspy",Qs={offset:10,method:"auto",target:""},Ka={offset:"number",method:"string",target:"(string|element)"},Ya=`activate${ye}`,ja=`scroll${ye}`,Ua=`load${ye}.data-api`,Zs="dropdown-item",Pt="active",oi=".nav-link",Js=".list-group-item",ri=`${oi}, ${Js}, .${Zs}`,tn="position";class Jt extends F{constructor(t,e){super(t),this._scrollElement="BODY"===this._element.tagName?window:this._element,this._config=this._getConfig(e),this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,c.on(this._scrollElement,ja,()=>this._process()),this.refresh(),this._process()}static get Default(){return Qs}static get NAME(){return Xs}refresh(){const e="auto"===this._config.method?this._scrollElement===this._scrollElement.window?"offset":tn:this._config.method,s=e===tn?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),d.find(ri,this._config.target).map(o=>{const r=$e(o),a=r?d.findOne(r):null;if(a){const l=a.getBoundingClientRect();if(l.width||l.height)return[D[e](a).top+s,r]}return null}).filter(o=>o).sort((o,r)=>o[0]-r[0]).forEach(o=>{this._offsets.push(o[0]),this._targets.push(o[1])})}dispose(){c.off(this._scrollElement,ye),super.dispose()}_getConfig(t){return(t=_(_(_({},Qs),D.getDataAttributes(this._element)),"object"==typeof t&&t?t:{})).target=st(t.target)||document.documentElement,q(Xs,t,Ka),t}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),s=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=s){const n=this._targets[this._targets.length-1];this._activeTarget!==n&&this._activate(n)}else{if(this._activeTarget&&t0)return this._activeTarget=null,void this._clear();for(let n=this._offsets.length;n--;)this._activeTarget!==this._targets[n]&&t>=this._offsets[n]&&(void 0===this._offsets[n+1]||t`${n}[data-bs-target="${t}"],${n}[href="${t}"]`),s=d.findOne(e.join(","),this._config.target);s.classList.add(Pt),s.classList.contains(Zs)?d.findOne(".dropdown-toggle",s.closest(".dropdown")).classList.add(Pt):d.parents(s,".nav, .list-group").forEach(n=>{d.prev(n,`${oi}, ${Js}`).forEach(o=>o.classList.add(Pt)),d.prev(n,".nav-item").forEach(o=>{d.children(o,oi).forEach(r=>r.classList.add(Pt))})}),c.trigger(this._scrollElement,Ya,{relatedTarget:t})}_clear(){d.find(ri,this._config.target).filter(t=>t.classList.contains(Pt)).forEach(t=>t.classList.remove(Pt))}static jQueryInterface(t){return this.each(function(){const e=Jt.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}c.on(window,Ua,()=>{d.find('[data-bs-spy="scroll"]').forEach(i=>new Jt(i))}),W(Jt);const te=".bs.tab",tc=`hide${te}`,ec=`hidden${te}`,ic=`show${te}`,sc=`shown${te}`,nc=`click${te}.data-api`,ee="active",nn=".active",on=":scope > li > .active";class ie extends F{static get NAME(){return"tab"}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(ee))return;let t;const e=it(this._element),s=this._element.closest(".nav, .list-group");s&&(t=d.find("UL"===s.nodeName||"OL"===s.nodeName?on:nn,s),t=t[t.length-1]);const n=t?c.trigger(t,tc,{relatedTarget:this._element}):null;if(c.trigger(this._element,ic,{relatedTarget:t}).defaultPrevented||null!==n&&n.defaultPrevented)return;this._activate(this._element,s);const r=()=>{c.trigger(t,ec,{relatedTarget:this._element}),c.trigger(this._element,sc,{relatedTarget:t})};e?this._activate(e,e.parentNode,r):r()}_activate(t,e,s){const o=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?d.children(e,nn):d.find(on,e))[0],r=s&&o&&o.classList.contains("fade"),a=()=>this._transitionComplete(t,o,s);o&&r?(o.classList.remove("show"),this._queueCallback(a,t,!0)):a()}_transitionComplete(t,e,s){if(e){e.classList.remove(ee);const o=d.findOne(":scope > .dropdown-menu .active",e.parentNode);o&&o.classList.remove(ee),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}t.classList.add(ee),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),t.classList.contains("fade")&&t.classList.add("show");let n=t.parentNode;if(n&&"LI"===n.nodeName&&(n=n.parentNode),n&&n.classList.contains("dropdown-menu")){const o=t.closest(".dropdown");o&&d.find(".dropdown-toggle",o).forEach(r=>r.classList.add(ee)),t.setAttribute("aria-expanded",!0)}s&&s()}static jQueryInterface(t){return this.each(function(){const e=ie.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}c.on(document,nc,'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',function(i){["A","AREA"].includes(this.tagName)&&i.preventDefault(),ut(this)||ie.getOrCreateInstance(this).show()}),W(ie);const ct=".bs.toast",hc=`mouseover${ct}`,fc=`mouseout${ct}`,dc=`focusin${ct}`,pc=`focusout${ct}`,_c=`hide${ct}`,mc=`hidden${ct}`,gc=`show${ct}`,Ec=`shown${ct}`,se="show",Oe="showing",Ac={animation:"boolean",autohide:"boolean",delay:"number"},cn={animation:!0,autohide:!0,delay:5e3};class ne extends F{constructor(t,e){super(t),this._config=this._getConfig(e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get DefaultType(){return Ac}static get Default(){return cn}static get NAME(){return"toast"}show(){c.trigger(this._element,gc).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove("hide"),this._element.classList.add(se),this._element.classList.add(Oe),this._queueCallback(()=>{this._element.classList.remove(Oe),c.trigger(this._element,Ec),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this._element.classList.contains(se)&&!c.trigger(this._element,_c).defaultPrevented&&(this._element.classList.add(Oe),this._queueCallback(()=>{this._element.classList.add("hide"),this._element.classList.remove(Oe),this._element.classList.remove(se),c.trigger(this._element,mc)},this._element,this._config.animation))}dispose(){this._clearTimeout(),this._element.classList.contains(se)&&this._element.classList.remove(se),super.dispose()}_getConfig(t){return t=_(_(_({},cn),D.getDataAttributes(this._element)),"object"==typeof t&&t?t:{}),q("toast",t,this.constructor.DefaultType),t}_maybeScheduleHide(){!this._config.autohide||this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const s=t.relatedTarget;this._element===s||this._element.contains(s)||this._maybeScheduleHide()}_setListeners(){c.on(this._element,hc,t=>this._onInteraction(t,!0)),c.on(this._element,fc,t=>this._onInteraction(t,!1)),c.on(this._element,dc,t=>this._onInteraction(t,!0)),c.on(this._element,pc,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const e=ne.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}})}}return ce(ne),W(ne),{Alert:Wt,Button:Kt,Carousel:G,Collapse:mt,Dropdown:B,Modal:vt,Offcanvas:at,Popover:be,ScrollSpy:Jt,Tab:ie,Toast:ne,Tooltip:Tt}});