in

MSN

[]
MSN =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){a.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=b();return e&&”1″===e.getItem(y)||s()&&location.search&&location.search.includes(“uxlogin=1″)}));const q=v((()=>{const e=function(){try{return sessionStorage}catch(e){return null}}();return e&&!!e.getItem(S)}));let C;function I(e,t){if(!e)return null;if(t)return function(e){const t=document.cookie.match(`\b${e}=([^;]*)`);return t?t[1]:null}(e);if(!C){const e=”undefined”!=typeof document&&document.cookie.split(“; “);C={};const t=e&&e.length;for(let n=0;n(s()&&r()||{}).apptype));const T=v((()=>{const e=I(_,!0),t=e&&o(decodeURIComponent(e)),{login_hint:n}=t||{};return n&&t})),R=v((()=>!!I(_))),W=v((()=>H()&&(T()||!I(“ace”)))),x=v((()=>{var e;return s()&&!(N()in E)&&(e=/bprg-nodualauth($|;|,)/,!(s()&&(document.head.dataset.info||””).match(e)))})),H=v((()=>x()&&!(N()in O)));v((()=>x()&&(!(N()in O)||!R()))),v((()=>x()&&!D()));function P(e,t){const n={};return e&&(n[h]=`Bearer ${e}`),t&&(n[p]=t),n}function D(){return H()&&k()||W()&&(W()&&!k()&&T()&&”expired”==function(){if(d=g(),!d)return”notAvailable”;const e=d&&d.expiresOn,t=new Date(e);return t&&t.getTime()&&t>new Date?”valid”:”expired”}()||q())}var M;!function(e){e.GLOBAL=”GLOBAL”,e.GCC_MODERATE=”GCC_MODERATE”}(M||(M={}));const F=[0,656,980,1304],U=[0,540,768,1084,1400,1779];function L(e,t=U){for(let n=t.length-1;n>=0;n–)if(e>=t[n])return n}const $={ver:”0.1.0″,spec:{innerWidth:{clientValue:()=>window.innerWidth},innerHeight:{clientValue:()=>window.innerHeight},outerWidth:{clientValue:()=>window.outerWidth},breakpoint:{clientValue:()=>L(window.innerWidth,F)},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 V{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=B(“OSATE”,this.cookie),t=B(“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&&!V._instance&&j({href:”http://localhost:8080/”,innerHeight:768,devicePixelRatio:1,canUseCssGrid:!1,requestId:”0″,cookie:””,userAgent:””,referer:””,oneServiceHeaders:””}),V._instance||j({href:”http://localhost:8080/”,innerHeight:0,devicePixelRatio:0,canUseCssGrid:!1,requestId:”0″,cookie:””,userAgent:””,referer:””,oneServiceHeaders:””}),V._instance}static resetInstance(e,t=!1){return V._instance=new V(e,t),V._instance}}function B(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}V._instance=null;const j=V.resetInstance;function G(){return s()?window.devicePixelRatio:V.getInstance().devicePixelRatio}function J(){if(“undefined”!=typeof window&&window.document&&window.document.createElement&&window.applicationCache){return window.document.getElementsByTagName(“html”)[0].getAttribute(“manifest”)}return!1}let K,z,Y;function Q(){if(!K){const e=document.head.getAttribute(“data-client-settings”);e&&(K=JSON.parse(e))}return K}const X={bingHomepage:”binghomepage”,mmx:”emmx”,edge:”spartan”,edgeChromium:”anaheim”,hybrid:”spartan”,hub:”prime”,microsoftNews:”msnews”,office:”entnews”};var Z;!function(e){e[e.Alert=0]=”Alert”,e[e.NoAlert=1]=”NoAlert”,e[e.HighImpact=2]=”HighImpact”,e[e.Critical=3]=”Critical”}(Z||(Z={}));const ee=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 te(e,t,n,i=Z.Alert){try{const o=Q(),s=function(){if(z)return z;let e=document.head.getAttribute(“data-info”);const t=Q();if(J()){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 c=function(e,t,n,i,o,s,r=Z.Alert){if(n){o=o||{};const{apptype:a,audienceMode:c,pagetype:l,pageGenTime:u,bundleInfo:d}=n;o.pageGenTime=u,o.build=d&&d.v,o.appType=a;const g=”enterprise”===c&&”edgeChromium”===a?”entnews”:X[a],h=g||a,p=document.getElementsByTagName(“html”)[0].getAttribute(“lang”);let m=””,f=”muid”;try{window&&window.getCookieConsentRequired&&”function”==typeof window.getCookieConsentRequired&&window.getCookieConsentRequired()||(m=I(“muid”))}catch(e){console.log(“error fetching muid.”)}m||(m=n.aid,f=”aid”);const w={name:”MS.News.Web.AppError”,time:u,ver:”4.0″,iKey:`o:${i}`,data:{baseData:{},baseType:”MS.News.Web.Base”,page:{name:”default”,product:h,type:l},browser:{clientId:m,clientIdType:f},flight:{id:s},request:{activityId:n.aid,requestId:n.aid},locale:{mkt:p},extSchema:{id:e,severity:r,pb:o,message:t}}};return w?JSON.stringify(w):null}return null}(t,e,o,a,n,s,i);if(r&&c){console.error(c),ee.push(c);const e=”https://”+Y+”/OneCollector/1.0″+function(e){return”?”+Object.keys(e).map((function(t){return t+”=”+encodeURIComponent(e[t])})).join(“&”)}(r);navigator.sendBeacon(e,c)}else console.log(“missing parameters in data-client-settings. “+e)}catch(t){console.log(“error logging the app error. “+e)}}Object.assign({},$.spec);(new class{constructor(){this.childCookieName=”child”,this.domInfo=document.head.dataset.info}init(t=null){this.clientSettings=t||r(),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:P(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=G())||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(A(this.authCookieName),”aace”,”1″)+this.qs(A(“muid”),”muid”)+this.qs(A(this.childCookieName),”child”)+this.qs(A(“cbypass”),”cbypass”)+this.qs(this.cookieBannerConsentRequired().toString(),”ccRequired”)+this.qs(A(“ecasession”),”ecasession”)+this.qs(A(“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||{},a=r.content||r,c=r.display||a,{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}_${`${a.language}_${a.market}_${c.language}_${c.market}`}_${o}_${s}`,h=b().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=b(),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){b();const n=I(this.authCookieName),i=I(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=I&&I(“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=b();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(W()&&”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===I(“MSCC”),t=null!=document.getElementById(“onetrust-sdk”)&&null===I(“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)}))}te(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

Debt financing makes difficult Africa’s recovery from COVID-19 – New Business Ethiopia

Leah Shutkever breaks record for most chicken nuggets eaten in one minute