in

MSN

[]
MSN {const e=g(f,!0),t=e&&o(e),{login_hint:n}=t||{};return n&&t})),w=p((()=>!!g(f)));let b=new class{constructor(){r()?(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 decodeURIComponent(o.replace(/+/g,” “))||””}(window.location.href,”debug”)||””).toLowerCase()in{1:1,true:1},this.isDebugEnabled&&!i.g.TEST_ENV&&(window.webpackRequire=i)):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 y,v=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=o(n);if(null!=e)return e}return t}key(e){if(this.supported&&e>=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 o(t)}setItem(e,t){if(this.supported)try{this.storage.setItem(e,t)}catch(e){b.logError(e)}}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}}removeSubstringKeys(e){if(!this.supported||!e)return;const t=[];for(let n=0;n{const e=function(){try{return sessionStorage}catch(e){return null}}();return e&&!!e.getItem(W)}));const D={newsAndInterests:1,ugc:1,windowsNewsbar:1,windowsNewsPlus:1,winWidgets:1,windowsShell:1,distribution:1,superApp:1,gaming:1},U={edgeChromium:1},M=p((()=>(r()&&c()||{}).apptype)),F=p((()=>V()&&(m()||!g(“ace”)))),L=p((()=>r()&&!(M()in D)&&!S(“prg-nodualauth”))),V=p((()=>L()&&!(M()in U)));p((()=>L()&&(!(M()in U)||!w()))),p((()=>L()&&!B()));function $(e){const t={};return e&&(t[E]=`Bearer ${e}`),t}function B(){return V()&&P()||F()&&(F()&&!P()&&m()&&”expired”==function(){if(C=_(),!C)return”notAvailable”;const e=C.expiresOn,t=new Date(e),n=”expired”;if(!t.getTime())return n;const i=new Date,o=”valid”;if(t>i)return o;if(!S(“prg-extdatok6″))return n;{const e=m();if(e&&e.account_type===l.MSA&&new Date(t.getTime()+I)>i)return o}return n}()||H())}var G;!function(e){e.GLOBAL=”GLOBAL”,e.GCC_MODERATE=”GCC_MODERATE”}(G||(G={}));const j=[0,656,980,1304],J=[0,540,768,1084,1400,1779];function Y(e,t=J){for(let n=t.length-1;n>=0;n–)if(e>=t[n])return n}const K={ver:”0.1.0″,spec:{innerWidth:{clientValue:()=>window.innerWidth},innerHeight:{clientValue:()=>window.innerHeight},outerWidth:{clientValue:()=>window.outerWidth},breakpoint:{clientValue:()=>Y(window.innerWidth,j)},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},screenTop:{clientValue:()=>window.screenTop},screenY:{clientValue:()=>window.screenY},canUseCssGrid:{clientValue:()=>window.CSS&&window.CSS.supports&&CSS.supports(“display”,”grid”)||!1},devicePixelRatio:{clientValue:()=>window.devicePixelRatio},language:{clientValue:()=>document.documentElement.lang},direction:{clientValue:()=>document.documentElement.dir}}};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.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=Q(“OSAT”,this.cookie);if(e&&t||!e&&!t)return this.msalAuthReady=!0,void(t&&(this.oneServiceHeaders.Authorization=`Bearer ${t}`));this.msalAuthReady=!1,this.pssrRejectedReason=e&&!t?”missOSAT”:”missOSATE”}}static getInstance(){return i.g.TEST_ENV&&!z._instance&&X({href:”http://localhost:8080/”,innerHeight:768,devicePixelRatio:1,canUseCssGrid:!1,requestId:”0″,cookie:””,userAgent:””,referer:””,oneServiceHeaders:””}),z._instance||X({href:”http://localhost:8080/”,innerHeight:0,devicePixelRatio:0,canUseCssGrid:!1,requestId:”0″,cookie:””,userAgent:””,referer:””,oneServiceHeaders:””}),z._instance}static resetInstance(e,t=!1){return z._instance=new z(e,t),z._instance}}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}z._instance=null;const X=z.resetInstance;function Z(){return r()?window.devicePixelRatio:z.getInstance().devicePixelRatio}function ee(){if(“undefined”!=typeof window&&window.document&&window.document.createElement&&window.applicationCache){return window.document.getElementsByTagName(“html”)[0].getAttribute(“manifest”)}return!1}let te,ne,ie;function oe(){if(!te){const e=document.head.getAttribute(“data-client-settings”);e&&(te=JSON.parse(e))}return te}const se={bingHomepage:”binghomepage”,mmx:”emmx”,edge:”spartan”,edgeChromium:”anaheim”,hybrid:”spartan”,hub:”prime”,microsoftNews:”msnews”,office:”entnews”};var re;!function(e){e[e.Alert=0]=”Alert”,e[e.NoAlert=1]=”NoAlert”,e[e.HighImpact=2]=”HighImpact”,e[e.Critical=3]=”Critical”}(re||(re={}));const ce=new class{constructor(e=20){this.maxLength=20,this.list=[],this.maxLength=e}push(e){this.list.push(e),this.list.length>this.maxLength&&this.list.shift()}get data(){return this.list}};function ae(e,t,n,i=re.Alert){try{const o=oe(),s=function(){if(ne)return ne;let e=document.head.getAttribute(“data-info”);const t=oe();if(ee()){let n;try{const e=window.localStorage.getItem(“shd_”+t.pagetype);n=JSON.parse(e)}catch(e){n=null}if(n){const i=n.clientSettings,o=n.info;i&&o&&t.pageGenTime0)return e.substring(0,t)}return””}(r.apikey));const a=function(e,t,n,i,o,s,r=re.Alert){if(n){o=o||{};const{apptype:c,audienceMode:a,pagetype:l,pageGenTime:u,bundleInfo:d}=n;o.pageGenTime=u,o.build=d&&d.v,o.appType=c;const h=”enterprise”===a&&”edgeChromium”===c?”entnews”:se[c],p=h||c,f=document.getElementsByTagName(“html”)[0].getAttribute(“lang”);let m=””,w=”muid”;try{window&&window.getCookieConsentRequired&&”function”==typeof window.getCookieConsentRequired&&window.getCookieConsentRequired()||(m=g(“muid”))}catch(e){console.log(“error fetching muid.”)}m||(m=n.aid,w=”aid”);const b={name:”MS.News.Web.AppError”,time:u,ver:”4.0″,iKey:`o:${i}`,data:{baseData:{},baseType:”MS.News.Web.Base”,page:{name:”default”,product:p,type:l},browser:{clientId:m,clientIdType:w},flight:{id:s},request:{activityId:n.aid,requestId:n.aid},locale:{mkt:f},extSchema:{id:e,severity:r,pb:o,message:t}}};return b?JSON.stringify(b):null}return null}(t,e,o,c,n,s,i);if(r&&a){console.error(a),ce.push(a);const e=”https://”+ie+”/OneCollector/1.0″+function(e){return”?”+Object.keys(e).map((function(t){return t+”=”+encodeURIComponent(e[t])})).join(“&”)}(r);navigator.sendBeacon(e,a)}else console.log(“missing parameters in data-client-settings. “+e)}catch(t){console.log(“error logging the app error. “+e)}}Object.assign({},K.spec);(new class{constructor(){this.childCookieName=”child”,this.domInfo=document.head.dataset.info}init(t=null){this.clientSettings=t||c(),this.authCookieName=window._authCookieName||””,this.bundle=window._webWorkerBundle||””;const n=this.buildWebWorkerUrl();if(window.webWorker=new Worker(n,{name:”web-worker”}),window.webWorkerMessages=[],window.webWorker.onmessage=e=>{window.webWorkerMessages.push(e.data)},window.webWorkerErrors=[],window.webWorker.onerror=e=>{window.webWorkerErrors.push(e)},window.chrome){const t=this.getAudienceMode(this.clientSettings),n=window.webWorker&&window.chrome&&window.chrome.ntpSettingsPrivate;n&&”function”==typeof n.getPref&&(n.getPref(“ntp.news_feed_display”,(e=>{e&&e.value&&window.webWorker.postMessage({id:”FeedDisplaySetting”,type:”command”,payload:e.value})})),n.getPref(“ntp.layout_mode”,(e=>{e&&e.value&&window.webWorker.postMessage({id:”LayoutModeSetting”,type:”command”,payload:e.value})})),n.getPref(“ntp.user_nurturing”,(e=>{let t=!1;e&&e.value&&e.value.length&&(t=this.getSingleColRequest(e.value)),window.webWorker.postMessage({id:”RenderSingleColumn”,type:”command”,payload:t})}))),t===e.Enterprise&&this.clientSettings.browser&&”edgeChromium”===this.clientSettings.browser.browserType&&parseInt(this.clientSettings.browser.version)>=87&&this.getAccessToken().then((e=>{e&&window.webWorker.postMessage({id:”AuthTokenEnterprise”,type:”command”,payload:$(e)})})),t!==e.Adult&&t!==e.Enterprise||this.sendPageConfiguration()}}buildWebWorkerUrl(e=null){return(this.bundle||””)+”#”+this.qsFromDocument()+this.qsFromCookies()+this.qsFromDataAttribute(e||this.clientSettings)+this.qsMisc()+this.qsFromUrl()+this.qsFromServiceWorker()}qs(e,t,n){return e?t+”=”+(n||e)+”&”:””}qsFromDocument(){var e;return this.qs(document.getElementsByTagName(“html”)[0].getAttribute(“lang”),”lang”)+this.qs(encodeURIComponent(window.location.href),”adsReferer”)+this.qs(null===(e=Z())||void 0===e?void 0:e.toString(),”devicePixelRatio”)}qsFromServiceWorker(){if(!navigator.serviceWorker||!navigator.serviceWorker.controller)return””;const e=navigator.serviceWorker.controller;if(“activated”!==e.state||!e.scriptURL)return””;if(e.scriptURL){const t=new URL(e.scriptURL).searchParams.toString();return t?”&”+t+”&”:””}return””}qsFromCookies(){return this.qs(h(this.authCookieName),”aace”,”1″)+this.qs(h(“muid”),”muid”)+this.qs(h(this.childCookieName),”child”)+this.qs(h(“cbypass”),”cbypass”)+this.qs(this.cookieBannerConsentRequired().toString(),”ccRequired”)+this.qs(h(“ecasession”),”ecasession”)+this.qs(h(“TOptOut”),”browserOptOut”)}qsFromDataAttributeHelper(e,t){return e&&e.featureFlags&&e.featureFlags.wpoEnabled&&(t=this.appendWpoFlightsToInfo(e,t)),this.qs(e.pcsInfo&&e.pcsInfo.env||e.env,”env”)+this.qs(e.aid,”aid”)+this.qs(e.apptype,”apptype”)+this.qs(e.pagetype,”pagetype”)+this.qs(e.audienceMode,”audienceMode”)+this.qs(e.configIndexDocId,”configIndexDocId”)+this.qs(e.deviceFormFactor,”deviceFormFactor”)+this.qs(e.domain,”domain”)+this.qs(e.configRootUrl,”configRootUrl”)+this.qs(this.getHighestCbid(e.cbid,e.apptype),”cbid”)+this.qs(e.ocid,”ocid”)+this.qs(e.os,”os”)+this.qs(JSON.stringify(e.locale),”locale”)+this.qs(e.geo_lat,”lat”)+this.qs(e.geo_long,”long”)+this.qs(JSON.stringify(e.featureFlags),”featureFlags”)+this.qs(JSON.stringify(e.browser),”browser”)+this.qs(JSON.stringify(e.servicesEndpoints),”servicesEndpoints”)+this.qs(e.bundleInfo&&e.bundleInfo.v||””,”buildVersion”)+this.buildArtifactHashes(e)+this.qs(t,”dataInfo”)}appendWpoFlightsToInfo(e,t){const n=this.getWpoFlightsFromLocalStorage(e);if(n&&n.length){const e=”;”,i=t.split(e);for(let e=0;ee.id))}}catch(e){console.warn(`Error getting wpo flights from ls for ${i} Error:${e}`)}return null}buildArtifactHashes(e){let t;try{const{bundleInfo:n={},audienceMode:i,pagetype:o,apptype:s}=e,r=e.locale||{},c=r.content||r,a=r.display||c,{hash:l,configsHash:u,locConfigsHash:d}=n;if(!l||!u||!d)return””;t=this.qs(l,”bundleHash”)+this.qs(u,”configHash”)+this.qs(d,”locHash”);const g=`config_hash_${i}_${`${c.language}_${c.market}_${a.language}_${a.market}`}_${o}_${s}`,h=R().getItem(g);if(h){const{bundleHash:e,configHash:n,locHash:i}=JSON.parse(h)||{};e&&n&&i&&(t+=this.qs(e,”lastBundleHash”)+this.qs(n,”lastConfigHash”)+this.qs(i,”lastLocHash”))}return t}catch(e){console.error(`Error getting config hashes from ls: ${e}`)}return t}getHighestCbid(e,t){try{const n=R(),i=parseInt(e),o=parseInt(JSON.parse(n.getItem(`cbid_${t||””}`)));let s;if(i&&!isNaN(i)&&o&&!isNaN(o)&&(s=i>o?i:o),s=s||i||o,s)return window._cbid=s.toString()}catch(e){console.log(“Error getting highest CBID”+e)}}getAudienceMode(t){R();const n=g(this.authCookieName),i=g(this.childCookieName),{child:o}=n&&JSON.parse(n)||{};return n&&(1===o||i)?”kids”:t.audienceMode||e.Adult}sendPageConfiguration(){const e=this.clientSettings.pagetype;if(e){const t=g&&g(“pglt-edgeChromium-“+e);if(t)return void window.webWorker.postMessage({id:”PageConfiguration”,type:”command”,payload:t})}window.webWorker.postMessage({id:”PageConfiguration”,type:”command”,payload:!1})}qsFromDataAttribute(e){let t,n;const i=R();if(i){const o=JSON.parse(i.getItem(“shd_”+e.pagetype)||null);o&&o.clientSettings&&o.info&&(t=Object.assign(Object.assign({},o.clientSettings),{bundleInfo:e.bundleInfo}),n=o.info)}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.length?e.substring(1,e.length):””}getAccessToken(){return new Promise((e=>{window.chrome&&window.chrome.authPrivate?window.chrome.authPrivate.getPrimaryAccountInfo((t=>{t&&”GCC_MODERATE”!==t.region_scope||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(performance.timeOrigin&&performance.timeOrigin.toString(),”mainTimeOrigin”)+this.qs(F()&&”1″,”disableWWAuth”)}getSingleColRequest(e){const t=”render_single_column”,n=”feed_layout”;let i,o;for(const s of e){const{key:e,value:r}=s;e===t?i=r:e===n&&(o=r)}return”boolean”==typeof i?i:!!o&&(o&&”single”===o.type)}cookieBannerConsentRequired(){const e=null!=document.getElementById(“consent-banner-container”)&&null===g(“MSCC”),t=null!=document.getElementById(“onetrust-sdk”)&&null===g(“eupubconsent-v2”);return e||t}}).init(),function(e=[“vendors”,”common”,”microsoft”],t=”Error when loading bundle(s): “,n=5e5,i,o){(“visible”===document.visibilityState?Promise.resolve():new Promise((e=>{document.addEventListener(“visibilitychange”,(()=>{“visible”===document.visibilityState&&e()}))}))).then((()=>{setTimeout((()=>{const n=window.webpackJsonp;if(n){const s=n.length,r=e.length+1;if(s{t.length&&t[0][0]&&e.splice(e.indexOf(t[0][0]),1)}))}ae(t+e.toString(),20202,{}),o&&o(i,{customMessage:e.toString()})}}}),n)}))}()}(); ]]>

Source

What do you think?

Written by Ethiotime1

Leave a Reply

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

GIPHY App Key not set. Please check settings

faircrest heights crime

qatar airways plane crash