56912);!function(t){t.Index="index",t.Pulse="pulse",t.Topic="topic",t.TopicRect="topicRect"}(w||(w={}));const L=y.d`
    <div class="trending-title-container" part="trending-title-container">
        <a
            part="trending-title-a"
            href="${t=>t.config.headingLink}"
            target="_blank"
            title="${t=>t.config.enableBingTitle?t.strings.trendingBingHeadingTitle:t.strings.trendingTopicsHeadingTitle}"
            data-t="${t=>t.trendingTopicsTitleTelemetry}"
        >
        ${t=>t.config.enableBingTitle?t.strings.trendingBingHeadingTitle:t.strings.trendingTopicsHeadingTitle}
        <span class="title-chevron">${k.Z}</span>
        </a>
    </div>
`,H=(y.d`
    <li class="trending-list">
    <div class="trending-item" part="trending-item">
        ${(t,e)=>{var i;return function(t,e){switch(t){case w.Index:return y.d`<span class="index-label">${e}</span>`;case w.Pulse:return y.d`<span class="pulse-icon">${'<svg width="20" height="21" viewBox="0 0 20 21" fill="none"><g opacity=".7"><path d="M0 10.5a10 10 0 1 1 20 0 10 10 0 0 1-20 0Z" fill="#000" fill-opacity=".55"/><path d="M7.81 6.95 6.26 10.5H4.75a.75.75 0 0 0 0 1.5h2c.3 0 .56-.18.68-.45L8.47 9.2l2.33 5.83a.75.75 0 0 0 1.37.06L13.71 12h1.54a.75.75 0 0 0 0-1.5h-2a.75.75 0 0 0-.67.41l-1 2-2.39-5.94a.75.75 0 0 0-1.38-.02Z" fill="#fff"/></g></svg>'}</span>`;case w.Topic:return y.d`<span class="topic-icon">${'<svg width="14" height="14" viewBox="0 0 14 14" fill="none"><path d="M6 1.6a.5.5 0 1 0-1-.19L4.55 4H2.5a.5.5 0 0 0 0 1h1.86l-.73 4H1.5a.5.5 0 0 0 0 1h1.95L3 12.41a.5.5 0 1 0 .98.18L4.46 10h3.98l-.43 2.4a.5.5 0 0 0 .98.19L9.46 10h2.04a.5.5 0 1 0 0-1H9.64l.73-4h2.13a.5.5 0 1 0 0-1h-1.95L11 1.6a.5.5 0 1 0-.98-.19l-.47 2.6L5.55 4 6 1.6ZM5.36 5h3.99l-.73 4H4.64l.73-4Z" fill="#000" fill-opacity=".55"/><path d="M6.11 1.61A.62.62 0 1 0 4.9 1.4l-.46 2.49H2.5a.63.63 0 1 0 0 1.25h1.7l-.68 3.74H1.5a.63.63 0 0 0 0 1.26h1.8l-.42 2.26a.63.63 0 0 0 1.23.22l.46-2.49h3.72l-.4 2.27a.62.62 0 1 0 1.22.22l.45-2.49h1.94a.63.63 0 0 0 0-1.25H9.8l.68-3.74h2.02a.62.62 0 1 0 0-1.25h-1.8l.42-2.27a.63.63 0 0 0-1.23-.22l-.46 2.49H5.7l.41-2.27ZM4.8 8.87l.69-3.74H9.2l-.69 3.74H4.8Z" stroke="#000" stroke-opacity=".55" stroke-width=".25" stroke-linecap="round"/></svg>'}</span>`;case w.TopicRect:return y.d`<span class="topic-icon">${'<svg width="20" height="20" viewBox="0 0 20 20" fill="none"><g opacity=".7"><path d="M0 2C0 .9.9 0 2 0h16a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2Z" fill="#000" fill-opacity=".55"/><path d="M9 4.6a.5.5 0 1 0-1-.19L7.55 7H5.5a.5.5 0 0 0 0 1h1.86l-.73 4H4.5a.5.5 0 0 0 0 1h1.95L6 15.41a.5.5 0 1 0 .98.18L7.46 13h3.98l-.43 2.4a.5.5 0 0 0 .98.19l.47-2.59h2.04a.5.5 0 1 0 0-1h-1.86l.73-4h2.13a.5.5 0 1 0 0-1h-1.95L14 4.6a.5.5 0 1 0-.98-.19l-.47 2.6L8.55 7 9 4.6ZM8.36 8h3.99l-.73 4H7.64l.73-4Z" fill="#fff" stroke="#fff" stroke-width=".5" stroke-linecap="round"/></g></svg>'}</span>`;default:return}}(null===(i=e.parent.config)||void 0===i?void 0:i.icon,(e.index+1).toString())}}
        <a href="${t=>t.href}" target="_blank" class="trending-link" data-t="${t=>t.telemetry}">${t=>t.title}</a>
    </div>
    </li>
`,y.d`
    <li class="item-list">
        <a class="bubble-link" href="${t=>t.href}" target="_blank" data-t="${t=>t.telemetry}">
            ${(0,T.g)((t=>""!==t.imgUrl),y.d`<img class="topic-img" src="${t=>t.imgUrl}" alt="${t=>t.imgTitle}">`)}
            <span class="item-title">${t=>t.title}</span>
        </a>
    </li>
`),M=y.d`
<div class="container ${t=>t.config.background}" part="container">
    ${L}
    ${(0,T.g)((t=>t.trendingTopicsListData&&t.trendingTopicsListData.length>0),y.d`
        <ul class="trending-ul" part="list">
            ${(0,$.rx)((t=>t.trendingTopicsListData),H,{positioning:!0})}
        </ul>
    `)}
</div>
`;var C=i(53046),P=i(32804),z=i(56201);const j=C.i`
:host {
    border-radius: 6px;
    box-sizing: border-box;
    display: block;
    height: var(--card-height, 100%);
    position: relative;
    width: var(--card-width, 100%);
}

:host(:${z.b}) {
    outline: none;
    text-decoration: underline;
}

a {
    border-bottom: none;
    color: ${P.goi};
    display: inline-block;
    font-size: var(--type-ramp-minus-1-font-size);
    overflow: hidden;
    text-decoration: none;
    text-overflow: ellipsis;
    width: 100%;
}

a:hover {
    text-decoration: underline;
}

a:visited {
    color: ${P.goi};
}

li {
    display: flex;
    padding: 4px 0;
    text-align: -webkit-match-parent;
    white-space: nowrap;
}

ul {
    margin: 0;
    overflow: hidden;
    padding-inline-start: 0;
    position: inherit;
}

.link-divider {
    margin: 0 8px;
    opacity: 0.2;
    width: 1px;
    background: ${P.dtw};
}

.container {
    padding: 0 16px;
    height: inherit;
    border-radius: 6px;
}

.container.pink {
    background: linear-gradient(345.79deg, #F2D9DE 0%, rgba(242, 217, 222, 0.4) 100%), #FFFFFF;
}

.container.green {
    background: linear-gradient(350.79deg, #C8DFCE 1.32%, rgba(200, 223, 206, 0.4) 100%);
}

.trending-title-container {
    flex-direction: row;
    padding-top: 16px;
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.trending-title-container a {
    height: 16px;
    font-weight: bold;
    font-size: var(--type-ramp-minus-1-font-size);
    line-height: var(--type-ramp-base-line-height);
    display: flex;
    align-items: center;
    color: ${P.CHi};
    text-transform: uppercase;
}

.trending-title-container svg {
    display: inline;
    height: 10px;
    margin-inline-start: 4px;
}

.title-chevron path {
    fill: ${P.CHi};
}

.title-chevron {
    vertical-align: middle;
    background-color: transparent;
  }


.serendipity-button-div {
    height: 24px;
    width: 32px;
    display: inline-flex;
    align-content: center;
    justify-content: center;
}

::slotted([slot="serendipity-button-slot"]) {
    align-items: center;
    color: ${P.CHi};
    border-radius: 999px;
    display: inline-flex;
    height: 24px;
    justify-content: center;
    margin: 0 4px;
    min-width: 24px;
    padding: 0;
    position: static;
    width: 24px;
}

::slotted([slot="serendipity-button-slot"]:hover) {
    background: ${P.XiB};
}

.trending-list {
    align-self: stretch;
    margin: 18px 0 0;
    padding: 0;
    position: static;
}

.trending-ul {
    overflow-y: scroll;
    height: calc(100% - 32px);
    margin-right: -6px;
}

.trending-ul::-webkit-scrollbar {
    width: 4px;
}

.trending-ul::-webkit-scrollbar-thumb {
    border-radius: 20px;
    -webkit-box-shadow: inset 0 0 5px #eee;
    background: ${P.Q5n};
}

div.trending-item {
    align-content: center;
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    max-width: 268px;
}

.topic-img {
    border-radius: 50%;
    height: 28px;
    margin: 2px 6px;
    object-fit: cover;
    position: static;
    width: 28px;
}

.pulse-icon,
.topic-icon {
    width: 22px;
    height: 22px;
    object-fit: cover;
    position: static;
}

.index-label {
    font-size: 20px;
    line-height: 22px;
    color: rgba(0, 0, 0, 0.55);
    font-weight: 600;
    width: 18px;
}

a.trending-link {
    height: 22px;
    color: var(--neutral-foreground-rest);
    font-size: var(--type-ramp-plus-1-font-size);
    line-height: 22px;
    margin-inline: 0px 12px;
    margin-left: 8px;
    font-weight: 600;
}

a.bubble-link {
    color: var(--neutral-foreground-rest);
    font-size: var(--type-ramp-plus-1-font-size);
    font-weight: 600;
    grid-template-columns: 40px auto;
    display: grid;
    padding: 4px 0px;
}

.item-title {
    line-height: 32px;
}

.item-list:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    border-radius: 4px;
    padding: 8px 0px !important;
    margin-right: 6px;
}

.item-list:hover .topic-img {
    height: 64px !important;
    width: 64px !important;
}

.item-list:hover .bubble-link {
    grid-template-columns: 80px auto !important;
}

.item-list:hover .item-title {
    font-size: 18px !important;
    line-height: 64px !important;
}

.item-title {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100%);
}

.trending-ul > li:first-child {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    padding: 8px 0px;
    margin-right: 6px;
}

.trending-ul > li:first-child .item-title {
    font-size: 18px;
    line-height: 64px;
}

.trending-ul > li:first-child .bubble-link {
    grid-template-columns: 80px auto;
}

.trending-ul > li:first-child .topic-img {
    height: 64px;
    width: 64px;
}

.trending-ul:hover > li:first-child {
    background: none;
    padding: 0px 0px;
}

.trending-ul:hover > li:first-child .item-title {
    font-size: 16px;
    line-height: 32px;
}

.trending-ul:hover > li:first-child .topic-img {
    height: 28px;
    width: 28px;
}

.trending-ul:hover > li:first-child .bubble-link {
    grid-template-columns: 40px auto;
}
`.withBehaviors(),D={experienceConfigSchema:s}},53909:function(t,e,i){i.d(e,{D3:function(){return o},KL:function(){return d},mL:function(){return h},pG:function(){return s},q3:function(){return c},vc:function(){return l},zz:function(){return p}});var n=i(12697),r=i(80983);let a;var o,l;!function(t){t.JPG="jpg",t.PNG="png"}(o||(o={})),function(t){t[t.None=0]="None",t[t.Letterbox=1]="Letterbox",t[t.Scale=2]="Scale",t[t.Stretch=3]="Stretch",t[t.Crop=4]="Crop",t[t.FocalCrop=5]="FocalCrop",t[t.FacialCrop=6]="FacialCrop"}(l||(l={}));const s=90,c="www.bing.com/th",d=new RegExp(/bing\.(com|net)\/th/);function p(t,e){return h(((0,r.P)()?"//img-s.msn.cn/tenant/amp/entityid/":"//img-s-msn-com.akamaized.net/tenant/amp/entityid/")+t,e)}const g=Math.ceil(4*Math.random())||4;function h(t,e){if(t&&d.test(t))return function(t,e){try{return u(new URL(t),e).href}catch(i){const n=u(new URL(`https://${t}`),e);return`//${n.host}${n.pathname}${n.search}`}}(t,e);const{focalRegion:i,backgroundColor:r}=e;let{width:l=0,height:s=0,format:c=o.JPG}=e,p="";if(i){const t=m(i.x1,i.x2),e=m(i.y1,i.y2);null!=t&&null!=e&&(p+=`&x=${t}&y=${e}`)}r&&(p+=`&b=${r}`);const g=null==e.mode?6:e.mode;if(6===g&&(p+="&u=t"),e.enableDpiScaling){if(!e.devicePixelRatio)throw new Error("A valid devicePixelRatio value must be provided when DPI scaling is enabled");const t=function(t){if(f()&&a)return a;if(t<1)return null;let e=t;(0,n.Z)(4*e)||(e=Math.ceil(10*e)/10);e>3&&(e=3);f()&&(a=e);return e}(e.devicePixelRatio);t&&(l=Math.round(l*t),s=Math.round(s*t))}return`${t}?w=${l}&h=${s}&q=${e.quality||60}&m=${g}&f=${c}${p}`}function u(t,e){(0,r.P)()&&(t.hostname=`ts${g}.cn.mm.bing.net`);const{width:i=0,height:n=0}=e,a=e.quality||s,o=e.crop||1;return t.searchParams.set("w",`${i}`),t.searchParams.set("h",`${n}`),t.searchParams.set("qlt",`${a}`),t.searchParams.set("c",`${o}`),t.searchParams.set("rs","1"),e.enableDpiScaling&&(t.searchParams.set("dpr",`${e.devicePixelRatio}`),t.searchParams.set("p","0")),t}function f(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function m(t,e){if(null!=t&&null!=e)return Math.floor((t+e)/2)}},12697:function(t,e,i){var n=i(84708);e.Z=function(t){return"number"==typeof t&&t==(0,n.Z)(t)}}}]);A
Eo