trAvis - MANAGER
Edit File: envira-min.js
(()=>{var i={461:function(t,e,i){var n,r,a,o,s=i(311);r=(n=s).fn.justifiedGallery,a={},n.fn.enviraJustifiedGallery=function(){var t=r.apply(this,arguments);if(void 0!==(a=t.data("jg.controller")))return a.displayEntryCaption=function(t){var e,i=this.imgFromEntry(t);null!==i&&this.settings.captions?(null===(e=this.captionFromEntry(t))&&(void 0!==(i=i.data("envira-caption"))&&"string"==typeof i&&(i=i.replace("<","<")),this.isValidCaption(i))&&(i=n("<textarea />").html(i).text(),e=n('<div class="caption">'+i+"</div>"),t.append(e),t.data("jg.createdCaption",!0)),null!==e&&(this.settings.cssAnimation||e.stop().fadeTo(0,this.settings.captionSettings.nonVisibleOpacity),this.addCaptionEventsHandlers(t))):this.removeCaptionEventsHandlers(t)},a},o=this,s=[i(311)],void 0!==(i=function(t){return o.VintageJS=(n=function(g,t,e){if(0==g instanceof HTMLImageElement)throw"The element (1st parameter) must be an instance of HTMLImageElement";var i,n,r,a,o,u,c,p,s,l,f=new Image,h=new Image,d=document.createElement("canvas"),v=d.getContext("2d"),m={onStart:function(){},onStop:function(){},onError:function(){},mime:"image/jpeg"},w={curves:!1,screen:!1,desaturate:!1,vignette:!1,lighten:!1,noise:!1,viewFinder:!1,sepia:!1,brightness:!1,contrast:!1};for(l in f.onerror=m.onError,f.onload=function(){u=d.width=f.width,c=d.height=f.height,i()},h.onerror=m.onError,h.onload=function(){v.clearRect(0,0,u,c),v.drawImage(h,0,0,u,c),(window.vjsImageCache||(window.vjsImageCache={}))[s]=v.getImageData(0,0,u,c).data,i()},n=function(t){for(var e in m.onStart(),p={},w)p[e]=t[e]||w[e];a=[],p.viewFinder&&a.push(p.viewFinder),f.src==o?i():f.src=o},i=function(){var t;return 0===a.length?r():(t=a.pop(),s=[u,c,t].join("-"),window.vjsImageCache&&window.vjsImageCache[s]?i():void(h.src=t))},r=function(){var t;v.clearRect(0,0,u,c),v.drawImage(f,0,0,u,c),(p.vignette||p.lighten)&&(e=Math.sqrt(Math.pow(u/2,2)+Math.pow(c/2,2))),p.vignette&&(v.globalCompositeOperation="source-over",(t=v.createRadialGradient(u/2,c/2,0,u/2,c/2,e)).addColorStop(0,"rgba(0,0,0,0)"),t.addColorStop(.5,"rgba(0,0,0,0)"),t.addColorStop(1,["rgba(0,0,0,",p.vignette,")"].join("")),v.fillStyle=t,v.fillRect(0,0,u,c)),p.lighten&&(v.globalCompositeOperation="lighter",(t=v.createRadialGradient(u/2,c/2,0,u/2,c/2,e)).addColorStop(0,["rgba(255,255,255,",p.lighten,")"].join("")),t.addColorStop(.5,"rgba(255,255,255,0)"),t.addColorStop(1,"rgba(0,0,0,0)"),v.fillStyle=t,v.fillRect(0,0,u,c));var e,i,n,r,a,o,s,l,h=(e=v.getImageData(0,0,u,c)).data;p.contrast&&(l=259*(p.contrast+255)/(255*(259-p.contrast))),p.viewFinder&&(s=window.vjsImageCache[[u,c,p.viewFinder].join("-")]);for(var d=u*c;0<=d;--d)for(i=d<<2,p.curves&&(h[i]=p.curves.r[h[i]],h[1+i]=p.curves.g[h[1+i]],h[2+i]=p.curves.b[h[2+i]]),p.contrast&&(h[i]=l*(h[i]-128)+128,h[1+i]=l*(h[1+i]-128)+128,h[2+i]=l*(h[2+i]-128)+128),p.brightness&&(h[i]+=p.brightness,h[1+i]+=p.brightness,h[2+i]+=p.brightness),p.screen&&(h[i]=255-(255-h[i])*(255-p.screen.r*p.screen.a)/255,h[1+i]=255-(255-h[1+i])*(255-p.screen.g*p.screen.a)/255,h[2+i]=255-(255-h[2+i])*(255-p.screen.b*p.screen.a)/255),p.noise&&(o=p.noise-Math.random()*p.noise/2,h[i]+=o,h[1+i]+=o,h[2+i]+=o),p.viewFinder&&(h[i]=h[i]*s[i]/255,h[1+i]=h[1+i]*s[1+i]/255,h[2+i]=h[2+i]*s[2+i]/255),p.sepia&&(o=h[i],a=h[1+i],r=h[2+i],h[i]=.393*o+.769*a+.189*r,h[1+i]=.349*o+.686*a+.168*r,h[2+i]=.272*o+.534*a+.131*r),p.desaturate&&(a=(h[i]+h[1+i]+h[2+i])/3,h[i]+=(a-h[i])*p.desaturate,h[1+i]+=(a-h[1+i])*p.desaturate,h[2+i]+=(a-h[2+i])*p.desaturate),n=2;0<=n;--n)h[i+n]=~~(255<h[i+n]?255:h[i+n]<0?0:h[i+n]);v.putImageData(e,0,0),g.src=v.canvas.toDataURL(m.mime),m.onStop()},o=g.src,t=t||{},m)m[l]=t[l]||m[l];return e&&n(e),{apply:function(){o=g.src},reset:function(){g.src=o},vintage:n}},(i=t).fn.vintage=function(t,e){return this.each(function(){i.data(this,"vintageJS")||i.data(this,"vintageJS",new n(this,t,e))})},n);var i,n}.apply(e,s))&&(t.exports=i)},234:(M,D,F)=>{var s,l,h,i,n,e,d,r,a,o,g,t,u,c,p,f,v,m,w,y,b,x,S,P,I,E,R,j,T,A,O,C,k,z,H,B,N,W=F(311);function L(t){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $(){h.hide(),x.onerror=x.onload=null,b&&b.abort(),l.empty()}function q(){!1===f.onError(v,p,f)?(h.hide(),j=!1):(f.titleShow=!1,f.width="auto",f.height="auto",l.html('<p id="envirabox-error">The requested content cannot be loaded.<br />Please try again later.</p>'),O())}function _(){var n,t,e,i,r,a,o=v[p];if($(),f=s.extend({},s.fn.envirabox.defaults,void 0===s(o).data("envirabox")?f:s(o).data("envirabox")),!1===(a=f.onStart(v,p,f)))j=!1;else if(e=(f="object"==L(a)?s.extend(f,a):f).title||(o.nodeName?s(o).attr("title"):o.title)||"",o.nodeName&&!f.orig&&(f.orig=s(o).children("img:first").length?s(o).children("img:first"):s(o)),""===e&&f.orig&&f.titleFromAlt&&(e=f.orig.attr("alt")),n=f.href||(o.nodeName?s(o).attr("href"):o.href)||null,"string"==typeof(n=!/^(?:javascript)/i.test(n)&&"#"!=n?n:null)&&s.envirabox.isUrl(n)&&!s.envirabox.isImage(n)&&(document.getElementById("envirabox-loading").style.visibility="hidden",window.location.href=n),f.type?(t=f.type,n=n||f.content):f.content?t="html":n&&(t=n.match(S)?"image":n.match(P)?"swf":s(o).hasClass("iframe")?"iframe":0===n.indexOf("#")?"inline":"ajax"),t)switch("inline"==t&&(o=n.substr(n.indexOf("#")),t=0<s(o).length?"inline":"ajax"),f.type=t,f.href=n,f.title=e,f.autoDimensions&&("html"==f.type||"inline"==f.type||"ajax"==f.type?(f.width="auto",f.height="auto"):f.autoDimensions=!1),f.modal&&(f.overlayShow=!0,f.hideOnOverlayClick=!1,f.hideOnContentClick=!1,f.enableEscapeButton=!1,f.showCloseButton=!1),f.padding=parseInt(f.padding,10),f.margin=parseInt(f.margin,10),l.css("padding",f.padding+f.margin),s(".envirabox-inline-tmp").unbind("envirabox-cancel").bind("envirabox-change",function(){s(this).replaceWith(d.children())}),t){case"html":l.html(f.content),O();break;case"inline":!0===s(o).parent().is("#envirabox-content")?j=!1:(s('<div class="envirabox-inline-tmp" />').hide().insertBefore(s(o)).bind("envirabox-cleanup",function(){s(this).replaceWith(d.children())}).bind("envirabox-cancel",function(){s(this).replaceWith(l.children())}),s(o).appendTo(l),O());break;case"image":j=!1,s.envirabox.showActivity(),(x=new Image).onerror=function(){q()},x.onload=function(){j=!0,x.onerror=x.onload=null,U()},x.src=n;break;case"swf":f.scrolling="no",i='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+f.width+'" height="'+f.height+'"><param name="movie" value="'+n+'"></param>',r="",s.each(f.swf,function(t,e){i+='<param name="'+t+'" value="'+e+'"></param>',r+=" "+t+'="'+e+'"'}),i+='<embed src="'+n+'" type="application/x-shockwave-flash" width="'+f.width+'" height="'+f.height+'"'+r+"></embed></object>",l.html(i),O();break;case"ajax":j=!1,s.envirabox.showActivity(),f.ajax.win=f.ajax.success,b=s.ajax(s.extend({},f.ajax,{url:n,data:f.ajax.data||{},error:function(t,e,i){0<t.status&&q()},success:function(t,e,i){if(200==("object"==L(i)?i:b).status){if("function"==typeof f.ajax.win){if(!1===(a=f.ajax.win(n,t,e,i)))return void h.hide();"string"!=typeof a&&"object"!=L(a)||(t=a)}l.html(t),O()}}}));break;case"iframe":C()}else q()}function U(){f.width=x.width,f.height=x.height,s("<img />").attr({id:"envirabox-img",src:x.src,alt:f.title}).appendTo(l),C()}function V(){var t;y.length-1>m&&void 0!==(t=y[m+1].href)&&t.match(S)&&((new Image).src=t),0<m&&void 0!==(t=y[m-1].href)&&t.match(S)&&((new Image).src=t)}function Y(){return[s(window).width()-2*w.margin,s(window).height()-2*w.margin,s(document).scrollLeft()+w.margin,s(document).scrollTop()+w.margin]}function G(){h.is(":visible")?(s("div",h).css("top",-40*I+"px"),I=(I+1)%12):clearInterval(t)}s=W,f={},v=[],m=p=0,w={},y=[],b=null,x=new Image,S=/\.(jpg|gif|png|bmp|jpeg|webp)(.*)?$/i,P=/[^\.]\.(swf)\s*$/i,E=0,R="",j=!(I=1),T=s.extend(s("<div/>")[0],{prop:0}),A=!1,O=function(){var t=f.width,e=f.height,t=-1<t.toString().indexOf("%")?parseInt((s(window).width()-2*f.margin)*parseFloat(t)/100,10)+"px":"auto"==t?"auto":t+"px",e=-1<e.toString().indexOf("%")?parseInt((s(window).height()-2*f.margin)*parseFloat(e)/100,10)+"px":"auto"==e?"auto":e+"px";l.wrapInner('<div style="width:'+t+";height:"+e+";overflow: "+("auto"==f.scrolling?"auto":"yes"==f.scrolling?"scroll":"hidden")+';position:relative;"></div>'),f.width=l.width(),f.height=l.height(),C()},C=function(){var t,e;h.hide(),n.is(":visible")&&!1===w.onCleanup(y,m,w)?(s.event.trigger("envirabox-cancel"),j=!1):(j=!0,s(d.add(i)).unbind(),s(window).unbind("resize.fb scroll.fb"),s(document).unbind("keydown.fb"),n.is(":visible")&&"outside"!==w.titlePosition&&n.css("height",n.height()),y=v,m=p,(w=f).overlayShow?(i.css({"background-color":w.overlayColor,opacity:w.overlayOpacity,cursor:w.hideOnOverlayClick?"pointer":"auto",height:s(document).height()}),i.is(":visible")||(A&&s("select:not(#envirabox-tmp select)").filter(function(){return"hidden"!==this.style.visibility}).css({visibility:"hidden"}).one("envirabox-cleanup",function(){this.style.visibility="inherit"}),i.show())):i.hide(),c=B(),k(),n.is(":visible")?(s(r.add(o).add(g)).hide(),t=n.position(),u={top:t.top,left:t.left,width:n.width(),height:n.height()},e=u.width==c.width&&u.height==c.height,d.fadeTo(w.changeFade,.3,function(){function t(){d.html(l.contents()).fadeTo(w.changeFade,1,z)}s.event.trigger("envirabox-change"),d.empty().removeAttr("filter").css({"border-width":w.padding,width:c.width-2*w.padding,height:f.autoDimensions?"auto":c.height-E-2*w.padding}),e?t():(T.prop=0,s(T).animate({prop:1},{duration:w.changeSpeed,easing:w.easingChange,step:H,complete:t}))})):(n.removeAttr("style"),d.css("border-width",w.padding),"elastic"==w.transitionIn?(u=N(),d.html(l.contents()),n.show(),w.opacity&&(c.opacity=0),T.prop=0,s(T).animate({prop:1},{duration:w.speedIn,easing:w.easingIn,step:H,complete:z})):("inside"==w.titlePosition&&0<E&&a.show(),d.css({width:c.width-2*w.padding,height:f.autoDimensions?"auto":c.height-E-2*w.padding}).html(l.contents()),n.css(c).fadeIn("none"==w.transitionIn?0:w.speedIn,z))))},k=function(){var t;if((R=w.title||"",E=0,a.empty().removeAttr("style").removeClass(),!1!==w.titleShow)&&((R=s.isFunction(w.titleFormat)?w.titleFormat(R,y,m,w):!(!(t=R)||!t.length)&&("float"==w.titlePosition?'<table id="envirabox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="envirabox-title-float-left"></td><td id="envirabox-title-float-main">'+s.decodeEntities(t)+'</td><td id="envirabox-title-float-right"></td></tr></table>':'<div id="envirabox-title-'+w.titlePosition+'">'+s.decodeEntities(t)+"</div>"))&&""!==R))switch(a.addClass("envirabox-title-"+w.titlePosition).html(R).appendTo("body").show(),w.titlePosition){case"inside":a.css({width:c.width-2*w.padding,marginLeft:w.padding,marginRight:w.padding}),E=a.outerHeight(!0),a.appendTo(e),c.height+=E;break;case"over":a.css({marginLeft:w.padding,width:c.width-2*w.padding,bottom:w.padding}).appendTo(e);break;case"float":a.css("left",-1*parseInt((a.width()-c.width-40)/2,10)).appendTo(n);break;default:a.css({width:c.width-2*w.padding,paddingLeft:w.padding,paddingRight:w.padding}).appendTo(n)}a.hide()},z=function(){s.support.opacity||(d.get(0).style.removeProperty("filter"),n.get(0).style.removeProperty("filter")),f.autoDimensions&&d.css("height","auto"),n.css("height","auto"),R&&R.length&&a.show(),w.showCloseButton&&r.show(),(w.enableEscapeButton||w.enableKeyboardNav)&&s(document).bind("keydown.fb",function(t){27==t.keyCode&&w.enableEscapeButton?(t.preventDefault(),s.envirabox.close()):37!=t.keyCode&&39!=t.keyCode||!w.enableKeyboardNav||"INPUT"===t.target.tagName||"TEXTAREA"===t.target.tagName||"SELECT"===t.target.tagName||(t.preventDefault(),s.envirabox[37==t.keyCode?"prev":"next"]())}),w.showNavArrows?((w.cyclic&&1<y.length||0!==m)&&o.show(),(w.cyclic&&1<y.length||m!=y.length-1)&&g.show()):(o.hide(),g.hide()),w.hideOnContentClick&&d.bind("click",s.envirabox.close),w.hideOnOverlayClick&&i.bind("click",s.envirabox.close),s(window).bind("resize.fb",s.envirabox.resize),w.centerOnScroll&&s(window).bind("scroll.fb",s.envirabox.center),"iframe"==w.type&&s('<iframe id="envirabox-frame" name="envirabox-frame'+(new Date).getTime()+'" frameborder="0" hspace="0" scrolling="'+f.scrolling+'" src="'+w.href+'"></iframe>').appendTo(d),n.show(),j=!1,s.envirabox.center(),w.onComplete(y,m,w),V()},H=function(t){var e={width:parseInt(u.width+(c.width-u.width)*t,10),height:parseInt(u.height+(c.height-u.height)*t,10),top:parseInt(u.top+(c.top-u.top)*t,10),left:parseInt(u.left+(c.left-u.left)*t,10)};void 0!==c.opacity&&(e.opacity=t<.5?.5:t),n.css(e),d.css({width:e.width-2*w.padding,height:e.height-E*t-2*w.padding})},B=function(){var t=Y(),e={},i=w.autoScale,n=2*w.padding;return-1<w.width.toString().indexOf("%")?e.width=parseInt(t[0]*parseFloat(w.width)/100,10):e.width=w.width+n,-1<w.height.toString().indexOf("%")?e.height=parseInt(t[1]*parseFloat(w.height)/100,10):e.height=w.height+n,i&&(e.width>t[0]||e.height>t[1])&&("image"==f.type||"swf"==f.type?(i=w.width/w.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},N=function(){var t,e=!!f.orig&&s(f.orig);return e&&e.length?((t=(e=e).offset()).top+=parseInt(e.css("paddingTop"),10)||0,t.left+=parseInt(e.css("paddingLeft"),10)||0,t.top+=parseInt(e.css("border-top-width"),10)||0,t.left+=parseInt(e.css("border-left-width"),10)||0,t.width=e.width(),t.height=e.height(),{width:(e=t).width+2*w.padding,height:e.height+2*w.padding,top:e.top-w.padding-20,left:e.left-w.padding-20}):(t=Y(),{width:2*w.padding,height:2*w.padding,top:parseInt(t[3]+.5*t[1],10),left:parseInt(t[2]+.5*t[0],10)})},s.fn.envirabox=function(t){return s(this).length&&s(this).data("envirabox",s.extend({},t,s.metadata?s(this).metadata():{})).unbind("click.fb").bind("click.fb",function(t){t.preventDefault(),j||(j=!0,s(this).blur(),v=[],p=0,(t=s(this).attr("rel")||"")&&""!=t&&"nofollow"!==t?(v=s("a[rel="+t+"], area[rel="+t+"]"),p=v.index(this)):v.push(this),_())}),this},s.envirabox=function(t){var e;if(!j){if(j=!0,e=void 0!==arguments[1]?arguments[1]:{},v=[],p=parseInt(e.index,10)||0,s.isArray(t)){for(var i=0,n=t.length;i<n;i++)"object"==L(t[i])?s(t[i]).data("envirabox",s.extend({},e,t[i])):t[i]=s({}).data("envirabox",s.extend({content:t[i]},e));v=W.merge(v,t)}else"object"==L(t)?s(t).data("envirabox",s.extend({},e,t)):t=s({}).data("envirabox",s.extend({content:t},e)),v.push(t);(p>v.length||p<0)&&(p=0),_()}},s.envirabox.showActivity=function(){clearInterval(t),h.show(),t=setInterval(G,66)},s.envirabox.hideActivity=function(){h.hide()},s.envirabox.next=function(){return s.envirabox.pos(m+1)},s.envirabox.prev=function(){return s.envirabox.pos(m-1)},s.envirabox.pos=function(t){j||(t=parseInt(t),v=y,-1<t&&t<y.length?(p=t,_()):w.cyclic&&1<y.length&&(p=t>=y.length?0:y.length-1,_()))},s.envirabox.cancel=function(){j||(j=!0,s.event.trigger("envirabox-cancel"),$(),f.onCancel(v,p,f),j=!1)},s.envirabox.close=function(){var t;function e(){i.fadeOut("fast"),a.empty().hide(),n.hide(),s.event.trigger("envirabox-cleanup"),d.empty(),w.onClosed(y,m,w),y=f=[],m=p=0,w=f={},j=!1}j||n.is(":hidden")||(j=!0,w&&!1===w.onCleanup(y,m,w)?j=!1:($(),s(r.add(o).add(g)).hide(),s(d.add(i)).unbind(),s(window).unbind("resize.fb scroll.fb"),s(document).unbind("keydown.fb"),d.find("iframe").attr("src",A&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank"),"inside"!==w.titlePosition&&a.empty(),n.stop(),"elastic"==w.transitionOut?(u=N(),t=n.position(),c={top:t.top,left:t.left,width:n.width(),height:n.height()},w.opacity&&(c.opacity=1),a.empty().hide(),T.prop=1,s(T).animate({prop:0},{duration:w.speedOut,easing:w.easingOut,step:H,complete:e})):n.fadeOut("none"==w.transitionOut?0:w.speedOut,e)))},s.envirabox.resize=function(){var t;i.is(":visible")&&i.css("height",s(document).height()),c=B(),k(),a.show(),t=n.position(),(u={top:t.top,left:t.left,width:n.width(),height:n.height()}).width==c.width&&u.height==c.height||(T.prop=0,s(T).animate({prop:1},{duration:w.changeSpeed,easing:w.easingChange,step:H})),d.css({width:c.width-2*w.padding,height:f.autoDimensions?"auto":c.height-E-2*w.padding}),n.css(c),s.envirabox.center(!0)},s.envirabox.center=function(){var t,e;j||(e=!0===arguments[0]?1:0,t=Y(),!e&&(n.width()>t[0]||n.height()>t[1]))||n.stop().animate({top:parseInt(Math.max(t[3]-20,t[3]+.5*(t[1]-d.height()-40)-w.padding)),left:parseInt(Math.max(t[2]-20,t[2]+.5*(t[0]-d.width()-40)-w.padding))},"number"==typeof arguments[0]?arguments[0]:200)},s.envirabox.init=function(){s("#envirabox-wrap").length||(s("body").append(l=s('<div id="envirabox-tmp"></div>'),h=s('<div id="envirabox-loading"><div></div></div>'),i=s('<div id="envirabox-overlay"></div>'),n=s('<div id="envirabox-wrap"></div>')),(e=s('<div id="envirabox-outer"></div>').append('<div class="envirabox-bg" id="envirabox-bg-n"></div><div class="envirabox-bg" id="envirabox-bg-ne"></div><div class="envirabox-bg" id="envirabox-bg-e"></div><div class="envirabox-bg" id="envirabox-bg-se"></div><div class="envirabox-bg" id="envirabox-bg-s"></div><div class="envirabox-bg" id="envirabox-bg-sw"></div><div class="envirabox-bg" id="envirabox-bg-w"></div><div class="envirabox-bg" id="envirabox-bg-nw"></div>').appendTo(n)).append(d=s('<div id="envirabox-content"></div>'),r=s('<a id="envirabox-close"></a>'),a=s('<div id="envirabox-title"></div>'),o=s('<a href="javascript:;" id="envirabox-left"><span class="fancy-ico" id="envirabox-left-ico"></span></a>'),g=s('<a href="javascript:;" id="envirabox-right"><span class="fancy-ico" id="envirabox-right-ico"></span></a>')),r.click(s.envirabox.close),h.click(s.envirabox.cancel),o.click(function(t){t.preventDefault(),s.envirabox.prev()}),g.click(function(t){t.preventDefault(),s.envirabox.next()}),s.fn.mousewheel&&n.bind("mousewheel.fb",function(t,e){j?t.preventDefault():0!=s(t.target).get(0).clientHeight&&s(t.target).get(0).scrollHeight!==s(t.target).get(0).clientHeight||(t.preventDefault(),s.envirabox[0<e?"prev":"next"]())}),s.support.opacity||n.addClass("envirabox-ie"),A&&(h.addClass("envirabox-ie6"),n.addClass("envirabox-ie6"),s('<iframe id="envirabox-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(e)))},s.envirabox.isUrl=function(t){return t.match(/^(https?):\/\/((?:[a-z0-9.-]|%[0-9A-F]{2}){3,})(?::(\d+))?((?:\/(?:[a-z0-9-._~!$&'()*+,;=:@]|%[0-9A-F]{2})*)*)(?:\?((?:[a-z0-9-._~!$&'()*+,;=:\/?@]|%[0-9A-F]{2})*))?(?:#((?:[a-z0-9-._~!$&'()*+,;=:\/?@]|%[0-9A-F]{2})*))?$/i)},s.envirabox.isImage=function(t){return t.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},s.decodeEntities=function(t){var i={nbsp:" ",amp:"&",quot:'"',lt:"<",gt:">"};return t.replace(/&(nbsp|amp|quot|lt|gt);/g,function(t,e){return i[e]}).replace(/&#(\d+);/gi,function(t,e){e=parseInt(e,10);return String.fromCharCode(e)})},s.fn.envirabox.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:.9,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(){}},s(document).ready(function(){s.envirabox.init()})},161:function(t,n,e){var r,i,a,o;"function"==typeof(i=function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(!t||!e)return;var i=this._events=this._events||{};var n=i[t]=i[t]||[];if(n.indexOf(e)==-1)n.push(e);return this},e.once=function(t,e){if(!t||!e)return;this.on(t,e);var i=this._onceEvents=this._onceEvents||{};var n=i[t]=i[t]||[];n[e]=true;return this},e.off=function(t,e){var i=this._events&&this._events[t];if(!i||!i.length)return;var n=i.indexOf(e);if(n!=-1)i.splice(n,1);return this},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(!i||!i.length)return;var n=0;var r=i[n];e=e||[];var a=this._onceEvents&&this._onceEvents[t];while(r){var o=a&&a[r];if(o){this.off(t,r);delete a[r]}r.apply(this,e);n+=o?0:1;r=i[n]}return this},t})?(a={id:"ev-emitter/ev-emitter",exports:{},loaded:!1},r=i.call(a.exports,e,a.exports,a),a.loaded=!0,void 0===r&&(r=a.exports)):r=i,function(e,i){"use strict";o=[r],void 0!==(o=function(t){return i(e,t)}.apply(n,o))&&(t.exports=o)}(window,function(e,t){var n=e.jQuery,r=e.console;function a(t,e){for(var i in e)t[i]=e[i];return t}function o(t,e,i){if(!(this instanceof o))return new o(t,e,i);"string"==typeof t&&(t=document.querySelectorAll(t)),this.elements=function(t){var e=[];if(Array.isArray(t))e=t;else if("number"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e}(t),this.options=a({},this.options),"function"==typeof e?i=e:a(this.options,e),i&&this.on("always",i),this.getImages(),n&&(this.jqDeferred=new n.Deferred),setTimeout(function(){this.check()}.bind(this))}(o.prototype=Object.create(t.prototype)).options={},o.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},o.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&s[e]){for(var i=t.querySelectorAll("img"),n=0;n<i.length;n++){var r=i[n];this.addImage(r)}if("string"==typeof this.options.background)for(var a=t.querySelectorAll(this.options.background),n=0;n<a.length;n++){var o=a[n];this.addElementBackgroundImages(o)}}};var s={1:!0,9:!0,11:!0};function i(t){this.img=t}function l(t,e){this.url=t,this.element=e,this.img=new Image}return o.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(e.backgroundImage);null!==n;){var r=n&&n[2];r&&this.addBackground(r,t),n=i.exec(e.backgroundImage)}},o.prototype.addImage=function(t){t=new i(t);this.images.push(t)},o.prototype.addBackground=function(t,e){t=new l(t,e);this.images.push(t)},o.prototype.check=function(){var n=this;function e(t,e,i){setTimeout(function(){n.progress(t,e,i)})}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach(function(t){t.once("progress",e),t.check()}):this.complete()},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&&r&&r.log("progress: "+i,t,e)},o.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred&&(t=this.hasAnyBroken?"reject":"resolve",this.jqDeferred[t](this))},(i.prototype=Object.create(t.prototype)).check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,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.src)},i.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},i.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},i.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},i.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},i.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(i.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(t){(t=t||e.jQuery)&&((n=t).fn.enviraImagesLoaded=function(t,e){return new o(this,t,e).jqDeferred.promise(n(this))})})(),o})},138:(t,e,i)=>{var d,n,i=i(311);function r(){return d("body").height()>d(window).height()}function a(t,e){this.settings=e,this.checkSettings(),this.imgAnalyzerTimeout=null,this.entries=null,this.buildingRow={entriesBuff:[],width:0,height:0,aspectRatio:0},this.lastAnalyzedIndex=-1,this.yield={every:2,flushed:0},this.border=0<=e.border?e.border:e.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges(),this.offY=this.border,this.rows=0,this.spinner={phase:0,timeSlot:150,$el:d('<div class="spinner"><span></span><span></span><span></span></div>'),intervalId:null},this.checkWidthIntervalId=null,this.galleryWidth=t.width(),this.$gallery=t}d=i,a.prototype.getSuffix=function(t,e){for(var i=e<t?t:e,n=0;n<this.suffixRanges.length;n++)if(i<=this.suffixRanges[n])return this.settings.sizeRangeSuffixes[this.suffixRanges[n]];return this.settings.sizeRangeSuffixes[this.suffixRanges[n-1]]},a.prototype.removeSuffix=function(t,e){return t.substring(0,t.length-e.length)},a.prototype.endsWith=function(t,e){return-1!==t.indexOf(e,t.length-e.length)},a.prototype.getUsedSuffix=function(t){for(var e in this.settings.sizeRangeSuffixes)if(this.settings.sizeRangeSuffixes.hasOwnProperty(e)&&0!==this.settings.sizeRangeSuffixes[e].length&&this.endsWith(t,this.settings.sizeRangeSuffixes[e]))return this.settings.sizeRangeSuffixes[e];return""},a.prototype.newSrc=function(t,e,i){var n,r;return this.settings.thumbnailPath?r=this.settings.thumbnailPath(t,e,i):(n=null!==(n=t.match(this.settings.extension))?n[0]:"",r=t.replace(this.settings.extension,""),r=this.removeSuffix(r,this.getUsedSuffix(r)),r+=this.getSuffix(e,i)+n),r},a.prototype.showImg=function(t,e){this.settings.cssAnimation?(t.addClass("entry-visible"),e&&e()):t.stop().fadeTo(this.settings.imagesAnimationDuration,1,e)},a.prototype.extractImgSrcFromImage=function(t){var e=void 0!==t.data("safe-src")?t.data("safe-src"):t.attr("src");return t.data("jg.originalSrc",e),e},a.prototype.imgFromEntry=function(t){var e=t.find("> img");return 0===(e=0===e.length?t.find("> a > img"):e).length?null:e},a.prototype.captionFromEntry=function(t){t=t.find("> .caption");return 0===t.length?null:t},a.prototype.displayEntry=function(t,e,i,n,r,a){t.width(n),t.height(a),t.css("top",i),t.css("left",e);var o,s,l,h=this.imgFromEntry(t);null!==h?(h.css("width",n),h.css("height",r),h.css("margin-left",-n/2),h.css("margin-top",-r/2),o=h.attr("src"),s=this.newSrc(o,n,r),h.one("error",function(){h.attr("src",h.data("jg.originalSrc"))}),l=function(){o!==s&&h.attr("src",s)},"skipped"===t.data("jg.loaded")?this.onImageEvent(o,d.proxy(function(){this.showImg(t,l),t.data("jg.loaded",!0)},this)):this.showImg(t,l)):this.showImg(t),this.displayEntryCaption(t)},a.prototype.displayEntryCaption=function(t){var e,i=this.imgFromEntry(t);null!==i&&this.settings.captions?(null===(e=this.captionFromEntry(t))&&(i=i.attr("alt"),this.isValidCaption(i)||(i=t.attr("title")),this.isValidCaption(i))&&(e=d('<div class="caption">'+i+"</div>"),t.append(e),t.data("jg.createdCaption",!0)),null!==e&&(this.settings.cssAnimation||e.stop().fadeTo(0,this.settings.captionSettings.nonVisibleOpacity),this.addCaptionEventsHandlers(t))):this.removeCaptionEventsHandlers(t)},a.prototype.isValidCaption=function(t){return void 0!==t&&0<t.length},a.prototype.onEntryMouseEnterForCaption=function(t){t=this.captionFromEntry(d(t.currentTarget));this.settings.cssAnimation?t.addClass("caption-visible").removeClass("caption-hidden"):t.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.visibleOpacity)},a.prototype.onEntryMouseLeaveForCaption=function(t){t=this.captionFromEntry(d(t.currentTarget));this.settings.cssAnimation?t.removeClass("caption-visible").removeClass("caption-hidden"):t.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.nonVisibleOpacity)},a.prototype.addCaptionEventsHandlers=function(t){var e;void 0===t.data("jg.captionMouseEvents")&&(e={mouseenter:d.proxy(this.onEntryMouseEnterForCaption,this),mouseleave:d.proxy(this.onEntryMouseLeaveForCaption,this)},t.on("mouseenter",void 0,void 0,e.mouseenter),t.on("mouseleave",void 0,void 0,e.mouseleave),t.data("jg.captionMouseEvents",e))},a.prototype.removeCaptionEventsHandlers=function(t){var e=t.data("jg.captionMouseEvents");void 0!==e&&(t.off("mouseenter",void 0,e.mouseenter),t.off("mouseleave",void 0,e.mouseleave),t.removeData("jg.captionMouseEvents"))},a.prototype.prepareBuildingRow=function(t){var e,i,n,r,a=!0,o=0,s=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,l=s/this.buildingRow.aspectRatio,h=this.settings.rowHeight,d=this.buildingRow.width/s>this.settings.justifyThreshold;if(t&&"hide"===this.settings.lastRow&&!d){for(e=0;e<this.buildingRow.entriesBuff.length;e++)i=this.buildingRow.entriesBuff[e],this.settings.cssAnimation?i.removeClass("entry-visible"):i.stop().fadeTo(0,0);return-1}for(t&&!d&&"justify"!==this.settings.lastRow&&"hide"!==this.settings.lastRow&&(a=!1,0<this.rows)&&(a=(h=(this.offY-this.border-this.settings.margins*this.rows)/this.rows)*this.buildingRow.aspectRatio/s>this.settings.justifyThreshold),e=0;e<this.buildingRow.entriesBuff.length;e++)r=(i=this.buildingRow.entriesBuff[e]).data("jg.width")/i.data("jg.height"),r=a?(n=e===this.buildingRow.entriesBuff.length-1?s:l*r,l):(n=h*r,h),s-=Math.round(n),i.data("jg.jwidth",Math.round(n)),i.data("jg.jheight",Math.ceil(r)),(0===e||r<o)&&(o=r);return this.settings.fixedHeight&&o>this.settings.rowHeight&&(o=this.settings.rowHeight),this.buildingRow.height=o,a},a.prototype.clearBuildingRow=function(){this.buildingRow.entriesBuff=[],this.buildingRow.aspectRatio=0,this.buildingRow.width=0},n=!(a.prototype.flushRow=function(t){var e,i=this.settings,n=this.border,r=this.prepareBuildingRow(t);if(t&&"hide"===i.lastRow&&-1===r)this.clearBuildingRow();else{if(this.maxRowHeight.isPercentage?this.maxRowHeight.value*i.rowHeight<this.buildingRow.height&&(this.buildingRow.height=this.maxRowHeight.value*i.rowHeight):0<this.maxRowHeight.value&&this.maxRowHeight.value<this.buildingRow.height&&(this.buildingRow.height=this.maxRowHeight.value),"center"===i.lastRow||"right"===i.lastRow){for(var a=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*i.margins,o=0;o<this.buildingRow.entriesBuff.length;o++)a-=(e=this.buildingRow.entriesBuff[o]).data("jg.jwidth");"center"===i.lastRow?n+=a/2:"right"===i.lastRow&&(n+=a)}for(o=0;o<this.buildingRow.entriesBuff.length;o++)e=this.buildingRow.entriesBuff[o],this.displayEntry(e,n,this.offY,e.data("jg.jwidth"),e.data("jg.jheight"),this.buildingRow.height),n+=e.data("jg.jwidth")+i.margins;this.galleryHeightToSet=this.offY+this.buildingRow.height+this.border,this.$gallery.height(this.galleryHeightToSet+this.getSpinnerHeight()),(!t||this.buildingRow.height<=i.rowHeight&&r)&&(this.offY+=this.buildingRow.height+i.margins,this.rows+=1,this.clearBuildingRow(),this.$gallery.trigger("jg.rowflush"))}}),a.prototype.checkWidth=function(){this.checkWidthIntervalId=setInterval(d.proxy(function(){var t=parseFloat(this.$gallery.width());r()===n?Math.abs(t-this.galleryWidth)>this.settings.refreshSensitivity&&(this.galleryWidth=t,this.rewind(),this.startImgAnalyzer(!0)):(n=r(),this.galleryWidth=t)},this),this.settings.refreshTime)},a.prototype.isSpinnerActive=function(){return null!==this.spinner.intervalId},a.prototype.getSpinnerHeight=function(){return this.spinner.$el.innerHeight()},a.prototype.stopLoadingSpinnerAnimation=function(){clearInterval(this.spinner.intervalId),this.spinner.intervalId=null,this.$gallery.height(this.$gallery.height()-this.getSpinnerHeight()),this.spinner.$el.detach()},a.prototype.startLoadingSpinnerAnimation=function(){var t=this.spinner,e=t.$el.find("span");clearInterval(t.intervalId),this.$gallery.append(t.$el),this.$gallery.height(this.offY+this.buildingRow.height+this.getSpinnerHeight()),t.intervalId=setInterval(function(){t.phase<e.length?e.eq(t.phase).fadeTo(t.timeSlot,1):e.eq(t.phase-e.length).fadeTo(t.timeSlot,0),t.phase=(t.phase+1)%(2*e.length)},t.timeSlot)},a.prototype.rewind=function(){this.lastAnalyzedIndex=-1,this.offY=this.border,this.rows=0,this.clearBuildingRow()},a.prototype.updateEntries=function(t){return this.entries=this.$gallery.find(this.settings.selector).toArray(),0!==this.entries.length&&(this.settings.filter?this.modifyEntries(this.filterArray,t):this.modifyEntries(this.resetFilters,t),d.isFunction(this.settings.sort)?this.modifyEntries(this.sortArray,t):this.settings.randomize&&this.modifyEntries(this.shuffleArray,t),!0)},a.prototype.insertToGallery=function(t){var e=this;d.each(t,function(){d(this).appendTo(e.$gallery)})},a.prototype.shuffleArray=function(t){for(var e,i,n=t.length-1;0<n;n--)e=Math.floor(Math.random()*(n+1)),i=t[n],t[n]=t[e],t[e]=i;return this.insertToGallery(t),t},a.prototype.sortArray=function(t){return t.sort(this.settings.sort),this.insertToGallery(t),t},a.prototype.resetFilters=function(t){for(var e=0;e<t.length;e++)d(t[e]).removeClass("jg-filtered");return t},a.prototype.filterArray=function(t){var e=this.settings;return"string"===d.type(e.filter)?t.filter(function(t){t=d(t);return t.is(e.filter)?(t.removeClass("jg-filtered"),!0):(t.addClass("jg-filtered"),!1)}):d.isFunction(e.filter)?t.filter(e.filter):void 0},a.prototype.modifyEntries=function(t,e){var i=e?this.entries.splice(this.lastAnalyzedIndex+1,this.entries.length-this.lastAnalyzedIndex-1):this.entries,i=t.call(this,i);this.entries=e?this.entries.concat(i):i},a.prototype.destroy=function(){clearInterval(this.checkWidthIntervalId),d.each(this.entries,d.proxy(function(t,e){var e=d(e),i=(e.css("width",""),e.css("height",""),e.css("top",""),e.css("left",""),e.data("jg.loaded",void 0),e.removeClass("jg-entry"),this.imgFromEntry(e)),i=(i.css("width",""),i.css("height",""),i.css("margin-left",""),i.css("margin-top",""),i.attr("src",i.data("jg.originalSrc")),i.data("jg.originalSrc",void 0),this.removeCaptionEventsHandlers(e),this.captionFromEntry(e));e.data("jg.createdCaption")?(e.data("jg.createdCaption",void 0),null!==i&&i.remove()):null!==i&&i.fadeTo(0,1)},this)),this.$gallery.css("height",""),this.$gallery.removeClass("justified-gallery"),this.$gallery.data("jg.controller",void 0)},a.prototype.analyzeImages=function(t){for(var e=this.lastAnalyzedIndex+1;e<this.entries.length;e++){var i=d(this.entries[e]);if(!0===i.data("jg.loaded")||"skipped"===i.data("jg.loaded")){var n=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,r=i.data("jg.width")/i.data("jg.height");if(n/(this.buildingRow.aspectRatio+r)<this.settings.rowHeight&&(this.flushRow(!1),++this.yield.flushed>=this.yield.every))return void this.startImgAnalyzer(t);this.buildingRow.entriesBuff.push(i),this.buildingRow.aspectRatio+=r,this.buildingRow.width+=r*this.settings.rowHeight,this.lastAnalyzedIndex=e}else if("error"!==i.data("jg.loaded"))return}0<this.buildingRow.entriesBuff.length&&this.flushRow(!0),this.isSpinnerActive()&&this.stopLoadingSpinnerAnimation(),this.stopImgAnalyzerStarter(),this.$gallery.trigger(t?"jg.resize":"jg.complete"),this.$gallery.height(this.galleryHeightToSet)},a.prototype.stopImgAnalyzerStarter=function(){this.yield.flushed=0,null!==this.imgAnalyzerTimeout&&clearTimeout(this.imgAnalyzerTimeout)},a.prototype.startImgAnalyzer=function(t){var e=this;this.stopImgAnalyzerStarter(),this.imgAnalyzerTimeout=setTimeout(function(){e.analyzeImages(t)},.001)},a.prototype.onImageEvent=function(t,e,i){var n,r;(e||i)&&(n=new Image,r=d(n),e&&r.one("load",function(){r.off("load error"),e(n)}),i&&r.one("error",function(){r.off("load error"),i(n)}),n.src=t)},a.prototype.init=function(){var a=!1,o=!1,s=this;d.each(this.entries,function(t,e){var i=d(e),e=s.imgFromEntry(i);if(i.addClass("jg-entry"),!0!==i.data("jg.loaded")&&"skipped"!==i.data("jg.loaded"))if(null!==s.settings.rel&&i.attr("rel",s.settings.rel),null!==s.settings.target&&i.attr("target",s.settings.target),null!==e){var n=s.extractImgSrcFromImage(e);if(e.attr("src",n),!1===s.settings.waitThumbnailsLoad){var r=parseFloat(e.attr("width")),e=parseFloat(e.attr("height"));if(!isNaN(r)&&!isNaN(e))return i.data("jg.width",r),i.data("jg.height",e),i.data("jg.loaded","skipped"),o=!0,s.startImgAnalyzer(!1),!0}i.data("jg.loaded",!1),a=!0,s.isSpinnerActive()||s.startLoadingSpinnerAnimation(),s.onImageEvent(n,function(t){i.data("jg.width",i.find(".envira-gallery-image").data("envira-width")),i.data("jg.height",i.find(".envira-gallery-image").data("envira-height")),i.data("jg.loaded",!0),s.startImgAnalyzer(!1)},function(){i.data("jg.loaded","error"),s.startImgAnalyzer(!1)})}else i.data("jg.loaded",!0),i.data("jg.width",i.width()|parseFloat(i.css("width"))|1),i.data("jg.height",i.height()|parseFloat(i.css("height"))|1)}),a||o||this.startImgAnalyzer(!1),this.checkWidth()},a.prototype.checkOrConvertNumber=function(t,e){if("string"===d.type(t[e])&&(t[e]=parseFloat(t[e])),"number"!==d.type(t[e]))throw e+" must be a number";if(isNaN(t[e]))throw"invalid number for "+e},a.prototype.checkSizeRangesSuffixes=function(){if("object"!==d.type(this.settings.sizeRangeSuffixes))throw"sizeRangeSuffixes must be defined and must be an object";var t,e=[];for(t in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(t)&&e.push(t);for(var i={0:""},n=0;n<e.length;n++)if("string"===d.type(e[n]))try{i[parseInt(e[n].replace(/^[a-z]+/,""),10)]=this.settings.sizeRangeSuffixes[e[n]]}catch(t){throw"sizeRangeSuffixes keys must contains correct numbers ("+t+")"}else i[e[n]]=this.settings.sizeRangeSuffixes[e[n]];this.settings.sizeRangeSuffixes=i},a.prototype.retrieveMaxRowHeight=function(){var t={};if("string"===d.type(this.settings.maxRowHeight))this.settings.maxRowHeight.match(/^[0-9]+%$/)?(t.value=parseFloat(this.settings.maxRowHeight.match(/^([0-9]+)%$/)[1])/100,t.isPercentage=!1):(t.value=parseFloat(this.settings.maxRowHeight),t.isPercentage=!0);else{if("number"!==d.type(this.settings.maxRowHeight))throw"maxRowHeight must be a number or a percentage";t.value=this.settings.maxRowHeight,t.isPercentage=!1}if(isNaN(t.value))throw"invalid number for maxRowHeight";return t.isPercentage?t.value<100&&(t.value=100):0<t.value&&t.value<this.settings.rowHeight&&(t.value=this.settings.rowHeight),t},a.prototype.checkSettings=function(){this.checkSizeRangesSuffixes(),this.checkOrConvertNumber(this.settings,"rowHeight"),this.checkOrConvertNumber(this.settings,"margins"),this.checkOrConvertNumber(this.settings,"border");var t=["justify","nojustify","left","center","right","hide"];if(-1===t.indexOf(this.settings.lastRow))throw"lastRow must be one of: "+t.join(", ");if(this.checkOrConvertNumber(this.settings,"justifyThreshold"),this.settings.justifyThreshold<0||1<this.settings.justifyThreshold)throw"justifyThreshold must be in the interval [0,1]";if("boolean"!==d.type(this.settings.cssAnimation))throw"cssAnimation must be a boolean";if("boolean"!==d.type(this.settings.captions))throw"captions must be a boolean";if(this.checkOrConvertNumber(this.settings.captionSettings,"animationDuration"),this.checkOrConvertNumber(this.settings.captionSettings,"visibleOpacity"),this.settings.captionSettings.visibleOpacity<0||1<this.settings.captionSettings.visibleOpacity)throw"captionSettings.visibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings.captionSettings,"nonVisibleOpacity"),this.settings.captionSettings.nonVisibleOpacity<0||1<this.settings.captionSettings.nonVisibleOpacity)throw"captionSettings.nonVisibleOpacity must be in the interval [0, 1]";if("boolean"!==d.type(this.settings.fixedHeight))throw"fixedHeight must be a boolean";if(this.checkOrConvertNumber(this.settings,"imagesAnimationDuration"),this.checkOrConvertNumber(this.settings,"refreshTime"),this.checkOrConvertNumber(this.settings,"refreshSensitivity"),"boolean"!==d.type(this.settings.randomize))throw"randomize must be a boolean";if("string"!==d.type(this.settings.selector))throw"selector must be a string";if(!1!==this.settings.sort&&!d.isFunction(this.settings.sort))throw"sort must be false or a comparison function";if(!1!==this.settings.filter&&!d.isFunction(this.settings.filter)&&"string"!==d.type(this.settings.filter))throw"filter must be false, a string or a filter function"},a.prototype.retrieveSuffixRanges=function(){var t,e=[];for(t in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(t)&&e.push(parseInt(t,10));return e.sort(function(t,e){return e<t?1:t<e?-1:0}),e},a.prototype.updateSettings=function(t){this.settings=d.extend({},this.settings,t),this.checkSettings(),this.border=0<=this.settings.border?this.settings.border:this.settings.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges()},d.fn.justifiedGallery=function(n){return this.each(function(t,e){var e=d(e),i=(e.addClass("justified-gallery"),e.data("jg.controller"));if(void 0===i){if(null!=n&&"object"!==d.type(n)){if("destroy"===n)return;throw"The argument must be an object"}i=new a(e,d.extend({},d.fn.justifiedGallery.defaults,n)),e.data("jg.controller",i)}else if("norewind"!==n){if("destroy"===n)return void i.destroy();i.updateSettings(n),i.rewind()}i.updateEntries("norewind"===n)&&i.init()})},d.fn.justifiedGallery.defaults={sizeRangeSuffixes:{},thumbnailPath:void 0,rowHeight:120,maxRowHeight:-1,margins:1,border:-1,lastRow:"nojustify",justifyThreshold:.9,fixedHeight:!1,waitThumbnailsLoad:!0,captions:!0,cssAnimation:!1,imagesAnimationDuration:500,captionSettings:{animationDuration:500,visibleOpacity:.7,nonVisibleOpacity:0},rel:null,target:null,extension:/\.[^.\\/]+$/,refreshTime:200,refreshSensitivity:0,randomize:!1,sort:!1,filter:!1,selector:"> a, > div:not(.spinner)"}},655:(t,e,i)=>{var n;i=[i(311)],void 0!==(e="function"==typeof(n=function(u){var t=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],i="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],c=Array.prototype.slice,p,f;if(u.event.fixHooks)for(var e=t.length;e;)u.event.fixHooks[t[--e]]=u.event.mouseHooks;var v=u.event.special.mousewheel={version:"3.1.12",setup:function t(){if(this.addEventListener)for(var e=i.length;e;)this.addEventListener(i[--e],n,false);else this.onmousewheel=n;u.data(this,"mousewheel-line-height",v.getLineHeight(this));u.data(this,"mousewheel-page-height",v.getPageHeight(this))},teardown:function t(){if(this.removeEventListener)for(var e=i.length;e;)this.removeEventListener(i[--e],n,false);else this.onmousewheel=null;u.removeData(this,"mousewheel-line-height");u.removeData(this,"mousewheel-page-height")},getLineHeight:function t(e){var i=u(e),n=i["offsetParent"in u.fn?"offsetParent":"parent"]();if(!n.length)n=u("body");return parseInt(n.css("fontSize"),10)||parseInt(i.css("fontSize"),10)||16},getPageHeight:function t(e){return u(e).height()},settings:{adjustOldDeltas:true,normalizeOffset:true}};function n(t){var e=t||window.event,i=c.call(arguments,1),n=0,r=0,a=0,o=0,s=0,l=0;t=u.event.fix(e);t.type="mousewheel";if("detail"in e)a=e.detail*-1;if("wheelDelta"in e)a=e.wheelDelta;if("wheelDeltaY"in e)a=e.wheelDeltaY;if("wheelDeltaX"in e)r=e.wheelDeltaX*-1;if("axis"in e&&e.axis===e.HORIZONTAL_AXIS){r=a*-1;a=0}n=a===0?r:a;if("deltaY"in e){a=e.deltaY*-1;n=a}if("deltaX"in e){r=e.deltaX;if(a===0)n=r*-1}if(a===0&&r===0)return;if(e.deltaMode===1){var h=u.data(this,"mousewheel-line-height");n*=h;a*=h;r*=h}else if(e.deltaMode===2){var d=u.data(this,"mousewheel-page-height");n*=d;a*=d;r*=d}o=Math.max(Math.abs(a),Math.abs(r));if(!f||o<f){f=o;if(w(e,o))f/=40}if(w(e,o)){n/=40;r/=40;a/=40}n=Math[n>=1?"floor":"ceil"](n/f);r=Math[r>=1?"floor":"ceil"](r/f);a=Math[a>=1?"floor":"ceil"](a/f);if(v.settings.normalizeOffset&&this.getBoundingClientRect){var g=this.getBoundingClientRect();s=t.clientX-g.left;l=t.clientY-g.top}t.deltaX=r;t.deltaY=a;t.deltaFactor=f;t.offsetX=s;t.offsetY=l;t.deltaMode=0;i.unshift(t,n,r,a);if(p)clearTimeout(p);p=setTimeout(m,200);return(u.event.dispatch||u.event.handle).apply(this,i)}function m(){f=null}function w(t,e){return v.settings.adjustOldDeltas&&t.type==="mousewheel"&&e%120===0}u.fn.extend({mousewheel:function t(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function t(e){return this.unbind("mousewheel",e)}})})?n.apply(e,i):n)&&(t.exports=e)},439:(t,e,i)=>{var v=i(311);"undefined"!=typeof envira_lazy_load&&"true"==envira_lazy_load&&(window.responsivelyLazy=function(){function o(t){var e,i,n;return(null!==r||(r=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,a=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,null!==r))&&(e=(t=t.getBoundingClientRect()).top,i=t.left,n=t.width,t=t.height,e<a)&&0<e+t&&i<r&&0<i+n}function s(s,e){if(null!==(t=e.getAttribute("data-envira-srcset")))if(0<(t=t.trim()).length){for(var t,i=[],n=(t=t.split(",")).length,r=0;r<n;r++){var a,o,l=t[r].trim();0!==l.length&&(l=-1===(o=l.lastIndexOf(" "))?(a=l,999998):(a=l.substr(0,o),parseInt(l.substr(o+1,l.length-o-2),10)),o=!1,o=-1===a.indexOf(".webp",a.length-5)||f?!0:o)&&i.push([a,l])}i.sort(function(t,e){if(t[1]<e[1])return-1;if(t[1]>e[1])return 1;if(t[1]===e[1]){if(-1!==e[0].indexOf(".webp",e[0].length-5))return 1;if(-1!==t[0].indexOf(".webp",t[0].length-5))return-1}return 0}),t=i}else t=[];else t=[];for(var h,d,g,u=s.offsetWidth*window.devicePixelRatio,c=null,n=t.length,r=0;r<n;r++){var p=t[r];if(p[1]>=u){c=p;break}}null===c&&(c=[e.getAttribute("data-envira-src"),999999]),void 0===s.lastSetOption&&(s.lastSetOption=["",0]),s.lastSetOption[1]<c[1]&&(h=0===s.lastSetOption[1],d=c[0],(g=new Image).addEventListener("load",function(){var t;e.setAttribute("srcset",d),e.setAttribute("src",d),h&&null!==(t=s.getAttribute("data-onlazyload"))&&new Function(t).bind(s)()},!1),g.addEventListener("error",function(){s.lastSetOption=["",0]},!1),g.onload=function(){var t,e,i,n,r,a,o;o=(a=(r=(n=("envira-lazy"==s.getAttribute("class")&&v(s).not("img")?(n=s.firstElementChild,t=s,e=n.id,i=n.src,v(n)):(n=g,e=(t=s).id,i=s.src,v(s))).data("envira-gallery-id"),v(s).data("envira-item-id")),this.naturalWidth),this.naturalHeight),null==n&&(n=0),v(document).trigger({type:"envira_image_lazy_load_complete",container:t,image_src:i,image_id:e,item_id:r,gallery_id:n,naturalWidth:a,naturalHeight:o})},g.onerror=function(){},g.src=null,g.src=d,s.lastSetOption=c)}function l(){r=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,a=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}function h(t){var e;void 0!==t&&(e=function(t,e){for(var i=t.length,n=0;n<i;n++){var r=t[n],a=e?r:r.parentNode;!0===o(a)&&s(a,r)}},t)&&"string"==typeof t&&("undefined"!==envira_lazy_load_delay&&!1!==envira_lazy_load_initial&&"undefined"!==envira_lazy_load_initial||(envira_lazy_load_delay=0),myVar=setTimeout(function(){v(t+" .envira-lazy > img").exists()?e(document.querySelectorAll(t+" .envira-lazy > img"),!1):v(t+" img.envira-lazy").exists()&&e(document.querySelectorAll(t+" img.envira-lazy"),!0),envira_lazy_load_initial},envira_lazy_load_delay))}var f,d,r=null,a=null,g="undefined"!=typeof IntersectionObserver;v.fn.exists=function(){return 0<this.length};return"srcset"in document.createElement("img")&&void 0!==window.devicePixelRatio&&void 0!==window.addEventListener&&void 0!==document.querySelectorAll&&(l(),(d=new Image).src="data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoCAAEADMDOJaQAA3AA/uuuAAA=",d.onload=d.onerror=function(){function t(){var t;g&&(t=null),window.addEventListener("resize",function(){l(),g?(window.clearTimeout(t),t=window.setTimeout(function(){h()},300)):a()}),(g?(window.addEventListener("load",h),e):(window.addEventListener("scroll",a),window.addEventListener("load",a),o))(),"undefined"!=typeof MutationObserver&&new MutationObserver(function(){(g?(e(),h):(o(),a))()}).observe(document.querySelector("body"),{childList:!0,subtree:!0})}var e,r,i,n,a,o;f=2===d.width,g?(e=function(){for(var t=document.querySelectorAll(".envira-lazy"),e=t.length,i=0;i<e;i++){var n=t[i];void 0===n.responsivelyLazyObserverAttached&&(n.responsivelyLazyObserverAttached=!0,r.observe(n))}},r=new IntersectionObserver(function(t){for(var e in t){var i,e=t[e];0<e.intersectionRatio&&("img"!==(e=e.target).tagName.toLowerCase()?null!==(i=e.querySelector("img"))&&s(e,i):s(e,e))}}),h()):(i=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)},n=function t(){i.call(null,t)},a=function(){n()},o=function(){for(var t=document.querySelectorAll(".envira-lazy"),e=t.length,i=0;i<e;i++)for(var n=t[i].parentNode;n&&"html"!==n.tagName.toLowerCase();)void 0===n.responsivelyLazyScrollAttached&&(n.responsivelyLazyScrollAttached=!0,n.addEventListener("scroll",a)),n=n.parentNode});"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t):t()}),{run:h,isVisible:o,setGalleryClass:function(t){0}}}())},514:(t,e,i)=>{i(311)(document).ready(function(t){"ontouchstart"in document.documentElement&&t("body").addClass("envira-touch")})},579:(t,e,i)=>{var n,r,a=i(311);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}r=function(at){"use strict";var ot="left",st="right",lt="up",ht="down",dt="in",gt="out",ut="none",ct="auto",pt="swipe",ft="pinch",vt="tap",mt="doubletap",wt="longtap",yt="horizontal",bt="vertical",xt="all",St=10,It="start",Et="move",Rt="end",jt="cancel",Tt="ontouchstart"in window,At=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled,Ot=window.navigator.pointerEnabled||window.navigator.msPointerEnabled,Ct="TouchSwipe";function n(M,l){var t=Tt||Ot||!l.fallbackToMouseEvents,e=t?Ot?At?"MSPointerDown":"pointerdown":"touchstart":"mousedown",i=t?Ot?At?"MSPointerMove":"pointermove":"touchmove":"mousemove",n=t?Ot?At?"MSPointerUp":"pointerup":"touchend":"mouseup",r=t?null:"mouseleave",a=Ot?At?"MSPointerCancel":"pointercancel":"touchcancel",h=0,d=null,g=0,u=0,c=0,p=1,f=0,v=0,m=null,o=at(M),w="start",y=0,b=null,s=0,x=0,S=0,I=0,E=0,R=null,j=null;try{o.bind(e,T),o.bind(a,O)}catch(t){at.error("events not supported "+e+","+a+" on jQuery.swipe")}function T(t){var e,i,n;if(!0!==o.data(Ct+"_intouch")&&!(0<at(t.target).closest(l.excludedElements,o).length))return e=t.originalEvent||t,n=Tt?e.touches[0]:e,w=It,Tt?y=e.touches.length:t.preventDefault(),v=d=null,p=1,f=c=u=g=h=0,b=function(){for(var t=[],e=0;e<=5;e++)t.push({start:{x:0,y:0},end:{x:0,y:0},identifier:0});return t}(),(t={})[ot]=L(ot),t[st]=L(st),t[lt]=L(lt),t[ht]=L(ht),m=t,K(),!Tt||y===l.fingers||l.fingers===xt||z()?(tt(0,n),s=_(),2==y&&(tt(1,e.touches[1]),u=c=rt(b[0].start,b[1].start)),(l.swipeStatus||l.pinchStatus)&&(i=C(e,w))):i=!1,!1===i?(C(e,w=jt),i):(l.hold&&(j=setTimeout(at.proxy(function(){o.trigger("hold",[e.target]),l.hold&&(i=l.hold.call(o,e,e.target))},this),l.longTapThreshold)),H(!0),null)}function A(t){var e=t.originalEvent||t;if(w!==Rt&&w!==jt&&!Z()){var i,n=et(Tt?e.touches[0]:e);if(x=_(),Tt&&(y=e.touches.length),l.hold&&clearTimeout(j),w=Et,2==y&&(0==u?(tt(1,e.touches[1]),u=c=rt(b[0].start,b[1].start)):(et(e.touches[1]),c=rt(b[0].end,b[1].end),b[0].end,b[1].end,v=p<1?gt:dt),p=(c/u*1).toFixed(2),f=Math.abs(u-c)),y===l.fingers||l.fingers===xt||!Tt||z()){d=function(t,e){t=function(t,e){var i=t.x-e.x,e=e.y-t.y,t=Math.atan2(e,i),e=Math.round(180*t/Math.PI);e<0&&(e=360-Math.abs(e));return e}(t,e);return t<=45&&0<=t||t<=360&&315<=t?ot:135<=t&&t<=225?st:45<t&&t<135?ht:lt}(n.start,n.end);var r,a,o=t,t=d;if(l.allowPageScroll===ut||z())o.preventDefault();else{var s=l.allowPageScroll===ct;switch(t){case ot:(l.swipeLeft&&s||!s&&l.allowPageScroll!=yt)&&o.preventDefault();break;case st:(l.swipeRight&&s||!s&&l.allowPageScroll!=yt)&&o.preventDefault();break;case lt:(l.swipeUp&&s||!s&&l.allowPageScroll!=bt)&&o.preventDefault();break;case ht:(l.swipeDown&&s||!s&&l.allowPageScroll!=bt)&&o.preventDefault()}}t=n.start,r=n.end,h=Math.round(Math.sqrt(Math.pow(r.x-t.x,2)+Math.pow(r.y-t.y,2))),g=nt(),r=d,t=h,t=Math.max(t,it(r)),m[r].distance=t,(l.swipeStatus||l.pinchStatus)&&(i=C(e,w)),l.triggerOnTouchEnd&&!l.triggerOnTouchLeave||(r=!0,l.triggerOnTouchLeave&&(a={left:(a=(t=at(t=this)).offset()).left,right:a.left+t.outerWidth(),top:a.top,bottom:a.top+t.outerHeight()},t=n.end,n=a,r=t.x>n.left&&t.x<n.right&&t.y>n.top&&t.y<n.bottom),!l.triggerOnTouchEnd&&r?w=B(Et):l.triggerOnTouchLeave&&!r&&(w=B(Rt)),w!=jt&&w!=Rt)||C(e,w)}else C(e,w=jt);!1===i&&C(e,w=jt)}}function D(t){var e=t.originalEvent;return Tt&&0<e.touches.length?(S=_(),I=event.touches.length+1,!0):(Z()&&(y=I),x=_(),g=nt(),W()||!N()?C(e,w=jt):l.triggerOnTouchEnd||0==l.triggerOnTouchEnd&&w===Et?(t.preventDefault(),C(e,w=Rt)):!l.triggerOnTouchEnd&&X()?k(e,w=Rt,vt):w===Et&&C(e,w=jt),H(!1),null)}function O(){c=u=s=x=y=0,K(),H(!(p=1))}function F(t){t=t.originalEvent;l.triggerOnTouchLeave&&C(t,w=B(Rt))}function P(){o.unbind(e,T),o.unbind(a,O),o.unbind(i,A),o.unbind(n,D),r&&o.unbind(r,F),H(!1)}function B(t){var e=t,i=$(),n=N(),r=W();return!i||r?e=jt:!n||t!=Et||l.triggerOnTouchEnd&&!l.triggerOnTouchLeave?!n&&t==Rt&&l.triggerOnTouchLeave&&(e=jt):e=Rt,e}function C(t,e){var i=void 0;return U()&&V()||V()?i=k(t,e,pt):(q()&&z()||z())&&!1!==i&&(i=k(t,e,ft)),J()&&Q()&&!1!==i?i=k(t,e,mt):g>l.longTapThreshold&&h<St&&l.longTap&&!1!==i?i=k(t,e,wt):1!==y&&Tt||!(isNaN(h)||h<l.threshold)||!X()||!1===i||(i=k(t,e,vt)),e===jt&&O(),e!==Rt||Tt&&0!=t.touches.length||O(),i}function k(t,e,i){var n=void 0;if(i==pt){if(o.trigger("swipeStatus",[e,d||null,h||0,g||0,y,b]),l.swipeStatus&&!1===(n=l.swipeStatus.call(o,t,e,d||null,h||0,g||0,y,b)))return!1;if(e==Rt&&U()){if(o.trigger("swipe",[d,h,g,y,b]),l.swipe&&!1===(n=l.swipe.call(o,t,d,h,g,y,b)))return!1;switch(d){case ot:o.trigger("swipeLeft",[d,h,g,y,b]),l.swipeLeft&&(n=l.swipeLeft.call(o,t,d,h,g,y,b));break;case st:o.trigger("swipeRight",[d,h,g,y,b]),l.swipeRight&&(n=l.swipeRight.call(o,t,d,h,g,y,b));break;case lt:o.trigger("swipeUp",[d,h,g,y,b]),l.swipeUp&&(n=l.swipeUp.call(o,t,d,h,g,y,b));break;case ht:o.trigger("swipeDown",[d,h,g,y,b]),l.swipeDown&&(n=l.swipeDown.call(o,t,d,h,g,y,b))}}}if(i==ft){if(o.trigger("pinchStatus",[e,v||null,f||0,g||0,y,p,b]),l.pinchStatus&&!1===(n=l.pinchStatus.call(o,t,e,v||null,f||0,g||0,y,p,b)))return!1;if(e==Rt&&q())switch(v){case dt:o.trigger("pinchIn",[v||null,f||0,g||0,y,p,b]),l.pinchIn&&(n=l.pinchIn.call(o,t,v||null,f||0,g||0,y,p,b));break;case gt:o.trigger("pinchOut",[v||null,f||0,g||0,y,p,b]),l.pinchOut&&(n=l.pinchOut.call(o,t,v||null,f||0,g||0,y,p,b))}}return i==vt?e!==jt&&e!==Rt||(clearTimeout(R),clearTimeout(j),Q()&&!J()?(E=_(),R=setTimeout(at.proxy(function(){E=null,o.trigger("tap",[t.target]),l.tap&&(n=l.tap.call(o,t,t.target))},this),l.doubleTapThreshold)):(E=null,o.trigger("tap",[t.target]),l.tap&&(n=l.tap.call(o,t,t.target)))):i==mt?e!==jt&&e!==Rt||(clearTimeout(R),E=null,o.trigger("doubletap",[t.target]),l.doubleTap&&(n=l.doubleTap.call(o,t,t.target))):i!=wt||e!==jt&&e!==Rt||(clearTimeout(R),E=null,o.trigger("longtap",[t.target]),l.longTap&&(n=l.longTap.call(o,t,t.target))),n}function N(){var t=!0;return t=null!==l.threshold?h>=l.threshold:t}function W(){var t=!1;return t=null!==l.cancelThreshold&&null!==d?it(d)-h>=l.cancelThreshold:t}function $(){var t=!(l.maxTimeThreshold&&g>=l.maxTimeThreshold);return t}function q(){var t=Y(),e=G(),i=null===l.pinchThreshold||f>=l.pinchThreshold;return t&&e&&i}function z(){return l.pinchStatus||l.pinchIn||l.pinchOut}function U(){var t=$(),e=N(),i=Y(),n=G();return!W()&&n&&i&&e&&t}function V(){return l.swipe||l.swipeStatus||l.swipeLeft||l.swipeRight||l.swipeUp||l.swipeDown}function Y(){return y===l.fingers||l.fingers===xt||!Tt}function G(){return 0!==b[0].end.x}function X(){return l.tap}function Q(){return!!l.doubleTap}function J(){var t;return null!=E&&(t=_(),Q())&&t-E<=l.doubleTapThreshold}function K(){I=S=0}function Z(){var t=!1;return t=S&&_()-S<=l.fingerReleaseThreshold?!0:t}function H(t){!0===t?(o.bind(i,A),o.bind(n,D),r&&o.bind(r,F)):(o.unbind(i,A,!1),o.unbind(n,D,!1),r&&o.unbind(r,F,!1)),o.data(Ct+"_intouch",!0===t)}function tt(t,e){var i=void 0!==e.identifier?e.identifier:0;b[t].identifier=i,b[t].start.x=b[t].end.x=e.pageX||e.clientX,b[t].start.y=b[t].end.y=e.pageY||e.clientY,b[t]}function et(t){var e=function(t){for(var e=0;e<b.length;e++)if(b[e].identifier==t)return b[e]}(void 0!==t.identifier?t.identifier:0);return e.end.x=t.pageX||t.clientX,e.end.y=t.pageY||t.clientY,e}function it(t){if(m[t])return m[t].distance}function L(t){return{direction:t,distance:0}}function nt(){return x-s}function rt(t,e){var i=Math.abs(t.x-e.x),t=Math.abs(t.y-e.y);return Math.round(Math.sqrt(i*i+t*t))}function _(){return(new Date).getTime()}this.enable=function(){return o.bind(e,T),o.bind(a,O),o},this.disable=function(){return P(),o},this.destroy=function(){P(),o.data(Ct,null),o=null},this.option=function(t,e){if(void 0!==l[t]){if(void 0===e)return l[t];l[t]=e}else at.error("Option "+t+" does not exist on jQuery.swipe.options");return null}}at.fn.swipe=function(t){var e=at(this),i=e.data(Ct);if(i&&"string"==typeof t){if(i[t])return i[t].apply(this,Array.prototype.slice.call(arguments,1));at.error("Method "+t+" does not exist on jQuery.swipe")}else if(!(i||"object"!==o(t)&&t))return function(i){!i||void 0!==i.allowPageScroll||void 0===i.swipe&&void 0===i.swipeStatus||(i.allowPageScroll=ut);void 0!==i.click&&void 0===i.tap&&(i.tap=i.click);i=i||{};return i=at.extend({},at.fn.swipe.defaults,i),this.each(function(){var t,e=at(this);e.data(Ct)||(t=new n(this,i),e.data(Ct,t))})}.apply(this,arguments);return e},at.fn.swipe.defaults={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:"label, button, input, select, textarea, a, .noSwipe"},at.fn.swipe.phases={PHASE_START:It,PHASE_MOVE:Et,PHASE_END:Rt,PHASE_CANCEL:jt},at.fn.swipe.directions={LEFT:ot,RIGHT:st,UP:lt,DOWN:ht,IN:dt,OUT:gt},at.fn.swipe.pageScroll={NONE:ut,HORIZONTAL:yt,VERTICAL:bt,AUTO:ct},at.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,ALL:xt}},i.amdO.jQuery?(i=[i(311)],void 0!==(e="function"==typeof(n=r)?n.apply(e,i):n)&&(t.exports=e)):r(a)},311:t=>{"use strict";t.exports=jQuery}},n={};function r(t){var e=n[t];return void 0!==e||(e=n[t]={exports:{}},i[t].call(e.exports,e,e.exports,r)),e.exports}r.amdO={},r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var i in e)r.o(e,i)&&!r.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);(()=>{"use strict";r(138),r(461),r(514),r(579),r(655),r(161),r(234),r(439);r(311)(document).ready(function(n){var r;n("body").on("click",'div.envirabox-title a[href*="#"]:not([href="#"])',function(t){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname)return n.envirabox.close(),!1}),n(document).on("envira_image_lazy_load_complete",function(t){var e,i;void 0!==t&&void 0!==t.image_id&&null!==t.image_id&&(r=0<n("#envira-gallery-wrap-"+t.gallery_id).find("#"+t.video_id+" iframe").length?n("#envira-gallery-wrap-"+t.gallery_id).find("#"+t.video_id+" iframe"):0<n("#envira-gallery-wrap-"+t.gallery_id).find("#"+t.video_id+" video").length?n("#envira-gallery-wrap-"+t.gallery_id).find("#"+t.video_id+" video"):n("#envira-gallery-wrap-"+t.gallery_id).find("img#"+t.image_id),n("#envira-gallery-wrap-"+t.gallery_id).find("div.envira-gallery-public").hasClass("envira-gallery-0-columns")?n(r).closest("div.envira-gallery-item-inner").find("div.envira-gallery-position-overlay").delay(100).show():(n(r).closest("div.envira-gallery-item-inner").find("div.envira-gallery-position-overlay").delay(100).show(),i=n(r).closest("div.envira-gallery-item-inner").find(".envira-lazy").width(),e=t.naturalHeight/t.naturalWidth,i=100*((i=t.naturalHeight/i)<e?i:e),n(r).closest("div.envira-gallery-item-inner").find(".envira-lazy").css("padding-bottom",i+"%"),n(r).closest("div.envira-gallery-item-inner").find(".envira-lazy").data("envira-changed","true"),void 0!==window["envira_container_"+t.gallery_id]&&window["envira_container_"+t.gallery_id].on("layoutComplete",function(t,e){n(r).closest("div.envira-gallery-item-inner").find("span.envira-title").delay(1e3).css("visibility","visible"),n(r).closest("div.envira-gallery-item-inner").find("span.envira-caption").delay(1e3).css("visibility","visible")}),n("#envira-gallery-"+t.gallery_id).masonry("layout")))})})})()})();