MSN MSN 0)return e.substring(0,t)}return””}(l.apikey));const m=function(e,t,n,i,o,s,r=h.Alert){if(n){o=o||{};const{apptype:c,audienceMode:a,pagetype:u,pageGenTime:l,bundleInfo:g,deviceFormFactor:h=””}=n;o.pageGenTime=l,o.build=g&&g.v,o.appType=c;const p=function(e,t,n){const i=n&&”phone”===n.toLowerCase();return{bingHomepage:”binghomepage”,mmx:”emmx”,edge:”spartan”,edgeChromium:t&&”enterprise”===t?”entnews”:”anaheim”,hybrid:”spartan”,hub:i?”prime_mobile”:”prime”,microsoftNews:”msnews”,office:”entnews”,views:i?”prime_mobile”:”prime”,windowsShell:”windowsshell”}[e]}(c,a,h),m=p||c,w=document.getElementsByTagName(“html”)[0].getAttribute(“lang”);let b=””,y=”muid”;try{window&&window.getCookieConsentRequired&&”function”==typeof window.getCookieConsentRequired&&window.getCookieConsentRequired()||(b=d(“muid”))}catch(e){console.log(“error fetching muid.”)}b||(b=n.aid,y=”aid”);const v={name:”MS.News.Web.AppError”,time:l,ver:”4.0″,iKey:`o:${i}`,data:{baseData:{},baseType:”MS.News.Web.Base”,page:{name:”default”,product:m,type:f(u),content:{category:”standaloneError”}},browser:{clientId:b,clientIdType:y},flight:{id:s},request:{activityId:n.aid,requestId:n.aid},locale:{mkt:w},extSchema:{id:e,severity:r,pb:o,message:t}}};return v?JSON.stringify(v):null}return null}(t,e,r,g,n,u,o);if(l&&m){console.error(m),p.push(m);const e=”https://”+c+”/OneCollector/1.0″+function(e){return”?”+Object.keys(e).map((function(t){return t+”=”+encodeURIComponent(e[t])})).join(“&”)}(l);navigator.sendBeacon(e,m)}else console.log(“missing parameters in data-client-settings. “+e)}catch(t){console.log(“error logging the app error. “+e)}}function f(e){let t=e;switch(e){case”windowsshellhp”:t=”dhp”;break;case”video”:t=”watch”}return t}var w;!function(e){e.Adult=”adult”,e.Enterprise=”enterprise”,e.Kids=”kids”}(w||(w={}));function b(){return!(“undefined”==typeof window||!window.document||!window.document.createElement)}const y=”Authorization”,v=”UserAuthToken”;var S,k;!function(e){e.Presentation=”presentation”}(S||(S={})),function(e){e.Unknown=”Unknown”,e.Portrait=”Portrait”,e.Landscape=”Landscape”}(k||(k={}));var A,I,q,x,C;function E(){var e;return b()?u(document.head.dataset.clientSettings||(null===(e=document.getElementsByClassName(“peregrine-widget-settings”)[0])||void 0===e?void 0:e.getAttribute(“data-client-settings”))):null}function T(e){let t,n=!1;const i=function(){return n||(n=!0,t=e()),t};return i.cache={clear:()=>{n=!1,t=void 0}},i}!function(e){e[e.Undefined=0]=”Undefined”,e[e.Basic=1]=”Basic”,e[e.Advanced=2]=”Advanced”,e[e.Premium=3]=”Premium”}(A||(A={})),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”}(I||(I={})),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”}(x||(x={})),function(e){e[e.NonAadAccount=0]=”NonAadAccount”,e[e.AadAccount=1]=”AadAccount”,e[e.Unknown=2]=”Unknown”}(C||(C={}));const O=”currentaccount”,_=T((()=>{const e=d(O,!0),t=e&&u(e),{login_hint:n}=t||{};return n&&t})),N=T((()=>!!d(O)));let R=new class{constructor(){b()?(this.isDebugEnabled=(function(e,t){const n=t.replace(/[[]]/g,”\$&”),i=new RegExp(“[?&]”+n+”(=([^&#]*)|&|#|$)”).exec(e);if(!i)return null;const o=i[2];return…