((e={})=>{if(!("gcm"in e))return;const{gcm:n}=e;"enabled"in n&&n.enabled&&("gtag"!==n.implementation?"gtm"===n.implementation&&(window.pressidiumConsentListeners=window.pressidiumConsentListeners||[],window.addPressidiumGCMConsentListener=e=>{window.pressidiumConsentListeners.push(e)}):(e=>{window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)};const{gtag:n}=window,t={ad_storage:"denied",ad_user_data:"denied",ad_personalization:"denied",analytics_storage:"denied",functionality_storage:"denied",personalization_storage:"denied",security_storage:"denied"};e.regions.forEach((e=>{const i="subdivisions"in e?e.subdivisions:[],s=i.length>0?i:[e.country],a={...t,region:s};Object.keys(e.default_consent_states).forEach((n=>{a[n]=e.default_consent_states[n]?"granted":"denied"})),n("consent","default",{...a,wait_for_update:500,region:s})})),n("consent","default",{...t,wait_for_update:500}),e.url_passthrough&&n("set","url_passthrough",!0),e.ads_data_redaction&&n("set","ads_data_redaction",!0)})(n))})(window.pressidiumCCGCM);