function isMobile(){return window.matchMedia("(max-width:767px)").matches}function initPolyfills(){objectFitImages(),String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.indexOf(t,e)===e}),"NodeList"in window&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(t,e){e=e||window;for(var i=0;i<this.length;i++)t.call(e,this[i],i,this)})}function initClassToggle(){$(document.body).on("click",'[data-toggle="class"][data-class]',function(t){var e=$(this),i=$(e.data("target")?e.data("target"):e.attr("href"));i.length&&(t.preventDefault(),i.toggleClass(e.data("class")),e.toggleClass("classed"))})}function initAnchorScroll(){$('a[href*="#"]:not([data-toggle])').click(function(t){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var e=$(this.hash);e=e.length?e:$('[name="'+this.hash.slice(1)+'"]'),e.length&&!e.parents(".woocommerce-tabs").length&&(t.preventDefault(),$("html, body").animate({scrollTop:e.offset().top},1e3))}})}function initVideo(){var t=$(".video-container");t.length&&t.each(function(){var t=$(this),e=t.find("iframe").first(),i=t.find(".video-overlay");if(e)if(-1!==e[0].src.indexOf("vimeo")){var n=new Vimeo.Player(e);i&&i.on("click",function(e){t.addClass("active"),$(this).fadeOut(),n.play()})}else-1!==e[0].src.indexOf("youtube")&&i&&i.on("click",function(n){t.addClass("active"),e[0].src+="&autoplay=1",setTimeout(function(){i.fadeOut()},500)})})}function initFilter(){document.addEventListener("DOMContentLoaded",function(){var t=new URLSearchParams(window.location.search),e=t.get("order");if("desc"===e){document.getElementById("new-to-old-link").classList.add("active")}else if("asc"===e){var i=document.getElementById("old-to-new-link");i.classList.add("active")}})}jQuery(document).ready(function(t){t(document.body).removeClass("no-js").addClass("js"),initPolyfills(),initClassToggle(),initAnchorScroll(),initVideo(),initFilter()})
;