tive;
    text-decoration: none;
}

.rectangle-shape-link:hover .content-title,
.rectangle-shape-link:${K.b} .content-title {
    text-decoration: underline;
}

.rectangle-shape-link:${K.b} {
    outline: none;
}

.price-drop-badge {
    position: absolute;
    inset-block-start: 12px;
    inset-inline-start: 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 3px 5px;
    gap: 2px;
    background: rgb(255, 255, 255);
    border-radius: 4px;
    width: 71px;
    height: 20px;
    box-sizing: border-box;
}

.price-drop-text {
    font-family: ${J.SVJ};
    font-style: normal;
    font-weight: 600;
    font-size: 10px;
    line-height: 13px;
    color: #1A1A1A;
}

image-container::part(image-wrapper) {
    border-radius: 6px 6px 0px 0px;
}

image-container::part(image) {
    display: block;
    margin: 0;
    max-width: 100%;
    width: ${"278px"};
    height: ${"174px"};
    border-radius: 6px 6px 0px 0px;
    object-fit: cover;
}

.content-wrapper {
    height: ${"104px"};
    padding: 7px 12px;
    box-sizing: border-box;
    position: relative;
}

.content-title {
    font-family: ${J.SVJ};
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 22px;
    color: rgba(0, 0, 0, 0.83);
    overflow: hidden;
    white-space: normal;
    display: -webkit-box;
    word-break: break-all;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.content-info-wrapper {
    height: 19px;
    font-family: ${J.SVJ};
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: rgba(0, 0, 0, 0.83);
}

.content-info-price-mileage {
    display: flex;
    flex-direction: row;
}

.content-info-item {
    display: flex;
    flex-direction: row;
    gap: 2px;
    align-items: center;
}

.content-footer {
    position: absolute;
    inset-block-end: 10px;
    display: flex;
    gap: 2px;
    flex-direction: column;
    width: -webkit-fill-available;
}

.content-footer-text {
  font-family: ${J.SVJ};
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: #717171;
}

.content-footer-text svg path {
  fill: #717171;
}

.content-dealership-wrapper {
  height: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.content-dealership-info {
  display: flex;
  width: -webkit-fill-available;
}

.content-dealership-name {
  overflow: hidden;
  white-space: normal;
  display: -webkit-box;
  word-break: break-all;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  max-width: 70%;
}

.content-dealership-divider {
  font-weight: 400;
  font-size: 12px;
  margin: 0 4px;
}

.content-info-price {
  display: flex;
  flex-direction: row;
  gap: 4px;
  align-items: center;
}

.content-info-price-current-wrapper {
  display: flex;
  flex-direction: row;
}

.price-current {
  color: #DE3700;
}

.price-text-normal-middle {
  font-family: ${J.SVJ};
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
}

.price-text-small-upper {
  font-family: ${J.SVJ};
  font-style: normal;
  font-weight: 600;
  font-size: 10px;
  line-height: 14px;
  height: 22px;
  padding-top: 2px;
  box-sizing: border-box;
}

.price-origin {
  font-family: ${J.SVJ};
  font-style: normal;
  font-weight: 400;
  font-size: 10px;
  line-height: 14px;
  text-decoration-line: line-through;
  color: #6C6C6C;
}

.content-info-mileage {
  display: flex;
  flex-direction: row;
  gap: 6px;
  align-items: center;
}

.content-info-mileage svg {
  width: 12px;
}

.no-accident-badge {
  display: flex;
  flex-direction: row;
  gap: 2px;
  position: absolute;
  inset-inline-end: ${"12px"};
}

.no-accident-badge .badge-icon {
  height: 20px;
}

.carfax-badge {
  position: absolute;
  inset-inline-end: ${"12px"};
  inset-block-start: ${"30px"};
}

.carfax-badge .badge-icon {
  width: 50px;
}
`.withBehaviors((0,Q.Uu)(Y.i`
      .rectangle-shape-root.dark-mode-support {
        background: rgba(66, 66, 66, 1)
      }

      .content-title.dark-mode-support {
        color: rgba(255, 255, 255, 1);
      }

      .content-info-wrapper.dark-mode-support {
        color: rgba(255, 255, 255, 1);
      }
      .content-info-wrapper.dark-mode-support svg path {
        fill:  white;
      }

      .content-dealership-name.dark-mode-support {
        color: rgba(0, 0, 0, 0.54);
      }

      .content-footer-text.dark-mode-support {
        color: rgba(255, 255, 255, 0.54);
      }

      .content-dealership-wrapper.dark-mode-support svg path {
        fill: #FFFFFF;
        opacity: 0.54;
      }

      .price-origin.dark-mode-support {
        color: #FFFFFF;
      }

    `),new X.w("cardCategory",B.minimalist,Y.i`
      .content-wrapper {
        height: 57px;
        padding: 7px 12px;
        box-sizing: border-box;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .content-title {
        text-align: center;
      }

      .rectangle-shape-root {
        height: auto;
      }
    `),new X.w("useGradientBackground",!0,Y.i`
      .rectangle-shape-root {
        background: ${W};
      }
      .rectangle-shape-link {
        position: unset;
        text-decoration: none;
      }
      .gradient {
        position: absolute;
        top: -10px;
        bottom: 104px;
        width: 100%;
        z-index: -1;
        background: linear-gradient( 180deg, transparent 0%, var(--gradient-mid-color) 62.5%, var(--gradient-color) 100% );
      }
      .gradient-wrapper {
        position: absolute;
        bottom: 0px;
        width: 100%;
        z-index: 1;
        box-sizing: border-box;
        height: 140px;
      }
      
      .content-wrapper {
        position: absolute;
        bottom: 0px;
        width: 100%;
      }
    `),new X.w("useImageZoomIn",!0,Y.i`
        image-container::part(image-wrapper) {
            overflow: hidden;
        }
        
        image-container::part(image) {
          transition: transform 0.7s ease-out 0s;
        }
        
        image-container::part(image):hover {
            transform:scale(1.05);
         }
    `));var ee=i(36678);const te=Y.i`
  .image-wrapper {
    border-radius: 6px 6px 0px 0px;
  }

  .image {
    display: block;
    margin: 0;
    max-width: 100%;
    width: 278px;
    height: 174px;
    border-radius: 6px 6px 0px 0px;
    object-fit: cover;
  }
  
  msft-info-pane {
    box-shadow: unset;
  }
  
  msft-info-pane::part(next-flipper),
  msft-info-pane::part(previous-flipper) {
    width: 16px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0px;
    position: relative;
    fill: var(--neutral-foreground-rest);
    color: var(--neutral-foreground-rest);
    background: transparent;
    border: none;
    padding: 0px;
  }
  
  msft-info-pane::part(next-flipper)::before,
  msft-info-pane::part(previous-flipper)::before {
    content: "";
    opacity: 0.3;
    background: var(--neutral-fill-stealth-rest);
    position: absolute;
    inset: 0px;
    transition: all 0.1s ease-in-out 0s;
    border>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${n}`;throw new Error(t)}return e.json()}))),"addToWatchList"),this.tryInvalidateBulkFetchedPdpTargetType(n)}catch(e){return!1}return!0}))}generateUUID(){let e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const r=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?r:3&r|8).toString(16)}))}sortWatchList(e,t={}){var r;return(0,i.mG)(this,void 0,void 0,(function*(){const n=p.L.Finance,a="Follow",o=yield b.readPdpWithTargetType(p.L.Finance,!0,200,t),c=o&&(null===(r=o.value)||void 0===r?void 0:r.filter((e=>e.actionType===a&&e.targetId)));if(!c||c.length<e.length)return!1;const g={};let v=e.length;c.forEach((t=>{let r=e.findIndex((e=>e===t.targetId));r<0&&(r=v,v++),g[t.targetId]=JSON.stringify({actionType:a,targetId:t.targetId,targetType:n,rank:r,metadata:t.metadata})}));const m={method:"PUT",body:JSON.stringify(g),headers:yield this.getOneserviceHeaders(t),credentials:"include"},f=(0,u.PH)(this.pdpServiceEndpoint);((yield(0,y.XJ)())===s.Hy.SignedIn?l.$.getOneServiceParamsWithAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&f.searchParams.set(e.key,e.value)}));try{yield(0,h.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(f.href,m);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${n}`;throw new Error(t)}return e.json()}))),"sortWatchList"),this.tryInvalidateBulkFetchedPdpTargetType(p.L.Finance)}catch(e){return!1}return!0}))}updateWeatherInterests(e,t,r,a={},o){return(0,i.mG)(this,void 0,void 0,(function*(){const t=p.L.Weather,i={method:"POST",body:JSON.stringify({actionType:"Follow",targetType:t,targetId:e,metadata:{UserAction:{0:{UpdateTime:new Date,Location:r}}}}),headers:yield this.getOneserviceHeaders(a),credentials:"include"},c=(0,u.PH)(this.pdpServiceEndpoint);((yield(0,y.XJ)())===s.Hy.SignedIn?l.$.getOneServiceParamsWithAuth(null!=o?o:(0,d.Yq)().UserId,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth(null!=o?o:(0,d.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&c.searchParams.set(e.key,e.value)}));try{const e=yield this.fetchImpl(c.href,i);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for update weather interests call`;throw new Error(t)}}catch(e){return n.k.logError(e.message),!1}return!0}))}updateWeatherSettings(e,t,r={},n){return(0,i.mG)(this,void 0,void 0,(function*(){if(!e&&!t)return!0;let i="";i=e&&!t?'{"weatherDisplayUnit":"'+e+'"}':!e&&t?'{"userSettings":{"weatherLocationSettingMode":"'+t+'"}}':'{"weatherDisplayUnit":"'+e+'","userSettings":{"weatherLocationSettingMode":"'+t+'"}}';const a=yield this.getRequestInit({method:"POST"},r);a.body=i;const o=(0,u.PH)(this.userUpdateEndpoint);((yield(0,y.XJ)())===s.Hy.SignedIn?l.$.getOneServiceParamsWithAuth(null!=n?n:(0,d.Yq)().UserId,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth(null!=n?n:(0,d.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&o.searchParams.set(e.key,e.value)}));const c=yield this.fetchImpl(o.href,a);if(c.status>=400){const e=`OneService returned error response. Status: ${c.status} for update weather setting call`;throw new Error(e)}return!0}))}updateFinanceInterests(e){return(0,i.mG)(this,void 0,void 0,(function*(){if(!e)return!1;const t={financeInterests:e},r=JSON.stringify(t),i=yield this.getRequestInit({method:"POST"});i.body=r;const n=(0,u.PH)(this.userUpdateEndpoint),a="zh-cn"!==(0,d.Yq)().CurrentMarket;((yield(0,y.XJ)())===s.Hy.SignedIn&&a?l.$.getOneServiceParamsWithAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&n.searchParams.set(e.key,e.value)}));const o=yield this.fetchImpl(n.href,i);if(o.status>=400){const e=`OneService returned error response. Status: ${o.status} for update finance interests call`;throw new Error(e)}return!0}))}updateUserSettings(e,t={},r){return(0,i.mG)(this,void 0,void 0,(function*(){if(!e)return!0;const i=[];let a;for(a in e)null!=e[a]&&i.push('"'+a+'": '+JSON.stringify(e[a]));const o='{"userSettings":{'+i.join(", ")+"}}",c=yield this.getRequestInit({method:"POST"},t);c.body=o;const h=(0,u.PH)(this.userUpdateEndpoint);((yield(0,y.XJ)())===s.Hy.SignedIn?l.$.getOneServiceParamsWithAuth(null!=r?r:(0,d.Yq)().UserId,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth(null!=r?r:(0,d.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&h.searchParams.set(e.key,e.value)}));try{const e=yield this.fetchImpl(h.href,c);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for update weather setting call`;throw new Error(t)}}catch(e){return n.k.logError(e.message),!1}return!0}))}getPdpUserPreference(e,t={},r){return(0,i.mG)(this,void 0,void 0,(function*(){const a=yield this.getRequestInit({method:"GET"},t),o=(0,u.PH)(this.userUpdateEndpoint);[...(yield(0,y.XJ)())===s.Hy.SignedIn?l.$.getOneServiceParamsWithAuth(r||(0,d.Yq)().UserId,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth(r||(0,d.Yq)().UserId,this.ocid,!this.ocidOverride)].forEach((e=>{e.value&&o.searchParams.set(e.key,e.value)}));try{const e=yield(0,h.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(o.href,a);if(!e.ok){if(e.status>=400&&e.status<500&&408!=e.status)return e;throw Error(e.statusText)}return e}))),"readPDPData");if(!e.ok&&404!=e.status)throw Error(`code=${e.status}, ${e.statusText}`);return Object.assign(Object.assign({},yield e.json()),{is404:404==e.status})}catch(t){if(n.k.logError(t.message),e)throw Error(t.message);return null}}))}updatePdpLayoutPreference(e){return(0,i.mG)(this,void 0,void 0,(function*(){const t={method:"PUT",credentials:"include",body:JSON.stringify({dummyid:{userLayoutPreference:e}})},r=(0,u.PH)(this.userUpdateEndpoint);((yield(0,y.XJ)())===s.Hy.SignedIn?l.$.getOneServiceParamsWithAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&r.searchParams.set(e.key,e.value)}));try{const e=yield this.fetchImpl(r.href,t);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for update layout preference setting call`;throw new Error(t)}}catch(e){return n.k.logError(e.message),!1}return!0}))}updateSegmentCardsEnableStatus(e,t=null){return(0,i.mG)(this,void 0,void 0,(function*(){if(!e&&!e.length)return!0;const r=[];if(t){let e;for(e in t)null!=t[e]&&r.push('"'+e+'": '+JSON.stringify(t[e]))}const i=e.map((e=>e.cardType!=g.f.TopStoriesCard?`\\"${e.cardType}\\":${e.enabled?'\\"1\\"':'\\"0\\"'}`:"")).join(","),n=r.length>0?'{"segmentCardSettings":"{'+i+'}","userSettings":{'+r.join(", ")+"}}":'{"segmentCardSettings":"{'+i+'}"}';return this.updateUserPreference(n)}))}updateProductivityCardsEnableStatus(e){return(0,i.mG)(this,void 0,void 0,(function*(){if(!e&&!e.length)return!0;const t=`{userSettings:{enterpriseCardsEnabled:"{${e.map((e=>`\\"is${e.cardType}Enabled\\":${e.enabled?"true":"false"}`)).join(",")}}"}}`;return this.updateUserPreference(t)}))}updateGamingCardsEnableStatus(e){return(0,i.mG)(this,void 0,void 0,(function*(){if(!e&&!e.length)return!0;const t=`{userSettings:{gamingCards:"{${e.map((e=>`\\"is${e.cardType}Enabled\\":${e.enabled?"true":"false"}`)).join(",")}}"}}`;return this.updateUserPreference(t)}))}updateCommunitySettingsOptOutStatus(e){return(0,i.mG)(this,void 0,void 0,(function*(){if(!e&&!e.length)return!0;const t={};e.forEach((e=>{t[e.settingType]=e.optedOut?"1":"0"}));const r={communitySettings:t};return this.updateUserPreference(JSON.stringify(r))}))}updateWidgetSettings(e,t={},r){return(0,i.mG)(this,void 0,void 0,(function*(){if(!e)return!1;const i=e.map((e=>({actionType:"Follow",targetId:e.cardType,targetType:p.L.Widget,metadata:{prongsv2:{region:e.region,size:v.m[e.size],position:e.position}}})));return this.sendGenericActionRequest({additionalHeaders:t,endpoint:this.pdpServiceEndpoint,method:"POST",payload:JSON.stringify(i),appError:r})}))}muteWidget(e,t={},r){return(0,i.mG)(this,void 0,void 0,(function*(){if(!e||!e.length)return!1;const i=e.map((e=>({actionType:"Mute",targetId:e,targetType:p.L.Widget})));return this.sendGenericActionRequest({additionalHeaders:t,endpoint:this.pdpServiceEndpoint,method:"POST",payload:JSON.stringify(i),appError:r})}))}disableSpotlightCard(e,t){return(0,i.mG)(this,void 0,void 0,(function*(){if(!e)return!1;const r={actionType:"Disabled",definitionName:e,targetType:p.L.TopicFeed};return this.sendGenericActionRequest({endpoint:this.pdpServiceEndpoint,method:"POST",payload:JSON.stringify(r),appError:t})}))}enableSpotlightCard(e,t){return(0,i.mG)(this,void 0,void 0,(function*(){return!!e&&(yield this.deleteFromPdp(p.L.TopicFeed,"definitionName",[e],{},void 0,"Disabled",t))}))}sendGenericActionRequest(e){return(0,i.mG)(this,void 0,void 0,(function*(){const{additionalHeaders:t,additionalParams:r,endpoint:n,method:a,payload:o,appError:c}=e;if(!n||!a)return this.logError(new Error("Missing arguments: 'endpoint' and 'method' should be provided and valid"),c),!1;const p=(0,u.PH)(n);let g;((yield(0,y.XJ)())===s.Hy.SignedIn?l.$.getOneServiceParamsWithAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&p.searchParams.set(e.key,e.value)})),r&&r.forEach((e=>{e.value&&p.searchParams.set(e.key,e.value)}));try{JSON.parse(o),g=o}catch(e){g=JSON.stringify(o)}const v={method:a,body:g,headers:yield this.getOneserviceHeaders(t),credentials:"include"},m="GET"==a;try{return yield(0,h.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(p.href,v);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for payload: ${o}`;throw new Error(t)}return!m||(yield e.json())}))),"sendActions")}catch(e){return this.logError(e,c),!1}}))}getUserActions(e){return(0,i.mG)(this,void 0,void 0,(function*(){const t=[{key:"actionType",value:e}],r=yield this.sendGenericActionRequest({additionalParams:t,endpoint:this.userActionServiceEndPoint,method:"GET"});return r&&r.value}))}setUserAction(e,t){return(0,i.mG)(this,void 0,void 0,(function*(){return!!(yield this.sendGenericActionRequest({endpoint:this.userActionServiceEndPoint,method:"POST",payload:Object.assign({actionType:e},t)}))}))}deleteUserAction(e,t){return(0,i.mG)(this,void 0,void 0,(function*(){const r=[{key:"actionType",value:e},{key:"targetId",value:t.targetId},{key:"definitionName",value:t.definitionName}];return!!(yield this.sendGenericActionRequest({additionalParams:r,endpoint:this.userActionServiceEndPoint,method:"DELETE"}))}))}updateUserPreference(e){return(0,i.mG)(this,void 0,void 0,(function*(){const t=yield this.getRequestInit({method:"POST"});t.body=e;const r=(0,u.PH)(this.userUpdateEndpoint);((yield(0,y.XJ)())===s.Hy.SignedIn?l.$.getOneServiceParamsWithAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&r.searchParams.set(e.key,e.value)}));try{const i=yield this.fetchImpl(r.href,t);if(i.status>=400){const t=`OneService returned error response while updating user preference. Status: ${i.status}, payload: ${e}`;throw new Error(t)}}catch(e){return!1}return!0}))}setPdpTargetTypesForBulkLoad(e){e&&e.length&&!this.bulkGraphActionTargetTypes&&(this.bulkGraphActionTargetTypes=e)}readPdpWithTargetType(e,t=!1,r,n={},o=!0,s=[]){return(0,i.mG)(this,void 0,void 0,(function*(){if(o){const t=yield this.getFromWebWorker(e);if(t)return t}if(this.bulkGraphActionTargetTypes&&this.bulkGraphActionTargetTypes.length)if(this.bulkGraphActionTargetTypes.indexOf(e)>=0){this.bulkGraphActionResultCache=this.bulkGraphActionResultCache||(yield this.bulkGraphActionPromise||(this.bulkGraphActionPromise=this.fetchPdpWithTargetTypes(this.bulkGraphActionTargetTypes,t,r,n,s)));const i=this.bulkGraphActionResultCache.get(e);if(i)return{value:i}}else m.M0.sendAppErrorEvent(Object.assign(Object.assign({},a.srQ),{message:`Received an unknown target type "${e}" that was not in the bulk graph action target types list "${this.bulkGraphActionTargetTypes}". Falling back to new network call. Please update the EntryPoint config's "graphActionsToBulkLoad" property to include this type.`}));const i=(yield this.fetchPdpWithTargetTypes([e],t,r,n,s)).get(e);if(i)return{value:i}}))}deleteFromPdp(e,t,r,n={},a,o="Follow",c,p=[]){return(0,i.mG)(this,void 0,void 0,(function*(){const g={method:"DELETE",headers:yield this.getOneserviceHeaders(n),credentials:"include"},v=(0,u.PH)(this.pdpServiceEndpoint),f=(yield(0,y.XJ)())===s.Hy.SignedIn?l.$.getOneServiceParamsWithAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride),b=`targetType eq '${e}'`,S=r.map((e=>`${t} eq '${e}'`)).join(" or ");let T=`actionType eq '${o}' and (${S}) and (${b})`;a&&(T+=` and (degree eq '${a}')`),v.searchParams.set("$filter",T),[...f,...p].forEach((e=>{e.value&&v.searchParams.set(e.key,e.value)}));try{yield(0,h.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const t=yield this.fetchImpl(v.href,g);if(t.status>=400){const r=`OneService returned error response. Status: ${t.status} for actionType: ${o}, targetType: ${e}`;throw new Error(r)}return t}))),"deleteFromPdp"),this.tryInvalidateBulkFetchedPdpTargetType(e)}catch(e){return c&&m.M0.sendAppErrorEvent(Object.assign(Object.assign({},c),{pb:Object.assign(Object.assign({},c.pb),{actionType:o,error:e.message})})),!1}return!0}))}tryInvalidateBulkFetchedPdpTargetType(e){this.bulkGraphActionResultCache&&this.bulkGraphActionResultCache.delete(e)}fetchPdpWithTargetTypes(e,t=!1,r,n={},a=[]){return(0,i.mG)(this,void 0,void 0,(function*(){if(!e.length)return new Map;const o=e.map((e=>`targetType eq '${e}'`)).join(" or "),c=[{key:"$top",value:`${r=r||10*e.length*2}`},{key:"$filter",value:`actionType eq 'Follow' and (${o})`}],p=yield this.getRequestInit({method:"GET"},n);!0===t&&(p.cache="no-store");const g=(0,u.PH)(this.pdpServiceEndpoint);[...c,...(yield(0,y.XJ)())===s.Hy.SignedIn?l.$.getOneServiceParamsWithAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride),...a].forEach((e=>{e.value&&g.searchParams.set(e.key,e.value)}));const v=yield(0,h.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(g.href,p);if(!e.ok){if(e.status>=400&&e.status<500&&408!=e.status)return e;throw Error(e.statusText)}return e}))),"readPDPData");if(!v.ok)throw Error(`code=${v.status}, ${v.statusText}`);const m=new Map,f=yield v.json();if(!f)return m;if(f.value)for(const e of f.value){let t=m.get(e.targetType);t||m.set(e.targetType,t=[]),t.push(e)}for(const t of e)m.get(t)||m.set(t,[]);return m}))}updateMarketPreference(e){return(0,i.mG)(this,void 0,void 0,(function*(){const t={method:"POST",credentials:"include",body:JSON.stringify({userSettings:{preferredMarket:e}})},r=(0,u.PH)(this.userUpdateEndpoint);((yield(0,y.XJ)())===s.Hy.SignedIn?l.$.getOneServiceParamsWithAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&r.searchParams.set(e.key,e.value)}));try{const e=yield this.fetchImpl(r.href,t);if(!e.ok)throw new Error(`Failed to update market preference: Status: ${e.status}`);return!0}catch(e){return n.k.logError(e.message),!1}}))}getFromWebWorker(e){return(0,i.mG)(this,void 0,void 0,(function*(){let t=null;if(c.yb){const r=this.maptoWebWorkerId(e);if(r&&r.trim()){const r=yield(0,c.ot)({id:this.maptoWebWorkerId(e)});r.fetched&&(t=r.payload)}}return t}))}maptoWebWorkerId(e){switch(e){case p.L.Location:return"weatherpdp";case p.L.League:return"sportsleaguepdp";case p.L.Player:return"sportsplayerpdp";case p.L.Team:return"sportsteampdp";case p.L.Finance:return"moneypdp";default:return""}}getRequestInit(e={method:"GET"},t={}){return(0,i.mG)(this,void 0,void 0,(function*(){const r=yield l.$.getOneServiceHeaders();return e.headers=Object.assign(Object.assign({},r),t),e.credentials="include",e}))}getOneserviceHeaders(e={}){return(0,i.mG)(this,void 0,void 0,(function*(){const t=yield l.$.getOneServiceHeaders();return Object.assign(Object.assign({},t),e)}))}getFollowedLists(){return(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.getRequestInit({method:"GET"}),t=(0,u.PH)(this.userUpdateEndpoint);[...(yield(0,y.XJ)())===s.Hy.SignedIn?l.$.getOneServiceParamsWithAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride)].forEach((e=>{e.value&&t.searchParams.set(e.key,e.value)}));try{const r=yield(0,h.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const r=yield this.fetchImpl(t.href,e);if(!r.ok){if(r.status>=400&&r.status<500&&408!=r.status)return r;(0,o.OO)(null,a.G9t,"Error get followed list")}return r}))),"getFollowedLists");return r.ok||(0,o.OO)(null,a.G9t,"Error get followed list"),yield r.json()}catch(e){return n.k.logError(e.message),null}}))}addToFollowedLists(e){return(0,i.mG)(this,void 0,void 0,(function*(){const t=p.L.Finance,r={method:"POST",body:JSON.stringify({financeListIds:e}),headers:yield l.$.getOneServiceHeaders(),credentials:"include"},n=(0,u.PH)(this.userUpdateEndpoint);let a;((yield(0,y.XJ)())===s.Hy.SignedIn?l.$.getOneServiceParamsWithAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&n.searchParams.set(e.key,e.value)}));try{a=yield(0,h.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(n.href,r);if(e.status>=400){const r=`OneService returned error response. Status: ${e.status} for actionType: FollowList, targetType: ${t}`;throw new Error(r)}return e.json()}))),"addToFollowedLists")}catch(e){return!1}return!0}))}deleteFromFollowedLists(e){return(0,i.mG)(this,void 0,void 0,(function*(){const t=p.L.Finance,r={method:"DELETE",body:null,headers:yield l.$.getOneServiceHeaders(),credentials:"include"},n=(0,u.PH)(this.userUpdateEndpoint);let a;[...(yield(0,y.XJ)())===s.Hy.SignedIn?l.$.getOneServiceParamsWithAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride):l.$.getOneServiceParamsWithoutAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride),...[{key:"financeListIds",value:e.toString()}]].forEach((e=>{e.value&&n.searchParams.set(e.key,e.value)}));try{a=yield(0,h.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(n.href,r);if(e.status>=400){const r=`OneService returned error response. Status: ${e.status} for actionType: UnFollowList, targetType: ${t}`;throw new Error(r)}return e.json()}))),"deleteFromFollowedLists")}catch(e){return!1}return!0}))}logError(e,t){t?m.M0.sendAppErrorEvent(Object.assign(Object.assign({},t),{pb:Object.assign(Object.assign({},t.pb),{error:e.message})})):n.k.logError(e.message)}}{constructor(){super((0,f.N)()?window.fetch.bind(window):fetch),"windowsNewsPlus"===d.jG.AppType||"newsAndInterests"===d.jG.AppType||"winWidgets"===d.jG.AppType?(this.ocid="winp2",this.ocidOverride=!0):"sharedWidgets"===d.jG.AppType?(this.ocid="hpwidget",this.ocidOverride=!0):"windowsNewsbar"===d.jG.AppType?(this.ocid="winp0dash",this.ocidOverride=!0):"travel"===d.jG.AppType?(this.ocid="travel-verthp-feeds",this.ocidOverride=!0):"gaming"===d.jG.AppType&&(this.ocid="startgg-feeds",this.ocidOverride=!0)}}},38247:function(e,t,r){r.d(t,{QT:function(){return u}});var i=r(33940),n=r(28090),a=r(65620),o=r(45169),s=r(53046),d=r(45597),c=r(82636);class l extends n.e{appearanceChanged(e,t){e!==t&&(this.classList.add(t),this.classList.remove(e))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="neutral")}defaultSlottedContentChanged(){const e=this.defaultSlottedContent.filter((e=>e.nodeType===Node.ELEMENT_NODE));1===e.length&&e[0]instanceof SVGElement?this.control.classList.add("icon-only"):this.control.classList.remove("icon-only")}}(0,i.gn)([a.Lj,(0,i.w6)("design:type",String)],l.prototype,"appearance",void 0);const u=l.compose({baseName:"anchor",baseClass:n.e,template:o.g,styles:(e,t)=>s.i`
        ${(0,d.vN)(e,t)}
    `.withBehaviors((0,c.H)("accent",d.jQ),(0,c.H)("hypertext",d.Xu),(0,c.H)("lightweight",d.vt),(0,c.H)("outline",d.O8),(0,c.H)("stealth",d.cg)),shadowOptions:{delegatesFocus:!0}})},69298:function(e,t,r){r.d(t,{Zb:function(){return b},F:function(){return T},ay:function(){return S}});var i=r(33940),n=r(65130),a=r(97186),o=r(22680),s=r(87697),d=r(65620),c=r(48657),l=r(32804),u=r(42355),h=r(42255),p=r(53046),g=r(67020),v=r(40082),m=r(87839),f=r(62734);const y=(e,t)=>p.i`
        ${(0,g.j)("block")} :host {
            --elevation: 4;
            display: block;
            contain: content;
            height: var(--card-height, 100%);
            width: var(--card-width, 100%);
            box-sizing: border-box;
            background: ${l.IfY};
            color: ${l.CHi};
            border-radius: calc(${l.rSr} * 1px);
            ${f.XC}
        }

        :host(:hover) {
            --elevation: 8;
        }

        :host(:focus-within) {
            --elevation: 8;
        }

        :host {
            content-visibility: auto;
        }
    `.withBehaviors((0,v.vF)(p.i`
                :host {
                    forced-color-adjust: none;
                    background: ${m.H.Canvas};
                    box-shadow: 0 0 0 1px ${m.H.CanvasText};
                }
            `));class b extends n.Z{cardFillColorChanged(e,t){if(t){const e=(0,a.in)(t);null!==e&&(this.neutralPaletteSource=t,l.IfY.setValueFor(this,u.w.create(e.r,e.g,e.b)))}}neutralPaletteSourceChanged(e,t){if(t){const e=(0,a.in)(t),r=u.w.create(e.r,e.g,e.b);l.yvm.setValueFor(this,h.v.create(r))}}handleChange(e,t){this.cardFillColor||l.IfY.setValueFor(this,(t=>l.abR.getValueFor(t).evaluate(t,l.IfY.getValueFor(e))))}connectedCallback(){super.connectedCallback();const e=(0,o.T)(this);if(e){const t=s.y$.getNotifier(e);t.subscribe(this,"fillColor"),t.subscribe(this,"neutralPalette"),this.handleChange(e,"fillColor")}}}(0,i.gn)([(0,d.Lj)({attribute:"card-fill-color",mode:"fromView"}),(0,i.w6)("design:type",String)],b.prototype,"cardFillColor",void 0),(0,i.gn)([(0,d.Lj)({attribute:"neutral-palette-source",mode:"fromView"}),(0,i.w6)("design:type",String)],b.prototype,"neutralPaletteSource",void 0);const S=b.compose({baseName:"card",baseClass:n.Z,template:c.O,styles:y}),T=y},28090:function(e,t,r){r.d(t,{e:function(){return l},m:function(){return u}});var i=r(20005),n=r(65620),a=r(87697),o=r(48839),s=r(7775),d=r(51208),c=r(86076);class l extends o.I{constructor(){super(...arguments),this.handleUnsupportedDelegatesFocus=()=>{var e;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(e=this.$fastController.definition.shadowOptions)||void 0===e?void 0:e.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}connectedCallback(){super.connectedCallback(),this.handleUnsupportedDelegatesFocus()}}(0,i.gn)([n.Lj],l.prototype,"download",void 0),(0,i.gn)([n.Lj],l.prototype,"href",void 0),(0,i.gn)([n.Lj],l.prototype,"hreflang",void 0),(0,i.gn)([n.Lj],l.prototype,"ping",void 0),(0,i.gn)([n.Lj],l.prototype,"referrerpolicy",void 0),(0,i.gn)([n.Lj],l.prototype,"rel",void 0),(0,i.gn)([n.Lj],l.prototype,"target",void 0),(0,i.gn)([n.Lj],l.prototype,"type",void 0),(0,i.gn)([a.LO],l.prototype,"defaultSlottedContent",void 0);class u{}(0,i.gn)([(0,n.Lj)({attribute:"aria-expanded"})],u.prototype,"ariaExpanded",void 0),(0,c.e)(u,s.v),(0,c.e)(l,d.hW,u)},45169:function(e,t,r){r.d(t,{g:function(){return s}});var i=r(39181),n=r(58952),a=r(90960),o=r(51208);const s=(e,t)=>i.d`
    <a
        class="control"
        part="control"
        download="${e=>e.download}"
        href="${e=>e.href}"
        hreflang="${e=>e.hreflang}"
        ping="${e=>e.ping}"
        referrerpolicy="${e=>e.referrerpolicy}"
        rel="${e=>e.rel}"
        target="${e=>e.target}"
        type="${e=>e.type}"
        aria-atomic="${e=>e.ariaAtomic}"
        aria-busy="${e=>e.ariaBusy}"
        aria-controls="${e=>e.ariaControls}"
        aria-current="${e=>e.ariaCurrent}"
        aria-describedby="${e=>e.ariaDescribedby}"
        aria-details="${e=>e.ariaDetails}"
        aria-disabled="${e=>e.ariaDisabled}"
        aria-errormessage="${e=>e.ariaErrormessage}"
        aria-expanded="${e=>e.ariaExpanded}"
        aria-flowto="${e=>e.ariaFlowto}"
        aria-haspopup="${e=>e.ariaHaspopup}"
        aria-hidden="${e=>e.ariaHidden}"
        aria-invalid="${e=>e.ariaInvalid}"
        aria-keyshortcuts="${e=>e.ariaKeyshortcuts}"
        aria-label="${e=>e.ariaLabel}"
        aria-labelledby="${e=>e.ariaLabelledby}"
        aria-live="${e=>e.ariaLive}"
        aria-owns="${e=>e.ariaOwns}"
        aria-relevant="${e=>e.ariaRelevant}"
        aria-roledescription="${e=>e.ariaRoledescription}"
        ${(0,n.i)("control")}
    >
        ${(0,o.m9)(e,t)}
        <span class="content" part="content">
            <slot ${(0,a.Q)("defaultSlottedContent")}></slot>
        </span>
        ${(0,o.LC)(e,t)}
    </a>
`},65130:function(e,t,r){r.d(t,{Z:function(){return n}});var i=r(48839);class n extends i.I{}},48657:function(e,t,r){r.d(t,{O:function(){return n}});var i=r(39181);const n=(e,t)=>i.d`
    <slot></slot>
`}}]);A
Eo