(function ($){
("use strict");
$(document).ready(function (){
initYouTubeGallery();
});
function initYouTubeGallery(){
function parseMaybeJSON(val, fallback){
if(typeof val==="string"){
try {
return JSON.parse(val);
} catch (e){
return fallback;
}}
return typeof val==="object"&&val!==null ? val:fallback;
}
function truncateText(text, length){
if(!text) return "";
const width=$(window).width();
let maxLength;
if(width < 600){
maxLength=length.sm||length.lg;
}else if(width < 900){
maxLength=length.md||length.lg;
}else{
maxLength=length.lg;
}
return text.length > maxLength
? text.substring(0, maxLength) + "..."
: text;
}
function sortVideos(videos, sortBy){
const sorted=[...videos];
switch (sortBy){
case "title":
return sorted.sort((a, b)=>
a.title.localeCompare(b.title, undefined, {
sensitivity: "base",
})
);
case "latest":
return sorted.sort((a, b)=>
new Date(b.publishedAt).getTime() -
new Date(a.publishedAt).getTime()
);
case "date":
return sorted.sort((a, b)=>
new Date(a.publishedAt).getTime() -
new Date(b.publishedAt).getTime()
);
case "popular":
return sorted.sort((a, b)=> (b.viewCount||0) - (a.viewCount||0));
default:
return videos;
}}
function getPlaylistId(input){
if(!input) return "";
try {
const url=new URL(input);
if(url.hostname==="www.youtube.com"){
if(url.pathname.startsWith("/channel/")){
return url.pathname.split("/channel/")[1];
}else if(url.pathname.startsWith("/@")){
return url.pathname.substring(2);
}else if(url.searchParams.get("list")){
return url.searchParams.get("list");
}}
return input;
} catch (e){
return input;
}}
function resolveHandleToChannelId(handle, apiKey, callback){
$.get(`https://www.googleapis.com/youtube/v3/search?part=snippet&q=${encodeURIComponent(
handle
)}&type=channel&key=${apiKey}`
)
.done(function (data){
if(data.items&&data.items.length > 0){
callback(data.items[0].snippet.channelId);
}else{
callback(null);
}})
.fail(function (){
callback(null);
});
}
function generatePlayerIframe(videoId, config){
const params=[
`autoplay=${config.autoplay ? "1":"0"}`,
`loop=${config.loop ? "1":"0"}`,
`mute=${config.mute ? "1":"0"}`,
`controls=${config.showPlayerControl ? "1":"0"}`,
`modestbranding=${config.hideYoutubeLogo ? "1":"0"}`,
config.loop ? `playlist=${videoId}`:null,
]
.filter(Boolean)
.join("&");
return `
<div class="ultp-ytg-video-wrapper">
<iframe
src="https://www.youtube.com/embed/${videoId}?${params}"
title="YouTube Video"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
></iframe>
</div>
`;
}
function getYoutubeTextContent(
enableTitle,
title,
titleLength,
enableDesc,
description,
descriptionLength,
videoId
){
let html='<div class="ultp-ytg-content">';
if(enableTitle){
html +=`<div class="ultp-ytg-title"><a href="https://www.youtube.com/watch?v=${videoId}" target="_blank" rel="noopener noreferrer">${truncateText(
title,
titleLength
)}</a></div>`;
}
if(enableDesc){
html +=`<div class="ultp-ytg-description">${truncateText(
description,
descriptionLength
)}</div>`;
}
html +="</div>";
return html;
}
$(".wp-block-ultimate-post-youtube-gallery").each(function (){
const $block=$(this);
const $wrapper=$block.find(".ultp-block-wrapper");
let $container=$block.find(".ultp-ytg-view-grid, .ultp-ytg-container");
const $loadMoreBtn=$block.find(".ultp-ytg-loadmore-btn");
const config={
playlistIdOrUrl: $block.data("playlist")||"",
apiKey: $block.data("api-key")||"",
cacheDuration: parseInt($block.data("cache-duration"))||0,
sortBy: $block.data("sort-by")||"date",
galleryLayout: $block.data("gallery-layout")||"grid",
videosPerPage: parseMaybeJSON($block.data("videos-per-page"), {
lg: 9,
md: 6,
sm: 3,
}),
showVideoTitle: $block.data("show-video-title")=="1",
videoTitleLength: parseMaybeJSON($block.data("video-title-length"), {
lg: 50,
md: 50,
sm: 50,
}),
loadMoreEnable: $block.data("load-more-enable")=="1",
moreButtonLabel: $block.data("more-button-label")||"More Videos",
autoplay: $block.data("autoplay")=="1",
loop: $block.data("loop")=="1",
mute: $block.data("mute")=="1",
showPlayerControl: $block.data("show-player-control")=="1",
hideYoutubeLogo: $block.data("hide-youtube-logo")=="1",
showDescription: $block.data("show-description")=="1",
videoDescriptionLength: parseMaybeJSON(
$block.data("video-description-length"),
{
lg: 100,
md: 100,
sm: 100,
}
),
imageHeightRatio: $block.data("image-height-ratio")||"16-9",
galleryColumn: parseMaybeJSON($block.data("gallery-column"), {
lg: 3,
md: 2,
sm: 1,
}),
displayType: $block.data("display-type")||"grid",
enableListView: $block.data("enable-list-view")=="1",
enableIconAnimation: $block.data("enable-icon-animation")=="1",
defaultYoutubeIcon: $block.data("enable-youtube-icon")=="1",
imgHeight: $block.data("img-height"),
};
let playlistId=getPlaylistId(config.playlistIdOrUrl);
if(playlistId.startsWith("@")){
const handle=playlistId.substring(1);
resolveHandleToChannelId(handle, config.apiKey, function (channelId){
if(channelId){
playlistId=channelId;
proceedWithPlaylist(playlistId);
}else{
$wrapper.html('<p style="color:#888">Invalid handle or API key.</p>'
);
}});
}else{
proceedWithPlaylist(playlistId);
}
function proceedWithPlaylist(playlistId){
if(playlistId.startsWith("UC")){
playlistId="UU" + playlistId.substring(2);
}
if(!playlistId||!config.apiKey){
$wrapper.html('<p style="color:#888">Please provide both YouTube playlist ID/URL and API key.</p>'
);
return;
}
let allVideos=[];
let shownCount=config.videosPerPage.lg||9;
let activeVideo=null;
let playingId=null;
function updateResponsiveCounts(){
const width=$(window).width();
if(width < 600){
shownCount=Math.max(shownCount, config.videosPerPage.sm||3);
}else if(width < 900){
shownCount=Math.max(shownCount, config.videosPerPage.md||6);
}else{
shownCount=Math.max(shownCount, config.videosPerPage.lg||9);
}}
function renderPlaylistLayout(videos){
if(!videos.length){
$container.html("<p>No videos found in this playlist.</p>");
return;
}
if(!activeVideo){
activeVideo=videos[0];
}
let html='<div class="ultp-ytg-main">';
const playerWrapper=`
<div class="ultp-ytg-video-wrapper">
<iframe
src="https://www.youtube.com/embed/${activeVideo.videoId}?${[
`autoplay=${config.autoplay ? "1":"0"}`,
`loop=${config.loop ? "1":"0"}`,
`mute=${config.mute ? "1":"0"}`,
`controls=${config.showPlayerControl ? "1":"0"}`,
`modestbranding=${config.hideYoutubeLogo ? "1":"0"}`,
config.loop ? `playlist=${activeVideo.videoId}`:null,
]
.filter(Boolean)
.join("&")}"
title="YouTube Video"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
></iframe>
${getYoutubeTextContent(
config.showVideoTitle,
activeVideo.title,
config.videoTitleLength,
config.showDescription,
activeVideo.description,
config.videoDescriptionLength,
activeVideo.videoId
)}
</div>
`;
html +=playerWrapper;
html +="</div>";
html +='<div class="ultp-ytg-playlist-sidebar">';
html +='<div class="ultp-ytg-playlist-items">';
videos.forEach(function (video){
const isActive=video.videoId===activeVideo.videoId;
html +=`
<div class="ultp-ytg-playlist-item ${
isActive ? "active":""
}" data-video-id="${video.videoId}">
<img src="${video.thumbnail}" alt="${video.title}" loading="lazy" />
<div class="ultp-ytg-playlist-item-content">
<div class="ultp-ytg-playlist-item-title">
${truncateText(video.title, config.videoTitleLength)}
</div>
</div>
</div>
`;
});
html +="</div></div>";
$container.html(html);
}
function renderGridLayout(videos, count){
if(!videos.length){
$container.html("<p>No videos found in this playlist.</p>");
return;
}
const displayedVideos=videos.slice(0, count);
let html="";
displayedVideos.forEach(function (video){
const isPlaying=playingId===video.videoId;
html +=`<div class="ultp-ytg-item${isPlaying ? " active":""}">`;
html +=`<div class="ultp-ytg-video">`;
if(isPlaying){
html +=generatePlayerIframe(video.videoId, config);
}else{
const getSvgIcon=$(".ultp-ytg-play__icon").html();
html +=`
<img src="${video.thumbnail}" alt="${
video.title
}" loading="lazy" data-video-id="${
video.videoId
}" style="cursor:pointer;" />
<div class="ultp-ytg-play__icon${
config.enableIconAnimation ? " ytg-icon-animation":""
}">
${getSvgIcon}
</div>
`;
}
html +=`</div>`;
html +=`<div class="ultp-ytg-inside">`;
html +=getYoutubeTextContent(
config.showVideoTitle,
video.title,
config.videoTitleLength,
config.showDescription,
video.description,
config.videoDescriptionLength,
video.videoId
);
html +=`</div></div>`;
});
$container.html(html);
if(config.loadMoreEnable&&count < videos.length){
$loadMoreBtn.show();
}else{
$loadMoreBtn.hide();
}}
function renderVideos(videos, count){
if(config.galleryLayout==="playlist"){
renderPlaylistLayout(videos);
}else{
renderGridLayout(videos, count);
}}
const cacheKey=`ultp_youtube_gallery_${playlistId}_${config.apiKey}_${config.sortBy}_${config.imgHeight}`;
const duration=config.cacheDuration;
let cached=null;
try {
cached=JSON.parse(localStorage.getItem(cacheKey));
} catch (e){
cached=null;
}
const now=Date.now();
if(cached &&
cached.data &&
cached.timestamp &&
duration > 0 &&
now - cached.timestamp < duration * 1000
){
allVideos=sortVideos(cached.data, config.sortBy);
renderVideos(allVideos, shownCount);
}else{
if(config.galleryLayout!=="playlist"){
$container.html(`
<div class="ultp-ytg-loading gallery-postx gallery-active">
<div class="skeleton-box"></div>
<div class="skeleton-box"></div>
<div class="skeleton-box"></div>
<div class="skeleton-box"></div>
<div class="skeleton-box"></div>
<div class="skeleton-box"></div>
</div>
`);
}else{
$container.html(`
<div class="ultp-ytg-loading ultp-ytg-playlist-loading">
<div class="ytg-loader"></div>
</div>`);
}
$.get("https://www.googleapis.com/youtube/v3/playlistItems", {
part: "snippet",
maxResults: 50,
playlistId: playlistId,
key: config.apiKey,
})
.done(function (data){
setTimeout(function (){
$container.empty();
if(data.error){
$container.html(`<div class="ultp-ytg-error">${
data.error.message||"Failed to fetch playlist."
}</div>`
);
return;
}
const videos=(data.items||[])
.filter(function (item){
return (
item.snippet.title!=="Private video" &&
item.snippet.title!=="Deleted video"
);
})
.map(function (item){
return {
videoId: item.snippet.resourceId.videoId,
title: item.snippet.title,
thumbnail:
(item.snippet.thumbnails &&
item.snippet.thumbnails[config.imgHeight] &&
item.snippet.thumbnails[config.imgHeight].url) ||
item.snippet.thumbnails[config.imgHeight].url ||
item.snippet.thumbnails?.medium?.url ||
"",
publishedAt: item.snippet.publishedAt||"",
description: item.snippet.description||"",
viewCount: 0,
};});
if(config.sortBy==="popular"){
const videoIds=videos.map((v)=> v.videoId).join(",");
$.get(`https://www.googleapis.com/youtube/v3/videos?part=statistics&id=${videoIds}&key=${config.apiKey}`
)
.done(function (statsData){
if(statsData.items){
const statsMap={};
statsData.items.forEach(function (item){
statsMap[item.id]=item.statistics.viewCount;
});
videos.forEach(function (v){
v.viewCount=parseInt(statsMap[v.videoId]||0);
});
}
allVideos=sortVideos(videos, config.sortBy);
if(duration > 0){
try {
localStorage.setItem(cacheKey,
JSON.stringify({
data: videos,
timestamp: now,
})
);
} catch (e){
console.warn("Failed to cache videos:", e);
}}
renderVideos(allVideos, shownCount);
})
.fail(function (){
console.warn("Failed to fetch video statistics for popular sorting."
);
allVideos=sortVideos(videos, config.sortBy);
renderVideos(allVideos, shownCount);
});
}else{
allVideos=sortVideos(videos, config.sortBy);
if(duration > 0){
try {
localStorage.setItem(cacheKey,
JSON.stringify({
data: videos,
timestamp: now,
})
);
} catch (e){
console.warn("Failed to cache videos:", e);
}}
renderVideos(allVideos, shownCount);
}}, 2000);
})
.fail(function (){
setTimeout(function (){
$container.empty();
$container.html('<div class="ultp-ytg-error">Failed to fetch videos. Please try again.</div>'
);
}, 3000);
});
}
$block.on("click", ".ultp-ytg-playlist-item", function (){
const videoId=$(this).data("video-id");
if(!videoId) return;
activeVideo=allVideos.find(function (v){
return v.videoId===videoId;
});
if(activeVideo){
renderPlaylistLayout(allVideos);
}});
$block.on("click", ".ultp-ytg-play__icon", function (){
const $img=$(this).siblings("img[data-video-id]");
const videoId=$img.data("video-id");
if(!videoId) return;
const $item=$(this).closest(".ultp-ytg-item");
const $videoDiv=$item.find(".ultp-ytg-video");
$videoDiv.html('<div class="ultp-ytg-loading"><div class="ytg-loader"></div></div>'
);
$item
.addClass("active")
.siblings(".ultp-ytg-item")
.removeClass("active");
setTimeout(function (){
playingId=videoId;
renderGridLayout(allVideos, shownCount);
}, 1000);
});
$block.on("click", ".ultp-ytg-video img[data-video-id]", function (){
const videoId=$(this).data("video-id");
if(!videoId) return;
playingId=videoId;
renderGridLayout(allVideos, shownCount);
});
$loadMoreBtn.on("click", function (){
shownCount +=config.videosPerPage.lg;
renderGridLayout(allVideos, shownCount);
});
$(window).on("resize", function (){
if(allVideos.length){
updateResponsiveCounts();
renderVideos(allVideos, shownCount);
}});
}});
}})(jQuery);
jQuery(function(t){if("undefined"==typeof wc_add_to_cart_params)return!1;var a=function(){this.requests=[],this.addRequest=this.addRequest.bind(this),this.run=this.run.bind(this),this.$liveRegion=this.createLiveRegion(),t(document.body).on("click",".add_to_cart_button:not(.wc-interactive)",{addToCartHandler:this},this.onAddToCart).on("keydown",".add_to_cart_button:not(.wc-interactive)",{addToCartHandler:this},t=>{" "===t.key&&(t.preventDefault(),t.target.click())}).on("click",".remove_from_cart_button",{addToCartHandler:this},this.onRemoveFromCart).on("keydown",".remove_from_cart_button",this.onKeydownRemoveFromCart).on("added_to_cart",{addToCartHandler:this},this.onAddedToCart).on("removed_from_cart",{addToCartHandler:this},this.onRemovedFromCart).on("ajax_request_not_sent.adding_to_cart",this.updateButton)};a.prototype.addRequest=function(t){this.requests.push(t),1===this.requests.length&&this.run()},a.prototype.run=function(){var a=this,e=a.requests[0].complete;a.requests[0].complete=function(){"function"==typeof e&&e(),a.requests.shift(),a.requests.length>0&&a.run()},t.ajax(this.requests[0])},a.prototype.onAddToCart=function(a){var e=t(this);if(e.is(".ajax_add_to_cart")){if(!e.attr("data-product_id"))return!0;if(a.data.addToCartHandler.$liveRegion.text("").removeAttr("aria-relevant"),a.preventDefault(),e.removeClass("added"),e.addClass("loading"),!1===t(document.body).triggerHandler("should_send_ajax_request.adding_to_cart",[e]))return t(document.body).trigger("ajax_request_not_sent.adding_to_cart",[!1,!1,e]),!0;var r={};t.each(e.data(),function(t,a){r[t]=a}),t.each(e[0].dataset,function(t,a){r[t]=a}),t(document.body).trigger("adding_to_cart",[e,r]),a.data.addToCartHandler.addRequest({type:"POST",url:wc_add_to_cart_params.wc_ajax_url.toString().replace("%%endpoint%%","add_to_cart"),data:r,success:function(a){a&&(a.error&&a.product_url?window.location=a.product_url:"yes"!==wc_add_to_cart_params.cart_redirect_after_add?t(document.body).trigger("added_to_cart",[a.fragments,a.cart_hash,e]):window.location=wc_add_to_cart_params.cart_url)},dataType:"json"})}},a.prototype.onRemoveFromCart=function(a){var e=t(this),r=e.closest(".woocommerce-mini-cart-item");a.data.addToCartHandler.$liveRegion.text("").removeAttr("aria-relevant"),a.preventDefault(),r.block({message:null,overlayCSS:{opacity:.6}}),a.data.addToCartHandler.addRequest({type:"POST",url:wc_add_to_cart_params.wc_ajax_url.toString().replace("%%endpoint%%","remove_from_cart"),data:{cart_item_key:e.data("cart_item_key")},success:function(a){a&&a.fragments?t(document.body).trigger("removed_from_cart",[a.fragments,a.cart_hash,e]):window.location=e.attr("href")},error:function(){window.location=e.attr("href")},dataType:"json"})},a.prototype.onKeydownRemoveFromCart=function(a){" "===a.key&&(a.preventDefault(),t(this).trigger("click"))},a.prototype.updateButton=function(a,e,r,o){if(o=void 0!==o&&o){if(o.removeClass("loading"),e&&o.addClass("added"),e&&!wc_add_to_cart_params.is_cart&&0===o.parent().find(".added_to_cart").length){var d=document.createElement("a");d.href=wc_add_to_cart_params.cart_url,d.className="added_to_cart wc-forward",d.title=wc_add_to_cart_params.i18n_view_cart,d.textContent=wc_add_to_cart_params.i18n_view_cart,o.after(d)}t(document.body).trigger("wc_cart_button_updated",[o])}},a.prototype.updateFragments=function(a,e){e&&(t.each(e,function(a){t(a).addClass("updating").fadeTo("400","0.6").block({message:null,overlayCSS:{opacity:.6}})}),t.each(e,function(a,e){t(a).replaceWith(e),t(a).stop(!0).css("opacity","1").unblock()}),t(document.body).trigger("wc_fragments_loaded"))},a.prototype.alertCartUpdated=function(t,a,e,r){if(r=void 0!==r&&r){var o=r.data("success_message");if(!o)return;t.data.addToCartHandler.$liveRegion.delay(1e3).text(o).attr("aria-relevant","all")}},a.prototype.createLiveRegion=function(){var a=t(".widget_shopping_cart_live_region");return a.length?a:t('<div class="widget_shopping_cart_live_region screen-reader-text" role="status"></div>').appendTo("body")},a.prototype.onAddedToCart=function(t,a,e,r){t.data.addToCartHandler.updateButton(t,a,e,r),t.data.addToCartHandler.updateFragments(t,a),t.data.addToCartHandler.alertCartUpdated(t,a,e,r)},a.prototype.onRemovedFromCart=function(t,a,e,r){t.data.addToCartHandler.updateFragments(t,a),t.data.addToCartHandler.alertCartUpdated(t,a,e,r)},new a});
function on_keydown_remove_from_cart(e){" "===e.key&&(e.preventDefault(),e.currentTarget.click())}function focus_populate_live_region(){var e=["woocommerce-message","woocommerce-error","wc-block-components-notice-banner"].map(function(e){return"."+e+'[role="alert"]'}).join(", "),o=document.querySelectorAll(e);if(0!==o.length){var t=o[0];t.setAttribute("tabindex","-1");var n=setTimeout(function(){t.focus(),clearTimeout(n)},500)}}function refresh_sorted_by_live_region(){var e=document.querySelector(".woocommerce-result-count");if(e){var o=e.innerHTML;e.setAttribute("aria-hidden","true");var t=setTimeout(function(){e.setAttribute("aria-hidden","false"),e.innerHTML="",e.innerHTML=o,clearTimeout(t)},2e3)}}function on_document_ready(){focus_populate_live_region(),refresh_sorted_by_live_region()}jQuery(function(e){e(".woocommerce-ordering").on("change","select.orderby",function(){e(this).closest("form").trigger("submit")}),e("input.qty:not(.product-quantity input.qty)").each(function(){var o=parseFloat(e(this).attr("min"));o>=0&&parseFloat(e(this).val())<o&&e(this).val(o)});var o="store_notice"+(e(".woocommerce-store-notice").data("noticeId")||"");if("hidden"===Cookies.get(o))e(".woocommerce-store-notice").hide();else{function t(o){["Enter"," "].includes(o.key)&&(o.preventDefault(),e(".woocommerce-store-notice__dismiss-link").click())}e(".woocommerce-store-notice").show(),e(".woocommerce-store-notice__dismiss-link").on("click",function n(r){Cookies.set(o,"hidden",{path:"/"}),e(".woocommerce-store-notice").hide(),r.preventDefault(),e(".woocommerce-store-notice__dismiss-link").off("click",n).off("keydown",t)}).on("keydown",t)}e(".woocommerce-input-wrapper span.description").length&&e(document.body).on("click",function(){e(".woocommerce-input-wrapper span.description:visible").prop("aria-hidden",!0).slideUp(250)}),e(".woocommerce-input-wrapper").on("click",function(e){e.stopPropagation()}),e(".woocommerce-input-wrapper :input").on("keydown",function(o){var t=e(this).parent().find("span.description");if(27===o.which&&t.length&&t.is(":visible"))return t.prop("aria-hidden",!0).slideUp(250),o.preventDefault(),!1}).on("click focus",function(){var o=e(this).parent(),t=o.find("span.description");o.addClass("currentTarget"),e(".woocommerce-input-wrapper:not(.currentTarget) span.description:visible").prop("aria-hidden",!0).slideUp(250),t.length&&t.is(":hidden")&&t.prop("aria-hidden",!1).slideDown(250),o.removeClass("currentTarget")}),e.scroll_to_notices=function(o){o.length&&e("html, body").animate({scrollTop:o.offset().top-100},1e3)},e('.woocommerce form .woocommerce-Input[type="password"]').wrap('<span class="password-input"></span>'),e(".woocommerce form input").filter(":password").parent("span").addClass("password-input"),e(".password-input").each(function(){const o=e(this).find("input").attr("id");e(this).append('<button type="button" class="show-password-input" aria-label="'+woocommerce_params.i18n_password_show+'" aria-describedBy="'+o+'"></button>')}),e(".show-password-input").on("click",function(o){o.preventDefault(),e(this).hasClass("display-password")?(e(this).removeClass("display-password"),e(this).attr("aria-label",woocommerce_params.i18n_password_show)):(e(this).addClass("display-password"),e(this).attr("aria-label",woocommerce_params.i18n_password_hide)),e(this).hasClass("display-password")?e(this).siblings(['input[type="password"]']).prop("type","text"):e(this).siblings('input[type="text"]').prop("type","password"),e(this).siblings("input").focus()}),e("a.coming-soon-footer-banner-dismiss").on("click",function(o){var t=e(o.target);e.ajax({type:"post",url:t.data("rest-url"),data:{woocommerce_meta:{coming_soon_banner_dismissed:"yes"}},beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",t.data("rest-nonce"))},complete:function(){e("#coming-soon-footer-banner").hide()}})}),"undefined"==typeof wc_add_to_cart_params&&e(document.body).on("keydown",".remove_from_cart_button",on_keydown_remove_from_cart),e(document.body).on("item_removed_from_classic_cart updated_wc_div",focus_populate_live_region)}),document.addEventListener("DOMContentLoaded",on_document_ready);
!function(){var e={975:function(e,t,n){var o,s,i;!function(a){"use strict";s=[n(428)],o=function(e){var t={escapeRegExChars:function(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},createNode:function(e){var t=document.createElement("div");return t.className=e,t.style.position="absolute",t.style.display="none",t}},n=27,o=9,s=13,i=38,a=39,r=40,l=e.noop;function u(t,n){var o=this;o.element=t,o.el=e(t),o.suggestions=[],o.badQueries=[],o.selectedIndex=-1,o.currentValue=o.element.value,o.timeoutId=null,o.cachedResponse={},o.onChangeTimeout=null,o.onChange=null,o.isLocal=!1,o.suggestionsContainer=null,o.noSuggestionsContainer=null,o.options=e.extend(!0,{},u.defaults,n),o.classes={selected:"autocomplete-selected",suggestion:"autocomplete-suggestion"},o.hint=null,o.hintValue="",o.selection=null,o.initialize(),o.setOptions(n)}u.utils=t,e.Autocomplete=u,u.defaults={ajaxSettings:{},autoSelectFirst:!1,appendTo:"body",serviceUrl:null,lookup:null,onSelect:null,onHint:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:function(e,n){if(!n)return e.value;var o="("+t.escapeRegExChars(n)+")";return e.value.replace(new RegExp(o,"gi"),"<strong>$1</strong>").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/&lt;(\/?strong)&gt;/g,"<$1>")},formatGroup:function(e,t){return'<div class="autocomplete-group">'+t+"</div>"},delimiter:null,zIndex:9999,type:"GET",noCache:!1,onSearchStart:l,onSearchComplete:l,onSearchError:l,preserveInput:!1,containerClass:"autocomplete-suggestions",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,preventBadQueries:!0,lookupFilter:function(e,t,n){return-1!==e.value.toLowerCase().indexOf(n)},paramName:"query",transformResult:function(e){return"string"==typeof e?JSON.parse(e):e},showNoSuggestionNotice:!1,noSuggestionNotice:"No results",orientation:"bottom",forceFixPosition:!1},u.prototype={initialize:function(){var t,n=this,o="."+n.classes.suggestion,s=n.classes.selected,i=n.options;n.element.setAttribute("autocomplete","off"),n.noSuggestionsContainer=e('<div class="autocomplete-no-suggestion"></div>').html(this.options.noSuggestionNotice).get(0),n.suggestionsContainer=u.utils.createNode(i.containerClass),(t=e(n.suggestionsContainer)).appendTo(i.appendTo||"body"),"auto"!==i.width&&t.css("width",i.width),t.on("mouseover.autocomplete",o,(function(){n.activate(e(this).data("index"))})),t.on("mouseout.autocomplete",(function(){n.selectedIndex=-1,t.children("."+s).removeClass(s)})),t.on("click.autocomplete",o,(function(){n.select(e(this).data("index"))})),t.on("click.autocomplete",(function(){clearTimeout(n.blurTimeoutId)})),n.fixPositionCapture=function(){n.visible&&n.fixPosition()},e(window).on("resize.autocomplete",n.fixPositionCapture),n.el.on("keydown.autocomplete",(function(e){n.onKeyPress(e)})),n.el.on("keyup.autocomplete",(function(e){n.onKeyUp(e)})),n.el.on("blur.autocomplete",(function(){n.onBlur()})),n.el.on("focus.autocomplete",(function(){n.onFocus()})),n.el.on("change.autocomplete",(function(e){n.onKeyUp(e)})),n.el.on("input.autocomplete",(function(e){n.onKeyUp(e)}))},onFocus:function(){var e=this;e.disabled||(e.fixPosition(),e.el.val().length>=e.options.minChars&&e.onValueChange())},onBlur:function(){var t=this,n=t.options,o=t.el.val(),s=t.getQuery(o);t.blurTimeoutId=setTimeout((function(){t.hide(),t.selection&&t.currentValue!==s&&(n.onInvalidateSelection||e.noop).call(t.element)}),200)},abortAjax:function(){var e=this;e.currentRequest&&(e.currentRequest.abort(),e.currentRequest=null)},setOptions:function(t){var n=this,o=e.extend({},n.options,t);n.isLocal=Array.isArray(o.lookup),n.isLocal&&(o.lookup=n.verifySuggestionsFormat(o.lookup)),o.orientation=n.validateOrientation(o.orientation,"bottom"),e(n.suggestionsContainer).css({"max-height":o.maxHeight+"px",width:o.width+"px","z-index":o.zIndex}),this.options=o},clearCache:function(){this.cachedResponse={},this.badQueries=[]},clear:function(){this.clearCache(),this.currentValue="",this.suggestions=[]},disable:function(){var e=this;e.disabled=!0,clearTimeout(e.onChangeTimeout),e.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var t=this,n=e(t.suggestionsContainer),o=n.parent().get(0);if(o===document.body||t.options.forceFixPosition){var s=t.options.orientation,i=n.outerHeight(),a=t.el.outerHeight(),r=t.el.offset(),l={top:r.top,left:r.left};if("auto"===s){var u=e(window).height(),c=e(window).scrollTop(),g=-c+r.top-i,d=c+u-(r.top+a+i);s=Math.max(g,d)===g?"top":"bottom"}if(l.top+="top"===s?-i:a,o!==document.body){var p,h=n.css("opacity");t.visible||n.css("opacity",0).show(),p=n.offsetParent().offset(),l.top-=p.top,l.top+=o.scrollTop,l.left-=p.left,t.visible||n.css("opacity",h).hide()}"auto"===t.options.width&&(l.width=t.el.outerWidth()+"px"),n.css(l)}},isCursorAtEnd:function(){var e,t=this.el.val().length,n=this.element.selectionStart;return"number"==typeof n?n===t:!document.selection||((e=document.selection.createRange()).moveStart("character",-t),t===e.text.length)},onKeyPress:function(e){var t=this;if(t.disabled||t.visible||e.which!==r||!t.currentValue){if(!t.disabled&&t.visible){switch(e.which){case n:t.el.val(t.currentValue),t.hide();break;case a:if(t.hint&&t.options.onHint&&t.isCursorAtEnd()){t.selectHint();break}return;case o:if(t.hint&&t.options.onHint)return void t.selectHint();if(-1===t.selectedIndex)return void t.hide();if(t.select(t.selectedIndex),!1===t.options.tabDisabled)return;break;case s:if(-1===t.selectedIndex)return void t.hide();t.select(t.selectedIndex);break;case i:t.moveUp();break;case r:t.moveDown();break;default:return}e.stopImmediatePropagation(),e.preventDefault()}}else t.suggest()},onKeyUp:function(e){var t=this;if(!t.disabled){switch(e.which){case i:case r:return}clearTimeout(t.onChangeTimeout),t.currentValue!==t.el.val()&&(t.findBestHint(),t.options.deferRequestBy>0?t.onChangeTimeout=setTimeout((function(){t.onValueChange()}),t.options.deferRequestBy):t.onValueChange())}},onValueChange:function(){if(this.ignoreValueChange)this.ignoreValueChange=!1;else{var t=this,n=t.options,o=t.el.val(),s=t.getQuery(o);t.selection&&t.currentValue!==s&&(t.selection=null,(n.onInvalidateSelection||e.noop).call(t.element)),clearTimeout(t.onChangeTimeout),t.currentValue=o,t.selectedIndex=-1,n.triggerSelectOnValidInput&&t.isExactMatch(s)?t.select(0):s.length<n.minChars?t.hide():t.getSuggestions(s)}},isExactMatch:function(e){var t=this.suggestions;return 1===t.length&&t[0].value.toLowerCase()===e.toLowerCase()},getQuery:function(e){var t,n=this.options.delimiter;return n?(t=e.split(n))[t.length-1].trim():e},getSuggestionsLocal:function(t){var n,o=this.options,s=t.toLowerCase(),i=o.lookupFilter,a=parseInt(o.lookupLimit,10);return n={suggestions:e.grep(o.lookup,(function(e){return i(e,t,s)}))},a&&n.suggestions.length>a&&(n.suggestions=n.suggestions.slice(0,a)),n},getSuggestions:function(t){var n,o,s,i,a=this,r=a.options,l=r.serviceUrl;r.params[r.paramName]=t,!1!==r.onSearchStart.call(a.element,r.params)&&(o=r.ignoreParams?null:r.params,"function"!=typeof r.lookup?(a.isLocal?n=a.getSuggestionsLocal(t):("function"==typeof l&&(l=l.call(a.element,t)),s=l+"?"+e.param(o||{}),n=a.cachedResponse[s]),n&&Array.isArray(n.suggestions)?(a.suggestions=n.suggestions,a.suggest(),r.onSearchComplete.call(a.element,t,n.suggestions)):a.isBadQuery(t)?r.onSearchComplete.call(a.element,t,[]):(a.abortAjax(),i={url:l,data:o,type:r.type,dataType:r.dataType},e.extend(i,r.ajaxSettings),a.currentRequest=e.ajax(i).done((function(e){var n;a.currentRequest=null,n=r.transformResult(e,t),a.processResponse(n,t,s),r.onSearchComplete.call(a.element,t,n.suggestions)})).fail((function(e,n,o){r.onSearchError.call(a.element,t,e,n,o)})))):r.lookup(t,(function(e){a.suggestions=e.suggestions,a.suggest(),r.onSearchComplete.call(a.element,t,e.suggestions)})))},isBadQuery:function(e){if(!this.options.preventBadQueries)return!1;for(var t=this.badQueries,n=t.length;n--;)if(0===e.indexOf(t[n]))return!0;return!1},hide:function(){var t=this,n=e(t.suggestionsContainer);"function"==typeof t.options.onHide&&t.visible&&t.options.onHide.call(t.element,n),t.visible=!1,t.selectedIndex=-1,clearTimeout(t.onChangeTimeout),e(t.suggestionsContainer).hide(),t.onHint(null)},suggest:function(){if(this.suggestions.length){var t,n=this,o=n.options,s=o.groupBy,i=o.formatResult,a=n.getQuery(n.currentValue),r=n.classes.suggestion,l=n.classes.selected,u=e(n.suggestionsContainer),c=e(n.noSuggestionsContainer),g=o.beforeRender,d="";o.triggerSelectOnValidInput&&n.isExactMatch(a)?n.select(0):(e.each(n.suggestions,(function(e,n){s&&(d+=function(e,n){var i=e.data[s];return t===i?"":(t=i,o.formatGroup(e,t))}(n,0)),d+='<div class="'+r+'" data-index="'+e+'">'+i(n,a,e)+"</div>"})),this.adjustContainerWidth(),c.detach(),u.html(d),"function"==typeof g&&g.call(n.element,u,n.suggestions),n.fixPosition(),u.show(),o.autoSelectFirst&&(n.selectedIndex=0,u.scrollTop(0),u.children("."+r).first().addClass(l)),n.visible=!0,n.findBestHint())}else this.options.showNoSuggestionNotice?this.noSuggestions():this.hide()},noSuggestions:function(){var t=this,n=t.options.beforeRender,o=e(t.suggestionsContainer),s=e(t.noSuggestionsContainer);this.adjustContainerWidth(),s.detach(),o.empty(),o.append(s),"function"==typeof n&&n.call(t.element,o,t.suggestions),t.fixPosition(),o.show(),t.visible=!0},adjustContainerWidth:function(){var t,n=this,o=n.options,s=e(n.suggestionsContainer);"auto"===o.width?(t=n.el.outerWidth(),s.css("width",t>0?t:300)):"flex"===o.width&&s.css("width","")},findBestHint:function(){var t=this,n=t.el.val().toLowerCase(),o=null;n&&(e.each(t.suggestions,(function(e,t){var s=0===t.value.toLowerCase().indexOf(n);return s&&(o=t),!s})),t.onHint(o))},onHint:function(e){var t=this,n=t.options.onHint,o="";e&&(o=t.currentValue+e.value.substr(t.currentValue.length)),t.hintValue!==o&&(t.hintValue=o,t.hint=e,"function"==typeof n&&n.call(t.element,o))},verifySuggestionsFormat:function(t){return t.length&&"string"==typeof t[0]?e.map(t,(function(e){return{value:e,data:null}})):t},validateOrientation:function(t,n){return t=(t||"").trim().toLowerCase(),-1===e.inArray(t,["auto","bottom","top"])&&(t=n),t},processResponse:function(e,t,n){var o=this,s=o.options;e.suggestions=o.verifySuggestionsFormat(e.suggestions),s.noCache||(o.cachedResponse[n]=e,s.preventBadQueries&&!e.suggestions.length&&o.badQueries.push(t)),t===o.getQuery(o.currentValue)&&(o.suggestions=e.suggestions,o.suggest())},activate:function(t){var n,o=this,s=o.classes.selected,i=e(o.suggestionsContainer),a=i.find("."+o.classes.suggestion);return i.find("."+s).removeClass(s),o.selectedIndex=t,-1!==o.selectedIndex&&a.length>o.selectedIndex?(n=a.get(o.selectedIndex),e(n).addClass(s),n):null},selectHint:function(){var t=this,n=e.inArray(t.hint,t.suggestions);t.select(n)},select:function(e){this.hide(),this.onSelect(e)},moveUp:function(){var t=this;if(-1!==t.selectedIndex)return 0===t.selectedIndex?(e(t.suggestionsContainer).children("."+t.classes.suggestion).first().removeClass(t.classes.selected),t.selectedIndex=-1,t.ignoreValueChange=!1,t.el.val(t.currentValue),void t.findBestHint()):void t.adjustScroll(t.selectedIndex-1)},moveDown:function(){var e=this;e.selectedIndex!==e.suggestions.length-1&&e.adjustScroll(e.selectedIndex+1)},adjustScroll:function(t){var n=this,o=n.activate(t);if(o){var s,i,a,r=e(o).outerHeight();s=o.offsetTop,a=(i=e(n.suggestionsContainer).scrollTop())+n.options.maxHeight-r,s<i?e(n.suggestionsContainer).scrollTop(s):s>a&&e(n.suggestionsContainer).scrollTop(s-n.options.maxHeight+r),n.options.preserveInput||(n.ignoreValueChange=!0,n.el.val(n.getValue(n.suggestions[t].value))),n.onHint(null)}},onSelect:function(e){var t=this,n=t.options.onSelect,o=t.suggestions[e];t.currentValue=t.getValue(o.value),t.currentValue===t.el.val()||t.options.preserveInput||t.el.val(t.currentValue),t.onHint(null),t.suggestions=[],t.selection=o,"function"==typeof n&&n.call(t.element,o)},getValue:function(e){var t,n,o=this.options.delimiter;return o?1===(n=(t=this.currentValue).split(o)).length?e:t.substr(0,t.length-n[n.length-1].length)+e:e},dispose:function(){var t=this;t.el.off(".autocomplete").removeData("autocomplete"),e(window).off("resize.autocomplete",t.fixPositionCapture),e(t.suggestionsContainer).remove()}},e.fn.devbridgeAutocomplete=function(t,n){var o="autocomplete";return arguments.length?this.each((function(){var s=e(this),i=s.data(o);"string"==typeof t?i&&"function"==typeof i[t]&&i[t](n):(i&&i.dispose&&i.dispose(),i=new u(this,t),s.data(o,i))})):this.first().data(o)},e.fn.autocomplete||(e.fn.autocomplete=e.fn.devbridgeAutocomplete)},void 0===(i=o.apply(t,s))||(e.exports=i)}(),jQuery(document).ready((function(e){"use strict";e(".searchform").each((function(){var t=e(this).find(".live-search-results"),n=e(this).find(".search_categories"),o=flatsomeVars.ajaxurl+"?action=flatsome_ajax_search_products";if(n.length&&""!==n.val()&&(o+="&product_cat="+n.val()),e(this).find(".search-field").devbridgeAutocomplete({minChars:3,appendTo:t,triggerSelectOnValidInput:!1,serviceUrl:o,deferRequestBy:parseInt(flatsomeVars.options.search_result_latency),onSearchStart:function(){e(".submit-button").removeClass("loading"),e(".submit-button").addClass("loading")},onSelect:function(e){-1!=e.id&&(window.location.href=e.url)},onSearchComplete:function(){e(".submit-button").removeClass("loading")},onSearchError:function(){e(".submit-button").removeClass("loading")},beforeRender:function(t){e(t).removeAttr("style")},formatResult:function(t,n){var o="("+e.Autocomplete.utils.escapeRegExChars(n)+")",s="";return t.img&&(s+='<img class="search-image" src="'+t.img+'">'),s+='<div class="search-name">'+t.value.replace(new RegExp(o,"gi"),"<strong>$1</strong>")+"</div>",t.price&&(s+='<span class="search-price">'+t.price+"<span>"),s}}),n.length){var s=e(this).find(".search-field").devbridgeAutocomplete();n.on("change",(function(){let e=o;""!==n.val()&&(e+="&product_cat="+n.val()),s.setOptions({serviceUrl:e}),s.hide(),s.onValueChange()}))}}))}))},428:function(e){"use strict";e.exports=window.jQuery}},t={};!function n(o){var s=t[o];if(void 0!==s)return s.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}(975)}();
!function(){"use strict";const t=window.matchMedia("(prefers-reduced-motion: reduce)");let e=!1;function o(){e="undefined"==typeof UxBuilder&&t.matches}o(),t.addEventListener?.("change",o),document.documentElement.style,window.getComputedStyle(document.documentElement)["scroll-behavior"],jQuery(document).ready((function(t){t("body").on("submit","form.cart",(function(e){const o=t(this).parents(".type-product");if(!o||!o.is(".product-type-simple, .product-type-variable"))return;if(void 0!==e.originalEvent&&t(e.originalEvent.submitter).is(".ux-buy-now-button"))return;e.preventDefault();const r=t(this),a=r.find(".single_add_to_cart_button");let n=r.serialize();n+="&action=flatsome_ajax_add_to_cart",a.val()&&(n+="&add-to-cart="+a.val()),t(document.body).trigger("adding_to_cart",[a,n]),t.ajax({url:window.flatsomeVars.ajaxurl,data:n,method:"POST",success:function(e){if(!e)return;const{product_url:o,notices:r,fragments:n,cart_hash:d,error:i=""}=e;if("undefined"==typeof wc_add_to_cart_params||"yes"!==wc_add_to_cart_params.cart_redirect_after_add)if(i&&o)window.location=o;else{if(a.removeClass("loading"),r.indexOf("error")>0){jQuery.fn.magnificPopup&&jQuery.magnificPopup.close();const e=t(".woocommerce-notices-wrapper");return e.append(r),void t.scrollTo(e,{offset:-window.flatsomeVars.scrollPaddingTop-15})}t(document.body).trigger("added_to_cart",[n,d,a])}else window.location=wc_add_to_cart_params.cart_url}})}))}))}();
!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);
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):jQuery&&!jQuery.fn.hoverIntent&&e(jQuery)}(function(f){"use strict";function u(e){return"function"==typeof e}var i,r,v={interval:100,sensitivity:6,timeout:0},s=0,a=function(e){i=e.pageX,r=e.pageY},p=function(e,t,n,o){if(Math.sqrt((n.pX-i)*(n.pX-i)+(n.pY-r)*(n.pY-r))<o.sensitivity)return t.off(n.event,a),delete n.timeoutId,n.isActive=!0,e.pageX=i,e.pageY=r,delete n.pX,delete n.pY,o.over.apply(t[0],[e]);n.pX=i,n.pY=r,n.timeoutId=setTimeout(function(){p(e,t,n,o)},o.interval)};f.fn.hoverIntent=function(e,t,n){function o(e){var u=f.extend({},e),r=f(this),v=((t=r.data("hoverIntent"))||r.data("hoverIntent",t={}),t[i]),t=(v||(t[i]=v={id:i}),v.timeoutId&&(v.timeoutId=clearTimeout(v.timeoutId)),v.event="mousemove.hoverIntent.hoverIntent"+i);"mouseenter"===e.type?v.isActive||(v.pX=u.pageX,v.pY=u.pageY,r.off(t,a).on(t,a),v.timeoutId=setTimeout(function(){p(u,r,v,d)},d.interval)):v.isActive&&(r.off(t,a),v.timeoutId=setTimeout(function(){var e,t,n,o,i;e=u,t=r,n=v,o=d.out,(i=t.data("hoverIntent"))&&delete i[n.id],o.apply(t[0],[e])},d.timeout))}var i=s++,d=f.extend({},v);f.isPlainObject(e)?(d=f.extend(d,e),u(d.out)||(d.out=d.over)):d=u(t)?f.extend(d,{over:e,out:t,selector:n}):f.extend(d,{over:e,out:e,selector:t});return this.on({"mouseenter.hoverIntent":o,"mouseleave.hoverIntent":o},d.selector)}});
!function(){var e,t,n,o,i={9476:function(){Flatsome.behavior("back-to-top",{attach(e){const t=jQuery(".back-to-top",e);if(!t.length)return;let n=null;window.addEventListener("scroll",(()=>{var e;const o=jQuery(window).scrollTop();n=null!==(e=n)&&void 0!==e?e:jQuery(window).height(),t.toggleClass("active",o>=n)}),{passive:!0})}})},3387:function(){Flatsome.behavior("commons",{attach(e){jQuery("select.resizeselect").resizeselect(),jQuery("[data-parallax]",e).flatsomeParallax(),jQuery.fn.packery&&(jQuery("[data-packery-options], .has-packery",e).each((function(){let e=jQuery(this);e.packery({originLeft:!flatsomeVars.rtl}),setTimeout((function(){e.imagesLoaded((function(){e.packery("layout")}))}),100)})),jQuery(".banner-grid-wrapper").imagesLoaded((function(){jQuery(this.elements).removeClass("processing")}))),"objectFitPolyfill"in window&&window.objectFitPolyfill()},detach(e){}})},7439:function(){const e="ux-body-overlay--hover-active";Flatsome.behavior("nav-hover",{attach(t){!function(t){const n=jQuery(".ux-body-overlay",t);n.length&&(n.removeClass(e),jQuery([".nav-prompts-overlay li.menu-item",".nav-prompts-overlay .header-vertical-menu__opener"].join(", "),t).on({mouseenter:()=>n.addClass(e),mouseleave:()=>n.removeClass(e)}))}(t)}})},6910:function(){Flatsome.behavior("sidebar-tabs",{attach(e){jQuery(".sidebar-menu-tabs",e).each(((e,t)=>{const n=jQuery(t),o=n.find(".sidebar-menu-tabs__tab"),i=n.parent().find("ul.nav-sidebar");o.each(((e,t)=>{jQuery(t).on("click",(function(t){!function(e,t,n){t.each(((t,n)=>jQuery(n).toggleClass("active",t===e))),n.each(((t,n)=>jQuery(n).toggleClass("hidden",t===e)))}(e,o,i),t.preventDefault(),t.stopPropagation()}))}))}))}})},9880:function(){Flatsome.behavior("scroll-to",{attach(){const e=jQuery("span.scroll-to"),t=parseInt(flatsomeVars.sticky_height,10),n=jQuery("#wpadminbar");if(!e.length)return;let o=jQuery(".scroll-to-bullets");o.length?(o.children().lazyTooltipster("destroy"),o.empty()):(o=jQuery('<div class="scroll-to-bullets hide-for-medium"/>'),jQuery("body").append(o)),jQuery("li.scroll-to-link").remove(),e.each((function(e,t){const i=jQuery(t),r=i.data("link"),a=i.data("title"),s=`a[href*="${r||"<nolink>"}"]`;if(i.data("bullet")){const e=jQuery(`\n          <a href="${r}" data-title="${a}" title="${a}">\n          <strong></strong>\n          </a>\n        `);e.lazyTooltipster({position:"left",delay:50,contentAsHTML:!0,touchDevices:!1}),o.append(e)}const l=jQuery(`\n          <li class="scroll-to-link"><a data-animate="fadeIn" href="${r}" data-title="${a}" title="${a}">\n          ${a}\n          </a></li>\n        `);jQuery("li.nav-single-page").before(l),setTimeout((function(){jQuery(".scroll-to-link a").attr("data-animated","true")}),300),jQuery(s).off("click").on("click",(function(e){const t=jQuery(this).attr("href").split("#")[1];if(!t)return;let o=i.attr("data-offset");o&&n.length&&n.is(":visible")&&(o=Number(o)+Number(n.height())),setTimeout((()=>{jQuery.scrollTo(`a[name="${t}"]`,{...!isNaN(o)&&{offset:-o}})}),0),jQuery.fn.magnificPopup&&jQuery.magnificPopup.close(),e.preventDefault()}))}));let i=0;const r=()=>{clearTimeout(i),i=setTimeout((()=>{const n=e.get().map((e=>e.getBoundingClientRect().y));o.find("a").each(((e,o)=>{const i=n[e],r=n[e+1]||window.innerHeight,a=i<=t+100&&r>t+100;jQuery(o).toggleClass("active",a)}))}),100)};if(window.addEventListener("scroll",r,{passive:!0}),window.addEventListener("resize",r),r(),location.hash){const e=decodeURIComponent(location.hash.replace("#",""));let t=jQuery(`a[name="${e}"]`).closest(".scroll-to").attr("data-offset");t&&n.length&&n.is(":visible")&&(t=Number(t)+Number(n.height())),jQuery.scrollTo(`a[name="${e}"]`,{...!isNaN(t)&&{offset:-t}})}},detach(){jQuery("span.scroll-to").length&&setTimeout(this.attach,0)}})},5973:function(){function e(e,t,n){t.each(((t,n)=>{jQuery(n).toggleClass("active",t===e),jQuery(n).find("> a").attr("aria-selected",t===e?"true":"false").attr("tabindex",t===e?null:"-1")})),n.each(((t,n)=>jQuery(n).toggleClass("active",t===e))),jQuery.fn.packery&&jQuery("[data-packery-options]",n[e]).packery("layout")}Flatsome.behavior("tabs",{attach(t){const n=window.location.hash;let o=!1;jQuery(".tabbed-content",t).each((function(t,i){const r=jQuery(i),a=r.find("> .nav > li"),s=r.find("> .tab-panels > .panel"),l=r.find("> .nav").hasClass("active-on-hover"),c=r.find("> .nav").hasClass("nav-vertical");s.removeAttr("style"),a.each((function(t,i){const u=jQuery(i).find("a");u.on("click",(function(n){e(t,a,s),n.preventDefault(),n.stopPropagation()})),u.on("keydown",(e=>{let n;switch(e.key){case c?"ArrowDown":"ArrowRight":n=a.eq((t+1)%a.length);break;case c?"ArrowUp":"ArrowLeft":n=a.eq((t-1)%a.length);break;case"Home":n=a.first();break;case"End":n=a.last()}n&&(n.find("> a").trigger("focus"),e.stopPropagation(),e.preventDefault())})),l&&u.hoverIntent({sensitivity:3,interval:20,timeout:70,over(n){e(t,a,s)},out(){}}),!n.substring(1).length||decodeURIComponent(n.substring(1))!==u.attr("href")?.split("#")[1]&&n.substring(1)!==u.attr("href")?.split("#")[1]||(e(t,a,s),o||(o=!0,setTimeout((()=>{jQuery.scrollTo(r)}),500)))}))}))}})},7633:function(){Flatsome.behavior("toggle",{attach(e){function t(e){const t=jQuery(e.currentTarget).parent();t.toggleClass("active"),t.attr("aria-expanded","false"===t.attr("aria-expanded")?"true":"false"),e.preventDefault()}jQuery([".widget ul.children",".nav ul.children",".menu .sub-menu",".mobile-sidebar-levels-2 .nav ul.children > li > ul"].join(", "),e).each((function(){if(!jQuery(this).prev("button.toggle").length){const e=jQuery(this).parents(".nav-slide").length?"right":"down";jQuery(this).parent().addClass("has-child").attr("aria-expanded","false"),jQuery(this).before(`<button class="toggle" aria-label="${window.flatsomeVars.i18n.toggleButton}"><i class="icon-angle-${e}" aria-hidden="true"></i></button>`)}})),jQuery(".current-cat-parent",e).addClass("active").attr("aria-expanded","true").removeClass("current-cat-parent"),jQuery(".toggle",e).off("click.flatsome").on("click.flatsome",t);const n=jQuery("body").hasClass("mobile-submenu-toggle");jQuery(".sidebar-menu li.menu-item.has-child",e).each((function(){const e=jQuery(this),o=e.find("> a:first");"#"===o.attr("href")?o.off("click.flatsome").on("click.flatsome",(function(t){t.preventDefault(),e.toggleClass("active"),e.attr("aria-expanded","false"===e.attr("aria-expanded")?"true":"false")})):n&&o.next(".toggle").length&&o.on("click",t)}))}})},6808:function(){Flatsome.behavior("youtube",{attach(e){var t,n,o,i,r,a=jQuery(".ux-youtube",e);0!==a.length&&(window.onYouTubePlayerAPIReady=function(){a.each((function(){var e=jQuery(this),t=e.attr("id"),n=e.data("videoid"),o=e.data("loop"),i=e.data("audio");new YT.Player(t,{height:"100%",width:"100%",playerVars:{html5:1,autoplay:1,controls:0,rel:0,modestbranding:1,playsinline:1,showinfo:0,fs:0,loop:o,el:0,playlist:o?n:void 0},videoId:n,events:{onReady:function(e){0===i&&e.target.mute()}}})}))},n="script",o="youtube-jssdk",r=(t=document).getElementsByTagName(n)[0],t.getElementById(o)||((i=t.createElement(n)).id=o,i.src="https://www.youtube.com/player_api",r.parentNode.insertBefore(i,r)))}})},7345:function(e,t,n){n.g.Flatsome={behaviors:{},plugin(e,t,n){n=n||{},jQuery.fn[e]=function(o){if("string"==typeof arguments[0]){var i=null,r=arguments[0],a=Array.prototype.slice.call(arguments,1);return this.each((function(){if(!jQuery.data(this,"plugin_"+e)||"function"!=typeof jQuery.data(this,"plugin_"+e)[r])throw new Error("Method "+r+" does not exist on jQuery."+e);i=jQuery.data(this,"plugin_"+e)[r].apply(this,a)})),"destroy"===r&&this.each((function(){jQuery(this).removeData("plugin_"+e)})),void 0!==i?i:this}if("object"==typeof o||!o)return this.each((function(){jQuery.data(this,"plugin_"+e)||(o=jQuery.extend({},n,o),jQuery.data(this,"plugin_"+e,new t(this,o)))}))}},behavior(e,t){this.behaviors[e]=t},attach(e,t=e){if("string"==typeof e)return this.behaviors.hasOwnProperty(e)&&"function"==typeof this.behaviors[e].attach?this.behaviors[e].attach(t||document):null;for(let e in this.behaviors)"function"==typeof this.behaviors[e].attach&&this.behaviors[e].attach(t||document)},detach(e,t=e){if("string"==typeof e)return this.behaviors.hasOwnProperty(e)&&"function"==typeof this.behaviors[e].detach?this.behaviors[e].detach(t||document):null;for(let e in this.behaviors)"function"==typeof this.behaviors[e].detach&&this.behaviors[e].detach(t||document)}}},7727:function(){jQuery(".section .loading-spin, .banner .loading-spin, .page-loader").fadeOut(),jQuery("#top-link").on("click",(function(e){jQuery.scrollTo(0),e.preventDefault()})),jQuery(".scroll-for-more").on("click",(function(e){e.preventDefault();const t=jQuery(this),n=t.closest(".has-scroll-for-more");if(n.length){const e=n.next();e.length?jQuery.scrollTo(e):jQuery.scrollTo(t)}else jQuery.scrollTo(t)})),jQuery(".search-dropdown button").on("click",(function(e){jQuery(this).parent().find("input").trigger("focus"),e.preventDefault()})),jQuery(".current-cat").addClass("active"),jQuery("html").removeClass("loading-site"),setTimeout((function(){jQuery(".page-loader").remove()}),1e3),jQuery(".resize-select").resizeselect(),flatsomeVars.user.can_edit_pages&&jQuery(".block-edit-link").each((function(){const e=jQuery(this);let t=e.data("link");const n=e.data("backend"),o=e.data("title"),i=e.parents('[id^="menu-item-"]');if(i.length&&i.hasClass("menu-item-has-block")){const e=i.attr("id").match(/menu-item-(\d+)/);e&&e[1]&&(t+=`&menu_id=${e[1]}`)}jQuery(this).next().addClass("has-block").lazyTooltipster({distance:-15,repositionOnScroll:!0,interactive:!0,contentAsHTML:!0,content:o+'<br/><a class="button edit-block-button edit-block-button-builder" href="'+t+'">UX Builder</a><a class="button edit-block-button edit-block-button edit-block-button-backend" href="'+n+'">WP Editor</a>'}),jQuery(this).remove()})),document.addEventListener("uxb_app_ready",(()=>{const e=new URLSearchParams(window.top.location.search),t=parseInt(e.get("menu_id"));t&&setTimeout((()=>{const e=jQuery(`#menu-item-${t}`),n=e.parent().hasClass("ux-nav-vertical-menu");e.hasClass("menu-item-has-block has-dropdown")&&!e.hasClass("current-dropdown")&&(n&&jQuery(".header-vertical-menu__fly-out").addClass("header-vertical-menu__fly-out--open"),jQuery(`#menu-item-${t} a:first`).trigger("click"))}),1e3)})),jQuery("#hotspot").on("click",(function(e){e.preventDefault()})),jQuery(".wpcf7-form .wpcf7-submit").on("click",(function(e){jQuery(this).parent().parent().addClass("processing")})),jQuery(".wpcf7").on("wpcf7invalid wpcf7spam wpcf7mailsent wpcf7mailfailed",(function(e){jQuery(".processing").removeClass("processing")})),jQuery(document).ajaxComplete((function(e,t,n){jQuery(".processing").removeClass("processing")}))},9450:function(e,t,n){jQuery.fn.lazyTooltipster=function(e){return this.each(((t,o)=>{const i=jQuery(o);"string"==typeof e?jQuery.fn.tooltipster&&i.hasClass("tooltipstered")&&i.tooltipster(e):i.one("mouseenter",(t=>{!function(e,t){(jQuery.fn.tooltipster?Promise.resolve():n.e(635).then(n.t.bind(n,269,23))).then((()=>{e.hasClass("tooltipstered")||e.tooltipster({theme:"tooltipster-default",delay:10,animationDuration:300,...t}),e.tooltipster("show")}))}(i,e)}))}))}},8540:function(){Flatsome.plugin("resizeselect",(function(e,t){jQuery(e).on("change",(function(){var e=jQuery(this),t=e.find("option:selected").val(),n=e.find("option:selected").text(),o=jQuery('<span class="select-resize-ghost">').html(n);o.appendTo(e.parent());var i=o.width();o.remove(),e.width(i+7),t&&e.parent().parent().find("input.search-field").trigger("focus")})).trigger("change")}))},3404:function(e,t,n){var o,i;"undefined"!=typeof window&&window,void 0===(i="function"==typeof(o=function(){"use strict";function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var n=this._events=this._events||{},o=n[e]=n[e]||[];return-1==o.indexOf(t)&&o.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var n=this._onceEvents=this._onceEvents||{};return(n[e]=n[e]||{})[t]=!0,this}},t.off=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){var o=n.indexOf(t);return-1!=o&&n.splice(o,1),this}},t.emitEvent=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){n=n.slice(0),t=t||[];for(var o=this._onceEvents&&this._onceEvents[e],i=0;i<n.length;i++){var r=n[i];o&&o[r]&&(this.off(e,r),delete o[r]),r.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e})?o.call(t,n,t,e):o)||(e.exports=i)},3959:function(){!function(){var e=window.MutationObserver||window.WebKitMutationObserver,t="ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch;if(void 0===document.documentElement.style["touch-action"]&&!document.documentElement.style["-ms-touch-action"]&&t&&e){window.Hammer=window.Hammer||{};var n=/touch-action[:][\s]*(none)[^;'"]*/,o=/touch-action[:][\s]*(manipulation)[^;'"]*/,i=/touch-action/,r=/(iP(ad|hone|od))/.test(navigator.userAgent)&&("indexedDB"in window||!!window.performance);window.Hammer.time={getTouchAction:function(e){return this.checkStyleString(e.getAttribute("style"))},checkStyleString:function(e){if(i.test(e))return n.test(e)?"none":!o.test(e)||"manipulation"},shouldHammer:function(e){var t=e.target.hasParent;return!(!t||r&&!(Date.now()-e.target.lastStart<125))&&t},touchHandler:function(e){var t=this.shouldHammer(e);if("none"===t)this.dropHammer(e);else if("manipulation"===t){var n=e.target.getBoundingClientRect();n.top===this.pos.top&&n.left===this.pos.left&&this.dropHammer(e)}this.scrolled=!1,delete e.target.lastStart,delete e.target.hasParent},dropHammer:function(e){"touchend"===e.type&&(e.target.focus(),setTimeout((function(){e.target.click()}),0)),e.preventDefault()},touchStart:function(e){this.pos=e.target.getBoundingClientRect(),e.target.hasParent=this.hasParent(e.target),r&&e.target.hasParent&&(e.target.lastStart=Date.now())},styleWatcher:function(e){e.forEach(this.styleUpdater,this)},styleUpdater:function(e){if(e.target.updateNext)e.target.updateNext=!1;else{var t=this.getTouchAction(e.target);t?"none"!==t&&(e.target.hadTouchNone=!1):!t&&(e.oldValue&&this.checkStyleString(e.oldValue)||e.target.hadTouchNone)&&(e.target.hadTouchNone=!0,e.target.updateNext=!1,e.target.setAttribute("style",e.target.getAttribute("style")+" touch-action: none;"))}},hasParent:function(e){for(var t,n=e;n&&n.parentNode;n=n.parentNode)if(t=this.getTouchAction(n))return t;return!1},installStartEvents:function(){document.addEventListener("touchstart",this.touchStart.bind(this)),document.addEventListener("mousedown",this.touchStart.bind(this))},installEndEvents:function(){document.addEventListener("touchend",this.touchHandler.bind(this),!0),document.addEventListener("mouseup",this.touchHandler.bind(this),!0)},installObserver:function(){this.observer=new e(this.styleWatcher.bind(this)).observe(document,{subtree:!0,attributes:!0,attributeOldValue:!0,attributeFilter:["style"]})},install:function(){this.installEndEvents(),this.installStartEvents(),this.installObserver()}},window.Hammer.time.install()}}()},8279:function(e,t,n){var o,i;!function(r,a){"use strict";o=[n(3404)],i=function(e){return function(e,t){var n=e.jQuery,o=e.console;function i(e,t){for(var n in t)e[n]=t[n];return e}var r=Array.prototype.slice;function a(e,t,s){if(!(this instanceof a))return new a(e,t,s);var l,c=e;"string"==typeof e&&(c=document.querySelectorAll(e)),c?(this.elements=(l=c,Array.isArray(l)?l:"object"==typeof l&&"number"==typeof l.length?r.call(l):[l]),this.options=i({},this.options),"function"==typeof t?s=t:i(this.options,t),s&&this.on("always",s),this.getImages(),n&&(this.jqDeferred=new n.Deferred),setTimeout(this.check.bind(this))):o.error("Bad element for imagesLoaded "+(c||e))}a.prototype=Object.create(t.prototype),a.prototype.options={},a.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},a.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),!0===this.options.background&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&s[t]){for(var n=e.querySelectorAll("img"),o=0;o<n.length;o++){var i=n[o];this.addImage(i)}if("string"==typeof this.options.background){var r=e.querySelectorAll(this.options.background);for(o=0;o<r.length;o++){var a=r[o];this.addElementBackgroundImages(a)}}}};var s={1:!0,9:!0,11:!0};function l(e){this.img=e}function c(e,t){this.url=e,this.element=t,this.img=new Image}return a.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var n=/url\((['"])?(.*?)\1\)/gi,o=n.exec(t.backgroundImage);null!==o;){var i=o&&o[2];i&&this.addBackground(i,e),o=n.exec(t.backgroundImage)}},a.prototype.addImage=function(e){var t=new l(e);this.images.push(t)},a.prototype.addBackground=function(e,t){var n=new c(e,t);this.images.push(n)},a.prototype.check=function(){var e=this;function t(t,n,o){setTimeout((function(){e.progress(t,n,o)}))}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach((function(e){e.once("progress",t),e.check()})):this.complete()},a.prototype.progress=function(e,t,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&o&&o.log("progress: "+n,e,t)},a.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},l.prototype=Object.create(t.prototype),l.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)},l.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},l.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},l.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},l.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},l.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},l.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},c.prototype=Object.create(l.prototype),c.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())},c.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},c.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},a.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&((n=t).fn.imagesLoaded=function(e,t){return new a(this,e,t).jqDeferred.promise(n(this))})},a.makeJQueryPlugin(),a}(r,e)}.apply(t,o),void 0===i||(e.exports=i)}("undefined"!=typeof window?window:this)},7461:function(e,t,n){var o,i,r;!function(a){"use strict";i=[n(428)],void 0===(r="function"==typeof(o=function(e){var t=e.scrollTo=function(t,n,o){return e(window).scrollTo(t,n,o)};function n(t){return!t.nodeName||-1!==e.inArray(t.nodeName.toLowerCase(),["iframe","#document","html","body"])}function o(e){return"function"==typeof e}function i(t){return o(t)||e.isPlainObject(t)?t:{top:t,left:t}}return t.defaults={axis:"xy",duration:0,limit:!0},e.fn.scrollTo=function(r,a,s){"object"==typeof a&&(s=a,a=0),"function"==typeof s&&(s={onAfter:s}),"max"===r&&(r=9e9),s=e.extend({},t.defaults,s),a=a||s.duration;var l=s.queue&&s.axis.length>1;return l&&(a/=2),s.offset=i(s.offset),s.over=i(s.over),this.each((function(){if(null!==r){var c,u=n(this),d=u?this.contentWindow||window:this,h=e(d),f=r,p={};switch(typeof f){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(f)){f=i(f);break}f=u?e(f):e(f,d);case"object":if(0===f.length)return;(f.is||f.style)&&(c=(f=e(f)).offset())}var m=o(s.offset)&&s.offset(d,f)||s.offset;e.each(s.axis.split(""),(function(e,n){var o="x"===n?"Left":"Top",i=o.toLowerCase(),r="scroll"+o,a=h[r](),g=t.max(d,n);if(c)p[r]=c[i]+(u?0:a-h.offset()[i]),s.margin&&(p[r]-=parseInt(f.css("margin"+o),10)||0,p[r]-=parseInt(f.css("border"+o+"Width"),10)||0),p[r]+=m[i]||0,s.over[i]&&(p[r]+=f["x"===n?"width":"height"]()*s.over[i]);else{var v=f[i];p[r]=v.slice&&"%"===v.slice(-1)?parseFloat(v)/100*g:v}s.limit&&/^\d+$/.test(p[r])&&(p[r]=p[r]<=0?0:Math.min(p[r],g)),!e&&s.axis.length>1&&(a===p[r]?p={}:l&&(y(s.onAfterFirst),p={}))})),y(s.onAfter)}function y(t){var n=e.extend({},s,{queue:!0,duration:a,complete:t&&function(){t.call(d,f,s)}});h.animate(p,n)}}))},t.max=function(t,o){var i="x"===o?"Width":"Height",r="scroll"+i;if(!n(t))return t[r]-e(t)[i.toLowerCase()]();var a="client"+i,s=t.ownerDocument||t.document,l=s.documentElement,c=s.body;return Math.max(l[r],c[r])-Math.min(l[a],c[a])},e.Tween.propHooks.scrollLeft=e.Tween.propHooks.scrollTop={get:function(t){return e(t.elem)[t.prop]()},set:function(t){var n=this.get(t);if(t.options.interrupt&&t._last&&t._last!==n)return e(t.elem).stop();var o=Math.round(t.now);n!==o&&(e(t.elem)[t.prop](o),t._last=this.get(t))}},t})?o.apply(t,i):o)||(e.exports=r)}()},428:function(e){"use strict";e.exports=window.jQuery}},r={};function a(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return i[e].call(n.exports,n,n.exports,a),n.exports}a.m=i,a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},a.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var i=Object.create(null);a.r(i);var r={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((function(e){r[e]=function(){return n[e]}}));return r.default=function(){return n},a.d(i,r),i},a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=function(e){return Promise.all(Object.keys(a.f).reduce((function(t,n){return a.f[n](e,t),t}),[]))},a.u=function(e){return"js/chunk."+{230:"popups",436:"slider",635:"tooltips",970:"lottie",987:"countup"}[e]+".js"},a.miniCssF=function(e){},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n={},o="flatsome:",a.l=function(e,t,i,r){if(n[e])n[e].push(t);else{var s,l;if(void 0!==i)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==o+i){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",o+i),s.src=e),n[e]=[t];var h=function(t,o){s.onerror=s.onload=null,clearTimeout(f);var i=n[e];if(delete n[e],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((function(e){return e(o)})),t)return t(o)},f=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),l&&document.head.appendChild(s)}},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){const e=a.u;a.u=t=>{const n=e(t),o=globalThis.flatsomeVars?.theme.version;return n+(o?"?ver="+o:"")}}(),a.p=globalThis.flatsomeVars?.assets_url??"/",function(){var e={816:0};a.f.j=function(t,n){var o=a.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else{var i=new Promise((function(n,i){o=e[t]=[n,i]}));n.push(o[2]=i);var r=a.p+a.u(t),s=new Error;a.l(r,(function(n){if(a.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var i=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+r+")",s.name="ChunkLoadError",s.type=i,s.request=r,o[1](s)}}),"chunk-"+t,t)}};var t=function(t,n){var o,i,r=n[0],s=n[1],l=n[2],c=0;if(r.some((function(t){return 0!==e[t]}))){for(o in s)a.o(s,o)&&(a.m[o]=s[o]);l&&l(a)}for(t&&t(n);c<r.length;c++)i=r[c],a.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self.flatsomeChunks=self.flatsomeChunks||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}(),function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)e[o]=n[o]}return e}var t=function t(n,o){function i(t,i,r){if("undefined"!=typeof document){"number"==typeof(r=e({},o,r)).expires&&(r.expires=new Date(Date.now()+864e5*r.expires)),r.expires&&(r.expires=r.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in r)r[s]&&(a+="; "+s,!0!==r[s]&&(a+="="+r[s].split(";")[0]));return document.cookie=t+"="+n.write(i,t)+a}}return Object.create({set:i,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],o={},i=0;i<t.length;i++){var r=t[i].split("="),a=r.slice(1).join("=");try{var s=decodeURIComponent(r[0]);if(o[s]=n.read(a,s),e===s)break}catch(e){}}return e?o[e]:o}},remove:function(t,n){i(t,"",e({},n,{expires:-1}))},withAttributes:function(n){return t(this.converter,e({},this.attributes,n))},withConverter:function(n){return t(e({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(n)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"}),n=a(8279),o=a.n(n);function i(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)}function r(){return"uxBuilder"===document.documentElement.getAttribute("ng-app")}a(3959),a(7461),a(7345);const s=document.body,l="body-scroll-lock--active",c=i();let u=0;function d(){if(!c)return;u=window.pageYOffset;const e=document.getElementById("wpadminbar"),t=u-(e?e.offsetHeight:0);s.style.overflow="hidden",s.style.position="fixed",s.style.top=`-${t}px`,s.style.width="100%",s.classList.add(l)}function h(){c&&(s.style.removeProperty("overflow"),s.style.removeProperty("position"),s.style.removeProperty("top"),s.style.removeProperty("width"),window.scrollTo(0,u),s.classList.remove(l))}function f(e,t={}){let n=0;const o=t=>{const o=window.scrollY;e(t,{direction:o>n?"down":"up",scrollY:o}),n=o};return window.addEventListener("scroll",o,{...t,passive:!0}),()=>{window.removeEventListener("scroll",o)}}let p,m,y,g=jQuery("#header"),v=g.find(".header-wrapper"),b=jQuery(".header-top",g),w=jQuery(".header-main",g),j=g.hasClass("has-sticky"),k=g.hasClass("sticky-hide-on-scroll");function Q(e,t="down",n=!1){void 0===m&&void 0===y&&(g.hasClass("sticky-shrink")?(m=b.hasClass("hide-for-sticky")?b.height():0,m+=w.hasClass("hide-for-sticky")?w.height():0,y=1+m):(m=v.height()+100,y=b.hasClass("hide-for-sticky")?b.height()+1:1)),k?"down"===t||e<y?e<y?C():(p=setTimeout(C,100),g.addClass("sticky-hide-on-scroll--active")):e>m&&(p=setTimeout((()=>x(n)),100),g.removeClass("sticky-hide-on-scroll--active")):e>m?x(n):e<y&&C()}function x(e=!1){if(v.hasClass("stuck"))return;const t=g.height();v.addClass("stuck"),v.toggleClass("ux-no-animation",e),g.height(t),jQuery(".has-transparent").removeClass("transparent"),jQuery(".toggle-nav-dark").removeClass("nav-dark"),jQuery(document).trigger("flatsome-header-sticky")}function C(){v.hasClass("stuck")&&(g.height(""),v.removeClass(["stuck","ux-no-animation"]),jQuery(".has-transparent").addClass("transparent"),jQuery(".toggle-nav-dark").addClass("nav-dark"),jQuery(document).trigger("flatsome-header-unsticky"))}j&&(document.addEventListener("DOMContentLoaded",(()=>{f(((e,{scrollY:t,direction:n})=>{p&&(clearTimeout(p),p=void 0),s.classList.contains(l)||Q(t,n)})),p=setTimeout((()=>{window.scrollY&&Q(window.scrollY)}),100)})),jQuery("body").on("experimental-flatsome-pjax-request-done",(()=>{g=jQuery("#header"),v=g.find(".header-wrapper"),b=jQuery(".header-top",g),w=jQuery(".header-main",g),j=g.hasClass("has-sticky"),k=g.hasClass("sticky-hide-on-scroll"),window.scrollY&&Q(window.scrollY,void 0,!0)})));const E=window.matchMedia("(prefers-reduced-motion: reduce)");let L=!1;function _(){L="undefined"==typeof UxBuilder&&E.matches}_(),E.addEventListener?.("change",_);const T=[];let A;function I(){T.length&&(cancelAnimationFrame(A),A=requestAnimationFrame((()=>{for(let e=0;e<T.length;e++)T[e].element.offsetParent?P(T[e]):T.splice(e,1)})))}function P(e){!function({element:e,type:t}){let n=M(e.dataset.parallax),o=S(e),i=(window.innerHeight-o.offsetHeight)*n;switch(t){case"backgroundImage":e.style.backgroundSize=n?"100% auto":null;break;case"backgroundElement":e.style.height=n?`${o.offsetHeight+i}px`:null}}(e),function({element:e,type:t}){let n=M(e.dataset.parallax||e.dataset.parallaxBackground),o=window.innerHeight,i=S(e),r=e.offsetHeight-i.offsetHeight,a=e.getBoundingClientRect(),s=i!==e?i.getBoundingClientRect():a,l=a.top+e.offsetHeight/2,c=o/2-l,u=o/2-(s.top+i.offsetHeight/2),d=l+D()<o/2?D():c,h=(Math.abs(c),Math.abs(d)/(o/2)),f=0;var p;if(!(s.top>o||s.top+i.offsetHeight<0))switch(t){case"backgroundImage":f=s.top*n,e.style.backgroundPosition=n?`50% ${f.toFixed(0)}px`:null,e.style.backgroundAttachment=n?"fixed":null;break;case"backgroundElement":f=u*n-r/2,e.style.transform=n?`translate3d(0, ${f.toFixed(2)}px, 0)`:null,e.style.backfaceVisibility=n?"hidden":null;break;case"element":f=d*n,e.style.transform=n?`translate3d(0, ${f.toFixed(2)}px, 0)`:null,e.style.backfaceVisibility=n?"hidden":null,void 0!==e.dataset.parallaxFade&&(e.style.opacity=n?(p=1-h,p*(2-p)).toFixed(2):null)}}(e)}function F(e){return void 0!==e.dataset.parallaxBackground?"backgroundElement":void 0!==e.dataset.parallaxElemenet?"element":""!==e.style.backgroundImage?"backgroundImage":"element"}function D(){return document.documentElement.scrollTop||document.body.scrollTop}function S(e){return function(e,t=null){for(;e&&!O(e).call(e,t);)e=e.parentElement;return e}(e,e.dataset.parallaxContainer||"[data-parallax-container]")||e}function O(e){return e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector}function M(e){return e/10*-1/(2-Math.abs(e)/10)}function B(e,t={}){return new IntersectionObserver((function(t){for(let n=0;n<t.length;n++)e(t[n])}),{rootMargin:"0px",threshold:.1,...t})}function $(){return console.warn("Flatsome: Flickity is lazy loaded. Use 'lazyFlickity()' to instantiate and 'flatsome-flickity-ready' event to interact with Flickity instead."),this}function q(){return jQuery.fn.magnificPopup?Promise.resolve():a.e(230).then(a.t.bind(a,9650,23))}window.addEventListener("scroll",I,{passive:!0}),window.addEventListener("resize",I),new MutationObserver(I).observe(document.body,{childList:!0}),window.jQuery&&(window.jQuery.fn.flatsomeParallax=function(e){L||"destroy"!==e&&this.each(((e,t)=>function(e){e.classList.add("parallax-active"),!document.querySelector("body").classList.contains("parallax-mobile")&&i()||e.classList&&e.dataset&&(T.push({element:e,type:F(e)}),P(T[T.length-1]))}(t)))}),a(8540),jQuery.fn.flickity||($.isFlickityStub=!0,jQuery.fn.flickity=$),jQuery.fn.lazyFlickity=function(e){const t=B((n=>{if(n.isIntersecting){if(t.unobserve(n.target),!jQuery.fn.flickity||jQuery.fn.flickity===$)return a.e(436).then(a.t.bind(a,8026,23)).then((()=>{jQuery(n.target).flickity(e),jQuery(n.target).trigger("flatsome-flickity-ready")}));jQuery(n.target).flickity(e),jQuery(n.target).trigger("flatsome-flickity-ready")}}));return this.each(((n,o)=>{"string"==typeof e?jQuery.fn.flickity&&jQuery(o).flickity(e):t.observe(o)}))},jQuery.loadMagnificPopup=q,jQuery.fn.lazyMagnificPopup=function(e){const t=jQuery(this),n=e.delegate?t.find(e.delegate):t;return n.one("click",(o=>{o.preventDefault(),q().then((()=>{t.data("magnificPopup")||t.magnificPopup({allowHTMLInStatusIndicator:!0,allowHTMLInTemplate:!0,...e}),t.magnificPopup("open",n.index(o.currentTarget)||0)}))})),t},a(9450),a(7727);const z="flatsome-a11y",H="data-flatsome-role-button",R="data-flatsome-role-radiogroup",V=[{attribute:H,bindFunction:function(e){if(!e.hasAttribute("role")||"button"!==e.getAttribute("role"))return;const t=function(e){"Space"===e.code&&(e.preventDefault(),e.target.click()),"Enter"===e.code&&"A"!==e.target.tagName&&(e.preventDefault(),e.target.click())},n=function(e){"Space"===e.code&&e.preventDefault()};return e.addEventListener("keydown",t),e.addEventListener("keyup",n),e.setAttribute(H,"attached"),()=>{e.removeEventListener("keydown",t),e.removeEventListener("keyup",n),e.setAttribute(H,"")}}},{attribute:R,bindFunction:function(e){const t=Array.from(e.querySelectorAll('[role="radio"]'));if(!t.length)return;const n=function(e){if(!e.target.hasAttribute("role")||"radio"!==e.target.getAttribute("role"))return;const n=t.indexOf(e.target);let o=null;switch(e.key){case"ArrowRight":case"ArrowDown":o=(n+1)%t.length;break;case"ArrowLeft":case"ArrowUp":o=(n-1+t.length)%t.length;break;case" ":case"Enter":return e.preventDefault(),void e.target.click();default:return}e.preventDefault(),t[o].focus()};return e.addEventListener("keydown",n),e.setAttribute(R,"attached"),()=>{e.removeEventListener("keydown",n),e.setAttribute(R,"")}}}];function N(e){return{unattached:`[${e}]:not([${e}="attached"])`,attached:`[${e}="attached"]`}}Flatsome.behavior("a11y",{attach(e){V.forEach((t=>function(e,t){const n=N(t.attribute);jQuery(n.unattached,e).each(((e,n)=>{const o=t.bindFunction(n);o&&jQuery(n).data(z,o)}))}(e,t)))},detach(e){V.forEach((t=>function(e,t){const n=N(t.attribute);jQuery(n.attached,e).each(((e,t)=>{const n=jQuery(t).data(z);n&&n(),jQuery(t).removeData(z)}))}(e,t)))}});const U=B((e=>{if(e.intersectionRatio>0){U.unobserve(e.target);const t=jQuery(e.target);t.removeAttr("data-animate-transition"),t.removeAttr("data-animated"),window.requestAnimationFrame((()=>{t.attr("data-animate-transform","true"),window.requestAnimationFrame((()=>{t.attr("data-animate-transition","true"),setTimeout((()=>{t.attr("data-animated","true")}),300)}))}))}}));Flatsome.behavior("animate",{attach(e){jQuery("[data-animate]",e).each(((e,t)=>{const n=jQuery(t),o=n.data("animate");if(r()||0===o.length||L)return n.attr("data-animated","true");U.observe(t)}))},detach(e){jQuery("[data-animate]",e).each(((e,t)=>{jQuery(t).attr("data-animated","false"),U.unobserve(t)}))}}),a(3387);const W=B((e=>{if(e.intersectionRatio>0){W.unobserve(e.target);const t=jQuery(e.target);a.e(987).then(a.bind(a,3748)).then((({CountUp:e})=>{const n=parseInt(t.text());new e(t.get(0),n,{decimalPlaces:0,duration:4}).start(),t.addClass("active")}))}}));function Y(e){e.addClass("current-dropdown"),e.find(".nav-top-link").attr("aria-expanded",!0),function(e){const t=e,n=t.closest(".container").width(),o=t.closest("li.menu-item"),i=o.hasClass("menu-item-design-full-width"),r=o.hasClass("menu-item-design-container-width"),s=o.parent().hasClass("ux-nav-vertical-menu"),l=!i&&!r,c=a.g.flatsomeVars.rtl;if(l&&!s){if(n<750)return!1;var u=t.outerWidth(),d=t.offset(),h=Math.max(document.documentElement.clientWidth,window.innerWidth||0),f=d.left-(h-n)/2;c&&(f=jQuery(window).width()-(d.left+u)-(h-n)/2);var p=t.width(),m=n-(f+p),y=!1;f>m&&f<p&&(y=(f+m)/3),m<0&&(y=-m),y&&c?t.css("margin-right",-y):y&&t.css("margin-left",-y),p>n&&t.addClass("nav-dropdown-full")}if(r){t.css({inset:"0"});const e=t.closest(".container").get(0).getBoundingClientRect(),i=t.get(0).getBoundingClientRect();t.css({width:s?n-o.width():n,...!c&&{left:e.left-i.left+15},...c&&{right:15-(e.right-i.right)}})}if(i){t.css({inset:"0"});const e=document.body,n=e.getBoundingClientRect(),i=t.get(0).getBoundingClientRect(),r=e.clientWidth;t.css({...!c&&{width:s?r-o.get(0).getBoundingClientRect().right:r},...c&&{width:s?o.get(0).getBoundingClientRect().left:r},...!c&&{left:n.left-i.left},...c&&{right:-(n.right-i.right)}})}if((r||i)&&!s){let e=null;if(o.closest("#top-bar").length&&(e=document.querySelector("#top-bar")),o.closest("#masthead").length&&(e=document.querySelector("#masthead")),o.closest("#wide-nav").length&&(e=document.querySelector("#wide-nav")),null!==e){const n=e.getBoundingClientRect(),i=o.get(0).getBoundingClientRect();t.css({top:n.bottom-i.bottom+i.height})}}s&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&t.css({minHeight:t.closest(".header-vertical-menu__fly-out").outerHeight()})}(e.find(".nav-dropdown"))}function X(e){e.removeClass("current-dropdown"),e.find(".nav-top-link").attr("aria-expanded",!1),e.find(".nav-dropdown").attr("style","")}function J(e){e.each(((e,t)=>{const n=jQuery(t);n.hasClass("current-dropdown")&&X(n)}))}function G(e,t){e.length&&e.addClass(`ux-body-overlay--${t}-active`)}function Z(e,t){e.length&&e.removeClass(`ux-body-overlay--${t}-active`)}Flatsome.behavior("count-up",{attach(e){jQuery("span.count-up",e).each(((e,t)=>{W.observe(t)}))}}),Flatsome.behavior("dropdown",{attach(e){const t=jQuery(".nav li.has-dropdown",e),n=r(),o=jQuery(".ux-body-overlay"),i="ontouchstart"in window;let a=!1,s=null;jQuery(".header-nav > li > a, .top-bar-nav > li > a",e).on("focus",(()=>{J(t)})),t.each((function(e,r){const l=jQuery(r),c=l.hasClass("nav-dropdown-toggle")&&!i;let u=!1,d=!1;l.on("touchstart click",(function(e){"touchstart"===e.type&&(u=!0),"click"===e.type&&u&&(u&&!d&&e.preventDefault(),d=!0)})),n||c?(a=!0,l.on("click","a:first",(function(e){if(e.preventDefault(),s=l,l.hasClass("current-dropdown"))return X(l),void Z(o,"click");J(t),Y(l),G(o,"click"),jQuery(document).trigger("flatsome-dropdown-opened",[l])}))):(l.on("keydown","a:first",(function(e){"Space"===e.code&&(e.preventDefault(),l.hasClass("current-dropdown")?(X(l),Z(o,"click")):(J(t),Y(l),G(o,"click"),jQuery(document).trigger("flatsome-dropdown-opened",[l])))})),l.hoverIntent({sensitivity:3,interval:20,timeout:70,over(e){J(t),Y(l),Z(o,"click"),jQuery(document).trigger("flatsome-dropdown-opened",[l])},out(){d=!1,u=!1,X(l)}}))})),!n&&a&&jQuery(document).on("click",(function(e){null===s||s===e.target||s.has(e.target).length||(X(s),Z(o,"click"))})),jQuery(document).on("flatsome-dropdown-opened",(function(e,t){t.hasClass("menu-item-has-block")&&jQuery.fn.packery&&t.find("[data-packery-options]").packery("layout")})),jQuery(document).on("flatsome-header-sticky",(function(){J(t),Z(o,"click")}))}}),Flatsome.behavior("instagram",{attach(e){const t=B((e=>{if(e.intersectionRatio>0){t.unobserve(e.target);const n=jQuery(e.target),o=n.data("flatsome-instagram"),i=e=>{jQuery("body").hasClass("admin-bar")&&n.before('<div class="container error"><p>Instagram error: '+e+"</p></div>"),console.error("Instagram error:",e)};if("string"!=typeof o)return i("Invalid data");jQuery.ajax({url:flatsomeVars.ajaxurl,data:{action:"flatsome_load_instagram",data:o},success(e){if(!e.success)return i(e.data);if("string"!=typeof e.data)return console.error("Invalid Instagram response:",e.data);const t=jQuery(e.data);Flatsome.detach(n),n.replaceWith(t),Flatsome.attach(t)},error(e){i(e)}})}}));jQuery("[data-flatsome-instagram]",e).each(((e,n)=>{t.observe(n)}))}});const K=[".jpg",".jpeg",".png",".webp",".avif"];let ee=null;Flatsome.behavior("lightbox-gallery",{attach(e){const t={delegate:"a",type:"image",closeBtnInside:flatsomeVars.lightbox.close_btn_inside,closeMarkup:flatsomeVars.lightbox.close_markup,tLoading:'<div class="loading-spin centered dark"></div>',removalDelay:300,gallery:{enabled:!0,navigateByImgClick:!0,arrowMarkup:'<button class="mfp-arrow mfp-arrow-%dir%" title="%title%"><i class="icon-angle-%dir%"></i></button>',preload:[0,1]},image:{tError:'<a href="%url%">The image #%curr%</a> could not be loaded.',verticalFit:!1},callbacks:{beforeOpen(){d()},beforeClose(){h()}}};jQuery((ee||(ee=[".lightbox a.lightbox-gallery"],K.forEach((e=>{ee.push(`.lightbox .gallery a[href*="${e}"]`)}))),ee).join(", "),e).not(".lightbox-multi-gallery a").parent().lazyMagnificPopup(t),jQuery(".lightbox .lightbox-multi-gallery",e).length&&jQuery(".lightbox-multi-gallery",e).each((function(){jQuery(this).lazyMagnificPopup(t)}))}});const te=[".jpg",".jpeg",".png",".webp",".avif"];let ne=null,oe=null;Flatsome.behavior("lightbox-image",{attach(e){const{selectors:t,exclusions:n}=function(){if(!ne){const e=['.lightbox *[id^="attachment"] a[href*="{ext}"]','.lightbox .wp-block-image a[href*="{ext}"]:not([target="_blank"])','.lightbox .entry-content a[href*="{ext}"]'],t=['.lightbox .gallery a[href*="{ext}"]','.lightbox .lightbox-multi-gallery a[href*="{ext}"]'];ne=[".lightbox a.image-lightbox"],oe=[".lightbox a.lightbox-gallery"],te.forEach((n=>{e.forEach((e=>{ne.push(e.replace("{ext}",n))})),t.forEach((e=>{oe.push(e.replace("{ext}",n))}))}))}return{selectors:ne,exclusions:oe}}();jQuery(t.join(", "),e).not(n.join(", ")).lazyMagnificPopup({type:"image",tLoading:'<div class="loading-spin centered dark"></div>',closeOnContentClick:!0,closeBtnInside:flatsomeVars.lightbox.close_btn_inside,closeMarkup:flatsomeVars.lightbox.close_markup,removalDelay:300,image:{verticalFit:!1},callbacks:{beforeOpen(){d()},beforeClose(){h()}}})}});const ie=["inert","hidden","disabled","readonly","required","checked","aria-disabled","aria-hidden"];function re(e,t){const n=e.jquery?e.get(0):e;Object.entries(t).forEach((([e,t])=>{const o=e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();!function(e,t,n){if("aria-expanded"===t){if(!0!==n&&"true"!==n)return;const t=e.hasAttribute("aria-expanded"),o="false"===e.getAttribute("aria-expanded");t&&o||console.warn("Flatsome: Trying to set aria-expanded to true but attribute is not initially false",e)}}(n,o,t),null==t||ie.includes(o)&&("false"===t||!1===t)?n.removeAttribute(o):o.startsWith("aria-")?n.setAttribute(o,"boolean"==typeof t?String(t):t):!0!==t?!1!==t?n.setAttribute(o,t):n.removeAttribute(o):n.setAttribute(o,"")}))}function ae(e){return!(!e||"string"!=typeof e)&&/^[a-zA-Z0-9_-]{10,12}$/.test(e)}function se(e){return!(!e||"string"!=typeof e)&&/^\d+$/.test(e)}Flatsome.behavior("lightboxes-link",{attach(e){jQuery(".lightbox-by-id",e).each((function(){const t=jQuery(this).attr("id");jQuery('a[href="#'+t+'"]',e).on("click",(e=>{e.preventDefault();const t=jQuery(e.currentTarget);q().then((()=>{let e=t.attr("href").substring(1),n=jQuery(`#${e}.lightbox-by-id`);if(e&&n.length>0){let e=n[0],o=jQuery.magnificPopup.open?300:0;o&&jQuery.magnificPopup.close(),setTimeout((function(){jQuery.magnificPopup.open({removalDelay:300,closeBtnInside:flatsomeVars.lightbox.close_btn_inside,closeMarkup:flatsomeVars.lightbox.close_markup,items:{src:e,type:"inline",tLoading:'<div class="loading-spin dark"></div>'},callbacks:{beforeOpen:function(){d(),re(t,{ariaExpanded:!0})},open:function(){if(Flatsome.attach(this.content),jQuery.fn.flickity&&jQuery("[data-flickity-options].flickity-enabled",this.content).each(((e,t)=>{jQuery(t).flickity("resize")})),jQuery.fn.packery){const e=jQuery("[data-packery-options]",this.content);e&&e.imagesLoaded((function(){e.packery("layout")}))}},beforeClose:function(){h(),re(t,{ariaExpanded:!1})}}})}),o)}}))}))}))}});const le=["vimeo.com/","youtube.com/","youtu.be/",".mp4",".webm"];let ce=null;Flatsome.behavior("lightbox-video",{attach(e){r()||jQuery((ce||(ce=["a.open-video"],le.forEach((e=>{ce.push(`a.button[href*="${e}"]:not([target="_blank"]):not(.open-video)`)}))),ce).join(", "),e).lazyMagnificPopup({type:"iframe",closeBtnInside:flatsomeVars.lightbox.close_btn_inside,mainClass:"my-mfp-video",closeMarkup:flatsomeVars.lightbox.close_markup,tLoading:'<div class="loading-spin centered dark"></div>',removalDelay:300,preloader:!0,callbacks:{elementParse:function(e){const t=function(e){if(!e||"string"!=typeof e)return null;const t=function(e){if(!e||"string"!=typeof e)return null;e=e.trim();const t=[/youtu\.be\/([^\/\?&]+)/,/youtube\.com\/watch\?v=([^\/\?&]+)/,/youtube\.com\/embed\/([^\/\?&]+)/,/youtube\.com\/v\/([^\/\?&]+)/,/youtube\.com\/shorts\/([^\/\?&]+)/];for(const n of t){const t=e.match(n);if(t){const e=t[1];if(ae(e))return e}}return null}(e);if(t)return{platform:"youtube",id:t,url:`https://www.youtube.com/watch?v=${t}`};const n=function(e){if(!e||"string"!=typeof e)return null;e=e.trim();const t=[/vimeo\.com\/([0-9]+)/,/player\.vimeo\.com\/video\/([0-9]+)/];for(const n of t){const t=e.match(n);if(t){const e=t[1];if(se(e))return e}}return null}(e);return n?{platform:"vimeo",id:n,url:`https://player.vimeo.com/video/${n}`}:null}(e.src);if(t)e.src=t.url;else if(/\.(mp4|webm)(\?.*)?$/i.test(e.src)){var n;const t=null!==(n=function(e){if(!e||"string"!=typeof e)return null;const t=e.split("?")[0].match(/\.([^.]+)$/i);return t?t[1].toLowerCase():null}(e.src))&&void 0!==n?n:"unknown";e.type="inline",e.src='<div class="ux-mfp-inline-content ux-mfp-inline-content--video"><video autoplay controls playsinline width="100%" height="auto" name="media"><source src="'+e.src+'" type="video/'+t+'"></video></div>'}},beforeOpen:function(){d()},open:function(){jQuery(".slider .is-selected .video").trigger("pause")},beforeClose:function(){h()},close:function(){jQuery(".slider .is-selected .video").trigger("play")}}})}}),Flatsome.behavior("lightboxes",{attach(e){jQuery("[data-open]",e).on("click",(e=>{e.preventDefault();const t=jQuery(e.currentTarget);q().then((()=>{var e=t.data("open"),n=t.data("color"),o=t.data("bg"),i=t.data("pos"),r=t.data("visible-after"),a=t.data("class"),s=t.attr("data-focus");t.offset(),t.addClass("current-lightbox-clicked"),"#product-sidebar"===e&&void 0===r&&(r=!jQuery(e).hasClass("mfp-hide")),"#shop-sidebar"!==e&&"#product-sidebar"!==e||(s=jQuery(e).find("select.select2-hidden-accessible").length>0?"no-focus":s),jQuery.magnificPopup.open({items:{src:e,type:"inline",tLoading:'<div class="loading-spin dark"></div>'},removalDelay:300,closeBtnInside:flatsomeVars.lightbox.close_btn_inside,closeMarkup:flatsomeVars.lightbox.close_markup,focus:s,callbacks:{beforeOpen:function(){this.st.mainClass=`off-canvas ${n||""} off-canvas-${i}`,d(),re(t,{ariaExpanded:!0})},open:function(){jQuery("html").addClass("has-off-canvas"),jQuery("html").addClass("has-off-canvas-"+i),a&&jQuery(".mfp-content").addClass(a),o&&jQuery(".mfp-bg").addClass(o),jQuery(".mfp-content .resize-select").trigger("change"),jQuery.fn.packery&&jQuery("[data-packery-options], .has-packery").packery("layout"),jQuery(".equalize-box",this.content).length&&Flatsome.attach("equalize-box",this.content)},beforeClose:function(){jQuery("html").removeClass("has-off-canvas"),h(),re(t,{ariaExpanded:!1})},afterClose:function(){jQuery("html").removeClass("has-off-canvas-"+i),jQuery(".current-lightbox-clicked").removeClass("current-lightbox-clicked"),r&&jQuery(e).removeClass("mfp-hide")}}})}))}))}});class ue{constructor(e){this.element=e,this.observer=null,e&&this.handleVisibility()}handleVisibility(){this.observer=B((e=>{const t=e.target,n=e.isIntersecting;re(t,{ariaHidden:!n,inert:!n})})),this.element.querySelectorAll(".flickity-slider > *").forEach((e=>{this.observer.observe(e)}))}destroy(){this.observer&&(this.observer.disconnect(),this.observer=null)}}function de(e){re(e,{inert:!0})}Flatsome.behavior("slider",{attach(e){const t=jQuery(e).data("flickityOptions")?jQuery(e):jQuery("[data-flickity-options]",e);t.length&&t.each(((e,t)=>{const n=jQuery(t),o=n.data("flickity-options");if("undefined"!=typeof UxBuilder&&(o.draggable=!1),!0===o.watchCSS)return;let i=!1,r=!1,a=null;const s=e=>{try{i=t.contains(e.target),"number"!=typeof o.autoPlay||!o.pauseAutoPlayOnHover||i||r||n.flickity("playPlayer")}catch(e){}};n.on("flatsome-flickity-ready",(function(){n.find(".flickity-slider > :not(.is-selected) .video-bg").trigger("pause"),n.find(".is-selected .video-bg").trigger("play"),"requestAnimationFrame"in window&&(n.removeClass("flickity-enabled"),window.requestAnimationFrame((()=>{n.addClass("flickity-enabled")})));const e=n.data("flickity");if(e&&o.parallax){const t=n.find(".bg, .flickity-slider > .img img");n.addClass("slider-has-parallax"),n.on("scroll.flickity",(function(){e.slides.forEach((function(n,i){const r=t[i],a=-1*(n.target+e.x)/o.parallax;r&&(r.style.transform="translateX("+a+"px)")}))}))}a=new ue(t),document.addEventListener("touchstart",s,{passive:!0})})),L&&(o.friction=1,o.selectedAttraction=1,o.autoPlay=!1),n.lazyFlickity(o),n.imagesLoaded((function(){n.closest(".slider-wrapper").find(".loading-spin").fadeOut()})),n.on("dragStart.flickity",(function(){document.ontouchmove=e=>e.preventDefault(),n.addClass("is-dragging")})),n.on("dragEnd.flickity",(function(){document.ontouchmove=()=>!0,n.removeClass("is-dragging")})),n.on("destroy.flickity",(()=>{document.removeEventListener("touchstart",s),a&&(a.destroy(),a=null)})),n.on("change.flickity",(function(){i&&(r=!0),n.find(".flickity-slider > :not(.is-selected) .video-bg").trigger("pause"),n.find(".is-selected .video-bg").trigger("play")}))}))},detach(e){jQuery.fn.flickity&&!jQuery.fn.flickity.isFlickityStub&&(jQuery(e).data("flickityOptions")?jQuery(e).flickity("destroy"):jQuery("[data-flickity-options]",e).each((function(){jQuery(this).data("flickity")&&jQuery(this).flickity("destroy")})))}}),a(5973),a(7633),Flatsome.behavior("sidebar-slider",{attach(e){const t=jQuery("body").hasClass("mobile-submenu-toggle");jQuery(".mobile-sidebar-slide",e).each(((e,n)=>{const o=parseInt(jQuery(n).data("levels"),10)||1,i=jQuery(".sidebar-menu",n),r=jQuery(".nav-sidebar",n);jQuery(["> li > ul.children","> li > .sub-menu",o>1?"> li > ul.children > li > ul":null].filter(Boolean).join(", "),r).each(((e,n)=>{const o=jQuery(n),r=o.parent(),a=r.parents("ul:first"),s=jQuery(["> .toggle",'> a[href="#"]',t&&"> a"].filter(Boolean).join(","),r),l=r.find("> a").text().trim(),c=o.parents("ul").length,u=Boolean(window.flatsomeVars.rtl),d=jQuery(`\n            <li class="nav-slide-header pt-half pb-half">\n              <button class="toggle">\n                <i class="icon-angle-left"></i>\n                ${l||window.flatsomeVars.i18n.mainMenu}\n              </button>\n            </li>\n          `);o.prepend(d),de(o);let h=null;s.off("click").on("click",(e=>{r.attr("aria-expanded","true"),a.addClass("is-current-parent"),o.addClass("is-current-slide"),i.css("transform",`translateX(${u?"":"-"}${100*c}%)`),re(o,{inert:!1}),clearTimeout(h),e.preventDefault()})),d.find(".toggle").on("click",(()=>{i.css("transform",`translateX(${u?"":"-"}${100*(c-1)}%)`),de(o),h=setTimeout((()=>{o.removeClass("is-current-slide"),a.removeClass("is-current-parent")}),300),r.removeClass("active"),r.attr("aria-expanded","false")}))}))}))}}),a(6910),a(7439),a(9476),a(9880),Flatsome.behavior("accordion-title",{attach(e){const t=window.location.hash;let n=!1;jQuery(".accordion-title",e).each((function(){jQuery(this).off("click.flatsome").on("click.flatsome",(function(e){const t=L?0:200;jQuery(this).next().is(":hidden")?(jQuery(this).parent().parent().find(".accordion-title").attr("aria-expanded",!1).removeClass("active").next().slideUp(t),jQuery(this).attr("aria-expanded",!jQuery(this).hasClass("active")).toggleClass("active").next().slideDown(t,(function(){i()&&jQuery.scrollTo(jQuery(this).prev())})),window.requestAnimationFrame((()=>{!function(e,t=!1){e=e.jquery?e.get(0):e;const n=()=>{jQuery.fn.flickity&&jQuery("[data-flickity-options].flickity-enabled",e).each(((e,t)=>{const n=jQuery(t);n.data("flickity")&&n.flickity("resize")})),jQuery.fn.packery&&jQuery("[data-packery-options], .has-packery",e).each(((e,t)=>{const n=jQuery(t);n.data("packery")&&setTimeout((()=>{n.packery("layout")}),100)})),jQuery.fn.isotope&&jQuery(".row-isotope",e).each(((e,t)=>{const n=jQuery(t);n.data("isotope")&&setTimeout((()=>{n.isotope("layout")}),100)})),(e.querySelector(".equalize-box")||e.classList.contains("equalize-box"))&&jQuery(document).trigger("flatsome-equalize-box")};t?o()(e,n):n()}(jQuery(this).next())}))):jQuery(this).parent().parent().find(".accordion-title").attr("aria-expanded",!1).removeClass("active").next().slideUp(t),e.preventDefault()})),!t.substring(1).length||decodeURIComponent(t.substring(1))!==jQuery(this).attr("href")?.split("#")[1]&&t.substring(1)!==jQuery(this).attr("href")?.split("#")[1]||(jQuery(this).hasClass("active")||jQuery(this).trigger("click"),n||(n=!0,setTimeout((()=>{jQuery.scrollTo(jQuery(this).parent())}),500)))}))}}),Flatsome.behavior("tooltips",{attach(e){jQuery(".tooltip:not(.hotspot), .has-tooltip, .tip-top, li.chosen a",e).lazyTooltipster(),jQuery(".tooltip-as-html",e).lazyTooltipster({interactive:!0,contentAsHTML:!0}),i()?jQuery(".hotspot.tooltip:not(.quick-view)",e).lazyTooltipster({trigger:"click"}):jQuery(".hotspot.tooltip",e).lazyTooltipster()}});const he="flatsome-sticky-sidebar";function fe(e){const t=e.getBoundingClientRect();return new DOMRect(t.width,t.top+window.scrollY,0,t.height)}Flatsome.behavior("sticky-sidebar",{attach(e){jQuery('.is-sticky-column[data-sticky-mode="javascript"]',e).each(((e,t)=>{"ResizeObserver"in window&&t.offsetParent&&t.offsetParent!==document.body?jQuery(t).data(he,function(e){const{offsetParent:t}=e,n=parseInt(flatsomeVars.sticky_height,10)+30,o={passive:!0,capture:!1};if(!t||t===document.body)return;let{innerHeight:i}=window,r=null,a=null,s=0,l=null,c=null;const u=(t="down")=>{const o=window.scrollY+n-Math.round(r?.top),u=i+s-n-Math.round(a?.height),d=Math.max(Math.min(u,Math.round(r?.height-a?.height)),0);let h=null,f=null;!r||a?.height<i-n?f=n:"down"===t?o<=s?h=d:a?.height-o<=i&&(f=i-Math.round(a?.height),s=o):"up"===t&&(o<=u?(f=n,s=o+Math.round(a?.height)-i+n):h=d),h===l&&f===c||(e.style.top="number"==typeof f?`${f}px`:f,e.style.transform="number"==typeof h?`translateY(${h}px)`:h),c=f,l=h},d=function(e){if("ResizeObserver"in window)return new ResizeObserver((function(t){for(let n=0;n<t.length;n++)e(t[n])}))}((({target:n,contentRect:o})=>{if(n===t){const e=fe(t),{x:n,y:i,width:a,height:s}=o;r=new DOMRect(e.x+n,e.y+i,a,s)}else n===e&&(a=fe(e),u())})),h=f(((e,{direction:t})=>u(t)),o),p=()=>{i=window.innerHeight,u()};return d?.observe(t),d?.observe(e),window.addEventListener("resize",p,o),()=>{h(),d?.disconnect(),window.removeEventListener("resize",p)}}(t)):jQuery(t).removeAttr("data-sticky-mode")}))},detach(e){jQuery('.is-sticky-column[data-sticky-mode="javascript"]',e).each(((e,t)=>{jQuery(t).data(he)?.()}))}});const pe="header-vertical-menu__fly-out--open",me=jQuery(document);function ye(){return document.body.classList.contains("home")&&function(e){switch(e){case"0":case"false":case!1:return!1;case"1":case"true":case!0:return!0;default:return Boolean(e)}}(window.flatsomeVars?.options?.header_nav_vertical_fly_out_frontpage)&&!document.querySelector("#header .header-wrapper").classList.contains("stuck")}function ge(e){const t=e.querySelector(".header-vertical-menu__fly-out");if(t.classList.contains(pe))return;const n=e.querySelector(".header-vertical-menu__opener");t.classList.add(pe),re(n,{ariaExpanded:!0})}function ve(e){if(ye())return;const t=e.querySelector(".header-vertical-menu__fly-out");if(!t.classList.contains(pe))return;const n=e.querySelector(".header-vertical-menu__opener");t.classList.remove(pe),re(n,{ariaExpanded:!1})}Flatsome.behavior("vertical-menu",{attach(e){!function(e){const t=jQuery(".header-vertical-menu",e).get(0);t&&(t.addEventListener("click",(()=>{t.querySelector(".header-vertical-menu__fly-out").classList.contains(pe)?ve(t):ge(t)})),t.addEventListener("mouseenter",(()=>ge(t))),t.addEventListener("mouseleave",(()=>ve(t))),me.on("flatsome-header-sticky",(()=>{ve(t)})),me.on("flatsome-header-unsticky",(()=>{ye()&&ge(t)})))}(e)}}),a(6808),Flatsome.behavior("lottie",{attach(e){if(r())return;const t=jQuery(".ux-lottie__player",e);if(0===t.length)return;const n=B((e=>{e.isIntersecting&&(n.unobserve(e.target),function(e){const t=e,n=JSON.parse(t.dataset.params);let o=null,i=null,r=!1;function s(e){if(0===parseInt(e))return i.ip;if(100===parseInt(e))return i.op;const t=parseInt(i.ip),n=e*(parseInt(i.op)-t)/100+t;return Math.ceil(n)}Promise.all([a.e(970).then(a.bind(a,9371)),a.e(970).then(a.bind(a,1204))]).then((([,{create:e}])=>{t.load(n.src),t.addEventListener("ready",(()=>{o=t.getLottie(),i=o.animationData;const{autoplay:a,controls:l,direction:c,end:u,id:d,loop:h,mouseout:f,speed:p,start:m,trigger:y,scrollActionType:g,visibilityEnd:v,visibilityStart:b}=n;t.__controls=l,t.setLooping(h),t.setSpeed(parseFloat(p)),t.setDirection(c),"true"!==a&&"scroll"===y||o.playSegments([s(m),s(u)],!0),a||(t.pause(),"scroll"===y&&e({player:`#${d} .ux-lottie__player`,mode:"scroll",actions:[{visibility:[b/100,v/100],type:g,frames:[s(m),s(u)]}]}),"hover"===y&&(t.addEventListener("mouseenter",(()=>{"reverse"===f?(t.setDirection(c),t.play()):t.play()})),t.addEventListener("mouseleave",(()=>{"reverse"===f?(t.setDirection(-1===c?1:-1),t.play()):t.pause()}))),"click"===y&&t.addEventListener("click",(()=>{if(r)return t.pause(),void(r=!1);t.play(),r=!0})))}))}))}(e.target))}));t.each(((e,t)=>{n.observe(t)}))}}),L&&window.flatsomeVars.user.can_edit_pages&&("Prefer reduced motion is active on your OS","The prefers-reduced-motion media feature is used to detect if the user has requested the system minimize the amount of non-essential motion it uses. With this option enabled, slides & animations are reduced on the frontend.\nCheck your OS documentation on how to disable reduced motion.",console.groupCollapsed("%cFlatsome%c: Prefer reduced motion is active on your OS","color: #0693e3; font-weight: bold;","color: inherit;"),console.log("The prefers-reduced-motion media feature is used to detect if the user has requested the system minimize the amount of non-essential motion it uses. With this option enabled, slides & animations are reduced on the frontend.\nCheck your OS documentation on how to disable reduced motion."),console.groupEnd());let be=0;let we=0;const je="scrollBehavior"in document.documentElement.style,ke=window.getComputedStyle(document.documentElement)["scroll-behavior"];function Qe(){window.removeEventListener("keydown",Qe),window.removeEventListener("pointermove",Qe),window.removeEventListener("touchstart",Qe),function(){const e=jQuery("#header");if(!e.hasClass("has-sticky"))return;const t=e.clone();t.attr("id","header-clone").css("visibility","hidden");const n=t.find(".header-wrapper");n.addClass("stuck"),jQuery("body").append(t),be=Math.round(n.height()),t.remove(),window.flatsomeVars.stickyHeaderHeight=be,function(e,t=""){t&&document.documentElement.style.setProperty(e,t),window.getComputedStyle(document.documentElement).getPropertyValue(e)}("--flatsome--header--sticky-height",`${be}px`)}(),function(){const e=jQuery("#wpadminbar"),t=e.length&&e.is(":visible")?e.height():0;we=Math.round(window.flatsomeVars.stickyHeaderHeight+t),window.flatsomeVars.scrollPaddingTop=we,jQuery.extend(jQuery.easing,{fsEaseInOutExpo:function(e){return 0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2}}),jQuery.extend(jQuery.scrollTo.defaults,{axis:"y",duration:L||je&&"smooth"===ke?0:1e3,offset:-we,easing:"fsEaseInOutExpo"})}()}document.addEventListener("DOMContentLoaded",(()=>{window.location.hash||window.scrollY>200?Qe():(window.addEventListener("keydown",Qe,{once:!0}),window.addEventListener("pointermove",Qe,{once:!0}),window.addEventListener("touchstart",Qe,{once:!0}))}));for(const e of["touchstart","touchmove"])jQuery.event.special[e]={setup(t,n,o){this.addEventListener&&this.addEventListener(e,o,{passive:!n.includes("noPreventDefault")})}};for(const e of["wheel","mousewheel"])jQuery.event.special[e]={setup(t,n,o){this.addEventListener&&this.addEventListener(e,o,{passive:!0})}};jQuery((()=>a.g.Flatsome.attach(document))),a.g.Flatsome.cookie=function(e,t,n){if(console.warn("Flatsome.cookie() is deprecated since 3.20.0 and will be removed in one of the future releases. Use Flatsome.Cookies.get() and Flatsome.Cookies.set() instead."),void 0===t){const t=("; "+window.document.cookie).split(`; ${e}=`);return 2===t.length?t.pop().split(";").shift():null}{!1===t&&(n=-1);let o="";if(n){const e=new Date;e.setTime(e.getTime()+24*n*60*60*1e3),o=`; expires=${e.toGMTString()}`}window.document.cookie=`${e}=${t}${o}; path=/`}},a.g.Flatsome.Cookies=t}()}();
;(function (){
function createObserver (handler){
return new IntersectionObserver(function (entries){
for (var i=0; i < entries.length; i++){
handler(entries[i])
}}, {
rootMargin: '0px',
threshold: 0.1
})
}
Flatsome.behavior('lazy-load-images', {
attach: function (context){
var observer=createObserver(function (entry){
if(entry.intersectionRatio > 0){
observer.unobserve(entry.target)
var $el=jQuery(entry.target)
var src=$el.data('src')
var srcset=$el.data('srcset')
if($el.hasClass('lazy-load-active')) return
else $el.addClass('lazy-load-active')
if(src) $el.attr('src', src)
if(srcset) $el.attr('srcset', srcset)
$el.imagesLoaded(function (){
$el.removeClass('lazy-load')
if(typeof objectFitImages!=='undefined'){
objectFitImages($el)
}})
}})
jQuery('.lazy-load', context).each(function (i, el){
observer.observe(el)
})
}})
Flatsome.behavior('lazy-load-sliders', {
attach: function (context){
var observer=createObserver(function (entry){
if(entry.intersectionRatio > 0){
observer.unobserve(entry.target)
var $el=jQuery(entry.target)
if($el.hasClass('slider-lazy-load-active')) return
else $el.addClass('slider-lazy-load-active')
$el.imagesLoaded(function (){
if($el.hasClass('flickity-enabled')){
$el.flickity('resize')
}})
}})
jQuery('.slider', context).each(function (i, el){
observer.observe(el)
})
}})
Flatsome.behavior('lazy-load-packery', {
attach: function (context){
var observer=createObserver(function (entry){
if(entry.intersectionRatio > 0){
observer.unobserve(entry.target)
var $el=jQuery(entry.target)
$el.imagesLoaded(function (){
jQuery('.has-packery').packery('layout')
})
}})
jQuery('.has-packery .lazy-load', context).each(function (i, el){
observer.observe(el)
})
}})
})();
!function(){var t,e,o,i,n={5819:function(){Flatsome.behavior("equalize-box",{attach(t){let e={ScreenSize:{LARGE:1,MEDIUM:2,SMALL:3},equalizeItems:function(t){const e=this;e.maxHeight=0,e.rowEnd=e.disablePerRow?e.boxCount:e.colPerRow,e.$items=[],e.rating={present:!1,height:0,dummy:null},e.swatches={present:!1,height:0,dummy:null},jQuery(t,e.currentElement).each((function(t){const o=jQuery(this);e.$items.push(o),o.height(""),o.children(".js-star-rating").remove();const i=o.children(".star-rating");var n;i.length&&(e.rating.present=!0,e.rating.height=i.height(),e.rating.dummy=null!==(n=e.rating.dummy)&&void 0!==n?n:'<div class="js-star-rating '+i.attr("class")+'" style="opacity: 0; visibility: hidden"></div>'),o.children(".js-ux-swatches").remove();const r=o.children(".ux-swatches.ux-swatches-in-loop");var a;r.length&&(e.swatches.present=!0,e.swatches.height=r.height(),e.swatches.dummy=null!==(a=e.swatches.dummy)&&void 0!==a?a:'<div class="js-ux-swatches '+r.attr("class")+'" style="opacity: 0; visibility: hidden"><div class="'+r.find(".ux-swatch").attr("class")+'"></div></div>'),o.height()>e.maxHeight&&(e.maxHeight=o.height()),t!==e.rowEnd-1&&t!==e.boxCount-1||(e.$items.forEach((function(t){t.height(e.maxHeight),e.maybeAddDummyRating(t),e.maybeAddDummySwatches(t)})),e.rowEnd+=e.colPerRow,e.maxHeight=0,e.$items=[],e.rating.present=!1,e.swatches.present=!1)}))},getColsPerRow:function(){const t=jQuery(this.currentElement).attr("class"),e=/large-columns-(\d+)/g,o=/medium-columns-(\d+)/g,i=/small-columns-(\d+)/g;let n;switch(this.getScreenSize()){case this.ScreenSize.LARGE:return n=e.exec(t),n?parseInt(n[1]):3;case this.ScreenSize.MEDIUM:return n=o.exec(t),n?parseInt(n[1]):3;case this.ScreenSize.SMALL:return n=i.exec(t),n?parseInt(n[1]):2}},maybeAddDummyRating:function(t){let e=t;this.rating.present&&e.hasClass("price-wrapper")&&(e.children(".star-rating").length||(e.prepend(this.rating.dummy),e.children(".js-star-rating").height(this.rating.height)))},maybeAddDummySwatches:function(t){const e=t;this.swatches.present&&(e.children(".ux-swatches.ux-swatches-in-loop").length||(e.prepend(this.swatches.dummy),e.children(".js-ux-swatches").height(this.swatches.height)))},getScreenSize:function(){return window.matchMedia("(min-width: 850px)").matches?this.ScreenSize.LARGE:window.matchMedia("(min-width: 550px) and (max-width: 849px)").matches?this.ScreenSize.MEDIUM:window.matchMedia("(max-width: 549px)").matches?this.ScreenSize.SMALL:void 0},init:function(){const e=this,o=[".product-title",".price-wrapper",".box-excerpt",".add-to-cart-button"];jQuery(".equalize-box",t).each(((t,i)=>{e.currentElement=i,e.colPerRow=e.getColsPerRow(),1!==e.colPerRow&&(e.disablePerRow=jQuery(i).hasClass("row-slider")||jQuery(i).hasClass("row-grid"),e.boxCount=jQuery(".box-text",e.currentElement).length,o.forEach((t=>{e.equalizeItems(".box-text "+t)})),e.equalizeItems(".box-text"))}))}};e.init(),jQuery(window).on("resize",(()=>{e.init()})),jQuery(document).on("flatsome-equalize-box",(()=>{e.init()}))}})},394:function(){Flatsome.behavior("add-qty",{attach(t){jQuery(".quantity",t).addQty()}})},9016:function(){Flatsome.plugin("addQty",(function(t,e){const o=jQuery(t);String.prototype.uxGetDecimals||(String.prototype.uxGetDecimals=function(){const t=(""+this).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}),o.off("click.flatsome",".plus, .minus").on("click.flatsome",".plus, .minus",(function(){const t=jQuery(this),e=t.closest(".quantity").find(".qty");let o=parseFloat(e.val()),i=parseFloat(e.attr("max")),n=parseFloat(e.attr("min")),r=e.attr("step");o&&""!==o&&"NaN"!==o||(o=0),""!==i&&"NaN"!==i||(i=""),""!==n&&"NaN"!==n||(n=0),"any"!==r&&""!==r&&void 0!==r&&"NaN"!==parseFloat(r)||(r=1),t.is(".plus")?i&&(i===o||o>i)?e.val(i):e.val((o+parseFloat(r)).toFixed(r.uxGetDecimals())):n&&(n===o||o<n)?e.val(n):o>0&&e.val((o-parseFloat(r)).toFixed(r.uxGetDecimals())),e.trigger("input"),e.trigger("change")}))}))},9144:function(){setTimeout((function(){jQuery(document.body).on("country_to_state_changed",(function(){"undefined"!=typeof floatlabels&&floatlabels.rebuild()}))}),500)},5460:function(){jQuery((function(t){t(document.body).on("change",".woocommerce-mini-cart-item .qty",(function(){var e;(e=t(this))[0].checkValidity()?function(e,o){const i=e.find(".remove_from_cart_button").attr("data-cart_item_key");i&&(e.block({message:null}),t.post(flatsomeVars.ajaxurl,{action:"flatsome_ajax_cart_item_alter_quantity",quantity:o,cart_item_key:i}).done((()=>{t(document.body).trigger("updated_wc_div"),t(document.body).trigger("added_to_cart"),e.unblock(),e=null})))}(e.closest(".woocommerce-mini-cart-item"),e.val()):e[0].reportValidity()}))}))},5261:function(){jQuery(document).ready((function(){if(!jQuery(".custom-product-page").length)return;const t=jQuery("#respond p.stars");if(t.length>1){const e=t[0].outerHTML;t.remove(),jQuery('select[id="rating"]').hide().before(e)}}))},4401:function(){jQuery(document).on("yith_infs_adding_elem",(function(t){Flatsome.attach(jQuery(".shop-container"))}))},4696:function(t,e,o){var i,n;!function(r,a){"use strict";i=[o(428)],void 0===(n=function(t){!function(t){var e,o,i,n,r,a,s={loadingNotice:"Loading image",errorNotice:"The image could not be loaded",errorDuration:2500,linkAttribute:"href",preventClicks:!0,beforeShow:t.noop,beforeHide:t.noop,onShow:t.noop,onHide:t.noop,onMove:t.noop};function c(e,o){this.$target=t(e),this.opts=t.extend({},s,o,this.$target.data()),void 0===this.isOpen&&this._init()}c.prototype._init=function(){this.$link=this.$target.find("a"),this.$image=this.$target.find("img"),this.$flyout=t('<div class="easyzoom-flyout" />'),this.$notice=t('<div class="easyzoom-notice" />'),this.$target.on({"mousemove.easyzoom touchmove.easyzoom":t.proxy(this._onMove,this),"mouseleave.easyzoom touchend.easyzoom":t.proxy(this._onLeave,this),"mouseenter.easyzoom touchstart.easyzoom":t.proxy(this._onEnter,this)}),this.opts.preventClicks&&this.$target.on("click.easyzoom",(function(t){t.preventDefault()}))},c.prototype.show=function(t,r){var a=this;if(!1!==this.opts.beforeShow.call(this)){if(!this.isReady)return this._loadImage(this.$link.attr(this.opts.linkAttribute),(function(){!a.isMouseOver&&r||a.show(t)}));this.$target.append(this.$flyout);var s=this.$target.outerWidth(),c=this.$target.outerHeight(),l=this.$flyout.width(),u=this.$flyout.height(),d=this.$zoom.width(),h=this.$zoom.height();e=Math.ceil(d-l),o=Math.ceil(h-u),e<0&&(e=0),o<0&&(o=0),i=e/s,n=o/c,this.isOpen=!0,this.opts.onShow.call(this),t&&this._move(t)}},c.prototype._onEnter=function(t){var e=t.originalEvent.touches;this.isMouseOver=!0,e&&1!=e.length||(t.preventDefault(),this.show(t,!0))},c.prototype._onMove=function(t){this.isOpen&&(t.preventDefault(),this._move(t))},c.prototype._onLeave=function(){this.isMouseOver=!1,this.isOpen&&this.hide()},c.prototype._onLoad=function(t){t.currentTarget.width&&(this.isReady=!0,this.$notice.detach(),this.$flyout.html(this.$zoom),this.$target.removeClass("is-loading").addClass("is-ready"),t.data.call&&t.data())},c.prototype._onError=function(){var t=this;this.$notice.text(this.opts.errorNotice),this.$target.removeClass("is-loading").addClass("is-error"),this.detachNotice=setTimeout((function(){t.$notice.detach(),t.detachNotice=null}),this.opts.errorDuration)},c.prototype._loadImage=function(e,o){var i=new Image;this.$target.addClass("is-loading").append(this.$notice.text(this.opts.loadingNotice)),this.$zoom=t(i).on("error",t.proxy(this._onError,this)).on("load",o,t.proxy(this._onLoad,this)),i.style.position="absolute",i.src=e},c.prototype._move=function(t){if(0===t.type.indexOf("touch")){var s=t.touches||t.originalEvent.touches;r=s[0].pageX,a=s[0].pageY}else r=t.pageX||r,a=t.pageY||a;var c=this.$target.offset(),l=r-c.left,u=a-c.top,d=Math.ceil(l*i),h=Math.ceil(u*n);if(flatsomeVars.rtl&&(d=e-d),d<0||h<0||d>e||h>o)this.hide();else{var f=-1*h,m=-1*d;"transform"in document.body.style?this.$zoom.css({transform:`translate(${flatsomeVars.rtl?-m:m}px, ${f}px)`}):this.$zoom.css({top:f,left:m}),this.opts.onMove.call(this,f,m)}},c.prototype.hide=function(){this.isOpen&&!1!==this.opts.beforeHide.call(this)&&(this.$flyout.detach(),this.isOpen=!1,this.opts.onHide.call(this))},c.prototype.swap=function(e,o,i){this.hide(),this.isReady=!1,this.detachNotice&&clearTimeout(this.detachNotice),this.$notice.parent().length&&this.$notice.detach(),this.$target.removeClass("is-loading is-ready is-error"),this.$image.attr({src:e,srcset:t.isArray(i)?i.join():i}),this.$link.attr(this.opts.linkAttribute,o)},c.prototype.teardown=function(){this.hide(),this.$target.off(".easyzoom").removeClass("is-loading is-ready is-error"),this.detachNotice&&clearTimeout(this.detachNotice),delete this.$link,delete this.$zoom,delete this.$image,delete this.$notice,delete this.$flyout,delete this.isOpen,delete this.isReady},t.fn.easyZoom=function(e){return this.each((function(){var o=t.data(this,"easyZoom");o?void 0===o.isOpen&&o._init():t.data(this,"easyZoom",new c(this,e))}))}}(t)}.apply(e,i))||(t.exports=n)}()},428:function(t){"use strict";t.exports=window.jQuery}},r={};function a(t){var e=r[t];if(void 0!==e)return e.exports;var o=r[t]={exports:{}};return n[t].call(o.exports,o,o.exports,a),o.exports}a.m=n,e=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},a.t=function(o,i){if(1&i&&(o=this(o)),8&i)return o;if("object"==typeof o&&o){if(4&i&&o.__esModule)return o;if(16&i&&"function"==typeof o.then)return o}var n=Object.create(null);a.r(n);var r={};t=t||[null,e({}),e([]),e(e)];for(var s=2&i&&o;"object"==typeof s&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach((function(t){r[t]=function(){return o[t]}}));return r.default=function(){return o},a.d(n,r),n},a.d=function(t,e){for(var o in e)a.o(e,o)&&!a.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},a.f={},a.e=function(t){return Promise.all(Object.keys(a.f).reduce((function(e,o){return a.f[o](t,e),e}),[]))},a.u=function(t){return"js/chunk.popups.js"},a.miniCssF=function(t){},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o={},i="flatsome:",a.l=function(t,e,n,r){if(o[t])o[t].push(e);else{var s,c;if(void 0!==n)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var d=l[u];if(d.getAttribute("src")==t||d.getAttribute("data-webpack")==i+n){s=d;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",i+n),s.src=t),o[t]=[e];var h=function(e,i){s.onerror=s.onload=null,clearTimeout(f);var n=o[t];if(delete o[t],s.parentNode&&s.parentNode.removeChild(s),n&&n.forEach((function(t){return t(i)})),e)return e(i)},f=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),c&&document.head.appendChild(s)}},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){const t=a.u;a.u=e=>{const o=t(e),i=globalThis.flatsomeVars?.theme.version;return o+(i?"?ver="+i:"")}}(),a.p=globalThis.flatsomeVars?.assets_url??"/",function(){var t={643:0};a.f.j=function(e,o){var i=a.o(t,e)?t[e]:void 0;if(0!==i)if(i)o.push(i[2]);else{var n=new Promise((function(o,n){i=t[e]=[o,n]}));o.push(i[2]=n);var r=a.p+a.u(e),s=new Error;a.l(r,(function(o){if(a.o(t,e)&&(0!==(i=t[e])&&(t[e]=void 0),i)){var n=o&&("load"===o.type?"missing":o.type),r=o&&o.target&&o.target.src;s.message="Loading chunk "+e+" failed.\n("+n+": "+r+")",s.name="ChunkLoadError",s.type=n,s.request=r,i[1](s)}}),"chunk-"+e,e)}};var e=function(e,o){var i,n,r=o[0],s=o[1],c=o[2],l=0;if(r.some((function(e){return 0!==t[e]}))){for(i in s)a.o(s,i)&&(a.m[i]=s[i]);c&&c(a)}for(e&&e(o);l<r.length;l++)n=r[l],a.o(t,n)&&t[n]&&t[n][0](),t[n]=0},o=self.flatsomeChunks=self.flatsomeChunks||[];o.forEach(e.bind(null,0)),o.push=e.bind(null,o.push.bind(o))}(),function(){"use strict";a(9016),a(394),a(5819);const t=window.matchMedia("(prefers-reduced-motion: reduce)");let e=!1;function o(){e="undefined"==typeof UxBuilder&&t.matches}function i(){return jQuery.fn.magnificPopup?Promise.resolve():a.e(230).then(a.t.bind(a,9650,23))}o(),t.addEventListener?.("change",o),jQuery.loadMagnificPopup=i,jQuery.fn.lazyMagnificPopup=function(t){const e=jQuery(this),o=t.delegate?e.find(t.delegate):e;return o.one("click",(n=>{n.preventDefault(),i().then((()=>{e.data("magnificPopup")||e.magnificPopup({allowHTMLInStatusIndicator:!0,allowHTMLInTemplate:!0,...t}),e.magnificPopup("open",o.index(n.currentTarget)||0)}))})),e};const n=["inert","hidden","disabled","readonly","required","checked","aria-disabled","aria-hidden"];function r(t,e){const o=t.jquery?t.get(0):t;Object.entries(e).forEach((([t,e])=>{const i=t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();!function(t,e,o){if("aria-expanded"===e){if(!0!==o&&"true"!==o)return;const e=t.hasAttribute("aria-expanded"),i="false"===t.getAttribute("aria-expanded");e&&i||console.warn("Flatsome: Trying to set aria-expanded to true but attribute is not initially false",t)}}(o,i,e),null==e||n.includes(i)&&("false"===e||!1===e)?o.removeAttribute(i):i.startsWith("aria-")?o.setAttribute(i,"boolean"==typeof e?String(e):e):!0!==e?!1!==e?o.setAttribute(i,e):o.removeAttribute(i):o.setAttribute(i,"")}))}function s(t){if("MutationObserver"in window)return new MutationObserver((function(e){for(let o=0;o<e.length;o++)t(e[o])}))}Flatsome.behavior("quick-view",{attach:function(t){"uxBuilder"!==jQuery("html").attr("ng-app")&&jQuery(".quick-view",t).each((function(t,o){jQuery(o).hasClass("quick-view-added")||(jQuery(o).on("click",(function(t){if(""==jQuery(this).attr("data-prod"))return;const n=jQuery(t.currentTarget);jQuery(this).parent().parent().addClass("processing");var a={action:"flatsome_quickview",product:jQuery(this).attr("data-prod")};jQuery.post(flatsomeVars.ajaxurl,a,(function(t){i().then((()=>{jQuery(".processing").removeClass("processing"),jQuery.magnificPopup.open({removalDelay:300,autoFocusLast:!1,closeMarkup:flatsomeVars.lightbox.close_markup,closeBtnInside:flatsomeVars.lightbox.close_btn_inside,items:{src:'<div class="product-lightbox lightbox-content">'+t+"</div>",type:"inline"},callbacks:{beforeOpen:function(){r(n,{ariaExpanded:!0})},beforeClose:function(){r(n,{ariaExpanded:!1})},afterClose:()=>{jQuery(o).closest(".box").find(".box-text a:first").trigger("focus")}}}),setTimeout((function(){const t=jQuery(".product-lightbox");t.imagesLoaded((function(){const t={cellAlign:"left",wrapAround:!0,autoPlay:!1,prevNextButtons:!0,adaptiveHeight:!0,imagesLoaded:!0,dragThreshold:15,rightToLeft:flatsomeVars.rtl};e&&(t.friction=1,t.selectedAttraction=1),jQuery(".product-lightbox .slider").lazyFlickity(t)})),Flatsome.attach("tooltips",t),Flatsome.attach("a11y",t)}),300);let i=jQuery(".product-lightbox form.variations_form");jQuery(".product-lightbox form").hasClass("variations_form")&&i.wc_variation_form();let a=jQuery(".product-lightbox .product-gallery-slider"),s=jQuery(".product-lightbox .product-gallery-slider .slide.first img"),c=jQuery(".product-lightbox .product-gallery-slider .slide.first a"),l=s.attr("data-src")?s.attr("data-src"):s.attr("src");const u=jQuery.Deferred();a.one("flatsome-flickity-ready",(()=>u.resolve()));let d=function(){a.data("flickity")&&a.flickity("select",0)},h=function(){a.data("flickity")&&a.imagesLoaded((function(){a.flickity("resize")}))};jQuery.when(u).done((()=>{i.on("hide_variation",(function(t,e){s.attr("src",l).attr("srcset",""),h()})),i.on("click keydown",".reset_variations",(function(t){if("keydown"===t.type){if("Space"!==t.code&&"Enter"!==t.code)return;t.preventDefault()}s.attr("src",l).attr("srcset",""),d(),h()}))})),i.on("show_variation",(function(t,e){jQuery.when(u).done((()=>{e.image.src?(s.attr("src",e.image.src).attr("srcset",""),c.attr("href",e.image_link),d(),h()):e.image_src&&(s.attr("src",e.image_src).attr("srcset",""),c.attr("href",e.image_link),d(),h())}))})),jQuery(".product-lightbox .quantity").addQty()}))})),t.preventDefault()})),jQuery(o).addClass("quick-view-added"))}))}}),jQuery((function(t){t(".single_add_to_cart_button").each((function(){const e=t(this);s((function(t){const o=t.target.classList.contains("disabled");r(e,{ariaDisabled:o})})).observe(e.get(0),{attributes:!0,attributeFilter:["class"]})}))})),jQuery((function(t){t(".ux-buy-now-button").each((function(){const e=t(this),o=e.closest("form").find(".single_add_to_cart_button");o.length&&s((function(t){const o=t.target.classList.contains("disabled");e.toggleClass("disabled",o),r(e,{ariaDisabled:o})})).observe(o.get(0),{attributes:!0,attributeFilter:["class"]})}))})),jQuery(document.body).on("click",".variations_form .ux-buy-now-button",(function(t){const e=jQuery(this).siblings(".single_add_to_cart_button");"undefined"!=typeof wc_add_to_cart_variation_params&&e.hasClass("disabled")&&(t.preventDefault(),e.hasClass("wc-variation-is-unavailable")?alert(wc_add_to_cart_variation_params.i18n_unavailable_text):e.hasClass("wc-variation-selection-needed")&&alert(wc_add_to_cart_variation_params.i18n_make_a_selection_text))})),a(9144),jQuery((function(t){const e={openDrawer:null,openDropdown:null};function o(){!t(".cart-item .nav-dropdown").length||window.matchMedia("(max-width: 849px)").matches&&t(".header-main .cart-item .header-cart-link.off-canvas-toggle").length?function(){let o=0;if(t.fn.magnificPopup){if(o=t.magnificPopup.instance?.isOpen?300:0,o&&"#cart-popup"===t.magnificPopup.instance?.currItem?.src)return;o&&t.magnificPopup.close()}e.openDrawer&&clearTimeout(e.openDrawer),e.openDrawer=setTimeout((()=>{t(".cart-item .off-canvas-toggle").trigger("click")}),o)}():(t(".cart-item.has-dropdown").addClass("current-dropdown cart-active"),e.openDropdown&&clearTimeout(e.openDropdown),e.openDropdown=setTimeout((()=>{t(".cart-active").removeClass("current-dropdown cart-active")}),5e3))}t("span.added-to-cart").length&&o(),function(t){switch(t){case"0":case"false":case!1:return!1;case"1":case"true":case!0:return!0;default:return Boolean(t)}}(window.flatsomeVars.is_mini_cart_reveal)&&t("body").on("added_to_cart",(function(){o(),function(){const e=t("#header"),o=e.hasClass("has-sticky"),i=e.hasClass("sticky-hide-on-scroll--active"),n=t(".cart-item.has-dropdown").length>0;o&&n&&i&&(t(".header-wrapper",e).addClass("stuck"),e.removeClass("sticky-hide-on-scroll--active"))}()})),t(document).on("flatsome-open-mini-cart",o),t(".shop-container").on("click",(()=>t(".cart-item.has-dropdown").removeClass("current-dropdown cart-active")))})),a(5460),a(4696);var c=!1;const l=/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent);function u(){return window.flatsomeVars.scrollPaddingTop}jQuery(document).on("flatsome-product-gallery-tools-init",(()=>{l||(c=jQuery(".has-image-zoom .slide").easyZoom({loadingNotice:"",preventClicks:!1})),jQuery(".zoom-button").off("click.flatsome").on("click.flatsome",(function(t){jQuery(".product-gallery-slider").find(".is-selected a").trigger("click"),t.preventDefault()})),jQuery(".has-lightbox .product-gallery-slider").each((function(){jQuery(this).lazyMagnificPopup({delegate:"a",type:"image",tLoading:'<div class="loading-spin centered dark"></div>',closeMarkup:flatsomeVars.lightbox.close_markup,closeBtnInside:flatsomeVars.lightbox.close_btn_inside,gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1],arrowMarkup:'<button class="mfp-arrow mfp-arrow-%dir%" title="%title%"><i class="icon-angle-%dir%"></i></button>'},image:{tError:'<a href="%url%">The image #%curr%</a> could not be loaded.',verticalFit:!1}})}))})),jQuery((function(t){const e=t(".product-thumbnails .first img").attr("data-src")?t(".product-thumbnails .first img").attr("data-src"):t(".product-thumbnails .first img").attr("src"),o=t("form.variations_form"),i=t(".product-gallery-slider"),n=t(".product-thumbnails");let r=null;const a=t.Deferred(),s=t.Deferred();i.one("flatsome-flickity-ready",(()=>a.resolve())),n.one("flatsome-flickity-ready",(()=>s.resolve())),n.length&&!n.is(":hidden")||s.resolve();const u=function(){c&&c.length&&(r=c.filter(".has-image-zoom .slide.first").data("easyZoom"),r.swap(t(".has-image-zoom .slide.first img").attr("src"),t(".has-image-zoom .slide.first img").attr("data-large_image")))},d=function(){i.data("flickity")&&i.flickity("select",0)},h=function(){i.data("flickity")&&i.imagesLoaded((function(){i.flickity("resize")}))};t.when(a).then((()=>{t(document).trigger("flatsome-product-gallery-tools-init")}));const f=t.when(a,s).then((()=>{l&&h(),o.on("hide_variation",(function(o,i){t(".product-thumbnails .first img, .sticky-add-to-cart-img").attr("src",e),h()})),o.on("click keydown",".reset_variations",(function(o){if("keydown"===o.type){if("Space"!==o.code&&"Enter"!==o.code)return;o.preventDefault()}t(".product-thumbnails .first img, .sticky-add-to-cart-img").attr("src",e),d(),u(),h()}))}));o.on("show_variation",(function(o,i){t.when(f).done((()=>{i.hasOwnProperty("image")&&i.image.thumb_src?(t(".product-gallery-slider-old .slide.first img, .sticky-add-to-cart-img, .product-thumbnails .first img, .product-gallery-slider .slide.first .zoomImg").attr("src",i.image.thumb_src).attr("srcset",""),d(),u(),h()):(t(".product-thumbnails .first img").attr("src",e),h())}))}))})),document.documentElement.style,window.getComputedStyle(document.documentElement)["scroll-behavior"],jQuery((function(t){if(!document.body.classList.contains("single-product"))return;const e=window.location.hash,o=window.location.href;function i(){!function(){const e=t(".reviews_tab"),o=e.length?e:t("#reviews").closest(".accordion-item");o.length&&o.find("a:not(.active):first").trigger("click")}(),setTimeout((()=>{t.scrollTo("#reviews",{offset:-u()-15})}),500)}(e.toLowerCase().indexOf("comment-")>=0||"#comments"===e||"#reviews"===e||"#tab-reviews"===e||o.indexOf("comment-page-")>0||o.indexOf("cpage=")>0)&&i(),t("a.woocommerce-review-link").on("click",(function(t){t.preventDefault(),history.pushState(null,null,"#reviews"),i()}))})),a(5261),jQuery((function(t){const e=t(".sticky-add-to-cart");if(!e.length)return;const o=function(t,e={}){return new IntersectionObserver((function(e){for(let o=0;o<e.length;o++)t(e[o])}),{rootMargin:"0px",threshold:.1,...e})}((o=>{const{top:i}=o.boundingClientRect,n=o.intersectionRatio<=0&&i<=0;e.toggleClass("sticky-add-to-cart--active",n),t("body").toggleClass("has-sticky-product-cart",n)}),{threshold:0});t(".sticky-add-to-cart-select-options-button",e).on("click",(function(e){e.preventDefault();const o=t(".product");if(!o.length)return;const i=o.find("form.variations_form"),n=i.length?i:o;t.scrollTo(n,{offset:-u()-15})}));const i=e.data("product-id")||0;function n(e,o){e.on("change",(function(){o.val(t(this).val())}))}t(`#product-${i} button.single_add_to_cart_button:visible`).first().each(((i,r)=>{const a=t(r).closest("form.cart");n(t(".qty",e),t(".qty",a)),n(t(".qty",a),t(".qty",e)),o.observe(r)}))})),a(4401),jQuery("table.my_account_orders").wrap('<div class="touch-scroll-table"/>'),jQuery(document.body).on("submit","form.cart",(function(t){if(void 0===t.originalEvent)return;const e=jQuery(t.originalEvent.submitter);e.is(".single_add_to_cart_button, .ux-buy-now-button")&&(e.hasClass("disabled")||e.addClass("loading"),jQuery(window).on("pageshow",(()=>{e.hasClass("loading")&&e.removeClass("loading")})))})),jQuery(document.body).on("updated_cart_totals",(function(){jQuery(document).trigger("yith_wcwl_reload_fragments");const t=jQuery(".cart-wrapper");["lazy-load-images","quick-view","wishlist","cart-refresh","equalize-box","a11y"].forEach((e=>Flatsome.attach(e,t)))})),jQuery(document).ajaxComplete((function(){Flatsome.attach("add-qty",jQuery(".quantity").parent());const t=jQuery(".woocommerce-checkout .woocommerce-terms-and-conditions-wrapper");["lightboxes-link","a11y"].forEach((e=>Flatsome.attach(e,t)))})),jQuery(document.body).on("wc_fragments_refreshed wc_fragments_loaded",(function(){Flatsome.attach("add-qty",jQuery(".quantity").parent())})),jQuery(document.body).on("updated_checkout",(function(){const t=jQuery(".woocommerce-checkout .woocommerce-terms-and-conditions-wrapper");["lightboxes-link","a11y"].forEach((e=>Flatsome.attach(e,t)))})),jQuery(".disable-lightbox a").on("click",(function(t){t.preventDefault()})),jQuery((function(t){t.scroll_to_notices=function(e){t.scrollTo(e)}})),jQuery((function(t){t("#login-form-popup").find(".woocommerce-notices-wrapper > ul").length>0&&t('[data-open="#login-form-popup"]').trigger("click")}))}()}();
(()=>{var i={617:(t,e,i)=>{var c=i(311);function h(t){return(h="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 n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,function(t){t=function(t,e){if("object"!=h(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);i=i.call(t,e||"default");if("object"!=h(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string");return"symbol"==h(t)?t:String(t)}(n.key),n)}}i=function(){function o(t,e,i){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");var n=this;n.data=t,n.images=e,n.id=this.get_config("gallery_id"),n.envirabox_config=i,n.log(n.data),n.log(n.images),n.log(n.envirabox_config),n.log(n.id),n.init()}var t,e,i;return t=o,(e=[{key:"init",value:function(){this.lightbox()}},{key:"lightbox",value:function(){var o=this,t=o.get_config("mobile_touchwipe_close")?{vertical:!0,momentum:!0}:{vertical:!1,momentum:!1},e=!o.get_config("thumbnails_hide")||o.get_config("thumbnails_hide"),i=o.is_mobile()?this.get_config("mobile_thumbnails_height"):this.get_config("thumbnails_height"),e=!!o.get_config("thumbnails")&&{autoStart:e,hideOnClose:!0,position:o.get_lightbox_config("thumbs_position"),rowHeight:"side"!==o.get_lightbox_config("thumbs_position")&&i},i=!!o.get_config("slideshow")&&{autoStart:o.get_config("autoplay"),speed:o.get_config("ss_speed")},n=!o.get_config("fullscreen")||!o.get_config("open_fullscreen")||{autoStart:!0},r="zomm-in-out"==o.get_config("lightbox_open_close_effect")?"zoom-in-out":o.get_config("lightbox_open_close_effect"),s="zomm-in-out"==o.get_config("effect")?"zoom":o.get_config("effect"),a=[],l="";if(o.lightbox_options={selector:'[data-envirabox="'+o.id+'"]',loop:o.get_config("loop"),margin:o.get_lightbox_config("margins"),gutter:o.get_lightbox_config("gutter"),keyboard:o.get_config("keyboard"),arrows:o.get_lightbox_config("arrows"),arrow_position:o.get_lightbox_config("arrow_position"),infobar:o.get_lightbox_config("infobar"),toolbar:o.get_lightbox_config("toolbar"),idleTime:!!o.get_lightbox_config("idle_time")&&o.get_lightbox_config("idle_time"),smallBtn:o.get_lightbox_config("show_smallbtn"),protect:!1,image:{preload:!1},animationEffect:r,animationDuration:o.get_lightbox_config("animation_duration")?o.get_lightbox_config("animation_duration"):300,btnTpl:{smallBtn:o.get_lightbox_config("small_btn_template")},zoomOpacity:"auto",transitionEffect:s,transitionDuration:o.get_lightbox_config("transition_duration")?o.get_lightbox_config("transition_duration"):200,baseTpl:o.get_lightbox_config("base_template"),spinnerTpl:'<div class="envirabox-loading"></div>',errorTpl:o.get_lightbox_config("error_template"),fullScreen:!!o.get_config("fullscreen")&&n,touch:t,hash:!1,insideCap:o.get_lightbox_config("inner_caption"),capPosition:o.get_lightbox_config("caption_position"),capTitleShow:!(!o.get_config("lightbox_title_caption")||"none"==o.get_config("lightbox_title_caption")||"0"==o.get_config("lightbox_title_caption")||!1!==["classical_dark","classical_light","infinity_dark","infinity_light"].includes(o.get_config("lightbox_theme")))&&o.get_config("lightbox_title_caption"),media:{youtube:{params:{autoplay:0}}},wheel:0!=this.get_config("mousewheel"),slideShow:i,thumbs:e,lightbox_theme:o.get_config("lightbox_theme"),mobile:{clickContent:function(t,e){return o.get_lightbox_config("click_content")?o.get_lightbox_config("click_content"):"toggleControls"},clickSlide:function(t,e){return o.get_lightbox_config("click_slide")?o.get_lightbox_config("click_slide"):"close"},dblclickContent:!1,dblclickSlide:!1},clickContent:function(t,e){return!("image"!==t.type||"undefined"!==o.get_config("disable_zoom")&&"1"==o.get_config("disable_zoom")||"1"==o.get_config("zoom_hover")&&"undefined"!=typeof envira_zoom&&void 0!==envira_zoom.enviraZoomActive)&&"zoom"},clickSlide:o.get_lightbox_config("click_slide")?o.get_lightbox_config("click_slide"):"close",clickOutside:o.get_lightbox_config("click_outside")?o.get_lightbox_config("click_outside"):"toggleControls",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,videoPlayPause:!!o.get_config("videos_playpause"),videoProgressBar:!!o.get_config("videos_progress"),videoPlaybackTime:!!o.get_config("videos_current"),videoVideoLength:!!o.get_config("videos_duration"),videoVolumeControls:!!o.get_config("videos_volume"),videoControlBar:!!o.get_config("videos_controls"),videoFullscreen:!!o.get_config("videos_fullscreen"),videoDownload:!!o.get_config("videos_download"),videoPlayIcon:!!o.get_config("videos_play_icon_thumbnails"),videoAutoPlay:!!o.get_config("videos_autoplay"),onInit:function(t,e){o.initImage=!0,c(document).trigger("envirabox_api_on_init",[o,t,e])},beforeLoad:function(t,e){c(document).trigger("envirabox_api_before_load",[o,t,e])},afterLoad:function(t,e){c(document).trigger("envirabox_api_after_load",[o,t,e])},beforeShow:function(t,e){"base"==o.data.lightbox_theme&&""==l&&0<c(".envirabox-position-overlay").length&&(l=c(".envirabox-position-overlay")),o.initImage=!1,0===o.get_config("loop")&&0==t.currIndex?c(".envirabox-slide--current a.envirabox-prev").hide():c(".envirabox-slide--current a.envirabox-prev").show(),0===o.get_config("loop")&&t.currIndex==Object.keys(t.group).length-1?c(".envirabox-slide--current a.envirabox-next").hide():c(".envirabox-slide--current a.envirabox-next").show(),c(document).trigger("envirabox_api_before_show",[o,t,e])},afterShow:function(t,e){var i,n;c(".envirabox-thumbs ul").find("li").removeClass("focused"),c(".envirabox-thumbs ul").find("li.envirabox-thumbs-active").focus().addClass("focused"),null!=i&&null!=n||(n=i=!1),1!=i&&(c(".envirabox-position-overlay").each(function(){c(this).prependTo(e.$content)}),i=!0),0===o.get_config("loop")&&0==t.currIndex?c(".envirabox-outer a.envirabox-prev").hide():c(".envirabox-outer a.envirabox-prev").show(),0===o.get_config("loop")&&t.currIndex==Object.keys(t.group).length-1?c(".envirabox-outer a.envirabox-next").hide():c(".envirabox-outer a.envirabox-next").show(),void 0!==o.get_config("keyboard")&&0===o.get_config("keyboard")&&c(window).keypress(function(t){-1<[32,37,38,39,40].indexOf(t.keyCode)&&t.preventDefault()}),c(".envirabox-slide--current .envirabox-title").css("visibility","visible"),0<c(".envirabox-slide--current .envirabox-caption").length&&0<c(".envirabox-slide--current .envirabox-caption").html().length?(c(".envirabox-slide--current .envirabox-caption").css("visibility","visible"),c(".envirabox-slide--current .envirabox-caption-wrap").css("visibility","visible")):(c(".envirabox-slide--current .envirabox-caption").css("visibility","hidden"),c(".envirabox-slide--current .envirabox-caption-wrap").css("visibility","hidden")),c(".envirabox-navigation").show(),c(".envirabox-navigation-inside").show(),void 0!==l&&""!=l&&0<c(".envirabox-slide--current .envirabox-image-wrap").length?c(".envirabox-image-wrap").prepend(l):void 0!==l&&""!=l&&0<c(".envirabox-slide--current .envirabox-content").length&&c(".envirabox-content").prepend(l),c(document).trigger("envirabox_api_after_show",[o,t,e]),void 0===t.opts.capTitleShow||"caption"!=t.opts.capTitleShow&&"title_caption"!=t.opts.capTitleShow||""!=e.caption?c(".envirabox-caption-wrap .envirabox-caption").css("visibility","visible"):c(".envirabox-caption-wrap .envirabox-caption").css("visibility","hidden")},beforeClose:function(t,e){c(document).trigger("envirabox_api_before_close",[o,t,e])},afterClose:function(t,e){c(document).trigger("envirabox_api_after_close",[o,t,e])},onActivate:function(t,e){c(document).trigger("envirabox_api_on_activate",[o,t,e])},onDeactivate:function(t,e){c(document).trigger("envirabox_api_on_deactivate",[o,t,e])}},o.is_mobile()&&1!==o.get_config("mobile_thumbnails")&&(o.lightbox_options.thumbs=!1),o.get_lightbox_config("load_all")){r=o.images;if("object"!==h(r))return;c.each(r,function(t){void 0!==this.video&&void 0!==this.video.embed_url&&(this.src=this.video.embed_url),a.push(this)})}else{s=c(".envira-gallery-"+o.id);c.each(s,function(t){a.push(this)})}c(document).trigger("envirabox_options",o),c("#envira-links-"+o.id).on("click",function(t){t.preventDefault(),t.stopImmediatePropagation();var t=c(this),e=t.data("gallery-images"),t=t.data("gallery-sort-ids"),i=(void 0!==t&&o.data.gallery_sort,void 0!==t&&"gallery"==o.data.gallery_sort?t:e),e=c.envirabox.getInstance();void 0!==t&&""!=t&&(a=[],c.each(t,function(t,e){a.push(i[e])})),e||c.envirabox.open(a,o.lightbox_options)})}},{key:"get_config",value:function(t){return this.data[t]}},{key:"get_lightbox_config",value:function(t){return this.envirabox_config[t]}},{key:"get_image",value:function(t){return this.images[t]}},{key:"is_mobile",value:function(){return!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}},{key:"log",value:function(t){null!=envira_gallery.debug&&envira_gallery.debug&&null!=t&&console.log(t)}}])&&n(t.prototype,e),i&&n(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}();t.exports=i},556:(t,e,i)=>{var r,n,o,i=i(311);n=(r=i).fn.justifiedGallery,o={},r.fn.enviraJustifiedGallery=function(){var t=n.apply(this,arguments);if(void 0!==(o=t.data("jg.controller")))return o.displayEntryCaption=function(t){var e,i,n,o=this.imgFromEntry(t);null!==o&&this.settings.captions?(null===(e=this.captionFromEntry(t))&&(i="",void 0!==(n=o.data("automatic-caption"))&&"string"==typeof n&&(n=n.replace("<","&lt;"),i=r("<textarea />").html(n).text()),void 0!==i&&this.isValidCaption(i)&&(e=r('<div class="caption">'+i+"</div>"),o.after(e),t.data("jg.createdCaption",!0))),null!==e&&(this.settings.cssAnimation||e.stop().fadeTo(0,this.settings.captionSettings.nonVisibleOpacity),n=e.css("height"),t.find(".envira-gallery-position-overlay.envira-gallery-bottom-left").css("bottom",n),t.find(".envira-gallery-position-overlay.envira-gallery-bottom-right").css("bottom",n),this.addCaptionEventsHandlers(t))):this.removeCaptionEventsHandlers(t)},o}},496:(t,e,i)=>{var v=i(311),m=i(311),i=function(){function s(t){if(null===o&&(o=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,r=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,null===o))return!1;var e=(t=t.getBoundingClientRect()).top,i=t.left,n=t.width,t=t.height;return e=e<r&&0<e+t&&i<o&&0<i+n}function a(a,e){if(null!==(t=e.getAttribute("data-envira-srcset")))if(0<(t=t.trim()).length){for(var t,i=[],n=(t=t.split(",")).length,o=0;o<n;o++){var r,s,l=t[o].trim();0!==l.length&&(l=-1===(s=l.lastIndexOf(" "))?(r=l,999998):(r=l.substr(0,s),parseInt(l.substr(s+1,l.length-s-2),10)),s=!1,(s=-1===r.indexOf(".webp",r.length-5)||f?!0:s)&&i.push([r,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 c,h,d,u=a.offsetWidth*window.devicePixelRatio,p=null,n=t.length,o=0;o<n;o++){var g=t[o];if(g[1]>=u){p=g;break}}null===p&&(p=[e.getAttribute("data-envira-src"),999999]),void 0===a.lastSetOption&&(a.lastSetOption=["",0]),a.lastSetOption[1]<p[1]&&(c=0===a.lastSetOption[1],h=p[0],(d=new Image).addEventListener("load",function(){var t;e.setAttribute("srcset",h),e.setAttribute("src",h),c&&null!==(t=a.getAttribute("data-onlazyload"))&&new Function(t).bind(a)()},!1),d.addEventListener("error",function(){a.lastSetOption=["",0]},!1),d.onload=function(){var t,e,i,n,o,r,s;s=(r=(o=(n="envira-lazy"==a.getAttribute("class")&&m(a).not("img")?(n=a.firstElementChild,t=a,e=n.id,i=n.src,v(n).data("envira-gallery-id")):(n=d,e=(t=a).id,i=a.src,v(a).data("envira-gallery-id")),v(a).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:o,gallery_id:n,naturalWidth:r,naturalHeight:s})},d.onerror=function(){console.error("Cannot load image")},d.src=h,a.lastSetOption=p)}function l(){o=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,r=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}function c(t){var e;void 0!==t&&(e=function(t,e){for(var i=t.length,n=0;n<i;n++){var o=t[n],r=e?o:o.parentNode;!0===s(r)&&a(r,o)}},t&&"string"==typeof t&&(void 0!==envira_gallery.ll_initial&&void 0!==envira_gallery.ll_delay&&!1!==envira_gallery.ll_initial||(envira_gallery.ll_delay=0),setTimeout(function(){v(t+" div.envira-lazy > img").exists()?e(document.querySelectorAll(t+" div.envira-lazy > img"),!1):v(t+" img.envira-lazy").exists()&&e(document.querySelectorAll(t+" img.envira-lazy"),!0),envira_gallery.ll_initial},envira_gallery.ll_delay)))}var f,h,o=null,r=null,d="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(),(h=new Image).src="data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoCAAEADMDOJaQAA3AA/uuuAAA=",h.onload=h.onerror=function(){function t(){var t;d&&(t=null),window.addEventListener("resize",function(){l(),d?(window.clearTimeout(t),t=window.setTimeout(function(){c()},300)):r()}),d?(window.addEventListener("load",c),e()):(window.addEventListener("scroll",r),window.addEventListener("load",r),s()),"undefined"!=typeof MutationObserver&&new MutationObserver(function(){d?(e(),c()):(s(),r())}).observe(document.querySelector("body"),{childList:!0,subtree:!0})}var e,o,i,n,r,s;f=2===h.width,d?(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,o.observe(n))}},o=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"))&&a(e,i):a(e,e))}}),c()):(i=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)},n=function t(){i.call(null,t)},r=function(){n()},s=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",r)),n=n.parentNode});"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t):t()}),{run:c,isVisible:s,setGalleryClass:function(t){alert("setting - "+t)}}}();window.enviraLazy=i,t.exports=i},390:()=>{!function(r,e){"use strict";var o,i=function(){for(var t,e,i=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n={},o=0;o<i.length;o++)if((t=i[o])&&t[1]in r){for(e=0;e<t.length;e++)n[i[0][e]]=t[e];return n}return!1}();i?(o={request:function(t){(t=t||r.documentElement)[i.requestFullscreen](t.ALLOW_KEYBOARD_INPUT)},exit:function(){r[i.exitFullscreen](),e.envirabox.close(!0)},toggle:function(t){t=t||r.documentElement,this.isFullscreen()?this.exit():this.request(t)},isFullscreen:function(){return Boolean(r[i.fullscreenElement])},enabled:function(){return Boolean(r[i.fullscreenEnabled])}},e(r).on({"onInit.eb":function(t,e){var i,n=e.$refs.toolbar.find("[data-envirabox-fullscreen]");e&&!e.FullScreen&&e.group[e.currIndex].opts.fullScreen?((i=e.$refs.container).on("click.eb-fullscreen","[data-envirabox-fullscreen]",function(t){t.stopPropagation(),t.preventDefault(),o.toggle(i[0])}),e.opts.fullScreen&&!0===e.opts.fullScreen.autoStart&&o.request(i[0]),e.FullScreen=o):n.hide()},"afterKeydown.eb":function(t,e,i,n,o){e&&e.FullScreen&&70===o&&(n.preventDefault(),e.FullScreen.toggle(e.$refs.container[0]))},"beforeClose.eb":function(t){t&&t.FullScreen&&o.exit()}}),e(r).on(i.fullscreenchange,function(){var t=e.envirabox.getInstance();t.current&&"image"===t.current.type&&t.isAnimating&&(t.current.$content.css("transition","none"),t.isAnimating=!1,t.update(!0,!0,0)),e(r).trigger("onFullscreenChange",o.isFullscreen())})):e&&e.envirabox&&(e.envirabox.defaults.btnTpl.fullScreen=!1)}(document,window.jQuery)},850:(t,e,i)=>{i=i(311);!function(h,a,d){"use strict";function u(t){var e,i=[];for(e in t=(t=t.originalEvent||t||h.e).touches&&t.touches.length?t.touches:t.changedTouches&&t.changedTouches.length?t.changedTouches:[t])t[e].pageX?i.push({x:t[e].pageX,y:t[e].pageY}):t[e].clientX&&i.push({x:t[e].clientX,y:t[e].clientY});return i}function p(t,e,i){return e&&t?"x"===i?t.x-e.x:"y"===i?t.y-e.y:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0}function l(t){if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea')||d.isFunction(t.get(0).onclick)||t.data("selectable"))return 1;for(var e=0,i=t[0].attributes,n=i.length;e<n;e++)if("data-envirabox-"===i[e].nodeName.substr(0,14))return 1}function c(t){for(var e,i,n,o=!1;(e=t.get(0),n=i=n=i=void 0,i=h.getComputedStyle(e)["overflow-y"],n=h.getComputedStyle(e)["overflow-x"],i=("scroll"===i||"auto"===i)&&e.scrollHeight>e.clientHeight,n=("scroll"===n||"auto"===n)&&e.scrollWidth>e.clientWidth,!(o=i||n))&&((t=t.parent()).length&&!t.hasClass("envirabox-stage")&&!t.is("body")););return o}function i(t){var e=this;e.instance=t,e.$bg=t.$refs.bg,e.$stage=t.$refs.stage,e.$container=t.$refs.container,e.destroy(),e.$container.on("touchstart.eb.touch mousedown.eb.touch",d.proxy(e,"ontouchstart"))}var g=h.requestAnimationFrame||h.webkitRequestAnimationFrame||h.mozRequestAnimationFrame||h.oRequestAnimationFrame||function(t){return h.setTimeout(t,1e3/60)},f=h.cancelAnimationFrame||h.webkitCancelAnimationFrame||h.mozCancelAnimationFrame||h.oCancelAnimationFrame||function(t){h.clearTimeout(t)};i.prototype.destroy=function(){this.$container.off(".eb.touch")},i.prototype.ontouchstart=function(t){var e=this,i=d(t.target),n=e.instance,o=n.current,r=o.$content,s="touchstart"==t.type;if(s&&e.$container.off("mousedown.eb.touch"),!o||e.instance.isAnimating||e.instance.isClosing)return t.stopPropagation(),void t.preventDefault();t.originalEvent&&2==t.originalEvent.button||!i.length||l(i)||l(i.parent())||t.originalEvent.clientX>i[0].clientWidth+i.offset().left||(e.startPoints=u(t),!e.startPoints||1<e.startPoints.length&&n.isSliding||(e.$target=i,e.$content=r,e.canTap=!0,e.opts=o.opts.touch,d(a).off(".eb.touch"),d(a).on(s?"touchend.eb.touch touchcancel.eb.touch":"mouseup.eb.touch mouseleave.eb.touch",d.proxy(e,"ontouchend")),d(a).on(s?"touchmove.eb.touch":"mousemove.eb.touch",d.proxy(e,"ontouchmove")),!e.opts&&!n.canPan()||!i.is(e.$stage)&&!e.$stage.find(i).length?i.is("img")&&t.preventDefault():(t.stopPropagation(),d.envirabox.isMobile&&(c(e.$target)||c(e.$target.parent()))||t.preventDefault(),e.canvasWidth=Math.round(o.$slide[0].clientWidth),e.canvasHeight=Math.round(o.$slide[0].clientHeight),e.startTime=(new Date).getTime(),e.distanceX=e.distanceY=e.distance=0,e.isPanning=!1,e.isSwiping=!1,e.isZooming=!1,e.sliderStartPos=e.sliderLastPos||{top:0,left:0},e.contentStartPos=d.envirabox.getTranslate(e.$content),e.contentLastPos=null,1!==e.startPoints.length||e.isZooming||(e.canTap=!n.isSliding,"image"===o.type&&(e.contentStartPos.width>e.canvasWidth+1||e.contentStartPos.height>e.canvasHeight+1)?(d.envirabox.stop(e.$content),e.$content.css("transition-duration","0ms"),e.isPanning=!0):e.isSwiping=!0,e.$container.addClass("envirabox-controls--isGrabbing")),2!==e.startPoints.length||n.isAnimating||o.hasError||"image"!==o.type||!o.isLoaded&&!o.$ghost||(e.isZooming=!0,e.isSwiping=!1,e.isPanning=!1,d.envirabox.stop(e.$content),e.$content.css("transition-duration","0ms"),e.centerPointStartX=.5*(e.startPoints[0].x+e.startPoints[1].x)-d(h).scrollLeft(),e.centerPointStartY=.5*(e.startPoints[0].y+e.startPoints[1].y)-d(h).scrollTop(),e.percentageOfImageAtPinchPointX=(e.centerPointStartX-e.contentStartPos.left)/e.contentStartPos.width,e.percentageOfImageAtPinchPointY=(e.centerPointStartY-e.contentStartPos.top)/e.contentStartPos.height,e.startDistanceBetweenFingers=p(e.startPoints[0],e.startPoints[1])))))},i.prototype.ontouchmove=function(t){var e=this;if(e.newPoints=u(t),d.envirabox.isMobile&&(c(e.$target)||c(e.$target.parent())))return t.stopPropagation(),void(e.canTap=!1);(e.opts||e.instance.canPan())&&e.newPoints&&e.newPoints.length&&(e.distanceX=p(e.newPoints[0],e.startPoints[0],"x"),e.distanceY=p(e.newPoints[0],e.startPoints[0],"y"),e.distance=p(e.newPoints[0],e.startPoints[0]),0<e.distance&&(e.$target.is(e.$stage)||e.$stage.find(e.$target).length)&&(t.stopPropagation(),t.preventDefault(),e.isSwiping?e.onSwipe():e.isPanning?e.onPan():e.isZooming&&e.onZoom()))},i.prototype.onSwipe=function(){var t,n=this,e=n.isSwiping,i=n.sliderStartPos.left||0;!0===e?10<Math.abs(n.distance)&&(n.canTap=!1,n.instance.group.length<2&&n.opts.vertical?n.isSwiping="y":n.instance.isSliding||!1===n.opts.vertical||"auto"===n.opts.vertical&&800<d(h).width()?n.isSwiping="x":(t=Math.abs(180*Math.atan2(n.distanceY,n.distanceX)/Math.PI),n.isSwiping=45<t&&t<135?"y":"x"),n.instance.isSliding=n.isSwiping,n.startPoints=n.newPoints,d.each(n.instance.slides,function(t,e){d.envirabox.stop(e.$slide),e.$slide.css("transition-duration","0ms"),e.inTransition=!1,e.pos===n.instance.current.pos&&(n.sliderStartPos.left=d.envirabox.getTranslate(e.$slide).left)}),n.instance.SlideShow&&n.instance.SlideShow.isActive&&n.instance.SlideShow.stop()):("x"==e&&(0<n.distanceX&&(n.instance.group.length<2||0===n.instance.current.index&&!n.instance.current.opts.loop)?i+=Math.pow(n.distanceX,.8):n.distanceX<0&&(n.instance.group.length<2||n.instance.current.index===n.instance.group.length-1&&!n.instance.current.opts.loop)?i-=Math.pow(-n.distanceX,.8):i+=n.distanceX),n.sliderLastPos={top:"x"==e?0:n.sliderStartPos.top+n.distanceY,left:i},n.requestId&&(f(n.requestId),n.requestId=null),n.requestId=g(function(){n.sliderLastPos&&(d.each(n.instance.slides,function(t,e){var i=e.pos-n.instance.currPos;d.envirabox.setTranslate(e.$slide,{top:n.sliderLastPos.top,left:n.sliderLastPos.left+i*n.canvasWidth+i*e.opts.gutter})}),n.$container.addClass("envirabox-is-sliding"))}))},i.prototype.onPan=function(){var t,e,i=this;i.canTap=!1,e=i.contentStartPos.width>i.canvasWidth?i.contentStartPos.left+i.distanceX:i.contentStartPos.left,t=i.contentStartPos.top+i.distanceY,(e=i.limitMovement(e,t,i.contentStartPos.width,i.contentStartPos.height)).scaleX=i.contentStartPos.scaleX,e.scaleY=i.contentStartPos.scaleY,i.contentLastPos=e,i.requestId&&(f(i.requestId),i.requestId=null),i.requestId=g(function(){d.envirabox.setTranslate(i.$content,i.contentLastPos)})},i.prototype.limitMovement=function(t,e,i,n){var o=this,r=o.canvasWidth,s=o.canvasHeight,a=o.contentStartPos.left,l=o.contentStartPos.top,c=o.distanceX,o=o.distanceY,h=Math.max(0,.5*r-.5*i),d=Math.max(0,.5*s-.5*n),u=Math.min(r-i,.5*r-.5*i),p=Math.min(s-n,.5*s-.5*n);return r<i&&(0<c&&h<t&&(t=h-1+Math.pow(-h+a+c,.8)||0),c<0&&t<u&&(t=u+1-Math.pow(u-a-c,.8)||0)),s<n&&(0<o&&d<e&&(e=d-1+Math.pow(-d+l+o,.8)||0),o<0&&e<p&&(e=p+1-Math.pow(p-l-o,.8)||0)),{top:e,left:t}},i.prototype.limitPosition=function(t,e,i,n){var o=this.canvasWidth,r=this.canvasHeight;return t=o<i?(t=0<t?0:t)<o-i?o-i:t:Math.max(0,o/2-i/2),{top:e=r<n?(e=0<e?0:e)<r-n?r-n:e:Math.max(0,r/2-n/2),left:t}},i.prototype.onZoom=function(){var t=this,e=t.contentStartPos.width,i=t.contentStartPos.height,n=t.contentStartPos.left,o=t.contentStartPos.top,r=p(t.newPoints[0],t.newPoints[1])/t.startDistanceBetweenFingers,s=Math.floor(e*r),a=Math.floor(i*r),e=(e-s)*t.percentageOfImageAtPinchPointX,i=(i-a)*t.percentageOfImageAtPinchPointY,l=(t.newPoints[0].x+t.newPoints[1].x)/2-d(h).scrollLeft(),c=(t.newPoints[0].y+t.newPoints[1].y)/2-d(h).scrollTop(),l=l-t.centerPointStartX,o={top:o+(i+(c-t.centerPointStartY)),left:n+(e+l),scaleX:t.contentStartPos.scaleX*r,scaleY:t.contentStartPos.scaleY*r};t.canTap=!1,t.newWidth=s,t.newHeight=a,t.contentLastPos=o,t.requestId&&(f(t.requestId),t.requestId=null),t.requestId=g(function(){d.envirabox.setTranslate(t.$content,t.contentLastPos)})},i.prototype.ontouchend=function(t){var e=this,i=Math.max((new Date).getTime()-e.startTime,1),n=e.isSwiping,o=e.isPanning,r=e.isZooming;if(e.endPoints=u(t),e.$container.removeClass("envirabox-controls--isGrabbing"),d(a).off(".eb.touch"),e.requestId&&(f(e.requestId),e.requestId=null),e.isSwiping=!1,e.isPanning=!1,e.isZooming=!1,e.canTap)return e.onTap(t);e.speed=366,e.velocityX=e.distanceX/i*.5,e.velocityY=e.distanceY/i*.5,e.speedX=Math.max(.5*e.speed,Math.min(1.5*e.speed,1/Math.abs(e.velocityX)*e.speed)),o?e.endPanning():r?e.endZooming():e.endSwiping(n)},i.prototype.endSwiping=function(t){var e=this,i=!1;e.instance.isSliding=!1,e.sliderLastPos=null,"y"==t&&50<Math.abs(e.distanceY)?(d.envirabox.animate(e.instance.current.$slide,{top:e.sliderStartPos.top+e.distanceY+150*e.velocityY,opacity:0},150),i=e.instance.close(!0,300)):"x"==t&&50<e.distanceX&&1<e.instance.group.length?i=e.instance.previous(e.speedX):"x"==t&&e.distanceX<-50&&1<e.instance.group.length&&(i=e.instance.next(e.speedX)),!1!==i||"x"!=t&&"y"!=t||e.instance.jumpTo(e.instance.current.index,150),e.$container.removeClass("envirabox-is-sliding")},i.prototype.endPanning=function(){var t,e,i=this;i.contentLastPos&&(t=!1===i.opts.momentum?(e=i.contentLastPos.left,i.contentLastPos.top):(e=i.contentLastPos.left+i.velocityX*i.speed,i.contentLastPos.top+i.velocityY*i.speed),(e=i.limitPosition(e,t,i.contentStartPos.width,i.contentStartPos.height)).width=i.contentStartPos.width,e.height=i.contentStartPos.height,d.envirabox.animate(i.$content,e,330))},i.prototype.endZooming=function(){var t,e,i=this,n=i.instance.current,o=i.newWidth,r=i.newHeight;i.contentLastPos&&(t=i.contentLastPos.left,e=i.contentLastPos.top,d.envirabox.setTranslate(i.$content,{top:e,left:t,width:o,height:r,scaleX:1,scaleY:1}),o<i.canvasWidth&&r<i.canvasHeight?i.instance.scaleToFit(150):o>n.width||r>n.height?i.instance.scaleToActual(i.centerPointStartX,i.centerPointStartY,150):(n=i.limitPosition(t,e,o,r),d.envirabox.setTranslate(i.content,d.envirabox.getTranslate(i.$content)),d.envirabox.animate(i.$content,n,150)))},i.prototype.onTap=function(e){function t(t){if(t=s.opts[t],t=d.isFunction(t)?t.apply(r,[s,e]):t)switch(t){case"close":r.close(n.startEvent);break;case"toggleControls":r.toggleControls(!0);break;case"next":r.next();break;case"nextOrClose":1<r.group.length?r.next():r.close(n.startEvent);break;case"zoom":"image"==s.type&&(s.isLoaded||s.$ghost)&&(r.canPan()?r.scaleToFit():r.isScaledDown()?r.scaleToActual(l,c):r.group.length<2&&r.close(n.startEvent))}}var i,n=this,o=d(e.target),r=n.instance,s=r.current,a=e&&u(e)||n.startPoints,l=a[0]?a[0].x-n.$stage.offset().left:0,c=a[0]?a[0].y-n.$stage.offset().top:0;if(!(e.originalEvent&&2==e.originalEvent.button||r.isSliding||l>o[0].clientWidth+o.offset().left)){if(o.is(".envirabox-bg,.envirabox-inner,.envirabox-outer,.envirabox-container"))i="Outside";else if(o.is(".envirabox-slide"))i="Slide";else{if(!r.current.$content||!r.current.$content.has(e.target).length)return;i="Content"}if(n.tapped){if(clearTimeout(n.tapped),n.tapped=null,50<Math.abs(l-n.tapX)||50<Math.abs(c-n.tapY)||r.isSliding)return this;t("dblclick"+i)}else n.tapX=l,n.tapY=c,s.opts["dblclick"+i]&&s.opts["dblclick"+i]!==s.opts["click"+i]?n.tapped=setTimeout(function(){n.tapped=null,t("click"+i)},300):t("click"+i);return this}},d(a).on("onActivate.eb",function(t,e){e&&!e.Guestures&&(e.Guestures=new i(e))}),d(a).on("beforeClose.eb",function(t,e){e&&e.Guestures&&e.Guestures.destroy()})}(window,document,window.jQuery||i)},827:()=>{!function(f){"use strict";function v(i,t,e){if(i)return"object"===f.type(e=e||"")&&(e=f.param(e,!0)),f.each(t,function(t,e){i=i.replace("$"+t,e||"")}),e.length&&(i+=(0<i.indexOf("?")?"&":"?")+e),i}var i={youtube_playlist:{matcher:/^http:\/\/(?:www\.)?youtube\.com\/watch\?((v=[^&\s]*&list=[^&\s]*)|(list=[^&\s]*&v=[^&\s]*))(&[^&\s]*)*$/,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"//www.youtube.com/embed/videoseries?list=$4",thumb:"//img.youtube.com/vi/$4/hqdefault.jpg"},youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"//www.youtube.com/embed/$4",thumb:"//img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1,api:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},metacafe:{matcher:/metacafe.com\/watch\/(\d+)\/(.*)?/,type:"iframe",url:"//www.metacafe.com/embed/$1/?ap=1"},dailymotion:{matcher:/dailymotion.com\/video\/(.*)\/?(.*)/,params:{additionalInfos:0,autoStart:1},type:"iframe",url:"//www.dailymotion.com/embed/video/$1"},facebook:{matcher:/facebook.com\/facebook\/videos\/(.*)\/?(.*)/,type:"genericDiv",subtype:"facebook",url:"//www.facebook.com/facebook/videos/$1"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},instagram_tv:{matcher:/(instagr\.am|instagram\.com)\/tv\/([a-zA-Z0-9_\-]+)\/?/i,type:"iframe",url:"//$1/p/$2/media/?size=l"},wistia:{matcher:/wistia.com\/medias\/(.*)\/?(.*)/,type:"iframe",url:"//fast.wistia.net/embed/iframe/$1"},twitch:{matcher:/player.twitch.tv\/[\\?&]video=([^&#]*)/,type:"iframe",url:"//player.twitch.tv/?video=$1"},videopress:{matcher:/videopress.com\/v\/(.*)\/?(.*)/,type:"iframe",url:"//videopress.com/embed/$1"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+Math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12])+"&output="+(t[12]&&0<t[12].indexOf("layer=c")?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/maps?q="+t[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}};f(document).on("onInit.eb",function(t,e){f.each(e.group,function(t,o){var e,r,s,a,l,c,h=o.src||"",d=!1,u=!1,p=!1,g=!1;o.type||(e=f.extend(!0,{},i,o.opts.media),f.each(e,function(t,e){if(s=h.match(e.matcher),c={},s){if(g=t,d=e.type,void 0!==e.subtype&&(u=e.subtype),e.paramPlace&&s[e.paramPlace]){l=(l="?"==(l=s[e.paramPlace])[0]?l.substring(1):l).split("&");for(var i=0;i<l.length;++i){var n=l[i].split("=",2);2==n.length&&(c[n[0]]=decodeURIComponent(n[1].replace(/\+/g," ")))}}return a=f.extend(!0,{},e.params,o.opts[t],c),p="function"===f.type(e.url)?e.url.call(this,s,a,o):v(e.url,s,a),r="function"===f.type(e.thumb)?e.thumb.call(this,s,a,o):v(e.thumb,s),"vimeo"===g&&(p=p.replace("&%23","#")),!1}}),d?(o.src=p,o.type=d,o.subtype=u,o.opts.thumb||o.opts.$thumb&&o.opts.$thumb.length||(o.opts.thumb=r),"iframe"===d&&(f.extend(!0,o.opts,{iframe:{preload:!1,provider:g,attr:{scrolling:"no"}}}),o.contentProvider=g,o.opts.slideClass+=" envirabox-slide--"+("gmap_place"==g||"gmap_search"==g?"map":"video"))):o.type="image")})})}(window.jQuery)},75:()=>{!function(r,s){"use strict";function i(t){this.instance=t,this.init()}s.extend(i.prototype,{timer:null,isActive:!1,$button:null,speed:3e3,init:function(){var e=this;e.$button=s("[data-envirabox-play]").on("click",function(t){t.preventDefault(),e.toggle()}),(e.instance.group.length<2||!e.instance.group[e.instance.currIndex].opts.slideShow)&&e.$button.hide()},set:function(){var t=this;t.instance&&t.instance.current&&(t.instance.current.opts.loop||t.instance.currIndex<t.instance.group.length-1)?t.timer=setTimeout(function(){1==t.isActive&&t.instance.next()},t.instance.current.opts.slideShow.speed||t.speed):(t.stop(),t.instance.idleSecondsCounter=0,t.instance.showControls())},clear:function(){clearTimeout(this.timer),this.timer=null},start:function(){var t=this,e=t.instance.current;t.instance&&e&&(e.opts.loop||e.index<t.instance.group.length-1)&&(t.isActive=!0,t.$button.attr("title",e.opts.i18n[e.opts.lang].PLAY_STOP).addClass("envirabox-button--pause"),t.$button.parent().addClass("envirabox-button--pause"),e.isComplete&&t.set())},stop:function(){var t=this,e=t.instance.current;t.clear(),t.$button.attr("title",e.opts.i18n[e.opts.lang].PLAY_START).removeClass("envirabox-button--pause"),t.$button.parent().removeClass("envirabox-button--pause"),t.isActive=!1},toggle:function(){this.isActive?this.stop():this.start()}}),s(r).on({"onInit.eb":function(t,e){e&&!e.SlideShow&&(e.SlideShow=new i(e))},"beforeShow.eb":function(t,e,i,n){e=e&&e.SlideShow;n?e&&i.opts.slideShow.autoStart&&e.start():e&&e.isActive&&e.clear()},"afterShow.eb":function(t,e,i){e=e&&e.SlideShow;e&&e.isActive&&e.set()},"afterKeydown.eb":function(t,e,i,n,o){e=e&&e.SlideShow;!e||!i.opts.slideShow||80!==o&&32!==o||s(r.activeElement).is("button,a,input")||(n.preventDefault(),e.toggle())},"beforeClose.eb onDeactivate.eb":function(t,e){e=e&&e.SlideShow;e&&e.stop()}}),s(r).on("visibilitychange",function(){var t=s.envirabox.getInstance(),t=t&&t.SlideShow;t&&t.isActive&&(r.hidden?t.clear():t.set())})}(document,window.jQuery)},655:()=>{!function(t,s){"use strict";function i(t){this.instance=t,this.init()}s.extend(i.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,objects:null,init:function(){var e=this,i=!1,t=e.instance.group[0],n=e.instance.group[1];e.$button=e.instance.$refs.toolbar.find("[data-envirabox-thumbs]"),1<e.instance.group.length&&e.instance.group[e.instance.currIndex].opts.thumbs&&("image"==t.type||t.opts.thumb||t.opts.$thumb)&&("image"==n.type||n.opts.thumb||n.opts.$thumb)?(e.$button.on("touchstart click",function(t){t.stopImmediatePropagation(),"touchend"==t.type?(i=!0,e.toggle()):"click"!=t.type||i?i=!1:e.toggle()}),e.isActive=!0):(e.$button.hide(),e.isActive=!1)},create:function(){var n,o,t=this.instance,e=t.opts.thumbs,i=(this.$grid=s('<div class="envirabox-thumbs envirabox-thumbs-'+e.position+'"></div>').appendTo(t.$refs.container),"classical_dark"===t.opts.lightbox_theme||"classical_light"===t.opts.lightbox_theme?52:50),i="auto"===e.rowHeight?i:e.rowHeight,r=!1===i?"<ul>":'<ul style="height:'+i+'px">';s.each(t.group,function(t,e){var i;n=e.opts.thumb||(e.opts.$thumb?e.opts.$thumb.attr("src"):null),o=e.opts.videoPlayIcon||!1,(n=n||"image"!==e.type?n:e.src)&&n.length&&(i=void 0!==e.contentProvider?e.contentProvider:"none",r+='<li data-index="'+t+'"  tabindex="0" class="envirabox-thumbs-loading envirabox-thumb-content-provider-'+i+" envirabox-thumb-type-"+e.type+'"><img class="envirabox-thumb-image-'+e.type+" envirabox-thumb-content-provider-"+i+'" data-src="'+n+'" />',!o||"video"!=e.type&&"genericDiv"!=e.type&&"youtube"!=i&&"vimeo"!=i&&"instagram"!=i&&"twitch"!=i&&"dailymotion"!=i&&"metacafe"!=i&&"wistia"!=i&&"videopress"!=i||(r+='<div class="envira-video-play-icon">Play</div>'),r+="</li>")}),r+="</ul>",this.$list=s(r).appendTo(this.$grid).on("click touchstart","li",function(){t.jumpTo(s(this).data("index"))}),this.$list.find("img").one("load",function(){s(this).parent().removeClass("envirabox-thumbs-loading");var t=s(this).outerWidth(),e=s(this).outerHeight(),i=this.naturalWidth||this.width,n=this.naturalHeight||this.height,o=i/t,r=n/e;1<=o&&1<=r&&(r<o?(i/=r,n=e):(i=t,n/=o)),s(this).css({width:"auto",height:Math.floor(n),"margin-top":Math.min(0,Math.floor(.3*e-.3*n)),"margin-left":Math.min(0,Math.floor(.5*t-.5*i))}).show()}).each(function(){this.src=s(this).data("src")})},focus:function(){this.instance.current&&this.$list.children().removeClass("envirabox-thumbs-active").filter('[data-index="'+this.instance.current.index+'"]').addClass("envirabox-thumbs-active").focus()},close:function(){this.$grid.hide()},update:function(){this.instance.$refs.container.toggleClass("envirabox-show-thumbs",this.isVisible),this.isVisible?(this.$grid||this.create(),this.instance.trigger("onThumbsShow"),this.focus()):this.$grid&&this.instance.trigger("onThumbsHide"),this.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),s(t).on({"onInit.eb":function(t,e){e&&!e.Thumbs&&(e.Thumbs=new i(e))},"beforeShow.eb":function(t,e,i,n){e=e&&e.Thumbs;if(e&&e.isActive){if(i.modal)return e.$button.hide(),void e.hide();n&&!0===i.opts.thumbs.autoStart&&e.show(),e.isVisible&&e.focus()}},"afterKeydown.eb":function(t,e,i,n,o){e=e&&e.Thumbs;e&&e.isActive&&71===o&&(n.preventDefault(),e.toggle())},"beforeClose.eb":function(t,e){var i=e&&e.Thumbs;i&&i.isVisible&&!1!==e.opts.thumbs.hideOnClose&&i.close()}})}(document,window.jQuery)},746:(t,e,i)=>{i=i(311);!function(t,e){"use strict";var o=(new Date).getTime();e(t).on({"onInit.eb":function(t,n,e){n.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(t){var e=n.current,i=(new Date).getTime();n.group.length<1||!1===e.opts.wheel||"auto"===e.opts.wheel&&"image"!==e.type||(t.preventDefault(),t.stopPropagation(),e.$slide.hasClass("envirabox-animated")||(t=t.originalEvent||t,i-o<250||(o=i,n[(-t.deltaY||-t.deltaX||t.wheelDelta||-t.detail)<0?"next":"previous"]())))})}})}(document,window.jQuery||i)},962:(t,e,i)=>{i=i(311);function m(t){return(m="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(g,o,f,v){"use strict";var r,s,a,l,c,h,d,u,t;function p(t){return t=t.replace("&£","&#"),t=(t=f("<textarea/>").html(t).text()).replace("&£","&#")}function i(t){var e=t.currentTarget,i=t.data?t.data.options:{},n=i.selector?f(i.selector):t.data?t.data.items:[],o=f(e).attr("data-envirabox")||"",r=0,s=f.envirabox.getInstance();t.preventDefault(),s&&s.current.opts.$orig.is(e)||(o?(r=(n=n.length?n.filter('[data-envirabox="'+o+'"]'):f('[data-envirabox="'+o+'"]')).index(e))<0&&(r=0):n=[e],f.envirabox.open(n,i,r))}g.console=g.console||{info:function(t){}},f&&(f.fn.envirabox?console.info("EnviraBox already initialized"):(r={loop:!1,margin:[44,0],gutter:50,keyboard:!0,arrows:!0,infobar:!1,toolbar:!0,buttons:["slideShow","fullScreen","thumbs","close","thumbs","close"],idleTime:3,smallBtn:!0,protect:!1,modal:!1,image:{preload:"auto"},ajax:{settings:{data:{envirabox:!0}}},iframe:{tpl:'<iframe id="envirabox-frame{rnd}" name="envirabox-frame{rnd}" class="envirabox-iframe {additionalClasses}" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen allowtransparency="true" src=""></iframe>',preload:!0,css:{},attr:{scrolling:"auto"}},genericDiv:{tpl:'<div id="envirabox-generic-div{rnd}" name="envirabox-generic-div{rnd}" class="fb-video"></div>',preload:!0,provider:"facebook",css:{},attr:{scrolling:"auto"}},animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"enviraboxSlide",baseClass:"enviraboxLayout",baseTpl:'<div class="envirabox-container" role="dialog"><div class="envirabox-bg"></div><div class="envirabox-inner"><div class="envirabox-infobar"><button data-envirabox-prev title="{{PREV}}" class="envirabox-button envirabox-button--left"></button><div class="envirabox-infobar__body"><span data-envirabox-index></span>&nbsp;/&nbsp;<span data-envirabox-count></span></div><button data-envirabox-next title="{{NEXT}}" class="envirabox-button envirabox-button--right"></button></div><div class="envirabox-toolbar">{{BUTTONS}}</div><div class="envirabox-navigation"><button data-envirabox-prev title="{{PREV}}" class="envirabox-arrow envirabox-arrow--left" /><button data-envirabox-next title="{{NEXT}}" class="envirabox-arrow envirabox-arrow--right" /></div><div class="envirabox-stage"></div><div class="envirabox-caption-wrap"><div class="envirabox-title"></div><div class="envirabox-caption"></div></div></div></div>',spinnerTpl:'<div class="envirabox-loading"></div>',errorTpl:'<div class="envirabox-error"><p>{{ERROR}}<p></div>',btnTpl:{slideShow:'<button data-envirabox-play class="envirabox-button envirabox-button--play" title="{{PLAY_START}}"></button>',fullScreen:'<button data-envirabox-fullscreen class="envirabox-button envirabox-button--fullscreen" title="{{FULL_SCREEN}}"></button>',thumbs:'<button data-envirabox-thumbs class="envirabox-button envirabox-button--thumbs" title="{{THUMBS}}"></button>',close:'<button data-envirabox-close class="envirabox-button envirabox-button--close" title="{{CLOSE}}"></button>',download:"",exif:"",smallBtn:'<button data-envirabox-close class="envirabox-close-small" title="{{CLOSE}}"></button>',arrowLeft:"",arrowRight:""},parentEl:"body",autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:4e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".envirabox-container",axis:"y",rowHeight:50},wheel:"auto",onInit:f.noop,beforeLoad:f.noop,afterLoad:f.noop,beforeShow:f.noop,afterShow:f.noop,beforeClose:f.noop,afterClose:f.noop,onActivate:f.noop,onDeactivate:f.noop,clickContent:function(t,e){return"image"===t.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{clickContent:function(t,e){return"image"===t.type&&"toggleControls"},clickSlide:function(t,e){return"image"===t.type?"toggleControls":"close"},dblclickContent:function(t,e){return"image"===t.type&&"zoom"},dblclickSlide:function(t,e){return"image"===t.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails"},de:{CLOSE:"Schliessen",NEXT:"Weiter",PREV:"Zurück",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es später nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder"}}},s=f(g),a=f(o),l=0,c=g.requestAnimationFrame||g.webkitRequestAnimationFrame||g.mozRequestAnimationFrame||g.oRequestAnimationFrame||function(t){return g.setTimeout(t,1e3/60)},h=function(){var t,e=o.createElement("fakeelement"),i={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in i)if(e.style[t]!==v)return i[t];return"transitionend"}(),d=function(t){return t&&t.length&&t[0].offsetHeight},u=function(t,e,i){var n=this;n.opts=f.extend(!0,{index:i},r,e||{}),e&&f.isArray(e.buttons)&&(n.opts.buttons=e.buttons),n.id=n.opts.id||++l,n.group=[],n.currIndex=parseInt(n.opts.index,10)||0,n.prevIndex=null,n.prevPos=null,n.currPos=0,n.firstRun=null,n.createGroup(t),n.group.length&&(n.$lastFocus=f(o.activeElement).blur(),n.slides={},n.init(t))},f.urlParam=function(t){t=new RegExp("[?&]"+t+"=([^&#]*)").exec(g.location.href);return null==t?null:decodeURI(t[1])||0},f.extend(u.prototype,{init:function(){var e,i,n=this,t=(f.urlParam("envira_page")&&f.urlParam("envira_page"),n.$lastFocus[0]),o=(n.group[n.currIndex]!==v&&n.group[n.currIndex].opts!==v||(n.currIndex=f("div#envira-gallery-wrap-"+t.dataset.envirabox+" div#envira-gallery-item-"+t.dataset.enviraItemId).index()),n.group[n.currIndex]!==v&&n.group[n.currIndex].opts!==v&&n.group[n.currIndex].opts);!1===o&&(t=n.opts.galleryID,n.opts.perPage,f("a.envira-gallery-"+t).length,o=n.group[n.id-1].opts,n.currIndex=n.id-1),!1!==o&&o.baseTpl!==v&&(n.scrollTop=a.scrollTop(),n.scrollLeft=a.scrollLeft(),f.envirabox.getInstance()||f.envirabox.isMobile||"hidden"===f("body").css("overflow")||(t=f("body").width(),f("html").addClass("envirabox-enabled"),1<(t=f("body").width()-t)&&f("head").append('<style id="envirabox-style-noscroll" type="text/css">.compensate-for-scrollbar, .envirabox-enabled body { margin-right: '+t+"px; }</style>")),i="",f.each(o.buttons,function(t,e){i+=o.btnTpl[e]||""}),e=f(n.translate(n,o.baseTpl.replace("{{BUTTONS}}",i))).addClass("envirabox-is-hidden").attr("id","envirabox-container-"+n.id).addClass(o.baseClass).data("EnviraBox",n).prependTo(o.parentEl),n.$refs={container:e},["bg","inner","infobar","toolbar","stage","caption","title"].forEach(function(t){n.$refs[t]=e.find(".envirabox-"+t)}),(!o.arrows||n.group.length<2)&&e.find(".envirabox-navigation").remove(),o.infobar||n.$refs.infobar.remove(),o.toolbar||n.$refs.toolbar.remove(),n.trigger("onInit"),n.activate(),n.jumpTo(n.currIndex))},translate:function(t,e){var i=t.opts.i18n[t.opts.lang];return e.replace(/\{\{(\w+)\}\}/g,function(t,e){e=i[e];return e===v?t:e})},createGroup:function(t){var c=this,t=f.makeArray(t);f.each(t,function(t,e){var i,n,o,r={},s={},a=[];if(f.isPlainObject(e))s=(r=e).opts||e;else if("object"===f.type(e)&&f(e).length){for(var l in i=f(e),a=i.data(),s="options"in a?a.options:{},s="object"===f.type(s)?s:{},r.src="src"in a?a.src:s.src||i.attr("href"),a)a.hasOwnProperty(l)&&(r[l]=a[l]);["width","height","thumb","type","filter"].forEach(function(t){t in a&&(s[t]=a[t])}),"srcset"in a&&(s.image={srcset:a.srcset}),s.$orig=i,r.type||r.src||(r.type="inline",r.src=e)}else r={type:"html",src:e+""};r.opts=f.extend(!0,{},c.opts,s),f.envirabox.isMobile&&(r.opts=f.extend(!0,{},r.opts,r.opts.mobile)),i=r.type||r.opts.type,n=r.src||"",!i&&n&&(n.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?i="image":n.match(/\.(pdf)((\?|#).*)?$/i)?i="pdf":(o=n.match(/\.(mp4|mov|ogv)((\?|#).*)?$/i))?(i="video",r.opts.videoFormat||(r.opts.videoFormat="video/"+("ogv"===o[1]?"ogg":o[1]))):"#"===n.charAt(0)&&(i="inline")),r.type=i,r.index=c.group.length,"function"===f.type(r.opts.caption)?r.opts.caption=r.opts.caption.apply(e,[c,r]):"caption"in a?r.opts.caption=a.caption:"object"===m(r.opts)&&"string"==typeof r.opts.caption&&null!==r.opts.caption&&0<Object.keys(r.opts).length?r.opts.caption=p(r.opts.caption):r.opts.caption="",r.opts.$orig&&!r.opts.$orig.length&&delete r.opts.$orig,!r.opts.$thumb&&r.opts.$orig&&(r.opts.$thumb=r.opts.$orig.find("img:first")),r.opts.$thumb&&!r.opts.$thumb.length&&delete r.opts.$thumb,"function"===f.type(r.opts.caption)?r.opts.caption=r.opts.caption.apply(e,[c,r]):"caption"in a?r.opts.caption=a.caption:"object"===m(r.opts)&&"string"==typeof r.opts.caption&&null!==r.opts.caption&&0<Object.keys(r.opts).length?r.opts.caption=r.opts.caption:r.opts.caption="",r.opts.caption=r.opts.caption===v?"":r.opts.caption+"",null==r.opts.caption&&(r.opts.caption=""),r.opts.caption=p(r.opts.caption),"function"===f.type(r.opts.title)?r.opts.title=r.opts.title.apply(e,[c,r]):"title"in a?r.opts.title=a.title:"object"===m(r.opts)&&"string"==typeof r.opts.title&&null!==r.opts.title&&0<Object.keys(r.opts).length?r.opts.title=r.opts.title:r.opts.title="",r.opts.title=r.opts.title===v?"":r.opts.title+"",null==r.opts.title&&(r.opts.title=""),r.opts.title=p(r.opts.title),"ajax"===i&&1<(o=n.split(/\s+/,2)).length&&(r.src=o.shift(),r.opts.filter=o.shift()),r.opts.smallBtn!==v&&1==r.opts.smallBtn&&(r.opts.toolbar=!1,r.opts.smallBtn=!0),"pdf"===i&&(r.type="iframe",r.opts.iframe.preload=!1),r.opts.modal&&(r.opts=f.extend(!0,r.opts,{infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),c.group.push(r)})},addEvents:function(){var n=this;n.removeEvents(),n.$refs.container.on("click.eb-close","[data-envirabox-close]",function(t){t.stopPropagation(),t.preventDefault(),n.close(t)}).on("click.eb-prev touchend.eb-prev","[data-envirabox-prev]",function(t){t.stopPropagation(),t.preventDefault(),n.previous()}).on("click.eb-next touchend.eb-next","[data-envirabox-next]",function(t){t.stopPropagation(),t.preventDefault(),n.next()}),s.on("orientationchange.eb resize.eb",function(t){t&&t.originalEvent&&"resize"===t.originalEvent.type?c(function(){n.update()}):(n.$refs.stage.hide(),setTimeout(function(){n.$refs.stage.show(),n.update()},500))}),a.on("focusin.eb",function(t){var e=f.envirabox?f.envirabox.getInstance():null;e.isClosing||!e.current||!e.current.opts.trapFocus||f(t.target).hasClass("envirabox-container")||f(t.target).is(o)||e&&"fixed"!==f(t.target).css("position")&&!e.$refs.container.has(t.target).length&&(t.stopPropagation(),e.focus(),s.scrollTop(n.scrollTop).scrollLeft(n.scrollLeft))}),a.on("keydown.eb",function(t){var e=n.current,i=t.keyCode||t.which;if(e&&e.opts.keyboard&&!f(t.target).is("input")&&!f(t.target).is("textarea"))return 9===i?t.shiftKey?void n.jumpTo(n.currIndex-1,1):void n.jumpTo(n.currIndex+1,1):8===i||27===i?(t.preventDefault(),void n.close(t)):37===i||38===i?(t.preventDefault(),void n.previous()):39===i||40===i?(t.preventDefault(),void n.next()):void n.trigger("afterKeydown",t,i)}),n.group[n.currIndex].opts.idleTime&&(n.idleSecondsCounter=0,a.on("mousemove.eb-idle mouseenter.eb-idle mouseleave.eb-idle mousedown.eb-idle touchstart.eb-idle touchmove.eb-idle scroll.eb-idle keydown.eb-idle",function(){n.idleSecondsCounter=0,n.isIdle&&n.showControls(),n.isIdle=!1}),n.idleInterval=g.setInterval(function(){n.idleSecondsCounter++,n.idleSecondsCounter>=n.group[n.currIndex].opts.idleTime&&(n.isIdle=!0,n.idleSecondsCounter=0,n.hideControls())},1e3))},removeEvents:function(){s.off("orientationchange.eb resize.eb"),a.off("focusin.eb keydown.eb .eb-idle"),this.$refs.container.off(".eb-close .eb-prev .eb-next"),this.idleInterval&&(g.clearInterval(this.idleInterval),this.idleInterval=null)},previous:function(t){return this.jumpTo(this.currPos-1,t)},next:function(t){return this.jumpTo(this.currPos+1,t)},jumpTo:function(t,n,e){var i,o,r,s,a,l,c=this,h=c.group.length;if(!(c.isSliding||c.isClosing||c.isAnimating&&c.firstRun)){if(t=parseInt(t,10),!(a=(c.current||c).opts.loop)&&(t<0||h<=t))return!1;if(i=c.firstRun=null===c.firstRun,!(h<2&&!i&&c.isSliding)){if(r=c.current,c.prevIndex=c.currIndex,c.prevPos=c.currPos,o=c.createSlide(t),1<h&&((a||0<o.index)&&c.createSlide(t-1),(a||o.index<h-1)&&c.createSlide(t+1)),c.current=o,c.currIndex=o.index,c.currPos=o.pos,c.trigger("beforeShow",i),c.updateControls(),a=f.envirabox.getTranslate(o.$slide),o.isMoved=(0!==a.left||0!==a.top)&&!o.$slide.hasClass("envirabox-animated"),o.forcedDuration=v,f.isNumeric(n)?o.forcedDuration=n:n=o.opts[i?"animationDuration":"transitionDuration"],n=parseInt(n,10),i)return o.opts.animationEffect&&n&&c.$refs.container.css("transition-duration",n+"ms"),c.$refs.container.removeClass("envirabox-is-hidden"),d(c.$refs.container),c.$refs.container.addClass("envirabox-is-open"),o.$slide.addClass("envirabox-slide--current"),c.loadSlide(o),void c.preload();f.each(c.slides,function(t,e){f.envirabox.stop(e.$slide)}),o.$slide.removeClass("envirabox-slide--next envirabox-slide--previous").addClass("envirabox-slide--current"),o.isMoved?(s=Math.round(o.$slide.width()),f.each(c.slides,function(t,e){var i=e.pos-o.pos;f.envirabox.animate(e.$slide,{top:0,left:i*s+i*e.opts.gutter},n,function(){e.$slide.removeAttr("style").removeClass("envirabox-slide--next envirabox-slide--previous"),e.pos===c.currPos&&(o.isMoved=!1,c.complete())})})):c.$refs.stage.children().removeAttr("style"),o.isLoaded?c.revealContent(o):c.loadSlide(o),c.preload(),r.pos!==o.pos&&(l="envirabox-slide--"+(r.pos>o.pos?"next":"previous"),r.$slide.removeClass("envirabox-slide--complete envirabox-slide--current envirabox-slide--next envirabox-slide--previous"),r.isComplete=!1,n&&(o.isMoved||o.opts.transitionEffect)&&(o.isMoved?r.$slide.addClass(l):(l="envirabox-animated "+l+" envirabox-fx-"+o.opts.transitionEffect,f.envirabox.animate(r.$slide,l,n,function(){r.$slide.removeClass(l).removeAttr("style")}))))}}},createSlide:function(t){var e,i=this,n=t%i.group.length;return n=n<0?i.group.length+n:n,!i.slides[t]&&i.group[n]&&(e=f('<div class="envirabox-slide"></div>').appendTo(i.$refs.stage),i.slides[t]=f.extend(!0,{},i.group[n],{pos:t,$slide:e,isLoaded:!1}),i.updateSlide(i.slides[t])),i.slides[t]},scaleToActual:function(t,e,i){var n,o,r,s,a=this,l=a.current,c=l.$content,h=parseInt(l.$slide.width(),10),d=parseInt(l.$slide.height(),10),u=l.width,p=l.height;"image"!=l.type||l.hasError||!c||a.isAnimating||(f.envirabox.stop(c),a.isAnimating=!0,t=t===v?.5*h:t,e=e===v?.5*d:e,r=u/(l=f.envirabox.getTranslate(c)).width,s=p/l.height,n=.5*h-.5*u,o=.5*d-.5*p,h<u&&(n=0<(n=l.left*r-(t*r-t))?0:n)<h-u&&(n=h-u),d<p&&(o=0<(o=l.top*s-(e*s-e))?0:o)<d-p&&(o=d-p),a.updateCursor(u,p),f.envirabox.animate(c,{top:o,left:n,scaleX:r,scaleY:s},i||330,function(){a.isAnimating=!1}),a.SlideShow&&a.SlideShow.isActive&&a.SlideShow.stop())},scaleToFit:function(t){var e=this,i=e.current,n=i.$content;"image"!=i.type||i.hasError||!n||e.isAnimating||(f.envirabox.stop(n),e.isAnimating=!0,i=e.getFitPos(i),e.updateCursor(i.width,i.height),f.envirabox.animate(n,{top:i.top,left:i.left,scaleX:i.width/n.width(),scaleY:i.height/n.height()},t||330,function(){e.isAnimating=!1}))},getFitPos:function(t){var e,i,n=t.$content,o=t.width,r=t.height,t=((/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)&&matchMedia("(-webkit-min-device-pixel-ratio: 2), (min-device-pixel-ratio: 2), (min-resolution: 192dpi)").matches||2===g.devicePixelRatio)&&(o*=2,r*=2),t.opts.margin);return!(!n||!n.length||!o&&!r)&&(2===(t="number"===f.type(t)?[t,t]:t).length&&(t=[t[0],t[1],t[0],t[1]]),s.width()<800&&(t=[0,30,0,30]),n=Math.abs(parseInt(this.$refs.stage.width(),10)-(t[1]+t[3])),e=Math.abs(parseInt(this.$refs.stage.height(),10)-(t[0]+t[2])),i=Math.min(1,n/o,e/r),o=Math.floor(i*o),i=Math.floor(i*r),{top:Math.floor(.5*(e-i))+t[0],left:Math.floor(.5*(n-o))+t[3],width:o,height:i})},update:function(){var i=this;f.each(i.slides,function(t,e){i.updateSlide(e)})},updateSlide:function(t){var e=t.$content;e&&(t.width||t.height)&&(f.envirabox.stop(e),f.envirabox.setTranslate(e,this.getFitPos(t)),t.pos===this.currPos&&this.updateCursor()),t.$slide.trigger("refresh"),this.trigger("onUpdate",t)},updateCursor:function(t,e){var i=this,n=i.$refs.container.removeClass("envirabox-is-zoomable envirabox-can-zoomIn envirabox-can-drag envirabox-can-zoomOut");i.current&&!i.isClosing&&(i.isZoomable()?(n.addClass("envirabox-is-zoomable"),(t!==v&&e!==v?t<i.current.width&&e<i.current.height:i.isScaledDown())?n.addClass("envirabox-can-zoomIn"):i.current.opts.touch?n.addClass("envirabox-can-drag"):n.addClass("envirabox-can-zoomOut")):i.current.opts.touch&&n.addClass("envirabox-can-drag"))},isZoomable:function(){var t,e=this.current;if(e&&!this.isClosing)return!!("image"===e.type&&e.isLoaded&&!e.hasError&&("zoom"===e.opts.clickContent||f.isFunction(e.opts.clickContent)&&"zoom"===e.opts.clickContent(e))&&(t=this.getFitPos(e),e.width>t.width||e.height>t.height))},isScaledDown:function(){var t=this.current,e=t.$content,i=!1;return i=e?(i=f.envirabox.getTranslate(e)).width<t.width||i.height<t.height:i},canPan:function(){var t=this.current,e=t.$content,i=!1;return e&&(i=this.getFitPos(t),i=1<Math.abs(e.width()-i.width)||1<Math.abs(e.height()-i.height)),i},loadSlide:function(i){var t,e,n,o=this;if(!i.isLoading&&!i.isLoaded){switch(i.isLoading=!0,o.trigger("beforeLoad",i),t=i.type,(e=i.$slide).off("refresh").trigger("onReset").addClass("envirabox-slide--"+(t||"unknown")).addClass(i.opts.slideClass),t){case"image":o.setImage(i);break;case"video":o.setVideo(i);break;case"iframe":o.setIframe(i);break;case"genericDiv":o.setGenericDiv(i);break;case"html":o.setContent(i,i.src||i.content);break;case"inline":f(i.src).length?o.setContent(i,f(i.src)):o.setError(i);break;case"ajax":o.showLoading(i),n=f.ajax(f.extend({},i.opts.ajax.settings,{url:i.src,success:function(t,e){"success"===e&&o.setContent(i,t)},error:function(t,e){t&&"abort"!==e&&o.setError(i)}})),e.one("onReset",function(){n.abort()});break;default:o.setError(i)}return!0}},setVideo:function(t){var e,i,n,o,r,s,a,l;this.isClosing||(this.hideLoading(t),t.$slide.empty(),n=e=o="",!(a="controls")!==t.opts.videoPlayPause&&(n+="videos_play_pause "),(i=l=!1)!==t.opts.videoProgressBar&&(n+="videos_progress "),!1!==t.opts.videoPlaybackTime&&(n+="videos_playback_time "),!1!==t.opts.videoVideoLength&&(n+="videos_video_length "),!1!==t.opts.videoVolumeControls&&(n+="videos_volume_controls "),!1!==t.opts.videoControlBar?n+="videos_controls ":(a=t.opts.videoAutoPlay!==v&&!1!==t.opts.videoAutoPlay?"autoplay playinline":"",e+="nodownload nofullscreen noremoteplayback "),!1!==t.opts.videoFullscreen&&(n+="videos_fullscreen "),!1!==t.opts.videoDownload?n+="videos_download ":e+="nodownload ",0<t.videoWidth&&(l="max-width:"+t.videoWidth+"px;"),0<t.videoHeight&&(i="max-height:"+t.videoHeight+"px;"),(l||i)&&(o='style="'+l+i+'"'),0!==t.opts.arrows&&"inside"==t.opts.arrow_position?t.$content=f('<div class="envirabox-content video '+n+'" '+o+'"><div class="envirabox-navigation-inside"><a data-envirabox-prev title="prev" class="envirabox-arrow envirabox-arrow--left envirabox-nav envirabox-prev" href="#"><span></span></a><a data-envirabox-next title="next" class="envirabox-arrow envirabox-arrow--right envirabox-nav envirabox-next" href="#"><span></span></a></div>').appendTo(t.$slide):t.$content=f('<div class="envirabox-content '+n+'" '+o+"></div>").appendTo(t.$slide),!0===t.opts.smallBtn&&t.$content.prepend(this.translate(t,t.opts.btnTpl.smallBtn)),!0===t.opts.insideCap&&(l=t.caption!==v?t.caption:"",i=t.title!==v?t.title:"",n=t.opts.capPosition||"",o=!(!t.opts.capTitleShow||"0"===t.opts.capTitleShow)&&t.opts.capTitleShow,r=t.enviraItemId||"",s="caption"==o&&'<div class="envirabox-caption envirabox-caption-item-id-'+r+'">'+l+"</div>",s="title_caption"==o?'<div class="envirabox-caption envirabox-caption-item-id-'+r+'">'+i+" "+l+"</div>":s,!1!==(s="title"==o?'<div class="envirabox-title envirabox-title-item-id-'+r+'">'+i+"</div>":s)&&s!==v&&0<s.length&&t.$content.prepend('<div class="envirabox-caption-wrap '+n+'">'+s+"</div>")),""!=a&&(a=a+' poster="'+(t.videoPlaceholder||t.thumb)+'" '+(t.videoPlaysInline!==v?t.videoPlaysInline:"playsinline")+' controlsList="'+e+'"'),l=t.src!==v?t.src:t.link,f('<div class="envirabox-video-container"><video class="envirabox-video-player" '+a+'><source src="'+l+'" type="video/mp4">Your broswser doesn\'t support HTML5 video</video></div>').appendTo(t.$content),this.afterLoad(t))},setImage:function(t){var e,i,n,o,r,s,a,l,c,h=this,d=t.opts.image.srcset;if(d){n=g.devicePixelRatio||1,o=g.innerWidth*n,(i=d.split(",").map(function(t){var n={};return t.trim().split(/\s+/).forEach(function(t,e){var i=parseInt(t.substring(0,t.length-1),10);if(0===e)return n.url=t;i&&(n.value=i,n.postfix=t[t.length-1])}),n})).sort(function(t,e){return t.value-e.value});for(var u=0;u<i.length;u++){var p=i[u];if("w"===p.postfix&&p.value>=o||"x"===p.postfix&&p.value>=n){e=p;break}}(e=!e&&i.length?i[i.length-1]:e)&&(t.src=e.url,t.width&&t.height&&"w"==e.postfix&&(t.height=t.width/t.height*e.value,t.width=e.value))}0!==t.opts.arrows&&"inside"==t.opts.arrow_position?t.$content=f('<div class="envirabox-image-wrap"><div class="envirabox-navigation-inside"><a data-envirabox-prev title="prev" class="envirabox-arrow envirabox-arrow--left envirabox-nav envirabox-prev" href="#"><span></span></a><a data-envirabox-next title="next" class="envirabox-arrow envirabox-arrow--right envirabox-nav envirabox-next" href="#"><span></span></a></div>').addClass("envirabox-is-hidden").appendTo(t.$slide):t.$content=f('<div class="envirabox-image-wrap"></div>').addClass("envirabox-is-hidden").appendTo(t.$slide),!0===t.opts.smallBtn&&t.$content.prepend(h.translate(t,t.opts.btnTpl.smallBtn)),!0===t.opts.insideCap&&(d=t.caption!==v?t.caption:"",r=t.title!==v?t.title:"",s=t.opts.capPosition||"",a=!(!t.opts.capTitleShow||"0"===t.opts.capTitleShow||!1===t.opts.capTitleShow||"false"===t.opts.capTitleShow)&&t.opts.capTitleShow,l=t.enviraItemId||"",c="caption"==a&&'<div class="envirabox-caption envirabox-caption-item-id-'+l+'">'+d+"</div>",c="title_caption"==a?'<div class="envirabox-caption envirabox-caption-item-id-'+l+'">'+r+" "+d+"</div>":c,!1!==(c="title"==a?'<div class="envirabox-title envirabox-title-item-id-'+l+'">'+r+"</div>":c)&&c!==v&&0<c.length&&t.$content.prepend('<div class="envirabox-caption-wrap '+s+'">'+c+"</div>")),!1!==t.opts.preload&&t.opts.width&&t.opts.height&&(t.opts.thumb||t.opts.$thumb)?(t.width=t.opts.width,t.height=t.opts.height,t.$ghost=f("<img />").one("error",function(){f(this).remove(),t.$ghost=null,h.setBigImage(t)}).one("load",function(){h.afterLoad(t),h.setBigImage(t)}).addClass("envirabox-image").appendTo(t.$content).attr("src",t.opts.thumb||t.opts.$thumb.attr("src"))):h.setBigImage(t)},setBigImage:function(t){var e=this,i=f("<img />");t.$image=i.one("error",function(){e.setError(t)}).one("load",function(){clearTimeout(t.timouts),t.timouts=null,e.isClosing||(t.width=this.naturalWidth,t.height=this.naturalHeight,t.opts.image.srcset&&i.attr("sizes","100vw").attr("srcset",t.opts.image.srcset),e.hideLoading(t),t.$ghost?t.timouts=setTimeout(function(){t.timouts=null,t.$ghost.hide()},Math.min(300,Math.max(1e3,t.height/1600))):e.afterLoad(t))}).addClass("envirabox-image").attr("src",t.src).appendTo(t.$content);matchMedia("(-webkit-min-device-pixel-ratio: 2), (min-device-pixel-ratio: 2), (min-resolution: 192dpi)").matches&&t.enviraRetina!==v&&!1!==t.enviraRetina&&""!==t.enviraRetina?t.$image.attr("srcset",t.src+" 1x, "+t.enviraRetina+" 2x"):t.src!==v&&!1!==t.src&&t.$image.attr("srcset",t.src+" 1x"),(i[0].complete||"complete"==i[0].readyState)&&i[0].naturalWidth&&i[0].naturalHeight?i.trigger("load"):i[0].error?i.trigger("error"):t.timouts=setTimeout(function(){i[0].complete||t.hasError||e.showLoading(t)},100)},frameWidth:null,frameHeight:null,setIframe:function(e){var t,i,n,o,r,s,a=this,l=e.opts.iframe,c=e.$slide;if(0!==e.opts.arrows&&"inside"==e.opts.arrow_position?e.$content=f('<div class="envirabox-content'+(l.preload?" envirabox-is-hidden":" ")+" provider-"+l.provider+'" ><div class="envirabox-navigation-inside"><a data-envirabox-prev title="prev" class="envirabox-arrow envirabox-arrow--left envirabox-nav envirabox-prev" href="#"><span></span></a><a data-envirabox-next title="next" class="envirabox-arrow envirabox-arrow--right envirabox-nav envirabox-next" href="#"><span></span></a></div>').addClass("envirabox-hidden").addClass("envirabox-iframe-hidden").css("width","640px").css("height","360px").appendTo(e.$slide):l.provider!==v?e.$content=f('<div class="envirabox-content'+(l.preload?" envirabox-is-hidden":" ")+" provider-"+l.provider+'" ></div>').addClass("envirabox-hidden").addClass("envirabox-iframe-hidden").css("width","640px").css("height","360px").appendTo(c):e.$content=f('<div class="envirabox-content'+(l.preload?" envirabox-is-hidden":" ")+" provider-"+l.provider+'" ></div>').css("width","90%").css("height","90%").appendTo(c),t=f(l.tpl.replace(/\{rnd\}/g,(new Date).getTime()).replace(/\{additionalClasses\}/g,e.contentProvider)).attr(l.attr).appendTo(e.$content).css("width",!1).css("height",!1),l.preload){a.showLoading(e),t.on("load.eb error.eb",function(t){this.isReady=1,e.$slide.trigger("refresh"),a.afterLoad(e)});var l=!1;try{l=t.contents().find("body")}catch(t){}l&&l.length&&l.children().length&&($content.css({width:"",height:""}),null===a.frameWidth&&(a.frameWidth=Math.ceil(Math.max(l[0].clientWidth,l.outerWidth(!0)))),a.frameWidth&&$content.width(a.frameWidth),null===a.frameHeight&&(a.frameHeight=Math.ceil(Math.max(l[0].clientHeight,l.outerHeight(!0)))),a.frameHeight&&$content.height(a.frameHeight),$content.removeClass("envirabox-hidden"))}else this.afterLoad(e);!0===e.opts.insideCap&&(l=e.caption!==v?e.caption:"",i=e.title!==v?e.title:"",n=e.opts.capPosition||"",o=!(!e.opts.capTitleShow||"0"===e.opts.capTitleShow)&&e.opts.capTitleShow,r=e.enviraItemId||"",s="caption"==o&&'<div class="envirabox-caption envirabox-caption-item-id-'+r+'">'+l+"</div>",s="title_caption"==o?'<div class="envirabox-caption envirabox-caption-item-id-'+r+'">'+i+" "+l+"</div>":s,!1!==(s="title"==o?'<div class="envirabox-title envirabox-title-item-id-'+r+'">'+i+"</div>":s)&&s!==v&&0<s.length&&e.$content.prepend('<div class="envirabox-caption-wrap '+n+'">'+s+"</div>")),t.attr("src",e.src),!0===e.opts.smallBtn&&e.$content.prepend(a.translate(e,e.opts.btnTpl.smallBtn)),c.one("onReset",function(){try{f(this).find("iframe").hide().attr("src","//about:blank")}catch(t){}f(this).empty(),e.isLoaded=!1})},setGenericDiv:function(t){var e,i,n,o=t.opts.genericDiv,r=t.$slide,s="640px",a="360px";0!==t.opts.arrows&&"inside"==t.opts.arrow_position?t.$content=f('<div class="envirabox-content'+(o.preload?" envirabox-is-hidden":" ")+" provider-"+o.provider+'" ><div class="envirabox-navigation-inside"><a data-envirabox-prev title="prev" class="envirabox-arrow envirabox-arrow--left envirabox-nav envirabox-prev" href="#"><span></span></a><a data-envirabox-next title="next" class="envirabox-arrow envirabox-arrow--right envirabox-nav envirabox-next" href="#"><span></span></a></div>').addClass("envirabox-hidden").css("width",s).css("height",a).appendTo(t.$slide):("facebook"==o.provider&&(s=a="auto"),t.$content=f('<div class="envirabox-content'+(o.preload?" envirabox-is-hidden":" ")+" provider-"+o.provider+'" ></div>').addClass("envirabox-hidden").css("width",s).css("height",a).appendTo(r)),f(o.tpl.replace(/\{rnd\}/g,(new Date).getTime()).replace(/\{additionalClasses\}/g,t.contentProvider)).attr(o.attr).attr("data-href",t.src).appendTo(t.$content).css("width",s).css("height",a),this.afterLoad(t),!0===t.opts.insideCap&&(o=t.caption!==v?t.caption:"",s=t.title!==v?t.title:"",a=t.opts.capPosition||"",e=!(!t.opts.capTitleShow||"0"===t.opts.capTitleShow)&&t.opts.capTitleShow,i=t.enviraItemId||"",n="caption"==e&&'<div class="envirabox-caption envirabox-caption-item-id-'+i+'">'+o+"</div>",n="title_caption"==e?'<div class="envirabox-caption envirabox-caption-item-id-'+i+'">'+s+" "+o+"</div>":n,!1!==(n="title"==e?'<div class="envirabox-title envirabox-title-item-id-'+i+'">'+s+"</div>":n)&&n!==v&&0<n.length&&t.$content.prepend('<div class="envirabox-caption-wrap '+a+'">'+n+"</div>")),!0===t.opts.smallBtn&&t.$content.prepend(this.translate(t,t.opts.btnTpl.smallBtn)),r.one("onReset",function(){try{f(this).find("genericDiv").hide().attr("src","//about:blank")}catch(t){}f(this).empty(),t.isLoaded=!1})},setContent:function(t,e){var i;this.isClosing||(this.hideLoading(t),t.$slide.empty(),(i=e)&&i.hasOwnProperty&&i instanceof f&&e.parent().length?(e.parent(".envirabox-slide--inline").trigger("onReset"),t.$placeholder=f("<div></div>").hide().insertAfter(e),e.css("display","inline-block")):t.hasError||("string"===f.type(e)&&3===(e=f("<div>").append(f.trim(e)).contents())[0].nodeType&&(e=f("<div>").html(e)),t.opts.filter&&(e=f("<div>").html(e).find(t.opts.filter))),t.$slide.one("onReset",function(){t.$placeholder&&(t.$placeholder.after(e.hide()).remove(),t.$placeholder=null),t.$smallBtn&&(t.$smallBtn.remove(),t.$smallBtn=null),t.hasError||(f(this).empty(),t.isLoaded=!1)}),t.$content=f(e).appendTo(t.$slide),t.opts.smallBtn&&!t.$smallBtn&&(t.$smallBtn=f(this.translate(t,t.opts.btnTpl.smallBtn)).appendTo(t.$content.filter("div").first())),this.afterLoad(t))},setError:function(t){t.hasError=!0,t.$slide.removeClass("envirabox-slide--"+t.type),this.setContent(t,this.translate(t,t.opts.errorTpl))},showLoading:function(t){(t=t||this.current)&&!t.$spinner&&(t.$spinner=f(this.opts.spinnerTpl).appendTo(t.$slide))},hideLoading:function(t){(t=t||this.current)&&t.$spinner&&(t.$spinner.remove(),delete t.$spinner)},afterLoad:function(t){this.isClosing||(t.isLoading=!1,t.isLoaded=!0,this.trigger("afterLoad",t),this.hideLoading(t),t.opts.protect&&t.$content&&!t.hasError&&(t.$content.on("contextmenu.eb",function(t){return 2==t.button&&t.preventDefault(),!0}),"image"===t.type&&f('<div class="envirabox-spaceball"></div>').appendTo(t.$content)),this.revealContent(t))},revealContent:function(e){var i,t,n,o=this,r=e.$slide,s=!1,a=e.opts[o.firstRun?"animationEffect":"transitionEffect"],l=e.opts[o.firstRun?"animationDuration":"transitionDuration"];return l=parseInt(e.forcedDuration===v?l:e.forcedDuration,10),"zoom"===(a="zoom"!==(a=!e.isMoved&&e.pos===o.currPos&&l?a:!1)||e.pos===o.currPos&&l&&"image"===e.type&&!e.hasError&&(s=o.getThumbPos(e))?a:"fade")?((n=o.getFitPos(e)).scaleX=n.width/s.width,n.scaleY=n.height/s.height,delete n.width,delete n.height,(t="auto"==(t=e.opts.zoomOpacity)?.1<Math.abs(e.width/e.height-s.width/s.height):t)&&(s.opacity=.1,n.opacity=1),f.envirabox.setTranslate(e.$content.removeClass("envirabox-is-hidden"),s),d(e.$content),void f.envirabox.animate(e.$content,n,l,function(){o.complete()})):(o.updateSlide(e),a?(f.envirabox.stop(r),i="envirabox-animated envirabox-slide--"+(e.pos>o.prevPos?"next":"previous")+" envirabox-fx-"+a,r.removeAttr("style").removeClass("envirabox-slide--current envirabox-slide--next envirabox-slide--previous").addClass(i),e.$content.removeClass("envirabox-is-hidden"),d(r),void f.envirabox.animate(r,"envirabox-slide--current",l,function(t){r.removeClass(i).removeAttr("style"),e.pos===o.currPos&&o.complete()},!0)):(d(r),e.$content.removeClass("envirabox-is-hidden"),void(e.pos===o.currPos&&o.complete())))},getThumbPos:function(t){var e,i=!1,t=t.opts.$thumb,n=t?t.offset():0;return n&&t[0].ownerDocument===o&&function(t){for(var e=t[0],i=e.getBoundingClientRect(),n=[];null!==e.parentElement;)"hidden"!==f(e.parentElement).css("overflow")&&"auto"!==f(e.parentElement).css("overflow")||n.push(e.parentElement.getBoundingClientRect()),e=e.parentElement;return n.every(function(t){var e=Math.min(i.right,t.right)-Math.max(i.left,t.left),t=Math.min(i.bottom,t.bottom)-Math.max(i.top,t.top);return 0<e&&0<t})&&0<i.bottom&&0<i.right&&i.left<f(g).width()&&i.top<f(g).height()}(t)&&(e=this.$refs.stage.offset(),i={top:n.top-e.top+parseFloat(t.css("border-top-width")||0),left:n.left-e.left+parseFloat(t.css("border-left-width")||0),width:t.width(),height:t.height(),scaleX:1,scaleY:1}),i},complete:function(){var i=this,t=i.current,n={};t.isMoved||!t.isLoaded||t.isComplete||(t.isComplete=!0,t.$slide.siblings().trigger("onReset"),d(t.$slide),t.$slide.addClass("envirabox-slide--complete"),f.each(i.slides,function(t,e){e.pos>=i.currPos-1&&e.pos<=i.currPos+1?n[e.pos]=e:e&&(f.envirabox.stop(e.$slide),e.$slide.off().remove())}),i.slides=n,i.updateCursor(),i.trigger("afterShow"),(f(o.activeElement).is("[disabled]")||t.opts.autoFocus&&"image"!=t.type&&"iframe"!==t.type)&&i.focus())},preload:function(){var t,e,i=this;i.group.length<2||(t=i.slides[i.currPos+1],e=i.slides[i.currPos-1],t&&"image"===t.type&&i.loadSlide(t),e&&"image"===e.type&&i.loadSlide(e))},focus:function(){var t,e=this.current;this.isClosing||(e&&e.isComplete&&((t=e.$slide.find("input[autofocus]:enabled:visible:first")).length||(t=e.$slide.find("button,:input,[tabindex],a").filter(":enabled:visible:first"))),(t=t&&t.length?t:this.$refs.container).focus())},activate:function(){var e=this;f(".envirabox-container").each(function(){var t=f(this).data("envirabox");t&&t.uid!==e.uid&&!t.isClosing&&t.trigger("onDeactivate")}),e.current&&(0<e.$refs.container.index()&&e.$refs.container.prependTo(o.body),e.updateControls()),e.trigger("onActivate"),e.addEvents()},close:function(t,e){function i(){a.cleanUp(t)}var n,o,r,s,a=this,l=a.current;return!a.isClosing&&(!(a.isClosing=!0)===a.trigger("beforeClose",t)?(a.isClosing=!1,c(function(){a.update()}),!1):(a.removeEvents(),l.timouts&&clearTimeout(l.timouts),r=l.$content,n=l.opts.animationEffect,e=f.isNumeric(e)?e:n?l.opts.animationDuration:0,l.$slide.off(h).removeClass("envirabox-slide--complete envirabox-slide--next envirabox-slide--previous envirabox-animated"),l.$slide.siblings().trigger("onReset").remove(),e&&a.$refs.container.removeClass("envirabox-is-open").addClass("envirabox-is-closing"),a.hideLoading(l),a.hideControls(),a.updateCursor(),"zoom"===(n="zoom"!==n||!0!==t&&r&&e&&"image"===l.type&&!l.hasError&&(s=a.getThumbPos(l))?n:"fade")?(f.envirabox.stop(r),(r=f.envirabox.getTranslate(r)).width=r.width*r.scaleX,r.height=r.height*r.scaleY,(o="auto"==(o=l.opts.zoomOpacity)?.1<Math.abs(l.width/l.height-s.width/s.height):o)&&(s.opacity=0),r.scaleX=r.width/s.width,r.scaleY=r.height/s.height,r.width=s.width,r.height=s.height,f.envirabox.setTranslate(l.$content,r),f.envirabox.animate(l.$content,s,e,i)):n&&e?!0===t?setTimeout(i,e):f.envirabox.animate(l.$slide.removeClass("envirabox-slide--current"),"envirabox-animated envirabox-slide--previous envirabox-fx-"+n,e,i):i(),!0))},cleanUp:function(t){var e=this;e.current.$slide.trigger("onReset"),e.$refs.container.empty().remove(),e.trigger("afterClose",t),e.$lastFocus&&e.current.opts.backFocus&&e.$lastFocus.focus(),e.current=null,(t=f.envirabox.getInstance())?t.activate():(s.scrollTop(e.scrollTop).scrollLeft(e.scrollLeft),f("html").removeClass("envirabox-enabled"),f("#envirabox-style-noscroll").remove())},trigger:function(t,e){var i,n=Array.prototype.slice.call(arguments,1),e=e&&e.opts?e:this.current;if(e?n.unshift(e):e=this,n.unshift(this),!1===(i=f.isFunction(e.opts[t])?e.opts[t].apply(e,n):i))return i;("afterClose"===t?a:this.$refs.container).trigger(t+".eb",n)},updateControls:function(t){var e=this,i=e.current,n=i.index,o=i.opts,r=o.caption,s=o.title,a=e.$refs.caption,l=e.$refs.title;i.$slide.trigger("refresh"),e.$caption=r&&r.length?a.html(r):null,e.$title=s&&s.length?l.html(s):null,e.isHiddenControls||e.showControls(),f("[data-envirabox-count]").html(e.group.length),f("[data-envirabox-index]").html(n+1),f("[data-envirabox-prev]").prop("disabled",!o.loop&&n<=0),f("[data-envirabox-next]").prop("disabled",!o.loop&&n>=e.group.length-1)},hideControls:function(){this.isHiddenControls=!0,this.$refs.container.removeClass("envirabox-show-infobar envirabox-show-toolbar envirabox-show-caption envirabox-show-title envirabox-show-nav envirabox-show-exif"),this.$refs.container.addClass("envirabox-hide-exif")},showControls:function(){var t=this,e=(t.current||t).opts,i=t.$refs.container;t.isHiddenControls=!1,t.idleSecondsCounter=0,i.toggleClass("envirabox-show-toolbar",!(!e.toolbar||!e.buttons)).toggleClass("envirabox-show-infobar",!!(e.infobar&&1<t.group.length)).toggleClass("envirabox-show-nav",!!(e.arrows&&1<t.group.length)).toggleClass("envirabox-is-modal",!!e.modal),t.$caption?i.addClass("envirabox-show-caption "):i.removeClass("envirabox-show-caption"),t.$title?i.addClass("envirabox-show-title "):i.removeClass("envirabox-show-title"),i.addClass("envirabox-show-exif"),i.removeClass("envirabox-hide-exif")},toggleControls:function(){this.isHiddenControls?this.showControls():this.hideControls()}}),f.envirabox={version:"{envirabox-version}",defaults:r,getInstance:function(t){var e=f('.envirabox-container:not(".envirabox-is-closing"):first').data("envirabox"),i=Array.prototype.slice.call(arguments,1);return e instanceof u&&("string"===f.type(t)?e[t].apply(e,i):"function"===f.type(t)&&t.apply(e,i),e)},open:function(t,e,i){var n=this.getInstance();if(!n)return new u(t,e,i)},close:function(t){var e=this.getInstance();e&&(e.close(),!0===t&&this.close())},destroy:function(){this.close(!0),a.off("click.eb-start")},isMobile:o.createTouch!==v&&/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent),use3d:(t=o.createElement("div"),g.getComputedStyle&&g.getComputedStyle(t).getPropertyValue("transform")&&!(o.documentMode&&o.documentMode<11)),getTranslate:function(t){var e,i;return!(!t||!t.length)&&((e=(e=t.eq(0).css("transform"))&&-1!==e.indexOf("matrix")?(e=(e=e.split("(")[1]).split(")")[0]).split(","):[]).length?e=(e=10<e.length?[e[13],e[12],e[0],e[5]]:[e[5],e[4],e[0],e[3]]).map(parseFloat):(e=[0,0,1,1],(i=/\.*translate\((.*)px,(.*)px\)/i.exec(t.eq(0).attr("style")))&&(e[0]=parseFloat(i[2]),e[1]=parseFloat(i[1]))),{top:e[0],left:e[1],scaleX:e[2],scaleY:e[3],opacity:parseFloat(t.css("opacity")),width:t.width(),height:t.height()})},setTranslate:function(t,e){var i="",n={};if(t&&e)return e.left===v&&e.top===v||(i=(e.left===v?t.position():e).left+"px, "+(e.top===v?t.position():e).top+"px",i=this.use3d?"translate3d("+i+", 0px)":"translate("+i+")"),(i=e.scaleX!==v&&e.scaleY!==v?(i.length?i+" ":"")+"scale("+e.scaleX+", "+e.scaleY+")":i).length&&(n.transform=i),e.opacity!==v&&(n.opacity=e.opacity),e.width!==v&&(n.width=e.width),e.height!==v&&(n.height=e.height),t.css(n)},animate:function(e,i,t,n,o){var r=h||"transitionend";f.isFunction(t)&&(n=t,t=null),f.isPlainObject(i)||e.removeAttr("style"),e.on(r,function(t){t&&t.originalEvent&&(!e.is(t.originalEvent.target)||"z-index"==t.originalEvent.propertyName)||(e.off(r),f.isPlainObject(i)?i.scaleX!==v&&i.scaleY!==v&&(e.css("transition-duration","0ms"),i.width=Math.round(e.width()*i.scaleX),i.height=Math.round(e.height()*i.scaleY),i.scaleX=1,i.scaleY=1,f.envirabox.setTranslate(e,i)):!0!==o&&e.removeClass(i),f.isFunction(n)&&n(t))}),f.isNumeric(t)&&e.css("transition-duration",t+"ms"),f.isPlainObject(i)?f.envirabox.setTranslate(e,i):e.addClass(i),e.data("timer",setTimeout(function(){e.trigger("transitionend")},t+16))},stop:function(t){clearTimeout(t.data("timer")),t.off(h)}},f.fn.envirabox=function(t){var e;return(e=(t=t||{}).selector||!1)?f("body").off("click.eb-start",e).on("click.eb-start",e,{options:t},i):this.off("click.eb-start").on("click.eb-start",{items:this,options:t},i),this}))}(window,document,window.jQuery||i)},165:(t,e,i)=>{var n;window,n=function(t){"use strict";function e(){t.Item.apply(this,arguments)}var i=e.prototype=Object.create(t.Item.prototype),n=i._create,o=(i._create=function(){this.id=this.layout.itemGUID++,n.call(this),this.sortData={}},i.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var t,e=this.layout.options.getSortData,i=this.layout._sorters;for(t in e){var n=i[t];this.sortData[t]=n(this.element,this)}}},i.destroy);return i.destroy=function(){o.apply(this,arguments),this.css({display:""})},e},i=[i(794)],void 0!==(e="function"==typeof(n=n)?n.apply(e,i):n)&&(t.exports=e)},204:function(t,n,e){var o,i,r,s;"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(-1===n.indexOf(e))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(-1!==n)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 o=i[n];e=e||[];var r=this._onceEvents&&this._onceEvents[t];while(o){var s=r&&r[o];if(s){this.off(t,o);delete r[o]}o.apply(this,e);n+=s?0:1;o=i[n]}return this},t})?(r={id:"ev-emitter/ev-emitter",exports:{},loaded:!1},o=i.call(r.exports,e,r.exports,r),r.loaded=!0,void 0===o&&(o=r.exports)):o=i,function(e,i){"use strict";s=[o],void 0!==(s=function(t){return i(e,t)}.apply(n,s))&&(t.exports=s)}(window,function(e,t){var n=e.jQuery,o=e.console;function r(t,e){for(var i in e)t[i]=e[i];return t}function s(t,e,i){if(!(this instanceof s))return new s(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=r({},this.options),"function"==typeof e?i=e:r(this.options,e),i&&this.on("always",i),this.getImages(),n&&(this.jqDeferred=new n.Deferred),setTimeout(function(){this.check()}.bind(this))}(s.prototype=Object.create(t.prototype)).options={},s.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},s.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&a[e]){for(var i=t.querySelectorAll("img"),n=0;n<i.length;n++){var o=i[n];this.addImage(o)}if("string"==typeof this.options.background)for(var r=t.querySelectorAll(this.options.background),n=0;n<r.length;n++){var s=r[n];this.addElementBackgroundImages(s)}}};var a={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 s.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(e.backgroundImage);null!==n;){var o=n&&n[2];o&&this.addBackground(o,t),n=i.exec(e.backgroundImage)}},s.prototype.addImage=function(t){t=new i(t);this.images.push(t)},s.prototype.addBackground=function(t,e){t=new l(t,e);this.images.push(t)},s.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()},s.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&&o&&o.log("progress: "+i,t,e)},s.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.pendingSrc||this.img.currentSrc||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])},(s.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&((n=t).fn.enviraImagesLoaded=function(t,e){return new s(this,t,e).jqDeferred.promise(n(this))})})(),s})},968:function(t,n,o){var e,i,r,s,a,l,c,h,d,u,p,g,f,v,m,b,y,x,_,w,S,C,I,T;function E(t){return(E="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(e,i){"use strict";_=[o(311)],void 0!==(w=function(t){i(e,t)}.apply(n,_))&&(t.exports=w)}(window,function(t,e){"use strict";var i=Array.prototype.slice,n=t.console,d=void 0===n?function(){}:function(t){n.error(t)};function o(l,c,h){(h=h||e||t.jQuery)&&(c.prototype.option||(c.prototype.option=function(t){h.isPlainObject(t)&&(this.options=h.extend(!0,this.options,t))}),h.fn[l]=function(t){var e,n,o,r,s,a;return"string"==typeof t?(e=i.call(arguments,1),o=e,s="$()."+l+'("'+(n=t)+'")',(e=this).each(function(t,e){var i,e=h.data(e,l);e?(i=e[n])&&"_"!=n.charAt(0)?(i=i.apply(e,o),r=void 0===r?i:r):d(s+" is not a valid method"):d(l+" not initialized. Cannot call methods, i.e. "+s)}),void 0!==r?r:e):(a=t,this.each(function(t,e){var i=h.data(e,l);i?(i.option(a),i._init()):(i=new c(e,a),h.data(e,l,i))}),this)},r(h))}function r(t){t&&!t.bridget&&(t.bridget=o)}r(e||t.jQuery)}),"function"==typeof(x=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 o=i[n];e=e||[];var r=this._onceEvents&&this._onceEvents[t];while(o){var s=r&&r[o];if(s){this.off(t,o);delete r[o]}o.apply(this,e);n+=s?0:1;o=i[n]}return this},t})?(h={id:"ev-emitter/ev-emitter",exports:{},loaded:!1},e=x.call(h.exports,o,h.exports,h),h.loaded=!0,void 0===e&&(e=h.exports)):e=x,function(){"use strict";_=[],void 0===(i=function(){"use strict";function m(t){var e=parseFloat(t);var i=t.indexOf("%")==-1&&!isNaN(e);return i&&e}function t(){}var i=typeof console=="undefined"?t:function(t){console.error(t)};var b=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];var y=b.length;function x(){var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};for(var e=0;e<y;e++){var i=b[e];t[i]=0}return t}function _(t){var e=getComputedStyle(t);if(!e)i("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? "+"See http://bit.ly/getsizebug1");return e}var n=false;var w;function S(){if(n)return;n=true;var t=document.createElement("div");t.style.width="200px";t.style.padding="1px 2px 3px 4px";t.style.borderStyle="solid";t.style.borderWidth="1px 2px 3px 4px";t.style.boxSizing="border-box";var e=document.body||document.documentElement;e.appendChild(t);var i=_(t);o.isBoxSizeOuter=w=m(i.width)==200;e.removeChild(t)}function o(t){S();if(typeof t=="string")t=document.querySelector(t);if(!t||E(t)!="object"||!t.nodeType)return;var e=_(t);if(e.display=="none")return x();var i={};i.width=t.offsetWidth;i.height=t.offsetHeight;var n=i.isBorderBox=e.boxSizing=="border-box";for(var o=0;o<y;o++){var r=b[o];var s=e[r];var a=parseFloat(s);i[r]=!isNaN(a)?a:0}var l=i.paddingLeft+i.paddingRight;var c=i.paddingTop+i.paddingBottom;var h=i.marginLeft+i.marginRight;var d=i.marginTop+i.marginBottom;var u=i.borderLeftWidth+i.borderRightWidth;var p=i.borderTopWidth+i.borderBottomWidth;var g=n&&w;var f=m(e.width);if(f!==false)i.width=f+(g?0:l+u);var v=m(e.height);if(v!==false)i.height=v+(g?0:c+p);i.innerWidth=i.width-(l+u);i.innerHeight=i.height-(c+p);i.outerWidth=i.width+h;i.outerHeight=i.height+d;return i}return o}.apply(r={},_))&&(i=r)}(window),function(){"use strict";"function"==typeof(a=function(){"use strict";var n=function(){var t=Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";var e=["webkit","moz","ms","o"];for(var i=0;i<e.length;i++){var n=e[i];var o=n+"MatchesSelector";if(t[o])return o}}();return function t(e,i){return e[n](i)}})?(l={id:"desandro-matches-selector/matches-selector",exports:{},loaded:!1},s=a.call(l.exports,o,l.exports,l),l.loaded=!0,void 0===s&&(s=l.exports)):s=a}(window),S=window,C=function(i,r){var l={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e},makeArray:function(t){var e=[];if(Array.isArray(t))e=t;else if(t&&"number"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e},removeFrom:function(t,e){e=t.indexOf(e);-1!=e&&t.splice(e,1)},getParent:function(t,e){for(;t!=document.body;)if(t=t.parentNode,r(t,e))return t},getQueryElement:function(t){return"string"==typeof t?document.querySelector(t):t},handleEvent:function(t){var e="on"+t.type;this[e]&&this[e](t)},filterFindElements:function(t,n){t=l.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement)if(n){r(t,n)&&o.push(t);for(var e=t.querySelectorAll(n),i=0;i<e.length;i++)o.push(e[i])}else o.push(t)}),o},debounceMethod:function(t,e,n){var o=t.prototype[e],r=e+"Timeout";t.prototype[e]=function(){var t=this[r],e=(t&&clearTimeout(t),arguments),i=this;this[r]=setTimeout(function(){o.apply(i,e),delete i[r]},n||100)}},docReady:function(t){"complete"==document.readyState?t():document.addEventListener("DOMContentLoaded",t)},toDashed:function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()}},c=i.console;return l.htmlInit=function(s,a){l.docReady(function(){var t=l.toDashed(a),n="data-"+t,e=document.querySelectorAll("["+n+"]"),t=document.querySelectorAll(".js-"+t),e=l.makeArray(e).concat(l.makeArray(t)),o=n+"-options",r=i.jQuery;e.forEach(function(e){var t,i=e.getAttribute(n)||e.getAttribute(o);try{t=i&&JSON.parse(i)}catch(t){return void(c&&c.error("Error parsing "+n+" on "+e.className+": "+t))}i=new s(e,t);r&&r.data(e,a,i)})})},l},_=[s],void 0===(c=function(t){return C(S,t)}.apply(h={},_))&&(c=h),window,x=[e,i],"function"==typeof(m=function(t,e){"use strict";function o(t){for(var e in t)return false;e=null;return true}var i=document.documentElement.style;var n=typeof i.transition=="string"?"transition":"WebkitTransition";var r=typeof i.transform=="string"?"transform":"WebkitTransform";var s={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[n];var a={transform:r,transition:n,transitionDuration:n+"Duration",transitionProperty:n+"Property",transitionDelay:n+"Delay"};function l(t,e){if(!t)return;this.element=t;this.layout=e;this.position={x:0,y:0};this._create()}var c=l.prototype=Object.create(t.prototype);c.constructor=l;c._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}};this.css({position:"absolute"})};c.handleEvent=function(t){var e="on"+t.type;if(this[e])this[e](t)};c.getSize=function(){this.size=e(this.element)};c.css=function(t){var e=this.element.style;for(var i in t){var n=a[i]||i;e[n]=t[i]}};c.getPosition=function(){var t=getComputedStyle(this.element);var e=this.layout._getOption("originLeft");var i=this.layout._getOption("originTop");var n=t[e?"left":"right"];var o=t[i?"top":"bottom"];var r=this.layout.size;var s=n.indexOf("%")!=-1?parseFloat(n)/100*r.width:parseInt(n,10);var a=o.indexOf("%")!=-1?parseFloat(o)/100*r.height:parseInt(o,10);s=isNaN(s)?0:s;a=isNaN(a)?0:a;s-=e?r.paddingLeft:r.paddingRight;a-=i?r.paddingTop:r.paddingBottom;this.position.x=s;this.position.y=a};c.layoutPosition=function(){var t=this.layout.size;var e={};var i=this.layout._getOption("originLeft");var n=this.layout._getOption("originTop");var o=i?"paddingLeft":"paddingRight";var r=i?"left":"right";var s=i?"right":"left";var a=this.position.x+t[o];e[r]=this.getXValue(a);e[s]="";var l=n?"paddingTop":"paddingBottom";var c=n?"top":"bottom";var h=n?"bottom":"top";var d=this.position.y+t[l];e[c]=this.getYValue(d);e[h]="";this.css(e);this.emitEvent("layout",[this])};c.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"};c.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"};c._transitionTo=function(t,e){this.getPosition();var i=this.position.x;var n=this.position.y;var o=parseInt(t,10);var r=parseInt(e,10);var s=o===this.position.x&&r===this.position.y;this.setPosition(t,e);if(s&&!this.isTransitioning){this.layoutPosition();return}var a=t-i;var l=e-n;var c={};c.transform=this.getTranslate(a,l);this.transition({to:c,onTransitionEnd:{transform:this.layoutPosition},isCleaning:true})};c.getTranslate=function(t,e){var i=this.layout._getOption("originLeft");var n=this.layout._getOption("originTop");t=i?t:-t;e=n?e:-e;return"translate3d("+t+"px, "+e+"px, 0)"};c.goTo=function(t,e){this.setPosition(t,e);this.layoutPosition()};c.moveTo=c._transitionTo;c.setPosition=function(t,e){this.position.x=parseInt(t,10);this.position.y=parseInt(e,10)};c._nonTransition=function(t){this.css(t.to);if(t.isCleaning)this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)};c.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration)){this._nonTransition(t);return}var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to){e.ingProperties[i]=true;if(t.isCleaning)e.clean[i]=true}if(t.from){this.css(t.from);var n=this.element.offsetHeight;n=null}this.enableTransition(t.to);this.css(t.to);this.isTransitioning=true};function h(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}var d="opacity,"+h(r);c.enableTransition=function(){if(this.isTransitioning)return;var t=this.layout.options.transitionDuration;t=typeof t=="number"?t+"ms":t;this.css({transitionProperty:d,transitionDuration:t,transitionDelay:this.staggerDelay||0});this.element.addEventListener(s,this,false)};c.onwebkitTransitionEnd=function(t){this.ontransitionend(t)};c.onotransitionend=function(t){this.ontransitionend(t)};var u={"-webkit-transform":"transform"};c.ontransitionend=function(t){if(t.target!==this.element)return;var e=this._transn;var i=u[t.propertyName]||t.propertyName;delete e.ingProperties[i];if(o(e.ingProperties))this.disableTransition();if(i in e.clean){this.element.style[t.propertyName]="";delete e.clean[i]}if(i in e.onEnd){var n=e.onEnd[i];n.call(this);delete e.onEnd[i]}this.emitEvent("transitionEnd",[this])};c.disableTransition=function(){this.removeTransitionStyles();this.element.removeEventListener(s,this,false);this.isTransitioning=false};c._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var p={transitionProperty:"",transitionDuration:"",transitionDelay:""};c.removeTransitionStyles=function(){this.css(p)};c.stagger=function(t){t=isNaN(t)?0:t;this.staggerDelay=t+"ms"};c.removeElem=function(){this.element.parentNode.removeChild(this.element);this.css({display:""});this.emitEvent("remove",[this])};c.remove=function(){if(!n||!parseFloat(this.layout.options.transitionDuration)){this.removeElem();return}this.once("transitionEnd",function(){this.removeElem()});this.hide()};c.reveal=function(){delete this.isHidden;this.css({display:""});var t=this.layout.options;var e={};var i=this.getHideRevealTransitionEndProperty("visibleStyle");e[i]=this.onRevealTransitionEnd;this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:true,onTransitionEnd:e})};c.onRevealTransitionEnd=function(){if(!this.isHidden)this.emitEvent("reveal")};c.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i};c.hide=function(){this.isHidden=true;this.css({display:""});var t=this.layout.options;var e={};var i=this.getHideRevealTransitionEndProperty("hiddenStyle");e[i]=this.onHideTransitionEnd;this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:true,onTransitionEnd:e})};c.onHideTransitionEnd=function(){if(this.isHidden){this.css({display:"none"});this.emitEvent("hide")}};c.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})};return l})?void 0===(d=m.apply(g={},x))&&(d=g):d=m,function(o,r){"use strict";_=[e,i,c,d],void 0===(u=function(t,e,i,n){return r(o,t,e,i,n)}.apply(p={},_))&&(u=p)}(window,function(t,e,o,n,r){"use strict";function i(){}var s=t.console,a=t.jQuery,l=0,c={};function h(t,e){var i=n.getQueryElement(t);i?(this.element=i,a&&(this.$element=a(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e),e=++l,this.element.outlayerGUID=e,(c[e]=this)._create(),this._getOption("initLayout")&&this.layout()):s&&s.error("Bad element for "+this.constructor.namespace+": "+(i||t))}h.namespace="outlayer",h.Item=r,h.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var d=h.prototype;function u(t){function e(){t.apply(this,arguments)}return(e.prototype=Object.create(t.prototype)).constructor=e}n.extend(d,e.prototype),d.option=function(t){n.extend(this.options,t)},d._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},h.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},d._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},d.reloadItems=function(){this.items=this._itemize(this.element.children)},d._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o<e.length;o++){var r=new i(e[o],this);n.push(r)}return n},d._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},d.getItemElements=function(){return this.items.map(function(t){return t.element})},d.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),t=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},d._init=d.layout,d._resetLayout=function(){this.getSize()},d.getSize=function(){this.size=o(this.element)},d._getMeasurement=function(t,e){var i,n=this.options[t];n?("string"==typeof n?i=this.element.querySelector(n):n instanceof HTMLElement&&(i=n),this[t]=i?o(i)[e]:n):this[t]=0},d.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},d._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},d._layoutItems=function(t,i){var n;this._emitCompleteOnItems("layout",t),t&&t.length&&(n=[],t.forEach(function(t){var e=this._getItemLayoutPosition(t);e.item=t,e.isInstant=i||t.isLayoutInstant,n.push(e)},this),this._processLayoutQueue(n))},d._getItemLayoutPosition=function(){return{x:0,y:0}},d._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},d.updateStagger=function(){var t=this.options.stagger;if(null!=t)return this.stagger=function(t){if("number"==typeof t)return t;var t=t.match(/(^\d*\.?\d*)(\w*)/),e=t&&t[1],t=t&&t[2];if(!e.length)return 0;e=parseFloat(e);t=p[t]||1;return e*t}(t),this.stagger;this.stagger=0},d._positionItem=function(t,e,i,n,o){n?t.goTo(e,i):(t.stagger(o*this.stagger),t.moveTo(e,i))},d._postLayout=function(){this.resizeContainer()},d.resizeContainer=function(){var t;!this._getOption("resizeContainer")||(t=this._getContainerSize())&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))},d._getContainerSize=i,d._setContainerMeasure=function(t,e){var i;void 0!==t&&((i=this.size).isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px")},d._emitCompleteOnItems=function(e,t){var i=this;function n(){i.dispatchEvent(e+"Complete",null,[t])}var o,r=t.length;function s(){++o==r&&n()}t&&r?(o=0,t.forEach(function(t){t.once(e,s)})):n()},d.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;this.emitEvent(t,n),a&&(this.$element=this.$element||a(this.element),e?((n=a.Event(e)).type=t,this.$element.trigger(n,i)):this.$element.trigger(t,i))},d.ignore=function(t){t=this.getItem(t);t&&(t.isIgnored=!0)},d.unignore=function(t){t=this.getItem(t);t&&delete t.isIgnored},d.stamp=function(t){(t=this._find(t))&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},d.unstamp=function(t){(t=this._find(t))&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},d._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t)},d._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},d._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},d._manageStamp=i,d._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,t=o(t);return{left:e.left-i.left-t.marginLeft,top:e.top-i.top-t.marginTop,right:i.right-e.right-t.marginRight,bottom:i.bottom-e.bottom-t.marginBottom}},d.handleEvent=n.handleEvent,d.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},d.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},d.onresize=function(){this.resize()},n.debounceMethod(h,"onresize",100),d.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},d.needsResizeLayout=function(){var t=o(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},d.addItems=function(t){t=this._itemize(t);return t.length&&(this.items=this.items.concat(t)),t},d.appended=function(t){t=this.addItems(t);t.length&&(this.layoutItems(t,!0),this.reveal(t))},d.prepended=function(t){var e,t=this._itemize(t);t.length&&(e=this.items.slice(0),this.items=t.concat(e),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(e))},d.reveal=function(t){var i;this._emitCompleteOnItems("reveal",t),t&&t.length&&(i=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*i),t.reveal()}))},d.hide=function(t){var i;this._emitCompleteOnItems("hide",t),t&&t.length&&(i=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*i),t.hide()}))},d.revealItemElements=function(t){t=this.getItems(t);this.reveal(t)},d.hideItemElements=function(t){t=this.getItems(t);this.hide(t)},d.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},d.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){t=this.getItem(t);t&&e.push(t)},this),e},d.remove=function(t){t=this.getItems(t);this._emitCompleteOnItems("remove",t),t&&t.length&&t.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},d.destroy=function(){var t=this.element.style,t=(t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize(),this.element.outlayerGUID);delete c[t],delete this.element.outlayerGUID,a&&a.removeData(this.element,this.constructor.namespace)},h.data=function(t){t=(t=n.getQueryElement(t))&&t.outlayerGUID;return t&&c[t]},h.create=function(t,e){var i=u(h);return i.defaults=n.extend({},h.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},h.compatOptions),i.namespace=t,i.data=h.data,i.Item=u(r),n.htmlInit(i,t),a&&a.bridget&&a.bridget(t,i),i};var p={ms:1,s:1e3};return h.Item=r,h}),window,_=[u],void 0!==(w="function"==typeof(x=function(t){"use strict";function e(){t.Item.apply(this,arguments)}var i=e.prototype=Object.create(t.Item.prototype),n=i._create,o=(i._create=function(){this.id=this.layout.itemGUID++,n.call(this),this.sortData={}},i.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var t,e=this.layout.options.getSortData,i=this.layout._sorters;for(t in e){var n=i[t];this.sortData[t]=n(this.element,this)}}},i.destroy);return i.destroy=function(){o.apply(this,arguments),this.css({display:""})},e})?x.apply(n,_):x)&&(t.exports=w),window,g=[i,u],"function"==typeof(m=function(e,i){"use strict";function n(t){(this.enviratope=t)&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}var o=n.prototype;return["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"].forEach(function(t){o[t]=function(){return i.prototype[t].apply(this.enviratope,arguments)}}),o.needsVerticalResizeLayout=function(){var t=e(this.enviratope.element);return this.enviratope.size&&t&&t.innerHeight!=this.enviratope.size.innerHeight},o._getMeasurement=function(){this.enviratope._getMeasurement.apply(this,arguments)},o.getColumnWidth=function(){this.getSegmentSize("column","Width")},o.getRowHeight=function(){this.getSegmentSize("row","Height")},o.getSegmentSize=function(t,e){var i,t=t+e,n="outer"+e;this._getMeasurement(t,n),this[t]||(i=this.getFirstItemSize(),this[t]=i&&i[n]||this.enviratope.size["inner"+e])},o.getFirstItemSize=function(){var t=this.enviratope.filteredItems[0];return t&&t.element&&e(t.element)},o.layout=function(){this.enviratope.layout.apply(this.enviratope,arguments)},o.getSize=function(){this.enviratope.getSize(),this.size=this.enviratope.size},n.modes={},n.create=function(t,e){function i(){n.apply(this,arguments)}return(i.prototype=Object.create(o)).constructor=i,e&&(i.options=e),n.modes[i.prototype.namespace=t]=i},n})?void 0===(f=m.apply(v={},g))&&(f=v):f=m,window,v=[u,i],"function"==typeof(m=function(t,d){var e=t.create("masonry");e.compatOptions.fitWidth="isFitWidth";e.prototype._resetLayout=function(){this.getSize();this._getMeasurement("columnWidth","outerWidth");this._getMeasurement("gutter","outerWidth");this.measureColumns();this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0};e.prototype.measureColumns=function(){this.getContainerWidth();if(!this.columnWidth){var t=this.items[0];var e=t&&t.element;this.columnWidth=e&&d(e).outerWidth||this.containerWidth}var i=this.columnWidth+=this.gutter;var n=this.containerWidth+this.gutter;var o=n/i;var r=i-n%i;var s=r&&r<1?"round":"floor";o=Math[s](o);this.cols=Math.max(o,1)};e.prototype.getContainerWidth=function(){var t=this._getOption("fitWidth");var e=t?this.element.parentNode:this.element;var i=d(e);this.containerWidth=i&&i.innerWidth};e.prototype._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth;var i=e&&e<1?"round":"ceil";var n=Math[i](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);var o=this._getColGroup(n);var r=Math.min.apply(Math,o);var s=o.indexOf(r);var a={x:this.columnWidth*s,y:r};var l=r+t.size.outerHeight;var c=this.cols+1-o.length;for(var h=0;h<c;h++)this.colYs[s+h]=l;return a};e.prototype._getColGroup=function(t){if(t<2)return this.colYs;var e=[];var i=this.cols+1-t;for(var n=0;n<i;n++){var o=this.colYs.slice(n,n+t);e[n]=Math.max.apply(Math,o)}return e};e.prototype._manageStamp=function(t){var e=d(t);var i=this._getElementOffset(t);var n=this._getOption("originLeft");var o=n?i.left:i.right;var r=o+e.outerWidth;var s=Math.floor(o/this.columnWidth);s=Math.max(0,s);var a=Math.floor(r/this.columnWidth);a-=r%this.columnWidth?0:1;a=Math.min(this.cols-1,a);var l=this._getOption("originTop");var c=(l?i.top:i.bottom)+e.outerHeight;for(var h=s;h<=a;h++)this.colYs[h]=Math.max(c,this.colYs[h])};e.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};if(this._getOption("fitWidth"))t.width=this._getContainerFitWidth();return t};e.prototype._getContainerFitWidth=function(){var t=0;var e=this.cols;while(--e){if(this.colYs[e]!==0)break;t++}return(this.cols-t)*this.columnWidth-this.gutter};e.prototype.needsResizeLayout=function(){var t=this.containerWidth;this.getContainerWidth();return t!=this.containerWidth};return e})?void 0===(y=m.apply(b={},v))&&(y=b):y=m,window,_=[f,y],void 0!==(w="function"==typeof(x=function(t,e){"use strict";var i,t=t.create("masonry"),n=t.prototype,o={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(i in e.prototype)o[i]||(n[i]=e.prototype[i]);var r=n.measureColumns,s=(n.measureColumns=function(){this.items=this.enviratope.filteredItems,r.call(this)},n._getOption);return n._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:s.apply(this.enviratope,arguments)},t})?x.apply(n,_):x)&&(t.exports=w),window,_=[f],void 0!==(w="function"==typeof(x=function(t){"use strict";var e=t.create("fitRows");var i=e.prototype;i._resetLayout=function(){this.x=0;this.y=0;this.maxY=0;this._getMeasurement("gutter","outerWidth")};i._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter;var i=this.enviratope.size.innerWidth+this.gutter;if(this.x!==0&&e+this.x>i){this.x=0;this.y=this.maxY}var n={x:this.x,y:this.y};this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight);this.x+=e;return n};i._getContainerSize=function(){return{height:this.maxY}};return e})?x.apply(n,_):x)&&(t.exports=w),window,_=[f],void 0!==(w="function"==typeof(x=function(t){"use strict";var e=t.create("vertical",{horizontalAlignment:0});var i=e.prototype;i._resetLayout=function(){this.y=0};i._getItemLayoutPosition=function(t){t.getSize();var e=(this.enviratope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment;var i=this.y;this.y+=t.size.outerHeight;return{x:e,y:i}};i._getContainerSize=function(){return{height:this.y}};return e})?x.apply(n,_):x)&&(t.exports=w),I=window,T=function(t,i,e,n,r,o,s){var a,l,c=t.jQuery,h=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},d=i.create("enviratope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0}),t=(d.Item=o,d.LayoutMode=s,d.prototype),u=(t._create=function(){for(var t in this.itemGUID=0,this._sorters={},this._getSorters(),i.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"],s.modes)this._initLayoutMode(t)},t.reloadItems=function(){this.itemGUID=0,i.prototype.reloadItems.call(this)},t._itemize=function(){for(var t=i.prototype._itemize.apply(this,arguments),e=0;e<t.length;e++)t[e].id=this.itemGUID++;return this._updateItemsSortData(t),t},t._initLayoutMode=function(t){var e=s.modes[t],i=this.options[t]||{};this.options[t]=e.options?r.extend(e.options,i):i,this.modes[t]=new e(this)},t.layout=function(){!this._isLayoutInited&&this._getOption("initLayout")?this.arrange():this._layout()},t._layout=function(){var t=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},t.arrange=function(t){this.option(t),this._getIsInstant();t=this._filter(this.items);this.filteredItems=t.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[t]):this._hideReveal(t),this._sort(),this._layout()},t._init=t.arrange,t._hideReveal=function(t){this.reveal(t.needReveal),this.hide(t.needHide)},t._getIsInstant=function(){var t=this._getOption("layoutInstant"),t=void 0!==t?t:!this._isLayoutInited;return this._isInstant=t},t._bindArrangeComplete=function(){var t,e,i,n=this;function o(){t&&e&&i&&n.dispatchEvent("arrangeComplete",null,[n.filteredItems])}this.once("layoutComplete",function(){t=!0,o()}),this.once("hideComplete",function(){e=!0,o()}),this.once("revealComplete",function(){i=!0,o()})},t._filter=function(t){for(var e=this.options.filter,i=[],n=[],o=[],r=this._getFilterTest(e||"*"),s=0;s<t.length;s++){var a,l=t[s];l.isIgnored||((a=r(l))&&i.push(l),a&&l.isHidden?n.push(l):a||l.isHidden||o.push(l))}return{matches:i,needReveal:n,needHide:o}},t._getFilterTest=function(e){return c&&this.options.isJQueryFiltering?function(t){return c(t.element).is(e)}:"function"==typeof e?function(t){return e(t.element)}:function(t){return n(t.element,e)}},t.updateSortData=function(t){t=t?(t=r.makeArray(t),this.getItems(t)):this.items;this._getSorters(),this._updateItemsSortData(t)},t._getSorters=function(){var t,e=this.options.getSortData;for(t in e){var i=e[t];this._sorters[t]=u(i)}},t._updateItemsSortData=function(t){for(var e=t&&t.length,i=0;e&&i<e;i++)t[i].updateSortData()},function(t){if("string"!=typeof t)return t;var e=h(t).split(" "),i=e[0],n=i.match(/^\[(.+)\]$/),o=function(e,i){if(e)return function(t){return t.getAttribute(e)};return function(t){t=t.querySelector(i);return t&&t.textContent}}(n&&n[1],i),r=d.sortDataParsers[e[1]];return t=r?function(t){return t&&r(o(t))}:function(t){return t&&o(t)}});function p(t){return a.apply(this,arguments)}function g(t){return l.apply(this,arguments)}d.sortDataParsers={parseInt:(l=function(t){return parseInt(t,10)},g.toString=function(){return l.toString()},g),parseFloat:(a=function(t){return parseFloat(t)},p.toString=function(){return a.toString()},p)},t._sort=function(){var t,s,a,e=this.options.sortBy;e&&(t=[].concat.apply(e,this.sortHistory),s=t,a=this.options.sortAscending,this.filteredItems.sort(function(t,e){for(var i=0;i<s.length;i++){var n=s[i],o=t.sortData[n],r=e.sortData[n];if(r<o||o<r)return(r<o?1:-1)*((void 0!==a[n]?a[n]:a)?1:-1)}return 0}),e!=this.sortHistory[0]&&this.sortHistory.unshift(e))},t._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(e)return e.options=this.options[t],e;throw new Error("No layout mode: "+t)},t._resetLayout=function(){i.prototype._resetLayout.call(this),this._mode()._resetLayout()},t._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},t._manageStamp=function(t){this._mode()._manageStamp(t)},t._getContainerSize=function(){return this._mode()._getContainerSize()},t.needsResizeLayout=function(){return this._mode().needsResizeLayout()},t.appended=function(t){var t=this.addItems(t);t.length&&(t=this._filterRevealAdded(t),this.filteredItems=this.filteredItems.concat(t))},t.prepended=function(t){var e,t=this._itemize(t);t.length&&(this._resetLayout(),this._manageStamps(),e=this._filterRevealAdded(t),this.layoutItems(this.filteredItems),this.filteredItems=e.concat(this.filteredItems),this.items=t.concat(this.items))},t._filterRevealAdded=function(t){t=this._filter(t);return this.hide(t.needHide),this.reveal(t.matches),this.layoutItems(t.matches,!0),t.matches},t.insert=function(t){var e=this.addItems(t);if(e.length){for(var i,n=e.length,o=0;o<n;o++)i=e[o],this.element.appendChild(i.element);t=this._filter(e).matches;for(o=0;o<n;o++)e[o].isLayoutInstant=!0;for(this.arrange(),o=0;o<n;o++)delete e[o].isLayoutInstant;this.reveal(t)}};var f=t.remove;return t.remove=function(t){t=r.makeArray(t);for(var e=this.getItems(t),i=(f.call(this,t),e&&e.length),n=0;i&&n<i;n++){var o=e[n];r.removeFrom(this.filteredItems,o)}},t.shuffle=function(){for(var t=0;t<this.items.length;t++)this.items[t].sortData.random=Math.random();this.options.sortBy="random",this._sort(),this._layout()},t._noTransition=function(t,e){var i=this.options.transitionDuration,t=(this.options.transitionDuration=0,t.apply(this,e));return this.options.transitionDuration=i,t},t.getFilteredItemElements=function(){return this.filteredItems.map(function(t){return t.element})},d},_=[u,i,s,c,o(165),o(477),o(245),o(620),o(175)],void 0!==(w=function(t,e,i,n,o,r){return T(I,t,0,i,n,o,r)}.apply(n,_))&&(t.exports=w)},59:(t,e,i)=>{var h,n,i=i(311);function o(){return h("body").height()>h(window).height()}function r(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:h('<div class="spinner"><span></span><span></span><span></span></div>'),intervalId:null},this.checkWidthIntervalId=null,this.galleryWidth=t.width(),this.$gallery=t}h=i,r.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]]},r.prototype.removeSuffix=function(t,e){return t.substring(0,t.length-e.length)},r.prototype.endsWith=function(t,e){return-1!==t.indexOf(e,t.length-e.length)},r.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""},r.prototype.newSrc=function(t,e,i){var n,o;return this.settings.thumbnailPath?o=this.settings.thumbnailPath(t,e,i):(n=null!==(n=t.match(this.settings.extension))?n[0]:"",o=t.replace(this.settings.extension,""),o=this.removeSuffix(o,this.getUsedSuffix(o)),o+=this.getSuffix(e,i)+n),o},r.prototype.showImg=function(t,e){this.settings.cssAnimation?(t.addClass("entry-visible"),e&&e()):t.stop().fadeTo(this.settings.imagesAnimationDuration,1,e)},r.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},r.prototype.imgFromEntry=function(t){var e=t.find("> img");return 0===(e=0===e.length?t.find("> a > img"):e).length?null:e},r.prototype.captionFromEntry=function(t){t=t.find(".caption");return 0===t.length?null:t},r.prototype.displayEntry=function(t,e,i,n,o,r){t.width(n),t.height(r),t.css("top",i),t.css("left",e);var s,a,l,c=this.imgFromEntry(t);null!==c?(c.css("width",n),c.css("height",o),c.css("margin-left",-n/2),c.css("margin-top",-o/2),s=c.attr("src"),a=this.newSrc(s,n,o),c.one("error",function(){c.attr("src",c.data("jg.originalSrc"))}),l=function(){s!==a&&c.attr("src",a)},"skipped"===t.data("jg.loaded")?this.onImageEvent(s,h.proxy(function(){this.showImg(t,l),t.data("jg.loaded",!0)},this)):this.showImg(t,l)):this.showImg(t),this.displayEntryCaption(t)},r.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=h('<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)},r.prototype.isValidCaption=function(t){return void 0!==t&&0<t.length},r.prototype.onEntryMouseEnterForCaption=function(t){t=this.captionFromEntry(h(t.currentTarget));this.settings.cssAnimation?void 0!==t&&null!=t&&t.addClass("caption-visible").removeClass("caption-hidden"):void 0!==t&&null!=t&&t.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.visibleOpacity)},r.prototype.onEntryMouseLeaveForCaption=function(t){t=this.captionFromEntry(h(t.currentTarget));this.settings.cssAnimation?void 0!==t&&null!=t&&t.removeClass("caption-visible").removeClass("caption-hidden"):void 0!==t&&null!=t&&t.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.nonVisibleOpacity)},r.prototype.addCaptionEventsHandlers=function(t){var e;void 0===t.data("jg.captionMouseEvents")&&(e={mouseenter:h.proxy(this.onEntryMouseEnterForCaption,this),mouseleave:h.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))},r.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"))},r.prototype.prepareBuildingRow=function(t){var e,i,n,o,r=!0,s=0,a=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,l=a/this.buildingRow.aspectRatio,c=this.settings.rowHeight,h=this.buildingRow.width/a>this.settings.justifyThreshold;if(t&&"hide"===this.settings.lastRow&&!h){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&&!h&&"justify"!==this.settings.lastRow&&"hide"!==this.settings.lastRow&&(r=!1,0<this.rows&&(r=(c=(this.offY-this.border-this.settings.margins*this.rows)/this.rows)*this.buildingRow.aspectRatio/a>this.settings.justifyThreshold)),e=0;e<this.buildingRow.entriesBuff.length;e++)o=(i=this.buildingRow.entriesBuff[e]).data("jg.width")/i.data("jg.height"),o=r?(n=e===this.buildingRow.entriesBuff.length-1?a:l*o,l):(n=c*o,c),a-=Math.round(n),i.data("jg.jwidth",Math.round(n)),i.data("jg.jheight",Math.ceil(o)),(0===e||o<s)&&(s=o);return this.settings.fixedHeight&&s>this.settings.rowHeight&&(s=this.settings.rowHeight),this.buildingRow.height=s,r},r.prototype.clearBuildingRow=function(){this.buildingRow.entriesBuff=[],this.buildingRow.aspectRatio=0,this.buildingRow.width=0},n=!(r.prototype.flushRow=function(t){var e,i=this.settings,n=this.border,o=this.prepareBuildingRow(t);if(t&&"hide"===i.lastRow&&-1===o)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 r=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*i.margins,s=0;s<this.buildingRow.entriesBuff.length;s++)r-=(e=this.buildingRow.entriesBuff[s]).data("jg.jwidth");"center"===i.lastRow?n+=r/2:"right"===i.lastRow&&(n+=r)}for(s=0;s<this.buildingRow.entriesBuff.length;s++)e=this.buildingRow.entriesBuff[s],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&&o)&&(this.offY+=this.buildingRow.height+i.margins,this.rows+=1,this.clearBuildingRow(),this.$gallery.trigger("jg.rowflush"))}}),r.prototype.checkWidth=function(){this.checkWidthIntervalId=setInterval(h.proxy(function(){var t=parseFloat(this.$gallery.width());o()===n?Math.abs(t-this.galleryWidth)>this.settings.refreshSensitivity&&(this.galleryWidth=t,this.rewind(),this.startImgAnalyzer(!0)):(n=o(),this.galleryWidth=t)},this),this.settings.refreshTime)},r.prototype.isSpinnerActive=function(){return null!==this.spinner.intervalId},r.prototype.getSpinnerHeight=function(){return this.spinner.$el.innerHeight()},r.prototype.stopLoadingSpinnerAnimation=function(){clearInterval(this.spinner.intervalId),this.spinner.intervalId=null,this.$gallery.height(this.$gallery.height()-this.getSpinnerHeight()),this.spinner.$el.detach()},r.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)},r.prototype.rewind=function(){this.lastAnalyzedIndex=-1,this.offY=this.border,this.rows=0,this.clearBuildingRow()},r.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),h.isFunction(this.settings.sort)?this.modifyEntries(this.sortArray,t):this.settings.randomize&&this.modifyEntries(this.shuffleArray,t),!0)},r.prototype.insertToGallery=function(t){var e=this;h.each(t,function(){h(this).appendTo(e.$gallery)})},r.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},r.prototype.sortArray=function(t){return t.sort(this.settings.sort),this.insertToGallery(t),t},r.prototype.resetFilters=function(t){for(var e=0;e<t.length;e++)h(t[e]).removeClass("jg-filtered");return t},r.prototype.filterArray=function(t){var e=this.settings;return"string"===h.type(e.filter)?t.filter(function(t){t=h(t);return t.is(e.filter)?(t.removeClass("jg-filtered"),!0):(t.addClass("jg-filtered"),!1)}):h.isFunction(e.filter)?t.filter(e.filter):void 0},r.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},r.prototype.destroy=function(){clearInterval(this.checkWidthIntervalId),h.each(this.entries,h.proxy(function(t,e){var e=h(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("envira-justified-gallery"),this.$gallery.data("jg.controller",void 0)},r.prototype.analyzeImages=function(t){for(var e=this.lastAnalyzedIndex+1;e<this.entries.length;e++){var i=h(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,o=i.data("jg.width")/i.data("jg.height");if(n/(this.buildingRow.aspectRatio+o)<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+=o,this.buildingRow.width+=o*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)},r.prototype.stopImgAnalyzerStarter=function(){this.yield.flushed=0,null!==this.imgAnalyzerTimeout&&clearTimeout(this.imgAnalyzerTimeout)},r.prototype.startImgAnalyzer=function(t){var e=this;this.stopImgAnalyzerStarter(),this.imgAnalyzerTimeout=setTimeout(function(){e.analyzeImages(t)},.001)},r.prototype.onImageEvent=function(t,e,i){var n,o;(e||i)&&(n=new Image,o=h(n),e&&o.one("load",function(){o.off("load error"),e(n)}),i&&o.one("error",function(){o.off("load error"),i(n)}),n.src=t)},r.prototype.init=function(){var r=!1,s=!1,a=this;h.each(this.entries,function(t,e){var i=h(e),e=a.imgFromEntry(i);if(i.addClass("jg-entry"),!0!==i.data("jg.loaded")&&"skipped"!==i.data("jg.loaded"))if(null!==a.settings.rel&&i.attr("rel",a.settings.rel),null!==a.settings.target&&i.attr("target",a.settings.target),null!==e){var n=a.extractImgSrcFromImage(e);if(e.attr("src",n),!1===a.settings.waitThumbnailsLoad){var o=parseFloat(e.attr("width")),e=parseFloat(e.attr("height"));if(!isNaN(o)&&!isNaN(e))return i.data("jg.width",o),i.data("jg.height",e),i.data("jg.loaded","skipped"),s=!0,a.startImgAnalyzer(!1),!0}i.data("jg.loaded",!1),r=!0,a.isSpinnerActive()||a.startLoadingSpinnerAnimation(),a.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),a.startImgAnalyzer(!1)},function(){i.data("jg.loaded","error"),a.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)}),r||s||this.startImgAnalyzer(!1),this.checkWidth()},r.prototype.checkOrConvertNumber=function(t,e){if("string"===h.type(t[e])&&(t[e]=parseFloat(t[e])),"number"!==h.type(t[e]))throw e+" must be a number";if(isNaN(t[e]))throw"invalid number for "+e},r.prototype.checkSizeRangesSuffixes=function(){if("object"!==h.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"===h.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},r.prototype.retrieveMaxRowHeight=function(){var t={};if("string"===h.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"!==h.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},r.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"!==h.type(this.settings.cssAnimation))throw"cssAnimation must be a boolean";if("boolean"!==h.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"!==h.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"!==h.type(this.settings.randomize))throw"randomize must be a boolean";if("string"!==h.type(this.settings.selector))throw"selector must be a string";if(!1!==this.settings.sort&&!h.isFunction(this.settings.sort))throw"sort must be false or a comparison function";if(!1!==this.settings.filter&&!h.isFunction(this.settings.filter)&&"string"!==h.type(this.settings.filter))throw"filter must be false, a string or a filter function"},r.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},r.prototype.updateSettings=function(t){this.settings=h.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()},h.fn.justifiedGallery=function(n){return this.each(function(t,e){var e=h(e),i=(e.addClass("envira-justified-gallery"),e.data("jg.controller"));if(void 0===i){if(null!=n&&"object"!==h.type(n)){if("destroy"===n)return;throw"The argument must be an object"}i=new r(e,h.extend({},h.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()})},h.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:100,refreshSensitivity:0,randomize:!1,sort:!1,filter:!1,selector:"> a, > div:not(.spinner)"}},477:(t,e,i)=>{var n;window,n=function(e,i){"use strict";function n(t){(this.isotope=t)&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}var o=n.prototype;return["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"].forEach(function(t){o[t]=function(){return i.prototype[t].apply(this.isotope,arguments)}}),o.needsVerticalResizeLayout=function(){var t=e(this.isotope.element);return this.isotope.size&&t&&t.innerHeight!=this.isotope.size.innerHeight},o._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},o.getColumnWidth=function(){this.getSegmentSize("column","Width")},o.getRowHeight=function(){this.getSegmentSize("row","Height")},o.getSegmentSize=function(t,e){var i,t=t+e,n="outer"+e;this._getMeasurement(t,n),this[t]||(i=this.getFirstItemSize(),this[t]=i&&i[n]||this.isotope.size["inner"+e])},o.getFirstItemSize=function(){var t=this.isotope.filteredItems[0];return t&&t.element&&e(t.element)},o.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},o.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},n.modes={},n.create=function(t,e){function i(){n.apply(this,arguments)}return(i.prototype=Object.create(o)).constructor=i,e&&(i.options=e),n.modes[i.prototype.namespace=t]=i},n},i=[i(131),i(794)],void 0!==(e="function"==typeof(n=n)?n.apply(e,i):n)&&(t.exports=e)},620:(t,e,i)=>{var n;window,n=function(t){"use strict";var t=t.create("fitRows"),e=t.prototype;return e._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},e._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter,i=(0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY),{x:this.x,y:this.y});return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,i},e._getContainerSize=function(){return{height:this.maxY}},t},i=[i(477)],void 0!==(e="function"==typeof(n=n)?n.apply(e,i):n)&&(t.exports=e)},245:(t,e,i)=>{var n;window,n=function(t,e){"use strict";var i,t=t.create("masonry"),n=t.prototype,o={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(i in e.prototype)o[i]||(n[i]=e.prototype[i]);var r=n.measureColumns,s=(n.measureColumns=function(){this.items=this.isotope.filteredItems,r.call(this)},n._getOption);return n._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:s.apply(this.isotope,arguments)},t},i=[i(477),i(751)],void 0!==(e="function"==typeof(n=n)?n.apply(e,i):n)&&(t.exports=e)},175:(t,e,i)=>{var n;window,n=function(t){"use strict";var t=t.create("vertical",{horizontalAlignment:0}),e=t.prototype;return e._resetLayout=function(){this.y=0},e._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},e._getContainerSize=function(){return{height:this.y}},t},i=[i(477)],void 0!==(e="function"==typeof(n=n)?n.apply(e,i):n)&&(t.exports=e)},613:(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"],p=Array.prototype.slice,g,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=p.call(arguments,1),n=0,o=0,r=0,s=0,a=0,l=0;t=u.event.fix(e);t.type="mousewheel";if("detail"in e)r=e.detail*-1;if("wheelDelta"in e)r=e.wheelDelta;if("wheelDeltaY"in e)r=e.wheelDeltaY;if("wheelDeltaX"in e)o=e.wheelDeltaX*-1;if("axis"in e&&e.axis===e.HORIZONTAL_AXIS){o=r*-1;r=0}n=r===0?o:r;if("deltaY"in e){r=e.deltaY*-1;n=r}if("deltaX"in e){o=e.deltaX;if(r===0)n=o*-1}if(r===0&&o===0)return;if(e.deltaMode===1){var c=u.data(this,"mousewheel-line-height");n*=c;r*=c;o*=c}else if(e.deltaMode===2){var h=u.data(this,"mousewheel-page-height");n*=h;r*=h;o*=h}s=Math.max(Math.abs(r),Math.abs(o));if(!f||s<f){f=s;if(b(e,s))f/=40}if(b(e,s)){n/=40;o/=40;r/=40}n=Math[n>=1?"floor":"ceil"](n/f);o=Math[o>=1?"floor":"ceil"](o/f);r=Math[r>=1?"floor":"ceil"](r/f);if(v.settings.normalizeOffset&&this.getBoundingClientRect){var d=this.getBoundingClientRect();a=t.clientX-d.left;l=t.clientY-d.top}t.deltaX=o;t.deltaY=r;t.deltaFactor=f;t.offsetX=a;t.offsetY=l;t.deltaMode=0;i.unshift(t,n,o,r);if(g)clearTimeout(g);g=setTimeout(m,200);return(u.event.dispatch||u.event.handle).apply(this,i)}function m(){f=null}function b(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)},362:()=>{Object.entries||(Object.entries=function(t){for(var e=Object.keys(t),i=e.length,n=new Array(i);i--;)n[i]=[e[i],t[e[i]]];return n})},741:(t,e,i)=>{var n;!function(){"use strict";void 0!==(n="function"==typeof(n=function(){"use strict";var n=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";var e=["webkit","moz","ms","o"];for(var i=0;i<e.length;i++){var n=e[i];var o=n+"MatchesSelector";if(t[o])return o}}();return function t(e,i){return e[n](i)}})?n.call(e,i,e,t):n)&&(t.exports=n)}(window)},158:function(t,e,i){var n;void 0!==(i="function"==typeof(n=function(){"use strict";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;i=i.slice(0);e=e||[];var n=this._onceEvents&&this._onceEvents[t];for(var o=0;o<i.length;o++){var r=i[o];var s=n&&n[r];if(s){this.off(t,r);delete n[r]}r.apply(this,e)}return this},e.allOff=function(){delete this._events;delete this._onceEvents},t})?n.call(e,i,e,t):n)&&(t.exports=i)},131:t=>{var e,i;e=window,i=function(){function h(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}let d=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];d.length;return function(t){if((t="string"==typeof t?document.querySelector(t):t)&&"object"==typeof t&&t.nodeType){let n=getComputedStyle(t);if("none"==n.display){let e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};return d.forEach(t=>{e[t]=0}),e}{let i={};i.width=t.offsetWidth,i.height=t.offsetHeight;var t=i.isBorderBox="border-box"==n.boxSizing,e=(d.forEach(t=>{var e=n[t],e=parseFloat(e);i[t]=isNaN(e)?0:e}),i.paddingLeft+i.paddingRight),o=i.paddingTop+i.paddingBottom,r=i.marginLeft+i.marginRight,s=i.marginTop+i.marginBottom,a=i.borderLeftWidth+i.borderRightWidth,l=i.borderTopWidth+i.borderBottomWidth,c=h(n.width),c=(!1!==c&&(i.width=c+(t?0:e+a)),h(n.height));return!1!==c&&(i.height=c+(t?0:o+l)),i.innerWidth=i.width-(e+a),i.innerHeight=i.height-(o+l),i.outerWidth=i.width+r,i.outerHeight=i.height+s,i}}}},t.exports?t.exports=i():e.getSize=i()},751:(t,e,i)=>{var n;window,n=function(t,a){"use strict";var t=t.create("masonry"),e=(t.compatOptions.fitWidth="isFitWidth",t.prototype);return e._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},e.measureColumns=function(){this.getContainerWidth(),this.columnWidth||(t=(t=this.items[0])&&t.element,this.columnWidth=t&&a(t).outerWidth||this.containerWidth);var t=this.columnWidth+=this.gutter,e=this.containerWidth+this.gutter,i=e/t,e=t-e%t,i=Math[e&&e<1?"round":"floor"](i);this.cols=Math.max(i,1)},e.getContainerWidth=function(){var t=this._getOption("fitWidth")?this.element.parentNode:this.element,t=a(t);this.containerWidth=t&&t.innerWidth},e._getItemLayoutPosition=function(t){t.getSize();for(var e=t.size.outerWidth%this.columnWidth,e=Math[e&&e<1?"round":"ceil"](t.size.outerWidth/this.columnWidth),e=Math.min(e,this.cols),i=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](e,t),n={x:this.columnWidth*i.col,y:i.y},o=i.y+t.size.outerHeight,r=e+i.col,s=i.col;s<r;s++)this.colYs[s]=o;return n},e._getTopColPosition=function(t){var t=this._getTopColGroup(t),e=Math.min.apply(Math,t);return{col:t.indexOf(e),y:e}},e._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;n<i;n++)e[n]=this._getColGroupY(n,t);return e},e._getColGroupY=function(t,e){if(e<2)return this.colYs[t];t=this.colYs.slice(t,t+e);return Math.max.apply(Math,t)},e._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,i=1<t&&i+t>this.cols?0:i,e=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=e?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},e._manageStamp=function(t){var e=a(t),t=this._getElementOffset(t),i=this._getOption("originLeft")?t.left:t.right,n=i+e.outerWidth,i=Math.floor(i/this.columnWidth),i=Math.max(0,i),o=Math.floor(n/this.columnWidth);o-=n%this.columnWidth?0:1;for(var o=Math.min(this.cols-1,o),r=(this._getOption("originTop")?t.top:t.bottom)+e.outerHeight,s=i;s<=o;s++)this.colYs[s]=Math.max(r,this.colYs[s])},e._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},e._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},e.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},t},i=[i(794),i(291)],void 0!==(e="function"==typeof(n=n)?n.apply(e,i):n)&&(t.exports=e)},291:(t,e,i)=>{var n;window,void 0!==(i="function"==typeof(n=function(){"use strict";function m(t){var e=parseFloat(t);var i=t.indexOf("%")==-1&&!isNaN(e);return i&&e}function t(){}var i=typeof console=="undefined"?t:function(t){console.error(t)};var b=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];var y=b.length;function x(){var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};for(var e=0;e<y;e++){var i=b[e];t[i]=0}return t}function _(t){var e=getComputedStyle(t);if(!e)i("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? "+"See https://bit.ly/getsizebug1");return e}var n=false;var w;function S(){if(n)return;n=true;var t=document.createElement("div");t.style.width="200px";t.style.padding="1px 2px 3px 4px";t.style.borderStyle="solid";t.style.borderWidth="1px 2px 3px 4px";t.style.boxSizing="border-box";var e=document.body||document.documentElement;e.appendChild(t);var i=_(t);w=Math.round(m(i.width))==200;o.isBoxSizeOuter=w;e.removeChild(t)}function o(t){S();if(typeof t=="string")t=document.querySelector(t);if(!t||typeof t!="object"||!t.nodeType)return;var e=_(t);if(e.display=="none")return x();var i={};i.width=t.offsetWidth;i.height=t.offsetHeight;var n=i.isBorderBox=e.boxSizing=="border-box";for(var o=0;o<y;o++){var r=b[o];var s=e[r];var a=parseFloat(s);i[r]=!isNaN(a)?a:0}var l=i.paddingLeft+i.paddingRight;var c=i.paddingTop+i.paddingBottom;var h=i.marginLeft+i.marginRight;var d=i.marginTop+i.marginBottom;var u=i.borderLeftWidth+i.borderRightWidth;var p=i.borderTopWidth+i.borderBottomWidth;var g=n&&w;var f=m(e.width);if(f!==false)i.width=f+(g?0:l+u);var v=m(e.height);if(v!==false)i.height=v+(g?0:c+p);i.innerWidth=i.width-(l+u);i.innerHeight=i.height-(c+p);i.outerWidth=i.width+h;i.outerHeight=i.height+d;return i}return o})?n.call(e,i,e,t):n)&&(t.exports=i)},652:(t,e,i)=>{var n;window,n=function(t,e){"use strict";var i=document.documentElement.style,n="string"==typeof i.transition?"transition":"WebkitTransition",i="string"==typeof i.transform?"transform":"WebkitTransform",o={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[n],r={transform:i,transition:n,transitionDuration:n+"Duration",transitionProperty:n+"Property",transitionDelay:n+"Delay"};function s(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}t=s.prototype=Object.create(t.prototype);t.constructor=s,t._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},t.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},t.getSize=function(){this.size=e(this.element)},t.css=function(t){var e,i=this.element.style;for(e in t)i[r[e]||e]=t[e]},t.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],t=t[i?"top":"bottom"],o=parseFloat(n),r=parseFloat(t),s=this.layout.size;-1!=n.indexOf("%")&&(o=o/100*s.width),-1!=t.indexOf("%")&&(r=r/100*s.height),o=isNaN(o)?0:o,r=isNaN(r)?0:r,o-=e?s.paddingLeft:s.paddingRight,r-=i?s.paddingTop:s.paddingBottom,this.position.x=o,this.position.y=r},t.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),o=i?"right":"left",r=this.position.x+t[i?"paddingLeft":"paddingRight"],i=(e[i?"left":"right"]=this.getXValue(r),e[o]="",n?"paddingTop":"paddingBottom"),r=n?"bottom":"top",o=this.position.y+t[i];e[n?"top":"bottom"]=this.getYValue(o),e[r]="",this.css(e),this.emitEvent("layout",[this])},t.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},t.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},t._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=t==this.position.x&&e==this.position.y;this.setPosition(t,e),o&&!this.isTransitioning?this.layoutPosition():((o={}).transform=this.getTranslate(t-i,e-n),this.transition({to:o,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0}))},t.getTranslate=function(t,e){return"translate3d("+(t=this.layout._getOption("originLeft")?t:-t)+"px, "+(e=this.layout._getOption("originTop")?e:-e)+"px, 0)"},t.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},t.moveTo=t._transitionTo,t.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},t._nonTransition=function(t){for(var e in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[e].call(this)},t.transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var e,i=this._transn;for(e in t.onTransitionEnd)i.onEnd[e]=t.onTransitionEnd[e];for(e in t.to)i.ingProperties[e]=!0,t.isCleaning&&(i.clean[e]=!0);t.from&&(this.css(t.from),this.element.offsetHeight,0),this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)};var a="opacity,"+i.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()}),l=(t.enableTransition=function(){var t;this.isTransitioning||(t="number"==typeof(t=this.layout.options.transitionDuration)?t+"ms":t,this.css({transitionProperty:a,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(o,this,!1))},t.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},t.onotransitionend=function(t){this.ontransitionend(t)},{"-webkit-transform":"transform"}),c=(t.ontransitionend=function(t){var e,i;t.target===this.element&&(e=this._transn,i=l[t.propertyName]||t.propertyName,delete e.ingProperties[i],function(t){for(var e in t)return;return 1}(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[i]),i in e.onEnd&&(e.onEnd[i].call(this),delete e.onEnd[i]),this.emitEvent("transitionEnd",[this]))},t.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(o,this,!1),this.isTransitioning=!1},t._removeStyles=function(t){var e,i={};for(e in t)i[e]="";this.css(i)},{transitionProperty:"",transitionDuration:"",transitionDelay:""});return t.removeTransitionStyles=function(){this.css(c)},t.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},t.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},t.remove=function(){n&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),this.hide()):this.removeElem()},t.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},t.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},t.getHideRevealTransitionEndProperty=function(t){var e,t=this.layout.options[t];if(t.opacity)return"opacity";for(e in t)return e},t.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},t.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},t.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},s},i=[i(158),i(69)],void 0!==(e="function"==typeof(n=n)?n.apply(e,i):n)&&(t.exports=e)},95:(t,e,i)=>{var n,o;n=window,o=function(i,r){"use strict";var l={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},e=Array.prototype.slice,c=(l.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?e.call(t):[t]},l.removeFrom=function(t,e){e=t.indexOf(e);-1!=e&&t.splice(e,1)},l.getParent=function(t,e){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,r(t,e))return t},l.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},l.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},l.filterFindElements=function(t,n){t=l.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement)if(n){r(t,n)&&o.push(t);for(var e=t.querySelectorAll(n),i=0;i<e.length;i++)o.push(e[i])}else o.push(t)}),o},l.debounceMethod=function(t,e,n){n=n||100;var o=t.prototype[e],r=e+"Timeout";t.prototype[e]=function(){var t=this[r],e=(clearTimeout(t),arguments),i=this;this[r]=setTimeout(function(){o.apply(i,e),delete i[r]},n)}},l.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},l.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()},i.console);return l.htmlInit=function(s,a){l.docReady(function(){var t=l.toDashed(a),n="data-"+t,e=document.querySelectorAll("["+n+"]"),t=document.querySelectorAll(".js-"+t),e=l.makeArray(e).concat(l.makeArray(t)),o=n+"-options",r=i.jQuery;e.forEach(function(e){var t,i=e.getAttribute(n)||e.getAttribute(o);try{t=i&&JSON.parse(i)}catch(t){return void(c&&c.error("Error parsing "+n+" on "+e.className+": "+t))}i=new s(e,t);r&&r.data(e,a,i)})})},l},i=[i(741)],void 0!==(e=function(t){return o(n,t)}.apply(e,i))&&(t.exports=e)},69:(t,e,i)=>{var n;window,void 0!==(i="function"==typeof(n=function(){"use strict";function m(t){var e=parseFloat(t);var i=t.indexOf("%")==-1&&!isNaN(e);return i&&e}function t(){}var i=typeof console=="undefined"?t:function(t){console.error(t)};var b=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];var y=b.length;function x(){var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};for(var e=0;e<y;e++){var i=b[e];t[i]=0}return t}function _(t){var e=getComputedStyle(t);if(!e)i("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? "+"See https://bit.ly/getsizebug1");return e}var n=false;var w;function S(){if(n)return;n=true;var t=document.createElement("div");t.style.width="200px";t.style.padding="1px 2px 3px 4px";t.style.borderStyle="solid";t.style.borderWidth="1px 2px 3px 4px";t.style.boxSizing="border-box";var e=document.body||document.documentElement;e.appendChild(t);var i=_(t);w=Math.round(m(i.width))==200;o.isBoxSizeOuter=w;e.removeChild(t)}function o(t){S();if(typeof t=="string")t=document.querySelector(t);if(!t||typeof t!="object"||!t.nodeType)return;var e=_(t);if(e.display=="none")return x();var i={};i.width=t.offsetWidth;i.height=t.offsetHeight;var n=i.isBorderBox=e.boxSizing=="border-box";for(var o=0;o<y;o++){var r=b[o];var s=e[r];var a=parseFloat(s);i[r]=!isNaN(a)?a:0}var l=i.paddingLeft+i.paddingRight;var c=i.paddingTop+i.paddingBottom;var h=i.marginLeft+i.marginRight;var d=i.marginTop+i.marginBottom;var u=i.borderLeftWidth+i.borderRightWidth;var p=i.borderTopWidth+i.borderBottomWidth;var g=n&&w;var f=m(e.width);if(f!==false)i.width=f+(g?0:l+u);var v=m(e.height);if(v!==false)i.height=v+(g?0:c+p);i.innerWidth=i.width-(l+u);i.innerHeight=i.height-(c+p);i.outerWidth=i.width+h;i.outerHeight=i.height+d;return i}return o})?n.call(e,i,e,t):n)&&(t.exports=i)},794:(t,e,i)=>{var n;!function(o,r){"use strict";n=[i(158),i(69),i(95),i(652)],void 0!==(n=function(t,e,i,n){return r(o,t,e,i,n)}.apply(e,n))&&(t.exports=n)}(window,function(t,e,o,n,r){"use strict";function i(){}var s=t.console,a=t.jQuery,l=0,c={};function h(t,e){var i=n.getQueryElement(t);i?(this.element=i,a&&(this.$element=a(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e),e=++l,this.element.outlayerGUID=e,(c[e]=this)._create(),this._getOption("initLayout")&&this.layout()):s&&s.error("Bad element for "+this.constructor.namespace+": "+(i||t))}h.namespace="outlayer",h.Item=r,h.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var d=h.prototype;function u(t){function e(){t.apply(this,arguments)}return(e.prototype=Object.create(t.prototype)).constructor=e}n.extend(d,e.prototype),d.option=function(t){n.extend(this.options,t)},d._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},h.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},d._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},d.reloadItems=function(){this.items=this._itemize(this.element.children)},d._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o<e.length;o++){var r=new i(e[o],this);n.push(r)}return n},d._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},d.getItemElements=function(){return this.items.map(function(t){return t.element})},d.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),t=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},d._init=d.layout,d._resetLayout=function(){this.getSize()},d.getSize=function(){this.size=o(this.element)},d._getMeasurement=function(t,e){var i,n=this.options[t];n?("string"==typeof n?i=this.element.querySelector(n):n instanceof HTMLElement&&(i=n),this[t]=i?o(i)[e]:n):this[t]=0},d.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},d._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},d._layoutItems=function(t,i){var n;this._emitCompleteOnItems("layout",t),t&&t.length&&(n=[],t.forEach(function(t){var e=this._getItemLayoutPosition(t);e.item=t,e.isInstant=i||t.isLayoutInstant,n.push(e)},this),this._processLayoutQueue(n))},d._getItemLayoutPosition=function(){return{x:0,y:0}},d._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},d.updateStagger=function(){var t=this.options.stagger;if(null!=t)return this.stagger=function(t){if("number"==typeof t)return t;var t=t.match(/(^\d*\.?\d*)(\w*)/),e=t&&t[1],t=t&&t[2];if(!e.length)return 0;e=parseFloat(e);t=p[t]||1;return e*t}(t),this.stagger;this.stagger=0},d._positionItem=function(t,e,i,n,o){n?t.goTo(e,i):(t.stagger(o*this.stagger),t.moveTo(e,i))},d._postLayout=function(){this.resizeContainer()},d.resizeContainer=function(){var t;!this._getOption("resizeContainer")||(t=this._getContainerSize())&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))},d._getContainerSize=i,d._setContainerMeasure=function(t,e){var i;void 0!==t&&((i=this.size).isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px")},d._emitCompleteOnItems=function(e,t){var i=this;function n(){i.dispatchEvent(e+"Complete",null,[t])}var o,r=t.length;function s(){++o==r&&n()}t&&r?(o=0,t.forEach(function(t){t.once(e,s)})):n()},d.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;this.emitEvent(t,n),a&&(this.$element=this.$element||a(this.element),e?((n=a.Event(e)).type=t,this.$element.trigger(n,i)):this.$element.trigger(t,i))},d.ignore=function(t){t=this.getItem(t);t&&(t.isIgnored=!0)},d.unignore=function(t){t=this.getItem(t);t&&delete t.isIgnored},d.stamp=function(t){(t=this._find(t))&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},d.unstamp=function(t){(t=this._find(t))&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},d._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t)},d._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},d._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},d._manageStamp=i,d._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,t=o(t);return{left:e.left-i.left-t.marginLeft,top:e.top-i.top-t.marginTop,right:i.right-e.right-t.marginRight,bottom:i.bottom-e.bottom-t.marginBottom}},d.handleEvent=n.handleEvent,d.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},d.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},d.onresize=function(){this.resize()},n.debounceMethod(h,"onresize",100),d.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},d.needsResizeLayout=function(){var t=o(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},d.addItems=function(t){t=this._itemize(t);return t.length&&(this.items=this.items.concat(t)),t},d.appended=function(t){t=this.addItems(t);t.length&&(this.layoutItems(t,!0),this.reveal(t))},d.prepended=function(t){var e,t=this._itemize(t);t.length&&(e=this.items.slice(0),this.items=t.concat(e),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(e))},d.reveal=function(t){var i;this._emitCompleteOnItems("reveal",t),t&&t.length&&(i=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*i),t.reveal()}))},d.hide=function(t){var i;this._emitCompleteOnItems("hide",t),t&&t.length&&(i=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*i),t.hide()}))},d.revealItemElements=function(t){t=this.getItems(t);this.reveal(t)},d.hideItemElements=function(t){t=this.getItems(t);this.hide(t)},d.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},d.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){t=this.getItem(t);t&&e.push(t)},this),e},d.remove=function(t){t=this.getItems(t);this._emitCompleteOnItems("remove",t),t&&t.length&&t.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},d.destroy=function(){var t=this.element.style,t=(t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize(),this.element.outlayerGUID);delete c[t],delete this.element.outlayerGUID,a&&a.removeData(this.element,this.constructor.namespace)},h.data=function(t){t=(t=n.getQueryElement(t))&&t.outlayerGUID;return t&&c[t]},h.create=function(t,e){var i=u(h);return i.defaults=n.extend({},h.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},h.compatOptions),i.namespace=t,i.data=h.data,i.Item=u(r),n.htmlInit(i,t),a&&a.bridget&&a.bridget(t,i),i};var p={ms:1,s:1e3};return h.Item=r,h})},311:t=>{"use strict";t.exports=jQuery}},n={};function _(t){var e=n[t];if(void 0!==e)return e.exports;e=n[t]={exports:{}};return i[t].call(e.exports,e,e.exports,_),e.exports}_.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return _.d(e,{a:e}),e},_.d=(t,e)=>{for(var i in e)_.o(e,i)&&!_.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},_.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);(()=>{"use strict";_(362),_(613),_(59),_(556),_(204),_(968),_(962),_(390),_(827),_(746),_(850),_(655),_(75);var t=_(496),n=_.n(t),r=_(311),s={init:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document;t.querySelectorAll("a.envira-gallery-bnb-link").forEach(function(e){e.addEventListener("click",function(t){t.preventDefault(),t.stopPropagation();t=e.closest(".envira-layout-bnb--container");s.createOverlay(t)})}),t.querySelectorAll(".envira-layout-bnb--more-link").forEach(function(t){t.addEventListener("click",function(t){t.preventDefault(),t.stopPropagation();var e=t.target,t=(e="BUTTON"!==e.tagName?t.target.parentElement:e).previousSibling;s.createOverlay(t)})})},createOverlay:function(t){var e,i,n,o;document.querySelector("#envira-gallery-bnb-overlay")||(t=t.dataset.uniqueId,t="envira-gallery-bnb-overlay-".concat(t),e=document.querySelector("#".concat(t)),i=document.createElement("div"),n=document.createElement("div"),o=document.createElement("div"),i.id="envira-gallery-bnb-overlay",n.id="envira-gallery-bnb-overlay--container",n.innerHTML='<div class="envira-loader"><div></div><div></div><div></div><div></div></div>',o.id="envira-gallery-bnb-overlay-close-button",o.style.opacity=0,o.innerHTML='<button class="envira-close-button" aria-label="Close Overlay"><svg xmlns="http://www.w3.org/2000/svg" width="30px" height="30px" viewBox="0 0 768 768"><path d="M607.5 205.5L429 384l178.5 178.5-45 45L384 429 205.5 607.5l-45-45L339 384 160.5 205.5l45-45L384 339l178.5-178.5z"></path></svg></button>',i.appendChild(n),document.body.insertBefore(i,document.body.firstChild),document.body.scrollIntoView(),setTimeout(function(){i.style.marginTop=0,i.style.minHeight=document.body.scrollHeight+"px",n.innerHTML=e.innerHTML,e.innerHTML="",n.prepend(o),r(document).trigger("envira_load"),s.destroyOverlay(i,e)}),setTimeout(function(){o.style.opacity=null},333))},destroyOverlay:function(t,e){function i(){0===document.querySelectorAll(".envirabox-wrap").length&&(document.removeEventListener("keydown",n),t.style.marginTop="100vh",e.innerHTML=t.querySelector(".envira-gallery-wrap").outerHTML,t.querySelector("#envira-gallery-bnb-overlay-close-button").remove(),setTimeout(function(){t.remove()},333))}var n=function(t){"Escape"===t.key&&i()};document.addEventListener("keydown",n),document.querySelectorAll("#envira-gallery-bnb-overlay-close-button button").forEach(function(t){t.addEventListener("click",function(t){t.preventDefault(),t.stopPropagation(),i()})})}};const o=s;var c=_(311);function h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,o,r,s,a=[],l=!0,c=!1;try{if(r=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=r.call(i)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=i.return&&(s=i.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(i="Object"===i&&t.constructor?t.constructor.name:i)||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?a(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function d(t){return(d="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 l(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,function(t){t=function(t,e){if("object"!=d(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);i=i.call(t,e||"default");if("object"!=d(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string");return"symbol"==d(t)?t:String(t)}(n.key),n)}}var u,p,e,g,f,i,v,t=function(){function r(t,e,i,n){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");var o=this;o.data=e,o.images=i,o.id=t,o.envirabox_config=n,o.initImage=!1,o.log(o.id),o.init()}var t,e,i;return t=r,(e=[{key:"init",value:function(){var t,e=this,i=e.get_config("lazy_loading");switch(e.get_config("layout")){case"automatic":e.justified(),c(document).trigger("envira_gallery_api_justified",e.data),i&&(e.load_images(),c(document).on("envira_pagination_ajax_load_completed",function(){return c("#envira-gallery-"+e.id).on("jg.complete",function(t){t.preventDefault(),e.load_images()})}));break;case"bnb":o.init();break;case"mason":setTimeout(function(){e.enviratopes()},100),i&&(e.load_images(),e.enviratopes(),c(window).scroll(function(t){e.enviratopes()}));break;default:i&&e.load_images()}(e.get_config("lightbox_enabled")||e.get_config("lightbox"))&&e.lightbox(),null!=(t=e.get_config("tags"))&&t&&"undefined"!=typeof EnviraTags&&EnviraTags.init(),c(document).trigger("envira_gallery_api_init",e)}},{key:"load_images",value:function(){n().run("#envira-gallery-"+this.id)}},{key:"justified",value:function(){c("#envira-gallery-"+this.id).enviraJustifiedGallery({rowHeight:this.is_mobile()?this.get_config("mobile_justified_row_height"):this.get_config("justified_row_height"),maxRowHeight:-1,waitThumbnailsLoad:!0,selector:"> div > div",lastRow:this.get_config("justified_last_row"),border:0,margins:this.get_config("justified_margins")}),c(document).trigger("envira_gallery_api_start_justified",this),c("#envira-gallery-"+this.id).css("opacity","1")}},{key:"justified_norewind",value:function(){c("#envira-gallery-"+self.id).enviraJustifiedGallery("norewind")}},{key:"enviratopes",value:function(){var t=this;c(document).trigger("envira_gallery_api_enviratope_config",[t]),c("#envira-gallery-"+t.id).enviratope({itemSelector:".envira-gallery-item",masonry:{columnWidth:".envira-gallery-item"}}),c("#envira-gallery-"+t.id).enviraImagesLoaded().always(function(){c("#envira-gallery-"+t.id).enviratope("layout")}),c(document).trigger("envira_gallery_api_enviratope",[t])}},{key:"lightbox",value:function(){var s=this,t=s.get_config("mobile_touchwipe_close")?{vertical:!0,momentum:!0}:{vertical:!1,momentum:!1},e=!s.get_config("thumbnails_hide")||s.get_config("thumbnails_hide"),i=s.is_mobile()?this.get_config("mobile_thumbnails_height"):this.get_config("thumbnails_height"),e=!!s.get_config("thumbnails")&&{autoStart:e,hideOnClose:!0,position:s.get_lightbox_config("thumbs_position"),rowHeight:"side"!==s.get_lightbox_config("thumbs_position")&&i},i=!!s.get_config("slideshow")&&{autoStart:s.get_config("autoplay"),speed:s.get_config("ss_speed")},n=!s.get_config("fullscreen")||!s.get_config("open_fullscreen")||{autoStart:!0},o="zomm-in-out"===s.get_config("lightbox_open_close_effect")?"zoom-in-out":s.get_config("lightbox_open_close_effect"),r="zomm-in-out"===s.get_config("effect")?"zoom":s.get_config("effect"),a=[],l="";if(s.lightbox_options={selector:'[data-envirabox="'+s.id+'"]',loop:s.get_config("loop"),margin:s.get_lightbox_config("margins"),gutter:s.get_lightbox_config("gutter"),keyboard:s.get_config("keyboard"),arrows:s.get_lightbox_config("arrows"),arrow_position:s.get_lightbox_config("arrow_position"),infobar:s.get_lightbox_config("infobar"),toolbar:s.get_lightbox_config("toolbar"),idleTime:!!s.get_lightbox_config("idle_time")&&s.get_lightbox_config("idle_time"),smallBtn:s.get_lightbox_config("show_smallbtn"),protect:!1,image:{preload:!1},animationEffect:o,animationDuration:s.get_lightbox_config("animation_duration")?s.get_lightbox_config("animation_duration"):300,btnTpl:{smallBtn:s.get_lightbox_config("small_btn_template")},zoomOpacity:"auto",transitionEffect:r,transitionDuration:s.get_lightbox_config("transition_duration")?s.get_lightbox_config("transition_duration"):200,baseTpl:s.get_lightbox_config("base_template"),spinnerTpl:'<div class="envirabox-loading"></div>',errorTpl:s.get_lightbox_config("error_template"),fullScreen:!!s.get_config("fullscreen")&&n,touch:t,hash:!1,insideCap:s.get_lightbox_config("inner_caption"),capPosition:s.get_lightbox_config("caption_position"),capTitleShow:!(!s.get_config("lightbox_title_caption")||"none"===s.get_config("lightbox_title_caption")||"0"===s.get_config("lightbox_title_caption")||!1!==["classical_dark","classical_light","infinity_dark","infinity_light"].includes(s.get_config("lightbox_theme")))&&s.get_config("lightbox_title_caption"),media:{youtube:{params:{autoplay:0}}},wheel:!1!==this.get_config("mousewheel"),slideShow:i,thumbs:e,lightbox_theme:s.get_config("lightbox_theme"),mobile:{clickContent:function(t,e){return s.get_lightbox_config("click_content")?s.get_lightbox_config("click_content"):"toggleControls"},clickSlide:function(t,e){return s.get_lightbox_config("click_slide")?s.get_lightbox_config("click_slide"):"close"},dblclickContent:!1,dblclickSlide:!1},clickContent:function(t,e){return!("image"!==t.type||"undefined"!==s.get_config("disable_zoom")&&"1"===s.get_config("disable_zoom")||"1"===s.get_config("zoom_hover")&&"undefined"!=typeof envira_zoom&&void 0!==envira_zoom.enviraZoomActive)&&"zoom"},clickSlide:s.get_lightbox_config("click_slide")?s.get_lightbox_config("click_slide"):"close",clickOutside:s.get_lightbox_config("click_outside")?s.get_lightbox_config("click_outside"):"toggleControls",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,videoPlayPause:!!s.get_config("videos_playpause"),videoProgressBar:!!s.get_config("videos_progress"),videoPlaybackTime:!!s.get_config("videos_current"),videoVideoLength:!!s.get_config("videos_duration"),videoVolumeControls:!!s.get_config("videos_volume"),videoControlBar:!!s.get_config("videos_controls"),videoFullscreen:!!s.get_config("videos_fullscreen"),videoDownload:!!s.get_config("videos_download"),videoPlayIcon:!!s.get_config("videos_play_icon_thumbnails"),videoAutoPlay:!!s.get_config("videos_autoplay"),onInit:function(t,e){s.initImage=!0,c(document).trigger("envirabox_api_on_init",[s,t,e])},beforeLoad:function(t,e){c(document).trigger("envirabox_api_before_load",[s,t,e])},afterLoad:function(t,e){c(document).trigger("envirabox_api_after_load",[s,t,e])},beforeShow:function(t,e){"base"===s.data.lightbox_theme&&""===l&&0<c(".envirabox-position-overlay").length&&(l=c(".envirabox-position-overlay")),s.initImage=!1,0===s.get_config("loop")&&0===t.currIndex?c(".envirabox-slide--current a.envirabox-prev").hide():c(".envirabox-slide--current a.envirabox-prev").show(),0===s.get_config("loop")&&t.currIndex===Object.keys(t.group).length-1?c(".envirabox-slide--current a.envirabox-next").hide():c(".envirabox-slide--current a.envirabox-next").show(),c(document).trigger("envirabox_api_before_show",[s,t,e])},afterShow:function(t,e){var i,n;c(".envirabox-thumbs ul").find("li").removeClass("focused"),c(".envirabox-thumbs ul").find("li.envirabox-thumbs-active").focus().addClass("focused"),void 0!==i&&void 0!==n||(n=i=!1),!0!==i&&(c(".envirabox-position-overlay").each(function(){c(this).prependTo(e.$content)}),i=!0),0===s.get_config("loop")&&0===t.currIndex?c(".envirabox-outer a.envirabox-prev").hide():c(".envirabox-outer a.envirabox-prev").show(),0===s.get_config("loop")&&t.currIndex===Object.keys(t.group).length-1?c(".envirabox-outer a.envirabox-next").hide():c(".envirabox-outer a.envirabox-next").show(),void 0!==s.get_config("keyboard")&&0===s.get_config("keyboard")&&c(window).keypress(function(t){-1<[32,37,38,39,40].indexOf(t.keyCode)&&t.preventDefault()}),c(".envirabox-slide--current .envirabox-title").css("visibility","visible"),0<c(".envirabox-slide--current .envirabox-caption").length&&0<c(".envirabox-slide--current .envirabox-caption").html().length?(c(".envirabox-slide--current .envirabox-caption").css("visibility","visible"),c(".envirabox-slide--current .envirabox-caption-wrap").css("visibility","visible")):(c(".envirabox-slide--current .envirabox-caption").css("visibility","hidden"),c(".envirabox-slide--current .envirabox-caption-wrap").css("visibility","hidden")),c(".envirabox-navigation").show(),c(".envirabox-navigation-inside").show(),void 0!==l&&""!==l&&0<c(".envirabox-slide--current .envirabox-image-wrap").length?c(".envirabox-image-wrap").prepend(l):void 0!==l&&""!==l&&0<c(".envirabox-slide--current .envirabox-content").length&&c(".envirabox-content").prepend(l),c(document).trigger("envirabox_api_after_show",[s,t,e]),void 0===t.opts.capTitleShow||"caption"!==t.opts.capTitleShow&&"title_caption"!==t.opts.capTitleShow||""!==e.caption?c(".envirabox-caption-wrap .envirabox-caption").css("visibility","visible"):c(".envirabox-caption-wrap .envirabox-caption").css("visibility","hidden")},beforeClose:function(t,e){c(document).trigger("envirabox_api_before_close",[s,t,e])},afterClose:function(t,e){c(document).trigger("envirabox_api_after_close",[s,t,e])},onActivate:function(t,e){c(document).trigger("envirabox_api_on_activate",[s,t,e])},onDeactivate:function(t,e){c(document).trigger("envirabox_api_on_deactivate",[s,t,e])}},s.is_mobile()&&1!==s.get_config("mobile_thumbnails")&&(s.lightbox_options.thumbs=!1),s.get_lightbox_config("load_all")){o=s.images;if("object"!==d(o))return;c.each(o,function(t){void 0!==this.video&&void 0!==this.video.embed_url&&(this.src=this.video.embed_url),a.push(this)})}else{r=c(".envira-gallery-"+s.id);c.each(r,function(t){a.push(this)})}c("#envira-gallery-wrap-"+s.id+" .envira-gallery-link").on("click",function(t){var i=this,n=(t.preventDefault(),t.stopImmediatePropagation(),c(this).find("img").data("envira-index")),o=c(this).find("img").attr("src"),r=!1;(1===parseInt(s.get_config("pagination"))&&0===parseInt(n)||"1"===s.get_config("sort_order"))&&(Object.entries(a).forEach(function(t){var t=h(t,2),e=t[0],t=t[1];c(t).prop("data-envira-item-src")!==o&&c(t).find("img").prop("src")!==o||(n=e,r=!0)}),!0!==r&&Object.entries(a).forEach(function(t){var t=h(t,2),e=t[0],t=t[1];t!==c(i).attr("href")&&t.src!==c(i).find("img").data("envira-item-src")||(n=e,r=!0)})),c.envirabox.open(a,s.lightbox_options,n)}),c(document).trigger("envirabox_lightbox_api",s)}},{key:"get_config",value:function(t){return this.data[t]}},{key:"get_lightbox_config",value:function(t){return this.envirabox_config[t]}},{key:"get_image",value:function(t){return this.images[t]}},{key:"is_mobile",value:function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}},{key:"log",value:function(t){void 0!==envira_gallery.debug&&envira_gallery.debug&&void 0!==t&&console.trace(t)}}])&&l(t.prototype,e),i&&l(t,i),Object.defineProperty(t,"prototype",{writable:!1}),r}(),m=_(617),m=_.n(m),b=_(311),y=window.envira_galleries||{},x=window.envira_links||{};u=b,p=window,e=document,g=t,f=m(),i=envira_gallery,v=y,u(function(){p.envira_galleries=v,p.envira_links=x,u(e).on("envira_load",function(t){t.stopPropagation(),v={},x={};var o=[];u(".envira-gallery-public").each(function(){var t=u(this),e=(t.data("envira-id"),t.data("gallery-config")),i=t.data("gallery-images"),t=t.data("lightbox-theme"),n="";void 0!==o[e.gallery_id]?(n="_"+(o[e.gallery_id]?parseInt(o[e.gallery_id])+1:2),o[e.gallery_id]=parseInt(o[e.gallery_id])+1):o[e.gallery_id]=1,v[e.gallery_id]=new g(e.gallery_id+n,e,i,t),(u("#envira-gallery-wrap-"+e.gallery_id+n+".envira-lazy-loading-disabled").length?u("#envira-gallery-wrap-"+e.gallery_id+n+".envira-lazy-loading-disabled"):u(".envira-gallery-wrap")).find(".envira-loader").remove(),u(".envira-gallery-wrap").find(".envira-layout-bnb--more-link").css("opacity","1")}),u(".envira-gallery-links").each(function(){var t=u(this),e=t.data("gallery-config"),i=t.data("gallery-images"),t=t.data("lightbox-theme");void 0===x[e.gallery_id]&&(x[e.gallery_id]=new f(e,i,t))}),u(e).trigger("envira_loaded",[v,x])}),u(e).trigger("envira_load"),void 0!==i.debug&&i.debug&&(console.log(x),console.log(v)),u("body").on("click",'div.envirabox-title a[href*="#"]:not([href="#"])',function(t){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname)return u.envirabox.close(),!1}),u(e).on("envira_image_lazy_load_complete",function(t){var e,i,n,o="";void 0!==t&&(void 0!==t.image_id&&null!==t.image_id||void 0!==t.video_id&&null!==t.video_id)&&void 0!==(o=0<u("#envira-gallery-wrap-"+t.gallery_id).find("#"+t.video_id+" iframe").length?u("#envira-gallery-wrap-"+t.gallery_id).find("#"+t.video_id+" iframe"):0<u("#envira-gallery-wrap-"+t.gallery_id).find("#"+t.video_id+" video").length?u("#envira-gallery-wrap-"+t.gallery_id).find("#"+t.video_id+" video"):u("#envira-gallery-wrap-"+t.gallery_id).find("img#"+t.image_id))&&""!==o&&(u("#envira-gallery-wrap-"+t.gallery_id).find("div.envira-gallery-public").hasClass("envira-gallery-0-columns")?u(o).closest("div.envira-gallery-item-inner").find("div.envira-gallery-position-overlay").delay(100).show():(u(o).closest("div.envira-gallery-item-inner").find("div.envira-gallery-position-overlay").delay(100).show(),n=u(o).closest("div.envira-gallery-item-inner").find(".envira-lazy").width(),e=t.naturalHeight/t.naturalWidth,n=100*((n=t.naturalHeight/n)<e?n:e),o.closest("div.envira-gallery-public").parent().hasClass("envira-gallery-theme-sleek")&&(n+=2),i=(e=u(o).closest("div.envira-gallery-item-inner").find("div.envira-lazy")).closest("div.envira-gallery-item-inner").find(".envira-gallery-captioned-data").height(),u(o).closest("div.envira-gallery-item").hasClass("enviratope-item")?(e.css("padding-bottom",n+"%").attr("data-envira-changed","true"),u(o).closest("div.envira-gallery-item-inner").find(".envira-gallery-position-overlay.envira-gallery-bottom-right").css("bottom",i),u(o).closest("div.envira-gallery-item-inner").find(".envira-gallery-position-overlay.envira-gallery-bottom-left").css("bottom",i)):(e.css("padding-bottom","unset").attr("data-envira-changed","true"),0<(n=null!=(n=null==(n=e.closest("div.envira-gallery-wrap")[0])?void 0:n.classList)?n:[]).length&&!n.contains("envira-layout-bnb")&&!n.contains("envira-layout-bnb--overlay")&&e.css("height","auto"),u(o).closest("div.envira-gallery-item-inner").find(".envira-gallery-position-overlay.envira-gallery-bottom-right").css("bottom",i+10),u(o).closest("div.envira-gallery-item-inner").find(".envira-gallery-position-overlay.envira-gallery-bottom-left").css("bottom",i+10)),u(o).closest("div.envira-gallery-item-inner").find("span.envira-title").delay(1e3).css("visibility","visible"),u(o).closest("div.envira-gallery-item-inner").find("span.envira-caption").delay(1e3).css("visibility","visible"),void 0!==p["envira_container_"+t.gallery_id]&&u("#envira-gallery-"+t.gallery_id).hasClass("enviratope")&&p["envira_container_"+t.gallery_id].on("layoutComplete",function(t,e){u(o).closest("div.envira-gallery-item-inner").find("span.envira-title").delay(1e3).css("visibility","visible"),u(o).closest("div.envira-gallery-item-inner").find("span.envira-caption").delay(1e3).css("visibility","visible")})))})})})()})();