/* https://va.airtech.dev/wp-includes/js/admin-bar.js */ try{ if(typeof(jQuery)!='undefined'){if(typeof(jQuery.fn.hoverIntent)=='undefined'){!function(a){a.fn.hoverIntent=function(b,c,d){var e={interval:100,sensitivity:6,timeout:0};e="object"==typeof b?a.extend(e,b):a.isFunction(c)?a.extend(e,{over:b,out:c,selector:d}):a.extend(e,{over:b,out:b,selector:c});var f,g,h,i,j=function(a){f=a.pageX,g=a.pageY},k=function(b,c){return c.hoverIntent_t=clearTimeout(c.hoverIntent_t),Math.sqrt((h-f)*(h-f)+(i-g)*(i-g)) .ab-item').bind('keydown.adminbar',function(e){if(e.which!=13) return;var target=$(e.target),wrap=target.closest('.ab-sub-wrapper'),parentHasHover=target.parent().hasClass('hover');e.stopPropagation();e.preventDefault();if(!wrap.length) wrap=$('#wpadminbar .quicklinks');wrap.find('.menupop').removeClass('hover');if(!parentHasHover){target.parent().toggleClass('hover')} target.siblings('.ab-sub-wrapper').find('.ab-item').each(refresh)}).each(refresh);$('#wpadminbar .ab-item').bind('keydown.adminbar',function(e){if(e.which!=27) return;var target=$(e.target);e.stopPropagation();e.preventDefault();target.closest('.hover').removeClass('hover').children('.ab-item').focus();target.siblings('.ab-sub-wrapper').find('.ab-item').each(refresh)});adminbar.click(function(e){if(e.target.id!='wpadminbar'&&e.target.id!='wp-admin-bar-top-secondary'){return} adminbar.find('li.menupop.hover').removeClass('hover');$('html, body').animate({scrollTop:0},'fast');e.preventDefault()});$('.screen-reader-shortcut').keydown(function(e){var id,ua;if(13!=e.which) return;id=$(this).attr('href');ua=navigator.userAgent.toLowerCase();if(ua.indexOf('applewebkit')!=-1&&id&&id.charAt(0)=='#'){setTimeout(function(){$(id).focus()},100)}});$('#adminbar-search').on({focus:function(){$('#adminbarsearch').addClass('adminbar-focused')},blur:function(){$('#adminbarsearch').removeClass('adminbar-focused')}});if('sessionStorage' in window){$('#wp-admin-bar-logout a').click(function(){try{for(var key in sessionStorage){if(key.indexOf('wp-autosave-')!=-1) sessionStorage.removeItem(key)}}catch(e){}})} if(navigator.userAgent&&document.body.className.indexOf('no-font-face')===-1&&/Android (1.0|1.1|1.5|1.6|2.0|2.1)|Nokia|Opera Mini|w(eb)?OSBrowser|webOS|UCWEB|Windows Phone OS 7|XBLWP7|ZuneWP7|MSIE 7/.test(navigator.userAgent)){document.body.className+=' no-font-face'}})}else{(function(d,w){var addEvent=function(obj,type,fn){if(obj.addEventListener) obj.addEventListener(type,fn,!1);else if(obj.attachEvent) obj.attachEvent('on'+type,function(){return fn.call(obj,window.event)})},aB,hc=new RegExp('\\bhover\\b','g'),q=[],rselected=new RegExp('\\bselected\\b','g'),getTOID=function(el){var i=q.length;while(i--){if(q[i]&&el==q[i][1]) return q[i][0]} return!1},addHoverClass=function(t){var i,id,inA,hovering,ul,li,ancestors=[],ancestorLength=0;while(t&&t!=aB&&t!=d){if('LI'==t.nodeName.toUpperCase()){ancestors[ancestors.length]=t;id=getTOID(t);if(id) clearTimeout(id);t.className=t.className?(t.className.replace(hc,'')+' hover'):'hover';hovering=t} t=t.parentNode} if(hovering&&hovering.parentNode){ul=hovering.parentNode;if(ul&&'UL'==ul.nodeName.toUpperCase()){i=ul.childNodes.length;while(i--){li=ul.childNodes[i];if(li!=hovering) li.className=li.className?li.className.replace(rselected,''):''}}} i=q.length;while(i--){inA=!1;ancestorLength=ancestors.length;while(ancestorLength--){if(ancestors[ancestorLength]==q[i][1]) inA=!0} if(!inA) q[i][1].className=q[i][1].className?q[i][1].className.replace(hc,''):''}},removeHoverClass=function(t){while(t&&t!=aB&&t!=d){if('LI'==t.nodeName.toUpperCase()){(function(t){var to=setTimeout(function(){t.className=t.className?t.className.replace(hc,''):''},500);q[q.length]=[to,t]})(t)} t=t.parentNode}},clickShortlink=function(e){var i,l,node,t=e.target||e.srcElement;while(!0){if(!t||t==d||t==aB) return;if(t.id&&t.id=='wp-admin-bar-get-shortlink') break;t=t.parentNode} if(e.preventDefault) e.preventDefault();e.returnValue=!1;if(-1==t.className.indexOf('selected')) t.className+=' selected';for(i=0,l=t.childNodes.length;i800?130:100;speed=Math.min(12,Math.round(distance/speed_step));step=distance>800?Math.round(distance/30):Math.round(distance/20);steps=[];timer=0;while(distance){distance-=step;if(distance<0) distance=0;steps.push(distance);setTimeout(function(){window.scrollTo(0,steps.shift())},timer*speed);timer++}};addEvent(w,'load',function(){aB=d.getElementById('wpadminbar');if(d.body&&aB){d.body.appendChild(aB);if(aB.className) aB.className=aB.className.replace(/nojs/,'');addEvent(aB,'mouseover',function(e){addHoverClass(e.target||e.srcElement)});addEvent(aB,'mouseout',function(e){removeHoverClass(e.target||e.srcElement)});addEvent(aB,'click',clickShortlink);addEvent(aB,'click',function(e){scrollToTop(e.target||e.srcElement)});addEvent(document.getElementById('wp-admin-bar-logout'),'click',function(){if('sessionStorage' in window){try{for(var key in sessionStorage){if(key.indexOf('wp-autosave-')!=-1) sessionStorage.removeItem(key)}}catch(e){}}})} if(w.location.hash) w.scrollBy(0,-32);if(navigator.userAgent&&document.body.className.indexOf('no-font-face')===-1&&/Android (1.0|1.1|1.5|1.6|2.0|2.1)|Nokia|Opera Mini|w(eb)?OSBrowser|webOS|UCWEB|Windows Phone OS 7|XBLWP7|ZuneWP7|MSIE 7/.test(navigator.userAgent)){document.body.className+=' no-font-face'}})})(document,window)}; } catch(e){console.error("An error has occurred: "+e.stack);} /* https://va.airtech.dev/wp-content/plugins/bbpress/templates/default/js/engagements.js */ try{ jQuery(document).ready(function($){function bbp_ajax_call(action,object,type,nonce,update_selector){var $data={action:action,id:object,type:type,nonce:nonce};$.post(bbpEngagementJS.bbp_ajaxurl,$data,function(response){if(response.success){$(update_selector).html(response.content)}else{if(!response.content){response.content=bbpEngagementJS.generic_ajax_error} window.alert(response.content)}})} $('#favorite-toggle').on('click','span a.favorite-toggle',function(e){e.preventDefault();bbp_ajax_call('favorite',$(this).data('bbp-object-id'),$(this).data('bbp-object-type'),$(this).data('bbp-nonce'),'#favorite-toggle')});$('#subscription-toggle').on('click','span a.subscription-toggle',function(e){e.preventDefault();bbp_ajax_call('subscription',$(this).data('bbp-object-id'),$(this).data('bbp-object-type'),$(this).data('bbp-nonce'),'#subscription-toggle')});$('.bbp-alert-outer').on('click','.bbp-alert-close',function(e){e.preventDefault();$(this).closest('.bbp-alert-outer').fadeOut()});$('.bbp-alert-outer').on('click',function(e){if(this===e.target){$(this).closest('.bbp-alert-outer').fadeOut()}});$(document).keyup(function(e){if(e.keyCode===27){$('.bbp-alert-outer .bbp-alert-close').click()}})}); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://va.airtech.dev/wp-content/plugins/bbpress/templates/default/js/reply.js */ try{ addReply={moveForm:function(replyId,parentId,respondId,postId){var t=this,reply=t.getElement(replyId),respond=t.getElement(respondId),cancel=t.getElement('bbp-cancel-reply-to-link'),parent=t.getElement('bbp_reply_to'),post=t.getElement('bbp_topic_id');t.removeEditor();if(!reply||!respond||!cancel||!parent){return} t.respondId=respondId;postId=postId||!1;if(!t.getElement('bbp-temp-form-div')){var div=document.createElement('div');div.id='bbp-temp-form-div';div.style.display='none';respond.parentNode.appendChild(div)} reply.parentNode.appendChild(respond);if(post&&postId){post.value=postId} parent.value=parentId;cancel.style.display='';t.addEditor();cancel.onclick=function(){var r=addReply,temp=r.getElement('bbp-temp-form-div'),respond=r.getElement(r.respondId);r.removeEditor();if(!temp||!respond){return} r.getElement('bbp_reply_to').value='0';temp.parentNode.insertBefore(respond,temp);temp.parentNode.removeChild(temp);this.style.display='none';this.onclick=null;r.addEditor()};t.scrollToForm();return!1},scrollToForm:function(){var t=this,form=t.getElement('new-post'),elemRect=form.getBoundingClientRect(),position=(window.pageYOffset||document.scrollTop)-(document.clientTop||0),destination=(position+elemRect.top),negative=(destination800),speed_step=vast?30:20,speed=Math.min(12,Math.round(distance/speed_step)),step=Math.round(distance/speed_step),steps=[],timer=0;if(!0===negative){while(position>destination){position-=step;if(positiondestination){position=destination} steps.push(position-offset);setTimeout(function(){window.scrollTo(0,steps.shift())},timer*speed);timer++}}},getElement:function(e){return document.getElementById(e)},removeEditor:function(){if(typeof(tinyMCE)==='undefined'){return} var tmce=tinyMCE.get('bbp_reply_content');if(tmce&&!tmce.isHidden()){this.mode='tmce';tmce.remove()}else{this.mode='html'}},addEditor:function(){if(typeof(tinyMCE)==='undefined'){return} if('tmce'===this.mode){switchEditors.go('bbp_reply_content','tmce')}else if('html'===this.mode){switchEditors.go('bbp_reply_content','html')}}}; } catch(e){console.error("An error has occurred: "+e.stack);} /* https://va.airtech.dev/wp-content/plugins/wp-lightbox-2/js/dist/wp-lightbox-2.min.js */ try{ "use strict";function _readOnlyError(a){throw new Error("\""+a+"\" is read-only")}function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function _defineProperties(a,b){for(var c,d=0;dj&&(l=j/d),c*=l,d*=l,l=1,c>k&&(l=k/c),c=a(c*l),d=a(d*l)}var m=this.helper.getPageScroll(),n=m[1]+.5*h,o=n-.5*d,p=m[0],q=document.getElementById("lightboxImage");q.style.width=c,q.style.height=d,this.resizeImageContainer(c,d,o,p)}}},{key:"resizeImageContainer",value:function resizeImageContainer(a,b,d,e){var f=Math.max,g=this,h=document.getElementById("outerImageContainer"),i=document.getElementById("imageDataContainer");if(h&&i){this.config.widthCurrent=h.offsetWidth,this.config.heightCurrent=h.offsetHeight;var j=f(350,a+2*(this.config.borderSize||0)),k=b+2*(this.config.borderSize||0);this.config.xScale=100*(j/this.config.widthCurrent),this.config.yScale=100*(k/this.config.heightCurrent),this.helper.setLightBoxPos(d,e),this.updateDetails(),c("#imageDataContainer").animate({width:j},this.config.resizeSpeed,"linear"),c("#outerImageContainer").animate({width:j},this.config.resizeSpeed,"linear",function(){c("#outerImageContainer").animate({height:k},g.config.resizeSpeed,"linear",function(){g.showImage()})}),this.showNavigationElements(),document.getElementById("prevLink")&&(document.getElementById("prevLink").style.height=b),document.getElementById("nextLink")&&(document.getElementById("nextLink").style.height=b)}}},{key:"showImage",value:function showImage(){this.helper.show(document.getElementById("imageData")),this.helper.show(document.getElementById("caption")),this.helper.hide(document.getElementById("loading")),0this.config.activeImage){var c=new Image;c.src=this.config.imageArray[this.config.activeImage+1][0]}if(0"+this.config.strings.download+"":"",g="";1"+this.config.strings.prevLinkText+""),(this.config.activeImage+1"+this.config.strings.nextLinkText+"")),c=d+c+e+f+g,""!=c&&document.getElementById("numberDisplay")&&(document.getElementById("numberDisplay").innerHTML=c,this.helper.show(document.getElementById("numberDisplay")))}},{key:"showNavigationElements",value:function showNavigationElements(){var a=document.getElementById("prevLink"),b=document.getElementById("prevLinkText"),c=document.getElementById("nextLink"),d=document.getElementById("nextLinkText");1",a=1!=b.querySelectorAll("param").length),b=null}return a}},{key:"getPageScroll",value:function getPageScroll(){var a=0,b=0;self.pageYOffset?(b=self.pageYOffset,a=self.pageXOffset):document.documentElement&&document.documentElement.scrollTop?(b=document.documentElement.scrollTop,a=document.documentElement.scrollLeft):document.body&&(b=document.body.scrollTop,a=document.body.scrollLeft);var c=document.getElementById("wpadminbar");if(c){var d=window.getComputedStyle(c),e=d.getPropertyValue("top");this.config.adminBarHeight&&0===parseInt(e,10)&&(b+=this.config.adminBarHeight)}return[a,b]}},{key:"setLightBoxPos",value:function setLightBoxPos(a,b){return 0
",e="
";this.config.displayHelp&&(e+=""+this.config.strings.help+""),e+="
";var f;this.config.navbarOnTop?(f="
"+e+d+"
",c("body").append(f),c("#imageDataContainer").addClass("ontop")):(f="
"+d+e+"
",c("body").append(f));var g=document.getElementById("overlay"),h=document.getElementById("lightbox"),i=document.getElementById("loadingLink"),j=document.getElementById("bottomNavClose"),k=document.getElementById("outerImageContainer"),l=document.getElementById("imageDataContainer"),m=document.getElementById("lightboxImage"),n=document.getElementById("hoverNav");g&&(g.addEventListener("click",function(){return a.end()}),this.helper.hide(g)),h&&(h.addEventListener("click",function(){return a.end()}),this.helper.hide(h)),i&&i.addEventListener("click",function(){return a.end()}),j&&j.addEventListener("click",function(){return a.end()}),this.events.bindNavigationButtons(this.display.changeImage.bind(this.display)),this.events.enableKeyboardNav(this.display.changeImage.bind(this.display)),k&&(k.style.width=this.config.widthCurrent+"px",k.style.height=this.config.heightCurrent+"px"),l&&(l.style.width=this.config.widthCurrent+"px")}},{key:"resizeListener",value:function resizeListener(){var a=this;this.config.resizeTimeout&&(clearTimeout(this.config.resizeTimeout),this.config.resizeTimeout=!1),this.config.resizeTimeout=setTimeout(function(){a.display.doScale(!1)},50)}},{key:"start",value:function start(b){var d=this;document.querySelectorAll("select, embed, object").forEach(function(a){d.helper.hide(a)});var e=this.helper.getPageSize(),f=this.helper.getPageScroll(),g=0,h=document.getElementById("overlay");c("#overlay").hide().css({width:e[0]+"px",height:e[1]+"px",opacity:this.config.overlayOpacity}).fadeIn(400),this.config.isIE8&&4096==e[1]&&1e3<=f[1]&&(g=f[1]-1e3,0>e[4]-(f[1]+3096)&&(g-=f[1]+3096-e[4]),h.style.top=g+"px");var k=0;if(!this.config.jsonData)if(this.config.imageArray=[],!b.rel||""==b.rel){var l=b.title||b.parentElement.firstChild.title||"";console.log(b),this.config.imageArray.push([b.href,this.config.displayTitle?l:""])}else document.querySelectorAll("a").forEach(function(c){if(c.href&&c.rel===b.rel){var a="",e=c.parentElement.querySelector("img:first-of-type");c.title?a=c.title:e&&(a=e.title);var f="",g="",h=c.parentElement.parentElement.querySelector(".gallery-caption"),i=c.parentElement.querySelector(".wp-caption-text");h?(f=h.textContent,g=h.innerHTML):i&&(f=i.textContent,g=i.innerHTML),a=a.trim(),g=g.trim(),a.toLowerCase()===g.toLowerCase()&&(a=g,f="");var j="";""!=a&&(j=""+a+""),""!=f&&(""!=a&&(j+="
"),j+=""+f+""),d.config.imageArray.push([c.href,d.config.displayTitle?j:""])}});if(1a;i--)this.config.imageArray[a][0]==this.config.imageArray[i][0]&&this.config.imageArray.splice(i,1);for(;this.config.imageArray[k][0]!=b.href;)k++}this.helper.setLightBoxPos(f[1],f[0]),this.display.changeImage(k)}},{key:"end",value:function end(){var a=this;document.getElementById("lightbox").remove(),c("#overlay").fadeOut(function(){document.getElementById("overlay").remove()}),document.querySelectorAll("select, embed, object").forEach(function(b){a.helper.show(b)})}}]),a}();b.exports=g},{"./Display":3,"./Events":4,"./Helper":5}]},{},[1]); } catch(e){console.error("An error has occurred: "+e.stack);} /* https://va.airtech.dev/wp-content/plugins/lazy-load-for-videos/public/js/lazyload-shared.js */ try{ (window.webpackJsonp=window.webpackJsonp||[]).push([[0],{13:function(n,t,e){"use strict";function o(n){"complete"===document.readyState||"interactive"===document.readyState?n():document.addEventListener("DOMContentLoaded",n)}e.d(t,"a",(function(){return o}))},16:function(n,t,e){},3:function(n,t,e){"use strict";e.d(t,"d",(function(){return r})),e.d(t,"c",(function(){return i})),e.d(t,"b",(function(){return a})),e.d(t,"a",(function(){return u}));var o=e(5);function r(n,t){var e=n;e.style.backgroundImage="url(".concat(t,")"),e.style.backgroundColor="#000",e.style.backgroundPosition="center center",e.style.backgroundRepeat="no-repeat"}function i(n){var t=function(n){var t,e,o=String(null==n||null===(t=n.parentNode)||void 0===t||null===(e=t.parentNode)||void 0===e?void 0:e.classList).match(/wp-embed-aspect-\d+-\d+/);if(o){var r=o[0].replace("wp-embed-aspect-","").split("-"),i=Number(r[1])/Number(r[0]);return i.toString().split(".")[1].length>4?Math.round(1e4*i)/1e4:i}return.5625}(n);Object(o.a)("object, embed, iframe, .preview-lazyload, .lazy-load-div",n).forEach((function(n){var e=n,o=e.parentNode.clientWidth,r=Math.round(o*t);e.setAttribute("height","".concat(r,"px")),e.setAttribute("width","".concat(o,"px")),e.style.height="".concat(r,"px"),e.style.width="".concat(o,"px")}))}function c(n){requestAnimationFrame((function(){Object(o.a)(".container-lazyload",n).forEach(i)}))}function a(n){var t,e,o=n.load,r=n.pluginOptions,i=r.rootNode,a=function(){return c(i)};o(r),t=function(){o(r),c(i)},(e=window.jQuery||window.$)&&e(document).ajaxStop((function(){t()})),window.addEventListener("resize",a),window.addEventListener("load",a),"function"==typeof r.callback&&r.callback()}function u(n,t){var e;function o(n){t(n),n.parentNode.classList.remove("js-lazyload--not-loaded"),i(n.parentNode)}if("IntersectionObserver"in window||"IntersectionObserverEntry"in window||"intersectionRatio"in window.IntersectionObserverEntry.prototype){e=new IntersectionObserver((function(n){n.forEach((function(n){n.isIntersecting&&(e.unobserve(n.target),o(n.target))}))}),{root:null,rootMargin:"100px"}),n.forEach((function(n){e.observe(n)}))}else n.forEach(o)}},4:function(n,t,e){"use strict";function o(n){var t=document.createDocumentFragment(),e=document.createElement("div");for(e.innerHTML=n;e.childNodes[0];)t.appendChild(e.childNodes[0]);return t}e.d(t,"a",(function(){return o}))},5:function(n,t,e){"use strict";function o(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return[].slice.call(t.querySelectorAll(n))}e.d(t,"a",(function(){return o}))}}]); } catch(e){console.error("An error has occurred: "+e.stack);} try{ window.llvConfig=window.llvConfig||{};window.llvConfig.youtube={"colour":"red","buttonstyle":"default","controls":true,"loadpolicy":true,"thumbnailquality":"0","preroll":"","postroll":"","overlaytext":"","loadthumbnail":true,"callback":""}; } catch(e){console.error("An error has occurred: "+e.stack);} /* https://va.airtech.dev/wp-content/plugins/lazy-load-for-videos/public/js/lazyload-youtube.js */ try{ !function(t){function e(e){for(var n,a,l=e[0],c=e[1],u=e[2],s=0,f=[];st.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&(i.playlist=c.join(","));var u,d=p(p({},i),n);return d.t&&(d.start=function(t){if(Number(t))return Number(t);var e=0,r=[3600,60,1],n=t.match(/(?:(\d+)(?:h))?(?:(\d+)(?:m))?(?:(\d+)(?:s))?/);if(n)for(var o=1;o')).firstChild;i.addEventListener("load",(function(){120===i.clientWidth&&(r=r.replace("maxresdefault","0")),t.style.backgroundImage||Object(n.d)(t,r),i.parentNode.removeChild(i)})),document.body.appendChild(i)}function O(t){var e=t,r=m(e.getAttribute("href")),i=r.videoId,a=r.queryParams;var l=void 0!==e.getAttribute("data-video-title")?e.getAttribute("data-video-title"):e.innerHTML?e.innerHTML:"";e.innerHTML=l.length>0?'\n "):"";var c=Object(o.a)('');e.insertBefore(c,e.firstChild),y.buttonstyle&&e.classList.add(y.buttonstyle);var u=Object(o.a)('"));y.overlaytext.length>0&&e.parentNode.insertBefore(u,null),Object(n.c)(e.parentNode),e.addEventListener("click",(function(t){var r=t.currentTarget;if(t.preventDefault(),"a"===r.tagName.toLowerCase()){r.classList.remove("preview-youtube");var n=h({pluginOptions:y,videoId:i,urlOptions:a}),l=Object(o.a)('')),c=r.parentNode;c&&c.replaceChild(l,r)}}))}function j(t){var e=t.rootNode,r=t.loadthumbnail,o=Object(i.a)("a.lazy-load-youtube",e);o.forEach(O),r&&Object(n.a)(o,(function(t){return g(t)}))}e.a=function(t){y=p(p({},v),t),Object(n.b)({load:j,pluginOptions:y})}},24:function(t,e,r){"use strict";r.r(e);r(16);var n=r(13),o=r(10);Object(n.a)((function(){Object(o.a)(window.llvConfig.youtube)}))}}); } catch(e){console.error("An error has occurred: "+e.stack);} try{ window.llvConfig=window.llvConfig||{};window.llvConfig.vimeo={"buttonstyle":"default","playercolour":"#00adef","preroll":"","postroll":"","show_title":false,"overlaytext":"","loadthumbnail":true,"callback":""}; } catch(e){console.error("An error has occurred: "+e.stack);} /* https://va.airtech.dev/wp-content/plugins/lazy-load-for-videos/public/js/lazyload-vimeo.js */ try{ !function(t){function e(e){for(var n,i,c=e[0],l=e[1],u=e[2],d=0,s=[];dt.length)&&(e=t.length);for(var r=0,n=new Array(e);r