function CookieRequirements(){return{cookieRequirements:[{cookieKey:"ai_session"},{cookieKey:"ai_user"}],storageKey:"CookieConsent"}}function CookieConsent(n){function t(){var t=JSON.parse(localStorage.getItem(n.storageKey));return t==null?{}:t.constructor!==Object?{}:t}function i(i){var r=t();r[i.cookieKey]=!0;localStorage.setItem(n.storageKey,JSON.stringify(r))}function r(i){var r=t();r[i.cookieKey]=!1;localStorage.setItem(n.storageKey,JSON.stringify(r))}function u(n){var i=t();return typeof i[n.cookieKey]!="undefined"}function f(n){var i=t();return i==null?!1:u(n)?i[n.cookieKey]===!0?!0:!1:!1}function h(){n.cookieRequirements.forEach(function(n){$("#OnOffToggle_"+n.cookieKey+"_CheckBox").prop("checked",f(n))})}function e(){$(".pro-toggle input").prop("checked",!0);n.cookieRequirements.forEach(function(n){i(n)})}function c(){e();o();document.querySelector(".cookie-consent-container").setAttribute("hidden","");document.querySelector(".cookie-consent-mask").setAttribute("hidden","")}function l(){s();o();document.querySelector(".cookie-consent-container").setAttribute("hidden","");document.querySelector(".cookie-consent-mask").setAttribute("hidden","")}function a(){document.querySelector(".cookie-consent-container").removeAttribute("hidden");document.querySelector(".cookie-consent-mask").removeAttribute("hidden")}function o(){var n=document.querySelectorAll("a, input, button");for(let t=0;t<n.length;t++)n[t].hasOwnProperty("originalTabIndex")&&(n[t].tabIndex=n[t].originalTabIndex)}function v(n,t){$("#OnOffToggle_"+t+"_CheckBox").prop("checked",$(n).prop("checked"))}function s(){n.cookieRequirements.forEach(function(n){$("#OnOffToggle_"+n.cookieKey+"_CheckBox").prop("checked")?i(n):r(n)})}function y(){var n=t();return n==null?!1:n.ai_user===!0&&n.ai_session===!0}return{acceptAll:e,acceptAllAndClose:c,acceptCookie:i,applicationInsightsCookieConsentGiven:y,hasConsentedToCookie:f,hasProvidedChoice:u,initToggles:h,linkedCookieToggled:v,rejectCookie:r,saveAndClose:l,save:s,showCookieConsent:a}}$(function(){CookieConsent(CookieRequirements()).initToggles()})