`,w=(e,t)=>f.d`
${(0,b.g)((t=>e-2>=0),(0,x.T7)(t))}
${(0,b.g)((t=>e-2<0),f.d`
${(0,b.g)((t=>e-1>=0),(0,x.NP)(t))}
${(0,b.g)((t=>e-1<0),f.d`
${(0,b.g)((t=>e-1<0),(0,x.IB)(t))}
`)}
`)}
`;let C=class extends c{};C=(0,o.gn)([(0,p.M)({name:"msn-native-ad-highlight-rating",template:y,styles:m,shadowOptions:{delegatesFocus:!0}})],C)},45560:function(e,t,i){i.d(t,{fx:function(){return c},IB:function(){return g},NP:function(){return h},T7:function(){return p}});var o=i(49218);const n=o.d`
`,a=o.d`
`,r=o.d`
`,s=o.d`
`,d=o.d`
`,l=o.d`
`,c={RED:"red",YELLOW:"yellow"},p=e=>{switch(e){case c.RED:return n;case c.YELLOW:return s;default:return n}},h=e=>{switch(e){case c.RED:return a;case c.YELLOW:return d;default:return a}},g=e=>{switch(e){case c.RED:return r;case c.YELLOW:return l;default:return r}}},84446:function(e,t,i){i.d(t,{F:function(){return l}});var o=i(33940),n=i(28904),a=i(78923),r=i(99452),s=i(33764);const d=new Map([["flex","MsnFlexLayout"],["pixel","MsnPixelLayout"],["block","MsnBlockLayout"]]);class l extends n.H{constructor(){super(...arguments),this._displayName="MsnUberLayout"}connectedCallback(){var e;super.connectedCallback();const t=null===(e=this.layoutConfig)||void 0===e?void 0:e.mode;if(d.has(t)&&d.get(t)!==this._displayName)return;const i=Object.keys(this.layoutConfig||{}).filter((e=>"mode"!==e)).map((e=>{var t;return(0,s._t)(e,null===(t=this.layoutConfig)||void 0===t?void 0:t[e])})).filter((e=>""!==e));this.layoutStyle=a.i`${i.length>0?`:host {${i.join(";")}}`:""}`}}(0,o.gn)([r.LO],l.prototype,"layoutConfig",void 0),(0,o.gn)([r.LO],l.prototype,"layoutStyle",void 0)},71603:function(e,t,i){i.d(t,{f:function(){return f}});var o=i(33940),n=i(42590),a=i(26415),r=i(92773),s=i(84446);let d=class extends s.F{constructor(){super(...arguments),this.discountText=""}};(0,o.gn)([(0,n.Lj)({attribute:"discount-text"})],d.prototype,"discountText",void 0),d=(0,o.gn)([(0,r.uj)(a.EoX,"msn-native-ad-sale-highlight-badge")],d);var l=i(28904),c=i(49218);const p=c.d`
`,h=c.d`
${p}
${e=>e.discountText}
`;var g=i(78923),u=i(41503);const m=g.i`
.sale-highlight-badge {
background: #0078D4;
border-radius: 4px;
display: flex;
font-size: 12px;
color: #FFF;
align-items: center;
padding: 2px 8px;
line-height: 16px;
font-family: Segoe UI;
box-sizing: border-box;
text-decoration: none;
}
.sale-highlight-badge .sale-highlight-badge-text {
margin-left: 5px;
white-space: nowrap;
}
`.withBehaviors(new u.g("layoutStyle"));let f=class extends d{};f=(0,o.gn)([(0,l.M)({name:"msn-native-ad-sale-highlight-badge",template:h,styles:m})],f)},29702:function(e,t,i){i.d(t,{N:function(){return A}});var o=i(33940),n=i(99452),a=i(42590),r=i(26415),s=i(92773),d=i(16517);function l(e,t="",i="",o=""){if(0===e||1===e)return t;if(e>1&&e<=30)return i.replace("{0}",String(e));if(e>30){const t=(null===d.jG||void 0===d.jG?void 0:d.jG.CurrentMarket)||"en-us",i=new Date(Date.now());i.setDate(i.getDate()+e);const n=i.toLocaleDateString(t);return o.replace("{0}",n)}return""}var c=i(84446);let p=class extends c.F{constructor(){super(...arguments),this.show=!1,this.disableTimeout=!1,this.showToast=!1,this.arrowOffset="",this.duration=1e3,this.marginLeft="0",this.isDrConfig=!1,this.displayedText="",this.promotionalText="",this.redemptionCode="",this.daysFromExpiration="",this.destinationURL="",this.underneathPopUp=!1,this.displayExpirationDate=!1,this.timer=Date.now(),this.handleOnCopyClick=e=>()=>{this.showToast=!0,setTimeout((()=>this.showToast=!1),1e3)}}connectedCallback(){super.connectedCallback();const{nativeAdExpiresToday:e="",nativeAdExpiresInDays:t="",nativeAdExpiresOnCertainDay:i="",nativeAdExpiresTodayPopupWithCode:o="",nativeAdExpiresInDaysPopupWithCode:n="",nativeAdExpiresOnCertainDayPopupWithCode:a="",nativeAdExpiresTodayPopupWithoutCode:r="",nativeAdExpiresInDaysPopupWithoutCode:s="",nativeAdExpiresOnCertainDayPopupWithoutCode:d=""}=this.localizedStrings;this.expirationDate=l(Number(this.daysFromExpiration),e,t,i),this.expirationDatePopup=l(Number(this.daysFromExpiration),this.redemptionCode?o:r,this.redemptionCode?n:s,this.redemptionCode?a:d)}handlePopupWindowClick(e,t){"shop-btn"!==t.event.target.id&&t.event.stopPropagation()}onMouseEnter(e){var t,i,o;const n=null===(o=null===(i=null===(t=e.shadowRoot)||void 0===t?void 0:t.querySelector("decoration-special-offer"))||void 0===i?void 0:i.shadowRoot)||void 0===o?void 0:o.querySelector(".special-offer-btn-container"),a=(null==n?void 0:n.offsetWidth)/2,r=e.offsetLeft;this.arrowOffset=this.arrowOffset||a+r-8+"px",clearTimeout(this.timer),this.show=!0}onMouseLeave(){this.handleHide()}onPopupWindowMouseEnter(){clearTimeout(this.timer),this.disableTimeout=!0}onPopupWindowMouseLeave(){this.disableTimeout=!1,this.handleHide()}handleHide(){this.disableTimeout||(this.timer=window.setTimeout((()=>{this.show=!1}),this.duration))}};(0,o.gn)([n.LO],p.prototype,"show",void 0),(0,o.gn)([n.LO],p.prototype,"disableTimeout",void 0),(0,o.gn)([n.LO],p.prototype,"showToast",void 0),(0,o.gn)([n.LO],p.prototype,"arrowOffset",void 0),(0,o.gn)([a.Lj],p.prototype,"duration",void 0),(0,o.gn)([(0,a.Lj)({attribute:"margin-left"})],p.prototype,"marginLeft",void 0),(0,o.gn)([(0,a.Lj)({mode:"boolean",attribute:"is-dr-config"})],p.prototype,"isDrConfig",void 0),(0,o.gn)([(0,a.Lj)({attribute:"displayed-text"})],p.prototype,"displayedText",void 0),(0,o.gn)([(0,a.Lj)({attribute:"promotional-text"})],p.prototype,"promotionalText",void 0),(0,o.gn)([(0,a.Lj)({attribute:"redemption-code"})],p.prototype,"redemptionCode",void 0),(0,o.gn)([(0,a.Lj)({attribute:"days-from-expiration"})],p.prototype,"daysFromExpiration",void 0),(0,o.gn)([(0,a.Lj)({attribute:"destination-url"})],p.prototype,"destinationURL",void 0),(0,o.gn)([(0,a.Lj)({attribute:"underneath-pop-up",mode:"boolean"})],p.prototype,"underneathPopUp",void 0),(0,o.gn)([(0,a.Lj)({mode:"boolean",attribute:"display-expiration-date"})],p.prototype,"displayExpirationDate",void 0),(0,o.gn)([n.LO],p.prototype,"localizedStrings",void 0),(0,o.gn)([n.LO],p.prototype,"expirationDate",void 0),(0,o.gn)([n.LO],p.prototype,"expirationDatePopup",void 0),p=(0,o.gn)([(0,s.uj)(r.EoX,"msn-native-ad-special-offer")],p);var h=i(28904),g=i(78923),u=i(41503),m=i(53692);const f=g.i`
:host {
--accent-fill-rest: #0078D4;
--accent-fill-hover: #006CBE;
--accent-fill-active: #1683D8;
--accent-fill-focus: #888888;
}
.container {
display: flex;
flex-direction: column;
}
.description {
white-space: initial;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
overflow: hidden;
}
.text-section {
display: flex;
padding: 12px 12px 0px 12px;
flex-direction: column;
font-size: 12px;
}
.action-section {
display: flex;
padding: 12px;
justify-content: space-between;
}
.title {
font-weight: bold;
white-space: initial;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
}
.shop-btn {
background: var(--accent-fill-rest);
color: #FFFFFF;
width: 68px;
height: 32px;
border-radius: 20px;
font-size: 12px;
text-align: center;
line-height: 32px;
cursor: pointer;
}
.shop-btn:hover {
background: var(--accent-fill-hover);
}
.shop-btn:active {
background: var(--accent-fill-active);
}
.shop-btn:focus {
background: var(--accent-fill-focus);
}
`.withBehaviors(new u.g("layoutStyle"),new m.j(["arrowOffset","marginLeft","isDrConfig"],(e=>g.i`
.popup-window {
margin-left: ${e.marginLeft}px;
color: #000000;
cursor: default;
z-index: 1;
background-color: #FFFFFF;
border-radius: 4px;
margin-bottom: 11px;
width: 276px;
min-height: 102px;
max-height: 140px;
box-shadow: 0px 0.6px 1.8px rgb(0 0 0 / 10%), 0px 3.2px 7.2px rgb(0 0 0 / 13%);
}
.underneathPopUp {
position: fixed;
margin-top: 32px;
}
.popup-window::after {
content: "";
width: 0;
height: 0;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
${(e=>e.underneathPopUp?"border-bottom":"border-top")(e)}: 8px solid #FFFFFF;
position: absolute;
margin-inline-start: ${e.arrowOffset};
bottom: ${(e=>e.isDrConfig?"":e.underneathPopUp?"101":"26")(e)}px;
}
`)));var v=i(49218),b=i(93703);let x=class extends h.H{constructor(){super(...arguments),this.code="",this.copyText=""}};(0,o.gn)([a.Lj],x.prototype,"code",void 0),(0,o.gn)([n.LO],x.prototype,"onCopyClick",void 0),(0,o.gn)([(0,a.Lj)({attribute:"copy-text"})],x.prototype,"copyText",void 0),x=(0,o.gn)([(0,s.uj)(r.EoX,"msn-native-ad-copy-input")],x);const y=g.i`
.input-container {
display: flex;
height: 32px;
width: 172px;
justify-content: space-between;
background: #EDEDED;
border-radius: 4px;
align-items: center;
font-size: 14px;
cursor: initial;
}
.promotion-code {
margin-left: 12px;
}
.copy-icon {
margin-right: 12px;
cursor: pointer;
}
`,w=v.d`
`,C=v.d`
`;let $=class extends x{};$=(0,o.gn)([(0,h.M)({name:"msn-native-ad-copy-input",template:C,styles:y})],$);var L=i(83529);let k=class extends h.H{constructor(){super(...arguments),this.duration=1e3,this.show=!1,this.message="Copied!"}};(0,o.gn)([a.Lj],k.prototype,"duration",void 0),(0,o.gn)([(0,a.Lj)({mode:"boolean"})],k.prototype,"show",void 0),(0,o.gn)([a.Lj],k.prototype,"message",void 0),(0,o.gn)([a.Lj],k.prototype,"position",void 0),(0,o.gn)([a.Lj],k.prototype,"top",void 0),(0,o.gn)([a.Lj],k.prototype,"left",void 0),k=(0,o.gn)([(0,s.uj)(r.EoX,"msn-native-ad-toast")],k);const S=g.i`
.toast {
display: flex;
width: 81px;
height: 38px;
background: #3B3B3B;
border-radius: 6px;
justify-content: center;
align-items: center;
color: white;
font-size: 14px;
font-weight: normal;
box-shadow: 0px 12.8px 28.8px rgba(0, 0, 0, 0.13), 0px 0px 9.2px rgba(0, 0, 0, 0.11);
}
`.withBehaviors(new m.j(["position","top","left"],(e=>g.i`
:host {
position: ${e.position};
top: ${e.top}px;
left: ${e.left}px;
}
`))),_=v.d`
${(0,b.g)((e=>e.show),v.d`
${e=>e.message}
`)}
`;let T=class extends k{};T=(0,o.gn)([(0,h.M)({name:"msn-native-ad-toast",template:_,styles:S})],T),L.B;const M=v.d`
${(0,b.g)((e=>e.show),v.d`
e.showToast} position="fixed" top="7" left="110">
`)}
e.onMouseEnter(e)}
@mouseleave=${e=>e.onMouseLeave()}
data=${e=>e.displayedText}
expiration-date=${e=>e.expirationDate}
display-expiration-date=${e=>e.displayExpirationDate}
>
`;let A=class extends p{};A=(0,o.gn)([(0,h.M)({name:"msn-native-ad-special-offer",template:M,styles:f})],A)},18964:function(e,t,i){i.d(t,{j:function(){return P}});var o=i(33940),n=i(40810),a=i(27281),r=i(77387),s=i(5114),d=i(18333),l=i(2348),c=i(28904),p=i(99452),h=i(1334),g=i(16517),u=i(26415),m=i(19388),f=i(65135),v=i(38156),b=i(18536),x=i(60483),y=i(25514),w=i(52965),C=i(4734),$=i(82890),L=i(81563);class k extends c.H{constructor(){super(...arguments),this.autosuggestShown=!1,this.isInputFocused=!1,this.searchParams=new URLSearchParams(location.search),this.isAutoSuggestInitialized=!1,this.openVoiceSearchDialog=!1,this.isVoiceSearchLoaded=!1,this.onVoiceSearchClick=async e=>{!this.isVoiceSearchLoaded&&this.options.voiceSearchWConfigRef&&(await(0,L.O)(this.options.voiceSearchWConfigRef),this.isVoiceSearchLoaded=!0),f.M0.sendActionEvent(e.currentTarget),this.openVoiceSearchDialog=!this.openVoiceSearchDialog,e.stopImmediatePropagation()},this.voiceSearchCancelCallback=()=>{this.openVoiceSearchDialog=!1},this.voiceSearchSubmitCallback=e=>{if(!e)return;this.inputElement.value=e;const t=b.u.getTelemetryObject(this.formElement);t.contract.overrideDestinationUrl=this.options.searchActionUrl,t.contract.behavior=v.wu.VoiceSearch,b.u.setAttribute(this.formElement,null,t),f.M0.sendActionEvent(this.formElement,v.Aw.Submit,v.wu.VoiceSearch),this.formElement.action="//www.bing.com/opaluqu/v1";const i=this.shadowRoot.getElementById("vshi");this.inputElement&&!i&&this.inputElement.appendChild(this.voiceSearchHiddenInputs()),this.formElement.submit()},this.voiceSearchHiddenInputs=()=>{const e=document.createElement("div");e.setAttribute("id","vshi");const t=e.appendChild(document.createElement("input"));t.setAttribute("type","hidden"),t.setAttribute("name","input"),t.setAttribute("value","2");const i=e.appendChild(document.createElement("input"));i.setAttribute("type","hidden"),i.setAttribute("name","uquresponseformat"),i.setAttribute("value","1");const o=e.appendChild(document.createElement("input"));return o.setAttribute("type","hidden"),o.setAttribute("name","uqubfprlg"),o.setAttribute("value","1"),e},this.onDocumentKeypress=e=>{const t=e.composedPath(),i=t&&t[0]&&t[0],o=i&&i.tagName.toLowerCase(),n=i&&i.isContentEditable||e.target&&e.target.isContentEditable;["input","fluent-text-field","fluent-text-area","textarea","msft-feed-layout","card-action","qna-feed-list","select","fluent-select","msn-location-search"].includes(o)||e.target.id===d.cN||n||e.charCode>32&&e.charCode<=126&&(this.inputElement.focus(),e.stopPropagation())},this.inputOnFocus=()=>{this.isInputFocused=!0},this.inputOnBlur=()=>{this.isInputFocused=!1},this.clearForm=()=>{this.inputElement.value=""},this.onAutosuggestShown=()=>{this.autosuggestShown=!0,(0,h.Gg)(h.tk.search,!0)},this.onAutosuggestHidden=()=>{this.autosuggestShown&&((0,h.Gg)(h.tk.search,!1),this.autosuggestShown=!1)},this.arrowUpDownHandler=e=>{"ArrowDown"!==e.key&&"ArrowUp"!==e.key||!this.options.autofocus||!this.isInputFocused||this.autosuggestShown||this.scrollPageAndRemoveListener()},this.onKeypress=e=>{if("Enter"!==e.key||!this.formElement)return!0;this.onSubmit(),this.formElement.submit()},this.setFormCode=e=>{e&&e.length?(this.options.formCodes&&this.trySetFormCodeForVertical(e,"form"),e.some((e=>"form"===e.name&&e.value))||f.M0.sendAppErrorEvent(Object.assign(Object.assign({},u.ZAq),{message:"Form code look up based on 'form' keyword not found in form parameters config"}))):f.M0.sendAppErrorEvent(Object.assign(Object.assign({},u.ZAq),{message:"Form parameters are not configured, searchbox config is missing formParameters"}))}}connectedCallback(){if(super.connectedCallback(),document.body.addEventListener("keypress",this.onDocumentKeypress,{capture:!0}),this.options.disableArrowUpDownAS&&document.addEventListener("keydown",this.arrowUpDownHandler,{capture:!0}),this.isInputFocused=this.options.autofocus,this.inputElement){this.inputElement.addEventListener("focus",this.inputOnFocus),this.inputElement.addEventListener("blur",this.inputOnBlur);const e=this.inputElement.shadowRoot.querySelector("fluent-button[part=button]");e&&e.addEventListener("focus",(e=>e.stopPropagation()))}window.addEventListener("openSearchBox",(()=>{this.inputElement.focus(),this.inputElement.click()}))}optionsChanged(){this.options&&(this.populateFormParameters(),this.populateTelemetryTags(),(0,C.F_)().then((()=>{n.H.subscribe(n.a.IsDocumentVisible,(e=>{e&&!this.isAutoSuggestInitialized&&requestAnimationFrame((()=>{this.initAutosuggest(),this.isAutoSuggestInitialized=!0})),(0,a.n4)(r.A.Clarity)&&this.formElement&&this.formElement.setAttribute("data-clarity-mask","true")}))})),(0,m.BW)($.p.searchBox),requestAnimationFrame((()=>{setTimeout((()=>{(0,m.o_)($.p.searchBox,!1,performance.now())}))})))}initAutosuggest(){const e="AutoSuggest.Service.Elements.";(0,y.Z)(window,e+"Input",this.inputElement),(0,y.Z)(window,e+"Form",this.formElement),this.formElement.addEventListener("autosuggestShown",this.onAutosuggestShown),this.formElement.addEventListener("autosuggestHide",this.onAutosuggestHidden),this.options.clearOnSubmit&&this.formElement.addEventListener("ASSugClicked",this.clearForm);const t=this.options.autoSuggest&&this.options.autoSuggest.delayBind;t&&(t===d.pb.OnBusinessSearchResultsReady&&!this.options.autoSuggest.businessSearchResultsEnabled||t!==d.pb.OnBusinessSearchResultsReady)&&(0,l.fF)({autoSuggestProperties:this.options.autoSuggest,requestId:this.getRequestId(),telemetryCallback:f.M0.sendActionEvent.bind(f.M0),action:this.options.searchActionUrl,searchBoxContext:{inputRef:this.inputElement,formRef:this.formElement},isDarkMode:!this.options.disableDarkMode&&matchMedia("(prefers-color-scheme: dark)").matches})}onSubmit(){const e=b.u.get(this.formElement);e&&(e.contract.destinationUrl=this.options.searchActionUrl,b.u.setAttribute(this.formElement,e.contract)),f.M0.sendActionEvent(this.formElement,v.Aw.Submit,v.wu.TextSearch),this.options.clearOnSubmit&&this.clearForm()}scrollPageAndRemoveListener(){this.inputElement.blur(),document.removeEventListener("keydown",this.arrowUpDownHandler,{capture:!0})}populateFormParameters(){if(!this.options.formParameters)return;const e=(0,w.Z)(this.options.formParameters);this.updateFormParameter(e,"refig",this.getRequestId()),this.updateFormParameter(e,"mkt",s.T.market),this.setFormCode(e);const t=this.searchParams.get("ocid");t&&e.push({value:t,name:"ocid"}),this.formParameters=e}updateFormParameter(e,t,i){if(!e||!i)return;const o=e.findIndex((e=>e.name===t));-1!==o?e[o].value=i:e.push({name:t,value:i})}trySetFormCodeForVertical(e,t){var i,o;const n=null===(i=(0,g.Yq)())||void 0===i?void 0:i.HostPage.verticalKey;if(!(null===(o=this.options.formCodes)||void 0===o?void 0:o.verticalBased)||!n)return;const a=this.options.formCodes.verticalBased[n];this.updateFormParameter(e,t,a)}populateTelemetryTags(){const e={content:{headline:"",type:v.uH.TextSearch},behavior:v.wu.TextSearch,type:v.c9.SearchBox};this.searchBoxTelemetryTags=new x.D(Object.assign(Object.assign({},e),{name:"headersearch"})).getMetadataTag(),this.inputTelemetryTag=new x.D(Object.assign(Object.assign({},e),{name:"search_websearch",action:v.Aw.Submit})).getMetadataTag(),this.buttonTelemetryTag=new x.D({name:"searchinput",behavior:v.wu.Undefined}).getMetadataTag(),this.voiceSearchButtonTelemetryTag=new x.D({name:"voicesearch",behavior:v.wu.Open,content:{type:v.uH.VoiceSearch,headline:"Voice Search"},overrideDestinationUrl:" "}).getMetadataTag()}getRequestId(){if(f.M0){const e=f.M0.getRequestId();if(e)return e}return(s.T.activityId||"").toLowerCase()}}(0,o.gn)([p.LO],k.prototype,"options",void 0),(0,o.gn)([p.LO],k.prototype,"formParameters",void 0),(0,o.gn)([p.LO],k.prototype,"autosuggestShown",void 0),(0,o.gn)([p.LO],k.prototype,"isInputFocused",void 0),(0,o.gn)([p.LO],k.prototype,"openVoiceSearchDialog",void 0),(0,o.gn)([p.LO],k.prototype,"isVoiceSearchLoaded",void 0);var S=i(32804),_=i(78923),T=i(29717);const M=_.i`
:host {
outline: none;
}
.search-box {
display: inline-block;
}
.search-box.inputWidth3 {
position: relative;
height: 46px;
}
.search-box msft-search-box {
--search-box-radius: 22px;
height: 46px;
overflow: hidden;
transition: none;
z-index: 100;
}
.search-box.autosuggestShown msft-search-box {
--search-box-radius: 22px 22px 0 0;
}
.search-box.autosuggestShown msft-search-box::part(button) {
border-start-end-radius: 22px;
}
.search-box msft-search-box::part(root) {
max-width: 710px
}
.search-box msft-search-box::part(control) {
font-family: "Segoe UI";
font-size: var(--type-ramp-plus-1-font-size);
padding-inline-start: 16px;
}
.search-box msft-search-box::part(control)::placeholder {
opacity: 1; /* For Firefox */
}
.search-box msft-search-box svg {
height: 24px;
margin-left: -2px;
margin-right: -2px;
width: 24px;
}
.search-box #sw_as {
clear: both;
position: relative;
z-index: 600;
top: -4px;
}
.search-box #sw_as .sa_as {
border-style: none;
border-top: 1px solid #E5E5E5;
box-shadow: 0 .6px 1.8px rgba(0, 0, 0, .11), 0 3.2px 7.2px rgba(0, 0, 0, .13);
clip-path: inset(0px -100% -100% -100%);
width: 100%;
}
.search-box #sw_as .sa_as,
.search-box #sw_as #sa_ul,
.search-box #sw_as .sa_drw li:last-of-type {
border-radius: 0 0 22px 22px;
}
.search-box #sw_as .sa_drw li:last-of-type {
padding-bottom: 6px;
}
.search-box #sw_as #sa_ul .sa_hd,
.search-box #sw_as #sa_ul .sa_tm {
margin-inline-start: 16px;
}
.search-box #sw_as .as_msbsugcontainer {
padding-inline-start: 16px;
}
.voiceSearchButton {
background: transparent;
border: none;
cursor: pointer;
height: 44px;
margin-inline-start: 6px;
padding: 0;
z-index: 2;
}
.search-box msft-search-box .searchSvg {
height: 20px;
width: 20px;
padding-top: 4px;
}
.voiceSearchButton svg {
fill: ${S.goi};
}
@media (min-width: 300px) {
.search-box msft-search-box::part(root) {
width: 273px;
}
#sw_as .sa_as {
width: 251px;
}
}
@media (min-width: 644px) {
.search-box msft-search-box::part(root) {
width: 330px;
}
#sw_as .sa_as {
width: 612px;
}
.inputWidth3 msft-search-box::part(control) {
width: 85%;
}
}
@media (min-width: 956px) {
.search-box msft-search-box::part(root) {
width: 458px;
}
#sw_as .sa_as {
width: 600px;
}
.inputWidth3 msft-search-box::part(control) {
width: 88%;
}
}
@media (min-width: 1268px) {
.search-box msft-search-box::part(root) {
width: 690px;
}
#sw_as .sa_as {
width: 780px;
}
.inputWidth3 msft-search-box::part(control) {
width: 93%;
}
}
/**
*Search MSN HP Mobile styling
*/
.search-box.searchbox-msn-hp-mobile-style {
display: block;
width: 100%;
}
.search-box.searchbox-msn-hp-mobile-style msft-search-box {
width: 100%;
box-shadow: none;
background: #f8f8f8;
}
.search-box.searchbox-msn-hp-mobile-style msft-search-box::part(root) {
max-width: unset !important;
flex: 1 !important;
}
`.withBehaviors((0,T.Uu)(_.i`
.voiceSearchButton svg {
fill: ${S.CHi};
}
.search-box #sw_as .sa_as {
border-top: solid 1px rgb(255 255 255 / 8%);
}
.search-box msft-search-box::part(control)::placeholder{
color: #FFFFFF;
opacity: 0.7;
}
.search-box.searchbox-msn-hp-mobile-style msft-search-box {
background: #333333;
}
`));var A=i(49218),F=i(41472),I=i(93703),j=i(89150);const E=A.d`
`,O=A.d`
`,B=A.d`
`,D=A.d`${(0,I.g)((e=>e.options),B)}`;var H=i(49379),z=i(44475);let P=class extends k{};P=(0,o.gn)([(0,c.M)({name:"msn-search-box",template:D,styles:M,shadowOptions:{delegatesFocus:!0}})],P),H.D3.define(z.j.registry)},22866:function(e,t,i){i.d(t,{g:function(){return b}});var o=i(33940),n=i(12306),a=i(63070),r=i(94352);var s=i(28904),d=i(42590);class l extends s.H{}(0,o.gn)([d.Lj],l.prototype,"userSubscriptionData",void 0),(0,o.gn)([d.Lj],l.prototype,"cardSize",void 0);var c=i(78923),p=i(58958),h=i(32804);const g=c.i`
.badge {
border-radius: 4px;
font-size: 8px;
}
.badge svg {
margin-inline-end: 6px;
}
.true {
background: linear-gradient(90deg, #5051D1 0%, #797AF5 100%);
padding: 2px 6px 3px 8px;
color: #FFFFFF;
}
.false {
background: ${(0,p.Y)()?"linear-gradient(90deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.78) 100%)":"linear-gradient(90deg, rgba(0, 0, 0, 0.64) 0%, rgba(0, 0, 0, 0.46) 100%)"};
display: flex;
padding: 2px 6px 3px 8px;
color: ${h.RJY};
}
._1x_2y {
display: inline-flex;
margin-bottom: 6px;
}
._2x_2y {
position: absolute;
top: 16px;
}
`;var u=i(49218),m=i(93703);const f=u.d`
`,v=u.d`
"_1x_2y"==e.cardSize?"_1x_2y":"_2x_2y"}"
>
${(0,m.g)((e=>!e.userSubscriptionData.isSubscribed),u.d`
${f}
${e=>{var t,i;return null===(i=null===(t=e.userSubscriptionData)||void 0===t?void 0:t.subscribeToViewText)||void 0===i?void 0:i.toLocaleUpperCase()}}
`)}
${(0,m.g)((e=>e.userSubscriptionData.isSubscribed),u.d`${e=>{var t,i;return null===(i=null===(t=e.userSubscriptionData)||void 0===t?void 0:t.subscribedText)||void 0===i?void 0:i.toLocaleUpperCase()}}`)}
`;let b=class extends l{};b=(0,o.gn)([(0,s.M)({name:"msn-subscription-badge",template:v,styles:g})],b),n.D.define(a.H.registry),r.D.define(a.H.registry)},28258:function(e,t,i){i.r(t),i.d(t,{MsnZIndexCard:function(){return O}});var o,n=i(33940),a=i(29717),r=i(27186),s=i(67739),d=i(32804),l=i(22798),c=i(28904),p=i(42590),h=i(99452);!function(e){e.imageAtBottom="imageAtBottom",e.imageAtTop="imageAtTop",e.imageAtRight9By16="imageAtRight9By16",e.imageAtRight3By4="imageAtRight3By4",e.animatedImagery9by16="animatedImagery9by16"}(o||(o={}));class g extends c.H{constructor(){super(...arguments),this.layout=o.imageAtTop,this.headingMaxLines=5,this.documentDirection="ltr",this.headinglevel=3}handleStartActionsContentChange(){this.startActionsContainer.classList.toggle("start-actions",this.startActions.assignedNodes().length>0),this.hasFooter=this.endActions.assignedNodes().length>0}handleEndActionsContentChange(){this.endActionsContainer.classList.toggle("end-actions",this.endActions.assignedNodes().length>0),this.hasFooter=this.endActions.assignedNodes().length>0}abstractChanged(){this.$fastController.isConnected&&(this.hasAbstract=this.abstract.length>0)}handleMediaContentChange(){this.mediaContainer.classList.toggle("media",this.media.assignedNodes().length>0)}handleBackgroundImageContentChange(){this.backgroundImageContainer.classList.toggle("background-image",this.backgroundImage.assignedNodes().length>0)}handleZIndexCardLinkClick(e){return this.$emit("link-invoked",e),!0}}(0,n.gn)([p.Lj],g.prototype,"layout",void 0),(0,n.gn)([(0,p.Lj)({attribute:"heading-max-lines"})],g.prototype,"headingMaxLines",void 0),(0,n.gn)([(0,p.Lj)({attribute:"document-direction"})],g.prototype,"documentDirection",void 0),(0,n.gn)([(0,p.Lj)({attribute:"heading-level",mode:"fromView",converter:p.Id})],g.prototype,"headinglevel",void 0),(0,n.gn)([(0,p.Lj)({mode:"fromView"})],g.prototype,"href",void 0),(0,n.gn)([h.LO],g.prototype,"anchorTelemetryTag",void 0),(0,n.gn)([h.LO],g.prototype,"mediaNodes",void 0),(0,n.gn)([h.LO],g.prototype,"hasAbstract",void 0),(0,n.gn)([h.LO],g.prototype,"hasFooter",void 0),(0,n.gn)([h.LO],g.prototype,"abstract",void 0),(0,n.gn)([h.LO],g.prototype,"iconSlottedNodes",void 0),(0,n.gn)([(0,p.Lj)({attribute:"image-priority",mode:"boolean"})],g.prototype,"imagePriority",void 0),(0,n.gn)([p.Lj],g.prototype,"target",void 0),(0,n.gn)([h.LO],g.prototype,"hoverActionsSlottedNodes",void 0);var u=i(78923);const{imageAtBottom:m,imageAtTop:f,imageAtRight9By16:v,imageAtRight3By4:b,animatedImagery9by16:x}=o,y="#373737",w="white",C=e=>e.withBehaviors((0,a.vF)(u.i`
.heading {
color: ${l.H.LinkText};
background: ${l.H.ButtonFace};
}
.footer,
.start-actions,
.end-actions,
::slotted([slot="start-actions"]),
::slotted([slot="end-actions"]) {
background: ${l.H.ButtonFace};
color: ${l.H.ButtonText};
fill: currentcolor;
}
::slotted(fluent-button[appearance="stealth"]:not(:hover)) {
background: ${l.H.ButtonFace};
}
`)),$=C(u.i`
:host span.title_1x_2y,
:host span.title_1x_3y {
font-size: 20px;
}
${(0,r.j)("flex")} :host {
position: relative;
width: auto;
box-sizing: border-box;
font-family: ${d.SVJ};
flex-direction: column;
outline: none;
overflow: hidden;
height: 100%;
width: 100%;
}
:host(:hover) .hover-actions {
opacity: 1;
transition: opacity 0.2s ease-in-out;
}
:host(:hover) .media {
filter: brightness(0.98);
}
.body {
display: grid;
justify-content: center;
row-gap: 8px;
column-gap: 10px;
grid-template-columns: 1fr auto;
grid-template-rows: auto;
}
.footer {
padding-inline-start: var(--footer-start-padding, 16px);
padding-inline-end: var(--footer-start-padding, 16px);
padding-top: var(--footer-padding-top, 0);
padding-bottom: var(--footer-padding-bottom, 4px);
margin-top: 16px;
font-size: var(--footer-font-size, ${d.sNp});
line-height: var(--footer-line-height, ${d.vgC});
}
.footer,
.start-actions,
.end-actions {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
color: ${d.Q5n};
fill: ${d.Q5n};
}
:host([layout=${f}]) .footer {
position: absolute;
bottom: 24px;
padding: 0 24px;
margin-top: unset;
width: 268px;
padding-inline-start: 24px;
padding-inline-end: 24px;
}
.footer__hidden {
display: none;
}
.heading-wrapper {
grid-row: 1;
display: flex;
flex-direction: column;
}
.heading-wrapper a:after {
content: "";
height: 304px;
position: absolute;
width: 300px;
z-index: 1;
}
:host([layout=${f}]) .heading-wrapper a:after {
top: -52px;
}
:host([layout=${m}]) .heading-wrapper a:after {
top: -38px;
}
.media {
display: flex;
flex-direction: row;
position: absolute;
}
:host([layout=${m}]) .media {
bottom: 4px;
}
:host([layout=${f}]) .media {
top: 8px;
}
:host([image-priority]) .body {
grid-template-columns: 1;
}
:host([image-priority]) .media-wrapper {
grid-row: 1;
grid-column: span 2;
margin: 0;
display: flex;
justify-content: center;
}
:host([image-priority]) .heading-container {
grid-row: 2;
grid-column: span 2;
padding-inline-start: var(--heading-start-padding, 16px);
padding-inline-end: var(--heading-end-padding, 16px);
}
:host([layout=${m}]) .heading-container {
top: 39px;
position: absolute;
}
::slotted([slot="start-actions"]),
::slotted([slot="end-actions"]){
z-index: 2;
display: grid;
gap: 5px;
align-items: center;
grid-auto-flow: column;
}
:host([layout=${f}]) ::slotted([slot="call-to-action"]) {
top: 230px;
}
:host([layout=${m}]) ::slotted([slot="call-to-action"]) {
top: -40px;
}
::slotted([slot="call-to-action"]) {
width: calc(100% - 32px);
grid-row: 3;
grid-column: 1 / span 2;
margin: 0 24px;
}
::slotted(fluent-button[slot="start-actions"]),
::slotted(fluent-button[slot="end-actions"]) {
color: ${d.Q5n};
fill: ${d.Q5n};
}
.heading {
-webkit-box-orient: vertical;
-webkit-line-clamp: var(--heading-max-lines, 2);
color: ${d.CHi};
display: -webkit-box;
font-size: var(--heading-font-size, ${d.PwC});
font-weight: 600;
line-height: var(--heading-line-height, ${d.b3W});
outline: none;
overflow: hidden;
text-decoration: none;
white-space: initial;
}
.mask {
display: none;
}
.heading:hover,
.heading:${s.b} {
text-decoration: underline;
}
@media (prefers-color-scheme: dark) {
.heading-gradient-background {
background: ${y};
}
}
@media (prefers-color-scheme: light) {
.heading-gradient-background {
background: ${w};
}
}
.heading-gradient-background {
border-radius: calc(${d.rSr} * 1px);
box-shadow: 0 0 calc((var(--elevation) * 0.225px) + 2px) rgba(0, 0, 0, calc(0.11 * (2 - var(--background-luminance, 1)))), 0 calc(var(--elevation) * 0.4px) calc((var(--elevation) * 0.9px)) rgba(0, 0, 0, calc(0.13 * (2 - var(--background-luminance, 1))));
height: 252px;
left: 8px;
position: absolute;
width: 300px;
}
:host([layout=${m}]) .heading-gradient-background {
top: 8px;
}
:host([layout=${f}]) .heading-gradient-background {
bottom: 8px;
}
:host([layout=${f}]) .heading-gradient-background .heading {
padding-top: 137px;
padding-right: 16px;
}
.heading::after {
bottom: 0;
content: "";
left: 0;
position: absolute;
right: 0;
top: 0;
}
`),L=C(u.i`
:host([layout=${b}]) span.title_1x_2y,
:host([layout=${b}]) span.title_1x_3y {
font-size: 20px;
}
:host([layout=${b}]) .heading-wrapper {
grid-row: 1;
display: flex;
flex-direction: column;
}
:host([layout=${b}]) .heading-wrapper a:after {
content: "";
height: 304px;
position: absolute;
width: 300px;
z-index: 1;
}
:host([layout=${b}]) .heading {
overflow: hidden;
text-decoration: none;
font-size: 20px;
line-height: 28px;
width: 121px;
margin-top: 14px;
overflow-wrap: break-word;
}
:host([layout=${b}][document-direction="rightToLeft"]) .heading-wrapper a:after{
left: 0px;
}
:host([layout=${b}][document-direction="rightToLeft"]) .heading {
margin-right: 179px;
}
:host([layout=${b}][heading-max-lines="eight-lines-heading"]) .heading{
--heading-max-lines: 8;
}
:host([layout=${b}][heading-max-lines="five-lines-heading"]) .heading{
--heading-max-lines: 5;
}
:host([layout=${b}]) ::slotted([slot="call-to-action"]) {
width: 102px;
top: 175px;
position: absolute;
}
:host([layout=${b}][document-direction="rightToLeft"]) ::slotted([slot="call-to-action"]){
left: 16px;
}
:host([layout=${b}]) .media-wrapper {
top: 57px;
left: 162px;
position: absolute;
width: 113px;
height: 202px;
}
:host([layout=${b}][document-direction="rightToLeft"]) .media-wrapper{
left: 178px;
}
:host([layout=${b}]) .heading:hover,
:host([layout=${b}]) .heading:${s.b} {
text-decoration: underline;
}
@media (prefers-color-scheme: dark) {
:host([layout=${b}]) .heading-gradient-background {
background: ${y};
}
:host([layout=${b}]) ::slotted([slot="call-to-action"]),
:host([layout=${b}]) ::slotted([slot="start-actions"]),
:host([layout=${b}]) .heading {
color: #ffffff;
}
}
@media (prefers-color-scheme: light) {
:host([layout=${b}]) .heading-gradient-background {
background: ${w};
}
:host([layout=${b}]) ::slotted([slot="call-to-action"]),
:host([layout=${b}]) ::slotted([slot="start-actions"]),
:host([layout=${b}]) .heading {
color: #222222;
}
}
:host([layout=${b}]) .heading-gradient-background {
border-radius: calc(${d.rSr} * 1px);
box-shadow: 0 0 calc((var(--elevation) * 0.225px) + 2px) rgba(0, 0, 0, calc(0.11 * (2 - var(--background-luminance, 1)))), 0 calc(var(--elevation) * 0.4px) calc((var(--elevation) * 0.9px)) rgba(0, 0, 0, calc(0.13 * (2 - var(--background-luminance, 1))));
height: 304px;
left: 8px;
position: absolute;
width: 241px;
top: 8px;
}
:host([layout=${b}][document-direction="rightToLeft"]) .heading-gradient-background{
margin-left: 16px;
}
:host([layout=${b}]) .footer {
display: flex;
position: absolute;
bottom: 16px;
width: 209px;
left: 4px;
}
:host([layout=${b}][document-direction="rightToLeft"]) .footer{
right: 55px;
}
:host([layout=${b}]) ::slotted([slot="start-actions"]) {
position: unset;
z-index: 2;
gap: 8px;
align-items: center;
grid-auto-flow: column;
}
:host([layout=${b}]) .start-actions {
width: 127px;
}
`),k=C(u.i`
:host([layout=${v}]) span.title_1x_2y,
:host([layout=${v}]) span.title_1x_3y {
font-size: 20px;
}
:host([layout=${v}]) .heading-wrapper{
content: "";
height: 304px;
position: absolute;
width: 300px;
z-index: 1;
}
:host([layout=${v}][document-direction="rightToLeft"]) .heading-wrapper{
left: 0px;
}
:host([layout=${v}][document-direction="rightToLeft"]) .heading {
margin-right: 179px;
}
:host([layout=${v}]) .heading {
overflow: hidden;
text-decoration: none;
font-size: 20px;
line-height: 28px;
width: 121px;
margin-top: 14px;
overflow-wrap: break-word;
}
:host([layout=${v}][heading-max-lines="eight-lines-heading"]) .heading{
--heading-max-lines: 8;
}
:host([layout=${v}][heading-max-lines="five-lines-heading"]) .heading{
--heading-max-lines: 5;
}
:host([layout=${v}]) ::slotted([slot="call-to-action"]) {
width: 102px;
top: 175px;
left: 0px;
}
:host([layout=${v}][document-direction="rightToLeft"]) ::slotted([slot="call-to-action"]){
left: 16px;
}
:host([layout=${v}]) .media-wrapper {
top: 31px;
left: 162px;
position: absolute;
width: 113px;
height: 202px;
}
:host([layout=${v}][document-direction="rightToLeft"]) .media-wrapper{
left: 178px;
}
:host([layout=${v}]) .heading:hover,
:host([layout=${v}]) .heading:${s.b} {
text-decoration: underline;
}
@media (prefers-color-scheme: dark) {
:host([layout=${v}]) .heading-gradient-background {
background: ${y};
}
:host([layout=${v}]) ::slotted([slot="call-to-action"]),
:host([layout=${v}]) ::slotted([slot="start-actions"]),
:host([layout=${v}]) .heading {
color: #ffffff;
}
}
@media (prefers-color-scheme: light) {
:host([layout=${v}]) .heading-gradient-background {
background: ${w};
}
:host([layout=${v}]) ::slotted([slot="call-to-action"]),
:host([layout=${v}]) ::slotted([slot="start-actions"]),
:host([layout=${v}]) .heading {
color: #222222;
}
}
:host([layout=${v}]) .heading-gradient-background {
border-radius: calc(${d.rSr} * 1px);
box-shadow: 0 0 calc((var(--elevation) * 0.225px) + 2px) rgba(0, 0, 0, calc(0.11 * (2 - var(--background-luminance, 1)))), 0 calc(var(--elevation) * 0.4px) calc((var(--elevation) * 0.9px)) rgba(0, 0, 0, calc(0.13 * (2 - var(--background-luminance, 1))));
height: 304px;
left: 8px;
position: absolute;
width: 241px;
top: 8px;
}
:host([layout=${v}][document-direction="rightToLeft"]) .heading-gradient-background{
margin-left: 16px;
}
:host([layout=${v}]) .footer {
display: flex;
position: absolute;
bottom: 16px;
left: 8px;
width: 209px;
}
:host([layout=${v}][document-direction="rightToLeft"]) .footer{
right: 55px;
}
:host([layout=${v}]) ::slotted([slot="start-actions"]) {
position: unset;
z-index: 2;
gap: 8px;
align-items: center;
grid-auto-flow: column;
}
:host([layout=${v}]) .start-actions {
width: 127px;
}
`),S=C(u.i`
:host([layout=${x}]) span.title_1x_2y,
:host([layout=${x}]) span.title_1x_3y {
font-size: 20px;
}
:host([layout=${x}]) .heading-wrapper{
content: "";
height: 304px;
position: absolute;
width: 300px;
z-index: 1;
}
:host([layout=${x}][document-direction="rightToLeft"]) .heading-wrapper{
left: 0px;
}
:host([layout=${x}][document-direction="rightToLeft"]) .heading {
margin-right: 179px;
}
:host([layout=${x}]) .heading {
overflow: hidden;
text-decoration: none;
font-size: 20px;
line-height: 28px;
width: 121px;
margin-top: 14px;
overflow-wrap: break-word;
}
:host([layout=${x}][heading-max-lines="eight-lines-heading"]) .heading{
--heading-max-lines: 8;
}
:host([layout=${x}][heading-max-lines="five-lines-heading"]) .heading{
--heading-max-lines: 5;
}
:host([layout=${x}]) ::slotted([slot="call-to-action"]) {
width: 102px;
top: 175px;
left: 0px;
}
:host([layout=${x}][document-direction="rightToLeft"]) ::slotted([slot="call-to-action"]){
left: 16px;
}
:host([layout=${x}]) .media-wrapper {
position: absolute;
width: 141px;
height: 250px;
right: 8px;
top: 8px;
}
:host([layout=${x}][document-direction="rightToLeft"]) .media-wrapper{
left: 178px;
}
:host([layout=${x}]) .heading:hover,
:host([layout=${x}]) .heading:${s.b} {
text-decoration: underline;
}
@media (prefers-color-scheme: dark) {
:host([layout=${x}]) .heading-gradient-background {
background: ${y};
}
:host([layout=${x}]) ::slotted([slot="call-to-action"]),
:host([layout=${x}]) ::slotted([slot="start-actions"]),
:host([layout=${x}]) .heading {
color: #ffffff;
}
}
@media (prefers-color-scheme: light) {
:host([layout=${x}]) .heading-gradient-background {
background: ${w};
}
:host([layout=${x}]) ::slotted([slot="call-to-action"]),
:host([layout=${x}]) ::slotted([slot="start-actions"]),
:host([layout=${x}]) .heading {
color: #222222;
}
}
:host([layout=${x}]) .heading-gradient-background {
border-radius: calc(${d.rSr} * 1px);
box-shadow: 0 0 calc((var(--elevation) * 0.225px) + 2px) rgba(0, 0, 0, calc(0.11 * (2 - var(--background-luminance, 1)))), 0 calc(var(--elevation) * 0.4px) calc((var(--elevation) * 0.9px)) rgba(0, 0, 0, calc(0.13 * (2 - var(--background-luminance, 1))));
height: 304px;
left: 8px;
position: absolute;
width: 300px;
top: 8px;
}
:host([layout=${x}][document-direction="rightToLeft"]) .heading-gradient-background{
margin-left: 16px;
}
:host([layout=${x}]) .footer {
display: flex;
position: absolute;
bottom: 16px;
left: 8px;
width: 268px;
}
:host([layout=${x}][document-direction="rightToLeft"]) .footer{
right: 0px;
}
:host([layout=${x}][document-direction="rightToLeft"]) ::slotted([slot="end-actions"]) {
margin-left: 8px;
}
:host([layout=${x}]) ::slotted([slot="start-actions"]) {
position: unset;
z-index: 2;
gap: 8px;
align-items: center;
grid-auto-flow: column;
}
`);var _=i(49218),T=i(41472),M=i(99026),A=i(95185),F=i(93703),I=i(47548);const j=_.d`
`,E=_.d`
e.handleBackgroundImageContentChange()}
>
${(0,F.g)((e=>e.layout===o.imageAtBottom),j)}
${(0,F.g)((e=>{var t;return(null===(t=e.mediaNodes)||void 0===t?void 0:t.length)>0}),_.d`
`)}
${(0,F.g)((e=>e.layout!==o.imageAtBottom),j)}
`;let O=class extends g{};O=(0,n.gn)([(0,c.M)({name:"msn-z-index-card",template:E,styles:[$,k,L,S],shadowOptions:{delegatesFocus:!0}})],O)},33497:function(e,t,i){var o=i(33940),n=i(83227),a=i(53076),r=i(8158);r.n.registerExperience(n.x.entryPointHpWC,(()=>Promise.resolve().then(i.bind(i,28812)))),r.n.registerExperience(n.x.homepageHeader,(()=>Promise.resolve().then(i.bind(i,38993)))),r.n.registerExperience(n.x.stripeWC,(()=>Promise.resolve().then(i.bind(i,67925)))),r.n.registerExperience(n.x.autosMarketplaceCard,(()=>i.e("experiences_autos-marketplace-card_dist_index_js").then(i.bind(i,75267)))),r.n.registerExperience(n.x.breakingNewsWC,(()=>i.e("experiences_breaking-news-wc_dist_index_js").then(i.bind(i,31961)))),r.n.registerExperience(n.x.cardActionWC,(()=>i.e("experiences_card-action-wc_dist_index_js").then(i.bind(i,97249)))),r.n.registerExperience(n.x.conditionalBannerHpWC,(()=>i.e("experiences_conditional-banner-hp-wc_dist_index_js").then(i.bind(i,93542)))),r.n.registerExperience(n.x.denseCard,(()=>i.e("experiences_dense-card_dist_index_js").then(i.bind(i,19283)))),r.n.registerExperience(n.x.displayAdsWC,(()=>i.e("experiences_display-ads-wc_dist_index_js").then(i.bind(i,86514)))),r.n.registerExperience(n.x.feedbackDialogWC,(()=>i.e("experiences_feedback-dialog-wc_dist_index_js").then(i.bind(i,81341)))),r.n.registerExperience(n.x.feedNavigationHp,(()=>i.e("experiences_feed-navigation-hp_dist_index_js").then(i.bind(i,90102)))),r.n.registerExperience(n.x.homepageFooter,(()=>i.e("experiences_homepage-footer_dist_index_js").then(i.bind(i,76602)))),r.n.registerExperience(n.x.interestsWC,(()=>i.e("experiences_interests-wc_dist_index_js").then(i.bind(i,34536)))),r.n.registerExperience(n.x.languageToggleWC,(()=>i.e("experiences_language-toggle-wc_dist_index_js").then(i.bind(i,15362)))),r.n.registerExperience(n.x.mailSignoutBanner,(()=>i.e("experiences_mail-signout-banner_dist_index_js").then(i.bind(i,5044)))),r.n.registerExperience(n.x.meStripeWC,(()=>i.e("experiences_me-stripe-wc_dist_index_js").then(i.bind(i,65733)))),r.n.registerExperience(n.x.moneyInfoCardWC,(()=>Promise.all([i.e("libs_finance-service-library_dist_redux_FinanceData_connector_js-node_modules_lodash-es_round_js"),i.e("experiences_money-info-card-wc_dist_index_js-node_modules_crypto-js_enc-base64_js")]).then(i.bind(i,44262)))),r.n.registerExperience(n.x.msRewardsWC,(()=>i.e("experiences_ms-rewards-wc_dist_index_js").then(i.bind(i,51727)))),r.n.registerExperience(n.x.notificationBellWC,(()=>i.e("notification-bell-wc").then(i.bind(i,63273)))),r.n.registerExperience(n.x.pageRefreshWC,(()=>i.e("experiences_page-refresh-wc_dist_index_js").then(i.bind(i,51360)))),r.n.registerExperience(n.x.pollsCardWC,(()=>i.e("experiences_polls-card-wc_dist_index_js").then(i.bind(i,70667)))),r.n.registerExperience(n.x.recommendedSitesWC,(()=>i.e("experiences_recommended-sites-wc_dist_index_js").then(i.bind(i,35733)))),r.n.registerExperience(n.x.searchHistoryEdgeNextWC,(()=>i.e("experiences_search-history-edgenext-wc_dist_index_js").then(i.bind(i,17160)))),r.n.registerExperience(n.x.shoppingCarouselWC,(()=>i.e("experiences_shopping-carousel-wc_dist_index_js").then(i.bind(i,8199)))),r.n.registerExperience(n.x.superappUpsellCardWC,(()=>i.e("experiences_superapp-upsell-card_dist_index_js").then(i.bind(i,56651)))),r.n.registerExperience(n.x.superappBannerWC,(()=>i.e("experiences_superapp-banner-wc_dist_index_js").then(i.bind(i,88012)))),r.n.registerExperience(n.x.toastWC,(()=>i.e("experiences_toast-wc_dist_index_js").then(i.bind(i,37578)))),r.n.registerExperience(n.x.trendingNowWC,(()=>i.e("experiences_trending-now-wc_dist_index_js").then(i.bind(i,16463)))),r.n.registerExperience(n.x.videoCardWC,(()=>Promise.all([i.e("web-components_content-video-player_dist_index_js"),i.e("experiences_video-card-wc_dist_index_js")]).then(i.bind(i,11752)))),r.n.registerExperience(n.x.weatherCardWC,(()=>Promise.all([i.e("libs_icons-wc_icons_AqiIcon_svg-libs_icons-wc_icons_ArrowDownSimple_svg-libs_icons-wc_icons_B-72b1d9"),i.e("weather-card-wc")]).then(i.bind(i,84781)))),r.n.registerExperience(n.x.weatherTodayMiniWC,(()=>i.e("weather-today-mini-wc").then(i.bind(i,17014)))),r.n.registerExperience(n.x.welcomeGreetingWC,(()=>Promise.all([i.e("libs_icons-wc_icons_AqiIcon_svg-libs_icons-wc_icons_ArrowDownSimple_svg-libs_icons-wc_icons_B-72b1d9"),i.e("welcome-greeting-wc")]).then(i.bind(i,23986)))),r.n.registerExperience(n.x.viewsNativeAd,(()=>i.e("experiences_views-native-ad_dist_index_js").then(i.bind(i,88233)))),r.n.registerExperience(n.x.yandexSearchBoxWC,(()=>i.e("experiences_yandex-search-box-wc_dist_index_js").then(i.bind(i,15679)))),r.n.registerExperience(n.x.socialBarWC,(()=>i.e("lazy").then(i.bind(i,32860)))),r.n.registerExperience(a.z.ExperienceTrackerHomePageData,(()=>Promise.resolve().then(i.bind(i,84110)))),r.n.registerExperience(a.z.AdsManager,(()=>i.e("libs_ads-manager_dist_index_js").then(i.bind(i,71758)))),r.n.registerExperience(a.z.CategoryData,(()=>i.e("libs_category-data-connector_dist_index_js").then(i.bind(i,51858)))),r.n.registerExperience(a.z.DisplayAdsManager,(()=>i.e("libs_display-ads-manager_dist_index_js").then(i.bind(i,76802)))),r.n.registerExperience(a.z.FeedbackData,(()=>i.e("libs_feedback-data-connector_dist_index_js").then(i.bind(i,82502)))),r.n.registerExperience(a.z.IrisData,(()=>i.e("libs_iris-data-connector_dist_index_js").then(i.bind(i,86977)))),r.n.registerExperience(a.z.RewardsData,(()=>i.e("libs_rewards-data-connector_dist_index_js").then(i.bind(i,98369)))),r.n.registerExperience(a.z.NavigationData,(()=>i.e("libs_navigation-data-connector_dist_index_js").then(i.bind(i,44506)))),r.n.registerExperience(a.z.PlacementManager,(()=>i.e("libs_placement-manager_dist_index_js").then(i.bind(i,41953)))),r.n.registerExperience(a.z.SmartListSharedData,(()=>i.e("libs_smartlist-shared-data_dist_index_js").then(i.bind(i,37051)))),r.n.registerExperience(a.z.TelemetryData,(()=>i.e("libs_telemetry-data-connector_dist_index_js").then(i.bind(i,43381)))),r.n.registerExperience(a.z.WeatherData,(()=>i.e("libs_weather-data-connector_dist_index_js").then(i.bind(i,7123)))),r.n.registerExperience(n.x.nativeAdWC,(()=>i.e("native-ad-wc").then(i.bind(i,68877)))),r.n.registerExperience(n.x.reactionBreakdownDialog,(()=>i.e("reaction-breakdown-dialog").then(i.bind(i,76830)))),r.n.registerExperience(n.x.superListCard,(()=>i.e("super-list-card").then(i.bind(i,39519)))),r.n.registerExperience(n.x.contentGroup,(()=>i.e("content-group").then(i.bind(i,61943)))),r.n.registerExperience(n.x.gridViewFeed,(()=>i.e("grid-view-feed").then(i.bind(i,71762)))),r.n.registerExperience(n.x.entryPointHpMobile,(()=>i.e("entry-point-hp-mobile").then(i.bind(i,28287))));var s,d=i(12315),l=i(24316),c=i(33799),p=i(33954),h=i(20390),g=i(86904),u=i(54738),m=i(21050),f=i(14752),v=i(68364),b=i(26415),x=i(44979),y=i(54804),w=i(2278),C=i(16517),$=i(94788),L=i(84786),k=i(16078),S=i(40715),_=i(73015),T=i(16776),M=i(98358),A=i(75367),F=i(65135),I=i(75816),j=i(69973),E=i(8218),O=i(61810),B=i(84336),D=i(99064),H=i(37457),z=i(22369),P=i(51908),R=i(72344),N=i(22726),V=i(79159);!function(e){e[e.sunday=0]="sunday",e[e.monday=1]="monday",e[e.tuesday=2]="tuesday",e[e.wednesday=3]="wednesday",e[e.thursday=4]="thursday",e[e.friday=5]="friday",e[e.saturday=6]="saturday"}(s||(s={}));class U{constructor(){this.expValidatorMap=new Map,this.hideModuleForCurrentDay=e=>{if(!e||!e.allowedDays||!e.allowedDays.length)return!1;const t=(new Date).getDay();return!e.allowedDays.find((e=>s[t]===e.toLocaleLowerCase()))},this.setValidators()}getAllValidators(){return this.expValidatorMap}setValidators(){this.expValidatorMap.set("dayOfWeekValidator",this.hideModuleForCurrentDay)}}var Z=i(88828),W=i(14989),G=i(58155);class q{static trackCallbacks(){switch((0,Z.Bn)().currentColumnArrangement){case W.K$.c1:case W.K$.c2:q.viewType="size2column";break;case W.K$.c3:q.viewType="size3column";break;case W.K$.c4:q.viewType="size4column"}return q.viewType}static getTelemetryProperties(e,t,i,o){const n=!("false"===G.c.getQueryParameterByName("enableTrack",o)),a=G.c.getQueryParameterByName("ocid",o),r=C.jG.ActivityIdLowerCaseNoHypens;let s="0",d="False";if(y.Al&&y.Al.ClientSettings){const e=y.Al.ClientSettings;"true"===e.static_page&&(d="True"),s=e.browser&&"true"===e.browser.ismobile||e.deviceFormFactor===j.p.Phone?"1":"0"}const l=C.jG.CurrentRequestTargetScope&&C.jG.CurrentRequestTargetScope.pageExperiments?C.jG.CurrentRequestTargetScope.pageExperiments.join(","):void 0,c=Object.assign(Object.assign({},t),{activityId:r,autoRefresh:"0",canvas:"Browser",channel:"homepage",dDgk:"unknown",dImd:s,domainId:"13041",enable:n,environment:C.jG.Environment,flightid:l,isSignedIn:i?"True":"False",isStaticPage:d,localeCode:C.jG.CurrentMarket,pageName:"startpage",pageProduct:"prime",pageTitle:e.document.title,pageUrl:e.document.URL,serverImpressionGuid:r,tmpl:"",afd:""});return a&&(c.msnocid=a),c}static getPageTelemetryContract(e,t,i,o,n,a){return{page:{appType:C.jG.AppType,name:e.pageName,config:e.pageConfiguration,product:e.pageProduct,type:e.pageType,isJSEnabled:!0,isAutoRefresh:!1,isStatic:t,url:a,canvas:e.canvas,ocid:e.msnocid||e.storeocid,isAdEnabled:!1,content:{vertical:e.vertical,category:e.department,title:window.document.title,id:"",domainId:e.domainId},viewType:this.trackCallbacks()},flight:{id:C.jG.CurrentRequestTargetScope&&C.jG.CurrentRequestTargetScope.pageExperiments&&C.jG.CurrentRequestTargetScope.pageExperiments.join(",")},locale:{mkt:C.jG.CurrentMarket},browser:{isMobile:i,deviceGroup:"unknown"},user:{isSignedIn:o,isSso:!1,aadState:n?c.mv.AadAccount:c.mv.NonAadAccount}}}}var X=i(36478),Q=i(52144),K=i(93450),J=i(76950),Y=i(53377),ee=i(32804),te=i(59997),ie=i(65308),oe=i(64209),ne=i(40339),ae=i(19112),re=i(52704),se=i(83290),de=i(59230);const le=new x.fH,ce=(0,x.Nd)(le.data.locationHref,"locationHref");(0,p.E)(new h.M(ce)),(0,g.z)(ce,u.Im,y.Al);const pe=(0,m.oA)("entryPoint","entryPoint"),he=pe&&pe.startMeasure("init").endMeasure;(0,w.HB)(),(0,o.mG)(void 0,void 0,void 0,(function*(){var e;try{re.L.registerDefaultStyleTarget(),ee.o7V.withDefault(document.dir),(0,de.Z)();const t=(0,H.$)(y.Al.ClientSettings.domain,C.jG.Environment,C.jG.IsChinaCompliance,!1);(0,F.uZ)(new z.o({anonCookieName:"anon",trackingSystems:t,autoCaptureContentView:!1}));const i=y.Al.ClientSettings&&"true"===y.Al.ClientSettings.static_page?"True":"False";F.M0.initPage({page:{url:ce,isStatic:i}},C.jG.ActivityIdLowerCaseNoHypens,C.jG.BuildVersion,C.jG.FrontDoorMuid),window.onerror=null,(0,$.rh)(F.M0.sendAppErrorEvent.bind(F.M0));const o=K._.getInstance();(0,X.Q)();const n=(0,T.n)(o.rootReducer,o.store,le);new M.m(a.z.MilestoneData,"",o.rootReducer,new A.c,o.store,void 0,le),new B.D(a.z.SmartListSharedData,"",o.rootReducer,new D.V,o.store,void 0,le),new d.f(a.z.WindowsPageSettings,"",o.rootReducer,new l.I,o.store,{shouldRefreshToWindowsHomePage:!1},le),(0,oe.jA)(),o.start(),P.j.registerAppValidator(new U),f.A.singleMark("EntryPointHpWCConfig-start"),L.U.initialize(F.M0.sendAppErrorEvent.bind(F.M0));const r=(yield L.U.getConfig((0,ae.j)())).properties.rootExperience.configRef,s=(yield L.U.getConfig(r)).properties;f.A.singleMark("EntryPointHpWCConfig-end"),s&&s.useOneServiceAnonAuthEndpoints&&(C.jG.UseOneServiceAnonAuthEndpoints=s.useOneServiceAnonAuthEndpoints),new N.w(a.z.ExperienceTrackerHomePageData,"",o.rootReducer,new V.P,o.store,void 0,le).initialize();const p=n.getCurrentState().signedIn,h=q.getTelemetryProperties(window,s.track,p===c.Hy.SignedIn,ce);h.enable||F.M0.disableTrackingSystem(I.G.All),Q.A.get(Q.U.CookieConsentStatus)!==R._.NotRequired&&(F.M0.disableTrackingSystem(I.G.CTag),F.M0.disableTrackingSystem(I.G.Comscore));let g=!1,u=!1;if(y.Al&&y.Al.ClientSettings){const e=y.Al.ClientSettings;u="true"===e.static_page,g=e.browser&&"true"===e.browser.ismobile||e.deviceFormFactor===j.p.Phone}const m=(0,ne.xQ)(),v=p===c.Hy.SignedIn&&m!==c.Qm.AAD,b=C.jG.isAadAccountUser||m===c.Qm.AAD;let x,w;if(g)x=[0,700],w=new Map([[W.K$.c1,0],[W.K$.c2,700]]);else if(x=[0,0,995,1325],w=new Map([[W.K$.c1,0],[W.K$.c2,0],[W.K$.c3,995],[W.K$.c4,1325]]),s.enableFifthColumn){const e=1567;C.jG.EnableFiveColLayout=!0,x.push(e),w.set(W.K$.c5,e)}(0,Z.Bn)().breakpoints=x,(0,W.q7)(w);const G=q.getPageTelemetryContract(h,h.isStaticPage,g,v,b,ce);F.M0.addOrUpdateCustomProperty("prg-refs",`{ refA: ${C.jG.ActivityIdLowerCaseNoHypens}, refC: ${y.Al.ClientSettings.pageGenTime}}`),F.M0.updatePageMetadata(G);const pe=null===(e=null===C.jG||void 0===C.jG?void 0:C.jG.HostPage)||void 0===e?void 0:e.originalUrl.split("?")[0],ge=s&&s.initialPageTitle?s.initialPageTitle:"MSN",ue=s&&s.description?s.description:"Your customizable and curated collection of the best in trusted news.",me=s&&s.contentImageUrl?s.contentImageUrl:"https://assets.msn.com/staticsb/statics/latest/homepage/msn-logo.svg";document.title=ge,(0,ie.Pi)("sharing_url",pe),(0,ie.Pi)("og:url",pe),(0,ie.Pi)("og:title",ge),(0,ie.Pi)("twitter:card","summary_large_image"),(0,ie.Pi)("og:type","website"),(0,ie.Pi)("og:site_name","MSN"),(0,ie.Pi)("og:image",me),(0,ie.KJ)("robots","index, follow"),(0,ie.KJ)("description",ue),C.jG.TrackInfo={sitePage:{page_product:"prime",page_type:y.Al.ClientSettings.pagetype}},window.location.host.startsWith("localhost")||(0,E.Z)("/homepage/service-worker.js",s.serviceWorker,(0,O.b)(0),!1,(()=>{})),he&&he();const fe={experienceTrackerNamespace:a.z.ExperienceTrackerHomePageData},ve=location.search.includes("AR=");F.M0.sendPageView({page:{url:ce,isAutoRefresh:ve}},!0);const be={instanceId:r.experienceType,configRef:r},xe=(0,J.ITY)(be.configRef.experienceType);f.A.startMark("EntryPointHpWC.Render");const ye=document.createElement("fluent-design-system-provider");ye.direction="rtl"===y.Al.MarketDir?te.N.rtl:te.N.ltr,ye.setAttribute("fill-color",_.E4.MAIN);const we=document.createElement(xe);we.setAttribute("config-instance-src","default"),we.setAttribute("instance-id",be.instanceId),we.initProps=fe,ye.appendChild(we),yield(0,Y.Fg)(be),document.body.appendChild(ye),s.enableAdBlockerDetectorAsync&&(se.Z.executeDetector(),F.M0.updatePageMetadata({page:{hasAdBlocker:se.Z.getAdbStatus()}},!0)),s.enableAdBlockerDetector&&(yield se.Z.executeDetector(),F.M0.updatePageMetadata({page:{hasAdBlocker:se.Z.getAdbStatus()}},!0)),f.A.endMark("EntryPointHpWC.Render")}catch(e){(0,v.OO)(e,b.YEd.HomePageErrorPage,"Error during app initialize.")}finally{(0,k.D)(F.M0.sendAppErrorEvent),(0,S.g)(F.M0.sendAppErrorEvent)}}))},50937:function(e,t,i){function o(e){return e.split("-")[0]}function n(e){return e.split("-")[1]}function a(e){return["top","bottom"].includes(o(e))?"x":"y"}function r(e){return"y"===e?"height":"width"}function s(e,t,i){let{reference:s,floating:d}=e;const l=s.x+s.width/2-d.width/2,c=s.y+s.height/2-d.height/2,p=a(t),h=r(p),g=s[h]/2-d[h]/2,u="x"===p;let m;switch(o(t)){case"top":m={x:l,y:s.y-d.height};break;case"bottom":m={x:l,y:s.y+s.height};break;case"right":m={x:s.x+s.width,y:c};break;case"left":m={x:s.x-d.width,y:c};break;default:m={x:s.x,y:s.y}}switch(n(t)){case"start":m[p]-=g*(i&&u?-1:1);break;case"end":m[p]+=g*(i&&u?-1:1)}return m}i.d(t,{Cp:function(){return L},JB:function(){return c},RR:function(){return w},dp:function(){return _},oo:function(){return d},uY:function(){return S}});const d=async(e,t,i)=>{const{placement:o="bottom",strategy:n="absolute",middleware:a=[],platform:r}=i,d=a.filter(Boolean),l=await(null==r.isRTL?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:n}),{x:p,y:h}=s(c,o,l),g=o,u={},m=0;for(let i=0;i
m[e]))}function v(e,t,i){void 0===i&&(i=!1);const o=n(e),s=a(e),d=r(s);let l="x"===s?o===(i?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[d]>t.floating[d]&&(l=f(l)),{main:l,cross:f(l)}}const b={start:"end",end:"start"};function x(e){return e.replace(/start|end/g,(e=>b[e]))}const y=["top","right","bottom","left"],w=(y.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]),function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var i;const{placement:n,middlewareData:a,rects:r,initialPlacement:s,platform:d,elements:l}=t,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:g,fallbackStrategy:u="bestFit",flipAlignment:m=!0,...b}=e,y=o(n),w=g||(y!==s&&m?function(e){const t=f(e);return[x(e),t,x(t)]}(s):[f(s)]),C=[s,...w],$=await p(t,b),L=[];let k=(null==(i=a.flip)?void 0:i.overflows)||[];if(c&&L.push($[y]),h){const{main:e,cross:t}=v(n,r,await(null==d.isRTL?void 0:d.isRTL(l.floating)));L.push($[e],$[t])}if(k=[...k,{placement:n,overflows:L}],!L.every((e=>e<=0))){var S,_;const e=(null!=(S=null==(_=a.flip)?void 0:_.index)?S:0)+1,t=C[e];if(t)return{data:{index:e,overflows:k},reset:{placement:t}};let i="bottom";switch(u){case"bestFit":{var T;const e=null==(T=k.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:T[0].placement;e&&(i=e);break}case"initialPlacement":i=s}if(n!==i)return{reset:{placement:i}}}return{}}}});function C(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function $(e){return y.some((t=>e[t]>=0))}const L=function(e){let{strategy:t="referenceHidden",...i}=void 0===e?{}:e;return{name:"hide",async fn(e){const{rects:o}=e;switch(t){case"referenceHidden":{const t=C(await p(e,{...i,elementContext:"reference"}),o.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:$(t)}}}case"escaped":{const t=C(await p(e,{...i,altBoundary:!0}),o.floating);return{data:{escapedOffsets:t,escaped:$(t)}}}default:return{}}}}};function k(e){return"x"===e?"y":"x"}const S=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:i,y:n,placement:r}=t,{mainAxis:s=!0,crossAxis:d=!1,limiter:l={fn:e=>{let{x:t,y:i}=e;return{x:t,y:i}}},...c}=e,h={x:i,y:n},g=await p(t,c),m=a(o(r)),f=k(m);let v=h[m],b=h[f];if(s){const e="y"===m?"bottom":"right";v=u(v+g["y"===m?"top":"left"],v,v-g[e])}if(d){const e="y"===f?"bottom":"right";b=u(b+g["y"===f?"top":"left"],b,b-g[e])}const x=l.fn({...t,[m]:v,[f]:b});return{...x,data:{x:x.x-i,y:x.y-n}}}}},_=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:i,rects:a,platform:r,elements:s}=t,{apply:d=(()=>{}),...l}=e,c=await p(t,l),h=o(i),u=n(i);let m,f;"top"===h||"bottom"===h?(m=h,f=u===(await(null==r.isRTL?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(f=h,m="end"===u?"top":"bottom");const v=g(c.left,0),b=g(c.right,0),x=g(c.top,0),y=g(c.bottom,0),w={availableHeight:a.floating.height-(["left","right"].includes(i)?2*(0!==x||0!==y?x+y:g(c.top,c.bottom)):c[m]),availableWidth:a.floating.width-(["top","bottom"].includes(i)?2*(0!==v||0!==b?v+b:g(c.left,c.right)):c[f])};await d({...t,...w});const C=await r.getDimensions(s.floating);return a.floating.width!==C.width||a.floating.height!==C.height?{reset:{rects:!0}}:{}}}}},50123:function(e,t,i){i.d(t,{Me:function(){return j},oo:function(){return E}});var o=i(50937);function n(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function a(e){if(null==e)return window;if(!n(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function r(e){return a(e).getComputedStyle(e)}function s(e){return n(e)?"":e?(e.nodeName||"").toLowerCase():""}function d(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function l(e){return e instanceof a(e).HTMLElement}function c(e){return e instanceof a(e).Element}function p(e){return"undefined"!=typeof ShadowRoot&&(e instanceof a(e).ShadowRoot||e instanceof ShadowRoot)}function h(e){const{overflow:t,overflowX:i,overflowY:o,display:n}=r(e);return/auto|scroll|overlay|hidden/.test(t+o+i)&&!["inline","contents"].includes(n)}function g(e){return["table","td","th"].includes(s(e))}function u(e){const t=/firefox/i.test(d()),i=r(e),o=i.backdropFilter||i.WebkitBackdropFilter;return"none"!==i.transform||"none"!==i.perspective||!!o&&"none"!==o||t&&"filter"===i.willChange||t&&!!i.filter&&"none"!==i.filter||["transform","perspective"].some((e=>i.willChange.includes(e)))||["paint","layout","strict","content"].some((e=>{const t=i.contain;return null!=t&&t.includes(e)}))}function m(){return!/^((?!chrome|android).)*safari/i.test(d())}function f(e){return["html","body","#document"].includes(s(e))}const v=Math.min,b=Math.max,x=Math.round;function y(e,t,i){var o,n,r,s;void 0===t&&(t=!1),void 0===i&&(i=!1);const d=e.getBoundingClientRect();let p=1,h=1;t&&l(e)&&(p=e.offsetWidth>0&&x(d.width)/e.offsetWidth||1,h=e.offsetHeight>0&&x(d.height)/e.offsetHeight||1);const g=c(e)?a(e):window,u=!m()&&i,f=(d.left+(u&&null!=(o=null==(n=g.visualViewport)?void 0:n.offsetLeft)?o:0))/p,v=(d.top+(u&&null!=(r=null==(s=g.visualViewport)?void 0:s.offsetTop)?r:0))/h,b=d.width/p,y=d.height/h;return{width:b,height:y,top:v,right:f+b,bottom:v+y,left:f,x:f,y:v}}function w(e){return(t=e,(t instanceof a(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function C(e){return c(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function $(e){return y(w(e)).left+C(e).scrollLeft}function L(e,t,i){const o=l(t),n=w(t),a=y(e,o&&function(e){const t=y(e);return x(t.width)!==e.offsetWidth||x(t.height)!==e.offsetHeight}(t),"fixed"===i);let r={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&"fixed"!==i)if(("body"!==s(t)||h(n))&&(r=C(t)),l(t)){const e=y(t,!0);d.x=e.x+t.clientLeft,d.y=e.y+t.clientTop}else n&&(d.x=$(n));return{x:a.left+r.scrollLeft-d.x,y:a.top+r.scrollTop-d.y,width:a.width,height:a.height}}function k(e){if("html"===s(e))return e;const t=e.assignedSlot||e.parentNode||(p(e)?e.host:null)||w(e);return p(t)?t.host:t}function S(e){return l(e)&&"fixed"!==r(e).position?e.offsetParent:null}function _(e){const t=a(e);let i=S(e);for(;i&&g(i)&&"static"===r(i).position;)i=S(i);return i&&("html"===s(i)||"body"===s(i)&&"static"===r(i).position&&!u(i))?t:i||function(e){let t=k(e);for(;l(t)&&!f(t);){if(u(t))return t;t=k(t)}return null}(e)||t}function T(e){if(l(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=y(e);return{width:t.width,height:t.height}}function M(e){const t=k(e);return f(t)?e.ownerDocument.body:l(t)&&h(t)?t:M(t)}function A(e,t){var i;void 0===t&&(t=[]);const o=M(e),n=o===(null==(i=e.ownerDocument)?void 0:i.body),r=a(o),s=n?[r].concat(r.visualViewport||[],h(o)?o:[]):o,d=t.concat(s);return n?d:d.concat(A(s))}function F(e,t,i){return"viewport"===t?(0,o.JB)(function(e,t){const i=a(e),o=w(e),n=i.visualViewport;let r=o.clientWidth,s=o.clientHeight,d=0,l=0;if(n){r=n.width,s=n.height;const e=m();(e||!e&&"fixed"===t)&&(d=n.offsetLeft,l=n.offsetTop)}return{width:r,height:s,x:d,y:l}}(e,i)):c(t)?function(e,t){const i=y(e,!1,"fixed"===t),o=i.top+e.clientTop,n=i.left+e.clientLeft;return{top:o,left:n,x:n,y:o,right:n+e.clientWidth,bottom:o+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,i):(0,o.JB)(function(e){var t;const i=w(e),o=C(e),n=null==(t=e.ownerDocument)?void 0:t.body,a=b(i.scrollWidth,i.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),s=b(i.scrollHeight,i.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0);let d=-o.scrollLeft+$(e);const l=-o.scrollTop;return"rtl"===r(n||i).direction&&(d+=b(i.clientWidth,n?n.clientWidth:0)-a),{width:a,height:s,x:d,y:l}}(w(e)))}const I={getClippingRect:function(e){let{element:t,boundary:i,rootBoundary:o,strategy:n}=e;const a="clippingAncestors"===i?function(e){let t=A(e).filter((e=>c(e)&&"body"!==s(e))),i=e,o=null;for(;c(i)&&!f(i);){const e=r(i);"static"===e.position&&o&&["absolute","fixed"].includes(o.position)&&!u(i)?t=t.filter((e=>e!==i)):o=e,i=k(i)}return t}(t):[].concat(i),d=[...a,o],l=d[0],p=d.reduce(((e,i)=>{const o=F(t,i,n);return e.top=b(o.top,e.top),e.right=v(o.right,e.right),e.bottom=v(o.bottom,e.bottom),e.left=b(o.left,e.left),e}),F(t,l,n));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:i,strategy:o}=e;const n=l(i),a=w(i);if(i===a)return t;let r={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if((n||!n&&"fixed"!==o)&&(("body"!==s(i)||h(a))&&(r=C(i)),l(i))){const e=y(i,!0);d.x=e.x+i.clientLeft,d.y=e.y+i.clientTop}return{...t,x:t.x-r.scrollLeft+d.x,y:t.y-r.scrollTop+d.y}},isElement:c,getDimensions:T,getOffsetParent:_,getDocumentElement:w,getElementRects:e=>{let{reference:t,floating:i,strategy:o}=e;return{reference:L(t,_(i),o),floating:{...T(i),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===r(e).direction};function j(e,t,i,o){void 0===o&&(o={});const{ancestorScroll:n=!0,ancestorResize:a=!0,elementResize:r=!0,animationFrame:s=!1}=o,d=n&&!s,l=d||a?[...c(e)?A(e):e.contextElement?A(e.contextElement):[],...A(t)]:[];l.forEach((e=>{d&&e.addEventListener("scroll",i,{passive:!0}),a&&e.addEventListener("resize",i)}));let p,h=null;if(r){let o=!0;h=new ResizeObserver((()=>{o||i(),o=!1})),c(e)&&!s&&h.observe(e),c(e)||!e.contextElement||s||h.observe(e.contextElement),h.observe(t)}let g=s?y(e):null;return s&&function t(){const o=y(e);!g||o.x===g.x&&o.y===g.y&&o.width===g.width&&o.height===g.height||i(),g=o,p=requestAnimationFrame(t)}(),i(),()=>{var e;l.forEach((e=>{d&&e.removeEventListener("scroll",i),a&&e.removeEventListener("resize",i)})),null==(e=h)||e.disconnect(),h=null,s&&cancelAnimationFrame(p)}}const E=(e,t,i)=>(0,o.oo)(e,t,{platform:I,...i})},29768:function(e,t,i){i.d(t,{m4:function(){return n}});function o(e){const t=e;return void 0!==t.clientValue?t.clientValue:Object.keys(e).reduce(((t,i)=>Object.assign(Object.assign({},t),{[i]:o(e[i])})),{})}class n{constructor(e,t){this.spec=e,this.qspPrefix=t||"rd"}get verParam(){return`${this.qspPrefix}.ver`}get data(){return void 0===this.memo&&(this.memo=o(this.spec.spec)),this.memo}loadQueryParams(e){if(void 0!==this.memo)throw"overwriting existing query string parameters.";const t=e.get([this.qspPrefix,"ver"].join("."));if(t!==this.spec.ver)throw`unmatched spec version: expected "${this.spec.ver}" but got ${t}.`;this.memo={},e.forEach(((e,t)=>{if(!t.startsWith(this.qspPrefix))return;if(t===this.verParam)return;const i=t.split(".").slice(1);let o=this.memo;i.forEach(((t,n)=>{let a={};if(n===i.length-1)try{a=()=>JSON.parse(e)}catch(e){throw this.memo=void 0,e}Object.prototype.hasOwnProperty.call(o,t)||(o[t]=a),"object"!=typeof a||(o=o[t])}))}))}getURLSearchParams(){const e=new URLSearchParams,t=(i,o)=>{Object.keys(i).forEach((n=>{const a=i[n],r=[...o,n];"object"!=typeof a?e.append(r.join("."),JSON.stringify(a())):t(a,r)}))};return t(this.data,[this.qspPrefix]),e.sort(),e.append(this.verParam,this.spec.ver),e}getSerializedData(){return this.getURLSearchParams().toString()}}var a;!function(e){e.JSON="application/json;charset=UTF-8",e.HTML="text/html;charset=UTF-8"}(a=a||(a={}))},85574:function(e,t,i){i.d(t,{lq:function(){return w}});var o=i(33940),n=i(59833),a=i(85594),r=i(36159),s=i(18769),d=i(18536),l=i(21616),c=i(16517),p=i(36e3),h=i(92530),g=i(89035),u=i(16339);const m="ClickedBeaconAttached",f="ViewedBeaconAttached",v="UserActionBeaconAttached",b=new WeakSet;class x{constructor(e){this.options=e}createHTML(e){return n.Lu.attribute(e(this))}createBehavior(){return new y(this.options,this.targetNodeId)}}class y{constructor(e,t){this.options=e,this.targetNodeId=t,this.beaconService=null,this.nativeAdBeaconsSetAttribute="nab",this.adsFlights="",this.onClick=(e,t)=>i=>{var o,n;if(i.target===i.currentTarget)return this.fireClickedBeacon(),void this.handleClickUserAction(i);if(!this.isTelemetryWc(i.currentTarget))return;const a=this.getImmediateChildFromTelemetryWc(i.currentTarget);i.target===a&&(i.currentTarget.clickedBeacon&&(this.fireTelemetryWcClickedBeacon(i),null===(n=(o=this.userActionLog).fireClickLog)||void 0===n||n.call(o,e,t,i)),i.currentTarget.clickedUserAction&&this.handleClickUserAction(i),i.currentTarget.clickedTelemetry&&this.handleClickTelemetry(i))},this.fireTelemetryWcClickedBeacon=e=>{const t=e.composedPath();let i=!1;for(let o=t.length-1;o>=0;o--)if(e.currentTarget!==t[o]){if(i&&this.isTelemetryWc(t[o]))return}else i=!0;this.fireClickedBeacon()},this.fireClickedBeacon=()=>{this.beaconService.fireClickTrackingCall(this.clickBeacons,this.beaconsJson),this.options.isClarityEnabled&&g.V.writeCustomTag("NativeAdHasBeenClicked",!0)},this.getImmediateChildFromTelemetryWc=e=>{if(this.isTelemetryWc(e)&&e.children.length>0)return e.children[0]},this.getUserActionBeacons=e=>{const t=JSON.parse(e),i=t&&t.trb;if(this.userActionBeacons=new Array,i)for(let e=0;e{e.stopPropagation();const{eventType:t,dur:i,message:o,element:n}=e.detail;this.onUserActionCore(t,i,o,n)},this.onUserActionCore=(e,t,i,o)=>{if(this.userActionBeacons)for(let n=0;ne.tagName&&"msn-native-ad-telemetry"===e.tagName.toLowerCase(),this.handleClickUserAction=e=>{var t,i,o;const n=this.getClickTarget(e),a=[];(null===(t=null==n?void 0:n.tagName)||void 0===t?void 0:t.toLowerCase)&&a.push(null==n?void 0:n.tagName.toLowerCase()),(null===(i=null==n?void 0:n.className)||void 0===i?void 0:i.toLowerCase)&&a.push(null==n?void 0:n.className.toLowerCase()),(null===(o=null==n?void 0:n.id)||void 0===o?void 0:o.toLowerCase)&&a.push(null==n?void 0:n.id.toLowerCase())},this.handleClickTelemetry=e=>{const t=this.getClickTarget(e);e.currentTarget.dataset.t&&(t.dataset.t=e.currentTarget.dataset.t,delete e.currentTarget.dataset.t,d.u.addElement(t))},this.getBindingSource=e=>{var t;return e instanceof HTMLElement?["native-ad-wc","msn-native-ad-title-mask"].includes(null===(t=null==e?void 0:e.tagName)||void 0===t?void 0:t.toLocaleLowerCase())?e.adData:e.data:e}}bind(e){var t,i;const{context:n,source:a,targets:r}=e;Array.isArray(null===(t=null===c.jG||void 0===c.jG?void 0:c.jG.CurrentRequestTargetScope)||void 0===t?void 0:t.pageExperiments)&&(this.adsFlights=(0,h.Z)(l.N,null===(i=null===c.jG||void 0===c.jG?void 0:c.jG.CurrentRequestTargetScope)||void 0===i?void 0:i.pageExperiments).join(";")),this.target=r[this.targetNodeId];const{beaconsJson:d,adBeaconServiceConfig:p,clickBeacons:g,geminiViewabilityDataJson:x,bingTrackerUrls:y,items:w,videoViewabilityData:C,isClarityEnabled:$}=this.getBindingSource(a);if(d&&g&&(this.start=(new Date).getTime(),this.options.isClarityEnabled=$,this.beaconsJson=d,this.clickBeacons=g,this.geminiViewabilityDataJson=x,this.beaconService=new s.A(p),this.options.isProng2BoostBeacon&&u.gL.subscribe(u.Iq.IsDashboardVisible,(e=>(0,o.mG)(this,void 0,void 0,(function*(){e&&this.options.shouldCallVisibilityBeacon&&(this.beaconService.elementVisibilityObserver(this.target,d,x,w&&w[0]?w[0].uniqueId:void 0,y,C,a,n),this.target[f]=!0)})))),this.options.shouldCallClickBeacon&&(this.target.addEventListener("click",this.onClick(a,n)),this.target[m]=!0),this.options.shouldWatchCustomEvent&&(this.getUserActionBeacons(d),this.target.addEventListener("NativeAdUserAction",this.onUserActionEvt),this.target[v]=!0),this.options.shouldCallVisibilityBeacon&&!this.options.isProng2BoostBeacon)){if(C){if(b.has(this.target))return;b.add(this.target)}this.beaconService.elementVisibilityObserver(this.target,d,x,w&&w[0]?w[0].uniqueId:void 0,y,C,a,n),this.target[f]=!0}}unbind(){}getClickTarget(e){if("adChoice"===e.currentTarget.telemetryMetadata&&e.composedPath&&"function"==typeof e.composedPath){const t=e.composedPath();for(let e=0;e0)return t[0]}}}function w(e=!0,t=!0,i=!1,o=!1){return new x({shouldCallClickBeacon:e,shouldCallVisibilityBeacon:t,shouldWatchCustomEvent:i,isProng2BoostBeacon:o})}(0,o.gn)([(0,p.f3)(r.Km)],y.prototype,"userActionLog",void 0),a.m0.define(x)},89035:function(e,t,i){i.d(t,{V:function(){return n}});const o={adCarousel:"NativeAdCarouselEnabled",allowedAssets:"NativeAdAllowedAssets",animatedImage:"NativeAdAnimatedImageType",landscapeOverlay:"NativeAdLandscapeOverlayEnabled",progressiveDisplay:"NativeAdProgressiveDisplayEnabled",templateType:"NativeAdTemplateType"},n=new class{constructor(){this.loggedTags={}}writeCustomTag(e,t){if(window.clarity&&null!=t){const i=t.toString();this.loggedTags[e]&&this.loggedTags[e][i]||(window.clarity("set",e,i),this.loggedTags[e]=this.loggedTags[e]||{},this.loggedTags[e][i]=!0)}}logAdTemplateConfig(e){e&&Object.keys(o).forEach((t=>{this.writeCustomTag(o[t],e[t])}))}}},26243:function(e,t,i){i.d(t,{O:function(){return d},_:function(){return l}});var o=i(18769),n=i(36159),a=i(16517),r=i(92530),s=i(21616);const d=(e,t,i,o=0)=>{e&&e.dispatchEvent(new CustomEvent("NativeAdUserAction",{bubbles:!0,cancelable:!0,composed:!0,detail:{eventType:t,dur:o,message:i,element:e.tagName.toLowerCase()}}))},l=(e,t,i,d=0,l)=>{var c,p;const h=new n.Km,g=new o.A;let u="";Array.isArray(null===(c=null===a.jG||void 0===a.jG?void 0:a.jG.CurrentRequestTargetScope)||void 0===c?void 0:c.pageExperiments)&&(u=(0,r.Z)(s.N,null===(p=null===a.jG||void 0===a.jG?void 0:a.jG.CurrentRequestTargetScope)||void 0===p?void 0:p.pageExperiments).join(";"));const m=h.populateBeaconUrl(e,u,t,i,d,l);g.fireUserActionBeacon(null==m?void 0:m.href)}},19591:function(e,t,i){i.d(t,{q:function(){return rt},Y:function(){return at}});var o=i(33940),n=i(36e3),a=i(11593),r=i(9791);const s=(0,r.Z)(((e,t,i)=>Object.assign(Object.assign({},e),{config:t,strings:i})));var d=i(42590),l=i(26415),c=i(92773),p=i(84446);let h=class extends p.F{constructor(){super(...arguments),this.destinationUrl="",this.title="",this.telemetryMetadata=void 0}connectedCallback(){super.connectedCallback()}};(0,o.gn)([(0,d.Lj)({attribute:"destination-url"})],h.prototype,"destinationUrl",void 0),(0,o.gn)([(0,d.Lj)({attribute:"title"})],h.prototype,"title",void 0),(0,o.gn)([d.Lj],h.prototype,"id",void 0),(0,o.gn)([(0,d.Lj)({attribute:"tel-metadata"})],h.prototype,"telemetryMetadata",void 0),h=(0,o.gn)([(0,c.uj)(l.EoX,"msn-native-ad-title-mask")],h);var g=i(28904),u=i(78923),m=i(41503);const f=u.i`
.native-ad-title-mask a:after {
bottom: 0;
content: "";
height: 100%;
left: 0;
position: absolute;
right: 0;
top: 0;
width: 100%;
}
`.withBehaviors(new m.g("layoutStyle"));var v=i(49218);const b=v.d`
`;let x=class extends h{};x=(0,o.gn)([(0,g.M)({name:"msn-native-ad-title-mask",template:b,styles:f})],x);var y=i(85574);var w=i(93703),C=i(99452);let $=class extends p.F{constructor(){super(...arguments),this.src="",this.rlink="",this.id="",this.altText="",this.width="300px",this.height="225px",this.isHovered=!1,this.imageMaskOn="off",this.imageMaskOpacity="0.5",this.trimBottom=!1,this.objectFit="",this.useDropShadow=!1,this.useTransparentBackground=!1,this.imageMaskLeft="",this.imageMaskTop="",this.imageMaskWidth="",this.imageMaskHeight="",this.enableNativeAdHoverContrast=!1,this.patternMode="",this.darkThemeMediaQuery=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)"),this.isDarkMode=this.darkThemeMediaQuery.matches,this.themeModeSwitchHandler=()=>{this.isDarkMode=!this.isDarkMode}}disconnectedCallback(){this.patternMode&&this.darkThemeMediaQuery.removeEventListener("change",this.themeModeSwitchHandler)}connectedCallback(){super.connectedCallback(),this.patternMode&&this.darkThemeMediaQuery.addEventListener("change",this.themeModeSwitchHandler)}};(0,o.gn)([d.Lj],$.prototype,"src",void 0),(0,o.gn)([d.Lj],$.prototype,"rlink",void 0),(0,o.gn)([d.Lj],$.prototype,"id",void 0),(0,o.gn)([(0,d.Lj)({attribute:"alt-text"})],$.prototype,"altText",void 0),(0,o.gn)([d.Lj],$.prototype,"width",void 0),(0,o.gn)([d.Lj],$.prototype,"height",void 0),(0,o.gn)([(0,d.Lj)({mode:"boolean",attribute:"is-hovered"})],$.prototype,"isHovered",void 0),(0,o.gn)([(0,d.Lj)({attribute:"image-mask-on"})],$.prototype,"imageMaskOn",void 0),(0,o.gn)([(0,d.Lj)({attribute:"image-mask-opacity"})],$.prototype,"imageMaskOpacity",void 0),(0,o.gn)([(0,d.Lj)({mode:"boolean",attribute:"trim-bottom"})],$.prototype,"trimBottom",void 0),(0,o.gn)([(0,d.Lj)({attribute:"object-fit"})],$.prototype,"objectFit",void 0),(0,o.gn)([(0,d.Lj)({mode:"boolean",attribute:"use-drop-shadow"})],$.prototype,"useDropShadow",void 0),(0,o.gn)([(0,d.Lj)({mode:"boolean",attribute:"use-transparent-background"})],$.prototype,"useTransparentBackground",void 0),(0,o.gn)([(0,d.Lj)({attribute:"image-mask-left"})],$.prototype,"imageMaskLeft",void 0),(0,o.gn)([(0,d.Lj)({attribute:"image-mask-top"})],$.prototype,"imageMaskTop",void 0),(0,o.gn)([(0,d.Lj)({attribute:"image-mask-width"})],$.prototype,"imageMaskWidth",void 0),(0,o.gn)([(0,d.Lj)({attribute:"image-mask-height"})],$.prototype,"imageMaskHeight",void 0),(0,o.gn)([(0,d.Lj)({attribute:"enable-native-ad-hover-contrast",mode:"boolean"})],$.prototype,"enableNativeAdHoverContrast",void 0),(0,o.gn)([(0,d.Lj)({attribute:"pattern-mode"})],$.prototype,"patternMode",void 0),(0,o.gn)([C.LO],$.prototype,"isDarkMode",void 0),$=(0,o.gn)([(0,c.uj)(l.EoX,"msn-native-ad-product-image")],$);var L=i(53692),k=i(29717),S=i(62319),_=i(17525),T=i(64262),M=i(65503);const A=u.i`
.native-ad-product-image {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
.enable-hover-effect {
filter: contrast(115%);
}
.native-ad-product-image-trim-bottom {
width: 100%;
height: 100%;
object-fit: cover;
object-position: top;
}
.off {
display: none;
}
.drop-shadow {
filter: drop-shadow(0px 4.8px 14.4px rgba(0, 0, 0, 0.18)) drop-shadow(0px 4px 18px rgba(0, 0, 0, 0.15));
}
`.withBehaviors(new m.g("layoutStyle"),new L.j(["objectFit","isHovered","imageMaskLeft","imageMaskTop","imageMaskOpacity","useTransparentBackground","enableNativeAdHoverContrast"],(e=>{const t="undefined"===e.imageMaskOpacity||null==e.imageMaskOpacity?"0.5":e.imageMaskOpacity;let i="";if("on"===e.imageMaskOn&&e.isHovered&&!e.enableNativeAdHoverContrast){i=`\n :host::before {\n content: "";\n position: fixed;\n left: ${e.imageMaskLeft?`${e.imageMaskLeft}px`:0};\n top: ${e.imageMaskTop?`${e.imageMaskTop}px`:0};\n width: ${e.imageMaskWidth?`${e.imageMaskWidth}px`:"100%"};\n height: ${e.imageMaskHeight?`${e.imageMaskHeight}px`:"100%"};\n opacity: ${t};\n background: var(--ad-background-color);\n animation: fadeIn 0.1s linear;\n transition: opacity 0.1s linear;\n z-index: 1;\n }\n `}"off"!==e.imageMaskOn&&e.isHovered||(i="\n :host::before {\n opacity: 0;\n }\n ");let o="";return e.patternMode&&("patternMode1"===e.patternMode?o=`\n :host {\n background-image: url(${e.isDarkMode?T:S});\n background-position: 0 0;\n background-size: 100% 100%;\n }\n `:"patternMode2"===e.patternMode&&(o=`\n :host {\n background-image: url(${e.isDarkMode?M:_});\n background-position: 0 0;\n background-size: 100% 100%;\n }\n `)),u.i`
:host img {
background: ${e.useTransparentBackground?"unset":"#2E2E2E"};
}
${i}
${o}
.object-fit {
object-fit: ${e.objectFit};
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: ${t};
}
}
`})),(0,k.vF)(u.i`
:host::after {
background: buttonface;
}
`)),F=v.d`
${(0,w.g)((e=>!e.patternMode),v.d`
e.visualReadinessCallback&&e.visualReadinessCallback()}
@error=${(e,t)=>{e.visualReadinessCallback&&e.visualReadinessCallback(t.event)}}
/>
`)}
`;let I=class extends ${};I=(0,o.gn)([(0,g.M)({name:"msn-native-ad-product-image",template:F,styles:A,shadowOptions:{delegatesFocus:!0}})],I);let j=class extends p.F{constructor(){super(...arguments),this.color="",this.paddingTop="78",this.paddingBottom="53",this.isRadialMask="false",this.isFullGradient="false",this.height="",this.useDynamicStyle="",this.useShorterGradient=!1,this.background="",this.peSeasonalColorMode=""}connectedCallback(){super.connectedCallback()}};(0,o.gn)([d.Lj],j.prototype,"color",void 0),(0,o.gn)([d.Lj],j.prototype,"paddingTop",void 0),(0,o.gn)([d.Lj],j.prototype,"paddingBottom",void 0),(0,o.gn)([(0,d.Lj)({attribute:"is-radial-mask"})],j.prototype,"isRadialMask",void 0),(0,o.gn)([(0,d.Lj)({attribute:"is-full-gradient"})],j.prototype,"isFullGradient",void 0),(0,o.gn)([d.Lj],j.prototype,"height",void 0),(0,o.gn)([(0,d.Lj)({attribute:"use-dynamic-style"})],j.prototype,"useDynamicStyle",void 0),(0,o.gn)([(0,d.Lj)({attribute:"use-short-gradient",mode:"boolean"})],j.prototype,"useShorterGradient",void 0),(0,o.gn)([d.Lj],j.prototype,"background",void 0),(0,o.gn)([(0,d.Lj)({attribute:"pe-seasonal-color-mode"})],j.prototype,"peSeasonalColorMode",void 0),j=(0,o.gn)([(0,c.uj)(l.EoX,"msn-native-gradient-mask")],j);const E=u.i`
.native-ad-mask {
cursor: pointer;
padding-bottom: 45px;
padding-top: 78px;
background: linear-gradient(var(--gradient-end-color) 0%, var(--gradient-mid-color) 40%, var(--ad-background-color) 50%, var(--ad-background-color) 100%);
}
.use-short-gradient{
cursor: pointer;
padding-bottom: 45px;
padding-top: 45px;
background: linear-gradient(var(--gradient-end-color) 0%, var(--gradient-mid-color) 23%, var(--ad-background-color) 34%, var(--ad-background-color) 100%);
}
.padding-top-30 {
padding-top: 30px;
background: linear-gradient(var(--gradient-end-color) 0%, var(--gradient-mid-color) 40%, var(--ad-background-color) 50%, var(--ad-background-color) 100%);
}
.padding-top-10 {
padding-top: 10px;
background: linear-gradient(var(--gradient-end-color) 0%, var(--gradient-mid-color) 40%, var(--ad-background-color) 50%, var(--ad-background-color) 100%);
}
.padding-top-90 {
padding-top: 90px;
padding-bottom: 50px;
background: linear-gradient(var(--gradient-end-color) 0%, var(--gradient-mid-color) 50%, var(--ad-background-color) 60%, var(--ad-background-color) 100%);
}
.padding-top-120 {
padding-top: 120px;
padding-bottom: 70px;
background: linear-gradient(var(--gradient-end-color) 0%, var(--gradient-mid-color) 30%, var(--ad-background-color) 50%, var(--ad-background-color) 100%);
}
.padding-top-100 {
padding-top: 100px;
padding-bottom: 70px;
background: linear-gradient(var(--gradient-end-color) 0%, var(--gradient-mid-color) 30%, var(--ad-background-color) 50%, var(--ad-background-color) 100%);
}
.padding-bottom-0 {
padding-bottom: 0px;
padding-top: 60px;
background: linear-gradient(var(--gradient-end-color) 0%, var(--gradient-mid-color) 40%, var(--ad-background-color) 50%, var(--ad-background-color) 100%);
}
.native-ad-radial-mask {
background: radial-gradient(500px 150px ellipse at 50% 0%,var(--gradient-end-color) 0%, var(--gradient-end-color) 30%, var(--gradient-mid-color) 70%, var(--ad-background-color) 100%);
}
.native-ad-full-gradient {
height: 100%;
background: linear-gradient(var(--gradient-end-color) 0%, var(--ad-background-color) 100%);
}
@media (prefers-color-scheme: light) {
.peSeasonalColorMode1 {
background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 23%, rgba(255, 255, 255, 0.8) 34%, #FFFFFF 100%);
}
.peSeasonalColorMode2 {
background: linear-gradient(180deg, rgba(107, 193, 210, 0) 0%, rgba(177, 224, 233, 0.8) 23%, #B1E0E9 34%, #FFFFFF 70%, #EEDEBF 100%);
}
.peSeasonalColorMode3 {
background: linear-gradient(180deg, rgba(255, 233, 176, 0) 0%, rgba(255, 233, 176, 0.8) 23%, #FFE9B0 34%, #FFE9B0 100%);
}
.peSeasonalColorMode4 {
background: linear-gradient(180deg, rgba(206, 159, 166, 0) 0%, rgba(227, 202, 206, 0.8) 23%, #E3CACE 34%, #FFE9E8 100%);
}
}
@media (prefers-color-scheme: dark) {
.peSeasonalColorMode1 {
background: linear-gradient(180deg, rgba(43, 43, 43, 0) 0%, rgba(43, 43, 43, 0.8) 23%, #2B2B2B 34%, #2B2B2B 100%)
}
.peSeasonalColorMode2 {
background: linear-gradient(180deg, rgba(11, 35, 63, 0) 0%, rgba(11, 35, 63, 0.8) 23%, #0B233F 34%, #040D17 100%);
}
.peSeasonalColorMode3 {
background: linear-gradient(180deg, rgba(58, 35, 0, 0) 0%, rgba(58, 35, 0, 0.8) 23%, #3A2300 34%, #1F1200 100%);
}
.peSeasonalColorMode4 {
background: linear-gradient(180deg, rgba(56, 0, 31, 0) 0%, rgba(56, 0, 31, 0.8) 23%, #38001F 34%, #2F0007 100%);
}
}
`.withBehaviors(new m.g("layoutStyle"),new L.j(["height","paddingTop","paddingBottom","background"],(e=>{const t=(null==e?void 0:e.background)&&"undefined"!==(null==e?void 0:e.background)?e.background:"linear-gradient(var(--gradient-end-color) 0%, var(--ad-background-color) 100%)";return u.i`
.native-ad-dynamic-style {
height: ${e.height}px;
padding-top: ${e.paddingTop}px;
padding-bottom: ${e.paddingBottom}px;
background: ${t};
}
`})),(0,k.vF)(u.i`
.native-ad-mask,
.padding-top-30,
.padding-top-10,
.padding-top-90,
.padding-top-120,
.padding-top-100,
.padding-bottom-0 {
background: linear-gradient(transparent 0%, buttonface 50%, buttonface 100%);
}
.native-ad-dynamic-style {
display: none;
}
`)),O=v.d`
"undefined"!==e.paddingTop?`padding-top-${e.paddingTop}`:""}
${e=>"undefined"!==e.paddingBottom?`padding-bottom-${e.paddingBottom}`:""}
${e=>"true"===e.isRadialMask?"native-ad-radial-mask":""}
${e=>"true"===e.isFullGradient?"native-ad-full-gradient":""}
${e=>e.useShorterGradient?"use-short-gradient":""}
${e=>e.peSeasonalColorMode}
">
`;let B=class extends j{};B=(0,o.gn)([(0,g.M)({name:"msn-native-gradient-mask",template:O,styles:E,shadowOptions:{delegatesFocus:!0}})],B);var D=i(29666),H=i(35772);let z=class extends p.F{constructor(){super(...arguments),this.title="",this.destinationUrl="",this.isHovered=!1,this.enableTitleClickableOnly=!1,this.isAnaheimDesign=!1,this.useSmallFontSize=!0,this.animationOn=!1,this.fontSize="",this.fontColor="black",this.customStyle="",this.customStyleHovered="",this.lineHeight="",this.fontWeight="",this.fontFamily="inherit",this.isFeedV2=!1,this.isRiverRegion=!1,this.telemetryMetadata=void 0}connectedCallback(){super.connectedCallback(),(0,H.Q)(this.fontFamily)}};(0,o.gn)([d.Lj],z.prototype,"title",void 0),(0,o.gn)([(0,d.Lj)({attribute:"destination-url"})],z.prototype,"destinationUrl",void 0),(0,o.gn)([(0,d.Lj)({mode:"boolean",attribute:"is-hovered"})],z.prototype,"isHovered",void 0),(0,o.gn)([(0,d.Lj)({mode:"boolean",attribute:"enable-title-clickable-only"})],z.prototype,"enableTitleClickableOnly",void 0),(0,o.gn)([(0,d.Lj)({mode:"boolean",attribute:"is-anaheim-design"})],z.prototype,"isAnaheimDesign",void 0),(0,o.gn)([(0,d.Lj)({mode:"boolean",attribute:"use-small-font-size"})],z.prototype,"useSmallFontSize",void 0),(0,o.gn)([(0,d.Lj)({mode:"boolean",attribute:"animation-on"})],z.prototype,"animationOn",void 0),(0,o.gn)([(0,d.Lj)({attribute:"font-size"})],z.prototype,"fontSize",void 0),(0,o.gn)([(0,d.Lj)({attribute:"font-color"})],z.prototype,"fontColor",void 0),(0,o.gn)([(0,d.Lj)({attribute:"custom-style"})],z.prototype,"customStyle",void 0),(0,o.gn)([(0,d.Lj)({attribute:"custom-style-hovered"})],z.prototype,"customStyleHovered",void 0),(0,o.gn)([(0,d.Lj)({mode:"boolean",attribute:"two-lines-title"})],z.prototype,"twoLinesTitle",void 0),(0,o.gn)([(0,d.Lj)({mode:"boolean",attribute:"one-line-title"})],z.prototype,"oneLineTitle",void 0),(0,o.gn)([(0,d.Lj)({attribute:"line-height"})],z.prototype,"lineHeight",void 0),(0,o.gn)([(0,d.Lj)({attribute:"font-weight"})],z.prototype,"fontWeight",void 0),(0,o.gn)([(0,d.Lj)({attribute:"font-family"})],z.prototype,"fontFamily",void 0),(0,o.gn)([(0,d.Lj)({mode:"boolean",attribute:"is-feed-v2"})],z.prototype,"isFeedV2",void 0),(0,o.gn)([(0,d.Lj)({mode:"boolean",attribute:"is-river-region"})],z.prototype,"isRiverRegion",void 0),(0,o.gn)([(0,d.Lj)({attribute:"tel-metadata"})],z.prototype,"telemetryMetadata",void 0),z=(0,o.gn)([(0,c.uj)(l.EoX,"msn-native-ad-title")],z);const P=u.i`
a {
padding: 0 16px;
font-size: 20px;
font-weight: 600;
}
a:focus{
outline: 0;
}
a::after {
content: "";
text-overflow: ellipsis;
position: fixed;
width: 100%;
height: 100%;
left: 0;
right: 0;
top: 0;
bottom: 0;
z-index: 4;
}
.native-ad-title{
color: var(--neutral-foreground-rest);
text-decoration: none;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
word-break: break-word;
}
.is-river-region{
margin-bottom: 2px;
}
.native-ad-title-hovered{
color: var(--neutral-foreground-rest);
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
text-decoration: underline;
word-break: break-word;
}
.animation-on {
transition: max-height .365s;
-webkit-line-clamp: 3;
}
.two-lines-title{
-webkit-line-clamp: 2;
}
.one-line-title{
-webkit-line-clamp: 1;
}
.is-feed-v2 {
color: #1A1A1A;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
text-decoration: none;
word-break: break-word;
line-height:24px;
}
@media (prefers-color-scheme: dark) {
.is-feed-v2 {
color: #FFFFFF;
}
}
@media (forced-colors: active) {
.native-ad-title,
.native-ad-title-hovered {
color: linktext;
background: buttonface;
}
}
`.withBehaviors(new m.g("layoutStyle"),new L.j(["lineHeight","fontSize","fontWeight","fontFamily"],(e=>{const t=`\n .ad-title {\n line-height: ${e.lineHeight}px;\n font-size: ${e.fontSize}px;\n font-weight: ${e.fontWeight};\n font-family: ${e.fontFamily};\n }\n a { font-size: ${e.fontSize}px; }\n `;return u.i`${t}`}))),R=v.d`
e.destinationUrl}
target="_blank"
data-t="${e=>e.telemetryMetadata}"
>
${(0,w.g)((e=>!e.isAnaheimDesign),v.d`${e=>e.title}`)}
${(0,w.g)((e=>e.isAnaheimDesign&&e.fontSize),v.d`${e=>e.title}`)}
${(0,w.g)((e=>e.isAnaheimDesign&&!e.fontSize),v.d`
${(0,w.g)((e=>!e.useSmallFontSize),v.d`${e=>e.title}`)}
${(0,w.g)((e=>e.useSmallFontSize),v.d`${e=>e.title}`)}
`)}
`;let N=class extends z{};N=(0,o.gn)([(0,g.M)({name:"msn-native-ad-title",template:R,styles:P})],N);const{ShortTitle:V,CallToActionShortTitle:U}=D.SI;i(20899).O;const Z=(e,t)=>t&&null!=t.adLabelType?t.adLabelType:e.isGreyAdsLabelEnabled?"greyLabel":e.adSlugGA?"defaultLabel":"greenLabel";let W=class extends p.F{constructor(){super(...arguments),this.url="",this.providerName="",this.whiteProviderName="",this.isNewAdSlugV2=!1,this.isNewAdSlugV2NonDr=!1,this.fontFamily="inherit",this.adSlugGA=!1,this.hasEliteBadge=!1,this.adLabelTextOpacity="0.7",this.fontSize="",this.lineHeight="",this.isFeedV2=!1,this.isMsnHPAdSlug=!1,this.color="var(--neutral-foreground-rest)",this.fontWeight="normal",this.isSeasonal=!1,this.eliteBadgeTitle=""}connectedCallback(){var e;super.connectedCallback(),(0,H.Q)(this.fontFamily),this.eliteBadgeTitle=null===(e=this.localizedStrings)||void 0===e?void 0:e.eliteBadgeTitle}};(0,o.gn)([d.Lj],W.prototype,"url",void 0),(0,o.gn)([(0,d.Lj)({attribute:"provider-name"})],W.prototype,"providerName",void 0),(0,o.gn)([(0,d.Lj)({attribute:"white-provider-name"})],W.prototype,"whiteProviderName",void 0),(0,o.gn)([(0,d.Lj)({mode:"boolean",attribute:"is-new-ad-slug-v2"})],W.prototype,"isNewAdSlugV2",void 0),(0,o.gn)([(0,d.Lj)({mode:"boolean",attribute:"is-new-ad-slug-v2-non-dr"})],W.prototype,"isNewAdSlugV2NonDr",void 0),(0,o.gn)([(0,d.Lj)({attribute:"custom-style-class"})],W.prototype,"customStyleClass",void 0),(0,o.gn)([(0,d.Lj)({attribute:"tel-metadata"})],W.prototype,"telemetryMetadata",void 0),(0,o.gn)([(0,d.Lj)({attribute:"font-family"})],W.prototype,"fontFamily",void 0),(0,o.gn)([(0,d.Lj)({mode:"boolean",attribute:"ad-slug-ga"})],W.prototype,"adSlugGA",void 0),(0,o.gn)([(0,d.Lj)({mode:"boolean",attribute:"has-elite-badge"})],W.prototype,"hasEliteBadge",void 0),(0,o.gn)([(0,d.Lj)({attribute:"ad-label-text-opacity"})],W.prototype,"adLabelTextOpacity",void 0),(0,o.gn)([(0,d.Lj)({attribute:"font-size"})],W.prototype,"fontSize",void 0),(0,o.gn)([(0,d.Lj)({attribute:"line-height"})],W.prototype,"lineHeight",void 0),(0,o.gn)([(0,d.Lj)({mode:"boolean",attribute:"is-feed-v2"})],W.prototype,"isFeedV2",void 0),(0,o.gn)([(0,d.Lj)({mode:"boolean",attribute:"is-msn-hp-ad-slug"})],W.prototype,"isMsnHPAdSlug",void 0),(0,o.gn)([d.Lj],W.prototype,"color",void 0),(0,o.gn)([(0,d.Lj)({attribute:"font-weight"})],W.prototype,"fontWeight",void 0),(0,o.gn)([(0,d.Lj)({mode:"boolean",attribute:"is-seasonal"})],W.prototype,"isSeasonal",void 0),(0,o.gn)([C.LO],W.prototype,"eliteBadgeTitle",void 0),(0,o.gn)([C.LO],W.prototype,"localizedStrings",void 0),W=(0,o.gn)([(0,c.uj)(l.EoX,"msn-native-ad-provider-name")],W);const G=u.i`
.provider-name-with-elite-badge-wrapper {
display: flex;
flex-direction: row;
align-items: center;
}
.provider-name-with-elite-badge-wrapper .elite-badge-icon {
margin-inline-end: 4px;
display: flex;
}
.white {
color: white;
text-decoration: inherit;
}
.white-12-flex-layout{
color: var(--neutral-foreground-rest);
width: 100%;
font-size: 12px;
text-overflow: ellipsis;
height: 24px;
line-height: 24px;
}
.with-opacity-70{
opacity: 0.7;
}
.with-opacity-70-non-dr {
color: unset;
opacity: 1;
}
.font-tenorite {
font-family: Tenorite, Segoe UI, Segoe UI Midlevel, Arial, Sans-Serif;
font-size: 14px;
position: relative;
top: 2px;
}
`.withBehaviors(new m.g("layoutStyle"),new L.j(["adLabelTextOpacity","lineHight","fontSize"],(e=>u.i`
.provider-name-hyper-link,
.provider-name {
display: inline-block;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
vertical-align: bottom;
opacity: ${e.adLabelTextOpacity};
font-size: ${e.fontSize}px;
line-height: ${e.lineHeight}px;
text-decoration: inherit;
color: ${e.color&&"undefined"!==e.color?e.color:"var(--neutral-foreground-rest)"};
font-weight: ${e.fontWeight&&"undefined"!==e.fontWeight?e.fontWeight:"normal"};
}
@media (forced-colors: active) {
.provider-name-hyper-link,
.provider-name {
color: buttontext;
opacity: 1;
background: buttonface;
}
}
.is-feed-v2 {
color: #292929;
}
.is-seasonal-style {
color: #000000;
}
.is-msn-hp-style {
color: #2b2b2b;
}
@media (prefers-color-scheme: dark) {
.is-feed-v2 {
color: #FFFFFF;
}
.is-seasonal-style {
color: #FFFFFF;
}
}
`))),q=v.d`
`,X=v.d`
e.url}\"
class="${e=>"Tenorite"===e.fontFamily?"font-tenorite":""} ${e=>"true"===e.whiteProviderName?"white":`provider-name-hyper-link ${e.customStyleClass||""} ${e.isNewAdSlugV2&&!e.keepOpacity?"with-opacity-70":""} ${e.isNewAdSlugV2NonDr||!e.adSlugGA?"with-opacity-70-non-dr":""}`} ${e=>e.isFeedV2?"is-feed-v2":""} ${e=>e.isMsnHPAdSlug?"is-msn-hp-style":""} ${e=>e.isSeasonal?"is-seasonal-style":""}"
target=\"_blank\"
title=" ${e=>e.providerName}"
data-t="${e=>e.telemetryMetadata}"
>
${e=>e.providerName}
`,Q=v.d`
${(0,w.g)((e=>e.hasEliteBadge),v.d`
${q}
${X}
`)}
${(0,w.g)((e=>!e.hasEliteBadge),X)}
`;let K=class extends W{};K=(0,o.gn)([(0,g.M)({name:"msn-native-ad-provider-name",template:Q,styles:G})],K);var J=i(29837),Y=i(33764);let ee=class extends p.F{constructor(){super(...arguments),this.adChoiceIconUrl="",this.nativeAdAdChoiceText="",this.telemetryMetadata="",this.isFeedV2=!1}connectedCallback(){super.connectedCallback();const{iconStyles:e}=this,t=[];e&&Object.keys(e).forEach((i=>{t.push((0,Y._t)(i,e[i]))})),this.iconStyleStr=u.i`:host .native-ad-ad-choice {${t.length?t.join(";"):""}}`}};(0,o.gn)([(0,d.Lj)({attribute:"ad-choice-icon-url"})],ee.prototype,"adChoiceIconUrl",void 0),(0,o.gn)([(0,d.Lj)({attribute:"native-ad-ad-choice-text"})],ee.prototype,"nativeAdAdChoiceText",void 0),(0,o.gn)([(0,d.Lj)({attribute:"tel-metadata"})],ee.prototype,"telemetryMetadata",void 0),(0,o.gn)([(0,d.Lj)({mode:"boolean",attribute:"is-feed-v2"})],ee.prototype,"isFeedV2",void 0),(0,o.gn)([C.LO],ee.prototype,"iconStyles",void 0),(0,o.gn)([C.LO],ee.prototype,"iconStyleStr",void 0),ee=(0,o.gn)([(0,c.uj)(l.EoX,"msn-native-ad-ad-choice")],ee);const te=u.i`
@media (forced-colors: active) {
.native-ad-ad-choice {
background: buttonface;
}
}
.native-ad-ad-choice {
width: 32px;
height: 32px;
display: inline-flex;
}
.native-ad-ad-choice svg {
margin: auto;
}
`.withBehaviors(new m.g("layoutStyle"),new m.g("iconStyleStr")),ie=v.d`
`,oe=v.d`
`,ne=v.d`
${(0,w.g)((e=>e.adChoiceIconUrl),v.d`
${(0,w.g)((e=>!e.isFeedV2),v.d`${oe}`)}
${(0,w.g)((e=>e.isFeedV2),v.d`
${ie}
`)}
`)}
`;let ae=class extends ee{};ae=(0,o.gn)([(0,g.M)({name:"msn-native-ad-ad-choice",template:ne,styles:te})],ae);let re=class extends p.F{constructor(){super(...arguments),this.cardActionsTooltips=""}connectedCallback(){super.connectedCallback()}};(0,o.gn)([(0,d.Lj)({attribute:"card-actions-tooltips"})],re.prototype,"cardActionsTooltips",void 0),(0,o.gn)([(0,d.Lj)({attribute:"data"})],re.prototype,"data",void 0),re=(0,o.gn)([(0,c.uj)(l.EoX,"msn-native-ad-see-more")],re);const se=u.i`
.card-button {
border-radius: 100%;
}
.card-button:not(:hover) {
background: transparent;
}
.card-see-more {
align-items: center;
background-color: rgb(255, 255, 255);
border-radius: 100%;
border: 1px solid rgb(229, 229, 229);
cursor: pointer;
display: flex;
height: 32px;
justify-content: center;
outline: none;
margin-right: 2px;
width: 32px;
}
.card-see-more svg {
fill: inherit;
}
`.withBehaviors(new m.g("layoutStyle"),new L.j(["data"],(e=>{let t="";return e.data&&(e.data.isInfopane||e.data.enableFilledIconOnHover&&(!e.data.enableFilledIconOnHover||e.data.optedOutOfReactions)||(t+="dynamic-styles {\n display: inline-flex;\n }")),u.i`${t}`})));var de=i(46943),le=i(51873),ce=i(94929),pe=i(89150),he=i(40565),ge=i(82479);i(20048).R;const ue=v.d``,me=v.d`
${(0,pe.rx)((e=>[e.data]),v.d`
${(0,w.g)((e=>e.isAdFeedbackV1Enabled&&!!e.feedbackUrl),v.d`
${(0,w.g)((e=>!e.isFeedV2),v.d`
e.cardActionsTooltips&&e.cardActionsTooltips.seeMore}
unselect-icon=${he.Z}
filled-icon-path=${de.Cp}
layout=${e=>(0,le.Q8)(e)}
@selected-state-changed=${(e,t)=>e.toggleCardActionMenu&&e.toggleCardActionMenu(e,t.event)}
select-telemetry-tag=${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.seeMore)||void 0===i?void 0:i.getMetadataTag()}}
>
`)}
${(0,w.g)((e=>e.isFeedV2&&e.isHovered),v.d`${ue}`)}
`)}
`)}
`;let fe=class extends re{};fe=(0,o.gn)([(0,g.M)({name:"msn-native-ad-see-more",template:me,styles:se})],fe);var ve=i(19628),be=i(90351);const xe=e=>{var t;const i=(null===(t=e.localizedStrings)||void 0===t?void 0:t.nativeAdTrendingTitleText)||"More than {0} people have viewed this product",o=(0,be.Z)(ye((0,be.Z)(e,"assets.viewed","")),"viewed","");return ve.Ld.Format(i,o)},ye=(0,c.Et)(l.Evv,"parseViewedStringToJSON")((e=>{if(!e)return"";let t={};try{t=JSON.parse(e)}catch(e){return""}return t&&t.viewed&&t.comparisonDays?t:""})),we=e=>{var t,i;const o=(null===(t=e.localizedStrings)||void 0===t?void 0:t.nativeAdSaleHighlightTitleText)||"SALE {0}% OFF";return ve.Ld.Format(o,null===(i=e.assets)||void 0===i?void 0:i.discount)},Ce=e=>{var t,i;const o=(null===(t=e.localizedStrings)||void 0===t?void 0:t.nativeAdSaleHighlightTitleText)||"SALE {0}% OFF",n=o.split("{0}%"),a=ve.Ld.Format(o,null===(i=e.assets)||void 0===i?void 0:i.discount),[r,s]=n,d=a.slice(r.length,a.length-s.length);return{prefix:r.trim(),suffix:s.trim(),highlightText:d.trim()}};class $e{chain(e){this.nextBuilder=e}build(e,t){const i=this.doBuild(e,t);return this.nextBuilder?this.nextBuilder.build(e,i):i}}(0,o.gn)([(0,c.Et)(l.iJb,"BaseBuilder.Chain")],$e.prototype,"chain",null),(0,o.gn)([(0,c.Et)(l.iJb,"BaseBuilder.Build")],$e.prototype,"build",null);class Le extends $e{constructor(){super(),this.creatorMap=new Map}registerCreator(e,t){this.creatorMap.set(e,t)}doBuild(e,t){if(this.creatorMap.has(e.name)){return this.creatorMap.get(e.name)(e,t)}return t?v.d`${t}`:v.d``}}(0,o.gn)([(0,c.Et)(l.iJb,"ComponentBuilder.RegisterCreator")],Le.prototype,"registerCreator",null),(0,o.gn)([(0,c.Et)(l.iJb,"ComponentBuilder.DoBuild")],Le.prototype,"doBuild",null);class ke extends $e{doBuild(e,t){if(Array.isArray(e.children)&&e.children.length>0){const t=e.children.map((e=>this.build(e,null))),i=Array(t.length+1).fill("");return i.raw=i,v.d`
${(0,pe.rx)((t=>e.children),v.d`
${e=>this.build(e,null)}
`)}
`,v._.create(i,t)}return null}}(0,o.gn)([(0,c.Et)(l.iJb,"ChildrenBuilder.DoBuild")],ke.prototype,"doBuild",null);class Se extends p.F{constructor(){super(...arguments),this._displayName="MsnBlockLayout"}connectedCallback(){super.connectedCallback()}}(0,o.gn)([C.LO],Se.prototype,"layoutConfig",void 0);const _e=v.d`
`,Te=u.i`
:host{
display: block;
}
`.withBehaviors(new m.g("layoutStyle"));class Me extends p.F{constructor(){super(...arguments),this._displayName="MsnFlexLayout"}connectedCallback(){super.connectedCallback()}}(0,o.gn)([C.LO],Me.prototype,"layoutConfig",void 0),(0,o.gn)([C.LO],Me.prototype,"layoutStyle",void 0);const Ae=v.d`
`,Fe=u.i`
:host {
display: flex;
}
`.withBehaviors(new m.g("layoutStyle"));class Ie extends p.F{constructor(){super(...arguments),this._displayName="MsnPixelLayout"}connectedCallback(){super.connectedCallback()}}(0,o.gn)([C.LO],Ie.prototype,"layoutConfig",void 0);const je=v.d`
`,Ee=u.i`
:host {
position: absolute;
}
`.withBehaviors(new m.g("layoutStyle")),Oe=v.d`
`,Be=u.i``.withBehaviors(new m.g("layoutStyle"));let De=class extends Ie{};De=(0,o.gn)([(0,g.M)({name:"msn-pixel-layout",template:je,styles:Ee})],De);let He=class extends Me{};He=(0,o.gn)([(0,g.M)({name:"msn-flex-layout",template:Ae,styles:Fe})],He);let ze=class extends Se{};ze=(0,o.gn)([(0,g.M)({name:"msn-block-layout",template:_e,styles:Te})],ze);let Pe=class extends p.F{};Pe=(0,o.gn)([(0,g.M)({name:"msn-uber-layout",template:Oe,styles:Be})],Pe);class Re extends $e{doBuild(e,t){if(!e.layout)return t;const i=e.layout;if(!i.mode)return t;switch(i.mode){case"pixel":return function(e,t){return v.d`
e}
>
${t}
`}(i,t);case"flex":return function(e,t){return v.d`
e}
>
${t}
`}(i,t);case"block":return function(e,t){return v.d`
e}
>
${t}
`}(i,t);default:return t}}}(0,o.gn)([(0,c.Et)(l.iJb,"LayoutBuilder.DoBuild")],Re.prototype,"doBuild",null);const Ne=u.i`
:host {
display: block;
height: 100%;
width: 100%;
}
`,Ve=v.d`
`;let Ue=class extends g.H{constructor(){super(...arguments),this.clickedBeacon=!1,this.clickedTelemetry=!1,this.clickedUserAction=!1,this.telemetryMetadata=""}};(0,o.gn)([(0,d.Lj)({mode:"boolean"})],Ue.prototype,"clickedBeacon",void 0),(0,o.gn)([(0,d.Lj)({mode:"boolean"})],Ue.prototype,"clickedTelemetry",void 0),(0,o.gn)([(0,d.Lj)({mode:"boolean"})],Ue.prototype,"clickedUserAction",void 0),(0,o.gn)([d.Lj],Ue.prototype,"telemetryMetadata",void 0),Ue=(0,o.gn)([(0,g.M)({name:"msn-native-ad-telemetry",template:Ve,styles:Ne})],Ue);var Ze=i(36159),We=i(26243),Ge={impressionLog:(e,t,i)=>{var o,n,a,r,s,d;const l=null===(d=null===(s=null===(r=null===(a=null===(n=null===(o=null==t?void 0:t.parent)||void 0===o?void 0:o.shadowRoot)||void 0===n?void 0:n.querySelector("msn-native-ad-title"))||void 0===a?void 0:a.shadowRoot)||void 0===r?void 0:r.querySelector(".native-ad-title-wrapper"))||void 0===s?void 0:s.children)||void 0===d?void 0:d[0],c=null==l?void 0:l.scrollHeight,p=null==l?void 0:l.clientHeight;c&&p&&(0,We._)(e.id,"nativeAdCardImpression",`${c},${p}`,0,i)},clickLog:(e,t,i)=>{var o,n,a,r,s,d;const l=null===(d=null===(s=null===(r=null===(a=null===(n=null===(o=null==t?void 0:t.parent)||void 0===o?void 0:o.shadowRoot)||void 0===n?void 0:n.querySelector("msn-native-ad-title"))||void 0===a?void 0:a.shadowRoot)||void 0===r?void 0:r.querySelector(".native-ad-title-wrapper"))||void 0===s?void 0:s.children)||void 0===d?void 0:d[0],c=null==l?void 0:l.scrollHeight,p=null==l?void 0:l.clientHeight;c&&p&&(0,We._)(e.id,"nativeAdCardClick",`${c},${p}`,0,null==i?void 0:i.target)}};var qe,Xe={PrgTitle2:Ge,PrgTitle2C:Ge};!function(e){e[e.adChoice=0]="adChoice",e[e.destination=1]="destination",e[e.nativeAdCard=2]="nativeAdCard"}(qe||(qe={}));class Qe extends $e{doBuild(e,t){if(e.userActionLogger){const{impressionLog:t,clickLog:i}=Xe[e.userActionLogger]||{};!Ze.Km.clickLog&&i&&(Ze.Km.clickLog=i),!Ze.Km.impressionLog&&t&&(Ze.Km.impressionLog=t)}if(!e.telemetry)return t;const i=e.telemetry,o=!!i.metadata;return v.d`
${t}
`}}(0,o.gn)([(0,c.Et)(l.iJb,"TelemetryBuilder.doBuild")],Qe.prototype,"doBuild",null);const Ke=new class{constructor(){this.create=(0,r.Z)(this.createInternal),this.layoutBuilder=new Re,this.telemetryBuilder=new Qe,this.telemetryBuilder.chain(this.layoutBuilder),this.componentBuilder=new Le,this.componentBuilder.chain(this.telemetryBuilder),this.rootBuilder=new ke,this.rootBuilder.chain(this.componentBuilder)}registerCreator(e,t){this.componentBuilder.registerCreator(e,t)}createInternal(e){return this.rootBuilder.build(e,null)}};Ke.registerCreator("ad-title-mask",(e=>v.d`
null==e?void 0:e.layout}
id="${e=>e.id}${e=>null==e.index?"":`_${e.index}`}-mask"
destination-url=${e=>e.destinationUrl}
title=${e=>e.title}
tel-metadata=${e=>{var t,i;return null===(i=null===(t=null==e?void 0:e.adTelemetryContext)||void 0===t?void 0:t.destination)||void 0===i?void 0:i.getMetadataTag()}}
${(0,y.lq)(!0,!1)}
component-name="${null==e?void 0:e.name}"
>
`)),Ke.registerCreator("product-image",(e=>v.d`
${(0,w.g)((e=>e.imageData),v.d`
null==e?void 0:e.layout}
src=${t=>((e,t)=>{var i,o;return e&&(null===(o=null===(i=t.assets)||void 0===i?void 0:i.transparentImage)||void 0===o?void 0:o.url)?t.assets.transparentImage.url:t.imageData&&t.imageData.source})(null==e?void 0:e.useTransparentImage,t)}
alt-text=${e=>e.imageData&&e.imageData.altText}
is-hovered=${e=>e.hoverState&&e.hoverState.isHovered}
image-mask-on=${()=>(null==e?void 0:e.imageMaskOn)?"on":"off"}
image-mask-opacity=${()=>null==e?void 0:e.imageMaskOpacity}
trim-bottom=${()=>null==e?void 0:e.trimBottom}
object-fit=${()=>(null==e?void 0:e.useTransparentImage)?"contain":"cover"}
use-drop-shadow=${()=>(null==e?void 0:e.useTransparentImage)&&!(null==e?void 0:e.noDropShadow)}
use-transparent-background=${()=>null==e?void 0:e.useTransparentImage}
image-mask-left=${()=>null==e?void 0:e.imageMaskLeft}
image-mask-top=${()=>null==e?void 0:e.imageMaskTop}
image-mask-width=${()=>null==e?void 0:e.imageMaskWidth}
image-mask-height=${()=>null==e?void 0:e.imageMaskHeight}
id="${e=>e.id}-product-image"
rlink=${e=>e.destionationUrl}
component-name=${null==e?void 0:e.name}
:visualReadinessCallback=${e=>e.visualReadinessCallback}
enable-native-ad-hover-contrast=${e=>e.enableNativeAdHoverContrast}
pattern-mode=${()=>null==e?void 0:e.patternMode}
>
`)}
`)),Ke.registerCreator("gradient-mask",((e,t)=>v.d`
${(0,w.g)((e=>e.destinationUrl),v.d`
null==e?void 0:e.layout}
paddingTop=${e&&e.paddingTop}
paddingBottom=${e&&e.paddingBottom}
is-radial-mask=${e&&e.isRadialMask}
is-full-gradient=${e&&e.isFullGradient}
use-dynamic-style=${e&&e.useDynamicStyle}
height=${e&&e.height}
background="${e&&e.background}"
@click=${e=>e.destinationUrl&&window.open(e.destinationUrl)}
${e&&e.setClickBeacon?(0,y.lq)(!0,!1):""}
component-name="${null==e?void 0:e.name}"
use-short-gradient=${e=>e.useShorterGradient}
pe-seasonal-color-mode=${e&&e.peSeasonalColorMode}
>
${(0,w.g)((()=>t),t)}
`)}
`)),Ke.registerCreator("ad-title",(e=>v.d`
null==e?void 0:e.layout}
is-hovered=${e=>e.hoverState&&e.hoverState.isHovered}
id="${e=>e.id}${e=>null==e.index?"":`_${e.index}`}-ad-title"
title=${e=>(e=>{var t,i,o;return((null===(t=e.template)||void 0===t?void 0:t.templateType)===V||(null===(i=e.template)||void 0===i?void 0:i.templateType)===U)&&(null===(o=e.assets)||void 0===o?void 0:o.shortTitle)||e.title})(e)}
destination-url=${e=>e.destinationUrl}
custom-style=${e&&e.customStyle}
custom-style-hovered=${null==e?void 0:e.customStyleHovered}
animation-on=${e=>e.template&&e.template.templateType===D.SI.ContentReveal}
line-height=${t=>((e,t)=>e&&("infopane"===e.region||"resinfopane"===e.region)&&e.items&&e.items.length>1?28:t&&t.lineHeight)(t,e)}
font-weight=${t=>((e,t)=>e&&("infopane"===e.region||"resinfopane"===e.region)&&e.items&&e.items.length>1?400:t&&t.fontWeight)(t,e)}
two-lines-title=${t=>{var i;return(null==e?void 0:e.twoLine)||t.hasAnyInlineDecoration&&!(null==e?void 0:e.oneLineTitle)||(null===(i=t.template)||void 0===i?void 0:i.templateType)===D.SI.TitleMaxLine2||t.adSlugGA}}
one-line-title=${t=>null==e?void 0:e.oneLineTitle}
font-family=${t=>((e,t)=>t?t.includes(" ")?`"${t}"`:t:e.fontFamilyOnCardContent||"inherit")(t,null==e?void 0:e.fontFamily)}
font-size=${t=>((e,t)=>e&&("infopane"===e.region||"resinfopane"===e.region)&&e.items&&e.items.length>1?20:t&&t.titleFontSize)(t,e)||t.feedFontSize}
is-anaheim-design=${e=>e.isAnaheimDesign}
is-river-region=${e=>"river"===e.region||"resriver"===e.region||"rightRail"===e.region||"rightrail"===e.region}
tel-metadata=${e=>{var t,i;return null===(i=null===(t=null==e?void 0:e.adTelemetryContext)||void 0===t?void 0:t.destination)||void 0===i?void 0:i.getMetadataTag()}}
${(0,y.lq)(!0,!1)}
${(null==e?void 0:e.isFeedV2)?"is-feed-v2":""}
component-name="${null==e?void 0:e.name}"
>
`)),Ke.registerCreator("ad-label",(e=>{var t;return v.d`
${(0,w.g)((e=>e.privacyUrl),v.d`
null==e?void 0:e.layout}
privacy-url="${e=>e.privacyUrl}"
ad-label-text-opacity="${null!==(t=null==e?void 0:e.adLabelTextOpacity)&&void 0!==t?t:"0.7"}"
ad-label-text="${e=>e.adLabelText}"
type="${t=>Z(t,e)}"
native-ad-ad-label-text="${e=>e.strings&&e.strings.nativeAdAdLabelText}"
tel-metadata="${e=>{var t,i;return null===(i=null===(t=null==e?void 0:e.adTelemetryContext)||void 0===t?void 0:t.adLabel)||void 0===i?void 0:i.getMetadataTag()}}"
id="${e=>e.id}-ad-label"
${(null==e?void 0:e.isFeedV2)?"is-feed-v2":""}
${(null==e?void 0:e.isSeasonal)?"is-seasonal":""}
component-name="${null==e?void 0:e.name}"
>
`)}
`})),Ke.registerCreator("provider-name",(e=>{var t;return v.d`
e.destinationUrl}
provider-name=${e=>e.providerData&&e.providerData.name}
custom-style-class=${e&&e.customStyleClass}
ad-slug-ga=${e=>e.adSlugGA}
tel-metadata=${e=>{var t,i;return null===(i=null===(t=null==e?void 0:e.adTelemetryContext)||void 0===t?void 0:t.destination)||void 0===i?void 0:i.getMetadataTag()}}
font-family=${t=>((e,t)=>t?t.includes(" ")?`"${t}"`:t:e.fontFamilyOnCardContent||"inherit")(t,null==e?void 0:e.fontFamily)}
has-elite-badge=${e=>{var t;return!!(null===(t=e.assets)||void 0===t?void 0:t.eliteBadge)}}
ad-label-text-opacity="${null!==(t=null==e?void 0:e.adLabelTextOpacity)&&void 0!==t?t:"0.7"}"
${(null==e?void 0:e.isFeedV2)?"is-feed-v2":""}
font-size=${null==e?void 0:e.fontSize}
line-height=${null==e?void 0:e.lineHeight}
:layoutConfig=${t=>null==e?void 0:e.layout}
:localizedStrings=${e=>e.localizedStrings}
color="${null==e?void 0:e.color}"
font-weight="${null==e?void 0:e.fontWeight}"
component-name="${null==e?void 0:e.name}"
${(null==e?void 0:e.isSeasonal)?"is-seasonal":""}
>
`})),Ke.registerCreator("disclaimer",J.Zg),Ke.registerCreator("ad-choice",(e=>v.d`
null==e?void 0:e.layout}
id="${e=>e.id}${e=>null==e.index?"":`_${e.index}`}-ad-choice"
ad-choice-icon-url=${e=>e.adChoiceIconUrl}
native-ad-ad-choice-text=${e=>e.strings&&e.strings.nativeAdAdChoiceText}
${e.isFeedV2?"is-feed-v2":""}
tel-metadata=${e=>{var t,i;return null===(i=null===(t=null==e?void 0:e.adTelemetryContext)||void 0===t?void 0:t.adChoice)||void 0===i?void 0:i.getMetadataTag()}}
:iconStyles=${()=>e.iconStyles}
component-name="${null==e?void 0:e.name}"
id="${e=>e.id}-ad-choice"
>
`)),Ke.registerCreator("see-more",(e=>v.d`
null==e?void 0:e.layout}
:data=${t=>Object.assign(Object.assign({},t),{isFeedV2:e&&e.isFeedV2,isHovered:t.hoverState&&t.hoverState.isHovered})}
data-t="${e=>{var t,i;return null===(i=null===(t=null==e?void 0:e.adTelemetryContext)||void 0===t?void 0:t.seeMore)||void 0===i?void 0:i.getMetadataTag()}}"
component-name="${null==e?void 0:e.name}"
>
`)),Ke.registerCreator("like-button",(e=>v.d`
null==e?void 0:e.layout}
native-ad-like-text=${e=>e.strings&&e.strings.nativeAdLikeText}
native-ad-unlike-text=${e=>e.strings&&e.strings.nativeAdUnLikeText}
beaconsJson=${e=>e.beaconsJson}
component-name="${null==e?void 0:e.name}"
>
`)),Ke.registerCreator("call-to-action",(e=>v.d`
e.hoverState&&e.hoverState.isHovered}
cta-mode=${e&&e.ctaMode||"default"}
destination-url=${e=>e.destinationUrl}
tel-metadata=${e=>{var t,i;return null===(i=null===(t=null==e?void 0:e.adTelemetryContext)||void 0===t?void 0:t.destination)||void 0===i?void 0:i.getMetadataTag()}}
${e&&"arrow"===e.ctaMode&&(0,y.lq)(!0,!1)}
component-name="${null==e?void 0:e.name}"
:layoutConfig=${t=>null==e?void 0:e.layout}
>
`)),Ke.registerCreator("trending",(e=>v.d`
null==e?void 0:e.layout}
destination-url="${e=>e.destinationUrl}"
title="${e=>e.title}"
trending-title-text=${xe}
trending-text="${e=>(0,be.Z)(e,"localizedStrings.nativeAdTrendingText","Trending")}"
is-hovered=${e=>e.hoverState&&e.hoverState.isHovered}
tel-metadata=${e=>{var t,i;return null===(i=null===(t=null==e?void 0:e.adTelemetryContext)||void 0===t?void 0:t.destination)||void 0===i?void 0:i.getMetadataTag()}}
${(0,y.lq)(!0,!1)}
component-name="${null==e?void 0:e.name}"
>
`)),Ke.registerCreator("color-mask",(e=>v.d`
e.feedV2?t.dynamicBackground:t.layoutColor}
is-show=${t=>e&&e.alwaysPresent||t.hoverState&&t.hoverState.isHovered}
${(null==e?void 0:e.feedV2)?"feed-v2":""}
component-name="${null==e?void 0:e.name}"
:layoutConfig=${t=>null==e?void 0:e.layout}
>
`)),Ke.registerCreator("sale-highlight-badge",(e=>v.d`
null==e?void 0:e.layout}
component-name="${null==e?void 0:e.name}"
discount-text="${e=>{var t,i;const o=(null===(t=e.localizedStrings)||void 0===t?void 0:t.nativeAdOnSaleTextCapital)||"{0}% OFF";return ve.Ld.Format(o,null===(i=e.assets)||void 0===i?void 0:i.discount)}}"
>
`)),Ke.registerCreator("sale-highlight-title",(e=>v.d`
null==e?void 0:e.layout}
/>
`)),Ke.registerCreator("sale-highlight-horizontal-title",(e=>v.d`
null==e?void 0:e.layout}
/>
`)),Ke.registerCreator("div-wrapper",((e,t)=>v.d`
${t}
`)),Ke.registerCreator("free-shipping",(e=>v.d`
((e,t)=>t?t.includes(" ")?`"${t}"`:t:e.fontFamilyOnCardContent||"inherit")(t,null==e?void 0:e.fontFamily)}
color=${e.color}
icon=${e.icon}
data=${e=>(0,be.Z)(e.localizedStrings,"nativeAdFreeShippingText")}
component-name="${null==e?void 0:e.name}"
:layoutConfig=${t=>null==e?void 0:e.layout}
>
`)),Ke.registerCreator("rating",(e=>v.d`
e.elementStyle}
elementSize=${e.elementSize}
rating=${e=>e.assets&&e.assets.rating}
review-data=${e=>e.assets.review}
is-show-review=${e.displayReviewCount}
font-family=${t=>((e,t)=>t?t.includes(" ")?`"${t}"`:t:e.fontFamilyOnCardContent||"inherit")(t,null==e?void 0:e.fontFamily)}
component-name="${null==e?void 0:e.name}"
:layoutConfig=${t=>null==e?void 0:e.layout}
>
`)),Ke.registerCreator("special-offer",(e=>v.d`
e.localizedStrings}
displayed-text="${e=>e.assets.specialOffer.displayedText}"
promotional-text="${e=>e.assets.specialOffer.promotionalText}"
redemption-code="${e=>e.assets.specialOffer.redemptionCode}"
days-from-expiration="${e=>e.assets.specialOffer.daysFromExpiration}"
destination-url="${e=>e.assets.specialOffer.destinationURL}"
margin-left="-6"
is-dr-config=${e&&e.isDrConfig}
${(0,y.lq)(!0,!1)}
component-name="${null==e?void 0:e.name}"
:layoutConfig=${t=>null==e?void 0:e.layout}
>
`)),Ke.registerCreator("ad-full-card-gradient",((e,t)=>v.d`
null==e?void 0:e.layout}
>
${(0,w.g)((()=>t),t)}
`));var Je=i(84786),Ye=i(16517),et=i(63045);const tt=n.DI.getOrCreateDOMContainer(),it=window.matchMedia("(prefers-color-scheme: dark)");let ot,nt;function at(){tt.register(n.YM.instance(a.l,Object.assign(Object.assign({},this.strings),ot))),this.adBackgroundColor=(null==it?void 0:it.matches)?"#2E2E2E":"#FFFFFF",null==it||it.addEventListener("change",this.themeModeSwitchHandler)}class rt extends g.H{constructor(){super(),this.adBackgroundColor="",this.hoverState={isHovered:!1,isDecorationLinesExpanded:!1},(0,C.LO)(this.hoverState,"isHovered"),(0,C.LO)(this.hoverState,"isDecorationLinesExpanded")}get componentFactory(){return Ke}themeModeSwitchHandler(){this.adBackgroundColor=(null==it?void 0:it.matches)?"#2E2E2E":"#FFFFFF"}connectedCallback(){var e,t;if(this.configRef&&!ot){const i=null===(e=Je.U.getInstance())||void 0===e?void 0:e.getConfigResolver(),o=null===(t=null==i?void 0:i.tryGetConfigSync)||void 0===t?void 0:t.call(i,this.configRef);Ye.jG.ConfigOrigins.feature===et.w.Local&&Je.U.getConfig(this.configRef).then((e=>{nt=null==e?void 0:e.properties,ot=null==nt?void 0:nt.localizedStrings})),nt=null==o?void 0:o.properties,ot=null==nt?void 0:nt.localizedStrings}super.connectedCallback(),at.call(this)}get wcData(){if(this.adData&&this.adData.adLabelText){const e=Object.assign(Object.assign({},this.config),nt),t=Object.assign(Object.assign(Object.assign({},this.localizedStrings),this.strings),ot);return s(this.adData,e,t)}return null}disconnectedCallback(){null==it||it.removeEventListener("change",this.themeModeSwitchHandler)}}(0,o.gn)([C.LO],rt.prototype,"adData",void 0),(0,o.gn)([C.LO],rt.prototype,"isInfopane",void 0),(0,o.gn)([C.LO],rt.prototype,"adBackgroundColor",void 0),(0,o.gn)([C.LO],rt.prototype,"localizedStrings",void 0),(0,o.gn)([C.LO],rt.prototype,"configRef",void 0)},86869:function(e,t,i){i.d(t,{z:function(){return o}});const o=i(78923).i`
`},79883:function(e,t,i){i.d(t,{Qh:function(){return $}});var o=i(88087),n=i(64553),a=i(33764),r=i(9791);const s=e=>{var t;return(null===(t=null==e?void 0:e.template)||void 0===t?void 0:t.dynamicRenderingConfig)||o.$},d=(e,t)=>{const i=parseInt((null!=t?t:"#2E2E2E").slice(1),16);return`rgba(${i>>16&255},${i>>8&255},${255&i},${e})`},l=(0,r.Z)((e=>d(.8,e))),c=(0,r.Z)((e=>d(0,e))),p=e=>s(e.wcData).cardStyles||{};var h,g=i(49218),u=i(89150),m=i(93703),f=i(29666),v=i(32804);!function(e){e.defaultRiverGradient="#2E2E2E",e.defaultRiverBackground="#FFFFFF",e.defaultInfopaneGradient="#000000",e.defaultInfopaneBackground="#FFFFFF",e.zIndexV2OriginalBackground="transparent"}(h||(h={}));const b=e=>{var t;return(null===(t=e.adData)||void 0===t?void 0:t.enableAdsColorBleed)?e.adData.adBackgroundColor:x(e)},x=e=>{var t,i,o,n,a;const r=s(e.wcData);if(r.layoutColor)return r.layoutColor;const d=null===(i=null===(t=e.adData)||void 0===t?void 0:t.template)||void 0===i?void 0:i.templateType;return(d===f.SI.ZIndexV2Polygon||d===f.SI.ZIndexV2Original||d===f.SI.SaleHighlightV3||d===f.SI.SaleHighlightV4)&&(null===(o=e.adData)||void 0===o?void 0:o.layoutColor)&&(null===(a=null===(n=e.adData)||void 0===n?void 0:n.assets)||void 0===a?void 0:a.transparentImage)?e.adData.layoutColor:[f.SI.PESeasonalAds,f.SI.PESeasonalAdsV1,f.SI.PESeasonalAdsV1P].includes(d)?e.adBackgroundColor:""},y=g.d`
e.hoverState.isHovered=!0}
@mouseleave=${e=>e.hoverState.isHovered=!1}
style="
background-color: ${e=>(e=>{var t,i;return(null===(i=null===(t=e.adData)||void 0===t?void 0:t.template)||void 0===i?void 0:i.templateType)===f.SI.ZIndexV2Original?h.zIndexV2OriginalBackground:h.defaultRiverBackground})(e)};
grid-area:${e=>{var t;return null===(t=e.adData)||void 0===t?void 0:t.grid_area}};
--ad-background-color: ${e=>b(e)||h.defaultRiverGradient};
--gradient-mid-color: ${e=>l(b(e)||h.defaultRiverGradient)};
--gradient-end-color: ${e=>c(b(e)||h.defaultRiverGradient)};
${e=>(e=>{const t=p(e);let i="";return null==t.borderRadius&&null==t.borderWidth||(i+="border-radius: 0;"),null!=t.backgroundColor&&(i+=`background-color: ${t.backgroundColor};`),i})(e)}
"
class="${e=>{var t;return null===(t=e.adData)||void 0===t?void 0:t.cardSize}}"
card-fill-color="${e=>{var t;return x(e)||(null===(t=e.adData)||void 0===t?void 0:t.adBackgroundColor)}}"
>
${(0,u.rx)((e=>{var t;return[Object.assign(Object.assign({},e.wcData),{visualReadinessCallback:null===(t=e.adData)||void 0===t?void 0:t.visualReadinessCallback,hoverState:e.hoverState,componentFactory:e.componentFactory})]}),g.d`
${e=>e.componentFactory.create(s(e))}
`)}
`,w=g.d`
e.hoverState.isHovered=!0}
@mouseleave=${e=>e.hoverState.isHovered=!1}
style="
contain: content;
height: 100%;
background-color: ${e=>h.defaultInfopaneBackground};
grid-area:${e=>{var t;return null===(t=e.adData)||void 0===t?void 0:t.grid_area}};
--ad-background-color: ${e=>h.defaultInfopaneGradient};
--gradient-mid-color: ${e=>l(h.defaultInfopaneGradient)};
--gradient-end-color: ${e=>c(h.defaultInfopaneGradient)};
--neutral-foreground-rest: ${e=>h.defaultInfopaneBackground};
"
class="${e=>{var t;return null===(t=e.adData)||void 0===t?void 0:t.cardSize}}"
card-fill-color="${e=>{var t;return null===(t=e.adData)||void 0===t?void 0:t.adBackgroundColor}}"
>
${(0,u.rx)((e=>[Object.assign(Object.assign({},e.wcData),{hoverState:e.hoverState,componentFactory:e.componentFactory})]),g.d`
${e=>e.componentFactory.create((e=>{var t;return(null===(t=null==e?void 0:e.template)||void 0===t?void 0:t.dynamicRenderingConfig)||n.v})(e))}
`)}
`,C=g.d`
`,$=g.d`
${(0,m.g)((e=>e.wcData),(e=>e.isInfopane?w:y))}
${(0,m.g)((e=>!e.wcData),C)}
`},90365:function(e,t,i){i.d(t,{bS:function(){return c}});var o=i(33940),n=i(19591),a=i(28904),r=i(79883),s=i(86869),d=i(92773),l=i(26415);let c=class extends n.q{};c=(0,o.gn)([(0,a.M)({name:"msn-native-ad-wc",template:r.Qh,styles:s.z}),(0,d.uj)(l.EoX,"msn-native-ad-wc")],c)}},r={};function s(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,loaded:!1,exports:{}};return a[e].call(i.exports,i,i.exports,s),i.loaded=!0,i.exports}s.m=a,e=[],s.O=function(t,i,o,n){if(!i){var a=1/0;for(c=0;c=n)&&Object.keys(s.O).every((function(e){return s.O[e](i[d])}))?i.splice(d--,1):(r=!1,n0&&e[c-1][2]>n;c--)e[c]=e[c-1];e[c]=[i,o,n]},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,{a:t}),t},i=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},s.t=function(e,o){if(1&o&&(e=this(e)),8&o)return e;if("object"==typeof e&&e){if(4&o&&e.__esModule)return e;if(16&o&&"function"==typeof e.then)return e}var n=Object.create(null);s.r(n);var a={};t=t||[null,i({}),i([]),i(i)];for(var r=2&o&&e;"object"==typeof r&&!~t.indexOf(r);r=i(r))Object.getOwnPropertyNames(r).forEach((function(t){a[t]=function(){return e[t]}}));return a.default=function(){return e},s.d(n,a),n},s.d=function(e,t){for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.f={},s.e=function(e){return Promise.all(Object.keys(s.f).reduce((function(t,i){return s.f[i](e,t),t}),[]))},s.u=function(e){return e+"."+{"experiences_autos-marketplace-card_dist_index_js":"a6753e0bb295c68b9480","experiences_breaking-news-wc_dist_index_js":"471f6f45178a6d0df667","experiences_card-action-wc_dist_index_js":"c5796dba6e0bda2732d3","experiences_conditional-banner-hp-wc_dist_index_js":"33b2dfae04515e35363a","experiences_dense-card_dist_index_js":"2f56c3f4a53f743ef93c","experiences_display-ads-wc_dist_index_js":"7ab7551aceafd480b53e","experiences_feedback-dialog-wc_dist_index_js":"edfe4e8b3b45f446684f","experiences_feed-navigation-hp_dist_index_js":"4b6693ef552a04594760","experiences_homepage-footer_dist_index_js":"f3e92ef63f5cb20a761f","experiences_interests-wc_dist_index_js":"20da15758dfae7c2e9ba","experiences_language-toggle-wc_dist_index_js":"1835395a9a89cf415529","experiences_mail-signout-banner_dist_index_js":"9ab264bc2c2cc7ffbad8","experiences_me-stripe-wc_dist_index_js":"74ccbddf9a2868619bad","libs_finance-service-library_dist_redux_FinanceData_connector_js-node_modules_lodash-es_round_js":"ee3b94aba3ec0b01fb4d","experiences_money-info-card-wc_dist_index_js-node_modules_crypto-js_enc-base64_js":"34006e91c50020cfae91","experiences_ms-rewards-wc_dist_index_js":"dabe5206a178f02b072f","notification-bell-wc":"63feb9d576bd0f4294c4","experiences_page-refresh-wc_dist_index_js":"1442ea269325d43eae84","experiences_polls-card-wc_dist_index_js":"b682dd488a01d98f2298","experiences_recommended-sites-wc_dist_index_js":"2feaf2d450fcd47820fb","experiences_search-history-edgenext-wc_dist_index_js":"0a38ef6c9e8f581c4040","experiences_shopping-carousel-wc_dist_index_js":"c5863ba07c76e41a8d2d","experiences_superapp-upsell-card_dist_index_js":"d01a63fbb20ebb941a30","experiences_superapp-banner-wc_dist_index_js":"17ae5537ffe97eed7dd4","experiences_toast-wc_dist_index_js":"410ee79e2030abcdd0f6","experiences_trending-now-wc_dist_index_js":"93767acef4f09612561d","web-components_content-video-player_dist_index_js":"af60117a590130380937","experiences_video-card-wc_dist_index_js":"d34aeb3f88ead4c79316","libs_icons-wc_icons_AqiIcon_svg-libs_icons-wc_icons_ArrowDownSimple_svg-libs_icons-wc_icons_B-72b1d9":"8f1d030131cd7a161a08","weather-card-wc":"dbf0e6a63ee683688ba8","weather-today-mini-wc":"9b13683bef06c8ae01f6","welcome-greeting-wc":"4227f9656a63d6f475ad","experiences_views-native-ad_dist_index_js":"f59d265f05945161625b","experiences_yandex-search-box-wc_dist_index_js":"aedba16bac5f68b4219f",lazy:"d5b2b8bcf9c459530edf","libs_ads-manager_dist_index_js":"fe0fe290bb3058a8d688","libs_category-data-connector_dist_index_js":"a09a5ad01ef8b9799f6b","libs_display-ads-manager_dist_index_js":"f19780212b302894f159","libs_feedback-data-connector_dist_index_js":"029bd658c1234a0adbcb","libs_iris-data-connector_dist_index_js":"42698c4b29bd93a8537b","libs_rewards-data-connector_dist_index_js":"c22a8d37dc141409b458","libs_navigation-data-connector_dist_index_js":"7a0764beaafb714925ff","libs_placement-manager_dist_index_js":"dea9abf0939726126f98","libs_smartlist-shared-data_dist_index_js":"e59bf75912c1538b8d35","libs_telemetry-data-connector_dist_index_js":"2d5a7544e3270e37c400","libs_weather-data-connector_dist_index_js":"facafc0316dd2214ca57","native-ad-wc":"cc720d4a67d7f0f007f7","reaction-breakdown-dialog":"10502ff0dea9bc607a62","super-list-card":"442cc6c5e7235f75b755","content-group":"90132ef9ec7e8d4ba901","grid-view-feed":"da2073d4f7dcfae5e4fd","entry-point-hp-mobile":"96a95ee4fc4a5432adb0","libs_entry-point-shared-utils_dist_index_js":"926d3ecc3714582517f2","diagnostic-web-vitals":"9a11ad4d1016fdfb891e","libs_pdp-service-library_dist_index_js":"5ce9f799d7c3e746ccde","libs_cookie-utils_dist_index_js":"8da1bdef376ab85aa2bf","libs_experiences-page-base-wc_dist_index_js":"d53e523b5ec10779fb02","libs_polls-service_dist_index_js":"eb28258095f82baa4f96","libs_ad-service_dist_index_js":"ef815dec5fb7c26fb6fb","libs_finance-service-library_dist_index_js-node_modules_crypto-js_enc-base64_js":"e894ed055063fdc5d62a",libs_auth_dist_index_js:"5c81f35542cac9354342","node_modules_intersection-observer_intersection-observer_js":"7ed8a4e215d160c64db4",nativeadsdecorations:"4f52fff43c7ad002ffa3",nativeadstemplates:"83fa67f57efcb3963378","web-components_native-ad-video_dist_index_js":"1af3213d9c197c8368a9","money-card-default":"4a05d47b8384243ddb70","money-card-dynamic-tabs":"07efe5a8197a74f89b92","experiences_video-card-wc_dist_video-manager_players_DailymotionPlayer_js":"2e10496c1c1b713b0c0a","experiences_video-card-wc_dist_video-manager_players_GlomexPlayer_js":"3c4cf9b93ea4cc305ec8","experiences_video-card-wc_dist_video-manager_players_TimesOfIndiaPlayer_js":"05b2bd4114f7c3cbe8f7","experiences_video-card-wc_dist_video-manager_players_ExpressenPlayer_js":"719a7ddf64dd6349ae03","experiences_video-card-wc_dist_video-manager_players_MTVKatsomoPlayer_js":"998ea63f48083941c0fa","experiences_video-card-wc_dist_video-manager_players_DaznPlayer_js":"68c32b5a9a66fab3c825","experiences_video-card-wc_dist_video-manager_players_OathPlayer_js":"77029d81db6ab87f5e3f","experiences_video-card-wc_dist_video-manager_players_CorriereTVPlayer_js":"1957eed1d0fd6b29e596","experiences_video-card-wc_dist_video-manager_players_RAIPlayer_js":"2ddd91ea57410c5be91d","experiences_video-card-wc_dist_video-manager_players_MediasetPlayer_js":"b249f2888d834995ec5d","experiences_video-card-wc_dist_video-manager_players_StadiumPlayer_js":"0342d90fffdcb260eb8b","experiences_video-card-wc_dist_video-manager_players_NBCSportsPlayer_js":"f004ec8dcbdfaa58a7c5","experiences_video-card-wc_dist_video-manager_players_TalkshoplivePlayer_js":"76003a39bd1f8e8404e9","experiences_video-card-wc_dist_video-manager_players_LiveNewsPlayer_js":"0fa54ca168c7f3922092","libs_video-card-plugin-factory_dist_xandr_XandrAdManager_js":"7d8573a86a476d2540d1","libs_video-card-plugin-factory_dist_virtualadsplayer_plugin_js":"c5be8d23a10d31a0598f","experiences_weather-card-wc_dist_components_weather-hide-dialog_index_js":"9456d381a1a5dc960b28","experiences_weather-card-wc_dist_components_weather-hide-remind_index_js":"f9744276d00d32e8d05c","experiences_weather-card-wc_dist_components_weather-report-issue_index_js":"18d89e4dec0ce2864ec4","libs_weather-shared-wc_dist_index_js":"16c22bd13c1b8991a2a3","weather-data-lazy-services":"769eacc6f12196f59ae5","experiences_welcome-greeting-wc_dist_components_finance-greeting_index_js":"afedef82a6a4c476c457","web-components_super-cards_dist_cards_sub-components_card-action-tray_OptedOutReactionTemplate_js":"45d65e07242e6f18ffd6",VpReadyHelper:"121a6043bb949af3c798","native-ad-like-button":"a41b30ff27257ce30e19","native-ad-trending":"f0f8e51340ab2f427876","native-ad-call-to-action":"2a74d2bf16e40627a28a","native-ad-sales-highlight-v1":"fc83432c05225bef9020","native-ad-sales-highlight-v3v4":"f077078b95fe57081c71","native-ad-decoration-combo":"730a1038fe165eec97e1","web-components_super-container_dist_register_MsftFeedModule_js":"811c1941a2706b7c9cbb","web-components_super-container_dist_register_CsFeedInfopaneModule_js":"f02f707df97506745a6b","web-components_super-container_dist_register_MsftInfopaneModule_js":"b3568717dfdd9fd60654","web-components_super-container_dist_register_CsFeedInfopane24Module_js":"05269e8a9c1545de3279","web-components_super-container_dist_register_CsFeedNoHoverModule_js":"400a15e222595cdd1cf4","web-components_super-container_dist_register_CsFeedUnderlineModule_js":"b8d5dbffd4613a670371","web-components_super-container_dist_register_CsFeedZoomModule_js":"cafe2a66b171497e2013","web-components_super-container_dist_register_CsFeedHoverShowAbstractModule_js":"82c2e86a065c6d51c4de","web-components_super-container_dist_register_CsFeedHoverShowWholeTitleModule_js":"6accaff6e1a44cbd1346","web-components_super-container_dist_register_CsFeedHoverScaleImageModule_js":"4731832f5a8d88f20139","web-components_super-container_dist_register_CsFeedRIS1Module_js":"ee687432b747e07c7e02","web-components_super-container_dist_register_CsFeedAdsLoggingModule_js":"cd515bb3d9c0b857eedf","web-components_super-container_dist_register_CsFeedAdsCTAModule_js":"4e3be8e0a448db477eb4","web-components_super-container_dist_register_CsFeedSmallerFontModule_js":"1991cdd6e3a8ff872b2d","web-components_super-container_dist_register_CsFeedT1FontModule_js":"b56d0097cfa137b4d47c","web-components_super-container_dist_register_CsFeedT2FontModule_js":"8fab265084d7f8e490c9","web-components_super-container_dist_register_CsFeedVideoCardModule_js":"a37ccd7aa61622275f9d","web-components_super-container_dist_register_CsFeedDescriptionModule_js":"3240beccee527de2fd12","web-components_super-container_dist_register_CsFeedSafeAdsModule_js":"f96a2f593c9702799ec7","web-components_super-container_dist_register_CsFeedEntNewsModule_js":"ce1a4b8cffe077c26c32","web-components_super-container_dist_register_CsFeedModule_js":"dd10e7d9ad4c95ead40b","libs_finance-service-library_dist_index_js":"d131070a473127c1d201"}[e]+".js"},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o={},n="@msnews/msnews-experiences:",s.l=function(e,t,i,a){if(o[e])o[e].push(t);else{var r,d;if(void 0!==i)for(var l=document.getElementsByTagName("script"),c=0;c