MSN e.startsWith(“f:”))))||””).includes(e)}n.g=function(){if(“object”==typeof globalThis)return globalThis;try{return this||new Function(“return this”)()}catch(e){if(“object”==typeof window)return window}}(),function(){if(void 0!==n){const t=n.e,o={};var e;document.head.getAttribute(“data-info”);n.e=function(i){return t(i).catch((function(t){const s=o.hasOwnProperty(i)?o[i]:2;if(void 0===e&&(e=!1),e&&2===s&&(n.p=n.p.replace(“/assets.”,”/assets2.”)),s[]this.maxLength&&this.list.shift()}get data(){return this.list}};function w(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:h.Alert,s=arguments.length>4?arguments[4]:void 0,c=arguments.length>5?arguments[5]:void 0;try{const d=function(){if(!o){const e=document.head.getAttribute(“data-client-settings”);e&&(o=JSON.parse(e))}return o}(),u=a(),p=function(e){if(e){const{pcsInfo:t,pageGenTime:n}=e,o=new Date(n).getTime(),i=!t||[“prod”,”prod-ssr”,”prod-ssrntp”].includes(t.env);r=i?”browser.events.data.msn.com”:”events-sandbox.data.msn.com”;return{cors:”true”,”content-type”:”application/x-json-stream”,”client-id”:”NO_AUTH”,”client-version”:”1DS-Web-JS-2.2.2″,apikey:i?”0ded60c75e44443aa3484c42c1c43fe8-9fc57d3f-fdac-4bcf-b927-75eafe60192e-7279″:”f8857dedc6f54ca8962cfb713e01e7d7-e9250191-fe0b-446f-95ae-07516262f98c-7028″,”upload-time”:o,w:”0″,anoncknm:”app_anon”}}return null}(d);let w=””;p&&p.apikey&&””!==p.apikey&&(w=function(e){if(e){const t=e.indexOf(“-“);if(t>0)return e.substring(0,t)}return””}(p.apikey));const f=function(e,t,n,o,i,s){let r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:h.Alert;if(n){i=i||{};const{apptype:c,audienceMode:d,pagetype:u,pageGenTime:p,bundleInfo:h,deviceFormFactor:g=””,fd_muid:w,os:f}=n;i.pageGenTime=p,i.build=h&&h.v,i.appType=c;const b=function(e,t,n){const o=n&&”phone”===n.toLowerCase(),i=t&&”enterprise”===t;return{bingHomepage:”binghomepage”,mmx:”emmx”,edge:”spartan”,edgeChromium:i?”entnews”:”anaheim”,hybrid:”spartan”,hub:o?”prime_mobile”:”prime”,microsoftNews:”msnews”,office:”entnews”,views:o?”prime_mobile”:”prime”,windowsShell:”windowsshell”}[e]}(c,d,g),v=b||c,y=document.getElementsByTagName(“html”)[0].getAttribute(“lang”);let k,S=””,C=”muid”;try{if(“edgeChromium”===c&&”object”==typeof window&&window.location&&window.location.search){const e=new URLSearchParams(window.location.search);k=e.has(“startpage”)?”msedgdhp”:”msedgntp”,”enterprise”===d?k=”entnewsntp”:”xbox”===f&&(k=”xboxntp”)}window&&window.getCookieConsentRequired&&”function”==typeof window.getCookieConsentRequired&&window.getCookieConsentRequired()||(S=l(“muid”))}catch{}S||(S=n.aid,C=”aid”);const A={name:”MS.News.Web.AppError”,time:p,ver:”4.0″,iKey:`o:${o}`,data:{baseData:{},baseType:”MS.News.Web.Base”,page:{name:”default”,product:v,type:m(u),content:{category:”standaloneError”},ocid:k},browser:{clientId:S,clientIdType:C},flight:{id:s},request:{activityId:n.aid,requestId:n.aid,afdMuid:w},locale:{mkt:y},extSchema:{id:e,severity:r,pb:i,message:t}}};var a;if(S&&”muid”===C)A.ext={…null==A?void 0:A.ext,user:{…null==A||null===(a=A.ext)||void 0===a?void 0:a.user,localId:`t:${S}`}};return A.data.flight.tmpl=””,”object”==typeof window&&(window.isSSREnabled&&(A.data.flight.tmpl+=”;ssr-enabled:1″),window.isSSRCompleted&&(A.data.flight.tmpl+=”;ssr-completed:1″)),A?JSON.stringify(A):null}return null}(t,e,d,w,n,u,i);if(c&&!function(e){if(null==e)return!1;return e.startsWith(“2”)||e.startsWith(“3″)}(null==d?void 0:d.aid))return console.error(f),void console.error(`This App error Id: ${t} will not be sent due to app error sampling!`);if(p&&f){console.error(f),g.push(f);const e=”https://”+r+”/OneCollector/1.0″+function(e){return”?”+Object.keys(e).map((function(t){return t+”=”+encodeURIComponent(e[t])})).join(“&”)}(p);if(s&&!performance.getEntriesByType(“visibility-state”).some((e=>”visible”===e.name))){const t=()=>{“visible”===document.visibilityState&&navigator.sendBeacon(e,f)};document.addEventListener(“visibilitychange”,t,{once:!0})}else navigator.sendBeacon(e,f)}}catch{}}function m(e){let t=e;switch(e){case”windowsshellhp”:t=”dhp”;break;case”video”:t=”watch”}return t}const f=”visibilitychange”;function b(){return”visible”===document.visibilityState?Promise.resolve():new Promise((e=>{document.addEventListener(f,(()=>{“visible”===document.visibilityState&&e()}),{once:!0})}))}function v(e){const t=window&&window.chrome&&window.chrome.ntpSettingsPrivate;t&&t.logLoadingError&&b().then((()=>{t.logLoadingError(e)}))}function y(e){if(“undefined”==typeof window||!window.document||window.isRenderServiceEnv)return;const t=window.trustedTypes;if(!t||!t.createPolicy)return;const n=window.trustedTypePolicies||(window.trustedTypePolicies={});if(n[e])return n[e];const o=t.createPolicy(e,{createScriptURL:e=>{const t=function(e){const t=[“ntp.msn.com”,”ntp.msn.cn”,”assets.msn.cn”,”assets.msn.com”,”www.bing.com”,”assets2.msn.com”,”assets2.msn.cn”,”www.clarity.ms”,”int.msn.com”,”r.bing.com”,”business.bing.com”,”staticview.msn.com”,”staticview.msn.cn”,document.location.hostname];let n;try{n=new URL(e,location.origin)}catch(e){return”about:blank#error”}if(n.hostname&&!t.includes(n.hostname))return”about:blank#error”;return e}(e);return t}});return n[e]=o,o}const k=223300,S=223301;function C(e,t){const n=y(t);if(n){const t=n.createScriptURL(e),o=t&&t.toString();return t&&”about:blank#error”!==o?t:(w(“URL is not trusted types compliant.”,S,{customMessage:”Failed URL is: “+e},h.Deprecated,!0),e)}return w(“Trusted types policy is not available.”,k,{},h.Deprecated,!0),e}const A={},I=3;function E(e){const t=document.createElement(“script”);return t.type=”text/javascript”,t.crossOrigin=”anonymous”,t.src=C(e,”fallbackBundleUrlPolicy”),t.onerror=()=>_(t),t.onload=e=>function(e){const t=e.target.src,n=t.substring(t.lastIndexOf(“/”)+1).split(“.”)[0]||””,o=window._pageTimings.retriedBundles;window._pageTimings.retriedBundles=o?`${o},${n}`:n}(e),t}function _(e){if(!e)return;const t=e.src;let n=A[t]||1;if(ne.replaceWith(o)),100)}else w(“Error when loading bundle: “+t,20202,{retryCount:n,timeElapsed:Math.round(performance.now())},h.Deprecated)}const q=”experience”;function x(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=[“vendors”,”microsoft”,”common”];window.addEventListener(“load”,(()=>{window.requestIdleCallback((()=>{const i=function(e){const t=window.homePageWebpackChunks;if(!t)return[…e,q];const n=t.length;if(n>e.length)return[];if(n===e.length)return[q];t.forEach((t=>e.splice(e.indexOf(t[0][0]),1)));const o=O(q);o&&0!==o.decodedBodySize||e.push(q);return e}(o);i.length&&(c(“msn-bndl-irtry”)?i.forEach((e=>T(e))):Promise.race([b(),P(Math.max(e,5e5))]).then((o=>{“timeout”!==o||n?i.forEach((e=>T(e))):w(t+i.toString(),20202,{reason:”retry timeout”,timeout:e,timeElapsed:Math.round(performance.now())},h.Deprecated)})))}))}),{once:!0})}function T(e){const t=O(e);t&&(0===t.responseEnd?setTimeout((()=>{window.requestIdleCallback((()=>{T(e)}))}),100):function(e){return e.responseEnd>0&&0===e.decodedBodySize}(t)&&_(Array.from(document.scripts).find((e=>e.src===t.name))))}function O(e){const t=performance.getEntriesByType(“resource”).filter((t=>”script”===t.initiatorType&&t.name.indexOf(`/${e}.`)>-1));return t[t.length-1]}function P(e){return new Promise((t=>setTimeout((()=>t(“timeout”)),e)))}function L(e){w(“Error when loading bundle: “+e,20202,{…arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}})}function R(e,t,n,o,i){w(“JS Exception”,20203,{source:t,customMessage:e,line:n,column:o,stack:i&&i.stack})}function N(e){w(“JS Exception”,20203,{customMessage:e&&e.reason&&e.reason.message,stack:e&&e.reason&&e.reason.stack})}function M(e){try{if(e)return JSON.parse(e)}catch(e){}return null}function W(){return!(“undefined”==typeof window||!window.document||!window.document.createElement||window.isRenderServiceEnv)}”undefined”!=typeof window&&window.document&&window.document.createElement&&(window._pageTimings=window._pageTimings||{},window.requestIdleCallback=window.requestIdleCallback||window.setTimeout);const D=”Authorization”;var U,F;!function(e){e.Presentation=”presentation”}(U||(U={})),function(e){e.Unknown=”Unknown”,e.Portrait=”Portrait”,e.Landscape=”Landscape”}(F||(F={}));var $,B;!function(e){e[e.Undefined=0]=”Undefined”,e[e.Basic=1]=”Basic”,e[e.Advanced=2]=”Advanced”,e[e.Premium=3]=”Premium”}($||($={})),function(e){e.Init=”init”,e.Config=”config”,e.Targeted=”targeted”,e.Sticky=”sticky”,e.NoSticky=”no_sticky”,e.Admin=”admin”,e.Forced=”forced”,e.Manual=”manual”}(B||(B={}));new Set([“winp0dash”,”winp1taskbar”,”winp1taskbarent”,”winp1taskbardirect”,”winp1taskbardirectent”,”winp1taskbarent”,”winp2juntaskbar”,”winp2juntaskbarent”,”winp2″,”winp2ent”,”winp2fp”,”winp2fpent”,”winp2fptaskbar”,”winp2fptaskbarent”,”winp2fptaskbarhover”,”winp2fptaskbarhoverent”,”winp2widget”,”winp2widgetent”]);const H=new Set([“finance-app-win”,”weather-app-win”,”winpstoreapp”]),j=(new Set([“msedgdhp”,”msedgdhphdr”,”msedgntphdr”,”msedgntp”,”msedgdhp”,”entnewsntp”]),new Set([“hpmsn”]));function J(){var e;return W()?M(document.head.dataset.clientSettings||(null===(e=document.getElementsByClassName(“peregrine-widget-settings”)[0])||void 0===e?void 0:e.getAttribute(“data-client-settings”))):null}const G=”feed/personalize/settings”;function V(e,t){const n=t.replace(/[[]]/g,”\$&”),o=new RegExp(“[?&]”+n+”(=([^&#]*)|&|#|$)”).exec(e);if(!o)return null;const i=o[2];return decodeURIComponent(i.replace(/+/g,” “))||””}let z=new class{constructor(){W()?(this.isDebugEnabled=(V(window.location.href,”debug”)||””).toLowerCase()in{1:1,true:1}||”vp”===(V(window.location.href,”reqsrc”)||””).toLowerCase(),this.isDebugEnabled&&!n.g.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(){this.isDebug()&&console.log(…arguments)}logSingleObject(e,t){this.isDebug()&&console.log(e)}};class X{get supported(){return!!this.storage}constructor(e){this.storage=e}getItem(e){if(this.supported)return this.storage.getItem(e)}getObject(e,t){const n=this.getItem(e);if(null!=n){const e=M(n);if(null!=e)return e}return t}key(e){if(this.supported&&e>=0)return this.storage.key(e)}keys(){return this.supported?Object.keys(this.storage):[]}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 M(t)}setItem(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(this.supported)try{if(!t)throw”Attempted to store null/undefined value: “+t;this.storage.setItem(e,t)}catch(e){if(!n)throw e;z.logError(e)}else if(!n)throw new Error(“WebStorage not supported”)}get length(){if(this.supported)return this.storage.length}removeItem(e){if(this.supported){const t=this.getItem(e);return this.storage.removeItem(e),t}}clear(){this.supported&&this.storage.clear()}removeSubstringKeys(e){if(!this.supported||!e)return;const t=[];for(let n=0;n{n=!1,t=void 0}},o}!function(e){e.NotAvailable=”notAvailable”,e.Expired=”expired”,e.Valid=”valid”}(Y||(Y={}));const se=”currentaccount”,re=ie((()=>{const e=l(se,!0),t=e&&M(e),{login_hint:n}=t||{};return n&&t})),ae=ie((()=>!!l(se)));let ce=new Map;const de=Object.freeze({set(e,t){return ce.set(e,t),this},get:function(e,t){let n=ce.get(e);return void 0===n&&t&&(n=t(),ce.set(e,n)),n},clear(){ce.clear()},delete:e=>ce.delete(e),has:e=>ce.has(e)});const le=”__RequestDataInstance__”;class ue{constructor(e,t){if(this.url=new URL(e.href),this.innerHeight=e.innerHeight,this.devicePixelRatio=e.devicePixelRatio,this.canUseCssGrid=e.canUseCssGrid,this.requestId=e.requestId,this.cookie=e.cookie,this.referer=e.referer,this.userAgent=e.userAgent,this.clientData=e.clientData,this.oneServiceHeaders=function(e){try{if(e)return JSON.parse(e)}catch(e){}}(e.oneServiceHeaders)||{},this.isPssrMode=t,t){const e=pe(“OSATE”,this.cookie),t=!!e&&”1″===e,n=pe(“OSAT”,this.cookie);if(t&&n||!e&&!n)return this.msalAuthReady=!0,void(n&&(this.oneServiceHeaders.Authorization=`Bearer ${n}`));this.msalAuthReady=!1,this.pssrRejectedReason=e&&!t?”interactiveLogin”:e&&!n?”missOSAT”:”missOSATE”}}static getInstance(){const e=de.get(le);return e||(n.g.TEST_ENV?he({href:”http://localhost:8080/”,innerHeight:768,devicePixelRatio:1,canUseCssGrid:!1,requestId:”0″,cookie:””,userAgent:””,referer:””,oneServiceHeaders:””}):he({href:”http://localhost:8080/”,innerHeight:0,devicePixelRatio:0,canUseCssGrid:!1,requestId:”0″,cookie:””,userAgent:””,referer:””,oneServiceHeaders:””}))}static resetInstance(e){const t=new ue(e,arguments.length>1&&void 0!==arguments[1]&&arguments[1]);return de.set(le,t),t}}function pe(e,t){if(t&&e){const n=new RegExp(“\b”+e+”\s*=\s*([^;]*)”,”i”).exec(t);return n&&n.length>1?n[1]:null}return null}const he=ue.resetInstance,ge=()=>ue.getInstance();function we(){try{return localStorage}catch(e){return null}}const me=”__PageExperimentInstance__”;function fe(e){de.set(me,e)}function be(e){if(!de.has(me)&&W()){var t;fe(ve(document.head.dataset.info||(null===(t=window.document.getElementsByClassName(“peregrine-widget-settings”)[0])||void 0===t||null===(t=t.dataset)||void 0===t?void 0:t.info)||””))}const n=de.get(me);return n&&n.has(e)}function ve(e){const t=(e||””).replace(/(^f:|;.*$)/g,””).split(“,”);return new Set(t)}const ye=”uxlogin”,ke=”uxlogout”,Se=”uxedit”,Ce=”useRedirect”,Ae=”uxswitch”,Ie=ie((()=>{const e=we();return e&&”1″===e.getItem(ye)||W()&&location.search&&location.search.includes(`${ye}=1`)}));const Ee=ie((()=>{const e=function(){try{return sessionStorage}catch(e){return null}}();return e&&!!e.getItem(ke)}));const _e=ie((()=>{const e=we();return e&&”1″===e.getItem(Se)}));const qe=ie((()=>{const e=we(),t=!be(“prg-noredirect”)&&e&&”1″===e.getItem(Ce)&&function(){const…
Continue reading