/*! bdtUIkit 3.16.17 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */(function(me,ve){typeof exports=="object"&&typeof module<"u"?module.exports=ve():typeof define=="function"&&define.amd?define("uikit",ve):(me=typeof globalThis<"u"?globalThis:me||self,me.bdtUIkit=ve())})(this,function(){"use strict";const{hasOwnProperty:me,toString:ve}=Object.prototype;function bt(t,e){return me.call(t,e)}const zo=/\B([A-Z])/g,Kt=dt(t=>t.replace(zo,"-$1").toLowerCase()),Fo=/-(\w)/g,we=dt(t=>(t.charAt(0).toLowerCase()+t.slice(1)).replace(Fo,(e,i)=>i.toUpperCase())),Et=dt(t=>t.charAt(0).toUpperCase()+t.slice(1));function ot(t,e){var i;return(i=t==null?void 0:t.startsWith)==null?void 0:i.call(t,e)}function Zt(t,e){var i;return(i=t==null?void 0:t.endsWith)==null?void 0:i.call(t,e)}function m(t,e){var i;return(i=t==null?void 0:t.includes)==null?void 0:i.call(t,e)}function yt(t,e){var i;return(i=t==null?void 0:t.findIndex)==null?void 0:i.call(t,e)}const{isArray:Q,from:Qt}=Array,{assign:$t}=Object;function it(t){return typeof t=="function"}function Pt(t){return t!==null&&typeof t=="object"}function kt(t){return ve.call(t)==="[object Object]"}function te(t){return Pt(t)&&t===t.window}function Ue(t){return Di(t)===9}function Ve(t){return Di(t)>=1}function ee(t){return Di(t)===1}function Di(t){return!te(t)&&Pt(t)&&t.nodeType}function Bi(t){return typeof t=="boolean"}function D(t){return typeof t=="string"}function Ye(t){return typeof t=="number"}function xt(t){return Ye(t)||D(t)&&!isNaN(t-parseFloat(t))}function be(t){return!(Q(t)?t.length:Pt(t)&&Object.keys(t).length)}function Y(t){return t===void 0}function Mi(t){return Bi(t)?t:t==="true"||t==="1"||t===""?!0:t==="false"||t==="0"?!1:t}function St(t){const e=Number(t);return isNaN(e)?!1:e}function $(t){return parseFloat(t)||0}function H(t){return S(t)[0]}function S(t){return Ve(t)?[t]:Array.from(t||[]).filter(Ve)}function ie(t){if(te(t))return t;t=H(t);const e=Ue(t)?t:t==null?void 0:t.ownerDocument;return(e==null?void 0:e.defaultView)||window}function Ge(t,e){return t===e||Pt(t)&&Pt(e)&&Object.keys(t).length===Object.keys(e).length&&It(t,(i,s)=>i===e[s])}function Ni(t,e,i){return t.replace(new RegExp(`${e}|${i}`,"g"),s=>s===e?i:e)}function se(t){return t[t.length-1]}function It(t,e){for(const i in t)if(e(t[i],i)===!1)return!1;return!0}function Xe(t,e){return t.slice().sort(({[e]:i=0},{[e]:s=0})=>i>s?1:s>i?-1:0)}function Dt(t,e){return t.reduce((i,s)=>i+$(it(e)?e(s):s[e]),0)}function Ps(t,e){const i=new Set;return t.filter(({[e]:s})=>i.has(s)?!1:i.add(s))}function zi(t,e){return e.reduce((i,s)=>({...i,[s]:t[s]}),{})}function Z(t,e=0,i=1){return Math.min(Math.max(St(t)||0,e),i)}function k(){}function Fi(...t){return[["bottom","top"],["right","left"]].every(([e,i])=>Math.min(...t.map(({[e]:s})=>s))-Math.max(...t.map(({[i]:s})=>s))>0)}function Je(t,e){return t.x<=e.right&&t.x>=e.left&&t.y<=e.bottom&&t.y>=e.top}function Hi(t,e,i){const s=e==="width"?"height":"width";return{[s]:t[e]?Math.round(i*t[s]/t[e]):t[s],[e]:i}}function _s(t,e){t={...t};for(const i in t)t=t[i]>e[i]?Hi(t,i,e[i]):t;return t}function Ho(t,e){t=_s(t,e);for(const i in t)t=t[i]e[i]||(e[i]=t(i))}function p(t,e,i){var s;if(Pt(e)){for(const n in e)p(t,n,e[n]);return}if(Y(i))return(s=H(t))==null?void 0:s.getAttribute(e);for(const n of S(t))it(i)&&(i=i.call(n,p(n,e))),i===null?$e(n,e):n.setAttribute(e,i)}function gt(t,e){return S(t).some(i=>i.hasAttribute(e))}function $e(t,e){S(t).forEach(i=>i.removeAttribute(e))}function tt(t,e){for(const i of[e,`data-${e}`])if(gt(t,i))return p(t,i)}const Lo={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};function Li(t){return S(t).some(e=>Lo[e.tagName.toLowerCase()])}function j(t){return S(t).some(e=>e.offsetWidth||e.offsetHeight||e.getClientRects().length)}const xe="input,select,textarea,button";function Wi(t){return S(t).some(e=>C(e,xe))}const ye=`${xe},a[href],[tabindex]`;function Ze(t){return C(t,ye)}function O(t){var e;return(e=H(t))==null?void 0:e.parentElement}function ke(t,e){return S(t).filter(i=>C(i,e))}function C(t,e){return S(t).some(i=>i.matches(e))}function U(t,e){return ee(t)?t.closest(ot(e,">")?e.slice(1):e):S(t).map(i=>U(i,e)).filter(Boolean)}function B(t,e){return D(e)?!!U(t,e):H(e).contains(H(t))}function ne(t,e){const i=[];for(;t=O(t);)(!e||C(t,e))&&i.push(t);return i}function T(t,e){t=H(t);const i=t?Qt(t.children):[];return e?ke(i,e):i}function oe(t,e){return e?S(t).indexOf(H(e)):T(O(t)).indexOf(t)}function re(t){return t=H(t),t&&["origin","pathname","search"].every(e=>t[e]===location[e])}function Ri(t){if(re(t)){t=H(t);const e=decodeURIComponent(t.hash).substring(1);return document.getElementById(e)||document.getElementsByName(e)[0]}}function at(t,e){return ji(t,Os(t,e))}function Se(t,e){return Ie(t,Os(t,e))}function ji(t,e){return H(Ds(t,H(e),"querySelector"))}function Ie(t,e){return S(Ds(t,H(e),"querySelectorAll"))}const Wo=/(^|[^\\],)\s*[!>+~-]/,As=dt(t=>t.match(Wo));function Os(t,e=document){return D(t)&&As(t)||Ue(e)?e:e.ownerDocument}const Ro=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,jo=dt(t=>t.replace(Ro,"$1 *"));function Ds(t,e=document,i){if(!t||!D(t))return t;if(t=jo(t),As(t)){const s=Uo(t);t="";for(let n of s){let o=e;if(n[0]==="!"){const r=n.substr(1).trim().split(" ");if(o=U(O(e),r[0]),n=r.slice(1).join(" ").trim(),!n.length&&s.length===1)return o}if(n[0]==="-"){const r=n.substr(1).trim().split(" "),a=(o||e).previousElementSibling;o=C(a,n.substr(1))?a:null,n=r.slice(1).join(" ")}o&&(t+=`${t?",":""}${Vo(o)} ${n}`)}e=document}try{return e[i](t)}catch{return null}}const qo=/.*?[^\\](?:,|$)/g,Uo=dt(t=>t.match(qo).map(e=>e.replace(/,$/,"").trim()));function Vo(t){const e=[];for(;t.parentNode;){const i=p(t,"id");if(i){e.unshift(`#${qi(i)}`);break}else{let{tagName:s}=t;s!=="HTML"&&(s+=`:nth-child(${oe(t)+1})`),e.unshift(s),t=t.parentNode}}return e.join(" > ")}function qi(t){return D(t)?CSS.escape(t):""}function x(...t){let[e,i,s,n,o=!1]=Ui(t);n.length>1&&(n=Go(n)),o!=null&&o.self&&(n=Xo(n)),s&&(n=Yo(s,n));for(const r of i)for(const a of e)a.addEventListener(r,n,o);return()=>Bt(e,i,n,o)}function Bt(...t){let[e,i,,s,n=!1]=Ui(t);for(const o of i)for(const r of e)r.removeEventListener(o,s,n)}function L(...t){const[e,i,s,n,o=!1,r]=Ui(t),a=x(e,i,s,l=>{const c=!r||r(l);c&&(a(),n(l,c))},o);return a}function v(t,e,i){return Vi(t).every(s=>s.dispatchEvent(Mt(e,!0,!0,i)))}function Mt(t,e=!0,i=!1,s){return D(t)&&(t=new CustomEvent(t,{bubbles:e,cancelable:i,detail:s})),t}function Ui(t){return t[0]=Vi(t[0]),D(t[1])&&(t[1]=t[1].split(" ")),it(t[2])&&t.splice(2,0,!1),t}function Yo(t,e){return i=>{const s=t[0]===">"?Ie(t,i.currentTarget).reverse().filter(n=>B(i.target,n))[0]:U(i.target,t);s&&(i.current=s,e.call(this,i),delete i.current)}}function Go(t){return e=>Q(e.detail)?t(e,...e.detail):t(e)}function Xo(t){return function(e){if(e.target===e.currentTarget||e.target===e.current)return t.call(null,e)}}function Bs(t){return t&&"addEventListener"in t}function Jo(t){return Bs(t)?t:H(t)}function Vi(t){return Q(t)?t.map(Jo).filter(Boolean):D(t)?Ie(t):Bs(t)?[t]:S(t)}function Ct(t){return t.pointerType==="touch"||!!t.touches}function ae(t){var e,i;const{clientX:s,clientY:n}=((e=t.touches)==null?void 0:e[0])||((i=t.changedTouches)==null?void 0:i[0])||t;return{x:s,y:n}}const Ko={"animation-iteration-count":!0,"column-count":!0,"fill-opacity":!0,"flex-grow":!0,"flex-shrink":!0,"font-weight":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,widows:!0,"z-index":!0,zoom:!0};function h(t,e,i,s){const n=S(t);for(const o of n)if(D(e)){if(e=Qe(e),Y(i))return getComputedStyle(o).getPropertyValue(e);o.style.setProperty(e,xt(i)&&!Ko[e]?`${i}px`:i||Ye(i)?i:"",s)}else if(Q(e)){const r={};for(const a of e)r[a]=h(o,a);return r}else Pt(e)&&(s=i,It(e,(r,a)=>h(o,a,r,s)));return n[0]}const Qe=dt(t=>Zo(t));function Zo(t){if(ot(t,"--"))return t;t=Kt(t);const{style:e}=document.documentElement;if(t in e)return t;for(const i of["webkit","moz"]){const s=`-${i}-${t}`;if(s in e)return s}}function y(t,...e){Ms(t,e,"add")}function M(t,...e){Ms(t,e,"remove")}function Yi(t,e){p(t,"class",i=>(i||"").replace(new RegExp(`\\b${e}\\b\\s?`,"g"),""))}function Gi(t,...e){e[0]&&M(t,e[0]),e[1]&&y(t,e[1])}function P(t,e){return[e]=Xi(e),!!e&&S(t).some(i=>i.classList.contains(e))}function q(t,e,i){const s=Xi(e);Y(i)||(i=!!i);for(const n of S(t))for(const o of s)n.classList.toggle(o,i)}function Ms(t,e,i){e=e.reduce((s,n)=>s.concat(Xi(n)),[]);for(const s of S(t))s.classList[i](...e)}function Xi(t){return String(t).split(/[ ,]/).filter(Boolean)}function Qo(t,e,i=400,s="linear"){return i=Math.round(i),Promise.all(S(t).map(n=>new Promise((o,r)=>{for(const l in e){const c=h(n,l);c===""&&h(n,l,c)}const a=setTimeout(()=>v(n,"transitionend"),i);L(n,"transitionend transitioncanceled",({type:l})=>{clearTimeout(a),M(n,"bdt-transition"),h(n,{transitionProperty:"",transitionDuration:"",transitionTimingFunction:""}),l==="transitioncanceled"?r():o(n)},{self:!0}),y(n,"bdt-transition"),h(n,{transitionProperty:Object.keys(e).map(Qe).join(","),transitionDuration:`${i}ms`,transitionTimingFunction:s,...e})})))}const E={start:Qo,async stop(t){v(t,"transitionend"),await Promise.resolve()},async cancel(t){v(t,"transitioncanceled"),await Promise.resolve()},inProgress(t){return P(t,"bdt-transition")}},Ce="bdt-animation-";function Ns(t,e,i=200,s,n){return Promise.all(S(t).map(o=>new Promise((r,a)=>{v(o,"animationcanceled");const l=setTimeout(()=>v(o,"animationend"),i);L(o,"animationend animationcanceled",({type:c})=>{clearTimeout(l),c==="animationcanceled"?a():r(o),h(o,"animationDuration",""),Yi(o,`${Ce}\\S*`)},{self:!0}),h(o,"animationDuration",`${i}ms`),y(o,e,Ce+(n?"leave":"enter")),ot(e,Ce)&&(s&&y(o,`bdt-transform-origin-${s}`),n&&y(o,`${Ce}reverse`))})))}const tr=new RegExp(`${Ce}(enter|leave)`),mt={in:Ns,out(t,e,i,s){return Ns(t,e,i,s,!0)},inProgress(t){return tr.test(p(t,"class"))},cancel(t){v(t,"animationcanceled")}};function er(t){if(document.readyState!=="loading"){t();return}L(document,"DOMContentLoaded",t)}function G(t,...e){return e.some(i=>{var s;return((s=t==null?void 0:t.tagName)==null?void 0:s.toLowerCase())===i.toLowerCase()})}function Ji(t){return t=w(t),t.innerHTML="",t}function Nt(t,e){return Y(e)?w(t).innerHTML:W(Ji(t),e)}const ir=ii("prepend"),W=ii("append"),ti=ii("before"),ei=ii("after");function ii(t){return function(e,i){var s;const n=S(D(i)?zt(i):i);return(s=w(e))==null||s[t](...n),zs(n)}}function lt(t){S(t).forEach(e=>e.remove())}function si(t,e){for(e=H(ti(t,e));e.firstChild;)e=e.firstChild;return W(e,t),e}function Ki(t,e){return S(S(t).map(i=>i.hasChildNodes()?si(Qt(i.childNodes),e):W(i,e)))}function Te(t){S(t).map(O).filter((e,i,s)=>s.indexOf(e)===i).forEach(e=>e.replaceWith(...e.childNodes))}const sr=/^\s*<(\w+|!)[^>]*>/,nr=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function zt(t){const e=nr.exec(t);if(e)return document.createElement(e[1]);const i=document.createElement("div");return sr.test(t)?i.insertAdjacentHTML("beforeend",t.trim()):i.textContent=t,zs(i.childNodes)}function zs(t){return t.length>1?t:t[0]}function Tt(t,e){if(ee(t))for(e(t),t=t.firstElementChild;t;){const i=t.nextElementSibling;Tt(t,e),t=i}}function w(t,e){return Fs(t)?H(zt(t)):ji(t,e)}function z(t,e){return Fs(t)?S(zt(t)):Ie(t,e)}function Fs(t){return D(t)&&ot(t.trim(),"<")}const Ft={width:["left","right"],height:["top","bottom"]};function b(t){const e=ee(t)?H(t).getBoundingClientRect():{height:et(t),width:Ee(t),top:0,left:0};return{height:e.height,width:e.width,top:e.top,left:e.left,bottom:e.top+e.height,right:e.left+e.width}}function _(t,e){const i=b(t);if(t){const{scrollY:n,scrollX:o}=ie(t),r={height:n,width:o};for(const a in Ft)for(const l of Ft[a])i[l]+=r[a]}if(!e)return i;const s=h(t,"position");It(h(t,["left","top"]),(n,o)=>h(t,o,e[o]-i[o]+$(s==="absolute"&&n==="auto"?ni(t)[o]:n)))}function ni(t){let{top:e,left:i}=_(t);const{ownerDocument:{body:s,documentElement:n},offsetParent:o}=H(t);let r=o||n;for(;r&&(r===s||r===n)&&h(r,"position")==="static";)r=r.parentNode;if(ee(r)){const a=_(r);e-=a.top+$(h(r,"borderTopWidth")),i-=a.left+$(h(r,"borderLeftWidth"))}return{top:e-$(h(t,"marginTop")),left:i-$(h(t,"marginLeft"))}}function Ht(t){t=H(t);const e=[t.offsetTop,t.offsetLeft];for(;t=t.offsetParent;)if(e[0]+=t.offsetTop+$(h(t,"borderTopWidth")),e[1]+=t.offsetLeft+$(h(t,"borderLeftWidth")),h(t,"position")==="fixed"){const i=ie(t);return e[0]+=i.scrollY,e[1]+=i.scrollX,e}return e}const et=Hs("height"),Ee=Hs("width");function Hs(t){const e=Et(t);return(i,s)=>{if(Y(s)){if(te(i))return i[`inner${e}`];if(Ue(i)){const n=i.documentElement;return Math.max(n[`offset${e}`],n[`scroll${e}`])}return i=H(i),s=h(i,t),s=s==="auto"?i[`offset${e}`]:$(s)||0,s-le(i,t)}else return h(i,t,!s&&s!==0?"":+s+le(i,t)+"px")}}function le(t,e,i="border-box"){return h(t,"boxSizing")===i?Dt(Ft[e].map(Et),s=>$(h(t,`padding${s}`))+$(h(t,`border${s}Width`))):0}function oi(t){for(const e in Ft)for(const i in Ft[e])if(Ft[e][i]===t)return Ft[e][1-i];return t}function ht(t,e="width",i=window,s=!1){return D(t)?Dt(rr(t),n=>{const o=lr(n);return o?hr(o==="vh"?cr():o==="vw"?Ee(ie(i)):s?i[`offset${Et(e)}`]:b(i)[e],n):n}):$(t)}const or=/-?\d+(?:\.\d+)?(?:v[wh]|%|px)?/g,rr=dt(t=>t.toString().replace(/\s/g,"").match(or)||[]),ar=/(?:v[hw]|%)$/,lr=dt(t=>(t.match(ar)||[])[0]);function hr(t,e){return t*$(e)/100}let Pe,he;function cr(){return Pe||(he||(he=w("
"),h(he,{height:"100vh",position:"fixed"}),x(window,"resize",()=>Pe=null)),W(document.body,he),Pe=he.clientHeight,lt(he),Pe)}const Lt=typeof window<"u",X=Lt&&document.dir==="rtl",Wt=Lt&&"ontouchstart"in window,ce=Lt&&window.PointerEvent,vt=ce?"pointerdown":Wt?"touchstart":"mousedown",ri=ce?"pointermove":Wt?"touchmove":"mousemove",_t=ce?"pointerup":Wt?"touchend":"mouseup",Rt=ce?"pointerenter":Wt?"":"mouseenter",ue=ce?"pointerleave":Wt?"":"mouseleave",ai=ce?"pointercancel":"touchcancel",J={reads:[],writes:[],read(t){return this.reads.push(t),Qi(),t},write(t){return this.writes.push(t),Qi(),t},clear(t){Ws(this.reads,t),Ws(this.writes,t)},flush:Zi};function Zi(t){Ls(J.reads),Ls(J.writes.splice(0)),J.scheduled=!1,(J.reads.length||J.writes.length)&&Qi(t+1)}const ur=4;function Qi(t){J.scheduled||(J.scheduled=!0,t&&tZi(t)):requestAnimationFrame(()=>Zi(1)))}function Ls(t){let e;for(;e=t.shift();)try{e()}catch(i){console.error(i)}}function Ws(t,e){const i=t.indexOf(e);return~i&&t.splice(i,1)}function ts(){}ts.prototype={positions:[],init(){this.positions=[];let t;this.unbind=x(document,"mousemove",e=>t=ae(e)),this.interval=setInterval(()=>{t&&(this.positions.push(t),this.positions.length>5&&this.positions.shift())},50)},cancel(){var t;(t=this.unbind)==null||t.call(this),clearInterval(this.interval)},movesTo(t){if(this.positions.length<2)return!1;const e=t.getBoundingClientRect(),{left:i,right:s,top:n,bottom:o}=e,[r]=this.positions,a=se(this.positions),l=[r,a];return Je(a,e)?!1:[[{x:i,y:n},{x:s,y:o}],[{x:i,y:o},{x:s,y:n}]].some(u=>{const f=fr(l,u);return f&&Je(f,e)})}};function fr([{x:t,y:e},{x:i,y:s}],[{x:n,y:o},{x:r,y:a}]){const l=(a-o)*(i-t)-(r-n)*(s-e);if(l===0)return!1;const c=((r-n)*(e-o)-(a-o)*(t-n))/l;return c<0?!1:{x:t+c*(i-t),y:e+c*(s-e)}}function Rs(t,e,i={},{intersecting:s=!0}={}){const n=new IntersectionObserver(s?(o,r)=>{o.some(a=>a.isIntersecting)&&e(o,r)}:e,i);for(const o of S(t))n.observe(o);return n}const dr=Lt&&window.ResizeObserver;function li(t,e,i={box:"border-box"}){return dr?qs(ResizeObserver,t,e,i):(pr(),_e.add(e),{observe:k,unobserve:k,disconnect(){_e.delete(e)}})}let _e;function pr(){if(_e)return;_e=new Set;let t;const e=()=>{if(!t){t=!0,requestAnimationFrame(()=>t=!1);for(const i of _e)i()}};x(window,"load resize",e),x(document,"loadedmetadata load",e,!0)}function js(t,e,i){return qs(MutationObserver,t,e,i)}function qs(t,e,i,s){const n=new t(i);for(const o of S(e))n.observe(o,s);return n}function Us(t){if(ci(t)&&es(t,{func:"playVideo",method:"play"}),hi(t))try{t.play().catch(k)}catch{}}function Vs(t){ci(t)&&es(t,{func:"pauseVideo",method:"pause"}),hi(t)&&t.pause()}function Ys(t){ci(t)&&es(t,{func:"mute",method:"setVolume",value:0}),hi(t)&&(t.muted=!0)}function Gs(t){return hi(t)||ci(t)}function hi(t){return G(t,"video")}function ci(t){return G(t,"iframe")&&(Xs(t)||Js(t))}function Xs(t){return!!t.src.match(/\/\/.*?youtube(-nocookie)?\.[a-z]+\/(watch\?v=[^&\s]+|embed)|youtu\.be\/.*/)}function Js(t){return!!t.src.match(/vimeo\.com\/video\/.*/)}async function es(t,e){await mr(t),Ks(t,e)}function Ks(t,e){try{t.contentWindow.postMessage(JSON.stringify({event:"command",...e}),"*")}catch{}}const is="_ukPlayer";let gr=0;function mr(t){if(t[is])return t[is];const e=Xs(t),i=Js(t),s=++gr;let n;return t[is]=new Promise(o=>{e&&L(t,"load",()=>{const r=()=>Ks(t,{event:"listening",id:s});n=setInterval(r,100),r()}),L(window,"message",o,!1,({data:r})=>{try{return r=JSON.parse(r),e&&(r==null?void 0:r.id)===s&&r.event==="onReady"||i&&Number(r==null?void 0:r.player_id)===s}catch{}}),t.src=`${t.src}${m(t.src,"?")?"&":"?"}${e?"enablejsapi=1":`api=1&player_id=${s}`}`}).then(()=>clearInterval(n))}function ss(t,e=0,i=0){return j(t)?Fi(...jt(t).map(s=>{const{top:n,left:o,bottom:r,right:a}=ct(s);return{top:n-e,left:o-i,bottom:r+e,right:a+i}}).concat(_(t))):!1}function Zs(t,{offset:e=0}={}){const i=j(t)?wt(t,!1,["hidden"]):[];return i.reduce((r,a,l)=>{const{scrollTop:c,scrollHeight:u,offsetHeight:f}=a,d=ct(a),g=u-d.height,{height:A,top:N}=i[l-1]?ct(i[l-1]):_(t);let F=Math.ceil(N-d.top-e+c);return e>0&&fg?(e-=F-g,F=g):F<0&&(e-=F,F=0),()=>s(a,F-c).then(r)},()=>Promise.resolve())();function s(r,a){return new Promise(l=>{const c=r.scrollTop,u=n(Math.abs(a)),f=Date.now();(function d(){const g=o(Z((Date.now()-f)/u));r.scrollTop=c+a*g,g===1?l():requestAnimationFrame(d)})()})}function n(r){return 40*Math.pow(r,.375)}function o(r){return .5*(1-Math.cos(Math.PI*r))}}function ns(t,e=0,i=0){if(!j(t))return 0;const[s]=wt(t,!0),{scrollHeight:n,scrollTop:o}=s,{height:r}=ct(s),a=n-r,l=Ht(t)[0]-Ht(s)[0],c=Math.max(0,l-r+e),u=Math.min(a,l+t.offsetHeight-i);return Z((o-c)/(u-c))}function wt(t,e=!1,i=[]){const s=Qs(t);let n=ne(t).reverse();n=n.slice(n.indexOf(s)+1);const o=yt(n,r=>h(r,"position")==="fixed");return~o&&(n=n.slice(o)),[s].concat(n.filter(r=>h(r,"overflow").split(" ").some(a=>m(["auto","scroll",...i],a))&&(!e||r.scrollHeight>ct(r).height))).reverse()}function jt(t){return wt(t,!1,["hidden","clip"])}function ct(t){const e=ie(t),{visualViewport:i,document:{documentElement:s}}=e;let n=t===Qs(t)?e:t;if(te(n)&&i){let{height:r,width:a,scale:l,pageTop:c,pageLeft:u}=i;return r=Math.round(r*l),a=Math.round(a*l),{height:r,width:a,top:c,left:u,bottom:c+r,right:u+a}}let o=_(n);if(h(n,"display")==="inline")return o;for(let[r,a,l,c]of[["width","x","left","right"],["height","y","top","bottom"]]){te(n)?n=s:o[l]+=$(h(n,`border-${l}-width`));const u=o[r]%1;o[r]=o[a]=n[`client${Et(r)}`]-(u?u<.5?-u:1-u:0),o[c]=o[r]+o[l]}return o}function Qs(t){return ie(t).document.scrollingElement}const ut=[["width","x","left","right"],["height","y","top","bottom"]];function tn(t,e,i){i={attach:{element:["left","top"],target:["left","top"],...i.attach},offset:[0,0],placement:[],...i},Q(e)||(e=[e,e]),_(t,en(t,e,i))}function en(t,e,i){const s=sn(t,e,i),{boundary:n,viewportOffset:o=0,placement:r}=i;let a=s;for(const[l,[c,,u,f]]of Object.entries(ut)){const d=vr(t,e[l],o,n,l);if(ui(s,d,l))continue;let g=0;if(r[l]==="flip"){const A=i.attach.target[l];if(A===f&&s[f]<=d[f]||A===u&&s[u]>=d[u])continue;g=br(t,e,i,l)[u]-s[u];const N=wr(t,e[l],o,l);if(!ui(os(s,g,l),N,l)){if(ui(s,N,l))continue;if(i.recursion)return!1;const F=$r(t,e,i);if(F&&ui(F,N,1-l))return F;continue}}else if(r[l]==="shift"){const A=_(e[l]),{offset:N}=i;g=Z(Z(s[u],d[u],d[f]-s[c]),A[u]-s[c]+N[l],A[f]-N[l])-s[u]}a=os(a,g,l)}return a}function sn(t,e,i){let{attach:s,offset:n}={attach:{element:["left","top"],target:["left","top"],...i.attach},offset:[0,0],...i},o=_(t);for(const[r,[a,,l,c]]of Object.entries(ut)){const u=s.target[r]===s.element[r]?ct(e[r]):_(e[r]);o=os(o,u[l]-o[l]+nn(s.target[r],c,u[a])-nn(s.element[r],c,o[a])+ +n[r],r)}return o}function os(t,e,i){const[,s,n,o]=ut[i],r={...t};return r[n]=t[s]=t[n]+e,r[o]+=e,r}function nn(t,e,i){return t==="center"?i/2:t===e?i:0}function vr(t,e,i,s,n){let o=rn(...on(t,e).map(ct));return i&&(o[ut[n][2]]+=i,o[ut[n][3]]-=i),s&&(o=rn(o,_(Q(s)?s[n]:s))),o}function wr(t,e,i,s){const[n,o,r,a]=ut[s],[l]=on(t,e),c=ct(l);return["auto","scroll"].includes(h(l,`overflow-${o}`))&&(c[r]-=l[`scroll${Et(r)}`],c[a]=c[r]+l[`scroll${Et(n)}`]),c[r]+=i,c[a]-=i,c}function on(t,e){return jt(e).filter(i=>B(t,i))}function rn(...t){let e={};for(const i of t)for(const[,,s,n]of ut)e[s]=Math.max(e[s]||0,i[s]),e[n]=Math.min(...[e[n],i[n]].filter(Boolean));return e}function ui(t,e,i){const[,,s,n]=ut[i];return t[s]>=e[s]&&t[n]<=e[n]}function br(t,e,{offset:i,attach:s},n){return sn(t,e,{attach:{element:an(s.element,n),target:an(s.target,n)},offset:xr(i,n)})}function $r(t,e,i){return en(t,e,{...i,attach:{element:i.attach.element.map(ln).reverse(),target:i.attach.target.map(ln).reverse()},offset:i.offset.reverse(),placement:i.placement.reverse(),recursion:!0})}function an(t,e){const i=[...t],s=ut[e].indexOf(t[e]);return~s&&(i[e]=ut[e][1-s%2+2]),i}function ln(t){for(let e=0;e{t._connected&&Er(t,t._queued),delete t._queued})),t._queued.add(e.type||e))}function Er(t,e){for(const{read:i,write:s,events:n=[]}of t._updates){if(!e.has("update")&&!n.some(r=>e.has(r)))continue;let o;i&&(o=i.call(t,t._data,e),o&&kt(o)&&$t(t._data,o)),s&&o!==!1&&J.write(()=>{t._connected&&s.call(t,t._data,e)})}}function Pr(t){const{computed:e}=t.$options;if(t._computed={},e)for(const i in e)cn(t,i,e[i])}function cn(t,e,i){t._hasComputed=!0,Object.defineProperty(t,e,{enumerable:!0,get(){const{_computed:s,$props:n,$el:o}=t;return bt(s,e)||(s[e]=(i.get||i).call(t,n,o)),s[e]},set(s){const{_computed:n}=t;n[e]=i.set?i.set.call(t,s):s,Y(n[e])&&delete n[e]}})}function _r(t){t._hasComputed&&(Cr(t,{read:()=>Sr(t,un(t)),events:["resize","computed"]}),Or(),Ae.add(t))}function Ar(t){Ae==null||Ae.delete(t),un(t)}function un(t){const e={...t._computed};return t._computed={},e}let rs,Ae;function Or(){rs||(Ae=new Set,rs=new MutationObserver(()=>{for(const t of Ae)fi(t,"computed")}),rs.observe(document,{childList:!0,subtree:!0}))}function Dr(t){t._events=[];for(const e of t.$options.events||[])if(bt(e,"handler"))as(t,e);else for(const i in e)as(t,e[i],i)}function Br(t){t._events.forEach(e=>e()),delete t._events}function as(t,e,i){let{name:s,el:n,handler:o,capture:r,passive:a,delegate:l,filter:c,self:u}=kt(e)?e:{name:i,handler:e};if(n=it(n)?n.call(t,t):n||t.$el,Q(n)){n.forEach(f=>as(t,{...e,el:f},i));return}!n||c&&!c.call(t)||t._events.push(x(n,s,l?D(l)?l:l.call(t,t):null,D(o)?t[o]:o.bind(t),{passive:a,capture:r,self:u}))}function Mr(t){t._observers=[];for(const e of t.$options.observe||[])if(bt(e,"handler"))dn(t,e);else for(const i of e)dn(t,i)}function fn(t,...e){t._observers.push(...e)}function Nr(t){for(const e of t._observers)e.disconnect()}function dn(t,e){let{observe:i,target:s=t.$el,handler:n,options:o,filter:r,args:a}=e;if(r&&!r.call(t,t))return;const l=`_observe${t._observers.length}`;it(s)&&!bt(t,l)&&cn(t,l,()=>s.call(t,t)),n=D(n)?t[n]:n.bind(t),it(o)&&(o=o.call(t,t));const c=bt(t,l)?t[l]:s,u=i(c,n,o,a);it(s)&&Q(t[l])&&u.unobserve&&hn(t,{handler:zr(u),immediate:!1},l),fn(t,u)}function zr(t){return(e,i)=>{for(const s of i)!m(e,s)&&t.unobserve(s);for(const s of e)!m(i,s)&&t.observe(s)}}const V={};V.events=V.watch=V.observe=V.created=V.beforeConnect=V.connected=V.beforeDisconnect=V.disconnected=V.destroy=ls,V.args=function(t,e){return e!==!1&&ls(e||t)},V.update=function(t,e){return Xe(ls(t,it(e)?{read:e}:e),"order")},V.props=function(t,e){if(Q(e)){const i={};for(const s of e)i[s]=String;e=i}return V.methods(t,e)},V.computed=V.methods=function(t,e){return e?t?{...t,...e}:e:t},V.i18n=V.data=function(t,e,i){return i?pn(t,e,i):e?t?function(s){return pn(t,e,s)}:e:t};function pn(t,e,i){return V.computed(it(t)?t.call(i,i):t,it(e)?e.call(i,i):e)}function ls(t,e){return t=t&&!Q(t)?[t]:t,e?t?t.concat(e):Q(e)?e:[e]:t}function Fr(t,e){return Y(e)?t:e}function Oe(t,e,i){const s={};if(it(e)&&(e=e.options),e.extends&&(t=Oe(t,e.extends,i)),e.mixins)for(const o of e.mixins)t=Oe(t,o,i);for(const o in t)n(o);for(const o in e)bt(t,o)||n(o);function n(o){s[o]=(V[o]||Fr)(t[o],e[o],i)}return s}function De(t,e=[]){try{return t?ot(t,"{")?JSON.parse(t):e.length&&!m(t,":")?{[e[0]]:t}:t.split(";").reduce((i,s)=>{const[n,o]=s.split(/:(.*)/);return n&&!Y(o)&&(i[n.trim()]=o.trim()),i},{}):{}}catch{return{}}}function hs(t,e){return t===Boolean?Mi(e):t===Number?St(e):t==="list"?Hr(e):t===Object&&D(e)?De(e):t?t(e):e}function Hr(t){return Q(t)?t:D(t)?t.split(/,(?![^(]*\))/).map(e=>xt(e)?St(e):Mi(e.trim())):[t]}function Lr(t){const e=gn(t.$options);for(let s in e)Y(e[s])||(t.$props[s]=e[s]);const i=[t.$options.computed,t.$options.methods];for(let s in t.$props)s in e&&Wr(i,s)&&(t[s]=t.$props[s])}function gn(t){const e={},{args:i=[],props:s={},el:n,id:o}=t;if(!s)return e;for(const a in s){const l=Kt(a);let c=tt(n,l);Y(c)||(c=s[a]===Boolean&&c===""?!0:hs(s[a],c),!(l==="target"&&ot(c,"_"))&&(e[a]=c))}const r=De(tt(n,o),i);for(const a in r){const l=we(a);Y(s[l])||(e[l]=hs(s[l],r[a]))}return e}function Wr(t,e){return t.every(i=>!i||!bt(i,e))}function Rr(t){const{$options:e,$props:i}=t,{id:s,props:n,el:o}=e;if(!n)return;const r=Object.keys(n),a=r.map(c=>Kt(c)).concat(s),l=new MutationObserver(c=>{const u=gn(e);c.some(({attributeName:f})=>{const d=f.replace("data-","");return(d===s?r:[we(d),we(f)]).some(g=>!Y(u[g])&&u[g]!==i[g])})&&t.$reset()});l.observe(o,{attributes:!0,attributeFilter:a.concat(a.map(c=>`data-${c}`))}),fn(t,l)}function fe(t,e){var i;(i=t.$options[e])==null||i.forEach(s=>s.call(t))}function cs(t){t._connected||(Lr(t),fe(t,"beforeConnect"),t._connected=!0,Dr(t),Ir(t),kr(t),Mr(t),Rr(t),_r(t),fe(t,"connected"),fi(t))}function us(t){t._connected&&(fe(t,"beforeDisconnect"),Br(t),Tr(t),Nr(t),Ar(t),fe(t,"disconnected"),t._connected=!1)}let jr=0;function mn(t,e={}){e.data=Vr(e,t.constructor.options),t.$options=Oe(t.constructor.options,e,t),t.$props={},t._uid=jr++,qr(t),Ur(t),Pr(t),fe(t,"created"),e.el&&t.$mount(e.el)}function qr(t){const{data:e={}}=t.$options;for(const i in e)t.$props[i]=t[i]=e[i]}function Ur(t){const{methods:e}=t.$options;if(e)for(const i in e)t[i]=e[i].bind(t)}function Vr({data:t={}},{args:e=[],props:i={}}){Q(t)&&(t=t.slice(0,e.length).reduce((s,n,o)=>(kt(n)?$t(s,n):s[e[o]]=n,s),{}));for(const s in t)Y(t[s])?delete t[s]:i[s]&&(t[s]=hs(i[s],t[s]));return t}const ft=function(t){mn(this,t)};ft.util=yr,ft.options={},ft.version="3.16.17";const Yr="bdt-",qt="__uikit__",de={};function vn(t,e){var i;const s=Yr+Kt(t);if(!e)return kt(de[s])&&(de[s]=ft.extend(de[s])),de[s];t=we(t),ft[t]=(o,r)=>Be(t,o,r);const n=kt(e)?{...e}:e.options;return n.id=s,n.name=t,(i=n.install)==null||i.call(n,ft,n,t),ft._initialized&&!n.functional&&requestAnimationFrame(()=>Be(t,`[${s}],[data-${s}]`)),de[s]=n}function Be(t,e,i,...s){const n=vn(t);return n.options.functional?new n({data:kt(e)?e:[e,i,...s]}):e?z(e).map(o)[0]:o();function o(r){const a=di(r,t);if(a)if(i)a.$destroy();else return a;return new n({el:r,data:i})}}function Ut(t){return(t==null?void 0:t[qt])||{}}function di(t,e){return Ut(t)[e]}function Gr(t,e){t[qt]||(t[qt]={}),t[qt][e.$options.name]=e}function Xr(t,e){var i;(i=t[qt])==null||delete i[e.$options.name],be(t[qt])||delete t[qt]}function Jr(t){t.component=vn,t.getComponents=Ut,t.getComponent=di,t.update=wn,t.use=function(i){if(!i.installed)return i.call(null,this),i.installed=!0,this},t.mixin=function(i,s){s=(D(s)?this.component(s):s)||this,s.options=Oe(s.options,i)},t.extend=function(i){i||(i={});const s=this,n=function(r){mn(this,r)};return n.prototype=Object.create(s.prototype),n.prototype.constructor=n,n.options=Oe(s.options,i),n.super=s,n.extend=s.extend,n};let e;Object.defineProperty(t,"container",{get(){return e||document.body},set(i){e=w(i)}})}function wn(t,e){t=t?H(t):document.body;for(const i of ne(t).reverse())bn(i,e);Tt(t,i=>bn(i,e))}function bn(t,e){const i=Ut(t);for(const s in i)fi(i[s],e)}function Kr(t){t.prototype.$mount=function(e){const i=this;Gr(e,i),i.$options.el=e,B(e,document)&&cs(i)},t.prototype.$destroy=function(e=!1){const i=this,{el:s}=i.$options;s&&us(i),fe(i,"destroy"),Xr(s,i),e&<(i.$el)},t.prototype.$create=Be,t.prototype.$emit=function(e){fi(this,e)},t.prototype.$update=function(e=this.$el,i){wn(e,i)},t.prototype.$reset=function(){us(this),cs(this)},t.prototype.$getComponent=di,Object.defineProperties(t.prototype,{$el:{get(){return this.$options.el}},$container:Object.getOwnPropertyDescriptor(t,"container")})}function At(t,e=t.$el,i=""){if(e.id)return e.id;let s=`${t.$options.id}-${t._uid}${i}`;return w(`#${s}`)&&(s=At(t,e,`${i}-2`)),s}Jr(ft),Kr(ft);function Zr(t){Lt&&window.MutationObserver&&(document.body?requestAnimationFrame(()=>$n(t)):new MutationObserver((e,i)=>{document.body&&($n(t),i.disconnect())}).observe(document.documentElement,{childList:!0}))}function $n(t){v(document,"uikit:init",t),document.body&&Tt(document.body,xn),new MutationObserver(e=>e.forEach(Qr)).observe(document,{childList:!0,subtree:!0}),new MutationObserver(e=>e.forEach(ta)).observe(document,{attributes:!0,subtree:!0}),t._initialized=!0}function Qr({addedNodes:t,removedNodes:e}){for(const i of t)Tt(i,xn);for(const i of e)Tt(i,ea)}function ta({target:t,attributeName:e}){var i;const s=yn(e);if(s){if(gt(t,e)){Be(s,t);return}(i=di(t,s))==null||i.$destroy()}}function xn(t){const e=Ut(t);for(const i in Ut(t))cs(e[i]);for(const i of t.getAttributeNames()){const s=yn(i);s&&Be(s,t)}}function ea(t){const e=Ut(t);for(const i in Ut(t))us(e[i])}function yn(t){ot(t,"data-")&&(t=t.slice(5));const e=de[t];return e&&(kt(e)?e:e.options).name}var st={connected(){y(this.$el,this.$options.id)}},Vt={props:{cls:Boolean,animation:"list",duration:Number,velocity:Number,origin:String,transition:String},data:{cls:!1,animation:[!1],duration:200,velocity:.2,origin:!1,transition:"ease",clsEnter:"bdt-togglabe-enter",clsLeave:"bdt-togglabe-leave"},computed:{hasAnimation({animation:t}){return!!t[0]},hasTransition({animation:t}){return["slide","reveal"].some(e=>ot(t[0],e))}},methods:{async toggleElement(t,e,i){try{return await Promise.all(S(t).map(s=>{const n=Bi(e)?e:!this.isToggled(s);if(!v(s,`before${n?"show":"hide"}`,[this]))return Promise.reject();const o=(it(i)?i:i===!1||!this.hasAnimation?ia:this.hasTransition?sa:na)(s,n,this),r=n?this.clsEnter:this.clsLeave;y(s,r),v(s,n?"show":"hide",[this]);const a=()=>{M(s,r),v(s,n?"shown":"hidden",[this])};return o?o.then(a,()=>(M(s,r),Promise.reject())):a()})),!0}catch{return!1}},isToggled(t=this.$el){return t=H(t),P(t,this.clsEnter)?!0:P(t,this.clsLeave)?!1:this.cls?P(t,this.cls.split(" ")[0]):j(t)},_toggle(t,e){if(!t)return;e=!!e;let i;this.cls?(i=m(this.cls," ")||e!==P(t,this.cls),i&&q(t,this.cls,m(this.cls," ")?void 0:e)):(i=e===t.hidden,i&&(t.hidden=!e)),z("[autofocus]",t).some(s=>j(s)?s.focus()||!0:s.blur()),i&&v(t,"toggled",[e,this])}}};function ia(t,e,{_toggle:i}){return mt.cancel(t),E.cancel(t),i(t,e)}async function sa(t,e,{animation:i,duration:s,velocity:n,transition:o,_toggle:r}){var a;const[l="reveal",c="top"]=((a=i[0])==null?void 0:a.split("-"))||[],u=[["left","right"],["top","bottom"]],f=u[m(u[0],c)?0:1],d=f[1]===c,A=["width","height"][u.indexOf(f)],N=`margin-${f[0]}`,F=`margin-${c}`;let Ot=b(t)[A];const Ts=E.inProgress(t);await E.cancel(t),e&&r(t,!0);const Yh=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",N,F].map(No=>[No,t.style[No]])),qe=b(t),Es=$(h(t,N)),Do=$(h(t,F)),Jt=qe[A]+Do;!Ts&&!e&&(Ot+=Do);const[Oi]=Ki(t,"
");h(Oi,{boxSizing:"border-box",height:qe.height,width:qe.width,...h(t,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",F])}),h(t,{padding:0,border:0,minWidth:0,minHeight:0,[F]:0,width:qe.width,height:qe.height,overflow:"hidden",[A]:Ot});const Bo=Ot/Jt;s=(n*Jt+s)*(e?1-Bo:Bo);const Mo={[A]:e?Jt:0};d&&(h(t,N,Jt-Ot+Es),Mo[N]=e?Es:Jt+Es),!d^l==="reveal"&&(h(Oi,N,-Jt+Ot),E.start(Oi,{[N]:e?0:-Jt},s,o));try{await E.start(t,Mo,s,o)}finally{h(t,Yh),Te(Oi.firstChild),e||r(t,!1)}}function na(t,e,i){mt.cancel(t);const{animation:s,duration:n,_toggle:o}=i;return e?(o(t,!0),mt.in(t,s[0],n,i.origin)):mt.out(t,s[1]||s[0],n,i.origin).then(()=>o(t,!1))}const I={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};function pt(t){return gi(li,t,"resize")}function Me(t){return gi(Rs,t)}function kn(t){return gi(js,t)}function Ne(t={}){return Me({handler:function(e,i){const{targets:s=this.$el,preload:n=5}=t;for(const o of S(it(s)?s(this):s))z('[loading="lazy"]',o).slice(0,n-1).forEach(r=>$e(r,"loading"));for(const o of e.filter(({isIntersecting:r})=>r).map(({target:r})=>r))i.unobserve(o)},...t})}function pi(t){return gi(function(e,i){return{disconnect:x(e,"scroll",i,{passive:!0,capture:!0})}},{target:()=>window,...t},"scroll")}function Sn(t){return{observe(e,i){return{observe:k,unobserve:k,disconnect:x(e,vt,i,{passive:!0})}},handler(e){if(!Ct(e))return;const i=ae(e),s="tagName"in e.target?e.target:O(e.target);L(document,`${_t} ${ai} scroll`,n=>{const{x:o,y:r}=ae(n);(n.type!=="scroll"&&s&&o&&Math.abs(i.x-o)>100||r&&Math.abs(i.y-r)>100)&&setTimeout(()=>{v(s,"swipe"),v(s,`swipe${oa(i.x,i.y,o,r)}`)})})},...t}}function gi(t,e,i){return{observe:t,handler(){this.$emit(i)},...e}}function oa(t,e,i,s){return Math.abs(t-i)>=Math.abs(e-s)?t-i>0?"Left":"Right":e-s>0?"Up":"Down"}var In={mixins:[st,Vt],props:{animation:Boolean,targets:String,active:null,collapsible:Boolean,multiple:Boolean,toggle:String,content:String,offset:Number},data:{targets:"> *",active:!1,animation:!0,collapsible:!0,multiple:!1,clsOpen:"bdt-open",toggle:"> .bdt-accordion-title",content:"> .bdt-accordion-content",offset:0},computed:{items({targets:t},e){return z(t,e)},toggles({toggle:t}){return this.items.map(e=>w(t,e))},contents({content:t}){return this.items.map(e=>{var i;return((i=e._wrapper)==null?void 0:i.firstElementChild)||w(t,e)})}},watch:{items(t,e){if(e||P(t,this.clsOpen))return;const i=this.active!==!1&&t[Number(this.active)]||!this.collapsible&&t[0];i&&this.toggle(i,!1)},toggles(){this.$emit()},contents(t){for(const e of t){const i=P(this.items.find(s=>B(e,s)),this.clsOpen);mi(e,!i)}this.$emit()}},observe:Ne(),events:[{name:"click keydown",delegate(){return`${this.targets} ${this.$props.toggle}`},async handler(t){var e;t.type==="keydown"&&t.keyCode!==I.SPACE||(t.preventDefault(),(e=this._off)==null||e.call(this),this._off=aa(t.target),await this.toggle(oe(this.toggles,t.current)),this._off())}},{name:"shown hidden",self:!0,delegate(){return this.targets},handler(){this.$emit()}}],update(){const t=ke(this.items,`.${this.clsOpen}`);for(const e in this.items){const i=this.toggles[e],s=this.contents[e];if(!i||!s)continue;i.id=At(this,i,`-title-${e}`),s.id=At(this,s,`-content-${e}`);const n=m(t,this.items[e]);p(i,{role:G(i,"a")?"button":null,"aria-controls":s.id,"aria-expanded":n,"aria-disabled":!this.collapsible&&t.length<2&&n}),p(s,{role:"region","aria-labelledby":i.id}),G(s,"ul")&&p(T(s),"role","presentation")}},methods:{toggle(t,e){t=this.items[rt(t,this.items)];let i=[t];const s=ke(this.items,`.${this.clsOpen}`);if(!this.multiple&&!m(s,i[0])&&(i=i.concat(s)),!(!this.collapsible&&s.length<2&&m(s,t)))return Promise.all(i.map(n=>this.toggleElement(n,!m(s,n),(o,r)=>{if(q(o,this.clsOpen,r),e===!1||!this.animation){mi(w(this.content,o),!r);return}return ra(o,r,this)})))}}};function mi(t,e){t&&(t.hidden=e)}async function ra(t,e,{content:i,duration:s,velocity:n,transition:o}){var r;i=((r=t._wrapper)==null?void 0:r.firstElementChild)||w(i,t),t._wrapper||(t._wrapper=si(i,"
"));const a=t._wrapper;h(a,"overflow","hidden");const l=$(h(a,"height"));await E.cancel(a),mi(i,!1);const c=Dt(["marginTop","marginBottom"],f=>h(i,f))+b(i).height,u=l/c;s=(n*c+s)*(e?1-u:u),h(a,"height",l),await E.start(a,{height:e?c:0},s,o),Te(i),delete t._wrapper,e||mi(i,!0)}function aa(t){const[e]=wt(t,!0);let i;return function s(){i=requestAnimationFrame(()=>{const{top:n}=t.getBoundingClientRect();n<0&&(e.scrollTop+=n),s()})}(),()=>requestAnimationFrame(()=>cancelAnimationFrame(i))}var la={mixins:[st,Vt],args:"animation",props:{animation:Boolean,close:String},data:{animation:!0,selClose:".bdt-alert-close",duration:150},events:{name:"click",delegate(){return this.selClose},handler(t){t.preventDefault(),this.close()}},methods:{async close(){await this.toggleElement(this.$el,!1,ha),this.$destroy(!0)}}};function ha(t,e,{duration:i,transition:s,velocity:n}){const o=$(h(t,"height"));return h(t,"height",o),E.start(t,{height:0,marginTop:0,marginBottom:0,paddingTop:0,paddingBottom:0,borderTop:0,borderBottom:0,opacity:0},n*o+i,s)}var Cn={args:"autoplay",props:{automute:Boolean,autoplay:Boolean},data:{automute:!1,autoplay:!0},connected(){this.inView=this.autoplay==="inview",this.inView&&!gt(this.$el,"preload")&&(this.$el.preload="none"),G(this.$el,"iframe")&&!gt(this.$el,"allow")&&(this.$el.allow="autoplay"),this.automute&&Ys(this.$el)},observe:[Me({args:{intersecting:!1}}),pt()],update:{read({visible:t}){return Gs(this.$el)?{prev:t,visible:j(this.$el),inView:this.inView&&ss(this.$el)}:!1},write({prev:t,visible:e,inView:i}){!e||this.inView&&!i?Vs(this.$el):(this.autoplay===!0&&!t||i)&&Us(this.$el)},events:["resize"]}},ca={mixins:[Cn],props:{width:Number,height:Number},data:{automute:!0},events:{"load loadedmetadata"(){this.$emit("resize")}},observe:pt({target:({$el:t})=>[Tn(t)||O(t)]}),update:{read(){const{ratio:t,cover:e}=Ke,{$el:i,width:s,height:n}=this;let o={width:s,height:n};if(!s||!n){const c={width:i.naturalWidth||i.videoWidth||i.clientWidth,height:i.naturalHeight||i.videoHeight||i.clientHeight};s?o=t(c,"width",s):n?o=t(c,"height",n):o=c}const{offsetHeight:r,offsetWidth:a}=Tn(i)||O(i),l=e(o,{width:a+(a%2?1:0),height:r+(r%2?1:0)});return!l.width||!l.height?!1:l},write({height:t,width:e}){h(this.$el,{height:t,width:e})},events:["resize"]}};function Tn(t){for(;t=O(t);)if(h(t,"position")!=="static")return t}var En={props:{pos:String,offset:null,flip:Boolean,shift:Boolean,inset:Boolean},data:{pos:`bottom-${X?"right":"left"}`,offset:!1,flip:!0,shift:!0,inset:!1},connected(){this.pos=this.$props.pos.split("-").concat("center").slice(0,2),[this.dir,this.align]=this.pos,this.axis=m(["top","bottom"],this.dir)?"y":"x"},methods:{positionAt(t,e,i){let s=[this.getPositionOffset(t),this.getShiftOffset(t)];const n=[this.flip&&"flip",this.shift&&"shift"],o={element:[this.inset?this.dir:oi(this.dir),this.align],target:[this.dir,this.align]};if(this.axis==="y"){for(const l in o)o[l].reverse();s.reverse(),n.reverse()}const r=ua(t),a=b(t);h(t,{top:-a.height,left:-a.width}),tn(t,e,{attach:o,offset:s,boundary:i,placement:n,viewportOffset:this.getViewportOffset(t)}),r()},getPositionOffset(t){return ht(this.offset===!1?h(t,"--bdt-position-offset"):this.offset,this.axis==="x"?"width":"height",t)*(m(["left","top"],this.dir)?-1:1)*(this.inset?-1:1)},getShiftOffset(t){return this.align==="center"?0:ht(h(t,"--bdt-position-shift-offset"),this.axis==="y"?"width":"height",t)*(m(["left","top"],this.align)?1:-1)},getViewportOffset(t){return ht(h(t,"--bdt-position-viewport-offset"))}}};function ua(t){const[e]=wt(t),{scrollTop:i}=e;return()=>{i!==e.scrollTop&&(e.scrollTop=i)}}var ze={props:{container:Boolean},data:{container:!0},computed:{container({container:t}){return t===!0&&this.$container||t&&w(t)}}};let fs;function Pn(t){const e=x(t,"touchmove",s=>{if(s.targetTouches.length!==1||C(s.target,'input[type="range"'))return;let[{scrollHeight:n,clientHeight:o}]=wt(s.target);o>=n&&s.cancelable&&s.preventDefault()},{passive:!1});if(fs)return e;fs=!0;const{scrollingElement:i}=document;return h(i,{overflowY:CSS.supports("overflow","clip")?"clip":"hidden",touchAction:"none",paddingRight:Ee(window)-i.clientWidth||""}),()=>{fs=!1,e(),h(i,{overflowY:"",touchAction:"",paddingRight:""})}}let K;var _n={mixins:[ze,En,Vt],args:"pos",props:{mode:"list",toggle:Boolean,boundary:Boolean,boundaryX:Boolean,boundaryY:Boolean,target:Boolean,targetX:Boolean,targetY:Boolean,stretch:Boolean,delayShow:Number,delayHide:Number,autoUpdate:Boolean,clsDrop:String,animateOut:Boolean,bgScroll:Boolean},data:{mode:["click","hover"],toggle:"- *",boundary:!1,boundaryX:!1,boundaryY:!1,target:!1,targetX:!1,targetY:!1,stretch:!1,delayShow:0,delayHide:800,autoUpdate:!0,clsDrop:!1,animateOut:!1,bgScroll:!0,animation:["bdt-animation-fade"],cls:"bdt-open",container:!1},computed:{boundary({boundary:t,boundaryX:e,boundaryY:i},s){return[at(e||t,s)||window,at(i||t,s)||window]},target({target:t,targetX:e,targetY:i},s){return e||(e=t||this.targetEl),i||(i=t||this.targetEl),[e===!0?window:at(e,s),i===!0?window:at(i,s)]}},created(){this.tracker=new ts},beforeConnect(){this.clsDrop=this.$props.clsDrop||`bdt-${this.$options.name}`},connected(){y(this.$el,"bdt-drop",this.clsDrop),this.toggle&&!this.targetEl&&(this.targetEl=pa(this)),this._style=zi(this.$el.style,["width","height"])},disconnected(){this.isActive()&&(this.hide(!1),K=null),h(this.$el,this._style)},observe:Ne({target:({toggle:t,$el:e})=>at(t,e),targets:({$el:t})=>t}),events:[{name:"click",delegate(){return".bdt-drop-close"},handler(t){t.preventDefault(),this.hide(!1)}},{name:"click",delegate(){return'a[href*="#"]'},handler({defaultPrevented:t,current:e}){const{hash:i}=e;!t&&i&&re(e)&&!B(i,this.$el)&&this.hide(!1)}},{name:"beforescroll",handler(){this.hide(!1)}},{name:"toggle",self:!0,handler(t,e){t.preventDefault(),this.isToggled()?this.hide(!1):this.show(e==null?void 0:e.$el,!1)}},{name:"toggleshow",self:!0,handler(t,e){t.preventDefault(),this.show(e==null?void 0:e.$el)}},{name:"togglehide",self:!0,handler(t){t.preventDefault(),C(this.$el,":focus,:hover")||this.hide()}},{name:`${Rt} focusin`,filter(){return m(this.mode,"hover")},handler(t){Ct(t)||this.clearTimers()}},{name:`${ue} focusout`,filter(){return m(this.mode,"hover")},handler(t){!Ct(t)&&t.relatedTarget&&this.hide()}},{name:"toggled",self:!0,handler(t,e){p(this.targetEl,"aria-expanded",e?!0:null),e&&(this.clearTimers(),this.position())}},{name:"show",self:!0,handler(){K=this,this.tracker.init();const t=[ga(this),va(this),wa(this),this.autoUpdate&&ma(this),!this.bgScroll&&Pn(this.$el)];L(this.$el,"hide",()=>t.forEach(e=>e&&e()),{self:!0})}},{name:"beforehide",self:!0,handler(){this.clearTimers()}},{name:"hide",handler({target:t}){if(this.$el!==t){K=K===null&&B(t,this.$el)&&this.isToggled()?this:K;return}K=this.isActive()?null:K,this.tracker.cancel()}}],update:{write(){this.isToggled()&&!P(this.$el,this.clsEnter)&&this.position()}},methods:{show(t=this.targetEl,e=!0){if(this.isToggled()&&t&&this.targetEl&&t!==this.targetEl&&this.hide(!1,!1),this.targetEl=t,this.clearTimers(),!this.isActive()){if(K){if(e&&K.isDelaying){this.showTimer=setTimeout(()=>C(t,":hover")&&this.show(),10);return}let i;for(;K&&i!==K&&!B(this.$el,K.$el);)i=K,K.hide(!1,!1)}this.container&&O(this.$el)!==this.container&&W(this.container,this.$el),this.showTimer=setTimeout(()=>this.toggleElement(this.$el,!0),e&&this.delayShow||0)}},hide(t=!0,e=!0){const i=()=>this.toggleElement(this.$el,!1,this.animateOut&&e);this.clearTimers(),this.isDelaying=fa(this.$el).some(s=>this.tracker.movesTo(s)),t&&this.isDelaying?this.hideTimer=setTimeout(this.hide,50):t&&this.delayHide?this.hideTimer=setTimeout(i,this.delayHide):i()},clearTimers(){clearTimeout(this.showTimer),clearTimeout(this.hideTimer),this.showTimer=null,this.hideTimer=null,this.isDelaying=!1},isActive(){return K===this},position(){M(this.$el,"bdt-drop-stack"),h(this.$el,this._style),this.$el.hidden=!0;const t=this.target.map(n=>da(this.$el,n)),e=this.getViewportOffset(this.$el),i=[[0,["x","width","left","right"]],[1,["y","height","top","bottom"]]];for(const[n,[o,r]]of i)this.axis!==o&&m([o,!0],this.stretch)&&h(this.$el,{[r]:Math.min(_(this.boundary[n])[r],t[n][r]-2*e),[`overflow-${o}`]:"auto"});const s=t[0].width-2*e;this.$el.hidden=!1,h(this.$el,"maxWidth",""),this.$el.offsetWidth>s&&y(this.$el,"bdt-drop-stack"),h(this.$el,"maxWidth",s),this.positionAt(this.$el,this.target,this.boundary);for(const[n,[o,r,a,l]]of i)if(this.axis===o&&m([o,!0],this.stretch)){const c=Math.abs(this.getPositionOffset(this.$el)),u=_(this.target[n]),f=_(this.$el);h(this.$el,{[r]:(u[a]>f[a]?u[this.inset?l:a]-Math.max(_(this.boundary[n])[a],t[n][a]+e):Math.min(_(this.boundary[n])[l],t[n][l]-e)-u[this.inset?a:l])-c,[`overflow-${o}`]:"auto"}),this.positionAt(this.$el,this.target,this.boundary)}}}};function fa(t){const e=[];return Tt(t,i=>h(i,"position")!=="static"&&e.push(i)),e}function da(t,e){return ct(jt(e).find(i=>B(t,i)))}function pa(t){const{$el:e}=t.$create("toggle",at(t.toggle,t.$el),{target:t.$el,mode:t.mode});return p(e,"aria-haspopup",!0),e}function ga(t){const e=()=>t.$emit(),i=x(window,"resize",e),s=li(jt(t.$el).concat(t.target),e);return()=>{s.disconnect(),i()}}function ma(t){return x([document,...jt(t.$el)],"scroll",()=>t.$emit(),{passive:!0})}function va(t){return x(document,"keydown",e=>{e.keyCode===I.ESC&&t.hide(!1)})}function wa(t){return x(document,vt,({target:e})=>{B(e,t.$el)||L(document,`${_t} ${ai} scroll`,({defaultPrevented:i,type:s,target:n})=>{!i&&s===_t&&e===n&&!(t.targetEl&&B(e,t.targetEl))&&t.hide(!1)},!0)})}var An={mixins:[st,ze],props:{align:String,clsDrop:String,boundary:Boolean,dropbar:Boolean,dropbarAnchor:Boolean,duration:Number,mode:Boolean,offset:Boolean,stretch:Boolean,delayShow:Boolean,delayHide:Boolean,target:Boolean,targetX:Boolean,targetY:Boolean,animation:Boolean,animateOut:Boolean},data:{align:X?"right":"left",clsDrop:"bdt-dropdown",clsDropbar:"bdt-dropnav-dropbar",boundary:!0,dropbar:!1,dropbarAnchor:!1,duration:200,container:!1,selNavItem:"> li > a, > ul > li > a"},computed:{dropbarAnchor({dropbarAnchor:t},e){return at(t,e)||e},dropbar({dropbar:t}){return t?(t=this._dropbar||at(t,this.$el)||w(`+ .${this.clsDropbar}`,this.$el),t||(this._dropbar=w("
"))):null},dropContainer(t,e){return this.container||e},dropdowns({clsDrop:t},e){var i;const s=z(`.${t}`,e);if(this.dropContainer!==e)for(const n of z(`.${t}`,this.dropContainer)){const o=(i=this.getDropdown(n))==null?void 0:i.targetEl;!m(s,n)&&o&&B(o,this.$el)&&s.push(n)}return s},items({selNavItem:t},e){return z(t,e)}},watch:{dropbar(t){y(t,"bdt-dropbar","bdt-dropbar-top",this.clsDropbar,`bdt-${this.$options.name}-dropbar`)},dropdowns(t){this.$create("drop",t.filter(e=>!this.getDropdown(e)),{...this.$props,flip:!1,shift:!0,pos:`bottom-${this.align}`,boundary:this.boundary===!0?this.$el:this.boundary})}},disconnected(){lt(this._dropbar),delete this._dropbar},events:[{name:"mouseover focusin",delegate(){return this.selNavItem},handler({current:t}){const e=this.getActive();e&&m(e.mode,"hover")&&e.targetEl&&!B(e.targetEl,t)&&!e.isDelaying&&e.hide(!1)}},{name:"keydown",delegate(){return this.selNavItem},handler(t){const{current:e,keyCode:i}=t,s=this.getActive();i===I.DOWN&>(e,"aria-expanded")&&(t.preventDefault(),!s||s.targetEl!==e?(e.click(),L(this.dropContainer,"show",({target:n})=>Dn(n))):Dn(s.$el)),On(t,this.items,s)}},{name:"keydown",el(){return this.dropContainer},delegate(){return`.${this.clsDrop}`},handler(t){var e;const{current:i,keyCode:s}=t;if(!m(this.dropdowns,i))return;const n=this.getActive();let o=-1;if(s===I.HOME?o=0:s===I.END?o="last":s===I.UP?o="previous":s===I.DOWN?o="next":s===I.ESC&&((e=n.targetEl)==null||e.focus()),~o){t.preventDefault();const r=z(ye,i);r[rt(o,r,yt(r,a=>C(a,":focus")))].focus()}On(t,this.items,n)}},{name:"mouseleave",el(){return this.dropbar},filter(){return this.dropbar},handler(){const t=this.getActive();t&&m(t.mode,"hover")&&!this.dropdowns.some(e=>C(e,":hover"))&&t.hide()}},{name:"beforeshow",el(){return this.dropContainer},filter(){return this.dropbar},handler({target:t}){this.isDropbarDrop(t)&&(this.dropbar.previousElementSibling!==this.dropbarAnchor&&ei(this.dropbarAnchor,this.dropbar),y(t,`${this.clsDrop}-dropbar`))}},{name:"show",el(){return this.dropContainer},filter(){return this.dropbar},handler({target:t}){if(!this.isDropbarDrop(t))return;const e=this.getDropdown(t),i=()=>{const s=ne(t,`.${this.clsDrop}`).concat(t).map(a=>_(a)),n=Math.min(...s.map(({top:a})=>a)),o=Math.max(...s.map(({bottom:a})=>a)),r=_(this.dropbar);h(this.dropbar,"top",this.dropbar.offsetTop-(r.top-n)),this.transitionTo(o-n+$(h(t,"marginBottom")),t)};this._observer=li([e.$el,...e.target],i),i()}},{name:"beforehide",el(){return this.dropContainer},filter(){return this.dropbar},handler(t){const e=this.getActive();C(this.dropbar,":hover")&&e.$el===t.target&&!this.items.some(i=>e.targetEl!==i&&C(i,":focus"))&&t.preventDefault()}},{name:"hide",el(){return this.dropContainer},filter(){return this.dropbar},handler({target:t}){var e;if(!this.isDropbarDrop(t))return;(e=this._observer)==null||e.disconnect();const i=this.getActive();(!i||i.$el===t)&&this.transitionTo(0)}}],methods:{getActive(){var t;return m(this.dropdowns,(t=K)==null?void 0:t.$el)&&K},async transitionTo(t,e){const{dropbar:i}=this,s=et(i);e=sh(e,{clipPath:""}))]).catch(k)},getDropdown(t){return this.$getComponent(t,"drop")||this.$getComponent(t,"dropdown")},isDropbarDrop(t){return this.getDropdown(t)&&P(t,this.clsDrop)}}};function On(t,e,i){var s,n,o;const{current:r,keyCode:a}=t;let l=-1;a===I.HOME?l=0:a===I.END?l="last":a===I.LEFT?l="previous":a===I.RIGHT?l="next":a===I.TAB&&((s=i.targetEl)==null||s.focus(),(n=i.hide)==null||n.call(i,!1)),~l&&(t.preventDefault(),(o=i.hide)==null||o.call(i,!1),e[rt(l,e,e.indexOf(i.targetEl||r))].focus())}function Dn(t){var e;w(":focus",t)||(e=w(ye,t))==null||e.focus()}var ba={mixins:[st],args:"target",props:{target:Boolean},data:{target:!1},computed:{input(t,e){return w(xe,e)},state(){return this.input.nextElementSibling},target({target:t},e){return t&&(t===!0&&O(this.input)===e&&this.input.nextElementSibling||w(t,e))}},update(){var t;const{target:e,input:i}=this;if(!e)return;let s;const n=Wi(e)?"value":"textContent",o=e[n],r=(t=i.files)!=null&&t[0]?i.files[0].name:C(i,"select")&&(s=z("option",i).filter(a=>a.selected)[0])?s.textContent:i.value;o!==r&&(e[n]=r)},events:[{name:"change",handler(){this.$emit()}},{name:"reset",el(){return U(this.$el,"form")},handler(){this.$emit()}}]},Bn={props:{margin:String,firstColumn:Boolean},data:{margin:"bdt-margin-small-top",firstColumn:"bdt-first-column"},observe:[kn({options:{childList:!0,attributes:!0,attributeFilter:["style"]}}),pt({target:({$el:t})=>[t,...T(t)]})],update:{read(){const t=ds(this.$el.children);return{rows:t,columns:$a(t)}},write({columns:t,rows:e}){for(const i of e)for(const s of i)q(s,this.margin,e[0]!==i),q(s,this.firstColumn,t[0].includes(s))},events:["resize"]}};function ds(t){return Mn(t,"top","bottom")}function $a(t){const e=[];for(const i of t){const s=Mn(i,"left","right");for(let n=0;n=0;r--){const a=s[r];if(!a[0]){a.push(n);break}let l;if(a[0].offsetParent===n.offsetParent?l=vi(a[0]):(o=vi(n,!0),l=vi(a[0],!0)),o[e]>=l[i]-1&&o[e]!==l[e]){s.push([n]);break}if(o[i]-1>l[e]||o[e]===l[e]){a.push(n);break}if(r===0){s.unshift([n]);break}}}return s}function vi(t,e=!1){let{offsetTop:i,offsetLeft:s,offsetHeight:n,offsetWidth:o}=t;return e&&([i,s]=Ht(t)),{top:i,left:s,bottom:i+n,right:s+o}}var xa={extends:Bn,mixins:[st],name:"grid",props:{masonry:Boolean,parallax:Number},data:{margin:"bdt-grid-margin",clsStack:"bdt-grid-stack",masonry:!1,parallax:0},connected(){this.masonry&&y(this.$el,"bdt-flex-top bdt-flex-wrap-top")},observe:pi({filter:({parallax:t})=>t}),update:[{write({columns:t}){q(this.$el,this.clsStack,t.length<2)},events:["resize"]},{read(t){let{columns:e,rows:i}=t;if(!e.length||!this.masonry&&!this.parallax||Nn(this.$el))return t.translates=!1,!1;let s=!1;const n=T(this.$el),o=e.map(c=>Dt(c,"offsetHeight")),r=ka(n,this.margin)*(i.length-1),a=Math.max(...o)+r;this.masonry&&(e=e.map(c=>Xe(c,"offsetTop")),s=ya(i,e));let l=Math.abs(this.parallax);return l&&(l=o.reduce((c,u,f)=>Math.max(c,u+r+(f%2?l:l/8)-a),0)),{padding:l,columns:e,translates:s,height:s?a:""}},write({height:t,padding:e}){h(this.$el,"paddingBottom",e||""),t!==!1&&h(this.$el,"height",t)},events:["resize"]},{read(){return this.parallax&&Nn(this.$el)?!1:{scrolled:this.parallax?ns(this.$el)*Math.abs(this.parallax):!1}},write({columns:t,scrolled:e,translates:i}){e===!1&&!i||t.forEach((s,n)=>s.forEach((o,r)=>h(o,"transform",!e&&!i?"":`translateY(${(i&&-i[n][r])+(e?n%2?e:e/8:0)}px)`)))},events:["scroll","resize"]}]};function Nn(t){return T(t).some(e=>h(e,"position")==="absolute")}function ya(t,e){const i=t.map(s=>Math.max(...s.map(n=>n.offsetHeight)));return e.map(s=>{let n=0;return s.map((o,r)=>n+=r?i[r-1]-s[r-1].offsetHeight:0)})}function ka(t,e){const[i]=t.filter(s=>P(s,e));return $(i?h(i,"marginTop"):h(t[0],"paddingLeft"))}var Sa={args:"target",props:{target:String,row:Boolean},data:{target:"> *",row:!0},computed:{elements({target:t},e){return z(t,e)}},observe:pt({target:({$el:t,elements:e})=>[t,...e]}),update:{read(){return{rows:(this.row?ds(this.elements):[this.elements]).map(Ia)}},write({rows:t}){for(const{heights:e,elements:i}of t)i.forEach((s,n)=>h(s,"minHeight",e[n]))},events:["resize"]}};function Ia(t){if(t.length<2)return{heights:[""],elements:t};let e=t.map(Ca);const i=Math.max(...e);return{heights:t.map((s,n)=>e[n].toFixed(2)===i.toFixed(2)?"":i),elements:t}}function Ca(t){const e=zi(t.style,["display","minHeight"]);j(t)||h(t,"display","block","important"),h(t,"minHeight","");const i=b(t).height-le(t,"height","content-box");return h(t,e),i}var Ta={props:{expand:Boolean,offsetTop:Boolean,offsetBottom:Boolean,minHeight:Number},data:{expand:!1,offsetTop:!1,offsetBottom:!1,minHeight:0},observe:pt({target:({$el:t})=>[t,...wt(t)]}),update:{read({minHeight:t}){if(!j(this.$el))return!1;let e="";const i=le(this.$el,"height","content-box"),{body:s,scrollingElement:n}=document,[o]=wt(this.$el),{height:r}=ct(o===s?n:o);if(this.expand)e=Math.max(r-(b(o).height-b(this.$el).height)-i,0);else{const a=n===o||s===o;if(e=`calc(${a?"100vh":`${r}px`}`,this.offsetTop)if(a){const l=Ht(this.$el)[0]-Ht(o)[0];e+=l>0&&l{if(!this._connected)return;const e=Ea(t,this.$el);return this.svgEl&&e!==this.svgEl&<(this.svgEl),Pa.call(this,e,t),this.svgEl=e},k)},disconnected(){this.svg.then(t=>{this._connected||(Li(this.$el)&&(this.$el.hidden=!1),lt(t),this.svgEl=null)}),this.svg=null},methods:{async getSvg(){}}};function Ea(t,e){if(Li(e)||G(e,"canvas")){e.hidden=!0;const s=e.nextElementSibling;return Fn(t,s)?s:ei(e,t)}const i=e.lastElementChild;return Fn(t,i)?i:W(e,t)}function Fn(t,e){return G(t,"svg")&&G(e,"svg")&&t.innerHTML===e.innerHTML}function Pa(t,e){const i=["width","height"];let s=i.map(o=>this[o]);s.some(o=>o)||(s=i.map(o=>p(e,o)));const n=p(e,"viewBox");n&&!s.some(o=>o)&&(s=n.split(" ").slice(2)),s.forEach((o,r)=>p(t,i[r],$(o)*this.ratio||null))}var wi={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var i,s,n;let o=0;return((n=((i=this.i18n)==null?void 0:i[t])||((s=this.$options.i18n)==null?void 0:s[t]))==null?void 0:n.replace(/%s/g,()=>e[o++]||""))||""}}},_a='',Aa='',Oa='',Da='',Ba='',Ma='',Na='',za='',Fa='',Ha='',La='',Wa='',Ra='',ja='',qa='',Ua='',Va='',Ya='',Ga='',Xa='';const bi={spinner:Ga,totop:Xa,marker:Da,"close-icon":_a,"close-large":Aa,"drop-parent-icon":Oa,"nav-parent-icon":Ba,"nav-parent-icon-large":Ma,"navbar-parent-icon":Na,"navbar-toggle-icon":za,"overlay-icon":Fa,"pagination-next":Ha,"pagination-previous":La,"search-icon":Wa,"search-large":Ra,"search-navbar":ja,"slidenav-next":qa,"slidenav-next-large":Ua,"slidenav-previous":Va,"slidenav-previous-large":Ya},ps={install:ol,mixins:[zn],args:"icon",props:{icon:String},isIcon:!0,beforeConnect(){y(this.$el,"bdt-icon")},methods:{async getSvg(){const t=rl(this.icon);if(!t)throw"Icon not found.";return t}}},Yt={args:!1,extends:ps,data:t=>({icon:Kt(t.constructor.options.name)}),beforeConnect(){y(this.$el,this.$options.id)}},Ja={extends:Yt,beforeConnect(){const t=this.$props.icon;this.icon=U(this.$el,".bdt-nav-primary")?`${t}-large`:t}},Ka={extends:Yt,mixins:[wi],i18n:{toggle:"Open Search",submit:"Submit Search"},beforeConnect(){if(this.icon=P(this.$el,"bdt-search-icon")&&ne(this.$el,".bdt-search-large").length?"search-large":ne(this.$el,".bdt-search-navbar").length?"search-navbar":this.$props.icon,!gt(this.$el,"aria-label"))if(P(this.$el,"bdt-search-toggle")||P(this.$el,"bdt-navbar-toggle")){const t=this.t("toggle");p(this.$el,"aria-label",t)}else{const t=U(this.$el,"a,button");if(t){const e=this.t("submit");p(t,"aria-label",e)}}}},Za={extends:Yt,beforeConnect(){p(this.$el,"role","status")},methods:{async getSvg(){const t=await ps.methods.getSvg.call(this);return this.ratio!==1&&h(w("circle",t),"strokeWidth",1/this.ratio),t}}},Gt={extends:Yt,mixins:[wi],beforeConnect(){const t=U(this.$el,"a,button");p(t,"role",this.role!==null&&G(t,"a")?"button":this.role);const e=this.t("label");e&&!gt(t,"aria-label")&&p(t,"aria-label",e)}},Hn={extends:Gt,beforeConnect(){y(this.$el,"bdt-slidenav");const t=this.$props.icon;this.icon=P(this.$el,"bdt-slidenav-large")?`${t}-large`:t}},Qa={extends:Gt,i18n:{label:"Open menu"}},tl={extends:Gt,i18n:{label:"Close"},beforeConnect(){this.icon=`close-${P(this.$el,"bdt-close-large")?"large":"icon"}`}},el={extends:Gt,i18n:{label:"Open"}},il={extends:Gt,i18n:{label:"Back to top"}},sl={extends:Gt,i18n:{label:"Next page"},data:{role:null}},nl={extends:Gt,i18n:{label:"Previous page"},data:{role:null}},$i={};function ol(t){t.icon.add=(e,i)=>{const s=D(e)?{[e]:i}:e;It(s,(n,o)=>{bi[o]=n,delete $i[o]}),t._initialized&&Tt(document.body,n=>It(t.getComponents(n),o=>{o.$options.isIcon&&o.icon in s&&o.$reset()}))}}function rl(t){return bi[t]?($i[t]||($i[t]=w((bi[al(t)]||bi[t]).trim())),$i[t].cloneNode(!0)):null}function al(t){return X?Ni(Ni(t,"left","right"),"previous","next"):t}const ll=Lt&&"loading"in HTMLImageElement.prototype;var hl={args:"dataSrc",props:{dataSrc:String,sources:String,margin:String,target:String,loading:String},data:{dataSrc:"",sources:!1,margin:"50%",target:!1,loading:"lazy"},connected(){if(this.loading!=="lazy"){this.load();return}ll&&xi(this.$el)&&(this.$el.loading="lazy",gs(this.$el)),pl(this.$el)},disconnected(){this.img&&(this.img.onload=""),delete this.img},observe:Me({target:({$el:t,$props:e})=>[t,...Se(e.target,t)],handler(t,e){this.load(),e.disconnect()},options:({margin:t})=>({rootMargin:t}),filter:({loading:t})=>t==="lazy"}),methods:{load(){if(this.img)return this.img;const t=xi(this.$el)?this.$el:ul(this.$el,this.dataSrc,this.sources);return $e(t,"loading"),gs(this.$el,t.currentSrc),this.img=t}}};function gs(t,e){if(xi(t)){const i=O(t);(G(i,"picture")?T(i):[t]).forEach(n=>Ln(n,n))}else e&&!m(t.style.backgroundImage,e)&&(h(t,"backgroundImage",`url(${qi(e)})`),v(t,Mt("load",!1)))}const cl=["data-src","data-srcset","sizes"];function Ln(t,e){for(const i of cl){const s=tt(t,i);s&&p(e,i.replace(/^(data-)+/,""),s)}}function ul(t,e,i){const s=new Image;return fl(s,i),Ln(t,s),s.onload=()=>{gs(t,s.currentSrc)},p(s,"src",e),s}function fl(t,e){if(e=dl(e),e.length){const i=zt("");for(const s of e){const n=zt("");p(n,s),W(i,n)}W(i,t)}}function dl(t){if(!t)return[];if(ot(t,"["))try{t=JSON.parse(t)}catch{t=[]}else t=De(t);return Q(t)||(t=[t]),t.filter(e=>!be(e))}function pl(t){xi(t)&&!gt(t,"src")&&p(t,"src",'data:image/svg+xml;utf8,')}function xi(t){return G(t,"img")}var yi={props:{media:Boolean},data:{media:!1},connected(){const t=gl(this.media,this.$el);if(this.matchMedia=!0,t){this.mediaObj=window.matchMedia(t);const e=()=>{this.matchMedia=this.mediaObj.matches,v(this.$el,Mt("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=x(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var t;(t=this.offMediaObj)==null||t.call(this)}};function gl(t,e){if(D(t)){if(ot(t,"@"))t=$(h(e,`--bdt-breakpoint-${t.substr(1)}`));else if(isNaN(t))return t}return t&&xt(t)?`(min-width: ${t}px)`:""}var ml={mixins:[st,yi],props:{fill:String},data:{fill:"",clsWrapper:"bdt-leader-fill",clsHide:"bdt-leader-hide",attrFill:"data-fill"},computed:{fill({fill:t}){return t||h(this.$el,"--bdt-leader-fill-content")}},connected(){[this.wrapper]=Ki(this.$el,``)},disconnected(){Te(this.wrapper.childNodes)},observe:pt(),update:{read(){return{width:Math.trunc(this.$el.offsetWidth/2),fill:this.fill,hide:!this.matchMedia}},write({width:t,fill:e,hide:i}){q(this.wrapper,this.clsHide,i),p(this.wrapper,this.attrFill,new Array(t).join(e))},events:["resize"]}};const nt=[];var ms={mixins:[st,ze,Vt],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean,role:String},data:{cls:"bdt-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1,role:"dialog"},computed:{panel({selPanel:t},e){return w(t,e)},transitionElement(){return this.panel},bgClose({bgClose:t}){return t&&this.panel}},connected(){p(this.panel||this.$el,"role",this.role),this.overlay&&p(this.panel||this.$el,"aria-modal",!0)},beforeDisconnect(){m(nt,this)&&this.toggleElement(this.$el,!1,!1)},events:[{name:"click",delegate(){return`${this.selClose},a[href*="#"]`},handler(t){const{current:e,defaultPrevented:i}=t,{hash:s}=e;!i&&s&&re(e)&&!B(s,this.$el)&&w(s,document.body)?this.hide():C(e,this.selClose)&&(t.preventDefault(),this.hide())}},{name:"toggle",self:!0,handler(t){t.defaultPrevented||(t.preventDefault(),this.isToggled()===m(nt,this)&&this.toggle())}},{name:"beforeshow",self:!0,handler(t){if(m(nt,this))return!1;!this.stack&&nt.length?(Promise.all(nt.map(e=>e.hide())).then(this.show),t.preventDefault()):nt.push(this)}},{name:"show",self:!0,handler(){this.stack&&h(this.$el,"zIndex",$(h(this.$el,"zIndex"))+nt.length);const t=[this.overlay&&wl(this),this.overlay&&Pn(this.$el),this.bgClose&&bl(this),this.escClose&&$l(this)];L(this.$el,"hidden",()=>t.forEach(e=>e&&e()),{self:!0}),y(document.documentElement,this.clsPage)}},{name:"shown",self:!0,handler(){Ze(this.$el)||p(this.$el,"tabindex","-1"),C(this.$el,":focus-within")||this.$el.focus()}},{name:"hidden",self:!0,handler(){m(nt,this)&&nt.splice(nt.indexOf(this),1),h(this.$el,"zIndex",""),nt.some(t=>t.clsPage===this.clsPage)||M(document.documentElement,this.clsPage)}}],methods:{toggle(){return this.isToggled()?this.hide():this.show()},show(){return this.container&&O(this.$el)!==this.container?(W(this.container,this.$el),new Promise(t=>requestAnimationFrame(()=>this.show().then(t)))):this.toggleElement(this.$el,!0,Wn)},hide(){return this.toggleElement(this.$el,!1,Wn)}}};function Wn(t,e,{transitionElement:i,_toggle:s}){return new Promise((n,o)=>L(t,"show hide",()=>{var r;(r=t._reject)==null||r.call(t),t._reject=o,s(t,e);const a=L(i,"transitionstart",()=>{L(i,"transitionend transitioncancel",n,{self:!0}),clearTimeout(l)},{self:!0}),l=setTimeout(()=>{a(),n()},vl(h(i,"transitionDuration")))})).then(()=>delete t._reject)}function vl(t){return t?Zt(t,"ms")?$(t):$(t)*1e3:0}function wl(t){return x(document,"focusin",e=>{se(nt)===t&&!B(e.target,t.$el)&&t.$el.focus()})}function bl(t){return x(document,vt,({target:e})=>{se(nt)!==t||t.overlay&&!B(e,t.$el)||B(e,t.panel)||L(document,`${_t} ${ai} scroll`,({defaultPrevented:i,type:s,target:n})=>{!i&&s===_t&&e===n&&t.hide()},!0)})}function $l(t){return x(document,"keydown",e=>{e.keyCode===27&&se(nt)===t&&t.hide()})}var xl={install:yl,mixins:[ms],data:{clsPage:"bdt-modal-page",selPanel:".bdt-modal-dialog",selClose:".bdt-modal-close, .bdt-modal-close-default, .bdt-modal-close-outside, .bdt-modal-close-full"},events:[{name:"show",self:!0,handler(){P(this.panel,"bdt-margin-auto-vertical")?y(this.$el,"bdt-flex"):h(this.$el,"display","block"),et(this.$el)}},{name:"hidden",self:!0,handler(){h(this.$el,"display",""),M(this.$el,"bdt-flex")}}]};function yl({modal:t}){t.dialog=function(i,s){const n=t(`
${i}
`,s);return n.show(),x(n.$el,"hidden",async()=>{await Promise.resolve(),n.$destroy(!0)},{self:!0}),n},t.alert=function(i,s){return e(({i18n:n})=>`
${D(i)?i:Nt(i)}
`,s)},t.confirm=function(i,s){return e(({i18n:n})=>`
${D(i)?i:Nt(i)}
`,s,()=>Promise.reject())},t.prompt=function(i,s,n){return e(({i18n:o})=>`
`,n,()=>null,o=>w("input",o.$el).value)},t.i18n={ok:"Ok",cancel:"Cancel"};function e(i,s,n=k,o=k){s={bgClose:!1,escClose:!0,role:"alertdialog",...s,i18n:{...t.i18n,...s==null?void 0:s.i18n}};const r=t.dialog(i(s),s);return $t(new Promise(a=>{const l=x(r.$el,"hide",()=>a(n()));x(r.$el,"submit","form",c=>{c.preventDefault(),a(o(r)),l(),r.hide()})}),{dialog:r})}}var kl={extends:In,data:{targets:"> .bdt-parent",toggle:"> a",content:"> ul"}},Sl={extends:An,data:{clsDrop:"bdt-navbar-dropdown",selNavItem:".bdt-navbar-nav > li > a,a.bdt-navbar-item,button.bdt-navbar-item,.bdt-navbar-item a,.bdt-navbar-item button,.bdt-navbar-toggle"},watch:{items(){const t=P(this.$el,"bdt-navbar-justify");for(const e of z(".bdt-navbar-nav, .bdt-navbar-left, .bdt-navbar-right",this.$el))h(e,"flexGrow",t?z(".bdt-navbar-nav > li > a, .bdt-navbar-item, .bdt-navbar-toggle",e).length:"")}}},Il={mixins:[ms],args:"mode",props:{mode:String,flip:Boolean,overlay:Boolean,swiping:Boolean},data:{mode:"slide",flip:!1,overlay:!1,clsPage:"bdt-offcanvas-page",clsContainer:"bdt-offcanvas-container",selPanel:".bdt-offcanvas-bar",clsFlip:"bdt-offcanvas-flip",clsContainerAnimation:"bdt-offcanvas-container-animation",clsSidebarAnimation:"bdt-offcanvas-bar-animation",clsMode:"bdt-offcanvas",clsOverlay:"bdt-offcanvas-overlay",selClose:".bdt-offcanvas-close",container:!1,swiping:!0},computed:{clsFlip({flip:t,clsFlip:e}){return t?e:""},clsOverlay({overlay:t,clsOverlay:e}){return t?e:""},clsMode({mode:t,clsMode:e}){return`${e}-${t}`},clsSidebarAnimation({mode:t,clsSidebarAnimation:e}){return t==="none"||t==="reveal"?"":e},clsContainerAnimation({mode:t,clsContainerAnimation:e}){return t!=="push"&&t!=="reveal"?"":e},transitionElement({mode:t}){return t==="reveal"?O(this.panel):this.panel}},observe:Sn({filter:({swiping:t})=>t}),update:{read(){this.isToggled()&&!j(this.$el)&&this.hide()},events:["resize"]},events:[{name:"touchmove",self:!0,passive:!1,filter(){return this.overlay},handler(t){t.cancelable&&t.preventDefault()}},{name:"show",self:!0,handler(){this.mode==="reveal"&&!P(O(this.panel),this.clsMode)&&(si(this.panel,"
"),y(O(this.panel),this.clsMode));const{body:t,scrollingElement:e}=document;y(t,this.clsContainer,this.clsFlip),h(t,"touch-action","pan-y pinch-zoom"),h(this.$el,"display","block"),h(this.panel,"maxWidth",e.clientWidth),y(this.$el,this.clsOverlay),y(this.panel,this.clsSidebarAnimation,this.mode==="reveal"?"":this.clsMode),et(t),y(t,this.clsContainerAnimation),this.clsContainerAnimation&&Cl()}},{name:"hide",self:!0,handler(){M(document.body,this.clsContainerAnimation),h(document.body,"touch-action","")}},{name:"hidden",self:!0,handler(){this.clsContainerAnimation&&Tl(),this.mode==="reveal"&&Te(this.panel),M(this.panel,this.clsSidebarAnimation,this.clsMode),M(this.$el,this.clsOverlay),h(this.$el,"display",""),h(this.panel,"maxWidth",""),M(document.body,this.clsContainer,this.clsFlip)}},{name:"swipeLeft swipeRight",handler(t){this.isToggled()&&Zt(t.type,"Left")^this.flip&&this.hide()}}]};function Cl(){Rn().content+=",user-scalable=0"}function Tl(){const t=Rn();t.content=t.content.replace(/,user-scalable=0$/,"")}function Rn(){return w('meta[name="viewport"]',document.head)||W(document.head,'')}var El={mixins:[st],props:{selContainer:String,selContent:String,minHeight:Number},data:{selContainer:".bdt-modal",selContent:".bdt-modal-dialog",minHeight:150},computed:{container({selContainer:t},e){return U(e,t)},content({selContent:t},e){return U(e,t)}},observe:pt({target:({container:t,content:e})=>[t,e]}),update:{read(){return!this.content||!this.container||!j(this.$el)?!1:{max:Math.max(this.minHeight,et(this.container)-(b(this.content).height-et(this.$el)))}},write({max:t}){h(this.$el,{minHeight:this.minHeight,maxHeight:t})},events:["resize"]}},Pl={props:["width","height"],connected(){y(this.$el,"bdt-responsive-width")},observe:pt({target:({$el:t})=>[t,O(t)]}),update:{read(){return j(this.$el)&&this.width&&this.height?{width:Ee(O(this.$el)),height:this.height}:!1},write(t){et(this.$el,Ke.contain({height:this.height,width:this.width},t).height)},events:["resize"]}},_l={props:{offset:Number},data:{offset:0},connected(){Al(this)},disconnected(){Ol(this)},methods:{async scrollTo(t){t=t&&w(t)||document.body,v(this.$el,"beforescroll",[this,t])&&(await Zs(t,{offset:this.offset}),v(this.$el,"scrolled",[this,t]))}}};const Fe=new Set;function Al(t){Fe.size||x(document,"click",jn),Fe.add(t)}function Ol(t){Fe.delete(t),Fe.size||Bt(document,"click",jn)}function jn(t){if(!t.defaultPrevented)for(const e of Fe)B(t.target,e.$el)&&re(e.$el)&&(t.preventDefault(),window.location.href!==e.$el.href&&window.history.pushState({},"",e.$el.href),e.scrollTo(Ri(e.$el)))}var Dl={args:"cls",props:{cls:String,target:String,hidden:Boolean,margin:String,repeat:Boolean,delay:Number},data:()=>({cls:"",target:!1,hidden:!0,margin:"-1px",repeat:!1,delay:0,inViewClass:"bdt-scrollspy-inview"}),computed:{elements({target:t},e){return t?z(t,e):[e]}},watch:{elements(t){this.hidden&&h(ke(t,`:not(.${this.inViewClass})`),"opacity",0)}},connected(){this.elementData=new Map},disconnected(){for(const[t,e]of this.elementData.entries())M(t,this.inViewClass,(e==null?void 0:e.cls)||"");delete this.elementData},observe:Me({target:({elements:t})=>t,handler(t){const e=this.elementData;for(const{target:i,isIntersecting:s}of t){e.has(i)||e.set(i,{cls:tt(i,"bdt-scrollspy-class")||this.cls});const n=e.get(i);!this.repeat&&n.show||(n.show=s)}this.$emit()},options:t=>({rootMargin:t.margin}),args:{intersecting:!1}}),update:[{write(t){for(const[e,i]of this.elementData.entries())i.show&&!i.inview&&!i.queued?(i.queued=!0,t.promise=(t.promise||Promise.resolve()).then(()=>new Promise(s=>setTimeout(s,this.delay))).then(()=>{this.toggle(e,!0),setTimeout(()=>{i.queued=!1,this.$emit()},300)})):!i.show&&i.inview&&!i.queued&&this.repeat&&this.toggle(e,!1)}}],methods:{toggle(t,e){var i;const s=this.elementData.get(t);if(s){if((i=s.off)==null||i.call(s),h(t,"opacity",!e&&this.hidden?0:""),q(t,this.inViewClass,e),q(t,s.cls),/\bbdt-animation-/.test(s.cls)){const n=()=>Yi(t,"bdt-animation-[\\w-]+");e?s.off=L(t,"animationcancel animationend",n):n()}v(t,e?"inview":"outview"),s.inview=e,this.$update(t)}}}},Bl={props:{cls:String,closest:String,scroll:Boolean,overflow:Boolean,offset:Number},data:{cls:"bdt-active",closest:!1,scroll:!1,overflow:!0,offset:0},computed:{links(t,e){return z('a[href*="#"]',e).filter(i=>i.hash&&re(i))},elements({closest:t}){return U(this.links,t||"*")}},watch:{links(t){this.scroll&&this.$create("scroll",t,{offset:this.offset||0})}},observe:[Me(),pi()],update:[{read(){const t=this.links.map(Ri).filter(Boolean),{length:e}=t;if(!e||!j(this.$el))return!1;const[i]=wt(t,!0),{scrollTop:s,scrollHeight:n}=i,o=ct(i),r=n-o.height;let a=!1;if(s===r)a=e-1;else{for(let l=0;l0);l++)a=+l;a===!1&&this.overflow&&(a=0)}return{active:a}},write({active:t}){const e=t!==!1&&!P(this.elements[t],this.cls);this.links.forEach(i=>i.blur());for(let i=0;i
'),this.isFixed=!1,this.setActive(!1)},disconnected(){this.isFixed&&(this.hide(),M(this.selTarget,this.clsInactive)),Un(this.$el),lt(this.placeholder),this.placeholder=null},observe:[pt({target:({$el:t})=>[t,document.documentElement]}),pi()],events:[{name:"resize",el(){return[window,window.visualViewport]},handler(){this.$emit("resize")}},{name:"load hashchange popstate",el(){return window},filter(){return this.targetOffset!==!1},handler(){const{scrollingElement:t}=document;!location.hash||t.scrollTop===0||setTimeout(()=>{const e=_(w(location.hash)),i=_(this.$el);this.isFixed&&Fi(e,i)&&(t.scrollTop=e.top-i.height-ht(this.targetOffset,"height",this.placeholder)-ht(this.offset,"height",this.placeholder))})}},{name:"transitionstart",capture:!0,handler(){this.transitionInProgress=L(this.$el,"transitionend transitioncancel",()=>this.transitionInProgress=null)}}],update:[{read({height:t,width:e,margin:i,sticky:s}){if(this.inactive=!this.matchMedia||!j(this.$el),this.inactive)return;const n=this.isFixed&&!this.transitionInProgress;n&&(Vn(this.selTarget),this.hide()),this.active||({height:t,width:e}=_(this.$el),i=h(this.$el,"margin")),n&&this.show();const o=ht("100vh","height"),r=et(window),a=document.scrollingElement.scrollHeight-o;let l=this.position;this.overflowFlip&&t>o&&(l=l==="top"?"bottom":"top");const c=this.isFixed?this.placeholder:this.$el;let u=ht(this.offset,"height",s?this.$el:c);l==="bottom"&&(t300||n!==o)&&(t.initScroll=r,t.initTimestamp=d),!(this.showOnUp&&!this.isFixed&&Math.abs(t.initScroll-r)<=30&&Math.abs(a-r)<=10))if(this.inactive||rr&&(mt.cancel(this.$el),this.hide());return}this.animation&&r>u?(mt.cancel(this.$el),mt.out(this.$el,this.animation).then(()=>this.hide(),k)):this.hide()}else this.isFixed?this.update():this.animation&&r>u?(mt.cancel(this.$el),this.show(),mt.in(this.$el,this.animation).catch(k)):(Vn(this.selTarget),this.show())},events:["resize","resizeViewport","scroll"]}],methods:{show(){this.isFixed=!0,this.update(),this.placeholder.hidden=!1},hide(){const{offset:t,sticky:e}=this._data;this.setActive(!1),M(this.$el,this.clsFixed,this.clsBelow),e?h(this.$el,"top",t):h(this.$el,{position:"",top:"",width:"",marginTop:""}),this.placeholder.hidden=!0,this.isFixed=!1},update(){let{width:t,scroll:e=0,overflow:i,overflowScroll:s=0,start:n,end:o,offset:r,topOffset:a,height:l,elHeight:c,offsetParentTop:u,sticky:f}=this._data;const d=n!==0||e>n;if(!f){let g="fixed";e>o&&(r+=o-u,g="absolute"),h(this.$el,{position:g,width:t}),h(this.$el,"marginTop",0,"important")}i&&(r-=s),h(this.$el,"top",r),this.setActive(d),q(this.$el,this.clsBelow,e>a+(f?Math.min(l,c):l)),y(this.$el,this.clsFixed)},setActive(t){const e=this.active;this.active=t,t?(Gi(this.selTarget,this.clsInactive,this.clsActive),e!==t&&v(this.$el,"active")):(Gi(this.selTarget,this.clsActive,this.clsInactive),e!==t&&v(this.$el,"inactive"))}}};function vs(t,e,i,s){if(!t)return 0;if(xt(t)||D(t)&&t.match(/^-?\d/))return i+ht(t,"height",e,!0);{const n=t===!0?O(e):at(t,e);return _(n).bottom-(s&&n&&B(e,n)?$(h(n,"paddingBottom")):0)}}function qn(t){return t==="true"?!0:t==="false"?!1:t}function Un(t){h(t,{position:"",top:"",marginTop:"",width:""})}function Vn(t){h(t,"transition","0s"),requestAnimationFrame(()=>h(t,"transition",""))}function Yn(t){return Math.ceil(Math.max(0,...z("[stroke]",t).map(e=>{try{return e.getTotalLength()}catch{return 0}})))}var Nl={mixins:[zn],args:"src",props:{src:String,icon:String,attributes:"list",strokeAnimation:Boolean},data:{strokeAnimation:!1},observe:[kn({async handler(){const t=await this.svg;t&&Gn.call(this,t)},options:{attributes:!0,attributeFilter:["id","class","style"]}})],async connected(){m(this.src,"#")&&([this.src,this.icon]=this.src.split("#"));const t=await this.svg;t&&(Gn.call(this,t),this.strokeAnimation&&Ll(t))},methods:{async getSvg(){return G(this.$el,"img")&&!this.$el.complete&&this.$el.loading==="lazy"?new Promise(t=>L(this.$el,"load",()=>t(this.getSvg()))):Fl(await zl(this.src),this.icon)||Promise.reject("SVG not found.")}}};function Gn(t){const{$el:e}=this;y(t,p(e,"class"),"bdt-svg");for(let i=0;it?ot(t,"data:")?decodeURIComponent(t.split(",")[1]):(await fetch(t)).text():Promise.reject());function Fl(t,e){return e&&m(t,"/g,Hl=dt(function(t){const e={};Xn.lastIndex=0;let i;for(;i=Xn.exec(t);)e[i[3]]=``;return e});function Ll(t){const e=Yn(t);e&&h(t,"--bdt-animation-stroke",e)}const ws=".bdt-disabled *, .bdt-disabled, [disabled]";var Jn={mixins:[Vt],args:"connect",props:{connect:String,toggle:String,itemNav:String,active:Number,followFocus:Boolean,swiping:Boolean},data:{connect:"~.bdt-switcher",toggle:"> * > :first-child",itemNav:!1,active:0,cls:"bdt-active",attrItem:"bdt-switcher-item",selVertical:".bdt-nav",followFocus:!1,swiping:!0},computed:{connects({connect:t},e){return Se(t,e)},connectChildren(){return this.connects.map(t=>T(t)).flat()},toggles({toggle:t},e){return z(t,e)},children(){return T(this.$el).filter(t=>this.toggles.some(e=>B(e,t)))}},watch:{connects(t){this.swiping&&h(t,"touchAction","pan-y pinch-zoom"),this.$emit()},connectChildren(){let t=Math.max(0,this.index());for(const e of this.connects)T(e).forEach((i,s)=>q(i,this.cls,s===t));this.$emit()},toggles(t){this.$emit();const e=this.index();this.show(~e?e:t[this.active]||t[0])}},connected(){p(this.$el,"role","tablist")},observe:[Ne({targets:({connectChildren:t})=>t}),Sn({target:({connects:t})=>t,filter:({swiping:t})=>t})],events:[{name:"click keydown",delegate(){return this.toggle},handler(t){!C(t.current,ws)&&(t.type==="click"||t.keyCode===I.SPACE)&&(t.preventDefault(),this.show(t.current))}},{name:"keydown",delegate(){return this.toggle},handler(t){const{current:e,keyCode:i}=t,s=C(this.$el,this.selVertical);let n=i===I.HOME?0:i===I.END?"last":i===I.LEFT&&!s||i===I.UP&&s?"previous":i===I.RIGHT&&!s||i===I.DOWN&&s?"next":-1;if(~n){t.preventDefault();const o=this.toggles.filter(a=>!C(a,ws)),r=o[rt(n,o,o.indexOf(e))];r.focus(),this.followFocus&&this.show(r)}}},{name:"click",el(){return this.connects.concat(this.itemNav?Se(this.itemNav,this.$el):[])},delegate(){return`[${this.attrItem}],[data-${this.attrItem}]`},handler(t){U(t.target,"a,button")&&(t.preventDefault(),this.show(tt(t.current,this.attrItem)))}},{name:"swipeRight swipeLeft",filter(){return this.swiping},el(){return this.connects},handler({type:t}){this.show(Zt(t,"Left")?"next":"previous")}}],update(){var t;p(this.connects,"role","presentation"),p(T(this.$el),"role","presentation");for(const e in this.toggles){const i=this.toggles[e],s=(t=this.connects[0])==null?void 0:t.children[e];p(i,"role","tab"),s&&(i.id=At(this,i,`-tab-${e}`),s.id=At(this,s,`-tabpanel-${e}`),p(i,"aria-controls",s.id),p(s,{role:"tabpanel","aria-labelledby":i.id}))}p(this.$el,"aria-orientation",C(this.$el,this.selVertical)?"vertical":null)},methods:{index(){return yt(this.children,t=>P(t,this.cls))},show(t){const e=this.toggles.filter(r=>!C(r,ws)),i=this.index(),s=rt(!Ve(t)||m(e,t)?t:0,e,rt(this.toggles[i],e)),n=rt(e[s],this.toggles);this.children.forEach((r,a)=>{q(r,this.cls,n===a),p(this.toggles[a],{"aria-selected":n===a,tabindex:n===a?null:-1})});const o=i>=0&&i!==s;this.connects.forEach(async({children:r})=>{const a=Qt(r).filter((l,c)=>c!==n&&P(l,this.cls));await this.toggleElement(a,!1,o),await this.toggleElement(r[n],!0,o)})}}},Wl={mixins:[st],extends:Jn,props:{media:Boolean},data:{media:960,attrItem:"bdt-tab-item",selVertical:".bdt-tab-left,.bdt-tab-right"},connected(){const t=P(this.$el,"bdt-tab-left")?"bdt-tab-left":P(this.$el,"bdt-tab-right")?"bdt-tab-right":!1;t&&this.$create("toggle",this.$el,{cls:t,mode:"media",media:this.media})}};const Rl=32;var jl={mixins:[yi,Vt],args:"target",props:{href:String,target:null,mode:"list",queued:Boolean},data:{href:!1,target:!1,mode:"click",queued:!0},computed:{target({target:t},e){return t=Se(t||e.hash,e),t.length&&t||[e]}},connected(){m(this.mode,"media")||(Ze(this.$el)||p(this.$el,"tabindex","0"),!this.cls&&G(this.$el,"a")&&p(this.$el,"role","button"))},observe:Ne({target:({target:t})=>t}),events:[{name:vt,filter(){return m(this.mode,"hover")},handler(t){this._preventClick=null,!(!Ct(t)||this._showState||this.$el.disabled)&&(v(this.$el,"focus"),L(document,vt,()=>v(this.$el,"blur"),!0,e=>!B(e.target,this.$el)),m(this.mode,"click")&&(this._preventClick=!0))}},{name:`${Rt} ${ue} focus blur`,filter(){return m(this.mode,"hover")},handler(t){if(Ct(t)||this.$el.disabled)return;const e=m([Rt,"focus"],t.type),i=this.isToggled(this.target);if(!(!e&&(t.type===ue&&C(this.$el,":focus")||t.type==="blur"&&C(this.$el,":hover")))){if(this._showState&&e&&i!==this._showState){e||(this._showState=null);return}this._showState=e?i:null,this.toggle(`toggle${e?"show":"hide"}`)}}},{name:"keydown",filter(){return m(this.mode,"click")&&!G(this.$el,"input")},handler(t){t.keyCode===Rl&&(t.preventDefault(),this.$el.click())}},{name:"click",filter(){return["click","hover"].some(t=>m(this.mode,t))},handler(t){let e;(this._preventClick||U(t.target,'a[href="#"], a[href=""]')||(e=U(t.target,"a[href]"))&&(!this.isToggled(this.target)||e.hash&&C(this.target,e.hash)))&&t.preventDefault(),!this._preventClick&&m(this.mode,"click")&&this.toggle()}},{name:"mediachange",filter(){return m(this.mode,"media")},el(){return this.target},handler(t,e){e.matches^this.isToggled(this.target)&&this.toggle()}}],methods:{async toggle(t){if(!v(this.target,t||"toggle",[this]))return;if(gt(this.$el,"aria-expanded")&&p(this.$el,"aria-expanded",!this.isToggled(this.target)),!this.queued)return this.toggleElement(this.target);const e=this.target.filter(s=>P(s,this.clsLeave));if(e.length){for(const s of this.target){const n=m(e,s);this.toggleElement(s,n,n)}return}const i=this.target.filter(this.isToggled);await this.toggleElement(i,!1)&&await this.toggleElement(this.target.filter(s=>!m(i,s)),!0)}}},ql=Object.freeze({__proto__:null,Accordion:In,Alert:la,Close:tl,Cover:ca,Drop:_n,DropParentIcon:Yt,Dropdown:_n,Dropnav:An,FormCustom:ba,Grid:xa,HeightMatch:Sa,HeightViewport:Ta,Icon:ps,Img:hl,Leader:ml,Margin:Bn,Marker:el,Modal:xl,Nav:kl,NavParentIcon:Ja,Navbar:Sl,NavbarParentIcon:Yt,NavbarToggleIcon:Qa,Offcanvas:Il,OverflowAuto:El,OverlayIcon:Yt,PaginationNext:sl,PaginationPrevious:nl,Responsive:Pl,Scroll:_l,Scrollspy:Dl,ScrollspyNav:Bl,SearchIcon:Ka,SlidenavNext:Hn,SlidenavPrevious:Hn,Spinner:Za,Sticky:Ml,Svg:Nl,Switcher:Jn,Tab:Wl,Toggle:jl,Totop:il,Video:Cn});It(ql,(t,e)=>ft.component(e,t)),Zr(ft);const Ul=["days","hours","minutes","seconds"];var Vl={mixins:[st],props:{date:String,clsWrapper:String,role:String},data:{date:"",clsWrapper:".bdt-countdown-%unit%",role:"timer"},connected(){p(this.$el,"role",this.role),this.date=$(Date.parse(this.$props.date)),this.end=!1,this.start()},disconnected(){this.stop()},events:{name:"visibilitychange",el(){return document},handler(){document.hidden?this.stop():this.start()}},methods:{start(){this.stop(),this.update(),this.timer||(v(this.$el,"countdownstart"),this.timer=setInterval(this.update,1e3))},stop(){this.timer&&(clearInterval(this.timer),v(this.$el,"countdownstop"),this.timer=null)},update(){const t=Yl(this.date);t.total||(this.stop(),this.end||(v(this.$el,"countdownend"),this.end=!0));for(const e of Ul){const i=w(this.clsWrapper.replace("%unit%",e),this.$el);if(!i)continue;let s=String(Math.trunc(t[e]));s=s.length<2?`0${s}`:s,i.textContent!==s&&(s=s.split(""),s.length!==i.children.length&&Nt(i,s.map(()=>"").join("")),s.forEach((n,o)=>i.children[o].textContent=n))}}}};function Yl(t){const e=Math.max(0,t-Date.now())/1e3;return{total:e,seconds:e%60,minutes:e/60%60,hours:e/60/60%24,days:e/60/60/24}}const bs="bdt-transition-leave",$s="bdt-transition-enter";function Kn(t,e,i,s=0){const n=ki(e,!0),o={opacity:1},r={opacity:0},a=u=>()=>n===ki(e)?u():Promise.reject(),l=a(async()=>{y(e,bs),await Promise.all(Qn(e).map((u,f)=>new Promise(d=>setTimeout(()=>E.start(u,r,i/2,"ease").then(d),f*s)))),M(e,bs)}),c=a(async()=>{const u=et(e);y(e,$s),t(),h(T(e),{opacity:0}),await Gl();const f=T(e),d=et(e);h(e,"alignContent","flex-start"),et(e,u);const g=Qn(e);h(f,r);const A=g.map(async(N,F)=>{await Xl(F*s),await E.start(N,o,i/2,"ease")});u!==d&&A.push(E.start(e,{height:d},i/2+g.length*s,"ease")),await Promise.all(A).then(()=>{M(e,$s),n===ki(e)&&(h(e,{height:"",alignContent:""}),h(f,{opacity:""}),delete e.dataset.transition)})});return P(e,bs)?Zn(e).then(c):P(e,$s)?Zn(e).then(l).then(c):l().then(c)}function ki(t,e){return e&&(t.dataset.transition=1+ki(t)),St(t.dataset.transition)||0}function Zn(t){return Promise.all(T(t).filter(E.inProgress).map(e=>new Promise(i=>L(e,"transitionend transitioncanceled",i))))}function Qn(t){return ds(T(t)).reduce((e,i)=>e.concat(Xe(i.filter(s=>ss(s)),"offsetLeft")),[])}function Gl(){return new Promise(t=>requestAnimationFrame(t))}function Xl(t){return new Promise(e=>setTimeout(e,t))}async function Jl(t,e,i){await io();let s=T(e);const n=s.map(d=>to(d,!0)),o={...h(e,["height","padding"]),display:"block"};await Promise.all(s.concat(e).map(E.cancel)),t(),s=s.concat(T(e).filter(d=>!m(s,d))),await Promise.resolve(),J.flush();const r=p(e,"style"),a=h(e,["height","padding"]),[l,c]=Kl(e,s,n),u=s.map(d=>({style:p(d,"style")}));s.forEach((d,g)=>c[g]&&h(d,c[g])),h(e,o),v(e,"scroll"),J.flush(),await io();const f=s.map((d,g)=>O(d)===e&&E.start(d,l[g],i,"ease")).concat(E.start(e,a,i,"ease"));try{await Promise.all(f),s.forEach((d,g)=>{p(d,u[g]),O(d)===e&&h(d,"display",l[g].opacity===0?"none":"")}),p(e,"style",r)}catch{p(s,"style",""),Zl(e,o)}}function to(t,e){const i=h(t,"zIndex");return j(t)?{display:"",opacity:e?h(t,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:i==="auto"?oe(t):i,...eo(t)}:!1}function Kl(t,e,i){const s=e.map((o,r)=>O(o)&&r in i?i[r]?j(o)?eo(o):{opacity:0}:{opacity:j(o)?1:0}:!1),n=s.map((o,r)=>{const a=O(e[r])===t&&(i[r]||to(e[r]));if(!a)return!1;if(!o)delete a.opacity;else if(!("opacity"in o)){const{opacity:l}=a;l%1?o.opacity=1:delete a.opacity}return a});return[s,n]}function Zl(t,e){for(const i in e)h(t,i,"")}function eo(t){const{height:e,width:i}=_(t);return{height:e,width:i,transform:"",...ni(t),...h(t,["marginTop","marginLeft"])}}function io(){return new Promise(t=>requestAnimationFrame(t))}var so={props:{duration:Number,animation:Boolean},data:{duration:150,animation:"slide"},methods:{animate(t,e=this.$el){const i=this.animation;return(i==="fade"?Kn:i==="delayed-fade"?(...n)=>Kn(...n,40):i?Jl:()=>(t(),Promise.resolve()))(t,e,this.duration).catch(k)}}},Ql={mixins:[so],args:"target",props:{target:String,selActive:Boolean},data:{target:"",selActive:!1,attrItem:"bdt-filter-control",cls:"bdt-active",duration:250},computed:{toggles({attrItem:t},e){return z(`[${t}],[data-${t}]`,e)},children({target:t},e){return z(`${t} > *`,e)}},watch:{toggles(t){this.updateState();const e=z(this.selActive,this.$el);for(const i of t){this.selActive!==!1&&q(i,this.cls,m(e,i));const s=oh(i);G(s,"a")&&p(s,"role","button")}},children(t,e){e&&this.updateState()}},events:{name:"click keydown",delegate(){return`[${this.attrItem}],[data-${this.attrItem}]`},handler(t){t.type==="keydown"&&t.keyCode!==I.SPACE||U(t.target,"a,button")&&(t.preventDefault(),this.apply(t.current))}},methods:{apply(t){const e=this.getState(),i=oo(t,this.attrItem,this.getState());th(e,i)||this.setState(i)},getState(){return this.toggles.filter(t=>P(t,this.cls)).reduce((t,e)=>oo(e,this.attrItem,t),{filter:{"":""},sort:[]})},async setState(t,e=!0){t={filter:{"":""},sort:[],...t},v(this.$el,"beforeFilter",[this,t]);for(const i of this.toggles)q(i,this.cls,ih(i,this.attrItem,t));await Promise.all(z(this.target,this.$el).map(i=>{const s=()=>{eh(t,i,T(i)),this.$update(this.$el)};return e?this.animate(s,i):s()})),v(this.$el,"afterFilter",[this])},updateState(){J.write(()=>this.setState(this.getState(),!1))}}};function no(t,e){return De(tt(t,e),["filter"])}function th(t,e){return["filter","sort"].every(i=>Ge(t[i],e[i]))}function eh(t,e,i){const s=sh(t);i.forEach(r=>h(r,"display",s&&!C(r,s)?"none":""));const[n,o]=t.sort;if(n){const r=nh(i,n,o);Ge(r,i)||W(e,r)}}function oo(t,e,i){const{filter:s,group:n,sort:o,order:r="asc"}=no(t,e);return(s||Y(o))&&(n?s?(delete i.filter[""],i.filter[n]=s):(delete i.filter[n],(be(i.filter)||""in i.filter)&&(i.filter={"":s||""})):i.filter={"":s||""}),Y(o)||(i.sort=[o,r]),i}function ih(t,e,{filter:i={"":""},sort:[s,n]}){const{filter:o="",group:r="",sort:a,order:l="asc"}=no(t,e);return Y(a)?r in i&&o===i[r]||!o&&r&&!(r in i)&&!i[""]:s===a&&n===l}function sh({filter:t}){let e="";return It(t,i=>e+=i||""),e}function nh(t,e,i){return[...t].sort((s,n)=>tt(s,e).localeCompare(tt(n,e),void 0,{numeric:!0})*(i==="asc"||-1))}function oh(t){return w("a,button",t)||t}var xs={slide:{show(t){return[{transform:R(t*-100)},{transform:R()}]},percent(t){return He(t)},translate(t,e){return[{transform:R(e*-100*t)},{transform:R(e*100*(1-t))}]}}};function He(t){return Math.abs(h(t,"transform").split(",")[4]/t.offsetWidth)||0}function R(t=0,e="%"){return t+=t?e:"",`translate3d(${t}, 0, 0)`}function pe(t){return`scale3d(${t}, ${t}, 1)`}var ro={...xs,fade:{show(){return[{opacity:0},{opacity:1}]},percent(t){return 1-h(t,"opacity")},translate(t){return[{opacity:1-t},{opacity:t}]}},scale:{show(){return[{opacity:0,transform:pe(1-.2)},{opacity:1,transform:pe(1)}]},percent(t){return 1-h(t,"opacity")},translate(t){return[{opacity:1-t,transform:pe(1-.2*t)},{opacity:t,transform:pe(1-.2+.2*t)}]}}};function rh(t,e,i,{animation:s,easing:n}){const{percent:o,translate:r,show:a=k}=s,l=a(i);let c;return{dir:i,show(u,f=0,d){const g=d?"linear":n;return u-=Math.round(u*Z(f,-1,1)),this.translate(f),Si(e,"itemin",{percent:f,duration:u,timing:g,dir:i}),Si(t,"itemout",{percent:1-f,duration:u,timing:g,dir:i}),new Promise(A=>{c||(c=A),Promise.all([E.start(e,l[1],u,g),E.start(t,l[0],u,g)]).then(()=>{this.reset(),c()},k)})},cancel(){return E.cancel([e,t])},reset(){for(const u in l[0])h([e,t],u,"")},async forward(u,f=this.percent()){return await this.cancel(),this.show(u,f,!0)},translate(u){this.reset();const f=r(u,i);h(e,f[1]),h(t,f[0]),Si(e,"itemtranslatein",{percent:u,dir:i}),Si(t,"itemtranslateout",{percent:1-u,dir:i})},percent(){return o(t||e,e,i)},getDistance(){return t==null?void 0:t.offsetWidth}}}function Si(t,e,i){v(t,Mt(e,!1,!1,i))}var ah={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s",role:"String"},data:{selNav:!1,role:"region"},computed:{nav({selNav:t},e){return w(t,e)},navChildren(){return T(this.nav)},selNavItem({attrItem:t}){return`[${t}],[data-${t}]`},navItems(t,e){return z(this.selNavItem,e)}},watch:{nav(t,e){p(t,"role","tablist"),e&&this.$emit()},list(t){p(t,"role","presentation")},navChildren(t){p(t,"role","presentation")},navItems(t){for(const e of t){const i=tt(e,this.attrItem),s=w("a,button",e)||e;let n,o=null;if(xt(i)){const r=St(i),a=this.slides[r];a&&(a.id||(a.id=At(this,a,`-item-${i}`)),o=a.id),n=this.t("slideX",$(i)+1),p(s,"role","tab")}else this.list&&(this.list.id||(this.list.id=At(this,this.list,"-items")),o=this.list.id),n=this.t(i);p(s,{"aria-controls":o,"aria-label":p(s,"aria-label")||n})}},slides(t){t.forEach((e,i)=>p(e,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",i+1,this.length),"aria-roledescription":this.nav?null:"slide"}))},length(t){const e=this.navChildren.length;if(this.nav&&t!==e){Ji(this.nav);for(let i=0;i`)}}},connected(){p(this.$el,{role:this.role,ariaRoleDescription:"carousel"})},update:[{write(){this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate(){return this.selNavItem},handler(t){U(t.target,"a,button")&&(t.type==="click"||t.keyCode===I.SPACE)&&(t.preventDefault(),this.show(tt(t.current,this.attrItem)))}},{name:"itemshow",handler:"updateNav"},{name:"keydown",delegate(){return this.selNavItem},handler(t){const{current:e,keyCode:i}=t,s=tt(e,this.attrItem);if(!xt(s))return;let n=i===I.HOME?0:i===I.END?"last":i===I.LEFT?"previous":i===I.RIGHT?"next":-1;~n&&(t.preventDefault(),this.show(n))}}],methods:{updateNav(){const t=this.getValidIndex();let e,i;for(const s of this.navItems){const n=tt(s,this.attrItem),o=w("a,button",s)||s;if(xt(n)){const a=St(n)===t;q(s,this.clsActive,a),p(o,{"aria-selected":a,tabindex:a?null:-1}),a&&(i=o),e||(e=C(o,":focus"))}else q(s,"bdt-invisible",this.finite&&(n==="previous"&&t===0||n==="next"&&t>=this.maxIndex));e&&i&&i.focus()}}}};const ys={passive:!1,capture:!0},ao={passive:!0,capture:!0},lh="touchstart mousedown",ks="touchmove mousemove",lo="touchend touchcancel mouseup click input scroll";var hh={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=i=>{const s=ae(i).x*(X?-1:1);this.prevPos=s===this.pos?this.prevPos:this.pos,this.pos=s,e(i)}}},events:[{name:lh,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||!Ct(t)&&ch(t.target)||U(t.target,xe)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:ks,el(){return this.list},handler:k,...ys}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,x(document,ks,this.move,ys),x(document,lo,this.end,ao),h(this.list,"userSelect","none")},move(t){const e=this.pos-this.drag;if(e===0||this.prevPos===this.pos||!this.dragging&&Math.abs(e)r;)this.drag-=r*this.dir,s=o,n-=r,o=this.getIndex(s+this.dir),r=this._getDistance(s,o);this.percent=n/r;const a=i[s],l=i[o],c=this.index!==o,u=s===o;let f;for(const d of[this.index,this.prevIndex])m([o,s],d)||(v(i[d],"itemhidden",[this]),u&&(f=!0,this.prevIndex=s));(this.index===s&&this.prevIndex!==s||f)&&v(i[this.index],"itemshown",[this]),c&&(this.prevIndex=s,this.index=o,!u&&v(a,"beforeitemhide",[this]),v(l,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),a,!u&&l),c&&(!u&&v(a,"itemhide",[this]),v(l,"itemshow",[this]))},end(){if(Bt(document,ks,this.move,ys),Bt(document,lo,this.end,ao),this.dragging)if(this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const t=(X?this.dir*(X?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=t?this.index:this.prevIndex,t&&(this.percent=1-this.percent),this.show(this.dir>0&&!t||this.dir<0&&t?"next":"previous",!0)}h(this.list,{userSelect:"",pointerEvents:""}),this.drag=this.percent=null},_getDistance(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()||this.slides[t].offsetWidth}}};function ch(t){return h(t,"userSelect")!=="none"&&Qt(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}var uh={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){p(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){p(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el(){return document},filter(){return this.autoplay},handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||this.draggable&&C(this.$el,":focus-within")||this.pauseOnHover&&C(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}},ho={mixins:[uh,hh,ah,wi],props:{clsActivated:Boolean,easing:String,index:Number,finite:Boolean,velocity:Number},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"bdt-active",clsActivated:!1,Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){M(this.slides,this.clsActive)},computed:{duration({velocity:t},e){return co(e.offsetWidth/t)},list({selList:t},e){return w(t,e)},maxIndex(){return this.length-1},slides(){return T(this.list)},length(){return this.slides.length}},watch:{slides(t,e){e&&this.$emit()}},observe:pt(),methods:{show(t,e=!1){var i;if(this.dragging||!this.length)return;const{stack:s}=this,n=e?0:s.length,o=()=>{s.splice(n,1),s.length&&this.show(s.shift(),!0)};if(s[e?"unshift":"push"](t),!e&&s.length>1){s.length===2&&((i=this._transitioner)==null||i.forward(Math.min(this.duration,200)));return}const r=this.getIndex(this.index),a=P(this.slides,this.clsActive)&&this.slides[r],l=this.getIndex(t,this.index),c=this.slides[l];if(a===c){o();return}if(this.dir=fh(t,r),this.prevIndex=r,this.index=l,a&&!v(a,"beforeitemhide",[this])||!v(c,"beforeitemshow",[this,a])){this.index=this.prevIndex,o();return}const u=this._show(a,c,e).then(()=>{a&&v(a,"itemhidden",[this]),v(c,"itemshown",[this]),s.shift(),this._transitioner=null,requestAnimationFrame(()=>s.length&&this.show(s.shift(),!0))});return a&&v(a,"itemhide",[this]),v(c,"itemshow",[this]),u},getIndex(t=this.index,e=this.index){return Z(rt(t,this.slides,e,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(t=this.index,e=this.prevIndex){return this.getIndex(t,e)},_show(t,e,i){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:i?e.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing,...this.transitionOptions}),!i&&!t)return this._translate(1),Promise.resolve();const{length:s}=this.stack;return this._transitioner[s>1?"forward":"show"](s>1?Math.min(this.duration,75+75/(s-1)):this.duration,this.percent)},_translate(t,e=this.prevIndex,i=this.index){const s=this._getTransitioner(e===i?!1:e,i);return s.translate(t),s},_getTransitioner(t=this.prevIndex,e=this.index,i=this.dir||1,s=this.transitionOptions){return new this.Transitioner(this.slides[t]||t,this.slides[e]||e,i*(X?-1:1),s)}}};function fh(t,e){return t==="next"?1:t==="previous"||t({preload:1,videoAutoplay:!1,delayControls:3e3,items:[],cls:"bdt-open",clsPage:"bdt-lightbox-page",selList:".bdt-lightbox-items",attrItem:"bdt-lightbox-item",selClose:".bdt-close-large",selCaption:".bdt-lightbox-caption",pauseOnHover:!1,velocity:2,Animations:ro,template:'
    '}),created(){const t=w(this.template),e=w(this.selList,t);this.items.forEach(()=>W(e,"
  • "));const i=w("[bdt-close]",t),s=this.t("close");i&&s&&(i.dataset.i18n=JSON.stringify({label:s})),this.$mount(W(this.container,t))},computed:{caption({selCaption:t},e){return w(t,e)}},events:[{name:`${ri} ${vt} keydown`,handler:"showControls"},{name:"click",self:!0,delegate(){return`${this.selList} > *`},handler(t){t.defaultPrevented||this.hide()}},{name:"shown",self:!0,handler(){this.showControls()}},{name:"hide",self:!0,handler(){this.hideControls(),M(this.slides,this.clsActive),E.stop(this.slides)}},{name:"hidden",self:!0,handler(){this.$destroy(!0)}},{name:"keyup",el(){return document},handler({keyCode:t}){if(!this.isToggled(this.$el)||!this.draggable)return;let e=-1;t===I.LEFT?e="previous":t===I.RIGHT?e="next":t===I.HOME?e=0:t===I.END&&(e="last"),~e&&this.show(e)}},{name:"beforeitemshow",handler(t){this.isToggled()||(this.draggable=!1,t.preventDefault(),this.toggleElement(this.$el,!0,!1),this.animation=ro.scale,M(t.target,this.clsActive),this.stack.splice(1,0,this.index))}},{name:"itemshow",handler(){Nt(this.caption,this.getItem().caption||"");for(let t=-this.preload;t<=this.preload;t++)this.loadItem(this.index+t)}},{name:"itemshown",handler(){this.draggable=this.$props.draggable}},{name:"itemload",async handler(t,e){const{source:i,type:s,alt:n="",poster:o,attrs:r={}}=e;if(this.setItem(e,""),!i)return;let a;const l={allowfullscreen:"",style:"max-width: 100%; box-sizing: border-box;","bdt-responsive":"","bdt-video":`${this.videoAutoplay}`};if(s==="image"||i.match(/\.(avif|jpe?g|jfif|a?png|gif|svg|webp)($|\?)/i)){const c=Le("img",{src:i,alt:n,...r});x(c,"load",()=>this.setItem(e,c)),x(c,"error",()=>this.setError(e))}else if(s==="video"||i.match(/\.(mp4|webm|ogv)($|\?)/i)){const c=Le("video",{src:i,poster:o,controls:"",playsinline:"","bdt-video":`${this.videoAutoplay}`,...r});x(c,"loadedmetadata",()=>this.setItem(e,c)),x(c,"error",()=>this.setError(e))}else if(s==="iframe"||i.match(/\.(html|php)($|\?)/i))this.setItem(e,Le("iframe",{src:i,allowfullscreen:"",class:"bdt-lightbox-iframe",...r}));else if(a=i.match(/\/\/(?:.*?youtube(-nocookie)?\..*?(?:[?&]v=|\/shorts\/)|youtu\.be\/)([\w-]{11})[&?]?(.*)?/))this.setItem(e,Le("iframe",{src:`https://www.youtube${a[1]||""}.com/embed/${a[2]}${a[3]?`?${a[3]}`:""}`,width:1920,height:1080,...l,...r}));else if(a=i.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/))try{const{height:c,width:u}=await(await fetch(`https://vimeo.com/api/oembed.json?maxwidth=1920&url=${encodeURI(i)}`,{credentials:"omit"})).json();this.setItem(e,Le("iframe",{src:`https://player.vimeo.com/video/${a[1]}${a[2]?`?${a[2]}`:""}`,width:u,height:c,...l,...r}))}catch{this.setError(e)}}}],methods:{loadItem(t=this.index){const e=this.getItem(t);this.getSlide(e).childElementCount||v(this.$el,"itemload",[e])},getItem(t=this.index){return this.items[rt(t,this.slides)]},setItem(t,e){v(this.$el,"itemloaded",[this,Nt(this.getSlide(t),e)])},getSlide(t){return this.slides[this.items.indexOf(t)]},setError(t){this.setItem(t,'')},showControls(){clearTimeout(this.controlsTimer),this.controlsTimer=setTimeout(this.hideControls,this.delayControls),y(this.$el,"bdt-active","bdt-transition-active")},hideControls(){M(this.$el,"bdt-active","bdt-transition-active")}}};function Le(t,e){const i=zt(`<${t}>`);return p(i,e),i}var dh={install:ph,props:{toggle:String},data:{toggle:"a"},computed:{toggles({toggle:t},e){return z(t,e)}},watch:{toggles(t){this.hide();for(const e of t)G(e,"a")&&p(e,"role","button")}},disconnected(){this.hide()},events:{name:"click",delegate(){return`${this.toggle}:not(.bdt-disabled)`},handler(t){t.preventDefault(),this.show(t.current)}},methods:{show(t){const e=Ps(this.toggles.map(po),"source");if(ee(t)){const{source:i}=po(t);t=yt(e,({source:s})=>i===s)}return this.panel=this.panel||this.$create("lightboxPanel",{...this.$props,items:e}),x(this.panel.$el,"hidden",()=>this.panel=null),this.panel.show(t)},hide(){var t;return(t=this.panel)==null?void 0:t.hide()}}};function ph(t,e){t.lightboxPanel||t.component("lightboxPanel",fo),$t(e.props,t.component("lightboxPanel").options.props)}function po(t){const e={};for(const i of["href","caption","type","poster","alt","attrs"])e[i==="href"?"source":i]=tt(t,i);return e.attrs=De(e.attrs),e}var gh={mixins:[ze],functional:!0,args:["message","status"],data:{message:"",status:"",timeout:5e3,group:null,pos:"top-center",clsContainer:"bdt-notification",clsClose:"bdt-notification-close",clsMsg:"bdt-notification-message"},install:mh,computed:{marginProp({pos:t}){return`margin${ot(t,"top")?"Top":"Bottom"}`},startProps(){return{opacity:0,[this.marginProp]:-this.$el.offsetHeight}}},created(){const t=w(`.${this.clsContainer}-${this.pos}`,this.container)||W(this.container,`
    `);this.$mount(W(t,``))},async connected(){const t=$(h(this.$el,this.marginProp));await E.start(h(this.$el,this.startProps),{opacity:1,[this.marginProp]:t}),this.timeout&&(this.timer=setTimeout(this.close,this.timeout))},events:{click(t){U(t.target,'a[href="#"],a[href=""]')&&t.preventDefault(),this.close()},[Rt](){this.timer&&clearTimeout(this.timer)},[ue](){this.timeout&&(this.timer=setTimeout(this.close,this.timeout))}},methods:{async close(t){const e=i=>{const s=O(i);v(i,"close",[this]),lt(i),s!=null&&s.hasChildNodes()||lt(s)};this.timer&&clearTimeout(this.timer),t||await E.start(this.$el,this.startProps),e(this.$el)}}};function mh(t){t.notification.closeAll=function(e,i){Tt(document.body,s=>{const n=t.getComponent(s,"notification");n&&(!e||e===n.group)&&n.close(i)})}}const Ii={x:Ci,y:Ci,rotate:Ci,scale:Ci,color:Ss,backgroundColor:Ss,borderColor:Ss,blur:Xt,hue:Xt,fopacity:Xt,grayscale:Xt,invert:Xt,saturate:Xt,sepia:Xt,opacity:wh,stroke:bh,bgx:vo,bgy:vo},{keys:go}=Object;var mo={mixins:[yi],props:xo(go(Ii),"list"),data:xo(go(Ii),void 0),computed:{props(t,e){const i={};for(const n in t)n in Ii&&!Y(t[n])&&(i[n]=t[n].slice());const s={};for(const n in i)s[n]=Ii[n](n,e,i[n],i);return s}},events:{load(){this.$emit()}},methods:{reset(){for(const t in this.getCss(0))h(this.$el,t,"")},getCss(t){const e={transform:"",filter:""};for(const i in this.props)this.props[i](e,Z(t));return e.willChange=Object.keys(e).filter(i=>e[i]!=="").map(Qe).join(","),e}}};function Ci(t,e,i){let s=Ei(i)||{x:"px",y:"px",rotate:"deg"}[t]||"",n;return t==="x"||t==="y"?(t=`translate${Et(t)}`,n=o=>$($(o).toFixed(s==="px"?0:6))):t==="scale"&&(s="",n=o=>Ei([o])?ht(o,"width",e,!0)/e.offsetWidth:o),i.length===1&&i.unshift(t==="scale"?1:0),i=ge(i,n),(o,r)=>{o.transform+=` ${t}(${We(i,r)}${s})`}}function Ss(t,e,i){return i.length===1&&i.unshift(Re(e,t,"")),i=ge(i,s=>vh(e,s)),(s,n)=>{const[o,r,a]=$o(i,n),l=o.map((c,u)=>(c+=a*(r[u]-c),u===3?$(c):parseInt(c,10))).join(",");s[t]=`rgba(${l})`}}function vh(t,e){return Re(t,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map($)}function Xt(t,e,i){i.length===1&&i.unshift(0);const s=Ei(i)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,i=ge(i),(n,o)=>{const r=We(i,o);n.filter+=` ${t}(${r+s})`}}function wh(t,e,i){return i.length===1&&i.unshift(Re(e,t,"")),i=ge(i),(s,n)=>{s[t]=We(i,n)}}function bh(t,e,i){i.length===1&&i.unshift(0);const s=Ei(i),n=Yn(e);return i=ge(i.reverse(),o=>(o=$(o),s==="%"?o*n/100:o)),i.some(([o])=>o)?(h(e,"strokeDasharray",n),(o,r)=>{o.strokeDashoffset=We(i,r)}):k}function vo(t,e,i,s){i.length===1&&i.unshift(0);const n=t==="bgy"?"height":"width";s[t]=ge(i,a=>ht(a,n,e));const o=["bgx","bgy"].filter(a=>a in s);if(o.length===2&&t==="bgx")return k;if(Re(e,"backgroundSize","")==="cover")return $h(t,e,i,s);const r={};for(const a of o)r[a]=wo(e,a);return bo(o,r,s)}function $h(t,e,i,s){const n=xh(e);if(!n.width)return k;const o={width:e.offsetWidth,height:e.offsetHeight},r=["bgx","bgy"].filter(u=>u in s),a={};for(const u of r){const f=s[u].map(([F])=>F),d=Math.min(...f),g=Math.max(...f),A=f.indexOf(d){c(u,f),u.backgroundSize=`${l.width}px ${l.height}px`,u.backgroundRepeat="no-repeat"}}function wo(t,e){return Re(t,`background-position-${e.substr(-1)}`,"")}function bo(t,e,i){return function(s,n){for(const o of t){const r=We(i[o],n);s[`background-position-${o.substr(-1)}`]=`calc(${e[o]} + ${r}px)`}}}const Ti={};function xh(t){const e=h(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(Ti[e])return Ti[e];const i=new Image;return e&&(i.src=e,!i.naturalWidth)?(i.onload=()=>{Ti[e]=Is(i),v(t,Mt("load",!1))},Is(i)):Ti[e]=Is(i)}function Is(t){return{width:t.naturalWidth,height:t.naturalHeight}}function ge(t,e=$){const i=[],{length:s}=t;let n=0;for(let o=0;o0;u--)i[o-u][1]=l+c*(n-u+1);n=0}}return i}function $o(t,e){const i=yt(t.slice(1),([,s])=>e<=s)+1;return[t[i-1][0],t[i][0],(e-t[i-1][1])/(t[i][1]-t[i-1][1])]}function We(t,e){const[i,s,n]=$o(t,e);return Ye(i)?i+Math.abs(i-s)*n*(i(i[s]=e,i),{})}var kh={mixins:[mo],props:{target:String,viewport:Number,easing:Number,start:String,end:String},data:{target:!1,viewport:1,easing:1,start:0,end:0},computed:{target({target:t},e){return yo(t&&at(t,e)||e)},start({start:t}){return ht(t,"height",this.target,!0)},end({end:t,viewport:e}){return ht(t||(e=(1-e)*100)&&`${e}vh+${e}%`,"height",this.target,!0)}},observe:[pt({target:({$el:t,target:e})=>[t,e]}),pi()],update:{read({percent:t},e){if(e.has("scroll")||(t=!1),!j(this.$el))return!1;if(!this.matchMedia)return;const i=t;return t=Sh(ns(this.target,this.start,this.end),this.easing),{percent:t,style:i===t?!1:this.getCss(t)}},write({style:t}){if(!this.matchMedia){this.reset();return}t&&h(this.$el,t)},events:["scroll","resize"]}};function Sh(t,e){return e>=0?Math.pow(t,e+1):1-Math.pow(1-t,1-e)}function yo(t){return t?"offsetTop"in t?t:yo(O(t)):document.documentElement}var ko={update:{write(){if(this.stack.length||this.dragging)return;const t=this.getValidIndex(this.index);!~this.prevIndex||this.index!==t?this.show(t):this._translate(1,this.prevIndex,this.index)},events:["resize"]}},So={observe:Ne({target:({slides:t})=>t,targets:t=>t.getAdjacentSlides()})};function Ih(t,e,i,{center:s,easing:n,list:o}){const r=t?je(t,o,s):je(e,o,s)+b(e).width*i,a=e?je(e,o,s):r+b(t).width*i*(X?-1:1);let l;return{dir:i,show(c,u=0,f){const d=f?"linear":n;return c-=Math.round(c*Z(u,-1,1)),this.translate(u),u=t?u:Z(u,0,1),Cs(this.getItemIn(),"itemin",{percent:u,duration:c,timing:d,dir:i}),t&&Cs(this.getItemIn(!0),"itemout",{percent:1-u,duration:c,timing:d,dir:i}),new Promise(g=>{l||(l=g),E.start(o,{transform:R(-a*(X?-1:1),"px")},c,d).then(l,k)})},cancel(){return E.cancel(o)},reset(){h(o,"transform","")},async forward(c,u=this.percent()){return await this.cancel(),this.show(c,u,!0)},translate(c){const u=this.getDistance()*i*(X?-1:1);h(o,"transform",R(Z(-a+(u-u*c),-Pi(o),b(o).width)*(X?-1:1),"px"));const f=this.getActives(),d=this.getItemIn(),g=this.getItemIn(!0);c=t?Z(c,-1,1):0;for(const A of T(o)){const N=m(f,A),F=A===d,Ot=A===g,Ts=F||!Ot&&(N||i*(X?-1:1)===-1^_i(A,o)>_i(t||e));Cs(A,`itemtranslate${Ts?"in":"out"}`,{dir:i,percent:Ot?1-c:F?c:N?1:0})}},percent(){return Math.abs((h(o,"transform").split(",")[4]*(X?-1:1)+r)/(a-r))},getDistance(){return Math.abs(a-r)},getItemIn(c=!1){let u=this.getActives(),f=Co(o,je(e||t,o,s));if(c){const d=u;u=f,f=d}return f[yt(f,d=>!m(u,d))]},getActives(){return Co(o,je(t||e,o,s))}}}function je(t,e,i){const s=_i(t,e);return i?s-Ch(t,e):Math.min(s,Io(e))}function Io(t){return Math.max(0,Pi(t)-b(t).width)}function Pi(t){return Dt(T(t),e=>b(e).width)}function Ch(t,e){return b(e).width/2-b(t).width/2}function _i(t,e){return t&&(ni(t).left+(X?b(t).width-b(e).width:0))*(X?-1:1)||0}function Co(t,e){e-=1;const i=b(t).width,s=e+i+2;return T(t).filter(n=>{const o=_i(n,t),r=o+Math.min(b(n).width,i);return o>=e&&r<=s})}function Cs(t,e,i){v(t,Mt(e,!1,!1,i))}var Th={mixins:[st,ho,ko,So],props:{center:Boolean,sets:Boolean},data:{center:!1,sets:!1,attrItem:"bdt-slider-item",selList:".bdt-slider-items",selNav:".bdt-slider-nav",clsContainer:"bdt-slider-container",Transitioner:Ih},computed:{avgWidth(){return Pi(this.list)/this.length},finite({finite:t}){return t||Eh(this.list,this.center)},maxIndex(){if(!this.finite||this.center&&!this.sets)return this.length-1;if(this.center)return se(this.sets);let t=0;const e=Io(this.list),i=yt(this.slides,s=>{if(t>=e)return!0;t+=b(s).width});return~i?i:this.length-1},sets({sets:t}){if(!t)return;let e=0;const i=[],s=b(this.list).width;for(let n=0;ns&&(e=0),this.center?es/2&&(i.push(+n),e=s/2-o/2):e===0&&i.push(Math.min(+n,this.maxIndex)),e+=o}if(i.length)return i},transitionOptions(){return{center:this.center,list:this.list}},slides(){return T(this.list).filter(j)}},connected(){q(this.$el,this.clsContainer,!w(`.${this.clsContainer}`,this.$el))},observe:pt({target:({slides:t})=>t}),update:{write(){for(const t of this.navItems){const e=St(tt(t,this.attrItem));e!==!1&&(t.hidden=!this.maxIndex||e>this.maxIndex||this.sets&&!m(this.sets,e))}this.length&&!this.dragging&&!this.stack.length&&(this.reorder(),this._translate(1)),this.updateActiveClasses()},events:["resize"]},events:{beforeitemshow(t){!this.dragging&&this.sets&&this.stack.length<2&&!m(this.sets,this.index)&&(this.index=this.getValidIndex());const e=Math.abs(this.index-this.prevIndex+(this.dir>0&&this.indexthis.prevIndex?(this.maxIndex+1)*this.dir:0));if(!this.dragging&&e>1){for(let s=0;s0?"next":"previous");t.preventDefault();return}const i=this.dir<0||!this.slides[this.prevIndex]?this.index:this.prevIndex;this.duration=co(this.avgWidth/this.velocity)*(b(this.slides[i]).width/this.avgWidth),this.reorder()},itemshow(){~this.prevIndex&&y(this._getTransitioner().getItemIn(),this.clsActive)},itemshown(){this.updateActiveClasses()}},methods:{reorder(){if(this.finite){h(this.slides,"order","");return}const t=this.dir>0&&this.slides[this.prevIndex]?this.prevIndex:this.index;if(this.slides.forEach((n,o)=>h(n,"order",this.dir>0&&o=this.index?-1:"")),!this.center)return;const e=this.slides[t];let i=b(this.list).width/2-b(e).width/2,s=0;for(;i>0;){const n=this.getIndex(--s+t,t),o=this.slides[n];h(o,"order",n>t?-2:-1),i-=b(o).width}},updateActiveClasses(){const t=this._getTransitioner(this.index).getActives(),e=[this.clsActive,(!this.sets||m(this.sets,$(this.index)))&&this.clsActivated||""];for(const i of this.slides){const s=m(t,i);q(i,e,s),p(i,"aria-hidden",!s);for(const n of z(ye,i))bt(n,"_tabindex")||(n._tabindex=p(n,"tabindex")),p(n,"tabindex",s?n._tabindex:-1)}},getValidIndex(t=this.index,e=this.prevIndex){if(t=this.getIndex(t,e),!this.sets)return t;let i;do{if(m(this.sets,t))return t;i=t,t=this.getIndex(t+this.dir,e)}while(t!==i);return t},getAdjacentSlides(){const{width:t}=b(this.list),e=-t,i=t*2,s=b(this.slides[this.index]).width,n=this.center?t/2-s/2:0,o=new Set;for(const r of[-1,1]){let a=n+(r>0?s:0),l=0;do{const c=this.slides[this.getIndex(this.index+r+l++*r)];a+=b(c).width*r,o.add(c)}while(this.length>l&&a>e&&aDt(s.filter(u=>!l.has(u)),u=>b(u).width))return!0}return!1}function Ph(t){return Math.max(0,...T(t).map(e=>b(e).width))}var To={mixins:[mo],data:{selItem:"!li"},beforeConnect(){this.item=at(this.selItem,this.$el)},disconnected(){this.item=null},events:[{name:"itemin itemout",self:!0,el(){return this.item},handler({type:t,detail:{percent:e,duration:i,timing:s,dir:n}}){J.read(()=>{if(!this.matchMedia)return;const o=this.getCss(Po(t,n,e)),r=this.getCss(Eo(t)?.5:n>0?1:0);J.write(()=>{h(this.$el,o),E.start(this.$el,r,i,s).catch(k)})})}},{name:"transitioncanceled transitionend",self:!0,el(){return this.item},handler(){E.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el(){return this.item},handler({type:t,detail:{percent:e,dir:i}}){J.read(()=>{if(!this.matchMedia){this.reset();return}const s=this.getCss(Po(t,i,e));J.write(()=>h(this.$el,s))})}}]};function Eo(t){return Zt(t,"in")}function Po(t,e,i){return i/=2,Eo(t)^e<0?i:1-i}var _h={...xs,fade:{show(){return[{opacity:0,zIndex:0},{zIndex:-1}]},percent(t){return 1-h(t,"opacity")},translate(t){return[{opacity:1-t,zIndex:0},{zIndex:-1}]}},scale:{show(){return[{opacity:0,transform:pe(1+.5),zIndex:0},{zIndex:-1}]},percent(t){return 1-h(t,"opacity")},translate(t){return[{opacity:1-t,transform:pe(1+.5*t),zIndex:0},{zIndex:-1}]}},pull:{show(t){return t<0?[{transform:R(30),zIndex:-1},{transform:R(),zIndex:0}]:[{transform:R(-100),zIndex:0},{transform:R(),zIndex:-1}]},percent(t,e,i){return i<0?1-He(e):He(t)},translate(t,e){return e<0?[{transform:R(30*t),zIndex:-1},{transform:R(-100*(1-t)),zIndex:0}]:[{transform:R(-t*100),zIndex:0},{transform:R(30*(1-t)),zIndex:-1}]}},push:{show(t){return t<0?[{transform:R(100),zIndex:0},{transform:R(),zIndex:-1}]:[{transform:R(-30),zIndex:-1},{transform:R(),zIndex:0}]},percent(t,e,i){return i>0?1-He(e):He(t)},translate(t,e){return e<0?[{transform:R(t*100),zIndex:0},{transform:R(-30*(1-t)),zIndex:-1}]:[{transform:R(-30*t),zIndex:-1},{transform:R(100*(1-t)),zIndex:0}]}}},Ah={mixins:[st,uo,ko,So],props:{ratio:String,minHeight:Number,maxHeight:Number},data:{ratio:"16:9",minHeight:!1,maxHeight:!1,selList:".bdt-slideshow-items",attrItem:"bdt-slideshow-item",selNav:".bdt-slideshow-nav",Animations:_h},update:{read(){if(!this.list)return!1;let[t,e]=this.ratio.split(":").map(Number);return e=e*this.list.offsetWidth/t||0,this.minHeight&&(e=Math.max(this.minHeight,e)),this.maxHeight&&(e=Math.min(this.maxHeight,e)),{height:e-le(this.list,"height","content-box")}},write({height:t}){t>0&&h(this.list,"minHeight",t)},events:["resize"]},methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}},Oh={mixins:[st,so],props:{group:String,threshold:Number,clsItem:String,clsPlaceholder:String,clsDrag:String,clsDragState:String,clsBase:String,clsNoDrag:String,clsEmpty:String,clsCustom:String,handle:String},data:{group:!1,threshold:5,clsItem:"bdt-sortable-item",clsPlaceholder:"bdt-sortable-placeholder",clsDrag:"bdt-sortable-drag",clsDragState:"bdt-drag",clsBase:"bdt-sortable",clsNoDrag:"bdt-sortable-nodrag",clsEmpty:"bdt-sortable-empty",clsCustom:"",handle:!1,pos:{}},created(){for(const t of["init","start","move","end"]){const e=this[t];this[t]=i=>{$t(this.pos,ae(i)),e(i)}}},events:{name:vt,passive:!1,handler:"init"},computed:{target(){return(this.$el.tBodies||[this.$el])[0]},items(){return T(this.target)},isEmpty(){return be(this.items)},handles({handle:t},e){return t?z(t,e):this.items}},watch:{isEmpty(t){q(this.target,this.clsEmpty,t)},handles(t,e){h(e,{touchAction:"",userSelect:""}),h(t,{touchAction:Wt?"none":"",userSelect:"none"})}},update:{write(t){if(!this.drag||!O(this.placeholder))return;const{pos:{x:e,y:i},origin:{offsetTop:s,offsetLeft:n},placeholder:o}=this;h(this.drag,{top:i-s,left:e-n});const r=this.getSortable(document.elementFromPoint(e,i));if(!r)return;const{items:a}=r;if(a.some(E.inProgress))return;const l=Nh(a,{x:e,y:i});if(a.length&&(!l||l===o))return;const c=this.getSortable(o),u=zh(r.target,l,o,e,i,r===c&&t.moved!==l);u!==!1&&(u&&o===u||(r!==c?(c.remove(o),t.moved=l):delete t.moved,r.insert(o,u),this.touched.add(r)))},events:["move"]},methods:{init(t){const{target:e,button:i,defaultPrevented:s}=t,[n]=this.items.filter(o=>B(e,o));!n||s||i>0||Wi(e)||B(e,`.${this.clsNoDrag}`)||this.handle&&!B(e,this.handle)||(t.preventDefault(),this.touched=new Set([this]),this.placeholder=n,this.origin={target:e,index:oe(n),...this.pos},x(document,ri,this.move),x(document,_t,this.end),this.threshold||this.start(t))},start(t){this.drag=Mh(this.$container,this.placeholder);const{left:e,top:i}=this.placeholder.getBoundingClientRect();$t(this.origin,{offsetLeft:this.pos.x-e,offsetTop:this.pos.y-i}),y(this.drag,this.clsDrag,this.clsCustom),y(this.placeholder,this.clsPlaceholder),y(this.items,this.clsItem),y(document.documentElement,this.clsDragState),v(this.$el,"start",[this,this.placeholder]),Dh(this.pos),this.move(t)},move(t){this.drag?this.$emit("move"):(Math.abs(this.pos.x-this.origin.x)>this.threshold||Math.abs(this.pos.y-this.origin.y)>this.threshold)&&this.start(t)},end(){if(Bt(document,ri,this.move),Bt(document,_t,this.end),!this.drag)return;Bh();const t=this.getSortable(this.placeholder);this===t?this.origin.index!==oe(this.placeholder)&&v(this.$el,"moved",[this,this.placeholder]):(v(t.$el,"added",[t,this.placeholder]),v(this.$el,"removed",[this,this.placeholder])),v(this.$el,"stop",[this,this.placeholder]),lt(this.drag),this.drag=null;for(const{clsPlaceholder:e,clsItem:i}of this.touched)for(const s of this.touched)M(s.items,e,i);this.touched=null,M(document.documentElement,this.clsDragState)},insert(t,e){y(this.items,this.clsItem);const i=()=>e?ti(e,t):W(this.target,t);this.animate(i)},remove(t){B(t,this.target)&&this.animate(()=>lt(t))},getSortable(t){do{const e=this.$getComponent(t,"sortable");if(e&&(e===this||this.group!==!1&&e.group===this.group))return e}while(t=O(t))}}};let _o;function Dh(t){let e=Date.now();_o=setInterval(()=>{let{x:i,y:s}=t;s+=document.scrollingElement.scrollTop;const n=(Date.now()-e)*.3;e=Date.now(),wt(document.elementFromPoint(i,t.y)).reverse().some(o=>{let{scrollTop:r,scrollHeight:a}=o;const{top:l,bottom:c,height:u}=ct(o);if(ls)r-=n;else if(c>s&&c-350&&r"),W(i,e.cloneNode(!0).children);for(const s of e.getAttributeNames())p(i,s,e.getAttribute(s))}else i=e.cloneNode(!0);return W(t,i),h(i,"margin","0","important"),h(i,{boxSizing:"border-box",width:e.offsetWidth,height:e.offsetHeight,padding:h(e,"padding")}),et(i.firstElementChild,et(e.firstElementChild)),i}function Nh(t,e){return t[yt(t,i=>Je(e,i.getBoundingClientRect()))]}function zh(t,e,i,s,n,o){if(!T(t).length)return;const r=e.getBoundingClientRect();if(!o)return Fh(t,i)||nr[d]-g?!1:e}function Fh(t,e){const i=T(t).length===1;i&&W(t,e);const s=T(t),n=s.some((o,r)=>{const a=o.getBoundingClientRect();return s.slice(r+1).some(l=>{const c=l.getBoundingClientRect();return!Ao([a.left,a.right],[c.left,c.right])})});return i&<(e),n}function Ao(t,e){return t[1]>e[0]&&e[1]>t[0]}var Hh={mixins:[ze,Vt,En],args:"title",props:{delay:Number,title:String},data:{pos:"top",title:"",delay:0,animation:["bdt-animation-scale-up"],duration:100,cls:"bdt-active"},beforeConnect(){this.id=At(this,{}),this._hasTitle=gt(this.$el,"title"),p(this.$el,{title:"","aria-describedby":this.id}),Lh(this.$el)},disconnected(){this.hide(),p(this.$el,"title")||p(this.$el,"title",this._hasTitle?this.title:null)},methods:{show(){this.isToggled(this.tooltip||null)||!this.title||(clearTimeout(this.showTimer),this.showTimer=setTimeout(this._show,this.delay))},async hide(){C(this.$el,"input:focus")||(clearTimeout(this.showTimer),this.isToggled(this.tooltip||null)&&await this.toggleElement(this.tooltip,!1,!1),lt(this.tooltip),this.tooltip=null)},async _show(){this.tooltip=W(this.container,``),x(this.tooltip,"toggled",(t,e)=>{if(!e)return;const i=()=>this.positionAt(this.tooltip,this.$el);i();const[s,n]=Wh(this.tooltip,this.$el,this.pos);this.origin=this.axis==="y"?`${oi(s)}-${n}`:`${n}-${oi(s)}`;const o=[L(document,`keydown ${vt}`,this.hide,!1,r=>r.type===vt&&!B(r.target,this.$el)||r.type==="keydown"&&r.keyCode===I.ESC),x([document,...jt(this.$el)],"scroll",i,{passive:!0})];L(this.tooltip,"hide",()=>o.forEach(r=>r()),{self:!0})}),await this.toggleElement(this.tooltip,!0)||this.hide()}},events:{focus:"show",blur:"hide",[`${Rt} ${ue}`](t){Ct(t)||this[t.type===Rt?"show":"hide"]()},[vt](t){Ct(t)&&this.show()}}};function Lh(t){Ze(t)||p(t,"tabindex","0")}function Wh(t,e,[i,s]){const n=_(t),o=_(e),r=[["left","right"],["top","bottom"]];for(const l of r){if(n[l[0]]>=o[l[1]]){i=l[1];break}if(n[l[1]]<=o[l[0]]){i=l[0];break}}const a=m(r[0],i)?r[1]:r[0];return n[a[0]]===o[a[0]]?s=a[0]:n[a[1]]===o[a[1]]?s=a[1]:s="center",[i,s]}var Rh={mixins:[wi],i18n:{invalidMime:"Invalid File Type: %s",invalidName:"Invalid File Name: %s",invalidSize:"Invalid File Size: %s Kilobytes Max"},props:{allow:String,clsDragover:String,concurrent:Number,maxSize:Number,method:String,mime:String,multiple:Boolean,name:String,params:Object,type:String,url:String},data:{allow:!1,clsDragover:"bdt-dragover",concurrent:1,maxSize:0,method:"POST",mime:!1,multiple:!1,name:"files[]",params:{},type:"",url:"",abort:k,beforeAll:k,beforeSend:k,complete:k,completeAll:k,error:k,fail:k,load:k,loadEnd:k,loadStart:k,progress:k},events:{change(t){C(t.target,'input[type="file"]')&&(t.preventDefault(),t.target.files&&this.upload(t.target.files),t.target.value="")},drop(t){Ai(t);const e=t.dataTransfer;e!=null&&e.files&&(M(this.$el,this.clsDragover),this.upload(e.files))},dragenter(t){Ai(t)},dragover(t){Ai(t),y(this.$el,this.clsDragover)},dragleave(t){Ai(t),M(this.$el,this.clsDragover)}},methods:{async upload(t){if(t=Qt(t),!t.length)return;v(this.$el,"upload",[t]);for(const s of t){if(this.maxSize&&this.maxSize*1e3{const n=new FormData;s.forEach(o=>n.append(this.name,o));for(const o in this.params)n.append(o,this.params[o]);try{const o=await qh(this.url,{data:n,method:this.method,responseType:this.type,beforeSend:r=>{const{xhr:a}=r;x(a.upload,"progress",this.progress);for(const l of["loadStart","load","loadEnd","abort"])x(a,l.toLowerCase(),this[l]);return this.beforeSend(r)}});this.complete(o),e.length?await i(e.shift()):this.completeAll(o)}catch(o){this.error(o)}};await i(e.shift())}}};function Oo(t,e){return e.match(new RegExp(`^${t.replace(/\//g,"\\/").replace(/\*\*/g,"(\\/[^\\/]+)*").replace(/\*/g,"[^\\/]+").replace(/((?!\\))\?/g,"$1.")}$`,"i"))}function jh(t,e){const i=[];for(let s=0;si.beforeSend(i)).then(()=>Uh(t,i))}function Uh(t,e){return new Promise((i,s)=>{const{xhr:n}=e;for(const o in e)if(o in n)try{n[o]=e[o]}catch{}n.open(e.method.toUpperCase(),t);for(const o in e.headers)n.setRequestHeader(o,e.headers[o]);x(n,"load",()=>{n.status===0||n.status>=200&&n.status<300||n.status===304?i(n):s($t(Error(n.statusText),{xhr:n,status:n.status}))}),x(n,"error",()=>s($t(Error("Network Error"),{xhr:n}))),x(n,"timeout",()=>s($t(Error("Network Timeout"),{xhr:n}))),n.send(e.data)})}var Vh=Object.freeze({__proto__:null,Countdown:Vl,Filter:Ql,Lightbox:dh,LightboxPanel:fo,Notification:gh,Parallax:kh,Slider:Th,SliderParallax:To,Slideshow:Ah,SlideshowParallax:To,Sortable:Oh,Tooltip:Hh,Upload:Rh});return It(Vh,(t,e)=>ft.component(e,t)),ft});