var XA=XA||function(n,t){var i={},f,e,r={},u,o,s;return f=[],e=[],i.register=function(n,t,i){r[n]={name:n,api:t,init:i||t.init||function(){}}},i.hasPageModes=function(){return!!(window.Sitecore&&window.Sitecore.PageModes)},i.registerOnPreInitHandler=function(n){f.push(n)},i.registerOnPostInitHandler=function(n){e.push(n)},u=!1,i.init=function(){u||(u=!0,XA.ready(function(){try{for(var n in r)r.hasOwnProperty(n)&&($xa.each(f,function(t,i){i.process(n,r[n])}),r[n].init(),$xa.each(e,function(t,i){i.process(n,r[n])}))}finally{u=!1}}))},i.ready=function(i){n(t).ready(i)},i.component={},i.connector={},i.cookies={shouldSendSameSiteNone:function(n){return!this.isSameSiteNoneIncompatible(n)},isSameSiteNoneIncompatible:function(n){return this.hasWebKitSameSiteBug(n)||this.dropsUnrecognizedSameSiteCookies(n)},hasWebKitSameSiteBug:function(n){return this.isIosVersion(12,n)||this.isMacosxVersion(10,14,n)&&(this.isSafari(n)||this.isMacEmbeddedBrowser(n))},dropsUnrecognizedSameSiteCookies:function(n){return this.isUcBrowser(n)?!this.isUcBrowserVersionAtLeast(12,13,2,n):this.isChromiumBased(n)&&this.isChromiumVersionAtLeast(51,n)&&!this.isChromiumVersionAtLeast(67,n)},isIosVersion:function(n,t){var i=/\(iP.+; CPU .*OS (\d+)[_\d]*.*\) AppleWebKit\//;return t.match(i)!==null&&t.match(i)[0]==n.toString()},isMacosxVersion:function(n,t,i){var r=/\(Macintosh;.*Mac OS X (\d+)_(\d+)[_\d]*.*\) AppleWebKit\//;return i.match(r)!==null&&i.match(r)[0]==n.toString()&&i.match(r)[1]==t.toString()},isSafari:function(n){return n.match(/Version\/.* Safari\//)!==null&&!this.isChromiumBased(n)},isMacEmbeddedBrowser:function(n){return n.match(/^Mozilla\/[\.\d]+ \(Macintosh;.*Mac OS X [_\d]+\) AppleWebKit\/[\.\d]+ \(KHTML, like Gecko\)$/)!==null},isChromiumBased:function(n){return n.match(/Chrom(e|ium)/)!==null},isChromiumVersionAtLeast:function(n,t){var i=parseInt(t.match(/Chrom[^ \/]+\/(\d+)[\.\d]* /)[1]);return i>=n},isUcBrowser:function(n){return n.match(/UCBrowser\//)!==null},isUcBrowserVersionAtLeast:function(n,t,i,r){var u=/UCBrowser\/(\d+)\.(\d+)\.(\d+)[\.\d]* /,f=parseInt(r.match(u)[0]),e=parseInt(r.match(u)[1]),o=parseInt(r.match(u)[2]);return f!=n?f>n:e!=t?e>t:o>=i},createCookie:function(n,i,r,u,f){var s="",e,o;r?(e=new Date,e.setTime(e.getTime()+r*864e5),o="; expires="+e.toUTCString()):o="";u&&u.length>0&&(f||this.shouldSendSameSiteNone(window.navigator.userAgent))&&(s="SameSite="+u+";");t.cookie=n+"="+i+o+";"+s+" path=/"},readCookie:function(n){for(var i,u=n+"=",f=t.cookie.split(";"),r=0;r