From aa42110b0fefa93006970b6a96a26716b6c3db1c Mon Sep 17 00:00:00 2001 From: scottqueen-bixal Date: Mon, 4 Nov 2024 12:56:26 -0500 Subject: [PATCH 01/11] latest compiled app JS/CSS --- .../css/benefit-finder.min.css | 2 +- .../js/benefit-finder.min.js | 63 +++++++++++++------ 2 files changed, 46 insertions(+), 19 deletions(-) diff --git a/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_app/usagov_benefit_finder_page/css/benefit-finder.min.css b/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_app/usagov_benefit_finder_page/css/benefit-finder.min.css index 9c1cca09a8..37d45915f1 100644 --- a/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_app/usagov_benefit_finder_page/css/benefit-finder.min.css +++ b/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_app/usagov_benefit_finder_page/css/benefit-finder.min.css @@ -1 +1 @@ -@charset "UTF-8";#benefit-finder .no-background{background-color:#fff;border-left-color:#fff}#benefit-finder h2.bf-usa-alert__heading{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.3125rem;font-style:normal;font-weight:700;line-height:117.4%}#benefit-finder .bf-errors-list-item a{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.0625rem;font-style:normal;font-weight:400;line-height:132%}#benefit-finder .bf-usa-accordion .bf-usa-accordion__button{position:relative}#benefit-finder .bf-usa-accordion .bf-usa-accordion__button svg{position:absolute;top:0;bottom:0;right:1.25rem;margin:auto 0}#benefit-finder .bf-usa-accordion .bf-usa-accordion__button .bf-accordion-heading{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.3125rem;font-style:normal;font-weight:700;line-height:117.4%;letter-spacing:0}#benefit-finder .bf-usa-accordion .bf-usa-accordion__button .bf-accordion-sub-heading{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.0625rem;font-style:normal;font-weight:400;line-height:132%;letter-spacing:0}#benefit-finder .bf-usa-accordion .bf-usa-accordion__content{padding:0 2.5rem 1rem}#benefit-finder .bf-usa-accordion-group .bf-usa-accordion{margin-bottom:.75rem}#benefit-finder .bf-usa-accordion-group .bf-usa-accordion .bf-usa-detail-title{margin-bottom:.5rem}#benefit-finder .bf-usa-accordion-group .bf-usa-accordion .bf-usa-detail-summary p{margin-bottom:1.5rem}#benefit-finder .bf-usa-accordion-group .bf-usa-accordion .bf-key-eligibility-criteria-heading{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.3125rem;font-style:normal;font-weight:700;line-height:117.4%}#benefit-finder .bf-usa-accordion-group .bf-usa-accordion .bf-usa-accordion-group-cta-wrapper{display:flex;justify-content:center;margin-top:2rem}#benefit-finder .bf-usa-accordion-group .bf-usa-accordion .bf-usa-accordion-group-cta-wrapper .bf-usa-link{margin-bottom:1rem}#benefit-finder .bf-usa-accordion-group .bf-expand-all{margin-bottom:2rem}#benefit-finder .bf-usa-button{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.0625rem;font-style:normal;font-weight:400;line-height:132%;font-weight:700;padding:1rem 1.25rem;font-size:1.1rem}#benefit-finder .bf-usa-button--outline{background-color:transparent;box-shadow:inset 0 0 0 .125rem #000;color:#000}#benefit-finder .bf-usa-button--outline:focus{box-shadow:inset 0 0 0 .125rem #fff}#benefit-finder .bf-usa-button--outline:hover{background-color:#f0f0f0}#benefit-finder .bf-usa-card--relative-benefit{margin-bottom:1rem}#benefit-finder .bf-usa-card--relative-benefit .bf-usa-card__container{border-radius:0;border:.125rem solid #0081a1;color:#162e51;height:auto;margin:0}#benefit-finder .bf-usa-card--relative-benefit a{text-decoration:none}#benefit-finder .bf-usa-card--relative-benefit a:hover.bf-usa-card__container{background-color:#ccecf2}#benefit-finder .bf-usa-card--relative-benefit a:active.bf-usa-card__container{border:.125rem solid #0081a1}#benefit-finder .bf-usa-card--relative-benefit.bf-card-icon .bf-relative-icon svg{margin:auto 0;position:absolute;top:0;bottom:0;left:1rem;width:4.375rem;height:4.375rem;padding:.75rem}#benefit-finder .bf-usa-card--relative-benefit.bf-card-icon .bf-usa-card__container{padding:0 2.5rem 0 5.375rem}#benefit-finder .bf-usa-card--relative-benefit .bf-usa-card__header{padding-bottom:0}#benefit-finder .bf-usa-card--relative-benefit h3.bf-usa-card__heading{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.3125rem;font-style:normal;font-weight:400;line-height:145.4%;font-weight:700;text-decoration:underline}#benefit-finder .bf-usa-card--relative-benefit .bf-usa-card__body{display:none}#benefit-finder .bf-usa-card--relative-benefit .bf-usa-card__cta,.bf-usa-card--relative-benefit .bf-usa-card__body{padding:1.5rem;padding-top:0;margin-top:0;margin-bottom:0}@media (width >= 65.5625rem){#benefit-finder .bf-usa-card--relative-benefit .bf-usa-card__body{display:block;padding-top:0;padding-bottom:1.5rem;margin-top:0;margin-bottom:0}#benefit-finder .bf-usa-card--relative-benefit .bf-usa-card__body p{max-width:90%}#benefit-finder .bf-usa-card--relative-benefit .bf-usa-card__cta{display:none}}#benefit-finder h1.bf-chevron-heading{font-family:Merriweather Web,Georgia,Cambria,Times New Roman,Times,serif;font-size:2.4375rem;font-style:normal;font-weight:900;line-height:117.4%;letter-spacing:-.39px}#benefit-finder .bf-chevron{position:relative;background-color:#162e51;padding:4rem 2rem 2.375rem;margin:0 auto;color:#fff;margin-bottom:8.75rem}#benefit-finder .bf-chevron-description p{font-family:Merriweather Web,Georgia,Cambria,Times New Roman,Times,serif;font-size:1.3125rem;font-style:normal;font-weight:400;line-height:164%}#benefit-finder .bf-chevron:before{content:"";position:absolute;top:100%;left:0;border-top:4.75rem solid #162e51;border-left:50vw solid transparent;border-right:50vw solid transparent}@media (width >= 65.5625rem){#benefit-finder .bf-chevron{padding-bottom:4rem;margin-bottom:4rem}#benefit-finder .bf-chevron:before{display:none}}#benefit-finder .bf-usa-form-group{width:100%}#benefit-finder .bf-usa-memorable-date{max-width:20rem;flex-wrap:wrap}#benefit-finder .bf-usa-input.usa-input--error{padding:.5rem;height:initial;border-color:#b50909}#benefit-finder .bf-usa-form-group--month{width:15.125rem;margin-top:.5rem}#benefit-finder .bf-usa-form-group--day{width:4rem;margin-top:.5rem}#benefit-finder .bf-usa-form-group--year{width:5.9375rem;margin-top:.5rem}@media (width >= 65.5625rem){#benefit-finder .bf-usa-memorable-date{max-width:100%}}#benefit-finder .bf-usa-fieldset{position:relative;padding:0;margin:0}#benefit-finder .bf-usa-fieldset .bf-hint{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.0625rem;font-style:normal;font-weight:400;line-height:132%}#benefit-finder .bf-usa-fieldset .bf-error-detail{margin:0 0 .5rem;color:#b50909;font-weight:600}#benefit-finder .bf-usa-fieldset li.bf-error-detail{margin:0 0 .25rem}#benefit-finder .bf-fieldset-wrapper{padding:0 0 2rem}#benefit-finder .bf-fieldset-wrapper:has(fieldset.usa-input--error){border-left:.25rem solid #c61f0c;padding-left:1.25rem}#benefit-finder .bf-fieldset-wrapper:has(fieldset.usa-input--error)+.bf-fieldset-wrapper:has(fieldset:not(.usa-input--error)){padding-top:1.25rem}#benefit-finder .bf-fieldset-wrapper:has(fieldset.display-none){padding:0}#benefit-finder form.bf-usa-form{font-family:Public Sans,sans-serif;background-color:#162e51;height:100%;min-height:100vh;margin:0}#benefit-finder h1{font-family:Merriweather Web,Georgia,Cambria,Times New Roman,Times,serif;font-size:2.4375rem;font-style:normal;font-weight:900;line-height:117.4%;letter-spacing:-.39px}#benefit-finder h2{font-family:Merriweather Web,Georgia,Cambria,Times New Roman,Times,serif;font-size:2rem;font-style:normal;font-weight:900;line-height:117.4%}#benefit-finder h3{font-family:Merriweather Web,Georgia,Cambria,Times New Roman,Times,serif;font-size:1.625rem;font-style:normal;font-weight:900;line-height:117.4%}#benefit-finder h4{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.3125rem;font-style:normal;font-weight:700;line-height:117.4%}#benefit-finder h5{font-family:Merriweather Web,Georgia,Cambria,Times New Roman,Times,serif;font-size:1.3125rem;font-style:normal;font-weight:700;line-height:117.4%}#benefit-finder h6{font-family:Merriweather Web,Georgia,Cambria,Times New Roman,Times,serif;font-size:1.25rem;font-weight:700;line-height:134.09%}#benefit-finder .bf-usa-hint--required{color:#3d4551}#benefit-finder .bf-required{color:#3d4551;font-weight:400;margin-left:.5rem}#benefit-finder .bf-carrot-solid,.bf-carrot{position:absolute;top:0;bottom:0;right:3.125rem;margin:auto 0;transform:rotate(-90deg)}#benefit-finder .bf-carrot-solid:after,.bf-carrot:after{content:"▸"}#benefit-finder .bf-carrot{transform:rotate(0)}#benefit-finder .bf-intro{padding-bottom:2rem}#benefit-finder .bf-intro h2{text-align:center}#benefit-finder .bf-intro .bf-cta-wrapper{display:flex;justify-content:center;margin:2rem 2rem 4rem}#benefit-finder .bf-intro .bf-cta-wrapper button{margin:0 auto}#benefit-finder .bf-intro .bf-intro-process-notices{display:flex;flex-direction:column;align-items:center;justify-content:space-around;margin-left:1rem}#benefit-finder .bf-intro .bf-intro-process-list{display:flex;flex-direction:column;align-items:center;justify-content:space-around}#benefit-finder .bf-intro .bf-intro-process-list .bf-usa-process-list{margin-left:0;margin-right:0}@media (width >= 65.5625rem){#benefit-finder .bf-intro .bf-intro-process-list{min-width:50%}#benefit-finder .bf-intro .bf-intro-process-notices-heading{display:none}#benefit-finder .bf-intro .bf-intro-process-group{display:flex}}#benefit-finder .bf-key-eligibility-criteria-group .bf-key-eligibility-criteria-heading{font-family:Merriweather Web,Georgia,Cambria,Times New Roman,Times,serif;font-size:1.25rem;font-weight:700;line-height:134.09%;background-color:#f0f0f0;padding:1rem 2rem;margin:0}#benefit-finder .bf-key-eligibility-criteria-group .bf-key-eligibility-criteria-sub-heading{margin-bottom:0}#benefit-finder .bf-key-eligibility-criteria-group .bf-key-eligibility-criteria-list{padding:0;margin:0}#benefit-finder .bf-key-eligibility-criteria-group .bf-key-eligibility-criteria-list .bf-key-eligibility-criteria-list-item{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.0625rem;font-style:normal;font-weight:400;line-height:132%;line-height:26px;margin:0;padding:1rem 2rem;border:.125rem solid #f0f0f0;border-bottom:0;display:flex;flex-wrap:nowrap}#benefit-finder .bf-key-eligibility-criteria-group .bf-key-eligibility-criteria-list .bf-key-eligibility-criteria-list-item .bf-checkmark--green{height:100%;margin-right:2rem}#benefit-finder .bf-key-eligibility-criteria-group .bf-key-eligibility-criteria-list:last-child{border-bottom:.125rem solid #f0f0f0}#benefit-finder .bf-key-eligibility-criteria-group .bf-key-eligibility-criteria-list li.bf-usa-list{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.0625rem;font-style:normal;font-weight:400;line-height:132%;line-height:26px;line-height:normal}#benefit-finder .bf-unmet-criteria-group{padding:1.5rem 0 0 1.5rem}#benefit-finder .bf-unmet-criteria-group .bf-unmet-criteria-title{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.3125rem;font-style:normal;font-weight:700;line-height:117.4%;margin-bottom:.75rem}#benefit-finder .bf-unmet-criteria-group li.bf-unmet-criteria-item{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.0625rem;font-style:normal;font-weight:400;line-height:132%;line-height:26px}#benefit-finder .bf-legend{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.3125rem;font-style:normal;font-weight:400;line-height:145.4%;font-weight:600;margin:0 0 .5rem;padding:0;max-width:fit-content}#benefit-finder .bf-usa-label{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.0625rem;font-style:normal;font-weight:400;line-height:132%;margin-top:0}#benefit-finder .bf-usa-form,.bf-verify-selections-view{background-color:#162e51;margin:0;padding-bottom:4rem}#benefit-finder .bf-section-wrapper{background-color:#fff;border:.0625rem solid #fff;border-radius:.5rem}#benefit-finder .bf-section-wrapper .bf-usa-button{margin-bottom:1rem}#benefit-finder .bf-section-info{margin:3.125rem 1.25rem}#benefit-finder .bf-section-nav-btn-group{display:flex;flex-wrap:wrap;justify-content:center}#benefit-finder .bf-section-nav-btn-group .bf-usa-button{min-width:7.5rem}#benefit-finder .bf-section-nav-btn-group .bf-usa-modal-group{width:100%}#benefit-finder .bf-section-nav-btn-group button,.bf-section-nav-btn-group .bf-usa-modal-group a{margin:0}@media (width >= 29.9375rem){#benefit-finder .bf-section-nav-btn-group .bf-usa-button:first-of-type{margin-right:2.5rem}#benefit-finder .bf-section-nav-btn-group .bf-usa-modal-group{width:auto}#benefit-finder .bf-section-nav-btn-group button,.bf-section-nav-btn-group .bf-usa-modal-group a{margin-bottom:1rem}}#benefit-finder .bf-section-heading{background-color:#162e51;color:#fff;margin:0;padding:4rem 1rem}#benefit-finder #bf-section{padding-left:1rem;padding-right:1rem;padding-bottom:2rem;margin-bottom:2.5rem}#benefit-finder #bf-section .bf-form-heading-group{padding-bottom:2rem}#benefit-finder #bf-section .bf-form-heading-group h2.bf-form-heading{margin-bottom:0;padding-bottom:.5rem}#benefit-finder #bf-section .bf-form-heading-group .bf-section-sub-heading p{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.3125rem;font-style:normal;font-weight:400;line-height:145.4%;margin:0}#benefit-finder .bf-radio-group{display:flex}#benefit-finder .bf-radio-group .bf-usa-radio__label{margin-right:2rem}@media (width >= 65.5625rem){#benefit-finder .bf-section-info{margin:4rem}#benefit-finder #bf-section{padding-left:0;padding-right:0}#benefit-finder .bf-radio-group{display:inline}}#benefit-finder-modal .bf-modal-button{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.0625rem;font-style:normal;font-weight:400;line-height:132%;font-weight:700;background-color:transparent;border:0;position:absolute;top:1.5rem;right:1.5rem;cursor:pointer}#benefit-finder-modal .bf-modal-heading{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.0625rem;font-weight:400;line-height:132%;font-weight:700;font-weight:600;color:#000;text-align:center;font-style:normal;margin:1.5rem 0}#benefit-finder-modal .bf-modal.bf-usa-button-group.width-full{margin:0 auto;text-align:center}#benefit-finder-modal .bf-modal.bf-usa-button-group.width-full .bf-usa-button-group__item{margin-left:0;margin-right:0}#benefit-finder-modal .bf-modal.bf-usa-button-group.width-full .bf-usa-button{width:14.5rem;padding:1rem 1.25rem}#benefit-finder .bf-notices-list{margin-top:1.5rem;margin-bottom:4rem}#benefit-finder .bf-notice{display:flex;padding-bottom:2rem}#benefit-finder .bf-notice .bf-info{margin-top:.25rem;margin-right:.75rem}#benefit-finder .bf-line-sperator-wrapper{display:block;padding-top:2rem;padding-bottom:2rem;margin:2rem}#benefit-finder .bf-line-sperator{display:block;border-top:.125rem solid #f0f0f0;width:100%;height:100%}#benefit-finder .bf-line-sperator-wrapper--vertical,#benefit-finder .bf-line-sperator--vertical{display:none}@media (width >= 65.5625rem){#benefit-finder .bf-intro .bf-line-sperator-wrapper,#benefit-finder .bf-intro .bf-line-sperator{display:none}#benefit-finder .bf-line-sperator-wrapper--vertical{display:block;padding-top:2rem;padding-bottom:2rem;margin:0;margin-right:2rem}#benefit-finder .bf-line-sperator--vertical{display:block;border-left:.125rem solid #f0f0f0;width:100%;height:80%}}#benefit-finder .bf-obfuscated-link{position:relative;text-decoration:none}#benefit-finder .bf-obfuscated-link:visited{text-decoration:none}#benefit-finder p,p.regular{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.0625rem;font-style:normal;font-weight:400;line-height:132%}#benefit-finder p.bold{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.0625rem;font-style:normal;font-weight:400;line-height:132%;font-weight:700}#benefit-finder .bf-usa-process-list{margin-left:4.375rem;margin-right:1.125rem}#benefit-finder .bf-usa-process-list__item{min-height:5rem}#benefit-finder .bf-usa-process-list__item .bf-usa-process-list__heading{font-size:1.3125rem}#benefit-finder .bf-usa-process-list__item:last-child{border-left:.5rem solid transparent}#benefit-finder h3.bf-usa-process-list__heading{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.3125rem;font-style:normal;font-weight:700;line-height:117.4%}#benefit-finder .bf-usa-radio__label{margin-top:1rem}#benefit-finder .bf-usa-radio__input:checked+.bf-usa-radio__label:before{background-color:#1b1b1b;box-shadow:0 0 0 .125rem #1b1b1b,inset 0 0 0 .125rem #fff;outline-offset:.25rem}#benefit-finder .bf-usa-radio__input:checked.usa-input--error+.bf-usa-radio__label:before{background-color:#005ea2;box-shadow:0 0 0 .1875rem #b50909,inset 0 0 0 .125rem #fff;outline-offset:.25rem}@media (width >= 65.5625rem){#benefit-finder .bf-radio-group>.bf-usa-radio:first-of-type .bf-usa-radio__label{margin-top:1.5rem}}#benefit-finder .bf-eligible-view-heading{font-family:Merriweather Web,Georgia,Cambria,Times New Roman,Times,serif;font-size:2rem;font-style:normal;font-weight:900;line-height:117.4%}#benefit-finder .bf-eligible-view-description{font-family:Merriweather Web,Georgia,Cambria,Times New Roman,Times,serif;font-size:1.25rem;font-weight:700;line-height:134.09%}#benefit-finder .bf-not-eligible-view-heading{font-family:Merriweather Web,Georgia,Cambria,Times New Roman,Times,serif;font-size:2rem;font-style:normal;font-weight:900;line-height:117.4%}#benefit-finder .bf-not-eligible-view-description{font-family:Merriweather Web,Georgia,Cambria,Times New Roman,Times,serif;font-size:1.25rem;font-weight:700;line-height:134.09%}#benefit-finder .bf-zero-benefits-view-heading{font-family:Merriweather Web,Georgia,Cambria,Times New Roman,Times,serif;font-size:2rem;font-style:normal;font-weight:900;line-height:117.4%}#benefit-finder h3.bf-zero-benefits-view-description{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.0625rem;font-style:normal;font-weight:400;line-height:132%}#benefit-finder .bf-result-view-details{padding:2rem}#benefit-finder .bf-result-view-benefits,.bf-result-view-unmet,.bf-result-view-relvant-benefits,.bf-result-view-share-results{padding:1rem 0;text-align:left}#benefit-finder .bf-result-view-benefits .bf-result-view-unmet-heading,.bf-result-view-benefits .bf-result-view-relvant-benefits-heading,.bf-result-view-benefits .bf-result-view-share-results-heading,.bf-result-view-unmet .bf-result-view-unmet-heading,.bf-result-view-unmet .bf-result-view-relvant-benefits-heading,.bf-result-view-unmet .bf-result-view-share-results-heading,.bf-result-view-relvant-benefits .bf-result-view-unmet-heading,.bf-result-view-relvant-benefits .bf-result-view-relvant-benefits-heading,.bf-result-view-relvant-benefits .bf-result-view-share-results-heading,.bf-result-view-share-results .bf-result-view-unmet-heading,.bf-result-view-share-results .bf-result-view-relvant-benefits-heading,.bf-result-view-share-results .bf-result-view-share-results-heading{font-family:Merriweather Web,Georgia,Cambria,Times New Roman,Times,serif;font-size:1.625rem;font-style:normal;font-weight:900;line-height:117.4%}#benefit-finder .bf-result-view-unmet p{padding-bottom:1rem}#benefit-finder .bf-result-view-unmet .bf-result-view-cta-wrapper{display:flex;justify-content:center}#benefit-finder .bf-result-view-share-results-trigger-group button{margin-bottom:.5rem}#benefit-finder .bf-result-view-share-results{text-align:left}@media (width >= 65.5625rem){#benefit-finder .bf-result-view-details{padding:1.5rem 5.4rem}}#benefit-finder .bf-usa-step-indicator__segment .bf-usa-step-indicator__segment-label{color:#757575}#benefit-finder .bf-usa-step-indicator__segment:after{background-color:#757575}#benefit-finder .bf-usa-step-indicator__segment--complete .bf-usa-step-indicator__segment-label{color:#162e51}#benefit-finder .bf-usa-step-indicator__segment--complete:after{background-color:#162e51}#benefit-finder .bf-usa-step-indicator__segment--current .bf-usa-step-indicator__segment-label{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.0625rem;font-style:normal;font-weight:400;line-height:132%;font-weight:700;color:#0081a1;font-style:italic}#benefit-finder .bf-usa-step-indicator__segment--current:after{background-color:#0081a1}#benefit-finder .bf-step-back-button{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.0625rem;font-style:normal;font-weight:400;line-height:132%;padding:0}#benefit-finder .bf-usa-select.usa-input--error{padding:.5rem 2rem .5rem .5rem;height:auto;border-color:#b50909}#benefit-finder .bf-usa-select.usa-input--error:focus{outline-offset:.125rem}#benefit-finder .bf-usa-summary-box{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.3125rem;font-style:normal;font-weight:700;line-height:117.4%;margin-bottom:1rem;border-color:#00bde3}#benefit-finder .bf-usa-summary-box .bf-usa-list li{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.0625rem;font-style:normal;font-weight:400;line-height:132%;line-height:26px}#benefit-finder .bf-usa-input.usa-input--error{outline-offset:.125rem}#benefit-finder .time-indicator{color:#3d4551;text-align:center;margin-bottom:2rem}#benefit-finder .bf-verify-criteria-value{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.0625rem;font-style:normal;font-weight:400;line-height:132%;font-weight:700;padding-bottom:2.5rem}#benefit-finder .bf-verify-criteria-legend{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.0625rem;font-style:normal;font-weight:400;line-height:132%;padding-bottom:.5rem}#benefit-finder .bf-verify-criteria-section-heading{border-bottom:.125rem solid #0081a1;padding-bottom:.5rem}#benefit-finder .bf-verify-criteria-section:last-of-type{padding-bottom:4rem}#benefit-finder html{font-family:Public Sans,sans-serif;background-color:#162e51;height:100%;min-height:100vh}#benefit-finder .main-content{padding-bottom:0!important}#benefit-finder .usa-footer{padding-top:0!important} +@charset "UTF-8";#benefit-finder .no-background{background-color:#fff;border-left-color:#fff}#benefit-finder h2.bf-usa-alert__heading{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.3125rem;font-style:normal;font-weight:700;line-height:117.4%}#benefit-finder .bf-errors-list-item a{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.0625rem;font-style:normal;font-weight:400;line-height:132%}#benefit-finder .bf-usa-accordion .bf-usa-accordion__button{position:relative}#benefit-finder .bf-usa-accordion .bf-usa-accordion__button svg{position:absolute;top:0;bottom:0;right:1.25rem;margin:auto 0}#benefit-finder .bf-usa-accordion .bf-usa-accordion__button .bf-accordion-heading{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.3125rem;font-style:normal;font-weight:700;line-height:117.4%;letter-spacing:0}#benefit-finder .bf-usa-accordion .bf-usa-accordion__button .bf-accordion-sub-heading{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.0625rem;font-style:normal;font-weight:400;line-height:132%;letter-spacing:0}#benefit-finder .bf-usa-accordion .bf-usa-accordion__content{padding:0 2.5rem 1rem}#benefit-finder .bf-usa-accordion-group .bf-usa-accordion{margin-bottom:.75rem}#benefit-finder .bf-usa-accordion-group .bf-usa-accordion .bf-usa-detail-title{margin-bottom:.5rem}#benefit-finder .bf-usa-accordion-group .bf-usa-accordion .bf-usa-detail-summary p{margin-bottom:1.5rem}#benefit-finder .bf-usa-accordion-group .bf-usa-accordion .bf-key-eligibility-criteria-heading{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.3125rem;font-style:normal;font-weight:700;line-height:117.4%}#benefit-finder .bf-usa-accordion-group .bf-usa-accordion .bf-usa-accordion-group-cta-wrapper{display:flex;justify-content:center;margin-top:2rem}#benefit-finder .bf-usa-accordion-group .bf-usa-accordion .bf-usa-accordion-group-cta-wrapper .bf-usa-link{margin-bottom:1rem}#benefit-finder .bf-usa-accordion-group .bf-expand-all{margin-bottom:2rem}#benefit-finder .bf-usa-button{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.0625rem;font-style:normal;font-weight:400;line-height:132%;font-weight:700;padding:1rem 1.25rem;font-size:1.1rem}#benefit-finder .bf-usa-button--outline{background-color:transparent;box-shadow:inset 0 0 0 .125rem #000;color:#000}#benefit-finder .bf-usa-button--outline:focus{box-shadow:inset 0 0 0 .125rem #fff}#benefit-finder .bf-usa-button--outline:hover{background-color:#f0f0f0}#benefit-finder .bf-usa-card--relative-benefit{margin-bottom:1rem}#benefit-finder .bf-usa-card--relative-benefit .bf-usa-card__container{border-radius:0;border:.125rem solid #0081a1;color:#162e51;height:auto;margin:0}#benefit-finder .bf-usa-card--relative-benefit a{text-decoration:none}#benefit-finder .bf-usa-card--relative-benefit a:hover.bf-usa-card__container{background-color:#ccecf2}#benefit-finder .bf-usa-card--relative-benefit a:active.bf-usa-card__container{border:.125rem solid #0081a1}#benefit-finder .bf-usa-card--relative-benefit.bf-card-icon .bf-relative-icon svg{margin:auto 0;position:absolute;top:0;bottom:0;left:1rem;width:4.375rem;height:4.375rem;padding:.75rem}#benefit-finder .bf-usa-card--relative-benefit.bf-card-icon .bf-usa-card__container{padding:0 2.5rem 0 5.375rem}#benefit-finder .bf-usa-card--relative-benefit .bf-usa-card__header{padding-bottom:0}#benefit-finder .bf-usa-card--relative-benefit h3.bf-usa-card__heading{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.3125rem;font-style:normal;font-weight:400;line-height:145.4%;font-weight:700;text-decoration:underline}#benefit-finder .bf-usa-card--relative-benefit .bf-usa-card__body{display:none}#benefit-finder .bf-usa-card--relative-benefit .bf-usa-card__cta,.bf-usa-card--relative-benefit .bf-usa-card__body{padding:1.5rem;padding-top:0;margin-top:0;margin-bottom:0}@media (width >= 65.5625rem){#benefit-finder .bf-usa-card--relative-benefit .bf-usa-card__body{display:block;padding-top:0;padding-bottom:1.5rem;margin-top:0;margin-bottom:0}#benefit-finder .bf-usa-card--relative-benefit .bf-usa-card__body p{max-width:90%}#benefit-finder .bf-usa-card--relative-benefit .bf-usa-card__cta{display:none}}#benefit-finder h1.bf-chevron-heading{font-family:Merriweather Web,Georgia,Cambria,Times New Roman,Times,serif;font-size:2.4375rem;font-style:normal;font-weight:900;line-height:117.4%;letter-spacing:-.39px}#benefit-finder .bf-chevron{position:relative;background-color:#162e51;padding:4rem 2rem 2.375rem;margin:0 auto;color:#fff;margin-bottom:8.75rem}#benefit-finder .bf-chevron-description p{font-family:Merriweather Web,Georgia,Cambria,Times New Roman,Times,serif;font-size:1.3125rem;font-style:normal;font-weight:400;line-height:164%}#benefit-finder .bf-chevron:before{content:"";position:absolute;top:100%;left:0;border-top:4.75rem solid #162e51;border-left:50vw solid transparent;border-right:50vw solid transparent}@media (width >= 65.5625rem){#benefit-finder .bf-chevron{padding-bottom:4rem;margin-bottom:4rem}#benefit-finder .bf-chevron:before{display:none}}#benefit-finder .bf-usa-form-group{width:100%}#benefit-finder .bf-usa-memorable-date{max-width:20rem;flex-wrap:wrap}#benefit-finder .bf-usa-input.usa-input--error{padding:.5rem;height:initial;border-color:#b50909}#benefit-finder .bf-usa-form-group--month{width:15.125rem;margin-top:.5rem}#benefit-finder .bf-usa-form-group--day{width:4rem;margin-top:.5rem}#benefit-finder .bf-usa-form-group--year{width:5.9375rem;margin-top:.5rem}@media (width >= 65.5625rem){#benefit-finder .bf-usa-memorable-date{max-width:100%}}#benefit-finder .bf-usa-fieldset{position:relative;padding:0;margin:0}#benefit-finder .bf-usa-fieldset .bf-hint{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.0625rem;font-style:normal;font-weight:400;line-height:132%}#benefit-finder .bf-usa-fieldset .bf-error-detail{margin:0 0 .5rem;color:#b50909;font-weight:600}#benefit-finder .bf-usa-fieldset li.bf-error-detail{margin:0 0 .25rem}#benefit-finder .bf-fieldset-wrapper{padding:0 0 2rem}#benefit-finder .bf-fieldset-wrapper:has(fieldset.usa-input--error){border-left:.25rem solid #c61f0c;padding-left:1.25rem}#benefit-finder .bf-fieldset-wrapper:has(fieldset.usa-input--error)+.bf-fieldset-wrapper:has(fieldset:not(.usa-input--error)){padding-top:1.25rem}#benefit-finder .bf-fieldset-wrapper:has(fieldset.display-none){padding:0}#benefit-finder h1{font-family:Merriweather Web,Georgia,Cambria,Times New Roman,Times,serif;font-size:2.4375rem;font-style:normal;font-weight:900;line-height:117.4%;letter-spacing:-.39px}#benefit-finder h2{font-family:Merriweather Web,Georgia,Cambria,Times New Roman,Times,serif;font-size:2rem;font-style:normal;font-weight:900;line-height:117.4%}#benefit-finder h3{font-family:Merriweather Web,Georgia,Cambria,Times New Roman,Times,serif;font-size:1.625rem;font-style:normal;font-weight:900;line-height:117.4%}#benefit-finder h4{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.3125rem;font-style:normal;font-weight:700;line-height:117.4%}#benefit-finder h5{font-family:Merriweather Web,Georgia,Cambria,Times New Roman,Times,serif;font-size:1.3125rem;font-style:normal;font-weight:700;line-height:117.4%}#benefit-finder h6{font-family:Merriweather Web,Georgia,Cambria,Times New Roman,Times,serif;font-size:1.25rem;font-weight:700;line-height:134.09%}#benefit-finder .bf-usa-hint--required{color:#3d4551}#benefit-finder .bf-required{color:#3d4551;font-weight:400;margin-left:.5rem}#benefit-finder .bf-carrot-solid,.bf-carrot{position:absolute;top:0;bottom:0;right:3.125rem;margin:auto 0;transform:rotate(-90deg)}#benefit-finder .bf-carrot-solid:after,.bf-carrot:after{content:"▸"}#benefit-finder .bf-carrot{transform:rotate(0)}#benefit-finder .bf-key-eligibility-criteria-group .bf-key-eligibility-criteria-heading{font-family:Merriweather Web,Georgia,Cambria,Times New Roman,Times,serif;font-size:1.25rem;font-weight:700;line-height:134.09%;background-color:#f0f0f0;padding:1rem 2rem;margin:0}#benefit-finder .bf-key-eligibility-criteria-group .bf-key-eligibility-criteria-sub-heading{margin-bottom:0}#benefit-finder .bf-key-eligibility-criteria-group .bf-key-eligibility-criteria-list{padding:0;margin:0}#benefit-finder .bf-key-eligibility-criteria-group .bf-key-eligibility-criteria-list .bf-key-eligibility-criteria-list-item{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.0625rem;font-style:normal;font-weight:400;line-height:132%;line-height:26px;margin:0;padding:1rem 2rem;border:.125rem solid #f0f0f0;border-bottom:0;display:flex;flex-wrap:nowrap}#benefit-finder .bf-key-eligibility-criteria-group .bf-key-eligibility-criteria-list .bf-key-eligibility-criteria-list-item .bf-checkmark--green{height:100%;margin-right:2rem}#benefit-finder .bf-key-eligibility-criteria-group .bf-key-eligibility-criteria-list:last-child{border-bottom:.125rem solid #f0f0f0}#benefit-finder .bf-key-eligibility-criteria-group .bf-key-eligibility-criteria-list li.bf-usa-list{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.0625rem;font-style:normal;font-weight:400;line-height:132%;line-height:26px;line-height:normal}#benefit-finder .bf-unmet-criteria-group{padding:1.5rem 0 0 1.5rem}#benefit-finder .bf-unmet-criteria-group .bf-unmet-criteria-title{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.3125rem;font-style:normal;font-weight:700;line-height:117.4%;margin-bottom:.75rem}#benefit-finder .bf-unmet-criteria-group li.bf-unmet-criteria-item{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.0625rem;font-style:normal;font-weight:400;line-height:132%;line-height:26px}#benefit-finder .bf-legend{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.3125rem;font-style:normal;font-weight:400;line-height:145.4%;font-weight:600;margin:0 0 .5rem;padding:0;max-width:fit-content}#benefit-finder .bf-usa-label{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.0625rem;font-style:normal;font-weight:400;line-height:132%;margin-top:0}#benefit-finder-modal .bf-modal-button{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.0625rem;font-style:normal;font-weight:400;line-height:132%;font-weight:700;background-color:transparent;border:0;position:absolute;top:1.5rem;right:1.5rem;cursor:pointer}#benefit-finder-modal .bf-modal-heading{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.0625rem;font-weight:400;line-height:132%;font-weight:700;font-weight:600;color:#000;text-align:center;font-style:normal;margin:1.5rem 0}#benefit-finder-modal .bf-modal.bf-usa-button-group.width-full{margin:0 auto;text-align:center}#benefit-finder-modal .bf-modal.bf-usa-button-group.width-full .bf-usa-button-group__item{margin-left:0;margin-right:0}#benefit-finder-modal .bf-modal.bf-usa-button-group.width-full .bf-usa-button{width:14.5rem;padding:1rem 1.25rem}#benefit-finder .bf-notices-list{margin-top:1.5rem;margin-bottom:4rem}#benefit-finder .bf-notice{display:flex;padding-bottom:2rem}#benefit-finder .bf-notice .bf-info{margin-top:.25rem;margin-right:.75rem}#benefit-finder .bf-line-sperator-wrapper{display:block;padding-top:2rem;padding-bottom:2rem;margin:2rem}#benefit-finder .bf-line-sperator{display:block;border-top:.125rem solid #f0f0f0;width:100%;height:100%}#benefit-finder .bf-line-sperator-wrapper--vertical,#benefit-finder .bf-line-sperator--vertical{display:none}@media (width >= 65.5625rem){#benefit-finder .bf-intro .bf-line-sperator-wrapper,#benefit-finder .bf-intro .bf-line-sperator{display:none}#benefit-finder .bf-line-sperator-wrapper--vertical{display:block;padding-top:2rem;padding-bottom:2rem;margin:0;margin-right:2rem}#benefit-finder .bf-line-sperator--vertical{display:block;border-left:.125rem solid #f0f0f0;width:100%;height:80%}}#benefit-finder .bf-obfuscated-link{position:relative;text-decoration:none}#benefit-finder .bf-obfuscated-link:visited{text-decoration:none}#benefit-finder p,p.regular{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.0625rem;font-style:normal;font-weight:400;line-height:132%}#benefit-finder p.bold{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.0625rem;font-style:normal;font-weight:400;line-height:132%;font-weight:700}#benefit-finder .bf-usa-process-list{margin-left:4.375rem;margin-right:1.125rem}#benefit-finder .bf-usa-process-list__item{min-height:5rem}#benefit-finder .bf-usa-process-list__item .bf-usa-process-list__heading{font-size:1.3125rem}#benefit-finder .bf-usa-process-list__item:last-child{border-left:.5rem solid transparent}#benefit-finder h3.bf-usa-process-list__heading{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.3125rem;font-style:normal;font-weight:700;line-height:117.4%}#benefit-finder .bf-usa-radio__label{margin-top:1rem}#benefit-finder .bf-usa-radio__input:checked+.bf-usa-radio__label:before{background-color:#1b1b1b;box-shadow:0 0 0 .125rem #1b1b1b,inset 0 0 0 .125rem #fff;outline-offset:.25rem}#benefit-finder .bf-usa-radio__input:checked.usa-input--error+.bf-usa-radio__label:before{background-color:#005ea2;box-shadow:0 0 0 .1875rem #b50909,inset 0 0 0 .125rem #fff;outline-offset:.25rem}@media (width >= 65.5625rem){#benefit-finder .bf-radio-group>.bf-usa-radio:first-of-type .bf-usa-radio__label{margin-top:1.5rem}}#benefit-finder .bf-usa-step-indicator__segment .bf-usa-step-indicator__segment-label{color:#757575}#benefit-finder .bf-usa-step-indicator__segment:after{background-color:#757575}#benefit-finder .bf-usa-step-indicator__segment--complete .bf-usa-step-indicator__segment-label{color:#162e51}#benefit-finder .bf-usa-step-indicator__segment--complete:after{background-color:#162e51}#benefit-finder .bf-usa-step-indicator__segment--current .bf-usa-step-indicator__segment-label{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.0625rem;font-style:normal;font-weight:400;line-height:132%;font-weight:700;color:#0081a1;font-style:italic}#benefit-finder .bf-usa-step-indicator__segment--current:after{background-color:#0081a1}#benefit-finder .bf-step-back-button{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.0625rem;font-style:normal;font-weight:400;line-height:132%;padding:0}#benefit-finder .bf-usa-select.usa-input--error{padding:.5rem 2rem .5rem .5rem;height:auto;border-color:#b50909}#benefit-finder .bf-usa-select.usa-input--error:focus{outline-offset:.125rem}#benefit-finder .bf-usa-summary-box{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.3125rem;font-style:normal;font-weight:700;line-height:117.4%;margin-bottom:1rem;border-color:#00bde3}#benefit-finder .bf-usa-summary-box .bf-usa-list li{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.0625rem;font-style:normal;font-weight:400;line-height:132%;line-height:26px}#benefit-finder .bf-usa-input.usa-input--error{outline-offset:.125rem}#benefit-finder .time-indicator{color:#3d4551;text-align:center;margin-bottom:2rem}#benefit-finder .bf-intro{padding-bottom:2rem}#benefit-finder .bf-intro h2{text-align:center}#benefit-finder .bf-intro .bf-cta-wrapper{display:flex;justify-content:center;margin:2rem 2rem 4rem}#benefit-finder .bf-intro .bf-cta-wrapper button{margin:0 auto}#benefit-finder .bf-intro .bf-intro-process-notices{display:flex;flex-direction:column;align-items:center;justify-content:space-around;margin-left:1rem}#benefit-finder .bf-intro .bf-intro-process-list{display:flex;flex-direction:column;align-items:center;justify-content:space-around}#benefit-finder .bf-intro .bf-intro-process-list .bf-usa-process-list{margin-left:0;margin-right:0}@media (width >= 65.5625rem){#benefit-finder .bf-intro .bf-intro-process-list{min-width:50%}#benefit-finder .bf-intro .bf-intro-process-notices-heading{display:none}#benefit-finder .bf-intro .bf-intro-process-group{display:flex}}#benefit-finder .bf-usa-form,.bf-verify-selections-view{background-color:#162e51;margin:0;padding-bottom:4rem}#benefit-finder .bf-section-wrapper{background-color:#fff;border:.0625rem solid #fff;border-radius:.5rem}#benefit-finder .bf-section-wrapper .bf-usa-button{margin-bottom:1rem}#benefit-finder .bf-section-info{margin:3.125rem 1.25rem}#benefit-finder .bf-section-nav-btn-group{display:flex;flex-wrap:wrap;justify-content:center}#benefit-finder .bf-section-nav-btn-group .bf-usa-button{min-width:7.5rem}#benefit-finder .bf-section-nav-btn-group .bf-usa-modal-group{width:100%}#benefit-finder .bf-section-nav-btn-group button,.bf-section-nav-btn-group .bf-usa-modal-group a{margin:0}@media (width >= 29.9375rem){#benefit-finder .bf-section-nav-btn-group .bf-usa-button:first-of-type{margin-right:2.5rem}#benefit-finder .bf-section-nav-btn-group .bf-usa-modal-group{width:auto}#benefit-finder .bf-section-nav-btn-group button,.bf-section-nav-btn-group .bf-usa-modal-group a{margin-bottom:1rem}}#benefit-finder .bf-section-heading{background-color:#162e51;color:#fff;margin:0;padding:4rem 1rem}#benefit-finder #bf-section{padding-left:1rem;padding-right:1rem;padding-bottom:2rem;margin-bottom:2.5rem}#benefit-finder #bf-section .bf-form-heading-group{padding-bottom:2rem}#benefit-finder #bf-section .bf-form-heading-group h2.bf-form-heading{margin-bottom:0;padding-bottom:.5rem}#benefit-finder #bf-section .bf-form-heading-group .bf-section-sub-heading p{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.3125rem;font-style:normal;font-weight:400;line-height:145.4%;margin:0}#benefit-finder .bf-radio-group{display:flex}#benefit-finder .bf-radio-group .bf-usa-radio__label{margin-right:2rem}@media (width >= 65.5625rem){#benefit-finder .bf-section-info{margin:4rem}#benefit-finder #bf-section{padding-left:0;padding-right:0}#benefit-finder .bf-radio-group{display:inline}}#benefit-finder .bf-eligible-view-heading{font-family:Merriweather Web,Georgia,Cambria,Times New Roman,Times,serif;font-size:2rem;font-style:normal;font-weight:900;line-height:117.4%}#benefit-finder .bf-eligible-view-description{font-family:Merriweather Web,Georgia,Cambria,Times New Roman,Times,serif;font-size:1.25rem;font-weight:700;line-height:134.09%}#benefit-finder .bf-not-eligible-view-heading{font-family:Merriweather Web,Georgia,Cambria,Times New Roman,Times,serif;font-size:2rem;font-style:normal;font-weight:900;line-height:117.4%}#benefit-finder .bf-not-eligible-view-description{font-family:Merriweather Web,Georgia,Cambria,Times New Roman,Times,serif;font-size:1.25rem;font-weight:700;line-height:134.09%}#benefit-finder .bf-zero-benefits-view-heading{font-family:Merriweather Web,Georgia,Cambria,Times New Roman,Times,serif;font-size:2rem;font-style:normal;font-weight:900;line-height:117.4%}#benefit-finder h3.bf-zero-benefits-view-description{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.0625rem;font-style:normal;font-weight:400;line-height:132%}#benefit-finder .bf-back-to-form-cta{margin:1rem 0 2rem}#benefit-finder .bf-result-view-details{padding:2rem}#benefit-finder .bf-result-view-benefits,.bf-result-view-unmet,.bf-result-view-relvant-benefits,.bf-result-view-share-results{padding:1rem 0;text-align:left}#benefit-finder .bf-result-view-benefits .bf-result-view-unmet-heading,.bf-result-view-benefits .bf-result-view-relvant-benefits-heading,.bf-result-view-benefits .bf-result-view-share-results-heading,.bf-result-view-unmet .bf-result-view-unmet-heading,.bf-result-view-unmet .bf-result-view-relvant-benefits-heading,.bf-result-view-unmet .bf-result-view-share-results-heading,.bf-result-view-relvant-benefits .bf-result-view-unmet-heading,.bf-result-view-relvant-benefits .bf-result-view-relvant-benefits-heading,.bf-result-view-relvant-benefits .bf-result-view-share-results-heading,.bf-result-view-share-results .bf-result-view-unmet-heading,.bf-result-view-share-results .bf-result-view-relvant-benefits-heading,.bf-result-view-share-results .bf-result-view-share-results-heading{font-family:Merriweather Web,Georgia,Cambria,Times New Roman,Times,serif;font-size:1.625rem;font-style:normal;font-weight:900;line-height:117.4%}#benefit-finder .bf-result-view-unmet p{padding-bottom:1rem}#benefit-finder .bf-result-view-unmet .bf-result-view-cta-wrapper{display:flex;justify-content:center}#benefit-finder .bf-result-view-share-results-trigger-group button{margin-bottom:.5rem}#benefit-finder .bf-result-view-share-results{text-align:left}@media (width >= 65.5625rem){#benefit-finder .bf-result-view-details{padding:1.5rem 5.4rem}}#benefit-finder .bf-verify-criteria-value{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.0625rem;font-style:normal;font-weight:400;line-height:132%;font-weight:700;padding-bottom:2.5rem}#benefit-finder .bf-verify-criteria-legend{font-family:Source Sans Pro Web,Helvetica Neue,Helvetica,Roboto,Arial,sans-serif;font-size:1.0625rem;font-style:normal;font-weight:400;line-height:132%;padding-bottom:.5rem}#benefit-finder .bf-verify-criteria-section-heading{border-bottom:.125rem solid #0081a1;padding-bottom:.5rem}#benefit-finder .bf-verify-criteria-section:last-of-type{padding-bottom:4rem}#benefit-finder html{background-color:#162e51;height:100%;min-height:100vh}#benefit-finder .main-content{padding-bottom:0!important}#benefit-finder .usa-footer{padding-top:0!important} diff --git a/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_app/usagov_benefit_finder_page/js/benefit-finder.min.js b/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_app/usagov_benefit_finder_page/js/benefit-finder.min.js index 8e4d5382a1..0948239134 100644 --- a/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_app/usagov_benefit_finder_page/js/benefit-finder.min.js +++ b/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_app/usagov_benefit_finder_page/js/benefit-finder.min.js @@ -1,4 +1,4 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();function ao(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function pp(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var l=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,l.get?l:{enumerable:!0,get:function(){return e[r]}})}),n}var Fu={exports:{}},uo={},Iu={exports:{}},V={};/** +function Gp(e,t){for(var n=0;nr[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();function yi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Yp(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var l=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,l.get?l:{enumerable:!0,get:function(){return e[r]}})}),n}var oc={exports:{}},wi={},sc={exports:{}},U={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Ur=Symbol.for("react.element"),hp=Symbol.for("react.portal"),mp=Symbol.for("react.fragment"),vp=Symbol.for("react.strict_mode"),gp=Symbol.for("react.profiler"),yp=Symbol.for("react.provider"),wp=Symbol.for("react.context"),xp=Symbol.for("react.forward_ref"),Sp=Symbol.for("react.suspense"),Cp=Symbol.for("react.memo"),kp=Symbol.for("react.lazy"),oa=Symbol.iterator;function Ep(e){return e===null||typeof e!="object"?null:(e=oa&&e[oa]||e["@@iterator"],typeof e=="function"?e:null)}var Au={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},zu=Object.assign,Bu={};function Qn(e,t,n){this.props=e,this.context=t,this.refs=Bu,this.updater=n||Au}Qn.prototype.isReactComponent={};Qn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Qn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Vu(){}Vu.prototype=Qn.prototype;function ts(e,t,n){this.props=e,this.context=t,this.refs=Bu,this.updater=n||Au}var ns=ts.prototype=new Vu;ns.constructor=ts;zu(ns,Qn.prototype);ns.isPureReactComponent=!0;var ia=Array.isArray,Hu=Object.prototype.hasOwnProperty,rs={current:null},Uu={key:!0,ref:!0,__self:!0,__source:!0};function Wu(e,t,n){var r,l={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)Hu.call(t,r)&&!Uu.hasOwnProperty(r)&&(l[r]=t[r]);var s=arguments.length-2;if(s===1)l.children=n;else if(1>>1,A=k[I];if(0>>1;Il(Yt,P))Kel(Nt,Yt)?(k[I]=Nt,k[Ke]=P,I=Ke):(k[I]=Yt,k[oe]=P,I=oe);else if(Kel(Nt,P))k[I]=Nt,k[Ke]=P,I=Ke;else break e}}return O}function l(k,O){var P=k.sortIndex-O.sortIndex;return P!==0?P:k.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var u=[],c=[],f=1,m=null,p=3,g=!1,S=!1,x=!1,b=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(k){for(var O=n(c);O!==null;){if(O.callback===null)r(c);else if(O.startTime<=k)r(c),O.sortIndex=O.expirationTime,t(u,O);else break;O=n(c)}}function w(k){if(x=!1,v(k),!S)if(n(u)!==null)S=!0,W(E);else{var O=n(c);O!==null&&C(w,O.startTime-k)}}function E(k,O){S=!1,x&&(x=!1,h(L),L=-1),g=!0;var P=p;try{for(v(O),m=n(u);m!==null&&(!(m.expirationTime>O)||k&&!H());){var I=m.callback;if(typeof I=="function"){m.callback=null,p=m.priorityLevel;var A=I(m.expirationTime<=O);O=e.unstable_now(),typeof A=="function"?m.callback=A:m===n(u)&&r(u),v(O)}else r(u);m=n(u)}if(m!==null)var ne=!0;else{var oe=n(c);oe!==null&&C(w,oe.startTime-O),ne=!1}return ne}finally{m=null,p=P,g=!1}}var N=!1,j=null,L=-1,B=5,R=-1;function H(){return!(e.unstable_now()-Rk||125I?(k.sortIndex=P,t(c,k),n(u)===null&&k===n(c)&&(x?(h(L),L=-1):x=!0,C(w,P-I))):(k.sortIndex=A,t(u,k),S||g||(S=!0,W(E))),k},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(k){var O=p;return function(){var P=p;p=O;try{return k.apply(this,arguments)}finally{p=P}}}})(Gu);Zu.exports=Gu;var $p=Zu.exports;/** + */(function(e){function t(_,R){var L=_.length;_.push(R);e:for(;0>>1,z=_[M];if(0>>1;Ml(Jt,L))otl($,Jt)?(_[M]=$,_[ot]=L,M=ot):(_[M]=Jt,_[_e]=L,M=_e);else if(otl($,L))_[M]=$,_[ot]=L,M=ot;else break e}}return R}function l(_,R){var L=_.sortIndex-R.sortIndex;return L!==0?L:_.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var a=[],c=[],p=1,d=null,m=3,y=!1,x=!1,g=!1,S=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(_){for(var R=n(c);R!==null;){if(R.callback===null)r(c);else if(R.startTime<=_)r(c),R.sortIndex=R.expirationTime,t(a,R);else break;R=n(c)}}function w(_){if(g=!1,v(_),!x)if(n(a)!==null)x=!0,W(b);else{var R=n(c);R!==null&&E(w,R.startTime-_)}}function b(_,R){x=!1,g&&(g=!1,f(T),T=-1),y=!0;var L=m;try{for(v(R),d=n(a);d!==null&&(!(d.expirationTime>R)||_&&!q());){var M=d.callback;if(typeof M=="function"){d.callback=null,m=d.priorityLevel;var z=M(d.expirationTime<=R);R=e.unstable_now(),typeof z=="function"?d.callback=z:d===n(a)&&r(a),v(R)}else r(a);d=n(a)}if(d!==null)var fe=!0;else{var _e=n(c);_e!==null&&E(w,_e.startTime-R),fe=!1}return fe}finally{d=null,m=L,y=!1}}var N=!1,P=null,T=-1,B=5,D=-1;function q(){return!(e.unstable_now()-D_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(_){switch(m){case 1:case 2:case 3:var R=3;break;default:R=m}var L=m;m=R;try{return _()}finally{m=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,R){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var L=m;m=_;try{return R()}finally{m=L}},e.unstable_scheduleCallback=function(_,R,L){var M=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0M?(_.sortIndex=L,t(c,_),n(a)===null&&_===n(c)&&(g?(f(T),T=-1):g=!0,E(w,L-M))):(_.sortIndex=z,t(a,_),x||y||(x=!0,W(b))),_},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(_){var R=m;return function(){var L=m;m=R;try{return _.apply(this,arguments)}finally{m=L}}}})(xc);wc.exports=xc;var x1=wc.exports;/** * @license React * react-dom.production.min.js * @@ -30,19 +30,46 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Fp=M,De=$p;function _(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ri=Object.prototype.hasOwnProperty,Ip=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,aa={},ua={};function Ap(e){return ri.call(ua,e)?!0:ri.call(aa,e)?!1:Ip.test(e)?ua[e]=!0:(aa[e]=!0,!1)}function zp(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Bp(e,t,n,r){if(t===null||typeof t>"u"||zp(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ee(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var me={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){me[e]=new Ee(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];me[t]=new Ee(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){me[e]=new Ee(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){me[e]=new Ee(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){me[e]=new Ee(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){me[e]=new Ee(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){me[e]=new Ee(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){me[e]=new Ee(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){me[e]=new Ee(e,5,!1,e.toLowerCase(),null,!1,!1)});var os=/[\-:]([a-z])/g;function is(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(os,is);me[t]=new Ee(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(os,is);me[t]=new Ee(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(os,is);me[t]=new Ee(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){me[e]=new Ee(e,1,!1,e.toLowerCase(),null,!1,!1)});me.xlinkHref=new Ee("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){me[e]=new Ee(e,1,!1,e.toLowerCase(),null,!0,!0)});function ss(e,t,n,r){var l=me.hasOwnProperty(t)?me[t]:null;(l!==null?l.type!==0:r||!(2s||l[i]!==o[s]){var u=` -`+l[i].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=i&&0<=s);break}}}finally{Mo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?sr(e):""}function Vp(e){switch(e.tag){case 5:return sr(e.type);case 16:return sr("Lazy");case 13:return sr("Suspense");case 19:return sr("SuspenseList");case 0:case 2:case 15:return e=Po(e.type,!1),e;case 11:return e=Po(e.type.render,!1),e;case 1:return e=Po(e.type,!0),e;default:return""}}function si(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Cn:return"Fragment";case Sn:return"Portal";case li:return"Profiler";case as:return"StrictMode";case oi:return"Suspense";case ii:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ju:return(e.displayName||"Context")+".Consumer";case Xu:return(e._context.displayName||"Context")+".Provider";case us:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case cs:return t=e.displayName||null,t!==null?t:si(e.type)||"Memo";case Ot:t=e._payload,e=e._init;try{return si(e(t))}catch{}}return null}function Hp(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return si(t);case 8:return t===as?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Kt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function tc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Up(e){var t=tc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function nl(e){e._valueTracker||(e._valueTracker=Up(e))}function nc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=tc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ol(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ai(e,t){var n=t.checked;return te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function da(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Kt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function rc(e,t){t=t.checked,t!=null&&ss(e,"checked",t,!1)}function ui(e,t){rc(e,t);var n=Kt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ci(e,t.type,n):t.hasOwnProperty("defaultValue")&&ci(e,t.type,Kt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function fa(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ci(e,t,n){(t!=="number"||Ol(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ar=Array.isArray;function Rn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=rl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function _r(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var dr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Wp=["Webkit","ms","Moz","O"];Object.keys(dr).forEach(function(e){Wp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),dr[t]=dr[e]})});function sc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||dr.hasOwnProperty(e)&&dr[e]?(""+t).trim():t+"px"}function ac(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=sc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Kp=te({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function pi(e,t){if(t){if(Kp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(_(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(_(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(_(61))}if(t.style!=null&&typeof t.style!="object")throw Error(_(62))}}function hi(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var mi=null;function ds(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var vi=null,Dn=null,$n=null;function ma(e){if(e=qr(e)){if(typeof vi!="function")throw Error(_(280));var t=e.stateNode;t&&(t=mo(t),vi(e.stateNode,e.type,t))}}function uc(e){Dn?$n?$n.push(e):$n=[e]:Dn=e}function cc(){if(Dn){var e=Dn,t=$n;if($n=Dn=null,ma(e),t)for(e=0;e>>=0,e===0?32:31-(r1(e)/l1|0)|0}var ll=64,ol=4194304;function ur(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Dl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~l;s!==0?r=ur(s):(o&=i,o!==0&&(r=ur(o)))}else i=n&~l,i!==0?r=ur(i):o!==0&&(r=ur(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Wr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-et(t),e[t]=n}function a1(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=pr),Ea=" ",_a=!1;function Tc(e,t){switch(e){case"keyup":return $1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Oc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var kn=!1;function I1(e,t){switch(e){case"compositionend":return Oc(t);case"keypress":return t.which!==32?null:(_a=!0,Ea);case"textInput":return e=t.data,e===Ea&&_a?null:e;default:return null}}function A1(e,t){if(kn)return e==="compositionend"||!ws&&Tc(e,t)?(e=bc(),Sl=vs=Dt=null,kn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=La(n)}}function Dc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Dc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $c(){for(var e=window,t=Ol();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ol(e.document)}return t}function xs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Q1(e){var t=$c(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Dc(n.ownerDocument.documentElement,n)){if(r!==null&&xs(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=Ta(n,o);var i=Ta(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,En=null,Ci=null,mr=null,ki=!1;function Oa(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ki||En==null||En!==Ol(r)||(r=En,"selectionStart"in r&&xs(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),mr&&Or(mr,r)||(mr=r,r=Il(Ci,"onSelect"),0Nn||(e.current=Li[Nn],Li[Nn]=null,Nn--)}function Q(e,t){Nn++,Li[Nn]=e.current,e.current=t}var qt={},xe=Zt(qt),Ne=Zt(!1),cn=qt;function Bn(e,t){var n=e.type.contextTypes;if(!n)return qt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function be(e){return e=e.childContextTypes,e!=null}function zl(){G(Ne),G(xe)}function Ia(e,t,n){if(xe.current!==qt)throw Error(_(168));Q(xe,t),Q(Ne,n)}function Wc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(_(108,Hp(e)||"Unknown",l));return te({},n,r)}function Bl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||qt,cn=xe.current,Q(xe,e),Q(Ne,Ne.current),!0}function Aa(e,t,n){var r=e.stateNode;if(!r)throw Error(_(169));n?(e=Wc(e,t,cn),r.__reactInternalMemoizedMergedChildContext=e,G(Ne),G(xe),Q(xe,e)):G(Ne),Q(Ne,n)}var gt=null,vo=!1,qo=!1;function Kc(e){gt===null?gt=[e]:gt.push(e)}function ih(e){vo=!0,Kc(e)}function Gt(){if(!qo&>!==null){qo=!0;var e=0,t=K;try{var n=gt;for(K=1;e>=i,l-=i,yt=1<<32-et(t)+l|n<L?(B=j,j=null):B=j.sibling;var R=p(h,j,v[L],w);if(R===null){j===null&&(j=B);break}e&&j&&R.alternate===null&&t(h,j),d=o(R,d,L),N===null?E=R:N.sibling=R,N=R,j=B}if(L===v.length)return n(h,j),Y&&Jt(h,L),E;if(j===null){for(;LL?(B=j,j=null):B=j.sibling;var H=p(h,j,R.value,w);if(H===null){j===null&&(j=B);break}e&&j&&H.alternate===null&&t(h,j),d=o(H,d,L),N===null?E=H:N.sibling=H,N=H,j=B}if(R.done)return n(h,j),Y&&Jt(h,L),E;if(j===null){for(;!R.done;L++,R=v.next())R=m(h,R.value,w),R!==null&&(d=o(R,d,L),N===null?E=R:N.sibling=R,N=R);return Y&&Jt(h,L),E}for(j=r(h,j);!R.done;L++,R=v.next())R=g(j,h,L,R.value,w),R!==null&&(e&&R.alternate!==null&&j.delete(R.key===null?L:R.key),d=o(R,d,L),N===null?E=R:N.sibling=R,N=R);return e&&j.forEach(function(ae){return t(h,ae)}),Y&&Jt(h,L),E}function b(h,d,v,w){if(typeof v=="object"&&v!==null&&v.type===Cn&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case tl:e:{for(var E=v.key,N=d;N!==null;){if(N.key===E){if(E=v.type,E===Cn){if(N.tag===7){n(h,N.sibling),d=l(N,v.props.children),d.return=h,h=d;break e}}else if(N.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Ot&&Va(E)===N.type){n(h,N.sibling),d=l(N,v.props),d.ref=lr(h,N,v),d.return=h,h=d;break e}n(h,N);break}else t(h,N);N=N.sibling}v.type===Cn?(d=sn(v.props.children,h.mode,w,v.key),d.return=h,h=d):(w=Ll(v.type,v.key,v.props,null,h.mode,w),w.ref=lr(h,d,v),w.return=h,h=w)}return i(h);case Sn:e:{for(N=v.key;d!==null;){if(d.key===N)if(d.tag===4&&d.stateNode.containerInfo===v.containerInfo&&d.stateNode.implementation===v.implementation){n(h,d.sibling),d=l(d,v.children||[]),d.return=h,h=d;break e}else{n(h,d);break}else t(h,d);d=d.sibling}d=ti(v,h.mode,w),d.return=h,h=d}return i(h);case Ot:return N=v._init,b(h,d,N(v._payload),w)}if(ar(v))return S(h,d,v,w);if(Jn(v))return x(h,d,v,w);fl(h,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,d!==null&&d.tag===6?(n(h,d.sibling),d=l(d,v),d.return=h,h=d):(n(h,d),d=ei(v,h.mode,w),d.return=h,h=d),i(h)):n(h,d)}return b}var Hn=Gc(!0),Yc=Gc(!1),Ul=Zt(null),Wl=null,Tn=null,Es=null;function _s(){Es=Tn=Wl=null}function js(e){var t=Ul.current;G(Ul),e._currentValue=t}function Mi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function In(e,t){Wl=e,Es=Tn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(je=!0),e.firstContext=null)}function Ue(e){var t=e._currentValue;if(Es!==e)if(e={context:e,memoizedValue:t,next:null},Tn===null){if(Wl===null)throw Error(_(308));Tn=e,Wl.dependencies={lanes:0,firstContext:e}}else Tn=Tn.next=e;return t}var rn=null;function Ns(e){rn===null?rn=[e]:rn.push(e)}function Xc(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Ns(t)):(n.next=l.next,l.next=n),t.interleaved=n,kt(e,r)}function kt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Mt=!1;function bs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Jc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function xt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Vt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,U&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,kt(e,n)}return l=r.interleaved,l===null?(t.next=t,Ns(r)):(t.next=l.next,l.next=t),r.interleaved=t,kt(e,n)}function kl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ps(e,n)}}function Ha(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Kl(e,t,n,r){var l=e.updateQueue;Mt=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,s=l.shared.pending;if(s!==null){l.shared.pending=null;var u=s,c=u.next;u.next=null,i===null?o=c:i.next=c,i=u;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==i&&(s===null?f.firstBaseUpdate=c:s.next=c,f.lastBaseUpdate=u))}if(o!==null){var m=l.baseState;i=0,f=c=u=null,s=o;do{var p=s.lane,g=s.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:g,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var S=e,x=s;switch(p=t,g=n,x.tag){case 1:if(S=x.payload,typeof S=="function"){m=S.call(g,m,p);break e}m=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=x.payload,p=typeof S=="function"?S.call(g,m,p):S,p==null)break e;m=te({},m,p);break e;case 2:Mt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=l.effects,p===null?l.effects=[s]:p.push(s))}else g={eventTime:g,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(c=f=g,u=m):f=f.next=g,i|=p;if(s=s.next,s===null){if(s=l.shared.pending,s===null)break;p=s,s=p.next,p.next=null,l.lastBaseUpdate=p,l.shared.pending=null}}while(!0);if(f===null&&(u=m),l.baseState=u,l.firstBaseUpdate=c,l.lastBaseUpdate=f,t=l.shared.interleaved,t!==null){l=t;do i|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);pn|=i,e.lanes=i,e.memoizedState=m}}function Ua(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Zo.transition;Zo.transition={};try{e(!1),t()}finally{K=n,Zo.transition=r}}function vd(){return We().memoizedState}function ch(e,t,n){var r=Ut(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},gd(e))yd(t,n);else if(n=Xc(e,t,n,r),n!==null){var l=Ce();tt(n,e,r,l),wd(n,t,r)}}function dh(e,t,n){var r=Ut(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(gd(e))yd(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,s=o(i,n);if(l.hasEagerState=!0,l.eagerState=s,rt(s,i)){var u=t.interleaved;u===null?(l.next=l,Ns(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=Xc(e,t,l,r),n!==null&&(l=Ce(),tt(n,e,r,l),wd(n,t,r))}}function gd(e){var t=e.alternate;return e===J||t!==null&&t===J}function yd(e,t){vr=Ql=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function wd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ps(e,n)}}var Zl={readContext:Ue,useCallback:ve,useContext:ve,useEffect:ve,useImperativeHandle:ve,useInsertionEffect:ve,useLayoutEffect:ve,useMemo:ve,useReducer:ve,useRef:ve,useState:ve,useDebugValue:ve,useDeferredValue:ve,useTransition:ve,useMutableSource:ve,useSyncExternalStore:ve,useId:ve,unstable_isNewReconciler:!1},fh={readContext:Ue,useCallback:function(e,t){return st().memoizedState=[e,t===void 0?null:t],e},useContext:Ue,useEffect:Ka,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,_l(4194308,4,dd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _l(4194308,4,e,t)},useInsertionEffect:function(e,t){return _l(4,2,e,t)},useMemo:function(e,t){var n=st();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=st();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ch.bind(null,J,e),[r.memoizedState,e]},useRef:function(e){var t=st();return e={current:e},t.memoizedState=e},useState:Wa,useDebugValue:$s,useDeferredValue:function(e){return st().memoizedState=e},useTransition:function(){var e=Wa(!1),t=e[0];return e=uh.bind(null,e[1]),st().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=J,l=st();if(Y){if(n===void 0)throw Error(_(407));n=n()}else{if(n=t(),fe===null)throw Error(_(349));fn&30||rd(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Ka(od.bind(null,r,o,e),[e]),r.flags|=2048,Ar(9,ld.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=st(),t=fe.identifierPrefix;if(Y){var n=wt,r=yt;n=(r&~(1<<32-et(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Fr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[at]=t,e[Rr]=r,Ld(e,t,!1,!1),t.stateNode=e;e:{switch(i=hi(n,r),n){case"dialog":Z("cancel",e),Z("close",e),l=r;break;case"iframe":case"object":case"embed":Z("load",e),l=r;break;case"video":case"audio":for(l=0;lKn&&(t.flags|=128,r=!0,or(o,!1),t.lanes=4194304)}else{if(!r)if(e=ql(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),or(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!Y)return ge(t),null}else 2*le()-o.renderingStartTime>Kn&&n!==1073741824&&(t.flags|=128,r=!0,or(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=le(),t.sibling=null,n=X.current,Q(X,r?n&1|2:n&1),t):(ge(t),null);case 22:case 23:return Vs(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Me&1073741824&&(ge(t),t.subtreeFlags&6&&(t.flags|=8192)):ge(t),null;case 24:return null;case 25:return null}throw Error(_(156,t.tag))}function xh(e,t){switch(Cs(t),t.tag){case 1:return be(t.type)&&zl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Un(),G(Ne),G(xe),Os(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ts(t),null;case 13:if(G(X),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(_(340));Vn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(X),null;case 4:return Un(),null;case 10:return js(t.type._context),null;case 22:case 23:return Vs(),null;case 24:return null;default:return null}}var hl=!1,we=!1,Sh=typeof WeakSet=="function"?WeakSet:Set,T=null;function On(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){re(e,t,r)}else n.current=null}function Bi(e,t,n){try{n()}catch(r){re(e,t,r)}}var ru=!1;function Ch(e,t){if(Ei=$l,e=$c(),xs(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,s=-1,u=-1,c=0,f=0,m=e,p=null;t:for(;;){for(var g;m!==n||l!==0&&m.nodeType!==3||(s=i+l),m!==o||r!==0&&m.nodeType!==3||(u=i+r),m.nodeType===3&&(i+=m.nodeValue.length),(g=m.firstChild)!==null;)p=m,m=g;for(;;){if(m===e)break t;if(p===n&&++c===l&&(s=i),p===o&&++f===r&&(u=i),(g=m.nextSibling)!==null)break;m=p,p=m.parentNode}m=g}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(_i={focusedElem:e,selectionRange:n},$l=!1,T=t;T!==null;)if(t=T,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,T=e;else for(;T!==null;){t=T;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var x=S.memoizedProps,b=S.memoizedState,h=t.stateNode,d=h.getSnapshotBeforeUpdate(t.elementType===t.type?x:Ge(t.type,x),b);h.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(_(163))}}catch(w){re(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,T=e;break}T=t.return}return S=ru,ru=!1,S}function gr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Bi(t,n,o)}l=l.next}while(l!==r)}}function wo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Vi(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Md(e){var t=e.alternate;t!==null&&(e.alternate=null,Md(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[at],delete t[Rr],delete t[bi],delete t[lh],delete t[oh])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Pd(e){return e.tag===5||e.tag===3||e.tag===4}function lu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Pd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Hi(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Al));else if(r!==4&&(e=e.child,e!==null))for(Hi(e,t,n),e=e.sibling;e!==null;)Hi(e,t,n),e=e.sibling}function Ui(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ui(e,t,n),e=e.sibling;e!==null;)Ui(e,t,n),e=e.sibling}var pe=null,Xe=!1;function Tt(e,t,n){for(n=n.child;n!==null;)Rd(e,t,n),n=n.sibling}function Rd(e,t,n){if(ut&&typeof ut.onCommitFiberUnmount=="function")try{ut.onCommitFiberUnmount(co,n)}catch{}switch(n.tag){case 5:we||On(n,t);case 6:var r=pe,l=Xe;pe=null,Tt(e,t,n),pe=r,Xe=l,pe!==null&&(Xe?(e=pe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):pe.removeChild(n.stateNode));break;case 18:pe!==null&&(Xe?(e=pe,n=n.stateNode,e.nodeType===8?Ko(e.parentNode,n):e.nodeType===1&&Ko(e,n),Lr(e)):Ko(pe,n.stateNode));break;case 4:r=pe,l=Xe,pe=n.stateNode.containerInfo,Xe=!0,Tt(e,t,n),pe=r,Xe=l;break;case 0:case 11:case 14:case 15:if(!we&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Bi(n,t,i),l=l.next}while(l!==r)}Tt(e,t,n);break;case 1:if(!we&&(On(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){re(n,t,s)}Tt(e,t,n);break;case 21:Tt(e,t,n);break;case 22:n.mode&1?(we=(r=we)||n.memoizedState!==null,Tt(e,t,n),we=r):Tt(e,t,n);break;default:Tt(e,t,n)}}function ou(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Sh),t.forEach(function(r){var l=Oh.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Ze(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=le()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Eh(r/1960))-r,10e?16:e,$t===null)var r=!1;else{if(e=$t,$t=null,Xl=0,U&6)throw Error(_(331));var l=U;for(U|=4,T=e.current;T!==null;){var o=T,i=o.child;if(T.flags&16){var s=o.deletions;if(s!==null){for(var u=0;ule()-zs?on(e,0):As|=n),Le(e,t)}function Vd(e,t){t===0&&(e.mode&1?(t=ol,ol<<=1,!(ol&130023424)&&(ol=4194304)):t=1);var n=Ce();e=kt(e,t),e!==null&&(Wr(e,t,n),Le(e,n))}function Th(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Vd(e,n)}function Oh(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(_(314))}r!==null&&r.delete(t),Vd(e,n)}var Hd;Hd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ne.current)je=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return je=!1,yh(e,t,n);je=!!(e.flags&131072)}else je=!1,Y&&t.flags&1048576&&qc(t,Hl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;jl(e,t),e=t.pendingProps;var l=Bn(t,xe.current);In(t,n),l=Ps(null,t,r,e,l,n);var o=Rs();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,be(r)?(o=!0,Bl(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,bs(t),l.updater=yo,t.stateNode=l,l._reactInternals=t,Ri(t,r,e,n),t=Fi(null,t,r,!0,o,n)):(t.tag=0,Y&&o&&Ss(t),Se(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(jl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Ph(r),e=Ge(r,e),l){case 0:t=$i(null,t,r,e,n);break e;case 1:t=eu(null,t,r,e,n);break e;case 11:t=Xa(null,t,r,e,n);break e;case 14:t=Ja(null,t,r,Ge(r.type,e),n);break e}throw Error(_(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ge(r,l),$i(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ge(r,l),eu(e,t,r,l,n);case 3:e:{if(jd(t),e===null)throw Error(_(387));r=t.pendingProps,o=t.memoizedState,l=o.element,Jc(e,t),Kl(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=Wn(Error(_(423)),t),t=tu(e,t,r,n,l);break e}else if(r!==l){l=Wn(Error(_(424)),t),t=tu(e,t,r,n,l);break e}else for(Pe=Bt(t.stateNode.containerInfo.firstChild),Re=t,Y=!0,Je=null,n=Yc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vn(),r===l){t=Et(e,t,n);break e}Se(e,t,r,n)}t=t.child}return t;case 5:return ed(t),e===null&&Oi(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,ji(r,l)?i=null:o!==null&&ji(r,o)&&(t.flags|=32),_d(e,t),Se(e,t,i,n),t.child;case 6:return e===null&&Oi(t),null;case 13:return Nd(e,t,n);case 4:return Ls(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Hn(t,null,r,n):Se(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ge(r,l),Xa(e,t,r,l,n);case 7:return Se(e,t,t.pendingProps,n),t.child;case 8:return Se(e,t,t.pendingProps.children,n),t.child;case 12:return Se(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,Q(Ul,r._currentValue),r._currentValue=i,o!==null)if(rt(o.value,i)){if(o.children===l.children&&!Ne.current){t=Et(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){i=o.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=xt(-1,n&-n),u.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?u.next=u:(u.next=f.next,f.next=u),c.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Mi(o.return,n,t),s.lanes|=n;break}u=u.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(_(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Mi(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}Se(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,In(t,n),l=Ue(l),r=r(l),t.flags|=1,Se(e,t,r,n),t.child;case 14:return r=t.type,l=Ge(r,t.pendingProps),l=Ge(r.type,l),Ja(e,t,r,l,n);case 15:return kd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ge(r,l),jl(e,t),t.tag=1,be(r)?(e=!0,Bl(t)):e=!1,In(t,n),xd(t,r,l),Ri(t,r,l,n),Fi(null,t,r,!0,e,n);case 19:return bd(e,t,n);case 22:return Ed(e,t,n)}throw Error(_(156,t.tag))};function Ud(e,t){return gc(e,t)}function Mh(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ve(e,t,n,r){return new Mh(e,t,n,r)}function Us(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ph(e){if(typeof e=="function")return Us(e)?1:0;if(e!=null){if(e=e.$$typeof,e===us)return 11;if(e===cs)return 14}return 2}function Wt(e,t){var n=e.alternate;return n===null?(n=Ve(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ll(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")Us(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Cn:return sn(n.children,l,o,t);case as:i=8,l|=8;break;case li:return e=Ve(12,n,t,l|2),e.elementType=li,e.lanes=o,e;case oi:return e=Ve(13,n,t,l),e.elementType=oi,e.lanes=o,e;case ii:return e=Ve(19,n,t,l),e.elementType=ii,e.lanes=o,e;case ec:return So(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Xu:i=10;break e;case Ju:i=9;break e;case us:i=11;break e;case cs:i=14;break e;case Ot:i=16,r=null;break e}throw Error(_(130,e==null?e:typeof e,""))}return t=Ve(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function sn(e,t,n,r){return e=Ve(7,e,r,t),e.lanes=n,e}function So(e,t,n,r){return e=Ve(22,e,r,t),e.elementType=ec,e.lanes=n,e.stateNode={isHidden:!1},e}function ei(e,t,n){return e=Ve(6,e,null,t),e.lanes=n,e}function ti(e,t,n){return t=Ve(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Rh(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Do(0),this.expirationTimes=Do(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Do(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Ws(e,t,n,r,l,o,i,s,u){return e=new Rh(e,t,n,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ve(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},bs(o),e}function Dh(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Qd)}catch(e){console.error(e)}}Qd(),Qu.exports=$e;var Zd=Qu.exports,pu=Zd;ni.createRoot=pu.createRoot,ni.hydrateRoot=pu.hydrateRoot;const zh="0.7.0.beta.1",to=(e,t)=>{const n=t&&t.map(r=>{var f,m,p;const l=encodeURI(r.criteriaKey),o=typeof((f=r.values)==null?void 0:f.value)=="object"?encodeURIComponent(JSON.stringify((m=r.values)==null?void 0:m.value)):encodeURIComponent((p=r.values)==null?void 0:p.value),i=e.indexOf("#"),s=i===-1?"":e.substr(i);e=i===-1?e:e.substr(0,i);const u=new RegExp("([?&])"+l+"=.*?(&|$)","i"),c=e.indexOf("?")!==-1?"&":"?";return e.match(u)?e=e.replace(u,"$1"+l+"="+o+"$2"):e=e+c+l+"="+o,e+s});return t?`${n[n.length-1]}&shared=true`:""},Bh=(e,t)=>{const n=e.querySelectorAll("fieldset"),r=Array.from(n).filter(l=>l.attributes.required);t(Array.from(r))},Vh=(e,t,n,r,l,o)=>{const i=document.getElementById(`${e}`);if(!i.attributes.required){const c=o.filter(x=>x.criteriaKey===e)[0].values.value,f=x=>{for(const b in x)if(x[b]!=="")return!1;return!0},m=[...t,i],p=[...new Set(m)],g=p.filter(x=>!x.id===e),S=l.filter(x=>!x.id.includes(e));f(c)&&r(S),f(c)?n(g):n(p)}},Hh=async(e,t)=>{const n=e.map(o=>Array.from(o.elements).filter(i=>{var s,u;return((s=i.attributes["data-datetype"])==null?void 0:s.value)==="year"?!i.value||i.value&&i.value.length!==4:((u=i.attributes["data-datetype"])==null?void 0:u.value)==="day"?!i.value||i.value&&i.value==="0":!i.value})).flat(),r=e.map(o=>{if(Array.from(o.elements).every(s=>{var u;return!((u=s.attributes.type)!=null&&u.value)==="radio"}))return[];const i=Array.from(o.elements).filter(s=>{var u;return((u=s.attributes.type)==null?void 0:u.value)==="radio"});return i.length>0&&i.every(s=>!s.checked)?o:[]}).flat(),l=[n,r].flat();return t(l),l.length===0},Uh=({hasError:e,criteriaKey:t,fieldSetId:n,useFilter:r=!1})=>{const l=e.map(i=>i.id!==void 0&&n&&n.includes(i.id)||i.id!==void 0&&i.id.includes(t)).includes(!0),o=e.filter(i=>i.id!==void 0&&i.id.includes(n));return r===!0?o:l},Ie={getRequiredFieldsets:Bh,getNonRequiredFieldsets:Vh,handleCheckForRequiredValues:Hh,handleInvalid:Uh},jt=e=>({__html:e}),Wh=(e,t,n=!0)=>{const r=o=>o!=null&&typeof o=="object",l=(o,i)=>{const s=Object.keys(o),u=Object.keys(i);if(s.length!==u.length)return!1;for(const c of s){const f=o[c],m=i[c],p=r(f)&&r(m);if(p&&!l(f,m)||!p&&f!==m)return!1}return!0};if(e.dataLayer){const o={...window.dataLayer[window.dataLayer.length-1]};delete o["gtm.uniqueEventId"],delete o.eventCallback,n===!0?l(o,t)===!1&&e.dataLayer.push(t):e.dataLayer.push(t)}},Kh={intro:{event:"bf_page_change",bfData:{pageView:"bf-intro",viewTitle:null}},lifeEventSection:{event:"bf_page_change",bfData:{pageView:"bf-form",viewTitle:null}},errors:{event:"bf_form_page_submit_attempt",bfData:{errors:null,errorCount:{number:null,string:null},formSuccess:!1}},modal:{event:"bf_page_change",bfData:{pageView:"bf-form-completion-modal",viewTitle:null}},verifySelections:{event:"bf_page_change",bfData:{pageView:"bf-verify-selections",viewTitle:null}},resultsView:{event:"bf_page_change",bfData:{pageView:["bf-result-eligible-view","bf-result-not-eligible-view"],viewTitle:null,eligibilityCount:{eligibleBenefitCount:null,moreInfoBenefitCount:null,notEligibleBenefitCount:null}}},openAllBenefitAccordions:{event:"bf_open_all_accordions",bfData:{accordionsOpen:!0}},benefitAccordion:{event:"bf_accordion_open",bfData:{benefitTitle:null}},benefitLink:{event:"bf_benefit_link",bfData:{benefitTitle:null}}},se={dataLayerPush:Wh,dataLayerStructure:Kh},qh=e=>{if(/^[0-9]*$/.test(`${e.target.value}`)){if(e.target.id.includes("day"))return e.target.value.length===2?/^(0?[1-9]|[12][0-9]|3[01])$/.test(`${e.target.value}`):e.target.value.length<3;if(e.target.id.includes("year")){const t=new Date().getFullYear().toString(),n=t.substring(t.length-1);return e.target.value.length===4?new RegExp(`^(19[0-9][0-9]|20[0-1][0-9]|20[0-2][0-${n}])$`).test(`${e.target.value}`):e.target.value.length<5}}if(e.target.id.includes("month"))return!0},Gd=({hide:e})=>{const t=document.querySelector(".bf-qual-survey");t&&t.hidden===!e&&(t.hidden=e)},Qh=e=>{const t=e&&new window.Date(Date.UTC(e.year,e.month,e.day));return new Date(t.getTime()+Math.abs(t.getTimezoneOffset()*6e4))},Zh={37:1,38:1,39:1,40:1},an=e=>{e.preventDefault()},Yd=e=>{if(Zh[e.keyCode])return an(e),!1},no={passive:!1},Xd="onwheel"in document.createElement("div")?"wheel":"mousewheel",Gh=()=>{window.addEventListener("DOMMouseScroll",an,!1),window.addEventListener(Xd,an,no),window.addEventListener("touchmove",an,no),window.addEventListener("keydown",Yd,!1)},Yh=()=>{window.removeEventListener("DOMMouseScroll",an,!1),window.removeEventListener(Xd,an,no),window.removeEventListener("touchmove",an,no),window.removeEventListener("keydown",Yd,!1)},hu={disableScroll:Yh,enableScroll:Gh},Xh=e=>{const n=e.innerWidth,r=!(n<1049);return{width:n,desktop:r}},Zr=({pageView:e,notEligibleView:t})=>{const n=Xh(window).desktop;M.useEffect(()=>{const r=document.getElementById("bf-track-by-name"),l=document.querySelector('[data-testid="app"]'),o=n?"desktop":"mobile",i=`var CE_SNAPSHOT_NAME = "${e}-${l==null?void 0:l.id}-${o}";`;r!==null&&(r.innerHTML=i)},[n,t])},ft=({className:e,defaultClasses:t,utilityClasses:n})=>{const[r,l]=M.useState("");return M.useEffect(()=>{const o=[e,t&&t.join(" "),n&&n.join(" ")];l(o.filter(i=>i!==void 0).join(" "))},[e,t,n]),r},mu=e=>{e.preventDefault(),e.returnValue=""},Jh=e=>{M.useEffect(()=>{e!==!1?window.addEventListener("beforeunload",mu):window.removeEventListener("beforeunload",mu)},[e])},Gr=()=>(M.useEffect(()=>{document.getElementById("index-reset")===null&&document.body.insertAdjacentHTML("afterBegin",'')},[]),M.useRef(document.getElementById("index-reset"))),e0=({selectedValue:e,conditional:t})=>{const n=t,r=/['>', '>=', '<', '<=', '=']/g,l=n.match(r),o=n.match(/\d+/)[0],i=new RegExp(`[${l}]`,"g"),s=n.replace(/-/g,"/").replace(i,""),u=/-/,c=u.test(n)?new window.Date(s):new window.Date(new Date().getFullYear()-o,new Date().getMonth(),new Date().getDate()),f=new window.Date(Date.UTC(e.year,e.month,e.day,0,0,0));return((p,g,S)=>{const x=S,b=new window.Date(Date.UTC(g.getUTCFullYear(),g.getUTCMonth(),g.getUTCDate(),0,0,0));if(u.test(n)===!1){const h=b.getTime()-x.getTime();switch(p.length&&p.join("")){case">":return h>0;case">=":return h>=0;case"<":return h<0;case"<=":return h<=0;case"=":return+h==0;default:return!1}}else switch(p.length&&p.join("")){case">":return x.getTime()>b.getTime();case">=":return x.getTime()>=b.getTime();case"<":return x.getTime()r.fieldset.criteriaKey===t),n===void 0&&e.forEach(r=>{r.fieldset.children.forEach(l=>{l.fieldsets[0].fieldset.criteriaKey===t&&(n=l.fieldsets[0])})}),n}function n0(e){return e.slice(e.indexOf("?")+1).split("&").map(r=>{const[l,o]=r.split("=");return{criteriaKey:l,value:decodeURIComponent(o)}})}const r0=()=>/^\/es/.test(window.location.pathname)?"es":"en";async function l0(e){let t;if(e===void 0){const r=window.location.search;t=new URLSearchParams(r),t.get("mode")==="draft"&&`${t.get("mode")}`;const l=window.location.pathname;e=l.substring(l.lastIndexOf("/")+1)}let n;{const r=document.getElementById("benefit-finder");if(r!==null){const l=r.getAttribute("json-data-file-path"),o=r.getAttribute("draft-json-data-file-path");n=t.get("mode")==="draft"?o:l}}if(n!==void 0)return await fetch(n).then(l=>{if(l!=null&&l.ok)return l.json();throw new Error(l==null?void 0:l.status)}).then(l=>l!=null&&l.data?l:"Something went wrong.").catch(l=>(console.log(l),"Something went wrong."))}const o0=e=>e&&e.fieldset.inputs[0].inputCriteria.values.find(t=>t.selected),i0=e=>{var t;return e&&((t=e.fieldset)==null?void 0:t.children.map(n=>n.fieldsets[0]))},s0=e=>e&&e.flatMap((t,n)=>t.section.fieldsets.flatMap(r=>{const l=q.SelectedValue(r);return l&&[{criteriaKey:r.fieldset.inputs[0].inputCriteria.id,values:l},q.Children(r)&&q.Children(r).flatMap(o=>q.SelectedValue(o)&&{criteriaKey:o.fieldset.criteriaKey,values:q.SelectedValue(o)}).filter(o=>o!==void 0)]})).flat().filter(t=>t!==void 0),a0=(e,t)=>{const n=t&&t.map(l=>(e.forEach(o=>{const i=l.benefit.eligibility.find(s=>s.criteriaKey===o.criteriaKey);if(i!==void 0){const s=()=>{let u;return typeof o.values.value=="object"?u=i.acceptableValues.find(c=>jo.DateEligibility({selectedValue:o.values.value,conditional:c})):u=i.acceptableValues.find(c=>c===o.values.value),u};i.isEligible=!!s()}}),l));return n&&[].concat(...n)};async function u0(e,t,n,r){const l={...t};jo.FindCriteria(l.section.fieldsets,e).then(o=>{var i;if(o)return((i=o.fieldset)==null?void 0:i.inputs[0].inputCriteria.values).forEach(u=>{u.value===r?u.selected=!0:delete u.selected}),n(l)}).catch(o=>(console.log(o),"Something went wrong."))}async function c0(e,t,n,r,l){const o={...t};jo.FindCriteria(o.section.fieldsets,e).then(i=>{var s;if(i){const u=(s=i.fieldset)==null?void 0:s.inputs[0].inputCriteria.values;return l?(l.includes("day")&&(u[0].value.day=r),l.includes("month")&&(u[0].value.month=r),l.includes("year")&&(u[0].value.year=r),u[0].value={...u[0].value}):u[0].value=r,(f=>{for(const m in f)if(f[m]!==null&&f[m]!==void 0&&f[m]!=="")return!0;return!1})(u[0].value)===!1?u[0].selected=!1:u[0].selected=!0,n(o)}}).catch(i=>(console.log(i),"Something went wrong."))}const d0=(e,t,n,r)=>{const l=jo.GetQueryParams(decodeURI(e));l.filter(o=>o.criteriaKey!==r),t.forEach(o=>{o.completed=!0,l.forEach(i=>{const s=i.value.includes("{")?JSON.parse(i.value):i.value;s!==void 0&&typeof s=="object"?Br.DataDate(i.criteriaKey,o,n,s):Br.Data(i.criteriaKey,o,n,s)})})},q={Children:i0,ElegibilityByCriteria:a0,LifeEvent:l0,Language:r0,SelectedValue:o0,SelectedValueAll:s0},Br={Data:u0,DataDate:c0,DataFromParams:d0},jo={FindCriteria:t0,DateEligibility:e0,GetQueryParams:n0};var Jd={exports:{}},f0="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",p0=f0,h0=p0;function ef(){}function tf(){}tf.resetWarningCache=ef;var m0=function(){function e(r,l,o,i,s,u){if(u!==h0){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:tf,resetWarningCache:ef};return n.PropTypes=n,n};Jd.exports=m0();var Zs=Jd.exports;const y=ao(Zs),Gs=({className:e,children:t,alertFieldRef:n,heading:r,description:l,type:o,hasError:i,noBackground:s,tabIndex:u,errorCount:c,errorList:f,submissionCount:m})=>{const p=o==="error"?["bf-usa-alert","usa-alert","bf-usa-alert--error","usa-alert--error",`${i===!1?"display-none":""}`]:["bf-usa-alert","usa-alert","bf-usa-alert--info","usa-alert--info",`${s?"no-background":""}`];return M.useEffect(()=>{const{errors:g}=se.dataLayerStructure;i&&f&&se.dataLayerPush(window,{event:g.event,bfData:{errors:f.map(S=>S==null?void 0:S.id).join(","),errorCount:{number:c,string:`${c}`},formSuccess:!1}},!1)},[m]),a.jsx("div",{className:ft({className:e,defaultClasses:p}),role:"alert",ref:n,tabIndex:u||0,"aria-live":i===!0?"assertive":"polite","aria-hidden":i===void 0?!1:!i,children:t?a.jsx("div",{className:"bf-usa-alert__body usa-alert__body",children:a.jsx("div",{className:"bf-usa-alert__text usa-alert__text",children:t})}):a.jsxs("div",{className:"bf-usa-alert__body usa-alert__body",children:[a.jsxs(ee,{headingLevel:2,className:"bf-usa-alert__heading usa-alert__heading","data-testid":"bf-alert-heading",children:[r==null?void 0:r.prefix," ",c," ",r==null?void 0:r.suffix]}),a.jsx("p",{className:"bf-usa-alert__text usa-alert__text",children:l}),a.jsx("ul",{"data-testid":"bf-errors-list",children:f&&f.map(g=>a.jsx("li",{"data-testid":"bf-errors-list-item",children:a.jsx("a",{href:`#${g.id}`,children:g.getAttribute("data-errormessage")||g.id})},g.id))})]})})};Gs.propTypes={className:y.string,children:y.any,alertFieldRef:y.any,heading:y.object,description:y.string,type:y.string,hasError:y.bool,noBackground:y.bool,tabIndex:y.number,errorCount:y.number};const v0=e=>e&&typeof e=="object"&&e.nodeType===1;var g0=(e,t)=>{if(typeof e!="string")return[];(!t||!v0(t))&&(t=window.document);const n=t.querySelectorAll(e);return Array.prototype.slice.call(n)};/* + */var C1=k,$e=x1;function j(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),go=Object.prototype.hasOwnProperty,S1=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,_a={},ja={};function E1(e){return go.call(ja,e)?!0:go.call(_a,e)?!1:S1.test(e)?ja[e]=!0:(_a[e]=!0,!1)}function k1(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function _1(e,t,n,r){if(t===null||typeof t>"u"||k1(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ke(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var me={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){me[e]=new ke(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];me[t]=new ke(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){me[e]=new ke(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){me[e]=new ke(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){me[e]=new ke(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){me[e]=new ke(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){me[e]=new ke(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){me[e]=new ke(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){me[e]=new ke(e,5,!1,e.toLowerCase(),null,!1,!1)});var Cs=/[\-:]([a-z])/g;function Ss(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Cs,Ss);me[t]=new ke(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Cs,Ss);me[t]=new ke(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Cs,Ss);me[t]=new ke(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){me[e]=new ke(e,1,!1,e.toLowerCase(),null,!1,!1)});me.xlinkHref=new ke("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){me[e]=new ke(e,1,!1,e.toLowerCase(),null,!0,!0)});function Es(e,t,n,r){var l=me.hasOwnProperty(t)?me[t]:null;(l!==null?l.type!==0:r||!(2s||l[o]!==i[s]){var a=` +`+l[o].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=o&&0<=s);break}}}finally{Hi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?hr(e):""}function j1(e){switch(e.tag){case 5:return hr(e.type);case 16:return hr("Lazy");case 13:return hr("Suspense");case 19:return hr("SuspenseList");case 0:case 2:case 15:return e=Wi(e.type,!1),e;case 11:return e=Wi(e.type.render,!1),e;case 1:return e=Wi(e.type,!0),e;default:return""}}function Co(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _n:return"Fragment";case kn:return"Portal";case yo:return"Profiler";case ks:return"StrictMode";case wo:return"Suspense";case xo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ec:return(e.displayName||"Context")+".Consumer";case Sc:return(e._context.displayName||"Context")+".Provider";case _s:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case js:return t=e.displayName||null,t!==null?t:Co(e.type)||"Memo";case Ot:t=e._payload,e=e._init;try{return Co(e(t))}catch{}}return null}function b1(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Co(t);case 8:return t===ks?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Qt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _c(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function N1(e){var t=_c(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function dl(e){e._valueTracker||(e._valueTracker=N1(e))}function jc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=_c(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Bl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function So(e,t){var n=t.checked;return te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Na(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Qt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function bc(e,t){t=t.checked,t!=null&&Es(e,"checked",t,!1)}function Eo(e,t){bc(e,t);var n=Qt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ko(e,t.type,n):t.hasOwnProperty("defaultValue")&&ko(e,t.type,Qt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function La(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ko(e,t,n){(t!=="number"||Bl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var mr=Array.isArray;function In(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=fl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Rr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var wr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},L1=["Webkit","ms","Moz","O"];Object.keys(wr).forEach(function(e){L1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),wr[t]=wr[e]})});function Tc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||wr.hasOwnProperty(e)&&wr[e]?(""+t).trim():t+"px"}function Oc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Tc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var P1=te({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function bo(e,t){if(t){if(P1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(j(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(j(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(j(61))}if(t.style!=null&&typeof t.style!="object")throw Error(j(62))}}function No(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Lo=null;function bs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Po=null,Fn=null,An=null;function Oa(e){if(e=rl(e)){if(typeof Po!="function")throw Error(j(280));var t=e.stateNode;t&&(t=ki(t),Po(e.stateNode,e.type,t))}}function Rc(e){Fn?An?An.push(e):An=[e]:Fn=e}function Mc(){if(Fn){var e=Fn,t=An;if(An=Fn=null,Oa(e),t)for(e=0;e>>=0,e===0?32:31-(z1(e)/U1|0)|0}var pl=64,hl=4194304;function vr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Hl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~l;s!==0?r=vr(s):(i&=o,i!==0&&(r=vr(i)))}else o=n&~l,o!==0?r=vr(o):i!==0&&(r=vr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function tl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-et(t),e[t]=n}function K1(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Cr),za=" ",Ua=!1;function ed(e,t){switch(e){case"keyup":return xh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function td(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var jn=!1;function Sh(e,t){switch(e){case"compositionend":return td(t);case"keypress":return t.which!==32?null:(Ua=!0,za);case"textInput":return e=t.data,e===za&&Ua?null:e;default:return null}}function Eh(e,t){if(jn)return e==="compositionend"||!$s&&ed(e,t)?(e=Xc(),Pl=Os=Dt=null,jn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ka(n)}}function id(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?id(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function od(){for(var e=window,t=Bl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Bl(e.document)}return t}function Ds(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Oh(e){var t=od(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&id(n.ownerDocument.documentElement,n)){if(r!==null&&Ds(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=qa(n,i);var o=qa(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,bn=null,Do=null,Er=null,Io=!1;function Qa(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Io||bn==null||bn!==Bl(r)||(r=bn,"selectionStart"in r&&Ds(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Er&&Ar(Er,r)||(Er=r,r=ql(Do,"onSelect"),0Pn||(e.current=Vo[Pn],Vo[Pn]=null,Pn--)}function Q(e,t){Pn++,Vo[Pn]=e.current,e.current=t}var Zt={},xe=Yt(Zt),Ne=Yt(!1),pn=Zt;function Hn(e,t){var n=e.type.contextTypes;if(!n)return Zt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Le(e){return e=e.childContextTypes,e!=null}function Zl(){G(Ne),G(xe)}function tu(e,t,n){if(xe.current!==Zt)throw Error(j(168));Q(xe,t),Q(Ne,n)}function md(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(j(108,b1(e)||"Unknown",l));return te({},n,r)}function Gl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Zt,pn=xe.current,Q(xe,e),Q(Ne,Ne.current),!0}function nu(e,t,n){var r=e.stateNode;if(!r)throw Error(j(169));n?(e=md(e,t,pn),r.__reactInternalMemoizedMergedChildContext=e,G(Ne),G(xe),Q(xe,e)):G(Ne),Q(Ne,n)}var yt=null,_i=!1,io=!1;function vd(e){yt===null?yt=[e]:yt.push(e)}function Hh(e){_i=!0,vd(e)}function Xt(){if(!io&&yt!==null){io=!0;var e=0,t=K;try{var n=yt;for(K=1;e>=o,l-=o,wt=1<<32-et(t)+l|n<T?(B=P,P=null):B=P.sibling;var D=m(f,P,v[T],w);if(D===null){P===null&&(P=B);break}e&&P&&D.alternate===null&&t(f,P),h=i(D,h,T),N===null?b=D:N.sibling=D,N=D,P=B}if(T===v.length)return n(f,P),Y&&tn(f,T),b;if(P===null){for(;TT?(B=P,P=null):B=P.sibling;var q=m(f,P,D.value,w);if(q===null){P===null&&(P=B);break}e&&P&&q.alternate===null&&t(f,P),h=i(q,h,T),N===null?b=q:N.sibling=q,N=q,P=B}if(D.done)return n(f,P),Y&&tn(f,T),b;if(P===null){for(;!D.done;T++,D=v.next())D=d(f,D.value,w),D!==null&&(h=i(D,h,T),N===null?b=D:N.sibling=D,N=D);return Y&&tn(f,T),b}for(P=r(f,P);!D.done;T++,D=v.next())D=y(P,f,T,D.value,w),D!==null&&(e&&D.alternate!==null&&P.delete(D.key===null?T:D.key),h=i(D,h,T),N===null?b=D:N.sibling=D,N=D);return e&&P.forEach(function(de){return t(f,de)}),Y&&tn(f,T),b}function S(f,h,v,w){if(typeof v=="object"&&v!==null&&v.type===_n&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case cl:e:{for(var b=v.key,N=h;N!==null;){if(N.key===b){if(b=v.type,b===_n){if(N.tag===7){n(f,N.sibling),h=l(N,v.props.children),h.return=f,f=h;break e}}else if(N.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Ot&&iu(b)===N.type){n(f,N.sibling),h=l(N,v.props),h.ref=dr(f,N,v),h.return=f,f=h;break e}n(f,N);break}else t(f,N);N=N.sibling}v.type===_n?(h=un(v.props.children,f.mode,w,v.key),h.return=f,f=h):(w=Fl(v.type,v.key,v.props,null,f.mode,w),w.ref=dr(f,h,v),w.return=f,f=w)}return o(f);case kn:e:{for(N=v.key;h!==null;){if(h.key===N)if(h.tag===4&&h.stateNode.containerInfo===v.containerInfo&&h.stateNode.implementation===v.implementation){n(f,h.sibling),h=l(h,v.children||[]),h.return=f,f=h;break e}else{n(f,h);break}else t(f,h);h=h.sibling}h=ho(v,f.mode,w),h.return=f,f=h}return o(f);case Ot:return N=v._init,S(f,h,N(v._payload),w)}if(mr(v))return x(f,h,v,w);if(or(v))return g(f,h,v,w);Cl(f,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,h!==null&&h.tag===6?(n(f,h.sibling),h=l(h,v),h.return=f,f=h):(n(f,h),h=po(v,f.mode,w),h.return=f,f=h),o(f)):n(f,h)}return S}var Kn=xd(!0),Cd=xd(!1),Jl=Yt(null),ei=null,Rn=null,Bs=null;function zs(){Bs=Rn=ei=null}function Us(e){var t=Jl.current;G(Jl),e._currentValue=t}function Ko(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function zn(e,t){ei=e,Bs=Rn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(be=!0),e.firstContext=null)}function He(e){var t=e._currentValue;if(Bs!==e)if(e={context:e,memoizedValue:t,next:null},Rn===null){if(ei===null)throw Error(j(308));Rn=e,ei.dependencies={lanes:0,firstContext:e}}else Rn=Rn.next=e;return t}var on=null;function Vs(e){on===null?on=[e]:on.push(e)}function Sd(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Vs(t)):(n.next=l.next,l.next=n),t.interleaved=n,kt(e,r)}function kt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Rt=!1;function Hs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ed(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ct(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ht(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,V&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,kt(e,n)}return l=r.interleaved,l===null?(t.next=t,Vs(r)):(t.next=l.next,l.next=t),r.interleaved=t,kt(e,n)}function Ol(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ls(e,n)}}function ou(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ti(e,t,n,r){var l=e.updateQueue;Rt=!1;var i=l.firstBaseUpdate,o=l.lastBaseUpdate,s=l.shared.pending;if(s!==null){l.shared.pending=null;var a=s,c=a.next;a.next=null,o===null?i=c:o.next=c,o=a;var p=e.alternate;p!==null&&(p=p.updateQueue,s=p.lastBaseUpdate,s!==o&&(s===null?p.firstBaseUpdate=c:s.next=c,p.lastBaseUpdate=a))}if(i!==null){var d=l.baseState;o=0,p=c=a=null,s=i;do{var m=s.lane,y=s.eventTime;if((r&m)===m){p!==null&&(p=p.next={eventTime:y,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var x=e,g=s;switch(m=t,y=n,g.tag){case 1:if(x=g.payload,typeof x=="function"){d=x.call(y,d,m);break e}d=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=g.payload,m=typeof x=="function"?x.call(y,d,m):x,m==null)break e;d=te({},d,m);break e;case 2:Rt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,m=l.effects,m===null?l.effects=[s]:m.push(s))}else y={eventTime:y,lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},p===null?(c=p=y,a=d):p=p.next=y,o|=m;if(s=s.next,s===null){if(s=l.shared.pending,s===null)break;m=s,s=m.next,m.next=null,l.lastBaseUpdate=m,l.shared.pending=null}}while(!0);if(p===null&&(a=d),l.baseState=a,l.firstBaseUpdate=c,l.lastBaseUpdate=p,t=l.shared.interleaved,t!==null){l=t;do o|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);vn|=o,e.lanes=o,e.memoizedState=d}}function su(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=so.transition;so.transition={};try{e(!1),t()}finally{K=n,so.transition=r}}function Bd(){return We().memoizedState}function Qh(e,t,n){var r=Kt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},zd(e))Ud(t,n);else if(n=Sd(e,t,n,r),n!==null){var l=Se();tt(n,e,r,l),Vd(n,t,r)}}function Zh(e,t,n){var r=Kt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(zd(e))Ud(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,s=i(o,n);if(l.hasEagerState=!0,l.eagerState=s,rt(s,o)){var a=t.interleaved;a===null?(l.next=l,Vs(t)):(l.next=a.next,a.next=l),t.interleaved=l;return}}catch{}finally{}n=Sd(e,t,l,r),n!==null&&(l=Se(),tt(n,e,r,l),Vd(n,t,r))}}function zd(e){var t=e.alternate;return e===J||t!==null&&t===J}function Ud(e,t){kr=ri=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Vd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ls(e,n)}}var li={readContext:He,useCallback:ve,useContext:ve,useEffect:ve,useImperativeHandle:ve,useInsertionEffect:ve,useLayoutEffect:ve,useMemo:ve,useReducer:ve,useRef:ve,useState:ve,useDebugValue:ve,useDeferredValue:ve,useTransition:ve,useMutableSource:ve,useSyncExternalStore:ve,useId:ve,unstable_isNewReconciler:!1},Gh={readContext:He,useCallback:function(e,t){return at().memoizedState=[e,t===void 0?null:t],e},useContext:He,useEffect:uu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ml(4194308,4,$d.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ml(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ml(4,2,e,t)},useMemo:function(e,t){var n=at();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=at();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Qh.bind(null,J,e),[r.memoizedState,e]},useRef:function(e){var t=at();return e={current:e},t.memoizedState=e},useState:au,useDebugValue:Xs,useDeferredValue:function(e){return at().memoizedState=e},useTransition:function(){var e=au(!1),t=e[0];return e=qh.bind(null,e[1]),at().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=J,l=at();if(Y){if(n===void 0)throw Error(j(407));n=n()}else{if(n=t(),ce===null)throw Error(j(349));mn&30||bd(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,uu(Ld.bind(null,r,i,e),[e]),r.flags|=2048,qr(9,Nd.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=at(),t=ce.identifierPrefix;if(Y){var n=xt,r=wt;n=(r&~(1<<32-et(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Wr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[ut]=t,e[Ur]=r,Jd(e,t,!1,!1),t.stateNode=e;e:{switch(o=No(n,r),n){case"dialog":Z("cancel",e),Z("close",e),l=r;break;case"iframe":case"object":case"embed":Z("load",e),l=r;break;case"video":case"audio":for(l=0;lZn&&(t.flags|=128,r=!0,fr(i,!1),t.lanes=4194304)}else{if(!r)if(e=ni(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),fr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Y)return ge(t),null}else 2*re()-i.renderingStartTime>Zn&&n!==1073741824&&(t.flags|=128,r=!0,fr(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=re(),t.sibling=null,n=X.current,Q(X,r?n&1|2:n&1),t):(ge(t),null);case 22:case 23:return la(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Oe&1073741824&&(ge(t),t.subtreeFlags&6&&(t.flags|=8192)):ge(t),null;case 24:return null;case 25:return null}throw Error(j(156,t.tag))}function l0(e,t){switch(Fs(t),t.tag){case 1:return Le(t.type)&&Zl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qn(),G(Ne),G(xe),qs(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ks(t),null;case 13:if(G(X),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(j(340));Wn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(X),null;case 4:return qn(),null;case 10:return Us(t.type._context),null;case 22:case 23:return la(),null;case 24:return null;default:return null}}var El=!1,we=!1,i0=typeof WeakSet=="function"?WeakSet:Set,O=null;function Mn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ne(e,t,r)}else n.current=null}function ts(e,t,n){try{n()}catch(r){ne(e,t,r)}}var xu=!1;function o0(e,t){if(Fo=Wl,e=od(),Ds(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,s=-1,a=-1,c=0,p=0,d=e,m=null;t:for(;;){for(var y;d!==n||l!==0&&d.nodeType!==3||(s=o+l),d!==i||r!==0&&d.nodeType!==3||(a=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(y=d.firstChild)!==null;)m=d,d=y;for(;;){if(d===e)break t;if(m===n&&++c===l&&(s=o),m===i&&++p===r&&(a=o),(y=d.nextSibling)!==null)break;d=m,m=d.parentNode}d=y}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ao={focusedElem:e,selectionRange:n},Wl=!1,O=t;O!==null;)if(t=O,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,O=e;else for(;O!==null;){t=O;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var g=x.memoizedProps,S=x.memoizedState,f=t.stateNode,h=f.getSnapshotBeforeUpdate(t.elementType===t.type?g:Ge(t.type,g),S);f.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(j(163))}}catch(w){ne(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,O=e;break}O=t.return}return x=xu,xu=!1,x}function _r(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&ts(t,n,i)}l=l.next}while(l!==r)}}function Ni(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ns(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function nf(e){var t=e.alternate;t!==null&&(e.alternate=null,nf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ut],delete t[Ur],delete t[Uo],delete t[Uh],delete t[Vh])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function rf(e){return e.tag===5||e.tag===3||e.tag===4}function Cu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||rf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function rs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ql));else if(r!==4&&(e=e.child,e!==null))for(rs(e,t,n),e=e.sibling;e!==null;)rs(e,t,n),e=e.sibling}function ls(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ls(e,t,n),e=e.sibling;e!==null;)ls(e,t,n),e=e.sibling}var pe=null,Xe=!1;function Tt(e,t,n){for(n=n.child;n!==null;)lf(e,t,n),n=n.sibling}function lf(e,t,n){if(ct&&typeof ct.onCommitFiberUnmount=="function")try{ct.onCommitFiberUnmount(xi,n)}catch{}switch(n.tag){case 5:we||Mn(n,t);case 6:var r=pe,l=Xe;pe=null,Tt(e,t,n),pe=r,Xe=l,pe!==null&&(Xe?(e=pe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):pe.removeChild(n.stateNode));break;case 18:pe!==null&&(Xe?(e=pe,n=n.stateNode,e.nodeType===8?lo(e.parentNode,n):e.nodeType===1&&lo(e,n),Ir(e)):lo(pe,n.stateNode));break;case 4:r=pe,l=Xe,pe=n.stateNode.containerInfo,Xe=!0,Tt(e,t,n),pe=r,Xe=l;break;case 0:case 11:case 14:case 15:if(!we&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&ts(n,t,o),l=l.next}while(l!==r)}Tt(e,t,n);break;case 1:if(!we&&(Mn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ne(n,t,s)}Tt(e,t,n);break;case 21:Tt(e,t,n);break;case 22:n.mode&1?(we=(r=we)||n.memoizedState!==null,Tt(e,t,n),we=r):Tt(e,t,n);break;default:Tt(e,t,n)}}function Su(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new i0),t.forEach(function(r){var l=m0.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Ze(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=re()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*a0(r/1960))-r,10e?16:e,It===null)var r=!1;else{if(e=It,It=null,si=0,V&6)throw Error(j(331));var l=V;for(V|=4,O=e.current;O!==null;){var i=O,o=i.child;if(O.flags&16){var s=i.deletions;if(s!==null){for(var a=0;are()-na?an(e,0):ta|=n),Pe(e,t)}function pf(e,t){t===0&&(e.mode&1?(t=hl,hl<<=1,!(hl&130023424)&&(hl=4194304)):t=1);var n=Se();e=kt(e,t),e!==null&&(tl(e,t,n),Pe(e,n))}function h0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),pf(e,n)}function m0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(j(314))}r!==null&&r.delete(t),pf(e,n)}var hf;hf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ne.current)be=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return be=!1,n0(e,t,n);be=!!(e.flags&131072)}else be=!1,Y&&t.flags&1048576&&gd(t,Xl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;$l(e,t),e=t.pendingProps;var l=Hn(t,xe.current);zn(t,n),l=Zs(null,t,r,e,l,n);var i=Gs();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Le(r)?(i=!0,Gl(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Hs(t),l.updater=bi,t.stateNode=l,l._reactInternals=t,Qo(t,r,e,n),t=Yo(null,t,r,!0,i,n)):(t.tag=0,Y&&i&&Is(t),Ce(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch($l(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=g0(r),e=Ge(r,e),l){case 0:t=Go(null,t,r,e,n);break e;case 1:t=gu(null,t,r,e,n);break e;case 11:t=mu(null,t,r,e,n);break e;case 14:t=vu(null,t,r,Ge(r.type,e),n);break e}throw Error(j(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ge(r,l),Go(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ge(r,l),gu(e,t,r,l,n);case 3:e:{if(Gd(t),e===null)throw Error(j(387));r=t.pendingProps,i=t.memoizedState,l=i.element,Ed(e,t),ti(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=Qn(Error(j(423)),t),t=yu(e,t,r,n,l);break e}else if(r!==l){l=Qn(Error(j(424)),t),t=yu(e,t,r,n,l);break e}else for(Re=Vt(t.stateNode.containerInfo.firstChild),Me=t,Y=!0,Je=null,n=Cd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Wn(),r===l){t=_t(e,t,n);break e}Ce(e,t,r,n)}t=t.child}return t;case 5:return kd(t),e===null&&Wo(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,Bo(r,l)?o=null:i!==null&&Bo(r,i)&&(t.flags|=32),Zd(e,t),Ce(e,t,o,n),t.child;case 6:return e===null&&Wo(t),null;case 13:return Yd(e,t,n);case 4:return Ws(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Kn(t,null,r,n):Ce(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ge(r,l),mu(e,t,r,l,n);case 7:return Ce(e,t,t.pendingProps,n),t.child;case 8:return Ce(e,t,t.pendingProps.children,n),t.child;case 12:return Ce(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,Q(Jl,r._currentValue),r._currentValue=o,i!==null)if(rt(i.value,o)){if(i.children===l.children&&!Ne.current){t=_t(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Ct(-1,n&-n),a.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var p=c.pending;p===null?a.next=a:(a.next=p.next,p.next=a),c.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Ko(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(j(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Ko(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ce(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,zn(t,n),l=He(l),r=r(l),t.flags|=1,Ce(e,t,r,n),t.child;case 14:return r=t.type,l=Ge(r,t.pendingProps),l=Ge(r.type,l),vu(e,t,r,l,n);case 15:return qd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ge(r,l),$l(e,t),t.tag=1,Le(r)?(e=!0,Gl(t)):e=!1,zn(t,n),Hd(t,r,l),Qo(t,r,l,n),Yo(null,t,r,!0,e,n);case 19:return Xd(e,t,n);case 22:return Qd(e,t,n)}throw Error(j(156,t.tag))};function mf(e,t){return zc(e,t)}function v0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ue(e,t,n,r){return new v0(e,t,n,r)}function oa(e){return e=e.prototype,!(!e||!e.isReactComponent)}function g0(e){if(typeof e=="function")return oa(e)?1:0;if(e!=null){if(e=e.$$typeof,e===_s)return 11;if(e===js)return 14}return 2}function qt(e,t){var n=e.alternate;return n===null?(n=Ue(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Fl(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")oa(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case _n:return un(n.children,l,i,t);case ks:o=8,l|=8;break;case yo:return e=Ue(12,n,t,l|2),e.elementType=yo,e.lanes=i,e;case wo:return e=Ue(13,n,t,l),e.elementType=wo,e.lanes=i,e;case xo:return e=Ue(19,n,t,l),e.elementType=xo,e.lanes=i,e;case kc:return Pi(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Sc:o=10;break e;case Ec:o=9;break e;case _s:o=11;break e;case js:o=14;break e;case Ot:o=16,r=null;break e}throw Error(j(130,e==null?e:typeof e,""))}return t=Ue(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function un(e,t,n,r){return e=Ue(7,e,r,t),e.lanes=n,e}function Pi(e,t,n,r){return e=Ue(22,e,r,t),e.elementType=kc,e.lanes=n,e.stateNode={isHidden:!1},e}function po(e,t,n){return e=Ue(6,e,null,t),e.lanes=n,e}function ho(e,t,n){return t=Ue(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function y0(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=qi(0),this.expirationTimes=qi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qi(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function sa(e,t,n,r,l,i,o,s,a){return e=new y0(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ue(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Hs(i),e}function w0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(wf)}catch(e){console.error(e)}}wf(),yc.exports=De;var xf=yc.exports,Pu=xf;vo.createRoot=Pu.createRoot,vo.hydrateRoot=Pu.hydrateRoot;/** + * @remix-run/router v1.20.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Zr(){return Zr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Cf(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function _0(){return Math.random().toString(36).substr(2,8)}function Ou(e,t){return{usr:e.state,key:e.key,idx:t}}function us(e,t,n,r){return n===void 0&&(n=null),Zr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?er(t):t,{state:n,key:t&&t.key||r||_0()})}function Sf(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function er(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function j0(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:i=!1}=r,o=l.history,s=Ft.Pop,a=null,c=p();c==null&&(c=0,o.replaceState(Zr({},o.state,{idx:c}),""));function p(){return(o.state||{idx:null}).idx}function d(){s=Ft.Pop;let S=p(),f=S==null?null:S-c;c=S,a&&a({action:s,location:g.location,delta:f})}function m(S,f){s=Ft.Push;let h=us(g.location,S,f);c=p()+1;let v=Ou(h,c),w=g.createHref(h);try{o.pushState(v,"",w)}catch(b){if(b instanceof DOMException&&b.name==="DataCloneError")throw b;l.location.assign(w)}i&&a&&a({action:s,location:g.location,delta:1})}function y(S,f){s=Ft.Replace;let h=us(g.location,S,f);c=p();let v=Ou(h,c),w=g.createHref(h);o.replaceState(v,"",w),i&&a&&a({action:s,location:g.location,delta:0})}function x(S){let f=l.location.origin!=="null"?l.location.origin:l.location.href,h=typeof S=="string"?S:Sf(S);return h=h.replace(/ $/,"%20"),ae(f,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,f)}let g={get action(){return s},get location(){return e(l,o)},listen(S){if(a)throw new Error("A history only accepts one active listener");return l.addEventListener(Tu,d),a=S,()=>{l.removeEventListener(Tu,d),a=null}},createHref(S){return t(l,S)},createURL:x,encodeLocation(S){let f=x(S);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:m,replace:y,go(S){return o.go(S)}};return g}var Ru;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ru||(Ru={}));function b0(e,t,n){return n===void 0&&(n="/"),N0(e,t,n,!1)}function N0(e,t,n,r){let l=typeof t=="string"?er(t):t,i=_f(l.pathname||"/",n);if(i==null)return null;let o=Ef(e);L0(o);let s=null;for(let a=0;s==null&&a{let a={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};a.relativePath.startsWith("/")&&(ae(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let c=cn([r,a.relativePath]),p=n.concat(a);i.children&&i.children.length>0&&(ae(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Ef(i.children,t,p,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:D0(c,i.index),routesMeta:p})};return e.forEach((i,o)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))l(i,o);else for(let a of kf(i.path))l(i,o,a)}),t}function kf(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return l?[i,""]:[i];let o=kf(r.join("/")),s=[];return s.push(...o.map(a=>a===""?i:[i,a].join("/"))),l&&s.push(...o),s.map(a=>e.startsWith("/")&&a===""?"/":a)}function L0(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:I0(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const P0=/^:[\w-]+$/,T0=3,O0=2,R0=1,M0=10,$0=-2,Mu=e=>e==="*";function D0(e,t){let n=e.split("/"),r=n.length;return n.some(Mu)&&(r+=$0),t&&(r+=O0),n.filter(l=>!Mu(l)).reduce((l,i)=>l+(P0.test(i)?T0:i===""?R0:M0),r)}function I0(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function F0(e,t,n){let{routesMeta:r}=e,l={},i="/",o=[];for(let s=0;s{let{paramName:m,isOptional:y}=p;if(m==="*"){let g=s[d]||"";o=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const x=s[d];return y&&!x?c[m]=void 0:c[m]=(x||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:o,pattern:e}}function A0(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Cf(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,a)=>(r.push({paramName:s,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function B0(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Cf(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function _f(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function z0(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?er(e):e;return{pathname:n?n.startsWith("/")?n:U0(n,t):t,search:q0(r),hash:Q0(l)}}function U0(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function mo(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function V0(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function H0(e,t){let n=V0(e);return t?n.map((r,l)=>l===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function W0(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=er(e):(l=Zr({},e),ae(!l.pathname||!l.pathname.includes("?"),mo("?","pathname","search",l)),ae(!l.pathname||!l.pathname.includes("#"),mo("#","pathname","hash",l)),ae(!l.search||!l.search.includes("#"),mo("#","search","hash",l)));let i=e===""||l.pathname==="",o=i?"/":l.pathname,s;if(o==null)s=n;else{let d=t.length-1;if(!r&&o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),d-=1;l.pathname=m.join("/")}s=d>=0?t[d]:"/"}let a=z0(l,s),c=o&&o!=="/"&&o.endsWith("/"),p=(i||o===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(c||p)&&(a.pathname+="/"),a}const cn=e=>e.join("/").replace(/\/\/+/g,"/"),K0=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),q0=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Q0=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Z0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const jf=["post","put","patch","delete"];new Set(jf);const G0=["get",...jf];new Set(G0);/** + * React Router v6.27.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Gr(){return Gr=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),k.useCallback(function(c,p){if(p===void 0&&(p={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let d=W0(c,JSON.parse(o),i,p.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:cn([t,d.pathname])),(p.replace?r.replace:r.push)(d,p.state,p)},[t,r,o,i,e])}function J0(e,t){return em(e,t)}function em(e,t,n,r){Ii()||ae(!1);let{navigator:l}=k.useContext($i),{matches:i}=k.useContext(tr),o=i[i.length-1],s=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let c=nr(),p;if(t){var d;let S=typeof t=="string"?er(t):t;a==="/"||(d=S.pathname)!=null&&d.startsWith(a)||ae(!1),p=S}else p=c;let m=p.pathname||"/",y=m;if(a!=="/"){let S=a.replace(/^\//,"").split("/");y="/"+m.replace(/^\//,"").split("/").slice(S.length).join("/")}let x=b0(e,{pathname:y}),g=im(x&&x.map(S=>Object.assign({},S,{params:Object.assign({},s,S.params),pathname:cn([a,l.encodeLocation?l.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?a:cn([a,l.encodeLocation?l.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),i,n,r);return t&&g?k.createElement(Di.Provider,{value:{location:Gr({pathname:"/",search:"",hash:"",state:null,key:"default"},p),navigationType:Ft.Pop}},g):g}function tm(){let e=um(),t=Z0(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),n?k.createElement("pre",{style:l},n):null,null)}const nm=k.createElement(tm,null);class rm extends k.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?k.createElement(tr.Provider,{value:this.props.routeContext},k.createElement(bf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function lm(e){let{routeContext:t,match:n,children:r}=e,l=k.useContext(da);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),k.createElement(tr.Provider,{value:t},r)}function im(e,t,n,r){var l;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,s=(l=n)==null?void 0:l.errors;if(s!=null){let p=o.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);p>=0||ae(!1),o=o.slice(0,Math.min(o.length,p+1))}let a=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let p=0;p=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((p,d,m)=>{let y,x=!1,g=null,S=null;n&&(y=s&&d.route.id?s[d.route.id]:void 0,g=d.route.errorElement||nm,a&&(c<0&&m===0?(x=!0,S=null):c===m&&(x=!0,S=d.route.hydrateFallbackElement||null)));let f=t.concat(o.slice(0,m+1)),h=()=>{let v;return y?v=g:x?v=S:d.route.Component?v=k.createElement(d.route.Component,null):d.route.element?v=d.route.element:v=p,k.createElement(lm,{match:d,routeContext:{outlet:p,matches:f,isDataRoute:n!=null},children:v})};return n&&(d.route.ErrorBoundary||d.route.errorElement||m===0)?k.createElement(rm,{location:n.location,revalidation:n.revalidation,component:g,error:y,children:h(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):h()},null)}var Lf=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Lf||{}),ci=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ci||{});function om(e){let t=k.useContext(da);return t||ae(!1),t}function sm(e){let t=k.useContext(Y0);return t||ae(!1),t}function am(e){let t=k.useContext(tr);return t||ae(!1),t}function Pf(e){let t=am(),n=t.matches[t.matches.length-1];return n.route.id||ae(!1),n.route.id}function um(){var e;let t=k.useContext(bf),n=sm(ci.UseRouteError),r=Pf(ci.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function cm(){let{router:e}=om(Lf.UseNavigateStable),t=Pf(ci.UseNavigateStable),n=k.useRef(!1);return Nf(()=>{n.current=!0}),k.useCallback(function(l,i){i===void 0&&(i={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,Gr({fromRouteId:t},i)))},[e,t])}function yr(e){ae(!1)}function dm(e){let{basename:t="/",children:n=null,location:r,navigationType:l=Ft.Pop,navigator:i,static:o=!1,future:s}=e;Ii()&&ae(!1);let a=t.replace(/^\/*/,"/"),c=k.useMemo(()=>({basename:a,navigator:i,static:o,future:Gr({v7_relativeSplatPath:!1},s)}),[a,s,i,o]);typeof r=="string"&&(r=er(r));let{pathname:p="/",search:d="",hash:m="",state:y=null,key:x="default"}=r,g=k.useMemo(()=>{let S=_f(p,a);return S==null?null:{location:{pathname:S,search:d,hash:m,state:y,key:x},navigationType:l}},[a,p,d,m,y,x,l]);return g==null?null:k.createElement($i.Provider,{value:c},k.createElement(Di.Provider,{children:n,value:g}))}function fm(e){let{children:t,location:n}=e;return J0(cs(t),n)}new Promise(()=>{});function cs(e,t){t===void 0&&(t=[]);let n=[];return k.Children.forEach(e,(r,l)=>{if(!k.isValidElement(r))return;let i=[...t,l];if(r.type===k.Fragment){n.push.apply(n,cs(r.props.children,i));return}r.type!==yr&&ae(!1),!r.props.index||!r.props.children||ae(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=cs(r.props.children,i)),n.push(o)}),n}/** + * React Router DOM v6.27.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */const pm="6";try{window.__reactRouterVersion=pm}catch{}const hm="startTransition",Du=p1[hm];function mm(e){let{basename:t,children:n,future:r,window:l}=e,i=k.useRef();i.current==null&&(i.current=k0({window:l,v5Compat:!0}));let o=i.current,[s,a]=k.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},p=k.useCallback(d=>{c&&Du?Du(()=>a(d)):a(d)},[a,c]);return k.useLayoutEffect(()=>o.listen(p),[o,p]),k.createElement(dm,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:o,future:r})}var Iu;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Iu||(Iu={}));var Fu;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Fu||(Fu={}));const vm="0.8.0.beta.1",pt=({className:e,defaultClasses:t,utilityClasses:n})=>{const[r,l]=k.useState("");return k.useEffect(()=>{const i=[e,t&&t.join(" "),n&&n.join(" ")];l(i.filter(o=>o!==void 0).join(" "))},[e,t,n]),r},Au=e=>{e.preventDefault(),e.returnValue=""},gm=e=>{k.useEffect(()=>{e!==!1?window.addEventListener("beforeunload",Au):window.removeEventListener("beforeunload",Au)},[e])},rr=()=>(k.useEffect(()=>{document.getElementById("index-reset")===null&&document.body.insertAdjacentHTML("afterBegin",'')},[]),k.useRef(document.getElementById("index-reset"))),di=(e,t)=>{const n=t&&t.map(r=>{var p,d,m;const l=encodeURI(r.criteriaKey),i=typeof((p=r.values)==null?void 0:p.value)=="object"?encodeURIComponent(JSON.stringify((d=r.values)==null?void 0:d.value)):encodeURIComponent((m=r.values)==null?void 0:m.value),o=e.indexOf("#"),s=o===-1?"":e.substr(o);e=o===-1?e:e.substr(0,o);const a=new RegExp("([?&])"+l+"=.*?(&|$)","i"),c=e.indexOf("?")!==-1?"&":"?";return e.match(a)?e=e.replace(a,"$1"+l+"="+i+"$2"):e=e+c+l+"="+i,e+s});return t?`${n[n.length-1]}&shared=true`:""},ym=({loading:e,parentElementID:t})=>{document.querySelector(`[data-testid="${t}"]`);const n=document.createElement("div");n.dataset.testid="dom-ready"},wm=(e,t)=>{const n=e.querySelectorAll("fieldset"),r=Array.from(n).filter(l=>l.attributes.required);t(Array.from(r))},xm=(e,t,n,r,l,i)=>{const o=document.getElementById(`${e}`);if(!o.attributes.required){const c=i.filter(g=>g.criteriaKey===e)[0].values.value,p=g=>{for(const S in g)if(g[S]!=="")return!1;return!0},d=[...t,o],m=[...new Set(d)],y=m.filter(g=>!g.id===e),x=l.filter(g=>!g.id.includes(e));p(c)&&r(x),p(c)?n(y):n(m)}},Cm=async(e,t)=>{const n=e.map(i=>Array.from(i.elements).filter(o=>{var s,a;return((s=o.attributes["data-datetype"])==null?void 0:s.value)==="year"?!o.value||o.value&&o.value.length!==4:((a=o.attributes["data-datetype"])==null?void 0:a.value)==="day"?!o.value||o.value&&o.value==="0":!o.value})).flat(),r=e.map(i=>{if(Array.from(i.elements).every(s=>{var a;return!((a=s.attributes.type)!=null&&a.value)==="radio"}))return[];const o=Array.from(i.elements).filter(s=>{var a;return((a=s.attributes.type)==null?void 0:a.value)==="radio"});return o.length>0&&o.every(s=>!s.checked)?i:[]}).flat(),l=[n,r].flat();return t(l),l.length===0},Sm=({hasError:e,criteriaKey:t,fieldSetId:n,useFilter:r=!1})=>{const l=e.map(o=>o.id!==void 0&&n&&n.includes(o.id)||o.id!==void 0&&o.id.includes(t)).includes(!0),i=e.filter(o=>o.id!==void 0&&o.id.includes(n));return r===!0?i:l},Fe={getRequiredFieldsets:wm,getNonRequiredFieldsets:xm,handleCheckForRequiredValues:Cm,handleInvalid:Sm},Tf=e=>e.toLowerCase().replace(/[^a-zA-Z0-9\s]/g,"").replace(/ /g,"-"),bt=e=>({__html:e}),Em=(e,t,n=!0)=>{const r=i=>i!=null&&typeof i=="object",l=(i,o)=>{const s=Object.keys(i),a=Object.keys(o);if(s.length!==a.length)return!1;for(const c of s){const p=i[c],d=o[c],m=r(p)&&r(d);if(m&&!l(p,d)||!m&&p!==d)return!1}return!0};if(e.dataLayer){const i={...window.dataLayer[window.dataLayer.length-1]};delete i["gtm.uniqueEventId"],delete i.eventCallback,n===!0?l(i,t)===!1&&e.dataLayer.push(t):e.dataLayer.push(t)}},km={intro:{event:"bf_page_change",bfData:{pageView:"bf-intro",viewTitle:null}},lifeEventSection:{event:"bf_page_change",bfData:{pageView:"bf-form",viewTitle:null}},errors:{event:"bf_form_page_submit_attempt",bfData:{errors:null,errorCount:{number:null,string:null},formSuccess:!1}},modal:{event:"bf_page_change",bfData:{pageView:"bf-form-completion-modal",viewTitle:null}},verifySelections:{event:"bf_page_change",bfData:{pageView:"bf-verify-selections",viewTitle:null}},resultsView:{event:"bf_page_change",bfData:{pageView:["bf-result-eligible-view","bf-result-not-eligible-view"],viewTitle:null,eligibilityCount:{eligibleBenefitCount:null,moreInfoBenefitCount:null,notEligibleBenefitCount:null}}},openAllBenefitAccordions:{event:"bf_open_all_accordions",bfData:{accordionsOpen:!0}},benefitAccordion:{event:"bf_accordion_open",bfData:{benefitTitle:null}},benefitLink:{event:"bf_benefit_link",bfData:{benefitTitle:null}}},ie={dataLayerPush:Em,dataLayerStructure:km},_m=e=>{if(/^[0-9]*$/.test(`${e.target.value}`)){if(e.target.id.includes("day"))return e.target.value.length===2?/^(0?[1-9]|[12][0-9]|3[01])$/.test(`${e.target.value}`):e.target.value.length<3;if(e.target.id.includes("year")){const t=new Date().getFullYear().toString(),n=t.substring(t.length-1);return e.target.value.length===4?new RegExp(`^(19[0-9][0-9]|20[0-1][0-9]|20[0-2][0-${n}])$`).test(`${e.target.value}`):e.target.value.length<5}}if(e.target.id.includes("month"))return!0},fa=({hide:e})=>{const t=document.querySelector(".bf-qual-survey");t&&t.hidden===!e&&(t.hidden=e)},jm=e=>{const t=e&&new window.Date(Date.UTC(e.year,e.month,e.day));return new Date(t.getTime()+Math.abs(t.getTimezoneOffset()*6e4))},bm={37:1,38:1,39:1,40:1},dn=e=>{e.preventDefault()},Of=e=>{if(bm[e.keyCode])return dn(e),!1},fi={passive:!1},Rf="onwheel"in document.createElement("div")?"wheel":"mousewheel",Nm=()=>{window.addEventListener("DOMMouseScroll",dn,!1),window.addEventListener(Rf,dn,fi),window.addEventListener("touchmove",dn,fi),window.addEventListener("keydown",Of,!1)},Lm=()=>{window.removeEventListener("DOMMouseScroll",dn,!1),window.removeEventListener(Rf,dn,fi),window.removeEventListener("touchmove",dn,fi),window.removeEventListener("keydown",Of,!1)},Bu={disableScroll:Lm,enableScroll:Nm},Pm=({selectedValue:e,conditional:t})=>{const n=t,r=/['>', '>=', '<', '<=', '=']/g,l=n.match(r),i=n.match(/\d+/)[0],o=new RegExp(`[${l}]`,"g"),s=n.replace(/-/g,"/").replace(o,""),a=/-/,c=a.test(n)?new window.Date(s):new window.Date(new Date().getFullYear()-i,new Date().getMonth(),new Date().getDate()),p=new window.Date(Date.UTC(e.year,e.month,e.day,0,0,0));return((m,y,x)=>{const g=x,S=new window.Date(Date.UTC(y.getUTCFullYear(),y.getUTCMonth(),y.getUTCDate(),0,0,0));if(a.test(n)===!1){const f=S.getTime()-g.getTime();switch(m.length&&m.join("")){case">":return f>0;case">=":return f>=0;case"<":return f<0;case"<=":return f<=0;case"=":return+f==0;default:return!1}}else switch(m.length&&m.join("")){case">":return g.getTime()>S.getTime();case">=":return g.getTime()>=S.getTime();case"<":return g.getTime()r.fieldset.criteriaKey===t),n===void 0&&e.forEach(r=>{r.fieldset.children.forEach(l=>{l.fieldsets[0].fieldset.criteriaKey===t&&(n=l.fieldsets[0])})}),n}function Om(e){return e.slice(e.indexOf("?")+1).split("&").map(r=>{const[l,i]=r.split("=");return{criteriaKey:l,value:decodeURIComponent(i)}})}const Rm=()=>/^\/es/.test(window.location.pathname)?"es":"en",Mm=(e,t,n)=>{const r=e.location.pathname.split("/");r.slice(1);const l=r.pop(),i=r.join("/"),o=n==null?void 0:n.map(d=>Tf(d.section.heading)),s=t==="es"?"revisar-selecciónes":"verify-selections",a=t==="es"?"resultados":"results",c=t==="es"?`${a}/no-es-elegible`:`${a}/not-eligible`;return{basePath:i,indexPath:l,formPaths:o,verifySelectionsPath:s,resultsPaths:{resultsPath:a,notEligiblePath:c}}};async function $m(e){let t;if(e===void 0){const r=window.location.search;t=new URLSearchParams(r),t.get("mode")==="draft"&&`${t.get("mode")}`,e=window.location.pathname.split("/").pop()}let n;{const r=document.getElementById("benefit-finder");if(r!==null){const l=r.getAttribute("json-data-file-path"),i=r.getAttribute("draft-json-data-file-path");n=t.get("mode")==="draft"?i:l}}if(n!==void 0)return await fetch(n).then(l=>{if(l!=null&&l.ok)return l.json();throw new Error(l==null?void 0:l.status)}).then(l=>l!=null&&l.data?l:"Something went wrong.").catch(l=>(console.error(l),"Something went wrong."))}const Dm=e=>e&&e.fieldset.inputs[0].inputCriteria.values.find(t=>t.selected),Im=e=>{var t;return e&&((t=e.fieldset)==null?void 0:t.children.map(n=>n.fieldsets[0]))},Fm=e=>e&&e.flatMap((t,n)=>t.section.fieldsets.flatMap(r=>{const l=H.SelectedValue(r);return l&&[{criteriaKey:r.fieldset.inputs[0].inputCriteria.id,values:l},H.Children(r)&&H.Children(r).flatMap(i=>H.SelectedValue(i)&&{criteriaKey:i.fieldset.criteriaKey,values:H.SelectedValue(i)}).filter(i=>i!==void 0)]})).flat().filter(t=>t!==void 0),Am=(e,t)=>{const n=t.length>0&&t.map(l=>(e.forEach(i=>{const o=l.benefit.eligibility.find(s=>s.criteriaKey===i.criteriaKey);if(o!==void 0){const s=()=>{let a;return typeof i.values.value=="object"?a=o.acceptableValues.find(c=>Fi.DateEligibility({selectedValue:i.values.value,conditional:c})):a=o.acceptableValues.find(c=>c===i.values.value),a};o.isEligible=!!s()}}),l));return n&&[].concat(...n)};async function Bm(e,t,n,r){const l={...t};Fi.FindCriteria(l.section.fieldsets,e).then(i=>{var o;if(i)return((o=i.fieldset)==null?void 0:o.inputs[0].inputCriteria.values).forEach(a=>{a.value===r?a.selected=!0:delete a.selected}),n(l)}).catch(i=>(console.error(i),"Something went wrong."))}async function zm(e,t,n,r,l){const i={...t};Fi.FindCriteria(i.section.fieldsets,e).then(o=>{var s;if(o){const a=(s=o.fieldset)==null?void 0:s.inputs[0].inputCriteria.values;return l?(l.includes("day")&&(a[0].value.day=r),l.includes("month")&&(a[0].value.month=r),l.includes("year")&&(a[0].value.year=r),a[0].value={...a[0].value}):a[0].value=r,(p=>{for(const d in p)if(p[d]!==null&&p[d]!==void 0&&p[d]!=="")return!0;return!1})(a[0].value)===!1?a[0].selected=!1:a[0].selected=!0,n(i)}}).catch(o=>(console.error(o),"Something went wrong."))}const Um=(e,t,n,r,l)=>{const i=Fi.GetQueryParams(decodeURI(e));i.filter(a=>a.criteriaKey!==l);const o=(a,c)=>a[c];async function s(){await Promise.all(t.map(async a=>{a.completed=!0,await Promise.all(i.map(async c=>{const p=c.value.includes("{")?JSON.parse(c.value):c.value;p!==void 0&&typeof p=="object"?Yr.DataDate(c.criteriaKey,a,o,p):Yr.Data(c.criteriaKey,a,o,p)}))})),n(H.ElegibilityByCriteria(H.SelectedValueAll(t),r))}s()},Vm=async(e,t)=>{const n=r=>r.map(l=>{const i=l.benefit.eligibility.filter(c=>c.isEligible===!0),o=l.benefit.eligibility.filter(c=>c.isEligible===!1),s=l.benefit.eligibility.filter(c=>c.isEligible===void 0);return i.length===l.benefit.eligibility.length?t[0]:o.length===0&&s.length>0?t[1]:t[2]});try{const r=await n(e),l=(o,s)=>{const a=o.filter(c=>c===s);return{number:a.length,string:`${a.length}`}};return{eligibleBenefitCount:l(r,t[0]),moreInfoBenefitCount:l(r,t[1]),notEligibleBenefitCount:l(r,t[2])}}catch(r){console.error(r)}},H={BenefitsEligibilityCounts:Vm,Children:Im,ElegibilityByCriteria:Am,LifeEvent:$m,Language:Rm,Routes:Mm,SelectedValue:Dm,SelectedValueAll:Fm},Yr={Data:Bm,DataDate:zm,DataFromParams:Um},Fi={FindCriteria:Tm,DateEligibility:Pm,GetQueryParams:Om};var Mf={exports:{}},Hm="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Wm=Hm,Km=Wm;function $f(){}function Df(){}Df.resetWarningCache=$f;var qm=function(){function e(r,l,i,o,s,a){if(a!==Km){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Df,resetWarningCache:$f};return n.PropTypes=n,n};Mf.exports=qm();var pa=Mf.exports;const C=yi(pa),ha=({className:e,children:t,alertFieldRef:n,heading:r,description:l,type:i,hasError:o,noBackground:s,tabIndex:a,errorCount:c,errorList:p,submissionCount:d})=>{const m=i==="error"?["bf-usa-alert","usa-alert","bf-usa-alert--error","usa-alert--error",`${o===!1?"display-none":""}`]:["bf-usa-alert","usa-alert","bf-usa-alert--info","usa-alert--info",`${s?"no-background":""}`];return k.useEffect(()=>{const{errors:y}=ie.dataLayerStructure;o&&p&&ie.dataLayerPush(window,{event:y.event,bfData:{errors:p.map(x=>x==null?void 0:x.id).join(","),errorCount:{number:c,string:`${c}`},formSuccess:!1}},!1)},[d]),u.jsx("div",{className:pt({className:e,defaultClasses:m}),role:"alert",ref:n,tabIndex:a||0,"aria-live":o===!0?"assertive":"polite","aria-hidden":o===void 0?!1:!o,children:t?u.jsx("div",{className:"bf-usa-alert__body usa-alert__body",children:u.jsx("div",{className:"bf-usa-alert__text usa-alert__text",children:t})}):u.jsxs("div",{className:"bf-usa-alert__body usa-alert__body",children:[u.jsxs(ee,{headingLevel:2,className:"bf-usa-alert__heading usa-alert__heading","data-testid":"bf-alert-heading",children:[r==null?void 0:r.prefix," ",c," ",r==null?void 0:r.suffix]}),u.jsx("p",{className:"bf-usa-alert__text usa-alert__text",children:l}),u.jsx("ul",{"data-testid":"bf-errors-list",children:p&&p.map(y=>u.jsx("li",{"data-testid":"bf-errors-list-item",children:u.jsx("a",{href:`#${y.id}`,children:y.getAttribute("data-errormessage")||y.id})},y.id))})]})})};ha.propTypes={className:C.string,children:C.any,alertFieldRef:C.any,heading:C.object,description:C.string,type:C.string,hasError:C.bool,noBackground:C.bool,tabIndex:C.number,errorCount:C.number};const Qm=e=>e&&typeof e=="object"&&e.nodeType===1;var Zm=(e,t)=>{if(typeof e!="string")return[];(!t||!Qm(t))&&(t=window.document);const n=t.querySelectorAll(e);return Array.prototype.slice.call(n)};/* object-assign (c) Sindre Sorhus @license MIT -*/var vu=Object.getOwnPropertySymbols,y0=Object.prototype.hasOwnProperty,w0=Object.prototype.propertyIsEnumerable;function x0(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function S0(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(r.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(o){l[o]=o}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var nf=S0()?Object.assign:function(e,t){for(var n,r=x0(e),l,o=1;o-1?e.split(yu).map(function(i){return lf({type:i},o)}):(o.type=e,[o])};var wu=function(e,t){var n=e[t];return delete e[t],n},T0=function(t,n){const r=Object.keys(t).reduce(function(l,o){var i=L0(o,t[o]);return l.concat(i)},[]);return lf({add:function(o){r.forEach(function(i){o.addEventListener(i.type,i.delegate,i.options)})},remove:function(o){r.forEach(function(i){o.removeEventListener(i.type,i.delegate,i.options)})}},n)};const O0=nf,M0=T0,xu=(...e)=>function(n=document.body){e.forEach(r=>{typeof this[r]=="function"&&this[r].call(this,n)})};var P0=(e,t)=>M0(e,O0({on:xu("init","add"),off:xu("teardown","remove")},t));const Su="aria-expanded",R0="aria-controls",Cu="hidden";var D0=(e,t)=>{let n=t;typeof n!="boolean"&&(n=e.getAttribute(Su)==="false"),e.setAttribute(Su,n);const r=e.getAttribute(R0),l=document.getElementById(r);if(!l)throw new Error(`No toggle target found with id: "${r}"`);return n?l.removeAttribute(Cu):l.setAttribute(Cu,""),n};function $0(e,t=window,n=document.documentElement){const r=e.getBoundingClientRect();return r.top>=0&&r.left>=0&&r.bottom<=(t.innerHeight||n.clientHeight)&&r.right<=(t.innerWidth||n.clientWidth)}var F0=$0,I0={CLICK:"click"},A0={prefix:"usa"};const of=g0,z0=P0,ku=D0,B0=F0,{CLICK:V0}=I0,{prefix:ro}=A0,lo=`.${ro}-accordion, .${ro}-accordion--bordered`,H0=`.${ro}-banner__button`,xr=`.${ro}-accordion__button[aria-controls]:not(${H0})`,Eu="aria-expanded",U0="data-allow-multiple",sf=e=>of(xr,e).filter(n=>n.closest(lo)===e),Sr=(e,t)=>{const n=e.closest(lo);let r=t;if(!n)throw new Error(`${xr} is missing outer ${lo}`);r=ku(e,t);const l=n.hasAttribute(U0);r&&!l&&sf(n).forEach(o=>{o!==e&&ku(o,!1)})},W0=e=>Sr(e,!0),K0=e=>Sr(e,!1),q0=z0({[V0]:{[xr](){Sr(this),this.getAttribute(Eu)==="true"&&(B0(this)||this.scrollIntoView())}}},{init(e){of(xr,e).forEach(t=>{const n=t.getAttribute(Eu)==="true";Sr(t,n)})},ACCORDION:lo,BUTTON:xr,show:W0,hide:K0,toggle:Sr,getButtons:sf});var Q0=q0;const _u=ao(Q0),af=({id:e,heading:t,subHeading:n,children:r,isExpanded:l,hidden:o,...i})=>{M.useEffect(()=>(_u.on(),()=>{_u.off()}));const[s,u]=M.useState(!1),{benefitAccordion:c}=se.dataLayerStructure,f=g=>{u(g),g===!0&&se.dataLayerPush(window,{event:c.event,bfData:{benefitTitle:t}},!1)};M.useEffect(()=>{u(l)},[l]);const m=()=>s?a.jsx(dt,{type:"close","aria-hidden":"true"}):a.jsx(dt,{type:"open","aria-hidden":"true"}),p=g=>g.replace(/ +/g,"-").toLowerCase();return a.jsxs("div",{className:"bf-usa-accordion usa-accordion",...i,hidden:o,children:[a.jsx("h4",{className:"bf-usa-accordion__heading usa-accordion__heading",children:a.jsxs("button",{type:"button",className:"bf-usa-accordion__button usa-accordion__button","aria-expanded":s||!1,"aria-controls":e&&p(e),onClick:()=>f(!s),children:[a.jsx("span",{className:"bf-accordion-heading",children:t}),a.jsx("br",{}),a.jsx("span",{className:"bf-accordion-sub-heading",children:n}),m()]})}),a.jsx("div",{id:e&&p(e),className:"bf-usa-accordion__content usa-accordion__content usa-prose",hidden:s||!0,children:a.jsx("div",{children:r})})]})};af.propTypes={id:y.string,heading:y.string,subHeading:y.string,description:y.string,children:y.node};const uf=({data:e,entryKey:t,expandAll:n,isExpandAll:r,setExpandAll:l,notEligibleView:o,ui:i})=>{const{benefitAccordion:s,benefitAccordionGroup:u}=i,{eligibleStatusLabels:c,agencyPrefix:f,visitLabel:m,unmetLabel:p,sourceIsEnglish:g}=s,{closedState:S,openState:x}=u,{benefitLink:b,openAllBenefitAccordions:h}=se.dataLayerStructure,d=r?`${x} -`:`${S} +`,v=L=>{se.dataLayerPush(window,{event:b.event,bfData:{benefitTitle:L}})},w=L=>{l(!L),se.dataLayerPush(window,{event:h.event,bfData:{accordionsOpen:!L}},!1)},E=()=>n&&a.jsx(Te,{className:"bf-expand-all","aria-label":d,outline:!0,onClick:()=>w(r),children:d}),N=({items:L})=>a.jsxs("div",{className:"bf-unmet-criteria-group",children:[a.jsx("div",{className:"bf-unmet-criteria-title",children:p}),a.jsx("ul",{className:"bf-unmet-criteria-list",children:L.map((B,R)=>{const{label:H}=B;return a.jsx("li",{className:"bf-unmet-criteria-item",children:H},`not-eligible-list-${R}`)})})]}),j=({items:L})=>a.jsxs("div",{className:"bf-unmet-criteria-group",children:[a.jsx("div",{className:"bf-unmet-criteria-title",children:c[1]}),a.jsx("ul",{className:"bf-unmet-criteria-list",children:L.map((B,R)=>{const{label:H}=B;return a.jsx("li",{className:"bf-unmet-criteria-item",children:H},`more-info-${R}`)})})]});return a.jsxs("div",{className:"bf-usa-accordion-group",children:[a.jsx(E,{}),e&&e.map((L,B)=>{const{agency:R,eligibility:H,SourceLink:ae,summary:Oe,title:D,SourceIsEnglish:F}=L[t],W=H.filter(I=>I.isEligible===!0),C=H.filter(I=>I.isEligible===!1),k=H.filter(I=>I.isEligible===void 0),O=W.length===H.length?c[0]:C.length===0&&k.length>0?c[1]:c[2],P=o===!1&&O!==c[0]?!0:o===!0&&O===c[0];return a.jsxs(af,{id:`${D}`,heading:D,subHeading:O,isExpanded:r,"data-analytics":"bf-usa-accordion","data-analytics-content":D,hidden:P,"data-testid":"benefit",children:[a.jsx(ee,{className:"bf-usa-detail-title",headingLevel:4,children:`${f} ${R.title}`}),a.jsx("div",{className:"bf-usa-detail-summary",dangerouslySetInnerHTML:jt(Oe)}),a.jsx(mf,{className:"bf-usa-criteria-list",data:W,initialEligibilityLength:H.length,ui:s}),C.length>0&&a.jsx(N,{items:C}),k.length>0&&a.jsx(j,{items:k}),a.jsx("div",{className:"bf-usa-accordion-group-cta-wrapper",children:a.jsxs(ta,{className:"bf-usa-link",href:ae,target:"_blank",rel:"noopener noreferrer",onClick:()=>v(D),"data-testid":"bf-benefit-link",noCarrot:!0,children:[m," ",R.title," ",g&&F===!0?g:""]})})]},`${B}-${D}`)})]})};uf.propTypes={data:y.array,entryKey:y.string,expandAll:y.bool,isExpandAll:y.bool,setExpandAll:y.func,notEligibleView:y.bool,ui:y.object};const mn={officerNavy:"#162e51",marine:"#1a4480",popBlue:"#005ea2",sky:"#d9e8f6",darkSky:"#b6dbfd",offBlack:"#1b1b1b",white:"#fff",bannerBlue:"#112f4e",grey:"#757575",mediumGrey:"#979797",darkMediumGrey:"#3d4551",baseGrey:"#dcdee0",baseLightGrey:"#f0f0f0",lightTeal:"#d2ebf1",pureBlack:"#000",electricBlue:"#0050d8",teal:"#00bde3",mediumTeal:"#ccecf2",darkTeal:"#0081a1",alertRed:"#b50909",greenCheck:"#009831"};function Te({children:e,className:t,onClick:n,secondary:r,outline:l,disabled:o,unstyled:i,type:s,icon:u,...c}){const[f,m]=M.useState(null),p=r===!0?"secondary":l===!0?"outline":i===!0?"unstyled":null,[g,S]=M.useState(!1),[x,b]=M.useState();return M.useEffect(()=>{b(g&&r||g&&i?mn.marine:mn.popBlue)},[g]),M.useEffect(()=>{switch(p){case"secondary":m(["bf-usa-button","usa-button","bf-usa-button--secondary","usa-button--secondary"]);break;case"outline":m(["bf-usa-button","usa-button","bf-usa-button--outline","usa-button--outline"]);break;case"unstyled":m(["bf-usa-button","usa-button","bf-usa-button--unstyled","usa-button--unstyled"]);break;default:m(["bf-usa-button","usa-button"])}},[p,r,i]),a.jsxs("button",{onClick:o?null:n,type:s||"button",disabled:o,"aria-disabled":o,className:ft({className:t,defaultClasses:f}),onMouseOver:()=>S(!0),onMouseLeave:()=>S(!1),"data-testid":c["data-testid"],id:c.id,children:[u&&a.jsx(dt,{type:u,color:x,"aria-hidden":"true"}),e]})}Te.propTypes={children:y.node,className:y.string,onClick:y.func,secondary:y.bool,disabled:y.bool,unstyled:y.bool,type:y.oneOf(["button","reset","download"]),icon:y.string};y.object,y.object;const cf=({className:e,title:t,body:n,cta:r,href:l,noCarrot:o,carrotType:i,icon:s,...u})=>{const c=s!==void 0?["bf-card-icon"]:"",f=["add-list-reset"],m=o===!0?null:a.jsx(dt,{type:i,color:"#162E51","aria-hidden":"true"}),p=s===void 0?null:a.jsx(dt,{type:s,className:"bf-relative-icon","aria-hidden":"true"});return a.jsx("li",{className:ft({className:e,defaultClasses:c,utilityClasses:f}),...u,children:a.jsxs("a",{className:"bf-usa-card__container usa-card__container",href:l,children:[p,a.jsx("div",{className:"bf-usa-card__header usa-card__header",children:a.jsx(ee,{className:"bf-usa-card__heading usa-card__heading",headingLevel:3,children:t})}),a.jsx("div",{className:"bf-usa-card__body usa-card__body",dangerouslySetInnerHTML:jt(n)}),a.jsx("div",{className:"bf-usa-card__cta usa-card__cta",children:r}),m]})},`${t}`)};cf.propTypes={className:y.string,title:y.string,body:y.string,href:y.string,noCarrot:y.bool,carrotType:y.string,icon:y.string};const Ys=({heading:e,description:t})=>a.jsx("div",{className:"bf-chevron",children:a.jsxs("div",{className:"bf-grid-container grid-container",children:[a.jsx(ee,{className:"bf-chevron-heading",headingLevel:1,children:e}),a.jsx("div",{className:"bf-chevron-description",dangerouslySetInnerHTML:jt(t)})]})});Ys.propTypes={heading:y.string,description:y.string};const df=({onChange:e,value:t,ui:n,parentLegend:r,id:l,invalid:o,errorMessage:i})=>{const{date:s,select:u,errorText:c}=n,{labelDay:f,labelMonth:m,labelYear:p,monthOptions:g}=s,{dateDefaultValue:S}=u,{suffix:x,prefix:b}=c,h=(v,w)=>v&&v.map(E=>E.id===w).includes(!0),d={month:i?`${i} : ${m.toLowerCase()}`:`${b} ${r==null?void 0:r.toLowerCase()} ${m.toLowerCase()} ${x}`,day:i?`${i} : ${f.toLowerCase()}`:`${b} ${r==null?void 0:r.toLowerCase()} ${f.toLowerCase()} ${x}`,year:i?`${i} : ${p.toLowerCase()}`:`${b} ${r==null?void 0:r.toLowerCase()} ${p.toLowerCase()} ${x}`};return a.jsxs(a.Fragment,{children:[a.jsxs("ul",{className:"add-list-reset",children:[h(o,`${l}_month`)&&a.jsx("li",{id:`month-error-description-${l}`,"data-testid":`month-error-description-${l}`,className:"bf-error-detail","aria-live":"assertive",children:d.month}),h(o,`${l}_day`)&&a.jsx("li",{id:`day-error-description-${l}`,"data-testid":`day-error-description-${l}`,className:"bf-error-detail","aria-live":"assertive",children:d.day}),h(o,`${l}_year`)&&a.jsx("li",{id:`year-error-description-${l}`,"data-testid":`year-error-description-${l}`,className:"bf-error-detail","aria-live":"assertive",children:d.year})]}),a.jsxs("div",{id:`bf-usa-memorable-date-${l}`,className:"bf-usa-memorable-date usa-memorable-date",children:[a.jsxs("div",{className:"bf-usa-form-group usa-form-group bf-usa-form-group--month usa-form-group--month bf-usa-form-group--select usa-form-group--select",children:[a.jsx("label",{className:"bf-usa-label usa-label",htmlFor:`${l}_month`,children:m}),a.jsx("div",{id:`${l}-month-description`,className:"usa-sr-only",children:"Select a month from the list"}),a.jsxs("select",{className:`bf-usa-select usa-select ${h(o,`${l}_month`)?"usa-input--error":""}`,id:`${l}_month`,name:`${l}_month`,"aria-describedby":`${l}-month-description`,value:t&&t.month||"",onChange:e,"aria-invalid":h(o,`${l}_month`),"data-errormessage":d.month,"aria-errormessage":`month-error-description-${l}`,"data-datetype":"month",children:[a.jsx("option",{value:"",children:S},"default"),g.map((v,w)=>a.jsx("option",{value:w,children:v.label},`${v.label}-${w}`))]})]}),a.jsxs("div",{className:"bf-usa-form-group usa-form-group bf-usa-form-group--day usa-form-group--day",children:[a.jsx("label",{className:"bf-usa-label usa-label",htmlFor:`${l}_day`,children:f}),a.jsx("div",{id:`${l}-day-description`,className:"usa-sr-only",children:"Enter two numerals for day"}),a.jsx("input",{className:`bf-usa-input usa-input ${h(o,`${l}_day`)?"usa-input--error":""}`,"aria-describedby":`${l}-day-description`,id:`${l}_day`,name:`${l}_day`,inputMode:"numeric",value:t&&t.day||"",onChange:e,"aria-invalid":h(o,`${l}_day`),"data-errormessage":d.day,"aria-errormessage":`day-error-description-${l}`,"data-datetype":"day"})]}),a.jsxs("div",{className:"bf-usa-form-group usa-form-group bf-usa-form-group--year usa-form-group--year",children:[a.jsx("label",{className:"bf-usa-label usa-label",htmlFor:`${l}_year`,children:p}),a.jsx("div",{id:`${l}-year-description`,className:"usa-sr-only",children:"Enter four numerals for year"}),a.jsx("input",{className:`bf-usa-input usa-input ${h(o,`${l}_year`)?"usa-input--error":""}`,"aria-describedby":`${l}-year-description`,id:`${l}_year`,name:`${l}_year`,inputMode:"numeric",value:t&&t.year||"",onChange:e,"aria-invalid":h(o,`${l}_year`),"data-errormessage":d.year,"aria-errormessage":`year-error-description-${l}`,"data-datetype":"year"})]})]})]})};df.propTypes={onChange:y.func,value:y.object,ui:y.object,id:y.string,invalid:y.oneOfType([y.bool,y.array])};const Z0=({ui:e,data:t})=>{const[n,r]=M.useState(()=>to(window.location.href,t)),l=`${encodeURIComponent(n)}`,o=i=>{i.preventDefault(),r(to(window.location.href,t)),window.location=`mailto:?subject=${e==null?void 0:e.emailSubject}&body=${l}`};return a.jsx("a",{href:"",className:"bf-email-trigger bf-usa-link usa-link",onClick:i=>o(i),children:(e==null?void 0:e.emailTrigger)||"Email"})},Tl=({children:e,legend:t,required:n,alertRef:r,requiredLabel:l,hidden:o,errorMessage:i,hint:s,className:u,id:c,invalid:f,ui:m})=>{const p=o!==void 0&&o?["display-none"]:"",g=[`bf-usa-fieldset usa-fieldset ${n===!0?"required-field":""} ${f===!0?"usa-input--error":""}`],S=p,{prefix:x,suffix:b}=m,d=n===!1?a.jsx(Zi,{children:t}):a.jsx(a.Fragment,{children:a.jsxs(Zi,{children:[t,a.jsx(pf,{requiredLabel:l})]})}),v=i?`${i}`:`${x} ${t&&t.toLowerCase().replace("?","")} ${b}`;return a.jsx("div",{className:"bf-fieldset-wrapper",children:a.jsxs("fieldset",{className:ft({className:u,defaultClasses:g,utilityClasses:S}),ref:r,required:n===!0,id:c,"data-errormessage":v,hidden:o,"aria-hidden":o,children:[t&&d,f===!0&&a.jsx("div",{id:`error-description-${c}`,"data-testid":`error-description-${c}`,className:"bf-error-detail","aria-live":"assertive",children:v}),s&&a.jsx("div",{className:"bf-hint",children:s}),e]})})};Tl.propTypes={children:y.node,legend:y.string,alertRef:y.any,requiredLabel:y.object,hidden:y.bool,hint:y.string,className:y.string,invalid:y.bool,ui:y.object};function ff({children:e}){return a.jsx("form",{className:"bf-usa-form",children:a.jsx("div",{className:"bf-grid-contianer grid-container",children:e})})}ff.propTypes={children:y.node};const ee=({children:e,className:t,headingLevel:n,...r})=>{const l=[""],o=`h${n}`;return a.jsx(o,{className:ft({className:t,defaultClasses:l}),id:n===1?"skip-to-h1":null,...r,"aria-level":n,role:"heading",children:e})};ee.propTypes={children:y.oneOfType([y.string,y.array]),className:y.string,headingLevel:y.number};const pf=({requiredLabel:e})=>a.jsx("span",{title:"required",className:"bf-usa-hint usa-hint usa-hint--required bf-usa-hint--required bf-required required",children:`(${(e==null?void 0:e.value)||"Required"})`});pf.propTypes={requiredLabel:y.object};const G0=()=>a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 44.31 44.31",children:[a.jsxs("g",{id:"Layer_1","data-name":"Layer 1",children:[a.jsxs("g",{children:[a.jsx("path",{className:"cls-1",fill:"#e8f6fb",strokeWidth:"0px",d:"M22.16,40.85c-10.33,0-18.7-8.37-18.7-18.7S11.83,3.46,22.16,3.46c7.55,0,14.06,4.48,17.01,10.93.08.18.16.37.24.55.93,2.22,1.44,4.66,1.44,7.22,0,10.33-8.37,18.7-18.7,18.7Z"}),a.jsx("path",{className:"cls-4",fill:"#e7f6fb",strokeWidth:"0px",d:"M22.16,39.34c-9.49,0-17.19-7.69-17.19-17.19S12.66,4.97,22.16,4.97c7,0,13.03,4.19,15.71,10.2.95,2.14,1.48,4.5,1.48,6.99,0,9.49-7.69,17.19-17.19,17.19Z"})]}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"22.01",cy:"3.63",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"22.01",cy:"3.63",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M40.55,12.43l-1.46.59c-2.11-3.91-5.56-6.99-9.75-8.6v1.63c3.55,1.51,6.49,4.18,8.34,7.54l-1.55.63c-.17.07-.19.29-.05.4l3.66,2.66c.14.1.33.02.36-.15l.77-4.46c.03-.18-.15-.32-.31-.25Z"}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"40.43",cy:"22.08",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"40.43",cy:"22.08",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M31.63,40.86l-.59-1.46c3.91-2.11,6.99-5.56,8.6-9.75h-1.63c-1.51,3.55-4.18,6.49-7.54,8.34l-.63-1.55c-.07-.17-.29-.19-.4-.05l-2.66,3.66c-.1.14-.02.33.15.36l4.46.77c.18.03.32-.15.25-.31Z"}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"22.01",cy:"40.53",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"22.01",cy:"40.53",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M3.48,31.73l1.46-.59c2.11,3.91,5.56,6.99,9.75,8.6v-1.63c-3.55-1.51-6.49-4.18-8.34-7.54l1.55-.63c.17-.07.19-.29.05-.4l-3.66-2.66c-.14-.1-.33-.02-.36.15l-.77,4.46c-.03.18.15.32.31.25Z"}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"3.6",cy:"22.08",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"3.6",cy:"22.08",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M12.4,3.31l.59,1.46c-3.91,2.11-6.99,5.56-8.6,9.75h1.63c1.51-3.55,4.18-6.49,7.54-8.34l.63,1.55c.07.17.29.19.4.05l2.66-3.66c.1-.14.02-.33-.15-.36l-4.46-.77c-.18-.03-.32.15-.25.31Z"}),a.jsxs("g",{children:[a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M24.12,23.21l-.04-4.46c.16,0,.32-.02.47-.03,1.7-.13,3.11-1.33,3.52-2.97l.37-1.48c.13-.53-.19-1.06-.71-1.19-.52-.13-1.06.19-1.19.71l-.37,1.48c-.21.83-.92,1.43-1.78,1.49-.8.06-1.7.1-2.67.1-.25,0-.51,0-.77.02-2.01.12-3.72,1.49-4.24,3.42l-.64,2.32c-.14.52.17,1.06.69,1.2.09.02.17.04.26.04.43,0,.83-.29.95-.72l.64-2.32c.13-.49.41-.91.76-1.25l-.03,3.64-.98,7.25c-.08.6.34,1.15.93,1.22.05,0,.1,0,.15,0,.54,0,1.01-.4,1.08-.94l.95-7.05h.5l.95,7.05c.07.55.54.94,1.08.94.05,0,.1,0,.15,0,.6-.08,1.02-.63.93-1.22l-.97-7.25Z"}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M21.74,16.72c1.2,0,2.18-.98,2.18-2.18s-.98-2.18-2.18-2.18-2.18.98-2.18,2.18c0,1.2.98,2.18,2.18,2.18Z"})]})]}),a.jsxs("g",{id:"Layer_1_copy_3","data-name":"Layer 1 copy 3",children:[a.jsxs("g",{children:[a.jsx("path",{className:"cls-5",fill:"#fff",strokeWidth:"0px",d:"M22.16,40.85c-10.33,0-18.7-8.37-18.7-18.7S11.83,3.46,22.16,3.46c7.55,0,14.06,4.48,17.01,10.93.08.18.16.37.24.55.93,2.22,1.44,4.66,1.44,7.22,0,10.33-8.37,18.7-18.7,18.7Z"}),a.jsx("path",{className:"cls-4",fill:"#e7f6fb",strokeWidth:"0px",d:"M22.16,36.47c-7.91,0-14.32-6.41-14.32-14.32s6.41-14.32,14.32-14.32c5.83,0,10.85,3.49,13.08,8.49.79,1.78,1.23,3.75,1.23,5.82,0,7.91-6.41,14.32-14.32,14.32Z"})]}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"22.01",cy:"3.63",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"22.01",cy:"3.63",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M40.55,12.43l-1.46.59c-2.11-3.91-5.56-6.99-9.75-8.6v1.63c3.55,1.51,6.49,4.18,8.34,7.54l-1.55.63c-.17.07-.19.29-.05.4l3.66,2.66c.14.1.33.02.36-.15l.77-4.46c.03-.18-.15-.32-.31-.25Z"}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"40.43",cy:"22.08",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"40.43",cy:"22.08",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M31.63,40.86l-.59-1.46c3.91-2.11,6.99-5.56,8.6-9.75h-1.63c-1.51,3.55-4.18,6.49-7.54,8.34l-.63-1.55c-.07-.17-.29-.19-.4-.05l-2.66,3.66c-.1.14-.02.33.15.36l4.46.77c.18.03.32-.15.25-.31Z"}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"22.01",cy:"40.53",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"22.01",cy:"40.53",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M3.48,31.73l1.46-.59c2.11,3.91,5.56,6.99,9.75,8.6v-1.63c-3.55-1.51-6.49-4.18-8.34-7.54l1.55-.63c.17-.07.19-.29.05-.4l-3.66-2.66c-.14-.1-.33-.02-.36.15l-.77,4.46c-.03.18.15.32.31.25Z"}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"3.6",cy:"22.08",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"3.6",cy:"22.08",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M12.4,3.31l.59,1.46c-3.91,2.11-6.99,5.56-8.6,9.75h1.63c1.51-3.55,4.18-6.49,7.54-8.34l.63,1.55c.07.17.29.19.4.05l2.66-3.66c.1-.14.02-.33-.15-.36l-4.46-.77c-.18-.03-.32.15-.25.31Z"})]}),a.jsx("g",{id:"dude",children:a.jsxs("g",{children:[a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M24.12,23.21l-.04-4.46c.16,0,.32-.02.47-.03,1.7-.13,3.11-1.33,3.52-2.97l.37-1.48c.13-.53-.19-1.06-.71-1.19-.52-.13-1.06.19-1.19.71l-.37,1.48c-.21.83-.92,1.43-1.78,1.49-.8.06-1.7.1-2.67.1-.25,0-.51,0-.77.02-2.01.12-3.72,1.49-4.24,3.42l-.64,2.32c-.14.52.17,1.06.69,1.2.09.02.17.04.26.04.43,0,.83-.29.95-.72l.64-2.32c.13-.49.41-.91.76-1.25l-.03,3.64-.98,7.25c-.08.6.34,1.15.93,1.22.05,0,.1,0,.15,0,.54,0,1.01-.4,1.08-.94l.95-7.05h.5l.95,7.05c.07.55.54.94,1.08.94.05,0,.1,0,.15,0,.6-.08,1.02-.63.93-1.22l-.97-7.25Z"}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M21.74,16.72c1.2,0,2.18-.98,2.18-2.18s-.98-2.18-2.18-2.18-2.18.98-2.18,2.18c0,1.2.98,2.18,2.18,2.18Z"})]})})]}),Y0=({color:e})=>a.jsx("svg",{className:"bf-carrot",width:"12",height:"19",viewBox:"0 0 12 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.78013 1.73698C3.33373 1.29058 2.60998 1.29059 2.16359 1.73698L1.74049 2.16007C1.29444 2.60612 1.29405 3.32919 1.73961 3.77573L6.7498 8.79686C7.19502 9.24305 7.19502 9.96544 6.7498 10.4116L1.73961 15.4328C1.29405 15.8793 1.29444 16.6024 1.7405 17.0484L2.16359 17.4715C2.60998 17.9179 3.33373 17.9179 3.78013 17.4715L10.8391 10.4125C11.2855 9.96612 11.2855 9.24237 10.8391 8.79597L3.78013 1.73698Z",fill:e||mn.officerNavy})}),X0=({color:e})=>a.jsxs("svg",{className:"bf-carrot-solid",xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",fill:e||mn.white,children:[a.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),a.jsx("path",{d:"M7 10l5 5 5-5z"})]}),J0=({color:e})=>a.jsxs("svg",{className:"bf-close",xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",children:[a.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),a.jsx("path",{d:"M19 13H5v-2h14v2z",fill:e||mn.black})]}),em=()=>a.jsxs("svg",{className:"bf-death",width:"45",height:"45",viewBox:"0 0 45 45",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.1501 6.87479C20.1501 9.34031 18.1533 11.3388 15.6903 11.3388C13.2273 11.3388 11.2309 9.34031 11.2309 6.87479C11.2309 4.40927 13.2273 2.4104 15.6903 2.4104C18.1533 2.4104 20.1501 4.40927 20.1501 6.87479ZM8.94118 13.9881C8.97531 13.7489 9.18017 13.5712 9.42182 13.5712H21.8969C22.0106 13.5712 22.1206 13.6111 22.2079 13.6839L22.6929 14.0884L28.6272 19.0387C28.7145 19.1115 28.8246 19.1514 28.9382 19.1514H37.5777C37.8151 19.1514 38.0176 19.323 38.0566 19.5572L40.1247 31.979C40.1739 32.2749 39.9457 32.5442 39.6458 32.5442H37.3595C37.0914 32.5442 36.874 32.7616 36.874 33.0297V42.1033C36.874 42.3714 36.6567 42.5888 36.3885 42.5888H32.8998C32.6316 42.5888 32.4143 42.3714 32.4143 42.1033V29.6815C32.4143 29.4134 32.6316 29.196 32.8998 29.196H34.0713C34.3713 29.196 34.5995 28.9267 34.5502 28.6307L33.9758 25.1807L33.7429 23.6286C33.7418 23.6213 33.7355 23.6158 33.728 23.6158C33.7206 23.6158 33.7143 23.6105 33.7131 23.6032L33.5969 22.9053C33.5579 22.6712 33.3553 22.4996 33.118 22.4996H25.9029C25.7879 22.4996 25.6767 22.4588 25.589 22.3844L20.5939 18.1504C20.5062 18.076 20.3949 18.0352 20.2799 18.0352H13.6883C13.4389 18.0352 13.23 18.2242 13.2052 18.4725L12.6333 24.1978C12.6047 24.4836 12.8291 24.7316 13.1164 24.7316H14.0905C14.3586 24.7316 14.576 24.949 14.576 25.2171V42.1035C14.576 42.3716 14.3586 42.589 14.0905 42.589H10.6017C10.3336 42.589 10.1162 42.3716 10.1162 42.1035V29.6817C10.1162 29.4135 9.89885 29.1962 9.63071 29.1962H7.33117C7.03575 29.1962 6.80881 28.9346 6.85053 28.6421L8.94118 13.9881ZM21.2653 25.2167C21.2653 24.9486 21.0479 24.7312 20.7798 24.7312H17.291C17.0229 24.7312 16.8055 24.9486 16.8055 25.2167V42.1031C16.8055 42.3712 17.0229 42.5886 17.291 42.5886H20.7798C21.0479 42.5886 21.2653 42.3712 21.2653 42.1031V25.2167ZM25.7247 25.2167C25.7247 24.9486 25.9421 24.7312 26.2102 24.7312H29.699C29.9671 24.7312 30.1845 24.9486 30.1845 25.2167V42.1031C30.1845 42.3712 29.9671 42.5886 29.699 42.5886H26.2102C25.9421 42.5886 25.7247 42.3712 25.7247 42.1031V25.2167ZM35.7589 12.4548C35.7589 14.9203 33.7625 16.9192 31.2995 16.9192C28.8365 16.9192 26.8397 14.9203 26.8397 12.4548C26.8397 9.98928 28.8365 7.99041 31.2995 7.99041C33.7625 7.99041 35.7589 9.98928 35.7589 12.4548Z",fill:"#E9F6FB",stroke:"#1B1B1B",strokeWidth:"2.77965"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.1501 6.87479C20.1501 9.34031 18.1533 11.3388 15.6903 11.3388C13.2273 11.3388 11.2309 9.34031 11.2309 6.87479C11.2309 4.40927 13.2273 2.4104 15.6903 2.4104C18.1533 2.4104 20.1501 4.40927 20.1501 6.87479ZM8.94118 13.9881C8.97531 13.7489 9.18017 13.5712 9.42182 13.5712H21.8969C22.0106 13.5712 22.1206 13.6111 22.2079 13.6839L22.6929 14.0884L28.6272 19.0387C28.7145 19.1115 28.8246 19.1514 28.9382 19.1514H37.5777C37.8151 19.1514 38.0177 19.323 38.0566 19.5572L40.1247 31.979C40.1739 32.2749 39.9457 32.5442 39.6458 32.5442H37.3595C37.0914 32.5442 36.874 32.7616 36.874 33.0297V42.1033C36.874 42.3714 36.6567 42.5888 36.3885 42.5888H32.8998C32.6316 42.5888 32.4143 42.3714 32.4143 42.1033V29.6815C32.4143 29.4134 32.6316 29.196 32.8998 29.196H34.0713C34.3713 29.196 34.5995 28.9267 34.5502 28.6307L33.9758 25.1807L33.7429 23.6286C33.7418 23.6213 33.7355 23.6158 33.728 23.6158C33.7206 23.6158 33.7143 23.6105 33.7131 23.6032L33.5969 22.9053C33.5579 22.6712 33.3553 22.4996 33.118 22.4996H25.9029C25.7879 22.4996 25.6767 22.4588 25.589 22.3844L20.5939 18.1504C20.5062 18.076 20.3949 18.0352 20.2799 18.0352H13.6883C13.4389 18.0352 13.23 18.2242 13.2052 18.4725L12.6333 24.1978C12.6047 24.4836 12.8291 24.7316 13.1164 24.7316H14.0905C14.3586 24.7316 14.576 24.949 14.576 25.2171V42.1035C14.576 42.3716 14.3586 42.589 14.0905 42.589H10.6017C10.3336 42.589 10.1162 42.3716 10.1162 42.1035V29.6817C10.1162 29.4135 9.89885 29.1962 9.63071 29.1962H7.33117C7.03575 29.1962 6.80881 28.9346 6.85053 28.6421L8.94118 13.9881ZM21.2653 25.2167C21.2653 24.9486 21.0479 24.7312 20.7798 24.7312H17.291C17.0229 24.7312 16.8055 24.9486 16.8055 25.2167V42.1031C16.8055 42.3712 17.0229 42.5886 17.291 42.5886H20.7798C21.0479 42.5886 21.2653 42.3712 21.2653 42.1031V25.2167ZM25.7247 25.2167C25.7247 24.9486 25.9421 24.7312 26.2102 24.7312H29.699C29.9671 24.7312 30.1845 24.9486 30.1845 25.2167V42.1031C30.1845 42.3712 29.9671 42.5886 29.699 42.5886H26.2102C25.9421 42.5886 25.7247 42.3712 25.7247 42.1031V25.2167ZM35.7589 12.4548C35.7589 14.9203 33.7625 16.9192 31.2995 16.9192C28.8365 16.9192 26.8397 14.9203 26.8397 12.4548C26.8397 9.98928 28.8365 7.99041 31.2995 7.99041C33.7625 7.99041 35.7589 9.98928 35.7589 12.4548Z",fill:"white",stroke:"#00C1E7",strokeWidth:"0.571814"})]}),tm=({color:e})=>a.jsx("svg",{width:"20",height:"16",viewBox:"0 0 20 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 0.000244141H2C0.9 0.000244141 0.00999999 0.900244 0.00999999 2.00024L0 14.0002C0 15.1002 0.9 16.0002 2 16.0002H18C19.1 16.0002 20 15.1002 20 14.0002V2.00024C20 0.900244 19.1 0.000244141 18 0.000244141ZM18 14.0002H2V4.00024L10 9.00024L18 4.00024V14.0002ZM10 7.00024L2 2.00024H18L10 7.00024Z",fill:e||mn.popBlue})}),nm=()=>a.jsxs("svg",{width:"45",height:"45",viewBox:"0 0 45 45",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("path",{d:"M29.2857 9.5335C31.4805 9.5335 33.2598 7.75908 33.2598 5.57022C33.2598 3.38136 31.4805 1.60693 29.2857 1.60693C27.0908 1.60693 25.3115 3.38136 25.3115 5.57022C25.3115 7.75908 27.0908 9.5335 29.2857 9.5335Z",fill:"#E9F6FB",stroke:"#1A1A1A",strokeWidth:"1.34304",strokeMiterlimit:"10"}),a.jsx("path",{d:"M31.1129 34.0346C31.1129 33.6064 30.7661 33.2593 30.3382 33.2593C29.9103 33.2593 29.5635 33.6064 29.5635 34.0346V42.3786C29.5635 42.8068 29.9103 43.1539 30.3382 43.1539C30.7661 43.1539 31.1129 42.8068 31.1129 42.3786V34.0346Z",fill:"#1A1A1A"}),a.jsx("path",{d:"M29.8281 42.2474V42.5131C29.8281 42.8664 30.1153 43.1528 30.4696 43.1528H35.1777C35.532 43.1528 35.8193 42.8664 35.8193 42.5131V42.2474C35.8193 41.8941 35.532 41.6076 35.1777 41.6076H30.4696C30.1153 41.6076 29.8281 41.8941 29.8281 42.2474Z",fill:"#1A1A1A"}),a.jsx("path",{d:"M19.0432 44.1969C26.0392 44.1969 31.7105 38.5411 31.7105 31.5643C31.7105 24.5875 26.0392 18.9316 19.0432 18.9316C12.0473 18.9316 6.37598 24.5875 6.37598 31.5643C6.37598 38.5411 12.0473 44.1969 19.0432 44.1969Z",fill:"#010101"}),a.jsx("path",{d:"M36.3958 22.9921L29.7469 22.4553L31.8835 14.827C32.1988 13.6938 31.6497 12.5173 30.6385 12.0077C30.5026 11.9318 30.3558 11.8667 30.1927 11.8233L21.1027 9.29139C20.7276 9.18838 20.347 9.19922 19.9936 9.29681C19.6892 9.34561 19.3956 9.46488 19.1401 9.67091L12.8934 14.6535C12.1051 15.2824 11.9801 16.4372 12.6053 17.218C13.2359 18.0041 14.3939 18.1288 15.1768 17.5053L20.0045 13.6505L21.8693 14.1709L17.857 21.7559C17.2318 22.9379 17.6885 24.4126 18.8737 25.0361L22.5488 26.9662C23.3154 27.3674 24.207 27.3186 24.9083 26.912L25.3867 27.0421C25.7673 27.5463 26.349 27.8933 27.0286 27.9475L33.1991 28.4463L32.4326 37.8801C32.3184 39.2573 33.3568 40.4772 34.7431 40.5856C36.124 40.6994 37.3472 39.6639 37.456 38.2814L38.44 26.1801C38.44 26.1313 38.44 26.0771 38.44 26.0283L38.4889 25.4319C38.5922 24.1794 37.6463 23.0734 36.3904 22.9704L36.3958 22.9921Z",fill:"#E9F6FB",stroke:"#1A1A1A",strokeWidth:"1.34304",strokeMiterlimit:"10"}),a.jsx("path",{d:"M19.0442 41.7672C24.695 41.7672 29.2758 37.1989 29.2758 31.5636C29.2758 25.9282 24.695 21.3599 19.0442 21.3599C13.3934 21.3599 8.8125 25.9282 8.8125 31.5636C8.8125 37.1989 13.3934 41.7672 19.0442 41.7672Z",fill:"#E9F6FB"}),a.jsx("path",{d:"M19.0425 42.3136C24.9965 42.3136 29.8233 37.5001 29.8233 31.5623C29.8233 25.6245 24.9965 20.811 19.0425 20.811C13.0884 20.811 8.26172 25.6245 8.26172 31.5623C8.26172 37.5001 13.0884 42.3136 19.0425 42.3136Z",stroke:"#00C0E4",strokeWidth:"1.03146",strokeMiterlimit:"10"}),a.jsx("path",{d:"M19.0426 39.4948C23.4353 39.4948 26.9963 35.9436 26.9963 31.5628C26.9963 27.1821 23.4353 23.6309 19.0426 23.6309C14.6499 23.6309 11.0889 27.1821 11.0889 31.5628C11.0889 35.9436 14.6499 39.4948 19.0426 39.4948Z",fill:"white",stroke:"#1A1A1A",strokeWidth:"1.07443",strokeMiterlimit:"10"})]}),rm=({color:e})=>a.jsx("svg",{className:"bf-checkmark--green",width:"24",height:"20",viewBox:"0 0 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 4.15417C23.9925 4.52794 23.8515 4.88618 23.6033 5.16208L12.2975 16.6522L10.1157 18.8696C9.84423 19.1219 9.49174 19.2651 9.12397 19.2727C8.7562 19.2651 8.40371 19.1219 8.13223 18.8696L5.95041 16.6522L0.396694 11.0079C0.148478 10.732 0.00748054 10.3738 0 10C0.00748054 9.62626 0.148478 9.26802 0.396694 8.99212L2.57851 6.77473C2.84999 6.52246 3.20248 6.37917 3.57025 6.37156C3.93802 6.37917 4.29051 6.52246 4.56198 6.77473L9.12397 11.4111L19.2397 1.13046C19.5111 0.878193 19.8636 0.734897 20.2314 0.727295C20.5992 0.734897 20.9517 0.878193 21.2231 1.13046L23.405 3.34785C23.8017 3.54943 24 3.75101 24 4.15417Z",fill:e||mn.greenCheck})}),lm=()=>a.jsx("svg",{className:"bf-info",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.33594 3.66732H7.66927V5.00065H6.33594V3.66732ZM6.33594 6.33398H7.66927V10.334H6.33594V6.33398ZM7.0026 0.333984C3.3226 0.333984 0.335938 3.32065 0.335938 7.00065C0.335938 10.6807 3.3226 13.6673 7.0026 13.6673C10.6826 13.6673 13.6693 10.6807 13.6693 7.00065C13.6693 3.32065 10.6826 0.333984 7.0026 0.333984ZM7.0026 12.334C4.0626 12.334 1.66927 9.94065 1.66927 7.00065C1.66927 4.06065 4.0626 1.66732 7.0026 1.66732C9.9426 1.66732 12.3359 4.06065 12.3359 7.00065C12.3359 9.94065 9.9426 12.334 7.0026 12.334Z",fill:"#1B1B1B"})}),om=()=>a.jsxs("svg",{className:"bf-modal-close",xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",children:[a.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),a.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})]}),im=()=>a.jsxs("svg",{className:"bf-open",xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",children:[a.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),a.jsx("path",{fill:"none",d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"})]}),sm=()=>a.jsxs("svg",{width:"45",height:"45",viewBox:"0 0 45 45",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("path",{d:"M40.2696 1.60693H6.37598V43.3926H40.2696V1.60693Z",fill:"#DFEFF4",stroke:"#191919",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M19.2757 9.08496H12.9048C12.4714 9.08496 12.1201 9.43563 12.1201 9.86819V14.6747C12.1201 15.1073 12.4714 15.4579 12.9048 15.4579H19.2757C19.7091 15.4579 20.0604 15.1073 20.0604 14.6747V9.86819C20.0604 9.43563 19.7091 9.08496 19.2757 9.08496Z",fill:"#05BBE2"}),a.jsx("path",{d:"M19.2757 19.314H12.9048C12.4714 19.314 12.1201 19.6646 12.1201 20.0972V24.9037C12.1201 25.3363 12.4714 25.6869 12.9048 25.6869H19.2757C19.7091 25.6869 20.0604 25.3363 20.0604 24.9037V20.0972C20.0604 19.6646 19.7091 19.314 19.2757 19.314Z",fill:"#05BBE2"}),a.jsx("path",{d:"M19.2757 29.5415H12.9048C12.4714 29.5415 12.1201 29.8922 12.1201 30.3247V35.1312C12.1201 35.5638 12.4714 35.9145 12.9048 35.9145H19.2757C19.7091 35.9145 20.0604 35.5638 20.0604 35.1312V30.3247C20.0604 29.8922 19.7091 29.5415 19.2757 29.5415Z",fill:"#05BBE2"}),a.jsx("path",{d:"M14.8369 11.9099L16.1581 13.2287L21.1878 9.08496",stroke:"#191919",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M23.5391 11.0723H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M23.5391 13.4648H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M23.5391 21.3071H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M23.5391 23.6904H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M23.5391 31.5381H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M23.5391 33.9214H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"})]}),am=({color:e})=>a.jsx("svg",{width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 14.1203C14.24 14.1203 13.56 14.4203 13.04 14.8903L5.91 10.7403C5.96 10.5103 6 10.2803 6 10.0403C6 9.80028 5.96 9.57028 5.91 9.34028L12.96 5.23028C13.5 5.73028 14.21 6.04028 15 6.04028C16.66 6.04028 18 4.70028 18 3.04028C18 1.38028 16.66 0.0402832 15 0.0402832C13.34 0.0402832 12 1.38028 12 3.04028C12 3.28028 12.04 3.51028 12.09 3.74028L5.04 7.85028C4.5 7.35028 3.79 7.04028 3 7.04028C1.34 7.04028 0 8.38028 0 10.0403C0 11.7003 1.34 13.0403 3 13.0403C3.79 13.0403 4.5 12.7303 5.04 12.2303L12.16 16.3903C12.11 16.6003 12.08 16.8203 12.08 17.0403C12.08 18.6503 13.39 19.9603 15 19.9603C16.61 19.9603 17.92 18.6503 17.92 17.0403C17.92 15.4303 16.61 14.1203 15 14.1203Z",fill:e||"#005EA2"})}),dt=({type:e,color:t,...n})=>{let r;switch(e){case"all_benefits":r=a.jsx(G0,{});break;case"carrot-solid":r=a.jsx(X0,{color:t});break;case"carrot":r=a.jsx(Y0,{color:t});break;case"close":r=a.jsx(J0,{});break;case"death":r=a.jsx(em,{});break;case"disability":r=a.jsx(nm,{});break;case"email":r=a.jsx(tm,{color:t});break;case"green-check":r=a.jsx(rm,{color:t});break;case"info":r=a.jsx(lm,{color:t});break;case"open":r=a.jsx(im,{});break;case"modal-close":r=a.jsx(om,{color:t});break;case"retirement":r=a.jsx(sm,{});break;case"share":r=a.jsx(am,{color:t});break;default:r=null}return a.jsx("i",{...n,"data-testid":`icon-${e}`,children:r})};dt.propTypes={type:y.string,color:y.string,props:y.any};const hf=({data:e,ui:t,setStep:n,step:r})=>{const{timeEstimate:l,title:o,summary:i}=e,{heading:s,timeIndicator:u,steps:c,notices:f,button:m}=t,{intro:p}=se.dataLayerStructure,g=Gr(),S=()=>{n(r+1),g.current.focus()};return Zr({pageView:p.bfData.pageView}),M.useEffect(()=>{se.dataLayerPush(window,{event:p.event,bfData:{pageView:p.bfData.pageView,viewTitle:o}})},[]),e&&a.jsxs("div",{className:"bf-intro",children:[a.jsx(Ys,{heading:o,description:i}),a.jsxs("div",{className:"bf-grid-container grid-container",children:[a.jsx(ee,{headingLevel:2,children:s}),a.jsx(If,{description:u,timeEstimate:l}),a.jsxs("div",{className:"bf-intro-process-group",children:[a.jsx("div",{className:"bf-intro-process-list",children:a.jsx(Nf,{steps:c.list,description:c.title})}),a.jsx("div",{className:"bf-line-sperator-wrapper--vertical",children:a.jsx("div",{className:"bf-line-sperator--vertical"})}),a.jsxs("div",{className:"bf-intro-process-notices",children:[a.jsx(ee,{className:"bf-intro-process-notices-heading",headingLevel:2,children:f.heading}),a.jsx(jf,{className:"bf-intro-process-notices-list",data:f.list,iconAlt:f.iconAlt})]})]}),a.jsx("div",{className:"bf-line-sperator-wrapper",children:a.jsx("div",{className:"bf-line-sperator"})}),a.jsx("div",{className:"bf-cta-wrapper",children:a.jsx(Te,{secondary:!0,onClick:()=>S(),children:m})})]})]})};hf.propTypes={data:y.object,ui:y.object,setStep:y.func,step:y.number};const mf=({className:e,data:t,initialEligibilityLength:n,ui:r})=>{const{benefitSummary:l,benefitSummaryPrefix:o,benefitSummaryConjunction:i}=r,s=["bf-key-eligibility-criteria-group"];return a.jsx("div",{className:ft({className:e,defaultClasses:s}),children:t&&a.jsxs(a.Fragment,{children:[" ",a.jsxs(ee,{className:"bf-key-eligibility-criteria-heading",headingLevel:5,children:[`${l}`,a.jsx("span",{className:"bf-key-eligibility-criteria-sub-heading",children:` - ${o} ${t.length} ${i} - ${n}`})]}),a.jsx("ul",{className:"bf-key-eligibility-criteria-list",children:t.map((u,c)=>{const{criteriaKey:f,label:m}=u;return a.jsxs("li",{className:"bf-usa-list usa-list usa-list--unstyled bf-usa-list--unstyled bf-key-eligibility-criteria-list-item","data-testid":`${f}`,children:[a.jsx("div",{"aria-hidden":"true",children:a.jsx(dt,{type:"green-check","aria-hidden":"true"})}),m]},`${f}-${c}`)})})]})})};mf.propTypes={className:y.string,data:y.array,initialEligibilityLength:y.number};const Zi=({children:e})=>a.jsx("legend",{className:"bf-legend usa-legend",children:e});Zi.propTypes={children:y.node};const Xs=({className:e,label:t,htmlFor:n})=>{const r=["bf-usa-label usa-label"];return a.jsx("label",{className:ft({className:e,defaultClasses:r}),htmlFor:n,children:t})};Xs.propTypes={className:y.string,label:y.string,htmlFor:y.string};const vf=({step:e,setStep:t,data:n,handleData:r,setStepData:l,setVerifyStep:o,setViewResults:i,ui:s,modalOpen:u,setModalOpen:c})=>{const[f,m]=M.useState(!1),[p,g]=M.useState(()=>n&&n[e-1]),[S,x]=M.useState([]),[b,h]=M.useState([]),[d,v]=M.useState(()=>q.SelectedValueAll(n).length>0),[w,E]=M.useState(0),{lifeEventSection:N}=se.dataLayerStructure;Jh(d);const j=Gr();M.useEffect(()=>{var A;(A=j.current)==null||A.focus()},[j]);const{stepIndicator:L,buttonGroup:B,reviewSelectionModal:R,requiredLabel:H,sectionHeadings:ae}=s,Oe=()=>{n[e-1]={...p},r([...n])},D=M.useRef(null),F=()=>(D.current.classList.remove("display-none"),D.current.focus(),E(w+1),p.completed=!1,window.scrollTo(0,0),!1),W=()=>(D.current.classList.add("display-none"),p.completed=!0,Oe(),x([]),!0),C=()=>Ie.handleCheckForRequiredValues(S,h).then(A=>A===!0?W():F()),k=A=>{C(),Ie.handleCheckForRequiredValues(S,h).then(ne=>{if(ne===!0){const{errors:oe}=se.dataLayerStructure;se.dataLayerPush(window,{event:oe.event,bfData:{errors:"",errorCount:{number:0,string:"0"},formSuccess:!0}}),t(e+A),l(A),j&&j.current.focus()}})},O=A=>{t(e+A),j.current.focus()},P=(A,ne)=>{window.history.replaceState({},"",window.location.pathname),Br.Data(ne,p,g,A.target.value),b.length>0&&Ie.handleCheckForRequiredValues(S,h),v(q.SelectedValueAll(n).length>0)},I=(A,ne)=>{window.history.replaceState({},"",window.location.pathname);async function oe(){qh(A)===!0&&(Br.DataDate(ne,p,g,A.target.value,A.target.id),b.length>0&&Ie.handleCheckForRequiredValues(S,h))}oe().then(()=>{Ie.getNonRequiredFieldsets(ne,S,x,h,b,q.SelectedValueAll(n)),v(q.SelectedValueAll(n).length>0)})};return M.useEffect(()=>{n&&e===n.length?m(!0):m(!1)},[p,n,f,e]),M.useEffect(()=>{window.scrollTo(0,0),Ie.getRequiredFieldsets(document,x)},[]),M.useEffect(()=>{u===!1&&se.dataLayerPush(window,{event:N.event,bfData:{pageView:`${N.bfData.pageView}-${e}`,viewTitle:p.section.heading}})},[]),n.length>0&&u===!1&&Zr({pageView:`${N==null?void 0:N.bfData.pageView}-${e}`}),M.useEffect(()=>{Gd({hide:!0})},[]),n&&a.jsxs(a.Fragment,{children:[a.jsx(ee,{className:"bf-section-heading",headingLevel:1,children:e===n.length?`${ae.final}`:e-1===0?`${ae.start}`:`${ae.continue}`}),a.jsx("div",{className:"bf-section-wrapper",children:a.jsxs("div",{className:"bf-section-info",children:[a.jsx($f,{current:e-1,setCurrent:t,data:n,backLinkLabel:L.StepBackButton},`step-indicator-${ae}`),p&&a.jsxs("div",{id:"bf-section",children:[a.jsx(Gs,{alertFieldRef:D,heading:s.alertBanner.heading,description:s.alertBanner.description,type:"error",hasError:b.length>0,errorCount:b.length,errorList:b,submissionCount:w}),a.jsxs("div",{className:"bf-form-heading-group",children:[a.jsx(ee,{className:"bf-form-heading bf-usa-form-heading",headingLevel:2,children:p.section.heading}),a.jsx("div",{className:"bf-section-sub-heading",dangerouslySetInnerHTML:jt(p.section.description)})]}),p.section.fieldsets.map((A,ne)=>{const oe=({item:$,children:qe,index:pt,hidden:Xt})=>{var wn,Jr;return $.fieldset.inputs[0].inputCriteria.type==="Select"?a.jsxs(M.Fragment,{children:[a.jsx(Tl,{legend:$.fieldset.legend,errorMessage:$.fieldset.errorMessage,hint:$.fieldset.hint,required:$.fieldset.required,requiredLabel:H,hidden:Xt&&Xt,id:$.fieldset.criteriaKey,invalid:Ie.handleInvalid({hasError:b,criteriaKey:(wn=$.fieldset)==null?void 0:wn.criteriaKey}),ui:s.errorText,children:$.fieldset.inputs.map((bt,ht)=>{var la;const Qe=`${$.fieldset.criteriaKey}_${ht}`,Lt=bt.inputCriteria.values,mt=Lt.find(Lo=>Lo.selected!==void 0),{select:bo,errorText:fp}=s;return a.jsx("div",{children:a.jsx(Ff,{ui:{select:bo,errorText:fp},htmlFor:Qe,options:Lt,selected:mt==null?void 0:mt.value,onChange:Lo=>P(Lo,$.fieldset.criteriaKey),invalid:Ie.handleInvalid({hasError:b,criteriaKey:(la=$.fieldset)==null?void 0:la.criteriaKey,fieldSetId:Qe}),legend:$.fieldset.legend,errorMessage:$.fieldset.errorMessage},Qe)},Qe)})},`select-${$.fieldset.criteriaKey}-${pt}`),qe||null]},`select-${$.fieldset.criteriaKey}+${pt}`):$.fieldset.inputs[0].inputCriteria.type==="Radio"?a.jsxs(M.Fragment,{children:[$.fieldset.inputs.map((bt,ht)=>{var Lt,mt;const Qe=`${$.fieldset.criteriaKey}_${ht}`;return a.jsx(Tl,{id:$.fieldset.criteriaKey,legend:$.fieldset.legend,errorMessage:$.fieldset.errorMessage,hint:$.fieldset.hint,required:$.fieldset.required,requiredLabel:H,hidden:Xt&&Xt,ui:s.errorText,invalid:Ie.handleInvalid({hasError:b,criteriaKey:(Lt=$.fieldset)==null?void 0:Lt.criteriaKey}),children:a.jsx(Lf,{invalid:Ie.handleInvalid({hasError:b,criteriaKey:(mt=$.fieldset)==null?void 0:mt.criteriaKey}),fieldSetId:Qe,handleChanged:P,values:bt.inputCriteria.values,criteriaKey:$.fieldset.criteriaKey,errorMessage:$.fieldset.errorMessage,legend:$.fieldset.legend,ui:s.errorText},Qe)},`radio-${$.fieldset.criteriaKey}-${ht}`)}),qe||null]},`radio-${$.fieldset.criteriaKey}+${pt}`):$.fieldset.inputs[0].inputCriteria.type==="Date"?a.jsxs(M.Fragment,{children:[a.jsx(Tl,{legend:$.fieldset.legend,errorMessage:$.fieldset.errorMessage,hint:$.fieldset.hint,required:$.fieldset.required,requiredLabel:H,hidden:Xt&&Xt,id:$.fieldset.criteriaKey,invalid:Ie.handleInvalid({hasError:b,criteriaKey:(Jr=$.fieldset)==null?void 0:Jr.criteriaKey}),ui:s.errorText,children:$.fieldset.inputs.map((bt,ht)=>{var Lt,mt;const Qe=`${$.fieldset.criteriaKey}_${ht}`;return a.jsx("div",{children:a.jsx(df,{value:(Lt=bt.inputCriteria.values[0])==null?void 0:Lt.value,onChange:bo=>I(bo,$.fieldset.criteriaKey),ui:s,errorMessage:$.fieldset.errorMessage,parentLegend:$.fieldset.legend,id:Qe,invalid:Ie.handleInvalid({hasError:b,criteriaKey:(mt=$.fieldset)==null?void 0:mt.criteriaKey,fieldSetId:Qe,useFilter:!0})})},Qe)})},`date-${$.fieldset.criteriaKey}-${pt}`),qe||null]},`date-${$.fieldset.criteriaKey}+${pt}`):null},Yt=({item:$,i:qe})=>oe({item:$,index:qe}),Ke=$=>{const qe=q.SelectedValue($);return(qe==null?void 0:qe.value)!==$.fieldset.inputs[0].inputCriteria.childDependencyOption},Nt=({item:$,i:qe})=>oe({item:$,index:qe,children:$.fieldset.children.map((pt,Xt)=>pt.fieldsets.length&&pt.fieldsets.map((wn,Jr)=>{const bt=wn&&q.SelectedValue(wn),ht=Ke($);return ht===!0&&bt!==void 0&&delete bt.selected,oe({item:wn,index:Jr,hidden:ht})}))});return A.fieldset.children.length>0?Nt({item:A,i:ne}):Yt({item:A,i:ne})})]}),a.jsxs("div",{className:"bf-section-nav-btn-group",children:[a.jsx(Te,{outline:!0,onClick:()=>O(-1),children:B[0].value}),f===!1?a.jsx(Te,{secondary:!0,onClick:()=>k(1),children:B[1].value}):a.jsx(_f,{id:"nav-modal",dataLayerValue:{viewTitle:p.section.heading},modalHeading:R.heading,navItemOneLabel:R.buttonGroup[0].value,navItemOneFunction:o,navItemTwoLabel:R.buttonGroup[1].value,navItemTwoFunction:i,triggerLabel:B[1].value,handleCheckRequriedFields:C,modalOpen:u,setModalOpen:c,completed:p.completed,alertElement:D})]})]})})]})};vf.propTypes={props:y.any,step:y.number,setStep:y.func,data:y.array,setStepData:y.func,setVerifyStep:y.func,setViewResults:y.func,ui:y.object};var Gi={exports:{}},vn={},Yi={exports:{}},lt={},Xi={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;/*! +*/var zu=Object.getOwnPropertySymbols,Gm=Object.prototype.hasOwnProperty,Ym=Object.prototype.propertyIsEnumerable;function Xm(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Jm(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(i){return t[i]});if(r.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(i){l[i]=i}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var If=Jm()?Object.assign:function(e,t){for(var n,r=Xm(e),l,i=1;i-1?e.split(Vu).map(function(o){return Af({type:o},i)}):(i.type=e,[i])};var Hu=function(e,t){var n=e[t];return delete e[t],n},av=function(t,n){const r=Object.keys(t).reduce(function(l,i){var o=sv(i,t[i]);return l.concat(o)},[]);return Af({add:function(i){r.forEach(function(o){i.addEventListener(o.type,o.delegate,o.options)})},remove:function(i){r.forEach(function(o){i.removeEventListener(o.type,o.delegate,o.options)})}},n)};const uv=If,cv=av,Wu=(...e)=>function(n=document.body){e.forEach(r=>{typeof this[r]=="function"&&this[r].call(this,n)})};var dv=(e,t)=>cv(e,uv({on:Wu("init","add"),off:Wu("teardown","remove")},t));const Ku="aria-expanded",fv="aria-controls",qu="hidden";var pv=(e,t)=>{let n=t;typeof n!="boolean"&&(n=e.getAttribute(Ku)==="false"),e.setAttribute(Ku,n);const r=e.getAttribute(fv),l=document.getElementById(r);if(!l)throw new Error(`No toggle target found with id: "${r}"`);return n?l.removeAttribute(qu):l.setAttribute(qu,""),n};function hv(e,t=window,n=document.documentElement){const r=e.getBoundingClientRect();return r.top>=0&&r.left>=0&&r.bottom<=(t.innerHeight||n.clientHeight)&&r.right<=(t.innerWidth||n.clientWidth)}var mv=hv,vv={CLICK:"click"},gv={prefix:"usa"};const Bf=Zm,yv=dv,Qu=pv,wv=mv,{CLICK:xv}=vv,{prefix:pi}=gv,hi=`.${pi}-accordion, .${pi}-accordion--bordered`,Cv=`.${pi}-banner__button`,Nr=`.${pi}-accordion__button[aria-controls]:not(${Cv})`,Zu="aria-expanded",Sv="data-allow-multiple",zf=e=>Bf(Nr,e).filter(n=>n.closest(hi)===e),Lr=(e,t)=>{const n=e.closest(hi);let r=t;if(!n)throw new Error(`${Nr} is missing outer ${hi}`);r=Qu(e,t);const l=n.hasAttribute(Sv);r&&!l&&zf(n).forEach(i=>{i!==e&&Qu(i,!1)})},Ev=e=>Lr(e,!0),kv=e=>Lr(e,!1),_v=yv({[xv]:{[Nr](){Lr(this),this.getAttribute(Zu)==="true"&&(wv(this)||this.scrollIntoView())}}},{init(e){Bf(Nr,e).forEach(t=>{const n=t.getAttribute(Zu)==="true";Lr(t,n)})},ACCORDION:hi,BUTTON:Nr,show:Ev,hide:kv,toggle:Lr,getButtons:zf});var jv=_v;const Gu=yi(jv),Uf=({id:e,heading:t,subHeading:n,children:r,isExpanded:l,hidden:i,...o})=>{k.useEffect(()=>(Gu.on(),()=>{Gu.off()}));const[s,a]=k.useState(!1),{benefitAccordion:c}=ie.dataLayerStructure,p=y=>{a(y),y===!0&&ie.dataLayerPush(window,{event:c.event,bfData:{benefitTitle:t}},!1)};k.useEffect(()=>{a(l)},[l]);const d=()=>s?u.jsx(ft,{type:"close","aria-hidden":"true"}):u.jsx(ft,{type:"open","aria-hidden":"true"}),m=y=>y.replace(/ +/g,"-").toLowerCase();return u.jsxs("div",{className:"bf-usa-accordion usa-accordion",...o,hidden:i,children:[u.jsx("h4",{className:"bf-usa-accordion__heading usa-accordion__heading",children:u.jsxs("button",{type:"button",className:"bf-usa-accordion__button usa-accordion__button","aria-expanded":s||!1,"aria-controls":e&&m(e),onClick:()=>p(!s),children:[u.jsx("span",{className:"bf-accordion-heading",children:t}),u.jsx("br",{}),u.jsx("span",{className:"bf-accordion-sub-heading",children:n}),d()]})}),u.jsx("div",{id:e&&m(e),className:"bf-usa-accordion__content usa-accordion__content usa-prose",hidden:s||!0,children:u.jsx("div",{children:r})})]})};Uf.propTypes={id:C.string,heading:C.string,subHeading:C.string,description:C.string,children:C.node};const Vf=({data:e,entryKey:t,expandAll:n,isExpandAll:r,setExpandAll:l,notEligibleView:i,ui:o})=>{const{benefitAccordion:s,benefitAccordionGroup:a}=o,{eligibleStatusLabels:c,agencyPrefix:p,visitLabel:d,unmetLabel:m,sourceIsEnglish:y}=s,{closedState:x,openState:g}=a,{benefitLink:S,openAllBenefitAccordions:f}=ie.dataLayerStructure,h=r?`${g} -`:`${x} +`,v=T=>{ie.dataLayerPush(window,{event:S.event,bfData:{benefitTitle:T}})},w=T=>{l(!T),ie.dataLayerPush(window,{event:f.event,bfData:{accordionsOpen:!T}},!1)},b=()=>n&&u.jsx(Ke,{className:"bf-expand-all","aria-label":h,outline:!0,onClick:()=>w(r),children:h}),N=({items:T})=>u.jsxs("div",{className:"bf-unmet-criteria-group",children:[u.jsx("div",{className:"bf-unmet-criteria-title",children:m}),u.jsx("ul",{className:"bf-unmet-criteria-list",children:T.map((B,D)=>{const{label:q}=B;return u.jsx("li",{className:"bf-unmet-criteria-item",children:q},`not-eligible-list-${D}`)})})]}),P=({items:T})=>u.jsxs("div",{className:"bf-unmet-criteria-group",children:[u.jsx("div",{className:"bf-unmet-criteria-title",children:c[1]}),u.jsx("ul",{className:"bf-unmet-criteria-list",children:T.map((B,D)=>{const{label:q}=B;return u.jsx("li",{className:"bf-unmet-criteria-item",children:q},`more-info-${D}`)})})]});return u.jsxs("div",{className:"bf-usa-accordion-group",children:[u.jsx(b,{}),e&&e.map((T,B)=>{const{agency:D,eligibility:q,SourceLink:de,summary:Te,title:I,SourceIsEnglish:F}=T[t],W=q.filter(M=>M.isEligible===!0),E=q.filter(M=>M.isEligible===!1),_=q.filter(M=>M.isEligible===void 0),R=W.length===q.length?c[0]:E.length===0&&_.length>0?c[1]:c[2],L=i===!1&&R!==c[0]?!0:i===!0&&R===c[0];return u.jsxs(Uf,{id:`${I}`,heading:I,subHeading:R,isExpanded:r,"data-testid":"bf-usa-accordion","data-test-accordion-title":I,hidden:L,children:[u.jsx(ee,{className:"bf-usa-detail-title",headingLevel:4,children:`${p} ${D.title}`}),u.jsx("div",{className:"bf-usa-detail-summary",dangerouslySetInnerHTML:bt(Te)}),u.jsx(Qf,{className:"bf-usa-criteria-list",data:W,initialEligibilityLength:q.length,ui:s}),E.length>0&&u.jsx(N,{items:E}),_.length>0&&u.jsx(P,{items:_}),u.jsx("div",{className:"bf-usa-accordion-group-cta-wrapper",children:u.jsxs(wa,{className:"bf-usa-link",href:de,target:"_blank",rel:"noopener noreferrer",onClick:()=>v(I),"data-testid":"bf-benefit-link",noCarrot:!0,children:[d," ",D.title," ",y&&F===!0?y:""]})})]},`${B}-${I}`)})]})};Vf.propTypes={data:C.array,entryKey:C.string,expandAll:C.bool,isExpandAll:C.bool,setExpandAll:C.func,notEligibleView:C.bool,ui:C.object};const yn={officerNavy:"#162e51",marine:"#1a4480",popBlue:"#005ea2",sky:"#d9e8f6",darkSky:"#b6dbfd",offBlack:"#1b1b1b",white:"#fff",bannerBlue:"#112f4e",grey:"#757575",mediumGrey:"#979797",darkMediumGrey:"#3d4551",baseGrey:"#dcdee0",baseLightGrey:"#f0f0f0",lightTeal:"#d2ebf1",pureBlack:"#000",electricBlue:"#0050d8",teal:"#00bde3",mediumTeal:"#ccecf2",darkTeal:"#0081a1",alertRed:"#b50909",greenCheck:"#009831"};function Ke({children:e,className:t,onClick:n,secondary:r,outline:l,disabled:i,unstyled:o,type:s,icon:a,...c}){const[p,d]=k.useState(null),m=r===!0?"secondary":l===!0?"outline":o===!0?"unstyled":null,[y,x]=k.useState(!1),[g,S]=k.useState();return k.useEffect(()=>{S(y&&r||y&&o?yn.marine:yn.popBlue)},[y]),k.useEffect(()=>{switch(m){case"secondary":d(["bf-usa-button","usa-button","bf-usa-button--secondary","usa-button--secondary"]);break;case"outline":d(["bf-usa-button","usa-button","bf-usa-button--outline","usa-button--outline"]);break;case"unstyled":d(["bf-usa-button","usa-button","bf-usa-button--unstyled","usa-button--unstyled"]);break;default:d(["bf-usa-button","usa-button"])}},[m,r,o]),u.jsxs("button",{onClick:i?null:n,type:s||"button",disabled:i,"aria-disabled":i,className:pt({className:t,defaultClasses:p}),onMouseOver:()=>x(!0),onMouseLeave:()=>x(!1),"data-testid":c["data-testid"],id:c.id,children:[a&&u.jsx(ft,{type:a,color:g,"aria-hidden":"true"}),e]})}Ke.propTypes={children:C.node,className:C.string,onClick:C.func,secondary:C.bool,disabled:C.bool,unstyled:C.bool,type:C.oneOf(["button","reset","download"]),icon:C.string};C.object,C.object;const Hf=({className:e,title:t,body:n,cta:r,href:l,noCarrot:i,carrotType:o,icon:s,...a})=>{const c=s!==void 0?["bf-card-icon"]:"",p=["add-list-reset"],d=i===!0?null:u.jsx(ft,{type:o,color:"#162E51","aria-hidden":"true"}),m=s===void 0?null:u.jsx(ft,{type:s,className:"bf-relative-icon","aria-hidden":"true"});return u.jsx("li",{className:pt({className:e,defaultClasses:c,utilityClasses:p}),...a,children:u.jsxs("a",{className:"bf-usa-card__container usa-card__container",href:l,children:[m,u.jsx("div",{className:"bf-usa-card__header usa-card__header",children:u.jsx(ee,{className:"bf-usa-card__heading usa-card__heading",headingLevel:3,children:t})}),u.jsx("div",{className:"bf-usa-card__body usa-card__body",dangerouslySetInnerHTML:bt(n)}),u.jsx("div",{className:"bf-usa-card__cta usa-card__cta",children:r}),d]})},`${t}`)};Hf.propTypes={className:C.string,title:C.string,body:C.string,href:C.string,noCarrot:C.bool,carrotType:C.string,icon:C.string};const ma=({heading:e,description:t})=>u.jsx("div",{className:"bf-chevron",children:u.jsxs("div",{className:"bf-grid-container grid-container",children:[u.jsx(ee,{className:"bf-chevron-heading",headingLevel:1,children:e}),u.jsx("div",{className:"bf-chevron-description",dangerouslySetInnerHTML:bt(t)})]})});ma.propTypes={heading:C.string,description:C.string};const Wf=({onChange:e,value:t,ui:n,parentLegend:r,id:l,invalid:i,errorMessage:o})=>{const{date:s,select:a,errorText:c}=n,{labelDay:p,labelMonth:d,labelYear:m,monthOptions:y}=s,{dateDefaultValue:x}=a,{suffix:g,prefix:S}=c,f=(v,w)=>v&&v.map(b=>b.id===w).includes(!0),h={month:o?`${o} : ${d.toLowerCase()}`:`${S} ${r==null?void 0:r.toLowerCase()} ${d.toLowerCase()} ${g}`,day:o?`${o} : ${p.toLowerCase()}`:`${S} ${r==null?void 0:r.toLowerCase()} ${p.toLowerCase()} ${g}`,year:o?`${o} : ${m.toLowerCase()}`:`${S} ${r==null?void 0:r.toLowerCase()} ${m.toLowerCase()} ${g}`};return u.jsxs(u.Fragment,{children:[u.jsxs("ul",{className:"add-list-reset",children:[f(i,`${l}_month`)&&u.jsx("li",{id:`month-error-description-${l}`,"data-testid":`month-error-description-${l}`,className:"bf-error-detail","aria-live":"assertive",children:h.month}),f(i,`${l}_day`)&&u.jsx("li",{id:`day-error-description-${l}`,"data-testid":`day-error-description-${l}`,className:"bf-error-detail","aria-live":"assertive",children:h.day}),f(i,`${l}_year`)&&u.jsx("li",{id:`year-error-description-${l}`,"data-testid":`year-error-description-${l}`,className:"bf-error-detail","aria-live":"assertive",children:h.year})]}),u.jsxs("div",{id:`bf-usa-memorable-date-${l}`,className:"bf-usa-memorable-date usa-memorable-date",children:[u.jsxs("div",{className:"bf-usa-form-group usa-form-group bf-usa-form-group--month usa-form-group--month bf-usa-form-group--select usa-form-group--select",children:[u.jsx("label",{className:"bf-usa-label usa-label",htmlFor:`${l}_month`,children:d}),u.jsx("div",{id:`${l}-month-description`,className:"usa-sr-only",children:"Select a month from the list"}),u.jsxs("select",{className:`bf-usa-select usa-select ${f(i,`${l}_month`)?"usa-input--error":""}`,id:`${l}_month`,name:`${l}_month`,"aria-describedby":`${l}-month-description`,value:t&&t.month||"",onChange:e,"aria-invalid":f(i,`${l}_month`),"data-errormessage":h.month,"aria-errormessage":`month-error-description-${l}`,"data-datetype":"month",children:[u.jsx("option",{value:"",children:x},"default"),y.map((v,w)=>u.jsx("option",{value:w,children:v.label},`${v.label}-${w}`))]})]}),u.jsxs("div",{className:"bf-usa-form-group usa-form-group bf-usa-form-group--day usa-form-group--day",children:[u.jsx("label",{className:"bf-usa-label usa-label",htmlFor:`${l}_day`,children:p}),u.jsx("div",{id:`${l}-day-description`,className:"usa-sr-only",children:"Enter two numerals for day"}),u.jsx("input",{className:`bf-usa-input usa-input ${f(i,`${l}_day`)?"usa-input--error":""}`,"aria-describedby":`${l}-day-description`,id:`${l}_day`,name:`${l}_day`,inputMode:"numeric",value:t&&t.day||"",onChange:e,"aria-invalid":f(i,`${l}_day`),"data-errormessage":h.day,"aria-errormessage":`day-error-description-${l}`,"data-datetype":"day"})]}),u.jsxs("div",{className:"bf-usa-form-group usa-form-group bf-usa-form-group--year usa-form-group--year",children:[u.jsx("label",{className:"bf-usa-label usa-label",htmlFor:`${l}_year`,children:m}),u.jsx("div",{id:`${l}-year-description`,className:"usa-sr-only",children:"Enter four numerals for year"}),u.jsx("input",{className:`bf-usa-input usa-input ${f(i,`${l}_year`)?"usa-input--error":""}`,"aria-describedby":`${l}-year-description`,id:`${l}_year`,name:`${l}_year`,inputMode:"numeric",value:t&&t.year||"",onChange:e,"aria-invalid":f(i,`${l}_year`),"data-errormessage":h.year,"aria-errormessage":`year-error-description-${l}`,"data-datetype":"year"})]})]})]})};Wf.propTypes={onChange:C.func,value:C.object,ui:C.object,id:C.string,invalid:C.oneOfType([C.bool,C.array])};const bv=({ui:e,data:t})=>{const n=k.useContext(Nt),[r,l]=k.useState(()=>di(`${window.location.origin}${n.basePath}${n.indexPath}`,t)),i=`${encodeURIComponent(r)}`,o=s=>{s.preventDefault(),l(di(`${window.location.origin}${n.basePath}${n.indexPath}`,t)),window.location=`mailto:?subject=${e==null?void 0:e.emailSubject}&body=${i}`};return u.jsx("a",{href:"",className:"bf-email-trigger bf-usa-link usa-link",onClick:s=>o(s),children:(e==null?void 0:e.emailTrigger)||"Email"})},Al=({children:e,legend:t,required:n,alertRef:r,requiredLabel:l,hidden:i,errorMessage:o,hint:s,className:a,id:c,invalid:p,ui:d})=>{const m=i!==void 0&&i?["display-none"]:"",y=[`bf-usa-fieldset usa-fieldset ${n===!0?"required-field":""} ${p===!0?"usa-input--error":""}`],x=m,{prefix:g,suffix:S}=d,h=n===!1?u.jsx(ds,{children:t}):u.jsx(u.Fragment,{children:u.jsxs(ds,{children:[t,u.jsx(qf,{requiredLabel:l})]})}),v=o?`${o}`:`${g} ${t&&t.toLowerCase().replace("?","")} ${S}`;return u.jsx("div",{className:"bf-fieldset-wrapper",children:u.jsxs("fieldset",{className:pt({className:a,defaultClasses:y,utilityClasses:x}),ref:r,required:n===!0,id:c,"data-errormessage":v,hidden:i,"aria-hidden":i,children:[t&&h,p===!0&&u.jsx("div",{id:`error-description-${c}`,"data-testid":`error-description-${c}`,className:"bf-error-detail","aria-live":"assertive",children:v}),s&&u.jsx("div",{className:"bf-hint",children:s}),e]})})};Al.propTypes={children:C.node,legend:C.string,alertRef:C.any,requiredLabel:C.object,hidden:C.bool,hint:C.string,className:C.string,invalid:C.bool,ui:C.object};function Kf({children:e}){return u.jsx("form",{className:"bf-usa-form",children:u.jsx("div",{className:"bf-grid-contianer grid-container",children:e})})}Kf.propTypes={children:C.node};const ee=({children:e,className:t,headingLevel:n,...r})=>{const l=[""],i=`h${n}`;return u.jsx(i,{className:pt({className:t,defaultClasses:l}),id:n===1?"skip-to-h1":null,...r,"aria-level":n,role:"heading",children:e})};ee.propTypes={children:C.oneOfType([C.string,C.array]),className:C.string,headingLevel:C.number};const qf=({requiredLabel:e})=>u.jsx("span",{title:"required",className:"bf-usa-hint usa-hint usa-hint--required bf-usa-hint--required bf-required required",children:`(${(e==null?void 0:e.value)||"Required"})`});qf.propTypes={requiredLabel:C.object};const Nv=()=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 44.31 44.31",children:[u.jsxs("g",{id:"Layer_1","data-name":"Layer 1",children:[u.jsxs("g",{children:[u.jsx("path",{className:"cls-1",fill:"#e8f6fb",strokeWidth:"0px",d:"M22.16,40.85c-10.33,0-18.7-8.37-18.7-18.7S11.83,3.46,22.16,3.46c7.55,0,14.06,4.48,17.01,10.93.08.18.16.37.24.55.93,2.22,1.44,4.66,1.44,7.22,0,10.33-8.37,18.7-18.7,18.7Z"}),u.jsx("path",{className:"cls-4",fill:"#e7f6fb",strokeWidth:"0px",d:"M22.16,39.34c-9.49,0-17.19-7.69-17.19-17.19S12.66,4.97,22.16,4.97c7,0,13.03,4.19,15.71,10.2.95,2.14,1.48,4.5,1.48,6.99,0,9.49-7.69,17.19-17.19,17.19Z"})]}),u.jsxs("g",{children:[u.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"22.01",cy:"3.63",r:"3.55"}),u.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"22.01",cy:"3.63",r:"2.49"})]}),u.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M40.55,12.43l-1.46.59c-2.11-3.91-5.56-6.99-9.75-8.6v1.63c3.55,1.51,6.49,4.18,8.34,7.54l-1.55.63c-.17.07-.19.29-.05.4l3.66,2.66c.14.1.33.02.36-.15l.77-4.46c.03-.18-.15-.32-.31-.25Z"}),u.jsxs("g",{children:[u.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"40.43",cy:"22.08",r:"3.55"}),u.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"40.43",cy:"22.08",r:"2.49"})]}),u.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M31.63,40.86l-.59-1.46c3.91-2.11,6.99-5.56,8.6-9.75h-1.63c-1.51,3.55-4.18,6.49-7.54,8.34l-.63-1.55c-.07-.17-.29-.19-.4-.05l-2.66,3.66c-.1.14-.02.33.15.36l4.46.77c.18.03.32-.15.25-.31Z"}),u.jsxs("g",{children:[u.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"22.01",cy:"40.53",r:"3.55"}),u.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"22.01",cy:"40.53",r:"2.49"})]}),u.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M3.48,31.73l1.46-.59c2.11,3.91,5.56,6.99,9.75,8.6v-1.63c-3.55-1.51-6.49-4.18-8.34-7.54l1.55-.63c.17-.07.19-.29.05-.4l-3.66-2.66c-.14-.1-.33-.02-.36.15l-.77,4.46c-.03.18.15.32.31.25Z"}),u.jsxs("g",{children:[u.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"3.6",cy:"22.08",r:"3.55"}),u.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"3.6",cy:"22.08",r:"2.49"})]}),u.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M12.4,3.31l.59,1.46c-3.91,2.11-6.99,5.56-8.6,9.75h1.63c1.51-3.55,4.18-6.49,7.54-8.34l.63,1.55c.07.17.29.19.4.05l2.66-3.66c.1-.14.02-.33-.15-.36l-4.46-.77c-.18-.03-.32.15-.25.31Z"}),u.jsxs("g",{children:[u.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M24.12,23.21l-.04-4.46c.16,0,.32-.02.47-.03,1.7-.13,3.11-1.33,3.52-2.97l.37-1.48c.13-.53-.19-1.06-.71-1.19-.52-.13-1.06.19-1.19.71l-.37,1.48c-.21.83-.92,1.43-1.78,1.49-.8.06-1.7.1-2.67.1-.25,0-.51,0-.77.02-2.01.12-3.72,1.49-4.24,3.42l-.64,2.32c-.14.52.17,1.06.69,1.2.09.02.17.04.26.04.43,0,.83-.29.95-.72l.64-2.32c.13-.49.41-.91.76-1.25l-.03,3.64-.98,7.25c-.08.6.34,1.15.93,1.22.05,0,.1,0,.15,0,.54,0,1.01-.4,1.08-.94l.95-7.05h.5l.95,7.05c.07.55.54.94,1.08.94.05,0,.1,0,.15,0,.6-.08,1.02-.63.93-1.22l-.97-7.25Z"}),u.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M21.74,16.72c1.2,0,2.18-.98,2.18-2.18s-.98-2.18-2.18-2.18-2.18.98-2.18,2.18c0,1.2.98,2.18,2.18,2.18Z"})]})]}),u.jsxs("g",{id:"Layer_1_copy_3","data-name":"Layer 1 copy 3",children:[u.jsxs("g",{children:[u.jsx("path",{className:"cls-5",fill:"#fff",strokeWidth:"0px",d:"M22.16,40.85c-10.33,0-18.7-8.37-18.7-18.7S11.83,3.46,22.16,3.46c7.55,0,14.06,4.48,17.01,10.93.08.18.16.37.24.55.93,2.22,1.44,4.66,1.44,7.22,0,10.33-8.37,18.7-18.7,18.7Z"}),u.jsx("path",{className:"cls-4",fill:"#e7f6fb",strokeWidth:"0px",d:"M22.16,36.47c-7.91,0-14.32-6.41-14.32-14.32s6.41-14.32,14.32-14.32c5.83,0,10.85,3.49,13.08,8.49.79,1.78,1.23,3.75,1.23,5.82,0,7.91-6.41,14.32-14.32,14.32Z"})]}),u.jsxs("g",{children:[u.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"22.01",cy:"3.63",r:"3.55"}),u.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"22.01",cy:"3.63",r:"2.49"})]}),u.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M40.55,12.43l-1.46.59c-2.11-3.91-5.56-6.99-9.75-8.6v1.63c3.55,1.51,6.49,4.18,8.34,7.54l-1.55.63c-.17.07-.19.29-.05.4l3.66,2.66c.14.1.33.02.36-.15l.77-4.46c.03-.18-.15-.32-.31-.25Z"}),u.jsxs("g",{children:[u.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"40.43",cy:"22.08",r:"3.55"}),u.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"40.43",cy:"22.08",r:"2.49"})]}),u.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M31.63,40.86l-.59-1.46c3.91-2.11,6.99-5.56,8.6-9.75h-1.63c-1.51,3.55-4.18,6.49-7.54,8.34l-.63-1.55c-.07-.17-.29-.19-.4-.05l-2.66,3.66c-.1.14-.02.33.15.36l4.46.77c.18.03.32-.15.25-.31Z"}),u.jsxs("g",{children:[u.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"22.01",cy:"40.53",r:"3.55"}),u.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"22.01",cy:"40.53",r:"2.49"})]}),u.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M3.48,31.73l1.46-.59c2.11,3.91,5.56,6.99,9.75,8.6v-1.63c-3.55-1.51-6.49-4.18-8.34-7.54l1.55-.63c.17-.07.19-.29.05-.4l-3.66-2.66c-.14-.1-.33-.02-.36.15l-.77,4.46c-.03.18.15.32.31.25Z"}),u.jsxs("g",{children:[u.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"3.6",cy:"22.08",r:"3.55"}),u.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"3.6",cy:"22.08",r:"2.49"})]}),u.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M12.4,3.31l.59,1.46c-3.91,2.11-6.99,5.56-8.6,9.75h1.63c1.51-3.55,4.18-6.49,7.54-8.34l.63,1.55c.07.17.29.19.4.05l2.66-3.66c.1-.14.02-.33-.15-.36l-4.46-.77c-.18-.03-.32.15-.25.31Z"})]}),u.jsx("g",{id:"dude",children:u.jsxs("g",{children:[u.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M24.12,23.21l-.04-4.46c.16,0,.32-.02.47-.03,1.7-.13,3.11-1.33,3.52-2.97l.37-1.48c.13-.53-.19-1.06-.71-1.19-.52-.13-1.06.19-1.19.71l-.37,1.48c-.21.83-.92,1.43-1.78,1.49-.8.06-1.7.1-2.67.1-.25,0-.51,0-.77.02-2.01.12-3.72,1.49-4.24,3.42l-.64,2.32c-.14.52.17,1.06.69,1.2.09.02.17.04.26.04.43,0,.83-.29.95-.72l.64-2.32c.13-.49.41-.91.76-1.25l-.03,3.64-.98,7.25c-.08.6.34,1.15.93,1.22.05,0,.1,0,.15,0,.54,0,1.01-.4,1.08-.94l.95-7.05h.5l.95,7.05c.07.55.54.94,1.08.94.05,0,.1,0,.15,0,.6-.08,1.02-.63.93-1.22l-.97-7.25Z"}),u.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M21.74,16.72c1.2,0,2.18-.98,2.18-2.18s-.98-2.18-2.18-2.18-2.18.98-2.18,2.18c0,1.2.98,2.18,2.18,2.18Z"})]})})]}),Lv=({color:e})=>u.jsx("svg",{className:"bf-carrot",width:"12",height:"19",viewBox:"0 0 12 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.78013 1.73698C3.33373 1.29058 2.60998 1.29059 2.16359 1.73698L1.74049 2.16007C1.29444 2.60612 1.29405 3.32919 1.73961 3.77573L6.7498 8.79686C7.19502 9.24305 7.19502 9.96544 6.7498 10.4116L1.73961 15.4328C1.29405 15.8793 1.29444 16.6024 1.7405 17.0484L2.16359 17.4715C2.60998 17.9179 3.33373 17.9179 3.78013 17.4715L10.8391 10.4125C11.2855 9.96612 11.2855 9.24237 10.8391 8.79597L3.78013 1.73698Z",fill:e||yn.officerNavy})}),Pv=({color:e})=>u.jsxs("svg",{className:"bf-carrot-solid",xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",fill:e||yn.white,children:[u.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),u.jsx("path",{d:"M7 10l5 5 5-5z"})]}),Tv=({color:e})=>u.jsxs("svg",{className:"bf-close",xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",children:[u.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),u.jsx("path",{d:"M19 13H5v-2h14v2z",fill:e||yn.black})]}),Ov=()=>u.jsxs("svg",{className:"bf-death",width:"45",height:"45",viewBox:"0 0 45 45",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.1501 6.87479C20.1501 9.34031 18.1533 11.3388 15.6903 11.3388C13.2273 11.3388 11.2309 9.34031 11.2309 6.87479C11.2309 4.40927 13.2273 2.4104 15.6903 2.4104C18.1533 2.4104 20.1501 4.40927 20.1501 6.87479ZM8.94118 13.9881C8.97531 13.7489 9.18017 13.5712 9.42182 13.5712H21.8969C22.0106 13.5712 22.1206 13.6111 22.2079 13.6839L22.6929 14.0884L28.6272 19.0387C28.7145 19.1115 28.8246 19.1514 28.9382 19.1514H37.5777C37.8151 19.1514 38.0176 19.323 38.0566 19.5572L40.1247 31.979C40.1739 32.2749 39.9457 32.5442 39.6458 32.5442H37.3595C37.0914 32.5442 36.874 32.7616 36.874 33.0297V42.1033C36.874 42.3714 36.6567 42.5888 36.3885 42.5888H32.8998C32.6316 42.5888 32.4143 42.3714 32.4143 42.1033V29.6815C32.4143 29.4134 32.6316 29.196 32.8998 29.196H34.0713C34.3713 29.196 34.5995 28.9267 34.5502 28.6307L33.9758 25.1807L33.7429 23.6286C33.7418 23.6213 33.7355 23.6158 33.728 23.6158C33.7206 23.6158 33.7143 23.6105 33.7131 23.6032L33.5969 22.9053C33.5579 22.6712 33.3553 22.4996 33.118 22.4996H25.9029C25.7879 22.4996 25.6767 22.4588 25.589 22.3844L20.5939 18.1504C20.5062 18.076 20.3949 18.0352 20.2799 18.0352H13.6883C13.4389 18.0352 13.23 18.2242 13.2052 18.4725L12.6333 24.1978C12.6047 24.4836 12.8291 24.7316 13.1164 24.7316H14.0905C14.3586 24.7316 14.576 24.949 14.576 25.2171V42.1035C14.576 42.3716 14.3586 42.589 14.0905 42.589H10.6017C10.3336 42.589 10.1162 42.3716 10.1162 42.1035V29.6817C10.1162 29.4135 9.89885 29.1962 9.63071 29.1962H7.33117C7.03575 29.1962 6.80881 28.9346 6.85053 28.6421L8.94118 13.9881ZM21.2653 25.2167C21.2653 24.9486 21.0479 24.7312 20.7798 24.7312H17.291C17.0229 24.7312 16.8055 24.9486 16.8055 25.2167V42.1031C16.8055 42.3712 17.0229 42.5886 17.291 42.5886H20.7798C21.0479 42.5886 21.2653 42.3712 21.2653 42.1031V25.2167ZM25.7247 25.2167C25.7247 24.9486 25.9421 24.7312 26.2102 24.7312H29.699C29.9671 24.7312 30.1845 24.9486 30.1845 25.2167V42.1031C30.1845 42.3712 29.9671 42.5886 29.699 42.5886H26.2102C25.9421 42.5886 25.7247 42.3712 25.7247 42.1031V25.2167ZM35.7589 12.4548C35.7589 14.9203 33.7625 16.9192 31.2995 16.9192C28.8365 16.9192 26.8397 14.9203 26.8397 12.4548C26.8397 9.98928 28.8365 7.99041 31.2995 7.99041C33.7625 7.99041 35.7589 9.98928 35.7589 12.4548Z",fill:"#E9F6FB",stroke:"#1B1B1B",strokeWidth:"2.77965"}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.1501 6.87479C20.1501 9.34031 18.1533 11.3388 15.6903 11.3388C13.2273 11.3388 11.2309 9.34031 11.2309 6.87479C11.2309 4.40927 13.2273 2.4104 15.6903 2.4104C18.1533 2.4104 20.1501 4.40927 20.1501 6.87479ZM8.94118 13.9881C8.97531 13.7489 9.18017 13.5712 9.42182 13.5712H21.8969C22.0106 13.5712 22.1206 13.6111 22.2079 13.6839L22.6929 14.0884L28.6272 19.0387C28.7145 19.1115 28.8246 19.1514 28.9382 19.1514H37.5777C37.8151 19.1514 38.0177 19.323 38.0566 19.5572L40.1247 31.979C40.1739 32.2749 39.9457 32.5442 39.6458 32.5442H37.3595C37.0914 32.5442 36.874 32.7616 36.874 33.0297V42.1033C36.874 42.3714 36.6567 42.5888 36.3885 42.5888H32.8998C32.6316 42.5888 32.4143 42.3714 32.4143 42.1033V29.6815C32.4143 29.4134 32.6316 29.196 32.8998 29.196H34.0713C34.3713 29.196 34.5995 28.9267 34.5502 28.6307L33.9758 25.1807L33.7429 23.6286C33.7418 23.6213 33.7355 23.6158 33.728 23.6158C33.7206 23.6158 33.7143 23.6105 33.7131 23.6032L33.5969 22.9053C33.5579 22.6712 33.3553 22.4996 33.118 22.4996H25.9029C25.7879 22.4996 25.6767 22.4588 25.589 22.3844L20.5939 18.1504C20.5062 18.076 20.3949 18.0352 20.2799 18.0352H13.6883C13.4389 18.0352 13.23 18.2242 13.2052 18.4725L12.6333 24.1978C12.6047 24.4836 12.8291 24.7316 13.1164 24.7316H14.0905C14.3586 24.7316 14.576 24.949 14.576 25.2171V42.1035C14.576 42.3716 14.3586 42.589 14.0905 42.589H10.6017C10.3336 42.589 10.1162 42.3716 10.1162 42.1035V29.6817C10.1162 29.4135 9.89885 29.1962 9.63071 29.1962H7.33117C7.03575 29.1962 6.80881 28.9346 6.85053 28.6421L8.94118 13.9881ZM21.2653 25.2167C21.2653 24.9486 21.0479 24.7312 20.7798 24.7312H17.291C17.0229 24.7312 16.8055 24.9486 16.8055 25.2167V42.1031C16.8055 42.3712 17.0229 42.5886 17.291 42.5886H20.7798C21.0479 42.5886 21.2653 42.3712 21.2653 42.1031V25.2167ZM25.7247 25.2167C25.7247 24.9486 25.9421 24.7312 26.2102 24.7312H29.699C29.9671 24.7312 30.1845 24.9486 30.1845 25.2167V42.1031C30.1845 42.3712 29.9671 42.5886 29.699 42.5886H26.2102C25.9421 42.5886 25.7247 42.3712 25.7247 42.1031V25.2167ZM35.7589 12.4548C35.7589 14.9203 33.7625 16.9192 31.2995 16.9192C28.8365 16.9192 26.8397 14.9203 26.8397 12.4548C26.8397 9.98928 28.8365 7.99041 31.2995 7.99041C33.7625 7.99041 35.7589 9.98928 35.7589 12.4548Z",fill:"white",stroke:"#00C1E7",strokeWidth:"0.571814"})]}),Rv=({color:e})=>u.jsx("svg",{width:"20",height:"16",viewBox:"0 0 20 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 0.000244141H2C0.9 0.000244141 0.00999999 0.900244 0.00999999 2.00024L0 14.0002C0 15.1002 0.9 16.0002 2 16.0002H18C19.1 16.0002 20 15.1002 20 14.0002V2.00024C20 0.900244 19.1 0.000244141 18 0.000244141ZM18 14.0002H2V4.00024L10 9.00024L18 4.00024V14.0002ZM10 7.00024L2 2.00024H18L10 7.00024Z",fill:e||yn.popBlue})}),Mv=()=>u.jsxs("svg",{width:"45",height:"45",viewBox:"0 0 45 45",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M29.2857 9.5335C31.4805 9.5335 33.2598 7.75908 33.2598 5.57022C33.2598 3.38136 31.4805 1.60693 29.2857 1.60693C27.0908 1.60693 25.3115 3.38136 25.3115 5.57022C25.3115 7.75908 27.0908 9.5335 29.2857 9.5335Z",fill:"#E9F6FB",stroke:"#1A1A1A",strokeWidth:"1.34304",strokeMiterlimit:"10"}),u.jsx("path",{d:"M31.1129 34.0346C31.1129 33.6064 30.7661 33.2593 30.3382 33.2593C29.9103 33.2593 29.5635 33.6064 29.5635 34.0346V42.3786C29.5635 42.8068 29.9103 43.1539 30.3382 43.1539C30.7661 43.1539 31.1129 42.8068 31.1129 42.3786V34.0346Z",fill:"#1A1A1A"}),u.jsx("path",{d:"M29.8281 42.2474V42.5131C29.8281 42.8664 30.1153 43.1528 30.4696 43.1528H35.1777C35.532 43.1528 35.8193 42.8664 35.8193 42.5131V42.2474C35.8193 41.8941 35.532 41.6076 35.1777 41.6076H30.4696C30.1153 41.6076 29.8281 41.8941 29.8281 42.2474Z",fill:"#1A1A1A"}),u.jsx("path",{d:"M19.0432 44.1969C26.0392 44.1969 31.7105 38.5411 31.7105 31.5643C31.7105 24.5875 26.0392 18.9316 19.0432 18.9316C12.0473 18.9316 6.37598 24.5875 6.37598 31.5643C6.37598 38.5411 12.0473 44.1969 19.0432 44.1969Z",fill:"#010101"}),u.jsx("path",{d:"M36.3958 22.9921L29.7469 22.4553L31.8835 14.827C32.1988 13.6938 31.6497 12.5173 30.6385 12.0077C30.5026 11.9318 30.3558 11.8667 30.1927 11.8233L21.1027 9.29139C20.7276 9.18838 20.347 9.19922 19.9936 9.29681C19.6892 9.34561 19.3956 9.46488 19.1401 9.67091L12.8934 14.6535C12.1051 15.2824 11.9801 16.4372 12.6053 17.218C13.2359 18.0041 14.3939 18.1288 15.1768 17.5053L20.0045 13.6505L21.8693 14.1709L17.857 21.7559C17.2318 22.9379 17.6885 24.4126 18.8737 25.0361L22.5488 26.9662C23.3154 27.3674 24.207 27.3186 24.9083 26.912L25.3867 27.0421C25.7673 27.5463 26.349 27.8933 27.0286 27.9475L33.1991 28.4463L32.4326 37.8801C32.3184 39.2573 33.3568 40.4772 34.7431 40.5856C36.124 40.6994 37.3472 39.6639 37.456 38.2814L38.44 26.1801C38.44 26.1313 38.44 26.0771 38.44 26.0283L38.4889 25.4319C38.5922 24.1794 37.6463 23.0734 36.3904 22.9704L36.3958 22.9921Z",fill:"#E9F6FB",stroke:"#1A1A1A",strokeWidth:"1.34304",strokeMiterlimit:"10"}),u.jsx("path",{d:"M19.0442 41.7672C24.695 41.7672 29.2758 37.1989 29.2758 31.5636C29.2758 25.9282 24.695 21.3599 19.0442 21.3599C13.3934 21.3599 8.8125 25.9282 8.8125 31.5636C8.8125 37.1989 13.3934 41.7672 19.0442 41.7672Z",fill:"#E9F6FB"}),u.jsx("path",{d:"M19.0425 42.3136C24.9965 42.3136 29.8233 37.5001 29.8233 31.5623C29.8233 25.6245 24.9965 20.811 19.0425 20.811C13.0884 20.811 8.26172 25.6245 8.26172 31.5623C8.26172 37.5001 13.0884 42.3136 19.0425 42.3136Z",stroke:"#00C0E4",strokeWidth:"1.03146",strokeMiterlimit:"10"}),u.jsx("path",{d:"M19.0426 39.4948C23.4353 39.4948 26.9963 35.9436 26.9963 31.5628C26.9963 27.1821 23.4353 23.6309 19.0426 23.6309C14.6499 23.6309 11.0889 27.1821 11.0889 31.5628C11.0889 35.9436 14.6499 39.4948 19.0426 39.4948Z",fill:"white",stroke:"#1A1A1A",strokeWidth:"1.07443",strokeMiterlimit:"10"})]}),$v=({color:e})=>u.jsx("svg",{className:"bf-checkmark--green",width:"24",height:"20",viewBox:"0 0 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 4.15417C23.9925 4.52794 23.8515 4.88618 23.6033 5.16208L12.2975 16.6522L10.1157 18.8696C9.84423 19.1219 9.49174 19.2651 9.12397 19.2727C8.7562 19.2651 8.40371 19.1219 8.13223 18.8696L5.95041 16.6522L0.396694 11.0079C0.148478 10.732 0.00748054 10.3738 0 10C0.00748054 9.62626 0.148478 9.26802 0.396694 8.99212L2.57851 6.77473C2.84999 6.52246 3.20248 6.37917 3.57025 6.37156C3.93802 6.37917 4.29051 6.52246 4.56198 6.77473L9.12397 11.4111L19.2397 1.13046C19.5111 0.878193 19.8636 0.734897 20.2314 0.727295C20.5992 0.734897 20.9517 0.878193 21.2231 1.13046L23.405 3.34785C23.8017 3.54943 24 3.75101 24 4.15417Z",fill:e||yn.greenCheck})}),Dv=()=>u.jsx("svg",{className:"bf-info",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.33594 3.66732H7.66927V5.00065H6.33594V3.66732ZM6.33594 6.33398H7.66927V10.334H6.33594V6.33398ZM7.0026 0.333984C3.3226 0.333984 0.335938 3.32065 0.335938 7.00065C0.335938 10.6807 3.3226 13.6673 7.0026 13.6673C10.6826 13.6673 13.6693 10.6807 13.6693 7.00065C13.6693 3.32065 10.6826 0.333984 7.0026 0.333984ZM7.0026 12.334C4.0626 12.334 1.66927 9.94065 1.66927 7.00065C1.66927 4.06065 4.0626 1.66732 7.0026 1.66732C9.9426 1.66732 12.3359 4.06065 12.3359 7.00065C12.3359 9.94065 9.9426 12.334 7.0026 12.334Z",fill:"#1B1B1B"})}),Iv=()=>u.jsxs("svg",{className:"bf-modal-close",xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",children:[u.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),u.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})]}),Fv=()=>u.jsxs("svg",{className:"bf-open",xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",children:[u.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),u.jsx("path",{fill:"none",d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"})]}),Av=()=>u.jsxs("svg",{width:"45",height:"45",viewBox:"0 0 45 45",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M40.2696 1.60693H6.37598V43.3926H40.2696V1.60693Z",fill:"#DFEFF4",stroke:"#191919",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M19.2757 9.08496H12.9048C12.4714 9.08496 12.1201 9.43563 12.1201 9.86819V14.6747C12.1201 15.1073 12.4714 15.4579 12.9048 15.4579H19.2757C19.7091 15.4579 20.0604 15.1073 20.0604 14.6747V9.86819C20.0604 9.43563 19.7091 9.08496 19.2757 9.08496Z",fill:"#05BBE2"}),u.jsx("path",{d:"M19.2757 19.314H12.9048C12.4714 19.314 12.1201 19.6646 12.1201 20.0972V24.9037C12.1201 25.3363 12.4714 25.6869 12.9048 25.6869H19.2757C19.7091 25.6869 20.0604 25.3363 20.0604 24.9037V20.0972C20.0604 19.6646 19.7091 19.314 19.2757 19.314Z",fill:"#05BBE2"}),u.jsx("path",{d:"M19.2757 29.5415H12.9048C12.4714 29.5415 12.1201 29.8922 12.1201 30.3247V35.1312C12.1201 35.5638 12.4714 35.9145 12.9048 35.9145H19.2757C19.7091 35.9145 20.0604 35.5638 20.0604 35.1312V30.3247C20.0604 29.8922 19.7091 29.5415 19.2757 29.5415Z",fill:"#05BBE2"}),u.jsx("path",{d:"M14.8369 11.9099L16.1581 13.2287L21.1878 9.08496",stroke:"#191919",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M23.5391 11.0723H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M23.5391 13.4648H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M23.5391 21.3071H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M23.5391 23.6904H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M23.5391 31.5381H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M23.5391 33.9214H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"})]}),Bv=({color:e})=>u.jsx("svg",{width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 14.1203C14.24 14.1203 13.56 14.4203 13.04 14.8903L5.91 10.7403C5.96 10.5103 6 10.2803 6 10.0403C6 9.80028 5.96 9.57028 5.91 9.34028L12.96 5.23028C13.5 5.73028 14.21 6.04028 15 6.04028C16.66 6.04028 18 4.70028 18 3.04028C18 1.38028 16.66 0.0402832 15 0.0402832C13.34 0.0402832 12 1.38028 12 3.04028C12 3.28028 12.04 3.51028 12.09 3.74028L5.04 7.85028C4.5 7.35028 3.79 7.04028 3 7.04028C1.34 7.04028 0 8.38028 0 10.0403C0 11.7003 1.34 13.0403 3 13.0403C3.79 13.0403 4.5 12.7303 5.04 12.2303L12.16 16.3903C12.11 16.6003 12.08 16.8203 12.08 17.0403C12.08 18.6503 13.39 19.9603 15 19.9603C16.61 19.9603 17.92 18.6503 17.92 17.0403C17.92 15.4303 16.61 14.1203 15 14.1203Z",fill:e||"#005EA2"})}),ft=({type:e,color:t,...n})=>{let r;switch(e){case"all_benefits":r=u.jsx(Nv,{});break;case"carrot-solid":r=u.jsx(Pv,{color:t});break;case"carrot":r=u.jsx(Lv,{color:t});break;case"close":r=u.jsx(Tv,{});break;case"death":r=u.jsx(Ov,{});break;case"disability":r=u.jsx(Mv,{});break;case"email":r=u.jsx(Rv,{color:t});break;case"green-check":r=u.jsx($v,{color:t});break;case"info":r=u.jsx(Dv,{color:t});break;case"open":r=u.jsx(Fv,{});break;case"modal-close":r=u.jsx(Iv,{color:t});break;case"retirement":r=u.jsx(Av,{});break;case"share":r=u.jsx(Bv,{color:t});break;default:r=null}return u.jsx("i",{...n,"data-testid":`icon-${e}`,children:r})};ft.propTypes={type:C.string,color:C.string,props:C.any};const Qf=({className:e,data:t,initialEligibilityLength:n,ui:r})=>{const{benefitSummary:l,benefitSummaryPrefix:i,benefitSummaryConjunction:o}=r,s=["bf-key-eligibility-criteria-group"];return u.jsx("div",{className:pt({className:e,defaultClasses:s}),children:t&&u.jsxs(u.Fragment,{children:[" ",u.jsxs(ee,{className:"bf-key-eligibility-criteria-heading",headingLevel:5,children:[`${l}`,u.jsx("span",{className:"bf-key-eligibility-criteria-sub-heading",children:` - ${i} ${t.length} ${o} + ${n}`})]}),u.jsx("ul",{className:"bf-key-eligibility-criteria-list",children:t.map((a,c)=>{const{criteriaKey:p,label:d}=a;return u.jsxs("li",{className:"bf-usa-list usa-list usa-list--unstyled bf-usa-list--unstyled bf-key-eligibility-criteria-list-item","data-testid":`${p}`,children:[u.jsx("div",{"aria-hidden":"true",children:u.jsx(ft,{type:"green-check","aria-hidden":"true"})}),d]},`${p}-${c}`)})})]})})};Qf.propTypes={className:C.string,data:C.array,initialEligibilityLength:C.number};const ds=({children:e})=>u.jsx("legend",{className:"bf-legend usa-legend",children:e});ds.propTypes={children:C.node};const va=({className:e,label:t,htmlFor:n})=>{const r=["bf-usa-label usa-label"];return u.jsx("label",{className:pt({className:e,defaultClasses:r}),htmlFor:n,children:t})};va.propTypes={className:C.string,label:C.string,htmlFor:C.string};var fs={exports:{}},wn={},ps={exports:{}},lt={},hs={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;/*! * Adapted from jQuery UI core * * http://jqueryui.com @@ -52,16 +79,16 @@ object-assign * http://jquery.org/license * * http://api.jqueryui.com/category/ui-core/ - */var n="none",r="contents",l=/input|select|textarea|button|object|iframe/;function o(m,p){return p.getPropertyValue("overflow")!=="visible"||m.scrollWidth<=0&&m.scrollHeight<=0}function i(m){var p=m.offsetWidth<=0&&m.offsetHeight<=0;if(p&&!m.innerHTML)return!0;try{var g=window.getComputedStyle(m),S=g.getPropertyValue("display");return p?S!==r&&o(m,g):S===n}catch{return console.warn("Failed to inspect element style"),!1}}function s(m){for(var p=m,g=m.getRootNode&&m.getRootNode();p&&p!==document.body;){if(g&&p===g&&(p=g.host.parentNode),i(p))return!1;p=p.parentNode}return!0}function u(m,p){var g=m.nodeName.toLowerCase(),S=l.test(g)&&!m.disabled||g==="a"&&m.href||p;return S&&s(m)}function c(m){var p=m.getAttribute("tabindex");p===null&&(p=void 0);var g=isNaN(p);return(g||p>=0)&&u(m,!g)}function f(m){var p=[].slice.call(m.querySelectorAll("*"),0).reduce(function(g,S){return g.concat(S.shadowRoot?f(S.shadowRoot):[S])},[]);return p.filter(c)}e.exports=t.default})(Xi,Xi.exports);var gf=Xi.exports;Object.defineProperty(lt,"__esModule",{value:!0});lt.resetState=fm;lt.log=pm;lt.handleBlur=Vr;lt.handleFocus=Hr;lt.markForFocusLater=hm;lt.returnFocus=mm;lt.popWithoutFocus=vm;lt.setupScopedFocus=gm;lt.teardownScopedFocus=ym;var um=gf,cm=dm(um);function dm(e){return e&&e.__esModule?e:{default:e}}var qn=[],Pn=null,Ji=!1;function fm(){qn=[]}function pm(){}function Vr(){Ji=!0}function Hr(){if(Ji){if(Ji=!1,!Pn)return;setTimeout(function(){if(!Pn.contains(document.activeElement)){var e=(0,cm.default)(Pn)[0]||Pn;e.focus()}},0)}}function hm(){qn.push(document.activeElement)}function mm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=null;try{qn.length!==0&&(t=qn.pop(),t.focus({preventScroll:e}));return}catch{console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}}function vm(){qn.length>0&&qn.pop()}function gm(e){Pn=e,window.addEventListener?(window.addEventListener("blur",Vr,!1),document.addEventListener("focus",Hr,!0)):(window.attachEvent("onBlur",Vr),document.attachEvent("onFocus",Hr))}function ym(){Pn=null,window.addEventListener?(window.removeEventListener("blur",Vr),document.removeEventListener("focus",Hr)):(window.detachEvent("onBlur",Vr),document.detachEvent("onFocus",Hr))}var es={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=gf,r=l(n);function l(s){return s&&s.__esModule?s:{default:s}}function o(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;return s.activeElement.shadowRoot?o(s.activeElement.shadowRoot):s.activeElement}function i(s,u){var c=(0,r.default)(s);if(!c.length){u.preventDefault();return}var f=void 0,m=u.shiftKey,p=c[0],g=c[c.length-1],S=o();if(s===S){if(!m)return;f=g}if(g===S&&!m&&(f=p),p===S&&m&&(f=g),f){u.preventDefault(),f.focus();return}var x=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent),b=x!=null&&x[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(b){var h=c.indexOf(S);if(h>-1&&(h+=m?-1:1),f=c[h],typeof f>"u"){u.preventDefault(),f=m?g:p,f.focus();return}u.preventDefault(),f.focus()}}e.exports=t.default})(es,es.exports);var wm=es.exports,ot={},xm=function(){},Sm=xm,nt={},yf={exports:{}};/*! + */var n="none",r="contents",l=/input|select|textarea|button|object|iframe/;function i(d,m){return m.getPropertyValue("overflow")!=="visible"||d.scrollWidth<=0&&d.scrollHeight<=0}function o(d){var m=d.offsetWidth<=0&&d.offsetHeight<=0;if(m&&!d.innerHTML)return!0;try{var y=window.getComputedStyle(d),x=y.getPropertyValue("display");return m?x!==r&&i(d,y):x===n}catch{return console.warn("Failed to inspect element style"),!1}}function s(d){for(var m=d,y=d.getRootNode&&d.getRootNode();m&&m!==document.body;){if(y&&m===y&&(m=y.host.parentNode),o(m))return!1;m=m.parentNode}return!0}function a(d,m){var y=d.nodeName.toLowerCase(),x=l.test(y)&&!d.disabled||y==="a"&&d.href||m;return x&&s(d)}function c(d){var m=d.getAttribute("tabindex");m===null&&(m=void 0);var y=isNaN(m);return(y||m>=0)&&a(d,!y)}function p(d){var m=[].slice.call(d.querySelectorAll("*"),0).reduce(function(y,x){return y.concat(x.shadowRoot?p(x.shadowRoot):[x])},[]);return m.filter(c)}e.exports=t.default})(hs,hs.exports);var Zf=hs.exports;Object.defineProperty(lt,"__esModule",{value:!0});lt.resetState=Hv;lt.log=Wv;lt.handleBlur=Xr;lt.handleFocus=Jr;lt.markForFocusLater=Kv;lt.returnFocus=qv;lt.popWithoutFocus=Qv;lt.setupScopedFocus=Zv;lt.teardownScopedFocus=Gv;var zv=Zf,Uv=Vv(zv);function Vv(e){return e&&e.__esModule?e:{default:e}}var Gn=[],Dn=null,ms=!1;function Hv(){Gn=[]}function Wv(){}function Xr(){ms=!0}function Jr(){if(ms){if(ms=!1,!Dn)return;setTimeout(function(){if(!Dn.contains(document.activeElement)){var e=(0,Uv.default)(Dn)[0]||Dn;e.focus()}},0)}}function Kv(){Gn.push(document.activeElement)}function qv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=null;try{Gn.length!==0&&(t=Gn.pop(),t.focus({preventScroll:e}));return}catch{console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}}function Qv(){Gn.length>0&&Gn.pop()}function Zv(e){Dn=e,window.addEventListener?(window.addEventListener("blur",Xr,!1),document.addEventListener("focus",Jr,!0)):(window.attachEvent("onBlur",Xr),document.attachEvent("onFocus",Jr))}function Gv(){Dn=null,window.addEventListener?(window.removeEventListener("blur",Xr),document.removeEventListener("focus",Jr)):(window.detachEvent("onBlur",Xr),document.detachEvent("onFocus",Jr))}var vs={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=Zf,r=l(n);function l(s){return s&&s.__esModule?s:{default:s}}function i(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;return s.activeElement.shadowRoot?i(s.activeElement.shadowRoot):s.activeElement}function o(s,a){var c=(0,r.default)(s);if(!c.length){a.preventDefault();return}var p=void 0,d=a.shiftKey,m=c[0],y=c[c.length-1],x=i();if(s===x){if(!d)return;p=y}if(y===x&&!d&&(p=m),m===x&&d&&(p=y),p){a.preventDefault(),p.focus();return}var g=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent),S=g!=null&&g[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(S){var f=c.indexOf(x);if(f>-1&&(f+=d?-1:1),p=c[f],typeof p>"u"){a.preventDefault(),p=d?y:m,p.focus();return}a.preventDefault(),p.focus()}}e.exports=t.default})(vs,vs.exports);var Yv=vs.exports,it={},Xv=function(){},Jv=Xv,nt={},Gf={exports:{}};/*! Copyright (c) 2015 Jed Watson. Based on code that is Copyright 2013-2015, Facebook, Inc. All rights reserved. -*/(function(e){(function(){var t=!!(typeof window<"u"&&window.document&&window.document.createElement),n={canUseDOM:t,canUseWorkers:typeof Worker<"u",canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen};e.exports?e.exports=n:window.ExecutionEnvironment=n})()})(yf);var Cm=yf.exports;Object.defineProperty(nt,"__esModule",{value:!0});nt.canUseDOM=nt.SafeNodeList=nt.SafeHTMLCollection=void 0;var km=Cm,Em=_m(km);function _m(e){return e&&e.__esModule?e:{default:e}}var No=Em.default,jm=No.canUseDOM?window.HTMLElement:{};nt.SafeHTMLCollection=No.canUseDOM?window.HTMLCollection:{};nt.SafeNodeList=No.canUseDOM?window.NodeList:{};nt.canUseDOM=No.canUseDOM;nt.default=jm;Object.defineProperty(ot,"__esModule",{value:!0});ot.resetState=Om;ot.log=Mm;ot.assertNodeList=wf;ot.setElement=Pm;ot.validateElement=Js;ot.hide=Rm;ot.show=Dm;ot.documentNotReadyOrSSRTesting=$m;var Nm=Sm,bm=Tm(Nm),Lm=nt;function Tm(e){return e&&e.__esModule?e:{default:e}}var Ae=null;function Om(){Ae&&(Ae.removeAttribute?Ae.removeAttribute("aria-hidden"):Ae.length!=null?Ae.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(Ae).forEach(function(e){return e.removeAttribute("aria-hidden")})),Ae=null}function Mm(){}function wf(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function Pm(e){var t=e;if(typeof t=="string"&&Lm.canUseDOM){var n=document.querySelectorAll(t);wf(n,t),t=n}return Ae=t||Ae,Ae}function Js(e){var t=e||Ae;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,bm.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}function Rm(e){var t=!0,n=!1,r=void 0;try{for(var l=Js(e)[Symbol.iterator](),o;!(t=(o=l.next()).done);t=!0){var i=o.value;i.setAttribute("aria-hidden","true")}}catch(s){n=!0,r=s}finally{try{!t&&l.return&&l.return()}finally{if(n)throw r}}}function Dm(e){var t=!0,n=!1,r=void 0;try{for(var l=Js(e)[Symbol.iterator](),o;!(t=(o=l.next()).done);t=!0){var i=o.value;i.removeAttribute("aria-hidden")}}catch(s){n=!0,r=s}finally{try{!t&&l.return&&l.return()}finally{if(n)throw r}}}function $m(){Ae=null}var Yn={};Object.defineProperty(Yn,"__esModule",{value:!0});Yn.resetState=Fm;Yn.log=Im;var Cr={},kr={};function ju(e,t){e.classList.remove(t)}function Fm(){var e=document.getElementsByTagName("html")[0];for(var t in Cr)ju(e,Cr[t]);var n=document.body;for(var r in kr)ju(n,kr[r]);Cr={},kr={}}function Im(){}var Am=function(t,n){return t[n]||(t[n]=0),t[n]+=1,n},zm=function(t,n){return t[n]&&(t[n]-=1),n},Bm=function(t,n,r){r.forEach(function(l){Am(n,l),t.add(l)})},Vm=function(t,n,r){r.forEach(function(l){zm(n,l),n[l]===0&&t.remove(l)})};Yn.add=function(t,n){return Bm(t.classList,t.nodeName.toLowerCase()=="html"?Cr:kr,n.split(" "))};Yn.remove=function(t,n){return Vm(t.classList,t.nodeName.toLowerCase()=="html"?Cr:kr,n.split(" "))};var Xn={};Object.defineProperty(Xn,"__esModule",{value:!0});Xn.log=Um;Xn.resetState=Wm;function Hm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var xf=function e(){var t=this;Hm(this,e),this.register=function(n){t.openInstances.indexOf(n)===-1&&(t.openInstances.push(n),t.emit("register"))},this.deregister=function(n){var r=t.openInstances.indexOf(n);r!==-1&&(t.openInstances.splice(r,1),t.emit("deregister"))},this.subscribe=function(n){t.subscribers.push(n)},this.emit=function(n){t.subscribers.forEach(function(r){return r(n,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},oo=new xf;function Um(){console.log("portalOpenInstances ----------"),console.log(oo.openInstances.length),oo.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")}function Wm(){oo=new xf}Xn.default=oo;var ea={};Object.defineProperty(ea,"__esModule",{value:!0});ea.resetState=Zm;ea.log=Gm;var Km=Xn,qm=Qm(Km);function Qm(e){return e&&e.__esModule?e:{default:e}}var ye=void 0,Ye=void 0,un=[];function Zm(){for(var e=[ye,Ye],t=0;t0?(document.body.firstChild!==ye&&document.body.insertBefore(ye,document.body.firstChild),document.body.lastChild!==Ye&&document.body.appendChild(Ye)):(ye.parentElement&&ye.parentElement.removeChild(ye),Ye.parentElement&&Ye.parentElement.removeChild(Ye))}qm.default.subscribe(Ym);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(D){for(var F=1;F0&&(ae-=1,ae===0&&g.show(O)),C.props.shouldFocusAfterRender&&(C.props.shouldReturnFocusAfterClose?(c.returnFocus(C.props.preventScroll),c.teardownScopedFocus()):c.popWithoutFocus()),C.props.onAfterClose&&C.props.onAfterClose(),v.default.deregister(C)},C.open=function(){C.beforeOpen(),C.state.afterOpen&&C.state.beforeClose?(clearTimeout(C.closeTimer),C.setState({beforeClose:!1})):(C.props.shouldFocusAfterRender&&(c.setupScopedFocus(C.node),c.markForFocusLater()),C.setState({isOpen:!0},function(){C.openAnimationFrame=requestAnimationFrame(function(){C.setState({afterOpen:!0}),C.props.isOpen&&C.props.onAfterOpen&&C.props.onAfterOpen({overlayEl:C.overlay,contentEl:C.content})})}))},C.close=function(){C.props.closeTimeoutMS>0?C.closeWithTimeout():C.closeWithoutTimeout()},C.focusContent=function(){return C.content&&!C.contentHasFocus()&&C.content.focus({preventScroll:!0})},C.closeWithTimeout=function(){var k=Date.now()+C.props.closeTimeoutMS;C.setState({beforeClose:!0,closesAt:k},function(){C.closeTimer=setTimeout(C.closeWithoutTimeout,C.state.closesAt-Date.now())})},C.closeWithoutTimeout=function(){C.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},C.afterClose)},C.handleKeyDown=function(k){R(k)&&(0,m.default)(C.content,k),C.props.shouldCloseOnEsc&&H(k)&&(k.stopPropagation(),C.requestClose(k))},C.handleOverlayOnClick=function(k){C.shouldClose===null&&(C.shouldClose=!0),C.shouldClose&&C.props.shouldCloseOnOverlayClick&&(C.ownerHandlesClose()?C.requestClose(k):C.focusContent()),C.shouldClose=null},C.handleContentOnMouseUp=function(){C.shouldClose=!1},C.handleOverlayOnMouseDown=function(k){!C.props.shouldCloseOnOverlayClick&&k.target==C.overlay&&k.preventDefault()},C.handleContentOnClick=function(){C.shouldClose=!1},C.handleContentOnMouseDown=function(){C.shouldClose=!1},C.requestClose=function(k){return C.ownerHandlesClose()&&C.props.onRequestClose(k)},C.ownerHandlesClose=function(){return C.props.onRequestClose},C.shouldBeClosed=function(){return!C.state.isOpen&&!C.state.beforeClose},C.contentHasFocus=function(){return document.activeElement===C.content||C.content.contains(document.activeElement)},C.buildClassName=function(k,O){var P=(typeof O>"u"?"undefined":r(O))==="object"?O:{base:B[k],afterOpen:B[k]+"--after-open",beforeClose:B[k]+"--before-close"},I=P.base;return C.state.afterOpen&&(I=I+" "+P.afterOpen),C.state.beforeClose&&(I=I+" "+P.beforeClose),typeof O=="string"&&O?I+" "+O:I},C.attributesFromObject=function(k,O){return Object.keys(O).reduce(function(P,I){return P[k+"-"+I]=O[I],P},{})},C.state={afterOpen:!1,beforeClose:!1},C.shouldClose=null,C.moveFromContentToOverlay=null,C}return l(F,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(C,k){this.props.isOpen&&!C.isOpen?this.open():!this.props.isOpen&&C.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!k.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var C=this.props,k=C.appElement,O=C.ariaHideApp,P=C.htmlOpenClassName,I=C.bodyOpenClassName,A=C.parentSelector,ne=A&&A().ownerDocument||document;I&&x.add(ne.body,I),P&&x.add(ne.getElementsByTagName("html")[0],P),O&&(ae+=1,g.hide(k)),v.default.register(this)}},{key:"render",value:function(){var C=this.props,k=C.id,O=C.className,P=C.overlayClassName,I=C.defaultStyles,A=C.children,ne=O?{}:I.content,oe=P?{}:I.overlay;if(this.shouldBeClosed())return null;var Yt={ref:this.setOverlayRef,className:this.buildClassName("overlay",P),style:n({},oe,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},Ke=n({id:k,ref:this.setContentRef,style:n({},ne,this.props.style.content),className:this.buildClassName("content",O),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",n({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),Nt=this.props.contentElement(Ke,A);return this.props.overlayElement(Yt,Nt)}}]),F}(o.Component);Oe.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},Oe.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(h.default),s.default.instanceOf(b.SafeHTMLCollection),s.default.instanceOf(b.SafeNodeList),s.default.arrayOf(s.default.instanceOf(h.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=Oe,e.exports=t.default})(Yi,Yi.exports);var Xm=Yi.exports;function Sf(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function Cf(e){function t(n){var r=this.constructor.getDerivedStateFromProps(e,n);return r??null}this.setState(t.bind(this))}function kf(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}Sf.__suppressDeprecationWarning=!0;Cf.__suppressDeprecationWarning=!0;kf.__suppressDeprecationWarning=!0;function Jm(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var n=null,r=null,l=null;if(typeof t.componentWillMount=="function"?n="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(n="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?l="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(l="UNSAFE_componentWillUpdate"),n!==null||r!==null||l!==null){var o=e.displayName||e.name,i=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. +*/(function(e){(function(){var t=!!(typeof window<"u"&&window.document&&window.document.createElement),n={canUseDOM:t,canUseWorkers:typeof Worker<"u",canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen};e.exports?e.exports=n:window.ExecutionEnvironment=n})()})(Gf);var eg=Gf.exports;Object.defineProperty(nt,"__esModule",{value:!0});nt.canUseDOM=nt.SafeNodeList=nt.SafeHTMLCollection=void 0;var tg=eg,ng=rg(tg);function rg(e){return e&&e.__esModule?e:{default:e}}var Ai=ng.default,lg=Ai.canUseDOM?window.HTMLElement:{};nt.SafeHTMLCollection=Ai.canUseDOM?window.HTMLCollection:{};nt.SafeNodeList=Ai.canUseDOM?window.NodeList:{};nt.canUseDOM=Ai.canUseDOM;nt.default=lg;Object.defineProperty(it,"__esModule",{value:!0});it.resetState=ug;it.log=cg;it.assertNodeList=Yf;it.setElement=dg;it.validateElement=ga;it.hide=fg;it.show=pg;it.documentNotReadyOrSSRTesting=hg;var ig=Jv,og=ag(ig),sg=nt;function ag(e){return e&&e.__esModule?e:{default:e}}var Ae=null;function ug(){Ae&&(Ae.removeAttribute?Ae.removeAttribute("aria-hidden"):Ae.length!=null?Ae.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(Ae).forEach(function(e){return e.removeAttribute("aria-hidden")})),Ae=null}function cg(){}function Yf(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function dg(e){var t=e;if(typeof t=="string"&&sg.canUseDOM){var n=document.querySelectorAll(t);Yf(n,t),t=n}return Ae=t||Ae,Ae}function ga(e){var t=e||Ae;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,og.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}function fg(e){var t=!0,n=!1,r=void 0;try{for(var l=ga(e)[Symbol.iterator](),i;!(t=(i=l.next()).done);t=!0){var o=i.value;o.setAttribute("aria-hidden","true")}}catch(s){n=!0,r=s}finally{try{!t&&l.return&&l.return()}finally{if(n)throw r}}}function pg(e){var t=!0,n=!1,r=void 0;try{for(var l=ga(e)[Symbol.iterator](),i;!(t=(i=l.next()).done);t=!0){var o=i.value;o.removeAttribute("aria-hidden")}}catch(s){n=!0,r=s}finally{try{!t&&l.return&&l.return()}finally{if(n)throw r}}}function hg(){Ae=null}var lr={};Object.defineProperty(lr,"__esModule",{value:!0});lr.resetState=mg;lr.log=vg;var Pr={},Tr={};function Yu(e,t){e.classList.remove(t)}function mg(){var e=document.getElementsByTagName("html")[0];for(var t in Pr)Yu(e,Pr[t]);var n=document.body;for(var r in Tr)Yu(n,Tr[r]);Pr={},Tr={}}function vg(){}var gg=function(t,n){return t[n]||(t[n]=0),t[n]+=1,n},yg=function(t,n){return t[n]&&(t[n]-=1),n},wg=function(t,n,r){r.forEach(function(l){gg(n,l),t.add(l)})},xg=function(t,n,r){r.forEach(function(l){yg(n,l),n[l]===0&&t.remove(l)})};lr.add=function(t,n){return wg(t.classList,t.nodeName.toLowerCase()=="html"?Pr:Tr,n.split(" "))};lr.remove=function(t,n){return xg(t.classList,t.nodeName.toLowerCase()=="html"?Pr:Tr,n.split(" "))};var ir={};Object.defineProperty(ir,"__esModule",{value:!0});ir.log=Sg;ir.resetState=Eg;function Cg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Xf=function e(){var t=this;Cg(this,e),this.register=function(n){t.openInstances.indexOf(n)===-1&&(t.openInstances.push(n),t.emit("register"))},this.deregister=function(n){var r=t.openInstances.indexOf(n);r!==-1&&(t.openInstances.splice(r,1),t.emit("deregister"))},this.subscribe=function(n){t.subscribers.push(n)},this.emit=function(n){t.subscribers.forEach(function(r){return r(n,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},mi=new Xf;function Sg(){console.log("portalOpenInstances ----------"),console.log(mi.openInstances.length),mi.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")}function Eg(){mi=new Xf}ir.default=mi;var ya={};Object.defineProperty(ya,"__esModule",{value:!0});ya.resetState=bg;ya.log=Ng;var kg=ir,_g=jg(kg);function jg(e){return e&&e.__esModule?e:{default:e}}var ye=void 0,Ye=void 0,fn=[];function bg(){for(var e=[ye,Ye],t=0;t0?(document.body.firstChild!==ye&&document.body.insertBefore(ye,document.body.firstChild),document.body.lastChild!==Ye&&document.body.appendChild(Ye)):(ye.parentElement&&ye.parentElement.removeChild(ye),Ye.parentElement&&Ye.parentElement.removeChild(Ye))}_g.default.subscribe(Lg);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(I){for(var F=1;F0&&(de-=1,de===0&&y.show(R)),E.props.shouldFocusAfterRender&&(E.props.shouldReturnFocusAfterClose?(c.returnFocus(E.props.preventScroll),c.teardownScopedFocus()):c.popWithoutFocus()),E.props.onAfterClose&&E.props.onAfterClose(),v.default.deregister(E)},E.open=function(){E.beforeOpen(),E.state.afterOpen&&E.state.beforeClose?(clearTimeout(E.closeTimer),E.setState({beforeClose:!1})):(E.props.shouldFocusAfterRender&&(c.setupScopedFocus(E.node),c.markForFocusLater()),E.setState({isOpen:!0},function(){E.openAnimationFrame=requestAnimationFrame(function(){E.setState({afterOpen:!0}),E.props.isOpen&&E.props.onAfterOpen&&E.props.onAfterOpen({overlayEl:E.overlay,contentEl:E.content})})}))},E.close=function(){E.props.closeTimeoutMS>0?E.closeWithTimeout():E.closeWithoutTimeout()},E.focusContent=function(){return E.content&&!E.contentHasFocus()&&E.content.focus({preventScroll:!0})},E.closeWithTimeout=function(){var _=Date.now()+E.props.closeTimeoutMS;E.setState({beforeClose:!0,closesAt:_},function(){E.closeTimer=setTimeout(E.closeWithoutTimeout,E.state.closesAt-Date.now())})},E.closeWithoutTimeout=function(){E.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},E.afterClose)},E.handleKeyDown=function(_){D(_)&&(0,d.default)(E.content,_),E.props.shouldCloseOnEsc&&q(_)&&(_.stopPropagation(),E.requestClose(_))},E.handleOverlayOnClick=function(_){E.shouldClose===null&&(E.shouldClose=!0),E.shouldClose&&E.props.shouldCloseOnOverlayClick&&(E.ownerHandlesClose()?E.requestClose(_):E.focusContent()),E.shouldClose=null},E.handleContentOnMouseUp=function(){E.shouldClose=!1},E.handleOverlayOnMouseDown=function(_){!E.props.shouldCloseOnOverlayClick&&_.target==E.overlay&&_.preventDefault()},E.handleContentOnClick=function(){E.shouldClose=!1},E.handleContentOnMouseDown=function(){E.shouldClose=!1},E.requestClose=function(_){return E.ownerHandlesClose()&&E.props.onRequestClose(_)},E.ownerHandlesClose=function(){return E.props.onRequestClose},E.shouldBeClosed=function(){return!E.state.isOpen&&!E.state.beforeClose},E.contentHasFocus=function(){return document.activeElement===E.content||E.content.contains(document.activeElement)},E.buildClassName=function(_,R){var L=(typeof R>"u"?"undefined":r(R))==="object"?R:{base:B[_],afterOpen:B[_]+"--after-open",beforeClose:B[_]+"--before-close"},M=L.base;return E.state.afterOpen&&(M=M+" "+L.afterOpen),E.state.beforeClose&&(M=M+" "+L.beforeClose),typeof R=="string"&&R?M+" "+R:M},E.attributesFromObject=function(_,R){return Object.keys(R).reduce(function(L,M){return L[_+"-"+M]=R[M],L},{})},E.state={afterOpen:!1,beforeClose:!1},E.shouldClose=null,E.moveFromContentToOverlay=null,E}return l(F,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(E,_){this.props.isOpen&&!E.isOpen?this.open():!this.props.isOpen&&E.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!_.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var E=this.props,_=E.appElement,R=E.ariaHideApp,L=E.htmlOpenClassName,M=E.bodyOpenClassName,z=E.parentSelector,fe=z&&z().ownerDocument||document;M&&g.add(fe.body,M),L&&g.add(fe.getElementsByTagName("html")[0],L),R&&(de+=1,y.hide(_)),v.default.register(this)}},{key:"render",value:function(){var E=this.props,_=E.id,R=E.className,L=E.overlayClassName,M=E.defaultStyles,z=E.children,fe=R?{}:M.content,_e=L?{}:M.overlay;if(this.shouldBeClosed())return null;var Jt={ref:this.setOverlayRef,className:this.buildClassName("overlay",L),style:n({},_e,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},ot=n({id:_,ref:this.setContentRef,style:n({},fe,this.props.style.content),className:this.buildClassName("content",R),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",n({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),$=this.props.contentElement(ot,z);return this.props.overlayElement(Jt,$)}}]),F}(i.Component);Te.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},Te.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(f.default),s.default.instanceOf(S.SafeHTMLCollection),s.default.instanceOf(S.SafeNodeList),s.default.arrayOf(s.default.instanceOf(f.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=Te,e.exports=t.default})(ps,ps.exports);var Pg=ps.exports;function Jf(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function ep(e){function t(n){var r=this.constructor.getDerivedStateFromProps(e,n);return r??null}this.setState(t.bind(this))}function tp(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}Jf.__suppressDeprecationWarning=!0;ep.__suppressDeprecationWarning=!0;tp.__suppressDeprecationWarning=!0;function Tg(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var n=null,r=null,l=null;if(typeof t.componentWillMount=="function"?n="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(n="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?l="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(l="UNSAFE_componentWillUpdate"),n!==null||r!==null||l!==null){var i=e.displayName||e.name,o=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. -`+o+" uses "+i+" but also contains the following legacy lifecycles:"+(n!==null?` +`+i+" uses "+o+" but also contains the following legacy lifecycles:"+(n!==null?` `+n:"")+(r!==null?` `+r:"")+(l!==null?` `+l:"")+` The above lifecycles should be removed. Learn more about this warning here: -https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=Sf,t.componentWillReceiveProps=Cf),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=kf;var s=t.componentDidUpdate;t.componentDidUpdate=function(c,f,m){var p=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:m;s.call(this,c,f,p)}}return e}const ev=Object.freeze(Object.defineProperty({__proto__:null,polyfill:Jm},Symbol.toStringTag,{value:"Module"})),tv=pp(ev);Object.defineProperty(vn,"__esModule",{value:!0});vn.bodyOpenClassName=vn.portalClassName=void 0;var bu=Object.assign||function(e){for(var t=1;t{const g=M.useRef(null),{modal:S,errors:x}=se.dataLayerStructure,b=()=>{u().then(E=>E===!0?f(!0):window.scrollTo(0,0)&&m.current.focus())},h=E=>(E&&E.current.focus(),window.location.hash="",hu.disableScroll(),f(!1),!0),d=E=>E.which===32||E.which===13;M.useEffect(()=>{c&&hu.enableScroll()},[c]),M.useEffect(()=>{const E=()=>{const N=document.getElementById("benefit-finder");N&&N.hasAttribute("aria-hidden")&&N.removeAttribute("aria-hidden")};return Ru.setAppElement("#benefit-finder"),E()},[]),c===!0&&Zr({pageView:S.bfData.pageView}),M.useEffect(()=>{(async()=>{c===!0&&se.dataLayerPush(window,{event:S.event,bfData:{pageView:S.bfData.pageView,viewTitle:`${p.viewTitle} modal`}})})().then(()=>{c===!0&&se.dataLayerPush(window,{event:x.event,bfData:{errors:"",errorCount:{number:0,string:"0"},formSuccess:!0}})})},[]);const v=({triggerLabel:E,onKeyDown:N,onClick:j})=>a.jsx(ta,{onClick:j,onKeyDown:N,noCarrot:!0,tabIndex:"0",triggerRef:g,"aria-label":"Continue",role:"button",children:E}),w=({navItemOneLabel:E,navItemOneFunction:N,navItemTwoLabel:j,navItemTwoFunction:L})=>{const B=H=>{h(g)&&H()},R=(H,ae)=>{d(H)&&h(g)&&ae()};return a.jsxs("ul",{className:"bf-modal bf-usa-button-group usa-button-group width-full",children:[a.jsx("li",{className:"bf-usa-button-group__item usa-button-group__item width-full",children:a.jsx(Te,{id:"bf-navItemOneBtn",className:"bf-nav-item-one width-full",onClick:()=>B(N),onKeyDown:H=>R(H,N),noCarrot:!0,tabIndex:"0",secondary:!0,children:E})},"bf-nav-item-one"),a.jsx("li",{className:"bf-usa-button-group__item usa-button-group__item width-full",children:a.jsx(Te,{id:"bf-navItemTwoBtn",className:"bf-nav-item-two width-full",onClick:()=>B(L),onKeyDown:H=>R(H,L),noCarrot:!0,tabIndex:"0",secondary:!0,children:j})},"nav-item-two")]})};return a.jsxs("div",{id:e,className:"bf-usa-modal-group",children:[a.jsx(v,{triggerLabel:n,onKeyDown:E=>d(E)&&b(),onClick:()=>b()}),a.jsxs(Ru,{id:"benefit-finder-modal",isOpen:c,onRequestClose:()=>h(g),style:mv,aria:{label:r},children:[a.jsx("button",{type:"button","aria-label":"Close",className:"bf-modal-button",onClick:()=>h(g),children:a.jsx(dt,{type:"modal-close",color:"black","aria-hidden":"true"})}),a.jsx(ee,{headingLevel:1,className:"bf-modal-heading",children:r}),t||a.jsx(w,{navItemOneLabel:l,navItemOneFunction:o,navItemTwoLabel:i,navItemTwoFunction:s})]})]})};_f.propTypes={id:y.string,children:y.node,triggerLabel:y.string,modalHeading:y.string,navItemOneLabel:y.string,navItemOneFunction:y.func,navItemTwoLabel:y.string,navItemTwoFunction:y.func,handleCheckRequriedFields:y.func};const jf=({data:e,iconAlt:t})=>{const n=r=>r&&r.data.map((l,o)=>a.jsxs("li",{className:"bf-notice",children:[a.jsx(dt,{type:"info","aria-label":t,role:"img"}),a.jsx("div",{className:"bf-notice-item",dangerouslySetInnerHTML:jt(l.notice)})]},`notice-${o}`));return a.jsx("div",{className:"bf-notices",children:a.jsx("ul",{className:"bf-notices-list add-list-reset",children:a.jsx(n,{data:e})})})};jf.propTypes={data:y.array};const ta=({children:e,className:t,href:n,rel:r,target:l,ext:o,noCarrot:i,triggerRef:s,...u})=>{const c=o?["bf-usa-button","usa-button","usa-button--secondary","bf-usa-button--secondary","bf-usa-link--external","usa-link--external","bf-obfuscated-link"]:["bf-usa-button","usa-button","bf-usa-button--secondary","usa-button--secondary","bf-obfuscated-link"],f=i===!0?null:a.jsx(dt,{type:"carrot-solid",color:"black","aria-hidden":"true"});return a.jsxs("a",{href:n,rel:r,target:l,className:ft({className:t,defaultClasses:c}),ref:s,...u,children:[e,f]})};ta.propTypes={children:y.node,className:y.string,href:y.string,rel:y.string,target:y.string,ext:y.bool,noCarrot:y.bool};y.node||y.string,y.oneOf(["regular","bold","extrabold","light","thin"]);const Nf=({steps:e})=>a.jsx("ol",{className:"bf-usa-process-list usa-process-list",children:e&&e.map((t,n)=>a.jsx("li",{className:"bf-usa-process-list__item usa-process-list__item",children:a.jsx("h3",{className:"bf-usa-process-list__heading usa-process-list__heading",children:t.title})},`process-item-${n}`))});Nf.propTypes={steps:y.array};const bf=({id:e,label:t,value:n,checked:r,onChange:l,required:o,className:i,name:s})=>{const u=o===!0?["required-field"]:"",c=["bf-usa-radio__input usa-radio__input"],f=u;return a.jsx(a.Fragment,{children:a.jsxs("div",{className:"bf-usa-radio usa-radio",children:[a.jsx("input",{className:ft({className:i,defaultClasses:c,utilityClasses:f}),type:"radio",name:s,value:n||e,checked:r,onChange:l,id:e}),a.jsx(Xs,{className:"bf-usa-radio__label usa-radio__label",htmlFor:e,label:t})]})})};bf.propTypes={id:y.string,label:y.string,value:y.string,checked:y.bool,onChange:y.func,className:y.string,name:y.string};const Lf=({invalid:e,values:t,fieldSetId:n,handleChanged:r,criteriaKey:l,errorMessage:o,legend:i,ui:s})=>{const u=s,c=o?`${o}`:`${u==null?void 0:u.prefix} ${i&&i.toLowerCase()} ${u==null?void 0:u.suffix}`;return a.jsx("div",{className:"bf-radio-group radio-group","aria-invalid":e,children:t&&t.map((f,m)=>{const p=`${n}_${m}`;return a.jsx(bf,{name:n,id:p,label:f.value,value:f.value,checked:f.selected||!1,onChange:g=>{r(g,l)},"data-errormessage":c,"aria-errormessage":`error-description-${p}`},p)})})};Lf.propTypes={invalid:y.bool,values:y.array,fieldSetId:y.string,handleChanged:y.func,criteriaKey:y.string};const Tf=({data:e,carrotType:t})=>a.jsx("ul",{className:"bf-usa-card-group usa-card-group",children:e&&e.map((n,r)=>{const{title:l,searchTitle:o,link:i,cta:s,body:u,lifeEventId:c}=n.lifeEvent,f=c.replace("es_","");return a.jsx(cf,{className:"bf-usa-card--relative-benefit bf-usa-card usa-card tablet:grid-col-12",title:o||l,cta:s,href:i,body:u,carrotType:t,icon:f,"data-testid":f},`${l}-${r}`)})});Tf.propTypes={data:y.array,carrotType:y.string};const Of=({ui:e})=>{const{eligible:t,summaryBox:n}=e;return a.jsxs("div",{children:[a.jsx(ee,{className:"bf-eligible-view-heading",headingLevel:2,children:t==null?void 0:t.heading}),a.jsx(ee,{className:"bf-eligible-view-description",headingLevel:3,dangerouslySetInnerHTML:jt(t==null?void 0:t.description)}),a.jsx(ra,{heading:n==null?void 0:n.heading,listItems:n==null?void 0:n.list,cta:n==null?void 0:n.cta})]})};Of.propTypes={props:y.any};const Mf=({ui:e})=>{const{notEligible:t,summaryBox:n}=e;return a.jsxs("div",{children:[a.jsx(ee,{className:"bf-not-eligible-view-heading",headingLevel:2,children:t==null?void 0:t.heading}),a.jsx(ee,{className:"bf-not-eligible-view-description",headingLevel:3,dangerouslySetInnerHTML:jt(t==null?void 0:t.description)}),a.jsx(ra,{heading:n==null?void 0:n.heading,listItems:n==null?void 0:n.list,cta:n==null?void 0:n.cta})]})};Mf.propTypes={props:y.any};const Pf=({handleViewToggle:e,notEligibleView:t,ui:n})=>a.jsxs(a.Fragment,{children:[a.jsx(ee,{className:"bf-zero-benefits-view-heading","data-testid":"zero-benefits-view-heading",headingLevel:2,children:n==null?void 0:n.heading}),a.jsx(ee,{className:"bf-zero-benefits-view-description",headingLevel:3,dangerouslySetInnerHTML:jt(n==null?void 0:n.description)}),!t&&a.jsx("div",{className:"bf-zero-benefits-view-cta",children:a.jsx(Te,{"data-testid":"zero-benefits-view-cta-button",onClick:e,secondary:!0,children:n==null?void 0:n.cta})})]});Pf.propTypes={handleViewToggle:y.func,notEligibleView:y.bool,ui:y.object};const Rf=({notEligibleView:e,zeroBenefitsResult:t,stepDataArray:n,isExpandAll:r,setExpandAll:l,handleStepBack:o,handleViewToggle:i,data:s,relevantBenefits:u,resetElement:c,ui:f})=>{const m=({notEligibleView:d,zeroBenefitsResult:v,ui:w})=>{const{eligible:E,notEligible:N,zeroBenefits:j}=w;return a.jsx(Ys,{heading:d===!1?v&&(j==null?void 0:j.eligible.chevron.heading)||(E==null?void 0:E.chevron.heading):v&&(j==null?void 0:j.notEligible.chevron.heading)||(N==null?void 0:N.chevron.heading),description:d===!1?v&&(j==null?void 0:j.eligible.chevron.description)||(E==null?void 0:E.chevron.description):v&&(j==null?void 0:j.notEligible.chevron.description)||(N==null?void 0:N.chevron.description)})},p=({zeroBenefitsResult:d,notEligibleView:v,ui:w})=>{const{notEligible:E,eligible:N,summaryBox:j,zeroBenefits:L}=w;return d?a.jsx(Pf,{handleViewToggle:i,notEligibleView:v,ui:L}):v?a.jsx(Mf,{ui:{notEligible:E,summaryBox:j}}):a.jsx(Of,{ui:{eligible:N,summaryBox:j}})},g=({notEligibleView:d,handleStepBack:v,ui:w})=>{const{stepBackButton:E}=w;return d===!1?a.jsx(na,{onClick:()=>c.current.focus(),setCurrent:v,children:E}):a.jsx(Te,{className:"bf-step-back-button",onClick:()=>i(),unstyled:!0,children:E})},S=({handleViewToggle:d,ui:v})=>{const{notEligibleResults:w}=v;return a.jsxs("div",{className:"bf-result-view-unmet",children:[a.jsx(ee,{className:"bf-result-view-unmet-heading",headingLevel:3,children:w==null?void 0:w.heading}),a.jsx("p",{dangerouslySetInnerHTML:jt(w==null?void 0:w.description)}),a.jsx("div",{className:"bf-result-view-cta-wrapper",children:a.jsx(Te,{"data-testid":"bf-result-view-unmet-button",secondary:!0,onClick:d,children:w==null?void 0:w.cta})})]})},x=({stepDataArray:d,ui:v})=>{const{shareResults:w}=v;return a.jsxs("div",{className:"bf-result-view-share-results",children:[a.jsx(ee,{className:"bf-result-view-share-results-heading",headingLevel:3,children:w==null?void 0:w.heading}),a.jsx("p",{children:w==null?void 0:w.description}),a.jsxs("ul",{className:"bf-result-view-share-results-button-group",children:[a.jsxs("li",{children:[" ",a.jsx(vv,{ui:w,data:d&&q.SelectedValueAll(d)})]}),a.jsxs("li",{children:[" ",a.jsx(Z0,{ui:w,data:d&&q.SelectedValueAll(d)})]})]})]})},b=({relevantBenefits:d,ui:v})=>{const{resultsRelativeBenefits:w}=v;return a.jsxs("div",{className:"bf-result-view-relvant-benefits",children:[a.jsx(ee,{className:"bf-result-view-relvant-benefits-heading",headingLevel:3,children:w==null?void 0:w.heading}),d&&a.jsx(Tf,{data:d,carrotType:"carrot"})]})},h=({zeroBenefitsResult:d,notEligibleView:v,stepDataArray:w,isExpandAll:E,setExpandAll:N,ui:j})=>a.jsx("div",{className:"bf-result-view-benefits",children:a.jsx(uf,{data:w&&q.ElegibilityByCriteria(q.SelectedValueAll(w),s),entryKey:"benefit",notEligibleView:v,expandAll:d===!1||d&&v,isExpandAll:E,setExpandAll:N,ui:j})});return a.jsxs(a.Fragment,{children:[a.jsx(m,{notEligibleView:e,zeroBenefitsResult:t,ui:f}),a.jsx("div",{className:"bf-grid-container grid-container",children:a.jsxs("div",{className:"bf-result-view-details",children:[a.jsx(g,{notEligibleView:e,ui:f,handleStepBack:o}),a.jsx(p,{zeroBenefitsResult:t,notEligibleView:e,ui:f}),a.jsx(h,{zeroBenefitsResult:t,notEligibleView:e,isExpandAll:r,setExpandAll:l,stepDataArray:n,ui:f}),e===!1&&t===!1&&a.jsx(S,{notEligibleView:e,zeroBenefitsResult:t,handleViewToggle:i,ui:f}),(u==null?void 0:u.length)>0&&a.jsx(b,{relevantBenefits:u,ui:f}),a.jsx(x,{stepDataArray:n,ui:f})]})})]})};Rf.propTypes={props:y.any};const Df=({handleStepBack:e,stepDataArray:t,relevantBenefits:n,ui:r,data:l})=>{const[o,i]=M.useState(!1),[s,u]=M.useState(null),{resultsView:c}=se.dataLayerStructure,[f,m]=M.useState(!1),p=Gr();M.useEffect(()=>{var d;(d=p.current)==null||d.focus()},[p]);const g=t&&q.SelectedValueAll(t).length,S=t&&q.ElegibilityByCriteria(q.SelectedValueAll(t),l).length,x=d=>{const v=[],w=document.querySelectorAll(".bf-accordion-sub-heading");for(const E of w)E.textContent.includes(d)&&v.push(E);return{number:v.length,string:`${v.length}`}},b=()=>{m(!1),i(!o),window.scrollTo(0,0),p.current.focus()},h=(s==null?void 0:s.eligibleBenefitCount.number)===0;return M.useEffect(()=>{window.scrollTo(0,0),u({eligibleBenefitCount:x(r.benefitAccordion.eligibleStatusLabels[0]),moreInfoBenefitCount:x(r.benefitAccordion.eligibleStatusLabels[1]),notEligibleBenefitCount:x(r.benefitAccordion.eligibleStatusLabels[2])})},[]),Zr({pageView:o===!0?c.bfData.pageView[1]:c.bfData.pageView[0],notEligibleView:o}),M.useEffect(()=>{s!==null&&se.dataLayerPush(window,{event:c.event,bfData:{pageView:o===!0?c.bfData.pageView[1]:c.bfData.pageView[0],viewTitle:o===!1?h&&r.zeroBenefits.eligible.chevron.heading||(r==null?void 0:r.eligible.chevron.heading):h&&(r==null?void 0:r.zeroBenefits.notEligible.chevron.heading)||(r==null?void 0:r.notEligible.chevron.heading),...s}})},[o,s]),M.useEffect(()=>{Gd({hide:!1})},[]),a.jsx("div",{className:"bf-result-view","data-testid":"bf-result-view","data-analytics":"bf-result-view","data-analytics-content":o===!0?"bf-not-eligible-view":"bf-eligible-view","data-analytics-content-criteria-values":g,"data-analytics-content-benefits":S,"data-analytics-content-eligible":s==null?void 0:s.eligibleBenefitCount.number,"data-analytics-content-not-eligible":s==null?void 0:s.notEligibleBenefitCount.number,"data-analytics-content-more-info":s==null?void 0:s.moreInfoBenefitCount.number,children:a.jsx(Rf,{handleStepBack:e,notEligibleView:o,zeroBenefitsResult:h,stepDataArray:t,handleViewToggle:b,isExpandAll:f,setExpandAll:m,relevantBenefits:n,resetElement:p,data:l,ui:r})})};Df.propTypes={handleStepBack:y.func,ui:y.object,data:y.array};const vv=({ui:e,data:t})=>{const[n,r]=M.useState(()=>to(window.location.href,t)),l=o=>{o.preventDefault(),r(to(window.location.href,t)),navigator.clipboard.writeText(n).then(()=>alert(`${e==null?void 0:e.shareLinkContent} ${n}`),i=>alert("Failed to copy",i))};return a.jsx("a",{href:"",className:"bf-share-trigger bf-usa-link usa-link",onClick:o=>l(o),"data-testid":"bf-share-trigger",children:(e==null?void 0:e.shareTrigger)||"Share"})},$f=({data:e,noHeadings:t,current:n,setCurrent:r,backLinkLabel:l,handleCheckRequriedFields:o})=>{const i=({completed:u})=>a.jsx("span",{className:"usa-sr-only",children:u?" completed":" not completed"}),s=({heading:u,current:c,completed:f,index:m})=>{const p=c===m?"--current":"";return a.jsx("li",{className:`bf-usa-step-indicator__segment usa-step-indicator__segment bf-usa-step-indicator__segment${p} usa-step-indicator__segment${p} ${f===!0?"bf-usa-step-indicator__segment--complete usa-step-indicator__segment--complete":""}`,"aria-current":c===m,children:a.jsxs("span",{className:"bf-usa-step-indicator__segment-label usa-step-indicator__segment-label",children:[!t&&u,a.jsx(i,{completed:f},`step-indicator-sr-${m}`)]},`step-indicator-label-${m}`)},`step-indicator-${u}`)};return a.jsxs("div",{children:[e&&e.length>0&&a.jsx("div",{className:"bf-usa-step-indicator usa-step-indicator","aria-label":"progress",tabIndex:0,children:a.jsx("ol",{className:"bf-usa-step-indicator__segments usa-step-indicator__segments",children:e&&e.map((u,c)=>{const f=u.section.heading,m=u.completed;return a.jsx(s,{heading:f,index:c,current:n,setCurrent:r,completed:m,handleCheckRequriedFields:o},`${f}-${c}`)})})}),a.jsx(na,{currentIndex:n,setCurrent:r,children:l})]})};$f.propTypes={data:y.array,noHeadings:y.bool,current:y.number,backLinkLabel:y.string};const na=({children:e,setCurrent:t,currentIndex:n})=>{const r=Gr(),l=()=>{t(n),r.current.focus()};return a.jsx(Te,{className:"bf-step-back-button",unstyled:!0,onClick:()=>l(),children:e||"Back"})};na.propTypes={children:y.node,setCurrent:y.func,currentIndex:y.number};function Ff({label:e,htmlFor:t,options:n,selected:r,onChange:l,ui:o,className:i,invalid:s,legend:u,errorMessage:c}){const{select:f,errorText:m}=o,p=[`bf-usa-select usa-select ${s===!0?"usa-input--error":""}`],g=({options:x})=>x.map(b=>a.jsx("option",{value:b.value,children:b.value},b.value)),S=c?`${c}`:`${m==null?void 0:m.prefix} ${u&&u.toLowerCase()} ${m==null?void 0:m.suffix}`;return a.jsxs(a.Fragment,{children:[a.jsx(Xs,{label:e||(f==null?void 0:f.labelSelect),htmlFor:t}),a.jsxs("select",{className:ft({className:i,defaultClasses:p}),name:t,id:t,onChange:l,value:r||"","aria-invalid":s===!0,"data-errormessage":S,"aria-errormessage":`error-description-${t}`,children:[a.jsx("option",{value:"",children:f==null?void 0:f.defaultValue},"default"),a.jsx(g,{options:n})]})]})}Ff.propTypes={label:y.string,htmlFor:y.string,options:y.array,selected:y.string,onChange:y.func,required:y.bool,ui:y.object,className:y.string,invalid:y.bool};const ra=({heading:e,listItems:t,cta:n})=>{const r=l=>{l.preventDefault(),window.location.href=`${window.location.origin}${window.location.pathname}`};return a.jsx("div",{className:"bf-usa-summary-box usa-summary-box",role:"region","aria-labelledby":"bf-summary-box-key-information",children:a.jsxs("div",{className:"bf-usa-summary-box__body usa-summary-box__body",children:[a.jsx(ee,{headingLevel:4,className:"bf-usa-summary-box__heading usa-summary-box__heading",id:"bf-summary-box-key-information",children:e}),a.jsx("div",{className:"bf-usa-summary-box__text usa-summary-box__text",children:a.jsxs("ul",{className:"bf-usa-list usa-list",children:[t&&t.map((l,o)=>a.jsx("li",{children:l.item},`bf-summary-list-${o}`)),a.jsxs("li",{children:[n==null?void 0:n.text," ",a.jsx("a",{className:"bf-usa-summary-box__link usa-summary-box__link",href:"#",onClick:l=>r(l),children:n==null?void 0:n.link})]})]})})]})})};ra.propTypes={props:y.any};y.string,y.string,y.string,y.bool;const If=({timeEstimate:e,description:t})=>a.jsxs("div",{className:"time-indicator",children:[t," ",e]});If.propTypes={description:y.string,timeEstimate:y.string};const Af=({handleStepForward:e,handleStepBack:t,ui:n,data:r})=>{const{stepIndicator:l,verifySelectionsView:o,buttonGroup:i}=n,{verifySelections:s}=se.dataLayerStructure,u=q.Language(),c={year:"numeric",month:"long",day:"numeric"},f=({item:g,index:S})=>a.jsxs("div",{className:"bf-verify-criteria-value",children:[a.jsx("div",{className:"bf-verify-criteria-legend",children:g.fieldset.legend},`bf-criteria-${g.fieldset.criteriaKey}-${S}`),o==null?void 0:o.noResultsLabel]}),m=({criteriaId:g,legend:S,selected:x})=>a.jsxs("div",{className:"bf-verify-criteria-value",children:[a.jsx("div",{className:"bf-verify-criteria-legend",children:S}),typeof(x==null?void 0:x.value)=="object"?`${Qh(x.value).toLocaleDateString(u,c)}`:x==null?void 0:x.value]},g),p=({item:g,index:S})=>a.jsxs("div",{children:[m({criteriaId:`criteria-${g.fieldset.criteriaKey}-${S}`,legend:g.fieldset.legend,selected:q.SelectedValue(g)}),q.Children(g).map(x=>q.SelectedValue(x)?m({criteriaId:x.fieldset.criteriaKey,legend:x.fieldset.legend,selected:q.SelectedValue(x)}):a.jsx(f,{item:x},x.fieldset.criteriaKey))]});return M.useEffect(()=>{window.scrollTo(0,0)},[]),Zr({pageView:s.bfData.pageView}),M.useEffect(()=>{se.dataLayerPush(window,{event:s.event,bfData:{pageView:s.bfData.pageView,viewTitle:o==null?void 0:o.heading}})},[]),a.jsx("div",{className:"bf-verify-selections-view",children:a.jsxs("div",{className:"bf-grid-container grid-container",children:[a.jsx(ee,{className:"bf-section-heading",headingLevel:1,children:o==null?void 0:o.heading}),a.jsx("div",{className:"bf-section-wrapper",children:a.jsxs("div",{className:"bf-section-info",children:[a.jsx(Te,{className:"bf-step-back-button",onClick:t,unstyled:!0,children:l==null?void 0:l.stepBackButton}),a.jsx("div",{children:r&&r.map((g,S)=>{const{section:x}=g;return a.jsxs("div",{className:"bf-verify-criteria-section",children:[a.jsx(ee,{className:"bf-verify-criteria-section-heading",headingLevel:2,children:x.heading}),a.jsx("div",{children:x.fieldsets.map((b,h)=>q.SelectedValue(b)?a.jsx(p,{item:b,index:h},`bf-criteria-item-${h}`):a.jsx(f,{item:b,index:h},`bf-criteria-item-${h}`))})]},`bf-section-${x.heading}`)})}),a.jsxs("div",{className:"bf-section-nav-btn-group",children:[a.jsx(Te,{outline:!0,onClick:t,children:i[0].value}),a.jsx(Te,{secondary:!0,onClick:e,children:i[1].value})]})]})})]})})};Af.propTypes={handleStepForward:y.func,handleStepBck:y.func,ui:y.object,data:y.array};const zf={heading:"Steps",timeIndicator:"Estimated time",steps:{list:[{title:"Answer questions"},{title:"Get your list of benefits"},{title:"Visit agency websites to apply"}]},notices:{heading:"Before you start:",iconAlt:"Important",list:[{notice:"
This is not an application.
"},{notice:"You'll need to apply for benefits with each agency."},{notice:"
We don't share, save, or submit your information.
"}]},button:"Start finding benefits"},Bf={stepBackButton:"Back"},Vf={value:"required"},Hf={heading:{prefix:"Your information contains",suffix:"errors"},description:"Complete all required fields."},Uf={prefix:"Fill out the",suffix:"field"},Wf=[{value:"Back"},{value:"Next"}],Kf={heading:"Select an option:",buttonGroup:[{value:"Review your selections"},{value:"Get your results"}]},qf={heading:"Review and confirm",noResultsLabel:"Not answered",buttonGroup:[{value:"Back"},{value:"Confirm"}]},Qf={summaryBox:{heading:"Important",list:[{item:"Visit each agency’s website to find full eligibility requirements."},{item:"Your results may change if you answer more questions or modify your answers."}],cta:{text:"",link:"Clear my answers and restart the form."}},eligible:{chevron:{heading:"Your potential benefits",description:"

Visit each agency to find true eligibility and to apply. Check with your city, state, or employer for other benefits.

"},heading:"Results",description:"You may be eligible for these benefits:"},notEligible:{chevron:{heading:"Benefits you did not qualify for",description:"

According to your answers you are not eligible for these benefits.

"},heading:"Results",description:"Based on your answers you are not eligible for these benefits.You may become eligible if you enter additional information or your situation changes."},zeroBenefits:{eligible:{chevron:{heading:"You are likely not eligible for these benefits.",description:"

If you reached these results by mistake, please go back to review your answers.

"}},notEligible:{chevron:{heading:"Benefits you did not qualify for",description:"

According to your answers you are not eligible for these benefits.

"}},heading:"No eligible results.",description:"Based on your answers you are likely not eligible for benefits. You may become eligible if you enter more information or your situation changes.",cta:"See all benefits"},stepBackButton:"Back",eligibleResults:{heading:"Results",description:"You may be eligible for these benefits."},benefitAccordionGroup:{closedState:"Expand all",openState:"Close all"},benefitAccordion:{eligibleStatusLabels:["Likely eligible","More information needed","Not eligible"],agencyPrefix:"By",benefitSummary:"Key eligibility criteria",benefitSummaryPrefix:"Met ",benefitSummaryConjunction:"of",unmetLabel:"Unmet criteria",visitLabel:"Visit"},notEligibleResults:{heading:"Benefits you did not qualify for",description:"
Based on your answers you are not eligible for these benefits. You may become eligible if you enter additional information or your situation changes.
",cta:"Explore other potential benefits"},resultsRelativeBenefits:{heading:"More benefits"},shareResults:{heading:"Share results",shareTrigger:"Share link",shareLinkContent:"Copied",emailTrigger:"Email results",emailSubject:"Results from USAGov’s benefit finder",description:"Copy or email these results. Your answers will be visible. Only share with those you trust."}},Zf={heading:"Share results",description:"Your information will be viewable. Only share with those you trust.",buttonGroup:[{value:"Share link"},{value:"Email results"}]},Gf={start:"Answer these questions",continue:"Questions continued",final:"Final questions"},Yf={labelSelect:"Select an option",defaultValue:"-Select-",dateDefaultValue:"-Select-"},Xf={alert:"Date should follow the format January 19 2000",labelDay:"Day",labelMonth:"Month",labelYear:"Year",monthOptions:[{label:"01 - January"},{label:"02 - February"},{label:"03 - March"},{label:"04 - April"},{label:"05 - May"},{label:"06 - June"},{label:"07 - July"},{label:"08 - August"},{label:"09 - September"},{label:"10 - October"},{label:"11 - November"},{label:"12 - December"}]},gv={intro:zf,stepIndicator:Bf,requiredLabel:Vf,alertBanner:Hf,errorText:Uf,buttonGroup:Wf,reviewSelectionModal:Kf,verifySelectionsView:qf,resultsView:Qf,shareResults:Zf,sectionHeadings:Gf,select:Yf,date:Xf},Du=Object.freeze(Object.defineProperty({__proto__:null,alertBanner:Hf,buttonGroup:Wf,date:Xf,default:gv,errorText:Uf,intro:zf,requiredLabel:Vf,resultsView:Qf,reviewSelectionModal:Kf,sectionHeadings:Gf,select:Yf,shareResults:Zf,stepIndicator:Bf,verifySelectionsView:qf},Symbol.toStringTag,{value:"Module"})),Jf={heading:"Pasos",timeIndicator:"Tiempo estimado",steps:{list:[{title:"Responda unas preguntas"},{title:"Obtenga su lista de posibles beneficios"},{title:"Aplique en los sitios web de cada agencia"}]},notices:{heading:"Antes de empezar:",iconAlt:"Importante",list:[{notice:"
Esto no es una aplicación.
"},{notice:"Sus respuestas no serán guardadas o presentadas."},{notice:"
Responda todas las preguntas para mejores resultados.
"}]},button:"Encuentre sus beneficios"},ep={stepBackButton:"Volver"},tp={value:"requerido"},np={heading:{prefix:"Tu información contiene",suffix:"errores"},description:"Responda los campos requeridos."},rp={prefix:"Complete",suffix:""},lp=[{value:"Volver"},{value:"Siguiente"}],op={heading:"Seleccione una opción:",buttonGroup:[{value:"Revise sus respuestas"},{value:"Obtenga sus resultados"}]},ip={heading:"Revisar y confirmar",noResultsLabel:"No respondió",buttonGroup:[{value:"Volver"},{value:"Confirmar"}]},sp={summaryBox:{heading:"Importante",list:[{item:"Visite el sitio web de cada agencia para confirmar su elegibilidad y requisitos."},{item:"Sus resultados podrían cambiar si responde más preguntas o modifica sus respuestas."}],cta:{text:"",link:"Borrar mis respuestas y empezar el formulario de nuevo."}},eligible:{chevron:{heading:"Sus beneficios potenciales",description:"

Visite la página de cada agencia para verificar los requisitos y aplicar. Para conocer otros beneficios, consulte a su ciudad, estado, o trabajo.

"},heading:"Resultados",description:"Podría ser elegible para estos beneficios:"},notEligible:{chevron:{heading:"Beneficios a los que no calificó",description:"

Según sus respuestas usted no es elegible para estos beneficios.

"},heading:"Resultados",description:"Según sus respuestas no es elegible para estos beneficios. Podría calificar si tiene información adicional o si su situación cambia."},zeroBenefits:{eligible:{chevron:{heading:"Usted parece no ser elegible para estos beneficios",description:"

Si cree que cometió un error, por favor regrese para corregir sus respuestas.

"}},notEligible:{chevron:{heading:"Beneficios a los que no calificó",description:"

Según sus respuestas usted no es elegible para estos beneficios.

"}},heading:"No tiene resultados elegibles.",description:"Basado en sus respuestas usted no es elegible para estos beneficios. Podría ser elegible si ingresa más información o si su situación cambia.",cta:"Ver todos los beneficios"},stepBackButton:"Volver",eligibleResults:{heading:"Resultados",description:"Podría calificar para estos beneficios:"},benefitAccordionGroup:{closedState:"Abrir todos",openState:"Cerrar todos"},benefitAccordion:{eligibleStatusLabels:["Probablemente elegible","Más información requerida","No elegible"],agencyPrefix:"",benefitSummary:"Criterios de elegibilidad",benefitSummaryPrefix:"Cumple ",benefitSummaryConjunction:"de",unmetLabel:"No cumplió con",visitLabel:"Visite",sourceIsEnglish:"(en inglés)"},notEligibleResults:{heading:"Beneficios a los que no calificó",description:"
Según sus respuestas no es elegible para estos beneficios. Podría calificar si tiene información adicional o si su situación cambia.
",cta:"Explore otros beneficios"},relativeBenefits:{heading:"Más beneficios"},shareResults:{heading:"Imprima y comparta",shareTrigger:"Compartir resultados",emailTrigger:"Enviar resultados",shareLinkContent:"Copiado",emailSubject:"Resultados del buscador de beneficios de USAGov",description:"Copie o envíe sus resultados por correo. Sus respuestas serán visibles. Solo comparta con quienes confíe."}},ap={heading:"Imprima y comparta",description:"Sus respuestas serán visibles. Solo comparta con quienes confíe.",buttonGroup:[{value:"Compartir resultados"},{value:"Enviar resultados"}]},up={start:"Responda las preguntas",continue:"Preguntas continuadas",final:"Preguntas finales"},cp={labelSelect:"Seleccione una opción",defaultValue:"-Seleccionar-",dateDefaultValue:"-Seleccionar-"},dp={alert:"Use el formato enero 19 2000",labelDay:"Día",labelMonth:"Mes",labelYear:"Año",monthOptions:[{label:"01 - Enero"},{label:"02 - Febrero"},{label:"03 - Marzo"},{label:"04 - Abril"},{label:"05 - Mayo"},{label:"06 - Junio"},{label:"07 - Julio"},{label:"08 - Agosto"},{label:"09 - Septiembre"},{label:"10 - Octubre"},{label:"11 - Noviembre"},{label:"12 - Diciembre"}]},yv={intro:Jf,stepIndicator:ep,requiredLabel:tp,alertBanner:np,errorText:rp,buttonGroup:lp,reviewSelectionModal:op,verifySelectionsView:ip,resultsView:sp,shareResults:ap,sectionHeadings:up,select:cp,date:dp},$u=Object.freeze(Object.defineProperty({__proto__:null,alertBanner:np,buttonGroup:lp,date:dp,default:yv,errorText:rp,intro:Jf,requiredLabel:tp,resultsView:sp,reviewSelectionModal:op,sectionHeadings:up,select:cp,shareResults:ap,stepIndicator:ep,verifySelectionsView:ip},Symbol.toStringTag,{value:"Module"}));function wv({testAppContent:e,testQuery:t}){var B;const n=M.createContext({en:Du,es:$u}),r="shared",l="draft",o=t||window.location.search,i=o.includes(r),s=o.includes(l);Gr();const[u,c]=M.useState(()=>(q.LifeEvent().then(R=>(R==null?void 0:R.status)===200?c(R.data):c(e)),e)),[f,m]=M.useState(),[p,g]=M.useState(),[S,x]=M.useState(!1);M.useEffect(()=>{u&&g([...u.benefits]),u&&m([...u.lifeEventForm.sectionsEligibilityCriteria])},[u]);const[b]=M.useState(q.Language()==="es"?$u:Du),[h,d]=M.useState(i?null:0),[v,w]=M.useState(()=>f&&f[h]),[E,N]=M.useState(!1),[j,L]=M.useState(i);return M.useEffect(()=>{i&&(f&&Br.DataFromParams(o,f,w,r),f&&d(f.length))},[o,i,f]),u&&a.jsxs(n.Provider,{value:b,children:[s===!0&&a.jsx(Gs,{children:"Draft Mode"}),a.jsx("div",{id:u==null?void 0:u.lifeEventForm.id,className:`benefit-finder ${h!==0&&j!==!0?"form":""}`,"data-testid":"app","data-version":zh,children:h===0?a.jsx(hf,{data:u.lifeEventForm,ui:b.intro,setStep:d,step:h}):j===!0?a.jsx(Df,{stepDataArray:f,relevantBenefits:(B=u==null?void 0:u.lifeEventForm)==null?void 0:B.relevantBenefits,data:p,setBenefitsArray:()=>g(),ui:b.resultsView,handleStepBack:()=>{N(!1),L(!1)}}):E===!1?a.jsx("div",{children:a.jsx(ff,{children:a.jsx(vf,{step:h,setStep:d,data:f,handleData:m,stepData:v,setStepData:w,verifyStep:E,setVerifyStep:()=>{N(!0),x(!1)},setViewResults:()=>{L(!0),x(!1)},ui:b,modalOpen:S,setModalOpen:x})})}):a.jsx(Af,{handleStepBack:()=>{N(!1),L(!1)},handleStepForward:()=>{L(!0)},ui:b,data:f,step:h,setStep:d})})]})}const xv=ni.createRoot(document.getElementById("benefit-finder"));xv.render(a.jsx(Lp.StrictMode,{children:a.jsx(wv,{})})); +https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=Jf,t.componentWillReceiveProps=ep),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=tp;var s=t.componentDidUpdate;t.componentDidUpdate=function(c,p,d){var m=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:d;s.call(this,c,p,m)}}return e}const Og=Object.freeze(Object.defineProperty({__proto__:null,polyfill:Tg},Symbol.toStringTag,{value:"Module"})),Rg=Yp(Og);Object.defineProperty(wn,"__esModule",{value:!0});wn.bodyOpenClassName=wn.portalClassName=void 0;var Ju=Object.assign||function(e){for(var t=1;t{const p=k.useRef(null),{modal:d,errors:m}=ie.dataLayerStructure,[y,x]=k.useState(!1),g=()=>{a().then(w=>w&&x(w)),window.scrollTo(0,0)},S=w=>(w&&w.current.focus(),window.location.hash="",window.scrollTo(0,0),Bu.disableScroll(),x(!1),!0),f=w=>w.which===32||w.which===13;k.useEffect(()=>{y&&Bu.enableScroll()},[y]),k.useEffect(()=>{const w=setTimeout(()=>{ic.setAppElement("#benefit-finder")},0);return()=>{clearTimeout(w)}},[]),k.useEffect(()=>{(async()=>{y===!0&&ie.dataLayerPush(window,{event:d.event,bfData:{pageView:d.bfData.pageView,viewTitle:`${c.viewTitle} modal`}})})().then(()=>{y===!0&&ie.dataLayerPush(window,{event:m.event,bfData:{errors:"",errorCount:{number:0,string:"0"},formSuccess:!0}})})},[y]);const h=({triggerLabel:w,onKeyDown:b,onClick:N})=>u.jsx(wa,{onClick:N,onKeyDown:b,noCarrot:!0,tabIndex:"0",triggerRef:p,"aria-label":"Continue",role:"button",children:w}),v=({navItemOneLabel:w,navItemOneFunction:b,navItemTwoLabel:N,navItemTwoFunction:P})=>{const T=D=>{S(p)&&D()},B=(D,q)=>{f(D)&&S(p)&&q()};return u.jsxs("ul",{className:"bf-modal bf-usa-button-group usa-button-group width-full",children:[u.jsx("li",{className:"bf-usa-button-group__item usa-button-group__item width-full",children:u.jsx(Ke,{id:"bf-navItemOneBtn",className:"bf-nav-item-one width-full",onClick:()=>T(b),onKeyDown:D=>B(D,b),noCarrot:!0,tabIndex:"0",secondary:!0,children:w})},"bf-nav-item-one"),u.jsx("li",{className:"bf-usa-button-group__item usa-button-group__item width-full",children:u.jsx(Ke,{id:"bf-navItemTwoBtn",className:"bf-nav-item-two width-full",onClick:()=>T(P),onKeyDown:D=>B(D,P),noCarrot:!0,tabIndex:"0",secondary:!0,children:N})},"nav-item-two")]})};return u.jsxs("div",{id:e,className:"bf-usa-modal-group",children:[u.jsx(h,{triggerLabel:n,onKeyDown:w=>f(w)&&g(),onClick:()=>g()}),u.jsxs(ic,{id:"benefit-finder-modal",isOpen:y,onRequestClose:()=>S(p),style:qg,aria:{label:r},ariaHideApp:!1,children:[u.jsx("button",{type:"button","aria-label":"Close",className:"bf-modal-button",onClick:()=>S(p),children:u.jsx(ft,{type:"modal-close",color:"black","aria-hidden":"true"})}),u.jsx(ee,{headingLevel:1,className:"bf-modal-heading",children:r}),t||u.jsx(v,{navItemOneLabel:l,navItemOneFunction:i,navItemTwoLabel:o,navItemTwoFunction:s})]})]})};rp.propTypes={id:C.string,children:C.node,triggerLabel:C.string,modalHeading:C.string,navItemOneLabel:C.string,navItemOneFunction:C.func,navItemTwoLabel:C.string,navItemTwoFunction:C.func,handleCheckRequriedFields:C.func};const lp=({data:e,iconAlt:t})=>{const n=r=>r&&r.data.map((l,i)=>u.jsxs("li",{className:"bf-notice",children:[u.jsx(ft,{type:"info","aria-label":t,role:"img"}),u.jsx("div",{className:"bf-notice-item",dangerouslySetInnerHTML:bt(l.notice)})]},`notice-${i}`));return u.jsx("div",{className:"bf-notices",children:u.jsx("ul",{className:"bf-notices-list add-list-reset",children:u.jsx(n,{data:e})})})};lp.propTypes={data:C.array};const wa=({children:e,className:t,href:n,rel:r,target:l,ext:i,noCarrot:o,triggerRef:s,...a})=>{const c=i?["bf-usa-button","usa-button","usa-button--secondary","bf-usa-button--secondary","bf-usa-link--external","usa-link--external","bf-obfuscated-link"]:["bf-usa-button","usa-button","bf-usa-button--secondary","usa-button--secondary","bf-obfuscated-link"],p=o===!0?null:u.jsx(ft,{type:"carrot-solid",color:"black","aria-hidden":"true"});return u.jsxs("a",{href:n,rel:r,target:l,className:pt({className:t,defaultClasses:c}),ref:s,...a,children:[e,p]})};wa.propTypes={children:C.node,className:C.string,href:C.string,rel:C.string,target:C.string,ext:C.bool,noCarrot:C.bool};C.node||C.string,C.oneOf(["regular","bold","extrabold","light","thin"]);const ip=({steps:e})=>u.jsx("ol",{className:"bf-usa-process-list usa-process-list",children:e&&e.map((t,n)=>u.jsx("li",{className:"bf-usa-process-list__item usa-process-list__item",children:u.jsx("h3",{className:"bf-usa-process-list__heading usa-process-list__heading",children:t.title})},`process-item-${n}`))});ip.propTypes={steps:C.array};const op=({id:e,label:t,value:n,checked:r,onChange:l,required:i,className:o,name:s})=>{const a=i===!0?["required-field"]:"",c=["bf-usa-radio__input usa-radio__input"],p=a;return u.jsx(u.Fragment,{children:u.jsxs("div",{className:"bf-usa-radio usa-radio",children:[u.jsx("input",{className:pt({className:o,defaultClasses:c,utilityClasses:p}),type:"radio",name:s,value:n||e,checked:r,onChange:l,id:e}),u.jsx(va,{className:"bf-usa-radio__label usa-radio__label",htmlFor:e,label:t})]})})};op.propTypes={id:C.string,label:C.string,value:C.string,checked:C.bool,onChange:C.func,className:C.string,name:C.string};const sp=({invalid:e,values:t,fieldSetId:n,handleChanged:r,criteriaKey:l,errorMessage:i,legend:o,ui:s})=>{const a=s,c=i?`${i}`:`${a==null?void 0:a.prefix} ${o&&o.toLowerCase()} ${a==null?void 0:a.suffix}`;return u.jsx("div",{className:"bf-radio-group radio-group","aria-invalid":e,children:t&&t.map((p,d)=>{const m=`${n}_${d}`;return u.jsx(op,{name:n,id:m,label:p.value,value:p.value,checked:p.selected||!1,onChange:y=>{r(y,l)},"data-errormessage":c,"aria-errormessage":`error-description-${m}`},m)})})};sp.propTypes={invalid:C.bool,values:C.array,fieldSetId:C.string,handleChanged:C.func,criteriaKey:C.string};const ap=({data:e,carrotType:t})=>u.jsx("ul",{className:"bf-usa-card-group usa-card-group",children:e&&e.map((n,r)=>{const{title:l,searchTitle:i,link:o,cta:s,body:a,lifeEventId:c}=n.lifeEvent,p=c.replace("es_","");return u.jsx(Hf,{className:"bf-usa-card--relative-benefit bf-usa-card usa-card tablet:grid-col-12",title:i||l,cta:s,href:o,body:a,carrotType:t,icon:p,"data-testid":p},`${l}-${r}`)})});ap.propTypes={data:C.array,carrotType:C.string};const Qg=({ui:e,data:t})=>{const n=k.useContext(Nt),[r,l]=k.useState(()=>di(`${window.location.origin}${n.basePath}/${n.indexPath}`,t)),i=o=>{o.preventDefault(),l(di(`${window.location.origin}${n.basePath}/${n.indexPath}`,t)),navigator.clipboard.writeText(r).then(()=>alert(`${e==null?void 0:e.shareLinkContent} ${r}`),s=>alert("Failed to copy",s))};return u.jsx("a",{href:"",className:"bf-share-trigger bf-usa-link usa-link",onClick:o=>i(o),"data-testid":"bf-share-trigger",children:(e==null?void 0:e.shareTrigger)||"Share"})},up=({data:e,noHeadings:t,current:n,setCurrent:r,handleCheckRequriedFields:l})=>{const i=({completed:s})=>u.jsx("span",{className:"usa-sr-only",children:s?" completed":" not completed"}),o=({heading:s,current:a,completed:c,index:p})=>{const d=a===p?"--current":"";return u.jsx("li",{className:`bf-usa-step-indicator__segment usa-step-indicator__segment bf-usa-step-indicator__segment${d} usa-step-indicator__segment${d} ${c===!0?"bf-usa-step-indicator__segment--complete usa-step-indicator__segment--complete":""}`,"aria-current":a===p,children:u.jsxs("span",{className:"bf-usa-step-indicator__segment-label usa-step-indicator__segment-label",children:[!t&&s,u.jsx(i,{completed:c},`step-indicator-sr-${p}`)]},`step-indicator-label-${p}`)},`step-indicator-${s}`)};return u.jsx("div",{children:e&&e.length>0&&u.jsx("div",{className:"bf-usa-step-indicator usa-step-indicator","aria-label":"progress",tabIndex:0,children:u.jsx("ol",{className:"bf-usa-step-indicator__segments usa-step-indicator__segments",children:e&&e.map((s,a)=>{const c=s.section.heading,p=s.completed;return u.jsx(o,{heading:c,index:a,current:n,setCurrent:r,completed:p,handleCheckRequriedFields:l},`${c}-${a}`)})})})})};up.propTypes={data:C.array,noHeadings:C.bool,current:C.number};const cp=({children:e,onClick:t})=>{const n=rr(),r=()=>{t(),n.current.focus()};return u.jsx(Ke,{className:"bf-step-back-button",unstyled:!0,onClick:()=>r(),children:e||"Back"})};cp.propTypes={children:C.node,currentIndex:C.number};function dp({label:e,htmlFor:t,options:n,selected:r,onChange:l,ui:i,className:o,invalid:s,legend:a,errorMessage:c}){const{select:p,errorText:d}=i,m=[`bf-usa-select usa-select ${s===!0?"usa-input--error":""}`],y=({options:g})=>g.map(S=>u.jsx("option",{value:S.value,children:S.value},S.value)),x=c?`${c}`:`${d==null?void 0:d.prefix} ${a&&a.toLowerCase()} ${d==null?void 0:d.suffix}`;return u.jsxs(u.Fragment,{children:[u.jsx(va,{label:e||(p==null?void 0:p.labelSelect),htmlFor:t}),u.jsxs("select",{className:pt({className:o,defaultClasses:m}),name:t,id:t,onChange:l,value:r||"","aria-invalid":s===!0,"data-errormessage":x,"aria-errormessage":`error-description-${t}`,children:[u.jsx("option",{value:"",children:p==null?void 0:p.defaultValue},"default"),u.jsx(y,{options:n})]})]})}dp.propTypes={label:C.string,htmlFor:C.string,options:C.array,selected:C.string,onChange:C.func,required:C.bool,ui:C.object,className:C.string,invalid:C.bool};const xa=({heading:e,listItems:t,cta:n})=>{const r=k.useContext(Nt),l=i=>{i.preventDefault(),window.location.href=`${window.location.origin}${r.basePath}/${r.indexPath}`};return u.jsx("div",{className:"bf-usa-summary-box usa-summary-box",role:"region","aria-labelledby":"bf-summary-box-key-information",children:u.jsxs("div",{className:"bf-usa-summary-box__body usa-summary-box__body",children:[u.jsx(ee,{headingLevel:4,className:"bf-usa-summary-box__heading usa-summary-box__heading",id:"bf-summary-box-key-information",children:e}),u.jsx("div",{className:"bf-usa-summary-box__text usa-summary-box__text",children:u.jsxs("ul",{className:"bf-usa-list usa-list",children:[t&&t.map((i,o)=>u.jsx("li",{children:i.item},`bf-summary-list-${o}`)),u.jsxs("li",{children:[n==null?void 0:n.text," ",u.jsx("a",{className:"bf-usa-summary-box__link usa-summary-box__link",href:"#",onClick:i=>l(i),children:n==null?void 0:n.link})]})]})})]})})};xa.propTypes={props:C.any};C.string,C.string,C.string,C.bool;const fp=({timeEstimate:e,description:t})=>u.jsxs("div",{className:"time-indicator",children:[t," ",e]});fp.propTypes={description:C.string,timeEstimate:C.string};const pp=({content:e,ui:t,hasQueryParams:n})=>{const{timeEstimate:r,title:l,summary:i}=e,{heading:o,timeIndicator:s,steps:a,notices:c,button:p}=t,{intro:d}=ie.dataLayerStructure,m=rr(),y=k.useContext(Nt),x=il(),g=nr(),S=()=>{x(`/${y.indexPath}/${y.formPaths[0]}`),m.current.focus()};return k.useEffect(()=>{n&&x(`/${y.indexPath}/${y.resultsPaths.resultsPath}${g.search}`)},[n]),k.useEffect(()=>{!n&&ie.dataLayerPush(window,{event:d.event,bfData:{pageView:d.bfData.pageView,viewTitle:l}})},[n]),e&&u.jsxs("div",{className:"bf-intro",children:[u.jsx(ma,{heading:l,description:i}),u.jsxs("div",{className:"bf-grid-container grid-container",children:[u.jsx(ee,{headingLevel:2,children:o}),u.jsx(fp,{description:s,timeEstimate:r}),u.jsxs("div",{className:"bf-intro-process-group",children:[u.jsx("div",{className:"bf-intro-process-list",children:u.jsx(ip,{steps:a.list,description:a.title})}),u.jsx("div",{className:"bf-line-sperator-wrapper--vertical",children:u.jsx("div",{className:"bf-line-sperator--vertical"})}),u.jsxs("div",{className:"bf-intro-process-notices",children:[u.jsx(ee,{className:"bf-intro-process-notices-heading",headingLevel:2,children:c.heading}),u.jsx(lp,{className:"bf-intro-process-notices-list",data:c.list,iconAlt:c.iconAlt})]})]}),u.jsx("div",{className:"bf-line-sperator-wrapper",children:u.jsx("div",{className:"bf-line-sperator"})}),u.jsx("div",{className:"bf-cta-wrapper",children:u.jsx(Ke,{secondary:!0,onClick:()=>S(),children:p})})]})]})};pp.propTypes={data:C.object,ui:C.object,step:C.number};const hp=({data:e,handleData:t,ui:n})=>{const[r,l]=k.useState(0),[i,o]=k.useState(!1),[s,a]=k.useState(()=>e&&e[r]),[c,p]=k.useState([]),[d,m]=k.useState([]),[y,x]=k.useState(()=>H.SelectedValueAll(e).length>0),[g,S]=k.useState(0),{lifeEventSection:f}=ie.dataLayerStructure,{buttonGroup:h,reviewSelectionModal:v,requiredLabel:w,sectionHeadings:b}=n;gm(y);const N=rr(),P=k.useContext(Nt),T=il();let B=nr();const D=()=>e.findIndex(L=>{const M=Tf(L.section.heading);return B.pathname.match(`${P.indexPath}/${M}`)});k.useEffect(()=>{var L;(L=N.current)==null||L.focus()},[N]);const q=()=>{e[r]={...s},t([...e])},de=k.useRef(null),Te=()=>(de.current.classList.remove("display-none"),de.current.focus(),S(g+1),s.completed=!1,window.scrollTo(0,0),!1),I=()=>(de.current.classList.add("display-none"),s.completed=!0,q(),p([]),!0),F=()=>Fe.handleCheckForRequiredValues(c,m).then(L=>L===!0?I():Te()),W=L=>{F().then(M=>{if(M===!0){const{errors:z}=ie.dataLayerStructure;ie.dataLayerPush(window,{event:z.event,bfData:{errors:"",errorCount:{number:0,string:"0"},formSuccess:!0}});const fe=r+L;r<=e.length&&(T(`/${P.indexPath}/${P.formPaths[fe]}`),a(e[fe])),N&&N.current.focus()}})},E=L=>{T(r===0?`/${P.indexPath}`:L),N.current.focus()},_=(L,M)=>{window.history.replaceState({},"",window.location.pathname),Yr.Data(M,s,a,L.target.value),d.length>0&&Fe.handleCheckForRequiredValues(c,m),x(H.SelectedValueAll(e).length>0)},R=(L,M)=>{window.history.replaceState({},"",window.location.pathname);async function z(){_m(L)===!0&&(Yr.DataDate(M,s,a,L.target.value,L.target.id),d.length>0&&Fe.handleCheckForRequiredValues(c,m))}z().then(()=>{Fe.getNonRequiredFieldsets(M,c,p,m,d,H.SelectedValueAll(e)),x(H.SelectedValueAll(e).length>0)})};return k.useEffect(()=>{B.pathname.includes(P.formPaths[P.formPaths.length-1])?o(!0):o(!1)},[B]),k.useEffect(()=>{var M,z;const L=D();l(L),a(e[L]),ie.dataLayerPush(window,{event:f.event,bfData:{pageView:`${f.bfData.pageView}-${L+1}`,viewTitle:(M=e[L])==null?void 0:M.section.heading}}),(z=N.current)==null||z.focus(),window.scrollTo(0,0)},[B]),k.useEffect(()=>{var L;Fe.getRequiredFieldsets(document,p),(L=N.current)==null||L.focus(),window.scrollTo(0,0)},[r]),k.useEffect(()=>{Fe.getRequiredFieldsets(document,p)},[]),k.useEffect(()=>{fa({hide:!0})}),e&&u.jsxs(u.Fragment,{children:[u.jsx(ee,{className:"bf-section-heading",headingLevel:1,children:r===e.length-1?`${b.final}`:r===0?`${b.start}`:`${b.continue}`}),u.jsx("div",{className:"bf-section-wrapper",children:u.jsxs("div",{className:"bf-section-info",children:[u.jsx(up,{current:r,setCurrent:l,data:e},`step-indicator-${b}`),s&&u.jsxs("div",{id:"bf-section","data-testid":"bf-section",children:[u.jsx(ha,{alertFieldRef:de,heading:n.alertBanner.heading,description:n.alertBanner.description,type:"error",hasError:d.length>0,errorCount:d.length,errorList:d,submissionCount:g}),u.jsxs("div",{className:"bf-form-heading-group",children:[u.jsx(ee,{className:"bf-form-heading bf-usa-form-heading",headingLevel:2,children:s.section.heading}),u.jsx("div",{className:"bf-section-sub-heading",dangerouslySetInnerHTML:bt(s.section.description)})]}),s.section.fieldsets.map((L,M)=>{const z=({item:$,children:qe,index:ht,hidden:en})=>{var Sn,al;return $.fieldset.inputs[0].inputCriteria.type==="Select"?u.jsxs(k.Fragment,{children:[u.jsx(Al,{legend:$.fieldset.legend,errorMessage:$.fieldset.errorMessage,hint:$.fieldset.hint,required:$.fieldset.required,requiredLabel:w,hidden:en&&en,id:$.fieldset.criteriaKey,invalid:Fe.handleInvalid({hasError:d,criteriaKey:(Sn=$.fieldset)==null?void 0:Sn.criteriaKey}),ui:n.errorText,children:$.fieldset.inputs.map((Lt,mt)=>{var Ca;const Qe=`${$.fieldset.criteriaKey}_${mt}`,Pt=Lt.inputCriteria.values,vt=Pt.find(zi=>zi.selected!==void 0),{select:Bi,errorText:Zp}=n;return u.jsx("div",{children:u.jsx(dp,{ui:{select:Bi,errorText:Zp},htmlFor:Qe,options:Pt,selected:vt==null?void 0:vt.value,onChange:zi=>_(zi,$.fieldset.criteriaKey),invalid:Fe.handleInvalid({hasError:d,criteriaKey:(Ca=$.fieldset)==null?void 0:Ca.criteriaKey,fieldSetId:Qe}),legend:$.fieldset.legend,errorMessage:$.fieldset.errorMessage},Qe)},Qe)})},`select-${$.fieldset.criteriaKey}-${ht}`),qe||null]},`select-${$.fieldset.criteriaKey}+${ht}`):$.fieldset.inputs[0].inputCriteria.type==="Radio"?u.jsxs(k.Fragment,{children:[$.fieldset.inputs.map((Lt,mt)=>{var Pt,vt;const Qe=`${$.fieldset.criteriaKey}_${mt}`;return u.jsx(Al,{id:$.fieldset.criteriaKey,legend:$.fieldset.legend,errorMessage:$.fieldset.errorMessage,hint:$.fieldset.hint,required:$.fieldset.required,requiredLabel:w,hidden:en&&en,ui:n.errorText,invalid:Fe.handleInvalid({hasError:d,criteriaKey:(Pt=$.fieldset)==null?void 0:Pt.criteriaKey}),children:u.jsx(sp,{invalid:Fe.handleInvalid({hasError:d,criteriaKey:(vt=$.fieldset)==null?void 0:vt.criteriaKey}),fieldSetId:Qe,handleChanged:_,values:Lt.inputCriteria.values,criteriaKey:$.fieldset.criteriaKey,errorMessage:$.fieldset.errorMessage,legend:$.fieldset.legend,ui:n.errorText},Qe)},`radio-${$.fieldset.criteriaKey}-${mt}`)}),qe||null]},`radio-${$.fieldset.criteriaKey}+${ht}`):$.fieldset.inputs[0].inputCriteria.type==="Date"?u.jsxs(k.Fragment,{children:[u.jsx(Al,{legend:$.fieldset.legend,errorMessage:$.fieldset.errorMessage,hint:$.fieldset.hint,required:$.fieldset.required,requiredLabel:w,hidden:en&&en,id:$.fieldset.criteriaKey,invalid:Fe.handleInvalid({hasError:d,criteriaKey:(al=$.fieldset)==null?void 0:al.criteriaKey}),ui:n.errorText,children:$.fieldset.inputs.map((Lt,mt)=>{var Pt,vt;const Qe=`${$.fieldset.criteriaKey}_${mt}`;return u.jsx("div",{children:u.jsx(Wf,{value:(Pt=Lt.inputCriteria.values[0])==null?void 0:Pt.value,onChange:Bi=>R(Bi,$.fieldset.criteriaKey),ui:n,errorMessage:$.fieldset.errorMessage,parentLegend:$.fieldset.legend,id:Qe,invalid:Fe.handleInvalid({hasError:d,criteriaKey:(vt=$.fieldset)==null?void 0:vt.criteriaKey,fieldSetId:Qe,useFilter:!0})})},Qe)})},`date-${$.fieldset.criteriaKey}-${ht}`),qe||null]},`date-${$.fieldset.criteriaKey}+${ht}`):null},fe=({item:$,i:qe})=>z({item:$,index:qe}),_e=$=>{const qe=H.SelectedValue($);return(qe==null?void 0:qe.value)!==$.fieldset.inputs[0].inputCriteria.childDependencyOption},Jt=({item:$,i:qe})=>z({item:$,index:qe,children:$.fieldset.children.map((ht,en)=>ht.fieldsets.length&&ht.fieldsets.map((Sn,al)=>{const Lt=Sn&&H.SelectedValue(Sn),mt=_e($);return mt===!0&&Lt!==void 0&&delete Lt.selected,z({item:Sn,index:al,hidden:mt})}))});return L.fieldset.children.length>0?Jt({item:L,i:M}):fe({item:L,i:M})})]}),u.jsxs("div",{className:"bf-section-nav-btn-group",children:[u.jsx(Ke,{outline:!0,onClick:()=>E(-1),children:h[0].value}),i===!1?u.jsx(Ke,{secondary:!0,onClick:()=>W(1),children:h[1].value}):u.jsx(rp,{id:"nav-modal",dataLayerValue:{viewTitle:s.section.heading},modalHeading:v.heading,navItemOneLabel:v.buttonGroup[0].value,navItemOneFunction:()=>T(`/${P.indexPath}/${P.verifySelectionsPath}`),navItemTwoLabel:v.buttonGroup[1].value,navItemTwoFunction:()=>T(`/${P.indexPath}/${P.resultsPaths.resultsPath}`),triggerLabel:h[1].value,handleCheckRequriedFields:F,completed:s.completed})]})]})})]})};hp.propTypes={props:C.any,formStep:C.number,data:C.array,ui:C.object};const mp=({ui:e})=>{const{eligible:t,summaryBox:n}=e;return u.jsxs("div",{children:[u.jsx(ee,{className:"bf-eligible-view-heading",headingLevel:2,children:t==null?void 0:t.heading}),u.jsx(ee,{className:"bf-eligible-view-description",headingLevel:3,dangerouslySetInnerHTML:bt(t==null?void 0:t.description)}),u.jsx(xa,{heading:n==null?void 0:n.heading,listItems:n==null?void 0:n.list,cta:n==null?void 0:n.cta})]})};mp.propTypes={props:C.any};const vp=({ui:e})=>{const{notEligible:t,summaryBox:n}=e;return u.jsxs("div",{children:[u.jsx(ee,{className:"bf-not-eligible-view-heading",headingLevel:2,children:t==null?void 0:t.heading}),u.jsx(ee,{className:"bf-not-eligible-view-description",headingLevel:3,dangerouslySetInnerHTML:bt(t==null?void 0:t.description)}),u.jsx(xa,{heading:n==null?void 0:n.heading,listItems:n==null?void 0:n.list,cta:n==null?void 0:n.cta})]})};vp.propTypes={props:C.any};const gp=({handleViewToggle:e,notEligibleView:t,ui:n})=>{const r=k.useContext(Nt),l=il();return u.jsxs(u.Fragment,{children:[u.jsx(ee,{className:"bf-zero-benefits-view-heading","data-testid":"zero-benefits-view-heading",headingLevel:2,children:n==null?void 0:n.heading}),u.jsx(ee,{className:"bf-zero-benefits-view-description",headingLevel:3,dangerouslySetInnerHTML:bt(n==null?void 0:n.description)}),u.jsx("div",{className:"bf-back-to-form-cta",children:u.jsx(cp,{onClick:()=>l(`/${r.indexPath}/${r.formPaths[0]}`),children:n==null?void 0:n.backcta.link})}),!t&&u.jsx("div",{className:"bf-zero-benefits-view-cta",children:u.jsx(Ke,{"data-testid":"zero-benefits-view-cta-button",onClick:e,secondary:!0,children:n==null?void 0:n.cta})})]})};gp.propTypes={handleViewToggle:C.func,notEligibleView:C.bool,ui:C.object};const yp=({notEligibleView:e,zeroBenefitsResult:t,stepDataArray:n,isExpandAll:r,setExpandAll:l,handleViewToggle:i,data:o,relevantBenefits:s,ui:a})=>{const c=({notEligibleView:g,zeroBenefitsResult:S,ui:f})=>{const{eligible:h,notEligible:v,zeroBenefits:w}=f;return u.jsx(ma,{heading:g===!1?S&&(w==null?void 0:w.eligible.chevron.heading)||(h==null?void 0:h.chevron.heading):S&&(w==null?void 0:w.notEligible.chevron.heading)||(v==null?void 0:v.chevron.heading),description:g===!1?S&&(w==null?void 0:w.eligible.chevron.description)||(h==null?void 0:h.chevron.description):S&&(w==null?void 0:w.notEligible.chevron.description)||(v==null?void 0:v.chevron.description)})},p=({zeroBenefitsResult:g,notEligibleView:S,ui:f})=>{const{notEligible:h,eligible:v,summaryBox:w,zeroBenefits:b}=f;return g?u.jsx(gp,{handleViewToggle:i,notEligibleView:S,ui:b}):S===!0?u.jsx(vp,{ui:{notEligible:h,summaryBox:w}}):u.jsx(mp,{ui:{eligible:v,summaryBox:w}})},d=({handleViewToggle:g,ui:S})=>{const{notEligibleResults:f}=S;return u.jsxs("div",{className:"bf-result-view-unmet",children:[u.jsx(ee,{className:"bf-result-view-unmet-heading",headingLevel:3,children:f==null?void 0:f.heading}),u.jsx("p",{dangerouslySetInnerHTML:bt(f==null?void 0:f.description)}),u.jsx("div",{className:"bf-result-view-cta-wrapper",children:u.jsx(Ke,{"data-testid":"bf-result-view-unmet-button",secondary:!0,onClick:g,children:f==null?void 0:f.cta})})]})},m=({stepDataArray:g,ui:S})=>{const{shareResults:f}=S;return u.jsxs("div",{className:"bf-result-view-share-results",children:[u.jsx(ee,{className:"bf-result-view-share-results-heading",headingLevel:3,children:f==null?void 0:f.heading}),u.jsx("p",{children:f==null?void 0:f.description}),u.jsxs("ul",{className:"bf-result-view-share-results-button-group",children:[u.jsxs("li",{children:[" ",u.jsx(Qg,{ui:f,data:g&&H.SelectedValueAll(g)})]}),u.jsxs("li",{children:[" ",u.jsx(bv,{ui:f,data:g&&H.SelectedValueAll(g)})]})]})]})},y=({relevantBenefits:g,ui:S})=>{const{resultsRelativeBenefits:f}=S;return u.jsxs("div",{className:"bf-result-view-relvant-benefits",children:[u.jsx(ee,{className:"bf-result-view-relvant-benefits-heading",headingLevel:3,children:f==null?void 0:f.heading}),g&&u.jsx(ap,{data:g,carrotType:"carrot"})]})},x=({zeroBenefitsResult:g,notEligibleView:S,stepDataArray:f,isExpandAll:h,setExpandAll:v,ui:w})=>u.jsx("div",{className:"bf-result-view-benefits",children:u.jsx(Vf,{data:f&&H.ElegibilityByCriteria(H.SelectedValueAll(f),o),entryKey:"benefit",notEligibleView:S,expandAll:g===!1||g&&S,isExpandAll:h,setExpandAll:v,ui:w})});return u.jsxs(u.Fragment,{children:[u.jsx(c,{notEligibleView:e,zeroBenefitsResult:t,ui:a}),u.jsx("div",{className:"bf-grid-container grid-container","data-testid":"bf-results-view",children:u.jsxs("div",{className:"bf-result-view-details",children:[u.jsx(p,{zeroBenefitsResult:t,notEligibleView:e,ui:a}),u.jsx(x,{zeroBenefitsResult:t,notEligibleView:e,isExpandAll:r,setExpandAll:l,stepDataArray:n,ui:a}),e===!1&&t===!1&&u.jsx(d,{notEligibleView:e,zeroBenefitsResult:t,handleViewToggle:i,ui:a}),(s==null?void 0:s.length)>0&&u.jsx(y,{relevantBenefits:s,ui:a}),u.jsx(m,{stepDataArray:n,ui:a})]})})]})};yp.propTypes={props:C.any};const wp=({stepDataArray:e,relevantBenefits:t,ui:n,data:r,notEligibleView:l})=>{const[i,o]=k.useState(!0),[s,a]=k.useState(null),[c,p]=k.useState(null),{resultsView:d}=ie.dataLayerStructure,m=il(),y=nr(),x=k.useContext(Nt),[g,S]=k.useState(!1),f=rr();k.useEffect(()=>{var N;(N=f.current)==null||N.focus()},[f]);const h=e&&H.SelectedValueAll(e).length,v=e&&H.ElegibilityByCriteria(H.SelectedValueAll(e),r).length,w=()=>{y.pathname===`${x.indexPath}/${x.resultsPaths.resultsPath}`?m(-1):m(`/${x.indexPath}/${x.resultsPaths.notEligiblePath}`)};k.useEffect(()=>{var N;(N=f.current)==null||N.focus(),window.scrollTo(0,0),S(!1)},[y]),k.useEffect(()=>{H.BenefitsEligibilityCounts(r,n.benefitAccordion.eligibleStatusLabels).then(N=>{a(N),p((N==null?void 0:N.eligibleBenefitCount.number)===0),o(!1)})},[r]),k.useEffect(()=>{s!==null&&ie.dataLayerPush(window,{event:d.event,bfData:{pageView:l===!0?d.bfData.pageView[1]:d.bfData.pageView[0],viewTitle:l===!1?c&&n.zeroBenefits.eligible.chevron.heading||(n==null?void 0:n.eligible.chevron.heading):c&&(n==null?void 0:n.zeroBenefits.notEligible.chevron.heading)||(n==null?void 0:n.notEligible.chevron.heading),...s}})},[l,s]),k.useEffect(()=>{fa({hide:!1})},[]);const b={"data-test-results-view":l===!0?"bf-not-eligible-view":"bf-eligible-view","data-test-results-view-criteria-values":h,"data-test-results-view-benefits":v,"data-test-results-view-eligible":s==null?void 0:s.eligibleBenefitCount.number,"data-test-results-view-not-eligible":s==null?void 0:s.notEligibleBenefitCount.number,"data-test-results-view-more-info":s==null?void 0:s.moreInfoBenefitCount.number};return u.jsxs("div",{className:"bf-result-view","data-testid":"bf-result-view",...b,children:[u.jsx(yp,{notEligibleView:l,zeroBenefitsResult:c,stepDataArray:e,handleViewToggle:w,isExpandAll:g,setExpandAll:S,relevantBenefits:t,resetElement:f,data:r,ui:n}),ym({loading:i,parentElementID:"bf-results-view"})]})};wp.propTypes={ui:C.object,data:C.array};const xp=({indexPath:e,ui:t,data:n})=>{const{verifySelectionsView:r,buttonGroup:l}=t,{verifySelections:i}=ie.dataLayerStructure,o=H.Language(),s={year:"numeric",month:"long",day:"numeric"},a=il(),c=nr(),p=k.useContext(Nt),d=rr(),m=({item:g,index:S})=>u.jsxs("div",{className:"bf-verify-criteria-value",children:[u.jsx("div",{className:"bf-verify-criteria-legend",children:g.fieldset.legend},`bf-criteria-${g.fieldset.criteriaKey}-${S}`),r==null?void 0:r.noResultsLabel]}),y=({criteriaId:g,legend:S,selected:f})=>u.jsxs("div",{className:"bf-verify-criteria-value",children:[u.jsx("div",{className:"bf-verify-criteria-legend",children:S}),typeof(f==null?void 0:f.value)=="object"?`${jm(f.value).toLocaleDateString(o,s)}`:f==null?void 0:f.value]},g),x=({item:g,index:S})=>u.jsxs("div",{children:[y({criteriaId:`criteria-${g.fieldset.criteriaKey}-${S}`,legend:g.fieldset.legend,selected:H.SelectedValue(g)}),H.Children(g).map(f=>H.SelectedValue(f)?y({criteriaId:f.fieldset.criteriaKey,legend:f.fieldset.legend,selected:H.SelectedValue(f)}):u.jsx(m,{item:f},f.fieldset.criteriaKey))]});return k.useEffect(()=>{var g;(g=d.current)==null||g.focus(),window.scrollTo(0,0)},[c]),k.useEffect(()=>{ie.dataLayerPush(window,{event:i.event,bfData:{pageView:i.bfData.pageView,viewTitle:r==null?void 0:r.heading}})},[]),k.useEffect(()=>{fa({hide:!0})},[]),u.jsx("div",{className:"bf-verify-selections-view",children:u.jsxs("div",{className:"bf-grid-container grid-container",children:[u.jsx(ee,{className:"bf-section-heading",headingLevel:1,children:r==null?void 0:r.heading}),u.jsx("div",{className:"bf-section-wrapper",children:u.jsxs("div",{className:"bf-section-info",children:[u.jsx("div",{children:n&&n.map((g,S)=>{const{section:f}=g;return u.jsxs("div",{className:"bf-verify-criteria-section",children:[u.jsx(ee,{className:"bf-verify-criteria-section-heading",headingLevel:2,children:f.heading}),u.jsx("div",{children:f.fieldsets.map((h,v)=>H.SelectedValue(h)?u.jsx(x,{item:h,index:v},`bf-criteria-item-${v}`):u.jsx(m,{item:h,index:v},`bf-criteria-item-${v}`))})]},`bf-section-${f.heading}`)})}),u.jsxs("div",{className:"bf-section-nav-btn-group",children:[u.jsx(Ke,{outline:!0,onClick:()=>a(-1),children:l[0].value}),u.jsx(Ke,{secondary:!0,onClick:()=>a(`/${p.indexPath}/${p.resultsPaths.resultsPath}`),children:l[1].value})]})]})})]})})};xp.propTypes={ui:C.object,data:C.array};const Cp={heading:"Steps",timeIndicator:"Estimated time",steps:{list:[{title:"Answer questions"},{title:"Get your list of benefits"},{title:"Visit agency websites to apply"}]},notices:{heading:"Before you start:",iconAlt:"Important",list:[{notice:"
This is not an application.
"},{notice:"You'll need to apply for benefits with each agency."},{notice:"
We don't share, save, or submit your information.
"}]},button:"Start finding benefits"},Sp={stepBackButton:"Back"},Ep={value:"required"},kp={heading:{prefix:"Your information contains",suffix:"errors"},description:"Complete all required fields."},_p={prefix:"Fill out the",suffix:"field"},jp=[{value:"Back"},{value:"Next"}],bp={heading:"Select an option:",buttonGroup:[{value:"Review your selections"},{value:"Get your results"}]},Np={heading:"Review and confirm",noResultsLabel:"Not answered",buttonGroup:[{value:"Back"},{value:"Confirm"}]},Lp={summaryBox:{heading:"Important",list:[{item:"Visit each agency’s website to find full eligibility requirements."},{item:"Your results may change if you answer more questions or modify your answers."}],cta:{text:"",link:"Clear my answers and restart the form."}},eligible:{chevron:{heading:"Your potential benefits",description:"

Visit each agency to find true eligibility and to apply. Check with your city, state, or employer for other benefits.

"},heading:"Results",description:"You may be eligible for these benefits:"},notEligible:{chevron:{heading:"Benefits you did not qualify for",description:"

According to your answers you are not eligible for these benefits.

"},heading:"Results",description:"Based on your answers you are not eligible for these benefits.You may become eligible if you enter additional information or your situation changes."},zeroBenefits:{backcta:{text:"",link:"Go back to start"},eligible:{chevron:{heading:"You are likely not eligible for these benefits.",description:"

If you reached these results by mistake, please go back to review your answers.

"}},notEligible:{chevron:{heading:"Benefits you did not qualify for",description:"

According to your answers you are not eligible for these benefits.

"}},heading:"No eligible results.",description:"Based on your answers you are likely not eligible for benefits. You may become eligible if you enter more information or your situation changes.",cta:"See all benefits"},stepBackButton:"Back",eligibleResults:{heading:"Results",description:"You may be eligible for these benefits."},benefitAccordionGroup:{closedState:"Expand all",openState:"Close all"},benefitAccordion:{eligibleStatusLabels:["Likely eligible","More information needed","Not eligible"],agencyPrefix:"By",benefitSummary:"Key eligibility criteria",benefitSummaryPrefix:"Met ",benefitSummaryConjunction:"of",unmetLabel:"Unmet criteria",visitLabel:"Visit"},notEligibleResults:{heading:"Benefits you did not qualify for",description:"
Based on your answers you are not eligible for these benefits. You may become eligible if you enter additional information or your situation changes.
",cta:"Explore other potential benefits"},resultsRelativeBenefits:{heading:"More benefits"},shareResults:{heading:"Share results",shareTrigger:"Share link",shareLinkContent:"Copied",emailTrigger:"Email results",emailSubject:"Results from USAGov’s benefit finder",description:"Copy or email these results. Your answers will be visible. Only share with those you trust."}},Pp={heading:"Share results",description:"Your information will be viewable. Only share with those you trust.",buttonGroup:[{value:"Share link"},{value:"Email results"}]},Tp={start:"Answer these questions",continue:"Questions continued",final:"Final questions"},Op={labelSelect:"Select an option",defaultValue:"-Select-",dateDefaultValue:"-Select-"},Rp={alert:"Date should follow the format January 19 2000",labelDay:"Day",labelMonth:"Month",labelYear:"Year",monthOptions:[{label:"01 - January"},{label:"02 - February"},{label:"03 - March"},{label:"04 - April"},{label:"05 - May"},{label:"06 - June"},{label:"07 - July"},{label:"08 - August"},{label:"09 - September"},{label:"10 - October"},{label:"11 - November"},{label:"12 - December"}]},Zg={intro:Cp,stepIndicator:Sp,requiredLabel:Ep,alertBanner:kp,errorText:_p,buttonGroup:jp,reviewSelectionModal:bp,verifySelectionsView:Np,resultsView:Lp,shareResults:Pp,sectionHeadings:Tp,select:Op,date:Rp},Mp=Object.freeze(Object.defineProperty({__proto__:null,alertBanner:kp,buttonGroup:jp,date:Rp,default:Zg,errorText:_p,intro:Cp,requiredLabel:Ep,resultsView:Lp,reviewSelectionModal:bp,sectionHeadings:Tp,select:Op,shareResults:Pp,stepIndicator:Sp,verifySelectionsView:Np},Symbol.toStringTag,{value:"Module"})),$p={heading:"Pasos",timeIndicator:"Tiempo estimado",steps:{list:[{title:"Responda unas preguntas"},{title:"Obtenga su lista de posibles beneficios"},{title:"Aplique en los sitios web de cada agencia"}]},notices:{heading:"Antes de empezar:",iconAlt:"Importante",list:[{notice:"
Esto no es una aplicación.
"},{notice:"Sus respuestas no serán guardadas o presentadas."},{notice:"
Responda todas las preguntas para mejores resultados.
"}]},button:"Encuentre sus beneficios"},Dp={stepBackButton:"Volver"},Ip={value:"requerido"},Fp={heading:{prefix:"Tu información contiene",suffix:"errores"},description:"Responda los campos requeridos."},Ap={prefix:"Complete",suffix:""},Bp=[{value:"Volver"},{value:"Siguiente"}],zp={heading:"Seleccione una opción:",buttonGroup:[{value:"Revise sus respuestas"},{value:"Obtenga sus resultados"}]},Up={heading:"Revisar y confirmar",noResultsLabel:"No respondió",buttonGroup:[{value:"Volver"},{value:"Confirmar"}]},Vp={summaryBox:{heading:"Importante",list:[{item:"Visite el sitio web de cada agencia para confirmar su elegibilidad y requisitos."},{item:"Sus resultados podrían cambiar si responde más preguntas o modifica sus respuestas."}],cta:{text:"",link:"Borrar mis respuestas y empezar el formulario de nuevo."}},eligible:{chevron:{heading:"Sus beneficios potenciales",description:"

Visite la página de cada agencia para verificar los requisitos y aplicar. Para conocer otros beneficios, consulte a su ciudad, estado, o trabajo.

"},heading:"Resultados",description:"Podría ser elegible para estos beneficios:"},notEligible:{chevron:{heading:"Beneficios a los que no calificó",description:"

Según sus respuestas usted no es elegible para estos beneficios.

"},heading:"Resultados",description:"Según sus respuestas no es elegible para estos beneficios. Podría calificar si tiene información adicional o si su situación cambia."},zeroBenefits:{backcta:{text:"",link:"Volver al inicio"},eligible:{chevron:{heading:"Usted parece no ser elegible para estos beneficios",description:"

Si cree que cometió un error, por favor regrese para corregir sus respuestas.

"}},notEligible:{chevron:{heading:"Beneficios a los que no calificó",description:"

Según sus respuestas usted no es elegible para estos beneficios.

"}},heading:"No tiene resultados elegibles.",description:"Basado en sus respuestas usted no es elegible para estos beneficios. Podría ser elegible si ingresa más información o si su situación cambia.",cta:"Ver todos los beneficios"},stepBackButton:"Volver",eligibleResults:{heading:"Resultados",description:"Podría calificar para estos beneficios:"},benefitAccordionGroup:{closedState:"Abrir todos",openState:"Cerrar todos"},benefitAccordion:{eligibleStatusLabels:["Probablemente elegible","Más información requerida","No elegible"],agencyPrefix:"",benefitSummary:"Criterios de elegibilidad",benefitSummaryPrefix:"Cumple ",benefitSummaryConjunction:"de",unmetLabel:"No cumplió con",visitLabel:"Visite",sourceIsEnglish:"(en inglés)"},notEligibleResults:{heading:"Beneficios a los que no calificó",description:"
Según sus respuestas no es elegible para estos beneficios. Podría calificar si tiene información adicional o si su situación cambia.
",cta:"Explore otros beneficios"},relativeBenefits:{heading:"Más beneficios"},shareResults:{heading:"Imprima y comparta",shareTrigger:"Compartir resultados",emailTrigger:"Enviar resultados",shareLinkContent:"Copiado",emailSubject:"Resultados del buscador de beneficios de USAGov",description:"Copie o envíe sus resultados por correo. Sus respuestas serán visibles. Solo comparta con quienes confíe."}},Hp={heading:"Imprima y comparta",description:"Sus respuestas serán visibles. Solo comparta con quienes confíe.",buttonGroup:[{value:"Compartir resultados"},{value:"Enviar resultados"}]},Wp={start:"Responda las preguntas",continue:"Preguntas continuadas",final:"Preguntas finales"},Kp={labelSelect:"Seleccione una opción",defaultValue:"-Seleccionar-",dateDefaultValue:"-Seleccionar-"},qp={alert:"Use el formato enero 19 2000",labelDay:"Día",labelMonth:"Mes",labelYear:"Año",monthOptions:[{label:"01 - Enero"},{label:"02 - Febrero"},{label:"03 - Marzo"},{label:"04 - Abril"},{label:"05 - Mayo"},{label:"06 - Junio"},{label:"07 - Julio"},{label:"08 - Agosto"},{label:"09 - Septiembre"},{label:"10 - Octubre"},{label:"11 - Noviembre"},{label:"12 - Diciembre"}]},Gg={intro:$p,stepIndicator:Dp,requiredLabel:Ip,alertBanner:Fp,errorText:Ap,buttonGroup:Bp,reviewSelectionModal:zp,verifySelectionsView:Up,resultsView:Vp,shareResults:Hp,sectionHeadings:Wp,select:Kp,date:qp},Qp=Object.freeze(Object.defineProperty({__proto__:null,alertBanner:Fp,buttonGroup:Bp,date:qp,default:Gg,errorText:Ap,intro:$p,requiredLabel:Ip,resultsView:Vp,reviewSelectionModal:zp,sectionHeadings:Wp,select:Kp,shareResults:Hp,stepIndicator:Dp,verifySelectionsView:Up},Symbol.toStringTag,{value:"Module"})),Nt=k.createContext({}),Yg=k.createContext({en:Mp,es:Qp});function Xg({testAppContent:e,testQuery:t}){const n="shared",r="draft",l=t||window.location.search,i=l.includes(n),o=l.includes(r),s=H.Language();rr();const[a,c]=k.useState(()=>(H.LifeEvent().then(S=>(S==null?void 0:S.status)===200?c(S.data):c(e)),e)),[p,d]=k.useState(),[m,y]=k.useState();k.useEffect(()=>{a&&y([...a.benefits]),a&&d([...a.lifeEventForm.sectionsEligibilityCriteria])},[a]);const[x]=k.useState(s==="es"?Qp:Mp);k.useEffect(()=>{i&&p&&Yr.DataFromParams(l,p,y,m,n)},[l,i,p]);const g=k.useMemo(()=>H.Routes(window,s,p),[p&&p.length]);return(g==null?void 0:g.formPaths)&&u.jsx(Nt.Provider,{value:g,children:u.jsxs(Yg.Provider,{value:x,children:[o===!0&&u.jsx(ha,{children:"Draft Mode"}),u.jsx("div",{id:a==null?void 0:a.lifeEventForm.id,className:"benefit-finder","data-testid":"app","data-version":vm,children:u.jsx(mm,{basename:`/${g.basePath}`,children:u.jsxs(fm,{children:[u.jsx(yr,{path:`/${g.indexPath}`,element:p&&u.jsx(pp,{content:a.lifeEventForm,ui:x.intro,stepDataArray:p,indexPath:`/${g.indexPath}/`,hasQueryParams:i})}),g.formPaths.map((S,f)=>u.jsx(yr,{path:`/${g.indexPath}/${S}`,element:u.jsx("div",{children:u.jsx(Kf,{children:u.jsx(hp,{data:p,handleData:d,ui:x})})})},f)),u.jsx(yr,{path:`/${g.indexPath}/${g.verifySelectionsPath}`,element:u.jsx(xp,{ui:x,data:p,indexPath:g.indexPath})}),Object.keys(g.resultsPaths).map((S,f)=>{var h;return u.jsx(yr,{path:`/${g.indexPath}/${g.resultsPaths[S]}`,element:u.jsx(wp,{stepDataArray:p,relevantBenefits:(h=a==null?void 0:a.lifeEventForm)==null?void 0:h.relevantBenefits,data:m,setBenefitsArray:()=>y(),ui:x.resultsView,notEligibleView:f!==0})},f)})]})})})]})})}const Jg=vo.createRoot(document.getElementById("benefit-finder"));Jg.render(u.jsx(vc.StrictMode,{children:u.jsx(Xg,{})})); From 59c2157d29a13b44430026d89b506c9d4400cd73 Mon Sep 17 00:00:00 2001 From: scottqueen-bixal Date: Mon, 4 Nov 2024 12:57:06 -0500 Subject: [PATCH 02/11] include new redirect to handle unasigned client side router redirects --- .docker/src-cms/etc/nginx/partials/internal_redirects.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.docker/src-cms/etc/nginx/partials/internal_redirects.conf b/.docker/src-cms/etc/nginx/partials/internal_redirects.conf index 19b1e6e5e0..871c68cf6a 100644 --- a/.docker/src-cms/etc/nginx/partials/internal_redirects.conf +++ b/.docker/src-cms/etc/nginx/partials/internal_redirects.conf @@ -260,7 +260,8 @@ rewrite ^/visitors-driving$ /non-citizen-driving permanent; rewrite ^/voting$ /voting-and-elections permanent; rewrite ^/voting-laws-history$ /voting-laws permanent; - + rewrite ^/benefit-finder/([^/]+)/[^/]+$ /benefit-finder/$1 permanent; + rewrite ^/es/buscador-beneficios/([^/]+)/[^/]+$ /es/buscador-beneficios/$1 permanent; # Any ^espanol/* not otherwise specified links to /es/* (and may 404) rewrite ^/espanol/(.+)$ /es/$1 permanent; From 287cc57e369152526629bffeb08fc0e8c118fa30 Mon Sep 17 00:00:00 2001 From: scottqueen-bixal Date: Tue, 5 Nov 2024 14:27:12 -0500 Subject: [PATCH 03/11] include redirect changes in www --- .docker/src-www/etc/nginx/partials/internal_redirects.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.docker/src-www/etc/nginx/partials/internal_redirects.conf b/.docker/src-www/etc/nginx/partials/internal_redirects.conf index 19b1e6e5e0..9e23429f6e 100644 --- a/.docker/src-www/etc/nginx/partials/internal_redirects.conf +++ b/.docker/src-www/etc/nginx/partials/internal_redirects.conf @@ -260,6 +260,8 @@ rewrite ^/visitors-driving$ /non-citizen-driving permanent; rewrite ^/voting$ /voting-and-elections permanent; rewrite ^/voting-laws-history$ /voting-laws permanent; + rewrite ^/benefit-finder/([^/]+)/[^/]+$ /benefit-finder/$1 permanent; + rewrite ^/es/buscador-beneficios/([^/]+)/[^/]+$ /es/buscador-beneficios/$1 permanent; # Any ^espanol/* not otherwise specified links to /es/* (and may 404) From f1afbcdd49b169535c55f29c47d46bc42cf3f3d4 Mon Sep 17 00:00:00 2001 From: scottqueen-bixal Date: Wed, 13 Nov 2024 14:13:50 -0500 Subject: [PATCH 04/11] latest compiled js --- .../js/benefit-finder.min.js | 57 +++++-------------- 1 file changed, 15 insertions(+), 42 deletions(-) diff --git a/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_app/usagov_benefit_finder_page/js/benefit-finder.min.js b/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_app/usagov_benefit_finder_page/js/benefit-finder.min.js index 0948239134..438a6a88f6 100644 --- a/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_app/usagov_benefit_finder_page/js/benefit-finder.min.js +++ b/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_app/usagov_benefit_finder_page/js/benefit-finder.min.js @@ -6,7 +6,7 @@ function Gp(e,t){for(var n=0;n>>1,z=_[M];if(0>>1;Ml(Jt,L))otl($,Jt)?(_[M]=$,_[ot]=L,M=ot):(_[M]=Jt,_[_e]=L,M=_e);else if(otl($,L))_[M]=$,_[ot]=L,M=ot;else break e}}return R}function l(_,R){var L=_.sortIndex-R.sortIndex;return L!==0?L:_.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var a=[],c=[],p=1,d=null,m=3,y=!1,x=!1,g=!1,S=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(_){for(var R=n(c);R!==null;){if(R.callback===null)r(c);else if(R.startTime<=_)r(c),R.sortIndex=R.expirationTime,t(a,R);else break;R=n(c)}}function w(_){if(g=!1,v(_),!x)if(n(a)!==null)x=!0,W(b);else{var R=n(c);R!==null&&E(w,R.startTime-_)}}function b(_,R){x=!1,g&&(g=!1,f(T),T=-1),y=!0;var L=m;try{for(v(R),d=n(a);d!==null&&(!(d.expirationTime>R)||_&&!q());){var M=d.callback;if(typeof M=="function"){d.callback=null,m=d.priorityLevel;var z=M(d.expirationTime<=R);R=e.unstable_now(),typeof z=="function"?d.callback=z:d===n(a)&&r(a),v(R)}else r(a);d=n(a)}if(d!==null)var fe=!0;else{var _e=n(c);_e!==null&&E(w,_e.startTime-R),fe=!1}return fe}finally{d=null,m=L,y=!1}}var N=!1,P=null,T=-1,B=5,D=-1;function q(){return!(e.unstable_now()-D_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(_){switch(m){case 1:case 2:case 3:var R=3;break;default:R=m}var L=m;m=R;try{return _()}finally{m=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,R){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var L=m;m=_;try{return R()}finally{m=L}},e.unstable_scheduleCallback=function(_,R,L){var M=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0M?(_.sortIndex=L,t(c,_),n(a)===null&&_===n(c)&&(g?(f(T),T=-1):g=!0,E(w,L-M))):(_.sortIndex=z,t(a,_),x||y||(x=!0,W(b))),_},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(_){var R=m;return function(){var L=m;m=R;try{return _.apply(this,arguments)}finally{m=L}}}})(xc);wc.exports=xc;var x1=wc.exports;/** + */(function(e){function t(k,O){var P=k.length;k.push(O);e:for(;0>>1,A=k[I];if(0>>1;Il(Yt,P))Kel(Nt,Yt)?(k[I]=Nt,k[Ke]=P,I=Ke):(k[I]=Yt,k[oe]=P,I=oe);else if(Kel(Nt,P))k[I]=Nt,k[Ke]=P,I=Ke;else break e}}return O}function l(k,O){var P=k.sortIndex-O.sortIndex;return P!==0?P:k.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var u=[],c=[],f=1,m=null,p=3,g=!1,S=!1,x=!1,b=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(k){for(var O=n(c);O!==null;){if(O.callback===null)r(c);else if(O.startTime<=k)r(c),O.sortIndex=O.expirationTime,t(u,O);else break;O=n(c)}}function w(k){if(x=!1,v(k),!S)if(n(u)!==null)S=!0,W(E);else{var O=n(c);O!==null&&C(w,O.startTime-k)}}function E(k,O){S=!1,x&&(x=!1,h(L),L=-1),g=!0;var P=p;try{for(v(O),m=n(u);m!==null&&(!(m.expirationTime>O)||k&&!H());){var I=m.callback;if(typeof I=="function"){m.callback=null,p=m.priorityLevel;var A=I(m.expirationTime<=O);O=e.unstable_now(),typeof A=="function"?m.callback=A:m===n(u)&&r(u),v(O)}else r(u);m=n(u)}if(m!==null)var ne=!0;else{var oe=n(c);oe!==null&&C(w,oe.startTime-O),ne=!1}return ne}finally{m=null,p=P,g=!1}}var N=!1,j=null,L=-1,B=5,R=-1;function H(){return!(e.unstable_now()-Rk||125I?(k.sortIndex=P,t(c,k),n(u)===null&&k===n(c)&&(x?(h(L),L=-1):x=!0,C(w,P-I))):(k.sortIndex=A,t(u,k),S||g||(S=!0,W(E))),k},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(k){var O=p;return function(){var P=p;p=O;try{return k.apply(this,arguments)}finally{p=P}}}})(Gu);Zu.exports=Gu;var $p=Zu.exports;/** * @license React * react-dom.production.min.js * @@ -30,46 +30,19 @@ function Gp(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),go=Object.prototype.hasOwnProperty,S1=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,_a={},ja={};function E1(e){return go.call(ja,e)?!0:go.call(_a,e)?!1:S1.test(e)?ja[e]=!0:(_a[e]=!0,!1)}function k1(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function _1(e,t,n,r){if(t===null||typeof t>"u"||k1(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ke(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var me={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){me[e]=new ke(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];me[t]=new ke(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){me[e]=new ke(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){me[e]=new ke(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){me[e]=new ke(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){me[e]=new ke(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){me[e]=new ke(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){me[e]=new ke(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){me[e]=new ke(e,5,!1,e.toLowerCase(),null,!1,!1)});var Cs=/[\-:]([a-z])/g;function Ss(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Cs,Ss);me[t]=new ke(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Cs,Ss);me[t]=new ke(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Cs,Ss);me[t]=new ke(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){me[e]=new ke(e,1,!1,e.toLowerCase(),null,!1,!1)});me.xlinkHref=new ke("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){me[e]=new ke(e,1,!1,e.toLowerCase(),null,!0,!0)});function Es(e,t,n,r){var l=me.hasOwnProperty(t)?me[t]:null;(l!==null?l.type!==0:r||!(2s||l[o]!==i[s]){var a=` -`+l[o].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=o&&0<=s);break}}}finally{Hi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?hr(e):""}function j1(e){switch(e.tag){case 5:return hr(e.type);case 16:return hr("Lazy");case 13:return hr("Suspense");case 19:return hr("SuspenseList");case 0:case 2:case 15:return e=Wi(e.type,!1),e;case 11:return e=Wi(e.type.render,!1),e;case 1:return e=Wi(e.type,!0),e;default:return""}}function Co(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _n:return"Fragment";case kn:return"Portal";case yo:return"Profiler";case ks:return"StrictMode";case wo:return"Suspense";case xo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ec:return(e.displayName||"Context")+".Consumer";case Sc:return(e._context.displayName||"Context")+".Provider";case _s:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case js:return t=e.displayName||null,t!==null?t:Co(e.type)||"Memo";case Ot:t=e._payload,e=e._init;try{return Co(e(t))}catch{}}return null}function b1(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Co(t);case 8:return t===ks?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Qt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _c(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function N1(e){var t=_c(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function dl(e){e._valueTracker||(e._valueTracker=N1(e))}function jc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=_c(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Bl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function So(e,t){var n=t.checked;return te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Na(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Qt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function bc(e,t){t=t.checked,t!=null&&Es(e,"checked",t,!1)}function Eo(e,t){bc(e,t);var n=Qt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ko(e,t.type,n):t.hasOwnProperty("defaultValue")&&ko(e,t.type,Qt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function La(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ko(e,t,n){(t!=="number"||Bl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var mr=Array.isArray;function In(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=fl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Rr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var wr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},L1=["Webkit","ms","Moz","O"];Object.keys(wr).forEach(function(e){L1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),wr[t]=wr[e]})});function Tc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||wr.hasOwnProperty(e)&&wr[e]?(""+t).trim():t+"px"}function Oc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Tc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var P1=te({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function bo(e,t){if(t){if(P1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(j(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(j(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(j(61))}if(t.style!=null&&typeof t.style!="object")throw Error(j(62))}}function No(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Lo=null;function bs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Po=null,Fn=null,An=null;function Oa(e){if(e=rl(e)){if(typeof Po!="function")throw Error(j(280));var t=e.stateNode;t&&(t=ki(t),Po(e.stateNode,e.type,t))}}function Rc(e){Fn?An?An.push(e):An=[e]:Fn=e}function Mc(){if(Fn){var e=Fn,t=An;if(An=Fn=null,Oa(e),t)for(e=0;e>>=0,e===0?32:31-(z1(e)/U1|0)|0}var pl=64,hl=4194304;function vr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Hl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~l;s!==0?r=vr(s):(i&=o,i!==0&&(r=vr(i)))}else o=n&~l,o!==0?r=vr(o):i!==0&&(r=vr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function tl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-et(t),e[t]=n}function K1(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Cr),za=" ",Ua=!1;function ed(e,t){switch(e){case"keyup":return xh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function td(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var jn=!1;function Sh(e,t){switch(e){case"compositionend":return td(t);case"keypress":return t.which!==32?null:(Ua=!0,za);case"textInput":return e=t.data,e===za&&Ua?null:e;default:return null}}function Eh(e,t){if(jn)return e==="compositionend"||!$s&&ed(e,t)?(e=Xc(),Pl=Os=Dt=null,jn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ka(n)}}function id(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?id(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function od(){for(var e=window,t=Bl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Bl(e.document)}return t}function Ds(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Oh(e){var t=od(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&id(n.ownerDocument.documentElement,n)){if(r!==null&&Ds(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=qa(n,i);var o=qa(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,bn=null,Do=null,Er=null,Io=!1;function Qa(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Io||bn==null||bn!==Bl(r)||(r=bn,"selectionStart"in r&&Ds(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Er&&Ar(Er,r)||(Er=r,r=ql(Do,"onSelect"),0Pn||(e.current=Vo[Pn],Vo[Pn]=null,Pn--)}function Q(e,t){Pn++,Vo[Pn]=e.current,e.current=t}var Zt={},xe=Yt(Zt),Ne=Yt(!1),pn=Zt;function Hn(e,t){var n=e.type.contextTypes;if(!n)return Zt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Le(e){return e=e.childContextTypes,e!=null}function Zl(){G(Ne),G(xe)}function tu(e,t,n){if(xe.current!==Zt)throw Error(j(168));Q(xe,t),Q(Ne,n)}function md(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(j(108,b1(e)||"Unknown",l));return te({},n,r)}function Gl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Zt,pn=xe.current,Q(xe,e),Q(Ne,Ne.current),!0}function nu(e,t,n){var r=e.stateNode;if(!r)throw Error(j(169));n?(e=md(e,t,pn),r.__reactInternalMemoizedMergedChildContext=e,G(Ne),G(xe),Q(xe,e)):G(Ne),Q(Ne,n)}var yt=null,_i=!1,io=!1;function vd(e){yt===null?yt=[e]:yt.push(e)}function Hh(e){_i=!0,vd(e)}function Xt(){if(!io&&yt!==null){io=!0;var e=0,t=K;try{var n=yt;for(K=1;e>=o,l-=o,wt=1<<32-et(t)+l|n<T?(B=P,P=null):B=P.sibling;var D=m(f,P,v[T],w);if(D===null){P===null&&(P=B);break}e&&P&&D.alternate===null&&t(f,P),h=i(D,h,T),N===null?b=D:N.sibling=D,N=D,P=B}if(T===v.length)return n(f,P),Y&&tn(f,T),b;if(P===null){for(;TT?(B=P,P=null):B=P.sibling;var q=m(f,P,D.value,w);if(q===null){P===null&&(P=B);break}e&&P&&q.alternate===null&&t(f,P),h=i(q,h,T),N===null?b=q:N.sibling=q,N=q,P=B}if(D.done)return n(f,P),Y&&tn(f,T),b;if(P===null){for(;!D.done;T++,D=v.next())D=d(f,D.value,w),D!==null&&(h=i(D,h,T),N===null?b=D:N.sibling=D,N=D);return Y&&tn(f,T),b}for(P=r(f,P);!D.done;T++,D=v.next())D=y(P,f,T,D.value,w),D!==null&&(e&&D.alternate!==null&&P.delete(D.key===null?T:D.key),h=i(D,h,T),N===null?b=D:N.sibling=D,N=D);return e&&P.forEach(function(de){return t(f,de)}),Y&&tn(f,T),b}function S(f,h,v,w){if(typeof v=="object"&&v!==null&&v.type===_n&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case cl:e:{for(var b=v.key,N=h;N!==null;){if(N.key===b){if(b=v.type,b===_n){if(N.tag===7){n(f,N.sibling),h=l(N,v.props.children),h.return=f,f=h;break e}}else if(N.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Ot&&iu(b)===N.type){n(f,N.sibling),h=l(N,v.props),h.ref=dr(f,N,v),h.return=f,f=h;break e}n(f,N);break}else t(f,N);N=N.sibling}v.type===_n?(h=un(v.props.children,f.mode,w,v.key),h.return=f,f=h):(w=Fl(v.type,v.key,v.props,null,f.mode,w),w.ref=dr(f,h,v),w.return=f,f=w)}return o(f);case kn:e:{for(N=v.key;h!==null;){if(h.key===N)if(h.tag===4&&h.stateNode.containerInfo===v.containerInfo&&h.stateNode.implementation===v.implementation){n(f,h.sibling),h=l(h,v.children||[]),h.return=f,f=h;break e}else{n(f,h);break}else t(f,h);h=h.sibling}h=ho(v,f.mode,w),h.return=f,f=h}return o(f);case Ot:return N=v._init,S(f,h,N(v._payload),w)}if(mr(v))return x(f,h,v,w);if(or(v))return g(f,h,v,w);Cl(f,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,h!==null&&h.tag===6?(n(f,h.sibling),h=l(h,v),h.return=f,f=h):(n(f,h),h=po(v,f.mode,w),h.return=f,f=h),o(f)):n(f,h)}return S}var Kn=xd(!0),Cd=xd(!1),Jl=Yt(null),ei=null,Rn=null,Bs=null;function zs(){Bs=Rn=ei=null}function Us(e){var t=Jl.current;G(Jl),e._currentValue=t}function Ko(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function zn(e,t){ei=e,Bs=Rn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(be=!0),e.firstContext=null)}function He(e){var t=e._currentValue;if(Bs!==e)if(e={context:e,memoizedValue:t,next:null},Rn===null){if(ei===null)throw Error(j(308));Rn=e,ei.dependencies={lanes:0,firstContext:e}}else Rn=Rn.next=e;return t}var on=null;function Vs(e){on===null?on=[e]:on.push(e)}function Sd(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Vs(t)):(n.next=l.next,l.next=n),t.interleaved=n,kt(e,r)}function kt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Rt=!1;function Hs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ed(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ct(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ht(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,V&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,kt(e,n)}return l=r.interleaved,l===null?(t.next=t,Vs(r)):(t.next=l.next,l.next=t),r.interleaved=t,kt(e,n)}function Ol(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ls(e,n)}}function ou(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ti(e,t,n,r){var l=e.updateQueue;Rt=!1;var i=l.firstBaseUpdate,o=l.lastBaseUpdate,s=l.shared.pending;if(s!==null){l.shared.pending=null;var a=s,c=a.next;a.next=null,o===null?i=c:o.next=c,o=a;var p=e.alternate;p!==null&&(p=p.updateQueue,s=p.lastBaseUpdate,s!==o&&(s===null?p.firstBaseUpdate=c:s.next=c,p.lastBaseUpdate=a))}if(i!==null){var d=l.baseState;o=0,p=c=a=null,s=i;do{var m=s.lane,y=s.eventTime;if((r&m)===m){p!==null&&(p=p.next={eventTime:y,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var x=e,g=s;switch(m=t,y=n,g.tag){case 1:if(x=g.payload,typeof x=="function"){d=x.call(y,d,m);break e}d=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=g.payload,m=typeof x=="function"?x.call(y,d,m):x,m==null)break e;d=te({},d,m);break e;case 2:Rt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,m=l.effects,m===null?l.effects=[s]:m.push(s))}else y={eventTime:y,lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},p===null?(c=p=y,a=d):p=p.next=y,o|=m;if(s=s.next,s===null){if(s=l.shared.pending,s===null)break;m=s,s=m.next,m.next=null,l.lastBaseUpdate=m,l.shared.pending=null}}while(!0);if(p===null&&(a=d),l.baseState=a,l.firstBaseUpdate=c,l.lastBaseUpdate=p,t=l.shared.interleaved,t!==null){l=t;do o|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);vn|=o,e.lanes=o,e.memoizedState=d}}function su(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=so.transition;so.transition={};try{e(!1),t()}finally{K=n,so.transition=r}}function Bd(){return We().memoizedState}function Qh(e,t,n){var r=Kt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},zd(e))Ud(t,n);else if(n=Sd(e,t,n,r),n!==null){var l=Se();tt(n,e,r,l),Vd(n,t,r)}}function Zh(e,t,n){var r=Kt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(zd(e))Ud(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,s=i(o,n);if(l.hasEagerState=!0,l.eagerState=s,rt(s,o)){var a=t.interleaved;a===null?(l.next=l,Vs(t)):(l.next=a.next,a.next=l),t.interleaved=l;return}}catch{}finally{}n=Sd(e,t,l,r),n!==null&&(l=Se(),tt(n,e,r,l),Vd(n,t,r))}}function zd(e){var t=e.alternate;return e===J||t!==null&&t===J}function Ud(e,t){kr=ri=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Vd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ls(e,n)}}var li={readContext:He,useCallback:ve,useContext:ve,useEffect:ve,useImperativeHandle:ve,useInsertionEffect:ve,useLayoutEffect:ve,useMemo:ve,useReducer:ve,useRef:ve,useState:ve,useDebugValue:ve,useDeferredValue:ve,useTransition:ve,useMutableSource:ve,useSyncExternalStore:ve,useId:ve,unstable_isNewReconciler:!1},Gh={readContext:He,useCallback:function(e,t){return at().memoizedState=[e,t===void 0?null:t],e},useContext:He,useEffect:uu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ml(4194308,4,$d.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ml(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ml(4,2,e,t)},useMemo:function(e,t){var n=at();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=at();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Qh.bind(null,J,e),[r.memoizedState,e]},useRef:function(e){var t=at();return e={current:e},t.memoizedState=e},useState:au,useDebugValue:Xs,useDeferredValue:function(e){return at().memoizedState=e},useTransition:function(){var e=au(!1),t=e[0];return e=qh.bind(null,e[1]),at().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=J,l=at();if(Y){if(n===void 0)throw Error(j(407));n=n()}else{if(n=t(),ce===null)throw Error(j(349));mn&30||bd(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,uu(Ld.bind(null,r,i,e),[e]),r.flags|=2048,qr(9,Nd.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=at(),t=ce.identifierPrefix;if(Y){var n=xt,r=wt;n=(r&~(1<<32-et(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Wr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[ut]=t,e[Ur]=r,Jd(e,t,!1,!1),t.stateNode=e;e:{switch(o=No(n,r),n){case"dialog":Z("cancel",e),Z("close",e),l=r;break;case"iframe":case"object":case"embed":Z("load",e),l=r;break;case"video":case"audio":for(l=0;lZn&&(t.flags|=128,r=!0,fr(i,!1),t.lanes=4194304)}else{if(!r)if(e=ni(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),fr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Y)return ge(t),null}else 2*re()-i.renderingStartTime>Zn&&n!==1073741824&&(t.flags|=128,r=!0,fr(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=re(),t.sibling=null,n=X.current,Q(X,r?n&1|2:n&1),t):(ge(t),null);case 22:case 23:return la(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Oe&1073741824&&(ge(t),t.subtreeFlags&6&&(t.flags|=8192)):ge(t),null;case 24:return null;case 25:return null}throw Error(j(156,t.tag))}function l0(e,t){switch(Fs(t),t.tag){case 1:return Le(t.type)&&Zl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qn(),G(Ne),G(xe),qs(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ks(t),null;case 13:if(G(X),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(j(340));Wn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(X),null;case 4:return qn(),null;case 10:return Us(t.type._context),null;case 22:case 23:return la(),null;case 24:return null;default:return null}}var El=!1,we=!1,i0=typeof WeakSet=="function"?WeakSet:Set,O=null;function Mn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ne(e,t,r)}else n.current=null}function ts(e,t,n){try{n()}catch(r){ne(e,t,r)}}var xu=!1;function o0(e,t){if(Fo=Wl,e=od(),Ds(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,s=-1,a=-1,c=0,p=0,d=e,m=null;t:for(;;){for(var y;d!==n||l!==0&&d.nodeType!==3||(s=o+l),d!==i||r!==0&&d.nodeType!==3||(a=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(y=d.firstChild)!==null;)m=d,d=y;for(;;){if(d===e)break t;if(m===n&&++c===l&&(s=o),m===i&&++p===r&&(a=o),(y=d.nextSibling)!==null)break;d=m,m=d.parentNode}d=y}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ao={focusedElem:e,selectionRange:n},Wl=!1,O=t;O!==null;)if(t=O,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,O=e;else for(;O!==null;){t=O;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var g=x.memoizedProps,S=x.memoizedState,f=t.stateNode,h=f.getSnapshotBeforeUpdate(t.elementType===t.type?g:Ge(t.type,g),S);f.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(j(163))}}catch(w){ne(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,O=e;break}O=t.return}return x=xu,xu=!1,x}function _r(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&ts(t,n,i)}l=l.next}while(l!==r)}}function Ni(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ns(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function nf(e){var t=e.alternate;t!==null&&(e.alternate=null,nf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ut],delete t[Ur],delete t[Uo],delete t[Uh],delete t[Vh])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function rf(e){return e.tag===5||e.tag===3||e.tag===4}function Cu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||rf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function rs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ql));else if(r!==4&&(e=e.child,e!==null))for(rs(e,t,n),e=e.sibling;e!==null;)rs(e,t,n),e=e.sibling}function ls(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ls(e,t,n),e=e.sibling;e!==null;)ls(e,t,n),e=e.sibling}var pe=null,Xe=!1;function Tt(e,t,n){for(n=n.child;n!==null;)lf(e,t,n),n=n.sibling}function lf(e,t,n){if(ct&&typeof ct.onCommitFiberUnmount=="function")try{ct.onCommitFiberUnmount(xi,n)}catch{}switch(n.tag){case 5:we||Mn(n,t);case 6:var r=pe,l=Xe;pe=null,Tt(e,t,n),pe=r,Xe=l,pe!==null&&(Xe?(e=pe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):pe.removeChild(n.stateNode));break;case 18:pe!==null&&(Xe?(e=pe,n=n.stateNode,e.nodeType===8?lo(e.parentNode,n):e.nodeType===1&&lo(e,n),Ir(e)):lo(pe,n.stateNode));break;case 4:r=pe,l=Xe,pe=n.stateNode.containerInfo,Xe=!0,Tt(e,t,n),pe=r,Xe=l;break;case 0:case 11:case 14:case 15:if(!we&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&ts(n,t,o),l=l.next}while(l!==r)}Tt(e,t,n);break;case 1:if(!we&&(Mn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ne(n,t,s)}Tt(e,t,n);break;case 21:Tt(e,t,n);break;case 22:n.mode&1?(we=(r=we)||n.memoizedState!==null,Tt(e,t,n),we=r):Tt(e,t,n);break;default:Tt(e,t,n)}}function Su(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new i0),t.forEach(function(r){var l=m0.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Ze(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=re()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*a0(r/1960))-r,10e?16:e,It===null)var r=!1;else{if(e=It,It=null,si=0,V&6)throw Error(j(331));var l=V;for(V|=4,O=e.current;O!==null;){var i=O,o=i.child;if(O.flags&16){var s=i.deletions;if(s!==null){for(var a=0;are()-na?an(e,0):ta|=n),Pe(e,t)}function pf(e,t){t===0&&(e.mode&1?(t=hl,hl<<=1,!(hl&130023424)&&(hl=4194304)):t=1);var n=Se();e=kt(e,t),e!==null&&(tl(e,t,n),Pe(e,n))}function h0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),pf(e,n)}function m0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(j(314))}r!==null&&r.delete(t),pf(e,n)}var hf;hf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ne.current)be=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return be=!1,n0(e,t,n);be=!!(e.flags&131072)}else be=!1,Y&&t.flags&1048576&&gd(t,Xl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;$l(e,t),e=t.pendingProps;var l=Hn(t,xe.current);zn(t,n),l=Zs(null,t,r,e,l,n);var i=Gs();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Le(r)?(i=!0,Gl(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Hs(t),l.updater=bi,t.stateNode=l,l._reactInternals=t,Qo(t,r,e,n),t=Yo(null,t,r,!0,i,n)):(t.tag=0,Y&&i&&Is(t),Ce(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch($l(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=g0(r),e=Ge(r,e),l){case 0:t=Go(null,t,r,e,n);break e;case 1:t=gu(null,t,r,e,n);break e;case 11:t=mu(null,t,r,e,n);break e;case 14:t=vu(null,t,r,Ge(r.type,e),n);break e}throw Error(j(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ge(r,l),Go(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ge(r,l),gu(e,t,r,l,n);case 3:e:{if(Gd(t),e===null)throw Error(j(387));r=t.pendingProps,i=t.memoizedState,l=i.element,Ed(e,t),ti(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=Qn(Error(j(423)),t),t=yu(e,t,r,n,l);break e}else if(r!==l){l=Qn(Error(j(424)),t),t=yu(e,t,r,n,l);break e}else for(Re=Vt(t.stateNode.containerInfo.firstChild),Me=t,Y=!0,Je=null,n=Cd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Wn(),r===l){t=_t(e,t,n);break e}Ce(e,t,r,n)}t=t.child}return t;case 5:return kd(t),e===null&&Wo(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,Bo(r,l)?o=null:i!==null&&Bo(r,i)&&(t.flags|=32),Zd(e,t),Ce(e,t,o,n),t.child;case 6:return e===null&&Wo(t),null;case 13:return Yd(e,t,n);case 4:return Ws(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Kn(t,null,r,n):Ce(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ge(r,l),mu(e,t,r,l,n);case 7:return Ce(e,t,t.pendingProps,n),t.child;case 8:return Ce(e,t,t.pendingProps.children,n),t.child;case 12:return Ce(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,Q(Jl,r._currentValue),r._currentValue=o,i!==null)if(rt(i.value,o)){if(i.children===l.children&&!Ne.current){t=_t(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Ct(-1,n&-n),a.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var p=c.pending;p===null?a.next=a:(a.next=p.next,p.next=a),c.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Ko(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(j(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Ko(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ce(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,zn(t,n),l=He(l),r=r(l),t.flags|=1,Ce(e,t,r,n),t.child;case 14:return r=t.type,l=Ge(r,t.pendingProps),l=Ge(r.type,l),vu(e,t,r,l,n);case 15:return qd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ge(r,l),$l(e,t),t.tag=1,Le(r)?(e=!0,Gl(t)):e=!1,zn(t,n),Hd(t,r,l),Qo(t,r,l,n),Yo(null,t,r,!0,e,n);case 19:return Xd(e,t,n);case 22:return Qd(e,t,n)}throw Error(j(156,t.tag))};function mf(e,t){return zc(e,t)}function v0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ue(e,t,n,r){return new v0(e,t,n,r)}function oa(e){return e=e.prototype,!(!e||!e.isReactComponent)}function g0(e){if(typeof e=="function")return oa(e)?1:0;if(e!=null){if(e=e.$$typeof,e===_s)return 11;if(e===js)return 14}return 2}function qt(e,t){var n=e.alternate;return n===null?(n=Ue(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Fl(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")oa(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case _n:return un(n.children,l,i,t);case ks:o=8,l|=8;break;case yo:return e=Ue(12,n,t,l|2),e.elementType=yo,e.lanes=i,e;case wo:return e=Ue(13,n,t,l),e.elementType=wo,e.lanes=i,e;case xo:return e=Ue(19,n,t,l),e.elementType=xo,e.lanes=i,e;case kc:return Pi(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Sc:o=10;break e;case Ec:o=9;break e;case _s:o=11;break e;case js:o=14;break e;case Ot:o=16,r=null;break e}throw Error(j(130,e==null?e:typeof e,""))}return t=Ue(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function un(e,t,n,r){return e=Ue(7,e,r,t),e.lanes=n,e}function Pi(e,t,n,r){return e=Ue(22,e,r,t),e.elementType=kc,e.lanes=n,e.stateNode={isHidden:!1},e}function po(e,t,n){return e=Ue(6,e,null,t),e.lanes=n,e}function ho(e,t,n){return t=Ue(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function y0(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=qi(0),this.expirationTimes=qi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qi(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function sa(e,t,n,r,l,i,o,s,a){return e=new y0(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ue(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Hs(i),e}function w0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(wf)}catch(e){console.error(e)}}wf(),yc.exports=De;var xf=yc.exports,Pu=xf;vo.createRoot=Pu.createRoot,vo.hydrateRoot=Pu.hydrateRoot;/** - * @remix-run/router v1.20.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Zr(){return Zr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Cf(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function _0(){return Math.random().toString(36).substr(2,8)}function Ou(e,t){return{usr:e.state,key:e.key,idx:t}}function us(e,t,n,r){return n===void 0&&(n=null),Zr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?er(t):t,{state:n,key:t&&t.key||r||_0()})}function Sf(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function er(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function j0(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:i=!1}=r,o=l.history,s=Ft.Pop,a=null,c=p();c==null&&(c=0,o.replaceState(Zr({},o.state,{idx:c}),""));function p(){return(o.state||{idx:null}).idx}function d(){s=Ft.Pop;let S=p(),f=S==null?null:S-c;c=S,a&&a({action:s,location:g.location,delta:f})}function m(S,f){s=Ft.Push;let h=us(g.location,S,f);c=p()+1;let v=Ou(h,c),w=g.createHref(h);try{o.pushState(v,"",w)}catch(b){if(b instanceof DOMException&&b.name==="DataCloneError")throw b;l.location.assign(w)}i&&a&&a({action:s,location:g.location,delta:1})}function y(S,f){s=Ft.Replace;let h=us(g.location,S,f);c=p();let v=Ou(h,c),w=g.createHref(h);o.replaceState(v,"",w),i&&a&&a({action:s,location:g.location,delta:0})}function x(S){let f=l.location.origin!=="null"?l.location.origin:l.location.href,h=typeof S=="string"?S:Sf(S);return h=h.replace(/ $/,"%20"),ae(f,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,f)}let g={get action(){return s},get location(){return e(l,o)},listen(S){if(a)throw new Error("A history only accepts one active listener");return l.addEventListener(Tu,d),a=S,()=>{l.removeEventListener(Tu,d),a=null}},createHref(S){return t(l,S)},createURL:x,encodeLocation(S){let f=x(S);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:m,replace:y,go(S){return o.go(S)}};return g}var Ru;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ru||(Ru={}));function b0(e,t,n){return n===void 0&&(n="/"),N0(e,t,n,!1)}function N0(e,t,n,r){let l=typeof t=="string"?er(t):t,i=_f(l.pathname||"/",n);if(i==null)return null;let o=Ef(e);L0(o);let s=null;for(let a=0;s==null&&a{let a={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};a.relativePath.startsWith("/")&&(ae(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let c=cn([r,a.relativePath]),p=n.concat(a);i.children&&i.children.length>0&&(ae(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Ef(i.children,t,p,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:D0(c,i.index),routesMeta:p})};return e.forEach((i,o)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))l(i,o);else for(let a of kf(i.path))l(i,o,a)}),t}function kf(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return l?[i,""]:[i];let o=kf(r.join("/")),s=[];return s.push(...o.map(a=>a===""?i:[i,a].join("/"))),l&&s.push(...o),s.map(a=>e.startsWith("/")&&a===""?"/":a)}function L0(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:I0(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const P0=/^:[\w-]+$/,T0=3,O0=2,R0=1,M0=10,$0=-2,Mu=e=>e==="*";function D0(e,t){let n=e.split("/"),r=n.length;return n.some(Mu)&&(r+=$0),t&&(r+=O0),n.filter(l=>!Mu(l)).reduce((l,i)=>l+(P0.test(i)?T0:i===""?R0:M0),r)}function I0(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function F0(e,t,n){let{routesMeta:r}=e,l={},i="/",o=[];for(let s=0;s{let{paramName:m,isOptional:y}=p;if(m==="*"){let g=s[d]||"";o=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const x=s[d];return y&&!x?c[m]=void 0:c[m]=(x||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:o,pattern:e}}function A0(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Cf(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,a)=>(r.push({paramName:s,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function B0(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Cf(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function _f(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function z0(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?er(e):e;return{pathname:n?n.startsWith("/")?n:U0(n,t):t,search:q0(r),hash:Q0(l)}}function U0(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function mo(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function V0(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function H0(e,t){let n=V0(e);return t?n.map((r,l)=>l===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function W0(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=er(e):(l=Zr({},e),ae(!l.pathname||!l.pathname.includes("?"),mo("?","pathname","search",l)),ae(!l.pathname||!l.pathname.includes("#"),mo("#","pathname","hash",l)),ae(!l.search||!l.search.includes("#"),mo("#","search","hash",l)));let i=e===""||l.pathname==="",o=i?"/":l.pathname,s;if(o==null)s=n;else{let d=t.length-1;if(!r&&o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),d-=1;l.pathname=m.join("/")}s=d>=0?t[d]:"/"}let a=z0(l,s),c=o&&o!=="/"&&o.endsWith("/"),p=(i||o===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(c||p)&&(a.pathname+="/"),a}const cn=e=>e.join("/").replace(/\/\/+/g,"/"),K0=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),q0=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Q0=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Z0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const jf=["post","put","patch","delete"];new Set(jf);const G0=["get",...jf];new Set(G0);/** - * React Router v6.27.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Gr(){return Gr=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),k.useCallback(function(c,p){if(p===void 0&&(p={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let d=W0(c,JSON.parse(o),i,p.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:cn([t,d.pathname])),(p.replace?r.replace:r.push)(d,p.state,p)},[t,r,o,i,e])}function J0(e,t){return em(e,t)}function em(e,t,n,r){Ii()||ae(!1);let{navigator:l}=k.useContext($i),{matches:i}=k.useContext(tr),o=i[i.length-1],s=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let c=nr(),p;if(t){var d;let S=typeof t=="string"?er(t):t;a==="/"||(d=S.pathname)!=null&&d.startsWith(a)||ae(!1),p=S}else p=c;let m=p.pathname||"/",y=m;if(a!=="/"){let S=a.replace(/^\//,"").split("/");y="/"+m.replace(/^\//,"").split("/").slice(S.length).join("/")}let x=b0(e,{pathname:y}),g=im(x&&x.map(S=>Object.assign({},S,{params:Object.assign({},s,S.params),pathname:cn([a,l.encodeLocation?l.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?a:cn([a,l.encodeLocation?l.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),i,n,r);return t&&g?k.createElement(Di.Provider,{value:{location:Gr({pathname:"/",search:"",hash:"",state:null,key:"default"},p),navigationType:Ft.Pop}},g):g}function tm(){let e=um(),t=Z0(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),n?k.createElement("pre",{style:l},n):null,null)}const nm=k.createElement(tm,null);class rm extends k.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?k.createElement(tr.Provider,{value:this.props.routeContext},k.createElement(bf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function lm(e){let{routeContext:t,match:n,children:r}=e,l=k.useContext(da);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),k.createElement(tr.Provider,{value:t},r)}function im(e,t,n,r){var l;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,s=(l=n)==null?void 0:l.errors;if(s!=null){let p=o.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);p>=0||ae(!1),o=o.slice(0,Math.min(o.length,p+1))}let a=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let p=0;p=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((p,d,m)=>{let y,x=!1,g=null,S=null;n&&(y=s&&d.route.id?s[d.route.id]:void 0,g=d.route.errorElement||nm,a&&(c<0&&m===0?(x=!0,S=null):c===m&&(x=!0,S=d.route.hydrateFallbackElement||null)));let f=t.concat(o.slice(0,m+1)),h=()=>{let v;return y?v=g:x?v=S:d.route.Component?v=k.createElement(d.route.Component,null):d.route.element?v=d.route.element:v=p,k.createElement(lm,{match:d,routeContext:{outlet:p,matches:f,isDataRoute:n!=null},children:v})};return n&&(d.route.ErrorBoundary||d.route.errorElement||m===0)?k.createElement(rm,{location:n.location,revalidation:n.revalidation,component:g,error:y,children:h(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):h()},null)}var Lf=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Lf||{}),ci=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ci||{});function om(e){let t=k.useContext(da);return t||ae(!1),t}function sm(e){let t=k.useContext(Y0);return t||ae(!1),t}function am(e){let t=k.useContext(tr);return t||ae(!1),t}function Pf(e){let t=am(),n=t.matches[t.matches.length-1];return n.route.id||ae(!1),n.route.id}function um(){var e;let t=k.useContext(bf),n=sm(ci.UseRouteError),r=Pf(ci.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function cm(){let{router:e}=om(Lf.UseNavigateStable),t=Pf(ci.UseNavigateStable),n=k.useRef(!1);return Nf(()=>{n.current=!0}),k.useCallback(function(l,i){i===void 0&&(i={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,Gr({fromRouteId:t},i)))},[e,t])}function yr(e){ae(!1)}function dm(e){let{basename:t="/",children:n=null,location:r,navigationType:l=Ft.Pop,navigator:i,static:o=!1,future:s}=e;Ii()&&ae(!1);let a=t.replace(/^\/*/,"/"),c=k.useMemo(()=>({basename:a,navigator:i,static:o,future:Gr({v7_relativeSplatPath:!1},s)}),[a,s,i,o]);typeof r=="string"&&(r=er(r));let{pathname:p="/",search:d="",hash:m="",state:y=null,key:x="default"}=r,g=k.useMemo(()=>{let S=_f(p,a);return S==null?null:{location:{pathname:S,search:d,hash:m,state:y,key:x},navigationType:l}},[a,p,d,m,y,x,l]);return g==null?null:k.createElement($i.Provider,{value:c},k.createElement(Di.Provider,{children:n,value:g}))}function fm(e){let{children:t,location:n}=e;return J0(cs(t),n)}new Promise(()=>{});function cs(e,t){t===void 0&&(t=[]);let n=[];return k.Children.forEach(e,(r,l)=>{if(!k.isValidElement(r))return;let i=[...t,l];if(r.type===k.Fragment){n.push.apply(n,cs(r.props.children,i));return}r.type!==yr&&ae(!1),!r.props.index||!r.props.children||ae(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=cs(r.props.children,i)),n.push(o)}),n}/** - * React Router DOM v6.27.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */const pm="6";try{window.__reactRouterVersion=pm}catch{}const hm="startTransition",Du=p1[hm];function mm(e){let{basename:t,children:n,future:r,window:l}=e,i=k.useRef();i.current==null&&(i.current=k0({window:l,v5Compat:!0}));let o=i.current,[s,a]=k.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},p=k.useCallback(d=>{c&&Du?Du(()=>a(d)):a(d)},[a,c]);return k.useLayoutEffect(()=>o.listen(p),[o,p]),k.createElement(dm,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:o,future:r})}var Iu;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Iu||(Iu={}));var Fu;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Fu||(Fu={}));const vm="0.8.0.beta.1",pt=({className:e,defaultClasses:t,utilityClasses:n})=>{const[r,l]=k.useState("");return k.useEffect(()=>{const i=[e,t&&t.join(" "),n&&n.join(" ")];l(i.filter(o=>o!==void 0).join(" "))},[e,t,n]),r},Au=e=>{e.preventDefault(),e.returnValue=""},gm=e=>{k.useEffect(()=>{e!==!1?window.addEventListener("beforeunload",Au):window.removeEventListener("beforeunload",Au)},[e])},rr=()=>(k.useEffect(()=>{document.getElementById("index-reset")===null&&document.body.insertAdjacentHTML("afterBegin",'')},[]),k.useRef(document.getElementById("index-reset"))),di=(e,t)=>{const n=t&&t.map(r=>{var p,d,m;const l=encodeURI(r.criteriaKey),i=typeof((p=r.values)==null?void 0:p.value)=="object"?encodeURIComponent(JSON.stringify((d=r.values)==null?void 0:d.value)):encodeURIComponent((m=r.values)==null?void 0:m.value),o=e.indexOf("#"),s=o===-1?"":e.substr(o);e=o===-1?e:e.substr(0,o);const a=new RegExp("([?&])"+l+"=.*?(&|$)","i"),c=e.indexOf("?")!==-1?"&":"?";return e.match(a)?e=e.replace(a,"$1"+l+"="+i+"$2"):e=e+c+l+"="+i,e+s});return t?`${n[n.length-1]}&shared=true`:""},ym=({loading:e,parentElementID:t})=>{document.querySelector(`[data-testid="${t}"]`);const n=document.createElement("div");n.dataset.testid="dom-ready"},wm=(e,t)=>{const n=e.querySelectorAll("fieldset"),r=Array.from(n).filter(l=>l.attributes.required);t(Array.from(r))},xm=(e,t,n,r,l,i)=>{const o=document.getElementById(`${e}`);if(!o.attributes.required){const c=i.filter(g=>g.criteriaKey===e)[0].values.value,p=g=>{for(const S in g)if(g[S]!=="")return!1;return!0},d=[...t,o],m=[...new Set(d)],y=m.filter(g=>!g.id===e),x=l.filter(g=>!g.id.includes(e));p(c)&&r(x),p(c)?n(y):n(m)}},Cm=async(e,t)=>{const n=e.map(i=>Array.from(i.elements).filter(o=>{var s,a;return((s=o.attributes["data-datetype"])==null?void 0:s.value)==="year"?!o.value||o.value&&o.value.length!==4:((a=o.attributes["data-datetype"])==null?void 0:a.value)==="day"?!o.value||o.value&&o.value==="0":!o.value})).flat(),r=e.map(i=>{if(Array.from(i.elements).every(s=>{var a;return!((a=s.attributes.type)!=null&&a.value)==="radio"}))return[];const o=Array.from(i.elements).filter(s=>{var a;return((a=s.attributes.type)==null?void 0:a.value)==="radio"});return o.length>0&&o.every(s=>!s.checked)?i:[]}).flat(),l=[n,r].flat();return t(l),l.length===0},Sm=({hasError:e,criteriaKey:t,fieldSetId:n,useFilter:r=!1})=>{const l=e.map(o=>o.id!==void 0&&n&&n.includes(o.id)||o.id!==void 0&&o.id.includes(t)).includes(!0),i=e.filter(o=>o.id!==void 0&&o.id.includes(n));return r===!0?i:l},Fe={getRequiredFieldsets:wm,getNonRequiredFieldsets:xm,handleCheckForRequiredValues:Cm,handleInvalid:Sm},Tf=e=>e.toLowerCase().replace(/[^a-zA-Z0-9\s]/g,"").replace(/ /g,"-"),bt=e=>({__html:e}),Em=(e,t,n=!0)=>{const r=i=>i!=null&&typeof i=="object",l=(i,o)=>{const s=Object.keys(i),a=Object.keys(o);if(s.length!==a.length)return!1;for(const c of s){const p=i[c],d=o[c],m=r(p)&&r(d);if(m&&!l(p,d)||!m&&p!==d)return!1}return!0};if(e.dataLayer){const i={...window.dataLayer[window.dataLayer.length-1]};delete i["gtm.uniqueEventId"],delete i.eventCallback,n===!0?l(i,t)===!1&&e.dataLayer.push(t):e.dataLayer.push(t)}},km={intro:{event:"bf_page_change",bfData:{pageView:"bf-intro",viewTitle:null}},lifeEventSection:{event:"bf_page_change",bfData:{pageView:"bf-form",viewTitle:null}},errors:{event:"bf_form_page_submit_attempt",bfData:{errors:null,errorCount:{number:null,string:null},formSuccess:!1}},modal:{event:"bf_page_change",bfData:{pageView:"bf-form-completion-modal",viewTitle:null}},verifySelections:{event:"bf_page_change",bfData:{pageView:"bf-verify-selections",viewTitle:null}},resultsView:{event:"bf_page_change",bfData:{pageView:["bf-result-eligible-view","bf-result-not-eligible-view"],viewTitle:null,eligibilityCount:{eligibleBenefitCount:null,moreInfoBenefitCount:null,notEligibleBenefitCount:null}}},openAllBenefitAccordions:{event:"bf_open_all_accordions",bfData:{accordionsOpen:!0}},benefitAccordion:{event:"bf_accordion_open",bfData:{benefitTitle:null}},benefitLink:{event:"bf_benefit_link",bfData:{benefitTitle:null}}},ie={dataLayerPush:Em,dataLayerStructure:km},_m=e=>{if(/^[0-9]*$/.test(`${e.target.value}`)){if(e.target.id.includes("day"))return e.target.value.length===2?/^(0?[1-9]|[12][0-9]|3[01])$/.test(`${e.target.value}`):e.target.value.length<3;if(e.target.id.includes("year")){const t=new Date().getFullYear().toString(),n=t.substring(t.length-1);return e.target.value.length===4?new RegExp(`^(19[0-9][0-9]|20[0-1][0-9]|20[0-2][0-${n}])$`).test(`${e.target.value}`):e.target.value.length<5}}if(e.target.id.includes("month"))return!0},fa=({hide:e})=>{const t=document.querySelector(".bf-qual-survey");t&&t.hidden===!e&&(t.hidden=e)},jm=e=>{const t=e&&new window.Date(Date.UTC(e.year,e.month,e.day));return new Date(t.getTime()+Math.abs(t.getTimezoneOffset()*6e4))},bm={37:1,38:1,39:1,40:1},dn=e=>{e.preventDefault()},Of=e=>{if(bm[e.keyCode])return dn(e),!1},fi={passive:!1},Rf="onwheel"in document.createElement("div")?"wheel":"mousewheel",Nm=()=>{window.addEventListener("DOMMouseScroll",dn,!1),window.addEventListener(Rf,dn,fi),window.addEventListener("touchmove",dn,fi),window.addEventListener("keydown",Of,!1)},Lm=()=>{window.removeEventListener("DOMMouseScroll",dn,!1),window.removeEventListener(Rf,dn,fi),window.removeEventListener("touchmove",dn,fi),window.removeEventListener("keydown",Of,!1)},Bu={disableScroll:Lm,enableScroll:Nm},Pm=({selectedValue:e,conditional:t})=>{const n=t,r=/['>', '>=', '<', '<=', '=']/g,l=n.match(r),i=n.match(/\d+/)[0],o=new RegExp(`[${l}]`,"g"),s=n.replace(/-/g,"/").replace(o,""),a=/-/,c=a.test(n)?new window.Date(s):new window.Date(new Date().getFullYear()-i,new Date().getMonth(),new Date().getDate()),p=new window.Date(Date.UTC(e.year,e.month,e.day,0,0,0));return((m,y,x)=>{const g=x,S=new window.Date(Date.UTC(y.getUTCFullYear(),y.getUTCMonth(),y.getUTCDate(),0,0,0));if(a.test(n)===!1){const f=S.getTime()-g.getTime();switch(m.length&&m.join("")){case">":return f>0;case">=":return f>=0;case"<":return f<0;case"<=":return f<=0;case"=":return+f==0;default:return!1}}else switch(m.length&&m.join("")){case">":return g.getTime()>S.getTime();case">=":return g.getTime()>=S.getTime();case"<":return g.getTime()r.fieldset.criteriaKey===t),n===void 0&&e.forEach(r=>{r.fieldset.children.forEach(l=>{l.fieldsets[0].fieldset.criteriaKey===t&&(n=l.fieldsets[0])})}),n}function Om(e){return e.slice(e.indexOf("?")+1).split("&").map(r=>{const[l,i]=r.split("=");return{criteriaKey:l,value:decodeURIComponent(i)}})}const Rm=()=>/^\/es/.test(window.location.pathname)?"es":"en",Mm=(e,t,n)=>{const r=e.location.pathname.split("/");r.slice(1);const l=r.pop(),i=r.join("/"),o=n==null?void 0:n.map(d=>Tf(d.section.heading)),s=t==="es"?"revisar-selecciónes":"verify-selections",a=t==="es"?"resultados":"results",c=t==="es"?`${a}/no-es-elegible`:`${a}/not-eligible`;return{basePath:i,indexPath:l,formPaths:o,verifySelectionsPath:s,resultsPaths:{resultsPath:a,notEligiblePath:c}}};async function $m(e){let t;if(e===void 0){const r=window.location.search;t=new URLSearchParams(r),t.get("mode")==="draft"&&`${t.get("mode")}`,e=window.location.pathname.split("/").pop()}let n;{const r=document.getElementById("benefit-finder");if(r!==null){const l=r.getAttribute("json-data-file-path"),i=r.getAttribute("draft-json-data-file-path");n=t.get("mode")==="draft"?i:l}}if(n!==void 0)return await fetch(n).then(l=>{if(l!=null&&l.ok)return l.json();throw new Error(l==null?void 0:l.status)}).then(l=>l!=null&&l.data?l:"Something went wrong.").catch(l=>(console.error(l),"Something went wrong."))}const Dm=e=>e&&e.fieldset.inputs[0].inputCriteria.values.find(t=>t.selected),Im=e=>{var t;return e&&((t=e.fieldset)==null?void 0:t.children.map(n=>n.fieldsets[0]))},Fm=e=>e&&e.flatMap((t,n)=>t.section.fieldsets.flatMap(r=>{const l=H.SelectedValue(r);return l&&[{criteriaKey:r.fieldset.inputs[0].inputCriteria.id,values:l},H.Children(r)&&H.Children(r).flatMap(i=>H.SelectedValue(i)&&{criteriaKey:i.fieldset.criteriaKey,values:H.SelectedValue(i)}).filter(i=>i!==void 0)]})).flat().filter(t=>t!==void 0),Am=(e,t)=>{const n=t.length>0&&t.map(l=>(e.forEach(i=>{const o=l.benefit.eligibility.find(s=>s.criteriaKey===i.criteriaKey);if(o!==void 0){const s=()=>{let a;return typeof i.values.value=="object"?a=o.acceptableValues.find(c=>Fi.DateEligibility({selectedValue:i.values.value,conditional:c})):a=o.acceptableValues.find(c=>c===i.values.value),a};o.isEligible=!!s()}}),l));return n&&[].concat(...n)};async function Bm(e,t,n,r){const l={...t};Fi.FindCriteria(l.section.fieldsets,e).then(i=>{var o;if(i)return((o=i.fieldset)==null?void 0:o.inputs[0].inputCriteria.values).forEach(a=>{a.value===r?a.selected=!0:delete a.selected}),n(l)}).catch(i=>(console.error(i),"Something went wrong."))}async function zm(e,t,n,r,l){const i={...t};Fi.FindCriteria(i.section.fieldsets,e).then(o=>{var s;if(o){const a=(s=o.fieldset)==null?void 0:s.inputs[0].inputCriteria.values;return l?(l.includes("day")&&(a[0].value.day=r),l.includes("month")&&(a[0].value.month=r),l.includes("year")&&(a[0].value.year=r),a[0].value={...a[0].value}):a[0].value=r,(p=>{for(const d in p)if(p[d]!==null&&p[d]!==void 0&&p[d]!=="")return!0;return!1})(a[0].value)===!1?a[0].selected=!1:a[0].selected=!0,n(i)}}).catch(o=>(console.error(o),"Something went wrong."))}const Um=(e,t,n,r,l)=>{const i=Fi.GetQueryParams(decodeURI(e));i.filter(a=>a.criteriaKey!==l);const o=(a,c)=>a[c];async function s(){await Promise.all(t.map(async a=>{a.completed=!0,await Promise.all(i.map(async c=>{const p=c.value.includes("{")?JSON.parse(c.value):c.value;p!==void 0&&typeof p=="object"?Yr.DataDate(c.criteriaKey,a,o,p):Yr.Data(c.criteriaKey,a,o,p)}))})),n(H.ElegibilityByCriteria(H.SelectedValueAll(t),r))}s()},Vm=async(e,t)=>{const n=r=>r.map(l=>{const i=l.benefit.eligibility.filter(c=>c.isEligible===!0),o=l.benefit.eligibility.filter(c=>c.isEligible===!1),s=l.benefit.eligibility.filter(c=>c.isEligible===void 0);return i.length===l.benefit.eligibility.length?t[0]:o.length===0&&s.length>0?t[1]:t[2]});try{const r=await n(e),l=(o,s)=>{const a=o.filter(c=>c===s);return{number:a.length,string:`${a.length}`}};return{eligibleBenefitCount:l(r,t[0]),moreInfoBenefitCount:l(r,t[1]),notEligibleBenefitCount:l(r,t[2])}}catch(r){console.error(r)}},H={BenefitsEligibilityCounts:Vm,Children:Im,ElegibilityByCriteria:Am,LifeEvent:$m,Language:Rm,Routes:Mm,SelectedValue:Dm,SelectedValueAll:Fm},Yr={Data:Bm,DataDate:zm,DataFromParams:Um},Fi={FindCriteria:Tm,DateEligibility:Pm,GetQueryParams:Om};var Mf={exports:{}},Hm="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Wm=Hm,Km=Wm;function $f(){}function Df(){}Df.resetWarningCache=$f;var qm=function(){function e(r,l,i,o,s,a){if(a!==Km){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Df,resetWarningCache:$f};return n.PropTypes=n,n};Mf.exports=qm();var pa=Mf.exports;const C=yi(pa),ha=({className:e,children:t,alertFieldRef:n,heading:r,description:l,type:i,hasError:o,noBackground:s,tabIndex:a,errorCount:c,errorList:p,submissionCount:d})=>{const m=i==="error"?["bf-usa-alert","usa-alert","bf-usa-alert--error","usa-alert--error",`${o===!1?"display-none":""}`]:["bf-usa-alert","usa-alert","bf-usa-alert--info","usa-alert--info",`${s?"no-background":""}`];return k.useEffect(()=>{const{errors:y}=ie.dataLayerStructure;o&&p&&ie.dataLayerPush(window,{event:y.event,bfData:{errors:p.map(x=>x==null?void 0:x.id).join(","),errorCount:{number:c,string:`${c}`},formSuccess:!1}},!1)},[d]),u.jsx("div",{className:pt({className:e,defaultClasses:m}),role:"alert",ref:n,tabIndex:a||0,"aria-live":o===!0?"assertive":"polite","aria-hidden":o===void 0?!1:!o,children:t?u.jsx("div",{className:"bf-usa-alert__body usa-alert__body",children:u.jsx("div",{className:"bf-usa-alert__text usa-alert__text",children:t})}):u.jsxs("div",{className:"bf-usa-alert__body usa-alert__body",children:[u.jsxs(ee,{headingLevel:2,className:"bf-usa-alert__heading usa-alert__heading","data-testid":"bf-alert-heading",children:[r==null?void 0:r.prefix," ",c," ",r==null?void 0:r.suffix]}),u.jsx("p",{className:"bf-usa-alert__text usa-alert__text",children:l}),u.jsx("ul",{"data-testid":"bf-errors-list",children:p&&p.map(y=>u.jsx("li",{"data-testid":"bf-errors-list-item",children:u.jsx("a",{href:`#${y.id}`,children:y.getAttribute("data-errormessage")||y.id})},y.id))})]})})};ha.propTypes={className:C.string,children:C.any,alertFieldRef:C.any,heading:C.object,description:C.string,type:C.string,hasError:C.bool,noBackground:C.bool,tabIndex:C.number,errorCount:C.number};const Qm=e=>e&&typeof e=="object"&&e.nodeType===1;var Zm=(e,t)=>{if(typeof e!="string")return[];(!t||!Qm(t))&&(t=window.document);const n=t.querySelectorAll(e);return Array.prototype.slice.call(n)};/* + */var Fp=M,De=$p;function _(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ri=Object.prototype.hasOwnProperty,Ip=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,aa={},ua={};function Ap(e){return ri.call(ua,e)?!0:ri.call(aa,e)?!1:Ip.test(e)?ua[e]=!0:(aa[e]=!0,!1)}function zp(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Bp(e,t,n,r){if(t===null||typeof t>"u"||zp(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ee(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var me={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){me[e]=new Ee(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];me[t]=new Ee(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){me[e]=new Ee(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){me[e]=new Ee(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){me[e]=new Ee(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){me[e]=new Ee(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){me[e]=new Ee(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){me[e]=new Ee(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){me[e]=new Ee(e,5,!1,e.toLowerCase(),null,!1,!1)});var os=/[\-:]([a-z])/g;function is(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(os,is);me[t]=new Ee(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(os,is);me[t]=new Ee(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(os,is);me[t]=new Ee(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){me[e]=new Ee(e,1,!1,e.toLowerCase(),null,!1,!1)});me.xlinkHref=new Ee("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){me[e]=new Ee(e,1,!1,e.toLowerCase(),null,!0,!0)});function ss(e,t,n,r){var l=me.hasOwnProperty(t)?me[t]:null;(l!==null?l.type!==0:r||!(2s||l[i]!==o[s]){var u=` +`+l[i].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=i&&0<=s);break}}}finally{Mo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?sr(e):""}function Vp(e){switch(e.tag){case 5:return sr(e.type);case 16:return sr("Lazy");case 13:return sr("Suspense");case 19:return sr("SuspenseList");case 0:case 2:case 15:return e=Po(e.type,!1),e;case 11:return e=Po(e.type.render,!1),e;case 1:return e=Po(e.type,!0),e;default:return""}}function si(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Cn:return"Fragment";case Sn:return"Portal";case li:return"Profiler";case as:return"StrictMode";case oi:return"Suspense";case ii:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ju:return(e.displayName||"Context")+".Consumer";case Xu:return(e._context.displayName||"Context")+".Provider";case us:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case cs:return t=e.displayName||null,t!==null?t:si(e.type)||"Memo";case Ot:t=e._payload,e=e._init;try{return si(e(t))}catch{}}return null}function Hp(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return si(t);case 8:return t===as?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Kt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function tc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Up(e){var t=tc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function nl(e){e._valueTracker||(e._valueTracker=Up(e))}function nc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=tc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ol(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ai(e,t){var n=t.checked;return te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function da(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Kt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function rc(e,t){t=t.checked,t!=null&&ss(e,"checked",t,!1)}function ui(e,t){rc(e,t);var n=Kt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ci(e,t.type,n):t.hasOwnProperty("defaultValue")&&ci(e,t.type,Kt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function fa(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ci(e,t,n){(t!=="number"||Ol(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ar=Array.isArray;function Rn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=rl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function _r(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var dr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Wp=["Webkit","ms","Moz","O"];Object.keys(dr).forEach(function(e){Wp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),dr[t]=dr[e]})});function sc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||dr.hasOwnProperty(e)&&dr[e]?(""+t).trim():t+"px"}function ac(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=sc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Kp=te({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function pi(e,t){if(t){if(Kp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(_(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(_(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(_(61))}if(t.style!=null&&typeof t.style!="object")throw Error(_(62))}}function hi(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var mi=null;function ds(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var vi=null,Dn=null,$n=null;function ma(e){if(e=qr(e)){if(typeof vi!="function")throw Error(_(280));var t=e.stateNode;t&&(t=mo(t),vi(e.stateNode,e.type,t))}}function uc(e){Dn?$n?$n.push(e):$n=[e]:Dn=e}function cc(){if(Dn){var e=Dn,t=$n;if($n=Dn=null,ma(e),t)for(e=0;e>>=0,e===0?32:31-(r1(e)/l1|0)|0}var ll=64,ol=4194304;function ur(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Dl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~l;s!==0?r=ur(s):(o&=i,o!==0&&(r=ur(o)))}else i=n&~l,i!==0?r=ur(i):o!==0&&(r=ur(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Wr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-et(t),e[t]=n}function a1(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=pr),Ea=" ",_a=!1;function Tc(e,t){switch(e){case"keyup":return $1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Oc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var kn=!1;function I1(e,t){switch(e){case"compositionend":return Oc(t);case"keypress":return t.which!==32?null:(_a=!0,Ea);case"textInput":return e=t.data,e===Ea&&_a?null:e;default:return null}}function A1(e,t){if(kn)return e==="compositionend"||!ws&&Tc(e,t)?(e=bc(),Sl=vs=Dt=null,kn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=La(n)}}function Dc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Dc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $c(){for(var e=window,t=Ol();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ol(e.document)}return t}function xs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Q1(e){var t=$c(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Dc(n.ownerDocument.documentElement,n)){if(r!==null&&xs(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=Ta(n,o);var i=Ta(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,En=null,Ci=null,mr=null,ki=!1;function Oa(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ki||En==null||En!==Ol(r)||(r=En,"selectionStart"in r&&xs(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),mr&&Or(mr,r)||(mr=r,r=Il(Ci,"onSelect"),0Nn||(e.current=Li[Nn],Li[Nn]=null,Nn--)}function Q(e,t){Nn++,Li[Nn]=e.current,e.current=t}var qt={},xe=Zt(qt),Ne=Zt(!1),cn=qt;function Bn(e,t){var n=e.type.contextTypes;if(!n)return qt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function be(e){return e=e.childContextTypes,e!=null}function zl(){G(Ne),G(xe)}function Ia(e,t,n){if(xe.current!==qt)throw Error(_(168));Q(xe,t),Q(Ne,n)}function Wc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(_(108,Hp(e)||"Unknown",l));return te({},n,r)}function Bl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||qt,cn=xe.current,Q(xe,e),Q(Ne,Ne.current),!0}function Aa(e,t,n){var r=e.stateNode;if(!r)throw Error(_(169));n?(e=Wc(e,t,cn),r.__reactInternalMemoizedMergedChildContext=e,G(Ne),G(xe),Q(xe,e)):G(Ne),Q(Ne,n)}var gt=null,vo=!1,qo=!1;function Kc(e){gt===null?gt=[e]:gt.push(e)}function ih(e){vo=!0,Kc(e)}function Gt(){if(!qo&>!==null){qo=!0;var e=0,t=K;try{var n=gt;for(K=1;e>=i,l-=i,yt=1<<32-et(t)+l|n<L?(B=j,j=null):B=j.sibling;var R=p(h,j,v[L],w);if(R===null){j===null&&(j=B);break}e&&j&&R.alternate===null&&t(h,j),d=o(R,d,L),N===null?E=R:N.sibling=R,N=R,j=B}if(L===v.length)return n(h,j),Y&&Jt(h,L),E;if(j===null){for(;LL?(B=j,j=null):B=j.sibling;var H=p(h,j,R.value,w);if(H===null){j===null&&(j=B);break}e&&j&&H.alternate===null&&t(h,j),d=o(H,d,L),N===null?E=H:N.sibling=H,N=H,j=B}if(R.done)return n(h,j),Y&&Jt(h,L),E;if(j===null){for(;!R.done;L++,R=v.next())R=m(h,R.value,w),R!==null&&(d=o(R,d,L),N===null?E=R:N.sibling=R,N=R);return Y&&Jt(h,L),E}for(j=r(h,j);!R.done;L++,R=v.next())R=g(j,h,L,R.value,w),R!==null&&(e&&R.alternate!==null&&j.delete(R.key===null?L:R.key),d=o(R,d,L),N===null?E=R:N.sibling=R,N=R);return e&&j.forEach(function(ae){return t(h,ae)}),Y&&Jt(h,L),E}function b(h,d,v,w){if(typeof v=="object"&&v!==null&&v.type===Cn&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case tl:e:{for(var E=v.key,N=d;N!==null;){if(N.key===E){if(E=v.type,E===Cn){if(N.tag===7){n(h,N.sibling),d=l(N,v.props.children),d.return=h,h=d;break e}}else if(N.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Ot&&Va(E)===N.type){n(h,N.sibling),d=l(N,v.props),d.ref=lr(h,N,v),d.return=h,h=d;break e}n(h,N);break}else t(h,N);N=N.sibling}v.type===Cn?(d=sn(v.props.children,h.mode,w,v.key),d.return=h,h=d):(w=Ll(v.type,v.key,v.props,null,h.mode,w),w.ref=lr(h,d,v),w.return=h,h=w)}return i(h);case Sn:e:{for(N=v.key;d!==null;){if(d.key===N)if(d.tag===4&&d.stateNode.containerInfo===v.containerInfo&&d.stateNode.implementation===v.implementation){n(h,d.sibling),d=l(d,v.children||[]),d.return=h,h=d;break e}else{n(h,d);break}else t(h,d);d=d.sibling}d=ti(v,h.mode,w),d.return=h,h=d}return i(h);case Ot:return N=v._init,b(h,d,N(v._payload),w)}if(ar(v))return S(h,d,v,w);if(Jn(v))return x(h,d,v,w);fl(h,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,d!==null&&d.tag===6?(n(h,d.sibling),d=l(d,v),d.return=h,h=d):(n(h,d),d=ei(v,h.mode,w),d.return=h,h=d),i(h)):n(h,d)}return b}var Hn=Gc(!0),Yc=Gc(!1),Ul=Zt(null),Wl=null,Tn=null,Es=null;function _s(){Es=Tn=Wl=null}function js(e){var t=Ul.current;G(Ul),e._currentValue=t}function Mi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function In(e,t){Wl=e,Es=Tn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(je=!0),e.firstContext=null)}function Ue(e){var t=e._currentValue;if(Es!==e)if(e={context:e,memoizedValue:t,next:null},Tn===null){if(Wl===null)throw Error(_(308));Tn=e,Wl.dependencies={lanes:0,firstContext:e}}else Tn=Tn.next=e;return t}var rn=null;function Ns(e){rn===null?rn=[e]:rn.push(e)}function Xc(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Ns(t)):(n.next=l.next,l.next=n),t.interleaved=n,kt(e,r)}function kt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Mt=!1;function bs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Jc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function xt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Vt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,U&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,kt(e,n)}return l=r.interleaved,l===null?(t.next=t,Ns(r)):(t.next=l.next,l.next=t),r.interleaved=t,kt(e,n)}function kl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ps(e,n)}}function Ha(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Kl(e,t,n,r){var l=e.updateQueue;Mt=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,s=l.shared.pending;if(s!==null){l.shared.pending=null;var u=s,c=u.next;u.next=null,i===null?o=c:i.next=c,i=u;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==i&&(s===null?f.firstBaseUpdate=c:s.next=c,f.lastBaseUpdate=u))}if(o!==null){var m=l.baseState;i=0,f=c=u=null,s=o;do{var p=s.lane,g=s.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:g,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var S=e,x=s;switch(p=t,g=n,x.tag){case 1:if(S=x.payload,typeof S=="function"){m=S.call(g,m,p);break e}m=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=x.payload,p=typeof S=="function"?S.call(g,m,p):S,p==null)break e;m=te({},m,p);break e;case 2:Mt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=l.effects,p===null?l.effects=[s]:p.push(s))}else g={eventTime:g,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(c=f=g,u=m):f=f.next=g,i|=p;if(s=s.next,s===null){if(s=l.shared.pending,s===null)break;p=s,s=p.next,p.next=null,l.lastBaseUpdate=p,l.shared.pending=null}}while(!0);if(f===null&&(u=m),l.baseState=u,l.firstBaseUpdate=c,l.lastBaseUpdate=f,t=l.shared.interleaved,t!==null){l=t;do i|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);pn|=i,e.lanes=i,e.memoizedState=m}}function Ua(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Zo.transition;Zo.transition={};try{e(!1),t()}finally{K=n,Zo.transition=r}}function vd(){return We().memoizedState}function ch(e,t,n){var r=Ut(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},gd(e))yd(t,n);else if(n=Xc(e,t,n,r),n!==null){var l=Ce();tt(n,e,r,l),wd(n,t,r)}}function dh(e,t,n){var r=Ut(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(gd(e))yd(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,s=o(i,n);if(l.hasEagerState=!0,l.eagerState=s,rt(s,i)){var u=t.interleaved;u===null?(l.next=l,Ns(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=Xc(e,t,l,r),n!==null&&(l=Ce(),tt(n,e,r,l),wd(n,t,r))}}function gd(e){var t=e.alternate;return e===J||t!==null&&t===J}function yd(e,t){vr=Ql=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function wd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ps(e,n)}}var Zl={readContext:Ue,useCallback:ve,useContext:ve,useEffect:ve,useImperativeHandle:ve,useInsertionEffect:ve,useLayoutEffect:ve,useMemo:ve,useReducer:ve,useRef:ve,useState:ve,useDebugValue:ve,useDeferredValue:ve,useTransition:ve,useMutableSource:ve,useSyncExternalStore:ve,useId:ve,unstable_isNewReconciler:!1},fh={readContext:Ue,useCallback:function(e,t){return st().memoizedState=[e,t===void 0?null:t],e},useContext:Ue,useEffect:Ka,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,_l(4194308,4,dd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _l(4194308,4,e,t)},useInsertionEffect:function(e,t){return _l(4,2,e,t)},useMemo:function(e,t){var n=st();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=st();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ch.bind(null,J,e),[r.memoizedState,e]},useRef:function(e){var t=st();return e={current:e},t.memoizedState=e},useState:Wa,useDebugValue:$s,useDeferredValue:function(e){return st().memoizedState=e},useTransition:function(){var e=Wa(!1),t=e[0];return e=uh.bind(null,e[1]),st().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=J,l=st();if(Y){if(n===void 0)throw Error(_(407));n=n()}else{if(n=t(),fe===null)throw Error(_(349));fn&30||rd(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Ka(od.bind(null,r,o,e),[e]),r.flags|=2048,Ar(9,ld.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=st(),t=fe.identifierPrefix;if(Y){var n=wt,r=yt;n=(r&~(1<<32-et(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Fr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[at]=t,e[Rr]=r,Ld(e,t,!1,!1),t.stateNode=e;e:{switch(i=hi(n,r),n){case"dialog":Z("cancel",e),Z("close",e),l=r;break;case"iframe":case"object":case"embed":Z("load",e),l=r;break;case"video":case"audio":for(l=0;lKn&&(t.flags|=128,r=!0,or(o,!1),t.lanes=4194304)}else{if(!r)if(e=ql(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),or(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!Y)return ge(t),null}else 2*le()-o.renderingStartTime>Kn&&n!==1073741824&&(t.flags|=128,r=!0,or(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=le(),t.sibling=null,n=X.current,Q(X,r?n&1|2:n&1),t):(ge(t),null);case 22:case 23:return Vs(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Me&1073741824&&(ge(t),t.subtreeFlags&6&&(t.flags|=8192)):ge(t),null;case 24:return null;case 25:return null}throw Error(_(156,t.tag))}function xh(e,t){switch(Cs(t),t.tag){case 1:return be(t.type)&&zl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Un(),G(Ne),G(xe),Os(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ts(t),null;case 13:if(G(X),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(_(340));Vn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(X),null;case 4:return Un(),null;case 10:return js(t.type._context),null;case 22:case 23:return Vs(),null;case 24:return null;default:return null}}var hl=!1,we=!1,Sh=typeof WeakSet=="function"?WeakSet:Set,T=null;function On(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){re(e,t,r)}else n.current=null}function Bi(e,t,n){try{n()}catch(r){re(e,t,r)}}var ru=!1;function Ch(e,t){if(Ei=$l,e=$c(),xs(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,s=-1,u=-1,c=0,f=0,m=e,p=null;t:for(;;){for(var g;m!==n||l!==0&&m.nodeType!==3||(s=i+l),m!==o||r!==0&&m.nodeType!==3||(u=i+r),m.nodeType===3&&(i+=m.nodeValue.length),(g=m.firstChild)!==null;)p=m,m=g;for(;;){if(m===e)break t;if(p===n&&++c===l&&(s=i),p===o&&++f===r&&(u=i),(g=m.nextSibling)!==null)break;m=p,p=m.parentNode}m=g}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(_i={focusedElem:e,selectionRange:n},$l=!1,T=t;T!==null;)if(t=T,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,T=e;else for(;T!==null;){t=T;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var x=S.memoizedProps,b=S.memoizedState,h=t.stateNode,d=h.getSnapshotBeforeUpdate(t.elementType===t.type?x:Ge(t.type,x),b);h.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(_(163))}}catch(w){re(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,T=e;break}T=t.return}return S=ru,ru=!1,S}function gr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Bi(t,n,o)}l=l.next}while(l!==r)}}function wo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Vi(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Md(e){var t=e.alternate;t!==null&&(e.alternate=null,Md(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[at],delete t[Rr],delete t[bi],delete t[lh],delete t[oh])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Pd(e){return e.tag===5||e.tag===3||e.tag===4}function lu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Pd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Hi(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Al));else if(r!==4&&(e=e.child,e!==null))for(Hi(e,t,n),e=e.sibling;e!==null;)Hi(e,t,n),e=e.sibling}function Ui(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ui(e,t,n),e=e.sibling;e!==null;)Ui(e,t,n),e=e.sibling}var pe=null,Xe=!1;function Tt(e,t,n){for(n=n.child;n!==null;)Rd(e,t,n),n=n.sibling}function Rd(e,t,n){if(ut&&typeof ut.onCommitFiberUnmount=="function")try{ut.onCommitFiberUnmount(co,n)}catch{}switch(n.tag){case 5:we||On(n,t);case 6:var r=pe,l=Xe;pe=null,Tt(e,t,n),pe=r,Xe=l,pe!==null&&(Xe?(e=pe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):pe.removeChild(n.stateNode));break;case 18:pe!==null&&(Xe?(e=pe,n=n.stateNode,e.nodeType===8?Ko(e.parentNode,n):e.nodeType===1&&Ko(e,n),Lr(e)):Ko(pe,n.stateNode));break;case 4:r=pe,l=Xe,pe=n.stateNode.containerInfo,Xe=!0,Tt(e,t,n),pe=r,Xe=l;break;case 0:case 11:case 14:case 15:if(!we&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Bi(n,t,i),l=l.next}while(l!==r)}Tt(e,t,n);break;case 1:if(!we&&(On(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){re(n,t,s)}Tt(e,t,n);break;case 21:Tt(e,t,n);break;case 22:n.mode&1?(we=(r=we)||n.memoizedState!==null,Tt(e,t,n),we=r):Tt(e,t,n);break;default:Tt(e,t,n)}}function ou(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Sh),t.forEach(function(r){var l=Oh.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Ze(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=le()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Eh(r/1960))-r,10e?16:e,$t===null)var r=!1;else{if(e=$t,$t=null,Xl=0,U&6)throw Error(_(331));var l=U;for(U|=4,T=e.current;T!==null;){var o=T,i=o.child;if(T.flags&16){var s=o.deletions;if(s!==null){for(var u=0;ule()-zs?on(e,0):As|=n),Le(e,t)}function Vd(e,t){t===0&&(e.mode&1?(t=ol,ol<<=1,!(ol&130023424)&&(ol=4194304)):t=1);var n=Ce();e=kt(e,t),e!==null&&(Wr(e,t,n),Le(e,n))}function Th(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Vd(e,n)}function Oh(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(_(314))}r!==null&&r.delete(t),Vd(e,n)}var Hd;Hd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ne.current)je=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return je=!1,yh(e,t,n);je=!!(e.flags&131072)}else je=!1,Y&&t.flags&1048576&&qc(t,Hl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;jl(e,t),e=t.pendingProps;var l=Bn(t,xe.current);In(t,n),l=Ps(null,t,r,e,l,n);var o=Rs();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,be(r)?(o=!0,Bl(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,bs(t),l.updater=yo,t.stateNode=l,l._reactInternals=t,Ri(t,r,e,n),t=Fi(null,t,r,!0,o,n)):(t.tag=0,Y&&o&&Ss(t),Se(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(jl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Ph(r),e=Ge(r,e),l){case 0:t=$i(null,t,r,e,n);break e;case 1:t=eu(null,t,r,e,n);break e;case 11:t=Xa(null,t,r,e,n);break e;case 14:t=Ja(null,t,r,Ge(r.type,e),n);break e}throw Error(_(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ge(r,l),$i(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ge(r,l),eu(e,t,r,l,n);case 3:e:{if(jd(t),e===null)throw Error(_(387));r=t.pendingProps,o=t.memoizedState,l=o.element,Jc(e,t),Kl(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=Wn(Error(_(423)),t),t=tu(e,t,r,n,l);break e}else if(r!==l){l=Wn(Error(_(424)),t),t=tu(e,t,r,n,l);break e}else for(Pe=Bt(t.stateNode.containerInfo.firstChild),Re=t,Y=!0,Je=null,n=Yc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vn(),r===l){t=Et(e,t,n);break e}Se(e,t,r,n)}t=t.child}return t;case 5:return ed(t),e===null&&Oi(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,ji(r,l)?i=null:o!==null&&ji(r,o)&&(t.flags|=32),_d(e,t),Se(e,t,i,n),t.child;case 6:return e===null&&Oi(t),null;case 13:return Nd(e,t,n);case 4:return Ls(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Hn(t,null,r,n):Se(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ge(r,l),Xa(e,t,r,l,n);case 7:return Se(e,t,t.pendingProps,n),t.child;case 8:return Se(e,t,t.pendingProps.children,n),t.child;case 12:return Se(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,Q(Ul,r._currentValue),r._currentValue=i,o!==null)if(rt(o.value,i)){if(o.children===l.children&&!Ne.current){t=Et(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){i=o.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=xt(-1,n&-n),u.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?u.next=u:(u.next=f.next,f.next=u),c.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Mi(o.return,n,t),s.lanes|=n;break}u=u.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(_(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Mi(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}Se(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,In(t,n),l=Ue(l),r=r(l),t.flags|=1,Se(e,t,r,n),t.child;case 14:return r=t.type,l=Ge(r,t.pendingProps),l=Ge(r.type,l),Ja(e,t,r,l,n);case 15:return kd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ge(r,l),jl(e,t),t.tag=1,be(r)?(e=!0,Bl(t)):e=!1,In(t,n),xd(t,r,l),Ri(t,r,l,n),Fi(null,t,r,!0,e,n);case 19:return bd(e,t,n);case 22:return Ed(e,t,n)}throw Error(_(156,t.tag))};function Ud(e,t){return gc(e,t)}function Mh(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ve(e,t,n,r){return new Mh(e,t,n,r)}function Us(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ph(e){if(typeof e=="function")return Us(e)?1:0;if(e!=null){if(e=e.$$typeof,e===us)return 11;if(e===cs)return 14}return 2}function Wt(e,t){var n=e.alternate;return n===null?(n=Ve(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ll(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")Us(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Cn:return sn(n.children,l,o,t);case as:i=8,l|=8;break;case li:return e=Ve(12,n,t,l|2),e.elementType=li,e.lanes=o,e;case oi:return e=Ve(13,n,t,l),e.elementType=oi,e.lanes=o,e;case ii:return e=Ve(19,n,t,l),e.elementType=ii,e.lanes=o,e;case ec:return So(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Xu:i=10;break e;case Ju:i=9;break e;case us:i=11;break e;case cs:i=14;break e;case Ot:i=16,r=null;break e}throw Error(_(130,e==null?e:typeof e,""))}return t=Ve(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function sn(e,t,n,r){return e=Ve(7,e,r,t),e.lanes=n,e}function So(e,t,n,r){return e=Ve(22,e,r,t),e.elementType=ec,e.lanes=n,e.stateNode={isHidden:!1},e}function ei(e,t,n){return e=Ve(6,e,null,t),e.lanes=n,e}function ti(e,t,n){return t=Ve(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Rh(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Do(0),this.expirationTimes=Do(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Do(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Ws(e,t,n,r,l,o,i,s,u){return e=new Rh(e,t,n,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ve(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},bs(o),e}function Dh(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Qd)}catch(e){console.error(e)}}Qd(),Qu.exports=$e;var Zd=Qu.exports,pu=Zd;ni.createRoot=pu.createRoot,ni.hydrateRoot=pu.hydrateRoot;const zh="0.7.0.beta.1",to=(e,t)=>{const n=t&&t.map(r=>{var f,m,p;const l=encodeURI(r.criteriaKey),o=typeof((f=r.values)==null?void 0:f.value)=="object"?encodeURIComponent(JSON.stringify((m=r.values)==null?void 0:m.value)):encodeURIComponent((p=r.values)==null?void 0:p.value),i=e.indexOf("#"),s=i===-1?"":e.substr(i);e=i===-1?e:e.substr(0,i);const u=new RegExp("([?&])"+l+"=.*?(&|$)","i"),c=e.indexOf("?")!==-1?"&":"?";return e.match(u)?e=e.replace(u,"$1"+l+"="+o+"$2"):e=e+c+l+"="+o,e+s});return t?`${n[n.length-1]}&shared=true`:""},Bh=(e,t)=>{const n=e.querySelectorAll("fieldset"),r=Array.from(n).filter(l=>l.attributes.required);t(Array.from(r))},Vh=(e,t,n,r,l,o)=>{const i=document.getElementById(`${e}`);if(!i.attributes.required){const c=o.filter(x=>x.criteriaKey===e)[0].values.value,f=x=>{for(const b in x)if(x[b]!=="")return!1;return!0},m=[...t,i],p=[...new Set(m)],g=p.filter(x=>!x.id===e),S=l.filter(x=>!x.id.includes(e));f(c)&&r(S),f(c)?n(g):n(p)}},Hh=async(e,t)=>{const n=e.map(o=>Array.from(o.elements).filter(i=>{var s,u;return((s=i.attributes["data-datetype"])==null?void 0:s.value)==="year"?!i.value||i.value&&i.value.length!==4:((u=i.attributes["data-datetype"])==null?void 0:u.value)==="day"?!i.value||i.value&&i.value==="0":!i.value})).flat(),r=e.map(o=>{if(Array.from(o.elements).every(s=>{var u;return!((u=s.attributes.type)!=null&&u.value)==="radio"}))return[];const i=Array.from(o.elements).filter(s=>{var u;return((u=s.attributes.type)==null?void 0:u.value)==="radio"});return i.length>0&&i.every(s=>!s.checked)?o:[]}).flat(),l=[n,r].flat();return t(l),l.length===0},Uh=({hasError:e,criteriaKey:t,fieldSetId:n,useFilter:r=!1})=>{const l=e.map(i=>i.id!==void 0&&n&&n.includes(i.id)||i.id!==void 0&&i.id.includes(t)).includes(!0),o=e.filter(i=>i.id!==void 0&&i.id.includes(n));return r===!0?o:l},Ie={getRequiredFieldsets:Bh,getNonRequiredFieldsets:Vh,handleCheckForRequiredValues:Hh,handleInvalid:Uh},jt=e=>({__html:e}),Wh=(e,t,n=!0)=>{const r=o=>o!=null&&typeof o=="object",l=(o,i)=>{const s=Object.keys(o),u=Object.keys(i);if(s.length!==u.length)return!1;for(const c of s){const f=o[c],m=i[c],p=r(f)&&r(m);if(p&&!l(f,m)||!p&&f!==m)return!1}return!0};if(e.dataLayer){const o={...window.dataLayer[window.dataLayer.length-1]};delete o["gtm.uniqueEventId"],delete o.eventCallback,n===!0?l(o,t)===!1&&e.dataLayer.push(t):e.dataLayer.push(t)}},Kh={intro:{event:"bf_page_change",bfData:{pageView:"bf-intro",viewTitle:null}},lifeEventSection:{event:"bf_page_change",bfData:{pageView:"bf-form",viewTitle:null}},errors:{event:"bf_form_page_submit_attempt",bfData:{errors:null,errorCount:{number:null,string:null},formSuccess:!1}},modal:{event:"bf_page_change",bfData:{pageView:"bf-form-completion-modal",viewTitle:null}},verifySelections:{event:"bf_page_change",bfData:{pageView:"bf-verify-selections",viewTitle:null}},resultsView:{event:"bf_page_change",bfData:{pageView:["bf-result-eligible-view","bf-result-not-eligible-view"],viewTitle:null,eligibilityCount:{eligibleBenefitCount:null,moreInfoBenefitCount:null,notEligibleBenefitCount:null}}},openAllBenefitAccordions:{event:"bf_open_all_accordions",bfData:{accordionsOpen:!0}},benefitAccordion:{event:"bf_accordion_open",bfData:{benefitTitle:null}},benefitLink:{event:"bf_benefit_link",bfData:{benefitTitle:null}}},se={dataLayerPush:Wh,dataLayerStructure:Kh},qh=e=>{if(/^[0-9]*$/.test(`${e.target.value}`)){if(e.target.id.includes("day"))return e.target.value.length===2?/^(0?[1-9]|[12][0-9]|3[01])$/.test(`${e.target.value}`):e.target.value.length<3;if(e.target.id.includes("year")){const t=new Date().getFullYear().toString(),n=t.substring(t.length-1);return e.target.value.length===4?new RegExp(`^(19[0-9][0-9]|20[0-1][0-9]|20[0-2][0-${n}])$`).test(`${e.target.value}`):e.target.value.length<5}}if(e.target.id.includes("month"))return!0},Gd=({hide:e})=>{const t=document.querySelector(".bf-qual-survey");t&&t.hidden===!e&&(t.hidden=e)},Qh=e=>{const t=e&&new window.Date(Date.UTC(e.year,e.month,e.day));return new Date(t.getTime()+Math.abs(t.getTimezoneOffset()*6e4))},Zh={37:1,38:1,39:1,40:1},an=e=>{e.preventDefault()},Yd=e=>{if(Zh[e.keyCode])return an(e),!1},no={passive:!1},Xd="onwheel"in document.createElement("div")?"wheel":"mousewheel",Gh=()=>{window.addEventListener("DOMMouseScroll",an,!1),window.addEventListener(Xd,an,no),window.addEventListener("touchmove",an,no),window.addEventListener("keydown",Yd,!1)},Yh=()=>{window.removeEventListener("DOMMouseScroll",an,!1),window.removeEventListener(Xd,an,no),window.removeEventListener("touchmove",an,no),window.removeEventListener("keydown",Yd,!1)},hu={disableScroll:Yh,enableScroll:Gh},Xh=e=>{const n=e.innerWidth,r=!(n<1049);return{width:n,desktop:r}},Zr=({pageView:e,notEligibleView:t})=>{const n=Xh(window).desktop;M.useEffect(()=>{const r=document.getElementById("bf-track-by-name"),l=document.querySelector('[data-testid="app"]'),o=n?"desktop":"mobile",i=`var CE_SNAPSHOT_NAME = "${e}-${l==null?void 0:l.id}-${o}";`;r!==null&&(r.innerHTML=i)},[n,t])},ft=({className:e,defaultClasses:t,utilityClasses:n})=>{const[r,l]=M.useState("");return M.useEffect(()=>{const o=[e,t&&t.join(" "),n&&n.join(" ")];l(o.filter(i=>i!==void 0).join(" "))},[e,t,n]),r},mu=e=>{e.preventDefault(),e.returnValue=""},Jh=e=>{M.useEffect(()=>{e!==!1?window.addEventListener("beforeunload",mu):window.removeEventListener("beforeunload",mu)},[e])},Gr=()=>(M.useEffect(()=>{document.getElementById("index-reset")===null&&document.body.insertAdjacentHTML("afterBegin",'')},[]),M.useRef(document.getElementById("index-reset"))),e0=({selectedValue:e,conditional:t})=>{const n=t,r=/['>', '>=', '<', '<=', '=']/g,l=n.match(r),o=n.match(/\d+/)[0],i=new RegExp(`[${l}]`,"g"),s=n.replace(/-/g,"/").replace(i,""),u=/-/,c=u.test(n)?new window.Date(s):new window.Date(new Date().getFullYear()-o,new Date().getMonth(),new Date().getDate()),f=new window.Date(Date.UTC(e.year,e.month,e.day,0,0,0));return((p,g,S)=>{const x=S,b=new window.Date(Date.UTC(g.getUTCFullYear(),g.getUTCMonth(),g.getUTCDate(),0,0,0));if(u.test(n)===!1){const h=b.getTime()-x.getTime();switch(p.length&&p.join("")){case">":return h>0;case">=":return h>=0;case"<":return h<0;case"<=":return h<=0;case"=":return+h==0;default:return!1}}else switch(p.length&&p.join("")){case">":return x.getTime()>b.getTime();case">=":return x.getTime()>=b.getTime();case"<":return x.getTime()r.fieldset.criteriaKey===t),n===void 0&&e.forEach(r=>{r.fieldset.children.forEach(l=>{l.fieldsets[0].fieldset.criteriaKey===t&&(n=l.fieldsets[0])})}),n}function n0(e){return e.slice(e.indexOf("?")+1).split("&").map(r=>{const[l,o]=r.split("=");return{criteriaKey:l,value:decodeURIComponent(o)}})}const r0=()=>/^\/es/.test(window.location.pathname)?"es":"en";async function l0(e){let t;if(e===void 0){const r=window.location.search;t=new URLSearchParams(r),t.get("mode")==="draft"&&`${t.get("mode")}`;const l=window.location.pathname;e=l.substring(l.lastIndexOf("/")+1)}let n;{const r=document.getElementById("benefit-finder");if(r!==null){const l=r.getAttribute("json-data-file-path"),o=r.getAttribute("draft-json-data-file-path");n=t.get("mode")==="draft"?o:l}}if(n!==void 0)return await fetch(n).then(l=>{if(l!=null&&l.ok)return l.json();throw new Error(l==null?void 0:l.status)}).then(l=>l!=null&&l.data?l:"Something went wrong.").catch(l=>(console.log(l),"Something went wrong."))}const o0=e=>e&&e.fieldset.inputs[0].inputCriteria.values.find(t=>t.selected),i0=e=>{var t;return e&&((t=e.fieldset)==null?void 0:t.children.map(n=>n.fieldsets[0]))},s0=e=>e&&e.flatMap((t,n)=>t.section.fieldsets.flatMap(r=>{const l=q.SelectedValue(r);return l&&[{criteriaKey:r.fieldset.inputs[0].inputCriteria.id,values:l},q.Children(r)&&q.Children(r).flatMap(o=>q.SelectedValue(o)&&{criteriaKey:o.fieldset.criteriaKey,values:q.SelectedValue(o)}).filter(o=>o!==void 0)]})).flat().filter(t=>t!==void 0),a0=(e,t)=>{const n=t&&t.map(l=>(e.forEach(o=>{const i=l.benefit.eligibility.find(s=>s.criteriaKey===o.criteriaKey);if(i!==void 0){const s=()=>{let u;return typeof o.values.value=="object"?u=i.acceptableValues.find(c=>jo.DateEligibility({selectedValue:o.values.value,conditional:c})):u=i.acceptableValues.find(c=>c===o.values.value),u};i.isEligible=!!s()}}),l));return n&&[].concat(...n)};async function u0(e,t,n,r){const l={...t};jo.FindCriteria(l.section.fieldsets,e).then(o=>{var i;if(o)return((i=o.fieldset)==null?void 0:i.inputs[0].inputCriteria.values).forEach(u=>{u.value===r?u.selected=!0:delete u.selected}),n(l)}).catch(o=>(console.log(o),"Something went wrong."))}async function c0(e,t,n,r,l){const o={...t};jo.FindCriteria(o.section.fieldsets,e).then(i=>{var s;if(i){const u=(s=i.fieldset)==null?void 0:s.inputs[0].inputCriteria.values;return l?(l.includes("day")&&(u[0].value.day=r),l.includes("month")&&(u[0].value.month=r),l.includes("year")&&(u[0].value.year=r),u[0].value={...u[0].value}):u[0].value=r,(f=>{for(const m in f)if(f[m]!==null&&f[m]!==void 0&&f[m]!=="")return!0;return!1})(u[0].value)===!1?u[0].selected=!1:u[0].selected=!0,n(o)}}).catch(i=>(console.log(i),"Something went wrong."))}const d0=(e,t,n,r)=>{const l=jo.GetQueryParams(decodeURI(e));l.filter(o=>o.criteriaKey!==r),t.forEach(o=>{o.completed=!0,l.forEach(i=>{const s=i.value.includes("{")?JSON.parse(i.value):i.value;s!==void 0&&typeof s=="object"?Br.DataDate(i.criteriaKey,o,n,s):Br.Data(i.criteriaKey,o,n,s)})})},q={Children:i0,ElegibilityByCriteria:a0,LifeEvent:l0,Language:r0,SelectedValue:o0,SelectedValueAll:s0},Br={Data:u0,DataDate:c0,DataFromParams:d0},jo={FindCriteria:t0,DateEligibility:e0,GetQueryParams:n0};var Jd={exports:{}},f0="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",p0=f0,h0=p0;function ef(){}function tf(){}tf.resetWarningCache=ef;var m0=function(){function e(r,l,o,i,s,u){if(u!==h0){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:tf,resetWarningCache:ef};return n.PropTypes=n,n};Jd.exports=m0();var Zs=Jd.exports;const y=ao(Zs),Gs=({className:e,children:t,alertFieldRef:n,heading:r,description:l,type:o,hasError:i,noBackground:s,tabIndex:u,errorCount:c,errorList:f,submissionCount:m})=>{const p=o==="error"?["bf-usa-alert","usa-alert","bf-usa-alert--error","usa-alert--error",`${i===!1?"display-none":""}`]:["bf-usa-alert","usa-alert","bf-usa-alert--info","usa-alert--info",`${s?"no-background":""}`];return M.useEffect(()=>{const{errors:g}=se.dataLayerStructure;i&&f&&se.dataLayerPush(window,{event:g.event,bfData:{errors:f.map(S=>S==null?void 0:S.id).join(","),errorCount:{number:c,string:`${c}`},formSuccess:!1}},!1)},[m]),a.jsx("div",{className:ft({className:e,defaultClasses:p}),role:"alert",ref:n,tabIndex:u||0,"aria-live":i===!0?"assertive":"polite","aria-hidden":i===void 0?!1:!i,children:t?a.jsx("div",{className:"bf-usa-alert__body usa-alert__body",children:a.jsx("div",{className:"bf-usa-alert__text usa-alert__text",children:t})}):a.jsxs("div",{className:"bf-usa-alert__body usa-alert__body",children:[a.jsxs(ee,{headingLevel:2,className:"bf-usa-alert__heading usa-alert__heading","data-testid":"bf-alert-heading",children:[r==null?void 0:r.prefix," ",c," ",r==null?void 0:r.suffix]}),a.jsx("p",{className:"bf-usa-alert__text usa-alert__text",children:l}),a.jsx("ul",{"data-testid":"bf-errors-list",children:f&&f.map(g=>a.jsx("li",{"data-testid":"bf-errors-list-item",children:a.jsx("a",{href:`#${g.id}`,children:g.getAttribute("data-errormessage")||g.id})},g.id))})]})})};Gs.propTypes={className:y.string,children:y.any,alertFieldRef:y.any,heading:y.object,description:y.string,type:y.string,hasError:y.bool,noBackground:y.bool,tabIndex:y.number,errorCount:y.number};const v0=e=>e&&typeof e=="object"&&e.nodeType===1;var g0=(e,t)=>{if(typeof e!="string")return[];(!t||!v0(t))&&(t=window.document);const n=t.querySelectorAll(e);return Array.prototype.slice.call(n)};/* object-assign (c) Sindre Sorhus @license MIT -*/var zu=Object.getOwnPropertySymbols,Gm=Object.prototype.hasOwnProperty,Ym=Object.prototype.propertyIsEnumerable;function Xm(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Jm(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(i){return t[i]});if(r.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(i){l[i]=i}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var If=Jm()?Object.assign:function(e,t){for(var n,r=Xm(e),l,i=1;i-1?e.split(Vu).map(function(o){return Af({type:o},i)}):(i.type=e,[i])};var Hu=function(e,t){var n=e[t];return delete e[t],n},av=function(t,n){const r=Object.keys(t).reduce(function(l,i){var o=sv(i,t[i]);return l.concat(o)},[]);return Af({add:function(i){r.forEach(function(o){i.addEventListener(o.type,o.delegate,o.options)})},remove:function(i){r.forEach(function(o){i.removeEventListener(o.type,o.delegate,o.options)})}},n)};const uv=If,cv=av,Wu=(...e)=>function(n=document.body){e.forEach(r=>{typeof this[r]=="function"&&this[r].call(this,n)})};var dv=(e,t)=>cv(e,uv({on:Wu("init","add"),off:Wu("teardown","remove")},t));const Ku="aria-expanded",fv="aria-controls",qu="hidden";var pv=(e,t)=>{let n=t;typeof n!="boolean"&&(n=e.getAttribute(Ku)==="false"),e.setAttribute(Ku,n);const r=e.getAttribute(fv),l=document.getElementById(r);if(!l)throw new Error(`No toggle target found with id: "${r}"`);return n?l.removeAttribute(qu):l.setAttribute(qu,""),n};function hv(e,t=window,n=document.documentElement){const r=e.getBoundingClientRect();return r.top>=0&&r.left>=0&&r.bottom<=(t.innerHeight||n.clientHeight)&&r.right<=(t.innerWidth||n.clientWidth)}var mv=hv,vv={CLICK:"click"},gv={prefix:"usa"};const Bf=Zm,yv=dv,Qu=pv,wv=mv,{CLICK:xv}=vv,{prefix:pi}=gv,hi=`.${pi}-accordion, .${pi}-accordion--bordered`,Cv=`.${pi}-banner__button`,Nr=`.${pi}-accordion__button[aria-controls]:not(${Cv})`,Zu="aria-expanded",Sv="data-allow-multiple",zf=e=>Bf(Nr,e).filter(n=>n.closest(hi)===e),Lr=(e,t)=>{const n=e.closest(hi);let r=t;if(!n)throw new Error(`${Nr} is missing outer ${hi}`);r=Qu(e,t);const l=n.hasAttribute(Sv);r&&!l&&zf(n).forEach(i=>{i!==e&&Qu(i,!1)})},Ev=e=>Lr(e,!0),kv=e=>Lr(e,!1),_v=yv({[xv]:{[Nr](){Lr(this),this.getAttribute(Zu)==="true"&&(wv(this)||this.scrollIntoView())}}},{init(e){Bf(Nr,e).forEach(t=>{const n=t.getAttribute(Zu)==="true";Lr(t,n)})},ACCORDION:hi,BUTTON:Nr,show:Ev,hide:kv,toggle:Lr,getButtons:zf});var jv=_v;const Gu=yi(jv),Uf=({id:e,heading:t,subHeading:n,children:r,isExpanded:l,hidden:i,...o})=>{k.useEffect(()=>(Gu.on(),()=>{Gu.off()}));const[s,a]=k.useState(!1),{benefitAccordion:c}=ie.dataLayerStructure,p=y=>{a(y),y===!0&&ie.dataLayerPush(window,{event:c.event,bfData:{benefitTitle:t}},!1)};k.useEffect(()=>{a(l)},[l]);const d=()=>s?u.jsx(ft,{type:"close","aria-hidden":"true"}):u.jsx(ft,{type:"open","aria-hidden":"true"}),m=y=>y.replace(/ +/g,"-").toLowerCase();return u.jsxs("div",{className:"bf-usa-accordion usa-accordion",...o,hidden:i,children:[u.jsx("h4",{className:"bf-usa-accordion__heading usa-accordion__heading",children:u.jsxs("button",{type:"button",className:"bf-usa-accordion__button usa-accordion__button","aria-expanded":s||!1,"aria-controls":e&&m(e),onClick:()=>p(!s),children:[u.jsx("span",{className:"bf-accordion-heading",children:t}),u.jsx("br",{}),u.jsx("span",{className:"bf-accordion-sub-heading",children:n}),d()]})}),u.jsx("div",{id:e&&m(e),className:"bf-usa-accordion__content usa-accordion__content usa-prose",hidden:s||!0,children:u.jsx("div",{children:r})})]})};Uf.propTypes={id:C.string,heading:C.string,subHeading:C.string,description:C.string,children:C.node};const Vf=({data:e,entryKey:t,expandAll:n,isExpandAll:r,setExpandAll:l,notEligibleView:i,ui:o})=>{const{benefitAccordion:s,benefitAccordionGroup:a}=o,{eligibleStatusLabels:c,agencyPrefix:p,visitLabel:d,unmetLabel:m,sourceIsEnglish:y}=s,{closedState:x,openState:g}=a,{benefitLink:S,openAllBenefitAccordions:f}=ie.dataLayerStructure,h=r?`${g} -`:`${x} +`,v=T=>{ie.dataLayerPush(window,{event:S.event,bfData:{benefitTitle:T}})},w=T=>{l(!T),ie.dataLayerPush(window,{event:f.event,bfData:{accordionsOpen:!T}},!1)},b=()=>n&&u.jsx(Ke,{className:"bf-expand-all","aria-label":h,outline:!0,onClick:()=>w(r),children:h}),N=({items:T})=>u.jsxs("div",{className:"bf-unmet-criteria-group",children:[u.jsx("div",{className:"bf-unmet-criteria-title",children:m}),u.jsx("ul",{className:"bf-unmet-criteria-list",children:T.map((B,D)=>{const{label:q}=B;return u.jsx("li",{className:"bf-unmet-criteria-item",children:q},`not-eligible-list-${D}`)})})]}),P=({items:T})=>u.jsxs("div",{className:"bf-unmet-criteria-group",children:[u.jsx("div",{className:"bf-unmet-criteria-title",children:c[1]}),u.jsx("ul",{className:"bf-unmet-criteria-list",children:T.map((B,D)=>{const{label:q}=B;return u.jsx("li",{className:"bf-unmet-criteria-item",children:q},`more-info-${D}`)})})]});return u.jsxs("div",{className:"bf-usa-accordion-group",children:[u.jsx(b,{}),e&&e.map((T,B)=>{const{agency:D,eligibility:q,SourceLink:de,summary:Te,title:I,SourceIsEnglish:F}=T[t],W=q.filter(M=>M.isEligible===!0),E=q.filter(M=>M.isEligible===!1),_=q.filter(M=>M.isEligible===void 0),R=W.length===q.length?c[0]:E.length===0&&_.length>0?c[1]:c[2],L=i===!1&&R!==c[0]?!0:i===!0&&R===c[0];return u.jsxs(Uf,{id:`${I}`,heading:I,subHeading:R,isExpanded:r,"data-testid":"bf-usa-accordion","data-test-accordion-title":I,hidden:L,children:[u.jsx(ee,{className:"bf-usa-detail-title",headingLevel:4,children:`${p} ${D.title}`}),u.jsx("div",{className:"bf-usa-detail-summary",dangerouslySetInnerHTML:bt(Te)}),u.jsx(Qf,{className:"bf-usa-criteria-list",data:W,initialEligibilityLength:q.length,ui:s}),E.length>0&&u.jsx(N,{items:E}),_.length>0&&u.jsx(P,{items:_}),u.jsx("div",{className:"bf-usa-accordion-group-cta-wrapper",children:u.jsxs(wa,{className:"bf-usa-link",href:de,target:"_blank",rel:"noopener noreferrer",onClick:()=>v(I),"data-testid":"bf-benefit-link",noCarrot:!0,children:[d," ",D.title," ",y&&F===!0?y:""]})})]},`${B}-${I}`)})]})};Vf.propTypes={data:C.array,entryKey:C.string,expandAll:C.bool,isExpandAll:C.bool,setExpandAll:C.func,notEligibleView:C.bool,ui:C.object};const yn={officerNavy:"#162e51",marine:"#1a4480",popBlue:"#005ea2",sky:"#d9e8f6",darkSky:"#b6dbfd",offBlack:"#1b1b1b",white:"#fff",bannerBlue:"#112f4e",grey:"#757575",mediumGrey:"#979797",darkMediumGrey:"#3d4551",baseGrey:"#dcdee0",baseLightGrey:"#f0f0f0",lightTeal:"#d2ebf1",pureBlack:"#000",electricBlue:"#0050d8",teal:"#00bde3",mediumTeal:"#ccecf2",darkTeal:"#0081a1",alertRed:"#b50909",greenCheck:"#009831"};function Ke({children:e,className:t,onClick:n,secondary:r,outline:l,disabled:i,unstyled:o,type:s,icon:a,...c}){const[p,d]=k.useState(null),m=r===!0?"secondary":l===!0?"outline":o===!0?"unstyled":null,[y,x]=k.useState(!1),[g,S]=k.useState();return k.useEffect(()=>{S(y&&r||y&&o?yn.marine:yn.popBlue)},[y]),k.useEffect(()=>{switch(m){case"secondary":d(["bf-usa-button","usa-button","bf-usa-button--secondary","usa-button--secondary"]);break;case"outline":d(["bf-usa-button","usa-button","bf-usa-button--outline","usa-button--outline"]);break;case"unstyled":d(["bf-usa-button","usa-button","bf-usa-button--unstyled","usa-button--unstyled"]);break;default:d(["bf-usa-button","usa-button"])}},[m,r,o]),u.jsxs("button",{onClick:i?null:n,type:s||"button",disabled:i,"aria-disabled":i,className:pt({className:t,defaultClasses:p}),onMouseOver:()=>x(!0),onMouseLeave:()=>x(!1),"data-testid":c["data-testid"],id:c.id,children:[a&&u.jsx(ft,{type:a,color:g,"aria-hidden":"true"}),e]})}Ke.propTypes={children:C.node,className:C.string,onClick:C.func,secondary:C.bool,disabled:C.bool,unstyled:C.bool,type:C.oneOf(["button","reset","download"]),icon:C.string};C.object,C.object;const Hf=({className:e,title:t,body:n,cta:r,href:l,noCarrot:i,carrotType:o,icon:s,...a})=>{const c=s!==void 0?["bf-card-icon"]:"",p=["add-list-reset"],d=i===!0?null:u.jsx(ft,{type:o,color:"#162E51","aria-hidden":"true"}),m=s===void 0?null:u.jsx(ft,{type:s,className:"bf-relative-icon","aria-hidden":"true"});return u.jsx("li",{className:pt({className:e,defaultClasses:c,utilityClasses:p}),...a,children:u.jsxs("a",{className:"bf-usa-card__container usa-card__container",href:l,children:[m,u.jsx("div",{className:"bf-usa-card__header usa-card__header",children:u.jsx(ee,{className:"bf-usa-card__heading usa-card__heading",headingLevel:3,children:t})}),u.jsx("div",{className:"bf-usa-card__body usa-card__body",dangerouslySetInnerHTML:bt(n)}),u.jsx("div",{className:"bf-usa-card__cta usa-card__cta",children:r}),d]})},`${t}`)};Hf.propTypes={className:C.string,title:C.string,body:C.string,href:C.string,noCarrot:C.bool,carrotType:C.string,icon:C.string};const ma=({heading:e,description:t})=>u.jsx("div",{className:"bf-chevron",children:u.jsxs("div",{className:"bf-grid-container grid-container",children:[u.jsx(ee,{className:"bf-chevron-heading",headingLevel:1,children:e}),u.jsx("div",{className:"bf-chevron-description",dangerouslySetInnerHTML:bt(t)})]})});ma.propTypes={heading:C.string,description:C.string};const Wf=({onChange:e,value:t,ui:n,parentLegend:r,id:l,invalid:i,errorMessage:o})=>{const{date:s,select:a,errorText:c}=n,{labelDay:p,labelMonth:d,labelYear:m,monthOptions:y}=s,{dateDefaultValue:x}=a,{suffix:g,prefix:S}=c,f=(v,w)=>v&&v.map(b=>b.id===w).includes(!0),h={month:o?`${o} : ${d.toLowerCase()}`:`${S} ${r==null?void 0:r.toLowerCase()} ${d.toLowerCase()} ${g}`,day:o?`${o} : ${p.toLowerCase()}`:`${S} ${r==null?void 0:r.toLowerCase()} ${p.toLowerCase()} ${g}`,year:o?`${o} : ${m.toLowerCase()}`:`${S} ${r==null?void 0:r.toLowerCase()} ${m.toLowerCase()} ${g}`};return u.jsxs(u.Fragment,{children:[u.jsxs("ul",{className:"add-list-reset",children:[f(i,`${l}_month`)&&u.jsx("li",{id:`month-error-description-${l}`,"data-testid":`month-error-description-${l}`,className:"bf-error-detail","aria-live":"assertive",children:h.month}),f(i,`${l}_day`)&&u.jsx("li",{id:`day-error-description-${l}`,"data-testid":`day-error-description-${l}`,className:"bf-error-detail","aria-live":"assertive",children:h.day}),f(i,`${l}_year`)&&u.jsx("li",{id:`year-error-description-${l}`,"data-testid":`year-error-description-${l}`,className:"bf-error-detail","aria-live":"assertive",children:h.year})]}),u.jsxs("div",{id:`bf-usa-memorable-date-${l}`,className:"bf-usa-memorable-date usa-memorable-date",children:[u.jsxs("div",{className:"bf-usa-form-group usa-form-group bf-usa-form-group--month usa-form-group--month bf-usa-form-group--select usa-form-group--select",children:[u.jsx("label",{className:"bf-usa-label usa-label",htmlFor:`${l}_month`,children:d}),u.jsx("div",{id:`${l}-month-description`,className:"usa-sr-only",children:"Select a month from the list"}),u.jsxs("select",{className:`bf-usa-select usa-select ${f(i,`${l}_month`)?"usa-input--error":""}`,id:`${l}_month`,name:`${l}_month`,"aria-describedby":`${l}-month-description`,value:t&&t.month||"",onChange:e,"aria-invalid":f(i,`${l}_month`),"data-errormessage":h.month,"aria-errormessage":`month-error-description-${l}`,"data-datetype":"month",children:[u.jsx("option",{value:"",children:x},"default"),y.map((v,w)=>u.jsx("option",{value:w,children:v.label},`${v.label}-${w}`))]})]}),u.jsxs("div",{className:"bf-usa-form-group usa-form-group bf-usa-form-group--day usa-form-group--day",children:[u.jsx("label",{className:"bf-usa-label usa-label",htmlFor:`${l}_day`,children:p}),u.jsx("div",{id:`${l}-day-description`,className:"usa-sr-only",children:"Enter two numerals for day"}),u.jsx("input",{className:`bf-usa-input usa-input ${f(i,`${l}_day`)?"usa-input--error":""}`,"aria-describedby":`${l}-day-description`,id:`${l}_day`,name:`${l}_day`,inputMode:"numeric",value:t&&t.day||"",onChange:e,"aria-invalid":f(i,`${l}_day`),"data-errormessage":h.day,"aria-errormessage":`day-error-description-${l}`,"data-datetype":"day"})]}),u.jsxs("div",{className:"bf-usa-form-group usa-form-group bf-usa-form-group--year usa-form-group--year",children:[u.jsx("label",{className:"bf-usa-label usa-label",htmlFor:`${l}_year`,children:m}),u.jsx("div",{id:`${l}-year-description`,className:"usa-sr-only",children:"Enter four numerals for year"}),u.jsx("input",{className:`bf-usa-input usa-input ${f(i,`${l}_year`)?"usa-input--error":""}`,"aria-describedby":`${l}-year-description`,id:`${l}_year`,name:`${l}_year`,inputMode:"numeric",value:t&&t.year||"",onChange:e,"aria-invalid":f(i,`${l}_year`),"data-errormessage":h.year,"aria-errormessage":`year-error-description-${l}`,"data-datetype":"year"})]})]})]})};Wf.propTypes={onChange:C.func,value:C.object,ui:C.object,id:C.string,invalid:C.oneOfType([C.bool,C.array])};const bv=({ui:e,data:t})=>{const n=k.useContext(Nt),[r,l]=k.useState(()=>di(`${window.location.origin}${n.basePath}${n.indexPath}`,t)),i=`${encodeURIComponent(r)}`,o=s=>{s.preventDefault(),l(di(`${window.location.origin}${n.basePath}${n.indexPath}`,t)),window.location=`mailto:?subject=${e==null?void 0:e.emailSubject}&body=${i}`};return u.jsx("a",{href:"",className:"bf-email-trigger bf-usa-link usa-link",onClick:s=>o(s),children:(e==null?void 0:e.emailTrigger)||"Email"})},Al=({children:e,legend:t,required:n,alertRef:r,requiredLabel:l,hidden:i,errorMessage:o,hint:s,className:a,id:c,invalid:p,ui:d})=>{const m=i!==void 0&&i?["display-none"]:"",y=[`bf-usa-fieldset usa-fieldset ${n===!0?"required-field":""} ${p===!0?"usa-input--error":""}`],x=m,{prefix:g,suffix:S}=d,h=n===!1?u.jsx(ds,{children:t}):u.jsx(u.Fragment,{children:u.jsxs(ds,{children:[t,u.jsx(qf,{requiredLabel:l})]})}),v=o?`${o}`:`${g} ${t&&t.toLowerCase().replace("?","")} ${S}`;return u.jsx("div",{className:"bf-fieldset-wrapper",children:u.jsxs("fieldset",{className:pt({className:a,defaultClasses:y,utilityClasses:x}),ref:r,required:n===!0,id:c,"data-errormessage":v,hidden:i,"aria-hidden":i,children:[t&&h,p===!0&&u.jsx("div",{id:`error-description-${c}`,"data-testid":`error-description-${c}`,className:"bf-error-detail","aria-live":"assertive",children:v}),s&&u.jsx("div",{className:"bf-hint",children:s}),e]})})};Al.propTypes={children:C.node,legend:C.string,alertRef:C.any,requiredLabel:C.object,hidden:C.bool,hint:C.string,className:C.string,invalid:C.bool,ui:C.object};function Kf({children:e}){return u.jsx("form",{className:"bf-usa-form",children:u.jsx("div",{className:"bf-grid-contianer grid-container",children:e})})}Kf.propTypes={children:C.node};const ee=({children:e,className:t,headingLevel:n,...r})=>{const l=[""],i=`h${n}`;return u.jsx(i,{className:pt({className:t,defaultClasses:l}),id:n===1?"skip-to-h1":null,...r,"aria-level":n,role:"heading",children:e})};ee.propTypes={children:C.oneOfType([C.string,C.array]),className:C.string,headingLevel:C.number};const qf=({requiredLabel:e})=>u.jsx("span",{title:"required",className:"bf-usa-hint usa-hint usa-hint--required bf-usa-hint--required bf-required required",children:`(${(e==null?void 0:e.value)||"Required"})`});qf.propTypes={requiredLabel:C.object};const Nv=()=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 44.31 44.31",children:[u.jsxs("g",{id:"Layer_1","data-name":"Layer 1",children:[u.jsxs("g",{children:[u.jsx("path",{className:"cls-1",fill:"#e8f6fb",strokeWidth:"0px",d:"M22.16,40.85c-10.33,0-18.7-8.37-18.7-18.7S11.83,3.46,22.16,3.46c7.55,0,14.06,4.48,17.01,10.93.08.18.16.37.24.55.93,2.22,1.44,4.66,1.44,7.22,0,10.33-8.37,18.7-18.7,18.7Z"}),u.jsx("path",{className:"cls-4",fill:"#e7f6fb",strokeWidth:"0px",d:"M22.16,39.34c-9.49,0-17.19-7.69-17.19-17.19S12.66,4.97,22.16,4.97c7,0,13.03,4.19,15.71,10.2.95,2.14,1.48,4.5,1.48,6.99,0,9.49-7.69,17.19-17.19,17.19Z"})]}),u.jsxs("g",{children:[u.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"22.01",cy:"3.63",r:"3.55"}),u.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"22.01",cy:"3.63",r:"2.49"})]}),u.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M40.55,12.43l-1.46.59c-2.11-3.91-5.56-6.99-9.75-8.6v1.63c3.55,1.51,6.49,4.18,8.34,7.54l-1.55.63c-.17.07-.19.29-.05.4l3.66,2.66c.14.1.33.02.36-.15l.77-4.46c.03-.18-.15-.32-.31-.25Z"}),u.jsxs("g",{children:[u.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"40.43",cy:"22.08",r:"3.55"}),u.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"40.43",cy:"22.08",r:"2.49"})]}),u.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M31.63,40.86l-.59-1.46c3.91-2.11,6.99-5.56,8.6-9.75h-1.63c-1.51,3.55-4.18,6.49-7.54,8.34l-.63-1.55c-.07-.17-.29-.19-.4-.05l-2.66,3.66c-.1.14-.02.33.15.36l4.46.77c.18.03.32-.15.25-.31Z"}),u.jsxs("g",{children:[u.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"22.01",cy:"40.53",r:"3.55"}),u.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"22.01",cy:"40.53",r:"2.49"})]}),u.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M3.48,31.73l1.46-.59c2.11,3.91,5.56,6.99,9.75,8.6v-1.63c-3.55-1.51-6.49-4.18-8.34-7.54l1.55-.63c.17-.07.19-.29.05-.4l-3.66-2.66c-.14-.1-.33-.02-.36.15l-.77,4.46c-.03.18.15.32.31.25Z"}),u.jsxs("g",{children:[u.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"3.6",cy:"22.08",r:"3.55"}),u.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"3.6",cy:"22.08",r:"2.49"})]}),u.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M12.4,3.31l.59,1.46c-3.91,2.11-6.99,5.56-8.6,9.75h1.63c1.51-3.55,4.18-6.49,7.54-8.34l.63,1.55c.07.17.29.19.4.05l2.66-3.66c.1-.14.02-.33-.15-.36l-4.46-.77c-.18-.03-.32.15-.25.31Z"}),u.jsxs("g",{children:[u.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M24.12,23.21l-.04-4.46c.16,0,.32-.02.47-.03,1.7-.13,3.11-1.33,3.52-2.97l.37-1.48c.13-.53-.19-1.06-.71-1.19-.52-.13-1.06.19-1.19.71l-.37,1.48c-.21.83-.92,1.43-1.78,1.49-.8.06-1.7.1-2.67.1-.25,0-.51,0-.77.02-2.01.12-3.72,1.49-4.24,3.42l-.64,2.32c-.14.52.17,1.06.69,1.2.09.02.17.04.26.04.43,0,.83-.29.95-.72l.64-2.32c.13-.49.41-.91.76-1.25l-.03,3.64-.98,7.25c-.08.6.34,1.15.93,1.22.05,0,.1,0,.15,0,.54,0,1.01-.4,1.08-.94l.95-7.05h.5l.95,7.05c.07.55.54.94,1.08.94.05,0,.1,0,.15,0,.6-.08,1.02-.63.93-1.22l-.97-7.25Z"}),u.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M21.74,16.72c1.2,0,2.18-.98,2.18-2.18s-.98-2.18-2.18-2.18-2.18.98-2.18,2.18c0,1.2.98,2.18,2.18,2.18Z"})]})]}),u.jsxs("g",{id:"Layer_1_copy_3","data-name":"Layer 1 copy 3",children:[u.jsxs("g",{children:[u.jsx("path",{className:"cls-5",fill:"#fff",strokeWidth:"0px",d:"M22.16,40.85c-10.33,0-18.7-8.37-18.7-18.7S11.83,3.46,22.16,3.46c7.55,0,14.06,4.48,17.01,10.93.08.18.16.37.24.55.93,2.22,1.44,4.66,1.44,7.22,0,10.33-8.37,18.7-18.7,18.7Z"}),u.jsx("path",{className:"cls-4",fill:"#e7f6fb",strokeWidth:"0px",d:"M22.16,36.47c-7.91,0-14.32-6.41-14.32-14.32s6.41-14.32,14.32-14.32c5.83,0,10.85,3.49,13.08,8.49.79,1.78,1.23,3.75,1.23,5.82,0,7.91-6.41,14.32-14.32,14.32Z"})]}),u.jsxs("g",{children:[u.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"22.01",cy:"3.63",r:"3.55"}),u.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"22.01",cy:"3.63",r:"2.49"})]}),u.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M40.55,12.43l-1.46.59c-2.11-3.91-5.56-6.99-9.75-8.6v1.63c3.55,1.51,6.49,4.18,8.34,7.54l-1.55.63c-.17.07-.19.29-.05.4l3.66,2.66c.14.1.33.02.36-.15l.77-4.46c.03-.18-.15-.32-.31-.25Z"}),u.jsxs("g",{children:[u.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"40.43",cy:"22.08",r:"3.55"}),u.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"40.43",cy:"22.08",r:"2.49"})]}),u.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M31.63,40.86l-.59-1.46c3.91-2.11,6.99-5.56,8.6-9.75h-1.63c-1.51,3.55-4.18,6.49-7.54,8.34l-.63-1.55c-.07-.17-.29-.19-.4-.05l-2.66,3.66c-.1.14-.02.33.15.36l4.46.77c.18.03.32-.15.25-.31Z"}),u.jsxs("g",{children:[u.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"22.01",cy:"40.53",r:"3.55"}),u.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"22.01",cy:"40.53",r:"2.49"})]}),u.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M3.48,31.73l1.46-.59c2.11,3.91,5.56,6.99,9.75,8.6v-1.63c-3.55-1.51-6.49-4.18-8.34-7.54l1.55-.63c.17-.07.19-.29.05-.4l-3.66-2.66c-.14-.1-.33-.02-.36.15l-.77,4.46c-.03.18.15.32.31.25Z"}),u.jsxs("g",{children:[u.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"3.6",cy:"22.08",r:"3.55"}),u.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"3.6",cy:"22.08",r:"2.49"})]}),u.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M12.4,3.31l.59,1.46c-3.91,2.11-6.99,5.56-8.6,9.75h1.63c1.51-3.55,4.18-6.49,7.54-8.34l.63,1.55c.07.17.29.19.4.05l2.66-3.66c.1-.14.02-.33-.15-.36l-4.46-.77c-.18-.03-.32.15-.25.31Z"})]}),u.jsx("g",{id:"dude",children:u.jsxs("g",{children:[u.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M24.12,23.21l-.04-4.46c.16,0,.32-.02.47-.03,1.7-.13,3.11-1.33,3.52-2.97l.37-1.48c.13-.53-.19-1.06-.71-1.19-.52-.13-1.06.19-1.19.71l-.37,1.48c-.21.83-.92,1.43-1.78,1.49-.8.06-1.7.1-2.67.1-.25,0-.51,0-.77.02-2.01.12-3.72,1.49-4.24,3.42l-.64,2.32c-.14.52.17,1.06.69,1.2.09.02.17.04.26.04.43,0,.83-.29.95-.72l.64-2.32c.13-.49.41-.91.76-1.25l-.03,3.64-.98,7.25c-.08.6.34,1.15.93,1.22.05,0,.1,0,.15,0,.54,0,1.01-.4,1.08-.94l.95-7.05h.5l.95,7.05c.07.55.54.94,1.08.94.05,0,.1,0,.15,0,.6-.08,1.02-.63.93-1.22l-.97-7.25Z"}),u.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M21.74,16.72c1.2,0,2.18-.98,2.18-2.18s-.98-2.18-2.18-2.18-2.18.98-2.18,2.18c0,1.2.98,2.18,2.18,2.18Z"})]})})]}),Lv=({color:e})=>u.jsx("svg",{className:"bf-carrot",width:"12",height:"19",viewBox:"0 0 12 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.78013 1.73698C3.33373 1.29058 2.60998 1.29059 2.16359 1.73698L1.74049 2.16007C1.29444 2.60612 1.29405 3.32919 1.73961 3.77573L6.7498 8.79686C7.19502 9.24305 7.19502 9.96544 6.7498 10.4116L1.73961 15.4328C1.29405 15.8793 1.29444 16.6024 1.7405 17.0484L2.16359 17.4715C2.60998 17.9179 3.33373 17.9179 3.78013 17.4715L10.8391 10.4125C11.2855 9.96612 11.2855 9.24237 10.8391 8.79597L3.78013 1.73698Z",fill:e||yn.officerNavy})}),Pv=({color:e})=>u.jsxs("svg",{className:"bf-carrot-solid",xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",fill:e||yn.white,children:[u.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),u.jsx("path",{d:"M7 10l5 5 5-5z"})]}),Tv=({color:e})=>u.jsxs("svg",{className:"bf-close",xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",children:[u.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),u.jsx("path",{d:"M19 13H5v-2h14v2z",fill:e||yn.black})]}),Ov=()=>u.jsxs("svg",{className:"bf-death",width:"45",height:"45",viewBox:"0 0 45 45",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.1501 6.87479C20.1501 9.34031 18.1533 11.3388 15.6903 11.3388C13.2273 11.3388 11.2309 9.34031 11.2309 6.87479C11.2309 4.40927 13.2273 2.4104 15.6903 2.4104C18.1533 2.4104 20.1501 4.40927 20.1501 6.87479ZM8.94118 13.9881C8.97531 13.7489 9.18017 13.5712 9.42182 13.5712H21.8969C22.0106 13.5712 22.1206 13.6111 22.2079 13.6839L22.6929 14.0884L28.6272 19.0387C28.7145 19.1115 28.8246 19.1514 28.9382 19.1514H37.5777C37.8151 19.1514 38.0176 19.323 38.0566 19.5572L40.1247 31.979C40.1739 32.2749 39.9457 32.5442 39.6458 32.5442H37.3595C37.0914 32.5442 36.874 32.7616 36.874 33.0297V42.1033C36.874 42.3714 36.6567 42.5888 36.3885 42.5888H32.8998C32.6316 42.5888 32.4143 42.3714 32.4143 42.1033V29.6815C32.4143 29.4134 32.6316 29.196 32.8998 29.196H34.0713C34.3713 29.196 34.5995 28.9267 34.5502 28.6307L33.9758 25.1807L33.7429 23.6286C33.7418 23.6213 33.7355 23.6158 33.728 23.6158C33.7206 23.6158 33.7143 23.6105 33.7131 23.6032L33.5969 22.9053C33.5579 22.6712 33.3553 22.4996 33.118 22.4996H25.9029C25.7879 22.4996 25.6767 22.4588 25.589 22.3844L20.5939 18.1504C20.5062 18.076 20.3949 18.0352 20.2799 18.0352H13.6883C13.4389 18.0352 13.23 18.2242 13.2052 18.4725L12.6333 24.1978C12.6047 24.4836 12.8291 24.7316 13.1164 24.7316H14.0905C14.3586 24.7316 14.576 24.949 14.576 25.2171V42.1035C14.576 42.3716 14.3586 42.589 14.0905 42.589H10.6017C10.3336 42.589 10.1162 42.3716 10.1162 42.1035V29.6817C10.1162 29.4135 9.89885 29.1962 9.63071 29.1962H7.33117C7.03575 29.1962 6.80881 28.9346 6.85053 28.6421L8.94118 13.9881ZM21.2653 25.2167C21.2653 24.9486 21.0479 24.7312 20.7798 24.7312H17.291C17.0229 24.7312 16.8055 24.9486 16.8055 25.2167V42.1031C16.8055 42.3712 17.0229 42.5886 17.291 42.5886H20.7798C21.0479 42.5886 21.2653 42.3712 21.2653 42.1031V25.2167ZM25.7247 25.2167C25.7247 24.9486 25.9421 24.7312 26.2102 24.7312H29.699C29.9671 24.7312 30.1845 24.9486 30.1845 25.2167V42.1031C30.1845 42.3712 29.9671 42.5886 29.699 42.5886H26.2102C25.9421 42.5886 25.7247 42.3712 25.7247 42.1031V25.2167ZM35.7589 12.4548C35.7589 14.9203 33.7625 16.9192 31.2995 16.9192C28.8365 16.9192 26.8397 14.9203 26.8397 12.4548C26.8397 9.98928 28.8365 7.99041 31.2995 7.99041C33.7625 7.99041 35.7589 9.98928 35.7589 12.4548Z",fill:"#E9F6FB",stroke:"#1B1B1B",strokeWidth:"2.77965"}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.1501 6.87479C20.1501 9.34031 18.1533 11.3388 15.6903 11.3388C13.2273 11.3388 11.2309 9.34031 11.2309 6.87479C11.2309 4.40927 13.2273 2.4104 15.6903 2.4104C18.1533 2.4104 20.1501 4.40927 20.1501 6.87479ZM8.94118 13.9881C8.97531 13.7489 9.18017 13.5712 9.42182 13.5712H21.8969C22.0106 13.5712 22.1206 13.6111 22.2079 13.6839L22.6929 14.0884L28.6272 19.0387C28.7145 19.1115 28.8246 19.1514 28.9382 19.1514H37.5777C37.8151 19.1514 38.0177 19.323 38.0566 19.5572L40.1247 31.979C40.1739 32.2749 39.9457 32.5442 39.6458 32.5442H37.3595C37.0914 32.5442 36.874 32.7616 36.874 33.0297V42.1033C36.874 42.3714 36.6567 42.5888 36.3885 42.5888H32.8998C32.6316 42.5888 32.4143 42.3714 32.4143 42.1033V29.6815C32.4143 29.4134 32.6316 29.196 32.8998 29.196H34.0713C34.3713 29.196 34.5995 28.9267 34.5502 28.6307L33.9758 25.1807L33.7429 23.6286C33.7418 23.6213 33.7355 23.6158 33.728 23.6158C33.7206 23.6158 33.7143 23.6105 33.7131 23.6032L33.5969 22.9053C33.5579 22.6712 33.3553 22.4996 33.118 22.4996H25.9029C25.7879 22.4996 25.6767 22.4588 25.589 22.3844L20.5939 18.1504C20.5062 18.076 20.3949 18.0352 20.2799 18.0352H13.6883C13.4389 18.0352 13.23 18.2242 13.2052 18.4725L12.6333 24.1978C12.6047 24.4836 12.8291 24.7316 13.1164 24.7316H14.0905C14.3586 24.7316 14.576 24.949 14.576 25.2171V42.1035C14.576 42.3716 14.3586 42.589 14.0905 42.589H10.6017C10.3336 42.589 10.1162 42.3716 10.1162 42.1035V29.6817C10.1162 29.4135 9.89885 29.1962 9.63071 29.1962H7.33117C7.03575 29.1962 6.80881 28.9346 6.85053 28.6421L8.94118 13.9881ZM21.2653 25.2167C21.2653 24.9486 21.0479 24.7312 20.7798 24.7312H17.291C17.0229 24.7312 16.8055 24.9486 16.8055 25.2167V42.1031C16.8055 42.3712 17.0229 42.5886 17.291 42.5886H20.7798C21.0479 42.5886 21.2653 42.3712 21.2653 42.1031V25.2167ZM25.7247 25.2167C25.7247 24.9486 25.9421 24.7312 26.2102 24.7312H29.699C29.9671 24.7312 30.1845 24.9486 30.1845 25.2167V42.1031C30.1845 42.3712 29.9671 42.5886 29.699 42.5886H26.2102C25.9421 42.5886 25.7247 42.3712 25.7247 42.1031V25.2167ZM35.7589 12.4548C35.7589 14.9203 33.7625 16.9192 31.2995 16.9192C28.8365 16.9192 26.8397 14.9203 26.8397 12.4548C26.8397 9.98928 28.8365 7.99041 31.2995 7.99041C33.7625 7.99041 35.7589 9.98928 35.7589 12.4548Z",fill:"white",stroke:"#00C1E7",strokeWidth:"0.571814"})]}),Rv=({color:e})=>u.jsx("svg",{width:"20",height:"16",viewBox:"0 0 20 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 0.000244141H2C0.9 0.000244141 0.00999999 0.900244 0.00999999 2.00024L0 14.0002C0 15.1002 0.9 16.0002 2 16.0002H18C19.1 16.0002 20 15.1002 20 14.0002V2.00024C20 0.900244 19.1 0.000244141 18 0.000244141ZM18 14.0002H2V4.00024L10 9.00024L18 4.00024V14.0002ZM10 7.00024L2 2.00024H18L10 7.00024Z",fill:e||yn.popBlue})}),Mv=()=>u.jsxs("svg",{width:"45",height:"45",viewBox:"0 0 45 45",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M29.2857 9.5335C31.4805 9.5335 33.2598 7.75908 33.2598 5.57022C33.2598 3.38136 31.4805 1.60693 29.2857 1.60693C27.0908 1.60693 25.3115 3.38136 25.3115 5.57022C25.3115 7.75908 27.0908 9.5335 29.2857 9.5335Z",fill:"#E9F6FB",stroke:"#1A1A1A",strokeWidth:"1.34304",strokeMiterlimit:"10"}),u.jsx("path",{d:"M31.1129 34.0346C31.1129 33.6064 30.7661 33.2593 30.3382 33.2593C29.9103 33.2593 29.5635 33.6064 29.5635 34.0346V42.3786C29.5635 42.8068 29.9103 43.1539 30.3382 43.1539C30.7661 43.1539 31.1129 42.8068 31.1129 42.3786V34.0346Z",fill:"#1A1A1A"}),u.jsx("path",{d:"M29.8281 42.2474V42.5131C29.8281 42.8664 30.1153 43.1528 30.4696 43.1528H35.1777C35.532 43.1528 35.8193 42.8664 35.8193 42.5131V42.2474C35.8193 41.8941 35.532 41.6076 35.1777 41.6076H30.4696C30.1153 41.6076 29.8281 41.8941 29.8281 42.2474Z",fill:"#1A1A1A"}),u.jsx("path",{d:"M19.0432 44.1969C26.0392 44.1969 31.7105 38.5411 31.7105 31.5643C31.7105 24.5875 26.0392 18.9316 19.0432 18.9316C12.0473 18.9316 6.37598 24.5875 6.37598 31.5643C6.37598 38.5411 12.0473 44.1969 19.0432 44.1969Z",fill:"#010101"}),u.jsx("path",{d:"M36.3958 22.9921L29.7469 22.4553L31.8835 14.827C32.1988 13.6938 31.6497 12.5173 30.6385 12.0077C30.5026 11.9318 30.3558 11.8667 30.1927 11.8233L21.1027 9.29139C20.7276 9.18838 20.347 9.19922 19.9936 9.29681C19.6892 9.34561 19.3956 9.46488 19.1401 9.67091L12.8934 14.6535C12.1051 15.2824 11.9801 16.4372 12.6053 17.218C13.2359 18.0041 14.3939 18.1288 15.1768 17.5053L20.0045 13.6505L21.8693 14.1709L17.857 21.7559C17.2318 22.9379 17.6885 24.4126 18.8737 25.0361L22.5488 26.9662C23.3154 27.3674 24.207 27.3186 24.9083 26.912L25.3867 27.0421C25.7673 27.5463 26.349 27.8933 27.0286 27.9475L33.1991 28.4463L32.4326 37.8801C32.3184 39.2573 33.3568 40.4772 34.7431 40.5856C36.124 40.6994 37.3472 39.6639 37.456 38.2814L38.44 26.1801C38.44 26.1313 38.44 26.0771 38.44 26.0283L38.4889 25.4319C38.5922 24.1794 37.6463 23.0734 36.3904 22.9704L36.3958 22.9921Z",fill:"#E9F6FB",stroke:"#1A1A1A",strokeWidth:"1.34304",strokeMiterlimit:"10"}),u.jsx("path",{d:"M19.0442 41.7672C24.695 41.7672 29.2758 37.1989 29.2758 31.5636C29.2758 25.9282 24.695 21.3599 19.0442 21.3599C13.3934 21.3599 8.8125 25.9282 8.8125 31.5636C8.8125 37.1989 13.3934 41.7672 19.0442 41.7672Z",fill:"#E9F6FB"}),u.jsx("path",{d:"M19.0425 42.3136C24.9965 42.3136 29.8233 37.5001 29.8233 31.5623C29.8233 25.6245 24.9965 20.811 19.0425 20.811C13.0884 20.811 8.26172 25.6245 8.26172 31.5623C8.26172 37.5001 13.0884 42.3136 19.0425 42.3136Z",stroke:"#00C0E4",strokeWidth:"1.03146",strokeMiterlimit:"10"}),u.jsx("path",{d:"M19.0426 39.4948C23.4353 39.4948 26.9963 35.9436 26.9963 31.5628C26.9963 27.1821 23.4353 23.6309 19.0426 23.6309C14.6499 23.6309 11.0889 27.1821 11.0889 31.5628C11.0889 35.9436 14.6499 39.4948 19.0426 39.4948Z",fill:"white",stroke:"#1A1A1A",strokeWidth:"1.07443",strokeMiterlimit:"10"})]}),$v=({color:e})=>u.jsx("svg",{className:"bf-checkmark--green",width:"24",height:"20",viewBox:"0 0 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 4.15417C23.9925 4.52794 23.8515 4.88618 23.6033 5.16208L12.2975 16.6522L10.1157 18.8696C9.84423 19.1219 9.49174 19.2651 9.12397 19.2727C8.7562 19.2651 8.40371 19.1219 8.13223 18.8696L5.95041 16.6522L0.396694 11.0079C0.148478 10.732 0.00748054 10.3738 0 10C0.00748054 9.62626 0.148478 9.26802 0.396694 8.99212L2.57851 6.77473C2.84999 6.52246 3.20248 6.37917 3.57025 6.37156C3.93802 6.37917 4.29051 6.52246 4.56198 6.77473L9.12397 11.4111L19.2397 1.13046C19.5111 0.878193 19.8636 0.734897 20.2314 0.727295C20.5992 0.734897 20.9517 0.878193 21.2231 1.13046L23.405 3.34785C23.8017 3.54943 24 3.75101 24 4.15417Z",fill:e||yn.greenCheck})}),Dv=()=>u.jsx("svg",{className:"bf-info",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.33594 3.66732H7.66927V5.00065H6.33594V3.66732ZM6.33594 6.33398H7.66927V10.334H6.33594V6.33398ZM7.0026 0.333984C3.3226 0.333984 0.335938 3.32065 0.335938 7.00065C0.335938 10.6807 3.3226 13.6673 7.0026 13.6673C10.6826 13.6673 13.6693 10.6807 13.6693 7.00065C13.6693 3.32065 10.6826 0.333984 7.0026 0.333984ZM7.0026 12.334C4.0626 12.334 1.66927 9.94065 1.66927 7.00065C1.66927 4.06065 4.0626 1.66732 7.0026 1.66732C9.9426 1.66732 12.3359 4.06065 12.3359 7.00065C12.3359 9.94065 9.9426 12.334 7.0026 12.334Z",fill:"#1B1B1B"})}),Iv=()=>u.jsxs("svg",{className:"bf-modal-close",xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",children:[u.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),u.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})]}),Fv=()=>u.jsxs("svg",{className:"bf-open",xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",children:[u.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),u.jsx("path",{fill:"none",d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"})]}),Av=()=>u.jsxs("svg",{width:"45",height:"45",viewBox:"0 0 45 45",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M40.2696 1.60693H6.37598V43.3926H40.2696V1.60693Z",fill:"#DFEFF4",stroke:"#191919",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M19.2757 9.08496H12.9048C12.4714 9.08496 12.1201 9.43563 12.1201 9.86819V14.6747C12.1201 15.1073 12.4714 15.4579 12.9048 15.4579H19.2757C19.7091 15.4579 20.0604 15.1073 20.0604 14.6747V9.86819C20.0604 9.43563 19.7091 9.08496 19.2757 9.08496Z",fill:"#05BBE2"}),u.jsx("path",{d:"M19.2757 19.314H12.9048C12.4714 19.314 12.1201 19.6646 12.1201 20.0972V24.9037C12.1201 25.3363 12.4714 25.6869 12.9048 25.6869H19.2757C19.7091 25.6869 20.0604 25.3363 20.0604 24.9037V20.0972C20.0604 19.6646 19.7091 19.314 19.2757 19.314Z",fill:"#05BBE2"}),u.jsx("path",{d:"M19.2757 29.5415H12.9048C12.4714 29.5415 12.1201 29.8922 12.1201 30.3247V35.1312C12.1201 35.5638 12.4714 35.9145 12.9048 35.9145H19.2757C19.7091 35.9145 20.0604 35.5638 20.0604 35.1312V30.3247C20.0604 29.8922 19.7091 29.5415 19.2757 29.5415Z",fill:"#05BBE2"}),u.jsx("path",{d:"M14.8369 11.9099L16.1581 13.2287L21.1878 9.08496",stroke:"#191919",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M23.5391 11.0723H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M23.5391 13.4648H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M23.5391 21.3071H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M23.5391 23.6904H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M23.5391 31.5381H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M23.5391 33.9214H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"})]}),Bv=({color:e})=>u.jsx("svg",{width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 14.1203C14.24 14.1203 13.56 14.4203 13.04 14.8903L5.91 10.7403C5.96 10.5103 6 10.2803 6 10.0403C6 9.80028 5.96 9.57028 5.91 9.34028L12.96 5.23028C13.5 5.73028 14.21 6.04028 15 6.04028C16.66 6.04028 18 4.70028 18 3.04028C18 1.38028 16.66 0.0402832 15 0.0402832C13.34 0.0402832 12 1.38028 12 3.04028C12 3.28028 12.04 3.51028 12.09 3.74028L5.04 7.85028C4.5 7.35028 3.79 7.04028 3 7.04028C1.34 7.04028 0 8.38028 0 10.0403C0 11.7003 1.34 13.0403 3 13.0403C3.79 13.0403 4.5 12.7303 5.04 12.2303L12.16 16.3903C12.11 16.6003 12.08 16.8203 12.08 17.0403C12.08 18.6503 13.39 19.9603 15 19.9603C16.61 19.9603 17.92 18.6503 17.92 17.0403C17.92 15.4303 16.61 14.1203 15 14.1203Z",fill:e||"#005EA2"})}),ft=({type:e,color:t,...n})=>{let r;switch(e){case"all_benefits":r=u.jsx(Nv,{});break;case"carrot-solid":r=u.jsx(Pv,{color:t});break;case"carrot":r=u.jsx(Lv,{color:t});break;case"close":r=u.jsx(Tv,{});break;case"death":r=u.jsx(Ov,{});break;case"disability":r=u.jsx(Mv,{});break;case"email":r=u.jsx(Rv,{color:t});break;case"green-check":r=u.jsx($v,{color:t});break;case"info":r=u.jsx(Dv,{color:t});break;case"open":r=u.jsx(Fv,{});break;case"modal-close":r=u.jsx(Iv,{color:t});break;case"retirement":r=u.jsx(Av,{});break;case"share":r=u.jsx(Bv,{color:t});break;default:r=null}return u.jsx("i",{...n,"data-testid":`icon-${e}`,children:r})};ft.propTypes={type:C.string,color:C.string,props:C.any};const Qf=({className:e,data:t,initialEligibilityLength:n,ui:r})=>{const{benefitSummary:l,benefitSummaryPrefix:i,benefitSummaryConjunction:o}=r,s=["bf-key-eligibility-criteria-group"];return u.jsx("div",{className:pt({className:e,defaultClasses:s}),children:t&&u.jsxs(u.Fragment,{children:[" ",u.jsxs(ee,{className:"bf-key-eligibility-criteria-heading",headingLevel:5,children:[`${l}`,u.jsx("span",{className:"bf-key-eligibility-criteria-sub-heading",children:` - ${i} ${t.length} ${o} - ${n}`})]}),u.jsx("ul",{className:"bf-key-eligibility-criteria-list",children:t.map((a,c)=>{const{criteriaKey:p,label:d}=a;return u.jsxs("li",{className:"bf-usa-list usa-list usa-list--unstyled bf-usa-list--unstyled bf-key-eligibility-criteria-list-item","data-testid":`${p}`,children:[u.jsx("div",{"aria-hidden":"true",children:u.jsx(ft,{type:"green-check","aria-hidden":"true"})}),d]},`${p}-${c}`)})})]})})};Qf.propTypes={className:C.string,data:C.array,initialEligibilityLength:C.number};const ds=({children:e})=>u.jsx("legend",{className:"bf-legend usa-legend",children:e});ds.propTypes={children:C.node};const va=({className:e,label:t,htmlFor:n})=>{const r=["bf-usa-label usa-label"];return u.jsx("label",{className:pt({className:e,defaultClasses:r}),htmlFor:n,children:t})};va.propTypes={className:C.string,label:C.string,htmlFor:C.string};var fs={exports:{}},wn={},ps={exports:{}},lt={},hs={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;/*! +*/var vu=Object.getOwnPropertySymbols,y0=Object.prototype.hasOwnProperty,w0=Object.prototype.propertyIsEnumerable;function x0(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function S0(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(r.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(o){l[o]=o}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var nf=S0()?Object.assign:function(e,t){for(var n,r=x0(e),l,o=1;o-1?e.split(yu).map(function(i){return lf({type:i},o)}):(o.type=e,[o])};var wu=function(e,t){var n=e[t];return delete e[t],n},T0=function(t,n){const r=Object.keys(t).reduce(function(l,o){var i=L0(o,t[o]);return l.concat(i)},[]);return lf({add:function(o){r.forEach(function(i){o.addEventListener(i.type,i.delegate,i.options)})},remove:function(o){r.forEach(function(i){o.removeEventListener(i.type,i.delegate,i.options)})}},n)};const O0=nf,M0=T0,xu=(...e)=>function(n=document.body){e.forEach(r=>{typeof this[r]=="function"&&this[r].call(this,n)})};var P0=(e,t)=>M0(e,O0({on:xu("init","add"),off:xu("teardown","remove")},t));const Su="aria-expanded",R0="aria-controls",Cu="hidden";var D0=(e,t)=>{let n=t;typeof n!="boolean"&&(n=e.getAttribute(Su)==="false"),e.setAttribute(Su,n);const r=e.getAttribute(R0),l=document.getElementById(r);if(!l)throw new Error(`No toggle target found with id: "${r}"`);return n?l.removeAttribute(Cu):l.setAttribute(Cu,""),n};function $0(e,t=window,n=document.documentElement){const r=e.getBoundingClientRect();return r.top>=0&&r.left>=0&&r.bottom<=(t.innerHeight||n.clientHeight)&&r.right<=(t.innerWidth||n.clientWidth)}var F0=$0,I0={CLICK:"click"},A0={prefix:"usa"};const of=g0,z0=P0,ku=D0,B0=F0,{CLICK:V0}=I0,{prefix:ro}=A0,lo=`.${ro}-accordion, .${ro}-accordion--bordered`,H0=`.${ro}-banner__button`,xr=`.${ro}-accordion__button[aria-controls]:not(${H0})`,Eu="aria-expanded",U0="data-allow-multiple",sf=e=>of(xr,e).filter(n=>n.closest(lo)===e),Sr=(e,t)=>{const n=e.closest(lo);let r=t;if(!n)throw new Error(`${xr} is missing outer ${lo}`);r=ku(e,t);const l=n.hasAttribute(U0);r&&!l&&sf(n).forEach(o=>{o!==e&&ku(o,!1)})},W0=e=>Sr(e,!0),K0=e=>Sr(e,!1),q0=z0({[V0]:{[xr](){Sr(this),this.getAttribute(Eu)==="true"&&(B0(this)||this.scrollIntoView())}}},{init(e){of(xr,e).forEach(t=>{const n=t.getAttribute(Eu)==="true";Sr(t,n)})},ACCORDION:lo,BUTTON:xr,show:W0,hide:K0,toggle:Sr,getButtons:sf});var Q0=q0;const _u=ao(Q0),af=({id:e,heading:t,subHeading:n,children:r,isExpanded:l,hidden:o,...i})=>{M.useEffect(()=>(_u.on(),()=>{_u.off()}));const[s,u]=M.useState(!1),{benefitAccordion:c}=se.dataLayerStructure,f=g=>{u(g),g===!0&&se.dataLayerPush(window,{event:c.event,bfData:{benefitTitle:t}},!1)};M.useEffect(()=>{u(l)},[l]);const m=()=>s?a.jsx(dt,{type:"close","aria-hidden":"true"}):a.jsx(dt,{type:"open","aria-hidden":"true"}),p=g=>g.replace(/ +/g,"-").toLowerCase();return a.jsxs("div",{className:"bf-usa-accordion usa-accordion",...i,hidden:o,children:[a.jsx("h4",{className:"bf-usa-accordion__heading usa-accordion__heading",children:a.jsxs("button",{type:"button",className:"bf-usa-accordion__button usa-accordion__button","aria-expanded":s||!1,"aria-controls":e&&p(e),onClick:()=>f(!s),children:[a.jsx("span",{className:"bf-accordion-heading",children:t}),a.jsx("br",{}),a.jsx("span",{className:"bf-accordion-sub-heading",children:n}),m()]})}),a.jsx("div",{id:e&&p(e),className:"bf-usa-accordion__content usa-accordion__content usa-prose",hidden:s||!0,children:a.jsx("div",{children:r})})]})};af.propTypes={id:y.string,heading:y.string,subHeading:y.string,description:y.string,children:y.node};const uf=({data:e,entryKey:t,expandAll:n,isExpandAll:r,setExpandAll:l,notEligibleView:o,ui:i})=>{const{benefitAccordion:s,benefitAccordionGroup:u}=i,{eligibleStatusLabels:c,agencyPrefix:f,visitLabel:m,unmetLabel:p,sourceIsEnglish:g}=s,{closedState:S,openState:x}=u,{benefitLink:b,openAllBenefitAccordions:h}=se.dataLayerStructure,d=r?`${x} -`:`${S} +`,v=L=>{se.dataLayerPush(window,{event:b.event,bfData:{benefitTitle:L}})},w=L=>{l(!L),se.dataLayerPush(window,{event:h.event,bfData:{accordionsOpen:!L}},!1)},E=()=>n&&a.jsx(Te,{className:"bf-expand-all","aria-label":d,outline:!0,onClick:()=>w(r),children:d}),N=({items:L})=>a.jsxs("div",{className:"bf-unmet-criteria-group",children:[a.jsx("div",{className:"bf-unmet-criteria-title",children:p}),a.jsx("ul",{className:"bf-unmet-criteria-list",children:L.map((B,R)=>{const{label:H}=B;return a.jsx("li",{className:"bf-unmet-criteria-item",children:H},`not-eligible-list-${R}`)})})]}),j=({items:L})=>a.jsxs("div",{className:"bf-unmet-criteria-group",children:[a.jsx("div",{className:"bf-unmet-criteria-title",children:c[1]}),a.jsx("ul",{className:"bf-unmet-criteria-list",children:L.map((B,R)=>{const{label:H}=B;return a.jsx("li",{className:"bf-unmet-criteria-item",children:H},`more-info-${R}`)})})]});return a.jsxs("div",{className:"bf-usa-accordion-group",children:[a.jsx(E,{}),e&&e.map((L,B)=>{const{agency:R,eligibility:H,SourceLink:ae,summary:Oe,title:D,SourceIsEnglish:F}=L[t],W=H.filter(I=>I.isEligible===!0),C=H.filter(I=>I.isEligible===!1),k=H.filter(I=>I.isEligible===void 0),O=W.length===H.length?c[0]:C.length===0&&k.length>0?c[1]:c[2],P=o===!1&&O!==c[0]?!0:o===!0&&O===c[0];return a.jsxs(af,{id:`${D}`,heading:D,subHeading:O,isExpanded:r,"data-analytics":"bf-usa-accordion","data-analytics-content":D,hidden:P,"data-testid":"benefit",children:[a.jsx(ee,{className:"bf-usa-detail-title",headingLevel:4,children:`${f} ${R.title}`}),a.jsx("div",{className:"bf-usa-detail-summary",dangerouslySetInnerHTML:jt(Oe)}),a.jsx(mf,{className:"bf-usa-criteria-list",data:W,initialEligibilityLength:H.length,ui:s}),C.length>0&&a.jsx(N,{items:C}),k.length>0&&a.jsx(j,{items:k}),a.jsx("div",{className:"bf-usa-accordion-group-cta-wrapper",children:a.jsxs(ta,{className:"bf-usa-link",href:ae,target:"_blank",rel:"noopener noreferrer",onClick:()=>v(D),"data-testid":"bf-benefit-link",noCarrot:!0,children:[m," ",R.title," ",g&&F===!0?g:""]})})]},`${B}-${D}`)})]})};uf.propTypes={data:y.array,entryKey:y.string,expandAll:y.bool,isExpandAll:y.bool,setExpandAll:y.func,notEligibleView:y.bool,ui:y.object};const mn={officerNavy:"#162e51",marine:"#1a4480",popBlue:"#005ea2",sky:"#d9e8f6",darkSky:"#b6dbfd",offBlack:"#1b1b1b",white:"#fff",bannerBlue:"#112f4e",grey:"#757575",mediumGrey:"#979797",darkMediumGrey:"#3d4551",baseGrey:"#dcdee0",baseLightGrey:"#f0f0f0",lightTeal:"#d2ebf1",pureBlack:"#000",electricBlue:"#0050d8",teal:"#00bde3",mediumTeal:"#ccecf2",darkTeal:"#0081a1",alertRed:"#b50909",greenCheck:"#009831"};function Te({children:e,className:t,onClick:n,secondary:r,outline:l,disabled:o,unstyled:i,type:s,icon:u,...c}){const[f,m]=M.useState(null),p=r===!0?"secondary":l===!0?"outline":i===!0?"unstyled":null,[g,S]=M.useState(!1),[x,b]=M.useState();return M.useEffect(()=>{b(g&&r||g&&i?mn.marine:mn.popBlue)},[g]),M.useEffect(()=>{switch(p){case"secondary":m(["bf-usa-button","usa-button","bf-usa-button--secondary","usa-button--secondary"]);break;case"outline":m(["bf-usa-button","usa-button","bf-usa-button--outline","usa-button--outline"]);break;case"unstyled":m(["bf-usa-button","usa-button","bf-usa-button--unstyled","usa-button--unstyled"]);break;default:m(["bf-usa-button","usa-button"])}},[p,r,i]),a.jsxs("button",{onClick:o?null:n,type:s||"button",disabled:o,"aria-disabled":o,className:ft({className:t,defaultClasses:f}),onMouseOver:()=>S(!0),onMouseLeave:()=>S(!1),"data-testid":c["data-testid"],id:c.id,children:[u&&a.jsx(dt,{type:u,color:x,"aria-hidden":"true"}),e]})}Te.propTypes={children:y.node,className:y.string,onClick:y.func,secondary:y.bool,disabled:y.bool,unstyled:y.bool,type:y.oneOf(["button","reset","download"]),icon:y.string};y.object,y.object;const cf=({className:e,title:t,body:n,cta:r,href:l,noCarrot:o,carrotType:i,icon:s,...u})=>{const c=s!==void 0?["bf-card-icon"]:"",f=["add-list-reset"],m=o===!0?null:a.jsx(dt,{type:i,color:"#162E51","aria-hidden":"true"}),p=s===void 0?null:a.jsx(dt,{type:s,className:"bf-relative-icon","aria-hidden":"true"});return a.jsx("li",{className:ft({className:e,defaultClasses:c,utilityClasses:f}),...u,children:a.jsxs("a",{className:"bf-usa-card__container usa-card__container",href:l,children:[p,a.jsx("div",{className:"bf-usa-card__header usa-card__header",children:a.jsx(ee,{className:"bf-usa-card__heading usa-card__heading",headingLevel:3,children:t})}),a.jsx("div",{className:"bf-usa-card__body usa-card__body",dangerouslySetInnerHTML:jt(n)}),a.jsx("div",{className:"bf-usa-card__cta usa-card__cta",children:r}),m]})},`${t}`)};cf.propTypes={className:y.string,title:y.string,body:y.string,href:y.string,noCarrot:y.bool,carrotType:y.string,icon:y.string};const Ys=({heading:e,description:t})=>a.jsx("div",{className:"bf-chevron",children:a.jsxs("div",{className:"bf-grid-container grid-container",children:[a.jsx(ee,{className:"bf-chevron-heading",headingLevel:1,children:e}),a.jsx("div",{className:"bf-chevron-description",dangerouslySetInnerHTML:jt(t)})]})});Ys.propTypes={heading:y.string,description:y.string};const df=({onChange:e,value:t,ui:n,parentLegend:r,id:l,invalid:o,errorMessage:i})=>{const{date:s,select:u,errorText:c}=n,{labelDay:f,labelMonth:m,labelYear:p,monthOptions:g}=s,{dateDefaultValue:S}=u,{suffix:x,prefix:b}=c,h=(v,w)=>v&&v.map(E=>E.id===w).includes(!0),d={month:i?`${i} : ${m.toLowerCase()}`:`${b} ${r==null?void 0:r.toLowerCase()} ${m.toLowerCase()} ${x}`,day:i?`${i} : ${f.toLowerCase()}`:`${b} ${r==null?void 0:r.toLowerCase()} ${f.toLowerCase()} ${x}`,year:i?`${i} : ${p.toLowerCase()}`:`${b} ${r==null?void 0:r.toLowerCase()} ${p.toLowerCase()} ${x}`};return a.jsxs(a.Fragment,{children:[a.jsxs("ul",{className:"add-list-reset",children:[h(o,`${l}_month`)&&a.jsx("li",{id:`month-error-description-${l}`,"data-testid":`month-error-description-${l}`,className:"bf-error-detail","aria-live":"assertive",children:d.month}),h(o,`${l}_day`)&&a.jsx("li",{id:`day-error-description-${l}`,"data-testid":`day-error-description-${l}`,className:"bf-error-detail","aria-live":"assertive",children:d.day}),h(o,`${l}_year`)&&a.jsx("li",{id:`year-error-description-${l}`,"data-testid":`year-error-description-${l}`,className:"bf-error-detail","aria-live":"assertive",children:d.year})]}),a.jsxs("div",{id:`bf-usa-memorable-date-${l}`,className:"bf-usa-memorable-date usa-memorable-date",children:[a.jsxs("div",{className:"bf-usa-form-group usa-form-group bf-usa-form-group--month usa-form-group--month bf-usa-form-group--select usa-form-group--select",children:[a.jsx("label",{className:"bf-usa-label usa-label",htmlFor:`${l}_month`,children:m}),a.jsx("div",{id:`${l}-month-description`,className:"usa-sr-only",children:"Select a month from the list"}),a.jsxs("select",{className:`bf-usa-select usa-select ${h(o,`${l}_month`)?"usa-input--error":""}`,id:`${l}_month`,name:`${l}_month`,"aria-describedby":`${l}-month-description`,value:t&&t.month||"",onChange:e,"aria-invalid":h(o,`${l}_month`),"data-errormessage":d.month,"aria-errormessage":`month-error-description-${l}`,"data-datetype":"month",children:[a.jsx("option",{value:"",children:S},"default"),g.map((v,w)=>a.jsx("option",{value:w,children:v.label},`${v.label}-${w}`))]})]}),a.jsxs("div",{className:"bf-usa-form-group usa-form-group bf-usa-form-group--day usa-form-group--day",children:[a.jsx("label",{className:"bf-usa-label usa-label",htmlFor:`${l}_day`,children:f}),a.jsx("div",{id:`${l}-day-description`,className:"usa-sr-only",children:"Enter two numerals for day"}),a.jsx("input",{className:`bf-usa-input usa-input ${h(o,`${l}_day`)?"usa-input--error":""}`,"aria-describedby":`${l}-day-description`,id:`${l}_day`,name:`${l}_day`,inputMode:"numeric",value:t&&t.day||"",onChange:e,"aria-invalid":h(o,`${l}_day`),"data-errormessage":d.day,"aria-errormessage":`day-error-description-${l}`,"data-datetype":"day"})]}),a.jsxs("div",{className:"bf-usa-form-group usa-form-group bf-usa-form-group--year usa-form-group--year",children:[a.jsx("label",{className:"bf-usa-label usa-label",htmlFor:`${l}_year`,children:p}),a.jsx("div",{id:`${l}-year-description`,className:"usa-sr-only",children:"Enter four numerals for year"}),a.jsx("input",{className:`bf-usa-input usa-input ${h(o,`${l}_year`)?"usa-input--error":""}`,"aria-describedby":`${l}-year-description`,id:`${l}_year`,name:`${l}_year`,inputMode:"numeric",value:t&&t.year||"",onChange:e,"aria-invalid":h(o,`${l}_year`),"data-errormessage":d.year,"aria-errormessage":`year-error-description-${l}`,"data-datetype":"year"})]})]})]})};df.propTypes={onChange:y.func,value:y.object,ui:y.object,id:y.string,invalid:y.oneOfType([y.bool,y.array])};const Z0=({ui:e,data:t})=>{const[n,r]=M.useState(()=>to(window.location.href,t)),l=`${encodeURIComponent(n)}`,o=i=>{i.preventDefault(),r(to(window.location.href,t)),window.location=`mailto:?subject=${e==null?void 0:e.emailSubject}&body=${l}`};return a.jsx("a",{href:"",className:"bf-email-trigger bf-usa-link usa-link",onClick:i=>o(i),children:(e==null?void 0:e.emailTrigger)||"Email"})},Tl=({children:e,legend:t,required:n,alertRef:r,requiredLabel:l,hidden:o,errorMessage:i,hint:s,className:u,id:c,invalid:f,ui:m})=>{const p=o!==void 0&&o?["display-none"]:"",g=[`bf-usa-fieldset usa-fieldset ${n===!0?"required-field":""} ${f===!0?"usa-input--error":""}`],S=p,{prefix:x,suffix:b}=m,d=n===!1?a.jsx(Zi,{children:t}):a.jsx(a.Fragment,{children:a.jsxs(Zi,{children:[t,a.jsx(pf,{requiredLabel:l})]})}),v=i?`${i}`:`${x} ${t&&t.toLowerCase().replace("?","")} ${b}`;return a.jsx("div",{className:"bf-fieldset-wrapper",children:a.jsxs("fieldset",{className:ft({className:u,defaultClasses:g,utilityClasses:S}),ref:r,required:n===!0,id:c,"data-errormessage":v,hidden:o,"aria-hidden":o,children:[t&&d,f===!0&&a.jsx("div",{id:`error-description-${c}`,"data-testid":`error-description-${c}`,className:"bf-error-detail","aria-live":"assertive",children:v}),s&&a.jsx("div",{className:"bf-hint",children:s}),e]})})};Tl.propTypes={children:y.node,legend:y.string,alertRef:y.any,requiredLabel:y.object,hidden:y.bool,hint:y.string,className:y.string,invalid:y.bool,ui:y.object};function ff({children:e}){return a.jsx("form",{className:"bf-usa-form",children:a.jsx("div",{className:"bf-grid-contianer grid-container",children:e})})}ff.propTypes={children:y.node};const ee=({children:e,className:t,headingLevel:n,...r})=>{const l=[""],o=`h${n}`;return a.jsx(o,{className:ft({className:t,defaultClasses:l}),id:n===1?"skip-to-h1":null,...r,"aria-level":n,role:"heading",children:e})};ee.propTypes={children:y.oneOfType([y.string,y.array]),className:y.string,headingLevel:y.number};const pf=({requiredLabel:e})=>a.jsx("span",{title:"required",className:"bf-usa-hint usa-hint usa-hint--required bf-usa-hint--required bf-required required",children:`(${(e==null?void 0:e.value)||"Required"})`});pf.propTypes={requiredLabel:y.object};const G0=()=>a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 44.31 44.31",children:[a.jsxs("g",{id:"Layer_1","data-name":"Layer 1",children:[a.jsxs("g",{children:[a.jsx("path",{className:"cls-1",fill:"#e8f6fb",strokeWidth:"0px",d:"M22.16,40.85c-10.33,0-18.7-8.37-18.7-18.7S11.83,3.46,22.16,3.46c7.55,0,14.06,4.48,17.01,10.93.08.18.16.37.24.55.93,2.22,1.44,4.66,1.44,7.22,0,10.33-8.37,18.7-18.7,18.7Z"}),a.jsx("path",{className:"cls-4",fill:"#e7f6fb",strokeWidth:"0px",d:"M22.16,39.34c-9.49,0-17.19-7.69-17.19-17.19S12.66,4.97,22.16,4.97c7,0,13.03,4.19,15.71,10.2.95,2.14,1.48,4.5,1.48,6.99,0,9.49-7.69,17.19-17.19,17.19Z"})]}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"22.01",cy:"3.63",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"22.01",cy:"3.63",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M40.55,12.43l-1.46.59c-2.11-3.91-5.56-6.99-9.75-8.6v1.63c3.55,1.51,6.49,4.18,8.34,7.54l-1.55.63c-.17.07-.19.29-.05.4l3.66,2.66c.14.1.33.02.36-.15l.77-4.46c.03-.18-.15-.32-.31-.25Z"}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"40.43",cy:"22.08",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"40.43",cy:"22.08",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M31.63,40.86l-.59-1.46c3.91-2.11,6.99-5.56,8.6-9.75h-1.63c-1.51,3.55-4.18,6.49-7.54,8.34l-.63-1.55c-.07-.17-.29-.19-.4-.05l-2.66,3.66c-.1.14-.02.33.15.36l4.46.77c.18.03.32-.15.25-.31Z"}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"22.01",cy:"40.53",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"22.01",cy:"40.53",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M3.48,31.73l1.46-.59c2.11,3.91,5.56,6.99,9.75,8.6v-1.63c-3.55-1.51-6.49-4.18-8.34-7.54l1.55-.63c.17-.07.19-.29.05-.4l-3.66-2.66c-.14-.1-.33-.02-.36.15l-.77,4.46c-.03.18.15.32.31.25Z"}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"3.6",cy:"22.08",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"3.6",cy:"22.08",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M12.4,3.31l.59,1.46c-3.91,2.11-6.99,5.56-8.6,9.75h1.63c1.51-3.55,4.18-6.49,7.54-8.34l.63,1.55c.07.17.29.19.4.05l2.66-3.66c.1-.14.02-.33-.15-.36l-4.46-.77c-.18-.03-.32.15-.25.31Z"}),a.jsxs("g",{children:[a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M24.12,23.21l-.04-4.46c.16,0,.32-.02.47-.03,1.7-.13,3.11-1.33,3.52-2.97l.37-1.48c.13-.53-.19-1.06-.71-1.19-.52-.13-1.06.19-1.19.71l-.37,1.48c-.21.83-.92,1.43-1.78,1.49-.8.06-1.7.1-2.67.1-.25,0-.51,0-.77.02-2.01.12-3.72,1.49-4.24,3.42l-.64,2.32c-.14.52.17,1.06.69,1.2.09.02.17.04.26.04.43,0,.83-.29.95-.72l.64-2.32c.13-.49.41-.91.76-1.25l-.03,3.64-.98,7.25c-.08.6.34,1.15.93,1.22.05,0,.1,0,.15,0,.54,0,1.01-.4,1.08-.94l.95-7.05h.5l.95,7.05c.07.55.54.94,1.08.94.05,0,.1,0,.15,0,.6-.08,1.02-.63.93-1.22l-.97-7.25Z"}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M21.74,16.72c1.2,0,2.18-.98,2.18-2.18s-.98-2.18-2.18-2.18-2.18.98-2.18,2.18c0,1.2.98,2.18,2.18,2.18Z"})]})]}),a.jsxs("g",{id:"Layer_1_copy_3","data-name":"Layer 1 copy 3",children:[a.jsxs("g",{children:[a.jsx("path",{className:"cls-5",fill:"#fff",strokeWidth:"0px",d:"M22.16,40.85c-10.33,0-18.7-8.37-18.7-18.7S11.83,3.46,22.16,3.46c7.55,0,14.06,4.48,17.01,10.93.08.18.16.37.24.55.93,2.22,1.44,4.66,1.44,7.22,0,10.33-8.37,18.7-18.7,18.7Z"}),a.jsx("path",{className:"cls-4",fill:"#e7f6fb",strokeWidth:"0px",d:"M22.16,36.47c-7.91,0-14.32-6.41-14.32-14.32s6.41-14.32,14.32-14.32c5.83,0,10.85,3.49,13.08,8.49.79,1.78,1.23,3.75,1.23,5.82,0,7.91-6.41,14.32-14.32,14.32Z"})]}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"22.01",cy:"3.63",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"22.01",cy:"3.63",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M40.55,12.43l-1.46.59c-2.11-3.91-5.56-6.99-9.75-8.6v1.63c3.55,1.51,6.49,4.18,8.34,7.54l-1.55.63c-.17.07-.19.29-.05.4l3.66,2.66c.14.1.33.02.36-.15l.77-4.46c.03-.18-.15-.32-.31-.25Z"}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"40.43",cy:"22.08",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"40.43",cy:"22.08",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M31.63,40.86l-.59-1.46c3.91-2.11,6.99-5.56,8.6-9.75h-1.63c-1.51,3.55-4.18,6.49-7.54,8.34l-.63-1.55c-.07-.17-.29-.19-.4-.05l-2.66,3.66c-.1.14-.02.33.15.36l4.46.77c.18.03.32-.15.25-.31Z"}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"22.01",cy:"40.53",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"22.01",cy:"40.53",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M3.48,31.73l1.46-.59c2.11,3.91,5.56,6.99,9.75,8.6v-1.63c-3.55-1.51-6.49-4.18-8.34-7.54l1.55-.63c.17-.07.19-.29.05-.4l-3.66-2.66c-.14-.1-.33-.02-.36.15l-.77,4.46c-.03.18.15.32.31.25Z"}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"3.6",cy:"22.08",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"3.6",cy:"22.08",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M12.4,3.31l.59,1.46c-3.91,2.11-6.99,5.56-8.6,9.75h1.63c1.51-3.55,4.18-6.49,7.54-8.34l.63,1.55c.07.17.29.19.4.05l2.66-3.66c.1-.14.02-.33-.15-.36l-4.46-.77c-.18-.03-.32.15-.25.31Z"})]}),a.jsx("g",{id:"dude",children:a.jsxs("g",{children:[a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M24.12,23.21l-.04-4.46c.16,0,.32-.02.47-.03,1.7-.13,3.11-1.33,3.52-2.97l.37-1.48c.13-.53-.19-1.06-.71-1.19-.52-.13-1.06.19-1.19.71l-.37,1.48c-.21.83-.92,1.43-1.78,1.49-.8.06-1.7.1-2.67.1-.25,0-.51,0-.77.02-2.01.12-3.72,1.49-4.24,3.42l-.64,2.32c-.14.52.17,1.06.69,1.2.09.02.17.04.26.04.43,0,.83-.29.95-.72l.64-2.32c.13-.49.41-.91.76-1.25l-.03,3.64-.98,7.25c-.08.6.34,1.15.93,1.22.05,0,.1,0,.15,0,.54,0,1.01-.4,1.08-.94l.95-7.05h.5l.95,7.05c.07.55.54.94,1.08.94.05,0,.1,0,.15,0,.6-.08,1.02-.63.93-1.22l-.97-7.25Z"}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M21.74,16.72c1.2,0,2.18-.98,2.18-2.18s-.98-2.18-2.18-2.18-2.18.98-2.18,2.18c0,1.2.98,2.18,2.18,2.18Z"})]})})]}),Y0=({color:e})=>a.jsx("svg",{className:"bf-carrot",width:"12",height:"19",viewBox:"0 0 12 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.78013 1.73698C3.33373 1.29058 2.60998 1.29059 2.16359 1.73698L1.74049 2.16007C1.29444 2.60612 1.29405 3.32919 1.73961 3.77573L6.7498 8.79686C7.19502 9.24305 7.19502 9.96544 6.7498 10.4116L1.73961 15.4328C1.29405 15.8793 1.29444 16.6024 1.7405 17.0484L2.16359 17.4715C2.60998 17.9179 3.33373 17.9179 3.78013 17.4715L10.8391 10.4125C11.2855 9.96612 11.2855 9.24237 10.8391 8.79597L3.78013 1.73698Z",fill:e||mn.officerNavy})}),X0=({color:e})=>a.jsxs("svg",{className:"bf-carrot-solid",xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",fill:e||mn.white,children:[a.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),a.jsx("path",{d:"M7 10l5 5 5-5z"})]}),J0=({color:e})=>a.jsxs("svg",{className:"bf-close",xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",children:[a.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),a.jsx("path",{d:"M19 13H5v-2h14v2z",fill:e||mn.black})]}),em=()=>a.jsxs("svg",{className:"bf-death",width:"45",height:"45",viewBox:"0 0 45 45",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.1501 6.87479C20.1501 9.34031 18.1533 11.3388 15.6903 11.3388C13.2273 11.3388 11.2309 9.34031 11.2309 6.87479C11.2309 4.40927 13.2273 2.4104 15.6903 2.4104C18.1533 2.4104 20.1501 4.40927 20.1501 6.87479ZM8.94118 13.9881C8.97531 13.7489 9.18017 13.5712 9.42182 13.5712H21.8969C22.0106 13.5712 22.1206 13.6111 22.2079 13.6839L22.6929 14.0884L28.6272 19.0387C28.7145 19.1115 28.8246 19.1514 28.9382 19.1514H37.5777C37.8151 19.1514 38.0176 19.323 38.0566 19.5572L40.1247 31.979C40.1739 32.2749 39.9457 32.5442 39.6458 32.5442H37.3595C37.0914 32.5442 36.874 32.7616 36.874 33.0297V42.1033C36.874 42.3714 36.6567 42.5888 36.3885 42.5888H32.8998C32.6316 42.5888 32.4143 42.3714 32.4143 42.1033V29.6815C32.4143 29.4134 32.6316 29.196 32.8998 29.196H34.0713C34.3713 29.196 34.5995 28.9267 34.5502 28.6307L33.9758 25.1807L33.7429 23.6286C33.7418 23.6213 33.7355 23.6158 33.728 23.6158C33.7206 23.6158 33.7143 23.6105 33.7131 23.6032L33.5969 22.9053C33.5579 22.6712 33.3553 22.4996 33.118 22.4996H25.9029C25.7879 22.4996 25.6767 22.4588 25.589 22.3844L20.5939 18.1504C20.5062 18.076 20.3949 18.0352 20.2799 18.0352H13.6883C13.4389 18.0352 13.23 18.2242 13.2052 18.4725L12.6333 24.1978C12.6047 24.4836 12.8291 24.7316 13.1164 24.7316H14.0905C14.3586 24.7316 14.576 24.949 14.576 25.2171V42.1035C14.576 42.3716 14.3586 42.589 14.0905 42.589H10.6017C10.3336 42.589 10.1162 42.3716 10.1162 42.1035V29.6817C10.1162 29.4135 9.89885 29.1962 9.63071 29.1962H7.33117C7.03575 29.1962 6.80881 28.9346 6.85053 28.6421L8.94118 13.9881ZM21.2653 25.2167C21.2653 24.9486 21.0479 24.7312 20.7798 24.7312H17.291C17.0229 24.7312 16.8055 24.9486 16.8055 25.2167V42.1031C16.8055 42.3712 17.0229 42.5886 17.291 42.5886H20.7798C21.0479 42.5886 21.2653 42.3712 21.2653 42.1031V25.2167ZM25.7247 25.2167C25.7247 24.9486 25.9421 24.7312 26.2102 24.7312H29.699C29.9671 24.7312 30.1845 24.9486 30.1845 25.2167V42.1031C30.1845 42.3712 29.9671 42.5886 29.699 42.5886H26.2102C25.9421 42.5886 25.7247 42.3712 25.7247 42.1031V25.2167ZM35.7589 12.4548C35.7589 14.9203 33.7625 16.9192 31.2995 16.9192C28.8365 16.9192 26.8397 14.9203 26.8397 12.4548C26.8397 9.98928 28.8365 7.99041 31.2995 7.99041C33.7625 7.99041 35.7589 9.98928 35.7589 12.4548Z",fill:"#E9F6FB",stroke:"#1B1B1B",strokeWidth:"2.77965"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.1501 6.87479C20.1501 9.34031 18.1533 11.3388 15.6903 11.3388C13.2273 11.3388 11.2309 9.34031 11.2309 6.87479C11.2309 4.40927 13.2273 2.4104 15.6903 2.4104C18.1533 2.4104 20.1501 4.40927 20.1501 6.87479ZM8.94118 13.9881C8.97531 13.7489 9.18017 13.5712 9.42182 13.5712H21.8969C22.0106 13.5712 22.1206 13.6111 22.2079 13.6839L22.6929 14.0884L28.6272 19.0387C28.7145 19.1115 28.8246 19.1514 28.9382 19.1514H37.5777C37.8151 19.1514 38.0177 19.323 38.0566 19.5572L40.1247 31.979C40.1739 32.2749 39.9457 32.5442 39.6458 32.5442H37.3595C37.0914 32.5442 36.874 32.7616 36.874 33.0297V42.1033C36.874 42.3714 36.6567 42.5888 36.3885 42.5888H32.8998C32.6316 42.5888 32.4143 42.3714 32.4143 42.1033V29.6815C32.4143 29.4134 32.6316 29.196 32.8998 29.196H34.0713C34.3713 29.196 34.5995 28.9267 34.5502 28.6307L33.9758 25.1807L33.7429 23.6286C33.7418 23.6213 33.7355 23.6158 33.728 23.6158C33.7206 23.6158 33.7143 23.6105 33.7131 23.6032L33.5969 22.9053C33.5579 22.6712 33.3553 22.4996 33.118 22.4996H25.9029C25.7879 22.4996 25.6767 22.4588 25.589 22.3844L20.5939 18.1504C20.5062 18.076 20.3949 18.0352 20.2799 18.0352H13.6883C13.4389 18.0352 13.23 18.2242 13.2052 18.4725L12.6333 24.1978C12.6047 24.4836 12.8291 24.7316 13.1164 24.7316H14.0905C14.3586 24.7316 14.576 24.949 14.576 25.2171V42.1035C14.576 42.3716 14.3586 42.589 14.0905 42.589H10.6017C10.3336 42.589 10.1162 42.3716 10.1162 42.1035V29.6817C10.1162 29.4135 9.89885 29.1962 9.63071 29.1962H7.33117C7.03575 29.1962 6.80881 28.9346 6.85053 28.6421L8.94118 13.9881ZM21.2653 25.2167C21.2653 24.9486 21.0479 24.7312 20.7798 24.7312H17.291C17.0229 24.7312 16.8055 24.9486 16.8055 25.2167V42.1031C16.8055 42.3712 17.0229 42.5886 17.291 42.5886H20.7798C21.0479 42.5886 21.2653 42.3712 21.2653 42.1031V25.2167ZM25.7247 25.2167C25.7247 24.9486 25.9421 24.7312 26.2102 24.7312H29.699C29.9671 24.7312 30.1845 24.9486 30.1845 25.2167V42.1031C30.1845 42.3712 29.9671 42.5886 29.699 42.5886H26.2102C25.9421 42.5886 25.7247 42.3712 25.7247 42.1031V25.2167ZM35.7589 12.4548C35.7589 14.9203 33.7625 16.9192 31.2995 16.9192C28.8365 16.9192 26.8397 14.9203 26.8397 12.4548C26.8397 9.98928 28.8365 7.99041 31.2995 7.99041C33.7625 7.99041 35.7589 9.98928 35.7589 12.4548Z",fill:"white",stroke:"#00C1E7",strokeWidth:"0.571814"})]}),tm=({color:e})=>a.jsx("svg",{width:"20",height:"16",viewBox:"0 0 20 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 0.000244141H2C0.9 0.000244141 0.00999999 0.900244 0.00999999 2.00024L0 14.0002C0 15.1002 0.9 16.0002 2 16.0002H18C19.1 16.0002 20 15.1002 20 14.0002V2.00024C20 0.900244 19.1 0.000244141 18 0.000244141ZM18 14.0002H2V4.00024L10 9.00024L18 4.00024V14.0002ZM10 7.00024L2 2.00024H18L10 7.00024Z",fill:e||mn.popBlue})}),nm=()=>a.jsxs("svg",{width:"45",height:"45",viewBox:"0 0 45 45",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("path",{d:"M29.2857 9.5335C31.4805 9.5335 33.2598 7.75908 33.2598 5.57022C33.2598 3.38136 31.4805 1.60693 29.2857 1.60693C27.0908 1.60693 25.3115 3.38136 25.3115 5.57022C25.3115 7.75908 27.0908 9.5335 29.2857 9.5335Z",fill:"#E9F6FB",stroke:"#1A1A1A",strokeWidth:"1.34304",strokeMiterlimit:"10"}),a.jsx("path",{d:"M31.1129 34.0346C31.1129 33.6064 30.7661 33.2593 30.3382 33.2593C29.9103 33.2593 29.5635 33.6064 29.5635 34.0346V42.3786C29.5635 42.8068 29.9103 43.1539 30.3382 43.1539C30.7661 43.1539 31.1129 42.8068 31.1129 42.3786V34.0346Z",fill:"#1A1A1A"}),a.jsx("path",{d:"M29.8281 42.2474V42.5131C29.8281 42.8664 30.1153 43.1528 30.4696 43.1528H35.1777C35.532 43.1528 35.8193 42.8664 35.8193 42.5131V42.2474C35.8193 41.8941 35.532 41.6076 35.1777 41.6076H30.4696C30.1153 41.6076 29.8281 41.8941 29.8281 42.2474Z",fill:"#1A1A1A"}),a.jsx("path",{d:"M19.0432 44.1969C26.0392 44.1969 31.7105 38.5411 31.7105 31.5643C31.7105 24.5875 26.0392 18.9316 19.0432 18.9316C12.0473 18.9316 6.37598 24.5875 6.37598 31.5643C6.37598 38.5411 12.0473 44.1969 19.0432 44.1969Z",fill:"#010101"}),a.jsx("path",{d:"M36.3958 22.9921L29.7469 22.4553L31.8835 14.827C32.1988 13.6938 31.6497 12.5173 30.6385 12.0077C30.5026 11.9318 30.3558 11.8667 30.1927 11.8233L21.1027 9.29139C20.7276 9.18838 20.347 9.19922 19.9936 9.29681C19.6892 9.34561 19.3956 9.46488 19.1401 9.67091L12.8934 14.6535C12.1051 15.2824 11.9801 16.4372 12.6053 17.218C13.2359 18.0041 14.3939 18.1288 15.1768 17.5053L20.0045 13.6505L21.8693 14.1709L17.857 21.7559C17.2318 22.9379 17.6885 24.4126 18.8737 25.0361L22.5488 26.9662C23.3154 27.3674 24.207 27.3186 24.9083 26.912L25.3867 27.0421C25.7673 27.5463 26.349 27.8933 27.0286 27.9475L33.1991 28.4463L32.4326 37.8801C32.3184 39.2573 33.3568 40.4772 34.7431 40.5856C36.124 40.6994 37.3472 39.6639 37.456 38.2814L38.44 26.1801C38.44 26.1313 38.44 26.0771 38.44 26.0283L38.4889 25.4319C38.5922 24.1794 37.6463 23.0734 36.3904 22.9704L36.3958 22.9921Z",fill:"#E9F6FB",stroke:"#1A1A1A",strokeWidth:"1.34304",strokeMiterlimit:"10"}),a.jsx("path",{d:"M19.0442 41.7672C24.695 41.7672 29.2758 37.1989 29.2758 31.5636C29.2758 25.9282 24.695 21.3599 19.0442 21.3599C13.3934 21.3599 8.8125 25.9282 8.8125 31.5636C8.8125 37.1989 13.3934 41.7672 19.0442 41.7672Z",fill:"#E9F6FB"}),a.jsx("path",{d:"M19.0425 42.3136C24.9965 42.3136 29.8233 37.5001 29.8233 31.5623C29.8233 25.6245 24.9965 20.811 19.0425 20.811C13.0884 20.811 8.26172 25.6245 8.26172 31.5623C8.26172 37.5001 13.0884 42.3136 19.0425 42.3136Z",stroke:"#00C0E4",strokeWidth:"1.03146",strokeMiterlimit:"10"}),a.jsx("path",{d:"M19.0426 39.4948C23.4353 39.4948 26.9963 35.9436 26.9963 31.5628C26.9963 27.1821 23.4353 23.6309 19.0426 23.6309C14.6499 23.6309 11.0889 27.1821 11.0889 31.5628C11.0889 35.9436 14.6499 39.4948 19.0426 39.4948Z",fill:"white",stroke:"#1A1A1A",strokeWidth:"1.07443",strokeMiterlimit:"10"})]}),rm=({color:e})=>a.jsx("svg",{className:"bf-checkmark--green",width:"24",height:"20",viewBox:"0 0 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 4.15417C23.9925 4.52794 23.8515 4.88618 23.6033 5.16208L12.2975 16.6522L10.1157 18.8696C9.84423 19.1219 9.49174 19.2651 9.12397 19.2727C8.7562 19.2651 8.40371 19.1219 8.13223 18.8696L5.95041 16.6522L0.396694 11.0079C0.148478 10.732 0.00748054 10.3738 0 10C0.00748054 9.62626 0.148478 9.26802 0.396694 8.99212L2.57851 6.77473C2.84999 6.52246 3.20248 6.37917 3.57025 6.37156C3.93802 6.37917 4.29051 6.52246 4.56198 6.77473L9.12397 11.4111L19.2397 1.13046C19.5111 0.878193 19.8636 0.734897 20.2314 0.727295C20.5992 0.734897 20.9517 0.878193 21.2231 1.13046L23.405 3.34785C23.8017 3.54943 24 3.75101 24 4.15417Z",fill:e||mn.greenCheck})}),lm=()=>a.jsx("svg",{className:"bf-info",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.33594 3.66732H7.66927V5.00065H6.33594V3.66732ZM6.33594 6.33398H7.66927V10.334H6.33594V6.33398ZM7.0026 0.333984C3.3226 0.333984 0.335938 3.32065 0.335938 7.00065C0.335938 10.6807 3.3226 13.6673 7.0026 13.6673C10.6826 13.6673 13.6693 10.6807 13.6693 7.00065C13.6693 3.32065 10.6826 0.333984 7.0026 0.333984ZM7.0026 12.334C4.0626 12.334 1.66927 9.94065 1.66927 7.00065C1.66927 4.06065 4.0626 1.66732 7.0026 1.66732C9.9426 1.66732 12.3359 4.06065 12.3359 7.00065C12.3359 9.94065 9.9426 12.334 7.0026 12.334Z",fill:"#1B1B1B"})}),om=()=>a.jsxs("svg",{className:"bf-modal-close",xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",children:[a.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),a.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})]}),im=()=>a.jsxs("svg",{className:"bf-open",xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",children:[a.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),a.jsx("path",{fill:"none",d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"})]}),sm=()=>a.jsxs("svg",{width:"45",height:"45",viewBox:"0 0 45 45",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("path",{d:"M40.2696 1.60693H6.37598V43.3926H40.2696V1.60693Z",fill:"#DFEFF4",stroke:"#191919",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M19.2757 9.08496H12.9048C12.4714 9.08496 12.1201 9.43563 12.1201 9.86819V14.6747C12.1201 15.1073 12.4714 15.4579 12.9048 15.4579H19.2757C19.7091 15.4579 20.0604 15.1073 20.0604 14.6747V9.86819C20.0604 9.43563 19.7091 9.08496 19.2757 9.08496Z",fill:"#05BBE2"}),a.jsx("path",{d:"M19.2757 19.314H12.9048C12.4714 19.314 12.1201 19.6646 12.1201 20.0972V24.9037C12.1201 25.3363 12.4714 25.6869 12.9048 25.6869H19.2757C19.7091 25.6869 20.0604 25.3363 20.0604 24.9037V20.0972C20.0604 19.6646 19.7091 19.314 19.2757 19.314Z",fill:"#05BBE2"}),a.jsx("path",{d:"M19.2757 29.5415H12.9048C12.4714 29.5415 12.1201 29.8922 12.1201 30.3247V35.1312C12.1201 35.5638 12.4714 35.9145 12.9048 35.9145H19.2757C19.7091 35.9145 20.0604 35.5638 20.0604 35.1312V30.3247C20.0604 29.8922 19.7091 29.5415 19.2757 29.5415Z",fill:"#05BBE2"}),a.jsx("path",{d:"M14.8369 11.9099L16.1581 13.2287L21.1878 9.08496",stroke:"#191919",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M23.5391 11.0723H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M23.5391 13.4648H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M23.5391 21.3071H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M23.5391 23.6904H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M23.5391 31.5381H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M23.5391 33.9214H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"})]}),am=({color:e})=>a.jsx("svg",{width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 14.1203C14.24 14.1203 13.56 14.4203 13.04 14.8903L5.91 10.7403C5.96 10.5103 6 10.2803 6 10.0403C6 9.80028 5.96 9.57028 5.91 9.34028L12.96 5.23028C13.5 5.73028 14.21 6.04028 15 6.04028C16.66 6.04028 18 4.70028 18 3.04028C18 1.38028 16.66 0.0402832 15 0.0402832C13.34 0.0402832 12 1.38028 12 3.04028C12 3.28028 12.04 3.51028 12.09 3.74028L5.04 7.85028C4.5 7.35028 3.79 7.04028 3 7.04028C1.34 7.04028 0 8.38028 0 10.0403C0 11.7003 1.34 13.0403 3 13.0403C3.79 13.0403 4.5 12.7303 5.04 12.2303L12.16 16.3903C12.11 16.6003 12.08 16.8203 12.08 17.0403C12.08 18.6503 13.39 19.9603 15 19.9603C16.61 19.9603 17.92 18.6503 17.92 17.0403C17.92 15.4303 16.61 14.1203 15 14.1203Z",fill:e||"#005EA2"})}),dt=({type:e,color:t,...n})=>{let r;switch(e){case"all_benefits":r=a.jsx(G0,{});break;case"carrot-solid":r=a.jsx(X0,{color:t});break;case"carrot":r=a.jsx(Y0,{color:t});break;case"close":r=a.jsx(J0,{});break;case"death":r=a.jsx(em,{});break;case"disability":r=a.jsx(nm,{});break;case"email":r=a.jsx(tm,{color:t});break;case"green-check":r=a.jsx(rm,{color:t});break;case"info":r=a.jsx(lm,{color:t});break;case"open":r=a.jsx(im,{});break;case"modal-close":r=a.jsx(om,{color:t});break;case"retirement":r=a.jsx(sm,{});break;case"share":r=a.jsx(am,{color:t});break;default:r=null}return a.jsx("i",{...n,"data-testid":`icon-${e}`,children:r})};dt.propTypes={type:y.string,color:y.string,props:y.any};const hf=({data:e,ui:t,setStep:n,step:r})=>{const{timeEstimate:l,title:o,summary:i}=e,{heading:s,timeIndicator:u,steps:c,notices:f,button:m}=t,{intro:p}=se.dataLayerStructure,g=Gr(),S=()=>{n(r+1),g.current.focus()};return Zr({pageView:p.bfData.pageView}),M.useEffect(()=>{se.dataLayerPush(window,{event:p.event,bfData:{pageView:p.bfData.pageView,viewTitle:o}})},[]),e&&a.jsxs("div",{className:"bf-intro",children:[a.jsx(Ys,{heading:o,description:i}),a.jsxs("div",{className:"bf-grid-container grid-container",children:[a.jsx(ee,{headingLevel:2,children:s}),a.jsx(If,{description:u,timeEstimate:l}),a.jsxs("div",{className:"bf-intro-process-group",children:[a.jsx("div",{className:"bf-intro-process-list",children:a.jsx(Nf,{steps:c.list,description:c.title})}),a.jsx("div",{className:"bf-line-sperator-wrapper--vertical",children:a.jsx("div",{className:"bf-line-sperator--vertical"})}),a.jsxs("div",{className:"bf-intro-process-notices",children:[a.jsx(ee,{className:"bf-intro-process-notices-heading",headingLevel:2,children:f.heading}),a.jsx(jf,{className:"bf-intro-process-notices-list",data:f.list,iconAlt:f.iconAlt})]})]}),a.jsx("div",{className:"bf-line-sperator-wrapper",children:a.jsx("div",{className:"bf-line-sperator"})}),a.jsx("div",{className:"bf-cta-wrapper",children:a.jsx(Te,{secondary:!0,onClick:()=>S(),children:m})})]})]})};hf.propTypes={data:y.object,ui:y.object,setStep:y.func,step:y.number};const mf=({className:e,data:t,initialEligibilityLength:n,ui:r})=>{const{benefitSummary:l,benefitSummaryPrefix:o,benefitSummaryConjunction:i}=r,s=["bf-key-eligibility-criteria-group"];return a.jsx("div",{className:ft({className:e,defaultClasses:s}),children:t&&a.jsxs(a.Fragment,{children:[" ",a.jsxs(ee,{className:"bf-key-eligibility-criteria-heading",headingLevel:5,children:[`${l}`,a.jsx("span",{className:"bf-key-eligibility-criteria-sub-heading",children:` - ${o} ${t.length} ${i} + ${n}`})]}),a.jsx("ul",{className:"bf-key-eligibility-criteria-list",children:t.map((u,c)=>{const{criteriaKey:f,label:m}=u;return a.jsxs("li",{className:"bf-usa-list usa-list usa-list--unstyled bf-usa-list--unstyled bf-key-eligibility-criteria-list-item","data-testid":`${f}`,children:[a.jsx("div",{"aria-hidden":"true",children:a.jsx(dt,{type:"green-check","aria-hidden":"true"})}),m]},`${f}-${c}`)})})]})})};mf.propTypes={className:y.string,data:y.array,initialEligibilityLength:y.number};const Zi=({children:e})=>a.jsx("legend",{className:"bf-legend usa-legend",children:e});Zi.propTypes={children:y.node};const Xs=({className:e,label:t,htmlFor:n})=>{const r=["bf-usa-label usa-label"];return a.jsx("label",{className:ft({className:e,defaultClasses:r}),htmlFor:n,children:t})};Xs.propTypes={className:y.string,label:y.string,htmlFor:y.string};const vf=({step:e,setStep:t,data:n,handleData:r,setStepData:l,setVerifyStep:o,setViewResults:i,ui:s,modalOpen:u,setModalOpen:c})=>{const[f,m]=M.useState(!1),[p,g]=M.useState(()=>n&&n[e-1]),[S,x]=M.useState([]),[b,h]=M.useState([]),[d,v]=M.useState(()=>q.SelectedValueAll(n).length>0),[w,E]=M.useState(0),{lifeEventSection:N}=se.dataLayerStructure;Jh(d);const j=Gr();M.useEffect(()=>{var A;(A=j.current)==null||A.focus()},[j]);const{stepIndicator:L,buttonGroup:B,reviewSelectionModal:R,requiredLabel:H,sectionHeadings:ae}=s,Oe=()=>{n[e-1]={...p},r([...n])},D=M.useRef(null),F=()=>(D.current.classList.remove("display-none"),D.current.focus(),E(w+1),p.completed=!1,window.scrollTo(0,0),!1),W=()=>(D.current.classList.add("display-none"),p.completed=!0,Oe(),x([]),!0),C=()=>Ie.handleCheckForRequiredValues(S,h).then(A=>A===!0?W():F()),k=A=>{C(),Ie.handleCheckForRequiredValues(S,h).then(ne=>{if(ne===!0){const{errors:oe}=se.dataLayerStructure;se.dataLayerPush(window,{event:oe.event,bfData:{errors:"",errorCount:{number:0,string:"0"},formSuccess:!0}}),t(e+A),l(A),j&&j.current.focus()}})},O=A=>{t(e+A),j.current.focus()},P=(A,ne)=>{window.history.replaceState({},"",window.location.pathname),Br.Data(ne,p,g,A.target.value),b.length>0&&Ie.handleCheckForRequiredValues(S,h),v(q.SelectedValueAll(n).length>0)},I=(A,ne)=>{window.history.replaceState({},"",window.location.pathname);async function oe(){qh(A)===!0&&(Br.DataDate(ne,p,g,A.target.value,A.target.id),b.length>0&&Ie.handleCheckForRequiredValues(S,h))}oe().then(()=>{Ie.getNonRequiredFieldsets(ne,S,x,h,b,q.SelectedValueAll(n)),v(q.SelectedValueAll(n).length>0)})};return M.useEffect(()=>{n&&e===n.length?m(!0):m(!1)},[p,n,f,e]),M.useEffect(()=>{window.scrollTo(0,0),Ie.getRequiredFieldsets(document,x)},[]),M.useEffect(()=>{u===!1&&se.dataLayerPush(window,{event:N.event,bfData:{pageView:`${N.bfData.pageView}-${e}`,viewTitle:p.section.heading}})},[]),n.length>0&&u===!1&&Zr({pageView:`${N==null?void 0:N.bfData.pageView}-${e}`}),M.useEffect(()=>{Gd({hide:!0})},[]),n&&a.jsxs(a.Fragment,{children:[a.jsx(ee,{className:"bf-section-heading",headingLevel:1,children:e===n.length?`${ae.final}`:e-1===0?`${ae.start}`:`${ae.continue}`}),a.jsx("div",{className:"bf-section-wrapper",children:a.jsxs("div",{className:"bf-section-info",children:[a.jsx($f,{current:e-1,setCurrent:t,data:n,backLinkLabel:L.StepBackButton},`step-indicator-${ae}`),p&&a.jsxs("div",{id:"bf-section",children:[a.jsx(Gs,{alertFieldRef:D,heading:s.alertBanner.heading,description:s.alertBanner.description,type:"error",hasError:b.length>0,errorCount:b.length,errorList:b,submissionCount:w}),a.jsxs("div",{className:"bf-form-heading-group",children:[a.jsx(ee,{className:"bf-form-heading bf-usa-form-heading",headingLevel:2,children:p.section.heading}),a.jsx("div",{className:"bf-section-sub-heading",dangerouslySetInnerHTML:jt(p.section.description)})]}),p.section.fieldsets.map((A,ne)=>{const oe=({item:$,children:qe,index:pt,hidden:Xt})=>{var wn,Jr;return $.fieldset.inputs[0].inputCriteria.type==="Select"?a.jsxs(M.Fragment,{children:[a.jsx(Tl,{legend:$.fieldset.legend,errorMessage:$.fieldset.errorMessage,hint:$.fieldset.hint,required:$.fieldset.required,requiredLabel:H,hidden:Xt&&Xt,id:$.fieldset.criteriaKey,invalid:Ie.handleInvalid({hasError:b,criteriaKey:(wn=$.fieldset)==null?void 0:wn.criteriaKey}),ui:s.errorText,children:$.fieldset.inputs.map((bt,ht)=>{var la;const Qe=`${$.fieldset.criteriaKey}_${ht}`,Lt=bt.inputCriteria.values,mt=Lt.find(Lo=>Lo.selected!==void 0),{select:bo,errorText:fp}=s;return a.jsx("div",{children:a.jsx(Ff,{ui:{select:bo,errorText:fp},htmlFor:Qe,options:Lt,selected:mt==null?void 0:mt.value,onChange:Lo=>P(Lo,$.fieldset.criteriaKey),invalid:Ie.handleInvalid({hasError:b,criteriaKey:(la=$.fieldset)==null?void 0:la.criteriaKey,fieldSetId:Qe}),legend:$.fieldset.legend,errorMessage:$.fieldset.errorMessage},Qe)},Qe)})},`select-${$.fieldset.criteriaKey}-${pt}`),qe||null]},`select-${$.fieldset.criteriaKey}+${pt}`):$.fieldset.inputs[0].inputCriteria.type==="Radio"?a.jsxs(M.Fragment,{children:[$.fieldset.inputs.map((bt,ht)=>{var Lt,mt;const Qe=`${$.fieldset.criteriaKey}_${ht}`;return a.jsx(Tl,{id:$.fieldset.criteriaKey,legend:$.fieldset.legend,errorMessage:$.fieldset.errorMessage,hint:$.fieldset.hint,required:$.fieldset.required,requiredLabel:H,hidden:Xt&&Xt,ui:s.errorText,invalid:Ie.handleInvalid({hasError:b,criteriaKey:(Lt=$.fieldset)==null?void 0:Lt.criteriaKey}),children:a.jsx(Lf,{invalid:Ie.handleInvalid({hasError:b,criteriaKey:(mt=$.fieldset)==null?void 0:mt.criteriaKey}),fieldSetId:Qe,handleChanged:P,values:bt.inputCriteria.values,criteriaKey:$.fieldset.criteriaKey,errorMessage:$.fieldset.errorMessage,legend:$.fieldset.legend,ui:s.errorText},Qe)},`radio-${$.fieldset.criteriaKey}-${ht}`)}),qe||null]},`radio-${$.fieldset.criteriaKey}+${pt}`):$.fieldset.inputs[0].inputCriteria.type==="Date"?a.jsxs(M.Fragment,{children:[a.jsx(Tl,{legend:$.fieldset.legend,errorMessage:$.fieldset.errorMessage,hint:$.fieldset.hint,required:$.fieldset.required,requiredLabel:H,hidden:Xt&&Xt,id:$.fieldset.criteriaKey,invalid:Ie.handleInvalid({hasError:b,criteriaKey:(Jr=$.fieldset)==null?void 0:Jr.criteriaKey}),ui:s.errorText,children:$.fieldset.inputs.map((bt,ht)=>{var Lt,mt;const Qe=`${$.fieldset.criteriaKey}_${ht}`;return a.jsx("div",{children:a.jsx(df,{value:(Lt=bt.inputCriteria.values[0])==null?void 0:Lt.value,onChange:bo=>I(bo,$.fieldset.criteriaKey),ui:s,errorMessage:$.fieldset.errorMessage,parentLegend:$.fieldset.legend,id:Qe,invalid:Ie.handleInvalid({hasError:b,criteriaKey:(mt=$.fieldset)==null?void 0:mt.criteriaKey,fieldSetId:Qe,useFilter:!0})})},Qe)})},`date-${$.fieldset.criteriaKey}-${pt}`),qe||null]},`date-${$.fieldset.criteriaKey}+${pt}`):null},Yt=({item:$,i:qe})=>oe({item:$,index:qe}),Ke=$=>{const qe=q.SelectedValue($);return(qe==null?void 0:qe.value)!==$.fieldset.inputs[0].inputCriteria.childDependencyOption},Nt=({item:$,i:qe})=>oe({item:$,index:qe,children:$.fieldset.children.map((pt,Xt)=>pt.fieldsets.length&&pt.fieldsets.map((wn,Jr)=>{const bt=wn&&q.SelectedValue(wn),ht=Ke($);return ht===!0&&bt!==void 0&&delete bt.selected,oe({item:wn,index:Jr,hidden:ht})}))});return A.fieldset.children.length>0?Nt({item:A,i:ne}):Yt({item:A,i:ne})})]}),a.jsxs("div",{className:"bf-section-nav-btn-group",children:[a.jsx(Te,{outline:!0,onClick:()=>O(-1),children:B[0].value}),f===!1?a.jsx(Te,{secondary:!0,onClick:()=>k(1),children:B[1].value}):a.jsx(_f,{id:"nav-modal",dataLayerValue:{viewTitle:p.section.heading},modalHeading:R.heading,navItemOneLabel:R.buttonGroup[0].value,navItemOneFunction:o,navItemTwoLabel:R.buttonGroup[1].value,navItemTwoFunction:i,triggerLabel:B[1].value,handleCheckRequriedFields:C,modalOpen:u,setModalOpen:c,completed:p.completed,alertElement:D})]})]})})]})};vf.propTypes={props:y.any,step:y.number,setStep:y.func,data:y.array,setStepData:y.func,setVerifyStep:y.func,setViewResults:y.func,ui:y.object};var Gi={exports:{}},vn={},Yi={exports:{}},lt={},Xi={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;/*! * Adapted from jQuery UI core * * http://jqueryui.com @@ -83,7 +56,7 @@ object-assign Copyright (c) 2015 Jed Watson. Based on code that is Copyright 2013-2015, Facebook, Inc. All rights reserved. -*/(function(e){(function(){var t=!!(typeof window<"u"&&window.document&&window.document.createElement),n={canUseDOM:t,canUseWorkers:typeof Worker<"u",canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen};e.exports?e.exports=n:window.ExecutionEnvironment=n})()})(Gf);var eg=Gf.exports;Object.defineProperty(nt,"__esModule",{value:!0});nt.canUseDOM=nt.SafeNodeList=nt.SafeHTMLCollection=void 0;var tg=eg,ng=rg(tg);function rg(e){return e&&e.__esModule?e:{default:e}}var Ai=ng.default,lg=Ai.canUseDOM?window.HTMLElement:{};nt.SafeHTMLCollection=Ai.canUseDOM?window.HTMLCollection:{};nt.SafeNodeList=Ai.canUseDOM?window.NodeList:{};nt.canUseDOM=Ai.canUseDOM;nt.default=lg;Object.defineProperty(it,"__esModule",{value:!0});it.resetState=ug;it.log=cg;it.assertNodeList=Yf;it.setElement=dg;it.validateElement=ga;it.hide=fg;it.show=pg;it.documentNotReadyOrSSRTesting=hg;var ig=Jv,og=ag(ig),sg=nt;function ag(e){return e&&e.__esModule?e:{default:e}}var Ae=null;function ug(){Ae&&(Ae.removeAttribute?Ae.removeAttribute("aria-hidden"):Ae.length!=null?Ae.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(Ae).forEach(function(e){return e.removeAttribute("aria-hidden")})),Ae=null}function cg(){}function Yf(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function dg(e){var t=e;if(typeof t=="string"&&sg.canUseDOM){var n=document.querySelectorAll(t);Yf(n,t),t=n}return Ae=t||Ae,Ae}function ga(e){var t=e||Ae;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,og.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}function fg(e){var t=!0,n=!1,r=void 0;try{for(var l=ga(e)[Symbol.iterator](),i;!(t=(i=l.next()).done);t=!0){var o=i.value;o.setAttribute("aria-hidden","true")}}catch(s){n=!0,r=s}finally{try{!t&&l.return&&l.return()}finally{if(n)throw r}}}function pg(e){var t=!0,n=!1,r=void 0;try{for(var l=ga(e)[Symbol.iterator](),i;!(t=(i=l.next()).done);t=!0){var o=i.value;o.removeAttribute("aria-hidden")}}catch(s){n=!0,r=s}finally{try{!t&&l.return&&l.return()}finally{if(n)throw r}}}function hg(){Ae=null}var lr={};Object.defineProperty(lr,"__esModule",{value:!0});lr.resetState=mg;lr.log=vg;var Pr={},Tr={};function Yu(e,t){e.classList.remove(t)}function mg(){var e=document.getElementsByTagName("html")[0];for(var t in Pr)Yu(e,Pr[t]);var n=document.body;for(var r in Tr)Yu(n,Tr[r]);Pr={},Tr={}}function vg(){}var gg=function(t,n){return t[n]||(t[n]=0),t[n]+=1,n},yg=function(t,n){return t[n]&&(t[n]-=1),n},wg=function(t,n,r){r.forEach(function(l){gg(n,l),t.add(l)})},xg=function(t,n,r){r.forEach(function(l){yg(n,l),n[l]===0&&t.remove(l)})};lr.add=function(t,n){return wg(t.classList,t.nodeName.toLowerCase()=="html"?Pr:Tr,n.split(" "))};lr.remove=function(t,n){return xg(t.classList,t.nodeName.toLowerCase()=="html"?Pr:Tr,n.split(" "))};var ir={};Object.defineProperty(ir,"__esModule",{value:!0});ir.log=Sg;ir.resetState=Eg;function Cg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Xf=function e(){var t=this;Cg(this,e),this.register=function(n){t.openInstances.indexOf(n)===-1&&(t.openInstances.push(n),t.emit("register"))},this.deregister=function(n){var r=t.openInstances.indexOf(n);r!==-1&&(t.openInstances.splice(r,1),t.emit("deregister"))},this.subscribe=function(n){t.subscribers.push(n)},this.emit=function(n){t.subscribers.forEach(function(r){return r(n,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},mi=new Xf;function Sg(){console.log("portalOpenInstances ----------"),console.log(mi.openInstances.length),mi.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")}function Eg(){mi=new Xf}ir.default=mi;var ya={};Object.defineProperty(ya,"__esModule",{value:!0});ya.resetState=bg;ya.log=Ng;var kg=ir,_g=jg(kg);function jg(e){return e&&e.__esModule?e:{default:e}}var ye=void 0,Ye=void 0,fn=[];function bg(){for(var e=[ye,Ye],t=0;t0?(document.body.firstChild!==ye&&document.body.insertBefore(ye,document.body.firstChild),document.body.lastChild!==Ye&&document.body.appendChild(Ye)):(ye.parentElement&&ye.parentElement.removeChild(ye),Ye.parentElement&&Ye.parentElement.removeChild(Ye))}_g.default.subscribe(Lg);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(I){for(var F=1;F0&&(de-=1,de===0&&y.show(R)),E.props.shouldFocusAfterRender&&(E.props.shouldReturnFocusAfterClose?(c.returnFocus(E.props.preventScroll),c.teardownScopedFocus()):c.popWithoutFocus()),E.props.onAfterClose&&E.props.onAfterClose(),v.default.deregister(E)},E.open=function(){E.beforeOpen(),E.state.afterOpen&&E.state.beforeClose?(clearTimeout(E.closeTimer),E.setState({beforeClose:!1})):(E.props.shouldFocusAfterRender&&(c.setupScopedFocus(E.node),c.markForFocusLater()),E.setState({isOpen:!0},function(){E.openAnimationFrame=requestAnimationFrame(function(){E.setState({afterOpen:!0}),E.props.isOpen&&E.props.onAfterOpen&&E.props.onAfterOpen({overlayEl:E.overlay,contentEl:E.content})})}))},E.close=function(){E.props.closeTimeoutMS>0?E.closeWithTimeout():E.closeWithoutTimeout()},E.focusContent=function(){return E.content&&!E.contentHasFocus()&&E.content.focus({preventScroll:!0})},E.closeWithTimeout=function(){var _=Date.now()+E.props.closeTimeoutMS;E.setState({beforeClose:!0,closesAt:_},function(){E.closeTimer=setTimeout(E.closeWithoutTimeout,E.state.closesAt-Date.now())})},E.closeWithoutTimeout=function(){E.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},E.afterClose)},E.handleKeyDown=function(_){D(_)&&(0,d.default)(E.content,_),E.props.shouldCloseOnEsc&&q(_)&&(_.stopPropagation(),E.requestClose(_))},E.handleOverlayOnClick=function(_){E.shouldClose===null&&(E.shouldClose=!0),E.shouldClose&&E.props.shouldCloseOnOverlayClick&&(E.ownerHandlesClose()?E.requestClose(_):E.focusContent()),E.shouldClose=null},E.handleContentOnMouseUp=function(){E.shouldClose=!1},E.handleOverlayOnMouseDown=function(_){!E.props.shouldCloseOnOverlayClick&&_.target==E.overlay&&_.preventDefault()},E.handleContentOnClick=function(){E.shouldClose=!1},E.handleContentOnMouseDown=function(){E.shouldClose=!1},E.requestClose=function(_){return E.ownerHandlesClose()&&E.props.onRequestClose(_)},E.ownerHandlesClose=function(){return E.props.onRequestClose},E.shouldBeClosed=function(){return!E.state.isOpen&&!E.state.beforeClose},E.contentHasFocus=function(){return document.activeElement===E.content||E.content.contains(document.activeElement)},E.buildClassName=function(_,R){var L=(typeof R>"u"?"undefined":r(R))==="object"?R:{base:B[_],afterOpen:B[_]+"--after-open",beforeClose:B[_]+"--before-close"},M=L.base;return E.state.afterOpen&&(M=M+" "+L.afterOpen),E.state.beforeClose&&(M=M+" "+L.beforeClose),typeof R=="string"&&R?M+" "+R:M},E.attributesFromObject=function(_,R){return Object.keys(R).reduce(function(L,M){return L[_+"-"+M]=R[M],L},{})},E.state={afterOpen:!1,beforeClose:!1},E.shouldClose=null,E.moveFromContentToOverlay=null,E}return l(F,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(E,_){this.props.isOpen&&!E.isOpen?this.open():!this.props.isOpen&&E.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!_.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var E=this.props,_=E.appElement,R=E.ariaHideApp,L=E.htmlOpenClassName,M=E.bodyOpenClassName,z=E.parentSelector,fe=z&&z().ownerDocument||document;M&&g.add(fe.body,M),L&&g.add(fe.getElementsByTagName("html")[0],L),R&&(de+=1,y.hide(_)),v.default.register(this)}},{key:"render",value:function(){var E=this.props,_=E.id,R=E.className,L=E.overlayClassName,M=E.defaultStyles,z=E.children,fe=R?{}:M.content,_e=L?{}:M.overlay;if(this.shouldBeClosed())return null;var Jt={ref:this.setOverlayRef,className:this.buildClassName("overlay",L),style:n({},_e,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},ot=n({id:_,ref:this.setContentRef,style:n({},fe,this.props.style.content),className:this.buildClassName("content",R),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",n({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),$=this.props.contentElement(ot,z);return this.props.overlayElement(Jt,$)}}]),F}(i.Component);Te.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},Te.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(f.default),s.default.instanceOf(S.SafeHTMLCollection),s.default.instanceOf(S.SafeNodeList),s.default.arrayOf(s.default.instanceOf(f.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=Te,e.exports=t.default})(ps,ps.exports);var Pg=ps.exports;function Jf(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function ep(e){function t(n){var r=this.constructor.getDerivedStateFromProps(e,n);return r??null}this.setState(t.bind(this))}function tp(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}Jf.__suppressDeprecationWarning=!0;ep.__suppressDeprecationWarning=!0;tp.__suppressDeprecationWarning=!0;function Tg(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var n=null,r=null,l=null;if(typeof t.componentWillMount=="function"?n="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(n="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?l="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(l="UNSAFE_componentWillUpdate"),n!==null||r!==null||l!==null){var i=e.displayName||e.name,o=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. +*/(function(e){(function(){var t=!!(typeof window<"u"&&window.document&&window.document.createElement),n={canUseDOM:t,canUseWorkers:typeof Worker<"u",canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen};e.exports?e.exports=n:window.ExecutionEnvironment=n})()})(yf);var Cm=yf.exports;Object.defineProperty(nt,"__esModule",{value:!0});nt.canUseDOM=nt.SafeNodeList=nt.SafeHTMLCollection=void 0;var km=Cm,Em=_m(km);function _m(e){return e&&e.__esModule?e:{default:e}}var No=Em.default,jm=No.canUseDOM?window.HTMLElement:{};nt.SafeHTMLCollection=No.canUseDOM?window.HTMLCollection:{};nt.SafeNodeList=No.canUseDOM?window.NodeList:{};nt.canUseDOM=No.canUseDOM;nt.default=jm;Object.defineProperty(ot,"__esModule",{value:!0});ot.resetState=Om;ot.log=Mm;ot.assertNodeList=wf;ot.setElement=Pm;ot.validateElement=Js;ot.hide=Rm;ot.show=Dm;ot.documentNotReadyOrSSRTesting=$m;var Nm=Sm,bm=Tm(Nm),Lm=nt;function Tm(e){return e&&e.__esModule?e:{default:e}}var Ae=null;function Om(){Ae&&(Ae.removeAttribute?Ae.removeAttribute("aria-hidden"):Ae.length!=null?Ae.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(Ae).forEach(function(e){return e.removeAttribute("aria-hidden")})),Ae=null}function Mm(){}function wf(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function Pm(e){var t=e;if(typeof t=="string"&&Lm.canUseDOM){var n=document.querySelectorAll(t);wf(n,t),t=n}return Ae=t||Ae,Ae}function Js(e){var t=e||Ae;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,bm.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}function Rm(e){var t=!0,n=!1,r=void 0;try{for(var l=Js(e)[Symbol.iterator](),o;!(t=(o=l.next()).done);t=!0){var i=o.value;i.setAttribute("aria-hidden","true")}}catch(s){n=!0,r=s}finally{try{!t&&l.return&&l.return()}finally{if(n)throw r}}}function Dm(e){var t=!0,n=!1,r=void 0;try{for(var l=Js(e)[Symbol.iterator](),o;!(t=(o=l.next()).done);t=!0){var i=o.value;i.removeAttribute("aria-hidden")}}catch(s){n=!0,r=s}finally{try{!t&&l.return&&l.return()}finally{if(n)throw r}}}function $m(){Ae=null}var Yn={};Object.defineProperty(Yn,"__esModule",{value:!0});Yn.resetState=Fm;Yn.log=Im;var Cr={},kr={};function ju(e,t){e.classList.remove(t)}function Fm(){var e=document.getElementsByTagName("html")[0];for(var t in Cr)ju(e,Cr[t]);var n=document.body;for(var r in kr)ju(n,kr[r]);Cr={},kr={}}function Im(){}var Am=function(t,n){return t[n]||(t[n]=0),t[n]+=1,n},zm=function(t,n){return t[n]&&(t[n]-=1),n},Bm=function(t,n,r){r.forEach(function(l){Am(n,l),t.add(l)})},Vm=function(t,n,r){r.forEach(function(l){zm(n,l),n[l]===0&&t.remove(l)})};Yn.add=function(t,n){return Bm(t.classList,t.nodeName.toLowerCase()=="html"?Cr:kr,n.split(" "))};Yn.remove=function(t,n){return Vm(t.classList,t.nodeName.toLowerCase()=="html"?Cr:kr,n.split(" "))};var Xn={};Object.defineProperty(Xn,"__esModule",{value:!0});Xn.log=Um;Xn.resetState=Wm;function Hm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var xf=function e(){var t=this;Hm(this,e),this.register=function(n){t.openInstances.indexOf(n)===-1&&(t.openInstances.push(n),t.emit("register"))},this.deregister=function(n){var r=t.openInstances.indexOf(n);r!==-1&&(t.openInstances.splice(r,1),t.emit("deregister"))},this.subscribe=function(n){t.subscribers.push(n)},this.emit=function(n){t.subscribers.forEach(function(r){return r(n,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},oo=new xf;function Um(){console.log("portalOpenInstances ----------"),console.log(oo.openInstances.length),oo.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")}function Wm(){oo=new xf}Xn.default=oo;var ea={};Object.defineProperty(ea,"__esModule",{value:!0});ea.resetState=Zm;ea.log=Gm;var Km=Xn,qm=Qm(Km);function Qm(e){return e&&e.__esModule?e:{default:e}}var ye=void 0,Ye=void 0,un=[];function Zm(){for(var e=[ye,Ye],t=0;t0?(document.body.firstChild!==ye&&document.body.insertBefore(ye,document.body.firstChild),document.body.lastChild!==Ye&&document.body.appendChild(Ye)):(ye.parentElement&&ye.parentElement.removeChild(ye),Ye.parentElement&&Ye.parentElement.removeChild(Ye))}qm.default.subscribe(Ym);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(D){for(var F=1;F0&&(ae-=1,ae===0&&g.show(O)),C.props.shouldFocusAfterRender&&(C.props.shouldReturnFocusAfterClose?(c.returnFocus(C.props.preventScroll),c.teardownScopedFocus()):c.popWithoutFocus()),C.props.onAfterClose&&C.props.onAfterClose(),v.default.deregister(C)},C.open=function(){C.beforeOpen(),C.state.afterOpen&&C.state.beforeClose?(clearTimeout(C.closeTimer),C.setState({beforeClose:!1})):(C.props.shouldFocusAfterRender&&(c.setupScopedFocus(C.node),c.markForFocusLater()),C.setState({isOpen:!0},function(){C.openAnimationFrame=requestAnimationFrame(function(){C.setState({afterOpen:!0}),C.props.isOpen&&C.props.onAfterOpen&&C.props.onAfterOpen({overlayEl:C.overlay,contentEl:C.content})})}))},C.close=function(){C.props.closeTimeoutMS>0?C.closeWithTimeout():C.closeWithoutTimeout()},C.focusContent=function(){return C.content&&!C.contentHasFocus()&&C.content.focus({preventScroll:!0})},C.closeWithTimeout=function(){var k=Date.now()+C.props.closeTimeoutMS;C.setState({beforeClose:!0,closesAt:k},function(){C.closeTimer=setTimeout(C.closeWithoutTimeout,C.state.closesAt-Date.now())})},C.closeWithoutTimeout=function(){C.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},C.afterClose)},C.handleKeyDown=function(k){R(k)&&(0,m.default)(C.content,k),C.props.shouldCloseOnEsc&&H(k)&&(k.stopPropagation(),C.requestClose(k))},C.handleOverlayOnClick=function(k){C.shouldClose===null&&(C.shouldClose=!0),C.shouldClose&&C.props.shouldCloseOnOverlayClick&&(C.ownerHandlesClose()?C.requestClose(k):C.focusContent()),C.shouldClose=null},C.handleContentOnMouseUp=function(){C.shouldClose=!1},C.handleOverlayOnMouseDown=function(k){!C.props.shouldCloseOnOverlayClick&&k.target==C.overlay&&k.preventDefault()},C.handleContentOnClick=function(){C.shouldClose=!1},C.handleContentOnMouseDown=function(){C.shouldClose=!1},C.requestClose=function(k){return C.ownerHandlesClose()&&C.props.onRequestClose(k)},C.ownerHandlesClose=function(){return C.props.onRequestClose},C.shouldBeClosed=function(){return!C.state.isOpen&&!C.state.beforeClose},C.contentHasFocus=function(){return document.activeElement===C.content||C.content.contains(document.activeElement)},C.buildClassName=function(k,O){var P=(typeof O>"u"?"undefined":r(O))==="object"?O:{base:B[k],afterOpen:B[k]+"--after-open",beforeClose:B[k]+"--before-close"},I=P.base;return C.state.afterOpen&&(I=I+" "+P.afterOpen),C.state.beforeClose&&(I=I+" "+P.beforeClose),typeof O=="string"&&O?I+" "+O:I},C.attributesFromObject=function(k,O){return Object.keys(O).reduce(function(P,I){return P[k+"-"+I]=O[I],P},{})},C.state={afterOpen:!1,beforeClose:!1},C.shouldClose=null,C.moveFromContentToOverlay=null,C}return l(F,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(C,k){this.props.isOpen&&!C.isOpen?this.open():!this.props.isOpen&&C.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!k.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var C=this.props,k=C.appElement,O=C.ariaHideApp,P=C.htmlOpenClassName,I=C.bodyOpenClassName,A=C.parentSelector,ne=A&&A().ownerDocument||document;I&&x.add(ne.body,I),P&&x.add(ne.getElementsByTagName("html")[0],P),O&&(ae+=1,g.hide(k)),v.default.register(this)}},{key:"render",value:function(){var C=this.props,k=C.id,O=C.className,P=C.overlayClassName,I=C.defaultStyles,A=C.children,ne=O?{}:I.content,oe=P?{}:I.overlay;if(this.shouldBeClosed())return null;var Yt={ref:this.setOverlayRef,className:this.buildClassName("overlay",P),style:n({},oe,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},Ke=n({id:k,ref:this.setContentRef,style:n({},ne,this.props.style.content),className:this.buildClassName("content",O),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",n({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),Nt=this.props.contentElement(Ke,A);return this.props.overlayElement(Yt,Nt)}}]),F}(o.Component);Oe.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},Oe.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(h.default),s.default.instanceOf(b.SafeHTMLCollection),s.default.instanceOf(b.SafeNodeList),s.default.arrayOf(s.default.instanceOf(h.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=Oe,e.exports=t.default})(Yi,Yi.exports);var Xm=Yi.exports;function Sf(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function Cf(e){function t(n){var r=this.constructor.getDerivedStateFromProps(e,n);return r??null}this.setState(t.bind(this))}function kf(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}Sf.__suppressDeprecationWarning=!0;Cf.__suppressDeprecationWarning=!0;kf.__suppressDeprecationWarning=!0;function Jm(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var n=null,r=null,l=null;if(typeof t.componentWillMount=="function"?n="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(n="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?l="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(l="UNSAFE_componentWillUpdate"),n!==null||r!==null||l!==null){var o=e.displayName||e.name,i=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. `+i+" uses "+o+" but also contains the following legacy lifecycles:"+(n!==null?` `+n:"")+(r!==null?` @@ -91,4 +64,4 @@ object-assign `+l:"")+` The above lifecycles should be removed. Learn more about this warning here: -https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=Jf,t.componentWillReceiveProps=ep),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=tp;var s=t.componentDidUpdate;t.componentDidUpdate=function(c,p,d){var m=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:d;s.call(this,c,p,m)}}return e}const Og=Object.freeze(Object.defineProperty({__proto__:null,polyfill:Tg},Symbol.toStringTag,{value:"Module"})),Rg=Yp(Og);Object.defineProperty(wn,"__esModule",{value:!0});wn.bodyOpenClassName=wn.portalClassName=void 0;var Ju=Object.assign||function(e){for(var t=1;t{const p=k.useRef(null),{modal:d,errors:m}=ie.dataLayerStructure,[y,x]=k.useState(!1),g=()=>{a().then(w=>w&&x(w)),window.scrollTo(0,0)},S=w=>(w&&w.current.focus(),window.location.hash="",window.scrollTo(0,0),Bu.disableScroll(),x(!1),!0),f=w=>w.which===32||w.which===13;k.useEffect(()=>{y&&Bu.enableScroll()},[y]),k.useEffect(()=>{const w=setTimeout(()=>{ic.setAppElement("#benefit-finder")},0);return()=>{clearTimeout(w)}},[]),k.useEffect(()=>{(async()=>{y===!0&&ie.dataLayerPush(window,{event:d.event,bfData:{pageView:d.bfData.pageView,viewTitle:`${c.viewTitle} modal`}})})().then(()=>{y===!0&&ie.dataLayerPush(window,{event:m.event,bfData:{errors:"",errorCount:{number:0,string:"0"},formSuccess:!0}})})},[y]);const h=({triggerLabel:w,onKeyDown:b,onClick:N})=>u.jsx(wa,{onClick:N,onKeyDown:b,noCarrot:!0,tabIndex:"0",triggerRef:p,"aria-label":"Continue",role:"button",children:w}),v=({navItemOneLabel:w,navItemOneFunction:b,navItemTwoLabel:N,navItemTwoFunction:P})=>{const T=D=>{S(p)&&D()},B=(D,q)=>{f(D)&&S(p)&&q()};return u.jsxs("ul",{className:"bf-modal bf-usa-button-group usa-button-group width-full",children:[u.jsx("li",{className:"bf-usa-button-group__item usa-button-group__item width-full",children:u.jsx(Ke,{id:"bf-navItemOneBtn",className:"bf-nav-item-one width-full",onClick:()=>T(b),onKeyDown:D=>B(D,b),noCarrot:!0,tabIndex:"0",secondary:!0,children:w})},"bf-nav-item-one"),u.jsx("li",{className:"bf-usa-button-group__item usa-button-group__item width-full",children:u.jsx(Ke,{id:"bf-navItemTwoBtn",className:"bf-nav-item-two width-full",onClick:()=>T(P),onKeyDown:D=>B(D,P),noCarrot:!0,tabIndex:"0",secondary:!0,children:N})},"nav-item-two")]})};return u.jsxs("div",{id:e,className:"bf-usa-modal-group",children:[u.jsx(h,{triggerLabel:n,onKeyDown:w=>f(w)&&g(),onClick:()=>g()}),u.jsxs(ic,{id:"benefit-finder-modal",isOpen:y,onRequestClose:()=>S(p),style:qg,aria:{label:r},ariaHideApp:!1,children:[u.jsx("button",{type:"button","aria-label":"Close",className:"bf-modal-button",onClick:()=>S(p),children:u.jsx(ft,{type:"modal-close",color:"black","aria-hidden":"true"})}),u.jsx(ee,{headingLevel:1,className:"bf-modal-heading",children:r}),t||u.jsx(v,{navItemOneLabel:l,navItemOneFunction:i,navItemTwoLabel:o,navItemTwoFunction:s})]})]})};rp.propTypes={id:C.string,children:C.node,triggerLabel:C.string,modalHeading:C.string,navItemOneLabel:C.string,navItemOneFunction:C.func,navItemTwoLabel:C.string,navItemTwoFunction:C.func,handleCheckRequriedFields:C.func};const lp=({data:e,iconAlt:t})=>{const n=r=>r&&r.data.map((l,i)=>u.jsxs("li",{className:"bf-notice",children:[u.jsx(ft,{type:"info","aria-label":t,role:"img"}),u.jsx("div",{className:"bf-notice-item",dangerouslySetInnerHTML:bt(l.notice)})]},`notice-${i}`));return u.jsx("div",{className:"bf-notices",children:u.jsx("ul",{className:"bf-notices-list add-list-reset",children:u.jsx(n,{data:e})})})};lp.propTypes={data:C.array};const wa=({children:e,className:t,href:n,rel:r,target:l,ext:i,noCarrot:o,triggerRef:s,...a})=>{const c=i?["bf-usa-button","usa-button","usa-button--secondary","bf-usa-button--secondary","bf-usa-link--external","usa-link--external","bf-obfuscated-link"]:["bf-usa-button","usa-button","bf-usa-button--secondary","usa-button--secondary","bf-obfuscated-link"],p=o===!0?null:u.jsx(ft,{type:"carrot-solid",color:"black","aria-hidden":"true"});return u.jsxs("a",{href:n,rel:r,target:l,className:pt({className:t,defaultClasses:c}),ref:s,...a,children:[e,p]})};wa.propTypes={children:C.node,className:C.string,href:C.string,rel:C.string,target:C.string,ext:C.bool,noCarrot:C.bool};C.node||C.string,C.oneOf(["regular","bold","extrabold","light","thin"]);const ip=({steps:e})=>u.jsx("ol",{className:"bf-usa-process-list usa-process-list",children:e&&e.map((t,n)=>u.jsx("li",{className:"bf-usa-process-list__item usa-process-list__item",children:u.jsx("h3",{className:"bf-usa-process-list__heading usa-process-list__heading",children:t.title})},`process-item-${n}`))});ip.propTypes={steps:C.array};const op=({id:e,label:t,value:n,checked:r,onChange:l,required:i,className:o,name:s})=>{const a=i===!0?["required-field"]:"",c=["bf-usa-radio__input usa-radio__input"],p=a;return u.jsx(u.Fragment,{children:u.jsxs("div",{className:"bf-usa-radio usa-radio",children:[u.jsx("input",{className:pt({className:o,defaultClasses:c,utilityClasses:p}),type:"radio",name:s,value:n||e,checked:r,onChange:l,id:e}),u.jsx(va,{className:"bf-usa-radio__label usa-radio__label",htmlFor:e,label:t})]})})};op.propTypes={id:C.string,label:C.string,value:C.string,checked:C.bool,onChange:C.func,className:C.string,name:C.string};const sp=({invalid:e,values:t,fieldSetId:n,handleChanged:r,criteriaKey:l,errorMessage:i,legend:o,ui:s})=>{const a=s,c=i?`${i}`:`${a==null?void 0:a.prefix} ${o&&o.toLowerCase()} ${a==null?void 0:a.suffix}`;return u.jsx("div",{className:"bf-radio-group radio-group","aria-invalid":e,children:t&&t.map((p,d)=>{const m=`${n}_${d}`;return u.jsx(op,{name:n,id:m,label:p.value,value:p.value,checked:p.selected||!1,onChange:y=>{r(y,l)},"data-errormessage":c,"aria-errormessage":`error-description-${m}`},m)})})};sp.propTypes={invalid:C.bool,values:C.array,fieldSetId:C.string,handleChanged:C.func,criteriaKey:C.string};const ap=({data:e,carrotType:t})=>u.jsx("ul",{className:"bf-usa-card-group usa-card-group",children:e&&e.map((n,r)=>{const{title:l,searchTitle:i,link:o,cta:s,body:a,lifeEventId:c}=n.lifeEvent,p=c.replace("es_","");return u.jsx(Hf,{className:"bf-usa-card--relative-benefit bf-usa-card usa-card tablet:grid-col-12",title:i||l,cta:s,href:o,body:a,carrotType:t,icon:p,"data-testid":p},`${l}-${r}`)})});ap.propTypes={data:C.array,carrotType:C.string};const Qg=({ui:e,data:t})=>{const n=k.useContext(Nt),[r,l]=k.useState(()=>di(`${window.location.origin}${n.basePath}/${n.indexPath}`,t)),i=o=>{o.preventDefault(),l(di(`${window.location.origin}${n.basePath}/${n.indexPath}`,t)),navigator.clipboard.writeText(r).then(()=>alert(`${e==null?void 0:e.shareLinkContent} ${r}`),s=>alert("Failed to copy",s))};return u.jsx("a",{href:"",className:"bf-share-trigger bf-usa-link usa-link",onClick:o=>i(o),"data-testid":"bf-share-trigger",children:(e==null?void 0:e.shareTrigger)||"Share"})},up=({data:e,noHeadings:t,current:n,setCurrent:r,handleCheckRequriedFields:l})=>{const i=({completed:s})=>u.jsx("span",{className:"usa-sr-only",children:s?" completed":" not completed"}),o=({heading:s,current:a,completed:c,index:p})=>{const d=a===p?"--current":"";return u.jsx("li",{className:`bf-usa-step-indicator__segment usa-step-indicator__segment bf-usa-step-indicator__segment${d} usa-step-indicator__segment${d} ${c===!0?"bf-usa-step-indicator__segment--complete usa-step-indicator__segment--complete":""}`,"aria-current":a===p,children:u.jsxs("span",{className:"bf-usa-step-indicator__segment-label usa-step-indicator__segment-label",children:[!t&&s,u.jsx(i,{completed:c},`step-indicator-sr-${p}`)]},`step-indicator-label-${p}`)},`step-indicator-${s}`)};return u.jsx("div",{children:e&&e.length>0&&u.jsx("div",{className:"bf-usa-step-indicator usa-step-indicator","aria-label":"progress",tabIndex:0,children:u.jsx("ol",{className:"bf-usa-step-indicator__segments usa-step-indicator__segments",children:e&&e.map((s,a)=>{const c=s.section.heading,p=s.completed;return u.jsx(o,{heading:c,index:a,current:n,setCurrent:r,completed:p,handleCheckRequriedFields:l},`${c}-${a}`)})})})})};up.propTypes={data:C.array,noHeadings:C.bool,current:C.number};const cp=({children:e,onClick:t})=>{const n=rr(),r=()=>{t(),n.current.focus()};return u.jsx(Ke,{className:"bf-step-back-button",unstyled:!0,onClick:()=>r(),children:e||"Back"})};cp.propTypes={children:C.node,currentIndex:C.number};function dp({label:e,htmlFor:t,options:n,selected:r,onChange:l,ui:i,className:o,invalid:s,legend:a,errorMessage:c}){const{select:p,errorText:d}=i,m=[`bf-usa-select usa-select ${s===!0?"usa-input--error":""}`],y=({options:g})=>g.map(S=>u.jsx("option",{value:S.value,children:S.value},S.value)),x=c?`${c}`:`${d==null?void 0:d.prefix} ${a&&a.toLowerCase()} ${d==null?void 0:d.suffix}`;return u.jsxs(u.Fragment,{children:[u.jsx(va,{label:e||(p==null?void 0:p.labelSelect),htmlFor:t}),u.jsxs("select",{className:pt({className:o,defaultClasses:m}),name:t,id:t,onChange:l,value:r||"","aria-invalid":s===!0,"data-errormessage":x,"aria-errormessage":`error-description-${t}`,children:[u.jsx("option",{value:"",children:p==null?void 0:p.defaultValue},"default"),u.jsx(y,{options:n})]})]})}dp.propTypes={label:C.string,htmlFor:C.string,options:C.array,selected:C.string,onChange:C.func,required:C.bool,ui:C.object,className:C.string,invalid:C.bool};const xa=({heading:e,listItems:t,cta:n})=>{const r=k.useContext(Nt),l=i=>{i.preventDefault(),window.location.href=`${window.location.origin}${r.basePath}/${r.indexPath}`};return u.jsx("div",{className:"bf-usa-summary-box usa-summary-box",role:"region","aria-labelledby":"bf-summary-box-key-information",children:u.jsxs("div",{className:"bf-usa-summary-box__body usa-summary-box__body",children:[u.jsx(ee,{headingLevel:4,className:"bf-usa-summary-box__heading usa-summary-box__heading",id:"bf-summary-box-key-information",children:e}),u.jsx("div",{className:"bf-usa-summary-box__text usa-summary-box__text",children:u.jsxs("ul",{className:"bf-usa-list usa-list",children:[t&&t.map((i,o)=>u.jsx("li",{children:i.item},`bf-summary-list-${o}`)),u.jsxs("li",{children:[n==null?void 0:n.text," ",u.jsx("a",{className:"bf-usa-summary-box__link usa-summary-box__link",href:"#",onClick:i=>l(i),children:n==null?void 0:n.link})]})]})})]})})};xa.propTypes={props:C.any};C.string,C.string,C.string,C.bool;const fp=({timeEstimate:e,description:t})=>u.jsxs("div",{className:"time-indicator",children:[t," ",e]});fp.propTypes={description:C.string,timeEstimate:C.string};const pp=({content:e,ui:t,hasQueryParams:n})=>{const{timeEstimate:r,title:l,summary:i}=e,{heading:o,timeIndicator:s,steps:a,notices:c,button:p}=t,{intro:d}=ie.dataLayerStructure,m=rr(),y=k.useContext(Nt),x=il(),g=nr(),S=()=>{x(`/${y.indexPath}/${y.formPaths[0]}`),m.current.focus()};return k.useEffect(()=>{n&&x(`/${y.indexPath}/${y.resultsPaths.resultsPath}${g.search}`)},[n]),k.useEffect(()=>{!n&&ie.dataLayerPush(window,{event:d.event,bfData:{pageView:d.bfData.pageView,viewTitle:l}})},[n]),e&&u.jsxs("div",{className:"bf-intro",children:[u.jsx(ma,{heading:l,description:i}),u.jsxs("div",{className:"bf-grid-container grid-container",children:[u.jsx(ee,{headingLevel:2,children:o}),u.jsx(fp,{description:s,timeEstimate:r}),u.jsxs("div",{className:"bf-intro-process-group",children:[u.jsx("div",{className:"bf-intro-process-list",children:u.jsx(ip,{steps:a.list,description:a.title})}),u.jsx("div",{className:"bf-line-sperator-wrapper--vertical",children:u.jsx("div",{className:"bf-line-sperator--vertical"})}),u.jsxs("div",{className:"bf-intro-process-notices",children:[u.jsx(ee,{className:"bf-intro-process-notices-heading",headingLevel:2,children:c.heading}),u.jsx(lp,{className:"bf-intro-process-notices-list",data:c.list,iconAlt:c.iconAlt})]})]}),u.jsx("div",{className:"bf-line-sperator-wrapper",children:u.jsx("div",{className:"bf-line-sperator"})}),u.jsx("div",{className:"bf-cta-wrapper",children:u.jsx(Ke,{secondary:!0,onClick:()=>S(),children:p})})]})]})};pp.propTypes={data:C.object,ui:C.object,step:C.number};const hp=({data:e,handleData:t,ui:n})=>{const[r,l]=k.useState(0),[i,o]=k.useState(!1),[s,a]=k.useState(()=>e&&e[r]),[c,p]=k.useState([]),[d,m]=k.useState([]),[y,x]=k.useState(()=>H.SelectedValueAll(e).length>0),[g,S]=k.useState(0),{lifeEventSection:f}=ie.dataLayerStructure,{buttonGroup:h,reviewSelectionModal:v,requiredLabel:w,sectionHeadings:b}=n;gm(y);const N=rr(),P=k.useContext(Nt),T=il();let B=nr();const D=()=>e.findIndex(L=>{const M=Tf(L.section.heading);return B.pathname.match(`${P.indexPath}/${M}`)});k.useEffect(()=>{var L;(L=N.current)==null||L.focus()},[N]);const q=()=>{e[r]={...s},t([...e])},de=k.useRef(null),Te=()=>(de.current.classList.remove("display-none"),de.current.focus(),S(g+1),s.completed=!1,window.scrollTo(0,0),!1),I=()=>(de.current.classList.add("display-none"),s.completed=!0,q(),p([]),!0),F=()=>Fe.handleCheckForRequiredValues(c,m).then(L=>L===!0?I():Te()),W=L=>{F().then(M=>{if(M===!0){const{errors:z}=ie.dataLayerStructure;ie.dataLayerPush(window,{event:z.event,bfData:{errors:"",errorCount:{number:0,string:"0"},formSuccess:!0}});const fe=r+L;r<=e.length&&(T(`/${P.indexPath}/${P.formPaths[fe]}`),a(e[fe])),N&&N.current.focus()}})},E=L=>{T(r===0?`/${P.indexPath}`:L),N.current.focus()},_=(L,M)=>{window.history.replaceState({},"",window.location.pathname),Yr.Data(M,s,a,L.target.value),d.length>0&&Fe.handleCheckForRequiredValues(c,m),x(H.SelectedValueAll(e).length>0)},R=(L,M)=>{window.history.replaceState({},"",window.location.pathname);async function z(){_m(L)===!0&&(Yr.DataDate(M,s,a,L.target.value,L.target.id),d.length>0&&Fe.handleCheckForRequiredValues(c,m))}z().then(()=>{Fe.getNonRequiredFieldsets(M,c,p,m,d,H.SelectedValueAll(e)),x(H.SelectedValueAll(e).length>0)})};return k.useEffect(()=>{B.pathname.includes(P.formPaths[P.formPaths.length-1])?o(!0):o(!1)},[B]),k.useEffect(()=>{var M,z;const L=D();l(L),a(e[L]),ie.dataLayerPush(window,{event:f.event,bfData:{pageView:`${f.bfData.pageView}-${L+1}`,viewTitle:(M=e[L])==null?void 0:M.section.heading}}),(z=N.current)==null||z.focus(),window.scrollTo(0,0)},[B]),k.useEffect(()=>{var L;Fe.getRequiredFieldsets(document,p),(L=N.current)==null||L.focus(),window.scrollTo(0,0)},[r]),k.useEffect(()=>{Fe.getRequiredFieldsets(document,p)},[]),k.useEffect(()=>{fa({hide:!0})}),e&&u.jsxs(u.Fragment,{children:[u.jsx(ee,{className:"bf-section-heading",headingLevel:1,children:r===e.length-1?`${b.final}`:r===0?`${b.start}`:`${b.continue}`}),u.jsx("div",{className:"bf-section-wrapper",children:u.jsxs("div",{className:"bf-section-info",children:[u.jsx(up,{current:r,setCurrent:l,data:e},`step-indicator-${b}`),s&&u.jsxs("div",{id:"bf-section","data-testid":"bf-section",children:[u.jsx(ha,{alertFieldRef:de,heading:n.alertBanner.heading,description:n.alertBanner.description,type:"error",hasError:d.length>0,errorCount:d.length,errorList:d,submissionCount:g}),u.jsxs("div",{className:"bf-form-heading-group",children:[u.jsx(ee,{className:"bf-form-heading bf-usa-form-heading",headingLevel:2,children:s.section.heading}),u.jsx("div",{className:"bf-section-sub-heading",dangerouslySetInnerHTML:bt(s.section.description)})]}),s.section.fieldsets.map((L,M)=>{const z=({item:$,children:qe,index:ht,hidden:en})=>{var Sn,al;return $.fieldset.inputs[0].inputCriteria.type==="Select"?u.jsxs(k.Fragment,{children:[u.jsx(Al,{legend:$.fieldset.legend,errorMessage:$.fieldset.errorMessage,hint:$.fieldset.hint,required:$.fieldset.required,requiredLabel:w,hidden:en&&en,id:$.fieldset.criteriaKey,invalid:Fe.handleInvalid({hasError:d,criteriaKey:(Sn=$.fieldset)==null?void 0:Sn.criteriaKey}),ui:n.errorText,children:$.fieldset.inputs.map((Lt,mt)=>{var Ca;const Qe=`${$.fieldset.criteriaKey}_${mt}`,Pt=Lt.inputCriteria.values,vt=Pt.find(zi=>zi.selected!==void 0),{select:Bi,errorText:Zp}=n;return u.jsx("div",{children:u.jsx(dp,{ui:{select:Bi,errorText:Zp},htmlFor:Qe,options:Pt,selected:vt==null?void 0:vt.value,onChange:zi=>_(zi,$.fieldset.criteriaKey),invalid:Fe.handleInvalid({hasError:d,criteriaKey:(Ca=$.fieldset)==null?void 0:Ca.criteriaKey,fieldSetId:Qe}),legend:$.fieldset.legend,errorMessage:$.fieldset.errorMessage},Qe)},Qe)})},`select-${$.fieldset.criteriaKey}-${ht}`),qe||null]},`select-${$.fieldset.criteriaKey}+${ht}`):$.fieldset.inputs[0].inputCriteria.type==="Radio"?u.jsxs(k.Fragment,{children:[$.fieldset.inputs.map((Lt,mt)=>{var Pt,vt;const Qe=`${$.fieldset.criteriaKey}_${mt}`;return u.jsx(Al,{id:$.fieldset.criteriaKey,legend:$.fieldset.legend,errorMessage:$.fieldset.errorMessage,hint:$.fieldset.hint,required:$.fieldset.required,requiredLabel:w,hidden:en&&en,ui:n.errorText,invalid:Fe.handleInvalid({hasError:d,criteriaKey:(Pt=$.fieldset)==null?void 0:Pt.criteriaKey}),children:u.jsx(sp,{invalid:Fe.handleInvalid({hasError:d,criteriaKey:(vt=$.fieldset)==null?void 0:vt.criteriaKey}),fieldSetId:Qe,handleChanged:_,values:Lt.inputCriteria.values,criteriaKey:$.fieldset.criteriaKey,errorMessage:$.fieldset.errorMessage,legend:$.fieldset.legend,ui:n.errorText},Qe)},`radio-${$.fieldset.criteriaKey}-${mt}`)}),qe||null]},`radio-${$.fieldset.criteriaKey}+${ht}`):$.fieldset.inputs[0].inputCriteria.type==="Date"?u.jsxs(k.Fragment,{children:[u.jsx(Al,{legend:$.fieldset.legend,errorMessage:$.fieldset.errorMessage,hint:$.fieldset.hint,required:$.fieldset.required,requiredLabel:w,hidden:en&&en,id:$.fieldset.criteriaKey,invalid:Fe.handleInvalid({hasError:d,criteriaKey:(al=$.fieldset)==null?void 0:al.criteriaKey}),ui:n.errorText,children:$.fieldset.inputs.map((Lt,mt)=>{var Pt,vt;const Qe=`${$.fieldset.criteriaKey}_${mt}`;return u.jsx("div",{children:u.jsx(Wf,{value:(Pt=Lt.inputCriteria.values[0])==null?void 0:Pt.value,onChange:Bi=>R(Bi,$.fieldset.criteriaKey),ui:n,errorMessage:$.fieldset.errorMessage,parentLegend:$.fieldset.legend,id:Qe,invalid:Fe.handleInvalid({hasError:d,criteriaKey:(vt=$.fieldset)==null?void 0:vt.criteriaKey,fieldSetId:Qe,useFilter:!0})})},Qe)})},`date-${$.fieldset.criteriaKey}-${ht}`),qe||null]},`date-${$.fieldset.criteriaKey}+${ht}`):null},fe=({item:$,i:qe})=>z({item:$,index:qe}),_e=$=>{const qe=H.SelectedValue($);return(qe==null?void 0:qe.value)!==$.fieldset.inputs[0].inputCriteria.childDependencyOption},Jt=({item:$,i:qe})=>z({item:$,index:qe,children:$.fieldset.children.map((ht,en)=>ht.fieldsets.length&&ht.fieldsets.map((Sn,al)=>{const Lt=Sn&&H.SelectedValue(Sn),mt=_e($);return mt===!0&&Lt!==void 0&&delete Lt.selected,z({item:Sn,index:al,hidden:mt})}))});return L.fieldset.children.length>0?Jt({item:L,i:M}):fe({item:L,i:M})})]}),u.jsxs("div",{className:"bf-section-nav-btn-group",children:[u.jsx(Ke,{outline:!0,onClick:()=>E(-1),children:h[0].value}),i===!1?u.jsx(Ke,{secondary:!0,onClick:()=>W(1),children:h[1].value}):u.jsx(rp,{id:"nav-modal",dataLayerValue:{viewTitle:s.section.heading},modalHeading:v.heading,navItemOneLabel:v.buttonGroup[0].value,navItemOneFunction:()=>T(`/${P.indexPath}/${P.verifySelectionsPath}`),navItemTwoLabel:v.buttonGroup[1].value,navItemTwoFunction:()=>T(`/${P.indexPath}/${P.resultsPaths.resultsPath}`),triggerLabel:h[1].value,handleCheckRequriedFields:F,completed:s.completed})]})]})})]})};hp.propTypes={props:C.any,formStep:C.number,data:C.array,ui:C.object};const mp=({ui:e})=>{const{eligible:t,summaryBox:n}=e;return u.jsxs("div",{children:[u.jsx(ee,{className:"bf-eligible-view-heading",headingLevel:2,children:t==null?void 0:t.heading}),u.jsx(ee,{className:"bf-eligible-view-description",headingLevel:3,dangerouslySetInnerHTML:bt(t==null?void 0:t.description)}),u.jsx(xa,{heading:n==null?void 0:n.heading,listItems:n==null?void 0:n.list,cta:n==null?void 0:n.cta})]})};mp.propTypes={props:C.any};const vp=({ui:e})=>{const{notEligible:t,summaryBox:n}=e;return u.jsxs("div",{children:[u.jsx(ee,{className:"bf-not-eligible-view-heading",headingLevel:2,children:t==null?void 0:t.heading}),u.jsx(ee,{className:"bf-not-eligible-view-description",headingLevel:3,dangerouslySetInnerHTML:bt(t==null?void 0:t.description)}),u.jsx(xa,{heading:n==null?void 0:n.heading,listItems:n==null?void 0:n.list,cta:n==null?void 0:n.cta})]})};vp.propTypes={props:C.any};const gp=({handleViewToggle:e,notEligibleView:t,ui:n})=>{const r=k.useContext(Nt),l=il();return u.jsxs(u.Fragment,{children:[u.jsx(ee,{className:"bf-zero-benefits-view-heading","data-testid":"zero-benefits-view-heading",headingLevel:2,children:n==null?void 0:n.heading}),u.jsx(ee,{className:"bf-zero-benefits-view-description",headingLevel:3,dangerouslySetInnerHTML:bt(n==null?void 0:n.description)}),u.jsx("div",{className:"bf-back-to-form-cta",children:u.jsx(cp,{onClick:()=>l(`/${r.indexPath}/${r.formPaths[0]}`),children:n==null?void 0:n.backcta.link})}),!t&&u.jsx("div",{className:"bf-zero-benefits-view-cta",children:u.jsx(Ke,{"data-testid":"zero-benefits-view-cta-button",onClick:e,secondary:!0,children:n==null?void 0:n.cta})})]})};gp.propTypes={handleViewToggle:C.func,notEligibleView:C.bool,ui:C.object};const yp=({notEligibleView:e,zeroBenefitsResult:t,stepDataArray:n,isExpandAll:r,setExpandAll:l,handleViewToggle:i,data:o,relevantBenefits:s,ui:a})=>{const c=({notEligibleView:g,zeroBenefitsResult:S,ui:f})=>{const{eligible:h,notEligible:v,zeroBenefits:w}=f;return u.jsx(ma,{heading:g===!1?S&&(w==null?void 0:w.eligible.chevron.heading)||(h==null?void 0:h.chevron.heading):S&&(w==null?void 0:w.notEligible.chevron.heading)||(v==null?void 0:v.chevron.heading),description:g===!1?S&&(w==null?void 0:w.eligible.chevron.description)||(h==null?void 0:h.chevron.description):S&&(w==null?void 0:w.notEligible.chevron.description)||(v==null?void 0:v.chevron.description)})},p=({zeroBenefitsResult:g,notEligibleView:S,ui:f})=>{const{notEligible:h,eligible:v,summaryBox:w,zeroBenefits:b}=f;return g?u.jsx(gp,{handleViewToggle:i,notEligibleView:S,ui:b}):S===!0?u.jsx(vp,{ui:{notEligible:h,summaryBox:w}}):u.jsx(mp,{ui:{eligible:v,summaryBox:w}})},d=({handleViewToggle:g,ui:S})=>{const{notEligibleResults:f}=S;return u.jsxs("div",{className:"bf-result-view-unmet",children:[u.jsx(ee,{className:"bf-result-view-unmet-heading",headingLevel:3,children:f==null?void 0:f.heading}),u.jsx("p",{dangerouslySetInnerHTML:bt(f==null?void 0:f.description)}),u.jsx("div",{className:"bf-result-view-cta-wrapper",children:u.jsx(Ke,{"data-testid":"bf-result-view-unmet-button",secondary:!0,onClick:g,children:f==null?void 0:f.cta})})]})},m=({stepDataArray:g,ui:S})=>{const{shareResults:f}=S;return u.jsxs("div",{className:"bf-result-view-share-results",children:[u.jsx(ee,{className:"bf-result-view-share-results-heading",headingLevel:3,children:f==null?void 0:f.heading}),u.jsx("p",{children:f==null?void 0:f.description}),u.jsxs("ul",{className:"bf-result-view-share-results-button-group",children:[u.jsxs("li",{children:[" ",u.jsx(Qg,{ui:f,data:g&&H.SelectedValueAll(g)})]}),u.jsxs("li",{children:[" ",u.jsx(bv,{ui:f,data:g&&H.SelectedValueAll(g)})]})]})]})},y=({relevantBenefits:g,ui:S})=>{const{resultsRelativeBenefits:f}=S;return u.jsxs("div",{className:"bf-result-view-relvant-benefits",children:[u.jsx(ee,{className:"bf-result-view-relvant-benefits-heading",headingLevel:3,children:f==null?void 0:f.heading}),g&&u.jsx(ap,{data:g,carrotType:"carrot"})]})},x=({zeroBenefitsResult:g,notEligibleView:S,stepDataArray:f,isExpandAll:h,setExpandAll:v,ui:w})=>u.jsx("div",{className:"bf-result-view-benefits",children:u.jsx(Vf,{data:f&&H.ElegibilityByCriteria(H.SelectedValueAll(f),o),entryKey:"benefit",notEligibleView:S,expandAll:g===!1||g&&S,isExpandAll:h,setExpandAll:v,ui:w})});return u.jsxs(u.Fragment,{children:[u.jsx(c,{notEligibleView:e,zeroBenefitsResult:t,ui:a}),u.jsx("div",{className:"bf-grid-container grid-container","data-testid":"bf-results-view",children:u.jsxs("div",{className:"bf-result-view-details",children:[u.jsx(p,{zeroBenefitsResult:t,notEligibleView:e,ui:a}),u.jsx(x,{zeroBenefitsResult:t,notEligibleView:e,isExpandAll:r,setExpandAll:l,stepDataArray:n,ui:a}),e===!1&&t===!1&&u.jsx(d,{notEligibleView:e,zeroBenefitsResult:t,handleViewToggle:i,ui:a}),(s==null?void 0:s.length)>0&&u.jsx(y,{relevantBenefits:s,ui:a}),u.jsx(m,{stepDataArray:n,ui:a})]})})]})};yp.propTypes={props:C.any};const wp=({stepDataArray:e,relevantBenefits:t,ui:n,data:r,notEligibleView:l})=>{const[i,o]=k.useState(!0),[s,a]=k.useState(null),[c,p]=k.useState(null),{resultsView:d}=ie.dataLayerStructure,m=il(),y=nr(),x=k.useContext(Nt),[g,S]=k.useState(!1),f=rr();k.useEffect(()=>{var N;(N=f.current)==null||N.focus()},[f]);const h=e&&H.SelectedValueAll(e).length,v=e&&H.ElegibilityByCriteria(H.SelectedValueAll(e),r).length,w=()=>{y.pathname===`${x.indexPath}/${x.resultsPaths.resultsPath}`?m(-1):m(`/${x.indexPath}/${x.resultsPaths.notEligiblePath}`)};k.useEffect(()=>{var N;(N=f.current)==null||N.focus(),window.scrollTo(0,0),S(!1)},[y]),k.useEffect(()=>{H.BenefitsEligibilityCounts(r,n.benefitAccordion.eligibleStatusLabels).then(N=>{a(N),p((N==null?void 0:N.eligibleBenefitCount.number)===0),o(!1)})},[r]),k.useEffect(()=>{s!==null&&ie.dataLayerPush(window,{event:d.event,bfData:{pageView:l===!0?d.bfData.pageView[1]:d.bfData.pageView[0],viewTitle:l===!1?c&&n.zeroBenefits.eligible.chevron.heading||(n==null?void 0:n.eligible.chevron.heading):c&&(n==null?void 0:n.zeroBenefits.notEligible.chevron.heading)||(n==null?void 0:n.notEligible.chevron.heading),...s}})},[l,s]),k.useEffect(()=>{fa({hide:!1})},[]);const b={"data-test-results-view":l===!0?"bf-not-eligible-view":"bf-eligible-view","data-test-results-view-criteria-values":h,"data-test-results-view-benefits":v,"data-test-results-view-eligible":s==null?void 0:s.eligibleBenefitCount.number,"data-test-results-view-not-eligible":s==null?void 0:s.notEligibleBenefitCount.number,"data-test-results-view-more-info":s==null?void 0:s.moreInfoBenefitCount.number};return u.jsxs("div",{className:"bf-result-view","data-testid":"bf-result-view",...b,children:[u.jsx(yp,{notEligibleView:l,zeroBenefitsResult:c,stepDataArray:e,handleViewToggle:w,isExpandAll:g,setExpandAll:S,relevantBenefits:t,resetElement:f,data:r,ui:n}),ym({loading:i,parentElementID:"bf-results-view"})]})};wp.propTypes={ui:C.object,data:C.array};const xp=({indexPath:e,ui:t,data:n})=>{const{verifySelectionsView:r,buttonGroup:l}=t,{verifySelections:i}=ie.dataLayerStructure,o=H.Language(),s={year:"numeric",month:"long",day:"numeric"},a=il(),c=nr(),p=k.useContext(Nt),d=rr(),m=({item:g,index:S})=>u.jsxs("div",{className:"bf-verify-criteria-value",children:[u.jsx("div",{className:"bf-verify-criteria-legend",children:g.fieldset.legend},`bf-criteria-${g.fieldset.criteriaKey}-${S}`),r==null?void 0:r.noResultsLabel]}),y=({criteriaId:g,legend:S,selected:f})=>u.jsxs("div",{className:"bf-verify-criteria-value",children:[u.jsx("div",{className:"bf-verify-criteria-legend",children:S}),typeof(f==null?void 0:f.value)=="object"?`${jm(f.value).toLocaleDateString(o,s)}`:f==null?void 0:f.value]},g),x=({item:g,index:S})=>u.jsxs("div",{children:[y({criteriaId:`criteria-${g.fieldset.criteriaKey}-${S}`,legend:g.fieldset.legend,selected:H.SelectedValue(g)}),H.Children(g).map(f=>H.SelectedValue(f)?y({criteriaId:f.fieldset.criteriaKey,legend:f.fieldset.legend,selected:H.SelectedValue(f)}):u.jsx(m,{item:f},f.fieldset.criteriaKey))]});return k.useEffect(()=>{var g;(g=d.current)==null||g.focus(),window.scrollTo(0,0)},[c]),k.useEffect(()=>{ie.dataLayerPush(window,{event:i.event,bfData:{pageView:i.bfData.pageView,viewTitle:r==null?void 0:r.heading}})},[]),k.useEffect(()=>{fa({hide:!0})},[]),u.jsx("div",{className:"bf-verify-selections-view",children:u.jsxs("div",{className:"bf-grid-container grid-container",children:[u.jsx(ee,{className:"bf-section-heading",headingLevel:1,children:r==null?void 0:r.heading}),u.jsx("div",{className:"bf-section-wrapper",children:u.jsxs("div",{className:"bf-section-info",children:[u.jsx("div",{children:n&&n.map((g,S)=>{const{section:f}=g;return u.jsxs("div",{className:"bf-verify-criteria-section",children:[u.jsx(ee,{className:"bf-verify-criteria-section-heading",headingLevel:2,children:f.heading}),u.jsx("div",{children:f.fieldsets.map((h,v)=>H.SelectedValue(h)?u.jsx(x,{item:h,index:v},`bf-criteria-item-${v}`):u.jsx(m,{item:h,index:v},`bf-criteria-item-${v}`))})]},`bf-section-${f.heading}`)})}),u.jsxs("div",{className:"bf-section-nav-btn-group",children:[u.jsx(Ke,{outline:!0,onClick:()=>a(-1),children:l[0].value}),u.jsx(Ke,{secondary:!0,onClick:()=>a(`/${p.indexPath}/${p.resultsPaths.resultsPath}`),children:l[1].value})]})]})})]})})};xp.propTypes={ui:C.object,data:C.array};const Cp={heading:"Steps",timeIndicator:"Estimated time",steps:{list:[{title:"Answer questions"},{title:"Get your list of benefits"},{title:"Visit agency websites to apply"}]},notices:{heading:"Before you start:",iconAlt:"Important",list:[{notice:"
This is not an application.
"},{notice:"You'll need to apply for benefits with each agency."},{notice:"
We don't share, save, or submit your information.
"}]},button:"Start finding benefits"},Sp={stepBackButton:"Back"},Ep={value:"required"},kp={heading:{prefix:"Your information contains",suffix:"errors"},description:"Complete all required fields."},_p={prefix:"Fill out the",suffix:"field"},jp=[{value:"Back"},{value:"Next"}],bp={heading:"Select an option:",buttonGroup:[{value:"Review your selections"},{value:"Get your results"}]},Np={heading:"Review and confirm",noResultsLabel:"Not answered",buttonGroup:[{value:"Back"},{value:"Confirm"}]},Lp={summaryBox:{heading:"Important",list:[{item:"Visit each agency’s website to find full eligibility requirements."},{item:"Your results may change if you answer more questions or modify your answers."}],cta:{text:"",link:"Clear my answers and restart the form."}},eligible:{chevron:{heading:"Your potential benefits",description:"

Visit each agency to find true eligibility and to apply. Check with your city, state, or employer for other benefits.

"},heading:"Results",description:"You may be eligible for these benefits:"},notEligible:{chevron:{heading:"Benefits you did not qualify for",description:"

According to your answers you are not eligible for these benefits.

"},heading:"Results",description:"Based on your answers you are not eligible for these benefits.You may become eligible if you enter additional information or your situation changes."},zeroBenefits:{backcta:{text:"",link:"Go back to start"},eligible:{chevron:{heading:"You are likely not eligible for these benefits.",description:"

If you reached these results by mistake, please go back to review your answers.

"}},notEligible:{chevron:{heading:"Benefits you did not qualify for",description:"

According to your answers you are not eligible for these benefits.

"}},heading:"No eligible results.",description:"Based on your answers you are likely not eligible for benefits. You may become eligible if you enter more information or your situation changes.",cta:"See all benefits"},stepBackButton:"Back",eligibleResults:{heading:"Results",description:"You may be eligible for these benefits."},benefitAccordionGroup:{closedState:"Expand all",openState:"Close all"},benefitAccordion:{eligibleStatusLabels:["Likely eligible","More information needed","Not eligible"],agencyPrefix:"By",benefitSummary:"Key eligibility criteria",benefitSummaryPrefix:"Met ",benefitSummaryConjunction:"of",unmetLabel:"Unmet criteria",visitLabel:"Visit"},notEligibleResults:{heading:"Benefits you did not qualify for",description:"
Based on your answers you are not eligible for these benefits. You may become eligible if you enter additional information or your situation changes.
",cta:"Explore other potential benefits"},resultsRelativeBenefits:{heading:"More benefits"},shareResults:{heading:"Share results",shareTrigger:"Share link",shareLinkContent:"Copied",emailTrigger:"Email results",emailSubject:"Results from USAGov’s benefit finder",description:"Copy or email these results. Your answers will be visible. Only share with those you trust."}},Pp={heading:"Share results",description:"Your information will be viewable. Only share with those you trust.",buttonGroup:[{value:"Share link"},{value:"Email results"}]},Tp={start:"Answer these questions",continue:"Questions continued",final:"Final questions"},Op={labelSelect:"Select an option",defaultValue:"-Select-",dateDefaultValue:"-Select-"},Rp={alert:"Date should follow the format January 19 2000",labelDay:"Day",labelMonth:"Month",labelYear:"Year",monthOptions:[{label:"01 - January"},{label:"02 - February"},{label:"03 - March"},{label:"04 - April"},{label:"05 - May"},{label:"06 - June"},{label:"07 - July"},{label:"08 - August"},{label:"09 - September"},{label:"10 - October"},{label:"11 - November"},{label:"12 - December"}]},Zg={intro:Cp,stepIndicator:Sp,requiredLabel:Ep,alertBanner:kp,errorText:_p,buttonGroup:jp,reviewSelectionModal:bp,verifySelectionsView:Np,resultsView:Lp,shareResults:Pp,sectionHeadings:Tp,select:Op,date:Rp},Mp=Object.freeze(Object.defineProperty({__proto__:null,alertBanner:kp,buttonGroup:jp,date:Rp,default:Zg,errorText:_p,intro:Cp,requiredLabel:Ep,resultsView:Lp,reviewSelectionModal:bp,sectionHeadings:Tp,select:Op,shareResults:Pp,stepIndicator:Sp,verifySelectionsView:Np},Symbol.toStringTag,{value:"Module"})),$p={heading:"Pasos",timeIndicator:"Tiempo estimado",steps:{list:[{title:"Responda unas preguntas"},{title:"Obtenga su lista de posibles beneficios"},{title:"Aplique en los sitios web de cada agencia"}]},notices:{heading:"Antes de empezar:",iconAlt:"Importante",list:[{notice:"
Esto no es una aplicación.
"},{notice:"Sus respuestas no serán guardadas o presentadas."},{notice:"
Responda todas las preguntas para mejores resultados.
"}]},button:"Encuentre sus beneficios"},Dp={stepBackButton:"Volver"},Ip={value:"requerido"},Fp={heading:{prefix:"Tu información contiene",suffix:"errores"},description:"Responda los campos requeridos."},Ap={prefix:"Complete",suffix:""},Bp=[{value:"Volver"},{value:"Siguiente"}],zp={heading:"Seleccione una opción:",buttonGroup:[{value:"Revise sus respuestas"},{value:"Obtenga sus resultados"}]},Up={heading:"Revisar y confirmar",noResultsLabel:"No respondió",buttonGroup:[{value:"Volver"},{value:"Confirmar"}]},Vp={summaryBox:{heading:"Importante",list:[{item:"Visite el sitio web de cada agencia para confirmar su elegibilidad y requisitos."},{item:"Sus resultados podrían cambiar si responde más preguntas o modifica sus respuestas."}],cta:{text:"",link:"Borrar mis respuestas y empezar el formulario de nuevo."}},eligible:{chevron:{heading:"Sus beneficios potenciales",description:"

Visite la página de cada agencia para verificar los requisitos y aplicar. Para conocer otros beneficios, consulte a su ciudad, estado, o trabajo.

"},heading:"Resultados",description:"Podría ser elegible para estos beneficios:"},notEligible:{chevron:{heading:"Beneficios a los que no calificó",description:"

Según sus respuestas usted no es elegible para estos beneficios.

"},heading:"Resultados",description:"Según sus respuestas no es elegible para estos beneficios. Podría calificar si tiene información adicional o si su situación cambia."},zeroBenefits:{backcta:{text:"",link:"Volver al inicio"},eligible:{chevron:{heading:"Usted parece no ser elegible para estos beneficios",description:"

Si cree que cometió un error, por favor regrese para corregir sus respuestas.

"}},notEligible:{chevron:{heading:"Beneficios a los que no calificó",description:"

Según sus respuestas usted no es elegible para estos beneficios.

"}},heading:"No tiene resultados elegibles.",description:"Basado en sus respuestas usted no es elegible para estos beneficios. Podría ser elegible si ingresa más información o si su situación cambia.",cta:"Ver todos los beneficios"},stepBackButton:"Volver",eligibleResults:{heading:"Resultados",description:"Podría calificar para estos beneficios:"},benefitAccordionGroup:{closedState:"Abrir todos",openState:"Cerrar todos"},benefitAccordion:{eligibleStatusLabels:["Probablemente elegible","Más información requerida","No elegible"],agencyPrefix:"",benefitSummary:"Criterios de elegibilidad",benefitSummaryPrefix:"Cumple ",benefitSummaryConjunction:"de",unmetLabel:"No cumplió con",visitLabel:"Visite",sourceIsEnglish:"(en inglés)"},notEligibleResults:{heading:"Beneficios a los que no calificó",description:"
Según sus respuestas no es elegible para estos beneficios. Podría calificar si tiene información adicional o si su situación cambia.
",cta:"Explore otros beneficios"},relativeBenefits:{heading:"Más beneficios"},shareResults:{heading:"Imprima y comparta",shareTrigger:"Compartir resultados",emailTrigger:"Enviar resultados",shareLinkContent:"Copiado",emailSubject:"Resultados del buscador de beneficios de USAGov",description:"Copie o envíe sus resultados por correo. Sus respuestas serán visibles. Solo comparta con quienes confíe."}},Hp={heading:"Imprima y comparta",description:"Sus respuestas serán visibles. Solo comparta con quienes confíe.",buttonGroup:[{value:"Compartir resultados"},{value:"Enviar resultados"}]},Wp={start:"Responda las preguntas",continue:"Preguntas continuadas",final:"Preguntas finales"},Kp={labelSelect:"Seleccione una opción",defaultValue:"-Seleccionar-",dateDefaultValue:"-Seleccionar-"},qp={alert:"Use el formato enero 19 2000",labelDay:"Día",labelMonth:"Mes",labelYear:"Año",monthOptions:[{label:"01 - Enero"},{label:"02 - Febrero"},{label:"03 - Marzo"},{label:"04 - Abril"},{label:"05 - Mayo"},{label:"06 - Junio"},{label:"07 - Julio"},{label:"08 - Agosto"},{label:"09 - Septiembre"},{label:"10 - Octubre"},{label:"11 - Noviembre"},{label:"12 - Diciembre"}]},Gg={intro:$p,stepIndicator:Dp,requiredLabel:Ip,alertBanner:Fp,errorText:Ap,buttonGroup:Bp,reviewSelectionModal:zp,verifySelectionsView:Up,resultsView:Vp,shareResults:Hp,sectionHeadings:Wp,select:Kp,date:qp},Qp=Object.freeze(Object.defineProperty({__proto__:null,alertBanner:Fp,buttonGroup:Bp,date:qp,default:Gg,errorText:Ap,intro:$p,requiredLabel:Ip,resultsView:Vp,reviewSelectionModal:zp,sectionHeadings:Wp,select:Kp,shareResults:Hp,stepIndicator:Dp,verifySelectionsView:Up},Symbol.toStringTag,{value:"Module"})),Nt=k.createContext({}),Yg=k.createContext({en:Mp,es:Qp});function Xg({testAppContent:e,testQuery:t}){const n="shared",r="draft",l=t||window.location.search,i=l.includes(n),o=l.includes(r),s=H.Language();rr();const[a,c]=k.useState(()=>(H.LifeEvent().then(S=>(S==null?void 0:S.status)===200?c(S.data):c(e)),e)),[p,d]=k.useState(),[m,y]=k.useState();k.useEffect(()=>{a&&y([...a.benefits]),a&&d([...a.lifeEventForm.sectionsEligibilityCriteria])},[a]);const[x]=k.useState(s==="es"?Qp:Mp);k.useEffect(()=>{i&&p&&Yr.DataFromParams(l,p,y,m,n)},[l,i,p]);const g=k.useMemo(()=>H.Routes(window,s,p),[p&&p.length]);return(g==null?void 0:g.formPaths)&&u.jsx(Nt.Provider,{value:g,children:u.jsxs(Yg.Provider,{value:x,children:[o===!0&&u.jsx(ha,{children:"Draft Mode"}),u.jsx("div",{id:a==null?void 0:a.lifeEventForm.id,className:"benefit-finder","data-testid":"app","data-version":vm,children:u.jsx(mm,{basename:`/${g.basePath}`,children:u.jsxs(fm,{children:[u.jsx(yr,{path:`/${g.indexPath}`,element:p&&u.jsx(pp,{content:a.lifeEventForm,ui:x.intro,stepDataArray:p,indexPath:`/${g.indexPath}/`,hasQueryParams:i})}),g.formPaths.map((S,f)=>u.jsx(yr,{path:`/${g.indexPath}/${S}`,element:u.jsx("div",{children:u.jsx(Kf,{children:u.jsx(hp,{data:p,handleData:d,ui:x})})})},f)),u.jsx(yr,{path:`/${g.indexPath}/${g.verifySelectionsPath}`,element:u.jsx(xp,{ui:x,data:p,indexPath:g.indexPath})}),Object.keys(g.resultsPaths).map((S,f)=>{var h;return u.jsx(yr,{path:`/${g.indexPath}/${g.resultsPaths[S]}`,element:u.jsx(wp,{stepDataArray:p,relevantBenefits:(h=a==null?void 0:a.lifeEventForm)==null?void 0:h.relevantBenefits,data:m,setBenefitsArray:()=>y(),ui:x.resultsView,notEligibleView:f!==0})},f)})]})})})]})})}const Jg=vo.createRoot(document.getElementById("benefit-finder"));Jg.render(u.jsx(vc.StrictMode,{children:u.jsx(Xg,{})})); +https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=Sf,t.componentWillReceiveProps=Cf),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=kf;var s=t.componentDidUpdate;t.componentDidUpdate=function(c,f,m){var p=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:m;s.call(this,c,f,p)}}return e}const ev=Object.freeze(Object.defineProperty({__proto__:null,polyfill:Jm},Symbol.toStringTag,{value:"Module"})),tv=pp(ev);Object.defineProperty(vn,"__esModule",{value:!0});vn.bodyOpenClassName=vn.portalClassName=void 0;var bu=Object.assign||function(e){for(var t=1;t{const g=M.useRef(null),{modal:S,errors:x}=se.dataLayerStructure,b=()=>{u().then(E=>E===!0?f(!0):window.scrollTo(0,0)&&m.current.focus())},h=E=>(E&&E.current.focus(),window.location.hash="",hu.disableScroll(),f(!1),!0),d=E=>E.which===32||E.which===13;M.useEffect(()=>{c&&hu.enableScroll()},[c]),M.useEffect(()=>{const E=()=>{const N=document.getElementById("benefit-finder");N&&N.hasAttribute("aria-hidden")&&N.removeAttribute("aria-hidden")};return Ru.setAppElement("#benefit-finder"),E()},[]),c===!0&&Zr({pageView:S.bfData.pageView}),M.useEffect(()=>{(async()=>{c===!0&&se.dataLayerPush(window,{event:S.event,bfData:{pageView:S.bfData.pageView,viewTitle:`${p.viewTitle} modal`}})})().then(()=>{c===!0&&se.dataLayerPush(window,{event:x.event,bfData:{errors:"",errorCount:{number:0,string:"0"},formSuccess:!0}})})},[]);const v=({triggerLabel:E,onKeyDown:N,onClick:j})=>a.jsx(ta,{onClick:j,onKeyDown:N,noCarrot:!0,tabIndex:"0",triggerRef:g,"aria-label":"Continue",role:"button",children:E}),w=({navItemOneLabel:E,navItemOneFunction:N,navItemTwoLabel:j,navItemTwoFunction:L})=>{const B=H=>{h(g)&&H()},R=(H,ae)=>{d(H)&&h(g)&&ae()};return a.jsxs("ul",{className:"bf-modal bf-usa-button-group usa-button-group width-full",children:[a.jsx("li",{className:"bf-usa-button-group__item usa-button-group__item width-full",children:a.jsx(Te,{id:"bf-navItemOneBtn",className:"bf-nav-item-one width-full",onClick:()=>B(N),onKeyDown:H=>R(H,N),noCarrot:!0,tabIndex:"0",secondary:!0,children:E})},"bf-nav-item-one"),a.jsx("li",{className:"bf-usa-button-group__item usa-button-group__item width-full",children:a.jsx(Te,{id:"bf-navItemTwoBtn",className:"bf-nav-item-two width-full",onClick:()=>B(L),onKeyDown:H=>R(H,L),noCarrot:!0,tabIndex:"0",secondary:!0,children:j})},"nav-item-two")]})};return a.jsxs("div",{id:e,className:"bf-usa-modal-group",children:[a.jsx(v,{triggerLabel:n,onKeyDown:E=>d(E)&&b(),onClick:()=>b()}),a.jsxs(Ru,{id:"benefit-finder-modal",isOpen:c,onRequestClose:()=>h(g),style:mv,aria:{label:r},children:[a.jsx("button",{type:"button","aria-label":"Close",className:"bf-modal-button",onClick:()=>h(g),children:a.jsx(dt,{type:"modal-close",color:"black","aria-hidden":"true"})}),a.jsx(ee,{headingLevel:1,className:"bf-modal-heading",children:r}),t||a.jsx(w,{navItemOneLabel:l,navItemOneFunction:o,navItemTwoLabel:i,navItemTwoFunction:s})]})]})};_f.propTypes={id:y.string,children:y.node,triggerLabel:y.string,modalHeading:y.string,navItemOneLabel:y.string,navItemOneFunction:y.func,navItemTwoLabel:y.string,navItemTwoFunction:y.func,handleCheckRequriedFields:y.func};const jf=({data:e,iconAlt:t})=>{const n=r=>r&&r.data.map((l,o)=>a.jsxs("li",{className:"bf-notice",children:[a.jsx(dt,{type:"info","aria-label":t,role:"img"}),a.jsx("div",{className:"bf-notice-item",dangerouslySetInnerHTML:jt(l.notice)})]},`notice-${o}`));return a.jsx("div",{className:"bf-notices",children:a.jsx("ul",{className:"bf-notices-list add-list-reset",children:a.jsx(n,{data:e})})})};jf.propTypes={data:y.array};const ta=({children:e,className:t,href:n,rel:r,target:l,ext:o,noCarrot:i,triggerRef:s,...u})=>{const c=o?["bf-usa-button","usa-button","usa-button--secondary","bf-usa-button--secondary","bf-usa-link--external","usa-link--external","bf-obfuscated-link"]:["bf-usa-button","usa-button","bf-usa-button--secondary","usa-button--secondary","bf-obfuscated-link"],f=i===!0?null:a.jsx(dt,{type:"carrot-solid",color:"black","aria-hidden":"true"});return a.jsxs("a",{href:n,rel:r,target:l,className:ft({className:t,defaultClasses:c}),ref:s,...u,children:[e,f]})};ta.propTypes={children:y.node,className:y.string,href:y.string,rel:y.string,target:y.string,ext:y.bool,noCarrot:y.bool};y.node||y.string,y.oneOf(["regular","bold","extrabold","light","thin"]);const Nf=({steps:e})=>a.jsx("ol",{className:"bf-usa-process-list usa-process-list",children:e&&e.map((t,n)=>a.jsx("li",{className:"bf-usa-process-list__item usa-process-list__item",children:a.jsx("h3",{className:"bf-usa-process-list__heading usa-process-list__heading",children:t.title})},`process-item-${n}`))});Nf.propTypes={steps:y.array};const bf=({id:e,label:t,value:n,checked:r,onChange:l,required:o,className:i,name:s})=>{const u=o===!0?["required-field"]:"",c=["bf-usa-radio__input usa-radio__input"],f=u;return a.jsx(a.Fragment,{children:a.jsxs("div",{className:"bf-usa-radio usa-radio",children:[a.jsx("input",{className:ft({className:i,defaultClasses:c,utilityClasses:f}),type:"radio",name:s,value:n||e,checked:r,onChange:l,id:e}),a.jsx(Xs,{className:"bf-usa-radio__label usa-radio__label",htmlFor:e,label:t})]})})};bf.propTypes={id:y.string,label:y.string,value:y.string,checked:y.bool,onChange:y.func,className:y.string,name:y.string};const Lf=({invalid:e,values:t,fieldSetId:n,handleChanged:r,criteriaKey:l,errorMessage:o,legend:i,ui:s})=>{const u=s,c=o?`${o}`:`${u==null?void 0:u.prefix} ${i&&i.toLowerCase()} ${u==null?void 0:u.suffix}`;return a.jsx("div",{className:"bf-radio-group radio-group","aria-invalid":e,children:t&&t.map((f,m)=>{const p=`${n}_${m}`;return a.jsx(bf,{name:n,id:p,label:f.value,value:f.value,checked:f.selected||!1,onChange:g=>{r(g,l)},"data-errormessage":c,"aria-errormessage":`error-description-${p}`},p)})})};Lf.propTypes={invalid:y.bool,values:y.array,fieldSetId:y.string,handleChanged:y.func,criteriaKey:y.string};const Tf=({data:e,carrotType:t})=>a.jsx("ul",{className:"bf-usa-card-group usa-card-group",children:e&&e.map((n,r)=>{const{title:l,searchTitle:o,link:i,cta:s,body:u,lifeEventId:c}=n.lifeEvent,f=c.replace("es_","");return a.jsx(cf,{className:"bf-usa-card--relative-benefit bf-usa-card usa-card tablet:grid-col-12",title:o||l,cta:s,href:i,body:u,carrotType:t,icon:f,"data-testid":f},`${l}-${r}`)})});Tf.propTypes={data:y.array,carrotType:y.string};const Of=({ui:e})=>{const{eligible:t,summaryBox:n}=e;return a.jsxs("div",{children:[a.jsx(ee,{className:"bf-eligible-view-heading",headingLevel:2,children:t==null?void 0:t.heading}),a.jsx(ee,{className:"bf-eligible-view-description",headingLevel:3,dangerouslySetInnerHTML:jt(t==null?void 0:t.description)}),a.jsx(ra,{heading:n==null?void 0:n.heading,listItems:n==null?void 0:n.list,cta:n==null?void 0:n.cta})]})};Of.propTypes={props:y.any};const Mf=({ui:e})=>{const{notEligible:t,summaryBox:n}=e;return a.jsxs("div",{children:[a.jsx(ee,{className:"bf-not-eligible-view-heading",headingLevel:2,children:t==null?void 0:t.heading}),a.jsx(ee,{className:"bf-not-eligible-view-description",headingLevel:3,dangerouslySetInnerHTML:jt(t==null?void 0:t.description)}),a.jsx(ra,{heading:n==null?void 0:n.heading,listItems:n==null?void 0:n.list,cta:n==null?void 0:n.cta})]})};Mf.propTypes={props:y.any};const Pf=({handleViewToggle:e,notEligibleView:t,ui:n})=>a.jsxs(a.Fragment,{children:[a.jsx(ee,{className:"bf-zero-benefits-view-heading","data-testid":"zero-benefits-view-heading",headingLevel:2,children:n==null?void 0:n.heading}),a.jsx(ee,{className:"bf-zero-benefits-view-description",headingLevel:3,dangerouslySetInnerHTML:jt(n==null?void 0:n.description)}),!t&&a.jsx("div",{className:"bf-zero-benefits-view-cta",children:a.jsx(Te,{"data-testid":"zero-benefits-view-cta-button",onClick:e,secondary:!0,children:n==null?void 0:n.cta})})]});Pf.propTypes={handleViewToggle:y.func,notEligibleView:y.bool,ui:y.object};const Rf=({notEligibleView:e,zeroBenefitsResult:t,stepDataArray:n,isExpandAll:r,setExpandAll:l,handleStepBack:o,handleViewToggle:i,data:s,relevantBenefits:u,resetElement:c,ui:f})=>{const m=({notEligibleView:d,zeroBenefitsResult:v,ui:w})=>{const{eligible:E,notEligible:N,zeroBenefits:j}=w;return a.jsx(Ys,{heading:d===!1?v&&(j==null?void 0:j.eligible.chevron.heading)||(E==null?void 0:E.chevron.heading):v&&(j==null?void 0:j.notEligible.chevron.heading)||(N==null?void 0:N.chevron.heading),description:d===!1?v&&(j==null?void 0:j.eligible.chevron.description)||(E==null?void 0:E.chevron.description):v&&(j==null?void 0:j.notEligible.chevron.description)||(N==null?void 0:N.chevron.description)})},p=({zeroBenefitsResult:d,notEligibleView:v,ui:w})=>{const{notEligible:E,eligible:N,summaryBox:j,zeroBenefits:L}=w;return d?a.jsx(Pf,{handleViewToggle:i,notEligibleView:v,ui:L}):v?a.jsx(Mf,{ui:{notEligible:E,summaryBox:j}}):a.jsx(Of,{ui:{eligible:N,summaryBox:j}})},g=({notEligibleView:d,handleStepBack:v,ui:w})=>{const{stepBackButton:E}=w;return d===!1?a.jsx(na,{onClick:()=>c.current.focus(),setCurrent:v,children:E}):a.jsx(Te,{className:"bf-step-back-button",onClick:()=>i(),unstyled:!0,children:E})},S=({handleViewToggle:d,ui:v})=>{const{notEligibleResults:w}=v;return a.jsxs("div",{className:"bf-result-view-unmet",children:[a.jsx(ee,{className:"bf-result-view-unmet-heading",headingLevel:3,children:w==null?void 0:w.heading}),a.jsx("p",{dangerouslySetInnerHTML:jt(w==null?void 0:w.description)}),a.jsx("div",{className:"bf-result-view-cta-wrapper",children:a.jsx(Te,{"data-testid":"bf-result-view-unmet-button",secondary:!0,onClick:d,children:w==null?void 0:w.cta})})]})},x=({stepDataArray:d,ui:v})=>{const{shareResults:w}=v;return a.jsxs("div",{className:"bf-result-view-share-results",children:[a.jsx(ee,{className:"bf-result-view-share-results-heading",headingLevel:3,children:w==null?void 0:w.heading}),a.jsx("p",{children:w==null?void 0:w.description}),a.jsxs("ul",{className:"bf-result-view-share-results-button-group",children:[a.jsxs("li",{children:[" ",a.jsx(vv,{ui:w,data:d&&q.SelectedValueAll(d)})]}),a.jsxs("li",{children:[" ",a.jsx(Z0,{ui:w,data:d&&q.SelectedValueAll(d)})]})]})]})},b=({relevantBenefits:d,ui:v})=>{const{resultsRelativeBenefits:w}=v;return a.jsxs("div",{className:"bf-result-view-relvant-benefits",children:[a.jsx(ee,{className:"bf-result-view-relvant-benefits-heading",headingLevel:3,children:w==null?void 0:w.heading}),d&&a.jsx(Tf,{data:d,carrotType:"carrot"})]})},h=({zeroBenefitsResult:d,notEligibleView:v,stepDataArray:w,isExpandAll:E,setExpandAll:N,ui:j})=>a.jsx("div",{className:"bf-result-view-benefits",children:a.jsx(uf,{data:w&&q.ElegibilityByCriteria(q.SelectedValueAll(w),s),entryKey:"benefit",notEligibleView:v,expandAll:d===!1||d&&v,isExpandAll:E,setExpandAll:N,ui:j})});return a.jsxs(a.Fragment,{children:[a.jsx(m,{notEligibleView:e,zeroBenefitsResult:t,ui:f}),a.jsx("div",{className:"bf-grid-container grid-container",children:a.jsxs("div",{className:"bf-result-view-details",children:[a.jsx(g,{notEligibleView:e,ui:f,handleStepBack:o}),a.jsx(p,{zeroBenefitsResult:t,notEligibleView:e,ui:f}),a.jsx(h,{zeroBenefitsResult:t,notEligibleView:e,isExpandAll:r,setExpandAll:l,stepDataArray:n,ui:f}),e===!1&&t===!1&&a.jsx(S,{notEligibleView:e,zeroBenefitsResult:t,handleViewToggle:i,ui:f}),(u==null?void 0:u.length)>0&&a.jsx(b,{relevantBenefits:u,ui:f}),a.jsx(x,{stepDataArray:n,ui:f})]})})]})};Rf.propTypes={props:y.any};const Df=({handleStepBack:e,stepDataArray:t,relevantBenefits:n,ui:r,data:l})=>{const[o,i]=M.useState(!1),[s,u]=M.useState(null),{resultsView:c}=se.dataLayerStructure,[f,m]=M.useState(!1),p=Gr();M.useEffect(()=>{var d;(d=p.current)==null||d.focus()},[p]);const g=t&&q.SelectedValueAll(t).length,S=t&&q.ElegibilityByCriteria(q.SelectedValueAll(t),l).length,x=d=>{const v=[],w=document.querySelectorAll(".bf-accordion-sub-heading");for(const E of w)E.textContent.includes(d)&&v.push(E);return{number:v.length,string:`${v.length}`}},b=()=>{m(!1),i(!o),window.scrollTo(0,0),p.current.focus()},h=(s==null?void 0:s.eligibleBenefitCount.number)===0;return M.useEffect(()=>{window.scrollTo(0,0),u({eligibleBenefitCount:x(r.benefitAccordion.eligibleStatusLabels[0]),moreInfoBenefitCount:x(r.benefitAccordion.eligibleStatusLabels[1]),notEligibleBenefitCount:x(r.benefitAccordion.eligibleStatusLabels[2])})},[]),Zr({pageView:o===!0?c.bfData.pageView[1]:c.bfData.pageView[0],notEligibleView:o}),M.useEffect(()=>{s!==null&&se.dataLayerPush(window,{event:c.event,bfData:{pageView:o===!0?c.bfData.pageView[1]:c.bfData.pageView[0],viewTitle:o===!1?h&&r.zeroBenefits.eligible.chevron.heading||(r==null?void 0:r.eligible.chevron.heading):h&&(r==null?void 0:r.zeroBenefits.notEligible.chevron.heading)||(r==null?void 0:r.notEligible.chevron.heading),...s}})},[o,s]),M.useEffect(()=>{Gd({hide:!1})},[]),a.jsx("div",{className:"bf-result-view","data-testid":"bf-result-view","data-analytics":"bf-result-view","data-analytics-content":o===!0?"bf-not-eligible-view":"bf-eligible-view","data-analytics-content-criteria-values":g,"data-analytics-content-benefits":S,"data-analytics-content-eligible":s==null?void 0:s.eligibleBenefitCount.number,"data-analytics-content-not-eligible":s==null?void 0:s.notEligibleBenefitCount.number,"data-analytics-content-more-info":s==null?void 0:s.moreInfoBenefitCount.number,children:a.jsx(Rf,{handleStepBack:e,notEligibleView:o,zeroBenefitsResult:h,stepDataArray:t,handleViewToggle:b,isExpandAll:f,setExpandAll:m,relevantBenefits:n,resetElement:p,data:l,ui:r})})};Df.propTypes={handleStepBack:y.func,ui:y.object,data:y.array};const vv=({ui:e,data:t})=>{const[n,r]=M.useState(()=>to(window.location.href,t)),l=o=>{o.preventDefault(),r(to(window.location.href,t)),navigator.clipboard.writeText(n).then(()=>alert(`${e==null?void 0:e.shareLinkContent} ${n}`),i=>alert("Failed to copy",i))};return a.jsx("a",{href:"",className:"bf-share-trigger bf-usa-link usa-link",onClick:o=>l(o),"data-testid":"bf-share-trigger",children:(e==null?void 0:e.shareTrigger)||"Share"})},$f=({data:e,noHeadings:t,current:n,setCurrent:r,backLinkLabel:l,handleCheckRequriedFields:o})=>{const i=({completed:u})=>a.jsx("span",{className:"usa-sr-only",children:u?" completed":" not completed"}),s=({heading:u,current:c,completed:f,index:m})=>{const p=c===m?"--current":"";return a.jsx("li",{className:`bf-usa-step-indicator__segment usa-step-indicator__segment bf-usa-step-indicator__segment${p} usa-step-indicator__segment${p} ${f===!0?"bf-usa-step-indicator__segment--complete usa-step-indicator__segment--complete":""}`,"aria-current":c===m,children:a.jsxs("span",{className:"bf-usa-step-indicator__segment-label usa-step-indicator__segment-label",children:[!t&&u,a.jsx(i,{completed:f},`step-indicator-sr-${m}`)]},`step-indicator-label-${m}`)},`step-indicator-${u}`)};return a.jsxs("div",{children:[e&&e.length>0&&a.jsx("div",{className:"bf-usa-step-indicator usa-step-indicator","aria-label":"progress",tabIndex:0,children:a.jsx("ol",{className:"bf-usa-step-indicator__segments usa-step-indicator__segments",children:e&&e.map((u,c)=>{const f=u.section.heading,m=u.completed;return a.jsx(s,{heading:f,index:c,current:n,setCurrent:r,completed:m,handleCheckRequriedFields:o},`${f}-${c}`)})})}),a.jsx(na,{currentIndex:n,setCurrent:r,children:l})]})};$f.propTypes={data:y.array,noHeadings:y.bool,current:y.number,backLinkLabel:y.string};const na=({children:e,setCurrent:t,currentIndex:n})=>{const r=Gr(),l=()=>{t(n),r.current.focus()};return a.jsx(Te,{className:"bf-step-back-button",unstyled:!0,onClick:()=>l(),children:e||"Back"})};na.propTypes={children:y.node,setCurrent:y.func,currentIndex:y.number};function Ff({label:e,htmlFor:t,options:n,selected:r,onChange:l,ui:o,className:i,invalid:s,legend:u,errorMessage:c}){const{select:f,errorText:m}=o,p=[`bf-usa-select usa-select ${s===!0?"usa-input--error":""}`],g=({options:x})=>x.map(b=>a.jsx("option",{value:b.value,children:b.value},b.value)),S=c?`${c}`:`${m==null?void 0:m.prefix} ${u&&u.toLowerCase()} ${m==null?void 0:m.suffix}`;return a.jsxs(a.Fragment,{children:[a.jsx(Xs,{label:e||(f==null?void 0:f.labelSelect),htmlFor:t}),a.jsxs("select",{className:ft({className:i,defaultClasses:p}),name:t,id:t,onChange:l,value:r||"","aria-invalid":s===!0,"data-errormessage":S,"aria-errormessage":`error-description-${t}`,children:[a.jsx("option",{value:"",children:f==null?void 0:f.defaultValue},"default"),a.jsx(g,{options:n})]})]})}Ff.propTypes={label:y.string,htmlFor:y.string,options:y.array,selected:y.string,onChange:y.func,required:y.bool,ui:y.object,className:y.string,invalid:y.bool};const ra=({heading:e,listItems:t,cta:n})=>{const r=l=>{l.preventDefault(),window.location.href=`${window.location.origin}${window.location.pathname}`};return a.jsx("div",{className:"bf-usa-summary-box usa-summary-box",role:"region","aria-labelledby":"bf-summary-box-key-information",children:a.jsxs("div",{className:"bf-usa-summary-box__body usa-summary-box__body",children:[a.jsx(ee,{headingLevel:4,className:"bf-usa-summary-box__heading usa-summary-box__heading",id:"bf-summary-box-key-information",children:e}),a.jsx("div",{className:"bf-usa-summary-box__text usa-summary-box__text",children:a.jsxs("ul",{className:"bf-usa-list usa-list",children:[t&&t.map((l,o)=>a.jsx("li",{children:l.item},`bf-summary-list-${o}`)),a.jsxs("li",{children:[n==null?void 0:n.text," ",a.jsx("a",{className:"bf-usa-summary-box__link usa-summary-box__link",href:"#",onClick:l=>r(l),children:n==null?void 0:n.link})]})]})})]})})};ra.propTypes={props:y.any};y.string,y.string,y.string,y.bool;const If=({timeEstimate:e,description:t})=>a.jsxs("div",{className:"time-indicator",children:[t," ",e]});If.propTypes={description:y.string,timeEstimate:y.string};const Af=({handleStepForward:e,handleStepBack:t,ui:n,data:r})=>{const{stepIndicator:l,verifySelectionsView:o,buttonGroup:i}=n,{verifySelections:s}=se.dataLayerStructure,u=q.Language(),c={year:"numeric",month:"long",day:"numeric"},f=({item:g,index:S})=>a.jsxs("div",{className:"bf-verify-criteria-value",children:[a.jsx("div",{className:"bf-verify-criteria-legend",children:g.fieldset.legend},`bf-criteria-${g.fieldset.criteriaKey}-${S}`),o==null?void 0:o.noResultsLabel]}),m=({criteriaId:g,legend:S,selected:x})=>a.jsxs("div",{className:"bf-verify-criteria-value",children:[a.jsx("div",{className:"bf-verify-criteria-legend",children:S}),typeof(x==null?void 0:x.value)=="object"?`${Qh(x.value).toLocaleDateString(u,c)}`:x==null?void 0:x.value]},g),p=({item:g,index:S})=>a.jsxs("div",{children:[m({criteriaId:`criteria-${g.fieldset.criteriaKey}-${S}`,legend:g.fieldset.legend,selected:q.SelectedValue(g)}),q.Children(g).map(x=>q.SelectedValue(x)?m({criteriaId:x.fieldset.criteriaKey,legend:x.fieldset.legend,selected:q.SelectedValue(x)}):a.jsx(f,{item:x},x.fieldset.criteriaKey))]});return M.useEffect(()=>{window.scrollTo(0,0)},[]),Zr({pageView:s.bfData.pageView}),M.useEffect(()=>{se.dataLayerPush(window,{event:s.event,bfData:{pageView:s.bfData.pageView,viewTitle:o==null?void 0:o.heading}})},[]),a.jsx("div",{className:"bf-verify-selections-view",children:a.jsxs("div",{className:"bf-grid-container grid-container",children:[a.jsx(ee,{className:"bf-section-heading",headingLevel:1,children:o==null?void 0:o.heading}),a.jsx("div",{className:"bf-section-wrapper",children:a.jsxs("div",{className:"bf-section-info",children:[a.jsx(Te,{className:"bf-step-back-button",onClick:t,unstyled:!0,children:l==null?void 0:l.stepBackButton}),a.jsx("div",{children:r&&r.map((g,S)=>{const{section:x}=g;return a.jsxs("div",{className:"bf-verify-criteria-section",children:[a.jsx(ee,{className:"bf-verify-criteria-section-heading",headingLevel:2,children:x.heading}),a.jsx("div",{children:x.fieldsets.map((b,h)=>q.SelectedValue(b)?a.jsx(p,{item:b,index:h},`bf-criteria-item-${h}`):a.jsx(f,{item:b,index:h},`bf-criteria-item-${h}`))})]},`bf-section-${x.heading}`)})}),a.jsxs("div",{className:"bf-section-nav-btn-group",children:[a.jsx(Te,{outline:!0,onClick:t,children:i[0].value}),a.jsx(Te,{secondary:!0,onClick:e,children:i[1].value})]})]})})]})})};Af.propTypes={handleStepForward:y.func,handleStepBck:y.func,ui:y.object,data:y.array};const zf={heading:"Steps",timeIndicator:"Estimated time",steps:{list:[{title:"Answer questions"},{title:"Get your list of benefits"},{title:"Visit agency websites to apply"}]},notices:{heading:"Before you start:",iconAlt:"Important",list:[{notice:"
This is not an application.
"},{notice:"You'll need to apply for benefits with each agency."},{notice:"
We don't share, save, or submit your information.
"}]},button:"Start finding benefits"},Bf={stepBackButton:"Back"},Vf={value:"required"},Hf={heading:{prefix:"Your information contains",suffix:"errors"},description:"Complete all required fields."},Uf={prefix:"Fill out the",suffix:"field"},Wf=[{value:"Back"},{value:"Next"}],Kf={heading:"Select an option:",buttonGroup:[{value:"Review your selections"},{value:"Get your results"}]},qf={heading:"Review and confirm",noResultsLabel:"Not answered",buttonGroup:[{value:"Back"},{value:"Confirm"}]},Qf={summaryBox:{heading:"Important",list:[{item:"Visit each agency’s website to find full eligibility requirements."},{item:"Your results may change if you answer more questions or modify your answers."}],cta:{text:"",link:"Clear my answers and restart the form."}},eligible:{chevron:{heading:"Your potential benefits",description:"

Visit each agency to find true eligibility and to apply. Check with your city, state, or employer for other benefits.

"},heading:"Results",description:"You may be eligible for these benefits:"},notEligible:{chevron:{heading:"Benefits you did not qualify for",description:"

According to your answers you are not eligible for these benefits.

"},heading:"Results",description:"Based on your answers you are not eligible for these benefits.You may become eligible if you enter additional information or your situation changes."},zeroBenefits:{eligible:{chevron:{heading:"You are likely not eligible for these benefits.",description:"

If you reached these results by mistake, please go back to review your answers.

"}},notEligible:{chevron:{heading:"Benefits you did not qualify for",description:"

According to your answers you are not eligible for these benefits.

"}},heading:"No eligible results.",description:"Based on your answers you are likely not eligible for benefits. You may become eligible if you enter more information or your situation changes.",cta:"See all benefits"},stepBackButton:"Back",eligibleResults:{heading:"Results",description:"You may be eligible for these benefits."},benefitAccordionGroup:{closedState:"Expand all",openState:"Close all"},benefitAccordion:{eligibleStatusLabels:["Likely eligible","More information needed","Not eligible"],agencyPrefix:"By",benefitSummary:"Key eligibility criteria",benefitSummaryPrefix:"Met ",benefitSummaryConjunction:"of",unmetLabel:"Unmet criteria",visitLabel:"Visit"},notEligibleResults:{heading:"Benefits you did not qualify for",description:"
Based on your answers you are not eligible for these benefits. You may become eligible if you enter additional information or your situation changes.
",cta:"Explore other potential benefits"},resultsRelativeBenefits:{heading:"More benefits"},shareResults:{heading:"Share results",shareTrigger:"Share link",shareLinkContent:"Copied",emailTrigger:"Email results",emailSubject:"Results from USAGov’s benefit finder",description:"Copy or email these results. Your answers will be visible. Only share with those you trust."}},Zf={heading:"Share results",description:"Your information will be viewable. Only share with those you trust.",buttonGroup:[{value:"Share link"},{value:"Email results"}]},Gf={start:"Answer these questions",continue:"Questions continued",final:"Final questions"},Yf={labelSelect:"Select an option",defaultValue:"-Select-",dateDefaultValue:"-Select-"},Xf={alert:"Date should follow the format January 19 2000",labelDay:"Day",labelMonth:"Month",labelYear:"Year",monthOptions:[{label:"01 - January"},{label:"02 - February"},{label:"03 - March"},{label:"04 - April"},{label:"05 - May"},{label:"06 - June"},{label:"07 - July"},{label:"08 - August"},{label:"09 - September"},{label:"10 - October"},{label:"11 - November"},{label:"12 - December"}]},gv={intro:zf,stepIndicator:Bf,requiredLabel:Vf,alertBanner:Hf,errorText:Uf,buttonGroup:Wf,reviewSelectionModal:Kf,verifySelectionsView:qf,resultsView:Qf,shareResults:Zf,sectionHeadings:Gf,select:Yf,date:Xf},Du=Object.freeze(Object.defineProperty({__proto__:null,alertBanner:Hf,buttonGroup:Wf,date:Xf,default:gv,errorText:Uf,intro:zf,requiredLabel:Vf,resultsView:Qf,reviewSelectionModal:Kf,sectionHeadings:Gf,select:Yf,shareResults:Zf,stepIndicator:Bf,verifySelectionsView:qf},Symbol.toStringTag,{value:"Module"})),Jf={heading:"Pasos",timeIndicator:"Tiempo estimado",steps:{list:[{title:"Responda unas preguntas"},{title:"Obtenga su lista de posibles beneficios"},{title:"Aplique en los sitios web de cada agencia"}]},notices:{heading:"Antes de empezar:",iconAlt:"Importante",list:[{notice:"
Esto no es una aplicación.
"},{notice:"Sus respuestas no serán guardadas o presentadas."},{notice:"
Responda todas las preguntas para mejores resultados.
"}]},button:"Encuentre sus beneficios"},ep={stepBackButton:"Volver"},tp={value:"requerido"},np={heading:{prefix:"Tu información contiene",suffix:"errores"},description:"Responda los campos requeridos."},rp={prefix:"Complete",suffix:""},lp=[{value:"Volver"},{value:"Siguiente"}],op={heading:"Seleccione una opción:",buttonGroup:[{value:"Revise sus respuestas"},{value:"Obtenga sus resultados"}]},ip={heading:"Revisar y confirmar",noResultsLabel:"No respondió",buttonGroup:[{value:"Volver"},{value:"Confirmar"}]},sp={summaryBox:{heading:"Importante",list:[{item:"Visite el sitio web de cada agencia para confirmar su elegibilidad y requisitos."},{item:"Sus resultados podrían cambiar si responde más preguntas o modifica sus respuestas."}],cta:{text:"",link:"Borrar mis respuestas y empezar el formulario de nuevo."}},eligible:{chevron:{heading:"Sus beneficios potenciales",description:"

Visite la página de cada agencia para verificar los requisitos y aplicar. Para conocer otros beneficios, consulte a su ciudad, estado, o trabajo.

"},heading:"Resultados",description:"Podría ser elegible para estos beneficios:"},notEligible:{chevron:{heading:"Beneficios a los que no calificó",description:"

Según sus respuestas usted no es elegible para estos beneficios.

"},heading:"Resultados",description:"Según sus respuestas no es elegible para estos beneficios. Podría calificar si tiene información adicional o si su situación cambia."},zeroBenefits:{eligible:{chevron:{heading:"Usted parece no ser elegible para estos beneficios",description:"

Si cree que cometió un error, por favor regrese para corregir sus respuestas.

"}},notEligible:{chevron:{heading:"Beneficios a los que no calificó",description:"

Según sus respuestas usted no es elegible para estos beneficios.

"}},heading:"No tiene resultados elegibles.",description:"Basado en sus respuestas usted no es elegible para estos beneficios. Podría ser elegible si ingresa más información o si su situación cambia.",cta:"Ver todos los beneficios"},stepBackButton:"Volver",eligibleResults:{heading:"Resultados",description:"Podría calificar para estos beneficios:"},benefitAccordionGroup:{closedState:"Abrir todos",openState:"Cerrar todos"},benefitAccordion:{eligibleStatusLabels:["Probablemente elegible","Más información requerida","No elegible"],agencyPrefix:"",benefitSummary:"Criterios de elegibilidad",benefitSummaryPrefix:"Cumple ",benefitSummaryConjunction:"de",unmetLabel:"No cumplió con",visitLabel:"Visite",sourceIsEnglish:"(en inglés)"},notEligibleResults:{heading:"Beneficios a los que no calificó",description:"
Según sus respuestas no es elegible para estos beneficios. Podría calificar si tiene información adicional o si su situación cambia.
",cta:"Explore otros beneficios"},relativeBenefits:{heading:"Más beneficios"},shareResults:{heading:"Imprima y comparta",shareTrigger:"Compartir resultados",emailTrigger:"Enviar resultados",shareLinkContent:"Copiado",emailSubject:"Resultados del buscador de beneficios de USAGov",description:"Copie o envíe sus resultados por correo. Sus respuestas serán visibles. Solo comparta con quienes confíe."}},ap={heading:"Imprima y comparta",description:"Sus respuestas serán visibles. Solo comparta con quienes confíe.",buttonGroup:[{value:"Compartir resultados"},{value:"Enviar resultados"}]},up={start:"Responda las preguntas",continue:"Preguntas continuadas",final:"Preguntas finales"},cp={labelSelect:"Seleccione una opción",defaultValue:"-Seleccionar-",dateDefaultValue:"-Seleccionar-"},dp={alert:"Use el formato enero 19 2000",labelDay:"Día",labelMonth:"Mes",labelYear:"Año",monthOptions:[{label:"01 - Enero"},{label:"02 - Febrero"},{label:"03 - Marzo"},{label:"04 - Abril"},{label:"05 - Mayo"},{label:"06 - Junio"},{label:"07 - Julio"},{label:"08 - Agosto"},{label:"09 - Septiembre"},{label:"10 - Octubre"},{label:"11 - Noviembre"},{label:"12 - Diciembre"}]},yv={intro:Jf,stepIndicator:ep,requiredLabel:tp,alertBanner:np,errorText:rp,buttonGroup:lp,reviewSelectionModal:op,verifySelectionsView:ip,resultsView:sp,shareResults:ap,sectionHeadings:up,select:cp,date:dp},$u=Object.freeze(Object.defineProperty({__proto__:null,alertBanner:np,buttonGroup:lp,date:dp,default:yv,errorText:rp,intro:Jf,requiredLabel:tp,resultsView:sp,reviewSelectionModal:op,sectionHeadings:up,select:cp,shareResults:ap,stepIndicator:ep,verifySelectionsView:ip},Symbol.toStringTag,{value:"Module"}));function wv({testAppContent:e,testQuery:t}){var B;const n=M.createContext({en:Du,es:$u}),r="shared",l="draft",o=t||window.location.search,i=o.includes(r),s=o.includes(l);Gr();const[u,c]=M.useState(()=>(q.LifeEvent().then(R=>(R==null?void 0:R.status)===200?c(R.data):c(e)),e)),[f,m]=M.useState(),[p,g]=M.useState(),[S,x]=M.useState(!1);M.useEffect(()=>{u&&g([...u.benefits]),u&&m([...u.lifeEventForm.sectionsEligibilityCriteria])},[u]);const[b]=M.useState(q.Language()==="es"?$u:Du),[h,d]=M.useState(i?null:0),[v,w]=M.useState(()=>f&&f[h]),[E,N]=M.useState(!1),[j,L]=M.useState(i);return M.useEffect(()=>{i&&(f&&Br.DataFromParams(o,f,w,r),f&&d(f.length))},[o,i,f]),u&&a.jsxs(n.Provider,{value:b,children:[s===!0&&a.jsx(Gs,{children:"Draft Mode"}),a.jsx("div",{id:u==null?void 0:u.lifeEventForm.id,className:`benefit-finder ${h!==0&&j!==!0?"form":""}`,"data-testid":"app","data-version":zh,children:h===0?a.jsx(hf,{data:u.lifeEventForm,ui:b.intro,setStep:d,step:h}):j===!0?a.jsx(Df,{stepDataArray:f,relevantBenefits:(B=u==null?void 0:u.lifeEventForm)==null?void 0:B.relevantBenefits,data:p,setBenefitsArray:()=>g(),ui:b.resultsView,handleStepBack:()=>{N(!1),L(!1)}}):E===!1?a.jsx("div",{children:a.jsx(ff,{children:a.jsx(vf,{step:h,setStep:d,data:f,handleData:m,stepData:v,setStepData:w,verifyStep:E,setVerifyStep:()=>{N(!0),x(!1)},setViewResults:()=>{L(!0),x(!1)},ui:b,modalOpen:S,setModalOpen:x})})}):a.jsx(Af,{handleStepBack:()=>{N(!1),L(!1)},handleStepForward:()=>{L(!0)},ui:b,data:f,step:h,setStep:d})})]})}const xv=ni.createRoot(document.getElementById("benefit-finder"));xv.render(a.jsx(Lp.StrictMode,{children:a.jsx(wv,{})})); From 529d423ad151dda54b27cca186ba9302b76577d8 Mon Sep 17 00:00:00 2001 From: scottqueen-bixal Date: Wed, 13 Nov 2024 14:14:36 -0500 Subject: [PATCH 05/11] remove use of archive content in JSON data --- .../src/Traits/BenefitFinderTrait.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/web/modules/custom/usagov_benefit_finder/src/Traits/BenefitFinderTrait.php b/web/modules/custom/usagov_benefit_finder/src/Traits/BenefitFinderTrait.php index 5449eae895..b509b47e2b 100644 --- a/web/modules/custom/usagov_benefit_finder/src/Traits/BenefitFinderTrait.php +++ b/web/modules/custom/usagov_benefit_finder/src/Traits/BenefitFinderTrait.php @@ -8,6 +8,7 @@ namespace Drupal\usagov_benefit_finder\Traits; use Drupal\Core\Entity\EntityInterface; +use Drupal\node\Entity\Node; use Drupal\node\NodeInterface; /** @@ -158,6 +159,19 @@ public function getLifeEventForm($nid, $mode) { * The node revision entity. */ public function getNode($nid, $mode) { + $node = Node::load($nid); + + if (!$node) { + return NULL; + } + + if ($node->hasField('moderation_state')) { + $moderation_state = $node->get('moderation_state')->value; + if ($moderation_state == 'archived') { + return NULL; + } + } + if ($mode == "published") { $query = $this->entityTypeManager->getStorage('node') ->getQuery() From 012feac2e7e76d1209f37312076fc2faacdc59a1 Mon Sep 17 00:00:00 2001 From: scottqueen-bixal Date: Wed, 13 Nov 2024 14:15:20 -0500 Subject: [PATCH 06/11] resolve AJAX HTTP error, and allow raw html rendering --- .../src/Controller/LifeEventController.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_api/src/Controller/LifeEventController.php b/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_api/src/Controller/LifeEventController.php index 9d1512661d..6651db665c 100644 --- a/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_api/src/Controller/LifeEventController.php +++ b/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_api/src/Controller/LifeEventController.php @@ -226,9 +226,11 @@ public function getData($id) { if (empty($life_event_form_node)) { $result = []; $json = json_encode($result, JSON_PRETTY_PRINT); - print_r("

JSON Data

");
-      print_r($json);
-      print_r("
"); + if ($this->displayData) { + print_r("

JSON Data

");
+        print_r($json);
+        print_r("
"); + } return $result; } @@ -320,6 +322,7 @@ public function getData($id) { "benefits" => $benefits, ]; $json = json_encode($result, JSON_PRETTY_PRINT); + $json = htmlspecialchars($json); if ($this->displayData) { print_r("

JSON Data

");

From 9b2e12f7fe2fa364ed5e3998182e5caa98f69804 Mon Sep 17 00:00:00 2001
From: scottqueen-bixal 
Date: Wed, 13 Nov 2024 14:16:11 -0500
Subject: [PATCH 07/11] prevent archive agency, criteria, and life-event form
 when in use

---
 .../usagov_benefit_finder_content.module      | 221 +++++++++++++-----
 1 file changed, 166 insertions(+), 55 deletions(-)

diff --git a/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_content/usagov_benefit_finder_content.module b/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_content/usagov_benefit_finder_content.module
index 0b83e85535..7b686f72ea 100644
--- a/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_content/usagov_benefit_finder_content.module
+++ b/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_content/usagov_benefit_finder_content.module
@@ -133,19 +133,62 @@ function usagov_benefit_finder_content_node_bears_benefit_edit_form_validate(arr
 /**
  * Implements hook_form_FORM_ID_alter().
  */
-function usagov_benefit_finder_content_form_node_bears_agency_delete_form_alter(array &$form, FormStateInterface $form_state) {
-  _usagov_benefit_finder_content_check_agency_usage($form);
+function usagov_benefit_finder_content_form_node_bears_agency_edit_form_alter(array &$form, FormStateInterface $form_state) {
+  $form['#validate'][] = '_usagov_benefit_finder_content_agency_archived';
 }
 
 /**
- * It checks agency usage in benefits.
- * If still used, it lists the benefits and disables the agency delete button.
+ * It checks agency usage in benefits when an agency to be archived.
+ * If still used, it lists the benefits and prevents the agency to be archived.
  *
  * @param array $form
  *   Form array.
+ * @param FormStateInterface $form_state
+ *   Form state object.
  */
-function _usagov_benefit_finder_content_check_agency_usage(array &$form) {
-  $description = '';
+function _usagov_benefit_finder_content_agency_archived(array &$form, FormStateInterface $form_state) {
+  $line = 0;
+  $moderation_state = $form_state->getValue('moderation_state');
+  $state_value = $moderation_state[0]['value'];
+  if ($state_value == 'archived') {
+    $result = _usagov_benefit_finder_content_check_agency_usage();
+    if (!empty($result)) {
+      $form_state->setErrorByName(++$line, t("This agency cannot be archived as it is still used in following benefits:"));
+      foreach ($result as $row) {
+        $form_state->setErrorByName(++$line, "$row[title] ($row[nid])");
+      }
+    }
+  }
+}
+
+/**
+ * Implements hook_form_FORM_ID_alter().
+ */
+function usagov_benefit_finder_content_form_node_bears_agency_delete_form_alter(array &$form, FormStateInterface $form_state) {
+  $return = _usagov_benefit_finder_content_check_agency_usage();
+  if (!empty($return)) {
+    $description = '';
+    foreach ($return as $row) {
+      $description .= "
  • $row[title] ($row[nid])
  • "; + } + $description = '
    ' + . 'This agency cannot be deleted as it is still used in following benefits:' + . "
      $description
    " + . '
    '; + $form['description']['#markup'] = $description; + $form['actions']['submit']['#access'] = FALSE; + } +} + +/** + * It checks agency usage in benefits. + * If still used, it returns array of node ID and title of these benefits. + * + * @return array + * An array containing node ID and title. + */ +function _usagov_benefit_finder_content_check_agency_usage() { + $return = []; $node = \Drupal::routeMatch()->getParameter('node'); $nid = $node->id(); @@ -159,16 +202,44 @@ function _usagov_benefit_finder_content_check_agency_usage(array &$form) { $result = $query->execute(); foreach ($result as $row) { - $description .= "
  • $row->title ($row->nid)
  • "; + $return[] = [ + 'nid' => $row->nid, + 'title' => $row->title, + ]; } - if (!empty($description)) { - $description = '
    ' - . 'This agency cannot be deleted as it is still used in following benefits:' - . "
      $description
    " - . '
    '; - $form['description']['#markup'] = $description; - $form['actions']['submit']['#access'] = FALSE; + return $return; +} + +/** + * Implements hook_form_FORM_ID_alter(). + */ +function usagov_benefit_finder_content_form_node_bears_criteria_edit_form_alter(array &$form, FormStateInterface $form_state) { + $form['#validate'][] = '_usagov_benefit_finder_content_node_bears_criteria_edit_form_validate'; + $form['#validate'][] = '_usagov_benefit_finder_content_criteria_archived'; +} + +/** + * It checks criteria usage in benefits and life event forms when a criteria to be archived. + * If still used, it lists the benefits and life event forms and prevents the criteria to be archived. + * + * @param array $form + * Form array. + * @param FormStateInterface $form_state + * Form state object. + */ +function _usagov_benefit_finder_content_criteria_archived(array &$form, FormStateInterface $form_state) { + $line = 0; + $moderation_state = $form_state->getValue('moderation_state'); + $state_value = $moderation_state[0]['value']; + if ($state_value == 'archived') { + $result = _usagov_benefit_finder_content_check_criteria_usage(); + if (!empty($result)) { + $form_state->setErrorByName(++$line, t("This criteria cannot be archived as it is still used in following contents:")); + foreach ($result as $row) { + $form_state->setErrorByName(++$line, "$row[type]: $row[title] ($row[nid])"); + } + } } } @@ -176,40 +247,53 @@ function _usagov_benefit_finder_content_check_agency_usage(array &$form) { * Implements hook_form_FORM_ID_alter(). */ function usagov_benefit_finder_content_form_node_bears_criteria_delete_form_alter(array &$form, FormStateInterface $form_state) { - _usagov_benefit_finder_content_check_criteria_usage($form); + $return = _usagov_benefit_finder_content_check_criteria_usage(); + if (!empty($return)) { + $description = ''; + foreach ($return as $row) { + $description .= "
  • $row[type]: $row[title] ($row[nid])
  • "; + } + $description = '
    ' + . 'This criteria cannot be deleted as it is still used in following contents:' + . "
      $description
    " + . '
    '; + $form['description']['#markup'] = $description; + $form['actions']['submit']['#access'] = FALSE; + } } /** * It checks criteria usage in benefits and life event forms. - * If still used, it lists the benefits and life event forms and disables the criteria delete confirmation button. + * If still used, it returns array of node ID and title of these benefits and life event forms. * - * @param array $form - * Form array. + * @return array + * An array containing node ID and title. */ -function _usagov_benefit_finder_content_check_criteria_usage(array &$form) { - $description = ''; +function _usagov_benefit_finder_content_check_criteria_usage() { + $return = []; $node = \Drupal::routeMatch()->getParameter('node'); $nid = $node->id(); $result = _usagov_benefit_finder_content_check_criteria_usage_in_life_event_form($nid); foreach ($result as $row) { - $description .= "
  • Life event form: $row[title] ($row[nid])
  • "; + $return[] = [ + 'type' => 'Life event form', + 'nid' => $row['nid'], + 'title' => $row['title'], + ]; } $result = _usagov_benefit_finder_content_check_criteria_usage_in_benefit($nid); foreach ($result as $row) { - $description .= "
  • Benefit: $row[title] ($row[nid])
  • "; + $return[] = [ + 'type' => 'Benefit', + 'nid' => $row['nid'], + 'title' => $row['title'], + ]; } - if (!empty($description)) { - $description = '
    ' - . 'This criteria cannot be deleted as it is still used in following content:' - . "
      $description
    " - . '
    '; - $form['description']['#markup'] = t($description); - $form['actions']['submit']['#access'] = FALSE; - } + return $return; } /** @@ -301,18 +385,6 @@ function _usagov_benefit_finder_content_check_criteria_usage_in_benefit(int $nid return $return; } -/** - * Implements hook_form_FORM_ID_alter(). - * - * @param array $form - * Form array. - * @param FormStateInterface $form_state - * Form state object. - */ -function usagov_benefit_finder_content_form_node_bears_criteria_edit_form_alter(array &$form, FormStateInterface $form_state) { - $form['#validate'][] = '_usagov_benefit_finder_content_node_bears_criteria_edit_form_validate'; -} - /** * Validates criteria edit form hasChild field. * @@ -393,29 +465,44 @@ function _usagov_benefit_finder_content_check_criteria_has_child(int $nid) { /** * Implements hook_form_FORM_ID_alter(). */ -function usagov_benefit_finder_content_form_node_bears_life_event_form_delete_form_alter(array &$form, FormStateInterface $form_state) { - _usagov_benefit_finder_content_check_life_event_form_usage($form); +function usagov_benefit_finder_content_form_node_bears_life_event_form_edit_form_alter(array &$form, FormStateInterface $form_state) { + $form['#validate'][] = '_usagov_benefit_finder_content_life_event_form_archived'; } /** * It checks life event form usage in relevant benefit of life event forms. - * If still used, it lists the life event forms and disables the delete confirmation button. + * If still used, it returns array of node ID and title of these life event forms. * * @param array $form * Form array. + * @param FormStateInterface $form_state + * Form state object. */ -function _usagov_benefit_finder_content_check_life_event_form_usage(array &$form) { - $description = ''; - - $node = \Drupal::routeMatch()->getParameter('node'); - $nid = $node->id(); - - $result = _usagov_benefit_finder_content_check_life_event_form_usage_in_life_event_form($nid); - foreach ($result as $row) { - $description .= "
  • Life event form: $row[title] ($row[nid])
  • "; +function _usagov_benefit_finder_content_life_event_form_archived(array &$form, FormStateInterface $form_state) { + $line = 0; + $moderation_state = $form_state->getValue('moderation_state'); + $state_value = $moderation_state[0]['value']; + if ($state_value == 'archived') { + $result = _usagov_benefit_finder_content_check_life_event_form_usage(); + if (!empty($result)) { + $form_state->setErrorByName(++$line, t("This life event form cannot be archived as it is still used in following contents:")); + foreach ($result as $row) { + $form_state->setErrorByName(++$line, "Life event form: $row[title] ($row[nid])"); + } + } } +} - if (!empty($description)) { +/** + * Implements hook_form_FORM_ID_alter(). + */ +function usagov_benefit_finder_content_form_node_bears_life_event_form_delete_form_alter(array &$form, FormStateInterface $form_state) { + $return = _usagov_benefit_finder_content_check_life_event_form_usage(); + if (!empty($return)) { + $description = ''; + foreach ($return as $row) { + $description .= "
  • Life event form: $row[title] ($row[nid])
  • "; + } $description = '
    ' . 'This life event form cannot be deleted as it is still used in following content:' . "
      $description
    " @@ -425,6 +512,30 @@ function _usagov_benefit_finder_content_check_life_event_form_usage(array &$form } } +/** + * It checks life event form usage in relevant benefit of life event forms. + * If still used, it returns array of node ID and title of these life event forms. + * + * @return array + * An array containing node ID and title. + */ +function _usagov_benefit_finder_content_check_life_event_form_usage() { + $return = []; + + $node = \Drupal::routeMatch()->getParameter('node'); + $nid = $node->id(); + + $result = _usagov_benefit_finder_content_check_life_event_form_usage_in_life_event_form($nid); + foreach ($result as $row) { + $return[] = [ + 'nid' => $row['nid'], + 'title' => $row['title'], + ]; + } + + return $return; +} + /** * It checks life event form usage in relevant benefit of life event forms. * From 7ccea0c07c33995d64409304f51ae580e3000b84 Mon Sep 17 00:00:00 2001 From: scottqueen-bixal Date: Wed, 13 Nov 2024 14:16:59 -0500 Subject: [PATCH 08/11] prevent JSON file generation when going to workflow state of needs review --- .../usagov_benefit_finder_api.module | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_api/usagov_benefit_finder_api.module b/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_api/usagov_benefit_finder_api.module index ef840a5551..d8c98f1fde 100644 --- a/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_api/usagov_benefit_finder_api.module +++ b/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_api/usagov_benefit_finder_api.module @@ -16,8 +16,22 @@ use Drupal\usagov_benefit_finder_api\Controller\LifeEventController; * @param Node $node */ function usagov_benefit_finder_api_node_update(Node $node) { + $generate_json_files = 1; $url = _usagov_benefit_finder_api_get_current_page_url(); + if (strpos($url, "/admin/content") === FALSE) { + if ($node->hasField('moderation_state')) { + $moderation_state = $node->get('moderation_state')->value; + if ($moderation_state == 'needs_review') { + $generate_json_files = 0; + } + } + } + else { + $generate_json_files = 0; + } + + if ($generate_json_files == 1) { _usagov_benefit_finder_api_batch_generate_json_data_files($node); } else { From b7ef05b837567bc9afb97e241c19749692213a7f Mon Sep 17 00:00:00 2001 From: scottqueen-bixal Date: Wed, 13 Nov 2024 14:17:37 -0500 Subject: [PATCH 09/11] use basic workflow, update perms for benefit finder content manager role --- .../sync/user.role.benefits_finder_content_manager.yml | 5 +++++ config/sync/workflows.workflow.basic_workflow.yml | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/config/sync/user.role.benefits_finder_content_manager.yml b/config/sync/user.role.benefits_finder_content_manager.yml index d6636930da..1d590ba951 100644 --- a/config/sync/user.role.benefits_finder_content_manager.yml +++ b/config/sync/user.role.benefits_finder_content_manager.yml @@ -69,12 +69,17 @@ permissions: - 'revert bears_criteria revisions' - 'revert bears_life_event revisions' - 'revert bears_life_event_form revisions' + - 'use basic_workflow transition archive' - 'use basic_workflow transition create_new_draft' + - 'use basic_workflow transition move_to_review' + - 'use basic_workflow transition publish' + - 'use basic_workflow transition restore' - 'view any unpublished content' - 'view bears_agency revisions' - 'view bears_benefit revisions' - 'view bears_criteria revisions' - 'view bears_life_event revisions' - 'view bears_life_event_form revisions' + - 'view latest version' - 'view own unpublished content' - 'view the administration theme' diff --git a/config/sync/workflows.workflow.basic_workflow.yml b/config/sync/workflows.workflow.basic_workflow.yml index db4a17d645..b2f6dceee8 100644 --- a/config/sync/workflows.workflow.basic_workflow.yml +++ b/config/sync/workflows.workflow.basic_workflow.yml @@ -4,6 +4,11 @@ status: true dependencies: config: - node.type.basic_page + - node.type.bears_agency + - node.type.bears_benefit + - node.type.bears_criteria + - node.type.bears_life_event + - node.type.bears_life_event_form module: - content_moderation id: basic_workflow @@ -71,4 +76,9 @@ type_settings: entity_types: node: - basic_page + - bears_agency + - bears_benefit + - bears_criteria + - bears_life_event + - bears_life_event_form default_moderation_state: draft From f7d8e977f12178144af84a9f56e86dd308aa6b17 Mon Sep 17 00:00:00 2001 From: scottqueen-bixal Date: Wed, 13 Nov 2024 14:23:50 -0500 Subject: [PATCH 10/11] organize in alpha order --- .docker/src-cms/etc/nginx/partials/internal_redirects.conf | 4 ++-- .docker/src-www/etc/nginx/partials/internal_redirects.conf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.docker/src-cms/etc/nginx/partials/internal_redirects.conf b/.docker/src-cms/etc/nginx/partials/internal_redirects.conf index 871c68cf6a..233ed23b4f 100644 --- a/.docker/src-cms/etc/nginx/partials/internal_redirects.conf +++ b/.docker/src-cms/etc/nginx/partials/internal_redirects.conf @@ -29,6 +29,7 @@ rewrite ^/analytics-usa-redirect$ https://analytics.usa.gov/ permanent; rewrite ^/avisos-y-politicas-de-este-sitio$ /es/politicas-avisos-del-sitio-web permanent; rewrite ^/benefits-grants-loans$ /benefits permanent; + rewrite ^/benefit-finder/([^/]+)/[^/]+$ /benefit-finder/$1 permanent; rewrite ^/budget$ /federal-budget-process permanent; rewrite ^/business$ /small-business permanent; rewrite ^/buying-home$ /buying-home-programs permanent; @@ -66,6 +67,7 @@ rewrite ^/espanol/ayuda-financiera-becas-beneficios$ /es/beneficios-gobierno permanent; rewrite ^/espanol/ayuda-financiera-para-estudiantes$ /es/fafsa-ayuda-federal-estudiantes permanent; rewrite ^/espanol/beneficios-familias-militares$ /es/beneficios-educativos-laborales-familiares permanent; + rewrite ^/es/buscador-beneficios/([^/]+)/[^/]+$ /es/buscador-beneficios/$1 permanent; rewrite ^/espanol/cambie-registro-electoral$ /es/actualizar-registro-electoral permanent; rewrite ^/espanol/chat$ /es/chat permanent; rewrite ^/espanol/ciudadania-inmigracion-viajes$ /es/inmigracion-ciudadania-estados-unidos permanent; @@ -260,8 +262,6 @@ rewrite ^/visitors-driving$ /non-citizen-driving permanent; rewrite ^/voting$ /voting-and-elections permanent; rewrite ^/voting-laws-history$ /voting-laws permanent; - rewrite ^/benefit-finder/([^/]+)/[^/]+$ /benefit-finder/$1 permanent; - rewrite ^/es/buscador-beneficios/([^/]+)/[^/]+$ /es/buscador-beneficios/$1 permanent; # Any ^espanol/* not otherwise specified links to /es/* (and may 404) rewrite ^/espanol/(.+)$ /es/$1 permanent; diff --git a/.docker/src-www/etc/nginx/partials/internal_redirects.conf b/.docker/src-www/etc/nginx/partials/internal_redirects.conf index 9e23429f6e..141aa6b16b 100644 --- a/.docker/src-www/etc/nginx/partials/internal_redirects.conf +++ b/.docker/src-www/etc/nginx/partials/internal_redirects.conf @@ -29,6 +29,7 @@ rewrite ^/analytics-usa-redirect$ https://analytics.usa.gov/ permanent; rewrite ^/avisos-y-politicas-de-este-sitio$ /es/politicas-avisos-del-sitio-web permanent; rewrite ^/benefits-grants-loans$ /benefits permanent; + rewrite ^/benefit-finder/([^/]+)/[^/]+$ /benefit-finder/$1 permanent; rewrite ^/budget$ /federal-budget-process permanent; rewrite ^/business$ /small-business permanent; rewrite ^/buying-home$ /buying-home-programs permanent; @@ -66,6 +67,7 @@ rewrite ^/espanol/ayuda-financiera-becas-beneficios$ /es/beneficios-gobierno permanent; rewrite ^/espanol/ayuda-financiera-para-estudiantes$ /es/fafsa-ayuda-federal-estudiantes permanent; rewrite ^/espanol/beneficios-familias-militares$ /es/beneficios-educativos-laborales-familiares permanent; + rewrite ^/es/buscador-beneficios/([^/]+)/[^/]+$ /es/buscador-beneficios/$1 permanent; rewrite ^/espanol/cambie-registro-electoral$ /es/actualizar-registro-electoral permanent; rewrite ^/espanol/chat$ /es/chat permanent; rewrite ^/espanol/ciudadania-inmigracion-viajes$ /es/inmigracion-ciudadania-estados-unidos permanent; @@ -260,8 +262,6 @@ rewrite ^/visitors-driving$ /non-citizen-driving permanent; rewrite ^/voting$ /voting-and-elections permanent; rewrite ^/voting-laws-history$ /voting-laws permanent; - rewrite ^/benefit-finder/([^/]+)/[^/]+$ /benefit-finder/$1 permanent; - rewrite ^/es/buscador-beneficios/([^/]+)/[^/]+$ /es/buscador-beneficios/$1 permanent; # Any ^espanol/* not otherwise specified links to /es/* (and may 404) From 967a87a2cb6406cdde086f84d0970f8b2dfe7744 Mon Sep 17 00:00:00 2001 From: scottqueen-bixal Date: Thu, 14 Nov 2024 08:52:50 -0500 Subject: [PATCH 11/11] rebuild js resolve errors --- .../js/benefit-finder.min.js | 57 ++++++++++++++----- 1 file changed, 42 insertions(+), 15 deletions(-) diff --git a/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_app/usagov_benefit_finder_page/js/benefit-finder.min.js b/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_app/usagov_benefit_finder_page/js/benefit-finder.min.js index 438a6a88f6..331c77a480 100644 --- a/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_app/usagov_benefit_finder_page/js/benefit-finder.min.js +++ b/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_app/usagov_benefit_finder_page/js/benefit-finder.min.js @@ -6,7 +6,7 @@ function Gp(e,t){for(var n=0;n>>1,A=k[I];if(0>>1;Il(Yt,P))Kel(Nt,Yt)?(k[I]=Nt,k[Ke]=P,I=Ke):(k[I]=Yt,k[oe]=P,I=oe);else if(Kel(Nt,P))k[I]=Nt,k[Ke]=P,I=Ke;else break e}}return O}function l(k,O){var P=k.sortIndex-O.sortIndex;return P!==0?P:k.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var u=[],c=[],f=1,m=null,p=3,g=!1,S=!1,x=!1,b=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(k){for(var O=n(c);O!==null;){if(O.callback===null)r(c);else if(O.startTime<=k)r(c),O.sortIndex=O.expirationTime,t(u,O);else break;O=n(c)}}function w(k){if(x=!1,v(k),!S)if(n(u)!==null)S=!0,W(E);else{var O=n(c);O!==null&&C(w,O.startTime-k)}}function E(k,O){S=!1,x&&(x=!1,h(L),L=-1),g=!0;var P=p;try{for(v(O),m=n(u);m!==null&&(!(m.expirationTime>O)||k&&!H());){var I=m.callback;if(typeof I=="function"){m.callback=null,p=m.priorityLevel;var A=I(m.expirationTime<=O);O=e.unstable_now(),typeof A=="function"?m.callback=A:m===n(u)&&r(u),v(O)}else r(u);m=n(u)}if(m!==null)var ne=!0;else{var oe=n(c);oe!==null&&C(w,oe.startTime-O),ne=!1}return ne}finally{m=null,p=P,g=!1}}var N=!1,j=null,L=-1,B=5,R=-1;function H(){return!(e.unstable_now()-Rk||125I?(k.sortIndex=P,t(c,k),n(u)===null&&k===n(c)&&(x?(h(L),L=-1):x=!0,C(w,P-I))):(k.sortIndex=A,t(u,k),S||g||(S=!0,W(E))),k},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(k){var O=p;return function(){var P=p;p=O;try{return k.apply(this,arguments)}finally{p=P}}}})(Gu);Zu.exports=Gu;var $p=Zu.exports;/** + */(function(e){function t(_,R){var L=_.length;_.push(R);e:for(;0>>1,z=_[M];if(0>>1;Ml(Jt,L))otl($,Jt)?(_[M]=$,_[ot]=L,M=ot):(_[M]=Jt,_[_e]=L,M=_e);else if(otl($,L))_[M]=$,_[ot]=L,M=ot;else break e}}return R}function l(_,R){var L=_.sortIndex-R.sortIndex;return L!==0?L:_.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var a=[],c=[],p=1,d=null,m=3,y=!1,x=!1,g=!1,S=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(_){for(var R=n(c);R!==null;){if(R.callback===null)r(c);else if(R.startTime<=_)r(c),R.sortIndex=R.expirationTime,t(a,R);else break;R=n(c)}}function w(_){if(g=!1,v(_),!x)if(n(a)!==null)x=!0,W(j);else{var R=n(c);R!==null&&k(w,R.startTime-_)}}function j(_,R){x=!1,g&&(g=!1,f(T),T=-1),y=!0;var L=m;try{for(v(R),d=n(a);d!==null&&(!(d.expirationTime>R)||_&&!q());){var M=d.callback;if(typeof M=="function"){d.callback=null,m=d.priorityLevel;var z=M(d.expirationTime<=R);R=e.unstable_now(),typeof z=="function"?d.callback=z:d===n(a)&&r(a),v(R)}else r(a);d=n(a)}if(d!==null)var fe=!0;else{var _e=n(c);_e!==null&&k(w,_e.startTime-R),fe=!1}return fe}finally{d=null,m=L,y=!1}}var N=!1,P=null,T=-1,B=5,D=-1;function q(){return!(e.unstable_now()-D_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(_){switch(m){case 1:case 2:case 3:var R=3;break;default:R=m}var L=m;m=R;try{return _()}finally{m=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,R){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var L=m;m=_;try{return R()}finally{m=L}},e.unstable_scheduleCallback=function(_,R,L){var M=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0M?(_.sortIndex=L,t(c,_),n(a)===null&&_===n(c)&&(g?(f(T),T=-1):g=!0,k(w,L-M))):(_.sortIndex=z,t(a,_),x||y||(x=!0,W(j))),_},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(_){var R=m;return function(){var L=m;m=R;try{return _.apply(this,arguments)}finally{m=L}}}})(xc);wc.exports=xc;var x1=wc.exports;/** * @license React * react-dom.production.min.js * @@ -30,19 +30,46 @@ function Gp(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ri=Object.prototype.hasOwnProperty,Ip=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,aa={},ua={};function Ap(e){return ri.call(ua,e)?!0:ri.call(aa,e)?!1:Ip.test(e)?ua[e]=!0:(aa[e]=!0,!1)}function zp(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Bp(e,t,n,r){if(t===null||typeof t>"u"||zp(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ee(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var me={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){me[e]=new Ee(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];me[t]=new Ee(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){me[e]=new Ee(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){me[e]=new Ee(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){me[e]=new Ee(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){me[e]=new Ee(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){me[e]=new Ee(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){me[e]=new Ee(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){me[e]=new Ee(e,5,!1,e.toLowerCase(),null,!1,!1)});var os=/[\-:]([a-z])/g;function is(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(os,is);me[t]=new Ee(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(os,is);me[t]=new Ee(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(os,is);me[t]=new Ee(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){me[e]=new Ee(e,1,!1,e.toLowerCase(),null,!1,!1)});me.xlinkHref=new Ee("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){me[e]=new Ee(e,1,!1,e.toLowerCase(),null,!0,!0)});function ss(e,t,n,r){var l=me.hasOwnProperty(t)?me[t]:null;(l!==null?l.type!==0:r||!(2s||l[i]!==o[s]){var u=` -`+l[i].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=i&&0<=s);break}}}finally{Mo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?sr(e):""}function Vp(e){switch(e.tag){case 5:return sr(e.type);case 16:return sr("Lazy");case 13:return sr("Suspense");case 19:return sr("SuspenseList");case 0:case 2:case 15:return e=Po(e.type,!1),e;case 11:return e=Po(e.type.render,!1),e;case 1:return e=Po(e.type,!0),e;default:return""}}function si(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Cn:return"Fragment";case Sn:return"Portal";case li:return"Profiler";case as:return"StrictMode";case oi:return"Suspense";case ii:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ju:return(e.displayName||"Context")+".Consumer";case Xu:return(e._context.displayName||"Context")+".Provider";case us:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case cs:return t=e.displayName||null,t!==null?t:si(e.type)||"Memo";case Ot:t=e._payload,e=e._init;try{return si(e(t))}catch{}}return null}function Hp(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return si(t);case 8:return t===as?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Kt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function tc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Up(e){var t=tc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function nl(e){e._valueTracker||(e._valueTracker=Up(e))}function nc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=tc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ol(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ai(e,t){var n=t.checked;return te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function da(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Kt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function rc(e,t){t=t.checked,t!=null&&ss(e,"checked",t,!1)}function ui(e,t){rc(e,t);var n=Kt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ci(e,t.type,n):t.hasOwnProperty("defaultValue")&&ci(e,t.type,Kt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function fa(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ci(e,t,n){(t!=="number"||Ol(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ar=Array.isArray;function Rn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=rl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function _r(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var dr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Wp=["Webkit","ms","Moz","O"];Object.keys(dr).forEach(function(e){Wp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),dr[t]=dr[e]})});function sc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||dr.hasOwnProperty(e)&&dr[e]?(""+t).trim():t+"px"}function ac(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=sc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Kp=te({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function pi(e,t){if(t){if(Kp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(_(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(_(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(_(61))}if(t.style!=null&&typeof t.style!="object")throw Error(_(62))}}function hi(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var mi=null;function ds(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var vi=null,Dn=null,$n=null;function ma(e){if(e=qr(e)){if(typeof vi!="function")throw Error(_(280));var t=e.stateNode;t&&(t=mo(t),vi(e.stateNode,e.type,t))}}function uc(e){Dn?$n?$n.push(e):$n=[e]:Dn=e}function cc(){if(Dn){var e=Dn,t=$n;if($n=Dn=null,ma(e),t)for(e=0;e>>=0,e===0?32:31-(r1(e)/l1|0)|0}var ll=64,ol=4194304;function ur(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Dl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~l;s!==0?r=ur(s):(o&=i,o!==0&&(r=ur(o)))}else i=n&~l,i!==0?r=ur(i):o!==0&&(r=ur(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Wr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-et(t),e[t]=n}function a1(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=pr),Ea=" ",_a=!1;function Tc(e,t){switch(e){case"keyup":return $1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Oc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var kn=!1;function I1(e,t){switch(e){case"compositionend":return Oc(t);case"keypress":return t.which!==32?null:(_a=!0,Ea);case"textInput":return e=t.data,e===Ea&&_a?null:e;default:return null}}function A1(e,t){if(kn)return e==="compositionend"||!ws&&Tc(e,t)?(e=bc(),Sl=vs=Dt=null,kn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=La(n)}}function Dc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Dc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $c(){for(var e=window,t=Ol();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ol(e.document)}return t}function xs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Q1(e){var t=$c(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Dc(n.ownerDocument.documentElement,n)){if(r!==null&&xs(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=Ta(n,o);var i=Ta(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,En=null,Ci=null,mr=null,ki=!1;function Oa(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ki||En==null||En!==Ol(r)||(r=En,"selectionStart"in r&&xs(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),mr&&Or(mr,r)||(mr=r,r=Il(Ci,"onSelect"),0Nn||(e.current=Li[Nn],Li[Nn]=null,Nn--)}function Q(e,t){Nn++,Li[Nn]=e.current,e.current=t}var qt={},xe=Zt(qt),Ne=Zt(!1),cn=qt;function Bn(e,t){var n=e.type.contextTypes;if(!n)return qt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function be(e){return e=e.childContextTypes,e!=null}function zl(){G(Ne),G(xe)}function Ia(e,t,n){if(xe.current!==qt)throw Error(_(168));Q(xe,t),Q(Ne,n)}function Wc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(_(108,Hp(e)||"Unknown",l));return te({},n,r)}function Bl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||qt,cn=xe.current,Q(xe,e),Q(Ne,Ne.current),!0}function Aa(e,t,n){var r=e.stateNode;if(!r)throw Error(_(169));n?(e=Wc(e,t,cn),r.__reactInternalMemoizedMergedChildContext=e,G(Ne),G(xe),Q(xe,e)):G(Ne),Q(Ne,n)}var gt=null,vo=!1,qo=!1;function Kc(e){gt===null?gt=[e]:gt.push(e)}function ih(e){vo=!0,Kc(e)}function Gt(){if(!qo&>!==null){qo=!0;var e=0,t=K;try{var n=gt;for(K=1;e>=i,l-=i,yt=1<<32-et(t)+l|n<L?(B=j,j=null):B=j.sibling;var R=p(h,j,v[L],w);if(R===null){j===null&&(j=B);break}e&&j&&R.alternate===null&&t(h,j),d=o(R,d,L),N===null?E=R:N.sibling=R,N=R,j=B}if(L===v.length)return n(h,j),Y&&Jt(h,L),E;if(j===null){for(;LL?(B=j,j=null):B=j.sibling;var H=p(h,j,R.value,w);if(H===null){j===null&&(j=B);break}e&&j&&H.alternate===null&&t(h,j),d=o(H,d,L),N===null?E=H:N.sibling=H,N=H,j=B}if(R.done)return n(h,j),Y&&Jt(h,L),E;if(j===null){for(;!R.done;L++,R=v.next())R=m(h,R.value,w),R!==null&&(d=o(R,d,L),N===null?E=R:N.sibling=R,N=R);return Y&&Jt(h,L),E}for(j=r(h,j);!R.done;L++,R=v.next())R=g(j,h,L,R.value,w),R!==null&&(e&&R.alternate!==null&&j.delete(R.key===null?L:R.key),d=o(R,d,L),N===null?E=R:N.sibling=R,N=R);return e&&j.forEach(function(ae){return t(h,ae)}),Y&&Jt(h,L),E}function b(h,d,v,w){if(typeof v=="object"&&v!==null&&v.type===Cn&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case tl:e:{for(var E=v.key,N=d;N!==null;){if(N.key===E){if(E=v.type,E===Cn){if(N.tag===7){n(h,N.sibling),d=l(N,v.props.children),d.return=h,h=d;break e}}else if(N.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Ot&&Va(E)===N.type){n(h,N.sibling),d=l(N,v.props),d.ref=lr(h,N,v),d.return=h,h=d;break e}n(h,N);break}else t(h,N);N=N.sibling}v.type===Cn?(d=sn(v.props.children,h.mode,w,v.key),d.return=h,h=d):(w=Ll(v.type,v.key,v.props,null,h.mode,w),w.ref=lr(h,d,v),w.return=h,h=w)}return i(h);case Sn:e:{for(N=v.key;d!==null;){if(d.key===N)if(d.tag===4&&d.stateNode.containerInfo===v.containerInfo&&d.stateNode.implementation===v.implementation){n(h,d.sibling),d=l(d,v.children||[]),d.return=h,h=d;break e}else{n(h,d);break}else t(h,d);d=d.sibling}d=ti(v,h.mode,w),d.return=h,h=d}return i(h);case Ot:return N=v._init,b(h,d,N(v._payload),w)}if(ar(v))return S(h,d,v,w);if(Jn(v))return x(h,d,v,w);fl(h,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,d!==null&&d.tag===6?(n(h,d.sibling),d=l(d,v),d.return=h,h=d):(n(h,d),d=ei(v,h.mode,w),d.return=h,h=d),i(h)):n(h,d)}return b}var Hn=Gc(!0),Yc=Gc(!1),Ul=Zt(null),Wl=null,Tn=null,Es=null;function _s(){Es=Tn=Wl=null}function js(e){var t=Ul.current;G(Ul),e._currentValue=t}function Mi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function In(e,t){Wl=e,Es=Tn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(je=!0),e.firstContext=null)}function Ue(e){var t=e._currentValue;if(Es!==e)if(e={context:e,memoizedValue:t,next:null},Tn===null){if(Wl===null)throw Error(_(308));Tn=e,Wl.dependencies={lanes:0,firstContext:e}}else Tn=Tn.next=e;return t}var rn=null;function Ns(e){rn===null?rn=[e]:rn.push(e)}function Xc(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Ns(t)):(n.next=l.next,l.next=n),t.interleaved=n,kt(e,r)}function kt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Mt=!1;function bs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Jc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function xt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Vt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,U&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,kt(e,n)}return l=r.interleaved,l===null?(t.next=t,Ns(r)):(t.next=l.next,l.next=t),r.interleaved=t,kt(e,n)}function kl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ps(e,n)}}function Ha(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Kl(e,t,n,r){var l=e.updateQueue;Mt=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,s=l.shared.pending;if(s!==null){l.shared.pending=null;var u=s,c=u.next;u.next=null,i===null?o=c:i.next=c,i=u;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==i&&(s===null?f.firstBaseUpdate=c:s.next=c,f.lastBaseUpdate=u))}if(o!==null){var m=l.baseState;i=0,f=c=u=null,s=o;do{var p=s.lane,g=s.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:g,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var S=e,x=s;switch(p=t,g=n,x.tag){case 1:if(S=x.payload,typeof S=="function"){m=S.call(g,m,p);break e}m=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=x.payload,p=typeof S=="function"?S.call(g,m,p):S,p==null)break e;m=te({},m,p);break e;case 2:Mt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=l.effects,p===null?l.effects=[s]:p.push(s))}else g={eventTime:g,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(c=f=g,u=m):f=f.next=g,i|=p;if(s=s.next,s===null){if(s=l.shared.pending,s===null)break;p=s,s=p.next,p.next=null,l.lastBaseUpdate=p,l.shared.pending=null}}while(!0);if(f===null&&(u=m),l.baseState=u,l.firstBaseUpdate=c,l.lastBaseUpdate=f,t=l.shared.interleaved,t!==null){l=t;do i|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);pn|=i,e.lanes=i,e.memoizedState=m}}function Ua(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Zo.transition;Zo.transition={};try{e(!1),t()}finally{K=n,Zo.transition=r}}function vd(){return We().memoizedState}function ch(e,t,n){var r=Ut(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},gd(e))yd(t,n);else if(n=Xc(e,t,n,r),n!==null){var l=Ce();tt(n,e,r,l),wd(n,t,r)}}function dh(e,t,n){var r=Ut(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(gd(e))yd(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,s=o(i,n);if(l.hasEagerState=!0,l.eagerState=s,rt(s,i)){var u=t.interleaved;u===null?(l.next=l,Ns(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=Xc(e,t,l,r),n!==null&&(l=Ce(),tt(n,e,r,l),wd(n,t,r))}}function gd(e){var t=e.alternate;return e===J||t!==null&&t===J}function yd(e,t){vr=Ql=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function wd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ps(e,n)}}var Zl={readContext:Ue,useCallback:ve,useContext:ve,useEffect:ve,useImperativeHandle:ve,useInsertionEffect:ve,useLayoutEffect:ve,useMemo:ve,useReducer:ve,useRef:ve,useState:ve,useDebugValue:ve,useDeferredValue:ve,useTransition:ve,useMutableSource:ve,useSyncExternalStore:ve,useId:ve,unstable_isNewReconciler:!1},fh={readContext:Ue,useCallback:function(e,t){return st().memoizedState=[e,t===void 0?null:t],e},useContext:Ue,useEffect:Ka,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,_l(4194308,4,dd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _l(4194308,4,e,t)},useInsertionEffect:function(e,t){return _l(4,2,e,t)},useMemo:function(e,t){var n=st();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=st();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ch.bind(null,J,e),[r.memoizedState,e]},useRef:function(e){var t=st();return e={current:e},t.memoizedState=e},useState:Wa,useDebugValue:$s,useDeferredValue:function(e){return st().memoizedState=e},useTransition:function(){var e=Wa(!1),t=e[0];return e=uh.bind(null,e[1]),st().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=J,l=st();if(Y){if(n===void 0)throw Error(_(407));n=n()}else{if(n=t(),fe===null)throw Error(_(349));fn&30||rd(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Ka(od.bind(null,r,o,e),[e]),r.flags|=2048,Ar(9,ld.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=st(),t=fe.identifierPrefix;if(Y){var n=wt,r=yt;n=(r&~(1<<32-et(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Fr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[at]=t,e[Rr]=r,Ld(e,t,!1,!1),t.stateNode=e;e:{switch(i=hi(n,r),n){case"dialog":Z("cancel",e),Z("close",e),l=r;break;case"iframe":case"object":case"embed":Z("load",e),l=r;break;case"video":case"audio":for(l=0;lKn&&(t.flags|=128,r=!0,or(o,!1),t.lanes=4194304)}else{if(!r)if(e=ql(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),or(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!Y)return ge(t),null}else 2*le()-o.renderingStartTime>Kn&&n!==1073741824&&(t.flags|=128,r=!0,or(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=le(),t.sibling=null,n=X.current,Q(X,r?n&1|2:n&1),t):(ge(t),null);case 22:case 23:return Vs(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Me&1073741824&&(ge(t),t.subtreeFlags&6&&(t.flags|=8192)):ge(t),null;case 24:return null;case 25:return null}throw Error(_(156,t.tag))}function xh(e,t){switch(Cs(t),t.tag){case 1:return be(t.type)&&zl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Un(),G(Ne),G(xe),Os(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ts(t),null;case 13:if(G(X),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(_(340));Vn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(X),null;case 4:return Un(),null;case 10:return js(t.type._context),null;case 22:case 23:return Vs(),null;case 24:return null;default:return null}}var hl=!1,we=!1,Sh=typeof WeakSet=="function"?WeakSet:Set,T=null;function On(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){re(e,t,r)}else n.current=null}function Bi(e,t,n){try{n()}catch(r){re(e,t,r)}}var ru=!1;function Ch(e,t){if(Ei=$l,e=$c(),xs(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,s=-1,u=-1,c=0,f=0,m=e,p=null;t:for(;;){for(var g;m!==n||l!==0&&m.nodeType!==3||(s=i+l),m!==o||r!==0&&m.nodeType!==3||(u=i+r),m.nodeType===3&&(i+=m.nodeValue.length),(g=m.firstChild)!==null;)p=m,m=g;for(;;){if(m===e)break t;if(p===n&&++c===l&&(s=i),p===o&&++f===r&&(u=i),(g=m.nextSibling)!==null)break;m=p,p=m.parentNode}m=g}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(_i={focusedElem:e,selectionRange:n},$l=!1,T=t;T!==null;)if(t=T,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,T=e;else for(;T!==null;){t=T;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var x=S.memoizedProps,b=S.memoizedState,h=t.stateNode,d=h.getSnapshotBeforeUpdate(t.elementType===t.type?x:Ge(t.type,x),b);h.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(_(163))}}catch(w){re(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,T=e;break}T=t.return}return S=ru,ru=!1,S}function gr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Bi(t,n,o)}l=l.next}while(l!==r)}}function wo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Vi(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Md(e){var t=e.alternate;t!==null&&(e.alternate=null,Md(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[at],delete t[Rr],delete t[bi],delete t[lh],delete t[oh])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Pd(e){return e.tag===5||e.tag===3||e.tag===4}function lu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Pd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Hi(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Al));else if(r!==4&&(e=e.child,e!==null))for(Hi(e,t,n),e=e.sibling;e!==null;)Hi(e,t,n),e=e.sibling}function Ui(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ui(e,t,n),e=e.sibling;e!==null;)Ui(e,t,n),e=e.sibling}var pe=null,Xe=!1;function Tt(e,t,n){for(n=n.child;n!==null;)Rd(e,t,n),n=n.sibling}function Rd(e,t,n){if(ut&&typeof ut.onCommitFiberUnmount=="function")try{ut.onCommitFiberUnmount(co,n)}catch{}switch(n.tag){case 5:we||On(n,t);case 6:var r=pe,l=Xe;pe=null,Tt(e,t,n),pe=r,Xe=l,pe!==null&&(Xe?(e=pe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):pe.removeChild(n.stateNode));break;case 18:pe!==null&&(Xe?(e=pe,n=n.stateNode,e.nodeType===8?Ko(e.parentNode,n):e.nodeType===1&&Ko(e,n),Lr(e)):Ko(pe,n.stateNode));break;case 4:r=pe,l=Xe,pe=n.stateNode.containerInfo,Xe=!0,Tt(e,t,n),pe=r,Xe=l;break;case 0:case 11:case 14:case 15:if(!we&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Bi(n,t,i),l=l.next}while(l!==r)}Tt(e,t,n);break;case 1:if(!we&&(On(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){re(n,t,s)}Tt(e,t,n);break;case 21:Tt(e,t,n);break;case 22:n.mode&1?(we=(r=we)||n.memoizedState!==null,Tt(e,t,n),we=r):Tt(e,t,n);break;default:Tt(e,t,n)}}function ou(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Sh),t.forEach(function(r){var l=Oh.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Ze(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=le()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Eh(r/1960))-r,10e?16:e,$t===null)var r=!1;else{if(e=$t,$t=null,Xl=0,U&6)throw Error(_(331));var l=U;for(U|=4,T=e.current;T!==null;){var o=T,i=o.child;if(T.flags&16){var s=o.deletions;if(s!==null){for(var u=0;ule()-zs?on(e,0):As|=n),Le(e,t)}function Vd(e,t){t===0&&(e.mode&1?(t=ol,ol<<=1,!(ol&130023424)&&(ol=4194304)):t=1);var n=Ce();e=kt(e,t),e!==null&&(Wr(e,t,n),Le(e,n))}function Th(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Vd(e,n)}function Oh(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(_(314))}r!==null&&r.delete(t),Vd(e,n)}var Hd;Hd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ne.current)je=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return je=!1,yh(e,t,n);je=!!(e.flags&131072)}else je=!1,Y&&t.flags&1048576&&qc(t,Hl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;jl(e,t),e=t.pendingProps;var l=Bn(t,xe.current);In(t,n),l=Ps(null,t,r,e,l,n);var o=Rs();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,be(r)?(o=!0,Bl(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,bs(t),l.updater=yo,t.stateNode=l,l._reactInternals=t,Ri(t,r,e,n),t=Fi(null,t,r,!0,o,n)):(t.tag=0,Y&&o&&Ss(t),Se(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(jl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Ph(r),e=Ge(r,e),l){case 0:t=$i(null,t,r,e,n);break e;case 1:t=eu(null,t,r,e,n);break e;case 11:t=Xa(null,t,r,e,n);break e;case 14:t=Ja(null,t,r,Ge(r.type,e),n);break e}throw Error(_(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ge(r,l),$i(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ge(r,l),eu(e,t,r,l,n);case 3:e:{if(jd(t),e===null)throw Error(_(387));r=t.pendingProps,o=t.memoizedState,l=o.element,Jc(e,t),Kl(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=Wn(Error(_(423)),t),t=tu(e,t,r,n,l);break e}else if(r!==l){l=Wn(Error(_(424)),t),t=tu(e,t,r,n,l);break e}else for(Pe=Bt(t.stateNode.containerInfo.firstChild),Re=t,Y=!0,Je=null,n=Yc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vn(),r===l){t=Et(e,t,n);break e}Se(e,t,r,n)}t=t.child}return t;case 5:return ed(t),e===null&&Oi(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,ji(r,l)?i=null:o!==null&&ji(r,o)&&(t.flags|=32),_d(e,t),Se(e,t,i,n),t.child;case 6:return e===null&&Oi(t),null;case 13:return Nd(e,t,n);case 4:return Ls(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Hn(t,null,r,n):Se(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ge(r,l),Xa(e,t,r,l,n);case 7:return Se(e,t,t.pendingProps,n),t.child;case 8:return Se(e,t,t.pendingProps.children,n),t.child;case 12:return Se(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,Q(Ul,r._currentValue),r._currentValue=i,o!==null)if(rt(o.value,i)){if(o.children===l.children&&!Ne.current){t=Et(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){i=o.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=xt(-1,n&-n),u.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?u.next=u:(u.next=f.next,f.next=u),c.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Mi(o.return,n,t),s.lanes|=n;break}u=u.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(_(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Mi(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}Se(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,In(t,n),l=Ue(l),r=r(l),t.flags|=1,Se(e,t,r,n),t.child;case 14:return r=t.type,l=Ge(r,t.pendingProps),l=Ge(r.type,l),Ja(e,t,r,l,n);case 15:return kd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ge(r,l),jl(e,t),t.tag=1,be(r)?(e=!0,Bl(t)):e=!1,In(t,n),xd(t,r,l),Ri(t,r,l,n),Fi(null,t,r,!0,e,n);case 19:return bd(e,t,n);case 22:return Ed(e,t,n)}throw Error(_(156,t.tag))};function Ud(e,t){return gc(e,t)}function Mh(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ve(e,t,n,r){return new Mh(e,t,n,r)}function Us(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ph(e){if(typeof e=="function")return Us(e)?1:0;if(e!=null){if(e=e.$$typeof,e===us)return 11;if(e===cs)return 14}return 2}function Wt(e,t){var n=e.alternate;return n===null?(n=Ve(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ll(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")Us(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Cn:return sn(n.children,l,o,t);case as:i=8,l|=8;break;case li:return e=Ve(12,n,t,l|2),e.elementType=li,e.lanes=o,e;case oi:return e=Ve(13,n,t,l),e.elementType=oi,e.lanes=o,e;case ii:return e=Ve(19,n,t,l),e.elementType=ii,e.lanes=o,e;case ec:return So(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Xu:i=10;break e;case Ju:i=9;break e;case us:i=11;break e;case cs:i=14;break e;case Ot:i=16,r=null;break e}throw Error(_(130,e==null?e:typeof e,""))}return t=Ve(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function sn(e,t,n,r){return e=Ve(7,e,r,t),e.lanes=n,e}function So(e,t,n,r){return e=Ve(22,e,r,t),e.elementType=ec,e.lanes=n,e.stateNode={isHidden:!1},e}function ei(e,t,n){return e=Ve(6,e,null,t),e.lanes=n,e}function ti(e,t,n){return t=Ve(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Rh(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Do(0),this.expirationTimes=Do(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Do(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Ws(e,t,n,r,l,o,i,s,u){return e=new Rh(e,t,n,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ve(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},bs(o),e}function Dh(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Qd)}catch(e){console.error(e)}}Qd(),Qu.exports=$e;var Zd=Qu.exports,pu=Zd;ni.createRoot=pu.createRoot,ni.hydrateRoot=pu.hydrateRoot;const zh="0.7.0.beta.1",to=(e,t)=>{const n=t&&t.map(r=>{var f,m,p;const l=encodeURI(r.criteriaKey),o=typeof((f=r.values)==null?void 0:f.value)=="object"?encodeURIComponent(JSON.stringify((m=r.values)==null?void 0:m.value)):encodeURIComponent((p=r.values)==null?void 0:p.value),i=e.indexOf("#"),s=i===-1?"":e.substr(i);e=i===-1?e:e.substr(0,i);const u=new RegExp("([?&])"+l+"=.*?(&|$)","i"),c=e.indexOf("?")!==-1?"&":"?";return e.match(u)?e=e.replace(u,"$1"+l+"="+o+"$2"):e=e+c+l+"="+o,e+s});return t?`${n[n.length-1]}&shared=true`:""},Bh=(e,t)=>{const n=e.querySelectorAll("fieldset"),r=Array.from(n).filter(l=>l.attributes.required);t(Array.from(r))},Vh=(e,t,n,r,l,o)=>{const i=document.getElementById(`${e}`);if(!i.attributes.required){const c=o.filter(x=>x.criteriaKey===e)[0].values.value,f=x=>{for(const b in x)if(x[b]!=="")return!1;return!0},m=[...t,i],p=[...new Set(m)],g=p.filter(x=>!x.id===e),S=l.filter(x=>!x.id.includes(e));f(c)&&r(S),f(c)?n(g):n(p)}},Hh=async(e,t)=>{const n=e.map(o=>Array.from(o.elements).filter(i=>{var s,u;return((s=i.attributes["data-datetype"])==null?void 0:s.value)==="year"?!i.value||i.value&&i.value.length!==4:((u=i.attributes["data-datetype"])==null?void 0:u.value)==="day"?!i.value||i.value&&i.value==="0":!i.value})).flat(),r=e.map(o=>{if(Array.from(o.elements).every(s=>{var u;return!((u=s.attributes.type)!=null&&u.value)==="radio"}))return[];const i=Array.from(o.elements).filter(s=>{var u;return((u=s.attributes.type)==null?void 0:u.value)==="radio"});return i.length>0&&i.every(s=>!s.checked)?o:[]}).flat(),l=[n,r].flat();return t(l),l.length===0},Uh=({hasError:e,criteriaKey:t,fieldSetId:n,useFilter:r=!1})=>{const l=e.map(i=>i.id!==void 0&&n&&n.includes(i.id)||i.id!==void 0&&i.id.includes(t)).includes(!0),o=e.filter(i=>i.id!==void 0&&i.id.includes(n));return r===!0?o:l},Ie={getRequiredFieldsets:Bh,getNonRequiredFieldsets:Vh,handleCheckForRequiredValues:Hh,handleInvalid:Uh},jt=e=>({__html:e}),Wh=(e,t,n=!0)=>{const r=o=>o!=null&&typeof o=="object",l=(o,i)=>{const s=Object.keys(o),u=Object.keys(i);if(s.length!==u.length)return!1;for(const c of s){const f=o[c],m=i[c],p=r(f)&&r(m);if(p&&!l(f,m)||!p&&f!==m)return!1}return!0};if(e.dataLayer){const o={...window.dataLayer[window.dataLayer.length-1]};delete o["gtm.uniqueEventId"],delete o.eventCallback,n===!0?l(o,t)===!1&&e.dataLayer.push(t):e.dataLayer.push(t)}},Kh={intro:{event:"bf_page_change",bfData:{pageView:"bf-intro",viewTitle:null}},lifeEventSection:{event:"bf_page_change",bfData:{pageView:"bf-form",viewTitle:null}},errors:{event:"bf_form_page_submit_attempt",bfData:{errors:null,errorCount:{number:null,string:null},formSuccess:!1}},modal:{event:"bf_page_change",bfData:{pageView:"bf-form-completion-modal",viewTitle:null}},verifySelections:{event:"bf_page_change",bfData:{pageView:"bf-verify-selections",viewTitle:null}},resultsView:{event:"bf_page_change",bfData:{pageView:["bf-result-eligible-view","bf-result-not-eligible-view"],viewTitle:null,eligibilityCount:{eligibleBenefitCount:null,moreInfoBenefitCount:null,notEligibleBenefitCount:null}}},openAllBenefitAccordions:{event:"bf_open_all_accordions",bfData:{accordionsOpen:!0}},benefitAccordion:{event:"bf_accordion_open",bfData:{benefitTitle:null}},benefitLink:{event:"bf_benefit_link",bfData:{benefitTitle:null}}},se={dataLayerPush:Wh,dataLayerStructure:Kh},qh=e=>{if(/^[0-9]*$/.test(`${e.target.value}`)){if(e.target.id.includes("day"))return e.target.value.length===2?/^(0?[1-9]|[12][0-9]|3[01])$/.test(`${e.target.value}`):e.target.value.length<3;if(e.target.id.includes("year")){const t=new Date().getFullYear().toString(),n=t.substring(t.length-1);return e.target.value.length===4?new RegExp(`^(19[0-9][0-9]|20[0-1][0-9]|20[0-2][0-${n}])$`).test(`${e.target.value}`):e.target.value.length<5}}if(e.target.id.includes("month"))return!0},Gd=({hide:e})=>{const t=document.querySelector(".bf-qual-survey");t&&t.hidden===!e&&(t.hidden=e)},Qh=e=>{const t=e&&new window.Date(Date.UTC(e.year,e.month,e.day));return new Date(t.getTime()+Math.abs(t.getTimezoneOffset()*6e4))},Zh={37:1,38:1,39:1,40:1},an=e=>{e.preventDefault()},Yd=e=>{if(Zh[e.keyCode])return an(e),!1},no={passive:!1},Xd="onwheel"in document.createElement("div")?"wheel":"mousewheel",Gh=()=>{window.addEventListener("DOMMouseScroll",an,!1),window.addEventListener(Xd,an,no),window.addEventListener("touchmove",an,no),window.addEventListener("keydown",Yd,!1)},Yh=()=>{window.removeEventListener("DOMMouseScroll",an,!1),window.removeEventListener(Xd,an,no),window.removeEventListener("touchmove",an,no),window.removeEventListener("keydown",Yd,!1)},hu={disableScroll:Yh,enableScroll:Gh},Xh=e=>{const n=e.innerWidth,r=!(n<1049);return{width:n,desktop:r}},Zr=({pageView:e,notEligibleView:t})=>{const n=Xh(window).desktop;M.useEffect(()=>{const r=document.getElementById("bf-track-by-name"),l=document.querySelector('[data-testid="app"]'),o=n?"desktop":"mobile",i=`var CE_SNAPSHOT_NAME = "${e}-${l==null?void 0:l.id}-${o}";`;r!==null&&(r.innerHTML=i)},[n,t])},ft=({className:e,defaultClasses:t,utilityClasses:n})=>{const[r,l]=M.useState("");return M.useEffect(()=>{const o=[e,t&&t.join(" "),n&&n.join(" ")];l(o.filter(i=>i!==void 0).join(" "))},[e,t,n]),r},mu=e=>{e.preventDefault(),e.returnValue=""},Jh=e=>{M.useEffect(()=>{e!==!1?window.addEventListener("beforeunload",mu):window.removeEventListener("beforeunload",mu)},[e])},Gr=()=>(M.useEffect(()=>{document.getElementById("index-reset")===null&&document.body.insertAdjacentHTML("afterBegin",'')},[]),M.useRef(document.getElementById("index-reset"))),e0=({selectedValue:e,conditional:t})=>{const n=t,r=/['>', '>=', '<', '<=', '=']/g,l=n.match(r),o=n.match(/\d+/)[0],i=new RegExp(`[${l}]`,"g"),s=n.replace(/-/g,"/").replace(i,""),u=/-/,c=u.test(n)?new window.Date(s):new window.Date(new Date().getFullYear()-o,new Date().getMonth(),new Date().getDate()),f=new window.Date(Date.UTC(e.year,e.month,e.day,0,0,0));return((p,g,S)=>{const x=S,b=new window.Date(Date.UTC(g.getUTCFullYear(),g.getUTCMonth(),g.getUTCDate(),0,0,0));if(u.test(n)===!1){const h=b.getTime()-x.getTime();switch(p.length&&p.join("")){case">":return h>0;case">=":return h>=0;case"<":return h<0;case"<=":return h<=0;case"=":return+h==0;default:return!1}}else switch(p.length&&p.join("")){case">":return x.getTime()>b.getTime();case">=":return x.getTime()>=b.getTime();case"<":return x.getTime()r.fieldset.criteriaKey===t),n===void 0&&e.forEach(r=>{r.fieldset.children.forEach(l=>{l.fieldsets[0].fieldset.criteriaKey===t&&(n=l.fieldsets[0])})}),n}function n0(e){return e.slice(e.indexOf("?")+1).split("&").map(r=>{const[l,o]=r.split("=");return{criteriaKey:l,value:decodeURIComponent(o)}})}const r0=()=>/^\/es/.test(window.location.pathname)?"es":"en";async function l0(e){let t;if(e===void 0){const r=window.location.search;t=new URLSearchParams(r),t.get("mode")==="draft"&&`${t.get("mode")}`;const l=window.location.pathname;e=l.substring(l.lastIndexOf("/")+1)}let n;{const r=document.getElementById("benefit-finder");if(r!==null){const l=r.getAttribute("json-data-file-path"),o=r.getAttribute("draft-json-data-file-path");n=t.get("mode")==="draft"?o:l}}if(n!==void 0)return await fetch(n).then(l=>{if(l!=null&&l.ok)return l.json();throw new Error(l==null?void 0:l.status)}).then(l=>l!=null&&l.data?l:"Something went wrong.").catch(l=>(console.log(l),"Something went wrong."))}const o0=e=>e&&e.fieldset.inputs[0].inputCriteria.values.find(t=>t.selected),i0=e=>{var t;return e&&((t=e.fieldset)==null?void 0:t.children.map(n=>n.fieldsets[0]))},s0=e=>e&&e.flatMap((t,n)=>t.section.fieldsets.flatMap(r=>{const l=q.SelectedValue(r);return l&&[{criteriaKey:r.fieldset.inputs[0].inputCriteria.id,values:l},q.Children(r)&&q.Children(r).flatMap(o=>q.SelectedValue(o)&&{criteriaKey:o.fieldset.criteriaKey,values:q.SelectedValue(o)}).filter(o=>o!==void 0)]})).flat().filter(t=>t!==void 0),a0=(e,t)=>{const n=t&&t.map(l=>(e.forEach(o=>{const i=l.benefit.eligibility.find(s=>s.criteriaKey===o.criteriaKey);if(i!==void 0){const s=()=>{let u;return typeof o.values.value=="object"?u=i.acceptableValues.find(c=>jo.DateEligibility({selectedValue:o.values.value,conditional:c})):u=i.acceptableValues.find(c=>c===o.values.value),u};i.isEligible=!!s()}}),l));return n&&[].concat(...n)};async function u0(e,t,n,r){const l={...t};jo.FindCriteria(l.section.fieldsets,e).then(o=>{var i;if(o)return((i=o.fieldset)==null?void 0:i.inputs[0].inputCriteria.values).forEach(u=>{u.value===r?u.selected=!0:delete u.selected}),n(l)}).catch(o=>(console.log(o),"Something went wrong."))}async function c0(e,t,n,r,l){const o={...t};jo.FindCriteria(o.section.fieldsets,e).then(i=>{var s;if(i){const u=(s=i.fieldset)==null?void 0:s.inputs[0].inputCriteria.values;return l?(l.includes("day")&&(u[0].value.day=r),l.includes("month")&&(u[0].value.month=r),l.includes("year")&&(u[0].value.year=r),u[0].value={...u[0].value}):u[0].value=r,(f=>{for(const m in f)if(f[m]!==null&&f[m]!==void 0&&f[m]!=="")return!0;return!1})(u[0].value)===!1?u[0].selected=!1:u[0].selected=!0,n(o)}}).catch(i=>(console.log(i),"Something went wrong."))}const d0=(e,t,n,r)=>{const l=jo.GetQueryParams(decodeURI(e));l.filter(o=>o.criteriaKey!==r),t.forEach(o=>{o.completed=!0,l.forEach(i=>{const s=i.value.includes("{")?JSON.parse(i.value):i.value;s!==void 0&&typeof s=="object"?Br.DataDate(i.criteriaKey,o,n,s):Br.Data(i.criteriaKey,o,n,s)})})},q={Children:i0,ElegibilityByCriteria:a0,LifeEvent:l0,Language:r0,SelectedValue:o0,SelectedValueAll:s0},Br={Data:u0,DataDate:c0,DataFromParams:d0},jo={FindCriteria:t0,DateEligibility:e0,GetQueryParams:n0};var Jd={exports:{}},f0="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",p0=f0,h0=p0;function ef(){}function tf(){}tf.resetWarningCache=ef;var m0=function(){function e(r,l,o,i,s,u){if(u!==h0){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:tf,resetWarningCache:ef};return n.PropTypes=n,n};Jd.exports=m0();var Zs=Jd.exports;const y=ao(Zs),Gs=({className:e,children:t,alertFieldRef:n,heading:r,description:l,type:o,hasError:i,noBackground:s,tabIndex:u,errorCount:c,errorList:f,submissionCount:m})=>{const p=o==="error"?["bf-usa-alert","usa-alert","bf-usa-alert--error","usa-alert--error",`${i===!1?"display-none":""}`]:["bf-usa-alert","usa-alert","bf-usa-alert--info","usa-alert--info",`${s?"no-background":""}`];return M.useEffect(()=>{const{errors:g}=se.dataLayerStructure;i&&f&&se.dataLayerPush(window,{event:g.event,bfData:{errors:f.map(S=>S==null?void 0:S.id).join(","),errorCount:{number:c,string:`${c}`},formSuccess:!1}},!1)},[m]),a.jsx("div",{className:ft({className:e,defaultClasses:p}),role:"alert",ref:n,tabIndex:u||0,"aria-live":i===!0?"assertive":"polite","aria-hidden":i===void 0?!1:!i,children:t?a.jsx("div",{className:"bf-usa-alert__body usa-alert__body",children:a.jsx("div",{className:"bf-usa-alert__text usa-alert__text",children:t})}):a.jsxs("div",{className:"bf-usa-alert__body usa-alert__body",children:[a.jsxs(ee,{headingLevel:2,className:"bf-usa-alert__heading usa-alert__heading","data-testid":"bf-alert-heading",children:[r==null?void 0:r.prefix," ",c," ",r==null?void 0:r.suffix]}),a.jsx("p",{className:"bf-usa-alert__text usa-alert__text",children:l}),a.jsx("ul",{"data-testid":"bf-errors-list",children:f&&f.map(g=>a.jsx("li",{"data-testid":"bf-errors-list-item",children:a.jsx("a",{href:`#${g.id}`,children:g.getAttribute("data-errormessage")||g.id})},g.id))})]})})};Gs.propTypes={className:y.string,children:y.any,alertFieldRef:y.any,heading:y.object,description:y.string,type:y.string,hasError:y.bool,noBackground:y.bool,tabIndex:y.number,errorCount:y.number};const v0=e=>e&&typeof e=="object"&&e.nodeType===1;var g0=(e,t)=>{if(typeof e!="string")return[];(!t||!v0(t))&&(t=window.document);const n=t.querySelectorAll(e);return Array.prototype.slice.call(n)};/* + */var C1=E,$e=x1;function b(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),go=Object.prototype.hasOwnProperty,S1=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,_a={},ba={};function k1(e){return go.call(ba,e)?!0:go.call(_a,e)?!1:S1.test(e)?ba[e]=!0:(_a[e]=!0,!1)}function E1(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function _1(e,t,n,r){if(t===null||typeof t>"u"||E1(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ee(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var me={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){me[e]=new Ee(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];me[t]=new Ee(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){me[e]=new Ee(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){me[e]=new Ee(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){me[e]=new Ee(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){me[e]=new Ee(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){me[e]=new Ee(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){me[e]=new Ee(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){me[e]=new Ee(e,5,!1,e.toLowerCase(),null,!1,!1)});var Cs=/[\-:]([a-z])/g;function Ss(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Cs,Ss);me[t]=new Ee(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Cs,Ss);me[t]=new Ee(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Cs,Ss);me[t]=new Ee(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){me[e]=new Ee(e,1,!1,e.toLowerCase(),null,!1,!1)});me.xlinkHref=new Ee("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){me[e]=new Ee(e,1,!1,e.toLowerCase(),null,!0,!0)});function ks(e,t,n,r){var l=me.hasOwnProperty(t)?me[t]:null;(l!==null?l.type!==0:r||!(2s||l[o]!==i[s]){var a=` +`+l[o].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=o&&0<=s);break}}}finally{Hi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?hr(e):""}function b1(e){switch(e.tag){case 5:return hr(e.type);case 16:return hr("Lazy");case 13:return hr("Suspense");case 19:return hr("SuspenseList");case 0:case 2:case 15:return e=Wi(e.type,!1),e;case 11:return e=Wi(e.type.render,!1),e;case 1:return e=Wi(e.type,!0),e;default:return""}}function Co(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _n:return"Fragment";case En:return"Portal";case yo:return"Profiler";case Es:return"StrictMode";case wo:return"Suspense";case xo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case kc:return(e.displayName||"Context")+".Consumer";case Sc:return(e._context.displayName||"Context")+".Provider";case _s:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case bs:return t=e.displayName||null,t!==null?t:Co(e.type)||"Memo";case Ot:t=e._payload,e=e._init;try{return Co(e(t))}catch{}}return null}function j1(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Co(t);case 8:return t===Es?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Qt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _c(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function N1(e){var t=_c(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function dl(e){e._valueTracker||(e._valueTracker=N1(e))}function bc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=_c(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Bl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function So(e,t){var n=t.checked;return te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Na(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Qt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function jc(e,t){t=t.checked,t!=null&&ks(e,"checked",t,!1)}function ko(e,t){jc(e,t);var n=Qt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Eo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Eo(e,t.type,Qt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function La(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Eo(e,t,n){(t!=="number"||Bl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var mr=Array.isArray;function In(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=fl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Rr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var wr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},L1=["Webkit","ms","Moz","O"];Object.keys(wr).forEach(function(e){L1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),wr[t]=wr[e]})});function Tc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||wr.hasOwnProperty(e)&&wr[e]?(""+t).trim():t+"px"}function Oc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Tc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var P1=te({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function jo(e,t){if(t){if(P1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(b(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(b(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(b(61))}if(t.style!=null&&typeof t.style!="object")throw Error(b(62))}}function No(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Lo=null;function js(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Po=null,Fn=null,An=null;function Oa(e){if(e=rl(e)){if(typeof Po!="function")throw Error(b(280));var t=e.stateNode;t&&(t=Ei(t),Po(e.stateNode,e.type,t))}}function Rc(e){Fn?An?An.push(e):An=[e]:Fn=e}function Mc(){if(Fn){var e=Fn,t=An;if(An=Fn=null,Oa(e),t)for(e=0;e>>=0,e===0?32:31-(z1(e)/U1|0)|0}var pl=64,hl=4194304;function vr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Hl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~l;s!==0?r=vr(s):(i&=o,i!==0&&(r=vr(i)))}else o=n&~l,o!==0?r=vr(o):i!==0&&(r=vr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function tl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-et(t),e[t]=n}function K1(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Cr),za=" ",Ua=!1;function ed(e,t){switch(e){case"keyup":return xh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function td(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var bn=!1;function Sh(e,t){switch(e){case"compositionend":return td(t);case"keypress":return t.which!==32?null:(Ua=!0,za);case"textInput":return e=t.data,e===za&&Ua?null:e;default:return null}}function kh(e,t){if(bn)return e==="compositionend"||!$s&&ed(e,t)?(e=Xc(),Pl=Os=Dt=null,bn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ka(n)}}function id(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?id(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function od(){for(var e=window,t=Bl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Bl(e.document)}return t}function Ds(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Oh(e){var t=od(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&id(n.ownerDocument.documentElement,n)){if(r!==null&&Ds(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=qa(n,i);var o=qa(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,jn=null,Do=null,kr=null,Io=!1;function Qa(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Io||jn==null||jn!==Bl(r)||(r=jn,"selectionStart"in r&&Ds(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),kr&&Ar(kr,r)||(kr=r,r=ql(Do,"onSelect"),0Pn||(e.current=Vo[Pn],Vo[Pn]=null,Pn--)}function Q(e,t){Pn++,Vo[Pn]=e.current,e.current=t}var Zt={},xe=Yt(Zt),Ne=Yt(!1),pn=Zt;function Hn(e,t){var n=e.type.contextTypes;if(!n)return Zt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Le(e){return e=e.childContextTypes,e!=null}function Zl(){G(Ne),G(xe)}function tu(e,t,n){if(xe.current!==Zt)throw Error(b(168));Q(xe,t),Q(Ne,n)}function md(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(b(108,j1(e)||"Unknown",l));return te({},n,r)}function Gl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Zt,pn=xe.current,Q(xe,e),Q(Ne,Ne.current),!0}function nu(e,t,n){var r=e.stateNode;if(!r)throw Error(b(169));n?(e=md(e,t,pn),r.__reactInternalMemoizedMergedChildContext=e,G(Ne),G(xe),Q(xe,e)):G(Ne),Q(Ne,n)}var yt=null,_i=!1,io=!1;function vd(e){yt===null?yt=[e]:yt.push(e)}function Hh(e){_i=!0,vd(e)}function Xt(){if(!io&&yt!==null){io=!0;var e=0,t=K;try{var n=yt;for(K=1;e>=o,l-=o,wt=1<<32-et(t)+l|n<T?(B=P,P=null):B=P.sibling;var D=m(f,P,v[T],w);if(D===null){P===null&&(P=B);break}e&&P&&D.alternate===null&&t(f,P),h=i(D,h,T),N===null?j=D:N.sibling=D,N=D,P=B}if(T===v.length)return n(f,P),Y&&tn(f,T),j;if(P===null){for(;TT?(B=P,P=null):B=P.sibling;var q=m(f,P,D.value,w);if(q===null){P===null&&(P=B);break}e&&P&&q.alternate===null&&t(f,P),h=i(q,h,T),N===null?j=q:N.sibling=q,N=q,P=B}if(D.done)return n(f,P),Y&&tn(f,T),j;if(P===null){for(;!D.done;T++,D=v.next())D=d(f,D.value,w),D!==null&&(h=i(D,h,T),N===null?j=D:N.sibling=D,N=D);return Y&&tn(f,T),j}for(P=r(f,P);!D.done;T++,D=v.next())D=y(P,f,T,D.value,w),D!==null&&(e&&D.alternate!==null&&P.delete(D.key===null?T:D.key),h=i(D,h,T),N===null?j=D:N.sibling=D,N=D);return e&&P.forEach(function(de){return t(f,de)}),Y&&tn(f,T),j}function S(f,h,v,w){if(typeof v=="object"&&v!==null&&v.type===_n&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case cl:e:{for(var j=v.key,N=h;N!==null;){if(N.key===j){if(j=v.type,j===_n){if(N.tag===7){n(f,N.sibling),h=l(N,v.props.children),h.return=f,f=h;break e}}else if(N.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===Ot&&iu(j)===N.type){n(f,N.sibling),h=l(N,v.props),h.ref=dr(f,N,v),h.return=f,f=h;break e}n(f,N);break}else t(f,N);N=N.sibling}v.type===_n?(h=un(v.props.children,f.mode,w,v.key),h.return=f,f=h):(w=Fl(v.type,v.key,v.props,null,f.mode,w),w.ref=dr(f,h,v),w.return=f,f=w)}return o(f);case En:e:{for(N=v.key;h!==null;){if(h.key===N)if(h.tag===4&&h.stateNode.containerInfo===v.containerInfo&&h.stateNode.implementation===v.implementation){n(f,h.sibling),h=l(h,v.children||[]),h.return=f,f=h;break e}else{n(f,h);break}else t(f,h);h=h.sibling}h=ho(v,f.mode,w),h.return=f,f=h}return o(f);case Ot:return N=v._init,S(f,h,N(v._payload),w)}if(mr(v))return x(f,h,v,w);if(or(v))return g(f,h,v,w);Cl(f,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,h!==null&&h.tag===6?(n(f,h.sibling),h=l(h,v),h.return=f,f=h):(n(f,h),h=po(v,f.mode,w),h.return=f,f=h),o(f)):n(f,h)}return S}var Kn=xd(!0),Cd=xd(!1),Jl=Yt(null),ei=null,Rn=null,Bs=null;function zs(){Bs=Rn=ei=null}function Us(e){var t=Jl.current;G(Jl),e._currentValue=t}function Ko(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function zn(e,t){ei=e,Bs=Rn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(je=!0),e.firstContext=null)}function He(e){var t=e._currentValue;if(Bs!==e)if(e={context:e,memoizedValue:t,next:null},Rn===null){if(ei===null)throw Error(b(308));Rn=e,ei.dependencies={lanes:0,firstContext:e}}else Rn=Rn.next=e;return t}var on=null;function Vs(e){on===null?on=[e]:on.push(e)}function Sd(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Vs(t)):(n.next=l.next,l.next=n),t.interleaved=n,Et(e,r)}function Et(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Rt=!1;function Hs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function kd(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ct(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ht(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,V&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Et(e,n)}return l=r.interleaved,l===null?(t.next=t,Vs(r)):(t.next=l.next,l.next=t),r.interleaved=t,Et(e,n)}function Ol(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ls(e,n)}}function ou(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ti(e,t,n,r){var l=e.updateQueue;Rt=!1;var i=l.firstBaseUpdate,o=l.lastBaseUpdate,s=l.shared.pending;if(s!==null){l.shared.pending=null;var a=s,c=a.next;a.next=null,o===null?i=c:o.next=c,o=a;var p=e.alternate;p!==null&&(p=p.updateQueue,s=p.lastBaseUpdate,s!==o&&(s===null?p.firstBaseUpdate=c:s.next=c,p.lastBaseUpdate=a))}if(i!==null){var d=l.baseState;o=0,p=c=a=null,s=i;do{var m=s.lane,y=s.eventTime;if((r&m)===m){p!==null&&(p=p.next={eventTime:y,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var x=e,g=s;switch(m=t,y=n,g.tag){case 1:if(x=g.payload,typeof x=="function"){d=x.call(y,d,m);break e}d=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=g.payload,m=typeof x=="function"?x.call(y,d,m):x,m==null)break e;d=te({},d,m);break e;case 2:Rt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,m=l.effects,m===null?l.effects=[s]:m.push(s))}else y={eventTime:y,lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},p===null?(c=p=y,a=d):p=p.next=y,o|=m;if(s=s.next,s===null){if(s=l.shared.pending,s===null)break;m=s,s=m.next,m.next=null,l.lastBaseUpdate=m,l.shared.pending=null}}while(!0);if(p===null&&(a=d),l.baseState=a,l.firstBaseUpdate=c,l.lastBaseUpdate=p,t=l.shared.interleaved,t!==null){l=t;do o|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);vn|=o,e.lanes=o,e.memoizedState=d}}function su(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=so.transition;so.transition={};try{e(!1),t()}finally{K=n,so.transition=r}}function Bd(){return We().memoizedState}function Qh(e,t,n){var r=Kt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},zd(e))Ud(t,n);else if(n=Sd(e,t,n,r),n!==null){var l=Se();tt(n,e,r,l),Vd(n,t,r)}}function Zh(e,t,n){var r=Kt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(zd(e))Ud(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,s=i(o,n);if(l.hasEagerState=!0,l.eagerState=s,rt(s,o)){var a=t.interleaved;a===null?(l.next=l,Vs(t)):(l.next=a.next,a.next=l),t.interleaved=l;return}}catch{}finally{}n=Sd(e,t,l,r),n!==null&&(l=Se(),tt(n,e,r,l),Vd(n,t,r))}}function zd(e){var t=e.alternate;return e===J||t!==null&&t===J}function Ud(e,t){Er=ri=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Vd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ls(e,n)}}var li={readContext:He,useCallback:ve,useContext:ve,useEffect:ve,useImperativeHandle:ve,useInsertionEffect:ve,useLayoutEffect:ve,useMemo:ve,useReducer:ve,useRef:ve,useState:ve,useDebugValue:ve,useDeferredValue:ve,useTransition:ve,useMutableSource:ve,useSyncExternalStore:ve,useId:ve,unstable_isNewReconciler:!1},Gh={readContext:He,useCallback:function(e,t){return at().memoizedState=[e,t===void 0?null:t],e},useContext:He,useEffect:uu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ml(4194308,4,$d.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ml(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ml(4,2,e,t)},useMemo:function(e,t){var n=at();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=at();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Qh.bind(null,J,e),[r.memoizedState,e]},useRef:function(e){var t=at();return e={current:e},t.memoizedState=e},useState:au,useDebugValue:Xs,useDeferredValue:function(e){return at().memoizedState=e},useTransition:function(){var e=au(!1),t=e[0];return e=qh.bind(null,e[1]),at().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=J,l=at();if(Y){if(n===void 0)throw Error(b(407));n=n()}else{if(n=t(),ce===null)throw Error(b(349));mn&30||jd(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,uu(Ld.bind(null,r,i,e),[e]),r.flags|=2048,qr(9,Nd.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=at(),t=ce.identifierPrefix;if(Y){var n=xt,r=wt;n=(r&~(1<<32-et(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Wr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[ut]=t,e[Ur]=r,Jd(e,t,!1,!1),t.stateNode=e;e:{switch(o=No(n,r),n){case"dialog":Z("cancel",e),Z("close",e),l=r;break;case"iframe":case"object":case"embed":Z("load",e),l=r;break;case"video":case"audio":for(l=0;lZn&&(t.flags|=128,r=!0,fr(i,!1),t.lanes=4194304)}else{if(!r)if(e=ni(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),fr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Y)return ge(t),null}else 2*re()-i.renderingStartTime>Zn&&n!==1073741824&&(t.flags|=128,r=!0,fr(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=re(),t.sibling=null,n=X.current,Q(X,r?n&1|2:n&1),t):(ge(t),null);case 22:case 23:return la(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Oe&1073741824&&(ge(t),t.subtreeFlags&6&&(t.flags|=8192)):ge(t),null;case 24:return null;case 25:return null}throw Error(b(156,t.tag))}function l0(e,t){switch(Fs(t),t.tag){case 1:return Le(t.type)&&Zl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qn(),G(Ne),G(xe),qs(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ks(t),null;case 13:if(G(X),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(b(340));Wn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(X),null;case 4:return qn(),null;case 10:return Us(t.type._context),null;case 22:case 23:return la(),null;case 24:return null;default:return null}}var kl=!1,we=!1,i0=typeof WeakSet=="function"?WeakSet:Set,O=null;function Mn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ne(e,t,r)}else n.current=null}function ts(e,t,n){try{n()}catch(r){ne(e,t,r)}}var xu=!1;function o0(e,t){if(Fo=Wl,e=od(),Ds(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,s=-1,a=-1,c=0,p=0,d=e,m=null;t:for(;;){for(var y;d!==n||l!==0&&d.nodeType!==3||(s=o+l),d!==i||r!==0&&d.nodeType!==3||(a=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(y=d.firstChild)!==null;)m=d,d=y;for(;;){if(d===e)break t;if(m===n&&++c===l&&(s=o),m===i&&++p===r&&(a=o),(y=d.nextSibling)!==null)break;d=m,m=d.parentNode}d=y}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ao={focusedElem:e,selectionRange:n},Wl=!1,O=t;O!==null;)if(t=O,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,O=e;else for(;O!==null;){t=O;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var g=x.memoizedProps,S=x.memoizedState,f=t.stateNode,h=f.getSnapshotBeforeUpdate(t.elementType===t.type?g:Ge(t.type,g),S);f.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(b(163))}}catch(w){ne(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,O=e;break}O=t.return}return x=xu,xu=!1,x}function _r(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&ts(t,n,i)}l=l.next}while(l!==r)}}function Ni(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ns(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function nf(e){var t=e.alternate;t!==null&&(e.alternate=null,nf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ut],delete t[Ur],delete t[Uo],delete t[Uh],delete t[Vh])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function rf(e){return e.tag===5||e.tag===3||e.tag===4}function Cu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||rf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function rs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ql));else if(r!==4&&(e=e.child,e!==null))for(rs(e,t,n),e=e.sibling;e!==null;)rs(e,t,n),e=e.sibling}function ls(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ls(e,t,n),e=e.sibling;e!==null;)ls(e,t,n),e=e.sibling}var pe=null,Xe=!1;function Tt(e,t,n){for(n=n.child;n!==null;)lf(e,t,n),n=n.sibling}function lf(e,t,n){if(ct&&typeof ct.onCommitFiberUnmount=="function")try{ct.onCommitFiberUnmount(xi,n)}catch{}switch(n.tag){case 5:we||Mn(n,t);case 6:var r=pe,l=Xe;pe=null,Tt(e,t,n),pe=r,Xe=l,pe!==null&&(Xe?(e=pe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):pe.removeChild(n.stateNode));break;case 18:pe!==null&&(Xe?(e=pe,n=n.stateNode,e.nodeType===8?lo(e.parentNode,n):e.nodeType===1&&lo(e,n),Ir(e)):lo(pe,n.stateNode));break;case 4:r=pe,l=Xe,pe=n.stateNode.containerInfo,Xe=!0,Tt(e,t,n),pe=r,Xe=l;break;case 0:case 11:case 14:case 15:if(!we&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&ts(n,t,o),l=l.next}while(l!==r)}Tt(e,t,n);break;case 1:if(!we&&(Mn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ne(n,t,s)}Tt(e,t,n);break;case 21:Tt(e,t,n);break;case 22:n.mode&1?(we=(r=we)||n.memoizedState!==null,Tt(e,t,n),we=r):Tt(e,t,n);break;default:Tt(e,t,n)}}function Su(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new i0),t.forEach(function(r){var l=m0.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Ze(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=re()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*a0(r/1960))-r,10e?16:e,It===null)var r=!1;else{if(e=It,It=null,si=0,V&6)throw Error(b(331));var l=V;for(V|=4,O=e.current;O!==null;){var i=O,o=i.child;if(O.flags&16){var s=i.deletions;if(s!==null){for(var a=0;are()-na?an(e,0):ta|=n),Pe(e,t)}function pf(e,t){t===0&&(e.mode&1?(t=hl,hl<<=1,!(hl&130023424)&&(hl=4194304)):t=1);var n=Se();e=Et(e,t),e!==null&&(tl(e,t,n),Pe(e,n))}function h0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),pf(e,n)}function m0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(b(314))}r!==null&&r.delete(t),pf(e,n)}var hf;hf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ne.current)je=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return je=!1,n0(e,t,n);je=!!(e.flags&131072)}else je=!1,Y&&t.flags&1048576&&gd(t,Xl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;$l(e,t),e=t.pendingProps;var l=Hn(t,xe.current);zn(t,n),l=Zs(null,t,r,e,l,n);var i=Gs();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Le(r)?(i=!0,Gl(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Hs(t),l.updater=ji,t.stateNode=l,l._reactInternals=t,Qo(t,r,e,n),t=Yo(null,t,r,!0,i,n)):(t.tag=0,Y&&i&&Is(t),Ce(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch($l(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=g0(r),e=Ge(r,e),l){case 0:t=Go(null,t,r,e,n);break e;case 1:t=gu(null,t,r,e,n);break e;case 11:t=mu(null,t,r,e,n);break e;case 14:t=vu(null,t,r,Ge(r.type,e),n);break e}throw Error(b(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ge(r,l),Go(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ge(r,l),gu(e,t,r,l,n);case 3:e:{if(Gd(t),e===null)throw Error(b(387));r=t.pendingProps,i=t.memoizedState,l=i.element,kd(e,t),ti(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=Qn(Error(b(423)),t),t=yu(e,t,r,n,l);break e}else if(r!==l){l=Qn(Error(b(424)),t),t=yu(e,t,r,n,l);break e}else for(Re=Vt(t.stateNode.containerInfo.firstChild),Me=t,Y=!0,Je=null,n=Cd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Wn(),r===l){t=_t(e,t,n);break e}Ce(e,t,r,n)}t=t.child}return t;case 5:return Ed(t),e===null&&Wo(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,Bo(r,l)?o=null:i!==null&&Bo(r,i)&&(t.flags|=32),Zd(e,t),Ce(e,t,o,n),t.child;case 6:return e===null&&Wo(t),null;case 13:return Yd(e,t,n);case 4:return Ws(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Kn(t,null,r,n):Ce(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ge(r,l),mu(e,t,r,l,n);case 7:return Ce(e,t,t.pendingProps,n),t.child;case 8:return Ce(e,t,t.pendingProps.children,n),t.child;case 12:return Ce(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,Q(Jl,r._currentValue),r._currentValue=o,i!==null)if(rt(i.value,o)){if(i.children===l.children&&!Ne.current){t=_t(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Ct(-1,n&-n),a.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var p=c.pending;p===null?a.next=a:(a.next=p.next,p.next=a),c.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Ko(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(b(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Ko(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ce(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,zn(t,n),l=He(l),r=r(l),t.flags|=1,Ce(e,t,r,n),t.child;case 14:return r=t.type,l=Ge(r,t.pendingProps),l=Ge(r.type,l),vu(e,t,r,l,n);case 15:return qd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ge(r,l),$l(e,t),t.tag=1,Le(r)?(e=!0,Gl(t)):e=!1,zn(t,n),Hd(t,r,l),Qo(t,r,l,n),Yo(null,t,r,!0,e,n);case 19:return Xd(e,t,n);case 22:return Qd(e,t,n)}throw Error(b(156,t.tag))};function mf(e,t){return zc(e,t)}function v0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ue(e,t,n,r){return new v0(e,t,n,r)}function oa(e){return e=e.prototype,!(!e||!e.isReactComponent)}function g0(e){if(typeof e=="function")return oa(e)?1:0;if(e!=null){if(e=e.$$typeof,e===_s)return 11;if(e===bs)return 14}return 2}function qt(e,t){var n=e.alternate;return n===null?(n=Ue(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Fl(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")oa(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case _n:return un(n.children,l,i,t);case Es:o=8,l|=8;break;case yo:return e=Ue(12,n,t,l|2),e.elementType=yo,e.lanes=i,e;case wo:return e=Ue(13,n,t,l),e.elementType=wo,e.lanes=i,e;case xo:return e=Ue(19,n,t,l),e.elementType=xo,e.lanes=i,e;case Ec:return Pi(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Sc:o=10;break e;case kc:o=9;break e;case _s:o=11;break e;case bs:o=14;break e;case Ot:o=16,r=null;break e}throw Error(b(130,e==null?e:typeof e,""))}return t=Ue(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function un(e,t,n,r){return e=Ue(7,e,r,t),e.lanes=n,e}function Pi(e,t,n,r){return e=Ue(22,e,r,t),e.elementType=Ec,e.lanes=n,e.stateNode={isHidden:!1},e}function po(e,t,n){return e=Ue(6,e,null,t),e.lanes=n,e}function ho(e,t,n){return t=Ue(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function y0(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=qi(0),this.expirationTimes=qi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qi(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function sa(e,t,n,r,l,i,o,s,a){return e=new y0(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ue(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Hs(i),e}function w0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(wf)}catch(e){console.error(e)}}wf(),yc.exports=De;var xf=yc.exports,Pu=xf;vo.createRoot=Pu.createRoot,vo.hydrateRoot=Pu.hydrateRoot;/** + * @remix-run/router v1.20.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Zr(){return Zr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Cf(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function _0(){return Math.random().toString(36).substr(2,8)}function Ou(e,t){return{usr:e.state,key:e.key,idx:t}}function us(e,t,n,r){return n===void 0&&(n=null),Zr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?er(t):t,{state:n,key:t&&t.key||r||_0()})}function Sf(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function er(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function b0(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:i=!1}=r,o=l.history,s=Ft.Pop,a=null,c=p();c==null&&(c=0,o.replaceState(Zr({},o.state,{idx:c}),""));function p(){return(o.state||{idx:null}).idx}function d(){s=Ft.Pop;let S=p(),f=S==null?null:S-c;c=S,a&&a({action:s,location:g.location,delta:f})}function m(S,f){s=Ft.Push;let h=us(g.location,S,f);c=p()+1;let v=Ou(h,c),w=g.createHref(h);try{o.pushState(v,"",w)}catch(j){if(j instanceof DOMException&&j.name==="DataCloneError")throw j;l.location.assign(w)}i&&a&&a({action:s,location:g.location,delta:1})}function y(S,f){s=Ft.Replace;let h=us(g.location,S,f);c=p();let v=Ou(h,c),w=g.createHref(h);o.replaceState(v,"",w),i&&a&&a({action:s,location:g.location,delta:0})}function x(S){let f=l.location.origin!=="null"?l.location.origin:l.location.href,h=typeof S=="string"?S:Sf(S);return h=h.replace(/ $/,"%20"),ae(f,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,f)}let g={get action(){return s},get location(){return e(l,o)},listen(S){if(a)throw new Error("A history only accepts one active listener");return l.addEventListener(Tu,d),a=S,()=>{l.removeEventListener(Tu,d),a=null}},createHref(S){return t(l,S)},createURL:x,encodeLocation(S){let f=x(S);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:m,replace:y,go(S){return o.go(S)}};return g}var Ru;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ru||(Ru={}));function j0(e,t,n){return n===void 0&&(n="/"),N0(e,t,n,!1)}function N0(e,t,n,r){let l=typeof t=="string"?er(t):t,i=_f(l.pathname||"/",n);if(i==null)return null;let o=kf(e);L0(o);let s=null;for(let a=0;s==null&&a{let a={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};a.relativePath.startsWith("/")&&(ae(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let c=cn([r,a.relativePath]),p=n.concat(a);i.children&&i.children.length>0&&(ae(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),kf(i.children,t,p,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:D0(c,i.index),routesMeta:p})};return e.forEach((i,o)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))l(i,o);else for(let a of Ef(i.path))l(i,o,a)}),t}function Ef(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return l?[i,""]:[i];let o=Ef(r.join("/")),s=[];return s.push(...o.map(a=>a===""?i:[i,a].join("/"))),l&&s.push(...o),s.map(a=>e.startsWith("/")&&a===""?"/":a)}function L0(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:I0(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const P0=/^:[\w-]+$/,T0=3,O0=2,R0=1,M0=10,$0=-2,Mu=e=>e==="*";function D0(e,t){let n=e.split("/"),r=n.length;return n.some(Mu)&&(r+=$0),t&&(r+=O0),n.filter(l=>!Mu(l)).reduce((l,i)=>l+(P0.test(i)?T0:i===""?R0:M0),r)}function I0(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function F0(e,t,n){let{routesMeta:r}=e,l={},i="/",o=[];for(let s=0;s{let{paramName:m,isOptional:y}=p;if(m==="*"){let g=s[d]||"";o=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const x=s[d];return y&&!x?c[m]=void 0:c[m]=(x||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:o,pattern:e}}function A0(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Cf(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,a)=>(r.push({paramName:s,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function B0(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Cf(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function _f(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function z0(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?er(e):e;return{pathname:n?n.startsWith("/")?n:U0(n,t):t,search:q0(r),hash:Q0(l)}}function U0(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function mo(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function V0(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function H0(e,t){let n=V0(e);return t?n.map((r,l)=>l===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function W0(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=er(e):(l=Zr({},e),ae(!l.pathname||!l.pathname.includes("?"),mo("?","pathname","search",l)),ae(!l.pathname||!l.pathname.includes("#"),mo("#","pathname","hash",l)),ae(!l.search||!l.search.includes("#"),mo("#","search","hash",l)));let i=e===""||l.pathname==="",o=i?"/":l.pathname,s;if(o==null)s=n;else{let d=t.length-1;if(!r&&o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),d-=1;l.pathname=m.join("/")}s=d>=0?t[d]:"/"}let a=z0(l,s),c=o&&o!=="/"&&o.endsWith("/"),p=(i||o===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(c||p)&&(a.pathname+="/"),a}const cn=e=>e.join("/").replace(/\/\/+/g,"/"),K0=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),q0=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Q0=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Z0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const bf=["post","put","patch","delete"];new Set(bf);const G0=["get",...bf];new Set(G0);/** + * React Router v6.27.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Gr(){return Gr=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),E.useCallback(function(c,p){if(p===void 0&&(p={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let d=W0(c,JSON.parse(o),i,p.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:cn([t,d.pathname])),(p.replace?r.replace:r.push)(d,p.state,p)},[t,r,o,i,e])}function J0(e,t){return em(e,t)}function em(e,t,n,r){Ii()||ae(!1);let{navigator:l}=E.useContext($i),{matches:i}=E.useContext(tr),o=i[i.length-1],s=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let c=nr(),p;if(t){var d;let S=typeof t=="string"?er(t):t;a==="/"||(d=S.pathname)!=null&&d.startsWith(a)||ae(!1),p=S}else p=c;let m=p.pathname||"/",y=m;if(a!=="/"){let S=a.replace(/^\//,"").split("/");y="/"+m.replace(/^\//,"").split("/").slice(S.length).join("/")}let x=j0(e,{pathname:y}),g=im(x&&x.map(S=>Object.assign({},S,{params:Object.assign({},s,S.params),pathname:cn([a,l.encodeLocation?l.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?a:cn([a,l.encodeLocation?l.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),i,n,r);return t&&g?E.createElement(Di.Provider,{value:{location:Gr({pathname:"/",search:"",hash:"",state:null,key:"default"},p),navigationType:Ft.Pop}},g):g}function tm(){let e=um(),t=Z0(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),n?E.createElement("pre",{style:l},n):null,null)}const nm=E.createElement(tm,null);class rm extends E.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?E.createElement(tr.Provider,{value:this.props.routeContext},E.createElement(jf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function lm(e){let{routeContext:t,match:n,children:r}=e,l=E.useContext(da);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement(tr.Provider,{value:t},r)}function im(e,t,n,r){var l;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,s=(l=n)==null?void 0:l.errors;if(s!=null){let p=o.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);p>=0||ae(!1),o=o.slice(0,Math.min(o.length,p+1))}let a=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let p=0;p=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((p,d,m)=>{let y,x=!1,g=null,S=null;n&&(y=s&&d.route.id?s[d.route.id]:void 0,g=d.route.errorElement||nm,a&&(c<0&&m===0?(x=!0,S=null):c===m&&(x=!0,S=d.route.hydrateFallbackElement||null)));let f=t.concat(o.slice(0,m+1)),h=()=>{let v;return y?v=g:x?v=S:d.route.Component?v=E.createElement(d.route.Component,null):d.route.element?v=d.route.element:v=p,E.createElement(lm,{match:d,routeContext:{outlet:p,matches:f,isDataRoute:n!=null},children:v})};return n&&(d.route.ErrorBoundary||d.route.errorElement||m===0)?E.createElement(rm,{location:n.location,revalidation:n.revalidation,component:g,error:y,children:h(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):h()},null)}var Lf=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Lf||{}),ci=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ci||{});function om(e){let t=E.useContext(da);return t||ae(!1),t}function sm(e){let t=E.useContext(Y0);return t||ae(!1),t}function am(e){let t=E.useContext(tr);return t||ae(!1),t}function Pf(e){let t=am(),n=t.matches[t.matches.length-1];return n.route.id||ae(!1),n.route.id}function um(){var e;let t=E.useContext(jf),n=sm(ci.UseRouteError),r=Pf(ci.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function cm(){let{router:e}=om(Lf.UseNavigateStable),t=Pf(ci.UseNavigateStable),n=E.useRef(!1);return Nf(()=>{n.current=!0}),E.useCallback(function(l,i){i===void 0&&(i={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,Gr({fromRouteId:t},i)))},[e,t])}function yr(e){ae(!1)}function dm(e){let{basename:t="/",children:n=null,location:r,navigationType:l=Ft.Pop,navigator:i,static:o=!1,future:s}=e;Ii()&&ae(!1);let a=t.replace(/^\/*/,"/"),c=E.useMemo(()=>({basename:a,navigator:i,static:o,future:Gr({v7_relativeSplatPath:!1},s)}),[a,s,i,o]);typeof r=="string"&&(r=er(r));let{pathname:p="/",search:d="",hash:m="",state:y=null,key:x="default"}=r,g=E.useMemo(()=>{let S=_f(p,a);return S==null?null:{location:{pathname:S,search:d,hash:m,state:y,key:x},navigationType:l}},[a,p,d,m,y,x,l]);return g==null?null:E.createElement($i.Provider,{value:c},E.createElement(Di.Provider,{children:n,value:g}))}function fm(e){let{children:t,location:n}=e;return J0(cs(t),n)}new Promise(()=>{});function cs(e,t){t===void 0&&(t=[]);let n=[];return E.Children.forEach(e,(r,l)=>{if(!E.isValidElement(r))return;let i=[...t,l];if(r.type===E.Fragment){n.push.apply(n,cs(r.props.children,i));return}r.type!==yr&&ae(!1),!r.props.index||!r.props.children||ae(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=cs(r.props.children,i)),n.push(o)}),n}/** + * React Router DOM v6.27.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */const pm="6";try{window.__reactRouterVersion=pm}catch{}const hm="startTransition",Du=p1[hm];function mm(e){let{basename:t,children:n,future:r,window:l}=e,i=E.useRef();i.current==null&&(i.current=E0({window:l,v5Compat:!0}));let o=i.current,[s,a]=E.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},p=E.useCallback(d=>{c&&Du?Du(()=>a(d)):a(d)},[a,c]);return E.useLayoutEffect(()=>o.listen(p),[o,p]),E.createElement(dm,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:o,future:r})}var Iu;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Iu||(Iu={}));var Fu;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Fu||(Fu={}));const vm="0.8.0.beta.1",pt=({className:e,defaultClasses:t,utilityClasses:n})=>{const[r,l]=E.useState("");return E.useEffect(()=>{const i=[e,t&&t.join(" "),n&&n.join(" ")];l(i.filter(o=>o!==void 0).join(" "))},[e,t,n]),r},Au=e=>{e.preventDefault(),e.returnValue=""},gm=e=>{E.useEffect(()=>{e!==!1?window.addEventListener("beforeunload",Au):window.removeEventListener("beforeunload",Au)},[e])},rr=()=>(E.useEffect(()=>{document.getElementById("index-reset")===null&&document.body.insertAdjacentHTML("afterBegin",'')},[]),E.useRef(document.getElementById("index-reset"))),di=(e,t)=>{const n=t&&t.map(r=>{var p,d,m;const l=encodeURI(r.criteriaKey),i=typeof((p=r.values)==null?void 0:p.value)=="object"?encodeURIComponent(JSON.stringify((d=r.values)==null?void 0:d.value)):encodeURIComponent((m=r.values)==null?void 0:m.value),o=e.indexOf("#"),s=o===-1?"":e.substr(o);e=o===-1?e:e.substr(0,o);const a=new RegExp("([?&])"+l+"=.*?(&|$)","i"),c=e.indexOf("?")!==-1?"&":"?";return e.match(a)?e=e.replace(a,"$1"+l+"="+i+"$2"):e=e+c+l+"="+i,e+s});return t?`${n[n.length-1]}&shared=true`:""},ym=({loading:e,parentElementID:t})=>{document.querySelector(`[data-testid="${t}"]`);const n=document.createElement("div");n.dataset.testid="dom-ready"},wm=(e,t)=>{const n=e.querySelectorAll("fieldset"),r=Array.from(n).filter(l=>l.attributes.required);t(Array.from(r))},xm=(e,t,n,r,l,i)=>{const o=document.getElementById(`${e}`);if(!o.attributes.required){const c=i.filter(g=>g.criteriaKey===e)[0].values.value,p=g=>{for(const S in g)if(g[S]!=="")return!1;return!0},d=[...t,o],m=[...new Set(d)],y=m.filter(g=>!g.id===e),x=l.filter(g=>!g.id.includes(e));p(c)&&r(x),p(c)?n(y):n(m)}},Cm=async(e,t)=>{const n=e.map(i=>Array.from(i.elements).filter(o=>{var s,a;return((s=o.attributes["data-datetype"])==null?void 0:s.value)==="year"?!o.value||o.value&&o.value.length!==4:((a=o.attributes["data-datetype"])==null?void 0:a.value)==="day"?!o.value||o.value&&o.value==="0":!o.value})).flat(),r=e.map(i=>{if(Array.from(i.elements).every(s=>{var a;return!((a=s.attributes.type)!=null&&a.value)==="radio"}))return[];const o=Array.from(i.elements).filter(s=>{var a;return((a=s.attributes.type)==null?void 0:a.value)==="radio"});return o.length>0&&o.every(s=>!s.checked)?i:[]}).flat(),l=[n,r].flat();return t(l),l.length===0},Sm=({hasError:e,criteriaKey:t,fieldSetId:n,useFilter:r=!1})=>{const l=e.map(o=>o.id!==void 0&&n&&n.includes(o.id)||o.id!==void 0&&o.id.includes(t)).includes(!0),i=e.filter(o=>o.id!==void 0&&o.id.includes(n));return r===!0?i:l},Fe={getRequiredFieldsets:wm,getNonRequiredFieldsets:xm,handleCheckForRequiredValues:Cm,handleInvalid:Sm},Tf=e=>e.toLowerCase().replace(/[^a-zA-Z0-9\s]/g,"").replace(/ /g,"-"),jt=e=>({__html:e}),km=(e,t,n=!0)=>{const r=i=>i!=null&&typeof i=="object",l=(i,o)=>{const s=Object.keys(i),a=Object.keys(o);if(s.length!==a.length)return!1;for(const c of s){const p=i[c],d=o[c],m=r(p)&&r(d);if(m&&!l(p,d)||!m&&p!==d)return!1}return!0};if(e.dataLayer){const i={...window.dataLayer[window.dataLayer.length-1]};delete i["gtm.uniqueEventId"],delete i.eventCallback,n===!0?l(i,t)===!1&&e.dataLayer.push(t):e.dataLayer.push(t)}},Em={intro:{event:"bf_page_change",bfData:{pageView:"bf-intro",viewTitle:null}},lifeEventSection:{event:"bf_page_change",bfData:{pageView:"bf-form",viewTitle:null}},errors:{event:"bf_form_page_submit_attempt",bfData:{errors:null,errorCount:{number:null,string:null},formSuccess:!1}},modal:{event:"bf_page_change",bfData:{pageView:"bf-form-completion-modal",viewTitle:null}},verifySelections:{event:"bf_page_change",bfData:{pageView:"bf-verify-selections",viewTitle:null}},resultsView:{event:"bf_page_change",bfData:{pageView:["bf-result-eligible-view","bf-result-not-eligible-view"],viewTitle:null,eligibilityCount:{eligibleBenefitCount:null,moreInfoBenefitCount:null,notEligibleBenefitCount:null}}},openAllBenefitAccordions:{event:"bf_open_all_accordions",bfData:{accordionsOpen:!0}},benefitAccordion:{event:"bf_accordion_open",bfData:{benefitTitle:null}},benefitLink:{event:"bf_benefit_link",bfData:{benefitTitle:null}}},ie={dataLayerPush:km,dataLayerStructure:Em},_m=e=>{if(/^[0-9]*$/.test(`${e.target.value}`)){if(e.target.id.includes("day"))return e.target.value.length===2?/^(0?[1-9]|[12][0-9]|3[01])$/.test(`${e.target.value}`):e.target.value.length<3;if(e.target.id.includes("year")){const t=new Date().getFullYear().toString(),n=t.substring(t.length-1);return e.target.value.length===4?new RegExp(`^(19[0-9][0-9]|20[0-1][0-9]|20[0-2][0-${n}])$`).test(`${e.target.value}`):e.target.value.length<5}}if(e.target.id.includes("month"))return!0},fa=({hide:e})=>{const t=document.querySelector(".bf-qual-survey");t&&t.hidden===!e&&(t.hidden=e)},bm=e=>{const t=e&&new window.Date(Date.UTC(e.year,e.month,e.day));return new Date(t.getTime()+Math.abs(t.getTimezoneOffset()*6e4))},jm={37:1,38:1,39:1,40:1},dn=e=>{e.preventDefault()},Of=e=>{if(jm[e.keyCode])return dn(e),!1},fi={passive:!1},Rf="onwheel"in document.createElement("div")?"wheel":"mousewheel",Nm=()=>{window.addEventListener("DOMMouseScroll",dn,!1),window.addEventListener(Rf,dn,fi),window.addEventListener("touchmove",dn,fi),window.addEventListener("keydown",Of,!1)},Lm=()=>{window.removeEventListener("DOMMouseScroll",dn,!1),window.removeEventListener(Rf,dn,fi),window.removeEventListener("touchmove",dn,fi),window.removeEventListener("keydown",Of,!1)},Bu={disableScroll:Lm,enableScroll:Nm},Pm=({selectedValue:e,conditional:t})=>{const n=t,r=/['>', '>=', '<', '<=', '=']/g,l=n.match(r),i=n.match(/\d+/)[0],o=new RegExp(`[${l}]`,"g"),s=n.replace(/-/g,"/").replace(o,""),a=/-/,c=a.test(n)?new window.Date(s):new window.Date(new Date().getFullYear()-i,new Date().getMonth(),new Date().getDate()),p=new window.Date(Date.UTC(e.year,e.month,e.day,0,0,0));return((m,y,x)=>{const g=x,S=new window.Date(Date.UTC(y.getUTCFullYear(),y.getUTCMonth(),y.getUTCDate(),0,0,0));if(a.test(n)===!1){const f=S.getTime()-g.getTime();switch(m.length&&m.join("")){case">":return f>0;case">=":return f>=0;case"<":return f<0;case"<=":return f<=0;case"=":return+f==0;default:return!1}}else switch(m.length&&m.join("")){case">":return g.getTime()>S.getTime();case">=":return g.getTime()>=S.getTime();case"<":return g.getTime()r.fieldset.criteriaKey===t),n===void 0&&e.forEach(r=>{r.fieldset.children.forEach(l=>{l.fieldsets[0].fieldset.criteriaKey===t&&(n=l.fieldsets[0])})}),n}function Om(e){return e.slice(e.indexOf("?")+1).split("&").map(r=>{const[l,i]=r.split("=");return{criteriaKey:l,value:decodeURIComponent(i)}})}const Rm=()=>/^\/es/.test(window.location.pathname)?"es":"en",Mm=(e,t,n)=>{const r=e.location.pathname.split("/");r.slice(1);const l=r.pop(),i=r.join("/"),o=n==null?void 0:n.map(d=>Tf(d.section.heading)),s=t==="es"?"revisar-selecciónes":"verify-selections",a=t==="es"?"resultados":"results",c=t==="es"?`${a}/no-es-elegible`:`${a}/not-eligible`;return{basePath:i,indexPath:l,formPaths:o,verifySelectionsPath:s,resultsPaths:{resultsPath:a,notEligiblePath:c}}};async function $m(e){let t;if(e===void 0){const r=window.location.search;t=new URLSearchParams(r),t.get("mode")==="draft"&&`${t.get("mode")}`,e=window.location.pathname.split("/").pop()}let n;{const r=document.getElementById("benefit-finder");if(r!==null){const l=r.getAttribute("json-data-file-path"),i=r.getAttribute("draft-json-data-file-path");n=t.get("mode")==="draft"?i:l}}if(n!==void 0)return await fetch(n).then(l=>{if(l!=null&&l.ok)return l.json();throw new Error(l==null?void 0:l.status)}).then(l=>l!=null&&l.data?l:"Something went wrong.").catch(l=>(console.error(l),"Something went wrong."))}const Dm=e=>e&&e.fieldset.inputs[0].inputCriteria.values.find(t=>t.selected),Im=e=>{var t;return e&&((t=e.fieldset)==null?void 0:t.children.map(n=>n.fieldsets[0]))},Fm=e=>e&&e.flatMap((t,n)=>t.section.fieldsets.flatMap(r=>{const l=H.SelectedValue(r);return l&&[{criteriaKey:r.fieldset.inputs[0].inputCriteria.id,values:l},H.Children(r)&&H.Children(r).flatMap(i=>H.SelectedValue(i)&&{criteriaKey:i.fieldset.criteriaKey,values:H.SelectedValue(i)}).filter(i=>i!==void 0)]})).flat().filter(t=>t!==void 0),Am=(e,t)=>{const n=t.length>0&&t.map(l=>(e.forEach(i=>{const o=l.benefit.eligibility.find(s=>s.criteriaKey===i.criteriaKey);if(o!==void 0){const s=()=>{let a;return typeof i.values.value=="object"?a=o.acceptableValues.find(c=>Fi.DateEligibility({selectedValue:i.values.value,conditional:c})):a=o.acceptableValues.find(c=>c===i.values.value),a};o.isEligible=!!s()}}),l));return n&&[].concat(...n)};async function Bm(e,t,n,r){const l={...t};Fi.FindCriteria(l.section.fieldsets,e).then(i=>{var o;if(i)return((o=i.fieldset)==null?void 0:o.inputs[0].inputCriteria.values).forEach(a=>{a.value===r?a.selected=!0:delete a.selected}),n(l)}).catch(i=>(console.error(i),"Something went wrong."))}async function zm(e,t,n,r,l){const i={...t};Fi.FindCriteria(i.section.fieldsets,e).then(o=>{var s;if(o){const a=(s=o.fieldset)==null?void 0:s.inputs[0].inputCriteria.values;return l?(l.includes("day")&&(a[0].value.day=r),l.includes("month")&&(a[0].value.month=r),l.includes("year")&&(a[0].value.year=r),a[0].value={...a[0].value}):a[0].value=r,(p=>{for(const d in p)if(p[d]!==null&&p[d]!==void 0&&p[d]!=="")return!0;return!1})(a[0].value)===!1?a[0].selected=!1:a[0].selected=!0,n(i)}}).catch(o=>(console.error(o),"Something went wrong."))}const Um=(e,t,n,r,l)=>{const i=Fi.GetQueryParams(decodeURI(e));i.filter(a=>a.criteriaKey!==l);const o=(a,c)=>a[c];async function s(){await Promise.all(t.map(async a=>{a.completed=!0,await Promise.all(i.map(async c=>{const p=c.value.includes("{")?JSON.parse(c.value):c.value;p!==void 0&&typeof p=="object"?Yr.DataDate(c.criteriaKey,a,o,p):Yr.Data(c.criteriaKey,a,o,p)}))})),n(H.ElegibilityByCriteria(H.SelectedValueAll(t),r))}s()},Vm=async(e,t)=>{const n=r=>r.map(l=>{const i=l.benefit.eligibility.filter(c=>c.isEligible===!0),o=l.benefit.eligibility.filter(c=>c.isEligible===!1),s=l.benefit.eligibility.filter(c=>c.isEligible===void 0);return i.length===l.benefit.eligibility.length?t[0]:o.length===0&&s.length>0?t[1]:t[2]});try{const r=await n(e),l=(o,s)=>{const a=o.filter(c=>c===s);return{number:a.length,string:`${a.length}`}};return{eligibleBenefitCount:l(r,t[0]),moreInfoBenefitCount:l(r,t[1]),notEligibleBenefitCount:l(r,t[2])}}catch(r){console.error(r)}},H={BenefitsEligibilityCounts:Vm,Children:Im,ElegibilityByCriteria:Am,LifeEvent:$m,Language:Rm,Routes:Mm,SelectedValue:Dm,SelectedValueAll:Fm},Yr={Data:Bm,DataDate:zm,DataFromParams:Um},Fi={FindCriteria:Tm,DateEligibility:Pm,GetQueryParams:Om};var Mf={exports:{}},Hm="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Wm=Hm,Km=Wm;function $f(){}function Df(){}Df.resetWarningCache=$f;var qm=function(){function e(r,l,i,o,s,a){if(a!==Km){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Df,resetWarningCache:$f};return n.PropTypes=n,n};Mf.exports=qm();var pa=Mf.exports;const C=yi(pa),ha=({className:e,children:t,alertFieldRef:n,heading:r,description:l,type:i,hasError:o,noBackground:s,tabIndex:a,errorCount:c,errorList:p,submissionCount:d})=>{const m=i==="error"?["bf-usa-alert","usa-alert","bf-usa-alert--error","usa-alert--error",`${o===!1?"display-none":""}`]:["bf-usa-alert","usa-alert","bf-usa-alert--info","usa-alert--info",`${s?"no-background":""}`];return E.useEffect(()=>{const{errors:y}=ie.dataLayerStructure;o&&p&&ie.dataLayerPush(window,{event:y.event,bfData:{errors:p.map(x=>x==null?void 0:x.id).join(","),errorCount:{number:c,string:`${c}`},formSuccess:!1}},!1)},[d]),u.jsx("div",{className:pt({className:e,defaultClasses:m}),role:"alert",ref:n,tabIndex:a||0,"aria-live":o===!0?"assertive":"polite","aria-hidden":o===void 0?!1:!o,"data-testid":"alert",children:t?u.jsx("div",{className:"bf-usa-alert__body usa-alert__body",children:u.jsx("div",{className:"bf-usa-alert__text usa-alert__text",children:t})}):u.jsxs("div",{className:"bf-usa-alert__body usa-alert__body",children:[u.jsxs(ee,{headingLevel:2,className:"bf-usa-alert__heading usa-alert__heading","data-testid":"bf-alert-heading",children:[r==null?void 0:r.prefix," ",c," ",r==null?void 0:r.suffix]}),u.jsx("p",{className:"bf-usa-alert__text usa-alert__text",children:l}),u.jsx("ul",{"data-testid":"bf-errors-list",children:p&&p.map(y=>u.jsx("li",{"data-testid":"bf-errors-list-item",children:u.jsx("a",{href:`#${y.id}`,children:y.getAttribute("data-errormessage")||y.id})},y.id))})]})})};ha.propTypes={className:C.string,children:C.any,alertFieldRef:C.any,heading:C.object,description:C.string,type:C.string,hasError:C.bool,noBackground:C.bool,tabIndex:C.number,errorCount:C.number};const Qm=e=>e&&typeof e=="object"&&e.nodeType===1;var Zm=(e,t)=>{if(typeof e!="string")return[];(!t||!Qm(t))&&(t=window.document);const n=t.querySelectorAll(e);return Array.prototype.slice.call(n)};/* object-assign (c) Sindre Sorhus @license MIT -*/var vu=Object.getOwnPropertySymbols,y0=Object.prototype.hasOwnProperty,w0=Object.prototype.propertyIsEnumerable;function x0(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function S0(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(r.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(o){l[o]=o}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var nf=S0()?Object.assign:function(e,t){for(var n,r=x0(e),l,o=1;o-1?e.split(yu).map(function(i){return lf({type:i},o)}):(o.type=e,[o])};var wu=function(e,t){var n=e[t];return delete e[t],n},T0=function(t,n){const r=Object.keys(t).reduce(function(l,o){var i=L0(o,t[o]);return l.concat(i)},[]);return lf({add:function(o){r.forEach(function(i){o.addEventListener(i.type,i.delegate,i.options)})},remove:function(o){r.forEach(function(i){o.removeEventListener(i.type,i.delegate,i.options)})}},n)};const O0=nf,M0=T0,xu=(...e)=>function(n=document.body){e.forEach(r=>{typeof this[r]=="function"&&this[r].call(this,n)})};var P0=(e,t)=>M0(e,O0({on:xu("init","add"),off:xu("teardown","remove")},t));const Su="aria-expanded",R0="aria-controls",Cu="hidden";var D0=(e,t)=>{let n=t;typeof n!="boolean"&&(n=e.getAttribute(Su)==="false"),e.setAttribute(Su,n);const r=e.getAttribute(R0),l=document.getElementById(r);if(!l)throw new Error(`No toggle target found with id: "${r}"`);return n?l.removeAttribute(Cu):l.setAttribute(Cu,""),n};function $0(e,t=window,n=document.documentElement){const r=e.getBoundingClientRect();return r.top>=0&&r.left>=0&&r.bottom<=(t.innerHeight||n.clientHeight)&&r.right<=(t.innerWidth||n.clientWidth)}var F0=$0,I0={CLICK:"click"},A0={prefix:"usa"};const of=g0,z0=P0,ku=D0,B0=F0,{CLICK:V0}=I0,{prefix:ro}=A0,lo=`.${ro}-accordion, .${ro}-accordion--bordered`,H0=`.${ro}-banner__button`,xr=`.${ro}-accordion__button[aria-controls]:not(${H0})`,Eu="aria-expanded",U0="data-allow-multiple",sf=e=>of(xr,e).filter(n=>n.closest(lo)===e),Sr=(e,t)=>{const n=e.closest(lo);let r=t;if(!n)throw new Error(`${xr} is missing outer ${lo}`);r=ku(e,t);const l=n.hasAttribute(U0);r&&!l&&sf(n).forEach(o=>{o!==e&&ku(o,!1)})},W0=e=>Sr(e,!0),K0=e=>Sr(e,!1),q0=z0({[V0]:{[xr](){Sr(this),this.getAttribute(Eu)==="true"&&(B0(this)||this.scrollIntoView())}}},{init(e){of(xr,e).forEach(t=>{const n=t.getAttribute(Eu)==="true";Sr(t,n)})},ACCORDION:lo,BUTTON:xr,show:W0,hide:K0,toggle:Sr,getButtons:sf});var Q0=q0;const _u=ao(Q0),af=({id:e,heading:t,subHeading:n,children:r,isExpanded:l,hidden:o,...i})=>{M.useEffect(()=>(_u.on(),()=>{_u.off()}));const[s,u]=M.useState(!1),{benefitAccordion:c}=se.dataLayerStructure,f=g=>{u(g),g===!0&&se.dataLayerPush(window,{event:c.event,bfData:{benefitTitle:t}},!1)};M.useEffect(()=>{u(l)},[l]);const m=()=>s?a.jsx(dt,{type:"close","aria-hidden":"true"}):a.jsx(dt,{type:"open","aria-hidden":"true"}),p=g=>g.replace(/ +/g,"-").toLowerCase();return a.jsxs("div",{className:"bf-usa-accordion usa-accordion",...i,hidden:o,children:[a.jsx("h4",{className:"bf-usa-accordion__heading usa-accordion__heading",children:a.jsxs("button",{type:"button",className:"bf-usa-accordion__button usa-accordion__button","aria-expanded":s||!1,"aria-controls":e&&p(e),onClick:()=>f(!s),children:[a.jsx("span",{className:"bf-accordion-heading",children:t}),a.jsx("br",{}),a.jsx("span",{className:"bf-accordion-sub-heading",children:n}),m()]})}),a.jsx("div",{id:e&&p(e),className:"bf-usa-accordion__content usa-accordion__content usa-prose",hidden:s||!0,children:a.jsx("div",{children:r})})]})};af.propTypes={id:y.string,heading:y.string,subHeading:y.string,description:y.string,children:y.node};const uf=({data:e,entryKey:t,expandAll:n,isExpandAll:r,setExpandAll:l,notEligibleView:o,ui:i})=>{const{benefitAccordion:s,benefitAccordionGroup:u}=i,{eligibleStatusLabels:c,agencyPrefix:f,visitLabel:m,unmetLabel:p,sourceIsEnglish:g}=s,{closedState:S,openState:x}=u,{benefitLink:b,openAllBenefitAccordions:h}=se.dataLayerStructure,d=r?`${x} -`:`${S} +`,v=L=>{se.dataLayerPush(window,{event:b.event,bfData:{benefitTitle:L}})},w=L=>{l(!L),se.dataLayerPush(window,{event:h.event,bfData:{accordionsOpen:!L}},!1)},E=()=>n&&a.jsx(Te,{className:"bf-expand-all","aria-label":d,outline:!0,onClick:()=>w(r),children:d}),N=({items:L})=>a.jsxs("div",{className:"bf-unmet-criteria-group",children:[a.jsx("div",{className:"bf-unmet-criteria-title",children:p}),a.jsx("ul",{className:"bf-unmet-criteria-list",children:L.map((B,R)=>{const{label:H}=B;return a.jsx("li",{className:"bf-unmet-criteria-item",children:H},`not-eligible-list-${R}`)})})]}),j=({items:L})=>a.jsxs("div",{className:"bf-unmet-criteria-group",children:[a.jsx("div",{className:"bf-unmet-criteria-title",children:c[1]}),a.jsx("ul",{className:"bf-unmet-criteria-list",children:L.map((B,R)=>{const{label:H}=B;return a.jsx("li",{className:"bf-unmet-criteria-item",children:H},`more-info-${R}`)})})]});return a.jsxs("div",{className:"bf-usa-accordion-group",children:[a.jsx(E,{}),e&&e.map((L,B)=>{const{agency:R,eligibility:H,SourceLink:ae,summary:Oe,title:D,SourceIsEnglish:F}=L[t],W=H.filter(I=>I.isEligible===!0),C=H.filter(I=>I.isEligible===!1),k=H.filter(I=>I.isEligible===void 0),O=W.length===H.length?c[0]:C.length===0&&k.length>0?c[1]:c[2],P=o===!1&&O!==c[0]?!0:o===!0&&O===c[0];return a.jsxs(af,{id:`${D}`,heading:D,subHeading:O,isExpanded:r,"data-analytics":"bf-usa-accordion","data-analytics-content":D,hidden:P,"data-testid":"benefit",children:[a.jsx(ee,{className:"bf-usa-detail-title",headingLevel:4,children:`${f} ${R.title}`}),a.jsx("div",{className:"bf-usa-detail-summary",dangerouslySetInnerHTML:jt(Oe)}),a.jsx(mf,{className:"bf-usa-criteria-list",data:W,initialEligibilityLength:H.length,ui:s}),C.length>0&&a.jsx(N,{items:C}),k.length>0&&a.jsx(j,{items:k}),a.jsx("div",{className:"bf-usa-accordion-group-cta-wrapper",children:a.jsxs(ta,{className:"bf-usa-link",href:ae,target:"_blank",rel:"noopener noreferrer",onClick:()=>v(D),"data-testid":"bf-benefit-link",noCarrot:!0,children:[m," ",R.title," ",g&&F===!0?g:""]})})]},`${B}-${D}`)})]})};uf.propTypes={data:y.array,entryKey:y.string,expandAll:y.bool,isExpandAll:y.bool,setExpandAll:y.func,notEligibleView:y.bool,ui:y.object};const mn={officerNavy:"#162e51",marine:"#1a4480",popBlue:"#005ea2",sky:"#d9e8f6",darkSky:"#b6dbfd",offBlack:"#1b1b1b",white:"#fff",bannerBlue:"#112f4e",grey:"#757575",mediumGrey:"#979797",darkMediumGrey:"#3d4551",baseGrey:"#dcdee0",baseLightGrey:"#f0f0f0",lightTeal:"#d2ebf1",pureBlack:"#000",electricBlue:"#0050d8",teal:"#00bde3",mediumTeal:"#ccecf2",darkTeal:"#0081a1",alertRed:"#b50909",greenCheck:"#009831"};function Te({children:e,className:t,onClick:n,secondary:r,outline:l,disabled:o,unstyled:i,type:s,icon:u,...c}){const[f,m]=M.useState(null),p=r===!0?"secondary":l===!0?"outline":i===!0?"unstyled":null,[g,S]=M.useState(!1),[x,b]=M.useState();return M.useEffect(()=>{b(g&&r||g&&i?mn.marine:mn.popBlue)},[g]),M.useEffect(()=>{switch(p){case"secondary":m(["bf-usa-button","usa-button","bf-usa-button--secondary","usa-button--secondary"]);break;case"outline":m(["bf-usa-button","usa-button","bf-usa-button--outline","usa-button--outline"]);break;case"unstyled":m(["bf-usa-button","usa-button","bf-usa-button--unstyled","usa-button--unstyled"]);break;default:m(["bf-usa-button","usa-button"])}},[p,r,i]),a.jsxs("button",{onClick:o?null:n,type:s||"button",disabled:o,"aria-disabled":o,className:ft({className:t,defaultClasses:f}),onMouseOver:()=>S(!0),onMouseLeave:()=>S(!1),"data-testid":c["data-testid"],id:c.id,children:[u&&a.jsx(dt,{type:u,color:x,"aria-hidden":"true"}),e]})}Te.propTypes={children:y.node,className:y.string,onClick:y.func,secondary:y.bool,disabled:y.bool,unstyled:y.bool,type:y.oneOf(["button","reset","download"]),icon:y.string};y.object,y.object;const cf=({className:e,title:t,body:n,cta:r,href:l,noCarrot:o,carrotType:i,icon:s,...u})=>{const c=s!==void 0?["bf-card-icon"]:"",f=["add-list-reset"],m=o===!0?null:a.jsx(dt,{type:i,color:"#162E51","aria-hidden":"true"}),p=s===void 0?null:a.jsx(dt,{type:s,className:"bf-relative-icon","aria-hidden":"true"});return a.jsx("li",{className:ft({className:e,defaultClasses:c,utilityClasses:f}),...u,children:a.jsxs("a",{className:"bf-usa-card__container usa-card__container",href:l,children:[p,a.jsx("div",{className:"bf-usa-card__header usa-card__header",children:a.jsx(ee,{className:"bf-usa-card__heading usa-card__heading",headingLevel:3,children:t})}),a.jsx("div",{className:"bf-usa-card__body usa-card__body",dangerouslySetInnerHTML:jt(n)}),a.jsx("div",{className:"bf-usa-card__cta usa-card__cta",children:r}),m]})},`${t}`)};cf.propTypes={className:y.string,title:y.string,body:y.string,href:y.string,noCarrot:y.bool,carrotType:y.string,icon:y.string};const Ys=({heading:e,description:t})=>a.jsx("div",{className:"bf-chevron",children:a.jsxs("div",{className:"bf-grid-container grid-container",children:[a.jsx(ee,{className:"bf-chevron-heading",headingLevel:1,children:e}),a.jsx("div",{className:"bf-chevron-description",dangerouslySetInnerHTML:jt(t)})]})});Ys.propTypes={heading:y.string,description:y.string};const df=({onChange:e,value:t,ui:n,parentLegend:r,id:l,invalid:o,errorMessage:i})=>{const{date:s,select:u,errorText:c}=n,{labelDay:f,labelMonth:m,labelYear:p,monthOptions:g}=s,{dateDefaultValue:S}=u,{suffix:x,prefix:b}=c,h=(v,w)=>v&&v.map(E=>E.id===w).includes(!0),d={month:i?`${i} : ${m.toLowerCase()}`:`${b} ${r==null?void 0:r.toLowerCase()} ${m.toLowerCase()} ${x}`,day:i?`${i} : ${f.toLowerCase()}`:`${b} ${r==null?void 0:r.toLowerCase()} ${f.toLowerCase()} ${x}`,year:i?`${i} : ${p.toLowerCase()}`:`${b} ${r==null?void 0:r.toLowerCase()} ${p.toLowerCase()} ${x}`};return a.jsxs(a.Fragment,{children:[a.jsxs("ul",{className:"add-list-reset",children:[h(o,`${l}_month`)&&a.jsx("li",{id:`month-error-description-${l}`,"data-testid":`month-error-description-${l}`,className:"bf-error-detail","aria-live":"assertive",children:d.month}),h(o,`${l}_day`)&&a.jsx("li",{id:`day-error-description-${l}`,"data-testid":`day-error-description-${l}`,className:"bf-error-detail","aria-live":"assertive",children:d.day}),h(o,`${l}_year`)&&a.jsx("li",{id:`year-error-description-${l}`,"data-testid":`year-error-description-${l}`,className:"bf-error-detail","aria-live":"assertive",children:d.year})]}),a.jsxs("div",{id:`bf-usa-memorable-date-${l}`,className:"bf-usa-memorable-date usa-memorable-date",children:[a.jsxs("div",{className:"bf-usa-form-group usa-form-group bf-usa-form-group--month usa-form-group--month bf-usa-form-group--select usa-form-group--select",children:[a.jsx("label",{className:"bf-usa-label usa-label",htmlFor:`${l}_month`,children:m}),a.jsx("div",{id:`${l}-month-description`,className:"usa-sr-only",children:"Select a month from the list"}),a.jsxs("select",{className:`bf-usa-select usa-select ${h(o,`${l}_month`)?"usa-input--error":""}`,id:`${l}_month`,name:`${l}_month`,"aria-describedby":`${l}-month-description`,value:t&&t.month||"",onChange:e,"aria-invalid":h(o,`${l}_month`),"data-errormessage":d.month,"aria-errormessage":`month-error-description-${l}`,"data-datetype":"month",children:[a.jsx("option",{value:"",children:S},"default"),g.map((v,w)=>a.jsx("option",{value:w,children:v.label},`${v.label}-${w}`))]})]}),a.jsxs("div",{className:"bf-usa-form-group usa-form-group bf-usa-form-group--day usa-form-group--day",children:[a.jsx("label",{className:"bf-usa-label usa-label",htmlFor:`${l}_day`,children:f}),a.jsx("div",{id:`${l}-day-description`,className:"usa-sr-only",children:"Enter two numerals for day"}),a.jsx("input",{className:`bf-usa-input usa-input ${h(o,`${l}_day`)?"usa-input--error":""}`,"aria-describedby":`${l}-day-description`,id:`${l}_day`,name:`${l}_day`,inputMode:"numeric",value:t&&t.day||"",onChange:e,"aria-invalid":h(o,`${l}_day`),"data-errormessage":d.day,"aria-errormessage":`day-error-description-${l}`,"data-datetype":"day"})]}),a.jsxs("div",{className:"bf-usa-form-group usa-form-group bf-usa-form-group--year usa-form-group--year",children:[a.jsx("label",{className:"bf-usa-label usa-label",htmlFor:`${l}_year`,children:p}),a.jsx("div",{id:`${l}-year-description`,className:"usa-sr-only",children:"Enter four numerals for year"}),a.jsx("input",{className:`bf-usa-input usa-input ${h(o,`${l}_year`)?"usa-input--error":""}`,"aria-describedby":`${l}-year-description`,id:`${l}_year`,name:`${l}_year`,inputMode:"numeric",value:t&&t.year||"",onChange:e,"aria-invalid":h(o,`${l}_year`),"data-errormessage":d.year,"aria-errormessage":`year-error-description-${l}`,"data-datetype":"year"})]})]})]})};df.propTypes={onChange:y.func,value:y.object,ui:y.object,id:y.string,invalid:y.oneOfType([y.bool,y.array])};const Z0=({ui:e,data:t})=>{const[n,r]=M.useState(()=>to(window.location.href,t)),l=`${encodeURIComponent(n)}`,o=i=>{i.preventDefault(),r(to(window.location.href,t)),window.location=`mailto:?subject=${e==null?void 0:e.emailSubject}&body=${l}`};return a.jsx("a",{href:"",className:"bf-email-trigger bf-usa-link usa-link",onClick:i=>o(i),children:(e==null?void 0:e.emailTrigger)||"Email"})},Tl=({children:e,legend:t,required:n,alertRef:r,requiredLabel:l,hidden:o,errorMessage:i,hint:s,className:u,id:c,invalid:f,ui:m})=>{const p=o!==void 0&&o?["display-none"]:"",g=[`bf-usa-fieldset usa-fieldset ${n===!0?"required-field":""} ${f===!0?"usa-input--error":""}`],S=p,{prefix:x,suffix:b}=m,d=n===!1?a.jsx(Zi,{children:t}):a.jsx(a.Fragment,{children:a.jsxs(Zi,{children:[t,a.jsx(pf,{requiredLabel:l})]})}),v=i?`${i}`:`${x} ${t&&t.toLowerCase().replace("?","")} ${b}`;return a.jsx("div",{className:"bf-fieldset-wrapper",children:a.jsxs("fieldset",{className:ft({className:u,defaultClasses:g,utilityClasses:S}),ref:r,required:n===!0,id:c,"data-errormessage":v,hidden:o,"aria-hidden":o,children:[t&&d,f===!0&&a.jsx("div",{id:`error-description-${c}`,"data-testid":`error-description-${c}`,className:"bf-error-detail","aria-live":"assertive",children:v}),s&&a.jsx("div",{className:"bf-hint",children:s}),e]})})};Tl.propTypes={children:y.node,legend:y.string,alertRef:y.any,requiredLabel:y.object,hidden:y.bool,hint:y.string,className:y.string,invalid:y.bool,ui:y.object};function ff({children:e}){return a.jsx("form",{className:"bf-usa-form",children:a.jsx("div",{className:"bf-grid-contianer grid-container",children:e})})}ff.propTypes={children:y.node};const ee=({children:e,className:t,headingLevel:n,...r})=>{const l=[""],o=`h${n}`;return a.jsx(o,{className:ft({className:t,defaultClasses:l}),id:n===1?"skip-to-h1":null,...r,"aria-level":n,role:"heading",children:e})};ee.propTypes={children:y.oneOfType([y.string,y.array]),className:y.string,headingLevel:y.number};const pf=({requiredLabel:e})=>a.jsx("span",{title:"required",className:"bf-usa-hint usa-hint usa-hint--required bf-usa-hint--required bf-required required",children:`(${(e==null?void 0:e.value)||"Required"})`});pf.propTypes={requiredLabel:y.object};const G0=()=>a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 44.31 44.31",children:[a.jsxs("g",{id:"Layer_1","data-name":"Layer 1",children:[a.jsxs("g",{children:[a.jsx("path",{className:"cls-1",fill:"#e8f6fb",strokeWidth:"0px",d:"M22.16,40.85c-10.33,0-18.7-8.37-18.7-18.7S11.83,3.46,22.16,3.46c7.55,0,14.06,4.48,17.01,10.93.08.18.16.37.24.55.93,2.22,1.44,4.66,1.44,7.22,0,10.33-8.37,18.7-18.7,18.7Z"}),a.jsx("path",{className:"cls-4",fill:"#e7f6fb",strokeWidth:"0px",d:"M22.16,39.34c-9.49,0-17.19-7.69-17.19-17.19S12.66,4.97,22.16,4.97c7,0,13.03,4.19,15.71,10.2.95,2.14,1.48,4.5,1.48,6.99,0,9.49-7.69,17.19-17.19,17.19Z"})]}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"22.01",cy:"3.63",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"22.01",cy:"3.63",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M40.55,12.43l-1.46.59c-2.11-3.91-5.56-6.99-9.75-8.6v1.63c3.55,1.51,6.49,4.18,8.34,7.54l-1.55.63c-.17.07-.19.29-.05.4l3.66,2.66c.14.1.33.02.36-.15l.77-4.46c.03-.18-.15-.32-.31-.25Z"}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"40.43",cy:"22.08",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"40.43",cy:"22.08",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M31.63,40.86l-.59-1.46c3.91-2.11,6.99-5.56,8.6-9.75h-1.63c-1.51,3.55-4.18,6.49-7.54,8.34l-.63-1.55c-.07-.17-.29-.19-.4-.05l-2.66,3.66c-.1.14-.02.33.15.36l4.46.77c.18.03.32-.15.25-.31Z"}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"22.01",cy:"40.53",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"22.01",cy:"40.53",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M3.48,31.73l1.46-.59c2.11,3.91,5.56,6.99,9.75,8.6v-1.63c-3.55-1.51-6.49-4.18-8.34-7.54l1.55-.63c.17-.07.19-.29.05-.4l-3.66-2.66c-.14-.1-.33-.02-.36.15l-.77,4.46c-.03.18.15.32.31.25Z"}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"3.6",cy:"22.08",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"3.6",cy:"22.08",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M12.4,3.31l.59,1.46c-3.91,2.11-6.99,5.56-8.6,9.75h1.63c1.51-3.55,4.18-6.49,7.54-8.34l.63,1.55c.07.17.29.19.4.05l2.66-3.66c.1-.14.02-.33-.15-.36l-4.46-.77c-.18-.03-.32.15-.25.31Z"}),a.jsxs("g",{children:[a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M24.12,23.21l-.04-4.46c.16,0,.32-.02.47-.03,1.7-.13,3.11-1.33,3.52-2.97l.37-1.48c.13-.53-.19-1.06-.71-1.19-.52-.13-1.06.19-1.19.71l-.37,1.48c-.21.83-.92,1.43-1.78,1.49-.8.06-1.7.1-2.67.1-.25,0-.51,0-.77.02-2.01.12-3.72,1.49-4.24,3.42l-.64,2.32c-.14.52.17,1.06.69,1.2.09.02.17.04.26.04.43,0,.83-.29.95-.72l.64-2.32c.13-.49.41-.91.76-1.25l-.03,3.64-.98,7.25c-.08.6.34,1.15.93,1.22.05,0,.1,0,.15,0,.54,0,1.01-.4,1.08-.94l.95-7.05h.5l.95,7.05c.07.55.54.94,1.08.94.05,0,.1,0,.15,0,.6-.08,1.02-.63.93-1.22l-.97-7.25Z"}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M21.74,16.72c1.2,0,2.18-.98,2.18-2.18s-.98-2.18-2.18-2.18-2.18.98-2.18,2.18c0,1.2.98,2.18,2.18,2.18Z"})]})]}),a.jsxs("g",{id:"Layer_1_copy_3","data-name":"Layer 1 copy 3",children:[a.jsxs("g",{children:[a.jsx("path",{className:"cls-5",fill:"#fff",strokeWidth:"0px",d:"M22.16,40.85c-10.33,0-18.7-8.37-18.7-18.7S11.83,3.46,22.16,3.46c7.55,0,14.06,4.48,17.01,10.93.08.18.16.37.24.55.93,2.22,1.44,4.66,1.44,7.22,0,10.33-8.37,18.7-18.7,18.7Z"}),a.jsx("path",{className:"cls-4",fill:"#e7f6fb",strokeWidth:"0px",d:"M22.16,36.47c-7.91,0-14.32-6.41-14.32-14.32s6.41-14.32,14.32-14.32c5.83,0,10.85,3.49,13.08,8.49.79,1.78,1.23,3.75,1.23,5.82,0,7.91-6.41,14.32-14.32,14.32Z"})]}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"22.01",cy:"3.63",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"22.01",cy:"3.63",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M40.55,12.43l-1.46.59c-2.11-3.91-5.56-6.99-9.75-8.6v1.63c3.55,1.51,6.49,4.18,8.34,7.54l-1.55.63c-.17.07-.19.29-.05.4l3.66,2.66c.14.1.33.02.36-.15l.77-4.46c.03-.18-.15-.32-.31-.25Z"}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"40.43",cy:"22.08",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"40.43",cy:"22.08",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M31.63,40.86l-.59-1.46c3.91-2.11,6.99-5.56,8.6-9.75h-1.63c-1.51,3.55-4.18,6.49-7.54,8.34l-.63-1.55c-.07-.17-.29-.19-.4-.05l-2.66,3.66c-.1.14-.02.33.15.36l4.46.77c.18.03.32-.15.25-.31Z"}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"22.01",cy:"40.53",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"22.01",cy:"40.53",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M3.48,31.73l1.46-.59c2.11,3.91,5.56,6.99,9.75,8.6v-1.63c-3.55-1.51-6.49-4.18-8.34-7.54l1.55-.63c.17-.07.19-.29.05-.4l-3.66-2.66c-.14-.1-.33-.02-.36.15l-.77,4.46c-.03.18.15.32.31.25Z"}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"3.6",cy:"22.08",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"3.6",cy:"22.08",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M12.4,3.31l.59,1.46c-3.91,2.11-6.99,5.56-8.6,9.75h1.63c1.51-3.55,4.18-6.49,7.54-8.34l.63,1.55c.07.17.29.19.4.05l2.66-3.66c.1-.14.02-.33-.15-.36l-4.46-.77c-.18-.03-.32.15-.25.31Z"})]}),a.jsx("g",{id:"dude",children:a.jsxs("g",{children:[a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M24.12,23.21l-.04-4.46c.16,0,.32-.02.47-.03,1.7-.13,3.11-1.33,3.52-2.97l.37-1.48c.13-.53-.19-1.06-.71-1.19-.52-.13-1.06.19-1.19.71l-.37,1.48c-.21.83-.92,1.43-1.78,1.49-.8.06-1.7.1-2.67.1-.25,0-.51,0-.77.02-2.01.12-3.72,1.49-4.24,3.42l-.64,2.32c-.14.52.17,1.06.69,1.2.09.02.17.04.26.04.43,0,.83-.29.95-.72l.64-2.32c.13-.49.41-.91.76-1.25l-.03,3.64-.98,7.25c-.08.6.34,1.15.93,1.22.05,0,.1,0,.15,0,.54,0,1.01-.4,1.08-.94l.95-7.05h.5l.95,7.05c.07.55.54.94,1.08.94.05,0,.1,0,.15,0,.6-.08,1.02-.63.93-1.22l-.97-7.25Z"}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M21.74,16.72c1.2,0,2.18-.98,2.18-2.18s-.98-2.18-2.18-2.18-2.18.98-2.18,2.18c0,1.2.98,2.18,2.18,2.18Z"})]})})]}),Y0=({color:e})=>a.jsx("svg",{className:"bf-carrot",width:"12",height:"19",viewBox:"0 0 12 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.78013 1.73698C3.33373 1.29058 2.60998 1.29059 2.16359 1.73698L1.74049 2.16007C1.29444 2.60612 1.29405 3.32919 1.73961 3.77573L6.7498 8.79686C7.19502 9.24305 7.19502 9.96544 6.7498 10.4116L1.73961 15.4328C1.29405 15.8793 1.29444 16.6024 1.7405 17.0484L2.16359 17.4715C2.60998 17.9179 3.33373 17.9179 3.78013 17.4715L10.8391 10.4125C11.2855 9.96612 11.2855 9.24237 10.8391 8.79597L3.78013 1.73698Z",fill:e||mn.officerNavy})}),X0=({color:e})=>a.jsxs("svg",{className:"bf-carrot-solid",xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",fill:e||mn.white,children:[a.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),a.jsx("path",{d:"M7 10l5 5 5-5z"})]}),J0=({color:e})=>a.jsxs("svg",{className:"bf-close",xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",children:[a.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),a.jsx("path",{d:"M19 13H5v-2h14v2z",fill:e||mn.black})]}),em=()=>a.jsxs("svg",{className:"bf-death",width:"45",height:"45",viewBox:"0 0 45 45",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.1501 6.87479C20.1501 9.34031 18.1533 11.3388 15.6903 11.3388C13.2273 11.3388 11.2309 9.34031 11.2309 6.87479C11.2309 4.40927 13.2273 2.4104 15.6903 2.4104C18.1533 2.4104 20.1501 4.40927 20.1501 6.87479ZM8.94118 13.9881C8.97531 13.7489 9.18017 13.5712 9.42182 13.5712H21.8969C22.0106 13.5712 22.1206 13.6111 22.2079 13.6839L22.6929 14.0884L28.6272 19.0387C28.7145 19.1115 28.8246 19.1514 28.9382 19.1514H37.5777C37.8151 19.1514 38.0176 19.323 38.0566 19.5572L40.1247 31.979C40.1739 32.2749 39.9457 32.5442 39.6458 32.5442H37.3595C37.0914 32.5442 36.874 32.7616 36.874 33.0297V42.1033C36.874 42.3714 36.6567 42.5888 36.3885 42.5888H32.8998C32.6316 42.5888 32.4143 42.3714 32.4143 42.1033V29.6815C32.4143 29.4134 32.6316 29.196 32.8998 29.196H34.0713C34.3713 29.196 34.5995 28.9267 34.5502 28.6307L33.9758 25.1807L33.7429 23.6286C33.7418 23.6213 33.7355 23.6158 33.728 23.6158C33.7206 23.6158 33.7143 23.6105 33.7131 23.6032L33.5969 22.9053C33.5579 22.6712 33.3553 22.4996 33.118 22.4996H25.9029C25.7879 22.4996 25.6767 22.4588 25.589 22.3844L20.5939 18.1504C20.5062 18.076 20.3949 18.0352 20.2799 18.0352H13.6883C13.4389 18.0352 13.23 18.2242 13.2052 18.4725L12.6333 24.1978C12.6047 24.4836 12.8291 24.7316 13.1164 24.7316H14.0905C14.3586 24.7316 14.576 24.949 14.576 25.2171V42.1035C14.576 42.3716 14.3586 42.589 14.0905 42.589H10.6017C10.3336 42.589 10.1162 42.3716 10.1162 42.1035V29.6817C10.1162 29.4135 9.89885 29.1962 9.63071 29.1962H7.33117C7.03575 29.1962 6.80881 28.9346 6.85053 28.6421L8.94118 13.9881ZM21.2653 25.2167C21.2653 24.9486 21.0479 24.7312 20.7798 24.7312H17.291C17.0229 24.7312 16.8055 24.9486 16.8055 25.2167V42.1031C16.8055 42.3712 17.0229 42.5886 17.291 42.5886H20.7798C21.0479 42.5886 21.2653 42.3712 21.2653 42.1031V25.2167ZM25.7247 25.2167C25.7247 24.9486 25.9421 24.7312 26.2102 24.7312H29.699C29.9671 24.7312 30.1845 24.9486 30.1845 25.2167V42.1031C30.1845 42.3712 29.9671 42.5886 29.699 42.5886H26.2102C25.9421 42.5886 25.7247 42.3712 25.7247 42.1031V25.2167ZM35.7589 12.4548C35.7589 14.9203 33.7625 16.9192 31.2995 16.9192C28.8365 16.9192 26.8397 14.9203 26.8397 12.4548C26.8397 9.98928 28.8365 7.99041 31.2995 7.99041C33.7625 7.99041 35.7589 9.98928 35.7589 12.4548Z",fill:"#E9F6FB",stroke:"#1B1B1B",strokeWidth:"2.77965"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.1501 6.87479C20.1501 9.34031 18.1533 11.3388 15.6903 11.3388C13.2273 11.3388 11.2309 9.34031 11.2309 6.87479C11.2309 4.40927 13.2273 2.4104 15.6903 2.4104C18.1533 2.4104 20.1501 4.40927 20.1501 6.87479ZM8.94118 13.9881C8.97531 13.7489 9.18017 13.5712 9.42182 13.5712H21.8969C22.0106 13.5712 22.1206 13.6111 22.2079 13.6839L22.6929 14.0884L28.6272 19.0387C28.7145 19.1115 28.8246 19.1514 28.9382 19.1514H37.5777C37.8151 19.1514 38.0177 19.323 38.0566 19.5572L40.1247 31.979C40.1739 32.2749 39.9457 32.5442 39.6458 32.5442H37.3595C37.0914 32.5442 36.874 32.7616 36.874 33.0297V42.1033C36.874 42.3714 36.6567 42.5888 36.3885 42.5888H32.8998C32.6316 42.5888 32.4143 42.3714 32.4143 42.1033V29.6815C32.4143 29.4134 32.6316 29.196 32.8998 29.196H34.0713C34.3713 29.196 34.5995 28.9267 34.5502 28.6307L33.9758 25.1807L33.7429 23.6286C33.7418 23.6213 33.7355 23.6158 33.728 23.6158C33.7206 23.6158 33.7143 23.6105 33.7131 23.6032L33.5969 22.9053C33.5579 22.6712 33.3553 22.4996 33.118 22.4996H25.9029C25.7879 22.4996 25.6767 22.4588 25.589 22.3844L20.5939 18.1504C20.5062 18.076 20.3949 18.0352 20.2799 18.0352H13.6883C13.4389 18.0352 13.23 18.2242 13.2052 18.4725L12.6333 24.1978C12.6047 24.4836 12.8291 24.7316 13.1164 24.7316H14.0905C14.3586 24.7316 14.576 24.949 14.576 25.2171V42.1035C14.576 42.3716 14.3586 42.589 14.0905 42.589H10.6017C10.3336 42.589 10.1162 42.3716 10.1162 42.1035V29.6817C10.1162 29.4135 9.89885 29.1962 9.63071 29.1962H7.33117C7.03575 29.1962 6.80881 28.9346 6.85053 28.6421L8.94118 13.9881ZM21.2653 25.2167C21.2653 24.9486 21.0479 24.7312 20.7798 24.7312H17.291C17.0229 24.7312 16.8055 24.9486 16.8055 25.2167V42.1031C16.8055 42.3712 17.0229 42.5886 17.291 42.5886H20.7798C21.0479 42.5886 21.2653 42.3712 21.2653 42.1031V25.2167ZM25.7247 25.2167C25.7247 24.9486 25.9421 24.7312 26.2102 24.7312H29.699C29.9671 24.7312 30.1845 24.9486 30.1845 25.2167V42.1031C30.1845 42.3712 29.9671 42.5886 29.699 42.5886H26.2102C25.9421 42.5886 25.7247 42.3712 25.7247 42.1031V25.2167ZM35.7589 12.4548C35.7589 14.9203 33.7625 16.9192 31.2995 16.9192C28.8365 16.9192 26.8397 14.9203 26.8397 12.4548C26.8397 9.98928 28.8365 7.99041 31.2995 7.99041C33.7625 7.99041 35.7589 9.98928 35.7589 12.4548Z",fill:"white",stroke:"#00C1E7",strokeWidth:"0.571814"})]}),tm=({color:e})=>a.jsx("svg",{width:"20",height:"16",viewBox:"0 0 20 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 0.000244141H2C0.9 0.000244141 0.00999999 0.900244 0.00999999 2.00024L0 14.0002C0 15.1002 0.9 16.0002 2 16.0002H18C19.1 16.0002 20 15.1002 20 14.0002V2.00024C20 0.900244 19.1 0.000244141 18 0.000244141ZM18 14.0002H2V4.00024L10 9.00024L18 4.00024V14.0002ZM10 7.00024L2 2.00024H18L10 7.00024Z",fill:e||mn.popBlue})}),nm=()=>a.jsxs("svg",{width:"45",height:"45",viewBox:"0 0 45 45",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("path",{d:"M29.2857 9.5335C31.4805 9.5335 33.2598 7.75908 33.2598 5.57022C33.2598 3.38136 31.4805 1.60693 29.2857 1.60693C27.0908 1.60693 25.3115 3.38136 25.3115 5.57022C25.3115 7.75908 27.0908 9.5335 29.2857 9.5335Z",fill:"#E9F6FB",stroke:"#1A1A1A",strokeWidth:"1.34304",strokeMiterlimit:"10"}),a.jsx("path",{d:"M31.1129 34.0346C31.1129 33.6064 30.7661 33.2593 30.3382 33.2593C29.9103 33.2593 29.5635 33.6064 29.5635 34.0346V42.3786C29.5635 42.8068 29.9103 43.1539 30.3382 43.1539C30.7661 43.1539 31.1129 42.8068 31.1129 42.3786V34.0346Z",fill:"#1A1A1A"}),a.jsx("path",{d:"M29.8281 42.2474V42.5131C29.8281 42.8664 30.1153 43.1528 30.4696 43.1528H35.1777C35.532 43.1528 35.8193 42.8664 35.8193 42.5131V42.2474C35.8193 41.8941 35.532 41.6076 35.1777 41.6076H30.4696C30.1153 41.6076 29.8281 41.8941 29.8281 42.2474Z",fill:"#1A1A1A"}),a.jsx("path",{d:"M19.0432 44.1969C26.0392 44.1969 31.7105 38.5411 31.7105 31.5643C31.7105 24.5875 26.0392 18.9316 19.0432 18.9316C12.0473 18.9316 6.37598 24.5875 6.37598 31.5643C6.37598 38.5411 12.0473 44.1969 19.0432 44.1969Z",fill:"#010101"}),a.jsx("path",{d:"M36.3958 22.9921L29.7469 22.4553L31.8835 14.827C32.1988 13.6938 31.6497 12.5173 30.6385 12.0077C30.5026 11.9318 30.3558 11.8667 30.1927 11.8233L21.1027 9.29139C20.7276 9.18838 20.347 9.19922 19.9936 9.29681C19.6892 9.34561 19.3956 9.46488 19.1401 9.67091L12.8934 14.6535C12.1051 15.2824 11.9801 16.4372 12.6053 17.218C13.2359 18.0041 14.3939 18.1288 15.1768 17.5053L20.0045 13.6505L21.8693 14.1709L17.857 21.7559C17.2318 22.9379 17.6885 24.4126 18.8737 25.0361L22.5488 26.9662C23.3154 27.3674 24.207 27.3186 24.9083 26.912L25.3867 27.0421C25.7673 27.5463 26.349 27.8933 27.0286 27.9475L33.1991 28.4463L32.4326 37.8801C32.3184 39.2573 33.3568 40.4772 34.7431 40.5856C36.124 40.6994 37.3472 39.6639 37.456 38.2814L38.44 26.1801C38.44 26.1313 38.44 26.0771 38.44 26.0283L38.4889 25.4319C38.5922 24.1794 37.6463 23.0734 36.3904 22.9704L36.3958 22.9921Z",fill:"#E9F6FB",stroke:"#1A1A1A",strokeWidth:"1.34304",strokeMiterlimit:"10"}),a.jsx("path",{d:"M19.0442 41.7672C24.695 41.7672 29.2758 37.1989 29.2758 31.5636C29.2758 25.9282 24.695 21.3599 19.0442 21.3599C13.3934 21.3599 8.8125 25.9282 8.8125 31.5636C8.8125 37.1989 13.3934 41.7672 19.0442 41.7672Z",fill:"#E9F6FB"}),a.jsx("path",{d:"M19.0425 42.3136C24.9965 42.3136 29.8233 37.5001 29.8233 31.5623C29.8233 25.6245 24.9965 20.811 19.0425 20.811C13.0884 20.811 8.26172 25.6245 8.26172 31.5623C8.26172 37.5001 13.0884 42.3136 19.0425 42.3136Z",stroke:"#00C0E4",strokeWidth:"1.03146",strokeMiterlimit:"10"}),a.jsx("path",{d:"M19.0426 39.4948C23.4353 39.4948 26.9963 35.9436 26.9963 31.5628C26.9963 27.1821 23.4353 23.6309 19.0426 23.6309C14.6499 23.6309 11.0889 27.1821 11.0889 31.5628C11.0889 35.9436 14.6499 39.4948 19.0426 39.4948Z",fill:"white",stroke:"#1A1A1A",strokeWidth:"1.07443",strokeMiterlimit:"10"})]}),rm=({color:e})=>a.jsx("svg",{className:"bf-checkmark--green",width:"24",height:"20",viewBox:"0 0 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 4.15417C23.9925 4.52794 23.8515 4.88618 23.6033 5.16208L12.2975 16.6522L10.1157 18.8696C9.84423 19.1219 9.49174 19.2651 9.12397 19.2727C8.7562 19.2651 8.40371 19.1219 8.13223 18.8696L5.95041 16.6522L0.396694 11.0079C0.148478 10.732 0.00748054 10.3738 0 10C0.00748054 9.62626 0.148478 9.26802 0.396694 8.99212L2.57851 6.77473C2.84999 6.52246 3.20248 6.37917 3.57025 6.37156C3.93802 6.37917 4.29051 6.52246 4.56198 6.77473L9.12397 11.4111L19.2397 1.13046C19.5111 0.878193 19.8636 0.734897 20.2314 0.727295C20.5992 0.734897 20.9517 0.878193 21.2231 1.13046L23.405 3.34785C23.8017 3.54943 24 3.75101 24 4.15417Z",fill:e||mn.greenCheck})}),lm=()=>a.jsx("svg",{className:"bf-info",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.33594 3.66732H7.66927V5.00065H6.33594V3.66732ZM6.33594 6.33398H7.66927V10.334H6.33594V6.33398ZM7.0026 0.333984C3.3226 0.333984 0.335938 3.32065 0.335938 7.00065C0.335938 10.6807 3.3226 13.6673 7.0026 13.6673C10.6826 13.6673 13.6693 10.6807 13.6693 7.00065C13.6693 3.32065 10.6826 0.333984 7.0026 0.333984ZM7.0026 12.334C4.0626 12.334 1.66927 9.94065 1.66927 7.00065C1.66927 4.06065 4.0626 1.66732 7.0026 1.66732C9.9426 1.66732 12.3359 4.06065 12.3359 7.00065C12.3359 9.94065 9.9426 12.334 7.0026 12.334Z",fill:"#1B1B1B"})}),om=()=>a.jsxs("svg",{className:"bf-modal-close",xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",children:[a.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),a.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})]}),im=()=>a.jsxs("svg",{className:"bf-open",xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",children:[a.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),a.jsx("path",{fill:"none",d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"})]}),sm=()=>a.jsxs("svg",{width:"45",height:"45",viewBox:"0 0 45 45",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("path",{d:"M40.2696 1.60693H6.37598V43.3926H40.2696V1.60693Z",fill:"#DFEFF4",stroke:"#191919",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M19.2757 9.08496H12.9048C12.4714 9.08496 12.1201 9.43563 12.1201 9.86819V14.6747C12.1201 15.1073 12.4714 15.4579 12.9048 15.4579H19.2757C19.7091 15.4579 20.0604 15.1073 20.0604 14.6747V9.86819C20.0604 9.43563 19.7091 9.08496 19.2757 9.08496Z",fill:"#05BBE2"}),a.jsx("path",{d:"M19.2757 19.314H12.9048C12.4714 19.314 12.1201 19.6646 12.1201 20.0972V24.9037C12.1201 25.3363 12.4714 25.6869 12.9048 25.6869H19.2757C19.7091 25.6869 20.0604 25.3363 20.0604 24.9037V20.0972C20.0604 19.6646 19.7091 19.314 19.2757 19.314Z",fill:"#05BBE2"}),a.jsx("path",{d:"M19.2757 29.5415H12.9048C12.4714 29.5415 12.1201 29.8922 12.1201 30.3247V35.1312C12.1201 35.5638 12.4714 35.9145 12.9048 35.9145H19.2757C19.7091 35.9145 20.0604 35.5638 20.0604 35.1312V30.3247C20.0604 29.8922 19.7091 29.5415 19.2757 29.5415Z",fill:"#05BBE2"}),a.jsx("path",{d:"M14.8369 11.9099L16.1581 13.2287L21.1878 9.08496",stroke:"#191919",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M23.5391 11.0723H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M23.5391 13.4648H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M23.5391 21.3071H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M23.5391 23.6904H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M23.5391 31.5381H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M23.5391 33.9214H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"})]}),am=({color:e})=>a.jsx("svg",{width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 14.1203C14.24 14.1203 13.56 14.4203 13.04 14.8903L5.91 10.7403C5.96 10.5103 6 10.2803 6 10.0403C6 9.80028 5.96 9.57028 5.91 9.34028L12.96 5.23028C13.5 5.73028 14.21 6.04028 15 6.04028C16.66 6.04028 18 4.70028 18 3.04028C18 1.38028 16.66 0.0402832 15 0.0402832C13.34 0.0402832 12 1.38028 12 3.04028C12 3.28028 12.04 3.51028 12.09 3.74028L5.04 7.85028C4.5 7.35028 3.79 7.04028 3 7.04028C1.34 7.04028 0 8.38028 0 10.0403C0 11.7003 1.34 13.0403 3 13.0403C3.79 13.0403 4.5 12.7303 5.04 12.2303L12.16 16.3903C12.11 16.6003 12.08 16.8203 12.08 17.0403C12.08 18.6503 13.39 19.9603 15 19.9603C16.61 19.9603 17.92 18.6503 17.92 17.0403C17.92 15.4303 16.61 14.1203 15 14.1203Z",fill:e||"#005EA2"})}),dt=({type:e,color:t,...n})=>{let r;switch(e){case"all_benefits":r=a.jsx(G0,{});break;case"carrot-solid":r=a.jsx(X0,{color:t});break;case"carrot":r=a.jsx(Y0,{color:t});break;case"close":r=a.jsx(J0,{});break;case"death":r=a.jsx(em,{});break;case"disability":r=a.jsx(nm,{});break;case"email":r=a.jsx(tm,{color:t});break;case"green-check":r=a.jsx(rm,{color:t});break;case"info":r=a.jsx(lm,{color:t});break;case"open":r=a.jsx(im,{});break;case"modal-close":r=a.jsx(om,{color:t});break;case"retirement":r=a.jsx(sm,{});break;case"share":r=a.jsx(am,{color:t});break;default:r=null}return a.jsx("i",{...n,"data-testid":`icon-${e}`,children:r})};dt.propTypes={type:y.string,color:y.string,props:y.any};const hf=({data:e,ui:t,setStep:n,step:r})=>{const{timeEstimate:l,title:o,summary:i}=e,{heading:s,timeIndicator:u,steps:c,notices:f,button:m}=t,{intro:p}=se.dataLayerStructure,g=Gr(),S=()=>{n(r+1),g.current.focus()};return Zr({pageView:p.bfData.pageView}),M.useEffect(()=>{se.dataLayerPush(window,{event:p.event,bfData:{pageView:p.bfData.pageView,viewTitle:o}})},[]),e&&a.jsxs("div",{className:"bf-intro",children:[a.jsx(Ys,{heading:o,description:i}),a.jsxs("div",{className:"bf-grid-container grid-container",children:[a.jsx(ee,{headingLevel:2,children:s}),a.jsx(If,{description:u,timeEstimate:l}),a.jsxs("div",{className:"bf-intro-process-group",children:[a.jsx("div",{className:"bf-intro-process-list",children:a.jsx(Nf,{steps:c.list,description:c.title})}),a.jsx("div",{className:"bf-line-sperator-wrapper--vertical",children:a.jsx("div",{className:"bf-line-sperator--vertical"})}),a.jsxs("div",{className:"bf-intro-process-notices",children:[a.jsx(ee,{className:"bf-intro-process-notices-heading",headingLevel:2,children:f.heading}),a.jsx(jf,{className:"bf-intro-process-notices-list",data:f.list,iconAlt:f.iconAlt})]})]}),a.jsx("div",{className:"bf-line-sperator-wrapper",children:a.jsx("div",{className:"bf-line-sperator"})}),a.jsx("div",{className:"bf-cta-wrapper",children:a.jsx(Te,{secondary:!0,onClick:()=>S(),children:m})})]})]})};hf.propTypes={data:y.object,ui:y.object,setStep:y.func,step:y.number};const mf=({className:e,data:t,initialEligibilityLength:n,ui:r})=>{const{benefitSummary:l,benefitSummaryPrefix:o,benefitSummaryConjunction:i}=r,s=["bf-key-eligibility-criteria-group"];return a.jsx("div",{className:ft({className:e,defaultClasses:s}),children:t&&a.jsxs(a.Fragment,{children:[" ",a.jsxs(ee,{className:"bf-key-eligibility-criteria-heading",headingLevel:5,children:[`${l}`,a.jsx("span",{className:"bf-key-eligibility-criteria-sub-heading",children:` - ${o} ${t.length} ${i} - ${n}`})]}),a.jsx("ul",{className:"bf-key-eligibility-criteria-list",children:t.map((u,c)=>{const{criteriaKey:f,label:m}=u;return a.jsxs("li",{className:"bf-usa-list usa-list usa-list--unstyled bf-usa-list--unstyled bf-key-eligibility-criteria-list-item","data-testid":`${f}`,children:[a.jsx("div",{"aria-hidden":"true",children:a.jsx(dt,{type:"green-check","aria-hidden":"true"})}),m]},`${f}-${c}`)})})]})})};mf.propTypes={className:y.string,data:y.array,initialEligibilityLength:y.number};const Zi=({children:e})=>a.jsx("legend",{className:"bf-legend usa-legend",children:e});Zi.propTypes={children:y.node};const Xs=({className:e,label:t,htmlFor:n})=>{const r=["bf-usa-label usa-label"];return a.jsx("label",{className:ft({className:e,defaultClasses:r}),htmlFor:n,children:t})};Xs.propTypes={className:y.string,label:y.string,htmlFor:y.string};const vf=({step:e,setStep:t,data:n,handleData:r,setStepData:l,setVerifyStep:o,setViewResults:i,ui:s,modalOpen:u,setModalOpen:c})=>{const[f,m]=M.useState(!1),[p,g]=M.useState(()=>n&&n[e-1]),[S,x]=M.useState([]),[b,h]=M.useState([]),[d,v]=M.useState(()=>q.SelectedValueAll(n).length>0),[w,E]=M.useState(0),{lifeEventSection:N}=se.dataLayerStructure;Jh(d);const j=Gr();M.useEffect(()=>{var A;(A=j.current)==null||A.focus()},[j]);const{stepIndicator:L,buttonGroup:B,reviewSelectionModal:R,requiredLabel:H,sectionHeadings:ae}=s,Oe=()=>{n[e-1]={...p},r([...n])},D=M.useRef(null),F=()=>(D.current.classList.remove("display-none"),D.current.focus(),E(w+1),p.completed=!1,window.scrollTo(0,0),!1),W=()=>(D.current.classList.add("display-none"),p.completed=!0,Oe(),x([]),!0),C=()=>Ie.handleCheckForRequiredValues(S,h).then(A=>A===!0?W():F()),k=A=>{C(),Ie.handleCheckForRequiredValues(S,h).then(ne=>{if(ne===!0){const{errors:oe}=se.dataLayerStructure;se.dataLayerPush(window,{event:oe.event,bfData:{errors:"",errorCount:{number:0,string:"0"},formSuccess:!0}}),t(e+A),l(A),j&&j.current.focus()}})},O=A=>{t(e+A),j.current.focus()},P=(A,ne)=>{window.history.replaceState({},"",window.location.pathname),Br.Data(ne,p,g,A.target.value),b.length>0&&Ie.handleCheckForRequiredValues(S,h),v(q.SelectedValueAll(n).length>0)},I=(A,ne)=>{window.history.replaceState({},"",window.location.pathname);async function oe(){qh(A)===!0&&(Br.DataDate(ne,p,g,A.target.value,A.target.id),b.length>0&&Ie.handleCheckForRequiredValues(S,h))}oe().then(()=>{Ie.getNonRequiredFieldsets(ne,S,x,h,b,q.SelectedValueAll(n)),v(q.SelectedValueAll(n).length>0)})};return M.useEffect(()=>{n&&e===n.length?m(!0):m(!1)},[p,n,f,e]),M.useEffect(()=>{window.scrollTo(0,0),Ie.getRequiredFieldsets(document,x)},[]),M.useEffect(()=>{u===!1&&se.dataLayerPush(window,{event:N.event,bfData:{pageView:`${N.bfData.pageView}-${e}`,viewTitle:p.section.heading}})},[]),n.length>0&&u===!1&&Zr({pageView:`${N==null?void 0:N.bfData.pageView}-${e}`}),M.useEffect(()=>{Gd({hide:!0})},[]),n&&a.jsxs(a.Fragment,{children:[a.jsx(ee,{className:"bf-section-heading",headingLevel:1,children:e===n.length?`${ae.final}`:e-1===0?`${ae.start}`:`${ae.continue}`}),a.jsx("div",{className:"bf-section-wrapper",children:a.jsxs("div",{className:"bf-section-info",children:[a.jsx($f,{current:e-1,setCurrent:t,data:n,backLinkLabel:L.StepBackButton},`step-indicator-${ae}`),p&&a.jsxs("div",{id:"bf-section",children:[a.jsx(Gs,{alertFieldRef:D,heading:s.alertBanner.heading,description:s.alertBanner.description,type:"error",hasError:b.length>0,errorCount:b.length,errorList:b,submissionCount:w}),a.jsxs("div",{className:"bf-form-heading-group",children:[a.jsx(ee,{className:"bf-form-heading bf-usa-form-heading",headingLevel:2,children:p.section.heading}),a.jsx("div",{className:"bf-section-sub-heading",dangerouslySetInnerHTML:jt(p.section.description)})]}),p.section.fieldsets.map((A,ne)=>{const oe=({item:$,children:qe,index:pt,hidden:Xt})=>{var wn,Jr;return $.fieldset.inputs[0].inputCriteria.type==="Select"?a.jsxs(M.Fragment,{children:[a.jsx(Tl,{legend:$.fieldset.legend,errorMessage:$.fieldset.errorMessage,hint:$.fieldset.hint,required:$.fieldset.required,requiredLabel:H,hidden:Xt&&Xt,id:$.fieldset.criteriaKey,invalid:Ie.handleInvalid({hasError:b,criteriaKey:(wn=$.fieldset)==null?void 0:wn.criteriaKey}),ui:s.errorText,children:$.fieldset.inputs.map((bt,ht)=>{var la;const Qe=`${$.fieldset.criteriaKey}_${ht}`,Lt=bt.inputCriteria.values,mt=Lt.find(Lo=>Lo.selected!==void 0),{select:bo,errorText:fp}=s;return a.jsx("div",{children:a.jsx(Ff,{ui:{select:bo,errorText:fp},htmlFor:Qe,options:Lt,selected:mt==null?void 0:mt.value,onChange:Lo=>P(Lo,$.fieldset.criteriaKey),invalid:Ie.handleInvalid({hasError:b,criteriaKey:(la=$.fieldset)==null?void 0:la.criteriaKey,fieldSetId:Qe}),legend:$.fieldset.legend,errorMessage:$.fieldset.errorMessage},Qe)},Qe)})},`select-${$.fieldset.criteriaKey}-${pt}`),qe||null]},`select-${$.fieldset.criteriaKey}+${pt}`):$.fieldset.inputs[0].inputCriteria.type==="Radio"?a.jsxs(M.Fragment,{children:[$.fieldset.inputs.map((bt,ht)=>{var Lt,mt;const Qe=`${$.fieldset.criteriaKey}_${ht}`;return a.jsx(Tl,{id:$.fieldset.criteriaKey,legend:$.fieldset.legend,errorMessage:$.fieldset.errorMessage,hint:$.fieldset.hint,required:$.fieldset.required,requiredLabel:H,hidden:Xt&&Xt,ui:s.errorText,invalid:Ie.handleInvalid({hasError:b,criteriaKey:(Lt=$.fieldset)==null?void 0:Lt.criteriaKey}),children:a.jsx(Lf,{invalid:Ie.handleInvalid({hasError:b,criteriaKey:(mt=$.fieldset)==null?void 0:mt.criteriaKey}),fieldSetId:Qe,handleChanged:P,values:bt.inputCriteria.values,criteriaKey:$.fieldset.criteriaKey,errorMessage:$.fieldset.errorMessage,legend:$.fieldset.legend,ui:s.errorText},Qe)},`radio-${$.fieldset.criteriaKey}-${ht}`)}),qe||null]},`radio-${$.fieldset.criteriaKey}+${pt}`):$.fieldset.inputs[0].inputCriteria.type==="Date"?a.jsxs(M.Fragment,{children:[a.jsx(Tl,{legend:$.fieldset.legend,errorMessage:$.fieldset.errorMessage,hint:$.fieldset.hint,required:$.fieldset.required,requiredLabel:H,hidden:Xt&&Xt,id:$.fieldset.criteriaKey,invalid:Ie.handleInvalid({hasError:b,criteriaKey:(Jr=$.fieldset)==null?void 0:Jr.criteriaKey}),ui:s.errorText,children:$.fieldset.inputs.map((bt,ht)=>{var Lt,mt;const Qe=`${$.fieldset.criteriaKey}_${ht}`;return a.jsx("div",{children:a.jsx(df,{value:(Lt=bt.inputCriteria.values[0])==null?void 0:Lt.value,onChange:bo=>I(bo,$.fieldset.criteriaKey),ui:s,errorMessage:$.fieldset.errorMessage,parentLegend:$.fieldset.legend,id:Qe,invalid:Ie.handleInvalid({hasError:b,criteriaKey:(mt=$.fieldset)==null?void 0:mt.criteriaKey,fieldSetId:Qe,useFilter:!0})})},Qe)})},`date-${$.fieldset.criteriaKey}-${pt}`),qe||null]},`date-${$.fieldset.criteriaKey}+${pt}`):null},Yt=({item:$,i:qe})=>oe({item:$,index:qe}),Ke=$=>{const qe=q.SelectedValue($);return(qe==null?void 0:qe.value)!==$.fieldset.inputs[0].inputCriteria.childDependencyOption},Nt=({item:$,i:qe})=>oe({item:$,index:qe,children:$.fieldset.children.map((pt,Xt)=>pt.fieldsets.length&&pt.fieldsets.map((wn,Jr)=>{const bt=wn&&q.SelectedValue(wn),ht=Ke($);return ht===!0&&bt!==void 0&&delete bt.selected,oe({item:wn,index:Jr,hidden:ht})}))});return A.fieldset.children.length>0?Nt({item:A,i:ne}):Yt({item:A,i:ne})})]}),a.jsxs("div",{className:"bf-section-nav-btn-group",children:[a.jsx(Te,{outline:!0,onClick:()=>O(-1),children:B[0].value}),f===!1?a.jsx(Te,{secondary:!0,onClick:()=>k(1),children:B[1].value}):a.jsx(_f,{id:"nav-modal",dataLayerValue:{viewTitle:p.section.heading},modalHeading:R.heading,navItemOneLabel:R.buttonGroup[0].value,navItemOneFunction:o,navItemTwoLabel:R.buttonGroup[1].value,navItemTwoFunction:i,triggerLabel:B[1].value,handleCheckRequriedFields:C,modalOpen:u,setModalOpen:c,completed:p.completed,alertElement:D})]})]})})]})};vf.propTypes={props:y.any,step:y.number,setStep:y.func,data:y.array,setStepData:y.func,setVerifyStep:y.func,setViewResults:y.func,ui:y.object};var Gi={exports:{}},vn={},Yi={exports:{}},lt={},Xi={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;/*! +*/var zu=Object.getOwnPropertySymbols,Gm=Object.prototype.hasOwnProperty,Ym=Object.prototype.propertyIsEnumerable;function Xm(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Jm(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(i){return t[i]});if(r.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(i){l[i]=i}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var If=Jm()?Object.assign:function(e,t){for(var n,r=Xm(e),l,i=1;i-1?e.split(Vu).map(function(o){return Af({type:o},i)}):(i.type=e,[i])};var Hu=function(e,t){var n=e[t];return delete e[t],n},av=function(t,n){const r=Object.keys(t).reduce(function(l,i){var o=sv(i,t[i]);return l.concat(o)},[]);return Af({add:function(i){r.forEach(function(o){i.addEventListener(o.type,o.delegate,o.options)})},remove:function(i){r.forEach(function(o){i.removeEventListener(o.type,o.delegate,o.options)})}},n)};const uv=If,cv=av,Wu=(...e)=>function(n=document.body){e.forEach(r=>{typeof this[r]=="function"&&this[r].call(this,n)})};var dv=(e,t)=>cv(e,uv({on:Wu("init","add"),off:Wu("teardown","remove")},t));const Ku="aria-expanded",fv="aria-controls",qu="hidden";var pv=(e,t)=>{let n=t;typeof n!="boolean"&&(n=e.getAttribute(Ku)==="false"),e.setAttribute(Ku,n);const r=e.getAttribute(fv),l=document.getElementById(r);if(!l)throw new Error(`No toggle target found with id: "${r}"`);return n?l.removeAttribute(qu):l.setAttribute(qu,""),n};function hv(e,t=window,n=document.documentElement){const r=e.getBoundingClientRect();return r.top>=0&&r.left>=0&&r.bottom<=(t.innerHeight||n.clientHeight)&&r.right<=(t.innerWidth||n.clientWidth)}var mv=hv,vv={CLICK:"click"},gv={prefix:"usa"};const Bf=Zm,yv=dv,Qu=pv,wv=mv,{CLICK:xv}=vv,{prefix:pi}=gv,hi=`.${pi}-accordion, .${pi}-accordion--bordered`,Cv=`.${pi}-banner__button`,Nr=`.${pi}-accordion__button[aria-controls]:not(${Cv})`,Zu="aria-expanded",Sv="data-allow-multiple",zf=e=>Bf(Nr,e).filter(n=>n.closest(hi)===e),Lr=(e,t)=>{const n=e.closest(hi);let r=t;if(!n)throw new Error(`${Nr} is missing outer ${hi}`);r=Qu(e,t);const l=n.hasAttribute(Sv);r&&!l&&zf(n).forEach(i=>{i!==e&&Qu(i,!1)})},kv=e=>Lr(e,!0),Ev=e=>Lr(e,!1),_v=yv({[xv]:{[Nr](){Lr(this),this.getAttribute(Zu)==="true"&&(wv(this)||this.scrollIntoView())}}},{init(e){Bf(Nr,e).forEach(t=>{const n=t.getAttribute(Zu)==="true";Lr(t,n)})},ACCORDION:hi,BUTTON:Nr,show:kv,hide:Ev,toggle:Lr,getButtons:zf});var bv=_v;const Gu=yi(bv),Uf=({id:e,heading:t,subHeading:n,children:r,isExpanded:l,hidden:i,...o})=>{E.useEffect(()=>(Gu.on(),()=>{Gu.off()}));const[s,a]=E.useState(!1),{benefitAccordion:c}=ie.dataLayerStructure,p=y=>{a(y),y===!0&&ie.dataLayerPush(window,{event:c.event,bfData:{benefitTitle:t}},!1)};E.useEffect(()=>{a(l)},[l]);const d=()=>s?u.jsx(ft,{type:"close","aria-hidden":"true"}):u.jsx(ft,{type:"open","aria-hidden":"true"}),m=y=>y.replace(/ +/g,"-").toLowerCase();return u.jsxs("div",{className:"bf-usa-accordion usa-accordion",...o,hidden:i,children:[u.jsx("h4",{className:"bf-usa-accordion__heading usa-accordion__heading","data-testid":"accordion-heading",children:u.jsxs("button",{type:"button",className:"bf-usa-accordion__button usa-accordion__button","aria-expanded":s||!1,"aria-controls":e&&m(e),onClick:()=>p(!s),children:[u.jsx("span",{className:"bf-accordion-heading",children:t}),u.jsx("br",{}),u.jsx("span",{className:"bf-accordion-sub-heading",children:n}),d()]})}),u.jsx("div",{id:e&&m(e),className:"bf-usa-accordion__content usa-accordion__content usa-prose",hidden:s||!0,children:u.jsx("div",{children:r})})]})};Uf.propTypes={id:C.string,heading:C.string,subHeading:C.string,description:C.string,children:C.node};const Vf=({data:e,entryKey:t,expandAll:n,isExpandAll:r,setExpandAll:l,notEligibleView:i,ui:o})=>{const{benefitAccordion:s,benefitAccordionGroup:a}=o,{eligibleStatusLabels:c,agencyPrefix:p,visitLabel:d,unmetLabel:m,sourceIsEnglish:y}=s,{closedState:x,openState:g}=a,{benefitLink:S,openAllBenefitAccordions:f}=ie.dataLayerStructure,h=r?`${g} -`:`${x} +`,v=T=>{ie.dataLayerPush(window,{event:S.event,bfData:{benefitTitle:T}})},w=T=>{l(!T),ie.dataLayerPush(window,{event:f.event,bfData:{accordionsOpen:!T}},!1)},j=()=>n&&u.jsx(Ke,{className:"bf-expand-all","aria-label":h,outline:!0,onClick:()=>w(r),"data-testid":"bf-expand-all",children:h}),N=({items:T})=>u.jsxs("div",{className:"bf-unmet-criteria-group",children:[u.jsx("div",{className:"bf-unmet-criteria-title",children:m}),u.jsx("ul",{className:"bf-unmet-criteria-list",children:T.map((B,D)=>{const{label:q}=B;return u.jsx("li",{className:"bf-unmet-criteria-item",children:q},`not-eligible-list-${D}`)})})]}),P=({items:T})=>u.jsxs("div",{className:"bf-unmet-criteria-group",children:[u.jsx("div",{className:"bf-unmet-criteria-title",children:c[1]}),u.jsx("ul",{className:"bf-unmet-criteria-list",children:T.map((B,D)=>{const{label:q}=B;return u.jsx("li",{className:"bf-unmet-criteria-item",children:q},`more-info-${D}`)})})]});return u.jsxs("div",{className:"bf-usa-accordion-group",children:[u.jsx(j,{}),e&&e.map((T,B)=>{const{agency:D,eligibility:q,SourceLink:de,summary:Te,title:I,SourceIsEnglish:F}=T[t],W=q.filter(M=>M.isEligible===!0),k=q.filter(M=>M.isEligible===!1),_=q.filter(M=>M.isEligible===void 0),R=W.length===q.length?c[0]:k.length===0&&_.length>0?c[1]:c[2],L=i===!1&&R!==c[0]?!0:i===!0&&R===c[0];return u.jsxs(Uf,{id:`${I}`,heading:I,subHeading:R,isExpanded:r,"data-testid":"bf-usa-accordion","data-test-accordion-title":I,hidden:L,children:[u.jsx(ee,{className:"bf-usa-detail-title",headingLevel:4,children:`${p} ${D.title}`}),u.jsx("div",{className:"bf-usa-detail-summary",dangerouslySetInnerHTML:jt(Te)}),u.jsx(Qf,{className:"bf-usa-criteria-list",data:W,initialEligibilityLength:q.length,ui:s}),k.length>0&&u.jsx(N,{items:k}),_.length>0&&u.jsx(P,{items:_}),u.jsx("div",{className:"bf-usa-accordion-group-cta-wrapper",children:u.jsxs(wa,{className:"bf-usa-link",href:de,target:"_blank",rel:"noopener noreferrer",onClick:()=>v(I),"data-testid":"bf-benefit-link",noCarrot:!0,children:[d," ",D.title," ",y&&F===!0?y:""]})})]},`${B}-${I}`)})]})};Vf.propTypes={data:C.array,entryKey:C.string,expandAll:C.bool,isExpandAll:C.bool,setExpandAll:C.func,notEligibleView:C.bool,ui:C.object};const yn={officerNavy:"#162e51",marine:"#1a4480",popBlue:"#005ea2",sky:"#d9e8f6",darkSky:"#b6dbfd",offBlack:"#1b1b1b",white:"#fff",bannerBlue:"#112f4e",grey:"#757575",mediumGrey:"#979797",darkMediumGrey:"#3d4551",baseGrey:"#dcdee0",baseLightGrey:"#f0f0f0",lightTeal:"#d2ebf1",pureBlack:"#000",electricBlue:"#0050d8",teal:"#00bde3",mediumTeal:"#ccecf2",darkTeal:"#0081a1",alertRed:"#b50909",greenCheck:"#009831"};function Ke({children:e,className:t,onClick:n,secondary:r,outline:l,disabled:i,unstyled:o,type:s,icon:a,...c}){const[p,d]=E.useState(null),m=r===!0?"secondary":l===!0?"outline":o===!0?"unstyled":null,[y,x]=E.useState(!1),[g,S]=E.useState();return E.useEffect(()=>{S(y&&r||y&&o?yn.marine:yn.popBlue)},[y]),E.useEffect(()=>{switch(m){case"secondary":d(["bf-usa-button","usa-button","bf-usa-button--secondary","usa-button--secondary"]);break;case"outline":d(["bf-usa-button","usa-button","bf-usa-button--outline","usa-button--outline"]);break;case"unstyled":d(["bf-usa-button","usa-button","bf-usa-button--unstyled","usa-button--unstyled"]);break;default:d(["bf-usa-button","usa-button"])}},[m,r,o]),u.jsxs("button",{onClick:i?null:n,type:s||"button",disabled:i,"aria-disabled":i,className:pt({className:t,defaultClasses:p}),onMouseOver:()=>x(!0),onMouseLeave:()=>x(!1),"data-testid":c["data-testid"],id:c.id,"data-test":"button",children:[a&&u.jsx(ft,{type:a,color:g,"aria-hidden":"true"}),e]})}Ke.propTypes={children:C.node,className:C.string,onClick:C.func,secondary:C.bool,disabled:C.bool,unstyled:C.bool,type:C.oneOf(["button","reset","download"]),icon:C.string};C.object,C.object;const Hf=({className:e,title:t,body:n,cta:r,href:l,noCarrot:i,carrotType:o,icon:s,...a})=>{const c=s!==void 0?["bf-card-icon"]:"",p=["add-list-reset"],d=i===!0?null:u.jsx(ft,{type:o,color:"#162E51","aria-hidden":"true"}),m=s===void 0?null:u.jsx(ft,{type:s,className:"bf-relative-icon","aria-hidden":"true"});return u.jsx("li",{className:pt({className:e,defaultClasses:c,utilityClasses:p}),...a,children:u.jsxs("a",{className:"bf-usa-card__container usa-card__container",href:l,children:[m,u.jsx("div",{className:"bf-usa-card__header usa-card__header",children:u.jsx(ee,{className:"bf-usa-card__heading usa-card__heading",headingLevel:3,children:t})}),u.jsx("div",{className:"bf-usa-card__body usa-card__body",dangerouslySetInnerHTML:jt(n)}),u.jsx("div",{className:"bf-usa-card__cta usa-card__cta",children:r}),d]})},`${t}`)};Hf.propTypes={className:C.string,title:C.string,body:C.string,href:C.string,noCarrot:C.bool,carrotType:C.string,icon:C.string};const ma=({heading:e,description:t})=>u.jsx("div",{className:"bf-chevron",children:u.jsxs("div",{className:"bf-grid-container grid-container",children:[u.jsx(ee,{className:"bf-chevron-heading",headingLevel:1,children:e}),u.jsx("div",{className:"bf-chevron-description",dangerouslySetInnerHTML:jt(t)})]})});ma.propTypes={heading:C.string,description:C.string};const Wf=({onChange:e,value:t,ui:n,parentLegend:r,id:l,invalid:i,errorMessage:o})=>{const{date:s,select:a,errorText:c}=n,{labelDay:p,labelMonth:d,labelYear:m,monthOptions:y}=s,{dateDefaultValue:x}=a,{suffix:g,prefix:S}=c,f=(v,w)=>v&&v.map(j=>j.id===w).includes(!0),h={month:o?`${o} : ${d.toLowerCase()}`:`${S} ${r==null?void 0:r.toLowerCase()} ${d.toLowerCase()} ${g}`,day:o?`${o} : ${p.toLowerCase()}`:`${S} ${r==null?void 0:r.toLowerCase()} ${p.toLowerCase()} ${g}`,year:o?`${o} : ${m.toLowerCase()}`:`${S} ${r==null?void 0:r.toLowerCase()} ${m.toLowerCase()} ${g}`};return u.jsxs(u.Fragment,{children:[u.jsxs("ul",{className:"add-list-reset",children:[f(i,`${l}_month`)&&u.jsx("li",{id:`month-error-description-${l}`,"data-testid":"month-error-description",className:"bf-error-detail","aria-live":"assertive",children:h.month}),f(i,`${l}_day`)&&u.jsx("li",{id:`day-error-description-${l}`,"data-testid":"day-error-description",className:"bf-error-detail","aria-live":"assertive",children:h.day}),f(i,`${l}_year`)&&u.jsx("li",{id:`year-error-description-${l}`,"data-testid":"year-error-description",className:"bf-error-detail","aria-live":"assertive",children:h.year})]}),u.jsxs("div",{id:`bf-usa-memorable-date-${l}`,className:"bf-usa-memorable-date usa-memorable-date","data-testid":"bf-usa-memorable-date",children:[u.jsxs("div",{className:"bf-usa-form-group usa-form-group bf-usa-form-group--month usa-form-group--month bf-usa-form-group--select usa-form-group--select",children:[u.jsx("label",{className:"bf-usa-label usa-label",htmlFor:`${l}_month`,children:d}),u.jsx("div",{id:`${l}-month-description`,className:"usa-sr-only",children:"Select a month from the list"}),u.jsxs("select",{className:`bf-usa-select usa-select ${f(i,`${l}_month`)?"usa-input--error":""}`,id:`${l}_month`,"data-testid":`${l}_month`,name:`${l}_month`,"aria-describedby":`${l}-month-description`,value:t&&t.month||"",onChange:e,"aria-invalid":f(i,`${l}_month`),"data-errormessage":h.month,"aria-errormessage":`month-error-description-${l}`,"data-datetype":"month",children:[u.jsx("option",{value:"",children:x},"default"),y.map((v,w)=>u.jsx("option",{value:w,children:v.label},`${v.label}-${w}`))]})]}),u.jsxs("div",{className:"bf-usa-form-group usa-form-group bf-usa-form-group--day usa-form-group--day",children:[u.jsx("label",{className:"bf-usa-label usa-label",htmlFor:`${l}_day`,children:p}),u.jsx("div",{id:`${l}-day-description`,className:"usa-sr-only",children:"Enter two numerals for day"}),u.jsx("input",{className:`bf-usa-input usa-input ${f(i,`${l}_day`)?"usa-input--error":""}`,"aria-describedby":`${l}-day-description`,id:`${l}_day`,"data-testid":`${l}_day`,name:`${l}_day`,inputMode:"numeric",value:t&&t.day||"",onChange:e,"aria-invalid":f(i,`${l}_day`),"data-errormessage":h.day,"aria-errormessage":`day-error-description-${l}`,"data-datetype":"day"})]}),u.jsxs("div",{className:"bf-usa-form-group usa-form-group bf-usa-form-group--year usa-form-group--year",children:[u.jsx("label",{className:"bf-usa-label usa-label",htmlFor:`${l}_year`,children:m}),u.jsx("div",{id:`${l}-year-description`,className:"usa-sr-only",children:"Enter four numerals for year"}),u.jsx("input",{className:`bf-usa-input usa-input ${f(i,`${l}_year`)?"usa-input--error":""}`,"aria-describedby":`${l}-year-description`,id:`${l}_year`,"data-testid":`${l}_year`,name:`${l}_year`,inputMode:"numeric",value:t&&t.year||"",onChange:e,"aria-invalid":f(i,`${l}_year`),"data-errormessage":h.year,"aria-errormessage":`year-error-description-${l}`,"data-datetype":"year"})]})]})]})};Wf.propTypes={onChange:C.func,value:C.object,ui:C.object,id:C.string,invalid:C.oneOfType([C.bool,C.array])};const jv=({ui:e,data:t})=>{const n=E.useContext(Nt),[r,l]=E.useState(()=>di(`${window.location.origin}${n.basePath}${n.indexPath}`,t)),i=`${encodeURIComponent(r)}`,o=s=>{s.preventDefault(),l(di(`${window.location.origin}${n.basePath}${n.indexPath}`,t)),window.location=`mailto:?subject=${e==null?void 0:e.emailSubject}&body=${i}`};return u.jsx("a",{href:"",className:"bf-email-trigger bf-usa-link usa-link",onClick:s=>o(s),children:(e==null?void 0:e.emailTrigger)||"Email"})},Al=({children:e,legend:t,required:n,alertRef:r,requiredLabel:l,hidden:i,errorMessage:o,hint:s,className:a,id:c,invalid:p,ui:d})=>{const m=i!==void 0&&i?["display-none"]:"",y=[`bf-usa-fieldset usa-fieldset ${n===!0?"required-field":""} ${p===!0?"usa-input--error":""}`],x=m,{prefix:g,suffix:S}=d,h=n===!1?u.jsx(ds,{children:t}):u.jsx(u.Fragment,{children:u.jsxs(ds,{children:[t,u.jsx(qf,{requiredLabel:l})]})}),v=o?`${o}`:`${g} ${t&&t.toLowerCase().replace("?","")} ${S}`;return u.jsx("div",{className:"bf-fieldset-wrapper",children:u.jsxs("fieldset",{className:pt({className:a,defaultClasses:y,utilityClasses:x}),ref:r,required:n===!0,id:c,"data-errormessage":v,hidden:i,"aria-hidden":i,"data-testid":"fieldset",children:[t&&h,p===!0&&u.jsx("div",{id:`error-description-${c}`,"data-testid":"error-description",className:"bf-error-detail","aria-live":"assertive",children:v}),s&&u.jsx("div",{className:"bf-hint",children:s}),e]})})};Al.propTypes={children:C.node,legend:C.string,alertRef:C.any,requiredLabel:C.object,hidden:C.bool,hint:C.string,className:C.string,invalid:C.bool,ui:C.object};function Kf({children:e}){return u.jsx("form",{className:"bf-usa-form",children:u.jsx("div",{className:"bf-grid-contianer grid-container",children:e})})}Kf.propTypes={children:C.node};const ee=({children:e,className:t,headingLevel:n,...r})=>{const l=[""],i=`h${n}`;return u.jsx(i,{className:pt({className:t,defaultClasses:l}),id:n===1?"skip-to-h1":null,...r,"aria-level":n,role:"heading",children:e})};ee.propTypes={children:C.oneOfType([C.string,C.array]),className:C.string,headingLevel:C.number};const qf=({requiredLabel:e})=>u.jsx("span",{title:"required",className:"bf-usa-hint usa-hint usa-hint--required bf-usa-hint--required bf-required required",children:`(${(e==null?void 0:e.value)||"Required"})`});qf.propTypes={requiredLabel:C.object};const Nv=()=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 44.31 44.31",children:[u.jsxs("g",{id:"Layer_1","data-name":"Layer 1",children:[u.jsxs("g",{children:[u.jsx("path",{className:"cls-1",fill:"#e8f6fb",strokeWidth:"0px",d:"M22.16,40.85c-10.33,0-18.7-8.37-18.7-18.7S11.83,3.46,22.16,3.46c7.55,0,14.06,4.48,17.01,10.93.08.18.16.37.24.55.93,2.22,1.44,4.66,1.44,7.22,0,10.33-8.37,18.7-18.7,18.7Z"}),u.jsx("path",{className:"cls-4",fill:"#e7f6fb",strokeWidth:"0px",d:"M22.16,39.34c-9.49,0-17.19-7.69-17.19-17.19S12.66,4.97,22.16,4.97c7,0,13.03,4.19,15.71,10.2.95,2.14,1.48,4.5,1.48,6.99,0,9.49-7.69,17.19-17.19,17.19Z"})]}),u.jsxs("g",{children:[u.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"22.01",cy:"3.63",r:"3.55"}),u.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"22.01",cy:"3.63",r:"2.49"})]}),u.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M40.55,12.43l-1.46.59c-2.11-3.91-5.56-6.99-9.75-8.6v1.63c3.55,1.51,6.49,4.18,8.34,7.54l-1.55.63c-.17.07-.19.29-.05.4l3.66,2.66c.14.1.33.02.36-.15l.77-4.46c.03-.18-.15-.32-.31-.25Z"}),u.jsxs("g",{children:[u.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"40.43",cy:"22.08",r:"3.55"}),u.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"40.43",cy:"22.08",r:"2.49"})]}),u.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M31.63,40.86l-.59-1.46c3.91-2.11,6.99-5.56,8.6-9.75h-1.63c-1.51,3.55-4.18,6.49-7.54,8.34l-.63-1.55c-.07-.17-.29-.19-.4-.05l-2.66,3.66c-.1.14-.02.33.15.36l4.46.77c.18.03.32-.15.25-.31Z"}),u.jsxs("g",{children:[u.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"22.01",cy:"40.53",r:"3.55"}),u.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"22.01",cy:"40.53",r:"2.49"})]}),u.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M3.48,31.73l1.46-.59c2.11,3.91,5.56,6.99,9.75,8.6v-1.63c-3.55-1.51-6.49-4.18-8.34-7.54l1.55-.63c.17-.07.19-.29.05-.4l-3.66-2.66c-.14-.1-.33-.02-.36.15l-.77,4.46c-.03.18.15.32.31.25Z"}),u.jsxs("g",{children:[u.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"3.6",cy:"22.08",r:"3.55"}),u.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"3.6",cy:"22.08",r:"2.49"})]}),u.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M12.4,3.31l.59,1.46c-3.91,2.11-6.99,5.56-8.6,9.75h1.63c1.51-3.55,4.18-6.49,7.54-8.34l.63,1.55c.07.17.29.19.4.05l2.66-3.66c.1-.14.02-.33-.15-.36l-4.46-.77c-.18-.03-.32.15-.25.31Z"}),u.jsxs("g",{children:[u.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M24.12,23.21l-.04-4.46c.16,0,.32-.02.47-.03,1.7-.13,3.11-1.33,3.52-2.97l.37-1.48c.13-.53-.19-1.06-.71-1.19-.52-.13-1.06.19-1.19.71l-.37,1.48c-.21.83-.92,1.43-1.78,1.49-.8.06-1.7.1-2.67.1-.25,0-.51,0-.77.02-2.01.12-3.72,1.49-4.24,3.42l-.64,2.32c-.14.52.17,1.06.69,1.2.09.02.17.04.26.04.43,0,.83-.29.95-.72l.64-2.32c.13-.49.41-.91.76-1.25l-.03,3.64-.98,7.25c-.08.6.34,1.15.93,1.22.05,0,.1,0,.15,0,.54,0,1.01-.4,1.08-.94l.95-7.05h.5l.95,7.05c.07.55.54.94,1.08.94.05,0,.1,0,.15,0,.6-.08,1.02-.63.93-1.22l-.97-7.25Z"}),u.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M21.74,16.72c1.2,0,2.18-.98,2.18-2.18s-.98-2.18-2.18-2.18-2.18.98-2.18,2.18c0,1.2.98,2.18,2.18,2.18Z"})]})]}),u.jsxs("g",{id:"Layer_1_copy_3","data-name":"Layer 1 copy 3",children:[u.jsxs("g",{children:[u.jsx("path",{className:"cls-5",fill:"#fff",strokeWidth:"0px",d:"M22.16,40.85c-10.33,0-18.7-8.37-18.7-18.7S11.83,3.46,22.16,3.46c7.55,0,14.06,4.48,17.01,10.93.08.18.16.37.24.55.93,2.22,1.44,4.66,1.44,7.22,0,10.33-8.37,18.7-18.7,18.7Z"}),u.jsx("path",{className:"cls-4",fill:"#e7f6fb",strokeWidth:"0px",d:"M22.16,36.47c-7.91,0-14.32-6.41-14.32-14.32s6.41-14.32,14.32-14.32c5.83,0,10.85,3.49,13.08,8.49.79,1.78,1.23,3.75,1.23,5.82,0,7.91-6.41,14.32-14.32,14.32Z"})]}),u.jsxs("g",{children:[u.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"22.01",cy:"3.63",r:"3.55"}),u.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"22.01",cy:"3.63",r:"2.49"})]}),u.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M40.55,12.43l-1.46.59c-2.11-3.91-5.56-6.99-9.75-8.6v1.63c3.55,1.51,6.49,4.18,8.34,7.54l-1.55.63c-.17.07-.19.29-.05.4l3.66,2.66c.14.1.33.02.36-.15l.77-4.46c.03-.18-.15-.32-.31-.25Z"}),u.jsxs("g",{children:[u.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"40.43",cy:"22.08",r:"3.55"}),u.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"40.43",cy:"22.08",r:"2.49"})]}),u.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M31.63,40.86l-.59-1.46c3.91-2.11,6.99-5.56,8.6-9.75h-1.63c-1.51,3.55-4.18,6.49-7.54,8.34l-.63-1.55c-.07-.17-.29-.19-.4-.05l-2.66,3.66c-.1.14-.02.33.15.36l4.46.77c.18.03.32-.15.25-.31Z"}),u.jsxs("g",{children:[u.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"22.01",cy:"40.53",r:"3.55"}),u.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"22.01",cy:"40.53",r:"2.49"})]}),u.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M3.48,31.73l1.46-.59c2.11,3.91,5.56,6.99,9.75,8.6v-1.63c-3.55-1.51-6.49-4.18-8.34-7.54l1.55-.63c.17-.07.19-.29.05-.4l-3.66-2.66c-.14-.1-.33-.02-.36.15l-.77,4.46c-.03.18.15.32.31.25Z"}),u.jsxs("g",{children:[u.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"3.6",cy:"22.08",r:"3.55"}),u.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"3.6",cy:"22.08",r:"2.49"})]}),u.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M12.4,3.31l.59,1.46c-3.91,2.11-6.99,5.56-8.6,9.75h1.63c1.51-3.55,4.18-6.49,7.54-8.34l.63,1.55c.07.17.29.19.4.05l2.66-3.66c.1-.14.02-.33-.15-.36l-4.46-.77c-.18-.03-.32.15-.25.31Z"})]}),u.jsx("g",{id:"dude",children:u.jsxs("g",{children:[u.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M24.12,23.21l-.04-4.46c.16,0,.32-.02.47-.03,1.7-.13,3.11-1.33,3.52-2.97l.37-1.48c.13-.53-.19-1.06-.71-1.19-.52-.13-1.06.19-1.19.71l-.37,1.48c-.21.83-.92,1.43-1.78,1.49-.8.06-1.7.1-2.67.1-.25,0-.51,0-.77.02-2.01.12-3.72,1.49-4.24,3.42l-.64,2.32c-.14.52.17,1.06.69,1.2.09.02.17.04.26.04.43,0,.83-.29.95-.72l.64-2.32c.13-.49.41-.91.76-1.25l-.03,3.64-.98,7.25c-.08.6.34,1.15.93,1.22.05,0,.1,0,.15,0,.54,0,1.01-.4,1.08-.94l.95-7.05h.5l.95,7.05c.07.55.54.94,1.08.94.05,0,.1,0,.15,0,.6-.08,1.02-.63.93-1.22l-.97-7.25Z"}),u.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M21.74,16.72c1.2,0,2.18-.98,2.18-2.18s-.98-2.18-2.18-2.18-2.18.98-2.18,2.18c0,1.2.98,2.18,2.18,2.18Z"})]})})]}),Lv=({color:e})=>u.jsx("svg",{className:"bf-carrot",width:"12",height:"19",viewBox:"0 0 12 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.78013 1.73698C3.33373 1.29058 2.60998 1.29059 2.16359 1.73698L1.74049 2.16007C1.29444 2.60612 1.29405 3.32919 1.73961 3.77573L6.7498 8.79686C7.19502 9.24305 7.19502 9.96544 6.7498 10.4116L1.73961 15.4328C1.29405 15.8793 1.29444 16.6024 1.7405 17.0484L2.16359 17.4715C2.60998 17.9179 3.33373 17.9179 3.78013 17.4715L10.8391 10.4125C11.2855 9.96612 11.2855 9.24237 10.8391 8.79597L3.78013 1.73698Z",fill:e||yn.officerNavy})}),Pv=({color:e})=>u.jsxs("svg",{className:"bf-carrot-solid",xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",fill:e||yn.white,children:[u.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),u.jsx("path",{d:"M7 10l5 5 5-5z"})]}),Tv=({color:e})=>u.jsxs("svg",{className:"bf-close",xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",children:[u.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),u.jsx("path",{d:"M19 13H5v-2h14v2z",fill:e||yn.black})]}),Ov=()=>u.jsxs("svg",{className:"bf-death",width:"45",height:"45",viewBox:"0 0 45 45",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.1501 6.87479C20.1501 9.34031 18.1533 11.3388 15.6903 11.3388C13.2273 11.3388 11.2309 9.34031 11.2309 6.87479C11.2309 4.40927 13.2273 2.4104 15.6903 2.4104C18.1533 2.4104 20.1501 4.40927 20.1501 6.87479ZM8.94118 13.9881C8.97531 13.7489 9.18017 13.5712 9.42182 13.5712H21.8969C22.0106 13.5712 22.1206 13.6111 22.2079 13.6839L22.6929 14.0884L28.6272 19.0387C28.7145 19.1115 28.8246 19.1514 28.9382 19.1514H37.5777C37.8151 19.1514 38.0176 19.323 38.0566 19.5572L40.1247 31.979C40.1739 32.2749 39.9457 32.5442 39.6458 32.5442H37.3595C37.0914 32.5442 36.874 32.7616 36.874 33.0297V42.1033C36.874 42.3714 36.6567 42.5888 36.3885 42.5888H32.8998C32.6316 42.5888 32.4143 42.3714 32.4143 42.1033V29.6815C32.4143 29.4134 32.6316 29.196 32.8998 29.196H34.0713C34.3713 29.196 34.5995 28.9267 34.5502 28.6307L33.9758 25.1807L33.7429 23.6286C33.7418 23.6213 33.7355 23.6158 33.728 23.6158C33.7206 23.6158 33.7143 23.6105 33.7131 23.6032L33.5969 22.9053C33.5579 22.6712 33.3553 22.4996 33.118 22.4996H25.9029C25.7879 22.4996 25.6767 22.4588 25.589 22.3844L20.5939 18.1504C20.5062 18.076 20.3949 18.0352 20.2799 18.0352H13.6883C13.4389 18.0352 13.23 18.2242 13.2052 18.4725L12.6333 24.1978C12.6047 24.4836 12.8291 24.7316 13.1164 24.7316H14.0905C14.3586 24.7316 14.576 24.949 14.576 25.2171V42.1035C14.576 42.3716 14.3586 42.589 14.0905 42.589H10.6017C10.3336 42.589 10.1162 42.3716 10.1162 42.1035V29.6817C10.1162 29.4135 9.89885 29.1962 9.63071 29.1962H7.33117C7.03575 29.1962 6.80881 28.9346 6.85053 28.6421L8.94118 13.9881ZM21.2653 25.2167C21.2653 24.9486 21.0479 24.7312 20.7798 24.7312H17.291C17.0229 24.7312 16.8055 24.9486 16.8055 25.2167V42.1031C16.8055 42.3712 17.0229 42.5886 17.291 42.5886H20.7798C21.0479 42.5886 21.2653 42.3712 21.2653 42.1031V25.2167ZM25.7247 25.2167C25.7247 24.9486 25.9421 24.7312 26.2102 24.7312H29.699C29.9671 24.7312 30.1845 24.9486 30.1845 25.2167V42.1031C30.1845 42.3712 29.9671 42.5886 29.699 42.5886H26.2102C25.9421 42.5886 25.7247 42.3712 25.7247 42.1031V25.2167ZM35.7589 12.4548C35.7589 14.9203 33.7625 16.9192 31.2995 16.9192C28.8365 16.9192 26.8397 14.9203 26.8397 12.4548C26.8397 9.98928 28.8365 7.99041 31.2995 7.99041C33.7625 7.99041 35.7589 9.98928 35.7589 12.4548Z",fill:"#E9F6FB",stroke:"#1B1B1B",strokeWidth:"2.77965"}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.1501 6.87479C20.1501 9.34031 18.1533 11.3388 15.6903 11.3388C13.2273 11.3388 11.2309 9.34031 11.2309 6.87479C11.2309 4.40927 13.2273 2.4104 15.6903 2.4104C18.1533 2.4104 20.1501 4.40927 20.1501 6.87479ZM8.94118 13.9881C8.97531 13.7489 9.18017 13.5712 9.42182 13.5712H21.8969C22.0106 13.5712 22.1206 13.6111 22.2079 13.6839L22.6929 14.0884L28.6272 19.0387C28.7145 19.1115 28.8246 19.1514 28.9382 19.1514H37.5777C37.8151 19.1514 38.0177 19.323 38.0566 19.5572L40.1247 31.979C40.1739 32.2749 39.9457 32.5442 39.6458 32.5442H37.3595C37.0914 32.5442 36.874 32.7616 36.874 33.0297V42.1033C36.874 42.3714 36.6567 42.5888 36.3885 42.5888H32.8998C32.6316 42.5888 32.4143 42.3714 32.4143 42.1033V29.6815C32.4143 29.4134 32.6316 29.196 32.8998 29.196H34.0713C34.3713 29.196 34.5995 28.9267 34.5502 28.6307L33.9758 25.1807L33.7429 23.6286C33.7418 23.6213 33.7355 23.6158 33.728 23.6158C33.7206 23.6158 33.7143 23.6105 33.7131 23.6032L33.5969 22.9053C33.5579 22.6712 33.3553 22.4996 33.118 22.4996H25.9029C25.7879 22.4996 25.6767 22.4588 25.589 22.3844L20.5939 18.1504C20.5062 18.076 20.3949 18.0352 20.2799 18.0352H13.6883C13.4389 18.0352 13.23 18.2242 13.2052 18.4725L12.6333 24.1978C12.6047 24.4836 12.8291 24.7316 13.1164 24.7316H14.0905C14.3586 24.7316 14.576 24.949 14.576 25.2171V42.1035C14.576 42.3716 14.3586 42.589 14.0905 42.589H10.6017C10.3336 42.589 10.1162 42.3716 10.1162 42.1035V29.6817C10.1162 29.4135 9.89885 29.1962 9.63071 29.1962H7.33117C7.03575 29.1962 6.80881 28.9346 6.85053 28.6421L8.94118 13.9881ZM21.2653 25.2167C21.2653 24.9486 21.0479 24.7312 20.7798 24.7312H17.291C17.0229 24.7312 16.8055 24.9486 16.8055 25.2167V42.1031C16.8055 42.3712 17.0229 42.5886 17.291 42.5886H20.7798C21.0479 42.5886 21.2653 42.3712 21.2653 42.1031V25.2167ZM25.7247 25.2167C25.7247 24.9486 25.9421 24.7312 26.2102 24.7312H29.699C29.9671 24.7312 30.1845 24.9486 30.1845 25.2167V42.1031C30.1845 42.3712 29.9671 42.5886 29.699 42.5886H26.2102C25.9421 42.5886 25.7247 42.3712 25.7247 42.1031V25.2167ZM35.7589 12.4548C35.7589 14.9203 33.7625 16.9192 31.2995 16.9192C28.8365 16.9192 26.8397 14.9203 26.8397 12.4548C26.8397 9.98928 28.8365 7.99041 31.2995 7.99041C33.7625 7.99041 35.7589 9.98928 35.7589 12.4548Z",fill:"white",stroke:"#00C1E7",strokeWidth:"0.571814"})]}),Rv=({color:e})=>u.jsx("svg",{width:"20",height:"16",viewBox:"0 0 20 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 0.000244141H2C0.9 0.000244141 0.00999999 0.900244 0.00999999 2.00024L0 14.0002C0 15.1002 0.9 16.0002 2 16.0002H18C19.1 16.0002 20 15.1002 20 14.0002V2.00024C20 0.900244 19.1 0.000244141 18 0.000244141ZM18 14.0002H2V4.00024L10 9.00024L18 4.00024V14.0002ZM10 7.00024L2 2.00024H18L10 7.00024Z",fill:e||yn.popBlue})}),Mv=()=>u.jsxs("svg",{width:"45",height:"45",viewBox:"0 0 45 45",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M29.2857 9.5335C31.4805 9.5335 33.2598 7.75908 33.2598 5.57022C33.2598 3.38136 31.4805 1.60693 29.2857 1.60693C27.0908 1.60693 25.3115 3.38136 25.3115 5.57022C25.3115 7.75908 27.0908 9.5335 29.2857 9.5335Z",fill:"#E9F6FB",stroke:"#1A1A1A",strokeWidth:"1.34304",strokeMiterlimit:"10"}),u.jsx("path",{d:"M31.1129 34.0346C31.1129 33.6064 30.7661 33.2593 30.3382 33.2593C29.9103 33.2593 29.5635 33.6064 29.5635 34.0346V42.3786C29.5635 42.8068 29.9103 43.1539 30.3382 43.1539C30.7661 43.1539 31.1129 42.8068 31.1129 42.3786V34.0346Z",fill:"#1A1A1A"}),u.jsx("path",{d:"M29.8281 42.2474V42.5131C29.8281 42.8664 30.1153 43.1528 30.4696 43.1528H35.1777C35.532 43.1528 35.8193 42.8664 35.8193 42.5131V42.2474C35.8193 41.8941 35.532 41.6076 35.1777 41.6076H30.4696C30.1153 41.6076 29.8281 41.8941 29.8281 42.2474Z",fill:"#1A1A1A"}),u.jsx("path",{d:"M19.0432 44.1969C26.0392 44.1969 31.7105 38.5411 31.7105 31.5643C31.7105 24.5875 26.0392 18.9316 19.0432 18.9316C12.0473 18.9316 6.37598 24.5875 6.37598 31.5643C6.37598 38.5411 12.0473 44.1969 19.0432 44.1969Z",fill:"#010101"}),u.jsx("path",{d:"M36.3958 22.9921L29.7469 22.4553L31.8835 14.827C32.1988 13.6938 31.6497 12.5173 30.6385 12.0077C30.5026 11.9318 30.3558 11.8667 30.1927 11.8233L21.1027 9.29139C20.7276 9.18838 20.347 9.19922 19.9936 9.29681C19.6892 9.34561 19.3956 9.46488 19.1401 9.67091L12.8934 14.6535C12.1051 15.2824 11.9801 16.4372 12.6053 17.218C13.2359 18.0041 14.3939 18.1288 15.1768 17.5053L20.0045 13.6505L21.8693 14.1709L17.857 21.7559C17.2318 22.9379 17.6885 24.4126 18.8737 25.0361L22.5488 26.9662C23.3154 27.3674 24.207 27.3186 24.9083 26.912L25.3867 27.0421C25.7673 27.5463 26.349 27.8933 27.0286 27.9475L33.1991 28.4463L32.4326 37.8801C32.3184 39.2573 33.3568 40.4772 34.7431 40.5856C36.124 40.6994 37.3472 39.6639 37.456 38.2814L38.44 26.1801C38.44 26.1313 38.44 26.0771 38.44 26.0283L38.4889 25.4319C38.5922 24.1794 37.6463 23.0734 36.3904 22.9704L36.3958 22.9921Z",fill:"#E9F6FB",stroke:"#1A1A1A",strokeWidth:"1.34304",strokeMiterlimit:"10"}),u.jsx("path",{d:"M19.0442 41.7672C24.695 41.7672 29.2758 37.1989 29.2758 31.5636C29.2758 25.9282 24.695 21.3599 19.0442 21.3599C13.3934 21.3599 8.8125 25.9282 8.8125 31.5636C8.8125 37.1989 13.3934 41.7672 19.0442 41.7672Z",fill:"#E9F6FB"}),u.jsx("path",{d:"M19.0425 42.3136C24.9965 42.3136 29.8233 37.5001 29.8233 31.5623C29.8233 25.6245 24.9965 20.811 19.0425 20.811C13.0884 20.811 8.26172 25.6245 8.26172 31.5623C8.26172 37.5001 13.0884 42.3136 19.0425 42.3136Z",stroke:"#00C0E4",strokeWidth:"1.03146",strokeMiterlimit:"10"}),u.jsx("path",{d:"M19.0426 39.4948C23.4353 39.4948 26.9963 35.9436 26.9963 31.5628C26.9963 27.1821 23.4353 23.6309 19.0426 23.6309C14.6499 23.6309 11.0889 27.1821 11.0889 31.5628C11.0889 35.9436 14.6499 39.4948 19.0426 39.4948Z",fill:"white",stroke:"#1A1A1A",strokeWidth:"1.07443",strokeMiterlimit:"10"})]}),$v=({color:e})=>u.jsx("svg",{className:"bf-checkmark--green","data-testid":"icon-green-check",width:"24",height:"20",viewBox:"0 0 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 4.15417C23.9925 4.52794 23.8515 4.88618 23.6033 5.16208L12.2975 16.6522L10.1157 18.8696C9.84423 19.1219 9.49174 19.2651 9.12397 19.2727C8.7562 19.2651 8.40371 19.1219 8.13223 18.8696L5.95041 16.6522L0.396694 11.0079C0.148478 10.732 0.00748054 10.3738 0 10C0.00748054 9.62626 0.148478 9.26802 0.396694 8.99212L2.57851 6.77473C2.84999 6.52246 3.20248 6.37917 3.57025 6.37156C3.93802 6.37917 4.29051 6.52246 4.56198 6.77473L9.12397 11.4111L19.2397 1.13046C19.5111 0.878193 19.8636 0.734897 20.2314 0.727295C20.5992 0.734897 20.9517 0.878193 21.2231 1.13046L23.405 3.34785C23.8017 3.54943 24 3.75101 24 4.15417Z",fill:e||yn.greenCheck})}),Dv=()=>u.jsx("svg",{className:"bf-info",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.33594 3.66732H7.66927V5.00065H6.33594V3.66732ZM6.33594 6.33398H7.66927V10.334H6.33594V6.33398ZM7.0026 0.333984C3.3226 0.333984 0.335938 3.32065 0.335938 7.00065C0.335938 10.6807 3.3226 13.6673 7.0026 13.6673C10.6826 13.6673 13.6693 10.6807 13.6693 7.00065C13.6693 3.32065 10.6826 0.333984 7.0026 0.333984ZM7.0026 12.334C4.0626 12.334 1.66927 9.94065 1.66927 7.00065C1.66927 4.06065 4.0626 1.66732 7.0026 1.66732C9.9426 1.66732 12.3359 4.06065 12.3359 7.00065C12.3359 9.94065 9.9426 12.334 7.0026 12.334Z",fill:"#1B1B1B"})}),Iv=()=>u.jsxs("svg",{className:"bf-modal-close",xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",children:[u.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),u.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})]}),Fv=()=>u.jsxs("svg",{className:"bf-open",xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",children:[u.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),u.jsx("path",{fill:"none",d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"})]}),Av=()=>u.jsxs("svg",{width:"45",height:"45",viewBox:"0 0 45 45",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M40.2696 1.60693H6.37598V43.3926H40.2696V1.60693Z",fill:"#DFEFF4",stroke:"#191919",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M19.2757 9.08496H12.9048C12.4714 9.08496 12.1201 9.43563 12.1201 9.86819V14.6747C12.1201 15.1073 12.4714 15.4579 12.9048 15.4579H19.2757C19.7091 15.4579 20.0604 15.1073 20.0604 14.6747V9.86819C20.0604 9.43563 19.7091 9.08496 19.2757 9.08496Z",fill:"#05BBE2"}),u.jsx("path",{d:"M19.2757 19.314H12.9048C12.4714 19.314 12.1201 19.6646 12.1201 20.0972V24.9037C12.1201 25.3363 12.4714 25.6869 12.9048 25.6869H19.2757C19.7091 25.6869 20.0604 25.3363 20.0604 24.9037V20.0972C20.0604 19.6646 19.7091 19.314 19.2757 19.314Z",fill:"#05BBE2"}),u.jsx("path",{d:"M19.2757 29.5415H12.9048C12.4714 29.5415 12.1201 29.8922 12.1201 30.3247V35.1312C12.1201 35.5638 12.4714 35.9145 12.9048 35.9145H19.2757C19.7091 35.9145 20.0604 35.5638 20.0604 35.1312V30.3247C20.0604 29.8922 19.7091 29.5415 19.2757 29.5415Z",fill:"#05BBE2"}),u.jsx("path",{d:"M14.8369 11.9099L16.1581 13.2287L21.1878 9.08496",stroke:"#191919",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M23.5391 11.0723H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M23.5391 13.4648H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M23.5391 21.3071H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M23.5391 23.6904H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M23.5391 31.5381H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M23.5391 33.9214H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"})]}),Bv=({color:e})=>u.jsx("svg",{width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 14.1203C14.24 14.1203 13.56 14.4203 13.04 14.8903L5.91 10.7403C5.96 10.5103 6 10.2803 6 10.0403C6 9.80028 5.96 9.57028 5.91 9.34028L12.96 5.23028C13.5 5.73028 14.21 6.04028 15 6.04028C16.66 6.04028 18 4.70028 18 3.04028C18 1.38028 16.66 0.0402832 15 0.0402832C13.34 0.0402832 12 1.38028 12 3.04028C12 3.28028 12.04 3.51028 12.09 3.74028L5.04 7.85028C4.5 7.35028 3.79 7.04028 3 7.04028C1.34 7.04028 0 8.38028 0 10.0403C0 11.7003 1.34 13.0403 3 13.0403C3.79 13.0403 4.5 12.7303 5.04 12.2303L12.16 16.3903C12.11 16.6003 12.08 16.8203 12.08 17.0403C12.08 18.6503 13.39 19.9603 15 19.9603C16.61 19.9603 17.92 18.6503 17.92 17.0403C17.92 15.4303 16.61 14.1203 15 14.1203Z",fill:e||"#005EA2"})}),ft=({type:e,color:t,...n})=>{let r;switch(e){case"all_benefits":r=u.jsx(Nv,{});break;case"carrot-solid":r=u.jsx(Pv,{color:t});break;case"carrot":r=u.jsx(Lv,{color:t});break;case"close":r=u.jsx(Tv,{});break;case"death":r=u.jsx(Ov,{});break;case"disability":r=u.jsx(Mv,{});break;case"email":r=u.jsx(Rv,{color:t});break;case"green-check":r=u.jsx($v,{color:t});break;case"info":r=u.jsx(Dv,{color:t});break;case"open":r=u.jsx(Fv,{});break;case"modal-close":r=u.jsx(Iv,{color:t});break;case"retirement":r=u.jsx(Av,{});break;case"share":r=u.jsx(Bv,{color:t});break;default:r=null}return u.jsx("i",{...n,"data-testid":`icon-${e}`,children:r})};ft.propTypes={type:C.string,color:C.string,props:C.any};const Qf=({className:e,data:t,initialEligibilityLength:n,ui:r})=>{const{benefitSummary:l,benefitSummaryPrefix:i,benefitSummaryConjunction:o}=r,s=["bf-key-eligibility-criteria-group"];return u.jsx("div",{className:pt({className:e,defaultClasses:s}),children:t&&u.jsxs(u.Fragment,{children:[" ",u.jsxs(ee,{className:"bf-key-eligibility-criteria-heading",headingLevel:5,children:[`${l}`,u.jsx("span",{className:"bf-key-eligibility-criteria-sub-heading",children:` - ${i} ${t.length} ${o} + ${n}`})]}),u.jsx("ul",{className:"bf-key-eligibility-criteria-list","data-testid":"bf-key-eligibility-criteria-list",children:t.map((a,c)=>{const{criteriaKey:p,label:d}=a;return u.jsxs("li",{className:"bf-usa-list usa-list usa-list--unstyled bf-usa-list--unstyled bf-key-eligibility-criteria-list-item","data-testid":`${p}`,children:[u.jsx("div",{"aria-hidden":"true",children:u.jsx(ft,{type:"green-check","aria-hidden":"true"})}),d]},`${p}-${c}`)})})]})})};Qf.propTypes={className:C.string,data:C.array,initialEligibilityLength:C.number};const ds=({children:e})=>u.jsx("legend",{className:"bf-legend usa-legend",children:e});ds.propTypes={children:C.node};const va=({className:e,label:t,htmlFor:n})=>{const r=["bf-usa-label usa-label"];return u.jsx("label",{className:pt({className:e,defaultClasses:r}),htmlFor:n,children:t})};va.propTypes={className:C.string,label:C.string,htmlFor:C.string};var fs={exports:{}},wn={},ps={exports:{}},lt={},hs={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;/*! * Adapted from jQuery UI core * * http://jqueryui.com @@ -56,7 +83,7 @@ object-assign Copyright (c) 2015 Jed Watson. Based on code that is Copyright 2013-2015, Facebook, Inc. All rights reserved. -*/(function(e){(function(){var t=!!(typeof window<"u"&&window.document&&window.document.createElement),n={canUseDOM:t,canUseWorkers:typeof Worker<"u",canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen};e.exports?e.exports=n:window.ExecutionEnvironment=n})()})(yf);var Cm=yf.exports;Object.defineProperty(nt,"__esModule",{value:!0});nt.canUseDOM=nt.SafeNodeList=nt.SafeHTMLCollection=void 0;var km=Cm,Em=_m(km);function _m(e){return e&&e.__esModule?e:{default:e}}var No=Em.default,jm=No.canUseDOM?window.HTMLElement:{};nt.SafeHTMLCollection=No.canUseDOM?window.HTMLCollection:{};nt.SafeNodeList=No.canUseDOM?window.NodeList:{};nt.canUseDOM=No.canUseDOM;nt.default=jm;Object.defineProperty(ot,"__esModule",{value:!0});ot.resetState=Om;ot.log=Mm;ot.assertNodeList=wf;ot.setElement=Pm;ot.validateElement=Js;ot.hide=Rm;ot.show=Dm;ot.documentNotReadyOrSSRTesting=$m;var Nm=Sm,bm=Tm(Nm),Lm=nt;function Tm(e){return e&&e.__esModule?e:{default:e}}var Ae=null;function Om(){Ae&&(Ae.removeAttribute?Ae.removeAttribute("aria-hidden"):Ae.length!=null?Ae.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(Ae).forEach(function(e){return e.removeAttribute("aria-hidden")})),Ae=null}function Mm(){}function wf(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function Pm(e){var t=e;if(typeof t=="string"&&Lm.canUseDOM){var n=document.querySelectorAll(t);wf(n,t),t=n}return Ae=t||Ae,Ae}function Js(e){var t=e||Ae;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,bm.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}function Rm(e){var t=!0,n=!1,r=void 0;try{for(var l=Js(e)[Symbol.iterator](),o;!(t=(o=l.next()).done);t=!0){var i=o.value;i.setAttribute("aria-hidden","true")}}catch(s){n=!0,r=s}finally{try{!t&&l.return&&l.return()}finally{if(n)throw r}}}function Dm(e){var t=!0,n=!1,r=void 0;try{for(var l=Js(e)[Symbol.iterator](),o;!(t=(o=l.next()).done);t=!0){var i=o.value;i.removeAttribute("aria-hidden")}}catch(s){n=!0,r=s}finally{try{!t&&l.return&&l.return()}finally{if(n)throw r}}}function $m(){Ae=null}var Yn={};Object.defineProperty(Yn,"__esModule",{value:!0});Yn.resetState=Fm;Yn.log=Im;var Cr={},kr={};function ju(e,t){e.classList.remove(t)}function Fm(){var e=document.getElementsByTagName("html")[0];for(var t in Cr)ju(e,Cr[t]);var n=document.body;for(var r in kr)ju(n,kr[r]);Cr={},kr={}}function Im(){}var Am=function(t,n){return t[n]||(t[n]=0),t[n]+=1,n},zm=function(t,n){return t[n]&&(t[n]-=1),n},Bm=function(t,n,r){r.forEach(function(l){Am(n,l),t.add(l)})},Vm=function(t,n,r){r.forEach(function(l){zm(n,l),n[l]===0&&t.remove(l)})};Yn.add=function(t,n){return Bm(t.classList,t.nodeName.toLowerCase()=="html"?Cr:kr,n.split(" "))};Yn.remove=function(t,n){return Vm(t.classList,t.nodeName.toLowerCase()=="html"?Cr:kr,n.split(" "))};var Xn={};Object.defineProperty(Xn,"__esModule",{value:!0});Xn.log=Um;Xn.resetState=Wm;function Hm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var xf=function e(){var t=this;Hm(this,e),this.register=function(n){t.openInstances.indexOf(n)===-1&&(t.openInstances.push(n),t.emit("register"))},this.deregister=function(n){var r=t.openInstances.indexOf(n);r!==-1&&(t.openInstances.splice(r,1),t.emit("deregister"))},this.subscribe=function(n){t.subscribers.push(n)},this.emit=function(n){t.subscribers.forEach(function(r){return r(n,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},oo=new xf;function Um(){console.log("portalOpenInstances ----------"),console.log(oo.openInstances.length),oo.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")}function Wm(){oo=new xf}Xn.default=oo;var ea={};Object.defineProperty(ea,"__esModule",{value:!0});ea.resetState=Zm;ea.log=Gm;var Km=Xn,qm=Qm(Km);function Qm(e){return e&&e.__esModule?e:{default:e}}var ye=void 0,Ye=void 0,un=[];function Zm(){for(var e=[ye,Ye],t=0;t0?(document.body.firstChild!==ye&&document.body.insertBefore(ye,document.body.firstChild),document.body.lastChild!==Ye&&document.body.appendChild(Ye)):(ye.parentElement&&ye.parentElement.removeChild(ye),Ye.parentElement&&Ye.parentElement.removeChild(Ye))}qm.default.subscribe(Ym);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(D){for(var F=1;F0&&(ae-=1,ae===0&&g.show(O)),C.props.shouldFocusAfterRender&&(C.props.shouldReturnFocusAfterClose?(c.returnFocus(C.props.preventScroll),c.teardownScopedFocus()):c.popWithoutFocus()),C.props.onAfterClose&&C.props.onAfterClose(),v.default.deregister(C)},C.open=function(){C.beforeOpen(),C.state.afterOpen&&C.state.beforeClose?(clearTimeout(C.closeTimer),C.setState({beforeClose:!1})):(C.props.shouldFocusAfterRender&&(c.setupScopedFocus(C.node),c.markForFocusLater()),C.setState({isOpen:!0},function(){C.openAnimationFrame=requestAnimationFrame(function(){C.setState({afterOpen:!0}),C.props.isOpen&&C.props.onAfterOpen&&C.props.onAfterOpen({overlayEl:C.overlay,contentEl:C.content})})}))},C.close=function(){C.props.closeTimeoutMS>0?C.closeWithTimeout():C.closeWithoutTimeout()},C.focusContent=function(){return C.content&&!C.contentHasFocus()&&C.content.focus({preventScroll:!0})},C.closeWithTimeout=function(){var k=Date.now()+C.props.closeTimeoutMS;C.setState({beforeClose:!0,closesAt:k},function(){C.closeTimer=setTimeout(C.closeWithoutTimeout,C.state.closesAt-Date.now())})},C.closeWithoutTimeout=function(){C.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},C.afterClose)},C.handleKeyDown=function(k){R(k)&&(0,m.default)(C.content,k),C.props.shouldCloseOnEsc&&H(k)&&(k.stopPropagation(),C.requestClose(k))},C.handleOverlayOnClick=function(k){C.shouldClose===null&&(C.shouldClose=!0),C.shouldClose&&C.props.shouldCloseOnOverlayClick&&(C.ownerHandlesClose()?C.requestClose(k):C.focusContent()),C.shouldClose=null},C.handleContentOnMouseUp=function(){C.shouldClose=!1},C.handleOverlayOnMouseDown=function(k){!C.props.shouldCloseOnOverlayClick&&k.target==C.overlay&&k.preventDefault()},C.handleContentOnClick=function(){C.shouldClose=!1},C.handleContentOnMouseDown=function(){C.shouldClose=!1},C.requestClose=function(k){return C.ownerHandlesClose()&&C.props.onRequestClose(k)},C.ownerHandlesClose=function(){return C.props.onRequestClose},C.shouldBeClosed=function(){return!C.state.isOpen&&!C.state.beforeClose},C.contentHasFocus=function(){return document.activeElement===C.content||C.content.contains(document.activeElement)},C.buildClassName=function(k,O){var P=(typeof O>"u"?"undefined":r(O))==="object"?O:{base:B[k],afterOpen:B[k]+"--after-open",beforeClose:B[k]+"--before-close"},I=P.base;return C.state.afterOpen&&(I=I+" "+P.afterOpen),C.state.beforeClose&&(I=I+" "+P.beforeClose),typeof O=="string"&&O?I+" "+O:I},C.attributesFromObject=function(k,O){return Object.keys(O).reduce(function(P,I){return P[k+"-"+I]=O[I],P},{})},C.state={afterOpen:!1,beforeClose:!1},C.shouldClose=null,C.moveFromContentToOverlay=null,C}return l(F,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(C,k){this.props.isOpen&&!C.isOpen?this.open():!this.props.isOpen&&C.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!k.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var C=this.props,k=C.appElement,O=C.ariaHideApp,P=C.htmlOpenClassName,I=C.bodyOpenClassName,A=C.parentSelector,ne=A&&A().ownerDocument||document;I&&x.add(ne.body,I),P&&x.add(ne.getElementsByTagName("html")[0],P),O&&(ae+=1,g.hide(k)),v.default.register(this)}},{key:"render",value:function(){var C=this.props,k=C.id,O=C.className,P=C.overlayClassName,I=C.defaultStyles,A=C.children,ne=O?{}:I.content,oe=P?{}:I.overlay;if(this.shouldBeClosed())return null;var Yt={ref:this.setOverlayRef,className:this.buildClassName("overlay",P),style:n({},oe,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},Ke=n({id:k,ref:this.setContentRef,style:n({},ne,this.props.style.content),className:this.buildClassName("content",O),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",n({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),Nt=this.props.contentElement(Ke,A);return this.props.overlayElement(Yt,Nt)}}]),F}(o.Component);Oe.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},Oe.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(h.default),s.default.instanceOf(b.SafeHTMLCollection),s.default.instanceOf(b.SafeNodeList),s.default.arrayOf(s.default.instanceOf(h.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=Oe,e.exports=t.default})(Yi,Yi.exports);var Xm=Yi.exports;function Sf(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function Cf(e){function t(n){var r=this.constructor.getDerivedStateFromProps(e,n);return r??null}this.setState(t.bind(this))}function kf(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}Sf.__suppressDeprecationWarning=!0;Cf.__suppressDeprecationWarning=!0;kf.__suppressDeprecationWarning=!0;function Jm(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var n=null,r=null,l=null;if(typeof t.componentWillMount=="function"?n="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(n="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?l="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(l="UNSAFE_componentWillUpdate"),n!==null||r!==null||l!==null){var o=e.displayName||e.name,i=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. +*/(function(e){(function(){var t=!!(typeof window<"u"&&window.document&&window.document.createElement),n={canUseDOM:t,canUseWorkers:typeof Worker<"u",canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen};e.exports?e.exports=n:window.ExecutionEnvironment=n})()})(Gf);var eg=Gf.exports;Object.defineProperty(nt,"__esModule",{value:!0});nt.canUseDOM=nt.SafeNodeList=nt.SafeHTMLCollection=void 0;var tg=eg,ng=rg(tg);function rg(e){return e&&e.__esModule?e:{default:e}}var Ai=ng.default,lg=Ai.canUseDOM?window.HTMLElement:{};nt.SafeHTMLCollection=Ai.canUseDOM?window.HTMLCollection:{};nt.SafeNodeList=Ai.canUseDOM?window.NodeList:{};nt.canUseDOM=Ai.canUseDOM;nt.default=lg;Object.defineProperty(it,"__esModule",{value:!0});it.resetState=ug;it.log=cg;it.assertNodeList=Yf;it.setElement=dg;it.validateElement=ga;it.hide=fg;it.show=pg;it.documentNotReadyOrSSRTesting=hg;var ig=Jv,og=ag(ig),sg=nt;function ag(e){return e&&e.__esModule?e:{default:e}}var Ae=null;function ug(){Ae&&(Ae.removeAttribute?Ae.removeAttribute("aria-hidden"):Ae.length!=null?Ae.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(Ae).forEach(function(e){return e.removeAttribute("aria-hidden")})),Ae=null}function cg(){}function Yf(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function dg(e){var t=e;if(typeof t=="string"&&sg.canUseDOM){var n=document.querySelectorAll(t);Yf(n,t),t=n}return Ae=t||Ae,Ae}function ga(e){var t=e||Ae;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,og.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}function fg(e){var t=!0,n=!1,r=void 0;try{for(var l=ga(e)[Symbol.iterator](),i;!(t=(i=l.next()).done);t=!0){var o=i.value;o.setAttribute("aria-hidden","true")}}catch(s){n=!0,r=s}finally{try{!t&&l.return&&l.return()}finally{if(n)throw r}}}function pg(e){var t=!0,n=!1,r=void 0;try{for(var l=ga(e)[Symbol.iterator](),i;!(t=(i=l.next()).done);t=!0){var o=i.value;o.removeAttribute("aria-hidden")}}catch(s){n=!0,r=s}finally{try{!t&&l.return&&l.return()}finally{if(n)throw r}}}function hg(){Ae=null}var lr={};Object.defineProperty(lr,"__esModule",{value:!0});lr.resetState=mg;lr.log=vg;var Pr={},Tr={};function Yu(e,t){e.classList.remove(t)}function mg(){var e=document.getElementsByTagName("html")[0];for(var t in Pr)Yu(e,Pr[t]);var n=document.body;for(var r in Tr)Yu(n,Tr[r]);Pr={},Tr={}}function vg(){}var gg=function(t,n){return t[n]||(t[n]=0),t[n]+=1,n},yg=function(t,n){return t[n]&&(t[n]-=1),n},wg=function(t,n,r){r.forEach(function(l){gg(n,l),t.add(l)})},xg=function(t,n,r){r.forEach(function(l){yg(n,l),n[l]===0&&t.remove(l)})};lr.add=function(t,n){return wg(t.classList,t.nodeName.toLowerCase()=="html"?Pr:Tr,n.split(" "))};lr.remove=function(t,n){return xg(t.classList,t.nodeName.toLowerCase()=="html"?Pr:Tr,n.split(" "))};var ir={};Object.defineProperty(ir,"__esModule",{value:!0});ir.log=Sg;ir.resetState=kg;function Cg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Xf=function e(){var t=this;Cg(this,e),this.register=function(n){t.openInstances.indexOf(n)===-1&&(t.openInstances.push(n),t.emit("register"))},this.deregister=function(n){var r=t.openInstances.indexOf(n);r!==-1&&(t.openInstances.splice(r,1),t.emit("deregister"))},this.subscribe=function(n){t.subscribers.push(n)},this.emit=function(n){t.subscribers.forEach(function(r){return r(n,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},mi=new Xf;function Sg(){console.log("portalOpenInstances ----------"),console.log(mi.openInstances.length),mi.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")}function kg(){mi=new Xf}ir.default=mi;var ya={};Object.defineProperty(ya,"__esModule",{value:!0});ya.resetState=jg;ya.log=Ng;var Eg=ir,_g=bg(Eg);function bg(e){return e&&e.__esModule?e:{default:e}}var ye=void 0,Ye=void 0,fn=[];function jg(){for(var e=[ye,Ye],t=0;t0?(document.body.firstChild!==ye&&document.body.insertBefore(ye,document.body.firstChild),document.body.lastChild!==Ye&&document.body.appendChild(Ye)):(ye.parentElement&&ye.parentElement.removeChild(ye),Ye.parentElement&&Ye.parentElement.removeChild(Ye))}_g.default.subscribe(Lg);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(I){for(var F=1;F0&&(de-=1,de===0&&y.show(R)),k.props.shouldFocusAfterRender&&(k.props.shouldReturnFocusAfterClose?(c.returnFocus(k.props.preventScroll),c.teardownScopedFocus()):c.popWithoutFocus()),k.props.onAfterClose&&k.props.onAfterClose(),v.default.deregister(k)},k.open=function(){k.beforeOpen(),k.state.afterOpen&&k.state.beforeClose?(clearTimeout(k.closeTimer),k.setState({beforeClose:!1})):(k.props.shouldFocusAfterRender&&(c.setupScopedFocus(k.node),c.markForFocusLater()),k.setState({isOpen:!0},function(){k.openAnimationFrame=requestAnimationFrame(function(){k.setState({afterOpen:!0}),k.props.isOpen&&k.props.onAfterOpen&&k.props.onAfterOpen({overlayEl:k.overlay,contentEl:k.content})})}))},k.close=function(){k.props.closeTimeoutMS>0?k.closeWithTimeout():k.closeWithoutTimeout()},k.focusContent=function(){return k.content&&!k.contentHasFocus()&&k.content.focus({preventScroll:!0})},k.closeWithTimeout=function(){var _=Date.now()+k.props.closeTimeoutMS;k.setState({beforeClose:!0,closesAt:_},function(){k.closeTimer=setTimeout(k.closeWithoutTimeout,k.state.closesAt-Date.now())})},k.closeWithoutTimeout=function(){k.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},k.afterClose)},k.handleKeyDown=function(_){D(_)&&(0,d.default)(k.content,_),k.props.shouldCloseOnEsc&&q(_)&&(_.stopPropagation(),k.requestClose(_))},k.handleOverlayOnClick=function(_){k.shouldClose===null&&(k.shouldClose=!0),k.shouldClose&&k.props.shouldCloseOnOverlayClick&&(k.ownerHandlesClose()?k.requestClose(_):k.focusContent()),k.shouldClose=null},k.handleContentOnMouseUp=function(){k.shouldClose=!1},k.handleOverlayOnMouseDown=function(_){!k.props.shouldCloseOnOverlayClick&&_.target==k.overlay&&_.preventDefault()},k.handleContentOnClick=function(){k.shouldClose=!1},k.handleContentOnMouseDown=function(){k.shouldClose=!1},k.requestClose=function(_){return k.ownerHandlesClose()&&k.props.onRequestClose(_)},k.ownerHandlesClose=function(){return k.props.onRequestClose},k.shouldBeClosed=function(){return!k.state.isOpen&&!k.state.beforeClose},k.contentHasFocus=function(){return document.activeElement===k.content||k.content.contains(document.activeElement)},k.buildClassName=function(_,R){var L=(typeof R>"u"?"undefined":r(R))==="object"?R:{base:B[_],afterOpen:B[_]+"--after-open",beforeClose:B[_]+"--before-close"},M=L.base;return k.state.afterOpen&&(M=M+" "+L.afterOpen),k.state.beforeClose&&(M=M+" "+L.beforeClose),typeof R=="string"&&R?M+" "+R:M},k.attributesFromObject=function(_,R){return Object.keys(R).reduce(function(L,M){return L[_+"-"+M]=R[M],L},{})},k.state={afterOpen:!1,beforeClose:!1},k.shouldClose=null,k.moveFromContentToOverlay=null,k}return l(F,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(k,_){this.props.isOpen&&!k.isOpen?this.open():!this.props.isOpen&&k.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!_.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var k=this.props,_=k.appElement,R=k.ariaHideApp,L=k.htmlOpenClassName,M=k.bodyOpenClassName,z=k.parentSelector,fe=z&&z().ownerDocument||document;M&&g.add(fe.body,M),L&&g.add(fe.getElementsByTagName("html")[0],L),R&&(de+=1,y.hide(_)),v.default.register(this)}},{key:"render",value:function(){var k=this.props,_=k.id,R=k.className,L=k.overlayClassName,M=k.defaultStyles,z=k.children,fe=R?{}:M.content,_e=L?{}:M.overlay;if(this.shouldBeClosed())return null;var Jt={ref:this.setOverlayRef,className:this.buildClassName("overlay",L),style:n({},_e,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},ot=n({id:_,ref:this.setContentRef,style:n({},fe,this.props.style.content),className:this.buildClassName("content",R),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",n({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),$=this.props.contentElement(ot,z);return this.props.overlayElement(Jt,$)}}]),F}(i.Component);Te.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},Te.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(f.default),s.default.instanceOf(S.SafeHTMLCollection),s.default.instanceOf(S.SafeNodeList),s.default.arrayOf(s.default.instanceOf(f.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=Te,e.exports=t.default})(ps,ps.exports);var Pg=ps.exports;function Jf(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function ep(e){function t(n){var r=this.constructor.getDerivedStateFromProps(e,n);return r??null}this.setState(t.bind(this))}function tp(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}Jf.__suppressDeprecationWarning=!0;ep.__suppressDeprecationWarning=!0;tp.__suppressDeprecationWarning=!0;function Tg(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var n=null,r=null,l=null;if(typeof t.componentWillMount=="function"?n="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(n="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?l="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(l="UNSAFE_componentWillUpdate"),n!==null||r!==null||l!==null){var i=e.displayName||e.name,o=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. `+i+" uses "+o+" but also contains the following legacy lifecycles:"+(n!==null?` `+n:"")+(r!==null?` @@ -64,4 +91,4 @@ object-assign `+l:"")+` The above lifecycles should be removed. Learn more about this warning here: -https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=Sf,t.componentWillReceiveProps=Cf),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=kf;var s=t.componentDidUpdate;t.componentDidUpdate=function(c,f,m){var p=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:m;s.call(this,c,f,p)}}return e}const ev=Object.freeze(Object.defineProperty({__proto__:null,polyfill:Jm},Symbol.toStringTag,{value:"Module"})),tv=pp(ev);Object.defineProperty(vn,"__esModule",{value:!0});vn.bodyOpenClassName=vn.portalClassName=void 0;var bu=Object.assign||function(e){for(var t=1;t{const g=M.useRef(null),{modal:S,errors:x}=se.dataLayerStructure,b=()=>{u().then(E=>E===!0?f(!0):window.scrollTo(0,0)&&m.current.focus())},h=E=>(E&&E.current.focus(),window.location.hash="",hu.disableScroll(),f(!1),!0),d=E=>E.which===32||E.which===13;M.useEffect(()=>{c&&hu.enableScroll()},[c]),M.useEffect(()=>{const E=()=>{const N=document.getElementById("benefit-finder");N&&N.hasAttribute("aria-hidden")&&N.removeAttribute("aria-hidden")};return Ru.setAppElement("#benefit-finder"),E()},[]),c===!0&&Zr({pageView:S.bfData.pageView}),M.useEffect(()=>{(async()=>{c===!0&&se.dataLayerPush(window,{event:S.event,bfData:{pageView:S.bfData.pageView,viewTitle:`${p.viewTitle} modal`}})})().then(()=>{c===!0&&se.dataLayerPush(window,{event:x.event,bfData:{errors:"",errorCount:{number:0,string:"0"},formSuccess:!0}})})},[]);const v=({triggerLabel:E,onKeyDown:N,onClick:j})=>a.jsx(ta,{onClick:j,onKeyDown:N,noCarrot:!0,tabIndex:"0",triggerRef:g,"aria-label":"Continue",role:"button",children:E}),w=({navItemOneLabel:E,navItemOneFunction:N,navItemTwoLabel:j,navItemTwoFunction:L})=>{const B=H=>{h(g)&&H()},R=(H,ae)=>{d(H)&&h(g)&&ae()};return a.jsxs("ul",{className:"bf-modal bf-usa-button-group usa-button-group width-full",children:[a.jsx("li",{className:"bf-usa-button-group__item usa-button-group__item width-full",children:a.jsx(Te,{id:"bf-navItemOneBtn",className:"bf-nav-item-one width-full",onClick:()=>B(N),onKeyDown:H=>R(H,N),noCarrot:!0,tabIndex:"0",secondary:!0,children:E})},"bf-nav-item-one"),a.jsx("li",{className:"bf-usa-button-group__item usa-button-group__item width-full",children:a.jsx(Te,{id:"bf-navItemTwoBtn",className:"bf-nav-item-two width-full",onClick:()=>B(L),onKeyDown:H=>R(H,L),noCarrot:!0,tabIndex:"0",secondary:!0,children:j})},"nav-item-two")]})};return a.jsxs("div",{id:e,className:"bf-usa-modal-group",children:[a.jsx(v,{triggerLabel:n,onKeyDown:E=>d(E)&&b(),onClick:()=>b()}),a.jsxs(Ru,{id:"benefit-finder-modal",isOpen:c,onRequestClose:()=>h(g),style:mv,aria:{label:r},children:[a.jsx("button",{type:"button","aria-label":"Close",className:"bf-modal-button",onClick:()=>h(g),children:a.jsx(dt,{type:"modal-close",color:"black","aria-hidden":"true"})}),a.jsx(ee,{headingLevel:1,className:"bf-modal-heading",children:r}),t||a.jsx(w,{navItemOneLabel:l,navItemOneFunction:o,navItemTwoLabel:i,navItemTwoFunction:s})]})]})};_f.propTypes={id:y.string,children:y.node,triggerLabel:y.string,modalHeading:y.string,navItemOneLabel:y.string,navItemOneFunction:y.func,navItemTwoLabel:y.string,navItemTwoFunction:y.func,handleCheckRequriedFields:y.func};const jf=({data:e,iconAlt:t})=>{const n=r=>r&&r.data.map((l,o)=>a.jsxs("li",{className:"bf-notice",children:[a.jsx(dt,{type:"info","aria-label":t,role:"img"}),a.jsx("div",{className:"bf-notice-item",dangerouslySetInnerHTML:jt(l.notice)})]},`notice-${o}`));return a.jsx("div",{className:"bf-notices",children:a.jsx("ul",{className:"bf-notices-list add-list-reset",children:a.jsx(n,{data:e})})})};jf.propTypes={data:y.array};const ta=({children:e,className:t,href:n,rel:r,target:l,ext:o,noCarrot:i,triggerRef:s,...u})=>{const c=o?["bf-usa-button","usa-button","usa-button--secondary","bf-usa-button--secondary","bf-usa-link--external","usa-link--external","bf-obfuscated-link"]:["bf-usa-button","usa-button","bf-usa-button--secondary","usa-button--secondary","bf-obfuscated-link"],f=i===!0?null:a.jsx(dt,{type:"carrot-solid",color:"black","aria-hidden":"true"});return a.jsxs("a",{href:n,rel:r,target:l,className:ft({className:t,defaultClasses:c}),ref:s,...u,children:[e,f]})};ta.propTypes={children:y.node,className:y.string,href:y.string,rel:y.string,target:y.string,ext:y.bool,noCarrot:y.bool};y.node||y.string,y.oneOf(["regular","bold","extrabold","light","thin"]);const Nf=({steps:e})=>a.jsx("ol",{className:"bf-usa-process-list usa-process-list",children:e&&e.map((t,n)=>a.jsx("li",{className:"bf-usa-process-list__item usa-process-list__item",children:a.jsx("h3",{className:"bf-usa-process-list__heading usa-process-list__heading",children:t.title})},`process-item-${n}`))});Nf.propTypes={steps:y.array};const bf=({id:e,label:t,value:n,checked:r,onChange:l,required:o,className:i,name:s})=>{const u=o===!0?["required-field"]:"",c=["bf-usa-radio__input usa-radio__input"],f=u;return a.jsx(a.Fragment,{children:a.jsxs("div",{className:"bf-usa-radio usa-radio",children:[a.jsx("input",{className:ft({className:i,defaultClasses:c,utilityClasses:f}),type:"radio",name:s,value:n||e,checked:r,onChange:l,id:e}),a.jsx(Xs,{className:"bf-usa-radio__label usa-radio__label",htmlFor:e,label:t})]})})};bf.propTypes={id:y.string,label:y.string,value:y.string,checked:y.bool,onChange:y.func,className:y.string,name:y.string};const Lf=({invalid:e,values:t,fieldSetId:n,handleChanged:r,criteriaKey:l,errorMessage:o,legend:i,ui:s})=>{const u=s,c=o?`${o}`:`${u==null?void 0:u.prefix} ${i&&i.toLowerCase()} ${u==null?void 0:u.suffix}`;return a.jsx("div",{className:"bf-radio-group radio-group","aria-invalid":e,children:t&&t.map((f,m)=>{const p=`${n}_${m}`;return a.jsx(bf,{name:n,id:p,label:f.value,value:f.value,checked:f.selected||!1,onChange:g=>{r(g,l)},"data-errormessage":c,"aria-errormessage":`error-description-${p}`},p)})})};Lf.propTypes={invalid:y.bool,values:y.array,fieldSetId:y.string,handleChanged:y.func,criteriaKey:y.string};const Tf=({data:e,carrotType:t})=>a.jsx("ul",{className:"bf-usa-card-group usa-card-group",children:e&&e.map((n,r)=>{const{title:l,searchTitle:o,link:i,cta:s,body:u,lifeEventId:c}=n.lifeEvent,f=c.replace("es_","");return a.jsx(cf,{className:"bf-usa-card--relative-benefit bf-usa-card usa-card tablet:grid-col-12",title:o||l,cta:s,href:i,body:u,carrotType:t,icon:f,"data-testid":f},`${l}-${r}`)})});Tf.propTypes={data:y.array,carrotType:y.string};const Of=({ui:e})=>{const{eligible:t,summaryBox:n}=e;return a.jsxs("div",{children:[a.jsx(ee,{className:"bf-eligible-view-heading",headingLevel:2,children:t==null?void 0:t.heading}),a.jsx(ee,{className:"bf-eligible-view-description",headingLevel:3,dangerouslySetInnerHTML:jt(t==null?void 0:t.description)}),a.jsx(ra,{heading:n==null?void 0:n.heading,listItems:n==null?void 0:n.list,cta:n==null?void 0:n.cta})]})};Of.propTypes={props:y.any};const Mf=({ui:e})=>{const{notEligible:t,summaryBox:n}=e;return a.jsxs("div",{children:[a.jsx(ee,{className:"bf-not-eligible-view-heading",headingLevel:2,children:t==null?void 0:t.heading}),a.jsx(ee,{className:"bf-not-eligible-view-description",headingLevel:3,dangerouslySetInnerHTML:jt(t==null?void 0:t.description)}),a.jsx(ra,{heading:n==null?void 0:n.heading,listItems:n==null?void 0:n.list,cta:n==null?void 0:n.cta})]})};Mf.propTypes={props:y.any};const Pf=({handleViewToggle:e,notEligibleView:t,ui:n})=>a.jsxs(a.Fragment,{children:[a.jsx(ee,{className:"bf-zero-benefits-view-heading","data-testid":"zero-benefits-view-heading",headingLevel:2,children:n==null?void 0:n.heading}),a.jsx(ee,{className:"bf-zero-benefits-view-description",headingLevel:3,dangerouslySetInnerHTML:jt(n==null?void 0:n.description)}),!t&&a.jsx("div",{className:"bf-zero-benefits-view-cta",children:a.jsx(Te,{"data-testid":"zero-benefits-view-cta-button",onClick:e,secondary:!0,children:n==null?void 0:n.cta})})]});Pf.propTypes={handleViewToggle:y.func,notEligibleView:y.bool,ui:y.object};const Rf=({notEligibleView:e,zeroBenefitsResult:t,stepDataArray:n,isExpandAll:r,setExpandAll:l,handleStepBack:o,handleViewToggle:i,data:s,relevantBenefits:u,resetElement:c,ui:f})=>{const m=({notEligibleView:d,zeroBenefitsResult:v,ui:w})=>{const{eligible:E,notEligible:N,zeroBenefits:j}=w;return a.jsx(Ys,{heading:d===!1?v&&(j==null?void 0:j.eligible.chevron.heading)||(E==null?void 0:E.chevron.heading):v&&(j==null?void 0:j.notEligible.chevron.heading)||(N==null?void 0:N.chevron.heading),description:d===!1?v&&(j==null?void 0:j.eligible.chevron.description)||(E==null?void 0:E.chevron.description):v&&(j==null?void 0:j.notEligible.chevron.description)||(N==null?void 0:N.chevron.description)})},p=({zeroBenefitsResult:d,notEligibleView:v,ui:w})=>{const{notEligible:E,eligible:N,summaryBox:j,zeroBenefits:L}=w;return d?a.jsx(Pf,{handleViewToggle:i,notEligibleView:v,ui:L}):v?a.jsx(Mf,{ui:{notEligible:E,summaryBox:j}}):a.jsx(Of,{ui:{eligible:N,summaryBox:j}})},g=({notEligibleView:d,handleStepBack:v,ui:w})=>{const{stepBackButton:E}=w;return d===!1?a.jsx(na,{onClick:()=>c.current.focus(),setCurrent:v,children:E}):a.jsx(Te,{className:"bf-step-back-button",onClick:()=>i(),unstyled:!0,children:E})},S=({handleViewToggle:d,ui:v})=>{const{notEligibleResults:w}=v;return a.jsxs("div",{className:"bf-result-view-unmet",children:[a.jsx(ee,{className:"bf-result-view-unmet-heading",headingLevel:3,children:w==null?void 0:w.heading}),a.jsx("p",{dangerouslySetInnerHTML:jt(w==null?void 0:w.description)}),a.jsx("div",{className:"bf-result-view-cta-wrapper",children:a.jsx(Te,{"data-testid":"bf-result-view-unmet-button",secondary:!0,onClick:d,children:w==null?void 0:w.cta})})]})},x=({stepDataArray:d,ui:v})=>{const{shareResults:w}=v;return a.jsxs("div",{className:"bf-result-view-share-results",children:[a.jsx(ee,{className:"bf-result-view-share-results-heading",headingLevel:3,children:w==null?void 0:w.heading}),a.jsx("p",{children:w==null?void 0:w.description}),a.jsxs("ul",{className:"bf-result-view-share-results-button-group",children:[a.jsxs("li",{children:[" ",a.jsx(vv,{ui:w,data:d&&q.SelectedValueAll(d)})]}),a.jsxs("li",{children:[" ",a.jsx(Z0,{ui:w,data:d&&q.SelectedValueAll(d)})]})]})]})},b=({relevantBenefits:d,ui:v})=>{const{resultsRelativeBenefits:w}=v;return a.jsxs("div",{className:"bf-result-view-relvant-benefits",children:[a.jsx(ee,{className:"bf-result-view-relvant-benefits-heading",headingLevel:3,children:w==null?void 0:w.heading}),d&&a.jsx(Tf,{data:d,carrotType:"carrot"})]})},h=({zeroBenefitsResult:d,notEligibleView:v,stepDataArray:w,isExpandAll:E,setExpandAll:N,ui:j})=>a.jsx("div",{className:"bf-result-view-benefits",children:a.jsx(uf,{data:w&&q.ElegibilityByCriteria(q.SelectedValueAll(w),s),entryKey:"benefit",notEligibleView:v,expandAll:d===!1||d&&v,isExpandAll:E,setExpandAll:N,ui:j})});return a.jsxs(a.Fragment,{children:[a.jsx(m,{notEligibleView:e,zeroBenefitsResult:t,ui:f}),a.jsx("div",{className:"bf-grid-container grid-container",children:a.jsxs("div",{className:"bf-result-view-details",children:[a.jsx(g,{notEligibleView:e,ui:f,handleStepBack:o}),a.jsx(p,{zeroBenefitsResult:t,notEligibleView:e,ui:f}),a.jsx(h,{zeroBenefitsResult:t,notEligibleView:e,isExpandAll:r,setExpandAll:l,stepDataArray:n,ui:f}),e===!1&&t===!1&&a.jsx(S,{notEligibleView:e,zeroBenefitsResult:t,handleViewToggle:i,ui:f}),(u==null?void 0:u.length)>0&&a.jsx(b,{relevantBenefits:u,ui:f}),a.jsx(x,{stepDataArray:n,ui:f})]})})]})};Rf.propTypes={props:y.any};const Df=({handleStepBack:e,stepDataArray:t,relevantBenefits:n,ui:r,data:l})=>{const[o,i]=M.useState(!1),[s,u]=M.useState(null),{resultsView:c}=se.dataLayerStructure,[f,m]=M.useState(!1),p=Gr();M.useEffect(()=>{var d;(d=p.current)==null||d.focus()},[p]);const g=t&&q.SelectedValueAll(t).length,S=t&&q.ElegibilityByCriteria(q.SelectedValueAll(t),l).length,x=d=>{const v=[],w=document.querySelectorAll(".bf-accordion-sub-heading");for(const E of w)E.textContent.includes(d)&&v.push(E);return{number:v.length,string:`${v.length}`}},b=()=>{m(!1),i(!o),window.scrollTo(0,0),p.current.focus()},h=(s==null?void 0:s.eligibleBenefitCount.number)===0;return M.useEffect(()=>{window.scrollTo(0,0),u({eligibleBenefitCount:x(r.benefitAccordion.eligibleStatusLabels[0]),moreInfoBenefitCount:x(r.benefitAccordion.eligibleStatusLabels[1]),notEligibleBenefitCount:x(r.benefitAccordion.eligibleStatusLabels[2])})},[]),Zr({pageView:o===!0?c.bfData.pageView[1]:c.bfData.pageView[0],notEligibleView:o}),M.useEffect(()=>{s!==null&&se.dataLayerPush(window,{event:c.event,bfData:{pageView:o===!0?c.bfData.pageView[1]:c.bfData.pageView[0],viewTitle:o===!1?h&&r.zeroBenefits.eligible.chevron.heading||(r==null?void 0:r.eligible.chevron.heading):h&&(r==null?void 0:r.zeroBenefits.notEligible.chevron.heading)||(r==null?void 0:r.notEligible.chevron.heading),...s}})},[o,s]),M.useEffect(()=>{Gd({hide:!1})},[]),a.jsx("div",{className:"bf-result-view","data-testid":"bf-result-view","data-analytics":"bf-result-view","data-analytics-content":o===!0?"bf-not-eligible-view":"bf-eligible-view","data-analytics-content-criteria-values":g,"data-analytics-content-benefits":S,"data-analytics-content-eligible":s==null?void 0:s.eligibleBenefitCount.number,"data-analytics-content-not-eligible":s==null?void 0:s.notEligibleBenefitCount.number,"data-analytics-content-more-info":s==null?void 0:s.moreInfoBenefitCount.number,children:a.jsx(Rf,{handleStepBack:e,notEligibleView:o,zeroBenefitsResult:h,stepDataArray:t,handleViewToggle:b,isExpandAll:f,setExpandAll:m,relevantBenefits:n,resetElement:p,data:l,ui:r})})};Df.propTypes={handleStepBack:y.func,ui:y.object,data:y.array};const vv=({ui:e,data:t})=>{const[n,r]=M.useState(()=>to(window.location.href,t)),l=o=>{o.preventDefault(),r(to(window.location.href,t)),navigator.clipboard.writeText(n).then(()=>alert(`${e==null?void 0:e.shareLinkContent} ${n}`),i=>alert("Failed to copy",i))};return a.jsx("a",{href:"",className:"bf-share-trigger bf-usa-link usa-link",onClick:o=>l(o),"data-testid":"bf-share-trigger",children:(e==null?void 0:e.shareTrigger)||"Share"})},$f=({data:e,noHeadings:t,current:n,setCurrent:r,backLinkLabel:l,handleCheckRequriedFields:o})=>{const i=({completed:u})=>a.jsx("span",{className:"usa-sr-only",children:u?" completed":" not completed"}),s=({heading:u,current:c,completed:f,index:m})=>{const p=c===m?"--current":"";return a.jsx("li",{className:`bf-usa-step-indicator__segment usa-step-indicator__segment bf-usa-step-indicator__segment${p} usa-step-indicator__segment${p} ${f===!0?"bf-usa-step-indicator__segment--complete usa-step-indicator__segment--complete":""}`,"aria-current":c===m,children:a.jsxs("span",{className:"bf-usa-step-indicator__segment-label usa-step-indicator__segment-label",children:[!t&&u,a.jsx(i,{completed:f},`step-indicator-sr-${m}`)]},`step-indicator-label-${m}`)},`step-indicator-${u}`)};return a.jsxs("div",{children:[e&&e.length>0&&a.jsx("div",{className:"bf-usa-step-indicator usa-step-indicator","aria-label":"progress",tabIndex:0,children:a.jsx("ol",{className:"bf-usa-step-indicator__segments usa-step-indicator__segments",children:e&&e.map((u,c)=>{const f=u.section.heading,m=u.completed;return a.jsx(s,{heading:f,index:c,current:n,setCurrent:r,completed:m,handleCheckRequriedFields:o},`${f}-${c}`)})})}),a.jsx(na,{currentIndex:n,setCurrent:r,children:l})]})};$f.propTypes={data:y.array,noHeadings:y.bool,current:y.number,backLinkLabel:y.string};const na=({children:e,setCurrent:t,currentIndex:n})=>{const r=Gr(),l=()=>{t(n),r.current.focus()};return a.jsx(Te,{className:"bf-step-back-button",unstyled:!0,onClick:()=>l(),children:e||"Back"})};na.propTypes={children:y.node,setCurrent:y.func,currentIndex:y.number};function Ff({label:e,htmlFor:t,options:n,selected:r,onChange:l,ui:o,className:i,invalid:s,legend:u,errorMessage:c}){const{select:f,errorText:m}=o,p=[`bf-usa-select usa-select ${s===!0?"usa-input--error":""}`],g=({options:x})=>x.map(b=>a.jsx("option",{value:b.value,children:b.value},b.value)),S=c?`${c}`:`${m==null?void 0:m.prefix} ${u&&u.toLowerCase()} ${m==null?void 0:m.suffix}`;return a.jsxs(a.Fragment,{children:[a.jsx(Xs,{label:e||(f==null?void 0:f.labelSelect),htmlFor:t}),a.jsxs("select",{className:ft({className:i,defaultClasses:p}),name:t,id:t,onChange:l,value:r||"","aria-invalid":s===!0,"data-errormessage":S,"aria-errormessage":`error-description-${t}`,children:[a.jsx("option",{value:"",children:f==null?void 0:f.defaultValue},"default"),a.jsx(g,{options:n})]})]})}Ff.propTypes={label:y.string,htmlFor:y.string,options:y.array,selected:y.string,onChange:y.func,required:y.bool,ui:y.object,className:y.string,invalid:y.bool};const ra=({heading:e,listItems:t,cta:n})=>{const r=l=>{l.preventDefault(),window.location.href=`${window.location.origin}${window.location.pathname}`};return a.jsx("div",{className:"bf-usa-summary-box usa-summary-box",role:"region","aria-labelledby":"bf-summary-box-key-information",children:a.jsxs("div",{className:"bf-usa-summary-box__body usa-summary-box__body",children:[a.jsx(ee,{headingLevel:4,className:"bf-usa-summary-box__heading usa-summary-box__heading",id:"bf-summary-box-key-information",children:e}),a.jsx("div",{className:"bf-usa-summary-box__text usa-summary-box__text",children:a.jsxs("ul",{className:"bf-usa-list usa-list",children:[t&&t.map((l,o)=>a.jsx("li",{children:l.item},`bf-summary-list-${o}`)),a.jsxs("li",{children:[n==null?void 0:n.text," ",a.jsx("a",{className:"bf-usa-summary-box__link usa-summary-box__link",href:"#",onClick:l=>r(l),children:n==null?void 0:n.link})]})]})})]})})};ra.propTypes={props:y.any};y.string,y.string,y.string,y.bool;const If=({timeEstimate:e,description:t})=>a.jsxs("div",{className:"time-indicator",children:[t," ",e]});If.propTypes={description:y.string,timeEstimate:y.string};const Af=({handleStepForward:e,handleStepBack:t,ui:n,data:r})=>{const{stepIndicator:l,verifySelectionsView:o,buttonGroup:i}=n,{verifySelections:s}=se.dataLayerStructure,u=q.Language(),c={year:"numeric",month:"long",day:"numeric"},f=({item:g,index:S})=>a.jsxs("div",{className:"bf-verify-criteria-value",children:[a.jsx("div",{className:"bf-verify-criteria-legend",children:g.fieldset.legend},`bf-criteria-${g.fieldset.criteriaKey}-${S}`),o==null?void 0:o.noResultsLabel]}),m=({criteriaId:g,legend:S,selected:x})=>a.jsxs("div",{className:"bf-verify-criteria-value",children:[a.jsx("div",{className:"bf-verify-criteria-legend",children:S}),typeof(x==null?void 0:x.value)=="object"?`${Qh(x.value).toLocaleDateString(u,c)}`:x==null?void 0:x.value]},g),p=({item:g,index:S})=>a.jsxs("div",{children:[m({criteriaId:`criteria-${g.fieldset.criteriaKey}-${S}`,legend:g.fieldset.legend,selected:q.SelectedValue(g)}),q.Children(g).map(x=>q.SelectedValue(x)?m({criteriaId:x.fieldset.criteriaKey,legend:x.fieldset.legend,selected:q.SelectedValue(x)}):a.jsx(f,{item:x},x.fieldset.criteriaKey))]});return M.useEffect(()=>{window.scrollTo(0,0)},[]),Zr({pageView:s.bfData.pageView}),M.useEffect(()=>{se.dataLayerPush(window,{event:s.event,bfData:{pageView:s.bfData.pageView,viewTitle:o==null?void 0:o.heading}})},[]),a.jsx("div",{className:"bf-verify-selections-view",children:a.jsxs("div",{className:"bf-grid-container grid-container",children:[a.jsx(ee,{className:"bf-section-heading",headingLevel:1,children:o==null?void 0:o.heading}),a.jsx("div",{className:"bf-section-wrapper",children:a.jsxs("div",{className:"bf-section-info",children:[a.jsx(Te,{className:"bf-step-back-button",onClick:t,unstyled:!0,children:l==null?void 0:l.stepBackButton}),a.jsx("div",{children:r&&r.map((g,S)=>{const{section:x}=g;return a.jsxs("div",{className:"bf-verify-criteria-section",children:[a.jsx(ee,{className:"bf-verify-criteria-section-heading",headingLevel:2,children:x.heading}),a.jsx("div",{children:x.fieldsets.map((b,h)=>q.SelectedValue(b)?a.jsx(p,{item:b,index:h},`bf-criteria-item-${h}`):a.jsx(f,{item:b,index:h},`bf-criteria-item-${h}`))})]},`bf-section-${x.heading}`)})}),a.jsxs("div",{className:"bf-section-nav-btn-group",children:[a.jsx(Te,{outline:!0,onClick:t,children:i[0].value}),a.jsx(Te,{secondary:!0,onClick:e,children:i[1].value})]})]})})]})})};Af.propTypes={handleStepForward:y.func,handleStepBck:y.func,ui:y.object,data:y.array};const zf={heading:"Steps",timeIndicator:"Estimated time",steps:{list:[{title:"Answer questions"},{title:"Get your list of benefits"},{title:"Visit agency websites to apply"}]},notices:{heading:"Before you start:",iconAlt:"Important",list:[{notice:"
    This is not an application.
    "},{notice:"You'll need to apply for benefits with each agency."},{notice:"
    We don't share, save, or submit your information.
    "}]},button:"Start finding benefits"},Bf={stepBackButton:"Back"},Vf={value:"required"},Hf={heading:{prefix:"Your information contains",suffix:"errors"},description:"Complete all required fields."},Uf={prefix:"Fill out the",suffix:"field"},Wf=[{value:"Back"},{value:"Next"}],Kf={heading:"Select an option:",buttonGroup:[{value:"Review your selections"},{value:"Get your results"}]},qf={heading:"Review and confirm",noResultsLabel:"Not answered",buttonGroup:[{value:"Back"},{value:"Confirm"}]},Qf={summaryBox:{heading:"Important",list:[{item:"Visit each agency’s website to find full eligibility requirements."},{item:"Your results may change if you answer more questions or modify your answers."}],cta:{text:"",link:"Clear my answers and restart the form."}},eligible:{chevron:{heading:"Your potential benefits",description:"

    Visit each agency to find true eligibility and to apply. Check with your city, state, or employer for other benefits.

    "},heading:"Results",description:"You may be eligible for these benefits:"},notEligible:{chevron:{heading:"Benefits you did not qualify for",description:"

    According to your answers you are not eligible for these benefits.

    "},heading:"Results",description:"Based on your answers you are not eligible for these benefits.You may become eligible if you enter additional information or your situation changes."},zeroBenefits:{eligible:{chevron:{heading:"You are likely not eligible for these benefits.",description:"

    If you reached these results by mistake, please go back to review your answers.

    "}},notEligible:{chevron:{heading:"Benefits you did not qualify for",description:"

    According to your answers you are not eligible for these benefits.

    "}},heading:"No eligible results.",description:"Based on your answers you are likely not eligible for benefits. You may become eligible if you enter more information or your situation changes.",cta:"See all benefits"},stepBackButton:"Back",eligibleResults:{heading:"Results",description:"You may be eligible for these benefits."},benefitAccordionGroup:{closedState:"Expand all",openState:"Close all"},benefitAccordion:{eligibleStatusLabels:["Likely eligible","More information needed","Not eligible"],agencyPrefix:"By",benefitSummary:"Key eligibility criteria",benefitSummaryPrefix:"Met ",benefitSummaryConjunction:"of",unmetLabel:"Unmet criteria",visitLabel:"Visit"},notEligibleResults:{heading:"Benefits you did not qualify for",description:"
    Based on your answers you are not eligible for these benefits. You may become eligible if you enter additional information or your situation changes.
    ",cta:"Explore other potential benefits"},resultsRelativeBenefits:{heading:"More benefits"},shareResults:{heading:"Share results",shareTrigger:"Share link",shareLinkContent:"Copied",emailTrigger:"Email results",emailSubject:"Results from USAGov’s benefit finder",description:"Copy or email these results. Your answers will be visible. Only share with those you trust."}},Zf={heading:"Share results",description:"Your information will be viewable. Only share with those you trust.",buttonGroup:[{value:"Share link"},{value:"Email results"}]},Gf={start:"Answer these questions",continue:"Questions continued",final:"Final questions"},Yf={labelSelect:"Select an option",defaultValue:"-Select-",dateDefaultValue:"-Select-"},Xf={alert:"Date should follow the format January 19 2000",labelDay:"Day",labelMonth:"Month",labelYear:"Year",monthOptions:[{label:"01 - January"},{label:"02 - February"},{label:"03 - March"},{label:"04 - April"},{label:"05 - May"},{label:"06 - June"},{label:"07 - July"},{label:"08 - August"},{label:"09 - September"},{label:"10 - October"},{label:"11 - November"},{label:"12 - December"}]},gv={intro:zf,stepIndicator:Bf,requiredLabel:Vf,alertBanner:Hf,errorText:Uf,buttonGroup:Wf,reviewSelectionModal:Kf,verifySelectionsView:qf,resultsView:Qf,shareResults:Zf,sectionHeadings:Gf,select:Yf,date:Xf},Du=Object.freeze(Object.defineProperty({__proto__:null,alertBanner:Hf,buttonGroup:Wf,date:Xf,default:gv,errorText:Uf,intro:zf,requiredLabel:Vf,resultsView:Qf,reviewSelectionModal:Kf,sectionHeadings:Gf,select:Yf,shareResults:Zf,stepIndicator:Bf,verifySelectionsView:qf},Symbol.toStringTag,{value:"Module"})),Jf={heading:"Pasos",timeIndicator:"Tiempo estimado",steps:{list:[{title:"Responda unas preguntas"},{title:"Obtenga su lista de posibles beneficios"},{title:"Aplique en los sitios web de cada agencia"}]},notices:{heading:"Antes de empezar:",iconAlt:"Importante",list:[{notice:"
    Esto no es una aplicación.
    "},{notice:"Sus respuestas no serán guardadas o presentadas."},{notice:"
    Responda todas las preguntas para mejores resultados.
    "}]},button:"Encuentre sus beneficios"},ep={stepBackButton:"Volver"},tp={value:"requerido"},np={heading:{prefix:"Tu información contiene",suffix:"errores"},description:"Responda los campos requeridos."},rp={prefix:"Complete",suffix:""},lp=[{value:"Volver"},{value:"Siguiente"}],op={heading:"Seleccione una opción:",buttonGroup:[{value:"Revise sus respuestas"},{value:"Obtenga sus resultados"}]},ip={heading:"Revisar y confirmar",noResultsLabel:"No respondió",buttonGroup:[{value:"Volver"},{value:"Confirmar"}]},sp={summaryBox:{heading:"Importante",list:[{item:"Visite el sitio web de cada agencia para confirmar su elegibilidad y requisitos."},{item:"Sus resultados podrían cambiar si responde más preguntas o modifica sus respuestas."}],cta:{text:"",link:"Borrar mis respuestas y empezar el formulario de nuevo."}},eligible:{chevron:{heading:"Sus beneficios potenciales",description:"

    Visite la página de cada agencia para verificar los requisitos y aplicar. Para conocer otros beneficios, consulte a su ciudad, estado, o trabajo.

    "},heading:"Resultados",description:"Podría ser elegible para estos beneficios:"},notEligible:{chevron:{heading:"Beneficios a los que no calificó",description:"

    Según sus respuestas usted no es elegible para estos beneficios.

    "},heading:"Resultados",description:"Según sus respuestas no es elegible para estos beneficios. Podría calificar si tiene información adicional o si su situación cambia."},zeroBenefits:{eligible:{chevron:{heading:"Usted parece no ser elegible para estos beneficios",description:"

    Si cree que cometió un error, por favor regrese para corregir sus respuestas.

    "}},notEligible:{chevron:{heading:"Beneficios a los que no calificó",description:"

    Según sus respuestas usted no es elegible para estos beneficios.

    "}},heading:"No tiene resultados elegibles.",description:"Basado en sus respuestas usted no es elegible para estos beneficios. Podría ser elegible si ingresa más información o si su situación cambia.",cta:"Ver todos los beneficios"},stepBackButton:"Volver",eligibleResults:{heading:"Resultados",description:"Podría calificar para estos beneficios:"},benefitAccordionGroup:{closedState:"Abrir todos",openState:"Cerrar todos"},benefitAccordion:{eligibleStatusLabels:["Probablemente elegible","Más información requerida","No elegible"],agencyPrefix:"",benefitSummary:"Criterios de elegibilidad",benefitSummaryPrefix:"Cumple ",benefitSummaryConjunction:"de",unmetLabel:"No cumplió con",visitLabel:"Visite",sourceIsEnglish:"(en inglés)"},notEligibleResults:{heading:"Beneficios a los que no calificó",description:"
    Según sus respuestas no es elegible para estos beneficios. Podría calificar si tiene información adicional o si su situación cambia.
    ",cta:"Explore otros beneficios"},relativeBenefits:{heading:"Más beneficios"},shareResults:{heading:"Imprima y comparta",shareTrigger:"Compartir resultados",emailTrigger:"Enviar resultados",shareLinkContent:"Copiado",emailSubject:"Resultados del buscador de beneficios de USAGov",description:"Copie o envíe sus resultados por correo. Sus respuestas serán visibles. Solo comparta con quienes confíe."}},ap={heading:"Imprima y comparta",description:"Sus respuestas serán visibles. Solo comparta con quienes confíe.",buttonGroup:[{value:"Compartir resultados"},{value:"Enviar resultados"}]},up={start:"Responda las preguntas",continue:"Preguntas continuadas",final:"Preguntas finales"},cp={labelSelect:"Seleccione una opción",defaultValue:"-Seleccionar-",dateDefaultValue:"-Seleccionar-"},dp={alert:"Use el formato enero 19 2000",labelDay:"Día",labelMonth:"Mes",labelYear:"Año",monthOptions:[{label:"01 - Enero"},{label:"02 - Febrero"},{label:"03 - Marzo"},{label:"04 - Abril"},{label:"05 - Mayo"},{label:"06 - Junio"},{label:"07 - Julio"},{label:"08 - Agosto"},{label:"09 - Septiembre"},{label:"10 - Octubre"},{label:"11 - Noviembre"},{label:"12 - Diciembre"}]},yv={intro:Jf,stepIndicator:ep,requiredLabel:tp,alertBanner:np,errorText:rp,buttonGroup:lp,reviewSelectionModal:op,verifySelectionsView:ip,resultsView:sp,shareResults:ap,sectionHeadings:up,select:cp,date:dp},$u=Object.freeze(Object.defineProperty({__proto__:null,alertBanner:np,buttonGroup:lp,date:dp,default:yv,errorText:rp,intro:Jf,requiredLabel:tp,resultsView:sp,reviewSelectionModal:op,sectionHeadings:up,select:cp,shareResults:ap,stepIndicator:ep,verifySelectionsView:ip},Symbol.toStringTag,{value:"Module"}));function wv({testAppContent:e,testQuery:t}){var B;const n=M.createContext({en:Du,es:$u}),r="shared",l="draft",o=t||window.location.search,i=o.includes(r),s=o.includes(l);Gr();const[u,c]=M.useState(()=>(q.LifeEvent().then(R=>(R==null?void 0:R.status)===200?c(R.data):c(e)),e)),[f,m]=M.useState(),[p,g]=M.useState(),[S,x]=M.useState(!1);M.useEffect(()=>{u&&g([...u.benefits]),u&&m([...u.lifeEventForm.sectionsEligibilityCriteria])},[u]);const[b]=M.useState(q.Language()==="es"?$u:Du),[h,d]=M.useState(i?null:0),[v,w]=M.useState(()=>f&&f[h]),[E,N]=M.useState(!1),[j,L]=M.useState(i);return M.useEffect(()=>{i&&(f&&Br.DataFromParams(o,f,w,r),f&&d(f.length))},[o,i,f]),u&&a.jsxs(n.Provider,{value:b,children:[s===!0&&a.jsx(Gs,{children:"Draft Mode"}),a.jsx("div",{id:u==null?void 0:u.lifeEventForm.id,className:`benefit-finder ${h!==0&&j!==!0?"form":""}`,"data-testid":"app","data-version":zh,children:h===0?a.jsx(hf,{data:u.lifeEventForm,ui:b.intro,setStep:d,step:h}):j===!0?a.jsx(Df,{stepDataArray:f,relevantBenefits:(B=u==null?void 0:u.lifeEventForm)==null?void 0:B.relevantBenefits,data:p,setBenefitsArray:()=>g(),ui:b.resultsView,handleStepBack:()=>{N(!1),L(!1)}}):E===!1?a.jsx("div",{children:a.jsx(ff,{children:a.jsx(vf,{step:h,setStep:d,data:f,handleData:m,stepData:v,setStepData:w,verifyStep:E,setVerifyStep:()=>{N(!0),x(!1)},setViewResults:()=>{L(!0),x(!1)},ui:b,modalOpen:S,setModalOpen:x})})}):a.jsx(Af,{handleStepBack:()=>{N(!1),L(!1)},handleStepForward:()=>{L(!0)},ui:b,data:f,step:h,setStep:d})})]})}const xv=ni.createRoot(document.getElementById("benefit-finder"));xv.render(a.jsx(Lp.StrictMode,{children:a.jsx(wv,{})})); +https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=Jf,t.componentWillReceiveProps=ep),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=tp;var s=t.componentDidUpdate;t.componentDidUpdate=function(c,p,d){var m=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:d;s.call(this,c,p,m)}}return e}const Og=Object.freeze(Object.defineProperty({__proto__:null,polyfill:Tg},Symbol.toStringTag,{value:"Module"})),Rg=Yp(Og);Object.defineProperty(wn,"__esModule",{value:!0});wn.bodyOpenClassName=wn.portalClassName=void 0;var Ju=Object.assign||function(e){for(var t=1;t{const p=E.useRef(null),{modal:d,errors:m}=ie.dataLayerStructure,[y,x]=E.useState(!1),g=()=>{a().then(w=>w&&x(w)),window.scrollTo(0,0)},S=w=>(w&&w.current.focus(),window.location.hash="",window.scrollTo(0,0),Bu.disableScroll(),x(!1),!0),f=w=>w.which===32||w.which===13;E.useEffect(()=>{y&&Bu.enableScroll()},[y]),E.useEffect(()=>{const w=setTimeout(()=>{ic.setAppElement("#benefit-finder")},0);return()=>{clearTimeout(w)}},[]),E.useEffect(()=>{(async()=>{y===!0&&ie.dataLayerPush(window,{event:d.event,bfData:{pageView:d.bfData.pageView,viewTitle:`${c.viewTitle} modal`}})})().then(()=>{y===!0&&ie.dataLayerPush(window,{event:m.event,bfData:{errors:"",errorCount:{number:0,string:"0"},formSuccess:!0}})})},[y]);const h=({triggerLabel:w,onKeyDown:j,onClick:N})=>u.jsx(wa,{onClick:N,onKeyDown:j,noCarrot:!0,tabIndex:"0",triggerRef:p,"aria-label":"Continue",role:"button",children:w}),v=({navItemOneLabel:w,navItemOneFunction:j,navItemTwoLabel:N,navItemTwoFunction:P})=>{const T=D=>{S(p)&&D()},B=(D,q)=>{f(D)&&S(p)&&q()};return u.jsxs("ul",{className:"bf-modal bf-usa-button-group usa-button-group width-full","data-testid":"modal-button-group",children:[u.jsx("li",{className:"bf-usa-button-group__item usa-button-group__item width-full",children:u.jsx(Ke,{id:"bf-navItemOneBtn",className:"bf-nav-item-one width-full",onClick:()=>T(j),onKeyDown:D=>B(D,j),noCarrot:!0,tabIndex:"0",secondary:!0,children:w})},"bf-nav-item-one"),u.jsx("li",{className:"bf-usa-button-group__item usa-button-group__item width-full",children:u.jsx(Ke,{id:"bf-navItemTwoBtn",className:"bf-nav-item-two width-full",onClick:()=>T(P),onKeyDown:D=>B(D,P),noCarrot:!0,tabIndex:"0",secondary:!0,children:N})},"nav-item-two")]})};return u.jsxs("div",{id:e,className:"bf-usa-modal-group",children:[u.jsx(h,{triggerLabel:n,onKeyDown:w=>f(w)&&g(),onClick:()=>g()}),u.jsxs(ic,{id:"benefit-finder-modal",isOpen:y,onRequestClose:()=>S(p),style:qg,aria:{label:r},ariaHideApp:!1,children:[u.jsx("button",{type:"button","aria-label":"Close",className:"bf-modal-button","data-testid":"button",onClick:()=>S(p),children:u.jsx(ft,{type:"modal-close",color:"black","aria-hidden":"true"})}),u.jsx(ee,{headingLevel:1,className:"bf-modal-heading",children:r}),t||u.jsx(v,{navItemOneLabel:l,navItemOneFunction:i,navItemTwoLabel:o,navItemTwoFunction:s})]})]})};rp.propTypes={id:C.string,children:C.node,triggerLabel:C.string,modalHeading:C.string,navItemOneLabel:C.string,navItemOneFunction:C.func,navItemTwoLabel:C.string,navItemTwoFunction:C.func,handleCheckRequriedFields:C.func};const lp=({data:e,iconAlt:t})=>{const n=r=>r&&r.data.map((l,i)=>u.jsxs("li",{className:"bf-notice",children:[u.jsx(ft,{type:"info","aria-label":t,role:"img"}),u.jsx("div",{className:"bf-notice-item",dangerouslySetInnerHTML:jt(l.notice)})]},`notice-${i}`));return u.jsx("div",{className:"bf-notices",children:u.jsx("ul",{className:"bf-notices-list add-list-reset",children:u.jsx(n,{data:e})})})};lp.propTypes={data:C.array};const wa=({children:e,className:t,href:n,rel:r,target:l,ext:i,noCarrot:o,triggerRef:s,...a})=>{const c=i?["bf-usa-button","usa-button","usa-button--secondary","bf-usa-button--secondary","bf-usa-link--external","usa-link--external","bf-obfuscated-link"]:["bf-usa-button","usa-button","bf-usa-button--secondary","usa-button--secondary","bf-obfuscated-link"],p=o===!0?null:u.jsx(ft,{type:"carrot-solid",color:"black","aria-hidden":"true"});return u.jsxs("a",{href:n,rel:r,target:l,className:pt({className:t,defaultClasses:c}),ref:s,...a,children:[e,p]})};wa.propTypes={children:C.node,className:C.string,href:C.string,rel:C.string,target:C.string,ext:C.bool,noCarrot:C.bool};C.node||C.string,C.oneOf(["regular","bold","extrabold","light","thin"]);const ip=({steps:e})=>u.jsx("ol",{className:"bf-usa-process-list usa-process-list",children:e&&e.map((t,n)=>u.jsx("li",{className:"bf-usa-process-list__item usa-process-list__item",children:u.jsx("h3",{className:"bf-usa-process-list__heading usa-process-list__heading",children:t.title})},`process-item-${n}`))});ip.propTypes={steps:C.array};const op=({id:e,label:t,value:n,checked:r,onChange:l,required:i,className:o,name:s})=>{const a=i===!0?["required-field"]:"",c=["bf-usa-radio__input usa-radio__input"],p=a;return u.jsx(u.Fragment,{children:u.jsxs("div",{className:"bf-usa-radio usa-radio","data-testid":"radio",children:[u.jsx("input",{className:pt({className:o,defaultClasses:c,utilityClasses:p}),type:"radio",name:s,value:n||e,checked:r,onChange:l,id:e}),u.jsx(va,{className:"bf-usa-radio__label usa-radio__label",htmlFor:e,label:t})]})})};op.propTypes={id:C.string,label:C.string,value:C.string,checked:C.bool,onChange:C.func,className:C.string,name:C.string};const sp=({invalid:e,values:t,fieldSetId:n,handleChanged:r,criteriaKey:l,errorMessage:i,legend:o,ui:s})=>{const a=s,c=i?`${i}`:`${a==null?void 0:a.prefix} ${o&&o.toLowerCase()} ${a==null?void 0:a.suffix}`;return u.jsx("div",{className:"bf-radio-group radio-group","aria-invalid":e,"data-testid":"radio-group",children:t&&t.map((p,d)=>{const m=`${n}_${d}`;return u.jsx(op,{name:n,id:m,label:p.value,value:p.value,checked:p.selected||!1,onChange:y=>{r(y,l)},"data-errormessage":c,"aria-errormessage":`error-description-${m}`},m)})})};sp.propTypes={invalid:C.bool,values:C.array,fieldSetId:C.string,handleChanged:C.func,criteriaKey:C.string};const ap=({data:e,carrotType:t})=>u.jsx("ul",{className:"bf-usa-card-group usa-card-group",children:e&&e.map((n,r)=>{const{title:l,searchTitle:i,link:o,cta:s,body:a,lifeEventId:c}=n.lifeEvent,p=c.replace("es_","");return u.jsx(Hf,{className:"bf-usa-card--relative-benefit bf-usa-card usa-card tablet:grid-col-12",title:i||l,cta:s,href:o,body:a,carrotType:t,icon:p,"data-testid":p},`${l}-${r}`)})});ap.propTypes={data:C.array,carrotType:C.string};const Qg=({ui:e,data:t})=>{const n=E.useContext(Nt),[r,l]=E.useState(()=>di(`${window.location.origin}${n.basePath}/${n.indexPath}`,t)),i=o=>{o.preventDefault(),l(di(`${window.location.origin}${n.basePath}/${n.indexPath}`,t)),navigator.clipboard.writeText(r).then(()=>alert(`${e==null?void 0:e.shareLinkContent} ${r}`),s=>alert("Failed to copy",s))};return u.jsx("a",{href:"",className:"bf-share-trigger bf-usa-link usa-link",onClick:o=>i(o),"data-testid":"bf-share-trigger",children:(e==null?void 0:e.shareTrigger)||"Share"})},up=({data:e,noHeadings:t,current:n,setCurrent:r,handleCheckRequriedFields:l})=>{const i=({completed:s})=>u.jsx("span",{className:"usa-sr-only",children:s?" completed":" not completed"}),o=({heading:s,current:a,completed:c,index:p})=>{const d=a===p?"--current":"";return u.jsx("li",{className:`bf-usa-step-indicator__segment usa-step-indicator__segment bf-usa-step-indicator__segment${d} usa-step-indicator__segment${d} ${c===!0?"bf-usa-step-indicator__segment--complete usa-step-indicator__segment--complete":""}`,"aria-current":a===p,children:u.jsxs("span",{className:"bf-usa-step-indicator__segment-label usa-step-indicator__segment-label",children:[!t&&s,u.jsx(i,{completed:c},`step-indicator-sr-${p}`)]},`step-indicator-label-${p}`)},`step-indicator-${s}`)};return u.jsx("div",{children:e&&e.length>0&&u.jsx("div",{className:"bf-usa-step-indicator usa-step-indicator","aria-label":"progress",tabIndex:0,children:u.jsx("ol",{className:"bf-usa-step-indicator__segments usa-step-indicator__segments",children:e&&e.map((s,a)=>{const c=s.section.heading,p=s.completed;return u.jsx(o,{heading:c,index:a,current:n,setCurrent:r,completed:p,handleCheckRequriedFields:l},`${c}-${a}`)})})})})};up.propTypes={data:C.array,noHeadings:C.bool,current:C.number};const cp=({children:e,onClick:t})=>{const n=rr(),r=()=>{t(),n.current.focus()};return u.jsx(Ke,{className:"bf-step-back-button","data-testid":"bf-step-back-button",unstyled:!0,onClick:()=>r(),children:e||"Back"})};cp.propTypes={children:C.node,currentIndex:C.number};function dp({label:e,htmlFor:t,options:n,selected:r,onChange:l,ui:i,className:o,invalid:s,legend:a,errorMessage:c}){const{select:p,errorText:d}=i,m=[`bf-usa-select usa-select ${s===!0?"usa-input--error":""}`],y=({options:g})=>g.map(S=>u.jsx("option",{value:S.value,children:S.value},S.value)),x=c?`${c}`:`${d==null?void 0:d.prefix} ${a&&a.toLowerCase()} ${d==null?void 0:d.suffix}`;return u.jsxs(u.Fragment,{children:[u.jsx(va,{label:e||(p==null?void 0:p.labelSelect),htmlFor:t}),u.jsxs("select",{className:pt({className:o,defaultClasses:m}),name:t,id:t,"data-testid":t,onChange:l,value:r||"","aria-invalid":s===!0,"data-errormessage":x,"aria-errormessage":`error-description-${t}`,children:[u.jsx("option",{value:"",children:p==null?void 0:p.defaultValue},"default"),u.jsx(y,{options:n})]})]})}dp.propTypes={label:C.string,htmlFor:C.string,options:C.array,selected:C.string,onChange:C.func,required:C.bool,ui:C.object,className:C.string,invalid:C.bool};const xa=({heading:e,listItems:t,cta:n})=>{const r=E.useContext(Nt),l=i=>{i.preventDefault(),window.location.href=`${window.location.origin}${r.basePath}/${r.indexPath}`};return u.jsx("div",{className:"bf-usa-summary-box usa-summary-box",role:"region","aria-labelledby":"bf-summary-box-key-information",children:u.jsxs("div",{className:"bf-usa-summary-box__body usa-summary-box__body",children:[u.jsx(ee,{headingLevel:4,className:"bf-usa-summary-box__heading usa-summary-box__heading",id:"bf-summary-box-key-information",children:e}),u.jsx("div",{className:"bf-usa-summary-box__text usa-summary-box__text",children:u.jsxs("ul",{className:"bf-usa-list usa-list",children:[t&&t.map((i,o)=>u.jsx("li",{children:i.item},`bf-summary-list-${o}`)),u.jsxs("li",{children:[n==null?void 0:n.text," ",u.jsx("a",{className:"bf-usa-summary-box__link usa-summary-box__link",href:"#",onClick:i=>l(i),children:n==null?void 0:n.link})]})]})})]})})};xa.propTypes={props:C.any};C.string,C.string,C.string,C.bool;const fp=({timeEstimate:e,description:t})=>u.jsxs("div",{className:"time-indicator",children:[t," ",e]});fp.propTypes={description:C.string,timeEstimate:C.string};const pp=({content:e,ui:t,hasQueryParams:n})=>{const{timeEstimate:r,title:l,summary:i}=e,{heading:o,timeIndicator:s,steps:a,notices:c,button:p}=t,{intro:d}=ie.dataLayerStructure,m=rr(),y=E.useContext(Nt),x=il(),g=nr(),S=()=>{x(`/${y.indexPath}/${y.formPaths[0]}`),m.current.focus()};return E.useEffect(()=>{n&&x(`/${y.indexPath}/${y.resultsPaths.resultsPath}${g.search}`)},[n]),E.useEffect(()=>{!n&&ie.dataLayerPush(window,{event:d.event,bfData:{pageView:d.bfData.pageView,viewTitle:l}})},[n]),e&&u.jsxs("div",{className:"bf-intro",children:[u.jsx(ma,{heading:l,description:i}),u.jsxs("div",{className:"bf-grid-container grid-container",children:[u.jsx(ee,{headingLevel:2,children:o}),u.jsx(fp,{description:s,timeEstimate:r}),u.jsxs("div",{className:"bf-intro-process-group",children:[u.jsx("div",{className:"bf-intro-process-list",children:u.jsx(ip,{steps:a.list,description:a.title})}),u.jsx("div",{className:"bf-line-sperator-wrapper--vertical",children:u.jsx("div",{className:"bf-line-sperator--vertical"})}),u.jsxs("div",{className:"bf-intro-process-notices",children:[u.jsx(ee,{className:"bf-intro-process-notices-heading",headingLevel:2,children:c.heading}),u.jsx(lp,{className:"bf-intro-process-notices-list",data:c.list,iconAlt:c.iconAlt})]})]}),u.jsx("div",{className:"bf-line-sperator-wrapper",children:u.jsx("div",{className:"bf-line-sperator"})}),u.jsx("div",{className:"bf-cta-wrapper",children:u.jsx(Ke,{secondary:!0,onClick:()=>S(),"data-test":"button",children:p})})]})]})};pp.propTypes={data:C.object,ui:C.object,step:C.number};const hp=({data:e,handleData:t,ui:n})=>{const[r,l]=E.useState(0),[i,o]=E.useState(!1),[s,a]=E.useState(()=>e&&e[r]),[c,p]=E.useState([]),[d,m]=E.useState([]),[y,x]=E.useState(()=>H.SelectedValueAll(e).length>0),[g,S]=E.useState(0),{lifeEventSection:f}=ie.dataLayerStructure,{buttonGroup:h,reviewSelectionModal:v,requiredLabel:w,sectionHeadings:j}=n;gm(y);const N=rr(),P=E.useContext(Nt),T=il();let B=nr();const D=()=>e.findIndex(L=>{const M=Tf(L.section.heading);return B.pathname.match(`${P.indexPath}/${M}`)});E.useEffect(()=>{var L;(L=N.current)==null||L.focus()},[N]);const q=()=>{e[r]={...s},t([...e])},de=E.useRef(null),Te=()=>(de.current.classList.remove("display-none"),de.current.focus(),S(g+1),s.completed=!1,window.scrollTo(0,0),!1),I=()=>(de.current.classList.add("display-none"),s.completed=!0,q(),p([]),!0),F=()=>Fe.handleCheckForRequiredValues(c,m).then(L=>L===!0?I():Te()),W=L=>{F().then(M=>{if(M===!0){const{errors:z}=ie.dataLayerStructure;ie.dataLayerPush(window,{event:z.event,bfData:{errors:"",errorCount:{number:0,string:"0"},formSuccess:!0}});const fe=r+L;r<=e.length&&(T(`/${P.indexPath}/${P.formPaths[fe]}`),a(e[fe])),N&&N.current.focus()}})},k=L=>{T(r===0?`/${P.indexPath}`:L),N.current.focus()},_=(L,M)=>{window.history.replaceState({},"",window.location.pathname),Yr.Data(M,s,a,L.target.value),d.length>0&&Fe.handleCheckForRequiredValues(c,m),x(H.SelectedValueAll(e).length>0)},R=(L,M)=>{window.history.replaceState({},"",window.location.pathname);async function z(){_m(L)===!0&&(Yr.DataDate(M,s,a,L.target.value,L.target.id),d.length>0&&Fe.handleCheckForRequiredValues(c,m))}z().then(()=>{Fe.getNonRequiredFieldsets(M,c,p,m,d,H.SelectedValueAll(e)),x(H.SelectedValueAll(e).length>0)})};return E.useEffect(()=>{B.pathname.includes(P.formPaths[P.formPaths.length-1])?o(!0):o(!1)},[B]),E.useEffect(()=>{var M,z;const L=D();l(L),a(e[L]),ie.dataLayerPush(window,{event:f.event,bfData:{pageView:`${f.bfData.pageView}-${L+1}`,viewTitle:(M=e[L])==null?void 0:M.section.heading}}),(z=N.current)==null||z.focus(),window.scrollTo(0,0)},[B]),E.useEffect(()=>{var L;Fe.getRequiredFieldsets(document,p),(L=N.current)==null||L.focus(),window.scrollTo(0,0)},[r]),E.useEffect(()=>{Fe.getRequiredFieldsets(document,p)},[]),E.useEffect(()=>{fa({hide:!0})}),e&&u.jsxs(u.Fragment,{children:[u.jsx(ee,{className:"bf-section-heading",headingLevel:1,children:r===e.length-1?`${j.final}`:r===0?`${j.start}`:`${j.continue}`}),u.jsx("div",{className:"bf-section-wrapper",children:u.jsxs("div",{className:"bf-section-info",children:[u.jsx(up,{current:r,setCurrent:l,data:e},`step-indicator-${j}`),s&&u.jsxs("div",{id:"bf-section","data-testid":"bf-section",children:[u.jsx(ha,{alertFieldRef:de,heading:n.alertBanner.heading,description:n.alertBanner.description,type:"error",hasError:d.length>0,errorCount:d.length,errorList:d,submissionCount:g}),u.jsxs("div",{className:"bf-form-heading-group",children:[u.jsx(ee,{className:"bf-form-heading bf-usa-form-heading",headingLevel:2,children:s.section.heading}),u.jsx("div",{className:"bf-section-sub-heading",dangerouslySetInnerHTML:jt(s.section.description)})]}),s.section.fieldsets.map((L,M)=>{const z=({item:$,children:qe,index:ht,hidden:en})=>{var Sn,al;return $.fieldset.inputs[0].inputCriteria.type==="Select"?u.jsxs(E.Fragment,{children:[u.jsx(Al,{legend:$.fieldset.legend,errorMessage:$.fieldset.errorMessage,hint:$.fieldset.hint,required:$.fieldset.required,requiredLabel:w,hidden:en&&en,id:$.fieldset.criteriaKey,invalid:Fe.handleInvalid({hasError:d,criteriaKey:(Sn=$.fieldset)==null?void 0:Sn.criteriaKey}),ui:n.errorText,children:$.fieldset.inputs.map((Lt,mt)=>{var Ca;const Qe=`${$.fieldset.criteriaKey}_${mt}`,Pt=Lt.inputCriteria.values,vt=Pt.find(zi=>zi.selected!==void 0),{select:Bi,errorText:Zp}=n;return u.jsx("div",{children:u.jsx(dp,{ui:{select:Bi,errorText:Zp},htmlFor:Qe,options:Pt,selected:vt==null?void 0:vt.value,onChange:zi=>_(zi,$.fieldset.criteriaKey),invalid:Fe.handleInvalid({hasError:d,criteriaKey:(Ca=$.fieldset)==null?void 0:Ca.criteriaKey,fieldSetId:Qe}),legend:$.fieldset.legend,errorMessage:$.fieldset.errorMessage},Qe)},Qe)})},`select-${$.fieldset.criteriaKey}-${ht}`),qe||null]},`select-${$.fieldset.criteriaKey}+${ht}`):$.fieldset.inputs[0].inputCriteria.type==="Radio"?u.jsxs(E.Fragment,{children:[$.fieldset.inputs.map((Lt,mt)=>{var Pt,vt;const Qe=`${$.fieldset.criteriaKey}_${mt}`;return u.jsx(Al,{id:$.fieldset.criteriaKey,legend:$.fieldset.legend,errorMessage:$.fieldset.errorMessage,hint:$.fieldset.hint,required:$.fieldset.required,requiredLabel:w,hidden:en&&en,ui:n.errorText,invalid:Fe.handleInvalid({hasError:d,criteriaKey:(Pt=$.fieldset)==null?void 0:Pt.criteriaKey}),children:u.jsx(sp,{invalid:Fe.handleInvalid({hasError:d,criteriaKey:(vt=$.fieldset)==null?void 0:vt.criteriaKey}),fieldSetId:Qe,handleChanged:_,values:Lt.inputCriteria.values,criteriaKey:$.fieldset.criteriaKey,errorMessage:$.fieldset.errorMessage,legend:$.fieldset.legend,ui:n.errorText},Qe)},`radio-${$.fieldset.criteriaKey}-${mt}`)}),qe||null]},`radio-${$.fieldset.criteriaKey}+${ht}`):$.fieldset.inputs[0].inputCriteria.type==="Date"?u.jsxs(E.Fragment,{children:[u.jsx(Al,{legend:$.fieldset.legend,errorMessage:$.fieldset.errorMessage,hint:$.fieldset.hint,required:$.fieldset.required,requiredLabel:w,hidden:en&&en,id:$.fieldset.criteriaKey,invalid:Fe.handleInvalid({hasError:d,criteriaKey:(al=$.fieldset)==null?void 0:al.criteriaKey}),ui:n.errorText,children:$.fieldset.inputs.map((Lt,mt)=>{var Pt,vt;const Qe=`${$.fieldset.criteriaKey}_${mt}`;return u.jsx("div",{children:u.jsx(Wf,{value:(Pt=Lt.inputCriteria.values[0])==null?void 0:Pt.value,onChange:Bi=>R(Bi,$.fieldset.criteriaKey),ui:n,errorMessage:$.fieldset.errorMessage,parentLegend:$.fieldset.legend,id:Qe,invalid:Fe.handleInvalid({hasError:d,criteriaKey:(vt=$.fieldset)==null?void 0:vt.criteriaKey,fieldSetId:Qe,useFilter:!0})})},Qe)})},`date-${$.fieldset.criteriaKey}-${ht}`),qe||null]},`date-${$.fieldset.criteriaKey}+${ht}`):null},fe=({item:$,i:qe})=>z({item:$,index:qe}),_e=$=>{const qe=H.SelectedValue($);return(qe==null?void 0:qe.value)!==$.fieldset.inputs[0].inputCriteria.childDependencyOption},Jt=({item:$,i:qe})=>z({item:$,index:qe,children:$.fieldset.children.map((ht,en)=>ht.fieldsets.length&&ht.fieldsets.map((Sn,al)=>{const Lt=Sn&&H.SelectedValue(Sn),mt=_e($);return mt===!0&&Lt!==void 0&&delete Lt.selected,z({item:Sn,index:al,hidden:mt})}))});return L.fieldset.children.length>0?Jt({item:L,i:M}):fe({item:L,i:M})})]}),u.jsxs("div",{className:"bf-section-nav-btn-group",children:[u.jsx(Ke,{outline:!0,onClick:()=>k(-1),"data-test":"button",children:h[0].value}),i===!1?u.jsx(Ke,{secondary:!0,onClick:()=>W(1),"data-test":"button",children:h[1].value}):u.jsx(rp,{id:"nav-modal",dataLayerValue:{viewTitle:s.section.heading},modalHeading:v.heading,navItemOneLabel:v.buttonGroup[0].value,navItemOneFunction:()=>T(`/${P.indexPath}/${P.verifySelectionsPath}`),navItemTwoLabel:v.buttonGroup[1].value,navItemTwoFunction:()=>T(`/${P.indexPath}/${P.resultsPaths.resultsPath}`),triggerLabel:h[1].value,handleCheckRequriedFields:F,completed:s.completed})]})]})})]})};hp.propTypes={props:C.any,formStep:C.number,data:C.array,ui:C.object};const mp=({ui:e})=>{const{eligible:t,summaryBox:n}=e;return u.jsxs("div",{children:[u.jsx(ee,{className:"bf-eligible-view-heading",headingLevel:2,children:t==null?void 0:t.heading}),u.jsx(ee,{className:"bf-eligible-view-description",headingLevel:3,dangerouslySetInnerHTML:jt(t==null?void 0:t.description)}),u.jsx(xa,{heading:n==null?void 0:n.heading,listItems:n==null?void 0:n.list,cta:n==null?void 0:n.cta})]})};mp.propTypes={props:C.any};const vp=({ui:e})=>{const{notEligible:t,summaryBox:n}=e;return u.jsxs("div",{children:[u.jsx(ee,{className:"bf-not-eligible-view-heading",headingLevel:2,children:t==null?void 0:t.heading}),u.jsx(ee,{className:"bf-not-eligible-view-description",headingLevel:3,dangerouslySetInnerHTML:jt(t==null?void 0:t.description)}),u.jsx(xa,{heading:n==null?void 0:n.heading,listItems:n==null?void 0:n.list,cta:n==null?void 0:n.cta})]})};vp.propTypes={props:C.any};const gp=({handleViewToggle:e,notEligibleView:t,ui:n})=>{const r=E.useContext(Nt),l=il();return u.jsxs(u.Fragment,{children:[u.jsx(ee,{className:"bf-zero-benefits-view-heading","data-testid":"zero-benefits-view-heading",headingLevel:2,children:n==null?void 0:n.heading}),u.jsx(ee,{className:"bf-zero-benefits-view-description",headingLevel:3,dangerouslySetInnerHTML:jt(n==null?void 0:n.description)}),u.jsx("div",{className:"bf-back-to-form-cta",children:u.jsx(cp,{onClick:()=>l(`/${r.indexPath}/${r.formPaths[0]}`),children:n==null?void 0:n.backcta.link})}),!t&&u.jsx("div",{className:"bf-zero-benefits-view-cta",children:u.jsx(Ke,{"data-testid":"zero-benefits-view-cta-button",onClick:e,secondary:!0,children:n==null?void 0:n.cta})})]})};gp.propTypes={handleViewToggle:C.func,notEligibleView:C.bool,ui:C.object};const yp=({notEligibleView:e,zeroBenefitsResult:t,stepDataArray:n,isExpandAll:r,setExpandAll:l,handleViewToggle:i,data:o,relevantBenefits:s,ui:a})=>{const c=({notEligibleView:g,zeroBenefitsResult:S,ui:f})=>{const{eligible:h,notEligible:v,zeroBenefits:w}=f;return u.jsx(ma,{heading:g===!1?S&&(w==null?void 0:w.eligible.chevron.heading)||(h==null?void 0:h.chevron.heading):S&&(w==null?void 0:w.notEligible.chevron.heading)||(v==null?void 0:v.chevron.heading),description:g===!1?S&&(w==null?void 0:w.eligible.chevron.description)||(h==null?void 0:h.chevron.description):S&&(w==null?void 0:w.notEligible.chevron.description)||(v==null?void 0:v.chevron.description)})},p=({zeroBenefitsResult:g,notEligibleView:S,ui:f})=>{const{notEligible:h,eligible:v,summaryBox:w,zeroBenefits:j}=f;return g?u.jsx(gp,{handleViewToggle:i,notEligibleView:S,ui:j}):S===!0?u.jsx(vp,{ui:{notEligible:h,summaryBox:w}}):u.jsx(mp,{ui:{eligible:v,summaryBox:w}})},d=({handleViewToggle:g,ui:S})=>{const{notEligibleResults:f}=S;return u.jsxs("div",{className:"bf-result-view-unmet",children:[u.jsx(ee,{className:"bf-result-view-unmet-heading",headingLevel:3,children:f==null?void 0:f.heading}),u.jsx("p",{dangerouslySetInnerHTML:jt(f==null?void 0:f.description)}),u.jsx("div",{className:"bf-result-view-cta-wrapper",children:u.jsx(Ke,{"data-testid":"bf-result-view-unmet-button",secondary:!0,onClick:g,children:f==null?void 0:f.cta})})]})},m=({stepDataArray:g,ui:S})=>{const{shareResults:f}=S;return u.jsxs("div",{className:"bf-result-view-share-results",children:[u.jsx(ee,{className:"bf-result-view-share-results-heading",headingLevel:3,children:f==null?void 0:f.heading}),u.jsx("p",{children:f==null?void 0:f.description}),u.jsxs("ul",{className:"bf-result-view-share-results-button-group",children:[u.jsxs("li",{children:[" ",u.jsx(Qg,{ui:f,data:g&&H.SelectedValueAll(g)})]}),u.jsxs("li",{children:[" ",u.jsx(jv,{ui:f,data:g&&H.SelectedValueAll(g)})]})]})]})},y=({relevantBenefits:g,ui:S})=>{const{resultsRelativeBenefits:f}=S;return u.jsxs("div",{className:"bf-result-view-relvant-benefits",children:[u.jsx(ee,{className:"bf-result-view-relvant-benefits-heading",headingLevel:3,children:f==null?void 0:f.heading}),g&&u.jsx(ap,{data:g,carrotType:"carrot"})]})},x=({zeroBenefitsResult:g,notEligibleView:S,stepDataArray:f,isExpandAll:h,setExpandAll:v,ui:w})=>u.jsx("div",{className:"bf-result-view-benefits",children:u.jsx(Vf,{data:f&&H.ElegibilityByCriteria(H.SelectedValueAll(f),o),entryKey:"benefit",notEligibleView:S,expandAll:g===!1||g&&S,isExpandAll:h,setExpandAll:v,ui:w})});return u.jsxs(u.Fragment,{children:[u.jsx(c,{notEligibleView:e,zeroBenefitsResult:t,ui:a}),u.jsx("div",{className:"bf-grid-container grid-container","data-testid":"bf-results-view",children:u.jsxs("div",{className:"bf-result-view-details",children:[u.jsx(p,{zeroBenefitsResult:t,notEligibleView:e,ui:a}),u.jsx(x,{zeroBenefitsResult:t,notEligibleView:e,isExpandAll:r,setExpandAll:l,stepDataArray:n,ui:a}),e===!1&&t===!1&&u.jsx(d,{notEligibleView:e,zeroBenefitsResult:t,handleViewToggle:i,ui:a}),(s==null?void 0:s.length)>0&&u.jsx(y,{relevantBenefits:s,ui:a}),u.jsx(m,{stepDataArray:n,ui:a})]})})]})};yp.propTypes={props:C.any};const wp=({stepDataArray:e,relevantBenefits:t,ui:n,data:r,notEligibleView:l})=>{const[i,o]=E.useState(!0),[s,a]=E.useState(null),[c,p]=E.useState(null),{resultsView:d}=ie.dataLayerStructure,m=il(),y=nr(),x=E.useContext(Nt),[g,S]=E.useState(!1),f=rr();E.useEffect(()=>{var N;(N=f.current)==null||N.focus()},[f]);const h=e&&H.SelectedValueAll(e).length,v=e&&H.ElegibilityByCriteria(H.SelectedValueAll(e),r).length,w=()=>{y.pathname===`${x.indexPath}/${x.resultsPaths.resultsPath}`?m(-1):m(`/${x.indexPath}/${x.resultsPaths.notEligiblePath}`)};E.useEffect(()=>{var N;(N=f.current)==null||N.focus(),window.scrollTo(0,0),S(!1)},[y]),E.useEffect(()=>{H.BenefitsEligibilityCounts(r,n.benefitAccordion.eligibleStatusLabels).then(N=>{a(N),p((N==null?void 0:N.eligibleBenefitCount.number)===0),o(!1)})},[r]),E.useEffect(()=>{s!==null&&ie.dataLayerPush(window,{event:d.event,bfData:{pageView:l===!0?d.bfData.pageView[1]:d.bfData.pageView[0],viewTitle:l===!1?c&&n.zeroBenefits.eligible.chevron.heading||(n==null?void 0:n.eligible.chevron.heading):c&&(n==null?void 0:n.zeroBenefits.notEligible.chevron.heading)||(n==null?void 0:n.notEligible.chevron.heading),...s}})},[l,s]),E.useEffect(()=>{fa({hide:!1})},[]);const j={"data-test-results-view":l===!0?"bf-not-eligible-view":"bf-eligible-view","data-test-results-view-criteria-values":h,"data-test-results-view-benefits":v,"data-test-results-view-eligible":s==null?void 0:s.eligibleBenefitCount.number,"data-test-results-view-not-eligible":s==null?void 0:s.notEligibleBenefitCount.number,"data-test-results-view-more-info":s==null?void 0:s.moreInfoBenefitCount.number};return u.jsxs("div",{className:"bf-result-view","data-testid":"bf-result-view",...j,children:[u.jsx(yp,{notEligibleView:l,zeroBenefitsResult:c,stepDataArray:e,handleViewToggle:w,isExpandAll:g,setExpandAll:S,relevantBenefits:t,resetElement:f,data:r,ui:n}),ym({loading:i,parentElementID:"bf-results-view"})]})};wp.propTypes={ui:C.object,data:C.array};const xp=({indexPath:e,ui:t,data:n})=>{const{verifySelectionsView:r,buttonGroup:l}=t,{verifySelections:i}=ie.dataLayerStructure,o=H.Language(),s={year:"numeric",month:"long",day:"numeric"},a=il(),c=nr(),p=E.useContext(Nt),d=rr(),m=({item:g,index:S})=>u.jsxs("div",{className:"bf-verify-criteria-value",children:[u.jsx("div",{className:"bf-verify-criteria-legend",children:g.fieldset.legend},`bf-criteria-${g.fieldset.criteriaKey}-${S}`),r==null?void 0:r.noResultsLabel]}),y=({criteriaId:g,legend:S,selected:f})=>u.jsxs("div",{className:"bf-verify-criteria-value",children:[u.jsx("div",{className:"bf-verify-criteria-legend",children:S}),typeof(f==null?void 0:f.value)=="object"?`${bm(f.value).toLocaleDateString(o,s)}`:f==null?void 0:f.value]},g),x=({item:g,index:S})=>u.jsxs("div",{children:[y({criteriaId:`criteria-${g.fieldset.criteriaKey}-${S}`,legend:g.fieldset.legend,selected:H.SelectedValue(g)}),H.Children(g).map(f=>H.SelectedValue(f)?y({criteriaId:f.fieldset.criteriaKey,legend:f.fieldset.legend,selected:H.SelectedValue(f)}):u.jsx(m,{item:f},f.fieldset.criteriaKey))]});return E.useEffect(()=>{var g;(g=d.current)==null||g.focus(),window.scrollTo(0,0)},[c]),E.useEffect(()=>{ie.dataLayerPush(window,{event:i.event,bfData:{pageView:i.bfData.pageView,viewTitle:r==null?void 0:r.heading}})},[]),E.useEffect(()=>{fa({hide:!0})},[]),u.jsx("div",{className:"bf-verify-selections-view",children:u.jsxs("div",{className:"bf-grid-container grid-container",children:[u.jsx(ee,{className:"bf-section-heading",headingLevel:1,children:r==null?void 0:r.heading}),u.jsx("div",{className:"bf-section-wrapper",children:u.jsxs("div",{className:"bf-section-info",children:[u.jsx("div",{children:n&&n.map((g,S)=>{const{section:f}=g;return u.jsxs("div",{className:"bf-verify-criteria-section",children:[u.jsx(ee,{className:"bf-verify-criteria-section-heading",headingLevel:2,children:f.heading}),u.jsx("div",{children:f.fieldsets.map((h,v)=>H.SelectedValue(h)?u.jsx(x,{item:h,index:v},`bf-criteria-item-${v}`):u.jsx(m,{item:h,index:v},`bf-criteria-item-${v}`))})]},`bf-section-${f.heading}`)})}),u.jsxs("div",{className:"bf-section-nav-btn-group",children:[u.jsx(Ke,{outline:!0,onClick:()=>a(-1),children:l[0].value}),u.jsx(Ke,{secondary:!0,onClick:()=>a(`/${p.indexPath}/${p.resultsPaths.resultsPath}`),children:l[1].value})]})]})})]})})};xp.propTypes={ui:C.object,data:C.array};const Cp={heading:"Steps",timeIndicator:"Estimated time",steps:{list:[{title:"Answer questions"},{title:"Get your list of benefits"},{title:"Visit agency websites to apply"}]},notices:{heading:"Before you start:",iconAlt:"Important",list:[{notice:"
    This is not an application.
    "},{notice:"You'll need to apply for benefits with each agency."},{notice:"
    We don't share, save, or submit your information.
    "}]},button:"Start finding benefits"},Sp={stepBackButton:"Back"},kp={value:"required"},Ep={heading:{prefix:"Your information contains",suffix:"errors"},description:"Complete all required fields."},_p={prefix:"Fill out the",suffix:"field"},bp=[{value:"Back"},{value:"Next"}],jp={heading:"Select an option:",buttonGroup:[{value:"Review your selections"},{value:"Get your results"}]},Np={heading:"Review and confirm",noResultsLabel:"Not answered",buttonGroup:[{value:"Back"},{value:"Confirm"}]},Lp={summaryBox:{heading:"Important",list:[{item:"You need to visit each agency’s website to find full eligibility requirements and apply."},{item:"Your results may vary if your situation or answers change."}],cta:{text:"",link:"Clear your answers and restart the form."}},eligible:{chevron:{heading:"Your potential benefits",description:"

    Visit each agency to find true eligibility and to apply. Check with your city, state, or employer for other benefits.

    "},heading:"Results",description:"You may be eligible for these benefits:"},notEligible:{chevron:{heading:"Benefits you did not qualify for",description:"

    According to your answers you are not eligible for these benefits.

    "},heading:"Results",description:"Based on your answers you are not eligible for these benefits.You may become eligible if you enter additional information or your situation changes."},zeroBenefits:{backcta:{text:"",link:"Go back to start"},eligible:{chevron:{heading:"You are likely not eligible for these benefits.",description:"

    If you think you reached these results by mistake, please go back to review and edit your answers.

    "}},notEligible:{chevron:{heading:"Benefits you did not qualify for",description:"

    According to your answers you are not eligible for these benefits.

    "}},heading:"No eligible results.",description:"Based on your answers, you are currently not eligible for this life event’s benefits. You may become eligible if your situation or answers change in the future. Visit your city, state, or employer for other potential benefits.",cta:"See all benefits"},stepBackButton:"Back",eligibleResults:{heading:"Results",description:"You may be eligible for these benefits."},benefitAccordionGroup:{closedState:"Expand all",openState:"Close all"},benefitAccordion:{eligibleStatusLabels:["Likely eligible","More information needed","Not eligible"],agencyPrefix:"By",benefitSummary:"Key eligibility criteria",benefitSummaryPrefix:"Met ",benefitSummaryConjunction:"of",unmetLabel:"Unmet criteria",visitLabel:"Visit"},notEligibleResults:{heading:"Benefits you did not qualify for",description:"
    Based on your answers you are not eligible for these benefits. You may become eligible if you enter additional information or your situation changes.
    ",cta:"Explore benefits you did not qualify for"},resultsRelativeBenefits:{heading:"More benefits"},shareResults:{heading:"Share results",shareTrigger:"Share link",shareLinkContent:"Copied",emailTrigger:"Email results",emailSubject:"Results from USAGov’s benefit finder",description:"Copy or email these results. Your answers will be visible. Only share with those you trust."}},Pp={heading:"Share results",description:"Your information will be viewable. Only share with those you trust.",buttonGroup:[{value:"Share link"},{value:"Email results"}]},Tp={start:"Answer the following questions",continue:"Questions continued",final:"Final questions"},Op={labelSelect:"Select an option",defaultValue:"-Select-",dateDefaultValue:"-Select-"},Rp={alert:"Date should follow the format January 19 2000",labelDay:"Day",labelMonth:"Month",labelYear:"Year",monthOptions:[{label:"01 - January"},{label:"02 - February"},{label:"03 - March"},{label:"04 - April"},{label:"05 - May"},{label:"06 - June"},{label:"07 - July"},{label:"08 - August"},{label:"09 - September"},{label:"10 - October"},{label:"11 - November"},{label:"12 - December"}]},Zg={intro:Cp,stepIndicator:Sp,requiredLabel:kp,alertBanner:Ep,errorText:_p,buttonGroup:bp,reviewSelectionModal:jp,verifySelectionsView:Np,resultsView:Lp,shareResults:Pp,sectionHeadings:Tp,select:Op,date:Rp},Mp=Object.freeze(Object.defineProperty({__proto__:null,alertBanner:Ep,buttonGroup:bp,date:Rp,default:Zg,errorText:_p,intro:Cp,requiredLabel:kp,resultsView:Lp,reviewSelectionModal:jp,sectionHeadings:Tp,select:Op,shareResults:Pp,stepIndicator:Sp,verifySelectionsView:Np},Symbol.toStringTag,{value:"Module"})),$p={heading:"Pasos",timeIndicator:"Tiempo estimado",steps:{list:[{title:"Responda unas preguntas"},{title:"Obtenga su lista de posibles beneficios"},{title:"Aplique en los sitios web de cada agencia"}]},notices:{heading:"Antes de empezar:",iconAlt:"Importante",list:[{notice:"
    Esto no esuna aplicación.
    "},{notice:"Sus respuestas no serán guardadas o compartidas con ninguna agencia."},{notice:"
    Necesitará presentar una solicitud con cada agencia..
    "}]},button:"Encuentre sus beneficios"},Dp={stepBackButton:"Volver"},Ip={value:"requerido"},Fp={heading:{prefix:"Tu información contiene",suffix:"errores"},description:"Responda los campos requeridos."},Ap={prefix:"Complete",suffix:""},Bp=[{value:"Volver"},{value:"Siguiente"}],zp={heading:"Seleccione una opción:",buttonGroup:[{value:"Revise sus respuestas"},{value:"Obtenga sus resultados"}]},Up={heading:"Revisar y confirmar",noResultsLabel:"No respondió",buttonGroup:[{value:"Volver"},{value:"Confirmar"}]},Vp={summaryBox:{heading:"Importante",list:[{item:"Necesita ir al sitio web de cada agencia para confirmar su elegibilidad y aplicar."},{item:"Sus resultados podrían variar si sus respuestas cambian."}],cta:{text:"",link:"Borre sus respuestas y empiece el formulario de nuevo."}},eligible:{chevron:{heading:"Sus beneficios potenciales",description:"

    Visite la página de cada agencia para verificar los requisitos y aplicar. Para conocer otros beneficios, consulte a su ciudad, estado, o trabajo.

    "},heading:"Resultados",description:"Podría ser elegible para estos beneficios:"},notEligible:{chevron:{heading:"Beneficios a los que no calificó",description:"

    Según sus respuestas usted no es elegible para estos beneficios.

    "},heading:"Resultados",description:"Según sus respuestas no es elegible para estos beneficios. Podría calificar si tiene información adicional o si su situación cambia."},zeroBenefits:{backcta:{text:"",link:"Volver al inicio"},eligible:{chevron:{heading:"Usted parece no ser elegible para los beneficios en este buscador",description:"

    Si cree que cometió un error en sus respuestas, por favor regrese atrás para corregirlas.

    "}},notEligible:{chevron:{heading:"Beneficios a los que no calificó",description:"

    Según sus respuestas usted no es elegible para estos beneficios.

    "}},heading:"No tiene resultados elegibles.",description:"Según sus respuestas, usted no es elegible para los beneficios actualmente en este buscador. Usted podría ser elegible si su situación o respuestas cambian en el futuro. Consulte a su ciudad, estado o empleador para encontrar otros beneficios.",cta:"Ver los beneficios a los que no calificó"},stepBackButton:"Volver",eligibleResults:{heading:"Resultados",description:"Podría calificar para estos beneficios:"},benefitAccordionGroup:{closedState:"Abrir todos",openState:"Cerrar todos"},benefitAccordion:{eligibleStatusLabels:["Probablemente elegible","Más información requerida","No elegible"],agencyPrefix:"",benefitSummary:"Criterios de elegibilidad",benefitSummaryPrefix:"Cumple ",benefitSummaryConjunction:"de",unmetLabel:"No cumplió con",visitLabel:"Visite",sourceIsEnglish:"(en inglés)"},notEligibleResults:{heading:"Beneficios a los que no calificó",description:"
    Según sus respuestas, usted no es elegible para los siguientes beneficios. Podría calificar si ingresa más información o si su situación o respuestas cambian.
    ",cta:"Vea los beneficios a los no calificó"},relativeBenefits:{heading:"Más beneficios"},shareResults:{heading:"Imprima y comparta",shareTrigger:"Copie sus resultados en un enlace",emailTrigger:"Envie sus resultados por correo electrónico",shareLinkContent:"Copiado",emailSubject:"Resultados del buscador de beneficios de USAGov",description:"Copie o envíe sus resultados. Sus respuestas serán visibles. Solo comparta con quienes usted confíe."}},Hp={heading:"Comparta sus resultados",description:"Sus respuestas serán visibles. Solo comparta con quienes confíe.",buttonGroup:[{value:"Compartir resultados"},{value:"Enviar resultados"}]},Wp={start:"Por favor, responda las siguientes preguntas",continue:"Siguientes preguntas",final:"Últimas preguntas"},Kp={labelSelect:"Seleccione una opción",defaultValue:"-Seleccionar-",dateDefaultValue:"-Seleccionar-"},qp={alert:"Use el formato enero 19 2000",labelDay:"Día",labelMonth:"Mes",labelYear:"Año",monthOptions:[{label:"01 - Enero"},{label:"02 - Febrero"},{label:"03 - Marzo"},{label:"04 - Abril"},{label:"05 - Mayo"},{label:"06 - Junio"},{label:"07 - Julio"},{label:"08 - Agosto"},{label:"09 - Septiembre"},{label:"10 - Octubre"},{label:"11 - Noviembre"},{label:"12 - Diciembre"}]},Gg={intro:$p,stepIndicator:Dp,requiredLabel:Ip,alertBanner:Fp,errorText:Ap,buttonGroup:Bp,reviewSelectionModal:zp,verifySelectionsView:Up,resultsView:Vp,shareResults:Hp,sectionHeadings:Wp,select:Kp,date:qp},Qp=Object.freeze(Object.defineProperty({__proto__:null,alertBanner:Fp,buttonGroup:Bp,date:qp,default:Gg,errorText:Ap,intro:$p,requiredLabel:Ip,resultsView:Vp,reviewSelectionModal:zp,sectionHeadings:Wp,select:Kp,shareResults:Hp,stepIndicator:Dp,verifySelectionsView:Up},Symbol.toStringTag,{value:"Module"})),Nt=E.createContext({}),Yg=E.createContext({en:Mp,es:Qp});function Xg({testAppContent:e,testQuery:t}){const n="shared",r="draft",l=t||window.location.search,i=l.includes(n),o=l.includes(r),s=H.Language();rr();const[a,c]=E.useState(()=>(H.LifeEvent().then(S=>(S==null?void 0:S.status)===200?c(S.data):c(e)),e)),[p,d]=E.useState(),[m,y]=E.useState();E.useEffect(()=>{a&&y([...a.benefits]),a&&d([...a.lifeEventForm.sectionsEligibilityCriteria])},[a]);const[x]=E.useState(s==="es"?Qp:Mp);E.useEffect(()=>{i&&p&&Yr.DataFromParams(l,p,y,m,n)},[l,i,p]);const g=E.useMemo(()=>H.Routes(window,s,p),[p&&p.length]);return(g==null?void 0:g.formPaths)&&u.jsx(Nt.Provider,{value:g,children:u.jsxs(Yg.Provider,{value:x,children:[o===!0&&u.jsx(ha,{children:"Draft Mode"}),u.jsx("div",{id:a==null?void 0:a.lifeEventForm.id,className:"benefit-finder","data-testid":"app","data-version":vm,children:u.jsx(mm,{basename:`/${g.basePath}`,children:u.jsxs(fm,{children:[u.jsx(yr,{path:`/${g.indexPath}`,element:p&&u.jsx(pp,{content:a.lifeEventForm,ui:x.intro,stepDataArray:p,indexPath:`/${g.indexPath}/`,hasQueryParams:i})}),g.formPaths.map((S,f)=>u.jsx(yr,{path:`/${g.indexPath}/${S}`,element:u.jsx("div",{children:u.jsx(Kf,{children:u.jsx(hp,{data:p,handleData:d,ui:x})})})},f)),u.jsx(yr,{path:`/${g.indexPath}/${g.verifySelectionsPath}`,element:u.jsx(xp,{ui:x,data:p,indexPath:g.indexPath})}),Object.keys(g.resultsPaths).map((S,f)=>{var h;return u.jsx(yr,{path:`/${g.indexPath}/${g.resultsPaths[S]}`,element:u.jsx(wp,{stepDataArray:p,relevantBenefits:(h=a==null?void 0:a.lifeEventForm)==null?void 0:h.relevantBenefits,data:m,setBenefitsArray:()=>y(),ui:x.resultsView,notEligibleView:f!==0})},f)})]})})})]})})}const Jg=vo.createRoot(document.getElementById("benefit-finder"));Jg.render(u.jsx(vc.StrictMode,{children:u.jsx(Xg,{})}));