!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 o=1e3,a="transitionend",i=t=>{let i=t.getAttribute("data-bs-target");if(!i||"#"===i){let e=t.getAttribute("href");if(!e||!e.includes("#")&&!e.startsWith("."))return null;e.includes("#")&&!e.startsWith("#")&&(e="#"+e.split("#")[1]),i=e&&"#"!==e?e.trim():null}return i},l=e=>{e=i(e);return e&&document.querySelector(e)?e:null},c=e=>{e=i(e);return e?document.querySelector(e):null},d=e=>{e.dispatchEvent(new Event(a))},h=e=>!(!e||"object"!=typeof e)&&void 0!==(e=void 0!==e.jquery?e[0]:e).nodeType,n=e=>h(e)?e.jquery?e[0]:e:"string"==typeof e&&0{Object.keys(r).forEach(e=>{var t=r[e],i=n[e],i=i&&h(i)?"element":null==(i=i)?""+i:{}.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(t).test(i))throw new TypeError(s.toUpperCase()+`: Option "${e}" provided type "${i}" but expected type "${t}".`)})},m=e=>!(!h(e)||0===e.getClientRects().length)&&"visible"===getComputedStyle(e).getPropertyValue("visibility"),f=e=>!e||e.nodeType!==Node.ELEMENT_NODE||(!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled"))),g=e=>{return document.documentElement.attachShadow?"function"==typeof e.getRootNode?(t=e.getRootNode())instanceof ShadowRoot?t:null:e instanceof ShadowRoot?e:e.parentNode?g(e.parentNode):null:null;var t},y=()=>{},b=e=>{e.offsetHeight},w=()=>{var e=window["jQuery"];return e&&!document.body.hasAttribute("data-bs-no-jquery")?e:null},x=[],s=()=>"rtl"===document.documentElement.dir;var T=s=>{var e;e=()=>{const e=w();if(e){const t=s.NAME,i=e.fn[t];e.fn[t]=s.jQueryInterface,e.fn[t].Constructor=s,e.fn[t].noConflict=()=>(e.fn[t]=i,s.jQueryInterface)}},"loading"===document.readyState?(x.length||document.addEventListener("DOMContentLoaded",()=>{x.forEach(e=>e())}),x.push(e)):e()};const E=e=>{"function"==typeof e&&e()},_=(i,s,e=!0)=>{if(e){e=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:i}=window.getComputedStyle(e);var e=Number.parseFloat(t),s=Number.parseFloat(i);return e||s?(t=t.split(",")[0],i=i.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(i))*o):0})(s)+5;let t=!1;const n=({target:e})=>{e===s&&(t=!0,s.removeEventListener(a,n),E(i))};s.addEventListener(a,n),setTimeout(()=>{t||d(s)},e)}else E(i)},S=(e,t,i,s)=>{let n=e.indexOf(t);if(-1===n)return e[!i&&s?e.length-1:0];t=e.length;return n+=i?1:-1,s&&(n=(n+t)%t),e[Math.max(0,Math.min(n,t-1))]},C=/[^.]*(?=\..*)\.|.*/,O=/\..*/,I=/::\d+$/,L={};let $=1;const z={mouseenter:"mouseover",mouseleave:"mouseout"},N=/^(mouseenter|mouseleave)/i,D=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 j(e,t){return t&&t+"::"+$++||e.uidEvent||$++}function F(e){var t=j(e);return e.uidEvent=t,L[t]=L[t]||{},L[t]}function H(i,s,n=null){var r=Object.keys(i);for(let e=0,t=r.length;efunction(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)},s?s=n(s):i=n(i));var[n,r,o]=q(t,i,s);const f=F(e),g=f[o]||(f[o]={}),l=H(g,r,n?i:null);if(l)l.oneOff=l.oneOff&&d;else{var a,u,h,p,m,t=j(r,t.replace(C,""));const c=n?(h=e,p=i,m=s,function i(s){var n=h.querySelectorAll(p);for(let t=s["target"];t&&t!==this;t=t.parentNode)for(let e=n.length;e--;)if(n[e]===t)return s.delegateTarget=t,i.oneOff&&v.off(h,s.type,p,m),m.apply(t,[s]);return null}):(a=e,u=i,function e(t){return t.delegateTarget=a,e.oneOff&&v.off(a,t.type,u),u.apply(a,[t])});c.delegationSelector=n?i:null,c.originalHandler=r,c.oneOff=d,c.uidEvent=t,g[t]=c,e.addEventListener(o,c,n)}}}function R(e,t,i,s,n){s=H(t[i],s,n);s&&(e.removeEventListener(i,s,Boolean(n)),delete t[i][s.uidEvent])}function W(e){return e=e.replace(O,""),z[e]||e}const v={on(e,t,i,s){B(e,t,i,s,!1)},one(e,t,i,s){B(e,t,i,s,!0)},off(o,a,e,t){if("string"==typeof a&&o){const[i,s,n]=q(a,e,t),r=n!==a,l=F(o);t=a.startsWith(".");if(void 0!==s)return l&&l[n]?void R(o,l,n,s,i?e:null):void 0;t&&Object.keys(l).forEach(e=>{{var t=o,i=l,s=e,n=a.slice(1);const r=i[s]||{};return void Object.keys(r).forEach(e=>{e.includes(n)&&(e=r[e],R(t,i,s,e.originalHandler,e.delegationSelector))})}});const c=l[n]||{};Object.keys(c).forEach(e=>{var t=e.replace(I,"");r&&!a.includes(t)||(t=c[e],R(o,l,n,t.originalHandler,t.delegationSelector))})}},trigger(e,t,i){if("string"!=typeof t||!e)return null;const s=w();var n=W(t),d=t!==n,u=D.has(n);let r,o=!0,a=!0,l=!1,c=null;return d&&s&&(r=s.Event(t,i),s(e).trigger(r),o=!r.isPropagationStopped(),a=!r.isImmediatePropagationStopped(),l=r.isDefaultPrevented()),u?(c=document.createEvent("HTMLEvents"),c.initEvent(n,o,!0)):c=new CustomEvent(t,{bubbles:o,cancelable:!0}),void 0!==i&&Object.keys(i).forEach(e=>{Object.defineProperty(c,e,{get(){return i[e]}})}),l&&c.preventDefault(),a&&e.dispatchEvent(c),c.defaultPrevented&&void 0!==r&&r.preventDefault(),c}},Y=new Map,X={set(e,t,i){Y.has(e)||Y.set(e,new Map);const s=Y.get(e);s.has(t)||0===s.size?s.set(t,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(s.keys())[0]}.`)},get(e,t){return Y.has(e)&&Y.get(e).get(t)||null},remove(e,t){if(Y.has(e)){const i=Y.get(e);i.delete(t),0===i.size&&Y.delete(e)}}};class V{constructor(e){(e=n(e))&&(this._element=e,X.set(this._element,this.constructor.DATA_KEY,this))}dispose(){X.remove(this._element,this.constructor.DATA_KEY),v.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach(e=>{this[e]=null})}_queueCallback(e,t,i=!0){_(e,t,i)}static getInstance(e){return X.get(n(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}}var G=(i,s="hide")=>{var e="click.dismiss"+i.EVENT_KEY;const n=i.NAME;v.on(document,e,`[data-bs-dismiss="${n}"]`,function(e){if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),!f(this)){e=c(this)||this.closest("."+n);const t=i.getOrCreateInstance(e);t[s]()}})};class U extends V{static get NAME(){return"alert"}close(){var e;v.trigger(this._element,"close.bs.alert").defaultPrevented||(this._element.classList.remove("show"),e=this._element.classList.contains("fade"),this._queueCallback(()=>this._destroyElement(),this._element,e))}_destroyElement(){this._element.remove(),v.trigger(this._element,"closed.bs.alert"),this.dispose()}static jQueryInterface(t){return this.each(function(){const e=U.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}})}}G(U,"close"),T(U);const Q='[data-bs-toggle="button"]';class K extends V{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each(function(){const e=K.getOrCreateInstance(this);"toggle"===t&&e[t]()})}}function Z(e){return"true"===e||"false"!==e&&(e===Number(e).toString()?Number(e):""===e||"null"===e?null:e)}function J(e){return e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}v.on(document,"click.bs.button.data-api",Q,e=>{e.preventDefault();e=e.target.closest(Q);const t=K.getOrCreateInstance(e);t.toggle()}),T(K);const r={setDataAttribute(e,t,i){e.setAttribute("data-bs-"+J(t),i)},removeDataAttribute(e,t){e.removeAttribute("data-bs-"+J(t))},getDataAttributes(i){if(!i)return{};const s={};return Object.keys(i.dataset).filter(e=>e.startsWith("bs")).forEach(e=>{let t=e.replace(/^bs/,"");t=t.charAt(0).toLowerCase()+t.slice(1,t.length),s[t]=Z(i.dataset[e])}),s},getDataAttribute(e,t){return Z(e.getAttribute("data-bs-"+J(t)))},offset(e){e=e.getBoundingClientRect();return{top:e.top+window.pageYOffset,left:e.left+window.pageXOffset}},position(e){return{top:e.offsetTop,left:e.offsetLeft}}},u={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(e=>e.matches(t))},parents(e,t){const i=[];let s=e.parentNode;for(;s&&s.nodeType===Node.ELEMENT_NODE&&3!==s.nodeType;)s.matches(t)&&i.push(s),s=s.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){var t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>e+':not([tabindex^="-"])').join(", ");return this.find(t,e).filter(e=>!f(e)&&m(e))}},ee="carousel";var te=".bs.carousel";const ie={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},se={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},ne="next",re="prev",oe="left",ae="right",le={ArrowLeft:ae,ArrowRight:oe},ce="slid"+te;const de="active",ue=".active.carousel-item";class he extends V{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||0this._items.length-1||e<0))if(this._isSliding)v.one(this._element,ce,()=>this.to(e));else{if(t===e)return this.pause(),void this.cycle();t=tthis._keydown(e)),"hover"===this._config.pause&&(v.on(this._element,"mouseenter.bs.carousel",e=>this.pause(e)),v.on(this._element,"mouseleave.bs.carousel",e=>this.cycle(e))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){const t=e=>this._pointerEvent&&("pen"===e.pointerType||"touch"===e.pointerType),i=e=>{t(e)?this.touchStartX=e.clientX:this._pointerEvent||(this.touchStartX=e.touches[0].clientX)},s=e=>{this.touchDeltaX=e.touches&&1{t(e)&&(this.touchDeltaX=e.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=>{v.on(e,"dragstart.bs.carousel",e=>e.preventDefault())}),this._pointerEvent?(v.on(this._element,"pointerdown.bs.carousel",e=>i(e)),v.on(this._element,"pointerup.bs.carousel",e=>n(e)),this._element.classList.add("pointer-event")):(v.on(this._element,"touchstart.bs.carousel",e=>i(e)),v.on(this._element,"touchmove.bs.carousel",e=>s(e)),v.on(this._element,"touchend.bs.carousel",e=>n(e)))}_keydown(e){var t;/input|textarea/i.test(e.target.tagName)||(t=le[e.key])&&(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){e=e===ne;return S(this._items,t,e,this._config.wrap)}_triggerSlideEvent(e,t){var i=this._getItemIndex(e),s=this._getItemIndex(u.findOne(ue,this._element));return v.trigger(this._element,"slide.bs.carousel",{relatedTarget:e,direction:t,from:s,to:i})}_setActiveIndicatorElement(t){if(this._indicatorsElement){const e=u.findOne(".active",this._indicatorsElement),i=(e.classList.remove(de),e.removeAttribute("aria-current"),u.find("[data-bs-target]",this._indicatorsElement));for(let e=0;e{v.trigger(this._element,ce,{relatedTarget:n,direction:l,from:s,to:d})};this._element.classList.contains("slide")?(n.classList.add(a),b(n),i.classList.add(o),n.classList.add(o),this._queueCallback(()=>{n.classList.remove(o,a),n.classList.add(de),i.classList.remove(de,a,o),this._isSliding=!1,setTimeout(c,0)},i,!0)):(i.classList.remove(de),n.classList.add(de),this._isSliding=!1,c()),t&&this.cycle()}}}_directionToOrder(e){return[ae,oe].includes(e)?s()?e===oe?re:ne:e===oe?ne:re:e}_orderToDirection(e){return[ne,re].includes(e)?s()?e===re?oe:ae:e===re?ae:oe:e}static carouselInterface(e,t){const i=he.getOrCreateInstance(e,t);let s=i["_config"];"object"==typeof t&&(s={...s,...t});e="string"==typeof t?t:s.slide;if("number"==typeof t)i.to(t);else if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}else s.interval&&s.ride&&(i.pause(),i.cycle())}static jQueryInterface(e){return this.each(function(){he.carouselInterface(this,e)})}static dataApiClickHandler(e){const t=c(this);if(t&&t.classList.contains("carousel")){const s={...r.getDataAttributes(t),...r.getDataAttributes(this)};var i=this.getAttribute("data-bs-slide-to");i&&(s.interval=!1),he.carouselInterface(t,s),i&&he.getInstance(t).to(i),e.preventDefault()}}}v.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",he.dataApiClickHandler),v.on(window,"load.bs.carousel.data-api",()=>{var i=u.find('[data-bs-ride="carousel"]');for(let e=0,t=i.length;ee===this._element);null!==n&&r.length&&(this._selector=n,this._triggerArray.push(s))}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return fe}static get NAME(){return pe}toggle(){this._isShown()?this.hide():this.show()}show(){if(!this._isTransitioning&&!this._isShown()){let e=[],t;if(this._config.parent){const n=u.find(xe,this._config.parent);e=u.find(".collapse.show, .collapse.collapsing",this._config.parent).filter(e=>!n.includes(e))}const s=u.findOne(this._selector);if(e.length){var i=e.find(e=>s!==e);if(t=i?Ee.getInstance(i):null,t&&t._isTransitioning)return}if(!v.trigger(this._element,"show.bs.collapse").defaultPrevented){e.forEach(e=>{s!==e&&Ee.getOrCreateInstance(e,{toggle:!1}).hide(),t||X.set(e,me,null)});const r=this._getDimension();this._element.classList.remove(ye),this._element.classList.add(be),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;i="scroll"+(r[0].toUpperCase()+r.slice(1));this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(be),this._element.classList.add(ye,ve),this._element.style[r]="",v.trigger(this._element,"shown.bs.collapse")},this._element,!0),this._element.style[r]=this._element[i]+"px"}}}hide(){if(!this._isTransitioning&&this._isShown()&&!v.trigger(this._element,"hide.bs.collapse").defaultPrevented){var e=this._getDimension(),t=(this._element.style[e]=this._element.getBoundingClientRect()[e]+"px",b(this._element),this._element.classList.add(be),this._element.classList.remove(ye,ve),this._triggerArray.length);for(let e=0;e{this._isTransitioning=!1,this._element.classList.remove(be),this._element.classList.add(ye),v.trigger(this._element,"hidden.bs.collapse")},this._element,!0)}}_isShown(e=this._element){return e.classList.contains(ve)}_getConfig(e){return(e={...fe,...r.getDataAttributes(this._element),...e}).toggle=Boolean(e.toggle),e.parent=n(e.parent),p(pe,e,ge),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(this._config.parent){const t=u.find(xe,this._config.parent);u.find(Te,this._config.parent).filter(e=>!t.includes(e)).forEach(e=>{var t=c(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))})}}_addAriaAndCollapsedClass(e,t){e.length&&e.forEach(e=>{t?e.classList.remove(we):e.classList.add(we),e.setAttribute("aria-expanded",t)})}static jQueryInterface(i){return this.each(function(){const e={},t=("string"==typeof i&&/show|hide/.test(i)&&(e.toggle=!1),Ee.getOrCreateInstance(this,e));if("string"==typeof i){if(void 0===t[i])throw new TypeError(`No method named "${i}"`);t[i]()}})}}v.on(document,"click.bs.collapse.data-api",Te,function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();e=l(this);const t=u.find(e);t.forEach(e=>{Ee.getOrCreateInstance(e,{toggle:!1}).toggle()})}),T(Ee);var k="top",A="bottom",M="right",P="left",_e="auto",Se=[k,A,M,P],Ce="start",ke="end",Ae="clippingParents",Me="viewport",Pe="popper",Oe="reference",Ie=Se.reduce(function(e,t){return e.concat([t+"-"+Ce,t+"-"+ke])},[]),Le=[].concat(Se,[_e]).reduce(function(e,t){return e.concat([t,t+"-"+Ce,t+"-"+ke])},[]),te="beforeRead",$e="afterRead",ze="beforeMain",Ne="afterMain",De="beforeWrite",je="afterWrite",Fe=[te,"read",$e,ze,"main",Ne,De,"write",je];function He(e){return e?(e.nodeName||"").toLowerCase():null}function qe(e){return null==e?window:"[object Window]"!==e.toString()?(t=e.ownerDocument)&&t.defaultView||window:e;var t}function Be(e){return e instanceof qe(e).Element||e instanceof Element}function Re(e){return e instanceof qe(e).HTMLElement||e instanceof HTMLElement}function We(e){return"undefined"!=typeof ShadowRoot&&(e instanceof qe(e).ShadowRoot||e instanceof ShadowRoot)}var e={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var n=e.state;Object.keys(n.elements).forEach(function(e){var t=n.styles[e]||{},i=n.attributes[e]||{},s=n.elements[e];Re(s)&&He(s)&&(Object.assign(s.style,t),Object.keys(i).forEach(function(e){var t=i[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var s=e.state,n={popper:{position:s.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(s.elements.popper.style,n.popper),s.styles=n,s.elements.arrow&&Object.assign(s.elements.arrow.style,n.arrow),function(){Object.keys(s.elements).forEach(function(e){var t=s.elements[e],i=s.attributes[e]||{},e=Object.keys((s.styles.hasOwnProperty(e)?s.styles:n)[e]).reduce(function(e,t){return e[t]="",e},{});Re(t)&&He(t)&&(Object.assign(t.style,e),Object.keys(i).forEach(function(e){t.removeAttribute(e)}))})}},requires:["computeStyles"]};function Ye(e){return e.split("-")[0]}function Xe(e){e=e.getBoundingClientRect();return{width:+e.width,height:+e.height,top:+e.top,right:+e.right,bottom:+e.bottom,left:+e.left,x:+e.left,y:+e.top}}function Ve(e){var t=Xe(e),i=e.offsetWidth,s=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-s)<=1&&(s=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:s}}function Ge(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&We(i)){var s=t;do{if(s&&e.isSameNode(s))return!0}while(s=s.parentNode||s.host)}return!1}function Ue(e){return qe(e).getComputedStyle(e)}function Qe(e){return((Be(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ke(e){return"html"===He(e)?e:e.assignedSlot||e.parentNode||(We(e)?e.host:null)||Qe(e)}function Ze(e){return Re(e)&&"fixed"!==Ue(e).position?e.offsetParent:null}function Je(e){for(var t,i=qe(e),s=Ze(e);s&&(t=s,0<=["table","td","th"].indexOf(He(t)))&&"static"===Ue(s).position;)s=Ze(s);return(!s||"html"!==He(s)&&("body"!==He(s)||"static"!==Ue(s).position))&&(s||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox"),i=-1!==navigator.userAgent.indexOf("Trident");if(i&&Re(e)&&"fixed"===Ue(e).position)return null;for(var s=Ke(e);Re(s)&&["html","body"].indexOf(He(s))<0;){var n=Ue(s);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 s;s=s.parentNode}return null}(e))||i}function et(e){return 0<=["top","bottom"].indexOf(e)?"x":"y"}var tt=Math.max,it=Math.min,st=Math.round;function nt(e,t,i){return tt(e,it(t,i))}function rt(){return{top:0,right:0,bottom:0,left:0}}function ot(e){return Object.assign({},rt(),e)}function at(i,e){return e.reduce(function(e,t){return e[t]=i,e},{})}var t={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i,s,n,r=e.state,d=e.name,e=e.options,o=r.elements.arrow,a=r.modifiersData.popperOffsets,l=et(c=Ye(r.placement)),c=0<=[P,M].indexOf(c)?"height":"width";o&&a&&(e=e.padding,i=r,i=ot("number"!=typeof(e="function"==typeof e?e(Object.assign({},i.rects,{placement:i.placement})):e)?e:at(e,Se)),e=Ve(o),n="y"===l?k:P,s="y"===l?A:M,t=r.rects.reference[c]+r.rects.reference[l]-a[l]-r.rects.popper[c],a=a[l]-r.rects.reference[l],o=(o=Je(o))?"y"===l?o.clientHeight||0:o.clientWidth||0:0,n=i[n],i=o-e[c]-i[s],n=nt(n,s=o/2-e[c]/2+(t/2-a/2),i),r.modifiersData[d]=((o={})[l]=n,o.centerOffset=n-s,o))},effect:function(e){var t=e.state;null!=(e=void 0===(e=e.options.element)?"[data-popper-arrow]":e)&&("string"!=typeof e||(e=t.elements.popper.querySelector(e)))&&Ge(t.elements.popper,e)&&(t.elements.arrow=e)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function lt(e){return e.split("-")[1]}var ct={top:"auto",right:"auto",bottom:"auto",left:"auto"};function dt(e){var t,i,s,n=e.popper,d=e.popperRect,r=e.placement,u=e.variation,o=e.offsets,h=e.position,p=e.gpuAcceleration,m=e.adaptive,e=e.roundOffsets,a=!0===e?(a=(l=o).x,l=o.y,c=window.devicePixelRatio||1,{x:st(st(a*c)/c)||0,y:st(st(l*c)/c)||0}):"function"==typeof e?e(o):o,l=a.x,c=void 0===l?0:l,e=a.y,e=void 0===e?0:e,f=o.hasOwnProperty("x"),o=o.hasOwnProperty("y"),g=P,v=k,y=window,n=(m&&(s="clientHeight",i="clientWidth",(t=Je(n))===qe(n)&&"static"!==Ue(t=Qe(n)).position&&"absolute"===h&&(s="scrollHeight",i="scrollWidth"),r!==k&&(r!==P&&r!==M||u!==ke)||(v=A,e=(e-(t[s]-d.height))*(p?1:-1)),r!==P&&(r!==k&&r!==A||u!==ke)||(g=M,c=(c-(t[i]-d.width))*(p?1:-1))),Object.assign({position:h},m&&ct));return p?Object.assign({},n,((s={})[v]=o?"0":"",s[g]=f?"0":"",s.transform=(y.devicePixelRatio||1)<=1?"translate("+c+"px, "+e+"px)":"translate3d("+c+"px, "+e+"px, 0)",s)):Object.assign({},n,((r={})[v]=o?e+"px":"",r[g]=f?c+"px":"",r.transform="",r))}var ut={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,e=e.options,i=void 0===(i=e.gpuAcceleration)||i,s=void 0===(s=e.adaptive)||s,e=void 0===(e=e.roundOffsets)||e,i={placement:Ye(t.placement),variation:lt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,dt(Object.assign({},i,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:e})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,dt(Object.assign({},i,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:e})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},ht={passive:!0};var pt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,s=(e=e.options).scroll,n=void 0===s||s,r=void 0===(s=e.resize)||s,o=qe(t.elements.popper),a=[].concat(t.scrollParents.reference,t.scrollParents.popper);return n&&a.forEach(function(e){e.addEventListener("scroll",i.update,ht)}),r&&o.addEventListener("resize",i.update,ht),function(){n&&a.forEach(function(e){e.removeEventListener("scroll",i.update,ht)}),r&&o.removeEventListener("resize",i.update,ht)}},data:{}},mt={left:"right",right:"left",bottom:"top",top:"bottom"};function ft(e){return e.replace(/left|right|bottom|top/g,function(e){return mt[e]})}var gt={start:"end",end:"start"};function vt(e){return e.replace(/start|end/g,function(e){return gt[e]})}function yt(e){e=qe(e);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function bt(e){return Xe(Qe(e)).left+yt(e).scrollLeft}function wt(e){var e=Ue(e),t=e.overflow,i=e.overflowX,e=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+e+i)}function xt(e,t){void 0===t&&(t=[]);var i=function e(t){return 0<=["html","body","#document"].indexOf(He(t))?t.ownerDocument.body:Re(t)&&wt(t)?t:e(Ke(t))}(e),e=i===(null==(e=e.ownerDocument)?void 0:e.body),s=qe(i),s=e?[s].concat(s.visualViewport||[],wt(i)?i:[]):i,i=t.concat(s);return e?i:i.concat(xt(Ke(s)))}function Tt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Et(e,t){return t===Me?Tt((s=qe(i=e),n=Qe(i),s=s.visualViewport,r=n.clientWidth,n=n.clientHeight,a=o=0,s&&(r=s.width,n=s.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=s.offsetLeft,a=s.offsetTop)),{width:r,height:n,x:o+bt(i),y:a})):Re(t)?((r=Xe(s=t)).top=r.top+s.clientTop,r.left=r.left+s.clientLeft,r.bottom=r.top+s.clientHeight,r.right=r.left+s.clientWidth,r.width=s.clientWidth,r.height=s.clientHeight,r.x=r.left,r.y=r.top,r):Tt((n=Qe(e),o=Qe(n),i=yt(n),a=null==(a=n.ownerDocument)?void 0:a.body,t=tt(o.scrollWidth,o.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),e=tt(o.scrollHeight,o.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),n=-i.scrollLeft+bt(n),i=-i.scrollTop,"rtl"===Ue(a||o).direction&&(n+=tt(o.clientWidth,a?a.clientWidth:0)-t),{width:t,height:e,x:n,y:i}));var i,s,n,r,o,a}function _t(i,e,t){var s,n="clippingParents"===e?(r=xt(Ke(n=i)),Be(s=0<=["absolute","fixed"].indexOf(Ue(n).position)&&Re(n)?Je(n):n)?r.filter(function(e){return Be(e)&&Ge(e,s)&&"body"!==He(e)}):[]):[].concat(e),r=[].concat(n,[t]),e=r[0],t=r.reduce(function(e,t){t=Et(i,t);return e.top=tt(t.top,e.top),e.right=it(t.right,e.right),e.bottom=it(t.bottom,e.bottom),e.left=tt(t.left,e.left),e},Et(i,e));return t.width=t.right-t.left,t.height=t.bottom-t.top,t.x=t.left,t.y=t.top,t}function St(e){var t,i=e.reference,s=e.element,e=e.placement,n=e?Ye(e):null,e=e?lt(e):null,r=i.x+i.width/2-s.width/2,o=i.y+i.height/2-s.height/2;switch(n){case k:t={x:r,y:i.y-s.height};break;case A:t={x:r,y:i.y+i.height};break;case M:t={x:i.x+i.width,y:o};break;case P:t={x:i.x-s.width,y:o};break;default:t={x:i.x,y:i.y}}var a=n?et(n):null;if(null!=a){var l="y"===a?"height":"width";switch(e){case Ce:t[a]=t[a]-(i[l]/2-s[l]/2);break;case ke:t[a]=t[a]+(i[l]/2-s[l]/2)}}return t}function Ct(e,t){var s,t=t=void 0===t?{}:t,i=t.placement,i=void 0===i?e.placement:i,n=t.boundary,n=void 0===n?Ae:n,r=t.rootBoundary,r=void 0===r?Me:r,o=t.elementContext,o=void 0===o?Pe:o,a=t.altBoundary,a=void 0!==a&&a,t=t.padding,t=void 0===t?0:t,t=ot("number"!=typeof t?t:at(t,Se)),l=e.rects.popper,a=e.elements[a?o===Pe?Oe:Pe:o],a=_t(Be(a)?a:a.contextElement||Qe(e.elements.popper),n,r),n=Xe(e.elements.reference),r=St({reference:n,element:l,strategy:"absolute",placement:i}),l=Tt(Object.assign({},l,r)),r=o===Pe?l:n,c={top:a.top-r.top+t.top,bottom:r.bottom-a.bottom+t.bottom,left:a.left-r.left+t.left,right:r.right-a.right+t.right},l=e.modifiersData.offset;return o===Pe&&l&&(s=l[i],Object.keys(c).forEach(function(e){var t=0<=[M,A].indexOf(e)?1:-1,i=0<=[k,A].indexOf(e)?"y":"x";c[e]+=s[i]*t})),c}var kt={name:"flip",enabled:!0,phase:"main",fn:function(e){var u=e.state,t=e.options,e=e.name;if(!u.modifiersData[e]._skip){for(var i=t.mainAxis,c=void 0===i||i,i=t.altAxis,d=void 0===i||i,i=t.fallbackPlacements,h=t.padding,p=t.boundary,m=t.rootBoundary,f=t.altBoundary,s=t.flipVariations,g=void 0===s||s,v=t.allowedAutoPlacements,s=u.options.placement,t=Ye(s),i=i||(t===s||!g?[ft(s)]:function(e){if(Ye(e)===_e)return[];var t=ft(e);return[vt(e),t,vt(t)]}(s)),n=[s].concat(i).reduce(function(e,t){return e.concat(Ye(t)===_e?(i=u,s=(e=e=void 0===(e={placement:t,boundary:p,rootBoundary:m,padding:h,flipVariations:g,allowedAutoPlacements:v})?{}:e).placement,n=e.boundary,r=e.rootBoundary,o=e.padding,a=e.flipVariations,d=void 0===(e=e.allowedAutoPlacements)?Le:e,l=lt(s),e=l?a?Ie:Ie.filter(function(e){return lt(e)===l}):Se,c=(s=0===(s=e.filter(function(e){return 0<=d.indexOf(e)})).length?e:s).reduce(function(e,t){return e[t]=Ct(i,{placement:t,boundary:n,rootBoundary:r,padding:o})[Ye(t)],e},{}),Object.keys(c).sort(function(e,t){return c[e]-c[t]})):t);var i,s,n,r,o,a,d,l,c},[]),y=u.rects.reference,b=u.rects.popper,w=new Map,x=!0,r=n[0],T=0;Tb[l]&&(a=ft(a)),ft(a)),l=[];if(c&&l.push(S[E]<=0),d&&l.push(S[a]<=0,S[_]<=0),l.every(function(e){return e})){r=o,x=!1;break}w.set(o,l)}if(x)for(var C=g?3:1;0v.on(e,"mouseover",y)),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Xt),this._element.classList.add(Xt),v.trigger(this._element,"shown.bs.dropdown",e)}}}hide(){var e;!f(this._element)&&this._isShown(this._menu)&&(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){v.trigger(this._element,"hide.bs.dropdown",e).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(e=>v.off(e,"mouseover",y)),this._popper&&this._popper.destroy(),this._menu.classList.remove(Xt),this._element.classList.remove(Xt),this._element.setAttribute("aria-expanded","false"),r.removeDataAttribute(this._menu,"popper"),v.trigger(this._element,"hidden.bs.dropdown",e))}_getConfig(e){if(e={...this.constructor.Default,...r.getDataAttributes(this._element),...e},p(qt,e,this.constructor.DefaultType),"object"==typeof e.reference&&!h(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(qt.toUpperCase()+': Option "reference" provided type "object" without a required "getBoundingClientRect" method.');return e}_createPopper(e){if(void 0===Ht)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=e:h(this._config.reference)?t=n(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const i=this._getPopperConfig();e=i.modifiers.find(e=>"applyStyles"===e.name&&!1===e.enabled);this._popper=Ft(t,this._menu,i),e&&r.setDataAttribute(this._menu,"popper","static")}_isShown(e=this._element){return e.classList.contains(Xt)}_getMenuElement(){return u.next(this._element,Gt)[0]}_getPlacement(){const e=this._element.parentNode;if(e.classList.contains("dropend"))return Jt;if(e.classList.contains("dropstart"))return ei;var t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?Qt:Ut:t?Zt:Kt}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const t=this._config["offset"];return"string"==typeof t?t.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){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(m);i.length&&S(i,t,e===Wt,!i.includes(t)).focus()}static jQueryInterface(t){return this.each(function(){const e=si.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(i){if(!i||2!==i.button&&("keyup"!==i.type||"Tab"===i.key)){var s=u.find(Vt);for(let e=0,t=s.length;ee+t),this._setElementAttributes(ni,"paddingRight",e=>e+t),this._setElementAttributes(ri,"marginRight",e=>e-t)}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,i,s){const n=this.getWidth();this._applyManipulationCallback(e,e=>{var t;e!==this._element&&window.innerWidth>e.clientWidth+n||(this._saveInitialAttribute(e,i),t=window.getComputedStyle(e)[i],e.style[i]=s(Number.parseFloat(t))+"px")})}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(ni,"paddingRight"),this._resetElementAttributes(ri,"marginRight")}_saveInitialAttribute(e,t){var i=e.style[t];i&&r.setDataAttribute(e,t,i)}_resetElementAttributes(e,i){this._applyManipulationCallback(e,e=>{var t=r.getDataAttribute(e,i);void 0===t?e.style.removeProperty(i):(r.removeDataAttribute(e,i),e.style[i]=t)})}_applyManipulationCallback(e,t){h(e)?t(e):u.find(e,this._element).forEach(t)}isOverflowing(){return 0{E(e)})):E(e)}hide(e){this._config.isVisible?(this._getElement().classList.remove("show"),this._emulateAnimation(()=>{this.dispose(),E(e)})):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=n(e.rootElement),p(ci,e,li),e}_append(){this._isAppended||(this._config.rootElement.append(this._getElement()),v.on(this._getElement(),di,()=>{E(this._config.clickCallback)}),this._isAppended=!0)}dispose(){this._isAppended&&(v.off(this._element,di),this._element.remove(),this._isAppended=!1)}_emulateAnimation(e){_(e,this._getElement(),this._config.isAnimated)}}const hi={trapElement:null,autofocus:!0},pi={trapElement:"element",autofocus:"boolean"};const mi=".bs.focustrap",fi=(mi,mi,"backward");class gi{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(),v.off(document,mi),v.on(document,"focusin.bs.focustrap",e=>this._handleFocusin(e)),v.on(document,"keydown.tab.bs.focustrap",e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,v.off(document,mi))}_handleFocusin(e){e=e.target;const t=this._config["trapElement"];if(e!==document&&e!==t&&!t.contains(e)){const i=u.focusableChildren(t);(0===i.length?t:this._lastTabNavDirection===fi?i[i.length-1]:i[0]).focus()}}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?fi:"forward")}_getConfig(e){return e={...hi,..."object"==typeof e?e:{}},p("focustrap",e,pi),e}}const vi=".bs.modal";const yi={backdrop:!0,keyboard:!0,focus:!0},bi={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},wi=(vi,vi,"hidden"+vi),xi="show"+vi,Ti=(vi,"resize"+vi),Ei="click.dismiss"+vi,_i="keydown.dismiss"+vi,Si=(vi,"mousedown.dismiss"+vi);vi;const Ci="modal-open",ki="modal-static";class Ai extends V{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 oi}static get Default(){return yi}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||v.trigger(this._element,xi,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add(Ci),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),v.on(this._dialog,Si,()=>{v.one(this._element,"mouseup.dismiss.bs.modal",e=>{e.target===this._element&&(this._ignoreBackdropClick=!0)})}),this._showBackdrop(()=>this._showElement(e)))}hide(){var e;this._isShown&&!this._isTransitioning&&(v.trigger(this._element,"hide.bs.modal").defaultPrevented||(this._isShown=!1,(e=this._isAnimated())&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),this._focustrap.deactivate(),this._element.classList.remove("show"),v.off(this._element,Ei),v.off(this._dialog,Si),this._queueCallback(()=>this._hideModal(),this._element,e)))}dispose(){[window,this._dialog].forEach(e=>v.off(e,vi)),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new ui({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new gi({trapElement:this._element})}_getConfig(e){return e={...yi,...r.getDataAttributes(this._element),..."object"==typeof e?e:{}},p("modal",e,bi),e}_showElement(e){var t=this._isAnimated();const 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&&b(this._element),this._element.classList.add("show");this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,v.trigger(this._element,"shown.bs.modal",{relatedTarget:e})},this._dialog,t)}_setEscapeEvent(){this._isShown?v.on(this._element,_i,e=>{this._config.keyboard&&"Escape"===e.key?(e.preventDefault(),this.hide()):this._config.keyboard||"Escape"!==e.key||this._triggerBackdropTransition()}):v.off(this._element,_i)}_setResizeEvent(){this._isShown?v.on(window,Ti,()=>this._adjustDialog()):v.off(window,Ti)}_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(Ci),this._resetAdjustments(),this._scrollBar.reset(),v.trigger(this._element,wi)})}_showBackdrop(e){v.on(this._element,Ei,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(!v.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented){const{classList:e,scrollHeight:t,style:i}=this._element,s=t>document.documentElement.clientHeight;!s&&"hidden"===i.overflowY||e.contains(ki)||(s||(i.overflowY="hidden"),e.add(ki),this._queueCallback(()=>{e.remove(ki),s||this._queueCallback(()=>{i.overflowY=""},this._dialog)},this._dialog),this._element.focus())}}_adjustDialog(){var e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),i=0{e.defaultPrevented||v.one(t,wi,()=>{m(this)&&this.focus()})});e=u.findOne(".modal.show");e&&Ai.getInstance(e).hide();const i=Ai.getOrCreateInstance(t);i.toggle(this)}),G(Ai),T(Ai);const Mi="offcanvas";De=".bs.offcanvas";const Pi={backdrop:!0,keyboard:!0,scroll:!1},Oi={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},Ii=".offcanvas.show",Li="hidden"+De;class $i extends V{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 Mi}static get Default(){return Pi}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||v.trigger(this._element,"show.bs.offcanvas",{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||(new oi).hide(),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add("show"),this._queueCallback(()=>{this._config.scroll||this._focustrap.activate(),v.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:e})},this._element,!0))}hide(){this._isShown&&(v.trigger(this._element,"hide.bs.offcanvas").defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.remove("show"),this._backdrop.hide(),this._queueCallback(()=>{this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._element.style.visibility="hidden",this._config.scroll||(new oi).reset(),v.trigger(this._element,Li)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_getConfig(e){return e={...Pi,...r.getDataAttributes(this._element),..."object"==typeof e?e:{}},p(Mi,e,Oi),e}_initializeBackDrop(){return new ui({className:"offcanvas-backdrop",isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_initializeFocusTrap(){return new gi({trapElement:this._element})}_addEventListeners(){v.on(this._element,"keydown.dismiss.bs.offcanvas",e=>{this._config.keyboard&&"Escape"===e.key&&this.hide()})}static jQueryInterface(t){return this.each(function(){const e=$i.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}})}}v.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',function(e){var t=c(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),!f(this)){v.one(t,Li,()=>{m(this)&&this.focus()});e=u.findOne(Ii);e&&e!==t&&$i.getInstance(e).hide();const i=$i.getOrCreateInstance(t);i.toggle(this)}}),v.on(window,"load.bs.offcanvas.data-api",()=>u.find(Ii).forEach(e=>$i.getOrCreateInstance(e).show())),G($i),T($i);const zi=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]);const Ni=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,Di=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;je={"*":["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:[]};function ji(e,i,t){if(!e.length)return e;if(t&&"function"==typeof t)return t(e);const s=new window.DOMParser,n=s.parseFromString(e,"text/html");var r=[].concat(...n.body.querySelectorAll("*"));for(let e=0,t=r.length;e{((e,t)=>{var i=e.nodeName.toLowerCase();if(t.includes(i))return!zi.has(i)||Boolean(Ni.test(e.nodeValue)||Di.test(e.nodeValue));const s=t.filter(e=>e instanceof RegExp);for(let e=0,t=s.length;e
',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:je,popperConfig:null},Wi={HIDE:"hide"+e,HIDDEN:"hidden"+e,SHOW:"show"+e,SHOWN:"shown"+e,INSERTED:"inserted"+e,CLICK:"click"+e,FOCUSIN:"focusin"+e,FOCUSOUT:"focusout"+e,MOUSEENTER:"mouseenter"+e,MOUSELEAVE:"mouseleave"+e},Yi="fade";const Xi="show",Vi="show",Gi=".tooltip-inner",Ui="hide.bs.modal",Qi="hover",Ki="focus";class Zi extends V{constructor(e,t){if(void 0===Ht)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 Ri}static get NAME(){return Fi}static get Event(){return Wi}static get DefaultType(){return qi}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 this.getTipElement().classList.contains(Xi)?this._leave(null,this):this._enter(null,this)}dispose(){clearTimeout(this._timeout),v.off(this._element.closest(".modal"),Ui,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){var e=v.trigger(this._element,this.constructor.Event.SHOW);const i=g(this._element);var t=(null===i?this._element.ownerDocument.documentElement:i).contains(this._element);if(!e.defaultPrevented&&t){"tooltip"===this.constructor.NAME&&this.tip&&this.getTitle()!==this.tip.querySelector(Gi).innerHTML&&(this._disposePopper(),this.tip.remove(),this.tip=null);const s=this.getTipElement();e=(e=>{for(;e+=Math.floor(1e6*Math.random()),document.getElementById(e););return e})(this.constructor.NAME),t=(s.setAttribute("id",e),this._element.setAttribute("aria-describedby",e),this._config.animation&&s.classList.add(Yi),"function"==typeof this._config.placement?this._config.placement.call(this,s,this._element):this._config.placement),e=this._getAttachment(t);this._addAttachmentClass(e);const n=this._config["container"],r=(X.set(s,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(n.append(s),v.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=Ft(this._element,s,this._getPopperConfig(e)),s.classList.add(Xi),this._resolvePossibleFunction(this._config.customClass));r&&s.classList.add(...r.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(e=>{v.on(e,"mouseover",y)});t=this.tip.classList.contains(Yi);this._queueCallback(()=>{var e=this._hoverState;this._hoverState=null,v.trigger(this._element,this.constructor.Event.SHOWN),"out"===e&&this._leave(null,this)},this.tip,t)}}}hide(){if(this._popper){const t=this.getTipElement();var e;v.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented||(t.classList.remove(Xi),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(e=>v.off(e,"mouseover",y)),this._activeTrigger.click=!1,this._activeTrigger[Ki]=!1,this._activeTrigger[Qi]=!1,e=this.tip.classList.contains(Yi),this._queueCallback(()=>{this._isWithActiveTrigger()||(this._hoverState!==Vi&&t.remove(),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),v.trigger(this._element,this.constructor.Event.HIDDEN),this._disposePopper())},this.tip,e),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"),t=(e.innerHTML=this._config.template,e.children[0]);return this.setContent(t),t.classList.remove(Yi,Xi),this.tip=t,this.tip}setContent(e){this._sanitizeAndSetContent(e,this.getTitle(),Gi)}_sanitizeAndSetContent(e,t,i){const s=u.findOne(i,e);t||!s?this.setElementContent(s,t):s.remove()}setElementContent(e,t){if(null!==e)return h(t)?(t=n(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=ji(t,this._config.allowList,this._config.sanitizeFn)),e.innerHTML=t):e.textContent=t)}getTitle(){var 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 t=this._config["offset"];return"string"==typeof t?t.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(e){return"function"==typeof e?e.call(this._element):e}_getPopperConfig(e){e={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:e=>this._handlePopperPlacementChange(e)}],onFirstUpdate:e=>{e.options.placement!==e.placement&&this._handlePopperPlacementChange(e)}};return{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_addAttachmentClass(e){this.getTipElement().classList.add(this._getBasicClassPrefix()+"-"+this.updateAttachment(e))}_getAttachment(e){return Bi[e.toUpperCase()]}_setListeners(){const e=this._config.trigger.split(" ");e.forEach(e=>{var t;"click"===e?v.on(this._element,this.constructor.Event.CLICK,this._config.selector,e=>this.toggle(e)):"manual"!==e&&(t=e===Qi?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,e=e===Qi?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT,v.on(this._element,t,this._config.selector,e=>this._enter(e)),v.on(this._element,e,this._config.selector,e=>this._leave(e)))}),this._hideModalHandler=()=>{this._element&&this.hide()},v.on(this._element.closest(".modal"),Ui,this._hideModalHandler),this._config.selector?this._config={...this._config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){var e=this._element.getAttribute("title"),t=typeof this._element.getAttribute("data-bs-original-title");!e&&"string"==t||(this._element.setAttribute("data-bs-original-title",e||""),!e||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",e),this._element.setAttribute("title",""))}_enter(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusin"===e.type?Ki:Qi]=!0),t.getTipElement().classList.contains(Xi)||t._hoverState===Vi?t._hoverState=Vi:(clearTimeout(t._timeout),t._hoverState=Vi,t._config.delay&&t._config.delay.show?t._timeout=setTimeout(()=>{t._hoverState===Vi&&t.show()},t._config.delay.show):t.show())}_leave(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusout"===e.type?Ki:Qi]=t._element.contains(e.relatedTarget)),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState="out",t._config.delay&&t._config.delay.hide?t._timeout=setTimeout(()=>{"out"===t._hoverState&&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=r.getDataAttributes(this._element);return Object.keys(t).forEach(e=>{Hi.has(e)&&delete t[e]}),(e={...this.constructor.Default,...t,..."object"==typeof e&&e?e:{}}).container=!1===e.container?document.body:n(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()),p(Fi,e,this.constructor.DefaultType),e.sanitize&&(e.template=ji(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 t=this.getTipElement();var e=new RegExp(`(^|\\s)${this._getBasicClassPrefix()}\\S+`,"g");const i=t.getAttribute("class").match(e);null!==i&&0e.trim()).forEach(e=>t.classList.remove(e))}_getBasicClassPrefix(){return"bs-tooltip"}_handlePopperPlacementChange(e){e=e.state;e&&(this.tip=e.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(e.placement)))}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jQueryInterface(t){return this.each(function(){const e=Zi.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}T(Zi);t=".bs.popover";const Ji={...Zi.Default,placement:"right",offset:[0,8],trigger:"click",content:"",template:''},es={...Zi.DefaultType,content:"(string|element|function)"},ts={HIDE:"hide"+t,HIDDEN:"hidden"+t,SHOW:"show"+t,SHOWN:"shown"+t,INSERTED:"inserted"+t,CLICK:"click"+t,FOCUSIN:"focusin"+t,FOCUSOUT:"focusout"+t,MOUSEENTER:"mouseenter"+t,MOUSELEAVE:"mouseleave"+t};class is extends Zi{static get Default(){return Ji}static get NAME(){return"popover"}static get Event(){return ts}static get DefaultType(){return es}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(t){return this.each(function(){const e=is.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}T(is);const ss="scrollspy";const ns=".bs.scrollspy";const rs={offset:10,method:"auto",target:""},os={offset:"number",method:"string",target:"(string|element)"};ns,ns;ns;const as="dropdown-item",ls="active",cs=".nav-link",ds=".list-group-item",us=cs+`, ${ds}, .`+as,hs="position";class ps extends V{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,v.on(this._scrollElement,"scroll.bs.scrollspy",()=>this._process()),this.refresh(),this._process()}static get Default(){return rs}static get NAME(){return ss}refresh(){var e=this._scrollElement===this._scrollElement.window?"offset":hs;const s="auto"===this._config.method?e:this._config.method,n=s===hs?this._getScrollTop():0,t=(this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),u.find(us,this._config.target));t.map(e=>{e=l(e);const t=e?u.findOne(e):null;if(t){var i=t.getBoundingClientRect();if(i.width||i.height)return[r[s](t).top+n,e]}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(){v.off(this._scrollElement,ns),super.dispose()}_getConfig(e){return(e={...rs,...r.getDataAttributes(this._element),..."object"==typeof e&&e?e:{}}).target=n(e.target)||document.documentElement,p(ss,e,os),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(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),i=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),i<=t)return e=this._targets[this._targets.length-1],void(this._activeTarget!==e&&this._activate(e));if(this._activeTarget&&t=this._offsets[e]&&(void 0===this._offsets[e+1]||te+`[data-bs-target="${t}"],${e}[href="${t}"]`),i=u.findOne(e.join(","),this._config.target);i.classList.add(ls),i.classList.contains(as)?u.findOne(".dropdown-toggle",i.closest(".dropdown")).classList.add(ls):u.parents(i,".nav, .list-group").forEach(e=>{u.prev(e,cs+", "+ds).forEach(e=>e.classList.add(ls)),u.prev(e,".nav-item").forEach(e=>{u.children(e,cs).forEach(e=>e.classList.add(ls))})}),v.trigger(this._scrollElement,"activate.bs.scrollspy",{relatedTarget:t})}_clear(){u.find(us,this._config.target).filter(e=>e.classList.contains(ls)).forEach(e=>e.classList.remove(ls))}static jQueryInterface(t){return this.each(function(){const e=ps.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}v.on(window,"load.bs.scrollspy.data-api",()=>{u.find('[data-bs-spy="scroll"]').forEach(e=>new ps(e))}),T(ps);const ms="active",fs=".active",gs=":scope > li > .active";class vs extends V{static get NAME(){return"tab"}show(){if(!this._element.parentNode||this._element.parentNode.nodeType!==Node.ELEMENT_NODE||!this._element.classList.contains(ms)){let e;var t=c(this._element),i=this._element.closest(".nav, .list-group"),s=(i&&(s="UL"===i.nodeName||"OL"===i.nodeName?gs:fs,e=u.find(s,i),e=e[e.length-1]),e?v.trigger(e,"hide.bs.tab",{relatedTarget:this._element}):null);v.trigger(this._element,"show.bs.tab",{relatedTarget:e}).defaultPrevented||null!==s&&s.defaultPrevented||(this._activate(this._element,i),s=()=>{v.trigger(e,"hidden.bs.tab",{relatedTarget:this._element}),v.trigger(this._element,"shown.bs.tab",{relatedTarget:e})},t?this._activate(t,t.parentNode,s):s())}}_activate(e,t,i){const s=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?u.children(t,fs):u.find(gs,t))[0];var t=i&&s&&s.classList.contains("fade"),n=()=>this._transitionComplete(e,s,i);s&&t?(s.classList.remove("show"),this._queueCallback(n,e,!0)):n()}_transitionComplete(e,t,i){if(t){t.classList.remove(ms);const n=u.findOne(":scope > .dropdown-menu .active",t.parentNode);n&&n.classList.remove(ms),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}e.classList.add(ms),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),b(e),e.classList.contains("fade")&&e.classList.add("show");let s=e.parentNode;s&&"LI"===s.nodeName&&(s=s.parentNode),s&&s.classList.contains("dropdown-menu")&&((t=e.closest(".dropdown"))&&u.find(".dropdown-toggle",t).forEach(e=>e.classList.add(ms)),e.setAttribute("aria-expanded",!0)),i&&i()}static jQueryInterface(t){return this.each(function(){const e=vs.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}v.on(document,"click.bs.tab.data-api",'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',function(e){if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),!f(this)){const t=vs.getOrCreateInstance(this);t.show()}}),T(vs);const ys="show",bs="showing",ws={animation:"boolean",autohide:"boolean",delay:"number"},xs={animation:!0,autohide:!0,delay:5e3};class Ts extends V{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 ws}static get Default(){return xs}static get NAME(){return"toast"}show(){v.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove("hide"),b(this._element),this._element.classList.add(ys),this._element.classList.add(bs),this._queueCallback(()=>{this._element.classList.remove(bs),v.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this._element.classList.contains(ys)&&(v.trigger(this._element,"hide.bs.toast").defaultPrevented||(this._element.classList.add(bs),this._queueCallback(()=>{this._element.classList.add("hide"),this._element.classList.remove(bs),this._element.classList.remove(ys),v.trigger(this._element,"hidden.bs.toast")},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this._element.classList.contains(ys)&&this._element.classList.remove(ys),super.dispose()}_getConfig(e){return e={...xs,...r.getDataAttributes(this._element),..."object"==typeof e&&e?e:{}},p("toast",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}t?this._clearTimeout():(e=e.relatedTarget,this._element===e||this._element.contains(e)||this._maybeScheduleHide())}_setListeners(){v.on(this._element,"mouseover.bs.toast",e=>this._onInteraction(e,!0)),v.on(this._element,"mouseout.bs.toast",e=>this._onInteraction(e,!1)),v.on(this._element,"focusin.bs.toast",e=>this._onInteraction(e,!0)),v.on(this._element,"focusout.bs.toast",e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const e=Ts.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}})}}return G(Ts),T(Ts),{Alert:U,Button:K,Carousel:he,Collapse:Ee,Dropdown:si,Modal:Ai,Offcanvas:$i,Popover:is,ScrollSpy:ps,Tab:vs,Toast:Ts,Tooltip:Zi}}),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ClipboardJS=t():e.ClipboardJS=t()}(this,function(){return i={686:function(i,e,t){"use strict";t.d(e,{default:function(){return s}});var e=t(279),m=t.n(e),e=t(370),f=t.n(e),e=t(817),o=t.n(e);function a(e){try{return document.execCommand(e)}catch(e){return}}function l(e){return e=o()(e),a("cut"),e}function c(e){var t,i,s,n=1{"use strict";var s={d:(e,t)=>{for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},e={};s.r(e),s.d(e,{default:()=>t,divideNumbers:()=>l});const t=(e,t={})=>{const{action:i="start",duration:s=1e3,delay:n=16}=t;if("stop"!==i){if(a(e),/[0-9]/.test(e.innerHTML)){const r=l(e.innerHTML,{duration:s||e.getAttribute("data-duration"),delay:n||e.getAttribute("data-delay")}),o=(e._countUpOrigInnerHTML=e.innerHTML,e.innerHTML=r[0]||" ",e.style.visibility="visible",function(){e.innerHTML=r.shift()||" ",r.length?(clearTimeout(e.countUpTimeout),e.countUpTimeout=setTimeout(o,n)):e._countUpOrigInnerHTML=void 0});e.countUpTimeout=setTimeout(o,n)}}else a(e)},a=e=>{clearTimeout(e.countUpTimeout),e._countUpOrigInnerHTML&&(e.innerHTML=e._countUpOrigInnerHTML,e._countUpOrigInnerHTML=void 0),e.style.visibility=""},l=(e,t={})=>{const{duration:n=1e3,delay:i=16}=t,r=n/i,o=e.toString().split(/(<[^>]+>|[0-9.][,.0-9]*[0-9]*)/),a=[];for(let e=0;e]+>/.test(o[t])){let i=o[t];const n=[...i.matchAll(/[.,]/g)].map(e=>({char:e[0],i:i.length-e.index-1})).sort((e,t)=>e.i-t.i);i=i.replace(/[.,]/g,"");let s=a.length-1;for(let t=r;1<=t;t--){let e=parseInt(i/r*t,10);e=n.reduce((e,{char:t,i})=>e.length<=i?e:e.slice(0,-i)+t+e.slice(-i),e.toString()),a[s--]+=e}}else for(let e=0;et.length&&(i="1"),[]);h(t,function(e){s.push(e.getAttribute("data-taborder"))});e=s.filter(function(e){return e>=parseInt(i)}).sort()[0];return document.querySelector('.gbtn[data-taborder="'.concat(e,'"]'))}function x(e){return Math.sqrt(e.x*e.x+e.y*e.y)}function T(e,t){n=t;var i,s,n=0==(s=x(i=e)*x(n))?0:(1<(i=(i.x*n.x+i.y*n.y)/s)&&(i=1),Math.acos(i));return 0=Math.abs(i-s)?0t&&(t=t/2-e.naturalWidth/2,this.setTranslate(this.img.parentNode,t,0)),this.slide.classList.add("zoomed"),this.zoomedIn=!0)}},{key:"zoomOut",value:function(){this.img.parentNode.setAttribute("style",""),this.img.setAttribute("style",this.img.getAttribute("data-style")),this.slide.classList.remove("zoomed"),this.zoomedIn=!1,this.currentX=null,this.currentY=null,this.initialX=null,this.initialY=null,this.xOffset=0,this.yOffset=0,this.onclose&&"function"==typeof this.onclose&&this.onclose()}},{key:"dragStart",value:function(e){e.preventDefault(),this.zoomedIn?("touchstart"===e.type?(this.initialX=e.touches[0].clientX-this.xOffset,this.initialY=e.touches[0].clientY-this.yOffset):(this.initialX=e.clientX-this.xOffset,this.initialY=e.clientY-this.yOffset),e.target===this.img&&(this.active=!0,this.img.classList.add("dragging"))):this.active=!1}},{key:"dragEnd",value:function(e){var t=this;e.preventDefault(),this.initialX=this.currentX,this.initialY=this.currentY,this.active=!1,setTimeout(function(){t.dragging=!1,t.img.isDragging=!1,t.img.classList.remove("dragging")},100)}},{key:"drag",value:function(e){this.active&&(e.preventDefault(),"touchmove"===e.type?(this.currentX=e.touches[0].clientX-this.initialX,this.currentY=e.touches[0].clientY-this.initialY):(this.currentX=e.clientX-this.initialX,this.currentY=e.clientY-this.initialY),this.xOffset=this.currentX,this.yOffset=this.currentY,this.img.isDragging=!0,this.dragging=!0,this.setTranslate(this.img,this.currentX,this.currentY))}},{key:"onMove",value:function(e){var t;this.zoomedIn&&(t=e.clientX-this.img.naturalWidth/2,e=e.clientY-this.img.naturalHeight/2,this.setTranslate(this.img,t,e))}},{key:"setTranslate",value:function(e,t,i){e.style.transform="translate3d("+t+"px, "+i+"px, 0)"}},{key:"widowWidth",value:function(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}}]);var C=k;function k(e,t){var i=this,s=2=Math.abs(this.currentY)&&(!this.lastDirection||"x"==this.lastDirection)){this.yOffset=0,this.lastDirection="x",this.setTranslate(this.dragContainer,this.currentX,0);var i=this.shouldChange();if(!this.instance.settings.dragAutoSnap&&i&&(this.doSlideChange=i),this.instance.settings.dragAutoSnap&&i)return this.instance.preventOutsideClick=!0,this.toleranceReached=!0,this.active=!1,this.instance.preventOutsideClick=!0,this.dragEnd(null),"right"==i&&this.instance.prevSlide(),void("left"==i&&this.instance.nextSlide())}0=this.toleranceX&&(("left"==(e=0=this.toleranceY?!0:e}},{key:"setTranslate",value:function(e,t,i){e.style.transition=3'),e.firstChild),r.querySelector(".gvideo-wrapper")),u=(i(this.settings.plyr.css,"Plyr"),o.href),h=(location.protocol.replace(":",""),""),p="",g=!1;e.style.maxWidth=o.width,i(this.settings.plyr.js,"Plyr",function(){if(u.match(/vimeo\.com\/([0-9]*)/)&&(s=/vimeo.*\/(\d+)/i.exec(u),h="vimeo",p=s[1]),(u.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/)||u.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/)||u.match(/(youtube\.com|youtube-nocookie\.com)\/embed\/([a-zA-Z0-9\-_]+)/))&&(s=function(e){var t="";t=void 0!==(e=e.replace(/(>|<)/gi,"").split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/))[2]?(t=e[2].split(/[^0-9a-z_\-]/i))[0]:e;return t}(u),h="youtube",p=s),null!==u.match(/\.(mp4|ogg|webm|mov)$/)){h="local";var e,t,i='")}s=g||y('
')),L(d,"".concat(h,"-video gvideo")),d.appendChild(s),d.setAttribute("data-id",c),d.setAttribute("data-index",a),s=v(l.settings.plyr,"config")?l.settings.plyr.config:{},s=new Plyr("#"+c,s);s.on("ready",function(e){e=e.detail.plyr;f[c]=e,D(m)&&m()}),b(function(){return r.querySelector("iframe")&&"true"==r.querySelector("iframe").dataset.ready},function(){l.resize(r)}),s.on("enterfullscreen",O),s.on("exitfullscreen",O)})}function O(e){var t=N(e.target,".gslide-media");"enterfullscreen"==e.type&&L(t,"fullscreen"),"exitfullscreen"==e.type&&$(t,"fullscreen")}function V(e,t,i,s){var n,r,o,e=e.querySelector(".gslide-media"),a=(s={url:t.href,callback:s},a=s.url,n=s.allow,r=s.callback,s=s.appendTo,(o=document.createElement("iframe")).className="vimeo-video gvideo",o.src=a,o.style.width="100%",o.style.height="100%",n&&o.setAttribute("allow",n),o.onload=function(){L(o,"node-ready"),D(r)&&r()},s&&s.appendChild(o),o);e.parentNode.style.maxWidth=t.width,e.parentNode.style.height=t.height,e.appendChild(a)}e(U,[{key:"sourceType",value:function(e){var t=e;if(null!==(e=e.toLowerCase()).match(/\.(jpeg|jpg|jpe|gif|png|apn|webp|avif|svg)/))return"image";if(e.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/)||e.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/)||e.match(/(youtube\.com|youtube-nocookie\.com)\/embed\/([a-zA-Z0-9\-_]+)/))return"video";if(e.match(/vimeo\.com\/([0-9]*)/))return"video";if(null!==e.match(/\.(mp4|ogg|webm|mov)/))return"video";if(null!==e.match(/\.(mp3|wav|wma|aac|ogg)/))return"audio";if(-1'.concat(a,""))),B(a)&&("none"==a.style.display&&(a.style.display="block"),(l=document.createElement("div")).className="ginlined-content",l.appendChild(a),n=l)),o){a=document.getElementById(o);if(!a)return!1;var l=a.cloneNode(!0);l.style.height=t.height,l.style.maxWidth=t.width,L(l,"ginlined-content"),n=l}if(!n)return console.error("Unable to append inline slide content",t),!1;e.style.height=t.height,e.style.width=t.width,e.appendChild(n),this.events["inlineclose"+o]=I("click",{onElement:e.querySelectorAll(".gtrigger-close"),withCallback:function(e){e.preventDefault(),r.close()}}),D(s)&&s()}.apply(this.instance,[i,n,this.index,a]),void(n.draggable&&new A({dragEl:i.querySelector(".gslide-inline"),toleranceX:s.dragToleranceX,toleranceY:s.dragToleranceY,slide:i,instance:this.instance}))):"image"===u?(r=n,l=this.index,d=function(){var e=i.querySelector("img");n.draggable&&new A({dragEl:e,toleranceX:s.dragToleranceX,toleranceY:s.dragToleranceY,slide:i,instance:t.instance}),n.zoomable&&e.naturalWidth>e.offsetWidth&&(L(e,"zoomable"),new C(e,i,function(){t.instance.resize()})),D(a)&&a()},f=(f=i).querySelector(".gslide-media"),e=new Image,o="gSlideTitle_"+l,l="gSlideDesc_"+l,e.addEventListener("load",function(){D(d)&&d()},!1),e.src=r.href,""!=r.sizes&&""!=r.srcset&&(e.sizes=r.sizes,e.srcset=r.srcset),e.alt="",j(r.alt)||""===r.alt||(e.alt=r.alt),""!==r.title&&e.setAttribute("aria-labelledby",o),""!==r.description&&e.setAttribute("aria-describedby",l),r.hasOwnProperty("_hasCustomWidth")&&r._hasCustomWidth&&(e.style.width=r.width),r.hasOwnProperty("_hasCustomHeight")&&r._hasCustomHeight&&(e.style.height=r.height),void f.insertBefore(e,f.firstChild)):void(D(a)&&a());V.apply(this,[i,n,this.index,a])}else P.apply(this.instance,[i,n,this.index,a])}},{key:"slideShortDesc",value:function(e){var t=1'+i+""):e}},{key:"descriptionEvents",value:function(e,r){var o=this,e=e.querySelector(".desc-more");if(!e)return!1;I("click",{onElement:e,withCallback:function(e,t){e.preventDefault();var i=document.body,s=N(t,".gslide-desc");if(!s)return!1;s.innerHTML=r.description,L(i,"gdesc-open");var n=I("click",{onElement:[i,N(s,".gslide-description")],withCallback:function(e,t){"a"!==e.target.nodeName.toLowerCase()&&($(i,"gdesc-open"),L(i,"gdesc-closed"),s.innerHTML=r.smallDescription,o.descriptionEvents(s,r),setTimeout(function(){$(i,"gdesc-closed")},400),n.destroy())}})}})}},{key:"create",value:function(){return y(this.instance.settings.slideHTML)}},{key:"getConfig",value:function(){B(this.element)||this.element.hasOwnProperty("draggable")||(this.element.draggable=this.instance.settings.draggable);var e=new G(this.instance.settings.slideExtraAttributes);return this.slideConfig=e.parseConfig(this.element,this.instance.settings),this.slideConfig}}]);var Q=K;function K(e,t,i){o(this,K),this.element=e,this.instance=t,this.index=i}var Z=g(),J=null!==g()||void 0!==document.createTouch||"ontouchstart"in window||"onmsgesturechange"in window||navigator.msMaxTouchPoints,ee=document.getElementsByTagName("html")[0],te={selector:".glightbox",elements:null,skin:"clean",theme:"clean",closeButton:!0,startAt:null,autoplayVideos:!0,autofocusVideos:!0,descPosition:"bottom",width:"900px",height:"506px",videosWidth:"960px",beforeSlideChange:null,afterSlideChange:null,beforeSlideLoad:null,afterSlideLoad:null,slideInserted:null,slideRemoved:null,slideExtraAttributes:null,onOpen:null,onClose:null,loop:!1,zoomable:!0,draggable:!0,dragAutoSnap:!1,dragToleranceX:40,dragToleranceY:65,preload:!0,oneSlidePerOpen:!1,touchNavigation:!0,touchFollowAxis:!0,keyboardNavigation:!0,closeOnOutsideClick:!0,plugins:!1,plyr:{css:"https://cdn.plyr.io/3.6.8/plyr.css",js:"https://cdn.plyr.io/3.6.8/plyr.js",config:{ratio:"16:9",fullscreen:{enabled:!0,iosNative:!0},youtube:{noCookie:!0,rel:0,showinfo:0,iv_load_policy:3},vimeo:{byline:!1,portrait:!1,title:!1,transparent:!1}}},openEffect:"zoom",closeEffect:"zoom",slideEffect:"slide",moreText:"See more",moreLength:60,cssEfects:{fade:{in:"fadeIn",out:"fadeOut"},zoom:{in:"zoomIn",out:"zoomOut"},slide:{in:"slideInRight",out:"slideOutLeft"},slideBack:{in:"slideInLeft",out:"slideOutRight"},none:{in:"none",out:"none"}},svg:{close:'',next:' ',prev:''},slideHTML:'
\n
\n
\n
\n
\n
\n
\n

\n
\n
\n
\n
\n
\n
',lightboxHTML:''},ie=(e(se,[{key:"init",value:function(){var i=this,e=this.getSelector();e&&(this.baseEvents=I("click",{onElement:e,withCallback:function(e,t){e.preventDefault(),i.open(t)}})),this.elements=this.getElements()}},{key:"open",value:function(){var e=0h){var t=c.pageX-d.pageX;if(Math.abs(t)<=13)return!1}p=!0;var i,t=e.targetTouches[0].clientX,e=e.targetTouches[0].clientY,t=C-t,e=k-e;if(Math.abs(t)>Math.abs(e)?S=!(_=!1):_=!(S=!1),w=d.pageX-c.pageX,T=100*w/u,x=d.pageY-c.pageY,E=100*x/h,_&&o&&(i=1-Math.abs(x)/h,M.style.opacity=i,s.settings.touchFollowAxis&&(T=0)),S&&(i=1-Math.abs(w)/u,r.style.opacity=i,s.settings.touchFollowAxis&&(E=0)),!o)return H(r,"translate3d(".concat(T,"%, 0, 0)"));H(r,"translate3d(".concat(T,"%, ").concat(E,"%, 0)"))}},touchEnd:function(){if(n){if(p=!1,l||a)return y=g,void(b=v);var e=Math.abs(parseInt(E)),t=Math.abs(parseInt(T));if(!(29this.elements.length-1)return!1;if(j(this.elements[e]))return!1;var i=this.slidesContainer.querySelectorAll(".gslide")[e];if(z(i,"loaded"))return!1;var s=this.elements[e],n=s.type,r={index:e,slide:i,slideNode:i,slideConfig:s.slideConfig,slideIndex:e,trigger:s.node,player:null};this.trigger("slide_before_load",r),"video"==n||"external"==n?setTimeout(function(){s.instance.setContent(i,function(){t.trigger("slide_after_load",r)})},200):s.instance.setContent(i,function(){t.trigger("slide_after_load",r)})}},{key:"prevSlide",value:function(){this.goToSlide(this.index-1)}},{key:"nextSlide",value:function(){this.goToSlide(this.index+1)}},{key:"goToSlide",value:function(){var e=0this.elements.length-1))return!1;e<0?e=this.elements.length-1:e>=this.elements.length&&(e=0),this.showSlide(e)}},{key:"insertSlide",value:function(){var e=0this.elements.length-1)return!1;var t=this.slidesContainer&&this.slidesContainer.querySelectorAll(".gslide")[e];t&&(this.getActiveSlideIndex()==e&&(e==this.elements.length-1?this.prevSlide():this.nextSlide()),t.parentNode.removeChild(t)),this.elements.splice(e,1),this.trigger("slide_removed",e),D(this.settings.slideRemoved)&&this.settings.slideRemoved(e)}},{key:"slideAnimateIn",value:function(e,t){var i=this,s=e.querySelector(".gslide-media"),n=e.querySelector(".gslide-description"),r={index:this.prevActiveSlideIndex,slide:this.prevActiveSlide,slideNode:this.prevActiveSlide,slideIndex:this.prevActiveSlide,slideConfig:j(this.prevActiveSlideIndex)?null:this.elements[this.prevActiveSlideIndex].slideConfig,trigger:j(this.prevActiveSlideIndex)?null:this.elements[this.prevActiveSlideIndex].node,player:this.getSlidePlayerInstance(this.prevActiveSlideIndex)},o={index:this.index,slide:this.activeSlide,slideNode:this.activeSlide,slideConfig:this.elements[this.index].slideConfig,slideIndex:this.index,trigger:this.elements[this.index].node,player:this.getSlidePlayerInstance(this.index)};0this.index&&"slide"==this.settings.slideEffect&&(n=this.settings.cssEfects.slideBack.in),F(e,n,function(){i.settings.autoplayVideos&&i.slidePlayerPlay(e),i.trigger("slide_changed",{prev:r,current:o}),D(i.settings.afterSlideChange)&&i.settings.afterSlideChange.apply(i,[r,o])})),setTimeout(function(){i.resize(e)},100),L(e,"current")}},{key:"slideAnimateOut",value:function(){if(!this.prevActiveSlide)return!1;var s=this.prevActiveSlide,e=($(s,this.effectsClasses),L(s,"prev"),this.settings.slideEffect),e="none"!==e?this.settings.cssEfects[e].out:e;this.slidePlayerPause(s),this.trigger("slide_before_change",{prev:{index:this.prevActiveSlideIndex,slide:this.prevActiveSlide,slideNode:this.prevActiveSlide,slideIndex:this.prevActiveSlideIndex,slideConfig:j(this.prevActiveSlideIndex)?null:this.elements[this.prevActiveSlideIndex].slideConfig,trigger:j(this.prevActiveSlideIndex)?null:this.elements[this.prevActiveSlideIndex].node,player:this.getSlidePlayerInstance(this.prevActiveSlideIndex)},current:{index:this.index,slide:this.activeSlide,slideNode:this.activeSlide,slideIndex:this.index,slideConfig:this.elements[this.index].slideConfig,trigger:this.elements[this.index].node,player:this.getSlidePlayerInstance(this.index)}}),D(this.settings.beforeSlideChange)&&this.settings.beforeSlideChange.apply(this,[{index:this.prevActiveSlideIndex,slide:this.prevActiveSlide,player:this.getSlidePlayerInstance(this.prevActiveSlideIndex)},{index:this.index,slide:this.activeSlide,player:this.getSlidePlayerInstance(this.index)}]),this.prevActiveSlideIndex>this.index&&"slide"==this.settings.slideEffect&&(e=this.settings.cssEfects.slideBack.out),F(s,e,function(){var e=s.querySelector(".ginner-container"),t=s.querySelector(".gslide-media"),i=s.querySelector(".gslide-description");e.style.transform="",t.style.transform="",$(t,"greset"),t.style.opacity="",i&&(i.style.opacity=""),$(s,"prev")})}},{key:"getAllPlayers",value:function(){return this.videoPlayers}},{key:"getSlidePlayerInstance",value:function(e){var e="gvideo"+e,t=this.getAllPlayers();return!(!v(t,e)||!t[e])&&t[e]}},{key:"stopSlideVideo",value:function(e){!B(e)||(t=e.querySelector(".gvideo-wrapper"))&&(e=t.getAttribute("data-index")),console.log("stopSlideVideo is deprecated, use slidePlayerPause");var t=this.getSlidePlayerInstance(e);t&&t.playing&&t.pause()}},{key:"slidePlayerPause",value:function(e){!B(e)||(t=e.querySelector(".gvideo-wrapper"))&&(e=t.getAttribute("data-index"));var t=this.getSlidePlayerInstance(e);t&&t.playing&&t.pause()}},{key:"playSlideVideo",value:function(e){!B(e)||(t=e.querySelector(".gvideo-wrapper"))&&(e=t.getAttribute("data-index")),console.log("playSlideVideo is deprecated, use slidePlayerPlay");var t=this.getSlidePlayerInstance(e);t&&!t.playing&&t.play()}},{key:"slidePlayerPlay",value:function(e){!B(e)||(t=e.querySelector(".gvideo-wrapper"))&&(e=t.getAttribute("data-index"));var t=this.getSlidePlayerInstance(e);t&&!t.playing&&(t.play(),this.settings.autofocusVideos&&t.elements.container.focus())}},{key:"setElements",value:function(e){var n=this,r=(this.settings.elements=!1,[]);e&&e.length&&h(e,function(e,t){var e=new Q(e,n,t),i=e.getConfig(),s=c({},i);s.slideConfig=i,s.instance=e,s.index=t,r.push(s)}),this.elements=r,this.lightboxOpen&&(this.slidesContainer.innerHTML="",this.elements.length&&(h(this.elements,function(){var e=y(n.settings.slideHTML);n.slidesContainer.appendChild(e)}),this.showSlide(0,!0)))}},{key:"getElementIndex",value:function(i){var s=!1;return h(this.elements,function(e,t){if(v(e,"node")&&e.node==i)return s=t,!0}),s}},{key:"getElements",value:function(){var r=this,o=[],e=(this.elements=this.elements||[],!j(this.settings.elements)&&u(this.settings.elements)&&this.settings.elements.length&&h(this.settings.elements,function(e,t){var e=new Q(e,r,t),i=e.getConfig(),s=c({},i);s.node=!1,s.index=t,s.instance=e,s.slideConfig=i,o.push(s)}),!1);return(e=this.getSelector()?document.querySelectorAll(this.getSelector()):e)&&h(e,function(e,t){var i=new Q(e,r,t),s=i.getConfig(),n=c({},s);n.node=e,n.index=t,n.instance=i,n.slideConfig=s,n.gallery=e.getAttribute("data-gallery"),o.push(n)}),o}},{key:"getGalleryElements",value:function(e,t){return e.filter(function(e){return e.gallery==t})}},{key:"getSelector",value:function(){return!this.settings.elements&&(this.settings.selector&&"data-"==this.settings.selector.substring(0,5)?"*[".concat(this.settings.selector,"]"):this.settings.selector)}},{key:"getActiveSlide",value:function(){return this.slidesContainer.querySelectorAll(".gslide")[this.index]}},{key:"getActiveSlideIndex",value:function(){return this.index}},{key:"getAnimationClasses",value:function(){var e,t,i=[];for(e in this.settings.cssEfects)this.settings.cssEfects.hasOwnProperty(e)&&(t=this.settings.cssEfects[e],i.push("g".concat(t.in)),i.push("g".concat(t.out)));return i.join(" ")}},{key:"build",value:function(){var i=this;if(this.built)return!1;var e=document.body.childNodes,t=[],e=(h(e,function(e){e.parentNode==document.body&&"#"!==e.nodeName.charAt(0)&&e.hasAttribute&&!e.hasAttribute("aria-hidden")&&(t.push(e),e.setAttribute("aria-hidden","true"))}),v(this.settings.svg,"next")?this.settings.svg.next:""),s=v(this.settings.svg,"prev")?this.settings.svg.prev:"",n=v(this.settings.svg,"close")?this.settings.svg.close:"",r=this.settings.lightboxHTML,e=(r=y(r=(r=(r=r.replace(/{nextSVG}/g,e)).replace(/{prevSVG}/g,s)).replace(/{closeSVG}/g,n)),document.body.appendChild(r),document.getElementById("glightbox-body")),s=(this.modal=e).querySelector(".gclose");this.prevButton=e.querySelector(".gprev"),this.nextButton=e.querySelector(".gnext"),this.overlay=e.querySelector(".goverlay"),this.loader=e.querySelector(".gloader"),this.slidesContainer=document.getElementById("glightbox-slider"),this.bodyHiddenChildElms=t,this.events={},L(this.modal,"glightbox-"+this.settings.skin),this.settings.closeButton&&s&&(this.events.close=I("click",{onElement:s,withCallback:function(e,t){e.preventDefault(),i.close()}})),s&&!this.settings.closeButton&&s.parentNode.removeChild(s),this.nextButton&&(this.events.next=I("click",{onElement:this.nextButton,withCallback:function(e,t){e.preventDefault(),i.nextSlide()}})),this.prevButton&&(this.events.prev=I("click",{onElement:this.prevButton,withCallback:function(e,t){e.preventDefault(),i.prevSlide()}})),this.settings.closeOnOutsideClick&&(this.events.outClose=I("click",{onElement:e,withCallback:function(e,t){i.preventOutsideClick||z(document.body,"glightbox-mobile")||N(e.target,".ginner-container")||N(e.target,".gbtn")||z(e.target,"gnext")||z(e.target,"gprev")||i.close()}})),h(this.elements,function(e,t){i.slidesContainer.appendChild(e.instance.create()),e.slideNode=i.slidesContainer.querySelectorAll(".gslide")[t]}),J&&(L(document.body,"glightbox-touch"),this.settings.autoplayVideos=!1),this.events.resize=I("resize",{onElement:window,withCallback:function(){i.resize()}}),this.built=!0}},{key:"resize",value:function(){var e,t,i,s,n,r,o,a=(a=0this.scrollOffset?this.stick():this.unstick()}},t}),function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){var i;if(e&&t)return-1==(i=(i=this._events=this._events||{})[e]=i[e]||[]).indexOf(t)&&i.push(t),this},t.once=function(e,t){var i;if(e&&t)return this.on(e,t),((i=this._onceEvents=this._onceEvents||{})[e]=i[e]||{})[t]=!0,this},t.off=function(e,t){e=this._events&&this._events[e];if(e&&e.length)return-1!=(t=e.indexOf(t))&&e.splice(t,1),this},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var s=this._onceEvents&&this._onceEvents[e],n=0;n