(()=>{"use strict";const d=window,o=d.document,e="pmcadm:";function t(){try{const e=[];o.querySelectorAll("div.admz-ads-grid").forEach((d=>d.style.display="none")),o.querySelectorAll("div.pmc-adm-boomerang-pub-div.ads-grid > div.ads-grid-c").forEach((d=>{e.push(d.id)})),d.blogherads.destroySlots(e)}catch(d){console.error(d)}}const c={"dfp:isdirect=true":t};d.addEventListener("message",(function(d){const o=d.data;if("string"==typeof o&&0===o.indexOf(e))for(const[d,t]of Object.entries(c))o.indexOf(d)>=e.length&&t()}),!1),d.pmc&&d.pmc.hooks&&d.pmc.hooks.add_action("pmc_adm_dfp_direct_sold",t)})();; !function(){"use strict";const t=window;t.blogherads=t.blogherads||{},t.blogherads.adq=t.blogherads.adq||[];const e=t.blogherads,a=(t,a)=>{e.adq.push((()=>{e.push1PDEvent(t,a)}))},r=[{tag:"a",handler:t=>{const{currentTarget:e}=t;if(!(e instanceof Element))return;const r=e.getAttribute("href");let n=e.getAttribute("data-xid");if(!n&&r){const t=/xid:([^&/])*/gm.exec(r);t&&(n=t[0])}n=n?.replace("xid:","")||"";const c=e.hasAttribute("custom-ga-data")?JSON.parse(e.getAttribute("custom-ga-data")):{},i=!(!c["1pd"]&&!e.getAttribute("data-1pd")),o=c.product||{},d=o.category||e.getAttribute("data-category-name"),s=o.currency||e.getAttribute("data-currency")||"US",u=o.name||e.getAttribute("data-product-name"),l=o.price||e.getAttribute("data-price"),g=c.type||e.getAttribute("data-type");let m=c.partner||e.getAttribute("data-partner");if(!m?.length&&r?.length){const t=e.hostname?.split(".");t&&(t.pop(),t.length>1&&t.shift(),m=t.join(),["amazon","amzn"].includes(m)&&(m="Amazon"))}(i||n?.length>0||u?.length>0||g?.length>0)&&a("ecommerce_click",{href:r,xid:n,data_partner:m,data_price:l,data_product_name:u,data_product_category:d,data_product_currency:s,data_type:g})}},{tag:"button",handler:t=>{const{currentTarget:e}=t;if(!(e instanceof Element))return;if(!/(sign up|subscribe|newsletter)/.test(e.innerHTML.toLowerCase()))return;const r={source_id:e.className,source_value:e.innerHTML.trim(),email:""};let n=e;for(;n&&"FORM"!==n.tagName;)n=n.parentElement;n&&Array.from(n.children).forEach((t=>{if(!(t instanceof HTMLInputElement||t instanceof HTMLSelectElement))return;const e=t.getAttribute("name")?.toLowerCase(),a=t.getAttribute("id")?.toLowerCase(),n=t.value;"source"===e&&(r.source_id=t.id,r.source_value=n),(e?.indexOf("email")>=0||a?.indexOf("email")>=0)&&(r.email=n)})),a("newsletter_signup_click",r)}}];jQuery(document).ready((()=>{r.forEach((t=>{Array.from(document.getElementsByTagName(t.tag)).forEach((e=>{e.addEventListener("click",t.handler)}))}))}))}();; (()=>{var e={200:()=>{window.pmc_onetrust_helpers={getActiveConsentGroups:()=>(window.OptanonActiveGroups||"").split(",").filter(Boolean)}}},r={};function t(o){var n=r[o];if(void 0!==n)return n.exports;var p=r[o]={exports:{}};return e[o](p,p.exports,t),p.exports}t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},t.d=(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{"use strict";t(200)})()})();; /** * @version 2020-09-22 Set the cache flag from `false` to `true` since its a static XML file which does not change. It was initiated by a ticket from VIP over performance concerns - https://wordpressvip.zendesk.com/hc/en-us/requests/116315 * @version 2022-02-03 set cache flag to true as comscore expects this to not be browser cached. throttling comscore reporting on galleries and lists separately. */ var pmc_comscore = pmc_comscore || { pageview: function( callback ) { try { if ( typeof jQuery !== 'undefined' && typeof pmc_comscore_options.pageview_candidate_url !== 'undefined' ) { jQuery.ajax({ url: pmc_comscore_options.pageview_candidate_url, type: 'GET', cache: false }); } if ( typeof callback === 'function' ) { callback(); } } catch (e) { } } }; ;