[]
MSN this.maxLength&&this.list.shift()}get data(){return this.list}};function d(t,n,r){let d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:c.Alert,u=arguments.length>4?arguments[4]:void 0,p=arguments.length>5?arguments[5]:void 0;try{const f=function(){if(!e){const t=document.head.getAttribute(“data-client-settings”);t&&(e=JSON.parse(t))}return e}(),m=o(),h=function(e){if(e){const{pcsInfo:t,pageGenTime:n}=e,o=new Date(n).getTime(),r=!t||[“prod”,”prod-ssr”,”prod-ssrntp”].includes(t.env);i=r?”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:r?”0ded60c75e44443aa3484c42c1c43fe8-9fc57d3f-fdac-4bcf-b927-75eafe60192e-7279″:”f8857dedc6f54ca8962cfb713e01e7d7-e9250191-fe0b-446f-95ae-07516262f98c-7028″,”upload-time”:o,w:”0″,anoncknm:”app_anon”}}return null}(f);let g=””;h&&h.apikey&&””!==h.apikey&&(g=function(e){if(e){const t=e.indexOf(“-“);if(t>0)return e.substring(0,t)}return””}(h.apikey));const w=function(e,t,n,i,o,r){let a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:c.Alert;if(n){o=o||{};const{apptype:c,audienceMode:u,pagetype:p,pageGenTime:f,bundleInfo:m,deviceFormFactor:h=””,fd_muid:g,os:w}=n;o.pageGenTime=f,o.build=m&&m.v,o.appType=c;const b=function(e,t,n){const i=n&&”phone”===n.toLowerCase(),o=t&&”enterprise”===t;return{bingHomepage:”binghomepage”,mmx:”emmx”,edge:”spartan”,edgeChromium:o?”entnews”:”anaheim”,hybrid:”spartan”,hub:i?”prime_mobile”:”prime”,microsoftNews:”msnews”,office:”entnews”,views:i?”prime_mobile”:”prime”,windowsShell:”windowsshell”}[e]}(c,u,h),v=b||c,y=document.getElementsByTagName(“html”)[0].getAttribute(“lang”);let _,k=””,x=”muid”;try{if(“edgeChromium”===c&&”object”==typeof window&&window.location&&window.location.search){const e=new URLSearchParams(window.location.search);_=e.has(“startpage”)?”msedgdhp”:”msedgntp”,”enterprise”===u?_=”entnewsntp”:”xbox”===w&&(_=”xboxntp”)}window&&window.getCookieConsentRequired&&”function”==typeof window.getCookieConsentRequired&&window.getCookieConsentRequired()||(k=s(“muid”))}catch{}k||(k=n.aid,x=”aid”);const S={name:”MS.News.Web.AppError”,time:f,ver:”4.0″,iKey:`o:${i}`,data:{baseData:{},baseType:”MS.News.Web.Base”,page:{name:”default”,product:v,type:l(p),content:{category:”standaloneError”},ocid:_},browser:{clientId:k,clientIdType:x},flight:{id:r},request:{activityId:n.aid,requestId:n.aid,afdMuid:g},locale:{mkt:y},extSchema:{id:e,severity:a,pb:o,message:t}}};var d;if(k&&”muid”===x)S.ext={…null==S?void 0:S.ext,user:{…null==S||null===(d=S.ext)||void 0===d?void 0:d.user,localId:`t:${k}`}};return S.data.flight.tmpl=””,”object”==typeof window&&(window.isSSREnabled&&(S.data.flight.tmpl+=”;ssr-enabled:1″),window.isSSRCompleted&&(S.data.flight.tmpl+=”;ssr-completed:1″)),S?JSON.stringify(S):null}return null}(n,t,f,g,r,m,d);if(p&&!function(e){if(null==e)return!1;return e.startsWith(“2”)||e.startsWith(“3″)}(null==f?void 0:f.aid))return console.error(w),void console.error(`This App error Id: ${n} will not be sent due to app error sampling!`);if(h&&w){console.error(w),a.push(w);const e=”https://”+i+”/OneCollector/1.0″+function(e){return”?”+Object.keys(e).map((function(t){return t+”=”+encodeURIComponent(e[t])})).join(“&”)}(h);if(u&&!performance.getEntriesByType(“visibility-state”).some((e=>”visible”===e.name))){const t=()=>{“visible”===document.visibilityState&&navigator.sendBeacon(e,w)};document.addEventListener(“visibilitychange”,t,{once:!0})}else navigator.sendBeacon(e,w)}}catch{}}function l(e){let t=e;switch(e){case”windowsshellhp”:t=”dhp”;break;case”video”:t=”watch”}return t}const u=”visibilitychange”;function p(){return”visible”===document.visibilityState?Promise.resolve():new Promise((e=>{document.addEventListener(u,(()=>{“visible”===document.visibilityState&&e()}))}))}function f(e){const t=window&&window.chrome&&window.chrome.ntpSettingsPrivate;t&&t.logLoadingError&&p().then((()=>{t.logLoadingError(e)}))}!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[“vendors”,”common”,”microsoft”],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:”Error when loading bundle(s): “,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5e5,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;p().then((()=>{setTimeout((()=>{const n=window.webpackJsonp;if(n){const r=n.length,s=e.length+1;if(r{t.length&&t[0][0]&&e.splice(e.indexOf(t[0][0]),1)}))}f(20202),d(t+e.toString(),20202,{}),o&&(f(i),o(i,{customMessage:e.toString()}))}}}),n)}))}()}(); ]]> onErrorHandler(s.src);s.nonce=””;s.crossOrigin=”anonymous”;document.body.appendChild(s);} ]]>
Source