iobroker.shoppingroute 0.3.5 → 0.3.7
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.
- package/README.md +17 -70
- package/README_DE.md +17 -74
- package/admin/custom/assets/_virtual_mf-localSharedImportMap___mfe_internal__ShoppingRouteAdminSet__mf_owner__1-Dcdz6a1g.js +1 -0
- package/admin/custom/assets/_virtual_mf___mfe_internal__ShoppingRouteAdminSet__mf_owner__1__loadShare__react__loadShare__.js-BEN0cOy_.js +9 -0
- package/admin/custom/assets/hostInit-KtEBYxPv.js +1 -0
- package/admin/custom/assets/index-2HOz3j7B.js +7 -0
- package/admin/custom/assets/route-editor-components-DNT6xQbj.js +21 -0
- package/admin/custom/assets/virtualExposes-CMBYcRVL.js +1 -0
- package/admin/custom/markets/assets/_virtual_mf-localSharedImportMap___mfe_internal__ShoppingRouteMarketsSet__mf_owner__1-CtUYOyEr.js +1 -0
- package/admin/custom/markets/assets/_virtual_mf___mfe_internal__ShoppingRouteMarketsSet__mf_owner__1__loadShare__react__loadShare__.js-v8gr9ECk.js +9 -0
- package/admin/custom/markets/assets/hostInit-q6AU2IHv.js +1 -0
- package/admin/custom/markets/assets/index-2HOz3j7B.js +7 -0
- package/admin/custom/markets/assets/markets-editor-components-BClE65GP.js +67 -0
- package/admin/custom/markets/assets/virtualExposes-DZPYeKNv.js +1 -0
- package/admin/custom/markets/marketsEditor.js +13 -2
- package/admin/custom/markets/mf-manifest.json +1 -1
- package/admin/custom/markets/mf-stats.json +1 -0
- package/admin/custom/mf-manifest.json +1 -1
- package/admin/custom/mf-stats.json +1 -0
- package/admin/custom/productGroups/assets/_virtual_mf-localSharedImportMap___mfe_internal__ShoppingRouteProductGroupsSet__mf_owner__1-B0xMJzsR.js +1 -0
- package/admin/custom/productGroups/assets/_virtual_mf___mfe_internal__ShoppingRouteProductGroupsSet__mf_owner__1__loadShare__react__loadShare__.js-ByKwhmn3.js +9 -0
- package/admin/custom/productGroups/assets/hostInit-CH1ythAA.js +1 -0
- package/admin/custom/productGroups/assets/index-2HOz3j7B.js +7 -0
- package/admin/custom/productGroups/assets/product-groups-editor-components-DEWXh4S6.js +44 -0
- package/admin/custom/productGroups/assets/virtualExposes-3TJUr6WQ.js +1 -0
- package/admin/custom/productGroups/mf-manifest.json +1 -1
- package/admin/custom/productGroups/mf-stats.json +1 -0
- package/admin/custom/productGroups/productGroupsEditor.js +13 -2
- package/admin/custom/routeEditor.js +13 -2
- package/admin/custom/shoppingList/assets/_virtual_mf-localSharedImportMap___mfe_internal__ShoppingRouteShoppingListSet__mf_owner__1-BkReJy06.js +1 -0
- package/admin/custom/shoppingList/assets/_virtual_mf___mfe_internal__ShoppingRouteShoppingListSet__mf_owner__1__loadShare__react__loadShare__.js-DKxc1wk0.js +9 -0
- package/admin/custom/shoppingList/assets/hostInit-Bj93C5rF.js +1 -0
- package/admin/custom/shoppingList/assets/index-2HOz3j7B.js +7 -0
- package/admin/custom/shoppingList/assets/shopping-list-editor-components-2ZxXB6jP.js +72 -0
- package/admin/custom/shoppingList/assets/virtualExposes-a309i88F.js +1 -0
- package/admin/custom/shoppingList/assets/vite-preload-helper-Dp1pzeXC.js +1 -0
- package/admin/custom/shoppingList/mf-manifest.json +1 -0
- package/admin/custom/shoppingList/mf-stats.json +1 -0
- package/admin/custom/shoppingList/shoppingListEditor.js +13 -0
- package/admin/i18n/de.json +67 -0
- package/admin/i18n/en.json +67 -0
- package/admin/i18n/es.json +67 -0
- package/admin/i18n/fr.json +67 -0
- package/admin/i18n/it.json +67 -0
- package/admin/i18n/nl.json +67 -0
- package/admin/i18n/pl.json +67 -0
- package/admin/i18n/pt.json +67 -0
- package/admin/i18n/ru.json +67 -0
- package/admin/i18n/uk.json +67 -0
- package/admin/i18n/zh-cn.json +67 -0
- package/admin/jsonConfig.json +25 -820
- package/build/lib/manual-order.js +126 -0
- package/build/lib/prefix-sort.js +38 -6
- package/build/lib/sorter.js +6 -0
- package/build/main.js +190 -2
- package/io-package.json +40 -14
- package/package.json +11 -5
- package/admin/custom/assets/ShoppingRouteAdminSet__mf_v__runtimeInit__mf_v__-CSXtL_6m.js +0 -10
- package/admin/custom/assets/_commonjsHelpers-CqkleIqs.js +0 -1
- package/admin/custom/assets/hostInit-DprWdRSg.js +0 -2
- package/admin/custom/assets/index-EOeIS_7q.js +0 -9
- package/admin/custom/assets/route-editor-components-FB3CfD4a.js +0 -1
- package/admin/custom/assets/virtualExposes-0pJrfiZw.js +0 -2
- package/admin/custom/markets/assets/ShoppingRouteMarketsSet__mf_v__runtimeInit__mf_v__-Dx7i8THH.js +0 -10
- package/admin/custom/markets/assets/_commonjsHelpers-CqkleIqs.js +0 -1
- package/admin/custom/markets/assets/hostInit-DeIlwHf1.js +0 -2
- package/admin/custom/markets/assets/index-EOeIS_7q.js +0 -9
- package/admin/custom/markets/assets/markets-editor-components-DbpDn4Ma.js +0 -67
- package/admin/custom/markets/assets/virtualExposes-HyPFqZfW.js +0 -2
- package/admin/custom/productGroups/assets/ShoppingRouteProductGroupsSet__mf_v__runtimeInit__mf_v__-Be3p3_Gt.js +0 -10
- package/admin/custom/productGroups/assets/_commonjsHelpers-CqkleIqs.js +0 -1
- package/admin/custom/productGroups/assets/hostInit-BHEE7C9D.js +0 -2
- package/admin/custom/productGroups/assets/index-EOeIS_7q.js +0 -9
- package/admin/custom/productGroups/assets/product-groups-editor-components-DUHkQ08b.js +0 -44
- package/admin/custom/productGroups/assets/virtualExposes-BohEelXR.js +0 -2
- /package/admin/custom/assets/{preload-helper-Dp1pzeXC.js → vite-preload-helper-Dp1pzeXC.js} +0 -0
- /package/admin/custom/markets/assets/{preload-helper-Dp1pzeXC.js → vite-preload-helper-Dp1pzeXC.js} +0 -0
- /package/admin/custom/productGroups/assets/{preload-helper-Dp1pzeXC.js → vite-preload-helper-Dp1pzeXC.js} +0 -0
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|

|
|
4
4
|
|
|
5
|
-
**Current version: 0.3.
|
|
5
|
+
**Current version: 0.3.7**
|
|
6
6
|
|
|
7
7
|
ShoppingRoute sorts Alexa shopping-list entries by market, product group and each store's individual walking route. It assigns visible two-digit keys such as `20> Bananas` and `40> ═════ ALDI ═════`; managed lists must therefore be set to **A–Z** in the Alexa app. ShoppingRoute reuses the local Alexa2 authentication for direct item updates, deletes and batch creates, while Alexa2 list states remain the external change trigger.
|
|
8
8
|
|
|
@@ -40,6 +40,21 @@ See `README_DE.md` for the detailed German documentation.
|
|
|
40
40
|
|
|
41
41
|
## Changelog
|
|
42
42
|
|
|
43
|
+
### 0.3.7 (2026-09-11)
|
|
44
|
+
|
|
45
|
+
- Added an interactive current shopping-list view to Admin with drag-and-drop plus touch-friendly arrow/market controls.
|
|
46
|
+
- Manual item positions and market moves are persisted locally and take precedence over automatic sorting while that active list item exists.
|
|
47
|
+
- Alexa writes are performed by the adapter; the browser receives no Alexa/Amazon credentials, and failed moves reload the confirmed list state.
|
|
48
|
+
- Improved responsive Admin layouts for xs/sm screens and added the repository Responsive Design tab width recommendation.
|
|
49
|
+
- Review entries now retain an idempotent “Accepted” status after a normal Save instead of falling back to “Pending”.
|
|
50
|
+
|
|
51
|
+
### 0.3.6 (2026-09-04)
|
|
52
|
+
|
|
53
|
+
- Cleaned up avoidable repository-checker warnings.
|
|
54
|
+
- Made the JSON Config i18n mode explicit and moved all existing translations into the standard language-file structure.
|
|
55
|
+
- Removed obsolete prepublish protection and archived older changelog entries.
|
|
56
|
+
- No sorting or runtime behavior was changed.
|
|
57
|
+
|
|
43
58
|
### 0.3.5 (2026-08-17)
|
|
44
59
|
|
|
45
60
|
- Completed the remaining repository re-review cleanup with an English statistics fallback.
|
|
@@ -83,75 +98,7 @@ See `README_DE.md` for the detailed German documentation.
|
|
|
83
98
|
- Explicit market phrases always remain assigned to the requested market.
|
|
84
99
|
- Header management uses Alexa2 states (`#New`, `#delete`) and does not create a second Amazon session; normal shopping items are never automatically deleted or completed.
|
|
85
100
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
- First stable release of ShoppingRoute.
|
|
89
|
-
- Completed Admin translations for all supported ioBroker languages and fixed the walking-route market help text.
|
|
90
|
-
- Added protected stable publishing through GitHub Actions and npm Trusted Publishing/OIDC.
|
|
91
|
-
- Verified `updateListItem` compatibility with Alexa2 3.28.3 and alexa-remote2 8.1.0 without local modifications to foreign modules.
|
|
92
|
-
|
|
93
|
-
### 0.2.0-beta.12 (2026-08-09)
|
|
94
|
-
|
|
95
|
-
- Added an official stable-release deployment path while keeping public-beta packaging separate.
|
|
96
|
-
- Added the shared ioBroker ESLint configuration and resolved type-safety/lint findings without functional changes.
|
|
97
|
-
- Updated the resolved `@iobroker/testing` version to 5.3.0 and revalidated the test suite.
|
|
98
|
-
|
|
99
|
-
### 0.2.0-beta.11 (2026-08-09)
|
|
100
|
-
|
|
101
|
-
- Added official ioBroker package and integration tests and completed further workflow and JSON Config compatibility fixes.
|
|
102
|
-
- Switched ShoppingRoute to the MIT License.
|
|
103
|
-
- Updated public-beta documentation, release history and version information.
|
|
104
|
-
|
|
105
|
-
### 0.2.0-beta.10 (2026-08-09)
|
|
106
|
-
|
|
107
|
-
- Added an Admin 7.6 compatible backup and sharing interface for configuration backups and market profiles.
|
|
108
|
-
- Added JSON validation for configuration and market-profile imports.
|
|
109
|
-
- Fixed the runtime version consistency check and improved automated compatibility tests.
|
|
110
|
-
|
|
111
|
-
### 0.2.0-beta.9 (2026-08-09)
|
|
112
|
-
|
|
113
|
-
- Renamed closed-beta references to public beta across packaging, workflow and documentation.
|
|
114
|
-
|
|
115
|
-
### 0.2.0-beta.8 (2026-08-09)
|
|
116
|
-
|
|
117
|
-
- Version update only; no functional changes.
|
|
118
|
-
|
|
119
|
-
### 0.2.0-beta.7 (2026-08-08)
|
|
120
|
-
|
|
121
|
-
- Added a real standalone market dropdown for the walking-route editor; only the selected market route is shown while the complete route list remains stored internally.
|
|
122
|
-
- Centralized Admin translations in reusable JSON Config i18n variables for all required ioBroker languages.
|
|
123
|
-
- Added further repository-checker compliance fixes for responsive tables, CI, Dependabot, button roles and VS Code schemas.
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
### 0.2.0-beta.6 (2026-08-08)
|
|
127
|
-
|
|
128
|
-
- Alexa2 instance is now selected from installed/enabled Alexa2 instances instead of free text.
|
|
129
|
-
- Alexa lists are offered as dynamically detected dropdown values.
|
|
130
|
-
- Walking routes use native ioBroker JSON Config controls again; the faulty custom Module Federation editor has been removed.
|
|
131
|
-
- The current-shopping market can be visibly reset to “— No market —” directly in its dropdown; the separate clear button has been removed.
|
|
132
|
-
- Renamed the permanent and one-off market settings to make their purpose clearer.
|
|
133
|
-
- API protection settings moved into General so they are not overlooked.
|
|
134
|
-
|
|
135
|
-
### 0.2.0-beta.4 (2026-08-08)
|
|
136
|
-
|
|
137
|
-
- Added a market filter to the walking-route table so one market can be edited at a time.
|
|
138
|
-
- Walking-route rows are grouped alphabetically by market while preserving the configured route order inside each market.
|
|
139
|
-
- Added ioBroker repository-checker metadata, responsive JSON Config sizing and explicit JSON Config i18n mode.
|
|
140
|
-
- Updated ioBroker adapter dependencies and development testing metadata.
|
|
141
|
-
- Replaced plain Node.js timers with adapter-managed timers.
|
|
142
|
-
- Added standard GitHub test workflow and Dependabot configuration.
|
|
143
|
-
|
|
144
|
-
### 0.2.0-beta.2 (2026-08-08)
|
|
145
|
-
|
|
146
|
-
- New active markets and new product groups automatically receive missing walking-route rows.
|
|
147
|
-
|
|
148
|
-
### 0.2.0-beta.1 (2026-08-08)
|
|
149
|
-
|
|
150
|
-
- Added review queue, improved parser and aliases, API safe mode, multi-list support, statistics, transfer tools and beta diagnostics.
|
|
151
|
-
|
|
152
|
-
### 0.1.0-beta.3 (2026-08-08)
|
|
153
|
-
|
|
154
|
-
- First public beta npm package with safe value-only Alexa list sorting and fixed-slot ordering.
|
|
101
|
+
Older releases: [CHANGELOG_OLD.md](CHANGELOG_OLD.md).
|
|
155
102
|
|
|
156
103
|
## License
|
|
157
104
|
|
package/README_DE.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|

|
|
4
4
|
|
|
5
|
-
**Aktuelle Version: 0.3.
|
|
5
|
+
**Aktuelle Version: 0.3.7**
|
|
6
6
|
|
|
7
7
|
ShoppingRoute sortiert Alexa-Einkaufslisteneinträge nach Markt, Produktgruppe und dem individuellen Laufweg durch den jeweiligen Markt. Dazu vergibt es sichtbare zweistellige Schlüssel wie `20> Bananen` und `40> ═════ ALDI ═════`; verwaltete Listen müssen deshalb in der Alexa-App auf **A–Z** stehen. ShoppingRoute übernimmt lokal die Alexa2-Authentifizierung für direkte Updates, Deletes und Batch-Creates; Alexa2-Listenstates bleiben die Triggerquelle für externe Änderungen.
|
|
8
8
|
|
|
@@ -73,6 +73,21 @@ ShoppingRoute wird unter der **MIT-Lizenz** veröffentlicht. Frühere bereits ve
|
|
|
73
73
|
|
|
74
74
|
## Changelog
|
|
75
75
|
|
|
76
|
+
### 0.3.7 (2026-09-11)
|
|
77
|
+
|
|
78
|
+
- Interaktive aktuelle Einkaufsliste im Admin ergänzt: Drag&Drop sowie touch-taugliche Pfeil- und Marktauswahl stehen parallel zur Verfügung.
|
|
79
|
+
- Manuelle Artikelpositionen und Marktverschiebungen werden lokal gespeichert und haben Vorrang vor der automatischen Sortierung, solange der aktive Listeneintrag existiert.
|
|
80
|
+
- Alexa-Schreibzugriffe erfolgen ausschließlich im Adapter; der Browser erhält keine Alexa-/Amazon-Zugangsdaten. Bei Fehlern wird die bestätigte Liste neu geladen.
|
|
81
|
+
- Responsive Admin-Darstellung für xs/sm verbessert und die empfohlene Tab-Breite der Responsive Design Initiative ergänzt.
|
|
82
|
+
- Prüflisteneinträge behalten nach normalem Speichern nun den idempotenten Status „Übernommen“, statt wieder auf „Offen“ zurückzufallen.
|
|
83
|
+
|
|
84
|
+
### 0.3.6 (2026-09-04)
|
|
85
|
+
|
|
86
|
+
- Vermeidbare Repository-Checker-Warnungen bereinigt.
|
|
87
|
+
- Den JSON-Config-i18n-Modus explizit gesetzt und alle bestehenden Übersetzungen in die Standard-Sprachdateistruktur verschoben.
|
|
88
|
+
- Veralteten Prepublish-Schutz entfernt und ältere Changelog-Einträge archiviert.
|
|
89
|
+
- Sortier- und Laufzeitverhalten wurden nicht geändert.
|
|
90
|
+
|
|
76
91
|
### 0.3.5 (2026-08-17)
|
|
77
92
|
|
|
78
93
|
- Verbleibende Repository-Re-Review-Bereinigung mit englischem Statistik-Fallback abgeschlossen.
|
|
@@ -116,78 +131,6 @@ ShoppingRoute wird unter der **MIT-Lizenz** veröffentlicht. Frühere bereits ve
|
|
|
116
131
|
- Explizite Marktangaben bleiben von der Zusammenlegung ausnahmslos unberührt.
|
|
117
132
|
- Die damalige Header-Verwaltung nutzte Alexa2-Datenpunkte (`#New`, `#delete`). Ab 0.3.2 werden Header als normale präfixierte Items über die direkte, lokal authentifizierte Sitzung verwaltet.
|
|
118
133
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
- Erste stabile Veröffentlichung von ShoppingRoute.
|
|
122
|
-
- Vollständige Admin-Übersetzungen für alle unterstützten ioBroker-Sprachen abgeschlossen und den Hilfetext der Laufwege-Auswahl korrigiert.
|
|
123
|
-
- Geschützten Stable-Publish über GitHub Actions, npm Trusted Publishing/OIDC und obfuskierten Runtime-Build eingerichtet.
|
|
124
|
-
- Kompatibilität mit Alexa2 3.28.3 und alexa-remote2 8.1.0 für `updateListItem` ohne lokale Fremdmodul-Änderung verifiziert.
|
|
125
|
-
|
|
126
|
-
### 0.2.0-beta.12 (2026-08-09)
|
|
127
|
-
|
|
128
|
-
- Offiziellen Stable-Release-Deploy-Weg ergänzt, während die öffentliche Beta-Paketierung getrennt bleibt.
|
|
129
|
-
- Gemeinsame ioBroker-ESLint-Konfiguration ergänzt und Typ-/Lint-Funde ohne funktionale Änderungen bereinigt.
|
|
130
|
-
- Aufgelöste Version von `@iobroker/testing` auf 5.3.0 aktualisiert und Testsuite erneut validiert.
|
|
131
|
-
|
|
132
|
-
### 0.2.0-beta.11 (2026-08-09)
|
|
133
|
-
|
|
134
|
-
- Offizielle ioBroker-Paket- und Integrationstests ergänzt sowie weitere Workflow- und JSON-Config-Kompatibilitätskorrekturen abgeschlossen.
|
|
135
|
-
- ShoppingRoute auf die MIT-Lizenz umgestellt.
|
|
136
|
-
- Public-Beta-Dokumentation, Versionshistorie und Versionsangaben aktualisiert.
|
|
137
|
-
|
|
138
|
-
### 0.2.0-beta.10 (2026-08-09)
|
|
139
|
-
|
|
140
|
-
- Admin-7.6-kompatible Oberfläche für Sicherung und Teilen von Konfigurationssicherungen und Marktprofilen ergänzt.
|
|
141
|
-
- JSON-Prüfung für den Import von Konfigurationen und Marktprofilen ergänzt.
|
|
142
|
-
- Konsistenzprüfung der Runtime-Version korrigiert und automatisierte Kompatibilitätstests erweitert.
|
|
143
|
-
|
|
144
|
-
### 0.2.0-beta.9 (2026-08-09)
|
|
145
|
-
|
|
146
|
-
- Bezeichnungen und Dokumentation von „Closed Beta“ auf „Public Beta“ umgestellt, einschließlich Paketbau und Workflow.
|
|
147
|
-
|
|
148
|
-
### 0.2.0-beta.8 (2026-08-09)
|
|
149
|
-
|
|
150
|
-
- Reine Versionsanhebung ohne funktionale Änderungen.
|
|
151
|
-
|
|
152
|
-
### 0.2.0-beta.7 (2026-08-08)
|
|
153
|
-
|
|
154
|
-
- Echter Markt-Pulldown für den Laufweg-Editor; sichtbar ist nur der ausgewählte Markt, die vollständige Laufwegliste bleibt intern erhalten.
|
|
155
|
-
- Admin-Übersetzungen zentral als wiederverwendbare JSON-Config-i18n-Variablen für alle von ioBroker geforderten Sprachen hinterlegt.
|
|
156
|
-
- Weitere Checker-Korrekturen für responsive Tabellen, CI, Dependabot, Button-Rollen und VS-Code-Schemas.
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
### 0.2.0-beta.6 (2026-08-08)
|
|
160
|
-
|
|
161
|
-
- Alexa2-Instanz wird aus den installierten/aktiven Alexa2-Instanzen ausgewählt statt frei eingetippt.
|
|
162
|
-
- Alexa-Listen werden dynamisch erkannt und als Pulldown angeboten.
|
|
163
|
-
- Laufwege verwenden wieder ausschließlich native ioBroker-JSON-Config-Komponenten; damit entfällt der fehlerhafte Custom-/Module-Federation-Editor.
|
|
164
|
-
- „Markt für aktuellen Einkauf“ lässt sich direkt im Pulldown sichtbar auf „— Kein Markt —“ zurücksetzen; der separate Löschbutton entfällt.
|
|
165
|
-
- Dauerhafter Standardmarkt und einmaliger Markt für den aktuellen Einkauf sind verständlicher benannt.
|
|
166
|
-
- API-Schutz wurde direkt in „Allgemein“ integriert, damit die Einstellungen nicht übersehen werden.
|
|
167
|
-
|
|
168
|
-
### 0.2.0-beta.4 (2026-08-08)
|
|
169
|
-
|
|
170
|
-
- Marktfilter in den Laufwegen: Es kann gezielt nur ein Markt angezeigt und bearbeitet werden.
|
|
171
|
-
- Laufwege werden alphabetisch nach Markt gruppiert; die individuelle Reihenfolge innerhalb eines Marktes bleibt erhalten.
|
|
172
|
-
- ioBroker-Repochecker-Metadaten, responsive JSON-Config-Größen und expliziter i18n-Modus ergänzt.
|
|
173
|
-
- ioBroker-Abhängigkeiten und Entwicklungs-Testmetadaten aktualisiert.
|
|
174
|
-
- Globale Timer durch adapterverwaltete Timer ersetzt.
|
|
175
|
-
- Standard-GitHub-Testworkflow und Dependabot ergänzt.
|
|
176
|
-
|
|
177
|
-
### 0.2.0-beta.2 (2026-08-08)
|
|
178
|
-
|
|
179
|
-
- Neue aktive Märkte und neue Produktgruppen erhalten automatisch fehlende Laufweg-Einträge.
|
|
180
|
-
|
|
181
|
-
### 0.2.0-beta.1 (2026-08-08)
|
|
182
|
-
|
|
183
|
-
- Review-Warteschlange, verbesserter Parser und Aliase, API-Schutzmodus, Unterstützung mehrerer Listen, Statistiken, Übertragungswerkzeuge und Beta-Diagnose ergänzt.
|
|
184
|
-
|
|
185
|
-
### 0.1.0-beta.3 (2026-08-08)
|
|
186
|
-
|
|
187
|
-
- Erstes öffentliches npm-Betapaket mit sicherer Alexa-Listensortierung nur über value-Texte und feste Positions-IDs.
|
|
188
|
-
|
|
189
|
-
## Lizenz
|
|
190
|
-
|
|
191
|
-
MIT-Lizenz. Die vollständigen Bedingungen stehen in LICENSE.
|
|
134
|
+
Ältere Versionen: [CHANGELOG_OLD.md](CHANGELOG_OLD.md).
|
|
192
135
|
|
|
193
136
|
Copyright (c) 2026 RaviniZib
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./index-2HOz3j7B.js";const o={react:async()=>await import("./_virtual_mf___mfe_internal__ShoppingRouteAdminSet__mf_owner__1__loadShare__react__loadShare__.js-BEN0cOy_.js").then(r=>r.b)},n={react:{name:"react",version:"18.3.1",scope:["default"],loaded:!1,materialize:!0,eager:!1,from:"ShoppingRouteAdminSet",canLiveRebind:!0,async get(){n.react.loaded=!0;const{react:t}=o,e={...await t()};return e.__esModule!==!0&&Object.defineProperty(e,"__esModule",{value:!0,enumerable:!1}),function(){return e}},shareConfig:{singleton:!0,requiredVersion:">=18",strictVersion:!1,eager:!1}}},u=[];export{u as usedRemotes,n as usedShared};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
function q(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const o in n)if(o!=="default"&&!(o in e)){const f=Object.getOwnPropertyDescriptor(n,o);f&&Object.defineProperty(e,o,f.get?f:{enumerable:!0,get:()=>n[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function B(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var x={exports:{}},u={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var d=Symbol.for("react.element"),G=Symbol.for("react.portal"),Y=Symbol.for("react.fragment"),J=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),X=Symbol.for("react.provider"),Z=Symbol.for("react.context"),ee=Symbol.for("react.forward_ref"),te=Symbol.for("react.suspense"),re=Symbol.for("react.memo"),ne=Symbol.for("react.lazy"),P=Symbol.iterator;function oe(e){return e===null||typeof e!="object"?null:(e=P&&e[P]||e["@@iterator"],typeof e=="function"?e:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$=Object.assign,L={};function y(e,t,r){this.props=e,this.context=t,this.refs=L,this.updater=r||D}y.prototype.isReactComponent={};y.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function N(){}N.prototype=y.prototype;function g(e,t,r){this.props=e,this.context=t,this.refs=L,this.updater=r||D}var w=g.prototype=new N;w.constructor=g;$(w,y.prototype);w.isPureReactComponent=!0;var k=Array.isArray,A=Object.prototype.hasOwnProperty,j={current:null},V={key:!0,ref:!0,__self:!0,__source:!0};function M(e,t,r){var n,o={},f=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(f=""+t.key),t)A.call(t,n)&&!V.hasOwnProperty(n)&&(o[n]=t[n]);var c=arguments.length-2;if(c===1)o.children=r;else if(1<c){for(var l=Array(c),_=0;_<c;_++)l[_]=arguments[_+2];o.children=l}if(e&&e.defaultProps)for(n in c=e.defaultProps,c)o[n]===void 0&&(o[n]=c[n]);return{$$typeof:d,type:e,key:f,ref:a,props:o,_owner:j.current}}function ue(e,t){return{$$typeof:d,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function T(e){return typeof e=="object"&&e!==null&&e.$$typeof===d}function se(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var I=/\/+/g;function v(e,t){return typeof e=="object"&&e!==null&&e.key!=null?se(""+e.key):t.toString(36)}function h(e,t,r,n,o){var f=typeof e;(f==="undefined"||f==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(f){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case d:case G:a=!0}}if(a)return a=e,o=o(a),e=n===""?"."+v(a,0):n,k(o)?(r="",e!=null&&(r=e.replace(I,"$&/")+"/"),h(o,t,r,"",function(_){return _})):o!=null&&(T(o)&&(o=ue(o,r+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(I,"$&/")+"/")+e)),t.push(o)),1;if(a=0,n=n===""?".":n+":",k(e))for(var c=0;c<e.length;c++){f=e[c];var l=n+v(f,c);a+=h(f,t,r,l,o)}else if(l=oe(e),typeof l=="function")for(e=l.call(e),c=0;!(f=e.next()).done;)f=f.value,l=n+v(f,c++),a+=h(f,t,r,l,o);else if(f==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function m(e,t,r){if(e==null)return e;var n=[],o=0;return h(e,n,"","",function(f){return t.call(r,f,o++)}),n}function fe(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var i={current:null},S={transition:null},ae={ReactCurrentDispatcher:i,ReactCurrentBatchConfig:S,ReactCurrentOwner:j};function F(){throw Error("act(...) is not supported in production builds of React.")}u.Children={map:m,forEach:function(e,t,r){m(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return m(e,function(){t++}),t},toArray:function(e){return m(e,function(t){return t})||[]},only:function(e){if(!T(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};u.Component=y;u.Fragment=Y;u.Profiler=Q;u.PureComponent=g;u.StrictMode=J;u.Suspense=te;u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ae;u.act=F;u.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=$({},e.props),o=e.key,f=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(f=t.ref,a=j.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in t)A.call(t,l)&&!V.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&c!==void 0?c[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){c=Array(l);for(var _=0;_<l;_++)c[_]=arguments[_+2];n.children=c}return{$$typeof:d,type:e.type,key:o,ref:f,props:n,_owner:a}};u.createContext=function(e){return e={$$typeof:Z,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:X,_context:e},e.Consumer=e};u.createElement=M;u.createFactory=function(e){var t=M.bind(null,e);return t.type=e,t};u.createRef=function(){return{current:null}};u.forwardRef=function(e){return{$$typeof:ee,render:e}};u.isValidElement=T;u.lazy=function(e){return{$$typeof:ne,_payload:{_status:-1,_result:e},_init:fe}};u.memo=function(e,t){return{$$typeof:re,type:e,compare:t===void 0?null:t}};u.startTransition=function(e){var t=S.transition;S.transition={};try{e()}finally{S.transition=t}};u.unstable_act=F;u.useCallback=function(e,t){return i.current.useCallback(e,t)};u.useContext=function(e){return i.current.useContext(e)};u.useDebugValue=function(){};u.useDeferredValue=function(e){return i.current.useDeferredValue(e)};u.useEffect=function(e,t){return i.current.useEffect(e,t)};u.useId=function(){return i.current.useId()};u.useImperativeHandle=function(e,t,r){return i.current.useImperativeHandle(e,t,r)};u.useInsertionEffect=function(e,t){return i.current.useInsertionEffect(e,t)};u.useLayoutEffect=function(e,t){return i.current.useLayoutEffect(e,t)};u.useMemo=function(e,t){return i.current.useMemo(e,t)};u.useReducer=function(e,t,r){return i.current.useReducer(e,t,r)};u.useRef=function(e){return i.current.useRef(e)};u.useState=function(e){return i.current.useState(e)};u.useSyncExternalStore=function(e,t,r){return i.current.useSyncExternalStore(e,t,r)};u.useTransition=function(){return i.current.useTransition()};u.version="18.3.1";x.exports=u;var U=x.exports;const ce=B(U),O=q({__proto__:null,default:ce},[U]),s=O,le=s.Children,ie=s.Component,_e=s.Fragment,pe=s.Profiler,ye=s.PureComponent,de=s.StrictMode,me=s.Suspense,he=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Se=s.act,be=s.cloneElement,Ee=s.createContext,ve=s.createElement,Oe=s.createFactory,Re=s.createRef,Ce=s.forwardRef,ge=s.isValidElement,we=s.lazy,je=s.memo,Te=s.startTransition,Pe=s.unstable_act,ke=s.useCallback,Ie=s.useContext,xe=s.useDebugValue,De=s.useDeferredValue,$e=s.useEffect,Le=s.useId,Ne=s.useImperativeHandle,Ae=s.useInsertionEffect,Ve=s.useLayoutEffect,Me=s.useMemo,Fe=s.useReducer,Ue=s.useRef,ze=s.useState,We=s.useSyncExternalStore,He=s.useTransition,Ke=s.version,qe=Reflect.get(O,"default")??O,Be=Object.freeze(Object.defineProperty({__proto__:null,Children:le,Component:ie,Fragment:_e,Profiler:pe,PureComponent:ye,StrictMode:de,Suspense:me,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:he,act:Se,cloneElement:be,createContext:Ee,createElement:ve,createFactory:Oe,createRef:Re,default:qe,forwardRef:Ce,isValidElement:ge,lazy:we,memo:je,startTransition:Te,unstable_act:Pe,useCallback:ke,useContext:Ie,useDebugValue:xe,useDeferredValue:De,useEffect:$e,useId:Le,useImperativeHandle:Ne,useInsertionEffect:Ae,useLayoutEffect:Ve,useMemo:Me,useReducer:Fe,useRef:Ue,useState:ze,useSyncExternalStore:We,useTransition:He,version:Ke},Symbol.toStringTag,{value:"Module"})),E="__mf_module_cache__";globalThis[E]||={share:{},remote:{}};globalThis[E].share||={};globalThis[E].remote||={};const p=globalThis[E];for(const e of Object.keys(p.share))if(e.startsWith("default:")){const t=e.slice(8);p.share[t]===void 0&&(p.share[t]=p.share[e])}else if(!e.includes(":")){const t="default:"+e;p.share[t]===void 0&&(p.share[t]=p.share[e])}const Ge=(e,t)=>{const r=e[t.canonical];if(r!==void 0)return r;const n=t.aliases||[];for(const o of n){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const f=e[o];if(f!==void 0)return e[t.canonical]=f,f}},R=Symbol.for("module-federation.shared-cache-listeners"),Ye=e=>{let t=e[R];return t===void 0&&(t=Object.create(null),Object.defineProperty(e,R,{value:t,enumerable:!1,configurable:!1,writable:!1})),t},Je=(e,t,r)=>{const n=Ye(e);(n[t.canonical]||=new Set).add(r)},C=Symbol.for("module-federation.shared-cache-owners"),Qe=e=>{let t=e[C];return t===void 0&&(t=Object.create(null),Object.defineProperty(e,C,{value:t,enumerable:!1,configurable:!1,writable:!1})),t},Xe=(e,t,r,n)=>{var a;e[t.canonical]=r;const o=t.aliases||[];for(const c of o)Object.defineProperty(e,c,{value:r,enumerable:!0,configurable:!0,writable:!0});e[C],Qe(e)[t.canonical]=n;const f=(a=e[R])==null?void 0:a[t.canonical];if(f)for(const c of f)c(r);return r},Ze=e=>{const t=(()=>{let r=e;for(let n=0;n<5;n++){const o=r==null?void 0:r.default;if(!o||typeof o!="object")break;const f=Object.keys(r).filter(a=>a!=="default").map(a=>r[a]);if(f.length>0&&f.some(a=>a!==void 0))break;r=o}return r})();return t&&Object.getPrototypeOf(t)===null?Object.assign({},t):t};let b=Ge(p.share,{canonical:"default:react",aliases:["react"]});b===void 0&&(b=Ze(Be),Xe(p.share,{canonical:"default:react",aliases:["react"]},b,"ShoppingRouteAdminSet"));let z,W,H;const K=e=>{const t=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;if(t&&"A"in t){let r=t.A;Object.defineProperty(t,"A",{configurable:!0,enumerable:!0,get:()=>r,set:n=>{n&&typeof n.getOwner!="function"&&(n.getOwner=()=>null),r=n}}),t.A=r}e.Children,W=e.Component,e.Fragment,e.Profiler,e.PureComponent,e.StrictMode,e.Suspense,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,e.act,e.cloneElement,e.createContext,H=e.createElement,e.createFactory,e.createRef,e.forwardRef,e.isValidElement,e.lazy,e.memo,e.startTransition,e.unstable_act,e.useCallback,e.useContext,e.useDebugValue,e.useDeferredValue,e.useEffect,e.useId,e.useImperativeHandle,e.useInsertionEffect,e.useLayoutEffect,e.useMemo,e.useReducer,e.useRef,e.useState,e.useSyncExternalStore,e.useTransition,e.version,z=(()=>{let r=e;for(let n=0;n<5;n++){const o=r==null?void 0:r.default;if(!o||typeof o!="object")return o??r;r=o}return r})()};Je(p.share,{canonical:"default:react"},K);K(b);const et=Object.freeze(Object.defineProperty({__proto__:null,get Component(){return W},get createElement(){return H},get default(){return z}},Symbol.toStringTag,{value:"Module"}));export{z as _,et as a,Be as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_}from"./vite-preload-helper-Dp1pzeXC.js";const h="__mf_module_cache__";globalThis[h]||={share:{},remote:{}};globalThis[h].share||={};globalThis[h].remote||={};const s=globalThis[h];for(const i of Object.keys(s.share))if(i.startsWith("default:")){const f=i.slice(8);s.share[f]===void 0&&(s.share[f]=s.share[i])}else if(!i.includes(":")){const f="default:"+i;s.share[f]===void 0&&(s.share[f]=s.share[i])}let d;async function C(){return d||(d=(async()=>{const i=(t,e,a,r)=>{const n=(Array.isArray(r)?r[0]:r)||"default",c=e||!a?t:t+"@"+a,l={canonical:n+":"+c};return n==="default"&&(l.aliases=[c]),l},f=(t,e)=>{const a=t[e.canonical];if(a!==void 0)return a;const r=e.aliases||[];for(const o of r){if(!Object.prototype.hasOwnProperty.call(t,o))continue;const n=t[o];if(n!==void 0)return t[e.canonical]=n,n}},S=Symbol.for("module-federation.shared-cache-listeners"),u=Symbol.for("module-federation.shared-cache-owners"),y=t=>{let e=t[u];return e===void 0&&(e=Object.create(null),Object.defineProperty(t,u,{value:e,enumerable:!1,configurable:!1,writable:!1})),e},b=(t,e)=>{var a;return(a=t[u])==null?void 0:a[e.canonical]},p=(t,e,a,r)=>{var c;t[e.canonical]=a;const o=e.aliases||[];for(const l of o)Object.defineProperty(t,l,{value:a,enumerable:!0,configurable:!0,writable:!0});t[u],y(t)[e.canonical]=r;const n=(c=t[S])==null?void 0:c[e.canonical];if(n)for(const l of n)l(a);return a},m=await(await _(()=>import("../routeEditor.js"),[],import.meta.url)).init(),{usedShared:w}=await _(async()=>{const{usedShared:t}=await import("./_virtual_mf-localSharedImportMap___mfe_internal__ShoppingRouteAdminSet__mf_owner__1-Dcdz6a1g.js");return{usedShared:t}},[],import.meta.url),g=t=>{let e=t;for(let a=0;a<5;a++){const r=e==null?void 0:e.default;if(!r||typeof r!="object"||Object.keys(r).length===0)break;const o=Object.keys(e).filter(n=>n!=="default").map(n=>e[n]);if(o.length>0&&o.some(n=>n!==void 0))break;e=r}return e},O=[["react"]];for(const t of O)await Promise.all(t.map(async e=>{var o;const a=w[e];if(!a||a.materialize===!1||a.treeShaking)return;const r=i(e,(o=a.shareConfig)==null?void 0:o.singleton,a.version,a.scope);f(s.share,r)!==void 0&&b(s.share,r)==="ShoppingRouteAdminSet"||await m.loadShare(e,{customShareInfo:{shareConfig:a.shareConfig}}).then(async n=>{const c=typeof n=="function"?n():n;let l=g(await Promise.resolve(c));p(s.share,r,l,"ShoppingRouteAdminSet")})}));return m})()),d}d=C();export{d as hostInitPromise,C as initHost};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
const Ut=".json",xt="FEDERATION_DEBUG";let $e=(function(e){return e[e.UNKNOWN=1]="UNKNOWN",e[e.CALCULATED=2]="CALCULATED",e[e.NO_USE=0]="NO_USE",e})({});var ge={};const Xe=!0;function Bt(){return Xe}function Wt(){try{if(Bt()&&window.localStorage)return!!localStorage.getItem(xt)}catch{return!1}return!1}function Te(){return typeof process<"u"&&ge&&ge.FEDERATION_DEBUG?!!ge.FEDERATION_DEBUG:typeof FEDERATION_DEBUG<"u"&&FEDERATION_DEBUG?!0:Wt()}const Vt="[ Federation Runtime ]",Ye=function(...e){return e.length?e.reduce((t,r)=>r?t?`${t}:${r}`:r:t,""):""};function Ae(e,t){if("getPublicPath"in e){let r;return e.getPublicPath.startsWith("function")?r=new Function("return "+e.getPublicPath)()():r=new Function(e.getPublicPath)(),`${r}${t}`}else return"publicPath"in e?`${e.publicPath}${t}`:(console.warn("Cannot get resource URL. If in debug mode, please ignore.",e,t),"")}const Qe=e=>{console.warn(`${Vt}: ${e}`)};function et(e){try{return JSON.stringify(e,null,2)}catch{return""}}const _e=(e,t)=>{if(!e)return t;const n=(o=>{if(o===".")return"";if(o.startsWith("./"))return o.replace("./","");if(o.startsWith("/")){const s=o.slice(1);return s.endsWith("/")?s.slice(0,-1):s}return o})(e);return n?n.endsWith("/")?`${n}${t}`:`${n}/${t}`:t};function jt(e){return e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")}function qt(e,t={}){var _;const{remotes:r={},overrides:n={},version:o}=t;let s;const i=()=>"publicPath"in e.metaData?(e.metaData.publicPath==="auto"||e.metaData.publicPath==="")&&o?jt(o):e.metaData.publicPath:e.metaData.getPublicPath,a=Object.keys(n);let c={};Object.keys(r).length||(c=((_=e.remotes)==null?void 0:_.reduce((g,S)=>{let I;const $=S.federationContainerName;return a.includes($)?I=n[$]:"version"in S?I=S.version:I=S.entry,g[$]={matchedVersion:I},g},{}))||{}),Object.keys(r).forEach(g=>c[g]={matchedVersion:a.includes(g)?n[g]:r[g]});const{remoteEntry:{path:l,name:f,type:u},types:h={path:"",name:"",zip:"",api:""},buildInfo:{buildVersion:m},globalName:d,ssrRemoteEntry:p}=e.metaData,{exposes:y}=e;let E={version:o||"",buildVersion:m,globalName:d,remoteEntry:_e(l,f),remoteEntryType:u,remoteTypes:_e(h.path,h.name),remoteTypesZip:h.zip||"",remoteTypesAPI:h.api||"",remotesInfo:c,shared:e==null?void 0:e.shared.map(g=>({assets:g.assets,sharedName:g.name,version:g.version,usedExports:g.referenceExports||[]})),modules:y==null?void 0:y.map(g=>({moduleName:g.name,modulePath:g.path,assets:g.assets}))};if("publicPath"in e.metaData?(s={...E,publicPath:i()},typeof e.metaData.ssrPublicPath=="string"&&(s.ssrPublicPath=e.metaData.ssrPublicPath)):s={...E,getPublicPath:i()},p){const g=_e(p.path,p.name);s.ssrRemoteEntry=g,s.ssrRemoteEntryType=p.type||"commonjs-module"}return s}function tt(e){return!!("remoteEntry"in e&&e.remoteEntry.includes(Ut))}const Kt="[ Module Federation ]",z=console,zt=["logger.ts","logger.js","captureStackTrace","Logger.emit","Logger.log","Logger.info","Logger.warn","Logger.error","Logger.debug"];function Jt(){try{const e=new Error().stack;if(!e)return;const[,...t]=e.split(`
|
|
2
|
+
`),r=t.filter(n=>!zt.some(o=>n.includes(o)));return r.length?`Stack trace:
|
|
3
|
+
${r.slice(0,5).join(`
|
|
4
|
+
`)}`:void 0}catch{return}}var rt=class{constructor(e,t=z){this.prefix=e,this.delegate=t??z}setPrefix(e){this.prefix=e}setDelegate(e){this.delegate=e??z}emit(e,t){const r=this.delegate,n=Te()?Jt():void 0,o=n?[...t,n]:t,s=(()=>{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(const i of s){const a=r[i];if(typeof a=="function"){a.call(r,this.prefix,...o);return}}for(const i of s){const a=z[i];if(typeof a=="function"){a.call(z,this.prefix,...o);return}}}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){Te()&&this.emit("debug",e)}};function Zt(e){return new rt(e)}function Xt(e){const t=new rt(e);return Object.defineProperty(t,"__mf_infrastructure_logger__",{value:!0,enumerable:!1,configurable:!1}),t}Xt(Kt);async function ot(e,t){try{return await e()}catch(r){Qe(r);return}}function Ne(e,t){const r=/^(https?:)?\/\//i;return e.replace(r,"").replace(/\/$/,"")===t.replace(r,"").replace(/\/$/,"")}function nt(e){let t=null,r=!0,n=2e4,o;const s=document.getElementsByTagName("script");for(let l=0;l<s.length;l++){const f=s[l],u=f.getAttribute("src");if(u&&Ne(u,e.url)){t=f,r=!1;break}}if(!t){const l=e.attrs;t=document.createElement("script"),t.type=(l==null?void 0:l.type)==="module"?"module":"text/javascript";let f;e.createScriptHook&&(f=e.createScriptHook(e.url,e.attrs),f instanceof HTMLScriptElement?t=f:typeof f=="object"&&("script"in f&&f.script&&(t=f.script),"timeout"in f&&f.timeout&&(n=f.timeout))),t.src||(t.src=e.url),l&&!f&&Object.keys(l).forEach(u=>{t&&(u==="async"||u==="defer"?t[u]=l[u]:t.getAttribute(u)||t.setAttribute(u,l[u]))})}let i=null;const a=typeof window<"u"?l=>{if(l.filename&&Ne(l.filename,e.url)){const f=new Error(`ScriptExecutionError: Script "${e.url}" loaded but threw a runtime error during execution: ${l.message} (${l.filename}:${l.lineno}:${l.colno})`);f.name="ScriptExecutionError",i=f}}:null;a&&window.addEventListener("error",a);const c=async(l,f)=>{clearTimeout(o),a&&window.removeEventListener("error",a);const u=()=>{if((f==null?void 0:f.type)==="error"){const h=new Error(f!=null&&f.isTimeout?`ScriptNetworkError: Script "${e.url}" timed out.`:`ScriptNetworkError: Failed to load script "${e.url}" - the script URL is unreachable or the server returned an error (network failure, 404, CORS, etc.)`);h.name="ScriptNetworkError",e!=null&&e.onErrorCallback&&(e==null||e.onErrorCallback(h))}else i?e!=null&&e.onErrorCallback&&(e==null||e.onErrorCallback(i)):e!=null&&e.cb&&(e==null||e.cb())};if(t&&(t.onerror=null,t.onload=null,ot(()=>{const{needDeleteScript:h=!0}=e;h&&t!=null&&t.parentNode&&t.parentNode.removeChild(t)}),l&&typeof l=="function")){const h=l(f);if(h instanceof Promise){const m=await h;return u(),m}return u(),h}u()};return t.onerror=c.bind(null,t.onerror),t.onload=c.bind(null,t.onload),o=setTimeout(()=>{c(null,{type:"error",isTimeout:!0})},n),{script:t,needAttach:r}}function Yt(e){let t=null,r=!0,n=2e4,o;const s=document.getElementsByTagName("link");for(let a=0;a<s.length;a++){const c=s[a],l=c.getAttribute("href"),f=c.getAttribute("rel");if(l&&Ne(l,e.url)&&f===e.attrs.rel){t=c,r=!1;break}}if(!t){t=document.createElement("link"),t.setAttribute("href",e.url);let a,c=!0;const l=e.attrs;e.createLinkHook&&(a=e.createLinkHook(e.url,l),a instanceof HTMLLinkElement?(t=a,c=!1):typeof a=="object"&&("link"in a&&a.link&&(t=a.link,c=!1),"timeout"in a&&a.timeout&&(n=a.timeout))),l&&c&&Object.keys(l).forEach(f=>{t&&!t.getAttribute(f)&&t.setAttribute(f,l[f])})}if(!r)return Promise.resolve().then(()=>{e!=null&&e.cb&&(e==null||e.cb())}),{link:t,needAttach:r};const i=(a,c)=>{o&&clearTimeout(o);const l=()=>{if((c==null?void 0:c.type)==="error"){const f=new Error(c!=null&&c.isTimeout?`LinkNetworkError: Link "${e.url}" timed out.`:`LinkNetworkError: Failed to load link "${e.url}" - the URL is unreachable or the server returned an error.`);f.name="LinkNetworkError",e!=null&&e.onErrorCallback&&(e==null||e.onErrorCallback(f))}else e!=null&&e.cb&&(e==null||e.cb())};if(t&&(t.onerror=null,t.onload=null,ot(()=>{const{needDeleteLink:f=!0}=e;f&&t!=null&&t.parentNode&&t.parentNode.removeChild(t)}),a)){const f=a(c);return l(),f}l()};return t.onerror=i.bind(null,t.onerror),t.onload=i.bind(null,t.onload),o=setTimeout(()=>{i(null,{type:"error",isTimeout:!0})},n),{link:t,needAttach:r}}function Qt(e,t){const{attrs:r={},createScriptHook:n}=t;return new Promise((o,s)=>{const{script:i,needAttach:a}=nt({url:e,cb:o,onErrorCallback:s,attrs:{fetchpriority:"high",...r},createScriptHook:n,needDeleteScript:!0});a&&document.head.appendChild(i)})}const er=e=>`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`,st=(e,t,r,n)=>{const o=[`${[t[e]]} #${e}`];return r&&o.push(`args: ${JSON.stringify(r)}`),o.push(er(e)),n&&o.push(`Original Error Message:
|
|
5
|
+
${n}`),o.join(`
|
|
6
|
+
`)};function tr(e,t,r,n,o,s){return n(st(e,t,r,o))}const U="[ Federation Runtime ]",ve=Zt(U);function P(e,t,r,n,o){e||R(t)}function R(e,t,r,n,o){if(t!==void 0)return tr(e,t,r??{},i=>{throw new Error(`${U}: ${i}`)},n);const s=e;throw s instanceof Error?(s.message.startsWith(U)||(s.message=`${U}: ${s.message}`),s):new Error(`${U}: ${s}`)}function Q(e){e instanceof Error&&(e.message.startsWith(U)||(e.message=`${U}: ${e.message}`)),ve.warn(e)}function rr(e,t){return e.findIndex(r=>r===t)===-1&&e.push(t),e}function ee(e){return"version"in e&&e.version?`${e.name}:${e.version}`:"entry"in e&&e.entry?`${e.name}:${e.entry}`:`${e.name}`}function Le(e){return typeof e.entry<"u"}function it(e){return!e.entry.includes(".json")}function Pe(e){return e&&typeof e=="object"}const or=Object.prototype.toString;function at(e){return or.call(e)==="[object Object]"}function ct(e){return Array.isArray(e)?e:[e]}function lt(e){const t={url:"",type:"global",globalName:""};return"remoteEntry"in e?{url:e.remoteEntry,type:e.remoteEntryType,globalName:e.globalName}:t}const nr=(e,t)=>{let r;return e.endsWith("/")?r=e.slice(0,-1):r=e,t.startsWith(".")&&(t=t.slice(1)),r=r+t,r},sr=2e3,b=typeof globalThis=="object"?globalThis:window,M=(()=>{try{return document.defaultView}catch{return b}})(),pe=M;function le(e,t,r){Object.defineProperty(e,t,{value:r,configurable:!1,writable:!0})}function fe(e,t){return Object.hasOwnProperty.call(e,t)}fe(b,"__GLOBAL_LOADING_REMOTE_ENTRY__")||le(b,"__GLOBAL_LOADING_REMOTE_ENTRY__",{});const G=b.__GLOBAL_LOADING_REMOTE_ENTRY__;function ft(e){fe(e,"__VMOK__")&&!fe(e,"__FEDERATION__")&&le(e,"__FEDERATION__",e.__VMOK__),fe(e,"__FEDERATION__")||(le(e,"__FEDERATION__",{__GLOBAL_PLUGIN__:[],__INSTANCES__:[],moduleInfo:{},__SHARE__:{},__MANIFEST_LOADING__:{},__PRELOADED_MAP__:new Map,__PRELOADED_ASSETS__:new Set}),le(e,"__VMOK__",e.__FEDERATION__)),e.__FEDERATION__.__GLOBAL_PLUGIN__??=[],e.__FEDERATION__.__INSTANCES__??=[],e.__FEDERATION__.moduleInfo??={},e.__FEDERATION__.__SHARE__??={},e.__FEDERATION__.__MANIFEST_LOADING__??={},e.__FEDERATION__.__PRELOADED_MAP__??=new Map,e.__FEDERATION__.__PRELOADED_ASSETS__??=new Set}ft(b);ft(M);function ir(e){b.__FEDERATION__.__INSTANCES__.push(e)}function ar(){return b.__FEDERATION__.__DEBUG_CONSTRUCTOR__}function cr(e,t=Te()){t&&(b.__FEDERATION__.__DEBUG_CONSTRUCTOR__=e,b.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__="2.9.0")}function B(e,t){if(typeof t=="string"){if(e[t])return{value:e[t],key:t};{const r=Object.keys(e);for(const n of r){const[o,s]=n.split(":"),i=`${o}:${t}`,a=e[i];if(a)return{value:a,key:i}}return{value:void 0,key:t}}}else R(`getInfoWithoutType: "key" must be a string, got ${typeof t} (${JSON.stringify(t)}).`)}const Ge=()=>M.__FEDERATION__.moduleInfo,lr=(e,t)=>{const r=B(t,ee(e)).value;if(r&&!r.version&&"version"in e&&e.version&&(r.version=e.version),r)return r;if("version"in e&&e.version){const{version:n,...o}=e,s=ee(o),i=B(M.__FEDERATION__.moduleInfo,s).value;if((i==null?void 0:i.version)===n)return i}},ue=e=>lr(e,M.__FEDERATION__.moduleInfo),Ue=(e,t)=>{const r=ee(e);return M.__FEDERATION__.moduleInfo[r]=t,M.__FEDERATION__.moduleInfo},fr=e=>(M.__FEDERATION__.moduleInfo={...M.__FEDERATION__.moduleInfo,...e},()=>{const t=Object.keys(e);for(const r of t)delete M.__FEDERATION__.moduleInfo[r]}),ut=(e,t)=>{const r=t||`__FEDERATION_${e}:custom__`;return{remoteEntryKey:r,entryExports:b[r]}},ur=()=>M.__FEDERATION__.__GLOBAL_PLUGIN__,hr=e=>b.__FEDERATION__.__PRELOADED_MAP__.get(e),dr=e=>b.__FEDERATION__.__PRELOADED_MAP__.set(e,!0),mr=e=>b.__FEDERATION__.__PRELOADED_ASSETS__.has(e),pr=e=>{const t=b.__FEDERATION__.__PRELOADED_ASSETS__;if(t.add(e),t.size>sr){const r=t.values().next().value;r!==void 0&&t.delete(r)}},xe="[0-9A-Za-z-]+",Me=`(?:\\+(${xe}(?:\\.${xe})*))`,X="0|[1-9]\\d*",he="[0-9]+",ht="\\d*[a-zA-Z-][a-zA-Z0-9-]*",Be=`(?:${he}|${ht})`,yr=`(?:-?(${Be}(?:\\.${Be})*))`,We=`(?:${X}|${ht})`,dt=`(?:-(${We}(?:\\.${We})*))`,Se=`${X}|x|X|\\*`,K=`[v=\\s]*(${Se})(?:\\.(${Se})(?:\\.(${Se})(?:${dt})?${Me}?)?)?`,Er=`^\\s*(${K})\\s+-\\s+(${K})\\s*$`,gr=`[v=\\s]*${`(${he})\\.(${he})\\.(${he})`}${yr}?${Me}?`,Oe="((?:<|>)?=?)",_r=`(\\s*)${Oe}\\s*(${gr}|${K})`,mt="(?:~>?)",Sr=`(\\s*)${mt}\\s+`,pt="(?:\\^)",Rr=`(\\s*)${pt}\\s+`,br="(<|>)?=?\\s*\\*",Ir=`^${pt}${K}$`,wr=`v?${`(${X})\\.(${X})\\.(${X})`}${dt}?${Me}?`,$r=`^${mt}${K}$`,Tr=`^${Oe}\\s*${K}$`,Ar=`^${Oe}\\s*(${wr})$|^$`,Nr="^\\s*>=\\s*0.0.0\\s*$";function O(e){return new RegExp(e)}function v(e){return!e||e.toLowerCase()==="x"||e==="*"}function yt(...e){return t=>e.reduce((r,n)=>n(r),t)}function Ve(e){return e.match(O(Ar))}function je(e,t,r,n){const o=`${e}.${t}.${r}`;return n?`${o}-${n}`:o}function vr(e){return e.replace(O(Er),(t,r,n,o,s,i,a,c,l,f,u,h)=>(v(n)?r="":v(o)?r=`>=${n}.0.0`:v(s)?r=`>=${n}.${o}.0`:r=`>=${r}`,v(l)?c="":v(f)?c=`<${Number(l)+1}.0.0-0`:v(u)?c=`<${l}.${Number(f)+1}.0-0`:h?c=`<=${l}.${f}.${u}-${h}`:c=`<=${c}`,`${r} ${c}`.trim()))}function kr(e){return e.replace(O(_r),"$1$2$3")}function Lr(e){return e.replace(O(Sr),"$1~")}function Pr(e){return e.replace(O(Rr),"$1^")}function Mr(e){return e.trim().split(/\s+/).map(t=>t.replace(O(Ir),(r,n,o,s,i)=>v(n)?"":v(o)?`>=${n}.0.0 <${Number(n)+1}.0.0-0`:v(s)?n==="0"?`>=${n}.${o}.0 <${n}.${Number(o)+1}.0-0`:`>=${n}.${o}.0 <${Number(n)+1}.0.0-0`:i?n==="0"?o==="0"?`>=${n}.${o}.${s}-${i} <${n}.${o}.${Number(s)+1}-0`:`>=${n}.${o}.${s}-${i} <${n}.${Number(o)+1}.0-0`:`>=${n}.${o}.${s}-${i} <${Number(n)+1}.0.0-0`:n==="0"?o==="0"?`>=${n}.${o}.${s} <${n}.${o}.${Number(s)+1}-0`:`>=${n}.${o}.${s} <${n}.${Number(o)+1}.0-0`:`>=${n}.${o}.${s} <${Number(n)+1}.0.0-0`)).join(" ")}function Or(e){return e.trim().split(/\s+/).map(t=>t.replace(O($r),(r,n,o,s,i)=>v(n)?"":v(o)?`>=${n}.0.0 <${Number(n)+1}.0.0-0`:v(s)?`>=${n}.${o}.0 <${n}.${Number(o)+1}.0-0`:i?`>=${n}.${o}.${s}-${i} <${n}.${Number(o)+1}.0-0`:`>=${n}.${o}.${s} <${n}.${Number(o)+1}.0-0`)).join(" ")}function Dr(e){return e.split(/\s+/).map(t=>t.trim().replace(O(Tr),(r,n,o,s,i,a)=>{const c=v(o),l=c||v(s),f=l||v(i);return n==="="&&f&&(n=""),a="",c?n===">"||n==="<"?"<0.0.0-0":"*":n&&f?(l&&(s=0),i=0,n===">"?(n=">=",l?(o=Number(o)+1,s=0,i=0):(s=Number(s)+1,i=0)):n==="<="&&(n="<",l?o=Number(o)+1:s=Number(s)+1),n==="<"&&(a="-0"),`${n+o}.${s}.${i}${a}`):l?`>=${o}.0.0${a} <${Number(o)+1}.0.0-0`:f?`>=${o}.${s}.0${a} <${o}.${Number(s)+1}.0-0`:r})).join(" ")}function Fr(e){return e.trim().replace(O(br),"")}function Hr(e){return e.trim().replace(O(Nr),"")}function de(e,t){return e=Number(e)||e,t=Number(t)||t,e>t?1:e===t?0:-1}function Cr(e,t){const{preRelease:r}=e,{preRelease:n}=t;if(r===void 0&&n)return 1;if(r&&n===void 0)return-1;if(r===void 0&&n===void 0)return 0;for(let o=0,s=r.length;o<=s;o++){const i=r[o],a=n[o];if(i!==a)return i===void 0&&a===void 0?0:i?a?de(i,a):-1:1}return 0}function ne(e,t){return de(e.major,t.major)||de(e.minor,t.minor)||de(e.patch,t.patch)||Cr(e,t)}function Re(e,t){return e.version===t.version}function Gr(e,t){switch(e.operator){case"":case"=":return Re(e,t);case">":return ne(e,t)<0;case">=":return Re(e,t)||ne(e,t)<0;case"<":return ne(e,t)>0;case"<=":return Re(e,t)||ne(e,t)>0;case void 0:return!0;default:return!1}}function Ur(e){return yt(Mr,Or,Dr,Fr)(e)}function xr(e){return yt(vr,kr,Lr,Pr)(e.trim()).split(/\s+/).join(" ")}function Z(e,t){if(!e)return!1;const r=Ve(e);if(!r)return!1;const[,n,,o,s,i,a]=r,c={operator:n,version:je(o,s,i,a),major:o,minor:s,patch:i,preRelease:a==null?void 0:a.split(".")},l=t.split("||");for(const f of l){const u=f.trim();if(!u||u==="*"||u==="x")return!0;try{const h=xr(u);if(!h.trim())return!0;const m=h.split(" ").map(y=>Ur(y)).join(" ");if(!m.trim())return!0;const d=m.split(/\s+/).map(y=>Hr(y)).filter(Boolean);if(d.length===0)continue;let p=!0;for(const y of d){const E=Ve(y);if(!E){p=!1;break}const[,_,,g,S,I,$]=E;if(!Gr({operator:_,version:je(g,S,I,$),major:g,minor:S,patch:I,preRelease:$==null?void 0:$.split(".")},c)){p=!1;break}}if(p)return!0}catch(h){console.error(`[semver] Error processing range part "${u}":`,h);continue}}return!1}const oe="default",Et="global";function Br(e,t,r,n){var s,i;let o;return"get"in e?o=e.get:"lib"in e?o=()=>Promise.resolve(e.lib):o=()=>Promise.resolve(()=>{R(`Cannot get shared "${r}" from "${t}": neither "get" nor "lib" is provided in the share config.`)}),(s=e.shareConfig)!=null&&s.eager&&((i=e.treeShaking)!=null&&i.mode)&&R(`Invalid shared config for "${r}" from "${t}": cannot use both "eager: true" and "treeShaking.mode" simultaneously. Choose one strategy.`),{deps:[],useIn:[],from:t,loading:null,...e,shareConfig:{requiredVersion:`^${e.version}`,singleton:!1,eager:!1,strictVersion:!1,...e.shareConfig},get:o,loaded:e!=null&&e.loaded||"lib"in e?!0:void 0,version:e.version??"0",scope:Array.isArray(e.scope)?e.scope:[e.scope??"default"],strategy:(e.strategy??n)||"version-first",treeShaking:e.treeShaking?{...e.treeShaking,mode:e.treeShaking.mode??"server-calc",status:e.treeShaking.status??$e.UNKNOWN,useIn:[]}:void 0}}function gt(e,t){const r=t.shared||{},n=t.name,o=Object.keys(r).reduce((i,a)=>{const c=ct(r[a]);return i[a]=i[a]||[],c.forEach(l=>{i[a].push(Br(l,n,a,t.shareStrategy))}),i},{}),s={...e.shared};return Object.keys(o).forEach(i=>{s[i]?o[i].forEach(a=>{s[i].find(c=>c.version===a.version)||s[i].push(a)}):s[i]=o[i]}),{allShareInfos:s,newShareInfos:o}}function te(e,t){if(!e)return!1;const{status:r,mode:n}=e;return r===$e.NO_USE?!1:r===$e.CALCULATED?!0:n==="runtime-infer"?t?Vr(e,t):!0:!1}function x(e,t){const r=n=>{if(!Number.isNaN(Number(n))){const o=n.split(".");let s=n;for(let i=0;i<3-o.length;i++)s+=".0";return s}return n};return!!Z(r(e),`<=${r(t)}`)}const re=(e,t)=>{const r=t||function(n,o){return x(n,o)};return Object.keys(e).reduce((n,o)=>!n||r(n,o)||n==="0"?o:n,0)},me=e=>!!e.loaded||typeof e.lib=="function",Wr=e=>!!e.loading,Vr=(e,t)=>{if(!e||!t)return!1;const{usedExports:r}=e;return r?!!t.every(n=>r.includes(n)):!1};function jr(e,t,r,n){const o=e[t][r];let s="",i=te(n);const a=function(c,l){return i?o[c].treeShaking?o[l].treeShaking?!me(o[c].treeShaking)&&x(c,l):!1:!0:!me(o[c])&&x(c,l)};if(i){if(s=re(e[t][r],a),s)return{version:s,useTreesShaking:i};i=!1}return{version:re(e[t][r],a),useTreesShaking:i}}const W=e=>me(e)||Wr(e);function qr(e,t,r,n){const o=e[t][r];let s="",i=te(n);const a=function(c,l){if(i){if(!o[c].treeShaking)return!0;if(!o[l].treeShaking)return!1;if(W(o[l].treeShaking))return W(o[c].treeShaking)?!!x(c,l):!0;if(W(o[c].treeShaking))return!1}return W(o[l])?W(o[c])?!!x(c,l):!0:W(o[c])?!1:x(c,l)};if(i){if(s=re(e[t][r],a),s)return{version:s,useTreesShaking:i};i=!1}return{version:re(e[t][r],a),useTreesShaking:i}}function Kr(e){return e==="loaded-first"?qr:jr}function Y(e,t,r,n,o){if(!e)return;const{shareConfig:s,scope:i=oe,strategy:a,treeShaking:c}=r,l=Array.isArray(i)?i:[i];for(const f of l)if(s&&e[f]&&e[f][t]){const{requiredVersion:u}=s,{version:h,useTreesShaking:m}=Kr(a)(e,f,t,c),d=()=>{const y=e[f][t][h];if(s.singleton){if(typeof u=="string"&&!Z(h,u)){const E=`Version ${h} from ${h&&y.from} of shared singleton module ${t} does not satisfy the requirement of ${r.from} which needs ${u})`;s.strictVersion?R(E):Q(E)}return{shared:y,useTreesShaking:m}}else{if(u===!1||u==="*")return{shared:y,useTreesShaking:m};if(Z(h,u))return{shared:y,useTreesShaking:m};const E=te(c);if(E){for(const[_,g]of Object.entries(e[f][t]))if(te(g.treeShaking,c==null?void 0:c.usedExports)&&Z(_,u))return{shared:g,useTreesShaking:E}}for(const[_,g]of Object.entries(e[f][t]))if(Z(_,u))return{shared:g,useTreesShaking:!1}}},p={shareScopeMap:e,scope:f,pkgName:t,version:h,GlobalFederation:pe.__FEDERATION__,shareInfo:r,resolver:d,loadContext:o};return(n.emit(p)||p).resolver()}}function De(){return pe.__FEDERATION__.__SHARE__}function qe(e){const{pkgName:t,extraOptions:r,shareInfos:n}=e,o=c=>{if(!c)return;const l={};return c.forEach(u=>{l[u.version]=u}),l[re(l,function(u,h){return!me(l[u])&&x(u,h)})]},s=(r==null?void 0:r.resolver)??o,i=c=>c!==null&&typeof c=="object"&&!Array.isArray(c),a=(...c)=>{const l={};for(const f of c)if(f)for(const[u,h]of Object.entries(f)){const m=l[u];i(m)&&i(h)?l[u]=a(m,h):h!==void 0&&(l[u]=h)}return l};return a(s(n[t]),r==null?void 0:r.customShareInfo)}const V=(e,t)=>{e.useIn||(e.useIn=[]),rr(e.useIn,t)};function se(e,t){return t&&e.treeShaking?e.treeShaking:e}function Fe(e,t){return!t||t==="."?e:`${e}/${t.replace(/^\.\//,"")}`}function Ke(e,t){for(const r of e){const n=t.startsWith(r.name);let o=t.replace(r.name,"");if(n){if(o.startsWith("/")){const a=r.name;return o=`.${o}`,{pkgNameOrAlias:a,expose:o,remote:r}}else if(o==="")return{pkgNameOrAlias:r.name,expose:".",remote:r}}const s=r.alias&&t.startsWith(r.alias);let i=r.alias&&t.replace(r.alias,"");if(r.alias&&s){if(i&&i.startsWith("/")){const a=r.alias;return i=`.${i}`,{pkgNameOrAlias:a,expose:i,remote:r}}else if(i==="")return{pkgNameOrAlias:r.alias,expose:".",remote:r}}}}function zr(e,t){for(const r of e)if(t===r.name||r.alias&&t===r.alias)return r}const _t="RUNTIME-001",St="RUNTIME-002",Rt="RUNTIME-003",bt="RUNTIME-004",It="RUNTIME-005",ke="RUNTIME-006",wt="RUNTIME-007",ye="RUNTIME-008",Jr="RUNTIME-009",$t="RUNTIME-010",Tt="RUNTIME-011",Zr="RUNTIME-012",At="RUNTIME-013",Nt="RUNTIME-014",vt="RUNTIME-015",k={[_t]:"Failed to get remoteEntry exports.",[St]:'The remote entry interface does not contain "init"',[Rt]:"Failed to get manifest.",[bt]:"Failed to locate remote.",[It]:"Invalid loadShareSync function call from bundler runtime",[ke]:"Invalid loadShareSync function call from runtime",[wt]:"Failed to get remote snapshot.",[ye]:"Failed to load script resources.",[Jr]:"Please call createInstance first.",[$t]:'The name option cannot be changed after initialization. If you want to create a new instance with a different name, please use "createInstance" api.',[Tt]:"The remoteEntry URL is missing from the remote snapshot.",[Zr]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.',[At]:"The manifest is not a valid Module Federation manifest.",[Nt]:"The remote does not expose the requested module.",[vt]:"Remote container initialization failed."};({...k});const kt=".then(callbacks[0]).catch(callbacks[1])",ze=new WeakMap,Xr=["Failed to fetch dynamically imported module","Importing a module script failed","error loading dynamically imported module"];function Yr(e){return e instanceof TypeError?Xr.some(t=>e.message.includes(t)):!1}function Lt(e){return e==="esm"||e==="module"}async function Qr({entry:e,remoteEntryExports:t,name:r,getEntryUrl:n}){return new Promise((o,s)=>{const i=c=>{if(Yr(c)){const l=c instanceof Error?c.message:String(c);try{R(ye,k,{remoteName:r,resourceUrl:a},l)}catch(f){s(f);return}}s(c)},a=n?n(e):e;try{t?o(t):typeof FEDERATION_ALLOW_NEW_FUNCTION<"u"?new Function("callbacks",`import("${a}")${kt}`)([o,i]):import(a).then(o).catch(i)}catch(c){R(`Failed to load ESM entry from "${a}". ${c instanceof Error?c.message:String(c)}`)}})}async function eo({entry:e,remoteEntryExports:t}){return new Promise((r,n)=>{try{t?r(t):typeof __system_context__>"u"?System.import(e).then(r).catch(n):new Function("callbacks",`System.import("${e}")${kt}`)([r,n])}catch(o){R(`Failed to load SystemJS entry from "${e}". ${o instanceof Error?o.message:String(o)}`)}})}function to(e,t,r){const{remoteEntryKey:n,entryExports:o}=ut(e,t);return o||R(_t,k,{remoteName:e,remoteEntryUrl:r,remoteEntryKey:n}),o}async function ro({name:e,globalName:t,entry:r,remoteInfo:n,loaderHook:o,getEntryUrl:s,resourceContext:i}){const{entryExports:a}=ut(e,t);if(a)return a;const c=s?s(r):r;return Qt(c,{attrs:{},createScriptHook:(l,f)=>{const u=o.lifecycle.createScript.emit({url:l,attrs:f,remoteInfo:n,resourceContext:i?{...i,url:l}:void 0});if(u&&(u instanceof HTMLScriptElement||"script"in u||"timeout"in u))return u}}).then(()=>to(e,t,r),l=>{const f=l instanceof Error?l.message:String(l);R(ye,k,{remoteName:e,resourceUrl:c},f)})}async function oo({remoteInfo:e,remoteEntryExports:t,loaderHook:r,getEntryUrl:n,resourceContext:o}){const{entry:s,entryGlobalName:i,name:a,type:c}=e;return Lt(c)?Qr({entry:s,remoteEntryExports:t,name:a,getEntryUrl:n}):c==="system"?eo({entry:s,remoteEntryExports:t}):ro({entry:s,globalName:i,name:a,remoteInfo:e,loaderHook:r,getEntryUrl:n,resourceContext:o})}function Pt(e){const{entry:t,name:r}=e;return Ye(r,t)}async function He(e){const{origin:t,remoteEntryExports:r,remoteInfo:n,getEntryUrl:o,resourceContext:s,_inErrorHandling:i=!1}=e,a=Pt(n);if(r)return await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:n,remoteEntryExports:r,resourceContext:s,cached:!0}),r;if(!G[a]){const l=t.remoteHandler.hooks.lifecycle.loadEntry,f=t.loaderHook;G[a]=l.emit({origin:t,loaderHook:f,remoteInfo:n,remoteEntryExports:r,resourceContext:s}).then(u=>u||oo({remoteInfo:n,remoteEntryExports:r,loaderHook:f,getEntryUrl:o,resourceContext:s})).then(async u=>(await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:n,remoteEntryExports:u,resourceContext:s}),u)).catch(async u=>{const h=u instanceof Error&&u.message.includes("ScriptExecutionError");if(u instanceof Error&&u.message.includes(ye)&&!h&&!i){const m=p=>He({...p,_inErrorHandling:!0}),d=await t.loaderHook.lifecycle.loadEntryError.emit({getRemoteEntry:m,origin:t,remoteInfo:n,remoteEntryExports:r,globalLoading:G,uniqueKey:a});if(d)return await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:n,remoteEntryExports:d,resourceContext:s,error:u,recovered:!0}),d}throw await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:n,resourceContext:s,error:u}),u}),ze.set(G[a],t)}const c=G[a];if(ze.get(c)!==t)try{const l=await c;return await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:n,remoteEntryExports:l,resourceContext:s}),l}catch(l){throw await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:n,resourceContext:s,error:l}),l}return c}function j(e){return{...e,entry:"entry"in e?e.entry:"",type:e.type||Et,entryGlobalName:e.entryGlobalName||e.name,shareScope:e.shareScope||oe}}function no(){return typeof FEDERATION_BUILD_IDENTIFIER<"u"?FEDERATION_BUILD_IDENTIFIER:""}function so(e){const t=new Map;return[...e||[],...ur()].forEach(r=>{r&&(P(at(r),"Plugin configuration is invalid."),P(r.name,"A name must be provided by the plugin."),t.has(r.name)||t.set(r.name,r))}),Array.from(t.values())}function io(e,t){return t===void 0?e:{...t,name:e.name,version:e.version}}function ao(e,t){const r=new Map;t.options.plugins.forEach(o=>{o&&r.set(o.name,o)});const n=[t.hooks,t.remoteHandler.hooks,t.sharedHandler.hooks,t.snapshotHandler.hooks,t.loaderHook,t.bridgeHook];return so(e).forEach(o=>{var i;if(r.set(o.name,o),t.hooks.registerPlugins[o.name])return;const s=io(o,(i=o.apply)==null?void 0:i.call(o,t));n.forEach(a=>{a.applyPlugin(s)})}),Array.from(r.values())}function co(e){return{name:e.name,alias:e.alias,entry:"entry"in e?e.entry:void 0,version:"version"in e?e.version:void 0,type:e.type,entryGlobalName:e.entryGlobalName,shareScope:e.shareScope}}function D(e){var r,n,o,s,i,a;const t={};for(const[c,l]of Object.entries(e.shared)){const f=l[0];f&&(t[c]={version:f.version,singleton:(r=f.shareConfig)==null?void 0:r.singleton,requiredVersion:((n=f.shareConfig)==null?void 0:n.requiredVersion)===!1?!1:(o=f.shareConfig)==null?void 0:o.requiredVersion,eager:f.eager,strictVersion:(s=f.shareConfig)==null?void 0:s.strictVersion})}return{project:{name:e.name,mfRole:((i=e.remotes)==null?void 0:i.length)>0?"host":"unknown"},mfConfig:{name:e.name,remotes:((a=e.remotes)==null?void 0:a.map(co))??[],shared:t}}}function Mt(e){return{resourceCategory:"sync",share:!0,depsRemote:!0,recordPreloadedAssets:!0,...e}}function lo(e,t){return t.map(r=>{const n=zr(e,r.nameOrAlias);return P(n,`Unable to preload ${r.nameOrAlias} as it is not included in ${!n&&et({remoteInfo:n,remotes:e})}`),{remote:n,preloadConfig:Mt(r)}})}function fo(e){return e?e.map(t=>t==="."?t:t.startsWith("./")?t.replace("./",""):t):[]}function Ce(e){return e instanceof Error?e.message.includes("timed out")||e.name.includes("Timeout"):!1}function C(e,t,r,n){return{url:t,status:r,resourceType:e.resourceType,initiator:e.initiator,id:e.id,error:n}}function be(e,t,r,n){return r?mr(t)?Promise.resolve(C(e,t,"cached")):(pr(t),n()):n()}async function uo(e,t,r,n){const o=e.moduleCache.get(r.name),s=r.entry;if(o!=null&&o.remoteEntryExports)return C(n,s,"cached");try{if(!await He({origin:e,remoteInfo:r,remoteEntryExports:o==null?void 0:o.remoteEntryExports,resourceContext:{...n,url:s}}))throw new Error(`Failed to load remoteEntry "${s}".`);return C(n,s,"success")}catch(i){return C(n,s,Ce(i)?"timeout":"error",i)}}function ie({host:e,remoteInfo:t,url:r,attrs:n,context:o,needDeleteLink:s}){return new Promise(i=>{const{link:a,needAttach:c}=Yt({url:r,cb:()=>{i(C(o,r,c?"success":"cached"))},onErrorCallback:l=>{i(C(o,r,Ce(l)?"timeout":"error",l))},attrs:n,createLinkHook:(l,f)=>{const u=e.loaderHook.lifecycle.createLink.emit({url:l,attrs:f,remoteInfo:t,resourceContext:{...o,url:l}});return u instanceof HTMLLinkElement,u},needDeleteLink:s});c&&document.head.appendChild(a)})}function ho({host:e,remoteInfo:t,url:r,attrs:n,context:o}){return new Promise(s=>{const{script:i,needAttach:a}=nt({url:r,cb:()=>{s(C(o,r,a?"success":"cached"))},onErrorCallback:c=>{s(C(o,r,Ce(c)?"timeout":"error",c))},attrs:n,createScriptHook:(c,l)=>{const f=e.loaderHook.lifecycle.createScript.emit({url:c,attrs:l,remoteInfo:t,resourceContext:{...o,url:c}});return f instanceof HTMLScriptElement,f},needDeleteScript:!0});a&&document.head.appendChild(i)})}function ae(e,t){return{...e,resourceType:t}}function Ot(e,t,r,n=!0,o={initiator:"preloadRemote",id:e.name},s=!0){const{cssAssets:i,jsAssetsWithoutEntry:a,entryAssets:c}=r,l=[];if(t.options.inBrowser){if(c.forEach(h=>{const{moduleInfo:m}=h;l.push(uo(t,e,m,ae(o,"remoteEntry")))}),n){const h={rel:"preload",as:"style"};i.forEach(m=>{const d=ae(o,"css");l.push(be(d,m,s,()=>ie({host:t,remoteInfo:e,url:m,attrs:h,context:d})))})}else{const h={rel:"stylesheet",type:"text/css"};i.forEach(m=>{const d=ae(o,"css");l.push(be(d,m,s,()=>ie({host:t,remoteInfo:e,url:m,attrs:h,needDeleteLink:!1,context:d})))})}let f=ho,u={fetchpriority:"high",type:"text/javascript"};n?(f=ie,u={rel:"preload",as:"script"}):Lt(e.type)&&(f=ie,u={rel:"modulepreload",fetchpriority:"high"}),a.forEach(h=>{const m=ae(o,"js");l.push(be(m,h,s,()=>f({host:t,remoteInfo:e,url:h,attrs:u,context:m})))})}return Promise.all(l)}const mo={getRegisteredShare:Y,getGlobalShareScope:De};var po={share:mo};function yo(e){if(!e||!("modules"in e)||!Array.isArray(e.modules))return;const t=e.modules.map(r=>r.moduleName).filter(Boolean);return t.length?t.join(","):void 0}function Eo(e,t,r){const n=t,o=Array.isArray(e.shareScope)?e.shareScope:[e.shareScope];o.length||o.push("default"),o.forEach(i=>{n[i]||(n[i]={})});const s={version:e.version||"",shareScopeKeys:Array.isArray(e.shareScope)?o:e.shareScope||"default"};return Object.defineProperty(s,"shareScopeMap",{value:n,enumerable:!1}),{remoteEntryInitOptions:s,shareScope:n[o[0]],initScope:r??[]}}var Je=class{constructor({remoteInfo:e,host:t}){this.inited=!1,this.initing=!1,this.lib=void 0,this.remoteInfo=e,this.host=t}async getEntry(e,t){const r=t||{initiator:"loadRemote",id:Fe(this.remoteInfo.name,e),resourceType:"remoteEntry",url:this.remoteInfo.entry,expose:e},n=await He({origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports,resourceContext:r});return P(n,`remoteEntryExports is undefined
|
|
7
|
+
${et(this.remoteInfo)}`),this.remoteEntryExports=n,this.remoteEntryExports}async init(e,t,r,n,o){const s=await this.getEntry(n,o);if(this.inited)return await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:s,cached:!0,origin:this.host}),s;if(this.initPromise){try{await this.initPromise,await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:s,cached:!0,origin:this.host})}catch(i){throw await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:s,error:i,cached:!0,origin:this.host}),i}return s}this.initing=!0,this.initPromise=(async()=>{await this.host.loaderHook.lifecycle.beforeInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,origin:this.host});const{remoteEntryInitOptions:i,shareScope:a,initScope:c}=Eo(this.remoteInfo,this.host.shareScopeMap,r),l=await this.host.hooks.lifecycle.beforeInitContainer.emit({shareScope:a,remoteEntryInitOptions:i,initScope:c,remoteInfo:this.remoteInfo,origin:this.host});typeof(s==null?void 0:s.init)>"u"&&R(St,k,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName},void 0,D(this.host.options));try{await s.init(l.shareScope,l.initScope,l.remoteEntryInitOptions)}catch(f){R(vt,k,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName,shareScope:this.remoteInfo.shareScope},`${f}`,D(this.host.options))}await this.host.hooks.lifecycle.initContainer.emit({...l,id:e,remoteSnapshot:t,remoteEntryExports:s}),this.inited=!0})();try{await this.initPromise,await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:s,origin:this.host})}catch(i){throw await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:s,error:i,origin:this.host}),i}finally{this.initing=!1,this.initPromise=void 0}return s}async get(e,t,r,n){const{loadFactory:o=!0}=r||{loadFactory:!0},s=await this.init(e,n,void 0,t);this.lib=s,await this.host.loaderHook.lifecycle.beforeGetExpose.emit({id:e,expose:t,moduleInfo:this.remoteInfo,remoteEntryExports:s,origin:this.host});let i;try{const l=await this.host.loaderHook.lifecycle.getModuleFactory.emit({remoteEntryExports:s,expose:t,moduleInfo:this.remoteInfo});i=typeof l=="function"?l:void 0,i||(i=await s.get(t)),i||R(Nt,k,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,expose:t,requestId:e,availableExposes:yo(n)},void 0,D(this.host.options)),await this.host.loaderHook.lifecycle.afterGetExpose.emit({id:e,expose:t,moduleInfo:this.remoteInfo,remoteEntryExports:s,moduleFactory:i,origin:this.host})}catch(l){throw await this.host.loaderHook.lifecycle.afterGetExpose.emit({id:e,expose:t,moduleInfo:this.remoteInfo,remoteEntryExports:s,error:l,origin:this.host}),l}const a=nr(this.remoteInfo.name,t),c=this.wraperFactory(i,a);if(!o)return c;await this.host.loaderHook.lifecycle.beforeExecuteFactory.emit({id:e,expose:t,moduleInfo:this.remoteInfo,loadFactory:o,origin:this.host});try{const l=await c();return await this.host.loaderHook.lifecycle.afterExecuteFactory.emit({id:e,expose:t,moduleInfo:this.remoteInfo,loadFactory:o,exposeModule:l,origin:this.host}),l}catch(l){throw await this.host.loaderHook.lifecycle.afterExecuteFactory.emit({id:e,expose:t,moduleInfo:this.remoteInfo,loadFactory:o,error:l,origin:this.host}),l}}wraperFactory(e,t){function r(n,o){n&&typeof n=="object"&&Object.isExtensible(n)&&!Object.getOwnPropertyDescriptor(n,Symbol.for("mf_module_id"))&&Object.defineProperty(n,Symbol.for("mf_module_id"),{value:o,enumerable:!1})}return()=>{const n=e();return n instanceof Promise?n.then(o=>(r(o,t),o)):(r(n,t),n)}}},F=class{constructor(e){this.registerPlugins={},this.lifecycle=e,this.lifecycleKeys=Object.keys(e)}applyPlugin(e){P(at(e),"Plugin configuration is invalid.");const t=e.name;P(t,"A name must be provided by the plugin."),this.registerPlugins[t]||(this.registerPlugins[t]=e,this.lifecycleKeys.forEach(r=>{const n=e[r];n&&this.lifecycle[r].on(n)}))}removePlugin(e){P(e,"A name is required.");const t=this.registerPlugins[e];P(t,`The plugin "${e}" is not registered.`),this.lifecycleKeys.forEach(r=>{const n=t[r];n&&this.lifecycle[r].remove(n)}),delete this.registerPlugins[e]}},N=class{constructor(e){this.type="",this.listeners=new Set,e&&(this.type=e)}on(e){typeof e=="function"&&this.listeners.add(e)}once(e){const 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=>{const n=r(...e);n!==void 0&&(t=n)}),t}remove(e){this.listeners.delete(e)}removeAll(){this.listeners.clear()}},w=class extends N{emit(...e){let t;const r=Array.from(this.listeners);if(r.length>0){let n=0;const o=s=>s===!1?!1:n<r.length?Promise.resolve(r[n++].apply(null,e)).then(i=>i===void 0||e.length===1&&i===e[0]?o(s):o(i)):s;t=o()}return Promise.resolve(t)}};function Dt(e,t){if(!Pe(t))return!1;if(e!==t){for(const r in e)if(!(r in t))return!1}return!0}var q=class extends N{constructor(e){super(),this.onerror=R,this.type=e}emit(e){Pe(e)||R(`The data for the "${this.type}" hook should be an object.`);for(const t of this.listeners)try{const r=t(e);if(r===void 0)continue;if(Dt(e,r))e=r;else{this.onerror(`A plugin returned an unacceptable value for the "${this.type}" type.`);break}}catch(r){Q(r),this.onerror(r)}return e}},H=class extends N{constructor(e){super(),this.onerror=R,this.type=e}emit(e){Pe(e)||R(`The response data for the "${this.type}" hook must be an object.`);const t=Array.from(this.listeners);if(t.length>0){let r=0;const n=s=>(Q(s),this.onerror(s),e),o=s=>{if(s!==void 0&&Dt(e,s))e=s;else if(s!==void 0)return this.onerror(`A plugin returned an incorrect value for the "${this.type}" type.`),e;if(r<t.length)try{return Promise.resolve(t[r++](e)).then(o,n)}catch(i){return n(i)}return e};return Promise.resolve(o(e))}return Promise.resolve(e)}};const J="Remote loading is disabled by experiments.optimization.disableRemote.";var go=class{constructor(){this.hooks=new F({})}formatAndRegisterRemote(){return[]}loadRemote(){throw new Error(J)}preloadRemote(){throw new Error(J)}registerRemotes(){throw new Error(J)}getRemoteModuleAndOptions(){throw new Error(J)}initRawContainer(){throw new Error(J)}};function Ft(e,t){const r=lt(t);r.url||R(Tt,k,{remoteName:e.name});let n=Ae(t,r.url);e.type=r.type,e.entryGlobalName=r.globalName,e.entry=n,e.version=t.version,e.buildVersion=t.buildVersion}function _o(){return{name:"snapshot-plugin",async afterResolve(e){const{remote:t,pkgNameOrAlias:r,expose:n,origin:o,remoteInfo:s,id:i}=e;if(!Le(t)||!it(t)){const{remoteSnapshot:a,globalSnapshot:c}=await o.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:t,id:Fe(t.name,n)});Ft(s,a);const l=[{nameOrAlias:r,exposes:[n],resourceCategory:"sync",share:!1,depsRemote:!1,recordPreloadedAssets:!0}];await o.remoteHandler.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:l,options:o.options,origin:o});const[f]=l;if(f){const u={remote:t,preloadConfig:f},h=await o.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin:o,preloadOptions:u,remoteInfo:s,remote:t,remoteSnapshot:a,globalSnapshot:c});h&&Ot(s,o,h,!1,{initiator:"loadRemote",id:i},f.recordPreloadedAssets).catch(()=>{})}return{...e,remoteSnapshot:a}}return e}}}function So(e){const t=e.split(":");return t.length===1?{name:t[0],version:void 0}:t.length===2?{name:t[0],version:t[1]}:{name:t[1],version:t[2]}}function Ht(e,t,r,n,o={},s){const{value:i}=B(e,ee(t)),a=s||i;if(a&&!tt(a)&&(r(a,t,n),a.remotesInfo)){const c=Object.keys(a.remotesInfo);for(const l of c){if(o[l])continue;o[l]=!0;const f=So(l),u=a.remotesInfo[l];Ht(e,{name:f.name,version:u.matchedVersion},r,!1,o,void 0)}}}const Ie=(e,t)=>document.querySelector(`${e}[${e==="link"?"href":"src"}="${t}"]`);function Ro(e,t,r,n,o){const s=[],i=[],a=[],c=new Set,l=new Set,{options:f}=e,{preloadConfig:u}=t,{depsRemote:h}=u;if(Ht(n,r,(d,p,y)=>{var $;let E;if(y)E=u;else if(Array.isArray(h)){const A=h.find(T=>T.nameOrAlias===p.name||T.nameOrAlias===p.alias);if(!A)return;E=Mt(A)}else if(h===!0)E=u;else return;const _=Ae(d,lt(d).url);_&&a.push({name:p.name,moduleInfo:{name:p.name,entry:_,type:"remoteEntryType"in d?d.remoteEntryType:"global",entryGlobalName:"globalName"in d?d.globalName:p.name,shareScope:"",version:"version"in d?d.version:void 0},url:_});let g="modules"in d?d.modules:[];const S=fo(E.exposes);S.length&&"modules"in d&&(g=($=d==null?void 0:d.modules)==null?void 0:$.reduce((A,T)=>((S==null?void 0:S.indexOf(T.moduleName))!==-1&&A.push(T),A),[]));function I(A){const T=A.map(L=>Ae(d,L));return E.filter?T.filter(E.filter):T}if(g){const A=g.length;for(let T=0;T<A;T++){const L=g[T],Ee=`${p.name}/${L.moduleName}`;e.remoteHandler.hooks.lifecycle.handlePreloadModule.emit({id:L.moduleName==="."?p.name:Ee,name:p.name,remoteSnapshot:d,preloadConfig:E,remote:p,origin:e}),!hr(Ee)&&(E.resourceCategory==="all"?(s.push(...I(L.assets.css.async)),s.push(...I(L.assets.css.sync)),i.push(...I(L.assets.js.async)),i.push(...I(L.assets.js.sync))):E.resourceCategory==="sync"&&(s.push(...I(L.assets.css.sync)),i.push(...I(L.assets.js.sync))),dr(Ee))}}},!0,{},o),o.shared&&o.shared.length>0){const d=(p,y)=>{const{shared:E}=Y(e.shareScopeMap,y.sharedName,p,e.sharedHandler.hooks.lifecycle.resolveShare)||{};E&&typeof E.lib=="function"&&(y.assets.js.sync.forEach(_=>{c.add(_)}),y.assets.css.sync.forEach(_=>{l.add(_)}))};o.shared.forEach(p=>{var _;const y=(_=f.shared)==null?void 0:_[p.sharedName];if(!y)return;const E=p.version?y.find(g=>g.version===p.version):y;E&&ct(E).forEach(g=>{d(g,p)})})}const m=i.filter(d=>!c.has(d)&&!Ie("script",d));return{cssAssets:s.filter(d=>!l.has(d)&&!Ie("link",d)),jsAssetsWithoutEntry:m,entryAssets:a.filter(d=>!Ie("script",d.url))}}const bo=function(){return{name:"generate-preload-assets-plugin",async generatePreloadAssets(e){const{origin:t,preloadOptions:r,remoteInfo:n,remote:o,globalSnapshot:s,remoteSnapshot:i}=e;return Le(o)&&it(o)?{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[{name:o.name,url:o.entry,moduleInfo:{name:n.name,entry:o.entry,type:n.type||"global",entryGlobalName:"",shareScope:""}}]}:(Ft(n,i),Ro(t,r,n,s,i))}}};function Ct(e,t){const r=ue({name:t.name,version:t.options.version}),n=r&&"remotesInfo"in r&&r.remotesInfo&&B(r.remotesInfo,e.name).value;return n&&n.matchedVersion?{hostGlobalSnapshot:r,globalSnapshot:Ge(),remoteSnapshot:ue({name:e.name,version:n.matchedVersion})}:{hostGlobalSnapshot:void 0,globalSnapshot:Ge(),remoteSnapshot:ue({name:e.name,version:"version"in e?e.version:void 0})}}var Io=class{constructor(e){this.loadingHostSnapshot=null,this.manifestCache=new Map,this.hooks=new F({beforeLoadRemoteSnapshot:new w("beforeLoadRemoteSnapshot"),loadSnapshot:new H("loadGlobalSnapshot"),loadRemoteSnapshot:new H("loadRemoteSnapshot"),afterLoadSnapshot:new H("afterLoadSnapshot"),beforeLoadManifest:new w("beforeLoadManifest"),afterLoadManifest:new w("afterLoadManifest")}),this.manifestLoading=pe.__FEDERATION__.__MANIFEST_LOADING__,this.HostInstance=e,this.loaderHook=e.loaderHook}async loadRemoteSnapshotInfo({moduleInfo:e,id:t,initiator:r="loadRemote"}){const{options:n}=this.HostInstance;await this.hooks.lifecycle.beforeLoadRemoteSnapshot.emit({options:n,moduleInfo:e,origin:this.HostInstance});let o=ue({name:this.HostInstance.options.name,version:this.HostInstance.options.version});o||(o={version:this.HostInstance.options.version||"",remoteEntry:"",remotesInfo:{}},fr({[this.HostInstance.options.name]:o})),o&&"remotesInfo"in o&&!B(o.remotesInfo,e.name).value&&("version"in e||"entry"in e)&&(o.remotesInfo={...o==null?void 0:o.remotesInfo,[e.name]:{matchedVersion:"version"in e?e.version:e.entry}});const{hostGlobalSnapshot:s,remoteSnapshot:i,globalSnapshot:a}=this.getGlobalRemoteInfo(e),{remoteSnapshot:c,globalSnapshot:l}=await this.hooks.lifecycle.loadSnapshot.emit({options:n,moduleInfo:e,hostGlobalSnapshot:s,remoteSnapshot:i,globalSnapshot:a});let f,u;if(c)if(tt(c)){const h=c.remoteEntry,m=await this.loadManifestSnapshot(h,e,{},{initiator:r,id:t||e.name}),d=Ue({...e,entry:h},m);f=m,u=d}else{const{remoteSnapshot:h}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:c,from:"global"});f=h,u=l}else if(Le(e)){const h=await this.loadManifestSnapshot(e.entry,e,{},{initiator:r,id:t||e.name}),m=Ue(e,h);f=h,u=m}else R(wt,k,{remoteName:e.name,remoteVersion:e.version,hostName:this.HostInstance.options.name,globalSnapshot:JSON.stringify(l)},void 0,D(this.HostInstance.options));return await this.hooks.lifecycle.afterLoadSnapshot.emit({id:t,host:this.HostInstance,options:n,moduleInfo:e,remoteSnapshot:f}),{remoteSnapshot:f,globalSnapshot:u}}getGlobalRemoteInfo(e){return Ct(e,this.HostInstance)}async getManifestJson(e,t,r,n){return(async()=>{const s=j(t);let i=this.manifestCache.get(e);if(i)return await this.hooks.lifecycle.afterLoadManifest.emit({manifestUrl:e,moduleInfo:t,resourceOptions:n,manifestJson:i,cached:!0,origin:this.HostInstance}),i;await this.hooks.lifecycle.beforeLoadManifest.emit({manifestUrl:e,moduleInfo:t,resourceOptions:n,origin:this.HostInstance});let a,c,l=!1;try{let h=await this.loaderHook.lifecycle.fetch.emit(e,{},s,n?{...n,url:e,resourceType:"manifest"}:void 0);(!h||!(h instanceof Response))&&(h=await fetch(e,{})),a=h,i=await h.json()}catch(h){c=h,i=await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:h,from:"runtime",lifecycle:"afterResolve",remote:s,origin:this.HostInstance}),i||(delete this.manifestLoading[e],await this.hooks.lifecycle.afterLoadManifest.emit({manifestUrl:e,moduleInfo:t,resourceOptions:n,response:a,error:h,origin:this.HostInstance}),R(Rt,k,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name},`${h}`,D(this.HostInstance.options))),l=!0}const f=[!i.metaData&&"metaData",!i.exposes&&"exposes",!i.shared&&"shared"].filter(Boolean),u=f.length>0?new Error(`"${e}" is not a valid federation manifest for remote "${t.name}". Missing required fields: ${f.join(", ")}.`):void 0;return u&&await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:u,from:"runtime",lifecycle:"afterResolve",remote:s,origin:this.HostInstance}),await this.hooks.lifecycle.afterLoadManifest.emit({manifestUrl:e,moduleInfo:t,resourceOptions:n,manifestJson:i,response:a,error:u||c,recovered:u?void 0:l||void 0,origin:this.HostInstance}),u&&R(At,k,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name,missingFields:f.join(",")},void 0,D(this.HostInstance.options)),this.manifestCache.set(e,i),i})()}async loadManifestSnapshot(e,t,r,n){const o=async()=>{const s=await this.getManifestJson(e,t,r,n),i=qt(s,{version:e}),{remoteSnapshot:a}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:t,manifestJson:s,remoteSnapshot:i,manifestUrl:e,from:"manifest"});return a};return this.manifestLoading[e]||(this.manifestLoading[e]=o().then(s=>s)),this.manifestLoading[e]}},wo=class{constructor(){this.hooks=new F({})}},$o=class{constructor(e){this.hooks=new F({beforeRegisterShare:new q("beforeRegisterShare"),afterRegisterShare:new N("afterRegisterShare"),afterResolve:new H("afterResolve"),beforeLoadShare:new H("beforeLoadShare"),loadShare:new w,afterLoadShare:new N("afterLoadShare"),errorLoadShare:new N("errorLoadShare"),resolveShare:new q("resolveShare"),initContainerShareScopeMap:new q("initContainerShareScopeMap")}),this.host=e,this.shareScopeMap={},this.initTokens={},this._setGlobalShareScopeMap(e.options)}emitAfterRegisterShare(e,t){this.hooks.lifecycle.afterRegisterShare.emit({pkgName:e,...t,shareScopeMap:this.shareScopeMap,origin:this.host})}emitAfterLoadShare({lifecycle:e,pkgName:t,shareInfo:r,selectedShared:n,loadContext:o}){try{this.hooks.lifecycle.afterLoadShare.emit({pkgName:t,shareInfo:r,selectedShared:n,shared:this.host.options.shared,shareScopeMap:this.shareScopeMap,lifecycle:e,loadContext:o,origin:this.host})}catch(s){Q(s)}}emitErrorLoadShare({lifecycle:e,pkgName:t,shareInfo:r,error:n,recovered:o,loadContext:s}){try{this.hooks.lifecycle.errorLoadShare.emit({pkgName:t,shareInfo:r,shared:this.host.options.shared,shareScopeMap:this.shareScopeMap,lifecycle:e,origin:this.host,error:n,recovered:o,loadContext:s})}catch(i){Q(i)}}registerShared(e,t){const{newShareInfos:r,allShareInfos:n}=gt(e,t);return Object.keys(r).forEach(o=>{r[o].forEach(s=>{s.scope.forEach(i=>{var l,f,u;this.hooks.lifecycle.beforeRegisterShare.emit({origin:this.host,pkgName:o,shared:s});const a=(l=this.shareScopeMap[i])==null?void 0:l[o],c=a==null?void 0:a[s.version];a||this.setShared({pkgName:o,lib:s.lib,get:s.get,loaded:s.loaded||!!s.lib,shared:s,from:t.name}),this.emitAfterRegisterShare(o,{scope:i,shared:s,previousShared:c,registeredShared:(u=(f=this.shareScopeMap[i])==null?void 0:f[o])==null?void 0:u[s.version],trigger:"runtime"})})})}),{newShareInfos:r,allShareInfos:n}}async loadShare(e,t){const{host:r}=this;let n=t==null?void 0:t.context;const o=qe({pkgName:e,extraOptions:t,shareInfos:r.options.shared});let s=o;try{o!=null&&o.scope&&await Promise.all(o.scope.map(async f=>{await Promise.all(this.initializeSharing(f,{strategy:o.strategy,context:n}))}));const i=await this.hooks.lifecycle.beforeLoadShare.emit({pkgName:e,shareInfo:o,shared:r.options.shared,origin:r,loadContext:n});s=i.shareInfo,n=i.loadContext||n,P(s,`Cannot find shared "${e}" in host "${r.options.name}". Ensure the shared config for "${e}" is declared in the federation plugin options and the host has been initialized before loading shares.`);const a=s,{shared:c,useTreesShaking:l}=Y(this.shareScopeMap,e,s,this.hooks.lifecycle.resolveShare,n)||{};if(c){const f=se(c,l);if(f.lib)return V(f,r.options.name),this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:a,selectedShared:c,loadContext:n}),f.lib;if(f.loading&&!f.loaded){const u=await f.loading;return f.loaded=!0,f.lib||(f.lib=u),V(f,r.options.name),this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:a,selectedShared:c,loadContext:n}),u}else{const h=(async()=>{const d=await f.get();return V(f,r.options.name),f.loaded=!0,f.lib=d,d})();this.setShared({pkgName:e,loaded:!1,shared:c,from:r.options.name,lib:null,loading:h,treeShaking:l?f:void 0});const m=await h;return this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:a,selectedShared:c,loadContext:n}),m}}else{if(t!=null&&t.customShareInfo)return this.emitErrorLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:a,recovered:!0,loadContext:n}),!1;const f=te(a.treeShaking),u=se(a,f),m=(async()=>{const p=await u.get();u.lib=p,u.loaded=!0,V(u,r.options.name);const{shared:y,useTreesShaking:E}=Y(this.shareScopeMap,e,a,this.hooks.lifecycle.resolveShare,n)||{};if(y){const _=se(y,E);_.lib=p,_.loaded=!0,y.from=a.from}return p})();this.setShared({pkgName:e,loaded:!1,shared:a,from:r.options.name,lib:null,loading:m,treeShaking:f?u:void 0});const d=await m;return this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:a,selectedShared:a,loadContext:n}),d}}catch(i){throw this.emitErrorLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:s,error:i,loadContext:n}),i}}initializeSharing(e=oe,t){var m;const{host:r}=this,n=t==null?void 0:t.from,o=t==null?void 0:t.strategy,s=((m=t==null?void 0:t.context)==null?void 0:m.trigger)||n||"runtime";let i=t==null?void 0:t.initScope;const a=[];if(n!=="build"){const{initTokens:d}=this;i||(i=[]);let p=d[e];if(p||(p=d[e]={from:this.host.name}),i.indexOf(p)>=0)return a;i.push(p)}const c=this.shareScopeMap,l=r.options.name;c[e]||(c[e]={});const f=c[e],u=(d,p)=>{var $;const{version:y,eager:E}=p;f[d]=f[d]||{};const _=f[d],g=_[y],S=g&&se(g),I=!!(S&&("eager"in S&&S.eager||"shareConfig"in S&&(($=S.shareConfig)!=null&&$.eager)));(!S||S.strategy!=="loaded-first"&&!S.loaded&&(!E!=!I?E:l>_[y].from))&&(_[y]=p),this.emitAfterRegisterShare(d,{scope:e,shared:p,previousShared:g,registeredShared:_[y],trigger:s})},h=async d=>{const{module:p}=await r.remoteHandler.getRemoteModuleAndOptions({id:d});let y;const E={initiator:"loadShare",id:d,resourceType:"remoteEntry",url:p.remoteInfo.entry};try{y=await p.getEntry(void 0,E)}catch(_){if(y=await r.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:d,error:_,from:"runtime",lifecycle:"beforeLoadShare",remote:p.remoteInfo,origin:r}),!y)return}finally{y!=null&&y.init&&!p.initing&&(p.remoteEntryExports=y,await p.init(void 0,void 0,i,void 0,E))}};return Object.keys(r.options.shared).forEach(d=>{r.options.shared[d].forEach(p=>{p.scope.includes(e)&&u(d,p)})}),(r.options.shareStrategy==="version-first"||o==="version-first")&&r.options.remotes.forEach(d=>{d.shareScope===e&&a.push(h(d.name))}),a}loadShareSync(e,t){const{host:r}=this,n=t==null?void 0:t.context,o=qe({pkgName:e,extraOptions:t,shareInfos:r.options.shared});try{o!=null&&o.scope&&o.scope.forEach(i=>{this.initializeSharing(i,{strategy:o.strategy,from:t==null?void 0:t.from,context:n})});const{shared:s}=Y(this.shareScopeMap,e,o,this.hooks.lifecycle.resolveShare,n)||{};if(s){if(typeof s.lib=="function")return V(s,r.options.name),s.loaded||(s.loaded=!0,s.from===r.options.name&&(o.loaded=!0)),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:o,selectedShared:s,loadContext:n}),s.lib;if(typeof s.get=="function"){const i=s.get();if(!(i instanceof Promise))return V(s,r.options.name),this.setShared({pkgName:e,loaded:!0,from:r.options.name,lib:i,shared:s}),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:o,selectedShared:s,loadContext:n}),i}}if(o.lib)return o.loaded||(o.loaded=!0),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:o,selectedShared:o,loadContext:n}),o.lib;if(o.get){const i=o.get();return i instanceof Promise&&R((t==null?void 0:t.from)==="build"?It:ke,k,{hostName:r.options.name,sharedPkgName:e},void 0,D(r.options)),o.lib=i,this.setShared({pkgName:e,loaded:!0,from:r.options.name,lib:o.lib,shared:o}),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:o,selectedShared:o,loadContext:n}),o.lib}R(ke,k,{hostName:r.options.name,sharedPkgName:e},void 0,D(r.options))}catch(s){throw this.emitErrorLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:o,error:s,loadContext:n}),s}}initShareScopeMap(e,t,r={}){const{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:s,get:i,treeShaking:a}){const{version:c,scope:l="default",...f}=t,u=Array.isArray(l)?l:[l],h=m=>{const d=(y,E,_)=>{_&&!y[E]&&(y[E]=_)},p=a?m.treeShaking:m;d(p,"loaded",s),d(p,"loading",o),d(p,"get",i),d(p,"lib",n)};u.forEach(m=>{this.shareScopeMap[m]||(this.shareScopeMap[m]={}),this.shareScopeMap[m][e]||(this.shareScopeMap[m][e]={}),this.shareScopeMap[m][e][c]||(this.shareScopeMap[m][e][c]={version:c,scope:[m],...f,lib:n});const d=this.shareScopeMap[m][e][c];h(d),r&&d.from!==r&&(d.from=r)})}_setGlobalShareScopeMap(e){const t=De(),r=e.id||e.name;r&&!t[r]&&(t[r]=this.shareScopeMap)}},To=class{constructor(){this.shareScopeMap={},this.hooks=new F({afterResolve:new H("afterResolve")})}registerShared(){return{newShareInfos:{},allShareInfos:{}}}loadShare(){throw new Error("Shared dependency loading is disabled by experiments.optimization.disableShared.")}loadShareSync(){throw new Error("Shared dependency loading is disabled by experiments.optimization.disableShared.")}initializeSharing(){return[]}initShareScopeMap(e,t){this.shareScopeMap[e]=t}},Ao=class{constructor(e){this.hooks=new F({beforeRegisterRemote:new q("beforeRegisterRemote"),registerRemote:new q("registerRemote"),beforeRequest:new H("beforeRequest"),afterMatchRemote:new w("afterMatchRemote"),onLoad:new w("onLoad"),afterLoadRemote:new w("afterLoadRemote"),handlePreloadModule:new N("handlePreloadModule"),errorLoadRemote:new w("errorLoadRemote"),beforePreloadRemote:new w("beforePreloadRemote"),generatePreloadAssets:new w("generatePreloadAssets"),afterPreloadRemote:new w("afterPreloadRemote"),loadEntry:new w}),this.host=e,this.idToRemoteMap={}}formatAndRegisterRemote(e,t){return(t.remotes||[]).reduce((r,n)=>(this.registerRemote(n,r,{force:!1}),r),e.remotes)}setIdToRemoteMap(e,t){const{remote:r,expose:n}=t,{name:o,alias:s}=r;if(this.idToRemoteMap[e]={name:r.name,expose:n},s&&e.startsWith(o)){const i=e.replace(o,s);this.idToRemoteMap[i]={name:r.name,expose:n};return}if(s&&e.startsWith(s)){const i=e.replace(s,o);this.idToRemoteMap[i]={name:r.name,expose:n}}}async loadRemote(e,t){const{host:r}=this,n=Ke(r.options.remotes,e);let o=e,s=n==null?void 0:n.expose,i=n?j(n.remote):void 0,a;try{const{loadFactory:c=!0}=t||{loadFactory:!0},{module:l,moduleOptions:f,remoteMatchInfo:u}=await this.getRemoteModuleAndOptions({id:e}),{pkgNameOrAlias:h,remote:m,expose:d,id:p,remoteSnapshot:y}=u;o=p,s=d,i=j(m);const E=await l.get(p,d,t,y),_=await this.hooks.lifecycle.onLoad.emit({id:p,pkgNameOrAlias:h,expose:d,exposeModule:c?E:void 0,exposeModuleFactory:c?void 0:E,remote:m,options:f,moduleInstance:l,origin:r});return this.setIdToRemoteMap(e,u),a={id:o,expose:s,remote:i,options:t,origin:r},typeof _=="function"?_:E}catch(c){const{from:l="runtime"}=t||{from:"runtime"};let f;try{f=await this.hooks.lifecycle.errorLoadRemote.emit({id:e,error:c,from:l,lifecycle:"onLoad",expose:s,remote:i,origin:r})}catch(u){throw a={id:o,expose:s,remote:i,options:t,error:u,origin:r},u}if(!f)throw a={id:o,expose:s,remote:i,options:t,error:c,origin:r},c;return a={id:o,expose:s,remote:i,options:t,error:c,origin:r,recovered:!0},f}finally{a&&await this.hooks.lifecycle.afterLoadRemote.emit(a)}}async preloadRemote(e){const{host:t}=this,r=[];await this.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:e,options:t.options,origin:t});const n=lo(t.options.remotes,e),o=a=>{const{preloadConfig:c,remote:l}=a,f=c.exposes||[];return f.length?f.map(u=>({ops:{...a,preloadConfig:{...c,exposes:[u]}},id:Fe(l.name,u)})):[{ops:a,id:`${l.name}/*`}]};let s;await Promise.all(n.flatMap(o).map(async a=>{const{ops:c,id:l}=a,{remote:f,preloadConfig:u}=c,h=j(f);try{const{globalSnapshot:m,remoteSnapshot:d}=await t.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:f,id:l,initiator:"preloadRemote"}),p=await this.hooks.lifecycle.generatePreloadAssets.emit({origin:t,preloadOptions:c,remote:f,remoteInfo:h,globalSnapshot:m,remoteSnapshot:d});if(!p)return;const y=await Ot(h,t,p,!0,{initiator:"preloadRemote",id:l},u.recordPreloadedAssets);r.push({remote:f,remoteInfo:h,preloadConfig:u,id:l,results:y})}catch(m){r.push({remote:f,remoteInfo:h,preloadConfig:u,id:l,results:[{url:h.entry,status:"error",resourceType:/\.json(?:$|[?#])/i.test(h.entry)?"manifest":"remoteEntry",initiator:"preloadRemote",id:l,error:m}]})}}));const i=r.flatMap(a=>a.results.filter(c=>c.status==="error"||c.status==="timeout"));if(i.length>0&&(s=new Error(`preloadRemote failed to load ${i.length} resource(s).`),Object.assign(s,{results:r,failedResults:i})),await this.hooks.lifecycle.afterPreloadRemote.emit({preloadOps:e,options:t.options,origin:t,results:r,error:s}),s)throw s}registerRemotes(e,t){const{host:r}=this;e.forEach(n=>{this.registerRemote(n,r.options.remotes,{force:t==null?void 0:t.force})})}initRawContainer(e,t,r){const{host:n}=this,o=new Je({host:n,remoteInfo:j({name:e,entry:t})});return o.remoteEntryExports=r,n.moduleCache.set(e,o),o}async getRemoteModuleAndOptions(e){const{host:t}=this,{id:r}=e;let n;try{n=await this.hooks.lifecycle.beforeRequest.emit({id:r,options:t.options,origin:t})}catch(m){if(n=await this.hooks.lifecycle.errorLoadRemote.emit({id:r,options:t.options,origin:t,from:"runtime",error:m,lifecycle:"beforeRequest"}),!n)throw m}const{id:o}=n,s=Ke(t.options.remotes,o);if(!s)try{R(bt,k,{hostName:t.options.name,requestId:o},void 0,D(t.options))}catch(m){throw await this.hooks.lifecycle.afterMatchRemote.emit({id:o,options:t.options,error:m,origin:t}),m}const{remote:i}=s,a=j(i);await this.hooks.lifecycle.afterMatchRemote.emit({id:o,...s,options:t.options,remoteInfo:a,origin:t});const c=await t.sharedHandler.hooks.lifecycle.afterResolve.emit({id:o,...s,options:t.options,origin:t,remoteInfo:a}),{remote:l,expose:f}=c;P(l&&f,`The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ${o}.`);let u=t.moduleCache.get(l.name);const h={host:t,remoteInfo:a};return u||(u=new Je(h),t.moduleCache.set(l.name,u)),{module:u,moduleOptions:h,remoteMatchInfo:c}}registerRemote(e,t,r){const{host:n}=this,o=()=>{if(e.alias){const i=t.find(a=>{var c;return e.alias&&(a.name.startsWith(e.alias)||((c=a.alias)==null?void 0:c.startsWith(e.alias)))});P(!i,`The alias ${e.alias} of remote ${e.name} is not allowed to be the prefix of ${i&&i.name} name or alias`)}"entry"in e&&typeof window<"u"&&!e.entry.startsWith("http")&&(e.entry=new URL(e.entry,window.location.origin).href),e.shareScope||(e.shareScope=oe),e.type||(e.type=Et)};this.hooks.lifecycle.beforeRegisterRemote.emit({remote:e,origin:n});const s=t.find(i=>i.name===e.name);if(!s)o(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:n});else{const i=[`The remote "${e.name}" is already registered.`,"Please note that overriding it may cause unexpected errors."];r!=null&&r.force&&(this.removeRemote(s),o(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:n}),Qe(i.join(" ")))}}removeRemote(e){var t;try{const{host:r}=this,{name:n}=e,o=r.options.remotes.findIndex(c=>c.name===n);o!==-1&&r.options.remotes.splice(o,1);const s=B(b.__FEDERATION__.moduleInfo,ee(e)).key;delete b.__FEDERATION__.moduleInfo[s],"entry"in e&&(r.snapshotHandler.manifestCache.delete(e.entry),delete pe.__FEDERATION__.__MANIFEST_LOADING__[e.entry]);const{hostGlobalSnapshot:i}=Ct(e,r);if(i){const c=i&&"remotesInfo"in i&&i.remotesInfo&&B(i.remotesInfo,e.name).key;c&&delete i.remotesInfo[c]}const a=r.moduleCache.get(e.name);if(a){const c=a.remoteInfo,l=c.entryGlobalName;b[l]&&((t=Object.getOwnPropertyDescriptor(b,l))!=null&&t.configurable?delete b[l]:b[l]=void 0);const f=Pt(a.remoteInfo);G[f]&&delete G[f];let u=c.buildVersion?Ye(c.name,c.buildVersion):c.name;const h=b.__FEDERATION__.__INSTANCES__.findIndex(m=>c.buildVersion?m.options.id===u:m.name===u);if(h!==-1){const m=b.__FEDERATION__.__INSTANCES__[h];u=m.options.id||u;const d=De();let p=!0;const y=[];Object.keys(d).forEach(E=>{const _=d[E];_&&Object.keys(_).forEach(g=>{const S=_[g];S&&Object.keys(S).forEach(I=>{const $=S[I];$&&Object.keys($).forEach(A=>{const T=$[A];T&&typeof T=="object"&&T.from===c.name&&(T.loaded||T.loading?(T.useIn=T.useIn.filter(L=>L!==c.name),T.useIn.length?p=!1:y.push([E,g,I,A])):y.push([E,g,I,A]))})})})}),p&&(m.shareScopeMap={},delete d[u]),y.forEach(([E,_,g,S])=>{var I,$,A;(A=($=(I=d[E])==null?void 0:I[_])==null?void 0:$[g])==null||delete A[S]}),b.__FEDERATION__.__INSTANCES__.splice(h,1)}r.moduleCache.delete(e.name)}}catch(r){ve.error(`removeRemote failed: ${r instanceof Error?r.message:String(r)}`)}}};const No=typeof FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN=="boolean"?!FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN:!0,we=typeof FEDERATION_OPTIMIZE_NO_REMOTE=="boolean"?!FEDERATION_OPTIMIZE_NO_REMOTE:!0,Ze=typeof FEDERATION_OPTIMIZE_NO_SHARED=="boolean"?!FEDERATION_OPTIMIZE_NO_SHARED:!0;var Gt=class{constructor(e){this.hooks=new F({beforeInit:new q("beforeInit"),init:new N,beforeInitContainer:new H("beforeInitContainer"),initContainer:new H("initContainer")}),this.version="2.9.0",this.moduleCache=new Map,this.loaderHook=new F({getModuleInfo:new N,createScript:new N,createLink:new N,fetch:new w,loadEntryError:new w,afterLoadEntry:new w("afterLoadEntry"),beforeInitRemote:new w("beforeInitRemote"),afterInitRemote:new w("afterInitRemote"),beforeGetExpose:new w("beforeGetExpose"),afterGetExpose:new w("afterGetExpose"),beforeExecuteFactory:new w("beforeExecuteFactory"),afterExecuteFactory:new w("afterExecuteFactory"),getModuleFactory:new w}),this.bridgeHook=new F({beforeBridgeRender:new N,afterBridgeRender:new N,beforeBridgeDestroy:new N,afterBridgeDestroy:new N,afterBridgeRouteSync:new N});const t=we&&No?[_o(),bo()]:[],r={id:no(),name:e.name,plugins:t,remotes:[],shared:{},inBrowser:Xe};this.name=e.name,this.options=r,this.snapshotHandler=we?new Io(this):new wo,this.sharedHandler=Ze?new $o(this):new To,this.remoteHandler=we?new Ao(this):new go,this.shareScopeMap=this.sharedHandler.shareScopeMap,this.registerPlugins([...r.plugins,...e.plugins||[]]),this.options=this.formatOptions(r,e)}initOptions(e){e.name&&e.name!==this.options.name&&R(st($t,k)),this.registerPlugins(e.plugins);const 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=oe,t){return this.sharedHandler.initializeSharing(e,t)}initRawContainer(e,t,r){return this.remoteHandler.initRawContainer(e,t,r)}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){const r=Ze?gt(e,t).allShareInfos:{},{userOptions:n,options:o}=this.hooks.lifecycle.beforeInit.emit({origin:this,userOptions:t,options:e,shareInfo:r}),s=this.remoteHandler.formatAndRegisterRemote(o,n),{allShareInfos:i}=this.sharedHandler.registerShared(o,n),a=[...o.plugins];n.plugins&&n.plugins.forEach(l=>{a.includes(l)||a.push(l)});const c={...e,...t,plugins:a,remotes:s,shared:i,id:n.id||e.id};return this.hooks.lifecycle.init.emit({origin:this,options:c}),c}registerPlugins(e){this.options.plugins=ao(e,this)}registerRemotes(e,t){return this.remoteHandler.registerRemotes(e,t)}registerShared(e){this.sharedHandler.registerShared(this.options,{...this.options,shared:e})}};const Po=po;function vo(){return typeof FEDERATION_BUILD_IDENTIFIER<"u"?FEDERATION_BUILD_IDENTIFIER:""}function ko(e,t){const r=vo();return b.__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))}function Lo(e){const t=new(ar()||Gt)({id:`${e.name}@${e.version||Date.now()}`,...e});return ir(t),t}let ce=null;function Mo(e){const t=ko(e.name,e.version),r={...e,id:e.id||""};return t?(t.initOptions(r),ce||(ce=t),t):(ce=Lo(r),ce)}cr(Gt);export{Po as h,Mo as i};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import"../routeEditor.js";import{_ as B,a as L}from"./_virtual_mf___mfe_internal__ShoppingRouteAdminSet__mf_owner__1__loadShare__react__loadShare__.js-BEN0cOy_.js";import"./vite-preload-helper-Dp1pzeXC.js";import"./index-2HOz3j7B.js";var b={exports:{}};const A=B||L,n=A.createElement,z=`
|
|
2
|
+
.shoppingroute-route-row {
|
|
3
|
+
display: grid;
|
|
4
|
+
grid-template-columns: 48px minmax(160px, 1fr) 144px;
|
|
5
|
+
}
|
|
6
|
+
.shoppingroute-route-actions {
|
|
7
|
+
display: flex;
|
|
8
|
+
justify-content: flex-end;
|
|
9
|
+
gap: 6px;
|
|
10
|
+
}
|
|
11
|
+
@media (max-width: 600px) {
|
|
12
|
+
.shoppingroute-route-row {
|
|
13
|
+
grid-template-columns: 32px minmax(0, 1fr);
|
|
14
|
+
}
|
|
15
|
+
.shoppingroute-route-actions {
|
|
16
|
+
grid-column: 2;
|
|
17
|
+
justify-content: flex-start;
|
|
18
|
+
flex-wrap: wrap;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
`,l=(r,e)=>(typeof navigator<"u"?String(navigator.language||"").toLowerCase():"de").startsWith("de")?r:e,p=r=>String(r||"").trim().toLocaleLowerCase("de"),M=(r,e)=>String(r||"").localeCompare(String(e||""),"de",{sensitivity:"base"}),v=(r,e)=>p(r)===p(e);function x(r){return(Array.isArray(r&&r.markets)?r.markets:[]).filter(e=>e&&e.name&&e.enabled!==!1).map(e=>String(e.name).trim()).filter(Boolean).filter((e,t,o)=>o.findIndex(s=>v(s,e))===t).sort(M)}function f(r,e){return(Array.isArray(r)?r:[]).map((t,o)=>({route:t,originalIndex:o})).filter(t=>t.route&&v(t.route.market,e)&&String(t.route.category||"").trim()).sort((t,o)=>{const s=Number(t.route.order)||999999,a=Number(o.route.order)||999999;return s-a||t.originalIndex-o.originalIndex}).map(t=>({...t.route,category:String(t.route.category).trim()}))}function R(r,e,t){const o=new Set(f(e,t).map(a=>p(a.category))),s=new Set;return(Array.isArray(r)?r:[]).map(a=>String(a&&a.name||"").trim()).filter(a=>{const u=p(a);return!u||o.has(u)||s.has(u)?!1:(s.add(u),!0)}).sort(M)}function w(r,e,t){const o=Array.isArray(r)?r:[],s=(Array.isArray(t)?t:[]).filter(c=>c&&String(c.category||"").trim()).map((c,m)=>({market:String(e||"").trim(),category:String(c.category).trim(),order:(m+1)*10})),a=[];let u=!1;for(const c of o){if(c&&v(c.market,e)){u||(a.push(...s),u=!0);continue}a.push(c)}return u||a.push(...s),a}function _(r,e,t,o){const s=f(r,e),a=t+o;return t<0||a<0||t>=s.length||a>=s.length?r:([s[t],s[a]]=[s[a],s[t]],w(r,e,s))}function N(r,e,t){const o=f(r,e);return t<0||t>=o.length?r:(o.splice(t,1),w(r,e,o))}function $(r,e,t){const o=String(t||"").trim();if(!o)return r;const s=f(r,e);return s.some(a=>p(a.category)===p(o))?r:(s.push({market:String(e||"").trim(),category:o,order:0}),w(r,e,s))}class E extends A.Component{constructor(e){super(e),this.state={selectedMarket:x(e.data)[0]||"",selectedAddCategory:""}}componentDidUpdate(e){if(e.data===this.props.data)return;const t=x(this.props.data);if(!t.some(o=>v(o,this.state.selectedMarket))){const o=t[0]||"";o!==this.state.selectedMarket&&this.setState({selectedMarket:o,selectedAddCategory:""})}}updateRoutes(e){this.props.onChange({...this.props.data||{},routes:e},!0)}move(e,t){this.updateRoutes(_(this.props.data&&this.props.data.routes,this.state.selectedMarket,e,t))}remove(e){this.updateRoutes(N(this.props.data&&this.props.data.routes,this.state.selectedMarket,e))}add(e){const t=e.some(o=>p(o)===p(this.state.selectedAddCategory))?this.state.selectedAddCategory:e[0];t&&(this.updateRoutes($(this.props.data&&this.props.data.routes,this.state.selectedMarket,t)),this.setState({selectedAddCategory:""}))}render(){const e=this.props.data||{},t=x(e),o=this.state.selectedMarket,s=f(e.routes,o),a=R(e.productGroups,e.routes,o),u=a.some(i=>p(i)===p(this.state.selectedAddCategory))?this.state.selectedAddCategory:a[0]||"",c=new Set((Array.isArray(e.productGroups)?e.productGroups:[]).map(i=>p(i&&i.name)).filter(Boolean)),m=String(this.props.themeType||"").toLowerCase()==="dark",h=m?"#555":"#d5d5d5",S=m?"#2b2b2b":"#fff",y=m?"#bbb":"#666",k=m?"#3b3b3b":"#f4f4f4",C={minWidth:0,width:"100%",maxWidth:"320px",boxSizing:"border-box",padding:"9px 12px",borderRadius:"4px",border:`1px solid ${h}`,background:S,color:"inherit"},g=[n("style",{key:"responsive-styles"},z),n("div",{key:"selector",style:{display:"flex",flexWrap:"wrap",gap:"12px",alignItems:"center",marginBottom:"18px"}},[n("label",{key:"label",htmlFor:"shoppingroute-route-market",style:{fontWeight:600}},l("Markt auswählen:","Select market:")),n("select",{key:"select",id:"shoppingroute-route-market",value:o,onChange:i=>this.setState({selectedMarket:i.target.value,selectedAddCategory:""}),style:C},t.map(i=>n("option",{key:i,value:i},i)))])];return t.length?(g.push(n("h3",{key:"route-title",style:{margin:"0 0 6px"}},l("Laufweg dieses Marktes","Walking route for this market"))),g.push(n("div",{key:"hint",style:{color:y,marginBottom:"10px",fontSize:"0.92rem"}},l("Oben beginnt der Laufweg. Änderungen betreffen ausschließlich den ausgewählten Markt.","The walking route starts at the top. Changes affect only the selected market."))),s.length?g.push(n("div",{key:"routes",style:{border:`1px solid ${h}`,borderRadius:"6px",overflow:"hidden",marginBottom:"18px"}},s.map((i,d)=>{const W=!c.has(p(i.category));return n("div",{key:`${i.market}-${i.category}-${d}`,className:"shoppingroute-route-row",style:{alignItems:"center",gap:"8px",padding:"9px 12px",borderBottom:d<s.length-1?`1px solid ${h}`:"none",background:S}},[n("div",{key:"position",style:{color:y,textAlign:"right",paddingRight:"6px"}},String(d+1)),n("div",{key:"category",style:{fontWeight:500}},[String(i.category||""),W?n("div",{key:"historical",style:{color:y,fontSize:"0.8rem",fontWeight:400}},l("Nicht mehr im globalen Katalog","No longer in the global catalogue")):null]),n("div",{key:"buttons",className:"shoppingroute-route-actions"},[n("button",{key:"up",type:"button",disabled:d===0,title:l("Nach oben","Move up"),onClick:()=>this.move(d,-1),style:{width:"38px",height:"32px",border:`1px solid ${h}`,borderRadius:"4px",background:k,color:"inherit",cursor:d===0?"default":"pointer",opacity:d===0?.4:1}},"↑"),n("button",{key:"down",type:"button",disabled:d===s.length-1,title:l("Nach unten","Move down"),onClick:()=>this.move(d,1),style:{width:"38px",height:"32px",border:`1px solid ${h}`,borderRadius:"4px",background:k,color:"inherit",cursor:d===s.length-1?"default":"pointer",opacity:d===s.length-1?.4:1}},"↓"),n("button",{key:"remove",type:"button",title:l("Aus diesem Laufweg entfernen","Remove from this walking route"),onClick:()=>this.remove(d),style:{width:"38px",height:"32px",border:`1px solid ${h}`,borderRadius:"4px",background:k,color:"inherit",cursor:"pointer"}},"×")])])}))):g.push(n("div",{key:"no-routes",style:{color:y,padding:"12px 0",marginBottom:"18px"}},l("Für diesen Markt werden derzeit keine Produktgruppen verwendet.","No product groups are currently used for this market."))),g.push(n("h3",{key:"add-title",style:{margin:"0 0 8px"}},l("Produktgruppe hinzufügen","Add product group"))),a.length?g.push(n("div",{key:"add-controls",style:{display:"flex",flexWrap:"wrap",gap:"10px",alignItems:"center"}},[n("select",{key:"category",value:u,onChange:i=>this.setState({selectedAddCategory:i.target.value}),style:C},a.map(i=>n("option",{key:i,value:i},i))),n("button",{key:"add",type:"button",onClick:()=>this.add(a),style:{minHeight:"38px",padding:"7px 16px",border:`1px solid ${h}`,borderRadius:"4px",background:k,color:"inherit",cursor:"pointer",fontWeight:600}},l("Hinzufügen","Add"))])):g.push(n("div",{key:"no-available",style:{color:y,padding:"8px 0"}},l("Alle globalen Produktgruppen werden bereits in diesem Markt verwendet.","All global product groups are already used in this market."))),n("div",{style:{width:"100%"}},g)):(g.push(n("div",{key:"no-markets",style:{color:y,padding:"12px 0"}},l("Noch keine aktiven Märkte vorhanden.","No active markets configured yet."))),n("div",{style:{width:"100%"}},g))}}b.exports={Components:{RouteEditor:E},RouteEditorModel:{activeMarkets:x,marketRoutes:f,availableProductGroups:R,replaceMarketRoutes:w,moveMarketRoute:_,removeMarketRoute:N,addMarketRoute:$}};const P=(b.exports==null?{}:b.exports).default||b.exports,F=P.Components;export{F as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const c={},i=new Set,r=new Map;function m(t,n){let e=r.get(t);return e||(e=Promise.resolve().then(n).catch(o=>{throw r.delete(t),o}),r.set(t,e)),e}async function u(t){if(typeof document>"u")return;const n=c[t]||[];await Promise.all(n.map(e=>{const o=new URL(e,import.meta.url).href;return i.has(o)||(i.add(o),document.querySelector(`link[rel="stylesheet"][href="${o}"]`))?Promise.resolve():new Promise((a,d)=>{const s=document.createElement("link");s.rel="stylesheet",s.href=o,s.onload=()=>a(),s.onerror=()=>d(new Error(`[Module Federation] Failed to load CSS asset: ${o}`)),document.head.appendChild(s)})}))}const f={"./Components":async()=>{await u("./Components"),await Promise.all([]);const t=await m("./Components",()=>import("./route-editor-components-DNT6xQbj.js")),n=t&&t.__mf_remote_dependency_pending;n&&typeof n.then=="function"&&await n;const e={};return Object.assign(e,t),Object.defineProperty(e,"__esModule",{value:!0,enumerable:!1}),e}};export{f as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./index-2HOz3j7B.js";const o={react:async()=>await import("./_virtual_mf___mfe_internal__ShoppingRouteMarketsSet__mf_owner__1__loadShare__react__loadShare__.js-v8gr9ECk.js").then(r=>r.b)},s={react:{name:"react",version:"18.3.1",scope:["default"],loaded:!1,materialize:!0,eager:!1,from:"ShoppingRouteMarketsSet",canLiveRebind:!0,async get(){s.react.loaded=!0;const{react:t}=o,e={...await t()};return e.__esModule!==!0&&Object.defineProperty(e,"__esModule",{value:!0,enumerable:!1}),function(){return e}},shareConfig:{singleton:!0,requiredVersion:">=18",strictVersion:!1,eager:!1}}},u=[];export{u as usedRemotes,s as usedShared};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
function B(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const o in n)if(o!=="default"&&!(o in e)){const a=Object.getOwnPropertyDescriptor(n,o);a&&Object.defineProperty(e,o,a.get?a:{enumerable:!0,get:()=>n[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function G(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var x={exports:{}},u={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var m=Symbol.for("react.element"),Y=Symbol.for("react.portal"),J=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),Z=Symbol.for("react.provider"),ee=Symbol.for("react.context"),te=Symbol.for("react.forward_ref"),re=Symbol.for("react.suspense"),ne=Symbol.for("react.memo"),oe=Symbol.for("react.lazy"),k=Symbol.iterator;function ue(e){return e===null||typeof e!="object"?null:(e=k&&e[k]||e["@@iterator"],typeof e=="function"?e:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$=Object.assign,L={};function y(e,t,r){this.props=e,this.context=t,this.refs=L,this.updater=r||D}y.prototype.isReactComponent={};y.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function N(){}N.prototype=y.prototype;function C(e,t,r){this.props=e,this.context=t,this.refs=L,this.updater=r||D}var w=C.prototype=new N;w.constructor=C;$(w,y.prototype);w.isPureReactComponent=!0;var P=Array.isArray,A=Object.prototype.hasOwnProperty,j={current:null},M={key:!0,ref:!0,__self:!0,__source:!0};function V(e,t,r){var n,o={},a=null,f=null;if(t!=null)for(n in t.ref!==void 0&&(f=t.ref),t.key!==void 0&&(a=""+t.key),t)A.call(t,n)&&!M.hasOwnProperty(n)&&(o[n]=t[n]);var c=arguments.length-2;if(c===1)o.children=r;else if(1<c){for(var l=Array(c),_=0;_<c;_++)l[_]=arguments[_+2];o.children=l}if(e&&e.defaultProps)for(n in c=e.defaultProps,c)o[n]===void 0&&(o[n]=c[n]);return{$$typeof:m,type:e,key:a,ref:f,props:o,_owner:j.current}}function se(e,t){return{$$typeof:m,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function T(e){return typeof e=="object"&&e!==null&&e.$$typeof===m}function ae(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var I=/\/+/g;function v(e,t){return typeof e=="object"&&e!==null&&e.key!=null?ae(""+e.key):t.toString(36)}function h(e,t,r,n,o){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var f=!1;if(e===null)f=!0;else switch(a){case"string":case"number":f=!0;break;case"object":switch(e.$$typeof){case m:case Y:f=!0}}if(f)return f=e,o=o(f),e=n===""?"."+v(f,0):n,P(o)?(r="",e!=null&&(r=e.replace(I,"$&/")+"/"),h(o,t,r,"",function(_){return _})):o!=null&&(T(o)&&(o=se(o,r+(!o.key||f&&f.key===o.key?"":(""+o.key).replace(I,"$&/")+"/")+e)),t.push(o)),1;if(f=0,n=n===""?".":n+":",P(e))for(var c=0;c<e.length;c++){a=e[c];var l=n+v(a,c);f+=h(a,t,r,l,o)}else if(l=ue(e),typeof l=="function")for(e=l.call(e),c=0;!(a=e.next()).done;)a=a.value,l=n+v(a,c++),f+=h(a,t,r,l,o);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return f}function d(e,t,r){if(e==null)return e;var n=[],o=0;return h(e,n,"","",function(a){return t.call(r,a,o++)}),n}function fe(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var i={current:null},S={transition:null},ce={ReactCurrentDispatcher:i,ReactCurrentBatchConfig:S,ReactCurrentOwner:j};function F(){throw Error("act(...) is not supported in production builds of React.")}u.Children={map:d,forEach:function(e,t,r){d(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return d(e,function(){t++}),t},toArray:function(e){return d(e,function(t){return t})||[]},only:function(e){if(!T(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};u.Component=y;u.Fragment=J;u.Profiler=X;u.PureComponent=C;u.StrictMode=Q;u.Suspense=re;u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ce;u.act=F;u.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=$({},e.props),o=e.key,a=e.ref,f=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,f=j.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in t)A.call(t,l)&&!M.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&c!==void 0?c[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){c=Array(l);for(var _=0;_<l;_++)c[_]=arguments[_+2];n.children=c}return{$$typeof:m,type:e.type,key:o,ref:a,props:n,_owner:f}};u.createContext=function(e){return e={$$typeof:ee,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Z,_context:e},e.Consumer=e};u.createElement=V;u.createFactory=function(e){var t=V.bind(null,e);return t.type=e,t};u.createRef=function(){return{current:null}};u.forwardRef=function(e){return{$$typeof:te,render:e}};u.isValidElement=T;u.lazy=function(e){return{$$typeof:oe,_payload:{_status:-1,_result:e},_init:fe}};u.memo=function(e,t){return{$$typeof:ne,type:e,compare:t===void 0?null:t}};u.startTransition=function(e){var t=S.transition;S.transition={};try{e()}finally{S.transition=t}};u.unstable_act=F;u.useCallback=function(e,t){return i.current.useCallback(e,t)};u.useContext=function(e){return i.current.useContext(e)};u.useDebugValue=function(){};u.useDeferredValue=function(e){return i.current.useDeferredValue(e)};u.useEffect=function(e,t){return i.current.useEffect(e,t)};u.useId=function(){return i.current.useId()};u.useImperativeHandle=function(e,t,r){return i.current.useImperativeHandle(e,t,r)};u.useInsertionEffect=function(e,t){return i.current.useInsertionEffect(e,t)};u.useLayoutEffect=function(e,t){return i.current.useLayoutEffect(e,t)};u.useMemo=function(e,t){return i.current.useMemo(e,t)};u.useReducer=function(e,t,r){return i.current.useReducer(e,t,r)};u.useRef=function(e){return i.current.useRef(e)};u.useState=function(e){return i.current.useState(e)};u.useSyncExternalStore=function(e,t,r){return i.current.useSyncExternalStore(e,t,r)};u.useTransition=function(){return i.current.useTransition()};u.version="18.3.1";x.exports=u;var U=x.exports;const le=G(U),O=B({__proto__:null,default:le},[U]),s=O,ie=s.Children,_e=s.Component,pe=s.Fragment,ye=s.Profiler,me=s.PureComponent,de=s.StrictMode,he=s.Suspense,Se=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,be=s.act,Ee=s.cloneElement,ve=s.createContext,Oe=s.createElement,Re=s.createFactory,ge=s.createRef,Ce=s.forwardRef,we=s.isValidElement,je=s.lazy,Te=s.memo,ke=s.startTransition,Pe=s.unstable_act,Ie=s.useCallback,xe=s.useContext,De=s.useDebugValue,$e=s.useDeferredValue,Le=s.useEffect,Ne=s.useId,Ae=s.useImperativeHandle,Me=s.useInsertionEffect,Ve=s.useLayoutEffect,Fe=s.useMemo,Ue=s.useReducer,ze=s.useRef,We=s.useState,He=s.useSyncExternalStore,Ke=s.useTransition,qe=s.version,Be=Reflect.get(O,"default")??O,Ge=Object.freeze(Object.defineProperty({__proto__:null,Children:ie,Component:_e,Fragment:pe,Profiler:ye,PureComponent:me,StrictMode:de,Suspense:he,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Se,act:be,cloneElement:Ee,createContext:ve,createElement:Oe,createFactory:Re,createRef:ge,default:Be,forwardRef:Ce,isValidElement:we,lazy:je,memo:Te,startTransition:ke,unstable_act:Pe,useCallback:Ie,useContext:xe,useDebugValue:De,useDeferredValue:$e,useEffect:Le,useId:Ne,useImperativeHandle:Ae,useInsertionEffect:Me,useLayoutEffect:Ve,useMemo:Fe,useReducer:Ue,useRef:ze,useState:We,useSyncExternalStore:He,useTransition:Ke,version:qe},Symbol.toStringTag,{value:"Module"})),E="__mf_module_cache__";globalThis[E]||={share:{},remote:{}};globalThis[E].share||={};globalThis[E].remote||={};const p=globalThis[E];for(const e of Object.keys(p.share))if(e.startsWith("default:")){const t=e.slice(8);p.share[t]===void 0&&(p.share[t]=p.share[e])}else if(!e.includes(":")){const t="default:"+e;p.share[t]===void 0&&(p.share[t]=p.share[e])}const Ye=(e,t)=>{const r=e[t.canonical];if(r!==void 0)return r;const n=t.aliases||[];for(const o of n){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const a=e[o];if(a!==void 0)return e[t.canonical]=a,a}},R=Symbol.for("module-federation.shared-cache-listeners"),Je=e=>{let t=e[R];return t===void 0&&(t=Object.create(null),Object.defineProperty(e,R,{value:t,enumerable:!1,configurable:!1,writable:!1})),t},Qe=(e,t,r)=>{const n=Je(e);(n[t.canonical]||=new Set).add(r)},g=Symbol.for("module-federation.shared-cache-owners"),Xe=e=>{let t=e[g];return t===void 0&&(t=Object.create(null),Object.defineProperty(e,g,{value:t,enumerable:!1,configurable:!1,writable:!1})),t},Ze=(e,t,r,n)=>{var f;e[t.canonical]=r;const o=t.aliases||[];for(const c of o)Object.defineProperty(e,c,{value:r,enumerable:!0,configurable:!0,writable:!0});e[g],Xe(e)[t.canonical]=n;const a=(f=e[R])==null?void 0:f[t.canonical];if(a)for(const c of a)c(r);return r},et=e=>{const t=(()=>{let r=e;for(let n=0;n<5;n++){const o=r==null?void 0:r.default;if(!o||typeof o!="object")break;const a=Object.keys(r).filter(f=>f!=="default").map(f=>r[f]);if(a.length>0&&a.some(f=>f!==void 0))break;r=o}return r})();return t&&Object.getPrototypeOf(t)===null?Object.assign({},t):t};let b=Ye(p.share,{canonical:"default:react",aliases:["react"]});b===void 0&&(b=et(Ge),Ze(p.share,{canonical:"default:react",aliases:["react"]},b,"ShoppingRouteMarketsSet"));let z,W,H,K;const q=e=>{const t=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;if(t&&"A"in t){let r=t.A;Object.defineProperty(t,"A",{configurable:!0,enumerable:!0,get:()=>r,set:n=>{n&&typeof n.getOwner!="function"&&(n.getOwner=()=>null),r=n}}),t.A=r}e.Children,W=e.Component,H=e.Fragment,e.Profiler,e.PureComponent,e.StrictMode,e.Suspense,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,e.act,e.cloneElement,e.createContext,K=e.createElement,e.createFactory,e.createRef,e.forwardRef,e.isValidElement,e.lazy,e.memo,e.startTransition,e.unstable_act,e.useCallback,e.useContext,e.useDebugValue,e.useDeferredValue,e.useEffect,e.useId,e.useImperativeHandle,e.useInsertionEffect,e.useLayoutEffect,e.useMemo,e.useReducer,e.useRef,e.useState,e.useSyncExternalStore,e.useTransition,e.version,z=(()=>{let r=e;for(let n=0;n<5;n++){const o=r==null?void 0:r.default;if(!o||typeof o!="object")return o??r;r=o}return r})()};Qe(p.share,{canonical:"default:react"},q);q(b);const tt=Object.freeze(Object.defineProperty({__proto__:null,get Component(){return W},get Fragment(){return H},get createElement(){return K},get default(){return z}},Symbol.toStringTag,{value:"Module"}));export{z as _,tt as a,Ge as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_}from"./vite-preload-helper-Dp1pzeXC.js";const d="__mf_module_cache__";globalThis[d]||={share:{},remote:{}};globalThis[d].share||={};globalThis[d].remote||={};const s=globalThis[d];for(const i of Object.keys(s.share))if(i.startsWith("default:")){const f=i.slice(8);s.share[f]===void 0&&(s.share[f]=s.share[i])}else if(!i.includes(":")){const f="default:"+i;s.share[f]===void 0&&(s.share[f]=s.share[i])}let h;async function C(){return h||(h=(async()=>{const i=(t,e,a,r)=>{const n=(Array.isArray(r)?r[0]:r)||"default",c=e||!a?t:t+"@"+a,l={canonical:n+":"+c};return n==="default"&&(l.aliases=[c]),l},f=(t,e)=>{const a=t[e.canonical];if(a!==void 0)return a;const r=e.aliases||[];for(const o of r){if(!Object.prototype.hasOwnProperty.call(t,o))continue;const n=t[o];if(n!==void 0)return t[e.canonical]=n,n}},S=Symbol.for("module-federation.shared-cache-listeners"),u=Symbol.for("module-federation.shared-cache-owners"),y=t=>{let e=t[u];return e===void 0&&(e=Object.create(null),Object.defineProperty(t,u,{value:e,enumerable:!1,configurable:!1,writable:!1})),e},b=(t,e)=>{var a;return(a=t[u])==null?void 0:a[e.canonical]},p=(t,e,a,r)=>{var c;t[e.canonical]=a;const o=e.aliases||[];for(const l of o)Object.defineProperty(t,l,{value:a,enumerable:!0,configurable:!0,writable:!0});t[u],y(t)[e.canonical]=r;const n=(c=t[S])==null?void 0:c[e.canonical];if(n)for(const l of n)l(a);return a},m=await(await _(()=>import("../marketsEditor.js"),[],import.meta.url)).init(),{usedShared:w}=await _(async()=>{const{usedShared:t}=await import("./_virtual_mf-localSharedImportMap___mfe_internal__ShoppingRouteMarketsSet__mf_owner__1-CtUYOyEr.js");return{usedShared:t}},[],import.meta.url),g=t=>{let e=t;for(let a=0;a<5;a++){const r=e==null?void 0:e.default;if(!r||typeof r!="object"||Object.keys(r).length===0)break;const o=Object.keys(e).filter(n=>n!=="default").map(n=>e[n]);if(o.length>0&&o.some(n=>n!==void 0))break;e=r}return e},O=[["react"]];for(const t of O)await Promise.all(t.map(async e=>{var o;const a=w[e];if(!a||a.materialize===!1||a.treeShaking)return;const r=i(e,(o=a.shareConfig)==null?void 0:o.singleton,a.version,a.scope);f(s.share,r)!==void 0&&b(s.share,r)==="ShoppingRouteMarketsSet"||await m.loadShare(e,{customShareInfo:{shareConfig:a.shareConfig}}).then(async n=>{const c=typeof n=="function"?n():n;let l=g(await Promise.resolve(c));p(s.share,r,l,"ShoppingRouteMarketsSet")})}));return m})()),h}h=C();export{h as hostInitPromise,C as initHost};
|