1/*! For license information please see site.js.LICENSE.txt */ 2var Optura;(()=>{var t={532:t=>{self,t.exports=(()=>{"use strict";var t={d:(e,n)=>{for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},e={};function n(t){for(var e="",n=0;n<t;n+=1)e+="-";return e}function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return Array.prototype.slice.call(e.querySelectorAll(t))}function s(t){return"string"==typeof t?i(t):t instanceof Element?[t]:t?Array.prototype.slice.call(t):[]}function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.d(e,{default:()=>l});var r=function(){function t(){var e,n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=this.reset.bind(this),"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e),window.addEventListener("resize",(function(){return n.update()})),this.groupCounter=1}var e;return(e=[{key:"findElements",value:function(){this.groups=this.group(i("[data-match-height]"))}},{key:"group",value:function(t){return t.reduce((function(t,e){var n=e.getAttribute("data-match-height"),i=e.closest("[data-match-height-group]");return i&&(n=i.getAttribute("data-match-height-group")+"-"+n),t[n]=(t[n]||[]).concat(e),t}),{})}},{key:"isEnabled",value:function(t){if(!t||!t[0])return!1;var e=t[0],n=e.closest("[data-match-height-enable]");if(n){var i=n.getAttribute("data-match-height-enable");return"true"===i||"false"!==i&&window.matchMedia(i).matches}var s=e.closest("[data-match-height-disable]");if(s){var o=s.getAttribute("data-match-height-disable");return"true"!==o&&("false"===o||!window.matchMedia(o).matches)}return!0}},{key:"match",value:function(t){var e=t.reduce((function(t,e){return e.style.height="",Math.max(t,e.offsetHeight)}),0);t.forEach((function(t){return t.style.height="".concat(e,"px")}))}},{key:"update",value:function(t){var e=this.getGroups(t);for(var n in e){var i=e[n];this.isEnabled(i)?this.match(i):i.forEach((function(t){return t.style.height=""}))}}},{key:"reset",value:function(){this.findElements(),this.update()}},{key:"getNewGroupID",value:function(){var t="group-".concat(this.groupCounter);return this.groupCounter+=1,t}},{key:"getGroupID",value:function(t){var e=(t=s(t)).shift();if(!e)return null;var n=e.getAttribute("data-match-height"),i=e.closest("[data-match-height-group]");return i&&(n=i.getAttribute("data-match-height-group")+"-"+n),n}},{key:"getGroups",value:function(t){return t?("string"==typeof t&&this.groups[t]?e=t:(t=s(t),e=this.getGroupID(t)),this.groups[e]?(n={},i=e,o=this.groups[e],i in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o,n):{}):this.groups;var e,n,i,o}},{key:"getControl",value:function(t){var e=(t=s(t)).shift();return e?e.closest("[data-match-height-enable], [data-match-height-disable]"):null}},{key:"add",value:function(t,e){t=s(t),e=e||this.getNewGroupID(),t.forEach((function(t){return t.setAttribute("data-match-height",e)})),this.groups[e]=(this.groups[e]||[]).concat(t),this.update(e)}},{key:"remove",value:function(t){if("string"==typeof t&&this.groups[t])delete this.groups[t];else{var e,n=this,i=s(t),o=[];i.forEach((function(t){var e=n.getGroupID(t);t.removeAttribute("data-match-height"),n.groups[e]=n.groups[e].filter((function(e){return e&&e!==t})),n.groups[e].length?o.push(e):(delete n.groups[e],o=o.filter((function(t){return t!==e})))})),(e=o,e.filter((function(t,e,n){return n.indexOf(t)===e}))).forEach((function(t){return n.update(t)}))}}},{key:"debug",value:function(t){var e,i=this.getGroups(t);if(e=i,0!==Object.getOwnPropertyNames(e).length){for(var s in i)if(o(i,s)){var r=i[s],a=this.getControl(r),l={};l.isEnabled=this.isEnabled(r),l.control=a,l.enable=a?a.getAttribute("data-match-height-enable"):void 0,l.disable=a?a.getAttribute("data-match-height-disable"):void 0,l.groupID=s,l.group=r,console.log("\n---------------------------".concat(n(s.length),'-\nð Match Height Debugger: "').concat(s,'"\n---------------------------').concat(n(s.length),"-\n\nð Click into the object below to inspect your elements.\n\n")),console.log(l),console.log("\n")}}else console.log("\nð¢ Oh no! Match Height couldn't find a matching group for \"".concat(t,"\".\n\n--------------------------------------------------------------------------------------------\nâ¹ï¸ NOTE: Make sure the elements you're trying to debug have a [data-match-height] attribute.\n--------------------------------------------------------------------------------------------\n\n"))}}])&&function(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}(t.prototype,e),t}();!function(){var t=window.Element.prototype;"function"!=typeof t.matches&&(t.matches=t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||function(t){for(var e=this,n=(e.document||e.ownerDocument).querySelectorAll(t),i=0;n[i]&&n[i]!==e;)++i;return Boolean(n[i])}),"function"!=typeof t.closest&&(t.closest=function(t){for(var e=this;e&&1===e.nodeType;){if(e.matches(t))return e;e=e.parentNode}return null})}();var a=new r;window.MatchHeight=a,"undefined"!=typeof $&&($.fn.matchHeight=function(){window.MatchHeight.add(this)});const l=a;return e.default})()}},e={};function n(i){var s=e[i];if(void 0!==s)return s.exports;var o=e[i]={exports:{}};return t[i](o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}
2),Object.defineProperty(t,"__esModule",{value:!0})};var i={};(()=>{"use strict";n.r(i),n.d(i,{Bootstrap:()=>Bo,Header:()=>qo,MatchHeight:()=>Uo(),ModalVideo:()=>Qo,Popup:()=>ir,ResourcesArchive:()=>Go,ScrollMediaSection:()=>Zo,StickyImage:()=>er,VideoSegmentPlayer:()=>Jo});var t={};n.r(t),n.d(t,{afterMain:()=>E,afterRead:()=>b,afterWrite:()=>S,applyStyles:()=>I,arrow:()=>J,auto:()=>a,basePlacements:()=>l,beforeMain:()=>y,beforeRead:()=>_,beforeWrite:()=>k,bottom:()=>s,clippingParents:()=>d,computeStyles:()=>nt,createPopper:()=>Dt,createPopperBase:()=>Ct,createPopperLite:()=>It,detectOverflow:()=>_t,end:()=>h,eventListeners:()=>st,flip:()=>vt,hide:()=>wt,left:()=>r,main:()=>w,modifierPhases:()=>T,offset:()=>Et,placements:()=>g,popper:()=>p,popperGenerator:()=>Lt,popperOffsets:()=>kt,preventOverflow:()=>At,read:()=>v,reference:()=>f,right:()=>o,start:()=>c,top:()=>e,variationPlacements:()=>m,viewport:()=>u,write:()=>A});var e="top",s="bottom",o="right",r="left",a="auto",l=[e,s,o,r],c="start",h="end",d="clippingParents",u="viewport",p="popper",f="reference",m=l.reduce((function(t,e){return t.concat([e+"-"+c,e+"-"+h])}),[]),g=[].concat(l,[a]).reduce((function(t,e){return t.concat([e,e+"-"+c,e+"-"+h])}),[]),_="beforeRead",v="read",b="afterRead",y="beforeMain",w="main",E="afterMain",k="beforeWrite",A="write",S="afterWrite",T=[_,v,b,y,w,E,k,A,S];function x(t){return t?(t.nodeName||"").toLowerCase():null}function O(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function L(t){return t instanceof O(t).Element||t instanceof Element}function C(t){return t instanceof O(t).HTMLElement||t instanceof HTMLElement}function D(t){return"undefined"!=typeof ShadowRoot&&(t instanceof O(t).ShadowRoot||t instanceof ShadowRoot)}const I={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},i=e.attributes[t]||{},s=e.elements[t];
vendor: 9,424 bytes, line 2
2C(s)&&x(s)&&(Object.assign(s.style,n),Object.keys(i).forEach((function(t){var e=i[t];!1===e?s.removeAttribute(t):s.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var i=e.elements[t],s=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});C(i)&&x(i)&&(Object.assign(i.style,o),Object.keys(s).forEach((function(t){i.removeAttribute(t)})))}))}},requires:["computeStyles"]};function M(t){return t.split("-")[0]}var P=Math.max,N=Math.min,j=Math.round;function $(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function H(){return!/^((?!chrome|android).)*safari/i.test($())}function F(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var i=t.getBoundingClientRect(),s=1,o=1;e&&C(t)&&(s=t.offsetWidth>0&&j(i.width)/t.offsetWidth||1,o=t.offsetHeight>0&&j(i.height)/t.offsetHeight||1);var r=(L(t)?O(t):window).visualViewport,a=!H()&&n,l=(i.left+(a&&r?r.offsetLeft:0))/s,c=(i.top+(a&&r?r.offsetTop:0))/o,h=i.width/s,d=i.height/o;return{width:h,height:d,top:c,right:l+h,bottom:c+d,left:l,x:l,y:c}}function R(t){var e=F(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function q(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&D(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function z(t){return O(t).getComputedStyle(t)}function B(t){return["table","td","th"].indexOf(x(t))>=0}function W(t){return((L(t)?t.ownerDocument:t.document)||window.document).documentElement}function U(t){return"html"===x(t)?t:t.assignedSlot||t.parentNode||(D(t)?t.host:null)||W(t)}function V(t){return C(t)&&"fixed"!==z(t).position?t.offsetParent:null}function Q(t){for(var e=O(t),n=V(t);n&&B(n)&&"static"===z(n).position;)n=V(n);return n&&("html"===x(n)||"body"===x(n)&&"static"===z(n).position)?e:n||function(t){var e=/firefox/i.test($());if(/Trident/i.test($())&&C(t)&&"fixed"===z(t).position)return null;var n=U(t);for(D(n)&&(n=n.host);C(n)&&["html","body"].indexOf(x(n))<0;){var i=z(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(t)||e}function Y(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function K(t,e,n){return P(t,N(e,n))}function X(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function G(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}const J={name:"arrow",enabled:!0,phase:"main",fn:function(t){var n,i=t.state,a=t.name,c=t.options,h=i.elements.arrow,d=i.modifiersData.popperOffsets,u=M(i.placement),p=Y(u),f=[r,o].indexOf(u)>=0?"height":"width";if(h&&d){var m=function(t,e){return X("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:G(t,l))}(c.padding,i),g=R(h),_="y"===p?e:r,v="y"===p?s:o,b=i.rects.reference[f]+i.rects.reference[p]-d[p]-i.rects.popper[f],y=d[p]-i.rects.reference[p],w=Q(h),E=w?"y"===p?w.clientHeight||0:w.clientWidth||0:0,k=b/2-y/2,A=m[_],S=E-g[f]-m[v],T=E/2-g[f]/2+k,x=K(A,T,S),O=p;i.modifiersData[a]=((n={})[O]=x,n.centerOffset=x-T,n)}},effect:function(t){var e=t.state,n=t.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i)))&&q(e.elements.popper,i)&&(e.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Z(t){return t.split("-")[1]}var tt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function et(t){var n,i=t.popper,a=t.popperRect,l=t.placement,c=t.variation,d=t.offsets,u=t.position,p=t.gpuAcceleration,f=t.adaptive,m=t.roundOffsets,g=t.isFixed,_=d.x,v=void 0===_?0:_,b=d.y,y=void 0===b?0:b,w="function"==typeof m?m({x:v,y}):{x:v,y};v=w.x,y=w.y;var E=d.hasOwnProperty("x"),k=d.hasOwnProperty("y"),A=r,S=e,T=window;if(f){var x=Q(i),L="clientHeight",C="clientWidth";x===O(i)&&"static"!==z(x=W(i)).position&&"absolute"===u&&(L="scrollHeight",C="scrollWidth"),(l===e||(l===r||l===o)&&c===h)&&(S=s,y-=(g&&x===T&&T.visualViewport?T.visualViewport.height:x[L])-a.height,y*=p?1:-1),l!==r&&(l!==e&&l!==s||c!==h)||(A=o,v-=(g&&x===T&&T.visualViewport?T.visualViewport.width:x[C])-a.width,v*=p?1:-1)}var D,I=Object.assign({position:u},f&&tt),M=!0===m?function(t,e){var n=t.x,i=t.y,s=e.devicePixelRatio||1;return{x:j(n*s)/s||0,y:j(i*s)/s||0}}({x:v,y},O(i)):{x:v,y};return v=M.x,y=M.y,p?Object.assign({},I,((D={})[S]=k?"0":"",D[A]=E?"0":"",D.transform=(T.devicePixelRatio||1)<=1?"translate("+v+"px, "+y+"px)":"translate3d("+v+"px, "+y+"px, 0)",D)):Object.assign({},I,((n={})[S]=k?y+"px":"",n[A]=E?v+"px":"",n.transform="",n))}const nt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,s=void 0===i||i,o=n.adaptive,r=void 0===o||o,a=n.roundOffsets,l=void 0===a||a,c={placement:M(e.placement),variation:Z(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,et(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,et(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var it={passive:!0};const st={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,i=t.options,s=i.scroll,o=void 0===s||s,r=i.resize,a=void 0===r||r,l=O(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach((function(t){t.addEventListener("scroll",n.update,it)})),a&&l.addEventListener("resize",n.update,it),function(){o&&c.forEach((function(t){t.removeEventListener("scroll",n.update,it)})),a&&l.removeEventListener("resize",n.update,it)}},data:{}};var ot={left:"right",right:"left",bottom:"top",top:"bottom"};function rt(t){return t.replace(/left|right|bottom|top/g,(function(t){return ot[t]}))}var at={start:"end",end:"start"};function lt(t){return t.replace(/start|end/g,(function(t){return at[t]}))}function ct(t){var e=O(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ht(t){return F(W(t)).left+ct(t).scrollLeft}function dt(t){var e=z(t),n=e.overflow,i=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function ut(t){return["html","body","#document"].indexOf(x(t))>=0?t.ownerDocument.body:C(t)&&dt(t)?t:ut(U(t))}function pt(t,e){var n;void 0===e&&(e=[]);var i=ut(t),s=i===(null==(n=t.ownerDocument)?void 0:n.body),o=O(i),r=s?[o].concat(o.visualViewport||[],dt(i)?i:[]):i,a=e.concat(r);return s?a:a.concat(pt(U(r)))}function ft(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function mt(t,e,n){return e===u?ft(function(t,e){var n=O(t),i=W(t),s=n.visualViewport,o=i.clientWidth,r=i.clientHeight,a=0,l=0;if(s){o=s.width,r=s.height;var c=H();(c||!c&&"fixed"===e)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:r,x:a+ht(t),y:l}}(t,n)):L(e)?function(t,e){var n=F(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(e,n):ft(function(t){var e,n=W(t),i=ct(t),s=null==(e=t.ownerDocument)?void 0:e.body,o=P(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=P(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-i.scrollLeft+ht(t),l=-i.scrollTop;return"rtl"===z(s||n).direction&&(a+=P(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}(W(t)))}function gt(t){var n,i=t.reference,a=t.element,l=t.placement,d=l?M(l):null,u=l?Z(l):null,p=i.x+i.width/2-a.width/2,f=i.y+i.height/2-a.height/2;switch(d){case e:n={x:p,y:i.y-a.height};break;case s:n={x:p,y:i.y+i.height};break;case o:n={x:i.x+i.width,y:f};break;case r:n={x:i.x-a.width,y:f};break;default:n={x:i.x,y:i.y}}var m=d?Y(d):null;if(null!=m){var g="y"===m?"height":"width";switch(u){case c:n[m]=n[m]-(i[g]/2-a[g]/2);break;case h:n[m]=n[m]+(i[g]/2-a[g]/2)}}return n}function _t(t,n){void 0===n&&(n={});var i=n,r=i.placement,a=void 0===r?t.placement:r,c=i.strategy,h=void 0===c?t.strategy:c,m=i.boundary,g=void 0===m?d:m,_=i.rootBoundary,v=void 0===_?u:_,b=i.elementContext,y=void 0===b?p:b,w=i.altBoundary,E=void 0!==w&&w,k=i.padding,A=void 0===k?0:k,S=X("number"!=typeof A?A:G(A,l)),T=y===p?f:p,O=t.rects.popper,D=t.elements[E?T:y],I=function(t,e,n,i){var s="clippingParents"===e?function(t){var e=pt(U(t)),n=["absolute","fixed"].indexOf(z(t).position)>=0&&C(t)?Q(t):t;return L(n)?e.filter((function(t){return L(t)&&q(t,n)&&"body"!==x(t)})):[]}
vendor: 4,299 bytes, line 2
2(t):[].concat(e),o=[].concat(s,[n]),r=o[0],a=o.reduce((function(e,n){var s=mt(t,n,i);return e.top=P(s.top,e.top),e.right=N(s.right,e.right),e.bottom=N(s.bottom,e.bottom),e.left=P(s.left,e.left),e}),mt(t,r,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(L(D)?D:D.contextElement||W(t.elements.popper),g,v,h),M=F(t.elements.reference),j=gt({reference:M,element:O,strategy:"absolute",placement:a}),$=ft(Object.assign({},O,j)),H=y===p?$:M,R={top:I.top-H.top+S.top,bottom:H.bottom-I.bottom+S.bottom,left:I.left-H.left+S.left,right:H.right-I.right+S.right},B=t.modifiersData.offset;if(y===p&&B){var V=B[a];Object.keys(R).forEach((function(t){var n=[o,s].indexOf(t)>=0?1:-1,i=[e,s].indexOf(t)>=0?"y":"x";R[t]+=V[i]*n}))}return R}const vt={name:"flip",enabled:!0,phase:"main",fn:function(t){var n=t.state,i=t.options,h=t.name;if(!n.modifiersData[h]._skip){for(var d=i.mainAxis,u=void 0===d||d,p=i.altAxis,f=void 0===p||p,_=i.fallbackPlacements,v=i.padding,b=i.boundary,y=i.rootBoundary,w=i.altBoundary,E=i.flipVariations,k=void 0===E||E,A=i.allowedAutoPlacements,S=n.options.placement,T=M(S),x=_||(T!==S&&k?function(t){if(M(t)===a)return[];var e=rt(t);return[lt(t),e,lt(e)]}(S):[rt(S)]),O=[S].concat(x).reduce((function(t,e){return t.concat(M(e)===a?function(t,e){void 0===e&&(e={});var n=e,i=n.placement,s=n.boundary,o=n.rootBoundary,r=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,h=void 0===c?g:c,d=Z(i),u=d?a?m:m.filter((function(t){return Z(t)===d})):l,p=u.filter((function(t){return h.indexOf(t)>=0}));0===p.length&&(p=u);var f=p.reduce((function(e,n){return e[n]=_t(t,{placement:n,boundary:s,rootBoundary:o,padding:r})[M(n)],e}),{});return Object.keys(f).sort((function(t,e){return f[t]-f[e]}))}(n,{placement:e,boundary:b,rootBoundary:y,padding:v,flipVariations:k,allowedAutoPlacements:A}):e)}),[]),L=n.rects.reference,C=n.rects.popper,D=new Map,I=!0,P=O[0],N=0;N<O.length;N++){var j=O[N],$=M(j),H=Z(j)===c,F=[e,s].indexOf($)>=0,R=F?"width":"height",q=_t(n,{placement:j,boundary:b,rootBoundary:y,altBoundary:w,padding:v}),z=F?H?o:r:H?s:e;L[R]>C[R]&&(z=rt(z));var B=rt(z),W=[];if(u&&W.push(q[$]<=0),f&&W.push(q[z]<=0,q[B]<=0),W.every((function(t){return t}))){P=j,I=!1;break}D.set(j,W)}if(I)for(var U=function(t){var e=O.find((function(e){var n=D.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return P=e,"break"},V=k?3:1;V>0&&"break"!==U(V);V--);n.placement!==P&&(n.modifiersData[h]._skip=!0,n.placement=P,n.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function bt(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function yt(t){return[e,o,s,r].some((function(e){return t[e]>=0}))}const wt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,i=e.rects.reference,s=e.rects.popper,o=e.modifiersData.preventOverflow,r=_t(e,{elementContext:"reference"}),a=_t(e,{altBoundary:!0}),l=bt(r,i),c=bt(a,s,o),h=yt(l),d=yt(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}},Et={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var n=t.state,i=t.options,s=t.name,a=i.offset,l=void 0===a?[0,0]:a,c=g.reduce((function(t,i){return t[i]=function(t,n,i){var s=M(t),a=[r,e].indexOf(s)>=0?-1:1,l="function"==typeof i?i(Object.assign({},n,{placement:t})):i,c=l[0],h=l[1];return c=c||0,h=(h||0)*a,[r,o].indexOf(s)>=0?{x:h,y:c}:{x:c,y:h}}(i,n.rects,l),t}),{}),h=c[n.placement],d=h.x,u=h.y;null!=n.modifiersData.popperOffsets&&(n.modifiersData.popperOffsets.x+=d,n.modifiersData.popperOffsets.y+=u),n.modifiersData[s]=c}},kt={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=gt({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},At={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var n=t.state,i=t.options,a=t.name,l=i.mainAxis,h=void 0===l||l,d=i.altAxis,u=void 0!==d&&d,p=i.boundary,f=i.rootBoundary,m=i.altBoundary,g=i.padding,_=i.tether,v=void 0===_||_,b
vendor: 14,996 bytes, line 2
2=i.tetherOffset,y=void 0===b?0:b,w=_t(n,{boundary:p,rootBoundary:f,padding:g,altBoundary:m}),E=M(n.placement),k=Z(n.placement),A=!k,S=Y(E),T="x"===S?"y":"x",x=n.modifiersData.popperOffsets,O=n.rects.reference,L=n.rects.popper,C="function"==typeof y?y(Object.assign({},n.rects,{placement:n.placement})):y,D="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),I=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,j={x:0,y:0};if(x){if(h){var $,H="y"===S?e:r,F="y"===S?s:o,q="y"===S?"height":"width",z=x[S],B=z+w[H],W=z-w[F],U=v?-L[q]/2:0,V=k===c?O[q]:L[q],X=k===c?-L[q]:-O[q],G=n.elements.arrow,J=v&&G?R(G):{width:0,height:0},tt=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},et=tt[H],nt=tt[F],it=K(0,O[q],J[q]),st=A?O[q]/2-U-it-et-D.mainAxis:V-it-et-D.mainAxis,ot=A?-O[q]/2+U+it+nt+D.mainAxis:X+it+nt+D.mainAxis,rt=n.elements.arrow&&Q(n.elements.arrow),at=rt?"y"===S?rt.clientTop||0:rt.clientLeft||0:0,lt=null!=($=null==I?void 0:I[S])?$:0,ct=z+ot-lt,ht=K(v?N(B,z+st-lt-at):B,z,v?P(W,ct):W);x[S]=ht,j[S]=ht-z}if(u){var dt,ut="x"===S?e:r,pt="x"===S?s:o,ft=x[T],mt="y"===T?"height":"width",gt=ft+w[ut],vt=ft-w[pt],bt=-1!==[e,r].indexOf(E),yt=null!=(dt=null==I?void 0:I[T])?dt:0,wt=bt?gt:ft-O[mt]-L[mt]-yt+D.altAxis,Et=bt?ft+O[mt]+L[mt]-yt-D.altAxis:vt,kt=v&&bt?function(t,e,n){var i=K(t,e,n);return i>n?n:i}(wt,ft,Et):K(v?wt:gt,ft,v?Et:vt);x[T]=kt,j[T]=kt-ft}n.modifiersData[a]=j}},requiresIfExists:["offset"]};function St(t,e,n){void 0===n&&(n=!1);var i,s,o=C(e),r=C(e)&&function(t){var e=t.getBoundingClientRect(),n=j(e.width)/t.offsetWidth||1,i=j(e.height)/t.offsetHeight||1;return 1!==n||1!==i}(e),a=W(e),l=F(t,r,n),c={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(o||!o&&!n)&&(("body"!==x(e)||dt(a))&&(c=(i=e)!==O(i)&&C(i)?{scrollLeft:(s=i).scrollLeft,scrollTop:s.scrollTop}:ct(i)),C(e)?((h=F(e,!0)).x+=e.clientLeft,h.y+=e.clientTop):a&&(h.x=ht(a))),{x:l.left+c.scrollLeft-h.x,y:l.top+c.scrollTop-h.y,width:l.width,height:l.height}}function Tt(t){var e=new Map,n=new Set,i=[];function s(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var i=e.get(t);i&&s(i)}})),i.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||s(t)})),i}var xt={placement:"bottom",modifiers:[],strategy:"absolute"};function Ot(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function Lt(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,i=void 0===n?[]:n,s=e.defaultOptions,o=void 0===s?xt:s;return function(t,e,n){void 0===n&&(n=o);var s,r,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},xt,o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,h={state:a,setOptions:function(n){var s="function"==typeof n?n(a.options):n;d(),a.options=Object.assign({},o,a.options,s),a.scrollParents={reference:L(t)?pt(t):t.contextElement?pt(t.contextElement):[],popper:pt(e)};var r,c,u=function(t){var e=Tt(t);return T.reduce((function(t,n){return t.concat(e.filter((function(t){return t.phase===n})))}),[])}((r=[].concat(i,a.options.modifiers),c=r.reduce((function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t}),{}),Object.keys(c).map((function(t){return c[t]}))));return a.orderedModifiers=u.filter((function(t){return t.enabled})),a.orderedModifiers.forEach((function(t){var e=t.name,n=t.options,i=void 0===n?{}:n,s=t.effect;if("function"==typeof s){var o=s({state:a,name:e,instance:h,options:i});l.push(o||function(){})}})),h.update()},forceUpdate:function(){if(!c){var t=a.elements,e=t.reference,n=t.popper;if(Ot(e,n)){a.rects={reference:St(e,Q(n),"fixed"===a.options.strategy),popper:R(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(t){return a.modifiersData[t.name]=Object.assign({},t.data)}));for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var s=a.orderedModifiers[i],o=s.fn,r=s.options,l=void 0===r?{}:r,d=s.name;"function"==typeof o&&(a=o({state:a,options:l,name:d,instance:h})||a)}else a.reset=!1,i=-1}}},update:(s=function(){return new Promise((function(t){h.forceUpdate(),t(a)}))},function(){return r||(r=new Promise((function(t){Promise.resolve().then((function(){r=void 0,t(s())}))}))),r}),destroy:function(){d(),c=!0}};if(!Ot(t,e))return h;function d(){l.forEach((function(t){return t()})),l=[]}return h.setOptions(n).then((function(t){!c&&n.onFirstUpdate&&n.onFirstUpdate(t)})),h}}var Ct=Lt(),Dt=Lt({defaultModifiers:[st,kt,nt,I,Et,vt,At,J,wt]}),It=Lt({defaultModifiers:[st,kt,nt,I]});const Mt=new Map,Pt={set(t,e,n){Mt.has(t)||Mt.set(t,new Map);const i=Mt.get(t);i.has(e)||0===i.size?i.set(e,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`)},get:(t,e)=>Mt.has(t)&&Mt.get(t).get(e)||null,remove(t,e){if(!Mt.has(t))return;const n=Mt.get(t);n.delete(e),0===n.size&&Mt.delete(t)}},Nt="transitionend",jt=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,((t,e)=>`#${CSS.escape(e)}`))),t),$t=t=>{t.dispatchEvent(new Event(Nt))},Ht=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),Ft=t=>Ht(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(jt(t)):null,Rt=t=>{if(!Ht(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),n=t.closest("details:not([open])");if(!n)return e;if(n!==t){const e=t.closest("summary");if(e&&e.parentNode!==n)return!1;if(null===e)return!1}return e},qt=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),zt=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?zt(t.parentNode):null},Bt=()=>{},Wt=t=>{t.offsetHeight},Ut=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Vt=[],Qt=()=>"rtl"===document.documentElement.dir,Yt=t=>{var e;e=()=>{const e=Ut();if(e){const n=t.NAME,i=e.fn[n];e.fn[n]=t.jQueryInterface,e.fn[n].Constructor=t,e.fn[n].noConflict=()=>(e.fn[n]=i,t.jQueryInterface)}},"loading"===document.readyState?(Vt.length||document.addEventListener("DOMContentLoaded",(()=>{for(const t of Vt)t()})),Vt.push(e)):e()},Kt=(t,e=[],n=t)=>"function"==typeof t?t.call(...e):n,Xt=(t,e,n=!0)=>{if(!n)return void Kt(t);const i=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:n}=window.getComputedStyle(t);const i=Number.parseFloat(e),s=Number.parseFloat(n);return i||s?(e=e.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(n))):0})(e)+5;let s=!1;const o=({target:n})=>{n===e&&(s=!0,e.removeEventListener(Nt,o),Kt(t))};e.addEventListener(Nt,o),setTimeout((()=>{s||$t(e)}),i)},Gt=(t,e,n,i)=>{const s=t.length;let o=t.indexOf(e);return-1===o?!n&&i?t[s-1]:t[0]:(o+=n?1:-1,i&&(o=(o+s)%s),t[Math.max(0,Math.min(o,s-1))])},Jt=/[^.]*(?=\..*)\.|.*/,Zt=/\..*/,te=/::\d+$/,ee={};let ne=1;const ie={mouseenter:"mouseover",mouseleave:"mouseout"},se=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 oe(t,e){return e&&`${e}::${ne++}`||t.uidEvent||ne++}function re(t){const e=oe(t);return t.uidEvent=e,ee[e]=ee[e]||{},ee[e]}function ae(t,e,n=null){return Object.values(t).find((t=>t.callable===e&&t.delegationSelector===n))}function le(t,e,n){const i="string"==typeof e,s=i?n:e||n;let o=ue(t);return se.has(o)||(o=t),[i,s,o]}function ce(t,e,n,i,s){if("string"!=typeof e||!t)return;let[o,r,a]=le(e,n,i);if(e in ie){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};r=t(r)}const l=re(t),c=l[a]||(l[a]={}),h=ae(c,r,o?n:null);if(h)return void(h.oneOff=h.oneOff&&s);const d=oe(r,e.replace(Jt,"")),u=o?function(t,e,n){return function i(s){const o=t.querySelectorAll(e);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(const a of o)if(a===r)return fe(s,{delegateTarget:r}),i.oneOff&&pe.off(t,s.type,e,n),n.apply(r,[s])}}(t,n,r):function(t,e){return function n(i){return fe(i,{delegateTarget:t}),n.oneOff&&pe.off(t,i.type,e),e.apply(t,[i])}}(t,r);u.delegationSelector=o?n:null,u.callable=r,u.oneOff=s,u.uidEvent=d,c[d]=u,t.addEventListener(a,u,o)}function he(t,e,n,i,s){const o=ae(e[n],i,s);o&&(t.removeEventListener(n,o,Boolean(s)),delete e[n][o.uidEvent])}function de(t,e,n,i){const s=e[n]||{};for(const[o,r]of Object.entries(s))o.includes(i)&&he(t,e,n,r.callable,r.delegationSelector)}function ue(t){return t=t.replace(Zt,""),ie[t]||t}const pe={on(t,e,n,i){ce(t,e,n,i,!1)},one(t,e,n,i){ce(t,e,n,i,!0)},off(t,e,n,i){if("string"!=typeof e||!t)return;const[s,o,r]=le(e,n,i),a=r!==e,l=re(t),c=l[r]||{},h=e.startsWith(".");if(void 0===o){if(h)for(const n of Object.keys(l))de(t,l,n,e.slice(1));for(const[n,i]of Object.entries(c)){const s=n.replace(te,"");a&&!e.includes(s)||he(t,l,r,i.callable,i.delegationSelector)}}else{if(!Object.keys(c).length)return;he(t,l,r,o,s?n:null)}},trigger(t,e,n){if("string"!=typeof e||!t)return null;const i=Ut();let s=null,o=!0,r=!0,a=!1;e!==ue(e)&&i&&(s=i.Event(e,n),i(t).trigger(s),o=!s.isPropagationStopped(),r=!s.isImmediatePropagationStopped(),a=s.isDefaultPrevented());const l=fe(new Event(e,{bubbles:o,cancelable:!0}),n);return a&&l.preventDefault(),r&&t.dispatchEvent(l),l.defaultPrevented&&s&&s.preventDefault(),l}};function fe(t,e={}){for(const[n,i]of Object.entries(e))try{t[n]=i}catch(e){Object.defineProperty(t,n,{configurable:!0,get:()=>i})}return t}function me(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function ge(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}const _e={setDataAttribute(t,e,n){t.setAttribute(`data-bs-${ge(e)}`,n)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${ge(e)}`)},getDataAttributes(t){if(!t)return{};const e={},n=Object.keys(t.dataset).filter((t=>t.startsWith("bs")&&!t.startsWith("bsConfig")));for(const i of n){let n=i.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1),e[n]=me(t.dataset[i])}return e},getDataAttribute:(t,e)=>me(t.getAttribute(`data-bs-${ge(e)}`))};class ve{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(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const n=Ht(e)?_e.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof n?n:{},...Ht(e)?_e.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[i,s]of Object.entries(e)){const e=t[i],o=Ht(e)?"element":null==(n=e)?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(s).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${o}" but expected type "${s}".`)}var n}}class be extends ve{constructor(t,e){super(),(t=Ft(t))&&(this._element=t,this._config=this._getConfig(e),Pt.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Pt.remove(this._element,this.constructor.DATA_KEY),pe.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,n=!0){Xt(t,e,n)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return Pt.get(Ft(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.3.8"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const ye=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let n=t.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),e=n&&"#"!==n?n.trim():null}return e?e.split(",").map((t=>jt(t))).join(","):null},we={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter((t=>t.matches(e))),parents(t,e){const n=[];let i=t.parentNode.closest(e);for(;i;)n.push(i),i=i.parentNode.closest(e);return n},prev(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return[n];n=n.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((t=>`${t}:not([tabindex^="-"])`)).join(",");return this.find(e,t).filter((t=>!qt(t)&&Rt(t)))},getSelectorFromElement(t){const e=ye(t);return e&&we.findOne(e)?e:null},getElementFromSelector(t){const e=ye(t);return e?we.findOne(e):null},getMultipleElementsFromSelector(t){const e=ye(t);return e?we.find(e):[]}},Ee=(t,e="hide")=>{const n=`click.dismiss${t.EVENT_KEY}`,i=t.NAME;pe.on(document,n,`[data-bs-dismiss="${i}"]`,(function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),qt(this))return;const s=we.getElementFromSelector(this)||this.closest(`.${i}`);t.getOrCreateInstance(s)[e]()}))},ke=".bs.alert",Ae=`close${ke}`,Se=`closed${ke}`;class Te extends be{static get NAME(){return"alert"}close(){if(pe.trigger(this._element,Ae).defaultPrevented)return;this._element.classList.remove("show");const t=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,t)}_destroyElement(){this._element.remove(),pe.trigger(this._element,Se),this.dispose()}static jQueryInterface(t){return this.each((function(){const e=Te.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method n
2amed "${t}"`);e[t](this)}}))}}Ee(Te,"close"),Yt(Te);const xe='[data-bs-toggle="button"]';class Oe extends be{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=Oe.getOrCreateInstance(this);"toggle"===t&&e[t]()}))}}pe.on(document,"click.bs.button.data-api",xe,(t=>{t.preventDefault();const e=t.target.closest(xe);Oe.getOrCreateInstance(e).toggle()})),Yt(Oe);const Le=".bs.swipe",Ce=`touchstart${Le}`,De=`touchmove${Le}`,Ie=`touchend${Le}`,Me=`pointerdown${Le}`,Pe=`pointerup${Le}`,Ne={endCallback:null,leftCallback:null,rightCallback:null},je={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class $e extends ve{constructor(t,e){super(),this._element=t,t&&$e.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return Ne}static get DefaultType(){return je}static get NAME(){return"swipe"}dispose(){pe.off(this._element,Le)}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),Kt(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=40)return;const e=t/this._deltaX;this._deltaX=0,e&&Kt(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(pe.on(this._element,Me,(t=>this._start(t))),pe.on(this._element,Pe,(t=>this._end(t))),this._element.classList.add("pointer-event")):(pe.on(this._element,Ce,(t=>this._start(t))),pe.on(this._element,De,(t=>this._move(t))),pe.on(this._element,Ie,(t=>this._end(t))))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&("pen"===t.pointerType||"touch"===t.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const He=".bs.carousel",Fe=".data-api",Re="ArrowLeft",qe="ArrowRight",ze="next",Be="prev",We="left",Ue="right",Ve=`slide${He}`,Qe=`slid${He}`,Ye=`keydown${He}`,Ke=`mouseenter${He}`,Xe=`mouseleave${He}`,Ge=`dragstart${He}`,Je=`load${He}${Fe}`,Ze=`click${He}${Fe}`,tn="carousel",en="active",nn=".active",sn=".carousel-item",on=nn+sn,rn={[Re]:Ue,[qe]:We},an={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},ln={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class cn extends be{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=we.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===tn&&this.cycle()}static get Default(){return an}static get DefaultType(){return ln}static get NAME(){return"carousel"}next(){this._slide(ze)}nextWhenVisible(){!document.hidden&&Rt(this._element)&&this.next()}prev(){this._slide(Be)}pause(){this._isSliding&&$t(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?pe.one(this._element,Qe,(()=>this.cycle())):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void pe.one(this._element,Qe,(()=>this.to(t)));const n=this._getItemIndex(this._getActive());if(n===t)return;const i=t>n?ze:Be;this._slide(i,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&pe.on(this._element,Ye,(t=>this._keydown(t))),"hover"===this._config.pause&&(pe.on(this._element,Ke,(()=>this.pause())),pe.on(this._element,Xe,(()=>this._maybeEnableCycle()))),this._config.touch&&$e.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of we.find(".carousel-item img",this._element))pe.on(t,Ge,(t=>t.preventDefault()));const t={leftCallback:()=>this._slide(this._directionToOrder(We)),rightCallback:()=>this._slide(this._directionToOrder(Ue)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new $e(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=rn[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=we.findOne(nn,this._indicatorsElement);e.classList.remove(en),e.removeAttribute("aria-current");const n=we.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);n&&(n.classList.add(en),n.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const n=this._getActive(),i=t===ze,s=e||Gt(this._getItems(),n,i,this._config.wrap);if(s===n)return;const o=this._getItemIndex(s),r=e=>pe.trigger(this._element,e,{relatedTarget:s,direction:this._orderToDirection(t),from:this._getItemIndex(n),to:o});if(r(Ve).defaultPrevented)return;if(!n||!s)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=s;const l=i?"carousel-item-start":"carousel-item-end",c=i?"carousel-item-next":"carousel-item-prev";s.classList.add(c),Wt(s),n.classList.add(l),s.classList.add(l),this._queueCallback((()=>{s.classList.remove(l,c),s.classList.add(en),n.classList.remove(en,c,l),this._isSliding=!1,r(Qe)}),n,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return we.findOne(on,this._element)}_getItems(){return we.find(sn,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return Qt()?t===We?Be:ze:t===We?ze:Be}_orderToDirection(t){return Qt()?t===Be?We:Ue:t===Be?Ue:We}static jQueryInterface(t){return this.each((function(){const e=cn.getOrCreateInstance(this,t);if("number"!=typeof t){if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method n
2amed "${t}"`);e[t]()}}else e.to(t)}))}}pe.on(document,Ze,"[data-bs-slide], [data-bs-slide-to]",(function(t){const e=we.getElementFromSelector(this);if(!e||!e.classList.contains(tn))return;t.preventDefault();const n=cn.getOrCreateInstance(e),i=this.getAttribute("data-bs-slide-to");return i?(n.to(i),void n._maybeEnableCycle()):"next"===_e.getDataAttribute(this,"slide")?(n.next(),void n._maybeEnableCycle()):(n.prev(),void n._maybeEnableCycle())})),pe.on(window,Je,(()=>{const t=we.find('[data-bs-ride="carousel"]');for(const e of t)cn.getOrCreateInstance(e)})),Yt(cn);const hn=".bs.collapse",dn=`show${hn}`,un=`shown${hn}`,pn=`hide${hn}`,fn=`hidden${hn}`,mn=`click${hn}.data-api`,gn="show",_n="collapse",vn="collapsing",bn=`:scope .${_n} .${_n}`,yn='[data-bs-toggle="collapse"]',wn={parent:null,toggle:!0},En={parent:"(null|element)",toggle:"boolean"};class kn extends be{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const n=we.find(yn);for(const t of n){const e=we.getSelectorFromElement(t),n=we.find(e).filter((t=>t===this._element));null!==e&&n.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return wn}static get DefaultType(){return En}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((t=>t!==this._element)).map((t=>kn.getOrCreateInstance(t,{toggle:!1})))),t.length&&t[0]._isTransitioning)return;if(pe.trigger(this._element,dn).defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(_n),this._element.classList.add(vn),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=`scroll${e[0].toUpperCase()+e.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(vn),this._element.classList.add(_n,gn),this._element.style[e]="",pe.trigger(this._element,un)}),this._element,!0),this._element.style[e]=`${this._element[n]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(pe.trigger(this._element,pn).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,Wt(this._element),this._element.classList.add(vn),this._element.classList.remove(_n,gn);for(const t of this._triggerArray){const e=we.getElementFromSelector(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[t]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(vn),this._element.classList.add(_n),pe.trigger(this._element,fn)}),this._element,!0)}_isShown(t=this._element){return t.classList.contains(gn)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=Ft(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(yn);for(const e of t){const t=we.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=we.find(bn,this._config.parent);return we.find(t,this._config.parent).filter((t=>!e.includes(t)))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const n of t)n.classList.toggle("collapsed",!e),n.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each((function(){const n=kn.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t]()}}))}}pe.on(document,mn,yn,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(const t of we.getMultipleElementsFromSelector(this))kn.getOrCreateInstance(t,{toggle:!1}).toggle()})),Yt(kn);const An="dropdown",Sn=".bs.dropdown",Tn=".data-api",xn="ArrowUp",On="ArrowDown",Ln=`hide${Sn}`,Cn=`hidden${Sn}`,Dn=`show${Sn}`,In=`shown${Sn}`,Mn=`click${Sn}${Tn}`,Pn=`keydown${Sn}${Tn}`,Nn=`keyup${Sn}${Tn}`,jn="show",$n='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Hn=`${$n}.${jn}
2`,Fn=".dropdown-menu",Rn=Qt()?"top-end":"top-start",qn=Qt()?"top-start":"top-end",zn=Qt()?"bottom-end":"bottom-start",Bn=Qt()?"bottom-start":"bottom-end",Wn=Qt()?"left-start":"right-start",Un=Qt()?"right-start":"left-start",Vn={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Qn={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Yn extends be{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=we.next(this._element,Fn)[0]||we.prev(this._element,Fn)[0]||we.findOne(Fn,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Vn}static get DefaultType(){return Qn}static get NAME(){return An}toggle(){return this._isShown()?this.hide():this.show()}show(){if(qt(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!pe.trigger(this._element,Dn,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".
2navbar-nav"))for(const t of[].concat(...document.body.children))pe.on(t,"mouseover",Bt);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(jn),this._element.classList.add(jn),pe.trigger(this._element,In,t)}}hide(){if(qt(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!pe.trigger(this._element,Ln,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))pe.off(t,"mouseover",Bt);this._popper&&this._popper.destroy(),this._menu.classList.remove(jn),this._element.classList.remove(jn),this._element.setAttribute("aria-expanded","false"),_e.removeDataAttribute(this._menu,"popper"),pe.trigger(this._element,Cn,t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!Ht(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${An.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){let t=this._element;"parent"===this._config.reference?t=this._parent:Ht(this._config.reference)?t=Ft(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=Dt(t,this._menu,e)}_isShown(){return this._menu.classList.contains(jn)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return Wn;if(t.classList.contains("dropstart"))return Un;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?qn:Rn:e?Bn:zn}
vendor: 10,309 bytes, line 2
2_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(_e.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...Kt(this._config.popperConfig,[void 0,t])}}_selectMenuItem({key:t,target:e}){const n=we.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((t=>Rt(t)));n.length&&Gt(n,e,t===On,!n.includes(e)).focus()}static jQueryInterface(t){return this.each((function(){const e=Yn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}static clearMenus(t){if(2===t.button||"keyup"===t.type&&"Tab"!==t.key)return;const e=we.find(Hn);for(const n of e){const e=Yn.getInstance(n);if(!e||!1===e._config.autoClose)continue;const i=t.composedPath(),s=i.includes(e._menu);if(i.includes(e._element)||"inside"===e._config.autoClose&&!s||"outside"===e._config.autoClose&&s)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const o={relatedTarget:e._element};"click"===t.type&&(o.clickEvent=t),e._completeHide(o)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),n="Escape"===t.key,i=[xn,On].includes(t.key);if(!i&&!n)return;if(e&&!n)return;t.preventDefault();const s=this.matches($n)?this:we.prev(this,$n)[0]||we.next(this,$n)[0]||we.findOne($n,t.delegateTarget.parentNode),o=Yn.getOrCreateInstance(s);if(i)return t.stopPropagation(),o.show(),void o._selectMenuItem(t);o._isShown()&&(t.stopPropagation(),o.hide(),s.focus())}}pe.on(document,Pn,$n,Yn.dataApiKeydownHandler),pe.on(document,Pn,Fn,Yn.dataApiKeydownHandler),pe.on(document,Mn,Yn.clearMenus),pe.on(document,Nn,Yn.clearMenus),pe.on(document,Mn,$n,(function(t){t.preventDefault(),Yn.getOrCreateInstance(this).toggle()})),Yt(Yn);const Kn="backdrop",Xn="show",Gn=`mousedown.bs.${Kn}`,Jn={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Zn={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class ti extends ve{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Jn}static get DefaultType(){return Zn}static get NAME(){return Kn}show(t){if(!this._config.isVisible)return void Kt(t);this._append();const e=this._getElement();this._config.isAnimated&&Wt(e),e.classList.add(Xn),this._emulateAnimation((()=>{Kt(t)}))}hide(t){this._config.isVisible?(this._getElement().classList.remove(Xn),this._emulateAnimation((()=>{this.dispose(),Kt(t)}))):Kt(t)}dispose(){this._isAppended&&(pe.off(this._element,Gn),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=Ft(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),pe.on(t,Gn,(()=>{Kt(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(t){Xt(t,this._getElement(),this._config.isAnimated)}}const ei=".bs.focustrap",ni=`focusin${ei}`,ii=`keydown.tab${ei}`,si="backward",oi={autofocus:!0,trapElement:null},ri={autofocus:"boolean",trapElement:"element"};class ai extends ve{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return oi}static get DefaultType(){return ri}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),pe.off(document,ei),pe.on(document,ni,(t=>this._handleFocusin(t))),pe.on(document,ii,(t=>this._handleKeydown(t))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,pe.off(document,ei))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const n=we.focusableChildren(e);0===n.length?e.focus():this._lastTabNavDirection===si?n[n.length-1].focus():n[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?si:"forward")}}const li=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ci=".sticky-top",hi="padding-right",di="margin-right";class ui{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,hi,(e=>e+t)),this._setElementAttributes(li,hi,(e=>e+t)),this._setElementAttributes(ci,di,(e=>e-t))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,hi),this._resetElementAttributes(li,hi),this._resetElementAttributes(ci,di)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,n){const i=this.getWidth();this._applyManipulationCallback(t,(t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+i)return;this._saveInitialAttribute(t,e);const s=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${n(Number.parseFloat(s))}px`)}))}_saveInitialAttribute(t,e){const n=t.style.getPropertyValue(e);n&&_e.setDataAttribute(t,e,n)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,(t=>{const n=_e.getDataAttribute(t,e);null!==n?(_e.removeDataAttribute(t,e),t.style.setProperty(e,n)):t.style.removeProperty(e)}))}_applyManipulationCallback(t,e){if(Ht(t))e(t);else for(const n of we.find(t,this._element))e(n)}}const pi=".bs.modal",fi=`hide${pi}`,mi=`hidePrevented${pi}`,gi=`hidden${pi}`,_i=`show${pi}`,vi=`shown${pi}`,bi=`resize${pi}`,yi=`click.dismiss${pi}`,wi=`mousedown.dismiss${pi}`,Ei=`keydown.dismiss${pi}`,ki=`click${pi}.data-api`,Ai="modal-open",Si="show",Ti="modal-static",xi={backdrop:!0,focus:!0,keyboard:!0},Oi={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Li extends be{constructor(t,e){super(t,e),this._dialog=we.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new ui,this._addEventListeners()}static get Default(){return xi}static get DefaultType(){return Oi}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||pe.trigger(this._element,_i,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Ai),this._adjustDialog(),this._backdrop.show((()=>this._showElement(t))))}hide(){this._isShown&&!this._isTransitioning&&(pe.trigger(this._element,fi).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Si),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())))}dispose(){pe.off(window,pi),pe.off(this._dialog,pi),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new ti({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new ai({trapElement:this._element})}_showElement(t){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 e=we.findOne(".modal-body",this._dialog);e&&(e.scrollTop=0),Wt(this._element),this._element.classList.add(Si),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,pe.trigger(this._element,vi,{relatedTarget:t})}),this._dialog,this._isAnimated())}_addEventListeners(){pe.on(this._element,Ei,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),pe.on(window,bi,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),pe.on(this._element,wi,(t=>{pe.one(this._element,yi,(e=>{this._element===t.target&&this._element===e.target&&("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(Ai),this._resetAdjustments(),this._scrollBar.reset(),pe.trigger(this._element,gi)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(pe.trigger(this._element,mi).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;"hidden"===e||this._element.classList.contains(Ti)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(Ti),this._queueCallback((()=>{this._element.classList.remove(Ti),this._queueCallback((()=>{this._element.style.overflowY=e}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),n=e>0;if(n&&!t){const t=Qt()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!n&&t){const t=Qt()?"paddingRight":"paddingLeft";this._element.style[t]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each((function(){const n=Li.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===n[t])throw new TypeError(`No method n
2amed "${t}"`);n[t](e)}}))}}pe.on(document,ki,'[data-bs-toggle="modal"]',(function(t){const e=we.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),pe.one(e,_i,(t=>{t.defaultPrevented||pe.one(e,gi,(()=>{Rt(this)&&this.focus()}))}));const n=we.findOne(".modal.show");n&&Li.getInstance(n).hide(),Li.getOrCreateInstance(e).toggle(this)})),Ee(Li),Yt(Li);const Ci=".bs.offcanvas",Di=".data-api",Ii=`load${Ci}${Di}`,Mi="show",Pi="showing",Ni="hiding",ji=".offcanvas.show",$i=`show${Ci}`,Hi=`shown${Ci}`,Fi=`hide${Ci}`,Ri=`hidePrevented${Ci}`,qi=`hidden${Ci}`,zi=`resize${Ci}`,Bi=`click${Ci}${Di}`,Wi=`keydown.dismiss${Ci}`,Ui={backdrop:!0,keyboard:!0,scroll:!1},Vi={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Qi extends be{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Ui}static get DefaultType(){return Vi}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||pe.trigger(this._element,$i,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new ui).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Pi),this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Mi),this._element.classList.remove(Pi),pe.trigger(this._element,Hi,{relatedTarget:t})}),this._element,!0))}hide(){this._isShown&&(pe.trigger(this._element,Fi).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Ni),this._backdrop.hide(),this._queueCallback((()=>{this._element.classList.remove(Mi,Ni),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new ui).reset(),pe.trigger(this._element,qi)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new ti({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():pe.trigger(this._element,Ri)}:null})}_initializeFocusTrap(){return new ai({trapElement:this._element})}_addEventListeners(){pe.on(this._element,Wi,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():pe.trigger(this._element,Ri))}))}static jQueryInterface(t){return this.each((function(){const e=Qi.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)}}))}}pe.on(document,Bi,'[data-bs-toggle="offcanvas"]',(function(t){const e=we.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),qt(this))return;pe.one(e,qi,(()=>{Rt(this)&&this.focus()}));const n=we.findOne(ji);n&&n!==e&&Qi.getInstance(n).hide(),Qi.getOrCreateInstance(e).toggle(this)})),pe.on(window,Ii,(()=>{for(const t of we.find(ji))Qi.getOrCreateInstance(t).show()})),pe.on(window,zi,(()=>{for(const t of we.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&Qi.getOrCreateInstance(t).hide()})),Ee(Qi),Yt(Qi);const Yi={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],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:[]},Ki=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Xi=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Gi=(t,e)=>{const n=t.nodeName.toLowerCase();return e.includes(n)?!Ki.has(n)||Boolean(Xi.test(t.nodeValue)):e.filter((t=>t instanceof RegExp)).some((t=>t.test(n)))},Ji={allowList:Yi,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Zi={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},ts={entry:"(string|element|function|null)",selector:"(string|element)"};class es extends ve{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Ji}static get DefaultType(){return Zi}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((t=>
vendor: 4,508 bytes, line 2
2this._resolvePossibleFunction(t))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[e,n]of Object.entries(this._config.content))this._setContent(t,n,e);const e=t.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&e.classList.add(...n.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,n]of Object.entries(t))super._typeCheckConfig({selector:e,entry:n},ts)}_setContent(t,e,n){const i=we.findOne(n,t);i&&((e=this._resolvePossibleFunction(e))?Ht(e)?this._putElementInTemplate(Ft(e),i):this._config.html?i.innerHTML=this._maybeSanitize(e):i.textContent=e:i.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,n){if(!t.length)return t;if(n&&"function"==typeof n)return n(t);const i=(new window.DOMParser).parseFromString(t,"text/html"),s=[].concat(...i.body.querySelectorAll("*"));for(const t of s){const n=t.nodeName.toLowerCase();if(!Object.keys(e).includes(n)){t.remove();continue}const i=[].concat(...t.attributes),s=[].concat(e["*"]||[],e[n]||[]);for(const e of i)Gi(e,s)||t.removeAttribute(e.nodeName)}return i.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return Kt(t,[void 0,this])}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const ns=new Set(["sanitize","allowList","sanitizeFn"]),is="fade",ss="show",os=".tooltip-inner",rs=".modal",as="hide.bs.modal",ls="hover",cs="focus",hs="click",ds={AUTO:"auto",TOP:"top",RIGHT:Qt()?"left":"right",BOTTOM:"bottom",LEFT:Qt()?"right":"left"},us={allowList:Yi,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},ps={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 fs extends be{constructor(t,e){super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return us}static get DefaultType(){return ps}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),pe.off(this._element.closest(rs),as,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=pe.trigger(this._element,this.constructor.eventName("show")),e=(zt(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(n),pe.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(n),n.classList.add(ss),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))pe.on(t,"mouseover",Bt);this._queueCallback((()=>{pe.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}
vendor: 5,485 bytes, line 2
2hide(){if(this._isShown()&&!pe.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(ss),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))pe.off(t,"mouseover",Bt);this._activeTrigger[hs]=!1,this._activeTrigger[cs]=!1,this._activeTrigger[ls]=!1,this._isHovered=null,this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),pe.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(is,ss),e.classList.add(`bs-${this.constructor.NAME}-auto`);const n=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME).toString();return e.setAttribute("id",n),this._isAnimated()&&e.classList.add(is),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new es({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[os]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(is)}_isShown(){return this.tip&&this.tip.classList.contains(ss)}_createPopper(t){const e=Kt(this._config.placement,[this,t,this._element]),n=ds[e.toUpperCase()];return Dt(this._element,t,this._getPopperConfig(n))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return Kt(t,[this._element,this._element])}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return{...e,...Kt(this._config.popperConfig,[void 0,e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)pe.on(this._element,this.constructor.eventName("click"),this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger[hs]=!(e._isShown()&&e._activeTrigger[hs]),e.toggle()}));else if("manual"!==e){const t=e===ls?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),n=e===ls?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");pe.on(this._element,t,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?cs:ls]=!0,e._enter()})),pe.on(this._element,n,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?cs:ls]=e._element.contains(t.relatedTarget),e._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},pe.on(this._element.closest(rs),as,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),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(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=_e.getDataAttributes(this._element);for(const t of Object.keys(e))ns.has(t)&&delete e[t];return t={...e,..."object"==typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:Ft(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[e,n]of Object.entries(this._config))this.constructor.Default[e]!==n&&(t[e]=n);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each((function(){const e=fs.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method n
2amed "${t}"`);e[t]()}}))}}Yt(fs);const ms=".popover-header",gs=".popover-body",_s={...fs.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"},vs={...fs.DefaultType,content:"(null|string|element|function)"};class bs extends fs{static get Default(){return _s}static get DefaultType(){return vs}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[ms]:this._getTitle(),[gs]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each((function(){const e=bs.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}Yt(bs);const ys=".bs.scrollspy",ws=`activate${ys}`,Es=`click${ys}`,ks=`load${ys}.data-api`,As="active",Ss="[href]",Ts=".nav-link",xs=`${Ts}, .nav-item > ${Ts}, .list-group-item`,Os={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Ls={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Cs extends be{constructor(t,e){super(t,e),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 Os}static get DefaultType(){return Ls}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=Ft(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,"string"==typeof t.threshold&&(t.threshold=t.threshold.split(",").map((t=>Number.parseFloat(t)))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(pe.off(this._config.target,Es),pe.on(this._config.target,Es,Ss,(t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const n=this._rootElement||window,i=e.offsetTop-this._element.offsetTop;if(n.scrollTo)return void n.scrollTo({top:i,behavior:"smooth"});n.scrollTop=i}})))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((t=>this._observerCallback(t)),t)}_observerCallback(t){const e=t=>this._targetLinks.get(`#${t.target.id}`),n=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},i=(this._rootElement||document.documentElement).scrollTop,s=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const o of t){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(o));continue}const t=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&t){if(n(o),!i)return}else s||t||n(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=we.find(Ss,this._config.target);for(const e of t){if(!e.hash||qt(e))continue;const t=we.findOne(decodeURI(e.hash),this._element);Rt(t)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,t))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(As),this._activateParents(t),pe.trigger(this._element,ws,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))we.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(As);else for(const e of we.parents(t,".nav, .list-group"))for(const t of we.prev(e,xs))t.classList.add(As)}_clearActiveClass(t){t.classList.remove(As);const e=we.find(`${Ss}.${As}`,t);for(const t of e)t.classList.remove(As)}static jQueryInterface(t){return this.each((function(){const e=Cs.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method n
2amed "${t}"`);e[t]()}}))}}pe.on(window,ks,(()=>{for(const t of we.find('[data-bs-spy="scroll"]'))Cs.getOrCreateInstance(t)})),Yt(Cs);const Ds=".bs.tab",Is=`hide${Ds}`,Ms=`hidden${Ds}`,Ps=`show${Ds}`,Ns=`shown${Ds}`,js=`click${Ds}`,$s=`keydown${Ds}`,Hs=`load${Ds}`,Fs="ArrowLeft",Rs="ArrowRight",qs="ArrowUp",zs="ArrowDown",Bs="Home",Ws="End",Us="active",Vs="fade",Qs="show",Ys=".dropdown-toggle",Ks=`:not(${Ys})`,Xs='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Gs=`.nav-link${Ks}, .list-group-item${Ks}, [role="tab"]${Ks}, ${Xs}`,Js=`.${Us}[data-bs-toggle="tab"], .${Us}[data-bs-toggle="pill"], .${Us}[data-bs-toggle="list"]`;class Zs extends be{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),pe.on(this._element,$s,(t=>this._keydown(t))))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),n=e?pe.trigger(e,Is,{relatedTarget:t}):null;pe.trigger(t,Ps,{relatedTarget:e}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){t&&(t.classList.add(Us),this._activate(we.getElementFromSelector(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),pe.trigger(t,Ns,{relatedTarget:e})):t.classList.add(Qs)}),t,t.classList.contains(Vs)))}_deactivate(t,e){t&&(t.classList.remove(Us),t.blur(),this._deactivate(we.getElementFromSelector(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),pe.trigger(t,Ms,{relatedTarget:e})):t.classList.remove(Qs)}),t,t.classList.contains(Vs)))}_keydown(t){if(![Fs,Rs,qs,zs,Bs,Ws].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter((t=>!qt(t)));let n;if([Bs,Ws].includes(t.key))n=e[t.key===Bs?0:e.length-1];else{const i=[Rs,zs].includes(t.key);n=Gt(e,t.target,i,!0)}n&&(n.focus({preventScroll:!0}),Zs.getOrCreateInstance(n).show())}_getChildren(){return we.find(Gs,this._parent)}_getActiveElem(){return this._getChildren().find((t=>this._elemIsActive(t)))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const t of e)this._setInitialAttributesOnChild(t)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),n=this._getOuterElement(t);t.setAttribute("aria-selected",e),n!==t&&this._setAttributeIfNotExists(n,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=we.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const n=this._getOuterElement(t);if(!n.classList.contains("dropdown"))return;const i=(t,i)=>{const s=we.findOne(t,n);s&&s.classList.toggle(i,e)};i(Ys,Us),i(".dropdown-menu",Qs),n.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,n){t.hasAttribute(e)||t.setAttribute(e,n)}_elemIsActive(t){return t.classList.contains(Us)}_getInnerElement(t){return t.matches(Gs)?t:we.findOne(Gs,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each((function(){const e=Zs.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}pe.on(document,js,Xs,(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),qt(this)||Zs.getOrCreateInstance(this).show()})),pe.on(window,Hs,(()=>{for(const t of we.find(Js))Zs.getOrCreateInstance(t)})),Yt(Zs);const to=".bs.toast",eo=`mouseover${to}`,no=`mouseout${to}`,io=`focusin${to}`,so=`focusout${to}`,oo=`hide${to}`,ro=`hidden${to}`,ao=`show${to}`,lo=`shown${to}`,co="hide",ho="show",uo="showing",po={animation:"boolean",autohide:"boolean",delay:"number"},fo={animation:!0,autohide:!0,delay:5e3};class mo extends be{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return fo}static get DefaultType(){return po}static get NAME(){return"toast"}show(){pe.trigger(this._element,ao).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(co),Wt(this._element),this._element.classList.add(ho,uo),this._queueCallback((()=>{this._element.classList.remove(uo),pe.trigger(this._element,lo),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this.isShown()&&(pe.trigger(this._element,oo).defaultPrevented||(this._element.classList.add(uo),this._queueCallback((()=>{this._element.classList.add(co),this._element.classList.remove(uo,ho),pe.trigger(this._element,ro)}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(ho),super.dispose()}isShown(){return this._element.classList.contains(ho)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const n=t.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){pe.on(this._element,eo,(t=>this._onInteraction(t,!0))),pe.on(this._element,no,(t=>this._onInteraction(t,!1))),pe.on(this._element,io,(t=>this._onInteraction(t,!0))),pe.on(this._element,so,(t=>this._onInteraction(t,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=mo.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method n
2amed "${t}"`);e[t](this)}}))}}Ee(mo),Yt(mo);const go=function(t){return"[object String]"===Object.prototype.toString.call(t)},_o=function(t){return"[object Undefined]"===Object.prototype.toString.call(t)},vo=function(t){return"[object Array]"===Object.prototype.toString.call(t)},bo=function(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},yo=function(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},wo={after:function(t,e){return go(t)?(e.insertAdjacentHTML("afterend",t.trim()),e.nextElementSibling):e.insertAdjacentElement("afterend",t)},append:function(t,e){return go(t)?(e.insertAdjacentHTML("beforeend",t.trim()),e.lastElementChild):e.appendChild(t)},before:function(t,e){return go(t)?(e.insertAdjacentHTML("beforebegin",t.trim()),e.previousElementSibling):e.insertAdjacentElement("beforebegin",t)},children:function(t,e){return _o(e)?[].concat(...t.children):[].concat(...t.children).filter((t=>t.matches(e)))},clone:function(t){return t.cloneNode(!0)},closest:function(t,e){let n=go(e),i=t.parentNode;for(;i&&i.nodeType===Node.ELEMENT_NODE&&3!==i.nodeType;){if(n){if(i.matches(e))return i}else if(i==e)return i;i=i.parentNode}return!1},contains:function(t,e){return go(e)?!!t.querySelector(e):t!==e&&t.contains(e)},create:function(t,e,n){const i=document.createElement(t);for(const t in e){let n=e[t];"class"===t?vo(n)?i.classList.add(...n):i.classList.add(n):i.setAttribute(t,n)}return n&&(i.innerHTML=n),i},index:function(t){if(!t)return-1;let e=0;do{e++}while(t=t.previousElementSibling);return e-1},empty:function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},find:bo,findOne:yo,hide:function(t){t.style.display="none"},next:function(t,e){let n=t.nextElementSibling;if(_o(e))return n;for(;n;){if(n.matches(e))return n;n=n.nextElementSibling}},parents:function(t,e){const n=[];let i=_o(e),s=t.parentNode;for(;s&&s.nodeType===Node.ELEMENT_NODE&&3!==s.nodeType;)(i||s.matches(e))&&n.push(s),s=s.parentNode;return n},prepend:function(t,e){return go(t)?(e.insertAdjacentHTML("afterbegin",t.trim()),e.firstElementChild):e.insertBefore(t,e.firstChild)},prev:function(t,e){let n=t.previousElementSibling;if(_o(e))return n;for(;n;){if(n.matches(e))return n;n=n.previousElementSibling}},remove:function(t){t.parentNode.removeChild(t)},show:function(t,e){e=e||"",t.style.display=e},siblings:function(t){return[].concat(...t.parentNode.children).filter((e=>e!==t))},toggle:function(t,e){"none"===t.ownerDocument.defaultView.getComputedStyle(t,null).display?(e=e||"",t.style.display=e):t.style.display="none"}},Eo={stripNameRegex:/\..*/,nativeEvents:["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 ko(t){return t.replace(Eo.stripNameRegex,"")}function Ao(t,e,n,i,s){if(!go(e)||!t)return;const o=e,r=go(n);i=r?i:n,s=s||!1,e=ko(o),Eo.nativeEvents.includes(e)||(e=o);const a=r?function(t,e,n){return function(i){const s=t.querySelectorAll(e);for(let{target:t}=i;t&&t!==this;t=t.parentNode)for(let e=s.length;e--;)if(s[e]===t)return i.delegateTarget=t,n.apply(t,[i]);return null}}(t,n,i):function(t,e){return function(n){return n.delegateTarget=t,e.apply(t,[n])}}(t,i);t.addEventListener(e,a,s)}const So={settings:Eo,off:function(t,e,n){!function(t,e,n){go(e)&&t&&t.removeEventListener(e,n)}(t,e,n)},on:function(t,e,n,i){Ao(t,e,n,i,!1)},once:function(t,e,n,i){Ao(t,e,n,i,!0)},trigger:function(t,e,n){if(!go(e)||!t)return;let i=null;const s=ko(e);return n=n||{},Eo.nativeEvents.includes(s)?(i=document.createEvent("HTMLEvents"),i.initEvent(s,!0,!0)):i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n}
2),t.dispatchEvent(i),i}},To=function(t){return"[object Null]"===Object.prototype.toString.call(t)},xo=function(t){return!_o(t)&&!To(t)},Oo=function(t){try{JSON.parse(t)}catch(t){return!1}return!0},Lo=function(t){let e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return String(t).replace(/[&<>"'`=\/]/g,(t=>e[t]))},Co=function(t){return"[object Boolean]"===Object.prototype.toString.call(t)},Do=function(t){return"[object Object]"===Object.prototype.toString.call(t)},Io=function(t){return"[object Function]"===Object.prototype.toString.call(t)},Mo={escapeHtml:Lo,extend:function t(){let e={},n=!1,i=0,s=arguments.length;for(Co(arguments[0])&&(n=arguments[0],i++);i<s;i++){let s=arguments[i];for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n&&Do(s[i])?e[i]=t(!0,e[i],s[i]):e[i]=s[i])}return e},isArray:vo,isBoolean:Co,isEmpty:function(t){return _o(t)||To(t)||Number.isNaN(t)||0===t||!1===t||(go(t)||vo(t))&&0===t.length||Do(t)&&0===Object.getOwnPropertyNames(t).length},isFunction:Io,isJson:Oo,isNull:To,isNumber:function(t){return"[object Number]"===Object.prototype.toString.call(t)},isObject:Do,isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},isSet:xo,isString:go,isUndefined:_o},Po=new class{defaultTokens={"&":(t,e,n)=>"r.push("+n+");\n",if:(t,e,n)=>"if "+n+"{\n",elseif:(t,e,n)=>"} else if"+n+"{\n",else:(t,e,n)=>"} else {\n",endif:(t,e,n)=>"}\n",for:(t,e,n)=>"for "+n+"{\n",endfor:(t,e,n)=>"}\n",break:(t,e,n)=>"break;\n",continue:(t,e,n)=>"continue;\n",">":(t,e,n)=>{const[i,s]=n.trim().split(/\s+(.*)/),o=this.partials[i];if(!o)throw new SyntaxError("Partial not found");return"r.push(_supplant(`"+o+"`, "+s+"));\n"},log:(t,e,n)=>(console.log(n),"")};constructor(){this.tokens={...this.defaultTokens},this.partials={},this.functions={}}registerToken(t,e){if(this.tokens[t])throw new Error(`Token '${t}' is already registered`);if(!e||"function"!=typeof e)throw new Error("Token definition must be a method");this.tokens[t]=e}unregisterToken(t){if(!this.tokens[t])throw new Error(`Token '${t}' not found`);delete this.tokens[t]}registerPartial(t,e){if(this.partials[t])throw new Error(`Partial '${t}' is already registered`);this.partials[t]=e}unregisterPartial(t){if(!this.partials[t])throw new Error(`Partial '${t}' not found`);delete this.partials[t]}registerFunction(t,e){if(this.functions[t])throw new Error(`Function '${t}' is already registered`);if("function"!=typeof e)throw new Error("Argument must be a function");this.functions[t]=e}unregisterFunction(t){if(!this.functions[t])throw new Error(`Function '${t}' not found`);delete this.functions[t]}getTokens(){return{...this.tokens}}getPartials(){return{...this.partials}}getFunctions(){return{...this.functions}}reset(){this.tokens={...settings.tokens},this.partials={},this.functions={}}},No=function t(e,n){e=e&&e.nodeType===Node.ELEMENT_NODE?e.innerHTML:e,n=n||{};const i=/{{([\s\S]*?)}}/g,s=Object.keys(Po.getTokens()).map((t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))).join("|"),o=new RegExp("^\\s*("+s+")(?=\\s|$)");let r,a="var r=[];\n",l=0;function c(t){t&&(a+='r.push("'+t.replace(/"/g,'\\"')+'");\n')}function h(t){const e=t.trim(),n=o.exec(e);if(n){const t=n[1],i=e.slice(n[0].length).trim(),s=Po.getTokens()[t];if(!s)throw new SyntaxError(`Token not found '${t}'`);a+=s(e,t,i)}else a+="r.push(_escape("+e+"));\n"}for(;r=i.exec(e);)c(e.slice(l,r.index)),h(r[1]),l=r.index+r[0].length;c(e.slice(l)),n._escape=Lo,n._supplant=t;const d=Po.getFunctions();return Object.keys(d).forEach((t=>{n[t]=d[t]})),a+='return r.join("");',new Function("with (this) { "+a.replace(/[\r\t\n]/g,"")+"}").apply(n)},jo=wo,$o=So,Ho=Mo,Fo={registry:Po,compile:function(t,e){return No(t,e)},supplant:No};class Ro{constructor(t,e){this.element=t,this.options=Ho.extend(!0,Ro.DEFAULTS,this.element.dataset,"object"==typeof e&&e),this.desktopHamburger=jo.findOne(".desktop-hamburger",this.element),this.desktopMenu=jo.findOne(".fullscreen-menu",this.element),this.desktopMenu&&(this.navItems=jo.find(".nav-item",this.element),this.withSubMenuItems=jo.find(".with-submenu",this.element),this.expansionIcons=jo.find(".menu-expander",this.element),this.isDesktop=window.innerWidth>=768,this.handleResize=this.handleResize.bind(this),this.initEvents())}initEvents(){this.desktopHamburger.addEventListener("click",(()=>this.toggleDesktopMenu())),window.addEventListener("resize",this.handleResize),this.isDesktop&&this.initDesktopEvents();for(const t of this.expansionIcons)t.addEventListener("click",(t=>{const e=t.currentTarget.closest(".with-submenu");this.toggleSubmenu(e)}))}initDesktopEvents(){if(!this.desktopEventsAttached){this.desktopEventsAttached=!0;for(const t of this.withSubMenuItems)t.addEventListener("mouseover",this.hoverOpen=t=>this.openDesktopSubmenu(t)),t.addEventListener("mouseleave",this.hoverClose=t=>this.closeDesktopSubmenu(t))}}removeDesktopEvents(){if(this.desktopEventsAttached){this.desktopEventsAttached=!1;for(const t of this.withSubMenuItems)t.removeEventListener("mouseover",this.hoverOpen),t.removeEventListener("mouseleave",this.hoverClose)}}toggleDesktopMenu(){this.desktopHamburger.classList.contains("close")?(this.desktopHamburger.classList.remove("close"),this.desktopHamburger.classList.add("open"),this.desktopMenu.classList.remove("close"),this.desktopMenu.classList.add("open"),this.element.classList.remove("close"),this.element.classList.add("open"),body.style.overflow="hidden"):(this.desktopHamburger.classList.remove("open"),this.desktopHamburger.classList.add("close"),this.desktopMenu.classList.remove("open"),this.desktopMenu.classList.add("close"),this.element.classList.remove("open"),this.element.classList.add("close"),body.style.overflow="")}openDesktopSubmenu(t){const e=t.currentTarget,n=e.querySelector(".subnav-list").offsetHeight,i=e.querySelector(".header-submenu"),s=[...this.navItems];for(let t=s.indexOf(e)+1;t<s.length;t++)s[t].style.top=n+"px";i.classList.add("active")}closeDesktopSubmenu(t){const e=t.currentTarget.querySelector(".header-submenu");for(const t of this.navItems)t.style.top="";e&&e.classList.remove("active")}toggleSubmenu(t){const e=t.querySelector(".header-submenu");if(!this.isDesktop)for(const e of this.withSubMenuItems)e!==t&&this.closeDesktopSubmenu({currentTarget:e});e.classList.contains("active")?this.closeDesktopSubmenu({currentTarget:t}):this.openDesktopSubmenu({currentTarget:t})}handleResize(){const t=window.innerWidth>=768;t!==this.isDesktop&&(this.isDesktop=t,this.isDesktop?this.initDesktopEvents():(this.removeDesktopEvents(),this.resetDesktopMenuState()))}resetDesktopMenuState(){for(const t of this.navItems)t.style.top="";for(const t of this.withSubMenuItems){const e=t.querySelector(".header-submenu");e&&e.classList.remove("active")}}}Ro.DEFAULTS={};const qo=Ro;class zo{constructor(t){this.options=Ho.extend(!0,zo.DEFAULTS,"object"==typeof t&&t);for(let t=0;t<this.options.components.length;t++)this[this.options.components[t]]()}accordions(){const t=jo.find(".accordion .accordion-collapse");t.length>0&&t.map((t=>{const e=t.parentNode;t.classList.contains("show")&&e&&e.classList.add("active"),new kn(t,{toggle:!1}),t.addEventListener("show.bs.collapse",(()=>{e&&e.classList.add("active")})),t.addEventListener("hide.bs.collapse",(()=>{e&&e.classList.remove("active")}))}))}}zo.DEFAULTS={components:["accordions"]};const Bo=zo;var Wo=n(532),Uo=n.n(Wo);class Vo{constructor(t,e){this.element=t,this.options=Ho.extend(!0,Vo.DEFAULTS,this.element.dataset,"object"==typeof e&&e),this.id=this.uniqid(),this.initEvents()}initEvents(){$o.on(this.element,"click",(t=>this.open(t)))}open(t){t.preventDefault();const e=jo.append(Fo.supplant(this.options.templates.modal,{id:this.id,video:this.youtubeUrlToEmbedHtml(this.options.modalVideo)}),document.body),n=new Li(e,{});n.show(),this.options.modalVideo?e.addEventListener("hidden.bs.modal",(t=>{n.dispose(),jo.remove(e)})):jo.findOne(".modal-body",e).innerHTML='<p class="text-center">Video not found</p>'}youtubeUrlToEmbedHtml(t){if(!t)return null;const e=t.match(/(?:youtube\.com\/.*v=|youtu\.be\/)([^&#?/]+)/i),n=e&&e[1];return n?`<iframe width="560" height="315"\n src="https://www.youtube.com/embed/${n}"\n frameborder="0"\n allowfullscreen></iframe>
2`:null}async wpOembedGetJS(t){const e=await fetch(`/wp-json/oembed/1.0/embed?url=${encodeURIComponent(t)}`);if(!e.ok)throw new Error("Failed to fetch oEmbed");return(await e.json()).html}uniqid(){return Math.floor(Math.random()*Date.now())}}Vo.DEFAULTS={templates:{modal:'\n <div id={{id}} class="modal modal-video" tabindex="-1">\n <div class="modal-dialog modal-lg">\n <div class="modal-content">\n <div class="modal-header">\n <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>\n </div>\n <div class="modal-body">\n {{if (video)}}\n <div class="ratio ratio-16x9">\n {{& video}}\n </div>\n {{else}}\n <p class="text-center">Video not found</p>\n {{endif}}\n </div>\n </div>\n </div>\n </div>\n '}};const Qo=Vo;class Yo{constructor(t){this.element=t}init(){if(Ho.isEmpty(this.options.preRequests))return void this.start();const t=this.buildRequests(this.options.preRequests);Promise.all(t).then((t=>{this.start(...t)})).catch((t=>console.trace(t)))}buildRequests(t){let e=[];return t.forEach((t=>{e.push(fetch(t.endpoint+"?"+new URLSearchParams(t.params),this.fetchOptions()).then(this.responseHandler))})),e}fetchOptions(){return{method:"GET",mode:"cors",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"},redirect:"follow",referrerPolicy:"no-referrer"}}responseHandler(t){return t.ok?t.text().then((t=>t&&JSON.parse(t))):Promise.reject(new Error(t.statusText))}setMessage(t){this.message||console.error("Message element not set!!");let e=Fo.supplant(this.options.templates.message,{message:t});this.message.innerHTML=e}getUrlParams(){let t=new URLSearchParams(window.location.search);const e={};
2for(const[n,i]of t.entries())e[n]=i;return e}updateUrlParams(t){const e=new URL(window.location);let n=Ho.extend(this.options.properties,this.getUrlParams(),t);for(const t in n)e.searchParams.set(t,n[t]);history.pushState({},"",e)}}Yo.DEFAULTS={properties:{},preRequests:[],templates:{message:'\n\t\t\t<h2 class="text-center my-4">{{& message}}</h2>\n\t\t'}};const Ko=Yo;class Xo extends Ko{constructor(t,e){super(t),this.options=Ho.extend(!0,Ko.DEFAULTS,Xo.DEFAULTS,"object"==typeof e&&e)}start(t){this.element.innerHTML=Fo.supplant(this.options.templates.body,{filters:this.populateFilters(t)}),this.results=jo.findOne(".resources-archive-list",this.element),this.message=jo.findOne(".message",this.element),this.pagination=jo.findOne(".pagination-wrapper",this.element),this.archiveLoader=jo.findOne(".archive-loader"),this.typesSelect=jo.find('[data-filter-option="types"]',this.element),this.initEvents(),this.updateUrlParams({}),this.loadData()}loadData(){const t=this.getUrlParams(),e=parseInt(t.page),n=t.types;let i={action:"get_resources_posts",page:e};n&&-1!=n&&(i.types=n),jo.show(this.archiveLoader),fetch(ajaxurl+"?"+new URLSearchParams(i)).then((t=>t.json())).then((t=>{console.log(t),jo.hide(this.archiveLoader);let n=t.numPages;if(this.setMessage(""),jo.show(this.pagination),0==t.items.length&&1==e)return this.results.innerHTML="",this.setMessage("No results found"),void jo.hide(this.pagination);let i="";if(t.items)for(let e=0;e<t.items.length;e++){let n=t.items[e];i+=Fo.supplant(this.options.templates.post,{image:n.thumbnail,alt:n.alt,title:n.title,link:n.link,type:n.type,behaviour:n.behaviour})}this.results.innerHTML=i,this.initModalVideos(),AOS.refreshHard(),n<=1&&jo.hide(this.pagination),this.updatePaging(e,n),jo.hide(this.message)})).catch((t=>{console.log(t),this.pagination.style.display="none"}))}initEvents(){this.typesSelect.forEach((t=>{$o.on(t,"change",(t=>this.switchType(t)))})),$o.on(this.pagination,"click","button",(t=>{this.nextPage(t.delegateTarget.dataset.page),this.element.scrollIntoView()}))}nextPage(t){this.updateUrlParams({page:parseInt(t)}),this.loadData()}switchType(t){const e=t.target.value;this.updateUrlParams({types:e,page:1}),this.loadData()}getSelectedTypes(){return Array.from(this.typesSelect).filter((t=>t.checked)).map((t=>t.value))}updatePaging(t,e){let n=Fo.supplant(this.options.templates.paging,{page:parseInt(t),totalPages:e});this.pagination.innerHTML=n}populateFilters(t){let e=this.getUrlParams();return Fo.supplant(this.options.templates.filters,{types:t,typesSelected:(e.types||"").split(",").filter(Boolean)})}initModalVideos(){const t=document.querySelectorAll("[data-modal-video]");if(t.length>0)for(let e=0;e<t.length;e++)new Optura.ModalVideo(t[e])}}Xo.DEFAULTS={properties:{page:1,types:"",per_page:9},preRequests:[{endpoint:"/wp-json/wp/v2/resource-type",params:{per_page:50}}],templates:{body:'\n\t\t\t<div class="archive-filters">\n\t\t\t\t{{& filters}}\n\t\t\t</div>\n\n\t\t\t<div class="archive-loader" style="display: none;">\n\t\t\t\t<img src="/wp-content/themes/optura/img/loading.gif" alt="Loading archive spinner..." />\n\t\t\t</div>\n\n\t\t\t<div class="row resources-archive-list"></div>\n\n\t\t\t<div class="message"></div>\n\n\t\t\t<div class="pagination-wrapper"></div>\n\t\t',post:'\n\t\t\t<div class="col-md-6 col-lg-4">\n\t\t\t\t{{if (behaviour == \'download\')}}\n\t\t\t\t\t<a href="{{link}}" download class="card card-resource mb-3" data-aos="fade-up">\n\t\t\t\t\t\t{{if (image)}}\n\t\t\t\t\t\t\t<img src="{{image}}" class="card-img" alt="{{alt}}" />\n\t\t\t\t\t\t{{endif}}\n\n\t\t\t\t\t\t<div class="card-body">\n\t\t\t\t\t\t\t<div class="card-pretitle">\n\t\t\t\t\t\t\t\t{{& type}}\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<div class="h3 card-title">{{& title}}</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</a>\n\t\t\t\t{{elseif (behaviour == \'link\')}}\n\t\t\t\t\t<a href="{{link}}" target="_blank" rel="noopener" class="card card-resource mb-3" data-aos="fade-up">\n\t\t\t\t\t\t{{if (image)}}\n\t\t\t\t\t\t\t<img src="{{image}}" class="card-img" alt="{{alt}}" />\n\t\t\t\t\t\t{{endif}}\n\n\t\t\t\t\t\t<div class="card-body">\n\t\t\t\t\t\t\t<div class="card-pretitle">\n\t\t\t\t\t\t\t\t{{& type}}\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<div class="h3 card-title">{{& title}}</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</a>\n\t\t\t\t{{elseif (behaviour == \'video\')}}\n\t\t\t\t\t<a class="card card-resource mb-3" data-modal-video="{{link}}" data-aos="fade-up">\n\t\t\t\t\t\t{{if (image)}}\n\t\t\t\t\t\t\t<div class="btn-play">\n\t\t\t\t\t\t\t\t<img src="{{image}}" class="card-img" alt="{{alt}}" />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t{{endif}}\n\n\t\t\t\t\t\t<div class="card-body">\n\t\t\t\t\t\t\t<div class="card-pretitle">\n\t\t\t\t\t\t\t\t{{& type}}\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<div class="h3 card-title">{{& title}}</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</a>\n\t\t\t\t{{elseif (behaviour == \'page\')}}\n\t\t\t\t\t<a href="{{link}}" class="card card-resource mb-3" data-aos="fade-up">\n\t\t\t\t\t\t{{if (image)}}\n\t\t\t\t\t\t\t<img src="{{image}}" class="card-img" alt="{{alt}}" />\n\t\t\t\t\t\t{{endif}}\n\n\t\t\t\t\t\t<div class="card-body">\n\t\t\t\t\t\t\t<div class="card-pretitle">\n\t\t\t\t\t\t\t\t{{& type}}\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<div class="h3 card-title">{{& title}}</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</a>\n\t\t\t\t{{endif}}\n\t\t\t</div>\n\t\t',filters:'\n\t\t\t{{if (types)}}\n\t\t\t\t<input \n\t\t\t\t\tclass="btn-check"\n\t\t\t\t\ttype="radio"\n\t\t\t\t\tid="type-all"\n\t\t\t\t\tdata-filter-option="types"\n\t\t\t\t\tname="types-filter"\n\t\t\t\t\tdata-reset="1" \n\t\t\t\t\tvalue="" \n\t\t\t\t\t{{if (!typesSelected.length)}} checked {{endif}}\n\t\t\t\t\tautocomplete="off"\n\t\t\t\t>\n\n\t\t\t\t<label class="btn btn-outline-primary" for="type-all">\n\t\t\t\t\t<span class="btn-outline-primary-inner">All</span>\n\t\t\t\t\t<span class="btn-outline-primary-hover">All</span>\n\t\t\t\t</label>\n\n\t\t\t\t{{for (let i = 0; i < types.length; i++)}}\n\t\t\t\t\t<input \n\t\t\t\t\t\tclass="btn-check" \n\t\t\t\t\t\ttype="radio" \n\t\t\t\t\t\tid="type-{{& types[i].slug}}" \n\t\t\t\t\t\tdata-filter-option="types"\n\t\t\t\t\t\tvalue="{{types[i].slug}}" \n\t\t\t\t\t\tname="types-filter" \n\t\t\t\t\t\t{{if (typesSelected.indexOf(types[i].slug) !== -1)}} checked {{endif}}\n\t\t\t\t\t\tautocomplete="off"\n\t\t\t\t\t>\n\n\t\t\t\t\t<label class="btn btn-outline-primary" for="type-{{& types[i].slug}}">\n\t\t\t\t\t\t<span class="btn-outline-primary-inner">\n\t\t\t\t\t\t\t{{& types[i].name}}\n\t\t\t\t\t\t</span>\n\n\t\t\t\t\t\t<span class="btn-outline-primary-hover">\n\t\t\t\t\t\t\t{{& types[i].name}}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</label>\n\t\t\t\t{{endfor}}\n\t\t\t{{endif}}\n\t\t',paging:'\n\t\t\t<nav aria-label="Resources Pagination">\n\t\t\t\t<ul class="pagination">\n\t\t\t\t\t<li class="{{if (page == 1)}}disabled{{endif}}">
2\n\t\t\t\t\t\t<button data-page="{{page-1}}" class="btn btn-outline-primary">\n\t\t\t\t\t\t\t<span class="btn-outline-primary-inner">Back</span>\n\t\t\t\t\t\t\t<span class="btn-outline-primary-hover">Back</span>\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</li>\n\t\t\t\t\t\n\t\t\t\t\t{{for (let i = 1; i <= totalPages; i++)}}\n\t\t\t\t\t\t{{if (i == page)}}\n\t\t\t\t\t\t\t<li class="btn btn-outline-primary" aria-current="page">\n\t\t\t\t\t\t\t\t<span class="btn-outline-primary-inner">{{i}}</span>\n\t\t\t\t\t\t\t\t<span class="btn-outline-primary-hover">{{i}}</span>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t{{else}}\n\t\t\t\t\t\t\t{{if (i == 1)}}\n\t\t\t\t\t\t\t\t<li class="page-item">\n\t\t\t\t\t\t\t\t\t<button data-page="{{i}}" class="btn btn-outline-primary">\n\t\t\t\t\t\t\t\t\t\t<span class="btn-outline-primary-inner">{{i}}</span>\n\t\t\t\t\t\t\t\t\t\t<span class="btn-outline-primary-hover">{{i}}</span>\n\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t{{elseif (i == totalPages)}}\n\t\t\t\t\t\t\t\t<li class="page-item">\n\t\t\t\t\t\t\t\t\t<button data-page="{{i}}" class="btn btn-outline-primary">\n\t\t\t\t\t\t\t\t\t\t<span class="btn-outline-primary-inner">{{i}}</span>\n\t\t\t\t\t\t\t\t\t\t<span class="btn-outline-primary-hover">{{i}}</span>\n\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t{{elseif (i == page+1)}}\n\t\t\t\t\t\t\t\t<li class="page-item">\n\t\t\t\t\t\t\t\t\t<button data-page="{{i}}" class="btn btn-outline-primary">\n\t\t\t\t\t\t\t\t\t\t<span class="btn-outline-primary-inner">{{i}}</span>\n\t\t\t\t\t\t\t\t\t\t<span class="btn-outline-primary-hover">{{i}}</span>\n\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t{{elseif (i == page+2)}}\n\t\t\t\t\t\t\t\t<li class="page-item">\n\t\t\t\t\t\t\t\t\t<button data-page="{{i}}" class="btn btn-outline-primary">\n\t\t\t\t\t\t\t\t\t\t<span class="btn-outline-primary-inner">{{i}}</span>\n\t\t\t\t\t\t\t\t\t\t<span class="btn-outline-primary-hover">{{i}}</span>\n\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{{if (page+3 != totalPages)}}\n\t\t\t\t\t\t\t\t\t<li class="page-item disabled">\n\t\t\t\t\t\t\t\t\t\t<div class="page-link">...</div>\n\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t{{endif}}\n\t\t\t\t\t\t\t{{elseif (i == page-1)}}\n\t\t\t\t\t\t\t\t<li class="page-item">\n\t\t\t\t\t\t\t\t\t<button data-page="{{i}}" class="btn btn-outline-primary">\n\t\t\t\t\t\t\t\t\t\t<span class="btn-outline-primary-inner">{{i}}</span>\n\t\t\t\t\t\t\t\t\t\t<span class="btn-outline-primary-hover">{{i}}</span>\n\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t{{elseif (i == page-2)}}\n\t\t\t\t\t\t\t\t{{if (page-3 != 1)}}\n\t\t\t\t\t\t\t\t\t<li class="page-item disabled">\n\t\t\t\t\t\t\t\t\t\t<div class="page-link">...</div>\n\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t{{endif}}\n\n\t\t\t\t\t\t\t\t<li class="page-item">\n\t\t\t\t\t\t\t\t\t<button data-page="{{i}}" class="btn btn-outline-primary">\n\t\t\t\t\t\t\t\t\t\t<span class="btn-outline-primary-inner">{{i}}</span>\n\t\t\t\t\t\t\t\t\t\t<span class="btn-outline-primary-hover">{{i}}</span>\n\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t{{endif}}\n\t\t\t\t\t\t{{endif}}\n\t\t\t\t\t{{endfor}}\n\n\t\t\t\t\t<li class="page-item page-next {{if (page == totalPages)}}disabled{{endif}}">\n\t\t\t\t\t\t<button data-page="{{page+1}}" class="btn btn-outline-primary">\n\t\t\t\t\t\t\t<span class="btn-outline-primary-inner">Next</span>\n\t\t\t\t\t\t\t<span class="btn-outline-primary-hover">Next</span>\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</nav>\n\t\t'}};const Go=Xo,Jo=class{constructor(t){this.video=t,this._active=null,this._queue=[],this._timeUpdateHandler=this._onTimeUpdate.bind(this),this._isListening=!1,this._onEnded=this._onEnded.bind(this),this.video.addEventListener("ended",this._onEnded)}async playSegment(t,e,{loop:n=!1,waitForCurrent:i=!1}={}){await this._ensureReady();const s={start:t,end:e,loop:n};return this._validate(s),new Promise((t=>{const e={...s,resolve:t};i&&this._active?this._queue.push(e):(this._interruptActive("interrupted"),this._startSegment(e))}))}stop(){this._queue.length=0,this._interruptActive("stopped"),this.video.pause()}clearQueue(){this._queue.length=0}dispose(){this.stop(),this._detachListeners()}async _ensureReady(){this.video.readyState>=1||await new Promise((t=>{this.video.addEventListener("loadedmetadata",t,{once:!0})}))}_validate({start:t,end:e}){if(!Number.isFinite(t)||!Number.isFinite(e)||e<=t)throw new Error("Invalid segment: start/end must be numbers and end > start.")}_startSegment(t){this._active=t,this._attachListeners(),this.video.currentTime=t.
2start,this.video.play()}_onTimeUpdate(){const t=this._active;if(t&&this.video.currentTime>=t.end){if(this._queue.length){t.resolve({status:"finished",reason:"next_queued"});const e=this._queue.shift();return this._active=null,void this._startSegment(e)}if(t.loop)return void(this.video.currentTime=t.start);this.video.pause(),this.video.currentTime=t.end,t.resolve({status:"finished",reason:"ended"}),this._active=null,this._detachListenersIfIdle()}}_onEnded(){const t=this._active;if(t){if(!t.loop)return t.resolve({status:"finished",reason:"ended"}),this._active=null,void this._detachListenersIfIdle();this.video.currentTime=t.start,Promise.resolve().then((()=>{this.video.play()}))}}_interruptActive(t){if(!this._active)return;const e=this._active;this._active=null,e.resolve({status:"ended",reason:t}),this._detachListenersIfIdle()}_attachListeners(){this._isListening||(this._isListening=!0,this.video.addEventListener("timeupdate",this._timeUpdateHandler))}_detachListenersIfIdle(){this._active||this._queue.length||this._detachListeners()}_detachListeners(){this._isListening&&(this._isListening=!1,this.video.removeEventListener("timeupdate",this._timeUpdateHandler))}},Zo=class{constructor(t,e={}){this.element=t,this.breakpoint=550,this.parseData(),this.initOptions(e),this.initState(),this.initElements(),this.chunks.length&&this.effectsWrapper&&this.initResponsive()}parseData(){const t=this.element.dataset.options?JSON.parse(this.element.dataset.options):{};this.mediaId=t.mediaId||null,this.segments=Array.isArray(t.segments)?t.segments:[],console.log(this.segments),console.log(this.segments),this.timeline=this.buildTimeline()}initOptions(t){this.options=Object.assign({outVH:175,passive:!0},t)}initElements(){this.chunks=[...this.element.querySelectorAll(".textual-chunk")],this.chunks.forEach((t=>{const e=t.querySelector(".textual-effects");e&&this.originalEffectsParents.set(e,t)})),this.wrappers=this.chunks.map((t=>t.querySelector(".textual-wrapper"))),this.effectsWrapper=this.element.querySelector(".textual-effects-wrapper"),this.video=this.mediaId?this.element.querySelector(`#player${this.mediaId}`):null,this.videoSticky=this.mediaId?this.element.querySelector(`#video-${this.mediaId}`):null}initState(){this.effectsList=[],this.activeIndex=-1,this.lastQueuedIndex=null,this.transitionQueuedIndex=null,this.isStickyActive=!1,this.introPlayed=!1,this.lastScrollY=window.scrollY,this.scrollDirection="down",this.textStickyTop=0,this.videoStickyTop=0,this.isDesktopMode=!1,this.originalEffectsParents=new Map}initEffects(){this.effectsList=this.chunks.map((t=>{const e=t.querySelector(".textual-effects");return e&&this.effectsWrapper.appendChild(e),e}))}initScroll(){this.wrappers[0]&&(this.textStickyTop=parseFloat(getComputedStyle(this.wrappers[0]).top)||0),this.onScroll=this.onScroll.bind(this),window.addEventListener("scroll",this.onScroll,{passive:this.options.passive})}initVideo(){this.video&&this.videoSticky&&(this.videoStickyTop=parseFloat(getComputedStyle(this.videoSticky).top)||0,this.player=new Jo(this.video),this.checkSticky=this.checkSticky.bind(this),window.addEventListener("scroll",this.checkSticky,{passive:!0}))}onScroll(){this.isDesktopMode&&(this.updateScrollDirection(),this.updateTextEffects(),this.checkTransitionZone(),this.updateActiveIndex())}updateScrollDirection(){const t=window.scrollY;this.scrollDirection=t>this.lastScrollY?"down":"up",this.lastScrollY=t}updateTextEffects(){const t=window.innerHeight;this.chunks.forEach(((e,n)=>{const i=this.effectsList[n],s=this.wrappers[n];if(!i||!s)return;const o=e.getBoundingClientRect(),r=s.getBoundingClientRect();if(0===n&&!this.introPlayed&&o.top<t&&o.bottom>0&&this.timeline[0]?.transition&&(this.introPlayed=!0,this.player.playSegment(this.timeline[0].transition.from,this.timeline[0].transition.to,{loop:!1,waitForCurrent:!1}),this.player.playSegment(this.timeline[0].main.from,this.timeline[0].main.to,{loop:this.timeline[0].main.loop,waitForCurrent:!0})),o.top>t||o.bottom<0)return void i.classList.remove("in","out");const a=r.top<=this.textStickyTop&&r.bottom>this.textStickyTop;Math.min(e.offsetHeight,Math.max(0,t-o.top))/t*100>=this.options.outVH?i.classList.add("in","out"):a?(i.classList.add("in"),i.classList.remove("out")):i.classList.remove("in","out")}))}updateActiveIndex(){let t=-1;
2this.wrappers.forEach(((e,n)=>{if(!e)return;const i=e.getBoundingClientRect();i.top<=this.textStickyTop&&i.bottom>this.textStickyTop&&(t=n)})),-1!==t&&t!==this.activeIndex&&(this.activeIndex=t,this.isStickyActive&&this.playActiveSegment())}playActiveSegment(){if(!this.timeline.length)return;const t=this.timeline[this.activeIndex];t&&this.lastQueuedIndex!==this.activeIndex&&(this.player.playSegment(t.main.from,t.main.to,{loop:t.main.loop,waitForCurrent:!0}),this.lastQueuedIndex=this.activeIndex)}checkSticky(){if(!this.isDesktopMode)return;const t=this.videoSticky.getBoundingClientRect(),e=t.top<=this.videoStickyTop&&t.bottom>this.videoStickyTop;e&&!this.isStickyActive&&(this.isStickyActive=!0,this.transitionQueuedIndex=null,"up"===this.scrollDirection&&(this.player.stop(),this.lastQueuedIndex=null),this.playActiveSegment()),!e&&this.isStickyActive&&(this.isStickyActive=!1,this.lastQueuedIndex=null,this.player.stop())}checkTransitionZone(){if("down"===this.scrollDirection&&this.isStickyActive&&this.timeline.length)for(let t=0;t<this.chunks.length-1;t++){const e=this.chunks[t],n=this.chunks[t+1];if(!e||!n)continue;const i=e.getBoundingClientRect(),s=n.getBoundingClientRect(),o=i.top<0&&i.bottom>0,r=s.top<window.innerHeight&&s.top>0;if(o&&r&&this.transitionQueuedIndex!==t+1){this.queueTransitionTo(t+1);break}}}queueTransitionTo(t){const e=this.timeline[t];e&&e.transition&&(this.lastQueuedIndex=this.activeIndex,this.transitionQueuedIndex=t,this.player.playSegment(e.transition.from,e.transition.to,{loop:!1,waitForCurrent:!0}),console.log(e.transition.to))}buildTimeline(){return this.segments.map(((t,e)=>{const n=this.segments[e-1];return 0===e&&t.from>0?{transition:{from:0,to:t.from,loop:!1},main:t}:{transition:n&&n.to<t.from?{from:n.to,to:t.from,loop:!1}:null,main:t}}))}isDesktopLayout(){return window.innerWidth>=this.breakpoint&&window.innerHeight>=this.breakpoint}enableDesktop(){this.isDesktopMode||(this.isDesktopMode=!0,this.initEffects(),this.initScroll(),this.initVideo(),this.onScroll())}disableDesktop(){this.isDesktopMode&&(this.isDesktopMode=!1,this.effectsList.forEach((t=>{if(!t)return;t.classList.remove("in","out");const e=this.originalEffectsParents.get(t);e&&!e.contains(t)&&e.appendChild(t)})),this.player&&(this.player.stop(),this.lastQueuedIndex=null),window.removeEventListener("scroll",this.onScroll),window.removeEventListener("scroll",this.checkSticky),this.effectsList=[],this.activeIndex=-1,this.isStickyActive=!1)}initResponsive(){this.onResize=this.onResize.bind(this),window.addEventListener("resize",this.onResize),this.onResize()}onResize(){this.isDesktopLayout()?this.enableDesktop():this.disableDesktop()}};class tr{constructor(t,e){this.element=t,this.options=Ho.extend(!0,tr.DEFAULTS,"object"==typeof e&&e,this.element.dataset),this.parent=t.parentElement,this._raf=null,this._onScrollOrResize=this._onScrollOrResize.bind(this),window.addEventListener("scroll",this._onScrollOrResize,{passive:!0}),window.addEventListener("resize",this._onScrollOrResize),this.update()}destroy(){window.removeEventListener("scroll",this._onScrollOrResize),window.removeEventListener("resize",this._onScrollOrResize)}_onScrollOrResize(){this._raf||(this._raf=requestAnimationFrame((()=>{this._raf=null,this.update()})))}update(){const t=this.parent.getBoundingClientRect(),e=t.top+window.scrollY,n=t.bottom+window.scrollY,i=Math.max(0,this.options.topOffset-window.scrollY),s=Math.max(0,window.innerHeight-i);this.element.style.height=`${s}px`;const o=n-s,r=window.scrollY+i;r<e?(this.element.style.position="absolute",this.element.style.top="0px"):r>o?(this.element.style.position="absolute",this.element.style.top=`${Math.max(0,this.parent.clientHeight-s)}px`):(this.element.style.position="fixed",this.element.style.top=`${i}px`)}}tr.DEFAULTS={topOffset:0};const er=tr;class nr{constructor(t,e){this.element=t,this.options=Ho.extend(!0,nr.DEFAULTS,this.element.dataset,"object"==typeof e&&e)}init(){if(Ho.isEmpty(this.options.id))return void console.error("no id found");if(Ho.isEmpty(this.options.templates[this.options.bsToggle]))return void console.error("toggle type must be modal or popup");const t=jo.findOne("#popup-template-"+this.options.id);if(Ho.isEmpty(t))return void console.error("no template found");const e=Fo.supplant(this.options.templates[this.options.bsToggle],{id:this.options.id,content:t.innerHTML,backdropImage:this.options.backdropImage??""});jo.append(e,document.body),AOS.refreshHard()}}nr.DEFAULTS={templates:{modal:'\n <div class="modal fade" id="{{id}}" tabindex="-1" aria-hidden="true" data-bs-theme="light">\n <div class="modal-dialog">\n <div class="modal-content">\n <div class="modal-header">\n <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>\n </div>\n <div class="modal-body">\n {{& content}}\n </div>\n </div>\n </div>\n </div>\n ',offcanvas:'\n <div style="--backdrop-image: url(\'{{backdropImage}}\')" data-bs-theme="light">\n <div class="offcanvas offcanvas-end" tabindex="-1" id="{{id}}">\n <div class="offcanvas-header">\n <button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>\n </div>\n <div class="offcanvas-body">\n {{& content}}\n </div>\n </div>\n </div>\n '}};const ir=nr;document.addEventListener("wpcf7mailsent",(function(t){75==t.detail.contactFormId&&(console.log("Mail successfully sent!"),window.lintrk("track",{conversion_id:25302249}))}),!1)})(),Optura=i})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.