setCookie = function (name, value, expirationInDays = 0) { const date = new Date(); date.setDate(date.getDate() + expirationInDays); const expires = date.toUTCString(); document.cookie = `${name}=${value};expires=${expires};path=/`; }; function getParameterValue(parameterKey, isCaseSensitive = true) { let urlParams = location.search.substring(1); urlParams = urlParams.split("&"); const parameterRegexPattern = new RegExp( parameterKey + "=", isCaseSensitive ? "" : "i" ); let parameterValue = urlParams.filter(param => param.match(parameterRegexPattern) ); if (parameterValue.length) { parameterValue = parameterValue[parameterValue.length - 1].replace( parameterRegexPattern, "" ); return parseInt(parameterValue); } return null; } customerSourceCookie = function () { const cValue = getParameterValue("c", false); const storedCValue = sessionStorage.getItem("o_c"); if (cValue && typeof cValue === "number") { const isValidValue = 1 <= cValue && cValue <= 999; if (isValidValue && cValue != storedCValue) { setCookie("o_c", cValue, 360); sessionStorage.setItem("o_c", cValue); return cValue; } return storedCValue; } return storedCValue; }; window.addEventListener("load", customerSourceCookie); window.customerSourceCookie = customerSourceCookie; window.setCookie = setCookie; ; function personalization_marketingcampaigns_paid() { const isMarketingCampaignPaid = sessionStorage.getItem( "_mwb_marketing_campaign_paid" ); const hasOCParam = sessionStorage.getItem("o_c"); if (!isMarketingCampaignPaid && hasOCParam) { sessionStorage.setItem("_mwb_marketing_campaign_paid", true); return true; } return isMarketingCampaignPaid; } ; (()=>{"use strict";document.addEventListener("DOMContentLoaded",(function(){const e=document.querySelectorAll(".mb-free-download-btn");e.forEach((e=>{e.setAttribute("href",function(){const e=window.global_variables?.user?.device;return e.isMac?window.global_variables?.site?.downloadLinks?.free.mac:e.isiPad||e.isiPhone?window.global_variables?.site?.downloadLinks?.free.ios:e.isChromeOS||e.isAndroid?window.global_variables?.site?.downloadLinks?.free.android:window.global_variables?.site?.downloadLinks?.free.windows}())})),document.getElementById("redirect-trigger-link")&&e[0]&&e[0]?.click()}))})();; (function(){"use strict";window.kadenceAdvancedForm={error_item:1,clearForm(a){a.reset()},insertAfter(a,b){b.parentNode.insertBefore(a,b.nextSibling)},markError(a,b,c){let d="";if(c.classList.contains("kb-adv-form-has-error")||c.classList.add("kb-adv-form-has-error"),a.classList.add("has-error"),b){switch(b){case"required":const c=a.getAttribute("data-kb-required-message");if(c&&""!==c){d=c;break}d=a.getAttribute("data-required-message"),d&&""!==d&&void 0!==d||(d=a.getAttribute("data-label"),(!d||""===d||void 0===d)&&(d=kb_adv_form_params.item),d=d+" "+kb_adv_form_params[b]);break;case"mismatch":d=a.getAttribute("data-mismatch-message"),d&&""!==d&&void 0!==d||(d=a.getAttribute("data-label"),(!d||""===d||void 0===d)&&(d=kb_adv_form_params.item),d=d+" "+kb_adv_form_params[b]);break;case"validation":d=a.getAttribute("data-validation-message"),d&&""!==d&&void 0!==d||(d=a.getAttribute("data-label"),(!d||""===d||void 0===d)&&(d=kb_adv_form_params.item),d=d+" "+kb_adv_form_params[b])}const c=a.parentNode.querySelector(".kb-adv-form-error-msg");c&&c.remove();const e=a.getAttribute("name")+"-error";a.setAttribute("aria-describedby",e),a.setAttribute("aria-invalid","true");const f=document.createElement("div");f.id=e,f.classList.add("kb-adv-form-error-msg"),f.classList.add("kb-adv-form-message"),f.classList.add("kb-adv-form-warning"),f.setAttribute("role","alert"),f.innerHTML=window.kadenceAdvancedForm.strip_tags(d,"