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