(function(me,ve){typeof exports=="object"&&typeof module<"u"?module.exports=ve():typeof define=="function"&&define.amd?define("uikit",ve):(me=typeof globalThis<"u"?globalThis:me||self,me.bdtUIkit=ve())})(this,function(){"use strict";const{hasOwnProperty:me,toString:ve}=Object.prototype;function bt(t,e){return me.call(t,e)}const zo=/\B([A-Z])/g,Kt=dt(t=>t.replace(zo,"-$1").toLowerCase()),Fo=/-(\w)/g,we=dt(t=>(t.charAt(0).toLowerCase()+t.slice(1)).replace(Fo,(e,i)=>i.toUpperCase())),Et=dt(t=>t.charAt(0).toUpperCase()+t.slice(1));function ot(t,e){var i;return(i=t==null?void 0:t.startsWith)==null?void 0:i.call(t,e)}function Zt(t,e){var i;return(i=t==null?void 0:t.endsWith)==null?void 0:i.call(t,e)}function m(t,e){var i;return(i=t==null?void 0:t.includes)==null?void 0:i.call(t,e)}function yt(t,e){var i;return(i=t==null?void 0:t.findIndex)==null?void 0:i.call(t,e)}const{isArray:Q,from:Qt}=Array,{assign:$t}=Object;function it(t){return typeof t=="function"}function Pt(t){return t!==null&&typeof t=="object"}function kt(t){return ve.call(t)==="[object Object]"}function te(t){return Pt(t)&&t===t.window}function Ue(t){return Di(t)===9}function Ve(t){return Di(t)>=1}function ee(t){return Di(t)===1}function Di(t){return!te(t)&&Pt(t)&&t.nodeType}function Bi(t){return typeof t=="boolean"}function D(t){return typeof t=="string"}function Ye(t){return typeof t=="number"}function xt(t){return Ye(t)||D(t)&&!isNaN(t-parseFloat(t))}function be(t){return!(Q(t)?t.length:Pt(t)&&Object.keys(t).length)}function Y(t){return t===void 0}function Mi(t){return Bi(t)?t:t==="true"||t==="1"||t===""?!0:t==="false"||t==="0"?!1:t}function St(t){const e=Number(t);return isNaN(e)?!1:e}function $(t){return parseFloat(t)||0}function H(t){return S(t)[0]}function S(t){return Ve(t)?[t]:Array.from(t||[]).filter(Ve)}function ie(t){if(te(t))return t;t=H(t);const e=Ue(t)?t:t==null?void 0:t.ownerDocument;return(e==null?void 0:e.defaultView)||window}function Ge(t,e){return t===e||Pt(t)&&Pt(e)&&Object.keys(t).length===Object.keys(e).length&&It(t,(i,s)=>i===e[s])}function Ni(t,e,i){return t.replace(new RegExp(`${e}|${i}`,"g"),s=>s===e?i:e)}function se(t){return t[t.length-1]}function It(t,e){for(const i in t)if(e(t[i],i)===!1)return!1;return!0}function Xe(t,e){return t.slice().sort(({[e]:i=0},{[e]:s=0})=>i>s?1:s>i?-1:0)}function Dt(t,e){return t.reduce((i,s)=>i+$(it(e)?e(s):s[e]),0)}function Ps(t,e){const i=new Set;return t.filter(({[e]:s})=>i.has(s)?!1:i.add(s))}function zi(t,e){return e.reduce((i,s)=>({...i,[s]:t[s]}),{})}function Z(t,e=0,i=1){return Math.min(Math.max(St(t)||0,e),i)}function k(){}function Fi(...t){return[["bottom","top"],["right","left"]].every(([e,i])=>Math.min(...t.map(({[e]:s})=>s))-Math.max(...t.map(({[i]:s})=>s))>0)}function Je(t,e){return t.x<=e.right&&t.x>=e.left&&t.y<=e.bottom&&t.y>=e.top}function Hi(t,e,i){const s=e==="width"?"height":"width";return{[s]:t[e]?Math.round(i*t[s]/t[e]):t[s],[e]:i}}function _s(t,e){t={...t};for(const i in t)t=t[i]>e[i]?Hi(t,i,e[i]):t;return t}function Ho(t,e){t=_s(t,e);for(const i in t)t=t[i]<e[i]?Hi(t,i,e[i]):t;return t}const Ke={ratio:Hi,contain:_s,cover:Ho};function rt(t,e,i=0,s=!1){e=S(e);const{length:n}=e;return n?(t=xt(t)?St(t):t==="next"?i+1:t==="previous"?i-1:t==="last"?n-1:e.indexOf(H(t)),s?Z(t,0,n-1):(t%=n,t<0?t+n:t)):-1}function dt(t){const e=Object.create(null);return i=>e[i]||(e[i]=t(i))}function p(t,e,i){var s;if(Pt(e)){for(const n in e)p(t,n,e[n]);return}if(Y(i))return(s=H(t))==null?void 0:s.getAttribute(e);for(const n of S(t))it(i)&&(i=i.call(n,p(n,e))),i===null?$e(n,e):n.setAttribute(e,i)}function gt(t,e){return S(t).some(i=>i.hasAttribute(e))}function $e(t,e){S(t).forEach(i=>i.removeAttribute(e))}function tt(t,e){for(const i of[e,`data-${e}`])if(gt(t,i))return p(t,i)}const Lo={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};function Li(t){return S(t).some(e=>Lo[e.tagName.toLowerCase()])}function j(t){return S(t).some(e=>e.offsetWidth||e.offsetHeight||e.getClientRects().length)}const xe="input,select,textarea,button";function Wi(t){return S(t).some(e=>C(e,xe))}const ye=`${xe},a[href],[tabindex]`;function Ze(t){return C(t,ye)}function O(t){var e;return(e=H(t))==null?void 0:e.parentElement}function ke(t,e){return S(t).filter(i=>C(i,e))}function C(t,e){return S(t).some(i=>i.matches(e))}function U(t,e){return ee(t)?t.closest(ot(e,">")?e.slice(1):e):S(t).map(i=>U(i,e)).filter(Boolean)}function B(t,e){return D(e)?!!U(t,e):H(e).contains(H(t))}function ne(t,e){const i=[];for(;t=O(t);)(!e||C(t,e))&&i.push(t);return i}function T(t,e){t=H(t);const i=t?Qt(t.children):[];return e?ke(i,e):i}function oe(t,e){return e?S(t).indexOf(H(e)):T(O(t)).indexOf(t)}function re(t){return t=H(t),t&&["origin","pathname","search"].every(e=>t[e]===location[e])}function Ri(t){if(re(t)){t=H(t);const e=decodeURIComponent(t.hash).substring(1);return document.getElementById(e)||document.getElementsByName(e)[0]}}function at(t,e){return ji(t,Os(t,e))}function Se(t,e){return Ie(t,Os(t,e))}function ji(t,e){return H(Ds(t,H(e),"querySelector"))}function Ie(t,e){return S(Ds(t,H(e),"querySelectorAll"))}const Wo=/(^|[^\\],)\s*[!>+~-]/,As=dt(t=>t.match(Wo));function Os(t,e=document){return D(t)&&As(t)||Ue(e)?e:e.ownerDocument}const Ro=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,jo=dt(t=>t.replace(Ro,"$1 *"));function Ds(t,e=document,i){if(!t||!D(t))return t;if(t=jo(t),As(t)){const s=Uo(t);t="";for(let n of s){let o=e;if(n[0]==="!"){const r=n.substr(1).trim().split(" ");if(o=U(O(e),r[0]),n=r.slice(1).join(" ").trim(),!n.length&&s.length===1)return o}if(n[0]==="-"){const r=n.substr(1).trim().split(" "),a=(o||e).previousElementSibling;o=C(a,n.substr(1))?a:null,n=r.slice(1).join(" ")}o&&(t+=`${t?",":""}${Vo(o)} ${n}`)}e=document}try{return e[i](t)}catch{return null}}const qo=/.*?[^\\](?:,|$)/g,Uo=dt(t=>t.match(qo).map(e=>e.replace(/,$/,"").trim()));function Vo(t){const e=[];for(;t.parentNode;){const i=p(t,"id");if(i){e.unshift(`#${qi(i)}`);break}else{let{tagName:s}=t;s!=="HTML"&&(s+=`:nth-child(${oe(t)+1})`),e.unshift(s),t=t.parentNode}}return e.join(" > ")}function qi(t){return D(t)?CSS.escape(t):""}function x(...t){let[e,i,s,n,o=!1]=Ui(t);n.length>1&&(n=Go(n)),o!=null&&o.self&&(n=Xo(n)),s&&(n=Yo(s,n));for(const r of i)for(const a of e)a.addEventListener(r,n,o);return()=>Bt(e,i,n,o)}function Bt(...t){let[e,i,,s,n=!1]=Ui(t);for(const o of i)for(const r of e)r.removeEventListener(o,s,n)}function L(...t){const[e,i,s,n,o=!1,r]=Ui(t),a=x(e,i,s,l=>{const c=!r||r(l);c&&(a(),n(l,c))},o);return a}function v(t,e,i){return Vi(t).every(s=>s.dispatchEvent(Mt(e,!0,!0,i)))}function Mt(t,e=!0,i=!1,s){return D(t)&&(t=new CustomEvent(t,{bubbles:e,cancelable:i,detail:s})),t}function Ui(t){return t[0]=Vi(t[0]),D(t[1])&&(t[1]=t[1].split(" ")),it(t[2])&&t.splice(2,0,!1),t}function Yo(t,e){return i=>{const s=t[0]===">"?Ie(t,i.currentTarget).reverse().filter(n=>B(i.target,n))[0]:U(i.target,t);s&&(i.current=s,e.call(this,i),delete i.current)}}function Go(t){return e=>Q(e.detail)?t(e,...e.detail):t(e)}function Xo(t){return function(e){if(e.target===e.currentTarget||e.target===e.current)return t.call(null,e)}}function Bs(t){return t&&"addEventListener"in t}function Jo(t){return Bs(t)?t:H(t)}function Vi(t){return Q(t)?t.map(Jo).filter(Boolean):D(t)?Ie(t):Bs(t)?[t]:S(t)}function Ct(t){return t.pointerType==="touch"||!!t.touches}function ae(t){var e,i;const{clientX:s,clientY:n}=((e=t.touches)==null?void 0:e[0])||((i=t.changedTouches)==null?void 0:i[0])||t;return{x:s,y:n}}const Ko={"animation-iteration-count":!0,"column-count":!0,"fill-opacity":!0,"flex-grow":!0,"flex-shrink":!0,"font-weight":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,widows:!0,"z-index":!0,zoom:!0};function h(t,e,i,s){const n=S(t);for(const o of n)if(D(e)){if(e=Qe(e),Y(i))return getComputedStyle(o).getPropertyValue(e);o.style.setProperty(e,xt(i)&&!Ko[e]?`${i}px`:i||Ye(i)?i:"",s)}else if(Q(e)){const r={};for(const a of e)r[a]=h(o,a);return r}else Pt(e)&&(s=i,It(e,(r,a)=>h(o,a,r,s)));return n[0]}const Qe=dt(t=>Zo(t));function Zo(t){if(ot(t,"--"))return t;t=Kt(t);const{style:e}=document.documentElement;if(t in e)return t;for(const i of["webkit","moz"]){const s=`-${i}-${t}`;if(s in e)return s}}function y(t,...e){Ms(t,e,"add")}function M(t,...e){Ms(t,e,"remove")}function Yi(t,e){p(t,"class",i=>(i||"").replace(new RegExp(`\\b${e}\\b\\s?`,"g"),""))}function Gi(t,...e){e[0]&&M(t,e[0]),e[1]&&y(t,e[1])}function P(t,e){return[e]=Xi(e),!!e&&S(t).some(i=>i.classList.contains(e))}function q(t,e,i){const s=Xi(e);Y(i)||(i=!!i);for(const n of S(t))for(const o of s)n.classList.toggle(o,i)}function Ms(t,e,i){e=e.reduce((s,n)=>s.concat(Xi(n)),[]);for(const s of S(t))s.classList[i](...e)}function Xi(t){return String(t).split(/[ ,]/).filter(Boolean)}function Qo(t,e,i=400,s="linear"){return i=Math.round(i),Promise.all(S(t).map(n=>new Promise((o,r)=>{for(const l in e){const c=h(n,l);c===""&&h(n,l,c)}const a=setTimeout(()=>v(n,"transitionend"),i);L(n,"transitionend transitioncanceled",({type:l})=>{clearTimeout(a),M(n,"bdt-transition"),h(n,{transitionProperty:"",transitionDuration:"",transitionTimingFunction:""}),l==="transitioncanceled"?r():o(n)},{self:!0}),y(n,"bdt-transition"),h(n,{transitionProperty:Object.keys(e).map(Qe).join(","),transitionDuration:`${i}ms`,transitionTimingFunction:s,...e})})))}const E={start:Qo,async stop(t){v(t,"transitionend"),await Promise.resolve()},async cancel(t){v(t,"transitioncanceled"),await Promise.resolve()},inProgress(t){return P(t,"bdt-transition")}},Ce="bdt-animation-";function Ns(t,e,i=200,s,n){return Promise.all(S(t).map(o=>new Promise((r,a)=>{v(o,"animationcanceled");const l=setTimeout(()=>v(o,"animationend"),i);L(o,"animationend animationcanceled",({type:c})=>{clearTimeout(l),c==="animationcanceled"?a():r(o),h(o,"animationDuration",""),Yi(o,`${Ce}\\S*`)},{self:!0}),h(o,"animationDuration",`${i}ms`),y(o,e,Ce+(n?"leave":"enter")),ot(e,Ce)&&(s&&y(o,`bdt-transform-origin-${s}`),n&&y(o,`${Ce}reverse`))})))}const tr=new RegExp(`${Ce}(enter|leave)`),mt={in:Ns,out(t,e,i,s){return Ns(t,e,i,s,!0)},inProgress(t){return tr.test(p(t,"class"))},cancel(t){v(t,"animationcanceled")}};function er(t){if(document.readyState!=="loading"){t();return}L(document,"DOMContentLoaded",t)}function G(t,...e){return e.some(i=>{var s;return((s=t==null?void 0:t.tagName)==null?void 0:s.toLowerCase())===i.toLowerCase()})}function Ji(t){return t=w(t),t.innerHTML="",t}function Nt(t,e){return Y(e)?w(t).innerHTML:W(Ji(t),e)}const ir=ii("prepend"),W=ii("append"),ti=ii("before"),ei=ii("after");function ii(t){return function(e,i){var s;const n=S(D(i)?zt(i):i);return(s=w(e))==null||s[t](...n),zs(n)}}function lt(t){S(t).forEach(e=>e.remove())}function si(t,e){for(e=H(ti(t,e));e.firstChild;)e=e.firstChild;return W(e,t),e}function Ki(t,e){return S(S(t).map(i=>i.hasChildNodes()?si(Qt(i.childNodes),e):W(i,e)))}function Te(t){S(t).map(O).filter((e,i,s)=>s.indexOf(e)===i).forEach(e=>e.replaceWith(...e.childNodes))}const sr=/^\s*<(\w+|!)[^>]*>/,nr=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function zt(t){const e=nr.exec(t);if(e)return document.createElement(e[1]);const i=document.createElement("div");return sr.test(t)?i.insertAdjacentHTML("beforeend",t.trim()):i.textContent=t,zs(i.childNodes)}function zs(t){return t.length>1?t:t[0]}function Tt(t,e){if(ee(t))for(e(t),t=t.firstElementChild;t;){const i=t.nextElementSibling;Tt(t,e),t=i}}function w(t,e){return Fs(t)?H(zt(t)):ji(t,e)}function z(t,e){return Fs(t)?S(zt(t)):Ie(t,e)}function Fs(t){return D(t)&&ot(t.trim(),"<")}const Ft={width:["left","right"],height:["top","bottom"]};function b(t){const e=ee(t)?H(t).getBoundingClientRect():{height:et(t),width:Ee(t),top:0,left:0};return{height:e.height,width:e.width,top:e.top,left:e.left,bottom:e.top+e.height,right:e.left+e.width}}function _(t,e){const i=b(t);if(t){const{scrollY:n,scrollX:o}=ie(t),r={height:n,width:o};for(const a in Ft)for(const l of Ft[a])i[l]+=r[a]}if(!e)return i;const s=h(t,"position");It(h(t,["left","top"]),(n,o)=>h(t,o,e[o]-i[o]+$(s==="absolute"&&n==="auto"?ni(t)[o]:n)))}function ni(t){let{top:e,left:i}=_(t);const{ownerDocument:{body:s,documentElement:n},offsetParent:o}=H(t);let r=o||n;for(;r&&(r===s||r===n)&&h(r,"position")==="static";)r=r.parentNode;if(ee(r)){const a=_(r);e-=a.top+$(h(r,"borderTopWidth")),i-=a.left+$(h(r,"borderLeftWidth"))}return{top:e-$(h(t,"marginTop")),left:i-$(h(t,"marginLeft"))}}function Ht(t){t=H(t);const e=[t.offsetTop,t.offsetLeft];for(;t=t.offsetParent;)if(e[0]+=t.offsetTop+$(h(t,"borderTopWidth")),e[1]+=t.offsetLeft+$(h(t,"borderLeftWidth")),h(t,"position")==="fixed"){const i=ie(t);return e[0]+=i.scrollY,e[1]+=i.scrollX,e}return e}const et=Hs("height"),Ee=Hs("width");function Hs(t){const e=Et(t);return(i,s)=>{if(Y(s)){if(te(i))return i[`inner${e}`];if(Ue(i)){const n=i.documentElement;return Math.max(n[`offset${e}`],n[`scroll${e}`])}return i=H(i),s=h(i,t),s=s==="auto"?i[`offset${e}`]:$(s)||0,s-le(i,t)}else return h(i,t,!s&&s!==0?"":+s+le(i,t)+"px")}}function le(t,e,i="border-box"){return h(t,"boxSizing")===i?Dt(Ft[e].map(Et),s=>$(h(t,`padding${s}`))+$(h(t,`border${s}Width`))):0}function oi(t){for(const e in Ft)for(const i in Ft[e])if(Ft[e][i]===t)return Ft[e][1-i];return t}function ht(t,e="width",i=window,s=!1){return D(t)?Dt(rr(t),n=>{const o=lr(n);return o?hr(o==="vh"?cr():o==="vw"?Ee(ie(i)):s?i[`offset${Et(e)}`]:b(i)[e],n):n}):$(t)}const or=/-?\d+(?:\.\d+)?(?:v[wh]|%|px)?/g,rr=dt(t=>t.toString().replace(/\s/g,"").match(or)||[]),ar=/(?:v[hw]|%)$/,lr=dt(t=>(t.match(ar)||[])[0]);function hr(t,e){return t*$(e)/100}let Pe,he;function cr(){return Pe||(he||(he=w("<div>"),h(he,{height:"100vh",position:"fixed"}),x(window,"resize",()=>Pe=null)),W(document.body,he),Pe=he.clientHeight,lt(he),Pe)}const Lt=typeof window<"u",X=Lt&&document.dir==="rtl",Wt=Lt&&"ontouchstart"in window,ce=Lt&&window.PointerEvent,vt=ce?"pointerdown":Wt?"touchstart":"mousedown",ri=ce?"pointermove":Wt?"touchmove":"mousemove",_t=ce?"pointerup":Wt?"touchend":"mouseup",Rt=ce?"pointerenter":Wt?"":"mouseenter",ue=ce?"pointerleave":Wt?"":"mouseleave",ai=ce?"pointercancel":"touchcancel",J={reads:[],writes:[],read(t){return this.reads.push(t),Qi(),t},write(t){return this.writes.push(t),Qi(),t},clear(t){Ws(this.reads,t),Ws(this.writes,t)},flush:Zi};function Zi(t){Ls(J.reads),Ls(J.writes.splice(0)),J.scheduled=!1,(J.reads.length||J.writes.length)&&Qi(t+1)}const ur=4;function Qi(t){J.scheduled||(J.scheduled=!0,t&&t<ur?Promise.resolve().then(()=>Zi(t)):requestAnimationFrame(()=>Zi(1)))}function Ls(t){let e;for(;e=t.shift();)try{e()}catch(i){console.error(i)}}function Ws(t,e){const i=t.indexOf(e);return~i&&t.splice(i,1)}function ts(){}ts.prototype={positions:[],init(){this.positions=[];let t;this.unbind=x(document,"mousemove",e=>t=ae(e)),this.interval=setInterval(()=>{t&&(this.positions.push(t),this.positions.length>5&&this.positions.shift())},50)},cancel(){var t;(t=this.unbind)==null||t.call(this),clearInterval(this.interval)},movesTo(t){if(this.positions.length<2)return!1;const e=t.getBoundingClientRect(),{left:i,right:s,top:n,bottom:o}=e,[r]=this.positions,a=se(this.positions),l=[r,a];return Je(a,e)?!1:[[{x:i,y:n},{x:s,y:o}],[{x:i,y:o},{x:s,y:n}]].some(u=>{const f=fr(l,u);return f&&Je(f,e)})}};function fr([{x:t,y:e},{x:i,y:s}],[{x:n,y:o},{x:r,y:a}]){const l=(a-o)*(i-t)-(r-n)*(s-e);if(l===0)return!1;const c=((r-n)*(e-o)-(a-o)*(t-n))/l;return c<0?!1:{x:t+c*(i-t),y:e+c*(s-e)}}function Rs(t,e,i={},{intersecting:s=!0}={}){const n=new IntersectionObserver(s?(o,r)=>{o.some(a=>a.isIntersecting)&&e(o,r)}:e,i);for(const o of S(t))n.observe(o);return n}const dr=Lt&&window.ResizeObserver;function li(t,e,i={box:"border-box"}){return dr?qs(ResizeObserver,t,e,i):(pr(),_e.add(e),{observe:k,unobserve:k,disconnect(){_e.delete(e)}})}let _e;function pr(){if(_e)return;_e=new Set;let t;const e=()=>{if(!t){t=!0,requestAnimationFrame(()=>t=!1);for(const i of _e)i()}};x(window,"load resize",e),x(document,"loadedmetadata load",e,!0)}function js(t,e,i){return qs(MutationObserver,t,e,i)}function qs(t,e,i,s){const n=new t(i);for(const o of S(e))n.observe(o,s);return n}function Us(t){if(ci(t)&&es(t,{func:"playVideo",method:"play"}),hi(t))try{t.play().catch(k)}catch{}}function Vs(t){ci(t)&&es(t,{func:"pauseVideo",method:"pause"}),hi(t)&&t.pause()}function Ys(t){ci(t)&&es(t,{func:"mute",method:"setVolume",value:0}),hi(t)&&(t.muted=!0)}function Gs(t){return hi(t)||ci(t)}function hi(t){return G(t,"video")}function ci(t){return G(t,"iframe")&&(Xs(t)||Js(t))}function Xs(t){return!!t.src.match(/\/\/.*?youtube(-nocookie)?\.[a-z]+\/(watch\?v=[^&\s]+|embed)|youtu\.be\/.*/)}function Js(t){return!!t.src.match(/vimeo\.com\/video\/.*/)}async function es(t,e){await mr(t),Ks(t,e)}function Ks(t,e){try{t.contentWindow.postMessage(JSON.stringify({event:"command",...e}),"*")}catch{}}const is="_ukPlayer";let gr=0;function mr(t){if(t[is])return t[is];const e=Xs(t),i=Js(t),s=++gr;let n;return t[is]=new Promise(o=>{e&&L(t,"load",()=>{const r=()=>Ks(t,{event:"listening",id:s});n=setInterval(r,100),r()}),L(window,"message",o,!1,({data:r})=>{try{return r=JSON.parse(r),e&&(r==null?void 0:r.id)===s&&r.event==="onReady"||i&&Number(r==null?void 0:r.player_id)===s}catch{}}),t.src=`${t.src}${m(t.src,"?")?"&":"?"}${e?"enablejsapi=1":`api=1&player_id=${s}`}`}).then(()=>clearInterval(n))}function ss(t,e=0,i=0){return j(t)?Fi(...jt(t).map(s=>{const{top:n,left:o,bottom:r,right:a}=ct(s);return{top:n-e,left:o-i,bottom:r+e,right:a+i}}).concat(_(t))):!1}function Zs(t,{offset:e=0}={}){const i=j(t)?wt(t,!1,["hidden"]):[];return i.reduce((r,a,l)=>{const{scrollTop:c,scrollHeight:u,offsetHeight:f}=a,d=ct(a),g=u-d.height,{height:A,top:N}=i[l-1]?ct(i[l-1]):_(t);let F=Math.ceil(N-d.top-e+c);return e>0&&f<A+e?F+=e:e=0,F>g?(e-=F-g,F=g):F<0&&(e-=F,F=0),()=>s(a,F-c).then(r)},()=>Promise.resolve())();function s(r,a){return new Promise(l=>{const c=r.scrollTop,u=n(Math.abs(a)),f=Date.now();(function d(){const g=o(Z((Date.now()-f)/u));r.scrollTop=c+a*g,g===1?l():requestAnimationFrame(d)})()})}function n(r){return 40*Math.pow(r,.375)}function o(r){return .5*(1-Math.cos(Math.PI*r))}}function ns(t,e=0,i=0){if(!j(t))return 0;const[s]=wt(t,!0),{scrollHeight:n,scrollTop:o}=s,{height:r}=ct(s),a=n-r,l=Ht(t)[0]-Ht(s)[0],c=Math.max(0,l-r+e),u=Math.min(a,l+t.offsetHeight-i);return Z((o-c)/(u-c))}function wt(t,e=!1,i=[]){const s=Qs(t);let n=ne(t).reverse();n=n.slice(n.indexOf(s)+1);const o=yt(n,r=>h(r,"position")==="fixed");return~o&&(n=n.slice(o)),[s].concat(n.filter(r=>h(r,"overflow").split(" ").some(a=>m(["auto","scroll",...i],a))&&(!e||r.scrollHeight>ct(r).height))).reverse()}function jt(t){return wt(t,!1,["hidden","clip"])}function ct(t){const e=ie(t),{visualViewport:i,document:{documentElement:s}}=e;let n=t===Qs(t)?e:t;if(te(n)&&i){let{height:r,width:a,scale:l,pageTop:c,pageLeft:u}=i;return r=Math.round(r*l),a=Math.round(a*l),{height:r,width:a,top:c,left:u,bottom:c+r,right:u+a}}let o=_(n);if(h(n,"display")==="inline")return o;for(let[r,a,l,c]of[["width","x","left","right"],["height","y","top","bottom"]]){te(n)?n=s:o[l]+=$(h(n,`border-${l}-width`));const u=o[r]%1;o[r]=o[a]=n[`client${Et(r)}`]-(u?u<.5?-u:1-u:0),o[c]=o[r]+o[l]}return o}function Qs(t){return ie(t).document.scrollingElement}const ut=[["width","x","left","right"],["height","y","top","bottom"]];function tn(t,e,i){i={attach:{element:["left","top"],target:["left","top"],...i.attach},offset:[0,0],placement:[],...i},Q(e)||(e=[e,e]),_(t,en(t,e,i))}function en(t,e,i){const s=sn(t,e,i),{boundary:n,viewportOffset:o=0,placement:r}=i;let a=s;for(const[l,[c,,u,f]]of Object.entries(ut)){const d=vr(t,e[l],o,n,l);if(ui(s,d,l))continue;let g=0;if(r[l]==="flip"){const A=i.attach.target[l];if(A===f&&s[f]<=d[f]||A===u&&s[u]>=d[u])continue;g=br(t,e,i,l)[u]-s[u];const N=wr(t,e[l],o,l);if(!ui(os(s,g,l),N,l)){if(ui(s,N,l))continue;if(i.recursion)return!1;const F=$r(t,e,i);if(F&&ui(F,N,1-l))return F;continue}}else if(r[l]==="shift"){const A=_(e[l]),{offset:N}=i;g=Z(Z(s[u],d[u],d[f]-s[c]),A[u]-s[c]+N[l],A[f]-N[l])-s[u]}a=os(a,g,l)}return a}function sn(t,e,i){let{attach:s,offset:n}={attach:{element:["left","top"],target:["left","top"],...i.attach},offset:[0,0],...i},o=_(t);for(const[r,[a,,l,c]]of Object.entries(ut)){const u=s.target[r]===s.element[r]?ct(e[r]):_(e[r]);o=os(o,u[l]-o[l]+nn(s.target[r],c,u[a])-nn(s.element[r],c,o[a])+ +n[r],r)}return o}function os(t,e,i){const[,s,n,o]=ut[i],r={...t};return r[n]=t[s]=t[n]+e,r[o]+=e,r}function nn(t,e,i){return t==="center"?i/2:t===e?i:0}function vr(t,e,i,s,n){let o=rn(...on(t,e).map(ct));return i&&(o[ut[n][2]]+=i,o[ut[n][3]]-=i),s&&(o=rn(o,_(Q(s)?s[n]:s))),o}function wr(t,e,i,s){const[n,o,r,a]=ut[s],[l]=on(t,e),c=ct(l);return["auto","scroll"].includes(h(l,`overflow-${o}`))&&(c[r]-=l[`scroll${Et(r)}`],c[a]=c[r]+l[`scroll${Et(n)}`]),c[r]+=i,c[a]-=i,c}function on(t,e){return jt(e).filter(i=>B(t,i))}function rn(...t){let e={};for(const i of t)for(const[,,s,n]of ut)e[s]=Math.max(e[s]||0,i[s]),e[n]=Math.min(...[e[n],i[n]].filter(Boolean));return e}function ui(t,e,i){const[,,s,n]=ut[i];return t[s]>=e[s]&&t[n]<=e[n]}function br(t,e,{offset:i,attach:s},n){return sn(t,e,{attach:{element:an(s.element,n),target:an(s.target,n)},offset:xr(i,n)})}function $r(t,e,i){return en(t,e,{...i,attach:{element:i.attach.element.map(ln).reverse(),target:i.attach.target.map(ln).reverse()},offset:i.offset.reverse(),placement:i.placement.reverse(),recursion:!0})}function an(t,e){const i=[...t],s=ut[e].indexOf(t[e]);return~s&&(i[e]=ut[e][1-s%2+2]),i}function ln(t){for(let e=0;e<ut.length;e++){const i=ut[e].indexOf(t);if(~i)return ut[1-e][i%2+2]}}function xr(t,e){return t=[...t],t[e]*=-1,t}var yr=Object.freeze({__proto__:null,$:w,$$:z,Animation:mt,Dimensions:Ke,MouseTracker:ts,Transition:E,addClass:y,after:ei,append:W,apply:Tt,assign:$t,attr:p,before:ti,boxModelAdjust:le,camelize:we,children:T,clamp:Z,closest:U,createEvent:Mt,css:h,data:tt,dimensions:b,each:It,empty:Ji,endsWith:Zt,escape:qi,fastdom:J,filter:ke,find:ji,findAll:Ie,findIndex:yt,flipPosition:oi,fragment:zt,getEventPos:ae,getIndex:rt,getTargetedElement:Ri,hasAttr:gt,hasClass:P,hasOwn:bt,hasTouch:Wt,height:et,html:Nt,hyphenate:Kt,inBrowser:Lt,includes:m,index:oe,intersectRect:Fi,isArray:Q,isBoolean:Bi,isDocument:Ue,isElement:ee,isEmpty:be,isEqual:Ge,isFocusable:Ze,isFunction:it,isInView:ss,isInput:Wi,isNode:Ve,isNumber:Ye,isNumeric:xt,isObject:Pt,isPlainObject:kt,isRtl:X,isSameSiteAnchor:re,isString:D,isTag:G,isTouch:Ct,isUndefined:Y,isVideo:Gs,isVisible:j,isVoidElement:Li,isWindow:te,last:se,matches:C,memoize:dt,mute:Ys,noop:k,observeIntersection:Rs,observeMutation:js,observeResize:li,off:Bt,offset:_,offsetPosition:Ht,offsetViewport:ct,on:x,once:L,overflowParents:jt,parent:O,parents:ne,pause:Vs,pick:zi,play:Us,pointInRect:Je,pointerCancel:ai,pointerDown:vt,pointerEnter:Rt,pointerLeave:ue,pointerMove:ri,pointerUp:_t,position:ni,positionAt:tn,prepend:ir,propName:Qe,query:at,queryAll:Se,ready:er,remove:lt,removeAttr:$e,removeClass:M,removeClasses:Yi,replaceClass:Gi,scrollIntoView:Zs,scrollParents:wt,scrolledOver:ns,selFocusable:ye,selInput:xe,sortBy:Xe,startsWith:ot,sumBy:Dt,swap:Ni,toArray:Qt,toBoolean:Mi,toEventTargets:Vi,toFloat:$,toNode:H,toNodes:S,toNumber:St,toPx:ht,toWindow:ie,toggleClass:q,trigger:v,ucfirst:Et,uniqueBy:Ps,unwrap:Te,width:Ee,within:B,wrapAll:si,wrapInner:Ki});function kr(t){t._watches=[];for(const e of t.$options.watch||[])for(const[i,s]of Object.entries(e))hn(t,s,i);t._initial=!0}function hn(t,e,i){t._watches.push({name:i,...kt(e)?e:{handler:e}})}function Sr(t,e){for(const{name:i,handler:s,immediate:n=!0}of t._watches)(t._initial&&n||bt(e,i)&&!Ge(e[i],t[i]))&&s.call(t,t[i],e[i]);t._initial=!1}function Ir(t){t._data={},t._updates=[...t.$options.update||[]]}function Cr(t,e){t._updates.unshift(e)}function Tr(t){delete t._data}function fi(t,e="update"){t._connected&&t._updates.length&&(t._queued||(t._queued=new Set,J.read(()=>{t._connected&&Er(t,t._queued),delete t._queued})),t._queued.add(e.type||e))}function Er(t,e){for(const{read:i,write:s,events:n=[]}of t._updates){if(!e.has("update")&&!n.some(r=>e.has(r)))continue;let o;i&&(o=i.call(t,t._data,e),o&&kt(o)&&$t(t._data,o)),s&&o!==!1&&J.write(()=>{t._connected&&s.call(t,t._data,e)})}}function Pr(t){const{computed:e}=t.$options;if(t._computed={},e)for(const i in e)cn(t,i,e[i])}function cn(t,e,i){t._hasComputed=!0,Object.defineProperty(t,e,{enumerable:!0,get(){const{_computed:s,$props:n,$el:o}=t;return bt(s,e)||(s[e]=(i.get||i).call(t,n,o)),s[e]},set(s){const{_computed:n}=t;n[e]=i.set?i.set.call(t,s):s,Y(n[e])&&delete n[e]}})}function _r(t){t._hasComputed&&(Cr(t,{read:()=>Sr(t,un(t)),events:["resize","computed"]}),Or(),Ae.add(t))}function Ar(t){Ae==null||Ae.delete(t),un(t)}function un(t){const e={...t._computed};return t._computed={},e}let rs,Ae;function Or(){rs||(Ae=new Set,rs=new MutationObserver(()=>{for(const t of Ae)fi(t,"computed")}),rs.observe(document,{childList:!0,subtree:!0}))}function Dr(t){t._events=[];for(const e of t.$options.events||[])if(bt(e,"handler"))as(t,e);else for(const i in e)as(t,e[i],i)}function Br(t){t._events.forEach(e=>e()),delete t._events}function as(t,e,i){let{name:s,el:n,handler:o,capture:r,passive:a,delegate:l,filter:c,self:u}=kt(e)?e:{name:i,handler:e};if(n=it(n)?n.call(t,t):n||t.$el,Q(n)){n.forEach(f=>as(t,{...e,el:f},i));return}!n||c&&!c.call(t)||t._events.push(x(n,s,l?D(l)?l:l.call(t,t):null,D(o)?t[o]:o.bind(t),{passive:a,capture:r,self:u}))}function Mr(t){t._observers=[];for(const e of t.$options.observe||[])if(bt(e,"handler"))dn(t,e);else for(const i of e)dn(t,i)}function fn(t,...e){t._observers.push(...e)}function Nr(t){for(const e of t._observers)e.disconnect()}function dn(t,e){let{observe:i,target:s=t.$el,handler:n,options:o,filter:r,args:a}=e;if(r&&!r.call(t,t))return;const l=`_observe${t._observers.length}`;it(s)&&!bt(t,l)&&cn(t,l,()=>s.call(t,t)),n=D(n)?t[n]:n.bind(t),it(o)&&(o=o.call(t,t));const c=bt(t,l)?t[l]:s,u=i(c,n,o,a);it(s)&&Q(t[l])&&u.unobserve&&hn(t,{handler:zr(u),immediate:!1},l),fn(t,u)}function zr(t){return(e,i)=>{for(const s of i)!m(e,s)&&t.unobserve(s);for(const s of e)!m(i,s)&&t.observe(s)}}const V={};V.events=V.watch=V.observe=V.created=V.beforeConnect=V.connected=V.beforeDisconnect=V.disconnected=V.destroy=ls,V.args=function(t,e){return e!==!1&&ls(e||t)},V.update=function(t,e){return Xe(ls(t,it(e)?{read:e}:e),"order")},V.props=function(t,e){if(Q(e)){const i={};for(const s of e)i[s]=String;e=i}return V.methods(t,e)},V.computed=V.methods=function(t,e){return e?t?{...t,...e}:e:t},V.i18n=V.data=function(t,e,i){return i?pn(t,e,i):e?t?function(s){return pn(t,e,s)}:e:t};function pn(t,e,i){return V.computed(it(t)?t.call(i,i):t,it(e)?e.call(i,i):e)}function ls(t,e){return t=t&&!Q(t)?[t]:t,e?t?t.concat(e):Q(e)?e:[e]:t}function Fr(t,e){return Y(e)?t:e}function Oe(t,e,i){const s={};if(it(e)&&(e=e.options),e.extends&&(t=Oe(t,e.extends,i)),e.mixins)for(const o of e.mixins)t=Oe(t,o,i);for(const o in t)n(o);for(const o in e)bt(t,o)||n(o);function n(o){s[o]=(V[o]||Fr)(t[o],e[o],i)}return s}function De(t,e=[]){try{return t?ot(t,"{")?JSON.parse(t):e.length&&!m(t,":")?{[e[0]]:t}:t.split(";").reduce((i,s)=>{const[n,o]=s.split(/:(.*)/);return n&&!Y(o)&&(i[n.trim()]=o.trim()),i},{}):{}}catch{return{}}}function hs(t,e){return t===Boolean?Mi(e):t===Number?St(e):t==="list"?Hr(e):t===Object&&D(e)?De(e):t?t(e):e}function Hr(t){return Q(t)?t:D(t)?t.split(/,(?![^(]*\))/).map(e=>xt(e)?St(e):Mi(e.trim())):[t]}function Lr(t){const e=gn(t.$options);for(let s in e)Y(e[s])||(t.$props[s]=e[s]);const i=[t.$options.computed,t.$options.methods];for(let s in t.$props)s in e&&Wr(i,s)&&(t[s]=t.$props[s])}function gn(t){const e={},{args:i=[],props:s={},el:n,id:o}=t;if(!s)return e;for(const a in s){const l=Kt(a);let c=tt(n,l);Y(c)||(c=s[a]===Boolean&&c===""?!0:hs(s[a],c),!(l==="target"&&ot(c,"_"))&&(e[a]=c))}const r=De(tt(n,o),i);for(const a in r){const l=we(a);Y(s[l])||(e[l]=hs(s[l],r[a]))}return e}function Wr(t,e){return t.every(i=>!i||!bt(i,e))}function Rr(t){const{$options:e,$props:i}=t,{id:s,props:n,el:o}=e;if(!n)return;const r=Object.keys(n),a=r.map(c=>Kt(c)).concat(s),l=new MutationObserver(c=>{const u=gn(e);c.some(({attributeName:f})=>{const d=f.replace("data-","");return(d===s?r:[we(d),we(f)]).some(g=>!Y(u[g])&&u[g]!==i[g])})&&t.$reset()});l.observe(o,{attributes:!0,attributeFilter:a.concat(a.map(c=>`data-${c}`))}),fn(t,l)}function fe(t,e){var i;(i=t.$options[e])==null||i.forEach(s=>s.call(t))}function cs(t){t._connected||(Lr(t),fe(t,"beforeConnect"),t._connected=!0,Dr(t),Ir(t),kr(t),Mr(t),Rr(t),_r(t),fe(t,"connected"),fi(t))}function us(t){t._connected&&(fe(t,"beforeDisconnect"),Br(t),Tr(t),Nr(t),Ar(t),fe(t,"disconnected"),t._connected=!1)}let jr=0;function mn(t,e={}){e.data=Vr(e,t.constructor.options),t.$options=Oe(t.constructor.options,e,t),t.$props={},t._uid=jr++,qr(t),Ur(t),Pr(t),fe(t,"created"),e.el&&t.$mount(e.el)}function qr(t){const{data:e={}}=t.$options;for(const i in e)t.$props[i]=t[i]=e[i]}function Ur(t){const{methods:e}=t.$options;if(e)for(const i in e)t[i]=e[i].bind(t)}function Vr({data:t={}},{args:e=[],props:i={}}){Q(t)&&(t=t.slice(0,e.length).reduce((s,n,o)=>(kt(n)?$t(s,n):s[e[o]]=n,s),{}));for(const s in t)Y(t[s])?delete t[s]:i[s]&&(t[s]=hs(i[s],t[s]));return t}const ft=function(t){mn(this,t)};ft.util=yr,ft.options={},ft.version="3.16.17";const Yr="bdt-",qt="__uikit__",de={};function vn(t,e){var i;const s=Yr+Kt(t);if(!e)return kt(de[s])&&(de[s]=ft.extend(de[s])),de[s];t=we(t),ft[t]=(o,r)=>Be(t,o,r);const n=kt(e)?{...e}:e.options;return n.id=s,n.name=t,(i=n.install)==null||i.call(n,ft,n,t),ft._initialized&&!n.functional&&requestAnimationFrame(()=>Be(t,`[${s}],[data-${s}]`)),de[s]=n}function Be(t,e,i,...s){const n=vn(t);return n.options.functional?new n({data:kt(e)?e:[e,i,...s]}):e?z(e).map(o)[0]:o();function o(r){const a=di(r,t);if(a)if(i)a.$destroy();else return a;return new n({el:r,data:i})}}function Ut(t){return(t==null?void 0:t[qt])||{}}function di(t,e){return Ut(t)[e]}function Gr(t,e){t[qt]||(t[qt]={}),t[qt][e.$options.name]=e}function Xr(t,e){var i;(i=t[qt])==null||delete i[e.$options.name],be(t[qt])||delete t[qt]}function Jr(t){t.component=vn,t.getComponents=Ut,t.getComponent=di,t.update=wn,t.use=function(i){if(!i.installed)return i.call(null,this),i.installed=!0,this},t.mixin=function(i,s){s=(D(s)?this.component(s):s)||this,s.options=Oe(s.options,i)},t.extend=function(i){i||(i={});const s=this,n=function(r){mn(this,r)};return n.prototype=Object.create(s.prototype),n.prototype.constructor=n,n.options=Oe(s.options,i),n.super=s,n.extend=s.extend,n};let e;Object.defineProperty(t,"container",{get(){return e||document.body},set(i){e=w(i)}})}function wn(t,e){t=t?H(t):document.body;for(const i of ne(t).reverse())bn(i,e);Tt(t,i=>bn(i,e))}function bn(t,e){const i=Ut(t);for(const s in i)fi(i[s],e)}function Kr(t){t.prototype.$mount=function(e){const i=this;Gr(e,i),i.$options.el=e,B(e,document)&&cs(i)},t.prototype.$destroy=function(e=!1){const i=this,{el:s}=i.$options;s&&us(i),fe(i,"destroy"),Xr(s,i),e&&lt(i.$el)},t.prototype.$create=Be,t.prototype.$emit=function(e){fi(this,e)},t.prototype.$update=function(e=this.$el,i){wn(e,i)},t.prototype.$reset=function(){us(this),cs(this)},t.prototype.$getComponent=di,Object.defineProperties(t.prototype,{$el:{get(){return this.$options.el}},$container:Object.getOwnPropertyDescriptor(t,"container")})}function At(t,e=t.$el,i=""){if(e.id)return e.id;let s=`${t.$options.id}-${t._uid}${i}`;return w(`#${s}`)&&(s=At(t,e,`${i}-2`)),s}Jr(ft),Kr(ft);function Zr(t){Lt&&window.MutationObserver&&(document.body?requestAnimationFrame(()=>$n(t)):new MutationObserver((e,i)=>{document.body&&($n(t),i.disconnect())}).observe(document.documentElement,{childList:!0}))}function $n(t){v(document,"uikit:init",t),document.body&&Tt(document.body,xn),new MutationObserver(e=>e.forEach(Qr)).observe(document,{childList:!0,subtree:!0}),new MutationObserver(e=>e.forEach(ta)).observe(document,{attributes:!0,subtree:!0}),t._initialized=!0}function Qr({addedNodes:t,removedNodes:e}){for(const i of t)Tt(i,xn);for(const i of e)Tt(i,ea)}function ta({target:t,attributeName:e}){var i;const s=yn(e);if(s){if(gt(t,e)){Be(s,t);return}(i=di(t,s))==null||i.$destroy()}}function xn(t){const e=Ut(t);for(const i in Ut(t))cs(e[i]);for(const i of t.getAttributeNames()){const s=yn(i);s&&Be(s,t)}}function ea(t){const e=Ut(t);for(const i in Ut(t))us(e[i])}function yn(t){ot(t,"data-")&&(t=t.slice(5));const e=de[t];return e&&(kt(e)?e:e.options).name}var st={connected(){y(this.$el,this.$options.id)}},Vt={props:{cls:Boolean,animation:"list",duration:Number,velocity:Number,origin:String,transition:String},data:{cls:!1,animation:[!1],duration:200,velocity:.2,origin:!1,transition:"ease",clsEnter:"bdt-togglabe-enter",clsLeave:"bdt-togglabe-leave"},computed:{hasAnimation({animation:t}){return!!t[0]},hasTransition({animation:t}){return["slide","reveal"].some(e=>ot(t[0],e))}},methods:{async toggleElement(t,e,i){try{return await Promise.all(S(t).map(s=>{const n=Bi(e)?e:!this.isToggled(s);if(!v(s,`before${n?"show":"hide"}`,[this]))return Promise.reject();const o=(it(i)?i:i===!1||!this.hasAnimation?ia:this.hasTransition?sa:na)(s,n,this),r=n?this.clsEnter:this.clsLeave;y(s,r),v(s,n?"show":"hide",[this]);const a=()=>{M(s,r),v(s,n?"shown":"hidden",[this])};return o?o.then(a,()=>(M(s,r),Promise.reject())):a()})),!0}catch{return!1}},isToggled(t=this.$el){return t=H(t),P(t,this.clsEnter)?!0:P(t,this.clsLeave)?!1:this.cls?P(t,this.cls.split(" ")[0]):j(t)},_toggle(t,e){if(!t)return;e=!!e;let i;this.cls?(i=m(this.cls," ")||e!==P(t,this.cls),i&&q(t,this.cls,m(this.cls," ")?void 0:e)):(i=e===t.hidden,i&&(t.hidden=!e)),z("[autofocus]",t).some(s=>j(s)?s.focus()||!0:s.blur()),i&&v(t,"toggled",[e,this])}}};function ia(t,e,{_toggle:i}){return mt.cancel(t),E.cancel(t),i(t,e)}async function sa(t,e,{animation:i,duration:s,velocity:n,transition:o,_toggle:r}){var a;const[l="reveal",c="top"]=((a=i[0])==null?void 0:a.split("-"))||[],u=[["left","right"],["top","bottom"]],f=u[m(u[0],c)?0:1],d=f[1]===c,A=["width","height"][u.indexOf(f)],N=`margin-${f[0]}`,F=`margin-${c}`;let Ot=b(t)[A];const Ts=E.inProgress(t);await E.cancel(t),e&&r(t,!0);const Yh=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",N,F].map(No=>[No,t.style[No]])),qe=b(t),Es=$(h(t,N)),Do=$(h(t,F)),Jt=qe[A]+Do;!Ts&&!e&&(Ot+=Do);const[Oi]=Ki(t,"<div>");h(Oi,{boxSizing:"border-box",height:qe.height,width:qe.width,...h(t,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",F])}),h(t,{padding:0,border:0,minWidth:0,minHeight:0,[F]:0,width:qe.width,height:qe.height,overflow:"hidden",[A]:Ot});const Bo=Ot/Jt;s=(n*Jt+s)*(e?1-Bo:Bo);const Mo={[A]:e?Jt:0};d&&(h(t,N,Jt-Ot+Es),Mo[N]=e?Es:Jt+Es),!d^l==="reveal"&&(h(Oi,N,-Jt+Ot),E.start(Oi,{[N]:e?0:-Jt},s,o));try{await E.start(t,Mo,s,o)}finally{h(t,Yh),Te(Oi.firstChild),e||r(t,!1)}}function na(t,e,i){mt.cancel(t);const{animation:s,duration:n,_toggle:o}=i;return e?(o(t,!0),mt.in(t,s[0],n,i.origin)):mt.out(t,s[1]||s[0],n,i.origin).then(()=>o(t,!1))}const I={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};function pt(t){return gi(li,t,"resize")}function Me(t){return gi(Rs,t)}function kn(t){return gi(js,t)}function Ne(t={}){return Me({handler:function(e,i){const{targets:s=this.$el,preload:n=5}=t;for(const o of S(it(s)?s(this):s))z('[loading="lazy"]',o).slice(0,n-1).forEach(r=>$e(r,"loading"));for(const o of e.filter(({isIntersecting:r})=>r).map(({target:r})=>r))i.unobserve(o)},...t})}function pi(t){return gi(function(e,i){return{disconnect:x(e,"scroll",i,{passive:!0,capture:!0})}},{target:()=>window,...t},"scroll")}function Sn(t){return{observe(e,i){return{observe:k,unobserve:k,disconnect:x(e,vt,i,{passive:!0})}},handler(e){if(!Ct(e))return;const i=ae(e),s="tagName"in e.target?e.target:O(e.target);L(document,`${_t} ${ai} scroll`,n=>{const{x:o,y:r}=ae(n);(n.type!=="scroll"&&s&&o&&Math.abs(i.x-o)>100||r&&Math.abs(i.y-r)>100)&&setTimeout(()=>{v(s,"swipe"),v(s,`swipe${oa(i.x,i.y,o,r)}`)})})},...t}}function gi(t,e,i){return{observe:t,handler(){this.$emit(i)},...e}}function oa(t,e,i,s){return Math.abs(t-i)>=Math.abs(e-s)?t-i>0?"Left":"Right":e-s>0?"Up":"Down"}var In={mixins:[st,Vt],props:{animation:Boolean,targets:String,active:null,collapsible:Boolean,multiple:Boolean,toggle:String,content:String,offset:Number},data:{targets:"> *",active:!1,animation:!0,collapsible:!0,multiple:!1,clsOpen:"bdt-open",toggle:"> .bdt-accordion-title",content:"> .bdt-accordion-content",offset:0},computed:{items({targets:t},e){return z(t,e)},toggles({toggle:t}){return this.items.map(e=>w(t,e))},contents({content:t}){return this.items.map(e=>{var i;return((i=e._wrapper)==null?void 0:i.firstElementChild)||w(t,e)})}},watch:{items(t,e){if(e||P(t,this.clsOpen))return;const i=this.active!==!1&&t[Number(this.active)]||!this.collapsible&&t[0];i&&this.toggle(i,!1)},toggles(){this.$emit()},contents(t){for(const e of t){const i=P(this.items.find(s=>B(e,s)),this.clsOpen);mi(e,!i)}this.$emit()}},observe:Ne(),events:[{name:"click keydown",delegate(){return`${this.targets} ${this.$props.toggle}`},async handler(t){var e;t.type==="keydown"&&t.keyCode!==I.SPACE||(t.preventDefault(),(e=this._off)==null||e.call(this),this._off=aa(t.target),await this.toggle(oe(this.toggles,t.current)),this._off())}},{name:"shown hidden",self:!0,delegate(){return this.targets},handler(){this.$emit()}}],update(){const t=ke(this.items,`.${this.clsOpen}`);for(const e in this.items){const i=this.toggles[e],s=this.contents[e];if(!i||!s)continue;i.id=At(this,i,`-title-${e}`),s.id=At(this,s,`-content-${e}`);const n=m(t,this.items[e]);p(i,{role:G(i,"a")?"button":null,"aria-controls":s.id,"aria-expanded":n,"aria-disabled":!this.collapsible&&t.length<2&&n}),p(s,{role:"region","aria-labelledby":i.id}),G(s,"ul")&&p(T(s),"role","presentation")}},methods:{toggle(t,e){t=this.items[rt(t,this.items)];let i=[t];const s=ke(this.items,`.${this.clsOpen}`);if(!this.multiple&&!m(s,i[0])&&(i=i.concat(s)),!(!this.collapsible&&s.length<2&&m(s,t)))return Promise.all(i.map(n=>this.toggleElement(n,!m(s,n),(o,r)=>{if(q(o,this.clsOpen,r),e===!1||!this.animation){mi(w(this.content,o),!r);return}return ra(o,r,this)})))}}};function mi(t,e){t&&(t.hidden=e)}async function ra(t,e,{content:i,duration:s,velocity:n,transition:o}){var r;i=((r=t._wrapper)==null?void 0:r.firstElementChild)||w(i,t),t._wrapper||(t._wrapper=si(i,"<div>"));const a=t._wrapper;h(a,"overflow","hidden");const l=$(h(a,"height"));await E.cancel(a),mi(i,!1);const c=Dt(["marginTop","marginBottom"],f=>h(i,f))+b(i).height,u=l/c;s=(n*c+s)*(e?1-u:u),h(a,"height",l),await E.start(a,{height:e?c:0},s,o),Te(i),delete t._wrapper,e||mi(i,!0)}function aa(t){const[e]=wt(t,!0);let i;return function s(){i=requestAnimationFrame(()=>{const{top:n}=t.getBoundingClientRect();n<0&&(e.scrollTop+=n),s()})}(),()=>requestAnimationFrame(()=>cancelAnimationFrame(i))}var la={mixins:[st,Vt],args:"animation",props:{animation:Boolean,close:String},data:{animation:!0,selClose:".bdt-alert-close",duration:150},events:{name:"click",delegate(){return this.selClose},handler(t){t.preventDefault(),this.close()}},methods:{async close(){await this.toggleElement(this.$el,!1,ha),this.$destroy(!0)}}};function ha(t,e,{duration:i,transition:s,velocity:n}){const o=$(h(t,"height"));return h(t,"height",o),E.start(t,{height:0,marginTop:0,marginBottom:0,paddingTop:0,paddingBottom:0,borderTop:0,borderBottom:0,opacity:0},n*o+i,s)}var Cn={args:"autoplay",props:{automute:Boolean,autoplay:Boolean},data:{automute:!1,autoplay:!0},connected(){this.inView=this.autoplay==="inview",this.inView&&!gt(this.$el,"preload")&&(this.$el.preload="none"),G(this.$el,"iframe")&&!gt(this.$el,"allow")&&(this.$el.allow="autoplay"),this.automute&&Ys(this.$el)},observe:[Me({args:{intersecting:!1}}),pt()],update:{read({visible:t}){return Gs(this.$el)?{prev:t,visible:j(this.$el),inView:this.inView&&ss(this.$el)}:!1},write({prev:t,visible:e,inView:i}){!e||this.inView&&!i?Vs(this.$el):(this.autoplay===!0&&!t||i)&&Us(this.$el)},events:["resize"]}},ca={mixins:[Cn],props:{width:Number,height:Number},data:{automute:!0},events:{"load loadedmetadata"(){this.$emit("resize")}},observe:pt({target:({$el:t})=>[Tn(t)||O(t)]}),update:{read(){const{ratio:t,cover:e}=Ke,{$el:i,width:s,height:n}=this;let o={width:s,height:n};if(!s||!n){const c={width:i.naturalWidth||i.videoWidth||i.clientWidth,height:i.naturalHeight||i.videoHeight||i.clientHeight};s?o=t(c,"width",s):n?o=t(c,"height",n):o=c}const{offsetHeight:r,offsetWidth:a}=Tn(i)||O(i),l=e(o,{width:a+(a%2?1:0),height:r+(r%2?1:0)});return!l.width||!l.height?!1:l},write({height:t,width:e}){h(this.$el,{height:t,width:e})},events:["resize"]}};function Tn(t){for(;t=O(t);)if(h(t,"position")!=="static")return t}var En={props:{pos:String,offset:null,flip:Boolean,shift:Boolean,inset:Boolean},data:{pos:`bottom-${X?"right":"left"}`,offset:!1,flip:!0,shift:!0,inset:!1},connected(){this.pos=this.$props.pos.split("-").concat("center").slice(0,2),[this.dir,this.align]=this.pos,this.axis=m(["top","bottom"],this.dir)?"y":"x"},methods:{positionAt(t,e,i){let s=[this.getPositionOffset(t),this.getShiftOffset(t)];const n=[this.flip&&"flip",this.shift&&"shift"],o={element:[this.inset?this.dir:oi(this.dir),this.align],target:[this.dir,this.align]};if(this.axis==="y"){for(const l in o)o[l].reverse();s.reverse(),n.reverse()}const r=ua(t),a=b(t);h(t,{top:-a.height,left:-a.width}),tn(t,e,{attach:o,offset:s,boundary:i,placement:n,viewportOffset:this.getViewportOffset(t)}),r()},getPositionOffset(t){return ht(this.offset===!1?h(t,"--bdt-position-offset"):this.offset,this.axis==="x"?"width":"height",t)*(m(["left","top"],this.dir)?-1:1)*(this.inset?-1:1)},getShiftOffset(t){return this.align==="center"?0:ht(h(t,"--bdt-position-shift-offset"),this.axis==="y"?"width":"height",t)*(m(["left","top"],this.align)?1:-1)},getViewportOffset(t){return ht(h(t,"--bdt-position-viewport-offset"))}}};function ua(t){const[e]=wt(t),{scrollTop:i}=e;return()=>{i!==e.scrollTop&&(e.scrollTop=i)}}var ze={props:{container:Boolean},data:{container:!0},computed:{container({container:t}){return t===!0&&this.$container||t&&w(t)}}};let fs;function Pn(t){const e=x(t,"touchmove",s=>{if(s.targetTouches.length!==1||C(s.target,'input[type="range"'))return;let[{scrollHeight:n,clientHeight:o}]=wt(s.target);o>=n&&s.cancelable&&s.preventDefault()},{passive:!1});if(fs)return e;fs=!0;const{scrollingElement:i}=document;return h(i,{overflowY:CSS.supports("overflow","clip")?"clip":"hidden",touchAction:"none",paddingRight:Ee(window)-i.clientWidth||""}),()=>{fs=!1,e(),h(i,{overflowY:"",touchAction:"",paddingRight:""})}}let K;var _n={mixins:[ze,En,Vt],args:"pos",props:{mode:"list",toggle:Boolean,boundary:Boolean,boundaryX:Boolean,boundaryY:Boolean,target:Boolean,targetX:Boolean,targetY:Boolean,stretch:Boolean,delayShow:Number,delayHide:Number,autoUpdate:Boolean,clsDrop:String,animateOut:Boolean,bgScroll:Boolean},data:{mode:["click","hover"],toggle:"- *",boundary:!1,boundaryX:!1,boundaryY:!1,target:!1,targetX:!1,targetY:!1,stretch:!1,delayShow:0,delayHide:800,autoUpdate:!0,clsDrop:!1,animateOut:!1,bgScroll:!0,animation:["bdt-animation-fade"],cls:"bdt-open",container:!1},computed:{boundary({boundary:t,boundaryX:e,boundaryY:i},s){return[at(e||t,s)||window,at(i||t,s)||window]},target({target:t,targetX:e,targetY:i},s){return e||(e=t||this.targetEl),i||(i=t||this.targetEl),[e===!0?window:at(e,s),i===!0?window:at(i,s)]}},created(){this.tracker=new ts},beforeConnect(){this.clsDrop=this.$props.clsDrop||`bdt-${this.$options.name}`},connected(){y(this.$el,"bdt-drop",this.clsDrop),this.toggle&&!this.targetEl&&(this.targetEl=pa(this)),this._style=zi(this.$el.style,["width","height"])},disconnected(){this.isActive()&&(this.hide(!1),K=null),h(this.$el,this._style)},observe:Ne({target:({toggle:t,$el:e})=>at(t,e),targets:({$el:t})=>t}),events:[{name:"click",delegate(){return".bdt-drop-close"},handler(t){t.preventDefault(),this.hide(!1)}},{name:"click",delegate(){return'a[href*="#"]'},handler({defaultPrevented:t,current:e}){const{hash:i}=e;!t&&i&&re(e)&&!B(i,this.$el)&&this.hide(!1)}},{name:"beforescroll",handler(){this.hide(!1)}},{name:"toggle",self:!0,handler(t,e){t.preventDefault(),this.isToggled()?this.hide(!1):this.show(e==null?void 0:e.$el,!1)}},{name:"toggleshow",self:!0,handler(t,e){t.preventDefault(),this.show(e==null?void 0:e.$el)}},{name:"togglehide",self:!0,handler(t){t.preventDefault(),C(this.$el,":focus,:hover")||this.hide()}},{name:`${Rt} focusin`,filter(){return m(this.mode,"hover")},handler(t){Ct(t)||this.clearTimers()}},{name:`${ue} focusout`,filter(){return m(this.mode,"hover")},handler(t){!Ct(t)&&t.relatedTarget&&this.hide()}},{name:"toggled",self:!0,handler(t,e){p(this.targetEl,"aria-expanded",e?!0:null),e&&(this.clearTimers(),this.position())}},{name:"show",self:!0,handler(){K=this,this.tracker.init();const t=[ga(this),va(this),wa(this),this.autoUpdate&&ma(this),!this.bgScroll&&Pn(this.$el)];L(this.$el,"hide",()=>t.forEach(e=>e&&e()),{self:!0})}},{name:"beforehide",self:!0,handler(){this.clearTimers()}},{name:"hide",handler({target:t}){if(this.$el!==t){K=K===null&&B(t,this.$el)&&this.isToggled()?this:K;return}K=this.isActive()?null:K,this.tracker.cancel()}}],update:{write(){this.isToggled()&&!P(this.$el,this.clsEnter)&&this.position()}},methods:{show(t=this.targetEl,e=!0){if(this.isToggled()&&t&&this.targetEl&&t!==this.targetEl&&this.hide(!1,!1),this.targetEl=t,this.clearTimers(),!this.isActive()){if(K){if(e&&K.isDelaying){this.showTimer=setTimeout(()=>C(t,":hover")&&this.show(),10);return}let i;for(;K&&i!==K&&!B(this.$el,K.$el);)i=K,K.hide(!1,!1)}this.container&&O(this.$el)!==this.container&&W(this.container,this.$el),this.showTimer=setTimeout(()=>this.toggleElement(this.$el,!0),e&&this.delayShow||0)}},hide(t=!0,e=!0){const i=()=>this.toggleElement(this.$el,!1,this.animateOut&&e);this.clearTimers(),this.isDelaying=fa(this.$el).some(s=>this.tracker.movesTo(s)),t&&this.isDelaying?this.hideTimer=setTimeout(this.hide,50):t&&this.delayHide?this.hideTimer=setTimeout(i,this.delayHide):i()},clearTimers(){clearTimeout(this.showTimer),clearTimeout(this.hideTimer),this.showTimer=null,this.hideTimer=null,this.isDelaying=!1},isActive(){return K===this},position(){M(this.$el,"bdt-drop-stack"),h(this.$el,this._style),this.$el.hidden=!0;const t=this.target.map(n=>da(this.$el,n)),e=this.getViewportOffset(this.$el),i=[[0,["x","width","left","right"]],[1,["y","height","top","bottom"]]];for(const[n,[o,r]]of i)this.axis!==o&&m([o,!0],this.stretch)&&h(this.$el,{[r]:Math.min(_(this.boundary[n])[r],t[n][r]-2*e),[`overflow-${o}`]:"auto"});const s=t[0].width-2*e;this.$el.hidden=!1,h(this.$el,"maxWidth",""),this.$el.offsetWidth>s&&y(this.$el,"bdt-drop-stack"),h(this.$el,"maxWidth",s),this.positionAt(this.$el,this.target,this.boundary);for(const[n,[o,r,a,l]]of i)if(this.axis===o&&m([o,!0],this.stretch)){const c=Math.abs(this.getPositionOffset(this.$el)),u=_(this.target[n]),f=_(this.$el);h(this.$el,{[r]:(u[a]>f[a]?u[this.inset?l:a]-Math.max(_(this.boundary[n])[a],t[n][a]+e):Math.min(_(this.boundary[n])[l],t[n][l]-e)-u[this.inset?a:l])-c,[`overflow-${o}`]:"auto"}),this.positionAt(this.$el,this.target,this.boundary)}}}};function fa(t){const e=[];return Tt(t,i=>h(i,"position")!=="static"&&e.push(i)),e}function da(t,e){return ct(jt(e).find(i=>B(t,i)))}function pa(t){const{$el:e}=t.$create("toggle",at(t.toggle,t.$el),{target:t.$el,mode:t.mode});return p(e,"aria-haspopup",!0),e}function ga(t){const e=()=>t.$emit(),i=x(window,"resize",e),s=li(jt(t.$el).concat(t.target),e);return()=>{s.disconnect(),i()}}function ma(t){return x([document,...jt(t.$el)],"scroll",()=>t.$emit(),{passive:!0})}function va(t){return x(document,"keydown",e=>{e.keyCode===I.ESC&&t.hide(!1)})}function wa(t){return x(document,vt,({target:e})=>{B(e,t.$el)||L(document,`${_t} ${ai} scroll`,({defaultPrevented:i,type:s,target:n})=>{!i&&s===_t&&e===n&&!(t.targetEl&&B(e,t.targetEl))&&t.hide(!1)},!0)})}var An={mixins:[st,ze],props:{align:String,clsDrop:String,boundary:Boolean,dropbar:Boolean,dropbarAnchor:Boolean,duration:Number,mode:Boolean,offset:Boolean,stretch:Boolean,delayShow:Boolean,delayHide:Boolean,target:Boolean,targetX:Boolean,targetY:Boolean,animation:Boolean,animateOut:Boolean},data:{align:X?"right":"left",clsDrop:"bdt-dropdown",clsDropbar:"bdt-dropnav-dropbar",boundary:!0,dropbar:!1,dropbarAnchor:!1,duration:200,container:!1,selNavItem:"> li > a, > ul > li > a"},computed:{dropbarAnchor({dropbarAnchor:t},e){return at(t,e)||e},dropbar({dropbar:t}){return t?(t=this._dropbar||at(t,this.$el)||w(`+ .${this.clsDropbar}`,this.$el),t||(this._dropbar=w("<div></div>"))):null},dropContainer(t,e){return this.container||e},dropdowns({clsDrop:t},e){var i;const s=z(`.${t}`,e);if(this.dropContainer!==e)for(const n of z(`.${t}`,this.dropContainer)){const o=(i=this.getDropdown(n))==null?void 0:i.targetEl;!m(s,n)&&o&&B(o,this.$el)&&s.push(n)}return s},items({selNavItem:t},e){return z(t,e)}},watch:{dropbar(t){y(t,"bdt-dropbar","bdt-dropbar-top",this.clsDropbar,`bdt-${this.$options.name}-dropbar`)},dropdowns(t){this.$create("drop",t.filter(e=>!this.getDropdown(e)),{...this.$props,flip:!1,shift:!0,pos:`bottom-${this.align}`,boundary:this.boundary===!0?this.$el:this.boundary})}},disconnected(){lt(this._dropbar),delete this._dropbar},events:[{name:"mouseover focusin",delegate(){return this.selNavItem},handler({current:t}){const e=this.getActive();e&&m(e.mode,"hover")&&e.targetEl&&!B(e.targetEl,t)&&!e.isDelaying&&e.hide(!1)}},{name:"keydown",delegate(){return this.selNavItem},handler(t){const{current:e,keyCode:i}=t,s=this.getActive();i===I.DOWN&&gt(e,"aria-expanded")&&(t.preventDefault(),!s||s.targetEl!==e?(e.click(),L(this.dropContainer,"show",({target:n})=>Dn(n))):Dn(s.$el)),On(t,this.items,s)}},{name:"keydown",el(){return this.dropContainer},delegate(){return`.${this.clsDrop}`},handler(t){var e;const{current:i,keyCode:s}=t;if(!m(this.dropdowns,i))return;const n=this.getActive();let o=-1;if(s===I.HOME?o=0:s===I.END?o="last":s===I.UP?o="previous":s===I.DOWN?o="next":s===I.ESC&&((e=n.targetEl)==null||e.focus()),~o){t.preventDefault();const r=z(ye,i);r[rt(o,r,yt(r,a=>C(a,":focus")))].focus()}On(t,this.items,n)}},{name:"mouseleave",el(){return this.dropbar},filter(){return this.dropbar},handler(){const t=this.getActive();t&&m(t.mode,"hover")&&!this.dropdowns.some(e=>C(e,":hover"))&&t.hide()}},{name:"beforeshow",el(){return this.dropContainer},filter(){return this.dropbar},handler({target:t}){this.isDropbarDrop(t)&&(this.dropbar.previousElementSibling!==this.dropbarAnchor&&ei(this.dropbarAnchor,this.dropbar),y(t,`${this.clsDrop}-dropbar`))}},{name:"show",el(){return this.dropContainer},filter(){return this.dropbar},handler({target:t}){if(!this.isDropbarDrop(t))return;const e=this.getDropdown(t),i=()=>{const s=ne(t,`.${this.clsDrop}`).concat(t).map(a=>_(a)),n=Math.min(...s.map(({top:a})=>a)),o=Math.max(...s.map(({bottom:a})=>a)),r=_(this.dropbar);h(this.dropbar,"top",this.dropbar.offsetTop-(r.top-n)),this.transitionTo(o-n+$(h(t,"marginBottom")),t)};this._observer=li([e.$el,...e.target],i),i()}},{name:"beforehide",el(){return this.dropContainer},filter(){return this.dropbar},handler(t){const e=this.getActive();C(this.dropbar,":hover")&&e.$el===t.target&&!this.items.some(i=>e.targetEl!==i&&C(i,":focus"))&&t.preventDefault()}},{name:"hide",el(){return this.dropContainer},filter(){return this.dropbar},handler({target:t}){var e;if(!this.isDropbarDrop(t))return;(e=this._observer)==null||e.disconnect();const i=this.getActive();(!i||i.$el===t)&&this.transitionTo(0)}}],methods:{getActive(){var t;return m(this.dropdowns,(t=K)==null?void 0:t.$el)&&K},async transitionTo(t,e){const{dropbar:i}=this,s=et(i);e=s<t&&e,await E.cancel([e,i]),h(e,"clipPath",`polygon(0 0,100% 0,100% ${s}px,0 ${s}px)`),et(i,s),await Promise.all([E.start(i,{height:t},this.duration),E.start(e,{clipPath:`polygon(0 0,100% 0,100% ${t}px,0 ${t}px)`},this.duration).finally(()=>h(e,{clipPath:""}))]).catch(k)},getDropdown(t){return this.$getComponent(t,"drop")||this.$getComponent(t,"dropdown")},isDropbarDrop(t){return this.getDropdown(t)&&P(t,this.clsDrop)}}};function On(t,e,i){var s,n,o;const{current:r,keyCode:a}=t;let l=-1;a===I.HOME?l=0:a===I.END?l="last":a===I.LEFT?l="previous":a===I.RIGHT?l="next":a===I.TAB&&((s=i.targetEl)==null||s.focus(),(n=i.hide)==null||n.call(i,!1)),~l&&(t.preventDefault(),(o=i.hide)==null||o.call(i,!1),e[rt(l,e,e.indexOf(i.targetEl||r))].focus())}function Dn(t){var e;w(":focus",t)||(e=w(ye,t))==null||e.focus()}var ba={mixins:[st],args:"target",props:{target:Boolean},data:{target:!1},computed:{input(t,e){return w(xe,e)},state(){return this.input.nextElementSibling},target({target:t},e){return t&&(t===!0&&O(this.input)===e&&this.input.nextElementSibling||w(t,e))}},update(){var t;const{target:e,input:i}=this;if(!e)return;let s;const n=Wi(e)?"value":"textContent",o=e[n],r=(t=i.files)!=null&&t[0]?i.files[0].name:C(i,"select")&&(s=z("option",i).filter(a=>a.selected)[0])?s.textContent:i.value;o!==r&&(e[n]=r)},events:[{name:"change",handler(){this.$emit()}},{name:"reset",el(){return U(this.$el,"form")},handler(){this.$emit()}}]},Bn={props:{margin:String,firstColumn:Boolean},data:{margin:"bdt-margin-small-top",firstColumn:"bdt-first-column"},observe:[kn({options:{childList:!0,attributes:!0,attributeFilter:["style"]}}),pt({target:({$el:t})=>[t,...T(t)]})],update:{read(){const t=ds(this.$el.children);return{rows:t,columns:$a(t)}},write({columns:t,rows:e}){for(const i of e)for(const s of i)q(s,this.margin,e[0]!==i),q(s,this.firstColumn,t[0].includes(s))},events:["resize"]}};function ds(t){return Mn(t,"top","bottom")}function $a(t){const e=[];for(const i of t){const s=Mn(i,"left","right");for(let n=0;n<s.length;n++)e[n]=e[n]?e[n].concat(s[n]):s[n]}return X?e.reverse():e}function Mn(t,e,i){const s=[[]];for(const n of t){if(!j(n))continue;let o=vi(n);for(let r=s.length-1;r>=0;r--){const a=s[r];if(!a[0]){a.push(n);break}let l;if(a[0].offsetParent===n.offsetParent?l=vi(a[0]):(o=vi(n,!0),l=vi(a[0],!0)),o[e]>=l[i]-1&&o[e]!==l[e]){s.push([n]);break}if(o[i]-1>l[e]||o[e]===l[e]){a.push(n);break}if(r===0){s.unshift([n]);break}}}return s}function vi(t,e=!1){let{offsetTop:i,offsetLeft:s,offsetHeight:n,offsetWidth:o}=t;return e&&([i,s]=Ht(t)),{top:i,left:s,bottom:i+n,right:s+o}}var xa={extends:Bn,mixins:[st],name:"grid",props:{masonry:Boolean,parallax:Number},data:{margin:"bdt-grid-margin",clsStack:"bdt-grid-stack",masonry:!1,parallax:0},connected(){this.masonry&&y(this.$el,"bdt-flex-top bdt-flex-wrap-top")},observe:pi({filter:({parallax:t})=>t}),update:[{write({columns:t}){q(this.$el,this.clsStack,t.length<2)},events:["resize"]},{read(t){let{columns:e,rows:i}=t;if(!e.length||!this.masonry&&!this.parallax||Nn(this.$el))return t.translates=!1,!1;let s=!1;const n=T(this.$el),o=e.map(c=>Dt(c,"offsetHeight")),r=ka(n,this.margin)*(i.length-1),a=Math.max(...o)+r;this.masonry&&(e=e.map(c=>Xe(c,"offsetTop")),s=ya(i,e));let l=Math.abs(this.parallax);return l&&(l=o.reduce((c,u,f)=>Math.max(c,u+r+(f%2?l:l/8)-a),0)),{padding:l,columns:e,translates:s,height:s?a:""}},write({height:t,padding:e}){h(this.$el,"paddingBottom",e||""),t!==!1&&h(this.$el,"height",t)},events:["resize"]},{read(){return this.parallax&&Nn(this.$el)?!1:{scrolled:this.parallax?ns(this.$el)*Math.abs(this.parallax):!1}},write({columns:t,scrolled:e,translates:i}){e===!1&&!i||t.forEach((s,n)=>s.forEach((o,r)=>h(o,"transform",!e&&!i?"":`translateY(${(i&&-i[n][r])+(e?n%2?e:e/8:0)}px)`)))},events:["scroll","resize"]}]};function Nn(t){return T(t).some(e=>h(e,"position")==="absolute")}function ya(t,e){const i=t.map(s=>Math.max(...s.map(n=>n.offsetHeight)));return e.map(s=>{let n=0;return s.map((o,r)=>n+=r?i[r-1]-s[r-1].offsetHeight:0)})}function ka(t,e){const[i]=t.filter(s=>P(s,e));return $(i?h(i,"marginTop"):h(t[0],"paddingLeft"))}var Sa={args:"target",props:{target:String,row:Boolean},data:{target:"> *",row:!0},computed:{elements({target:t},e){return z(t,e)}},observe:pt({target:({$el:t,elements:e})=>[t,...e]}),update:{read(){return{rows:(this.row?ds(this.elements):[this.elements]).map(Ia)}},write({rows:t}){for(const{heights:e,elements:i}of t)i.forEach((s,n)=>h(s,"minHeight",e[n]))},events:["resize"]}};function Ia(t){if(t.length<2)return{heights:[""],elements:t};let e=t.map(Ca);const i=Math.max(...e);return{heights:t.map((s,n)=>e[n].toFixed(2)===i.toFixed(2)?"":i),elements:t}}function Ca(t){const e=zi(t.style,["display","minHeight"]);j(t)||h(t,"display","block","important"),h(t,"minHeight","");const i=b(t).height-le(t,"height","content-box");return h(t,e),i}var Ta={props:{expand:Boolean,offsetTop:Boolean,offsetBottom:Boolean,minHeight:Number},data:{expand:!1,offsetTop:!1,offsetBottom:!1,minHeight:0},observe:pt({target:({$el:t})=>[t,...wt(t)]}),update:{read({minHeight:t}){if(!j(this.$el))return!1;let e="";const i=le(this.$el,"height","content-box"),{body:s,scrollingElement:n}=document,[o]=wt(this.$el),{height:r}=ct(o===s?n:o);if(this.expand)e=Math.max(r-(b(o).height-b(this.$el).height)-i,0);else{const a=n===o||s===o;if(e=`calc(${a?"100vh":`${r}px`}`,this.offsetTop)if(a){const l=Ht(this.$el)[0]-Ht(o)[0];e+=l>0&&l<r/2?` - ${l}px`:""}else e+=` - ${h(o,"paddingTop")}`;this.offsetBottom===!0?e+=` - ${b(this.$el.nextElementSibling).height}px`:xt(this.offsetBottom)?e+=` - ${this.offsetBottom}vh`:this.offsetBottom&&Zt(this.offsetBottom,"px")?e+=` - ${$(this.offsetBottom)}px`:D(this.offsetBottom)&&(e+=` - ${b(at(this.offsetBottom,this.$el)).height}px`),e+=`${i?` - ${i}px`:""})`}return{minHeight:e,prev:t}},write({minHeight:t}){h(this.$el,{minHeight:t}),this.minHeight&&$(h(this.$el,"minHeight"))<this.minHeight&&h(this.$el,"minHeight",this.minHeight)},events:["resize"]}},zn={args:"src",props:{width:Number,height:Number,ratio:Number},data:{ratio:1},connected(){this.svg=this.getSvg().then(t=>{if(!this._connected)return;const e=Ea(t,this.$el);return this.svgEl&&e!==this.svgEl&&lt(this.svgEl),Pa.call(this,e,t),this.svgEl=e},k)},disconnected(){this.svg.then(t=>{this._connected||(Li(this.$el)&&(this.$el.hidden=!1),lt(t),this.svgEl=null)}),this.svg=null},methods:{async getSvg(){}}};function Ea(t,e){if(Li(e)||G(e,"canvas")){e.hidden=!0;const s=e.nextElementSibling;return Fn(t,s)?s:ei(e,t)}const i=e.lastElementChild;return Fn(t,i)?i:W(e,t)}function Fn(t,e){return G(t,"svg")&&G(e,"svg")&&t.innerHTML===e.innerHTML}function Pa(t,e){const i=["width","height"];let s=i.map(o=>this[o]);s.some(o=>o)||(s=i.map(o=>p(e,o)));const n=p(e,"viewBox");n&&!s.some(o=>o)&&(s=n.split(" ").slice(2)),s.forEach((o,r)=>p(t,i[r],$(o)*this.ratio||null))}var wi={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var i,s,n;let o=0;return((n=((i=this.i18n)==null?void 0:i[t])||((s=this.$options.i18n)==null?void 0:s[t]))==null?void 0:n.replace(/%s/g,()=>e[o++]||""))||""}}},_a='<svg width="14" height="14" viewBox="0 0 14 14"><line fill="none" stroke="#000" stroke-width="1.1" x1="1" y1="1" x2="13" y2="13"/><line fill="none" stroke="#000" stroke-width="1.1" x1="13" y1="1" x2="1" y2="13"/></svg>',Aa='<svg width="20" height="20" viewBox="0 0 20 20"><line fill="none" stroke="#000" stroke-width="1.4" x1="1" y1="1" x2="19" y2="19"/><line fill="none" stroke="#000" stroke-width="1.4" x1="19" y1="1" x2="1" y2="19"/></svg>',Oa='<svg width="12" height="12" viewBox="0 0 12 12"><polyline fill="none" stroke="#000" stroke-width="1.1" points="1 3.5 6 8.5 11 3.5"/></svg>',Da='<svg width="20" height="20" viewBox="0 0 20 20"><rect x="9" y="4" width="1" height="11"/><rect x="4" y="9" width="11" height="1"/></svg>',Ba='<svg width="12" height="12" viewBox="0 0 12 12"><polyline fill="none" stroke="#000" stroke-width="1.1" points="1 3.5 6 8.5 11 3.5"/></svg>',Ma='<svg width="14" height="14" viewBox="0 0 14 14"><polyline fill="none" stroke="#000" stroke-width="1.1" points="1 4 7 10 13 4"/></svg>',Na='<svg width="12" height="12" viewBox="0 0 12 12"><polyline fill="none" stroke="#000" stroke-width="1.1" points="1 3.5 6 8.5 11 3.5"/></svg>',za='<svg width="20" height="20" viewBox="0 0 20 20"><style>.bdt-navbar-toggle-animate svg&gt;[class*=&quot;line-&quot;]{transition:0.2s ease-in-out;transition-property:transform, opacity;transform-origin:center;opacity:1}.bdt-navbar-toggle svg&gt;.line-3{opacity:0}.bdt-navbar-toggle-animate[aria-expanded=&quot;true&quot;] svg&gt;.line-3{opacity:1}.bdt-navbar-toggle-animate[aria-expanded=&quot;true&quot;] svg&gt;.line-2{transform:rotate(45deg)}.bdt-navbar-toggle-animate[aria-expanded=&quot;true&quot;] svg&gt;.line-3{transform:rotate(-45deg)}.bdt-navbar-toggle-animate[aria-expanded=&quot;true&quot;] svg&gt;.line-1,.bdt-navbar-toggle-animate[aria-expanded=&quot;true&quot;] svg&gt;.line-4{opacity:0}.bdt-navbar-toggle-animate[aria-expanded=&quot;true&quot;] svg&gt;.line-1{transform:translateY(6px) scaleX(0)}.bdt-navbar-toggle-animate[aria-expanded=&quot;true&quot;] svg&gt;.line-4{transform:translateY(-6px) scaleX(0)}</style><rect class="line-1" y="3" width="20" height="2"/><rect class="line-2" y="9" width="20" height="2"/><rect class="line-3" y="9" width="20" height="2"/><rect class="line-4" y="15" width="20" height="2"/></svg>',Fa='<svg width="40" height="40" viewBox="0 0 40 40"><rect x="19" y="0" width="1" height="40"/><rect x="0" y="19" width="40" height="1"/></svg>',Ha='<svg width="7" height="12" viewBox="0 0 7 12"><polyline fill="none" stroke="#000" stroke-width="1.2" points="1 1 6 6 1 11"/></svg>',La='<svg width="7" height="12" viewBox="0 0 7 12"><polyline fill="none" stroke="#000" stroke-width="1.2" points="6 1 1 6 6 11"/></svg>',Wa='<svg width="20" height="20" viewBox="0 0 20 20"><circle fill="none" stroke="#000" stroke-width="1.1" cx="9" cy="9" r="7"/><path fill="none" stroke="#000" stroke-width="1.1" d="M14,14 L18,18 L14,14 Z"/></svg>',Ra='<svg width="40" height="40" viewBox="0 0 40 40"><circle fill="none" stroke="#000" stroke-width="1.8" cx="17.5" cy="17.5" r="16.5"/><line fill="none" stroke="#000" stroke-width="1.8" x1="38" y1="39" x2="29" y2="30"/></svg>',ja='<svg width="24" height="24" viewBox="0 0 24 24"><circle fill="none" stroke="#000" stroke-width="1.1" cx="10.5" cy="10.5" r="9.5"/><line fill="none" stroke="#000" stroke-width="1.1" x1="23" y1="23" x2="17" y2="17"/></svg>',qa='<svg width="14" height="24" viewBox="0 0 14 24"><polyline fill="none" stroke="#000" stroke-width="1.4" points="1.225,23 12.775,12 1.225,1"/></svg>',Ua='<svg width="25" height="40" viewBox="0 0 25 40"><polyline fill="none" stroke="#000" stroke-width="2" points="4.002,38.547 22.527,20.024 4,1.5"/></svg>',Va='<svg width="14" height="24" viewBox="0 0 14 24"><polyline fill="none" stroke="#000" stroke-width="1.4" points="12.775,1 1.225,12 12.775,23"/></svg>',Ya='<svg width="25" height="40" viewBox="0 0 25 40"><polyline fill="none" stroke="#000" stroke-width="2" points="20.527,1.5 2,20.024 20.525,38.547"/></svg>',Ga='<svg width="30" height="30" viewBox="0 0 30 30"><circle fill="none" stroke="#000" cx="15" cy="15" r="14"/></svg>',Xa='<svg width="18" height="10" viewBox="0 0 18 10"><polyline fill="none" stroke="#000" stroke-width="1.2" points="1 9 9 1 17 9"/></svg>';const bi={spinner:Ga,totop:Xa,marker:Da,"close-icon":_a,"close-large":Aa,"drop-parent-icon":Oa,"nav-parent-icon":Ba,"nav-parent-icon-large":Ma,"navbar-parent-icon":Na,"navbar-toggle-icon":za,"overlay-icon":Fa,"pagination-next":Ha,"pagination-previous":La,"search-icon":Wa,"search-large":Ra,"search-navbar":ja,"slidenav-next":qa,"slidenav-next-large":Ua,"slidenav-previous":Va,"slidenav-previous-large":Ya},ps={install:ol,mixins:[zn],args:"icon",props:{icon:String},isIcon:!0,beforeConnect(){y(this.$el,"bdt-icon")},methods:{async getSvg(){const t=rl(this.icon);if(!t)throw"Icon not found.";return t}}},Yt={args:!1,extends:ps,data:t=>({icon:Kt(t.constructor.options.name)}),beforeConnect(){y(this.$el,this.$options.id)}},Ja={extends:Yt,beforeConnect(){const t=this.$props.icon;this.icon=U(this.$el,".bdt-nav-primary")?`${t}-large`:t}},Ka={extends:Yt,mixins:[wi],i18n:{toggle:"Open Search",submit:"Submit Search"},beforeConnect(){if(this.icon=P(this.$el,"bdt-search-icon")&&ne(this.$el,".bdt-search-large").length?"search-large":ne(this.$el,".bdt-search-navbar").length?"search-navbar":this.$props.icon,!gt(this.$el,"aria-label"))if(P(this.$el,"bdt-search-toggle")||P(this.$el,"bdt-navbar-toggle")){const t=this.t("toggle");p(this.$el,"aria-label",t)}else{const t=U(this.$el,"a,button");if(t){const e=this.t("submit");p(t,"aria-label",e)}}}},Za={extends:Yt,beforeConnect(){p(this.$el,"role","status")},methods:{async getSvg(){const t=await ps.methods.getSvg.call(this);return this.ratio!==1&&h(w("circle",t),"strokeWidth",1/this.ratio),t}}},Gt={extends:Yt,mixins:[wi],beforeConnect(){const t=U(this.$el,"a,button");p(t,"role",this.role!==null&&G(t,"a")?"button":this.role);const e=this.t("label");e&&!gt(t,"aria-label")&&p(t,"aria-label",e)}},Hn={extends:Gt,beforeConnect(){y(this.$el,"bdt-slidenav");const t=this.$props.icon;this.icon=P(this.$el,"bdt-slidenav-large")?`${t}-large`:t}},Qa={extends:Gt,i18n:{label:"Open menu"}},tl={extends:Gt,i18n:{label:"Close"},beforeConnect(){this.icon=`close-${P(this.$el,"bdt-close-large")?"large":"icon"}`}},el={extends:Gt,i18n:{label:"Open"}},il={extends:Gt,i18n:{label:"Back to top"}},sl={extends:Gt,i18n:{label:"Next page"},data:{role:null}},nl={extends:Gt,i18n:{label:"Previous page"},data:{role:null}},$i={};function ol(t){t.icon.add=(e,i)=>{const s=D(e)?{[e]:i}:e;It(s,(n,o)=>{bi[o]=n,delete $i[o]}),t._initialized&&Tt(document.body,n=>It(t.getComponents(n),o=>{o.$options.isIcon&&o.icon in s&&o.$reset()}))}}function rl(t){return bi[t]?($i[t]||($i[t]=w((bi[al(t)]||bi[t]).trim())),$i[t].cloneNode(!0)):null}function al(t){return X?Ni(Ni(t,"left","right"),"previous","next"):t}const ll=Lt&&"loading"in HTMLImageElement.prototype;var hl={args:"dataSrc",props:{dataSrc:String,sources:String,margin:String,target:String,loading:String},data:{dataSrc:"",sources:!1,margin:"50%",target:!1,loading:"lazy"},connected(){if(this.loading!=="lazy"){this.load();return}ll&&xi(this.$el)&&(this.$el.loading="lazy",gs(this.$el)),pl(this.$el)},disconnected(){this.img&&(this.img.onload=""),delete this.img},observe:Me({target:({$el:t,$props:e})=>[t,...Se(e.target,t)],handler(t,e){this.load(),e.disconnect()},options:({margin:t})=>({rootMargin:t}),filter:({loading:t})=>t==="lazy"}),methods:{load(){if(this.img)return this.img;const t=xi(this.$el)?this.$el:ul(this.$el,this.dataSrc,this.sources);return $e(t,"loading"),gs(this.$el,t.currentSrc),this.img=t}}};function gs(t,e){if(xi(t)){const i=O(t);(G(i,"picture")?T(i):[t]).forEach(n=>Ln(n,n))}else e&&!m(t.style.backgroundImage,e)&&(h(t,"backgroundImage",`url(${qi(e)})`),v(t,Mt("load",!1)))}const cl=["data-src","data-srcset","sizes"];function Ln(t,e){for(const i of cl){const s=tt(t,i);s&&p(e,i.replace(/^(data-)+/,""),s)}}function ul(t,e,i){const s=new Image;return fl(s,i),Ln(t,s),s.onload=()=>{gs(t,s.currentSrc)},p(s,"src",e),s}function fl(t,e){if(e=dl(e),e.length){const i=zt("<picture>");for(const s of e){const n=zt("<source>");p(n,s),W(i,n)}W(i,t)}}function dl(t){if(!t)return[];if(ot(t,"["))try{t=JSON.parse(t)}catch{t=[]}else t=De(t);return Q(t)||(t=[t]),t.filter(e=>!be(e))}function pl(t){xi(t)&&!gt(t,"src")&&p(t,"src",'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg"></svg>')}function xi(t){return G(t,"img")}var yi={props:{media:Boolean},data:{media:!1},connected(){const t=gl(this.media,this.$el);if(this.matchMedia=!0,t){this.mediaObj=window.matchMedia(t);const e=()=>{this.matchMedia=this.mediaObj.matches,v(this.$el,Mt("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=x(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var t;(t=this.offMediaObj)==null||t.call(this)}};function gl(t,e){if(D(t)){if(ot(t,"@"))t=$(h(e,`--bdt-breakpoint-${t.substr(1)}`));else if(isNaN(t))return t}return t&&xt(t)?`(min-width: ${t}px)`:""}var ml={mixins:[st,yi],props:{fill:String},data:{fill:"",clsWrapper:"bdt-leader-fill",clsHide:"bdt-leader-hide",attrFill:"data-fill"},computed:{fill({fill:t}){return t||h(this.$el,"--bdt-leader-fill-content")}},connected(){[this.wrapper]=Ki(this.$el,`<span class="${this.clsWrapper}">`)},disconnected(){Te(this.wrapper.childNodes)},observe:pt(),update:{read(){return{width:Math.trunc(this.$el.offsetWidth/2),fill:this.fill,hide:!this.matchMedia}},write({width:t,fill:e,hide:i}){q(this.wrapper,this.clsHide,i),p(this.wrapper,this.attrFill,new Array(t).join(e))},events:["resize"]}};const nt=[];var ms={mixins:[st,ze,Vt],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean,role:String},data:{cls:"bdt-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1,role:"dialog"},computed:{panel({selPanel:t},e){return w(t,e)},transitionElement(){return this.panel},bgClose({bgClose:t}){return t&&this.panel}},connected(){p(this.panel||this.$el,"role",this.role),this.overlay&&p(this.panel||this.$el,"aria-modal",!0)},beforeDisconnect(){m(nt,this)&&this.toggleElement(this.$el,!1,!1)},events:[{name:"click",delegate(){return`${this.selClose},a[href*="#"]`},handler(t){const{current:e,defaultPrevented:i}=t,{hash:s}=e;!i&&s&&re(e)&&!B(s,this.$el)&&w(s,document.body)?this.hide():C(e,this.selClose)&&(t.preventDefault(),this.hide())}},{name:"toggle",self:!0,handler(t){t.defaultPrevented||(t.preventDefault(),this.isToggled()===m(nt,this)&&this.toggle())}},{name:"beforeshow",self:!0,handler(t){if(m(nt,this))return!1;!this.stack&&nt.length?(Promise.all(nt.map(e=>e.hide())).then(this.show),t.preventDefault()):nt.push(this)}},{name:"show",self:!0,handler(){this.stack&&h(this.$el,"zIndex",$(h(this.$el,"zIndex"))+nt.length);const t=[this.overlay&&wl(this),this.overlay&&Pn(this.$el),this.bgClose&&bl(this),this.escClose&&$l(this)];L(this.$el,"hidden",()=>t.forEach(e=>e&&e()),{self:!0}),y(document.documentElement,this.clsPage)}},{name:"shown",self:!0,handler(){Ze(this.$el)||p(this.$el,"tabindex","-1"),C(this.$el,":focus-within")||this.$el.focus()}},{name:"hidden",self:!0,handler(){m(nt,this)&&nt.splice(nt.indexOf(this),1),h(this.$el,"zIndex",""),nt.some(t=>t.clsPage===this.clsPage)||M(document.documentElement,this.clsPage)}}],methods:{toggle(){return this.isToggled()?this.hide():this.show()},show(){return this.container&&O(this.$el)!==this.container?(W(this.container,this.$el),new Promise(t=>requestAnimationFrame(()=>this.show().then(t)))):this.toggleElement(this.$el,!0,Wn)},hide(){return this.toggleElement(this.$el,!1,Wn)}}};function Wn(t,e,{transitionElement:i,_toggle:s}){return new Promise((n,o)=>L(t,"show hide",()=>{var r;(r=t._reject)==null||r.call(t),t._reject=o,s(t,e);const a=L(i,"transitionstart",()=>{L(i,"transitionend transitioncancel",n,{self:!0}),clearTimeout(l)},{self:!0}),l=setTimeout(()=>{a(),n()},vl(h(i,"transitionDuration")))})).then(()=>delete t._reject)}function vl(t){return t?Zt(t,"ms")?$(t):$(t)*1e3:0}function wl(t){return x(document,"focusin",e=>{se(nt)===t&&!B(e.target,t.$el)&&t.$el.focus()})}function bl(t){return x(document,vt,({target:e})=>{se(nt)!==t||t.overlay&&!B(e,t.$el)||B(e,t.panel)||L(document,`${_t} ${ai} scroll`,({defaultPrevented:i,type:s,target:n})=>{!i&&s===_t&&e===n&&t.hide()},!0)})}function $l(t){return x(document,"keydown",e=>{e.keyCode===27&&se(nt)===t&&t.hide()})}var xl={install:yl,mixins:[ms],data:{clsPage:"bdt-modal-page",selPanel:".bdt-modal-dialog",selClose:".bdt-modal-close, .bdt-modal-close-default, .bdt-modal-close-outside, .bdt-modal-close-full"},events:[{name:"show",self:!0,handler(){P(this.panel,"bdt-margin-auto-vertical")?y(this.$el,"bdt-flex"):h(this.$el,"display","block"),et(this.$el)}},{name:"hidden",self:!0,handler(){h(this.$el,"display",""),M(this.$el,"bdt-flex")}}]};function yl({modal:t}){t.dialog=function(i,s){const n=t(`<div class="bdt-modal"> <div class="bdt-modal-dialog">${i}</div> </div>`,s);return n.show(),x(n.$el,"hidden",async()=>{await Promise.resolve(),n.$destroy(!0)},{self:!0}),n},t.alert=function(i,s){return e(({i18n:n})=>`<div class="bdt-modal-body">${D(i)?i:Nt(i)}</div> <div class="bdt-modal-footer bdt-text-right"> <button class="bdt-button bdt-button-primary bdt-modal-close" autofocus>${n.ok}</button> </div>`,s)},t.confirm=function(i,s){return e(({i18n:n})=>`<form> <div class="bdt-modal-body">${D(i)?i:Nt(i)}</div> <div class="bdt-modal-footer bdt-text-right"> <button class="bdt-button bdt-button-default bdt-modal-close" type="button">${n.cancel}</button> <button class="bdt-button bdt-button-primary" autofocus>${n.ok}</button> </div> </form>`,s,()=>Promise.reject())},t.prompt=function(i,s,n){return e(({i18n:o})=>`<form class="bdt-form-stacked"> <div class="bdt-modal-body"> <label>${D(i)?i:Nt(i)}</label> <input class="bdt-input" value="${s||""}" autofocus> </div> <div class="bdt-modal-footer bdt-text-right"> <button class="bdt-button bdt-button-default bdt-modal-close" type="button">${o.cancel}</button> <button class="bdt-button bdt-button-primary">${o.ok}</button> </div> </form>`,n,()=>null,o=>w("input",o.$el).value)},t.i18n={ok:"Ok",cancel:"Cancel"};function e(i,s,n=k,o=k){s={bgClose:!1,escClose:!0,role:"alertdialog",...s,i18n:{...t.i18n,...s==null?void 0:s.i18n}};const r=t.dialog(i(s),s);return $t(new Promise(a=>{const l=x(r.$el,"hide",()=>a(n()));x(r.$el,"submit","form",c=>{c.preventDefault(),a(o(r)),l(),r.hide()})}),{dialog:r})}}var kl={extends:In,data:{targets:"> .bdt-parent",toggle:"> a",content:"> ul"}},Sl={extends:An,data:{clsDrop:"bdt-navbar-dropdown",selNavItem:".bdt-navbar-nav > li > a,a.bdt-navbar-item,button.bdt-navbar-item,.bdt-navbar-item a,.bdt-navbar-item button,.bdt-navbar-toggle"},watch:{items(){const t=P(this.$el,"bdt-navbar-justify");for(const e of z(".bdt-navbar-nav, .bdt-navbar-left, .bdt-navbar-right",this.$el))h(e,"flexGrow",t?z(".bdt-navbar-nav > li > a, .bdt-navbar-item, .bdt-navbar-toggle",e).length:"")}}},Il={mixins:[ms],args:"mode",props:{mode:String,flip:Boolean,overlay:Boolean,swiping:Boolean},data:{mode:"slide",flip:!1,overlay:!1,clsPage:"bdt-offcanvas-page",clsContainer:"bdt-offcanvas-container",selPanel:".bdt-offcanvas-bar",clsFlip:"bdt-offcanvas-flip",clsContainerAnimation:"bdt-offcanvas-container-animation",clsSidebarAnimation:"bdt-offcanvas-bar-animation",clsMode:"bdt-offcanvas",clsOverlay:"bdt-offcanvas-overlay",selClose:".bdt-offcanvas-close",container:!1,swiping:!0},computed:{clsFlip({flip:t,clsFlip:e}){return t?e:""},clsOverlay({overlay:t,clsOverlay:e}){return t?e:""},clsMode({mode:t,clsMode:e}){return`${e}-${t}`},clsSidebarAnimation({mode:t,clsSidebarAnimation:e}){return t==="none"||t==="reveal"?"":e},clsContainerAnimation({mode:t,clsContainerAnimation:e}){return t!=="push"&&t!=="reveal"?"":e},transitionElement({mode:t}){return t==="reveal"?O(this.panel):this.panel}},observe:Sn({filter:({swiping:t})=>t}),update:{read(){this.isToggled()&&!j(this.$el)&&this.hide()},events:["resize"]},events:[{name:"touchmove",self:!0,passive:!1,filter(){return this.overlay},handler(t){t.cancelable&&t.preventDefault()}},{name:"show",self:!0,handler(){this.mode==="reveal"&&!P(O(this.panel),this.clsMode)&&(si(this.panel,"<div>"),y(O(this.panel),this.clsMode));const{body:t,scrollingElement:e}=document;y(t,this.clsContainer,this.clsFlip),h(t,"touch-action","pan-y pinch-zoom"),h(this.$el,"display","block"),h(this.panel,"maxWidth",e.clientWidth),y(this.$el,this.clsOverlay),y(this.panel,this.clsSidebarAnimation,this.mode==="reveal"?"":this.clsMode),et(t),y(t,this.clsContainerAnimation),this.clsContainerAnimation&&Cl()}},{name:"hide",self:!0,handler(){M(document.body,this.clsContainerAnimation),h(document.body,"touch-action","")}},{name:"hidden",self:!0,handler(){this.clsContainerAnimation&&Tl(),this.mode==="reveal"&&Te(this.panel),M(this.panel,this.clsSidebarAnimation,this.clsMode),M(this.$el,this.clsOverlay),h(this.$el,"display",""),h(this.panel,"maxWidth",""),M(document.body,this.clsContainer,this.clsFlip)}},{name:"swipeLeft swipeRight",handler(t){this.isToggled()&&Zt(t.type,"Left")^this.flip&&this.hide()}}]};function Cl(){Rn().content+=",user-scalable=0"}function Tl(){const t=Rn();t.content=t.content.replace(/,user-scalable=0$/,"")}function Rn(){return w('meta[name="viewport"]',document.head)||W(document.head,'<meta name="viewport">')}var El={mixins:[st],props:{selContainer:String,selContent:String,minHeight:Number},data:{selContainer:".bdt-modal",selContent:".bdt-modal-dialog",minHeight:150},computed:{container({selContainer:t},e){return U(e,t)},content({selContent:t},e){return U(e,t)}},observe:pt({target:({container:t,content:e})=>[t,e]}),update:{read(){return!this.content||!this.container||!j(this.$el)?!1:{max:Math.max(this.minHeight,et(this.container)-(b(this.content).height-et(this.$el)))}},write({max:t}){h(this.$el,{minHeight:this.minHeight,maxHeight:t})},events:["resize"]}},Pl={props:["width","height"],connected(){y(this.$el,"bdt-responsive-width")},observe:pt({target:({$el:t})=>[t,O(t)]}),update:{read(){return j(this.$el)&&this.width&&this.height?{width:Ee(O(this.$el)),height:this.height}:!1},write(t){et(this.$el,Ke.contain({height:this.height,width:this.width},t).height)},events:["resize"]}},_l={props:{offset:Number},data:{offset:0},connected(){Al(this)},disconnected(){Ol(this)},methods:{async scrollTo(t){t=t&&w(t)||document.body,v(this.$el,"beforescroll",[this,t])&&(await Zs(t,{offset:this.offset}),v(this.$el,"scrolled",[this,t]))}}};const Fe=new Set;function Al(t){Fe.size||x(document,"click",jn),Fe.add(t)}function Ol(t){Fe.delete(t),Fe.size||Bt(document,"click",jn)}function jn(t){if(!t.defaultPrevented)for(const e of Fe)B(t.target,e.$el)&&re(e.$el)&&(t.preventDefault(),window.location.href!==e.$el.href&&window.history.pushState({},"",e.$el.href),e.scrollTo(Ri(e.$el)))}var Dl={args:"cls",props:{cls:String,target:String,hidden:Boolean,margin:String,repeat:Boolean,delay:Number},data:()=>({cls:"",target:!1,hidden:!0,margin:"-1px",repeat:!1,delay:0,inViewClass:"bdt-scrollspy-inview"}),computed:{elements({target:t},e){return t?z(t,e):[e]}},watch:{elements(t){this.hidden&&h(ke(t,`:not(.${this.inViewClass})`),"opacity",0)}},connected(){this.elementData=new Map},disconnected(){for(const[t,e]of this.elementData.entries())M(t,this.inViewClass,(e==null?void 0:e.cls)||"");delete this.elementData},observe:Me({target:({elements:t})=>t,handler(t){const e=this.elementData;for(const{target:i,isIntersecting:s}of t){e.has(i)||e.set(i,{cls:tt(i,"bdt-scrollspy-class")||this.cls});const n=e.get(i);!this.repeat&&n.show||(n.show=s)}this.$emit()},options:t=>({rootMargin:t.margin}),args:{intersecting:!1}}),update:[{write(t){for(const[e,i]of this.elementData.entries())i.show&&!i.inview&&!i.queued?(i.queued=!0,t.promise=(t.promise||Promise.resolve()).then(()=>new Promise(s=>setTimeout(s,this.delay))).then(()=>{this.toggle(e,!0),setTimeout(()=>{i.queued=!1,this.$emit()},300)})):!i.show&&i.inview&&!i.queued&&this.repeat&&this.toggle(e,!1)}}],methods:{toggle(t,e){var i;const s=this.elementData.get(t);if(s){if((i=s.off)==null||i.call(s),h(t,"opacity",!e&&this.hidden?0:""),q(t,this.inViewClass,e),q(t,s.cls),/\bbdt-animation-/.test(s.cls)){const n=()=>Yi(t,"bdt-animation-[\\w-]+");e?s.off=L(t,"animationcancel animationend",n):n()}v(t,e?"inview":"outview"),s.inview=e,this.$update(t)}}}},Bl={props:{cls:String,closest:String,scroll:Boolean,overflow:Boolean,offset:Number},data:{cls:"bdt-active",closest:!1,scroll:!1,overflow:!0,offset:0},computed:{links(t,e){return z('a[href*="#"]',e).filter(i=>i.hash&&re(i))},elements({closest:t}){return U(this.links,t||"*")}},watch:{links(t){this.scroll&&this.$create("scroll",t,{offset:this.offset||0})}},observe:[Me(),pi()],update:[{read(){const t=this.links.map(Ri).filter(Boolean),{length:e}=t;if(!e||!j(this.$el))return!1;const[i]=wt(t,!0),{scrollTop:s,scrollHeight:n}=i,o=ct(i),r=n-o.height;let a=!1;if(s===r)a=e-1;else{for(let l=0;l<t.length&&!(_(t[l]).top-o.top-this.offset>0);l++)a=+l;a===!1&&this.overflow&&(a=0)}return{active:a}},write({active:t}){const e=t!==!1&&!P(this.elements[t],this.cls);this.links.forEach(i=>i.blur());for(let i=0;i<this.elements.length;i++)q(this.elements[i],this.cls,+i===t);e&&v(this.$el,"active",[t,this.elements[t]])},events:["scroll","resize"]}]},Ml={mixins:[st,yi],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){return t&&w(t,e)||e}},connected(){this.start=qn(this.start||this.top),this.end=qn(this.end||this.bottom),this.placeholder=w("+ .bdt-sticky-placeholder",this.$el)||w('<div class="bdt-sticky-placeholder"></div>'),this.isFixed=!1,this.setActive(!1)},disconnected(){this.isFixed&&(this.hide(),M(this.selTarget,this.clsInactive)),Un(this.$el),lt(this.placeholder),this.placeholder=null},observe:[pt({target:({$el:t})=>[t,document.documentElement]}),pi()],events:[{name:"resize",el(){return[window,window.visualViewport]},handler(){this.$emit("resize")}},{name:"load hashchange popstate",el(){return window},filter(){return this.targetOffset!==!1},handler(){const{scrollingElement:t}=document;!location.hash||t.scrollTop===0||setTimeout(()=>{const e=_(w(location.hash)),i=_(this.$el);this.isFixed&&Fi(e,i)&&(t.scrollTop=e.top-i.height-ht(this.targetOffset,"height",this.placeholder)-ht(this.offset,"height",this.placeholder))})}},{name:"transitionstart",capture:!0,handler(){this.transitionInProgress=L(this.$el,"transitionend transitioncancel",()=>this.transitionInProgress=null)}}],update:[{read({height:t,width:e,margin:i,sticky:s}){if(this.inactive=!this.matchMedia||!j(this.$el),this.inactive)return;const n=this.isFixed&&!this.transitionInProgress;n&&(Vn(this.selTarget),this.hide()),this.active||({height:t,width:e}=_(this.$el),i=h(this.$el,"margin")),n&&this.show();const o=ht("100vh","height"),r=et(window),a=document.scrollingElement.scrollHeight-o;let l=this.position;this.overflowFlip&&t>o&&(l=l==="top"?"bottom":"top");const c=this.isFixed?this.placeholder:this.$el;let u=ht(this.offset,"height",s?this.$el:c);l==="bottom"&&(t<r||this.overflowFlip)&&(u+=r-t);const f=this.overflowFlip?0:Math.max(0,t+u-o),d=_(c).top,g=_(this.$el).height,A=(this.start===!1?d:vs(this.start,this.$el,d))-u,N=this.end===!1?a:Math.min(a,vs(this.end,this.$el,d+t,!0)-g-u+f);return s=a&&!this.showOnUp&&A+u===d&&N===Math.min(a,vs("!*",this.$el,0,!0)-g-u+f)&&h(O(this.$el),"overflowY")==="visible",{start:A,end:N,offset:u,overflow:f,topOffset:d,height:t,elHeight:g,width:e,margin:i,top:Ht(c)[0],sticky:s}},write({height:t,width:e,margin:i,offset:s,sticky:n}){if((this.inactive||n||!this.isFixed)&&Un(this.$el),this.inactive)return;n&&(t=e=i=0,h(this.$el,{position:"sticky",top:s}));const{placeholder:o}=this;h(o,{height:t,width:e,margin:i}),B(o,document)||(o.hidden=!0),(n?ti:ei)(this.$el,o)},events:["resize"]},{read({scroll:t=0,dir:e="down",overflow:i,overflowScroll:s=0,start:n,end:o}){const r=document.scrollingElement.scrollTop;return{dir:t<=r?"down":"up",prevDir:e,scroll:r,prevScroll:t,offsetParentTop:_((this.isFixed?this.placeholder:this.$el).offsetParent).top,overflowScroll:Z(s+Z(r,n,o)-Z(t,n,o),0,i)}},write(t,e){const i=e.has("scroll"),{initTimestamp:s=0,dir:n,prevDir:o,scroll:r,prevScroll:a=0,top:l,start:c,topOffset:u,height:f}=t;if(r<0||r===a&&i||this.showOnUp&&!i&&!this.isFixed)return;const d=Date.now();if((d-s>300||n!==o)&&(t.initScroll=r,t.initTimestamp=d),!(this.showOnUp&&!this.isFixed&&Math.abs(t.initScroll-r)<=30&&Math.abs(a-r)<=10))if(this.inactive||r<c||this.showOnUp&&(r<=c||n==="down"&&i||n==="up"&&!this.isFixed&&r<=u+f)){if(!this.isFixed){mt.inProgress(this.$el)&&l>r&&(mt.cancel(this.$el),this.hide());return}this.animation&&r>u?(mt.cancel(this.$el),mt.out(this.$el,this.animation).then(()=>this.hide(),k)):this.hide()}else this.isFixed?this.update():this.animation&&r>u?(mt.cancel(this.$el),this.show(),mt.in(this.$el,this.animation).catch(k)):(Vn(this.selTarget),this.show())},events:["resize","resizeViewport","scroll"]}],methods:{show(){this.isFixed=!0,this.update(),this.placeholder.hidden=!1},hide(){const{offset:t,sticky:e}=this._data;this.setActive(!1),M(this.$el,this.clsFixed,this.clsBelow),e?h(this.$el,"top",t):h(this.$el,{position:"",top:"",width:"",marginTop:""}),this.placeholder.hidden=!0,this.isFixed=!1},update(){let{width:t,scroll:e=0,overflow:i,overflowScroll:s=0,start:n,end:o,offset:r,topOffset:a,height:l,elHeight:c,offsetParentTop:u,sticky:f}=this._data;const d=n!==0||e>n;if(!f){let g="fixed";e>o&&(r+=o-u,g="absolute"),h(this.$el,{position:g,width:t}),h(this.$el,"marginTop",0,"important")}i&&(r-=s),h(this.$el,"top",r),this.setActive(d),q(this.$el,this.clsBelow,e>a+(f?Math.min(l,c):l)),y(this.$el,this.clsFixed)},setActive(t){const e=this.active;this.active=t,t?(Gi(this.selTarget,this.clsInactive,this.clsActive),e!==t&&v(this.$el,"active")):(Gi(this.selTarget,this.clsActive,this.clsInactive),e!==t&&v(this.$el,"inactive"))}}};function vs(t,e,i,s){if(!t)return 0;if(xt(t)||D(t)&&t.match(/^-?\d/))return i+ht(t,"height",e,!0);{const n=t===!0?O(e):at(t,e);return _(n).bottom-(s&&n&&B(e,n)?$(h(n,"paddingBottom")):0)}}function qn(t){return t==="true"?!0:t==="false"?!1:t}function Un(t){h(t,{position:"",top:"",marginTop:"",width:""})}function Vn(t){h(t,"transition","0s"),requestAnimationFrame(()=>h(t,"transition",""))}function Yn(t){return Math.ceil(Math.max(0,...z("[stroke]",t).map(e=>{try{return e.getTotalLength()}catch{return 0}})))}var Nl={mixins:[zn],args:"src",props:{src:String,icon:String,attributes:"list",strokeAnimation:Boolean},data:{strokeAnimation:!1},observe:[kn({async handler(){const t=await this.svg;t&&Gn.call(this,t)},options:{attributes:!0,attributeFilter:["id","class","style"]}})],async connected(){m(this.src,"#")&&([this.src,this.icon]=this.src.split("#"));const t=await this.svg;t&&(Gn.call(this,t),this.strokeAnimation&&Ll(t))},methods:{async getSvg(){return G(this.$el,"img")&&!this.$el.complete&&this.$el.loading==="lazy"?new Promise(t=>L(this.$el,"load",()=>t(this.getSvg()))):Fl(await zl(this.src),this.icon)||Promise.reject("SVG not found.")}}};function Gn(t){const{$el:e}=this;y(t,p(e,"class"),"bdt-svg");for(let i=0;i<e.style.length;i++){const s=e.style[i];h(t,s,h(e,s))}for(const i in this.attributes){const[s,n]=this.attributes[i].split(":",2);p(t,s,n)}this.$el.id||$e(t,"id")}const zl=dt(async t=>t?ot(t,"data:")?decodeURIComponent(t.split(",")[1]):(await fetch(t)).text():Promise.reject());function Fl(t,e){return e&&m(t,"<symbol")&&(t=Hl(t)[e]||t),t=w(t.substr(t.indexOf("<svg"))),(t==null?void 0:t.hasChildNodes())&&t}const Xn=/<symbol([^]*?id=(['"])(.+?)\2[^]*?<\/)symbol>/g,Hl=dt(function(t){const e={};Xn.lastIndex=0;let i;for(;i=Xn.exec(t);)e[i[3]]=`<svg ${i[1]}svg>`;return e});function Ll(t){const e=Yn(t);e&&h(t,"--bdt-animation-stroke",e)}const ws=".bdt-disabled *, .bdt-disabled, [disabled]";var Jn={mixins:[Vt],args:"connect",props:{connect:String,toggle:String,itemNav:String,active:Number,followFocus:Boolean,swiping:Boolean},data:{connect:"~.bdt-switcher",toggle:"> * > :first-child",itemNav:!1,active:0,cls:"bdt-active",attrItem:"bdt-switcher-item",selVertical:".bdt-nav",followFocus:!1,swiping:!0},computed:{connects({connect:t},e){return Se(t,e)},connectChildren(){return this.connects.map(t=>T(t)).flat()},toggles({toggle:t},e){return z(t,e)},children(){return T(this.$el).filter(t=>this.toggles.some(e=>B(e,t)))}},watch:{connects(t){this.swiping&&h(t,"touchAction","pan-y pinch-zoom"),this.$emit()},connectChildren(){let t=Math.max(0,this.index());for(const e of this.connects)T(e).forEach((i,s)=>q(i,this.cls,s===t));this.$emit()},toggles(t){this.$emit();const e=this.index();this.show(~e?e:t[this.active]||t[0])}},connected(){p(this.$el,"role","tablist")},observe:[Ne({targets:({connectChildren:t})=>t}),Sn({target:({connects:t})=>t,filter:({swiping:t})=>t})],events:[{name:"click keydown",delegate(){return this.toggle},handler(t){!C(t.current,ws)&&(t.type==="click"||t.keyCode===I.SPACE)&&(t.preventDefault(),this.show(t.current))}},{name:"keydown",delegate(){return this.toggle},handler(t){const{current:e,keyCode:i}=t,s=C(this.$el,this.selVertical);let n=i===I.HOME?0:i===I.END?"last":i===I.LEFT&&!s||i===I.UP&&s?"previous":i===I.RIGHT&&!s||i===I.DOWN&&s?"next":-1;if(~n){t.preventDefault();const o=this.toggles.filter(a=>!C(a,ws)),r=o[rt(n,o,o.indexOf(e))];r.focus(),this.followFocus&&this.show(r)}}},{name:"click",el(){return this.connects.concat(this.itemNav?Se(this.itemNav,this.$el):[])},delegate(){return`[${this.attrItem}],[data-${this.attrItem}]`},handler(t){U(t.target,"a,button")&&(t.preventDefault(),this.show(tt(t.current,this.attrItem)))}},{name:"swipeRight swipeLeft",filter(){return this.swiping},el(){return this.connects},handler({type:t}){this.show(Zt(t,"Left")?"next":"previous")}}],update(){var t;p(this.connects,"role","presentation"),p(T(this.$el),"role","presentation");for(const e in this.toggles){const i=this.toggles[e],s=(t=this.connects[0])==null?void 0:t.children[e];p(i,"role","tab"),s&&(i.id=At(this,i,`-tab-${e}`),s.id=At(this,s,`-tabpanel-${e}`),p(i,"aria-controls",s.id),p(s,{role:"tabpanel","aria-labelledby":i.id}))}p(this.$el,"aria-orientation",C(this.$el,this.selVertical)?"vertical":null)},methods:{index(){return yt(this.children,t=>P(t,this.cls))},show(t){const e=this.toggles.filter(r=>!C(r,ws)),i=this.index(),s=rt(!Ve(t)||m(e,t)?t:0,e,rt(this.toggles[i],e)),n=rt(e[s],this.toggles);this.children.forEach((r,a)=>{q(r,this.cls,n===a),p(this.toggles[a],{"aria-selected":n===a,tabindex:n===a?null:-1})});const o=i>=0&&i!==s;this.connects.forEach(async({children:r})=>{const a=Qt(r).filter((l,c)=>c!==n&&P(l,this.cls));await this.toggleElement(a,!1,o),await this.toggleElement(r[n],!0,o)})}}},Wl={mixins:[st],extends:Jn,props:{media:Boolean},data:{media:960,attrItem:"bdt-tab-item",selVertical:".bdt-tab-left,.bdt-tab-right"},connected(){const t=P(this.$el,"bdt-tab-left")?"bdt-tab-left":P(this.$el,"bdt-tab-right")?"bdt-tab-right":!1;t&&this.$create("toggle",this.$el,{cls:t,mode:"media",media:this.media})}};const Rl=32;var jl={mixins:[yi,Vt],args:"target",props:{href:String,target:null,mode:"list",queued:Boolean},data:{href:!1,target:!1,mode:"click",queued:!0},computed:{target({target:t},e){return t=Se(t||e.hash,e),t.length&&t||[e]}},connected(){m(this.mode,"media")||(Ze(this.$el)||p(this.$el,"tabindex","0"),!this.cls&&G(this.$el,"a")&&p(this.$el,"role","button"))},observe:Ne({target:({target:t})=>t}),events:[{name:vt,filter(){return m(this.mode,"hover")},handler(t){this._preventClick=null,!(!Ct(t)||this._showState||this.$el.disabled)&&(v(this.$el,"focus"),L(document,vt,()=>v(this.$el,"blur"),!0,e=>!B(e.target,this.$el)),m(this.mode,"click")&&(this._preventClick=!0))}},{name:`${Rt} ${ue} focus blur`,filter(){return m(this.mode,"hover")},handler(t){if(Ct(t)||this.$el.disabled)return;const e=m([Rt,"focus"],t.type),i=this.isToggled(this.target);if(!(!e&&(t.type===ue&&C(this.$el,":focus")||t.type==="blur"&&C(this.$el,":hover")))){if(this._showState&&e&&i!==this._showState){e||(this._showState=null);return}this._showState=e?i:null,this.toggle(`toggle${e?"show":"hide"}`)}}},{name:"keydown",filter(){return m(this.mode,"click")&&!G(this.$el,"input")},handler(t){t.keyCode===Rl&&(t.preventDefault(),this.$el.click())}},{name:"click",filter(){return["click","hover"].some(t=>m(this.mode,t))},handler(t){let e;(this._preventClick||U(t.target,'a[href="#"], a[href=""]')||(e=U(t.target,"a[href]"))&&(!this.isToggled(this.target)||e.hash&&C(this.target,e.hash)))&&t.preventDefault(),!this._preventClick&&m(this.mode,"click")&&this.toggle()}},{name:"mediachange",filter(){return m(this.mode,"media")},el(){return this.target},handler(t,e){e.matches^this.isToggled(this.target)&&this.toggle()}}],methods:{async toggle(t){if(!v(this.target,t||"toggle",[this]))return;if(gt(this.$el,"aria-expanded")&&p(this.$el,"aria-expanded",!this.isToggled(this.target)),!this.queued)return this.toggleElement(this.target);const e=this.target.filter(s=>P(s,this.clsLeave));if(e.length){for(const s of this.target){const n=m(e,s);this.toggleElement(s,n,n)}return}const i=this.target.filter(this.isToggled);await this.toggleElement(i,!1)&&await this.toggleElement(this.target.filter(s=>!m(i,s)),!0)}}},ql=Object.freeze({__proto__:null,Accordion:In,Alert:la,Close:tl,Cover:ca,Drop:_n,DropParentIcon:Yt,Dropdown:_n,Dropnav:An,FormCustom:ba,Grid:xa,HeightMatch:Sa,HeightViewport:Ta,Icon:ps,Img:hl,Leader:ml,Margin:Bn,Marker:el,Modal:xl,Nav:kl,NavParentIcon:Ja,Navbar:Sl,NavbarParentIcon:Yt,NavbarToggleIcon:Qa,Offcanvas:Il,OverflowAuto:El,OverlayIcon:Yt,PaginationNext:sl,PaginationPrevious:nl,Responsive:Pl,Scroll:_l,Scrollspy:Dl,ScrollspyNav:Bl,SearchIcon:Ka,SlidenavNext:Hn,SlidenavPrevious:Hn,Spinner:Za,Sticky:Ml,Svg:Nl,Switcher:Jn,Tab:Wl,Toggle:jl,Totop:il,Video:Cn});It(ql,(t,e)=>ft.component(e,t)),Zr(ft);const Ul=["days","hours","minutes","seconds"];var Vl={mixins:[st],props:{date:String,clsWrapper:String,role:String},data:{date:"",clsWrapper:".bdt-countdown-%unit%",role:"timer"},connected(){p(this.$el,"role",this.role),this.date=$(Date.parse(this.$props.date)),this.end=!1,this.start()},disconnected(){this.stop()},events:{name:"visibilitychange",el(){return document},handler(){document.hidden?this.stop():this.start()}},methods:{start(){this.stop(),this.update(),this.timer||(v(this.$el,"countdownstart"),this.timer=setInterval(this.update,1e3))},stop(){this.timer&&(clearInterval(this.timer),v(this.$el,"countdownstop"),this.timer=null)},update(){const t=Yl(this.date);t.total||(this.stop(),this.end||(v(this.$el,"countdownend"),this.end=!0));for(const e of Ul){const i=w(this.clsWrapper.replace("%unit%",e),this.$el);if(!i)continue;let s=String(Math.trunc(t[e]));s=s.length<2?`0${s}`:s,i.textContent!==s&&(s=s.split(""),s.length!==i.children.length&&Nt(i,s.map(()=>"<span></span>").join("")),s.forEach((n,o)=>i.children[o].textContent=n))}}}};function Yl(t){const e=Math.max(0,t-Date.now())/1e3;return{total:e,seconds:e%60,minutes:e/60%60,hours:e/60/60%24,days:e/60/60/24}}const bs="bdt-transition-leave",$s="bdt-transition-enter";function Kn(t,e,i,s=0){const n=ki(e,!0),o={opacity:1},r={opacity:0},a=u=>()=>n===ki(e)?u():Promise.reject(),l=a(async()=>{y(e,bs),await Promise.all(Qn(e).map((u,f)=>new Promise(d=>setTimeout(()=>E.start(u,r,i/2,"ease").then(d),f*s)))),M(e,bs)}),c=a(async()=>{const u=et(e);y(e,$s),t(),h(T(e),{opacity:0}),await Gl();const f=T(e),d=et(e);h(e,"alignContent","flex-start"),et(e,u);const g=Qn(e);h(f,r);const A=g.map(async(N,F)=>{await Xl(F*s),await E.start(N,o,i/2,"ease")});u!==d&&A.push(E.start(e,{height:d},i/2+g.length*s,"ease")),await Promise.all(A).then(()=>{M(e,$s),n===ki(e)&&(h(e,{height:"",alignContent:""}),h(f,{opacity:""}),delete e.dataset.transition)})});return P(e,bs)?Zn(e).then(c):P(e,$s)?Zn(e).then(l).then(c):l().then(c)}function ki(t,e){return e&&(t.dataset.transition=1+ki(t)),St(t.dataset.transition)||0}function Zn(t){return Promise.all(T(t).filter(E.inProgress).map(e=>new Promise(i=>L(e,"transitionend transitioncanceled",i))))}function Qn(t){return ds(T(t)).reduce((e,i)=>e.concat(Xe(i.filter(s=>ss(s)),"offsetLeft")),[])}function Gl(){return new Promise(t=>requestAnimationFrame(t))}function Xl(t){return new Promise(e=>setTimeout(e,t))}async function Jl(t,e,i){await io();let s=T(e);const n=s.map(d=>to(d,!0)),o={...h(e,["height","padding"]),display:"block"};await Promise.all(s.concat(e).map(E.cancel)),t(),s=s.concat(T(e).filter(d=>!m(s,d))),await Promise.resolve(),J.flush();const r=p(e,"style"),a=h(e,["height","padding"]),[l,c]=Kl(e,s,n),u=s.map(d=>({style:p(d,"style")}));s.forEach((d,g)=>c[g]&&h(d,c[g])),h(e,o),v(e,"scroll"),J.flush(),await io();const f=s.map((d,g)=>O(d)===e&&E.start(d,l[g],i,"ease")).concat(E.start(e,a,i,"ease"));try{await Promise.all(f),s.forEach((d,g)=>{p(d,u[g]),O(d)===e&&h(d,"display",l[g].opacity===0?"none":"")}),p(e,"style",r)}catch{p(s,"style",""),Zl(e,o)}}function to(t,e){const i=h(t,"zIndex");return j(t)?{display:"",opacity:e?h(t,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:i==="auto"?oe(t):i,...eo(t)}:!1}function Kl(t,e,i){const s=e.map((o,r)=>O(o)&&r in i?i[r]?j(o)?eo(o):{opacity:0}:{opacity:j(o)?1:0}:!1),n=s.map((o,r)=>{const a=O(e[r])===t&&(i[r]||to(e[r]));if(!a)return!1;if(!o)delete a.opacity;else if(!("opacity"in o)){const{opacity:l}=a;l%1?o.opacity=1:delete a.opacity}return a});return[s,n]}function Zl(t,e){for(const i in e)h(t,i,"")}function eo(t){const{height:e,width:i}=_(t);return{height:e,width:i,transform:"",...ni(t),...h(t,["marginTop","marginLeft"])}}function io(){return new Promise(t=>requestAnimationFrame(t))}var so={props:{duration:Number,animation:Boolean},data:{duration:150,animation:"slide"},methods:{animate(t,e=this.$el){const i=this.animation;return(i==="fade"?Kn:i==="delayed-fade"?(...n)=>Kn(...n,40):i?Jl:()=>(t(),Promise.resolve()))(t,e,this.duration).catch(k)}}},Ql={mixins:[so],args:"target",props:{target:String,selActive:Boolean},data:{target:"",selActive:!1,attrItem:"bdt-filter-control",cls:"bdt-active",duration:250},computed:{toggles({attrItem:t},e){return z(`[${t}],[data-${t}]`,e)},children({target:t},e){return z(`${t} > *`,e)}},watch:{toggles(t){this.updateState();const e=z(this.selActive,this.$el);for(const i of t){this.selActive!==!1&&q(i,this.cls,m(e,i));const s=oh(i);G(s,"a")&&p(s,"role","button")}},children(t,e){e&&this.updateState()}},events:{name:"click keydown",delegate(){return`[${this.attrItem}],[data-${this.attrItem}]`},handler(t){t.type==="keydown"&&t.keyCode!==I.SPACE||U(t.target,"a,button")&&(t.preventDefault(),this.apply(t.current))}},methods:{apply(t){const e=this.getState(),i=oo(t,this.attrItem,this.getState());th(e,i)||this.setState(i)},getState(){return this.toggles.filter(t=>P(t,this.cls)).reduce((t,e)=>oo(e,this.attrItem,t),{filter:{"":""},sort:[]})},async setState(t,e=!0){t={filter:{"":""},sort:[],...t},v(this.$el,"beforeFilter",[this,t]);for(const i of this.toggles)q(i,this.cls,ih(i,this.attrItem,t));await Promise.all(z(this.target,this.$el).map(i=>{const s=()=>{eh(t,i,T(i)),this.$update(this.$el)};return e?this.animate(s,i):s()})),v(this.$el,"afterFilter",[this])},updateState(){J.write(()=>this.setState(this.getState(),!1))}}};function no(t,e){return De(tt(t,e),["filter"])}function th(t,e){return["filter","sort"].every(i=>Ge(t[i],e[i]))}function eh(t,e,i){const s=sh(t);i.forEach(r=>h(r,"display",s&&!C(r,s)?"none":""));const[n,o]=t.sort;if(n){const r=nh(i,n,o);Ge(r,i)||W(e,r)}}function oo(t,e,i){const{filter:s,group:n,sort:o,order:r="asc"}=no(t,e);return(s||Y(o))&&(n?s?(delete i.filter[""],i.filter[n]=s):(delete i.filter[n],(be(i.filter)||""in i.filter)&&(i.filter={"":s||""})):i.filter={"":s||""}),Y(o)||(i.sort=[o,r]),i}function ih(t,e,{filter:i={"":""},sort:[s,n]}){const{filter:o="",group:r="",sort:a,order:l="asc"}=no(t,e);return Y(a)?r in i&&o===i[r]||!o&&r&&!(r in i)&&!i[""]:s===a&&n===l}function sh({filter:t}){let e="";return It(t,i=>e+=i||""),e}function nh(t,e,i){return[...t].sort((s,n)=>tt(s,e).localeCompare(tt(n,e),void 0,{numeric:!0})*(i==="asc"||-1))}function oh(t){return w("a,button",t)||t}var xs={slide:{show(t){return[{transform:R(t*-100)},{transform:R()}]},percent(t){return He(t)},translate(t,e){return[{transform:R(e*-100*t)},{transform:R(e*100*(1-t))}]}}};function He(t){return Math.abs(h(t,"transform").split(",")[4]/t.offsetWidth)||0}function R(t=0,e="%"){return t+=t?e:"",`translate3d(${t}, 0, 0)`}function pe(t){return`scale3d(${t}, ${t}, 1)`}var ro={...xs,fade:{show(){return[{opacity:0},{opacity:1}]},percent(t){return 1-h(t,"opacity")},translate(t){return[{opacity:1-t},{opacity:t}]}},scale:{show(){return[{opacity:0,transform:pe(1-.2)},{opacity:1,transform:pe(1)}]},percent(t){return 1-h(t,"opacity")},translate(t){return[{opacity:1-t,transform:pe(1-.2*t)},{opacity:t,transform:pe(1-.2+.2*t)}]}}};function rh(t,e,i,{animation:s,easing:n}){const{percent:o,translate:r,show:a=k}=s,l=a(i);let c;return{dir:i,show(u,f=0,d){const g=d?"linear":n;return u-=Math.round(u*Z(f,-1,1)),this.translate(f),Si(e,"itemin",{percent:f,duration:u,timing:g,dir:i}),Si(t,"itemout",{percent:1-f,duration:u,timing:g,dir:i}),new Promise(A=>{c||(c=A),Promise.all([E.start(e,l[1],u,g),E.start(t,l[0],u,g)]).then(()=>{this.reset(),c()},k)})},cancel(){return E.cancel([e,t])},reset(){for(const u in l[0])h([e,t],u,"")},async forward(u,f=this.percent()){return await this.cancel(),this.show(u,f,!0)},translate(u){this.reset();const f=r(u,i);h(e,f[1]),h(t,f[0]),Si(e,"itemtranslatein",{percent:u,dir:i}),Si(t,"itemtranslateout",{percent:1-u,dir:i})},percent(){return o(t||e,e,i)},getDistance(){return t==null?void 0:t.offsetWidth}}}function Si(t,e,i){v(t,Mt(e,!1,!1,i))}var ah={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s",role:"String"},data:{selNav:!1,role:"region"},computed:{nav({selNav:t},e){return w(t,e)},navChildren(){return T(this.nav)},selNavItem({attrItem:t}){return`[${t}],[data-${t}]`},navItems(t,e){return z(this.selNavItem,e)}},watch:{nav(t,e){p(t,"role","tablist"),e&&this.$emit()},list(t){p(t,"role","presentation")},navChildren(t){p(t,"role","presentation")},navItems(t){for(const e of t){const i=tt(e,this.attrItem),s=w("a,button",e)||e;let n,o=null;if(xt(i)){const r=St(i),a=this.slides[r];a&&(a.id||(a.id=At(this,a,`-item-${i}`)),o=a.id),n=this.t("slideX",$(i)+1),p(s,"role","tab")}else this.list&&(this.list.id||(this.list.id=At(this,this.list,"-items")),o=this.list.id),n=this.t(i);p(s,{"aria-controls":o,"aria-label":p(s,"aria-label")||n})}},slides(t){t.forEach((e,i)=>p(e,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",i+1,this.length),"aria-roledescription":this.nav?null:"slide"}))},length(t){const e=this.navChildren.length;if(this.nav&&t!==e){Ji(this.nav);for(let i=0;i<t;i++)W(this.nav,`<li ${this.attrItem}="${i}"><a href></a></li>`)}}},connected(){p(this.$el,{role:this.role,ariaRoleDescription:"carousel"})},update:[{write(){this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate(){return this.selNavItem},handler(t){U(t.target,"a,button")&&(t.type==="click"||t.keyCode===I.SPACE)&&(t.preventDefault(),this.show(tt(t.current,this.attrItem)))}},{name:"itemshow",handler:"updateNav"},{name:"keydown",delegate(){return this.selNavItem},handler(t){const{current:e,keyCode:i}=t,s=tt(e,this.attrItem);if(!xt(s))return;let n=i===I.HOME?0:i===I.END?"last":i===I.LEFT?"previous":i===I.RIGHT?"next":-1;~n&&(t.preventDefault(),this.show(n))}}],methods:{updateNav(){const t=this.getValidIndex();let e,i;for(const s of this.navItems){const n=tt(s,this.attrItem),o=w("a,button",s)||s;if(xt(n)){const a=St(n)===t;q(s,this.clsActive,a),p(o,{"aria-selected":a,tabindex:a?null:-1}),a&&(i=o),e||(e=C(o,":focus"))}else q(s,"bdt-invisible",this.finite&&(n==="previous"&&t===0||n==="next"&&t>=this.maxIndex));e&&i&&i.focus()}}}};const ys={passive:!1,capture:!0},ao={passive:!0,capture:!0},lh="touchstart mousedown",ks="touchmove mousemove",lo="touchend touchcancel mouseup click input scroll";var hh={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=i=>{const s=ae(i).x*(X?-1:1);this.prevPos=s===this.pos?this.prevPos:this.pos,this.pos=s,e(i)}}},events:[{name:lh,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||!Ct(t)&&ch(t.target)||U(t.target,xe)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:ks,el(){return this.list},handler:k,...ys}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,x(document,ks,this.move,ys),x(document,lo,this.end,ao),h(this.list,"userSelect","none")},move(t){const e=this.pos-this.drag;if(e===0||this.prevPos===this.pos||!this.dragging&&Math.abs(e)<this.threshold)return;h(this.list,"pointerEvents","none"),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;let{slides:i,prevIndex:s}=this,n=Math.abs(e),o=this.getIndex(s+this.dir),r=this._getDistance(s,o);for(;o!==s&&n>r;)this.drag-=r*this.dir,s=o,n-=r,o=this.getIndex(s+this.dir),r=this._getDistance(s,o);this.percent=n/r;const a=i[s],l=i[o],c=this.index!==o,u=s===o;let f;for(const d of[this.index,this.prevIndex])m([o,s],d)||(v(i[d],"itemhidden",[this]),u&&(f=!0,this.prevIndex=s));(this.index===s&&this.prevIndex!==s||f)&&v(i[this.index],"itemshown",[this]),c&&(this.prevIndex=s,this.index=o,!u&&v(a,"beforeitemhide",[this]),v(l,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),a,!u&&l),c&&(!u&&v(a,"itemhide",[this]),v(l,"itemshow",[this]))},end(){if(Bt(document,ks,this.move,ys),Bt(document,lo,this.end,ao),this.dragging)if(this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const t=(X?this.dir*(X?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=t?this.index:this.prevIndex,t&&(this.percent=1-this.percent),this.show(this.dir>0&&!t||this.dir<0&&t?"next":"previous",!0)}h(this.list,{userSelect:"",pointerEvents:""}),this.drag=this.percent=null},_getDistance(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()||this.slides[t].offsetWidth}}};function ch(t){return h(t,"userSelect")!=="none"&&Qt(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}var uh={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){p(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){p(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el(){return document},filter(){return this.autoplay},handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||this.draggable&&C(this.$el,":focus-within")||this.pauseOnHover&&C(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}},ho={mixins:[uh,hh,ah,wi],props:{clsActivated:Boolean,easing:String,index:Number,finite:Boolean,velocity:Number},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"bdt-active",clsActivated:!1,Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){M(this.slides,this.clsActive)},computed:{duration({velocity:t},e){return co(e.offsetWidth/t)},list({selList:t},e){return w(t,e)},maxIndex(){return this.length-1},slides(){return T(this.list)},length(){return this.slides.length}},watch:{slides(t,e){e&&this.$emit()}},observe:pt(),methods:{show(t,e=!1){var i;if(this.dragging||!this.length)return;const{stack:s}=this,n=e?0:s.length,o=()=>{s.splice(n,1),s.length&&this.show(s.shift(),!0)};if(s[e?"unshift":"push"](t),!e&&s.length>1){s.length===2&&((i=this._transitioner)==null||i.forward(Math.min(this.duration,200)));return}const r=this.getIndex(this.index),a=P(this.slides,this.clsActive)&&this.slides[r],l=this.getIndex(t,this.index),c=this.slides[l];if(a===c){o();return}if(this.dir=fh(t,r),this.prevIndex=r,this.index=l,a&&!v(a,"beforeitemhide",[this])||!v(c,"beforeitemshow",[this,a])){this.index=this.prevIndex,o();return}const u=this._show(a,c,e).then(()=>{a&&v(a,"itemhidden",[this]),v(c,"itemshown",[this]),s.shift(),this._transitioner=null,requestAnimationFrame(()=>s.length&&this.show(s.shift(),!0))});return a&&v(a,"itemhide",[this]),v(c,"itemshow",[this]),u},getIndex(t=this.index,e=this.index){return Z(rt(t,this.slides,e,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(t=this.index,e=this.prevIndex){return this.getIndex(t,e)},_show(t,e,i){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:i?e.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing,...this.transitionOptions}),!i&&!t)return this._translate(1),Promise.resolve();const{length:s}=this.stack;return this._transitioner[s>1?"forward":"show"](s>1?Math.min(this.duration,75+75/(s-1)):this.duration,this.percent)},_translate(t,e=this.prevIndex,i=this.index){const s=this._getTransitioner(e===i?!1:e,i);return s.translate(t),s},_getTransitioner(t=this.prevIndex,e=this.index,i=this.dir||1,s=this.transitionOptions){return new this.Transitioner(this.slides[t]||t,this.slides[e]||e,i*(X?-1:1),s)}}};function fh(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function co(t){return .5*t+300}var uo={mixins:[ho],props:{animation:String},data:{animation:"slide",clsActivated:"bdt-transition-active",Animations:xs,Transitioner:rh},computed:{animation({animation:t,Animations:e}){return{...e[t]||e.slide,name:t}},transitionOptions(){return{animation:this.animation}}},events:{beforeitemshow({target:t}){y(t,this.clsActive)},itemshown({target:t}){y(t,this.clsActivated)},itemhidden({target:t}){M(t,this.clsActive,this.clsActivated)}}},fo={mixins:[ms,uo],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:ro,template:'<div class="bdt-lightbox bdt-overflow-hidden"> <ul class="bdt-lightbox-items"></ul> <div class="bdt-lightbox-toolbar bdt-position-top bdt-text-right bdt-transition-slide-top bdt-transition-opaque"> <button class="bdt-lightbox-toolbar-icon bdt-close-large" type="button" bdt-close></button> </div> <a class="bdt-lightbox-button bdt-position-center-left bdt-position-medium bdt-transition-fade" href bdt-slidenav-previous bdt-lightbox-item="previous"></a> <a class="bdt-lightbox-button bdt-position-center-right bdt-position-medium bdt-transition-fade" href bdt-slidenav-next bdt-lightbox-item="next"></a> <div class="bdt-lightbox-toolbar bdt-lightbox-caption bdt-position-bottom bdt-text-center bdt-transition-slide-bottom bdt-transition-opaque"></div> </div>'}),created(){const t=w(this.template),e=w(this.selList,t);this.items.forEach(()=>W(e,"<li>"));const i=w("[bdt-close]",t),s=this.t("close");i&&s&&(i.dataset.i18n=JSON.stringify({label:s})),this.$mount(W(this.container,t))},computed:{caption({selCaption:t},e){return w(t,e)}},events:[{name:`${ri} ${vt} keydown`,handler:"showControls"},{name:"click",self:!0,delegate(){return`${this.selList} > *`},handler(t){t.defaultPrevented||this.hide()}},{name:"shown",self:!0,handler(){this.showControls()}},{name:"hide",self:!0,handler(){this.hideControls(),M(this.slides,this.clsActive),E.stop(this.slides)}},{name:"hidden",self:!0,handler(){this.$destroy(!0)}},{name:"keyup",el(){return document},handler({keyCode:t}){if(!this.isToggled(this.$el)||!this.draggable)return;let e=-1;t===I.LEFT?e="previous":t===I.RIGHT?e="next":t===I.HOME?e=0:t===I.END&&(e="last"),~e&&this.show(e)}},{name:"beforeitemshow",handler(t){this.isToggled()||(this.draggable=!1,t.preventDefault(),this.toggleElement(this.$el,!0,!1),this.animation=ro.scale,M(t.target,this.clsActive),this.stack.splice(1,0,this.index))}},{name:"itemshow",handler(){Nt(this.caption,this.getItem().caption||"");for(let t=-this.preload;t<=this.preload;t++)this.loadItem(this.index+t)}},{name:"itemshown",handler(){this.draggable=this.$props.draggable}},{name:"itemload",async handler(t,e){const{source:i,type:s,alt:n="",poster:o,attrs:r={}}=e;if(this.setItem(e,"<span bdt-spinner></span>"),!i)return;let a;const l={allowfullscreen:"",style:"max-width: 100%; box-sizing: border-box;","bdt-responsive":"","bdt-video":`${this.videoAutoplay}`};if(s==="image"||i.match(/\.(avif|jpe?g|jfif|a?png|gif|svg|webp)($|\?)/i)){const c=Le("img",{src:i,alt:n,...r});x(c,"load",()=>this.setItem(e,c)),x(c,"error",()=>this.setError(e))}else if(s==="video"||i.match(/\.(mp4|webm|ogv)($|\?)/i)){const c=Le("video",{src:i,poster:o,controls:"",playsinline:"","bdt-video":`${this.videoAutoplay}`,...r});x(c,"loadedmetadata",()=>this.setItem(e,c)),x(c,"error",()=>this.setError(e))}else if(s==="iframe"||i.match(/\.(html|php)($|\?)/i))this.setItem(e,Le("iframe",{src:i,allowfullscreen:"",class:"bdt-lightbox-iframe",...r}));else if(a=i.match(/\/\/(?:.*?youtube(-nocookie)?\..*?(?:[?&]v=|\/shorts\/)|youtu\.be\/)([\w-]{11})[&?]?(.*)?/))this.setItem(e,Le("iframe",{src:`https://www.youtube${a[1]||""}.com/embed/${a[2]}${a[3]?`?${a[3]}`:""}`,width:1920,height:1080,...l,...r}));else if(a=i.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/))try{const{height:c,width:u}=await(await fetch(`https://vimeo.com/api/oembed.json?maxwidth=1920&url=${encodeURI(i)}`,{credentials:"omit"})).json();this.setItem(e,Le("iframe",{src:`https://player.vimeo.com/video/${a[1]}${a[2]?`?${a[2]}`:""}`,width:u,height:c,...l,...r}))}catch{this.setError(e)}}}],methods:{loadItem(t=this.index){const e=this.getItem(t);this.getSlide(e).childElementCount||v(this.$el,"itemload",[e])},getItem(t=this.index){return this.items[rt(t,this.slides)]},setItem(t,e){v(this.$el,"itemloaded",[this,Nt(this.getSlide(t),e)])},getSlide(t){return this.slides[this.items.indexOf(t)]},setError(t){this.setItem(t,'<span bdt-icon="icon: bolt; ratio: 2"></span>')},showControls(){clearTimeout(this.controlsTimer),this.controlsTimer=setTimeout(this.hideControls,this.delayControls),y(this.$el,"bdt-active","bdt-transition-active")},hideControls(){M(this.$el,"bdt-active","bdt-transition-active")}}};function Le(t,e){const i=zt(`<${t}>`);return p(i,e),i}var dh={install:ph,props:{toggle:String},data:{toggle:"a"},computed:{toggles({toggle:t},e){return z(t,e)}},watch:{toggles(t){this.hide();for(const e of t)G(e,"a")&&p(e,"role","button")}},disconnected(){this.hide()},events:{name:"click",delegate(){return`${this.toggle}:not(.bdt-disabled)`},handler(t){t.preventDefault(),this.show(t.current)}},methods:{show(t){const e=Ps(this.toggles.map(po),"source");if(ee(t)){const{source:i}=po(t);t=yt(e,({source:s})=>i===s)}return this.panel=this.panel||this.$create("lightboxPanel",{...this.$props,items:e}),x(this.panel.$el,"hidden",()=>this.panel=null),this.panel.show(t)},hide(){var t;return(t=this.panel)==null?void 0:t.hide()}}};function ph(t,e){t.lightboxPanel||t.component("lightboxPanel",fo),$t(e.props,t.component("lightboxPanel").options.props)}function po(t){const e={};for(const i of["href","caption","type","poster","alt","attrs"])e[i==="href"?"source":i]=tt(t,i);return e.attrs=De(e.attrs),e}var gh={mixins:[ze],functional:!0,args:["message","status"],data:{message:"",status:"",timeout:5e3,group:null,pos:"top-center",clsContainer:"bdt-notification",clsClose:"bdt-notification-close",clsMsg:"bdt-notification-message"},install:mh,computed:{marginProp({pos:t}){return`margin${ot(t,"top")?"Top":"Bottom"}`},startProps(){return{opacity:0,[this.marginProp]:-this.$el.offsetHeight}}},created(){const t=w(`.${this.clsContainer}-${this.pos}`,this.container)||W(this.container,`<div class="${this.clsContainer} ${this.clsContainer}-${this.pos}" style="display: block"></div>`);this.$mount(W(t,`<div class="${this.clsMsg}${this.status?` ${this.clsMsg}-${this.status}`:""}" role="alert"> <a href class="${this.clsClose}" data-bdt-close></a> <div>${this.message}</div> </div>`))},async connected(){const t=$(h(this.$el,this.marginProp));await E.start(h(this.$el,this.startProps),{opacity:1,[this.marginProp]:t}),this.timeout&&(this.timer=setTimeout(this.close,this.timeout))},events:{click(t){U(t.target,'a[href="#"],a[href=""]')&&t.preventDefault(),this.close()},[Rt](){this.timer&&clearTimeout(this.timer)},[ue](){this.timeout&&(this.timer=setTimeout(this.close,this.timeout))}},methods:{async close(t){const e=i=>{const s=O(i);v(i,"close",[this]),lt(i),s!=null&&s.hasChildNodes()||lt(s)};this.timer&&clearTimeout(this.timer),t||await E.start(this.$el,this.startProps),e(this.$el)}}};function mh(t){t.notification.closeAll=function(e,i){Tt(document.body,s=>{const n=t.getComponent(s,"notification");n&&(!e||e===n.group)&&n.close(i)})}}const Ii={x:Ci,y:Ci,rotate:Ci,scale:Ci,color:Ss,backgroundColor:Ss,borderColor:Ss,blur:Xt,hue:Xt,fopacity:Xt,grayscale:Xt,invert:Xt,saturate:Xt,sepia:Xt,opacity:wh,stroke:bh,bgx:vo,bgy:vo},{keys:go}=Object;var mo={mixins:[yi],props:xo(go(Ii),"list"),data:xo(go(Ii),void 0),computed:{props(t,e){const i={};for(const n in t)n in Ii&&!Y(t[n])&&(i[n]=t[n].slice());const s={};for(const n in i)s[n]=Ii[n](n,e,i[n],i);return s}},events:{load(){this.$emit()}},methods:{reset(){for(const t in this.getCss(0))h(this.$el,t,"")},getCss(t){const e={transform:"",filter:""};for(const i in this.props)this.props[i](e,Z(t));return e.willChange=Object.keys(e).filter(i=>e[i]!=="").map(Qe).join(","),e}}};function Ci(t,e,i){let s=Ei(i)||{x:"px",y:"px",rotate:"deg"}[t]||"",n;return t==="x"||t==="y"?(t=`translate${Et(t)}`,n=o=>$($(o).toFixed(s==="px"?0:6))):t==="scale"&&(s="",n=o=>Ei([o])?ht(o,"width",e,!0)/e.offsetWidth:o),i.length===1&&i.unshift(t==="scale"?1:0),i=ge(i,n),(o,r)=>{o.transform+=` ${t}(${We(i,r)}${s})`}}function Ss(t,e,i){return i.length===1&&i.unshift(Re(e,t,"")),i=ge(i,s=>vh(e,s)),(s,n)=>{const[o,r,a]=$o(i,n),l=o.map((c,u)=>(c+=a*(r[u]-c),u===3?$(c):parseInt(c,10))).join(",");s[t]=`rgba(${l})`}}function vh(t,e){return Re(t,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map($)}function Xt(t,e,i){i.length===1&&i.unshift(0);const s=Ei(i)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,i=ge(i),(n,o)=>{const r=We(i,o);n.filter+=` ${t}(${r+s})`}}function wh(t,e,i){return i.length===1&&i.unshift(Re(e,t,"")),i=ge(i),(s,n)=>{s[t]=We(i,n)}}function bh(t,e,i){i.length===1&&i.unshift(0);const s=Ei(i),n=Yn(e);return i=ge(i.reverse(),o=>(o=$(o),s==="%"?o*n/100:o)),i.some(([o])=>o)?(h(e,"strokeDasharray",n),(o,r)=>{o.strokeDashoffset=We(i,r)}):k}function vo(t,e,i,s){i.length===1&&i.unshift(0);const n=t==="bgy"?"height":"width";s[t]=ge(i,a=>ht(a,n,e));const o=["bgx","bgy"].filter(a=>a in s);if(o.length===2&&t==="bgx")return k;if(Re(e,"backgroundSize","")==="cover")return $h(t,e,i,s);const r={};for(const a of o)r[a]=wo(e,a);return bo(o,r,s)}function $h(t,e,i,s){const n=xh(e);if(!n.width)return k;const o={width:e.offsetWidth,height:e.offsetHeight},r=["bgx","bgy"].filter(u=>u in s),a={};for(const u of r){const f=s[u].map(([F])=>F),d=Math.min(...f),g=Math.max(...f),A=f.indexOf(d)<f.indexOf(g),N=g-d;a[u]=`${(A?-N:0)-(A?d:g)}px`,o[u==="bgy"?"height":"width"]+=N}const l=Ke.cover(n,o);for(const u of r){const f=u==="bgy"?"height":"width",d=l[f]-o[f];a[u]=`max(${wo(e,u)},-${d}px) + ${a[u]}`}const c=bo(r,a,s);return(u,f)=>{c(u,f),u.backgroundSize=`${l.width}px ${l.height}px`,u.backgroundRepeat="no-repeat"}}function wo(t,e){return Re(t,`background-position-${e.substr(-1)}`,"")}function bo(t,e,i){return function(s,n){for(const o of t){const r=We(i[o],n);s[`background-position-${o.substr(-1)}`]=`calc(${e[o]} + ${r}px)`}}}const Ti={};function xh(t){const e=h(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(Ti[e])return Ti[e];const i=new Image;return e&&(i.src=e,!i.naturalWidth)?(i.onload=()=>{Ti[e]=Is(i),v(t,Mt("load",!1))},Is(i)):Ti[e]=Is(i)}function Is(t){return{width:t.naturalWidth,height:t.naturalHeight}}function ge(t,e=$){const i=[],{length:s}=t;let n=0;for(let o=0;o<s;o++){let[r,a]=D(t[o])?t[o].trim().split(/ (?![^(]*\))/):[t[o]];if(r=e(r),a=a?$(a)/100:null,o===0?a===null?a=0:a&&i.push([r,0]):o===s-1&&(a===null?a=1:a!==1&&(i.push([r,a]),a=1)),i.push([r,a]),a===null)n++;else if(n){const l=i[o-n-1][1],c=(a-l)/(n+1);for(let u=n;u>0;u--)i[o-u][1]=l+c*(n-u+1);n=0}}return i}function $o(t,e){const i=yt(t.slice(1),([,s])=>e<=s)+1;return[t[i-1][0],t[i][0],(e-t[i-1][1])/(t[i][1]-t[i-1][1])]}function We(t,e){const[i,s,n]=$o(t,e);return Ye(i)?i+Math.abs(i-s)*n*(i<s?1:-1):+s}const yh=/^-?\d+(\S+)?/;function Ei(t,e){var i;for(const s of t){const n=(i=s.match)==null?void 0:i.call(s,yh);if(n)return n[1]}return e}function Re(t,e,i){const s=t.style[e],n=h(h(t,e,i),e);return t.style[e]=s,n}function xo(t,e){return t.reduce((i,s)=>(i[s]=e,i),{})}var kh={mixins:[mo],props:{target:String,viewport:Number,easing:Number,start:String,end:String},data:{target:!1,viewport:1,easing:1,start:0,end:0},computed:{target({target:t},e){return yo(t&&at(t,e)||e)},start({start:t}){return ht(t,"height",this.target,!0)},end({end:t,viewport:e}){return ht(t||(e=(1-e)*100)&&`${e}vh+${e}%`,"height",this.target,!0)}},observe:[pt({target:({$el:t,target:e})=>[t,e]}),pi()],update:{read({percent:t},e){if(e.has("scroll")||(t=!1),!j(this.$el))return!1;if(!this.matchMedia)return;const i=t;return t=Sh(ns(this.target,this.start,this.end),this.easing),{percent:t,style:i===t?!1:this.getCss(t)}},write({style:t}){if(!this.matchMedia){this.reset();return}t&&h(this.$el,t)},events:["scroll","resize"]}};function Sh(t,e){return e>=0?Math.pow(t,e+1):1-Math.pow(1-t,1-e)}function yo(t){return t?"offsetTop"in t?t:yo(O(t)):document.documentElement}var ko={update:{write(){if(this.stack.length||this.dragging)return;const t=this.getValidIndex(this.index);!~this.prevIndex||this.index!==t?this.show(t):this._translate(1,this.prevIndex,this.index)},events:["resize"]}},So={observe:Ne({target:({slides:t})=>t,targets:t=>t.getAdjacentSlides()})};function Ih(t,e,i,{center:s,easing:n,list:o}){const r=t?je(t,o,s):je(e,o,s)+b(e).width*i,a=e?je(e,o,s):r+b(t).width*i*(X?-1:1);let l;return{dir:i,show(c,u=0,f){const d=f?"linear":n;return c-=Math.round(c*Z(u,-1,1)),this.translate(u),u=t?u:Z(u,0,1),Cs(this.getItemIn(),"itemin",{percent:u,duration:c,timing:d,dir:i}),t&&Cs(this.getItemIn(!0),"itemout",{percent:1-u,duration:c,timing:d,dir:i}),new Promise(g=>{l||(l=g),E.start(o,{transform:R(-a*(X?-1:1),"px")},c,d).then(l,k)})},cancel(){return E.cancel(o)},reset(){h(o,"transform","")},async forward(c,u=this.percent()){return await this.cancel(),this.show(c,u,!0)},translate(c){const u=this.getDistance()*i*(X?-1:1);h(o,"transform",R(Z(-a+(u-u*c),-Pi(o),b(o).width)*(X?-1:1),"px"));const f=this.getActives(),d=this.getItemIn(),g=this.getItemIn(!0);c=t?Z(c,-1,1):0;for(const A of T(o)){const N=m(f,A),F=A===d,Ot=A===g,Ts=F||!Ot&&(N||i*(X?-1:1)===-1^_i(A,o)>_i(t||e));Cs(A,`itemtranslate${Ts?"in":"out"}`,{dir:i,percent:Ot?1-c:F?c:N?1:0})}},percent(){return Math.abs((h(o,"transform").split(",")[4]*(X?-1:1)+r)/(a-r))},getDistance(){return Math.abs(a-r)},getItemIn(c=!1){let u=this.getActives(),f=Co(o,je(e||t,o,s));if(c){const d=u;u=f,f=d}return f[yt(f,d=>!m(u,d))]},getActives(){return Co(o,je(t||e,o,s))}}}function je(t,e,i){const s=_i(t,e);return i?s-Ch(t,e):Math.min(s,Io(e))}function Io(t){return Math.max(0,Pi(t)-b(t).width)}function Pi(t){return Dt(T(t),e=>b(e).width)}function Ch(t,e){return b(e).width/2-b(t).width/2}function _i(t,e){return t&&(ni(t).left+(X?b(t).width-b(e).width:0))*(X?-1:1)||0}function Co(t,e){e-=1;const i=b(t).width,s=e+i+2;return T(t).filter(n=>{const o=_i(n,t),r=o+Math.min(b(n).width,i);return o>=e&&r<=s})}function Cs(t,e,i){v(t,Mt(e,!1,!1,i))}var Th={mixins:[st,ho,ko,So],props:{center:Boolean,sets:Boolean},data:{center:!1,sets:!1,attrItem:"bdt-slider-item",selList:".bdt-slider-items",selNav:".bdt-slider-nav",clsContainer:"bdt-slider-container",Transitioner:Ih},computed:{avgWidth(){return Pi(this.list)/this.length},finite({finite:t}){return t||Eh(this.list,this.center)},maxIndex(){if(!this.finite||this.center&&!this.sets)return this.length-1;if(this.center)return se(this.sets);let t=0;const e=Io(this.list),i=yt(this.slides,s=>{if(t>=e)return!0;t+=b(s).width});return~i?i:this.length-1},sets({sets:t}){if(!t)return;let e=0;const i=[],s=b(this.list).width;for(let n=0;n<this.length;n++){const o=b(this.slides[n]).width;e+o>s&&(e=0),this.center?e<s/2&&e+o+b(rt(+n+1,this.slides)).width/2>s/2&&(i.push(+n),e=s/2-o/2):e===0&&i.push(Math.min(+n,this.maxIndex)),e+=o}if(i.length)return i},transitionOptions(){return{center:this.center,list:this.list}},slides(){return T(this.list).filter(j)}},connected(){q(this.$el,this.clsContainer,!w(`.${this.clsContainer}`,this.$el))},observe:pt({target:({slides:t})=>t}),update:{write(){for(const t of this.navItems){const e=St(tt(t,this.attrItem));e!==!1&&(t.hidden=!this.maxIndex||e>this.maxIndex||this.sets&&!m(this.sets,e))}this.length&&!this.dragging&&!this.stack.length&&(this.reorder(),this._translate(1)),this.updateActiveClasses()},events:["resize"]},events:{beforeitemshow(t){!this.dragging&&this.sets&&this.stack.length<2&&!m(this.sets,this.index)&&(this.index=this.getValidIndex());const e=Math.abs(this.index-this.prevIndex+(this.dir>0&&this.index<this.prevIndex||this.dir<0&&this.index>this.prevIndex?(this.maxIndex+1)*this.dir:0));if(!this.dragging&&e>1){for(let s=0;s<e;s++)this.stack.splice(1,0,this.dir>0?"next":"previous");t.preventDefault();return}const i=this.dir<0||!this.slides[this.prevIndex]?this.index:this.prevIndex;this.duration=co(this.avgWidth/this.velocity)*(b(this.slides[i]).width/this.avgWidth),this.reorder()},itemshow(){~this.prevIndex&&y(this._getTransitioner().getItemIn(),this.clsActive)},itemshown(){this.updateActiveClasses()}},methods:{reorder(){if(this.finite){h(this.slides,"order","");return}const t=this.dir>0&&this.slides[this.prevIndex]?this.prevIndex:this.index;if(this.slides.forEach((n,o)=>h(n,"order",this.dir>0&&o<t?1:this.dir<0&&o>=this.index?-1:"")),!this.center)return;const e=this.slides[t];let i=b(this.list).width/2-b(e).width/2,s=0;for(;i>0;){const n=this.getIndex(--s+t,t),o=this.slides[n];h(o,"order",n>t?-2:-1),i-=b(o).width}},updateActiveClasses(){const t=this._getTransitioner(this.index).getActives(),e=[this.clsActive,(!this.sets||m(this.sets,$(this.index)))&&this.clsActivated||""];for(const i of this.slides){const s=m(t,i);q(i,e,s),p(i,"aria-hidden",!s);for(const n of z(ye,i))bt(n,"_tabindex")||(n._tabindex=p(n,"tabindex")),p(n,"tabindex",s?n._tabindex:-1)}},getValidIndex(t=this.index,e=this.prevIndex){if(t=this.getIndex(t,e),!this.sets)return t;let i;do{if(m(this.sets,t))return t;i=t,t=this.getIndex(t+this.dir,e)}while(t!==i);return t},getAdjacentSlides(){const{width:t}=b(this.list),e=-t,i=t*2,s=b(this.slides[this.index]).width,n=this.center?t/2-s/2:0,o=new Set;for(const r of[-1,1]){let a=n+(r>0?s:0),l=0;do{const c=this.slides[this.getIndex(this.index+r+l++*r)];a+=b(c).width*r,o.add(c)}while(this.length>l&&a>e&&a<i)}return Array.from(o)}}};function Eh(t,e){if(!t||t.length<2)return!0;const{width:i}=b(t);if(!e)return Math.ceil(Pi(t))<Math.trunc(i+Ph(t));const s=T(t),n=Math.trunc(i/2);for(const o in s){const r=s[o],a=b(r).width,l=new Set([r]);let c=0;for(const u of[-1,1]){let f=a/2,d=0;for(;f<n;){const g=s[rt(+o+u+d++*u,s)];if(l.has(g))return!0;f+=b(g).width,l.add(g)}c=Math.max(c,a/2+b(s[rt(+o+u,s)]).width/2-(f-n))}if(c>Dt(s.filter(u=>!l.has(u)),u=>b(u).width))return!0}return!1}function Ph(t){return Math.max(0,...T(t).map(e=>b(e).width))}var To={mixins:[mo],data:{selItem:"!li"},beforeConnect(){this.item=at(this.selItem,this.$el)},disconnected(){this.item=null},events:[{name:"itemin itemout",self:!0,el(){return this.item},handler({type:t,detail:{percent:e,duration:i,timing:s,dir:n}}){J.read(()=>{if(!this.matchMedia)return;const o=this.getCss(Po(t,n,e)),r=this.getCss(Eo(t)?.5:n>0?1:0);J.write(()=>{h(this.$el,o),E.start(this.$el,r,i,s).catch(k)})})}},{name:"transitioncanceled transitionend",self:!0,el(){return this.item},handler(){E.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el(){return this.item},handler({type:t,detail:{percent:e,dir:i}}){J.read(()=>{if(!this.matchMedia){this.reset();return}const s=this.getCss(Po(t,i,e));J.write(()=>h(this.$el,s))})}}]};function Eo(t){return Zt(t,"in")}function Po(t,e,i){return i/=2,Eo(t)^e<0?i:1-i}var _h={...xs,fade:{show(){return[{opacity:0,zIndex:0},{zIndex:-1}]},percent(t){return 1-h(t,"opacity")},translate(t){return[{opacity:1-t,zIndex:0},{zIndex:-1}]}},scale:{show(){return[{opacity:0,transform:pe(1+.5),zIndex:0},{zIndex:-1}]},percent(t){return 1-h(t,"opacity")},translate(t){return[{opacity:1-t,transform:pe(1+.5*t),zIndex:0},{zIndex:-1}]}},pull:{show(t){return t<0?[{transform:R(30),zIndex:-1},{transform:R(),zIndex:0}]:[{transform:R(-100),zIndex:0},{transform:R(),zIndex:-1}]},percent(t,e,i){return i<0?1-He(e):He(t)},translate(t,e){return e<0?[{transform:R(30*t),zIndex:-1},{transform:R(-100*(1-t)),zIndex:0}]:[{transform:R(-t*100),zIndex:0},{transform:R(30*(1-t)),zIndex:-1}]}},push:{show(t){return t<0?[{transform:R(100),zIndex:0},{transform:R(),zIndex:-1}]:[{transform:R(-30),zIndex:-1},{transform:R(),zIndex:0}]},percent(t,e,i){return i>0?1-He(e):He(t)},translate(t,e){return e<0?[{transform:R(t*100),zIndex:0},{transform:R(-30*(1-t)),zIndex:-1}]:[{transform:R(-30*t),zIndex:-1},{transform:R(100*(1-t)),zIndex:0}]}}},Ah={mixins:[st,uo,ko,So],props:{ratio:String,minHeight:Number,maxHeight:Number},data:{ratio:"16:9",minHeight:!1,maxHeight:!1,selList:".bdt-slideshow-items",attrItem:"bdt-slideshow-item",selNav:".bdt-slideshow-nav",Animations:_h},update:{read(){if(!this.list)return!1;let[t,e]=this.ratio.split(":").map(Number);return e=e*this.list.offsetWidth/t||0,this.minHeight&&(e=Math.max(this.minHeight,e)),this.maxHeight&&(e=Math.min(this.maxHeight,e)),{height:e-le(this.list,"height","content-box")}},write({height:t}){t>0&&h(this.list,"minHeight",t)},events:["resize"]},methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}},Oh={mixins:[st,so],props:{group:String,threshold:Number,clsItem:String,clsPlaceholder:String,clsDrag:String,clsDragState:String,clsBase:String,clsNoDrag:String,clsEmpty:String,clsCustom:String,handle:String},data:{group:!1,threshold:5,clsItem:"bdt-sortable-item",clsPlaceholder:"bdt-sortable-placeholder",clsDrag:"bdt-sortable-drag",clsDragState:"bdt-drag",clsBase:"bdt-sortable",clsNoDrag:"bdt-sortable-nodrag",clsEmpty:"bdt-sortable-empty",clsCustom:"",handle:!1,pos:{}},created(){for(const t of["init","start","move","end"]){const e=this[t];this[t]=i=>{$t(this.pos,ae(i)),e(i)}}},events:{name:vt,passive:!1,handler:"init"},computed:{target(){return(this.$el.tBodies||[this.$el])[0]},items(){return T(this.target)},isEmpty(){return be(this.items)},handles({handle:t},e){return t?z(t,e):this.items}},watch:{isEmpty(t){q(this.target,this.clsEmpty,t)},handles(t,e){h(e,{touchAction:"",userSelect:""}),h(t,{touchAction:Wt?"none":"",userSelect:"none"})}},update:{write(t){if(!this.drag||!O(this.placeholder))return;const{pos:{x:e,y:i},origin:{offsetTop:s,offsetLeft:n},placeholder:o}=this;h(this.drag,{top:i-s,left:e-n});const r=this.getSortable(document.elementFromPoint(e,i));if(!r)return;const{items:a}=r;if(a.some(E.inProgress))return;const l=Nh(a,{x:e,y:i});if(a.length&&(!l||l===o))return;const c=this.getSortable(o),u=zh(r.target,l,o,e,i,r===c&&t.moved!==l);u!==!1&&(u&&o===u||(r!==c?(c.remove(o),t.moved=l):delete t.moved,r.insert(o,u),this.touched.add(r)))},events:["move"]},methods:{init(t){const{target:e,button:i,defaultPrevented:s}=t,[n]=this.items.filter(o=>B(e,o));!n||s||i>0||Wi(e)||B(e,`.${this.clsNoDrag}`)||this.handle&&!B(e,this.handle)||(t.preventDefault(),this.touched=new Set([this]),this.placeholder=n,this.origin={target:e,index:oe(n),...this.pos},x(document,ri,this.move),x(document,_t,this.end),this.threshold||this.start(t))},start(t){this.drag=Mh(this.$container,this.placeholder);const{left:e,top:i}=this.placeholder.getBoundingClientRect();$t(this.origin,{offsetLeft:this.pos.x-e,offsetTop:this.pos.y-i}),y(this.drag,this.clsDrag,this.clsCustom),y(this.placeholder,this.clsPlaceholder),y(this.items,this.clsItem),y(document.documentElement,this.clsDragState),v(this.$el,"start",[this,this.placeholder]),Dh(this.pos),this.move(t)},move(t){this.drag?this.$emit("move"):(Math.abs(this.pos.x-this.origin.x)>this.threshold||Math.abs(this.pos.y-this.origin.y)>this.threshold)&&this.start(t)},end(){if(Bt(document,ri,this.move),Bt(document,_t,this.end),!this.drag)return;Bh();const t=this.getSortable(this.placeholder);this===t?this.origin.index!==oe(this.placeholder)&&v(this.$el,"moved",[this,this.placeholder]):(v(t.$el,"added",[t,this.placeholder]),v(this.$el,"removed",[this,this.placeholder])),v(this.$el,"stop",[this,this.placeholder]),lt(this.drag),this.drag=null;for(const{clsPlaceholder:e,clsItem:i}of this.touched)for(const s of this.touched)M(s.items,e,i);this.touched=null,M(document.documentElement,this.clsDragState)},insert(t,e){y(this.items,this.clsItem);const i=()=>e?ti(e,t):W(this.target,t);this.animate(i)},remove(t){B(t,this.target)&&this.animate(()=>lt(t))},getSortable(t){do{const e=this.$getComponent(t,"sortable");if(e&&(e===this||this.group!==!1&&e.group===this.group))return e}while(t=O(t))}}};let _o;function Dh(t){let e=Date.now();_o=setInterval(()=>{let{x:i,y:s}=t;s+=document.scrollingElement.scrollTop;const n=(Date.now()-e)*.3;e=Date.now(),wt(document.elementFromPoint(i,t.y)).reverse().some(o=>{let{scrollTop:r,scrollHeight:a}=o;const{top:l,bottom:c,height:u}=ct(o);if(l<s&&l+35>s)r-=n;else if(c>s&&c-35<s)r+=n;else return;if(r>0&&r<a-u)return o.scrollTop=r,!0})},15)}function Bh(){clearInterval(_o)}function Mh(t,e){let i;if(G(e,"li","tr")){i=w("<div>"),W(i,e.cloneNode(!0).children);for(const s of e.getAttributeNames())p(i,s,e.getAttribute(s))}else i=e.cloneNode(!0);return W(t,i),h(i,"margin","0","important"),h(i,{boxSizing:"border-box",width:e.offsetWidth,height:e.offsetHeight,padding:h(e,"padding")}),et(i.firstElementChild,et(e.firstElementChild)),i}function Nh(t,e){return t[yt(t,i=>Je(e,i.getBoundingClientRect()))]}function zh(t,e,i,s,n,o){if(!T(t).length)return;const r=e.getBoundingClientRect();if(!o)return Fh(t,i)||n<r.top+r.height/2?e:e.nextElementSibling;const a=i.getBoundingClientRect(),l=Ao([r.top,r.bottom],[a.top,a.bottom]),[c,u,f,d]=l?[s,"width","left","right"]:[n,"height","top","bottom"],g=a[u]<r[u]?r[u]-a[u]:0;return a[f]<r[f]?g&&c<r[f]+g?!1:e.nextElementSibling:g&&c>r[d]-g?!1:e}function Fh(t,e){const i=T(t).length===1;i&&W(t,e);const s=T(t),n=s.some((o,r)=>{const a=o.getBoundingClientRect();return s.slice(r+1).some(l=>{const c=l.getBoundingClientRect();return!Ao([a.left,a.right],[c.left,c.right])})});return i&&lt(e),n}function Ao(t,e){return t[1]>e[0]&&e[1]>t[0]}var Hh={mixins:[ze,Vt,En],args:"title",props:{delay:Number,title:String},data:{pos:"top",title:"",delay:0,animation:["bdt-animation-scale-up"],duration:100,cls:"bdt-active"},beforeConnect(){this.id=At(this,{}),this._hasTitle=gt(this.$el,"title"),p(this.$el,{title:"","aria-describedby":this.id}),Lh(this.$el)},disconnected(){this.hide(),p(this.$el,"title")||p(this.$el,"title",this._hasTitle?this.title:null)},methods:{show(){this.isToggled(this.tooltip||null)||!this.title||(clearTimeout(this.showTimer),this.showTimer=setTimeout(this._show,this.delay))},async hide(){C(this.$el,"input:focus")||(clearTimeout(this.showTimer),this.isToggled(this.tooltip||null)&&await this.toggleElement(this.tooltip,!1,!1),lt(this.tooltip),this.tooltip=null)},async _show(){this.tooltip=W(this.container,`<div id="${this.id}" class="bdt-${this.$options.name}" role="tooltip"> <div class="bdt-${this.$options.name}-inner">${this.title}</div> </div>`),x(this.tooltip,"toggled",(t,e)=>{if(!e)return;const i=()=>this.positionAt(this.tooltip,this.$el);i();const[s,n]=Wh(this.tooltip,this.$el,this.pos);this.origin=this.axis==="y"?`${oi(s)}-${n}`:`${n}-${oi(s)}`;const o=[L(document,`keydown ${vt}`,this.hide,!1,r=>r.type===vt&&!B(r.target,this.$el)||r.type==="keydown"&&r.keyCode===I.ESC),x([document,...jt(this.$el)],"scroll",i,{passive:!0})];L(this.tooltip,"hide",()=>o.forEach(r=>r()),{self:!0})}),await this.toggleElement(this.tooltip,!0)||this.hide()}},events:{focus:"show",blur:"hide",[`${Rt} ${ue}`](t){Ct(t)||this[t.type===Rt?"show":"hide"]()},[vt](t){Ct(t)&&this.show()}}};function Lh(t){Ze(t)||p(t,"tabindex","0")}function Wh(t,e,[i,s]){const n=_(t),o=_(e),r=[["left","right"],["top","bottom"]];for(const l of r){if(n[l[0]]>=o[l[1]]){i=l[1];break}if(n[l[1]]<=o[l[0]]){i=l[0];break}}const a=m(r[0],i)?r[1]:r[0];return n[a[0]]===o[a[0]]?s=a[0]:n[a[1]]===o[a[1]]?s=a[1]:s="center",[i,s]}var Rh={mixins:[wi],i18n:{invalidMime:"Invalid File Type: %s",invalidName:"Invalid File Name: %s",invalidSize:"Invalid File Size: %s Kilobytes Max"},props:{allow:String,clsDragover:String,concurrent:Number,maxSize:Number,method:String,mime:String,multiple:Boolean,name:String,params:Object,type:String,url:String},data:{allow:!1,clsDragover:"bdt-dragover",concurrent:1,maxSize:0,method:"POST",mime:!1,multiple:!1,name:"files[]",params:{},type:"",url:"",abort:k,beforeAll:k,beforeSend:k,complete:k,completeAll:k,error:k,fail:k,load:k,loadEnd:k,loadStart:k,progress:k},events:{change(t){C(t.target,'input[type="file"]')&&(t.preventDefault(),t.target.files&&this.upload(t.target.files),t.target.value="")},drop(t){Ai(t);const e=t.dataTransfer;e!=null&&e.files&&(M(this.$el,this.clsDragover),this.upload(e.files))},dragenter(t){Ai(t)},dragover(t){Ai(t),y(this.$el,this.clsDragover)},dragleave(t){Ai(t),M(this.$el,this.clsDragover)}},methods:{async upload(t){if(t=Qt(t),!t.length)return;v(this.$el,"upload",[t]);for(const s of t){if(this.maxSize&&this.maxSize*1e3<s.size){this.fail(this.t("invalidSize",this.maxSize));return}if(this.allow&&!Oo(this.allow,s.name)){this.fail(this.t("invalidName",this.allow));return}if(this.mime&&!Oo(this.mime,s.type)){this.fail(this.t("invalidMime",this.mime));return}}this.multiple||(t=t.slice(0,1)),this.beforeAll(this,t);const e=jh(t,this.concurrent),i=async s=>{const n=new FormData;s.forEach(o=>n.append(this.name,o));for(const o in this.params)n.append(o,this.params[o]);try{const o=await qh(this.url,{data:n,method:this.method,responseType:this.type,beforeSend:r=>{const{xhr:a}=r;x(a.upload,"progress",this.progress);for(const l of["loadStart","load","loadEnd","abort"])x(a,l.toLowerCase(),this[l]);return this.beforeSend(r)}});this.complete(o),e.length?await i(e.shift()):this.completeAll(o)}catch(o){this.error(o)}};await i(e.shift())}}};function Oo(t,e){return e.match(new RegExp(`^${t.replace(/\//g,"\\/").replace(/\*\*/g,"(\\/[^\\/]+)*").replace(/\*/g,"[^\\/]+").replace(/((?!\\))\?/g,"$1.")}$`,"i"))}function jh(t,e){const i=[];for(let s=0;s<t.length;s+=e)i.push(t.slice(s,s+e));return i}function Ai(t){t.preventDefault(),t.stopPropagation()}function qh(t,e){const i={data:null,method:"GET",headers:{},xhr:new XMLHttpRequest,beforeSend:k,responseType:"",...e};return Promise.resolve().then(()=>i.beforeSend(i)).then(()=>Uh(t,i))}function Uh(t,e){return new Promise((i,s)=>{const{xhr:n}=e;for(const o in e)if(o in n)try{n[o]=e[o]}catch{}n.open(e.method.toUpperCase(),t);for(const o in e.headers)n.setRequestHeader(o,e.headers[o]);x(n,"load",()=>{n.status===0||n.status>=200&&n.status<300||n.status===304?i(n):s($t(Error(n.statusText),{xhr:n,status:n.status}))}),x(n,"error",()=>s($t(Error("Network Error"),{xhr:n}))),x(n,"timeout",()=>s($t(Error("Network Timeout"),{xhr:n}))),n.send(e.data)})}var Vh=Object.freeze({__proto__:null,Countdown:Vl,Filter:Ql,Lightbox:dh,LightboxPanel:fo,Notification:gh,Parallax:kh,Slider:Th,SliderParallax:To,Slideshow:Ah,SlideshowParallax:To,Sortable:Oh,Tooltip:Hh,Upload:Rh});return It(Vh,(t,e)=>ft.component(e,t)),ft});
!function(e,t){"use strict";var s,n=function(e,t){var n=e.find(".bdt-search-container"),a=e.find(".bdt-ajax-search");let r;if(a.length){var l=t(a).find(".bdt-search-result"),c=t(a).data("settings"),i=t(n).data("settings"),d=t(a).attr("anchor-target");d="yes"===d?"_blank":"_self",clearTimeout(s),i&&i.element_connect&&t(i.element_selector).hide(),t(a).on("keyup keypress",(function(e){if(13===(e.keyCode||e.which))return e.preventDefault(),!1})),a.find(".bdt-search-input").keyup((function(){r=t(this).val(),s=setTimeout((function(){t(a).addClass("bdt-search-loading"),jQuery.ajax({url:window.ElementPackConfig.ajaxurl,type:"post",data:{action:"element_pack_search",s:r,settings:c},success:function(e){if((e=t.parseJSON(e)).results.length>0)if(r.length>=3){var s='<div class="bdt-search-result-inner">\n                          <h3 class="bdt-search-result-header">SEARCH RESULT<i class="ep-icon-close bdt-search-result-close-btn"></i></h3>\n                          <ul class="bdt-list bdt-list-divider">';for(let t=0;t<e.results.length;t++){const n=e.results[t];s+=`<li class="bdt-search-item" data-url="${n.url}">\n                            <a href="${n.url}" target="${d}">\n                            <div class="bdt-search-title">${n.title}</div>\n                            <div class="bdt-search-text">${n.text}</div>\n                            </a>\n                          </li>`}s+=`</ul><a class="bdt-search-more">${window.ElementPackConfig.search.more_result}</a></div>`,l.html(s),l.show(),t(".bdt-search-result-close-btn").on("click",(function(e){t(".bdt-search-result").hide(),t(".bdt-search-input").val("")})),t(a).removeClass("bdt-search-loading"),t(".bdt-search-more").on("click",(function(e){e.preventDefault(),t(a).submit()}))}else l.hide();else if(r.length>3){var n=`<div class="bdt-search-result-inner">\n                                  <h3 class="bdt-search-result-header">${window.ElementPackConfig.search.search_result}<i class="ep-icon-close bdt-search-result-close-btn"></i></h3>\n                                  <div class="bdt-search-text">${r} ${window.ElementPackConfig.search.not_found}</div>\n                                </div>`;l.html(n),l.show(),t(".bdt-search-result-close-btn").on("click",(function(e){t(".bdt-search-result").hide(),t(".bdt-search-input").val("")})),t(a).removeClass("bdt-search-loading"),i&&i.element_connect&&(l.hide(),setTimeout((function(){t(i.element_selector).show()}),1500))}else l.hide(),t(a).removeClass("bdt-search-loading")}})}),450)}))}};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/bdt-search.default",n)}))}(jQuery,window.elementorFrontend);
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&"object"==typeof module.exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){function b(b){var i=".smartmenus_mouse";if(h||b)h&&b&&(a(document).off(i),h=!1);else{var j=!0,k=null,l={mousemove:function(b){var c={x:b.pageX,y:b.pageY,timeStamp:(new Date).getTime()};if(k){var d=Math.abs(k.x-c.x),g=Math.abs(k.y-c.y);if((d>0||g>0)&&d<=4&&g<=4&&c.timeStamp-k.timeStamp<=300&&(f=!0,j)){var h=a(b.target).closest("a");h.is("a")&&a.each(e,function(){if(a.contains(this.$root[0],h[0]))return this.itemEnter({currentTarget:h[0]}),!1}),j=!1}}k=c}};l[g?"touchstart":"pointerover pointermove pointerout MSPointerOver MSPointerMove MSPointerOut"]=function(a){c(a.originalEvent)&&(f=!1)},a(document).on(d(l,i)),h=!0}}function c(a){return!/^(4|mouse)$/.test(a.pointerType)}function d(a,b){b||(b="");var c={};for(var d in a)c[d.split(" ").join(b+" ")+b]=a[d];return c}var e=[],f=!1,g="ontouchstart"in window,h=!1,i=window.requestAnimationFrame||function(a){return setTimeout(a,1e3/60)},j=window.cancelAnimationFrame||function(a){clearTimeout(a)},k=!!a.fn.animate;return a.SmartMenus=function(b,c){this.$root=a(b),this.opts=c,this.rootId="",this.accessIdPrefix="",this.$subArrow=null,this.activatedItems=[],this.visibleSubMenus=[],this.showTimeout=0,this.hideTimeout=0,this.scrollTimeout=0,this.clickActivated=!1,this.focusActivated=!1,this.zIndexInc=0,this.idInc=0,this.$firstLink=null,this.$firstSub=null,this.disabled=!1,this.$disableOverlay=null,this.$touchScrollingSub=null,this.cssTransforms3d="perspective"in b.style||"webkitPerspective"in b.style,this.wasCollapsible=!1,this.init()},a.extend(a.SmartMenus,{hideAll:function(){a.each(e,function(){this.menuHideAll()})},destroy:function(){for(;e.length;)e[0].destroy();b(!0)},prototype:{init:function(c){var f=this;if(!c){e.push(this),this.rootId=((new Date).getTime()+Math.random()+"").replace(/\D/g,""),this.accessIdPrefix="sm-"+this.rootId+"-",this.$root.hasClass("sm-rtl")&&(this.opts.rightToLeftSubMenus=!0);var g=".smartmenus";this.$root.data("smartmenus",this).attr("data-smartmenus-id",this.rootId).dataSM("level",1).on(d({"mouseover focusin":a.proxy(this.rootOver,this),"mouseout focusout":a.proxy(this.rootOut,this),keydown:a.proxy(this.rootKeyDown,this)},g)).on(d({mouseenter:a.proxy(this.itemEnter,this),mouseleave:a.proxy(this.itemLeave,this),mousedown:a.proxy(this.itemDown,this),focus:a.proxy(this.itemFocus,this),blur:a.proxy(this.itemBlur,this),click:a.proxy(this.itemClick,this)},g),"a"),g+=this.rootId,this.opts.hideOnClick&&a(document).on(d({touchstart:a.proxy(this.docTouchStart,this),touchmove:a.proxy(this.docTouchMove,this),touchend:a.proxy(this.docTouchEnd,this),click:a.proxy(this.docClick,this)},g)),a(window).on(d({"resize orientationchange":a.proxy(this.winResize,this)},g)),this.opts.subIndicators&&(this.$subArrow=a("<span/>").addClass("sub-arrow"),this.opts.subIndicatorsText&&this.$subArrow.html(this.opts.subIndicatorsText)),b()}if(this.$firstSub=this.$root.find("ul").each(function(){f.menuInit(a(this))}).eq(0),this.$firstLink=this.$root.find("a").eq(0),this.opts.markCurrentItem){var h=/(index|default)\.[^#\?\/]*/i,i=/#.*/,j=window.location.href.replace(h,""),k=j.replace(i,"");this.$root.find("a:not(.mega-menu a)").each(function(){var b=this.href.replace(h,""),c=a(this);b!=j&&b!=k||(c.addClass("current"),f.opts.markCurrentTree&&c.parentsUntil("[data-smartmenus-id]","ul").each(function(){a(this).dataSM("parent-a").addClass("current")}))})}this.wasCollapsible=this.isCollapsible()},destroy:function(b){if(!b){var c=".smartmenus";this.$root.removeData("smartmenus").removeAttr("data-smartmenus-id").removeDataSM("level").off(c),c+=this.rootId,a(document).off(c),a(window).off(c),this.opts.subIndicators&&(this.$subArrow=null)}this.menuHideAll();var d=this;this.$root.find("ul").each(function(){var b=a(this);b.dataSM("scroll-arrows")&&b.dataSM("scroll-arrows").remove(),b.dataSM("shown-before")&&((d.opts.subMenusMinWidth||d.opts.subMenusMaxWidth)&&b.css({width:"",minWidth:"",maxWidth:""}).removeClass("sm-nowrap"),b.dataSM("scroll-arrows")&&b.dataSM("scroll-arrows").remove(),b.css({zIndex:"",top:"",left:"",marginLeft:"",marginTop:"",display:""})),0==(b.attr("id")||"").indexOf(d.accessIdPrefix)&&b.removeAttr("id")}).removeDataSM("in-mega").removeDataSM("shown-before").removeDataSM("scroll-arrows").removeDataSM("parent-a").removeDataSM("level").removeDataSM("beforefirstshowfired").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeAttr("aria-expanded"),this.$root.find("a.has-submenu").each(function(){var b=a(this);0==b.attr("id").indexOf(d.accessIdPrefix)&&b.removeAttr("id")}).removeClass("has-submenu").removeDataSM("sub").removeAttr("aria-haspopup").removeAttr("aria-controls").removeAttr("aria-expanded").closest("li").removeDataSM("sub"),this.opts.subIndicators&&this.$root.find("span.sub-arrow").remove(),this.opts.markCurrentItem&&this.$root.find("a.current").removeClass("current"),b||(this.$root=null,this.$firstLink=null,this.$firstSub=null,this.$disableOverlay&&(this.$disableOverlay.remove(),this.$disableOverlay=null),e.splice(a.inArray(this,e),1))},disable:function(b){if(!this.disabled){if(this.menuHideAll(),!b&&!this.opts.isPopup&&this.$root.is(":visible")){var c=this.$root.offset();this.$disableOverlay=a('<div class="sm-jquery-disable-overlay"/>').css({position:"absolute",top:c.top,left:c.left,width:this.$root.outerWidth(),height:this.$root.outerHeight(),zIndex:this.getStartZIndex(!0),opacity:0}).appendTo(document.body)}this.disabled=!0}},docClick:function(b){return this.$touchScrollingSub?void(this.$touchScrollingSub=null):void((this.visibleSubMenus.length&&!a.contains(this.$root[0],b.target)||a(b.target).closest("a").length)&&this.menuHideAll())},docTouchEnd:function(b){if(this.lastTouch){if(this.visibleSubMenus.length&&(void 0===this.lastTouch.x2||this.lastTouch.x1==this.lastTouch.x2)&&(void 0===this.lastTouch.y2||this.lastTouch.y1==this.lastTouch.y2)&&(!this.lastTouch.target||!a.contains(this.$root[0],this.lastTouch.target))){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0);var c=this;this.hideTimeout=setTimeout(function(){c.menuHideAll()},350)}this.lastTouch=null}},docTouchMove:function(a){if(this.lastTouch){var b=a.originalEvent.touches[0];this.lastTouch.x2=b.pageX,this.lastTouch.y2=b.pageY}},docTouchStart:function(a){var b=a.originalEvent.touches[0];this.lastTouch={x1:b.pageX,y1:b.pageY,target:b.target}},enable:function(){this.disabled&&(this.$disableOverlay&&(this.$disableOverlay.remove(),this.$disableOverlay=null),this.disabled=!1)},getClosestMenu:function(b){for(var c=a(b).closest("ul");c.dataSM("in-mega");)c=c.parent().closest("ul");return c[0]||null},getHeight:function(a){return this.getOffset(a,!0)},getOffset:function(a,b){var c;"none"==a.css("display")&&(c={position:a[0].style.position,visibility:a[0].style.visibility},a.css({position:"absolute",visibility:"hidden"}).show());var d=a[0].getBoundingClientRect&&a[0].getBoundingClientRect(),e=d&&(b?d.height||d.bottom-d.top:d.width||d.right-d.left);return e||0===e||(e=b?a[0].offsetHeight:a[0].offsetWidth),c&&a.hide().css(c),e},getStartZIndex:function(a){var b=parseInt(this[a?"$root":"$firstSub"].css("z-index"));return!a&&isNaN(b)&&(b=parseInt(this.$root.css("z-index"))),isNaN(b)?1:b},getTouchPoint:function(a){return a.touches&&a.touches[0]||a.changedTouches&&a.changedTouches[0]||a},getViewport:function(a){var b=a?"Height":"Width",c=document.documentElement["client"+b],d=window["inner"+b];return d&&(c=Math.min(c,d)),c},getViewportHeight:function(){return this.getViewport(!0)},getViewportWidth:function(){return this.getViewport()},getWidth:function(a){return this.getOffset(a)},handleEvents:function(){return!this.disabled&&this.isCSSOn()},handleItemEvents:function(a){return this.handleEvents()&&!this.isLinkInMegaMenu(a)},isCollapsible:function(){return"static"==this.$firstSub.css("position")},isCSSOn:function(){return"inline"!=this.$firstLink.css("display")},isFixed:function(){var b="fixed"==this.$root.css("position");return b||this.$root.parentsUntil("body").each(function(){if("fixed"==a(this).css("position"))return b=!0,!1}),b},isLinkInMegaMenu:function(b){return a(this.getClosestMenu(b[0])).hasClass("mega-menu")},isTouchMode:function(){return!f||this.opts.noMouseOver||this.isCollapsible()},itemActivate:function(b,c){var d=b.closest("ul"),e=d.dataSM("level");if(e>1&&(!this.activatedItems[e-2]||this.activatedItems[e-2][0]!=d.dataSM("parent-a")[0])){var f=this;a(d.parentsUntil("[data-smartmenus-id]","ul").get().reverse()).add(d).each(function(){f.itemActivate(a(this).dataSM("parent-a"))})}if(this.isCollapsible()&&!c||this.menuHideSubMenus(this.activatedItems[e-1]&&this.activatedItems[e-1][0]==b[0]?e:e-1),this.activatedItems[e-1]=b,this.$root.triggerHandler("activate.smapi",b[0])!==!1){var g=b.dataSM("sub");g&&(this.isTouchMode()||!this.opts.showOnClick||this.clickActivated)&&this.menuShow(g)}},itemBlur:function(b){var c=a(b.currentTarget);this.handleItemEvents(c)&&this.$root.triggerHandler("blur.smapi",c[0])},itemClick:function(b){var c=a(b.currentTarget);if(this.handleItemEvents(c)){if(this.$touchScrollingSub&&this.$touchScrollingSub[0]==c.closest("ul")[0])return this.$touchScrollingSub=null,b.stopPropagation(),!1;if(this.$root.triggerHandler("click.smapi",c[0])===!1)return!1;var d=c.dataSM("sub"),e=!!d&&2==d.dataSM("level");if(d){var f=a(b.target).is(".sub-arrow"),g=this.isCollapsible(),h=/toggle$/.test(this.opts.collapsibleBehavior),i=/link$/.test(this.opts.collapsibleBehavior),j=/^accordion/.test(this.opts.collapsibleBehavior);if(d.is(":visible")){if(!g&&this.opts.showOnClick&&e)return this.menuHide(d),this.clickActivated=!1,this.focusActivated=!1,!1;if(g&&(h||f))return this.itemActivate(c,j),this.menuHide(d),!1}else if((!i||!g||f)&&(!g&&this.opts.showOnClick&&e&&(this.clickActivated=!0),this.itemActivate(c,j),d.is(":visible")))return this.focusActivated=!0,!1}return!(!g&&this.opts.showOnClick&&e||c.hasClass("disabled")||this.$root.triggerHandler("select.smapi",c[0])===!1)&&void 0}},itemDown:function(b){var c=a(b.currentTarget);this.handleItemEvents(c)&&c.dataSM("mousedown",!0)},itemEnter:function(b){var c=a(b.currentTarget);if(this.handleItemEvents(c)){if(!this.isTouchMode()){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0);var d=this;this.showTimeout=setTimeout(function(){d.itemActivate(c)},this.opts.showOnClick&&1==c.closest("ul").dataSM("level")?1:this.opts.showTimeout)}this.$root.triggerHandler("mouseenter.smapi",c[0])}},itemFocus:function(b){var c=a(b.currentTarget);this.handleItemEvents(c)&&(!this.focusActivated||this.isTouchMode()&&c.dataSM("mousedown")||this.activatedItems.length&&this.activatedItems[this.activatedItems.length-1][0]==c[0]||this.itemActivate(c,!0),this.$root.triggerHandler("focus.smapi",c[0]))},itemLeave:function(b){var c=a(b.currentTarget);this.handleItemEvents(c)&&(this.isTouchMode()||(c[0].blur(),this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0)),c.removeDataSM("mousedown"),this.$root.triggerHandler("mouseleave.smapi",c[0]))},menuHide:function(b){if(this.$root.triggerHandler("beforehide.smapi",b[0])!==!1&&(k&&b.stop(!0,!0),"none"!=b.css("display"))){var c=function(){b.css("z-index","")};this.isCollapsible()?k&&this.opts.collapsibleHideFunction?this.opts.collapsibleHideFunction.call(this,b,c):b.hide(this.opts.collapsibleHideDuration,c):k&&this.opts.hideFunction?this.opts.hideFunction.call(this,b,c):b.hide(this.opts.hideDuration,c),b.dataSM("scroll")&&(this.menuScrollStop(b),b.css({"touch-action":"","-ms-touch-action":"","-webkit-transform":"",transform:""}).off(".smartmenus_scroll").removeDataSM("scroll").dataSM("scroll-arrows").hide()),b.dataSM("parent-a").removeClass("highlighted").attr("aria-expanded","false"),b.attr({"aria-expanded":"false","aria-hidden":"true"});var d=b.dataSM("level");this.activatedItems.splice(d-1,1),this.visibleSubMenus.splice(a.inArray(b,this.visibleSubMenus),1),this.$root.triggerHandler("hide.smapi",b[0])}},menuHideAll:function(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0);for(var a=this.opts.isPopup?1:0,b=this.visibleSubMenus.length-1;b>=a;b--)this.menuHide(this.visibleSubMenus[b]);this.opts.isPopup&&(k&&this.$root.stop(!0,!0),this.$root.is(":visible")&&(k&&this.opts.hideFunction?this.opts.hideFunction.call(this,this.$root):this.$root.hide(this.opts.hideDuration))),this.activatedItems=[],this.visibleSubMenus=[],this.clickActivated=!1,this.focusActivated=!1,this.zIndexInc=0,this.$root.triggerHandler("hideAll.smapi")},menuHideSubMenus:function(a){for(var b=this.activatedItems.length-1;b>=a;b--){var c=this.activatedItems[b].dataSM("sub");c&&this.menuHide(c)}},menuInit:function(a){if(!a.dataSM("in-mega")){a.hasClass("mega-menu")&&a.find("ul").dataSM("in-mega",!0);for(var b=2,c=a[0];(c=c.parentNode.parentNode)!=this.$root[0];)b++;var d=a.prevAll("a").eq(-1);d.length||(d=a.prevAll().find("a").eq(-1)),d.addClass("has-submenu").dataSM("sub",a),a.dataSM("parent-a",d).dataSM("level",b).parent().dataSM("sub",a);var e=d.attr("id")||this.accessIdPrefix+ ++this.idInc,f=a.attr("id")||this.accessIdPrefix+ ++this.idInc;d.attr({id:e,"aria-haspopup":"true","aria-controls":f,"aria-expanded":"false"}),a.attr({id:f,role:"group","aria-hidden":"true","aria-labelledby":e,"aria-expanded":"false"}),this.opts.subIndicators&&d[this.opts.subIndicatorsPos](this.$subArrow.clone())}},menuPosition:function(b){var c,e,f=b.dataSM("parent-a"),h=f.closest("li"),i=h.parent(),j=b.dataSM("level"),k=this.getWidth(b),l=this.getHeight(b),m=f.offset(),n=m.left,o=m.top,p=this.getWidth(f),q=this.getHeight(f),r=a(window),s=r.scrollLeft(),t=r.scrollTop(),u=this.getViewportWidth(),v=this.getViewportHeight(),w=i.parent().is("[data-sm-horizontal-sub]")||2==j&&!i.hasClass("sm-vertical"),x=this.opts.rightToLeftSubMenus&&!h.is("[data-sm-reverse]")||!this.opts.rightToLeftSubMenus&&h.is("[data-sm-reverse]"),y=2==j?this.opts.mainMenuSubOffsetX:this.opts.subMenusSubOffsetX,z=2==j?this.opts.mainMenuSubOffsetY:this.opts.subMenusSubOffsetY;if(w?(c=x?p-k-y:y,e=this.opts.bottomToTopSubMenus?-l-z:q+z):(c=x?y-k:p-y,e=this.opts.bottomToTopSubMenus?q-z-l:z),this.opts.keepInViewport){var A=n+c,B=o+e;if(x&&A<s?c=w?s-A+c:p-y:!x&&A+k>s+u&&(c=w?s+u-k-A+c:y-k),w||(l<v&&B+l>t+v?e+=t+v-l-B:(l>=v||B<t)&&(e+=t-B)),w&&(B+l>t+v+.49||B<t)||!w&&l>v+.49){var C=this;b.dataSM("scroll-arrows")||b.dataSM("scroll-arrows",a([a('<span class="scroll-up"><span class="scroll-up-arrow"></span></span>')[0],a('<span class="scroll-down"><span class="scroll-down-arrow"></span></span>')[0]]).on({mouseenter:function(){b.dataSM("scroll").up=a(this).hasClass("scroll-up"),C.menuScroll(b)},mouseleave:function(a){C.menuScrollStop(b),C.menuScrollOut(b,a)},"mousewheel DOMMouseScroll":function(a){a.preventDefault()}}).insertAfter(b));var D=".smartmenus_scroll";if(b.dataSM("scroll",{y:this.cssTransforms3d?0:e-q,step:1,itemH:q,subH:l,arrowDownH:this.getHeight(b.dataSM("scroll-arrows").eq(1))}).on(d({mouseover:function(a){C.menuScrollOver(b,a)},mouseout:function(a){C.menuScrollOut(b,a)},"mousewheel DOMMouseScroll":function(a){C.menuScrollMousewheel(b,a)}},D)).dataSM("scroll-arrows").css({top:"auto",left:"0",marginLeft:c+(parseInt(b.css("border-left-width"))||0),width:k-(parseInt(b.css("border-left-width"))||0)-(parseInt(b.css("border-right-width"))||0),zIndex:b.css("z-index")}).eq(w&&this.opts.bottomToTopSubMenus?0:1).show(),this.isFixed()){var E={};E[g?"touchstart touchmove touchend":"pointerdown pointermove pointerup MSPointerDown MSPointerMove MSPointerUp"]=function(a){C.menuScrollTouch(b,a)},b.css({"touch-action":"none","-ms-touch-action":"none"}).on(d(E,D))}}}b.css({top:"auto",left:"0",marginLeft:c,marginTop:e-q})},menuScroll:function(a,b,c){var d,e=a.dataSM("scroll"),g=a.dataSM("scroll-arrows"),h=e.up?e.upEnd:e.downEnd;if(!b&&e.momentum){if(e.momentum*=.92,d=e.momentum,d<.5)return void this.menuScrollStop(a)}else d=c||(b||!this.opts.scrollAccelerate?this.opts.scrollStep:Math.floor(e.step));var j=a.dataSM("level");if(this.activatedItems[j-1]&&this.activatedItems[j-1].dataSM("sub")&&this.activatedItems[j-1].dataSM("sub").is(":visible")&&this.menuHideSubMenus(j-1),e.y=e.up&&h<=e.y||!e.up&&h>=e.y?e.y:Math.abs(h-e.y)>d?e.y+(e.up?d:-d):h,a.css(this.cssTransforms3d?{"-webkit-transform":"translate3d(0, "+e.y+"px, 0)",transform:"translate3d(0, "+e.y+"px, 0)"}:{marginTop:e.y}),f&&(e.up&&e.y>e.downEnd||!e.up&&e.y<e.upEnd)&&g.eq(e.up?1:0).show(),e.y==h)f&&g.eq(e.up?0:1).hide(),this.menuScrollStop(a);else if(!b){this.opts.scrollAccelerate&&e.step<this.opts.scrollStep&&(e.step+=.2);var k=this;this.scrollTimeout=i(function(){k.menuScroll(a)})}},menuScrollMousewheel:function(a,b){if(this.getClosestMenu(b.target)==a[0]){b=b.originalEvent;var c=(b.wheelDelta||-b.detail)>0;a.dataSM("scroll-arrows").eq(c?0:1).is(":visible")&&(a.dataSM("scroll").up=c,this.menuScroll(a,!0))}b.preventDefault()},menuScrollOut:function(b,c){f&&(/^scroll-(up|down)/.test((c.relatedTarget||"").className)||(b[0]==c.relatedTarget||a.contains(b[0],c.relatedTarget))&&this.getClosestMenu(c.relatedTarget)==b[0]||b.dataSM("scroll-arrows").css("visibility","hidden"))},menuScrollOver:function(b,c){if(f&&!/^scroll-(up|down)/.test(c.target.className)&&this.getClosestMenu(c.target)==b[0]){this.menuScrollRefreshData(b);var d=b.dataSM("scroll"),e=a(window).scrollTop()-b.dataSM("parent-a").offset().top-d.itemH;b.dataSM("scroll-arrows").eq(0).css("margin-top",e).end().eq(1).css("margin-top",e+this.getViewportHeight()-d.arrowDownH).end().css("visibility","visible")}},menuScrollRefreshData:function(b){var c=b.dataSM("scroll"),d=a(window).scrollTop()-b.dataSM("parent-a").offset().top-c.itemH;this.cssTransforms3d&&(d=-(parseFloat(b.css("margin-top"))-d)),a.extend(c,{upEnd:d,downEnd:d+this.getViewportHeight()-c.subH})},menuScrollStop:function(a){if(this.scrollTimeout)return j(this.scrollTimeout),this.scrollTimeout=0,a.dataSM("scroll").step=1,!0},menuScrollTouch:function(b,d){if(d=d.originalEvent,c(d)){var e=this.getTouchPoint(d);if(this.getClosestMenu(e.target)==b[0]){var f=b.dataSM("scroll");if(/(start|down)$/i.test(d.type))this.menuScrollStop(b)?(d.preventDefault(),this.$touchScrollingSub=b):this.$touchScrollingSub=null,this.menuScrollRefreshData(b),a.extend(f,{touchStartY:e.pageY,touchStartTime:d.timeStamp});else if(/move$/i.test(d.type)){var g=void 0!==f.touchY?f.touchY:f.touchStartY;if(void 0!==g&&g!=e.pageY){this.$touchScrollingSub=b;var h=g<e.pageY;void 0!==f.up&&f.up!=h&&a.extend(f,{touchStartY:e.pageY,touchStartTime:d.timeStamp}),a.extend(f,{up:h,touchY:e.pageY}),this.menuScroll(b,!0,Math.abs(e.pageY-g))}d.preventDefault()}else void 0!==f.touchY&&((f.momentum=15*Math.pow(Math.abs(e.pageY-f.touchStartY)/(d.timeStamp-f.touchStartTime),2))&&(this.menuScrollStop(b),this.menuScroll(b),d.preventDefault()),delete f.touchY)}}},menuShow:function(a){if((a.dataSM("beforefirstshowfired")||(a.dataSM("beforefirstshowfired",!0),this.$root.triggerHandler("beforefirstshow.smapi",a[0])!==!1))&&this.$root.triggerHandler("beforeshow.smapi",a[0])!==!1&&(a.dataSM("shown-before",!0),k&&a.stop(!0,!0),!a.is(":visible"))){var b=a.dataSM("parent-a"),c=this.isCollapsible();if((this.opts.keepHighlighted||c)&&b.addClass("highlighted"),c)a.removeClass("sm-nowrap").css({zIndex:"",width:"auto",minWidth:"",maxWidth:"",top:"",left:"",marginLeft:"",marginTop:""});else{if(a.css("z-index",this.zIndexInc=(this.zIndexInc||this.getStartZIndex())+1),(this.opts.subMenusMinWidth||this.opts.subMenusMaxWidth)&&(a.css({width:"auto",minWidth:"",maxWidth:""}).addClass("sm-nowrap"),this.opts.subMenusMinWidth&&a.css("min-width",this.opts.subMenusMinWidth),this.opts.subMenusMaxWidth)){var d=this.getWidth(a);a.css("max-width",this.opts.subMenusMaxWidth),d>this.getWidth(a)&&a.removeClass("sm-nowrap").css("width",this.opts.subMenusMaxWidth)}this.menuPosition(a)}var e=function(){a.css("overflow","")};c?k&&this.opts.collapsibleShowFunction?this.opts.collapsibleShowFunction.call(this,a,e):a.show(this.opts.collapsibleShowDuration,e):k&&this.opts.showFunction?this.opts.showFunction.call(this,a,e):a.show(this.opts.showDuration,e),b.attr("aria-expanded","true"),a.attr({"aria-expanded":"true","aria-hidden":"false"}),this.visibleSubMenus.push(a),this.$root.triggerHandler("show.smapi",a[0])}},popupHide:function(a){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0);var b=this;this.hideTimeout=setTimeout(function(){b.menuHideAll()},a?1:this.opts.hideTimeout)},popupShow:function(a,b){if(!this.opts.isPopup)return void alert('SmartMenus jQuery Error:\n\nIf you want to show this menu via the "popupShow" method, set the isPopup:true option.');if(this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0),this.$root.dataSM("shown-before",!0),k&&this.$root.stop(!0,!0),!this.$root.is(":visible")){this.$root.css({left:a,top:b});var c=this,d=function(){c.$root.css("overflow","")};k&&this.opts.showFunction?this.opts.showFunction.call(this,this.$root,d):this.$root.show(this.opts.showDuration,d),this.visibleSubMenus[0]=this.$root}},refresh:function(){this.destroy(!0),this.init(!0)},rootKeyDown:function(b){if(this.handleEvents())switch(b.keyCode){case 27:var c=this.activatedItems[0];if(c){this.menuHideAll(),c[0].focus();var d=c.dataSM("sub");d&&this.menuHide(d)}break;case 32:var e=a(b.target);if(e.is("a")&&this.handleItemEvents(e)){var d=e.dataSM("sub");d&&!d.is(":visible")&&(this.itemClick({currentTarget:b.target}),b.preventDefault())}}},rootOut:function(a){if(this.handleEvents()&&!this.isTouchMode()&&a.target!=this.$root[0]&&(this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0),!this.opts.showOnClick||!this.opts.hideOnClick)){var b=this;this.hideTimeout=setTimeout(function(){b.menuHideAll()},this.opts.hideTimeout)}},rootOver:function(a){this.handleEvents()&&!this.isTouchMode()&&a.target!=this.$root[0]&&this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0)},winResize:function(a){if(this.handleEvents()){if(!("onorientationchange"in window)||"orientationchange"==a.type){var b=this.isCollapsible();this.wasCollapsible&&b||(this.activatedItems.length&&this.activatedItems[this.activatedItems.length-1][0].blur(),this.menuHideAll()),this.wasCollapsible=b}}else if(this.$disableOverlay){var c=this.$root.offset();this.$disableOverlay.css({top:c.top,left:c.left,width:this.$root.outerWidth(),height:this.$root.outerHeight()})}}}}),a.fn.dataSM=function(a,b){return b?this.data(a+"_smartmenus",b):this.data(a+"_smartmenus")},a.fn.removeDataSM=function(a){return this.removeData(a+"_smartmenus")},a.fn.smartmenus=function(b){if("string"==typeof b){var c=arguments,d=b;return Array.prototype.shift.call(c),this.each(function(){var b=a(this).data("smartmenus");b&&b[d]&&b[d].apply(b,c)})}return this.each(function(){var c=a(this).data("sm-options")||null;c&&"object"!=typeof c&&(c=null,alert('ERROR\n\nSmartMenus jQuery init:\nThe value of the "data-sm-options" attribute must be valid JSON.')),c&&a.each(["showFunction","hideFunction","collapsibleShowFunction","collapsibleHideFunction"],function(){this in c&&delete c[this]}),new a.SmartMenus(this,a.extend({},a.fn.smartmenus.defaults,b,c))})},a.fn.smartmenus.defaults={isPopup:!1,mainMenuSubOffsetX:0,mainMenuSubOffsetY:0,subMenusSubOffsetX:0,subMenusSubOffsetY:0,subMenusMinWidth:"10em",subMenusMaxWidth:"20em",subIndicators:!0,subIndicatorsPos:"append",subIndicatorsText:"",scrollStep:30,scrollAccelerate:!0,showTimeout:250,hideTimeout:500,showDuration:0,showFunction:null,hideDuration:0,hideFunction:function(a,b){a.fadeOut(200,b)},collapsibleShowDuration:0,collapsibleShowFunction:function(a,b){a.slideDown(200,b)},collapsibleHideDuration:0,collapsibleHideFunction:function(a,b){a.slideUp(200,b)},showOnClick:!1,hideOnClick:!0,noMouseOver:!1,keepInViewport:!0,keepHighlighted:!0,markCurrentItem:!1,markCurrentTree:!0,rightToLeftSubMenus:!1,bottomToTopSubMenus:!1,collapsibleBehavior:"default"},a});
!function(n,t){"use strict";var e=function(n,t){var e=n.find(".bdt-offcanvas");e.length&&t.each(e,(function(n,e){var o=t(this),i=o.data("settings").id;t(i).length&&t(i).on("click",(function(n){n.preventDefault(),bdtUIkit.offcanvas(o).show()}))}))};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/bdt-offcanvas.default",e)}))}(jQuery,window.elementorFrontend);
!function(n,e){"use strict";var t=function(n,e){var t=n.find(".bdt-ep-advanced-icon-box"),o=e(t).find(".bdt-ep-advanced-icon-box-separator-wrap > img");(t.length||o.length)&&elementorFrontend.waypoint(o,(function(){bdtUIkit.svg(this,{strokeAnimation:!0})}),{offset:"bottom-in-view"})};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/bdt-advanced-icon-box.default",t)}))}(jQuery,window.elementorFrontend);
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Popper={})}(this,(function(e){"use strict";function t(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function n(e){return e instanceof t(e).Element||e instanceof Element}function r(e){return e instanceof t(e).HTMLElement||e instanceof HTMLElement}function o(e){return"undefined"!=typeof ShadowRoot&&(e instanceof t(e).ShadowRoot||e instanceof ShadowRoot)}var i=Math.round;function a(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),o=1,a=1;return r(e)&&t&&(o=n.width/e.offsetWidth||1,a=n.height/e.offsetHeight||1),{width:i(n.width/o),height:i(n.height/a),top:i(n.top/a),right:i(n.right/o),bottom:i(n.bottom/a),left:i(n.left/o),x:i(n.left/o),y:i(n.top/a)}}function s(e){var n=t(e);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function f(e){return e?(e.nodeName||"").toLowerCase():null}function p(e){return((n(e)?e.ownerDocument:e.document)||window.document).documentElement}function c(e){return a(p(e)).left+s(e).scrollLeft}function l(e){return t(e).getComputedStyle(e)}function u(e){var t=l(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function d(e,n,o){void 0===o&&(o=!1);var i,l,d=r(n),m=r(n)&&function(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return 1!==n||1!==r}(n),h=p(n),v=a(e,m),g={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(d||!d&&!o)&&(("body"!==f(n)||u(h))&&(g=(i=n)!==t(i)&&r(i)?{scrollLeft:(l=i).scrollLeft,scrollTop:l.scrollTop}:s(i)),r(n)?((b=a(n,!0)).x+=n.clientLeft,b.y+=n.clientTop):h&&(b.x=c(h))),{x:v.left+g.scrollLeft-b.x,y:v.top+g.scrollTop-b.y,width:v.width,height:v.height}}function m(e){var t=a(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function h(e){return"html"===f(e)?e:e.assignedSlot||e.parentNode||(o(e)?e.host:null)||p(e)}function v(e,n){var o;void 0===n&&(n=[]);var i=function e(t){return["html","body","#document"].indexOf(f(t))>=0?t.ownerDocument.body:r(t)&&u(t)?t:e(h(t))}(e),a=i===(null==(o=e.ownerDocument)?void 0:o.body),s=t(i),p=a?[s].concat(s.visualViewport||[],u(i)?i:[]):i,c=n.concat(p);return a?c:c.concat(v(h(p)))}function g(e){return["table","td","th"].indexOf(f(e))>=0}function b(e){return r(e)&&"fixed"!==l(e).position?e.offsetParent:null}function y(e){for(var n=t(e),o=b(e);o&&g(o)&&"static"===l(o).position;)o=b(o);return o&&("html"===f(o)||"body"===f(o)&&"static"===l(o).position)?n:o||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&r(e)&&"fixed"===l(e).position)return null;for(var n=h(e);r(n)&&["html","body"].indexOf(f(n))<0;){var o=l(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||n}var w="top",x="bottom",O="right",j="left",E=[w,x,O,j],S=E.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),P=[].concat(E,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),k=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function D(e){var t=new Map,n=new Set,r=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||function e(o){n.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach((function(r){if(!n.has(r)){var o=t.get(r);o&&e(o)}})),r.push(o)}(e)})),r}function M(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return[].concat(n).reduce((function(e,t){return e.replace(/%s/,t)}),e)}var L='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',A=["name","enabled","phase","fn","effect","requires","options"];function T(e){return e.split("-")[0]}var q=Math.max,W=Math.min,B=Math.round;function H(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&o(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function C(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function R(e,n){return"viewport"===n?C(function(e){var n=t(e),r=p(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,f=0;return o&&(i=o.width,a=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=o.offsetLeft,f=o.offsetTop)),{width:i,height:a,x:s+c(e),y:f}}(e)):r(n)?function(e){var t=a(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(n):C(function(e){var t,n=p(e),r=s(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=q(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=q(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),f=-r.scrollLeft+c(e),u=-r.scrollTop;return"rtl"===l(o||n).direction&&(f+=q(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:f,y:u}}(p(e)))}function I(e,t,o){var i="clippingParents"===t?function(e){var t=v(h(e)),o=["absolute","fixed"].indexOf(l(e).position)>=0&&r(e)?y(e):e;return n(o)?t.filter((function(e){return n(e)&&H(e,o)&&"body"!==f(e)})):[]}(e):[].concat(t),a=[].concat(i,[o]),s=a[0],p=a.reduce((function(t,n){var r=R(e,n);return t.top=q(r.top,t.top),t.right=W(r.right,t.right),t.bottom=W(r.bottom,t.bottom),t.left=q(r.left,t.left),t}),R(e,s));return p.width=p.right-p.left,p.height=p.bottom-p.top,p.x=p.left,p.y=p.top,p}function V(e){return e.split("-")[1]}function N(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function U(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?T(o):null,a=o?V(o):null,s=n.x+n.width/2-r.width/2,f=n.y+n.height/2-r.height/2;switch(i){case w:t={x:s,y:n.y-r.height};break;case x:t={x:s,y:n.y+n.height};break;case O:t={x:n.x+n.width,y:f};break;case j:t={x:n.x-r.width,y:f};break;default:t={x:n.x,y:n.y}}var p=i?N(i):null;if(null!=p){var c="y"===p?"height":"width";switch(a){case"start":t[p]=t[p]-(n[c]/2-r[c]/2);break;case"end":t[p]=t[p]+(n[c]/2-r[c]/2)}}return t}function _(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function F(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function z(e,t){void 0===t&&(t={});var r=t,o=r.placement,i=void 0===o?e.placement:o,s=r.boundary,f=void 0===s?"clippingParents":s,c=r.rootBoundary,l=void 0===c?"viewport":c,u=r.elementContext,d=void 0===u?"popper":u,m=r.altBoundary,h=void 0!==m&&m,v=r.padding,g=void 0===v?0:v,b=_("number"!=typeof g?g:F(g,E)),y="popper"===d?"reference":"popper",j=e.elements.reference,S=e.rects.popper,P=e.elements[h?y:d],k=I(n(P)?P:P.contextElement||p(e.elements.popper),f,l),D=a(j),M=U({reference:D,element:S,strategy:"absolute",placement:i}),L=C(Object.assign({},S,M)),A="popper"===d?L:D,T={top:k.top-A.top+b.top,bottom:A.bottom-k.bottom+b.bottom,left:k.left-A.left+b.left,right:A.right-k.right+b.right},q=e.modifiersData.offset;if("popper"===d&&q){var W=q[i];Object.keys(T).forEach((function(e){var t=[O,x].indexOf(e)>=0?1:-1,n=[w,x].indexOf(e)>=0?"y":"x";T[e]+=W[n]*t}))}return T}var G="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",X={placement:"bottom",modifiers:[],strategy:"absolute"};function Y(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function J(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,o=void 0===r?[]:r,i=t.defaultOptions,a=void 0===i?X:i;return function(e,t,r){void 0===r&&(r=a);var i,s,f={placement:"bottom",orderedModifiers:[],options:Object.assign({},X,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},p=[],c=!1,u={state:f,setOptions:function(r){h(),f.options=Object.assign({},a,f.options,r),f.scrollParents={reference:n(e)?v(e):e.contextElement?v(e.contextElement):[],popper:v(t)};var i=function(e){var t=D(e);return k.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(o,f.options.modifiers)));(f.orderedModifiers=i.filter((function(e){return e.enabled})),function(e){e.forEach((function(t){Object.keys(t).forEach((function(n){switch(n){case"name":"string"!=typeof t.name&&console.error(M(L,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(M(L,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));case"phase":k.indexOf(t.phase)<0&&console.error(M(L,t.name,'"phase"',"either "+k.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(M(L,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":"function"!=typeof t.effect&&console.error(M(L,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":Array.isArray(t.requires)||console.error(M(L,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(M(L,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+A.map((function(e){return'"'+e+'"'})).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach((function(n){null==e.find((function(e){return e.name===n}))&&console.error(M('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),n,n))}))}))}))}((s=[].concat(i,f.options.modifiers),c=function(e){return e.name},d=new Set,s.filter((function(e){var t=c(e);if(!d.has(t))return d.add(t),!0})))),"auto"===T(f.options.placement))&&(f.orderedModifiers.find((function(e){return"flip"===e.name}))||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" ")));var s,c,d,m=l(t);return[m.marginTop,m.marginRight,m.marginBottom,m.marginLeft].some((function(e){return parseFloat(e)}))&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" ")),f.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:f,name:t,instance:u,options:r});p.push(i||function(){})}})),u.update()},forceUpdate:function(){if(!c){var e=f.elements,t=e.reference,n=e.popper;if(Y(t,n)){f.rects={reference:d(t,y(n),"fixed"===f.options.strategy),popper:m(n)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach((function(e){return f.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0,o=0;o<f.orderedModifiers.length;o++){if((r+=1)>100){console.error("Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.");break}if(!0!==f.reset){var i=f.orderedModifiers[o],a=i.fn,s=i.options,p=void 0===s?{}:s,l=i.name;"function"==typeof a&&(f=a({state:f,options:p,name:l,instance:u})||f)}else f.reset=!1,o=-1}}else console.error(G)}},update:(i=function(){return new Promise((function(e){u.forceUpdate(),e(f)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(i())}))}))),s}),destroy:function(){h(),c=!0}};if(!Y(e,t))return console.error(G),u;function h(){p.forEach((function(e){return e()})),p=[]}return u.setOptions(r).then((function(e){!c&&r.onFirstUpdate&&r.onFirstUpdate(e)})),u}}var K={passive:!0};var Q={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var n=e.state,r=e.instance,o=e.options,i=o.scroll,a=void 0===i||i,s=o.resize,f=void 0===s||s,p=t(n.elements.popper),c=[].concat(n.scrollParents.reference,n.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",r.update,K)})),f&&p.addEventListener("resize",r.update,K),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",r.update,K)})),f&&p.removeEventListener("resize",r.update,K)}},data:{}};var Z={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=U({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},$={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ee(e){var n,r=e.popper,o=e.popperRect,i=e.placement,a=e.offsets,s=e.position,f=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=!0===u?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:B(B(t*r)/r)||0,y:B(B(n*r)/r)||0}}(a):"function"==typeof u?u(a):a,m=d.x,h=void 0===m?0:m,v=d.y,g=void 0===v?0:v,b=a.hasOwnProperty("x"),E=a.hasOwnProperty("y"),S=j,P=w,k=window;if(c){var D=y(r),M="clientHeight",L="clientWidth";D===t(r)&&"static"!==l(D=p(r)).position&&(M="scrollHeight",L="scrollWidth"),D=D,i===w&&(P=x,g-=D[M]-o.height,g*=f?1:-1),i===j&&(S=O,h-=D[L]-o.width,h*=f?1:-1)}var A,T=Object.assign({position:s},c&&$);return f?Object.assign({},T,((A={})[P]=E?"0":"",A[S]=b?"0":"",A.transform=(k.devicePixelRatio||1)<2?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",A)):Object.assign({},T,((n={})[P]=E?g+"px":"",n[S]=b?h+"px":"",n.transform="",n))}var te={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,f=void 0===s||s,p=l(t.elements.popper).transitionProperty||"";a&&["transform","top","right","bottom","left"].some((function(e){return p.indexOf(e)>=0}))&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "));var c={placement:T(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ee(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:f})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ee(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var ne={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},i=t.elements[e];r(i)&&f(i)&&(Object.assign(i.style,n),Object.keys(o).forEach((function(e){var t=o[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var o=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});r(o)&&f(o)&&(Object.assign(o.style,a),Object.keys(i).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]};var re={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=P.reduce((function(e,n){return e[n]=function(e,t,n){var r=T(e),o=[j,w].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[j,O].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],f=s.x,p=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=p),t.modifiersData[r]=a}},oe={left:"right",right:"left",bottom:"top",top:"bottom"};function ie(e){return e.replace(/left|right|bottom|top/g,(function(e){return oe[e]}))}var ae={start:"end",end:"start"};function se(e){return e.replace(/start|end/g,(function(e){return ae[e]}))}function fe(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,f=n.allowedAutoPlacements,p=void 0===f?P:f,c=V(r),l=c?s?S:S.filter((function(e){return V(e)===c})):E,u=l.filter((function(e){return p.indexOf(e)>=0}));0===u.length&&(u=l,console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var d=u.reduce((function(t,n){return t[n]=z(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[T(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}var pe={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,f=n.fallbackPlacements,p=n.padding,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.flipVariations,m=void 0===d||d,h=n.allowedAutoPlacements,v=t.options.placement,g=T(v),b=f||(g===v||!m?[ie(v)]:function(e){if("auto"===T(e))return[];var t=ie(e);return[se(e),t,se(t)]}(v)),y=[v].concat(b).reduce((function(e,n){return e.concat("auto"===T(n)?fe(t,{placement:n,boundary:c,rootBoundary:l,padding:p,flipVariations:m,allowedAutoPlacements:h}):n)}),[]),E=t.rects.reference,S=t.rects.popper,P=new Map,k=!0,D=y[0],M=0;M<y.length;M++){var L=y[M],A=T(L),q="start"===V(L),W=[w,x].indexOf(A)>=0,B=W?"width":"height",H=z(t,{placement:L,boundary:c,rootBoundary:l,altBoundary:u,padding:p}),C=W?q?O:j:q?x:w;E[B]>S[B]&&(C=ie(C));var R=ie(C),I=[];if(i&&I.push(H[A]<=0),s&&I.push(H[C]<=0,H[R]<=0),I.every((function(e){return e}))){D=L,k=!1;break}P.set(L,I)}if(k)for(var N=function(e){var t=y.find((function(t){var n=P.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return D=t,"break"},U=m?3:1;U>0;U--){if("break"===N(U))break}t.placement!==D&&(t.modifiersData[r]._skip=!0,t.placement=D,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ce(e,t,n){return q(e,W(t,n))}var le={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,f=n.boundary,p=n.rootBoundary,c=n.altBoundary,l=n.padding,u=n.tether,d=void 0===u||u,h=n.tetherOffset,v=void 0===h?0:h,g=z(t,{boundary:f,rootBoundary:p,padding:l,altBoundary:c}),b=T(t.placement),E=V(t.placement),S=!E,P=N(b),k="x"===P?"y":"x",D=t.modifiersData.popperOffsets,M=t.rects.reference,L=t.rects.popper,A="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,B={x:0,y:0};if(D){if(i||s){var H="y"===P?w:j,C="y"===P?x:O,R="y"===P?"height":"width",I=D[P],U=D[P]+g[H],_=D[P]-g[C],F=d?-L[R]/2:0,G="start"===E?M[R]:L[R],X="start"===E?-L[R]:-M[R],Y=t.elements.arrow,J=d&&Y?m(Y):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Q=K[H],Z=K[C],$=ce(0,M[R],J[R]),ee=S?M[R]/2-F-$-Q-A:G-$-Q-A,te=S?-M[R]/2+F+$+Z+A:X+$+Z+A,ne=t.elements.arrow&&y(t.elements.arrow),re=ne?"y"===P?ne.clientTop||0:ne.clientLeft||0:0,oe=t.modifiersData.offset?t.modifiersData.offset[t.placement][P]:0,ie=D[P]+ee-oe-re,ae=D[P]+te-oe;if(i){var se=ce(d?W(U,ie):U,I,d?q(_,ae):_);D[P]=se,B[P]=se-I}if(s){var fe="x"===P?w:j,pe="x"===P?x:O,le=D[k],ue=le+g[fe],de=le-g[pe],me=ce(d?W(ue,ie):ue,le,d?q(de,ae):de);D[k]=me,B[k]=me-le}}t.modifiersData[r]=B}},requiresIfExists:["offset"]};var ue={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=T(n.placement),f=N(s),p=[j,O].indexOf(s)>=0?"height":"width";if(i&&a){var c=function(e,t){return _("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:F(e,E))}(o.padding,n),l=m(i),u="y"===f?w:j,d="y"===f?x:O,h=n.rects.reference[p]+n.rects.reference[f]-a[f]-n.rects.popper[p],v=a[f]-n.rects.reference[f],g=y(i),b=g?"y"===f?g.clientHeight||0:g.clientWidth||0:0,S=h/2-v/2,P=c[u],k=b-l[p]-c[d],D=b/2-l[p]/2+S,M=ce(P,D,k),L=f;n.modifiersData[r]=((t={})[L]=M,t.centerOffset=M-D,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&(r(o)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" ")),H(t.elements.popper,o)?t.elements.arrow=o:console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" ")))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function de(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function me(e){return[w,O,x,j].some((function(t){return e[t]>=0}))}var he={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=z(t,{elementContext:"reference"}),s=z(t,{altBoundary:!0}),f=de(a,r),p=de(s,o,i),c=me(f),l=me(p);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:p,isReferenceHidden:c,hasPopperEscaped:l},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":l})}},ve=J({defaultModifiers:[Q,Z,te,ne]}),ge=[Q,Z,te,ne,re,pe,le,ue,he],be=J({defaultModifiers:ge});e.applyStyles=ne,e.arrow=ue,e.computeStyles=te,e.createPopper=be,e.createPopperLite=ve,e.defaultModifiers=ge,e.detectOverflow=z,e.eventListeners=Q,e.flip=pe,e.hide=he,e.offset=re,e.popperGenerator=J,e.popperOffsets=Z,e.preventOverflow=le,Object.defineProperty(e,"__esModule",{value:!0})}));
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],e):(t=t||self).tippy=e(t.Popper)}(this,(function(t){"use strict";var e="undefined"!=typeof window&&"undefined"!=typeof document,n=e?navigator.userAgent:"",i=/MSIE |Trident\//.test(n),r={passive:!0,capture:!0};function o(t,e,n){if(Array.isArray(t)){var i=t[e];return null==i?Array.isArray(n)?n[e]:n:i}return t}function a(t,e){var n={}.toString.call(t);return 0===n.indexOf("[object")&&n.indexOf(e+"]")>-1}function s(t,e){return"function"==typeof t?t.apply(void 0,e):t}function p(t,e){return 0===e?t:function(i){clearTimeout(n),n=setTimeout((function(){t(i)}),e)};var n}function c(t,e){var n=Object.assign({},t);return e.forEach((function(t){delete n[t]})),n}function u(t){return[].concat(t)}function l(t,e){-1===t.indexOf(e)&&t.push(e)}function f(t){return t.split("-")[0]}function d(t){return[].slice.call(t)}function v(){return document.createElement("div")}function m(t){return["Element","Fragment"].some((function(e){return a(t,e)}))}function h(t){return a(t,"MouseEvent")}function g(t){return!(!t||!t._tippy||t._tippy.reference!==t)}function y(t){return m(t)?[t]:function(t){return a(t,"NodeList")}(t)?d(t):Array.isArray(t)?t:d(document.querySelectorAll(t))}function b(t,e){t.forEach((function(t){t&&(t.style.transitionDuration=e+"ms")}))}function w(t,e){t.forEach((function(t){t&&t.setAttribute("data-state",e)}))}function x(t){var e,n=u(t)[0];return(null==n||null==(e=n.ownerDocument)?void 0:e.body)?n.ownerDocument:document}function E(t,e,n){var i=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(e){t[i](e,n)}))}var T,O={isTouch:!1},C=0;function A(){O.isTouch||(O.isTouch=!0,window.performance&&document.addEventListener("mousemove",j))}function j(){var t=performance.now();t-C<20&&(O.isTouch=!1,document.removeEventListener("mousemove",j)),C=t}function L(){var t=document.activeElement;if(g(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function k(t){return[t+"() was called on a"+("destroy"===t?"n already-":" ")+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function D(t){return t.replace(/[ \t]{2,}/g," ").replace(/^[ \t]*/gm,"").trim()}function S(t){return D("\n  %ctippy.js\n\n  %c"+D(t)+"\n\n  %c👷‍ This is a development-only message. It will be removed in production.\n  ")}function M(t){return[S(t),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}function P(t,e){var n;t&&!T.has(e)&&(T.add(e),(n=console).warn.apply(n,M(e)))}function R(t,e){var n;t&&!T.has(e)&&(T.add(e),(n=console).error.apply(n,M(e)))}T=new Set;var I={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},V=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},I,{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),N=Object.keys(V);function B(t){var e=(t.plugins||[]).reduce((function(e,n){var i=n.name,r=n.defaultValue;return i&&(e[i]=void 0!==t[i]?t[i]:r),e}),{});return Object.assign({},t,{},e)}function H(t,e){var n=Object.assign({},e,{content:s(e.content,[t])},e.ignoreAttributes?{}:function(t,e){return(e?Object.keys(B(Object.assign({},V,{plugins:e}))):N).reduce((function(e,n){var i=(t.getAttribute("data-tippy-"+n)||"").trim();if(!i)return e;if("content"===n)e[n]=i;else try{e[n]=JSON.parse(i)}catch(t){e[n]=i}return e}),{})}(t,e.plugins));return n.aria=Object.assign({},V.aria,{},n.aria),n.aria={expanded:"auto"===n.aria.expanded?e.interactive:n.aria.expanded,content:"auto"===n.aria.content?e.interactive?null:"describedby":n.aria.content},n}function U(t,e){void 0===t&&(t={}),void 0===e&&(e=[]),Object.keys(t).forEach((function(t){var n,i,r=c(V,Object.keys(I)),o=(n=r,i=t,!{}.hasOwnProperty.call(n,i));o&&(o=0===e.filter((function(e){return e.name===t})).length),P(o,["`"+t+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.","\n\n","All props: https://atomiks.github.io/tippyjs/v6/all-props/\n","Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))}))}function F(t,e){t.innerHTML=e}function Y(t){var e=v();return!0===t?e.className="tippy-arrow":(e.className="tippy-svg-arrow",m(t)?e.appendChild(t):F(e,t)),e}function z(t,e){m(e.content)?(F(t,""),t.appendChild(e.content)):"function"!=typeof e.content&&(e.allowHTML?F(t,e.content):t.textContent=e.content)}function W(t){var e=t.firstElementChild,n=d(e.children);return{box:e,content:n.find((function(t){return t.classList.contains("tippy-content")})),arrow:n.find((function(t){return t.classList.contains("tippy-arrow")||t.classList.contains("tippy-svg-arrow")})),backdrop:n.find((function(t){return t.classList.contains("tippy-backdrop")}))}}function _(t){var e=v(),n=v();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var i=v();function r(n,i){var r=W(e),o=r.box,a=r.content,s=r.arrow;i.theme?o.setAttribute("data-theme",i.theme):o.removeAttribute("data-theme"),"string"==typeof i.animation?o.setAttribute("data-animation",i.animation):o.removeAttribute("data-animation"),i.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof i.maxWidth?i.maxWidth+"px":i.maxWidth,i.role?o.setAttribute("role",i.role):o.removeAttribute("role"),n.content===i.content&&n.allowHTML===i.allowHTML||z(a,t.props),i.arrow?s?n.arrow!==i.arrow&&(o.removeChild(s),o.appendChild(Y(i.arrow))):o.appendChild(Y(i.arrow)):s&&o.removeChild(s)}return i.className="tippy-content",i.setAttribute("data-state","hidden"),z(i,t.props),e.appendChild(n),n.appendChild(i),r(t.props,t.props),{popper:e,onUpdate:r}}_.$$tippy=!0;var q=1,X=[],$=[];function J(e,n){var a,c,m,g,y,T,C,A,j,L=H(e,Object.assign({},V,{},B((a=n,Object.keys(a).reduce((function(t,e){return void 0!==a[e]&&(t[e]=a[e]),t}),{}))))),D=!1,S=!1,M=!1,I=!1,N=[],U=p(xt,L.interactiveDebounce),F=q++,Y=(j=L.plugins).filter((function(t,e){return j.indexOf(t)===e})),z={id:F,reference:e,popper:v(),popperInstance:null,props:L,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:Y,clearDelayTimeouts:function(){clearTimeout(c),clearTimeout(m),cancelAnimationFrame(g)},setProps:function(t){if(P(z.state.isDestroyed,k("setProps")),z.state.isDestroyed)return;st("onBeforeUpdate",[z,t]),bt();var n=z.props,i=H(e,Object.assign({},z.props,{},t,{ignoreAttributes:!0}));z.props=i,yt(),n.interactiveDebounce!==i.interactiveDebounce&&(ut(),U=p(xt,i.interactiveDebounce));n.triggerTarget&&!i.triggerTarget?u(n.triggerTarget).forEach((function(t){t.removeAttribute("aria-expanded")})):i.triggerTarget&&e.removeAttribute("aria-expanded");ct(),at(),G&&G(n,i);z.popperInstance&&(Ct(),jt().forEach((function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)})));st("onAfterUpdate",[z,t])},setContent:function(t){z.setProps({content:t})},show:function(){P(z.state.isDestroyed,k("show"));var t=z.state.isVisible,e=z.state.isDestroyed,n=!z.state.isEnabled,i=O.isTouch&&!z.props.touch,r=o(z.props.duration,0,V.duration);if(t||e||n||i)return;if(nt().hasAttribute("disabled"))return;if(st("onShow",[z],!1),!1===z.props.onShow(z))return;z.state.isVisible=!0,et()&&(J.style.visibility="visible");at(),vt(),z.state.isMounted||(J.style.transition="none");if(et()){var a=rt(),p=a.box,c=a.content;b([p,c],0)}C=function(){var t;if(z.state.isVisible&&!I){if(I=!0,J.offsetHeight,J.style.transition=z.props.moveTransition,et()&&z.props.animation){var e=rt(),n=e.box,i=e.content;b([n,i],r),w([n,i],"visible")}pt(),ct(),l($,z),null==(t=z.popperInstance)||t.forceUpdate(),z.state.isMounted=!0,st("onMount",[z]),z.props.animation&&et()&&function(t,e){ht(t,e)}(r,(function(){z.state.isShown=!0,st("onShown",[z])}))}},function(){var t,e=z.props.appendTo,n=nt();t=z.props.interactive&&e===V.appendTo||"parent"===e?n.parentNode:s(e,[n]);t.contains(J)||t.appendChild(J);Ct(),P(z.props.interactive&&e===V.appendTo&&n.nextElementSibling!==J,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.","\n\n","Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.","\n\n","Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.","\n\n","See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}()},hide:function(){P(z.state.isDestroyed,k("hide"));var t=!z.state.isVisible,e=z.state.isDestroyed,n=!z.state.isEnabled,i=o(z.props.duration,1,V.duration);if(t||e||n)return;if(st("onHide",[z],!1),!1===z.props.onHide(z))return;z.state.isVisible=!1,z.state.isShown=!1,I=!1,D=!1,et()&&(J.style.visibility="hidden");if(ut(),mt(),at(),et()){var r=rt(),a=r.box,s=r.content;z.props.animation&&(b([a,s],i),w([a,s],"hidden"))}pt(),ct(),z.props.animation?et()&&function(t,e){ht(t,(function(){!z.state.isVisible&&J.parentNode&&J.parentNode.contains(J)&&e()}))}(i,z.unmount):z.unmount()},hideWithInteractivity:function(t){P(z.state.isDestroyed,k("hideWithInteractivity")),it().addEventListener("mousemove",U),l(X,U),U(t)},enable:function(){z.state.isEnabled=!0},disable:function(){z.hide(),z.state.isEnabled=!1},unmount:function(){P(z.state.isDestroyed,k("unmount")),z.state.isVisible&&z.hide();if(!z.state.isMounted)return;At(),jt().forEach((function(t){t._tippy.unmount()})),J.parentNode&&J.parentNode.removeChild(J);$=$.filter((function(t){return t!==z})),z.state.isMounted=!1,st("onHidden",[z])},destroy:function(){if(P(z.state.isDestroyed,k("destroy")),z.state.isDestroyed)return;z.clearDelayTimeouts(),z.unmount(),bt(),delete e._tippy,z.state.isDestroyed=!0,st("onDestroy",[z])}};if(!L.render)return R(!0,"render() function has not been supplied."),z;var _=L.render(z),J=_.popper,G=_.onUpdate;J.setAttribute("data-tippy-root",""),J.id="tippy-"+z.id,z.popper=J,e._tippy=z,J._tippy=z;var K=Y.map((function(t){return t.fn(z)})),Q=e.hasAttribute("aria-expanded");return yt(),ct(),at(),st("onCreate",[z]),L.showOnCreate&&Lt(),J.addEventListener("mouseenter",(function(){z.props.interactive&&z.state.isVisible&&z.clearDelayTimeouts()})),J.addEventListener("mouseleave",(function(t){z.props.interactive&&z.props.trigger.indexOf("mouseenter")>=0&&(it().addEventListener("mousemove",U),U(t))})),z;function Z(){var t=z.props.touch;return Array.isArray(t)?t:[t,0]}function tt(){return"hold"===Z()[0]}function et(){var t;return!!(null==(t=z.props.render)?void 0:t.$$tippy)}function nt(){return A||e}function it(){var t=nt().parentNode;return t?x(t):document}function rt(){return W(J)}function ot(t){return z.state.isMounted&&!z.state.isVisible||O.isTouch||y&&"focus"===y.type?0:o(z.props.delay,t?0:1,V.delay)}function at(){J.style.pointerEvents=z.props.interactive&&z.state.isVisible?"":"none",J.style.zIndex=""+z.props.zIndex}function st(t,e,n){var i;(void 0===n&&(n=!0),K.forEach((function(n){n[t]&&n[t].apply(void 0,e)})),n)&&(i=z.props)[t].apply(i,e)}function pt(){var t=z.props.aria;if(t.content){var n="aria-"+t.content,i=J.id;u(z.props.triggerTarget||e).forEach((function(t){var e=t.getAttribute(n);if(z.state.isVisible)t.setAttribute(n,e?e+" "+i:i);else{var r=e&&e.replace(i,"").trim();r?t.setAttribute(n,r):t.removeAttribute(n)}}))}}function ct(){!Q&&z.props.aria.expanded&&u(z.props.triggerTarget||e).forEach((function(t){z.props.interactive?t.setAttribute("aria-expanded",z.state.isVisible&&t===nt()?"true":"false"):t.removeAttribute("aria-expanded")}))}function ut(){it().removeEventListener("mousemove",U),X=X.filter((function(t){return t!==U}))}function lt(t){if(!(O.isTouch&&(M||"mousedown"===t.type)||z.props.interactive&&J.contains(t.target))){if(nt().contains(t.target)){if(O.isTouch)return;if(z.state.isVisible&&z.props.trigger.indexOf("click")>=0)return}else st("onClickOutside",[z,t]);!0===z.props.hideOnClick&&(z.clearDelayTimeouts(),z.hide(),S=!0,setTimeout((function(){S=!1})),z.state.isMounted||mt())}}function ft(){M=!0}function dt(){M=!1}function vt(){var t=it();t.addEventListener("mousedown",lt,!0),t.addEventListener("touchend",lt,r),t.addEventListener("touchstart",dt,r),t.addEventListener("touchmove",ft,r)}function mt(){var t=it();t.removeEventListener("mousedown",lt,!0),t.removeEventListener("touchend",lt,r),t.removeEventListener("touchstart",dt,r),t.removeEventListener("touchmove",ft,r)}function ht(t,e){var n=rt().box;function i(t){t.target===n&&(E(n,"remove",i),e())}if(0===t)return e();E(n,"remove",T),E(n,"add",i),T=i}function gt(t,n,i){void 0===i&&(i=!1),u(z.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,i),N.push({node:e,eventType:t,handler:n,options:i})}))}function yt(){var t;tt()&&(gt("touchstart",wt,{passive:!0}),gt("touchend",Et,{passive:!0})),(t=z.props.trigger,t.split(/\s+/).filter(Boolean)).forEach((function(t){if("manual"!==t)switch(gt(t,wt),t){case"mouseenter":gt("mouseleave",Et);break;case"focus":gt(i?"focusout":"blur",Tt);break;case"focusin":gt("focusout",Tt)}}))}function bt(){N.forEach((function(t){var e=t.node,n=t.eventType,i=t.handler,r=t.options;e.removeEventListener(n,i,r)})),N=[]}function wt(t){var e,n=!1;if(z.state.isEnabled&&!Ot(t)&&!S){var i="focus"===(null==(e=y)?void 0:e.type);y=t,A=t.currentTarget,ct(),!z.state.isVisible&&h(t)&&X.forEach((function(e){return e(t)})),"click"===t.type&&(z.props.trigger.indexOf("mouseenter")<0||D)&&!1!==z.props.hideOnClick&&z.state.isVisible?n=!0:Lt(t),"click"===t.type&&(D=!n),n&&!i&&kt(t)}}function xt(t){var e=t.target,n=nt().contains(e)||J.contains(e);"mousemove"===t.type&&n||function(t,e){var n=e.clientX,i=e.clientY;return t.every((function(t){var e=t.popperRect,r=t.popperState,o=t.props.interactiveBorder,a=f(r.placement),s=r.modifiersData.offset;if(!s)return!0;var p="bottom"===a?s.top.y:0,c="top"===a?s.bottom.y:0,u="right"===a?s.left.x:0,l="left"===a?s.right.x:0,d=e.top-i+p>o,v=i-e.bottom-c>o,m=e.left-n+u>o,h=n-e.right-l>o;return d||v||m||h}))}(jt().concat(J).map((function(t){var e,n=null==(e=t._tippy.popperInstance)?void 0:e.state;return n?{popperRect:t.getBoundingClientRect(),popperState:n,props:L}:null})).filter(Boolean),t)&&(ut(),kt(t))}function Et(t){Ot(t)||z.props.trigger.indexOf("click")>=0&&D||(z.props.interactive?z.hideWithInteractivity(t):kt(t))}function Tt(t){z.props.trigger.indexOf("focusin")<0&&t.target!==nt()||z.props.interactive&&t.relatedTarget&&J.contains(t.relatedTarget)||kt(t)}function Ot(t){return!!O.isTouch&&tt()!==t.type.indexOf("touch")>=0}function Ct(){At();var n=z.props,i=n.popperOptions,r=n.placement,o=n.offset,a=n.getReferenceClientRect,s=n.moveTransition,p=et()?W(J).arrow:null,c=a?{getBoundingClientRect:a,contextElement:a.contextElement||nt()}:e,u=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;if(et()){var n=rt().box;["placement","reference-hidden","escaped"].forEach((function(t){"placement"===t?n.setAttribute("data-placement",e.placement):e.attributes.popper["data-popper-"+t]?n.setAttribute("data-"+t,""):n.removeAttribute("data-"+t)})),e.attributes.popper={}}}}];et()&&p&&u.push({name:"arrow",options:{element:p,padding:3}}),u.push.apply(u,(null==i?void 0:i.modifiers)||[]),z.popperInstance=t.createPopper(c,J,Object.assign({},i,{placement:r,onFirstUpdate:C,modifiers:u}))}function At(){z.popperInstance&&(z.popperInstance.destroy(),z.popperInstance=null)}function jt(){return d(J.querySelectorAll("[data-tippy-root]"))}function Lt(t){z.clearDelayTimeouts(),t&&st("onTrigger",[z,t]),vt();var e=ot(!0),n=Z(),i=n[0],r=n[1];O.isTouch&&"hold"===i&&r&&(e=r),e?c=setTimeout((function(){z.show()}),e):z.show()}function kt(t){if(z.clearDelayTimeouts(),st("onUntrigger",[z,t]),z.state.isVisible){if(!(z.props.trigger.indexOf("mouseenter")>=0&&z.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&D)){var e=ot(!1);e?m=setTimeout((function(){z.state.isVisible&&z.hide()}),e):g=requestAnimationFrame((function(){z.hide()}))}}else mt()}}function G(t,e){void 0===e&&(e={});var n=V.plugins.concat(e.plugins||[]);!function(t){var e=!t,n="[object Object]"===Object.prototype.toString.call(t)&&!t.addEventListener;R(e,["tippy() was passed","`"+String(t)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),R(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}(t),U(e,n),document.addEventListener("touchstart",A,r),window.addEventListener("blur",L);var i=Object.assign({},e,{plugins:n}),o=y(t),a=m(i.content),s=o.length>1;P(a&&s,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.","\n\n","Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.","\n\n","1) content: element.innerHTML\n","2) content: ()=> element.cloneNode(true)"].join(" "));var p=o.reduce((function(t,e){var n=e&&J(e,i);return n&&t.push(n),t}),[]);return m(t)?p[0]:p}G.defaultProps=V,G.setDefaultProps=function(t){U(t,[]),Object.keys(t).forEach((function(e){V[e]=t[e]}))},G.currentInput=O;var K=Object.assign({},t.applyStyles,{effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow)}}),Q={mouseover:"mouseenter",focusin:"focus",click:"click"};var Z={name:"animateFill",defaultValue:!1,fn:function(t){var e;if(!(null==(e=t.props.render)?void 0:e.$$tippy))return R(t.props.animateFill,"The `animateFill` plugin requires the default render function."),{};var n=W(t.popper),i=n.box,r=n.content,o=t.props.animateFill?function(){var t=v();return t.className="tippy-backdrop",w([t],"hidden"),t}():null;return{onCreate:function(){o&&(i.insertBefore(o,i.firstElementChild),i.setAttribute("data-animatefill",""),i.style.overflow="hidden",t.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(o){var t=i.style.transitionDuration,e=Number(t.replace("ms",""));r.style.transitionDelay=Math.round(e/10)+"ms",o.style.transitionDuration=t,w([o],"visible")}},onShow:function(){o&&(o.style.transitionDuration="0ms")},onHide:function(){o&&w([o],"hidden")}}}};var tt={clientX:0,clientY:0},et=[];function nt(t){var e=t.clientX,n=t.clientY;tt={clientX:e,clientY:n}}var it={name:"followCursor",defaultValue:!1,fn:function(t){var e=t.reference,n=x(t.props.triggerTarget||e),i=!1,r=!1,o=!0,a=t.props;function s(){return"initial"===t.props.followCursor&&t.state.isVisible}function p(){n.addEventListener("mousemove",l)}function c(){n.removeEventListener("mousemove",l)}function u(){i=!0,t.setProps({getReferenceClientRect:null}),i=!1}function l(n){var i=!n.target||e.contains(n.target),r=t.props.followCursor,o=n.clientX,a=n.clientY,s=e.getBoundingClientRect(),p=o-s.left,c=a-s.top;!i&&t.props.interactive||t.setProps({getReferenceClientRect:function(){var t=e.getBoundingClientRect(),n=o,i=a;"initial"===r&&(n=t.left+p,i=t.top+c);var s="horizontal"===r?t.top:i,u="vertical"===r?t.right:n,l="horizontal"===r?t.bottom:i,f="vertical"===r?t.left:n;return{width:u-f,height:l-s,top:s,right:u,bottom:l,left:f}}})}function f(){t.props.followCursor&&(et.push({instance:t,doc:n}),function(t){t.addEventListener("mousemove",nt)}(n))}function d(){0===(et=et.filter((function(e){return e.instance!==t}))).filter((function(t){return t.doc===n})).length&&function(t){t.removeEventListener("mousemove",nt)}(n)}return{onCreate:f,onDestroy:d,onBeforeUpdate:function(){a=t.props},onAfterUpdate:function(e,n){var o=n.followCursor;i||void 0!==o&&a.followCursor!==o&&(d(),o?(f(),!t.state.isMounted||r||s()||p()):(c(),u()))},onMount:function(){t.props.followCursor&&!r&&(o&&(l(tt),o=!1),s()||p())},onTrigger:function(t,e){h(e)&&(tt={clientX:e.clientX,clientY:e.clientY}),r="focus"===e.type},onHidden:function(){t.props.followCursor&&(u(),c(),o=!0)}}}};var rt={name:"inlinePositioning",defaultValue:!1,fn:function(t){var e,n=t.reference;var i=-1,r=!1,o={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(r){var o=r.state;t.props.inlinePositioning&&(e!==o.placement&&t.setProps({getReferenceClientRect:function(){return function(t){return function(t,e,n,i){if(n.length<2||null===t)return e;if(2===n.length&&i>=0&&n[0].left>n[1].right)return n[i]||e;switch(t){case"top":case"bottom":var r=n[0],o=n[n.length-1],a="top"===t,s=r.top,p=o.bottom,c=a?r.left:o.left,u=a?r.right:o.right;return{top:s,bottom:p,left:c,right:u,width:u-c,height:p-s};case"left":case"right":var l=Math.min.apply(Math,n.map((function(t){return t.left}))),f=Math.max.apply(Math,n.map((function(t){return t.right}))),d=n.filter((function(e){return"left"===t?e.left===l:e.right===f})),v=d[0].top,m=d[d.length-1].bottom;return{top:v,bottom:m,left:l,right:f,width:f-l,height:m-v};default:return e}}(f(t),n.getBoundingClientRect(),d(n.getClientRects()),i)}(o.placement)}}),e=o.placement)}};function a(){var e;r||(e=function(t,e){var n;return{popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat(((null==(n=t.popperOptions)?void 0:n.modifiers)||[]).filter((function(t){return t.name!==e.name})),[e])})}}(t.props,o),r=!0,t.setProps(e),r=!1)}return{onCreate:a,onAfterUpdate:a,onTrigger:function(e,n){if(h(n)){var r=d(t.reference.getClientRects()),o=r.find((function(t){return t.left-2<=n.clientX&&t.right+2>=n.clientX&&t.top-2<=n.clientY&&t.bottom+2>=n.clientY}));i=r.indexOf(o)}},onUntrigger:function(){i=-1}}}};var ot={name:"sticky",defaultValue:!1,fn:function(t){var e=t.reference,n=t.popper;function i(e){return!0===t.props.sticky||t.props.sticky===e}var r=null,o=null;function a(){var s=i("reference")?(t.popperInstance?t.popperInstance.state.elements.reference:e).getBoundingClientRect():null,p=i("popper")?n.getBoundingClientRect():null;(s&&at(r,s)||p&&at(o,p))&&t.popperInstance&&t.popperInstance.update(),r=s,o=p,t.state.isMounted&&requestAnimationFrame(a)}return{onMount:function(){t.props.sticky&&a()}}}};function at(t,e){return!t||!e||(t.top!==e.top||t.right!==e.right||t.bottom!==e.bottom||t.left!==e.left)}return e&&function(t){var e=document.createElement("style");e.textContent=t,e.setAttribute("data-tippy-stylesheet","");var n=document.head,i=document.querySelector("head>style,head>link");i?n.insertBefore(e,i):n.appendChild(e)}('.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:8px 16px;z-index:1}'),G.setDefaultProps({plugins:[Z,it,rt,ot],render:_}),G.createSingleton=function(t,e){var n;void 0===e&&(e={}),R(!Array.isArray(t),["The first argument passed to createSingleton() must be an array of","tippy instances. The passed value was",String(t)].join(" "));var i,r=t,o=[],a=e.overrides,s=[],p=!1;function u(){o=r.map((function(t){return t.reference}))}function l(t){r.forEach((function(e){t?e.enable():e.disable()}))}function f(t){return r.map((function(e){var n=e.setProps;return e.setProps=function(r){n(r),e.reference===i&&t.setProps(r)},function(){e.setProps=n}}))}function d(t,e){var n=o.indexOf(e);if(e!==i){i=e;var s=(a||[]).concat("content").reduce((function(t,e){return t[e]=r[n].props[e],t}),{});t.setProps(Object.assign({},s,{getReferenceClientRect:"function"==typeof s.getReferenceClientRect?s.getReferenceClientRect:function(){return e.getBoundingClientRect()}}))}}l(!1),u();var m={fn:function(){return{onDestroy:function(){l(!0)},onHidden:function(){i=null},onClickOutside:function(t){t.props.showOnCreate&&!p&&(p=!0,i=null)},onShow:function(t){t.props.showOnCreate&&!p&&(p=!0,d(t,o[0]))},onTrigger:function(t,e){d(t,e.currentTarget)}}}},h=G(v(),Object.assign({},c(e,["overrides"]),{plugins:[m].concat(e.plugins||[]),triggerTarget:o,popperOptions:Object.assign({},e.popperOptions,{modifiers:[].concat((null==(n=e.popperOptions)?void 0:n.modifiers)||[],[K])})})),g=h.show;h.show=function(t){if(g(),!i&&null==t)return d(h,o[0]);if(!i||null!=t){if("number"==typeof t)return o[t]&&d(h,o[t]);if(r.includes(t)){var e=t.reference;return d(h,e)}return o.includes(t)?d(h,t):void 0}},h.showNext=function(){var t=o[0];if(!i)return h.show(0);var e=o.indexOf(i);h.show(o[e+1]||t)},h.showPrevious=function(){var t=o[o.length-1];if(!i)return h.show(t);var e=o.indexOf(i),n=o[e-1]||t;h.show(n)};var y=h.setProps;return h.setProps=function(t){a=t.overrides||a,y(t)},h.setInstances=function(t){l(!0),s.forEach((function(t){return t()})),r=t,l(!1),u(),f(h),h.setProps({triggerTarget:o})},s=f(h),h},G.delegate=function(t,e){R(!(e&&e.target),["You must specity a `target` prop indicating a CSS selector string matching","the target elements that should receive a tippy."].join(" "));var n=[],i=[],o=!1,a=e.target,s=c(e,["target"]),p=Object.assign({},s,{trigger:"manual",touch:!1}),l=Object.assign({},s,{showOnCreate:!0}),f=G(t,p);function d(t){if(t.target&&!o){var n=t.target.closest(a);if(n){var r=n.getAttribute("data-tippy-trigger")||e.trigger||V.trigger;if(!n._tippy&&!("touchstart"===t.type&&"boolean"==typeof l.touch||"touchstart"!==t.type&&r.indexOf(Q[t.type])<0)){var s=G(n,l);s&&(i=i.concat(s))}}}}function v(t,e,i,r){void 0===r&&(r=!1),t.addEventListener(e,i,r),n.push({node:t,eventType:e,handler:i,options:r})}return u(f).forEach((function(t){var e=t.destroy,a=t.enable,s=t.disable;t.destroy=function(t){void 0===t&&(t=!0),t&&i.forEach((function(t){t.destroy()})),i=[],n.forEach((function(t){var e=t.node,n=t.eventType,i=t.handler,r=t.options;e.removeEventListener(n,i,r)})),n=[],e()},t.enable=function(){a(),i.forEach((function(t){return t.enable()})),o=!1},t.disable=function(){s(),i.forEach((function(t){return t.disable()})),o=!0},function(t){var e=t.reference;v(e,"touchstart",d,r),v(e,"mouseover",d),v(e,"focusin",d),v(e,"click",d)}(t)})),f},G.hideAll=function(t){var e=void 0===t?{}:t,n=e.exclude,i=e.duration;$.forEach((function(t){var e=!1;if(n&&(e=g(n)?t.reference===n:t.popper===n.popper),!e){var r=t.props.duration;t.setProps({duration:i}),t.hide(),t.state.isDestroyed||t.setProps({duration:r})}}))},G.roundArrow='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',G}));
!function(t,n){"use strict";var e=function(t,n){var e=t.find(".bdt-dotnav > li");if(e.length){var o=e.find("> .bdt-tippy-tooltip"),i=t.data("id");o.each((function(t){tippy(this,{allowHTML:!0,theme:"bdt-tippy-"+i})}))}};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/bdt-scrollnav.default",e)}))}(jQuery,window.elementorFrontend);
!function(t,n){"use strict";var i=function(t,n){var i=t.find(".bdt-mailchimp");if(i.length){var e=window.ElementPackConfig.mailchimp;return i.submit((function(){var t=n(this);return bdtUIkit.notification({message:"<span bdt-spinner></span> "+e.subscribing,timeout:!1,status:"primary"}),n.ajax({url:t.attr("action"),type:"POST",data:t.serialize(),success:function(t){bdtUIkit.notification.closeAll(),bdtUIkit.notification({message:t,status:"success"})}}),!1})),!1}};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/bdt-mailchimp.default",i)}))}(jQuery,window.elementorFrontend);
!function(t){"use strict";t.epNewsTickerOld=function(e,i){var n={effect:"fade",direction:"ltr",autoPlay:!1,interval:4e3,scrollSpeed:2,pauseOnHover:!1,position:"auto",zIndex:99999},s=this;s.settings={},s._element=t(e),s._label=s._element.children(".bdt-news-ticker-label"),s._news=s._element.children(".bdt-news-ticker-content"),s._ul=s._news.children("ul"),s._li=s._ul.children("li"),s._controls=s._element.children(".bdt-news-ticker-controls"),s._prev=s._controls.find(".bdt-news-ticker-prev").parent(),s._action=s._controls.find(".bdt-news-ticker-action").parent(),s._next=s._controls.find(".bdt-news-ticker-next").parent(),s._pause=!1,s._controlsIsActive=!0,s._totalNews=s._ul.children("li").length,s._activeNews=0,s._interval=!1,s._frameId=null;var l=function(){var t=parseFloat(s._ul.css("marginLeft"));t-=s.settings.scrollSpeed/2,s._ul.css({marginLeft:t}),t<=-s._ul.find("li:first-child").outerWidth()&&(s._ul.find("li:first-child").insertAfter(s._ul.find("li:last-child")),s._ul.css({marginLeft:0})),!1===s._pause&&(s._frameId=requestAnimationFrame(l),window.requestAnimationFrame&&s._frameId||setTimeout(l,16))},a=function(){var t=parseFloat(s._ul.css("marginRight"));t-=s.settings.scrollSpeed/2,s._ul.css({marginRight:t}),t<=-s._ul.find("li:first-child").outerWidth()&&(s._ul.find("li:first-child").insertAfter(s._ul.find("li:last-child")),s._ul.css({marginRight:0})),!1===s._pause&&(s._frameId=requestAnimationFrame(a)),window.requestAnimationFrame&&s._frameId||setTimeout(a,16)},c=function(){"rtl"===s.settings.direction?s._ul.stop().animate({marginRight:-s._ul.find("li:first-child").outerWidth()},300,(function(){s._ul.find("li:first-child").insertAfter(s._ul.find("li:last-child")),s._ul.css({marginRight:0}),s._controlsIsActive=!0})):s._ul.stop().animate({marginLeft:-s._ul.find("li:first-child").outerWidth()},300,(function(){s._ul.find("li:first-child").insertAfter(s._ul.find("li:last-child")),s._ul.css({marginLeft:0}),s._controlsIsActive=!0}))},o=function(){"rtl"===s.settings.direction?(parseInt(s._ul.css("marginRight"),10)>=0&&(s._ul.css({"margin-right":-s._ul.find("li:last-child").outerWidth()}),s._ul.find("li:last-child").insertBefore(s._ul.find("li:first-child"))),s._ul.stop().animate({marginRight:0},300,(function(){s._controlsIsActive=!0}))):(parseInt(s._ul.css("marginLeft"),10)>=0&&(s._ul.css({"margin-left":-s._ul.find("li:last-child").outerWidth()}),s._ul.find("li:last-child").insertBefore(s._ul.find("li:first-child"))),s._ul.stop().animate({marginLeft:0},300,(function(){s._controlsIsActive=!0})))},r=function(){switch(s._controlsIsActive=!0,s.settings.effect){case"typography":s._ul.find("li").hide(),s._ul.find("li").eq(s._activeNews).width(30).show(),s._ul.find("li").eq(s._activeNews).animate({width:"100%",opacity:1},1500);break;case"fade":s._ul.find("li").hide(),s._ul.find("li").eq(s._activeNews).fadeIn();break;case"slide-down":s._totalNews<=1?s._ul.find("li").animate({top:30,opacity:0},300,(function(){t(this).css({top:-30,opacity:0,display:"block"}),t(this).animate({top:0,opacity:1},300)})):(s._ul.find("li:visible").animate({top:30,opacity:0},300,(function(){t(this).hide()})),s._ul.find("li").eq(s._activeNews).css({top:-30,opacity:0}).show(),s._ul.find("li").eq(s._activeNews).animate({top:0,opacity:1},300));break;case"slide-up":s._totalNews<=1?s._ul.find("li").animate({top:-30,opacity:0},300,(function(){t(this).css({top:30,opacity:0,display:"block"}),t(this).animate({top:0,opacity:1},300)})):(s._ul.find("li:visible").animate({top:-30,opacity:0},300,(function(){t(this).hide()})),s._ul.find("li").eq(s._activeNews).css({top:30,opacity:0}).show(),s._ul.find("li").eq(s._activeNews).animate({top:0,opacity:1},300));break;case"slide-right":s._totalNews<=1?s._ul.find("li").animate({left:"50%",opacity:0},300,(function(){t(this).css({left:-50,opacity:0,display:"block"}),t(this).animate({left:0,opacity:1},300)})):(s._ul.find("li:visible").animate({left:"50%",opacity:0},300,(function(){t(this).hide()})),s._ul.find("li").eq(s._activeNews).css({left:-50,opacity:0}).show(),s._ul.find("li").eq(s._activeNews).animate({left:0,opacity:1},300));break;case"slide-left":s._totalNews<=1?s._ul.find("li").animate({left:"-50%",opacity:0},300,(function(){t(this).css({left:"50%",opacity:0,display:"block"}),t(this).animate({left:0,opacity:1},300)})):(s._ul.find("li:visible").animate({left:"-50%",opacity:0},300,(function(){t(this).hide()})),s._ul.find("li").eq(s._activeNews).css({left:"50%",opacity:0}).show(),s._ul.find("li").eq(s._activeNews).animate({left:0,opacity:1},300));break;default:s._ul.find("li").hide(),s._ul.find("li").eq(s._activeNews).show()}},d=function(){if(s._pause=!1,s.settings.autoPlay)switch(s.settings.effect){case"scroll":"rtl"===s.settings.direction?s._ul.width()>s._news.width()?a():s._ul.css({marginRight:0}):s._ul.width()>s._news.width()?l():s._ul.css({marginLeft:0});break;default:s.pause(),s._interval=setInterval((function(){s.next()}),s.settings.interval)}},f=function(){s._element.width()<480?(s._label.hide(),"rtl"==s.settings.direction?s._news.css({right:0}):s._news.css({left:0})):(s._label.show(),"rtl"==s.settings.direction?s._news.css({right:s._label.outerWidth()}):s._news.css({left:s._label.outerWidth()}))};s.init=function(){s.settings=t.extend({},n,i),s._element.addClass("bdt-effect-"+s.settings.effect+" bdt-direction-"+s.settings.direction),function(){if(s._label.length>0&&("rtl"==s.settings.direction?s._news.css({right:s._label.outerWidth()}):s._news.css({left:s._label.outerWidth()})),s._controls.length>0){var e=s._controls.outerWidth();"rtl"==s.settings.direction?s._news.css({left:e}):s._news.css({right:e})}if("scroll"===s.settings.effect){var i=0;s._li.each((function(){i+=t(this).outerWidth()})),i+=50,s._ul.css({width:i})}}(),"scroll"!=s.settings.effect&&r(),d(),s.settings.autoPlay?s._action.find("span").removeClass("bdt-news-ticker-play").addClass("bdt-news-ticker-pause"):s._action.find("span").removeClass("bdt-news-ticker-pause").addClass("bdt-news-ticker-play"),s._element.on("mouseleave",(function(e){var i=t(document.elementFromPoint(e.clientX,e.clientY)).parents(".bdt-breaking-news")[0];t(this)[0]!==i&&(!0===s.settings.pauseOnHover?!0===s.settings.autoPlay&&s.play():!0===s.settings.autoPlay&&!0===s._pause&&s.play())})),s._element.on("mouseenter",(function(){!0===s.settings.pauseOnHover&&s.pause()})),s._next.on("click",(function(){s._controlsIsActive&&(s._controlsIsActive=!1,s.pause(),s.next())})),s._prev.on("click",(function(){s._controlsIsActive&&(s._controlsIsActive=!1,s.pause(),s.prev())})),s._action.on("click",(function(){s._controlsIsActive&&(s._action.find("span").hasClass("bdt-news-ticker-pause")?(s._action.find("span").removeClass("bdt-news-ticker-pause").addClass("bdt-news-ticker-play"),s.stop()):(s.settings.autoPlay=!0,s._action.find("span").removeClass("bdt-news-ticker-play").addClass("bdt-news-ticker-pause")))})),f(),t(window).on("resize",(function(){f(),s.pause(),s.play()}))},s.pause=function(){s._pause=!0,clearInterval(s._interval),cancelAnimationFrame(s._frameId)},s.stop=function(){s._pause=!0,s.settings.autoPlay=!1},s.play=function(){d()},s.next=function(){!function(){switch(s.settings.effect){case"scroll":c();break;default:s._activeNews++,s._activeNews>=s._totalNews&&(s._activeNews=0),r()}}()},s.prev=function(){!function(){switch(s.settings.effect){case"scroll":o();break;default:s._activeNews--,s._activeNews<0&&(s._activeNews=s._totalNews-1),r()}}()},s.init()},t.fn.epNewsTickerOld=function(e){return this.each((function(){if(null==t(this).data("epNewsTickerOld")){var i=new t.epNewsTickerOld(this,e);t(this).data("epNewsTickerOld",i)}}))}}(jQuery),function(t,e){"use strict";var i=function(t,e){var i=t.find(".bdt-news-ticker"),n=i.data("settings");i.length&&e(i).epNewsTickerOld(n)};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/bdt-news-ticker.default",i)}))}(jQuery,window.elementorFrontend);
!function(i){function n(e){e=e.find(".oceanwp-flickr-container");e.length&&e.each(function(){var o=i(this),e=o.data("user-id"),r=o.data("max-photos"),n="jsonFlickrFeed_"+(o.attr("id")||Math.random().toString(36).substring(2)).replace(/[^a-zA-Z0-9_-]/g,"");window[n]=function(e){var t=0;e.items.forEach(function(e){var n;t<r&&(n=e.media.m.replace("_m.jpg","_q.jpg"),e=i("<img>").attr("src",n).attr("alt",e.title||"Flickr image"),o.append(e),t++)}),delete window[n]};var t="https://www.flickr.com/services/feeds/photos_public.gne?id="+encodeURIComponent(e)+"&format=json&jsoncallback="+n,e=document.createElement("script");e.src=t,e.onerror=function(){console.error("Error loading Flickr feed.")},document.head.appendChild(e)})}i(document).ready(function(){n(i(document))}),i(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/widget",function(e){n(e)})})}(jQuery);
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../keycode"],e):e(jQuery)}(function(V){"use strict";var n;function e(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},V.extend(this._defaults,this.regional[""]),this.regional.en=V.extend(!0,{},this.regional[""]),this.regional["en-US"]=V.extend(!0,{},this.regional.en),this.dpDiv=a(V("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function a(e){var t="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",t,function(){V(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&V(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&V(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",t,d)}function d(){V.datepicker._isDisabledDatepicker((n.inline?n.dpDiv.parent():n.input)[0])||(V(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),V(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&V(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&V(this).addClass("ui-datepicker-next-hover"))}function c(e,t){for(var a in V.extend(e,t),t)null==t[a]&&(e[a]=t[a])}return V.extend(V.ui,{datepicker:{version:"1.13.3"}}),V.extend(e.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return c(this._defaults,e||{}),this},_attachDatepicker:function(e,t){var a,i=e.nodeName.toLowerCase(),s="div"===i||"span"===i;e.id||(this.uuid+=1,e.id="dp"+this.uuid),(a=this._newInst(V(e),s)).settings=V.extend({},t||{}),"input"===i?this._connectDatepicker(e,a):s&&this._inlineDatepicker(e,a)},_newInst:function(e,t){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:t,dpDiv:t?a(V("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,t){var a=V(e);t.append=V([]),t.trigger=V([]),a.hasClass(this.markerClassName)||(this._attachments(a,t),a.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(t),V.data(e,"datepicker",t),t.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,t){var a,i=this._get(t,"appendText"),s=this._get(t,"isRTL");t.append&&t.append.remove(),i&&(t.append=V("<span>").addClass(this._appendClass).text(i),e[s?"before":"after"](t.append)),e.off("focus",this._showDatepicker),t.trigger&&t.trigger.remove(),"focus"!==(i=this._get(t,"showOn"))&&"both"!==i||e.on("focus",this._showDatepicker),"button"!==i&&"both"!==i||(i=this._get(t,"buttonText"),a=this._get(t,"buttonImage"),this._get(t,"buttonImageOnly")?t.trigger=V("<img>").addClass(this._triggerClass).attr({src:a,alt:i,title:i}):(t.trigger=V("<button type='button'>").addClass(this._triggerClass),a?t.trigger.html(V("<img>").attr({src:a,alt:i,title:i})):t.trigger.text(i)),e[s?"before":"after"](t.trigger),t.trigger.on("click",function(){return V.datepicker._datepickerShowing&&V.datepicker._lastInput===e[0]?V.datepicker._hideDatepicker():(V.datepicker._datepickerShowing&&V.datepicker._lastInput!==e[0]&&V.datepicker._hideDatepicker(),V.datepicker._showDatepicker(e[0])),!1}))},_autoSize:function(e){var t,a,i,s,r,n;this._get(e,"autoSize")&&!e.inline&&(r=new Date(2009,11,20),(n=this._get(e,"dateFormat")).match(/[DM]/)&&(r.setMonth((t=function(e){for(s=i=a=0;s<e.length;s++)e[s].length>a&&(a=e[s].length,i=s);return i})(this._get(e,n.match(/MM/)?"monthNames":"monthNamesShort"))),r.setDate(t(this._get(e,n.match(/DD/)?"dayNames":"dayNamesShort"))+20-r.getDay())),e.input.attr("size",this._formatDate(e,r).length))},_inlineDatepicker:function(e,t){var a=V(e);a.hasClass(this.markerClassName)||(a.addClass(this.markerClassName).append(t.dpDiv),V.data(e,"datepicker",t),this._setDate(t,this._getDefaultDate(t),!0),this._updateDatepicker(t),this._updateAlternate(t),t.settings.disabled&&this._disableDatepicker(e),t.dpDiv.css("display","block"))},_dialogDatepicker:function(e,t,a,i,s){var r,n=this._dialogInst;return n||(this.uuid+=1,r="dp"+this.uuid,this._dialogInput=V("<input type='text' id='"+r+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),V("body").append(this._dialogInput),(n=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},V.data(this._dialogInput[0],"datepicker",n)),c(n.settings,i||{}),t=t&&t.constructor===Date?this._formatDate(n,t):t,this._dialogInput.val(t),this._pos=s?s.length?s:[s.pageX,s.pageY]:null,this._pos||(r=document.documentElement.clientWidth,i=document.documentElement.clientHeight,t=document.documentElement.scrollLeft||document.body.scrollLeft,s=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[r/2-100+t,i/2-150+s]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),n.settings.onSelect=a,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),V.blockUI&&V.blockUI(this.dpDiv),V.data(this._dialogInput[0],"datepicker",n),this},_destroyDatepicker:function(e){var t,a=V(e),i=V.data(e,"datepicker");a.hasClass(this.markerClassName)&&(t=e.nodeName.toLowerCase(),V.removeData(e,"datepicker"),"input"===t?(i.append.remove(),i.trigger.remove(),a.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==t&&"span"!==t||a.removeClass(this.markerClassName).empty(),n===i)&&(n=null,this._curInst=null)},_enableDatepicker:function(t){var e,a=V(t),i=V.data(t,"datepicker");a.hasClass(this.markerClassName)&&("input"===(e=t.nodeName.toLowerCase())?(t.disabled=!1,i.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==e&&"span"!==e||((i=a.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=V.map(this._disabledInputs,function(e){return e===t?null:e}))},_disableDatepicker:function(t){var e,a=V(t),i=V.data(t,"datepicker");a.hasClass(this.markerClassName)&&("input"===(e=t.nodeName.toLowerCase())?(t.disabled=!0,i.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==e&&"span"!==e||((i=a.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=V.map(this._disabledInputs,function(e){return e===t?null:e}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(e)for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(e){try{return V.data(e,"datepicker")}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,t,a){var i,s,r=this._getInst(e);if(2===arguments.length&&"string"==typeof t)return"defaults"===t?V.extend({},V.datepicker._defaults):r?"all"===t?V.extend({},r.settings):this._get(r,t):null;i=t||{},"string"==typeof t&&((i={})[t]=a),r&&(this._curInst===r&&this._hideDatepicker(),t=this._getDateDatepicker(e,!0),a=this._getMinMaxDate(r,"min"),s=this._getMinMaxDate(r,"max"),c(r.settings,i),null!==a&&void 0!==i.dateFormat&&void 0===i.minDate&&(r.settings.minDate=this._formatDate(r,a)),null!==s&&void 0!==i.dateFormat&&void 0===i.maxDate&&(r.settings.maxDate=this._formatDate(r,s)),"disabled"in i&&(i.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(V(e),r),this._autoSize(r),this._setDate(r,t),this._updateAlternate(r),this._updateDatepicker(r))},_changeDatepicker:function(e,t,a){this._optionDatepicker(e,t,a)},_refreshDatepicker:function(e){e=this._getInst(e);e&&this._updateDatepicker(e)},_setDateDatepicker:function(e,t){e=this._getInst(e);e&&(this._setDate(e,t),this._updateDatepicker(e),this._updateAlternate(e))},_getDateDatepicker:function(e,t){e=this._getInst(e);return e&&!e.inline&&this._setDateFromField(e,t),e?this._getDate(e):null},_doKeyDown:function(e){var t,a,i=V.datepicker._getInst(e.target),s=!0,r=i.dpDiv.is(".ui-datepicker-rtl");if(i._keyEvent=!0,V.datepicker._datepickerShowing)switch(e.keyCode){case 9:V.datepicker._hideDatepicker(),s=!1;break;case 13:return(a=V("td."+V.datepicker._dayOverClass+":not(."+V.datepicker._currentClass+")",i.dpDiv))[0]&&V.datepicker._selectDay(e.target,i.selectedMonth,i.selectedYear,a[0]),(a=V.datepicker._get(i,"onSelect"))?(t=V.datepicker._formatDate(i),a.apply(i.input?i.input[0]:null,[t,i])):V.datepicker._hideDatepicker(),!1;case 27:V.datepicker._hideDatepicker();break;case 33:V.datepicker._adjustDate(e.target,e.ctrlKey?-V.datepicker._get(i,"stepBigMonths"):-V.datepicker._get(i,"stepMonths"),"M");break;case 34:V.datepicker._adjustDate(e.target,e.ctrlKey?+V.datepicker._get(i,"stepBigMonths"):+V.datepicker._get(i,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&V.datepicker._clearDate(e.target),s=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&V.datepicker._gotoToday(e.target),s=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,r?1:-1,"D"),s=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&V.datepicker._adjustDate(e.target,e.ctrlKey?-V.datepicker._get(i,"stepBigMonths"):-V.datepicker._get(i,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,-7,"D"),s=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,r?-1:1,"D"),s=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&V.datepicker._adjustDate(e.target,e.ctrlKey?+V.datepicker._get(i,"stepBigMonths"):+V.datepicker._get(i,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,7,"D"),s=e.ctrlKey||e.metaKey;break;default:s=!1}else 36===e.keyCode&&e.ctrlKey?V.datepicker._showDatepicker(this):s=!1;s&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var t,a=V.datepicker._getInst(e.target);if(V.datepicker._get(a,"constrainInput"))return a=V.datepicker._possibleChars(V.datepicker._get(a,"dateFormat")),t=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||t<" "||!a||-1<a.indexOf(t)},_doKeyUp:function(e){e=V.datepicker._getInst(e.target);if(e.input.val()!==e.lastVal)try{V.datepicker.parseDate(V.datepicker._get(e,"dateFormat"),e.input?e.input.val():null,V.datepicker._getFormatConfig(e))&&(V.datepicker._setDateFromField(e),V.datepicker._updateAlternate(e),V.datepicker._updateDatepicker(e))}catch(e){}return!0},_showDatepicker:function(e){var t,a,i,s;"input"!==(e=e.target||e).nodeName.toLowerCase()&&(e=V("input",e.parentNode)[0]),V.datepicker._isDisabledDatepicker(e)||V.datepicker._lastInput===e||(s=V.datepicker._getInst(e),V.datepicker._curInst&&V.datepicker._curInst!==s&&(V.datepicker._curInst.dpDiv.stop(!0,!0),s)&&V.datepicker._datepickerShowing&&V.datepicker._hideDatepicker(V.datepicker._curInst.input[0]),!1===(a=(a=V.datepicker._get(s,"beforeShow"))?a.apply(e,[e,s]):{}))||(c(s.settings,a),s.lastVal=null,V.datepicker._lastInput=e,V.datepicker._setDateFromField(s),V.datepicker._inDialog&&(e.value=""),V.datepicker._pos||(V.datepicker._pos=V.datepicker._findPos(e),V.datepicker._pos[1]+=e.offsetHeight),t=!1,V(e).parents().each(function(){return!(t|="fixed"===V(this).css("position"))}),a={left:V.datepicker._pos[0],top:V.datepicker._pos[1]},V.datepicker._pos=null,s.dpDiv.empty(),s.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),V.datepicker._updateDatepicker(s),a=V.datepicker._checkOffset(s,a,t),s.dpDiv.css({position:V.datepicker._inDialog&&V.blockUI?"static":t?"fixed":"absolute",display:"none",left:a.left+"px",top:a.top+"px"}),s.inline)||(a=V.datepicker._get(s,"showAnim"),i=V.datepicker._get(s,"duration"),s.dpDiv.css("z-index",function(e){for(var t;e.length&&e[0]!==document;){if(("absolute"===(t=e.css("position"))||"relative"===t||"fixed"===t)&&(t=parseInt(e.css("zIndex"),10),!isNaN(t))&&0!==t)return t;e=e.parent()}return 0}(V(e))+1),V.datepicker._datepickerShowing=!0,V.effects&&V.effects.effect[a]?s.dpDiv.show(a,V.datepicker._get(s,"showOptions"),i):s.dpDiv[a||"show"](a?i:null),V.datepicker._shouldFocusInput(s)&&s.input.trigger("focus"),V.datepicker._curInst=s)},_updateDatepicker:function(e){this.maxRows=4,(n=e).dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var t,a=this._getNumberOfMonths(e),i=a[1],s=e.dpDiv.find("."+this._dayOverClass+" a"),r=V.datepicker._get(e,"onUpdateDatepicker");0<s.length&&d.apply(s.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<i&&e.dpDiv.addClass("ui-datepicker-multi-"+i).css("width",17*i+"em"),e.dpDiv[(1!==a[0]||1!==a[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===V.datepicker._curInst&&V.datepicker._datepickerShowing&&V.datepicker._shouldFocusInput(e)&&e.input.trigger("focus"),e.yearshtml&&(t=e.yearshtml,setTimeout(function(){t===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year").first().replaceWith(e.yearshtml),t=e.yearshtml=null},0)),r&&r.apply(e.input?e.input[0]:null,[e])},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(e,t,a){var i=e.dpDiv.outerWidth(),s=e.dpDiv.outerHeight(),r=e.input?e.input.outerWidth():0,n=e.input?e.input.outerHeight():0,d=document.documentElement.clientWidth+(a?0:V(document).scrollLeft()),c=document.documentElement.clientHeight+(a?0:V(document).scrollTop());return t.left-=this._get(e,"isRTL")?i-r:0,t.left-=a&&t.left===e.input.offset().left?V(document).scrollLeft():0,t.top-=a&&t.top===e.input.offset().top+n?V(document).scrollTop():0,t.left-=Math.min(t.left,d<t.left+i&&i<d?Math.abs(t.left+i-d):0),t.top-=Math.min(t.top,c<t.top+s&&s<c?Math.abs(s+n):0),t},_findPos:function(e){for(var t=this._getInst(e),a=this._get(t,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||V.expr.pseudos.hidden(e));)e=e[a?"previousSibling":"nextSibling"];return[(t=V(e).offset()).left,t.top]},_hideDatepicker:function(e){var t,a,i=this._curInst;!i||e&&i!==V.data(e,"datepicker")||this._datepickerShowing&&(e=this._get(i,"showAnim"),a=this._get(i,"duration"),t=function(){V.datepicker._tidyDialog(i)},V.effects&&(V.effects.effect[e]||V.effects[e])?i.dpDiv.hide(e,V.datepicker._get(i,"showOptions"),a,t):i.dpDiv["slideDown"===e?"slideUp":"fadeIn"===e?"fadeOut":"hide"](e?a:null,t),e||t(),this._datepickerShowing=!1,(a=this._get(i,"onClose"))&&a.apply(i.input?i.input[0]:null,[i.input?i.input.val():"",i]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),V.blockUI)&&(V.unblockUI(),V("body").append(this.dpDiv)),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){var t;V.datepicker._curInst&&(e=V(e.target),t=V.datepicker._getInst(e[0]),!(e[0].id===V.datepicker._mainDivId||0!==e.parents("#"+V.datepicker._mainDivId).length||e.hasClass(V.datepicker.markerClassName)||e.closest("."+V.datepicker._triggerClass).length||!V.datepicker._datepickerShowing||V.datepicker._inDialog&&V.blockUI)||e.hasClass(V.datepicker.markerClassName)&&V.datepicker._curInst!==t)&&V.datepicker._hideDatepicker()},_adjustDate:function(e,t,a){var e=V(e),i=this._getInst(e[0]);this._isDisabledDatepicker(e[0])||(this._adjustInstDate(i,t,a),this._updateDatepicker(i))},_gotoToday:function(e){var t,e=V(e),a=this._getInst(e[0]);this._get(a,"gotoCurrent")&&a.currentDay?(a.selectedDay=a.currentDay,a.drawMonth=a.selectedMonth=a.currentMonth,a.drawYear=a.selectedYear=a.currentYear):(t=new Date,a.selectedDay=t.getDate(),a.drawMonth=a.selectedMonth=t.getMonth(),a.drawYear=a.selectedYear=t.getFullYear()),this._notifyChange(a),this._adjustDate(e)},_selectMonthYear:function(e,t,a){var e=V(e),i=this._getInst(e[0]);i["selected"+("M"===a?"Month":"Year")]=i["draw"+("M"===a?"Month":"Year")]=parseInt(t.options[t.selectedIndex].value,10),this._notifyChange(i),this._adjustDate(e)},_selectDay:function(e,t,a,i){var s=V(e);V(i).hasClass(this._unselectableClass)||this._isDisabledDatepicker(s[0])||((s=this._getInst(s[0])).selectedDay=s.currentDay=parseInt(V("a",i).attr("data-date")),s.selectedMonth=s.currentMonth=t,s.selectedYear=s.currentYear=a,this._selectDate(e,this._formatDate(s,s.currentDay,s.currentMonth,s.currentYear)))},_clearDate:function(e){e=V(e);this._selectDate(e,"")},_selectDate:function(e,t){var a,e=V(e),e=this._getInst(e[0]);t=null!=t?t:this._formatDate(e),e.input&&e.input.val(t),this._updateAlternate(e),(a=this._get(e,"onSelect"))?a.apply(e.input?e.input[0]:null,[t,e]):e.input&&e.input.trigger("change"),e.inline?this._updateDatepicker(e):(this._hideDatepicker(),this._lastInput=e.input[0],"object"!=typeof e.input[0]&&e.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var t,a,i=this._get(e,"altField");i&&(a=this._get(e,"altFormat")||this._get(e,"dateFormat"),t=this._getDate(e),a=this.formatDate(a,t,this._getFormatConfig(e)),V(document).find(i).val(a))},noWeekends:function(e){e=e.getDay();return[0<e&&e<6,""]},iso8601Week:function(e){var t,e=new Date(e.getTime());return e.setDate(e.getDate()+4-(e.getDay()||7)),t=e.getTime(),e.setMonth(0),e.setDate(1),Math.floor(Math.round((t-e)/864e5)/7)+1},parseDate:function(t,s,e){if(null==t||null==s)throw"Invalid arguments";if(""===(s="object"==typeof s?s.toString():s+""))return null;for(var a,i,r=0,n=(e?e.shortYearCutoff:null)||this._defaults.shortYearCutoff,n="string"!=typeof n?n:(new Date).getFullYear()%100+parseInt(n,10),d=(e?e.dayNamesShort:null)||this._defaults.dayNamesShort,c=(e?e.dayNames:null)||this._defaults.dayNames,o=(e?e.monthNamesShort:null)||this._defaults.monthNamesShort,l=(e?e.monthNames:null)||this._defaults.monthNames,h=-1,u=-1,p=-1,g=-1,_=!1,f=function(e){e=y+1<t.length&&t.charAt(y+1)===e;return e&&y++,e},k=function(e){var t=f(e),t="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,e=new RegExp("^\\d{"+("y"===e?t:1)+","+t+"}"),t=s.substring(r).match(e);if(t)return r+=t[0].length,parseInt(t[0],10);throw"Missing number at position "+r},D=function(e,t,a){var i=-1,e=V.map(f(e)?a:t,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e[1].length-t[1].length)});if(V.each(e,function(e,t){var a=t[1];if(s.substr(r,a.length).toLowerCase()===a.toLowerCase())return i=t[0],r+=a.length,!1}),-1!==i)return i+1;throw"Unknown name at position "+r},m=function(){if(s.charAt(r)!==t.charAt(y))throw"Unexpected literal at position "+r;r++},y=0;y<t.length;y++)if(_)"'"!==t.charAt(y)||f("'")?m():_=!1;else switch(t.charAt(y)){case"d":p=k("d");break;case"D":D("D",d,c);break;case"o":g=k("o");break;case"m":u=k("m");break;case"M":u=D("M",o,l);break;case"y":h=k("y");break;case"@":h=(i=new Date(k("@"))).getFullYear(),u=i.getMonth()+1,p=i.getDate();break;case"!":h=(i=new Date((k("!")-this._ticksTo1970)/1e4)).getFullYear(),u=i.getMonth()+1,p=i.getDate();break;case"'":f("'")?m():_=!0;break;default:m()}if(r<s.length&&(e=s.substr(r),!/^\s+/.test(e)))throw"Extra/unparsed characters found in date: "+e;if(-1===h?h=(new Date).getFullYear():h<100&&(h+=(new Date).getFullYear()-(new Date).getFullYear()%100+(h<=n?0:-100)),-1<g)for(u=1,p=g;;){if(p<=(a=this._getDaysInMonth(h,u-1)))break;u++,p-=a}if((i=this._daylightSavingAdjust(new Date(h,u-1,p))).getFullYear()!==h||i.getMonth()+1!==u||i.getDate()!==p)throw"Invalid date";return i},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,a){if(!e)return"";function i(e,t,a){var i=""+t;if(l(e))for(;i.length<a;)i="0"+i;return i}function s(e,t,a,i){return(l(e)?i:a)[t]}var r,n=(a?a.dayNamesShort:null)||this._defaults.dayNamesShort,d=(a?a.dayNames:null)||this._defaults.dayNames,c=(a?a.monthNamesShort:null)||this._defaults.monthNamesShort,o=(a?a.monthNames:null)||this._defaults.monthNames,l=function(e){e=r+1<t.length&&t.charAt(r+1)===e;return e&&r++,e},h="",u=!1;if(e)for(r=0;r<t.length;r++)if(u)"'"!==t.charAt(r)||l("'")?h+=t.charAt(r):u=!1;else switch(t.charAt(r)){case"d":h+=i("d",e.getDate(),2);break;case"D":h+=s("D",e.getDay(),n,d);break;case"o":h+=i("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":h+=i("m",e.getMonth()+1,2);break;case"M":h+=s("M",e.getMonth(),c,o);break;case"y":h+=l("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":h+=e.getTime();break;case"!":h+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?h+="'":u=!0;break;default:h+=t.charAt(r)}return h},_possibleChars:function(t){for(var e="",a=!1,i=function(e){e=s+1<t.length&&t.charAt(s+1)===e;return e&&s++,e},s=0;s<t.length;s++)if(a)"'"!==t.charAt(s)||i("'")?e+=t.charAt(s):a=!1;else switch(t.charAt(s)){case"d":case"m":case"y":case"@":e+="0123456789";break;case"D":case"M":return null;case"'":i("'")?e+="'":a=!0;break;default:e+=t.charAt(s)}return e},_get:function(e,t){return(void 0!==e.settings[t]?e.settings:this._defaults)[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var a=this._get(e,"dateFormat"),i=e.lastVal=e.input?e.input.val():null,s=this._getDefaultDate(e),r=s,n=this._getFormatConfig(e);try{r=this.parseDate(a,i,n)||s}catch(e){i=t?"":i}e.selectedDay=r.getDate(),e.drawMonth=e.selectedMonth=r.getMonth(),e.drawYear=e.selectedYear=r.getFullYear(),e.currentDay=i?r.getDate():0,e.currentMonth=i?r.getMonth():0,e.currentYear=i?r.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(d,e,t){var a,i=null==e||""===e?t:"string"==typeof e?function(e){try{return V.datepicker.parseDate(V.datepicker._get(d,"dateFormat"),e,V.datepicker._getFormatConfig(d))}catch(e){}for(var t=(e.toLowerCase().match(/^c/)?V.datepicker._getDate(d):null)||new Date,a=t.getFullYear(),i=t.getMonth(),s=t.getDate(),r=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,n=r.exec(e);n;){switch(n[2]||"d"){case"d":case"D":s+=parseInt(n[1],10);break;case"w":case"W":s+=7*parseInt(n[1],10);break;case"m":case"M":i+=parseInt(n[1],10),s=Math.min(s,V.datepicker._getDaysInMonth(a,i));break;case"y":case"Y":a+=parseInt(n[1],10),s=Math.min(s,V.datepicker._getDaysInMonth(a,i))}n=r.exec(e)}return new Date(a,i,s)}(e):"number"==typeof e?isNaN(e)?t:(i=e,(a=new Date).setDate(a.getDate()+i),a):new Date(e.getTime());return(i=i&&"Invalid Date"===i.toString()?t:i)&&(i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0)),this._daylightSavingAdjust(i)},_daylightSavingAdjust:function(e){return e?(e.setHours(12<e.getHours()?e.getHours()+2:0),e):null},_setDate:function(e,t,a){var i=!t,s=e.selectedMonth,r=e.selectedYear,t=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=t.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=t.getMonth(),e.drawYear=e.selectedYear=e.currentYear=t.getFullYear(),s===e.selectedMonth&&r===e.selectedYear||a||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(i?"":this._formatDate(e))},_getDate:function(e){return!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay))},_attachHandlers:function(e){var t=this._get(e,"stepMonths"),a="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){V.datepicker._adjustDate(a,-t,"M")},next:function(){V.datepicker._adjustDate(a,+t,"M")},hide:function(){V.datepicker._hideDatepicker()},today:function(){V.datepicker._gotoToday(a)},selectDay:function(){return V.datepicker._selectDay(a,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return V.datepicker._selectMonthYear(a,this,"M"),!1},selectYear:function(){return V.datepicker._selectMonthYear(a,this,"Y"),!1}};V(this).on(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(e){var t,a,i,s,r,O,L,R,H,n,d,W,c,o,l,h,u,p,g,_,f,k,E,D,m,U,y,P,z,v,M,b,w=new Date,B=this._daylightSavingAdjust(new Date(w.getFullYear(),w.getMonth(),w.getDate())),C=this._get(e,"isRTL"),w=this._get(e,"showButtonPanel"),I=this._get(e,"hideIfNoPrevNext"),x=this._get(e,"navigationAsDateFormat"),Y=this._getNumberOfMonths(e),S=this._get(e,"showCurrentAtPos"),F=this._get(e,"stepMonths"),J=1!==Y[0]||1!==Y[1],N=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),T=this._getMinMaxDate(e,"min"),A=this._getMinMaxDate(e,"max"),K=e.drawMonth-S,j=e.drawYear;if(K<0&&(K+=12,j--),A)for(t=this._daylightSavingAdjust(new Date(A.getFullYear(),A.getMonth()-Y[0]*Y[1]+1,A.getDate())),t=T&&t<T?T:t;this._daylightSavingAdjust(new Date(j,K,1))>t;)--K<0&&(K=11,j--);for(e.drawMonth=K,e.drawYear=j,S=this._get(e,"prevText"),S=x?this.formatDate(S,this._daylightSavingAdjust(new Date(j,K-F,1)),this._getFormatConfig(e)):S,a=this._canAdjustMonth(e,-1,j,K)?V("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:S}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(C?"e":"w")).text(S))[0].outerHTML:I?"":V("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:S}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(C?"e":"w")).text(S))[0].outerHTML,S=this._get(e,"nextText"),S=x?this.formatDate(S,this._daylightSavingAdjust(new Date(j,K+F,1)),this._getFormatConfig(e)):S,i=this._canAdjustMonth(e,1,j,K)?V("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:S}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(C?"w":"e")).text(S))[0].outerHTML:I?"":V("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:S}).append(V("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(C?"w":"e")).text(S))[0].outerHTML,F=this._get(e,"currentText"),I=this._get(e,"gotoCurrent")&&e.currentDay?N:B,F=x?this.formatDate(F,I,this._getFormatConfig(e)):F,S="",e.inline||(S=V("<button>").attr({type:"button",class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(e,"closeText"))[0].outerHTML),x="",w&&(x=V("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(C?S:"").append(this._isInRange(e,I)?V("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(F):"").append(C?"":S)[0].outerHTML),s=parseInt(this._get(e,"firstDay"),10),s=isNaN(s)?0:s,r=this._get(e,"showWeek"),O=this._get(e,"dayNames"),L=this._get(e,"dayNamesMin"),R=this._get(e,"monthNames"),H=this._get(e,"monthNamesShort"),n=this._get(e,"beforeShowDay"),d=this._get(e,"showOtherMonths"),W=this._get(e,"selectOtherMonths"),c=this._getDefaultDate(e),o="",h=0;h<Y[0];h++){for(u="",this.maxRows=4,p=0;p<Y[1];p++){if(g=this._daylightSavingAdjust(new Date(j,K,e.selectedDay)),_=" ui-corner-all",f="",J){if(f+="<div class='ui-datepicker-group",1<Y[1])switch(p){case 0:f+=" ui-datepicker-group-first",_=" ui-corner-"+(C?"right":"left");break;case Y[1]-1:f+=" ui-datepicker-group-last",_=" ui-corner-"+(C?"left":"right");break;default:f+=" ui-datepicker-group-middle",_=""}f+="'>"}for(f+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+_+"'>"+(/all|left/.test(_)&&0===h?C?i:a:"")+(/all|right/.test(_)&&0===h?C?a:i:"")+this._generateMonthYearHeader(e,K,j,T,A,0<h||0<p,R,H)+"</div><table class='ui-datepicker-calendar'><thead><tr>",k=r?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"",l=0;l<7;l++)k+="<th scope='col'"+(5<=(l+s+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+O[E=(l+s)%7]+"'>"+L[E]+"</span></th>";for(f+=k+"</tr></thead><tbody>",m=this._getDaysInMonth(j,K),j===e.selectedYear&&K===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,m)),D=(this._getFirstDayOfMonth(j,K)-s+7)%7,m=Math.ceil((D+m)/7),U=J&&this.maxRows>m?this.maxRows:m,this.maxRows=U,y=this._daylightSavingAdjust(new Date(j,K,1-D)),P=0;P<U;P++){for(f+="<tr>",z=r?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(y)+"</td>":"",l=0;l<7;l++)v=n?n.apply(e.input?e.input[0]:null,[y]):[!0,""],b=(M=y.getMonth()!==K)&&!W||!v[0]||T&&y<T||A&&A<y,z+="<td class='"+(5<=(l+s+6)%7?" ui-datepicker-week-end":"")+(M?" ui-datepicker-other-month":"")+(y.getTime()===g.getTime()&&K===e.selectedMonth&&e._keyEvent||c.getTime()===y.getTime()&&c.getTime()===g.getTime()?" "+this._dayOverClass:"")+(b?" "+this._unselectableClass+" ui-state-disabled":"")+(M&&!d?"":" "+v[1]+(y.getTime()===N.getTime()?" "+this._currentClass:"")+(y.getTime()===B.getTime()?" ui-datepicker-today":""))+"'"+(M&&!d||!v[2]?"":" title='"+v[2].replace(/'/g,"&#39;")+"'")+(b?"":" data-handler='selectDay' data-event='click' data-month='"+y.getMonth()+"' data-year='"+y.getFullYear()+"'")+">"+(M&&!d?"&#xa0;":b?"<span class='ui-state-default'>"+y.getDate()+"</span>":"<a class='ui-state-default"+(y.getTime()===B.getTime()?" ui-state-highlight":"")+(y.getTime()===N.getTime()?" ui-state-active":"")+(M?" ui-priority-secondary":"")+"' href='#' aria-current='"+(y.getTime()===N.getTime()?"true":"false")+"' data-date='"+y.getDate()+"'>"+y.getDate()+"</a>")+"</td>",y.setDate(y.getDate()+1),y=this._daylightSavingAdjust(y);f+=z+"</tr>"}11<++K&&(K=0,j++),u+=f+="</tbody></table>"+(J?"</div>"+(0<Y[0]&&p===Y[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}o+=u}return o+=x,e._keyEvent=!1,o},_generateMonthYearHeader:function(e,t,a,i,s,r,n,d){var c,o,l,h,u,p,g=this._get(e,"changeMonth"),_=this._get(e,"changeYear"),f=this._get(e,"showMonthAfterYear"),k=this._get(e,"selectMonthLabel"),D=this._get(e,"selectYearLabel"),m="<div class='ui-datepicker-title'>",y="";if(r||!g)y+="<span class='ui-datepicker-month'>"+n[t]+"</span>";else{for(c=i&&i.getFullYear()===a,o=s&&s.getFullYear()===a,y+="<select class='ui-datepicker-month' aria-label='"+k+"' data-handler='selectMonth' data-event='change'>",l=0;l<12;l++)(!c||l>=i.getMonth())&&(!o||l<=s.getMonth())&&(y+="<option value='"+l+"'"+(l===t?" selected='selected'":"")+">"+d[l]+"</option>");y+="</select>"}if(f||(m+=y+(!r&&g&&_?"":"&#xa0;")),!e.yearshtml)if(e.yearshtml="",r||!_)m+="<span class='ui-datepicker-year'>"+a+"</span>";else{for(n=this._get(e,"yearRange").split(":"),h=(new Date).getFullYear(),u=(k=function(e){e=e.match(/c[+\-].*/)?a+parseInt(e.substring(1),10):e.match(/[+\-].*/)?h+parseInt(e,10):parseInt(e,10);return isNaN(e)?h:e})(n[0]),p=Math.max(u,k(n[1]||"")),u=i?Math.max(u,i.getFullYear()):u,p=s?Math.min(p,s.getFullYear()):p,e.yearshtml+="<select class='ui-datepicker-year' aria-label='"+D+"' data-handler='selectYear' data-event='change'>";u<=p;u++)e.yearshtml+="<option value='"+u+"'"+(u===a?" selected='selected'":"")+">"+u+"</option>";e.yearshtml+="</select>",m+=e.yearshtml,e.yearshtml=null}return m+=this._get(e,"yearSuffix"),f&&(m+=(!r&&g&&_?"":"&#xa0;")+y),m+="</div>"},_adjustInstDate:function(e,t,a){var i=e.selectedYear+("Y"===a?t:0),s=e.selectedMonth+("M"===a?t:0),t=Math.min(e.selectedDay,this._getDaysInMonth(i,s))+("D"===a?t:0),i=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(i,s,t)));e.selectedDay=i.getDate(),e.drawMonth=e.selectedMonth=i.getMonth(),e.drawYear=e.selectedYear=i.getFullYear(),"M"!==a&&"Y"!==a||this._notifyChange(e)},_restrictMinMax:function(e,t){var a=this._getMinMaxDate(e,"min"),e=this._getMinMaxDate(e,"max"),a=a&&t<a?a:t;return e&&e<a?e:a},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){e=this._get(e,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,a,i){var s=this._getNumberOfMonths(e),a=this._daylightSavingAdjust(new Date(a,i+(t<0?t:s[0]*s[1]),1));return t<0&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(e,a)},_isInRange:function(e,t){var a,i=this._getMinMaxDate(e,"min"),s=this._getMinMaxDate(e,"max"),r=null,n=null,e=this._get(e,"yearRange");return e&&(e=e.split(":"),a=(new Date).getFullYear(),r=parseInt(e[0],10),n=parseInt(e[1],10),e[0].match(/[+\-].*/)&&(r+=a),e[1].match(/[+\-].*/))&&(n+=a),(!i||t.getTime()>=i.getTime())&&(!s||t.getTime()<=s.getTime())&&(!r||t.getFullYear()>=r)&&(!n||t.getFullYear()<=n)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:"string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,a,i){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);i=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(i,a,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),i,this._getFormatConfig(e))}}),V.fn.datepicker=function(e){if(!this.length)return this;V.datepicker.initialized||(V(document).on("mousedown",V.datepicker._checkExternalClick),V.datepicker.initialized=!0),0===V("#"+V.datepicker._mainDivId).length&&V("body").append(V.datepicker.dpDiv);var t=Array.prototype.slice.call(arguments,1);return"string"==typeof e&&("isDisabled"===e||"getDate"===e||"widget"===e)||"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?V.datepicker["_"+e+"Datepicker"].apply(V.datepicker,[this[0]].concat(t)):this.each(function(){"string"==typeof e?V.datepicker["_"+e+"Datepicker"].apply(V.datepicker,[this].concat(t)):V.datepicker._attachDatepicker(this,e)})},V.datepicker=new e,V.datepicker.initialized=!1,V.datepicker.uuid=(new Date).getTime(),V.datepicker.version="1.13.3",V.datepicker});