'use strict';window.ComplianceMgrConsentUtils=window.ComplianceMgrConsentUtils||{};window.ComplianceMgrConsentUtils=function(){return{waitForObj:function(g){return new Promise(function(b,c){var d=0,e=setInterval(function(){100>d?"consent"==g&&"undefined"!==typeof WcpConsent&&WcpConsent&&"undefined"!==typeof WcpConsent.siteConsent&&WcpConsent.siteConsent&&"undefined"!==typeof GPC_DataSharingOptIn&&null!=GPC_DataSharingOptIn?(clearInterval(e),b()):d++:(clearInterval(e),c())},50)})}}}(); var ComplianceManagerConsentHandler=function(){function g(){var a=document.cookie.split(";"),h=null!==document.querySelector('iframe[title\x3d"cli_fpt_iframe"]');a.forEach(function(k){var f=k.split("\x3d")[0].trim();l.some(function(m){return f.startsWith(m)})||h&&n.includes(f)||-1!==e.indexOf(f)||(document.cookie=f+"\x3d;max-age\x3d-1;path\x3d/;domain\x3d.microsoft.com;")})}function b(){if(!WcpConsent||!WcpConsent.siteConsent||!WcpConsent.siteConsent.getConsent)return!1;var a=WcpConsent.siteConsent.getConsent(); return a&&a.Advertising&&a.Analytics&&a.SocialMedia}function c(){b()||g()}function d(){window.ComplianceMgrConsentUtils.waitForObj("consent").then(function(){if(WcpConsent&&WcpConsent.onConsentChanged)WcpConsent.onConsentChanged(c);c()}).catch(function(a){console.log("Error handling consent change:",a)})}var e="3PAdsOptOut MSCC ApplicationGatewayAffinity ApplicationGatewayAffinityCORS MC1 MS0 MSFPC MicrosoftApplicationsTelemetryDeviceId ai_session ai_user CAS_PROGRAM Cascade.AuthUPN Cascade.OpenIdConnect Cascade.AuthSSO ak_bmsc akacd_OneRF bm_sv mbox AMCV_EA76ADE95776D2EC7F000101%40AdobeOrg AMCVS_EA76ADE95776D2EC7F000101%40AdobeOrg isFirstSession thx_guid tmx_guid X-FD-FEATURES X-FD-Time at_check mboxEdgeCluster RT PMGSKUMarketCk ocrAIChat cartItemCount cartMuid bStore".split(" "), l=[".AspNetCore.Correlation.",".AspNetCore.OpenIdConnect.",".AspNetCore.OpenIdConnect.Nonce.","modal-redirect-dismissed-","akacd_"],n=["MUID","fptctx2"];"object"===typeof exports&&(module.exports={consentChangeCallBack:c,handleConsentChange:d,checkUserConsent:b});return{handleConsentChange:d,checkUserConsent:b}}(); "complete"===document.readyState||"interactive"===document.readyState?ComplianceManagerConsentHandler.handleConsentChange():document.addEventListener("DOMContentLoaded",ComplianceManagerConsentHandler.handleConsentChange,!1);