(()=>{"use strict";const t=()=>new Promise(((t,e)=>{try{__gpp("addEventListener",((n,o)=>{if(o){const e=n.pingData;-1!==e.applicableSections&&"ready"===e.signalStatus&&(window.pmc_onetrust.initialized.__gpp=!0,t({__gpp:e}),__gpp("removeEventListener",(()=>{}),n.listenerId))}else __gpp("removeEventListener",(()=>{}),n.listenerId),e()}))}catch{e()}})),e=()=>new Promise(((t,e)=>{try{!1===window.pmc_onetrust.initialized.__tcfapi&&__tcfapi("addEventListener",2,((e,n)=>{!n||"useractioncomplete"!==e.eventStatus&&"tcloaded"!==e.eventStatus||(e.purpose.consents[1]&&e.purpose.consents[8]&&e.purpose.consents[10]&&window.triggerGA?window.triggerGA(!0):window.triggerGA(!1),t({__tcfapi:e}))}))}catch{e()}})),n=t=>new Promise((e=>{const n={};Object.keys(t).length&&(n.groupsConsentedTo=window.OptanonActiveGroups?.split(",").filter((t=>t))||[],n.consentData=t,window.pmc_onetrust.initialized.__tcfapi=!0,pmc.hooks.do_action("pmc_onetrust_consent_data_ready",n)),e(n)}));let o;const i=new Promise((t=>{o=t})),s=window.pmc_onetrust?.cmd||[];window.pmc_onetrust={cmd:{push:t=>{t()}},init:()=>{(function(){const o=["CA","CO","CT","DE","IA","IN","KY","MD","MN","MT","NE","NH","NJ","OR","RI","TN","TX","UT","VA"];return"object"==typeof pmc_fastly_geo_data&&("EU"===pmc_fastly_geo_data?.continent||o.includes(pmc_fastly_geo_data?.region)||"US"===pmc_fastly_geo_data?.country||document.querySelectorAll('script[class*="optanon-category"][type="text/plain"]').forEach((t=>function(t){const e=function(t){if(!t)return!1;const e=[...t.matchAll(/optanon-category-([a-zA-Z0-9]+)/g)];return!(!e||0===e.length)&&e.map((t=>t[1]))}(t.className);if(!e||0===e.length)return!1;let n=!0;for(const t of e)if(o=t,!("EU"!==pmc_fastly_geo_data?.continent||"string"==typeof OnetrustActiveGroups&&OnetrustActiveGroups.includes(o))){n=!1;break}var o;n&&function(t){const e=t.cloneNode(!0);e.setAttribute("type","text/javascript"),t.replaceWith(e)}(t)}(t))),("US"===pmc_fastly_geo_data?.country&&"CA"===pmc_fastly_geo_data?.region&&"undefined"!=typeof pmc_onetrust_roadblock_test&&1===pmc_onetrust_roadblock_test||window.location.search?.toLowerCase().includes("otgeo"))&&window.pmc_onetrust_helpers.addCaEventTracking()),Promise.allSettled([t(),e()]).then((t=>t.filter((t=>"fulfilled"===t.status)).reduce(((t,e)=>({...t,...e.value})),{}))).then((t=>n(t)))})().then((t=>{o&&o(t)}))},ready:()=>i,initialized:{__gpp:!1,__uspapi:!1,__tcfapi:!1}},Array.isArray(s)&&s.forEach((t=>window.pmc_onetrust.cmd.push(t)))})();