@openeuropa/bcl-theme-joinup 0.25.1 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/css/oe-bcl-joinup.css +2541 -1783
  2. package/css/oe-bcl-joinup.css.map +1 -1
  3. package/css/oe-bcl-joinup.min.css +1 -1
  4. package/css/oe-bcl-joinup.min.css.map +1 -1
  5. package/icons/bootstrap-icons.svg +1 -1
  6. package/js/oe-bcl-joinup.bundle.js +2087 -1907
  7. package/js/oe-bcl-joinup.bundle.js.map +1 -1
  8. package/js/oe-bcl-joinup.bundle.min.js +1 -1
  9. package/js/oe-bcl-joinup.bundle.min.js.map +1 -1
  10. package/js/oe-bcl-joinup.esm.js +2083 -1903
  11. package/js/oe-bcl-joinup.esm.js.map +1 -1
  12. package/js/oe-bcl-joinup.esm.min.js +1 -1
  13. package/js/oe-bcl-joinup.esm.min.js.map +1 -1
  14. package/js/oe-bcl-joinup.umd.js +2083 -1903
  15. package/js/oe-bcl-joinup.umd.js.map +1 -1
  16. package/js/oe-bcl-joinup.umd.min.js +1 -1
  17. package/js/oe-bcl-joinup.umd.min.js.map +1 -1
  18. package/package.json +13 -13
  19. package/src/scss/oe-bcl-joinup.scss +1 -1
  20. package/templates/bcl-base-templates/sidebar-search.html.twig +14 -1
  21. package/templates/bcl-carousel/carousel.html.twig +2 -8
  22. package/templates/bcl-date-block/date-block.html.twig +0 -2
  23. package/templates/bcl-featured-media/featured-media.html.twig +9 -0
  24. package/templates/bcl-file/file.html.twig +1 -1
  25. package/templates/bcl-gallery/gallery.html.twig +1 -1
  26. package/templates/bcl-language-switcher/language-switcher.html.twig +9 -3
  27. package/templates/bcl-navbar/navbar.html.twig +7 -7
  28. package/templates/bcl-navigation/navigation.html.twig +1 -1
  29. package/templates/bcl-offcanvas/offcanvas.html.twig +14 -3
  30. package/templates/bcl-pagination/pagination.html.twig +1 -1
  31. package/templates/bcl-person/person.html.twig +1 -3
  32. package/templates/bcl-progress/progress.html.twig +1 -4
@@ -1,2 +1,2 @@
1
- !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 e="transitionend",t=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let i=e.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),t=i&&"#"!==i?i.trim():null}return t},i=e=>{const i=t(e);return i&&document.querySelector(i)?i:null},n=e=>{const i=t(e);return i?document.querySelector(i):null},s=t=>{t.dispatchEvent(new Event(e))},o=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),r=e=>o(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(e):null,a=(e,t,i)=>{Object.keys(i).forEach((n=>{const s=i[n],r=t[n],a=r&&o(r)?"element":null==(l=r)?`${l}`:{}.toString.call(l).match(/\s([a-z]+)/i)[1].toLowerCase();var l;if(!new RegExp(s).test(a))throw new TypeError(`${e.toUpperCase()}: Option "${n}" provided type "${a}" but expected type "${s}".`)}))},l=e=>!(!o(e)||0===e.getClientRects().length)&&"visible"===getComputedStyle(e).getPropertyValue("visibility"),c=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),h=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?h(e.parentNode):null},d=()=>{},u=e=>{e.offsetHeight},f=()=>{const{jQuery:e}=window;return e&&!document.body.hasAttribute("data-bs-no-jquery")?e:null},p=[],m=()=>"rtl"===document.documentElement.dir,g=e=>{var t;t=()=>{const t=f();if(t){const i=e.NAME,n=t.fn[i];t.fn[i]=e.jQueryInterface,t.fn[i].Constructor=e,t.fn[i].noConflict=()=>(t.fn[i]=n,e.jQueryInterface)}},"loading"===document.readyState?(p.length||document.addEventListener("DOMContentLoaded",(()=>{p.forEach((e=>e()))})),p.push(t)):t()},_=e=>{"function"==typeof e&&e()},b=(t,i,n=!0)=>{if(!n)return void _(t);const o=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:i}=window.getComputedStyle(e);const n=Number.parseFloat(t),s=Number.parseFloat(i);return n||s?(t=t.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(i))):0})(i)+5;let r=!1;const a=({target:n})=>{n===i&&(r=!0,i.removeEventListener(e,a),_(t))};i.addEventListener(e,a),setTimeout((()=>{r||s(i)}),o)},v=(e,t,i,n)=>{let s=e.indexOf(t);if(-1===s)return e[!i&&n?e.length-1:0];const o=e.length;return s+=i?1:-1,n&&(s=(s+o)%o),e[Math.max(0,Math.min(s,o-1))]},y=/[^.]*(?=\..*)\.|.*/,w=/\..*/,E=/::\d+$/,A={};let O=1;const T={mouseenter:"mouseover",mouseleave:"mouseout"},C=/^(mouseenter|mouseleave)/i,x=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 k(e,t){return t&&`${t}::${O++}`||e.uidEvent||O++}function S(e){const t=k(e);return e.uidEvent=t,A[t]=A[t]||{},A[t]}function L(e,t,i=null){const n=Object.keys(e);for(let s=0,o=n.length;s<o;s++){const o=e[n[s]];if(o.originalHandler===t&&o.delegationSelector===i)return o}return null}function D(e,t,i){const n="string"==typeof t,s=n?i:t;let o=P(e);return x.has(o)||(o=e),[n,s,o]}function N(e,t,i,n,s){if("string"!=typeof t||!e)return;if(i||(i=n,n=null),C.test(t)){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};n?n=e(n):i=e(i)}const[o,r,a]=D(t,i,n),l=S(e),c=l[a]||(l[a]={}),h=L(c,r,o?i:null);if(h)return void(h.oneOff=h.oneOff&&s);const d=k(r,t.replace(y,"")),u=o?function(e,t,i){return function n(s){const o=e.querySelectorAll(t);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(let a=o.length;a--;)if(o[a]===r)return s.delegateTarget=r,n.oneOff&&j.off(e,s.type,t,i),i.apply(r,[s]);return null}}(e,i,n):function(e,t){return function i(n){return n.delegateTarget=e,i.oneOff&&j.off(e,n.type,t),t.apply(e,[n])}}(e,i);u.delegationSelector=o?i:null,u.originalHandler=r,u.oneOff=s,u.uidEvent=d,c[d]=u,e.addEventListener(a,u,o)}function I(e,t,i,n,s){const o=L(t[i],n,s);o&&(e.removeEventListener(i,o,Boolean(s)),delete t[i][o.uidEvent])}function P(e){return e=e.replace(w,""),T[e]||e}const j={on(e,t,i,n){N(e,t,i,n,!1)},one(e,t,i,n){N(e,t,i,n,!0)},off(e,t,i,n){if("string"!=typeof t||!e)return;const[s,o,r]=D(t,i,n),a=r!==t,l=S(e),c=t.startsWith(".");if(void 0!==o){if(!l||!l[r])return;return void I(e,l,r,o,s?i:null)}c&&Object.keys(l).forEach((i=>{!function(e,t,i,n){const s=t[i]||{};Object.keys(s).forEach((o=>{if(o.includes(n)){const n=s[o];I(e,t,i,n.originalHandler,n.delegationSelector)}}))}(e,l,i,t.slice(1))}));const h=l[r]||{};Object.keys(h).forEach((i=>{const n=i.replace(E,"");if(!a||t.includes(n)){const t=h[i];I(e,l,r,t.originalHandler,t.delegationSelector)}}))},trigger(e,t,i){if("string"!=typeof t||!e)return null;const n=f(),s=P(t),o=t!==s,r=x.has(s);let a,l=!0,c=!0,h=!1,d=null;return o&&n&&(a=n.Event(t,i),n(e).trigger(a),l=!a.isPropagationStopped(),c=!a.isImmediatePropagationStopped(),h=a.isDefaultPrevented()),r?(d=document.createEvent("HTMLEvents"),d.initEvent(s,l,!0)):d=new CustomEvent(t,{bubbles:l,cancelable:!0}),void 0!==i&&Object.keys(i).forEach((e=>{Object.defineProperty(d,e,{get:()=>i[e]})})),h&&d.preventDefault(),c&&e.dispatchEvent(d),d.defaultPrevented&&void 0!==a&&a.preventDefault(),d}},M=new Map;var H={set(e,t,i){M.has(e)||M.set(e,new Map);const n=M.get(e);n.has(t)||0===n.size?n.set(t,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(e,t)=>M.has(e)&&M.get(e).get(t)||null,remove(e,t){if(!M.has(e))return;const i=M.get(e);i.delete(t),0===i.size&&M.delete(e)}};class B{constructor(e){(e=r(e))&&(this._element=e,H.set(this._element,this.constructor.DATA_KEY,this))}dispose(){H.remove(this._element,this.constructor.DATA_KEY),j.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach((e=>{this[e]=null}))}_queueCallback(e,t,i=!0){b(e,t,i)}static getInstance(e){return H.get(r(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.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 R=(e,t="hide")=>{const i=`click.dismiss${e.EVENT_KEY}`,s=e.NAME;j.on(document,i,`[data-bs-dismiss="${s}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),c(this))return;const o=n(this)||this.closest(`.${s}`);e.getOrCreateInstance(o)[t]()}))};class q extends B{static get NAME(){return"alert"}close(){if(j.trigger(this._element,"close.bs.alert").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(),j.trigger(this._element,"closed.bs.alert"),this.dispose()}static jQueryInterface(e){return this.each((function(){const t=q.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}R(q,"close"),g(q);const W='[data-bs-toggle="button"]';class $ extends B{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each((function(){const t=$.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}function z(e){return"true"===e||"false"!==e&&(e===Number(e).toString()?Number(e):""===e||"null"===e?null:e)}function V(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}j.on(document,"click.bs.button.data-api",W,(e=>{e.preventDefault();const t=e.target.closest(W);$.getOrCreateInstance(t).toggle()})),g($);const F={setDataAttribute(e,t,i){e.setAttribute(`data-bs-${V(t)}`,i)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${V(t)}`)},getDataAttributes(e){if(!e)return{};const t={};return Object.keys(e.dataset).filter((e=>e.startsWith("bs"))).forEach((i=>{let n=i.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1,n.length),t[n]=z(e.dataset[i])})),t},getDataAttribute:(e,t)=>z(e.getAttribute(`data-bs-${V(t)}`)),offset(e){const t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset,left:t.left+window.pageXOffset}},position:e=>({top:e.offsetTop,left:e.offsetLeft})},U={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const i=[];let n=e.parentNode;for(;n&&n.nodeType===Node.ELEMENT_NODE&&3!==n.nodeType;)n.matches(t)&&i.push(n),n=n.parentNode;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){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(", ");return this.find(t,e).filter((e=>!c(e)&&l(e)))}},K="carousel",X={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},Y={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},Q="next",G="prev",J="left",Z="right",ee={ArrowLeft:Z,ArrowRight:J},te="slid.bs.carousel",ie="active",ne=".active.carousel-item";class se extends B{constructor(e,t){super(e),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(t),this._indicatorsElement=U.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 X}static get NAME(){return K}next(){this._slide(Q)}nextWhenVisible(){!document.hidden&&l(this._element)&&this.next()}prev(){this._slide(G)}pause(e){e||(this._isPaused=!0),U.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(s(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(e){this._activeElement=U.findOne(ne,this._element);const t=this._getItemIndex(this._activeElement);if(e>this._items.length-1||e<0)return;if(this._isSliding)return void j.one(this._element,te,(()=>this.to(e)));if(t===e)return this.pause(),void this.cycle();const i=e>t?Q:G;this._slide(i,this._items[e])}_getConfig(e){return e={...X,...F.getDataAttributes(this._element),..."object"==typeof e?e:{}},a(K,e,Y),e}_handleSwipe(){const e=Math.abs(this.touchDeltaX);if(e<=40)return;const t=e/this.touchDeltaX;this.touchDeltaX=0,t&&this._slide(t>0?Z:J)}_addEventListeners(){this._config.keyboard&&j.on(this._element,"keydown.bs.carousel",(e=>this._keydown(e))),"hover"===this._config.pause&&(j.on(this._element,"mouseenter.bs.carousel",(e=>this.pause(e))),j.on(this._element,"mouseleave.bs.carousel",(e=>this.cycle(e)))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){const e=e=>this._pointerEvent&&("pen"===e.pointerType||"touch"===e.pointerType),t=t=>{e(t)?this.touchStartX=t.clientX:this._pointerEvent||(this.touchStartX=t.touches[0].clientX)},i=e=>{this.touchDeltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this.touchStartX},n=t=>{e(t)&&(this.touchDeltaX=t.clientX-this.touchStartX),this._handleSwipe(),"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((e=>this.cycle(e)),500+this._config.interval))};U.find(".carousel-item img",this._element).forEach((e=>{j.on(e,"dragstart.bs.carousel",(e=>e.preventDefault()))})),this._pointerEvent?(j.on(this._element,"pointerdown.bs.carousel",(e=>t(e))),j.on(this._element,"pointerup.bs.carousel",(e=>n(e))),this._element.classList.add("pointer-event")):(j.on(this._element,"touchstart.bs.carousel",(e=>t(e))),j.on(this._element,"touchmove.bs.carousel",(e=>i(e))),j.on(this._element,"touchend.bs.carousel",(e=>n(e))))}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=ee[e.key];t&&(e.preventDefault(),this._slide(t))}_getItemIndex(e){return this._items=e&&e.parentNode?U.find(".carousel-item",e.parentNode):[],this._items.indexOf(e)}_getItemByOrder(e,t){const i=e===Q;return v(this._items,t,i,this._config.wrap)}_triggerSlideEvent(e,t){const i=this._getItemIndex(e),n=this._getItemIndex(U.findOne(ne,this._element));return j.trigger(this._element,"slide.bs.carousel",{relatedTarget:e,direction:t,from:n,to:i})}_setActiveIndicatorElement(e){if(this._indicatorsElement){const t=U.findOne(".active",this._indicatorsElement);t.classList.remove(ie),t.removeAttribute("aria-current");const i=U.find("[data-bs-target]",this._indicatorsElement);for(let t=0;t<i.length;t++)if(Number.parseInt(i[t].getAttribute("data-bs-slide-to"),10)===this._getItemIndex(e)){i[t].classList.add(ie),i[t].setAttribute("aria-current","true");break}}}_updateInterval(){const e=this._activeElement||U.findOne(ne,this._element);if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);t?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=t):this._config.interval=this._config.defaultInterval||this._config.interval}_slide(e,t){const i=this._directionToOrder(e),n=U.findOne(ne,this._element),s=this._getItemIndex(n),o=t||this._getItemByOrder(i,n),r=this._getItemIndex(o),a=Boolean(this._interval),l=i===Q,c=l?"carousel-item-start":"carousel-item-end",h=l?"carousel-item-next":"carousel-item-prev",d=this._orderToDirection(i);if(o&&o.classList.contains(ie))return void(this._isSliding=!1);if(this._isSliding)return;if(this._triggerSlideEvent(o,d).defaultPrevented)return;if(!n||!o)return;this._isSliding=!0,a&&this.pause(),this._setActiveIndicatorElement(o),this._activeElement=o;const f=()=>{j.trigger(this._element,te,{relatedTarget:o,direction:d,from:s,to:r})};if(this._element.classList.contains("slide")){o.classList.add(h),u(o),n.classList.add(c),o.classList.add(c);const e=()=>{o.classList.remove(c,h),o.classList.add(ie),n.classList.remove(ie,h,c),this._isSliding=!1,setTimeout(f,0)};this._queueCallback(e,n,!0)}else n.classList.remove(ie),o.classList.add(ie),this._isSliding=!1,f();a&&this.cycle()}_directionToOrder(e){return[Z,J].includes(e)?m()?e===J?G:Q:e===J?Q:G:e}_orderToDirection(e){return[Q,G].includes(e)?m()?e===G?J:Z:e===G?Z:J:e}static carouselInterface(e,t){const i=se.getOrCreateInstance(e,t);let{_config:n}=i;"object"==typeof t&&(n={...n,...t});const s="string"==typeof t?t:n.slide;if("number"==typeof t)i.to(t);else if("string"==typeof s){if(void 0===i[s])throw new TypeError(`No method named "${s}"`);i[s]()}else n.interval&&n.ride&&(i.pause(),i.cycle())}static jQueryInterface(e){return this.each((function(){se.carouselInterface(this,e)}))}static dataApiClickHandler(e){const t=n(this);if(!t||!t.classList.contains("carousel"))return;const i={...F.getDataAttributes(t),...F.getDataAttributes(this)},s=this.getAttribute("data-bs-slide-to");s&&(i.interval=!1),se.carouselInterface(t,i),s&&se.getInstance(t).to(s),e.preventDefault()}}j.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",se.dataApiClickHandler),j.on(window,"load.bs.carousel.data-api",(()=>{const e=U.find('[data-bs-ride="carousel"]');for(let t=0,i=e.length;t<i;t++)se.carouselInterface(e[t],se.getInstance(e[t]))})),g(se);const oe="collapse",re={toggle:!0,parent:null},ae={toggle:"boolean",parent:"(null|element)"},le="show",ce="collapse",he="collapsing",de="collapsed",ue=":scope .collapse .collapse",fe='[data-bs-toggle="collapse"]';class pe extends B{constructor(e,t){super(e),this._isTransitioning=!1,this._config=this._getConfig(t),this._triggerArray=[];const n=U.find(fe);for(let e=0,t=n.length;e<t;e++){const t=n[e],s=i(t),o=U.find(s).filter((e=>e===this._element));null!==s&&o.length&&(this._selector=s,this._triggerArray.push(t))}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return re}static get NAME(){return oe}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e,t=[];if(this._config.parent){const e=U.find(ue,this._config.parent);t=U.find(".collapse.show, .collapse.collapsing",this._config.parent).filter((t=>!e.includes(t)))}const i=U.findOne(this._selector);if(t.length){const n=t.find((e=>i!==e));if(e=n?pe.getInstance(n):null,e&&e._isTransitioning)return}if(j.trigger(this._element,"show.bs.collapse").defaultPrevented)return;t.forEach((t=>{i!==t&&pe.getOrCreateInstance(t,{toggle:!1}).hide(),e||H.set(t,"bs.collapse",null)}));const n=this._getDimension();this._element.classList.remove(ce),this._element.classList.add(he),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const s=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(he),this._element.classList.add(ce,le),this._element.style[n]="",j.trigger(this._element,"shown.bs.collapse")}),this._element,!0),this._element.style[n]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(j.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,u(this._element),this._element.classList.add(he),this._element.classList.remove(ce,le);const t=this._triggerArray.length;for(let e=0;e<t;e++){const t=this._triggerArray[e],i=n(t);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[e]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(he),this._element.classList.add(ce),j.trigger(this._element,"hidden.bs.collapse")}),this._element,!0)}_isShown(e=this._element){return e.classList.contains(le)}_getConfig(e){return(e={...re,...F.getDataAttributes(this._element),...e}).toggle=Boolean(e.toggle),e.parent=r(e.parent),a(oe,e,ae),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=U.find(ue,this._config.parent);U.find(fe,this._config.parent).filter((t=>!e.includes(t))).forEach((e=>{const t=n(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}))}_addAriaAndCollapsedClass(e,t){e.length&&e.forEach((e=>{t?e.classList.remove(de):e.classList.add(de),e.setAttribute("aria-expanded",t)}))}static jQueryInterface(e){return this.each((function(){const t={};"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1);const i=pe.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}}))}}j.on(document,"click.bs.collapse.data-api",fe,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();const t=i(this);U.find(t).forEach((e=>{pe.getOrCreateInstance(e,{toggle:!1}).toggle()}))})),g(pe);var me="top",ge="bottom",_e="right",be="left",ve="auto",ye=[me,ge,_e,be],we="start",Ee="end",Ae="clippingParents",Oe="viewport",Te="popper",Ce="reference",xe=ye.reduce((function(e,t){return e.concat([t+"-"+we,t+"-"+Ee])}),[]),ke=[].concat(ye,[ve]).reduce((function(e,t){return e.concat([t,t+"-"+we,t+"-"+Ee])}),[]),Se="beforeRead",Le="read",De="afterRead",Ne="beforeMain",Ie="main",Pe="afterMain",je="beforeWrite",Me="write",He="afterWrite",Be=[Se,Le,De,Ne,Ie,Pe,je,Me,He];function Re(e){return e?(e.nodeName||"").toLowerCase():null}function qe(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function We(e){return e instanceof qe(e).Element||e instanceof Element}function $e(e){return e instanceof qe(e).HTMLElement||e instanceof HTMLElement}function ze(e){return"undefined"!=typeof ShadowRoot&&(e instanceof qe(e).ShadowRoot||e instanceof ShadowRoot)}var Ve={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},s=t.elements[e];$e(s)&&Re(s)&&(Object.assign(s.style,i),Object.keys(n).forEach((function(e){var t=n[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],s=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e}),{});$e(n)&&Re(n)&&(Object.assign(n.style,o),Object.keys(s).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Fe(e){return e.split("-")[0]}var Ue=Math.max,Ke=Math.min,Xe=Math.round;function Ye(e,t){void 0===t&&(t=!1);var i=e.getBoundingClientRect(),n=1,s=1;if($e(e)&&t){var o=e.offsetHeight,r=e.offsetWidth;r>0&&(n=Xe(i.width)/r||1),o>0&&(s=Xe(i.height)/o||1)}return{width:i.width/n,height:i.height/s,top:i.top/s,right:i.right/n,bottom:i.bottom/s,left:i.left/n,x:i.left/n,y:i.top/s}}function Qe(e){var t=Ye(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 Ge(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&ze(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Je(e){return qe(e).getComputedStyle(e)}function Ze(e){return["table","td","th"].indexOf(Re(e))>=0}function et(e){return((We(e)?e.ownerDocument:e.document)||window.document).documentElement}function tt(e){return"html"===Re(e)?e:e.assignedSlot||e.parentNode||(ze(e)?e.host:null)||et(e)}function it(e){return $e(e)&&"fixed"!==Je(e).position?e.offsetParent:null}function nt(e){for(var t=qe(e),i=it(e);i&&Ze(i)&&"static"===Je(i).position;)i=it(i);return i&&("html"===Re(i)||"body"===Re(i)&&"static"===Je(i).position)?t:i||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&$e(e)&&"fixed"===Je(e).position)return null;var i=tt(e);for(ze(i)&&(i=i.host);$e(i)&&["html","body"].indexOf(Re(i))<0;){var n=Je(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(e)||t}function st(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ot(e,t,i){return Ue(e,Ke(t,i))}function rt(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function at(e,t){return t.reduce((function(t,i){return t[i]=e,t}),{})}var lt={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,n=e.name,s=e.options,o=i.elements.arrow,r=i.modifiersData.popperOffsets,a=Fe(i.placement),l=st(a),c=[be,_e].indexOf(a)>=0?"height":"width";if(o&&r){var h=function(e,t){return rt("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:at(e,ye))}(s.padding,i),d=Qe(o),u="y"===l?me:be,f="y"===l?ge:_e,p=i.rects.reference[c]+i.rects.reference[l]-r[l]-i.rects.popper[c],m=r[l]-i.rects.reference[l],g=nt(o),_=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,b=p/2-m/2,v=h[u],y=_-d[c]-h[f],w=_/2-d[c]/2+b,E=ot(v,w,y),A=l;i.modifiersData[n]=((t={})[A]=E,t.centerOffset=E-w,t)}},effect:function(e){var t=e.state,i=e.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&("production"!==process.env.NODE_ENV&&($e(n)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),Ge(t.elements.popper,n)?t.elements.arrow=n:"production"!==process.env.NODE_ENV&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" ")))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ct(e){return e.split("-")[1]}var ht={top:"auto",right:"auto",bottom:"auto",left:"auto"};function dt(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,d=e.isFixed,u=r.x,f=void 0===u?0:u,p=r.y,m=void 0===p?0:p,g="function"==typeof h?h({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var _=r.hasOwnProperty("x"),b=r.hasOwnProperty("y"),v=be,y=me,w=window;if(c){var E=nt(i),A="clientHeight",O="clientWidth";E===qe(i)&&"static"!==Je(E=et(i)).position&&"absolute"===a&&(A="scrollHeight",O="scrollWidth"),(s===me||(s===be||s===_e)&&o===Ee)&&(y=ge,m-=(d&&E===w&&w.visualViewport?w.visualViewport.height:E[A])-n.height,m*=l?1:-1),s!==be&&(s!==me&&s!==ge||o!==Ee)||(v=_e,f-=(d&&E===w&&w.visualViewport?w.visualViewport.width:E[O])-n.width,f*=l?1:-1)}var T,C=Object.assign({position:a},c&&ht),x=!0===h?function(e){var t=e.x,i=e.y,n=window.devicePixelRatio||1;return{x:Xe(t*n)/n||0,y:Xe(i*n)/n||0}}({x:f,y:m}):{x:f,y:m};return f=x.x,m=x.y,l?Object.assign({},C,((T={})[y]=b?"0":"",T[v]=_?"0":"",T.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",T)):Object.assign({},C,((t={})[y]=b?m+"px":"",t[v]=_?f+"px":"",t.transform="",t))}var ut={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,n=i.gpuAcceleration,s=void 0===n||n,o=i.adaptive,r=void 0===o||o,a=i.roundOffsets,l=void 0===a||a;if("production"!==process.env.NODE_ENV){var c=Je(t.elements.popper).transitionProperty||"";r&&["transform","top","right","bottom","left"].some((function(e){return c.indexOf(e)>=0}))&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var h={placement:Fe(t.placement),variation:ct(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,dt(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,dt(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:{}},ft={passive:!0},pt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,n=e.options,s=n.scroll,o=void 0===s||s,r=n.resize,a=void 0===r||r,l=qe(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach((function(e){e.addEventListener("scroll",i.update,ft)})),a&&l.addEventListener("resize",i.update,ft),function(){o&&c.forEach((function(e){e.removeEventListener("scroll",i.update,ft)})),a&&l.removeEventListener("resize",i.update,ft)}},data:{}},mt={left:"right",right:"left",bottom:"top",top:"bottom"};function gt(e){return e.replace(/left|right|bottom|top/g,(function(e){return mt[e]}))}var _t={start:"end",end:"start"};function bt(e){return e.replace(/start|end/g,(function(e){return _t[e]}))}function vt(e){var t=qe(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function yt(e){return Ye(et(e)).left+vt(e).scrollLeft}function wt(e){var t=Je(e),i=t.overflow,n=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function Et(e){return["html","body","#document"].indexOf(Re(e))>=0?e.ownerDocument.body:$e(e)&&wt(e)?e:Et(tt(e))}function At(e,t){var i;void 0===t&&(t=[]);var n=Et(e),s=n===(null==(i=e.ownerDocument)?void 0:i.body),o=qe(n),r=s?[o].concat(o.visualViewport||[],wt(n)?n:[]):n,a=t.concat(r);return s?a:a.concat(At(tt(r)))}function Ot(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Tt(e,t){return t===Oe?Ot(function(e){var t=qe(e),i=et(e),n=t.visualViewport,s=i.clientWidth,o=i.clientHeight,r=0,a=0;return n&&(s=n.width,o=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(r=n.offsetLeft,a=n.offsetTop)),{width:s,height:o,x:r+yt(e),y:a}}(e)):We(t)?function(e){var t=Ye(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Ot(function(e){var t,i=et(e),n=vt(e),s=null==(t=e.ownerDocument)?void 0:t.body,o=Ue(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=Ue(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-n.scrollLeft+yt(e),l=-n.scrollTop;return"rtl"===Je(s||i).direction&&(a+=Ue(i.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}(et(e)))}function Ct(e){var t,i=e.reference,n=e.element,s=e.placement,o=s?Fe(s):null,r=s?ct(s):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(o){case me:t={x:a,y:i.y-n.height};break;case ge:t={x:a,y:i.y+i.height};break;case _e:t={x:i.x+i.width,y:l};break;case be:t={x:i.x-n.width,y:l};break;default:t={x:i.x,y:i.y}}var c=o?st(o):null;if(null!=c){var h="y"===c?"height":"width";switch(r){case we:t[c]=t[c]-(i[h]/2-n[h]/2);break;case Ee:t[c]=t[c]+(i[h]/2-n[h]/2)}}return t}function xt(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=void 0===n?e.placement:n,o=i.boundary,r=void 0===o?Ae:o,a=i.rootBoundary,l=void 0===a?Oe:a,c=i.elementContext,h=void 0===c?Te:c,d=i.altBoundary,u=void 0!==d&&d,f=i.padding,p=void 0===f?0:f,m=rt("number"!=typeof p?p:at(p,ye)),g=h===Te?Ce:Te,_=e.rects.popper,b=e.elements[u?g:h],v=function(e,t,i){var n="clippingParents"===t?function(e){var t=At(tt(e)),i=["absolute","fixed"].indexOf(Je(e).position)>=0&&$e(e)?nt(e):e;return We(i)?t.filter((function(e){return We(e)&&Ge(e,i)&&"body"!==Re(e)})):[]}(e):[].concat(t),s=[].concat(n,[i]),o=s[0],r=s.reduce((function(t,i){var n=Tt(e,i);return t.top=Ue(n.top,t.top),t.right=Ke(n.right,t.right),t.bottom=Ke(n.bottom,t.bottom),t.left=Ue(n.left,t.left),t}),Tt(e,o));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}(We(b)?b:b.contextElement||et(e.elements.popper),r,l),y=Ye(e.elements.reference),w=Ct({reference:y,element:_,strategy:"absolute",placement:s}),E=Ot(Object.assign({},_,w)),A=h===Te?E:y,O={top:v.top-A.top+m.top,bottom:A.bottom-v.bottom+m.bottom,left:v.left-A.left+m.left,right:A.right-v.right+m.right},T=e.modifiersData.offset;if(h===Te&&T){var C=T[s];Object.keys(O).forEach((function(e){var t=[_e,ge].indexOf(e)>=0?1:-1,i=[me,ge].indexOf(e)>=0?"y":"x";O[e]+=C[i]*t}))}return O}function kt(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=i.boundary,o=i.rootBoundary,r=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?ke:l,h=ct(n),d=h?a?xe:xe.filter((function(e){return ct(e)===h})):ye,u=d.filter((function(e){return c.indexOf(e)>=0}));0===u.length&&(u=d,"production"!==process.env.NODE_ENV&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var f=u.reduce((function(t,i){return t[i]=xt(e,{placement:i,boundary:s,rootBoundary:o,padding:r})[Fe(i)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}var St={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0===r||r,l=i.fallbackPlacements,c=i.padding,h=i.boundary,d=i.rootBoundary,u=i.altBoundary,f=i.flipVariations,p=void 0===f||f,m=i.allowedAutoPlacements,g=t.options.placement,_=Fe(g),b=l||(_!==g&&p?function(e){if(Fe(e)===ve)return[];var t=gt(e);return[bt(e),t,bt(t)]}(g):[gt(g)]),v=[g].concat(b).reduce((function(e,i){return e.concat(Fe(i)===ve?kt(t,{placement:i,boundary:h,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:m}):i)}),[]),y=t.rects.reference,w=t.rects.popper,E=new Map,A=!0,O=v[0],T=0;T<v.length;T++){var C=v[T],x=Fe(C),k=ct(C)===we,S=[me,ge].indexOf(x)>=0,L=S?"width":"height",D=xt(t,{placement:C,boundary:h,rootBoundary:d,altBoundary:u,padding:c}),N=S?k?_e:be:k?ge:me;y[L]>w[L]&&(N=gt(N));var I=gt(N),P=[];if(o&&P.push(D[x]<=0),a&&P.push(D[N]<=0,D[I]<=0),P.every((function(e){return e}))){O=C,A=!1;break}E.set(C,P)}if(A)for(var j=function(e){var t=v.find((function(t){var i=E.get(t);if(i)return i.slice(0,e).every((function(e){return e}))}));if(t)return O=t,"break"},M=p?3:1;M>0&&"break"!==j(M);M--);t.placement!==O&&(t.modifiersData[n]._skip=!0,t.placement=O,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Lt(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function Dt(e){return[me,_e,ge,be].some((function(t){return e[t]>=0}))}var Nt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,r=xt(t,{elementContext:"reference"}),a=xt(t,{altBoundary:!0}),l=Lt(r,n),c=Lt(a,s,o),h=Dt(l),d=Dt(c);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}},It={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,n=e.name,s=i.offset,o=void 0===s?[0,0]:s,r=ke.reduce((function(e,i){return e[i]=function(e,t,i){var n=Fe(e),s=[be,me].indexOf(n)>=0?-1:1,o="function"==typeof i?i(Object.assign({},t,{placement:e})):i,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[be,_e].indexOf(n)>=0?{x:a,y:r}:{x:r,y:a}}(i,t.rects,o),e}),{}),a=r[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=r}},Pt={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=Ct({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},jt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name,s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0!==r&&r,l=i.boundary,c=i.rootBoundary,h=i.altBoundary,d=i.padding,u=i.tether,f=void 0===u||u,p=i.tetherOffset,m=void 0===p?0:p,g=xt(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:h}),_=Fe(t.placement),b=ct(t.placement),v=!b,y=st(_),w="x"===y?"y":"x",E=t.modifiersData.popperOffsets,A=t.rects.reference,O=t.rects.popper,T="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,C="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),x=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(E){if(o){var S,L="y"===y?me:be,D="y"===y?ge:_e,N="y"===y?"height":"width",I=E[y],P=I+g[L],j=I-g[D],M=f?-O[N]/2:0,H=b===we?A[N]:O[N],B=b===we?-O[N]:-A[N],R=t.elements.arrow,q=f&&R?Qe(R):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},$=W[L],z=W[D],V=ot(0,A[N],q[N]),F=v?A[N]/2-M-V-$-C.mainAxis:H-V-$-C.mainAxis,U=v?-A[N]/2+M+V+z+C.mainAxis:B+V+z+C.mainAxis,K=t.elements.arrow&&nt(t.elements.arrow),X=K?"y"===y?K.clientTop||0:K.clientLeft||0:0,Y=null!=(S=null==x?void 0:x[y])?S:0,Q=I+U-Y,G=ot(f?Ke(P,I+F-Y-X):P,I,f?Ue(j,Q):j);E[y]=G,k[y]=G-I}if(a){var J,Z="x"===y?me:be,ee="x"===y?ge:_e,te=E[w],ie="y"===w?"height":"width",ne=te+g[Z],se=te-g[ee],oe=-1!==[me,be].indexOf(_),re=null!=(J=null==x?void 0:x[w])?J:0,ae=oe?ne:te-A[ie]-O[ie]-re+C.altAxis,le=oe?te+A[ie]+O[ie]-re-C.altAxis:se,ce=f&&oe?function(e,t,i){var n=ot(e,t,i);return n>i?i:n}(ae,te,le):ot(f?ae:ne,te,f?le:se);E[w]=ce,k[w]=ce-te}t.modifiersData[n]=k}},requiresIfExists:["offset"]};function Mt(e,t,i){void 0===i&&(i=!1);var n,s,o=$e(t),r=$e(t)&&function(e){var t=e.getBoundingClientRect(),i=Xe(t.width)/e.offsetWidth||1,n=Xe(t.height)/e.offsetHeight||1;return 1!==i||1!==n}(t),a=et(t),l=Ye(e,r),c={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(o||!o&&!i)&&(("body"!==Re(t)||wt(a))&&(c=(n=t)!==qe(n)&&$e(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:vt(n)),$e(t)?((h=Ye(t,!0)).x+=t.clientLeft,h.y+=t.clientTop):a&&(h.x=yt(a))),{x:l.left+c.scrollLeft-h.x,y:l.top+c.scrollTop-h.y,width:l.width,height:l.height}}function Ht(e){var t=new Map,i=new Set,n=[];function s(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!i.has(e)){var n=t.get(e);n&&s(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){i.has(e.name)||s(e)})),n}function Bt(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return[].concat(i).reduce((function(e,t){return e.replace(/%s/,t)}),e)}var Rt='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',qt=["name","enabled","phase","fn","effect","requires","options"],Wt="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",$t={placement:"bottom",modifiers:[],strategy:"absolute"};function zt(){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 Vt(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,n=void 0===i?[]:i,s=t.defaultOptions,o=void 0===s?$t:s;return function(e,t,i){void 0===i&&(i=o);var s,r,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},$t,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,h={state:a,setOptions:function(i){var s="function"==typeof i?i(a.options):i;d(),a.options=Object.assign({},o,a.options,s),a.scrollParents={reference:We(e)?At(e):e.contextElement?At(e.contextElement):[],popper:At(t)};var r,c,u,f,p,m=function(e){var t=Ht(e);return Be.reduce((function(e,i){return e.concat(t.filter((function(e){return e.phase===i})))}),[])}((f=[].concat(n,a.options.modifiers),p=f.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}),{}),Object.keys(p).map((function(e){return p[e]}))));if(a.orderedModifiers=m.filter((function(e){return e.enabled})),"production"!==process.env.NODE_ENV){(function(e){e.forEach((function(t){[].concat(Object.keys(t),qt).filter((function(e,t,i){return i.indexOf(e)===t})).forEach((function(i){switch(i){case"name":"string"!=typeof t.name&&console.error(Bt(Rt,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(Bt(Rt,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":Be.indexOf(t.phase)<0&&console.error(Bt(Rt,t.name,'"phase"',"either "+Be.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(Bt(Rt,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":null!=t.effect&&"function"!=typeof t.effect&&console.error(Bt(Rt,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":null==t.requires||Array.isArray(t.requires)||console.error(Bt(Rt,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(Bt(Rt,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+qt.map((function(e){return'"'+e+'"'})).join(", ")+'; but "'+i+'" was provided.')}t.requires&&t.requires.forEach((function(i){null==e.find((function(e){return e.name===i}))&&console.error(Bt('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),i,i))}))}))}))})((r=[].concat(m,a.options.modifiers),c=function(e){return e.name},u=new Set,r.filter((function(e){var t=c(e);if(!u.has(t))return u.add(t),!0})))),Fe(a.options.placement)===ve&&(a.orderedModifiers.find((function(e){return"flip"===e.name}))||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" ")));var g=Je(t);[g.marginTop,g.marginRight,g.marginBottom,g.marginLeft].some((function(e){return parseFloat(e)}))&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return a.orderedModifiers.forEach((function(e){var t=e.name,i=e.options,n=void 0===i?{}:i,s=e.effect;if("function"==typeof s){var o=s({state:a,name:t,instance:h,options:n});l.push(o||function(){})}})),h.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,i=e.popper;if(zt(t,i)){a.rects={reference:Mt(t,nt(i),"fixed"===a.options.strategy),popper:Qe(i)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0,s=0;s<a.orderedModifiers.length;s++){if("production"!==process.env.NODE_ENV&&(n+=1)>100){console.error("Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.");break}if(!0!==a.reset){var o=a.orderedModifiers[s],r=o.fn,l=o.options,d=void 0===l?{}:l,u=o.name;"function"==typeof r&&(a=r({state:a,options:d,name:u,instance:h})||a)}else a.reset=!1,s=-1}}else"production"!==process.env.NODE_ENV&&console.error(Wt)}},update:(s=function(){return new Promise((function(e){h.forceUpdate(),e(a)}))},function(){return r||(r=new Promise((function(e){Promise.resolve().then((function(){r=void 0,e(s())}))}))),r}),destroy:function(){d(),c=!0}};if(!zt(e,t))return"production"!==process.env.NODE_ENV&&console.error(Wt),h;function d(){l.forEach((function(e){return e()})),l=[]}return h.setOptions(i).then((function(e){!c&&i.onFirstUpdate&&i.onFirstUpdate(e)})),h}}var Ft=Vt(),Ut=Vt({defaultModifiers:[pt,Pt,ut,Ve]}),Kt=Vt({defaultModifiers:[pt,Pt,ut,Ve,It,St,jt,lt,Nt]}),Xt=Object.freeze({__proto__:null,popperGenerator:Vt,detectOverflow:xt,createPopperBase:Ft,createPopper:Kt,createPopperLite:Ut,top:me,bottom:ge,right:_e,left:be,auto:ve,basePlacements:ye,start:we,end:Ee,clippingParents:Ae,viewport:Oe,popper:Te,reference:Ce,variationPlacements:xe,placements:ke,beforeRead:Se,read:Le,afterRead:De,beforeMain:Ne,main:Ie,afterMain:Pe,beforeWrite:je,write:Me,afterWrite:He,modifierPhases:Be,applyStyles:Ve,arrow:lt,computeStyles:ut,eventListeners:pt,flip:St,hide:Nt,offset:It,popperOffsets:Pt,preventOverflow:jt});const Yt="dropdown",Qt="Escape",Gt="Space",Jt="ArrowUp",Zt="ArrowDown",ei=new RegExp("ArrowUp|ArrowDown|Escape"),ti="click.bs.dropdown.data-api",ii="keydown.bs.dropdown.data-api",ni="show",si='[data-bs-toggle="dropdown"]',oi=".dropdown-menu",ri=m()?"top-end":"top-start",ai=m()?"top-start":"top-end",li=m()?"bottom-end":"bottom-start",ci=m()?"bottom-start":"bottom-end",hi=m()?"left-start":"right-start",di=m()?"right-start":"left-start",ui={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},fi={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"};class pi extends B{constructor(e,t){super(e),this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar()}static get Default(){return ui}static get DefaultType(){return fi}static get NAME(){return Yt}toggle(){return this._isShown()?this.hide():this.show()}show(){if(c(this._element)||this._isShown(this._menu))return;const e={relatedTarget:this._element};if(j.trigger(this._element,"show.bs.dropdown",e).defaultPrevented)return;const t=pi.getParentFromElement(this._element);this._inNavbar?F.setDataAttribute(this._menu,"popper","none"):this._createPopper(t),"ontouchstart"in document.documentElement&&!t.closest(".navbar-nav")&&[].concat(...document.body.children).forEach((e=>j.on(e,"mouseover",d))),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(ni),this._element.classList.add(ni),j.trigger(this._element,"shown.bs.dropdown",e)}hide(){if(c(this._element)||!this._isShown(this._menu))return;const 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){j.trigger(this._element,"hide.bs.dropdown",e).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((e=>j.off(e,"mouseover",d))),this._popper&&this._popper.destroy(),this._menu.classList.remove(ni),this._element.classList.remove(ni),this._element.setAttribute("aria-expanded","false"),F.removeDataAttribute(this._menu,"popper"),j.trigger(this._element,"hidden.bs.dropdown",e))}_getConfig(e){if(e={...this.constructor.Default,...F.getDataAttributes(this._element),...e},a(Yt,e,this.constructor.DefaultType),"object"==typeof e.reference&&!o(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${Yt.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(e){if(void 0===Xt)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=e:o(this._config.reference)?t=r(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const i=this._getPopperConfig(),n=i.modifiers.find((e=>"applyStyles"===e.name&&!1===e.enabled));this._popper=Kt(t,this._menu,i),n&&F.setDataAttribute(this._menu,"popper","static")}_isShown(e=this._element){return e.classList.contains(ni)}_getMenuElement(){return U.next(this._element,oi)[0]}_getPlacement(){const e=this._element.parentNode;if(e.classList.contains("dropend"))return hi;if(e.classList.contains("dropstart"))return di;const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?ai:ri:t?ci:li}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return"static"===this._config.display&&(e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_selectMenuItem({key:e,target:t}){const i=U.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(l);i.length&&v(i,t,e===Zt,!i.includes(t)).focus()}static jQueryInterface(e){return this.each((function(){const t=pi.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}static clearMenus(e){if(e&&(2===e.button||"keyup"===e.type&&"Tab"!==e.key))return;const t=U.find(si);for(let i=0,n=t.length;i<n;i++){const n=pi.getInstance(t[i]);if(!n||!1===n._config.autoClose)continue;if(!n._isShown())continue;const s={relatedTarget:n._element};if(e){const t=e.composedPath(),i=t.includes(n._menu);if(t.includes(n._element)||"inside"===n._config.autoClose&&!i||"outside"===n._config.autoClose&&i)continue;if(n._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;"click"===e.type&&(s.clickEvent=e)}n._completeHide(s)}}static getParentFromElement(e){return n(e)||e.parentNode}static dataApiKeydownHandler(e){if(/input|textarea/i.test(e.target.tagName)?e.key===Gt||e.key!==Qt&&(e.key!==Zt&&e.key!==Jt||e.target.closest(oi)):!ei.test(e.key))return;const t=this.classList.contains(ni);if(!t&&e.key===Qt)return;if(e.preventDefault(),e.stopPropagation(),c(this))return;const i=this.matches(si)?this:U.prev(this,si)[0],n=pi.getOrCreateInstance(i);if(e.key!==Qt)return e.key===Jt||e.key===Zt?(t||n.show(),void n._selectMenuItem(e)):void(t&&e.key!==Gt||pi.clearMenus());n.hide()}}j.on(document,ii,si,pi.dataApiKeydownHandler),j.on(document,ii,oi,pi.dataApiKeydownHandler),j.on(document,ti,pi.clearMenus),j.on(document,"keyup.bs.dropdown.data-api",pi.clearMenus),j.on(document,ti,si,(function(e){e.preventDefault(),pi.getOrCreateInstance(this).toggle()})),g(pi);const mi={},gi={},_i="gallery",bi=".carousel-item.active";class vi extends B{constructor(e,t){super(e),this.carousel=U.findOne(".carousel",this.element),this.carouselPager=U.findOne(".carousel-pager span",this.element),this.carouselStartIndex=e.getAttribute("data-gallery-start"),this.carouselActiveItem=U.find(".carousel-item",this.carousel)[this.carouselStartIndex],this.carouselPager.textContent=Number(this.carouselStartIndex)+1,this.modal=U.findOne(".modal",this.element),this.config=this.getConfig(t),this.addEventListeners(),this.carouselLazyLoad(this.carouselActiveItem)}static get NAME(){return _i}setSlide(e){const t=U.findOne(bi,this.carousel),i=e.relatedTarget;this.carouselLazyLoad(i),this.carouselPager.textContent=e.to+1,this.stopVideo(t)}stopSlide(){const e=U.findOne(bi,this.carousel);this.stopVideo(e)}stopVideo(e){const t=U.findOne("iframe",e),i=U.findOne("video",e);t?t.src=t.dataset.src:i&&i.pause()}carouselLazyLoad(e){const t=U.findOne("[data-src]",e);t&&!t.src&&(t.src=t.dataset.src)}getConfig(e){return e={...mi,...F.getDataAttributes(this.element),..."object"==typeof e?e:{}},a(_i,e,gi),e}addEventListeners(){j.on(this.carousel,"slide.bs.carousel",(e=>this.setSlide(e))),j.on(this.modal,"hide.bs.modal",(e=>this.stopSlide(e)))}static get Default(){return mi}static galleryInterface(e,t){const i=vi.getOrCreateInstance(e,t);let{_config:n}=i;"object"==typeof t&&(n={...n,...t})}static jQueryInterface(e){return this.each((function(){const t=vi.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}j.on(document,"click.bs.gallery.data-api",".bcl-gallery__grid a, .bcl-gallery__mobile-view-more",(e=>{const t=e.target.closest("div.bcl-gallery"),i=e.target.parentNode.getAttribute("data-bs-slide-to");t.dataset.galleryStart=i,vi.galleryInterface(t,vi.getInstance(t))})),g(vi);const yi=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",wi=".sticky-top";class Ei{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,"paddingRight",(t=>t+e)),this._setElementAttributes(yi,"paddingRight",(t=>t+e)),this._setElementAttributes(wi,"marginRight",(t=>t-e))}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,i){const n=this.getWidth();this._applyManipulationCallback(e,(e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+n)return;this._saveInitialAttribute(e,t);const s=window.getComputedStyle(e)[t];e.style[t]=`${i(Number.parseFloat(s))}px`}))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(yi,"paddingRight"),this._resetElementAttributes(wi,"marginRight")}_saveInitialAttribute(e,t){const i=e.style[t];i&&F.setDataAttribute(e,t,i)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,(e=>{const i=F.getDataAttribute(e,t);void 0===i?e.style.removeProperty(t):(F.removeDataAttribute(e,t),e.style[t]=i)}))}_applyManipulationCallback(e,t){o(e)?t(e):U.find(e,this._element).forEach(t)}isOverflowing(){return this.getWidth()>0}}const Ai={className:"modal-backdrop",isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},Oi={className:"string",isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"},Ti="show",Ci="mousedown.bs.backdrop";class xi{constructor(e){this._config=this._getConfig(e),this._isAppended=!1,this._element=null}show(e){this._config.isVisible?(this._append(),this._config.isAnimated&&u(this._getElement()),this._getElement().classList.add(Ti),this._emulateAnimation((()=>{_(e)}))):_(e)}hide(e){this._config.isVisible?(this._getElement().classList.remove(Ti),this._emulateAnimation((()=>{this.dispose(),_(e)}))):_(e)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_getConfig(e){return(e={...Ai,..."object"==typeof e?e:{}}).rootElement=r(e.rootElement),a("backdrop",e,Oi),e}_append(){this._isAppended||(this._config.rootElement.append(this._getElement()),j.on(this._getElement(),Ci,(()=>{_(this._config.clickCallback)})),this._isAppended=!0)}dispose(){this._isAppended&&(j.off(this._element,Ci),this._element.remove(),this._isAppended=!1)}_emulateAnimation(e){b(e,this._getElement(),this._config.isAnimated)}}const ki={trapElement:null,autofocus:!0},Si={trapElement:"element",autofocus:"boolean"},Li=".bs.focustrap",Di="backward";class Ni{constructor(e){this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}activate(){const{trapElement:e,autofocus:t}=this._config;this._isActive||(t&&e.focus(),j.off(document,Li),j.on(document,"focusin.bs.focustrap",(e=>this._handleFocusin(e))),j.on(document,"keydown.tab.bs.focustrap",(e=>this._handleKeydown(e))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,j.off(document,Li))}_handleFocusin(e){const{target:t}=e,{trapElement:i}=this._config;if(t===document||t===i||i.contains(t))return;const n=U.focusableChildren(i);0===n.length?i.focus():this._lastTabNavDirection===Di?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?Di:"forward")}_getConfig(e){return e={...ki,..."object"==typeof e?e:{}},a("focustrap",e,Si),e}}const Ii="modal",Pi="Escape",ji={backdrop:!0,keyboard:!0,focus:!0},Mi={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},Hi="hidden.bs.modal",Bi="show.bs.modal",Ri="resize.bs.modal",qi="click.dismiss.bs.modal",Wi="keydown.dismiss.bs.modal",$i="mousedown.dismiss.bs.modal",zi="modal-open",Vi="show",Fi="modal-static";class Ui extends B{constructor(e,t){super(e),this._config=this._getConfig(t),this._dialog=U.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 ji}static get NAME(){return Ii}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||j.trigger(this._element,Bi,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add(zi),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),j.on(this._dialog,$i,(()=>{j.one(this._element,"mouseup.dismiss.bs.modal",(e=>{e.target===this._element&&(this._ignoreBackdropClick=!0)}))})),this._showBackdrop((()=>this._showElement(e))))}hide(){if(!this._isShown||this._isTransitioning)return;if(j.trigger(this._element,"hide.bs.modal").defaultPrevented)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),this._focustrap.deactivate(),this._element.classList.remove(Vi),j.off(this._element,qi),j.off(this._dialog,$i),this._queueCallback((()=>this._hideModal()),this._element,e)}dispose(){[window,this._dialog].forEach((e=>j.off(e,".bs.modal"))),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new xi({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Ni({trapElement:this._element})}_getConfig(e){return e={...ji,...F.getDataAttributes(this._element),..."object"==typeof e?e:{}},a(Ii,e,Mi),e}_showElement(e){const t=this._isAnimated(),i=U.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,i&&(i.scrollTop=0),t&&u(this._element),this._element.classList.add(Vi),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,j.trigger(this._element,"shown.bs.modal",{relatedTarget:e})}),this._dialog,t)}_setEscapeEvent(){this._isShown?j.on(this._element,Wi,(e=>{this._config.keyboard&&e.key===Pi?(e.preventDefault(),this.hide()):this._config.keyboard||e.key!==Pi||this._triggerBackdropTransition()})):j.off(this._element,Wi)}_setResizeEvent(){this._isShown?j.on(window,Ri,(()=>this._adjustDialog())):j.off(window,Ri)}_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(zi),this._resetAdjustments(),this._scrollBar.reset(),j.trigger(this._element,Hi)}))}_showBackdrop(e){j.on(this._element,qi,(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(e)}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(j.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented)return;const{classList:e,scrollHeight:t,style:i}=this._element,n=t>document.documentElement.clientHeight;!n&&"hidden"===i.overflowY||e.contains(Fi)||(n||(i.overflowY="hidden"),e.add(Fi),this._queueCallback((()=>{e.remove(Fi),n||this._queueCallback((()=>{i.overflowY=""}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),i=t>0;(!i&&e&&!m()||i&&!e&&m())&&(this._element.style.paddingLeft=`${t}px`),(i&&!e&&!m()||!i&&e&&m())&&(this._element.style.paddingRight=`${t}px`)}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each((function(){const i=Ui.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e](t)}}))}}j.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',(function(e){const t=n(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),j.one(t,Bi,(e=>{e.defaultPrevented||j.one(t,Hi,(()=>{l(this)&&this.focus()}))}));const i=U.findOne(".modal.show");i&&Ui.getInstance(i).hide(),Ui.getOrCreateInstance(t).toggle(this)})),R(Ui),g(Ui);const Ki="offcanvas",Xi={backdrop:!0,keyboard:!0,scroll:!1},Yi={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},Qi="show",Gi=".offcanvas.show",Ji="hidden.bs.offcanvas";class Zi extends B{constructor(e,t){super(e),this._config=this._getConfig(t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get NAME(){return Ki}static get Default(){return Xi}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||j.trigger(this._element,"show.bs.offcanvas",{relatedTarget:e}).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(Qi),this._queueCallback((()=>{this._config.scroll||this._focustrap.activate(),j.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:e})}),this._element,!0))}hide(){this._isShown&&(j.trigger(this._element,"hide.bs.offcanvas").defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.remove(Qi),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(),j.trigger(this._element,Ji)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_getConfig(e){return e={...Xi,...F.getDataAttributes(this._element),..."object"==typeof e?e:{}},a(Ki,e,Yi),e}_initializeBackDrop(){return new xi({className:"offcanvas-backdrop",isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_initializeFocusTrap(){return new Ni({trapElement:this._element})}_addEventListeners(){j.on(this._element,"keydown.dismiss.bs.offcanvas",(e=>{this._config.keyboard&&"Escape"===e.key&&this.hide()}))}static jQueryInterface(e){return this.each((function(){const t=Zi.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}j.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',(function(e){const t=n(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),c(this))return;j.one(t,Ji,(()=>{l(this)&&this.focus()}));const i=U.findOne(Gi);i&&i!==t&&Zi.getInstance(i).hide(),Zi.getOrCreateInstance(t).toggle(this)})),j.on(window,"load.bs.offcanvas.data-api",(()=>U.find(Gi).forEach((e=>Zi.getOrCreateInstance(e).show())))),R(Zi),g(Zi);const en=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),tn=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,nn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,sn=(e,t)=>{const i=e.nodeName.toLowerCase();if(t.includes(i))return!en.has(i)||Boolean(tn.test(e.nodeValue)||nn.test(e.nodeValue));const n=t.filter((e=>e instanceof RegExp));for(let e=0,t=n.length;e<t;e++)if(n[e].test(i))return!0;return!1};function on(e,t,i){if(!e.length)return e;if(i&&"function"==typeof i)return i(e);const n=(new window.DOMParser).parseFromString(e,"text/html"),s=[].concat(...n.body.querySelectorAll("*"));for(let e=0,i=s.length;e<i;e++){const i=s[e],n=i.nodeName.toLowerCase();if(!Object.keys(t).includes(n)){i.remove();continue}const o=[].concat(...i.attributes),r=[].concat(t["*"]||[],t[n]||[]);o.forEach((e=>{sn(e,r)||i.removeAttribute(e.nodeName)}))}return n.body.innerHTML}const rn="tooltip",an=new Set(["sanitize","allowList","sanitizeFn"]),ln={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)"},cn={AUTO:"auto",TOP:"top",RIGHT:m()?"left":"right",BOTTOM:"bottom",LEFT:m()?"right":"left"},hn={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},dn={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},un="fade",fn="show",pn="show",mn="out",gn=".tooltip-inner",_n=".modal",bn="hide.bs.modal",vn="hover",yn="focus";class wn extends B{constructor(e,t){if(void 0===Xt)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this._config=this._getConfig(t),this.tip=null,this._setListeners()}static get Default(){return hn}static get NAME(){return rn}static get Event(){return dn}static get DefaultType(){return ln}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(e){if(this._isEnabled)if(e){const t=this._initializeOnDelegatedTarget(e);t._activeTrigger.click=!t._activeTrigger.click,t._isWithActiveTrigger()?t._enter(null,t):t._leave(null,t)}else{if(this.getTipElement().classList.contains(fn))return void this._leave(null,this);this._enter(null,this)}}dispose(){clearTimeout(this._timeout),j.off(this._element.closest(_n),bn,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 e=j.trigger(this._element,this.constructor.Event.SHOW),t=h(this._element),i=null===t?this._element.ownerDocument.documentElement.contains(this._element):t.contains(this._element);if(e.defaultPrevented||!i)return;"tooltip"===this.constructor.NAME&&this.tip&&this.getTitle()!==this.tip.querySelector(gn).innerHTML&&(this._disposePopper(),this.tip.remove(),this.tip=null);const n=this.getTipElement(),s=(e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME);n.setAttribute("id",s),this._element.setAttribute("aria-describedby",s),this._config.animation&&n.classList.add(un);const o="function"==typeof this._config.placement?this._config.placement.call(this,n,this._element):this._config.placement,r=this._getAttachment(o);this._addAttachmentClass(r);const{container:a}=this._config;H.set(n,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(a.append(n),j.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=Kt(this._element,n,this._getPopperConfig(r)),n.classList.add(fn);const l=this._resolvePossibleFunction(this._config.customClass);l&&n.classList.add(...l.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((e=>{j.on(e,"mouseover",d)}));const c=this.tip.classList.contains(un);this._queueCallback((()=>{const e=this._hoverState;this._hoverState=null,j.trigger(this._element,this.constructor.Event.SHOWN),e===mn&&this._leave(null,this)}),this.tip,c)}hide(){if(!this._popper)return;const e=this.getTipElement();if(j.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented)return;e.classList.remove(fn),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((e=>j.off(e,"mouseover",d))),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1;const t=this.tip.classList.contains(un);this._queueCallback((()=>{this._isWithActiveTrigger()||(this._hoverState!==pn&&e.remove(),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),j.trigger(this._element,this.constructor.Event.HIDDEN),this._disposePopper())}),this.tip,t),this._hoverState=""}update(){null!==this._popper&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){if(this.tip)return this.tip;const e=document.createElement("div");e.innerHTML=this._config.template;const t=e.children[0];return this.setContent(t),t.classList.remove(un,fn),this.tip=t,this.tip}setContent(e){this._sanitizeAndSetContent(e,this.getTitle(),gn)}_sanitizeAndSetContent(e,t,i){const n=U.findOne(i,e);t||!n?this.setElementContent(n,t):n.remove()}setElementContent(e,t){if(null!==e)return o(t)?(t=r(t),void(this._config.html?t.parentNode!==e&&(e.innerHTML="",e.append(t)):e.textContent=t.textContent)):void(this._config.html?(this._config.sanitize&&(t=on(t,this._config.allowList,this._config.sanitizeFn)),e.innerHTML=t):e.textContent=t)}getTitle(){const e=this._element.getAttribute("data-bs-original-title")||this._config.title;return this._resolvePossibleFunction(e)}updateAttachment(e){return"right"===e?"end":"left"===e?"start":e}_initializeOnDelegatedTarget(e,t){return t||this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return"function"==typeof e?e.call(this._element):e}_getPopperConfig(e){const t={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:"onChange",enabled:!0,phase:"afterWrite",fn:e=>this._handlePopperPlacementChange(e)}],onFirstUpdate:e=>{e.options.placement!==e.placement&&this._handlePopperPlacementChange(e)}};return{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_addAttachmentClass(e){this.getTipElement().classList.add(`${this._getBasicClassPrefix()}-${this.updateAttachment(e)}`)}_getAttachment(e){return cn[e.toUpperCase()]}_setListeners(){this._config.trigger.split(" ").forEach((e=>{if("click"===e)j.on(this._element,this.constructor.Event.CLICK,this._config.selector,(e=>this.toggle(e)));else if("manual"!==e){const t=e===vn?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,i=e===vn?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;j.on(this._element,t,this._config.selector,(e=>this._enter(e))),j.on(this._element,i,this._config.selector,(e=>this._leave(e)))}})),this._hideModalHandler=()=>{this._element&&this.hide()},j.on(this._element.closest(_n),bn,this._hideModalHandler),this._config.selector?this._config={...this._config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const e=this._element.getAttribute("title"),t=typeof this._element.getAttribute("data-bs-original-title");(e||"string"!==t)&&(this._element.setAttribute("data-bs-original-title",e||""),!e||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",e),this._element.setAttribute("title",""))}_enter(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusin"===e.type?yn:vn]=!0),t.getTipElement().classList.contains(fn)||t._hoverState===pn?t._hoverState=pn:(clearTimeout(t._timeout),t._hoverState=pn,t._config.delay&&t._config.delay.show?t._timeout=setTimeout((()=>{t._hoverState===pn&&t.show()}),t._config.delay.show):t.show())}_leave(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusout"===e.type?yn:vn]=t._element.contains(e.relatedTarget)),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=mn,t._config.delay&&t._config.delay.hide?t._timeout=setTimeout((()=>{t._hoverState===mn&&t.hide()}),t._config.delay.hide):t.hide())}_isWithActiveTrigger(){for(const e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1}_getConfig(e){const t=F.getDataAttributes(this._element);return Object.keys(t).forEach((e=>{an.has(e)&&delete t[e]})),(e={...this.constructor.Default,...t,..."object"==typeof e&&e?e:{}}).container=!1===e.container?document.body:r(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()),a(rn,e,this.constructor.DefaultType),e.sanitize&&(e.template=on(e.template,e.allowList,e.sanitizeFn)),e}_getDelegateConfig(){const e={};for(const t in this._config)this.constructor.Default[t]!==this._config[t]&&(e[t]=this._config[t]);return e}_cleanTipClass(){const e=this.getTipElement(),t=new RegExp(`(^|\\s)${this._getBasicClassPrefix()}\\S+`,"g"),i=e.getAttribute("class").match(t);null!==i&&i.length>0&&i.map((e=>e.trim())).forEach((t=>e.classList.remove(t)))}_getBasicClassPrefix(){return"bs-tooltip"}_handlePopperPlacementChange(e){const{state:t}=e;t&&(this.tip=t.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(t.placement)))}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jQueryInterface(e){return this.each((function(){const t=wn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}g(wn);const En={...wn.Default,placement:"right",offset:[0,8],trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'},An={...wn.DefaultType,content:"(string|element|function)"},On={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"};class Tn extends wn{static get Default(){return En}static get NAME(){return"popover"}static get Event(){return On}static get DefaultType(){return An}isWithContent(){return this.getTitle()||this._getContent()}setContent(e){this._sanitizeAndSetContent(e,this.getTitle(),".popover-header"),this._sanitizeAndSetContent(e,this._getContent(),".popover-body")}_getContent(){return this._resolvePossibleFunction(this._config.content)}_getBasicClassPrefix(){return"bs-popover"}static jQueryInterface(e){return this.each((function(){const t=Tn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}g(Tn);const Cn="scrollspy",xn={offset:10,method:"auto",target:""},kn={offset:"number",method:"string",target:"(string|element)"},Sn="active",Ln=".nav-link, .list-group-item, .dropdown-item",Dn="position";class Nn extends B{constructor(e,t){super(e),this._scrollElement="BODY"===this._element.tagName?window:this._element,this._config=this._getConfig(t),this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,j.on(this._scrollElement,"scroll.bs.scrollspy",(()=>this._process())),this.refresh(),this._process()}static get Default(){return xn}static get NAME(){return Cn}refresh(){const e=this._scrollElement===this._scrollElement.window?"offset":Dn,t="auto"===this._config.method?e:this._config.method,n=t===Dn?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),U.find(Ln,this._config.target).map((e=>{const s=i(e),o=s?U.findOne(s):null;if(o){const e=o.getBoundingClientRect();if(e.width||e.height)return[F[t](o).top+n,s]}return null})).filter((e=>e)).sort(((e,t)=>e[0]-t[0])).forEach((e=>{this._offsets.push(e[0]),this._targets.push(e[1])}))}dispose(){j.off(this._scrollElement,".bs.scrollspy"),super.dispose()}_getConfig(e){return(e={...xn,...F.getDataAttributes(this._element),..."object"==typeof e&&e?e:{}}).target=r(e.target)||document.documentElement,a(Cn,e,kn),e}_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 e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),i=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=i){const e=this._targets[this._targets.length-1];this._activeTarget!==e&&this._activate(e)}else{if(this._activeTarget&&e<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(let t=this._offsets.length;t--;)this._activeTarget!==this._targets[t]&&e>=this._offsets[t]&&(void 0===this._offsets[t+1]||e<this._offsets[t+1])&&this._activate(this._targets[t])}}_activate(e){this._activeTarget=e,this._clear();const t=Ln.split(",").map((t=>`${t}[data-bs-target="${e}"],${t}[href="${e}"]`)),i=U.findOne(t.join(","),this._config.target);i.classList.add(Sn),i.classList.contains("dropdown-item")?U.findOne(".dropdown-toggle",i.closest(".dropdown")).classList.add(Sn):U.parents(i,".nav, .list-group").forEach((e=>{U.prev(e,".nav-link, .list-group-item").forEach((e=>e.classList.add(Sn))),U.prev(e,".nav-item").forEach((e=>{U.children(e,".nav-link").forEach((e=>e.classList.add(Sn)))}))})),j.trigger(this._scrollElement,"activate.bs.scrollspy",{relatedTarget:e})}_clear(){U.find(Ln,this._config.target).filter((e=>e.classList.contains(Sn))).forEach((e=>e.classList.remove(Sn)))}static jQueryInterface(e){return this.each((function(){const t=Nn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}j.on(window,"load.bs.scrollspy.data-api",(()=>{U.find('[data-bs-spy="scroll"]').forEach((e=>new Nn(e)))})),g(Nn);const In="active",Pn="fade",jn="show",Mn=".active",Hn=":scope > li > .active";class Bn extends B{static get NAME(){return"tab"}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(In))return;let e;const t=n(this._element),i=this._element.closest(".nav, .list-group");if(i){const t="UL"===i.nodeName||"OL"===i.nodeName?Hn:Mn;e=U.find(t,i),e=e[e.length-1]}const s=e?j.trigger(e,"hide.bs.tab",{relatedTarget:this._element}):null;if(j.trigger(this._element,"show.bs.tab",{relatedTarget:e}).defaultPrevented||null!==s&&s.defaultPrevented)return;this._activate(this._element,i);const o=()=>{j.trigger(e,"hidden.bs.tab",{relatedTarget:this._element}),j.trigger(this._element,"shown.bs.tab",{relatedTarget:e})};t?this._activate(t,t.parentNode,o):o()}_activate(e,t,i){const n=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?U.children(t,Mn):U.find(Hn,t))[0],s=i&&n&&n.classList.contains(Pn),o=()=>this._transitionComplete(e,n,i);n&&s?(n.classList.remove(jn),this._queueCallback(o,e,!0)):o()}_transitionComplete(e,t,i){if(t){t.classList.remove(In);const e=U.findOne(":scope > .dropdown-menu .active",t.parentNode);e&&e.classList.remove(In),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}e.classList.add(In),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),u(e),e.classList.contains(Pn)&&e.classList.add(jn);let n=e.parentNode;if(n&&"LI"===n.nodeName&&(n=n.parentNode),n&&n.classList.contains("dropdown-menu")){const t=e.closest(".dropdown");t&&U.find(".dropdown-toggle",t).forEach((e=>e.classList.add(In))),e.setAttribute("aria-expanded",!0)}i&&i()}static jQueryInterface(e){return this.each((function(){const t=Bn.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}j.on(document,"click.bs.tab.data-api",'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',(function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),c(this)||Bn.getOrCreateInstance(this).show()})),g(Bn);const Rn="toast",qn="hide",Wn="show",$n="showing",zn={animation:"boolean",autohide:"boolean",delay:"number"},Vn={animation:!0,autohide:!0,delay:5e3};class Fn extends B{constructor(e,t){super(e),this._config=this._getConfig(t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get DefaultType(){return zn}static get Default(){return Vn}static get NAME(){return Rn}show(){j.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(qn),u(this._element),this._element.classList.add(Wn),this._element.classList.add($n),this._queueCallback((()=>{this._element.classList.remove($n),j.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this._element.classList.contains(Wn)&&(j.trigger(this._element,"hide.bs.toast").defaultPrevented||(this._element.classList.add($n),this._queueCallback((()=>{this._element.classList.add(qn),this._element.classList.remove($n),this._element.classList.remove(Wn),j.trigger(this._element,"hidden.bs.toast")}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this._element.classList.contains(Wn)&&this._element.classList.remove(Wn),super.dispose()}_getConfig(e){return e={...Vn,...F.getDataAttributes(this._element),..."object"==typeof e&&e?e:{}},a(Rn,e,this.constructor.DefaultType),e}_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}if(t)return void this._clearTimeout();const i=e.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){j.on(this._element,"mouseover.bs.toast",(e=>this._onInteraction(e,!0))),j.on(this._element,"mouseout.bs.toast",(e=>this._onInteraction(e,!1))),j.on(this._element,"focusin.bs.toast",(e=>this._onInteraction(e,!0))),j.on(this._element,"focusout.bs.toast",(e=>this._onInteraction(e,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){const t=Fn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}return R(Fn),g(Fn),{Alert:q,Button:$,Carousel:se,Collapse:pe,Dropdown:pi,Gallery:vi,Modal:Ui,Offcanvas:Zi,Popover:Tn,ScrollSpy:Nn,Tab:Bn,Toast:Fn,Tooltip:wn}}));
1
+ !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 e="transitionend",t=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let i=e.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),t=i&&"#"!==i?i.trim():null}return t},i=e=>{const i=t(e);return i&&document.querySelector(i)?i:null},n=e=>{const i=t(e);return i?document.querySelector(i):null},s=t=>{t.dispatchEvent(new Event(e))},o=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),r=e=>o(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(e):null,a=e=>{if(!o(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),i=e.closest("details:not([open])");if(!i)return t;if(i!==e){const t=e.closest("summary");if(t&&t.parentNode!==i)return!1;if(null===t)return!1}return t},l=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),c=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?c(e.parentNode):null},h=()=>{},d=e=>{e.offsetHeight},u=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,f=[],p=()=>"rtl"===document.documentElement.dir,m=e=>{var t;t=()=>{const t=u();if(t){const i=e.NAME,n=t.fn[i];t.fn[i]=e.jQueryInterface,t.fn[i].Constructor=e,t.fn[i].noConflict=()=>(t.fn[i]=n,e.jQueryInterface)}},"loading"===document.readyState?(f.length||document.addEventListener("DOMContentLoaded",(()=>{for(const e of f)e()})),f.push(t)):t()},g=e=>{"function"==typeof e&&e()},_=(t,i,n=!0)=>{if(!n)return void g(t);const o=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:i}=window.getComputedStyle(e);const n=Number.parseFloat(t),s=Number.parseFloat(i);return n||s?(t=t.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(i))):0})(i)+5;let r=!1;const a=({target:n})=>{n===i&&(r=!0,i.removeEventListener(e,a),g(t))};i.addEventListener(e,a),setTimeout((()=>{r||s(i)}),o)},b=(e,t,i,n)=>{const 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))])},v=/[^.]*(?=\..*)\.|.*/,y=/\..*/,w=/::\d+$/,E={};let A=1;const T={mouseenter:"mouseover",mouseleave:"mouseout"},C=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 O(e,t){return t&&`${t}::${A++}`||e.uidEvent||A++}function x(e){const t=O(e);return e.uidEvent=t,E[t]=E[t]||{},E[t]}function k(e,t,i=null){return Object.values(e).find((e=>e.callable===t&&e.delegationSelector===i))}function L(e,t,i){const n="string"==typeof t,s=n?i:t||i;let o=N(e);return C.has(o)||(o=e),[n,s,o]}function S(e,t,i,n,s){if("string"!=typeof t||!e)return;let[o,r,a]=L(t,i,n);if(t in T){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};r=e(r)}const l=x(e),c=l[a]||(l[a]={}),h=k(c,r,o?i:null);if(h)return void(h.oneOff=h.oneOff&&s);const d=O(r,t.replace(v,"")),u=o?function(e,t,i){return function n(s){const o=e.querySelectorAll(t);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(const a of o)if(a===r)return j(s,{delegateTarget:r}),n.oneOff&&P.off(e,s.type,t,i),i.apply(r,[s])}}(e,i,r):function(e,t){return function i(n){return j(n,{delegateTarget:e}),i.oneOff&&P.off(e,n.type,t),t.apply(e,[n])}}(e,r);u.delegationSelector=o?i:null,u.callable=r,u.oneOff=s,u.uidEvent=d,c[d]=u,e.addEventListener(a,u,o)}function D(e,t,i,n,s){const o=k(t[i],n,s);o&&(e.removeEventListener(i,o,Boolean(s)),delete t[i][o.uidEvent])}function I(e,t,i,n){const s=t[i]||{};for(const o of Object.keys(s))if(o.includes(n)){const n=s[o];D(e,t,i,n.callable,n.delegationSelector)}}function N(e){return e=e.replace(y,""),T[e]||e}const P={on(e,t,i,n){S(e,t,i,n,!1)},one(e,t,i,n){S(e,t,i,n,!0)},off(e,t,i,n){if("string"!=typeof t||!e)return;const[s,o,r]=L(t,i,n),a=r!==t,l=x(e),c=l[r]||{},h=t.startsWith(".");if(void 0===o){if(h)for(const i of Object.keys(l))I(e,l,i,t.slice(1));for(const i of Object.keys(c)){const n=i.replace(w,"");if(!a||t.includes(n)){const t=c[i];D(e,l,r,t.callable,t.delegationSelector)}}}else{if(!Object.keys(c).length)return;D(e,l,r,o,s?i:null)}},trigger(e,t,i){if("string"!=typeof t||!e)return null;const n=u();let s=null,o=!0,r=!0,a=!1;t!==N(t)&&n&&(s=n.Event(t,i),n(e).trigger(s),o=!s.isPropagationStopped(),r=!s.isImmediatePropagationStopped(),a=s.isDefaultPrevented());let l=new Event(t,{bubbles:o,cancelable:!0});return l=j(l,i),a&&l.preventDefault(),r&&e.dispatchEvent(l),l.defaultPrevented&&s&&s.preventDefault(),l}};function j(e,t){for(const[i,n]of Object.entries(t||{}))try{e[i]=n}catch{Object.defineProperty(e,i,{configurable:!0,get:()=>n})}return e}const M=new Map;var H={set(e,t,i){M.has(e)||M.set(e,new Map);const n=M.get(e);n.has(t)||0===n.size?n.set(t,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(e,t)=>M.has(e)&&M.get(e).get(t)||null,remove(e,t){if(!M.has(e))return;const i=M.get(e);i.delete(t),0===i.size&&M.delete(e)}};function q(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function $(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}const W={setDataAttribute(e,t,i){e.setAttribute(`data-bs-${$(t)}`,i)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${$(t)}`)},getDataAttributes(e){if(!e)return{};const t={},i=Object.keys(e.dataset).filter((e=>e.startsWith("bs")&&!e.startsWith("bsConfig")));for(const n of i){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),t[i]=q(e.dataset[n])}return t},getDataAttribute:(e,t)=>q(e.getAttribute(`data-bs-${$(t)}`))};class B{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){const i=o(t)?W.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...o(t)?W.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const n of Object.keys(t)){const s=t[n],r=e[n],a=o(r)?"element":null==(i=r)?`${i}`:Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(s).test(a))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${a}" but expected type "${s}".`)}var i}}class F extends B{constructor(e,t){super(),(e=r(e))&&(this._element=e,this._config=this._getConfig(t),H.set(this._element,this.constructor.DATA_KEY,this))}dispose(){H.remove(this._element,this.constructor.DATA_KEY),P.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,i=!0){_(e,t,i)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return H.get(r(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.2.0"}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 z=(e,t="hide")=>{const i=`click.dismiss${e.EVENT_KEY}`,s=e.NAME;P.on(document,i,`[data-bs-dismiss="${s}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),l(this))return;const o=n(this)||this.closest(`.${s}`);e.getOrCreateInstance(o)[t]()}))};class R extends F{static get NAME(){return"alert"}close(){if(P.trigger(this._element,"close.bs.alert").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(),P.trigger(this._element,"closed.bs.alert"),this.dispose()}static jQueryInterface(e){return this.each((function(){const t=R.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}z(R,"close"),m(R);const V='[data-bs-toggle="button"]';class K extends F{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each((function(){const t=K.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}P.on(document,"click.bs.button.data-api",V,(e=>{e.preventDefault();const t=e.target.closest(V);K.getOrCreateInstance(t).toggle()})),m(K);const Q={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const 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){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(",");return this.find(t,e).filter((e=>!l(e)&&a(e)))}},X={endCallback:null,leftCallback:null,rightCallback:null},Y={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class U extends B{constructor(e,t){super(),this._element=e,e&&U.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return X}static get DefaultType(){return Y}static get NAME(){return"swipe"}dispose(){P.off(this._element,".bs.swipe")}_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(),g(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=40)return;const t=e/this._deltaX;this._deltaX=0,t&&g(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(P.on(this._element,"pointerdown.bs.swipe",(e=>this._start(e))),P.on(this._element,"pointerup.bs.swipe",(e=>this._end(e))),this._element.classList.add("pointer-event")):(P.on(this._element,"touchstart.bs.swipe",(e=>this._start(e))),P.on(this._element,"touchmove.bs.swipe",(e=>this._move(e))),P.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||navigator.maxTouchPoints>0}}const G="next",J="prev",Z="left",ee="right",te="slid.bs.carousel",ie="carousel",ne="active",se={ArrowLeft:ee,ArrowRight:Z},oe={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},re={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ae extends F{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Q.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===ie&&this.cycle()}static get Default(){return oe}static get DefaultType(){return re}static get NAME(){return"carousel"}next(){this._slide(G)}nextWhenVisible(){!document.hidden&&a(this._element)&&this.next()}prev(){this._slide(J)}pause(){this._isSliding&&s(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?P.one(this._element,te,(()=>this.cycle())):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void P.one(this._element,te,(()=>this.to(e)));const i=this._getItemIndex(this._getActive());if(i===e)return;const n=e>i?G:J;this._slide(n,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&P.on(this._element,"keydown.bs.carousel",(e=>this._keydown(e))),"hover"===this._config.pause&&(P.on(this._element,"mouseenter.bs.carousel",(()=>this.pause())),P.on(this._element,"mouseleave.bs.carousel",(()=>this._maybeEnableCycle()))),this._config.touch&&U.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const e of Q.find(".carousel-item img",this._element))P.on(e,"dragstart.bs.carousel",(e=>e.preventDefault()));const e={leftCallback:()=>this._slide(this._directionToOrder(Z)),rightCallback:()=>this._slide(this._directionToOrder(ee)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new U(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=se[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=Q.findOne(".active",this._indicatorsElement);t.classList.remove(ne),t.removeAttribute("aria-current");const i=Q.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);i&&(i.classList.add(ne),i.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const i=this._getActive(),n=e===G,s=t||b(this._getItems(),i,n,this._config.wrap);if(s===i)return;const o=this._getItemIndex(s),r=t=>P.trigger(this._element,t,{relatedTarget:s,direction:this._orderToDirection(e),from:this._getItemIndex(i),to:o});if(r("slide.bs.carousel").defaultPrevented)return;if(!i||!s)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=s;const l=n?"carousel-item-start":"carousel-item-end",c=n?"carousel-item-next":"carousel-item-prev";s.classList.add(c),d(s),i.classList.add(l),s.classList.add(l),this._queueCallback((()=>{s.classList.remove(l,c),s.classList.add(ne),i.classList.remove(ne,c,l),this._isSliding=!1,r(te)}),i,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return Q.findOne(".active.carousel-item",this._element)}_getItems(){return Q.find(".carousel-item",this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return p()?e===Z?J:G:e===Z?G:J}_orderToDirection(e){return p()?e===J?Z:ee:e===J?ee:Z}static jQueryInterface(e){return this.each((function(){const t=ae.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}else t.to(e)}))}}P.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",(function(e){const t=n(this);if(!t||!t.classList.contains(ie))return;e.preventDefault();const i=ae.getOrCreateInstance(t),s=this.getAttribute("data-bs-slide-to");return s?(i.to(s),void i._maybeEnableCycle()):"next"===W.getDataAttribute(this,"slide")?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())})),P.on(window,"load.bs.carousel.data-api",(()=>{const e=Q.find('[data-bs-ride="carousel"]');for(const t of e)ae.getOrCreateInstance(t)})),m(ae);const le="show",ce="collapse",he="collapsing",de='[data-bs-toggle="collapse"]',ue={parent:null,toggle:!0},fe={parent:"(null|element)",toggle:"boolean"};class pe extends F{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const n=Q.find(de);for(const e of n){const t=i(e),n=Q.find(t).filter((e=>e===this._element));null!==t&&n.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return ue}static get DefaultType(){return fe}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((e=>e!==this._element)).map((e=>pe.getOrCreateInstance(e,{toggle:!1})))),e.length&&e[0]._isTransitioning)return;if(P.trigger(this._element,"show.bs.collapse").defaultPrevented)return;for(const t of e)t.hide();const t=this._getDimension();this._element.classList.remove(ce),this._element.classList.add(he),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(he),this._element.classList.add(ce,le),this._element.style[t]="",P.trigger(this._element,"shown.bs.collapse")}),this._element,!0),this._element.style[t]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(P.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,d(this._element),this._element.classList.add(he),this._element.classList.remove(ce,le);for(const e of this._triggerArray){const t=n(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0,this._element.style[e]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(he),this._element.classList.add(ce),P.trigger(this._element,"hidden.bs.collapse")}),this._element,!0)}_isShown(e=this._element){return e.classList.contains(le)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=r(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(de);for(const t of e){const e=n(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=Q.find(":scope .collapse .collapse",this._config.parent);return Q.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(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each((function(){const i=pe.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}}))}}P.on(document,"click.bs.collapse.data-api",de,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();const t=i(this),n=Q.find(t);for(const e of n)pe.getOrCreateInstance(e,{toggle:!1}).toggle()})),m(pe);var me="top",ge="bottom",_e="right",be="left",ve="auto",ye=[me,ge,_e,be],we="start",Ee="end",Ae="clippingParents",Te="viewport",Ce="popper",Oe="reference",xe=ye.reduce((function(e,t){return e.concat([t+"-"+we,t+"-"+Ee])}),[]),ke=[].concat(ye,[ve]).reduce((function(e,t){return e.concat([t,t+"-"+we,t+"-"+Ee])}),[]),Le="beforeRead",Se="read",De="afterRead",Ie="beforeMain",Ne="main",Pe="afterMain",je="beforeWrite",Me="write",He="afterWrite",qe=[Le,Se,De,Ie,Ne,Pe,je,Me,He];function $e(e){return e?(e.nodeName||"").toLowerCase():null}function We(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Be(e){return e instanceof We(e).Element||e instanceof Element}function Fe(e){return e instanceof We(e).HTMLElement||e instanceof HTMLElement}function ze(e){return"undefined"!=typeof ShadowRoot&&(e instanceof We(e).ShadowRoot||e instanceof ShadowRoot)}var Re={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},s=t.elements[e];Fe(s)&&$e(s)&&(Object.assign(s.style,i),Object.keys(n).forEach((function(e){var t=n[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],s=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e}),{});Fe(n)&&$e(n)&&(Object.assign(n.style,o),Object.keys(s).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Ve(e){return e.split("-")[0]}var Ke=Math.max,Qe=Math.min,Xe=Math.round;function Ye(e,t){void 0===t&&(t=!1);var i=e.getBoundingClientRect(),n=1,s=1;if(Fe(e)&&t){var o=e.offsetHeight,r=e.offsetWidth;r>0&&(n=Xe(i.width)/r||1),o>0&&(s=Xe(i.height)/o||1)}return{width:i.width/n,height:i.height/s,top:i.top/s,right:i.right/n,bottom:i.bottom/s,left:i.left/n,x:i.left/n,y:i.top/s}}function Ue(e){var t=Ye(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 Ge(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&ze(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Je(e){return We(e).getComputedStyle(e)}function Ze(e){return["table","td","th"].indexOf($e(e))>=0}function et(e){return((Be(e)?e.ownerDocument:e.document)||window.document).documentElement}function tt(e){return"html"===$e(e)?e:e.assignedSlot||e.parentNode||(ze(e)?e.host:null)||et(e)}function it(e){return Fe(e)&&"fixed"!==Je(e).position?e.offsetParent:null}function nt(e){for(var t=We(e),i=it(e);i&&Ze(i)&&"static"===Je(i).position;)i=it(i);return i&&("html"===$e(i)||"body"===$e(i)&&"static"===Je(i).position)?t:i||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Fe(e)&&"fixed"===Je(e).position)return null;var i=tt(e);for(ze(i)&&(i=i.host);Fe(i)&&["html","body"].indexOf($e(i))<0;){var n=Je(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(e)||t}function st(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ot(e,t,i){return Ke(e,Qe(t,i))}function rt(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function at(e,t){return t.reduce((function(t,i){return t[i]=e,t}),{})}var lt={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,n=e.name,s=e.options,o=i.elements.arrow,r=i.modifiersData.popperOffsets,a=Ve(i.placement),l=st(a),c=[be,_e].indexOf(a)>=0?"height":"width";if(o&&r){var h=function(e,t){return rt("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:at(e,ye))}(s.padding,i),d=Ue(o),u="y"===l?me:be,f="y"===l?ge:_e,p=i.rects.reference[c]+i.rects.reference[l]-r[l]-i.rects.popper[c],m=r[l]-i.rects.reference[l],g=nt(o),_=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,b=p/2-m/2,v=h[u],y=_-d[c]-h[f],w=_/2-d[c]/2+b,E=ot(v,w,y),A=l;i.modifiersData[n]=((t={})[A]=E,t.centerOffset=E-w,t)}},effect:function(e){var t=e.state,i=e.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&("production"!==process.env.NODE_ENV&&(Fe(n)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),Ge(t.elements.popper,n)?t.elements.arrow=n:"production"!==process.env.NODE_ENV&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" ")))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ct(e){return e.split("-")[1]}var ht={top:"auto",right:"auto",bottom:"auto",left:"auto"};function dt(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,d=e.isFixed,u=r.x,f=void 0===u?0:u,p=r.y,m=void 0===p?0:p,g="function"==typeof h?h({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var _=r.hasOwnProperty("x"),b=r.hasOwnProperty("y"),v=be,y=me,w=window;if(c){var E=nt(i),A="clientHeight",T="clientWidth";E===We(i)&&"static"!==Je(E=et(i)).position&&"absolute"===a&&(A="scrollHeight",T="scrollWidth"),(s===me||(s===be||s===_e)&&o===Ee)&&(y=ge,m-=(d&&E===w&&w.visualViewport?w.visualViewport.height:E[A])-n.height,m*=l?1:-1),s!==be&&(s!==me&&s!==ge||o!==Ee)||(v=_e,f-=(d&&E===w&&w.visualViewport?w.visualViewport.width:E[T])-n.width,f*=l?1:-1)}var C,O=Object.assign({position:a},c&&ht),x=!0===h?function(e){var t=e.x,i=e.y,n=window.devicePixelRatio||1;return{x:Xe(t*n)/n||0,y:Xe(i*n)/n||0}}({x:f,y:m}):{x:f,y:m};return f=x.x,m=x.y,l?Object.assign({},O,((C={})[y]=b?"0":"",C[v]=_?"0":"",C.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",C)):Object.assign({},O,((t={})[y]=b?m+"px":"",t[v]=_?f+"px":"",t.transform="",t))}var ut={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,n=i.gpuAcceleration,s=void 0===n||n,o=i.adaptive,r=void 0===o||o,a=i.roundOffsets,l=void 0===a||a;if("production"!==process.env.NODE_ENV){var c=Je(t.elements.popper).transitionProperty||"";r&&["transform","top","right","bottom","left"].some((function(e){return c.indexOf(e)>=0}))&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var h={placement:Ve(t.placement),variation:ct(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,dt(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,dt(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:{}},ft={passive:!0},pt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,n=e.options,s=n.scroll,o=void 0===s||s,r=n.resize,a=void 0===r||r,l=We(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach((function(e){e.addEventListener("scroll",i.update,ft)})),a&&l.addEventListener("resize",i.update,ft),function(){o&&c.forEach((function(e){e.removeEventListener("scroll",i.update,ft)})),a&&l.removeEventListener("resize",i.update,ft)}},data:{}},mt={left:"right",right:"left",bottom:"top",top:"bottom"};function gt(e){return e.replace(/left|right|bottom|top/g,(function(e){return mt[e]}))}var _t={start:"end",end:"start"};function bt(e){return e.replace(/start|end/g,(function(e){return _t[e]}))}function vt(e){var t=We(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function yt(e){return Ye(et(e)).left+vt(e).scrollLeft}function wt(e){var t=Je(e),i=t.overflow,n=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function Et(e){return["html","body","#document"].indexOf($e(e))>=0?e.ownerDocument.body:Fe(e)&&wt(e)?e:Et(tt(e))}function At(e,t){var i;void 0===t&&(t=[]);var n=Et(e),s=n===(null==(i=e.ownerDocument)?void 0:i.body),o=We(n),r=s?[o].concat(o.visualViewport||[],wt(n)?n:[]):n,a=t.concat(r);return s?a:a.concat(At(tt(r)))}function Tt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ct(e,t){return t===Te?Tt(function(e){var t=We(e),i=et(e),n=t.visualViewport,s=i.clientWidth,o=i.clientHeight,r=0,a=0;return n&&(s=n.width,o=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(r=n.offsetLeft,a=n.offsetTop)),{width:s,height:o,x:r+yt(e),y:a}}(e)):Be(t)?function(e){var t=Ye(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Tt(function(e){var t,i=et(e),n=vt(e),s=null==(t=e.ownerDocument)?void 0:t.body,o=Ke(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=Ke(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-n.scrollLeft+yt(e),l=-n.scrollTop;return"rtl"===Je(s||i).direction&&(a+=Ke(i.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}(et(e)))}function Ot(e){var t,i=e.reference,n=e.element,s=e.placement,o=s?Ve(s):null,r=s?ct(s):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(o){case me:t={x:a,y:i.y-n.height};break;case ge:t={x:a,y:i.y+i.height};break;case _e:t={x:i.x+i.width,y:l};break;case be:t={x:i.x-n.width,y:l};break;default:t={x:i.x,y:i.y}}var c=o?st(o):null;if(null!=c){var h="y"===c?"height":"width";switch(r){case we:t[c]=t[c]-(i[h]/2-n[h]/2);break;case Ee:t[c]=t[c]+(i[h]/2-n[h]/2)}}return t}function xt(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=void 0===n?e.placement:n,o=i.boundary,r=void 0===o?Ae:o,a=i.rootBoundary,l=void 0===a?Te:a,c=i.elementContext,h=void 0===c?Ce:c,d=i.altBoundary,u=void 0!==d&&d,f=i.padding,p=void 0===f?0:f,m=rt("number"!=typeof p?p:at(p,ye)),g=h===Ce?Oe:Ce,_=e.rects.popper,b=e.elements[u?g:h],v=function(e,t,i){var n="clippingParents"===t?function(e){var t=At(tt(e)),i=["absolute","fixed"].indexOf(Je(e).position)>=0&&Fe(e)?nt(e):e;return Be(i)?t.filter((function(e){return Be(e)&&Ge(e,i)&&"body"!==$e(e)})):[]}(e):[].concat(t),s=[].concat(n,[i]),o=s[0],r=s.reduce((function(t,i){var n=Ct(e,i);return t.top=Ke(n.top,t.top),t.right=Qe(n.right,t.right),t.bottom=Qe(n.bottom,t.bottom),t.left=Ke(n.left,t.left),t}),Ct(e,o));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}(Be(b)?b:b.contextElement||et(e.elements.popper),r,l),y=Ye(e.elements.reference),w=Ot({reference:y,element:_,strategy:"absolute",placement:s}),E=Tt(Object.assign({},_,w)),A=h===Ce?E:y,T={top:v.top-A.top+m.top,bottom:A.bottom-v.bottom+m.bottom,left:v.left-A.left+m.left,right:A.right-v.right+m.right},C=e.modifiersData.offset;if(h===Ce&&C){var O=C[s];Object.keys(T).forEach((function(e){var t=[_e,ge].indexOf(e)>=0?1:-1,i=[me,ge].indexOf(e)>=0?"y":"x";T[e]+=O[i]*t}))}return T}function kt(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=i.boundary,o=i.rootBoundary,r=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?ke:l,h=ct(n),d=h?a?xe:xe.filter((function(e){return ct(e)===h})):ye,u=d.filter((function(e){return c.indexOf(e)>=0}));0===u.length&&(u=d,"production"!==process.env.NODE_ENV&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var f=u.reduce((function(t,i){return t[i]=xt(e,{placement:i,boundary:s,rootBoundary:o,padding:r})[Ve(i)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}var Lt={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0===r||r,l=i.fallbackPlacements,c=i.padding,h=i.boundary,d=i.rootBoundary,u=i.altBoundary,f=i.flipVariations,p=void 0===f||f,m=i.allowedAutoPlacements,g=t.options.placement,_=Ve(g),b=l||(_!==g&&p?function(e){if(Ve(e)===ve)return[];var t=gt(e);return[bt(e),t,bt(t)]}(g):[gt(g)]),v=[g].concat(b).reduce((function(e,i){return e.concat(Ve(i)===ve?kt(t,{placement:i,boundary:h,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:m}):i)}),[]),y=t.rects.reference,w=t.rects.popper,E=new Map,A=!0,T=v[0],C=0;C<v.length;C++){var O=v[C],x=Ve(O),k=ct(O)===we,L=[me,ge].indexOf(x)>=0,S=L?"width":"height",D=xt(t,{placement:O,boundary:h,rootBoundary:d,altBoundary:u,padding:c}),I=L?k?_e:be:k?ge:me;y[S]>w[S]&&(I=gt(I));var N=gt(I),P=[];if(o&&P.push(D[x]<=0),a&&P.push(D[I]<=0,D[N]<=0),P.every((function(e){return e}))){T=O,A=!1;break}E.set(O,P)}if(A)for(var j=function(e){var t=v.find((function(t){var i=E.get(t);if(i)return i.slice(0,e).every((function(e){return e}))}));if(t)return T=t,"break"},M=p?3:1;M>0&&"break"!==j(M);M--);t.placement!==T&&(t.modifiersData[n]._skip=!0,t.placement=T,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function St(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function Dt(e){return[me,_e,ge,be].some((function(t){return e[t]>=0}))}var It={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,r=xt(t,{elementContext:"reference"}),a=xt(t,{altBoundary:!0}),l=St(r,n),c=St(a,s,o),h=Dt(l),d=Dt(c);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}},Nt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,n=e.name,s=i.offset,o=void 0===s?[0,0]:s,r=ke.reduce((function(e,i){return e[i]=function(e,t,i){var n=Ve(e),s=[be,me].indexOf(n)>=0?-1:1,o="function"==typeof i?i(Object.assign({},t,{placement:e})):i,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[be,_e].indexOf(n)>=0?{x:a,y:r}:{x:r,y:a}}(i,t.rects,o),e}),{}),a=r[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=r}},Pt={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=Ot({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},jt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name,s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0!==r&&r,l=i.boundary,c=i.rootBoundary,h=i.altBoundary,d=i.padding,u=i.tether,f=void 0===u||u,p=i.tetherOffset,m=void 0===p?0:p,g=xt(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:h}),_=Ve(t.placement),b=ct(t.placement),v=!b,y=st(_),w="x"===y?"y":"x",E=t.modifiersData.popperOffsets,A=t.rects.reference,T=t.rects.popper,C="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,O="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),x=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(E){if(o){var L,S="y"===y?me:be,D="y"===y?ge:_e,I="y"===y?"height":"width",N=E[y],P=N+g[S],j=N-g[D],M=f?-T[I]/2:0,H=b===we?A[I]:T[I],q=b===we?-T[I]:-A[I],$=t.elements.arrow,W=f&&$?Ue($):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},F=B[S],z=B[D],R=ot(0,A[I],W[I]),V=v?A[I]/2-M-R-F-O.mainAxis:H-R-F-O.mainAxis,K=v?-A[I]/2+M+R+z+O.mainAxis:q+R+z+O.mainAxis,Q=t.elements.arrow&&nt(t.elements.arrow),X=Q?"y"===y?Q.clientTop||0:Q.clientLeft||0:0,Y=null!=(L=null==x?void 0:x[y])?L:0,U=N+K-Y,G=ot(f?Qe(P,N+V-Y-X):P,N,f?Ke(j,U):j);E[y]=G,k[y]=G-N}if(a){var J,Z="x"===y?me:be,ee="x"===y?ge:_e,te=E[w],ie="y"===w?"height":"width",ne=te+g[Z],se=te-g[ee],oe=-1!==[me,be].indexOf(_),re=null!=(J=null==x?void 0:x[w])?J:0,ae=oe?ne:te-A[ie]-T[ie]-re+O.altAxis,le=oe?te+A[ie]+T[ie]-re-O.altAxis:se,ce=f&&oe?function(e,t,i){var n=ot(e,t,i);return n>i?i:n}(ae,te,le):ot(f?ae:ne,te,f?le:se);E[w]=ce,k[w]=ce-te}t.modifiersData[n]=k}},requiresIfExists:["offset"]};function Mt(e,t,i){void 0===i&&(i=!1);var n,s,o=Fe(t),r=Fe(t)&&function(e){var t=e.getBoundingClientRect(),i=Xe(t.width)/e.offsetWidth||1,n=Xe(t.height)/e.offsetHeight||1;return 1!==i||1!==n}(t),a=et(t),l=Ye(e,r),c={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(o||!o&&!i)&&(("body"!==$e(t)||wt(a))&&(c=(n=t)!==We(n)&&Fe(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:vt(n)),Fe(t)?((h=Ye(t,!0)).x+=t.clientLeft,h.y+=t.clientTop):a&&(h.x=yt(a))),{x:l.left+c.scrollLeft-h.x,y:l.top+c.scrollTop-h.y,width:l.width,height:l.height}}function Ht(e){var t=new Map,i=new Set,n=[];function s(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!i.has(e)){var n=t.get(e);n&&s(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){i.has(e.name)||s(e)})),n}function qt(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return[].concat(i).reduce((function(e,t){return e.replace(/%s/,t)}),e)}var $t='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Wt=["name","enabled","phase","fn","effect","requires","options"],Bt="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Ft={placement:"bottom",modifiers:[],strategy:"absolute"};function zt(){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 Rt(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,n=void 0===i?[]:i,s=t.defaultOptions,o=void 0===s?Ft:s;return function(e,t,i){void 0===i&&(i=o);var s,r,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ft,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,h={state:a,setOptions:function(i){var s="function"==typeof i?i(a.options):i;d(),a.options=Object.assign({},o,a.options,s),a.scrollParents={reference:Be(e)?At(e):e.contextElement?At(e.contextElement):[],popper:At(t)};var r,c,u,f,p,m=function(e){var t=Ht(e);return qe.reduce((function(e,i){return e.concat(t.filter((function(e){return e.phase===i})))}),[])}((f=[].concat(n,a.options.modifiers),p=f.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}),{}),Object.keys(p).map((function(e){return p[e]}))));if(a.orderedModifiers=m.filter((function(e){return e.enabled})),"production"!==process.env.NODE_ENV){(function(e){e.forEach((function(t){[].concat(Object.keys(t),Wt).filter((function(e,t,i){return i.indexOf(e)===t})).forEach((function(i){switch(i){case"name":"string"!=typeof t.name&&console.error(qt($t,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(qt($t,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":qe.indexOf(t.phase)<0&&console.error(qt($t,t.name,'"phase"',"either "+qe.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(qt($t,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":null!=t.effect&&"function"!=typeof t.effect&&console.error(qt($t,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":null==t.requires||Array.isArray(t.requires)||console.error(qt($t,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(qt($t,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+Wt.map((function(e){return'"'+e+'"'})).join(", ")+'; but "'+i+'" was provided.')}t.requires&&t.requires.forEach((function(i){null==e.find((function(e){return e.name===i}))&&console.error(qt('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),i,i))}))}))}))})((r=[].concat(m,a.options.modifiers),c=function(e){return e.name},u=new Set,r.filter((function(e){var t=c(e);if(!u.has(t))return u.add(t),!0})))),Ve(a.options.placement)===ve&&(a.orderedModifiers.find((function(e){return"flip"===e.name}))||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" ")));var g=Je(t);[g.marginTop,g.marginRight,g.marginBottom,g.marginLeft].some((function(e){return parseFloat(e)}))&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return a.orderedModifiers.forEach((function(e){var t=e.name,i=e.options,n=void 0===i?{}:i,s=e.effect;if("function"==typeof s){var o=s({state:a,name:t,instance:h,options:n});l.push(o||function(){})}})),h.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,i=e.popper;if(zt(t,i)){a.rects={reference:Mt(t,nt(i),"fixed"===a.options.strategy),popper:Ue(i)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0,s=0;s<a.orderedModifiers.length;s++){if("production"!==process.env.NODE_ENV&&(n+=1)>100){console.error("Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.");break}if(!0!==a.reset){var o=a.orderedModifiers[s],r=o.fn,l=o.options,d=void 0===l?{}:l,u=o.name;"function"==typeof r&&(a=r({state:a,options:d,name:u,instance:h})||a)}else a.reset=!1,s=-1}}else"production"!==process.env.NODE_ENV&&console.error(Bt)}},update:(s=function(){return new Promise((function(e){h.forceUpdate(),e(a)}))},function(){return r||(r=new Promise((function(e){Promise.resolve().then((function(){r=void 0,e(s())}))}))),r}),destroy:function(){d(),c=!0}};if(!zt(e,t))return"production"!==process.env.NODE_ENV&&console.error(Bt),h;function d(){l.forEach((function(e){return e()})),l=[]}return h.setOptions(i).then((function(e){!c&&i.onFirstUpdate&&i.onFirstUpdate(e)})),h}}var Vt=Rt(),Kt=Rt({defaultModifiers:[pt,Pt,ut,Re]}),Qt=Rt({defaultModifiers:[pt,Pt,ut,Re,Nt,Lt,jt,lt,It]}),Xt=Object.freeze({__proto__:null,popperGenerator:Rt,detectOverflow:xt,createPopperBase:Vt,createPopper:Qt,createPopperLite:Kt,top:me,bottom:ge,right:_e,left:be,auto:ve,basePlacements:ye,start:we,end:Ee,clippingParents:Ae,viewport:Te,popper:Ce,reference:Oe,variationPlacements:xe,placements:ke,beforeRead:Le,read:Se,afterRead:De,beforeMain:Ie,main:Ne,afterMain:Pe,beforeWrite:je,write:Me,afterWrite:He,modifierPhases:qe,applyStyles:Re,arrow:lt,computeStyles:ut,eventListeners:pt,flip:Lt,hide:It,offset:Nt,popperOffsets:Pt,preventOverflow:jt});const Yt="dropdown",Ut="ArrowUp",Gt="ArrowDown",Jt="click.bs.dropdown.data-api",Zt="keydown.bs.dropdown.data-api",ei="show",ti='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',ii=`${ti}.show`,ni=".dropdown-menu",si=p()?"top-end":"top-start",oi=p()?"top-start":"top-end",ri=p()?"bottom-end":"bottom-start",ai=p()?"bottom-start":"bottom-end",li=p()?"left-start":"right-start",ci=p()?"right-start":"left-start",hi={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},di={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class ui extends F{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=Q.findOne(ni,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return hi}static get DefaultType(){return di}static get NAME(){return Yt}toggle(){return this._isShown()?this.hide():this.show()}show(){if(l(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!P.trigger(this._element,"show.bs.dropdown",e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const e of[].concat(...document.body.children))P.on(e,"mouseover",h);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(ei),this._element.classList.add(ei),P.trigger(this._element,"shown.bs.dropdown",e)}}hide(){if(l(this._element)||!this._isShown())return;const 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){if(!P.trigger(this._element,"hide.bs.dropdown",e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))P.off(e,"mouseover",h);this._popper&&this._popper.destroy(),this._menu.classList.remove(ei),this._element.classList.remove(ei),this._element.setAttribute("aria-expanded","false"),W.removeDataAttribute(this._menu,"popper"),P.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)throw new TypeError(`${Yt.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(void 0===Xt)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=r(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=Qt(e,this._menu,t)}_isShown(){return this._menu.classList.contains(ei)}_getPlacement(){const e=this._parent;if(e.classList.contains("dropend"))return li;if(e.classList.contains("dropstart"))return ci;if(e.classList.contains("dropup-center"))return"top";if(e.classList.contains("dropdown-center"))return"bottom";const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?oi:si:t?ai:ri}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const 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)&&(W.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_selectMenuItem({key:e,target:t}){const i=Q.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((e=>a(e)));i.length&&b(i,t,e===Gt,!i.includes(t)).focus()}static jQueryInterface(e){return this.each((function(){const t=ui.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}static clearMenus(e){if(2===e.button||"keyup"===e.type&&"Tab"!==e.key)return;const t=Q.find(ii);for(const i of t){const t=ui.getInstance(i);if(!t||!1===t._config.autoClose)continue;const n=e.composedPath(),s=n.includes(t._menu);if(n.includes(t._element)||"inside"===t._config.autoClose&&!s||"outside"===t._config.autoClose&&s)continue;if(t._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const o={relatedTarget:t._element};"click"===e.type&&(o.clickEvent=e),t._completeHide(o)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),i="Escape"===e.key,n=[Ut,Gt].includes(e.key);if(!n&&!i)return;if(t&&!i)return;e.preventDefault();const s=Q.findOne(ti,e.delegateTarget.parentNode),o=ui.getOrCreateInstance(s);if(n)return e.stopPropagation(),o.show(),void o._selectMenuItem(e);o._isShown()&&(e.stopPropagation(),o.hide(),s.focus())}}P.on(document,Zt,ti,ui.dataApiKeydownHandler),P.on(document,Zt,ni,ui.dataApiKeydownHandler),P.on(document,Jt,ui.clearMenus),P.on(document,"keyup.bs.dropdown.data-api",ui.clearMenus),P.on(document,Jt,ti,(function(e){e.preventDefault(),ui.getOrCreateInstance(this).toggle()})),m(ui);const fi={},pi=".carousel-item.active";class mi extends F{constructor(e,t){super(e,t),this.carousel=Q.findOne(".carousel",this.element),this.carouselPager=Q.findOne(".carousel-pager span",this.element),this.carouselStartIndex=e.getAttribute("data-gallery-start"),this.carouselActiveItem=Q.find(".carousel-item",this.carousel)[this.carouselStartIndex],this.carouselPager.textContent=Number(this.carouselStartIndex)+1,this.modal=Q.findOne(".modal",this.element),this.addEventListeners(),this.carouselLazyLoad(this.carouselActiveItem)}static get NAME(){return"gallery"}setSlide(e){const t=Q.findOne(pi,this.carousel),i=e.relatedTarget;this.carouselLazyLoad(i),this.carouselPager.textContent=e.to+1,this.stopVideo(t)}stopSlide(){const e=Q.findOne(pi,this.carousel);this.stopVideo(e)}stopVideo(e){const t=Q.findOne("iframe",e),i=Q.findOne("video",e);t?t.src=t.dataset.src:i&&i.pause()}carouselLazyLoad(e){const t=Q.findOne("[data-src]",e);t&&!t.src&&(t.src=t.dataset.src)}addEventListeners(){P.on(this.carousel,"slide.bs.carousel",(e=>this.setSlide(e))),P.on(this.modal,"hide.bs.modal",(e=>this.stopSlide(e)))}static get Default(){return fi}static jQueryInterface(e){return this.each((function(){const t=mi.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}P.on(document,"click.bs.gallery.data-api",".bcl-gallery__grid a, .bcl-gallery__mobile-view-more",(e=>{const t=e.target.closest("div.bcl-gallery"),i=e.target.parentNode.getAttribute("data-bs-slide-to");t.dataset.galleryStart=i,mi.getOrCreateInstance(t)})),m(mi);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(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,bi,(t=>t+e)),this._setElementAttributes(gi,bi,(t=>t+e)),this._setElementAttributes(_i,vi,(t=>t-e))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,bi),this._resetElementAttributes(gi,bi),this._resetElementAttributes(_i,vi)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,i){const n=this.getWidth();this._applyManipulationCallback(e,(e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+n)return;this._saveInitialAttribute(e,t);const s=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${i(Number.parseFloat(s))}px`)}))}_saveInitialAttribute(e,t){const i=e.style.getPropertyValue(t);i&&W.setDataAttribute(e,t,i)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,(e=>{const i=W.getDataAttribute(e,t);null!==i?(W.removeDataAttribute(e,t),e.style.setProperty(t,i)):e.style.removeProperty(t)}))}_applyManipulationCallback(e,t){if(o(e))t(e);else for(const i of Q.find(e,this._element))t(i)}}const wi="show",Ei="mousedown.bs.backdrop",Ai={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Ti={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Ci extends B{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Ai}static get DefaultType(){return Ti}static get NAME(){return"backdrop"}show(e){if(!this._config.isVisible)return void g(e);this._append();const t=this._getElement();this._config.isAnimated&&d(t),t.classList.add(wi),this._emulateAnimation((()=>{g(e)}))}hide(e){this._config.isVisible?(this._getElement().classList.remove(wi),this._emulateAnimation((()=>{this.dispose(),g(e)}))):g(e)}dispose(){this._isAppended&&(P.off(this._element,Ei),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=r(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),P.on(e,Ei,(()=>{g(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(e){_(e,this._getElement(),this._config.isAnimated)}}const Oi=".bs.focustrap",xi="backward",ki={autofocus:!0,trapElement:null},Li={autofocus:"boolean",trapElement:"element"};class Si extends B{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return ki}static get DefaultType(){return Li}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),P.off(document,Oi),P.on(document,"focusin.bs.focustrap",(e=>this._handleFocusin(e))),P.on(document,"keydown.tab.bs.focustrap",(e=>this._handleKeydown(e))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,P.off(document,Oi))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const i=Q.focusableChildren(t);0===i.length?t.focus():this._lastTabNavDirection===xi?i[i.length-1].focus():i[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?xi:"forward")}}const Di="hidden.bs.modal",Ii="show.bs.modal",Ni="modal-open",Pi="show",ji="modal-static",Mi={backdrop:!0,focus:!0,keyboard:!0},Hi={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class qi extends F{constructor(e,t){super(e,t),this._dialog=Q.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 Mi}static get DefaultType(){return Hi}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||P.trigger(this._element,Ii,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Ni),this._adjustDialog(),this._backdrop.show((()=>this._showElement(e))))}hide(){this._isShown&&!this._isTransitioning&&(P.trigger(this._element,"hide.bs.modal").defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Pi),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())))}dispose(){for(const e of[window,this._dialog])P.off(e,".bs.modal");this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Ci({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Si({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;const t=Q.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),d(this._element),this._element.classList.add(Pi),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,P.trigger(this._element,"shown.bs.modal",{relatedTarget:e})}),this._dialog,this._isAnimated())}_addEventListeners(){P.on(this._element,"keydown.dismiss.bs.modal",(e=>{if("Escape"===e.key)return this._config.keyboard?(e.preventDefault(),void this.hide()):void this._triggerBackdropTransition()})),P.on(window,"resize.bs.modal",(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),P.on(this._element,"mousedown.dismiss.bs.modal",(e=>{e.target===e.currentTarget&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}_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(Ni),this._resetAdjustments(),this._scrollBar.reset(),P.trigger(this._element,Di)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(P.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(ji)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(ji),this._queueCallback((()=>{this._element.classList.remove(ji),this._queueCallback((()=>{this._element.style.overflowY=t}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),i=t>0;if(i&&!e){const e=p()?"paddingLeft":"paddingRight";this._element.style[e]=`${t}px`}if(!i&&e){const e=p()?"paddingRight":"paddingLeft";this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each((function(){const i=qi.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e](t)}}))}}P.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',(function(e){const t=n(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),P.one(t,Ii,(e=>{e.defaultPrevented||P.one(t,Di,(()=>{a(this)&&this.focus()}))}));const i=Q.findOne(".modal.show");i&&qi.getInstance(i).hide(),qi.getOrCreateInstance(t).toggle(this)})),z(qi),m(qi);const $i="show",Wi="showing",Bi="hiding",Fi=".offcanvas.show",zi="hidePrevented.bs.offcanvas",Ri="hidden.bs.offcanvas",Vi={backdrop:!0,keyboard:!0,scroll:!1},Ki={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Qi extends F{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Vi}static get DefaultType(){return Ki}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||P.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(Wi),this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add($i),this._element.classList.remove(Wi),P.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:e})}),this._element,!0))}hide(){this._isShown&&(P.trigger(this._element,"hide.bs.offcanvas").defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Bi),this._backdrop.hide(),this._queueCallback((()=>{this._element.classList.remove($i,Bi),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new yi).reset(),P.trigger(this._element,Ri)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=Boolean(this._config.backdrop);return new Ci({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"!==this._config.backdrop?this.hide():P.trigger(this._element,zi)}:null})}_initializeFocusTrap(){return new Si({trapElement:this._element})}_addEventListeners(){P.on(this._element,"keydown.dismiss.bs.offcanvas",(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():P.trigger(this._element,zi))}))}static jQueryInterface(e){return this.each((function(){const t=Qi.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}P.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',(function(e){const t=n(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),l(this))return;P.one(t,Ri,(()=>{a(this)&&this.focus()}));const i=Q.findOne(Fi);i&&i!==t&&Qi.getInstance(i).hide(),Qi.getOrCreateInstance(t).toggle(this)})),P.on(window,"load.bs.offcanvas.data-api",(()=>{for(const e of Q.find(Fi))Qi.getOrCreateInstance(e).show()})),P.on(window,"resize.bs.offcanvas",(()=>{for(const e of Q.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&Qi.getOrCreateInstance(e).hide()})),z(Qi),m(Qi);const Xi=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Yi=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,Ui=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,Gi=(e,t)=>{const i=e.nodeName.toLowerCase();return t.includes(i)?!Xi.has(i)||Boolean(Yi.test(e.nodeValue)||Ui.test(e.nodeValue)):t.filter((e=>e instanceof RegExp)).some((e=>e.test(i)))},Ji={"*":["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:[]},Zi={allowList:Ji,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},en={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},tn={entry:"(string|element|function|null)",selector:"(string|element)"};class nn extends B{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Zi}static get DefaultType(){return en}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((e=>this._resolvePossibleFunction(e))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[t,i]of Object.entries(this._config.content))this._setContent(e,i,t);const t=e.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&t.classList.add(...i.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,i]of Object.entries(e))super._typeCheckConfig({selector:t,entry:i},tn)}_setContent(e,t,i){const n=Q.findOne(i,e);n&&((t=this._resolvePossibleFunction(t))?o(t)?this._putElementInTemplate(r(t),n):this._config.html?n.innerHTML=this._maybeSanitize(t):n.textContent=t:n.remove())}_maybeSanitize(e){return this._config.sanitize?function(e,t,i){if(!e.length)return e;if(i&&"function"==typeof i)return i(e);const n=(new window.DOMParser).parseFromString(e,"text/html"),s=[].concat(...n.body.querySelectorAll("*"));for(const e of s){const i=e.nodeName.toLowerCase();if(!Object.keys(t).includes(i)){e.remove();continue}const n=[].concat(...e.attributes),s=[].concat(t["*"]||[],t[i]||[]);for(const t of n)Gi(t,s)||e.removeAttribute(t.nodeName)}return n.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return"function"==typeof e?e(this):e}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const sn=new Set(["sanitize","allowList","sanitizeFn"]),on="fade",rn="show",an=".modal",ln="hide.bs.modal",cn="hover",hn="focus",dn={AUTO:"auto",TOP:"top",RIGHT:p()?"left":"right",BOTTOM:"bottom",LEFT:p()?"right":"left"},un={allowList:Ji,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,0],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"},fn={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 pn extends F{constructor(e,t){if(void 0===Xt)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=!1,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners()}static get Default(){return un}static get DefaultType(){return fn}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(e){if(this._isEnabled){if(e){const t=this._initializeOnDelegatedTarget(e);return t._activeTrigger.click=!t._activeTrigger.click,void(t._isWithActiveTrigger()?t._enter():t._leave())}this._isShown()?this._leave():this._enter()}}dispose(){clearTimeout(this._timeout),P.off(this._element.closest(an),ln,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 e=P.trigger(this._element,this.constructor.eventName("show")),t=(c(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this.tip&&(this.tip.remove(),this.tip=null);const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:n}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(n.append(i),P.trigger(this._element,this.constructor.eventName("inserted"))),this._popper?this._popper.update():this._popper=this._createPopper(i),i.classList.add(rn),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))P.on(e,"mouseover",h);this._queueCallback((()=>{const e=this._isHovered;this._isHovered=!1,P.trigger(this._element,this.constructor.eventName("shown")),e&&this._leave()}),this.tip,this._isAnimated())}hide(){if(!this._isShown())return;if(P.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented)return;const e=this._getTipElement();if(e.classList.remove(rn),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))P.off(e,"mouseover",h);this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,this._isHovered=!1,this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||e.remove(),this._element.removeAttribute("aria-describedby"),P.trigger(this._element,this.constructor.eventName("hidden")),this._disposePopper())}),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){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(on,rn),t.classList.add(`bs-${this.constructor.NAME}-auto`);const i=(e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME).toString();return t.setAttribute("id",i),this._isAnimated()&&t.classList.add(on),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new nn({...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._config.originalTitle}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(on)}_isShown(){return this.tip&&this.tip.classList.contains(rn)}_createPopper(e){const t="function"==typeof this._config.placement?this._config.placement.call(this,e,this._element):this._config.placement,i=dn[t.toUpperCase()];return Qt(this._element,e,this._getPopperConfig(i))}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return"function"==typeof e?e.call(this._element):e}_getPopperConfig(e){const t={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{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)P.on(this._element,this.constructor.eventName("click"),this._config.selector,(e=>this.toggle(e)));else if("manual"!==t){const e=t===cn?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),i=t===cn?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");P.on(this._element,e,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?hn:cn]=!0,t._enter()})),P.on(this._element,i,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?hn:cn]=t._element.contains(e.relatedTarget),t._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},P.on(this._element.closest(an),ln,this._hideModalHandler),this._config.selector?this._config={...this._config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const e=this._config.originalTitle;e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",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){const t=W.getDataAttributes(this._element);for(const e of Object.keys(t))sn.has(e)&&delete t[e];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:r(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e.originalTitle=this._element.getAttribute("title")||"","number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const t in this._config)this.constructor.Default[t]!==this._config[t]&&(e[t]=this._config[t]);return e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jQueryInterface(e){return this.each((function(){const t=pn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}m(pn);const mn={...pn.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"},gn={...pn.DefaultType,content:"(null|string|element|function)"};class _n extends pn{static get Default(){return mn}static get DefaultType(){return gn}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(e){return this.each((function(){const t=_n.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}m(_n);const bn="click.bs.scrollspy",vn="active",yn="[href]",wn={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null},En={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element"};class An extends F{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 wn}static get DefaultType(){return En}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=r(e.target)||document.body,e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(P.off(this._config.target,bn),P.on(this._config.target,bn,yn,(e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const i=this._rootElement||window,n=t.offsetTop-this._element.offsetTop;if(i.scrollTo)return void i.scrollTo({top:n,behavior:"smooth"});i.scrollTop=n}})))}_getNewObserver(){const e={root:this._rootElement,threshold:[.1,.5,1],rootMargin:this._getRootMargin()};return new IntersectionObserver((e=>this._observerCallback(e)),e)}_observerCallback(e){const t=e=>this._targetLinks.get(`#${e.target.id}`),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 o of e){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(o));continue}const e=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&e){if(i(o),!n)return}else s||e||i(o)}}_getRootMargin(){return this._config.offset?`${this._config.offset}px 0px -30%`:this._config.rootMargin}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=Q.find(yn,this._config.target);for(const t of e){if(!t.hash||l(t))continue;const e=Q.findOne(t.hash,this._element);a(e)&&(this._targetLinks.set(t.hash,t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(vn),this._activateParents(e),P.trigger(this._element,"activate.bs.scrollspy",{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))Q.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(vn);else for(const t of Q.parents(e,".nav, .list-group"))for(const e of Q.prev(t,".nav-link, .nav-item > .nav-link, .list-group-item"))e.classList.add(vn)}_clearActiveClass(e){e.classList.remove(vn);const t=Q.find("[href].active",e);for(const e of t)e.classList.remove(vn)}static jQueryInterface(e){return this.each((function(){const t=An.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}P.on(window,"load.bs.scrollspy.data-api",(()=>{for(const e of Q.find('[data-bs-spy="scroll"]'))An.getOrCreateInstance(e)})),m(An);const Tn="ArrowLeft",Cn="ArrowRight",On="ArrowUp",xn="ArrowDown",kn="active",Ln="fade",Sn="show",Dn='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',In=`.nav-link:not(.dropdown-toggle), .list-group-item:not(.dropdown-toggle), [role="tab"]:not(.dropdown-toggle), ${Dn}`;class Nn extends F{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),P.on(this._element,"keydown.bs.tab",(e=>this._keydown(e))))}static get NAME(){return"tab"}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),i=t?P.trigger(t,"hide.bs.tab",{relatedTarget:e}):null;P.trigger(e,"show.bs.tab",{relatedTarget:t}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(kn),this._activate(n(e)),this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.focus(),e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),P.trigger(e,"shown.bs.tab",{relatedTarget:t})):e.classList.add(Sn)}),e,e.classList.contains(Ln)))}_deactivate(e,t){e&&(e.classList.remove(kn),e.blur(),this._deactivate(n(e)),this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),P.trigger(e,"hidden.bs.tab",{relatedTarget:t})):e.classList.remove(Sn)}),e,e.classList.contains(Ln)))}_keydown(e){if(![Tn,Cn,On,xn].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=[Cn,xn].includes(e.key),i=b(this._getChildren().filter((e=>!l(e))),e.target,t,!0);i&&Nn.getOrCreateInstance(i).show()}_getChildren(){return Q.find(In,this._parent)}_getActiveElem(){return this._getChildren().find((e=>this._elemIsActive(e)))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const 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){const t=n(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`#${e.id}`))}_toggleDropDown(e,t){const i=this._getOuterElement(e);if(!i.classList.contains("dropdown"))return;const n=(e,n)=>{const s=Q.findOne(e,i);s&&s.classList.toggle(n,t)};n(".dropdown-toggle",kn),n(".dropdown-menu",Sn),n(".dropdown-item",kn),i.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,i){e.hasAttribute(t)||e.setAttribute(t,i)}_elemIsActive(e){return e.classList.contains(kn)}_getInnerElement(e){return e.matches(In)?e:Q.findOne(In,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each((function(){const t=Nn.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}P.on(document,"click.bs.tab",Dn,(function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),l(this)||Nn.getOrCreateInstance(this).show()})),P.on(window,"load.bs.tab",(()=>{for(const e of Q.find('.active[data-bs-toggle="tab"], .active[data-bs-toggle="pill"], .active[data-bs-toggle="list"]'))Nn.getOrCreateInstance(e)})),m(Nn);const Pn="hide",jn="show",Mn="showing",Hn={animation:"boolean",autohide:"boolean",delay:"number"},qn={animation:!0,autohide:!0,delay:5e3};class $n extends F{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return qn}static get DefaultType(){return Hn}static get NAME(){return"toast"}show(){P.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(Pn),d(this._element),this._element.classList.add(jn,Mn),this._queueCallback((()=>{this._element.classList.remove(Mn),P.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this.isShown()&&(P.trigger(this._element,"hide.bs.toast").defaultPrevented||(this._element.classList.add(Mn),this._queueCallback((()=>{this._element.classList.add(Pn),this._element.classList.remove(Mn,jn),P.trigger(this._element,"hidden.bs.toast")}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(jn),super.dispose()}isShown(){return this._element.classList.contains(jn)}_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}if(t)return void this._clearTimeout();const i=e.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){P.on(this._element,"mouseover.bs.toast",(e=>this._onInteraction(e,!0))),P.on(this._element,"mouseout.bs.toast",(e=>this._onInteraction(e,!1))),P.on(this._element,"focusin.bs.toast",(e=>this._onInteraction(e,!0))),P.on(this._element,"focusout.bs.toast",(e=>this._onInteraction(e,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){const t=$n.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}return z($n),m($n),{Alert:R,Button:K,Carousel:ae,Collapse:pe,Dropdown:ui,Gallery:mi,Modal:qi,Offcanvas:Qi,Popover:_n,ScrollSpy:An,Tab:Nn,Toast:$n,Tooltip:pn}}));
2
2
  //# sourceMappingURL=oe-bcl-joinup.umd.min.js.map