MSN

MSN {const r=doc.querySelector(n);if(r)return e(r)});r.observe(doc.physique,{childList:!0,subtree:!0})}));var n;window.RENDER||(e.headInjectionString&&doc.head.insertAdjacentHTML(“beforeend”,e.headInjectionString),t.insertAdjacentHTML(“afterbegin”,e.html),doc.head.insertAdjacentHTML(“beforeend”,”+e.css+””),e.pageTitle&&(doc.title=e.pageTitle),j(e),window.REDUX_DATA=e.state,window.SSR=u.a.Accomplished,O(a.a.PageTimings.accomplished,!0),Object(d.a)())}))}perform okay(e,t)perform T(e){window.SSR=e,window.RENDER=!0}perform H(e,t,n,r){if(void 0===window.SSR){const i=”prg-edge-t-ssrt”,o=”prg-edge-t-ssrr”,s=”prg-mmx-p-ssrx”,c=”prg-mmx-p-ssrx-r”,d=”prg-elec-ssr”,l=”information::elections-2020-us”;let f=!1,g=!1,h=!1;change(t)if(f){h=”true”===okay(“ssrOnly”,e);let t=!1;const n=1200;if(efficiency&&efficiency.timing&&efficiency.timing.responseStart&&efficiency.timing.navigationStart){t=efficiency.now()-(efficiency.timing.responseStart-performance.timing.navigationStart)>n}const r=m();!r&&!t||h?(window.SSR=u.a.NotStarted,window.RENDER=!1,window.SSRONLY=h,window.RIVER=g):(window.SSR=u.a.SkipDueToHidden,window.RENDER=!0,y(a.a.PageTimings.skipDueToHiddenReason,r?a.a.SkipDueToHiddenReason.documentHidden:a.a.SkipDueToHiddenReason.hasPaused))}else T(u.a.SkipDueToCSROnly)}return!window.RENDER}perform C(){return Object(s.b)(doc.head.dataset.clientSettings)}perform q(e){return perform(e,t)””).substring(1))+”&”+(t=(t(e&&e.queryparams,window.location.search)}perform D(e,t,n,r,i,o=h.a,s){if(window.RENDER||window.SSR!==u.a.NotStarted)return;const d=new p.a(o,h.b),l=S(perform(e,t)(n?”https://property.msn.com”:window.location.origin))+”/render/?fragment=true&”(e,s),t,n,r,i,d.getSerializedData()),f=new XMLHttpRequest,m=e=>{Object(g.a)(`Fragment fetch for ${l} failed. Standing code: ${f.standing}. ${e}`,34002,{}),window.SSR=u.a.HasFetchError};f.onabort=perform(){m(“XMLHttpRequest.onabort referred to as.”)},f.onerror=perform(){m(“XMLHttpRequest.onerror referred to as.”)},f.onreadystatechange=perform(){strive{if(4!==f.readyState)return;if(O(a.a.PageTimings.fragmentFetchEnd,!0),y(a.a.PageTimings.fragmentFetchStatusCode,f.standing,!1),f.standing>=200&&f.standing<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 r=function(e){const t=performance.getEntriesByType("resource").filter(t=>“xmlhttprequest”===t.initiatorType&&t.identify===e);return t.size>0?t[0]:null}(e);let i=!1;i=E(r)?void 0!==(o=r).transferSize?0===o.transferSize:void 0!==o.nextHopProtocol?””===o.nextHopProtocol:(Object(g.a)(“didUseBrowserCache was referred to as with out supporting transferSize or nextHopProtocol”,34003,{perfResourceTimingKeys:Object.keys(o||{})}),!1):perform(e){const t=Object(c.a)();if(!e||!t)return Object(g.a)(“dateResponseHeader was empty or localStorage isn’t supported”,34004,{dateResponseHeader:e}),!1;let n=!1;const r=t.getItem(“SSRDateResponseHeader”);r&&(n=r===e);n||t.setItem(“SSRDateResponseHeader”,e);return n}(t);var o;const s=perform(e,t){return!e&&”TCP_HIT”===t}(i,n);y(a.a.PageTimings.fragmentBrowserCached,i?1:0,!1),y(a.a.PageTimings.fragmentCDNCached,s?1:0,!1)}(l,e,t)}else m(“Response isn’t OK.”)}catch(e)e))},f.open(“GET”,l);const w=t.support;f.setRequestHeader(a.a.AIDRequestHeaderName,w),window.SSR=u.a.Fetching,O(a.a.PageTimings.fragmentFetchStart,!0),f.ship()}perform E(e)”nextHopProtocol”in eperform P(){O(a.a.PageTimings.inlineStart,!0)}},”4qkC”:perform(e,t,n){“use strict”;n.d(t,”a”,(perform(){return r})),n.d(t,”b”,(perform(){return i}));perform r(e)0===e.size)return e;const t=[];return e.forEach(e=>n.startsWith(“1s-“))&&t.push(n)),t.kind()perform i(e)},”9i/1”:perform(e,t,n){“use strict”;n.d(t,”a”,(perform(){return r}));class r{constructor(e,t)get verParam(){return this.qspPrefix+”.ver”}get knowledge(){return void 0===this.memo&&(this.memo=perform e(t){const n=t;return void 0!==n.clientValue?n.clientValue:Object.keys(t).scale back((n,r)=>Object.assign(Object.assign({},n),{[r]:e(t[r])}),{})}(this.spec.spec)),this.memo}loadQueryParams(e){if(void 0!==this.memo)throw”overwriting present question string parameters.”;const t=e.get([this.qspPrefix,”ver”].be a part of(“.”));if(t!==this.spec.ver)throw`unmatched spec model: anticipated “${this.spec.ver}” however bought ${t}.`;this.memo={},e.forEach((e,t)=>{if(!t.startsWith(this.qspPrefix))return;if(t===this.verParam)return;const n=t.cut up(“.”).slice(1);let r=this.memo;n.forEach((t,i)=>{let o={};if(i===n.length-1)strive{o=()=>JSON.parse(e)}catch(e){throw this.memo=void 0,e}Object.prototype.hasOwnProperty.name(r,t)||(r[t]=o),”object”!=typeof o||(r=r[t])})})}getURLSearchParams(){const e=new URLSearchParams,t=(n,r)=>{Object.keys(n).forEach(i=>{const o=n[i],s=[…r,i];”object”!=typeof o?e.append(s.be a part of(“.”),JSON.stringify(o())):t(o,s)})};return t(this.knowledge,[this.qspPrefix]),e.kind(),e.append(this.verParam,this.spec.ver),e}getSerializedData(){return this.getURLSearchParams().toString()}}},”9i6q”:perform(e,t,n){“use strict”;n.d(t,”b”,(perform(){return i})),n.d(t,”a”,(perform(){return o}));var r=n(“jXSF”);perform i(){“undefined”!=typeof globalThis?globalThis.untrackedClickHandler=s:window.untrackedClickHandler=s}perform o(){“undefined”!=typeof globalThis?doc.addEventListener(“click on”,globalThis.untrackedClickHandler):doc.addEventListener(“click on”,window.untrackedClickHandler)}perform s(){Object(r.a)(“Click on occasion occurred earlier than hydration”,35800,{})}},AgqX:perform(e,t,n){“use strict”;n.d(t,”b”,(perform(){return o})),n.d(t,”a”,(perform(){return s}));var r=n(“Uaaq”);const i=[0,656,980,1304],o=”rd”,s={ver:”0.1.0″,spec:{innerWidth:{clientValue:()=>window.innerWidth},innerHeight:{clientValue:()=>window.innerHeight},breakpoint:{clientValue:()=>Object(r.c)(window.innerWidth,i)},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:!1,devicePixelRatio:{clientValue:()=>window.devicePixelRatio},language:{clientValue:()=>doc.documentElement.lang},course:{clientValue:()=>doc.documentElement.dir}}}},AjCL:perform(e,t,n){“use strict”;perform r(){strive{return localStorage}catch(e){return null}}n.d(t,”a”,(perform(){return r}))},BQg2:perform(e,t,n){“use strict”;n.d(t,”a”,(perform(){return r}));class r{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.size?e.kind().map(e=>`${e}=${this.searchParams[e]}`).be a part of(“&”):””}parseQueryString(e){e&&(“?”===e.charAt(0)&&(e=e.substring(1)),e.cut up(“&”).forEach(e=>))}}},D57K:perform(e,t,n){“use strict”;n.d(t,”d”,(perform(){return i})),n.d(t,”a”,(perform(){return o})),n.d(t,”e”,(perform(){return s})),n.d(t,”c”,(perform(){return c})),n.d(t,”b”,(perform(){return a}));var r=perform(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&perform(e,t){e.__proto__=t}||perform(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};perform i(e,t){perform n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=perform(){return(o=Object.assign||perform(e){for(var t,n=1,r=arguments.size;n3&&s&&Object.defineProperty(t,n,s),sperform a(e,t,n,r){return new(n||(n=Promise))((perform(i,o){perform s(e){strive{a(r.subsequent(e))}catch(e){o(e)}}perform c(e){strive{a(r.throw(e))}catch(e){o(e)}}perform a(e){e.finished?i(e.worth):new n((perform(t){t(e.worth)})).then(s,c)}a((r=r.apply(e,t||[])).subsequent())}))}},HDSB:perform(e,t,n){“use strict”;perform r()!window.doc.createElement)n.d(t,”a”,(perform(){return r}))},K9Fy:perform(e,t,n){“use strict”;(perform(e){n.d(t,”a”,(perform(){return o}));var r=n(“xk7g”),i=n(“HDSB”);class o{constructor(){Object(i.a)()?(this.isDebugEnabled=(Object(r.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.information(e)}logError(e){console.error(e)}logCallback(e){this.isDebug()&&console.information(e())}logObjects(…e){this.isDebug()&&console.log(…e)}}}).name(this,n(“fRV1″))},”Kh+O”:perform(e,t,n){“use strict”;n.d(t,”a”,(perform(){return i}));var r=n(“AgqX”);const i={ver:””+r.a.ver,spec:Object.assign(Object.assign({},r.a.spec),{isDarkModeEnabled:{clientValue:()=>!0===window.matchMedia(“(prefers-color-scheme:darkish)”).matches}})}},PDCl:perform(e,t,n){“use strict”;var r;n.d(t,”a”,(perform(){return r})),perform(e){e.NotStarted=”NotStarted”,e.Fetching=”Fetching”,e.InsertingDOM=”InsertingDOM”,e.Accomplished=”Accomplished”,e.HasFetchError=”HasFetchError”,e.HasError=”HasError”,e.SkipDueToCSROnly=”SkipDueToCSROnly”,e.SkipDueToHidden=”SkipDueToHidden”}(r||(r={}))},Uaaq:perform(e,t,n){“use strict”;n.d(t,”a”,(perform(){return i})),n.d(t,”c”,(perform(){return o})),n.d(t,”b”,(perform(){return s}));var r=n(“yqT/”);const i=[0,540,768,1084,1400,1779];perform o(e,t=i){for(let n=t.length-1;n>=0;n–)if(e>=t[n])return n}perform s(e,t){if(!Object(r.a)())return e[0];const n=t?o(window.innerWidth,t):o(window.innerWidth);return e.slice(0,n+1).pop()}},Uw7R:perform(e,t,n){“use strict”;n.d(t,”a”,(perform(){return s})),n.d(t,”b”,(perform(){return c})),n.d(t,”c”,(perform(){return a}));var r=n(“HDSB”);const i=Object(r.a)()?window._pageTimings||(window._pageTimings={}):{},o=Object(r.a)()?window._secondaryPageTimings||(window._secondaryPageTimings={}):{};perform s(){return i}perform c(){return o}perform a(e){if(e&&i)(i[e]=0);i[e]=t+1}},VrHr:perform(e,t,n){“use strict”;n.r(t);var r=n(“D57K”),i=n(“tMmC”),o=n(“K9Fy”),s=n(“1/cg”),c=n(“PDCl”),a=n(“Vy+8”),u=n(“jXSF”);perform d(e){Object(u.a)(“Error when loading bundle: “+e,20202,{})}perform l(e,t,n,r,i){const o={supply:t,customMessage:e,line:n,column:r,stack:i&&i.stack};Object(u.a)(“JS Exception”,20203,o)}var f=n(“9i6q”),g=n(“Kh+O”),h=n(“YBLW”),p=n(“AjCL”);Object(i.b)(new o.a),window.onErrorHandler=d,window.onerror=l,Object(f.b)();const m=Object(s.g)();(new class{constructor(){this.childCookieName=”baby”,this.domInfo=doc.head.dataset.information,this.WeaDetectLocSetting=”weaPeregrineDetectLocation”,this.WeaHomeLocCookie=”weaPeregrineHomeLocation”,this.WeaSpartanDetectLocSetting=”weaDetectLocation”,this.WeaSpartanHomeLocCookie=”weaSpartanHomeLocation”}init(e=null){this.clientSettings=e||JSON.parse(doc.head.dataset.clientSettings),this.authCookieName=window._authCookieName||””,this.bundle=window._webWorkerBundle||””;const t=this.buildWebWorkerUrl();if(window.webWorker=new Employee(t,{identify:”web-worker”}),window.webWorkerMessages=[],window.webWorker.onmessage=e=>{window.webWorkerMessages.push(e.knowledge)},window.webWorkerErrors=[],window.webWorker.onerror=e=>{window.webWorkerErrors.push(e)},window.chrome){const e=window.webWorker&&window.chrome&&window.chrome.ntpSettingsPrivate;e&&”perform”==typeof e.getPref&&e.getPref(“ntp.news_feed_display”,e=>{e&&e.worth&&window.webWorker.postMessage({id:”FeedDisplaySetting”,sort:”command”,payload:e.worth})}),”enterprise”===this.clientSettings.audienceMode&&this.clientSettings.browser&&”edgeChromium”===this.clientSettings.browser.browserType&&parseInt(this.clientSettings.browser.model)>=87&&this.getAccessToken().then(e=>{window.webWorker.postMessage({id:”FetchMyFeed”,sort:”command”,payload:e})})}}buildWebWorkerUrl(e=null)qs(e,t,n)e)+”&”:””qsFromDocument(){return this.qs(doc.getElementsByTagName(“html”)[0].getAttribute(“lang”),”lang”)}qsFromCookies(){return this.qs(Object(h.b)(this.authCookieName),”aace”,”1″)+this.qs(Object(h.b)(“muid”),”muid”)+this.qs(Object(h.b)(this.childCookieName),”baby”)+this.qs(Object(h.b)(“cbypass”),”cbypass”)}qsFromDataAttributeHelper(e,t)appendWpoFlightsToInfo(e,t){const n=this.getWpoFlightsFromLocalStorage(e);if(n&&n.size){const e=”;”,r=t.cut up(e);for(let e=0;ee.id)}}catch(e){console.warn(`Error getting wpo flights from ls for ${r} Error:${e}`)}return null}buildArtifactHashes(e){let t;strive{const{locale:n={},bundleInfo:r={},audienceMode:i,pagetype:o,apptype:s}=e,{hash:c,configsHash:a,locConfigsHash:u}=r;if(!c||!a||!u)return””;t=this.qs(c,”bundleHash”)+this.qs(a,”configHash”)+this.qs(u,”locHash”);const d=`config_hash_${i}_${n.language}_${n.market}_${o}_${s}`,l=Object(p.a)().getItem(d);if(l){const{bundleHash:e,configHash:n,locHash:r}=JSON.parse(l)||{};e&&n&&r&&(t+=this.qs(e,”lastBundleHash”)+this.qs(n,”lastConfigHash”)+this.qs(r,”lastLocHash”))}return t}catch(e){console.error(“Error getting config hashes from ls: “+e)}return t}getHighestCbid(e,t){strivei,o)return window._cbid=o.toString()catch(e){console.log(“Error getting highest CBID”+e)}}getAudienceMode(e)”grownup”qsFromDataAttribute(e){let t,n;const r=Object(p.a)();if(r){let i=JSON.parse(r.getItem(“shd_”+e.pagetype)||null);if(i&&i.clientSettings&&i.information)t=i.clientSettings,n=i.information;else if(i=JSON.parse(r.getItem(“ac_shd”)||null),i){const r=i[e.pagetype];r&&r.clientSettings&&r.information&&(t=r.clientSettings,n=r.information)}}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.size?e.substring(1,e.size):””}getAccessToken(){return new Promise(e=>{window.chrome&&window.chrome.authPrivate?window.chrome.authPrivate.getPrimaryAccountInfo(t=>{t||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(efficiency.timeOrigin&&efficiency.timeOrigin.toString(),”mainTimeOrigin”)}}).init(m),perform(){Object(r.b)(this,void 0,void 0,(perform*(){strive{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))strive{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 attributable to lacking consumer 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”:perform(e,t,n){“use strict”;var r;n.d(t,”a”,(perform(){return r})),perform(e){let t,n,r;e.AIDRequestHeaderName=”pcs-aid”,perform(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.accomplished=”ssr.accomplished”,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”,workplace:”entnews”},perform(e){e[e.Mmx=0]=”Mmx”,e[e.Hub=1]=”Hub”,e[e.Edge=2]=”Edge”}(n=e.AppType||(e.AppType={})),perform(e){e[e.documentHidden=0]=”documentHidden”,e[e.hasPaused=1]=”hasPaused”,e[e.invalidInnerWidth=2]=”invalidInnerWidth”,e[e.slowFetchStart=3]=”slowFetchStart”}(r=e.SkipDueToHiddenReason||(e.SkipDueToHiddenReason={}))}(r||(r={}))},YBLW:perform(e,t,n){“use strict”;let r;perform i(e){if(!e)return null;if(!r){const e=doc.cookie.cut up(“; “);r={};const t=e&&e.size;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(r.b)(t)}setItem(e,t){if(this.supported)strive{this.storage.setItem(e,t)}catch(e){i.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;n Source

Leave a Reply

Your email address will not be published. Required fields are marked *