ion fluent-button {
            width: 150px;
            text-align: center;
            display: block;
            margin: 54px auto 8px;
        }
        msn-hide-story-card.ad-feedback-confirmation fluent-button::part(control) {
            width: 100%;
        }
        msn-hide-story-card.ad-feedback-confirmation fluent-button:hover {
            background: var(--button-hover-color);
        }
        msn-hide-story-card.ad-feedback-confirmation::part(content-region) {
            margin: 0 auto;
            text-align: center;
            padding: 110px 16px 0px 16px;
        }
        msn-hide-story-card.ad-feedback-confirmation::part(action-region) {
            display: block;
            position: static;
            margin: 0;
            padding: 0px 16px 16px;
        }
    </style>
    <msn-hide-story-card 
        hideStoryTitle=${e=>e.adFeedbackProps.localizedStrings.confirmationText}
        class="ad-feedback-confirmation"
    >    
        <fluent-button
            slot="actions"
            autofocus
            appearance="neutral"
            aria-label=${e=>e.adFeedbackProps.localizedStrings.undoText}
            role="button"
            title=${e=>e.adFeedbackProps.localizedStrings.undoText}
            id="Undo"
            @click=${e=>e.undoHideButtonCallback&&e.undoHideButtonCallback()}
        >
            ${e=>e.adFeedbackProps.localizedStrings.undoText}
        </fluent-button>
    </msn-hide-story-card> 
`},64302:function(e,t,i){"use strict";i.d(t,{V:function(){return s}});var a=i(39181),n=i(13988),o=i(76859),r=i(74045);i(74553).N;const s=a.d`
    <style>
        msn-hide-story-card.hide-feedback {
            --heading-line-height: var(--type-ramp-plus-1-line-height);
            --heading-font-size: var(--type-ramp-plus-1-font-size);
        }
        msn-hide-story-card[card-size="_1x_1y"].hide-feedback {
            --heading-line-height: var(--type-ramp-base-line-height, 20px);
            --heading-font-size: var(--type-ramp-base-font-size, 14px);
        }
        msn-hide-story-card[card-size="_1x_1y"] fluent-menu-item#Report {  
            display: none;
        } 
        msn-hide-story-card.hide-feedback fluent-menu-item {
            width: 236px;
            text-align: center;
            display: block;
            border-radius: 20px;
            margin: 0 auto 8px;
        }
        msn-hide-story-card[card-size="_1x_1y"].hide-feedback:not(.hide-confirm)::part(content-region) {
            padding-top: 20px;
            padding-inline: 20px;
        }
        msn-hide-story-card[card-size="_1x_1y"].hide-feedback fluent-menu-item#Undo {
            width: 18px;
            margin-inline-end: 10px;
            margin-top: 11px;
            color: var(--neutral-foreground-rest);
        }
        msn-hide-story-card[card-size="_1x_1y"].hide-feedback fluent-menu-item#Undo:hover > svg > path {
            transition: all 0.5s ease 0s;
            d: path(var(--undo-filled-path));
        }
        msn-hide-story-card[card-size="_1x_1y"].hide-feedback fluent-menu-item#Undo svg {
            transform: translate(3px, 3px);
        }
        msn-hide-story-card[card-size="_1x_1y"].hide-feedback fluent-menu-item#Undo.stealth-button:hover,
        msn-hide-story-card[card-size="_1x_1y"].hide-feedback fluent-menu-item#Undo:focus {
            background: transparent;
        }
        msn-hide-story-card[card-size="_1x_1y"] .menu-item-text {
            margin-top: 1px;
        }
        msn-hide-story-card fluent-menu-item::part(control) {
            width: 236px;
        }
        msn-hide-story-card.hide-feedback::part(content-region) {
            width: 236px;
            margin: 0 auto;
            text-align: center;
            justify-content: center;
            --content-region-padding-top: 38px;
        }
        msn-hide-story-card.hide-feedback.has-subtitle::part(content-region) {
            --content-region-padding-top: 24px;
        }
        msn-hide-story-card::part(heading) {
            -webkit-line-clamp: var(--heading-max-lines, 3)
        }
        msn-hide-story-card::part(action-region) {
            display: block;
            position: static;
            margin: auto;
        }
        .menu-item-text {
            margin-top: 5px;
            padding: 0 8px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }
    </style>
    <msn-hide-story-card
        class="hide-feedback ${e=>e.enableInstantHide?"instant-hide":""} ${e=>e.hideStorySubtitle?"has-subtitle":""} "
        hideStoryTitle=${e=>e.hideStoryTitleData.text}
        hideStorySubtitle=${e=>e.hideStorySubtitle}
        data-text=${e=>e.hideStoryTitleData.dataTag}
        card-size=${e=>e.cardSize}
        data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.hideStoryCard)||void 0===i?void 0:i.getMetadataTag()}}"
        role="menu"
    >
        <span class="heading" part="heading" role="alert" slot="heading">${e=>e.hideStoryTitleData.text}</span>
        ${(0,n.g)((e=>e.dislikeButtonText&&!e.enableHideTopics),a.d`
            <fluent-menu-item
                tabindex="0"
                aria-label=${e=>e.dislikeButtonText}
                title=${e=>e.dislikeButtonText}
                id="DislikeTopic"
                @change=${e=>e.cardActionClickHandler&&e.cardActionClickHandler(e.id,e.cardActionStatus&r.O7.showFewer?e.cardActionStatus^r.O7.hidden:e.cardActionStatus^r.O7.showFewer^r.O7.hidden,"ShowFewer",!0,e.cardActionClickHandler,null,!1)}
                slot="actions"
                data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.dislikeButton)||void 0===i?void 0:i.getMetadataTag()}}"
            >
                <div class="menu-item-text">${e=>e.dislikeButtonText}</div>
            </fluent-menu-item>
        `)}
        ${(0,n.g)((e=>e.notInterestedInNamedTopicText),a.d`
            <fluent-menu-item
                tabindex="0"
                aria-label=${e=>e.notInterestedInNamedTopicText}
                title=${e=>e.notInterestedInNamedTopicText}
                id="HideNamedTopic"
                @change=${e=>e.cardActionClickHandler&&e.cardActionClickHandler(e.id,e.cardActionStatus^r.O7.hidden^r.O7.hideTopic,"HideTopic",!0,null,e.associatedTopic.feedId,!1)}
                slot="actions"
                data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.hideNamedTopicButton)||void 0===i?void 0:i.getMetadataTag()}}"
            >
                <div class="menu-item-text">${e=>e.notInterestedInNamedTopicText}</div>
            </fluent-menu-item>
        `)}
        <fluent-menu-item
            tabindex="0"
            aria-label=${e=>e.mutePublisherButtonText}
            title=${e=>e.mutePublisherButtonText}
            id="MutePublisher"
            @change=${e=>e.cardActionClickHandler&&e.cardActionClickHandler(e.id,e.cardActionStatus&e.cardActionStatus^r.O7.mute^r.O7.hidden,"Mute",!0,e.cardActionClickHandler,e.providerId)}
            slot="actions"
            data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.mutePublisherButton)||void 0===i?void 0:i.getMetadataTag()}}"
        >
            <div class="menu-item-text">${e=>e.mutePublisherButtonText}</div>
        </fluent-menu-item>
        <fluent-menu-item
            tabindex="0"
            aria-label=${e=>e.reportButtonText}
            title=${e=>e.reportButtonText}
            id="Report"
            @change=${e=>e.openReportDialog&&e.openReportDialog(e.currentCardData)}
            slot="actions"
            data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.reportButton)||void 0===i?void 0:i.getMetadataTag()}}"
        >
            <div class="menu-item-text">${e=>e.reportButtonText}</div>
        </fluent-menu-item>
        <fluent-menu-item
            tabindex="0" 
            class="stealth-button"
            aria-label=${e=>e.enableInstantHide&&!e.enableHideTopics?e.hideFeedbackCancelText:e.undoHideButtonText}
            title=${e=>e.enableInstantHide&&!e.enableHideTopics?e.hideFeedbackCancelText:e.undoHideButtonText}
            id="Undo"
            @change=${e=>e.undoHideButtonCallback&&e.undoHideButtonCallback()}
            slot="actions"
            data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.cancelButton)||void 0===i?void 0:i.getMetadataTag()}}"
            style="--undo-filled-path:'M-0.000976562 0.75C-0.000976562 0.335786 0.334809 0 0.749023 0C1.16324 0 1.49902 0.335786 1.49902 0.75V3.84461L4.17206 1.17157C5.73416 -0.390524 8.26682 -0.390524 9.82891 1.17157C11.391 2.73367 11.391 5.26633 9.82891 6.82843L4.87896 11.7784C4.58607 12.0713 4.1112 12.0713 3.8183 11.7784C3.52541 11.4855 3.52541 11.0106 3.8183 10.7177L8.76825 5.76777C9.74456 4.79146 9.74456 3.20854 8.76825 2.23223C7.79194 1.25592 6.20903 1.25592 5.23272 2.23223L2.96495 4.5H5.24902C5.66324 4.5 5.99902 4.83579 5.99902 5.25C5.99902 5.66421 5.66324 6 5.24902 6H0.849023C0.379581 6 -0.000976562 5.61944 -0.000976562 5.15V0.75Z'";
        >
            ${(0,n.g)((e=>e.cardSize!=o.Nv._1x_1y),a.d`
                <div class="menu-item-text">${e=>e.enableInstantHide&&!e.enableHideTopics?e.hideFeedbackCancelText:e.undoHideButtonText}</div>
            `)}
            ${(0,n.g)((e=>e.cardSize==o.Nv._1x_1y),a.d`
                <svg width="11" height="12" viewBox="0 0 15 16" xmlns="http://www.w3.org/2000/svg">
                    <path d="M0.000976562 0.5C0.000976562 0.223858 0.224834 0 0.500977 0C0.77712 0 1.00098 0.223858 1.00098 0.5V4.34262L4.17202 1.17157C5.73412 -0.390524 8.26678 -0.390524 9.82888 1.17157C11.391 2.73367 11.391 5.26633 9.82888 6.82843L4.80375 11.8536C4.60849 12.0488 4.2919 12.0488 4.09664 11.8536C3.90138 11.6583 3.90138 11.3417 4.09664 11.1464L9.12177 6.12132C10.2933 4.94975 10.2933 3.05025 9.12177 1.87868C7.9502 0.707107 6.0507 0.707107 4.87913 1.87868L1.75781 5H5.50098C5.77712 5 6.00098 5.22386 6.00098 5.5C6.00098 5.77614 5.77712 6 5.50098 6H0.600977C0.269607 6 0.000976562 5.73137 0.000976562 5.4V0.5Z"/>
                </svg>
            `)}
        </fluent-menu-item>
    </msn-hide-story-card> 
`},70345:function(e,t,i){"use strict";i.d(t,{c:function(){return k}});var a=i(39181),n=i(13988),o=i(74045),r=i(61436),s=i(33940),d=i(89346),l=i(65620);class c extends d.H{constructor(){super(...arguments),this.preText="",this.postText=""}connectedCallback(){super.connectedCallback(),this.spinnerCompleteTimer=setTimeout((()=>{this.spinnerCompletedCallback&&this.spinnerCompletedCallback()}),3e3)}disconnectedCallback(){clearTimeout(this.spinnerCompleteTimer),this.spinnerCompleteTimer=void 0}}(0,s.gn)([(0,l.Lj)({attribute:"pre-text"})],c.prototype,"preText",void 0),(0,s.gn)([(0,l.Lj)({attribute:"post-text"})],c.prototype,"postText",void 0);var h=i(32804),u=i(53046),g=i(16859);const p=u.i`
    .spinner-background {
        stroke: rgba(0, 0, 0, 0.07);
    }

    .meter {
        stroke: ${h.goi};
    }

    .checkmark-background {
        fill: ${h.goi};
    }

    .checkmark {
        fill: white;
    }
`,m=u.i`
    .spinner-background {
        stroke: rgba(255, 255, 255, 0.54);
    }

    .meter {
        stroke: white;
    }

    .checkmark-background {
        fill: white;
    }

    .checkmark {
        fill: black;
    }
`,v=u.i`
    :host {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    :host([card-size="_1x_1y"]) .text {
        display: none;
    }

    :host([card-size="_1x_1y"]) svg {
        height: 30px;
        width: 30px;
    }

    :host(.check-icon[card-size="_1x_1y"]) {
        padding-top: 0;
        padding-bottom: 11px;
    }

    svg {
        height: 48px;
        margin: auto;
        width: 48px;
    }
      
    .spinner-background {
        fill: none;
        stroke-width: 2.5px;
    }

    .meter {
        animation: spinner 3s linear;
        fill: none;
        stroke-dasharray: 150;
        stroke-dashoffset: 0;
        stroke-linecap: round;
        stroke-width: 2.5px;
        transform: rotate(-90deg);
        transform-origin: 50% 50%; 
    }

    @keyframes spinner {
        from {
            stroke-dashoffset: 150;
        }
        to {
            stroke-dashoffset: 0;
        }
    }

    .checkmark-background {
        animation: checkmark-background 4s linear;
        transform-origin: 50% 50%; 
    }

    @keyframes checkmark-background {
        0%, 75% {
            fill-opacity: 0;
        }
        78% {
            fill-opacity: 1;
        }
    }

    .checkmark {
        animation: checkmark 4s linear;
        animation-fill-mode: both;
        transform: translate(8px, 8px);
        transform-origin: 50% 50%;
    }

    @keyframes checkmark {
        0%, 75% {
            transform: scale(0) translate(8px, 8px);
        }
        85% {
            transform: scale(1.25) translate(8px, 8px);
        }
        100% {
            transform: scale(1) translate(8px, 8px);
        }
    }

    span {
        display: block;
        font-size: var(--type-ramp-base-font-size);
        line-height: var(--type-ramp-base-line-height);
        overflow: hidden;
        position: absolute;
        text-overflow: ellipsis;
        white-space: nowrap;
        width: 236px;
    }

    .text {
        height: 20px;
        padding-top: 8px;
        width: 236px;
    }

    .pre-text {
        animation: fadeout 1s;
        animation-delay: 3s;
        animation-fill-mode: both;
    }

    .post-text {
        animation: fadein 1s;
        animation-delay: 3s;
        animation-fill-mode: both;
    }

    @keyframes fadein {
        from { opacity: 0; }
        to   { opacity: 1; }
    }

    @keyframes fadeout {
        from { opacity: 1; }
        to   { opacity: 0; }
    }
`.withBehaviors(new g.Y(p,m)),f=a.d`
    <svg viewBox="0 0 48 48">
        <circle class="spinner-background" cx="24" cy="24" r="21.5" />
        <circle class="meter" cx="24" cy="24" r="21.5" />
        <circle class="checkmark-background" cx="24" cy="24" r="24"/>
        <path class="checkmark" d="M11.3333 22.1144L6.27614 17.0572C5.75544 16.5365 4.91122 16.5365 4.39052 17.0572C3.86983 17.5779 3.86983 18.4221 4.39052 18.9428L10.3905 24.9428C10.9112 25.4635 11.7554 25.4635 12.2761 24.9428L26.9428 10.2761C27.4635 9.75545 27.4635 8.91122 26.9428 8.39052C26.4221 7.86983 25.5779 7.86983 25.0572 8.39052L11.3333 22.1144Z"/>
    </svg>
    <div class="text">
        <span class="pre-text" role="alert">${e=>e.preText}</span>
        <span class="post-text">${e=>e.postText}</span>
    </div>
`;var y=i(63070),b=i(12306),x=i(39391),C=i(57905);let $=class extends c{};$=(0,s.gn)([(0,d.M)({name:"msn-animated-done-spinner",template:f,styles:v})],$),(0,y.z)().withShadowRootMode("closed").withElementDisambiguation((()=>C.h.ignoreDuplicate)).register((0,b.k)(),(0,x.xg)());var w=i(74553),T=i(76859);w.N;const k=a.d`
    <style>
        ${(0,n.g)((e=>e.enableInstantHide),a.d`
            msn-animated-done-spinner[card-size="_1x_1y"].check-icon {
                padding-top: 0;
                padding-bottom: 16px;
            }
            msn-hide-story-card[card-size="_1x_1y"].instant-hide fluent-button:first-of-type{
                margin-inline-end: 8px;
            }
            msn-hide-story-card[card-size="_1x_1y"].instant-hide fluent-button {
                width: 130px;
                display: inline-flex;
                margin: 0;
                box-sizing: border-box;
                -webkit-box-sizing: border-box;
            }
            msn-hide-story-card[card-size="_1x_1y"].hide-feedback.instant-hide::part(content-region) {
                padding-top: 12px;
            }
            msn-hide-story-card.instant-hide::part(content-region) {
                padding-top: 46px;
            }
            msn-hide-story-card .check-icon.instant-hide {
                padding-bottom: 32px;
                align-items: center;
                flex-direction: column;
            }
            msn-hide-story-card .personalize-text {
                font-size: var(--type-ramp-base-font-size, 14px);
                line-height: var(--type-ramp-base-line-height, 20px);
                margin-top: 20px;
                text-align: center;
                padding: 0 20px;
            }
            msn-hide-story-card .personalize {
                color: var(--stealth-button-text-color)
            }
        `)}
        msn-hide-story-card[card-size="_1x_1y"].hide-confirm {
            --heading-line-height: var(--type-ramp-base-line-height, 20px);
            --heading-font-size: var(--type-ramp-base-font-size, 14px);
        }
        msn-hide-story-card[card-size="_1x_1y"].hide-feedback.hide-confirm::part(content-region) {
            padding-top: 16px;
        }
        msn-hide-story-card.hide-confirm {
            --heading-line-height: var(--type-ramp-plus-1-line-height);
            --heading-font-size: var(--type-ramp-plus-1-font-size);
        }
        msn-hide-story-card.hide-confirm fluent-button {
            width: 236px;
            text-align: center;
            display: block;
            border-radius: 20px;
            margin: 0 auto 8px;
        }
        msn-hide-story-card.hide-confirm fluent-button::part(control):focus-visible {
            border: none;
            box-shadow: none;
        }   
        msn-hide-story-card fluent-button::part(control) {  
            width: 236px; 
            display: -webkit-box;
            overflow: hidden;
            -webkit-box-orient: vertical;
            text-overflow: ellipsis;
        }   
        msn-hide-story-card.hide-confirm::part(content-region) {
            width: 236px;
            margin: 0 auto;
            text-align: center;
            padding-top: 38px;
        }
        msn-hide-story-card::part(heading) {
            -webkit-line-clamp: var(--heading-max-lines, 3)
        }
        msn-hide-story-card::part(action-region) {
            display: block;
            position: static;
            margin: auto;
            text-align: center;
        }
        .check-icon {
            display: flex;
            justify-content: center;
            fill: var(--neutral-foreground-rest);
            padding-bottom: 36px;
        }
        msn-animated-done-spinner.check-icon {
            padding-top: 20px;
            padding-bottom: 26px;
        }
    </style>
    <msn-hide-story-card 
        class="hide-feedback hide-confirm ${e=>e.enableInstantHide?"instant-hide":""}"
        hideStoryTitle=${e=>e.hideStoryTitleData.text}
        data-text=${e=>e.hideStoryTitleData.dataTag}
        card-size=${e=>e.cardSize}
        data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.hideStoryCard)||void 0===i?void 0:i.getMetadataTag()}}"
    >
        <span class="heading" part="heading" role="alert" slot="heading">${e=>e.hideStoryTitleData.text}</span>
        ${(0,n.g)((e=>!e.enableInstantHide&&e.cardSize!=T.Nv._1x_1y),a.d`
            <div slot="actions" class="check-icon">
                ${a.d`
                    <svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
                        <path d="M19.9999 0C31.0456 0 39.9999 8.9543 39.9999 20C39.9999 31.0457 31.0456 40 19.9999 40C8.95424 40 -6.10352e-05 31.0457 -6.10352e-05 20C-6.10352e-05 8.9543 8.95424 0 19.9999 0ZM28.6338 13.6161C28.1782 13.1605 27.4584 13.1301 26.9676 13.525L26.8661 13.6161L16.7499 23.7322L13.1338 20.1161C12.6457 19.628 11.8542 19.628 11.3661 20.1161C10.9104 20.5717 10.8801 21.2915 11.2749 21.7824L11.3661 21.8839L15.8661 26.3839C16.3217 26.8395 17.0415 26.8699 17.5323 26.475L17.6338 26.3839L28.6338 15.3839C29.122 14.8957 29.122 14.1043 28.6338 13.6161Z"/>
                    </svg>
                `}
            </div>
        `)}
        ${(0,n.g)((e=>e.enableInstantHide),a.d`
            <msn-animated-done-spinner
                slot="actions"
                class="check-icon"
                pre-text="${e=>e.hideConfirmationUpdatingFeedText}"
                post-text="${e=>e.hideConfirmationDoneText}"
                card-size=${e=>e.cardSize}
                :spinnerCompletedCallback="${e=>e.cardActionDismissCallback}">
            </msn-animated-done-spinner>
        `)}
        ${(0,n.g)((e=>!e.enableInstantHide),a.d`
            <fluent-button
                slot="actions"
                aria-label=${e=>e.refreshFeedButtonText}
                role="button"
                title=${e=>e.refreshFeedButtonText}
                id="Refresh"
                @click=${e=>e.refreshFeedCallback&&e.refreshFeedCallback()}
                data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.refreshFeedButton)||void 0===i?void 0:i.getMetadataTag()}}"
            >
                ${e=>e.refreshFeedButtonText}
            </fluent-button>
            <fluent-button 
                slot="actions"
                class="stealth-button"
                aria-label=${e=>e.personalizeButtonTextData.text}
                role="button"
                title=${e=>e.personalizeButtonTextData.text}
                data-text=${e=>e.personalizeButtonTextData.dataTag}
                id="Personalize"
                @click=${(e,t)=>e.personalizeButtonCallback&&e.personalizeButtonCallback(S(e.cardActionStatus),t.event)}
                data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.confirmButton)||void 0===i?void 0:i.getMetadataTag()}}"
                data-customhandled="true"
            >
                ${e=>e.personalizeButtonTextData.text}
            </fluent-button>
        `)}
        ${(0,n.g)((e=>e.enableInstantHide),a.d`
            <fluent-button
                slot="actions"
                class="instant-hide"
                aria-label=${e=>e.personalizeButtonTextData.text}
                role="button"
                title=${e=>e.personalizeButtonTextData.text}
                data-text=${e=>e.personalizeButtonTextData.dataTag}
                id="Personalize"
                @click=${(e,t)=>e.personalizeButtonCallback&&e.personalizeButtonCallback(S(e.cardActionStatus),t.event)}
                data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.confirmButton)||void 0===i?void 0:i.getMetadataTag()}}"
                data-customhandled="true"
                >
                ${e=>e.personalizeButtonTextData.text}
            </fluent-button>
            <fluent-button
                slot="actions"
                class="stealth-button instant-hide"
                aria-label=${e=>e.undoHideButtonText}
                role="button"
                title=${e=>e.undoHideButtonText}
                tabindex="0" 
                id="Undo"
                @click=${e=>e.undoHideButtonCallback&&e.undoHideButtonCallback()}
                data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.confirmationUndoButton)||void 0===i?void 0:i.getMetadataTag()}}"
            >
                ${e=>e.undoHideButtonText}
            </fluent-button>
        `)}
    </msn-hide-story-card> 
`,S=e=>e&o.O7.mute?r.S.sectionIds.mutedPublishers:r.S.sectionIds.discoverInterests},9431:function(e,t,i){"use strict";i.d(t,{H:function(){return o}});var a=i(39181),n=i(18864);i(74553).N;const o=a.d`
    <style>
        msn-hide-story-card.report-ad {
            background: var(--hide-story-background);
            z-index: 3;
        }
        msn-hide-story-card.report-ad::part(content-region) {
            flex-direction: row;
            margin: 0;
            text-align: left;
            padding: 16px 16px 0px 24px;
        }
        msn-hide-story-card.report-ad::part(action-region) {
            display: block;
            position: static;
            margin: 26px 0px 0px 0px;
            padding: 0px 16px 16px 24px;
        }
        msn-hide-story-card.report-ad fluent-radio-group {
            padding: 0 4px;
            height: 144px;
            overflow-y: auto;
        }
        msn-hide-story-card.report-ad fluent-button {
            width: 45%;
            display: inline-block;
            margin: 34px 5px 8px;
            text-align: center;
        }
        msn-hide-story-card.report-ad fluent-radio {
            padding: 8px 0px 8px 0px;
            margin: 0;
            display: flex;
        }
        msn-hide-story-card.report-ad fluent-button::part(content) {
            text-overflow: ellipsis;
            overflow: hidden;
        }
        msn-hide-story-card.report-ad fluent-button::part(control) {
            width: 100%;
        }
    </style>
    <msn-hide-story-card 
        hideStoryTitle=${e=>e.adFeedbackProps.localizedStrings.reportIssueTitleText}
        class="report-ad"
    >
        <fluent-radio-group
            slot="actions"
            value="${e=>e.adFeedbackProps.selectedFeedbackType}"
            @change=${(e,t)=>e.adFeedbackProps.chooseFeedbackOption(t.event)}
            orientation="vertical"
        >
            ${(0,n.rx)((e=>e.adFeedbackProps.feedbackTypes),a.d`
                <fluent-radio
                    value=${e=>e.value}
                    id=${e=>e.value}
                    aria-label=${e=>e.text}
                    title=${e=>e.text}
                    class=${(e,t)=>t.parent.adFeedbackProps.selectedFeedbackType===e.value?"checked":""}
                >
                    ${e=>e.text}
                </fluent-radio>
            `)}
        </fluent-radio-group>
        <fluent-button
            appearance="accent"
            class="submit"
            slot="actions"
            ?disabled=${e=>e.adFeedbackProps.disableSubmitButton}
            aria-label=${e=>e.adFeedbackProps.localizedStrings.saveButtonText}
            role="button"
            title=${e=>e.adFeedbackProps.localizedStrings.saveButtonText}
            @click=${e=>e.adFeedbackProps.submitFeedback()}
        >
            ${e=>e.adFeedbackProps.localizedStrings.saveButtonText}
        </fluent-button>
        <fluent-button
            appearance="neutral"
            slot="actions"
            aria-label=${e=>e.adFeedbackProps.localizedStrings.cancelText}
            role="button"
            title=${e=>e.adFeedbackProps.localizedStrings.cancelText}
            @click=${e=>e.undoHideButtonCallback&&e.undoHideButtonCallback()}
        >
            ${e=>e.adFeedbackProps.localizedStrings.cancelText}
        </fluent-button>
    </msn-hide-story-card> 
`},30113:function(e,t,i){"use strict";var a;i.d(t,{m:function(){return a}}),function(e){e.small="OneByOne",e.medium="OneByTwo",e.large="OneByThree"}(a||(a={}))},11708:function(e,t,i){"use strict";var a;i.d(t,{f:function(){return a}}),function(e){e.AiCharacter="aicharacterCardEnabled",e.AutosMarketplaceCard="autosmarketplaceCardEnabled",e.HoroscopeCard="horoscopeCardEnabled",e.WeatherCard="weatherCardEnabled",e.SportsCard="sportsCardEnabled",e.MoneyCard="moneyCardEnabled",e.FinanceCard="financeCardEnabled",e.OnThisDayCard="onthisdayCardEnabled",e.ShoppingCard="shoppingCardEnabled",e.ShoppingEventCard="eventSDCardShoppingEnabled",e.TrafficCard="trafficCardEnabled",e.EsportsCard="esportsCardEnabled",e.EsportsStreamsCard="esportsStreamsCardEnabled",e.ElectionsCard="genericelectionCardEnabled",e.LotteryCard="lotteryCardEnabled",e.QnaCard="qnaCardEnabled",e.RecipesCard="recipeCardEnabled",e.InspirationCard="inspirationCardEnabled",e.TravelCard="travelCardEnabled",e.HealthCard="healthCardEnabled",e.TopStoriesCard="topstoriesCardEnabled",e.TrendingTopics="TrendingTopicsUpsellEnabled",e.LocalGuideCard="localGuideCardEnabled",e.GroceryCard="groceryCardEnabled",e.RewardsCard="rewardsCardEnabled",e.RecommendedSearchesCard="recommendedSearchesCardEnabled",e.PersonalizedOffersCard="personalizedoffersCardEnabled",e.PollsCard="pollsCardEnabled",e.MarketPlaceCard="marketplaceCardEnabled",e.QuizCard="quizCardEnabled",e.CasualGamesCard="esportsCardEnabled",e.CommuteCard="commuteCardEnabled",e.Crypto="CryptoCard",e.MarketBrief="MarketBriefCard"}(a||(a={}))},83152:function(e,t,i){"use strict";var a;i.d(t,{L:function(){return a}}),function(e){e.Location="Location",e.Weather="Weather",e.Finance="Finance",e.Team="Team",e.League="League",e.Player="Player",e.Traffic="Traffic",e.Widget="Widget",e.TopicFeed="TopicFeed"}(a||(a={}))},791:function(e,t,i){"use strict";i.d(t,{N:function(){return b}});var a=i(33940),n=i(33954),o=i(26415),r=i(68364),s=i(33799),d=i(16517),l=i(94788),c=i(67267),h=i(63535),u=i(87298),g=i(83152),p=i(11708),m=i(30113),v=i(65135),f=i(33379),y=i(51671);const b=new class extends class{constructor(e){this.fetchImpl=e,this.userUpdateEndpoint="msn/user",this.pdpServiceEndpoint="graph/actions",this.locationsServiceEndPoint="v1/news/users/me/locations",this.userActionServiceEndPoint="news/users/me/actions",this.ocid="Peregrine",this.ocidOverride=!1}getUserDefaultLocation(e){return(0,a.mG)(this,void 0,void 0,(function*(){const t={method:"GET",headers:yield c.$.getOneServiceHeaders(),credentials:"include"},i=(0,h.PH)(this.locationsServiceEndPoint);let n;[...c.$.getCommonParams2(this.ocid,!this.ocidOverride),{key:"autodetect",value:e&&`${e}`}].forEach((e=>{e.value&&i.searchParams.set(e.key,e.value)}));try{n=yield(0,u.w)((()=>(0,a.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(i.href,t);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: getUserDefaultLocation}`;throw new Error(t)}return e}))),"getUserDefaultLocation")}catch(e){return n}return n}))}addToFavoriteLocation(e,t){return(0,a.mG)(this,void 0,void 0,(function*(){const i="Location",n="Follow",o={method:"POST",body:JSON.stringify({actionType:n,targetType:i,definitionName:t,degree:"FavoriteLocation",metaData:e}),headers:yield c.$.getOneServiceHeaders(),credentials:"include"},r=(0,h.PH)(this.pdpServiceEndpoint);let l;((yield(0,y.XJ)())===s.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&r.searchParams.set(e.key,e.value)}));try{l=yield(0,u.w)((()=>(0,a.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(r.href,o);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: Location`;throw new Error(t)}return e.json()}))),"addToFavoriteLocation")}catch(e){return!1}return!0}))}removeFavoriteLocation(e){return(0,a.mG)(this,void 0,void 0,(function*(){return yield this.deleteFromPdp(g.L.Location,"definitionName",[e])}))}removeLocation(e){return(0,a.mG)(this,void 0,void 0,(function*(){return yield this.deleteFromPdp(g.L.Location,"definitionName",[e])}))}updatePdpHomeLocation(e,t,i={},n){return(0,a.mG)(this,void 0,void 0,(function*(){const o=g.L.Location,r="Follow",l=yield this.getRequestInit({method:"POST"},i);l.body=JSON.stringify({actionType:r,targetType:o,definitionName:t,degree:"DefaultLocation",metaData:e});const p=(0,h.PH)(this.pdpServiceEndpoint);return((yield(0,y.XJ)())===s.Hy.SignedIn?c.$.getOneServiceParamsWithAuth(null!=n?n:(0,d.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth(null!=n?n:(0,d.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&p.searchParams.set(e.key,e.value)})),yield(0,u.w)((()=>(0,a.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(p.href,l);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${o}`;throw new Error(t)}return e}))),"setPdpHomeLocation"),this.tryInvalidateBulkFetchedPdpTargetType(o),!0}))}updateTrafficMyRoutes(e,t,i,o,r,s){return(0,a.mG)(this,void 0,void 0,(function*(){const d=i.replace(/[^a-zA-Z0-9\-.,_]/g,""),l=g.L.Traffic,h="Follow",p={method:"POST",body:JSON.stringify({actionType:h,targetType:l,targetId:d,degree:e,definitionName:t,metadata:o,createdDateTime:s}),headers:yield c.$.getOneServiceHeaders(),credentials:"include"},m=yield this.getTrafficPdpUrl(null,null,r);try{yield(0,u.w)((()=>(0,a.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(m.href,p);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${l}`;throw new Error(t)}return e.json()}))),"updateTrafficMyRoutes");this.tryInvalidateBulkFetchedPdpTargetType(l)}catch(e){return n.k.logError(e.message),!1}return!0}))}deleteTrafficMyRoutes(e,t,i){return(0,a.mG)(this,void 0,void 0,(function*(){const n={method:"DELETE",headers:yield this.getOneserviceHeaders(),credentials:"include"},o=yield this.getTrafficPdpUrl(e,t,i);try{yield(0,u.w)((()=>(0,a.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(o.href,n);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${g.L.Traffic}`;throw new Error(t)}return e}))),"deleteTrafficFromPdp"),this.tryInvalidateBulkFetchedPdpTargetType(g.L.Traffic)}catch(e){return!1}return!0}))}getTrafficMyRoutes(e,t){var i;return(0,a.mG)(this,void 0,void 0,(function*(){const n={method:"GET",headers:yield this.getOneserviceHeaders(),credentials:"include"},o=yield this.getTrafficPdpUrl(e,null,t);try{const e=yield(0,u.w)((()=>(0,a.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(o.href,n);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${g.L.Traffic}`;throw new Error(t)}return e}))),"getTrafficFromPdp");return null===(i=yield e.json())||void 0===i?void 0:i.value}catch(e){return null}}))}getTrafficPdpUrl(e,t,i){return(0,a.mG)(this,void 0,void 0,(function*(){const a=(0,h.PH)(this.pdpServiceEndpoint),n=(yield(0,y.XJ)())===s.Hy.SignedIn,o=(0,d.Yq)().UserId,r=n?c.$.getOneServiceParamsWithAuth(o,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth(o,this.ocid,!this.ocidOverride);if(e||t){const i=`targetType eq '${g.L.Traffic}'`,n=e?`degree eq '${e}'`:"",o=t?`definitionName eq '${t}'`:"";a.searchParams.set("$filter",`actionType eq 'Follow' and (${i})${n?` and (${n})`:""}${o?` and (${o})`:""}`)}return[...r,...i||[]].forEach((e=>{e.value&&a.searchParams.set(e.key,e.value)})),a}))}addToWatchList(e,t=0,i={},n={}){return(0,a.mG)(this,void 0,void 0,(function*(){const o=g.L.Finance,r="Follow",l={method:"POST",body:JSON.stringify({actionType:r,targetType:o,targetId:e,metadata:Object.assign({securityType:t,tickerId:this.generateUUID()},n)}),headers:yield this.getOneserviceHeaders(i),credentials:"include"},p=(0,h.PH)(this.pdpServiceEndpoint),m="zh-cn"!==(0,d.Yq)().CurrentMarket;let v;((yield(0,y.XJ)())===s.Hy.SignedIn&&m?c.$.getOneServiceParamsWithAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&p.searchParams.set(e.key,e.value)}));try{v=yield(0,u.w)((()=>(0,a.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(p.href,l);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${o}`;throw new Error(t)}return e.json()}))),"addToWatchList"),this.tryInvalidateBulkFetchedPdpTargetType(o)}catch(e){return!1}return!0}))}addListToWatchList(e,t={},i={}){return(0,a.mG)(this,void 0,void 0,(function*(){const n=g.L.Finance,o="Follow",r={method:"POST",body:JSON.stringify(e.map((e=>({actionType:o,targetType:n,targetId:e.key,metadata:Object.assign({securityType:e.value,tickerId:this.generateUUID()},i)})))),headers:yield this.getOneserviceHeaders(t),credentials:"include"},l=(0,h.PH)(this.pdpServiceEndpoint),p="zh-cn"!==(0,d.Yq)().CurrentMarket;let m;((yield(0,y.XJ)())===s.Hy.SignedIn&&p?c.$.getOneServiceParamsWithAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&l.searchParams.set(e.key,e.value)}));try{m=yield(0,u.w)((()=>(0,a.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(l.href,r);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${n}`;throw new Error(t)}return e.json()}))),"addToWatchList"),this.tryInvalidateBulkFetchedPdpTargetType(n)}catch(e){return!1}return!0}))}generateUUID(){let e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const i=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?i:3&i|8).toString(16)}))}sortWatchList(e,t={}){var i;return(0,a.mG)(this,void 0,void 0,(function*(){const n=g.L.Finance,o="Follow",r=yield b.readPdpWithTargetType(g.L.Finance,!0,200,t),l=r&&(null===(i=r.value)||void 0===i?void 0:i.filter((e=>e.actionType===o&&e.targetId)));if(!l||l.length<e.length)return!1;const p={};let m=e.length;l.forEach((t=>{let i=e.findIndex((e=>e===t.targetId));i<0&&(i=m,m++),p[t.targetId]=JSON.stringify({actionType:o,targetId:t.targetId,targetType:n,rank:i,metadata:t.metadata})}));const v={method:"PUT",body:JSON.stringify(p),headers:yield this.getOneserviceHeaders(t),credentials:"include"},f=(0,h.PH)(this.pdpServiceEndpoint);((yield(0,y.XJ)())===s.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&f.searchParams.set(e.key,e.value)}));try{yield(0,u.w)((()=>(0,a.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(f.href,v);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${n}`;throw new Error(t)}return e.json()}))),"sortWatchList"),this.tryInvalidateBulkFetchedPdpTargetType(g.L.Finance)}catch(e){return!1}return!0}))}updateWeatherInterests(e,t,i,o={},r){return(0,a.mG)(this,void 0,void 0,(function*(){const t=g.L.Weather,a={method:"POST",body:JSON.stringify({actionType:"Follow",targetType:t,targetId:e,metadata:{UserAction:{0:{UpdateTime:new Date,Location:i}}}}),headers:yield this.getOneserviceHeaders(o),credentials:"include"},l=(0,h.PH)(this.pdpServiceEndpoint);((yield(0,y.XJ)())===s.Hy.SignedIn?c.$.getOneServiceParamsWithAuth(null!=r?r:(0,d.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth(null!=r?r:(0,d.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&l.searchParams.set(e.key,e.value)}));try{const e=yield this.fetchImpl(l.href,a);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for update weather interests call`;throw new Error(t)}}catch(e){return n.k.logError(e.message),!1}return!0}))}updateWeatherSettings(e,t,i={},n){return(0,a.mG)(this,void 0,void 0,(function*(){if(!e&&!t)return!0;let a="";a=e&&!t?'{"weatherDisplayUnit":"'+e+'"}':!e&&t?'{"userSettings":{"weatherLocationSettingMode":"'+t+'"}}':'{"weatherDisplayUnit":"'+e+'","userSettings":{"weatherLocationSettingMode":"'+t+'"}}';const o=yield this.getRequestInit({method:"POST"},i);o.body=a;const r=(0,h.PH)(this.userUpdateEndpoint);((yield(0,y.XJ)())===s.Hy.SignedIn?c.$.getOneServiceParamsWithAuth(null!=n?n:(0,d.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth(null!=n?n:(0,d.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&r.searchParams.set(e.key,e.value)}));const l=yield this.fetchImpl(r.href,o);if(l.status>=400){const e=`OneService returned error response. Status: ${l.status} for update weather setting call`;throw new Error(e)}return!0}))}updateFinanceInterests(e){return(0,a.mG)(this,void 0,void 0,(function*(){if(!e)return!1;const t={financeInterests:e},i=JSON.stringify(t),a=yield this.getRequestInit({method:"POST"});a.body=i;const n=(0,h.PH)(this.userUpdateEndpoint),o="zh-cn"!==(0,d.Yq)().CurrentMarket;((yield(0,y.XJ)())===s.Hy.SignedIn&&o?c.$.getOneServiceParamsWithAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,d.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&n.searchParams.set(e.key,e.value)}));const r=yield this.fetchImpl(n.href,a);if(r.status>=400){const e=`OneService returned error response. Status: ${r.status} for update finance interests call`;throw new Error(e)}return!0}))}updateUserSettings(e,t={},i){return(0,a.mG)(this,void 0,void 0,(function*(){if(!e)return!0;const a=[];let o;for(o in e)null!=e[o]&&a.push('"'+o+'": '+JSON.stringify(e[o]));const r='{"userSettings":{'+a.join(", ")+"}}",l=yield this.getRequestInit({method:"POST"},t);l.body=r;const u=(0,h.PH)(this.userUpdateEndpoint);((yield(0,y.XJ)())===s.Hy.SignedIn?c.$.getOneServiceParamsWithAuth(null!=i?i:(0,d.Yq)().UserId,this.ocid=t?void 0:t.attributes.scenario)===A));if(l.length>0){s=o.RebatesCarousel||104;const t=function(t,e,i){const n=[],a=r(53059).shuffle(t.filter((t=>(null==t?void 0:t.priority)&&1===t.priority)));for(let r=0;r<a.length;r++){n.push(V(a[r],e,i));t.filter((t=>(null==t?void 0:t.priority)&&2===t.priority&&(null==t?void 0:t.attributes.category)&&(null==t?void 0:t.attributes.category)===a[r].attributes.category)).forEach((t=>n.push(V(t,e,i))))}return n}(l,e,i);return{viewModuleType:s,promotionViewModel:t}}const h=B(x,a);if(null!=h)return s=o.Acquisition||100,{viewModuleType:s,promotionViewModel:[V(h,e,i,!0)]};const p=B(w,a);if(null!=p)return s=o.Redemption||102,{viewModuleType:s,promotionViewModel:[V(p,e,i)]};s=o.Engagement||101;const c=a.response.promotions.filter((t=>{var e,r,i,n;return"False"===t.attributes.complete&&t.attributes.destination&&"True"!==(null===(e=t.attributes)||void 0===e?void 0:e.hidden)&&(null===(r=t.attributes)||void 0===r?void 0:r.scenario)!==x&&(null===(i=t.attributes)||void 0===i?void 0:i.scenario)!==w&&(null===(n=t.attributes)||void 0===n?void 0:n.scenario)!==A}));let u=[];const f=c.filter((t=>t.name.toLowerCase().includes("dailyset")));if(f.length>0?(u=f,s=o.DailySets):u=[z(c)],u.length>0){const t=[];return u.forEach((r=>t.push(V(r,e,i)))),{viewModuleType:s,promotionViewModel:t}}return null}function V(t,e,r,i=!1,n=!1){var a,s,o;const l=i?[{LinkTitle:"Terms",LinkUrl:"http://go.microsoft.com/fwlink/?LinkID=530144"},{LinkTitle:"Privacy",LinkUrl:"http://go.microsoft.com/fwlink/?LinkId=521839"}]:null,h=void 0!==(null===(a=null==t?void 0:t.attributes)||void 0===a?void 0:a.description)?function(t){var e;return 0==(null===(e=null==t?void 0:t.attributes.scenario)||void 0===e?void 0:e.localeCompare(A))?function(t,e){""!==e&&null!=e||(e=T);e.includes("%")||(e+="%");const r=t.split("{0}");return 2===r.length?{tagLeft:r[0],comission:e,tagRight:r[1]}:{tagLeft:C,comission:e,tagRight:k}}(null==t?void 0:t.attributes.description,null==t?void 0:t.attributes.comission):null==t?void 0:t.attributes.description}(t):"",p=t.name.toLowerCase().includes("dailyset")?null===(s=t.attributes)||void 0===s?void 0:s.max:null,c=t.name.toLowerCase().includes("dailyset")?function(t){let e="%3F";const r="%26",i="%3D";return[["CREA",O],["OCID",F],["PartnerId",I]].forEach((n=>{let a=t.indexOf(n[0]+"=");if(-1===a&&(a=t.toLowerCase().indexOf((n[0]+i).toLowerCase())),-1===a)if(t.toLowerCase().includes("&ru=%2f")&&(t.includes(e)||t.includes(e.toLowerCase()))){t.includes(e.toLowerCase())&&(e=e.toLowerCase());const a=t.substring(0,t.indexOf(e)),s=t.substring(t.indexOf(e)+e.length,t.length);t=`${a}${e}${n[0]}${i}${n[1]}`,s.length>0&&(t=`${t}${r}${s}`)}else t=-1==t.indexOf("?")?`${t}?${n[0]}=${n[1]}`:`${t.substring(0,t.indexOf("?")+1)}${n[0]}=${n[1]}&${t.substring(t.indexOf("?")+1,t.length)}`;else{const e=t.substring(a).indexOf("&");t=-1===e?t.substring(0,a)+n[0]+"="+n[1]:t.substring(0,a)+n[0]+"="+n[1]+t.substring(a+e,t.length)}})),t}(null==t?void 0:t.attributes.destination):null==t?void 0:t.attributes.destination;let u;return u=n?"https://i.postimg.cc/Xqw9BnBL/Daily-Set-Light-1-U-v4.png":t.name&&t.name.toLowerCase().includes("dailyset")?null===(o=t.attributes)||void 0===o?void 0:o.animated_icon:function(t,e){if(!(t.attributes.bg_image_feeds_1u_dark&&t.attributes.bg_image_feeds_p5u_dark&&t.attributes.bg_image_feeds_1u_light&&t.attributes.bg_image_feeds_p5u_light))return null;if((0,L.Y)())switch(e){case"_1x_2y":return t.attributes.bg_image_feeds_1u_dark;case"_1x_1y":return t.attributes.bg_image_feeds_p5u_dark}else switch(e){case"_1x_2y":return t.attributes.bg_image_feeds_1u_light;case"_1x_1y":return t.attributes.bg_image_feeds_p5u_light}return null}(t,e),{header_title:(null==t?void 0:t.attributes.header_title)?null==t?void 0:t.attributes.header_title:r.microsoftRewards.toUpperCase(),title:(null==t?void 0:t.attributes.title)?null==t?void 0:t.attributes.title:"",description:h,ctaButton:{LinkTitle:null==t?void 0:t.attributes.link_text,LinkUrl:c},footerLinks:l,backgroundImageUrl:u,dailySetPoints:p}}function B(t,e){const r=e.response.promotions.filter((e=>(null==e?void 0:e.attributes.complete)&&"False"===(null==e?void 0:e.attributes.complete)&&(null==e?void 0:e.attributes.scenario)&&(null==e?void 0:e.attributes.scenario)===t));return r.length>0?z(r):null}function z(t){const e=t.length;return t[Math.floor(Math.random()*e)]}var G=r(9610),j=r(33832),N=r(87697),H=r(791);class W extends G.l{constructor(){super(...arguments),this.promotionViewModel=[],this.isActionMenuOpen=!1,this.enableActionMenuModule=!0,this.moreSettingAction=()=>{this.toggleActionMenu(!1,null),this.goToPersonalizeSettingsCallback&&this.goToPersonalizeSettingsCallback(),this.$emit("goToPersonalizeSettingsCallback")},this.hideCardCallback=()=>(0,l.mG)(this,void 0,void 0,(function*(){const t=yield H.N.updateSegmentCardsEnableStatus([{cardType:R.f.RewardsCard,enabled:!1}]);return this.refreshSDCardSection&&this.refreshSDCardSection(),this.toggleActionMenu(!1,null),t})),this.onOutsideClick=t=>{t.target instanceof W||this.actionsMenuButtonElement.contains(t.path[0])||this.toggleActionMenu(!1,null)},this.onKeydown=t=>{t.keyCode===j.Lp&&this.toggleActionMenu(!1,null)}}experienceConnected(){if(this.backendData&&this.cardSizeMetadata){const t=$(this.backendData,this.cardSizeMetadata,this.strings);this.viewModuleType=t.viewModuleType,this.promotionViewModel=t.promotionViewModel,this.currentSlide=0,this.darkMode=(0,L.Y)()}this.initialize()}getExperienceType(){return a.x.rewardsCardWC}getActionMenuItem(){return[{id:"more",glyph:p.Z,title:this.strings.moreSettings,onClick:()=>{this.moreSettingAction()},telemetryTag:this.addRemoveElectionsTelemetryTags},{id:"hide",glyph:c.Z,title:this.strings.hideThisCard,onClick:()=>(0,l.mG)(this,void 0,void 0,(function*(){this.hideCardCallback()})),telemetryTag:this.hideCardTelemetryTag}]}shadowDomPopulated(){(0,u.l6)(a.x.rewardsCardWC)}toggleActionMenu(t,e){this.isActionMenuOpen=t,this.isActionMenuOpen?(this.actionsMenuButtonElement=e&&e.currentTarget,document.addEventListener("click",this.onOutsideClick),document.addEventListener("keydown",this.onKeydown)):(this.actionsMenuButtonElement=null,document.removeEventListener("click",this.onOutsideClick),document.removeEventListener("keydown",this.onKeydown))}getModuleTelemetryTagName(t){switch(t){case o.Acquisition:return m;case o.Engagement:return y;case o.Redemption:return g;case o.RebatesCarousel:return P;case o.DailySets:return S}}getViewTelemetryTag(t){return null==this.telemetryObject?null:this.telemetryObject.addOrUpdateChild({name:t,action:h.Aw.View,type:h.c9.Module,behavior:h.wu.View,content:{type:h.uH.StructuredData,id:t},ext:this.telemetryExt}).getMetadataTag()}getClickTelemetryTag(t,e){return null==this.telemetryObject?null:this.telemetryObject.addOrUpdateChild({name:t,action:h.Aw.Click,type:h.c9.ActionButton,behavior:h.wu.Navigate,content:{id:t,type:h.uH.StructuredData,headline:e},ext:this.telemetryExt}).getMetadataTag()}getNonNavClickTelemetryTag(t,e){return null==this.telemetryObject?null:this.telemetryObject.addOrUpdateChild({name:t,action:h.Aw.Click,type:h.c9.ActionButton,behavior:h.wu.More,content:{id:t,headline:e},ext:this.telemetryExt}).getMetadataTag()}setupTelemetryObjects(){if(null==this.telemetryObject)return;this.rewardsWholeCardTelemetryTag=this.getViewTelemetryTag(f);const t=this.getModuleTelemetryTagName(this.viewModuleType);this.rewardsModuleTelemetryTag=this.getViewTelemetryTag(t),this.navigateLinkTelemetryTag=this.getClickTelemetryTag(d,"External Navigate"),this.actionsMenuModuleTelemetryTags=this.getClickTelemetryTag(v,"Actions menu"),this.addRemoveElectionsTelemetryTags=this.getClickTelemetryTag(b,"Add or Remove cards"),this.hideCardTelemetryTag=this.getClickTelemetryTag(_,"Hide card"),this.viewModuleType==o.DailySets&&(this.nonNavigationClicksTelemetryTag=this.getNonNavClickTelemetryTag(E,"Carousel arrow clicks"))}initialize(){this.setupTelemetryObjects(),this.actionMenuItems=this.getActionMenuItem()}}(0,l.gn)([N.LO],W.prototype,"viewModuleType",void 0),(0,l.gn)([N.LO],W.prototype,"promotionViewModel",void 0),(0,l.gn)([N.LO],W.prototype,"isActionMenuOpen",void 0),(0,l.gn)([N.LO],W.prototype,"currentSlide",void 0),(0,l.gn)([N.LO],W.prototype,"darkMode",void 0);r(69300);const q='\n<svg width="8" height="14" viewBox="0 0 8 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M0.213628 1.19491L6.24491 7L0.213627 12.8051C-0.0712106 13.0792 -0.0712106 13.5214 0.213627 13.7944C0.498465 14.0685 0.957841 14.0685 1.24147 13.7944L7.78667 7.49465C7.92243 7.36515 8 7.18433 8 7C8 6.81568 7.92243 6.63485 7.78667 6.50535L1.24147 0.205617C0.95663 -0.0685387 0.497254 -0.0685388 0.213628 0.205616C-0.0699974 0.479772 -0.0712095 0.92192 0.213628 1.19491Z" fill="#666666"/>\n</svg>\n';var U=r(39181),Y=r(13988),J=r(18864);r(33763).S;const X=U.d`
<msn-actions-menu
    :referrerButton=${t=>t.actionsMenuButtonElement} 
    :menuItems=${t=>t.actionMenuItems}
    defaultHorizontalPosition="start">
</msn-actions-menu>
`,Z=U.d`
<div class="amdl" data-t="${t=>t.actionsMenuModuleTelemetryTags}">
    <fluent-button
        class= "toggle-button"
                appearance="lightweight"
                @click=${(t,e)=>t.toggleActionMenu&&t.toggleActionMenu(!t.isActionMenuOpen,e.event)}
                title="${t=>t.strings.moreSettings}"
                aria-label="${t=>t.strings.moreSettings}"
                >
        ${t=>t.darkMode&&t.viewModuleType===o.DailySets?U.d`${'\n<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12Z" fill="#3B3B3B"/>\n<path d="M9.25 12C9.25 12.6904 8.69036 13.25 8 13.25C7.30964 13.25 6.75 12.6904 6.75 12C6.75 11.3096 7.30964 10.75 8 10.75C8.69036 10.75 9.25 11.3096 9.25 12Z" fill="#FFFFFF"/>\n<path d="M13.25 12C13.25 12.6904 12.6904 13.25 12 13.25C11.3096 13.25 10.75 12.6904 10.75 12C10.75 11.3096 11.3096 10.75 12 10.75C12.6904 10.75 13.25 11.3096 13.25 12Z" fill="#FFFFFF"/>\n<path d="M16 13.25C16.6904 13.25 17.25 12.6904 17.25 12C17.25 11.3096 16.6904 10.75 16 10.75C15.3096 10.75 14.75 11.3096 14.75 12C14.75 12.6904 15.3096 13.25 16 13.25Z" fill="#FFFFFF"/>\n</svg>\n'}`:U.d`${'\n<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12Z" fill-opacity="0.05"/>\n<path d="M9.25 12C9.25 12.6904 8.69036 13.25 8 13.25C7.30964 13.25 6.75 12.6904 6.75 12C6.75 11.3096 7.30964 10.75 8 10.75C8.69036 10.75 9.25 11.3096 9.25 12Z" fill-opacity="0.55"/>\n<path d="M13.25 12C13.25 12.6904 12.6904 13.25 12 13.25C11.3096 13.25 10.75 12.6904 10.75 12C10.75 11.3096 11.3096 10.75 12 10.75C12.6904 10.75 13.25 11.3096 13.25 12Z" fill-opacity="0.55"/>\n<path d="M16 13.25C16.6904 13.25 17.25 12.6904 17.25 12C17.25 11.3096 16.6904 10.75 16 10.75C15.3096 10.75 14.75 11.3096 14.75 12C14.75 12.6904 15.3096 13.25 16 13.25Z" fill-opacity="0.55"/>\n</svg>\n'}`}
    </fluent-button>
    ${(0,Y.g)((t=>t.isActionMenuOpen),X)}
</div>
`,K=U.d`
<div style="margin-right: 5px;"
        @click="${t=>{return e=t.LinkUrl,void window.open(e,"_blank");var e}}">${t=>t.LinkTitle}</div>
<div style="margin-right: 5px;" class="sptr"> | </div>
`,Q=t=>U.d`
<div class="cta_btn rm1 rglrfnt">
${t.LinkTitle}
</div>
`,tt=t=>U.d`
<div class="rbts_btn rm1 rglrfnt">
${t.LinkTitle}
</div>
`,et=(t,e)=>U.d`
<div style="background-image:url('${t.backgroundImageUrl}');" class="${e}" @load=${t=>t.callTtvr("Rewards_Bg_Image")}>
<a href="${t.ctaButton.LinkUrl}" data-t="${t=>t.navigateLinkTelemetryTag}" target="_blank">
<div class="rw_ctnr sbfnt">
<div class="fl sb actr pb12">
<div class="rm1 b55">${t.header_title}
</div>
${(0,Y.g)((t=>t.enableActionMenuModule),Z)}
</div>
<div class="atbox">
<div class="flht fl fldc sb">
<div class="rb1 b83 promo_txt_lmt">${t.description}</div>
<div>
${(0,Y.g)((e=>t.ctaButton.LinkTitle),U.d`
${Q(t.ctaButton)}
`)}
<div class="fl b47 rm1 ftr_lnks pb15">
${(0,Y.g)((e=>null!=t.footerLinks),U.d`
${(0,J.rx)((()=>t.footerLinks),K)}
`)}
</div>
</div>
</div>
</div>
</a>
</div>
`,rt=(t,e)=>{return U.d`
<div ${t.viewModuleType!=o.DailySets?"style=\"background-image:url('"+t.promotionViewModel[t.currentSlide].backgroundImageUrl+"');":(r=t.darkMode,r?'style="background: #303030;"':'style="background: white;"')}
    class="${t.cardSizeMetadata}" @load=${t=>t.callTtvr("Rewards_Bg_Image")}>
    <a href="${t.promotionViewModel[t.currentSlide].ctaButton.LinkUrl}" data-t="${t=>t.navigateLinkTelemetryTag}" target="_blank">
        
        ${(0,Y.g)((t=>!e&&t.viewModuleType!=o.DailySets),it(t.cardSizeMetadata,M,t.viewModuleType===o.DailySets))}
        ${(0,Y.g)((t=>!e&&t.viewModuleType!=o.DailySets),it(t.cardSizeMetadata,D,t.viewModuleType===o.DailySets))}
        ${nt(t)}

    </a>
</div>
`;var r},it=(t,e,r)=>U.d`
<div class="fix_flipper">
    <div class="flipper ${e} ${t} ${1==r?"dailySet":""}" 
        @click="${t=>e===M?st(t):ot(t)}" data-t="${t=>t.nonNavigationClicksTelemetryTag}">
        ${q}
    </div>
</div>
`,nt=t=>{return U.d`
<div class="rw_ctnr2">
    <div class="fl sb actr pb12 pt12">
        <div class="fl">
            <div class="sbfnt rm1 b55 ls05 asctr pr10 ${t.darkMode?"dark-txt":""}">
                ${t.viewModuleType===o.DailySets?t.promotionViewModel[t.currentSlide].header_title+": "+t.strings.dailySet.toUpperCase():t.promotionViewModel[t.currentSlide].header_title}
            </div>
        </div>
        ${(0,Y.g)((t=>t.enableActionMenuModule),Z)}
    </div>

    ${(0,Y.g)((t=>t.viewModuleType===o.DailySets),(i=t.promotionViewModel[t.currentSlide].dailySetPoints,U.d`
<div class="ds-points-right">
    <div class="ds-box fl fix_flipper mv-right">
        <div class="plus-points">+</div>
        <div class="pl2 ds-text">${i}</div>
    </div>
</div>
`))}
    ${(0,Y.g)((t=>t.viewModuleType===o.DailySets),(e=t.promotionViewModel[t.currentSlide].backgroundImageUrl,r=t.cardSizeMetadata,U.d`
<div class="dsAnim ${r}">
    <lottie-player
        src="${e}"
        hover
    ></lottie-player>
</div>
`))}
    
    <div class=${"_1x_1y"==t.cardSizeMetadata?"btm_1x_1y":""}>
        <div class="${t.viewModuleType===o.DailySets?"ds-flht":"flht"} fl fldc jcfe actr">
            <div class="pb5 ${"_1x_1y"==t.cardSizeMetadata?"rb3":"rb2"} fwbold ${t.darkMode?"dark-txt":""}">
                ${t.promotionViewModel[t.currentSlide].title}
            </div>
            
            <div class="b55 ${"_1x_1y"==t.cardSizeMetadata?"rb3 pb8":"rb2 pb5"}">
                <div class="fl txt_c ${t.darkMode?"dark-txt":""}">
                ${"string"==typeof t.promotionViewModel[t.currentSlide].description?t.promotionViewModel[t.currentSlide].description:(t=>U.d`
<span>${t.promotionViewModel[t.currentSlide].description.tagLeft}</span>
    <div class="dsc_tag">
        <span class="tagLeft"></span>
        <span class="comission">
            ${t.promotionViewModel[t.currentSlide].description.comission}
        </span>
        <span class="tagRight"></span>
    </div>
<span>${t.promotionViewModel[t.currentSlide].description.tagRight}</span>
`)(t)}
                </div>
            </div>

            ${(0,Y.g)((t=>t.viewModuleType!=o.DailySets),tt(t.promotionViewModel[t.currentSlide].ctaButton))}
            ${(0,Y.g)((t=>t.viewModuleType===o.DailySets),(t=>U.d`
<div class="fl w100 sb pb12 ${t=>t.darkMode?"dark-txt":""}">
    <div class="fl">
        <div class="${t=>lt(t.darkMode)} ds-flipper ${t} left" 
            @click="${t=>ot(t)}" data-t="${t=>t.nonNavigationClicksTelemetryTag}">
            ${t=>ht(t.darkMode)}
        </div>
        <div class="ds-txt-count rglrfnt">
            ${t=>t.currentSlide+1}/${t=>t.promotionViewModel.length} 
        </div>
        <div class="${t=>lt(t.darkMode)} ds-flipper ${t} right" 
            @click="${t=>st(t)}" data-t="${t=>t.nonNavigationClicksTelemetryTag}">
            ${t=>ht(t.darkMode)}
        </div>
    </div>
    <div class="fl rb3 rglrfnt actr">
        <span class="pr6">${t=>t.strings.completeActivity}</span>
        ${'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<rect width="24" height="24" rx="12" fill="#036AC4"/>\n<path d="M7.5 12C7.5 11.7239 7.72386 11.5 8 11.5L14.7929 11.5L12.1464 8.85355C11.9512 8.65829 11.9512 8.34171 12.1464 8.14645C12.3417 7.95118 12.6583 7.95118 12.8536 8.14645L16.3536 11.6464C16.5488 11.8417 16.5488 12.1583 16.3536 12.3536L12.8536 15.8536C12.6583 16.0488 12.3417 16.0488 12.1464 15.8536C11.9512 15.6583 11.9512 15.3417 12.1464 15.1464L14.7929 12.5L8 12.5C7.72386 12.5 7.5 12.2761 7.5 12Z" fill="white"/>\n</svg>\n'}
    </div>
</div> 
`)(t.cardSizeMetadata))}
             
        </div>
    </div>
</div>
`;var e,r,i},at=U.d`
<div data-t="${t=>t.rewardsWholeCardTelemetryTag}">
<div class="${t=>t.cardSizeMetadata}" data-t="${t=>t.rewardsModuleTelemetryTag}">
    ${t=>function(t){if(0===t.promotionViewModel.length)return"";switch(null==t?void 0:t.viewModuleType){case o.RebatesCarousel:case o.DailySets:return 1===t.promotionViewModel.length?rt(t,!0):rt(t,!1);default:return 1===t.promotionViewModel.length?et(t.promotionViewModel[0],t.cardSizeMetadata):""}}(t)}
</div>
</div>`;function st(t){t.currentSlide=t.promotionViewModel.length-1===t.currentSlide?0:t.currentSlide+1}function ot(t){t.currentSlide=0===t.currentSlide?t.promotionViewModel.length-1:t.currentSlide-1}function lt(t){return t?"ds-flipper-bg-dark":"ds-flipper-bg"}function ht(t){return t?U.d`${'\n<svg width="8" height="14" viewBox="0 0 8 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M0.213628 1.19491L6.24491 7L0.213627 12.8051C-0.0712106 13.0792 -0.0712106 13.5214 0.213627 13.7944C0.498465 14.0685 0.957841 14.0685 1.24147 13.7944L7.78667 7.49465C7.92243 7.36515 8 7.18433 8 7C8 6.81568 7.92243 6.63485 7.78667 6.50535L1.24147 0.205617C0.95663 -0.0685387 0.497254 -0.0685388 0.213628 0.205616C-0.0699974 0.479772 -0.0712095 0.92192 0.213628 1.19491Z" fill="#dddddd"/>\n</svg>\n'}`:U.d`${q}`}var pt=r(32804);const ct=r(53046).i`
:host {
    border-radius: 6px;
}

:host a:-webkit-any-link {
    text-decoration: none;
    color: inherit;
}

._1x_1y {
    width: 300px;
    height: 146px;
    border-radius: 6px;
}
._1x_2y {
    width: 300px;
    height: 304px;
    border-radius: 6px;
}
.rw_ctnr {
    height: 100%;
    padding: 12px 16px;
}

.rw_ctnr2 {
    height: 100%;
    padding: 0px 16px;
    display: grid;
}

.w100{
    width: 100%;
}

.h100{
    height: 100%;
}

.fl {
    display: flex;
}

.actr {
    align-items: center;
}

.asctr {
    align-self: center;
}

.sb {
    justify-content: space-between;
}

.jcfe{
    justify-content: flex-end;
}

.fldc {
    flex-direction: column;
}

.fldcr {
    flex-direction: column-reverse;
}

._1x_2y .flht {
    height: 250px;
}

._1x_2y .ds-flht {
    width: 100%;
    height: 100%;
}

.pgrblk {
    background-color: #101010;
    height: 52px;
    border-radius: 0 0 6px 6px;
    margin-top: 7px;
    padding-left: 8px;
    padding-right: 8px;
}

.rm1 {
    font-size: var(--type-ramp-minus-1-font-size, 12px);
    line-height: var(--type-ramp-minus-1-line-height, 16px);
}

.rb1 {
    font-size: 20px;
    line-height: 28px;
}

.rb2 {
    font-size: 12px;
    line-height: 18px;
}

.rb3 {
    font-size: 12px;
    line-height: 10px;
}

.sbfnt {
    font-family: "Segoe UI SemiBold", "Segoe UI", Arial, sans-serif;
}

.rglrfnt {
    font-family: "Segoe UI", Arial, Sans-Serif;
}

.fwbold{
    font-weight: bolder;
}

.pt12 {
    padding-top: 12px;
}

.pb5 {
    padding-bottom: 5px;
}

.pb8 {
    padding-bottom: 8px;
}

.pb12 {
    padding-bottom: 12px;
}

.pb15 {
    padding-bottom: 15px;
}

.pl10 {
    padding-left: 10px;
}

.pl2 {
    padding-left: 2px;
}

.pr6 {
    padding-right: 6px;
}

.pr10 {
    padding-right: 10px;
}

.b47 {
    color: rgba(0, 0, 0, 0.47);
}

.b83 {
    color: ${pt.CHi};
}

.b55 {
    color: ${pt.Q5n};
}

.atbox {
    width: 168px;
}

.cta_btn {
    padding: 4px 8px;
    background-color: ${pt.jql};
    border-radius: 20px;
    text-align: center; 
    width: 87px;
    margin-bottom: 12px;
    border: 1px solid ${pt.akT};
    color: ${pt.CHi};
}

.rbts_btn {
    padding: 4px 20px;
    background-color: ${pt.jql};
    border-radius: 20px;
    text-align: center; 
    margin-bottom: 12px;
    border: 1px solid #023B8F;
    color: ${pt.CHi};
}

.txt_c {
    text-align: center; 
}

.ls07 {
    letter-spacing: 0.7px;
}

.ls05 {
    letter-spacing: 0.5px;
}

.sptr:last-child {
    display: none;
}

.amdl fluent-button svg {
    width: 24px;
    height: 24px;
}

fluent-button svg {
    fill: ${pt.CHi};
}

fluent-button::part(content)::before {
    height: 0px;
}

.promo_txt_lmt {
    height: 175px;
    overflow: hidden;
}

.dsc_tag {
    vertical-align: middle;
    padding-right: 5px;
    padding-left: 5px;
}

.tagLeft {
    background: url('//az15297.vo.msecnd.net/images/rewards/membercenter/missions/RebateBadge_Blue_Left.png') no-repeat;
    border-radius: 6px 0 0 6px;
    height: 20px;
    float: left;
    width: 4px;
    background-size: cover;
    background-position: right center;
}

.comission {
    font-weight: bold;
    background-color: $deals-tag;
    line-height: 20px;
    height: 20px;
    float: left;
    color: white;
    background: #003dbf;
}

.tagRight {
    @include margin-right(3px);
    background: url('//az15297.vo.msecnd.net/images/rewards/membercenter/missions/RebateBadge_Blue_Right.png') no-repeat;
    width: 11px;
    height: 20px;
    float: left;
    background-size: cover;
    background-position: right center;
}

.flipper {
    height: 30px;
    width: 30px;
    background: #FFFFFF;
    box-shadow: 0px 6.4px 14.4px rgb(0 0 0 / 13%), 0px 0px 5.6px rgb(0 0 0 / 11%);
    border-radius: 20px;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.ds-flipper {
    height: 24px;
    width: 24px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.ds-flipper-bg {
    background: #F3F3F3;
}

.ds-flipper-bg-dark {
    background: #3B3B3B;
}

.compact .flipper {
    height: 32px;
    width: 32px;
    border-radius: 16px;
}

.fix_flipper {
    direction: ltr;
}

.flipper.right._1x_1y {
    transform: translate(260px, 58px);
}

.flipper.left._1x_1y {
    transform: translate(10px, 58px);
}

.flipper.right._1x_1y.dailySet {
    transform: translate(260px, 80px);
}

.flipper.left._1x_1y.dailySet {
    transform: translate(10px, 80px);
}

.flipper.right._1x_2y {
    transform: translate(260px, 137px);
}

.flipper.left._1x_2y {
    transform: translate(10px, 137px);
}

.compact .flipper.right {
    right: 4px;
}

.flipper:hover {
    background-color: #e6e6e6;
}

.ds-flipper-bg:hover {
    background-color: #e6e6e6;
}

.ds-flipper-bg-dark:hover {
    background-color: #757575;
}

.ds-flipper svg {
    height: 9px;
}

.flipper svg {
    height: 13px;
}

.flipper.left svg {
    transform: rotate(180deg);
}

.ds-flipper.left svg {
    transform: rotate(180deg);
}

.ds-box {
    background: linear-gradient(99.98deg, #079E82 0%, #0264BC 100%);
    border-radius: 10px 0px 0px 10px;
    height: 20px;
    padding: 2px 8px 0px;
}

.ds-text {
    font-size: 14px;
    font-style: italic;
    font-weight: 900;
    color: white;
}

.plus-points {
    font-size: 14px;
    font-weight: bold;
    color: #DDFFE8;
}

.dsAnim._1x_2y {
    max-height: 120px;
    width: 100%;
}

.dsAnim._1x_1y {
    position: absolute;
    max-height: 60px;
    max-width: 140px; 
    margin: 50px 82px;
}

.btm_1x_1y {
    padding-top: 40px;
}

.mv-right {
    width: 28px;
    float: right;
}

.ds-txt-count {
    font-size: 12px;
    align-self: center;
    padding: 0px 10px 0px 10px;
}

.ds-points-right {
    right: -16px;
    position: relative;
}

.dark-txt {
    color: #e7e7e7;
}
`,ut={experienceConfigSchema:s}},30113:function(t,e,r){"use strict";var i;r.d(e,{m:function(){return i}}),function(t){t.small="OneByOne",t.medium="OneByTwo",t.large="OneByThree"}(i||(i={}))},11708:function(t,e,r){"use strict";var i;r.d(e,{f:function(){return i}}),function(t){t.AiCharacter="aicharacterCardEnabled",t.AutosMarketplaceCard="autosmarketplaceCardEnabled",t.HoroscopeCard="horoscopeCardEnabled",t.WeatherCard="weatherCardEnabled",t.SportsCard="sportsCardEnabled",t.MoneyCard="moneyCardEnabled",t.FinanceCard="financeCardEnabled",t.OnThisDayCard="onthisdayCardEnabled",t.ShoppingCard="shoppingCardEnabled",t.ShoppingEventCard="eventSDCardShoppingEnabled",t.TrafficCard="trafficCardEnabled",t.EsportsCard="esportsCardEnabled",t.EsportsStreamsCard="esportsStreamsCardEnabled",t.ElectionsCard="genericelectionCardEnabled",t.LotteryCard="lotteryCardEnabled",t.QnaCard="qnaCardEnabled",t.RecipesCard="recipeCardEnabled",t.InspirationCard="inspirationCardEnabled",t.TravelCard="travelCardEnabled",t.HealthCard="healthCardEnabled",t.TopStoriesCard="topstoriesCardEnabled",t.TrendingTopics="TrendingTopicsUpsellEnabled",t.LocalGuideCard="localGuideCardEnabled",t.GroceryCard="groceryCardEnabled",t.RewardsCard="rewardsCardEnabled",t.RecommendedSearchesCard="recommendedSearchesCardEnabled",t.PersonalizedOffersCard="personalizedoffersCardEnabled",t.PollsCard="pollsCardEnabled",t.MarketPlaceCard="marketplaceCardEnabled",t.QuizCard="quizCardEnabled",t.CasualGamesCard="esportsCardEnabled",t.CommuteCard="commuteCardEnabled",t.Crypto="CryptoCard",t.MarketBrief="MarketBriefCard"}(i||(i={}))},83152:function(t,e,r){"use strict";var i;r.d(e,{L:function(){return i}}),function(t){t.Location="Location",t.Weather="Weather",t.Finance="Finance",t.Team="Team",t.League="League",t.Player="Player",t.Traffic="Traffic",t.Widget="Widget",t.TopicFeed="TopicFeed"}(i||(i={}))},791:function(t,e,r){"use strict";r.d(e,{N:function(){return b}});var i=r(33940),n=r(33954),a=r(26415),s=r(68364),o=r(33799),l=r(16517),h=r(94788),p=r(67267),c=r(63535),u=r(87298),f=r(83152),d=r(11708),m=r(30113),y=r(65135),g=r(33379),v=r(51671);const b=new class extends class{constructor(t){this.fetchImpl=t,this.userUpdateEndpoint="msn/user",this.pdpServiceEndpoint="graph/actions",this.locationsServiceEndPoint="v1/news/users/me/locations",this.userActionServiceEndPoint="news/users/me/actions",this.ocid="Peregrine",this.ocidOverride=!1}getUserDefaultLocation(t){return(0,i.mG)(this,void 0,void 0,(function*(){const e={method:"GET",headers:yield p.$.getOneServiceHeaders(),credentials:"include"},r=(0,c.PH)(this.locationsServiceEndPoint);let n;[...p.$.getCommonParams2(this.ocid,!this.ocidOverride),{key:"autodetect",value:t&&`${t}`}].forEach((t=>{t.value&&r.searchParams.set(t.key,t.value)}));try{n=yield(0,u.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const t=yield this.fetchImpl(r.href,e);if(t.status>=400){const e=`OneService returned error response. Status: ${t.status} for actionType: getUserDefaultLocation}`;throw new Error(e)}return t}))),"getUserDefaultLocation")}catch(t){return n}return n}))}addToFavoriteLocation(t,e){return(0,i.mG)(this,void 0,void 0,(function*(){const r="Location",n="Follow",a={method:"POST",body:JSON.stringify({actionType:n,targetType:r,definitionName:e,degree:"FavoriteLocation",metaData:t}),headers:yield p.$.getOneServiceHeaders(),credentials:"include"},s=(0,c.PH)(this.pdpServiceEndpoint);let h;((yield(0,v.XJ)())===o.Hy.SignedIn?p.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):p.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((t=>{t.value&&s.searchParams.set(t.key,t.value)}));try{h=yield(0,u.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const t=yield this.fetchImpl(s.href,a);if(t.status>=400){const e=`OneService returned error response. Status: ${t.status} for actionType: Follow, targetType: Location`;throw new Error(e)}return t.json()}))),"addToFavoriteLocation")}catch(t){return!1}return!0}))}removeFavoriteLocation(t){return(0,i.mG)(this,void 0,void 0,(function*(){return yield this.deleteFromPdp(f.L.Location,"definitionName",[t])}))}removeLocation(t){return(0,i.mG)(this,void 0,void 0,(function*(){return yield this.deleteFromPdp(f.L.Location,"definitionName",[t])}))}updatePdpHomeLocation(t,e,r={},n){return(0,i.mG)(this,void 0,void 0,(function*(){const a=f.L.Location,s="Follow",h=yield this.getRequestInit({method:"POST"},r);h.body=JSON.stringify({actionType:s,targetType:a,definitionName:e,degree:"DefaultLocation",metaData:t});const d=(0,c.PH)(this.pdpServiceEndpoint);return((yield(0,v.XJ)())===o.Hy.SignedIn?p.$.getOneServiceParamsWithAuth(null!=n?n:(0,l.Yq)().UserId,this.ocid,!this.ocidOverride):p.$.getOneServiceParamsWithoutAuth(null!=n?n:(0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((t=>{t.value&&d.searchParams.set(t.key,t.value)})),yield(0,u.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const t=yield this.fetchImpl(d.href,h);if(t.status>=400){const e=`OneService returned error response. Status: ${t.status} for actionType: Follow, targetType: ${a}`;throw new Error(e)}return t}))),"setPdpHomeLocation"),this.tryInvalidateBulkFetchedPdpTargetType(a),!0}))}updateTrafficMyRoutes(t,e,r,a,s,o){return(0,i.mG)(this,void 0,void 0,(function*(){const l=r.replace(/[^a-zA-Z0-9\-.,_]/g,""),h=f.L.Traffic,c="Follow",d={method:"POST",body:JSON.stringify({actionType:c,targetType:h,targetId:l,degree:t,definitionName:e,metadata:a,createdDateTime:o}),headers:yield p.$.getOneServiceHeaders(),credentials:"include"},m=yield this.getTrafficPdpUrl(null,null,s);try{yield(0,u.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const t=yield this.fetchImpl(m.href,d);if(t.status>=400){const e=`OneService returned error response. Status: ${t.status} for actionType: Follow, targetType: ${h}`;throw new Error(e)}return t.json()}))),"updateTrafficMyRoutes");this.tryInvalidateBulkFetchedPdpTargetType(h)}catch(t){return n.k.logError(t.message),!1}return!0}))}deleteTrafficMyRoutes(t,e,r){return(0,i.mG)(this,void 0,void 0,(function*(){const n={method:"DELETE",headers:yield this.getOneserviceHeaders(),credentials:"include"},a=yield this.getTrafficPdpUrl(t,e,r);try{yield(0,u.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const t=yield this.fetchImpl(a.href,n);if(t.status>=400){const e=`OneService returned error response. Status: ${t.status} for actionType: Follow, targetType: ${f.L.Traffic}`;throw new Error(e)}return t}))),"deleteTrafficFromPdp"),this.tryInvalidateBulkFetchedPdpTargetType(f.L.Traffic)}catch(t){return!1}return!0}))}getTrafficMyRoutes(t,e){var r;return(0,i.mG)(this,void 0,void 0,(function*(){const n={method:"GET",headers:yield this.getOneserviceHeaders(),credentials:"include"},a=yield this.getTrafficPdpUrl(t,null,e);try{const t=yield(0,u.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const t=yield this.fetchImpl(a.href,n);if(t.status>=400){const e=`OneService returned error response. Status: ${t.status} for actionType: Follow, targetType: ${f.L.Traffic}`;throw new Error(e)}return t}))),"getTrafficFromPdp");return null===(r=yield t.json())||void 0===r?void 0:r.value}catch(t){return null}}))}getTrafficPdpUrl(t,e,r){return(0,i.mG)(this,void 0,void 0,(function*(){const i=(0,c.PH)(this.pdpServiceEndpoint),n=(yield(0,v.XJ)())===o.Hy.SignedIn,a=(0,l.Yq)().UserId,s=n?p.$.getOneServiceParamsWithAuth(a,this.ocid,!this.ocidOverride):p.$.getOneServiceParamsWithoutAuth(a,this.ocid,!this.ocidOverride);if(t||e){const r=`targetType eq '${f.L.Traffic}'`,n=t?`degree eq '${t}'`:"",a=e?`definitionName eq '${e}'`:"";i.searchParams.set("$filter",`actionType eq 'Follow' and (${r})${n?` and (${n})`:""}${a?` and (${a})`:""}`)}return[...s,...r||[]].forEach((t=>{t.value&&i.searchParams.set(t.key,t.value)})),i}))}addToWatchList(t,e=0,r={},n={}){return(0,i.mG)(this,void 0,void 0,(function*(){const a=f.L.Finance,s="Follow",h={method:"POST",body:JSON.stringify({actionType:s,targetType:a,targetId:t,metadata:Object.assign({securityType:e,tickerId:this.generateUUID()},n)}),headers:yield this.getOneserviceHeaders(r),credentials:"include"},d=(0,c.PH)(this.pdpServiceEndpoint),m="zh-cn"!==(0,l.Yq)().CurrentMarket;let y;((yield(0,v.XJ)())===o.Hy.SignedIn&&m?p.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):p.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((t=>{t.value&&d.searchParams.set(t.key,t.value)}));try{y=yield(0,u.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const t=yield this.fetchImpl(d.href,h);if(t.status>=400){const e=`OneService returned error response. Status: ${t.status} for actionType: Follow, targetType: ${a}`;throw new Error(e)}return t.json()}))),"addToWatchList"),this.tryInvalidateBulkFetchedPdpTargetType(a)}catch(t){return!1}return!0}))}addListToWatchList(t,e={},r={}){return(0,i.mG)(this,void 0,void 0,(function*(){const n=f.L.Finance,a="Follow",s={method:"POST",body:JSON.stringify(t.map((t=>({actionType:a,targetType:n,targetId:t.key,metadata:Object.assign({securityType:t.value,tickerId:this.generateUUID()},r)})))),headers:yield this.getOneserviceHeaders(e),credentials:"include"},h=(0,c.PH)(this.pdpServiceEndpoint),d="zh-cn"!==(0,l.Yq)().CurrentMarket;let m;((yield(0,v.XJ)())===o.Hy.SignedIn&&d?p.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):p.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((t=>{t.value&&h.searchParams.set(t.key,t.value)}));try{m=yield(0,u.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const t=yield this.fetchImpl(h.href,s);if(t.status>=400){const e=`OneService returned error response. Status: ${t.status} for actionType: Follow, targetType: ${n}`;throw new Error(e)}return t.json()}))),"addToWatchList"),this.tryInvalidateBulkFetchedPdpTargetType(n)}catch(t){return!1}return!0}))}generateUUID(){let t=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){const r=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==e?r:3&r|8).toString(16)}))}sortWatchList(t,e={}){var r;return(0,i.mG)(this,void 0,void 0,(function*(){const n=f.L.Finance,a="Follow",s=yield b.readPdpWithTargetType(f.L.Finance,!0,200,e),h=s&&(null===(r=s.value)||void 0===r?void 0:r.filter((t=>t.actionType===a&&t.targetId)));if(!h||h.length<t.length)return!1;const d={};let m=t.length;h.forEach((e=>{let r=t.findIndex((t=>t===e.targetId));r<0&&(r=m,m++),d[e.targetId]=JSON.stringify({actionType:a,targetId:e.targetId,targetType:n,rank:r,metadata:e.metadata})}));const y={method:"PUT",body:JSON.stringify(d),headers:yield this.getOneserviceHeaders(e),credentials:"include"},g=(0,c.PH)(this.pdpServiceEndpoint);((yield(0,v.XJ)())===o.Hy.SignedIn?p.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):p.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((t=>{t.value&&g.searchParams.set(t.key,t.value)}));try{yield(0,u.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const t=yield this.fetchImpl(g.href,y);if(t.status>=400){const e=`OneService returned error response. Status: ${t.status} for actionType: Follow, targetType: ${n}`;throw new Error(e)}return t.json()}))),"sortWatchList"),this.tryInvalidateBulkFetchedPdpTargetType(f.L.Finance)}catch(t){return!1}return!0}))}updateWeatherInterests(t,e,r,a={},s){return(0,i.mG)(this,void 0,void 0,(function*(){const e=f.L.Weather,i={method:"POST",body:JSON.stringify({actionType:"Follow",targetType:e,targetId:t,metadata:{UserAction:{0:{UpdateTime:new Date,Location:r}}}}),headers:yield this.getOneserviceHeaders(a),credentials:"include"},h=(0,c.PH)(this.pdpServiceEndpoint);((yield(0,v.XJ)())===o.Hy.SignedIn?p.$.getOneServiceParamsWithAuth(null!=s?s:(0,l.Yq)().UserId,this.ocid,!this.ocidOverride):p.$.getOneServiceParamsWithoutAuth(null!=s?s:(0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((t=>{t.value&&h.searchParams.set(t.key,t.value)}));try{const t=yield this.fetchImpl(h.href,i);if(t.status>=400){const e=`OneService returned error response. Status: ${t.status} for update weather interests call`;throw new Error(e)}}catch(t){return n.k.logError(t.message),!1}return!0}))}updateWeatherSettings(t,e,r={},n){return(0,i.mG)(this,void 0,void 0,(function*(){if(!t&&!e)return!0;let i="";i=t&&!e?'{"weatherDisplayUnit":"'+t+'"}':!t&&e?'{"userSettings":{"weatherLocationSettingMode":"'+e+'"}}':'{"weatherDisplayUnit":"'+t+'","userSettings":{"weatherLocationSettingMode":"'+e+'"}}';const a=yield this.getRequestInit({method:"POST"},r);a.body=i;const s=(0,c.PH)(this.userUpdateEndpoint);((yield(0,v.XJ)())===o.Hy.SignedIn?p.$.getOneServiceParamsWithAuth(null!=n?n:(0,l.Yq)().UserId,this.ocid,!this.ocidOverride):p.$.getOneServiceParamsWithoutAuth(null!=n?n:(0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((t=>{t.value&&s.searchParams.set(t.key,t.value)}));const h=yield this.fetchImpl(s.href,a);if(h.status>=400){const t=`OneService returned error response. Status: ${h.status} for update weather setting call`;throw new Error(t)}return!0}))}updateFinanceInterests(t){return(0,i.mG)(this,void 0,void 0,(function*(){if(!t)return!1;const e={financeInterests:t},r=JSON.stringify(e),i=yield this.getRequestInit({method:"POST"});i.body=r;const n=(0,c.PH)(this.userUpdateEndpoint),a="zh-cn"!==(0,l.Yq)().CurrentMarket;((yield(0,v.XJ)())===o.Hy.SignedIn&&a?p.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):p.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((t=>{t.value&&n.searchParams.set(t.key,t.value)}));const s=yield this.fetchImpl(n.href,i);if(s.status>=400){const t=`OneService returned error response. Status: ${s.status} for update finance interests call`;throw new Error(t)}return!0}))}updateUserSettings(t,e={},r){return(0,i.mG)(this,void 0,void 0,(function*(){if(!t)return!0;const i=[];let a;for(a in t)null!=t[a]&&i.push('"'+a+'": '+JSON.stringify(t[a]));const s='{"userSettings":{'+i.join(", ")+"}}",h=yield this.getRequestInit({method:"POST"},e);h.body=s;const u=(0,c.PH)(this.userUpdateEndpoint);((yield(0,v.XJ)())===o.Hy.SignedIn?p.$.getOneServiceParamsWithAuth(null!=r?r:(0,l.Yq)().UserId,this.ocid,!this.ocidOverride):p.$.getOneServiceParamsWithoutAuth(null!=r?r:(0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((t=>{t.value&&u.searchParams.set(t.key,t.value)}));try{const t=yield this.fetchImpl(u.href,h);if(t.status>=400){const e=`OneService returned error response. Status: ${t.status} for update weather setting call`;throw new Error(e)}}catch(t){return n.k.logError(t.message),!1}return!0}))}getPdpUserPreference(t,e={},r){return(0,i.mG)(this,void 0,void 0,(function*(){const a=yield this.getRequestInit({method:"GET"},e),s=(0,c.PH)(this.userUpdateEndpoint);[...(yield(0,v.XJ)())===o.Hy.SignedIn?p.$.getOneServiceParamsWithAuth(r||(0,l.Yq)().UserId,this.ocid,!this.ocidOverride):p.$.getOneServiceParamsWithoutAuth(r||(0,l.Yq)().UserId,this.ocid,!this.ocidOverride)].forEach((t=>{t.value&&s.searchParams.set(t.key,t.value)}));try{const t=yield(0,u.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const t=yield this.fetchImpl(s.href,a);if(!t.ok){if(t.status>=400&&t.status<500&&408!=t.status)return t;throw Error(t.statusText)}return t}))),"readPDPData");if(!t.ok&&404!=t.status)throw Error(`code=${t.status}, ${t.statusText}`);return Object.assign(Object.assign({},yield t.json()),{is404:404==t.status})}catch(e){if(n.k.logError(e.message),t)throw Error(e.message);return null}}))}updatePdpLayoutPreference(t){return(0,i.mG)(this,void 0,void 0,(function*(){const e={method:"PUT",credentials:"include",body:JSON.stringify({dummyid:{userLayoutPreference:t}})},r=(0,c.PH)(this.userUpdateEndpoint);((yield(0,v.XJ)())===o.Hy.SignedIn?p.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):p.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((t=>{t.value&&r.searchParams.set(t.key,t.value)}));try{const t=yield this.fetchImpl(r.href,e);if(t.status>=400){const e=`OneService returned error response. Status: ${t.status} for update layout preference setting call`;throw new Error(e)}}catch(t){return n.k.logError(t.message),!1}return!0}))}updateSegmentCardsEnableStatus(t,e=null){return(0,i.mG)(this,void 0,void 0,(function*(){if(!t&&!t.length)return!0;const r=[];if(e){let t;for(t in e)null!=e[t]&&r.push('"'+t+'": '+JSON.stringify(e[t]))}const i=t.map((t=>t.cardType!=d.f.TopStoriesCard?`\\"${t.cardType}\\":${t.enabled?'\\"1\\"':'\\"0\\"'}`:"")).join(","),n=r.length>0?'{"segmentCardSettings":"{'+i+'}","userSettings":{'+r.join(", ")+"}}":'{"segmentCardSettings":"{'+i+'}"}';return this.updateUserPreference(n)}))}updateProductivityCardsEnableStatus(t){return(0,i.mG)(this,void 0,void 0,(function*(){if(!t&&!t.length)return!0;const e=`{userSettings:{enterpriseCardsEnabled:"{${t.map((t=>`\\"is${t.cardType}Enabled\\":${t.enabled?"true":"false"}`)).join(",")}}"}}`;return this.updateUserPreference(e)}))}updateGamingCardsEnableStatus(t){return(0,i.mG)(this,void 0,void 0,(function*(){if(!t&&!t.length)return!0;const e=`{userSettings:{gamingCards:"{${t.map((t=>`\\"is${t.cardType}Enabled\\":${t.enabled?"true":"false"}`)).join(",")}}"}}`;return this.updateUserPreference(e)}))}updateCommunitySettingsOptOutStatus(t){return(0,i.mG)(this,void 0,void 0,(function*(){if(!t&&!t.length)return!0;const e={};t.forEach((t=>{e[t.settingType]=t.optedOut?"1":"0"}));const r={communitySettings:e};return this.updateUserPreference(JSON.stringify(r))}))}updateWidgetSettings(t,e={},r){return(0,i.mG)(this,void 0,void 0,(function*(){if(!t)return!1;const i=t.map((t=>({actionType:"Follow",targetId:t.cardType,targetType:f.L.Widget,metadata:{prongsv2:{region:t.region,size:m.m[t.size],position:t.position}}})));return this.sendGenericActionRequest({additionalHeaders:e,endpoint:this.pdpServiceEndpoint,method:"POST",payload:JSON.stringify(i),appError:r})}))}muteWidget(t,e={},r){return(0,i.mG)(this,void 0,void 0,(function*(){if(!t||!t.length)return!1;const i=t.map((t=>({actionType:"Mute",targetId:t,targetType:f.L.Widget})));return this.sendGenericActionRequest({additionalHeaders:e,endpoint:this.pdpServiceEndpoint,method:"POST",payload:JSON.stringify(i),appError:r})}))}disableSpotlightCard(t,e){return(0,i.mG)(this,void 0,void 0,(function*(){if(!t)return!1;const r={actionType:"Disabled",definitionName:t,targetType:f.L.TopicFeed};return this.sendGenericActionRequest({endpoint:this.pdpServiceEndpoint,method:"POST",payload:JSON.stringify(r),appError:e})}))}enableSpotlightCard(t,e){return(0,i.mG)(this,void 0,void 0,(function*(){return!!t&&(yield this.deleteFromPdp(f.L.TopicFeed,"definitionName",[t],{},void 0,"Disabled",e))}))}sendGenericActionRequest(t){return(0,i.mG)(this,void 0,void 0,(function*(){const{additionalHeaders:e,additionalParams:r,endpoint:n,method:a,payload:s,appError:h}=t;if(!n||!a)return this.logError(new Error("Missing arguments: 'endpoint' and 'method' should be provided and valid"),h),!1;const f=(0,c.PH)(n);let d;((yield(0,v.XJ)())===o.Hy.SignedIn?p.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):p.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((t=>{t.value&&f.searchParams.set(t.key,t.value)})),r&&r.forEach((t=>{t.value&&f.searchParams.set(t.key,t.value)}));try{JSON.parse(s),d=s}catch(t){d=JSON.stringify(s)}const m={method:a,body:d,headers:yield this.getOneserviceHeaders(e),credentials:"include"},y="GET"==a;try{return yield(0,u.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const t=yield this.fetchImpl(f.href,m);if(t.status>=400){const e=`OneService returned error response. Status: ${t.status} for payload: ${s}`;throw new Error(e)}return!y||(yield t.json())}))),"sendActions")}catch(t){return this.logError(t,h),!1}}))}getUserActions(t){return(0,i.mG)(this,void 0,void 0,(function*(){const e=[{key:"actionType",value:t}],r=yield this.sendGenericActionRequest({additionalParams:e,endpoint:this.userActionServiceEndPoint,method:"GET"});return r&&r.value}))}setUserAction(t,e){return(0,i.mG)(this,void 0,void 0,(function*(){return!!(yield this.sendGenericActionRequest({endpoint:this.userActionServiceEndPoint,method:"POST",payload:Object.assign({actionType:t},e)}))}))}deleteUserAction(t,e){return(0,i.mG)(this,void 0,void 0,(function*(){const r=[{key:"actionType",value:t},{key:"targetId",value:e.targetId},{key:"definitionName",value:e.definitionName}];return!!(yield this.sendGenericActionRequest({additionalParams:r,endpoint:this.userActionServiceEndPoint,method:"DELETE"}))}))}updateUserPreference(t){return(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.getRequestInit({method:"POST"});e.body=t;const r=(0,c.PH)(this.userUpdateEndpoint);((yield(0,v.XJ)())===o.Hy.SignedIn?p.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):p.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((t=>{t.value&&r.searchParams.set(t.key,t.value)}));try{const i=yield this.fetchImpl(r.href,e);if(i.status>=400){const e=`OneService returned error response while updating user preference. Status: ${i.status}, payload: ${t}`;throw new Error(e)}}catch(t){return!1}return!0}))}setPdpTargetTypesForBulkLoad(t){t&&t.length&&!this.bulkGraphActionTargetTypes&&(this.bulkGraphActionTargetTypes=t)}readPdpWithTargetType(t,e=!1,r,n={},s=!0,o=[]){return(0,i.mG)(this,void 0,void 0,(function*(){if(s){const e=yield this.getFromWebWorker(t);if(e)return e}if(this.bulkGraphActionTargetTypes&&this.bulkGraphActionTargetTypes.length)if(this.bulkGraphActionTargetTypes.indexOf(t)>=0){this.bulkGraphActionResultCache=this.bulkGraphActionResultCache||(yield this.bulkGraphActionPromise||(this.bulkGraphActionPromise=this.fetchPdpWithTargetTypes(this.bulkGraphActionTargetTypes,e,r,n,o)));const i=this.bulkGraphActionResultCache.get(t);if(i)return{value:i}}else y.M0.sendAppErrorEvent(Object.assign(Object.assign({},a.srQ),{message:`Received an unknown target type "${t}" that was not in the bulk graph action target types list "${this.bulkGraphActionTargetTypes}". Falling back to new network call. Please update the EntryPoint config's "graphActionsToBulkLoad" property to include this type.`}));const i=(yield this.fetchPdpWithTargetTypes([t],e,r,n,o)).get(t);if(i)return{value:i}}))}deleteFromPdp(t,e,r,n={},a,s="Follow",h,f=[]){return(0,i.mG)(this,void 0,void 0,(function*(){const d={method:"DELETE",headers:yield this.getOneserviceHeaders(n),credentials:"include"},m=(0,c.PH)(this.pdpServiceEndpoint),g=(yield(0,v.XJ)())===o.Hy.SignedIn?p.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):p.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride),b=`targetType eq '${t}'`,_=r.map((t=>`${e} eq '${t}'`)).join(" or ");let P=`actionType eq '${s}' and (${_}) and (${b})`;a&&(P+=` and (degree eq '${a}')`),m.searchParams.set("$filter",P),[...g,...f].forEach((t=>{t.value&&m.searchParams.set(t.key,t.value)}));try{yield(0,u.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(m.href,d);if(e.status>=400){const r=`OneService returned error response. Status: ${e.status} for actionType: ${s}, targetType: ${t}`;throw new Error(r)}return e}))),"deleteFromPdp"),this.tryInvalidateBulkFetchedPdpTargetType(t)}catch(t){return h&&y.M0.sendAppErrorEvent(Object.assign(Object.assign({},h),{pb:Object.assign(Object.assign({},h.pb),{actionType:s,error:t.message})})),!1}return!0}))}tryInvalidateBulkFetchedPdpTargetType(t){this.bulkGraphActionResultCache&&this.bulkGraphActionResultCache.delete(t)}fetchPdpWithTargetTypes(t,e=!1,r,n={},a=[]){return(0,i.mG)(this,void 0,void 0,(function*(){if(!t.length)return new Map;const s=t.map((t=>`targetType eq '${t}'`)).join(" or "),h=[{key:"$top",value:`${r=r||10*t.length*2}`},{key:"$filter",value:`actionType eq 'Follow' and (${s})`}],f=yield this.getRequestInit({method:"GET"},n);!0===e&&(f.cache="no-store");const d=(0,c.PH)(this.pdpServiceEndpoint);[...h,...(yield(0,v.XJ)())===o.Hy.SignedIn?p.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):p.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride),...a].forEach((t=>{t.value&&d.searchParams.set(t.key,t.value)}));const m=yield(0,u.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const t=yield this.fetchImpl(d.href,f);if(!t.ok){if(t.status>=400&&t.status<500&&408!=t.status)return t;throw Error(t.statusText)}return t}))),"readPDPData");if(!m.ok)throw Error(`code=${m.status}, ${m.statusText}`);const y=new Map,g=yield m.json();if(!g)return y;if(g.value)for(const t of g.value){let e=y.get(t.targetType);e||y.set(t.targetType,e=[]),e.push(t)}for(const e of t)y.get(e)||y.set(e,[]);return y}))}updateMarketPreference(t){return(0,i.mG)(this,void 0,void 0,(function*(){const e={method:"POST",credentials:"include",body:JSON.stringify({userSettings:{preferredMarket:t}})},r=(0,c.PH)(this.userUpdateEndpoint);((yield(0,v.XJ)())===o.Hy.SignedIn?p.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):p.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((t=>{t.value&&r.searchParams.set(t.key,t.value)}));try{const t=yield this.fetchImpl(r.href,e);if(!t.ok)throw new Error(`Failed to update market preference: Status: ${t.status}`);return!0}catch(t){return n.k.logError(t.message),!1}}))}getFromWebWorker(t){return(0,i.mG)(this,void 0,void 0,(function*(){let e=null;if(h.yb){const r=this.maptoWebWorkerId(t);if(r&&r.trim()){const r=yield(0,h.ot)({id:this.maptoWebWorkerId(t)});r.fetched&&(e=r.payload)}}return e}))}maptoWebWorkerId(t){switch(t){case f.L.Location:return"weatherpdp";case f.L.League:return"sportsleaguepdp";case f.L.Player:return"sportsplayerpdp";case f.L.Team:return"sportsteampdp";case f.L.Finance:return"moneypdp";default:return""}}getRequestInit(t={method:"GET"},e={}){return(0,i.mG)(this,void 0,void 0,(function*(){const r=yield p.$.getOneServiceHeaders();return t.headers=Object.assign(Object.assign({},r),e),t.credentials="include",t}))}getOneserviceHeaders(t={}){return(0,i.mG)(this,void 0,void 0,(function*(){const e=yield p.$.getOneServiceHeaders();return Object.assign(Object.assign({},e),t)}))}getFollowedLists(){return(0,i.mG)(this,void 0,void 0,(function*(){const t=yield this.getRequestInit({method:"GET"}),e=(0,c.PH)(this.userUpdateEndpoint);[...(yield(0,v.XJ)())===o.Hy.SignedIn?p.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):p.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)].forEach((t=>{t.value&&e.searchParams.set(t.key,t.value)}));try{const r=yield(0,u.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const r=yield this.fetchImpl(e.href,t);if(!r.ok){if(r.status>=400&&r.status<500&&408!=r.status)return r;(0,s.OO)(null,a.G9t,"Error get followed list")}return r}))),"getFollowedLists");return r.ok||(0,s.OO)(null,a.G9t,"Error get followed list"),yield r.json()}catch(t){return n.k.logError(t.message),null}}))}addToFollowedLists(t){return(0,i.mG)(this,void 0,void 0,(function*(){const e=f.L.Finance,r={method:"POST",body:JSON.stringify({financeListIds:t}),headers:yield p.$.getOneServiceHeaders(),credentials:"include"},n=(0,c.PH)(this.userUpdateEndpoint);let a;((yield(0,v.XJ)())===o.Hy.SignedIn?p.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):p.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((t=>{t.value&&n.searchParams.set(t.key,t.value)}));try{a=yield(0,u.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const t=yield this.fetchImpl(n.href,r);if(t.status>=400){const r=`OneService returned error response. Status: ${t.status} for actionType: FollowList, targetType: ${e}`;throw new Error(r)}return t.json()}))),"addToFollowedLists")}catch(t){return!1}return!0}))}deleteFromFollowedLists(t){return(0,i.mG)(this,void 0,void 0,(function*(){const e=f.L.Finance,r={method:"DELETE",body:null,headers:yield p.$.getOneServiceHeaders(),credentials:"include"},n=(0,c.PH)(this.userUpdateEndpoint);let a;[...(yield(0,v.XJ)())===o.Hy.SignedIn?p.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):p.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride),...[{key:"financeListIds",value:t.toString()}]].forEach((t=>{t.value&&n.searchParams.set(t.key,t.value)}));try{a=yield(0,u.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const t=yield this.fetchImpl(n.href,r);if(t.status>=400){const r=`OneService returned error response. Status: ${t.status} for actionType: UnFollowList, targetType: ${e}`;throw new Error(r)}return t.json()}))),"deleteFromFollowedLists")}catch(t){return!1}return!0}))}logError(t,e){e?y.M0.sendAppErrorEvent(Object.assign(Object.assign({},e),{pb:Object.assign(Object.assign({},e.pb),{error:t.message})})):n.k.logError(t.message)}}{constructor(){super((0,g.N)()?window.fetch.bind(window):fetch),"windowsNewsPlus"===l.jG.AppType||"newsAndInterests"===l.jG.AppType||"winWidgets"===l.jG.AppType?(this.ocid="winp2",this.ocidOverride=!0):"sharedWidgets"===l.jG.AppType?(this.ocid="hpwidget",this.ocidOverride=!0):"windowsNewsbar"===l.jG.AppType?(this.ocid="winp0dash",this.ocidOverride=!0):"travel"===l.jG.AppType?(this.ocid="travel-verthp-feeds",this.ocidOverride=!0):"gaming"===l.jG.AppType&&(this.ocid="startgg-feeds",this.ocidOverride=!0)}}},69300:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function _asyncIterator(t){var e,r,i,n=2;for("undefined"!=typeof Symbol&&(r=Symbol.asyncIterator,i=Symbol.iterator);n--;){if(r&&null!=(e=t[r]))return e.call(t);if(i&&null!=(e=t[i]))return new AsyncFromSyncIterator(e.call(t));r="@@asyncIterator",i="@@iterator"}throw new TypeError("Object is not async iterable")}function AsyncFromSyncIterator(t){function e(t){if(Object(t)!==t)return Promise.reject(new TypeError(t+" is not an object."));var e=t.done;return Promise.resolve(t.value).then((function(t){return{value:t,done:e}}))}return AsyncFromSyncIterator=function(t){this.s=t,this.n=t.next},AsyncFromSyncIterator.prototype={s:null,n:null,next:function(){return e(this.n.apply(this.s,arguments))},return:function(t){var r=this.s.return;return void 0===r?Promise.resolve({value:t,done:!0}):e(r.apply(this.s,arguments))},throw:function(t){var r=this.s.return;return void 0===r?Promise.reject(t):e(r.apply(this.s,arguments))}},new AsyncFromSyncIterator(t)}var REACT_ELEMENT_TYPE;function _jsx(t,e,r,i){REACT_ELEMENT_TYPE||(REACT_ELEMENT_TYPE="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var n=t&&t.defaultProps,a=arguments.length-3;if(e||0===a||(e={children:void 0}),1===a)e.children=i;else if(a>1){for(var s=new Array(a),o=0;o<a;o++)s[o]=arguments[o+3];e.children=s}if(e&&n)for(var l in n)void 0===e[l]&&(e[l]=n[l]);else e||(e=n||{});return{$$typeof:REACT_ELEMENT_TYPE,type:t,key:void 0===r?null:""+r,ref:null,props:e,_owner:null}}function ownKeys(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function _objectSpread2(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(r),!0).forEach((function(e){_defineProperty(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}function _wrapRegExp(){_wrapRegExp=function(t,e){return new r(t,void 0,e)};var t=RegExp.prototype,e=new WeakMap;function r(t,i,n){var a=new RegExp(t,i);return e.set(a,n||e.get(t)),_setPrototypeOf(a,r.prototype)}function i(t,r){var i=e.get(r);return Object.keys(i).reduce((function(e,r){return e[r]=t[i[r]],e}),Object.create(null))}return _inherits(r,RegExp),r.prototype.exec=function(e){var r=t.exec.call(this,e);return r&&(r.groups=i(r,this)),r},r.prototype[Symbol.replace]=function(r,n){if("string"==typeof n){var a=e.get(this);return t[Symbol.replace].call(this,r,n.replace(/\$<([^>]+)>/g,(function(t,e){return"$"+a[e]})))}if("function"==typeof n){var s=this;return t[Symbol.replace].call(this,r,(function(){var t=arguments;return"object"!=typeof t[t.length-1]&&(t=[].slice.call(t)).push(i(t,s)),n.apply(this,t)}))}return t[Symbol.replace].call(this,r,n)},_wrapRegExp.apply(this,arguments)}function _AwaitValue(t){this.wrapped=t}function _AsyncGenerator(t){var e,r;function i(e,r){try{var a=t[e](r),s=a.value,o=s instanceof _AwaitValue;Promise.resolve(o?s.wrapped:s).then((function(t){o?i("return"===e?"return":"next",t):n(a.done?"return":"normal",t)}),(function(t){i("throw",t)}))}catch(t){n("throw",t)}}function n(t,n){switch(t){case"return":e.resolve({value:n,done:!0});break;case"throw":e.reject(n);break;default:e.resolve({value:n,done:!1})}(e=e.next)?i(e.key,e.arg):r=null}this._invoke=function(t,n){return new Promise((function(a,s){var o={key:t,arg:n,resolve:a,reject:s,next:null};r?r=r.next=o:(e=r=o,i(t,n))}))},"function"!=typeof t.return&&(this.return=void 0)}function _wrapAsyncGenerator(t){return function(){return new _AsyncGenerator(t.apply(this,arguments))}}function _awaitAsyncGenerator(t){return new _AwaitValue(t)}function _asyncGeneratorDelegate(t,e){var r={},i=!1;function n(r,n){return i=!0,n=new Promise((function(e){e(t[r](n))})),{done:!1,value:e(n)}}return r["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},r.next=function(t){return i?(i=!1,t):n("next",t)},"function"==typeof t.throw&&(r.throw=function(t){if(i)throw i=!1,t;return n("throw",t)}),"function"==typeof t.return&&(r.return=function(t){return i?(i=!1,t):n("return",t)}),r}function asyncGeneratorStep(t,e,r,i,n,a,s){try{var o=t[a](s),l=o.value}catch(t){return void r(t)}o.done?e(l):Promise.resolve(l).then(i,n)}function _asyncToGenerator(t){return function(){var e=this,r=arguments;return new Promise((function(i,n){var a=t.apply(e,r);function s(t){asyncGeneratorStep(a,i,n,s,o,"next",t)}function o(t){asyncGeneratorStep(a,i,n,s,o,"throw",t)}s(void 0)}))}}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _createClass(t,e,r){return e&&_defineProperties(t.prototype,e),r&&_defineProperties(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function _defineEnumerableProperties(t,e){for(var r in e)(a=e[r]).configurable=a.enumerable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,r,a);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),n=0;n<i.length;n++){var a,s=i[n];(a=e[s]).configurable=a.enumerable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,s,a)}return t}function _defaults(t,e){for(var r=Object.getOwnPropertyNames(e),i=0;i<r.length;i++){var n=r[i],a=Object.getOwnPropertyDescriptor(e,n);a&&a.configurable&&void 0===t[n]&&Object.defineProperty(t,n,a)}return t}function _defineProperty(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _extends(){return _extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},_extends.apply(this,arguments)}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?Object(arguments[e]):{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&i.push.apply(i,Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),i.forEach((function(e){_defineProperty(t,e,r[e])}))}return t}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e)}function _inheritsLoose(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,_setPrototypeOf(t,e)}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf(t)}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},_setPrototypeOf(t,e)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function _construct(t,e,r){return _construct=_isNativeReflectConstruct()?Reflect.construct:function(t,e,r){var i=[null];i.push.apply(i,e);var n=new(Function.bind.apply(t,i));return r&&_setPrototypeOf(n,r.prototype),n},_construct.apply(null,arguments)}function _isNativeFunction(t){return-1!==Function.toString.call(t).indexOf("[native code]")}function _wrapNativeSuper(t){var e="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return _construct(t,arguments,_getPrototypeOf(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(r,t)},_wrapNativeSuper(t)}function _instanceof(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(_getRequireWildcardCache=function(t){return t?r:e})(t)}function _interopRequireWildcard(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var r=_getRequireWildcardCache(e);if(r&&r.has(t))return r.get(t);var i={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var s=n?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(i,a,s):i[a]=t[a]}return i.default=t,r&&r.set(t,i),i}function _newArrowCheck(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}function _objectDestructuringEmpty(t){if(null==t)throw new TypeError("Cannot destructure undefined")}function _objectWithoutPropertiesLoose(t,e){if(null==t)return{};var r,i,n={},a=Object.keys(t);for(i=0;i<a.length;i++)r=a[i],e.indexOf(r)>=0||(n[r]=t[r]);return n}function _objectWithoutProperties(t,e){if(null==t)return{};var r,i,n=_objectWithoutPropertiesLoose(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _possibleConstructorReturn(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var r,i=_getPrototypeOf(t);if(e){var n=_getPrototypeOf(this).constructor;r=Reflect.construct(i,arguments,n)}else r=i.apply(this,arguments);return _possibleConstructorReturn(this,r)}}function _superPropBase(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_getPrototypeOf(t)););return t}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var i=_superPropBase(t,e);if(i){var n=Object.getOwnPropertyDescriptor(i,e);return n.get?n.get.call(arguments.length<3?t:r):n.value}},_get.apply(this,arguments)}function set(t,e,r,i){return set="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(t,e,r,i){var n,a=_superPropBase(t,e);if(a){if((n=Object.getOwnPropertyDescriptor(a,e)).set)return n.set.call(i,r),!0;if(!n.writable)return!1}if(n=Object.getOwnPropertyDescriptor(i,e)){if(!n.writable)return!1;n.value=r,Object.defineProperty(i,e,n)}else _defineProperty(i,e,r);return!0},set(t,e,r,i)}function _set(t,e,r,i,n){if(!set(t,e,r,i||t)&&n)throw new Error("failed to set property");return r}function _taggedTemplateLiteral(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function _taggedTemplateLiteralLoose(t,e){return e||(e=t.slice(0)),t.raw=e,t}function _readOnlyError(t){throw new TypeError('"'+t+'" is read-only')}function _writeOnlyError(t){throw new TypeError('"'+t+'" is write-only')}function _classNameTDZError(t){throw new Error('Class "'+t+'" cannot be referenced in computed property keys.')}function _temporalUndefined(){}function _tdz(t){throw new ReferenceError(t+" is not defined - temporal dead zone")}function _temporalRef(t,e){return t===_temporalUndefined?_tdz(e):t}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _slicedToArrayLoose(t,e){return _arrayWithHoles(t)||_iterableToArrayLimitLoose(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _toArray(t){return _arrayWithHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableRest()}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _maybeArrayLike(t,e,r){if(e&&!Array.isArray(e)&&"number"==typeof e.length){var i=e.length;return _arrayLikeToArray(e,void 0!==r&&r<i?r:i)}return t(e,r)}function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function _iterableToArrayLimit(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var i,n,a=[],s=!0,o=!1;try{for(r=r.call(t);!(s=(i=r.next()).done)&&(a.push(i.value),!e||a.length!==e);s=!0);}catch(t){o=!0,n=t}finally{try{s||null==r.return||r.return()}finally{if(o)throw n}}return a}}function _iterableToArrayLimitLoose(t,e){var r=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=r){var i=[];for(r=r.call(t),_step;!(_step=r.next()).done&&(i.push(_step.value),!e||i.length!==e););return i}}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _createForOfIteratorHelper(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=_unsupportedIterableToArray(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var i=0,n=function(){};return{s:n,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){o=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(o)throw a}}}}function _createForOfIteratorHelperLoose(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=_unsupportedIterableToArray(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _skipFirstGeneratorNext(t){return function(){var e=t.apply(this,arguments);return e.next(),e}}function _toPrimitive(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function _toPropertyKey(t){var e=_toPrimitive(t,"string");return"symbol"==typeof e?e:String(e)}function _initializerWarningHelper(t,e){throw new Error("Decorating class property failed. Please ensure that proposal-class-properties is enabled and runs after the decorators transform.")}function _initializerDefineProperty(t,e,r,i){r&&Object.defineProperty(t,e,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function _applyDecoratedDescriptor(t,e,r,i,n){var a={};return Object.keys(i).forEach((function(t){a[t]=i[t]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=r.slice().reverse().reduce((function(r,i){return i(t,e,r)||r}),a),n&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(n):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(t,e,a),a=null),a}_AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},_AsyncGenerator.prototype.next=function(t){return this._invoke("next",t)},_AsyncGenerator.prototype.throw=function(t){return this._invoke("throw",t)},_AsyncGenerator.prototype.return=function(t){return this._invoke("return",t)};var id=0;function _classPrivateFieldLooseKey(t){return"__private_"+id+++"_"+t}function _classPrivateFieldLooseBase(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}function _classPrivateFieldGet(t,e){return _classApplyDescriptorGet(t,_classExtractFieldDescriptor(t,e,"get"))}function _classPrivateFieldSet(t,e,r){return _classApplyDescriptorSet(t,_classExtractFieldDescriptor(t,e,"set"),r),r}function _classPrivateFieldDestructureSet(t,e){return _classApplyDescriptorDestructureSet(t,_classExtractFieldDescriptor(t,e,"set"))}function _classExtractFieldDescriptor(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function _classStaticPrivateFieldSpecGet(t,e,r){return _classCheckPrivateStaticAccess(t,e),_classCheckPrivateStaticFieldDescriptor(r,"get"),_classApplyDescriptorGet(t,r)}function _classStaticPrivateFieldSpecSet(t,e,r,i){return _classCheckPrivateStaticAccess(t,e),_classCheckPrivateStaticFieldDescriptor(r,"set"),_classApplyDescriptorSet(t,r,i),i}function _classStaticPrivateMethodGet(t,e,r){return _classCheckPrivateStaticAccess(t,e),r}function _classStaticPrivateMethodSet(){throw new TypeError("attempted to set read only static private field")}function _classApplyDescriptorGet(t,e){return e.get?e.get.call(t):e.value}function _classApplyDescriptorSet(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}function _classApplyDescriptorDestructureSet(t,e){if(e.set)return"__destrObj"in e||(e.__destrObj={set value(r){e.set.call(t,r)}}),e.__destrObj;if(!e.writable)throw new TypeError("attempted to set read only private field");return e}function _classStaticPrivateFieldDestructureSet(t,e,r){return _classCheckPrivateStaticAccess(t,e),_classCheckPrivateStaticFieldDescriptor(r,"set"),_classApplyDescriptorDestructureSet(t,r)}function _classCheckPrivateStaticAccess(t,e){if(t!==e)throw new TypeError("Private static access of wrong provenance")}function _classCheckPrivateStaticFieldDescriptor(t,e){if(void 0===t)throw new TypeError("attempted to "+e+" private static field before its declaration")}function _decorate(t,e,r,i){var n=_getDecoratorsApi();if(i)for(var a=0;a<i.length;a++)n=i[a](n);var s=e((function(t){n.initializeInstanceElements(t,o.elements)}),r),o=n.decorateClass(_coalesceClassElements(s.d.map(_createElementDescriptor)),t);return n.initializeClassElements(s.F,o.elements),n.runClassFinishers(s.F,o.finishers)}function _getDecoratorsApi(){_getDecoratorsApi=function(){return t};var t={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(t,e){["method","field"].forEach((function(r){e.forEach((function(e){e.kind===r&&"own"===e.placement&&this.defineClassElement(t,e)}),this)}),this)},initializeClassElements:function(t,e){var r=t.prototype;["method","field"].forEach((function(i){e.forEach((function(e){var n=e.placement;if(e.kind===i&&("static"===n||"prototype"===n)){var a="static"===n?t:r;this.defineClassElement(a,e)}}),this)}),this)},defineClassElement:function(t,e){var r=e.descriptor;if("field"===e.kind){var i=e.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===i?void 0:i.call(t)}}Object.defineProperty(t,e.key,r)},decorateClass:function(t,e){var r=[],i=[],n={static:[],prototype:[],own:[]};if(t.forEach((function(t){this.addElementPlacement(t,n)}),this),t.forEach((function(t){if(!_hasDecorators(t))return r.push(t);var e=this.decorateElement(t,n);r.push(e.element),r.push.apply(r,e.extras),i.push.apply(i,e.finishers)}),this),!e)return{elements:r,finishers:i};var a=this.decorateConstructor(r,e);return i.push.apply(i,a.finishers),a.finishers=i,a},addElementPlacement:function(t,e,r){var i=e[t.placement];if(!r&&-1!==i.indexOf(t.key))throw new TypeError("Duplicated element ("+t.key+")");i.push(t.key)},decorateElement:function(t,e){for(var r=[],i=[],n=t.decorators,a=n.length-1;a>=0;a--){var s=e[t.placement];s.splice(s.indexOf(t.key),1);var o=this.fromElementDescriptor(t),l=this.toElementFinisherExtras((0,n[a])(o)||o);t=l.element,this.addElementPlacement(t,e),l.finisher&&i.push(l.finisher);var h=l.extras;if(h){for(var p=0;p<h.length;p++)this.addElementPlacement(h[p],e);r.push.apply(r,h)}}return{element:t,finishers:i,extras:r}},decorateConstructor:function(t,e){for(var r=[],i=e.length-1;i>=0;i--){var n=this.fromClassDescriptor(t),a=this.toClassDescriptor((0,e[i])(n)||n);if(void 0!==a.finisher&&r.push(a.finisher),void 0!==a.elements){t=a.elements;for(var s=0;s<t.length-1;s++)for(var o=s+1;o<t.length;o++)if(t[s].key===t[o].key&&t[s].placement===t[o].placement)throw new TypeError("Duplicated element ("+t[s].key+")")}}return{elements:t,finishers:r}},fromElementDescriptor:function(t){var e={kind:t.kind,key:t.key,placement:t.placement,descriptor:t.descriptor};return Object.defineProperty(e,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===t.kind&&(e.initializer=t.initializer),e},toElementDescriptors:function(t){if(void 0!==t)return _toArray(t).map((function(t){var e=this.toElementDescriptor(t);return this.disallowProperty(t,"finisher","An element descriptor"),this.disallowProperty(t,"extras","An element descriptor"),e}),this)},toElementDescriptor:function(t){var e=String(t.kind);if("method"!==e&&"field"!==e)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+e+'"');var r=_toPropertyKey(t.key),i=String(t.placement);if("static"!==i&&"prototype"!==i&&"own"!==i)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+i+'"');var n=t.descriptor;this.disallowProperty(t,"elements","An element descriptor");var a={kind:e,key:r,placement:i,descriptor:Object.assign({},n)};return"field"!==e?this.disallowProperty(t,"initializer","A method descriptor"):(this.disallowProperty(n,"get","The property descriptor of a field descriptor"),this.disallowProperty(n,"set","The property descriptor of a field descriptor"),this.disallowProperty(n,"value","The property descriptor of a field descriptor"),a.initializer=t.initializer),a},toElementFinisherExtras:function(t){return{element:this.toElementDescriptor(t),finisher:_optionalCallableProperty(t,"finisher"),extras:this.toElementDescriptors(t.extras)}},fromClassDescriptor:function(t){var e={kind:"class",elements:t.map(this.fromElementDescriptor,this)};return Object.defineProperty(e,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),e},toClassDescriptor:function(t){var e=String(t.kind);if("class"!==e)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+e+'"');this.disallowProperty(t,"key","A class descriptor"),this.disallowProperty(t,"placement","A class descriptor"),this.disallowProperty(t,"descriptor","A class descriptor"),this.disallowProperty(t,"initializer","A class descriptor"),this.disallowProperty(t,"extras","A class descriptor");var r=_optionalCallableProperty(t,"finisher");return{elements:this.toElementDescriptors(t.elements),finisher:r}},runClassFinishers:function(t,e){for(var r=0;r<e.length;r++){var i=(0,e[r])(t);if(void 0!==i){if("function"!=typeof i)throw new TypeError("Finishers must return a constructor.");t=i}}return t},disallowProperty:function(t,e,r){if(void 0!==t[e])throw new TypeError(r+" can't have a ."+e+" property.")}};return t}function _createElementDescriptor(t){var e,r=_toPropertyKey(t.key);"method"===t.kind?e={value:t.value,writable:!0,configurable:!0,enumerable:!1}:"get"===t.kind?e={get:t.value,configurable:!0,enumerable:!1}:"set"===t.kind?e={set:t.value,configurable:!0,enumerable:!1}:"field"===t.kind&&(e={configurable:!0,writable:!0,enumerable:!0});var i={kind:"field"===t.kind?"field":"method",key:r,placement:t.static?"static":"field"===t.kind?"own":"prototype",descriptor:e};return t.decorators&&(i.decorators=t.decorators),"field"===t.kind&&(i.initializer=t.value),i}function _coalesceGetterSetter(t,e){void 0!==t.descriptor.get?e.descriptor.get=t.descriptor.get:e.descriptor.set=t.descriptor.set}function _coalesceClassElements(t){for(var e=[],r=function(t){return"method"===t.kind&&t.key===a.key&&t.placement===a.placement},i=0;i<t.length;i++){var n,a=t[i];if("method"===a.kind&&(n=e.find(r)))if(_isDataDescriptor(a.descriptor)||_isDataDescriptor(n.descriptor)){if(_hasDecorators(a)||_hasDecorators(n))throw new ReferenceError("Duplicated methods ("+a.key+") can't be decorated.");n.descriptor=a.descriptor}else{if(_hasDecorators(a)){if(_hasDecorators(n))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+a.key+").");n.decorators=a.decorators}_coalesceGetterSetter(a,n)}else e.push(a)}return e}function _hasDecorators(t){return t.decorators&&t.decorators.length}function _isDataDescriptor(t){return void 0!==t&&!(void 0===t.value&&void 0===t.writable)}function _optionalCallableProperty(t,e){var r=t[e];if(void 0!==r&&"function"!=typeof r)throw new TypeError("Expected '"+e+"' to be a function");return r}function _classPrivateMethodGet(t,e,r){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return r}function _checkPrivateRedeclaration(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _classPrivateFieldInitSpec(t,e,r){_checkPrivateRedeclaration(t,e),e.set(t,r)}function _classPrivateMethodInitSpec(t,e){_checkPrivateRedeclaration(t,e),e.add(t)}function _classPrivateMethodSet(){throw new TypeError("attempted to reassign private method")}var _extendStatics=function(t,e){return _extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},_extendStatics(t,e)};function __extends(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}_extendStatics(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var _assign=function(){return _assign=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},_assign.apply(this,arguments)};function __rest(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(t);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(t,i[n])&&(r[i[n]]=t[i[n]])}return r}function __decorate(t,e,r,i){var n,a=arguments.length,s=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,i);else for(var o=t.length-1;o>=0;o--)(n=t[o])&&(s=(a<3?n(s):a>3?n(e,r,s):n(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s}function __param(t,e){return function(r,i){e(r,i,t)}}function __metadata(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function __awaiter(t,e,r,i){return new(r||(r=Promise))((function(n,a){function s(t){try{l(i.next(t))}catch(t){a(t)}}function o(t){try{l(i.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?n(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,o)}l((i=i.apply(t,e||[])).next())}))}function __generator(t,e){var r,i,n,a,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(a){return function(o){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,i&&(n=2&a[0]?i.return:a[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,a[1])).done)return n;switch(i=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,i=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((n=(n=s.trys).length>0&&n[n.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]<n[3])){s.label=a[1];break}if(6===a[0]&&s.label<n[1]){s.label=n[1],n=a;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(a);break}n[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],i=0}finally{r=n=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,o])}}}var __createBinding=Object.create?function(t,e,r,i){void 0===i&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){void 0===i&&(i=r),t[i]=e[r]};function __exportStar(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||__createBinding(e,t,r)}function __values(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var i,n,a=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=a.next()).done;)s.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return s}function __spread(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(__read(arguments[e]));return t}function __spreadArrays(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var i=Array(t),n=0;for(e=0;e<r;e++)for(var a=arguments[e],s=0,o=a.length;s<o;s++,n++)i[n]=a[s];return i}function __spreadArray(t,e,r){if(r||2===arguments.length)for(var i,n=0,a=e.length;n<a;n++)!i&&n in e||(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))}function __await(t){return this instanceof __await?(this.v=t,this):new __await(t)}function __asyncGenerator(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,n=r.apply(t,e||[]),a=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(t){n[t]&&(i[t]=function(e){return new Promise((function(r,i){a.push([t,e,r,i])>1||o(t,e)}))})}function o(t,e){try{!function(t){t.value instanceof __await?Promise.resolve(t.value.v).then(l,h):p(a[0][2],t)}(n[t](e))}catch(t){p(a[0][3],t)}}function l(t){o("next",t)}function h(t){o("throw",t)}function p(t,e){t(e),a.shift(),a.length&&o(a[0][0],a[0][1])}}function __asyncDelegator(t){var e,r;return e={},i("next"),i("throw",(function(t){throw t})),i("return"),e[Symbol.iterator]=function(){return this},e;function i(i,n){e[i]=t[i]?function(e){return(r=!r)?{value:__await(t[i](e)),done:"return"===i}:n?n(e):e}:n}}function __asyncValues(t){if(!Symbol.asyncIterator)throw new TypeError("SymbolPython（派森）语言是一种功能强大而完善的通用型计算机程序设计语言，
已经具有十多年的发展历史，成熟且稳定。这种语言具有非常简捷而清晰
的语法特点，适合完成各种高层任务，几乎可以在所有的操作系统中
运行。这种语言简单而强大，适合各种人士学习使用。目前，基于这
种语言的相关技术正在飞速的发展，用户数量急剧扩大，相关的资源非常多。
如何在 Python 中使用既有的 C library?
　在資訊科技快速發展的今天, 開發及測試軟體的速度是不容忽視的
課題. 為加快開發及測試的速度, 我們便常希望能利用一些已開發好的
library, 並有一個 fast prototyping 的 programming language 可
供使用. 目前有許許多多的 library 是以 C 寫成, 而 Python 是一個
fast prototyping 的 programming language. 故我們希望能將既有的
C library 拿到 Python 的環境中測試及整合. 其中最主要也是我們所
要討論的問題就是:

