var truste=window.truste||{};truste.bn||(truste.bn={});truste.eu||(truste.eu={});truste.util||(truste.util={});
truste.bn.addScriptElem=function(d,e,a){if(!d&&"string"!=typeof d){return null}var c=document.createElement("SCRIPT");
c.src=d;c.setAttribute("async","async");c.setAttribute("crossorigin","");var b=function(g){var f;if(g&&g.type=="error"){f=2
}else{if(g&&g.type=="load"||c.readyState=="loaded"){f=1}}if(f){c.onload=c.onreadystatechange=c.onerror=null;
e instanceof Function&&e(c,f)}};c.onload=c.onreadystatechange=c.onerror=b;(document.getElementById(a)||document.getElementsByTagName("body")[0]||document.getElementsByTagName("head")[0]).appendChild(c);
return c};truste.bn.msglog=function(a,b){truste.eu&&truste.eu.msg&&truste.eu.msg.log(a,truste.eu.bindMap,b)
};truste.bn.checkPreference=function(){if(truste.eu.bindMap){var a=truste.eu.bindMap;if(a.feat.crossDomain&&!a.feat.isConsentRetrieved){a.bnFlags.consentUnresolved=true;
return false}var c=shouldRepop();if(c){a.feat.dropPopCookie=true}if(a.feat.isDNTOptoutEvent){return a.feat.dntShowUI
}if(a.prefCookie){if(c||shouldResolveConsent()){a.feat.isRepopEvent=true;a.feat.isReconsentEvent=c}}return !a.prefCookie||a.feat.isRepopEvent
}return false};truste.bn.checkConsentUnresolved=function(d,a){if(truste.eu.bindMap){var c=truste.eu.bindMap;
var b=setInterval(function(){if(b&&c.feat.isConsentRetrieved){b=clearInterval(b);c.bnFlags.consentUnresolved=false;
if(truste.bn.checkPreference()){d()}else{a()}}},100);setTimeout(function(){b=clearInterval(b)},5500)}};
function shouldRepop(){if(truste.eu.bindMap.popTime){var a=new Date().getTime();var c=truste.util.readCookie(truste.eu.COOKIE_REPOP,!0);
var b=truste.eu.bindMap.popTime;return b&&b!=c&&a>=b}return false}function shouldResolveConsent(){var c=truste.eu.bindMap;
if(c.feat.consentResolution&&c.behaviorManager=="eu"){var a=truste.util.readCookie(truste.eu.COOKIE_GDPR_PREF_NAME,true);
if(a){a=a.split(":");var b=new RegExp(c.behavior+"."+c.behaviorManager);if(!b.test(a[2])){if(/(us|none)/i.test(a[2])){return true
}}}}return false}(function trustarcBanner(){var e=truste.eu.bindMap={version:"v1.7-218",domain:"crain.com",width:parseInt("660"),height:parseInt("460"),baseName:"te-notice-clr1-123d3d5e-4570-43d8-bbcb-db6267057f8d",showOverlay:"{ShowLink}",hideOverlay:"{HideLink}",anchName:"te-notice-clr1-123d3d5e-4570-43d8-bbcb-db6267057f8d-anch",intDivName:"te-notice-clr1-123d3d5e-4570-43d8-bbcb-db6267057f8d-itl",iconSpanId:"te-notice-clr1-123d3d5e-4570-43d8-bbcb-db6267057f8d-icon",containerId:(!"teconsent"||/^_LB.*LB_$/.test("teconsent"))?"teconsent":"teconsent",messageBaseUrl:"http://consent.trustarc.com/noticemsg?",daxSignature:"",privacyUrl:"",prefmgrUrl:"http://consent-pref.trustarc.com/?layout=gdpr&type=craingdpr",text:"true",icon:"Cookie Preferences",locale:"en",language:"en",country:"ca",state:"",noticeJsURL:((parseInt("0")?"https://consent-st.trustarc.com/":"http://consent.trustarc.com/"))+"asset/notice.js/v/v1.7-218",assetServerURL:(parseInt("0")?"https://consent-st.trustarc.com/":"http://consent.trustarc.com/")+"asset/",cdnURL:"https://consent-st.trustarc.com/".replace(/^(http:)?\/\//,"https://"),iconBaseUrl:"http://consent.trustarc.com/",behavior:"implied",behaviorManager:"eu",provisionedFeatures:"",cookiePreferenceIcon:"trustarc_cookiepreferences.png",cookieExpiry:parseInt("395",10)||395,closeButtonUrl:"//consent.trustarc.com/get?name=noticeclosebtn.png",apiDefaults:'{"reportlevel":16777215}',cmTimeout:parseInt("6000",10),popTime:new Date("".replace(" +0000","Z").replace(" ","T")).getTime()||null,popupMsg:"",bannerMsgURL:"http://consent.trustarc.com/bannermsg?",IRMIntegrationURL:"",irmWidth:parseInt(""),irmHeight:parseInt(""),irmContainerId:(!"_LBirmcLB_"||/^_LB.*LB_$/.test("_LBirmcLB_"))?"teconsent":"_LBirmcLB_",irmText:"",lspa:"",ccpaText:"",containerRole:"",iconRole:"",feat:{iabGdprApplies:false,consentResolution:false,dropBehaviorCookie:false,crossDomain:false,uidEnabled:false,replaceDelimiter:false,enableBanner:false,enableIRM:false,enableCM:true,enableCCPA:false,enableIrmAutoOptOut:false,ccpaApplies:false,enableCM:true,unprovisionedDropBehavior:false,unprovisionedIab:false,unprovisionedCCPA:false,dnt:false&&(navigator.doNotTrack=="1"||window.doNotTrack=="1"),dntShowUI:false,iabBannerApplies:false,enableTwoStepVerification:false,enableContainerRole:true,enableIconRole:true,enableReturnFocus:false},autoDisplayCloseButton:false};
if(/layout=gdpr/.test(e.prefmgrUrl)){e.isGdprLayout=true}if(/layout=iab/.test(e.prefmgrUrl)){e.isIabLayout=true
}if(self.location.protocol!="http:"){for(var d in e){if(e[d]&&e[d].replace){e[d]=e[d].replace(/^(http:)?\/\//,"https://")
}}}truste.eu.noticeLP=truste.eu.noticeLP||{};truste.eu.noticeLP.pcookie=undefined;truste.util.createCookie=function(g,o,k,p){if(truste.util.cookie){o=truste.util.cookie.convert(o)
}var h=truste.eu.bindMap||{},i="; expires=";if(!k){var j=new Date();j.setDate(j.getDate()+h.cookieExpiry);
i+=j.toGMTString()}else{if(k=="0"){i=""}else{i+=k}}if(p&&truste.util.createCookieStorage){truste.util.createCookieStorage(g,o,j)
}var n=h.domain,t=self.location.hostname;var m=!!t.match(/^\d{0,3}\.\d{0,3}\.\d{0,3}\.\d{0,3}$/)||t=="localhost";
var l=new RegExp("[.]"+n+"$|^"+n+"$");var r=n&&l.test(t)?n:(m?t:t.replace(/^www\./,""));var q=((self.location.protocol=="https:")?" Secure;":"");
var s=(truste.util.samesite&&!truste.util.samesite(navigator.userAgent)?"":" SameSite=None;")+q;if(typeof truste.eu.noticeLP.pcookie!="undefined"){document.cookie=g+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/;domain="+(m?"":".")+r.replace(/^\./,"")+";"+s;
var f=(function(){var u=0,w=r,x=w.split("."),v="_gd"+(new Date()).getTime();while(u<(x.length-1)&&document.cookie.indexOf(v+"="+v)==-1){w=x.slice(-1-(++u)).join(".");
document.cookie=v+"="+v+";domain="+w+";"}document.cookie=v+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;domain="+w+";"+s;
return w})();r=f}self.document.cookie=g+"="+o+i+"; path=/;domain="+(m?"":".")+r.replace(/^\./,"")+";"+s
};if(e.feat.dropBehaviorCookie){var a=e.feat.replaceDelimiter?"|":",";truste.util.createCookie("notice_behavior",e.behavior+a+e.behaviorManager,"0")
}(function(g){if(g.feat.crossDomain){var f=function(){if(!window.frames.trustarc_notice){if(document.body){var h=document.body,i=document.createElement("iframe");
i.style.display="none";i.name="trustarc_notice";i.id="trustarcNoticeFrame";i.title="Trustarc Cross-Domain Consent Frame";
i.src=g.cdnURL+"get?name=crossdomain.html&domain="+g.domain;h.appendChild(i)}else{setTimeout(f,5)}}};
f()}})(truste.eu.bindMap);e.styles={};e.externalcss=typeof $temp_externalcss!="undefined"&&$temp_externalcss;
e.styles.closebtnlink=typeof $temp_closebtnlink_style!="undefined"&&$temp_closebtnlink_style;e.styles.closebtn=typeof $temp_closebtn_style!="undefined"&&$temp_closebtn_style;
e.styles.box_overlay=typeof $temp_box_overlay!="undefined"&&$temp_box_overlay;e.styles.overlay=typeof $temp_overlay!="undefined"&&$temp_overlay;
e.styles.inner_iframe=typeof $temp_inner_iframe!="undefined"&&$temp_inner_iframe;e.styles.outerdiv=typeof $temp_style_outerdiv!="undefined"&&$temp_style_outerdiv;
e.outerdiv=typeof $temp_outerdiv!="undefined";(function(l){const g="__cmpTrustarc";const k="__tcfapiTrustarc";
var j=function(){if(l.feat.iab){return}var o=self.document,n=o.createElement("script");n.setAttribute("async","async");
n.setAttribute("type","text/javascript");n.setAttribute("crossorigin","");n.src="//trustarc.mgr.consensu.org/get?name=cmp.js";
(o.getElementById(l.containerId)||o.getElementsByTagName("body")[0]||o.getElementsByTagName("head")[0]).appendChild(n);
l.feat.iab=true};var m=function(){if(l.feat.iab){return}var o=self.document,n=o.createElement("script");
n.setAttribute("async","async");n.setAttribute("type","text/javascript");n.setAttribute("crossorigin","");
n.src="https://trustarc.mgr.consensu.org/asset/tcfapi.js";(o.getElementById(l.containerId)||o.getElementsByTagName("body")[0]||o.getElementsByTagName("head")[0]).appendChild(n);
l.feat.iab=true};if(document.getElementById(g)){j()}else{var f=new MutationObserver(function h(n){if(document.getElementById(g)){f.disconnect();
j()}});f.observe(document.body||document.getElementsByTagName("body")[0]||document.documentElement,{attributes:false,childList:true,characterData:false,subtree:true});
setTimeout(function(){f.disconnect()},30000)}if(document.getElementById(k)){m()}else{var i=new MutationObserver(function h(n){if(document.getElementById(k)){i.disconnect();
m()}});i.observe(document.body||document.getElementsByTagName("body")[0]||document.documentElement,{attributes:false,childList:true,characterData:false,subtree:true});
setTimeout(function(){i.disconnect()},30000)}})(truste.eu.bindMap);e.params={};e.bnFlags={};truste.bn.addScriptElem(e.noticeJsURL,function b(){var g;
var f=function(){if(g&&truste.eu.flags&&truste.eu.flags.init){g=clearInterval(g);trustarcBanner.script=truste.util.getScriptElement(/\/\/[^\.]+\.(intranet\.)?(truste|trustarc)(-labs|-svc)?\.(com|net)(:\n+)?\/[^\?#;]*(notice|banner).*?(js=bb|nj)/,true);
truste.util.initParameterMap(trustarcBanner.script,e.params);var i=function(){var j=(e.params.cm||(e.iconBaseUrl+"notice?"))+"domain="+e.domain+"&country="+e.country+"&js=nj2&"+e.params._query.replace(/\b(js|domain|country|name)=[^&#]*&?/g,"");
truste.bn.addScriptElem(j,false,e.containerId)};var h=function(){var j=document.getElementById(e.params.c||"teconsent");
if(j&&j.style.display==="none"){j.style.display=""}truste.bn.msglog("returns",e.bannerMsgURL)};if(e.feat.ccpaApplies||c()){i()
}else{if(e.bnFlags.consentUnresolved){truste.bn.checkConsentUnresolved(i,h)}else{h()}}}};g=setInterval(f,7);
setTimeout(function(){clearInterval(g)},10000)},e.containerId);function c(){var f=/ip(hone|od|ad)|iOS/i.test(navigator.userAgent||navigator.vendor||window.opera);
return(truste.eu.bindMap.ios!=1||!f)&&truste.bn.checkPreference()}})();