a(255, 255, 255, 0.05);
    }
`,P=z.i`
    ::slotted([slot="divider"]) {
        border-top-color: rgba(255, 255, 255, 0.5);
    }

    .esports-match-container:hover {
        --neutral-fill-stealth-hover: rgba(0, 0, 0, 0.05);
    }
`,R=z.i`
    ::slotted([slot="divider"]) {
        border-top-color: rgba(255, 255, 255, 0.05);
    }

    .esports-match-container:hover {
        --neutral-fill-stealth-hover: rgba(255, 255, 255, 0.05);
    }
`,V=z.i`
    :host {
        forced-color-adjust: auto;
        color: ${B.H.CanvasText};
    }

    :host([href]) {
        color: ${B.H.CanvasText};
    }

    .esports-match-header-title {
        color: ${B.H.CanvasText};
    }

    .esports-match-participant-name {
        color: ${B.H.CanvasText};
    }

    ::slotted([slot="match-date-df-date"]) {
        color: ${B.H.CanvasText};
    }

    ::slotted([slot="match-date-df-time"]) {
        color: ${B.H.CanvasText};
    }

    ::slotted([slot="match-score"]) {
        color: ${B.H.CanvasText};
    }
`;var q=i(39181),Z=i(13988);const X=(t,e)=>q.d`
    <slot name="divider"></slot>

    <a
        class="esports-match-container"
        part="esports-match-container"
        href=${t=>t.href}
        target=${t=>t.target}
        data-t="${t=>t.telemetryTag}"
        aria-label=${t=>t.ariaLabel}
    >
        <div class="esports-match-header" part="esports-match-header">
            <slot name="game-image"> </slot>
            <div class="esports-match-header-title" part="esports-match-header-title">
                ${t=>t.tournamentTitle}
            </div>
        </div>

        <div class="esports-match" part="esports-match">
            <div class="participant-one" part="participant-one">
                <div
                    class="esports-match-participant-img-container"
                    part="esports-match-participant-img-container"
                >
                    <slot name="participant-one-image"> </slot>
                </div>
            </div>

            <div class="esports-match-details" part="esports-match-details">
                <slot name="match-date"></slot>
                ${(0,Z.g)((t=>"dynamicFeed"===t.viewMode),q.d`
                        <div>
                            <slot name="match-date-df-date"></slot>
                            <slot name="match-date-df-time"></slot>
                        </div>
                    `)}
                <slot name="match-score"></slot>
            </div>

            <div class="participant-two" part="participant-two">
                <div
                    class="esports-match-participant-img-container"
                    part="esports-match-participant-img-container"
                >
                    <slot name="participant-two-image"> </slot>
                </div>
            </div>

            <div
                class="participant-one esports-match-participant-name"
                part="participant-one esports-match-participant-name"
            >
                ${t=>t.participantOneName}
            </div>

            <div class="esports-match-details" part="esports-match-details">
                <slot name="match-state"></slot>
            </div>

            <div
                class="esports-match-participant-name participant-two"
                part="esports-match-participant-name participant-two"
            >
                ${t=>t.participantTwoName}
            </div>
        </div>
    </a>
`,Y=F.compose({baseName:"esports-match-row",template:X,styles:(t,e)=>z.i`
        :host {
            font-family: ${U.SVJ};
            --match-container-padding: 16px;
        }

        .esports-match-container {
            display: grid;
            row-gap: calc(${U._5n} * 3px);
            cursor: pointer;
            text-decoration: none;
            padding: 0 var(--match-container-padding);
            position: relative;
        }

        .esports-match-container:hover {
            background: ${U.QpD};
        }

        ::slotted([slot="divider"]) {
            margin: 20px var(--match-container-padding);
        }

        .esports-match-header {
            display: grid;
            grid-template-columns: auto 1fr;
            column-gap: 12px;
            align-items: center;
        }

        ::slotted([slot="game-image"]) {
            border-radius: calc(${U.UWU}) * 8px);
            width: 20px;
            height: 20px;
        }

        .esports-match-header-title {
            font-size: ${U.sNp};
            line-height: ${U.vgC};
            font-weight: 500;
            color: ${U.Q5n};
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
        }

        .esports-match {
            display: grid;
            grid-template-columns: 1fr 2fr 1fr;
            align-items: center;
            row-gap: calc(${U._5n} * 1px);
        }

        .esports-match-participant-name {
            font-size: ${U.cSu};
            line-height: ${U.RUt};
            font-weight: 500;
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
            color: ${U.CHi};
        }

        ::slotted([slot="participant-one-image"]),
        ::slotted([slot="participant-two-image"]) {
            vertical-align: top;
            border-radius: calc(${U.UWU}) * 2px);
            width: 36px;
            height: 36px;
        }

        .participant-one {
            text-align: start;
        }

        .participant-two {
            text-align: end;
        }

        ::slotted([slot="match-score"]) {
            font-size: var(--type-ramp-plus-2-font-size);
            line-height: var(--type-ramp-plus-2-line-height);
            display: -webkit-box;
            overflow: hidden;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: var(--heading-max-lines, 1);
            word-break: break-all;
            color: ${U.CHi};
        }

        ::slotted([slot="match-date"]) {
            font-size: ${U.cSu};
            line-height: ${U.RUt};
            display: -webkit-box;
            overflow: hidden;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: var(--heading-max-lines, 1);
            word-break: break-all;
            color: ${U.CHi};
        }

        .esports-match-details {
            display: flex;
            justify-content: center;
        }
    `.withBehaviors((0,N.vF)(z.i`
                :host {
                    forced-color-adjust: auto;
                }
                :a([href]) {
                    color: ${B.H.LinkText};
                }
            `))}),K=F.compose({baseName:"esports-match-row-widget",template:X,styles:(t,e)=>z.i`
        :host {
            font-family: ${U.SVJ};
            --match-container-padding: 8px;
        }

        .esports-match-container {
            display: grid;
            row-gap: 8px;
            cursor: pointer;
            text-decoration: none;
            padding: var(--match-container-padding);
            position: relative;
        }

        .esports-match-container:hover {
            background: ${U.QpD};
            border-radius: calc(${U.UWU} * 1px);
            margin: 0;
        }

        ::slotted([slot="divider"]) {
            margin: 0;
            padding: 0;
        }

        .esports-match-header {
            display: grid;
            grid-template-columns: auto 1fr;
            column-gap: 12px;
            align-items: center;
        }

        ::slotted([slot="game-image"]) {
            border-radius: calc(${U.UWU} * 8px);
            width: 20px;
            height: 20px;
        }

        .esports-match-header-title {
            font-size: ${U.sNp};
            line-height: ${U.vgC};
            font-weight: normal;
            color: ${U.Q5n};
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
        }

        .esports-match {
            display: grid;
            grid-template-columns: 1fr 2fr 1fr;
            align-items: center;
            row-gap: calc(${U._5n} * 1px);
        }

        .esports-match-participant-name {
            font-size: ${U.cSu};
            line-height: ${U.RUt};
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
            color: ${U.CHi};
        }

        ::slotted([slot="participant-one-image"]),
        ::slotted([slot="participant-two-image"]) {
            vertical-align: top;
            border-radius: calc(${U.UWU} * 2px);
            width: 32px;
            height: 32px;
        }

        .participant-one {
            text-align: start;
        }

        .participant-two {
            text-align: end;
        }

        ::slotted([slot="match-score"]) {
            font-size: ${U.mWK};
            line-height: ${U.I7_};
            display: -webkit-box;
            overflow: hidden;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: var(--heading-max-lines, 1);
            word-break: break-all;
            color: ${U.CHi};
        }

        ::slotted([slot="match-date"]) {
            font-size: ${U.cSu};
            line-height: ${U.RUt};
            display: -webkit-box;
            overflow: hidden;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: var(--heading-max-lines, 1);
            word-break: break-all;
            color: ${U.CHi};
        }

        .esports-match-details {
            display: flex;
            justify-content: center;
        }
    `.withBehaviors(new j.Y(G,W),(0,N.vF)(z.i`
                :host {
                    forced-color-adjust: auto;
                }
                :a([href]) {
                    color: ${B.H.LinkText};
                }
            `))}),J=F.compose({baseName:"esports-match-row-widget-df",template:X,styles:(t,e)=>z.i`
        :host {
            font-family: ${U.SVJ};
            --match-container-padding: 8px;
        }

        :host([card-layout="_1x_4y"]) {
            --match-container-padding: 4px 8px;
        }

        .esports-match-container {
            display: grid;
            row-gap: 8px;
            cursor: pointer;
            text-decoration: none;
            padding: var(--match-container-padding);
            position: relative;
        }

        .esports-match-container:hover {
            background: ${U.QpD};
            border-radius: calc(${U.UWU} * 1px);
        }

        ::slotted([slot="divider"]) {
            margin: 0;
            padding: 0;
        }

        .esports-match-header {
            display: grid;
            grid-template-columns: auto 1fr;
            column-gap: 12px;
            align-items: center;
        }

        ::slotted([slot="game-image"]) {
            border-radius: calc(${U.UWU} * 8px);
            width: 20px;
            height: 20px;
        }

        .esports-match-header-title {
            font-size: ${U.sNp};
            line-height: ${U.vgC};
            font-weight: normal;
            color: ${U.Q5n};
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
        }

        .esports-match {
            display: grid;
            grid-template-columns: 1fr 2fr 1fr;
            align-items: center;
            row-gap: calc(${U._5n} * 1px);
        }

        .esports-match-participant-name {
            font-size: ${U.cSu};
            line-height: ${U.RUt};
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
            color: ${U.CHi};
        }

        ::slotted([slot="participant-one-image"]),
        ::slotted([slot="participant-two-image"]) {
            vertical-align: top;
            border-radius: calc(${U.UWU} * 2px);
            width: 32px;
            height: 32px;
        }

        .participant-one {
            text-align: start;
        }

        .participant-two {
            text-align: end;
        }

        ::slotted([slot="match-date-df-date"]) {
            text-align: center;
            font-size: ${U.sNp};
            line-height: ${U.vgC};
            color: ${U.Q5n};
        }

        ::slotted([slot="match-date-df-time"]) {
            text-align: center;
            font-size: ${U.cSu};
            line-height: ${U.RUt};
            color: ${U.CHi};
        }

        ::slotted([slot="match-score"]) {
            font-size: ${U.mWK};
            line-height: ${U.I7_};
            display: -webkit-box;
            overflow: hidden;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: var(--heading-max-lines, 1);
            word-break: break-all;
            color: ${U.CHi};
        }

        .esports-match-details {
            display: flex;
            justify-content: center;
        }
    `.withBehaviors(new j.Y(P,R),(0,N.vF)(V))});var Q=i(95263);const tt=z.i`
    :host([background="gradient"]) msft-structured-data-card {
        --gradient-background-fill: linear-gradient(
                124.33deg,
                rgba(255, 255, 255, 0.03) -20.01%,
                rgba(101, 107, 241, 0.15) 96.49%
            ),
            #ffffff;
    }

    :host msft-structured-data-card::part(sd-action) {
        --accent-foreground-rest: #003e92;
    }
`,et=z.i`
    :host([background="gradient"]) msft-structured-data-card {
        --gradient-background-fill: linear-gradient(
                124.33deg,
                rgba(24, 2, 85, 0.03) -20.01%,
                rgba(30, 32, 72, 0.4) 96.49%
            ),
            #1c1c1c;
    }

    :host msft-structured-data-card::part(sd-action) {
        --accent-foreground-rest: #99ebff;
    }
`,it=z.i`
    :host([background="gradient"]) msft-structured-data-card {
        --gradient-background-fill: linear-gradient(
                124.33deg,
                rgba(255, 255, 255, 0.03) -20.01%,
                rgba(101, 107, 241, 0.15) 96.49%
            ),
            #ffffff;
    }

    :host msft-structured-data-card::part(sd-action) {
        --accent-foreground-rest: #003e92;
    }
`,at=z.i`
    :host([background="gradient"]) msft-structured-data-card {
        --gradient-background-fill: linear-gradient(
                124.33deg,
                rgba(24, 2, 85, 0.03) -20.01%,
                rgba(30, 32, 72, 0.4) 96.49%
            ),
            #1c1c1c;
    }

    :host msft-structured-data-card::part(sd-action) {
        --accent-foreground-rest: #99ebff;
    }
`,ot=z.i`
    :host {
        forced-color-adjust: auto;
        color: ${B.H.CanvasText};
    }

    :host([href]) {
        color: ${B.H.CanvasText};
    }
`,rt=(t,e)=>q.d`
    <div class="esports-matchup-container" part="esports-matchup-container">
        <slot name="match-row"></slot>
    </div>
`,nt=(t,e)=>q.d`
    <msft-structured-data-card
        target=${t=>t.target}
        ?pinned=${t=>t.pinned}
        :headerTelemetryTag=${t=>t.headerTelemetryTag}
        :seeMoreTelemetryTag=${t=>t.seeMoreTelemetryTag}
        :data=${t=>t.esportsCardData}
    >
        <slot name="more-actions" slot="more-actions"></slot>
        <slot name="pin" slot="pin"></slot>
        <slot name="title-icon" slot="title-icon"></slot>
        ${rt}
        <slot name="footer-start" slot="footer-start"></slot>
        <slot name="footer-end" slot="footer-end"></slot>
    </msft-structured-data-card>
`,st=H.compose({baseName:"esports-matchup",template:nt,styles:(t,e)=>z.i`
        :host {
            font-family: var(--body-font);
        }

        msft-structured-data-card::part(title-link)::after {
            position: absolute;
            content: "";
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
        }

        msft-structured-data-card::part(title-content) {
            font-weight: 500;
        }

        :host([background="gradient"]) msft-structured-data-card {
            background: ${Q.Sf};
        }

        :host([background="dynamic"]) msft-structured-data-card {
            background: ${Q.w_};
        }

        :host([card-layout="_1x_1y"]) .esports-matchup-container {
            margin-top: 6px;
        }

        :host([card-layout="_1x_2y"]) .esports-matchup-container {
            margin-top: 12px;
        }
    `.withBehaviors((0,N.vF)(z.i`
                :host {
                    forced-color-adjust: auto;
                }
                :host([href]) {
                    color: ${B.H.LinkText};
                }
            `))}),dt=H.compose({baseName:"esports-matchup-widget",template:nt,styles:(t,e)=>z.i`
        :host {
            font-family: ${U.SVJ};
            --content-padding: 8px 0;
            --title-padding: 0 8px 0 16px;
            --footer-padding: 14px 16px;
        }

        msft-structured-data-card::part(title-link)::after {
            position: absolute;
            content: "";
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
        }

        :host([background="gradient"]) msft-structured-data-card {
            background: ${Q.Sf};
        }

        :host([background="dynamic"]) msft-structured-data-card {
            background: ${Q.w_};
        }

        .esports-matchup-container {
            margin-top: 16px;
            padding: 0 8px;
        }
    `.withBehaviors(new j.Y(tt,et),(0,N.vF)(z.i`
                :host {
                    forced-color-adjust: auto;
                }
                :host([href]) {
                    color: ${B.H.LinkText};
                }
            `))}),ct=H.compose({baseName:"esports-matchup-widget-df",template:nt,styles:(t,e)=>z.i`
        :host {
            font-family: ${U.SVJ};
        }

        :host([background="gradient"]) msft-structured-data-card {
            background: ${Q.Sf};
        }

        :host([background="dynamic"]) msft-structured-data-card {
            background: ${Q.w_};
        }

        // For SV1+ Prong2 the outer container sizes are provided by the platform, so now we do not need to control padding for the esports-matchup-container
    `.withBehaviors(new j.Y(it,at),(0,N.vF)(ot))});var lt=i(20104),pt=i(84742);class ht extends pt.C{}var ut=i(77193);const gt=ht.compose({baseName:"esports-badge",template:lt.Z,styles:(t,e)=>z.i`
        ${(0,ut.G8)(t,e)} :host {
            font-family: var(--body-font);
            --badge-fill-primary: #da2c29;
            --badge-fill-secondary: #f2f2f2;
            --badge-fill-transparent: transparent;
            --badge-color-neutral: ${U.Q5n};
            --badge-color-white: #ffffff;
        }

        .control {
            font-size: ${U.sNp};
            line-height: ${U.vgC};
            padding: 2px 8px;
            border-radius: calc(${U.UWU} * 2px);
            font-weight: 500;
            display: -webkit-box;
            overflow: hidden;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: var(--heading-max-lines, 1);
            word-break: break-all;
        }
    `});var mt;!function(t){t._1x_1y="_1x_1y",t._1x_2y="_1x_2y",t._1x_3y="_1x_3y",t._1x_4y="_1x_4y"}(mt||(mt={}));class ft extends M.I{constructor(){super(...arguments),this.checkBoxData=[],this.cardLayout=mt._1x_2y}saveSetting(){this.$emit("save")}}(0,l.gn)([E.LO],ft.prototype,"esportsCardData",void 0),(0,l.gn)([_.Lj],ft.prototype,"background",void 0),(0,l.gn)([_.Lj],ft.prototype,"target",void 0),(0,l.gn)([(0,_.Lj)({attribute:"description-text"})],ft.prototype,"descriptionText",void 0),(0,l.gn)([(0,_.Lj)({attribute:"footer-text"})],ft.prototype,"footerText",void 0),(0,l.gn)([E.LO],ft.prototype,"checkBoxData",void 0),(0,l.gn)([E.LO],ft.prototype,"headerTelemetryTag",void 0),(0,l.gn)([E.LO],ft.prototype,"seeMoreTelemetryTag",void 0),(0,l.gn)([E.LO],ft.prototype,"saveTelemetryTag",void 0),(0,l.gn)([(0,_.Lj)({attribute:"card-layout"})],ft.prototype,"cardLayout",void 0);const bt=z.i`
    :host([background="gradient"]) msft-structured-data-card {
        --gradient-background-fill: linear-gradient(
                124.33deg,
                rgba(255, 255, 255, 0.03) -20.01%,
                rgba(101, 107, 241, 0.15) 96.49%
            ),
            #ffffff;
    }

    :host msft-structured-data-card::part(sd-action) {
        --accent-foreground-rest: #003e92;
    }
`,vt=z.i`
    :host([background="gradient"]) msft-structured-data-card {
        --gradient-background-fill: linear-gradient(
                124.33deg,
                rgba(24, 2, 85, 0.03) -20.01%,
                rgba(30, 32, 72, 0.4) 96.49%
            ),
            #1c1c1c;
    }

    :host msft-structured-data-card::part(sd-action) {
        --accent-foreground-rest: #99ebff;
    }
`;var yt=i(18864);const xt=q.d`
    <fluent-checkbox
        class="game-checkbox"
        part="game-checkbox"
        checked="${t=>t.isChecked}"
        required="${t=>t.isRequired}"
        disabled="${t=>t.isDisabled}"
        readonly="${t=>t.isReadonly}"
        data-t="${t=>t.checkTelemetryTag}"
    >
        <div class="game-checkbox-content" part="game-checkbox-content">
            <img
                class="game-image"
                part="game-image"
                src=${t=>t.gameImage}
                alt=${t=>t.gameImageAltText}
                role="presentation"
            />

            <div class="game-checkbox-text" part="game-checkbox-text">
                ${t=>t.gameName}
            </div>
        </div>
    </fluent-checkbox>
`,wt=q.d`
    <div class="cold-start-container" part="cold-start-container">
        <div class="description-text" part="description-text">
            ${t=>t.descriptionText}
        </div>

        <div class="listbox-container" part="listbox-container">
            <fluent-listbox>
                ${(0,yt.rx)((t=>t.checkBoxData),xt)}
            </fluent-listbox>
        </div>
    </div>
`,Ct=(t,e)=>q.d`
    <msft-structured-data-card
        target=${t=>t.target}
        :headerTelemetryTag=${t=>t.headerTelemetryTag}
        :seeMoreTelemetryTag=${t=>t.seeMoreTelemetryTag}
        :data=${t=>t.esportsCardData}
    >
        <slot name="more-actions" slot="more-actions"></slot>
        <slot name="pin" slot="pin"></slot>
        <slot name="title-icon" slot="title-icon"></slot>
        ${wt}
        <fluent-button
            appearance="lightweight"
            slot="footer-start"
            @click="${t=>t.saveSetting()}"
            data-t="${t=>t.saveTelemetryTag}"
        >
            ${t=>t.footerText}
        </fluent-button>
        <slot name="footer-end" slot="footer-end"></slot>
    </msft-structured-data-card>
`,$t=ft.compose({baseName:"esports-cold-start",template:Ct,styles:(t,e)=>z.i`
        :host {
            font-family: ${U.SVJ};
        }

        :host([background="gradient"]) msft-structured-data-card {
            background: ${Q.Sf};
        }

        :host([background="dynamic"]) msft-structured-data-card {
            background: ${Q.w_};
        }

        .cold-start-container {
            margin: 0 24px;
            display: flex;
            flex-flow: column;
            overflow: hidden;
        }

        .listbox-container {
            margin-top: 24px;
            flex: 1 1 0;
            overflow: auto;
        }

        .listbox-container::-webkit-scrollbar {
            display: none;
        }

        .description-text {
            margin-top: 24px;
            font-size: ${U.sNp};
            line-height: ${U.vgC};
            display: -webkit-box;
            overflow: hidden;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: var(--heading-max-lines, 2);
            color: ${U.CHi};
            flex: 0 1 auto;
        }

        .listbox {
            width: 100%;
            border: none;
            background: none;
        }

        .listbox:focus-within:not([disabled]) {
            border-color: none;
            box-shadow: none;
        }

        .game-checkbox:not(:first-child) {
            margin-top: 8px;
        }

        .game-checkbox {
            background-color: ${U.IfY};
            padding: 4px 18px;
            border-radius: calc(${U.UWU} * 2px);
            overflow: hidden;
            cursor: pointer;
            text-decoration: none;
            margin: 0;
        }

        .game-image {
            vertical-align: top;
            border-radius: calc(${U.UWU} * 2px);
            width: 32px;
            height: 40px;
        }

        .game-checkbox-content {
            display: grid;
            grid-template-columns: auto 1fr;
            column-gap: 12px;
            align-items: center;
        }

        .game-checkbox-text {
            font-size: ${U.sNp};
            line-height: ${U.vgC};
            display: -webkit-box;
            overflow: hidden;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: var(--heading-max-lines, 2);
            word-break: break-all;
            color: ${U.CHi};
            font-weight: 500;
        }

        ::part(checked-indicator) {
            width: 18px;
            height: 18px;
        }

        ::part(footer) {
            display: grid;
            grid-template-columns: 1fr;
        }
    `.withBehaviors((0,N.vF)(z.i`
                :host {
                    forced-color-adjust: auto;
                }
                :host([href]) {
                    color: ${B.H.LinkText};
                }
            `))}),kt=ft.compose({baseName:"esports-cold-start-widget-df",template:Ct,styles:(t,e)=>z.i`
        :host {
            font-family: ${U.SVJ};
        }

        :host([background="gradient"]) msft-structured-data-card {
            background: ${Q.Sf};
        }

        :host([background="dynamic"]) msft-structured-data-card {
            background: ${Q.w_};
        }

        .cold-start-container {
            margin: 0 24px;
            display: flex;
            flex-flow: column;
            overflow: hidden;
        }

        .description-text {
            margin: 10px 10px;
            padding: 0;
            font-size: ${U.sNp};
            line-height: ${U.vgC};
            display: -webkit-box;
            overflow: hidden;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: var(--heading-max-lines, 2);
            color: ${U.CHi};
            flex: 0 1 auto;
        }

        .listbox-container {
            margin-top: 0;
            flex: 1 1 0;
            overflow: auto;
        }

        .listbox-container::-webkit-scrollbar {
            display: none;
        }

        :host([card-layout="_1x_1y"]) .description-text {
            visibility: hidden;
        }

        :host([card-layout="_1x_1y"]) .listbox-container {
            margin-top: -44px;
        }

        .listbox {
            width: 100%;
            border: none;
            background: none;
        }

        .listbox:focus-within:not([disabled]) {
            border-color: none;
            box-shadow: none;
        }

        .game-checkbox:not(:first-child) {
            margin-top: 8px;
        }

        .game-checkbox {
            background-color: ${U.IfY};
            padding: 4px 18px;
            border-radius: calc(${U.UWU} * 2px);
            overflow: hidden;
            cursor: pointer;
            text-decoration: none;
            margin: 0;
        }

        .game-image {
            vertical-align: top;
            border-radius: calc(${U.UWU} * 2px);
            width: 32px;
            height: 40px;
        }

        .game-checkbox-content {
            display: grid;
            grid-template-columns: auto 1fr;
            column-gap: 12px;
            align-items: center;
        }

        .game-checkbox-text {
            font-size: ${U.sNp};
            line-height: ${U.vgC};
            display: -webkit-box;
            overflow: hidden;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: var(--heading-max-lines, 2);
            word-break: break-all;
            color: ${U.CHi};
            font-weight: 500;
        }

        ::part(checked-indicator) {
            width: 18px;
            height: 18px;
        }

        ::part(footer) {
            display: grid;
            grid-template-columns: 1fr;
        }
    `.withBehaviors(new j.Y(bt,vt),(0,N.vF)(z.i`
                :host {
                    forced-color-adjust: auto;
                }
                :host([href]) {
                    color: ${B.H.LinkText};
                }
            `))});var St=i(16590),It=i(22169),Lt=i(33799),Tt=i(68651),Ot=i(27019),At=i(16339),Dt=i(75361),_t=i(16517),Et=i(93698),Mt=i(36803),Ht=i(54804),Ft=i(9375),zt=i(44979),Nt=i(63535),Ut=i(67267),Bt=i(87298),jt=i(63070),Gt=i(7511),Wt=i(69298),Pt=i(96824),Rt=i(38247),Vt=i(65898),qt=i(76122),Zt=i(67020),Xt=i(56201),Yt=i(87839);class Kt extends Vt.R{}const Jt=Kt.compose({baseName:"listbox",template:qt.K,styles:(t,e)=>z.i`
        ${(0,Zt.j)("inline-flex")} :host {
            background: ${U.s55};
            border: calc(${U.Han} * 1px) solid ${U.akT};
            border-radius: calc(${U.UWU} * 1px);
            box-sizing: border-box;
            flex-direction: column;
            padding: calc(${U._5n} * 1px) 0;
        }

        :host(:focus-within:not([disabled])) {
            border-color: ${U.yGg};
            box-shadow: 0 0 0 1px ${U.yGg} inset;
        }
    `.withBehaviors((0,N.vF)(z.i`
                :host(:${Xt.b}) ::slotted([aria-selected="true"][role="option"]) {
                    background: ${Yt.H.Highlight};
                    border-color: ${Yt.H.ButtonText};
                    box-shadow: 0 0 0 calc(${U.vxp} * 1px) inset
                        ${Yt.H.HighlightText};
                    color: ${Yt.H.HighlightText};
                    fill: currentcolor;
                }

                :host(:${Xt.b}) ::slotted([aria-selected="true"][role="option"]) {
                    background: ${Yt.H.Highlight};
                    border-color: ${Yt.H.ButtonText};
                    box-shadow: 0 0 0 calc(${U.vxp} * 1px) inset
                        ${Yt.H.HighlightText};
                    color: ${Yt.H.HighlightText};
                    fill: currentcolor;
                }

                ::slotted([role="option"]:not([aria-selected="true"]):not([disabled]):hover) {
                    forced-color-adjust: none;
                    color: ${Yt.H.ButtonText};
                    background: ${Yt.H.ButtonFace};
                    border-color: ${Yt.H.Highlight};
                    box-shadow: none;
                }
            `))});var Qt=i(87034),te=i(42355),ee=i(65135),ie=i(38156),ae=i(79703),oe=i(44772),re=i(47224),ne=i(9610),se=i(51671),de=i(99478),ce=i(97186),le=i(66861);class pe extends ne.l{constructor(){super(),this.openLinksInNewTab=!0,this.interestServiceOcid="Peregrine",this.settingsHandler=t=>{switch(t){case"onShowSettingsStart":this.esportsCardViewMode=c.Settings;break;case"onShowSettingsEnd":this.esportsCardViewMode=c.Settings,this.esportsCardData.footerContent=void 0,this.closeActionMenu(),this.shouldCardOverflow=this.config.isDynamicFeed&&this.cardSize==le.X.EsportsCardLayout._1x_1y,this.shouldCardOverflow&&(0,Tt.f3)(this.parentElement,this.sizeChangeHandler,"esportsMatch");break;case"onHideSettingsEnd":this.esportsCardViewMode=c.Default,this.esportsCardData.footerContent=this.strings.seeMoreText}},this.visibilityHandler=t=>{"visible"===t?this.refreshTimer=setInterval((()=>(0,l.mG)(this,void 0,void 0,(function*(){return yield this.fetchEsportsMatchData()}))),this.config.refreshIntervalInMs):"notvisible"===t&&(this.refreshTimer||(clearInterval(this.refreshTimer),this.refreshTimer=null))},this.interactionsHandler=t=>{"titleInteracted"===t?(this.titleLink||(this.titleLink=(0,Ot.gd)("esports",this.propertiesApi.activationUrl,this.propertiesApi.title)),ee.M0.sendActionEvent(this.titleLink,ie.Aw.Click,ie.wu.Navigate)):"settingsInteracted"===t&&(this.seeMoreButton||(this.seeMoreButton=(0,Ot.vh)("esports")),ee.M0.sendActionEvent(this.seeMoreButton,ie.Aw.Click,ie.wu.More))},this.propertiesHandler=t=>{"colorMode"===t&&(this.widgetBackgroundMode=this.propertiesApi.getProperty(t),this.initGradientAttributes())},this.sizeChangeHandler=t=>{if(this.sizeApi&&"onSizeChangeEnd"===t){const t=this.cardLayout,e=this.sizeApi.getSize();if(this.adjustToHeight(e),t!==this.cardLayout){const t=(0,Ot.TU)("esports",e);t&&ee.M0.sendActionEvent(t,ie.Aw.Click,ie.wu.Customize)}}else if("CardResized"===(null==t?void 0:t.type)){if("esportsMatch"!=(t&&t.detail.cardType))return;const e=t&&t.detail.size;this.adjustToHeight(e)}},this.closeActionMenu=()=>{this.isDynamicFeed&&this.sdCardActionClickHandler&&this.dismissActionMenu&&this.dismissActionMenu()},this.isInitialSetup=!0,(0,jt.z)().withShadowRootMode("closed").withElementDisambiguation((()=>p.h.ignoreDuplicate)).register((0,Gt.hb)(),(0,Wt.ay)(),(0,Pt.ue)(),(0,Rt.QT)(),Jt(),(0,Qt.g)()),p.K.getOrCreate().withShadowRootMode("open").withElementDisambiguation((()=>p.h.ignoreDuplicate)).withPrefix("msft").register(Y(),K(),J(),st(),dt(),ct(),gt(),$t(),kt(),(0,St.xb)(),(0,It.g)()),this.esportsCardAppType=d.Default,this.esportsCardViewMode=c.Default}experienceConnected(){var t,e;return(0,l.mG)(this,void 0,void 0,(function*(){this.config.mockData&&(this.esportsMetaData=this.config.mockData,this.cardLayout=le.X.EsportsCardLayout._1x_2y,this.esportsCardAppType=d.Default,this.esportsCardViewMode=c.Default);try{if(this.isDynamicFeed=this.config.isDynamicFeed,this.widgetInstanceId){const t=document.getElementById(this.widgetInstanceId);this.widgetInstance=t&&t.instance}if(this.isDynamicFeed){if(document.addEventListener("CardResized",this.sizeChangeHandler),this.cardSize||(this.cardSize=null===(t=this.parentElement)||void 0===t?void 0:t.getAttribute("cardsize")),this.cardSize)switch(this.cardSize){case le.X.EsportsCardLayout._1x_1y:this.cardLayout=le.X.EsportsCardLayout._1x_1y;break;case le.X.EsportsCardLayout._1x_2y:this.cardLayout=le.X.EsportsCardLayout._1x_2y;break;case le.X.EsportsCardLayout._1x_3y:case le.X.EsportsCardLayout._1x_4y:this.cardLayout=le.X.EsportsCardLayout._1x_4y;break;default:this.cardLayout=le.X.EsportsCardLayout._1x_2y}this.widgetSize=this.getWidgetSizeFromCardLayout(),this.widgetBackgroundMode=At.gL.get(At.Iq.IsDarkMode)?"dark":"light",this.initGradientAttributes()}if(this.isInitialSetup&&(this.widgetInstance||this.isDynamicFeed)){this.isInitialSetup=!1,this.esportsCardAppType=d.Widget,this.esportsColdStartData=[],this.savedChecked=new Set,this.esportsCardViewMode=c.Initial;const t=`${(0,_t.Yq)().CurrentRequestTargetScope.pageType}.${n.x.esportsCard}`;this.EsportsIndexedDbStoreName=`${t}.store`,this.EsportsIndexedDbName=`${t}`,yield this.readEsportsDataFromIndexDb(),this.isDynamicFeed||(yield this.fetchEsportsMatchData())}this.widgetInstance&&(this.settingsApi=this.widgetInstance.tryGetApi("settings",Dt.l1,Dt.l1),this.settingsApi&&this.settingsApi.addEventListener(this.settingsHandler),this.visibilityApi=this.widgetInstance.tryGetApi("visibility",Dt.l1,Dt.l1),this.visibilityApi&&!this.config.isDynamicFeed&&this.visibilityApi.addEventListener(this.visibilityHandler),this.isDynamicFeed||(this.sizeApi=this.widgetInstance.tryGetApi("sizes",Dt.l1,Dt.l1),this.sizeApi&&(this.adjustToHeight(this.sizeApi.getSize()),this.sizeApi.addEventListener(this.sizeChangeHandler))),this.propertiesApi=this.widgetInstance.tryGetApi("properties",Dt.l1,Dt.l1),this.propertiesApi&&(this.propertiesApi.attribution=this.strings.poweredByMSNEsports,this.widgetBackgroundMode=this.propertiesApi.getProperty("colorMode")||"light",this.initGradientAttributes(),this.propertiesApi.addPropertyChangeListener(this.propertiesHandler)),this.interactionsApi=this.widgetInstance.tryGetApi("interactions",Dt.l1,Dt.l1),this.interactionsApi&&this.interactionsApi.addEventListener(this.interactionsHandler)),this.disableCardAction=(null===(e=this.config)||void 0===e?void 0:e.disableHalfHeightCardAction)&&this.cardLayout===le.X.EsportsCardLayout._1x_1y,this.updateEsportsData(),(0,At.MD)(this.getExperienceType()),this.markVisuallyReadyRaf()}catch(t){ee.M0.sendAppErrorEvent(Object.assign(Object.assign({},O.ReU),{message:"ESports: Exception to initialize EsportsCard.",pb:Object.assign(Object.assign({},O.ReU.pb),{customMessage:`Failed with exception : ${t}`,isPinned:this.isWidgetPinnedInDynamicFeed()})}))}}))}initGradientAttributes(){if(this.parentElement&&(this.widgetInstanceId||this.isDynamicFeed&&this.esportsCardAppType==d.Widget)){const t="dark"===this.widgetBackgroundMode?"#2C2C2C":"#FFFFFF";this.parentElement.style.background=t,U.IfY.setValueFor(this.parentElement,te.w.from((0,ce.in)(t)))}}disconnectedCallback(){super.disconnectedCallback(),this.isDynamicFeed?document.removeEventListener("CardResized",this.sizeChangeHandler):this.sizeApi&&this.sizeApi.removeEventListener(this.sizeChangeHandler),this.settingsApi&&this.settingsApi.removeEventListener(this.settingsHandler),this.visibilityApi&&!this.config.isDynamicFeed&&this.visibilityApi.removeEventListener(this.visibilityHandler),this.propertiesApi&&this.propertiesApi.removePropertyChangeListener(this.propertiesHandler),this.interactionsApi&&this.interactionsApi.removeEventListener(this.interactionsHandler)}isWidgetPinnedInDynamicFeed(){return this.config.isDynamicFeed&&this.esportsCardAppType==d.Widget&&this.supportedSdCardActionMenuItems&&this.supportedSdCardActionMenuItems.includes(Tt.B$.Unpin)}getExperienceType(){return n.x.esportsCard}getWidgetSizeFromCardLayout(){switch(this.cardLayout){case le.X.EsportsCardLayout._1x_1y:return"small";case le.X.EsportsCardLayout._1x_3y:case le.X.EsportsCardLayout._1x_4y:return"large";case le.X.EsportsCardLayout._1x_2y:default:return"medium"}}adjustToHeight(t){let e=null;switch(t){case"large":e=this.config.isDynamicFeed&&this.esportsCardAppType==d.Widget?le.X.EsportsCardLayout._1x_4y:le.X.EsportsCardLayout._1x_3y;break;case"medium":default:e=le.X.EsportsCardLayout._1x_2y;break;case"small":e=le.X.EsportsCardLayout._1x_1y}e!==this.cardLayout&&(this.widgetSize=t,this.cardLayout=e,this.updateEsportsData())}readEsportsDataFromIndexDb(){return(0,l.mG)(this,void 0,void 0,(function*(){if(this.config.enableCache)if(this.indexedDb||(this.indexedDb=new Et.$),this.indexedDb)if(this.indexedDb.supported){try{yield this.indexedDb.initializeIndexedDb(1,this.EsportsIndexedDbStoreName,this.EsportsIndexedDbName)}catch(t){return void(0,A.OO)(t,O.yB4,`ESports: Exception initializing indexed db: ${this.EsportsIndexedDbStoreName} - ${this.EsportsIndexedDbName}`)}try{yield this.popEsportsDataFromIndexDb()}catch(t){(0,A.OO)(t,O.yB4,`ESports: Exception reading data from indexed db: ${this.EsportsIndexedDbStoreName} - ${this.EsportsIndexedDbName}`)}}else(0,A.H)(O.yB4,"ESports: IndexedDb is not supported");else(0,A.H)(O.yB4,"ESports: new IndexedDb() failed for esports card")}))}popEsportsDataFromIndexDb(){return(0,l.mG)(this,void 0,void 0,(function*(){const t=yield this.indexedDb.getAllObjects();t&&(t.forEach((t=>{switch(t.esportsCardCacheKey){case L.EsportsMatchDataList:t.esportsCardCacheData&&(this.esportsMetaData=t.esportsCardCacheData);break;case L.EsportsColdStartDataList:t.esportsCardCacheData&&(this.savedChecked=t.esportsCardCacheData)}})),this.updateEsportsData(),this.esportsMetaData&&this.esportsCardViewMode==c.Initial&&(this.esportsCardViewMode=c.Default))}))}getCheckboxElements(){const t=this.shadowRoot.getElementById("EsportsCard");return t?t.shadowRoot.querySelectorAll("fluent-checkbox"):null}saveSettings(){return(0,l.mG)(this,void 0,void 0,(function*(){const t=this.getCheckboxElements();t&&t.forEach((t=>{const e=t.getElementsByTagName("img")[0].src;t.classList.contains("checked")?this.savedChecked.add(e):this.savedChecked.delete(e)})),this.updateColdStartDoneTelemetry(),this.config.enableCache&&this.indexedDb&&this.indexedDb.setObject(L.EsportsColdStartDataList,{esportsCardCacheKey:L.EsportsColdStartDataList,esportsCardCacheData:this.savedChecked}),this.shouldCardOverflow&&(0,Tt.gK)(this.parentElement,this.sizeChangeHandler,"esportsMatch",this.shouldCardOverflow),yield this.fetchEsportsMatchData(),this.esportsCardViewMode=c.Default,this.settingsApi&&this.settingsApi.hideSettings(),this.config.isDynamicFeed&&(this.esportsCardData.footerContent=this.strings.seeMoreText)}))}buildEsportsColdStartData(){const t=[];I.forEach((e=>{let i=e.isDefault;this.savedChecked&&this.savedChecked.size>0&&(i=this.savedChecked.has(e.gameImage)),t.push({gameImage:e.gameImage,gameImageAltText:e.gameName+" Poster",gameName:e.gameName,isChecked:i,checkTelemetryTag:this.telemetryContext&&this.telemetryContext.videoGames.get(e.satoriId)})})),this.esportsColdStartData=t}fetchEsportsMatchData(){return(0,l.mG)(this,void 0,void 0,(function*(){const t=(0,Nt.fU)("news/feed/segments/esports"),e=(null==t?void 0:t.href)||"https://assets.msn.com/service/news/feed/segments/esports",i=yield this.fetchEsportsFeed(e,this.config.ocid,!1);i&&(i.eSports&&i.eSports.length&&i.eSports[0]||i.length&&i[0])?(this.esportsMetaData=i.length?i[0]:i.eSports[0],this.updateEsportsData()):(0,A.H)(O.f$k,"Fetch esports feed get null response")}))}updateEsportsData(){if(this.esportsMetaData&&this.esportsMetaData.data){const t=JSON.parse(this.esportsMetaData.data);let e=2;switch(this.cardLayout){case le.X.EsportsCardLayout._1x_4y:e=4;break;case le.X.EsportsCardLayout._1x_3y:e=3;break;case le.X.EsportsCardLayout._1x_2y:e=2;break;case le.X.EsportsCardLayout._1x_1y:e=1;break;default:e=2}this.generateTelemetryTags(t,e),this.toggleSDCardActionMenu=this.sdCardActionClickHandler&&(t=>this.toggleEsportsCardActionClick(t)),this.mapEsportsCardData(t,e),this.config.enableCache&&this.indexedDb&&this.indexedDb.setObject(L.EsportsMatchDataList,{esportsCardCacheKey:L.EsportsMatchDataList,esportsCardCacheData:this.esportsMetaData})}this.buildEsportsColdStartData()}fetchEsportsFeed(t=null,e=null,i=!1){return(0,l.mG)(this,void 0,void 0,(function*(){const a=t;if((0,Mt.R)(a)){const t=new URL(a),o=yield Ut.$.getBaseRequestData("GET");this.setSearchParams(t.searchParams);(yield this.getOneServiceCommonParam(e,i)).forEach((e=>e.value&&t.searchParams.set(e.key,e.value)));try{return(yield(0,Bt.w)((()=>(0,l.mG)(this,void 0,void 0,(function*(){const e=yield fetch(decodeURIComponent(t.href),o);if(!e.ok)throw ee.M0.sendAppErrorEvent(Object.assign(Object.assign({},O.bKC),{message:"Error while calling fetch for esports data.",pb:Object.assign(Object.assign({},O.bKC.pb),{customMessage:`Error while calling fetch for esports data: URL: ${t.href}, responseMessage: ${JSON.stringify(e)}`,isPinned:this.isWidgetPinnedInDynamicFeed()})})),Error(e.statusText);return e}))),"FetchEsports")).json()}catch(e){ee.M0.sendAppErrorEvent(Object.assign(Object.assign({},O.I8d),{message:"Error while request esports data with exception.",pb:Object.assign(Object.assign({},O.I8d.pb),{customMessage:`Error while request esports data with exception: ${e} URL: ${t.href} headers: ${JSON.stringify(o.headers)}`,isPinned:this.isWidgetPinnedInDynamicFeed()})}))}}}))}getOneServiceCommonParam(t=null,e=!0){return(0,l.mG)(this,void 0,void 0,(function*(){return this.isUserSignedIn()?Ut.$.getOneServiceParamsWithAuth((0,_t.Yq)().UserId,t||this.interestServiceOcid,e):Ut.$.getOneServiceParamsWithoutAuth((0,_t.Yq)().UserId,t||this.interestServiceOcid,e)}))}isUserSignedIn(){return(0,l.mG)(this,void 0,void 0,(function*(){return!!Ht.Al.UserIsSignedIn||(yield(0,se.XJ)())===Lt.Hy.SignedIn}))}setSearchParams(t){const e=(0,_t.Yq)().CurrentMarket||"en-us",i=(0,_t.Yq)().UserId,a=(0,_t.Yq)().Latitude,o=(0,_t.Yq)().Longitude,r=this.config&&this.config.contentType?this.config.contentType:"esportsMatch";t.set("market",e),(0,de.TF)(i)||t.set("user",i),a&&o&&(t.set("lat",a),t.set("long",o)),r&&t.set("contentType",r);let n=[];this.savedChecked&&this.savedChecked.size>0?(n=Array.from(this.savedChecked).map((t=>{var e;return null===(e=S.get(t))||void 0===e?void 0:e.satoriId})),t.set("ids",n.toString())):(n=I.filter((t=>t.isDefault)).map((t=>t.satoriId)),t.set("ids",n.toString()))}mapEsportsCardData(t,e=2){var i,a,o;if(!t)return;const r=20,n=20,s={width:36,height:36},l=new ae.$,p=(0,_t.Yq)().CurrentMarket;if(t&&(this.esportsMetaData.type===oe.PL.EsportsMatch||this.esportsMetaData.type===oe.PL.GamingMatch)){let h=null===(a=null===(i=t[0])||void 0===i?void 0:i.urls)||void 0===a?void 0:a.hubEntity;if(h){const t="/calendar/",e=h.lastIndexOf(t);e>=0&&(h=(0,Ft.w_)(h.substring(0,e+t.length)+"all/matches/"),this.propertiesApi&&(this.propertiesApi.activationUrl=h))}this.esportsCardData={link:h,actionAppearance:"lightweight"},this.esportsCardAppType==d.Widget?(this.esportsCardViewMode!=c.Settings&&(this.esportsCardData.footerContent=this.strings.seeMoreText),this.isDynamicFeed&&(this.esportsCardData.titleContent=this.strings.headerText)):this.esportsCardData.titleContent=null===(o=this.strings.headerText)||void 0===o?void 0:o.toUpperCase(),this.esportsMatchData=t.slice(0,e).map((t=>{var e,i,a,o,d;const c=t.teams&&this.getParticipantLogoItem(t.teams[0],s),h=t.teams&&this.getParticipantLogoItem(t.teams[1],s),u=this.telemetryContext&&this.telemetryContext.destinations.get("game_"+t.id);let g=l.localizedMonthDate(new Date(t.start),p),m=l.formatTimeFromDate(new Date(t.start),p);return this.config.isDynamicFeed||(g=g+"・"+m,m=void 0),{tournamentTitle:t.tournament&&t.tournament.name,participantOneName:t.teams&&this.getParticipantName(t.teams[0]),participantTwoName:t.teams&&this.getParticipantName(t.teams[1]),gameImage:(null===(i=null===(e=t.videoGame)||void 0===e?void 0:e.urls)||void 0===i?void 0:i.logo)+"&w="+r+"&h="+n,gameImageAltText:null===(o=null===(a=t.videoGame)||void 0===a?void 0:a.urlsDescriptions)||void 0===o?void 0:o.logo,gameImageWidth:r,gameImageHeight:n,participantOneImage:c?c.logo:"https://bing.com/th?id=OSC.LBUDE72011470ECF9782D5B8664A449B2ECA3281C572CEFEE5BB578195AA527A744E",participantOneImageAltText:c?c.altText:"TBD Icon",participantTwoImage:h?h.logo:"https://bing.com/th?id=OSC.LBUDE72011470ECF9782D5B8664A449B2ECA3281C572CEFEE5BB578195AA527A744E",participantTwoImageAltText:h?h.altText:"TBD Icon",participantImageWidth:s.width,participantImageHeight:s.height,matchScore:this.getParticipantsScore(t.teams),matchState:t.status,matchDate:g,matchTime:m,matchUrl:(null===(d=t.urls)||void 0===d?void 0:d.hubEntity)?(0,Ft.w_)(t.urls.hubEntity):null,telemetryMetadataTag:u}})),this.cardType="match"}}getParticipantsScore(t){return(t[0]&&t[0].score)+" - "+(t[1]&&t[1].score)}getParticipantLogoItem(t,e){return t&&t.urls&&t.urls.logo?{logo:t.urls.logo+"&w="+e.width+"&h="+e.height,altText:t.urlsDescriptions.logo}:null}getParticipantName(t){if(t){if(!(0,de.TF)(t.shortName))return t.shortName;if(!(0,de.TF)(t.fullName))return t.fullName}return null}toggleEsportsCardActionClick(t){if(t){const e=t.currentTarget,i={menuItems:this.isDynamicFeed?(0,Tt.aS)(this.supportedSdCardActionMenuItems,this.strings.poweredByMSNEsports,this.telemetryExt,T.Vertical,this.widgetSize,this.settingsHandler):[{glyph:re.Z,id:"more",title:this.strings.moreSettingsText,telemetryTags:this.telemetryContext&&this.telemetryContext.menuMoreSettings&&this.telemetryContext.menuMoreSettings.render()}],referrerButton:e,requestContext:new zt.fH,cardSize:this.cardSize};this.sdCardActionClickHandler(i,this.isDynamicFeed?"esportsMatch":"esports-card")}}generateTelemetryTags(t,e=2){if(!this.telemetryObject||!this.esportsMetaData||!t)return;if(this.isDynamicFeed?this.zoneType=this.isWidgetPinnedInDynamicFeed()?"pinned":"feed":this.widgetInstance&&(this.zoneType="pinned"),this.sizeApi&&!this.isDynamicFeed){const t=this.sizeApi.getSize();if(this.propertiesApi){const e=this.propertiesApi.getProperty("position"),i=this.propertiesApi.getProperty("column");this.telemetryExt=Object.assign({},(0,Ot.$x)(t,e,i))}else this.telemetryExt=Object.assign({},(0,Ot.$x)(t))}const i=this.telemetryObject.addOrUpdateChild({name:T.EsportsCard,action:ie.Aw.View,behavior:ie.wu.Undefined,type:ie.c9.Undefined,zone:this.zoneType,content:{id:T.EsportsCard,type:ie.uH.StructuredData,vertical:T.Vertical,category:T.Category},ext:this.telemetryExt}),a=i.addOrUpdateChild({name:T.Header,action:ie.Aw.Click,behavior:ie.wu.Navigate,type:ie.c9.ActionButton,zone:this.zoneType,content:{id:T.Header,type:ie.uH.StructuredData,vertical:T.Vertical,category:T.Category,headline:T.HeaderHL},ext:this.telemetryExt}),o=i.addOrUpdateChild({name:T.SeeMore,action:ie.Aw.Click,behavior:ie.wu.Navigate,type:ie.c9.ActionButton,zone:this.zoneType,content:{id:T.SeeMore,type:ie.uH.StructuredData,vertical:T.Vertical,category:T.Category,headline:T.SeeMoreHL},ext:this.telemetryExt}),r=i.addOrUpdateChild({name:T.FooterBlankAreaLeft,action:ie.Aw.Click,behavior:ie.wu.Navigate,type:ie.c9.ActionButton,zone:this.zoneType,content:{id:T.FooterBlankAreaLeft,type:ie.uH.StructuredData,vertical:T.Vertical,category:T.Category,headline:T.HeaderHL},ext:this.telemetryExt}),n=i.addOrUpdateChild({name:T.FooterBlankAreaRight,action:ie.Aw.Click,behavior:ie.wu.Navigate,type:ie.c9.ActionButton,zone:this.zoneType,content:{id:T.FooterBlankAreaRight,type:ie.uH.StructuredData,vertical:T.Vertical,category:T.Category,headline:T.HeaderHL},ext:this.telemetryExt}),s=i.addOrUpdateChild({name:T.Customization,action:ie.Aw.Click,behavior:ie.wu.More,type:ie.c9.ActionButton,zone:this.zoneType,content:{id:T.Customization,type:ie.uH.StructuredData,vertical:T.Vertical,category:T.Category,headline:T.Customization},ext:this.telemetryExt}),d=i.addOrUpdateChild({name:T.MoreSettings,action:ie.Aw.Click,behavior:ie.wu.More,type:ie.c9.ActionButton,zone:this.zoneType,content:{id:T.MoreSettings,type:ie.uH.StructuredData,vertical:T.Vertical,category:T.Category,headline:T.MenuMoreHL},ext:this.telemetryExt}),c=i.addOrUpdateChild({name:T.MenuHide,action:ie.Aw.Click,behavior:ie.wu.Hide,type:ie.c9.ActionButton,zone:this.zoneType,content:{id:T.MenuHide,type:ie.uH.StructuredData,vertical:T.Vertical,category:T.Category,headline:T.MenuHideHL},ext:this.telemetryExt}),l=T.Game,p=new Map;let h=1;t.slice(0,e).forEach((t=>{if(t&&t.id){const e=t.id;p.set("game_"+e,i.addOrUpdateChild({name:l+""+h,action:ie.Aw.Click,behavior:ie.wu.Navigate,type:ie.c9.ActionButton,zone:this.zoneType,content:{id:l+""+h,type:ie.uH.StructuredData,vertical:T.Vertical,category:T.Category,headline:"game_"+e},ext:this.telemetryExt}).getMetadataTag()),h++}}));const u=i.addOrUpdateChild({name:T.Done,action:ie.Aw.Click,behavior:ie.wu.Save,type:ie.c9.ActionButton,zone:this.zoneType,content:{id:T.Done,type:ie.uH.StructuredData,vertical:T.Vertical,category:T.Category,headline:T.DoneHL},ext:this.telemetryExt}),g=new Map;I.forEach((t=>{g.set(t.satoriId,i.addOrUpdateChild({name:T.Game+": "+t.gameName,action:ie.Aw.Click,behavior:ie.wu.Customize,type:ie.c9.Section,zone:this.zoneType,content:{id:T.Game+": "+t.gameName,type:ie.uH.StructuredData,vertical:T.Vertical,category:T.Category,headline:"game: "+ +t.gameName},ext:this.telemetryExt}).getMetadataTag())})),this.telemetryContext={componentRoot:this.telemetryObject,esportsCard:i,seeMore:o,footerBlankAreaLeft:r,footerBlankAreaRight:n,destinations:p,titleClick:a,actionButton:s,menuMoreSettings:d,menuHide:c,done:u,videoGames:g}}updateColdStartDoneTelemetry(){this.telemetryContext&&this.telemetryContext.done&&this.telemetryContext.done.updateContract({name:T.Done,action:ie.Aw.Click,behavior:ie.wu.Save,type:ie.c9.ActionButton,zone:this.zoneType,content:{id:T.Done,type:ie.uH.StructuredData,vertical:T.Vertical,category:T.Category,headline:T.DoneHL},ext:Array.from(this.savedChecked).map((t=>{var e;return(null===(e=S.get(t))||void 0===e?void 0:e.gameName)+":true"})).toString()})}}(0,l.gn)([E.LO],pe.prototype,"esportsCardData",void 0),(0,l.gn)([E.LO],pe.prototype,"cardType",void 0),(0,l.gn)([E.LO],pe.prototype,"esportsCardAppType",void 0),(0,l.gn)([E.LO],pe.prototype,"esportsCardViewMode",void 0),(0,l.gn)([E.LO],pe.prototype,"esportsMatchData",void 0),(0,l.gn)([E.LO],pe.prototype,"esportsColdStartData",void 0),(0,l.gn)([E.LO],pe.prototype,"telemetryContext",void 0),(0,l.gn)([E.LO],pe.prototype,"toggleSDCardActionMenu",void 0),(0,l.gn)([E.LO],pe.prototype,"disableCardAction",void 0);var he=i(53271),ue=i(94522);const ge=q.d`
    ${(0,Z.g)(((t,e)=>!e.isFirst),q.d`
            <fluent-divider slot="divider" role="presentation"></fluent-divider>
        `)} 

    <img
        slot="game-image"
        src="${t=>t.gameImage}"
        alt="${t=>t.gameImageAltText}"
        role="presentation"
    />
    <img
        slot="participant-one-image"
        src="${t=>t.participantOneImage}"
        alt="${t=>t.participantOneImageAltText}"
        role="presentation"
    />

    ${(0,Z.g)((t=>"Live"===t.matchState||"Resolved"===t.matchState),q.d`
        <span slot="match-score">
            ${t=>t.matchScore}
        </span>
    `)}

    ${(0,Z.g)(((t,e)=>!e.parent.config.isDynamicFeed&&"Unresolved"===t.matchState),q.d`
        <span slot="match-date">
            ${t=>t.matchDate}
        </span>
    `)}

    ${(0,Z.g)(((t,e)=>e.parent.config.isDynamicFeed&&"Unresolved"===t.matchState),q.d`
        <div slot="match-date-df-date">${t=>t.matchDate}</div>
        <div slot="match-date-df-time">${t=>t.matchTime}</div>
    `)}

    <img
        slot="participant-two-image"
        src="${t=>t.participantTwoImage}"
        alt="${t=>t.participantTwoImageAltText}"
        role="presentation"
    />
    ${(0,Z.g)((t=>"Live"==t.matchState),q.d`
        <msft-esports-badge slot="match-state" fill="primary" color="white">
            ${(t,e)=>e.parent.strings.liveStateText}
        </msft-esports-badge>
    `)}

    ${(0,Z.g)((t=>"Resolved"==t.matchState),q.d`
        <msft-esports-badge slot="match-state" fill="transparent" color="neutral">
            ${(t,e)=>e.parent.strings.resolvedStateText}
        </msft-esports-badge>
    `)}
`,me=q.d`
    ${(0,Z.g)(((t,e)=>e.parent.esportsCardAppType==d.Default),q.d`
        <msft-esports-match-row
            card-layout="${(t,e)=>e.parent.cardLayout}"
            slot="match-row"
            tournament-title="${t=>t.tournamentTitle}"
            participant-one-name="${t=>t.participantOneName}"
            participant-two-name="${t=>t.participantTwoName}"
            href="${t=>t.matchUrl}"
            target=${(t,e)=>e.parent.openLinksInNewTab?"_blank":"_self"}  
            :telemetryTag=${t=>t.telemetryMetadataTag}
        >
            ${ge}
        </msft-esports-match-row>
    `)}

    ${(0,Z.g)(((t,e)=>e.parent.config.isDynamicFeed&&e.parent.esportsCardAppType==d.Widget),q.d`
        <msft-esports-match-row-widget-df
            card-layout="${(t,e)=>e.parent.cardLayout}"
            slot="match-row"
            view-mode="dynamicFeed"
            class=""
            tournament-title="${t=>t.tournamentTitle}"
            participant-one-name="${t=>t.participantOneName}"
            participant-two-name="${t=>t.participantTwoName}"
            href="${t=>t.matchUrl}"
            :telemetryTag=${t=>t.telemetryMetadataTag}
        >
            ${ge}
        </msft-esports-match-row-widget-df>
    `)}

    ${(0,Z.g)(((t,e)=>!e.parent.config.isDynamicFeed&&e.parent.esportsCardAppType==d.Widget),q.d`
        <msft-esports-match-row-widget
            card-layout="${(t,e)=>e.parent.cardLayout}"
            slot="match-row"
            class=${(t,e)=>e.isFirst?"mt-row-first":""}
            tournament-title="${t=>t.tournamentTitle}"
            participant-one-name="${t=>t.participantOneName}"
            participant-two-name="${t=>t.participantTwoName}"
            href="${t=>t.matchUrl}"
            :telemetryTag=${t=>t.telemetryMetadataTag}
        >
            ${ge}
        </msft-esports-match-row-widget>
    `)}    
`,fe=q.d`
    ${(0,Z.g)((t=>t.config.isDynamicFeed&&t.esportsCardAppType==d.Widget),q.d`
        <span slot="title-icon">${'<svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.2 2.4h5.6a4 4 0 0 1 3.9 3.13l1.25 5.66a1.98 1.98 0 0 1-3.33 1.83l-2.15-2.15c-.3-.3-.71-.47-1.14-.47H6.67c-.43 0-.84.17-1.14.47l-2.15 2.15a1.98 1.98 0 0 1-3.33-1.83L1.3 5.53A4 4 0 0 1 5.2 2.4Zm-.6 3.07a.4.4 0 1 1 .8 0v.86h.87a.4.4 0 0 1 0 .8H5.4V8a.4.4 0 1 1-.8 0v-.87h-.87a.4.4 0 0 1 0-.8h.87v-.86Zm7.4.93a.67.67 0 1 0 0-1.33.67.67 0 0 0 0 1.33Zm-1.33 2a.67.67 0 1 0 0-1.33.67.67 0 0 0 0 1.33Z" fill="url(#paint0_linear)"/><defs><linearGradient id="paint0_linear" x1="16" y1=".42" x2="-.72" y2="15.96" gradientUnits="userSpaceOnUse"><stop stop-color="#BB9BFF"/><stop offset="1" stop-color="#8C64FF"/></linearGradient></defs></svg>'}</span>

        ${(0,Z.g)((t=>t.isWidgetPinnedInDynamicFeed()),q.d`
            <div slot="pin" role="img" aria-label="${t=>t.strings.pinnedWidgetText||"pinned widget"}">${ue.Z}</div>`)}`)}

    ${(0,Z.g)((t=>t.toggleSDCardActionMenu&&!t.disableCardAction),q.d`
        <fluent-button
            id="more-actions"
            title="${t=>t.config.isDynamicFeed?"":t.strings.actionButtonText}"
            aria-label="${t=>t.strings.actionButtonText}"
            role="button"
            slot="more-actions"
            appearance=${t=>t.config.isDynamicFeed?"stealth":"neutral"}
            @click="${(t,e)=>t.toggleSDCardActionMenu(e.event)}"            
            data-t="${t=>{var e,i;return null===(i=null===(e=t.telemetryContext)||void 0===e?void 0:e.actionButton)||void 0===i?void 0:i.getMetadataTag()}}"
            class=${t=>t.config.isDynamicFeed&&t.esportsCardAppType==d.Widget?"muw-df-more-actions":"mu-more-actions"}
            ?disabled=${t=>t.config.isDynamicFeed&&t.esportsCardAppType==d.Widget&&t.esportsCardViewMode==c.Settings}
        >
            ${he.Z}
        </fluent-button>
    `)}
`,be=q.d`

    ${(0,Z.g)((t=>t.config.isDynamicFeed&&t.esportsCardAppType==d.Widget),q.d`
        <a
            tabindex="-1"
            slot="footer-start"
            title="${t=>t.strings.headerText}"
            aria-label="${t=>t.strings.headerText}"
            href="${t=>t.esportsCardData.link}"
            target=${t=>t.openLinksInNewTab?"_blank":"_self"}
            data-t="${t=>{var e,i;return null===(i=null===(e=t.telemetryContext)||void 0===e?void 0:e.footerBlankAreaLeft)||void 0===i?void 0:i.getMetadataTag()}}"
        >
        </a>
        <a
            tabindex="-1"
            slot="footer-end"
            title="${t=>t.strings.headerText}"
            aria-label="${t=>t.strings.headerText}"            href="${t=>t.esportsCardData.link}"
            target=${t=>t.openLinksInNewTab?"_blank":"_self"}
            data-t="${t=>{var e,i;return null===(i=null===(e=t.telemetryContext)||void 0===e?void 0:e.footerBlankAreaRight)||void 0===i?void 0:i.getMetadataTag()}}"
        >
        </a>
    `)}
`,ve=q.d`
    ${fe}

    ${(0,Z.g)((t=>"match"==t.cardType&&t.esportsMatchData[0]),q.d`
        ${(0,yt.rx)((t=>t.esportsMatchData),me,{positioning:!0})}
    `)}

    ${be}
`,ye=q.d`
    
    ${(0,Z.g)((t=>t.esportsCardAppType==d.Default),q.d`
        <msft-esports-matchup
            card-layout="${t=>t.cardLayout}"
            target=${t=>t.openLinksInNewTab?"_blank":"_self"}          
            :esportsCardData=${t=>t.esportsCardData}
            :headerTelemetryTag=${t=>t.telemetryContext&&t.telemetryContext.titleClick&&t.telemetryContext.titleClick.getMetadataTag()}
            data-t="${t=>{var e,i;return null===(i=null===(e=t.telemetryContext)||void 0===e?void 0:e.esportsCard)||void 0===i?void 0:i.getMetadataTag()}}"
        >
            ${ve}
        </msft-esports-matchup>
    `)}

    ${(0,Z.g)((t=>t.config.isDynamicFeed&&t.esportsCardAppType==d.Widget&&t.esportsCardViewMode!=c.Settings),q.d`
        <msft-esports-matchup-widget-df
            background="gradient"
            card-layout="${t=>t.cardLayout}"
            target=${t=>t.openLinksInNewTab?"_blank":"_self"}
            ?pinned="${t=>t.isWidgetPinnedInDynamicFeed()}"
            :esportsCardData=${t=>t.esportsCardData}
            :headerTelemetryTag=${t=>t.telemetryContext&&t.telemetryContext.titleClick&&t.telemetryContext.titleClick.getMetadataTag()}
            :seeMoreTelemetryTag=${t=>t.telemetryContext&&t.telemetryContext.seeMore&&t.telemetryContext.seeMore.getMetadataTag()}
            data-t="${t=>{var e,i;return null===(i=null===(e=t.telemetryContext)||void 0===e?void 0:e.esportsCard)||void 0===i?void 0:i.getMetadataTag()}}"
        >
            ${ve}
        </msft-esports-matchup-widget-df>
    `)}

    ${(0,Z.g)((t=>!t.config.isDynamicFeed&&t.esportsCardAppType==d.Widget&&t.esportsCardViewMode!=c.Settings),q.d`
        <msft-esports-matchup-widget
            background="gradient"
            card-layout="${t=>t.cardLayout}"
            target=${t=>t.openLinksInNewTab?"_blank":"_self"}
            :esportsCardData=${t=>t.esportsCardData}
            :headerTelemetryTag=${t=>t.telemetryContext&&t.telemetryContext.titleClick&&t.telemetryContext.titleClick.getMetadataTag()}
            :seeMoreTelemetryTag=${t=>t.telemetryContext&&t.telemetryContext.seeMore&&t.telemetryContext.seeMore.getMetadataTag()}
            data-t="${t=>{var e,i;return null===(i=null===(e=t.telemetryContext)||void 0===e?void 0:e.esportsCard)||void 0===i?void 0:i.getMetadataTag()}}"
        >
            ${ve}
        </msft-esports-matchup-widget>
    `)}

    ${(0,Z.g)((t=>t.config.isDynamicFeed&&t.esportsCardAppType==d.Widget&&t.esportsCardViewMode==c.Settings),q.d`
        <msft-esports-cold-start-widget-df
            id="EsportsCard" 
            background="gradient"
            card-layout="${t=>t.cardLayout}"
            :esportsCardData=${t=>t.esportsCardData}
            description-text="${t=>t.strings.coldStartDescriptionText}"
            footer-text="${t=>t.strings.coldStartFooterText}"
            :checkBoxData="${t=>t.esportsColdStartData}"
            :saveTelemetryTag=${t=>t.telemetryContext&&t.telemetryContext.done&&t.telemetryContext.done.getMetadataTag()}
            @save=${t=>(0,l.mG)(void 0,void 0,void 0,(function*(){return yield t.saveSettings()}))}
        >
            ${fe}
        </msft-esports-cold-start-widget-df>
    `)}

    ${(0,Z.g)((t=>!t.config.isDynamicFeed&&t.esportsCardAppType==d.Widget&&t.esportsCardViewMode==c.Settings),q.d`
        <msft-esports-cold-start
            id="EsportsCard" 
            background="gradient"
            description-text="${t=>t.strings.coldStartDescriptionText}"
            footer-text="${t=>t.strings.coldStartFooterText}"
            :checkBoxData="${t=>t.esportsColdStartData}"
            :saveTelemetryTag=${t=>t.telemetryContext&&t.telemetryContext.done&&t.telemetryContext.done.getMetadataTag()}
            @save=${t=>(0,l.mG)(void 0,void 0,void 0,(function*(){return yield t.saveSettings()}))}
        >
        </msft-esports-cold-start>
    `)}
`,xe=z.i`
    .mt-row-first {
        display: block;
        padding-top: 20px;
    }
    
    .pinned-icon {
        position: absolute;
        inset-inline-start: 240px;
        fill: var(--neutral-foreground-rest);
    }

    msft-esports-matchup .mu-more-actions {
        width: 24px;
        height: 24px;
        min-width: 24px;
        border-width: 0;
        border-radius: 16px;
        cursor: pointer;
        z-index: 2;
    }

    msft-esports-matchup-widget-df .muw-df-more-actions {
        background-color: transparent;
    }

    msft-esports-matchup-widget-df .muw-df-more-actions:hover {
        background-color: var(--neutral-fill-hover);
    }

`,we={experienceConfigSchema:s}},93698:function(t,e,i){i.d(e,{$:function(){return c}});var a=i(33940),o=i(33954),r=i(21050),n=i(12884),s=i(33379),d=i(58155);class c{constructor(){this.idb=(0,n.bs)()}get supported(){return!!this.idb||((0,s.N)()&&o.k&&o.k.log("window.indexedDB is not supported."),!1)}get isCachingAllowed(){const t=(0,n.zp)();if(t){const e=d.c.getQueryParameterByName("enableIndexedDbOperation",t);if(e)return"true"===e.toLocaleLowerCase()}return!0}get isGetAllAllowed(){const t=(0,n.zp)();if(t){const e=d.c.getQueryParameterByName("allowGetAllOverCursor",t);if(e)return"true"===e.toLocaleLowerCase()}return!(!IDBObjectStore.prototype||!IDBObjectStore.prototype.getAll)}_setIndexedDb(t){this.idb=t}_getIdbPromise(){return this.idbPromise}getObject(t){return(0,a.mG)(this,void 0,void 0,(function*(){let e;return yield this.withIdbStore("readonly","getObject",(i=>{e=i.get(t)})),e.result}))}getAll(){return(0,a.mG)(this,void 0,void 0,(function*(){let t;return yield this.withIdbStore("readonly","getAll",(e=>{t=e.getAll()})),t.result}))}getAllObjects(){return(0,a.mG)(this,void 0,void 0,(function*(){if(this.isGetAllAllowed)return this.getAll();const t=[];return yield this.withIdbStore("readonly","getAllObjects",(e=>{e.openCursor().onsuccess=function(e){const i=e.target&&e.target.result?e.target.result:void 0;i&&i.value&&(t.push(i.value),i.continue())}})),t}))}setObject(t,e){return(0,a.mG)(this,void 0,void 0,(function*(){return yield this.withIdbStore("readwrite","setObject",(i=>{i.put(e,t)}))}))}removeObject(t){return(0,a.mG)(this,void 0,void 0,(function*(){return yield this.withIdbStore("readwrite","removeObject",(e=>{e.delete(t)}))}))}clearObjects(){return(0,a.mG)(this,void 0,void 0,(function*(){return yield this.withIdbStore("readwrite","clearObjects",(t=>{t.clear()}))}))}initializeIndexedDb(t=1,e="Default",i="MicrosoftNews",o=null){return(0,a.mG)(this,void 0,void 0,(function*(){this.storeName=e,this.perfTimeline=(0,r.oA)(`IndexedDB-${e}`,e),this.idbPromise=o||new Promise(((a,o)=>{const r=this.perfTimeline&&this.perfTimeline.startMeasure("open").endMeasure,n=this.idb.open(i,t);n.onerror=()=>{r&&r("error"),o(n.error)},n.onsuccess=()=>{r&&r(),a(n.result)},n.onupgradeneeded=()=>{n.result.createObjectStore(e)}}))}))}withIdbStore(t,e,i){return(0,a.mG)(this,void 0,void 0,(function*(){return this.idbPromise.then((a=>new Promise(((o,r)=>{const n=this.perfTimeline&&this.perfTimeline.startMeasure(e).endMeasure,s=a.transaction(this.storeName,t);s.oncomplete=()=>{n&&n(),o()},s.onabort=s.onerror=()=>r(s.error),i(s.objectStore(this.storeName))}))))}))}}},79703:function(t,e,i){i.d(e,{$:function(){return r}});var a,o=i(19628);!function(t){t[t.Default=0]="Default",t[t.Medium=1]="Medium",t[t.MonthDate=2]="MonthDate",t[t.Weekday=3]="Weekday",t[t.Time=4]="Time"}(a||(a={}));class r{constructor(){this.dateFormatOptionsMap=new Map,this.setSupportsLocaleSpecifiers(),this.dateFormatOptionsMap.set(a.Medium,{year:"numeric",month:"short",day:"numeric"}),this.dateFormatOptionsMap.set(a.MonthDate,{month:"short",day:"numeric"}),this.dateFormatOptionsMap.set(a.Weekday,{weekday:"short"}),this.dateFormatOptionsMap.set(a.Time,{hour:"numeric",minute:"numeric"})}overrideDateFormat(t,e){t&&e&&this.dateFormatOptionsMap.set(t,e)}localizedDateString(t,e){return this.formatDate(t,a.Default,e)}localizedDateStringMedium(t,e){return this.formatDate(t,a.Medium,e)}localizedMonthDate(t,e){return this.formatDate(t,a.MonthDate,e)}localizedWeekday(t,e){return this.formatDate(t,a.Weekday,e)}formatTimeFromDate(t,e){return this.supportsLocaleSpecifiers&&this.dateFormatOptionsMap?t.toLocaleTimeString(e,this.dateFormatOptionsMap.get(a.Time)):t.toTimeString()}format(t,...e){return t?o.Ld.Format(t,...e):""}localizedNumberString(t,e){return this.supportsLocaleSpecifiers?t.toLocaleString(e):t.toString()}formatDate(t,e,i){let o=null;if(this.supportsLocaleSpecifiers)if(e===a.Default)o=t.toLocaleDateString(i);else if(this.dateFormatOptionsMap){const a=this.dateFormatOptionsMap.get(e);o=t.toLocaleDateString(i,a)}return null===o&&(o=t.toDateString()),null!==o?o.replace(/\u200E/g,"").replace(/\u200F/g,""):o}setSupportsLocaleSpecifiers(){this.supportsLocaleSpecifiers=(()=>{try{(0).toLocaleString("i")}catch(t){return"RangeError"===t.name}return!1})()}}},66861:function(t,e,i){i.d(e,{X:function(){return a}});var a,o=i(83227),r=i(53909);!function(t){let e,i,a,n;t.startggStreamBaseUrl="https://www.start.gg/game",t.hubBaseUrl="https://www.msn.com/{0}/esports",t.edgeForGamersOcid="e4gntp",t.interestServiceEndpoint="graph/actions",t.interestServiceOcid="Peregrine",t.gamingShorelineOcid="gaming-shoreline",t.anaheimNtpFeedsOcid="anaheim-ntp-feeds",t.dislikeAction="Dislike",t.bingImagePartnerId="uxf",t.thFallbackImage="hubstream_fallback.jpg",t.streamImagePlaceholderThId="OUWL.streamer_placeholder",t.actionMenuItemKeyNotInterested="notInterested",t.actionMenuItemKeyHideCard="hideCard",t.actionMenuItemKeyMoreSettings="moreSettings",t.esportsAppKey="LszQbGWEXeh76bQTAnx4q79cOFDP2WLYWpLDIpKfpJ",t.gamePlayEventCollectionUrl=`https://api.msn.com/sports/RecordGamePlayEvent?apikey=${t.esportsAppKey}&ocid=${t.gamingShorelineOcid}`,t.checkIfUserGamerUrl="https://api.msn.com/news/users/me/actions?actionType=Follow&domain=Sports&interestType=All",t.pdpUserSettingsUrl="https://api.msn.com/Msn/User",t.PostRewardsEventApiUrl="https://api.msn.com/sports/GamingPostRewardsEvent",t.getXboxUserTokenUrl="https://user.auth.xboxlive.com/user/authenticate",t.getXboxXTokenUrl="https://xsts.auth.xboxlive.com/xsts/authorize",t.xboxTitleHubUrlTemplate="https://titlehub.xboxlive.com/users/xuid({xuidValue})/titles/TitleRecord/decoration/image,productid,titlerecord",t.localStorageXboxXTokenId="xboxXTokenId",t.localStorageXboxTitleHubDataId="xboxTitleHubDataId",function(t){t._1x_1y="_1x_1y",t._1x_2y="_1x_2y",t._2x_2y="_2x_2y",t._1x_3y="_1x_3y",t._1x_4y="_1x_4y",t._3x_2y="_3x_2y",t._4x_2y="_4x_2y",t._5x_2y="_5x_2y"}(e=t.EsportsCardLayout||(t.EsportsCardLayout={})),function(t){t.ALL="All",t.APEXLEGEND="2781507b-9bd4-4c47-416f-d433779a2d6a",t.BRAWLHALLA="b1f5c13d-8516-a262-f45c-0fe77103db58",t.COD="ea104807-e8bd-68bf-a85b-c01c90fd5e18",t.COD_MODERN_WARFARE="873504a6-feb4-e8af-fe27-e46326e4b8be",t.CSGO="8f345aa7-ff29-2efd-48fd-8230fd8795aa",t.DOTA2="51b8bf37-fede-45d5-3943-fef79b0fa628",t.FIFA="4e3a60d9-f3ec-ad0f-82ab-472cd8d340a2",t.FORTNITE="13cbc36a-9316-174d-9f11-61ed80751dc8",t.FREEFIRE="4e01bfde-542a-46b7-8c3e-658af348176a",t.GEARS="d98409bb-18ff-541b-1ceb-1d1632e5442a",t.LOL="dcd754dc-9f53-0f8b-3bfc-9c401f16138b",t.MINECRAFT="a9646932-a188-6101-5549-da706613afa0",t.NBA="a3cac10a-d3a0-ac0e-0c04-e23c12a6b4b3",t.NFL="d15fca59-bf56-d81f-d64a-6f44c3bc6a03",t.OVERWATCH="c7762702-92e8-4ab9-87d5-4aac3f34a16c",t.PUBG="a002f1d4-ea2f-ea92-db95-ddeb4e8206f9",t.RAINBOWSIX="8d2a217f-dbef-13a0-708b-53618a35ab1c",t.ROBLOX="3312f0b2-0877-a9cf-aa03-547a861a96f3",t.ROCKETLEAGUE="b872778f-614c-a7ea-e82a-6c42c6c6ccb9",t.SMASH="8b505cf6-ee61-5e74-143b-6db3fc488f26",t.TEKKEN7="ff53a039-d7ac-8c35-39ab-0748e4c8825f",t.VALORANT="72d5fb42-ec96-44e0-ae93-2e1cfb2c1836",t.HALO="9fb23673-5160-bfc9-6234-f986b96819b2",t.WOW="a5c80c6b-1c83-2986-81b7-ca9d8465e940"}(i=t.Game||(t.Game={})),t.userGamerGames=[i.LOL,i.DOTA2,i.FORTNITE,i.VALORANT,i.APEXLEGEND,i.CSGO,i.COD_MODERN_WARFARE,i.ROCKETLEAGUE,i.OVERWATCH,i.WOW],t.csgo={id:i.CSGO,abbreviation:"csgo",thId:"OUWL.esportshub_gamelogo_CSGO"},t.cod={id:i.COD,abbreviation:"cod",thId:"OUWL.esportshub_gamelogo_callofduty"},t.dota2={id:i.DOTA2,abbreviation:"dota2",thId:"OUWL.esportshub_gamelogo_dota2"},t.fortnite={id:i.FORTNITE,abbreviation:"fortnite",thId:"OUWL.esportshub_gamelogo_Fortnite"},t.lol={id:i.LOL,abbreviation:"lol",thId:"OUWL.esportshub_gamelogo_leagueoflegends"},t.overwatch={id:i.OVERWATCH,abbreviation:"overwatch",thId:"OUWL.esportshub_gamelogo_overwatch"},t.pubg={id:i.PUBG,abbreviation:"pubg",thId:"OUWL.esportshub_gamelogo_pubg"},t.rainbowSix={id:i.RAINBOWSIX,abbreviation:"rainbowsix",thId:"OUWL.esportshub_gamelogo_rainboxsix"},t.rocketLeague={id:i.ROCKETLEAGUE,abbreviation:"rocketleague",thId:"OUWL.esportshub_gamelogo_rocketleague"},t.valorant={id:i.VALORANT,abbreviation:"valorant",thId:"OUWL.esportshub_gamelogo_valorant"},t.fifa={id:i.FIFA,abbreviation:"fifa",thId:"OUWL.esportshub_gamelogo_fifa"},t.gears={id:i.GEARS,abbreviation:"gears",thId:"OUWL.esportshub_gamelogo_gears5"},t.smashBros={id:i.SMASH,abbreviation:"smash",thId:"OUWL.esportshub_gamelogo_smashbros"},t.apexLegends={id:i.APEXLEGEND,abbreviation:"apexlegend",thId:"OUWL.esportshub_gamelogo_apex"},t.brawlhalla={id:i.BRAWLHALLA,abbreviation:"brawlhalla",thId:"OUWL.esportshub_gamelogo_brawlhalla"},t.minecraft={id:i.MINECRAFT,abbreviation:"minecraft",thId:"OUWL.esportshub_gamelogo_minecraft"},t.nba={id:i.NBA,abbreviation:"nba",thId:"OUWL.esportshub_gamelogo_nba"},t.roblox={id:i.ROBLOX,abbreviation:"roblox",thId:"OUWL.esportshub_gamelogo_roblox"},t.tekken7={id:i.TEKKEN7,abbreviation:"tekken7",thId:"OUWL.esportshub_gamelogo_tekken"},t.freeFire={id:i.FREEFIRE,abbreviation:"freefire",thId:"OUWL.esportshub_gamelogo_freefirte"},t.nfl={id:i.NFL,abbreviation:"nfl",thId:"OUWL.esportshub_gamelogo_madden"},t.halo={id:i.HALO,abbreviation:"halo",thId:"OUWL.esportshub_gamelogo_haloinfinite"},t.GameMap=new Map([[t.csgo.id,t.csgo],[t.lol.id,t.lol],[t.valorant.id,t.valorant],[t.fortnite.id,t.fortnite],[t.rocketLeague.id,t.rocketLeague],[t.csgo.id,t.csgo],[t.dota2.id,t.dota2],[t.overwatch.id,t.overwatch],[t.pubg.id,t.pubg],[t.cod.id,t.cod],[t.rainbowSix.id,t.rainbowSix],[t.fifa.id,t.fifa],[t.gears.id,t.gears],[t.smashBros.id,t.smashBros],[t.apexLegends.id,t.apexLegends],[t.freeFire.id,t.freeFire],[t.minecraft.id,t.minecraft],[t.roblox.id,t.roblox],[t.tekken7.id,t.tekken7],[t.nfl.id,t.nfl],[t.nba.id,t.nba],[t.brawlhalla.id,t.brawlhalla],[t.halo.id,t.halo]]),t.esportsTelemetryConstants={vertical:"esports",esportsCard:"esports_{cardtype}_card",header:"esports_{cardtype}_header",stream:"esports_{cardtype}_stream",game:"esports_{cardtype}_game",customization:"esports_{cardtype}_customization",moreSettings:"esports_{cardtype}_customization_moresettings",hideCard:"esports_{cardtype}customization_hidecard",notInterested:"esports_{cardtype}_customization_notinterested"},t.gamingTelemetryVertical="gaming",t.gamingTelemetryProviderType="publisher",t.gamingTelemetryAudienceMode="consumer",t.GamingExperienceTelemetryMap=new Map([[o.x.gamingCompeteCard,"GamingCompeteCard"],[o.x.gamingMediaCarousel,"GamingMediaCarousel"],[o.x.gamingPersonalizationCard,"GamingPersonalizeCTACard"],[o.x.gamingRecentlyPlayedCard,"GamingRecentlyPlayedCard"],[o.x.gamingRecommendedCard,"GamingRecommendedCard"],[o.x.gamingRedditCard,"GamingRedditCard"],[o.x.gamingRewardsCard,"GamingRewardsCard"],[o.x.gamingStreamCard,"GamingLiveStreamsCard"],[o.x.gamingTournamentCard,"GamingProTournamentsCard"],[o.x.gamingUpcomingCard,"GamingUpcomingGamesCard"],[o.x.gamingVideoCard,"GamingYoutubeCard"],[o.x.gamingMatchCard,"GamingProMatchesCard"],[o.x.casualGamesCard,"GamingCasualGamesCard"],[o.x.esportsCasualGamesCard,"GamingCasualGamesCard"]]),function(t){t.TitleLink="TitleLink",t.SubredditLink="SubredditLink",t.SingleEventLink="SingleEventLink",t.XboxPlayLink="XboxPlayLink",t.AchievementGuideLink="AchievementGuideLink",t.GameGuideLink="GameGuideLink",t.XCloudGameLink="XCloudGameLink",t.DiscoverLink="DiscoverLink",t.ConnectToXboxButton="ConnectToXboxButton",t.JoinButton="JoinButton",t.TermsButton="TermsButton",t.PrivacyButton="PrivacyButton",t.TournamentContentCard="TournamentContentCard",t.MatchContentCard="MatchContentCard",t.ContentCard="ContentCard",t.GameCarouselCard="GameCarouselCard",t.SeeMore="SeeMore",t.SeeAll="SeeAll",t.UpNextTab="UpNextTab",t.MyEventsTab="MyEventsTab",t.EventCard="EventCarouselCard",t.GamingCarousel="GamingCarousel",t.SequenceIndicator="SequenceIndicator",t.NextFlipper="NextFlipper",t.PreviousFlipper="PreviousFlipper",t.PaginationDot="PaginationDot",t.NewReleasesTab="NewReleasesTab",t.ComingSoonTab="ComingSoonTab",t.GamePassTab="GamePassTab",t.CarouselCard="CarouselCard",t.PersonalizeNowButton="PersonalizeNowButton",t.Header="Header",t.ActionButton="ActionButton",t.MoreSettings="MoreSettingsAction",t.MoreOptions="MoreOptionsAction",t.HideCard="HideCardAction",t.NotInterested="NotInterestedAction",t.HeadCard="HeadCard",t.genreMenuButton="genreMenuButton",t.genreMenuItem="genreMenuItem",t.genreCard="genreCard",t.CarouselHeaderLink="CarouselHeaderLink",t.CarouselHeaderIconLink="CarouselHeaderIconLink"}(a=t.GamingTelemetryComponent||(t.GamingTelemetryComponent={})),t.cardImageInfo={width:300,height:146,enableDpiScaling:!1,format:r.D3.PNG},t.cardImage1uInfo={width:300,height:304,enableDpiScaling:!1,format:r.D3.PNG},t.cardImage16_9Info={width:300,height:157,enableDpiScaling:!1,format:r.D3.PNG},t.timeIconThid="OUWL.gaming_time",t.timeIconSettings={width:12,height:12,enableDpiScaling:!1},t.viewsIconThid="OUWL.gaming_views",t.viewsIconSettings={width:12,height:8,enableDpiScaling:!1},t.youtubeIconThid="OUWL.gaming_youtube",t.twitchIconPurpleThid="OUWL.gaming_twitch_purple",t.twitchIconWhiteThid="OUWL.gaming_twitch_white",t.facebookgamingIconBlueThid="OUWL.gaming_facebookgaming_blue",t.facebookgamingIconWhiteThid="OUWL.gaming_facebookgaming_white",t.providerIconSettings={width:16,height:16,enableDpiScaling:!0},t.gameIconSettings={width:20,height:20,enableDpiScaling:!0},t.streamerIcon={width:32,height:32,enableDpiScaling:!0,format:r.D3.PNG},t.streamerIconLarge={width:60,height:60,enableDpiScaling:!0,format:r.D3.PNG},function(t){t.Gamer="IsGamer",t.XboxGamer="IsXboxGamer",t.PCGamer="IsPCGamer"}(n=t.GamerUserType||(t.GamerUserType={}))}(a||(a={}))},53909:function(t,e,i){i.d(e,{D3:function(){return n},KL:function(){return l},mL:function(){return u},pG:function(){return d},q3:function(){return c},vc:function(){return s},zz:function(){return p}});var a=i(12697),o=i(80983);let r;var n,s;!function(t){t.JPG="jpg",t.PNG="png"}(n||(n={})),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"}(s||(s={}));const d=90,c="www.bing.com/th",l=new RegExp(/bing\.(com|net)\/th/);function p(t,e){return u(((0,o.P)()?"//img-s.msn.cn/tenant/amp/entityid/":"//img-s-msn-com.akamaized.net/tenant/amp/entityid/")+t,e)}const h=Math.ceil(4*Math.random())||4;function u(t,e){if(t&&l.test(t))return function(t,e){try{return g(new URL(t),e).href}catch(i){const a=g(new URL(`https://${t}`),e);return`//${a.host}${a.pathname}${a.search}`}}(t,e);const{focalRegion:i,backgroundColor:o}=e;let{width:s=0,height:d=0,format:c=n.JPG}=e,p="";if(i){const t=f(i.x1,i.x2),e=f(i.y1,i.y2);null!=t&&null!=e&&(p+=`&x=${t}&y=${e}`)}o&&(p+=`&b=${o}`);const h=null==e.mode?6:e.mode;if(6===h&&(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(m()&&r)return r;if(t<1)return null;let e=t;(0,a.Z)(4*e)||(e=Math.ceil(10*e)/10);e>3&&(e=3);m()&&(r=e);return e}(e.devicePixelRatio);t&&(s=Math.round(s*t),d=Math.round(d*t))}return`${t}?w=${s}&h=${d}&q=${e.quality||60}&m=${h}&f=${c}${p}`}function g(t,e){(0,o.P)()&&(t.hostname=`ts${h}.cn.mm.bing.net`);const{width:i=0,height:a=0}=e,r=e.quality||d,n=e.crop||1;return t.searchParams.set("w",`${i}`),t.searchParams.set("h",`${a}`),t.searchParams.set("qlt",`${r}`),t.searchParams.set("c",`${n}`),t.searchParams.set("rs","1"),e.enableDpiScaling&&(t.searchParams.set("dpr",`${e.devicePixelRatio}`),t.searchParams.set("p","0")),t}function m(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function f(t,e){if(null!=t&&null!=e)return Math.floor((t+e)/2)}},16339:function(t,e,i){i.d(e,{Iq:function(){return d},MD:function(){return n},gL:function(){return s}});var a=i(59049),o=i(14675);const r=new a.v("WidgetLoadTracker");function n(t){r.has(t)||("hidden"!==document.visibilityState?(0,o.c)((()=>r.set(t,!0))):r.set(t,!0))}const s=new a.v("WidgetAppState");var d;!function(t){t[t.IsDarkMode=1]="IsDarkMode",t[t.IsDashboardVisible=2]="IsDashboardVisible",t[t.ActionMenuStrings=3]="ActionMenuStrings",t[t.IsDynamicFeed=4]="IsDynamicFeed",t[t.SessionId=5]="SessionId",t[t.NonPeregrineWidgetTelemetryObject=6]="NonPeregrineWidgetTelemetryObject",t[t.FeedRegionWidgets=7]="FeedRegionWidgets",t[t.DefaultPreviewType=8]="DefaultPreviewType",t[t.IsReauthRequired=9]="IsReauthRequired"}(d||(d={}))},68651:function(t,e,i){i.d(e,{B$:function(){return m},f3:function(){return v},US:function(){return b},aS:function(){return g},gK:function(){return y}});var a=i(38156),o=i(16339),r='<svg width="4" height="4" viewBox="0 0 4 4"><rect width="4" height="4" rx="2" fill-opacity=".9"/></svg>',n=i(19456),s=i(53813),d=i(94522),c=i(60483),l=i(64434);let p,h,u;function g(t,e,i,c,l,g){const b=[];let v=0,y=!1;if(!t||!t.length)return;const x=o.gL.get(o.Iq.ActionMenuStrings),w=t.includes(m.Unpin);return u=w?"pinned":"feed",p=i||{},h=c,t.forEach((t=>{switch(t){case m.Small:v++,p.height=146,b.push({id:"small",glyph:l===t?r:void 0,title:x.small||"Small",ariaLabel:x.small||"Small",telemetryTag:f(`size_${m.Small}`,x.small,a.wu.Customize)});break;case m.Medium:v++,p.height=304,b.push({id:"medium",glyph:l===t?r:void 0,title:x.medium||"Medium",ariaLabel:x.medium||"Medium",telemetryTag:f(`size_${m.Medium}`,x.medium,a.wu.Customize)});break;case m.Large:v++,p.height=462,b.push({id:"large",glyph:l===t?r:void 0,title:x.large||"Large",ariaLabel:x.large||"Large",telemetryTag:f(`size_${m.Large}`,x.large,a.wu.Customize)});break;case m.Pin:b.push({id:"pinCard",glyph:d.Z,title:x.pinCard||"Pin widget",ariaLabel:x.pinCard||"Pin widget",telemetryTag:f("pinwidget",x.pinCard,a.wu.Pin)});break;case m.Customize:y=!0,v>1&&b.push({isDivider:!0}),b.push({id:"customize",glyph:n.Z,title:x.customize||"Customize widget",ariaLabel:x.customize||"Customize widget",onClick:()=>g("onShowSettingsEnd"),telemetryTag:f("editwidget",x.customize,a.wu.Customize)});break;case m.Unpin:!y&&v>1&&b.push({isDivider:!0}),b.push({id:"unpinCard",glyph:'<svg width="16" height="20" viewBox="0 0 17 16" fill="none"><path d="M16 15.5c0 .14-.04.25-.14.35-.1.1-.22.15-.35.15a.49.49 0 0 1-.36-.15l-5.03-5.02-1.14 3.81a.5.5 0 0 1-.18.26.46.46 0 0 1-.3.1.48.48 0 0 1-.35-.15L5 11.7.7 16H0v-.71L4.3 11 1.15 7.85A.49.49 0 0 1 1 7.5c0-.1.03-.2.09-.27a.55.55 0 0 1 .22-.18L4.9 5.6.15.85A.48.48 0 0 1 0 .5C0 .36.05.24.15.15A.5.5 0 0 1 .5 0c.13 0 .25.05.35.15l15 15c.1.1.15.21.15.35ZM7.24 5.1l-.75-.75 1.47-3.24A1.48 1.48 0 0 1 9.89.34c.18.08.34.18.48.32L15.3 5.6c.14.14.24.3.32.5a1.49 1.49 0 0 1-.8 1.95L11.52 9.4l-.76-.77 3.66-1.53a.5.5 0 0 0 .3-.46.48.48 0 0 0-.14-.35L9.66 1.38a.46.46 0 0 0-.16-.1.45.45 0 0 0-.19-.05c-.1 0-.19.03-.27.08a.5.5 0 0 0-.18.21L7.23 5.1ZM2.39 7.68l5.87 5.87 1.06-3.53-3.66-3.65L2.4 7.68Z"/></svg>',title:x.unpinCard||"Unpin widget",ariaLabel:x.unpinCard||"Unpin widget",telemetryTag:f("unpinwidget",x.unpinCard,a.wu.Unpin)});break;case m.PoweredBy:b.push({isDivider:!0}),b.push({id:"poweredBy",isText:!0,title:e||"Powered by Microsoft",ariaLabel:e||"Powered by Microsoft"});break;case m.RemoveWidget:b.push({id:m.RemoveWidget,glyph:s.Z,title:x.hideWidget,ariaLabel:x.hideWidget,telemetryTag:f("removewidget",x.hideWidget,a.wu.Hide)})}})),b}var m;function f(t,e,i){return new c.D({name:`${h}>customization_${t}`,type:a.c9.ActionButton,action:a.Aw.Click,behavior:i,zone:u,content:{headline:e,type:a.uH.StructuredData,vertical:h,category:h},destinationUrl:location.href,ext:p}).getMetadataTag()}function b(t){switch(t){case"_1x_1y":case"half":return"small";case"_1x_3y":case"tall":return"large";default:return"medium"}}function v(t,e,i){t&&i&&e&&(e(new CustomEvent("CardResized",{detail:{cardType:i,size:"medium"}})),t.style.zIndex=l.K.Above.toString(),t.style.height="304px")}function y(t,e,i,a){t&&i&&e&&(e(new CustomEvent("CardResized",{detail:{cardType:i,size:"small"}})),!1,t.style.zIndex="",t.style.height="")}!function(t){t.Small="small",t.Medium="medium",t.Large="large",t.Customize="customize",t.Pin="pin",t.Unpin="unpin",t.PoweredBy="poweredBy",t.RemoveWidget="removeWidget"}(m||(m={}))},75361:function(t,e,i){i.d(e,{ss:function(){return T},FK:function(){return S},ZC:function(){return L},l1:function(){return $}});var a=i(26415),o=i(89696),r=i(51223),n=i(65135),s=i(9344),d=i(2040),c=i(16339),l=i(42821),p=i(33954);const h=window.__com_microsoft_dsh_widgetModelApiFactory,u=h&&h.tryGetApi("velocity",1,1);function g(){if(f("Feature_MultiAccount"))return h.tryGetApi("authenticator",1,1)}function m(t,e){e?n.M0.sendAppErrorEvent(Object.assign(Object.assign({},e),{pb:Object.assign(Object.assign({},e.pb),{error:t.message,isAuthV2:!0})})):p.k.logError(t.message)}function f(t){return!(!u||!u.isFeatureEnabled(t))}const b="00000000400F9D16",v="service::www.msn.com::MBI_SSL",y="https://www.api.msn.com/",x="3a4d129e-7f50-4e0d-a7fd-033add0a29f4",w="User.Read Userinfo.ReadWrite",C="https://enterprisenews.microsoft.com/",$=1;let k;async function S(t){const e=Object.assign(Object.assign({},a.Rln),{message:"Exception fetching ProviderAuthority",pb:Object.assign(Object.assign({},a.Rln.pb),{widgetId:t&&t.widgetId,widgetInstanceId:t&&t.instanceId,widgetState:t&&t.widgetState})});try{const i=g();if(i)return await async function(t,e){try{if(!t)throw Error("IAuthenticator is null");const e=(0,l.Yb)("GetAccountType_V2"),i=await t.getDefaultAccountIdAsync();return await t.isMSAAccountAsync(i)?(e(),"consumers"):await t.isAADAccountAsync(i)?(e(),"organizations"):(e(),null)}catch(t){return m(t,e),null}}(i,e);if(!t)throw Error("Widget instance is null");const a=O("GetAccountType"),o=t.tryGetApi("authenticator",$,$),r=await o.getProperty("ProviderAuthority");return a(),r}catch(t){return(0,r.Z0)()||n.M0.sendAppErrorEvent(Object.assign(Object.assign({},e),{pb:Object.assign(Object.assign({},e.pb),{error:t})})),null}}async function I(t,e,i,o,s=""){const d=Object.assign(Object.assign({},a.Rln),{message:"Exception calling GetToken",pb:Object.assign(Object.assign({},a.Rln.pb),{widgetId:t&&t.widgetId,widgetInstanceId:t&&t.instanceId,widgetState:t&&t.widgetState})});try{const a=g();if(a)return await async function(t,e,i,a,o="",r,n){try{if(!t)throw Error("IAuthenticator is null");const n=(0,l.Yb)("GetToken_V2"),s=await t.getDefaultAccountIdAsync(),d=await t.getAccountTokenAsync(s,e,i,a,o,r||"com.msn.desktopfeed");return n(),d}catch(t){return m(t,n),null}}(a,e,i,o,s,t&&t.widgetId,d);if(!t)throw Error("Widget instance is null");const r=O("GetToken"),n=t.tryGetApi("authenticator",$,$),c=await n.getToken(e,i,o,s);return r(),{token:c,errorResult:0,interactionRequired:!1}}catch(t){return(0,r.Z0)()||n.M0.sendAppErrorEvent(Object.assign(Object.assign({},d),{pb:Object.assign(Object.assign({},d.pb),{error:t})})),null}}async function L(t){const e=O("GetMuid"),i=await async function(t,e){const i=Object.assign(Object.assign({},a.Rln),{message:`Exception calling getProperty api for property: ${e}`,pb:Object.assign(Object.assign({},a.Rln.pb),{widgetId:t&&t.widgetId,widgetInstanceId:t&&t.instanceId,widgetState:t&&t.widgetState,property:`property: ${e}`})});try{const a=g();if(a)return await async function(t,e,i){try{if(!e)throw Error("Property is null");if(!t)throw Error("IAuthenticator is null");const i=(0,l.Yb)("GetProperty_V2"),a=await t.getDefaultAccountIdAsync(),o=await t.getAccountPropertyAsync(a,e);return i(),o}catch(t){return m(t,i),null}}(a,e,i);if(!t)throw Error("Widget instance is null");if(!e)throw Error("Property is null");const o=t.tryGetApi("authenticator",$,$);return await o.getProperty(e)}catch(t){return(0,r.Z0)()||n.M0.sendAppErrorEvent(Object.assign(Object.assign({},i),{pb:Object.assign(Object.assign({},i.pb),{error:t})})),null}}(t,"MUID");return e(),i}async function T(t,e=!1,i){const o={};if(!t)return(0,r.Z0)()||n.M0.sendAppErrorEvent(Object.assign(Object.assign({},a.Zj1),{message:"Failed to retrieve user auth token and MUID from WDX client due to undefined widget instance",pb:Object.assign(Object.assign({},a.Zj1.pb),{windowsSessionId:c.gL.get(c.Iq.SessionId)})})),o;const l=await S(t),p="organizations"===l,h="consumers"===l,u=p&&(e||c.gL.get(c.Iq.IsDynamicFeed));if(h||u){const e=await I(t,p?x:b,p?w:v,p?C:y),r=e&&e.token;if(r)u?o[d.Yu.entAuthorization]=r:h&&(o[d.Yu.rpsToken]=r);else{const e=await async function(){if(!f("Feature_ReauthRequiredUser"))return!1;try{const t=g();return!!t&&await t.getReauthRequiredStatusAsync()}catch(t){return n.M0.sendAppErrorEvent(Object.assign(Object.assign({},a.u4l),{message:"Exception fetching getReauthRequiredStatusAsync",pb:Object.assign(Object.assign({},a.u4l.pb),{error:t})})),!1}}();e&&i&&i("reauthrequiredstatuschanged"),!e&&c.gL.get(c.Iq.IsDashboardVisible)&&h&&n.M0.sendAppErrorEvent(Object.assign(Object.assign({},a.ZSB),{message:"WDX Client failed to return user auth token",pb:Object.assign(Object.assign({},a.ZSB.pb),{widgetId:t.widgetId,widgetInstanceId:t.instanceId,windowsSessionId:c.gL.get(c.Iq.SessionId),widgetState:t.widgetState,isMsaUser:h,isBackgroundRefresh:!c.gL.get(c.Iq.IsDashboardVisible)})}))}}k||(k=await L(t));const m=(0,s.jG)();return k?(o[d.Yu.muid]=k,k!==m&&(0,r.nc)(k)):m&&(o[d.Yu.muid]=m),o}const O=t=>(0,o.F)(`WidgetApi.${t}`,{logDuration:!0,firstTimeOnly:!0})},27019:function(t,e,i){i.d(e,{$x:function(){return p},D7:function(){return l},TU:function(){return d},eH:function(){return c},gd:function(){return s},vh:function(){return n}});var a=i(38156),o=i(75559),r=i(60483);function n(t,e){const i=new r.D({name:`${t}_customization`,type:a.c9.ActionButton,content:{headline:`${t}_customization`,type:a.uH.StructuredData,vertical:e||t}}),n=document.createElement("button");return n.setAttribute(o.qP,i.getMetadataTag()),n}function s(t,e,i,n){const s=new r.D({name:`${t}_header`,type:a.c9.ActionButton,content:{headline:i,type:a.uH.StructuredData,vertical:n||t}}),d=document.createElement("a");return d.href=e,d.setAttribute(o.qP,s.getMetadataTag()),d}function d(t,e){const i=new r.D({name:`${t}_customization_size${e}`,type:a.c9.ActionButton,content:{headline:`${e}`,type:a.uH.StructuredData,vertical:t}}),o=document.createElement("button");return o.setAttribute("data-t",i.getMetadataTag()),o}function c(t){const e=new r.D({name:`${t}_setting}`,type:a.c9.ActionButton,content:{headline:"setting",type:a.uH.StructuredData,vertical:t}}),i=document.createElement("button");return i.setAttribute("data-t",e.getMetadataTag()),i}function l(t){const e=new r.D({name:`${t}_removeWidget`,type:a.c9.ActionButton,content:{headline:"removeWidget",type:a.uH.StructuredData,vertical:t}}),i=document.createElement("button");return i.setAttribute("data-t",e.getMetadataTag()),i}function p(t,e,i){return{width:300,height:h(t),row:e,col:u(i)}}function h(t){return"large"===t?412:"medium"===t?304:"small"===t?146:void 0}function u(t){return"primary"===t?1:"secondary"===t?2:void 0}},51223:function(t,e,i){i.d(e,{Z0:function(){return g},nc:function(){return u}});var a,o,r,n,s=i(21712),d=i(76668),c=i(16517),l=i(54804),p=i(76323),h=i(9344);function u(t){var e;const i=c.jG.IsChinaCompliance||"zh-cn"===(null===(e=null===l.Al||void 0===l.Al?void 0:l.Al.Locale)||void 0===e?void 0:e.toLowerCase());t&&(0,h.sq)(s.pA,t,365,i?".msn.cn":".msn.com","/",!0,d.f.None)}!function(t){t[t.none=0]="none",t[t.bgTask=1]="bgTask",t[t.badge=2]="badge",t[t.rotationalPreview=4]="rotationalPreview",t[t.expandedView=8]="expandedView",t[t.fullWv=16]="fullWv",t[t.reauthRequiredUser=32]="reauthRequiredUser"}(a||(a={})),function(t){t[t.header=0]="header",t[t.content=1]="content",t[t.moreOptions=2]="moreOptions"}(o||(o={})),function(t){t[t.resize=0]="resize",t[t.customize=1]="customize",t[t.unpin=2]="unpin",t[t.hide=3]="hide",t[t.pin=4]="pin",t[t.other=5]="other"}(r||(r={})),function(t){t[t.ProfileClicked=0]="ProfileClicked",t[t.AddButtonClicked=1]="AddButtonClicked"}(n||(n={}));const g=(0,p.p)((()=>document.getElementById("widgetGroup-testpage")&&("winWidgets"===c.jG.AppType||"windowsNewsPlus"===c.jG.AppType)));var m;!function(t){t[t.Alert=0]="Alert",t[t.NoAlert=1]="NoAlert",t[t.HighImpact=2]="HighImpact",t[t.Critical=3]="Critical"}(m||(m={}))},99478:function(t,e,i){function a(t,...e){return t.replace(/{(\d+)}/g,(function(t,i){if(i>=e.length)return t;const a=e[i];return"number"==typeof a||a?a:""}))}function o(t){return!t||!t.trim()}i.d(e,{TF:function(){return o},WU:function(){return a}})},19628:function(t,e){var i=function(){function t(){}return t.IsNullOrWhiteSpace=function(t){try{return null==t||"undefined"==t||t.toString().replace(/\s/g,"").length<1}catch(t){return console.log(t),!1}},t.Join=function(e){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];try{var o=i[0];if(Array.isArray(o)||o instanceof Array){for(var r=t.Empty,n=0;n<o.length;n++){var s=o[n];n<o.length-1?r+=s+e:r+=s}return r}if("object"==typeof o){var d=t.Empty,c=o;return Object.keys(o).forEach((function(t){d+=c[t]+e})),d=d.slice(0,d.length-e.length)}var l=i;return t.join.apply(t,[e].concat(l))}catch(e){return console.log(e),t.Empty}},t.Format=function(e){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];try{return e.match(t.regexNumber)?t.format(t.regexNumber,e,i):e.match(t.regexObject)?t.format(t.regexObject,e,i,!0):t.Empty}catch(e){return console.log(e),t.Empty}},t.format=function(e,i,a,o){return void 0===o&&(o=!1),i.replace(e,(function(e,i){var r,n=e.split(":");return n.length>1&&(i=n[0].replace("{",""),e=n[1].replace("}","")),null==(r=o?a[0][i]:a[i])||null==r||e.match(/{\d+}/)||void 0!==(r=t.parsePattern(e,r))&&null!=r?r:t.Empty}))},t.parsePattern=function(e,i){switch(e){case"L":return i.toLowerCase();case"U":return i.toUpperCase();case"d":if("string"==typeof i)return t.getDisplayDateFromString(i);if(i instanceof Date)return t.Format("{0:00}.{1:00}.{2:0000}",i.getDate(),i.getMonth(),i.getFullYear());break;case"s":if("string"==typeof i)return t.getSortableDateFromString(i);if(i instanceof Date)return t.Format("{0:0000}-{1:00}-{2:00}",i.getFullYear(),i.getMonth(),i.getDate());break;case"n":"string"!=typeof i&&(i=i.toString());var a=i.replace(/,/g,".");if(isNaN(parseFloat(a))||a.length<=3)break;var o=a.split(/[^0-9]+/g),r=o;o.length>1&&(r=[t.join.apply(t,[""].concat(o.splice(0,o.length-1))),o[o.length-1]]);var n=r[0],s=n.length%3,d=s>0?n.substring(0,s):t.Empty,c=n.substring(s).match(/.{3}/g);return(d=d+"."+t.Join(".",c))+(r.length>1?","+r[1]:"")}return"number"!=typeof i&&isNaN(i)||isNaN(+e)||t.IsNullOrWhiteSpace(i)?i:t.formatNumber(i,e)},t.getDisplayDateFromString=function(t){var e;if((e=t.split("-")).length<=1)return t;var i=e[e.length-1],a=e[e.length-2],o=e[e.length-3];return(i=(i=i.split("T")[0]).split(" ")[0])+"."+a+"."+o},t.getSortableDateFromString=function(e){var i=e.replace(",","").split(".");if(i.length<=1)return e;var a=i[i.length-1].split(" "),o=t.Empty;a.length>1&&(o=a[a.length-1]);var r=i[i.length-1].split(" ")[0]+"-"+i[i.length-2]+"-"+i[i.length-3];return!t.IsNullOrWhiteSpace(o)&&o.length>1?r+="T"+o:r+="T00:00:00",r},t.formatNumber=function(t,e){var i=e.length,a=t.toString();if(i<=a.length)return a;var o=i-a.length;return new Array(o+=1).join("0")+a},t.join=function(e){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];for(var o=t.Empty,r=0;r<i.length;r++)if(!("string"==typeof i[r]&&t.IsNullOrWhiteSpace(i[r])||"number"!=typeof i[r]&&"string"!=typeof i[r])){o+=""+i[r];for(var n=r+1;n<i.length;n++)if(!t.IsNullOrWhiteSpace(i[n])){o+=e,r=n-1;break}}return o},t.regexNumber=/{(\d+(:\w*)?)}/g,t.regexObject=/{(\w+(:\w*)?)}/g,t.Empty="",t}();e.Ld=i;var a=function(){function t(t){void 0===t&&(t=i.Empty),this.Values=[],this.Values=new Array(t)}return t.prototype.ToString=function(){return this.Values.join("")},t.prototype.Append=function(t){this.Values.push(t)},t.prototype.AppendFormat=function(t){for(var e=[],a=1;a<arguments.length;a++)e[a-1]=arguments[a];this.Values.push(i.Format.apply(i,[t].concat(e)))},t.prototype.Clear=function(){this.Values=[]},t}()},22169:function(t,e,i){i.d(e,{g:function(){return s}});var a=i(69298),o=i(48657),r=i(32804),n=i(53046);const s=a.Zb.compose({baseName:"prong2-card-wrapper",template:o.O,styles:(t,e)=>n.i`
        ${(0,a.F)(t,e)} :host {
            border-radius: calc(${r.rSr} * 2px);
            box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.04);
        }
    `})},16590:function(t,e,i){i.d(e,{xb:function(){return f}});var a=i(33940),o=i(65620),r=i(87697),n=i(48839);class s extends n.I{constructor(){super(...arguments),this.pinned=!1}}(0,a.gn)([o.Lj],s.prototype,"target",void 0),(0,a.gn)([(0,o.Lj)({mode:"boolean"})],s.prototype,"pinned",void 0),(0,a.gn)([r.LO],s.prototype,"data",void 0),(0,a.gn)([r.LO],s.prototype,"headerTelemetryTag",void 0),(0,a.gn)([r.LO],s.prototype,"seeMoreTelemetryTag",void 0);var d=i(67020),c=i(56201),l=i(40082),p=i(53046),h=i(15933),u=i(32804);var g=i(39181),m=i(13988);const f=s.compose({baseName:"structured-data-card",template:(t,e)=>g.d`
    <div class="title" part="title">
        ${(0,m.g)((t=>{var e;return null===(e=t.data)||void 0===e?void 0:e.titleContent}),g.d`
                <a
                    class="title-link"
                    part="title-link"
                    href="${t=>{var e;return null===(e=t.data)||void 0===e?void 0:e.link}}"
                    target=${t=>t.target}
                    title="${t=>{var e,i,a;return null!==(i=null===(e=t.data)||void 0===e?void 0:e.titleContentHint)&&void 0!==i?i:null===(a=t.data)||void 0===a?void 0:a.titleContent}}"
                    data-t="${t=>t.headerTelemetryTag}"
                >
                    <slot name="title-icon"></slot>
                    <div class="title-content" part="title-content">
                        ${t=>{var e;return null===(e=t.data)||void 0===e?void 0:e.titleContent}}
                    </div>
                    <slot name="weather-pen-btn"></slot>
                    <slot name="weather-map-btn"></slot>
                </a>
            `)}
        <slot name="pin"></slot>
        <slot name="more-actions"></slot>
    </div>
    <slot></slot>
    <div class="footer" part="footer">
        <slot name="footer-start"></slot>
        ${(0,m.g)((t=>{var e;return null===(e=t.data)||void 0===e?void 0:e.footerContent}),g.d`
                <fluent-anchor
                    class="sd-action"
                    part="sd-action"
                    appearance="${t=>{var e;return null===(e=t.data)||void 0===e?void 0:e.actionAppearance}}"
                    href="${t=>{var e,i,a;return(null===(e=t.data)||void 0===e?void 0:e.footerLink)?null===(i=t.data)||void 0===i?void 0:i.footerLink:null===(a=t.data)||void 0===a?void 0:a.link}}"
                    target=${t=>t.target}
                    data-t="${t=>t.seeMoreTelemetryTag}"
                >
                    ${t=>{var e;return null===(e=t.data)||void 0===e?void 0:e.footerContent}}
                </fluent-anchor>
            `)}
        <slot name="footer-end"></slot>
    </div>
`,styles:(t,e)=>p.i`
    ${(0,d.j)("grid")}:host {
        position: relative;
        width: auto;
        height: 100%;
        box-sizing: border-box;
        font-family: ${u.SVJ};
        grid-template-rows: auto 1fr auto;
        padding: var(--content-padding, 16px 0);
        outline: none;
    }

    :host([pinned]) {
        /* with this change, we are remove top padding from the card to support the grab handle extending from the title */
        padding: var(--content-padding, 0 16px 16px 16px);
    }

    :host([pinned]) .title-link {
        cursor: pointer;
    }

    :host([pinned]) .title {
        cursor: var(--cursor-styles);
        /* with this, we are only adding top padding to the title to support the grab handle in Prong 2 and removing from the card */
        padding: var(--title-padding, 16px 0 0);
    }

    .footer {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        padding: var(--footer-padding, 0 16px);
    }

    .title {
        overflow: hidden;
        display: grid;
        grid-template-columns: 1fr auto auto;
        grid-gap: 8px;
        padding: var(--title-padding, 0 16px);
        overflow: visible;
        align-items: center;
    }

    .title-link {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-gap: 8px;
        color: ${u.CHi};
        font-size: ${u.sNp};
        justify-content: flex-start;
        line-height: ${u.vgC};
        outline: none;
        cursor: pointer;
        text-decoration: none;
        margin-inline-end: auto;
    }

    .title-link:hover,
    .title-link:active,
    .title-link:${c.b} {
        text-decoration: underline;
    }

    .title-content {
        font-size: ${u.sNp};
        line-height: ${u.vgC};
        margin-top: 4px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        -webkit-line-clamp: var(--title-max-lines, 1);
    }

    ::slotted([slot="title-icon"]) {
        margin-top: 4px;
    }

    .sd-action {
        --control-corner-radius: 16;
        grid-column: 2;
        z-index: 1;
    }

    .sd-action:not([appearance="lightweight"]) {
        font-size: ${u.sNp};
        line-height: ${u.vgC};
    }

    .sd-action::part(control) {
        width: 100%;
        padding: var(--sd-action-padding, 0px 24px);
    }

    .sd-action::part(content) {
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    ::slotted([slot="more-actions"]) {
        min-width: var(--more-actions-size, 24px);
        width: var(--more-actions-size, 24px);
        height: var(--more-actions-size, 24px);
        --control-corner-radius: var(--more-actions-corner-radius, 16);
        z-index: 1;
        grid-column: 3;
        background-color: transparent;
    }

    ::slotted([slot="more-actions"]:hover) {
        background-color: ${u.QpD};
     }
     
     ::slotted([slot="more-actions"]:active) {
        background-color: ${u.sG3};
     }

    ::slotted([slot="pin"]) {
        fill: ${u.CHi};
        margin-inline-end: 6px;
    }
`.withBehaviors((0,l.vF)(p.i`
                .title-link {
                    color: ${h.H.CanvasText};
                }
                a[href] {
                    color: ${h.H.LinkText};
                }
            `))})},95263:function(t,e,i){i.d(e,{Sf:function(){return c},w_:function(){return d},UT:function(){return l},IY:function(){return p},A4:function(){return g}});var a=i(98648),o=i(42355),r=i(32804),n=i(65390);const{create:s}=a.L,d=s("gradient-white-fill").withDefault((t=>(0,n.Y)(.8,1,o.w.create(1,1,1),r.wFS.getValueFor(t)))),c=s("gradient-background-fill").withDefault((t=>(0,n.Y)(0,1,null,r.wFS.getValueFor(t)))),l=s("neutral-fill-bubble-on-rest").withDefault((t=>function(t,e){const i=t.closestIndexOf(e);return t.get(i-5)}(r.yvm.getValueFor(t),r.wFS.getValueFor(t)))),p=s("neutral-foreground-hint-on-bubble-on-rest").withDefault((t=>r.axZ.getValueFor(t).evaluate(t,l.getValueFor(t))));function h(t,e,i){return t.get(t.closestIndexOf((a=e,o.w.create(a,a,a)))-i);var a}const u=s({name:"neutral-layer-card-recipe",cssCustomPropertyName:null}).withDefault({evaluate:t=>h(r.yvm.getValueFor(t),r.q2d.getValueFor(t),r.YL4.getValueFor(t))}),g=s("neutral-layer-card").withDefault((t=>u.getValueFor(t).evaluate(t)))},65390:function(t,e,i){i.d(e,{Y:function(){return r}});var a=i(97186),o=i(2696);function r(t=0,e=1,i,r){const n=r.toColorString(),{r:s,g:d,b:c}=(0,a.in)(n),l=`linear-gradient(160deg, ${new o.h(s,d,c,t).toStringWebRGBA()}, ${new o.h(s,d,c,e).toStringWebRGBA()})`;if(i){return[l,null==i?void 0:i.toColorString()].join()}return l}},16859:function(t,e,i){i.d(e,{Y:function(){return d}});var a=i(32804),o=i(78125),r=i(97186),n=i(60279);const s=(0,i(9791).Z)((t=>{let e=(0,r.in)(t);if(null!==e)return e;if(e=(0,r.hg)(t),null!==e)return e;throw new Error(`${t} cannot be converted to a ColorRGBA64. Color strings must be one of the following formats: "#RGB", "#RRGGBB", or "rgb(r, g, b)"`)}));class d{constructor(t,e){this.cache=new WeakMap,this.light=t,this.dark=e}bind(t){this.attach(t)}unbind(t){const e=this.cache.get(t);e&&a.IfY.unsubscribe(e)}attach(t){const e=this.cache.get(t)||new c(this.light,this.dark,t),i=a.IfY.getValueFor(t);a.IfY.subscribe(e,t),e.attach(i),this.cache.set(t,e)}}class c{constructor(t,e,i){this.light=t,this.dark=e,this.source=i,this.attached=null}handleChange({target:t,token:e}){this.attach(e.getValueFor(t))}attach(t){const e=(i=t.toColorString(),(0,n.hM)(s(i))<=o.h.DarkMode?"dark":"light");var i;this.attached!==this[e]&&(null!==this.attached&&this.source.$fastController.removeStyles(this.attached),this.attached=this[e],null!==this.attached&&this.source.$fastController.addStyles(this.attached))}}},38247:function(t,e,i){i.d(e,{QT:function(){return p}});var a=i(33940),o=i(28090),r=i(65620),n=i(45169),s=i(53046),d=i(45597),c=i(82636);class l extends o.e{appearanceChanged(t,e){t!==e&&(this.classList.add(e),this.classList.remove(t))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="neutral")}defaultSlottedContentChanged(){const t=this.defaultSlottedContent.filter((t=>t.nodeType===Node.ELEMENT_NODE));1===t.length&&t[0]instanceof SVGElement?this.control.classList.add("icon-only"):this.control.classList.remove("icon-only")}}(0,a.gn)([r.Lj,(0,a.w6)("design:type",String)],l.prototype,"appearance",void 0);const p=l.compose({baseName:"anchor",baseClass:o.e,template:n.g,styles:(t,e)=>s.i`
        ${(0,d.vN)(t,e)}
    `.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}})},77193:function(t,e,i){i.d(e,{G8:function(){return g},WE:function(){return u}});var a=i(33940),o=i(84742),r=i(12968),n=i(65620),s=i(20104),d=i(53046),c=i(67020),l=i(32804);const p=(t,e)=>d.i`
        ${(0,c.j)("inline-block")} :host {
            box-sizing: border-box;
            font-family: ${l.SVJ};
            font-size: ${l.sNp};
            line-height: ${l.vgC};
        }

        .control {
            border-radius: calc(${l.UWU} * 1px);
            padding: calc(((${l._5n} * 0.5) - ${l.Han}) * 1px)
                calc((${l._5n} - ${l.Han}) * 1px);
            border: calc(${l.Han} * 1px) solid transparent;
        }

        :host(.lightweight) .control {
            background: transparent;
            color: ${l.CHi};
            font-weight: 600;
        }

        :host(.accent) .control {
            background: ${l.Avx};
            color: ${l.w41};
        }

        :host(.neutral) .control {
            background: ${l.wFS};
            color: ${l.CHi};
        }
    `;class h extends o.C{constructor(){super(...arguments),this.appearance="lightweight"}appearanceChanged(t,e){t!==e&&r.SO.queueUpdate((()=>{this.classList.add(e),this.classList.remove(t)}))}}(0,a.gn)([(0,n.Lj)({mode:"fromView"}),(0,a.w6)("design:type",String)],h.prototype,"appearance",void 0);const u=h.compose({baseName:"badge",baseClass:o.C,template:s.Z,styles:p}),g=p},69298:function(t,e,i){i.d(e,{Zb:function(){return y},F:function(){return w},ay:function(){return x}});var a=i(33940),o=i(65130),r=i(97186),n=i(22680),s=i(87697),d=i(65620),c=i(48657),l=i(32804),p=i(42355),h=i(42255),u=i(53046),g=i(67020),m=i(40082),f=i(87839),b=i(62734);const v=(t,e)=>u.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);
            ${b.XC}
        }

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

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

        :host {
            content-visibility: auto;
        }
    `.withBehaviors((0,m.vF)(u.i`
                :host {
                    forced-color-adjust: none;
                    background: ${f.H.Canvas};
                    box-shadow: 0 0 0 1px ${f.H.CanvasText};
                }
            `));class y extends o.Z{cardFillColorChanged(t,e){if(e){const t=(0,r.in)(e);null!==t&&(this.neutralPaletteSource=e,l.IfY.setValueFor(this,p.w.create(t.r,t.g,t.b)))}}neutralPaletteSourceChanged(t,e){if(e){const t=(0,r.in)(e),i=p.w.create(t.r,t.g,t.b);l.yvm.setValueFor(this,h.v.create(i))}}handleChange(t,e){this.cardFillColor||l.IfY.setValueFor(this,(e=>l.abR.getValueFor(e).evaluate(e,l.IfY.getValueFor(t))))}connectedCallback(){super.connectedCallback();const t=(0,n.T)(this);if(t){const e=s.y$.getNotifier(t);e.subscribe(this,"fillColor"),e.subscribe(this,"neutralPalette"),this.handleChange(t,"fillColor")}}}(0,a.gn)([(0,d.Lj)({attribute:"card-fill-color",mode:"fromView"}),(0,a.w6)("design:type",String)],y.prototype,"cardFillColor",void 0),(0,a.gn)([(0,d.Lj)({attribute:"neutral-palette-source",mode:"fromView"}),(0,a.w6)("design:type",String)],y.prototype,"neutralPaletteSource",void 0);const x=y.compose({baseName:"card",baseClass:o.Z,template:c.O,styles:v}),w=v},87034:function(t,e,i){i.d(e,{g:function(){return C}});var a=i(20005),o=i(65620),r=i(87697),n=i(36153),s=i(82500),d=i(48839);class c extends d.I{}class l extends((0,s.V2)(c)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class p extends l{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=t=>{if(!this.readOnly&&t.key===n.BI)this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked},this.clickHandler=t=>{this.disabled||this.readOnly||(this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}}(0,a.gn)([(0,o.Lj)({attribute:"readonly",mode:"boolean"})],p.prototype,"readOnly",void 0),(0,a.gn)([r.LO],p.prototype,"defaultSlottedNodes",void 0),(0,a.gn)([r.LO],p.prototype,"indeterminate",void 0);var h=i(39181),u=i(90960);var g=i(53046),m=i(67020),f=i(56201),b=i(37139),v=i(40082),y=i(15933),x=i(2658),w=i(32804);const C=p.compose({baseName:"checkbox",template:(t,e)=>h.d`
    <template
        role="checkbox"
        aria-checked="${t=>t.checked}"
        aria-required="${t=>t.required}"
        aria-disabled="${t=>t.disabled}"
        aria-readonly="${t=>t.readOnly}"
        tabindex="${t=>t.disabled?null:0}"
        @keypress="${(t,e)=>t.keypressHandler(e.event)}"
        @click="${(t,e)=>t.clickHandler(e.event)}"
        class="${t=>t.readOnly?"readonly":""} ${t=>t.checked?"checked":""} ${t=>t.indeterminate?"indeterminate":""}"
    >
        <div part="control" class="control">
            <slot name="checked-indicator">
                ${e.checkedIndicator||""}
            </slot>
            <slot name="indeterminate-indicator">
                ${e.indeterminateIndicator||""}
            </slot>
        </div>
        <label
            part="label"
            class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"
        >
            <slot ${(0,u.Q)("defaultSlottedNodes")}></slot>
        </label>
    </template>
`,styles:(t,e)=>g.i`
        ${(0,m.j)("inline-flex")} :host {
            align-items: center;
            outline: none;
            margin: calc(${w._5n} * 1px) 0;
            ${""} user-select: none;
        }

        .control {
            position: relative;
            width: calc((${x.i} / 2 + ${w._5n}) * 1px);
            height: calc((${x.i} / 2 + ${w._5n}) * 1px);
            box-sizing: border-box;
            border-radius: calc(${w.UWU} * 1px);
            border: calc(${w.Han} * 1px) solid ${w.rU8};
            background: ${w._Bj};
            outline: none;
            cursor: pointer;
        }

        .label__hidden {
            display: none;
            visibility: hidden;
        }

        .label {
            font-family: ${w.SVJ};
            color: ${w.CHi};
            ${""} padding-inline-start: calc(${w._5n} * 2px + 2px);
            margin-inline-end: calc(${w._5n} * 2px + 2px);
            cursor: pointer;
            font-size: ${w.cSu};
            line-height: ${w.RUt};
        }

        .checked-indicator {
            width: 100%;
            height: 100%;
            display: block;
            fill: ${w.CHi};
            opacity: 0;
            pointer-events: none;
        }

        .indeterminate-indicator {
            border-radius: calc((${w.UWU} / 2) * 1px);
            background: ${w.CHi};
            position: absolute;
            top: 50%;
            left: 50%;
            width: 50%;
            height: 50%;
            transform: translate(-50%, -50%);
            opacity: 0;
        }

        :host(:enabled) .control:hover {
            background: ${w.Tm7};
            border-color: ${w.gKw};
        }

        :host(:enabled) .control:active {
            background: ${w.Ium};
            border-color: ${w.ekh};
        }

        :host(:${f.b}) .control {
            box-shadow: 0 0 0 2px ${w.IfY}, 0 0 0 4px ${w.yGg};
            border-color: ${w.yGg};
        }

        :host(.disabled) .label,
        :host(.readonly) .label,
        :host(.readonly) .control,
        :host(.disabled) .control {
            cursor: ${b.H};
        }

        :host(.checked:not(.indeterminate)) .checked-indicator,
        :host(.indeterminate) .indeterminate-indicator {
            opacity: 1;
        }

        :host(.disabled) {
            opacity: ${w.VFZ};
        }
    `.withBehaviors((0,v.vF)(g.i`
                .control {
                    forced-color-adjust: none;
                    border-color: ${y.H.FieldText};
                    background: ${y.H.Field};
                }
                :host(:enabled) .control:hover,
                .control:active {
                    border-color: ${y.H.Highlight};
                    background: ${y.H.Field};
                }
                .checked-indicator {
                    fill: ${y.H.FieldText};
                }
                .indeterminate-indicator {
                    background: ${y.H.FieldText};
                }
                :host(:${f.b}) .control {
                    border-color: ${y.H.Highlight};
                    box-shadow: 0 0 0 2px ${y.H.Field},
                        0 0 0 4px ${y.H.FieldText};
                }
                :host(.checked:${f.b}:enabled) .control {
                    box-shadow: 0 0 0 2px ${y.H.Field},
                        0 0 0 4px ${y.H.FieldText};
                }
                :host(.checked) .control {
                    background: ${y.H.Highlight};
                    border-color: ${y.H.Highlight};
                }
                :host(.checked) .control:hover,
                .control:active {
                    background: ${y.H.HighlightText};
                }
                :host(.checked) .checked-indicator {
                    fill: ${y.H.HighlightText};
                }
                :host(.checked) .control:hover .checked-indicator {
                    fill: ${y.H.Highlight};
                }
                :host(.checked) .indeterminate-indicator {
                    background: ${y.H.HighlightText};
                }
                :host(.checked) .control:hover .indeterminate-indicator {
                    background: ${y.H.Highlight};
                }
                :host(.disabled) {
                    opacity: 1;
                }
                :host(.disabled) .control {
                    forced-color-adjust: none;
                    border-color: ${y.H.GrayText};
                    background: ${y.H.Field};
                }
                :host(.disabled) .indeterminate-indicator,
                :host(.checked.disabled) .control:hover .indeterminate-indicator {
                    forced-color-adjust: none;
                    background: ${y.H.GrayText};
                }
                :host(.disabled) .checked-indicator,
                :host(.checked.disabled) .control:hover .checked-indicator {
                    forced-color-adjust: none;
                    fill: ${y.H.GrayText};
                }
            `)),checkedIndicator:'\n    <svg\n        aria-hidden="true"\n        part="checked-indicator"\n        class="checked-indicator"\n        viewBox="0 0 20 20"\n        xmlns="http://www.w3.org/2000/svg"\n    >\n        <path\n            fill-rule="evenodd"\n            clip-rule="evenodd"\n            d="M8.143 12.6697L15.235 4.5L16.8 5.90363L8.23812 15.7667L3.80005 11.2556L5.27591 9.7555L8.143 12.6697Z"\n        />\n    </svg>\n  ',indeterminateIndicator:'\n    <div part="indeterminate-indicator" class="indeterminate-indicator"></div>\n  '})},28090:function(t,e,i){i.d(e,{e:function(){return l},m:function(){return p}});var a=i(20005),o=i(65620),r=i(87697),n=i(48839),s=i(7775),d=i(51208),c=i(86076);class l extends n.I{constructor(){super(...arguments),this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(t=this.$fastController.definition.shadowOptions)||void 0===t?void 0:t.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}connectedCallback(){super.connectedCallback(),this.handleUnsupportedDelegatesFocus()}}(0,a.gn)([o.Lj],l.prototype,"download",void 0),(0,a.gn)([o.Lj],l.prototype,"href",void 0),(0,a.gn)([o.Lj],l.prototype,"hreflang",void 0),(0,a.gn)([o.Lj],l.prototype,"ping",void 0),(0,a.gn)([o.Lj],l.prototype,"referrerpolicy",void 0),(0,a.gn)([o.Lj],l.prototype,"rel",void 0),(0,a.gn)([o.Lj],l.prototype,"target",void 0),(0,a.gn)([o.Lj],l.prototype,"type",void 0),(0,a.gn)([r.LO],l.prototype,"defaultSlottedContent",void 0);class p{}(0,a.gn)([(0,o.Lj)({attribute:"aria-expanded"})],p.prototype,"ariaExpanded",void 0),(0,c.e)(p,s.v),(0,c.e)(l,d.hW,p)},45169:function(t,e,i){i.d(e,{g:function(){return s}});var a=i(39181),o=i(58952),r=i(90960),n=i(51208);const s=(t,e)=>a.d`
    <a
        class="control"
        part="control"
        download="${t=>t.download}"
        href="${t=>t.href}"
        hreflang="${t=>t.hreflang}"
        ping="${t=>t.ping}"
        referrerpolicy="${t=>t.referrerpolicy}"
        rel="${t=>t.rel}"
        target="${t=>t.target}"
        type="${t=>t.type}"
        aria-atomic="${t=>t.ariaAtomic}"
        aria-busy="${t=>t.ariaBusy}"
        aria-controls="${t=>t.ariaControls}"
        aria-current="${t=>t.ariaCurrent}"
        aria-describedby="${t=>t.ariaDescribedby}"
        aria-details="${t=>t.ariaDetails}"
        aria-disabled="${t=>t.ariaDisabled}"
        aria-errormessage="${t=>t.ariaErrormessage}"
        aria-expanded="${t=>t.ariaExpanded}"
        aria-flowto="${t=>t.ariaFlowto}"
        aria-haspopup="${t=>t.ariaHaspopup}"
        aria-hidden="${t=>t.ariaHidden}"
        aria-invalid="${t=>t.ariaInvalid}"
        aria-keyshortcuts="${t=>t.ariaKeyshortcuts}"
        aria-label="${t=>t.ariaLabel}"
        aria-labelledby="${t=>t.ariaLabelledby}"
        aria-live="${t=>t.ariaLive}"
        aria-owns="${t=>t.ariaOwns}"
        aria-relevant="${t=>t.ariaRelevant}"
        aria-roledescription="${t=>t.ariaRoledescription}"
        ${(0,o.i)("control")}
    >
        ${(0,n.m9)(t,e)}
        <span class="content" part="content">
            <slot ${(0,r.Q)("defaultSlottedContent")}></slot>
        </span>
        ${(0,n.LC)(t,e)}
    </a>
`},84742:function(t,e,i){i.d(e,{C:function(){return n}});var a=i(20005),o=i(65620),r=i(48839);class n extends r.I{constructor(){super(...arguments),this.generateBadgeStyle=()=>{if(!this.fill&&!this.color)return;const t=`background-color: var(--badge-fill-${this.fill});`,e=`color: var(--badge-color-${this.color});`;return this.fill&&!this.color?t:this.color&&!this.fill?e:`${e} ${t}`}}}(0,a.gn)([(0,o.Lj)({attribute:"fill"})],n.prototype,"fill",void 0),(0,a.gn)([(0,o.Lj)({attribute:"color"})],n.prototype,"color",void 0),(0,a.gn)([(0,o.Lj)({mode:"boolean"})],n.prototype,"circular",void 0)},20104:function(t,e,i){i.d(e,{Z:function(){return o}});var a=i(39181);const o=(t,e)=>a.d`
    <template class="${t=>t.circular?"circular":""}">
        <div class="control" part="control" style="${t=>t.generateBadgeStyle()}">
            <slot></slot>
        </div>
    </template>
`},65130:function(t,e,i){i.d(e,{Z:function(){return o}});var a=i(48839);class o extends a.I{}},48657:function(t,e,i){i.d(e,{O:function(){return o}});var a=i(39181);const o=(t,e)=>a.d`
    <slot></slot>
`},67491:function(t,e,i){i.d(e,{v2:function(){return p},wt:function(){return h}});var a=i(20005),o=i(87697),r=i(65620),n=i(67846),s=i(48839),d=i(7775),c=i(51208),l=i(86076);function p(t){return(0,n.Re)(t)&&("option"===t.getAttribute("role")||t instanceof HTMLOptionElement)}class h extends s.I{constructor(t,e,i,a){super(),this.defaultSelected=!1,this.dirtySelected=!1,this.selected=this.defaultSelected,this.dirtyValue=!1,t&&(this.textContent=t),e&&(this.initialValue=e),i&&(this.defaultSelected=i),a&&(this.selected=a),this.proxy=new Option(`${this.textContent}`,this.initialValue,this.defaultSelected,this.selected),this.proxy.disabled=this.disabled}checkedChanged(t,e){this.ariaChecked="boolean"!=typeof e?null:e?"true":"false"}contentChanged(t,e){this.proxy instanceof HTMLOptionElement&&(this.proxy.textContent=this.textContent),this.$emit("contentchange",null,{bubbles:!0})}defaultSelectedChanged(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}disabledChanged(t,e){this.ariaDisabled=this.disabled?"true":"false",this.proxy instanceof HTMLOptionElement&&(this.proxy.disabled=this.disabled)}selectedAttributeChanged(){this.defaultSelected=this.selectedAttribute,this.proxy instanceof HTMLOptionElement&&(this.proxy.defaultSelected=this.defaultSelected)}selectedChanged(){this.ariaSelected=this.selected?"true":"false",this.dirtySelected||(this.dirtySelected=!0),this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.selected)}initialValueChanged(t,e){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}get label(){var t;return null!==(t=this.value)&&void 0!==t?t:this.text}get text(){var t,e;return null!==(e=null===(t=this.textContent)||void 0===t?void 0:t.replace(/\s+/g," ").trim())&&void 0!==e?e:""}set value(t){const e=`${null!=t?t:""}`;this._value=e,this.dirtyValue=!0,this.proxy instanceof HTMLOptionElement&&(this.proxy.value=e),o.y$.notify(this,"value")}get value(){var t;return o.y$.track(this,"value"),null!==(t=this._value)&&void 0!==t?t:this.text}get form(){return this.proxy?this.proxy.form:null}}(0,a.gn)([o.LO],h.prototype,"checked",void 0),(0,a.gn)([o.LO],h.prototype,"content",void 0),(0,a.gn)([o.LO],h.prototype,"defaultSelected",void 0),(0,a.gn)([(0,r.Lj)({mode:"boolean"})],h.prototype,"disabled",void 0),(0,a.gn)([(0,r.Lj)({attribute:"selected",mode:"boolean"})],h.prototype,"selectedAttribute",void 0),(0,a.gn)([o.LO],h.prototype,"selected",void 0),(0,a.gn)([(0,r.Lj)({attribute:"value",mode:"fromView"})],h.prototype,"initialValue",void 0);class u{}(0,a.gn)([o.LO],u.prototype,"ariaChecked",void 0),(0,a.gn)([o.LO],u.prototype,"ariaPosInSet",void 0),(0,a.gn)([o.LO],u.prototype,"ariaSelected",void 0),(0,a.gn)([o.LO],u.prototype,"ariaSetSize",void 0),(0,l.e)(u,d.v),(0,l.e)(h,c.hW,u)},17453:function(t,e,i){i.d(e,{k:function(){return l}});var a=i(20005),o=i(12968),r=i(87697),n=i(65620),s=i(78945),d=i(36153),c=i(65898);class l extends c.R{constructor(){super(...arguments),this.activeIndex=-1,this.rangeStartIndex=-1}get activeOption(){return this.options[this.activeIndex]}get checkedOptions(){var t;return null===(t=this.options)||void 0===t?void 0:t.filter((t=>t.checked))}get firstSelectedOptionIndex(){return this.options.indexOf(this.firstSelectedOption)}activeIndexChanged(t,e){var i,a;this.ariaActiveDescendant=null!==(a=null===(i=this.options[e])||void 0===i?void 0:i.id)&&void 0!==a?a:"",this.focusAndScrollOptionIntoView()}checkActiveIndex(){if(!this.multiple)return;const t=this.activeOption;t&&(t.checked=!0)}checkFirstOption(t=!1){t?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex+1),this.options.forEach(((t,e)=>{t.checked=(0,s.Z2)(e,this.rangeStartIndex)}))):this.uncheckAllOptions(),this.activeIndex=0,this.checkActiveIndex()}checkLastOption(t=!1){t?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),this.options.forEach(((t,e)=>{t.checked=(0,s.Z2)(e,this.rangeStartIndex,this.options.length)}))):this.uncheckAllOptions(),this.activeIndex=this.options.length-1,this.checkActiveIndex()}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.focusoutHandler)}disconnectedCallback(){this.removeEventListener("focusout",this.focusoutHandler),super.disconnectedCallback()}checkNextOption(t=!1){t?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),this.options.forEach(((t,e)=>{t.checked=(0,s.Z2)(e,this.rangeStartIndex,this.activeIndex+1)}))):this.uncheckAllOptions(),this.activeIndex+=this.activeIndex<this.options.length-1?1:0,this.checkActiveIndex()}checkPreviousOption(t=!1){t?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),1===this.checkedOptions.length&&(this.rangeStartIndex+=1),this.options.forEach(((t,e)=>{t.checked=(0,s.Z2)(e,this.activeIndex,this.rangeStartIndex)}))):this.uncheckAllOptions(),this.activeIndex-=this.activeIndex>0?1:0,this.checkActiveIndex()}clickHandler(t){var e;if(!this.multiple)return super.clickHandler(t);const i=null===(e=t.target)||void 0===e?void 0:e.closest("[role=option]");return i&&!i.disabled?(this.uncheckAllOptions(),this.activeIndex=this.options.indexOf(i),this.checkActiveIndex(),this.toggleSelectedForAllCheckedOptions(),!0):void 0}focusAndScrollOptionIntoView(){super.focusAndScrollOptionIntoView(this.activeOption)}focusinHandler(t){if(!this.multiple)return super.focusinHandler(t);this.shouldSkipFocus||t.target!==t.currentTarget||(this.uncheckAllOptions(),-1===this.activeIndex&&(this.activeIndex=-1!==this.firstSelectedOptionIndex?this.firstSelectedOptionIndex:0),this.checkActiveIndex(),this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}focusoutHandler(t){this.multiple&&this.uncheckAllOptions()}keydownHandler(t){if(!this.multiple)return super.keydownHandler(t);if(this.disabled)return!0;const{key:e,shiftKey:i}=t;switch(this.shouldSkipFocus=!1,e){case d.tU:return void this.checkFirstOption(i);case d.iF:return void this.checkNextOption(i);case d.SB:return void this.checkPreviousOption(i);case d.Kh:return void this.checkLastOption(i);case d.oM:return this.focusAndScrollOptionIntoView(),!0;case d.CX:return this.uncheckAllOptions(),this.checkActiveIndex(),!0;case d.BI:if(t.preventDefault(),this.typeAheadExpired)return void this.toggleSelectedForAllCheckedOptions();default:return 1===e.length&&this.handleTypeAhead(`${e}`),!0}}mousedownHandler(t){if(t.offsetX>=0&&t.offsetX<=this.scrollWidth)return super.mousedownHandler(t)}multipleChanged(t,e){var i;this.ariaMultiSelectable=e?"true":null,null===(i=this.options)||void 0===i||i.forEach((t=>{t.checked=!e&&void 0})),this.setSelectedOptions()}setSelectedOptions(){this.multiple?this.$fastController.isConnected&&this.options&&(this.selectedOptions=this.options.filter((t=>t.selected)),this.focusAndScrollOptionIntoView()):super.setSelectedOptions()}sizeChanged(t,e){var i;const a=Math.max(0,parseInt(null!==(i=null==e?void 0:e.toFixed())&&void 0!==i?i:"",10));a!==e&&o.SO.queueUpdate((()=>{this.size=a}))}toggleSelectedForAllCheckedOptions(){const t=this.checkedOptions.filter((t=>!t.disabled)),e=!t.every((t=>t.selected));t.forEach((t=>t.selected=e)),this.selectedIndex=this.options.indexOf(t[t.length-1]),this.setSelectedOptions()}typeaheadBufferChanged(t,e){if(this.multiple){if(this.$fastController.isConnected){const t=this.getTypeaheadMatches(),e=this.options.indexOf(t[0]);e>-1&&(this.activeIndex=e,this.uncheckAllOptions(),this.checkActiveIndex()),this.typeAheadExpired=!1}}else super.typeaheadBufferChanged(t,e)}uncheckAllOptions(t=!1){this.options.forEach((t=>t.checked=!this.multiple&&void 0)),t||(this.rangeStartIndex=-1)}}(0,a.gn)([r.LO],l.prototype,"activeIndex",void 0),(0,a.gn)([(0,n.Lj)({mode:"boolean"})],l.prototype,"multiple",void 0),(0,a.gn)([(0,n.Lj)({converter:n.Id})],l.prototype,"size",void 0)},65898:function(t,e,i){i.d(e,{x:function(){return u},R:function(){return h}});var a=i(20005),o=i(87697),r=i(65620);var n=i(36153),s=i(11673),d=i(48839),c=i(67491),l=i(7775),p=i(86076);class h extends d.I{constructor(){super(...arguments),this._options=[],this.selectedIndex=-1,this.selectedOptions=[],this.shouldSkipFocus=!1,this.typeaheadBuffer="",this.typeaheadExpired=!0,this.typeaheadTimeout=-1}get firstSelectedOption(){var t;return null!==(t=this.selectedOptions[0])&&void 0!==t?t:null}get hasSelectableOptions(){return this.options.length>0&&!this.options.every((t=>t.disabled))}get length(){var t,e;return null!==(e=null===(t=this.options)||void 0===t?void 0:t.length)&&void 0!==e?e:0}get options(){return o.y$.track(this,"options"),this._options}set options(t){this._options=t,o.y$.notify(this,"options")}get typeAheadExpired(){return this.typeaheadExpired}set typeAheadExpired(t){this.typeaheadExpired=t}clickHandler(t){const e=t.target.closest("option,[role=option]");if(e&&!e.disabled)return this.selectedIndex=this.options.indexOf(e),!0}focusAndScrollOptionIntoView(t=this.firstSelectedOption){this.contains(document.activeElement)&&null!==t&&(t.focus(),requestAnimationFrame((()=>{t.scrollIntoView({block:"nearest"})})))}focusinHandler(t){this.shouldSkipFocus||t.target!==t.currentTarget||(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}getTypeaheadMatches(){const t=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),e=new RegExp(`^${t}`,"gi");return this.options.filter((t=>t.text.trim().match(e)))}getSelectableIndex(t=this.selectedIndex,e){const i=t>e?-1:t<e?1:0,a=t+i;let o=null;switch(i){case-1:o=this.options.reduceRight(((t,e,i)=>!t&&!e.disabled&&i<a?e:t),o);break;case 1:o=this.options.reduce(((t,e,i)=>!t&&!e.disabled&&i>a?e:t),o)}return this.options.indexOf(o)}handleChange(t,e){if("selected"===e)h.slottedOptionFilter(t)&&(this.selectedIndex=this.options.indexOf(t)),this.setSelectedOptions()}handleTypeAhead(t){this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout((()=>this.typeaheadExpired=!0),h.TYPE_AHEAD_TIMEOUT_MS),t.length>1||(this.typeaheadBuffer=`${this.typeaheadExpired?"":this.typeaheadBuffer}${t}`)}keydownHandler(t){if(this.disabled)return!0;this.shouldSkipFocus=!1;const e=t.key;switch(e){case n.tU:t.shiftKey||(t.preventDefault(),this.selectFirstOption());break;case n.iF:t.shiftKey||(t.preventDefault(),this.selectNextOption());break;case n.SB:t.shiftKey||(t.preventDefault(),this.selectPreviousOption());break;case n.Kh:t.preventDefault(),this.selectLastOption();break;case n.oM:return this.focusAndScrollOptionIntoView(),!0;case n.kL:case n.CX:return!0;case n.BI:if(this.typeaheadExpired)return!0;default:return 1===e.length&&this.handleTypeAhead(`${e}`),!0}}mousedownHandler(t){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}multipleChanged(t,e){this.ariaMultiSelectable=e?"true":null}selectedIndexChanged(t,e){var i;if(this.hasSelectableOptions){if((null===(i=this.options[this.selectedIndex])||void 0===i?void 0:i.disabled)&&"number"==typeof t){const i=this.getSelectableIndex(t,e),a=i>-1?i:t;return this.selectedIndex=a,void(e===a&&this.selectedIndexChanged(e,a))}this.setSelectedOptions()}else this.selectedIndex=-1}selectedOptionsChanged(t,e){var i;const a=e.filter(h.slottedOptionFilter);null===(i=this.options)||void 0===i||i.forEach((t=>{const e=o.y$.getNotifier(t);e.unsubscribe(this,"selected"),t.selected=a.includes(t),e.subscribe(this,"selected")}))}selectFirstOption(){var t,e;this.disabled||(this.selectedIndex=null!==(e=null===(t=this.options)||void 0===t?void 0:t.findIndex((t=>!t.disabled)))&&void 0!==e?e:-1)}selectLastOption(){this.disabled||(this.selectedIndex=function(t,e){let i=t.length;for(;i--;)if(e(t[i],i,t))return i;return-1}(this.options,(t=>!t.disabled)))}selectNextOption(){!this.disabled&&this.selectedIndex<this.options.length-1&&(this.selectedIndex+=1)}selectPreviousOption(){!this.disabled&&this.selectedIndex>0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){var t,e;this.selectedIndex=null!==(e=null===(t=this.options)||void 0===t?void 0:t.findIndex((t=>t.defaultSelected)))&&void 0!==e?e:-1}setSelectedOptions(){var t,e,i;(null===(t=this.options)||void 0===t?void 0:t.length)&&(this.selectedOptions=[this.options[this.selectedIndex]],this.ariaActiveDescendant=null!==(i=null===(e=this.firstSelectedOption)||void 0===e?void 0:e.id)&&void 0!==i?i:"",this.focusAndScrollOptionIntoView())}slottedOptionsChanged(t,e){this.options=e.reduce(((t,e)=>((0,c.v2)(e)&&t.push(e),t)),[]);const i=`${this.options.length}`;this.options.forEach(((t,e)=>{t.id||(t.id=(0,s.EL)("option-")),t.ariaPosInSet=`${e+1}`,t.ariaSetSize=i})),this.$fastController.isConnected&&(this.setSelectedOptions(),this.setDefaultSelectedOption())}typeaheadBufferChanged(t,e){if(this.$fastController.isConnected){const t=this.getTypeaheadMatches();if(t.length){const e=this.options.indexOf(t[0]);e>-1&&(this.selectedIndex=e)}this.typeaheadExpired=!1}}}h.slottedOptionFilter=t=>(0,c.v2)(t)&&!t.hidden,h.TYPE_AHEAD_TIMEOUT_MS=1e3,(0,a.gn)([(0,r.Lj)({mode:"boolean"})],h.prototype,"disabled",void 0),(0,a.gn)([o.LO],h.prototype,"selectedIndex",void 0),(0,a.gn)([o.LO],h.prototype,"selectedOptions",void 0),(0,a.gn)([o.LO],h.prototype,"slottedOptions",void 0),(0,a.gn)([o.LO],h.prototype,"typeaheadBuffer",void 0);class u{}(0,a.gn)([o.LO],u.prototype,"ariaActiveDescendant",void 0),(0,a.gn)([o.LO],u.prototype,"ariaDisabled",void 0),(0,a.gn)([o.LO],u.prototype,"ariaExpanded",void 0),(0,a.gn)([o.LO],u.prototype,"ariaMultiSelectable",void 0),(0,p.e)(u,l.v),(0,p.e)(h,u)},76122:function(t,e,i){i.d(e,{K:function(){return n}});var a=i(39181),o=i(90960),r=i(17453);const n=(t,e)=>a.d`
    <template
        aria-activedescendant="${t=>t.ariaActiveDescendant}"
        aria-multiselectable="${t=>t.ariaMultiSelectable}"
        class="listbox"
        role="listbox"
        tabindex="${t=>t.disabled?null:"0"}"
        @click="${(t,e)=>t.clickHandler(e.event)}"
        @focusin="${(t,e)=>t.focusinHandler(e.event)}"
        @keydown="${(t,e)=>t.keydownHandler(e.event)}"
        @mousedown="${(t,e)=>t.mousedownHandler(e.event)}"
    >
        <slot
            ${(0,o.Q)({filter:r.k.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}
        ></slot>
    </template>
`},78945:function(t,e,i){function a(t,e,i){return i<t?e:i>e?t:i}function o(t,e,i){return Math.min(Math.max(i,t),e)}function r(t,e,i=0){return[e,i]=[e,i].sort(((t,e)=>t-e)),e<=t&&t<i}i.d(e,{Z2:function(){return r},b9:function(){return o},wt:function(){return a}})},11673:function(t,e,i){i.d(e,{EL:function(){return o}});let a=0;function o(t=""){return`${t}${a++}`}},12697:function(t,e,i){var a=i(84708);e.Z=function(t){return"number"==typeof t&&t==(0,a.Z)(t)}}}]);A
Eo