!function($){window.blogherads=window.blogherads||{},window.blogherads.adq=window.blogherads.adq||[],window.pmc=window.pmc||{},window.pmc.analytics=window.pmc.analytics||[],window.pmc_ga_event_tracking="object"==typeof window.pmc_ga_event_tracking?window.pmc_ga_event_tracking:{};var device=window.pmc_ga_event_tracking.device||"[D]",events=window.pmc_ga_event_tracking.events||[],pmc_analytics=(window.pmc.event_tracking=function($element,action,category,label,details,url,nonInteraction,pre_events,event_value){var custom_ga_data="",href="",labelDetails="";pre_events=pre_events||[];try{(custom_ga_data=$element.attr("custom-ga-data"))&&(custom_ga_data=JSON.parse(custom_ga_data),Object.entries(custom_ga_data).forEach(function(entry){var key=entry[0],value=entry[1];if(value)switch(value=window.pmc.replace_wild_card($element,value),key){case"category":void 0!==category&&category||(category=value);break;case"details":void 0!==details&&details||(details=value);break;case"label":void 0!==label&&label||(label=value);break;case"product":window.pmc.maybe_set_ga_pre_events(pre_events,["ec:addProduct",value,1]),window.pmc.maybe_set_ga_pre_events(pre_events,["ec:setAction","click",{list:"article"}]);break;case"url":void 0!==url&&url||(url=value)}}))}catch(e){console.log("Custom Tracking Event Error: "+e)}details&&(labelDetails=(labelDetails="string"==typeof details?details:$.trim($element.text()).replace(/(\r?\n|\r)/gm," ").replace(/\s{2,}/g," ")).length?" ("+(labelDetails=labelDetails.substring(0,15))+")":""),label=void 0===label||pmc.is_empty(label)?apply_filters("pmc-google-analytics-tracking-label","",$element):window.pmc.replace_wild_card($element,label),url&&(href="string"==typeof url&&url.length?" "+url:"string"==typeof(href=$element.attr("href"))&&href.length?2===(href=href.split(/\/\/(.+)?/,2)).length?" "+href[1]:" "+href[0]:""),category=window.pmc.replace_wild_card($element,category),pre_events=pre_events&&window.pmc.replace_wild_card($element,pre_events);var custom_ga_data={hitType:"event",eventCategory:category,eventAction:action,eventLabel:device+" "+label+labelDetails+href,nonInteraction:!!nonInteraction},nonInteraction={eventCategory:category,eventAction:action,eventLabel:device+" "+label+labelDetails+href};"number"==typeof event_value&&(custom_ga_data.eventValue=event_value,nonInteraction.eventValue=event_value);try{custom_ga_data=apply_filters("pmc-google-analytics-tracking-events",custom_ga_data,$element),nonInteraction.eventCategory=String((custom_ga_data?.eventCategory?custom_ga_data:nonInteraction).eventCategory).substring(0,99),nonInteraction.eventAction=String((custom_ga_data?.eventAction?custom_ga_data:nonInteraction).eventAction).substring(0,99),nonInteraction.eventLabel=String((custom_ga_data?.eventLabel?custom_ga_data:nonInteraction).eventLabel).substring(0,99),nonInteraction.eventValue=String((custom_ga_data?.eventValue?custom_ga_data:nonInteraction).eventValue).substring(0,99);var ga4EventName=String(nonInteraction.eventCategory+"-"+nonInteraction.eventAction).substring(0,39);gtag("event",ga4EventName,nonInteraction)}catch(err){console.log("Event Tracking Error: "+err)}return custom_ga_data},$.fn.eventTracking=function(atts){var selector,contentConsumed,pageOpenedTime,action,category,details,iframe,label,nonInteraction,pre_events,url;this&&"object"==typeof atts&&(selector=this.selector||atts.selector,contentConsumed=!1,pageOpenedTime=(new Date).getTime(),action=atts.action||"click",category=atts.category||"",details=atts.details||!1,iframe=atts.iframe||!1,label=atts.label||"",nonInteraction=atts.nonInteraction||!1,pre_events=atts.pre_events||[],url=atts.url||!1,iframe?"string"==typeof iframe&&$(iframe).load(function(){$(iframe).contents().on(action,selector,function(e){e.stopPropagation(),window.pmc.event_tracking($(this),action,category,label,details,url,nonInteraction,pre_events)})}):"inview"===action?$(selector).each(function(){var self=this;$(this).one("inview",function(event,isInView){var inview_element=this;isInView&&window.pmc.event_tracking($(this),action,category,label,details,url,nonInteraction,pre_events)})}):"content-consumed"===action?$(document).scroll(_.debounce(function(e){var currentTime;$(selector).is(":pmc-inview")&&!contentConsumed&&3e3<=(new Date).getTime()-pageOpenedTime&&(e.stopPropagation(),window.pmc.event_tracking($(this),action,category,label,details,url,nonInteraction,pre_events),contentConsumed=!0)},300)):"dfp-ad-clicks"===action?"undefined"!=typeof googletag&&googletag.cmd.push(function(){googletag.pubads().addEventListener("slotRenderEnded",function(event){var slot_name=event.slot.getName(),$ad_iframe=$('iframe[id*="'+slot_name+'"]'),$ad_iframe_container=$ad_iframe.parents(".admz"),_event=event;$ad_iframe.contents().find("body a").each(function(){$(this).click(function(){for(var ad_url=$(this).attr("href").split("?")[1].split("&"),i=0;i{var activeConsentGroups,ga3Dimensions,activeConsentGroups,ga3Dimensions;getGA3Dimensions&&getGA4Dimensions&&(activeConsentGroups=window.pmc_onetrust_helpers?.getActiveConsentGroups?.()||[],ga3Dimensions=getGA3Dimensions(activeConsentGroups),activeConsentGroups=getGA4Dimensions(activeConsentGroups),"undefined"!=typeof pmc_ga_mapped_dimensions&&"undefined"!=typeof pmc_ga_dimensions&&pmc_ga_mapped_dimensions["pageview-id"]&&(ga3Dimensions[ga3Dimensions="dimension"+pmc_ga_mapped_dimensions["pageview-id"].toString()]=pvuuid,pmcGaCustomDimensions[ga3Dimensions]=pvuuid),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"VirtualPageView","pageview-type":"virtual_page","pageview-id":pvuuid,...activeConsentGroups}))};window.pmcGATriggered?sendVirtualPageview():pmc.hooks.add_action("pmc_ga_triggered",sendVirtualPageview),blogherads.adq.push(function(){try{blogherads.setPageMetaData(window.pmc_fpd||{}),blogherads.trackPageView(!0)}catch(e){}})}}),pmc_analytics_queues=(pmc.hooks.add_filter("pmc_event_tracking_social_data",function(socialEvent,socialNetwork){if(events.length<=0||null===socialNetwork)return null;var socialNetwork=socialNetwork.toLowerCase(),selector="pinit"===socialNetwork?".btn-pinterest":".btn-"+socialNetwork,index=null,socialNetwork;if(null===socialEvent)for(var i=0;i