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