MSN

MSN {const i=document.querySelector(n);if(i)return e(i)});i.observe(document.body,{childList:!0,subtree:!0})}));var n;window.RENDER||(e.headInjectionString&&document.head.insertAdjacentHTML(“beforeend”,e.headInjectionString),t.insertAdjacentHTML(“afterbegin”,e.html),document.head.insertAdjacentHTML(“beforeend”,”+e.css+””),e.pageTitle&&(document.title=e.pageTitle),j(e),window.REDUX_DATA=e.state,window.SSR=u.a.Completed,O(a.a.PageTimings.completed,!0),Object(d.a)())}))}function T(e,t){return t.get(e)||t.get(e.toLowerCase())}function k(e){window.SSR=e,window.RENDER=!0}function C(e,t,n,i){if(void 0===window.SSR){const r=”prg-edge-t-ssrt”,o=”prg-edge-t-ssrr”,s=”prg-mmx-p-ssrx”,c=”prg-mmx-p-ssrx-r”,d=”news::elections-2020-us”;let l=!1,f=!1,g=!1;switch(t){case a.a.AppType.Edge:f=i.indexOf(o)>=0,l=f||i.includes(r);break;case a.a.AppType.Mmx:f=i.indexOf(c)>=0,l=f||i.includes(s);break;case a.a.AppType.Hub:l=n===d}if(l){g=”true”===T(“ssrOnly”,e);let t=!1;const n=1200;if(performance&&performance.timing&&performance.timing.responseStart&&performance.timing.navigationStart){t=performance.now()-(performance.timing.responseStart-performance.timing.navigationStart)>n}const i=m();!i&&!t||g?(window.SSR=u.a.NotStarted,window.RENDER=!1,window.SSRONLY=g,window.RIVER=f):(window.SSR=u.a.SkipDueToHidden,window.RENDER=!0,y(a.a.PageTimings.skipDueToHiddenReason,i?a.a.SkipDueToHiddenReason.documentHidden:a.a.SkipDueToHiddenReason.hasPaused))}else k(u.a.SkipDueToCSROnly)}return!window.RENDER}function H(){return Object(s.b)(document.head.dataset.clientSettings)}function D(e){return function(e,t){const n=(e=(e||””).substring(1))+”&”+(t=(t||””).substring(1));return new o.a(n)}(e&&e.queryparams,window.location.search)}function q(e,t,n,i,r,o=p.a,s){if(window.RENDER||window.SSR!==u.a.NotStarted)return;const d=new h.a(o,p.b),l=S(e,function(e,t){const n=”true”===T(“ssrCdn”,e);return(t||(n?”https://assets.msn.com”:window.location.origin))+”/render/?fragment=true&”}(e,s),t,n,i,r,d.getSerializedData()),f=new XMLHttpRequest,m=e=>{Object(g.a)(`Fragment fetch for ${l} failed. Status code: ${f.status}. ${e}`,34002,{}),window.SSR=u.a.HasFetchError};f.onabort=function(){m(“XMLHttpRequest.onabort called.”)},f.onerror=function(){m(“XMLHttpRequest.onerror called.”)},f.onreadystatechange=function(){try{if(4!==f.readyState)return;if(O(a.a.PageTimings.fragmentFetchEnd,!0),y(a.a.PageTimings.fragmentFetchStatusCode,f.status,!1),f.status>=200&&f.status<300){if(!window.RENDER){window.SSR=u.a.InsertingDOM;const e=JSON.parse(f.responseText);e.html?(O(a.a.PageTimings.injectingDOM,!0),R(e)):(Object(g.a)(`Fragment fetch for ${l} succeeded but returned empty html.`,34002,{}),window.SSR=u.a.HasFetchError)}const e=f.getResponseHeader("Date"),t=f.getResponseHeader("x-cache");!function(e,t,n){const i=function(e){const t=performance.getEntriesByType("resource").filter(t=>“xmlhttprequest”===t.initiatorType&&t.name===e);return t.length>0?t[0]:null}(e);let r=!1;r=E(i)?void 0!==(o=i).transferSize?0===o.transferSize:void 0!==o.nextHopProtocol?””===o.nextHopProtocol:(Object(g.a)(“didUseBrowserCache was called without supporting transferSize or nextHopProtocol”,34003,{perfResourceTimingKeys:Object.keys(o||{})}),!1):function(e){const t=Object(c.a)();if(!e||!t)return Object(g.a)(“dateResponseHeader was empty or localStorage is not supported”,34004,{dateResponseHeader:e}),!1;let n=!1;const i=t.getItem(“SSRDateResponseHeader”);i&&(n=i===e);n||t.setItem(“SSRDateResponseHeader”,e);return n}(t);var o;const s=function(e,t){return!e&&”TCP_HIT”===t}(r,n);y(a.a.PageTimings.fragmentBrowserCached,r?1:0,!1),y(a.a.PageTimings.fragmentCDNCached,s?1:0,!1)}(l,e,t)}else m(“Response is not OK.”)}catch(e){m(“Exception occured on XMLHttpRequest.onreadystatechange.n”+(e.stack||e))}},f.open(“GET”,l);const w=t.aid;f.setRequestHeader(a.a.AIDRequestHeaderName,w),window.SSR=u.a.Fetching,O(a.a.PageTimings.fragmentFetchStart,!0),f.send()}function E(e){return”transferSize”in e||”nextHopProtocol”in e}function P(){O(a.a.PageTimings.inlineStart,!0)}},”4qkC”:function(e,t,n){“use strict”;n.d(t,”a”,(function(){return i})),n.d(t,”b”,(function(){return r}));function i(e){if(!e||0===e.length)return e;const t=[];return e.forEach(e=>{const n=e.toLocaleLowerCase().trim();(n.startsWith(“prg-“)||n.startsWith(“1s-“))&&t.push(n)}),t.sort()}function r(e,t,n){if(!e||”v3”!=e)return!1;const r=i(t);return!(!r||!(r.indexOf(“prg-gitconfigs-t”)>-1||r.indexOf(“prg-gitconfigs-t1”)>-1||r.indexOf(“prg-gitconfigs-t11″)>-1))||!n}},”9i/1”:function(e,t,n){“use strict”;n.d(t,”a”,(function(){return i}));class i{constructor(e,t){this.spec=e,this.qspPrefix=t||”rd”}get verParam(){return this.qspPrefix+”.ver”}get data(){return void 0===this.memo&&(this.memo=function e(t){const n=t;return void 0!==n.clientValue?n.clientValue:Object.keys(t).reduce((n,i)=>Object.assign(Object.assign({},n),{[i]:e(t[i])}),{})}(this.spec.spec)),this.memo}loadQueryParams(e){if(void 0!==this.memo)throw”overwriting existing query string parameters.”;const t=e.get([this.qspPrefix,”ver”].join(“.”));if(t!==this.spec.ver)throw`unmatched spec version: expected “${this.spec.ver}” but got ${t}.`;this.memo={},e.forEach((e,t)=>{if(!t.startsWith(this.qspPrefix))return;if(t===this.verParam)return;const n=t.split(“.”).slice(1);let i=this.memo;n.forEach((t,r)=>{let o={};if(r===n.length-1)try{o=()=>JSON.parse(e)}catch(e){throw this.memo=void 0,e}Object.prototype.hasOwnProperty.call(i,t)||(i[t]=o),”object”!=typeof o||(i=i[t])})})}getURLSearchParams(){const e=new URLSearchParams,t=(n,i)=>{Object.keys(n).forEach(r=>{const o=n[r],s=[…i,r];”object”!=typeof o?e.append(s.join(“.”),JSON.stringify(o())):t(o,s)})};return t(this.data,[this.qspPrefix]),e.sort(),e.append(this.verParam,this.spec.ver),e}getSerializedData(){return this.getURLSearchParams().toString()}}},”9i6q”:function(e,t,n){“use strict”;n.d(t,”b”,(function(){return r})),n.d(t,”a”,(function(){return o}));var i=n(“jXSF”);function r(){“undefined”!=typeof globalThis?globalThis.untrackedClickHandler=s:window.untrackedClickHandler=s}function o(){“undefined”!=typeof globalThis?document.addEventListener(“click”,globalThis.untrackedClickHandler):document.addEventListener(“click”,window.untrackedClickHandler)}function s(){Object(i.a)(“Click event occurred before hydration”,35800,{})}},AgqX:function(e,t,n){“use strict”;n.d(t,”b”,(function(){return o})),n.d(t,”a”,(function(){return s}));var i=n(“Uaaq”);const r=[0,656,980,1304],o=”rd”,s={ver:”0.1.0″,spec:{innerWidth:{clientValue:()=>window.innerWidth},innerHeight:{clientValue:()=>window.innerHeight},breakpoint:{clientValue:()=>Object(i.c)(window.innerWidth,r)},locationHash:{clientValue:()=>window.location.hash},locationHref:{clientValue:()=>window.location.href},locationHost:{clientValue:()=>window.location.host},locationHostName:{clientValue:()=>window.location.hostname},locationOrigin:{clientValue:()=>window.location.origin},locationPathName:{clientValue:()=>window.location.pathname},locationProtocol:{clientValue:()=>window.location.protocol},locationSearch:{clientValue:()=>window.location.search},canUseCssGrid:{clientValue:()=>window.CSS&&window.CSS.supports&&CSS.supports(“display”,”grid”)||!1},devicePixelRatio:{clientValue:()=>window.devicePixelRatio},language:{clientValue:()=>document.documentElement.lang},direction:{clientValue:()=>document.documentElement.dir}}}},AjCL:function(e,t,n){“use strict”;function i(){try{return localStorage}catch(e){return null}}n.d(t,”a”,(function(){return i}))},BQg2:function(e,t,n){“use strict”;n.d(t,”a”,(function(){return i}));class i{constructor(e){this.searchParams=Object.create(null),this.parseQueryString(e)}set(e,t){return null!=t&&(this.searchParams[e]=t),this}get(e){return this.searchParams[e]}delete(e){delete this.searchParams[e]}toString(){const e=Object.keys(this.searchParams);return e.length?e.sort().map(e=>`${e}=${this.searchParams[e]}`).join(“&”):””}parseQueryString(e){e&&(“?”===e.charAt(0)&&(e=e.substring(1)),e.split(“&”).forEach(e=>{const t=e.split(“=”),n=t[0];this.get(n)||(this.searchParams[n]=t[1])}))}}},D57K:function(e,t,n){“use strict”;n.d(t,”d”,(function(){return r})),n.d(t,”a”,(function(){return o})),n.d(t,”e”,(function(){return s})),n.d(t,”c”,(function(){return c})),n.d(t,”b”,(function(){return a}));var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function r(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=0;c–)(r=e[c])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function a(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{a(i.next(e))}catch(e){o(e)}}function c(e){try{a(i.throw(e))}catch(e){o(e)}}function a(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,c)}a((i=i.apply(e,t||[])).next())}))}},HDSB:function(e,t,n){“use strict”;function i(){return!(“undefined”==typeof window||!window.document||!window.document.createElement)}n.d(t,”a”,(function(){return i}))},K9Fy:function(e,t,n){“use strict”;(function(e){n.d(t,”a”,(function(){return o}));var i=n(“xk7g”),r=n(“HDSB”);class o{constructor(){Object(r.a)()?(this.isDebugEnabled=(Object(i.a)(window.location.href,”debug”)||””).toLowerCase()in{1:1,true:1},this.isDebugEnabled&&!e.TEST_ENV&&(window.webpackRequire=n)):this.isDebugEnabled=!1}getLoggingService(){return null}isDebug(){return this.isDebugEnabled}setDebug(e){this.isDebugEnabled=e}setTags(e){}log(e,t){this.isDebug()&&console.info(e)}logError(e){console.error(e)}logCallback(e){this.isDebug()&&console.info(e())}logObjects(…e){this.isDebug()&&console.log(…e)}}}).call(this,n(“fRV1″))},”Kh+O”:function(e,t,n){“use strict”;n.d(t,”a”,(function(){return r}));var i=n(“AgqX”);const r={ver:””+i.a.ver,spec:Object.assign(Object.assign({},i.a.spec),{isDarkModeEnabled:{clientValue:()=>!0===window.matchMedia(“(prefers-color-scheme:dark)”).matches}})}},PDCl:function(e,t,n){“use strict”;var i;n.d(t,”a”,(function(){return i})),function(e){e.NotStarted=”NotStarted”,e.Fetching=”Fetching”,e.InsertingDOM=”InsertingDOM”,e.Completed=”Completed”,e.HasFetchError=”HasFetchError”,e.HasError=”HasError”,e.SkipDueToCSROnly=”SkipDueToCSROnly”,e.SkipDueToHidden=”SkipDueToHidden”}(i||(i={}))},Uaaq:function(e,t,n){“use strict”;n.d(t,”a”,(function(){return r})),n.d(t,”c”,(function(){return o})),n.d(t,”b”,(function(){return s}));var i=n(“yqT/”);const r=[0,540,768,1084,1400,1779];function o(e,t=r){for(let n=t.length-1;n>=0;n–)if(e>=t[n])return n}function s(e,t){if(!Object(i.a)())return e[0];const n=t?o(window.innerWidth,t):o(window.innerWidth);return e.slice(0,n+1).pop()}},Uw7R:function(e,t,n){“use strict”;n.d(t,”a”,(function(){return s})),n.d(t,”b”,(function(){return c})),n.d(t,”c”,(function(){return a}));var i=n(“HDSB”);const r=Object(i.a)()?window._pageTimings||(window._pageTimings={}):{},o=Object(i.a)()?window._secondaryPageTimings||(window._secondaryPageTimings={}):{};function s(){return r}function c(){return o}function a(e){if(e&&r){const t=r[e]||(r[e]=0);r[e]=t+1}}},VrHr:function(e,t,n){“use strict”;n.r(t);var i=n(“D57K”),r=n(“tMmC”),o=n(“K9Fy”),s=n(“1/cg”),c=n(“PDCl”),a=n(“Vy+8”),u=n(“jXSF”);function d(e){Object(u.a)(“Error when loading bundle: “+e,20202,{})}function l(e,t,n,i,r){const o={source:t,customMessage:e,line:n,column:i,stack:r&&r.stack};Object(u.a)(“JS Exception”,20203,o)}var f=n(“9i6q”),g=n(“Kh+O”),p=n(“YBLW”),h=n(“AjCL”);Object(r.b)(new o.a),window.onErrorHandler=d,window.onerror=l,Object(f.b)();const m=Object(s.g)();(new class{constructor(){this.childCookieName=”child”,this.domInfo=document.head.dataset.info,this.WeaDetectLocSetting=”weaPeregrineDetectLocation”,this.WeaHomeLocCookie=”weaPeregrineHomeLocation”,this.WeaSpartanDetectLocSetting=”weaDetectLocation”,this.WeaSpartanHomeLocCookie=”weaSpartanHomeLocation”}init(e=null){this.clientSettings=e||JSON.parse(document.head.dataset.clientSettings),this.authCookieName=window._authCookieName||””,this.bundle=window._webWorkerBundle||””;const t=this.buildWebWorkerUrl();if(window.webWorker=new Worker(t,{name:”web-worker”}),window.webWorkerMessages=[],window.webWorker.onmessage=e=>{window.webWorkerMessages.push(e.data)},window.webWorkerErrors=[],window.webWorker.onerror=e=>{window.webWorkerErrors.push(e)},window.chrome){const e=window.webWorker&&window.chrome&&window.chrome.ntpSettingsPrivate;e&&”function”==typeof e.getPref&&e.getPref(“ntp.news_feed_display”,e=>{e&&e.value&&window.webWorker.postMessage({id:”FeedDisplaySetting”,type:”command”,payload:e.value})}),”enterprise”===this.clientSettings.audienceMode&&this.clientSettings.browser&&”edgeChromium”===this.clientSettings.browser.browserType&&parseInt(this.clientSettings.browser.version)>=87&&this.getAccessToken().then(e=>{e&&window.webWorker.postMessage({id:”FetchMyFeed”,type:”command”,payload:e})})}}buildWebWorkerUrl(e=null){return(this.bundle||””)+”#”+this.qsFromDocument()+this.qsFromCookies()+this.qsFromDataAttribute(e||this.clientSettings)+this.qsMisc()+this.qsFromUrl()}qs(e,t,n){return e?t+”=”+(n||e)+”&”:””}qsFromDocument(){return this.qs(document.getElementsByTagName(“html”)[0].getAttribute(“lang”),”lang”)}qsFromCookies(){return this.qs(Object(p.b)(this.authCookieName),”aace”,”1″)+this.qs(Object(p.b)(“muid”),”muid”)+this.qs(Object(p.b)(this.childCookieName),”child”)+this.qs(Object(p.b)(“cbypass”),”cbypass”)}qsFromDataAttributeHelper(e,t){return e&&e.featureFlags&&e.featureFlags.wpoEnabled&&(t=this.appendWpoFlightsToInfo(e,t)),this.qs(e.pcsInfo&&e.pcsInfo.env||e.env,”env”)+this.qs(e.aid,”aid”)+this.qs(e.apptype,”apptype”)+this.qs(e.pagetype,”pagetype”)+this.qs(e.audienceMode,”audienceMode”)+this.qs(e.configIndexDocId,”configIndexDocId”)+this.qs(e.deviceFormFactor,”deviceFormFactor”)+this.qs(e.domain,”domain”)+this.qs(e.feedBaseDomain||location.origin,”feedBaseDomain”)+this.qs(e.configRootUrl,”configRootUrl”)+this.qs(this.getHighestCbid(e.cbid,e.apptype),”cbid”)+this.qs(e.os,”os”)+this.qs(JSON.stringify(e.locale),”locale”)+this.qs(e.geo_lat,”lat”)+this.qs(e.geo_long,”long”)+(“dhp”===e.pagetype||”ntp”===e.pagetype?this.qs(Object(p.b)(this.WeaSpartanHomeLocCookie),this.WeaSpartanHomeLocCookie)+this.qs(Object(p.b)(this.WeaSpartanDetectLocSetting),this.WeaSpartanDetectLocSetting):this.qs(Object(p.b)(this.WeaHomeLocCookie),this.WeaHomeLocCookie)+this.qs(Object(p.b)(this.WeaDetectLocSetting),this.WeaDetectLocSetting))+this.qs(JSON.stringify(e.featureFlags),”featureFlags”)+this.qs(JSON.stringify(e.browser),”browser”)+this.qs(JSON.stringify(e.servicesEndpoints),”servicesEndpoints”)+this.qs(e.bundleInfo&&e.bundleInfo.v||””,”buildVersion”)+this.buildArtifactHashes(e)+this.qs(t,”dataInfo”)}appendWpoFlightsToInfo(e,t){const n=this.getWpoFlightsFromLocalStorage(e);if(n&&n.length){const e=”;”,i=t.split(e);for(let e=0;ee.id)}}catch(e){console.warn(`Error getting wpo flights from ls for ${i} Error:${e}`)}return null}buildArtifactHashes(e){let t;try{const{locale:n={},bundleInfo:i={},audienceMode:r,pagetype:o,apptype:s}=e,{hash:c,configsHash:a,locConfigsHash:u}=i;if(!c||!a||!u)return””;t=this.qs(c,”bundleHash”)+this.qs(a,”configHash”)+this.qs(u,”locHash”);const d=`config_hash_${r}_${n.language}_${n.market}_${o}_${s}`,l=Object(h.a)().getItem(d);if(l){const{bundleHash:e,configHash:n,locHash:i}=JSON.parse(l)||{};e&&n&&i&&(t+=this.qs(e,”lastBundleHash”)+this.qs(n,”lastConfigHash”)+this.qs(i,”lastLocHash”))}return t}catch(e){console.error(“Error getting config hashes from ls: “+e)}return t}getHighestCbid(e,t){try{const n=Object(h.a)(),i=parseInt(e),r=parseInt(JSON.parse(n.getItem(“cbid_”+(t||””))));let o;if(i&&!isNaN(i)&&r&&!isNaN(r)&&(o=i>r?i:r),o=o||i||r,o)return window._cbid=o.toString()}catch(e){console.log(“Error getting highest CBID”+e)}}getAudienceMode(e){const t=Object(h.a)();return Object(p.b)(this.authCookieName)&&Object(p.b)(this.childCookieName)?”kids”:”enterprise”===e.audienceMode&&t&&t.getItem(“forceConsumer”)?”adult”:e.audienceMode||”adult”}qsFromDataAttribute(e){let t,n;const i=Object(h.a)();if(i){let r=JSON.parse(i.getItem(“shd_”+e.pagetype)||null);if(r&&r.clientSettings&&r.info)t=r.clientSettings,n=r.info;else if(r=JSON.parse(i.getItem(“ac_shd”)||null),r){const i=r[e.pagetype];i&&i.clientSettings&&i.info&&(t=i.clientSettings,n=i.info)}}return(!t||!n||e.pageGenTime>=t.pageGenTime)&&(t=e,n=this.domInfo),t.audienceMode=this.getAudienceMode(t),this.qsFromDataAttributeHelper(t,n)}qsFromUrl(){const e=location.search;return e&&e.length?e.substring(1,e.length):””}getAccessToken(){return new Promise(e=>{window.chrome&&window.chrome.authPrivate?window.chrome.authPrivate.getPrimaryAccountInfo(t=>{t&&”GCC_MODERATE”!==t.region_scope||e(“”);const n={account_id:t.account_id,account_type:t.account_type,client_id:”d7b530a4-7680-4c23-a8bf-c52c121d2e87″,scope_or_resource:”https://enterprisenews.microsoft.com”};window.chrome.authPrivate.acquireAccessTokenSilently(n,t=>{t.is_success?e(t.access_token):e(“”)})}):e(“”)})}qsMisc(){return this.qs(performance.timeOrigin&&performance.timeOrigin.toString(),”mainTimeOrigin”)}}).init(m),function(){Object(i.b)(this,void 0,void 0,(function*(){try{if(Object(s.f)(),!window.RENDER)if(m&&window._ssrServiceEntryUrl){const e=Object(s.d)(m),t=Object(s.c)(m,e);if(Object(s.a)(e,a.a.AppType.Hub,m.pagetype,t))try{const n=()=>””;Object(s.b)(e,m,t,window._ssrServiceEntryUrl,n,g.a)}catch(e){Object(u.a)(“Exception occured on fetchSSRPage.n”+(e.stack||e),34007,{}),Object(s.h)(c.a.HasError)}}else Object(u.a)(“Failed SSR inline script due to missing client settings or SSR service entry.”,34007,{}),Object(s.h)(c.a.HasError)}catch(e){Object(u.a)(“Exception occured on SSR inline script.n”+(e.stack||e),34007,{}),Object(s.h)(c.a.HasError)}}))}()},”Vy+8”:function(e,t,n){“use strict”;var i;n.d(t,”a”,(function(){return i})),function(e){let t,n,i;e.AIDRequestHeaderName=”pcs-aid”,function(e){e.inlineStart=”ssr.inlineStart”,e.fragmentFetchStart=”ssr.fragmentFetching”,e.fragmentFetchEnd=”ssr.fragmentFetched”,e.fragmentFetchStatusCode=”ssr.fragmentFetchStatusCode”,e.fragmentBrowserCached=”ssr.fragmentBrowserCached”,e.fragmentCDNCached=”ssr.fragmentCDNCached”,e.injectingDOM=”ssr.injectingDOM”,e.awaitingRAF=”ssr.awaitingRAF”,e.markersSet=”ssr.markersSet”,e.completed=”ssr.completed”,e.CSRTimeout=”ssr.CSRTimeout”,e.CSROnly=”ssr.csrOnly”,e.didSSR=”ssr.isSSRPagePresent”,e.riverEnabled=”ssr.riverEnabled”,e.ssrState=”ssr.state”,e.pageTTVR=”TTVR”,e.fetchDelayReason=”ssr.fetchDelayReason”,e.awaitingInnerWidthTime=”ssr.awaitingInnerWidthTime”,e.skipDueToHiddenReason=”ssr.skipDueToHiddenReason”}(t=e.PageTimings||(e.PageTimings={})),e.Product={mmx:”emmx”,edge:”spartan”,edgeChromium:”anaheim”,hybrid:”spartan”,hub:”prime”,microsoftNews:”msnews”,office:”entnews”},function(e){e[e.Mmx=0]=”Mmx”,e[e.Hub=1]=”Hub”,e[e.Edge=2]=”Edge”}(n=e.AppType||(e.AppType={})),function(e){e[e.documentHidden=0]=”documentHidden”,e[e.hasPaused=1]=”hasPaused”,e[e.invalidInnerWidth=2]=”invalidInnerWidth”,e[e.slowFetchStart=3]=”slowFetchStart”}(i=e.SkipDueToHiddenReason||(e.SkipDueToHiddenReason={}))}(i||(i={}))},YBLW:function(e,t,n){“use strict”;let i;function r(e){if(!e)return null;if(!i){const e=document.cookie.split(“; “);i={};const t=e&&e.length;for(let n=0;n=0)return this.storage.key(e)}setObject(e,t){void 0!==t?this.setItem(e,JSON.stringify(t)):this.removeItem(e)}removeObject(e){const t=this.removeItem(e);if(null!=t)return Object(i.b)(t)}setItem(e,t){if(this.supported)try{this.storage.setItem(e,t)}catch(e){r.a.logError(e)}}removeItem(e){if(this.supported){const t=this.getItem(e);return this.storage.removeItem(e),t}}removeSubstringKeys(e){if(!this.supported||!e)return;const t=[];for(let n=0;n0)return e.substring(0,t)}return””}(l.apikey));const g=function(e,t,n,i,r,o){if(n){r=r||{};const{apptype:s,pagetype:a,pageGenTime:d,bundleInfo:l}=n;r.pageGenTime=d,r.build=l&&l.v;const f=u[s]?u[s]:s,g=s+”-“+a,p=document.getElementsByTagName(“html”)[0].getAttribute(“lang”);let h=””;try{getCookieConsentRequired&&”function”==typeof getCookieConsentRequired&&getCookieConsentRequired()||(h=Object(c.a)(“muid”))}catch(e){console.log(“error fetching muid.”)}const m={name:”MS.News.Web.AppError”,time:d,ver:”4.0″,iKey:”o:”+i,data:{baseData:{},baseType:”MS.News.Web.Base”,page:{name:”default”,product:f,type:a},browser:{clientId:h},flight:{id:o},request:{activityId:n.aid,requestId:n.aid},locale:{mkt:p},extSchema:{id:e,source:g,severity:0,pb:r,message:t}}};return m?JSON.stringify(m):null}return null}(t,e,r,f,n,d);if(l&&g){console.error(g);const e=”https://”+a+”/OneCollector/1.0″+function(e){return”?”+Object.keys(e).map((function(t){return t+”=”+encodeURIComponent(e[t])})).join(“&”)}(l);navigator.sendBeacon(e,g)}else console.log(“missing parameters in data-client-settings. “+e)}catch(t){console.log(“error logging the app error. “+e)}}},tMmC:function(e,t,n){“use strict”;function i(e){r=e}n.d(t,”b”,(function(){return i})),n.d(t,”a”,(function(){return r}));let r=new(n(“K9Fy”).a)},xYH4:function(e,t,n){“use strict”;function i(e){try{return JSON.parse(e)}catch(e){return null}}function r(e,t){const n=parseInt(e);return isNaN(n)?t:n}function o(e){try{return JSON.stringify(e)}catch(e){return null}}n.d(t,”b”,(function(){return i})),n.d(t,”a”,(function(){return r})),n.d(t,”c”,(function(){return o}))},xk7g:function(e,t,n){“use strict”;function i(e,t){const n=t.replace(/[[]]/g,”\$&”),i=new RegExp(“[?&]”+n+”(=([^&#]*)|&|#|$)”).exec(e);if(!i)return null;const r=i[2];return decodeURIComponent(r.replace(/+/g,” “))||””}n.d(t,”a”,(function(){return i}))},”yqT/”:function(e,t,n){“use strict”;function i(){return!(“undefined”==typeof window||!window.document||!window.document.createElement)}n.d(t,”a”,(function(){return i}))}}); ]]>

Related Post

Be the first to comment

Leave a Reply

Your email address will not be published.


*