Please select at least one newsletter provider
');n.find(".global-signup-form-container.step-1").addClass("hidden"),n.find(".global-signup-form-error").remove(),n.find(".global-signup-form-container.step-2").removeClass("hidden"),n.find(".global-signup-form-container.step-3").addClass("hidden")}),e(document).on("click",".global-signup-form-button.no-thanks-btn",function(){e(this).parents(".global-signup-form").find(".global-signup-form-error").remove();const t=e(this).parents(".global-signup-modal");t.removeClass("active"),t.find(".global-signup-form").find("input").val(""),localStorage.setItem(s,Date.now())}),e(document).on("click",".global-signup-modal-close-btn, .signup-form-widget-close",function(){e(this).parents(".global-signup-form").find(".global-signup-form-error").remove();const t=e(this).parents(".global-signup-modal");t.removeClass("active"),t.find(".global-signup-form").find("input").val(""),localStorage.setItem(a,Date.now())}),e(document).on("click",".global-signup-form-button.back-btn",function(){e(this).parents(".global-signup-form").find(".global-signup-form-error").remove();const t=e(this).parents(".global-signup-form");t.find(".global-signup-form-container.step-2").addClass("hidden"),t.find(".global-signup-form-container.step-1").removeClass("hidden"),t.find(".global-signup-form-container.step-3").addClass("hidden"),t.find(".global-signup-form-error").remove()}),e(document).on("submit",".global-signup-form",function(n){e(this).find(".global-signup-form-error").remove(),n.preventDefault();const o=e(this),a=o.find('input[name="email"]').val(),s=o.find('input[name="zip"]').val(),l=o.find('input[name="first-name"]').val(),c=o.find('input[name="last-name"]').val(),d=o.find('input[name="newsletterProviderId[]"]:checked').map(function(){return e(this).val()}).get(),u=e(window).outerWidth()<=767?"Pop Up-Mobile":"Pop Up",g=o.find('input[name="category"]').val(),p=grecaptcha.getResponse(t);if(!(a&&s&&l&&c))return o.find(".global-signup-form-error").remove(),void o.prepend('Please fill in all fields
');if(""===a.replace(/\s/g,"")||""===s.replace(/\s/g,"")||""===l.replace(/\s/g,"")||""===c.replace(/\s/g,""))return o.find(".global-signup-form-error").remove(),void o.prepend('Please fill in all fields
');if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(a))return o.find(".global-signup-form-error").remove(),void o.prepend('Please enter a valid email address
');if(!p)return o.find(".global-signup-form-error").remove(),void o.prepend('Please complete the reCAPTCHA verification.
');const m={};d.forEach(function(e){m[e]=1});const f=(new Date).getTime(),h={postal_code:`${s}`,first_name:l,last_name:c,full_name:l+" "+c,product_level:"Subscriber",account_created:`${f}`,source_description:`${g}`,source_primary:"Website-Local",source_sub:u};Sailthru.integration("userSignUp",{email:a,lists:m,vars:h,source:`Website-Local|${u}|${g}`,onSuccess:function(e){o.find(".global-signup-form-container.step-2").addClass("hidden"),o.find(".global-signup-form-container.step-3").removeClass("hidden"),o.find(".global-signup-form-error").remove(),localStorage.setItem(i,"true"),localStorage.setItem("global-signup-form-submitted-time",f),localStorage.setItem(r,Date.now())},onError:function(e){o.find(".global-signup-form-error").remove(),o.prepend('Something went wrong. Please try again.
')}})}),jQuery(document).ready(function(){(function(){if(localStorage.getItem(i))return!1;const e=Date.now(),t=localStorage.getItem(a);if(t&&e-parseInt(t,10)<6048e5)return!1;const n=localStorage.getItem(s);if(n&&e-parseInt(n,10)<2592e6)return!1;const o=localStorage.getItem(r);return!(o&&e-parseInt(o,10)<7776e7)})()&&setTimeout(l,5e3)})}(jQuery)}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";n(958),n(5584)})()})();; (()=>{"use strict";jQuery(document).ready(function(t){const e=t(".site-header").outerHeight()+(t("#wpadminbar").outerHeight()||0);t(window).on("load",function(){const o=t(".best-of-category-post.highlighted-post").first();o.length&&t("html, body").animate({scrollTop:o.offset().top-e},1e3)}),t(".best-of-category-view-all-list-modal-posts-list a").on("click",function(o){o.preventDefault();const s=t(this).data("scroll-to"),a=t(s);a.length&&t("html, body").animate({scrollTop:a.offset().top-e},1e3)});var o=t(".best-of-category-posts").data("category-url");let s=[];t(window).on("scroll",function(){if(!(jQuery("#best-of-search").length>0)){var e=o,a="",i="";t(".best-of-category-post").each(function(){(function(e){const o=(t(".site-header").outerHeight()||0)+(t("#wpadminbar").outerHeight()||0);return t(e).offset().top<=t(window).scrollTop()+o})(this)&&(e=t(this).attr("bestof-url"),a=t(this).data("post-meta-title")||"",i=t(this).data("post-object-id")||"")}),i&&!s.includes(i)&&(s.push(i),window.dataLayer&&window.dataLayer.push({event:"set_page_dimensions",page_type:"TOC",section_vertical:"Best Of",object_id:i})),a&&(document.title=a),window.location.pathname!==e&&history.replaceState(null,"",e)}})}),jQuery(document).ready(function(t){t(".best-of-year-share-button").on("click",function(e){e.preventDefault(),t(this).parent().addClass("active")}),t(".best-of-category-post-share-button").on("click",function(e){e.preventDefault(),e.stopPropagation(),t(this).closest(".best-of-category-post-share-buttons").toggleClass("active")}),t(".best-of-year-share-tools-close").on("click",function(e){e.preventDefault(),e.stopPropagation(),t(".best-of-year-share-buttons").removeClass("active")}),t(".best-of-category-post-share-tools-close").on("click",function(e){e.preventDefault(),e.stopPropagation(),t(this).closest(".best-of-category-post-share-buttons").removeClass("active")}),t(document).on("click",function(e){t(e.target).closest(".best-of-year-share-buttons, .best-of-year-share-tools-close").length||t(".best-of-year-share-buttons").removeClass("active")}),t(document).on("click",function(e){t(e.target).closest(".best-of-category-post-share-buttons").length||t(".best-of-category-post-share-buttons").removeClass("active")}),t(document).on("click",".best-of-year-share-links-copy-link, .best-of-category-post-share-links-copy-link",function(e){e.preventDefault();const o=t(this),s=o.data("clipboard-text");navigator.clipboard.writeText(s),o.text("Copied"),setTimeout(function(){o.text("Copy Link")},1e3)})}),jQuery(document).ready(function(t){t(".best-of-category-view-all > a").on("click",function(e){e.preventDefault(),t(".best-of-category-view-all").addClass("active")}),t(".best-of-category-view-all-list-modal-close-button").on("click",function(){t(".best-of-category-view-all").removeClass("active")}),t(document).on("click",function(e){!t(".best-of-category-view-all").hasClass("active")||t(e.target).closest(".best-of-category-view-all-list-modal-inner").length||t(e.target).closest(".best-of-category-view-all > a").length||t(".best-of-category-view-all").removeClass("active")})}),jQuery(document).ready(function(t){t(document).on("click",".best-of-archive-sidebar-categories-label",function(e){e.preventDefault(),t(".best-of-sticky, .best-of-archive-sidebar-categories").addClass("active")}),t(document).on("click",function(e){t(".best-of-archive-sidebar-categories").hasClass("active")&&!t(e.target).closest(".best-of-archive-sidebar-categories-popup-inner, .best-of-archive-sidebar-categories-label").length&&t(".best-of-sticky, .best-of-archive-sidebar-categories").removeClass("active")}),t(document).on("click",".best-of-archive-close-button",function(e){e.preventDefault(),t(".best-of-sticky, .best-of-archive-sidebar-categories").removeClass("active")})}),jQuery(document).ready(function(t){function e(){var e=(t("#wpadminbar").length?t("#wpadminbar").outerHeight():0)+(t("header.site-header").outerHeight()||0),o=t(".best-of-sticky"),s=o.data("offset-top");o.length&&(s||(s=o.offset().top,o.data("offset-top",s)),t(window).scrollTop()+e>=s?o.addClass("is-fixed").css("top",e+"px"):o.removeClass("is-fixed").css("top",""))}e(),t(window).on("scroll resize",function(){e()})}),jQuery(document).ready(function(t){function e(){t(".best-of-category-post-share-tooltip").each(function(){var e=t(this),o=e.closest(".best-of-category-post-share-buttons");e.removeClass("align-left align-center align-right");var s=t(window).width(),a=o.offset(),i=o.outerWidth(),n=e.outerWidth(),c=a.left,r=a.left+i/2-n/2,l=a.left+i-n;r>=0&&r+n<=s?e.addClass("align-center"):c>=0&&c+n<=s?e.addClass("align-left"):l>=0&&l+n<=s?e.addClass("align-right"):e.addClass("align-center")})}e(),t(window).on("resize scroll",function(){e()}),t(".best-of-category-post-share-buttons").on("mouseenter",function(){setTimeout(e,10)})}),jQuery(document).ready(function(t){t(window).on("resize scroll",function(){t(".best-of-category-post-share-links:visible").each(function(){!function(e){var o=t(e),s=o.closest(".best-of-category-post-share-buttons");o.css({position:"absolute",top:"auto",bottom:"auto",left:"auto",right:"auto",width:"280px"});var a=t(window).width(),i=t(window).height(),n=t(window).scrollTop(),c=s.offset(),r=s.outerHeight(),l=o.outerWidth(),f=o.outerHeight(),u=c.top-n>=f+20,d=i-(c.top-n+r)>=f+20;if(u)o.css({bottom:"calc(100% + 20px)",top:"auto"});else{if(!d){var h=Math.max(20,(i-f)/2+n);return void o.css({position:"fixed",top:h+"px",left:"50%",transform:"translateX(-50%)"})}o.css({top:"calc(100% + 20px)",bottom:"auto"})}c.left+l>a?o.css({right:0,left:"auto"}):o.css({left:0}),l>a-40&&o.css({width:a-40+"px"})}(this)})})})})();;