MSN {document.addEventListener(“visibilitychange”,(()=>{“visible”===document.visibilityState&&e()}))}))}function w(e){const t=window&&window.chrome&&window.chrome.ntpSettingsPrivate;t&&t.logLoadingError&&m().then((()=>{t.logLoadingError(e)}))}function b(){return!(“undefined”==typeof window||!window.document||!window.document.createElement||window.isRenderServiceEnv)}const y=”Authorization”;var v,k;!function(e){e.Presentation=”presentation”}(v||(v={})),function(e){e.Unknown=”Unknown”,e.Portrait=”Portrait”,e.Landscape=”Landscape”}(k||(k={}));var S,A;!function(e){e[e.Undefined=0]=”Undefined”,e[e.Basic=1]=”Basic”,e[e.Advanced=2]=”Advanced”,e[e.Premium=3]=”Premium”}(S||(S={})),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”}(A||(A={}));new Set([“winp0dash”,”winp1taskbar”,”winp1taskbarent”,”winp1taskbardirect”,”winp1taskbardirectent”,”winp1taskbarent”,”winp2juntaskbar”,”winp2juntaskbarent”,”winp2″,”winp2ent”,”winp2fp”,”winp2fpent”,”winp2fptaskbar”,”winp2fptaskbarent”,”winp2fptaskbarhover”,”winp2fptaskbarhoverent”,”winp2widget”,”winp2widgetent”]);const x=new Set([“finance-app-win”,”weather-app-win”,”winpstoreapp”]);new Set([“msedgdhp”,”msedgdhphdr”,”msedgntphdr”,”msedgntp”,”msedgdhp”,”entnewsntp”]);var O;!function(e){e.outlookMobile=”OnOOutlookMobile”,e.officeMobile=”OnOOfficeMobile”,e.sapphire=”OnOStartApp”,e.skype=”OnOSkype”}(O||(O={}));const I=new Set([“hpmsn”]);function _(){var e;return b()?c(document.head.dataset.clientSettings||(null===(e=document.getElementsByClassName(“peregrine-widget-settings”)[0])||void 0===e?void 0:e.getAttribute(“data-client-settings”))):null}var q,C,E;function T(e){let t,n=!1;const o=function(){return n||(n=!0,t=e()),t};return o.cache={clear:()=>{n=!1,t=void 0}},o}!function(e){e[e.Unknown=0]=”Unknown”,e[e.NotSignedIn=1]=”NotSignedIn”,e[e.SignedIn=2]=”SignedIn”}(q||(q={})),function(e){e.MSA=”MSA”,e.AAD=”AAD”,e.UNSUPPORTED_SOVEREIGNTY=”UNSUPPORTED_SOVEREIGNTY”}(C||(C={})),function(e){e[e.NonAadAccount=0]=”NonAadAccount”,e[e.AadAccount=1]=”AadAccount”,e[e.Unknown=2]=”Unknown”}(E||(E={}));const N=”currentaccount”,M=T((()=>{const e=u(N,!0),t=e&&c(e),{login_hint:n}=t||{};return n&&t})),R=T((()=>!!u(N)));let P=new class{constructor(){b()?(this.isDebugEnabled=(function(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,” “))||””}(window.location.href,”debug”)||””).toLowerCase()in{1:1,true:1},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(…e){this.isDebug()&&console.log(…e)}logSingleObject(e,t){this.isDebug()&&console.log(e)}};let L=new class extends class{constructor(e){this.storage=e}get supported(){return!!this.storage}getItem(e){if(this.supported)return this.storage.getItem(e)}getObject(e,t){const n=this.getItem(e);if(null!=n){const e=c(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 c(t)}setItem(e,t,n=!0){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;P.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;nD.has(e)});const W=”__PageExperimentInstance__”;function F(e){U.set(W,e)}function j(e){!U.has(W)&&b()&&F(H(document.head.dataset.info||””));const t=U.get(W);return t&&t.has(e)}function H(e){const t=(e||””).replace(/(^f:|;.*$)/g,””).split(“,”);return new Set(t)}const B=”1s-tokens”,G=12096e5;var $;let J,V;function z(){return J=K(),J&&J.accessToken?J:void 0}function X(){if(J=K(),!J)return”notAvailable”;const e=J.expiresOn,t=new Date(e),n=”expired”;if(!t.getTime())return n;const o=new Date,i=”valid”;if(t>o)return i;if(j(“prg-noext”))return n;{const e=M();if(e&&e.account_type===C.MSA){if(new Date(t.getTime()+G)>o)return i}}return n}function K(){return J=J||void 0===J&&L.getObject(B)||null,J}!function(e){e.NotAvailable=”notAvailable”,e.Expired=”expired”,e.Valid=”valid”}($||($={}));const Y=”__RequestDataInstance__”;class Z{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=Q(“OSATE”,this.cookie),t=!!e&&”1″===e,n=Q(“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=U.get(Y);return e||(n.g.TEST_ENV?ee({href:”http://localhost:8080/”,innerHeight:768,devicePixelRatio:1,canUseCssGrid:!1,requestId:”0″,cookie:””,userAgent:””,referer:””,oneServiceHeaders:””}):ee({href:”http://localhost:8080/”,innerHeight:0,devicePixelRatio:0,canUseCssGrid:!1,requestId:”0″,cookie:””,userAgent:””,referer:””,oneServiceHeaders:””}))}static resetInstance(e,t=!1){const n=new Z(e,t);return U.set(Y,n),n}}function Q(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 ee=Z.resetInstance,te=()=>Z.getInstance();function ne(){try{return localStorage}catch(e){return null}}const oe=”uxlogin”,ie=”uxlogout”,se=”uxedit”,re=”useRedirect”,ae=”uxswitch”,ce=T((()=>{const e=ne();return e&&”1″===e.getItem(oe)||b()&&location.search&&location.search.includes(“uxlogin=1”)}));const de=T((()=>{const e=function(){try{return sessionStorage}catch(e){return null}}();return e&&!!e.getItem(ie)}));const ue=T((()=>{const e=ne();return e&&”1″===e.getItem(se)}));const le=T((()=>{const e=ne(),t=!j(“prg-noredirect”)&&e&&”1″===e.getItem(re)&&function(){const e=document.head.dataset.clientSettings||””,{browser:t}=c(e)||{},{browserType:n=””}=t||{};return!!/safari/i.test(n)}();return t}));const pe=T((()=>{const e=ne();return e&&”1″===e.getItem(ae)}));var he;!function(e){e.outlookMobile=”OnOOutlookMobile”,e.officeMobile=”OnOOfficeMobile”,e.sapphire=”OnOStartApp”,e.skype=”OnOSkype”,e.winWeatherApp=”weather-app-win”,e.winMoneyApp=”finance-app-win”}(he||(he={}));const ge=[“ios”,”android”,”ipados”];let fe=xe(“ocid”),me=xe(“chpltfm”),[we,be]=me.toLowerCase().split(“-“);function ye(){if(!b())return!1;const e=window.sapphireWebViewBridge,t=window.webkit,n=e&&e.send,o=t&&t.messageHandlers&&t.messageHandlers.send&&t.messageHandlers.send.postMessage;return!(!n&&!o)}function ve(){const e=me&&”outlook”===we&&ge.includes(be),t=fe===he.outlookMobile;return e||t}function ke(){const e=me&&[“office”,”union”].includes(we)&&ge.includes(be),t=fe===he.officeMobile;return e||t}function Se(){const e=fe===he.skype||”skype”===we;return b()&&(null===(t=window.skypeWebviewBridge)||void 0===t?void 0:t.isSkype)||e;var t}const Ae=T((()=>ye()||Se()||ke()||ve()||ye()||fe===he.sapphire||”superappdhp”===fe||fe===he.winWeatherApp||fe===he.winMoneyApp));function xe(e){try{return new URL(location.href).searchParams.get(e)||””}catch(e){return””}}const Oe=_()||{},Ie={newsAndInterests:1,windowsNewsbar:1,windowsNewsPlus:1,winWidgets:1,windowsShell:1,windowsShellV2:1,distribution:1,superApp:1,channel:1},_e={edgeChromium:1},qe={winWidgets:1},Ce={shopping:1},Ee=T((()=>Oe&&Oe.apptype)),Te=T((()=>!!(Me()&&(M()||!u(“ace”))))),Ne=(T((()=>b()&&Ee()in qe)),T((()=>b()&&!Ae()&&!(Ee()in Ie)&&!Pe()&&!Le()))),Me=T((()=>Ne()&&!(Ee()in _e)));T((()=>Ne()&&(!(Ee()in _e)||!R()))),T((()=>Ne()&&!We()&&!Fe()));function Re(){return Fe()||We()}const Pe=T((()=>{const e=”edgeChromium”!==Ee()&&!(Ee()in Ce)&&function(){const{browser:e}=Oe,{browserType:t=””}=e||{};return!!/edgeChromium/i.test(t)}()&&function(){const e=new URLSearchParams(b()?window.location.search:te().url.search).get(“ocid”)||(null==Oe?void 0:Oe.ocid),t=null==e?void 0:e.toLowerCase();return!I.has(t)&&”homePage”!==Ee()&&!x.has(t)}();return e})),Le=()=>b()&&document&&document.body&&document.body.getElementsByClassName(“peregrine-widgets”).length>0;function De(){const e=V;if(e)return P.log(“dual-auth: tryGet1SAuthToken returned live tokens”),e;const t=z();if(t)return P.log(`dual-auth: tryGet1SAuthToken returned cached tokens that are ${X()}`),t;P.log(“dual-auth: tryGet1SAuthToken returned empty tokens”)}function Ue(e){const t={};return e&&(t[y]=`Bearer ${e}`),t}function We(){return Me()&&ce()||Te()&&(Te()&&!ce()&&M()&&(“expired”==X()||ue())||de()||le())}function Fe(){return Me()&&!M()&&pe()}const je=”__core_auth_authHeaderPromiseParts__”,He=()=>U.get(je);var Be;!function(){let e;const t={promise:new…
Continue reading