@openmrs/esm-patient-programs-app 12.3.5-pre.11739 → 12.3.5-pre.11742

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,4 +10,4 @@
10
10
  │ main.js
11
11
  
12
12
 
13
- Rspack compiled with 2 warnings in 29.50 s
13
+ Rspack compiled with 2 warnings in 28.85 s
package/dist/3906.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_patient_programs_app=globalThis.webpackChunk_openmrs_esm_patient_programs_app||[]).push([["3906"],{67119(e,n,t){t.d(n,{A:()=>l});var a=t(9372),i=t.n(a),o=t(40935),r=t.n(o)()(i());r.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-patient-programs__programs-form__loading___Udyd1{margin-left:1rem;width:2rem;min-height:2.5rem}.-esm-patient-programs__programs-form__button___\\+EibT{height:4rem;display:flex;align-content:flex-start;align-items:baseline;min-width:50%}.-esm-patient-programs__programs-form__button___\\+EibT .cds--inline-loading{min-height:1rem !important}.-esm-patient-programs__programs-form__button___\\+EibT .cds--inline-loading__text{font-size:var(--cds-body-01-font-size, 0.875rem);font-weight:var(--cds-body-01-font-weight, 400);line-height:var(--cds-body-01-line-height, 1.42857);letter-spacing:var(--cds-body-01-letter-spacing, 0.16px)}.-esm-patient-programs__programs-form__tablet___F8bMH{padding:1.5rem 1rem;background-color:#fff}.-esm-patient-programs__programs-form__desktop___Xlimz{padding:0}.-esm-patient-programs__programs-form__formContainer___0TBLb{margin:1rem}.-esm-patient-programs__programs-form__form___AHDMX{display:flex;flex-direction:column;justify-content:space-between;height:100%}.-esm-patient-programs__programs-form__notification___9QK0m{margin:0;min-width:100%;padding:0}.-esm-patient-programs__programs-form__programName___HaJr-{font-size:var(--cds-body-compact-02-font-size, 1rem);font-weight:var(--cds-body-compact-02-font-weight, 400);line-height:var(--cds-body-compact-02-line-height, 1.375);letter-spacing:var(--cds-body-compact-02-letter-spacing, 0)}.-esm-patient-programs__programs-form__locationLabel___dnoBK{margin-bottom:1rem}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/programs/programs-form.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCzDF,uDACE,gBC0BW,CDzBX,UCmCW,CDlCX,iBCuCW,CDpCb,uDACE,WC6CW,CD5CX,YAAA,CACA,wBAAA,CACA,oBAAA,CACA,aAAA,CAEA,4EACE,0BAAA,CAGF,kFE60BE,gDAAA,CAAA,+CAAA,CAAA,mDAAA,CAAA,wDAAA,CFx0BJ,sDACE,mBAAA,CACA,qBDzBM,CC4BR,uDACE,SAAA,CAGF,6DACE,WCLW,CDQb,oDACE,YAAA,CACA,qBAAA,CACA,6BAAA,CACA,WAAA,CAGF,4DACE,QAAA,CACA,cAAA,CACA,SAAA,CAGF,2DE8yBI,oDAAA,CAAA,uDAAA,CAAA,yDAAA,CAAA,2DAAA,CF1yBJ,6DACE,kBC1BW",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/type';\n@use '@carbon/layout';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.loading {\n margin-left: layout.$spacing-05;\n width: layout.$spacing-07;\n min-height: layout.$spacing-08;\n}\n\n.button {\n height: layout.$spacing-10;\n display: flex;\n align-content: flex-start;\n align-items: baseline;\n min-width: 50%;\n\n :global(.cds--inline-loading) {\n min-height: layout.$spacing-05 !important;\n }\n\n :global(.cds--inline-loading__text) {\n @include type.type-style('body-01');\n }\n}\n\n.tablet {\n padding: layout.$spacing-06 layout.$spacing-05;\n background-color: $ui-02;\n}\n\n.desktop {\n padding: 0;\n}\n\n.formContainer {\n margin: layout.$spacing-05;\n}\n\n.form {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n height: 100%;\n}\n\n.notification {\n margin: 0;\n min-width: 100%;\n padding: 0;\n}\n\n.programName {\n @include type.type-style('body-compact-02');\n}\n\n.locationLabel {\n margin-bottom: layout.$spacing-05;\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n","//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO: move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n"],sourceRoot:""}]),r.locals={loading:"-esm-patient-programs__programs-form__loading___Udyd1",button:"-esm-patient-programs__programs-form__button___+EibT",tablet:"-esm-patient-programs__programs-form__tablet___F8bMH",desktop:"-esm-patient-programs__programs-form__desktop___Xlimz",formContainer:"-esm-patient-programs__programs-form__formContainer___0TBLb",form:"-esm-patient-programs__programs-form__form___AHDMX",notification:"-esm-patient-programs__programs-form__notification___9QK0m",programName:"-esm-patient-programs__programs-form__programName___HaJr-",locationLabel:"-esm-patient-programs__programs-form__locationLabel___dnoBK"};let l=r},19961(e,n,t){t.r(n),t.d(n,{default:()=>N});var a=t(35399),i=t.n(a),o=t(53373),r=t.n(o),l=t(27807),s=t(80222),p=t.n(s),c=t(20261),u=t(46195),d=t(80824),g=t(84049),f=t(92293),m=t(7905),h=t(72591),y=t.n(h),b=t(1740),$=t.n(b),v=t(88128),w=t.n(v),k=t(30855),x=t.n(k),A=t(93051),_=t.n(A),z=t(73656),C=t.n(z),M=t(67119),E={};E.styleTagTransform=C(),E.setAttributes=x(),E.insert=w().bind(null,"head"),E.domAPI=$(),E.insertStyleElement=_(),y()(M.A,E);let D=M.A&&M.A.locals?M.A.locals:void 0;function T(e,n,t,a,i,o,r){try{var l=e[o](r),s=l.value}catch(e){t(e);return}l.done?n(s):Promise.resolve(s).then(a,i)}function P(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.forEach(function(n){var a;a=t[n],n in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a})}return e}function S(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):(function(e){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n.push.apply(n,t)}return n})(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}let N=function(e){var n,t,o,s,h,y,b,$,v=e.closeWorkspace,w=e.groupProps.patientUuid,k=e.workspaceProps.programEnrollmentId,x=(0,l.useTranslation)().t,A="tablet"===(0,f.useLayoutType)(),_=(0,f.useSession)(),z=(0,m.UA)().data,C=(0,m.j1)(w),M=C.data,E=C.mutateEnrollments,N=(0,f.useConfig)().showProgramStatusField,O=(0,a.useMemo)(function(){return u.z.object({selectedProgram:u.z.string().refine(function(e){return!!e},x("programRequired","Program is required")),enrollmentDate:u.z.date(),completionDate:u.z.date().optional().nullable(),enrollmentLocation:u.z.string(),selectedProgramStatus:u.z.string()})},[x]),B=k&&M.filter(function(e){return e.uuid===k})[0],I=B?P({display:B.program.name},B.program):null,W=I?[I]:z.filter(function(e){var n=M.find(function(n){return n.program.uuid===e.uuid});return!n||null!==n.dateCompleted}),j=B?(0,m.Vh)(B.states):null,L=(0,d.mN)({mode:"all",resolver:(0,g.u)(O),defaultValues:{selectedProgram:null!=(y=null==B?void 0:B.program.uuid)?y:"",enrollmentDate:(null==B?void 0:B.dateEnrolled)?(0,f.parseDate)(B.dateEnrolled):new Date,completionDate:(null==B?void 0:B.dateCompleted)?(0,f.parseDate)(B.dateCompleted):null,enrollmentLocation:null!=(b=!(null==B||null==(t=B.location)?void 0:t.uuid)&&(null==_||null==(o=_.sessionLocation)?void 0:o.uuid)?null==_||null==(h=_.sessionLocation)?void 0:h.uuid:null!=(n=null==B||null==(s=B.location)?void 0:s.uuid)?n:null)?b:"",selectedProgramStatus:null!=($=null==j?void 0:j.state.uuid)?$:""}}),q=L.control,F=L.handleSubmit,U=L.watch,G=L.formState,H=G.errors,X=G.isDirty,V=G.isSubmitting,J=(0,d.FH)({control:q,name:"selectedProgram"}),R=(0,a.useCallback)(function(e){var n;return(n=function(){var n,t,a,i,o,r,l,s;return function(e,n){var t,a,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},r=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(r,"next",{value:s(0)}),l(r,"throw",{value:s(1)}),l(r,"return",{value:s(2)}),"function"==typeof Symbol&&l(r,Symbol.iterator,{value:function(){return this}}),r;function s(l){return function(s){var p=[l,s];if(t)throw TypeError("Generator is already executing.");for(;r&&(r=0,p[0]&&(o=0)),o;)try{if(t=1,a&&(i=2&p[0]?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[2&p[0],i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===p[0]||2===p[0])){o=0;continue}if(3===p[0]&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(6===p[0]&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=n.call(e,o)}catch(e){p=[6,e],a=0}finally{t=i=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}}}(this,function(c){switch(c.label){case 0:n=e.selectedProgram,t=e.enrollmentDate,a=e.completionDate,i=e.enrollmentLocation,o=e.selectedProgramStatus,r={patient:w,program:n,dateEnrolled:t?p()(t).format():null,dateCompleted:a?p()(a).format():null,location:i,states:o&&o!=(null==j?void 0:j.state.uuid)?[{state:{uuid:o}}]:[]},c.label=1;case 1:if(c.trys.push([1,7,,8]),l=new AbortController,!B)return[3,3];return[4,(0,m.Gy)(B.uuid,r,l)];case 2:return c.sent(),[3,5];case 3:return[4,(0,m.lP)(r,l)];case 4:c.sent(),c.label=5;case 5:return[4,E()];case 6:return c.sent(),v({discardUnsavedChanges:!0}),(0,f.showSnackbar)({kind:"success",title:B?x("enrollmentUpdated","Program enrollment updated"):x("enrollmentSaved","Program enrollment saved"),subtitle:B?x("enrollmentUpdatesNowVisible","Changes to the program are now visible in the Programs table"):x("enrollmentNowVisible","It is now visible in the Programs table")}),[3,8];case 7:var u;return s=c.sent(),(0,f.showSnackbar)({kind:"error",title:x("programEnrollmentSaveError","Error saving program enrollment"),subtitle:(null!=(u=Error)&&"u">typeof Symbol&&u[Symbol.hasInstance]?!!u[Symbol.hasInstance](s):s instanceof u)?s.message:"An unknown error occurred"}),[3,8];case 8:return[2]}})},function(){var e=this,t=arguments;return new Promise(function(a,i){var o=n.apply(e,t);function r(e){T(o,a,i,r,l,"next",e)}function l(e){T(o,a,i,r,l,"throw",e)}r(void 0)})})()},[v,B,j,E,w,x]),K=i().createElement(c.gE_,{legendText:x("programName","Program name")},i().createElement(c.lRv,{className:D.programName},null==I?void 0:I.display)),Q=i().createElement(d.xI,{name:"selectedProgram",control:q,render:function(e){var n,t=e.field,a=t.onChange,o=t.value;return i().createElement(c.l6P,{"aria-label":"program name",id:"program",invalid:!!(null==H?void 0:H.selectedProgram),invalidText:null==H||null==(n=H.selectedProgram)?void 0:n.message,labelText:x("programName","Program name"),onChange:function(e){return a(e.target.value)},value:o},i().createElement(c.ebT,{text:x("chooseProgram","Choose a program"),value:""}),(null==W?void 0:W.length)>0&&W.map(function(e){return i().createElement(c.ebT,{key:e.uuid,text:e.display,value:e.uuid},e.display)}))}}),Y=i().createElement(d.xI,{name:"enrollmentDate",control:q,render:function(e){var n,t,a,o=e.field,r=e.fieldState;return i().createElement(f.OpenmrsDatePicker,S(P({},o),{id:"enrollmentDate","data-testid":"enrollmentDate",maxDate:(n=U("completionDate"))?p()(n).subtract(1,"day").toDate():new Date,labelText:x("dateEnrolled","Date enrolled"),invalid:!!(null==r||null==(t=r.error)?void 0:t.message),invalidText:null==r||null==(a=r.error)?void 0:a.message}))}}),Z=i().createElement(d.xI,{name:"completionDate",control:q,render:function(e){var n,t,a=e.field,o=e.fieldState;return i().createElement(f.OpenmrsDatePicker,S(P({},a),{id:"completionDate","data-testid":"completionDate",minDate:p()(U("enrollmentDate")).add(1,"day").toDate(),maxDate:new Date,isDisabled:p()(U("enrollmentDate")).isSame(p()(),"day"),labelText:x("dateCompleted","Date completed"),invalid:!!(null==o||null==(n=o.error)?void 0:n.message),invalidText:null==o||null==(t=o.error)?void 0:t.message}))}}),ee=i().createElement(d.xI,{name:"enrollmentLocation",control:q,render:function(e){var n,t=e.field,a=t.onChange,o=t.value;return i().createElement(i().Fragment,null,i().createElement(c.lRv,{className:"".concat(D.locationLabel," cds--label")},x("enrollmentLocation","Enrollment location")),i().createElement(f.LocationPicker,{selectedLocationUuid:o,defaultLocationUuid:null==_||null==(n=_.sessionLocation)?void 0:n.uuid,locationTag:"Login Location",onChange:function(e){return a(e)}}))}}),en=[];if(!I&&J){var et=W.find(function(e){return e.uuid===J});(null==et?void 0:et.allWorkflows.length)>0&&(en=et.allWorkflows[0].states)}else(null==I?void 0:I.allWorkflows.length)>0&&(en=I.allWorkflows[0].states);var ea=i().createElement(d.xI,{name:"selectedProgramStatus",control:q,render:function(e){var n,t=e.field,a=t.onChange,o=t.value;return i().createElement(c.l6P,{"aria-label":x("programStatus","Program status"),id:"programStatus",invalid:!!(null==H?void 0:H.selectedProgramStatus),invalidText:null==H||null==(n=H.selectedProgramStatus)?void 0:n.message,labelText:x("programStatus","Program status"),onChange:function(e){return a(e.target.value)},value:o},i().createElement(c.ebT,{text:x("chooseStatus","Choose a program status"),value:""}),en.map(function(e){return i().createElement(c.ebT,{key:e.uuid,text:e.concept.display,value:e.uuid},e.concept.display)}))}}),ei=[k?{style:{maxWidth:A&&"50%"},legendText:"",value:K}:{style:{maxWidth:A&&"50%"},legendText:"",value:Q},{style:{maxWidth:"50%"},legendText:"",value:Y},{style:{width:"50%"},legendText:"",value:Z},{style:{width:"100%"},legendText:"",value:ee}];return N&&ei.push({style:{width:"50%"},legendText:"",value:ea}),i().createElement(f.Workspace2,{title:x("programEnrollmentWorkspaceTitle","Program enrollment"),hasUnsavedChanges:X},i().createElement(c.lVW,{className:D.form,onSubmit:F(R)},i().createElement(c.BJc,{className:D.formContainer,gap:7},!z.length&&i().createElement(c.jeF,{className:D.notification,kind:"error",lowContrast:!0,subtitle:x("configurePrograms","Please configure programs to continue."),title:x("noProgramsConfigured","No programs configured")}),ei.map(function(e,n){return i().createElement(c.gE_,{style:e.style,legendText:e.legendText,key:n},i().createElement("div",{className:D.selectContainer},A?i().createElement(c.Wdr,null,e.value):e.value))})),i().createElement(c.Te$,{className:r()(A?D.tablet:D.desktop)},i().createElement(c.$nd,{className:D.button,kind:"secondary",onClick:function(){return v()}},(0,f.getCoreTranslation)("cancel")),i().createElement(c.$nd,{className:D.button,disabled:V,kind:"primary",type:"submit"},V?i().createElement(c.OuH,{description:x("saving","Saving")+"..."}):i().createElement("span",null,x("saveAndClose","Save and close"))))))}}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_patient_programs_app=globalThis.webpackChunk_openmrs_esm_patient_programs_app||[]).push([["3906"],{67119(e,n,t){t.d(n,{A:()=>l});var a=t(9372),i=t.n(a),o=t(40935),r=t.n(o)()(i());r.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-patient-programs__programs-form__loading___Udyd1{margin-left:1rem;width:2rem;min-height:2.5rem}.-esm-patient-programs__programs-form__button___\\+EibT{height:4rem;display:flex;align-content:flex-start;align-items:baseline;min-width:50%}.-esm-patient-programs__programs-form__button___\\+EibT .cds--inline-loading{min-height:1rem !important}.-esm-patient-programs__programs-form__button___\\+EibT .cds--inline-loading__text{font-size:var(--cds-body-01-font-size, 0.875rem);font-weight:var(--cds-body-01-font-weight, 400);line-height:var(--cds-body-01-line-height, 1.42857);letter-spacing:var(--cds-body-01-letter-spacing, 0.16px)}.-esm-patient-programs__programs-form__tablet___F8bMH{padding:1.5rem 1rem;background-color:#fff}.-esm-patient-programs__programs-form__desktop___Xlimz{padding:0}.-esm-patient-programs__programs-form__formContainer___0TBLb{margin:1rem}.-esm-patient-programs__programs-form__form___AHDMX{display:flex;flex-direction:column;justify-content:space-between;height:100%}.-esm-patient-programs__programs-form__notification___9QK0m{margin:0;min-width:100%;padding:0}.-esm-patient-programs__programs-form__programName___HaJr-{font-size:var(--cds-body-compact-02-font-size, 1rem);font-weight:var(--cds-body-compact-02-font-weight, 400);line-height:var(--cds-body-compact-02-line-height, 1.375);letter-spacing:var(--cds-body-compact-02-letter-spacing, 0)}.-esm-patient-programs__programs-form__locationLabel___dnoBK{margin-bottom:1rem}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/programs/programs-form.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCzDF,uDACE,gBC0BW,CDzBX,UCmCW,CDlCX,iBCuCW,CDpCb,uDACE,WC6CW,CD5CX,YAAA,CACA,wBAAA,CACA,oBAAA,CACA,aAAA,CAEA,4EACE,0BAAA,CAGF,kFE60BE,gDAAA,CAAA,+CAAA,CAAA,mDAAA,CAAA,wDAAA,CFx0BJ,sDACE,mBAAA,CACA,qBDzBM,CC4BR,uDACE,SAAA,CAGF,6DACE,WCLW,CDQb,oDACE,YAAA,CACA,qBAAA,CACA,6BAAA,CACA,WAAA,CAGF,4DACE,QAAA,CACA,cAAA,CACA,SAAA,CAGF,2DE8yBI,oDAAA,CAAA,uDAAA,CAAA,yDAAA,CAAA,2DAAA,CF1yBJ,6DACE,kBC1BW",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/type';\n@use '@carbon/layout';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.loading {\n margin-left: layout.$spacing-05;\n width: layout.$spacing-07;\n min-height: layout.$spacing-08;\n}\n\n.button {\n height: layout.$spacing-10;\n display: flex;\n align-content: flex-start;\n align-items: baseline;\n min-width: 50%;\n\n :global(.cds--inline-loading) {\n min-height: layout.$spacing-05 !important;\n }\n\n :global(.cds--inline-loading__text) {\n @include type.type-style('body-01');\n }\n}\n\n.tablet {\n padding: layout.$spacing-06 layout.$spacing-05;\n background-color: $ui-02;\n}\n\n.desktop {\n padding: 0;\n}\n\n.formContainer {\n margin: layout.$spacing-05;\n}\n\n.form {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n height: 100%;\n}\n\n.notification {\n margin: 0;\n min-width: 100%;\n padding: 0;\n}\n\n.programName {\n @include type.type-style('body-compact-02');\n}\n\n.locationLabel {\n margin-bottom: layout.$spacing-05;\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n","//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO: move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n"],sourceRoot:""}]),r.locals={loading:"-esm-patient-programs__programs-form__loading___Udyd1",button:"-esm-patient-programs__programs-form__button___+EibT",tablet:"-esm-patient-programs__programs-form__tablet___F8bMH",desktop:"-esm-patient-programs__programs-form__desktop___Xlimz",formContainer:"-esm-patient-programs__programs-form__formContainer___0TBLb",form:"-esm-patient-programs__programs-form__form___AHDMX",notification:"-esm-patient-programs__programs-form__notification___9QK0m",programName:"-esm-patient-programs__programs-form__programName___HaJr-",locationLabel:"-esm-patient-programs__programs-form__locationLabel___dnoBK"};let l=r},19961(e,n,t){t.r(n),t.d(n,{default:()=>N});var a=t(35399),i=t.n(a),o=t(53373),r=t.n(o),l=t(27807),s=t(80222),p=t.n(s),c=t(20261),u=t(46195),d=t(80824),g=t(84049),f=t(92293),m=t(7905),h=t(72591),y=t.n(h),b=t(1740),$=t.n(b),v=t(88128),w=t.n(v),k=t(30855),x=t.n(k),A=t(93051),_=t.n(A),z=t(73656),C=t.n(z),M=t(67119),E={};E.styleTagTransform=C(),E.setAttributes=x(),E.insert=w().bind(null,"head"),E.domAPI=$(),E.insertStyleElement=_(),y()(M.A,E);let D=M.A&&M.A.locals?M.A.locals:void 0;function T(e,n,t,a,i,o,r){try{var l=e[o](r),s=l.value}catch(e){t(e);return}l.done?n(s):Promise.resolve(s).then(a,i)}function P(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.forEach(function(n){var a;a=t[n],n in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a})}return e}function S(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):(function(e){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n.push.apply(n,t)}return n})(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}let N=function(e){var n,t,o,s,h,y,b,$,v=e.closeWorkspace,w=e.groupProps.patientUuid,k=e.workspaceProps.programEnrollmentId,x=(0,l.useTranslation)().t,A="tablet"===(0,f.useLayoutType)(),_=(0,f.useSession)(),z=(0,m.UA)().data,C=(0,m.j1)(w),M=C.data,E=C.mutateEnrollments,N=(0,f.useConfig)().showProgramStatusField,B=(0,a.useMemo)(function(){return u.z.object({selectedProgram:u.z.string().refine(function(e){return!!e},x("programRequired","Program is required")),enrollmentDate:u.z.date(),completionDate:u.z.date().optional().nullable(),enrollmentLocation:u.z.string(),selectedProgramStatus:u.z.string()}).superRefine(function(e,n){e.completionDate&&e.enrollmentDate&&p()(e.completionDate).isBefore(e.enrollmentDate,"day")&&n.addIssue({code:u.z.ZodIssueCode.custom,message:x("completionDateCannotBeBeforeEnrollmentDate","Completion date cannot be before the enrollment date"),path:["completionDate"]})})},[x]),O=k&&M.filter(function(e){return e.uuid===k})[0],I=O?P({display:O.program.name},O.program):null,W=I?[I]:z.filter(function(e){var n=M.find(function(n){return n.program.uuid===e.uuid});return!n||null!==n.dateCompleted}),j=O?(0,m.Vh)(O.states):null,L=(0,d.mN)({mode:"all",resolver:(0,g.u)(B),defaultValues:{selectedProgram:null!=(y=null==O?void 0:O.program.uuid)?y:"",enrollmentDate:(null==O?void 0:O.dateEnrolled)?(0,f.parseDate)(O.dateEnrolled):new Date,completionDate:(null==O?void 0:O.dateCompleted)?(0,f.parseDate)(O.dateCompleted):null,enrollmentLocation:null!=(b=!(null==O||null==(t=O.location)?void 0:t.uuid)&&(null==_||null==(o=_.sessionLocation)?void 0:o.uuid)?null==_||null==(h=_.sessionLocation)?void 0:h.uuid:null!=(n=null==O||null==(s=O.location)?void 0:s.uuid)?n:null)?b:"",selectedProgramStatus:null!=($=null==j?void 0:j.state.uuid)?$:""}}),q=L.control,F=L.handleSubmit,U=L.watch,G=L.formState,H=G.errors,X=G.isDirty,R=G.isSubmitting,V=(0,d.FH)({control:q,name:"selectedProgram"}),J=(0,a.useCallback)(function(e){var n;return(n=function(){var n,t,a,i,o,r,l,s;return function(e,n){var t,a,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},r=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(r,"next",{value:s(0)}),l(r,"throw",{value:s(1)}),l(r,"return",{value:s(2)}),"function"==typeof Symbol&&l(r,Symbol.iterator,{value:function(){return this}}),r;function s(l){return function(s){var p=[l,s];if(t)throw TypeError("Generator is already executing.");for(;r&&(r=0,p[0]&&(o=0)),o;)try{if(t=1,a&&(i=2&p[0]?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[2&p[0],i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===p[0]||2===p[0])){o=0;continue}if(3===p[0]&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(6===p[0]&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=n.call(e,o)}catch(e){p=[6,e],a=0}finally{t=i=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}}}(this,function(c){switch(c.label){case 0:n=e.selectedProgram,t=e.enrollmentDate,a=e.completionDate,i=e.enrollmentLocation,o=e.selectedProgramStatus,r={patient:w,program:n,dateEnrolled:t?p()(t).format():null,dateCompleted:a?p()(a).isSame(t,"day")&&p()(a).isBefore(t)?p()(t).format():p()(a).format():null,location:i,states:o&&o!=(null==j?void 0:j.state.uuid)?[{state:{uuid:o}}]:[]},c.label=1;case 1:if(c.trys.push([1,7,,8]),l=new AbortController,!O)return[3,3];return[4,(0,m.Gy)(O.uuid,r,l)];case 2:return c.sent(),[3,5];case 3:return[4,(0,m.lP)(r,l)];case 4:c.sent(),c.label=5;case 5:return[4,E()];case 6:return c.sent(),v({discardUnsavedChanges:!0}),(0,f.showSnackbar)({kind:"success",title:O?x("enrollmentUpdated","Program enrollment updated"):x("enrollmentSaved","Program enrollment saved"),subtitle:O?x("enrollmentUpdatesNowVisible","Changes to the program are now visible in the Programs table"):x("enrollmentNowVisible","It is now visible in the Programs table")}),[3,8];case 7:var u;return s=c.sent(),(0,f.showSnackbar)({kind:"error",title:x("programEnrollmentSaveError","Error saving program enrollment"),subtitle:(null!=(u=Error)&&"u">typeof Symbol&&u[Symbol.hasInstance]?!!u[Symbol.hasInstance](s):s instanceof u)?s.message:"An unknown error occurred"}),[3,8];case 8:return[2]}})},function(){var e=this,t=arguments;return new Promise(function(a,i){var o=n.apply(e,t);function r(e){T(o,a,i,r,l,"next",e)}function l(e){T(o,a,i,r,l,"throw",e)}r(void 0)})})()},[v,O,j,E,w,x]),K=i().createElement(c.gE_,{legendText:x("programName","Program name")},i().createElement(c.lRv,{className:D.programName},null==I?void 0:I.display)),Q=i().createElement(d.xI,{name:"selectedProgram",control:q,render:function(e){var n,t=e.field,a=t.onChange,o=t.value;return i().createElement(c.l6P,{"aria-label":"program name",id:"program",invalid:!!(null==H?void 0:H.selectedProgram),invalidText:null==H||null==(n=H.selectedProgram)?void 0:n.message,labelText:x("programName","Program name"),onChange:function(e){return a(e.target.value)},value:o},i().createElement(c.ebT,{text:x("chooseProgram","Choose a program"),value:""}),(null==W?void 0:W.length)>0&&W.map(function(e){return i().createElement(c.ebT,{key:e.uuid,text:e.display,value:e.uuid},e.display)}))}}),Y=i().createElement(d.xI,{name:"enrollmentDate",control:q,render:function(e){var n,t,a,o=e.field,r=e.fieldState;return i().createElement(f.OpenmrsDatePicker,S(P({},o),{id:"enrollmentDate","data-testid":"enrollmentDate",maxDate:(n=U("completionDate"))?p()(n).toDate():new Date,labelText:x("dateEnrolled","Date enrolled"),invalid:!!(null==r||null==(t=r.error)?void 0:t.message),invalidText:null==r||null==(a=r.error)?void 0:a.message}))}}),Z=i().createElement(d.xI,{name:"completionDate",control:q,render:function(e){var n,t,a=e.field,o=e.fieldState;return i().createElement(f.OpenmrsDatePicker,S(P({},a),{id:"completionDate","data-testid":"completionDate",minDate:p()(U("enrollmentDate")).toDate(),maxDate:new Date,labelText:x("dateCompleted","Date completed"),invalid:!!(null==o||null==(n=o.error)?void 0:n.message),invalidText:null==o||null==(t=o.error)?void 0:t.message}))}}),ee=i().createElement(d.xI,{name:"enrollmentLocation",control:q,render:function(e){var n,t=e.field,a=t.onChange,o=t.value;return i().createElement(i().Fragment,null,i().createElement(c.lRv,{className:"".concat(D.locationLabel," cds--label")},x("enrollmentLocation","Enrollment location")),i().createElement(f.LocationPicker,{selectedLocationUuid:o,defaultLocationUuid:null==_||null==(n=_.sessionLocation)?void 0:n.uuid,locationTag:"Login Location",onChange:function(e){return a(e)}}))}}),en=[];if(!I&&V){var et=W.find(function(e){return e.uuid===V});(null==et?void 0:et.allWorkflows.length)>0&&(en=et.allWorkflows[0].states)}else(null==I?void 0:I.allWorkflows.length)>0&&(en=I.allWorkflows[0].states);var ea=i().createElement(d.xI,{name:"selectedProgramStatus",control:q,render:function(e){var n,t=e.field,a=t.onChange,o=t.value;return i().createElement(c.l6P,{"aria-label":x("programStatus","Program status"),id:"programStatus",invalid:!!(null==H?void 0:H.selectedProgramStatus),invalidText:null==H||null==(n=H.selectedProgramStatus)?void 0:n.message,labelText:x("programStatus","Program status"),onChange:function(e){return a(e.target.value)},value:o},i().createElement(c.ebT,{text:x("chooseStatus","Choose a program status"),value:""}),en.map(function(e){return i().createElement(c.ebT,{key:e.uuid,text:e.concept.display,value:e.uuid},e.concept.display)}))}}),ei=[k?{style:{maxWidth:A&&"50%"},legendText:"",value:K}:{style:{maxWidth:A&&"50%"},legendText:"",value:Q},{style:{maxWidth:"50%"},legendText:"",value:Y},{style:{width:"50%"},legendText:"",value:Z},{style:{width:"100%"},legendText:"",value:ee}];return N&&ei.push({style:{width:"50%"},legendText:"",value:ea}),i().createElement(f.Workspace2,{title:x("programEnrollmentWorkspaceTitle","Program enrollment"),hasUnsavedChanges:X},i().createElement(c.lVW,{className:D.form,onSubmit:F(J)},i().createElement(c.BJc,{className:D.formContainer,gap:7},!z.length&&i().createElement(c.jeF,{className:D.notification,kind:"error",lowContrast:!0,subtitle:x("configurePrograms","Please configure programs to continue."),title:x("noProgramsConfigured","No programs configured")}),ei.map(function(e,n){return i().createElement(c.gE_,{style:e.style,legendText:e.legendText,key:n},i().createElement("div",{className:D.selectContainer},A?i().createElement(c.Wdr,null,e.value):e.value))})),i().createElement(c.Te$,{className:r()(A?D.tablet:D.desktop)},i().createElement(c.$nd,{className:D.button,kind:"secondary",onClick:function(){return v()}},(0,f.getCoreTranslation)("cancel")),i().createElement(c.$nd,{className:D.button,disabled:R,kind:"primary",type:"submit"},R?i().createElement(c.OuH,{description:x("saving","Saving")+"..."}):i().createElement("span",null,x("saveAndClose","Save and close"))))))}}}]);
package/dist/3906.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"3906.js","sources":["webpack://@openmrs/esm-patient-programs-app/./src/programs/programs-form.scss","webpack://@openmrs/esm-patient-programs-app/./src/programs/programs-form.scss?390c","webpack://@openmrs/esm-patient-programs-app/./src/programs/programs-form.workspace.tsx"],"names":["_currentEnrollment_location","_session_sessionLocation","_currentEnrollment_location1","_session_sessionLocation1","_getLocationUuid","closeWorkspace","patientUuid","programEnrollmentId","t","useTranslation","isTablet","useLayoutType","session","useSession","availablePrograms","_useAvailablePrograms","_useEnrollments","enrollments","mutateEnrollments","showProgramStatusField","useConfig","programsFormSchema","useMemo","z","value","currentEnrollment","e","currentProgram","eligiblePrograms","program","enrollment","currentState","findLastState","_useForm","zodResolver","parseDate","Date","control","handleSubmit","watch","errors","isDirty","isSubmitting","selectedProgram","useWatch","onSubmit","useCallback","data","enrollmentDate","completionDate","enrollmentLocation","selectedProgramStatus","payload","abortController","error","dayjs","AbortController","updateProgramEnrollment","createProgramEnrollment","showSnackbar","_instanceof","Error","programName","FormGroup","FormLabel","styles","programSelect","Controller","render","_errors_selectedProgram","onChange","Select","onChange1","event","SelectItem","_fieldState_error","_fieldState_error1","field","fieldState","OpenmrsDatePicker","Boolean","React","LocationPicker","locationUuid","workflowStates","p","programStatusDropdown","_errors_selectedProgramStatus","state","formGroups","inEditMode","Workspace2","Form","Stack","InlineNotification","group","i","Layer","ButtonSet","classNames","Button","onClick","getCoreTranslation","InlineLoading"],"mappings":"qNAGI,EAA0B,A,SAA4B,KAE1D,EAAwB,IAAI,CAAC,CAAC,EAAO,EAAE,CAAE,kwDAAmwD,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,8CAA8C,6EAA6E,gEAAgE,CAAC,MAAQ,EAAE,CAAC,SAAW,+dAA+d,eAAiB,CAAC,g/DAAg/D,ogCAAogC,05DAA05D,w8uBAAw8uB,CAAC,WAAa,EAAE,EAAE,EAE179B,EAAwB,MAAM,CAAG,CAChC,QAAW,wDACX,OAAU,uDACV,OAAU,uDACV,QAAW,wDACX,cAAiB,8DACjB,KAAQ,qDACR,aAAgB,6DAChB,YAAe,4DACf,cAAiB,6DAClB,EACA,MAAe,C,2TCPX,EAAU,CAAC,CAEf,GAAQ,iBAAiB,CAAG,IAC5B,EAAQ,aAAa,CAAG,IAElB,EAAQ,MAAM,CAAG,QAAa,CAAC,KAAM,QAE3C,EAAQ,MAAM,CAAG,IACjB,EAAQ,kBAAkB,CAAG,IAEhB,IAAI,GAAO,CAAE,GAKnB,MAAe,GAAO,EAAI,UAAc,CAAG,UAAc,CAAG,O,q4BCiVnE,MAjTwF,Y,MA+B/EA,EAAqCC,EAGnCC,EAFEC,E,EAmBaC,EAAAA,EAlDxBC,EAAAA,EAAAA,cAAc,CACAC,EAAAA,EAAd,UAAU,CAAIA,WAAW,CACPC,EAAAA,EAAlB,cAAc,CAAIA,mBAAmB,CAE7BC,EAAMC,AAAAA,GAAAA,EAAAA,cAAAA,AAAAA,IAAND,CAAC,CACHE,EAAWC,AAAoB,WAApBA,AAAAA,GAAAA,EAAAA,aAAAA,AAAAA,IACXC,EAAUC,AAAAA,GAAAA,EAAAA,UAAAA,AAAAA,IACFC,EAAsBC,AAAAA,AAAAA,GAAAA,EAAAA,EAAAA,AAAAA,IAA5B,IAAI,CACqCC,EAAAA,AAAAA,GAAAA,EAAAA,EAAAA,AAAAA,EAAeV,GAAlDW,EAAmCD,EAAzC,IAAI,CAAeE,EAAsBF,EAAtBE,iBAAiB,CACpCC,EAA2BC,AAAAA,GAAAA,EAAAA,SAAAA,AAAAA,IAA3BD,sBAAsB,CAGxBE,EAAqBC,AAAAA,GAAAA,EAAAA,OAAAA,AAAAA,EAAQ,W,OAvBnCC,EAAAA,CAAAA,CAAAA,MAAQ,CAAC,CACP,gBAAiBA,EAAAA,CAAAA,CAAAA,MAAQ,GAAG,MAAM,CAAC,SAACC,CAAK,E,MAAK,CAAC,CAACA,C,EAAOhB,AAsBSA,EAtBP,kBAAmB,wBAC5E,eAAgBe,EAAAA,CAAAA,CAAAA,IAAM,GACtB,eAAgBA,EAAAA,CAAAA,CAAAA,IAAM,GAAG,QAAQ,GAAG,QAAQ,GAC5C,mBAAoBA,EAAAA,CAAAA,CAAAA,MAAQ,GAC5B,sBAAuBA,EAAAA,CAAAA,CAAAA,MAAQ,EACjC,E,EAiBsE,CAACf,EAAE,EAEnEiB,EAAoBlB,GAAuBU,EAAY,MAAM,CAAC,SAACS,CAAC,E,OAAKA,EAAE,IAAI,GAAKnB,C,EAAoB,CAAC,EAAE,CACvGoB,EAAiBF,EACnB,GACE,QAASA,EAAkB,OAAO,CAAC,IAAI,A,EACpCA,EAAkB,OAAO,EAE9B,KAEEG,EAAmBD,EACrB,CAACA,EAAe,CAChBb,EAAkB,MAAM,CAAC,SAACe,CAAO,EAC/B,IAAMC,EAAab,EAAY,IAAI,CAAC,SAACS,CAAC,E,OAAKA,EAAE,OAAO,CAAC,IAAI,GAAKG,EAAQ,IAAI,A,GAC1E,MAAO,CAACC,GAAcA,AAA6B,OAA7BA,EAAW,aAAa,AAChD,GASEC,EAAeN,EAAoBO,AAAAA,GAAAA,EAAAA,EAAAA,AAAAA,EAAcP,EAAkB,MAAM,EAAI,KAO/EQ,EAAAA,AAAAA,GAAAA,EAAAA,EAAAA,AAAAA,EAA0B,CAC5B,KAAM,MACN,SAAUC,AAAAA,GAAAA,EAAAA,CAAAA,AAAAA,EAAYb,GACtB,cAAe,CACb,gBAAiB,MAAF,GAAEI,MAAAA,EAAAA,KAAAA,EAAAA,EAAmB,OAAO,CAAC,IAAI,AAAD,EAAC,EAAI,GACpD,eAAgBA,AAAAA,CAAAA,MAAAA,EAAAA,KAAAA,EAAAA,EAAmB,YAAY,AAAD,EAAIU,AAAAA,GAAAA,EAAAA,SAAAA,AAAAA,EAAUV,EAAkB,YAAY,EAAI,IAAIW,KAClG,eAAgBX,AAAAA,CAAAA,MAAAA,EAAAA,KAAAA,EAAAA,EAAmB,aAAa,AAAD,EAAIU,AAAAA,GAAAA,EAAAA,SAAAA,AAAAA,EAAUV,EAAkB,aAAa,EAAI,KAChG,mBAAoB,MAAArB,CAAAA,EApBtB,AAAI,QAACJ,GAAAA,MAAAA,CAAAA,EAAAA,EAAmB,QAAQ,AAAD,EAA1BA,KAAAA,EAAAA,EAA6B,IAAI,UAAIC,GAAAA,MAAAA,CAAAA,EAAAA,EAAS,eAAe,AAAD,EAAvBA,KAAAA,EAAAA,EAA0B,IAAI,QAC/DE,GAAAA,MAAAA,CAAAA,EAAAA,EAAS,eAAe,AAAD,EAAvBA,KAAAA,EAAAA,EAA0B,IAAI,CAEhC,MAAP,SAAOD,GAAAA,MAAAA,CAAAA,EAAAA,EAAmB,QAAQ,AAAD,EAA1BA,KAAAA,EAAAA,EAA6B,IAAI,AAAD,EAAC,EAAI,IAiBN,EAAhBE,EAAqB,GACzC,sBAAuB,MAAF,GAAE2B,MAAAA,EAAAA,KAAAA,EAAAA,EAAc,KAAK,CAAC,IAAI,AAAD,EAAC,EAAI,EACrD,CACF,GAdEM,EAIEJ,EAJFI,OAAO,CACPC,EAGEL,EAHFK,YAAY,CACZC,EAEEN,EAFFM,KAAK,CAALA,EAEEN,EADF,SAAS,CAAIO,EAAAA,EAAAA,MAAM,CAAEC,EAAAA,EAAAA,OAAO,CAAEC,EAAAA,EAAAA,YAAY,CAatCC,EAAkBC,AAAAA,GAAAA,EAAAA,EAAAA,AAAAA,EAAS,CAAEP,QAAAA,EAAS,KAAM,iBAAkB,GAE9DQ,EAAWC,AAAAA,GAAAA,EAAAA,WAAAA,AAAAA,EACf,SAAOC,CAAI,M,0BACDJ,EAAiBK,EAAgBC,EAAgBC,EAAoBC,EAEvEC,EAaEC,EAoBCC,E,suCAnCDX,EAA+FI,EAA/FJ,eAAe,CAAEK,EAA8ED,EAA9EC,cAAc,CAAEC,EAA8DF,EAA9DE,cAAc,CAAEC,EAA8CH,EAA9CG,kBAAkB,CAAEC,EAA0BJ,EAA1BI,qBAAqB,CAE5FC,EAAU,CACd,QAAS9C,EACT,QAASqC,EACT,aAAcK,EAAiBO,IAAMP,GAAgB,MAAM,GAAK,KAChE,cAAeC,EAAiBM,IAAMN,GAAgB,MAAM,GAAK,KACjE,SAAUC,EACV,OACE,AAAEC,GAAyBA,GAAyBpB,CAAAA,MAAAA,EAAAA,KAAAA,EAAAA,EAAc,KAAK,CAAC,IAAI,AAAD,EAAC,CACvE,CAAE,MAAO,CAAE,KAAMoB,CAAsB,CAAE,E,GAElD,E,0CAGQE,EAAkB,IAAIG,gB,CAExB/B,EAAAA,MAAAA,C,KACF,O,EAAMgC,AAAAA,GAAAA,EAAAA,EAAAA,AAAAA,EAAwBhC,EAAkB,IAAI,CAAE2B,EAASC,G,eAA/D,S,aAEA,O,EAAMK,AAAAA,GAAAA,EAAAA,EAAAA,AAAAA,EAAwBN,EAASC,G,QAAvC,S,iBAGF,O,EAAMnC,I,eAAN,SACAb,EAAe,CAAE,sBAAuB,EAAK,GAE7CsD,AAAAA,GAAAA,EAAAA,YAAAA,AAAAA,EAAa,CACX,KAAM,UACN,MAAOlC,EACHjB,EAAE,oBAAqB,8BACvBA,EAAE,kBAAmB,4BACzB,SAAUiB,EACNjB,EAAE,8BAA+B,gEACjCA,EAAE,uBAAwB,0CAChC,G,0BACO8C,EAAAA,EAAAA,IAAAA,GACPK,AAAAA,GAAAA,EAAAA,YAAAA,AAAAA,EAAa,CACX,KAAM,QACN,MAAOnD,EAAE,6BAA8B,mCACvC,SAAeoD,A,UAAYC,Q,iEAAjBP,G,AAAAA,a,GAAyBA,EAAM,OAAO,CAAG,2BACrD,G,yBAEJ,E,gLACA,CAACjD,EAAgBoB,EAAmBM,EAAcb,EAAmBZ,EAAaE,EAAE,EAGhFsD,EACJ,kBAACC,EAAAA,GAASA,CAAAA,CAAC,WAAYvD,EAAE,cAAe,e,EACtC,kBAACwD,EAAAA,GAASA,CAAAA,CAAC,UAAWC,EAAAA,WAAkB,A,EAAGtC,MAAAA,EAAAA,KAAAA,EAAAA,EAAgB,OAAO,GAIhEuC,EACJ,kBAACC,EAAAA,EAAUA,CAAAA,CACT,KAAK,kBACL,QAAS9B,EACT+B,OAAQ,SAARA,CAAAA,E,IAKiBC,E,IALN,KAAK,CAAIC,EAAAA,EAAAA,QAAQ,CAAE9C,EAAAA,EAAAA,KAAK,C,OACjC,kBAAC+C,EAAAA,GAAMA,CAAAA,CACL,aAAW,eACX,GAAG,UACH,QAAS,CAAC,CAAC/B,CAAAA,MAAAA,EAAAA,KAAAA,EAAAA,EAAQ,eAAe,AAAD,EACjC,WAAW,OAAE6B,GAAAA,MAAAA,CAAAA,EAAAA,EAAQ,eAAe,AAAD,EAAtBA,KAAAA,EAAAA,EAAyB,OAAO,CAC7C,UAAW7D,EAAE,cAAe,gBAC5BgE,SAAU,SAACC,CAAK,E,OAAKH,EAASG,EAAM,MAAM,CAAC,KAAK,C,EAChD,MAAOjD,C,EAEP,kBAACkD,EAAAA,GAAUA,CAAAA,CAAC,KAAMlE,EAAE,gBAAiB,oBAAqB,MAAM,E,GAC/DoB,AAAAA,CAAAA,MAAAA,EAAAA,KAAAA,EAAAA,EAAkB,MAAM,AAAD,EAAI,GAC1BA,EAAiB,GAAG,CAAC,SAACC,CAAO,E,OAC3B,kBAAC6C,EAAAA,GAAUA,CAAAA,CAAC,IAAK7C,EAAQ,IAAI,CAAE,KAAMA,EAAQ,OAAO,CAAE,MAAOA,EAAQ,IAAI,A,EACtEA,EAAQ,OAAO,C,OAQxBmB,EACJ,kBAACmB,EAAAA,EAAUA,CAAAA,CACT,KAAK,iBACL,QAAS9B,EACT+B,OAAQ,SAARA,CAAAA,E,IAMYnB,EAIS0B,EACJC,EAXNC,EAAAA,EAAAA,KAAK,CAAEC,EAAAA,EAAAA,UAAU,C,OAC1B,kBAACC,EAAAA,iBAAiBA,CAAAA,EAAAA,EAAAA,CAAAA,EACZF,GAAAA,CACJ,GAAG,iBACH,cAAY,iBACZ,QAES5B,CADDA,EAAiBV,EAAM,mBACLgB,IAAMN,GAAgB,QAAQ,CAAC,EAAG,OAAO,MAAM,GAAK,IAAIb,KAElF,UAAW5B,EAAE,eAAgB,iBAC7B,QAASwE,SAAQL,GAAAA,MAAAA,CAAAA,EAAAA,EAAY,KAAK,AAAD,EAAhBA,KAAAA,EAAAA,EAAmB,OAAO,EAC3C,WAAW,OAAEC,GAAAA,MAAAA,CAAAA,EAAAA,EAAY,KAAK,AAAD,EAAhBA,KAAAA,EAAAA,EAAmB,OAAO,A,OAMzC3B,EACJ,kBAACkB,EAAAA,EAAUA,CAAAA,CACT,KAAK,iBACL,QAAS9B,EACT+B,OAAQ,SAARA,CAAAA,E,IASqBO,EACJC,EAVNC,EAAAA,EAAAA,KAAK,CAAEC,EAAAA,EAAAA,UAAU,C,OAC1B,kBAACC,EAAAA,iBAAiBA,CAAAA,EAAAA,EAAAA,CAAAA,EACZF,GAAAA,CACJ,GAAG,iBACH,cAAY,iBACZ,QAAStB,IAAMhB,EAAM,mBAAmB,GAAG,CAAC,EAAG,OAAO,MAAM,GAC5D,QAAS,IAAIH,KACb,WAAYmB,IAAMhB,EAAM,mBAAmB,MAAM,CAACgB,MAAS,OAC3D,UAAW/C,EAAE,gBAAiB,kBAC9B,QAASwE,SAAQL,GAAAA,MAAAA,CAAAA,EAAAA,EAAY,KAAK,AAAD,EAAhBA,KAAAA,EAAAA,EAAmB,OAAO,EAC3C,WAAW,OAAEC,GAAAA,MAAAA,CAAAA,EAAAA,EAAY,KAAK,AAAD,EAAhBA,KAAAA,EAAAA,EAAmB,OAAO,A,OAMzC1B,GACJ,kBAACiB,EAAAA,EAAUA,CAAAA,CACT,KAAK,qBACL,QAAS9B,EACT+B,OAAQ,SAARA,CAAAA,E,IAO2BnE,E,IAPhB,KAAK,CAAIqE,EAAAA,EAAAA,QAAQ,CAAE9C,EAAAA,EAAAA,KAAK,C,OACjC,kBAACyD,AAAAA,IAAAA,QAAc,MACb,kBAACjB,EAAAA,GAASA,CAAAA,CAAC,UAAY,GAAuB,OAArBC,EAAAA,aAAoB,CAAC,c,EAC3CzD,EAAE,qBAAsB,wBAE3B,kBAAC0E,EAAAA,cAAcA,CAAAA,CACb,qBAAsB1D,EACtB,mBAAmB,OAAEvB,GAAAA,MAAAA,CAAAA,EAAAA,EAAS,eAAe,AAAD,EAAvBA,KAAAA,EAAAA,EAA0B,IAAI,CACnD,YAAY,iBACZuE,SAAU,SAACW,CAAY,E,OAAKb,EAASa,E,QAO3CC,GAAiB,EAAE,CACvB,GAAI,CAACzD,GAAoBgB,EAAiB,CACxC,IAAMd,GAAUD,EAAiB,IAAI,CAAC,SAACyD,CAAC,E,OAAKA,EAAE,IAAI,GAAK1C,C,EACpDd,CAAAA,CAAAA,MAAAA,GAAAA,KAAAA,EAAAA,GAAS,YAAY,CAAC,MAAM,AAAD,EAAI,GAAGuD,CAAAA,GAAiBvD,GAAQ,YAAY,CAAC,EAAE,CAAC,MAAM,AAAD,CACtF,KAAWF,AAAAA,CAAAA,MAAAA,EAAAA,KAAAA,EAAAA,EAAgB,YAAY,CAAC,MAAM,AAAD,EAAI,GAC/CyD,CAAAA,GAAiBzD,EAAe,YAAY,CAAC,EAAE,CAAC,MAAM,AAAD,EAGvD,IAAM2D,GACJ,kBAACnB,EAAAA,EAAUA,CAAAA,CACT,KAAK,wBACL,QAAS9B,EACT+B,OAAQ,SAARA,CAAAA,E,IAKiBmB,E,IALN,KAAK,CAAIjB,EAAAA,EAAAA,QAAQ,CAAE9C,EAAAA,EAAAA,KAAK,C,OACjC,kBAAC+C,EAAAA,GAAMA,CAAAA,CACL,aAAY/D,EAAE,gBAAiB,kBAC/B,GAAG,gBACH,QAAS,CAAC,CAACgC,CAAAA,MAAAA,EAAAA,KAAAA,EAAAA,EAAQ,qBAAqB,AAAD,EACvC,WAAW,OAAE+C,GAAAA,MAAAA,CAAAA,EAAAA,EAAQ,qBAAqB,AAAD,EAA5BA,KAAAA,EAAAA,EAA+B,OAAO,CACnD,UAAW/E,EAAE,gBAAiB,kBAC9BgE,SAAU,SAACC,CAAK,E,OAAKH,EAASG,EAAM,MAAM,CAAC,KAAK,C,EAChD,MAAOjD,C,EAEP,kBAACkD,EAAAA,GAAUA,CAAAA,CAAC,KAAMlE,EAAE,eAAgB,2BAA4B,MAAM,E,GACrE4E,GAAe,GAAG,CAAC,SAACI,CAAK,E,OACxB,kBAACd,EAAAA,GAAUA,CAAAA,CAAC,IAAKc,EAAM,IAAI,CAAE,KAAMA,EAAM,OAAO,CAAC,OAAO,CAAE,MAAOA,EAAM,IAAI,A,EACxEA,EAAM,OAAO,CAAC,OAAO,C,OAQ5BC,GAAa,CACjBC,AA9NyBnF,EA+NrB,CACE,MAAO,CAAE,SAAUG,GAAY,KAAM,EACrC,WAAY,GACZ,MAAOoD,CACT,EACA,CACE,MAAO,CAAE,SAAUpD,GAAY,KAAM,EACrC,WAAY,GACZ,MAAOwD,CACT,EACJ,CACE,MAAO,CAAE,SAAU,KAAM,EACzB,WAAY,GACZ,MAAOlB,CACT,EACA,CACE,MAAO,CAAE,MAAO,KAAM,EACtB,WAAY,GACZ,MAAOC,CACT,EACA,CACE,MAAO,CAAE,MAAO,MAAO,EACvB,WAAY,GACZ,MAAOC,EACT,EACD,CAUD,OARI/B,GACFsE,GAAW,IAAI,CAAC,CACd,MAAO,CAAE,MAAO,KAAM,EACtB,WAAY,GACZ,MAAOH,EACT,GAIA,kBAACK,EAAAA,UAAUA,CAAAA,CAAC,MAAOnF,EAAE,kCAAmC,sBAAuB,kBAAmBiC,C,EAChG,kBAACmD,EAAAA,GAAIA,CAAAA,CAAC,UAAW3B,EAAAA,IAAW,CAAE,SAAU3B,EAAaO,E,EACnD,kBAACgD,EAAAA,GAAKA,CAAAA,CAAC,UAAW5B,EAAAA,aAAoB,CAAE,IAAK,C,EAC1C,CAACnD,EAAkB,MAAM,EACxB,kBAACgF,EAAAA,GAAkBA,CAAAA,CACjB,UAAW7B,EAAAA,YAAmB,CAC9B,KAAK,QACL,eACA,SAAUzD,EAAE,oBAAqB,0CACjC,MAAOA,EAAE,uBAAwB,yB,GAGpCiF,GAAW,GAAG,CAAC,SAACM,CAAK,CAAEC,CAAC,E,OACvB,kBAACjC,EAAAA,GAASA,CAAAA,CAAC,MAAOgC,EAAM,KAAK,CAAE,WAAYA,EAAM,UAAU,CAAE,IAAKC,C,EAChE,kBAAC,OAAI,UAAW/B,EAAAA,eAAsB,A,EAAGvD,EAAW,kBAACuF,EAAAA,GAAKA,CAAAA,KAAEF,EAAM,KAAK,EAAYA,EAAM,KAAK,E,IAIpG,kBAACG,EAAAA,GAASA,CAAAA,CAAC,UAAWC,IAAWzF,EAAWuD,EAAAA,MAAa,CAAGA,EAAAA,OAAc,C,EACxE,kBAACmC,EAAAA,GAAMA,CAAAA,CAAC,UAAWnC,EAAAA,MAAa,CAAE,KAAK,YAAYoC,QAAS,W,OAAMhG,G,GAC/DiG,AAAAA,GAAAA,EAAAA,kBAAAA,AAAAA,EAAmB,WAEtB,kBAACF,EAAAA,GAAMA,CAAAA,CAAC,UAAWnC,EAAAA,MAAa,CAAE,SAAUvB,EAAc,KAAK,UAAU,KAAK,Q,EAC3EA,EACC,kBAAC6D,EAAAA,GAAaA,CAAAA,CAAC,YAAa/F,EAAE,SAAU,UAAY,K,GAEpD,kBAAC,YAAMA,EAAE,eAAgB,sBAOvC,C"}
1
+ {"version":3,"file":"3906.js","sources":["webpack://@openmrs/esm-patient-programs-app/./src/programs/programs-form.scss","webpack://@openmrs/esm-patient-programs-app/./src/programs/programs-form.scss?390c","webpack://@openmrs/esm-patient-programs-app/./src/programs/programs-form.workspace.tsx"],"names":["_currentEnrollment_location","_session_sessionLocation","_currentEnrollment_location1","_session_sessionLocation1","_getLocationUuid","closeWorkspace","patientUuid","programEnrollmentId","t","useTranslation","isTablet","useLayoutType","session","useSession","availablePrograms","_useAvailablePrograms","_useEnrollments","enrollments","mutateEnrollments","showProgramStatusField","useConfig","programsFormSchema","useMemo","z","value","data","ctx","dayjs","currentEnrollment","e","currentProgram","eligiblePrograms","program","enrollment","currentState","findLastState","_useForm","zodResolver","parseDate","Date","control","handleSubmit","watch","errors","isDirty","isSubmitting","selectedProgram","useWatch","onSubmit","useCallback","enrollmentDate","completionDate","enrollmentLocation","selectedProgramStatus","payload","abortController","error","AbortController","updateProgramEnrollment","createProgramEnrollment","showSnackbar","_instanceof","Error","programName","FormGroup","FormLabel","styles","programSelect","Controller","render","_errors_selectedProgram","onChange","Select","onChange1","event","SelectItem","_fieldState_error","_fieldState_error1","field","fieldState","OpenmrsDatePicker","Boolean","React","LocationPicker","locationUuid","workflowStates","p","programStatusDropdown","_errors_selectedProgramStatus","state","formGroups","inEditMode","Workspace2","Form","Stack","InlineNotification","group","i","Layer","ButtonSet","classNames","Button","onClick","getCoreTranslation","InlineLoading"],"mappings":"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"}
package/dist/5117.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_patient_programs_app=globalThis.webpackChunk_openmrs_esm_patient_programs_app||[]).push([["5117"],{34300(e){e.exports=JSON.parse('{"actions":"Actions","active":"Active","activePrograms":"Active programs","add":"Add","addPrograms":"Add programs","carePrograms":"Care Programs","chooseProgram":"Choose a program","chooseStatus":"Choose a program status","completedOn":"Completed On","configurePrograms":"Please configure programs to continue.","dateCompleted":"Date completed","dateEnrolled":"Date enrolled","delete":"Delete","deleteModalConfirmationText":"Are you sure you want to delete this program enrollment?","deletePatientProgramEnrollment":"Delete Program Enrollment","deleting":"Deleting","edit":"Edit","editOrDeleteProgram":"Edit or delete program","editProgramEnrollment":"Edit program enrollment","enrollmentLocation":"Enrollment location","enrollmentNowVisible":"It is now visible in the Programs table","enrollmentSaved":"Program enrollment saved","enrollmentUpdated":"Program enrollment updated","enrollmentUpdatesNowVisible":"Changes to the program are now visible in the Programs table","errorDeletingProgram":"Error deleting program","fullyEnrolled":"Enrolled in all programs","location":"Location","noEligibleEnrollments":"There are no more programs left to enroll this patient in","noProgramsConfigured":"No programs configured","programEnrollmentDeleted":"Program enrollment deleted","programEnrollmentSaveError":"Error saving program enrollment","programEnrollmentsLower":"program enrollments","programEnrollmentWorkspaceTitle":"Record program enrollment","programName":"Program name","programRequired":"Program is required","Programs":"Programs","programStatus":"Program status","saveAndClose":"Save and close","saving":"Saving","seeAll":"See all","state":"State","status":"Status"}')}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_patient_programs_app=globalThis.webpackChunk_openmrs_esm_patient_programs_app||[]).push([["5117"],{34300(e){e.exports=JSON.parse('{"actions":"Actions","active":"Active","activePrograms":"Active programs","add":"Add","addPrograms":"Add programs","carePrograms":"Care Programs","chooseProgram":"Choose a program","chooseStatus":"Choose a program status","completedOn":"Completed On","completionDateCannotBeBeforeEnrollmentDate":"Completion date cannot be before the enrollment date","configurePrograms":"Please configure programs to continue.","dateCompleted":"Date completed","dateEnrolled":"Date enrolled","delete":"Delete","deleteModalConfirmationText":"Are you sure you want to delete this program enrollment?","deletePatientProgramEnrollment":"Delete Program Enrollment","deleting":"Deleting","edit":"Edit","editOrDeleteProgram":"Edit or delete program","editProgramEnrollment":"Edit program enrollment","enrollmentLocation":"Enrollment location","enrollmentNowVisible":"It is now visible in the Programs table","enrollmentSaved":"Program enrollment saved","enrollmentUpdated":"Program enrollment updated","enrollmentUpdatesNowVisible":"Changes to the program are now visible in the Programs table","errorDeletingProgram":"Error deleting program","fullyEnrolled":"Enrolled in all programs","location":"Location","noEligibleEnrollments":"There are no more programs left to enroll this patient in","noProgramsConfigured":"No programs configured","programEnrollmentDeleted":"Program enrollment deleted","programEnrollmentSaveError":"Error saving program enrollment","programEnrollmentsLower":"program enrollments","programEnrollmentWorkspaceTitle":"Record program enrollment","programName":"Program name","programRequired":"Program is required","Programs":"Programs","programStatus":"Program status","saveAndClose":"Save and close","saving":"Saving","seeAll":"See all","state":"State","status":"Status"}')}}]);
package/dist/5117.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"5117.js","sources":["webpack://@openmrs/esm-patient-programs-app/json|/home/runner/work/openmrs-esm-patient-chart/openmrs-esm-patient-chart/packages/esm-patient-programs-app/translations/en.json"],"names":["JSON"],"mappings":"8JAAA,EAAO,OAAO,CAAGA,KAAK,KAAK,CAAC,4oD"}
1
+ {"version":3,"file":"5117.js","sources":["webpack://@openmrs/esm-patient-programs-app/json|/home/runner/work/openmrs-esm-patient-chart/openmrs-esm-patient-chart/packages/esm-patient-programs-app/translations/en.json"],"names":["JSON"],"mappings":"8JAAA,EAAO,OAAO,CAAGA,KAAK,KAAK,CAAC,gvD"}
package/dist/main.js CHANGED
@@ -13,4 +13,4 @@
13
13
  ${r.safeToString(this.remoteInfo)}`),this.remoteEntryExports=e),this.remoteEntryExports}async get(e,t,n,r){let o,{loadFactory:l=!0}=n||{loadFactory:!0},u=await this.getEntry();if(!this.inited){let t=this.host.shareScopeMap,n=Array.isArray(this.remoteInfo.shareScope)?this.remoteInfo.shareScope:[this.remoteInfo.shareScope];n.length||n.push("default"),n.forEach(e=>{t[e]||(t[e]={})});let o=t[n[0]],l=[],i={version:this.remoteInfo.version||"",shareScopeKeys:Array.isArray(this.remoteInfo.shareScope)?n:this.remoteInfo.shareScope||"default"};Object.defineProperty(i,"shareScopeMap",{value:t,enumerable:!1});let c=await this.host.hooks.lifecycle.beforeInitContainer.emit({shareScope:o,remoteEntryInitOptions:i,initScope:l,remoteInfo:this.remoteInfo,origin:this.host});void 0===u?.init&&s(a.getShortErrorMsg(a.RUNTIME_002,a.runtimeDescMap,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName})),await u.init(c.shareScope,c.initScope,c.remoteEntryInitOptions),await this.host.hooks.lifecycle.initContainer.emit({...c,id:e,remoteSnapshot:r,remoteEntryExports:u})}this.lib=u,this.inited=!0,(o=await this.host.loaderHook.lifecycle.getModuleFactory.emit({remoteEntryExports:u,expose:t,moduleInfo:this.remoteInfo}))||(o=await u.get(t)),i(o,`${d(this.remoteInfo)} remote don't export ${t}.`);let c=E(this.remoteInfo.name,t),f=this.wraperFactory(o,c);return l?await f():f}wraperFactory(e,t){function n(e,t){e&&"object"==typeof e&&Object.isExtensible(e)&&!Object.getOwnPropertyDescriptor(e,Symbol.for("mf_module_id"))&&Object.defineProperty(e,Symbol.for("mf_module_id"),{value:t,enumerable:!1})}return e instanceof Promise?async()=>{let r=await e();return n(r,t),r}:()=>{let r=e();return n(r,t),r}}}class tc{constructor(e){this.type="",this.listeners=new Set,e&&(this.type=e)}on(e){"function"==typeof e&&this.listeners.add(e)}once(e){let t=this;this.on(function n(...r){return t.remove(n),e.apply(null,r)})}emit(...e){let t;return this.listeners.size>0&&this.listeners.forEach(n=>{t=n(...e)}),t}remove(e){this.listeners.delete(e)}removeAll(){this.listeners.clear()}}class td extends tc{emit(...e){let t,n=Array.from(this.listeners);if(n.length>0){let r=0,a=t=>!1!==t&&(r<n.length?Promise.resolve(n[r++].apply(null,e)).then(a):t);t=a()}return Promise.resolve(t)}}function tf(e,t){if(!h(t))return!1;if(e!==t){for(let n in e)if(!(n in t))return!1}return!0}class tp extends tc{constructor(e){super(),this.onerror=s,this.type=e}emit(e){for(let t of(h(e)||s(`The data for the "${this.type}" hook should be an object.`),this.listeners))try{let n=t(e);if(tf(e,n))e=n;else{this.onerror(`A plugin returned an unacceptable value for the "${this.type}" type.`);break}}catch(e){u(e),this.onerror(e)}return e}}class tm extends tc{constructor(e){super(),this.onerror=s,this.type=e}emit(e){h(e)||s(`The response data for the "${this.type}" hook must be an object.`);let t=Array.from(this.listeners);if(t.length>0){let n=0,r=t=>(u(t),this.onerror(t),e),a=o=>{if(tf(e,o)){if(e=o,n<t.length)try{return Promise.resolve(t[n++](e)).then(a,r)}catch(e){return r(e)}}else this.onerror(`A plugin returned an incorrect value for the "${this.type}" type.`);return e};return Promise.resolve(a(e))}return Promise.resolve(e)}}class th{constructor(e){this.registerPlugins={},this.lifecycle=e,this.lifecycleKeys=Object.keys(e)}applyPlugin(e,t){i(b(e),"Plugin configuration is invalid.");let n=e.name;i(n,"A name must be provided by the plugin."),this.registerPlugins[n]||(this.registerPlugins[n]=e,e.apply?.(t),Object.keys(this.lifecycle).forEach(t=>{let n=e[t];n&&this.lifecycle[t].on(n)}))}removePlugin(e){i(e,"A name is required.");let t=this.registerPlugins[e];i(t,`The plugin "${e}" is not registered.`),Object.keys(t).forEach(e=>{"name"!==e&&this.lifecycle[e].remove(t[e])})}}function tg(e,t){let n=w(t);n.url||s(`The attribute remoteEntry of ${e.name} must not be undefined.`);let a=r.getResourceUrl(t,n.url);r.isBrowserEnv()||a.startsWith("http")||(a=`https:${a}`),e.type=n.type,e.entryGlobalName=n.globalName,e.entry=a,e.version=t.version,e.buildVersion=t.buildVersion}function tb(){return{name:"snapshot-plugin",async afterResolve(e){let{remote:t,pkgNameOrAlias:n,expose:r,origin:a,remoteInfo:o,id:l}=e;if(!f(t)||!p(t)){let{remoteSnapshot:i,globalSnapshot:s}=await a.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:t,id:l});tg(o,i);let u={remote:t,preloadConfig:{nameOrAlias:n,exposes:[r],resourceCategory:"sync",share:!1,depsRemote:!1}},c=await a.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin:a,preloadOptions:u,remoteInfo:o,remote:t,remoteSnapshot:i,globalSnapshot:s});return c&&ti(o,a,c,!1),{...e,remoteSnapshot:i}}return e}}}function ty(e){let t=e.split(":");return 1===t.length?{name:t[0],version:void 0}:2===t.length?{name:t[0],version:t[1]}:{name:t[1],version:t[2]}}function tv(e,t,n,a,o={},l){let{value:i}=I(e,d(t)),s=l||i;if(s&&!r.isManifestProvider(s)&&(n(s,t,a),s.remotesInfo))for(let t of Object.keys(s.remotesInfo)){if(o[t])continue;o[t]=!0;let r=ty(t),a=s.remotesInfo[t];tv(e,{name:r.name,version:a.matchedVersion},n,!1,o,void 0)}}let tw=(e,t)=>document.querySelector(`${e}[${"link"===e?"href":"src"}="${t}"]`);function tE(e,t,n,a,o){let l=[],i=[],s=[],u=new Set,c=new Set,{options:d}=e,{preloadConfig:f}=t,{depsRemote:p}=f;if(tv(a,n,(t,n,a)=>{let o;if(a)o=f;else if(Array.isArray(p)){let e=p.find(e=>e.nameOrAlias===n.name||e.nameOrAlias===n.alias);if(!e)return;o=ta(e)}else{if(!0!==p)return;o=f}let u=r.getResourceUrl(t,w(t).url);u&&s.push({name:n.name,moduleInfo:{name:n.name,entry:u,type:"remoteEntryType"in t?t.remoteEntryType:"global",entryGlobalName:"globalName"in t?t.globalName:n.name,shareScope:"",version:"version"in t?t.version:void 0},url:u});let c="modules"in t?t.modules:[],d=tl(o.exposes);function m(e){let n=e.map(e=>r.getResourceUrl(t,e));return o.filter?n.filter(o.filter):n}if(d.length&&"modules"in t&&(c=t?.modules?.reduce((e,t)=>(d?.indexOf(t.moduleName)!==-1&&e.push(t),e),[])),c){let r=c.length;for(let a=0;a<r;a++){let r=c[a],s=`${n.name}/${r.moduleName}`;e.remoteHandler.hooks.lifecycle.handlePreloadModule.emit({id:"."===r.moduleName?n.name:s,name:n.name,remoteSnapshot:t,preloadConfig:o,remote:n,origin:e}),H(s)||("all"===o.resourceCategory?(l.push(...m(r.assets.css.async)),l.push(...m(r.assets.css.sync)),i.push(...m(r.assets.js.async))):(o.resourceCategory="sync",l.push(...m(r.assets.css.sync))),i.push(...m(r.assets.js.sync)),V(s))}}},!0,{},o),o.shared&&o.shared.length>0){let t=(t,n)=>{let r=eZ(e.shareScopeMap,n.sharedName,t,e.sharedHandler.hooks.lifecycle.resolveShare);r&&"function"==typeof r.lib&&(n.assets.js.sync.forEach(e=>{u.add(e)}),n.assets.css.sync.forEach(e=>{c.add(e)}))};o.shared.forEach(e=>{let n=d.shared?.[e.sharedName];if(!n)return;let r=e.version?n.find(t=>t.version===e.version):n;r&&v(r).forEach(n=>{t(n,e)})})}let m=i.filter(e=>!u.has(e)&&!tw("script",e));return{cssAssets:l.filter(e=>!c.has(e)&&!tw("link",e)),jsAssetsWithoutEntry:m,entryAssets:s.filter(e=>!tw("script",e.url))}}let t_=function(){return{name:"generate-preload-assets-plugin",async generatePreloadAssets(e){let{origin:t,preloadOptions:n,remoteInfo:a,remote:o,globalSnapshot:l,remoteSnapshot:i}=e;return r.isBrowserEnv()?f(o)&&p(o)?{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[{name:o.name,url:o.entry,moduleInfo:{name:a.name,entry:o.entry,type:a.type||"global",entryGlobalName:"",shareScope:""}}]}:(tg(a,i),tE(t,n,a,l,i)):{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[]}}}};function tS(e,t){let n=P({name:t.name,version:t.options.version}),r=n&&"remotesInfo"in n&&n.remotesInfo&&I(n.remotesInfo,e.name).value;return r&&r.matchedVersion?{hostGlobalSnapshot:n,globalSnapshot:L(),remoteSnapshot:P({name:e.name,version:r.matchedVersion})}:{hostGlobalSnapshot:void 0,globalSnapshot:L(),remoteSnapshot:P({name:e.name,version:"version"in e?e.version:void 0})}}class tx{constructor(e){this.loadingHostSnapshot=null,this.manifestCache=new Map,this.hooks=new th({beforeLoadRemoteSnapshot:new td("beforeLoadRemoteSnapshot"),loadSnapshot:new tm("loadGlobalSnapshot"),loadRemoteSnapshot:new tm("loadRemoteSnapshot"),afterLoadSnapshot:new tm("afterLoadSnapshot")}),this.manifestLoading=x.__FEDERATION__.__MANIFEST_LOADING__,this.HostInstance=e,this.loaderHook=e.loaderHook}async loadRemoteSnapshotInfo({moduleInfo:e,id:t,expose:n}){let o,l,{options:i}=this.HostInstance;await this.hooks.lifecycle.beforeLoadRemoteSnapshot.emit({options:i,moduleInfo:e});let u=P({name:this.HostInstance.options.name,version:this.HostInstance.options.version});u||(u={version:this.HostInstance.options.version||"",remoteEntry:"",remotesInfo:{}},j({[this.HostInstance.options.name]:u})),u&&"remotesInfo"in u&&!I(u.remotesInfo,e.name).value&&("version"in e||"entry"in e)&&(u.remotesInfo={...u?.remotesInfo,[e.name]:{matchedVersion:"version"in e?e.version:e.entry}});let{hostGlobalSnapshot:c,remoteSnapshot:d,globalSnapshot:p}=this.getGlobalRemoteInfo(e),{remoteSnapshot:m,globalSnapshot:h}=await this.hooks.lifecycle.loadSnapshot.emit({options:i,moduleInfo:e,hostGlobalSnapshot:c,remoteSnapshot:d,globalSnapshot:p});if(m)if(r.isManifestProvider(m)){let t=r.isBrowserEnv()?m.remoteEntry:m.ssrRemoteEntry||m.remoteEntry||"",n=await this.getManifestJson(t,e,{}),a=D({...e,entry:t},n);o=n,l=a}else{let{remoteSnapshot:t}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:m,from:"global"});o=t,l=h}else if(f(e)){let t=await this.getManifestJson(e.entry,e,{}),n=D(e,t),{remoteSnapshot:r}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:t,from:"global"});o=r,l=n}else s(a.getShortErrorMsg(a.RUNTIME_007,a.runtimeDescMap,{hostName:e.name,hostVersion:e.version,globalSnapshot:JSON.stringify(h)}));return await this.hooks.lifecycle.afterLoadSnapshot.emit({id:t,host:this.HostInstance,options:i,moduleInfo:e,remoteSnapshot:o}),{remoteSnapshot:o,globalSnapshot:l}}getGlobalRemoteInfo(e){return tS(e,this.HostInstance)}async getManifestJson(e,t,n){let o=async()=>{let n=this.manifestCache.get(e);if(n)return n;try{let t=await this.loaderHook.lifecycle.fetch.emit(e,{});t&&t instanceof Response||(t=await fetch(e,{})),n=await t.json()}catch(r){(n=await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:r,from:"runtime",lifecycle:"afterResolve",origin:this.HostInstance}))||(delete this.manifestLoading[e],s(a.getShortErrorMsg(a.RUNTIME_003,a.runtimeDescMap,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name},`${r}`)))}return i(n.metaData&&n.exposes&&n.shared,`${e} is not a federation manifest`),this.manifestCache.set(e,n),n},l=async()=>{let n=await o(),a=r.generateSnapshotFromManifest(n,{version:e}),{remoteSnapshot:l}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:t,manifestJson:n,remoteSnapshot:a,manifestUrl:e,from:"manifest"});return l};return this.manifestLoading[e]||(this.manifestLoading[e]=l().then(e=>e)),this.manifestLoading[e]}}class tN{constructor(e){this.hooks=new th({afterResolve:new tm("afterResolve"),beforeLoadShare:new tm("beforeLoadShare"),loadShare:new td,resolveShare:new tp("resolveShare"),initContainerShareScopeMap:new tp("initContainerShareScopeMap")}),this.host=e,this.shareScopeMap={},this.initTokens={},this._setGlobalShareScopeMap(e.options)}registerShared(e,t){let{shareInfos:n,shared:r}=eV(e,t);return Object.keys(n).forEach(e=>{n[e].forEach(n=>{n.scope.forEach(r=>{this.shareScopeMap[r]?.[e]||this.setShared({pkgName:e,lib:n.lib,get:n.get,loaded:n.loaded||!!n.lib,shared:n,from:t.name})})})}),{shareInfos:n,shared:r}}async loadShare(e,t){let{host:n}=this,r=eJ({pkgName:e,extraOptions:t,shareInfos:n.options.shared});r?.scope&&await Promise.all(r.scope.map(async e=>{await Promise.all(this.initializeSharing(e,{strategy:r.strategy}))}));let{shareInfo:a}=await this.hooks.lifecycle.beforeLoadShare.emit({pkgName:e,shareInfo:r,shared:n.options.shared,origin:n});i(a,`Cannot find ${e} Share in the ${n.options.name}. Please ensure that the ${e} Share parameters have been injected`);let o=eZ(this.shareScopeMap,e,a,this.hooks.lifecycle.resolveShare),l=e=>{e.useIn||(e.useIn=[]),c(e.useIn,n.options.name)};if(o&&o.lib)return l(o),o.lib;if(o&&o.loading&&!o.loaded){let e=await o.loading;return o.loaded=!0,o.lib||(o.lib=e),l(o),e}if(o){let t=(async()=>{let e=await o.get();return l(o),o.loaded=!0,o.lib=e,e})();return this.setShared({pkgName:e,loaded:!1,shared:o,from:n.options.name,lib:null,loading:t}),t}{if(t?.customShareInfo)return!1;let r=(async()=>{let t=await a.get();a.lib=t,a.loaded=!0,l(a);let n=eZ(this.shareScopeMap,e,a,this.hooks.lifecycle.resolveShare);return n&&(n.lib=t,n.loaded=!0,n.from=a.from),t})();return this.setShared({pkgName:e,loaded:!1,shared:a,from:n.options.name,lib:null,loading:r}),r}}initializeSharing(e=U,t){let{host:n}=this,r=t?.from,a=t?.strategy,o=t?.initScope,l=[];if("build"!==r){let{initTokens:t}=this;o||(o=[]);let n=t[e];if(n||(n=t[e]={from:this.host.name}),o.indexOf(n)>=0)return l;o.push(n)}let i=this.shareScopeMap,s=n.options.name;i[e]||(i[e]={});let u=i[e],c=(e,t)=>{let{version:n,eager:r}=t;u[e]=u[e]||{};let a=u[e],o=a[n],l=!!(o&&(o.eager||o.shareConfig?.eager));(!o||"loaded-first"!==o.strategy&&!o.loaded&&(!r!=!l?r:s>o.from))&&(a[n]=t)},d=t=>t&&t.init&&t.init(i[e],o),f=async e=>{let{module:t}=await n.remoteHandler.getRemoteModuleAndOptions({id:e});if(t.getEntry){let r;try{r=await t.getEntry()}catch(t){r=await n.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:t,from:"runtime",lifecycle:"beforeLoadShare",origin:n})}t.inited||(await d(r),t.inited=!0)}};return Object.keys(n.options.shared).forEach(t=>{n.options.shared[t].forEach(n=>{n.scope.includes(e)&&c(t,n)})}),("version-first"===n.options.shareStrategy||"version-first"===a)&&n.options.remotes.forEach(t=>{t.shareScope===e&&l.push(f(t.name))}),l}loadShareSync(e,t){let{host:n}=this,r=eJ({pkgName:e,extraOptions:t,shareInfos:n.options.shared});r?.scope&&r.scope.forEach(e=>{this.initializeSharing(e,{strategy:r.strategy})});let o=eZ(this.shareScopeMap,e,r,this.hooks.lifecycle.resolveShare),l=e=>{e.useIn||(e.useIn=[]),c(e.useIn,n.options.name)};if(o){if("function"==typeof o.lib)return l(o),o.loaded||(o.loaded=!0,o.from===n.options.name&&(r.loaded=!0)),o.lib;if("function"==typeof o.get){let t=o.get();if(!(t instanceof Promise))return l(o),this.setShared({pkgName:e,loaded:!0,from:n.options.name,lib:t,shared:o}),t}}if(r.lib)return r.loaded||(r.loaded=!0),r.lib;if(r.get){let o=r.get();if(o instanceof Promise){let r=t?.from==="build"?a.RUNTIME_005:a.RUNTIME_006;throw Error(a.getShortErrorMsg(r,a.runtimeDescMap,{hostName:n.options.name,sharedPkgName:e}))}return r.lib=o,this.setShared({pkgName:e,loaded:!0,from:n.options.name,lib:r.lib,shared:r}),r.lib}throw Error(a.getShortErrorMsg(a.RUNTIME_006,a.runtimeDescMap,{hostName:n.options.name,sharedPkgName:e}))}initShareScopeMap(e,t,n={}){let{host:r}=this;this.shareScopeMap[e]=t,this.hooks.lifecycle.initContainerShareScopeMap.emit({shareScope:t,options:r.options,origin:r,scopeName:e,hostShareScopeMap:n.hostShareScopeMap})}setShared({pkgName:e,shared:t,from:n,lib:r,loading:a,loaded:o,get:l}){let{version:i,scope:s="default",...u}=t;(Array.isArray(s)?s:[s]).forEach(t=>{if(this.shareScopeMap[t]||(this.shareScopeMap[t]={}),this.shareScopeMap[t][e]||(this.shareScopeMap[t][e]={}),!this.shareScopeMap[t][e][i]){this.shareScopeMap[t][e][i]={version:i,scope:[t],...u,lib:r,loaded:o,loading:a},l&&(this.shareScopeMap[t][e][i].get=l);return}let s=this.shareScopeMap[t][e][i];a&&!s.loading&&(s.loading=a),o&&!s.loaded&&(s.loaded=o),n&&s.from!==n&&(s.from=n)})}_setGlobalShareScopeMap(e){let t=eX(),n=e.id||e.name;n&&!t[n]&&(t[n]=this.shareScopeMap)}}class tk{constructor(e){this.hooks=new th({beforeRegisterRemote:new tp("beforeRegisterRemote"),registerRemote:new tp("registerRemote"),beforeRequest:new tm("beforeRequest"),onLoad:new td("onLoad"),handlePreloadModule:new tc("handlePreloadModule"),errorLoadRemote:new td("errorLoadRemote"),beforePreloadRemote:new td("beforePreloadRemote"),generatePreloadAssets:new td("generatePreloadAssets"),afterPreloadRemote:new td,loadEntry:new td}),this.host=e,this.idToRemoteMap={}}formatAndRegisterRemote(e,t){return(t.remotes||[]).reduce((e,t)=>(this.registerRemote(t,e,{force:!1}),e),e.remotes)}setIdToRemoteMap(e,t){let{remote:n,expose:r}=t,{name:a,alias:o}=n;if(this.idToRemoteMap[e]={name:n.name,expose:r},o&&e.startsWith(a)){let t=e.replace(a,o);this.idToRemoteMap[t]={name:n.name,expose:r};return}if(o&&e.startsWith(o)){let t=e.replace(o,a);this.idToRemoteMap[t]={name:n.name,expose:r}}}async loadRemote(e,t){let{host:n}=this;try{let{loadFactory:r=!0}=t||{loadFactory:!0},{module:a,moduleOptions:o,remoteMatchInfo:l}=await this.getRemoteModuleAndOptions({id:e}),{pkgNameOrAlias:i,remote:s,expose:u,id:c,remoteSnapshot:d}=l,f=await a.get(c,u,t,d),p=await this.hooks.lifecycle.onLoad.emit({id:c,pkgNameOrAlias:i,expose:u,exposeModule:r?f:void 0,exposeModuleFactory:r?void 0:f,remote:s,options:o,moduleInstance:a,origin:n});if(this.setIdToRemoteMap(e,l),"function"==typeof p)return p;return f}catch(o){let{from:r="runtime"}=t||{from:"runtime"},a=await this.hooks.lifecycle.errorLoadRemote.emit({id:e,error:o,from:r,lifecycle:"onLoad",origin:n});if(!a)throw o;return a}}async preloadRemote(e){let{host:t}=this;await this.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:e,options:t.options,origin:t});let n=to(t.options.remotes,e);await Promise.all(n.map(async e=>{let{remote:n}=e,r=tr(n),{globalSnapshot:a,remoteSnapshot:o}=await t.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:n}),l=await this.hooks.lifecycle.generatePreloadAssets.emit({origin:t,preloadOptions:e,remote:n,remoteInfo:r,globalSnapshot:a,remoteSnapshot:o});l&&ti(r,t,l)}))}registerRemotes(e,t){let{host:n}=this;e.forEach(e=>{this.registerRemote(e,n.options.remotes,{force:t?.force})})}async getRemoteModuleAndOptions(e){let t,{host:n}=this,{id:r}=e;try{t=await this.hooks.lifecycle.beforeRequest.emit({id:r,options:n.options,origin:n})}catch(e){if(!(t=await this.hooks.lifecycle.errorLoadRemote.emit({id:r,options:n.options,origin:n,from:"runtime",error:e,lifecycle:"beforeRequest"})))throw e}let{id:o}=t,l=e1(n.options.remotes,o);i(l,a.getShortErrorMsg(a.RUNTIME_004,a.runtimeDescMap,{hostName:n.options.name,requestId:o}));let{remote:s}=l,u=tr(s),c=await n.sharedHandler.hooks.lifecycle.afterResolve.emit({id:o,...l,options:n.options,origin:n,remoteInfo:u}),{remote:d,expose:f}=c;i(d&&f,`The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ${o}.`);let p=n.moduleCache.get(d.name),m={host:n,remoteInfo:u};return p||(p=new tu(m),n.moduleCache.set(d.name,p)),{module:p,moduleOptions:m,remoteMatchInfo:c}}registerRemote(e,t,n){let{host:a}=this,o=()=>{if(e.alias){let n=t.find(t=>e.alias&&(t.name.startsWith(e.alias)||t.alias?.startsWith(e.alias)));i(!n,`The alias ${e.alias} of remote ${e.name} is not allowed to be the prefix of ${n&&n.name} name or alias`)}"entry"in e&&r.isBrowserEnv()&&!e.entry.startsWith("http")&&(e.entry=new URL(e.entry,window.location.origin).href),e.shareScope||(e.shareScope=U),e.type||(e.type=q)};this.hooks.lifecycle.beforeRegisterRemote.emit({remote:e,origin:a});let l=t.find(t=>t.name===e.name);if(l){let i=[`The remote "${e.name}" is already registered.`,"Please note that overriding it may cause unexpected errors."];n?.force&&(this.removeRemote(l),o(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:a}),r.warn(i.join(" ")))}else o(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:a})}removeRemote(e){try{let{host:t}=this,{name:n}=e,a=t.options.remotes.findIndex(e=>e.name===n);-1!==a&&t.options.remotes.splice(a,1);let o=t.moduleCache.get(e.name);if(o){let n=o.remoteInfo,a=n.entryGlobalName;_[a]&&(Object.getOwnPropertyDescriptor(_,a)?.configurable?delete _[a]:_[a]=void 0);let l=tt(o.remoteInfo);A[l]&&delete A[l],t.snapshotHandler.manifestCache.delete(n.entry);let i=n.buildVersion?r.composeKeyWithSeparator(n.name,n.buildVersion):n.name,s=_.__FEDERATION__.__INSTANCES__.findIndex(e=>n.buildVersion?e.options.id===i:e.name===i);if(-1!==s){let e=_.__FEDERATION__.__INSTANCES__[s];i=e.options.id||i;let t=eX(),r=!0,a=[];Object.keys(t).forEach(e=>{let o=t[e];o&&Object.keys(o).forEach(t=>{let l=o[t];l&&Object.keys(l).forEach(o=>{let i=l[o];i&&Object.keys(i).forEach(l=>{let s=i[l];s&&"object"==typeof s&&s.from===n.name&&(s.loaded||s.loading?(s.useIn=s.useIn.filter(e=>e!==n.name),s.useIn.length?r=!1:a.push([e,t,o,l])):a.push([e,t,o,l]))})})})}),r&&(e.shareScopeMap={},delete t[i]),a.forEach(([e,n,r,a])=>{delete t[e]?.[n]?.[r]?.[a]}),_.__FEDERATION__.__INSTANCES__.splice(s,1)}let{hostGlobalSnapshot:u}=tS(e,t);if(u){let t=u&&"remotesInfo"in u&&u.remotesInfo&&I(u.remotesInfo,e.name).key;t&&(delete u.remotesInfo[t],x.__FEDERATION__.__MANIFEST_LOADING__[t]&&delete x.__FEDERATION__.__MANIFEST_LOADING__[t])}t.moduleCache.delete(e.name)}}catch(e){l.log("removeRemote fail: ",e)}}}let tA="boolean"!=typeof FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN||!FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN;class t${constructor(e){this.hooks=new th({beforeInit:new tp("beforeInit"),init:new tc,beforeInitContainer:new tm("beforeInitContainer"),initContainer:new tm("initContainer")}),this.version="0.22.0",this.moduleCache=new Map,this.loaderHook=new th({getModuleInfo:new tc,createScript:new tc,createLink:new tc,fetch:new td,loadEntryError:new td,getModuleFactory:new td}),this.bridgeHook=new th({beforeBridgeRender:new tc,afterBridgeRender:new tc,beforeBridgeDestroy:new tc,afterBridgeDestroy:new tc});const t=tA?[tb(),t_()]:[],n={id:e0(),name:e.name,plugins:t,remotes:[],shared:{},inBrowser:r.isBrowserEnv()};this.name=e.name,this.options=n,this.snapshotHandler=new tx(this),this.sharedHandler=new tN(this),this.remoteHandler=new tk(this),this.shareScopeMap=this.sharedHandler.shareScopeMap,this.registerPlugins([...n.plugins,...e.plugins||[]]),this.options=this.formatOptions(n,e)}initOptions(e){this.registerPlugins(e.plugins);let t=this.formatOptions(this.options,e);return this.options=t,t}async loadShare(e,t){return this.sharedHandler.loadShare(e,t)}loadShareSync(e,t){return this.sharedHandler.loadShareSync(e,t)}initializeSharing(e=U,t){return this.sharedHandler.initializeSharing(e,t)}initRawContainer(e,t,n){let r=new tu({host:this,remoteInfo:tr({name:e,entry:t})});return r.remoteEntryExports=n,this.moduleCache.set(e,r),r}async loadRemote(e,t){return this.remoteHandler.loadRemote(e,t)}async preloadRemote(e){return this.remoteHandler.preloadRemote(e)}initShareScopeMap(e,t,n={}){this.sharedHandler.initShareScopeMap(e,t,n)}formatOptions(e,t){let{shared:n}=eV(e,t),{userOptions:r,options:a}=this.hooks.lifecycle.beforeInit.emit({origin:this,userOptions:t,options:e,shareInfo:n}),o=this.remoteHandler.formatAndRegisterRemote(a,r),{shared:l}=this.sharedHandler.registerShared(a,r),i=[...a.plugins];r.plugins&&r.plugins.forEach(e=>{i.includes(e)||i.push(e)});let s={...e,...t,plugins:i,remotes:o,shared:l};return this.hooks.lifecycle.init.emit({origin:this,options:s}),s}registerPlugins(e){let t=e3(e,this);this.options.plugins=this.options.plugins.reduce((e,t)=>(t&&e&&!e.find(e=>e.name===t.name)&&e.push(t),e),t||[])}registerRemotes(e,t){return this.remoteHandler.registerRemotes(e,t)}registerShared(e){this.sharedHandler.registerShared(this.options,{...this.options,shared:e})}}var tC=Object.freeze({__proto__:null});t.loadScript=r.loadScript,t.loadScriptNode=r.loadScriptNode,t.CurrentGlobal=_,t.Global=x,t.Module=tu,t.ModuleFederation=t$,t.addGlobalSnapshot=j,t.assert=i,t.getGlobalFederationConstructor=R,t.getGlobalSnapshot=L,t.getInfoWithoutType=I,t.getRegisteredShare=eZ,t.getRemoteEntry=tn,t.getRemoteInfo=tr,t.helpers=ts,t.isStaticResourcesEqual=y,t.matchRemoteWithNameAndExpose=e1,t.registerGlobalPlugins=F,t.resetFederationGlobalInfo=C,t.safeWrapper=m,t.satisfy=eB,t.setGlobalFederationConstructor=O,t.setGlobalFederationInstance=T,t.types=tC},86490(e,t,n){"use strict";var r=n(35822),a=n(63767),o=n(6197);function l(e){let t=new(r.getGlobalFederationConstructor()||r.ModuleFederation)(e);return r.setGlobalFederationInstance(t),t}let i=null;function s(e){let t=o.getGlobalFederationInstance(e.name,e.version);return t?(t.initOptions(e),i||(i=t),t):i=l(e)}function u(...e){return r.assert(i,a.getShortErrorMsg(a.RUNTIME_009,a.runtimeDescMap)),i.loadRemote.apply(i,e)}function c(...e){return r.assert(i,a.getShortErrorMsg(a.RUNTIME_009,a.runtimeDescMap)),i.loadShare.apply(i,e)}function d(...e){return r.assert(i,a.getShortErrorMsg(a.RUNTIME_009,a.runtimeDescMap)),i.loadShareSync.apply(i,e)}function f(...e){return r.assert(i,a.getShortErrorMsg(a.RUNTIME_009,a.runtimeDescMap)),i.preloadRemote.apply(i,e)}function p(...e){return r.assert(i,a.getShortErrorMsg(a.RUNTIME_009,a.runtimeDescMap)),i.registerRemotes.apply(i,e)}function m(...e){return r.assert(i,a.getShortErrorMsg(a.RUNTIME_009,a.runtimeDescMap)),i.registerPlugins.apply(i,e)}function h(){return i}function g(...e){return r.assert(i,a.getShortErrorMsg(a.RUNTIME_009,a.runtimeDescMap)),i.registerShared.apply(i,e)}r.setGlobalFederationConstructor(r.ModuleFederation),t.Module=r.Module,t.ModuleFederation=r.ModuleFederation,t.getRemoteEntry=r.getRemoteEntry,t.getRemoteInfo=r.getRemoteInfo,t.loadScript=r.loadScript,t.loadScriptNode=r.loadScriptNode,t.registerGlobalPlugins=r.registerGlobalPlugins,t.createInstance=l,t.getInstance=h,t.init=s,t.loadRemote=u,t.loadShare=c,t.loadShareSync=d,t.preloadRemote=f,t.registerPlugins=m,t.registerRemotes=p,t.registerShared=g},6197(e,t,n){"use strict";var r=n(35822);function a(){return"u">typeof FEDERATION_BUILD_IDENTIFIER?FEDERATION_BUILD_IDENTIFIER:""}t.getGlobalFederationInstance=function(e,t){let n=a();return r.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(r=>!!n&&r.options.id===n||r.options.name===e&&!r.options.version&&!t||r.options.name===e&&!!t&&r.options.version===t)}},45882(__unused_rspack_module,exports){"use strict";let FederationModuleManifest="federation-manifest.json",MANIFEST_EXT=".json",BROWSER_LOG_KEY="FEDERATION_DEBUG",NameTransformSymbol={AT:"@",HYPHEN:"-",SLASH:"/"},NameTransformMap={[NameTransformSymbol.AT]:"scope_",[NameTransformSymbol.HYPHEN]:"_",[NameTransformSymbol.SLASH]:"__"},EncodedNameTransformMap={[NameTransformMap[NameTransformSymbol.AT]]:NameTransformSymbol.AT,[NameTransformMap[NameTransformSymbol.HYPHEN]]:NameTransformSymbol.HYPHEN,[NameTransformMap[NameTransformSymbol.SLASH]]:NameTransformSymbol.SLASH},SEPARATOR=":",ManifestFileName="mf-manifest.json",StatsFileName="mf-stats.json",MFModuleType={NPM:"npm",APP:"app"},MODULE_DEVTOOL_IDENTIFIER="__MF_DEVTOOLS_MODULE_INFO__",ENCODE_NAME_PREFIX="ENCODE_NAME_PREFIX",TEMP_DIR=".federation",MFPrefetchCommon={identifier:"MFDataPrefetch",globalKey:"__PREFETCH__",library:"mf-data-prefetch",exportsKey:"__PREFETCH_EXPORTS__",fileName:"bootstrap.js"};var ContainerPlugin=Object.freeze({__proto__:null}),ContainerReferencePlugin=Object.freeze({__proto__:null}),ModuleFederationPlugin=Object.freeze({__proto__:null}),SharePlugin=Object.freeze({__proto__:null});function isBrowserEnv(){return"u">typeof window&&void 0!==window.document}function isReactNativeEnv(){return"u">typeof navigator&&navigator?.product==="ReactNative"}function isBrowserDebug(){try{if(isBrowserEnv()&&window.localStorage)return!!localStorage.getItem(BROWSER_LOG_KEY)}catch(e){}return!1}function isDebugMode(){return"u">typeof process&&process.env&&process.env.FEDERATION_DEBUG?!!process.env.FEDERATION_DEBUG:!!("u">typeof FEDERATION_DEBUG&&FEDERATION_DEBUG)||isBrowserDebug()}let getProcessEnv=function(){return"u">typeof process&&process.env?process.env:{}},LOG_CATEGORY="[ Federation Runtime ]",parseEntry=(e,t,n=SEPARATOR)=>{let r=e.split(n),a="development"===getProcessEnv().NODE_ENV&&t,o="*",l=e=>e.startsWith("http")||e.includes(MANIFEST_EXT);if(r.length>=2){let[t,...i]=r;e.startsWith(n)&&(t=r.slice(0,2).join(n),i=[a||r.slice(2).join(n)]);let s=a||i.join(n);return l(s)?{name:t,entry:s}:{name:t,version:s||o}}if(1===r.length){let[e]=r;return a&&l(a)?{name:e,entry:a}:{name:e,version:a||o}}throw`Invalid entry value: ${e}`},composeKeyWithSeparator=function(...e){return e.length?e.reduce((e,t)=>t?e?`${e}${SEPARATOR}${t}`:t:e,""):""},encodeName=function(e,t="",n=!1){try{let r=n?".js":"";return`${t}${e.replace(RegExp(`${NameTransformSymbol.AT}`,"g"),NameTransformMap[NameTransformSymbol.AT]).replace(RegExp(`${NameTransformSymbol.HYPHEN}`,"g"),NameTransformMap[NameTransformSymbol.HYPHEN]).replace(RegExp(`${NameTransformSymbol.SLASH}`,"g"),NameTransformMap[NameTransformSymbol.SLASH])}${r}`}catch(e){throw e}},decodeName=function(e,t,n){try{let r=e;if(t){if(!r.startsWith(t))return r;r=r.replace(RegExp(t,"g"),"")}return r=r.replace(RegExp(`${NameTransformMap[NameTransformSymbol.AT]}`,"g"),EncodedNameTransformMap[NameTransformMap[NameTransformSymbol.AT]]).replace(RegExp(`${NameTransformMap[NameTransformSymbol.SLASH]}`,"g"),EncodedNameTransformMap[NameTransformMap[NameTransformSymbol.SLASH]]).replace(RegExp(`${NameTransformMap[NameTransformSymbol.HYPHEN]}`,"g"),EncodedNameTransformMap[NameTransformMap[NameTransformSymbol.HYPHEN]]),n&&(r=r.replace(".js","")),r}catch(e){throw e}},generateExposeFilename=(e,t)=>{if(!e)return"";let n=e;return"."===n&&(n="default_export"),n.startsWith("./")&&(n=n.replace("./","")),encodeName(n,"__federation_expose_",t)},generateShareFilename=(e,t)=>e?encodeName(e,"__federation_shared_",t):"",getResourceUrl=(e,t)=>{if("getPublicPath"in e){let n;return n=e.getPublicPath.startsWith("function")?Function("return "+e.getPublicPath)()():Function(e.getPublicPath)(),`${n}${t}`}return"publicPath"in e?!isBrowserEnv()&&!isReactNativeEnv()&&"ssrPublicPath"in e?`${e.ssrPublicPath}${t}`:`${e.publicPath}${t}`:(console.warn("Cannot get resource URL. If in debug mode, please ignore.",e,t),"")},assert=(e,t)=>{e||error(t)},error=e=>{throw Error(`${LOG_CATEGORY}: ${e}`)},warn=e=>{console.warn(`${LOG_CATEGORY}: ${e}`)};function safeToString(e){try{return JSON.stringify(e,null,2)}catch(e){return""}}let VERSION_PATTERN_REGEXP=/^([\d^=v<>~]|[*xX]$)/;function isRequiredVersion(e){return VERSION_PATTERN_REGEXP.test(e)}let simpleJoinRemoteEntry=(e,t)=>{if(!e)return t;let n=(e=>{if("."===e)return"";if(e.startsWith("./"))return e.replace("./","");if(e.startsWith("/")){let t=e.slice(1);return t.endsWith("/")?t.slice(0,-1):t}return e})(e);return n?n.endsWith("/")?`${n}${t}`:`${n}/${t}`:t};function inferAutoPublicPath(e){return e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")}function generateSnapshotFromManifest(e,t={}){let n,{remotes:r={},overrides:a={},version:o}=t,l=()=>"publicPath"in e.metaData?"auto"===e.metaData.publicPath&&o?inferAutoPublicPath(o):e.metaData.publicPath:e.metaData.getPublicPath,i=Object.keys(a),s={};Object.keys(r).length||(s=e.remotes?.reduce((e,t)=>{let n,r=t.federationContainerName;return n=i.includes(r)?a[r]:"version"in t?t.version:t.entry,e[r]={matchedVersion:n},e},{})||{}),Object.keys(r).forEach(e=>s[e]={matchedVersion:i.includes(e)?a[e]:r[e]});let{remoteEntry:{path:u,name:c,type:d},types:f={path:"",name:"",zip:"",api:""},buildInfo:{buildVersion:p},globalName:m,ssrRemoteEntry:h}=e.metaData,{exposes:g}=e,b={version:o||"",buildVersion:p,globalName:m,remoteEntry:simpleJoinRemoteEntry(u,c),remoteEntryType:d,remoteTypes:simpleJoinRemoteEntry(f.path,f.name),remoteTypesZip:f.zip||"",remoteTypesAPI:f.api||"",remotesInfo:s,shared:e?.shared.map(e=>({assets:e.assets,sharedName:e.name,version:e.version})),modules:g?.map(e=>({moduleName:e.name,modulePath:e.path,assets:e.assets}))};if(e.metaData?.prefetchInterface){let t=e.metaData.prefetchInterface;b={...b,prefetchInterface:t}}if(e.metaData?.prefetchEntry){let{path:t,name:n,type:r}=e.metaData.prefetchEntry;b={...b,prefetchEntry:simpleJoinRemoteEntry(t,n),prefetchEntryType:r}}return n="publicPath"in e.metaData?{...b,publicPath:l(),ssrPublicPath:e.metaData.ssrPublicPath}:{...b,getPublicPath:l()},h&&(n.ssrRemoteEntry=simpleJoinRemoteEntry(h.path,h.name),n.ssrRemoteEntryType=h.type||"commonjs-module"),n}function isManifestProvider(e){return!!("remoteEntry"in e&&e.remoteEntry.includes(MANIFEST_EXT))}function getManifestFileName(e){if(!e)return{statsFileName:StatsFileName,manifestFileName:ManifestFileName};let t="boolean"==typeof e?"":e.filePath||"",n="boolean"==typeof e?"":e.fileName||"",r=".json",a=e=>e.endsWith(r)?e:`${e}${r}`,o=(e,t)=>e.replace(r,`${t}${r}`),l=n?a(n):ManifestFileName;return{statsFileName:simpleJoinRemoteEntry(t,n?o(l,"-stats"):StatsFileName),manifestFileName:simpleJoinRemoteEntry(t,l)}}let PREFIX="[ Module Federation ]",DEFAULT_DELEGATE=console,LOGGER_STACK_SKIP_TOKENS=["logger.ts","logger.js","captureStackTrace","Logger.emit","Logger.log","Logger.info","Logger.warn","Logger.error","Logger.debug"];function captureStackTrace(){try{let e=Error().stack;if(!e)return;let[,...t]=e.split("\n"),n=t.filter(e=>!LOGGER_STACK_SKIP_TOKENS.some(t=>e.includes(t)));if(!n.length)return;let r=n.slice(0,5).join("\n");return`Stack trace:
14
14
  ${r}`}catch{return}}class Logger{constructor(e,t=DEFAULT_DELEGATE){this.prefix=e,this.delegate=t??DEFAULT_DELEGATE}setPrefix(e){this.prefix=e}setDelegate(e){this.delegate=e??DEFAULT_DELEGATE}emit(e,t){let n=this.delegate,r=isDebugMode()?captureStackTrace():void 0,a=r?[...t,r]:t,o=(()=>{switch(e){case"log":return["log","info"];case"info":return["info","log"];case"warn":return["warn","info","log"];case"error":return["error","warn","log"];default:return["debug","log"]}})();for(let e of o){let t=n[e];if("function"==typeof t)return void t.call(n,this.prefix,...a)}for(let e of o){let t=DEFAULT_DELEGATE[e];if("function"==typeof t)return void t.call(DEFAULT_DELEGATE,this.prefix,...a)}}log(...e){this.emit("log",e)}warn(...e){this.emit("warn",e)}error(...e){this.emit("error",e)}success(...e){this.emit("info",e)}info(...e){this.emit("info",e)}ready(...e){this.emit("info",e)}debug(...e){isDebugMode()&&this.emit("debug",e)}}function createLogger(e){return new Logger(e)}function createInfrastructureLogger(e){let t=new Logger(e);return Object.defineProperty(t,"__mf_infrastructure_logger__",{value:!0,enumerable:!1,configurable:!1}),t}function bindLoggerToCompiler(e,t,n){if(e.__mf_infrastructure_logger__&&t?.getInfrastructureLogger)try{let r=t.getInfrastructureLogger(n);r&&"object"==typeof r&&("function"==typeof r.log||"function"==typeof r.info||"function"==typeof r.warn||"function"==typeof r.error)&&e.setDelegate(r)}catch{e.setDelegate(void 0)}}let logger=createLogger(PREFIX),infrastructureLogger=createInfrastructureLogger(PREFIX);async function safeWrapper(e,t){try{return await e()}catch(e){t||warn(e);return}}function isStaticResourcesEqual(e,t){let n=/^(https?:)?\/\//i;return e.replace(n,"").replace(/\/$/,"")===t.replace(n,"").replace(/\/$/,"")}function createScript(e){let t,n=null,r=!0,a=2e4,o=document.getElementsByTagName("script");for(let t=0;t<o.length;t++){let a=o[t],l=a.getAttribute("src");if(l&&isStaticResourcesEqual(l,e.url)){n=a,r=!1;break}}if(!n){let t,r=e.attrs;(n=document.createElement("script")).type=r?.type==="module"?"module":"text/javascript",e.createScriptHook&&((t=e.createScriptHook(e.url,e.attrs))instanceof HTMLScriptElement?n=t:"object"==typeof t&&("script"in t&&t.script&&(n=t.script),"timeout"in t&&t.timeout&&(a=t.timeout))),n.src||(n.src=e.url),r&&!t&&Object.keys(r).forEach(e=>{n&&("async"===e||"defer"===e?n[e]=r[e]:n.getAttribute(e)||n.setAttribute(e,r[e]))})}let l=async(r,a)=>{clearTimeout(t);let o=()=>{a?.type==="error"?e?.onErrorCallback&&e?.onErrorCallback(a):e?.cb&&e?.cb()};if(n&&(n.onerror=null,n.onload=null,safeWrapper(()=>{let{needDeleteScript:t=!0}=e;t&&n?.parentNode&&n.parentNode.removeChild(n)}),r&&"function"==typeof r)){let e=r(a);if(e instanceof Promise){let t=await e;return o(),t}return o(),e}o()};return n.onerror=l.bind(null,n.onerror),n.onload=l.bind(null,n.onload),t=setTimeout(()=>{l(null,Error(`Remote script "${e.url}" time-outed.`))},a),{script:n,needAttach:r}}function createLink(e){let t=null,n=!0,r=document.getElementsByTagName("link");for(let a=0;a<r.length;a++){let o=r[a],l=o.getAttribute("href"),i=o.getAttribute("rel");if(l&&isStaticResourcesEqual(l,e.url)&&i===e.attrs.rel){t=o,n=!1;break}}if(!t){let n;(t=document.createElement("link")).setAttribute("href",e.url);let r=e.attrs;e.createLinkHook&&(n=e.createLinkHook(e.url,r))instanceof HTMLLinkElement&&(t=n),r&&!n&&Object.keys(r).forEach(e=>{t&&!t.getAttribute(e)&&t.setAttribute(e,r[e])})}let a=(n,r)=>{let a=()=>{r?.type==="error"?e?.onErrorCallback&&e?.onErrorCallback(r):e?.cb&&e?.cb()};if(t&&(t.onerror=null,t.onload=null,safeWrapper(()=>{let{needDeleteLink:n=!0}=e;n&&t?.parentNode&&t.parentNode.removeChild(t)}),n)){let e=n(r);return a(),e}a()};return t.onerror=a.bind(null,t.onerror),t.onload=a.bind(null,t.onload),{link:t,needAttach:n}}function loadScript(e,t){let{attrs:n={},createScriptHook:r}=t;return new Promise((t,a)=>{let{script:o,needAttach:l}=createScript({url:e,cb:t,onErrorCallback:a,attrs:{fetchpriority:"high",...n},createScriptHook:r,needDeleteScript:!0});l&&document.head.appendChild(o)})}let sdkImportCache=new Map;function importNodeModule(e){if(!e)throw Error("import specifier is required");if(sdkImportCache.has(e))return sdkImportCache.get(e);let t=Function("name","return import(name)")(e).then(e=>e).catch(t=>{throw console.error(`Error importing module ${e}:`,t),sdkImportCache.delete(e),t});return sdkImportCache.set(e,t),t}let loadNodeFetch=async()=>{let e=await importNodeModule("node-fetch");return e.default||e},lazyLoaderHookFetch=async(e,t,n)=>{let r=(e,t)=>n.lifecycle.fetch.emit(e,t),a=await r(e,t||{});return a&&a instanceof Response?a:("u"<typeof fetch?await loadNodeFetch():fetch)(e,t||{})},createScriptNode="u"<typeof ENV_TARGET||"web"!==ENV_TARGET?(url,cb,attrs,loaderHook)=>{let urlObj;if(loaderHook?.createScriptHook){let hookResult=loaderHook.createScriptHook(url);hookResult&&"object"==typeof hookResult&&"url"in hookResult&&(url=hookResult.url)}try{urlObj=new URL(url)}catch(e){console.error("Error constructing URL:",e),cb(Error(`Invalid URL: ${e}`));return}let getFetch=async()=>loaderHook?.fetch?(e,t)=>lazyLoaderHookFetch(e,t,loaderHook):"u"<typeof fetch?loadNodeFetch():fetch,handleScriptFetch=async(f,urlObj)=>{try{let res=await f(urlObj.href),data=await res.text(),[path,vm]=await Promise.all([importNodeModule("path"),importNodeModule("vm")]),scriptContext={exports:{},module:{exports:{}}},urlDirname=urlObj.pathname.split("/").slice(0,-1).join("/"),filename=path.basename(urlObj.pathname),script=new vm.Script(`(function(exports, module, require, __dirname, __filename) {${data}
15
15
  })`,{filename,importModuleDynamically:vm.constants?.USE_MAIN_CONTEXT_DEFAULT_LOADER??importNodeModule});script.runInThisContext()(scriptContext.exports,scriptContext.module,eval("require"),urlDirname,filename);let exportedInterface=scriptContext.module.exports||scriptContext.exports;if(attrs&&exportedInterface&&attrs.globalName){let container=exportedInterface[attrs.globalName]||exportedInterface;cb(void 0,container);return}cb(void 0,exportedInterface)}catch(e){cb(e instanceof Error?e:Error(`Script execution error: ${e}`))}};getFetch().then(async e=>{if(attrs?.type==="esm"||attrs?.type==="module")return loadModule(urlObj.href,{fetch:e,vm:await importNodeModule("vm")}).then(async e=>{await e.evaluate(),cb(void 0,e.namespace)}).catch(e=>{cb(e instanceof Error?e:Error(`Script execution error: ${e}`))});handleScriptFetch(e,urlObj)}).catch(e=>{cb(e)})}:(e,t,n,r)=>{t(Error("createScriptNode is disabled in non-Node.js environment"))},loadScriptNode="u"<typeof ENV_TARGET||"web"!==ENV_TARGET?(e,t)=>new Promise((n,r)=>{createScriptNode(e,(e,a)=>{if(e)r(e);else{let e=t?.attrs?.globalName||`__FEDERATION_${t?.attrs?.name}:custom__`;n(globalThis[e]=a)}},t.attrs,t.loaderHook)}):(e,t)=>{throw Error("loadScriptNode is disabled in non-Node.js environment")},esmModuleCache=new Map;async function loadModule(e,t){if(esmModuleCache.has(e))return esmModuleCache.get(e);let{fetch:n,vm:r}=t,a=await n(e),o=await a.text(),l=new r.SourceTextModule(o,{importModuleDynamically:async(n,r)=>loadModule(new URL(n,e).href,t)});return esmModuleCache.set(e,l),await l.link(async n=>{let r=new URL(n,e).href;return await loadModule(r,t)}),l}function normalizeOptions(e,t,n){return function(r){if(!1===r)return!1;if(void 0===r)if(e)return t;else return!1;if(!0===r)return t;if(r&&"object"==typeof r)return{...t,...r};throw Error(`Unexpected type for \`${n}\`, expect boolean/undefined/object, got: ${typeof r}`)}}let createModuleFederationConfig=e=>e;exports.BROWSER_LOG_KEY=BROWSER_LOG_KEY,exports.ENCODE_NAME_PREFIX=ENCODE_NAME_PREFIX,exports.EncodedNameTransformMap=EncodedNameTransformMap,exports.FederationModuleManifest=FederationModuleManifest,exports.MANIFEST_EXT=MANIFEST_EXT,exports.MFModuleType=MFModuleType,exports.MFPrefetchCommon=MFPrefetchCommon,exports.MODULE_DEVTOOL_IDENTIFIER=MODULE_DEVTOOL_IDENTIFIER,exports.ManifestFileName=ManifestFileName,exports.NameTransformMap=NameTransformMap,exports.NameTransformSymbol=NameTransformSymbol,exports.SEPARATOR=SEPARATOR,exports.StatsFileName=StatsFileName,exports.TEMP_DIR=TEMP_DIR,exports.assert=assert,exports.bindLoggerToCompiler=bindLoggerToCompiler,exports.composeKeyWithSeparator=composeKeyWithSeparator,exports.containerPlugin=ContainerPlugin,exports.containerReferencePlugin=ContainerReferencePlugin,exports.createInfrastructureLogger=createInfrastructureLogger,exports.createLink=createLink,exports.createLogger=createLogger,exports.createModuleFederationConfig=createModuleFederationConfig,exports.createScript=createScript,exports.createScriptNode=createScriptNode,exports.decodeName=decodeName,exports.encodeName=encodeName,exports.error=error,exports.generateExposeFilename=generateExposeFilename,exports.generateShareFilename=generateShareFilename,exports.generateSnapshotFromManifest=generateSnapshotFromManifest,exports.getManifestFileName=getManifestFileName,exports.getProcessEnv=getProcessEnv,exports.getResourceUrl=getResourceUrl,exports.inferAutoPublicPath=inferAutoPublicPath,exports.infrastructureLogger=infrastructureLogger,exports.isBrowserEnv=isBrowserEnv,exports.isDebugMode=isDebugMode,exports.isManifestProvider=isManifestProvider,exports.isReactNativeEnv=isReactNativeEnv,exports.isRequiredVersion=isRequiredVersion,exports.isStaticResourcesEqual=isStaticResourcesEqual,exports.loadScript=loadScript,exports.loadScriptNode=loadScriptNode,exports.logger=logger,exports.moduleFederationPlugin=ModuleFederationPlugin,exports.normalizeOptions=normalizeOptions,exports.parseEntry=parseEntry,exports.safeToString=safeToString,exports.safeWrapper=safeWrapper,exports.sharePlugin=SharePlugin,exports.simpleJoinRemoteEntry=simpleJoinRemoteEntry,exports.warn=warn},31629(e,t){"use strict";t.FEDERATION_SUPPORTED_TYPES=["script"]},82707(e,t,n){"use strict";var r=n(86490),a=n(31629),o=n(45882);function l(e){e.S&&!e.federation.hasAttachShareScopeMap&&e.federation.instance&&e.federation.instance.shareScopeMap&&(e.S=e.federation.instance.shareScopeMap,e.federation.hasAttachShareScopeMap=!0)}function i(e){let{webpackRequire:t,moduleToHandlerMapping:n}=e,{consumesLoadingData:r,initializeSharingData:a}=t;if(r&&!r._updated){let{moduleIdToConsumeDataMapping:t={},initialConsumes:a=[],chunkMapping:o={}}=r;if(Object.entries(t).forEach(([e,t])=>{n[e]||(n[e]={getter:t.fallback,shareInfo:{shareConfig:{requiredVersion:t.requiredVersion,strictVersion:t.strictVersion,singleton:t.singleton,eager:t.eager,layer:t.layer},scope:Array.isArray(t.shareScope)?t.shareScope:[t.shareScope||"default"]},shareKey:t.shareKey})}),"initialConsumes"in e){let{initialConsumes:t=[]}=e;a.forEach(e=>{t.includes(e)||t.push(e)})}if("chunkMapping"in e){let{chunkMapping:t={}}=e;Object.entries(o).forEach(([e,n])=>{t[e]||(t[e]=[]),n.forEach(n=>{t[e].includes(n)||t[e].push(n)})})}r._updated=1}if(a&&!a._updated){let{federation:e}=t;if(!e.instance||!a.scopeToSharingDataMapping)return;let n={};for(let[e,t]of Object.entries(a.scopeToSharingDataMapping))for(let r of t)if("object"==typeof r&&null!==r){let{name:t,version:a,factory:o,eager:l,singleton:i,requiredVersion:s,strictVersion:u}=r,c={requiredVersion:`^${a}`},d=function(e){return void 0!==e};d(i)&&(c.singleton=i),d(s)&&(c.requiredVersion=s),d(l)&&(c.eager=l),d(u)&&(c.strictVersion=u);let f={version:a,scope:[e],shareConfig:c,get:o};n[t]?n[t].push(f):n[t]=[f]}e.instance.registerShared(n),a._updated=1}}function s(e){let{webpackRequire:t,idToExternalAndNameMapping:n={},idToRemoteMap:r={},chunkMapping:a={}}=e,{remotesLoadingData:o}=t,l=t.federation?.bundlerRuntimeOptions?.remotes?.remoteInfos;if(!o||o._updated||!l)return;let{chunkMapping:i,moduleIdToRemoteDataMapping:s}=o;if(i&&s){for(let[e,t]of Object.entries(s))if(n[e]||(n[e]=[t.shareScope,t.name,t.externalModuleId]),!r[e]&&l[t.remoteName]){let n=l[t.remoteName];r[e]||=[],n.forEach(t=>{r[e].includes(t)||r[e].push(t)})}a&&Object.entries(i).forEach(([e,t])=>{a[e]||(a[e]=[]),t.forEach(t=>{a[e].includes(t)||a[e].push(t)})}),o._updated=1}}function u(e){s(e);let{chunkId:t,promises:n,webpackRequire:r,chunkMapping:i,idToExternalAndNameMapping:u,idToRemoteMap:c}=e;l(r),r.o(i,t)&&i[t].forEach(e=>{let t=r.R;t||(t=[]);let l=u[e],i=c[e]||[];if(t.indexOf(l)>=0)return;if(t.push(l),l.p)return n.push(l.p);let s=t=>{t||(t=Error("Container missing")),"string"==typeof t.message&&(t.message+=`
16
- while loading "${l[1]}" from ${l[2]}`),r.m[e]=()=>{throw t},l.p=0},d=(e,t,r,a,o,i)=>{try{let u=e(t,r);if(!u||!u.then)return o(u,a,i);{let e=u.then(e=>o(e,a),s);if(!i)return e;n.push(l.p=e)}}catch(e){s(e)}},f=(e,t,n)=>e?d(r.I,l[0],0,e,p,n):s();var p=(e,n,r)=>d(n.get,l[1],t,0,m,r),m=t=>{l.p=1,r.m[e]=e=>{e.exports=t()}};let h=()=>{try{let e=o.decodeName(i[0].name,o.ENCODE_NAME_PREFIX)+l[1].slice(1),t=r.federation.instance,n=()=>r.federation.instance.loadRemote(e,{loadFactory:!1,from:"build"});if("version-first"===t.options.shareStrategy)return Promise.all(t.sharedHandler.initializeSharing(l[0])).then(()=>n());return n()}catch(e){s(e)}};1===i.length&&a.FEDERATION_SUPPORTED_TYPES.includes(i[0].externalType)&&i[0].name?d(h,l[2],0,0,m,1):d(r,l[2],0,0,f,1)})}function c(e){i(e);let{chunkId:t,promises:n,installedModules:r,webpackRequire:a,chunkMapping:o,moduleToHandlerMapping:s}=e;l(a),a.o(o,t)&&o[t].forEach(e=>{if(a.o(r,e))return n.push(r[e]);let t=t=>{r[e]=0,a.m[e]=n=>{delete a.c[e];let r=t(),{shareInfo:o}=s[e];if(o?.shareConfig?.layer&&r&&"object"==typeof r)try{r.hasOwnProperty("layer")&&void 0!==r.layer||(r.layer=o.shareConfig.layer)}catch(e){}n.exports=r}},o=t=>{delete r[e],a.m[e]=n=>{throw delete a.c[e],t}};try{let l=a.federation.instance;if(!l)throw Error("Federation instance not found!");let{shareKey:i,getter:u,shareInfo:c}=s[e],d=l.loadShare(i,{customShareInfo:c}).then(e=>!1===e?u():e);d.then?n.push(r[e]=d.then(t).catch(o)):t(d)}catch(e){o(e)}})}function d({shareScopeName:e,webpackRequire:t,initPromises:n,initTokens:r,initScope:o}){let i=Array.isArray(e)?e:[e];var s=[],u=function(i){o||(o=[]);let s=t.federation.instance;var u=r[i];if(u||(u=r[i]={from:s.name}),o.indexOf(u)>=0)return;o.push(u);let c=n[i];if(c)return c;var d=e=>"u">typeof console&&console.warn&&console.warn(e),f=n=>{var r=e=>d("Initialization of sharing external failed: "+e);try{var a=t(n);if(!a)return;var l=n=>n&&n.init&&n.init(t.S[i],o,{shareScopeMap:t.S||{},shareScopeKeys:e});if(a.then)return p.push(a.then(l,r));var s=l(a);if(s&&"boolean"!=typeof s&&s.then)return p.push(s.catch(r))}catch(e){r(e)}};let p=s.initializeSharing(i,{strategy:s.options.shareStrategy,initScope:o,from:"build"});l(t);let m=t.federation.bundlerRuntimeOptions.remotes;return(m&&Object.keys(m.idToRemoteMap).forEach(e=>{let t=m.idToRemoteMap[e],n=m.idToExternalAndNameMapping[e][2];if(t.length>1)f(n);else if(1===t.length){let e=t[0];a.FEDERATION_SUPPORTED_TYPES.includes(e.externalType)||f(n)}}),p.length)?n[i]=Promise.all(p).then(()=>n[i]=!0):n[i]=!0};return i.forEach(e=>{s.push(u(e))}),Promise.all(s).then(()=>!0)}function f(e){let{moduleId:t,moduleToHandlerMapping:n,webpackRequire:r}=e,a=r.federation.instance;if(!a)throw Error("Federation instance not found!");let{shareKey:o,shareInfo:l}=n[t];try{return a.loadShareSync(o,{customShareInfo:l})}catch(e){throw console.error('loadShareSync failed! The function should not be called unless you set "eager:true". If you do not set it, and encounter this issue, you can check whether an async boundary is implemented.'),console.error("The original error message is as follows: "),e}}function p(e){let{webpackRequire:t}=e;i(e);let{initialConsumes:n,moduleToHandlerMapping:r,installedModules:a}=e;n.forEach(e=>{t.m[e]=n=>{a[e]=0,delete t.c[e];let o=f({moduleId:e,moduleToHandlerMapping:r,webpackRequire:t});if("function"!=typeof o)throw Error(`Shared module is not available for eager consumption: ${e}`);let l=o(),{shareInfo:i}=r[e];if(i?.shareConfig?.layer&&l&&"object"==typeof l)try{l.hasOwnProperty("layer")&&void 0!==l.layer||(l.layer=i.shareConfig.layer)}catch(e){}n.exports=l}})}function m(e){let{webpackRequire:t,shareScope:n,initScope:r,shareScopeKey:a,remoteEntryInitOptions:o}=e;if(!t.S||!t.federation||!t.federation.instance||!t.federation.initOptions)return;let l=t.federation.instance;l.initOptions({name:t.federation.initOptions.name,remotes:[],...o});let i=o?.shareScopeKeys,s=o?.shareScopeMap;if(a&&"string"!=typeof a)a.forEach(e=>{if(!i||!s)return void l.initShareScopeMap(e,n,{hostShareScopeMap:o?.shareScopeMap||{}});s[e]||(s[e]={});let t=s[e];l.initShareScopeMap(e,t,{hostShareScopeMap:o?.shareScopeMap||{}})});else{let e=a||"default";Array.isArray(i)?i.forEach(e=>{s[e]||(s[e]={});let t=s[e];l.initShareScopeMap(e,t,{hostShareScopeMap:o?.shareScopeMap||{}})}):l.initShareScopeMap(e,n,{hostShareScopeMap:o?.shareScopeMap||{}})}return(t.federation.attachShareScopeMap&&t.federation.attachShareScopeMap(t),"function"==typeof t.federation.prefetch&&t.federation.prefetch(),Array.isArray(a))?t.federation.initOptions.shared?t.I(a,r):Promise.all(a.map(e=>t.I(e,r))).then(()=>!0):t.I(a||"default",r)}e.exports={runtime:function(e){var t=Object.create(null);if(e)for(var n in e)t[n]=e[n];return t.default=e,Object.freeze(t)}(r),instance:void 0,initOptions:void 0,bundlerRuntime:{remotes:u,consumes:c,I:d,S:{},installInitialConsumes:p,initContainerEntry:m},attachShareScopeMap:l,bundlerRuntimeOptions:{}}},53373(e){!function(){"use strict";var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,r(n)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var r="";for(var o in e)t.call(e,o)&&e[o]&&(r=a(r,o));return r}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],function(){return n}):window.classNames=n}()},48042(e,t,n){"use strict";n.d(t,{A:()=>f});let r=function(){this.__data__=[],this.size=0};var a=n(26979);let o=function(e,t){for(var n=e.length;n--;)if((0,a.A)(e[n][0],t))return n;return -1};var l=Array.prototype.splice;let i=function(e){var t=this.__data__,n=o(t,e);return!(n<0)&&(n==t.length-1?t.pop():l.call(t,n,1),--this.size,!0)},s=function(e){var t=this.__data__,n=o(t,e);return n<0?void 0:t[n][1]},u=function(e){return o(this.__data__,e)>-1},c=function(e,t){var n=this.__data__,r=o(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function d(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}d.prototype.clear=r,d.prototype.delete=i,d.prototype.get=s,d.prototype.has=u,d.prototype.set=c;let f=d},25436(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(61982),a=n(39600);let o=(0,r.A)(a.A,"Map")},90257(e,t,n){"use strict";n.d(t,{A:()=>N});let r=(0,n(61982).A)(Object,"create"),a=function(){this.__data__=r?r(null):{},this.size=0},o=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t};var l="__lodash_hash_undefined__",i=Object.prototype.hasOwnProperty;let s=function(e){var t=this.__data__;if(r){var n=t[e];return n===l?void 0:n}return i.call(t,e)?t[e]:void 0};var u=Object.prototype.hasOwnProperty;let c=function(e){var t=this.__data__;return r?void 0!==t[e]:u.call(t,e)};var d="__lodash_hash_undefined__";let f=function(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=r&&void 0===t?d:t,this};function p(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}p.prototype.clear=a,p.prototype.delete=o,p.prototype.get=s,p.prototype.has=c,p.prototype.set=f;let m=p;var h=n(48042),g=n(25436);let b=function(){this.size=0,this.__data__={hash:new m,map:new(g.A||h.A),string:new m}},y=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},v=function(e,t){var n=e.__data__;return y(t)?n["string"==typeof t?"string":"hash"]:n.map},w=function(e){var t=v(this,e).delete(e);return this.size-=!!t,t},E=function(e){return v(this,e).get(e)},_=function(e){return v(this,e).has(e)},S=function(e,t){var n=v(this,e),r=n.size;return n.set(e,t),this.size+=+(n.size!=r),this};function x(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}x.prototype.clear=b,x.prototype.delete=w,x.prototype.get=E,x.prototype.has=_,x.prototype.set=S;let N=x},28574(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(61982),a=n(39600);let o=(0,r.A)(a.A,"Set")},44644(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(90257),a="__lodash_hash_undefined__";let o=function(e){return this.__data__.set(e,a),this},l=function(e){return this.__data__.has(e)};function i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r.A;++t<n;)this.add(e[t])}i.prototype.add=i.prototype.push=o,i.prototype.has=l;let s=i},21050(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(48042);let a=function(){this.__data__=new r.A,this.size=0},o=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},l=function(e){return this.__data__.get(e)},i=function(e){return this.__data__.has(e)};var s=n(25436),u=n(90257),c=200;let d=function(e,t){var n=this.__data__;if(n instanceof r.A){var a=n.__data__;if(!s.A||a.length<c-1)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new u.A(a)}return n.set(e,t),this.size=n.size,this};function f(e){var t=this.__data__=new r.A(e);this.size=t.size}f.prototype.clear=a,f.prototype.delete=o,f.prototype.get=l,f.prototype.has=i,f.prototype.set=d;let p=f},83516(e,t,n){"use strict";n.d(t,{A:()=>r});let r=n(39600).A.Symbol},97913(e,t,n){"use strict";n.d(t,{A:()=>r});let r=n(39600).A.Uint8Array},56097(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e,t){for(var n=-1,r=null==e?0:e.length,a=0,o=[];++n<r;){var l=e[n];t(l,n,e)&&(o[a++]=l)}return o}},95403(e,t,n){"use strict";n.d(t,{A:()=>c});let r=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var a=n(86770),o=n(96956),l=n(11917),i=n(85378),s=n(60480),u=Object.prototype.hasOwnProperty;let c=function(e,t){var n=(0,o.A)(e),c=!n&&(0,a.A)(e),d=!n&&!c&&(0,l.A)(e),f=!n&&!c&&!d&&(0,s.A)(e),p=n||c||d||f,m=p?r(e.length,String):[],h=m.length;for(var g in e)(t||u.call(e,g))&&!(p&&("length"==g||d&&("offset"==g||"parent"==g)||f&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||(0,i.A)(g,h)))&&m.push(g);return m}},65133(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}},53271(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}},55798(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(80670),a=n(7817);let o=function(e,t){return e&&(0,r.A)(e,t,a.A)};var l=n(31475);let i=function(e){return function(t,n){if(null==t)return t;if(!(0,l.A)(t))return e(t,n);for(var r=t.length,a=-1,o=Object(t);++a<r&&!1!==n(o[a],a,o););return t}}(o)},80670(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(){return function(e,t,n){for(var r=-1,a=Object(e),o=n(e),l=o.length;l--;){var i=o[++r];if(!1===t(a[i],i,a))break}return e}}()},55841(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(77390),a=n(9322);let o=function(e,t){t=(0,r.A)(t,e);for(var n=0,o=t.length;null!=e&&n<o;)e=e[(0,a.A)(t[n++])];return n&&n==o?e:void 0}},64494(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(53271),a=n(96956);let o=function(e,t,n){var o=t(e);return(0,a.A)(e)?o:(0,r.A)(o,n(e))}},77361(e,t,n){"use strict";n.d(t,{A:()=>m});var r=n(83516),a=Object.prototype,o=a.hasOwnProperty,l=a.toString,i=r.A?r.A.toStringTag:void 0;let s=function(e){var t=o.call(e,i),n=e[i];try{e[i]=void 0;var r=!0}catch(e){}var a=l.call(e);return r&&(t?e[i]=n:delete e[i]),a};var u=Object.prototype.toString;let c=function(e){return u.call(e)};var d="[object Null]",f="[object Undefined]",p=r.A?r.A.toStringTag:void 0;let m=function(e){return null==e?void 0===e?f:d:p&&p in Object(e)?s(e):c(e)}},67077(e,t,n){"use strict";n.d(t,{A:()=>l});let r=function(e,t,n,r){for(var a=e.length,o=n+(r?1:-1);r?o--:++o<a;)if(t(e[o],o,e))return o;return -1},a=function(e){return e!=e},o=function(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return -1},l=function(e,t,n){return t==t?o(e,t,n):r(e,a,n)}},22214(e,t,n){"use strict";n.d(t,{A:()=>G});var r=n(21050),a=n(44644);let o=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};var l=n(62026),i=1,s=2;let u=function(e,t,n,r,u,c){var d=n&i,f=e.length,p=t.length;if(f!=p&&!(d&&p>f))return!1;var m=c.get(e),h=c.get(t);if(m&&h)return m==t&&h==e;var g=-1,b=!0,y=n&s?new a.A:void 0;for(c.set(e,t),c.set(t,e);++g<f;){var v=e[g],w=t[g];if(r)var E=d?r(w,v,g,t,e,c):r(v,w,g,e,t,c);if(void 0!==E){if(E)continue;b=!1;break}if(y){if(!o(t,function(e,t){if(!(0,l.A)(y,t)&&(v===e||u(v,e,n,r,c)))return y.push(t)})){b=!1;break}}else if(!(v===w||u(v,w,n,r,c))){b=!1;break}}return c.delete(e),c.delete(t),b};var c=n(83516),d=n(97913),f=n(26979);let p=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n};var m=n(39922),h=1,g=2,b="[object Boolean]",y="[object Date]",v="[object Error]",w="[object Map]",E="[object Number]",_="[object RegExp]",S="[object Set]",x="[object String]",N="[object Symbol]",k="[object ArrayBuffer]",A="[object DataView]",$=c.A?c.A.prototype:void 0,C=$?$.valueOf:void 0;let T=function(e,t,n,r,a,o,l){switch(n){case A:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case k:if(e.byteLength!=t.byteLength||!o(new d.A(e),new d.A(t)))break;return!0;case b:case y:case E:return(0,f.A)(+e,+t);case v:return e.name==t.name&&e.message==t.message;case _:case x:return e==t+"";case w:var i=p;case S:var s=r&h;if(i||(i=m.A),e.size!=t.size&&!s)break;var c=l.get(e);if(c)return c==t;r|=g,l.set(e,t);var $=u(i(e),i(t),r,a,o,l);return l.delete(e),$;case N:if(C)return C.call(e)==C.call(t)}return!1};var R=n(2475),O=1,I=Object.prototype.hasOwnProperty;let L=function(e,t,n,r,a,o){var l=n&O,i=(0,R.A)(e),s=i.length;if(s!=(0,R.A)(t).length&&!l)return!1;for(var u=s;u--;){var c=i[u];if(!(l?c in t:I.call(t,c)))return!1}var d=o.get(e),f=o.get(t);if(d&&f)return d==t&&f==e;var p=!0;o.set(e,t),o.set(t,e);for(var m=l;++u<s;){var h=e[c=i[u]],g=t[c];if(r)var b=l?r(g,h,c,t,e,o):r(h,g,c,e,t,o);if(!(void 0===b?h===g||a(h,g,n,r,o):b)){p=!1;break}m||(m="constructor"==c)}if(p&&!m){var y=e.constructor,v=t.constructor;y!=v&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof v&&v instanceof v)&&(p=!1)}return o.delete(e),o.delete(t),p};var M=n(90616),P=n(96956),D=n(11917),j=n(60480),z=1,F="[object Arguments]",B="[object Array]",H="[object Object]",V=Object.prototype.hasOwnProperty;let U=function(e,t,n,a,o,l){var i=(0,P.A)(e),s=(0,P.A)(t),c=i?B:(0,M.A)(e),d=s?B:(0,M.A)(t);c=c==F?H:c,d=d==F?H:d;var f=c==H,p=d==H,m=c==d;if(m&&(0,D.A)(e)){if(!(0,D.A)(t))return!1;i=!0,f=!1}if(m&&!f)return l||(l=new r.A),i||(0,j.A)(e)?u(e,t,n,a,o,l):T(e,t,c,n,a,o,l);if(!(n&z)){var h=f&&V.call(e,"__wrapped__"),g=p&&V.call(t,"__wrapped__");if(h||g){var b=h?e.value():e,y=g?t.value():t;return l||(l=new r.A),o(b,y,n,a,l)}}return!!m&&(l||(l=new r.A),L(e,t,n,a,o,l))};var q=n(47313);function W(e,t,n,r,a){return e===t||(null!=e&&null!=t&&((0,q.A)(e)||(0,q.A)(t))?U(e,t,n,r,W,a):e!=e&&t!=t)}let G=W},97002(e,t,n){"use strict";n.d(t,{A:()=>I});var r=n(21050),a=n(22214),o=1,l=2;let i=function(e,t,n,i){var s=n.length,u=s,c=!i;if(null==e)return!u;for(e=Object(e);s--;){var d=n[s];if(c&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}for(;++s<u;){var f=(d=n[s])[0],p=e[f],m=d[1];if(c&&d[2]){if(void 0===p&&!(f in e))return!1}else{var h=new r.A;if(i)var g=i(p,m,f,e,t,h);if(!(void 0===g?(0,a.A)(m,p,o|l,i,h):g))return!1}}return!0};var s=n(97942);let u=function(e){return e==e&&!(0,s.A)(e)};var c=n(7817);let d=function(e){for(var t=(0,c.A)(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,u(a)]}return t},f=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}},p=function(e){var t=d(e);return 1==t.length&&t[0][2]?f(t[0][0],t[0][1]):function(n){return n===e||i(n,e,t)}};var m=n(55841);let h=function(e,t,n){var r=null==e?void 0:(0,m.A)(e,t);return void 0===r?n:r},g=function(e,t){return null!=e&&t in Object(e)};var b=n(77390),y=n(86770),v=n(96956),w=n(85378),E=n(47893),_=n(9322);let S=function(e,t,n){t=(0,b.A)(t,e);for(var r=-1,a=t.length,o=!1;++r<a;){var l=(0,_.A)(t[r]);if(!(o=null!=e&&n(e,l)))break;e=e[l]}return o||++r!=a?o:!!(a=null==e?0:e.length)&&(0,E.A)(a)&&(0,w.A)(l,a)&&((0,v.A)(e)||(0,y.A)(e))},x=function(e,t){return null!=e&&S(e,t,g)};var N=n(1677),k=1,A=2;let $=function(e,t){return(0,N.A)(e)&&u(t)?f((0,_.A)(e),t):function(n){var r=h(n,e);return void 0===r&&r===t?x(n,e):(0,a.A)(t,r,k|A)}};var C=n(14151);let T=function(e){return function(t){return null==t?void 0:t[e]}},R=function(e){return function(t){return(0,m.A)(t,e)}},O=function(e){return(0,N.A)(e)?T((0,_.A)(e)):R(e)},I=function(e){return"function"==typeof e?e:null==e?C.A:"object"==typeof e?(0,v.A)(e)?$(e[0],e[1]):p(e):O(e)}},33264(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(71140);let a=(0,n(67244).A)(Object.keys,Object);var o=Object.prototype.hasOwnProperty;let l=function(e){if(!(0,r.A)(e))return a(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},58126(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e){return function(t){return e(t)}}},62026(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e,t){return e.has(t)}},77390(e,t,n){"use strict";n.d(t,{A:()=>m});var r=n(96956),a=n(1677),o=n(90257),l="Expected a function";function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError(l);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var l=e.apply(this,r);return n.cache=o.set(a,l)||o,l};return n.cache=new(i.Cache||o.A),n}i.Cache=o.A;let s=i;var u=500,c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,d=/\\(\\)?/g;let f=function(e){var t=s(e,function(e){return n.size===u&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(c,function(e,n,r,a){t.push(r?a.replace(d,"$1"):n||e)}),t});var p=n(94888);let m=function(e,t){return(0,r.A)(e)?e:(0,a.A)(e,t)?[e]:f((0,p.A)(e))}},36713(e,t,n){"use strict";n.d(t,{A:()=>r});let r="object"==typeof global&&global&&global.Object===Object&&global},2475(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(64494),a=n(15165),o=n(7817);let l=function(e){return(0,r.A)(e,o.A,a.A)}},61982(e,t,n){"use strict";n.d(t,{A:()=>b});var r=n(50405);let a=n(39600).A["__core-js_shared__"];var o=function(){var e=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();let l=function(e){return!!o&&o in e};var i=n(97942),s=n(1548),u=/[\\^$.*+?()[\]{}|]/g,c=/^\[object .+?Constructor\]$/,d=Object.prototype,f=Function.prototype.toString,p=d.hasOwnProperty,m=RegExp("^"+f.call(p).replace(u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let h=function(e){return!(!(0,i.A)(e)||l(e))&&((0,r.A)(e)?m:c).test((0,s.A)(e))},g=function(e,t){return null==e?void 0:e[t]},b=function(e,t){var n=g(e,t);return h(n)?n:void 0}},15165(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(56097),a=n(11276),o=Object.prototype.propertyIsEnumerable,l=Object.getOwnPropertySymbols;let i=l?function(e){return null==e?[]:(e=Object(e),(0,r.A)(l(e),function(t){return o.call(e,t)}))}:a.A},90616(e,t,n){"use strict";n.d(t,{A:()=>x});var r=n(61982),a=n(39600);let o=(0,r.A)(a.A,"DataView");var l=n(25436);let i=(0,r.A)(a.A,"Promise");var s=n(28574);let u=(0,r.A)(a.A,"WeakMap");var c=n(77361),d=n(1548),f="[object Map]",p="[object Object]",m="[object Promise]",h="[object Set]",g="[object WeakMap]",b="[object DataView]",y=(0,d.A)(o),v=(0,d.A)(l.A),w=(0,d.A)(i),E=(0,d.A)(s.A),_=(0,d.A)(u),S=c.A;(o&&S(new o(new ArrayBuffer(1)))!=b||l.A&&S(new l.A)!=f||i&&S(i.resolve())!=m||s.A&&S(new s.A)!=h||u&&S(new u)!=g)&&(S=function(e){var t=(0,c.A)(e),n=t==p?e.constructor:void 0,r=n?(0,d.A)(n):"";if(r)switch(r){case y:return b;case v:return f;case w:return m;case E:return h;case _:return g}return t});let x=S},85378(e,t,n){"use strict";n.d(t,{A:()=>o});var r=0x1fffffffffffff,a=/^(?:0|[1-9]\d*)$/;let o=function(e,t){var n=typeof e;return!!(t=null==t?r:t)&&("number"==n||"symbol"!=n&&a.test(e))&&e>-1&&e%1==0&&e<t}},1677(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(96956),a=n(84089),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l=/^\w*$/;let i=function(e,t){if((0,r.A)(e))return!1;var n=typeof e;return!!("number"==n||"symbol"==n||"boolean"==n||null==e||(0,a.A)(e))||l.test(e)||!o.test(e)||null!=t&&e in Object(t)}},71140(e,t,n){"use strict";n.d(t,{A:()=>a});var r=Object.prototype;let a=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}},10248(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(36713),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=a&&"object"==typeof module&&module&&!module.nodeType&&module,l=o&&o.exports===a&&r.A.process;let i=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return l&&l.binding&&l.binding("util")}catch(e){}}()},67244(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e,t){return function(n){return e(t(n))}}},39600(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(36713),a="object"==typeof self&&self&&self.Object===Object&&self;let o=r.A||a||Function("return this")()},39922(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},9322(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(84089),a=1/0;let o=function(e){if("string"==typeof e||(0,r.A)(e))return e;var t=e+"";return"0"==t&&1/e==-a?"-0":t}},1548(e,t,n){"use strict";n.d(t,{A:()=>a});var r=Function.prototype.toString;let a=function(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},26979(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e,t){return e===t||e!=e&&t!=t}},5819(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(56097),a=n(55798);let o=function(e,t){var n=[];return(0,a.A)(e,function(e,r,a){t(e,r,a)&&n.push(e)}),n};var l=n(97002),i=n(96956);let s=function(e,t){return((0,i.A)(e)?r.A:o)(e,(0,l.A)(t,3))}},14151(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e){return e}},55898(e,t,n){"use strict";n.d(t,{A:()=>R});var r=n(67077),a=n(31475),o=n(77361),l=n(96956),i=n(47313),s="[object String]";let u=function(e){return"string"==typeof e||!(0,l.A)(e)&&(0,i.A)(e)&&(0,o.A)(e)==s};var c=/\s/;let d=function(e){for(var t=e.length;t--&&c.test(e.charAt(t)););return t};var f=/^\s+/;let p=function(e){return e?e.slice(0,d(e)+1).replace(f,""):e};var m=n(97942),h=n(84089),g=0/0,b=/^[-+]0x[0-9a-f]+$/i,y=/^0b[01]+$/i,v=/^0o[0-7]+$/i,w=parseInt;let E=function(e){if("number"==typeof e)return e;if((0,h.A)(e))return g;if((0,m.A)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=(0,m.A)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=p(e);var n=y.test(e);return n||v.test(e)?w(e.slice(2),n?2:8):b.test(e)?g:+e};var _=1/0,S=17976931348623157e292;let x=function(e){return e?(e=E(e))===_||e===-_?(e<0?-1:1)*S:e==e?e:0:0===e?e:0},N=function(e){var t=x(e),n=t%1;return t==t?n?t-n:t:0};var k=n(65133);let A=function(e,t){return(0,k.A)(t,function(t){return e[t]})};var $=n(7817);let C=function(e){return null==e?[]:A(e,(0,$.A)(e))};var T=Math.max;let R=function(e,t,n,o){e=(0,a.A)(e)?e:C(e),n=n&&!o?N(n):0;var l=e.length;return n<0&&(n=T(l+n,0)),u(e)?n<=l&&e.indexOf(t,n)>-1:!!l&&(0,r.A)(e,t,n)>-1}},86770(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(77361),a=n(47313),o="[object Arguments]";let l=function(e){return(0,a.A)(e)&&(0,r.A)(e)==o};var i=Object.prototype,s=i.hasOwnProperty,u=i.propertyIsEnumerable;let c=l(function(){return arguments}())?l:function(e){return(0,a.A)(e)&&s.call(e,"callee")&&!u.call(e,"callee")}},96956(e,t,n){"use strict";n.d(t,{A:()=>r});let r=Array.isArray},31475(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(50405),a=n(47893);let o=function(e){return null!=e&&(0,a.A)(e.length)&&!(0,r.A)(e)}},11917(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(39600);let a=function(){return!1};var o="object"==typeof exports&&exports&&!exports.nodeType&&exports,l=o&&"object"==typeof module&&module&&!module.nodeType&&module,i=l&&l.exports===o?r.A.Buffer:void 0;let s=(i?i.isBuffer:void 0)||a},50405(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(77361),a=n(97942),o="[object AsyncFunction]",l="[object Function]",i="[object GeneratorFunction]",s="[object Proxy]";let u=function(e){if(!(0,a.A)(e))return!1;var t=(0,r.A)(e);return t==l||t==i||t==o||t==s}},47893(e,t,n){"use strict";n.d(t,{A:()=>a});var r=0x1fffffffffffff;let a=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}},97942(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},47313(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e){return null!=e&&"object"==typeof e}},84089(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(77361),a=n(47313),o="[object Symbol]";let l=function(e){return"symbol"==typeof e||(0,a.A)(e)&&(0,r.A)(e)==o}},60480(e,t,n){"use strict";n.d(t,{A:()=>L});var r=n(77361),a=n(47893),o=n(47313),l="[object Arguments]",i="[object Array]",s="[object Boolean]",u="[object Date]",c="[object Error]",d="[object Function]",f="[object Map]",p="[object Number]",m="[object Object]",h="[object RegExp]",g="[object Set]",b="[object String]",y="[object WeakMap]",v="[object ArrayBuffer]",w="[object DataView]",E="[object Float64Array]",_="[object Int8Array]",S="[object Int16Array]",x="[object Int32Array]",N="[object Uint8Array]",k="[object Uint8ClampedArray]",A="[object Uint16Array]",$="[object Uint32Array]",C={};C["[object Float32Array]"]=C[E]=C[_]=C[S]=C[x]=C[N]=C[k]=C[A]=C[$]=!0,C[l]=C[i]=C[v]=C[s]=C[w]=C[u]=C[c]=C[d]=C[f]=C[p]=C[m]=C[h]=C[g]=C[b]=C[y]=!1;let T=function(e){return(0,o.A)(e)&&(0,a.A)(e.length)&&!!C[(0,r.A)(e)]};var R=n(58126),O=n(10248),I=O.A&&O.A.isTypedArray;let L=I?(0,R.A)(I):T},7817(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(95403),a=n(33264),o=n(31475);let l=function(e){return(0,o.A)(e)?(0,r.A)(e):(0,a.A)(e)}},7587(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(65133),a=n(97002),o=n(55798),l=n(31475);let i=function(e,t){var n=-1,r=(0,l.A)(e)?Array(e.length):[];return(0,o.A)(e,function(e,a,o){r[++n]=t(e,a,o)}),r};var s=n(96956);let u=function(e,t){return((0,s.A)(e)?r.A:i)(e,(0,a.A)(t,3))}},11276(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(){return[]}},94888(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(83516),a=n(65133),o=n(96956),l=n(84089),i=1/0,s=r.A?r.A.prototype:void 0,u=s?s.toString:void 0;function c(e){if("string"==typeof e)return e;if((0,o.A)(e))return(0,a.A)(e,c)+"";if((0,l.A)(e))return u?u.call(e):"";var t=e+"";return"0"==t&&1/e==-i?"-0":t}let d=c,f=function(e){return null==e?"":d(e)}},75329(e,t,n){"use strict";n.d(t,{A:()=>g});var r=n(97002),a=n(44644),o=n(67077);let l=function(e,t){return!!(null==e?0:e.length)&&(0,o.A)(e,t,0)>-1},i=function(e,t,n){for(var r=-1,a=null==e?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1};var s=n(62026),u=n(28574);let c=function(){};var d=n(39922),f=1/0;let p=u.A&&1/(0,d.A)(new u.A([,-0]))[1]==f?function(e){return new u.A(e)}:c;var m=200;let h=function(e,t,n){var r=-1,o=l,u=e.length,c=!0,f=[],h=f;if(n)c=!1,o=i;else if(u>=m){var g=t?null:p(e);if(g)return(0,d.A)(g);c=!1,o=s.A,h=new a.A}else h=t?[]:f;n:for(;++r<u;){var b=e[r],y=t?t(b):b;if(b=n||0!==b?b:0,c&&y==y){for(var v=h.length;v--;)if(h[v]===y)continue n;t&&h.push(y),f.push(b)}else o(h,y,n)||(h!==f&&h.push(y),f.push(b))}return f},g=function(e,t){return e&&e.length?h(e,(0,r.A)(t,2)):[]}},71123(e,t,n){"use strict";n.d(t,{Ay:()=>d,BE:()=>c,iX:()=>l.useSWRConfig});var r=n(35399),a=n.n(r),o=n(58139),l=n(43432);let i=a().use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}),s={dedupe:!0},u=(e,t,n)=>{let{cache:a,compare:u,suspense:c,fallbackData:d,revalidateOnMount:f,revalidateIfStale:p,refreshInterval:m,refreshWhenHidden:h,refreshWhenOffline:g,keepPreviousData:b}=n,[y,v,w,E]=l.SWRGlobalState.get(a),[_,S]=(0,l.serialize)(e),x=(0,r.useRef)(!1),N=(0,r.useRef)(!1),k=(0,r.useRef)(_),A=(0,r.useRef)(t),$=(0,r.useRef)(n),C=()=>$.current,T=()=>C().isVisible()&&C().isOnline(),[R,O,I,L]=(0,l.createCacheHelper)(a,_),M=(0,r.useRef)({}).current,P=(0,l.isUndefined)(d)?n.fallback[_]:d,D=(e,t)=>{for(let n in M){let r=n;if("data"===r){if(!u(e[r],t[r])&&(!(0,l.isUndefined)(e[r])||!u(W,t[r])))return!1}else if(t[r]!==e[r])return!1}return!0},j=(0,r.useMemo)(()=>{let e=!!_&&!!t&&((0,l.isUndefined)(f)?!C().isPaused()&&!c&&(!!(0,l.isUndefined)(p)||p):f),n=t=>{let n=(0,l.mergeObjects)(t);return(delete n._k,e)?{isValidating:!0,isLoading:!0,...n}:n},r=R(),a=L(),o=n(r),i=r===a?o:n(a),s=o;return[()=>{let e=n(R());return D(e,s)?(s.data=e.data,s.isLoading=e.isLoading,s.isValidating=e.isValidating,s.error=e.error,s):(s=e,e)},()=>i]},[a,_]),z=(0,o.useSyncExternalStore)((0,r.useCallback)(e=>I(_,(t,n)=>{D(n,t)||e()}),[a,_]),j[0],j[1]),F=!x.current,B=y[_]&&y[_].length>0,H=z.data,V=(0,l.isUndefined)(H)?P:H,U=z.error,q=(0,r.useRef)(V),W=b?(0,l.isUndefined)(H)?q.current:H:V,G=(!B||!!(0,l.isUndefined)(U))&&(F&&!(0,l.isUndefined)(f)?f:!C().isPaused()&&(c?!(0,l.isUndefined)(V)&&p:(0,l.isUndefined)(V)||p)),K=!!(_&&t&&F&&G),Q=(0,l.isUndefined)(z.isValidating)?K:z.isValidating,Y=(0,l.isUndefined)(z.isLoading)?K:z.isLoading,Z=(0,r.useCallback)(async e=>{let t,r,a=A.current;if(!_||!a||N.current||C().isPaused())return!1;let o=!0,i=e||{},s=!w[_]||!i.dedupe,c=()=>l.IS_REACT_LEGACY?!N.current&&_===k.current&&x.current:_===k.current,d={isValidating:!1,isLoading:!1},f=()=>{O(d)},p=()=>{let e=w[_];e&&e[1]===r&&delete w[_]},m={isValidating:!0};(0,l.isUndefined)(R().data)&&(m.isLoading=!0);try{if(s&&(O(m),n.loadingTimeout&&(0,l.isUndefined)(R().data)&&setTimeout(()=>{o&&c()&&C().onLoadingSlow(_,n)},n.loadingTimeout),w[_]=[a(S),(0,l.getTimestamp)()]),[t,r]=w[_],t=await t,s&&setTimeout(p,n.dedupingInterval),!w[_]||w[_][1]!==r)return s&&c()&&C().onDiscarded(_),!1;d.error=l.UNDEFINED;let e=v[_];if(!(0,l.isUndefined)(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return f(),s&&c()&&C().onDiscarded(_),!1;let i=R().data;d.data=u(i,t)?i:t,s&&c()&&C().onSuccess(t,_,n)}catch(n){p();let e=C(),{shouldRetryOnError:t}=e;!e.isPaused()&&(d.error=n,s&&c()&&(e.onError(n,_,e),(!0===t||(0,l.isFunction)(t)&&t(n))&&(!C().revalidateOnFocus||!C().revalidateOnReconnect||T())&&e.onErrorRetry(n,_,e,e=>{let t=y[_];t&&t[0]&&t[0](l.revalidateEvents.ERROR_REVALIDATE_EVENT,e)},{retryCount:(i.retryCount||0)+1,dedupe:!0})))}return o=!1,f(),!0},[_,a]),X=(0,r.useCallback)((...e)=>(0,l.internalMutate)(a,k.current,...e),[]);if((0,l.useIsomorphicLayoutEffect)(()=>{A.current=t,$.current=n,(0,l.isUndefined)(H)||(q.current=H)}),(0,l.useIsomorphicLayoutEffect)(()=>{if(!_)return;let e=Z.bind(l.UNDEFINED,s),t=0,n=(n,r={})=>{if(n==l.revalidateEvents.FOCUS_EVENT){let n=Date.now();C().revalidateOnFocus&&n>t&&T()&&(t=n+C().focusThrottleInterval,e())}else if(n==l.revalidateEvents.RECONNECT_EVENT)C().revalidateOnReconnect&&T()&&e();else if(n==l.revalidateEvents.MUTATE_EVENT)return Z();else if(n==l.revalidateEvents.ERROR_REVALIDATE_EVENT)return Z(r)},r=(0,l.subscribeCallback)(_,y,n);return N.current=!1,k.current=_,x.current=!0,O({_k:S}),G&&((0,l.isUndefined)(V)||l.IS_SERVER?e():(0,l.rAF)(e)),()=>{N.current=!0,r()}},[_]),(0,l.useIsomorphicLayoutEffect)(()=>{let e;function t(){let t=(0,l.isFunction)(m)?m(R().data):m;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!R().error&&(h||C().isVisible())&&(g||C().isOnline())?Z(s).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[m,h,g,_]),(0,r.useDebugValue)(W),c&&(0,l.isUndefined)(V)&&_){if(!l.IS_REACT_LEGACY&&l.IS_SERVER)throw Error("Fallback data is required when using suspense in SSR.");A.current=t,$.current=n,N.current=!1;let e=E[_];if((0,l.isUndefined)(e)||i(X(e)),(0,l.isUndefined)(U)){let e=Z(s);(0,l.isUndefined)(W)||(e.status="fulfilled",e.value=!0),i(e)}else throw U}return{mutate:X,get data(){return M.data=!0,W},get error(){return M.error=!0,U},get isValidating(){return M.isValidating=!0,Q},get isLoading(){return M.isLoading=!0,Y}}},c=l.OBJECT.defineProperty(l.SWRConfig,"defaultValue",{value:l.defaultConfig}),d=(0,l.withArgs)(u)}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.c=__webpack_module_cache__,__webpack_require__.x=()=>__webpack_require__(99264),(()=>{__webpack_require__.federation||(__webpack_require__.federation={chunkMatcher:function(e){return!/^(5(005|059|265)|1460|4006|8652)$/.test(e)},rootOutputDir:""})})(),(()=>{__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t}})(),(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;__webpack_require__.t=function(n,r){if(1&r&&(n=this(n)),8&r||"object"==typeof n&&n&&(4&r&&n.__esModule||16&r&&"function"==typeof n.then))return n;var a=Object.create(null);__webpack_require__.r(a);var o={};e=e||[null,t({}),t([]),t(t)];for(var l=2&r&&n;("object"==typeof l||"function"==typeof l)&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach(e=>{o[e]=()=>n[e]});return o.default=()=>n,__webpack_require__.d(a,o),a}})(),(()=>{__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}})(),(()=>{__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce((t,n)=>(__webpack_require__.f[n](e,t),t),[]))})(),(()=>{__webpack_require__.u=e=>""+e+".js"})(),(()=>{__webpack_require__.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})()})(),(()=>{__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{var e={},t="@openmrs/esm-patient-programs-app:";__webpack_require__.l=function(n,r,a,o){if(e[n])return void e[n].push(r);if(void 0!==a)for(var l,i,s=document.getElementsByTagName("script"),u=0;u<s.length;u++){var c=s[u];if(c.getAttribute("src")==n||c.getAttribute("data-rspack")==t+a){l=c;break}}l||(i=!0,(l=document.createElement("script")).timeout=120,__webpack_require__.nc&&l.setAttribute("nonce",__webpack_require__.nc),l.setAttribute("data-rspack",t+a),l.src=n),e[n]=[r];var d=function(t,r){l.onerror=l.onload=null,clearTimeout(f);var a=e[n];if(delete e[n],l.parentNode&&l.parentNode.removeChild(l),a&&a.forEach(function(e){return e(r)}),t)return t(r)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=d.bind(null,l.onerror),l.onload=d.bind(null,l.onload),i&&document.head.appendChild(l)}})(),(()=>{__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{__webpack_require__.nc=void 0})(),(()=>{__webpack_require__.rv=()=>"1.7.9"})(),(()=>{__webpack_require__.S={},__webpack_require__.initializeSharingData={scopeToSharingDataMapping:{default:[{name:"@openmrs/esm-framework",version:"10.0.1-pre.4973",factory:()=>Promise.all([__webpack_require__.e("2544"),__webpack_require__.e("689"),__webpack_require__.e("4412"),__webpack_require__.e("7646"),__webpack_require__.e("8652"),__webpack_require__.e("5265"),__webpack_require__.e("5059"),__webpack_require__.e("5005"),__webpack_require__.e("1460")]).then(()=>()=>__webpack_require__(52957)),eager:0,singleton:1,requiredVersion:"10.x",strictVersion:0},{name:"@openmrs/esm-patient-common-lib",version:"12.3.5-pre.11739",factory:()=>Promise.all([__webpack_require__.e("2544"),__webpack_require__.e("689"),__webpack_require__.e("4412"),__webpack_require__.e("8652"),__webpack_require__.e("5265"),__webpack_require__.e("5059"),__webpack_require__.e("5005"),__webpack_require__.e("1460"),__webpack_require__.e("2790"),__webpack_require__.e("4006"),__webpack_require__.e("2506")]).then(()=>()=>__webpack_require__(9189)),eager:0,singleton:1,requiredVersion:"12.x",strictVersion:0},{name:"dayjs",version:"1.11.13",factory:()=>__webpack_require__.e("5697").then(()=>()=>__webpack_require__(23464)),eager:0,singleton:1,requiredVersion:"1.x",strictVersion:0},{name:"react-i18next",version:"16.0.0",factory:()=>Promise.all([__webpack_require__.e("1789"),__webpack_require__.e("8652")]).then(()=>()=>__webpack_require__(42348)),eager:0,singleton:1,requiredVersion:"16.x",strictVersion:0},{name:"react-router-dom",version:"6.30.4",factory:()=>Promise.all([__webpack_require__.e("689"),__webpack_require__.e("9712"),__webpack_require__.e("8652")]).then(()=>()=>__webpack_require__(27059)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"react",version:"18.3.1",factory:()=>__webpack_require__.e("466").then(()=>()=>__webpack_require__(14041)),eager:0,singleton:1,requiredVersion:"18.x",strictVersion:0},{name:"rxjs",version:"6.6.7",factory:()=>__webpack_require__.e("9105").then(()=>()=>__webpack_require__(37864)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"swr/_internal",version:"2.2.5",factory:()=>Promise.all([__webpack_require__.e("3989"),__webpack_require__.e("8652")]).then(()=>()=>__webpack_require__(42372)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/immutable",version:"2.2.5",factory:()=>Promise.all([__webpack_require__.e("9061"),__webpack_require__.e("8652"),__webpack_require__.e("5265"),__webpack_require__.e("3720")]).then(()=>()=>__webpack_require__(29876)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/infinite",version:"2.2.5",factory:()=>Promise.all([__webpack_require__.e("9771"),__webpack_require__.e("8652"),__webpack_require__.e("5265"),__webpack_require__.e("1339")]).then(()=>()=>__webpack_require__(52470)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0}]},uniqueName:"@openmrs/esm-patient-programs-app"},__webpack_require__.I=__webpack_require__.I||function(){throw Error("should have __webpack_require__.I")}})(),(()=>{__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var e,t=__webpack_require__.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw Error("Automatic publicPath is not supported in this browser");__webpack_require__.p=e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")})(),(()=>{__webpack_require__.consumesLoadingData={chunkMapping:{5005:["95571","30682","24354","13660"],1889:["35399","13040","92293","43432","27807"],8652:["35399"],4006:["92293"],5059:["80222"],1460:["27807"],5265:["43432"]},moduleIdToConsumeDataMapping:{80222:{shareScope:"default",shareKey:"dayjs",import:"dayjs",requiredVersion:"1.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("5697").then(()=>()=>__webpack_require__(23464))},30682:{shareScope:"default",shareKey:"swr/infinite",import:"swr/infinite",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("9771").then(()=>()=>__webpack_require__(52470))},35399:{shareScope:"default",shareKey:"react",import:"react",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("466").then(()=>()=>__webpack_require__(14041))},92293:{shareScope:"default",shareKey:"@openmrs/esm-framework",import:"@openmrs/esm-framework",requiredVersion:"10.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([__webpack_require__.e("2544"),__webpack_require__.e("7646"),__webpack_require__.e("5059"),__webpack_require__.e("5005")]).then(()=>()=>__webpack_require__(52957))},24354:{shareScope:"default",shareKey:"rxjs",import:"rxjs",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("9105").then(()=>()=>__webpack_require__(37864))},13040:{shareScope:"default",shareKey:"@openmrs/esm-patient-common-lib",import:"@openmrs/esm-patient-common-lib",requiredVersion:"12.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([__webpack_require__.e("2544"),__webpack_require__.e("5059"),__webpack_require__.e("5005"),__webpack_require__.e("2790")]).then(()=>()=>__webpack_require__(9189))},95571:{shareScope:"default",shareKey:"react-router-dom",import:"react-router-dom",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("9712").then(()=>()=>__webpack_require__(27059))},43432:{shareScope:"default",shareKey:"swr/_internal",import:"swr/_internal",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("3989").then(()=>()=>__webpack_require__(42372))},27807:{shareScope:"default",shareKey:"react-i18next",import:"react-i18next",requiredVersion:"16.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("1789").then(()=>()=>__webpack_require__(42348))},13660:{shareScope:"default",shareKey:"swr/immutable",import:"swr/immutable",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("9061").then(()=>()=>__webpack_require__(29876))}},initialConsumes:["35399","13040","92293","43432","27807"]},__webpack_require__.f.consumes=__webpack_require__.f.consumes||function(){throw Error("should have __webpack_require__.f.consumes")}})(),(()=>{var e={1889:0};__webpack_require__.f.j=function(t,n){var r=__webpack_require__.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else if(/^(5(005|059|265)|1460|4006|8652)$/.test(t))e[t]=0;else{var a=new Promise((n,a)=>r=e[t]=[n,a]);n.push(r[2]=a);var o=__webpack_require__.p+__webpack_require__.u(t),l=Error(),i=function(n){if(__webpack_require__.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var a=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;l.message="Loading chunk "+t+" failed.\n("+a+": "+o+")",l.name="ChunkLoadError",l.type=a,l.request=o,r[1](l)}};__webpack_require__.l(o,i,"chunk-"+t,t)}};var t=(t,n)=>{var r,a,[o,l,i]=n,s=0;if(o.some(t=>0!==e[t])){for(r in l)__webpack_require__.o(l,r)&&(__webpack_require__.m[r]=l[r]);i&&i(__webpack_require__)}for(t&&t(n);s<o.length;s++)a=o[s],__webpack_require__.o(e,a)&&e[a]&&e[a][0](),e[a]=0},n=globalThis.webpackChunk_openmrs_esm_patient_programs_app=globalThis.webpackChunk_openmrs_esm_patient_programs_app||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),(()=>{__webpack_require__.ruid="bundler=rspack@1.7.9"})(),(()=>{var e=__webpack_require__.x,t=!1;__webpack_require__.x=function(){if(t||(t=!0,__webpack_require__(47551)),"function"==typeof e)return e();console.warn("[MF] Invalid prevStartup")}})();var __webpack_exports__=__webpack_require__.x()})();
16
+ while loading "${l[1]}" from ${l[2]}`),r.m[e]=()=>{throw t},l.p=0},d=(e,t,r,a,o,i)=>{try{let u=e(t,r);if(!u||!u.then)return o(u,a,i);{let e=u.then(e=>o(e,a),s);if(!i)return e;n.push(l.p=e)}}catch(e){s(e)}},f=(e,t,n)=>e?d(r.I,l[0],0,e,p,n):s();var p=(e,n,r)=>d(n.get,l[1],t,0,m,r),m=t=>{l.p=1,r.m[e]=e=>{e.exports=t()}};let h=()=>{try{let e=o.decodeName(i[0].name,o.ENCODE_NAME_PREFIX)+l[1].slice(1),t=r.federation.instance,n=()=>r.federation.instance.loadRemote(e,{loadFactory:!1,from:"build"});if("version-first"===t.options.shareStrategy)return Promise.all(t.sharedHandler.initializeSharing(l[0])).then(()=>n());return n()}catch(e){s(e)}};1===i.length&&a.FEDERATION_SUPPORTED_TYPES.includes(i[0].externalType)&&i[0].name?d(h,l[2],0,0,m,1):d(r,l[2],0,0,f,1)})}function c(e){i(e);let{chunkId:t,promises:n,installedModules:r,webpackRequire:a,chunkMapping:o,moduleToHandlerMapping:s}=e;l(a),a.o(o,t)&&o[t].forEach(e=>{if(a.o(r,e))return n.push(r[e]);let t=t=>{r[e]=0,a.m[e]=n=>{delete a.c[e];let r=t(),{shareInfo:o}=s[e];if(o?.shareConfig?.layer&&r&&"object"==typeof r)try{r.hasOwnProperty("layer")&&void 0!==r.layer||(r.layer=o.shareConfig.layer)}catch(e){}n.exports=r}},o=t=>{delete r[e],a.m[e]=n=>{throw delete a.c[e],t}};try{let l=a.federation.instance;if(!l)throw Error("Federation instance not found!");let{shareKey:i,getter:u,shareInfo:c}=s[e],d=l.loadShare(i,{customShareInfo:c}).then(e=>!1===e?u():e);d.then?n.push(r[e]=d.then(t).catch(o)):t(d)}catch(e){o(e)}})}function d({shareScopeName:e,webpackRequire:t,initPromises:n,initTokens:r,initScope:o}){let i=Array.isArray(e)?e:[e];var s=[],u=function(i){o||(o=[]);let s=t.federation.instance;var u=r[i];if(u||(u=r[i]={from:s.name}),o.indexOf(u)>=0)return;o.push(u);let c=n[i];if(c)return c;var d=e=>"u">typeof console&&console.warn&&console.warn(e),f=n=>{var r=e=>d("Initialization of sharing external failed: "+e);try{var a=t(n);if(!a)return;var l=n=>n&&n.init&&n.init(t.S[i],o,{shareScopeMap:t.S||{},shareScopeKeys:e});if(a.then)return p.push(a.then(l,r));var s=l(a);if(s&&"boolean"!=typeof s&&s.then)return p.push(s.catch(r))}catch(e){r(e)}};let p=s.initializeSharing(i,{strategy:s.options.shareStrategy,initScope:o,from:"build"});l(t);let m=t.federation.bundlerRuntimeOptions.remotes;return(m&&Object.keys(m.idToRemoteMap).forEach(e=>{let t=m.idToRemoteMap[e],n=m.idToExternalAndNameMapping[e][2];if(t.length>1)f(n);else if(1===t.length){let e=t[0];a.FEDERATION_SUPPORTED_TYPES.includes(e.externalType)||f(n)}}),p.length)?n[i]=Promise.all(p).then(()=>n[i]=!0):n[i]=!0};return i.forEach(e=>{s.push(u(e))}),Promise.all(s).then(()=>!0)}function f(e){let{moduleId:t,moduleToHandlerMapping:n,webpackRequire:r}=e,a=r.federation.instance;if(!a)throw Error("Federation instance not found!");let{shareKey:o,shareInfo:l}=n[t];try{return a.loadShareSync(o,{customShareInfo:l})}catch(e){throw console.error('loadShareSync failed! The function should not be called unless you set "eager:true". If you do not set it, and encounter this issue, you can check whether an async boundary is implemented.'),console.error("The original error message is as follows: "),e}}function p(e){let{webpackRequire:t}=e;i(e);let{initialConsumes:n,moduleToHandlerMapping:r,installedModules:a}=e;n.forEach(e=>{t.m[e]=n=>{a[e]=0,delete t.c[e];let o=f({moduleId:e,moduleToHandlerMapping:r,webpackRequire:t});if("function"!=typeof o)throw Error(`Shared module is not available for eager consumption: ${e}`);let l=o(),{shareInfo:i}=r[e];if(i?.shareConfig?.layer&&l&&"object"==typeof l)try{l.hasOwnProperty("layer")&&void 0!==l.layer||(l.layer=i.shareConfig.layer)}catch(e){}n.exports=l}})}function m(e){let{webpackRequire:t,shareScope:n,initScope:r,shareScopeKey:a,remoteEntryInitOptions:o}=e;if(!t.S||!t.federation||!t.federation.instance||!t.federation.initOptions)return;let l=t.federation.instance;l.initOptions({name:t.federation.initOptions.name,remotes:[],...o});let i=o?.shareScopeKeys,s=o?.shareScopeMap;if(a&&"string"!=typeof a)a.forEach(e=>{if(!i||!s)return void l.initShareScopeMap(e,n,{hostShareScopeMap:o?.shareScopeMap||{}});s[e]||(s[e]={});let t=s[e];l.initShareScopeMap(e,t,{hostShareScopeMap:o?.shareScopeMap||{}})});else{let e=a||"default";Array.isArray(i)?i.forEach(e=>{s[e]||(s[e]={});let t=s[e];l.initShareScopeMap(e,t,{hostShareScopeMap:o?.shareScopeMap||{}})}):l.initShareScopeMap(e,n,{hostShareScopeMap:o?.shareScopeMap||{}})}return(t.federation.attachShareScopeMap&&t.federation.attachShareScopeMap(t),"function"==typeof t.federation.prefetch&&t.federation.prefetch(),Array.isArray(a))?t.federation.initOptions.shared?t.I(a,r):Promise.all(a.map(e=>t.I(e,r))).then(()=>!0):t.I(a||"default",r)}e.exports={runtime:function(e){var t=Object.create(null);if(e)for(var n in e)t[n]=e[n];return t.default=e,Object.freeze(t)}(r),instance:void 0,initOptions:void 0,bundlerRuntime:{remotes:u,consumes:c,I:d,S:{},installInitialConsumes:p,initContainerEntry:m},attachShareScopeMap:l,bundlerRuntimeOptions:{}}},53373(e){!function(){"use strict";var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,r(n)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var r="";for(var o in e)t.call(e,o)&&e[o]&&(r=a(r,o));return r}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],function(){return n}):window.classNames=n}()},48042(e,t,n){"use strict";n.d(t,{A:()=>f});let r=function(){this.__data__=[],this.size=0};var a=n(26979);let o=function(e,t){for(var n=e.length;n--;)if((0,a.A)(e[n][0],t))return n;return -1};var l=Array.prototype.splice;let i=function(e){var t=this.__data__,n=o(t,e);return!(n<0)&&(n==t.length-1?t.pop():l.call(t,n,1),--this.size,!0)},s=function(e){var t=this.__data__,n=o(t,e);return n<0?void 0:t[n][1]},u=function(e){return o(this.__data__,e)>-1},c=function(e,t){var n=this.__data__,r=o(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function d(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}d.prototype.clear=r,d.prototype.delete=i,d.prototype.get=s,d.prototype.has=u,d.prototype.set=c;let f=d},25436(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(61982),a=n(39600);let o=(0,r.A)(a.A,"Map")},90257(e,t,n){"use strict";n.d(t,{A:()=>N});let r=(0,n(61982).A)(Object,"create"),a=function(){this.__data__=r?r(null):{},this.size=0},o=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t};var l="__lodash_hash_undefined__",i=Object.prototype.hasOwnProperty;let s=function(e){var t=this.__data__;if(r){var n=t[e];return n===l?void 0:n}return i.call(t,e)?t[e]:void 0};var u=Object.prototype.hasOwnProperty;let c=function(e){var t=this.__data__;return r?void 0!==t[e]:u.call(t,e)};var d="__lodash_hash_undefined__";let f=function(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=r&&void 0===t?d:t,this};function p(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}p.prototype.clear=a,p.prototype.delete=o,p.prototype.get=s,p.prototype.has=c,p.prototype.set=f;let m=p;var h=n(48042),g=n(25436);let b=function(){this.size=0,this.__data__={hash:new m,map:new(g.A||h.A),string:new m}},y=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},v=function(e,t){var n=e.__data__;return y(t)?n["string"==typeof t?"string":"hash"]:n.map},w=function(e){var t=v(this,e).delete(e);return this.size-=!!t,t},E=function(e){return v(this,e).get(e)},_=function(e){return v(this,e).has(e)},S=function(e,t){var n=v(this,e),r=n.size;return n.set(e,t),this.size+=+(n.size!=r),this};function x(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}x.prototype.clear=b,x.prototype.delete=w,x.prototype.get=E,x.prototype.has=_,x.prototype.set=S;let N=x},28574(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(61982),a=n(39600);let o=(0,r.A)(a.A,"Set")},44644(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(90257),a="__lodash_hash_undefined__";let o=function(e){return this.__data__.set(e,a),this},l=function(e){return this.__data__.has(e)};function i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r.A;++t<n;)this.add(e[t])}i.prototype.add=i.prototype.push=o,i.prototype.has=l;let s=i},21050(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(48042);let a=function(){this.__data__=new r.A,this.size=0},o=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},l=function(e){return this.__data__.get(e)},i=function(e){return this.__data__.has(e)};var s=n(25436),u=n(90257),c=200;let d=function(e,t){var n=this.__data__;if(n instanceof r.A){var a=n.__data__;if(!s.A||a.length<c-1)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new u.A(a)}return n.set(e,t),this.size=n.size,this};function f(e){var t=this.__data__=new r.A(e);this.size=t.size}f.prototype.clear=a,f.prototype.delete=o,f.prototype.get=l,f.prototype.has=i,f.prototype.set=d;let p=f},83516(e,t,n){"use strict";n.d(t,{A:()=>r});let r=n(39600).A.Symbol},97913(e,t,n){"use strict";n.d(t,{A:()=>r});let r=n(39600).A.Uint8Array},56097(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e,t){for(var n=-1,r=null==e?0:e.length,a=0,o=[];++n<r;){var l=e[n];t(l,n,e)&&(o[a++]=l)}return o}},95403(e,t,n){"use strict";n.d(t,{A:()=>c});let r=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var a=n(86770),o=n(96956),l=n(11917),i=n(85378),s=n(60480),u=Object.prototype.hasOwnProperty;let c=function(e,t){var n=(0,o.A)(e),c=!n&&(0,a.A)(e),d=!n&&!c&&(0,l.A)(e),f=!n&&!c&&!d&&(0,s.A)(e),p=n||c||d||f,m=p?r(e.length,String):[],h=m.length;for(var g in e)(t||u.call(e,g))&&!(p&&("length"==g||d&&("offset"==g||"parent"==g)||f&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||(0,i.A)(g,h)))&&m.push(g);return m}},65133(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}},53271(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}},55798(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(80670),a=n(7817);let o=function(e,t){return e&&(0,r.A)(e,t,a.A)};var l=n(31475);let i=function(e){return function(t,n){if(null==t)return t;if(!(0,l.A)(t))return e(t,n);for(var r=t.length,a=-1,o=Object(t);++a<r&&!1!==n(o[a],a,o););return t}}(o)},80670(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(){return function(e,t,n){for(var r=-1,a=Object(e),o=n(e),l=o.length;l--;){var i=o[++r];if(!1===t(a[i],i,a))break}return e}}()},55841(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(77390),a=n(9322);let o=function(e,t){t=(0,r.A)(t,e);for(var n=0,o=t.length;null!=e&&n<o;)e=e[(0,a.A)(t[n++])];return n&&n==o?e:void 0}},64494(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(53271),a=n(96956);let o=function(e,t,n){var o=t(e);return(0,a.A)(e)?o:(0,r.A)(o,n(e))}},77361(e,t,n){"use strict";n.d(t,{A:()=>m});var r=n(83516),a=Object.prototype,o=a.hasOwnProperty,l=a.toString,i=r.A?r.A.toStringTag:void 0;let s=function(e){var t=o.call(e,i),n=e[i];try{e[i]=void 0;var r=!0}catch(e){}var a=l.call(e);return r&&(t?e[i]=n:delete e[i]),a};var u=Object.prototype.toString;let c=function(e){return u.call(e)};var d="[object Null]",f="[object Undefined]",p=r.A?r.A.toStringTag:void 0;let m=function(e){return null==e?void 0===e?f:d:p&&p in Object(e)?s(e):c(e)}},67077(e,t,n){"use strict";n.d(t,{A:()=>l});let r=function(e,t,n,r){for(var a=e.length,o=n+(r?1:-1);r?o--:++o<a;)if(t(e[o],o,e))return o;return -1},a=function(e){return e!=e},o=function(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return -1},l=function(e,t,n){return t==t?o(e,t,n):r(e,a,n)}},22214(e,t,n){"use strict";n.d(t,{A:()=>G});var r=n(21050),a=n(44644);let o=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};var l=n(62026),i=1,s=2;let u=function(e,t,n,r,u,c){var d=n&i,f=e.length,p=t.length;if(f!=p&&!(d&&p>f))return!1;var m=c.get(e),h=c.get(t);if(m&&h)return m==t&&h==e;var g=-1,b=!0,y=n&s?new a.A:void 0;for(c.set(e,t),c.set(t,e);++g<f;){var v=e[g],w=t[g];if(r)var E=d?r(w,v,g,t,e,c):r(v,w,g,e,t,c);if(void 0!==E){if(E)continue;b=!1;break}if(y){if(!o(t,function(e,t){if(!(0,l.A)(y,t)&&(v===e||u(v,e,n,r,c)))return y.push(t)})){b=!1;break}}else if(!(v===w||u(v,w,n,r,c))){b=!1;break}}return c.delete(e),c.delete(t),b};var c=n(83516),d=n(97913),f=n(26979);let p=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n};var m=n(39922),h=1,g=2,b="[object Boolean]",y="[object Date]",v="[object Error]",w="[object Map]",E="[object Number]",_="[object RegExp]",S="[object Set]",x="[object String]",N="[object Symbol]",k="[object ArrayBuffer]",A="[object DataView]",$=c.A?c.A.prototype:void 0,C=$?$.valueOf:void 0;let T=function(e,t,n,r,a,o,l){switch(n){case A:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case k:if(e.byteLength!=t.byteLength||!o(new d.A(e),new d.A(t)))break;return!0;case b:case y:case E:return(0,f.A)(+e,+t);case v:return e.name==t.name&&e.message==t.message;case _:case x:return e==t+"";case w:var i=p;case S:var s=r&h;if(i||(i=m.A),e.size!=t.size&&!s)break;var c=l.get(e);if(c)return c==t;r|=g,l.set(e,t);var $=u(i(e),i(t),r,a,o,l);return l.delete(e),$;case N:if(C)return C.call(e)==C.call(t)}return!1};var R=n(2475),O=1,I=Object.prototype.hasOwnProperty;let L=function(e,t,n,r,a,o){var l=n&O,i=(0,R.A)(e),s=i.length;if(s!=(0,R.A)(t).length&&!l)return!1;for(var u=s;u--;){var c=i[u];if(!(l?c in t:I.call(t,c)))return!1}var d=o.get(e),f=o.get(t);if(d&&f)return d==t&&f==e;var p=!0;o.set(e,t),o.set(t,e);for(var m=l;++u<s;){var h=e[c=i[u]],g=t[c];if(r)var b=l?r(g,h,c,t,e,o):r(h,g,c,e,t,o);if(!(void 0===b?h===g||a(h,g,n,r,o):b)){p=!1;break}m||(m="constructor"==c)}if(p&&!m){var y=e.constructor,v=t.constructor;y!=v&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof v&&v instanceof v)&&(p=!1)}return o.delete(e),o.delete(t),p};var M=n(90616),P=n(96956),D=n(11917),j=n(60480),z=1,F="[object Arguments]",B="[object Array]",H="[object Object]",V=Object.prototype.hasOwnProperty;let U=function(e,t,n,a,o,l){var i=(0,P.A)(e),s=(0,P.A)(t),c=i?B:(0,M.A)(e),d=s?B:(0,M.A)(t);c=c==F?H:c,d=d==F?H:d;var f=c==H,p=d==H,m=c==d;if(m&&(0,D.A)(e)){if(!(0,D.A)(t))return!1;i=!0,f=!1}if(m&&!f)return l||(l=new r.A),i||(0,j.A)(e)?u(e,t,n,a,o,l):T(e,t,c,n,a,o,l);if(!(n&z)){var h=f&&V.call(e,"__wrapped__"),g=p&&V.call(t,"__wrapped__");if(h||g){var b=h?e.value():e,y=g?t.value():t;return l||(l=new r.A),o(b,y,n,a,l)}}return!!m&&(l||(l=new r.A),L(e,t,n,a,o,l))};var q=n(47313);function W(e,t,n,r,a){return e===t||(null!=e&&null!=t&&((0,q.A)(e)||(0,q.A)(t))?U(e,t,n,r,W,a):e!=e&&t!=t)}let G=W},97002(e,t,n){"use strict";n.d(t,{A:()=>I});var r=n(21050),a=n(22214),o=1,l=2;let i=function(e,t,n,i){var s=n.length,u=s,c=!i;if(null==e)return!u;for(e=Object(e);s--;){var d=n[s];if(c&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}for(;++s<u;){var f=(d=n[s])[0],p=e[f],m=d[1];if(c&&d[2]){if(void 0===p&&!(f in e))return!1}else{var h=new r.A;if(i)var g=i(p,m,f,e,t,h);if(!(void 0===g?(0,a.A)(m,p,o|l,i,h):g))return!1}}return!0};var s=n(97942);let u=function(e){return e==e&&!(0,s.A)(e)};var c=n(7817);let d=function(e){for(var t=(0,c.A)(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,u(a)]}return t},f=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}},p=function(e){var t=d(e);return 1==t.length&&t[0][2]?f(t[0][0],t[0][1]):function(n){return n===e||i(n,e,t)}};var m=n(55841);let h=function(e,t,n){var r=null==e?void 0:(0,m.A)(e,t);return void 0===r?n:r},g=function(e,t){return null!=e&&t in Object(e)};var b=n(77390),y=n(86770),v=n(96956),w=n(85378),E=n(47893),_=n(9322);let S=function(e,t,n){t=(0,b.A)(t,e);for(var r=-1,a=t.length,o=!1;++r<a;){var l=(0,_.A)(t[r]);if(!(o=null!=e&&n(e,l)))break;e=e[l]}return o||++r!=a?o:!!(a=null==e?0:e.length)&&(0,E.A)(a)&&(0,w.A)(l,a)&&((0,v.A)(e)||(0,y.A)(e))},x=function(e,t){return null!=e&&S(e,t,g)};var N=n(1677),k=1,A=2;let $=function(e,t){return(0,N.A)(e)&&u(t)?f((0,_.A)(e),t):function(n){var r=h(n,e);return void 0===r&&r===t?x(n,e):(0,a.A)(t,r,k|A)}};var C=n(14151);let T=function(e){return function(t){return null==t?void 0:t[e]}},R=function(e){return function(t){return(0,m.A)(t,e)}},O=function(e){return(0,N.A)(e)?T((0,_.A)(e)):R(e)},I=function(e){return"function"==typeof e?e:null==e?C.A:"object"==typeof e?(0,v.A)(e)?$(e[0],e[1]):p(e):O(e)}},33264(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(71140);let a=(0,n(67244).A)(Object.keys,Object);var o=Object.prototype.hasOwnProperty;let l=function(e){if(!(0,r.A)(e))return a(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},58126(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e){return function(t){return e(t)}}},62026(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e,t){return e.has(t)}},77390(e,t,n){"use strict";n.d(t,{A:()=>m});var r=n(96956),a=n(1677),o=n(90257),l="Expected a function";function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError(l);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var l=e.apply(this,r);return n.cache=o.set(a,l)||o,l};return n.cache=new(i.Cache||o.A),n}i.Cache=o.A;let s=i;var u=500,c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,d=/\\(\\)?/g;let f=function(e){var t=s(e,function(e){return n.size===u&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(c,function(e,n,r,a){t.push(r?a.replace(d,"$1"):n||e)}),t});var p=n(94888);let m=function(e,t){return(0,r.A)(e)?e:(0,a.A)(e,t)?[e]:f((0,p.A)(e))}},36713(e,t,n){"use strict";n.d(t,{A:()=>r});let r="object"==typeof global&&global&&global.Object===Object&&global},2475(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(64494),a=n(15165),o=n(7817);let l=function(e){return(0,r.A)(e,o.A,a.A)}},61982(e,t,n){"use strict";n.d(t,{A:()=>b});var r=n(50405);let a=n(39600).A["__core-js_shared__"];var o=function(){var e=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();let l=function(e){return!!o&&o in e};var i=n(97942),s=n(1548),u=/[\\^$.*+?()[\]{}|]/g,c=/^\[object .+?Constructor\]$/,d=Object.prototype,f=Function.prototype.toString,p=d.hasOwnProperty,m=RegExp("^"+f.call(p).replace(u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let h=function(e){return!(!(0,i.A)(e)||l(e))&&((0,r.A)(e)?m:c).test((0,s.A)(e))},g=function(e,t){return null==e?void 0:e[t]},b=function(e,t){var n=g(e,t);return h(n)?n:void 0}},15165(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(56097),a=n(11276),o=Object.prototype.propertyIsEnumerable,l=Object.getOwnPropertySymbols;let i=l?function(e){return null==e?[]:(e=Object(e),(0,r.A)(l(e),function(t){return o.call(e,t)}))}:a.A},90616(e,t,n){"use strict";n.d(t,{A:()=>x});var r=n(61982),a=n(39600);let o=(0,r.A)(a.A,"DataView");var l=n(25436);let i=(0,r.A)(a.A,"Promise");var s=n(28574);let u=(0,r.A)(a.A,"WeakMap");var c=n(77361),d=n(1548),f="[object Map]",p="[object Object]",m="[object Promise]",h="[object Set]",g="[object WeakMap]",b="[object DataView]",y=(0,d.A)(o),v=(0,d.A)(l.A),w=(0,d.A)(i),E=(0,d.A)(s.A),_=(0,d.A)(u),S=c.A;(o&&S(new o(new ArrayBuffer(1)))!=b||l.A&&S(new l.A)!=f||i&&S(i.resolve())!=m||s.A&&S(new s.A)!=h||u&&S(new u)!=g)&&(S=function(e){var t=(0,c.A)(e),n=t==p?e.constructor:void 0,r=n?(0,d.A)(n):"";if(r)switch(r){case y:return b;case v:return f;case w:return m;case E:return h;case _:return g}return t});let x=S},85378(e,t,n){"use strict";n.d(t,{A:()=>o});var r=0x1fffffffffffff,a=/^(?:0|[1-9]\d*)$/;let o=function(e,t){var n=typeof e;return!!(t=null==t?r:t)&&("number"==n||"symbol"!=n&&a.test(e))&&e>-1&&e%1==0&&e<t}},1677(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(96956),a=n(84089),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l=/^\w*$/;let i=function(e,t){if((0,r.A)(e))return!1;var n=typeof e;return!!("number"==n||"symbol"==n||"boolean"==n||null==e||(0,a.A)(e))||l.test(e)||!o.test(e)||null!=t&&e in Object(t)}},71140(e,t,n){"use strict";n.d(t,{A:()=>a});var r=Object.prototype;let a=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}},10248(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(36713),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=a&&"object"==typeof module&&module&&!module.nodeType&&module,l=o&&o.exports===a&&r.A.process;let i=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return l&&l.binding&&l.binding("util")}catch(e){}}()},67244(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e,t){return function(n){return e(t(n))}}},39600(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(36713),a="object"==typeof self&&self&&self.Object===Object&&self;let o=r.A||a||Function("return this")()},39922(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},9322(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(84089),a=1/0;let o=function(e){if("string"==typeof e||(0,r.A)(e))return e;var t=e+"";return"0"==t&&1/e==-a?"-0":t}},1548(e,t,n){"use strict";n.d(t,{A:()=>a});var r=Function.prototype.toString;let a=function(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},26979(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e,t){return e===t||e!=e&&t!=t}},5819(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(56097),a=n(55798);let o=function(e,t){var n=[];return(0,a.A)(e,function(e,r,a){t(e,r,a)&&n.push(e)}),n};var l=n(97002),i=n(96956);let s=function(e,t){return((0,i.A)(e)?r.A:o)(e,(0,l.A)(t,3))}},14151(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e){return e}},55898(e,t,n){"use strict";n.d(t,{A:()=>R});var r=n(67077),a=n(31475),o=n(77361),l=n(96956),i=n(47313),s="[object String]";let u=function(e){return"string"==typeof e||!(0,l.A)(e)&&(0,i.A)(e)&&(0,o.A)(e)==s};var c=/\s/;let d=function(e){for(var t=e.length;t--&&c.test(e.charAt(t)););return t};var f=/^\s+/;let p=function(e){return e?e.slice(0,d(e)+1).replace(f,""):e};var m=n(97942),h=n(84089),g=0/0,b=/^[-+]0x[0-9a-f]+$/i,y=/^0b[01]+$/i,v=/^0o[0-7]+$/i,w=parseInt;let E=function(e){if("number"==typeof e)return e;if((0,h.A)(e))return g;if((0,m.A)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=(0,m.A)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=p(e);var n=y.test(e);return n||v.test(e)?w(e.slice(2),n?2:8):b.test(e)?g:+e};var _=1/0,S=17976931348623157e292;let x=function(e){return e?(e=E(e))===_||e===-_?(e<0?-1:1)*S:e==e?e:0:0===e?e:0},N=function(e){var t=x(e),n=t%1;return t==t?n?t-n:t:0};var k=n(65133);let A=function(e,t){return(0,k.A)(t,function(t){return e[t]})};var $=n(7817);let C=function(e){return null==e?[]:A(e,(0,$.A)(e))};var T=Math.max;let R=function(e,t,n,o){e=(0,a.A)(e)?e:C(e),n=n&&!o?N(n):0;var l=e.length;return n<0&&(n=T(l+n,0)),u(e)?n<=l&&e.indexOf(t,n)>-1:!!l&&(0,r.A)(e,t,n)>-1}},86770(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(77361),a=n(47313),o="[object Arguments]";let l=function(e){return(0,a.A)(e)&&(0,r.A)(e)==o};var i=Object.prototype,s=i.hasOwnProperty,u=i.propertyIsEnumerable;let c=l(function(){return arguments}())?l:function(e){return(0,a.A)(e)&&s.call(e,"callee")&&!u.call(e,"callee")}},96956(e,t,n){"use strict";n.d(t,{A:()=>r});let r=Array.isArray},31475(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(50405),a=n(47893);let o=function(e){return null!=e&&(0,a.A)(e.length)&&!(0,r.A)(e)}},11917(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(39600);let a=function(){return!1};var o="object"==typeof exports&&exports&&!exports.nodeType&&exports,l=o&&"object"==typeof module&&module&&!module.nodeType&&module,i=l&&l.exports===o?r.A.Buffer:void 0;let s=(i?i.isBuffer:void 0)||a},50405(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(77361),a=n(97942),o="[object AsyncFunction]",l="[object Function]",i="[object GeneratorFunction]",s="[object Proxy]";let u=function(e){if(!(0,a.A)(e))return!1;var t=(0,r.A)(e);return t==l||t==i||t==o||t==s}},47893(e,t,n){"use strict";n.d(t,{A:()=>a});var r=0x1fffffffffffff;let a=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}},97942(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},47313(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(e){return null!=e&&"object"==typeof e}},84089(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(77361),a=n(47313),o="[object Symbol]";let l=function(e){return"symbol"==typeof e||(0,a.A)(e)&&(0,r.A)(e)==o}},60480(e,t,n){"use strict";n.d(t,{A:()=>L});var r=n(77361),a=n(47893),o=n(47313),l="[object Arguments]",i="[object Array]",s="[object Boolean]",u="[object Date]",c="[object Error]",d="[object Function]",f="[object Map]",p="[object Number]",m="[object Object]",h="[object RegExp]",g="[object Set]",b="[object String]",y="[object WeakMap]",v="[object ArrayBuffer]",w="[object DataView]",E="[object Float64Array]",_="[object Int8Array]",S="[object Int16Array]",x="[object Int32Array]",N="[object Uint8Array]",k="[object Uint8ClampedArray]",A="[object Uint16Array]",$="[object Uint32Array]",C={};C["[object Float32Array]"]=C[E]=C[_]=C[S]=C[x]=C[N]=C[k]=C[A]=C[$]=!0,C[l]=C[i]=C[v]=C[s]=C[w]=C[u]=C[c]=C[d]=C[f]=C[p]=C[m]=C[h]=C[g]=C[b]=C[y]=!1;let T=function(e){return(0,o.A)(e)&&(0,a.A)(e.length)&&!!C[(0,r.A)(e)]};var R=n(58126),O=n(10248),I=O.A&&O.A.isTypedArray;let L=I?(0,R.A)(I):T},7817(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(95403),a=n(33264),o=n(31475);let l=function(e){return(0,o.A)(e)?(0,r.A)(e):(0,a.A)(e)}},7587(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(65133),a=n(97002),o=n(55798),l=n(31475);let i=function(e,t){var n=-1,r=(0,l.A)(e)?Array(e.length):[];return(0,o.A)(e,function(e,a,o){r[++n]=t(e,a,o)}),r};var s=n(96956);let u=function(e,t){return((0,s.A)(e)?r.A:i)(e,(0,a.A)(t,3))}},11276(e,t,n){"use strict";n.d(t,{A:()=>r});let r=function(){return[]}},94888(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(83516),a=n(65133),o=n(96956),l=n(84089),i=1/0,s=r.A?r.A.prototype:void 0,u=s?s.toString:void 0;function c(e){if("string"==typeof e)return e;if((0,o.A)(e))return(0,a.A)(e,c)+"";if((0,l.A)(e))return u?u.call(e):"";var t=e+"";return"0"==t&&1/e==-i?"-0":t}let d=c,f=function(e){return null==e?"":d(e)}},75329(e,t,n){"use strict";n.d(t,{A:()=>g});var r=n(97002),a=n(44644),o=n(67077);let l=function(e,t){return!!(null==e?0:e.length)&&(0,o.A)(e,t,0)>-1},i=function(e,t,n){for(var r=-1,a=null==e?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1};var s=n(62026),u=n(28574);let c=function(){};var d=n(39922),f=1/0;let p=u.A&&1/(0,d.A)(new u.A([,-0]))[1]==f?function(e){return new u.A(e)}:c;var m=200;let h=function(e,t,n){var r=-1,o=l,u=e.length,c=!0,f=[],h=f;if(n)c=!1,o=i;else if(u>=m){var g=t?null:p(e);if(g)return(0,d.A)(g);c=!1,o=s.A,h=new a.A}else h=t?[]:f;n:for(;++r<u;){var b=e[r],y=t?t(b):b;if(b=n||0!==b?b:0,c&&y==y){for(var v=h.length;v--;)if(h[v]===y)continue n;t&&h.push(y),f.push(b)}else o(h,y,n)||(h!==f&&h.push(y),f.push(b))}return f},g=function(e,t){return e&&e.length?h(e,(0,r.A)(t,2)):[]}},71123(e,t,n){"use strict";n.d(t,{Ay:()=>d,BE:()=>c,iX:()=>l.useSWRConfig});var r=n(35399),a=n.n(r),o=n(58139),l=n(43432);let i=a().use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}),s={dedupe:!0},u=(e,t,n)=>{let{cache:a,compare:u,suspense:c,fallbackData:d,revalidateOnMount:f,revalidateIfStale:p,refreshInterval:m,refreshWhenHidden:h,refreshWhenOffline:g,keepPreviousData:b}=n,[y,v,w,E]=l.SWRGlobalState.get(a),[_,S]=(0,l.serialize)(e),x=(0,r.useRef)(!1),N=(0,r.useRef)(!1),k=(0,r.useRef)(_),A=(0,r.useRef)(t),$=(0,r.useRef)(n),C=()=>$.current,T=()=>C().isVisible()&&C().isOnline(),[R,O,I,L]=(0,l.createCacheHelper)(a,_),M=(0,r.useRef)({}).current,P=(0,l.isUndefined)(d)?n.fallback[_]:d,D=(e,t)=>{for(let n in M){let r=n;if("data"===r){if(!u(e[r],t[r])&&(!(0,l.isUndefined)(e[r])||!u(W,t[r])))return!1}else if(t[r]!==e[r])return!1}return!0},j=(0,r.useMemo)(()=>{let e=!!_&&!!t&&((0,l.isUndefined)(f)?!C().isPaused()&&!c&&(!!(0,l.isUndefined)(p)||p):f),n=t=>{let n=(0,l.mergeObjects)(t);return(delete n._k,e)?{isValidating:!0,isLoading:!0,...n}:n},r=R(),a=L(),o=n(r),i=r===a?o:n(a),s=o;return[()=>{let e=n(R());return D(e,s)?(s.data=e.data,s.isLoading=e.isLoading,s.isValidating=e.isValidating,s.error=e.error,s):(s=e,e)},()=>i]},[a,_]),z=(0,o.useSyncExternalStore)((0,r.useCallback)(e=>I(_,(t,n)=>{D(n,t)||e()}),[a,_]),j[0],j[1]),F=!x.current,B=y[_]&&y[_].length>0,H=z.data,V=(0,l.isUndefined)(H)?P:H,U=z.error,q=(0,r.useRef)(V),W=b?(0,l.isUndefined)(H)?q.current:H:V,G=(!B||!!(0,l.isUndefined)(U))&&(F&&!(0,l.isUndefined)(f)?f:!C().isPaused()&&(c?!(0,l.isUndefined)(V)&&p:(0,l.isUndefined)(V)||p)),K=!!(_&&t&&F&&G),Q=(0,l.isUndefined)(z.isValidating)?K:z.isValidating,Y=(0,l.isUndefined)(z.isLoading)?K:z.isLoading,Z=(0,r.useCallback)(async e=>{let t,r,a=A.current;if(!_||!a||N.current||C().isPaused())return!1;let o=!0,i=e||{},s=!w[_]||!i.dedupe,c=()=>l.IS_REACT_LEGACY?!N.current&&_===k.current&&x.current:_===k.current,d={isValidating:!1,isLoading:!1},f=()=>{O(d)},p=()=>{let e=w[_];e&&e[1]===r&&delete w[_]},m={isValidating:!0};(0,l.isUndefined)(R().data)&&(m.isLoading=!0);try{if(s&&(O(m),n.loadingTimeout&&(0,l.isUndefined)(R().data)&&setTimeout(()=>{o&&c()&&C().onLoadingSlow(_,n)},n.loadingTimeout),w[_]=[a(S),(0,l.getTimestamp)()]),[t,r]=w[_],t=await t,s&&setTimeout(p,n.dedupingInterval),!w[_]||w[_][1]!==r)return s&&c()&&C().onDiscarded(_),!1;d.error=l.UNDEFINED;let e=v[_];if(!(0,l.isUndefined)(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return f(),s&&c()&&C().onDiscarded(_),!1;let i=R().data;d.data=u(i,t)?i:t,s&&c()&&C().onSuccess(t,_,n)}catch(n){p();let e=C(),{shouldRetryOnError:t}=e;!e.isPaused()&&(d.error=n,s&&c()&&(e.onError(n,_,e),(!0===t||(0,l.isFunction)(t)&&t(n))&&(!C().revalidateOnFocus||!C().revalidateOnReconnect||T())&&e.onErrorRetry(n,_,e,e=>{let t=y[_];t&&t[0]&&t[0](l.revalidateEvents.ERROR_REVALIDATE_EVENT,e)},{retryCount:(i.retryCount||0)+1,dedupe:!0})))}return o=!1,f(),!0},[_,a]),X=(0,r.useCallback)((...e)=>(0,l.internalMutate)(a,k.current,...e),[]);if((0,l.useIsomorphicLayoutEffect)(()=>{A.current=t,$.current=n,(0,l.isUndefined)(H)||(q.current=H)}),(0,l.useIsomorphicLayoutEffect)(()=>{if(!_)return;let e=Z.bind(l.UNDEFINED,s),t=0,n=(n,r={})=>{if(n==l.revalidateEvents.FOCUS_EVENT){let n=Date.now();C().revalidateOnFocus&&n>t&&T()&&(t=n+C().focusThrottleInterval,e())}else if(n==l.revalidateEvents.RECONNECT_EVENT)C().revalidateOnReconnect&&T()&&e();else if(n==l.revalidateEvents.MUTATE_EVENT)return Z();else if(n==l.revalidateEvents.ERROR_REVALIDATE_EVENT)return Z(r)},r=(0,l.subscribeCallback)(_,y,n);return N.current=!1,k.current=_,x.current=!0,O({_k:S}),G&&((0,l.isUndefined)(V)||l.IS_SERVER?e():(0,l.rAF)(e)),()=>{N.current=!0,r()}},[_]),(0,l.useIsomorphicLayoutEffect)(()=>{let e;function t(){let t=(0,l.isFunction)(m)?m(R().data):m;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!R().error&&(h||C().isVisible())&&(g||C().isOnline())?Z(s).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[m,h,g,_]),(0,r.useDebugValue)(W),c&&(0,l.isUndefined)(V)&&_){if(!l.IS_REACT_LEGACY&&l.IS_SERVER)throw Error("Fallback data is required when using suspense in SSR.");A.current=t,$.current=n,N.current=!1;let e=E[_];if((0,l.isUndefined)(e)||i(X(e)),(0,l.isUndefined)(U)){let e=Z(s);(0,l.isUndefined)(W)||(e.status="fulfilled",e.value=!0),i(e)}else throw U}return{mutate:X,get data(){return M.data=!0,W},get error(){return M.error=!0,U},get isValidating(){return M.isValidating=!0,Q},get isLoading(){return M.isLoading=!0,Y}}},c=l.OBJECT.defineProperty(l.SWRConfig,"defaultValue",{value:l.defaultConfig}),d=(0,l.withArgs)(u)}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.c=__webpack_module_cache__,__webpack_require__.x=()=>__webpack_require__(99264),(()=>{__webpack_require__.federation||(__webpack_require__.federation={chunkMatcher:function(e){return!/^(5(005|059|265)|1460|4006|8652)$/.test(e)},rootOutputDir:""})})(),(()=>{__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t}})(),(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;__webpack_require__.t=function(n,r){if(1&r&&(n=this(n)),8&r||"object"==typeof n&&n&&(4&r&&n.__esModule||16&r&&"function"==typeof n.then))return n;var a=Object.create(null);__webpack_require__.r(a);var o={};e=e||[null,t({}),t([]),t(t)];for(var l=2&r&&n;("object"==typeof l||"function"==typeof l)&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach(e=>{o[e]=()=>n[e]});return o.default=()=>n,__webpack_require__.d(a,o),a}})(),(()=>{__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}})(),(()=>{__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce((t,n)=>(__webpack_require__.f[n](e,t),t),[]))})(),(()=>{__webpack_require__.u=e=>""+e+".js"})(),(()=>{__webpack_require__.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})()})(),(()=>{__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{var e={},t="@openmrs/esm-patient-programs-app:";__webpack_require__.l=function(n,r,a,o){if(e[n])return void e[n].push(r);if(void 0!==a)for(var l,i,s=document.getElementsByTagName("script"),u=0;u<s.length;u++){var c=s[u];if(c.getAttribute("src")==n||c.getAttribute("data-rspack")==t+a){l=c;break}}l||(i=!0,(l=document.createElement("script")).timeout=120,__webpack_require__.nc&&l.setAttribute("nonce",__webpack_require__.nc),l.setAttribute("data-rspack",t+a),l.src=n),e[n]=[r];var d=function(t,r){l.onerror=l.onload=null,clearTimeout(f);var a=e[n];if(delete e[n],l.parentNode&&l.parentNode.removeChild(l),a&&a.forEach(function(e){return e(r)}),t)return t(r)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=d.bind(null,l.onerror),l.onload=d.bind(null,l.onload),i&&document.head.appendChild(l)}})(),(()=>{__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{__webpack_require__.nc=void 0})(),(()=>{__webpack_require__.rv=()=>"1.7.9"})(),(()=>{__webpack_require__.S={},__webpack_require__.initializeSharingData={scopeToSharingDataMapping:{default:[{name:"@openmrs/esm-framework",version:"10.0.1-pre.4973",factory:()=>Promise.all([__webpack_require__.e("2544"),__webpack_require__.e("689"),__webpack_require__.e("4412"),__webpack_require__.e("7646"),__webpack_require__.e("8652"),__webpack_require__.e("5265"),__webpack_require__.e("5059"),__webpack_require__.e("5005"),__webpack_require__.e("1460")]).then(()=>()=>__webpack_require__(52957)),eager:0,singleton:1,requiredVersion:"10.x",strictVersion:0},{name:"@openmrs/esm-patient-common-lib",version:"12.3.5-pre.11742",factory:()=>Promise.all([__webpack_require__.e("2544"),__webpack_require__.e("689"),__webpack_require__.e("4412"),__webpack_require__.e("8652"),__webpack_require__.e("5265"),__webpack_require__.e("5059"),__webpack_require__.e("5005"),__webpack_require__.e("1460"),__webpack_require__.e("2790"),__webpack_require__.e("4006"),__webpack_require__.e("2506")]).then(()=>()=>__webpack_require__(9189)),eager:0,singleton:1,requiredVersion:"12.x",strictVersion:0},{name:"dayjs",version:"1.11.13",factory:()=>__webpack_require__.e("5697").then(()=>()=>__webpack_require__(23464)),eager:0,singleton:1,requiredVersion:"1.x",strictVersion:0},{name:"react-i18next",version:"16.0.0",factory:()=>Promise.all([__webpack_require__.e("1789"),__webpack_require__.e("8652")]).then(()=>()=>__webpack_require__(42348)),eager:0,singleton:1,requiredVersion:"16.x",strictVersion:0},{name:"react-router-dom",version:"6.30.4",factory:()=>Promise.all([__webpack_require__.e("689"),__webpack_require__.e("9712"),__webpack_require__.e("8652")]).then(()=>()=>__webpack_require__(27059)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"react",version:"18.3.1",factory:()=>__webpack_require__.e("466").then(()=>()=>__webpack_require__(14041)),eager:0,singleton:1,requiredVersion:"18.x",strictVersion:0},{name:"rxjs",version:"6.6.7",factory:()=>__webpack_require__.e("9105").then(()=>()=>__webpack_require__(37864)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"swr/_internal",version:"2.2.5",factory:()=>Promise.all([__webpack_require__.e("3989"),__webpack_require__.e("8652")]).then(()=>()=>__webpack_require__(42372)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/immutable",version:"2.2.5",factory:()=>Promise.all([__webpack_require__.e("9061"),__webpack_require__.e("8652"),__webpack_require__.e("5265"),__webpack_require__.e("3720")]).then(()=>()=>__webpack_require__(29876)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/infinite",version:"2.2.5",factory:()=>Promise.all([__webpack_require__.e("9771"),__webpack_require__.e("8652"),__webpack_require__.e("5265"),__webpack_require__.e("1339")]).then(()=>()=>__webpack_require__(52470)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0}]},uniqueName:"@openmrs/esm-patient-programs-app"},__webpack_require__.I=__webpack_require__.I||function(){throw Error("should have __webpack_require__.I")}})(),(()=>{__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var e,t=__webpack_require__.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw Error("Automatic publicPath is not supported in this browser");__webpack_require__.p=e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")})(),(()=>{__webpack_require__.consumesLoadingData={chunkMapping:{5005:["95571","30682","24354","13660"],1889:["35399","13040","92293","43432","27807"],8652:["35399"],4006:["92293"],5059:["80222"],1460:["27807"],5265:["43432"]},moduleIdToConsumeDataMapping:{80222:{shareScope:"default",shareKey:"dayjs",import:"dayjs",requiredVersion:"1.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("5697").then(()=>()=>__webpack_require__(23464))},30682:{shareScope:"default",shareKey:"swr/infinite",import:"swr/infinite",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("9771").then(()=>()=>__webpack_require__(52470))},35399:{shareScope:"default",shareKey:"react",import:"react",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("466").then(()=>()=>__webpack_require__(14041))},92293:{shareScope:"default",shareKey:"@openmrs/esm-framework",import:"@openmrs/esm-framework",requiredVersion:"10.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([__webpack_require__.e("2544"),__webpack_require__.e("7646"),__webpack_require__.e("5059"),__webpack_require__.e("5005")]).then(()=>()=>__webpack_require__(52957))},24354:{shareScope:"default",shareKey:"rxjs",import:"rxjs",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("9105").then(()=>()=>__webpack_require__(37864))},13040:{shareScope:"default",shareKey:"@openmrs/esm-patient-common-lib",import:"@openmrs/esm-patient-common-lib",requiredVersion:"12.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([__webpack_require__.e("2544"),__webpack_require__.e("5059"),__webpack_require__.e("5005"),__webpack_require__.e("2790")]).then(()=>()=>__webpack_require__(9189))},95571:{shareScope:"default",shareKey:"react-router-dom",import:"react-router-dom",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("9712").then(()=>()=>__webpack_require__(27059))},43432:{shareScope:"default",shareKey:"swr/_internal",import:"swr/_internal",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("3989").then(()=>()=>__webpack_require__(42372))},27807:{shareScope:"default",shareKey:"react-i18next",import:"react-i18next",requiredVersion:"16.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("1789").then(()=>()=>__webpack_require__(42348))},13660:{shareScope:"default",shareKey:"swr/immutable",import:"swr/immutable",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("9061").then(()=>()=>__webpack_require__(29876))}},initialConsumes:["35399","13040","92293","43432","27807"]},__webpack_require__.f.consumes=__webpack_require__.f.consumes||function(){throw Error("should have __webpack_require__.f.consumes")}})(),(()=>{var e={1889:0};__webpack_require__.f.j=function(t,n){var r=__webpack_require__.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else if(/^(5(005|059|265)|1460|4006|8652)$/.test(t))e[t]=0;else{var a=new Promise((n,a)=>r=e[t]=[n,a]);n.push(r[2]=a);var o=__webpack_require__.p+__webpack_require__.u(t),l=Error(),i=function(n){if(__webpack_require__.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var a=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;l.message="Loading chunk "+t+" failed.\n("+a+": "+o+")",l.name="ChunkLoadError",l.type=a,l.request=o,r[1](l)}};__webpack_require__.l(o,i,"chunk-"+t,t)}};var t=(t,n)=>{var r,a,[o,l,i]=n,s=0;if(o.some(t=>0!==e[t])){for(r in l)__webpack_require__.o(l,r)&&(__webpack_require__.m[r]=l[r]);i&&i(__webpack_require__)}for(t&&t(n);s<o.length;s++)a=o[s],__webpack_require__.o(e,a)&&e[a]&&e[a][0](),e[a]=0},n=globalThis.webpackChunk_openmrs_esm_patient_programs_app=globalThis.webpackChunk_openmrs_esm_patient_programs_app||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),(()=>{__webpack_require__.ruid="bundler=rspack@1.7.9"})(),(()=>{var e=__webpack_require__.x,t=!1;__webpack_require__.x=function(){if(t||(t=!0,__webpack_require__(47551)),"function"==typeof e)return e();console.warn("[MF] Invalid prevStartup")}})();var __webpack_exports__=__webpack_require__.x()})();
@@ -3,4 +3,4 @@ var _openmrs_esm_patient_programs_app;(()=>{"use strict";var __webpack_modules__
3
3
  ${n.safeToString(this.remoteInfo)}`),this.remoteEntryExports=e),this.remoteEntryExports}async get(e,t,r,n){let i,{loadFactory:a=!0}=r||{loadFactory:!0},c=await this.getEntry();if(!this.inited){let t=this.host.shareScopeMap,r=Array.isArray(this.remoteInfo.shareScope)?this.remoteInfo.shareScope:[this.remoteInfo.shareScope];r.length||r.push("default"),r.forEach(e=>{t[e]||(t[e]={})});let i=t[r[0]],a=[],s={version:this.remoteInfo.version||"",shareScopeKeys:Array.isArray(this.remoteInfo.shareScope)?r:this.remoteInfo.shareScope||"default"};Object.defineProperty(s,"shareScopeMap",{value:t,enumerable:!1});let u=await this.host.hooks.lifecycle.beforeInitContainer.emit({shareScope:i,remoteEntryInitOptions:s,initScope:a,remoteInfo:this.remoteInfo,origin:this.host});void 0===c?.init&&l(o.getShortErrorMsg(o.RUNTIME_002,o.runtimeDescMap,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName})),await c.init(u.shareScope,u.initScope,u.remoteEntryInitOptions),await this.host.hooks.lifecycle.initContainer.emit({...u,id:e,remoteSnapshot:n,remoteEntryExports:c})}this.lib=c,this.inited=!0,(i=await this.host.loaderHook.lifecycle.getModuleFactory.emit({remoteEntryExports:c,expose:t,moduleInfo:this.remoteInfo}))||(i=await c.get(t)),s(i,`${f(this.remoteInfo)} remote don't export ${t}.`);let u=S(this.remoteInfo.name,t),h=this.wraperFactory(i,u);return a?await h():h}wraperFactory(e,t){function r(e,t){e&&"object"==typeof e&&Object.isExtensible(e)&&!Object.getOwnPropertyDescriptor(e,Symbol.for("mf_module_id"))&&Object.defineProperty(e,Symbol.for("mf_module_id"),{value:t,enumerable:!1})}return e instanceof Promise?async()=>{let n=await e();return r(n,t),n}:()=>{let n=e();return r(n,t),n}}}class tu{constructor(e){this.type="",this.listeners=new Set,e&&(this.type=e)}on(e){"function"==typeof e&&this.listeners.add(e)}once(e){let t=this;this.on(function r(...n){return t.remove(r),e.apply(null,n)})}emit(...e){let t;return this.listeners.size>0&&this.listeners.forEach(r=>{t=r(...e)}),t}remove(e){this.listeners.delete(e)}removeAll(){this.listeners.clear()}}class tf extends tu{emit(...e){let t,r=Array.from(this.listeners);if(r.length>0){let n=0,o=t=>!1!==t&&(n<r.length?Promise.resolve(r[n++].apply(null,e)).then(o):t);t=o()}return Promise.resolve(t)}}function th(e,t){if(!d(t))return!1;if(e!==t){for(let r in e)if(!(r in t))return!1}return!0}class tp extends tu{constructor(e){super(),this.onerror=l,this.type=e}emit(e){for(let t of(d(e)||l(`The data for the "${this.type}" hook should be an object.`),this.listeners))try{let r=t(e);if(th(e,r))e=r;else{this.onerror(`A plugin returned an unacceptable value for the "${this.type}" type.`);break}}catch(e){c(e),this.onerror(e)}return e}}class tm extends tu{constructor(e){super(),this.onerror=l,this.type=e}emit(e){d(e)||l(`The response data for the "${this.type}" hook must be an object.`);let t=Array.from(this.listeners);if(t.length>0){let r=0,n=t=>(c(t),this.onerror(t),e),o=i=>{if(th(e,i)){if(e=i,r<t.length)try{return Promise.resolve(t[r++](e)).then(o,n)}catch(e){return n(e)}}else this.onerror(`A plugin returned an incorrect value for the "${this.type}" type.`);return e};return Promise.resolve(o(e))}return Promise.resolve(e)}}class td{constructor(e){this.registerPlugins={},this.lifecycle=e,this.lifecycleKeys=Object.keys(e)}applyPlugin(e,t){s(y(e),"Plugin configuration is invalid.");let r=e.name;s(r,"A name must be provided by the plugin."),this.registerPlugins[r]||(this.registerPlugins[r]=e,e.apply?.(t),Object.keys(this.lifecycle).forEach(t=>{let r=e[t];r&&this.lifecycle[t].on(r)}))}removePlugin(e){s(e,"A name is required.");let t=this.registerPlugins[e];s(t,`The plugin "${e}" is not registered.`),Object.keys(t).forEach(e=>{"name"!==e&&this.lifecycle[e].remove(t[e])})}}function tg(e,t){let r=b(t);r.url||l(`The attribute remoteEntry of ${e.name} must not be undefined.`);let o=n.getResourceUrl(t,r.url);n.isBrowserEnv()||o.startsWith("http")||(o=`https:${o}`),e.type=r.type,e.entryGlobalName=r.globalName,e.entry=o,e.version=t.version,e.buildVersion=t.buildVersion}function ty(){return{name:"snapshot-plugin",async afterResolve(e){let{remote:t,pkgNameOrAlias:r,expose:n,origin:o,remoteInfo:i,id:a}=e;if(!h(t)||!p(t)){let{remoteSnapshot:s,globalSnapshot:l}=await o.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:t,id:a});tg(i,s);let c={remote:t,preloadConfig:{nameOrAlias:r,exposes:[n],resourceCategory:"sync",share:!1,depsRemote:!1}},u=await o.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin:o,preloadOptions:c,remoteInfo:i,remote:t,remoteSnapshot:s,globalSnapshot:l});return u&&ts(i,o,u,!1),{...e,remoteSnapshot:s}}return e}}}function t_(e){let t=e.split(":");return 1===t.length?{name:t[0],version:void 0}:2===t.length?{name:t[0],version:t[1]}:{name:t[1],version:t[2]}}function tE(e,t,r,o,i={},a){let{value:s}=P(e,f(t)),l=a||s;if(l&&!n.isManifestProvider(l)&&(r(l,t,o),l.remotesInfo))for(let t of Object.keys(l.remotesInfo)){if(i[t])continue;i[t]=!0;let n=t_(t),o=l.remotesInfo[t];tE(e,{name:n.name,version:o.matchedVersion},r,!1,i,void 0)}}let tb=(e,t)=>document.querySelector(`${e}[${"link"===e?"href":"src"}="${t}"]`);function tS(e,t,r,o,i){let a=[],s=[],l=[],c=new Set,u=new Set,{options:f}=e,{preloadConfig:h}=t,{depsRemote:p}=h;if(tE(o,r,(t,r,o)=>{let i;if(o)i=h;else if(Array.isArray(p)){let e=p.find(e=>e.nameOrAlias===r.name||e.nameOrAlias===r.alias);if(!e)return;i=to(e)}else{if(!0!==p)return;i=h}let c=n.getResourceUrl(t,b(t).url);c&&l.push({name:r.name,moduleInfo:{name:r.name,entry:c,type:"remoteEntryType"in t?t.remoteEntryType:"global",entryGlobalName:"globalName"in t?t.globalName:r.name,shareScope:"",version:"version"in t?t.version:void 0},url:c});let u="modules"in t?t.modules:[],f=ta(i.exposes);function m(e){let r=e.map(e=>n.getResourceUrl(t,e));return i.filter?r.filter(i.filter):r}if(f.length&&"modules"in t&&(u=t?.modules?.reduce((e,t)=>(f?.indexOf(t.moduleName)!==-1&&e.push(t),e),[])),u){let n=u.length;for(let o=0;o<n;o++){let n=u[o],l=`${r.name}/${n.moduleName}`;e.remoteHandler.hooks.lifecycle.handlePreloadModule.emit({id:"."===n.moduleName?r.name:l,name:r.name,remoteSnapshot:t,preloadConfig:i,remote:r,origin:e}),V(l)||("all"===i.resourceCategory?(a.push(...m(n.assets.css.async)),a.push(...m(n.assets.css.sync)),s.push(...m(n.assets.js.async))):(i.resourceCategory="sync",a.push(...m(n.assets.css.sync))),s.push(...m(n.assets.js.sync)),G(l))}}},!0,{},i),i.shared&&i.shared.length>0){let t=(t,r)=>{let n=eJ(e.shareScopeMap,r.sharedName,t,e.sharedHandler.hooks.lifecycle.resolveShare);n&&"function"==typeof n.lib&&(r.assets.js.sync.forEach(e=>{c.add(e)}),r.assets.css.sync.forEach(e=>{u.add(e)}))};i.shared.forEach(e=>{let r=f.shared?.[e.sharedName];if(!r)return;let n=e.version?r.find(t=>t.version===e.version):r;n&&E(n).forEach(r=>{t(r,e)})})}let m=s.filter(e=>!c.has(e)&&!tb("script",e));return{cssAssets:a.filter(e=>!u.has(e)&&!tb("link",e)),jsAssetsWithoutEntry:m,entryAssets:l.filter(e=>!tb("script",e.url))}}let tI=function(){return{name:"generate-preload-assets-plugin",async generatePreloadAssets(e){let{origin:t,preloadOptions:r,remoteInfo:o,remote:i,globalSnapshot:a,remoteSnapshot:s}=e;return n.isBrowserEnv()?h(i)&&p(i)?{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[{name:i.name,url:i.entry,moduleInfo:{name:o.name,entry:i.entry,type:o.type||"global",entryGlobalName:"",shareScope:""}}]}:(tg(o,s),tS(t,r,o,a,s)):{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[]}}}};function tv(e,t){let r=L({name:t.name,version:t.options.version}),n=r&&"remotesInfo"in r&&r.remotesInfo&&P(r.remotesInfo,e.name).value;return n&&n.matchedVersion?{hostGlobalSnapshot:r,globalSnapshot:D(),remoteSnapshot:L({name:e.name,version:n.matchedVersion})}:{hostGlobalSnapshot:void 0,globalSnapshot:D(),remoteSnapshot:L({name:e.name,version:"version"in e?e.version:void 0})}}class tR{constructor(e){this.loadingHostSnapshot=null,this.manifestCache=new Map,this.hooks=new td({beforeLoadRemoteSnapshot:new tf("beforeLoadRemoteSnapshot"),loadSnapshot:new tm("loadGlobalSnapshot"),loadRemoteSnapshot:new tm("loadRemoteSnapshot"),afterLoadSnapshot:new tm("afterLoadSnapshot")}),this.manifestLoading=R.__FEDERATION__.__MANIFEST_LOADING__,this.HostInstance=e,this.loaderHook=e.loaderHook}async loadRemoteSnapshotInfo({moduleInfo:e,id:t,expose:r}){let i,a,{options:s}=this.HostInstance;await this.hooks.lifecycle.beforeLoadRemoteSnapshot.emit({options:s,moduleInfo:e});let c=L({name:this.HostInstance.options.name,version:this.HostInstance.options.version});c||(c={version:this.HostInstance.options.version||"",remoteEntry:"",remotesInfo:{}},j({[this.HostInstance.options.name]:c})),c&&"remotesInfo"in c&&!P(c.remotesInfo,e.name).value&&("version"in e||"entry"in e)&&(c.remotesInfo={...c?.remotesInfo,[e.name]:{matchedVersion:"version"in e?e.version:e.entry}});let{hostGlobalSnapshot:u,remoteSnapshot:f,globalSnapshot:p}=this.getGlobalRemoteInfo(e),{remoteSnapshot:m,globalSnapshot:d}=await this.hooks.lifecycle.loadSnapshot.emit({options:s,moduleInfo:e,hostGlobalSnapshot:u,remoteSnapshot:f,globalSnapshot:p});if(m)if(n.isManifestProvider(m)){let t=n.isBrowserEnv()?m.remoteEntry:m.ssrRemoteEntry||m.remoteEntry||"",r=await this.getManifestJson(t,e,{}),o=F({...e,entry:t},r);i=r,a=o}else{let{remoteSnapshot:t}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:m,from:"global"});i=t,a=d}else if(h(e)){let t=await this.getManifestJson(e.entry,e,{}),r=F(e,t),{remoteSnapshot:n}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:t,from:"global"});i=n,a=r}else l(o.getShortErrorMsg(o.RUNTIME_007,o.runtimeDescMap,{hostName:e.name,hostVersion:e.version,globalSnapshot:JSON.stringify(d)}));return await this.hooks.lifecycle.afterLoadSnapshot.emit({id:t,host:this.HostInstance,options:s,moduleInfo:e,remoteSnapshot:i}),{remoteSnapshot:i,globalSnapshot:a}}getGlobalRemoteInfo(e){return tv(e,this.HostInstance)}async getManifestJson(e,t,r){let i=async()=>{let r=this.manifestCache.get(e);if(r)return r;try{let t=await this.loaderHook.lifecycle.fetch.emit(e,{});t&&t instanceof Response||(t=await fetch(e,{})),r=await t.json()}catch(n){(r=await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:n,from:"runtime",lifecycle:"afterResolve",origin:this.HostInstance}))||(delete this.manifestLoading[e],l(o.getShortErrorMsg(o.RUNTIME_003,o.runtimeDescMap,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name},`${n}`)))}return s(r.metaData&&r.exposes&&r.shared,`${e} is not a federation manifest`),this.manifestCache.set(e,r),r},a=async()=>{let r=await i(),o=n.generateSnapshotFromManifest(r,{version:e}),{remoteSnapshot:a}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:t,manifestJson:r,remoteSnapshot:o,manifestUrl:e,from:"manifest"});return a};return this.manifestLoading[e]||(this.manifestLoading[e]=a().then(e=>e)),this.manifestLoading[e]}}class tN{constructor(e){this.hooks=new td({afterResolve:new tm("afterResolve"),beforeLoadShare:new tm("beforeLoadShare"),loadShare:new tf,resolveShare:new tp("resolveShare"),initContainerShareScopeMap:new tp("initContainerShareScopeMap")}),this.host=e,this.shareScopeMap={},this.initTokens={},this._setGlobalShareScopeMap(e.options)}registerShared(e,t){let{shareInfos:r,shared:n}=eG(e,t);return Object.keys(r).forEach(e=>{r[e].forEach(r=>{r.scope.forEach(n=>{this.shareScopeMap[n]?.[e]||this.setShared({pkgName:e,lib:r.lib,get:r.get,loaded:r.loaded||!!r.lib,shared:r,from:t.name})})})}),{shareInfos:r,shared:n}}async loadShare(e,t){let{host:r}=this,n=eQ({pkgName:e,extraOptions:t,shareInfos:r.options.shared});n?.scope&&await Promise.all(n.scope.map(async e=>{await Promise.all(this.initializeSharing(e,{strategy:n.strategy}))}));let{shareInfo:o}=await this.hooks.lifecycle.beforeLoadShare.emit({pkgName:e,shareInfo:n,shared:r.options.shared,origin:r});s(o,`Cannot find ${e} Share in the ${r.options.name}. Please ensure that the ${e} Share parameters have been injected`);let i=eJ(this.shareScopeMap,e,o,this.hooks.lifecycle.resolveShare),a=e=>{e.useIn||(e.useIn=[]),u(e.useIn,r.options.name)};if(i&&i.lib)return a(i),i.lib;if(i&&i.loading&&!i.loaded){let e=await i.loading;return i.loaded=!0,i.lib||(i.lib=e),a(i),e}if(i){let t=(async()=>{let e=await i.get();return a(i),i.loaded=!0,i.lib=e,e})();return this.setShared({pkgName:e,loaded:!1,shared:i,from:r.options.name,lib:null,loading:t}),t}{if(t?.customShareInfo)return!1;let n=(async()=>{let t=await o.get();o.lib=t,o.loaded=!0,a(o);let r=eJ(this.shareScopeMap,e,o,this.hooks.lifecycle.resolveShare);return r&&(r.lib=t,r.loaded=!0,r.from=o.from),t})();return this.setShared({pkgName:e,loaded:!1,shared:o,from:r.options.name,lib:null,loading:n}),n}}initializeSharing(e=q,t){let{host:r}=this,n=t?.from,o=t?.strategy,i=t?.initScope,a=[];if("build"!==n){let{initTokens:t}=this;i||(i=[]);let r=t[e];if(r||(r=t[e]={from:this.host.name}),i.indexOf(r)>=0)return a;i.push(r)}let s=this.shareScopeMap,l=r.options.name;s[e]||(s[e]={});let c=s[e],u=(e,t)=>{let{version:r,eager:n}=t;c[e]=c[e]||{};let o=c[e],i=o[r],a=!!(i&&(i.eager||i.shareConfig?.eager));(!i||"loaded-first"!==i.strategy&&!i.loaded&&(!n!=!a?n:l>i.from))&&(o[r]=t)},f=t=>t&&t.init&&t.init(s[e],i),h=async e=>{let{module:t}=await r.remoteHandler.getRemoteModuleAndOptions({id:e});if(t.getEntry){let n;try{n=await t.getEntry()}catch(t){n=await r.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:t,from:"runtime",lifecycle:"beforeLoadShare",origin:r})}t.inited||(await f(n),t.inited=!0)}};return Object.keys(r.options.shared).forEach(t=>{r.options.shared[t].forEach(r=>{r.scope.includes(e)&&u(t,r)})}),("version-first"===r.options.shareStrategy||"version-first"===o)&&r.options.remotes.forEach(t=>{t.shareScope===e&&a.push(h(t.name))}),a}loadShareSync(e,t){let{host:r}=this,n=eQ({pkgName:e,extraOptions:t,shareInfos:r.options.shared});n?.scope&&n.scope.forEach(e=>{this.initializeSharing(e,{strategy:n.strategy})});let i=eJ(this.shareScopeMap,e,n,this.hooks.lifecycle.resolveShare),a=e=>{e.useIn||(e.useIn=[]),u(e.useIn,r.options.name)};if(i){if("function"==typeof i.lib)return a(i),i.loaded||(i.loaded=!0,i.from===r.options.name&&(n.loaded=!0)),i.lib;if("function"==typeof i.get){let t=i.get();if(!(t instanceof Promise))return a(i),this.setShared({pkgName:e,loaded:!0,from:r.options.name,lib:t,shared:i}),t}}if(n.lib)return n.loaded||(n.loaded=!0),n.lib;if(n.get){let i=n.get();if(i instanceof Promise){let n=t?.from==="build"?o.RUNTIME_005:o.RUNTIME_006;throw Error(o.getShortErrorMsg(n,o.runtimeDescMap,{hostName:r.options.name,sharedPkgName:e}))}return n.lib=i,this.setShared({pkgName:e,loaded:!0,from:r.options.name,lib:n.lib,shared:n}),n.lib}throw Error(o.getShortErrorMsg(o.RUNTIME_006,o.runtimeDescMap,{hostName:r.options.name,sharedPkgName:e}))}initShareScopeMap(e,t,r={}){let{host:n}=this;this.shareScopeMap[e]=t,this.hooks.lifecycle.initContainerShareScopeMap.emit({shareScope:t,options:n.options,origin:n,scopeName:e,hostShareScopeMap:r.hostShareScopeMap})}setShared({pkgName:e,shared:t,from:r,lib:n,loading:o,loaded:i,get:a}){let{version:s,scope:l="default",...c}=t;(Array.isArray(l)?l:[l]).forEach(t=>{if(this.shareScopeMap[t]||(this.shareScopeMap[t]={}),this.shareScopeMap[t][e]||(this.shareScopeMap[t][e]={}),!this.shareScopeMap[t][e][s]){this.shareScopeMap[t][e][s]={version:s,scope:[t],...c,lib:n,loaded:i,loading:o},a&&(this.shareScopeMap[t][e][s].get=a);return}let l=this.shareScopeMap[t][e][s];o&&!l.loading&&(l.loading=o),i&&!l.loaded&&(l.loaded=i),r&&l.from!==r&&(l.from=r)})}_setGlobalShareScopeMap(e){let t=eZ(),r=e.id||e.name;r&&!t[r]&&(t[r]=this.shareScopeMap)}}class t${constructor(e){this.hooks=new td({beforeRegisterRemote:new tp("beforeRegisterRemote"),registerRemote:new tp("registerRemote"),beforeRequest:new tm("beforeRequest"),onLoad:new tf("onLoad"),handlePreloadModule:new tu("handlePreloadModule"),errorLoadRemote:new tf("errorLoadRemote"),beforePreloadRemote:new tf("beforePreloadRemote"),generatePreloadAssets:new tf("generatePreloadAssets"),afterPreloadRemote:new tf,loadEntry:new tf}),this.host=e,this.idToRemoteMap={}}formatAndRegisterRemote(e,t){return(t.remotes||[]).reduce((e,t)=>(this.registerRemote(t,e,{force:!1}),e),e.remotes)}setIdToRemoteMap(e,t){let{remote:r,expose:n}=t,{name:o,alias:i}=r;if(this.idToRemoteMap[e]={name:r.name,expose:n},i&&e.startsWith(o)){let t=e.replace(o,i);this.idToRemoteMap[t]={name:r.name,expose:n};return}if(i&&e.startsWith(i)){let t=e.replace(i,o);this.idToRemoteMap[t]={name:r.name,expose:n}}}async loadRemote(e,t){let{host:r}=this;try{let{loadFactory:n=!0}=t||{loadFactory:!0},{module:o,moduleOptions:i,remoteMatchInfo:a}=await this.getRemoteModuleAndOptions({id:e}),{pkgNameOrAlias:s,remote:l,expose:c,id:u,remoteSnapshot:f}=a,h=await o.get(u,c,t,f),p=await this.hooks.lifecycle.onLoad.emit({id:u,pkgNameOrAlias:s,expose:c,exposeModule:n?h:void 0,exposeModuleFactory:n?void 0:h,remote:l,options:i,moduleInstance:o,origin:r});if(this.setIdToRemoteMap(e,a),"function"==typeof p)return p;return h}catch(i){let{from:n="runtime"}=t||{from:"runtime"},o=await this.hooks.lifecycle.errorLoadRemote.emit({id:e,error:i,from:n,lifecycle:"onLoad",origin:r});if(!o)throw i;return o}}async preloadRemote(e){let{host:t}=this;await this.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:e,options:t.options,origin:t});let r=ti(t.options.remotes,e);await Promise.all(r.map(async e=>{let{remote:r}=e,n=tn(r),{globalSnapshot:o,remoteSnapshot:i}=await t.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:r}),a=await this.hooks.lifecycle.generatePreloadAssets.emit({origin:t,preloadOptions:e,remote:r,remoteInfo:n,globalSnapshot:o,remoteSnapshot:i});a&&ts(n,t,a)}))}registerRemotes(e,t){let{host:r}=this;e.forEach(e=>{this.registerRemote(e,r.options.remotes,{force:t?.force})})}async getRemoteModuleAndOptions(e){let t,{host:r}=this,{id:n}=e;try{t=await this.hooks.lifecycle.beforeRequest.emit({id:n,options:r.options,origin:r})}catch(e){if(!(t=await this.hooks.lifecycle.errorLoadRemote.emit({id:n,options:r.options,origin:r,from:"runtime",error:e,lifecycle:"beforeRequest"})))throw e}let{id:i}=t,a=e1(r.options.remotes,i);s(a,o.getShortErrorMsg(o.RUNTIME_004,o.runtimeDescMap,{hostName:r.options.name,requestId:i}));let{remote:l}=a,c=tn(l),u=await r.sharedHandler.hooks.lifecycle.afterResolve.emit({id:i,...a,options:r.options,origin:r,remoteInfo:c}),{remote:f,expose:h}=u;s(f&&h,`The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ${i}.`);let p=r.moduleCache.get(f.name),m={host:r,remoteInfo:c};return p||(p=new tc(m),r.moduleCache.set(f.name,p)),{module:p,moduleOptions:m,remoteMatchInfo:u}}registerRemote(e,t,r){let{host:o}=this,i=()=>{if(e.alias){let r=t.find(t=>e.alias&&(t.name.startsWith(e.alias)||t.alias?.startsWith(e.alias)));s(!r,`The alias ${e.alias} of remote ${e.name} is not allowed to be the prefix of ${r&&r.name} name or alias`)}"entry"in e&&n.isBrowserEnv()&&!e.entry.startsWith("http")&&(e.entry=new URL(e.entry,window.location.origin).href),e.shareScope||(e.shareScope=q),e.type||(e.type=B)};this.hooks.lifecycle.beforeRegisterRemote.emit({remote:e,origin:o});let a=t.find(t=>t.name===e.name);if(a){let s=[`The remote "${e.name}" is already registered.`,"Please note that overriding it may cause unexpected errors."];r?.force&&(this.removeRemote(a),i(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:o}),n.warn(s.join(" ")))}else i(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:o})}removeRemote(e){try{let{host:t}=this,{name:r}=e,o=t.options.remotes.findIndex(e=>e.name===r);-1!==o&&t.options.remotes.splice(o,1);let i=t.moduleCache.get(e.name);if(i){let r=i.remoteInfo,o=r.entryGlobalName;I[o]&&(Object.getOwnPropertyDescriptor(I,o)?.configurable?delete I[o]:I[o]=void 0);let a=tt(i.remoteInfo);M[a]&&delete M[a],t.snapshotHandler.manifestCache.delete(r.entry);let s=r.buildVersion?n.composeKeyWithSeparator(r.name,r.buildVersion):r.name,l=I.__FEDERATION__.__INSTANCES__.findIndex(e=>r.buildVersion?e.options.id===s:e.name===s);if(-1!==l){let e=I.__FEDERATION__.__INSTANCES__[l];s=e.options.id||s;let t=eZ(),n=!0,o=[];Object.keys(t).forEach(e=>{let i=t[e];i&&Object.keys(i).forEach(t=>{let a=i[t];a&&Object.keys(a).forEach(i=>{let s=a[i];s&&Object.keys(s).forEach(a=>{let l=s[a];l&&"object"==typeof l&&l.from===r.name&&(l.loaded||l.loading?(l.useIn=l.useIn.filter(e=>e!==r.name),l.useIn.length?n=!1:o.push([e,t,i,a])):o.push([e,t,i,a]))})})})}),n&&(e.shareScopeMap={},delete t[s]),o.forEach(([e,r,n,o])=>{delete t[e]?.[r]?.[n]?.[o]}),I.__FEDERATION__.__INSTANCES__.splice(l,1)}let{hostGlobalSnapshot:c}=tv(e,t);if(c){let t=c&&"remotesInfo"in c&&c.remotesInfo&&P(c.remotesInfo,e.name).key;t&&(delete c.remotesInfo[t],R.__FEDERATION__.__MANIFEST_LOADING__[t]&&delete R.__FEDERATION__.__MANIFEST_LOADING__[t])}t.moduleCache.delete(e.name)}}catch(e){a.log("removeRemote fail: ",e)}}}let tM="boolean"!=typeof FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN||!FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN;class tw{constructor(e){this.hooks=new td({beforeInit:new tp("beforeInit"),init:new tu,beforeInitContainer:new tm("beforeInitContainer"),initContainer:new tm("initContainer")}),this.version="0.22.0",this.moduleCache=new Map,this.loaderHook=new td({getModuleInfo:new tu,createScript:new tu,createLink:new tu,fetch:new tf,loadEntryError:new tf,getModuleFactory:new tf}),this.bridgeHook=new td({beforeBridgeRender:new tu,afterBridgeRender:new tu,beforeBridgeDestroy:new tu,afterBridgeDestroy:new tu});const t=tM?[ty(),tI()]:[],r={id:e0(),name:e.name,plugins:t,remotes:[],shared:{},inBrowser:n.isBrowserEnv()};this.name=e.name,this.options=r,this.snapshotHandler=new tR(this),this.sharedHandler=new tN(this),this.remoteHandler=new t$(this),this.shareScopeMap=this.sharedHandler.shareScopeMap,this.registerPlugins([...r.plugins,...e.plugins||[]]),this.options=this.formatOptions(r,e)}initOptions(e){this.registerPlugins(e.plugins);let t=this.formatOptions(this.options,e);return this.options=t,t}async loadShare(e,t){return this.sharedHandler.loadShare(e,t)}loadShareSync(e,t){return this.sharedHandler.loadShareSync(e,t)}initializeSharing(e=q,t){return this.sharedHandler.initializeSharing(e,t)}initRawContainer(e,t,r){let n=new tc({host:this,remoteInfo:tn({name:e,entry:t})});return n.remoteEntryExports=r,this.moduleCache.set(e,n),n}async loadRemote(e,t){return this.remoteHandler.loadRemote(e,t)}async preloadRemote(e){return this.remoteHandler.preloadRemote(e)}initShareScopeMap(e,t,r={}){this.sharedHandler.initShareScopeMap(e,t,r)}formatOptions(e,t){let{shared:r}=eG(e,t),{userOptions:n,options:o}=this.hooks.lifecycle.beforeInit.emit({origin:this,userOptions:t,options:e,shareInfo:r}),i=this.remoteHandler.formatAndRegisterRemote(o,n),{shared:a}=this.sharedHandler.registerShared(o,n),s=[...o.plugins];n.plugins&&n.plugins.forEach(e=>{s.includes(e)||s.push(e)});let l={...e,...t,plugins:s,remotes:i,shared:a};return this.hooks.lifecycle.init.emit({origin:this,options:l}),l}registerPlugins(e){let t=e5(e,this);this.options.plugins=this.options.plugins.reduce((e,t)=>(t&&e&&!e.find(e=>e.name===t.name)&&e.push(t),e),t||[])}registerRemotes(e,t){return this.remoteHandler.registerRemotes(e,t)}registerShared(e){this.sharedHandler.registerShared(this.options,{...this.options,shared:e})}}var tT=Object.freeze({__proto__:null});t.loadScript=n.loadScript,t.loadScriptNode=n.loadScriptNode,t.CurrentGlobal=I,t.Global=R,t.Module=tc,t.ModuleFederation=tw,t.addGlobalSnapshot=j,t.assert=s,t.getGlobalFederationConstructor=A,t.getGlobalSnapshot=D,t.getInfoWithoutType=P,t.getRegisteredShare=eJ,t.getRemoteEntry=tr,t.getRemoteInfo=tn,t.helpers=tl,t.isStaticResourcesEqual=_,t.matchRemoteWithNameAndExpose=e1,t.registerGlobalPlugins=H,t.resetFederationGlobalInfo=T,t.safeWrapper=m,t.satisfy=eU,t.setGlobalFederationConstructor=k,t.setGlobalFederationInstance=O,t.types=tT},86490(e,t,r){var n=r(35822),o=r(63767),i=r(6197);function a(e){let t=new(n.getGlobalFederationConstructor()||n.ModuleFederation)(e);return n.setGlobalFederationInstance(t),t}let s=null;function l(e){let t=i.getGlobalFederationInstance(e.name,e.version);return t?(t.initOptions(e),s||(s=t),t):s=a(e)}function c(...e){return n.assert(s,o.getShortErrorMsg(o.RUNTIME_009,o.runtimeDescMap)),s.loadRemote.apply(s,e)}function u(...e){return n.assert(s,o.getShortErrorMsg(o.RUNTIME_009,o.runtimeDescMap)),s.loadShare.apply(s,e)}function f(...e){return n.assert(s,o.getShortErrorMsg(o.RUNTIME_009,o.runtimeDescMap)),s.loadShareSync.apply(s,e)}function h(...e){return n.assert(s,o.getShortErrorMsg(o.RUNTIME_009,o.runtimeDescMap)),s.preloadRemote.apply(s,e)}function p(...e){return n.assert(s,o.getShortErrorMsg(o.RUNTIME_009,o.runtimeDescMap)),s.registerRemotes.apply(s,e)}function m(...e){return n.assert(s,o.getShortErrorMsg(o.RUNTIME_009,o.runtimeDescMap)),s.registerPlugins.apply(s,e)}function d(){return s}function g(...e){return n.assert(s,o.getShortErrorMsg(o.RUNTIME_009,o.runtimeDescMap)),s.registerShared.apply(s,e)}n.setGlobalFederationConstructor(n.ModuleFederation),t.Module=n.Module,t.ModuleFederation=n.ModuleFederation,t.getRemoteEntry=n.getRemoteEntry,t.getRemoteInfo=n.getRemoteInfo,t.loadScript=n.loadScript,t.loadScriptNode=n.loadScriptNode,t.registerGlobalPlugins=n.registerGlobalPlugins,t.createInstance=a,t.getInstance=d,t.init=l,t.loadRemote=c,t.loadShare=u,t.loadShareSync=f,t.preloadRemote=h,t.registerPlugins=m,t.registerRemotes=p,t.registerShared=g},6197(e,t,r){var n=r(35822);function o(){return"u">typeof FEDERATION_BUILD_IDENTIFIER?FEDERATION_BUILD_IDENTIFIER:""}t.getGlobalFederationInstance=function(e,t){let r=o();return n.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(n=>!!r&&n.options.id===r||n.options.name===e&&!n.options.version&&!t||n.options.name===e&&!!t&&n.options.version===t)}},45882(__unused_rspack_module,exports){let FederationModuleManifest="federation-manifest.json",MANIFEST_EXT=".json",BROWSER_LOG_KEY="FEDERATION_DEBUG",NameTransformSymbol={AT:"@",HYPHEN:"-",SLASH:"/"},NameTransformMap={[NameTransformSymbol.AT]:"scope_",[NameTransformSymbol.HYPHEN]:"_",[NameTransformSymbol.SLASH]:"__"},EncodedNameTransformMap={[NameTransformMap[NameTransformSymbol.AT]]:NameTransformSymbol.AT,[NameTransformMap[NameTransformSymbol.HYPHEN]]:NameTransformSymbol.HYPHEN,[NameTransformMap[NameTransformSymbol.SLASH]]:NameTransformSymbol.SLASH},SEPARATOR=":",ManifestFileName="mf-manifest.json",StatsFileName="mf-stats.json",MFModuleType={NPM:"npm",APP:"app"},MODULE_DEVTOOL_IDENTIFIER="__MF_DEVTOOLS_MODULE_INFO__",ENCODE_NAME_PREFIX="ENCODE_NAME_PREFIX",TEMP_DIR=".federation",MFPrefetchCommon={identifier:"MFDataPrefetch",globalKey:"__PREFETCH__",library:"mf-data-prefetch",exportsKey:"__PREFETCH_EXPORTS__",fileName:"bootstrap.js"};var ContainerPlugin=Object.freeze({__proto__:null}),ContainerReferencePlugin=Object.freeze({__proto__:null}),ModuleFederationPlugin=Object.freeze({__proto__:null}),SharePlugin=Object.freeze({__proto__:null});function isBrowserEnv(){return"u">typeof window&&void 0!==window.document}function isReactNativeEnv(){return"u">typeof navigator&&navigator?.product==="ReactNative"}function isBrowserDebug(){try{if(isBrowserEnv()&&window.localStorage)return!!localStorage.getItem(BROWSER_LOG_KEY)}catch(e){}return!1}function isDebugMode(){return"u">typeof process&&process.env&&process.env.FEDERATION_DEBUG?!!process.env.FEDERATION_DEBUG:!!("u">typeof FEDERATION_DEBUG&&FEDERATION_DEBUG)||isBrowserDebug()}let getProcessEnv=function(){return"u">typeof process&&process.env?process.env:{}},LOG_CATEGORY="[ Federation Runtime ]",parseEntry=(e,t,r=SEPARATOR)=>{let n=e.split(r),o="development"===getProcessEnv().NODE_ENV&&t,i="*",a=e=>e.startsWith("http")||e.includes(MANIFEST_EXT);if(n.length>=2){let[t,...s]=n;e.startsWith(r)&&(t=n.slice(0,2).join(r),s=[o||n.slice(2).join(r)]);let l=o||s.join(r);return a(l)?{name:t,entry:l}:{name:t,version:l||i}}if(1===n.length){let[e]=n;return o&&a(o)?{name:e,entry:o}:{name:e,version:o||i}}throw`Invalid entry value: ${e}`},composeKeyWithSeparator=function(...e){return e.length?e.reduce((e,t)=>t?e?`${e}${SEPARATOR}${t}`:t:e,""):""},encodeName=function(e,t="",r=!1){try{let n=r?".js":"";return`${t}${e.replace(RegExp(`${NameTransformSymbol.AT}`,"g"),NameTransformMap[NameTransformSymbol.AT]).replace(RegExp(`${NameTransformSymbol.HYPHEN}`,"g"),NameTransformMap[NameTransformSymbol.HYPHEN]).replace(RegExp(`${NameTransformSymbol.SLASH}`,"g"),NameTransformMap[NameTransformSymbol.SLASH])}${n}`}catch(e){throw e}},decodeName=function(e,t,r){try{let n=e;if(t){if(!n.startsWith(t))return n;n=n.replace(RegExp(t,"g"),"")}return n=n.replace(RegExp(`${NameTransformMap[NameTransformSymbol.AT]}`,"g"),EncodedNameTransformMap[NameTransformMap[NameTransformSymbol.AT]]).replace(RegExp(`${NameTransformMap[NameTransformSymbol.SLASH]}`,"g"),EncodedNameTransformMap[NameTransformMap[NameTransformSymbol.SLASH]]).replace(RegExp(`${NameTransformMap[NameTransformSymbol.HYPHEN]}`,"g"),EncodedNameTransformMap[NameTransformMap[NameTransformSymbol.HYPHEN]]),r&&(n=n.replace(".js","")),n}catch(e){throw e}},generateExposeFilename=(e,t)=>{if(!e)return"";let r=e;return"."===r&&(r="default_export"),r.startsWith("./")&&(r=r.replace("./","")),encodeName(r,"__federation_expose_",t)},generateShareFilename=(e,t)=>e?encodeName(e,"__federation_shared_",t):"",getResourceUrl=(e,t)=>{if("getPublicPath"in e){let r;return r=e.getPublicPath.startsWith("function")?Function("return "+e.getPublicPath)()():Function(e.getPublicPath)(),`${r}${t}`}return"publicPath"in e?!isBrowserEnv()&&!isReactNativeEnv()&&"ssrPublicPath"in e?`${e.ssrPublicPath}${t}`:`${e.publicPath}${t}`:(console.warn("Cannot get resource URL. If in debug mode, please ignore.",e,t),"")},assert=(e,t)=>{e||error(t)},error=e=>{throw Error(`${LOG_CATEGORY}: ${e}`)},warn=e=>{console.warn(`${LOG_CATEGORY}: ${e}`)};function safeToString(e){try{return JSON.stringify(e,null,2)}catch(e){return""}}let VERSION_PATTERN_REGEXP=/^([\d^=v<>~]|[*xX]$)/;function isRequiredVersion(e){return VERSION_PATTERN_REGEXP.test(e)}let simpleJoinRemoteEntry=(e,t)=>{if(!e)return t;let r=(e=>{if("."===e)return"";if(e.startsWith("./"))return e.replace("./","");if(e.startsWith("/")){let t=e.slice(1);return t.endsWith("/")?t.slice(0,-1):t}return e})(e);return r?r.endsWith("/")?`${r}${t}`:`${r}/${t}`:t};function inferAutoPublicPath(e){return e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")}function generateSnapshotFromManifest(e,t={}){let r,{remotes:n={},overrides:o={},version:i}=t,a=()=>"publicPath"in e.metaData?"auto"===e.metaData.publicPath&&i?inferAutoPublicPath(i):e.metaData.publicPath:e.metaData.getPublicPath,s=Object.keys(o),l={};Object.keys(n).length||(l=e.remotes?.reduce((e,t)=>{let r,n=t.federationContainerName;return r=s.includes(n)?o[n]:"version"in t?t.version:t.entry,e[n]={matchedVersion:r},e},{})||{}),Object.keys(n).forEach(e=>l[e]={matchedVersion:s.includes(e)?o[e]:n[e]});let{remoteEntry:{path:c,name:u,type:f},types:h={path:"",name:"",zip:"",api:""},buildInfo:{buildVersion:p},globalName:m,ssrRemoteEntry:d}=e.metaData,{exposes:g}=e,y={version:i||"",buildVersion:p,globalName:m,remoteEntry:simpleJoinRemoteEntry(c,u),remoteEntryType:f,remoteTypes:simpleJoinRemoteEntry(h.path,h.name),remoteTypesZip:h.zip||"",remoteTypesAPI:h.api||"",remotesInfo:l,shared:e?.shared.map(e=>({assets:e.assets,sharedName:e.name,version:e.version})),modules:g?.map(e=>({moduleName:e.name,modulePath:e.path,assets:e.assets}))};if(e.metaData?.prefetchInterface){let t=e.metaData.prefetchInterface;y={...y,prefetchInterface:t}}if(e.metaData?.prefetchEntry){let{path:t,name:r,type:n}=e.metaData.prefetchEntry;y={...y,prefetchEntry:simpleJoinRemoteEntry(t,r),prefetchEntryType:n}}return r="publicPath"in e.metaData?{...y,publicPath:a(),ssrPublicPath:e.metaData.ssrPublicPath}:{...y,getPublicPath:a()},d&&(r.ssrRemoteEntry=simpleJoinRemoteEntry(d.path,d.name),r.ssrRemoteEntryType=d.type||"commonjs-module"),r}function isManifestProvider(e){return!!("remoteEntry"in e&&e.remoteEntry.includes(MANIFEST_EXT))}function getManifestFileName(e){if(!e)return{statsFileName:StatsFileName,manifestFileName:ManifestFileName};let t="boolean"==typeof e?"":e.filePath||"",r="boolean"==typeof e?"":e.fileName||"",n=".json",o=e=>e.endsWith(n)?e:`${e}${n}`,i=(e,t)=>e.replace(n,`${t}${n}`),a=r?o(r):ManifestFileName;return{statsFileName:simpleJoinRemoteEntry(t,r?i(a,"-stats"):StatsFileName),manifestFileName:simpleJoinRemoteEntry(t,a)}}let PREFIX="[ Module Federation ]",DEFAULT_DELEGATE=console,LOGGER_STACK_SKIP_TOKENS=["logger.ts","logger.js","captureStackTrace","Logger.emit","Logger.log","Logger.info","Logger.warn","Logger.error","Logger.debug"];function captureStackTrace(){try{let e=Error().stack;if(!e)return;let[,...t]=e.split("\n"),r=t.filter(e=>!LOGGER_STACK_SKIP_TOKENS.some(t=>e.includes(t)));if(!r.length)return;let n=r.slice(0,5).join("\n");return`Stack trace:
4
4
  ${n}`}catch{return}}class Logger{constructor(e,t=DEFAULT_DELEGATE){this.prefix=e,this.delegate=t??DEFAULT_DELEGATE}setPrefix(e){this.prefix=e}setDelegate(e){this.delegate=e??DEFAULT_DELEGATE}emit(e,t){let r=this.delegate,n=isDebugMode()?captureStackTrace():void 0,o=n?[...t,n]:t,i=(()=>{switch(e){case"log":return["log","info"];case"info":return["info","log"];case"warn":return["warn","info","log"];case"error":return["error","warn","log"];default:return["debug","log"]}})();for(let e of i){let t=r[e];if("function"==typeof t)return void t.call(r,this.prefix,...o)}for(let e of i){let t=DEFAULT_DELEGATE[e];if("function"==typeof t)return void t.call(DEFAULT_DELEGATE,this.prefix,...o)}}log(...e){this.emit("log",e)}warn(...e){this.emit("warn",e)}error(...e){this.emit("error",e)}success(...e){this.emit("info",e)}info(...e){this.emit("info",e)}ready(...e){this.emit("info",e)}debug(...e){isDebugMode()&&this.emit("debug",e)}}function createLogger(e){return new Logger(e)}function createInfrastructureLogger(e){let t=new Logger(e);return Object.defineProperty(t,"__mf_infrastructure_logger__",{value:!0,enumerable:!1,configurable:!1}),t}function bindLoggerToCompiler(e,t,r){if(e.__mf_infrastructure_logger__&&t?.getInfrastructureLogger)try{let n=t.getInfrastructureLogger(r);n&&"object"==typeof n&&("function"==typeof n.log||"function"==typeof n.info||"function"==typeof n.warn||"function"==typeof n.error)&&e.setDelegate(n)}catch{e.setDelegate(void 0)}}let logger=createLogger(PREFIX),infrastructureLogger=createInfrastructureLogger(PREFIX);async function safeWrapper(e,t){try{return await e()}catch(e){t||warn(e);return}}function isStaticResourcesEqual(e,t){let r=/^(https?:)?\/\//i;return e.replace(r,"").replace(/\/$/,"")===t.replace(r,"").replace(/\/$/,"")}function createScript(e){let t,r=null,n=!0,o=2e4,i=document.getElementsByTagName("script");for(let t=0;t<i.length;t++){let o=i[t],a=o.getAttribute("src");if(a&&isStaticResourcesEqual(a,e.url)){r=o,n=!1;break}}if(!r){let t,n=e.attrs;(r=document.createElement("script")).type=n?.type==="module"?"module":"text/javascript",e.createScriptHook&&((t=e.createScriptHook(e.url,e.attrs))instanceof HTMLScriptElement?r=t:"object"==typeof t&&("script"in t&&t.script&&(r=t.script),"timeout"in t&&t.timeout&&(o=t.timeout))),r.src||(r.src=e.url),n&&!t&&Object.keys(n).forEach(e=>{r&&("async"===e||"defer"===e?r[e]=n[e]:r.getAttribute(e)||r.setAttribute(e,n[e]))})}let a=async(n,o)=>{clearTimeout(t);let i=()=>{o?.type==="error"?e?.onErrorCallback&&e?.onErrorCallback(o):e?.cb&&e?.cb()};if(r&&(r.onerror=null,r.onload=null,safeWrapper(()=>{let{needDeleteScript:t=!0}=e;t&&r?.parentNode&&r.parentNode.removeChild(r)}),n&&"function"==typeof n)){let e=n(o);if(e instanceof Promise){let t=await e;return i(),t}return i(),e}i()};return r.onerror=a.bind(null,r.onerror),r.onload=a.bind(null,r.onload),t=setTimeout(()=>{a(null,Error(`Remote script "${e.url}" time-outed.`))},o),{script:r,needAttach:n}}function createLink(e){let t=null,r=!0,n=document.getElementsByTagName("link");for(let o=0;o<n.length;o++){let i=n[o],a=i.getAttribute("href"),s=i.getAttribute("rel");if(a&&isStaticResourcesEqual(a,e.url)&&s===e.attrs.rel){t=i,r=!1;break}}if(!t){let r;(t=document.createElement("link")).setAttribute("href",e.url);let n=e.attrs;e.createLinkHook&&(r=e.createLinkHook(e.url,n))instanceof HTMLLinkElement&&(t=r),n&&!r&&Object.keys(n).forEach(e=>{t&&!t.getAttribute(e)&&t.setAttribute(e,n[e])})}let o=(r,n)=>{let o=()=>{n?.type==="error"?e?.onErrorCallback&&e?.onErrorCallback(n):e?.cb&&e?.cb()};if(t&&(t.onerror=null,t.onload=null,safeWrapper(()=>{let{needDeleteLink:r=!0}=e;r&&t?.parentNode&&t.parentNode.removeChild(t)}),r)){let e=r(n);return o(),e}o()};return t.onerror=o.bind(null,t.onerror),t.onload=o.bind(null,t.onload),{link:t,needAttach:r}}function loadScript(e,t){let{attrs:r={},createScriptHook:n}=t;return new Promise((t,o)=>{let{script:i,needAttach:a}=createScript({url:e,cb:t,onErrorCallback:o,attrs:{fetchpriority:"high",...r},createScriptHook:n,needDeleteScript:!0});a&&document.head.appendChild(i)})}let sdkImportCache=new Map;function importNodeModule(e){if(!e)throw Error("import specifier is required");if(sdkImportCache.has(e))return sdkImportCache.get(e);let t=Function("name","return import(name)")(e).then(e=>e).catch(t=>{throw console.error(`Error importing module ${e}:`,t),sdkImportCache.delete(e),t});return sdkImportCache.set(e,t),t}let loadNodeFetch=async()=>{let e=await importNodeModule("node-fetch");return e.default||e},lazyLoaderHookFetch=async(e,t,r)=>{let n=(e,t)=>r.lifecycle.fetch.emit(e,t),o=await n(e,t||{});return o&&o instanceof Response?o:("u"<typeof fetch?await loadNodeFetch():fetch)(e,t||{})},createScriptNode="u"<typeof ENV_TARGET||"web"!==ENV_TARGET?(url,cb,attrs,loaderHook)=>{let urlObj;if(loaderHook?.createScriptHook){let hookResult=loaderHook.createScriptHook(url);hookResult&&"object"==typeof hookResult&&"url"in hookResult&&(url=hookResult.url)}try{urlObj=new URL(url)}catch(e){console.error("Error constructing URL:",e),cb(Error(`Invalid URL: ${e}`));return}let getFetch=async()=>loaderHook?.fetch?(e,t)=>lazyLoaderHookFetch(e,t,loaderHook):"u"<typeof fetch?loadNodeFetch():fetch,handleScriptFetch=async(f,urlObj)=>{try{let res=await f(urlObj.href),data=await res.text(),[path,vm]=await Promise.all([importNodeModule("path"),importNodeModule("vm")]),scriptContext={exports:{},module:{exports:{}}},urlDirname=urlObj.pathname.split("/").slice(0,-1).join("/"),filename=path.basename(urlObj.pathname),script=new vm.Script(`(function(exports, module, require, __dirname, __filename) {${data}
5
5
  })`,{filename,importModuleDynamically:vm.constants?.USE_MAIN_CONTEXT_DEFAULT_LOADER??importNodeModule});script.runInThisContext()(scriptContext.exports,scriptContext.module,eval("require"),urlDirname,filename);let exportedInterface=scriptContext.module.exports||scriptContext.exports;if(attrs&&exportedInterface&&attrs.globalName){let container=exportedInterface[attrs.globalName]||exportedInterface;cb(void 0,container);return}cb(void 0,exportedInterface)}catch(e){cb(e instanceof Error?e:Error(`Script execution error: ${e}`))}};getFetch().then(async e=>{if(attrs?.type==="esm"||attrs?.type==="module")return loadModule(urlObj.href,{fetch:e,vm:await importNodeModule("vm")}).then(async e=>{await e.evaluate(),cb(void 0,e.namespace)}).catch(e=>{cb(e instanceof Error?e:Error(`Script execution error: ${e}`))});handleScriptFetch(e,urlObj)}).catch(e=>{cb(e)})}:(e,t,r,n)=>{t(Error("createScriptNode is disabled in non-Node.js environment"))},loadScriptNode="u"<typeof ENV_TARGET||"web"!==ENV_TARGET?(e,t)=>new Promise((r,n)=>{createScriptNode(e,(e,o)=>{if(e)n(e);else{let e=t?.attrs?.globalName||`__FEDERATION_${t?.attrs?.name}:custom__`;r(globalThis[e]=o)}},t.attrs,t.loaderHook)}):(e,t)=>{throw Error("loadScriptNode is disabled in non-Node.js environment")},esmModuleCache=new Map;async function loadModule(e,t){if(esmModuleCache.has(e))return esmModuleCache.get(e);let{fetch:r,vm:n}=t,o=await r(e),i=await o.text(),a=new n.SourceTextModule(i,{importModuleDynamically:async(r,n)=>loadModule(new URL(r,e).href,t)});return esmModuleCache.set(e,a),await a.link(async r=>{let n=new URL(r,e).href;return await loadModule(n,t)}),a}function normalizeOptions(e,t,r){return function(n){if(!1===n)return!1;if(void 0===n)if(e)return t;else return!1;if(!0===n)return t;if(n&&"object"==typeof n)return{...t,...n};throw Error(`Unexpected type for \`${r}\`, expect boolean/undefined/object, got: ${typeof n}`)}}let createModuleFederationConfig=e=>e;exports.BROWSER_LOG_KEY=BROWSER_LOG_KEY,exports.ENCODE_NAME_PREFIX=ENCODE_NAME_PREFIX,exports.EncodedNameTransformMap=EncodedNameTransformMap,exports.FederationModuleManifest=FederationModuleManifest,exports.MANIFEST_EXT=MANIFEST_EXT,exports.MFModuleType=MFModuleType,exports.MFPrefetchCommon=MFPrefetchCommon,exports.MODULE_DEVTOOL_IDENTIFIER=MODULE_DEVTOOL_IDENTIFIER,exports.ManifestFileName=ManifestFileName,exports.NameTransformMap=NameTransformMap,exports.NameTransformSymbol=NameTransformSymbol,exports.SEPARATOR=SEPARATOR,exports.StatsFileName=StatsFileName,exports.TEMP_DIR=TEMP_DIR,exports.assert=assert,exports.bindLoggerToCompiler=bindLoggerToCompiler,exports.composeKeyWithSeparator=composeKeyWithSeparator,exports.containerPlugin=ContainerPlugin,exports.containerReferencePlugin=ContainerReferencePlugin,exports.createInfrastructureLogger=createInfrastructureLogger,exports.createLink=createLink,exports.createLogger=createLogger,exports.createModuleFederationConfig=createModuleFederationConfig,exports.createScript=createScript,exports.createScriptNode=createScriptNode,exports.decodeName=decodeName,exports.encodeName=encodeName,exports.error=error,exports.generateExposeFilename=generateExposeFilename,exports.generateShareFilename=generateShareFilename,exports.generateSnapshotFromManifest=generateSnapshotFromManifest,exports.getManifestFileName=getManifestFileName,exports.getProcessEnv=getProcessEnv,exports.getResourceUrl=getResourceUrl,exports.inferAutoPublicPath=inferAutoPublicPath,exports.infrastructureLogger=infrastructureLogger,exports.isBrowserEnv=isBrowserEnv,exports.isDebugMode=isDebugMode,exports.isManifestProvider=isManifestProvider,exports.isReactNativeEnv=isReactNativeEnv,exports.isRequiredVersion=isRequiredVersion,exports.isStaticResourcesEqual=isStaticResourcesEqual,exports.loadScript=loadScript,exports.loadScriptNode=loadScriptNode,exports.logger=logger,exports.moduleFederationPlugin=ModuleFederationPlugin,exports.normalizeOptions=normalizeOptions,exports.parseEntry=parseEntry,exports.safeToString=safeToString,exports.safeWrapper=safeWrapper,exports.sharePlugin=SharePlugin,exports.simpleJoinRemoteEntry=simpleJoinRemoteEntry,exports.warn=warn},31629(e,t){t.FEDERATION_SUPPORTED_TYPES=["script"]},82707(e,t,r){var n=r(86490),o=r(31629),i=r(45882);function a(e){e.S&&!e.federation.hasAttachShareScopeMap&&e.federation.instance&&e.federation.instance.shareScopeMap&&(e.S=e.federation.instance.shareScopeMap,e.federation.hasAttachShareScopeMap=!0)}function s(e){let{webpackRequire:t,moduleToHandlerMapping:r}=e,{consumesLoadingData:n,initializeSharingData:o}=t;if(n&&!n._updated){let{moduleIdToConsumeDataMapping:t={},initialConsumes:o=[],chunkMapping:i={}}=n;if(Object.entries(t).forEach(([e,t])=>{r[e]||(r[e]={getter:t.fallback,shareInfo:{shareConfig:{requiredVersion:t.requiredVersion,strictVersion:t.strictVersion,singleton:t.singleton,eager:t.eager,layer:t.layer},scope:Array.isArray(t.shareScope)?t.shareScope:[t.shareScope||"default"]},shareKey:t.shareKey})}),"initialConsumes"in e){let{initialConsumes:t=[]}=e;o.forEach(e=>{t.includes(e)||t.push(e)})}if("chunkMapping"in e){let{chunkMapping:t={}}=e;Object.entries(i).forEach(([e,r])=>{t[e]||(t[e]=[]),r.forEach(r=>{t[e].includes(r)||t[e].push(r)})})}n._updated=1}if(o&&!o._updated){let{federation:e}=t;if(!e.instance||!o.scopeToSharingDataMapping)return;let r={};for(let[e,t]of Object.entries(o.scopeToSharingDataMapping))for(let n of t)if("object"==typeof n&&null!==n){let{name:t,version:o,factory:i,eager:a,singleton:s,requiredVersion:l,strictVersion:c}=n,u={requiredVersion:`^${o}`},f=function(e){return void 0!==e};f(s)&&(u.singleton=s),f(l)&&(u.requiredVersion=l),f(a)&&(u.eager=a),f(c)&&(u.strictVersion=c);let h={version:o,scope:[e],shareConfig:u,get:i};r[t]?r[t].push(h):r[t]=[h]}e.instance.registerShared(r),o._updated=1}}function l(e){let{webpackRequire:t,idToExternalAndNameMapping:r={},idToRemoteMap:n={},chunkMapping:o={}}=e,{remotesLoadingData:i}=t,a=t.federation?.bundlerRuntimeOptions?.remotes?.remoteInfos;if(!i||i._updated||!a)return;let{chunkMapping:s,moduleIdToRemoteDataMapping:l}=i;if(s&&l){for(let[e,t]of Object.entries(l))if(r[e]||(r[e]=[t.shareScope,t.name,t.externalModuleId]),!n[e]&&a[t.remoteName]){let r=a[t.remoteName];n[e]||=[],r.forEach(t=>{n[e].includes(t)||n[e].push(t)})}o&&Object.entries(s).forEach(([e,t])=>{o[e]||(o[e]=[]),t.forEach(t=>{o[e].includes(t)||o[e].push(t)})}),i._updated=1}}function c(e){l(e);let{chunkId:t,promises:r,webpackRequire:n,chunkMapping:s,idToExternalAndNameMapping:c,idToRemoteMap:u}=e;a(n),n.o(s,t)&&s[t].forEach(e=>{let t=n.R;t||(t=[]);let a=c[e],s=u[e]||[];if(t.indexOf(a)>=0)return;if(t.push(a),a.p)return r.push(a.p);let l=t=>{t||(t=Error("Container missing")),"string"==typeof t.message&&(t.message+=`
6
- while loading "${a[1]}" from ${a[2]}`),n.m[e]=()=>{throw t},a.p=0},f=(e,t,n,o,i,s)=>{try{let c=e(t,n);if(!c||!c.then)return i(c,o,s);{let e=c.then(e=>i(e,o),l);if(!s)return e;r.push(a.p=e)}}catch(e){l(e)}},h=(e,t,r)=>e?f(n.I,a[0],0,e,p,r):l();var p=(e,r,n)=>f(r.get,a[1],t,0,m,n),m=t=>{a.p=1,n.m[e]=e=>{e.exports=t()}};let d=()=>{try{let e=i.decodeName(s[0].name,i.ENCODE_NAME_PREFIX)+a[1].slice(1),t=n.federation.instance,r=()=>n.federation.instance.loadRemote(e,{loadFactory:!1,from:"build"});if("version-first"===t.options.shareStrategy)return Promise.all(t.sharedHandler.initializeSharing(a[0])).then(()=>r());return r()}catch(e){l(e)}};1===s.length&&o.FEDERATION_SUPPORTED_TYPES.includes(s[0].externalType)&&s[0].name?f(d,a[2],0,0,m,1):f(n,a[2],0,0,h,1)})}function u(e){s(e);let{chunkId:t,promises:r,installedModules:n,webpackRequire:o,chunkMapping:i,moduleToHandlerMapping:l}=e;a(o),o.o(i,t)&&i[t].forEach(e=>{if(o.o(n,e))return r.push(n[e]);let t=t=>{n[e]=0,o.m[e]=r=>{delete o.c[e];let n=t(),{shareInfo:i}=l[e];if(i?.shareConfig?.layer&&n&&"object"==typeof n)try{n.hasOwnProperty("layer")&&void 0!==n.layer||(n.layer=i.shareConfig.layer)}catch(e){}r.exports=n}},i=t=>{delete n[e],o.m[e]=r=>{throw delete o.c[e],t}};try{let a=o.federation.instance;if(!a)throw Error("Federation instance not found!");let{shareKey:s,getter:c,shareInfo:u}=l[e],f=a.loadShare(s,{customShareInfo:u}).then(e=>!1===e?c():e);f.then?r.push(n[e]=f.then(t).catch(i)):t(f)}catch(e){i(e)}})}function f({shareScopeName:e,webpackRequire:t,initPromises:r,initTokens:n,initScope:i}){let s=Array.isArray(e)?e:[e];var l=[],c=function(s){i||(i=[]);let l=t.federation.instance;var c=n[s];if(c||(c=n[s]={from:l.name}),i.indexOf(c)>=0)return;i.push(c);let u=r[s];if(u)return u;var f=e=>"u">typeof console&&console.warn&&console.warn(e),h=r=>{var n=e=>f("Initialization of sharing external failed: "+e);try{var o=t(r);if(!o)return;var a=r=>r&&r.init&&r.init(t.S[s],i,{shareScopeMap:t.S||{},shareScopeKeys:e});if(o.then)return p.push(o.then(a,n));var l=a(o);if(l&&"boolean"!=typeof l&&l.then)return p.push(l.catch(n))}catch(e){n(e)}};let p=l.initializeSharing(s,{strategy:l.options.shareStrategy,initScope:i,from:"build"});a(t);let m=t.federation.bundlerRuntimeOptions.remotes;return(m&&Object.keys(m.idToRemoteMap).forEach(e=>{let t=m.idToRemoteMap[e],r=m.idToExternalAndNameMapping[e][2];if(t.length>1)h(r);else if(1===t.length){let e=t[0];o.FEDERATION_SUPPORTED_TYPES.includes(e.externalType)||h(r)}}),p.length)?r[s]=Promise.all(p).then(()=>r[s]=!0):r[s]=!0};return s.forEach(e=>{l.push(c(e))}),Promise.all(l).then(()=>!0)}function h(e){let{moduleId:t,moduleToHandlerMapping:r,webpackRequire:n}=e,o=n.federation.instance;if(!o)throw Error("Federation instance not found!");let{shareKey:i,shareInfo:a}=r[t];try{return o.loadShareSync(i,{customShareInfo:a})}catch(e){throw console.error('loadShareSync failed! The function should not be called unless you set "eager:true". If you do not set it, and encounter this issue, you can check whether an async boundary is implemented.'),console.error("The original error message is as follows: "),e}}function p(e){let{webpackRequire:t}=e;s(e);let{initialConsumes:r,moduleToHandlerMapping:n,installedModules:o}=e;r.forEach(e=>{t.m[e]=r=>{o[e]=0,delete t.c[e];let i=h({moduleId:e,moduleToHandlerMapping:n,webpackRequire:t});if("function"!=typeof i)throw Error(`Shared module is not available for eager consumption: ${e}`);let a=i(),{shareInfo:s}=n[e];if(s?.shareConfig?.layer&&a&&"object"==typeof a)try{a.hasOwnProperty("layer")&&void 0!==a.layer||(a.layer=s.shareConfig.layer)}catch(e){}r.exports=a}})}function m(e){let{webpackRequire:t,shareScope:r,initScope:n,shareScopeKey:o,remoteEntryInitOptions:i}=e;if(!t.S||!t.federation||!t.federation.instance||!t.federation.initOptions)return;let a=t.federation.instance;a.initOptions({name:t.federation.initOptions.name,remotes:[],...i});let s=i?.shareScopeKeys,l=i?.shareScopeMap;if(o&&"string"!=typeof o)o.forEach(e=>{if(!s||!l)return void a.initShareScopeMap(e,r,{hostShareScopeMap:i?.shareScopeMap||{}});l[e]||(l[e]={});let t=l[e];a.initShareScopeMap(e,t,{hostShareScopeMap:i?.shareScopeMap||{}})});else{let e=o||"default";Array.isArray(s)?s.forEach(e=>{l[e]||(l[e]={});let t=l[e];a.initShareScopeMap(e,t,{hostShareScopeMap:i?.shareScopeMap||{}})}):a.initShareScopeMap(e,r,{hostShareScopeMap:i?.shareScopeMap||{}})}return(t.federation.attachShareScopeMap&&t.federation.attachShareScopeMap(t),"function"==typeof t.federation.prefetch&&t.federation.prefetch(),Array.isArray(o))?t.federation.initOptions.shared?t.I(o,n):Promise.all(o.map(e=>t.I(e,n))).then(()=>!0):t.I(o||"default",n)}e.exports={runtime:function(e){var t=Object.create(null);if(e)for(var r in e)t[r]=e[r];return t.default=e,Object.freeze(t)}(n),instance:void 0,initOptions:void 0,bundlerRuntime:{remotes:c,consumes:u,I:f,S:{},installInitialConsumes:p,initContainerEntry:m},attachShareScopeMap:a,bundlerRuntimeOptions:{}}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.c=__webpack_module_cache__,__webpack_require__.x=()=>__webpack_require__(62216),(()=>{__webpack_require__.federation||(__webpack_require__.federation={chunkMatcher:function(e){return!/^(5(005|059|265)|1460|4006|8652)$/.test(e)},rootOutputDir:""})})(),(()=>{__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t}})(),(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;__webpack_require__.t=function(r,n){if(1&n&&(r=this(r)),8&n||"object"==typeof r&&r&&(4&n&&r.__esModule||16&n&&"function"==typeof r.then))return r;var o=Object.create(null);__webpack_require__.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var a=2&n&&r;("object"==typeof a||"function"==typeof a)&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach(e=>{i[e]=()=>r[e]});return i.default=()=>r,__webpack_require__.d(o,i),o}})(),(()=>{__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}})(),(()=>{__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce((t,r)=>(__webpack_require__.f[r](e,t),t),[]))})(),(()=>{__webpack_require__.u=e=>""+e+".js"})(),(()=>{__webpack_require__.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})()})(),(()=>{__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{var e={},t="@openmrs/esm-patient-programs-app:";__webpack_require__.l=function(r,n,o,i){if(e[r])return void e[r].push(n);if(void 0!==o)for(var a,s,l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var u=l[c];if(u.getAttribute("src")==r||u.getAttribute("data-rspack")==t+o){a=u;break}}a||(s=!0,(a=document.createElement("script")).timeout=120,__webpack_require__.nc&&a.setAttribute("nonce",__webpack_require__.nc),a.setAttribute("data-rspack",t+o),a.src=r),e[r]=[n];var f=function(t,n){a.onerror=a.onload=null,clearTimeout(h);var o=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach(function(e){return e(n)}),t)return t(n)},h=setTimeout(f.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=f.bind(null,a.onerror),a.onload=f.bind(null,a.onload),s&&document.head.appendChild(a)}})(),(()=>{__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{__webpack_require__.nc=void 0})(),(()=>{__webpack_require__.rv=()=>"1.7.9"})(),(()=>{__webpack_require__.S={},__webpack_require__.initializeSharingData={scopeToSharingDataMapping:{default:[{name:"@openmrs/esm-framework",version:"10.0.1-pre.4973",factory:()=>Promise.all([__webpack_require__.e("2544"),__webpack_require__.e("689"),__webpack_require__.e("4412"),__webpack_require__.e("7646"),__webpack_require__.e("8652"),__webpack_require__.e("5265"),__webpack_require__.e("5059"),__webpack_require__.e("5005"),__webpack_require__.e("1460")]).then(()=>()=>__webpack_require__(52957)),eager:0,singleton:1,requiredVersion:"10.x",strictVersion:0},{name:"@openmrs/esm-patient-common-lib",version:"12.3.5-pre.11739",factory:()=>Promise.all([__webpack_require__.e("2544"),__webpack_require__.e("689"),__webpack_require__.e("4412"),__webpack_require__.e("8652"),__webpack_require__.e("5265"),__webpack_require__.e("5059"),__webpack_require__.e("5005"),__webpack_require__.e("1460"),__webpack_require__.e("2790"),__webpack_require__.e("4006"),__webpack_require__.e("2506")]).then(()=>()=>__webpack_require__(9189)),eager:0,singleton:1,requiredVersion:"12.x",strictVersion:0},{name:"dayjs",version:"1.11.13",factory:()=>__webpack_require__.e("5697").then(()=>()=>__webpack_require__(23464)),eager:0,singleton:1,requiredVersion:"1.x",strictVersion:0},{name:"react-i18next",version:"16.0.0",factory:()=>Promise.all([__webpack_require__.e("1789"),__webpack_require__.e("8652")]).then(()=>()=>__webpack_require__(42348)),eager:0,singleton:1,requiredVersion:"16.x",strictVersion:0},{name:"react-router-dom",version:"6.30.4",factory:()=>Promise.all([__webpack_require__.e("689"),__webpack_require__.e("9712"),__webpack_require__.e("8652")]).then(()=>()=>__webpack_require__(27059)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"react",version:"18.3.1",factory:()=>__webpack_require__.e("466").then(()=>()=>__webpack_require__(14041)),eager:0,singleton:1,requiredVersion:"18.x",strictVersion:0},{name:"rxjs",version:"6.6.7",factory:()=>__webpack_require__.e("9105").then(()=>()=>__webpack_require__(37864)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"swr/_internal",version:"2.2.5",factory:()=>Promise.all([__webpack_require__.e("3989"),__webpack_require__.e("8652")]).then(()=>()=>__webpack_require__(42372)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/immutable",version:"2.2.5",factory:()=>Promise.all([__webpack_require__.e("9061"),__webpack_require__.e("8652"),__webpack_require__.e("5265"),__webpack_require__.e("3720")]).then(()=>()=>__webpack_require__(29876)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/infinite",version:"2.2.5",factory:()=>Promise.all([__webpack_require__.e("9771"),__webpack_require__.e("8652"),__webpack_require__.e("5265"),__webpack_require__.e("1339")]).then(()=>()=>__webpack_require__(52470)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0}]},uniqueName:"@openmrs/esm-patient-programs-app"},__webpack_require__.I=__webpack_require__.I||function(){throw Error("should have __webpack_require__.I")}})(),(()=>{__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var e,t=__webpack_require__.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=r[n--].src}if(!e)throw Error("Automatic publicPath is not supported in this browser");__webpack_require__.p=e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")})(),(()=>{__webpack_require__.consumesLoadingData={chunkMapping:{5005:["95571","30682","24354","13660"],8652:["35399"],4006:["92293"],8569:["13040"],1460:["27807"],5059:["80222"],5265:["43432"]},moduleIdToConsumeDataMapping:{80222:{shareScope:"default",shareKey:"dayjs",import:"dayjs",requiredVersion:"1.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("5697").then(()=>()=>__webpack_require__(23464))},30682:{shareScope:"default",shareKey:"swr/infinite",import:"swr/infinite",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("9771").then(()=>()=>__webpack_require__(52470))},35399:{shareScope:"default",shareKey:"react",import:"react",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("466").then(()=>()=>__webpack_require__(14041))},92293:{shareScope:"default",shareKey:"@openmrs/esm-framework",import:"@openmrs/esm-framework",requiredVersion:"10.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([__webpack_require__.e("2544"),__webpack_require__.e("7646"),__webpack_require__.e("5059"),__webpack_require__.e("5005")]).then(()=>()=>__webpack_require__(52957))},24354:{shareScope:"default",shareKey:"rxjs",import:"rxjs",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("9105").then(()=>()=>__webpack_require__(37864))},27807:{shareScope:"default",shareKey:"react-i18next",import:"react-i18next",requiredVersion:"16.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("1789").then(()=>()=>__webpack_require__(42348))},95571:{shareScope:"default",shareKey:"react-router-dom",import:"react-router-dom",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("9712").then(()=>()=>__webpack_require__(27059))},43432:{shareScope:"default",shareKey:"swr/_internal",import:"swr/_internal",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("3989").then(()=>()=>__webpack_require__(42372))},13040:{shareScope:"default",shareKey:"@openmrs/esm-patient-common-lib",import:"@openmrs/esm-patient-common-lib",requiredVersion:"12.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([__webpack_require__.e("2544"),__webpack_require__.e("5059"),__webpack_require__.e("5005"),__webpack_require__.e("2790")]).then(()=>()=>__webpack_require__(9189))},13660:{shareScope:"default",shareKey:"swr/immutable",import:"swr/immutable",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("9061").then(()=>()=>__webpack_require__(29876))}},initialConsumes:[]},__webpack_require__.f.consumes=__webpack_require__.f.consumes||function(){throw Error("should have __webpack_require__.f.consumes")}})(),(()=>{__webpack_require__.initializeExposesData={moduleMap:{"./start":()=>Promise.all([__webpack_require__.e("689"),__webpack_require__.e("4412"),__webpack_require__.e("157"),__webpack_require__.e("8652"),__webpack_require__.e("5265"),__webpack_require__.e("1460"),__webpack_require__.e("4006"),__webpack_require__.e("8569")]).then(()=>()=>__webpack_require__(99264))},shareScope:"default"},__webpack_require__.getContainer=__webpack_require__.getContainer||function(){throw Error("should have __webpack_require__.getContainer")},__webpack_require__.initContainer=__webpack_require__.initContainer||function(){throw Error("should have __webpack_require__.initContainer")}})(),(()=>{var e={7486:0};__webpack_require__.f.j=function(t,r){var n=__webpack_require__.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else if(/^(5(005|059|265)|1460|4006|8652)$/.test(t))e[t]=0;else{var o=new Promise((r,o)=>n=e[t]=[r,o]);r.push(n[2]=o);var i=__webpack_require__.p+__webpack_require__.u(t),a=Error(),s=function(r){if(__webpack_require__.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,n[1](a)}};__webpack_require__.l(i,s,"chunk-"+t,t)}};var t=(t,r)=>{var n,o,[i,a,s]=r,l=0;if(i.some(t=>0!==e[t])){for(n in a)__webpack_require__.o(a,n)&&(__webpack_require__.m[n]=a[n]);s&&s(__webpack_require__)}for(t&&t(r);l<i.length;l++)o=i[l],__webpack_require__.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=globalThis.webpackChunk_openmrs_esm_patient_programs_app=globalThis.webpackChunk_openmrs_esm_patient_programs_app||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{__webpack_require__.ruid="bundler=rspack@1.7.9"})(),(()=>{var e=__webpack_require__.x,t=!1;__webpack_require__.x=function(){if(t||(t=!0,__webpack_require__(47551)),"function"==typeof e)return e();console.warn("[MF] Invalid prevStartup")}})();var __webpack_exports__=__webpack_require__.x();_openmrs_esm_patient_programs_app=__webpack_exports__})();
6
+ while loading "${a[1]}" from ${a[2]}`),n.m[e]=()=>{throw t},a.p=0},f=(e,t,n,o,i,s)=>{try{let c=e(t,n);if(!c||!c.then)return i(c,o,s);{let e=c.then(e=>i(e,o),l);if(!s)return e;r.push(a.p=e)}}catch(e){l(e)}},h=(e,t,r)=>e?f(n.I,a[0],0,e,p,r):l();var p=(e,r,n)=>f(r.get,a[1],t,0,m,n),m=t=>{a.p=1,n.m[e]=e=>{e.exports=t()}};let d=()=>{try{let e=i.decodeName(s[0].name,i.ENCODE_NAME_PREFIX)+a[1].slice(1),t=n.federation.instance,r=()=>n.federation.instance.loadRemote(e,{loadFactory:!1,from:"build"});if("version-first"===t.options.shareStrategy)return Promise.all(t.sharedHandler.initializeSharing(a[0])).then(()=>r());return r()}catch(e){l(e)}};1===s.length&&o.FEDERATION_SUPPORTED_TYPES.includes(s[0].externalType)&&s[0].name?f(d,a[2],0,0,m,1):f(n,a[2],0,0,h,1)})}function u(e){s(e);let{chunkId:t,promises:r,installedModules:n,webpackRequire:o,chunkMapping:i,moduleToHandlerMapping:l}=e;a(o),o.o(i,t)&&i[t].forEach(e=>{if(o.o(n,e))return r.push(n[e]);let t=t=>{n[e]=0,o.m[e]=r=>{delete o.c[e];let n=t(),{shareInfo:i}=l[e];if(i?.shareConfig?.layer&&n&&"object"==typeof n)try{n.hasOwnProperty("layer")&&void 0!==n.layer||(n.layer=i.shareConfig.layer)}catch(e){}r.exports=n}},i=t=>{delete n[e],o.m[e]=r=>{throw delete o.c[e],t}};try{let a=o.federation.instance;if(!a)throw Error("Federation instance not found!");let{shareKey:s,getter:c,shareInfo:u}=l[e],f=a.loadShare(s,{customShareInfo:u}).then(e=>!1===e?c():e);f.then?r.push(n[e]=f.then(t).catch(i)):t(f)}catch(e){i(e)}})}function f({shareScopeName:e,webpackRequire:t,initPromises:r,initTokens:n,initScope:i}){let s=Array.isArray(e)?e:[e];var l=[],c=function(s){i||(i=[]);let l=t.federation.instance;var c=n[s];if(c||(c=n[s]={from:l.name}),i.indexOf(c)>=0)return;i.push(c);let u=r[s];if(u)return u;var f=e=>"u">typeof console&&console.warn&&console.warn(e),h=r=>{var n=e=>f("Initialization of sharing external failed: "+e);try{var o=t(r);if(!o)return;var a=r=>r&&r.init&&r.init(t.S[s],i,{shareScopeMap:t.S||{},shareScopeKeys:e});if(o.then)return p.push(o.then(a,n));var l=a(o);if(l&&"boolean"!=typeof l&&l.then)return p.push(l.catch(n))}catch(e){n(e)}};let p=l.initializeSharing(s,{strategy:l.options.shareStrategy,initScope:i,from:"build"});a(t);let m=t.federation.bundlerRuntimeOptions.remotes;return(m&&Object.keys(m.idToRemoteMap).forEach(e=>{let t=m.idToRemoteMap[e],r=m.idToExternalAndNameMapping[e][2];if(t.length>1)h(r);else if(1===t.length){let e=t[0];o.FEDERATION_SUPPORTED_TYPES.includes(e.externalType)||h(r)}}),p.length)?r[s]=Promise.all(p).then(()=>r[s]=!0):r[s]=!0};return s.forEach(e=>{l.push(c(e))}),Promise.all(l).then(()=>!0)}function h(e){let{moduleId:t,moduleToHandlerMapping:r,webpackRequire:n}=e,o=n.federation.instance;if(!o)throw Error("Federation instance not found!");let{shareKey:i,shareInfo:a}=r[t];try{return o.loadShareSync(i,{customShareInfo:a})}catch(e){throw console.error('loadShareSync failed! The function should not be called unless you set "eager:true". If you do not set it, and encounter this issue, you can check whether an async boundary is implemented.'),console.error("The original error message is as follows: "),e}}function p(e){let{webpackRequire:t}=e;s(e);let{initialConsumes:r,moduleToHandlerMapping:n,installedModules:o}=e;r.forEach(e=>{t.m[e]=r=>{o[e]=0,delete t.c[e];let i=h({moduleId:e,moduleToHandlerMapping:n,webpackRequire:t});if("function"!=typeof i)throw Error(`Shared module is not available for eager consumption: ${e}`);let a=i(),{shareInfo:s}=n[e];if(s?.shareConfig?.layer&&a&&"object"==typeof a)try{a.hasOwnProperty("layer")&&void 0!==a.layer||(a.layer=s.shareConfig.layer)}catch(e){}r.exports=a}})}function m(e){let{webpackRequire:t,shareScope:r,initScope:n,shareScopeKey:o,remoteEntryInitOptions:i}=e;if(!t.S||!t.federation||!t.federation.instance||!t.federation.initOptions)return;let a=t.federation.instance;a.initOptions({name:t.federation.initOptions.name,remotes:[],...i});let s=i?.shareScopeKeys,l=i?.shareScopeMap;if(o&&"string"!=typeof o)o.forEach(e=>{if(!s||!l)return void a.initShareScopeMap(e,r,{hostShareScopeMap:i?.shareScopeMap||{}});l[e]||(l[e]={});let t=l[e];a.initShareScopeMap(e,t,{hostShareScopeMap:i?.shareScopeMap||{}})});else{let e=o||"default";Array.isArray(s)?s.forEach(e=>{l[e]||(l[e]={});let t=l[e];a.initShareScopeMap(e,t,{hostShareScopeMap:i?.shareScopeMap||{}})}):a.initShareScopeMap(e,r,{hostShareScopeMap:i?.shareScopeMap||{}})}return(t.federation.attachShareScopeMap&&t.federation.attachShareScopeMap(t),"function"==typeof t.federation.prefetch&&t.federation.prefetch(),Array.isArray(o))?t.federation.initOptions.shared?t.I(o,n):Promise.all(o.map(e=>t.I(e,n))).then(()=>!0):t.I(o||"default",n)}e.exports={runtime:function(e){var t=Object.create(null);if(e)for(var r in e)t[r]=e[r];return t.default=e,Object.freeze(t)}(n),instance:void 0,initOptions:void 0,bundlerRuntime:{remotes:c,consumes:u,I:f,S:{},installInitialConsumes:p,initContainerEntry:m},attachShareScopeMap:a,bundlerRuntimeOptions:{}}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.c=__webpack_module_cache__,__webpack_require__.x=()=>__webpack_require__(62216),(()=>{__webpack_require__.federation||(__webpack_require__.federation={chunkMatcher:function(e){return!/^(5(005|059|265)|1460|4006|8652)$/.test(e)},rootOutputDir:""})})(),(()=>{__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t}})(),(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;__webpack_require__.t=function(r,n){if(1&n&&(r=this(r)),8&n||"object"==typeof r&&r&&(4&n&&r.__esModule||16&n&&"function"==typeof r.then))return r;var o=Object.create(null);__webpack_require__.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var a=2&n&&r;("object"==typeof a||"function"==typeof a)&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach(e=>{i[e]=()=>r[e]});return i.default=()=>r,__webpack_require__.d(o,i),o}})(),(()=>{__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}})(),(()=>{__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce((t,r)=>(__webpack_require__.f[r](e,t),t),[]))})(),(()=>{__webpack_require__.u=e=>""+e+".js"})(),(()=>{__webpack_require__.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})()})(),(()=>{__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{var e={},t="@openmrs/esm-patient-programs-app:";__webpack_require__.l=function(r,n,o,i){if(e[r])return void e[r].push(n);if(void 0!==o)for(var a,s,l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var u=l[c];if(u.getAttribute("src")==r||u.getAttribute("data-rspack")==t+o){a=u;break}}a||(s=!0,(a=document.createElement("script")).timeout=120,__webpack_require__.nc&&a.setAttribute("nonce",__webpack_require__.nc),a.setAttribute("data-rspack",t+o),a.src=r),e[r]=[n];var f=function(t,n){a.onerror=a.onload=null,clearTimeout(h);var o=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach(function(e){return e(n)}),t)return t(n)},h=setTimeout(f.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=f.bind(null,a.onerror),a.onload=f.bind(null,a.onload),s&&document.head.appendChild(a)}})(),(()=>{__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{__webpack_require__.nc=void 0})(),(()=>{__webpack_require__.rv=()=>"1.7.9"})(),(()=>{__webpack_require__.S={},__webpack_require__.initializeSharingData={scopeToSharingDataMapping:{default:[{name:"@openmrs/esm-framework",version:"10.0.1-pre.4973",factory:()=>Promise.all([__webpack_require__.e("2544"),__webpack_require__.e("689"),__webpack_require__.e("4412"),__webpack_require__.e("7646"),__webpack_require__.e("8652"),__webpack_require__.e("5265"),__webpack_require__.e("5059"),__webpack_require__.e("5005"),__webpack_require__.e("1460")]).then(()=>()=>__webpack_require__(52957)),eager:0,singleton:1,requiredVersion:"10.x",strictVersion:0},{name:"@openmrs/esm-patient-common-lib",version:"12.3.5-pre.11742",factory:()=>Promise.all([__webpack_require__.e("2544"),__webpack_require__.e("689"),__webpack_require__.e("4412"),__webpack_require__.e("8652"),__webpack_require__.e("5265"),__webpack_require__.e("5059"),__webpack_require__.e("5005"),__webpack_require__.e("1460"),__webpack_require__.e("2790"),__webpack_require__.e("4006"),__webpack_require__.e("2506")]).then(()=>()=>__webpack_require__(9189)),eager:0,singleton:1,requiredVersion:"12.x",strictVersion:0},{name:"dayjs",version:"1.11.13",factory:()=>__webpack_require__.e("5697").then(()=>()=>__webpack_require__(23464)),eager:0,singleton:1,requiredVersion:"1.x",strictVersion:0},{name:"react-i18next",version:"16.0.0",factory:()=>Promise.all([__webpack_require__.e("1789"),__webpack_require__.e("8652")]).then(()=>()=>__webpack_require__(42348)),eager:0,singleton:1,requiredVersion:"16.x",strictVersion:0},{name:"react-router-dom",version:"6.30.4",factory:()=>Promise.all([__webpack_require__.e("689"),__webpack_require__.e("9712"),__webpack_require__.e("8652")]).then(()=>()=>__webpack_require__(27059)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"react",version:"18.3.1",factory:()=>__webpack_require__.e("466").then(()=>()=>__webpack_require__(14041)),eager:0,singleton:1,requiredVersion:"18.x",strictVersion:0},{name:"rxjs",version:"6.6.7",factory:()=>__webpack_require__.e("9105").then(()=>()=>__webpack_require__(37864)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"swr/_internal",version:"2.2.5",factory:()=>Promise.all([__webpack_require__.e("3989"),__webpack_require__.e("8652")]).then(()=>()=>__webpack_require__(42372)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/immutable",version:"2.2.5",factory:()=>Promise.all([__webpack_require__.e("9061"),__webpack_require__.e("8652"),__webpack_require__.e("5265"),__webpack_require__.e("3720")]).then(()=>()=>__webpack_require__(29876)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/infinite",version:"2.2.5",factory:()=>Promise.all([__webpack_require__.e("9771"),__webpack_require__.e("8652"),__webpack_require__.e("5265"),__webpack_require__.e("1339")]).then(()=>()=>__webpack_require__(52470)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0}]},uniqueName:"@openmrs/esm-patient-programs-app"},__webpack_require__.I=__webpack_require__.I||function(){throw Error("should have __webpack_require__.I")}})(),(()=>{__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var e,t=__webpack_require__.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=r[n--].src}if(!e)throw Error("Automatic publicPath is not supported in this browser");__webpack_require__.p=e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")})(),(()=>{__webpack_require__.consumesLoadingData={chunkMapping:{5005:["95571","30682","24354","13660"],8652:["35399"],4006:["92293"],8569:["13040"],1460:["27807"],5059:["80222"],5265:["43432"]},moduleIdToConsumeDataMapping:{80222:{shareScope:"default",shareKey:"dayjs",import:"dayjs",requiredVersion:"1.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("5697").then(()=>()=>__webpack_require__(23464))},30682:{shareScope:"default",shareKey:"swr/infinite",import:"swr/infinite",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("9771").then(()=>()=>__webpack_require__(52470))},35399:{shareScope:"default",shareKey:"react",import:"react",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("466").then(()=>()=>__webpack_require__(14041))},92293:{shareScope:"default",shareKey:"@openmrs/esm-framework",import:"@openmrs/esm-framework",requiredVersion:"10.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([__webpack_require__.e("2544"),__webpack_require__.e("7646"),__webpack_require__.e("5059"),__webpack_require__.e("5005")]).then(()=>()=>__webpack_require__(52957))},24354:{shareScope:"default",shareKey:"rxjs",import:"rxjs",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("9105").then(()=>()=>__webpack_require__(37864))},27807:{shareScope:"default",shareKey:"react-i18next",import:"react-i18next",requiredVersion:"16.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("1789").then(()=>()=>__webpack_require__(42348))},95571:{shareScope:"default",shareKey:"react-router-dom",import:"react-router-dom",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("9712").then(()=>()=>__webpack_require__(27059))},43432:{shareScope:"default",shareKey:"swr/_internal",import:"swr/_internal",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("3989").then(()=>()=>__webpack_require__(42372))},13040:{shareScope:"default",shareKey:"@openmrs/esm-patient-common-lib",import:"@openmrs/esm-patient-common-lib",requiredVersion:"12.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([__webpack_require__.e("2544"),__webpack_require__.e("5059"),__webpack_require__.e("5005"),__webpack_require__.e("2790")]).then(()=>()=>__webpack_require__(9189))},13660:{shareScope:"default",shareKey:"swr/immutable",import:"swr/immutable",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("9061").then(()=>()=>__webpack_require__(29876))}},initialConsumes:[]},__webpack_require__.f.consumes=__webpack_require__.f.consumes||function(){throw Error("should have __webpack_require__.f.consumes")}})(),(()=>{__webpack_require__.initializeExposesData={moduleMap:{"./start":()=>Promise.all([__webpack_require__.e("689"),__webpack_require__.e("4412"),__webpack_require__.e("157"),__webpack_require__.e("8652"),__webpack_require__.e("5265"),__webpack_require__.e("1460"),__webpack_require__.e("4006"),__webpack_require__.e("8569")]).then(()=>()=>__webpack_require__(99264))},shareScope:"default"},__webpack_require__.getContainer=__webpack_require__.getContainer||function(){throw Error("should have __webpack_require__.getContainer")},__webpack_require__.initContainer=__webpack_require__.initContainer||function(){throw Error("should have __webpack_require__.initContainer")}})(),(()=>{var e={7486:0};__webpack_require__.f.j=function(t,r){var n=__webpack_require__.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else if(/^(5(005|059|265)|1460|4006|8652)$/.test(t))e[t]=0;else{var o=new Promise((r,o)=>n=e[t]=[r,o]);r.push(n[2]=o);var i=__webpack_require__.p+__webpack_require__.u(t),a=Error(),s=function(r){if(__webpack_require__.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,n[1](a)}};__webpack_require__.l(i,s,"chunk-"+t,t)}};var t=(t,r)=>{var n,o,[i,a,s]=r,l=0;if(i.some(t=>0!==e[t])){for(n in a)__webpack_require__.o(a,n)&&(__webpack_require__.m[n]=a[n]);s&&s(__webpack_require__)}for(t&&t(r);l<i.length;l++)o=i[l],__webpack_require__.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=globalThis.webpackChunk_openmrs_esm_patient_programs_app=globalThis.webpackChunk_openmrs_esm_patient_programs_app||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{__webpack_require__.ruid="bundler=rspack@1.7.9"})(),(()=>{var e=__webpack_require__.x,t=!1;__webpack_require__.x=function(){if(t||(t=!0,__webpack_require__(47551)),"function"==typeof e)return e();console.warn("[MF] Invalid prevStartup")}})();var __webpack_exports__=__webpack_require__.x();_openmrs_esm_patient_programs_app=__webpack_exports__})();
@@ -219,7 +219,7 @@
219
219
  "auxiliaryFiles": [
220
220
  "main.js.map"
221
221
  ],
222
- "hash": "d636b31fcd7f38a9",
222
+ "hash": "561c04f4e86d15d2",
223
223
  "childrenByOrder": {}
224
224
  },
225
225
  {
@@ -475,9 +475,9 @@
475
475
  "rendered": true,
476
476
  "initial": false,
477
477
  "entry": false,
478
- "size": 60318,
478
+ "size": 61133,
479
479
  "sizes": {
480
- "javascript": 60318
480
+ "javascript": 61133
481
481
  },
482
482
  "names": [],
483
483
  "idHints": [],
@@ -491,7 +491,7 @@
491
491
  "auxiliaryFiles": [
492
492
  "3906.js.map"
493
493
  ],
494
- "hash": "a8168a21aa9568f2",
494
+ "hash": "6ea4c2c59d983329",
495
495
  "childrenByOrder": {}
496
496
  },
497
497
  {
@@ -836,9 +836,9 @@
836
836
  "rendered": true,
837
837
  "initial": false,
838
838
  "entry": false,
839
- "size": 1673,
839
+ "size": 1773,
840
840
  "sizes": {
841
- "javascript": 1673
841
+ "javascript": 1773
842
842
  },
843
843
  "names": [],
844
844
  "idHints": [],
@@ -852,7 +852,7 @@
852
852
  "auxiliaryFiles": [
853
853
  "5117.js.map"
854
854
  ],
855
- "hash": "d94619d5d99795c5",
855
+ "hash": "98dd3e2bcc9e4678",
856
856
  "childrenByOrder": {}
857
857
  },
858
858
  {
@@ -1338,7 +1338,7 @@
1338
1338
  "auxiliaryFiles": [
1339
1339
  "openmrs-esm-patient-programs-app.js.map"
1340
1340
  ],
1341
- "hash": "f16f85292d66435b",
1341
+ "hash": "d57f0b0539c247f4",
1342
1342
  "childrenByOrder": {}
1343
1343
  },
1344
1344
  {
package/dist/routes.json CHANGED
@@ -1 +1 @@
1
- {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=2.2.0"},"extensions":[{"name":"programs-overview-widget","component":"programsOverview","meta":{"fullWidth":false},"order":6},{"name":"programs-details-widget","slot":"patient-chart-programs-dashboard-slot","component":"programsDetailedSummary","order":6},{"name":"programs-summary-dashboard","slot":"patient-chart-dashboard-slot","component":"programsDashboardLink","meta":{"slot":"patient-chart-programs-dashboard-slot","path":"programs"},"order":10}],"pages":[],"workspaces2":[{"name":"programs-form-workspace","component":"programsFormWorkspace","window":"programs-form-window"}],"workspaceWindows2":[{"name":"programs-form-window","group":"patient-chart"}],"modals":[{"name":"program-delete-confirmation-modal","component":"deleteProgramConfirmationModal"}],"version":"12.3.5-pre.11739"}
1
+ {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=2.2.0"},"extensions":[{"name":"programs-overview-widget","component":"programsOverview","meta":{"fullWidth":false},"order":6},{"name":"programs-details-widget","slot":"patient-chart-programs-dashboard-slot","component":"programsDetailedSummary","order":6},{"name":"programs-summary-dashboard","slot":"patient-chart-dashboard-slot","component":"programsDashboardLink","meta":{"slot":"patient-chart-programs-dashboard-slot","path":"programs"},"order":10}],"pages":[],"workspaces2":[{"name":"programs-form-workspace","component":"programsFormWorkspace","window":"programs-form-window"}],"workspaceWindows2":[{"name":"programs-form-window","group":"patient-chart"}],"modals":[{"name":"program-delete-confirmation-modal","component":"deleteProgramConfirmationModal"}],"version":"12.3.5-pre.11742"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-patient-programs-app",
3
- "version": "12.3.5-pre.11739",
3
+ "version": "12.3.5-pre.11742",
4
4
  "license": "MPL-2.0",
5
5
  "description": "Patient programs microfrontend for the OpenMRS SPA",
6
6
  "browser": "dist/openmrs-esm-patient-programs-app.js",
@@ -52,7 +52,7 @@
52
52
  "swr": "2.x"
53
53
  },
54
54
  "devDependencies": {
55
- "@openmrs/esm-patient-common-lib": "12.3.5-pre.11739",
55
+ "@openmrs/esm-patient-common-lib": "12.3.5-pre.11742",
56
56
  "openmrs": "next",
57
57
  "vitest": "^4.1.2"
58
58
  },
@@ -6,6 +6,7 @@
6
6
  * matchers on payloads built with `new Date()` in production code.
7
7
  */
8
8
  import React from 'react';
9
+ import dayjs from 'dayjs';
9
10
  import { vi, describe, it, expect } from 'vitest';
10
11
  import userEvent from '@testing-library/user-event';
11
12
  import { fireEvent, render, screen } from '@testing-library/react';
@@ -174,6 +175,100 @@ describe('ProgramsForm', () => {
174
175
  );
175
176
  });
176
177
 
178
+ it('does not submit the form when completion date is before enrollment date', async () => {
179
+ const user = userEvent.setup();
180
+
181
+ // mockEnrolledProgramsResponse[0] has dateEnrolled: '2020-01-16'
182
+ renderProgramsForm(mockEnrolledProgramsResponse[0].uuid);
183
+
184
+ const completionDateInput = screen.getByRole('textbox', { name: /date completed/i });
185
+ const saveButton = screen.getByRole('button', { name: /save and close/i });
186
+
187
+ await user.click(completionDateInput);
188
+ await user.paste('2019-12-01');
189
+ await user.tab();
190
+
191
+ await user.click(saveButton);
192
+
193
+ expect(screen.getByText(/completion date cannot be before the enrollment date/i)).toBeInTheDocument();
194
+ expect(mockCreateProgramEnrollment).not.toHaveBeenCalled();
195
+ expect(mockUpdateProgramEnrollment).not.toHaveBeenCalled();
196
+ });
197
+
198
+ it('submits the form when the completion date is on the same day as the enrollment date', async () => {
199
+ const user = userEvent.setup();
200
+
201
+ // In create mode the enrollment date defaults to `new Date()`, which carries a
202
+ // time-of-day, while the date picker emits midnight. This guards that same-day
203
+ // completion is allowed and saved rather than rejected as "before enrollment".
204
+ const today = dayjs().format('YYYY-MM-DD');
205
+ const oncologyScreeningProgramUuid = '11b129ca-a5e7-4025-84bf-b92a173e20de';
206
+
207
+ renderProgramsForm();
208
+
209
+ const programNameInput = screen.getByRole('combobox', { name: /program name/i });
210
+ const completionDateInput = screen.getByRole('textbox', { name: /date completed/i });
211
+ const saveButton = screen.getByRole('button', { name: /save and close/i });
212
+
213
+ await user.selectOptions(programNameInput, [oncologyScreeningProgramUuid]);
214
+ await user.click(completionDateInput);
215
+ await user.paste(today);
216
+ await user.tab();
217
+
218
+ await user.click(saveButton);
219
+
220
+ expect(mockCreateProgramEnrollment).toHaveBeenCalledTimes(1);
221
+ expect(mockCreateProgramEnrollment).toHaveBeenCalledWith(
222
+ expect.objectContaining({
223
+ dateCompleted: expect.stringMatching(new RegExp(`^${today}`)),
224
+ program: oncologyScreeningProgramUuid,
225
+ patient: mockPatient.id,
226
+ }),
227
+ new AbortController(),
228
+ );
229
+ });
230
+
231
+ it('preserves a stored completion time that falls later than the enrollment time on the same day', async () => {
232
+ const user = userEvent.setup();
233
+
234
+ // The backend only rejects completion strictly before enrollment, so a stored same-day
235
+ // completion time later than the enrollment time is valid and must survive a resave
236
+ // that only touches an unrelated field.
237
+ const sameDayEnrollment = {
238
+ ...mockEnrolledProgramsResponse[0],
239
+ dateEnrolled: '2020-01-16T09:00:00.000+0000',
240
+ dateCompleted: '2020-01-16T17:00:00.000+0000',
241
+ };
242
+
243
+ mockUseEnrollments.mockReturnValue({
244
+ data: [sameDayEnrollment],
245
+ error: null,
246
+ isLoading: false,
247
+ isValidating: false,
248
+ activeEnrollments: [],
249
+ mutateEnrollments: vi.fn(),
250
+ });
251
+
252
+ mockUpdateProgramEnrollment.mockResolvedValue({
253
+ status: 200,
254
+ statusText: 'OK',
255
+ } as unknown as FetchResponse);
256
+
257
+ renderProgramsForm(sameDayEnrollment.uuid);
258
+
259
+ await user.click(screen.getByRole('radio', { name: 'location_2' }));
260
+ await user.click(screen.getByRole('button', { name: /save and close/i }));
261
+
262
+ expect(mockUpdateProgramEnrollment).toHaveBeenCalledTimes(1);
263
+ expect(mockUpdateProgramEnrollment).toHaveBeenCalledWith(
264
+ sameDayEnrollment.uuid,
265
+ expect.objectContaining({
266
+ dateCompleted: dayjs('2020-01-16T17:00:00.000+0000').format(),
267
+ }),
268
+ new AbortController(),
269
+ );
270
+ });
271
+
177
272
  it('renders the programs status field if the config property is set to true', async () => {
178
273
  mockUseConfig.mockReturnValue({
179
274
  ...getDefaultsFromConfigSchema(configSchema),
@@ -46,13 +46,30 @@ export interface ProgramsFormProps {
46
46
  }
47
47
 
48
48
  const createProgramsFormSchema = (t: TFunction) =>
49
- z.object({
50
- selectedProgram: z.string().refine((value) => !!value, t('programRequired', 'Program is required')),
51
- enrollmentDate: z.date(),
52
- completionDate: z.date().optional().nullable(),
53
- enrollmentLocation: z.string(),
54
- selectedProgramStatus: z.string(),
55
- });
49
+ z
50
+ .object({
51
+ selectedProgram: z.string().refine((value) => !!value, t('programRequired', 'Program is required')),
52
+ enrollmentDate: z.date(),
53
+ completionDate: z.date().optional().nullable(),
54
+ enrollmentLocation: z.string(),
55
+ selectedProgramStatus: z.string(),
56
+ })
57
+ .superRefine((data, ctx) => {
58
+ if (
59
+ data.completionDate &&
60
+ data.enrollmentDate &&
61
+ dayjs(data.completionDate).isBefore(data.enrollmentDate, 'day')
62
+ ) {
63
+ ctx.addIssue({
64
+ code: z.ZodIssueCode.custom,
65
+ message: t(
66
+ 'completionDateCannotBeBeforeEnrollmentDate',
67
+ 'Completion date cannot be before the enrollment date',
68
+ ),
69
+ path: ['completionDate'],
70
+ });
71
+ }
72
+ });
56
73
 
57
74
  export type ProgramsFormData = z.infer<ReturnType<typeof createProgramsFormSchema>>;
58
75
 
@@ -122,7 +139,14 @@ const ProgramsForm: React.FC<PatientWorkspace2DefinitionProps<ProgramsFormProps,
122
139
  patient: patientUuid,
123
140
  program: selectedProgram,
124
141
  dateEnrolled: enrollmentDate ? dayjs(enrollmentDate).format() : null,
125
- dateCompleted: completionDate ? dayjs(completionDate).format() : null,
142
+ // The date picker emits midnight timestamps, which the backend would reject as "before" a
143
+ // same-day enrollment. Align those to the enrollment timestamp, but preserve stored
144
+ // completion times that already fall later on the same day.
145
+ dateCompleted: completionDate
146
+ ? dayjs(completionDate).isSame(enrollmentDate, 'day') && dayjs(completionDate).isBefore(enrollmentDate)
147
+ ? dayjs(enrollmentDate).format()
148
+ : dayjs(completionDate).format()
149
+ : null,
126
150
  location: enrollmentLocation,
127
151
  states:
128
152
  !!selectedProgramStatus && selectedProgramStatus != currentState?.state.uuid
@@ -205,7 +229,7 @@ const ProgramsForm: React.FC<PatientWorkspace2DefinitionProps<ProgramsFormProps,
205
229
  data-testid="enrollmentDate"
206
230
  maxDate={(() => {
207
231
  const completionDate = watch('completionDate');
208
- return completionDate ? dayjs(completionDate).subtract(1, 'day').toDate() : new Date();
232
+ return completionDate ? dayjs(completionDate).toDate() : new Date();
209
233
  })()}
210
234
  labelText={t('dateEnrolled', 'Date enrolled')}
211
235
  invalid={Boolean(fieldState?.error?.message)}
@@ -224,9 +248,8 @@ const ProgramsForm: React.FC<PatientWorkspace2DefinitionProps<ProgramsFormProps,
224
248
  {...field}
225
249
  id="completionDate"
226
250
  data-testid="completionDate"
227
- minDate={dayjs(watch('enrollmentDate')).add(1, 'day').toDate()}
251
+ minDate={dayjs(watch('enrollmentDate')).toDate()}
228
252
  maxDate={new Date()}
229
- isDisabled={dayjs(watch('enrollmentDate')).isSame(dayjs(), 'day')}
230
253
  labelText={t('dateCompleted', 'Date completed')}
231
254
  invalid={Boolean(fieldState?.error?.message)}
232
255
  invalidText={fieldState?.error?.message}
@@ -8,6 +8,7 @@
8
8
  "chooseProgram": "Choose a program",
9
9
  "chooseStatus": "Choose a program status",
10
10
  "completedOn": "Completed On",
11
+ "completionDateCannotBeBeforeEnrollmentDate": "Completion date cannot be before the enrollment date",
11
12
  "configurePrograms": "Please configure programs to continue.",
12
13
  "dateCompleted": "Date completed",
13
14
  "dateEnrolled": "Date enrolled",