var _slicedToArray=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t)){var a=e,r=[],o=!0,e=!1,n=void 0;try{for(var i,l=t[Symbol.iterator]();!(o=(i=l.next()).done)&&(r.push(i.value),!a||r.length!==a);o=!0);}catch(t){e=!0,n=t}finally{try{!o&&l.return&&l.return()}finally{if(e)throw n}}return r}throw new TypeError("Invalid attempt to destructure non-iterable instance")};!function(s){var t=function(){s("#text-search, #filter-form").on("submit",function(){s("#text-search [name='sp[f]']").val(s("#filter-form [name='sp[f]']").val().replace(/(\d\d)\/(\d\d)\/(\d{4})/,"$3-$1-$2")),s("#text-search [name='sp[t]']").val(s("#filter-form [name='sp[t]']").val().replace(/(\d\d)\/(\d\d)\/(\d{4})/,"$3-$1-$2")),s("#text-search [name='category_name']").val(s("#filter-form [name='category_name']").val()),s("#text-search [name='post_type']").val(s("#filter-form [name='post_type']").val())}),s("#filter-apply").on("click",function(){s("#text-search").trigger("submit")}),s("#filter-apply").on("keydown",function(t){"Enter"===t.key&&s("#text-search").trigger("submit")}),s("#icon-search").on("click",function(){s("#text-search").trigger("submit")}),s("#icon-search").on("keydown",function(t){"Enter"===t.key&&s("#text-search").trigger("submit")}),s("#dates").change(function(){"date-all"!==s(this).attr("id")?(s("#filter-form [name='sp[f]']").val(s(this).val()),s("#filter-form [name='sp[t]']").val(s.datepicker.formatDate("mm/dd/yy",new Date))):(s("#filter-form [name='sp[f]']").val(""),s("#filter-form [name='sp[t]']").val(""))}),s("#categories").change(function(){"categories-all"!==s(this).attr("id")&&s("#filter-form [name='category_name']").val(s(this).val())});var e=s("#date-end"),a=s("#date-start");function r(t,e){var t=t.split("/").map(Number),t=_slicedToArray(t,3),a=t[0],r=t[1],t=t[2],e=e.split("/").map(Number),e=_slicedToArray(e,3),o=e[0],n=e[1],e=e[2],t=new Date(t,a-1,r);return new Date(e,o-1,n)#?[\\w\\d]+);"));if(e&&e.groups)return e.groups.color}return"var(--"+t+")"}var n=s("#top-date-end"),i=s("#top-date-start"),l=(i.datepicker({dateFormat:"mm/dd/yy",defaultDate:0,maxDate:n.val(),onSelect:function(){s(this).trigger("focus").trigger("blur")},onClose:function(t){!0===r(i.val(),n.val())?(window.alert("Please select a date after start date"),s("#top-date-start").datepicker("setDate",null)):n.datepicker("option","minDate",t);try{s.datepicker.parseDate("mm/dd/yy",t)}catch(t){window.alert("Invalid date. Must be formatted mm/dd/yyyy"),s("#top-date-start").datepicker("setDate",null),s("#top-date-end").datepicker("setDate",null)}},beforeShow:function(t,e){setTimeout(function(){e.dpDiv.position({my:"left top",at:"left bottom",collision:"none",of:t})},1)}}),n.datepicker({dateFormat:"mm/dd/yy",defaultDate:0,minDate:i.val(),onSelect:function(){s(this).trigger("focus").trigger("blur")},onClose:function(t){!0===r(i.val(),n.val())?(window.alert("Please select a date after start date"),s("#top-date-end").datepicker("setDate",null)):i.datepicker("option","maxDate",t);try{s.datepicker.parseDate("mm/dd/yy",t)}catch(t){window.alert("Invalid date. Must be formatted mm/dd/yyyy"),s("#top-date-end").datepicker("setDate",null),s("#top-date-start").datepicker("setDate",null)}},beforeShow:function(t,e){setTimeout(function(){e.dpDiv.position({my:"left top",at:"left bottom",collision:"none",of:t})},1)}}),s(".ui-corner-all").on("click",function(t){t.stopPropagation()}),t("customizer-styles")),d=document.createElement("style"),d=(d.id="obit-popup-styles-override",d.textContent="\n\t\t\t\t.ui-datepicker-header {\n\t\t\t\t\tbackground: "+o("primary")+" !important;\n\t\t\t\t}\n\t\t\t\t.ui-datepicker-prev:hover, .ui-datepicker-next:hover {\n\t\t\t\t\tbackground-color: "+o("primary-light")+" !important;\n\t\t\t\t}\n\n\t\t\t\t.ui-datepicker-calendar tbody td:hover {\n\t\t\t\t\tbackground-color: "+o("primary-light")+" !important;\n\t\t\t\t}\n\n\t\t\t\t.ui-datepicker-calendar tbody td.ui-datepicker-current-day {\n\t\t\t\t\tbackground-color: "+o("primary-light")+" !important;\n\t\t\t\t}\n\t\t\t",document.head.appendChild(d),t("obit-remove-filters"));d&&d.addEventListener("click",function(){e.datepicker("option","minDate",null),a.datepicker("option","maxDate",null)})};s(function(){t()})}(jQuery);; "use strict";!function(t){var i=new Image,o=t(".custom-logo").find("img"),t=o.attr("src");i.onload=function(){o.prop("width",i.width),o.prop("height",i.height)},i.src=t}(jQuery);; ({initialize:function(){var e=this;e.initializeLoadAssets(),document.addEventListener("DOMContentLoaded",function(){e.mutationObserver(),e.REVmutationObserver(),e.STNmutationObserver()})},debug:function(){var e=!1;return e="undefined"!=typeof DFM_AD_MODS_DEBUG?!0:e},initializeLoadAssets:function(){this.debug()&&console.log("DEBUG: initializeLoadAssets success");var e=localStorage.getItem("hhsl");return"undefined"!=typeof MNGAuthentication&&"function"==typeof MNGAuthentication.isUserAdFree&&MNGAuthentication.isUserAdFree()?(this.debug()&&console.log("DEBUG: MNGAuthentication is initialized and indicated that the user is ad free; returning false for ad-free experience. auth via MNGAuthentication"),this.listenForCNX=!0,this.listenForSTN=!0,this.listenForREV=!0,this.addOrRemoveElement("remove"),!1):void 0!==e&&"access"===e?(this.debug()&&console.log('DEBUG: hhsl localstorage is not undefined and does include "access"; returning false for ad-free experience. auth via localStorage'),this.listenForCNX=!0,this.listenForSTN=!0,this.listenForREV=!0,this.addOrRemoveElement("remove"),!1):(this.debug()&&console.log("DEBUG: NO access detected, load ad scripts function"),this.listenForCNX=!1,this.listenForSTN=!1,this.listenForREV=!1,this.addOrRemoveElement("add"),void this.loadAdsScripts())},loadAdsScripts:function(){this.debug()&&console.log("DEBUG: loadAdsScripts success");var e=document.createElement("script");e.defer=!0,e.type="text/javascript",e.src="https://s.ntv.io/serve/load.js",document.getElementsByTagName("body")[0].appendChild(e),this.debug()&&console.log("DEBUG: nativo script written"),document.getElementById("mobile-adhesion").classList.remove("closed"),this.debug()&&console.log("DEBUG: mobile adhesion banner showing")},addOrRemoveElement:function(e){var t=document.querySelectorAll(".dfp-ad"),i=document.querySelectorAll("[data-stn-player],[data-s2n-api]"),n=document.querySelectorAll(".cnx-main-container"),o=document.querySelectorAll(".revcon-footer");"remove"===e?(t.forEach(function(e){return e.remove()}),i.forEach(function(e){return e.remove()}),n.forEach(function(e){return e.remove()}),o.forEach(function(e){return e.remove()})):(t.forEach(function(e){return e.style.visibility="visible"}),i.forEach(function(e){return e.style.visibility="visible"}),n.forEach(function(e){return e.style.visibility="visible"}),o.forEach(function(e){return e.style.visibility="visible"}))},mutationObserver:function(){new MutationObserver(function(e){e.forEach(function(e){this.listenForCNX&&0