MSN


MSN{n=!1,t=void 0}},o}var c=n(“xYH4″);const u=”currentaccount”,d=365,l={newsAndInterests:1,windowsNewsbar:1,windowsNewsPlus:1,winWidgets:1,windowsShell:1},f={edgeChromium:1},p=a(()=>Object(r.a)()&&Object(o.a)()||{});function h(){return p().apptype}const g=a(()=>{const e=Object(s.a)(u),{login_hint:t}=e&&Object(c.b)(decodeURIComponent(e))||{};return t&&{login_hint:t}}),m=a(()=>!!Object(s.a)(u)),b=a(()=>y()&&(Object(r.a)()&&location.search.match(/disable-old-auth/)||m()||!(Object(s.a)(i.g)||Object(s.a)(i.e)))),w=a(()=>!(h()in l)&&Object(r.a)()&&!!(document.head.dataset.info||””).match(/bprg-dualauthb/)),y=a(()=>w()&&!(h()in f)),k=a(()=>w()&&(!(h()in f)||!m()));function S(){return Object(r.a)()&&location.search.match(/block-1s-for-auth/)}function O(e,t){const n={};return e&&(n[i.q.authorization]=”Bearer “+e),t&&(n[i.q.userIdToken]=t),n}},”9i6q”:function(e,t,n){“use strict”;n.d(t,”b”,(function(){return i})),n.d(t,”a”,(function(){return r}));var o=n(“jXSF”);function i(){“undefined”!=typeof globalThis?globalThis.untrackedClickHandler=s:window.untrackedClickHandler=s}function r(){“undefined”!=typeof globalThis?document.addEventListener(“click”,globalThis.untrackedClickHandler):document.addEventListener(“click”,window.untrackedClickHandler)}function s(){Object(o.a)(“Click event occurred before hydration”,35800,{})}},AjCL:function(e,t,n){“use strict”;function o(){try{return localStorage}catch(e){return null}}n.d(t,”a”,(function(){return o}))},HDSB:function(e,t,n){“use strict”;function o(){return!(“undefined”==typeof window||!window.document||!window.document.createElement)}n.d(t,”a”,(function(){return o}))},K9Fy:function(e,t,n){“use strict”;(function(e){n.d(t,”a”,(function(){return r}));var o=n(“xk7g”),i=n(“HDSB”);class r{constructor(){Object(i.a)()?(this.isDebugEnabled=(Object(o.a)(window.location.href,”debug”)||””).toLowerCase()in{1:1,true:1},this.isDebugEnabled&&!e.TEST_ENV&&(window.webpackRequire=n)):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)}}}).call(this,n(“fRV1”))},VrHr:function(e,t,n){“use strict”;n.r(t);var o,i=n(“tMmC”),r=n(“K9Fy”),s=n(“ulS/”),a=n(“8WO2”),c=n(“YBLW”);!function(e){e.Adult=”adult”,e.Enterprise=”enterprise”,e.Kids=”kids”}(o||(o={}));var u=n(“AjCL”);var d=n(“jXSF”);function l(e){Object(d.a)(“Error when loading bundle: “+e,20202,{})}function f(e,t,n,o,i){const r={source:t,customMessage:e,line:n,column:o,stack:i&&i.stack};Object(d.a)(“JS Exception”,20203,r)}var p=n(“9i6q”);Object(i.b)(new r.a),window.onErrorHandler=l,window.onerror=f,Object(p.b)();const h=Object(s.a)();(new class{constructor(){this.childCookieName=”child”,this.domInfo=document.head.dataset.info,this.WeaDetectLocSetting=”weaPeregrineDetectLocation”,this.WeaHomeLocCookie=”weaPeregrineHomeLocation”,this.WeaSpartanDetectLocSetting=”weaDetectLocation”,this.WeaSpartanHomeLocCookie=”weaSpartanHomeLocation”}init(e=null){this.clientSettings=e||Object(s.a)(),this.authCookieName=window._authCookieName||””,this.bundle=window._webWorkerBundle||””;const t=this.buildWebWorkerUrl();if(window.webWorker=new Worker(t,{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 e=this.getAudienceMode(this.clientSettings),t=window.webWorker&&window.chrome&&window.chrome.ntpSettingsPrivate;t&&”function”==typeof t.getPref&&(t.getPref(“ntp.news_feed_display”,e=>{e&&e.value&&window.webWorker.postMessage({id:”FeedDisplaySetting”,type:”command”,payload:e.value})}),t.getPref(“ntp.layout_mode”,e=>{e&&e.value&&window.webWorker.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)),window.webWorker.postMessage({id:”RenderSingleColumn”,type:”command”,payload:t})})),e===o.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:Object(a.b)(e)})}),e!==o.Adult&&e!==o.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(){return this.qs(document.getElementsByTagName(“html”)[0].getAttribute(“lang”),”lang”)+this.qs(encodeURIComponent(window.location.href),”adsReferer”)}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(Object(c.b)(this.authCookieName),”aace”,”1″)+this.qs(Object(c.b)(“muid”),”muid”)+this.qs(Object(c.b)(this.childCookieName),”child”)+this.qs(Object(c.b)(“cbypass”),”cbypass”)+this.qs(this.cookieBannerConsentRequired().toString(),”ccRequired”)+this.qs(Object(c.b)(“ecasession”),”ecasession”)+this.qs(Object(c.b)(“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”)+(“dhp”===e.pagetype||”ntp”===e.pagetype?this.qs(Object(c.b)(this.WeaSpartanHomeLocCookie),this.WeaSpartanHomeLocCookie)+this.qs(Object(c.b)(this.WeaSpartanDetectLocSetting),this.WeaSpartanDetectLocSetting):this.qs(Object(c.b)(this.WeaHomeLocCookie),this.WeaHomeLocCookie)+this.qs(Object(c.b)(this.WeaDetectLocSetting),this.WeaDetectLocSetting))+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=”;”,o=t.split(e);for(let e=0;ee.id)}}catch(e){console.warn(`Error getting wpo flights from ls for ${o} Error:${e}`)}return null}buildArtifactHashes(e){let t;try{const{locale:n={},bundleInfo:o={},audienceMode:i,pagetype:r,apptype:s}=e,{hash:a,configsHash:c,locConfigsHash:d}=o;if(!a||!c||!d)return””;t=this.qs(a,”bundleHash”)+this.qs(c,”configHash”)+this.qs(d,”locHash”);const l=`config_hash_${i}_${n.language}_${n.market}_${r}_${s}`,f=Object(u.a)().getItem(l);if(f){const{bundleHash:e,configHash:n,locHash:o}=JSON.parse(f)||{};e&&n&&o&&(t+=this.qs(e,”lastBundleHash”)+this.qs(n,”lastConfigHash”)+this.qs(o,”lastLocHash”))}return t}catch(e){console.error(“Error getting config hashes from ls: “+e)}return t}getHighestCbid(e,t){try{const n=Object(u.a)(),o=parseInt(e),i=parseInt(JSON.parse(n.getItem(“cbid_”+(t||””))));let r;if(o&&!isNaN(o)&&i&&!isNaN(i)&&(r=o>i?o:i),r=r||o||i,r)return window._cbid=r.toString()}catch(e){console.log(“Error getting highest CBID”+e)}}getAudienceMode(e){Object(u.a)();const t=Object(c.a)(this.authCookieName),n=Object(c.a)(this.childCookieName),{child:i}=t&&JSON.parse(t)||{};return t&&(1===i||n)?”kids”:”enterprise”===e.audienceMode&&e.IsCnDomain&&e.currentFlights.includes(“prg-china-aad”)?”adult”:e.audienceMode||o.Adult}sendPageConfiguration(){const e=this.clientSettings.pagetype;if(e){const t=c.a&&”function”==typeof c.a&&Object(c.a)(“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 o=Object(u.a)();if(o){const i=JSON.parse(o.getItem(“shd_”+e.pagetype)||null);i&&i.clientSettings&&i.info&&(t=Object.assign(Object.assign({},i.clientSettings),{bundleInfo:e.bundleInfo}),n=i.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(Object(a.h)()&&”1″,”disableWWAuth”)}getSingleColRequest(e){const t=”render_single_column”,n=”feed_layout”;let o,i;for(const r of e){const{key:e,value:s}=r;e===t?o=s:e===n&&(i=s)}return”boolean”==typeof o?o:!!i&&(i&&”single”===i.type)}cookieBannerConsentRequired(){const e=null!=document.getElementById(“consent-banner-container”)&&null===Object(c.a)(“MSCC”),t=null!=document.getElementById(“onetrust-sdk”)&&null===Object(c.a)(“eupubconsent-v2”);return e||t}}).init(h),function(e=[“vendors”,”common”,”microsoft”],t=”Error when loading bundle(s): “,n){addEventListener(“beforeunload”,(function(){if(performance.now()<5e3)return;const o=window.webpackJsonp;if(o){const i=o.length,r=e.length+1;if(i{t.length&&t[0][0]&&e.splice(e.indexOf(t[0][0]),1)})}try{Object(d.a)(t+e.toString(),20202,{})}finally{n&&n()}}}}))}()},YBLW:function(e,t,n){"use strict";let o;function i(e){if(!e)return null;if(!o){const e=document.cookie.split("; ");o={};const t=e&&e.length;for(let n=0;nthis.maxLength&&this.list.shift()}get data(){return this.list}};function l(e,t,n){try{const i=s(),l=function(){if(r)return r;let e=document.head.getAttribute("data-info");const t=s();if(o()){let n;try{const e=window.localStorage.getItem("shd_"+t.pagetype);n=JSON.parse(e)}catch(e){n=null}if(n){const o=n.clientSettings,i=n.info;o&&i&&t.pageGenTime0)return e.substring(0,t)}return""}(f.apikey));const h=function(e,t,n,o,i,r){if(n){i=i||{};const{apptype:s,audienceMode:c,pagetype:d,pageGenTime:l,bundleInfo:f}=n;i.pageGenTime=l,i.build=f&&f.v,i.appType=s;const p="enterprise"===c&&"edgeChromium"===s?"entnews":u[s],h=p||s,g=document.getElementsByTagName("html")[0].getAttribute("lang");let m="";try{getCookieConsentRequired&&"function"==typeof getCookieConsentRequired&&getCookieConsentRequired()||(m=Object(a.a)("muid"))}catch(e){console.log("error fetching muid.")}const b={name:"MS.News.Web.AppError",time:l,ver:"4.0",iKey:"o:"+o,data:{baseData:{},baseType:"MS.News.Web.Base",page:{name:"default",product:h,type:d},browser:{clientId:m},flight:{id:r},request:{activityId:n.aid,requestId:n.aid},locale:{mkt:g},extSchema:{id:e,severity:0,pb:i,message:t}}};return b?JSON.stringify(b):null}return null}(t,e,i,p,n,l);if(f&&h){console.error(h),d.push(h);const e="https://"+c+"/OneCollector/1.0"+function(e){return"?"+Object.keys(e).map((function(t){return t+"="+encodeURIComponent(e[t])})).join("&")}(f);navigator.sendBeacon(e,h)}else console.log("missing parameters in data-client-settings. "+e)}catch(t){console.log("error logging the app error. "+e)}}},tMmC:function(e,t,n){"use strict";function o(e){i=e}n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i}));let i=new(n("K9Fy").a)},"ulS/":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n("xYH4");function i(){return Object(o.b)(document.head.dataset.clientSettings)}},xYH4:function(e,t,n){"use strict";function o(e){try{return JSON.parse(e)}catch(e){return null}}function i(e,t){const n=parseInt(e);return isNaN(n)?t:n}function r(e){try{return JSON.stringify(e)}catch(e){return null}}n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return r}))},xk7g:function(e,t,n){"use strict";function o(e,t){const n=t.replace(/[[]]/g,"\$&"),o=new RegExp("[?&]"+n+"(=([^&#]*)|&|#|$)").exec(e);if(!o)return null;const i=o[2];return decodeURIComponent(i.replace(/+/g," "))||""}n.d(t,"a",(function(){return o}))},"y+Kz":function(e,t,n){"use strict";n.d(t,"t",(function(){return o})),n.d(t,"l",(function(){return i})),n.d(t,"h",(function(){return r})),n.d(t,"j",(function(){return s})),n.d(t,"s",(function(){return a})),n.d(t,"n",(function(){return c})),n.d(t,"o",(function(){return u})),n.d(t,"k",(function(){return d})),n.d(t,"u",(function(){return l})),n.d(t,"v",(function(){return f})),n.d(t,"w",(function(){return p})),n.d(t,"x",(function(){return h})),n.d(t,"p",(function(){return g})),n.d(t,"f",(function(){return m})),n.d(t,"g",(function(){return b})),n.d(t,"e",(function(){return w})),n.d(t,"i",(function(){return y})),n.d(t,"q",(function(){return k})),n.d(t,"r",(function(){return S})),n.d(t,"m",(function(){return O})),n.d(t,"a",(function(){return j})),n.d(t,"b",(function(){return I})),n.d(t,"c",(function(){return T})),n.d(t,"d",(function(){return W}));const o="msnewsroot",i={html:"html",head:"head",body:"body"},r={manifestAttributeName:"manifest",pagesRefreshData:"ac_prd"},s="data-client-settings",a="data-pagetype",c="data-info",u="data-js",d="dir",l="data-service-url",f="data-telemetry-id",p="data-page-product",h="data-page-type",g=2,m="APP_ANON",b="aace",w="ace",y="child",k={activityId:"x-client-activityid",adsReferer:"ads-referer",authorization:"Authorization",entAuthorization:"Ent-Authorization",muid:"MUID",rpsToken:"UserAuthToken",taboolaSessionId:"taboola-sessionId",userIdToken:"UserIdToken"},S={traceId:"ddd-activityid"},O="IDXId";var q,v,C;!function(e){e.actionType="actionType",e.activityId="activityId",e.apiKey="apikey",e.audienceMode="audienceMode",e.channel="channel",e.complexInfoPaneEnabled="cipenabled",e.contentType="contentType",e.cookieWallPresent="cookieWallPresent",e.delta="delta",e.disableTypeSerialization="DisableTypeSerialization",e.infopaneCount="infopaneCount",e.fdhead="fdhead",e.feedLayoutRequestType="t",e.filter="$filter",e.ids="ids",e.location="location",e.market="market",e.mobile="mobile",e.ocid="ocid",e.parentContentId="parent-content-id",e.parentNamespace="parent-ns",e.parentTitle="parent-title",e.queryQ="q",e.query="query",e.queryType="queryType",e.qScope="qscope",e.responseSchema="responseSchema",e.select="$select",e.session="session",e.signInCookieName="scn",e.skip="$skip",e.source="source",e.targetType="targetType",e.timeOut="timeOut",e.top="$top",e.type="type",e.user="user",e.wrapOData="wrapodata",e.infoPaneItemCount="t =InfoPane.itemCount",e.newsTop="newsTop",e.newsSkip="newsSkip",e.collectionIds="collectionIds",e.listIds="listIds",e.requireQuoteDetail="requireQuoteDetail",e.exchangeCode="ExchangeCode",e.topNum="top",e.skipNum="skip",e.startTime="StartTime",e.endTime="EndTime",e.eventType="EventType"}(q||(q={})),function(e){e.Presentation="presentation"}(v||(v={})),function(e){e.Unknown="Unknown",e.Portrait="Portrait",e.Landscape="Landscape"}(C||(C={}));const j={pageVersions:"pageVersions"},I="https://microsoftnews.msn.com/",T="selectedPivot";var W;!function(e){e[e.Undefined=0]="Undefined",e[e.Basic=1]="Basic",e[e.Advanced=2]="Advanced",e[e.Premium=3]="Premium"}(W||(W={}))}}); ]]>

Source

We will be happy to hear your thoughts

Leave a reply

Melaskinhub
Logo
Register New Account
Reset Password
Compare items
  • Total (0)
Compare
0