MSN

18 people 👁️ing this randomly
MSN 0)return e.substring(0,t)}return””}(c.apikey));const d=function(e,t,n,i,o,s,r=f.Alert){if(n){o=o||{};const{apptype:c,audienceMode:a,pagetype:u,pageGenTime:l,bundleInfo:d,deviceFormFactor:g=””,fd_muid:p}=n;o.pageGenTime=l,o.build=d&&d.v,o.appType=c;const f=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,g),m=f||c,w=document.getElementsByTagName(“html”)[0].getAttribute(“lang”);let y=””,v=”muid”;try{window&&window.getCookieConsentRequired&&”function”==typeof window.getCookieConsentRequired&&window.getCookieConsentRequired()||(y=h(“muid”))}catch(e){console.log(“error fetching muid.”)}y||(y=n.aid,v=”aid”);const S={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:b(u),content:{category:”standaloneError”}},browser:{clientId:y,clientIdType:v},flight:{id:s},request:{activityId:n.aid,requestId:n.aid,afdMuid:p},locale:{mkt:w},extSchema:{id:e,severity:r,pb:o,message:t}}};return S?JSON.stringify(S):null}return null}(t,e,o,u,n,s,i);if(c&&d){console.error(d),m.push(d);const e=”https://”+a+”/OneCollector/1.0″+function(e){return”?”+Object.keys(e).map((function(t){return t+”=”+encodeURIComponent(e[t])})).join(“&”)}(c);navigator.sendBeacon(e,d)}else console.log(“missing parameters in data-client-settings. “+e)}catch(t){console.log(“error logging the app error. “+e)}}function b(e){let t=e;switch(e){case”windowsshellhp”:t=”dhp”;break;case”video”:t=”watch”}return t}function y(e){w(“Error when loading bundle: “+e,20202,{})}function v(e,t,n,i,o){w(“JS Exception”,20203,{source:t,customMessage:e,line:n,column:i,stack:o&&o.stack})}function S(e){w(“Click event occurred before hydration”,35800,{})}const k=[0,656,980,1304],A=[0,540,768,1084,1400,1779];function I(e,t=A){for(let n=t.length-1;n>=0;n–)if(e>=t[n])return n}const q={ver:”0.1.0″,spec:{innerWidth:{clientValue:()=>window.innerWidth},innerHeight:{clientValue:()=>window.innerHeight},outerWidth:{clientValue:()=>window.outerWidth},breakpoint:{clientValue:()=>I(window.innerWidth,k)},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}}},C=(Object.assign({},q.spec),”Authorization”),E=”UserAuthToken”;var T,_;!function(e){e.Presentation=”presentation”}(T||(T={})),function(e){e.Unknown=”Unknown”,e.Portrait=”Portrait”,e.Landscape=”Landscape”}(_||(_={}));var N,O,x,R,P,M;function U(){var e;return i()?d(document.head.dataset.clientSettings||(null===(e=document.getElementsByClassName(“peregrine-widget-settings”)[0])||void 0===e?void 0:e.getAttribute(“data-client-settings”))):null}function D(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”}(N||(N={})),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”}(O||(O={})),function(e){e.Adult=”adult”,e.Enterprise=”enterprise”,e.Kids=”kids”}(x||(x={})),function(e){e[e.Unknown=0]=”Unknown”,e[e.NotSignedIn=1]=”NotSignedIn”,e[e.SignedIn=2]=”SignedIn”}(R||(R={})),function(e){e.MSA=”MSA”,e.AAD=”AAD”,e.UNSUPPORTED_SOVEREIGNTY=”UNSUPPORTED_SOVEREIGNTY”}(P||(P={})),function(e){e[e.NonAadAccount=0]=”NonAadAccount”,e[e.AadAccount=1]=”AadAccount”,e[e.Unknown=2]=”Unknown”}(M||(M={}));const F=”currentaccount”,W=D((()=>{const e=h(F,!0),t=e&&d(e),{login_hint:n}=t||{};return n&&t})),H=D((()=>!!h(F)));let L,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=d(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 d(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;u.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}}removeSubstringKeys(e){if(!this.supported||!e)return;const t=[];for(let n=0;ni)return o}}return n}function Q(){return X=X||void 0===X&&V.getObject(J)||null,X}!function(e){e.NotAvailable=”notAvailable”,e.Expired=”expired”,e.Valid=”valid”}($||($={}));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=ee(“OSATE”,this.cookie),t=!!e&&”1″===e,n=ee(“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(){return n.g.TEST_ENV&&!Z._instance&&te({href:”http://localhost:8080/”,innerHeight:768,devicePixelRatio:1,canUseCssGrid:!1,requestId:”0″,cookie:””,userAgent:””,referer:””,oneServiceHeaders:””}),Z._instance||te({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 ee(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 te=Z.resetInstance,ne=()=>Z.getInstance();function ie(){try{return localStorage}catch(e){return null}}const oe=”uxlogin”,se=”uxlogout”,re=”uxedit”,ce=D((()=>{const e=ie();return e&&”1″===e.getItem(oe)||i()&&location.search&&location.search.includes(“uxlogin=1”)}));const ae=D((()=>{const e=function(){try{return sessionStorage}catch(e){return null}}();return e&&!!e.getItem(se)}));const ue=D((()=>{const e=ie();return e&&”1″===e.getItem(re)}));const le=D((()=>{const e=ie(),t=!G(“prg-noredirect”)&&(e&&”1″===e.getItem(“useRedirect”)||function(){const e=document.head.dataset.clientSettings||””,{browser:t}=d(e)||{},{browserType:n=””}=t||{};return!!/safari/i.test(n)}());return t}));const de={newsAndInterests:1,windowsNewsbar:1,windowsNewsPlus:1,winWidgets:1,windowsShell:1,windowsShellV2:1,distribution:1,superApp:1},ge={edgeChromium:1},he=D((()=>(i()&&U()||{}).apptype)),pe=D((()=>me()&&(W()||!h(“ace”)))),fe=D((()=>i()&&!(he()in de)&&!G(“prg-nodualauth”))),me=D((()=>fe()&&!(he()in ge)));D((()=>fe()&&(!(he()in ge)||!H()))),D((()=>fe()&&!Ae()));function we(){return Ae()}function be(e){return ye(e)&&(G(“prg-ntp-uat”)||G(“prg-ntp-uat-nf”))}function ye(e){return!(“edgeChromium”!=he()||e!=x.Adult&&e!=x.Kids||!h(“at”)&&!h(“lt”))}D((()=>{const e=(i()?window.location.host:ne().url.host).toLowerCase().endsWith(“.cn”);return fe()&&(!e||e&&G(“prg-enable-zhcn”))}));function ve(){const e=K;if(e)return u.log(“dual-auth: tryGet1SAuthToken returned live tokens”),e;const t=Y();if(t)return u.log(`dual-auth: tryGet1SAuthToken returned cached tokens that are ${z()}`),t;u.log(“dual-auth: tryGet1SAuthToken returned empty tokens”)}function Se(e){const t={};if(e){const n=he();”windowsShell”===n||”windowsShellV2″===n?t[E]=e:t[C]=`Bearer ${e}`}return t}function ke(e){const t={};return e&&(t[E]=e),t}function Ae(){return me()&&ce()||pe()&&(pe()&&!ce()&&W()&&(“expired”==z()||ue())||ae()||le())}var Ie;!function(e){e.GLOBAL=”GLOBAL”,e.GCC_MODERATE=”GCC_MODERATE”}(Ie||(Ie={}));let qe,Ce;var Ee,Te,_e,Ne,Oe;Ce=Ee||(i()?window:{}),_e=()=>{let e;return{promise:new Promise((t=>e=t)),resolver:e}},qe=Ce[Te=”authHeaderPromiseParts”]||(Ce[Te]=_e());!function(e){e.JSON=”application/json;charset=UTF-8″,e.HTML=”text/html;charset=UTF-8″}(Ne=Ne||(Ne={})),Oe=new o,u=Oe,window.onErrorHandler=y,window.onerror=v,”undefined”!=typeof globalThis?globalThis.untrackedClickHandler=S:window.untrackedClickHandler=S;const xe=U();(new class{constructor(){this.childCookieName=”child”,this.domInfo=document.head.dataset.info}init(e=null){this.clientSettings=e||U(),this.authCookieName=window._authCookieName||””,this.bundle=window._webWorkerBundle||””;const t=this.buildWebWorkerUrl(),n=window.webWorker=new Worker(t,{name:”web-worker”}),i=window.webWorkerMessages=[];n.onmessage=e=>{i.push(e.data)};const o=window.webWorkerErrors=[];if(n.onerror=e=>{o.push(e)},window.chrome){const e=this.getAudienceMode(this.clientSettings),t=window.webWorker&&window.chrome&&window.chrome.ntpSettingsPrivate;if(t&&”function”==typeof t.getPref&&(t.getPref(“ntp.news_feed_display”,(e=>{e&&e.value&&n.postMessage({id:”FeedDisplaySetting”,type:”command”,payload:e.value})})),t.getPref(“ntp.layout_mode”,(e=>{e&&e.value&&n.postMessage({id:”LayoutModeSetting”,type:”command”,payload:e.value})})),t.getPref(“ntp.user_nurturing”,(e=>{let t=!1;e&&e.value&&e.value.length&&(t=this.getSingleColRequest(e.value)),n.postMessage({id:”RenderSingleColumn”,type:”command”,payload:t})})),t.getPref(“new_device_fre.has_user_seen_new_fre”,(e=>{e&&n.postMessage({id:”NewUserFre”,type:”command”,payload:e.value})}))),t&&”function”==typeof t.getConfigData&&t.getConfigData((e=>{const t=(null==e?void 0:e.enabledFeatures)||[];t.includes(“msReducedNtpAdsForNewDevice_stage1″)&&n.postMessage({id:”EdgeNoAds”,type:”command”,payload:!0}),t.includes(“msReducedNtpAdsForNewDevice_stage2″)&&n.postMessage({id:”EdgeReduceAds”,type:”command”,payload:!0})})),e===x.Enterprise&&this.clientSettings.browser&&”edgeChromium”===this.clientSettings.browser.browserType&&parseInt(this.clientSettings.browser.version)>=87&&this.getEnterpriseAccessToken().then((e=>{e&&n.postMessage({id:”AuthTokenEnterprise”,type:”command”,payload:Se(e)})})),e!==x.Adult&&e!==x.Enterprise||this.sendPageConfiguration(),be(e)){const e=h(“lt”)||h(“at”);n.postMessage({id:”AuthHeaders”,type:”command”,payload:ke(e)})}}we()&&qe.promise.then((e=>n.postMessage({id:”AuthHeaders”,type:”command”,payload:e||{}})))}buildWebWorkerUrl(e=null){return(this.bundle||””)+”#”+this.qsFromDocument()+this.qsFromCookies()+this.qsFromDataAttribute(e||this.clientSettings)+this.qsMisc()+this.qsAuth(e||this.clientSettings)+this.qsFromUrl()+this.qsFromServiceWorker()+this.qsSelectedPivot()+this.qsXboxXToken()}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=i()?window.devicePixelRatio:ne().devicePixelRatio)||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(p(this.authCookieName),”aace”,”1″)+this.qs(p(“muid”),”muid”)+this.qs(p(this.childCookieName),”child”)+this.qs(p(“cbypass”),”cbypass”)+this.qs(this.cookieBannerConsentRequired().toString(),”ccRequired”)+this.qs(p(“ecasession”),”ecasession”)+this.qs(p(“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.qs(t,”dataInfo”)}qsSelectedPivot(){const e=”selectedPivot”;let t;try{const n=ie();n&&(t=n.getItem(e))}catch(e){console.log(“Error getting pivot id from local storage. “+e)}return this.qs(t,e)}qsXboxXToken(){const e=”xboxXTokenId”;let t;try{const n=ie();n&&(t=n.getItem(e))}catch(e){console.log(“Error getting xbox XToken from local storage. “+e)}return this.qs(t,e)}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}getHighestCbid(e,t){try{const n=ie(),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(e){ie();const t=h(this.authCookieName),n=h(this.childCookieName),{child:i}=t&&JSON.parse(t)||{};return t&&(1===i||n)?”kids”:e.audienceMode||x.Adult}sendPageConfiguration(){const e=this.clientSettings.pagetype;if(e){const t=h&&h(“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=ie();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):””}getEnterpriseAccessToken(){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”)}qsAuth(e){let t=this.qs(pe()&&”1″,”disableWWAuth”);if(!be(e&&e.audienceMode)&&!we()){const e=me()&&ve()||{};t+=this.qs(encodeURIComponent(JSON.stringify(Se(e.accessToken))),”authHeaders”)}return”edgeChromium”==he()&&G(“prg-ntp-uat-nf”)&&(t+=this.qs(“1″,”acf”)),t}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===h(“MSCC”),t=null!=document.getElementById(“onetrust-sdk”)&&null===h(“eupubconsent-v2”);return e||t}}).init(xe),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)}))}w(t+e.toString(),20202,{}),o&&o(i,{customMessage:e.toString()})}}}),n)}))}()}(); ]]>
Source

this site is a gnomie of the domain mym3verse.space

Leave a Reply

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

mym3verse

||| © mym3verse 2050