var wpcf7_redirect;(function($){function Wpcf7_redirect(){this.init=function(){this.wpcf7_redirect_mailsent_handler();};this.wpcf7_redirect_mailsent_handler=function(){document.addEventListener('wpcf7mailsent',function(event){var form=$(event.target);$(document.body).trigger('wpcf7r-mailsent',[event]);if(typeof event.detail.apiResponse!='undefined'&&event.detail.apiResponse){var apiResponse=event.detail.apiResponse;var actionDelay=0;if(typeof apiResponse.api_url_request!='undefined'&&apiResponse.api_url_request){wpcf7_redirect.handle_api_action(apiResponse.api_url_request);}
if(typeof apiResponse.api_json_xml_request!='undefined'&&apiResponse.api_json_xml_request){wpcf7_redirect.handle_api_action(apiResponse.api_json_xml_request);}
if(typeof apiResponse.FireScript!='undefined'&&apiResponse.FireScript){actionDelay=typeof apiResponse.FireScript.delay_redirect!='undefined'?apiResponse.FireScript.delay_redirect:actionDelay;window.setTimeout(function(){wpcf7_redirect.handle_javascript_action(apiResponse.FireScript);},actionDelay);}
if(typeof apiResponse.popup!='undefined'&&apiResponse.popup){wpcf7_redirect.handle_popups(apiResponse.popup);}
if(typeof apiResponse.redirect_to_paypal!='undefined'&&apiResponse.redirect_to_paypal){actionDelay=typeof apiResponse.redirect_to_paypal.delay_redirect!='undefined'?apiResponse.redirect_to_paypal.delay_redirect:actionDelay;window.setTimeout(function(){wpcf7_redirect.handle_redirect_action(apiResponse.redirect_to_paypal);},actionDelay);}
if(typeof apiResponse.redirect!='undefined'&&apiResponse.redirect){actionDelay=typeof apiResponse.redirect.delay_redirect!='undefined'?apiResponse.redirect.delay_redirect:actionDelay;window.setTimeout(function(){wpcf7_redirect.handle_redirect_action(apiResponse.redirect);},actionDelay);}}},false);document.addEventListener('wpcf7invalid',function(event){var form=$(event.target);$(document.body).trigger('wpcf7r-invalid',[event]);if(typeof event.detail.apiResponse!='undefined'&&event.detail.apiResponse){response=event.detail.apiResponse;if(response.invalidFields){wpcf7_redirect.ninja_multistep_mov_to_invalid_tab(event,response);}}});};this.handle_popups=function(popups){$(document.body).trigger('wpcf7r-before-open-popup',[event]);$.each(popups,function(k,popup){var $new_elem=$(popup['popup-template']);$(document.body).append($new_elem);$(document.body).addClass(popup['template-name']);window.setTimeout(function(){$(document.body).addClass('modal-popup-open');$new_elem.addClass('is-open');},1000);$new_elem.find('.close-button').on('click',function(){$new_elem.removeClass('is-open').addClass('fade');$(document.body).removeClass('modal-popup-open');window.setTimeout(function(){$('.wpcf7r-modal').remove();$(document.body).trigger('wpcf7r-popup-removed',[$new_elem]);},4000);});$(document.body).trigger('wpcf7r-popup-appended',[$new_elem]);});}
this.handle_api_action=function(send_to_api_result,request){$.each(send_to_api_result,function(k,v){if(!v.result_javascript){return;}
response=typeof v.api_response!='undefined'?v.api_response:'';request=typeof v.request!='undefined'?v.request:'';eval(v.result_javascript);});};this.ninja_multistep_mov_to_invalid_tab=function(event,response){if($('.fieldset-cf7mls-wrapper').length){var form=$(event.target);var first_invalid_field=response.invalidFields[0];var parent_step=$(first_invalid_field.into).parents('fieldset');form.find('.fieldset-cf7mls').removeClass('cf7mls_current_fs');parent_step.addClass('cf7mls_current_fs').removeClass('cf7mls_back_fs');if(form.find('.cf7mls_progress_bar').length){form.find('.cf7mls_progress_bar li').eq(form.find("fieldset.fieldset-cf7mls").index(previous_fs)).addClass("current");form.find('.cf7mls_progress_bar li').eq(form.find("fieldset.fieldset-cf7mls").index(current_fs)).removeClass("active current");}}}
this.handle_redirect_action=function(redirect){$(document.body).trigger('wpcf7r-handle_redirect_action',[redirect]);$.each(redirect,function(k,v){var delay=typeof v.delay!='undefined'&&v.delay?v.delay:'';delay=delay*1000;window.setTimeout(function(v){var redirect_url=typeof v.redirect_url!='undefined'&&v.redirect_url?v.redirect_url:'';var type=typeof v.type!='undefined'&&v.type?v.type:'';if(typeof v.form!='undefined'&&v.form){$('body').append(v.form);$('#cf7r-result-form').submit();}else{if(redirect_url&&type=='redirect'){window.location=redirect_url;}else if(redirect_url&&type=='new_tab'){window.open(redirect_url);}}},delay,v);});};this.handle_javascript_action=function(scripts){$(document.body).trigger('wpcf7r-handle_javascript_action',[scripts]);$.each(scripts,function(k,script){eval(script);});};this.htmlspecialchars_decode=function(string){var map={'&amp;':'&','&#038;':"&",'&lt;':'<','&gt;':'>','&quot;':'"','&#039;':"'",'&#8217;':"’",'&#8216;':"‘",'&#8211;':"–",'&#8212;':"—",'&#8230;':"…",'&#8221;':'”'};return string.replace(/\&[\w\d\#]{2,5}\;/g,function(m){return map[m];});};this.init();}
wpcf7_redirect=new Wpcf7_redirect();})(jQuery);
;!function(t){"use strict";var s={slide:0,delay:5e3,loop:!0,preload:!1,preloadImage:!1,preloadVideo:!1,timer:!0,overlay:!1,autoplay:!0,shuffle:!1,cover:!0,color:null,align:"center",valign:"center",firstTransition:null,firstTransitionDuration:null,transition:"fade",transitionDuration:1e3,transitionRegister:[],animation:null,animationDuration:"auto",animationRegister:[],slidesToKeep:1,init:function(){},play:function(){},pause:function(){},walk:function(){},slides:[]},i={},e=function(i,e){this.elmt=i,this.settings=t.extend({},s,t.vegas.defaults,e),this.slide=this.settings.slide,this.total=this.settings.slides.length,this.noshow=this.total<2,this.paused=!this.settings.autoplay||this.noshow,this.ended=!1,this.$elmt=t(i),this.$timer=null,this.$overlay=null,this.$slide=null,this.timeout=null,this.first=!0,this.transitions=["fade","fade2","blur","blur2","flash","flash2","negative","negative2","burn","burn2","slideLeft","slideLeft2","slideRight","slideRight2","slideUp","slideUp2","slideDown","slideDown2","zoomIn","zoomIn2","zoomOut","zoomOut2","swirlLeft","swirlLeft2","swirlRight","swirlRight2"],this.animations=["kenburns","kenburnsLeft","kenburnsRight","kenburnsUp","kenburnsUpLeft","kenburnsUpRight","kenburnsDown","kenburnsDownLeft","kenburnsDownRight"],this.settings.transitionRegister instanceof Array==!1&&(this.settings.transitionRegister=[this.settings.transitionRegister]),this.settings.animationRegister instanceof Array==!1&&(this.settings.animationRegister=[this.settings.animationRegister]),this.transitions=this.transitions.concat(this.settings.transitionRegister),this.animations=this.animations.concat(this.settings.animationRegister),this.support={objectFit:"objectFit"in document.body.style,transition:"transition"in document.body.style||"WebkitTransition"in document.body.style,video:t.vegas.isVideoCompatible()},this.settings.shuffle===!0&&this.shuffle(),this._init()};e.prototype={_init:function(){var s,i,e,n="BODY"===this.elmt.tagName,o=this.settings.timer,a=this.settings.overlay,r=this;this._preload(),n||(this.$elmt.css("height",this.$elmt.css("height")),s=t('<div class="vegas-wrapper">').css("overflow",this.$elmt.css("overflow")).css("padding",this.$elmt.css("padding")),this.$elmt.css("padding")||s.css("padding-top",this.$elmt.css("padding-top")).css("padding-bottom",this.$elmt.css("padding-bottom")).css("padding-left",this.$elmt.css("padding-left")).css("padding-right",this.$elmt.css("padding-right")),this.$elmt.clone(!0).children().appendTo(s),this.elmt.innerHTML=""),o&&this.support.transition&&(e=t('<div class="vegas-timer"><div class="vegas-timer-progress">'),this.$timer=e,this.$elmt.prepend(e)),a&&(i=t('<div class="vegas-overlay">'),"string"==typeof a&&i.css("background-image","url("+a+")"),this.$overlay=i,this.$elmt.prepend(i)),this.$elmt.addClass("vegas-container"),n||this.$elmt.append(s),setTimeout(function(){r.trigger("init"),r._goto(r.slide),r.settings.autoplay&&r.trigger("play")},1)},_preload:function(){var t,s;for(s=0;s<this.settings.slides.length;s++)(this.settings.preload||this.settings.preloadImages)&&this.settings.slides[s].src&&(t=new Image,t.src=this.settings.slides[s].src),(this.settings.preload||this.settings.preloadVideos)&&this.support.video&&this.settings.slides[s].video&&(this.settings.slides[s].video instanceof Array?this._video(this.settings.slides[s].video):this._video(this.settings.slides[s].video.src))},_random:function(t){return t[Math.floor(Math.random()*t.length)]},_slideShow:function(){var t=this;this.total>1&&!this.ended&&!this.paused&&!this.noshow&&(this.timeout=setTimeout(function(){t.next()},this._options("delay")))},_timer:function(t){var s=this;clearTimeout(this.timeout),this.$timer&&(this.$timer.removeClass("vegas-timer-running").find("div").css("transition-duration","0ms"),this.ended||this.paused||this.noshow||t&&setTimeout(function(){s.$timer.addClass("vegas-timer-running").find("div").css("transition-duration",s._options("delay")-100+"ms")},100))},_video:function(t){var s,e,n=t.toString();return i[n]?i[n]:(t instanceof Array==!1&&(t=[t]),s=document.createElement("video"),s.preload=!0,t.forEach(function(t){e=document.createElement("source"),e.src=t,s.appendChild(e)}),i[n]=s,s)},_fadeOutSound:function(t,s){var i=this,e=s/10,n=t.volume-.09;n>0?(t.volume=n,setTimeout(function(){i._fadeOutSound(t,s)},e)):t.pause()},_fadeInSound:function(t,s){var i=this,e=s/10,n=t.volume+.09;n<1&&(t.volume=n,setTimeout(function(){i._fadeInSound(t,s)},e))},_options:function(t,s){return void 0===s&&(s=this.slide),void 0!==this.settings.slides[s][t]?this.settings.slides[s][t]:this.settings[t]},_goto:function(s){function i(){f._timer(!0),setTimeout(function(){y&&(f.support.transition?(h.css("transition","all "+_+"ms").addClass("vegas-transition-"+y+"-out"),h.each(function(){var t=h.find("video").get(0);t&&(t.volume=1,f._fadeOutSound(t,_))}),e.css("transition","all "+_+"ms").addClass("vegas-transition-"+y+"-in")):e.fadeIn(_));for(var t=0;t<h.length-f.settings.slidesToKeep;t++)h.eq(t).remove();f.trigger("walk"),f._slideShow()},100)}"undefined"==typeof this.settings.slides[s]&&(s=0),this.slide=s;var e,n,o,a,r,h=this.$elmt.children(".vegas-slide"),d=this.settings.slides[s].src,l=this.settings.slides[s].video,g=this._options("delay"),u=this._options("align"),c=this._options("valign"),p=this._options("cover"),m=this._options("color")||this.$elmt.css("background-color"),f=this,v=h.length,y=this._options("transition"),_=this._options("transitionDuration"),w=this._options("animation"),b=this._options("animationDuration");this.settings.firstTransition&&this.first&&(y=this.settings.firstTransition||y),this.settings.firstTransitionDuration&&this.first&&(_=this.settings.firstTransitionDuration||_),this.first&&(this.first=!1),"repeat"!==p&&(p===!0?p="cover":p===!1&&(p="contain")),("random"===y||y instanceof Array)&&(y=y instanceof Array?this._random(y):this._random(this.transitions)),("random"===w||w instanceof Array)&&(w=w instanceof Array?this._random(w):this._random(this.animations)),("auto"===_||_>g)&&(_=g),"auto"===b&&(b=g),e=t('<div class="vegas-slide"></div>'),this.support.transition&&y&&e.addClass("vegas-transition-"+y),this.support.video&&l?(a=l instanceof Array?this._video(l):this._video(l.src),a.loop=void 0===l.loop||l.loop,a.muted=void 0===l.mute||l.mute,a.muted===!1?(a.volume=0,this._fadeInSound(a,_)):a.pause(),o=t(a).addClass("vegas-video").css("background-color",m),this.support.objectFit?o.css("object-position",u+" "+c).css("object-fit",p).css("width","100%").css("height","100%"):"contain"===p&&o.css("width","100%").css("height","100%"),e.append(o)):(r=new Image,n=t('<div class="vegas-slide-inner"></div>').css("background-image",'url("'+d+'")').css("background-color",m).css("background-position",u+" "+c),"repeat"===p?n.css("background-repeat","repeat"):n.css("background-size",p),this.support.transition&&w&&n.addClass("vegas-animation-"+w).css("animation-duration",b+"ms"),e.append(n)),this.support.transition||e.css("display","none"),v?h.eq(v-1).after(e):this.$elmt.prepend(e),h.css("transition","all 0ms").each(function(){this.className="vegas-slide","VIDEO"===this.tagName&&(this.className+=" vegas-video"),y&&(this.className+=" vegas-transition-"+y,this.className+=" vegas-transition-"+y+"-in")}),f._timer(!1),a?(4===a.readyState&&(a.currentTime=0),a.play(),i()):(r.src=d,r.complete?i():r.onload=i)},_end:function(){this.ended=!0,this._timer(!1),this.trigger("end")},shuffle:function(){for(var t,s,i=this.total-1;i>0;i--)s=Math.floor(Math.random()*(i+1)),t=this.settings.slides[i],this.settings.slides[i]=this.settings.slides[s],this.settings.slides[s]=t},play:function(){this.paused&&(this.paused=!1,this.next(),this.trigger("play"))},pause:function(){this._timer(!1),this.paused=!0,this.trigger("pause")},toggle:function(){this.paused?this.play():this.pause()},playing:function(){return!this.paused&&!this.noshow},current:function(t){return t?{slide:this.slide,data:this.settings.slides[this.slide]}:this.slide},jump:function(t){t<0||t>this.total-1||t===this.slide||(this.slide=t,this._goto(this.slide))},next:function(){if(this.slide++,this.slide>=this.total){if(!this.settings.loop)return this._end();this.slide=0}this._goto(this.slide)},previous:function(){if(this.slide--,this.slide<0){if(!this.settings.loop)return void this.slide++;this.slide=this.total-1}this._goto(this.slide)},trigger:function(t){var s=[];s="init"===t?[this.settings]:[this.slide,this.settings.slides[this.slide]],this.$elmt.trigger("vegas"+t,s),"function"==typeof this.settings[t]&&this.settings[t].apply(this.$elmt,s)},options:function(i,e){var n=this.settings.slides.slice();if("object"==typeof i)this.settings=t.extend({},s,t.vegas.defaults,i);else{if("string"!=typeof i)return this.settings;if(void 0===e)return this.settings[i];this.settings[i]=e}this.settings.slides!==n&&(this.total=this.settings.slides.length,this.noshow=this.total<2,this._preload())},destroy:function(){clearTimeout(this.timeout),this.$elmt.removeClass("vegas-container"),this.$elmt.find("> .vegas-slide").remove(),this.$elmt.find("> .vegas-wrapper").clone(!0).children().appendTo(this.$elmt),this.$elmt.find("> .vegas-wrapper").remove(),this.settings.timer&&this.$timer.remove(),this.settings.overlay&&this.$overlay.remove(),this.elmt._vegas=null}},t.fn.vegas=function(t){var s,i=arguments,n=!1;if(void 0===t||"object"==typeof t)return this.each(function(){this._vegas||(this._vegas=new e(this,t))});if("string"==typeof t){if(this.each(function(){var e=this._vegas;if(!e)throw new Error("No Vegas applied to this element.");"function"==typeof e[t]&&"_"!==t[0]?s=e[t].apply(e,[].slice.call(i,1)):n=!0}),n)throw new Error('No method "'+t+'" in Vegas.');return void 0!==s?s:this}},t.vegas={},t.vegas.defaults=s,t.vegas.isVideoCompatible=function(){return!/(Android|webOS|Phone|iPad|iPod|BlackBerry|Windows Phone)/i.test(navigator.userAgent)}}(window.jQuery||window.Zepto);
//# sourceMappingURL=vegas.min.js.map

;(function($){$(document).on('elementor/render/justified-gallery',function(e,data){var gallery=$(data);var rowHeight=gallery.data('row-height');var margins=gallery.data('margins');var border=gallery.data('border');var lastRow=gallery.data('last-row');var randomize=gallery.data('randomize');var selector=gallery.data('selector');gallery.removeClass('hide-gallery');gallery.justifiedGallery({rowHeight:rowHeight,margins:margins,border:0,lastRow:lastRow,randomize:randomize,selector:selector,});});$(document).on('elementor/render/ep_styled_maps',function(e,data){if(typeof google==='undefined'){var map=$(data);var text=map.data('error');$(map.get(0)).after(text);}
initMap();function initMap(){var map=$(data);var lat=map.data('latitude');var long=map.data('longitude');var style=map.data('style');var scroll=map.data('scroll');var location={lat:lat,lng:long};var icon=map.data('icon');var info=map.data('info');var map=new google.maps.Map(document.getElementById(map.attr('id')),{zoom:map.data('zoom'),center:location,scrollwheel:scroll,draggable:scroll,styles:style});var infowindow=new google.maps.InfoWindow({content:info});var marker=new google.maps.Marker({position:location,icon:icon,map:map});if(info){marker.addListener('click',function(){infowindow.open(map,marker);});}}});$(document).on('elementor/render/ep_audioigniter',function(event,element){if(__CI_AUDIOIGNITER_MANUAL_INIT__){var node=jQuery(element).find('.audioigniter-root').get(0);__CI_AUDIOIGNITER_MANUAL_INIT__(node);}});$(document).on('elementor/render/ep_video_slider',function(e,data){var slider=$(data).find('.ep-video-slider');var nav=$(data).find('.ep-slider-nav');var sliderItem=$(data).find('.ep-slider-item');var position=$(data).data('position');var slides=$(data).data('slides');var prevArrow=true===position?'up':'left';var nextArrow=true===position?'down':'right';slider.slick({slidesToShow:1,slidesToScroll:1,arrows:false,fade:true,asNavFor:nav,infinite:false,});slider.fitVids();nav.on('init',function(event,slick,currentSlide,nextSlide){var navPrev=nav.find('.slick-prev');if(slick.currentSlide===0){navPrev.css({opacity:0.2,transition:"opacity 0.3s","pointer-events":"none"});}});nav.slick({slidesToShow:4,slidesToScroll:1,asNavFor:slider,dots:false,focusOnSelect:true,infinite:false,edgeFriction:0,vertical:position,prevArrow:'<a class="slick-prev"><i class="fa fa-angle-'+prevArrow+'"></i></a>',nextArrow:'<a class="slick-next"><i class="fa fa-angle-'+nextArrow+'"></i></a>',responsive:[{breakpoint:1025,settings:{vertical:false,slidesToShow:3,prevArrow:'<a class="slick-prev"><i class="fa fa-angle-left"></i></a>',nextArrow:'<a class="slick-next"><i class="fa fa-angle-right"></i></a>',}},{breakpoint:769,settings:{vertical:false,slidesToShow:2,prevArrow:'<a class="slick-prev"><i class="fa fa-angle-left"></i></a>',nextArrow:'<a class="slick-next"><i class="fa fa-angle-right"></i></a>',}},{breakpoint:481,settings:{vertical:false,slidesToShow:2,prevArrow:'<a class="slick-prev"><i class="fa fa-angle-left"></i></a>',nextArrow:'<a class="slick-next"><i class="fa fa-angle-right"></i></a>',}}]});slider.on('beforeChange',function(event,slick,currentSlide,nextSlide){var current=slider.find('.slick-current');current.html(current.html());});nav.on('afterChange',function(event,slick,currentSlide,nextSlide){var navPrev=nav.find('.slick-prev');var navNext=nav.find('.slick-next');if(0===slick.currentSlide){navPrev.css({opacity:0.2,transition:"opacity 0.3s","pointer-events":"none"});}else{navPrev.css({opacity:1,"pointer-events":"auto"});}
if(slick.currentSlide===slick.slideCount-1){navNext.css({opacity:0.2,transition:"opacity 0.3s","pointer-events":"none"});}else{navNext.css({opacity:1,"pointer-events":"auto"});}});if(window.matchMedia("(min-width: 1025px)").matches&&!nav.hasClass("below")){sliderItem.matchHeight({target:slider,});}
var resizeTimer;$(window).on('resize',function(e){clearTimeout(resizeTimer);resizeTimer=setTimeout(function(){if(window.matchMedia("(min-width: 1025px)").matches&&!nav.hasClass("below")){sliderItem.matchHeight({target:slider,});}},250);});});$(document).on('elementor/render/ep_preloader',function(e,data){$(window).on('load',function(){$('#status').fadeOut();$('#preloader').delay(350).fadeOut('slow');$('body').delay(350).css({'overflow':'visible'});})});$(document).on('elementor/render/ep_flipclock',function(e,data){var $clock=$(data).find('.clock');var message=$(data).find('.message');var message_text=$(data).data('end-text');var clockface=$(data).data('clockface');var seconds=$(data).data('seconds');var show_seconds='yes'===seconds;var countdown=$(data).data('time');var clock=$clock.FlipClock(countdown,{clockFace:clockface,autoStart:false,showSeconds:show_seconds,callbacks:{stop:function(){message.html(message_text)},}});clock.setCountdown(true);clock.start();if($clock.hasClass('no-label')){return;}
var $dividers=$clock.find('.flip-clock-divider');$dividers.each(function(){var $this=$(this);var $label=$this.find('.flip-clock-label');var $flips=$this.nextUntil('.flip-clock-divider');var totalWidth=0;var totalPadding=$flips.length*10;$flips.each(function(){totalWidth+=$(this).outerWidth();});$label.css('left',(totalWidth/2)+totalPadding+10+'px');});});$(document).on('elementor/render/ep_image_comparison',function(e,data){var container=$(data);var offset=container.data('offset');var orientation=container.data('orientation');var before=container.data('before-label');var after=container.data('after-label');var overlay=container.data('overlay');var hover=container.data('hover');var handle=container.data('handle');var click=container.data('click');$(data).imagesLoaded(function(){$(data).twentytwenty({default_offset_pct:offset,orientation:orientation,before_label:before,after_label:after,no_overlay:overlay,move_slider_on_hover:hover,move_with_handle_only:handle,click_to_move:click,});});});$(document).on('elementor/render/ep_image_hover_effects',function(e,data){var container=$(data);var image1=container.data('image1');var image2=container.data('image2');var displacement=container.data('displacement');new hoverEffect({parent:document.querySelector(data+' .img-container'),intensity:0.3,image1:image1,image2:image2,displacementImage:displacement});});})(jQuery);;
/*!
* FitVids 1.1
*
* Copyright 2013, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
* Released under the WTFPL license - http://sam.zoy.org/wtfpl/
*
*/
;(function($){'use strict';$.fn.fitVids=function(options){var settings={customSelector:null,ignore:null};if(!document.getElementById('fit-vids-style')){var head=document.head||document.getElementsByTagName('head')[0];var css='.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}';var div=document.createElement("div");div.innerHTML='<p>x</p><style id="fit-vids-style">'+css+'</style>';head.appendChild(div.childNodes[1]);}
if(options){$.extend(settings,options);}
return this.each(function(){var selectors=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]','object','embed'];if(settings.customSelector){selectors.push(settings.customSelector);}
var ignoreList='.fitvidsignore';if(settings.ignore){ignoreList=ignoreList+', '+settings.ignore;}
var $allVideos=$(this).find(selectors.join(','));$allVideos=$allVideos.not('object object');$allVideos=$allVideos.not(ignoreList);$allVideos.each(function(){var $this=$(this);if($this.parents(ignoreList).length>0){return;}
if(this.tagName.toLowerCase()==='embed'&&$this.parent('object').length||$this.parent('.fluid-width-video-wrapper').length){return;}
if((!$this.css('height')&&!$this.css('width'))&&(isNaN($this.attr('height'))||isNaN($this.attr('width'))))
{$this.attr('height',9);$this.attr('width',16);}
var height=(this.tagName.toLowerCase()==='object'||($this.attr('height')&&!isNaN(parseInt($this.attr('height'),10))))?parseInt($this.attr('height'),10):$this.height(),width=!isNaN(parseInt($this.attr('width'),10))?parseInt($this.attr('width'),10):$this.width(),aspectRatio=height/width;if(!$this.attr('name')){var videoName='fitvid'+$.fn.fitVids._count;$this.attr('name',videoName);$.fn.fitVids._count++;}
$this.wrap('<div class="fluid-width-video-wrapper"></div>').parent('.fluid-width-video-wrapper').css('padding-top',(aspectRatio*100)+'%');$this.removeAttr('height').removeAttr('width');});});};$.fn.fitVids._count=0;})(window.jQuery||window.Zepto);;;(function(factory){'use strict';if(typeof define==='function'&&define.amd){define(['jquery'],factory);}else if(typeof module!=='undefined'&&module.exports){module.exports=factory(require('jquery'));}else{factory(jQuery);}})(function($){var _previousResizeWidth=-1,_updateTimeout=-1;var _parse=function(value){return parseFloat(value)||0;};var _rows=function(elements){var tolerance=1,$elements=$(elements),lastTop=null,rows=[];$elements.each(function(){var $that=$(this),top=$that.offset().top-_parse($that.css('margin-top')),lastRow=rows.length>0?rows[rows.length-1]:null;if(lastRow===null){rows.push($that);}else{if(Math.floor(Math.abs(lastTop-top))<=tolerance){rows[rows.length-1]=lastRow.add($that);}else{rows.push($that);}}
lastTop=top;});return rows;};var _parseOptions=function(options){var opts={byRow:true,property:'height',target:null,remove:false};if(typeof options==='object'){return $.extend(opts,options);}
if(typeof options==='boolean'){opts.byRow=options;}else if(options==='remove'){opts.remove=true;}
return opts;};var matchHeight=$.fn.matchHeight=function(options){var opts=_parseOptions(options);if(opts.remove){var that=this;this.css(opts.property,'');$.each(matchHeight._groups,function(key,group){group.elements=group.elements.not(that);});return this;}
if(this.length<=1&&!opts.target){return this;}
matchHeight._groups.push({elements:this,options:opts});matchHeight._apply(this,opts);return this;};matchHeight.version='master';matchHeight._groups=[];matchHeight._throttle=80;matchHeight._maintainScroll=false;matchHeight._beforeUpdate=null;matchHeight._afterUpdate=null;matchHeight._rows=_rows;matchHeight._parse=_parse;matchHeight._parseOptions=_parseOptions;matchHeight._apply=function(elements,options){var opts=_parseOptions(options),$elements=$(elements),rows=[$elements];var scrollTop=$(window).scrollTop(),htmlHeight=$('html').outerHeight(true);var $hiddenParents=$elements.parents().filter(':hidden');$hiddenParents.each(function(){var $that=$(this);$that.data('style-cache',$that.attr('style'));});$hiddenParents.css('display','block');if(opts.byRow&&!opts.target){$elements.each(function(){var $that=$(this),display=$that.css('display');if(display!=='inline-block'&&display!=='flex'&&display!=='inline-flex'){display='block';}
$that.data('style-cache',$that.attr('style'));$that.css({'display':display,'padding-top':'0','padding-bottom':'0','margin-top':'0','margin-bottom':'0','border-top-width':'0','border-bottom-width':'0','height':'100px','overflow':'hidden'});});rows=_rows($elements);$elements.each(function(){var $that=$(this);$that.attr('style',$that.data('style-cache')||'');});}
$.each(rows,function(key,row){var $row=$(row),targetHeight=0;if(!opts.target){if(opts.byRow&&$row.length<=1){$row.css(opts.property,'');return;}
$row.each(function(){var $that=$(this),style=$that.attr('style'),display=$that.css('display');if(display!=='inline-block'&&display!=='flex'&&display!=='inline-flex'){display='block';}
var css={'display':display};css[opts.property]='';$that.css(css);if($that.outerHeight(false)>targetHeight){targetHeight=$that.outerHeight(false);}
if(style){$that.attr('style',style);}else{$that.css('display','');}});}else{targetHeight=opts.target.outerHeight(false);}
$row.each(function(){var $that=$(this),verticalPadding=0;if(opts.target&&$that.is(opts.target)){return;}
if($that.css('box-sizing')!=='border-box'){verticalPadding+=_parse($that.css('border-top-width'))+_parse($that.css('border-bottom-width'));verticalPadding+=_parse($that.css('padding-top'))+_parse($that.css('padding-bottom'));}
$that.css(opts.property,(targetHeight-verticalPadding)+'px');});});$hiddenParents.each(function(){var $that=$(this);$that.attr('style',$that.data('style-cache')||null);});if(matchHeight._maintainScroll){$(window).scrollTop((scrollTop/htmlHeight)*$('html').outerHeight(true));}
return this;};matchHeight._applyDataApi=function(){var groups={};$('[data-match-height], [data-mh]').each(function(){var $this=$(this),groupId=$this.attr('data-mh')||$this.attr('data-match-height');if(groupId in groups){groups[groupId]=groups[groupId].add($this);}else{groups[groupId]=$this;}});$.each(groups,function(){this.matchHeight(true);});};var _update=function(event){if(matchHeight._beforeUpdate){matchHeight._beforeUpdate(event,matchHeight._groups);}
$.each(matchHeight._groups,function(){matchHeight._apply(this.elements,this.options);});if(matchHeight._afterUpdate){matchHeight._afterUpdate(event,matchHeight._groups);}};matchHeight._update=function(throttle,event){if(event&&event.type==='resize'){var windowWidth=$(window).width();if(windowWidth===_previousResizeWidth){return;}
_previousResizeWidth=windowWidth;}
if(!throttle){_update(event);}else if(_updateTimeout===-1){_updateTimeout=setTimeout(function(){_update(event);_updateTimeout=-1;},matchHeight._throttle);}};$(matchHeight._applyDataApi);var on=$.fn.on?'on':'bind';$(window)[on]('load',function(event){matchHeight._update(false,event);});$(window)[on]('resize orientationchange',function(event){matchHeight._update(true,event);});});
;var VanillaTilt=function(){"use strict";class t{constructor(e,i={}){if(!(e instanceof Node))throw"Can't initialize VanillaTilt because "+e+" is not a Node.";this.width=null,this.height=null,this.clientWidth=null,this.clientHeight=null,this.left=null,this.top=null,this.gammazero=null,this.betazero=null,this.lastgammazero=null,this.lastbetazero=null,this.transitionTimeout=null,this.updateCall=null,this.event=null,this.updateBind=this.update.bind(this),this.resetBind=this.reset.bind(this),this.element=e,this.settings=this.extendSettings(i),this.reverse=this.settings.reverse?-1:1,this.glare=t.isSettingTrue(this.settings.glare),this.glarePrerender=t.isSettingTrue(this.settings["glare-prerender"]),this.fullPageListening=t.isSettingTrue(this.settings["full-page-listening"]),this.gyroscope=t.isSettingTrue(this.settings.gyroscope),this.gyroscopeSamples=this.settings.gyroscopeSamples,this.elementListener=this.getElementListener(),this.glare&&this.prepareGlare(),this.fullPageListening&&this.updateClientSize(),this.addEventListeners(),this.updateInitialPosition()}static isSettingTrue(t){return""===t||!0===t||1===t}getElementListener(){if(this.fullPageListening)return window.document;if("string"==typeof this.settings["mouse-event-element"]){const t=document.querySelector(this.settings["mouse-event-element"]);if(t)return t}return this.settings["mouse-event-element"]instanceof Node?this.settings["mouse-event-element"]:this.element}addEventListeners(){this.onMouseEnterBind=this.onMouseEnter.bind(this),this.onMouseMoveBind=this.onMouseMove.bind(this),this.onMouseLeaveBind=this.onMouseLeave.bind(this),this.onWindowResizeBind=this.onWindowResize.bind(this),this.onDeviceOrientationBind=this.onDeviceOrientation.bind(this),this.elementListener.addEventListener("mouseenter",this.onMouseEnterBind),this.elementListener.addEventListener("mouseleave",this.onMouseLeaveBind),this.elementListener.addEventListener("mousemove",this.onMouseMoveBind),(this.glare||this.fullPageListening)&&window.addEventListener("resize",this.onWindowResizeBind),this.gyroscope&&window.addEventListener("deviceorientation",this.onDeviceOrientationBind)}removeEventListeners(){this.elementListener.removeEventListener("mouseenter",this.onMouseEnterBind),this.elementListener.removeEventListener("mouseleave",this.onMouseLeaveBind),this.elementListener.removeEventListener("mousemove",this.onMouseMoveBind),this.gyroscope&&window.removeEventListener("deviceorientation",this.onDeviceOrientationBind),(this.glare||this.fullPageListening)&&window.removeEventListener("resize",this.onWindowResizeBind)}destroy(){clearTimeout(this.transitionTimeout),null!==this.updateCall&&cancelAnimationFrame(this.updateCall),this.reset(),this.removeEventListeners(),this.element.vanillaTilt=null,delete this.element.vanillaTilt,this.element=null}onDeviceOrientation(t){if(null===t.gamma||null===t.beta)return;this.updateElementPosition(),this.gyroscopeSamples>0&&(this.lastgammazero=this.gammazero,this.lastbetazero=this.betazero,null===this.gammazero?(this.gammazero=t.gamma,this.betazero=t.beta):(this.gammazero=(t.gamma+this.lastgammazero)/2,this.betazero=(t.beta+this.lastbetazero)/2),this.gyroscopeSamples-=1);const e=this.settings.gyroscopeMaxAngleX-this.settings.gyroscopeMinAngleX,i=this.settings.gyroscopeMaxAngleY-this.settings.gyroscopeMinAngleY,s=e/this.width,n=i/this.height,l=(t.gamma-(this.settings.gyroscopeMinAngleX+this.gammazero))/s,a=(t.beta-(this.settings.gyroscopeMinAngleY+this.betazero))/n;null!==this.updateCall&&cancelAnimationFrame(this.updateCall),this.event={clientX:l+this.left,clientY:a+this.top},this.updateCall=requestAnimationFrame(this.updateBind)}onMouseEnter(){this.updateElementPosition(),this.element.style.willChange="transform",this.setTransition()}onMouseMove(t){null!==this.updateCall&&cancelAnimationFrame(this.updateCall),this.event=t,this.updateCall=requestAnimationFrame(this.updateBind)}onMouseLeave(){this.setTransition(),this.settings.reset&&requestAnimationFrame(this.resetBind)}reset(){this.event={clientX:this.left+this.width/2,clientY:this.top+this.height/2},this.element&&this.element.style&&(this.element.style.transform=`perspective(${this.settings.perspective}px) `+"rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)"),this.resetGlare()}resetGlare(){this.glare&&(this.glareElement.style.transform="rotate(180deg) translate(-50%, -50%)",this.glareElement.style.opacity="0")}updateInitialPosition(){if(0===this.settings.startX&&0===this.settings.startY)return;this.onMouseEnter(),this.fullPageListening?this.event={clientX:(this.settings.startX+this.settings.max)/(2*this.settings.max)*this.clientWidth,clientY:(this.settings.startY+this.settings.max)/(2*this.settings.max)*this.clientHeight}:this.event={clientX:this.left+(this.settings.startX+this.settings.max)/(2*this.settings.max)*this.width,clientY:this.top+(this.settings.startY+this.settings.max)/(2*this.settings.max)*this.height};let t=this.settings.scale;this.settings.scale=1,this.update(),this.settings.scale=t,this.resetGlare()}getValues(){let t,e;return this.fullPageListening?(t=this.event.clientX/this.clientWidth,e=this.event.clientY/this.clientHeight):(t=(this.event.clientX-this.left)/this.width,e=(this.event.clientY-this.top)/this.height),t=Math.min(Math.max(t,0),1),e=Math.min(Math.max(e,0),1),{tiltX:(this.reverse*(this.settings.max-t*this.settings.max*2)).toFixed(2),tiltY:(this.reverse*(e*this.settings.max*2-this.settings.max)).toFixed(2),percentageX:100*t,percentageY:100*e,angle:Math.atan2(this.event.clientX-(this.left+this.width/2),-(this.event.clientY-(this.top+this.height/2)))*(180/Math.PI)}}updateElementPosition(){let t=this.element.getBoundingClientRect();this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.left=t.left,this.top=t.top}update(){let t=this.getValues();this.element.style.transform="perspective("+this.settings.perspective+"px) rotateX("+("x"===this.settings.axis?0:t.tiltY)+"deg) rotateY("+("y"===this.settings.axis?0:t.tiltX)+"deg) scale3d("+this.settings.scale+", "+this.settings.scale+", "+this.settings.scale+")",this.glare&&(this.glareElement.style.transform=`rotate(${t.angle}deg) translate(-50%, -50%)`,this.glareElement.style.opacity=`${t.percentageY*this.settings["max-glare"]/100}`),this.element.dispatchEvent(new CustomEvent("tiltChange",{detail:t})),this.updateCall=null}prepareGlare(){if(!this.glarePrerender){const t=document.createElement("div");t.classList.add("js-tilt-glare");const e=document.createElement("div");e.classList.add("js-tilt-glare-inner"),t.appendChild(e),this.element.appendChild(t)}this.glareElementWrapper=this.element.querySelector(".js-tilt-glare"),this.glareElement=this.element.querySelector(".js-tilt-glare-inner"),this.glarePrerender||(Object.assign(this.glareElementWrapper.style,{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",overflow:"hidden","pointer-events":"none"}),Object.assign(this.glareElement.style,{position:"absolute",top:"50%",left:"50%","pointer-events":"none","background-image":"linear-gradient(0deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%)",width:`${2*this.element.offsetWidth}px`,height:`${2*this.element.offsetWidth}px`,transform:"rotate(180deg) translate(-50%, -50%)","transform-origin":"0% 0%",opacity:"0"}))}updateGlareSize(){this.glare&&Object.assign(this.glareElement.style,{width:`${2*this.element.offsetWidth}`,height:`${2*this.element.offsetWidth}`})}updateClientSize(){this.clientWidth=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,this.clientHeight=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}onWindowResize(){this.updateGlareSize(),this.updateClientSize()}setTransition(){clearTimeout(this.transitionTimeout),this.element.style.transition=this.settings.speed+"ms "+this.settings.easing,this.glare&&(this.glareElement.style.transition=`opacity ${this.settings.speed}ms ${this.settings.easing}`),this.transitionTimeout=setTimeout(()=>{this.element.style.transition="",this.glare&&(this.glareElement.style.transition="")},this.settings.speed)}extendSettings(t){let e={reverse:!1,max:15,startX:0,startY:0,perspective:1e3,easing:"cubic-bezier(.03,.98,.52,.99)",scale:1,speed:300,transition:!0,axis:null,glare:!1,"max-glare":1,"glare-prerender":!1,"full-page-listening":!1,"mouse-event-element":null,reset:!0,gyroscope:!0,gyroscopeMinAngleX:-45,gyroscopeMaxAngleX:45,gyroscopeMinAngleY:-45,gyroscopeMaxAngleY:45,gyroscopeSamples:10},i={};for(var s in e)if(s in t)i[s]=t[s];else if(this.element.hasAttribute("data-tilt-"+s)){let t=this.element.getAttribute("data-tilt-"+s);try{i[s]=JSON.parse(t)}catch(e){i[s]=t}}else i[s]=e[s];return i}static init(e,i){e instanceof Node&&(e=[e]),e instanceof NodeList&&(e=[].slice.call(e)),e instanceof Array&&e.forEach(e=>{"vanillaTilt"in e||(e.vanillaTilt=new t(e,i))})}}return"undefined"!=typeof document&&(window.VanillaTilt=t,t.init(document.querySelectorAll("[data-tilt]"))),t}();
;var WPBFSite=function(t){var e,a=!(!window.wp||!wp.customize),i={desktop:1024,tablet:768,mobile:480},n="desktop",s=t(".wpbf-navigation").data("sub-menu-animation-duration");function o(){var e=t(window).width(),a="";n=e>i.desktop?(a="wpbf-is-desktop","desktop"):e>i.tablet?(a="wpbf-is-tablet","tablet"):(a="wpbf-is-mobile","mobile"),document.body.classList.remove("wpbf-is-desktop"),document.body.classList.remove("wpbf-is-tablet"),document.body.classList.remove("wpbf-is-mobile"),document.body.classList.add(a)}function r(e){var a="wpbf-"+e+"-breakpoint-[\\w-]*\\b",n=t("body").attr("class").match(a);null!=n&&(i[e]=n.toString().match(/\d+/),i[e]=Array.isArray(i[e])?i[e][0]:i[e])}function u(){t(".wpbf-menu-item-search").hasClass("active")&&(t(".wpbf-menu-search").stop().animate({opacity:"0",width:"0px"},250,function(){t(this).css({display:"none"})}),setTimeout(function(){t(".wpbf-menu-item-search").removeClass("active").attr("aria-expanded","false")},400))}r("desktop"),r("tablet"),r("mobile"),o(),l(),a&&wp.customize.bind("preview-ready",function(){wp.customize.selectiveRefresh.bind("partial-content-rendered",function(e){s=t(".wpbf-navigation").data("sub-menu-animation-duration"),l()})}),window.addEventListener("resize",function(e){o()}),t(".menu-item-has-children").each(function(){t(this).attr("aria-haspopup","true")}),t(".scrolltop").length&&(e=t(".scrolltop").attr("data-scrolltop-value"),t(window).scroll(function(){t(this).scrollTop()>e?t(".scrolltop").fadeIn():t(".scrolltop").fadeOut()}),t(document).on("click",".scrolltop",function(){t("body").attr("tabindex","-1").focus(),t(this).blur(),t("body, html").animate({scrollTop:0},500)})),t(document).on("click",".wpbf-menu-item-search",function(e){e.stopPropagation(),t(".wpbf-navigation .wpbf-menu > li").slice(-3).addClass("calculate-width");var a=0;t(".calculate-width").each(function(){a+=t(this).outerWidth()}),a<200&&(a=250),this.classList.contains("active")||(t(this).addClass("active").attr("aria-expanded","true"),t(".wpbf-menu-search",this).stop().css({display:"block"}).animate({width:a,opacity:"1"},200),t("input[type=search]",this).val("").focus())}),t(window).on("click",function(){u()}),t(document).keyup(function(e){27===e.keyCode&&u()}),t(".wpcf7-form-control-wrap").on("mouseenter",function(){t(".wpcf7-not-valid-tip",this).fadeOut()}),t(document).on("mouseenter",".wpbf-sub-menu-animation-fade > .menu-item-has-children",function(){t(".sub-menu",this).first().stop().fadeIn(s)}).on("mouseleave",".wpbf-sub-menu-animation-fade > .menu-item-has-children",function(){t(".sub-menu",this).first().stop().fadeOut(s)}),t(document).on("mouseenter",".wpbf-sub-menu > .menu-item-has-children:not(.wpbf-mega-menu) .menu-item-has-children",function(){t(".sub-menu",this).first().stop().css({display:"block"}).animate({opacity:"1"},s)}).on("mouseleave",".wpbf-sub-menu > .menu-item-has-children:not(.wpbf-mega-menu) .menu-item-has-children",function(){t(".sub-menu",this).first().stop().animate({opacity:"0"},s,function(){t(this).css({display:"none"})})}),t(window).on("load",function(){t(".opacity").delay(200).animate({opacity:"1"},200),t(".display-none").show(),t(window).trigger("resize"),t(window).trigger("scroll")});var m=t(".wpbf-page").css("margin-top");function l(){var e;document.querySelector(".wpbf-menu-centered")&&(e=t(".wpbf-navigation .wpbf-menu-centered .wpbf-menu > li > a").length/2,e=(e=Math.floor(e))-1,t(".wpbf-menu-centered .logo-container").insertAfter(".wpbf-navigation .wpbf-menu-centered .wpbf-menu >li:eq("+e+")").css({display:"block"}))}function d(){t("body").hasClass("using-mouse")||t("#navigation > ul").hasClass("wpbf-sub-menu")&&(t(".menu-item-has-children").removeClass("wpbf-sub-menu-focus"),t(this).parents(".menu-item-has-children").addClass("wpbf-sub-menu-focus"))}return t(window).on("resize",function(){t(".wpbf-page").width()>=t(window).width()?t(".wpbf-page").css({"margin-top":"0","margin-bottom":"0"}):t(".wpbf-page").css({"margin-top":m,"margin-bottom":m})}),t("body").mousedown(function(){t(this).addClass("using-mouse"),t(".menu-item-has-children").removeClass("wpbf-sub-menu-focus")}),t("body").keydown(function(){t(this).removeClass("using-mouse")}),t(".wpbf-menu-container #navigation a").on("focus",d),t(".wpbf-menu-container #navigation a").on("blur",d),{breakpoints:i,activeBreakpoint:n}}(jQuery),WPBFMobile=function(s){var o,r=WPBFSite.breakpoints;function e(){var e=document.querySelector(".wpbf-mobile-menu-hamburger");o=e?"hamburger":(e=document.querySelector(".wpbf-mobile-menu-default"),e?"default":"premium")}function n(e){var a;"premium"!==e&&((a=s(".wpbf-mobile-menu-toggle")).hasClass("active")?(s(".wpbf-mobile-menu-container").removeClass("active").slideUp(),a.removeClass("active"),"hamburger"===e?a.removeClass("wpbff-times").addClass("wpbff-hamburger").attr("aria-expanded","false"):a.attr("aria-expanded","false")):(s(".wpbf-mobile-menu-container").addClass("active").slideDown(),a.addClass("active"),"hamburger"===e?a.removeClass("wpbff-hamburger").addClass("wpbff-times").attr("aria-expanded","true"):a.attr("aria-expanded","true")))}function a(e){var a="hamburger"===e?".wpbf-mobile-menu-hamburger .wpbf-submenu-toggle":".wpbf-mobile-menu-default .wpbf-submenu-toggle";s(document).on("click",a,function(e){var a;e.preventDefault(),s(a=this).hasClass("active")?(s("i",a).removeClass("wpbff-arrow-up").addClass("wpbff-arrow-down"),s(a).removeClass("active").attr("aria-expanded","false").siblings(".sub-menu").slideUp()):(s("i",a).removeClass("wpbff-arrow-down").addClass("wpbff-arrow-up"),s(a).addClass("active").attr("aria-expanded","true").siblings(".sub-menu").slideDown())})}window.addEventListener("resize",function(e){r=WPBFSite.breakpoints}),e(),s(document).on("click",".wpbf-mobile-menu-toggle",function(){e(),n(o)}),s(document).on("click",".wpbf-mobile-menu a",function(){var e,a=this.parentNode.classList.contains("menu-item-has-children");(this.href.match("#")||this.href.match("/#"))&&(a?(e=s(this).siblings(".wpbf-submenu-toggle")).hasClass("active")?(s("i",e).removeClass("wpbff-arrow-up").addClass("wpbff-arrow-down"),e.removeClass("active").attr("aria-expanded","false").siblings(".sub-menu").slideUp()):(s("i",e).removeClass("wpbff-arrow-down").addClass("wpbff-arrow-up"),e.addClass("active").attr("aria-expanded","true").siblings(".sub-menu").slideDown()):n(o))}),s(window).resize(function(){var e,a,n=s(window).height(),t=s(window).width(),i=s(".wpbf-mobile-nav-wrapper").outerHeight();s(".wpbf-mobile-menu-container.active nav").css({"max-height":n-i}),t>r.desktop?(e=o,(a=s(".wpbf-mobile-menu-toggle")).hasClass("active")&&(s(".wpbf-mobile-menu-container").removeClass("active").slideUp(),a.removeClass("active"),"hamburger"===e?a.removeClass("wpbff-times").addClass("wpbff-hamburger").attr("aria-expanded","false"):a.attr("aria-expanded","false")),s(".wpbf-mobile-mega-menu").length&&s(".wpbf-mobile-mega-menu").removeClass("wpbf-mobile-mega-menu").addClass("wpbf-mega-menu")):s(".wpbf-mega-menu").length&&s(".wpbf-mega-menu").removeClass("wpbf-mega-menu").addClass("wpbf-mobile-mega-menu")}),a("default"),a("hamburger")}(jQuery);
;/*! This file is auto-generated */
window.addComment=function(v){var I,C,h,E=v.document,b={commentReplyClass:"comment-reply-link",commentReplyTitleId:"reply-title",cancelReplyId:"cancel-comment-reply-link",commentFormId:"commentform",temporaryFormId:"wp-temp-form-div",parentIdFieldId:"comment_parent",postIdFieldId:"comment_post_ID"},e=v.MutationObserver||v.WebKitMutationObserver||v.MozMutationObserver,r="querySelector"in E&&"addEventListener"in v,n=!!E.documentElement.dataset;function t(){d(),e&&new e(o).observe(E.body,{childList:!0,subtree:!0})}function d(e){if(r&&(I=g(b.cancelReplyId),C=g(b.commentFormId),I)){I.addEventListener("touchstart",l),I.addEventListener("click",l);var t=function(e){if((e.metaKey||e.ctrlKey)&&13===e.keyCode)return C.removeEventListener("keydown",t),e.preventDefault(),C.submit.click(),!1};C&&C.addEventListener("keydown",t);for(var n,d=function(e){var t=b.commentReplyClass;e&&e.childNodes||(e=E);t=E.getElementsByClassName?e.getElementsByClassName(t):e.querySelectorAll("."+t);return t}(e),o=0,i=d.length;o<i;o++)(n=d[o]).addEventListener("touchstart",a),n.addEventListener("click",a)}}function l(e){var t,n,d=g(b.temporaryFormId);d&&h&&(g(b.parentIdFieldId).value="0",t=d.textContent,d.parentNode.replaceChild(h,d),this.style.display="none",n=(d=(n=g(b.commentReplyTitleId))&&n.firstChild)&&d.nextSibling,d&&d.nodeType===Node.TEXT_NODE&&t&&(n&&"A"===n.nodeName&&n.id!==b.cancelReplyId&&(n.style.display=""),d.textContent=t),e.preventDefault())}function a(e){var t=g(b.commentReplyTitleId),n=t&&t.firstChild.textContent,d=this,o=m(d,"belowelement"),i=m(d,"commentid"),r=m(d,"respondelement"),t=m(d,"postid"),n=m(d,"replyto")||n;o&&i&&r&&t&&!1===v.addComment.moveForm(o,i,r,t,n)&&e.preventDefault()}function o(e){for(var t=e.length;t--;)if(e[t].addedNodes.length)return void d()}function m(e,t){return n?e.dataset[t]:e.getAttribute("data-"+t)}function g(e){return E.getElementById(e)}return r&&"loading"!==E.readyState?t():r&&v.addEventListener("DOMContentLoaded",t,!1),{init:d,moveForm:function(e,t,n,d,o){var i=g(e);h=g(n);var r,l,a,m,c=g(b.parentIdFieldId),s=g(b.postIdFieldId),y=g(b.commentReplyTitleId),p=y&&y.firstChild,u=p&&p.nextSibling;if(i&&h&&c){void 0===o&&(o=p&&p.textContent),m=h,e=b.temporaryFormId,n=g(e),y=(y=g(b.commentReplyTitleId))?y.firstChild.textContent:"",n||((n=E.createElement("div")).id=e,n.style.display="none",n.textContent=y,m.parentNode.insertBefore(n,m)),d&&s&&(s.value=d),c.value=t,I.style.display="",i.parentNode.insertBefore(h,i.nextSibling),p&&p.nodeType===Node.TEXT_NODE&&(u&&"A"===u.nodeName&&u.id!==b.cancelReplyId&&(u.style.display="none"),p.textContent=o),I.onclick=function(){return!1};try{for(var f=0;f<C.elements.length;f++)if(r=C.elements[f],l=!1,"getComputedStyle"in v?a=v.getComputedStyle(r):E.documentElement.currentStyle&&(a=r.currentStyle),(r.offsetWidth<=0&&r.offsetHeight<=0||"hidden"===a.visibility)&&(l=!0),"hidden"!==r.type&&!r.disabled&&!l){r.focus();break}}catch(e){}return!1}}}}(window);
;(function($){function init(){window.addEventListener('load',function(){setupProductQuantities();quantityChange();setupQuickView();});$(document).ajaxComplete(function(){setupProductQuantities();quantityChange();});}
function setupQuickView(){var quickViews=document.querySelectorAll('.wpbf-woo-quick-view');if(!quickViews.length)return;[].slice.call(quickViews).forEach(function(quickView){var maxWait=3000;var currentWait=0;quickView.addEventListener('click',waitForQuickViewReponse);function waitForQuickViewReponse(){if(!document.querySelector('.wpbf-woo-quick-view-modal-content .type-product')){if(currentWait<=maxWait){setTimeout(function(){waitForQuickViewReponse();currentWait+=300;},300);}}else{setupProductQuantitiesOnQuickView();}}});}
function setupProductQuantitiesOnQuickView(){var quantities=document.querySelectorAll('.wpbf-woo-quick-view-modal-content .quantity');if(!quantities.length)return;[].slice.call(quantities).forEach(function(quantity){setupProductQuantity(quantity);});}
function setupProductQuantities(){var quantities;quantities=document.querySelectorAll('.quantity');if(!quantities.length)return;[].slice.call(quantities).forEach(function(quantity){setupProductQuantity(quantity);});}
function setupProductQuantity(quantity){var qty=quantity.querySelector('.qty');var decrease=quantity.querySelector('.wpbf-qty-decrease');var increase=quantity.querySelector('.wpbf-qty-increase');if(!qty||!decrease||!increase)return;qty.parentNode.classList.add('wpbf-quantity');}
function quantityChange(){$(document).off("click",".wpbf-qty-control").on("click",".wpbf-qty-control",function(){var qty=$(this).parent().find('.qty');var val=parseFloat(qty.val());var max=parseFloat(qty.attr("max"));var min=parseFloat(qty.attr("min"));var step=parseFloat(qty.attr("step"));if($(this).is(".wpbf-qty-increase")){if(val===max)return false;if(isNaN(val)){qty.val(step);}else if(val+step>max){qty.val(max);}else{qty.val(val+step);}}else{if(val===min)return false;if(isNaN(val)){qty.val(min);}else if(val-step<min){qty.val(min);}else{qty.val(val-step);}}
qty.val(Math.round(qty.val()*100)/100);qty.trigger("change");});}
init();})(jQuery);