(function($){
window.NggPaginatedGallery=function(displayed_gallery_id, container){
this.displayed_gallery_id=displayed_gallery_id;
this.container=$(container);
this.container_name=container;
this.get_displayed_gallery_obj=function(){
var index='gallery_' + this.displayed_gallery_id;
if(typeof(window.galleries[index])=='undefined'){
return false;
}else{
return window.galleries[index];
}};
this.enable_ajax_pagination=function(){
var self=this;
$('body').on('click', 'a.ngg-browser-prev, a.ngg-browser-next', function (event){
var skip=true;
$(this).parents(container).each(function(){
if($(this).data('nextgen-gallery-id')!=self.displayed_gallery_id){
return true;
}
skip=false;
});
if(!skip){
event.preventDefault();
}else{
return;
}
window['ngg_ajax_operaton_count']++;
$('body, a').css('cursor', 'wait');
$.get({
url: $(this).attr('href'),
headers: { 'X-NGG-Pagination-Request': true },
success: function (response){
window['ngg_ajax_operaton_count']--;
if(window['ngg_ajax_operaton_count'] <=0){
window['ngg_ajax_operaton_count']=0;
$('body, a').css('cursor', 'auto');
}
if(response){
var html=$(response);
var replacement=false;
html.find(self.container_name).each(function(){
if(replacement){
return true;
}
if($(this).data('nextgen-gallery-id')!=self.displayed_gallery_id){
return true;
}
replacement=$(this);
});
if(replacement){
self.container.each(function (){
var $this=$(this);
if($this.data('nextgen-gallery-id')!=self.displayed_gallery_id){
return true;
}
var $new_element=$(replacement.html());
var promises=$new_element.find('img').toArray().map(function(img){
return new Promise(function(resolve, reject){
var i=new Image();
i.src=img.src;
$(i).on('load', resolve);
});
});
Promise.all(promises).then(function(){
$this.html($new_element);
$(document).trigger('refreshed');
const event=new Event("nextgen_page_refreshed");
document.dispatchEvent(event);
});
return true;
});
}}
}});
});
};
var displayed_gallery=this.get_displayed_gallery_obj();
if(displayed_gallery){
if(typeof(displayed_gallery.display_settings['ajax_pagination'])!='undefined'){
if(parseInt(displayed_gallery.display_settings['ajax_pagination'])){
this.enable_ajax_pagination();
}}
}
if(typeof(window['ngg_ajax_operation_count'])=='undefined'){
window['ngg_ajax_operaton_count']=0;
}};
Object.setPrototypeOf=Object.setPrototypeOf||function(obj, proto){
obj.__proto__=proto;
return obj;
};
if(typeof window.galleries!=='undefined'){
Object.setPrototypeOf(window.galleries,
{
get_api_version: function(){
return '0.1';
},
get_from_id: function (gallery_id){
var self=this;
var retval=null;
var keys=Object.keys(this);
for (var i=1; i <=keys.length; i++){
var gallery=self[keys[i - 1]];
if(gallery.ID===gallery_id||gallery.ID==='gallery_' + gallery_id||gallery.ID===parseInt(gallery_id)){
retval=gallery;
break;
}}
return retval;
},
get_from_slug: function (slug){
var self=this;
var retval=null;
var keys=Object.keys(this);
for (var i=1; i <=keys.length; i++){
var gallery=self[keys[i - 1]];
if(gallery.slug===slug){
retval=gallery;
break;
}}
return retval;
},
get_setting: function(gallery_id, name, def){
var tmp='';
var gallery=this.get_from_id(gallery_id);
if(gallery&&typeof gallery[name]!=='undefined'){
tmp=gallery[name];
}else{
tmp=def;
}
if(tmp===1)       tmp=true;
if(tmp===0)       tmp=false;
if(tmp==='1')     tmp=true;
if(tmp==='0')     tmp=false;
if(tmp==='false') tmp=false;
if(tmp==='true')  tmp=true;
return tmp;
},
get_display_setting: function(gallery_id, name, def){
var tmp='';
var gallery=this.get_from_id(gallery_id);
if(gallery&&typeof gallery.display_settings[name]!=='undefined'){
tmp=gallery.display_settings[name];
}else{
tmp=def;
}
if(tmp===1)       tmp=true;
if(tmp===0)       tmp=false;
if(tmp==='1')     tmp=true;
if(tmp==='0')     tmp=false;
if(tmp==='false') tmp=false;
if(tmp==='true')  tmp=true;
return tmp;
},
is_widget: function(gallery_id){
var retval=false;
var gallery=this.get_from_id(gallery_id);
var slug=gallery.slug;
if(slug){
return slug.indexOf('widget-ngg-images')!==-1;
}
return retval;
}}
); }})(jQuery);
function nextgen_lightbox_filter_selector($, selector){
if(nextgen_lightbox_settings&&nextgen_lightbox_settings.context){
var context=nextgen_lightbox_settings.context;
if(context=='all_images'){
selector=selector.add($('a > img').parent());
}
else if(context=='all_images_direct'){
selector=selector.add($('a[href] > img').parent()
.filter(function(){
var href=$(this).attr('href').toLowerCase();
var ext=href.substring(href.length - 3);
var ext2=href.substring(href.length - 4);
return (ext=='jpg'||ext=='gif'||ext=='png'||ext2=='tiff'||ext2=='jpeg'||ext2=='webp');
}));
}
else if(context=='nextgen_and_wp_images'){
selector=selector.add($('a > img[class*="wp-image-"]').parent());
}
selector=selector.not('.gallery_link');
selector=selector.not('.use_imagebrowser_effect');
}
return selector;
};
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('h.i[\'1a\']=h.i[\'z\'];h.O(h.i,{y:\'D\',z:9(x,t,b,c,d){6 h.i[h.i.y](x,t,b,c,d)},17:9(x,t,b,c,d){6 c*(t/=d)*t+b},D:9(x,t,b,c,d){6-c*(t/=d)*(t-2)+b},13:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t+b;6-c/2*((--t)*(t-2)-1)+b},X:9(x,t,b,c,d){6 c*(t/=d)*t*t+b},U:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t+1)+b},R:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t+b;6 c/2*((t-=2)*t*t+2)+b},N:9(x,t,b,c,d){6 c*(t/=d)*t*t*t+b},M:9(x,t,b,c,d){6-c*((t=t/d-1)*t*t*t-1)+b},L:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t+b;6-c/2*((t-=2)*t*t*t-2)+b},K:9(x,t,b,c,d){6 c*(t/=d)*t*t*t*t+b},J:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t*t*t+1)+b},I:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t*t+b;6 c/2*((t-=2)*t*t*t*t+2)+b},G:9(x,t,b,c,d){6-c*8.C(t/d*(8.g/2))+c+b},15:9(x,t,b,c,d){6 c*8.n(t/d*(8.g/2))+b},12:9(x,t,b,c,d){6-c/2*(8.C(8.g*t/d)-1)+b},Z:9(x,t,b,c,d){6(t==0)?b:c*8.j(2,10*(t/d-1))+b},Y:9(x,t,b,c,d){6(t==d)?b+c:c*(-8.j(2,-10*t/d)+1)+b},W:9(x,t,b,c,d){e(t==0)6 b;e(t==d)6 b+c;e((t/=d/2)<1)6 c/2*8.j(2,10*(t-1))+b;6 c/2*(-8.j(2,-10*--t)+2)+b},V:9(x,t,b,c,d){6-c*(8.o(1-(t/=d)*t)-1)+b},S:9(x,t,b,c,d){6 c*8.o(1-(t=t/d-1)*t)+b},Q:9(x,t,b,c,d){e((t/=d/2)<1)6-c/2*(8.o(1-t*t)-1)+b;6 c/2*(8.o(1-(t-=2)*t)+1)+b},P:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6-(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b},H:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6 a*8.j(2,-10*t)*8.n((t*d-s)*(2*8.g)/p)+c+b},T:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d/2)==2)6 b+c;e(!p)p=d*(.3*1.5);e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);e(t<1)6-.5*(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b;6 a*8.j(2,-10*(t-=1))*8.n((t*d-s)*(2*8.g)/p)*.5+c+b},F:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*(t/=d)*t*((s+1)*t-s)+b},E:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},16:9(x,t,b,c,d,s){e(s==u)s=1.l;e((t/=d/2)<1)6 c/2*(t*t*(((s*=(1.B))+1)*t-s))+b;6 c/2*((t-=2)*t*(((s*=(1.B))+1)*t+s)+2)+b},A:9(x,t,b,c,d){6 c-h.i.v(x,d-t,0,c,d)+b},v:9(x,t,b,c,d){e((t/=d)<(1/2.k)){6 c*(7.q*t*t)+b}m e(t<(2/2.k)){6 c*(7.q*(t-=(1.5/2.k))*t+.k)+b}m e(t<(2.5/2.k)){6 c*(7.q*(t-=(2.14/2.k))*t+.11)+b}m{6 c*(7.q*(t-=(2.18/2.k))*t+.19)+b}},1b:9(x,t,b,c,d){e(t<d/2)6 h.i.A(x,t*2,0,c,d)*.5+b;6 h.i.v(x,t*2-d,0,c,d)*.5+c*.5+b}});',62,74,'||||||return||Math|function|||||if|var|PI|jQuery|easing|pow|75|70158|else|sin|sqrt||5625|asin|||undefined|easeOutBounce|abs||def|swing|easeInBounce|525|cos|easeOutQuad|easeOutBack|easeInBack|easeInSine|easeOutElastic|easeInOutQuint|easeOutQuint|easeInQuint|easeInOutQuart|easeOutQuart|easeInQuart|extend|easeInElastic|easeInOutCirc|easeInOutCubic|easeOutCirc|easeInOutElastic|easeOutCubic|easeInCirc|easeInOutExpo|easeInCubic|easeOutExpo|easeInExpo||9375|easeInOutSine|easeInOutQuad|25|easeOutSine|easeInOutBack|easeInQuad|625|984375|jswing|easeInOutBounce'.split('|'),0,{}));
(s=>{function i(){f.hide(),k.onerror=k.onload=null,C&&C.abort(),l.empty()}function h(){!1===w.onError(m,u,w)?(f.hide(),A=!1):(w.titleShow=!1,w.width="auto",w.height="auto",l.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>'),E())}function a(){var n,t,e,a,o,d,c,r=m[u];if(i(),w=s.extend({},s.fn.fancybox.defaults,void 0===s(r).data("fancybox")?w:s(r).data("fancybox")),!1===(d=w.onStart(m,u,w)))A=!1;else{e=(w="object"==typeof d?s.extend(w,d):w).title||(r.nodeName?s(r).attr("title"):r.title)||"",r.nodeName&&!w.orig&&(w.orig=s(r).children("img:first").length?s(r).children("img:first"):s(r)),""===e&&w.orig&&w.titleFromAlt&&(e=w.orig.attr("alt"));let i={A:["href","class","title"],BR:[],EM:[],I:[],STRONG:[],B:[],U:[],P:["class"],DIV:["class","id"],SPAN:["class","id"]};if(c=e,(c=(new DOMParser).parseFromString(c,"text/html")).body.querySelectorAll("*").forEach(e=>{i[e.tagName]?[...e.attributes].forEach(t=>{i[e.tagName].includes(t.name)||e.removeAttribute(t.name)}):e.remove()}),e=c.body.innerHTML,n=w.href||(r.nodeName?s(r).attr("href"):r.href)||null,!/^(?:javascript)/i.test(n)&&"#"!=n||(n=null),w.type?(t=w.type,n=n||w.content):w.content?t="html":n&&(t=n.match(O)?"image":n.match(z)?"swf":s(r).hasClass("iframe")?"iframe":0===n.indexOf("#")?"inline":"ajax"),t)switch("inline"==t&&(r=n.substr(n.indexOf("#")),t=0<s(r).length?"inline":"ajax"),w.type=t,w.href=n,w.title=e,w.autoDimensions&&("html"==w.type||"inline"==w.type||"ajax"==w.type?(w.width="auto",w.height="auto"):w.autoDimensions=!1),w.modal&&(w.overlayShow=!0,w.hideOnOverlayClick=!1,w.hideOnContentClick=!1,w.enableEscapeButton=!1,w.showCloseButton=!1),w.padding=parseInt(w.padding,10),w.margin=parseInt(w.margin,10),l.css("padding",w.padding+w.margin),s(".fancybox-inline-tmp").off("fancybox-cancel").on("fancybox-change",function(){s(this).replaceWith(p.children())}),t){case"html":l.html(w.content),E();break;case"inline":!0===s(r).parent().is("#fancybox-content")?A=!1:(s('<div class="fancybox-inline-tmp" />').hide().insertBefore(s(r)).on("fancybox-cleanup",function(){s(this).replaceWith(p.children())}).on("fancybox-cancel",function(){s(this).replaceWith(l.children())}),s(r).appendTo(l),E());break;case"image":A=!1,s.fancybox.showActivity(),(k=new Image).onerror=function(){h()},k.onload=function(){A=!0,k.onerror=k.onload=null,w.width=k.width,w.height=k.height,s("<img />").attr({id:"fancybox-img",src:k.src,alt:w.title}).appendTo(l),P()},k.src=n;break;case"swf":w.scrolling="no",a='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+w.width+'" height="'+w.height+'"><param name="movie" value="'+n+'"></param>',o="",s.each(w.swf,function(t,e){a+='<param name="'+t+'" value="'+e+'"></param>',o+=" "+t+'="'+e+'"'}),a+='<embed src="'+n+'" type="application/x-shockwave-flash" width="'+w.width+'" height="'+w.height+'"'+o+"></embed></object>",l.html(a),E();break;case"ajax":A=!1,s.fancybox.showActivity(),w.ajax.win=w.ajax.success,C=s.ajax(s.extend({},w.ajax,{url:n,data:w.ajax.data||{},error:function(t,e,i){0<t.status&&h()},success:function(t,e,i){if(200==("object"==typeof i?i:C).status){if("function"==typeof w.ajax.win){if(!1===(d=w.ajax.win(n,t,e,i)))return void f.hide();"string"!=typeof d&&"object"!=typeof d||(t=d)}l.html(t),E()}}}));break;case"iframe":P()}else h()}}function M(t){var e=t.offset();return e.top+=parseInt(t.css("paddingTop"),10)||0,e.left+=parseInt(t.css("paddingLeft"),10)||0,e.top+=parseInt(t.css("border-top-width"),10)||0,e.left+=parseInt(t.css("border-left-width"),10)||0,e.width=t.width(),e.height=t.height(),e}function L(){f.is(":visible")?(s("div",f).css("top",-40*j+"px"),j=(j+1)%12):clearInterval(e)}var l,f,n,o,t,p,d,c,r,g,e,b,y,u=0,w={},m=[],x=0,v={},I=[],C=null,k=new Image,O=/\.(jpg|gif|png|bmp|jpeg|webp)(.*)?$/i,z=/[^\.]\.(swf)\s*$/i,j=1,S=0,T="",A=!1,D=s.extend(s("<div/>")[0],{prop:0}),N=!1,E=function(){var t=w.width,e=w.height,t=-1<t.toString().indexOf("%")?parseInt((s(window).width()-2*w.margin)*parseFloat(t)/100,10)+"px":"auto"==t?"auto":t+"px",e=-1<e.toString().indexOf("%")?parseInt((s(window).height()-2*w.margin)*parseFloat(e)/100,10)+"px":"auto"==e?"auto":e+"px";l.wrapInner('<div style="width:'+t+";height:"+e+";overflow: "+("auto"==w.scrolling?"auto":"yes"==w.scrolling?"scroll":"hidden")+';position:relative;"></div>'),w.width=l.width(),w.height=l.height(),P()},P=function(){var t,e;f.hide(),o.is(":visible")&&!1===v.onCleanup(I,x,v)?(s.event.trigger("fancybox-cancel"),A=!1):(A=!0,s(p.add(n)).off(),s(window).off("resize.fb scroll.fb"),s(document).off("keydown.fb"),o.is(":visible")&&"outside"!==v.titlePosition&&o.css("height",o.height()),I=m,x=u,(v=w).overlayShow?(n.css({"background-color":v.overlayColor,opacity:v.overlayOpacity,cursor:v.hideOnOverlayClick?"pointer":"auto",height:s(document).height()}),n.is(":visible")||(N&&s("select:not(#fancybox-tmp select)").filter(function(){return"hidden"!==this.style.visibility}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"}),n.show())):n.hide(),y=q(),R(),o.is(":visible")?(s(d.add(r).add(g)).hide(),t=o.position(),b={top:t.top,left:t.left,width:o.width(),height:o.height()},e=b.width==y.width&&b.height==y.height,p.fadeTo(v.changeFade,.3,function(){function t(){p.html(l.contents()).fadeTo(v.changeFade,1,F)}s.event.trigger("fancybox-change"),p.empty().removeAttr("filter").css({"border-width":v.padding,width:y.width-2*v.padding,height:w.autoDimensions?"auto":y.height-S-2*v.padding}),e?t():(D.prop=0,s(D).animate({prop:1},{duration:v.changeSpeed,easing:v.easingChange,step:B,complete:t}))})):(o.removeAttr("style"),p.css("border-width",v.padding),"elastic"==v.transitionIn?(b=U(),p.html(l.contents()),o.show(),v.opacity&&(y.opacity=0),D.prop=0,s(D).animate({prop:1},{duration:v.speedIn,easing:v.easingIn,step:B,complete:F})):("inside"==v.titlePosition&&0<S&&c.show(),p.css({width:y.width-2*v.padding,height:w.autoDimensions?"auto":y.height-S-2*v.padding}).html(l.contents()),o.css(y).fadeIn("none"==v.transitionIn?0:v.speedIn,F))))},H=function(t){return!(!t||!t.length)&&("float"==v.titlePosition?'<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">'+t+'</td><td id="fancybox-title-float-right"></td></tr></table>':'<div id="fancybox-title-'+v.titlePosition+'">'+t+"</div>")},R=function(){if((T=v.title||"",S=0,c.empty().removeAttr("style").removeClass(),!1!==v.titleShow)&&((T="function"==typeof v.titleFormat?v.titleFormat(T,I,x,v):H(T))&&""!==T))switch(c.addClass("fancybox-title-"+v.titlePosition).html(T).appendTo("body").show(),v.titlePosition){case"inside":c.css({width:y.width-2*v.padding,marginLeft:v.padding,marginRight:v.padding}),S=c.outerHeight(!0),c.appendTo(t),y.height+=S;break;case"over":c.css({marginLeft:v.padding,width:y.width-2*v.padding,bottom:v.padding}).appendTo(t);break;case"float":c.css("left",-1*parseInt((c.width()-y.width-40)/2,10)).appendTo(o);break;default:c.css({width:y.width-2*v.padding,paddingLeft:v.padding,paddingRight:v.padding}).appendTo(o)}c.hide()},K=function(){(v.enableEscapeButton||v.enableKeyboardNav)&&s(document).on("keydown.fb",function(t){27==t.keyCode&&v.enableEscapeButton?(t.preventDefault(),s.fancybox.close()):37!=t.keyCode&&39!=t.keyCode||!v.enableKeyboardNav||"INPUT"===t.target.tagName||"TEXTAREA"===t.target.tagName||"SELECT"===t.target.tagName||(t.preventDefault(),s.fancybox[37==t.keyCode?"prev":"next"]())}),v.showNavArrows?((v.cyclic&&1<I.length||0!==x)&&r.show(),(v.cyclic&&1<I.length||x!=I.length-1)&&g.show()):(r.hide(),g.hide())},F=function(){s.support.opacity||(p.get(0).style.removeProperty("filter"),o.get(0).style.removeProperty("filter")),w.autoDimensions&&p.css("height","auto"),o.css("height","auto"),T&&T.length&&c.show(),v.showCloseButton&&d.show(),K(),v.hideOnContentClick&&p.on("click",s.fancybox.close),v.hideOnOverlayClick&&n.on("click",s.fancybox.close),s(window).on("resize.fb",s.fancybox.resize),v.centerOnScroll&&s(window).on("scroll.fb",s.fancybox.center),"iframe"==v.type&&s('<iframe id="fancybox-frame" name="fancybox-frame'+(new Date).getTime()+'" frameborder="0" hspace="0"  scrolling="'+w.scrolling+'" src="'+v.href+'"></iframe>').appendTo(p),o.show(),A=!1,s.fancybox.center(),v.onComplete(I,x,v),Q()},Q=function(){var t;I.length-1>x&&void 0!==(t=I[x+1].href)&&t.match(O)&&((new Image).src=t),0<x&&void 0!==(t=I[x-1].href)&&t.match(O)&&((new Image).src=t)},B=function(t){var e={width:parseInt(b.width+(y.width-b.width)*t,10),height:parseInt(b.height+(y.height-b.height)*t,10),top:parseInt(b.top+(y.top-b.top)*t,10),left:parseInt(b.left+(y.left-b.left)*t,10)};void 0!==y.opacity&&(e.opacity=t<.5?.5:t),o.css(e),p.css({width:e.width-2*v.padding,height:e.height-S*t-2*v.padding})},W=function(){return[s(window).width()-2*v.margin,s(window).height()-2*v.margin,s(document).scrollLeft()+v.margin,s(document).scrollTop()+v.margin]},q=function(){var t=W(),e={},i=v.autoScale,n=2*v.padding;return-1<v.width.toString().indexOf("%")?e.width=parseInt(t[0]*parseFloat(v.width)/100,10):e.width=v.width+n,-1<v.height.toString().indexOf("%")?e.height=parseInt(t[1]*parseFloat(v.height)/100,10):e.height=v.height+n,i&&(e.width>t[0]||e.height>t[1])&&("image"==w.type||"swf"==w.type?(i=v.width/v.height,e.width>t[0]&&(e.width=t[0],e.height=parseInt((e.width-n)/i+n,10)),e.height>t[1]&&(e.height=t[1],e.width=parseInt((e.height-n)*i+n,10))):(e.width=Math.min(e.width,t[0]),e.height=Math.min(e.height,t[1]))),e.top=parseInt(Math.max(t[3]-20,t[3]+.5*(t[1]-e.height-40)),10),e.left=parseInt(Math.max(t[2]-20,t[2]+.5*(t[0]-e.width-40)),10),e},U=function(){var t=!!w.orig&&s(w.orig);return t&&t.length?{width:(t=M(t)).width+2*v.padding,height:t.height+2*v.padding,top:t.top-v.padding-20,left:t.left-v.padding-20}:(t=W(),{width:2*v.padding,height:2*v.padding,top:parseInt(t[3]+.5*t[1],10),left:parseInt(t[2]+.5*t[0],10)})};s.fn.fancybox=function(t){return s(this).length&&s(this).data("fancybox",s.extend({},t,s.metadata?s(this).metadata():{})).off("click.fb").on("click.fb",function(t){t.preventDefault(),A||(A=!0,s(this).trigger("blur"),m=[],u=0,(t=s(this).attr("rel")||"")&&""!=t&&"nofollow"!==t?(m=s("a[rel="+t+"], area[rel="+t+"]"),u=m.index(this)):m.push(this),a())}),this},s.fancybox=function(t){var e;if(!A){if(A=!0,e=void 0!==arguments[1]?arguments[1]:{},m=[],u=parseInt(e.index,10)||0,Array.isArray(t)){for(var i=0,n=t.length;i<n;i++)"object"==typeof t[i]?s(t[i]).data("fancybox",s.extend({},e,t[i])):t[i]=s({}).data("fancybox",s.extend({content:t[i]},e));m=jQuery.merge(m,t)}else"object"==typeof t?s(t).data("fancybox",s.extend({},e,t)):t=s({}).data("fancybox",s.extend({content:t},e)),m.push(t);(u>m.length||u<0)&&(u=0),a()}},s.fancybox.showActivity=function(){clearInterval(e),f.show(),e=setInterval(L,66)},s.fancybox.hideActivity=function(){f.hide()},s.fancybox.next=function(){return s.fancybox.pos(x+1)},s.fancybox.prev=function(){return s.fancybox.pos(x-1)},s.fancybox.pos=function(t){A||(t=parseInt(t),m=I,-1<t&&t<I.length?(u=t,a()):v.cyclic&&1<I.length&&(u=t>=I.length?0:I.length-1,a()))},s.fancybox.cancel=function(){A||(A=!0,s.event.trigger("fancybox-cancel"),i(),w.onCancel(m,u,w),A=!1)},s.fancybox.close=function(){var t;function e(){n.fadeOut("fast"),c.empty().hide(),o.hide(),s.event.trigger("fancybox-cleanup"),p.empty(),v.onClosed(I,x,v),I=w=[],x=u=0,v=w={},A=!1}A||o.is(":hidden")||(A=!0,v&&!1===v.onCleanup(I,x,v)?A=!1:(i(),s(d.add(r).add(g)).hide(),s(p.add(n)).off(),s(window).off("resize.fb scroll.fb"),s(document).off("keydown.fb"),p.find("iframe").attr("src",N&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank"),"inside"!==v.titlePosition&&c.empty(),o.stop(),"elastic"==v.transitionOut?(b=U(),t=o.position(),y={top:t.top,left:t.left,width:o.width(),height:o.height()},v.opacity&&(y.opacity=1),c.empty().hide(),D.prop=1,s(D).animate({prop:0},{duration:v.speedOut,easing:v.easingOut,step:B,complete:e})):o.fadeOut("none"==v.transitionOut?0:v.speedOut,e)))},s.fancybox.resize=function(){n.is(":visible")&&n.css("height",s(document).height()),s.fancybox.center(!0)},s.fancybox.center=function(){var t,e;A||(e=!0===arguments[0]?1:0,t=W(),!e&&(o.width()>t[0]||o.height()>t[1]))||o.stop().animate({top:parseInt(Math.max(t[3]-20,t[3]+.5*(t[1]-p.height()-40)-v.padding)),left:parseInt(Math.max(t[2]-20,t[2]+.5*(t[0]-p.width()-40)-v.padding))},"number"==typeof arguments[0]?arguments[0]:200)},s.fancybox.init=function(){s("#fancybox-wrap").length||(s("body").append(l=s('<div id="fancybox-tmp"></div>'),f=s('<div id="fancybox-loading"><div></div></div>'),n=s('<div id="fancybox-overlay"></div>'),o=s('<div id="fancybox-wrap"></div>')),(t=s('<div id="fancybox-outer"></div>').append('<div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div>').appendTo(o)).append(p=s('<div id="fancybox-content"></div>'),d=s('<a id="fancybox-close"></a>'),c=s('<div id="fancybox-title"></div>'),r=s('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),g=s('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>')),d.on("click",s.fancybox.close),f.on("click",s.fancybox.cancel),r.on("click",function(t){t.preventDefault(),s.fancybox.prev()}),g.on("click",function(t){t.preventDefault(),s.fancybox.next()}),s.fn.mousewheel&&o.on("mousewheel.fb",function(t,e){A?t.preventDefault():0!=s(t.target).get(0).clientHeight&&s(t.target).get(0).scrollHeight!==s(t.target).get(0).clientHeight||(t.preventDefault(),s.fancybox[0<e?"prev":"next"]())}),s.support.opacity||o.addClass("fancybox-ie"),N&&(f.addClass("fancybox-ie6"),o.addClass("fancybox-ie6"),s('<iframe id="fancybox-hide-sel-frame" src="'+(/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank")+'" scrolling="no" border="0" frameborder="0" tabindex="-1"></iframe>').prependTo(t)))},s.fn.fancybox.defaults={padding:10,margin:40,opacity:!1,modal:!1,cyclic:!1,scrolling:"auto",width:560,height:340,autoScale:!0,autoDimensions:!0,centerOnScroll:!1,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:!0,hideOnContentClick:!1,overlayShow:!0,overlayOpacity:.7,overlayColor:"#777",titleShow:!0,titlePosition:"float",titleFormat:null,titleFromAlt:!1,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:!0,showNavArrows:!0,enableEscapeButton:!0,enableKeyboardNav:!0,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}},jQuery(function(t){t.fancybox.init()})})(jQuery);
(function($){
"use strict";
window.NextGEN_TikTok={
extract_id: function(url){
if(!url) return null;
url=url.trim();
var patterns=[
/tiktok\.com\/@[^\/]+\/video\/(\d+)/i,
/tiktok\.com\/v\/(\d+)/i,
/tiktok\.com\/embed\/v2\/(\d+)/i,
/tiktok\.com\/.*[?&]v=(\d+)/i,
/\/video\/(\d+)/i,
/^(\d{15,25})$/,
];
for (var i=0; i < patterns.length; i++){
var match=url.match(patterns[i]);
if(match&&match[1]){
return match[1];
}}
if(url.match(/vm\.tiktok\.com|tiktok\.com\/t\//i)){
var idMatch=url.match(/(\d{15,25})/);
if(idMatch){
return idMatch[1];
}
return null;
}
return null;
},
create_player: function(videoUrl, containerClass, videoClass){
var container=document.createElement("div");
container.className=containerClass||"ngg-tiktok-container";
var video=document.createElement("video");
video.className=videoClass||"ngg-tiktok-video";
video.controls=true;
video.autoplay=true;
video.playsInline=true;
video.muted=true;
video.loop=true;
video.preload="auto";
video.setAttribute("playsinline", "");
video.setAttribute("webkit-playsinline", "");
video.src=videoUrl;
video.addEventListener("loadedmetadata", function (){
var naturalWidth=video.videoWidth;
var naturalHeight=video.videoHeight;
if(naturalWidth&&naturalHeight){
var container=video.closest('.ngg-tiktok-container');
var displayWidth=naturalWidth;
var displayHeight=naturalHeight;
if(container){
var fancyboxContent=container.closest('#fancybox-content');
var tbWindow=container.closest('#TB_window');
var slImage=container.closest('.sl-image');
var shWrap=container.closest('#shWrap');
if(shWrap){
var wiH=window.innerHeight||0;
var dbH=document.body.clientHeight||0;
var deH=document.documentElement ? document.documentElement.clientHeight:0;
var wHeight;
if(wiH > 0){
wHeight=((wiH - dbH) > 1&&(wiH - dbH) < 30) ? dbH:wiH;
wHeight=((wHeight - deH) > 1&&(wHeight - deH) < 30) ? deH:wHeight;
}else{
wHeight=(deH > 0) ? deH:dbH;
}
if(document.getElementsByTagName("body")[0].className.match(/admin-bar/)
&& document.getElementById('wpadminbar')!==null){
wHeight=wHeight - document.getElementById('wpadminbar').offsetHeight;
}
var shHeight=wHeight - 50;
var deW=document.documentElement ? document.documentElement.clientWidth:0;
var dbW=window.innerWidth||document.body.clientWidth;
var wWidth=(deW > 1) ? deW:dbW;
if(displayHeight > shHeight){
displayWidth=displayWidth * (shHeight / displayHeight);
displayHeight=shHeight;
}
if(displayWidth > (wWidth - 16)){
displayHeight=displayHeight * ((wWidth - 16) / displayWidth);
displayWidth=wWidth - 16;
}
video.style.width=displayWidth + "px";
video.style.height=displayHeight + "px";
video.style.maxWidth="none";
video.style.maxHeight="none";
video.setAttribute("width", displayWidth);
video.setAttribute("height", displayHeight);
}else if(fancyboxContent){
setTimeout(function(){
var contentRect=fancyboxContent.getBoundingClientRect();
if(contentRect.width > 10&&contentRect.height > 10){
var maxW=contentRect.width;
var maxH=contentRect.height;
if(displayWidth > maxW||displayHeight > maxH){
var ratio=displayWidth / displayHeight > maxW / maxH
? displayWidth / maxW
: displayHeight / maxH;
displayWidth=displayWidth / ratio;
displayHeight=displayHeight / ratio;
}
video.style.width=displayWidth + "px";
video.style.height=displayHeight + "px";
video.setAttribute("width", displayWidth);
video.setAttribute("height", displayHeight);
}}, 50);
return;
}else if(tbWindow){
var pageWidth=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;
var pageHeight=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;
var x=pageWidth - 150;
var y=pageHeight - 150;
if(displayWidth > x){
displayHeight=displayHeight * (x / displayWidth);
displayWidth=x;
if(displayHeight > y){
displayWidth=displayWidth * (y / displayHeight);
displayHeight=y;
}}else if(displayHeight > y){
displayWidth=displayWidth * (y / displayHeight);
displayHeight=y;
if(displayWidth > x){
displayHeight=displayHeight * (x / displayWidth);
displayWidth=x;
}}
video.style.width=displayWidth + "px";
video.style.height=displayHeight + "px";
video.setAttribute("width", displayWidth);
video.setAttribute("height", displayHeight);
}else if(slImage){
var widthRatio=0.8;
var heightRatio=0.9;
var windowWidth=window.innerWidth;
var windowHeight=window.innerHeight;
var maxWidth=windowWidth * widthRatio;
var maxHeight=windowHeight * heightRatio;
if(displayWidth > maxWidth||displayHeight > maxHeight){
var ratio=displayWidth / displayHeight > maxWidth / maxHeight
? displayWidth / maxWidth
: displayHeight / maxHeight;
displayWidth /=ratio;
displayHeight /=ratio;
}
video.style.width=displayWidth + "px";
video.style.height=displayHeight + "px";
video.style.maxWidth=maxWidth + "px";
video.style.maxHeight=maxHeight + "px";
}}
}});
video.addEventListener("canplay", function (){
video.play().catch(function (){});
});
container.appendChild(video);
return container;
},
handle_content: function(options){
var self=this;
var playUrl=options.playUrl;
var $targetContainer=$(options.container);
if(!playUrl) return null;
var tiktokContent=null;
var applyDimensions=function (el){
if(options.width){
var w=typeof options.width==="number" ? options.width + "px":options.width;
el.style.width=w;
var inner=el.querySelector("video, iframe, .ngg-tiktok-error-content");
if(inner) inner.style.width="100%";
}
if(options.height){
var h=typeof options.height==="number" ? options.height + "px":options.height;
el.style.height=h;
var inner=el.querySelector("video, iframe, .ngg-tiktok-error-content");
if(inner) inner.style.height="100%";
}};
if(playUrl){
var decodedUrl=playUrl;
try {
decodedUrl=decodeURIComponent(playUrl);
} catch (e){}
tiktokContent=self.create_player(decodedUrl, options.containerClass, options.videoClass);
if(tiktokContent){
applyDimensions(tiktokContent);
var video=tiktokContent.querySelector("video");
if(video){
video.onerror=function (){
$(tiktokContent).remove();
var errorMsg=self.create_error("Video failed to load", options.errorClass);
applyDimensions(errorMsg);
if(typeof options.onBeforeAppend==="function") options.onBeforeAppend(errorMsg);
$targetContainer.append(errorMsg);
};}
if(typeof options.onBeforeAppend==="function") options.onBeforeAppend(tiktokContent);
$targetContainer.append(tiktokContent);
}}else{
var errorMsg=self.create_error("Video not available", options.errorClass);
applyDimensions(errorMsg);
if(typeof options.onBeforeAppend==="function") options.onBeforeAppend(errorMsg);
$targetContainer.append(errorMsg);
tiktokContent=errorMsg;
}
return tiktokContent;
},
create_error: function(message, containerClass){
var container=document.createElement("div");
container.className=containerClass||"ngg-tiktok-error";
container.innerHTML =
'<div class="ngg-tiktok-error-content">' +
'<span class="ngg-tiktok-error-icon">&#9888;</span>' +
'<span class="ngg-tiktok-error-text">' +
(message||"Video failed to load") +
"</span>" +
"</div>";
return container;
}};})(jQuery);
jQuery(function($){
var nextgen_fancybox_init=function(){
var selector=nextgen_lightbox_filter_selector($, $(".ngg-fancybox"));
window.addEventListener("click",
e=> {
let $target=$(e.target);
var $anchor=$target.is('a') ? $target:$target.parents('a').first();
if(!$anchor.is(selector)&&!$target.is(selector)){
return;
}
if($anchor.attr('data-dribbble-direct')==='true'){
return;
}
var imageId=$anchor.attr('data-image-id');
var isTikTokImage=false;
var tiktokData=null;
if(imageId&&window.ngg_tiktok_images&&window.ngg_tiktok_images[imageId]){
isTikTokImage=true;
tiktokData=window.ngg_tiktok_images[imageId];
}else if($anchor.attr('data-tiktok-play-url')||$anchor.attr('data-tiktok-share-url')){
isTikTokImage=true;
tiktokData={
playUrl: $anchor.attr('data-tiktok-play-url')||'',
shareUrl: $anchor.attr('data-tiktok-share-url')||'',
embedUrl: $anchor.attr('data-tiktok-embed-url')||''
};}
if(isTikTokImage&&tiktokData){
var $galleryContainer=$anchor.closest('[data-gallery-id]');
var galleryId=null;
if($galleryContainer.length){
galleryId=$galleryContainer.attr('data-gallery-id')||$galleryContainer.data('gallery-id');
}else{
$galleryContainer=$anchor.closest('.ngg-galleryoverview, .ngg-imagebrowser, .ngg-slideshow');
if($galleryContainer.length){
galleryId=$galleryContainer.attr('data-gallery-id') ||
$galleryContainer.data('gallery-id') ||
$galleryContainer.attr('data-nextgen-gallery-id') ||
$galleryContainer.data('nextgen-gallery-id');
}}
if(galleryId){
galleryId=String(galleryId);
}
var tiktokSettings={};
if(window.NggTikTokVideo&&typeof window.NggTikTokVideo.getTikTokSettings==='function'){
tiktokSettings=window.NggTikTokVideo.getTikTokSettings(galleryId);
}else{
if(window.ngg_tiktok_gallery_settings){
if(galleryId&&window.ngg_tiktok_gallery_settings['gallery_' + galleryId]){
tiktokSettings=window.ngg_tiktok_gallery_settings['gallery_' + galleryId];
}else if(window.ngg_tiktok_gallery_settings.global){
tiktokSettings=window.ngg_tiktok_gallery_settings.global;
}}
}
var linkSetting=String(tiktokSettings.link||'0');
if(linkSetting==='1'||linkSetting==='2'){
return;
}}
e.preventDefault();
$(selector).fancybox({
titlePosition: 'inside',
onComplete: function(selectedArray, selectedIndex, selectedOpts){
$("#fancybox-wrap").css("z-index", 10000);
var element=selectedArray[selectedIndex];
var $element=$(element);
var playUrl=$element.data("tiktok-play-url");
var shareUrl=$element.data("tiktok-share-url");
var videoUrl=$element.attr("data-video-url");
if(playUrl||shareUrl){
$("#fancybox-wrap").addClass("ngg-tiktok-mode");
NextGEN_TikTok.handle_content({
playUrl: playUrl,
shareUrl: shareUrl,
container: $("#fancybox-content"),
onBeforeAppend: function (){
$("#fancybox-img").hide();
},
});
}
else if(videoUrl&&window.NextGEN_Video&&window.NextGEN_Video.detect_platform(videoUrl)){
$("#fancybox-wrap").addClass("ngg-video-mode");
$("#fancybox-content .ngg-video-container, #fancybox-content .ngg-video-error").remove();
var galleryId=null;
var $galleryContainer=$element.closest('[data-gallery-id]');
if($galleryContainer.length){
galleryId=$galleryContainer.attr('data-gallery-id')||$galleryContainer.data('gallery-id');
}
var videoSettings={};
if(window.ngg_video_gallery_settings){
if(galleryId&&window.ngg_video_gallery_settings['gallery_' + galleryId]){
videoSettings=window.ngg_video_gallery_settings['gallery_' + galleryId];
}}
window.NextGEN_Video.handle_content({
videoUrl: videoUrl,
container: $("#fancybox-content")[0],
settings: videoSettings,
containerClass: "ngg-video-container",
videoClass: "ngg-video-player",
errorClass: "ngg-video-error",
onBeforeAppend: function (){
$("#fancybox-img").hide();
},
});
}},
onCleanup: function (){
$("#fancybox-wrap").removeClass("ngg-tiktok-mode ngg-video-mode");
$("#fancybox-content .ngg-tiktok-container, #fancybox-content .ngg-tiktok-error").remove();
$("#fancybox-content .ngg-video-container, #fancybox-content .ngg-video-error").remove();
},
});
$target.trigger('click.fb');
e.stopPropagation();
},
true
)
};
$(window).on('refreshed', nextgen_fancybox_init);
nextgen_fancybox_init();
});
(()=>{var e={437:()=>{(()=>{const e={analytics:["statistics","statistics-anonymous"],targeting:["marketing"],preferences:["preferences"]},t=Object.keys(e),n=()=>{if(!("wp_set_consent"in window))return;const{wp_set_consent:n=(e,t)=>{}}=window;n("functional","allow"),t.forEach((t=>{if(!(t in e))return;const i=pressidiumCookieConsent.allowedCategory(t)?"allow":"deny";e[t].forEach((e=>{n(e,i)}))}))};window.wp_consent_type="optin";const i=new CustomEvent("wp_consent_type_defined");document.dispatchEvent(i),window.addEventListener("pressidium-cookie-consent-accepted",n),window.addEventListener("pressidium-cookie-consent-changed",n)})()},470:()=>{!function(){"use strict";var e="initCookieConsent";"undefined"!=typeof window&&"function"!=typeof window[e]&&(window[e]=function(e){var t,n,i,o,a,s,r,c,d,l,u,p,h,f,g,m,_,b,v,y,C,k,w,A,S,x,L,E,N,T,z,O,M,j,q,H={mode:"opt-in",current_lang:"en",auto_language:null,autorun:!0,page_scripts:!0,hide_from_bots:!0,cookie_name:"cc_cookie",cookie_expiration:182,cookie_domain:location.hostname,cookie_path:"/",cookie_same_site:"Lax",use_rfc_cookie:!1,autoclear_cookies:!0,revision:0,script_selector:"data-cookiecategory"},I={},D={},Z=null,R=!0,J=!1,P=!1,G=!1,U=!1,F=!0,X=[],Y=!1,B=[],K=[],$=[],V=!1,Q=[],W=[],ee=[],te=[],ne=[],ie=document.documentElement,oe=function(e){ue("CookieConsent [CONFIG]: received_config_settings ",t=e),"number"==typeof t.cookie_expiration&&(H.cookie_expiration=t.cookie_expiration),"number"==typeof t.cookie_necessary_only_expiration&&(H.cookie_necessary_only_expiration=t.cookie_necessary_only_expiration),"boolean"==typeof t.autorun&&(H.autorun=t.autorun),"string"==typeof t.cookie_domain&&(H.cookie_domain=t.cookie_domain),"string"==typeof t.cookie_same_site&&(H.cookie_same_site=t.cookie_same_site),"string"==typeof t.cookie_path&&(H.cookie_path=t.cookie_path),"string"==typeof t.cookie_name&&(H.cookie_name=t.cookie_name),"function"==typeof t.onAccept&&(u=t.onAccept),"function"==typeof t.onFirstAction&&(h=t.onFirstAction),"function"==typeof t.onChange&&(p=t.onChange),"opt-out"===t.mode&&(H.mode="opt-out"),"number"==typeof t.revision&&(t.revision>-1&&(H.revision=t.revision),U=!0),"boolean"==typeof t.autoclear_cookies&&(H.autoclear_cookies=t.autoclear_cookies),!0===t.use_rfc_cookie&&(H.use_rfc_cookie=!0),"boolean"==typeof t.hide_from_bots&&(H.hide_from_bots=t.hide_from_bots),H.hide_from_bots&&(V=navigator&&(navigator.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(navigator.userAgent)||navigator.webdriver)),H.page_scripts=!0===t.page_scripts,"browser"===t.auto_language||!0===t.auto_language?H.auto_language="browser":"document"===t.auto_language&&(H.auto_language="document"),ue("CookieConsent [LANG]: auto_language strategy is '"+H.auto_language+"'"),H.current_lang=he(t.languages,t.current_lang)},ae=function(e){for(var t="accept-",n=r("c-settings"),i=r(t+"all"),o=r(t+"necessary"),a=r(t+"custom"),s=0;s<n.length;s++)n[s].setAttribute("aria-haspopup","dialog"),Ce(n[s],"click",(function(e){e.preventDefault(),I.showSettings(0)}));for(s=0;s<i.length;s++)Ce(i[s],"click",(function(e){c(e,"all")}));for(s=0;s<a.length;s++)Ce(a[s],"click",(function(e){c(e)}));for(s=0;s<o.length;s++)Ce(o[s],"click",(function(e){c(e,[])}));function r(t){return(e||document).querySelectorAll('[data-cc="'+t+'"]')}function c(e,t){e.preventDefault(),I.accept(t),I.hideSettings(),I.hide()}},se=function(e,t){return t.hasOwnProperty(e)?e:ke(t).length>0?t.hasOwnProperty(H.current_lang)?H.current_lang:ke(t)[0]:void 0},re=function(e){if(!0===t.force_consent&&we(ie,"force--consent"),!v){v=pe("div");var n=pe("div"),i=pe("div");v.id="cm",n.id="c-inr-i",i.id="cm-ov",v.tabIndex=-1,v.setAttribute("role","dialog"),v.setAttribute("aria-modal","true"),v.setAttribute("aria-hidden","false"),v.setAttribute("aria-labelledby","c-ttl"),v.setAttribute("aria-describedby","c-txt"),b.appendChild(v),b.appendChild(i),v.style.visibility=i.style.visibility="hidden",i.style.opacity=0}var o=t.languages[e].consent_modal.title;o&&(y||((y=pe("div")).id="c-ttl",y.setAttribute("role","heading"),y.setAttribute("aria-level","2"),n.appendChild(y)),y.innerHTML=o);var a=t.languages[e].consent_modal.description;U&&(a=F?a.replace("{{revision_message}}",""):a.replace("{{revision_message}}",t.languages[e].consent_modal.revision_message||"")),C||((C=pe("div")).id="c-txt",n.appendChild(C)),C.innerHTML=a;var s,r=t.languages[e].consent_modal.primary_btn,c=t.languages[e].consent_modal.secondary_btn;r&&(k||((k=pe("button")).id="c-p-bn",k.className="c-bn",k.appendChild(xe(1)),"accept_all"===r.role&&(s="all"),Ce(k,"click",(function(){I.hide(),ue("CookieConsent [ACCEPT]: cookie_consent was accepted!"),I.accept(s)}))),k.firstElementChild.innerHTML=t.languages[e].consent_modal.primary_btn.text),c&&(w||((w=pe("button")).id="c-s-bn",w.className="c-bn c_link",w.appendChild(xe(1)),"accept_necessary"===c.role?Ce(w,"click",(function(){I.hide(),I.accept([])})):Ce(w,"click",(function(){I.showSettings(0)}))),w.firstElementChild.innerHTML=t.languages[e].consent_modal.secondary_btn.text);var d=t.gui_options;S||((S=pe("div")).id="c-inr",S.appendChild(n)),A||((A=pe("div")).id="c-bns",d&&d.consent_modal&&!0===d.consent_modal.swap_buttons?(c&&A.appendChild(w),r&&A.appendChild(k),A.className="swap"):(r&&A.appendChild(k),c&&A.appendChild(w)),(r||c)&&S.appendChild(A),v.appendChild(S)),J=!0,ae(S)},ce=function(e){if(x)(z=pe("div")).id="s-bl";else{(x=pe("div")).tabIndex=-1;var n=pe("div"),i=pe("div"),o=pe("div");L=pe("div"),E=pe("div");var a=pe("div");(N=pe("button")).appendChild(xe(2));var s=pe("div");T=pe("div");var r=pe("div"),c=!1;Ce(x,"mouseup",(function(e){!G||c||L.contains(e.target)||I.hideSettings()})),Ce(x,"mousedown",(function(e){G&&(c=L.contains(e.target))})),x.id="s-cnt",n.id="c-vln",o.id="c-s-in",i.id="cs",E.id="s-ttl",L.id="s-inr",a.id="s-hdr",T.id="s-bl",N.id="s-c-bn",r.id="cs-ov",s.id="s-c-bnc",N.className="c-bn",x.setAttribute("role","dialog"),x.setAttribute("aria-modal","true"),x.setAttribute("aria-hidden","true"),x.setAttribute("aria-labelledby","s-ttl"),E.setAttribute("role","heading"),x.style.visibility=r.style.visibility="hidden",r.style.opacity=0,s.appendChild(N),Ce(document,"keydown",(function(e){27===e.keyCode&&G&&I.hideSettings()}),!0),Ce(N,"click",(function(){I.hideSettings()}))}var u=t.languages[e].settings_modal;N.setAttribute("aria-label",u.close_btn_label||"Close"),l=u.blocks,d=u.cookie_table_headers;var p=u.cookie_table_caption,h=l.length;E.innerHTML=u.title;for(var f=0;f<h;++f){var g=l[f].title,m=l[f].description,_=l[f].toggle,v=l[f].cookie_table,y=!0===t.remove_cookie_tables,C=!!m||!y&&!!v,k=pe("div"),w=pe("div");if(m){var A=pe("div");A.className="p",A.insertAdjacentHTML("beforeend",m)}var S=pe("div");if(S.className="title",k.className="c-bl",w.className="desc",void 0!==_){var H="c-ac-"+f,Z=pe(C?"button":"div"),J=pe("label"),P=pe("input"),U=pe("span"),F=pe("span"),X=pe("span"),Y=pe("span");Z.className=C?"b-tl exp":"b-tl",J.className="b-tg",P.className="c-tgl",X.className="on-i",Y.className="off-i",U.className="c-tg",F.className="t-lb",C&&(Z.setAttribute("aria-expanded","false"),Z.setAttribute("aria-controls",H)),P.type="checkbox",U.setAttribute("aria-hidden","true");var B=_.value;P.value=B,F.textContent=g,Z.insertAdjacentHTML("beforeend",g),S.appendChild(Z),U.appendChild(X),U.appendChild(Y),R?_.enabled?(P.checked=!0,!z&&ee.push(!0),_.enabled&&!z&&$.push(B)):!z&&ee.push(!1):le(D.categories,B)>-1?(P.checked=!0,!z&&ee.push(!0)):!z&&ee.push(!1),!z&&te.push(B),_.readonly&&(P.disabled=!0,we(U,"c-ro"),!z&&ne.push(B)),we(w,"b-acc"),we(S,"b-bn"),we(k,"b-ex"),w.id=H,w.setAttribute("aria-hidden","true"),J.appendChild(P),J.appendChild(U),J.appendChild(F),S.appendChild(J),C&&function(e,t,n){Ce(Z,"click",(function(){Se(t,"act")?(Ae(t,"act"),n.setAttribute("aria-expanded","false"),e.setAttribute("aria-hidden","true")):(we(t,"act"),n.setAttribute("aria-expanded","true"),e.setAttribute("aria-hidden","false"))}),!1)}(w,k,Z)}else if(g){var K=pe("div");K.className="b-tl",K.setAttribute("role","heading"),K.setAttribute("aria-level","3"),K.insertAdjacentHTML("beforeend",g),S.appendChild(K)}if(g&&k.appendChild(S),m&&w.appendChild(A),!y&&void 0!==v){for(var V=document.createDocumentFragment(),Q=0;Q<d.length;++Q){var W=pe("th"),ie=d[Q];if(W.setAttribute("scope","col"),ie){var oe=ie&&ke(ie)[0];W.textContent=d[Q][oe],V.appendChild(W)}}var ae=pe("tr");ae.appendChild(V);var se=pe("thead");se.appendChild(ae);var re=pe("table");if(p){var ce=pe("caption");ce.innerHTML=p,re.appendChild(ce)}re.appendChild(se);for(var de=document.createDocumentFragment(),ue=0;ue<v.length;ue++){for(var he=pe("tr"),fe=0;fe<d.length;++fe)if(ie=d[fe]){oe=ke(ie)[0];var ge=pe("td");ge.insertAdjacentHTML("beforeend",v[ue][oe]),ge.setAttribute("data-column",ie[oe]),he.appendChild(ge)}de.appendChild(he)}var me=pe("tbody");me.appendChild(de),re.appendChild(me),w.appendChild(re)}(_&&g||!_&&(g||m))&&(k.appendChild(w),z?z.appendChild(k):T.appendChild(k))}O||((O=pe("div")).id="s-bns"),j||((j=pe("button")).id="s-all-bn",j.className="c-bn",O.appendChild(j),Ce(j,"click",(function(){I.accept("all"),I.hideSettings(),I.hide()}))),j.innerHTML=u.accept_all_btn;var _e=u.reject_all_btn;if(_e&&(q||((q=pe("button")).id="s-rall-bn",q.className="c-bn",Ce(q,"click",(function(){I.accept([]),I.hideSettings(),I.hide()})),L.className="bns-t",O.appendChild(q)),q.innerHTML=_e),M||((M=pe("button")).id="s-sv-bn",M.className="c-bn",O.appendChild(M),Ce(M,"click",(function(){I.accept(),I.hideSettings(),I.hide()}))),M.innerHTML=u.save_settings_btn,z)return L.replaceChild(z,T),void(T=z);a.appendChild(E),a.appendChild(s),L.appendChild(a),L.appendChild(T),L.appendChild(O),o.appendChild(L),i.appendChild(o),n.appendChild(i),x.appendChild(n),b.appendChild(x),b.appendChild(r)};I.updateLanguage=function(e,n){if("string"==typeof e){var i=se(e,t.languages);return(i!==H.current_lang||!0===n)&&(H.current_lang=i,J&&re(i),ce(i),ue("CookieConsent [LANGUAGE]: curr_lang: '"+i+"'"),!0)}};var de=function(e){var t=l.length,n=-1;Y=!1;var i=ve("","all"),o=[H.cookie_domain,"."+H.cookie_domain];if("www."===H.cookie_domain.slice(0,4)){var a=H.cookie_domain.substr(4);o.push(a),o.push("."+a)}for(var s=0;s<t;s++){var r=l[s];if(r.hasOwnProperty("toggle")){var c=le(X,r.toggle.value)>-1;if(!ee[++n]&&r.hasOwnProperty("cookie_table")&&(e||c)){var u=r.cookie_table,p=ke(d[0])[0],h=u.length;"on_disable"===r.toggle.reload&&c&&(Y=!0);for(var f=0;f<h;f++){var g=o,m=u[f],_=[],b=m[p],v=m.is_regex||!1,y=m.domain||null,C=m.path||!1;if(y&&(g=[y,"."+y]),v)for(var k=0;k<i.length;k++)i[k].match(b)&&_.push(i[k]);else{var w=le(i,b);w>-1&&_.push(i[w])}ue("CookieConsent [AUTOCLEAR]: search cookie: '"+b+"', found:",_),_.length>0&&(ye(_,C,g),"on_clear"===r.toggle.reload&&(Y=!0))}}}}},le=function(e,t){return e.indexOf(t)},ue=function(e,t,n){},pe=function(e){var t=document.createElement(e);return"button"===e&&t.setAttribute("type",e),t},he=function(e,t){return"browser"===H.auto_language?se(fe(),e):"document"===H.auto_language?se(document.documentElement.lang,e):"string"==typeof t?H.current_lang=se(t,e):(ue("CookieConsent [LANG]: setting current_lang='"+H.current_lang+"'"),H.current_lang)},fe=function(){var e=navigator.language||navigator.browserLanguage;return e.length>2&&(e=e[0]+e[1]),ue("CookieConsent [LANG]: detected_browser_lang='"+e+"'"),e.toLowerCase()};I.allowedCategory=function(e){if(R&&"opt-in"!==H.mode)t=$;else var t=JSON.parse(ve(H.cookie_name,"one",!0)||"{}").categories||[];return le(t,e)>-1},I.run=function(t){if(document.getElementById("cc_div"))ue("CookieConsent [NOTICE]: cookie consent already attached to body!");else{if(oe(t),V)return;D=JSON.parse(ve(H.cookie_name,"one",!0)||"{}");var r=void 0!==(o=D.consent_uuid);if((n=D.consent_date)&&(n=new Date(n)),(i=D.last_consent_update)&&(i=new Date(i)),Z=void 0!==D.data?D.data:null,U&&D.revision!==H.revision&&(F=!1),J=R=!(r&&F&&n&&i&&o),function(){(_=pe("div")).id="cc--main",_.style.position="fixed",_.innerHTML='<div id="cc_div" class="cc_div"></div>',b=_.children[0];var t=H.current_lang;J&&re(t),ce(t),(e||document.body).appendChild(_)}(),function(){var e=["[href]","button","input","details",'[tabindex="0"]'];function t(t,n){try{var i=t.querySelectorAll(e.join(':not([tabindex="-1"]), '))}catch(n){return t.querySelectorAll(e.join(", "))}n[0]=i[0],n[1]=i[i.length-1]}t(L,W),J&&t(v,Q)}(),function(e){if("object"==typeof e){var t=e.consent_modal,n=e.settings_modal;J&&t&&i(v,["box","bar","cloud"],["top","middle","bottom"],["zoom","slide"],t.layout,t.position,t.transition),n&&i(x,["bar"],["left","right"],["zoom","slide"],n.layout,n.position,n.transition)}function i(e,t,n,i,o,a,s){if(a=a&&a.split(" ")||[],le(t,o)>-1&&(we(e,o),("bar"!==o||"middle"!==a[0])&&le(n,a[0])>-1))for(var r=0;r<a.length;r++)we(e,a[r]);le(i,s)>-1&&we(e,s)}}(t.gui_options),ae(),H.autorun&&J&&I.show(t.delay||0),setTimeout((function(){we(_,"c--anim")}),30),setTimeout((function(){Ce(document,"keydown",(function(e){if("Tab"===e.key&&(P||G)&&a){var t=Ne();e.shiftKey?t!==a[0]&&s.contains(t)||(e.preventDefault(),Le(a[1])):t!==a[1]&&s.contains(t)||(e.preventDefault(),Le(a[0]))}}))}),100),R)"opt-out"===H.mode&&(ue("CookieConsent [CONFIG] mode='"+H.mode+"', default enabled categories:",$),ge()),ue("CookieConsent [NOTICE]: ask for consent!");else{var c="boolean"==typeof D.rfc_cookie;(!c||c&&D.rfc_cookie!==H.use_rfc_cookie)&&(D.rfc_cookie=H.use_rfc_cookie,be(H.cookie_name,JSON.stringify(D))),f=_e(me()),ge(),"function"==typeof u&&u(D),ue("CookieConsent [NOTICE]: consent already given!",D)}}};var ge=function(){if(H.page_scripts){var e=D.categories||[];R&&"opt-out"===H.mode&&(e=$);var t=document.querySelectorAll("script["+H.script_selector+"]"),n=function(t,i){if(i<t.length){var o=t[i],a=o.getAttribute(H.script_selector);if(le(e,a)>-1){o.type=o.getAttribute("data-type")||"text/javascript",o.removeAttribute(H.script_selector);var s=o.getAttribute("data-src");s&&o.removeAttribute("data-src");var r=pe("script");if(r.textContent=o.innerHTML,function(e,t){for(var n=t.attributes,i=n.length,o=0;o<i;o++){var a=n[o].nodeName;e.setAttribute(a,t[a]||t.getAttribute(a))}}(r,o),s?r.src=s:s=o.src,s&&(r.readyState?r.onreadystatechange=function(){"loaded"!==r.readyState&&"complete"!==r.readyState||(r.onreadystatechange=null,n(t,++i))}:r.onload=function(){r.onload=null,n(t,++i)}),o.parentNode.replaceChild(r,o),s)return}n(t,++i)}};n(t,0)}};I.set=function(e,t){return"data"===e&&function(e,t){var n=!1;if("update"===t){var i=typeof(Z=I.get("data"))==typeof e;if(i&&"object"==typeof Z)for(var o in!Z&&(Z={}),e)Z[o]!==e[o]&&(Z[o]=e[o],n=!0);else!i&&Z||Z===e||(Z=e,n=!0)}else Z=e,n=!0;return n&&(D.data=Z,be(H.cookie_name,JSON.stringify(D))),n}(t.value,t.mode)},I.get=function(e,t){return JSON.parse(ve(t||H.cookie_name,"one",!0)||"{}")[e]},I.getConfig=function(e){return H[e]||t[e]};var me=function(){return B=D.categories||[],K=te.filter((function(e){return-1===le(B,e)})),{accepted:B,rejected:K}},_e=function(e){var t="custom",n=ne.length;return e.accepted.length===te.length?t="all":e.accepted.length===n&&(t="necessary"),t};I.getUserPreferences=function(){var e=me();return{accept_type:_e(e),accepted_categories:e.accepted,rejected_categories:e.rejected}},I.loadScript=function(e,t,n){var i="function"==typeof t;if(document.querySelector('script[src="'+e+'"]'))i&&t();else{var o=pe("script");if(n&&n.length>0)for(var a=0;a<n.length;++a)n[a]&&o.setAttribute(n[a].name,n[a].value);i&&(o.onload=t),o.src=e,document.head.appendChild(o)}},I.updateScripts=function(){ge()},I.show=function(e,t){!0===t&&re(H.current_lang),J&&(g=Ne(),a=Q,s=v,P=!0,v.removeAttribute("aria-hidden"),setTimeout((function(){we(ie,"show--consent"),ue("CookieConsent [MODAL]: show consent_modal")}),e>0?e:t?30:0))},I.hide=function(){J&&(P=!1,Le(r),v.setAttribute("aria-hidden","true"),Ae(ie,"show--consent"),Le(g),g=null,ue("CookieConsent [MODAL]: hide"))},I.showSettings=function(e){G=!0,x.removeAttribute("aria-hidden"),P?m=Ne():g=Ne(),s=x,a=W,setTimeout((function(){we(ie,"show--settings"),ue("CookieConsent [SETTINGS]: show settings_modal")}),e>0?e:0)},I.hideSettings=function(){G=!1,Ee(),Le(c),x.setAttribute("aria-hidden","true"),Ae(ie,"show--settings"),P?(Le(m),m=null,s=v,a=Q):(Le(g),g=null),ue("CookieConsent [SETTINGS]: hide settings_modal")},I.accept=function(e,t){var a=e||void 0,s=t||[],r=[];if(a)if("object"==typeof a&&"number"==typeof a.length)for(var c=0;c<a.length;c++)-1!==le(te,a[c])&&r.push(a[c]);else"string"==typeof a&&("all"===a?r=te.slice():-1!==le(te,a)&&r.push(a));else r=function(){for(var e=document.querySelectorAll(".c-tgl")||[],t=[],n=0;n<e.length;n++)e[n].checked&&t.push(e[n].value);return t}();if(s.length>=1)for(c=0;c<s.length;c++)r=r.filter((function(e){return e!==s[c]}));for(c=0;c<te.length;c++)!0===ne.includes(te[c])&&-1===le(r,te[c])&&r.push(te[c]);!function(e){X=[];var t=x.querySelectorAll(".c-tgl")||[];if(t.length>0)for(var a=0;a<t.length;a++)-1!==le(e,te[a])?(t[a].checked=!0,ee[a]||(X.push(te[a]),ee[a]=!0)):(t[a].checked=!1,ee[a]&&(X.push(te[a]),ee[a]=!1));!R&&H.autoclear_cookies&&X.length>0&&de(),n||(n=new Date),o||(o=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(e){try{return(e^(window.crypto||window.msCrypto).getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)}catch(e){return""}}))),D={categories:e,level:e,revision:H.revision,data:Z,rfc_cookie:H.use_rfc_cookie,consent_date:n.toISOString(),consent_uuid:o},(R||X.length>0)&&(F=!0,i=i?new Date:n,D.last_consent_update=i.toISOString(),f=_e(me()),be(H.cookie_name,JSON.stringify(D)),ge()),R&&(H.autoclear_cookies&&de(!0),"function"==typeof h&&h(I.getUserPreferences(),D),"function"==typeof u&&u(D),R=!1,"opt-in"===H.mode)||("function"==typeof p&&X.length>0&&p(D,X),Y&&location.reload())}(r)},I.eraseCookies=function(e,t,n){var i=[],o=n?[n,"."+n]:[H.cookie_domain,"."+H.cookie_domain];if("object"==typeof e&&e.length>0)for(var a=0;a<e.length;a++)this.validCookie(e[a])&&i.push(e[a]);else this.validCookie(e)&&i.push(e);ye(i,t,o)};var be=function(e,t){var n=H.cookie_expiration;"number"==typeof H.cookie_necessary_only_expiration&&"necessary"===f&&(n=H.cookie_necessary_only_expiration),t=H.use_rfc_cookie?encodeURIComponent(t):t;var i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3);var o=e+"="+(t||"")+"; expires="+i.toUTCString()+"; Path="+H.cookie_path+";";o+=" SameSite="+H.cookie_same_site+";",location.hostname.indexOf(".")>-1&&H.cookie_domain&&(o+=" Domain="+H.cookie_domain+";"),"https:"===location.protocol&&(o+=" Secure;"),document.cookie=o,ue("CookieConsent [SET_COOKIE]: '"+e+"' expires after "+n+" day(s)")},ve=function(e,t,n){var i;if("one"===t){if((i=(i=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)"))?n?i.pop():e:"")&&e===H.cookie_name){try{i=JSON.parse(i)}catch(e){try{i=JSON.parse(decodeURIComponent(i))}catch(e){i={}}}i=JSON.stringify(i)}}else if("all"===t){var o=document.cookie.split(/;\s*/);i=[];for(var a=0;a<o.length;a++)i.push(o[a].split("=")[0])}return i},ye=function(e,t,n){for(var i=t||"/",o=0;o<e.length;o++){for(var a=0;a<n.length;a++)document.cookie=e[o]+"=; path="+i+(0==n[a].indexOf(".")?"; domain="+n[a]:"")+"; Expires=Thu, 01 Jan 1970 00:00:01 GMT;";ue("CookieConsent [AUTOCLEAR]: deleting cookie: '"+e[o]+"' path: '"+i+"' domain:",n)}};I.validCookie=function(e){return""!==ve(e,"one",!0)},I.validConsent=function(){return!R};var Ce=function(e,t,n,i){e.addEventListener(t,n,!0===i&&{passive:!0})},ke=function(e){if("object"==typeof e)return Object.keys(e)},we=function(e,t){e.classList.add(t)},Ae=function(e,t){e.classList.remove(t)},Se=function(e,t){return e.classList.contains(t)},xe=function(e){var t=pe("span");return t.tabIndex=-1,1===e?r=t:c=t,t},Le=function(e){e&&e instanceof HTMLElement&&e.focus()},Ee=function(){for(var e=L.querySelectorAll(".c-tgl"),t=0;t<e.length;t++){var n=e[t].value,i=ne.includes(n);e[t].checked=i||I.allowedCategory(n)}},Ne=function(){return document.activeElement};return I})}()}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var a=t[i]={exports:{}};return e[i](a,a.exports,n),a.exports}(()=>{"use strict";n(470);const e=document.createElement("template");e.innerHTML='\n  <style>\n    :host {\n      display: block;\n      \n      position: fixed;\n      bottom: 1rem;\n      \n      z-index: 1;\n    }\n    \n    :host(.left){\n      left: 1rem;\n    }\n\n    :host(.right){\n      right: 1rem;\n    }\n\n    .button {\n      border-radius: 100%;\n      z-index: 1000;\n      cursor: pointer;\n      border: none;\n      box-shadow: 0 0.3rem 0.6rem rgba(2, 2, 3, 0.2);\n      background-color: var(--cc-btn-floating-bg, #3859d0);\n      transition: opacity 450ms, transform 450ms;\n    }\n    \n    .button:hover {\n      background-color: var(--cc-btn-floating-hover-bg, #1d2e38);\n    }\n    \n    .button.sm {\n      width: 3rem;\n      height: 3rem;\n      padding: 0.5rem;\n    }\n    \n    .button.lg {\n      width: 4rem;\n      height: 4rem;\n      padding: 0.7rem;\n    }\n    \n    .button.hidden {\n      visibility: hidden;\n    }\n    \n    .button.visible {\n      visibility: visible;\n    }\n    \n    .button.hidden.fade-in {\n      opacity: 0;\n    }\n    \n    .button.visible.fade-in {\n      opacity: 1;\n    }\n    \n    .button.hidden.fade-in-up {\n      transform: translateY(0.7rem);\n      opacity: 0;\n    }\n    \n    .button.visible.fade-in-up {\n      transform: translateY(0);\n      opacity: 1;\n    }\n    \n    .button.hidden.fade-in-zoom {\n      transform: scale(0);\n      opacity: 0;\n    }\n    \n    .button.visible.fade-in-zoom {\n      transform: scale(1);\n      opacity: 1;\n    }\n    \n    .button.hidden.zoom-in {\n      transform: scale(0);\n    }\n    \n    .button.visible.zoom-in {\n      transform: scale(1);\n    }\n    \n    :host(.left) .button.hidden.slide-in-horizontal.sm {\n      transform: translateX(-4rem);\n    }\n    \n    :host(.left) .button.hidden.slide-in-horizontal.lg {\n      transform: translateX(-5rem);\n    }\n    \n    :host(.right) .button.hidden.slide-in-horizontal.sm {\n      transform: translateX(4rem);\n    }\n    \n    :host(.right) .button.hidden.slide-in-horizontal.lg {\n      transform: translateX(5rem);\n    }\n\n    .button.visible.slide-in-horizontal {\n      transform: translateX(0);\n    }\n    \n    .button.hidden.slide-in-vertical.sm {\n      transform: translateY(4rem);\n    }\n    \n    .button.hidden.slide-in-vertical.lg {\n      transform: translateY(5rem);\n    }\n\n    .button.visible.slide-in-vertical {\n      transform: translateY(0);\n    }\n    \n    [name="icon"] {\n      fill: var(--cc-btn-floating-icon, #f9faff);\n    }\n    \n    [name="icon"]:hover {\n      fill: var(--cc-btn-floating-hover-icon, #f9faff);\n    }\n    \n    @media (prefers-reduced-motion){\n      .button {\n        transition: none;\n      }\n    }\n  </style>\n  <button class="button" type="button" aria-label="Cookie settings">\n    <slot name="icon"></slot>\n  </button>\n';class t extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(e.content.cloneNode(!0)),this._size=this.getAttribute("size")||"sm",this._position=this.getAttribute("position")||"left",this._status=this.getAttribute("status")||"hidden",this._label=this.getAttribute("label")||"Cookie settings",this._transition=this.getAttribute("transition")||"fade-in-up",this._initIconSlot()}get observedAttributes(){return["size","position","label","status","transition"]}get size(){return this._size||""}set size(e){this._size=e,this._update(),this.setAttribute("size",this._size)}get position(){return this._position||""}set position(e){this._position=e,this._update(),this.setAttribute("position",this._position)}get label(){return this._label||""}set label(e){this._label=e,this._update(),this.setAttribute("label",this._label)}get status(){return this._status||""}set status(e){this._status=e,this._update(),this.setAttribute("status",this._status)}get transition(){return this._transition||""}set transition(e){this._transition=e,this._update(),this.setAttribute("transition",this._transition)}connectedCallback(){this.shadowRoot.querySelector(".button").addEventListener("click",(()=>{window.pressidiumCookieConsent.showSettings(0)})),this._update()}attributeChangedCallback(e,t,n){switch(e){case"size":this._size=n;break;case"position":this._position=n;break;case"label":this._label=n;break;case"status":this._status=n;break;case"transition":this._transition=n}}_updateSize(){const e=this.shadowRoot.querySelector(".button");if(!e)return;const t=["sm","lg"];t.forEach((t=>e.classList.remove(t))),e.classList.add(t.includes(this._size)?this._size:"sm")}_updatePosition(){const e=["left","right"];e.forEach((e=>this.classList.remove(e))),this.classList.add(e.includes(this._position)?this._position:"left")}_updateTransition(){const e=this.shadowRoot.querySelector(".button");if(!e)return;const t=["fade-in","fade-in-up","fade-in-zoom","zoom-in","slide-in-horizontal","slide-in-vertical"];t.forEach((t=>e.classList.remove(t))),t.includes(this._transition)&&e.classList.add(this._transition)}_updateLabel(){this.shadowRoot.querySelector(".button").setAttribute("aria-label",this._label)}_updateStatus(){const e=this.shadowRoot.querySelector(".button");if(!e)return;const t=["visible","hidden"];t.forEach((t=>e.classList.remove(t))),e.classList.add(t.includes(this._status)?this._status:"hidden")}_initIconSlot(){const e=this.shadowRoot.querySelector('slot[name="icon"]');e.addEventListener("slotchange",(()=>{const[t]=e.assignedNodes();t.setAttribute("aria-hidden","true"),t.setAttribute("focusable","false")}))}_update(){this._updateSize(),this._updatePosition(),this._updateTransition(),this._updateLabel(),this._updateStatus()}}const i=t;customElements.define("pressidium-floating-button",i),n(437),((e,t)=>{if("function"!=typeof initCookieConsent)return;if(void 0===e)return;if(!("settings"in e))return;const n={ad_storage:"denied",ad_user_data:"denied",ad_personalization:"denied",analytics_storage:"denied",functionality_storage:"denied",personalization_storage:"denied",security_storage:"denied"},{settings:i,additional_options:o}=e,{record_consents:a,hide_empty_categories:s,floating_button:r,gcm:c}=o,d=()=>{r.enabled&&(document.querySelector("pressidium-floating-button").status="visible")},l=()=>{r.enabled&&(document.querySelector("pressidium-floating-button").status="hidden")},u=(e={})=>{const{enabled:t=!1,size:n="sm",position:o="left",icon:a="pressidium",transition:s=""}=e;if(!t)return;const r=((e=null)=>{if(!window.pressidiumCookieConsent)return{};const t=e||window.pressidiumCookieConsent.getConfig("current_lang");return i.languages[t]})(),c=document.querySelector("pressidium-floating-button");c&&c.remove();const d=document.createElement("pressidium-floating-button");d.size=n,d.label=r.settings_modal.title,d.position=o,d.status="hidden",d.transition=s,d.innerHTML="pressidium"===a?'\n          <svg slot="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256">\n            <path d="M158.7,140.72c-2.72,2.24-7.25,6.4-9.16,11.2a32.62,32.62,0,0,0-1.86,11.24,21.61,21.61,0,0,0,.16,2.84c2.84,5,12.07,5.47,17.1,5.08,5.7-.45,14.24-2.33,17.92-7.14a22.63,22.63,0,0,0,3.59-8.1,18.83,18.83,0,0,0,0-10.71C183.52,136.17,170.14,133.86,158.7,140.72Z" />\n            <path d="M97.42,140.72c-11.43-6.86-24.82-4.55-27.76,4.41a18.75,18.75,0,0,0,0,10.71,22.54,22.54,0,0,0,3.6,8.1c3.67,4.81,12.21,6.69,17.91,7.14,5,.39,14.26-.1,17.11-5.08a23,23,0,0,0,.15-2.84,32.38,32.38,0,0,0-1.86-11.24C104.67,147.12,100.14,143,97.42,140.72Z" />\n            <path d="M149.25,153.7h0c-.08.23-.16.46-.23.69C149.09,154.17,149.17,153.94,149.25,153.7Z" />\n            <circle cx="194.32" cy="56.21" r="8.27" />\n            <circle cx="188.99" cy="87.22" r="7.74" />\n            <circle cx="225.28" cy="98.04" r="5.29" />\n            <path d="M220.67,130.68a23,23,0,0,1-4.65.47,23.29,23.29,0,0,1-17.9-8.36l-1.08.47a34.31,34.31,0,0,1,5.19,9.18c4.12,10.88,6,27.72.5,38.78-13,.32-42.81,5.63-61.68,10.2-1.16.28-.54.12,0,0h-2.24c-.45-1.32-1.47-5.77-1.29-19.08.24-18.06,9.58-37.44,25.38-46a31,31,0,0,1-5.38-35.68,23.3,23.3,0,0,1-14.13-24c-1.86-.19-3.76-.35-5.72-.47L141,51.45l-30.69,5.4a99.63,99.63,0,0,0-25.53,6.34c-6.91-7.85-23.1-20.8-55.41-22.3,0,0-7,38.55,10.91,73.33-5.11,15-7.56,29.83-11.42,40.14-.07.18-.13.35-.2.52-.13.35-.27.7-.41,1s-.19.46-.28.68l-.3.68c-.13.3-.27.6-.41.89s-.15.32-.23.47c-.16.34-.33.67-.51,1l-.21.38c-.18.34-.37.66-.56,1l-.18.29-.6.92-.15.2c-.2.3-.42.58-.64.85a1.33,1.33,0,0,1-.14.19c-.24.29-.48.56-.73.83l-.17.18c-.25.26-.5.51-.77.75l-.17.15c-.27.23-.55.46-.83.67a.71.71,0,0,0-.14.1c-.31.21-.61.42-.93.61h0c-.33.19-.65.35-1,.51l-.08,0c-.38.16-.72.29-1.06.4l-.19.06c-.34.11-.7.2-1.06.28l-.19,0c-.37.07-.75.13-1.14.17h-.15c-.42,0-.84.06-1.28.06h0c.09.21.19.41.28.62v0C29.65,202.39,80.19,227,128,227h0c47.8,0,98.28-24.56,113.58-57.91l.16-.09.05,0h0l0,0,.08,0c0-.19,0-.38,0-.58C229,168.32,226,151.4,220.67,130.68ZM53.9,132.44c6-15.86,22.05-24.81,38.11-16.8,16.55,8.25,26.39,28.17,26.63,46.7.18,13.31-.84,17.76-1.29,19.08h-2.24c.5.12,1.12.28,0,0-18.87-4.57-48.72-9.88-61.68-10.2C47.9,160.16,49.77,143.32,53.9,132.44ZM142,191.73l-4.28,2.19a15,15,0,0,1-19.3,0l-4.28-2.19c-2.42-2-1-4.59,2.17-4.59h23.52C143,187.14,144.42,189.7,142,191.73Z" />\n          </svg>\n        ':'\n          <svg slot="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1080 1080">\n            <path d="m793.47,318.72c0,19.65-15.93,35.58-35.58,35.58s-33.58-15.93-33.58-35.58,14.93-35.58,34.58-35.58,34.58,15.93,34.58,35.58Z"/>\n            <path d="m785.16,120.41c16.16,27.99,12.86,58.96-14.01,74.47-26.87,15.51-62.2,11.32-78.36-16.67-16.16-27.99-13.41-64.88,13.46-80.4s62.75-5.4,78.91,22.6Z"/>\n            <path d="m1043.43,346.47c-7.41,21.67-31.28,35.46-52.08,28.35s-31.64-30.45-24.23-52.11c7.41-21.67,30.28-35.46,51.07-28.35,20.8,7.11,32.64,30.45,25.23,52.11Z"/>\n            <path d="m964.32,545.91c-.76-14.23-2.12-28.29-4.04-42.17-1.26-9.06-11.33-13.96-19.16-9.24-10,6.03-21.72,9.5-34.25,9.5-29.69,0-54.83-19.46-63.36-46.32-2.23-7.01-9.55-10.97-16.65-9.05-.05.01-.1.03-.14.04-17.21,5.61-35.64,8.5-54.8,8.16-89.99-1.62-162.95-75.26-163.79-165.25-.16-17.24,2.3-33.88,7-49.56,2.32-7.75-2.64-15.73-10.59-17.25-44.38-8.46-77.92-47.46-77.92-94.29v-.14c0-7.5-6.38-13.44-13.86-12.87-219.15,16.78-394.36,223.9-394.36,428.43,0,237.22,189.37,433.54,422.96,433.54,210.43,0,435.18-205.3,422.96-433.54Zm-661.54,78.52c-25.16,0-45.55-18.39-45.55-43.55s20.39-45.55,45.55-45.55,49.55,20.39,49.55,45.55-24.4,43.55-49.55,43.55Zm50.55-303.43c-12.74,0-23.07-10.33-23.07-23.07s10.33-23.07,23.07-23.07,23.07,10.33,23.07,23.07-10.33,23.07-23.07,23.07Zm124.8,447.93c-12.33,0-22.32-9.99-22.32-22.32s9.99-22.32,22.32-22.32,22.32,9.99,22.32,22.32-9.99,22.32-22.32,22.32Zm6.68-232.69c-54.51,0-79.27-36.04-79.27-79.27s36.04-78.27,79.27-78.27,82.27,35.04,82.27,78.27-28.74,79.27-82.27,79.27Zm281.37,186.05c-44.77,0-64.6-29.69-61.52-63.53,3.25-35.76,32.51-61.52,61.52-61.52,33.98,0,61.52,27.55,61.52,61.52s-27.55,63.53-61.52,63.53Z"/>\n          </svg>\n        ',document.body.appendChild(d);const u=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&l()}))})),p=()=>{const e=document.querySelector("#cm");e&&u.observe(e)};new MutationObserver((()=>{document.querySelector("#cm")&&p()})).observe(document,{childList:!0,subtree:!0}),p()},p=async t=>{if(!a)return;const{rest_url:n,consent_route:i}=e.api;try{await fetch(`${n}${i}`,{method:"POST",credentials:"same-origin",headers:new Headers({"Content-Type":"application/json;charset=UTF-8"}),body:JSON.stringify({consent_date:t.consent_date,uuid:t.consent_uuid,url:window.location.href,user_agent:window.navigator.userAgent,necessary_consent:t.level.includes("necessary"),analytics_consent:t.level.includes("analytics"),targeting_consent:t.level.includes("targeting"),preferences_consent:t.level.includes("preferences")})})}catch(e){console.error(e)}},h=(e=[])=>{const t={...n},i={necessary:["functionality_storage","security_storage"],preferences:["personalization_storage"],analytics:["analytics_storage"],targeting:["ad_storage","ad_user_data","ad_personalization"]};return e.forEach((e=>{i[e].forEach((e=>{t[e]="granted"}))})),t},f=(e=[])=>{if(!c.enabled||"gtag"!==c.implementation||!("gtag"in window)||"function"!=typeof window.gtag)return;if(!Array.isArray(e)||0===e.length)return;const n=h(e);t("consent","update",n)},g=(e=[])=>{Array.isArray(e)&&0!==e.length&&(window.pressidiumConsentListeners=window.pressidiumConsentListeners||[],window.pressidiumConsentListeners.forEach((t=>{t(h(e))})))};s&&Object.entries(i.languages).forEach((([e,t])=>{i.languages[e].settings_modal.blocks=t.settings_modal.blocks.filter((e=>!(e=>"toggle"in e&&(!("cookie_table"in e)||0===e.cookie_table.length))(e)))})),window.pressidiumCookieConsent=initCookieConsent(),window.pressidiumCookieConsent.run({...i,onAccept:async e=>{await p(e),"categories"in e&&c.enabled&&(f(e.categories),g(e.categories)),d();const t=new CustomEvent("pressidium-cookie-consent-accepted",{detail:{cookie:e}});window.dispatchEvent(t)},onChange:async(e,t)=>{await p(e),"categories"in e&&c.enabled&&(f(e.categories),g(e.categories)),d();const n=new CustomEvent("pressidium-cookie-consent-changed",{detail:{cookie:e,changedCategories:t}});window.dispatchEvent(n)}}),u(r),window.pressidiumFloatingButton={init:u,show:d,hide:l};const m=window.pressidiumCookieConsent.get("categories");f(m),document.querySelectorAll("#cc--main button").forEach((e=>{e.classList.add("has-background","has-text-color")}))})(pressidiumCCClientDetails,window.gtag)})()})();
(()=>{var e={428:e=>{"use strict";e.exports=window.jQuery},6586:function(e,t,s){var i,l;i=[s(428)],void 0===(l=function(e){return t=e,void function(){"use strict";var e={mode:"lg-slide",cssEasing:"ease",easing:"linear",speed:600,height:"100%",width:"100%",addClass:"",startClass:"lg-start-zoom",backdropDuration:150,hideBarsDelay:6e3,useLeft:!1,closable:!0,loop:!0,escKey:!0,keyPress:!0,controls:!0,slideEndAnimatoin:!0,hideControlOnEnd:!1,mousewheel:!0,getCaptionFromTitleOrAlt:!0,appendSubHtmlTo:".lg-sub-html",subHtmlSelectorRelative:!1,preload:1,showAfterLoad:!0,selector:"",selectWithin:"",nextHtml:"",prevHtml:"",index:!1,iframeMaxWidth:"100%",download:!0,counter:!0,appendCounterTo:".lg-toolbar",swipeThreshold:50,enableSwipe:!0,enableDrag:!0,dynamic:!1,dynamicEl:[],galleryId:1};function s(s,i){if(this.el=s,this.$el=t(s),this.s=t.extend({},e,i),this.s.dynamic&&"undefined"!==this.s.dynamicEl&&this.s.dynamicEl.constructor===Array&&!this.s.dynamicEl.length)throw"When using dynamic mode, you must also define dynamicEl as an Array.";return this.modules={},this.lGalleryOn=!1,this.lgBusy=!1,this.hideBartimeout=!1,this.isTouch="ontouchstart"in document.documentElement,this.s.slideEndAnimatoin&&(this.s.hideControlOnEnd=!1),this.s.dynamic?this.$items=this.s.dynamicEl:"this"===this.s.selector?this.$items=this.$el:""!==this.s.selector?this.s.selectWithin?this.$items=t(this.s.selectWithin).find(this.s.selector):this.$items=this.$el.find(t(this.s.selector)):this.$items=this.$el.children(),this.$slide="",this.$outer="",this.init(),this}s.prototype.init=function(){var e=this;e.s.preload>e.$items.length&&(e.s.preload=e.$items.length);var s=window.location.hash;s.indexOf("lg="+this.s.galleryId)>0&&(e.index=parseInt(s.split("&slide=")[1],10),t("body").addClass("lg-from-hash"),t("body").hasClass("lg-on")||(setTimeout(function(){e.build(e.index)}),t("body").addClass("lg-on"))),e.s.dynamic?(e.$el.trigger("onBeforeOpen.lg"),e.index=e.s.index||0,t("body").hasClass("lg-on")||setTimeout(function(){e.build(e.index),t("body").addClass("lg-on")})):e.$items.on("click.lgcustom",function(s){try{s.preventDefault(),s.preventDefault()}catch(e){s.returnValue=!1}e.$el.trigger("onBeforeOpen.lg"),e.index=e.s.index||e.$items.index(this),t("body").hasClass("lg-on")||(e.build(e.index),t("body").addClass("lg-on"))})},s.prototype.build=function(e){var s=this;s.structure(),t.each(t.fn.lightGallery.modules,function(e){s.modules[e]=new t.fn.lightGallery.modules[e](s.el)}),s.slide(e,!1,!1,!1),s.s.keyPress&&s.keyPress(),s.$items.length>1&&(s.arrow(),setTimeout(function(){s.enableDrag(),s.enableSwipe()},50),s.s.mousewheel&&s.mousewheel()),s.counter(),s.closeGallery(),s.$el.trigger("onAfterOpen.lg"),s.$outer.on("mousemove.lg click.lg touchstart.lg",function(){s.$outer.removeClass("lg-hide-items"),clearTimeout(s.hideBartimeout),s.hideBartimeout=setTimeout(function(){s.$outer.addClass("lg-hide-items")},s.s.hideBarsDelay)}),s.$outer.trigger("mousemove.lg")},s.prototype.structure=function(){var e,s="",i="",l=0,o="",a=this;for(t("body").append('<div class="lg-backdrop"></div>'),t(".lg-backdrop").css("transition-duration",this.s.backdropDuration+"ms"),l=0;l<this.$items.length;l++)s+='<div class="lg-item"></div>';if(this.s.controls&&this.$items.length>1&&(i='<div class="lg-actions"><div class="lg-prev lg-icon">'+this.s.prevHtml+'</div><div class="lg-next lg-icon">'+this.s.nextHtml+"</div></div>"),".lg-sub-html"===this.s.appendSubHtmlTo&&(o='<div class="lg-sub-html"></div>'),e='<div class="lg-outer '+this.s.addClass+" "+this.s.startClass+'"><div class="lg" style="width:'+this.s.width+"; height:"+this.s.height+'"><div class="lg-inner">'+s+'</div><div class="lg-toolbar lg-group"><span class="lg-close lg-icon"></span></div>'+i+o+"</div></div>",t("body").append(e),this.$outer=t(".lg-outer"),this.$slide=this.$outer.find(".lg-item"),this.s.useLeft?(this.$outer.addClass("lg-use-left"),this.s.mode="lg-slide"):this.$outer.addClass("lg-use-css3"),a.setTop(),t(window).on("resize.lg orientationchange.lg",function(){setTimeout(function(){a.setTop()},100)}),this.$slide.eq(this.index).addClass("lg-current"),this.doCss()?this.$outer.addClass("lg-css3"):(this.$outer.addClass("lg-css"),this.s.speed=0),this.$outer.addClass(this.s.mode),this.s.enableDrag&&this.$items.length>1&&this.$outer.addClass("lg-grab"),this.s.showAfterLoad&&this.$outer.addClass("lg-show-after-load"),this.doCss()){var r=this.$outer.find(".lg-inner");r.css("transition-timing-function",this.s.cssEasing),r.css("transition-duration",this.s.speed+"ms")}setTimeout(function(){t(".lg-backdrop").addClass("in")}),setTimeout(function(){a.$outer.addClass("lg-visible")},this.s.backdropDuration),this.s.download&&this.$outer.find(".lg-toolbar").append('<a id="lg-download" target="_blank" download class="lg-download lg-icon"></a>'),this.prevScrollTop=t(window).scrollTop()},s.prototype.setTop=function(){if("100%"!==this.s.height){var e=t(window).height(),s=(e-parseInt(this.s.height,10))/2,i=this.$outer.find(".lg");e>=parseInt(this.s.height,10)?i.css("top",s+"px"):i.css("top","0px")}},s.prototype.doCss=function(){return!!function(){var e=["transition","MozTransition","WebkitTransition","OTransition","msTransition","KhtmlTransition"],t=document.documentElement,s=0;for(s=0;s<e.length;s++)if(e[s]in t.style)return!0}()},s.prototype.isVideo=function(e,t){var s;if(s=this.s.dynamic?this.s.dynamicEl[t].html:this.$items.eq(t).attr("data-html"),!e&&s)return{html5:!0};var i=e.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)/i),l=e.match(/\/\/(?:www\.)?vimeo.com\/([0-9a-z\-_]+)/i),o=e.match(/\/\/(?:www\.)?dai.ly\/([0-9a-z\-_]+)/i),a=e.match(/\/\/(?:www\.)?(?:vk\.com|vkontakte\.ru)\/(?:video_ext\.php\?)(.*)/i);return i?{youtube:i}:l?{vimeo:l}:o?{dailymotion:o}:a?{vk:a}:void 0},s.prototype.counter=function(){this.s.counter&&t(this.s.appendCounterTo).append('<div id="lg-counter"><span id="lg-counter-current">'+(parseInt(this.index,10)+1)+'</span> / <span id="lg-counter-all">'+this.$items.length+"</span></div>")},s.prototype.addHtml=function(e){var s,i,l=null;if(this.s.dynamic?this.s.dynamicEl[e].subHtmlUrl?s=this.s.dynamicEl[e].subHtmlUrl:l=this.s.dynamicEl[e].subHtml:(i=this.$items.eq(e)).attr("data-sub-html-url")?s=i.attr("data-sub-html-url"):(l=i.attr("data-sub-html"),this.s.getCaptionFromTitleOrAlt&&!l&&(l=i.attr("title")||i.find("img").first().attr("alt"))),!s)if(null!=l){var o=l.substring(0,1);"."!==o&&"#"!==o||(l=this.s.subHtmlSelectorRelative&&!this.s.dynamic?i.find(l).html():t(l).html())}else l="";".lg-sub-html"===this.s.appendSubHtmlTo?s?this.$outer.find(this.s.appendSubHtmlTo).load(s):this.$outer.find(this.s.appendSubHtmlTo).html(l):s?this.$slide.eq(e).load(s):this.$slide.eq(e).append(l),null!=l&&(""===l?this.$outer.find(this.s.appendSubHtmlTo).addClass("lg-empty-html"):this.$outer.find(this.s.appendSubHtmlTo).removeClass("lg-empty-html")),this.$el.trigger("onAfterAppendSubHtml.lg",[e])},s.prototype.preload=function(e){var t=1,s=1;for(t=1;t<=this.s.preload&&!(t>=this.$items.length-e);t++)this.loadContent(e+t,!1,0);for(s=1;s<=this.s.preload&&!(e-s<0);s++)this.loadContent(e-s,!1,0)},s.prototype.loadContent=function(e,s,i){var l,o,a,r,d,n,c=this,g=!1,h=function(e){for(var s=[],i=[],l=0;l<e.length;l++){var a=e[l].split(" ");""===a[0]&&a.splice(0,1),i.push(a[0]),s.push(a[1])}for(var r=t(window).width(),d=0;d<s.length;d++)if(parseInt(s[d],10)>r){o=i[d];break}};c.s.dynamic?(c.s.dynamicEl[e].poster&&(g=!0,a=c.s.dynamicEl[e].poster),n=c.s.dynamicEl[e].html,o=c.s.dynamicEl[e].src,c.s.dynamicEl[e].responsive&&h(c.s.dynamicEl[e].responsive.split(",")),r=c.s.dynamicEl[e].srcset,d=c.s.dynamicEl[e].sizes):(c.$items.eq(e).attr("data-poster")&&(g=!0,a=c.$items.eq(e).attr("data-poster")),n=c.$items.eq(e).attr("data-html"),o=c.$items.eq(e).attr("href")||c.$items.eq(e).attr("data-src"),c.$items.eq(e).attr("data-responsive")&&h(c.$items.eq(e).attr("data-responsive").split(",")),r=c.$items.eq(e).attr("data-srcset"),d=c.$items.eq(e).attr("data-sizes"));var u=!1;c.s.dynamic?c.s.dynamicEl[e].iframe&&(u=!0):"true"===c.$items.eq(e).attr("data-iframe")&&(u=!0);var m=c.isVideo(o,e);if(!c.$slide.eq(e).hasClass("lg-loaded")){if(u)c.$slide.eq(e).prepend('<div class="lg-video-cont" style="max-width:'+c.s.iframeMaxWidth+'"><div class="lg-video"><iframe class="lg-object" frameborder="0" src="'+o+'"  allowfullscreen="true"></iframe></div></div>');else if(g){var p;p=m&&m.youtube?"lg-has-youtube":m&&m.vimeo?"lg-has-vimeo":"lg-has-html5",c.$slide.eq(e).prepend('<div class="lg-video-cont '+p+' "><div class="lg-video"><span class="lg-video-play"></span><img class="lg-object lg-has-poster" src="'+a+'" /></div></div>')}else m?(c.$slide.eq(e).prepend('<div class="lg-video-cont "><div class="lg-video"></div></div>'),c.$el.trigger("hasVideo.lg",[e,o,n])):c.$slide.eq(e).prepend('<div class="lg-img-wrap"><img class="lg-object lg-image" src="'+o+'" /></div>');if(c.$el.trigger("onAferAppendSlide.lg",[e]),l=c.$slide.eq(e).find(".lg-object"),d&&l.attr("sizes",d),r){l.attr("srcset",r);try{picturefill({elements:[l[0]]})}catch(e){console.error("Make sure you have included Picturefill version 2")}}".lg-sub-html"!==this.s.appendSubHtmlTo&&c.addHtml(e),c.$slide.eq(e).addClass("lg-loaded")}c.$slide.eq(e).find(".lg-object").on("load.lg error.lg",function(){var s=0;i&&!t("body").hasClass("lg-from-hash")&&(s=i),setTimeout(function(){c.$slide.eq(e).addClass("lg-complete"),c.$el.trigger("onSlideItemLoad.lg",[e,i||0])},s)}),m&&m.html5&&!g&&c.$slide.eq(e).addClass("lg-complete"),!0===s&&(c.$slide.eq(e).hasClass("lg-complete")?c.preload(e):c.$slide.eq(e).find(".lg-object").on("load.lg error.lg",function(){c.preload(e)}))},s.prototype.slide=function(e,s,i,l){var o=this.$outer.find(".lg-current").index(),a=this;if(!a.lGalleryOn||o!==e){var r,d,n,c=this.$slide.length,g=a.lGalleryOn?this.s.speed:0;a.lgBusy||(this.s.download&&((r=a.s.dynamic?!1!==a.s.dynamicEl[e].downloadUrl&&(a.s.dynamicEl[e].downloadUrl||a.s.dynamicEl[e].src):"false"!==a.$items.eq(e).attr("data-download-url")&&(a.$items.eq(e).attr("data-download-url")||a.$items.eq(e).attr("href")||a.$items.eq(e).attr("data-src")))?(t("#lg-download").attr("href",r),a.$outer.removeClass("lg-hide-download")):a.$outer.addClass("lg-hide-download")),this.$el.trigger("onBeforeSlide.lg",[o,e,s,i]),a.lgBusy=!0,clearTimeout(a.hideBartimeout),".lg-sub-html"===this.s.appendSubHtmlTo&&setTimeout(function(){a.addHtml(e)},g),this.arrowDisable(e),l||(e<o?l="prev":e>o&&(l="next")),s?(this.$slide.removeClass("lg-prev-slide lg-current lg-next-slide"),c>2?(d=e-1,n=e+1,(0===e&&o===c-1||e===c-1&&0===o)&&(n=0,d=c-1)):(d=0,n=1),"prev"===l?a.$slide.eq(n).addClass("lg-next-slide"):a.$slide.eq(d).addClass("lg-prev-slide"),a.$slide.eq(e).addClass("lg-current")):(a.$outer.addClass("lg-no-trans"),this.$slide.removeClass("lg-prev-slide lg-next-slide"),"prev"===l?(this.$slide.eq(e).addClass("lg-prev-slide"),this.$slide.eq(o).addClass("lg-next-slide")):(this.$slide.eq(e).addClass("lg-next-slide"),this.$slide.eq(o).addClass("lg-prev-slide")),setTimeout(function(){a.$slide.removeClass("lg-current"),a.$slide.eq(e).addClass("lg-current"),a.$outer.removeClass("lg-no-trans")},50)),a.lGalleryOn?(setTimeout(function(){a.loadContent(e,!0,0)},this.s.speed+50),setTimeout(function(){a.lgBusy=!1,a.$el.trigger("onAfterSlide.lg",[o,e,s,i])},this.s.speed)):(a.loadContent(e,!0,a.s.backdropDuration),a.lgBusy=!1,a.$el.trigger("onAfterSlide.lg",[o,e,s,i])),a.lGalleryOn=!0,this.s.counter&&t("#lg-counter-current").text(e+1))}},s.prototype.goToNextSlide=function(e){var t=this,s=t.s.loop;e&&t.$slide.length<3&&(s=!1),t.lgBusy||(t.index+1<t.$slide.length?(t.index++,t.$el.trigger("onBeforeNextSlide.lg",[t.index]),t.slide(t.index,e,!1,"next")):s?(t.index=0,t.$el.trigger("onBeforeNextSlide.lg",[t.index]),t.slide(t.index,e,!1,"next")):t.s.slideEndAnimatoin&&!e&&(t.$outer.addClass("lg-right-end"),setTimeout(function(){t.$outer.removeClass("lg-right-end")},400)))},s.prototype.goToPrevSlide=function(e){var t=this,s=t.s.loop;e&&t.$slide.length<3&&(s=!1),t.lgBusy||(t.index>0?(t.index--,t.$el.trigger("onBeforePrevSlide.lg",[t.index,e]),t.slide(t.index,e,!1,"prev")):s?(t.index=t.$items.length-1,t.$el.trigger("onBeforePrevSlide.lg",[t.index,e]),t.slide(t.index,e,!1,"prev")):t.s.slideEndAnimatoin&&!e&&(t.$outer.addClass("lg-left-end"),setTimeout(function(){t.$outer.removeClass("lg-left-end")},400)))},s.prototype.keyPress=function(){var e=this;this.$items.length>1&&t(window).on("keyup.lg",function(t){e.$items.length>1&&(37===t.keyCode&&(t.preventDefault(),e.goToPrevSlide()),39===t.keyCode&&(t.preventDefault(),e.goToNextSlide()))}),t(window).on("keydown.lg",function(t){!0===e.s.escKey&&27===t.keyCode&&(t.preventDefault(),e.$outer.hasClass("lg-thumb-open")?e.$outer.removeClass("lg-thumb-open"):e.destroy())})},s.prototype.arrow=function(){var e=this;this.$outer.find(".lg-prev").on("click.lg",function(){e.goToPrevSlide()}),this.$outer.find(".lg-next").on("click.lg",function(){e.goToNextSlide()})},s.prototype.arrowDisable=function(e){!this.s.loop&&this.s.hideControlOnEnd&&(e+1<this.$slide.length?this.$outer.find(".lg-next").removeAttr("disabled").removeClass("disabled"):this.$outer.find(".lg-next").attr("disabled","disabled").addClass("disabled"),e>0?this.$outer.find(".lg-prev").removeAttr("disabled").removeClass("disabled"):this.$outer.find(".lg-prev").attr("disabled","disabled").addClass("disabled"))},s.prototype.setTranslate=function(e,t,s){this.s.useLeft?e.css("left",t):e.css({transform:"translate3d("+t+"px, "+s+"px, 0px)"})},s.prototype.touchMove=function(e,s){var i=s-e;Math.abs(i)>15&&(this.$outer.addClass("lg-dragging"),this.setTranslate(this.$slide.eq(this.index),i,0),this.setTranslate(t(".lg-prev-slide"),-this.$slide.eq(this.index).width()+i,0),this.setTranslate(t(".lg-next-slide"),this.$slide.eq(this.index).width()+i,0))},s.prototype.touchEnd=function(e){var t=this;"lg-slide"!==t.s.mode&&t.$outer.addClass("lg-slide"),this.$slide.not(".lg-current, .lg-prev-slide, .lg-next-slide").css("opacity","0"),setTimeout(function(){t.$outer.removeClass("lg-dragging"),e<0&&Math.abs(e)>t.s.swipeThreshold?t.goToNextSlide(!0):e>0&&Math.abs(e)>t.s.swipeThreshold?t.goToPrevSlide(!0):Math.abs(e)<5&&t.$el.trigger("onSlideClick.lg"),t.$slide.removeAttr("style")}),setTimeout(function(){t.$outer.hasClass("lg-dragging")||"lg-slide"===t.s.mode||t.$outer.removeClass("lg-slide")},t.s.speed+100)},s.prototype.enableSwipe=function(){var e=this,t=0,s=0,i=!1;e.s.enableSwipe&&e.isTouch&&e.doCss()&&(e.$slide.on("touchstart.lg",function(s){e.$outer.hasClass("lg-zoomed")||e.lgBusy||(s.preventDefault(),e.manageSwipeClass(),t=s.originalEvent.targetTouches[0].pageX)}),e.$slide.on("touchmove.lg",function(l){e.$outer.hasClass("lg-zoomed")||(l.preventDefault(),s=l.originalEvent.targetTouches[0].pageX,e.touchMove(t,s),i=!0)}),e.$slide.on("touchend.lg",function(){e.$outer.hasClass("lg-zoomed")||(i?(i=!1,e.touchEnd(s-t)):e.$el.trigger("onSlideClick.lg"))}))},s.prototype.enableDrag=function(){var e=this,s=0,i=0,l=!1,o=!1;e.s.enableDrag&&!e.isTouch&&e.doCss()&&(e.$slide.on("mousedown.lg",function(i){e.$outer.hasClass("lg-zoomed")||(t(i.target).hasClass("lg-object")||t(i.target).hasClass("lg-video-play"))&&(i.preventDefault(),e.lgBusy||(e.manageSwipeClass(),s=i.pageX,l=!0,e.$outer.scrollLeft+=1,e.$outer.scrollLeft-=1,e.$outer.removeClass("lg-grab").addClass("lg-grabbing"),e.$el.trigger("onDragstart.lg")))}),t(window).on("mousemove.lg",function(t){l&&(o=!0,i=t.pageX,e.touchMove(s,i),e.$el.trigger("onDragmove.lg"))}),t(window).on("mouseup.lg",function(a){o?(o=!1,e.touchEnd(i-s),e.$el.trigger("onDragend.lg")):(t(a.target).hasClass("lg-object")||t(a.target).hasClass("lg-video-play"))&&e.$el.trigger("onSlideClick.lg"),l&&(l=!1,e.$outer.removeClass("lg-grabbing").addClass("lg-grab"))}))},s.prototype.manageSwipeClass=function(){var e=this.index+1,t=this.index-1;this.s.loop&&this.$slide.length>2&&(0===this.index?t=this.$slide.length-1:this.index===this.$slide.length-1&&(e=0)),this.$slide.removeClass("lg-next-slide lg-prev-slide"),t>-1&&this.$slide.eq(t).addClass("lg-prev-slide"),this.$slide.eq(e).addClass("lg-next-slide")},s.prototype.mousewheel=function(){var e=this;e.$outer.on("mousewheel.lg",function(t){t.deltaY&&(t.deltaY>0?e.goToPrevSlide():e.goToNextSlide(),t.preventDefault())})},s.prototype.closeGallery=function(){var e=this,s=!1;this.$outer.find(".lg-close").on("click.lg",function(){e.destroy()}),e.s.closable&&(e.$outer.on("mousedown.lg",function(e){s=!!(t(e.target).is(".lg-outer")||t(e.target).is(".lg-item ")||t(e.target).is(".lg-img-wrap"))}),e.$outer.on("mouseup.lg",function(i){(t(i.target).is(".lg-outer")||t(i.target).is(".lg-item ")||t(i.target).is(".lg-img-wrap")&&s)&&(e.$outer.hasClass("lg-dragging")||e.destroy())}))},s.prototype.destroy=function(e){var s=this;e||(s.$el.trigger("onBeforeClose.lg"),t(window).scrollTop(s.prevScrollTop)),e&&(s.s.dynamic||this.$items.off("click.lg click.lgcustom"),t.removeData(s.el,"lightGallery")),this.$el.off(".lg.tm"),t.each(t.fn.lightGallery.modules,function(e){s.modules[e]&&s.modules[e].destroy()}),this.lGalleryOn=!1,clearTimeout(s.hideBartimeout),this.hideBartimeout=!1,t(window).off(".lg"),t("body").removeClass("lg-on lg-from-hash"),s.$outer&&s.$outer.removeClass("lg-visible"),t(".lg-backdrop").removeClass("in"),setTimeout(function(){s.$outer&&s.$outer.remove(),t(".lg-backdrop").remove(),e||s.$el.trigger("onCloseAfter.lg")},s.s.backdropDuration+50)},t.fn.lightGallery=function(e){return this.each(function(){if(t.data(this,"lightGallery"))try{t(this).data("lightGallery").init()}catch(e){console.error("lightGallery has not initiated properly")}else t.data(this,"lightGallery",new s(this,e))})},t.fn.lightGallery.modules={}}();var t}.apply(t,i))||(e.exports=l),function(e){"use strict";var t={videoMaxWidth:"855px",youtubePlayerParams:!1,vimeoPlayerParams:!1,dailymotionPlayerParams:!1,vkPlayerParams:!1,videojs:!1,videojsOptions:{}},s=function(s){return this.core=e(s).data("lightGallery"),this.$el=e(s),this.core.s=e.extend({},t,this.core.s),this.videoLoaded=!1,this.init(),this};s.prototype.init=function(){var t=this;t.core.$el.on("hasVideo.lg.tm",function(e,s,i,l){if(t.core.$slide.eq(s).find(".lg-video").append(t.loadVideo(i,"lg-object",!0,s,l)),l)if(t.core.s.videojs)try{videojs(t.core.$slide.eq(s).find(".lg-html5").get(0),t.core.s.videojsOptions,function(){t.videoLoaded||this.play()})}catch(e){console.error("Make sure you have included videojs")}else t.core.$slide.eq(s).find(".lg-html5").get(0).play()}),t.core.$el.on("onAferAppendSlide.lg.tm",function(e,s){t.core.$slide.eq(s).find(".lg-video-cont").css("max-width",t.core.s.videoMaxWidth),t.videoLoaded=!0});var s=function(e){if(e.find(".lg-object").hasClass("lg-has-poster")&&e.find(".lg-object").is(":visible"))if(e.hasClass("lg-has-video")){var s=e.find(".lg-youtube").get(0),i=e.find(".lg-vimeo").get(0),l=e.find(".lg-dailymotion").get(0),o=e.find(".lg-html5").get(0);if(s)s.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*");else if(i)try{$f(i).api("play")}catch(e){console.error("Make sure you have included froogaloop2 js")}else if(l)l.contentWindow.postMessage("play","*");else if(o)if(t.core.s.videojs)try{videojs(o).play()}catch(e){console.error("Make sure you have included videojs")}else o.play();e.addClass("lg-video-playing")}else{e.addClass("lg-video-playing lg-has-video");var a=function(s,i){if(e.find(".lg-video").append(t.loadVideo(s,"",!1,t.core.index,i)),i)if(t.core.s.videojs)try{videojs(t.core.$slide.eq(t.core.index).find(".lg-html5").get(0),t.core.s.videojsOptions,function(){this.play()})}catch(e){console.error("Make sure you have included videojs")}else t.core.$slide.eq(t.core.index).find(".lg-html5").get(0).play()};t.core.s.dynamic?a(t.core.s.dynamicEl[t.core.index].src,t.core.s.dynamicEl[t.core.index].html):a(t.core.$items.eq(t.core.index).attr("href")||t.core.$items.eq(t.core.index).attr("data-src"),t.core.$items.eq(t.core.index).attr("data-html"));var r=e.find(".lg-object");e.find(".lg-video").append(r),e.find(".lg-video-object").hasClass("lg-html5")||(e.removeClass("lg-complete"),e.find(".lg-video-object").on("load.lg error.lg",function(){e.addClass("lg-complete")}))}};t.core.doCss()&&t.core.$items.length>1&&(t.core.s.enableSwipe&&t.core.isTouch||t.core.s.enableDrag&&!t.core.isTouch)?t.core.$el.on("onSlideClick.lg.tm",function(){var e=t.core.$slide.eq(t.core.index);s(e)}):t.core.$slide.on("click.lg",function(){s(e(this))}),t.core.$el.on("onBeforeSlide.lg.tm",function(s,i,l){var o,a=t.core.$slide.eq(i),r=a.find(".lg-youtube").get(0),d=a.find(".lg-vimeo").get(0),n=a.find(".lg-dailymotion").get(0),c=a.find(".lg-vk").get(0),g=a.find(".lg-html5").get(0);if(r)r.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*");else if(d)try{$f(d).api("pause")}catch(e){console.error("Make sure you have included froogaloop2 js")}else if(n)n.contentWindow.postMessage("pause","*");else if(g)if(t.core.s.videojs)try{videojs(g).pause()}catch(e){console.error("Make sure you have included videojs")}else g.pause();c&&e(c).attr("src",e(c).attr("src").replace("&autoplay","&noplay")),o=t.core.s.dynamic?t.core.s.dynamicEl[l].src:t.core.$items.eq(l).attr("href")||t.core.$items.eq(l).attr("data-src");var h=t.core.isVideo(o,l)||{};(h.youtube||h.vimeo||h.dailymotion||h.vk)&&t.core.$outer.addClass("lg-hide-download")}),t.core.$el.on("onAfterSlide.lg.tm",function(e,s){t.core.$slide.eq(s).removeClass("lg-video-playing")})},s.prototype.loadVideo=function(t,s,i,l,o){var a="",r=1,d="",n=this.core.isVideo(t,l)||{};if(i&&(r=this.videoLoaded?0:1),n.youtube)d="?wmode=opaque&autoplay="+r+"&enablejsapi=1",this.core.s.youtubePlayerParams&&(d=d+"&"+e.param(this.core.s.youtubePlayerParams)),a='<iframe class="lg-video-object lg-youtube '+s+'" width="560" height="315" src="//www.youtube.com/embed/'+n.youtube[1]+d+'" frameborder="0" allowfullscreen></iframe>';else if(n.vimeo)d="?autoplay="+r+"&api=1",this.core.s.vimeoPlayerParams&&(d=d+"&"+e.param(this.core.s.vimeoPlayerParams)),a='<iframe class="lg-video-object lg-vimeo '+s+'" width="560" height="315"  src="//player.vimeo.com/video/'+n.vimeo[1]+d+'" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';else if(n.dailymotion)d="?wmode=opaque&autoplay="+r+"&api=postMessage",this.core.s.dailymotionPlayerParams&&(d=d+"&"+e.param(this.core.s.dailymotionPlayerParams)),a='<iframe class="lg-video-object lg-dailymotion '+s+'" width="560" height="315" src="//www.dailymotion.com/embed/video/'+n.dailymotion[1]+d+'" frameborder="0" allowfullscreen></iframe>';else if(n.html5){var c=o.substring(0,1);"."!==c&&"#"!==c||(o=e(o).html()),a=o}else n.vk&&(d="&autoplay="+r,this.core.s.vkPlayerParams&&(d=d+"&"+e.param(this.core.s.vkPlayerParams)),a='<iframe class="lg-video-object lg-vk '+s+'" width="560" height="315" src="http://vk.com/video_ext.php?'+n.vk[1]+d+'" frameborder="0" allowfullscreen></iframe>');return a},s.prototype.destroy=function(){this.videoLoaded=!1},e.fn.lightGallery.modules.video=s}(jQuery,window,document)}},t={};function s(i){var l=t[i];if(void 0!==l)return l.exports;var o=t[i]={exports:{}};return e[i].call(o.exports,o,o.exports,s),o.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";s(6586)})()})();
(()=>{var t={1243:()=>{var t,e,i,n={Android:function(){return navigator.userAgent.match(/Android/i)},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return navigator.userAgent.match(/IEMobile/i)},any:function(){return n.Android()||n.BlackBerry()||n.iOS()||n.Opera()||n.Windows()}};function o(t){if("number"==typeof t)return t;var e=t.match(/\d+$/);return e?parseFloat(e[0]):0}t=navigator.userAgent.toLowerCase().indexOf("webkit")>-1,e=navigator.userAgent.toLowerCase().indexOf("opera")>-1,i=navigator.userAgent.toLowerCase().indexOf("msie")>-1,(t||e||i)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",function(){var t,e=location.hash.substring(1);/^[A-z0-9_-]+$/.test(e)&&(t=document.getElementById(e))&&(/^(?:a|select|input|button|textarea)$/i.test(t.tagName)||(t.tabIndex=-1),t.focus())},!1),function(){if(n.any()){let t=.01*window.innerHeight,e=.01*window.innerWidth;document.documentElement.style.setProperty("--vh",t+"px"),document.documentElement.style.setProperty("--vw",e+"px"),window.addEventListener("resize",function(){let t=.01*window.innerHeight,e=.01*window.innerWidth;document.documentElement.style.setProperty("--vh",t+"px"),document.documentElement.style.setProperty("--vw",e+"px")})}}(),jQuery(function(t){var e=t(window),i=t(document);t(document).on("mouseenter resize",".sub-menu .menu-item-has-children",function(){var e=t(this).find(".sub-menu");e.length>0&&!function(t){"function"==typeof jQuery&&t instanceof jQuery&&(t=t[0]);var e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}(e)&&e.css({right:"100%",left:"auto"})});var s,r,a,l=function(){var e=0;return t("#wpadminbar").length&&"fixed"===t("#wpadminbar").css("position")&&(e=t("#wpadminbar").height()),e},c=(r=function(e,i){void 0===i&&(i=!0),s=e.each(function(){var e=t(this);e.parent().hasClass("followWrap")||i&&e.wrap('<div class="followWrap" />'),e.parent().removeAttr("style"),e.parent().height(e.height())})},a=function(){var i;i=l();var n=e.scrollTop();s.each(function(e){var o=t(this),s=o.parent().offset().top;0===n&&o.addClass("no-scroll"),s-i<=n?(n>0&&o.removeClass("no-scroll"),o.addClass("header-fixed"),o.css("top",i)):o.removeClass("header-fixed").removeAttr("style").addClass("no-scroll")})},{load:function(n){"object"==typeof n&&n instanceof jQuery&&n.length>0&&(r(n),e.on("scroll",function(){a()}),e.on("resize",function(){r(n,!1),n.each(function(){t(this).removeClass("fixed").removeAttr("style")}),a()}),i.on("hero_ready",function(){t(".followWrap").removeAttr("style"),setTimeout(function(){t(".followWrap").removeAttr("style"),r(n,!1),a()},500)}))}});c.load(t("#masthead.is-sticky")),i.on("header_view_changed",function(){c.load(t("#masthead.is-sticky"))});var h=jQuery(".main-navigation .onepress-menu"),d=document.getElementById("masthead");if(d)var u=d.classList.contains("no-sticky");var p=function(e){if(void 0===e&&(e=!0),e){var i=d.getBoundingClientRect();return t(window).height()-(i.x+i.height)+1}h.css("height","auto");var n=h[0].getBoundingClientRect();return h.css("height",0),n.height};function f(){const e=t(window).width()<=1140,i=t("#masthead > .container"),n=i.length?i[0].getBoundingClientRect():{};t("#site-navigation  .onepress-menu > li").each(function(){const i=t(this),o=t("> .sub-menu",i);if(e)o.removeAttr("style");else if(o.length){const t=i[0].getBoundingClientRect(),e=o[0].getBoundingClientRect();if(n.right<t.left+e.width){i.addClass("sub-li-r"),o.addClass("sub-ul-r");const e=n.right-(t.left+t.width);o.css("right",`-${e}px`)}}})}i.on("click","#nav-toggle",function(e){if(e.preventDefault(),jQuery("#nav-toggle").toggleClass("nav-is-visible"),jQuery(".header-widget").toggleClass("header-widget-mobile"),h.stop(),h.hasClass("onepress-menu-mobile"))h.css({height:h.height(),"min-height":0,overflow:"hidden"}),setTimeout(function(){h.animate({height:0},300,function(){h.removeAttr("style"),h.removeClass("onepress-menu-mobile"),t("body").removeClass("onepress-menu-mobile-opening")})},40);else{h.addClass("onepress-menu-mobile"),t("body").addClass("onepress-menu-mobile-opening"),o=(n=d.getBoundingClientRect()).x+n.height-1,h.css({top:o});var i=p(!u);isNaN(i)&&(i=t(window).height()),h.animate({height:i},300,function(){u&&h.css({"min-height":i,height:"auto"})})}var n,o}),!u&&n.any()&&t(document).on("scroll",function(){if(h.hasClass("onepress-menu-mobile")){var t=Math.max(document.documentElement.clientHeight,window.innerHeight||0),e=d.getBoundingClientRect(),i=e.x+e.height-1,n=t-i+1;h.css({height:n,top:i})}}),f();let m=!1;var g;function y(e,i){i||(i=0);var n=jQuery(window).scrollTop();t("#wpadminbar").length>0&&(n-=t("#wpadminbar").outerHeight()-1,i+=t("#wpadminbar").outerHeight()-1);var o=t("body").outerHeight(),s=e.offset().top,r=s+e.height(),a=n+o,l=!1;return n>=t("body")[0].scrollHeight-o?(s<n&&s>a||s>n&&r<n)&&(l=!0):s<=n+i&&r>n&&(l=!0),l}t(window).on("resize",function(){m&&clearTimeout(m),m=setTimeout(()=>{h.hasClass("onepress-menu-mobile")&&t(window).width()<=1140?u||h.css({height:p(),overflow:"auto"}):(h.removeAttr("style"),h.removeClass("onepress-menu-mobile"),jQuery("#nav-toggle").removeClass("nav-is-visible")),f()},500)}),jQuery(".onepress-menu li.menu-item-has-children, .onepress-menu li.page_item_has_children").each(function(){jQuery(this).prepend('<div class="nav-toggle-subarrow"><i class="fa fa-angle-down"></i></div>')}),i.on("click",".nav-toggle-subarrow, .nav-toggle-subarrow .nav-toggle-subarrow",function(){const t=jQuery(this).parent();t.removeAttr("style"),t.toggleClass("nav-toggle-dropdown")}),window.current_nav_item=!1,g="1"!==onepress_js_settings.onepress_disable_sticky_header?jQuery("#wpadminbar").height()+jQuery(".site-header").height():jQuery("#wpadminbar").height(),jQuery('#site-navigation li a[href*="#"]').on("click",function(t){let e=new URL(this.href);if(e.origin+e.pathname===window.location.origin+window.location.pathname){let i=jQuery(this.hash);jQuery(".onepress-menu").hasClass("onepress-menu-mobile")&&jQuery("#nav-toggle").trigger("click"),i.length&&(t.preventDefault(),window.history.pushState({},null,e.href),w(i))}});var v=e.scrollTop();function w(t){if(t.length<=0)return!1;jQuery("html, body").animate({scrollTop:jQuery(t).offset().top-g+"px"},{duration:800,easing:"swing",complete:function(){window.current_nav_item=!1}})}jQuery(window).on("scroll",function(){var t=null;if(window.current_nav_item)t=window.current_nav_item.replace("#","");else{var i=e.scrollTop(),n=jQuery("#wpadminbar").length>0?jQuery("#wpadminbar").height():0;if(g="1"!==onepress_js_settings.onepress_disable_sticky_header?n+jQuery(".site-header").height():n,v<i)jQuery("section").each(function(e){var i=jQuery(this),n=i.attr("id")||"";y(i,g+10)&&(t=n)});else for(var o=jQuery("section").length-1;o>=0;o--){var s=jQuery("section").eq(o),r=s.attr("id")||"";y(s,g+10)&&(t=r)}v=i}!function(t){t&&((t=t.replace("#",""))&&jQuery("#site-navigation li").removeClass("onepress-current-item"),t&&jQuery("#site-navigation li").find('a[href$="#'+t+'"]').parent().addClass("onepress-current-item"))}(t)}),jQuery(window).on("load",function(){var t=location.hash;jQuery(t).length>0&&w(t)}),jQuery('.hero-slideshow-wrapper a[href*="#"]:not([href="#"]), .parallax-content a[href*="#"]:not([href="#"]), .back-to-top').on("click",function(t){t.preventDefault(),w(jQuery(this.hash))}),onepress_js_settings.is_home&&jQuery(".site-branding .site-brand-inner").on("click",function(t){t.preventDefault(),jQuery("html, body").animate({scrollTop:"0px"},{duration:300,easing:"swing"})}),n.any()?jQuery("body").addClass("body-mobile").removeClass("body-desktop"):jQuery("body").addClass("body-desktop").removeClass("body-mobile"),"1"!==onepress_js_settings.onepress_disable_animation&&new WOW({offset:50,mobile:!1,live:!1}).init();var b=function(){jQuery(".js-rotating").Morphext({animation:onepress_js_settings.hero_animation,separator:"|",speed:parseInt(onepress_js_settings.hero_speed,10),complete:function(){}})};if(b(),i.on("header_view_changed",function(){b()}),jQuery(".site-content").fitVids({ignore:".wp-block-embed iframe, .wp-block-embed object"}),t.fn.lightGallery&&t(".videolightbox-popup").lightGallery({selector:"a"}),t(".counter").counterUp({delay:10,time:1e3}),"1"===onepress_js_settings.onepress_vertical_align_menu){var x=jQuery(".site-header").height();jQuery(".site-header .onepress-menu").css("line-height",x+"px")}function E(n){if(t(".hero-slideshow-fullscreen").length>0){var o,s=e.height(),r=l(),a=jQuery("#masthead");o=a.hasClass("is-t")?0:a.height(),o+=r,jQuery(".hero-slideshow-fullscreen").css("height",s-o+1+"px"),void 0!==n&&n||i.trigger("hero_ready")}}e.on("resize",function(){E()}),E(),i.on("header_view_changed",function(){E()}),i.on("hero_ready",function(){E(!0)});var A=function(){t("#parallax-hero").length<=0&&jQuery(".hero-slideshow-wrapper").each(function(){var e=t(this);if(!e.hasClass("video-hero")){var i=e.data("images")||!1;"string"==typeof i&&(i=JSON.parse(i)),i?function(t,e){if(onepress_js_settings.hero_disable_preload)e&&e();else{var i="_img_loading_"+(new Date).getTime();jQuery("body").append('<div id="'+i+'"></div>'),jQuery.each(t,function(t,e){var n=jQuery("<img>");n.attr("alt",""),n.attr("class","image__preload"),n.css("display","none"),n.attr("src",e),jQuery("#"+i).append(n)}),jQuery("#"+i).imagesLoaded(function(){e&&e(),setTimeout(function(){jQuery("#"+i).remove()},5e3)})}}(i,function(){e.backstretch(i,{fade:o(onepress_js_settings.hero_fade),duration:o(onepress_js_settings.hero_duration)}),e.addClass("loaded"),e.removeClass("loading"),setTimeout(function(){e.find(".slider-spinner").remove()},600)}):(e.addClass("loaded"),e.removeClass("loading"),e.find(".slider-spinner").remove())}})};function _(e){t.fn.justifiedGallery&&t(".gallery-justified",e).imagesLoaded(function(){t(".gallery-justified",e).each(function(){var e=t(this).attr("data-spacing")||20,i=t(this).attr("data-row-height")||120;e=o(e),i=o(i),t(this).justifiedGallery({rowHeight:i,margins:e,selector:"a, div:not(.spinner), .inner"})})});var i=onepress_js_settings.is_rtl;function n(){t.fn.isotope&&t(".gallery-masonry",e).each(function(){var e=t(this),i=e.attr("data-gutter")||10,n=e.attr("data-col")||5;i=o(i),n=o(n);var s=t(window).width();s<=940&&(n=n>2?n-1:n),s<=720&&(n=n>3?3:n),s<=576&&(n=n>2?2:n),e.find(".g-item").css({width:100/n+"%",float:"left",padding:0}),e.isotope({itemSelector:".g-item",percentPosition:!0,masonry:{columnWidth:".inner"}})})}if(t.fn.owlCarousel&&(t(".gallery-slider",e).owlCarousel({items:1,smartSpeed:200,autoplay:!0,autoplayTimeout:4e3,autoplayHoverPause:!0,nav:!0,navText:["<i class='lg-icon'></i>","<i class='lg-icon'></i>"],autoHeight:!0,rtl:0!==Number(i),dots:!1}),t(".gallery-carousel",e).each(function(){var e=t(this).attr("data-col")||5;(e=o(e))<=0&&(e=5),t(this).owlCarousel({items:e,responsive:{0:{items:2},768:{items:e>2?2:e},979:{items:e>3?3:e},1199:{items:e}},rtl:0!==Number(i),navSpeed:800,autoplaySpeed:4e3,autoplayHoverPause:!0,nav:!0,navText:["<i class='lg-icon'></i>","<i class='lg-icon'></i>"],dots:!1})})),t(".gallery-masonry",e).imagesLoaded(function(){n()}),t(window).on("resize",function(){n()}),t.fn.lightGallery){var s="a";t(".enable-lightbox",e).find(".g-item").first().is("div")&&(s="div"),t(".enable-lightbox",e).lightGallery({mode:"lg-fade",selector:s})}}A(),i.on("header_view_changed",function(){A()}),t(".parallax-hero").each(function(){var e=t(this);e.addClass("loading");var i=!0;e.find("img").length>0&&(i=!1),t(".parallax-bg",e).imagesLoaded({background:i},function(){e.find(".hero-slideshow-wrapper").addClass("loaded"),e.removeClass("loading"),setTimeout(function(){e.find(".hero-slideshow-wrapper").find(".slider-spinner").remove()},600)}).fail(function(t){e.removeClass("loading"),e.find(".hero-slideshow-wrapper").addClass("loaded"),e.find(".hero-slideshow-wrapper").find(".slider-spinner").remove()})}),t(".section-parallax").each(function(){var e=t(this),i=!0;e.find("img").length>0&&(i=!1),t(".parallax-bg",e).imagesLoaded({background:i},function(){}).fail(function(t){})}),setTimeout(function(){t(window).trigger("scroll")},500),_(t(".gallery-content")),t.fn.jarallax&&jQuery(".jarallax").each(function(){var t=jQuery(this),e=t.attr("data-speed")||.5;(e=parseFloat(e))>0&&t.jarallax({speed:e})}),"undefined"!=typeof wp&&wp.customize&&wp.customize.selectiveRefresh&&wp.customize.selectiveRefresh.bind("partial-content-rendered",function(e){"section-gallery"===e.partial.id&&(_(e.container.find(".gallery-content")),t(window).trigger("resize"))})})},1275:()=>{!function(t,e,i){"use strict";t.fn.backstretch=function(n,o){return n!==i&&0!==n.length||t.error("No images were supplied for Backstretch"),0===t(e).scrollTop()&&e.scrollTo(0,0),this.each(function(){var e=t(this),i=e.data("backstretch");if(i){if("string"==typeof n&&"function"==typeof i[n])return void i[n](o);o=t.extend(i.options,o),i.destroy(!0)}i=new s(this,n,o),e.data("backstretch",i)})},t.backstretch=function(e,i){return t("body").backstretch(e,i).data("backstretch")},t.expr[":"].backstretch=function(e){return t(e).data("backstretch")!==i},t.fn.backstretch.defaults={centeredX:!0,centeredY:!0,duration:5e3,fade:0};var n={left:0,top:0,overflow:"hidden",margin:0,padding:0,height:"100%",width:"100%",zIndex:-999999},o={position:"absolute",display:"none",margin:0,padding:0,border:"none",width:"auto",height:"auto",maxHeight:"none",maxWidth:"none",zIndex:-999999},s=function(i,o,s){this.options=t.extend({},t.fn.backstretch.defaults,s||{}),this.images=t.isArray(o)?o:[o],t.each(this.images,function(){t("<img />")[0].src=this}),this.isBody=i===document.body,this.$container=t(i),this.$root=this.isBody?t(g?e:document):this.$container;var r=this.$container.children(".backstretch").first();if(this.$wrap=r.length?r:t('<div class="backstretch"></div>').css(n).appendTo(this.$container),!this.isBody){var a=this.$container.css("position"),l=this.$container.css("zIndex");this.$container.css({position:"static"===a?"relative":a,zIndex:"auto"===l?0:l,background:"none"}),this.$wrap.css({zIndex:-999998})}this.$wrap.css({position:this.isBody&&g?"fixed":"absolute"}),this.index=0,this.show(this.index),t(e).on("resize.backstretch",t.proxy(this.resize,this)).on("orientationchange.backstretch",t.proxy(function(){this.isBody&&0===e.pageYOffset&&(e.scrollTo(0,1),this.resize())},this))};s.prototype={resize:function(){try{var t,i={left:0,top:0},n=this.isBody?this.$root.width():this.$root.innerWidth(),o=n,s=this.isBody?e.innerHeight?e.innerHeight:this.$root.height():this.$root.innerHeight(),r=o/this.$img.data("ratio");r>=s?(t=(r-s)/2,this.options.centeredY&&(i.top="-"+t+"px")):(t=((o=(r=s)*this.$img.data("ratio"))-n)/2,this.options.centeredX&&(i.left="-"+t+"px")),this.$wrap.css({width:n,height:s}).find("img:not(.deleteable)").css({width:o,height:r}).css(i)}catch(t){}return this},show:function(e){if(!(Math.abs(e)>this.images.length-1)){var i=this,n=i.$wrap.find("img").addClass("deleteable"),s={relatedTarget:i.$container[0]};return i.$container.trigger(t.Event("backstretch.before",s),[i,e]),this.index=e,clearInterval(i.interval),i.$img=t("<img />").css(o).bind("load",function(o){var r=this.width||t(o.target).width(),a=this.height||t(o.target).height();t(this).data("ratio",r/a),t(this).fadeIn(i.options.speed||i.options.fade,function(){n.remove(),i.paused||i.cycle(),t(["after","show"]).each(function(){i.$container.trigger(t.Event("backstretch."+this,s),[i,e])})}),i.resize()}).appendTo(i.$wrap),i.$img.attr("src",i.images[e]),i}},next:function(){return this.show(this.index<this.images.length-1?this.index+1:0)},prev:function(){return this.show(0===this.index?this.images.length-1:this.index-1)},pause:function(){return this.paused=!0,this},resume:function(){return this.paused=!1,this.next(),this},cycle:function(){return this.images.length>1&&(clearInterval(this.interval),this.interval=setInterval(t.proxy(function(){this.paused||this.next()},this),this.options.duration)),this},destroy:function(i){t(e).off("resize.backstretch orientationchange.backstretch"),clearInterval(this.interval),i||this.$wrap.remove(),this.$container.removeData("backstretch")}};var r,a,l,c,h,d,u,p,f,m,g=(r=navigator.userAgent,a=navigator.platform,c=!!(l=r.match(/AppleWebKit\/([0-9]+)/))&&l[1],d=!!(h=r.match(/Fennec\/([0-9]+)/))&&h[1],p=!!(u=r.match(/Opera Mobi\/([0-9]+)/))&&u[1],m=!!(f=r.match(/MSIE ([0-9]+)/))&&f[1],!((a.indexOf("iPhone")>-1||a.indexOf("iPad")>-1||a.indexOf("iPod")>-1)&&c&&c<534||e.operamini&&"[object OperaMini]"==={}.toString.call(e.operamini)||u&&p<7458||r.indexOf("Android")>-1&&c&&c<533||d&&d<6||"palmGetResource"in e&&c&&c<534||r.indexOf("MeeGo")>-1&&r.indexOf("NokiaBrowser/8.5.0")>-1||m&&m<=6))}(jQuery,window)},1509:()=>{!function(t){"use strict";t.fn.fitVids=function(e){var i={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("div");o.innerHTML='<p>x</p><style id="fit-vids-style">.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%;}</style>',n.appendChild(o.childNodes[1])}return e&&t.extend(i,e),this.each(function(){var e=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];i.customSelector&&e.push(i.customSelector);var n=".fitvidsignore";i.ignore&&(n=n+", "+i.ignore);var o=t(this).find(e.join(","));(o=(o=o.not("object object")).not(n)).each(function(){var e=t(this);if(!(e.parents(n).length>0||"embed"===this.tagName.toLowerCase()&&e.parent("object").length||e.parent(".fluid-width-video-wrapper").length)){e.css("height")||e.css("width")||!isNaN(e.attr("height"))&&!isNaN(e.attr("width"))||(e.attr("height",9),e.attr("width",16));var i=("object"===this.tagName.toLowerCase()||e.attr("height")&&!isNaN(parseInt(e.attr("height"),10))?parseInt(e.attr("height"),10):e.height())/(isNaN(parseInt(e.attr("width"),10))?e.width():parseInt(e.attr("width"),10));if(!e.attr("name")){var o="fitvid"+t.fn.fitVids._count;e.attr("name",o),t.fn.fitVids._count++}e.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*i+"%"),e.removeAttr("height").removeAttr("width")}})})},t.fn.fitVids._count=0}(window.jQuery||window.Zepto)},1537:()=>{!function(){"use strict";var t=0,e={};function i(n){if(!n)throw new Error("No options passed to Waypoint constructor");if(!n.element)throw new Error("No element option passed to Waypoint constructor");if(!n.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+t,this.options=i.Adapter.extend({},i.defaults,n),this.element=this.options.element,this.adapter=new i.Adapter(this.element),this.callback=n.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=i.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=i.Context.findOrCreateByElement(this.options.context),i.offsetAliases[this.options.offset]&&(this.options.offset=i.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),e[this.key]=this,t+=1}i.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},i.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},i.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete e[this.key]},i.prototype.disable=function(){return this.enabled=!1,this},i.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},i.prototype.next=function(){return this.group.next(this)},i.prototype.previous=function(){return this.group.previous(this)},i.invokeAll=function(t){var i=[];for(var n in e)i.push(e[n]);for(var o=0,s=i.length;o<s;o++)i[o][t]()},i.destroyAll=function(){i.invokeAll("destroy")},i.disableAll=function(){i.invokeAll("disable")},i.enableAll=function(){for(var t in i.Context.refreshAll(),e)e[t].enabled=!0;return this},i.refreshAll=function(){i.Context.refreshAll()},i.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},i.viewportWidth=function(){return document.documentElement.clientWidth},i.adapters=[],i.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},i.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=i}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}var e=0,i={},n=window.Waypoint,o=window.onload;function s(t){this.element=t,this.Adapter=n.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+e,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,i[t.waypointContextKey]=this,e+=1,n.windowContext||(n.windowContext=!0,n.windowContext=new s(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}s.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},s.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical),n=this.element==this.element.window;t&&e&&!n&&(this.adapter.off(".waypoints"),delete i[this.key])},s.prototype.createThrottledResizeHandler=function(){var t=this;function e(){t.handleResize(),t.didResize=!1}this.adapter.on("resize.waypoints",function(){t.didResize||(t.didResize=!0,n.requestAnimationFrame(e))})},s.prototype.createThrottledScrollHandler=function(){var t=this;function e(){t.handleScroll(),t.didScroll=!1}this.adapter.on("scroll.waypoints",function(){t.didScroll&&!n.isTouch||(t.didScroll=!0,n.requestAnimationFrame(e))})},s.prototype.handleResize=function(){n.Context.refreshAll()},s.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var i in e){var n=e[i],o=n.newScroll>n.oldScroll?n.forward:n.backward;for(var s in this.waypoints[i]){var r=this.waypoints[i][s];if(null!==r.triggerPoint){var a=n.oldScroll<r.triggerPoint,l=n.newScroll>=r.triggerPoint;(a&&l||!a&&!l)&&(r.queueTrigger(o),t[r.group.id]=r.group)}}}for(var c in t)t[c].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},s.prototype.innerHeight=function(){return this.element==this.element.window?n.viewportHeight():this.adapter.innerHeight()},s.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},s.prototype.innerWidth=function(){return this.element==this.element.window?n.viewportWidth():this.adapter.innerWidth()},s.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var n=0,o=t.length;n<o;n++)t[n].destroy()},s.prototype.refresh=function(){var t,e=this.element==this.element.window,i=e?void 0:this.adapter.offset(),o={};for(var s in this.handleScroll(),t={horizontal:{contextOffset:e?0:i.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:i.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}}){var r=t[s];for(var a in this.waypoints[s]){var l,c,h,d,u=this.waypoints[s][a],p=u.options.offset,f=u.triggerPoint,m=0,g=null==f;u.element!==u.element.window&&(m=u.adapter.offset()[r.offsetProp]),"function"==typeof p?p=p.apply(u):"string"==typeof p&&(p=parseFloat(p),u.options.offset.indexOf("%")>-1&&(p=Math.ceil(r.contextDimension*p/100))),l=r.contextScroll-r.contextOffset,u.triggerPoint=Math.floor(m+l-p),c=f<r.oldScroll,h=u.triggerPoint>=r.oldScroll,d=!c&&!h,!g&&c&&h?(u.queueTrigger(r.backward),o[u.group.id]=u.group):(!g&&d||g&&r.oldScroll>=u.triggerPoint)&&(u.queueTrigger(r.forward),o[u.group.id]=u.group)}}return n.requestAnimationFrame(function(){for(var t in o)o[t].flushTriggers()}),this},s.findOrCreateByElement=function(t){return s.findByElement(t)||new s(t)},s.refreshAll=function(){for(var t in i)i[t].refresh()},s.findByElement=function(t){return i[t.waypointContextKey]},window.onload=function(){o&&o(),s.refreshAll()},n.requestAnimationFrame=function(e){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t).call(window,e)},n.Context=s}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}var i={vertical:{},horizontal:{}},n=window.Waypoint;function o(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),i[this.axis][this.name]=this}o.prototype.add=function(t){this.waypoints.push(t)},o.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},o.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var n=this.triggerQueues[i],o="up"===i||"left"===i;n.sort(o?e:t);for(var s=0,r=n.length;s<r;s+=1){var a=n[s];(a.options.continuous||s===n.length-1)&&a.trigger([i])}}this.clearTriggerQueues()},o.prototype.next=function(e){this.waypoints.sort(t);var i=n.Adapter.inArray(e,this.waypoints);return i===this.waypoints.length-1?null:this.waypoints[i+1]},o.prototype.previous=function(e){this.waypoints.sort(t);var i=n.Adapter.inArray(e,this.waypoints);return i?this.waypoints[i-1]:null},o.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},o.prototype.remove=function(t){var e=n.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},o.prototype.first=function(){return this.waypoints[0]},o.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},o.findOrCreate=function(t){return i[t.axis][t.name]||new o(t)},n.Group=o}(),function(){"use strict";var t=window.jQuery,e=window.Waypoint;function i(e){this.$element=t(e)}t.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(t,e){i.prototype[e]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[e].apply(this.$element,t)}}),t.each(["extend","inArray","isEmptyObject"],function(e,n){i[n]=t[n]}),e.adapters.push({name:"jquery",Adapter:i}),e.Adapter=i}(),function(){"use strict";var t=window.Waypoint;function e(e){return function(){var i=[],n=arguments[0];return e.isFunction(arguments[0])&&((n=e.extend({},arguments[1])).handler=arguments[0]),this.each(function(){var o=e.extend({},n,{element:this});"string"==typeof o.context&&(o.context=e(this).closest(o.context)[0]),i.push(new t(o))}),i}}window.jQuery&&(window.jQuery.fn.waypoint=e(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=e(window.Zepto))}()},1813:()=>{!function(t){"use strict";t.fn.counterUp=function(e){var i,n=t.extend({time:400,delay:10,offset:100,beginAt:0,formatter:!1,context:"window",callback:function(){}},e);return this.each(function(){var e=t(this),o={time:t(this).data("counterup-time")||n.time,delay:t(this).data("counterup-delay")||n.delay,offset:t(this).data("counterup-offset")||n.offset,beginAt:t(this).data("counterup-beginat")||n.beginAt,context:t(this).data("counterup-context")||n.context};e.waypoint(function(t){!function(){var t=[],s=o.time/o.delay,r=e.attr("data-num")?e.attr("data-num"):e.text(),a=/[0-9]+,[0-9]+/.test(r),l=((r=r.replace(/,/g,"")).split(".")[1]||[]).length;o.beginAt>r&&(o.beginAt=r);var c=/[0-9]+:[0-9]+:[0-9]+/.test(r);if(c){var h=r.split(":"),d=1;for(i=0;h.length>0;)i+=d*parseInt(h.pop(),10),d*=60}for(var u=s;u>=o.beginAt/r*s;u--){var p=parseFloat(r/s*u).toFixed(l);if(c){p=parseInt(i/s*u);var f=parseInt(p/3600)%24,m=parseInt(p/60)%60,g=parseInt(p%60,10);p=(f<10?"0"+f:f)+":"+(m<10?"0"+m:m)+":"+(g<10?"0"+g:g)}if(a)for(;/(\d+)(\d{3})/.test(p.toString());)p=p.toString().replace(/(\d+)(\d{3})/,"$1,$2");n.formatter&&(p=n.formatter.call(this,p)),t.unshift(p)}e.data("counterup-nums",t),e.text(o.beginAt),e.data("counterup-func",function(){e.data("counterup-nums")?(e.html(e.data("counterup-nums").shift()),e.data("counterup-nums").length?setTimeout(e.data("counterup-func"),o.delay):(e.data("counterup-nums",null),e.data("counterup-func",null),n.callback.call(this))):n.callback.call(this)}),setTimeout(e.data("counterup-func"),o.delay)}(),this.destroy()},{offset:o.offset+"%",context:o.context})})}}(jQuery)},2137:function(t){var e,i;e="undefined"!=typeof window?window:this,i=function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},n=i[t]=i[t]||[];return n.includes(e)||n.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let n=i.indexOf(e);return-1!=n&&i.splice(n,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let n=this._onceEvents&&this._onceEvents[t];for(let o of i)n&&n[o]&&(this.off(t,o),delete n[o]),o.apply(this,e);return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t},t.exports?t.exports=i():e.EvEmitter=i()},2556:()=>{!function(t,e,i){if("undefined"!=typeof Onepress_Bully){var n,o=t(e),s=(o.height(),[]),r=(e.pageYOffset||i.documentElement.scrollTop)-(i.documentElement.clientTop||0),a=0,l=!0;n=t('<div class="c-bully">').appendTo("body"),Onepress_Bully.disable_mobile&&n.addClass("c-bully-hide-on-mobile"),$current=t('<div class="c-bully__bullet c-bully__bullet--active">').appendTo(n),function i(){if(!0!==l){var o=0,s=!1,r=n.offset().top,c=n.height()+r;if(t("#masthead").hasClass("is-sticky")&&(c-=t("#masthead").height()),t("#wpadminbar").length&&(c-=t("#wpadminbar").height()),t.each(Onepress_Bully.sections,function(e,i){var n=t("#"+e);if(n.length){var a=n.offset().top,l=n.height()+a;(a<=r||c>=l||c>=a&&l>c)&&(s=e,i.enable&&(o+=1))}}),s&&void 0!==Onepress_Bully.sections[s]&&(Onepress_Bully.sections[s].inverse?n.addClass("c-bully--inversed"):n.removeClass("c-bully--inversed")),o!==a){var h=n.find("#bully__"+s),d=n.offset(),u=0;h.length>0&&(u=h.offset().top-d.top),u=n.children(".c-bully__bullet").not(".c-bully__bullet--active").first().outerHeight(!0)*(o-1),$current.removeClass("c-bully__bullet--squash"),setTimeout(function(){$current.addClass("c-bully__bullet--squash")}),$current.css("top",u),a=o,n.find(".c-bully__bullet--pop").removeClass("c-bully__current"),h.addClass("c-bully__current")}}e.requestAnimationFrame(i),l=!0}(),o.on("load",function(e){var i;i=s,t.each(i,function(t,e){e.$bullet.addClass("c-bully__bullet--pop")}),l=!1}),o.on("scroll",function(t){!0===l&&(r=(e.pageYOffset||i.documentElement.scrollTop)-(i.documentElement.clientTop||0)),l=!1}),o.on("load resize",function(){c()}),t(i).on("hero_ready",function(){c()}),h.prototype={constructor:h,_reloadElement:function(){this.offset=t(this.element).offset(),this.height=t(this.element).outerHeight()},_calcTop:function(e){return t("#masthead").hasClass("is-sticky")&&(e-=t("#masthead").height()),t("#wpadminbar").length&&(e-=t("#wpadminbar").height()),e},onClick:function(){var e=this,i=t("html, body");if(0!=e.options.scrollDuration)if("auto"!==e.options.scrollDuration)i.animate({scrollTop:this._calcTop(e.offset.top)},e.options.scrollDuration);else{var n=Math.abs(r-e.offset.top)/(e.options.scrollPerSecond/1e3);i.animate({scrollTop:this._calcTop(e.offset.top)},n)}else i.scrollTop(this._calcTop(e.offset.top))}},t.fn.bully=function(e){return this.each(function(){t.data(this,"plugin_"+h)||t.data(this,"plugin_"+h,new h(this,e))})},t.fn.bully.defaults={scrollDuration:"auto",scrollPerSecond:4e3,sections:{}},o.on("rellax load",c),t.each(Onepress_Bully.sections,function(e,i){if(i.enable){const i=t("#"+e);i.length&&i.bully({scrollPerSecond:3e3})}})}function c(){t.each(s,function(t,e){e._reloadElement()})}function h(e,i){this.element=e,this.options=t.extend({},t.fn.bully.defaults,i);var o="",r=e.id,l=this,c=t('<div id="bully__'+r+'" class="c-bully__bullet">');Onepress_Bully.enable_label&&(r&&void 0!==Onepress_Bully.sections[r]&&(o=Onepress_Bully.sections[r].title),o&&c.append('<div class="c-bully__title">'+o+"</div>")),c.data("bully-data",l).appendTo(n),c.on("click",function(t){t.preventDefault(),t.stopPropagation(),l.onClick()}),this.$bullet=c,l._reloadElement(),s.push(l),a=0}}(jQuery,window,document)},2805:function(t,e,i){t.exports=function(){"use strict";function t(t){"complete"===document.readyState||"interactive"===document.readyState?t():document.addEventListener("DOMContentLoaded",t,{capture:!0,once:!0,passive:!0})}let e;e="undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{};var n=e,o={type:"scroll",speed:.5,containerClass:"jarallax-container",imgSrc:null,imgElement:".jarallax-img",imgSize:"cover",imgPosition:"50% 50%",imgRepeat:"no-repeat",keepImg:!1,elementInViewport:null,zIndex:-100,disableParallax:!1,onScroll:null,onInit:null,onDestroy:null,onCoverImage:null,videoClass:"jarallax-video",videoSrc:null,videoStartTime:0,videoEndTime:0,videoVolume:0,videoLoop:!0,videoPlayOnlyVisible:!0,videoLazyLoading:!0,disableVideo:!1,onVideoInsert:null,onVideoWorkerInit:null};const{navigator:s}=n,r=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(s.userAgent);let a,l,c;function h(){a=n.innerWidth||document.documentElement.clientWidth,l=r?(!c&&document.body&&(c=document.createElement("div"),c.style.cssText="position: fixed; top: -9999px; left: 0; height: 100vh; width: 0;",document.body.appendChild(c)),(c?c.clientHeight:0)||n.innerHeight||document.documentElement.clientHeight):n.innerHeight||document.documentElement.clientHeight}function d(){return{width:a,height:l}}h(),n.addEventListener("resize",h),n.addEventListener("orientationchange",h),n.addEventListener("load",h),t(()=>{h()});const u=[];function p(){if(!u.length)return;const{width:t,height:e}=d();u.forEach((i,n)=>{const{instance:o,oldData:s}=i;if(!o.isVisible())return;const r=o.$item.getBoundingClientRect(),a={width:r.width,height:r.height,top:r.top,bottom:r.bottom,wndW:t,wndH:e},l=!s||s.wndW!==a.wndW||s.wndH!==a.wndH||s.width!==a.width||s.height!==a.height,c=l||!s||s.top!==a.top||s.bottom!==a.bottom;u[n].oldData=a,l&&o.onResize(),c&&o.onScroll()}),n.requestAnimationFrame(p)}const f=new n.IntersectionObserver(t=>{t.forEach(t=>{t.target.jarallax.isElementInViewport=t.isIntersecting})},{rootMargin:"50px"});const{navigator:m}=n;let g=0;class y{constructor(t,e){const i=this;i.instanceID=g,g+=1,i.$item=t,i.defaults={...o};const n=i.$item.dataset||{},s={};if(Object.keys(n).forEach(t=>{const e=t.substr(0,1).toLowerCase()+t.substr(1);e&&void 0!==i.defaults[e]&&(s[e]=n[t])}),i.options=i.extend({},i.defaults,s,e),i.pureOptions=i.extend({},i.options),Object.keys(i.options).forEach(t=>{"true"===i.options[t]?i.options[t]=!0:"false"===i.options[t]&&(i.options[t]=!1)}),i.options.speed=Math.min(2,Math.max(-1,parseFloat(i.options.speed))),"string"==typeof i.options.disableParallax&&(i.options.disableParallax=new RegExp(i.options.disableParallax)),i.options.disableParallax instanceof RegExp){const t=i.options.disableParallax;i.options.disableParallax=()=>t.test(m.userAgent)}if("function"!=typeof i.options.disableParallax&&(i.options.disableParallax=()=>!1),"string"==typeof i.options.disableVideo&&(i.options.disableVideo=new RegExp(i.options.disableVideo)),i.options.disableVideo instanceof RegExp){const t=i.options.disableVideo;i.options.disableVideo=()=>t.test(m.userAgent)}"function"!=typeof i.options.disableVideo&&(i.options.disableVideo=()=>!1);let r=i.options.elementInViewport;r&&"object"==typeof r&&void 0!==r.length&&([r]=r),r instanceof Element||(r=null),i.options.elementInViewport=r,i.image={src:i.options.imgSrc||null,$container:null,useImgTag:!1,position:"fixed"},i.initImg()&&i.canInitParallax()&&i.init()}css(t,e){return function(t,e){return"string"==typeof e?n.getComputedStyle(t).getPropertyValue(e):(Object.keys(e).forEach(i=>{t.style[i]=e[i]}),t)}(t,e)}extend(t,...e){return function(t,...e){return t=t||{},Object.keys(e).forEach(i=>{e[i]&&Object.keys(e[i]).forEach(n=>{t[n]=e[i][n]})}),t}(t,...e)}getWindowData(){const{width:t,height:e}=d();return{width:t,height:e,y:document.documentElement.scrollTop}}initImg(){const t=this;let e=t.options.imgElement;return e&&"string"==typeof e&&(e=t.$item.querySelector(e)),e instanceof Element||(t.options.imgSrc?(e=new Image,e.src=t.options.imgSrc):e=null),e&&(t.options.keepImg?t.image.$item=e.cloneNode(!0):(t.image.$item=e,t.image.$itemParent=e.parentNode),t.image.useImgTag=!0),!(!t.image.$item&&(null===t.image.src&&(t.image.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",t.image.bgImage=t.css(t.$item,"background-image")),!t.image.bgImage||"none"===t.image.bgImage))}canInitParallax(){return!this.options.disableParallax()}init(){const t=this,e={position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden"};let i={pointerEvents:"none",transformStyle:"preserve-3d",backfaceVisibility:"hidden"};if(!t.options.keepImg){const e=t.$item.getAttribute("style");if(e&&t.$item.setAttribute("data-jarallax-original-styles",e),t.image.useImgTag){const e=t.image.$item.getAttribute("style");e&&t.image.$item.setAttribute("data-jarallax-original-styles",e)}}if("static"===t.css(t.$item,"position")&&t.css(t.$item,{position:"relative"}),"auto"===t.css(t.$item,"z-index")&&t.css(t.$item,{zIndex:0}),t.image.$container=document.createElement("div"),t.css(t.image.$container,e),t.css(t.image.$container,{"z-index":t.options.zIndex}),"fixed"===this.image.position&&t.css(t.image.$container,{"-webkit-clip-path":"polygon(0 0, 100% 0, 100% 100%, 0 100%)","clip-path":"polygon(0 0, 100% 0, 100% 100%, 0 100%)"}),t.image.$container.setAttribute("id",`jarallax-container-${t.instanceID}`),t.options.containerClass&&t.image.$container.setAttribute("class",t.options.containerClass),t.$item.appendChild(t.image.$container),t.image.useImgTag?i=t.extend({"object-fit":t.options.imgSize,"object-position":t.options.imgPosition,"max-width":"none"},e,i):(t.image.$item=document.createElement("div"),t.image.src&&(i=t.extend({"background-position":t.options.imgPosition,"background-size":t.options.imgSize,"background-repeat":t.options.imgRepeat,"background-image":t.image.bgImage||`url("${t.image.src}")`},e,i))),"opacity"!==t.options.type&&"scale"!==t.options.type&&"scale-opacity"!==t.options.type&&1!==t.options.speed||(t.image.position="absolute"),"fixed"===t.image.position){const e=function(t){const e=[];for(;null!==t.parentElement;)1===(t=t.parentElement).nodeType&&e.push(t);return e}(t.$item).filter(t=>{const e=n.getComputedStyle(t),i=e["-webkit-transform"]||e["-moz-transform"]||e.transform;return i&&"none"!==i||/(auto|scroll)/.test(e.overflow+e["overflow-y"]+e["overflow-x"])});t.image.position=e.length?"absolute":"fixed"}var o;i.position=t.image.position,t.css(t.image.$item,i),t.image.$container.appendChild(t.image.$item),t.onResize(),t.onScroll(!0),t.options.onInit&&t.options.onInit.call(t),"none"!==t.css(t.$item,"background-image")&&t.css(t.$item,{"background-image":"none"}),o=t,u.push({instance:o}),1===u.length&&n.requestAnimationFrame(p),f.observe(o.options.elementInViewport||o.$item)}destroy(){const t=this;var e;e=t,u.forEach((t,i)=>{t.instance.instanceID===e.instanceID&&u.splice(i,1)}),f.unobserve(e.options.elementInViewport||e.$item);const i=t.$item.getAttribute("data-jarallax-original-styles");if(t.$item.removeAttribute("data-jarallax-original-styles"),i?t.$item.setAttribute("style",i):t.$item.removeAttribute("style"),t.image.useImgTag){const e=t.image.$item.getAttribute("data-jarallax-original-styles");t.image.$item.removeAttribute("data-jarallax-original-styles"),e?t.image.$item.setAttribute("style",i):t.image.$item.removeAttribute("style"),t.image.$itemParent&&t.image.$itemParent.appendChild(t.image.$item)}t.image.$container&&t.image.$container.parentNode.removeChild(t.image.$container),t.options.onDestroy&&t.options.onDestroy.call(t),delete t.$item.jarallax}coverImage(){const t=this,{height:e}=d(),i=t.image.$container.getBoundingClientRect(),n=i.height,{speed:o}=t.options,s="scroll"===t.options.type||"scroll-opacity"===t.options.type;let r=0,a=n,l=0;return s&&(o<0?(r=o*Math.max(n,e),e<n&&(r-=o*(n-e))):r=o*(n+e),o>1?a=Math.abs(r-e):o<0?a=r/o+Math.abs(r):a+=(e-n)*(1-o),r/=2),t.parallaxScrollDistance=r,l=s?(e-a)/2:(n-a)/2,t.css(t.image.$item,{height:`${a}px`,marginTop:`${l}px`,left:"fixed"===t.image.position?`${i.left}px`:"0",width:`${i.width}px`}),t.options.onCoverImage&&t.options.onCoverImage.call(t),{image:{height:a,marginTop:l},container:i}}isVisible(){return this.isElementInViewport||!1}onScroll(t){const e=this;if(!t&&!e.isVisible())return;const{height:i}=d(),n=e.$item.getBoundingClientRect(),o=n.top,s=n.height,r={},a=Math.max(0,o),l=Math.max(0,s+o),c=Math.max(0,-o),h=Math.max(0,o+s-i),u=Math.max(0,s-(o+s-i)),p=Math.max(0,-o+i-s),f=1-(i-o)/(i+s)*2;let m=1;if(s<i?m=1-(c||h)/s:l<=i?m=l/i:u<=i&&(m=u/i),"opacity"!==e.options.type&&"scale-opacity"!==e.options.type&&"scroll-opacity"!==e.options.type||(r.transform="translate3d(0,0,0)",r.opacity=m),"scale"===e.options.type||"scale-opacity"===e.options.type){let t=1;e.options.speed<0?t-=e.options.speed*m:t+=e.options.speed*(1-m),r.transform=`scale(${t}) translate3d(0,0,0)`}if("scroll"===e.options.type||"scroll-opacity"===e.options.type){let t=e.parallaxScrollDistance*f;"absolute"===e.image.position&&(t-=o),r.transform=`translate3d(0,${t}px,0)`}e.css(e.image.$item,r),e.options.onScroll&&e.options.onScroll.call(e,{section:n,beforeTop:a,beforeTopEnd:l,afterTop:c,beforeBottom:h,beforeBottomEnd:u,afterBottom:p,visiblePercent:m,fromViewportCenter:f})}onResize(){this.coverImage()}}const v=function(t,e,...i){("object"==typeof HTMLElement?t instanceof HTMLElement:t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName)&&(t=[t]);const n=t.length;let o,s=0;for(;s<n;s+=1)if("object"==typeof e||void 0===e?t[s].jarallax||(t[s].jarallax=new y(t[s],e)):t[s].jarallax&&(o=t[s].jarallax[e].apply(t[s].jarallax,i)),void 0!==o)return o;return t};v.constructor=y;const w=n.jQuery;if(void 0!==w){const t=function(...t){Array.prototype.unshift.call(t,this);const e=v.apply(n,t);return"object"!=typeof e?e:this};t.constructor=v.constructor;const e=w.fn.jarallax;w.fn.jarallax=t,w.fn.jarallax.noConflict=function(){return w.fn.jarallax=e,this}}return t(()=>{v(document.querySelectorAll("[data-jarallax]"))}),v}()},4373:()=>{!function(t){"use strict";var e="Morphext",i={animation:"bounceIn",separator:",",speed:2e3,complete:t.noop};function n(e,n){this.element=t(e),this.settings=t.extend({},i,n),this._defaults=i,this._init()}n.prototype={_init:function(){var e=this;this.phrases=[],this.element.addClass("morphext"),t.each(this.element.text().split(this.settings.separator),function(i,n){e.phrases.push(t.trim(n))}),this.index=-1,this.animate(),this.start()},animate:function(){this.index=++this.index%this.phrases.length,this.element[0].innerHTML='<span class="animated '+this.settings.animation+'">'+this.phrases[this.index]+"</span>",t.isFunction(this.settings.complete)&&this.settings.complete.call(this)},start:function(){var t=this;this._interval=setInterval(function(){t.animate()},this.settings.speed)},stop:function(){this._interval=clearInterval(this._interval)}},t.fn[e]=function(i){return this.each(function(){t.data(this,"plugin_"+e)||t.data(this,"plugin_"+e,new n(this,i))})}}(jQuery)},8096:function(t){(function(){var e,i,n,o,s,r=function(t,e){return function(){return t.apply(e,arguments)}},a=[].indexOf||function(t){for(var e=0,i=this.length;e<i;e++)if(e in this&&this[e]===t)return e;return-1};i=function(){function t(){}return t.prototype.extend=function(t,e){var i,n;for(i in e)n=e[i],null==t[i]&&(t[i]=n);return t},t.prototype.isMobile=function(t){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t)},t.prototype.createEvent=function(t,e,i,n){var o;return null==e&&(e=!1),null==i&&(i=!1),null==n&&(n=null),null!=document.createEvent?(o=document.createEvent("CustomEvent")).initCustomEvent(t,e,i,n):null!=document.createEventObject?(o=document.createEventObject()).eventType=t:o.eventName=t,o},t.prototype.emitEvent=function(t,e){return null!=t.dispatchEvent?t.dispatchEvent(e):e in(null!=t)?t[e]():"on"+e in(null!=t)?t["on"+e]():void 0},t.prototype.addEvent=function(t,e,i){return null!=t.addEventListener?t.addEventListener(e,i,!1):null!=t.attachEvent?t.attachEvent("on"+e,i):t[e]=i},t.prototype.removeEvent=function(t,e,i){return null!=t.removeEventListener?t.removeEventListener(e,i,!1):null!=t.detachEvent?t.detachEvent("on"+e,i):delete t[e]},t.prototype.innerHeight=function(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight},t}(),n=this.WeakMap||this.MozWeakMap||(n=function(){function t(){this.keys=[],this.values=[]}return t.prototype.get=function(t){var e,i,n,o;for(e=i=0,n=(o=this.keys).length;i<n;e=++i)if(o[e]===t)return this.values[e]},t.prototype.set=function(t,e){var i,n,o,s;for(i=n=0,o=(s=this.keys).length;n<o;i=++n)if(s[i]===t)return void(this.values[i]=e);return this.keys.push(t),this.values.push(e)},t}()),e=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(e=function(){function t(){"undefined"!=typeof console&&null!==console&&console.warn("MutationObserver is not supported by your browser."),"undefined"!=typeof console&&null!==console&&console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return t.notSupported=!0,t.prototype.observe=function(){},t}()),o=this.getComputedStyle||function(t,e){return this.getPropertyValue=function(e){var i;return"float"===e&&(e="styleFloat"),s.test(e)&&e.replace(s,function(t,e){return e.toUpperCase()}),(null!=(i=t.currentStyle)?i[e]:void 0)||null},this},s=/(\-([a-z]){1})/g,this.WOW=function(){function t(t){null==t&&(t={}),this.scrollCallback=r(this.scrollCallback,this),this.scrollHandler=r(this.scrollHandler,this),this.resetAnimation=r(this.resetAnimation,this),this.start=r(this.start,this),this.scrolled=!0,this.config=this.util().extend(t,this.defaults),null!=t.scrollContainer&&(this.config.scrollContainer=document.querySelector(t.scrollContainer)),this.animationNameCache=new n,this.wowEvent=this.util().createEvent(this.config.boxClass)}return t.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null,scrollContainer:null},t.prototype.init=function(){var t;return this.element=window.document.documentElement,"interactive"===(t=document.readyState)||"complete"===t?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},t.prototype.start=function(){var t,i,n,o,s;if(this.stopped=!1,this.boxes=function(){var e,i,n,o;for(o=[],e=0,i=(n=this.element.querySelectorAll("."+this.config.boxClass)).length;e<i;e++)t=n[e],o.push(t);return o}.call(this),this.all=function(){var e,i,n,o;for(o=[],e=0,i=(n=this.boxes).length;e<i;e++)t=n[e],o.push(t);return o}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else for(i=0,n=(o=this.boxes).length;i<n;i++)t=o[i],this.applyStyle(t,!0);if(this.disabled()||(this.util().addEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().addEvent(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live)return new e((s=this,function(t){var e,i,n,o,r;for(r=[],e=0,i=t.length;e<i;e++)o=t[e],r.push(function(){var t,e,i,s;for(s=[],t=0,e=(i=o.addedNodes||[]).length;t<e;t++)n=i[t],s.push(this.doSync(n));return s}.call(s));return r})).observe(document.body,{childList:!0,subtree:!0})},t.prototype.stop=function(){if(this.stopped=!0,this.util().removeEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().removeEvent(window,"resize",this.scrollHandler),null!=this.interval)return clearInterval(this.interval)},t.prototype.sync=function(t){if(e.notSupported)return this.doSync(this.element)},t.prototype.doSync=function(t){var e,i,n,o,s;if(null==t&&(t=this.element),1===t.nodeType){for(s=[],i=0,n=(o=(t=t.parentNode||t).querySelectorAll("."+this.config.boxClass)).length;i<n;i++)e=o[i],a.call(this.all,e)<0?(this.boxes.push(e),this.all.push(e),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(e,!0),s.push(this.scrolled=!0)):s.push(void 0);return s}},t.prototype.show=function(t){return this.applyStyle(t),t.className=t.className+" "+this.config.animateClass,null!=this.config.callback&&this.config.callback(t),this.util().emitEvent(t,this.wowEvent),this.util().addEvent(t,"animationend",this.resetAnimation),this.util().addEvent(t,"oanimationend",this.resetAnimation),this.util().addEvent(t,"webkitAnimationEnd",this.resetAnimation),this.util().addEvent(t,"MSAnimationEnd",this.resetAnimation),t},t.prototype.applyStyle=function(t,e){var i,n,o,s;return n=t.getAttribute("data-wow-duration"),i=t.getAttribute("data-wow-delay"),o=t.getAttribute("data-wow-iteration"),this.animate((s=this,function(){return s.customStyle(t,e,n,i,o)}))},t.prototype.animate="requestAnimationFrame"in window?function(t){return window.requestAnimationFrame(t)}:function(t){return t()},t.prototype.resetStyle=function(){var t,e,i,n,o;for(o=[],e=0,i=(n=this.boxes).length;e<i;e++)t=n[e],o.push(t.style.visibility="visible");return o},t.prototype.resetAnimation=function(t){var e;if(t.type.toLowerCase().indexOf("animationend")>=0)return(e=t.target||t.srcElement).className=e.className.replace(this.config.animateClass,"").trim()},t.prototype.customStyle=function(t,e,i,n,o){return e&&this.cacheAnimationName(t),t.style.visibility=e?"hidden":"visible",i&&this.vendorSet(t.style,{animationDuration:i}),n&&this.vendorSet(t.style,{animationDelay:n}),o&&this.vendorSet(t.style,{animationIterationCount:o}),this.vendorSet(t.style,{animationName:e?"none":this.cachedAnimationName(t)}),t},t.prototype.vendors=["moz","webkit"],t.prototype.vendorSet=function(t,e){var i,n,o,s;for(i in n=[],e)o=e[i],t[""+i]=o,n.push(function(){var e,n,r,a;for(a=[],e=0,n=(r=this.vendors).length;e<n;e++)s=r[e],a.push(t[""+s+i.charAt(0).toUpperCase()+i.substr(1)]=o);return a}.call(this));return n},t.prototype.vendorCSS=function(t,e){var i,n,s,r,a,l;for(r=(a=o(t)).getPropertyCSSValue(e),i=0,n=(s=this.vendors).length;i<n;i++)l=s[i],r=r||a.getPropertyCSSValue("-"+l+"-"+e);return r},t.prototype.animationName=function(t){var e;try{e=this.vendorCSS(t,"animation-name").cssText}catch(i){e=o(t).getPropertyValue("animation-name")}return"none"===e?"":e},t.prototype.cacheAnimationName=function(t){return this.animationNameCache.set(t,this.animationName(t))},t.prototype.cachedAnimationName=function(t){return this.animationNameCache.get(t)},t.prototype.scrollHandler=function(){return this.scrolled=!0},t.prototype.scrollCallback=function(){var t;if(this.scrolled&&(this.scrolled=!1,this.boxes=function(){var e,i,n,o;for(o=[],e=0,i=(n=this.boxes).length;e<i;e++)(t=n[e])&&(this.isVisible(t)?this.show(t):o.push(t));return o}.call(this),!this.boxes.length&&!this.config.live))return this.stop()},t.prototype.offsetTop=function(t){for(var e;void 0===t.offsetTop;)t=t.parentNode;for(e=t.offsetTop;t=t.offsetParent;)e+=t.offsetTop;return e},t.prototype.isVisible=function(t){var e,i,n,o,s;return i=t.getAttribute("data-wow-offset")||this.config.offset,o=(s=this.config.scrollContainer&&this.config.scrollContainer.scrollTop||window.pageYOffset)+Math.min(this.element.clientHeight,this.util().innerHeight())-i,e=(n=this.offsetTop(t))+t.clientHeight,n<=o&&e>=s},t.prototype.util=function(){return null!=this._util?this._util:this._util=new i},t.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},t}(),t.exports&&(t.exports=this.WOW),"undefined"!=typeof window&&(window.WOW=this.WOW)}).call(this)},9327:function(t,e,i){var n,o;n="undefined"!=typeof window?window:this,o=function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},n=i[t]=i[t]||[];return n.includes(e)||n.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let n=i.indexOf(e);return-1!=n&&i.splice(n,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let n=this._onceEvents&&this._onceEvents[t];for(let o of i)n&&n[o]&&(this.off(t,o),delete n[o]),o.apply(this,e);return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t},t.exports?t.exports=o():n.EvEmitter=o(),function(e,n){t.exports?t.exports=n(e,i(2137)):e.imagesLoaded=n(e,e.EvEmitter)}("undefined"!=typeof window?window:this,function(t,e){let i=t.jQuery,n=t.console;function o(t,e,s){if(!(this instanceof o))return new o(t,e,s);let r=t;var a;"string"==typeof t&&(r=document.querySelectorAll(t)),r?(this.elements=(a=r,Array.isArray(a)?a:"object"==typeof a&&"number"==typeof a.length?[...a]:[a]),this.options={},"function"==typeof e?s=e:Object.assign(this.options,e),s&&this.on("always",s),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):n.error(`Bad element for imagesLoaded ${r||t}`)}o.prototype=Object.create(e.prototype),o.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const s=[1,9,11];o.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let{nodeType:e}=t;if(!e||!s.includes(e))return;let i=t.querySelectorAll("img");for(let t of i)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t)}};const r=/url\((['"])?(.*?)\1\)/gi;function a(t){this.img=t}function l(t,e){this.url=t,this.element=e,this.img=new Image}return o.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let i=r.exec(e.backgroundImage);for(;null!==i;){let n=i&&i[2];n&&this.addBackground(n,t),i=r.exec(e.backgroundImage)}},o.prototype.addImage=function(t){let e=new a(t);this.images.push(e)},o.prototype.addBackground=function(t,e){let i=new l(t,e);this.images.push(i)},o.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,i)=>{setTimeout(()=>{this.progress(t,e,i)})};this.images.forEach(function(e){e.once("progress",t),e.check()})},o.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&n&&n.log(`progress: ${i}`,t,e)},o.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},a.prototype=Object.create(e.prototype),a.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},a.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},a.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:i}=this.img,n="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,n,e])},a.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},a.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},a.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},a.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},l.prototype=Object.create(a.prototype),l.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},l.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},l.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},o.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(i=e,i.fn.imagesLoaded=function(t,e){return new o(this,t,e).jqDeferred.promise(i(this))})},o.makeJQueryPlugin(),o})}},e={};function i(n){var o=e[n];if(void 0!==o)return o.exports;var s=e[n]={exports:{}};return t[n].call(s.exports,s,s.exports,i),s.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";i(1509),i(4373),i(1275),i(1537),i(1813),i(9327),i(2805),i(2556),i(8096),i(1243)})()})();
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.sbjs=e()}}(function(){return function e(t,r,n){function a(s,o){if(!r[s]){if(!t[s]){var c="function"==typeof require&&require;if(!o&&c)return c(s,!0);if(i)return i(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var p=r[s]={exports:{}};t[s][0].call(p.exports,function(e){var r=t[s][1][e];return a(r||e)},p,p.exports,e,t,r,n)}return r[s].exports}for(var i="function"==typeof require&&require,s=0;s<n.length;s++)a(n[s]);return a}({1:[function(e,t,r){"use strict";var n=e("./init"),a={init:function(e){this.get=n(e),e&&e.callback&&"function"==typeof e.callback&&e.callback(this.get)}};t.exports=a},{"./init":6}],2:[function(e,t,r){"use strict";var n=e("./terms"),a=e("./helpers/utils"),i={containers:{current:"sbjs_current",current_extra:"sbjs_current_add",first:"sbjs_first",first_extra:"sbjs_first_add",session:"sbjs_session",udata:"sbjs_udata",promocode:"sbjs_promo"},service:{migrations:"sbjs_migrations"},delimiter:"|||",aliases:{main:{type:"typ",source:"src",medium:"mdm",campaign:"cmp",content:"cnt",term:"trm",id:"id",platform:"plt",format:"fmt",tactic:"tct"},extra:{fire_date:"fd",entrance_point:"ep",referer:"rf"},session:{pages_seen:"pgs",current_page:"cpg"},udata:{visits:"vst",ip:"uip",agent:"uag"},promo:"code"},pack:{main:function(e){return i.aliases.main.type+"="+e.type+i.delimiter+i.aliases.main.source+"="+e.source+i.delimiter+i.aliases.main.medium+"="+e.medium+i.delimiter+i.aliases.main.campaign+"="+e.campaign+i.delimiter+i.aliases.main.content+"="+e.content+i.delimiter+i.aliases.main.term+"="+e.term+i.delimiter+i.aliases.main.id+"="+e.id+i.delimiter+i.aliases.main.platform+"="+e.platform+i.delimiter+i.aliases.main.format+"="+e.format+i.delimiter+i.aliases.main.tactic+"="+e.tactic},extra:function(e){return i.aliases.extra.fire_date+"="+a.setDate(new Date,e)+i.delimiter+i.aliases.extra.entrance_point+"="+document.location.href+i.delimiter+i.aliases.extra.referer+"="+(document.referrer||n.none)},user:function(e,t){return i.aliases.udata.visits+"="+e+i.delimiter+i.aliases.udata.ip+"="+t+i.delimiter+i.aliases.udata.agent+"="+navigator.userAgent},session:function(e){return i.aliases.session.pages_seen+"="+e+i.delimiter+i.aliases.session.current_page+"="+document.location.href},promo:function(e){return i.aliases.promo+"="+a.setLeadingZeroToInt(a.randomInt(e.min,e.max),e.max.toString().length)}}};t.exports=i},{"./helpers/utils":5,"./terms":9}],3:[function(e,t,r){"use strict";var n=e("../data").delimiter;t.exports={useBase64:!1,setBase64Flag:function(e){this.useBase64=e},encodeData:function(e){return encodeURIComponent(e).replace(/\!/g,"%21").replace(/\~/g,"%7E").replace(/\*/g,"%2A").replace(/\'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29")},decodeData:function(e){try{return decodeURIComponent(e).replace(/\%21/g,"!").replace(/\%7E/g,"~").replace(/\%2A/g,"*").replace(/\%27/g,"'").replace(/\%28/g,"(").replace(/\%29/g,")")}catch(t){try{return unescape(e)}catch(r){return""}}},set:function(e,t,r,n,a){var i,s;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),i="; expires="+o.toGMTString()}else i="";s=n&&!a?";domain=."+n:"";var c=this.encodeData(t);this.useBase64&&(c=btoa(c).replace(/=+$/,"")),document.cookie=this.encodeData(e)+"="+c+i+s+"; path=/"},get:function(e){for(var t=this.encodeData(e)+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var a=r[n];" "===a.charAt(0);)a=a.substring(1,a.length);if(0===a.indexOf(t)){var i=a.substring(t.length,a.length);if(/^[A-Za-z0-9+/]+$/.test(i))try{i=atob(i.padEnd(4*Math.ceil(i.length/4),"="))}catch(s){}return this.decodeData(i)}}return null},destroy:function(e,t,r){this.set(e,"",-1,t,r)},parse:function(e){var t=[],r={};if("string"==typeof e)t.push(e);else for(var a in e)e.hasOwnProperty(a)&&t.push(e[a]);for(var i=0;i<t.length;i++){var s;r[this.unsbjs(t[i])]={},s=this.get(t[i])?this.get(t[i]).split(n):[];for(var o=0;o<s.length;o++){var c=s[o].split("="),u=c.splice(0,1);u.push(c.join("=")),r[this.unsbjs(t[i])][u[0]]=this.decodeData(u[1])}}return r},unsbjs:function(e){return e.replace("sbjs_","")}}},{"../data":2}],4:[function(e,t,r){"use strict";t.exports={parse:function(e){for(var t=this.parseOptions,r=t.parser[t.strictMode?"strict":"loose"].exec(e),n={},a=14;a--;)n[t.key[a]]=r[a]||"";return n[t.q.name]={},n[t.key[12]].replace(t.q.parser,function(e,r,a){r&&(n[t.q.name][r]=a)}),n},parseOptions:{strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},getParam:function(e){for(var t={},r=(e||window.location.search.substring(1)).split("&"),n=0;n<r.length;n++){var a=r[n].split("=");if("undefined"==typeof t[a[0]])t[a[0]]=a[1];else if("string"==typeof t[a[0]]){var i=[t[a[0]],a[1]];t[a[0]]=i}else t[a[0]].push(a[1])}return t},getHost:function(e){return this.parse(e).host.replace("www.","")}}},{}],5:[function(e,t,r){"use strict";t.exports={escapeRegexp:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},setDate:function(e,t){var r=e.getTimezoneOffset()/60,n=e.getHours(),a=t||0===t?t:-r;return e.setHours(n+r+a),e.getFullYear()+"-"+this.setLeadingZeroToInt(e.getMonth()+1,2)+"-"+this.setLeadingZeroToInt(e.getDate(),2)+" "+this.setLeadingZeroToInt(e.getHours(),2)+":"+this.setLeadingZeroToInt(e.getMinutes(),2)+":"+this.setLeadingZeroToInt(e.getSeconds(),2)},setLeadingZeroToInt:function(e,t){for(var r=e+"";r.length<t;)r="0"+r;return r},randomInt:function(e,t){return Math.floor(Math.random()*(t-e+1))+e}}},{}],6:[function(e,t,r){"use strict";var n=e("./data"),a=e("./terms"),i=e("./helpers/cookies"),s=e("./helpers/uri"),o=e("./helpers/utils"),c=e("./params"),u=e("./migrations");t.exports=function(e){var t,r,p,f,m,d,l,g,h,y,_,v,b,x=c.fetch(e),k=s.getParam(),w=x.domain.host,q=x.domain.isolate,I=x.lifetime;function j(e){switch(e){case a.traffic.utm:t=a.traffic.utm,r="undefined"!=typeof k.utm_source?k.utm_source:"undefined"!=typeof k.gclid?"google":"undefined"!=typeof k.yclid?"yandex":a.none,p="undefined"!=typeof k.utm_medium?k.utm_medium:"undefined"!=typeof k.gclid?"cpc":"undefined"!=typeof k.yclid?"cpc":a.none,f="undefined"!=typeof k.utm_campaign?k.utm_campaign:"undefined"!=typeof k[x.campaign_param]?k[x.campaign_param]:"undefined"!=typeof k.gclid?"google_cpc":"undefined"!=typeof k.yclid?"yandex_cpc":a.none,m="undefined"!=typeof k.utm_content?k.utm_content:"undefined"!=typeof k[x.content_param]?k[x.content_param]:a.none,l=k.utm_id||a.none,g=k.utm_source_platform||a.none,h=k.utm_creative_format||a.none,y=k.utm_marketing_tactic||a.none,d="undefined"!=typeof k.utm_term?k.utm_term:"undefined"!=typeof k[x.term_param]?k[x.term_param]:function(){var e=document.referrer;if(k.utm_term)return k.utm_term;if(!(e&&s.parse(e).host&&s.parse(e).host.match(/^(?:.*\.)?yandex\..{2,9}$/i)))return!1;try{return s.getParam(s.parse(document.referrer).query).text}catch(t){return!1}}()||a.none;break;case a.traffic.organic:t=a.traffic.organic,r=r||s.getHost(document.referrer),p=a.referer.organic,f=a.none,m=a.none,d=a.none,l=a.none,g=a.none,h=a.none,y=a.none;break;case a.traffic.referral:t=a.traffic.referral,r=r||s.getHost(document.referrer),p=p||a.referer.referral,f=a.none,m=s.parse(document.referrer).path,d=a.none,l=a.none,g=a.none,h=a.none,y=a.none;break;case a.traffic.typein:t=a.traffic.typein,r=x.typein_attributes.source,p=x.typein_attributes.medium,f=a.none,m=a.none,d=a.none,l=a.none,g=a.none,h=a.none,y=a.none;break;default:t=a.oops,r=a.oops,p=a.oops,f=a.oops,m=a.oops,d=a.oops,l=a.oops,g=a.oops,h=a.oops,y=a.oops}var i={type:t,source:r,medium:p,campaign:f,content:m,term:d,id:l,platform:g,format:h,tactic:y};return n.pack.main(i)}function R(e){var t=document.referrer;switch(e){case a.traffic.organic:return!!t&&H(t)&&function(e){var t=new RegExp("^(?:.*\\.)?"+o.escapeRegexp("yandex")+"\\..{2,9}$"),n=new RegExp(".*"+o.escapeRegexp("text")+"=.*"),a=new RegExp("^(?:www\\.)?"+o.escapeRegexp("google")+"\\..{2,9}$");if(s.parse(e).query&&s.parse(e).host.match(t)&&s.parse(e).query.match(n))return r="yandex",!0;if(s.parse(e).host.match(a))return r="google",!0;if(!s.parse(e).query)return!1;for(var i=0;i<x.organics.length;i++){if(s.parse(e).host.match(new RegExp("^(?:.*\\.)?"+o.escapeRegexp(x.organics[i].host)+"$","i"))&&s.parse(e).query.match(new RegExp(".*"+o.escapeRegexp(x.organics[i].param)+"=.*","i")))return r=x.organics[i].display||x.organics[i].host,!0;if(i+1===x.organics.length)return!1}}(t);case a.traffic.referral:return!!t&&H(t)&&function(e){if(!(x.referrals.length>0))return r=s.getHost(e),!0;for(var t=0;t<x.referrals.length;t++){if(s.parse(e).host.match(new RegExp("^(?:.*\\.)?"+o.escapeRegexp(x.referrals[t].host)+"$","i")))return r=x.referrals[t].display||x.referrals[t].host,p=x.referrals[t].medium||a.referer.referral,!0;if(t+1===x.referrals.length)return r=s.getHost(e),!0}}(t);default:return!1}}function H(e){if(x.domain){if(q)return s.getHost(e)!==s.getHost(w);var t=new RegExp("^(?:.*\\.)?"+o.escapeRegexp(w)+"$","i");return!s.getHost(e).match(t)}return s.getHost(e)!==s.getHost(document.location.href)}function D(){i.set(n.containers.current_extra,n.pack.extra(x.timezone_offset),I,w,q),i.get(n.containers.first_extra)||i.set(n.containers.first_extra,n.pack.extra(x.timezone_offset),I,w,q)}return i.setBase64Flag(x.base64),u.go(I,w,q),i.set(n.containers.current,function(){var e;if("undefined"!=typeof k.utm_source||"undefined"!=typeof k.utm_medium||"undefined"!=typeof k.utm_campaign||"undefined"!=typeof k.utm_content||"undefined"!=typeof k.utm_term||"undefined"!=typeof k.utm_id||"undefined"!=typeof k.utm_source_platform||"undefined"!=typeof k.utm_creative_format||"undefined"!=typeof k.utm_marketing_tactic||"undefined"!=typeof k.gclid||"undefined"!=typeof k.yclid||"undefined"!=typeof k[x.campaign_param]||"undefined"!=typeof k[x.term_param]||"undefined"!=typeof k[x.content_param])D(),e=j(a.traffic.utm);else if(R(a.traffic.organic))D(),e=j(a.traffic.organic);else if(!i.get(n.containers.session)&&R(a.traffic.referral))D(),e=j(a.traffic.referral);else{if(i.get(n.containers.first)||i.get(n.containers.current))return i.get(n.containers.current);D(),e=j(a.traffic.typein)}return e}(),I,w,q),i.get(n.containers.first)||i.set(n.containers.first,i.get(n.containers.current),I,w,q),i.get(n.containers.udata)?(_=parseInt(i.parse(n.containers.udata)[i.unsbjs(n.containers.udata)][n.aliases.udata.visits])||1,_=i.get(n.containers.session)?_:_+1,v=n.pack.user(_,x.user_ip)):(_=1,v=n.pack.user(_,x.user_ip)),i.set(n.containers.udata,v,I,w,q),i.get(n.containers.session)?(b=parseInt(i.parse(n.containers.session)[i.unsbjs(n.containers.session)][n.aliases.session.pages_seen])||1,b+=1):b=1,i.set(n.containers.session,n.pack.session(b),x.session_length,w,q),x.promocode&&!i.get(n.containers.promocode)&&i.set(n.containers.promocode,n.pack.promo(x.promocode),I,w,q),i.parse(n.containers)}},{"./data":2,"./helpers/cookies":3,"./helpers/uri":4,"./helpers/utils":5,"./migrations":7,"./params":8,"./terms":9}],7:[function(e,t,r){"use strict";var n=e("./data"),a=e("./helpers/cookies");t.exports={go:function(e,t,r){var i,s=this.migrations,o={l:e,d:t,i:r};if(a.get(n.containers.first)||a.get(n.service.migrations)){if(!a.get(n.service.migrations))for(i=0;i<s.length;i++)s[i].go(s[i].id,o)}else{var c=[];for(i=0;i<s.length;i++)c.push(s[i].id);var u="";for(i=0;i<c.length;i++)u+=c[i]+"=1",i<c.length-1&&(u+=n.delimiter);a.set(n.service.migrations,u,o.l,o.d,o.i)}},migrations:[{id:"1418474375998",version:"1.0.0-beta",go:function(e,t){var r=e+"=1",i=e+"=0",s=function(e,t,r){return t||r?e:n.delimiter};try{var o=[];for(var c in n.containers)n.containers.hasOwnProperty(c)&&o.push(n.containers[c]);for(var u=0;u<o.length;u++)if(a.get(o[u])){var p=a.get(o[u]).replace(/(\|)?\|(\|)?/g,s);a.destroy(o[u],t.d,t.i),a.destroy(o[u],t.d,!t.i),a.set(o[u],p,t.l,t.d,t.i)}a.get(n.containers.session)&&a.set(n.containers.session,n.pack.session(0),t.l,t.d,t.i),a.set(n.service.migrations,r,t.l,t.d,t.i)}catch(f){a.set(n.service.migrations,i,t.l,t.d,t.i)}}}]}},{"./data":2,"./helpers/cookies":3}],8:[function(e,t,r){"use strict";var n=e("./terms"),a=e("./helpers/uri");t.exports={fetch:function(e){var t=e||{},r={};if(r.lifetime=this.validate.checkFloat(t.lifetime)||6,r.lifetime=parseInt(30*r.lifetime*24*60),r.session_length=this.validate.checkInt(t.session_length)||30,r.timezone_offset=this.validate.checkInt(t.timezone_offset),r.base64=t.base64||!1,r.campaign_param=t.campaign_param||!1,r.term_param=t.term_param||!1,r.content_param=t.content_param||!1,r.user_ip=t.user_ip||n.none,t.promocode?(r.promocode={},r.promocode.min=parseInt(t.promocode.min)||1e5,r.promocode.max=parseInt(t.promocode.max)||999999):r.promocode=!1,t.typein_attributes&&t.typein_attributes.source&&t.typein_attributes.medium?(r.typein_attributes={},r.typein_attributes.source=t.typein_attributes.source,r.typein_attributes.medium=t.typein_attributes.medium):r.typein_attributes={source:"(direct)",medium:"(none)"},t.domain&&this.validate.isString(t.domain)?r.domain={host:t.domain,isolate:!1}:t.domain&&t.domain.host?r.domain=t.domain:r.domain={host:a.getHost(document.location.hostname),isolate:!1},r.referrals=[],t.referrals&&t.referrals.length>0)for(var i=0;i<t.referrals.length;i++)t.referrals[i].host&&r.referrals.push(t.referrals[i]);if(r.organics=[],t.organics&&t.organics.length>0)for(var s=0;s<t.organics.length;s++)t.organics[s].host&&t.organics[s].param&&r.organics.push(t.organics[s]);return r.organics.push({host:"bing.com",param:"q",display:"bing"}),r.organics.push({host:"yahoo.com",param:"p",display:"yahoo"}),r.organics.push({host:"about.com",param:"q",display:"about"}),r.organics.push({host:"aol.com",param:"q",display:"aol"}),r.organics.push({host:"ask.com",param:"q",display:"ask"}),r.organics.push({host:"globososo.com",param:"q",display:"globo"}),r.organics.push({host:"go.mail.ru",param:"q",display:"go.mail.ru"}),r.organics.push({host:"rambler.ru",param:"query",display:"rambler"}),r.organics.push({host:"tut.by",param:"query",display:"tut.by"}),r.referrals.push({host:"t.co",display:"twitter.com"}),r.referrals.push({host:"plus.url.google.com",display:"plus.google.com"}),r},validate:{checkFloat:function(e){return!(!e||!this.isNumeric(parseFloat(e)))&&parseFloat(e)},checkInt:function(e){return!(!e||!this.isNumeric(parseInt(e)))&&parseInt(e)},isNumeric:function(e){return!isNaN(e)},isString:function(e){return"[object String]"===Object.prototype.toString.call(e)}}}},{"./helpers/uri":4,"./terms":9}],9:[function(e,t,r){"use strict";t.exports={traffic:{utm:"utm",organic:"organic",referral:"referral",typein:"typein"},referer:{referral:"referral",organic:"organic",social:"social"},none:"(none)",oops:"(Houston, we have a problem)"}},{}]},{},[1])(1)});
!function(t){"use strict";const e=t.params,n=(document.querySelector.bind(document),(t,e)=>e.split(".").reduce((t,e)=>t&&t[e],t)),i=()=>null,s=t=>null===t||t===undefined?"":t,o="wc/store/checkout";function a(t){document.querySelectorAll("wc-order-attribution-inputs").forEach((t,e)=>{e>0&&t.remove()});for(const e of document.querySelectorAll("wc-order-attribution-inputs"))e.values=t}function r(t){window.wp&&window.wp.data&&window.wp.data.dispatch&&window.wc&&window.wc.wcBlocksData&&window.wp.data.dispatch(window.wc.wcBlocksData.CHECKOUT_STORE_KEY).setExtensionData("woocommerce/order-attribution",t,!0)}function c(){return"undefined"!=typeof sbjs}function d(){if(window.wp&&window.wp.data&&"function"==typeof window.wp.data.subscribe){const e=window.wp.data.subscribe(function(){e(),r(t.getAttributionData())},o)}}t.getAttributionData=function(){const s=e.allowTracking&&c()?n:i,o=c()?sbjs.get:{},a=Object.entries(t.fields).map(([t,e])=>[t,s(o,e)]);return Object.fromEntries(a)},t.setOrderTracking=function(n){if(e.allowTracking=n,n){if(!c())return;sbjs.init({lifetime:Number(e.lifetime),session_length:Number(e.session),base64:Boolean(e.base64),timezone_offset:"0"})}else!function(){const t=window.location.hostname;["sbjs_current","sbjs_current_add","sbjs_first","sbjs_first_add","sbjs_session","sbjs_udata","sbjs_migrations","sbjs_promo"].forEach(e=>{document.cookie=`${e}=; path=/; max-age=-999; domain=.${t};`})}();const i=t.getAttributionData();a(i),r(i)},t.setOrderTracking(e.allowTracking),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",d):d(),window.customElements.define("wc-order-attribution-inputs",class extends HTMLElement{constructor(){if(super(),this._fieldNames=Object.keys(t.fields),this.hasOwnProperty("_values")){let t=this.values;delete this.values,this.values=t||{}}}connectedCallback(){this.innerHTML="";const t=new DocumentFragment;for(const n of this._fieldNames){const i=document.createElement("input");i.type="hidden",i.name=`${e.prefix}${n}`,i.value=s(this.values&&this.values[n]||""),t.appendChild(i)}this.appendChild(t)}set values(t){if(this._values=t,this.isConnected)for(const t of this._fieldNames){const n=this.querySelector(`input[name="${e.prefix}${t}"]`);n?n.value=s(this.values[t]):console.warn(`Field "${t}" not found. `+"Most likely, the '<wc-order-attribution-inputs>' element was manipulated.")}}get values(){return this._values}})}(window.wc_order_attribution);