@elliemae/pui-app-bridge 2.29.2 → 2.31.0
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/dist/cjs/appBridge.js +8 -1
- package/dist/cjs/eventManager.js +18 -0
- package/dist/cjs/package.json +1 -4
- package/dist/cjs/tests/scriptingObjects/appraisalServiceModule.js +4 -0
- package/dist/esm/appBridge.js +8 -1
- package/dist/esm/eventManager.js +18 -0
- package/dist/esm/package.json +1 -4
- package/dist/esm/tests/scriptingObjects/appraisalServiceModule.js +4 -0
- package/dist/public/e2e-host.html +1 -1
- package/dist/public/e2e-index.html +1 -1
- package/dist/public/frame.html +1 -1
- package/dist/public/index.html +1 -1
- package/dist/public/js/emuiAppBridge.6e7deac89cbaf79f390b.js +17 -0
- package/dist/public/js/emuiAppBridge.6e7deac89cbaf79f390b.js.br +0 -0
- package/dist/public/js/emuiAppBridge.6e7deac89cbaf79f390b.js.gz +0 -0
- package/dist/public/js/emuiAppBridge.6e7deac89cbaf79f390b.js.map +1 -0
- package/dist/types/lib/appBridge.d.ts +4 -1
- package/dist/types/lib/eventManager.d.ts +6 -0
- package/dist/types/lib/tests/scriptingObjects/appraisalServiceModule.d.ts +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/dist/umd/index.js +7 -7
- package/dist/umd/index.js.br +0 -0
- package/dist/umd/index.js.gz +0 -0
- package/dist/umd/index.js.map +1 -1
- package/package.json +11 -11
- package/dist/public/js/emuiAppBridge.d8a9395e996486ac9991.js +0 -17
- package/dist/public/js/emuiAppBridge.d8a9395e996486ac9991.js.br +0 -0
- package/dist/public/js/emuiAppBridge.d8a9395e996486ac9991.js.gz +0 -0
- package/dist/public/js/emuiAppBridge.d8a9395e996486ac9991.js.map +0 -1
package/dist/cjs/appBridge.js
CHANGED
|
@@ -644,7 +644,10 @@ class CAppBridge {
|
|
|
644
644
|
await Promise.all([...this.#activeApps.keys()].map(this.closeApp));
|
|
645
645
|
};
|
|
646
646
|
/**
|
|
647
|
-
*
|
|
647
|
+
* Closes a guest micro frontend application.
|
|
648
|
+
*
|
|
649
|
+
* Tears down the guest session, removes the iframe, and clears guest-scoped
|
|
650
|
+
* scripting objects registered for {@link instanceId}.
|
|
648
651
|
* @param instanceId unique instance id of the application
|
|
649
652
|
*/
|
|
650
653
|
// eslint-disable-next-line max-statements
|
|
@@ -662,6 +665,8 @@ class CAppBridge {
|
|
|
662
665
|
const appConfig = this.#microFEConfig.getConfigById(id);
|
|
663
666
|
if (!appConfig) {
|
|
664
667
|
this.#logger.warn(`Configuration for application ${id} is not found`);
|
|
668
|
+
this.removeAllScriptingObjects(instanceId);
|
|
669
|
+
this.#eventManager.unsubscribeByGuestId(instanceId);
|
|
665
670
|
this.#activeApps.delete(instanceId);
|
|
666
671
|
this.#guestMetadata.delete(instanceId);
|
|
667
672
|
this.#unbindModuleUnload(instanceId, id);
|
|
@@ -685,6 +690,8 @@ class CAppBridge {
|
|
|
685
690
|
if (frameEle) {
|
|
686
691
|
frameEle.src = "about:blank";
|
|
687
692
|
}
|
|
693
|
+
this.removeAllScriptingObjects(instanceId);
|
|
694
|
+
this.#eventManager.unsubscribeByGuestId(instanceId);
|
|
688
695
|
this.#activeApps.delete(instanceId);
|
|
689
696
|
this.#guestMetadata.delete(instanceId);
|
|
690
697
|
this.#unbindModuleUnload(instanceId, id);
|
package/dist/cjs/eventManager.js
CHANGED
|
@@ -245,4 +245,22 @@ class EventManager {
|
|
|
245
245
|
unsubscribeAll = () => {
|
|
246
246
|
this.#listeners.clear();
|
|
247
247
|
};
|
|
248
|
+
/**
|
|
249
|
+
* Removes every listener registered for a guest iframe host instance.
|
|
250
|
+
* Global listeners (no guestId) are preserved.
|
|
251
|
+
* @param guestId openApp instance id
|
|
252
|
+
*/
|
|
253
|
+
unsubscribeByGuestId = (guestId) => {
|
|
254
|
+
if (!guestId) return;
|
|
255
|
+
this.#listeners.forEach((listeners, eventId) => {
|
|
256
|
+
const remaining = listeners.filter(
|
|
257
|
+
(listener) => listener.guestId !== guestId
|
|
258
|
+
);
|
|
259
|
+
if (remaining.length === 0) {
|
|
260
|
+
this.#listeners.delete(eventId);
|
|
261
|
+
} else if (remaining.length !== listeners.length) {
|
|
262
|
+
this.#listeners.set(eventId, remaining);
|
|
263
|
+
}
|
|
264
|
+
});
|
|
265
|
+
};
|
|
248
266
|
}
|
package/dist/cjs/package.json
CHANGED
|
@@ -34,6 +34,10 @@ class AppraisalService extends import_microfe_common.ScriptingObject {
|
|
|
34
34
|
name: "Unloading",
|
|
35
35
|
objectId: import_pui_scripting_object.ScriptingObjectNames.Module
|
|
36
36
|
});
|
|
37
|
+
Unmount = new import_microfe_common.Event({
|
|
38
|
+
name: "Unmount",
|
|
39
|
+
objectId: import_pui_scripting_object.ScriptingObjectNames.Module
|
|
40
|
+
});
|
|
37
41
|
onPreCommit = new import_microfe_common.Event({
|
|
38
42
|
name: "onPreCommit",
|
|
39
43
|
objectId: import_pui_scripting_object.ScriptingObjectNames.Module
|
package/dist/esm/appBridge.js
CHANGED
|
@@ -619,7 +619,10 @@ class CAppBridge {
|
|
|
619
619
|
await Promise.all([...this.#activeApps.keys()].map(this.closeApp));
|
|
620
620
|
};
|
|
621
621
|
/**
|
|
622
|
-
*
|
|
622
|
+
* Closes a guest micro frontend application.
|
|
623
|
+
*
|
|
624
|
+
* Tears down the guest session, removes the iframe, and clears guest-scoped
|
|
625
|
+
* scripting objects registered for {@link instanceId}.
|
|
623
626
|
* @param instanceId unique instance id of the application
|
|
624
627
|
*/
|
|
625
628
|
// eslint-disable-next-line max-statements
|
|
@@ -637,6 +640,8 @@ class CAppBridge {
|
|
|
637
640
|
const appConfig = this.#microFEConfig.getConfigById(id);
|
|
638
641
|
if (!appConfig) {
|
|
639
642
|
this.#logger.warn(`Configuration for application ${id} is not found`);
|
|
643
|
+
this.removeAllScriptingObjects(instanceId);
|
|
644
|
+
this.#eventManager.unsubscribeByGuestId(instanceId);
|
|
640
645
|
this.#activeApps.delete(instanceId);
|
|
641
646
|
this.#guestMetadata.delete(instanceId);
|
|
642
647
|
this.#unbindModuleUnload(instanceId, id);
|
|
@@ -660,6 +665,8 @@ class CAppBridge {
|
|
|
660
665
|
if (frameEle) {
|
|
661
666
|
frameEle.src = "about:blank";
|
|
662
667
|
}
|
|
668
|
+
this.removeAllScriptingObjects(instanceId);
|
|
669
|
+
this.#eventManager.unsubscribeByGuestId(instanceId);
|
|
663
670
|
this.#activeApps.delete(instanceId);
|
|
664
671
|
this.#guestMetadata.delete(instanceId);
|
|
665
672
|
this.#unbindModuleUnload(instanceId, id);
|
package/dist/esm/eventManager.js
CHANGED
|
@@ -222,6 +222,24 @@ class EventManager {
|
|
|
222
222
|
unsubscribeAll = () => {
|
|
223
223
|
this.#listeners.clear();
|
|
224
224
|
};
|
|
225
|
+
/**
|
|
226
|
+
* Removes every listener registered for a guest iframe host instance.
|
|
227
|
+
* Global listeners (no guestId) are preserved.
|
|
228
|
+
* @param guestId openApp instance id
|
|
229
|
+
*/
|
|
230
|
+
unsubscribeByGuestId = (guestId) => {
|
|
231
|
+
if (!guestId) return;
|
|
232
|
+
this.#listeners.forEach((listeners, eventId) => {
|
|
233
|
+
const remaining = listeners.filter(
|
|
234
|
+
(listener) => listener.guestId !== guestId
|
|
235
|
+
);
|
|
236
|
+
if (remaining.length === 0) {
|
|
237
|
+
this.#listeners.delete(eventId);
|
|
238
|
+
} else if (remaining.length !== listeners.length) {
|
|
239
|
+
this.#listeners.set(eventId, remaining);
|
|
240
|
+
}
|
|
241
|
+
});
|
|
242
|
+
};
|
|
225
243
|
}
|
|
226
244
|
export {
|
|
227
245
|
EventManager
|
package/dist/esm/package.json
CHANGED
|
@@ -13,6 +13,10 @@ class AppraisalService extends ScriptingObject {
|
|
|
13
13
|
name: "Unloading",
|
|
14
14
|
objectId: ScriptingObjectNames.Module
|
|
15
15
|
});
|
|
16
|
+
Unmount = new Event({
|
|
17
|
+
name: "Unmount",
|
|
18
|
+
objectId: ScriptingObjectNames.Module
|
|
19
|
+
});
|
|
16
20
|
onPreCommit = new Event({
|
|
17
21
|
name: "onPreCommit",
|
|
18
22
|
objectId: ScriptingObjectNames.Module
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>AppBridge E2E — Comprehensive Host Test</title><script src="https://cdn.tailwindcss.com?plugins=forms"></script><script src="https://cdn.mortgagetech.q1.ice.com/pui-diagnostics@3"></script><script defer="defer" src="js/emuiAppBridge.
|
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>AppBridge E2E — Comprehensive Host Test</title><script src="https://cdn.tailwindcss.com?plugins=forms"></script><script src="https://cdn.mortgagetech.q1.ice.com/pui-diagnostics@3"></script><script defer="defer" src="js/emuiAppBridge.6e7deac89cbaf79f390b.js"></script></head><body class="bg-gray-50"><header class="bg-indigo-600 text-white px-4 py-3 flex items-center justify-between"><h1 class="text-lg font-semibold">AppBridge E2E — Comprehensive Host Test</h1><a href="./e2e-index.html" class="text-indigo-200 hover:text-white text-sm">← Back to dashboard</a></header><main class="mx-auto max-w-7xl px-4 py-4"><div class="bg-blue-50 border border-blue-200 rounded-md p-3 mb-4"><h2 class="text-sm font-bold text-blue-900 mb-1">How to Use This Page</h2><ol class="text-xs text-blue-800 list-decimal ml-4 space-y-1"><li>Wait for <strong>"E2E Host ready"</strong> in the Event Log.</li><li>Use buttons in each section to test AppBridge features.</li><li>Check Event Log and result panels for expected output.</li><li>Work through the Verification Checklist at the bottom.</li></ol></div><div class="grid grid-cols-3 gap-4"><div class="col-span-2 space-y-4"><div class="bg-white rounded-lg shadow p-4"><h2 class="text-sm font-semibold text-gray-700 mb-2">App Loading</h2><div class="flex flex-wrap gap-2"><button data-testid="btn-open-app" id="btnOpenApp" class="rounded bg-indigo-600 px-3 py-1 text-xs text-white hover:bg-indigo-700">Open App (pricingservice)</button> <button data-testid="btn-open-credit" id="btnOpenCredit" class="rounded bg-indigo-600 px-3 py-1 text-xs text-white hover:bg-indigo-700">Open App (creditservice)</button> <button data-testid="btn-open-validation" id="btnOpenValidation" class="rounded bg-indigo-600 px-3 py-1 text-xs text-white hover:bg-indigo-700">Open App (loanvalidation)</button> <button data-testid="btn-open-with-metadata" id="btnOpenWithMetadata" class="rounded bg-purple-600 px-3 py-1 text-xs text-white hover:bg-purple-700">Open App with Metadata</button> <button data-testid="btn-open-e2e-guest" id="btnOpenE2EGuest" class="rounded bg-teal-600 px-3 py-1 text-xs text-white hover:bg-teal-700">Open E2E Test Guest</button> <button data-testid="btn-open-nested-chain" id="btnOpenNestedChain" class="rounded bg-orange-600 px-3 py-1 text-xs text-white hover:bg-orange-700">Open Nested Chain (A→B→C)</button></div><p class="text-xs text-gray-400 mt-1"><strong>Expected:</strong> App loads into the container below. Log shows "openApp" succeeded. The E2E Test Guest provides interactive buttons to test guest→host communication. The Nested Chain (A→B→C) opens an intermediate that clones Loan and re-exposes it to a grandchild — use C's buttons to verify callChain propagation on Host A.</p></div><div class="bg-white rounded-lg shadow p-4"><h2 class="text-sm font-semibold text-gray-700 mb-2">Scripting Object Management</h2><div class="flex flex-wrap gap-2"><button data-testid="btn-add-so" id="btnAddSO" class="rounded bg-green-600 px-3 py-1 text-xs text-white hover:bg-green-700">Add "Inventory" Object</button> <button data-testid="btn-remove-so" id="btnRemoveSO" class="rounded bg-red-600 px-3 py-1 text-xs text-white hover:bg-red-700">Remove "Inventory" Object</button> <button data-testid="btn-remove-all-so" id="btnRemoveAllSO" class="rounded bg-red-600 px-3 py-1 text-xs text-white hover:bg-red-700">Remove All Objects</button></div><p class="text-xs text-gray-400 mt-1"><strong>Expected:</strong> Add succeeds. Remove succeeds. Guest apps can/cannot call removed objects.</p></div><div class="bg-white rounded-lg shadow p-4"><h2 class="text-sm font-semibold text-gray-700 mb-2">Event Dispatching</h2><div class="flex flex-wrap gap-2"><button data-testid="btn-dispatch-presave" id="btnDispatchPreSave" class="rounded bg-yellow-600 px-3 py-1 text-xs text-white hover:bg-yellow-700">Dispatch onPreSave (all apps)</button> <button data-testid="btn-dispatch-amount" id="btnDispatchAmount" class="rounded bg-yellow-600 px-3 py-1 text-xs text-white hover:bg-yellow-700">Dispatch onLoanAmountChanged</button> <button data-testid="btn-dispatch-term" id="btnDispatchTerm" class="rounded bg-yellow-600 px-3 py-1 text-xs text-white hover:bg-yellow-700">Dispatch onLoanTermChanged</button></div><div data-testid="dispatch-result" id="dispatchResult" class="mt-2 text-xs bg-gray-100 rounded p-2 min-h-[40px]">Dispatch results appear here...</div></div><div class="bg-white rounded-lg shadow p-4"><h2 class="text-sm font-semibold text-gray-700 mb-2">callContext (from last scripting object invocation)</h2><div class="grid grid-cols-2 gap-2"><div><h3 class="text-xs font-medium text-gray-500 mb-1">callContext.guest</h3><pre data-testid="call-context-guest" id="callContextGuest" class="text-xs bg-gray-100 rounded p-2 min-h-[30px] whitespace-pre-wrap">
|
|
2
2
|
Waiting for invocation...</pre></div><div><h3 class="text-xs font-medium text-gray-500 mb-1">callContext.callChain</h3><pre data-testid="call-context-chain" id="callContextChain" class="text-xs bg-gray-100 rounded p-2 min-h-[30px] whitespace-pre-wrap">
|
|
3
3
|
Waiting for invocation...</pre></div></div></div><div class="bg-white rounded-lg shadow p-4"><h2 class="text-sm font-semibold text-gray-700 mb-2">App Lifecycle</h2><div class="flex flex-wrap gap-2"><button data-testid="btn-close-app" id="btnCloseApp" class="rounded bg-red-600 px-3 py-1 text-xs text-white hover:bg-red-700">Close First App</button> <button data-testid="btn-close-all" id="btnCloseAll" class="rounded bg-red-800 px-3 py-1 text-xs text-white hover:bg-red-900">Close All Apps</button> <button data-testid="btn-list-apps" id="btnListApps" class="rounded bg-gray-600 px-3 py-1 text-xs text-white hover:bg-gray-700">List Apps</button></div><pre data-testid="app-list" id="appList" class="mt-2 text-xs bg-gray-100 rounded p-2 min-h-[30px] whitespace-pre-wrap">
|
|
4
4
|
(no apps)</pre></div></div><div class="space-y-4"><div class="bg-white rounded-lg shadow p-3"><h2 class="text-sm font-semibold text-gray-700 mb-2">Guest App Container</h2><div data-testid="app-container" id="appContainer" class="border-2 border-dashed border-indigo-300 rounded-lg" style="height:700px;overflow:auto"></div></div><div class="bg-white rounded-lg shadow p-3"><div class="flex justify-between items-center mb-2"><h2 class="text-sm font-semibold text-gray-700">Event Log</h2><button data-testid="btn-clear-log" id="btnClearLog" class="rounded bg-gray-200 px-2 py-0.5 text-xs text-gray-600 hover:bg-gray-300">Clear</button></div><div data-testid="event-log" id="eventLog" class="text-xs bg-gray-100 rounded p-2 min-h-[200px] max-h-[400px] overflow-y-auto"></div></div></div></div><div class="bg-gray-100 border border-gray-300 rounded-md p-3 mt-4"><h2 class="text-sm font-bold text-gray-800 mb-2">Verification Checklist</h2><div class="grid grid-cols-2 gap-2 text-xs"><label class="flex items-start gap-2"><input type="checkbox" class="mt-0.5"/> <span><strong>TC-APP-01:</strong> openApp loads pricingservice into container, log shows mounted</span></label> <label class="flex items-start gap-2"><input type="checkbox" class="mt-0.5"/> <span><strong>TC-APP-02:</strong> openApp loads creditservice into container</span></label> <label class="flex items-start gap-2"><input type="checkbox" class="mt-0.5"/> <span><strong>TC-APP-03:</strong> openApp loads loanvalidation into container</span></label> <label class="flex items-start gap-2"><input type="checkbox" class="mt-0.5"/> <span><strong>TC-APP-04:</strong> openApp with metadata — metadata stored for callChain</span></label> <label class="flex items-start gap-2"><input type="checkbox" class="mt-0.5"/> <span><strong>TC-SO-01:</strong> Loan object registered on init (guest apps can call getLoanDetails)</span></label> <label class="flex items-start gap-2"><input type="checkbox" class="mt-0.5"/> <span><strong>TC-SO-02:</strong> Add Inventory object succeeds</span></label> <label class="flex items-start gap-2"><input type="checkbox" class="mt-0.5"/> <span><strong>TC-SO-03:</strong> Remove Inventory object succeeds</span></label> <label class="flex items-start gap-2"><input type="checkbox" class="mt-0.5"/> <span><strong>TC-SO-04:</strong> removeAllScriptingObjects clears everything</span></label> <label class="flex items-start gap-2"><input type="checkbox" class="mt-0.5"/> <span><strong>TC-SO-05:</strong> callContext.guest populated when guest invokes scripting object method</span></label> <label class="flex items-start gap-2"><input type="checkbox" class="mt-0.5"/> <span><strong>TC-SO-06:</strong> Loan.getLoanDetails returns expected loan data</span></label> <label class="flex items-start gap-2"><input type="checkbox" class="mt-0.5"/> <span><strong>TC-EVT-01:</strong> Dispatch onPreSave reaches all subscribed apps, results returned</span></label> <label class="flex items-start gap-2"><input type="checkbox" class="mt-0.5"/> <span><strong>TC-EVT-02:</strong> Dispatch onLoanAmountChanged reaches subscribed apps</span></label> <label class="flex items-start gap-2"><input type="checkbox" class="mt-0.5"/> <span><strong>TC-EVT-03:</strong> Dispatch onLoanTermChanged reaches subscribed apps</span></label> <label class="flex items-start gap-2"><input type="checkbox" class="mt-0.5"/> <span><strong>TC-LIFE-01:</strong> closeApp removes first app from list</span></label> <label class="flex items-start gap-2"><input type="checkbox" class="mt-0.5"/> <span><strong>TC-LIFE-02:</strong> List Apps shows all active apps with instanceIds</span></label> <label class="flex items-start gap-2"><input type="checkbox" class="mt-0.5"/> <span><strong>TC-LIFE-03:</strong> closeAllApps removes all apps</span></label> <label class="flex items-start gap-2"><input type="checkbox" class="mt-0.5"/> <span><strong>TC-LIFE-04:</strong> No console errors during any operation</span></label> <label class="flex items-start gap-2"><input type="checkbox" class="mt-0.5"/> <span><strong>TC-META-01:</strong> openApp with metadata — callContext.callChain contains metadata when guest invokes cloned object</span></label> <label class="flex items-start gap-2"><input type="checkbox" class="mt-0.5"/> <span><strong>TC-GUEST-01:</strong> Guest getObject("Loan") returns proxy with expected methods (getLoanDetails, setCreditScore)</span></label> <label class="flex items-start gap-2"><input type="checkbox" class="mt-0.5"/> <span><strong>TC-GUEST-02:</strong> Guest Loan.getLoanDetails() returns loan data, host callContext.guest shows e2etestguest</span></label> <label class="flex items-start gap-2"><input type="checkbox" class="mt-0.5"/> <span><strong>TC-GUEST-03:</strong> Guest Loan.setCreditScore(800) returns {updated: true}, host callContext updates</span></label> <label class="flex items-start gap-2"><input type="checkbox" class="mt-0.5"/> <span><strong>TC-GUEST-04:</strong> Guest getObject("Inventory") returns proxy after host adds it; null before</span></label> <label class="flex items-start gap-2"><input type="checkbox" class="mt-0.5"/> <span><strong>TC-GUEST-05:</strong> Guest Inventory.getItems() returns item array</span></label> <label class="flex items-start gap-2"><input type="checkbox" class="mt-0.5"/> <span><strong>TC-GUEST-06:</strong> Guest getObject("NonExistent") returns null</span></label> <label class="flex items-start gap-2"><input type="checkbox" class="mt-0.5"/> <span><strong>TC-GUEST-07:</strong> Guest subscribes to onPreSave — receives event when host dispatches</span></label> <label class="flex items-start gap-2"><input type="checkbox" class="mt-0.5"/> <span><strong>TC-GUEST-08:</strong> Guest subscribes to onLoanAmountChanged — receives event when host dispatches</span></label> <label class="flex items-start gap-2"><input type="checkbox" class="mt-0.5"/> <span><strong>TC-GUEST-09:</strong> Guest unsubscribe all — no more events received after unsubscribe</span></label> <label class="flex items-start gap-2"><input type="checkbox" class="mt-0.5"/> <span><strong>TC-CHAIN-01:</strong> Open Nested Chain — Intermediate B loads, shows "CAppBridge B initialized"</span></label> <label class="flex items-start gap-2"><input type="checkbox" class="mt-0.5"/> <span><strong>TC-CHAIN-02:</strong> Grandchild C (E2E Test Guest) appears inside Intermediate B</span></label> <label class="flex items-start gap-2"><input type="checkbox" class="mt-0.5"/> <span><strong>TC-CHAIN-03:</strong> In C: getObject("Loan") → Loan.getLoanDetails() → Host A shows callContext.guest = e2eintermediateguest, callChain = [{id: "e2etestguest", metadata: {role: "grandchild", ...}}]</span></label> <label class="flex items-start gap-2"><input type="checkbox" class="mt-0.5"/> <span><strong>TC-CHAIN-04:</strong> In C: Loan.setCreditScore(800) → Host A callChain includes e2etestguest with metadata from B</span></label></div></div></main><script src="./e2e-host.js" type="module"></script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>AppBridge E2E Test Suite</title><script src="https://cdn.tailwindcss.com?plugins=forms"></script><script defer="defer" src="js/emuiAppBridge.
|
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>AppBridge E2E Test Suite</title><script src="https://cdn.tailwindcss.com?plugins=forms"></script><script defer="defer" src="js/emuiAppBridge.6e7deac89cbaf79f390b.js"></script></head><body class="bg-gray-50"><header class="bg-gray-900 text-white px-6 py-4"><h1 class="text-xl font-bold">AppBridge End-to-End Test Suite</h1><p class="text-sm text-gray-400 mt-1">Comprehensive blackbox tests for AppBridge (in-process micro-frontend framework). Each page includes test steps, expected values, and a verification checklist.</p></header><main class="mx-auto max-w-5xl px-6 py-6"><section class="mb-6 bg-yellow-50 border border-yellow-200 rounded-lg p-4"><h2 class="text-sm font-semibold text-yellow-800 mb-2">Setup Instructions</h2><ol class="text-xs text-yellow-700 list-decimal ml-4 space-y-1"><li>Install dependencies: <code class="bg-yellow-100 px-1 rounded">pnpm install</code></li><li>Start AppBridge dev server: <code class="bg-yellow-100 px-1 rounded">cd libs/app-bridge && pnpm start</code> (default port 3000)</li><li>Open <code class="bg-yellow-100 px-1 rounded">http://localhost:3000/e2e-index.html</code> in the browser</li><li>Each test page has <code class="bg-yellow-100 px-1 rounded">data-testid</code> attributes for Playwright/Cypress selectors</li></ol></section><section class="mb-6"><h2 class="text-lg font-semibold text-gray-800 border-b pb-1 mb-3">1. Core AppBridge Host Tests</h2><div class="grid grid-cols-1 md:grid-cols-2 gap-3"><a href="./e2e-host.html" data-testid="link-e2e-host" class="block bg-white rounded-lg shadow p-4 hover:shadow-md transition"><h3 class="font-medium text-indigo-700">Comprehensive E2E Host</h3><p class="text-xs text-gray-500 mt-1">All host scenarios: openApp, closeApp, scripting objects, events, lifecycle, metadata, callContext.</p><p class="text-xs text-gray-400 mt-2"><strong>What to verify:</strong> Apps open and mount into containers. Scripting objects can be added/removed/invoked with correct callContext. Events reach subscribed apps. closeApp/closeAllApps cleans up properly.</p><div class="mt-2 text-xs text-gray-400"><strong>Test Cases:</strong> TC-APP-01..04 • TC-SO-01..06 • TC-EVT-01..03 • TC-LIFE-01..04 • TC-META-01</div></a><a href="./index.html" data-testid="link-main-demo" class="block bg-white rounded-lg shadow p-4 hover:shadow-md transition"><h3 class="font-medium text-indigo-700">Main Demo App</h3><p class="text-xs text-gray-500 mt-1">Original Loan Application demo with credit, pricing, and loan validation micro-apps.</p><p class="text-xs text-gray-400 mt-2"><strong>What to verify:</strong> Loan form data flows to guest apps. Events (onLoanAmountChanged, etc.) update guest UIs. Credit score updates from guest. Save dispatches onPreSave with feedback.</p></a></div></section></main></body></html>
|
package/dist/public/frame.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="mobile-web-app-capable" content="yes"/><link rel="icon" href="/favicon.ico"/><title>Application</title><style nonce="__CSP_NONCE__">.full-width{width:100%}.full-height{height:100%}</style><script defer="defer" src="js/emuiAppBridge.
|
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="mobile-web-app-capable" content="yes"/><link rel="icon" href="/favicon.ico"/><title>Application</title><style nonce="__CSP_NONCE__">.full-width{width:100%}.full-height{height:100%}</style><script defer="defer" src="js/emuiAppBridge.6e7deac89cbaf79f390b.js"></script></head><body class="full-width full-height"><noscript>If you're seeing this message, that means <strong>JavaScript has been disabled on your browser</strong>, please <strong>enable JS</strong> to make this app work.</noscript><div id="pui-app-container-" class="full-width full-height"></div></body></html>
|
package/dist/public/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>Host</title><script src="https://cdn.tailwindcss.com?plugins=forms"></script><script src="https://cdn.mortgagetech.q1.ice.com/pui-diagnostics@3"></script><script defer="defer" src="js/emuiAppBridge.
|
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>Host</title><script src="https://cdn.tailwindcss.com?plugins=forms"></script><script src="https://cdn.mortgagetech.q1.ice.com/pui-diagnostics@3"></script><script defer="defer" src="js/emuiAppBridge.6e7deac89cbaf79f390b.js"></script></head><body><header class="bg-indigo-300 h-10 flex place-items-center justify-between"><div class="px-2">ICE Mortgage Product</div><nav class="flex gap-3 px-2 text-sm"><a href="./e2e-index.html" class="text-indigo-800 hover:text-indigo-950 font-medium">E2E Test Suite</a> <a href="./e2e-host.html" class="text-indigo-800 hover:text-indigo-950 font-medium">E2E Host</a></nav></header><main class="mx-auto max-w-7xl px-2 sm:px-6 lg:px-8"><div class="min-w-0 flex-1 mt-4"><h1 class="text-2xl font-bold leading-7 text-gray-900 sm:truncate sm:text-3xl sm:tracking-tight">Loan Application</h1></div><div id="successFeedback" class="hidden rounded-md bg-green-50 p-4"><div class="flex"><div class="flex-shrink-0"><svg class="h-5 w-5 text-green-400" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd"/></svg></div><div class="ml-3"><p class="text-sm font-medium text-green-800">Loan Saved Successfully</p></div></div></div><div id="errorFeedback" class="hidden rounded-md bg-red-50 p-4"><div class="flex"><div class="flex-shrink-0"><svg class="h-5 w-5 text-red-400" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM8.28 7.22a.75.75 0 00-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 101.06 1.06L10 11.06l1.72 1.72a.75.75 0 101.06-1.06L11.06 10l1.72-1.72a.75.75 0 00-1.06-1.06L10 8.94 8.28 7.22z" clip-rule="evenodd"/></svg></div><div class="ml-3"><h3 class="text-sm font-medium text-red-800">Credit Score is not meeting the requirement</h3></div></div></div><div class="mt-2 sm:grid sm:grid-cols-2 sm:gap-2"><form class="px-2 py-2 space-y-8 divide-y divide-gray-200 bg-gray-50"><div class="space-y-8 divide-y divide-gray-200 sm:space-y-5"><div class="space-y-6 sm:space-y-5"><div><h3 class="text-lg font-medium leading-6 text-gray-900">Personal Information</h3></div><div class="space-y-6 sm:space-y-5"><div class="sm:grid sm:grid-cols-3 sm:items-start sm:gap-4 sm:border-gray-200"><label for="firstName" class="block text-sm font-medium text-gray-700 sm:mt-px sm:pt-2">First name</label><div class="mt-1 sm:col-span-2 sm:mt-0"><input name="firstName" id="firstName" autocomplete="given-name" class="block w-full max-w-lg rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:max-w-xs sm:text-sm" value="John" placeholder="John"/></div></div><div class="sm:grid sm:grid-cols-3 sm:items-start sm:gap-4 sm:border-gray-200"><label for="lastName" class="block text-sm font-medium text-gray-700 sm:mt-px sm:pt-2">Last name</label><div class="mt-1 sm:col-span-2 sm:mt-0"><input name="lastName" id="lastName" autocomplete="family-name" class="block w-full max-w-lg rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:max-w-xs sm:text-sm" value="Doe" placeholder="Doe"/></div></div><div class="sm:grid sm:grid-cols-3 sm:items-start sm:gap-4 sm:border-gray-200"><label for="ssn" class="block text-sm font-medium text-gray-700 sm:mt-px sm:pt-2">SSN</label><div class="mt-1 sm:col-span-2 sm:mt-0"><input type="number" name="ssn" id="ssn" class="block w-full max-w-lg rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:max-w-xs sm:text-sm" value="123456789" placeholder="123456789"/></div></div></div><div><h3 class="text-lg font-medium leading-6 text-gray-900">Loan Information</h3></div><div class="space-y-6 sm:space-y-5"><div class="sm:grid sm:grid-cols-3 sm:items-start sm:gap-4 sm:border-gray-200"><label for="amount" class="block text-sm font-medium text-gray-700 sm:mt-px sm:pt-2">Amount</label><div class="mt-1 sm:col-span-2 sm:mt-0"><input type="number" name="amount" id="amount" class="block w-full max-w-lg rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:max-w-xs sm:text-sm" value="500000" placeholder="500000"/></div></div><div class="sm:grid sm:grid-cols-3 sm:items-start sm:gap-4 sm:border-gray-200"><label for="Term" class="block text-sm font-medium text-gray-700 sm:mt-px sm:pt-2">Term (years)</label><div class="mt-1 sm:col-span-2 sm:mt-0"><input type="number" name="term" id="term" class="block w-full max-w-lg rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:max-w-xs sm:text-sm" value="30" placeholder="30"/></div></div><div class="sm:grid sm:grid-cols-3 sm:items-start sm:gap-4 sm:border-gray-200"><label for="downPayment" class="block text-sm font-medium text-gray-700 sm:mt-px sm:pt-2">Down Payment</label><div class="mt-1 sm:col-span-2 sm:mt-0"><input type="number" name="downPayment" id="downPayment" class="block w-full max-w-lg rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:max-w-xs sm:text-sm" value="50000" placeholder="50000"/></div></div><div class="sm:grid sm:grid-cols-3 sm:items-start sm:gap-4 sm:border-gray-200"><label for="creditScore" class="block text-sm font-medium text-gray-700 sm:mt-px sm:pt-2">Credit Score</label><div class="mt-1 sm:mt-0"><output id="creditScore" class="block w-full max-w-lg pl-2 pt-2 sm:max-w-xs sm:text-sm">NA</output></div><div class="mt-1 sm:mt-0"><button id="getCreditScore" type="button" class="inline-flex items-center rounded-full border border-transparent bg-indigo-600 p-1 text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6"><path stroke-linecap="round" stroke-linejoin="round" d="M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5M16.5 12L12 16.5m0 0L7.5 12m4.5 4.5V3"/></svg></button></div></div></div></div></div><button id="saveLoan" type="button" class="inline-flex items-center rounded-md border border-transparent bg-indigo-600 px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2">Save</button></form><div id="aside-container" class="flex flex-col gap-4 items-start mt-4 border-2 p-2 rounded-lg border-dashed border-cyan-300 sm:mt-0"></div></div><div id="bottom-container" class="flex flex-col gap-4 items-start mt-4 p-2 sm:mt-0"></div></main><script src="./init.js" type="module"></script></body></html>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
(function(wt,qe){typeof exports=="object"&&typeof module=="object"?module.exports=qe(require("React")):typeof define=="function"&&define.amd?define(["React"],qe):typeof exports=="object"?exports.ice=qe(require("React")):wt.ice=qe(wt.React)})(globalThis,fr=>(()=>{var wt={4674(i,p,t){"use strict";var o=t(7020),c={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},l={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},u={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},d={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},h={};h[o.ForwardRef]=u,h[o.Memo]=d;function m(F){return o.isMemo(F)?d:h[F.$$typeof]||c}var v=Object.defineProperty,w=Object.getOwnPropertyNames,x=Object.getOwnPropertySymbols,T=Object.getOwnPropertyDescriptor,j=Object.getPrototypeOf,D=Object.prototype;function L(F,z,X){if(typeof z!="string"){if(D){var ce=j(z);ce&&ce!==D&&L(F,ce,X)}var R=w(z);x&&(R=R.concat(x(z)));for(var Q=m(F),A=m(z),le=0;le<R.length;++le){var ne=R[le];if(!l[ne]&&!(X&&X[ne])&&!(A&&A[ne])&&!(Q&&Q[ne])){var ue=T(z,ne);try{v(F,ne,ue)}catch{}}}}return F}i.exports=L},8054(i,p,t){var o=t(5592),c=t(907),l=o(c,"DataView");i.exports=l},3219(i,p,t){var o=t(2130),c=t(1924),l=t(4743),u=t(1755),d=t(5203);function h(m){var v=-1,w=m==null?0:m.length;for(this.clear();++v<w;){var x=m[v];this.set(x[0],x[1])}}h.prototype.clear=o,h.prototype.delete=c,h.prototype.get=l,h.prototype.has=u,h.prototype.set=d,i.exports=h},7321(i,p,t){var o=t(3044),c=t(4066),l=t(8461),u=t(4417),d=t(2777);function h(m){var v=-1,w=m==null?0:m.length;for(this.clear();++v<w;){var x=m[v];this.set(x[0],x[1])}}h.prototype.clear=o,h.prototype.delete=c,h.prototype.get=l,h.prototype.has=u,h.prototype.set=d,i.exports=h},2565(i,p,t){var o=t(5592),c=t(907),l=o(c,"Map");i.exports=l},111(i,p,t){var o=t(4614),c=t(9504),l=t(9251),u=t(5791),d=t(1511);function h(m){var v=-1,w=m==null?0:m.length;for(this.clear();++v<w;){var x=m[v];this.set(x[0],x[1])}}h.prototype.clear=o,h.prototype.delete=c,h.prototype.get=l,h.prototype.has=u,h.prototype.set=d,i.exports=h},8246(i,p,t){var o=t(5592),c=t(907),l=o(c,"Promise");i.exports=l},4099(i,p,t){var o=t(5592),c=t(907),l=o(c,"Set");i.exports=l},5963(i,p,t){var o=t(7321),c=t(1306),l=t(3180),u=t(5247),d=t(2835),h=t(9179);function m(v){var w=this.__data__=new o(v);this.size=w.size}m.prototype.clear=c,m.prototype.delete=l,m.prototype.get=u,m.prototype.has=d,m.prototype.set=h,i.exports=m},7759(i,p,t){var o=t(907),c=o.Symbol;i.exports=c},9386(i,p,t){var o=t(907),c=o.Uint8Array;i.exports=c},6221(i,p,t){var o=t(5592),c=t(907),l=o(c,"WeakMap");i.exports=l},6047(i){function p(t,o,c){switch(c.length){case 0:return t.call(o);case 1:return t.call(o,c[0]);case 2:return t.call(o,c[0],c[1]);case 3:return t.call(o,c[0],c[1],c[2])}return t.apply(o,c)}i.exports=p},6259(i){function p(t,o){for(var c=-1,l=t==null?0:t.length;++c<l&&o(t[c],c,t)!==!1;);return t}i.exports=p},1840(i){function p(t,o){for(var c=-1,l=t==null?0:t.length,u=0,d=[];++c<l;){var h=t[c];o(h,c,t)&&(d[u++]=h)}return d}i.exports=p},3737(i,p,t){var o=t(5562),c=t(1750),l=t(2619),u=t(3446),d=t(2159),h=t(3133),m=Object.prototype,v=m.hasOwnProperty;function w(x,T){var j=l(x),D=!j&&c(x),L=!j&&!D&&u(x),F=!j&&!D&&!L&&h(x),z=j||D||L||F,X=z?o(x.length,String):[],ce=X.length;for(var R in x)(T||v.call(x,R))&&!(z&&(R=="length"||L&&(R=="offset"||R=="parent")||F&&(R=="buffer"||R=="byteLength"||R=="byteOffset")||d(R,ce)))&&X.push(R);return X}i.exports=w},5862(i){function p(t,o){for(var c=-1,l=t==null?0:t.length,u=Array(l);++c<l;)u[c]=o(t[c],c,t);return u}i.exports=p},9130(i){function p(t,o){for(var c=-1,l=o.length,u=t.length;++c<l;)t[u+c]=o[c];return t}i.exports=p},8971(i,p,t){var o=t(3706),c=t(9506);function l(u,d,h){(h!==void 0&&!c(u[d],h)||h===void 0&&!(d in u))&&o(u,d,h)}i.exports=l},3853(i,p,t){var o=t(3706),c=t(9506),l=Object.prototype,u=l.hasOwnProperty;function d(h,m,v){var w=h[m];(!(u.call(h,m)&&c(w,v))||v===void 0&&!(m in h))&&o(h,m,v)}i.exports=d},7831(i,p,t){var o=t(9506);function c(l,u){for(var d=l.length;d--;)if(o(l[d][0],u))return d;return-1}i.exports=c},2183(i,p,t){var o=t(7145),c=t(2096);function l(u,d){return u&&o(d,c(d),u)}i.exports=l},4076(i,p,t){var o=t(7145),c=t(7999);function l(u,d){return u&&o(d,c(d),u)}i.exports=l},3706(i,p,t){var o=t(4665);function c(l,u,d){u=="__proto__"&&o?o(l,u,{configurable:!0,enumerable:!0,value:d,writable:!0}):l[u]=d}i.exports=c},6057(i,p,t){var o=t(5963),c=t(6259),l=t(3853),u=t(2183),d=t(4076),h=t(5196),m=t(3549),v=t(6573),w=t(9934),x=t(6280),T=t(6839),j=t(1663),D=t(143),L=t(7265),F=t(8879),z=t(2619),X=t(3446),ce=t(7884),R=t(9323),Q=t(5070),A=t(2096),le=t(7999),ne=1,ue=2,oe=4,me="[object Arguments]",pe="[object Array]",B="[object Boolean]",ve="[object Date]",_="[object Error]",Ae="[object Function]",Ge="[object GeneratorFunction]",et="[object Map]",it="[object Number]",xt="[object Object]",Bt="[object RegExp]",Vt="[object Set]",ye="[object String]",St="[object Symbol]",hr="[object WeakMap]",gr="[object ArrayBuffer]",Gt="[object DataView]",At="[object Float32Array]",tt="[object Float64Array]",Et="[object Int8Array]",mr="[object Int16Array]",vr="[object Int32Array]",Ht="[object Uint8Array]",Wt="[object Uint8ClampedArray]",Ot="[object Uint16Array]",Kt="[object Uint32Array]",se={};se[me]=se[pe]=se[gr]=se[Gt]=se[B]=se[ve]=se[At]=se[tt]=se[Et]=se[mr]=se[vr]=se[et]=se[it]=se[xt]=se[Bt]=se[Vt]=se[ye]=se[St]=se[Ht]=se[Wt]=se[Ot]=se[Kt]=!0,se[_]=se[Ae]=se[hr]=!1;function He(q,We,Ke,Ct,pt,Ee){var Oe,rt=We&ne,Te=We&ue,Ue=We&oe;if(Ke&&(Oe=pt?Ke(q,Ct,pt,Ee):Ke(q)),Oe!==void 0)return Oe;if(!R(q))return q;var Tt=z(q);if(Tt){if(Oe=D(q),!rt)return m(q,Oe)}else{var Ye=j(q),Pt=Ye==Ae||Ye==Ge;if(X(q))return h(q,rt);if(Ye==xt||Ye==me||Pt&&!pt){if(Oe=Te||Pt?{}:F(q),!rt)return Te?w(q,d(Oe,q)):v(q,u(Oe,q))}else{if(!se[Ye])return pt?q:{};Oe=L(q,Ye,rt)}}Ee||(Ee=new o);var It=Ee.get(q);if(It)return It;Ee.set(q,Oe),Q(q)?q.forEach(function(ke){Oe.add(He(ke,We,Ke,ke,q,Ee))}):ce(q)&&q.forEach(function(ke,Ve){Oe.set(Ve,He(ke,We,Ke,Ve,q,Ee))});var Yt=Ue?Te?T:x:Te?le:A,jt=Tt?void 0:Yt(q);return c(jt||q,function(ke,Ve){jt&&(Ve=ke,ke=q[Ve]),l(Oe,Ve,He(ke,We,Ke,Ve,q,Ee))}),Oe}i.exports=He},8514(i,p,t){var o=t(9323),c=Object.create,l=function(){function u(){}return function(d){if(!o(d))return{};if(c)return c(d);u.prototype=d;var h=new u;return u.prototype=void 0,h}}();i.exports=l},5795(i,p,t){var o=t(3375),c=o();i.exports=c},3208(i,p,t){var o=t(2155),c=t(5155);function l(u,d){d=o(d,u);for(var h=0,m=d.length;u!=null&&h<m;)u=u[c(d[h++])];return h&&h==m?u:void 0}i.exports=l},1405(i,p,t){var o=t(9130),c=t(2619);function l(u,d,h){var m=d(u);return c(u)?m:o(m,h(u))}i.exports=l},1490(i,p,t){var o=t(7759),c=t(4817),l=t(7748),u="[object Null]",d="[object Undefined]",h=o?o.toStringTag:void 0;function m(v){return v==null?v===void 0?d:u:h&&h in Object(v)?c(v):l(v)}i.exports=m},2780(i){var p=Object.prototype,t=p.hasOwnProperty;function o(c,l){return c!=null&&t.call(c,l)}i.exports=o},2960(i,p,t){var o=t(1490),c=t(2292),l="[object Arguments]";function u(d){return c(d)&&o(d)==l}i.exports=u},9694(i,p,t){var o=t(1663),c=t(2292),l="[object Map]";function u(d){return c(d)&&o(d)==l}i.exports=u},4401(i,p,t){var o=t(860),c=t(2958),l=t(9323),u=t(8815),d=/[\\^$.*+?()[\]{}|]/g,h=/^\[object .+?Constructor\]$/,m=Function.prototype,v=Object.prototype,w=m.toString,x=v.hasOwnProperty,T=RegExp("^"+w.call(x).replace(d,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function j(D){if(!l(D)||c(D))return!1;var L=o(D)?T:h;return L.test(u(D))}i.exports=j},8172(i,p,t){var o=t(1663),c=t(2292),l="[object Set]";function u(d){return c(d)&&o(d)==l}i.exports=u},5283(i,p,t){var o=t(1490),c=t(5300),l=t(2292),u="[object Arguments]",d="[object Array]",h="[object Boolean]",m="[object Date]",v="[object Error]",w="[object Function]",x="[object Map]",T="[object Number]",j="[object Object]",D="[object RegExp]",L="[object Set]",F="[object String]",z="[object WeakMap]",X="[object ArrayBuffer]",ce="[object DataView]",R="[object Float32Array]",Q="[object Float64Array]",A="[object Int8Array]",le="[object Int16Array]",ne="[object Int32Array]",ue="[object Uint8Array]",oe="[object Uint8ClampedArray]",me="[object Uint16Array]",pe="[object Uint32Array]",B={};B[R]=B[Q]=B[A]=B[le]=B[ne]=B[ue]=B[oe]=B[me]=B[pe]=!0,B[u]=B[d]=B[X]=B[h]=B[ce]=B[m]=B[v]=B[w]=B[x]=B[T]=B[j]=B[D]=B[L]=B[F]=B[z]=!1;function ve(_){return l(_)&&c(_.length)&&!!B[o(_)]}i.exports=ve},2322(i,p,t){var o=t(8861),c=t(9692),l=Object.prototype,u=l.hasOwnProperty;function d(h){if(!o(h))return c(h);var m=[];for(var v in Object(h))u.call(h,v)&&v!="constructor"&&m.push(v);return m}i.exports=d},5045(i,p,t){var o=t(9323),c=t(8861),l=t(1779),u=Object.prototype,d=u.hasOwnProperty;function h(m){if(!o(m))return l(m);var v=c(m),w=[];for(var x in m)x=="constructor"&&(v||!d.call(m,x))||w.push(x);return w}i.exports=h},3912(i,p,t){var o=t(5963),c=t(8971),l=t(5795),u=t(8342),d=t(9323),h=t(7999),m=t(5760);function v(w,x,T,j,D){w!==x&&l(x,function(L,F){if(D||(D=new o),d(L))u(w,x,F,T,v,j,D);else{var z=j?j(m(w,F),L,F+"",w,x,D):void 0;z===void 0&&(z=L),c(w,F,z)}},h)}i.exports=v},8342(i,p,t){var o=t(8971),c=t(5196),l=t(5979),u=t(3549),d=t(8879),h=t(1750),m=t(2619),v=t(1891),w=t(3446),x=t(860),T=t(9323),j=t(1281),D=t(3133),L=t(5760),F=t(4514);function z(X,ce,R,Q,A,le,ne){var ue=L(X,R),oe=L(ce,R),me=ne.get(oe);if(me){o(X,R,me);return}var pe=le?le(ue,oe,R+"",X,ce,ne):void 0,B=pe===void 0;if(B){var ve=m(oe),_=!ve&&w(oe),Ae=!ve&&!_&&D(oe);pe=oe,ve||_||Ae?m(ue)?pe=ue:v(ue)?pe=u(ue):_?(B=!1,pe=c(oe,!0)):Ae?(B=!1,pe=l(oe,!0)):pe=[]:j(oe)||h(oe)?(pe=ue,h(ue)?pe=F(ue):(!T(ue)||x(ue))&&(pe=d(oe))):B=!1}B&&(ne.set(oe,pe),A(pe,oe,Q,le,ne),ne.delete(oe)),o(X,R,pe)}i.exports=z},6936(i,p,t){var o=t(4846),c=t(8619),l=t(9599);function u(d,h){return l(c(d,h,o),d+"")}i.exports=u},604(i,p,t){var o=t(3853),c=t(2155),l=t(2159),u=t(9323),d=t(5155);function h(m,v,w,x){if(!u(m))return m;v=c(v,m);for(var T=-1,j=v.length,D=j-1,L=m;L!=null&&++T<j;){var F=d(v[T]),z=w;if(F==="__proto__"||F==="constructor"||F==="prototype")return m;if(T!=D){var X=L[F];z=x?x(X,F,L):void 0,z===void 0&&(z=u(X)?X:l(v[T+1])?[]:{})}o(L,F,z),L=L[F]}return m}i.exports=h},7680(i,p,t){var o=t(6148),c=t(4665),l=t(4846),u=c?function(d,h){return c(d,"toString",{configurable:!0,enumerable:!1,value:o(h),writable:!0})}:l;i.exports=u},5562(i){function p(t,o){for(var c=-1,l=Array(t);++c<t;)l[c]=o(c);return l}i.exports=p},1978(i,p,t){var o=t(7759),c=t(5862),l=t(2619),u=t(7964),d=1/0,h=o?o.prototype:void 0,m=h?h.toString:void 0;function v(w){if(typeof w=="string")return w;if(l(w))return c(w,v)+"";if(u(w))return m?m.call(w):"";var x=w+"";return x=="0"&&1/w==-d?"-0":x}i.exports=v},6(i,p,t){var o=t(5082),c=/^\s+/;function l(u){return u&&u.slice(0,o(u)+1).replace(c,"")}i.exports=l},1155(i){function p(t){return function(o){return t(o)}}i.exports=p},2155(i,p,t){var o=t(2619),c=t(5304),l=t(4352),u=t(7164);function d(h,m){return o(h)?h:c(h,m)?[h]:l(u(h))}i.exports=d},2859(i,p,t){var o=t(9386);function c(l){var u=new l.constructor(l.byteLength);return new o(u).set(new o(l)),u}i.exports=c},5196(i,p,t){i=t.nmd(i);var o=t(907),c=p&&!p.nodeType&&p,l=c&&!0&&i&&!i.nodeType&&i,u=l&&l.exports===c,d=u?o.Buffer:void 0,h=d?d.allocUnsafe:void 0;function m(v,w){if(w)return v.slice();var x=v.length,T=h?h(x):new v.constructor(x);return v.copy(T),T}i.exports=m},7795(i,p,t){var o=t(2859);function c(l,u){var d=u?o(l.buffer):l.buffer;return new l.constructor(d,l.byteOffset,l.byteLength)}i.exports=c},6899(i){var p=/\w*$/;function t(o){var c=new o.constructor(o.source,p.exec(o));return c.lastIndex=o.lastIndex,c}i.exports=t},4518(i,p,t){var o=t(7759),c=o?o.prototype:void 0,l=c?c.valueOf:void 0;function u(d){return l?Object(l.call(d)):{}}i.exports=u},5979(i,p,t){var o=t(2859);function c(l,u){var d=u?o(l.buffer):l.buffer;return new l.constructor(d,l.byteOffset,l.length)}i.exports=c},3549(i){function p(t,o){var c=-1,l=t.length;for(o||(o=Array(l));++c<l;)o[c]=t[c];return o}i.exports=p},7145(i,p,t){var o=t(3853),c=t(3706);function l(u,d,h,m){var v=!h;h||(h={});for(var w=-1,x=d.length;++w<x;){var T=d[w],j=m?m(h[T],u[T],T,h,u):void 0;j===void 0&&(j=u[T]),v?c(h,T,j):o(h,T,j)}return h}i.exports=l},6573(i,p,t){var o=t(7145),c=t(1454);function l(u,d){return o(u,c(u),d)}i.exports=l},9934(i,p,t){var o=t(7145),c=t(6649);function l(u,d){return o(u,c(u),d)}i.exports=l},3703(i,p,t){var o=t(907),c=o["__core-js_shared__"];i.exports=c},2917(i,p,t){var o=t(6936),c=t(9542);function l(u){return o(function(d,h){var m=-1,v=h.length,w=v>1?h[v-1]:void 0,x=v>2?h[2]:void 0;for(w=u.length>3&&typeof w=="function"?(v--,w):void 0,x&&c(h[0],h[1],x)&&(w=v<3?void 0:w,v=1),d=Object(d);++m<v;){var T=h[m];T&&u(d,T,m,w)}return d})}i.exports=l},3375(i){function p(t){return function(o,c,l){for(var u=-1,d=Object(o),h=l(o),m=h.length;m--;){var v=h[t?m:++u];if(c(d[v],v,d)===!1)break}return o}}i.exports=p},4665(i,p,t){var o=t(5592),c=function(){try{var l=o(Object,"defineProperty");return l({},"",{}),l}catch{}}();i.exports=c},6710(i){var p=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis;i.exports=p},6280(i,p,t){var o=t(1405),c=t(1454),l=t(2096);function u(d){return o(d,l,c)}i.exports=u},6839(i,p,t){var o=t(1405),c=t(6649),l=t(7999);function u(d){return o(d,l,c)}i.exports=u},9257(i,p,t){var o=t(7500);function c(l,u){var d=l.__data__;return o(u)?d[typeof u=="string"?"string":"hash"]:d.map}i.exports=c},5592(i,p,t){var o=t(4401),c=t(2490);function l(u,d){var h=c(u,d);return o(h)?h:void 0}i.exports=l},553(i,p,t){var o=t(7937),c=o(Object.getPrototypeOf,Object);i.exports=c},4817(i,p,t){var o=t(7759),c=Object.prototype,l=c.hasOwnProperty,u=c.toString,d=o?o.toStringTag:void 0;function h(m){var v=l.call(m,d),w=m[d];try{m[d]=void 0;var x=!0}catch{}var T=u.call(m);return x&&(v?m[d]=w:delete m[d]),T}i.exports=h},1454(i,p,t){var o=t(1840),c=t(5615),l=Object.prototype,u=l.propertyIsEnumerable,d=Object.getOwnPropertySymbols,h=d?function(m){return m==null?[]:(m=Object(m),o(d(m),function(v){return u.call(m,v)}))}:c;i.exports=h},6649(i,p,t){var o=t(9130),c=t(553),l=t(1454),u=t(5615),d=Object.getOwnPropertySymbols,h=d?function(m){for(var v=[];m;)o(v,l(m)),m=c(m);return v}:u;i.exports=h},1663(i,p,t){var o=t(8054),c=t(2565),l=t(8246),u=t(4099),d=t(6221),h=t(1490),m=t(8815),v="[object Map]",w="[object Object]",x="[object Promise]",T="[object Set]",j="[object WeakMap]",D="[object DataView]",L=m(o),F=m(c),z=m(l),X=m(u),ce=m(d),R=h;(o&&R(new o(new ArrayBuffer(1)))!=D||c&&R(new c)!=v||l&&R(l.resolve())!=x||u&&R(new u)!=T||d&&R(new d)!=j)&&(R=function(Q){var A=h(Q),le=A==w?Q.constructor:void 0,ne=le?m(le):"";if(ne)switch(ne){case L:return D;case F:return v;case z:return x;case X:return T;case ce:return j}return A}),i.exports=R},2490(i){function p(t,o){return t?.[o]}i.exports=p},5728(i,p,t){var o=t(2155),c=t(1750),l=t(2619),u=t(2159),d=t(5300),h=t(5155);function m(v,w,x){w=o(w,v);for(var T=-1,j=w.length,D=!1;++T<j;){var L=h(w[T]);if(!(D=v!=null&&x(v,L)))break;v=v[L]}return D||++T!=j?D:(j=v==null?0:v.length,!!j&&d(j)&&u(L,j)&&(l(v)||c(v)))}i.exports=m},2130(i,p,t){var o=t(9444);function c(){this.__data__=o?o(null):{},this.size=0}i.exports=c},1924(i){function p(t){var o=this.has(t)&&delete this.__data__[t];return this.size-=o?1:0,o}i.exports=p},4743(i,p,t){var o=t(9444),c="__lodash_hash_undefined__",l=Object.prototype,u=l.hasOwnProperty;function d(h){var m=this.__data__;if(o){var v=m[h];return v===c?void 0:v}return u.call(m,h)?m[h]:void 0}i.exports=d},1755(i,p,t){var o=t(9444),c=Object.prototype,l=c.hasOwnProperty;function u(d){var h=this.__data__;return o?h[d]!==void 0:l.call(h,d)}i.exports=u},5203(i,p,t){var o=t(9444),c="__lodash_hash_undefined__";function l(u,d){var h=this.__data__;return this.size+=this.has(u)?0:1,h[u]=o&&d===void 0?c:d,this}i.exports=l},143(i){var p=Object.prototype,t=p.hasOwnProperty;function o(c){var l=c.length,u=new c.constructor(l);return l&&typeof c[0]=="string"&&t.call(c,"index")&&(u.index=c.index,u.input=c.input),u}i.exports=o},7265(i,p,t){var o=t(2859),c=t(7795),l=t(6899),u=t(4518),d=t(5979),h="[object Boolean]",m="[object Date]",v="[object Map]",w="[object Number]",x="[object RegExp]",T="[object Set]",j="[object String]",D="[object Symbol]",L="[object ArrayBuffer]",F="[object DataView]",z="[object Float32Array]",X="[object Float64Array]",ce="[object Int8Array]",R="[object Int16Array]",Q="[object Int32Array]",A="[object Uint8Array]",le="[object Uint8ClampedArray]",ne="[object Uint16Array]",ue="[object Uint32Array]";function oe(me,pe,B){var ve=me.constructor;switch(pe){case L:return o(me);case h:case m:return new ve(+me);case F:return c(me,B);case z:case X:case ce:case R:case Q:case A:case le:case ne:case ue:return d(me,B);case v:return new ve;case w:case j:return new ve(me);case x:return l(me);case T:return new ve;case D:return u(me)}}i.exports=oe},8879(i,p,t){var o=t(8514),c=t(553),l=t(8861);function u(d){return typeof d.constructor=="function"&&!l(d)?o(c(d)):{}}i.exports=u},2159(i){var p=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function o(c,l){var u=typeof c;return l=l??p,!!l&&(u=="number"||u!="symbol"&&t.test(c))&&c>-1&&c%1==0&&c<l}i.exports=o},9542(i,p,t){var o=t(9506),c=t(644),l=t(2159),u=t(9323);function d(h,m,v){if(!u(v))return!1;var w=typeof m;return(w=="number"?c(v)&&l(m,v.length):w=="string"&&m in v)?o(v[m],h):!1}i.exports=d},5304(i,p,t){var o=t(2619),c=t(7964),l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;function d(h,m){if(o(h))return!1;var v=typeof h;return v=="number"||v=="symbol"||v=="boolean"||h==null||c(h)?!0:u.test(h)||!l.test(h)||m!=null&&h in Object(m)}i.exports=d},7500(i){function p(t){var o=typeof t;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?t!=="__proto__":t===null}i.exports=p},2958(i,p,t){var o=t(3703),c=function(){var u=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""}();function l(u){return!!c&&c in u}i.exports=l},8861(i){var p=Object.prototype;function t(o){var c=o&&o.constructor,l=typeof c=="function"&&c.prototype||p;return o===l}i.exports=t},3044(i){function p(){this.__data__=[],this.size=0}i.exports=p},4066(i,p,t){var o=t(7831),c=Array.prototype,l=c.splice;function u(d){var h=this.__data__,m=o(h,d);if(m<0)return!1;var v=h.length-1;return m==v?h.pop():l.call(h,m,1),--this.size,!0}i.exports=u},8461(i,p,t){var o=t(7831);function c(l){var u=this.__data__,d=o(u,l);return d<0?void 0:u[d][1]}i.exports=c},4417(i,p,t){var o=t(7831);function c(l){return o(this.__data__,l)>-1}i.exports=c},2777(i,p,t){var o=t(7831);function c(l,u){var d=this.__data__,h=o(d,l);return h<0?(++this.size,d.push([l,u])):d[h][1]=u,this}i.exports=c},4614(i,p,t){var o=t(3219),c=t(7321),l=t(2565);function u(){this.size=0,this.__data__={hash:new o,map:new(l||c),string:new o}}i.exports=u},9504(i,p,t){var o=t(9257);function c(l){var u=o(this,l).delete(l);return this.size-=u?1:0,u}i.exports=c},9251(i,p,t){var o=t(9257);function c(l){return o(this,l).get(l)}i.exports=c},5791(i,p,t){var o=t(9257);function c(l){return o(this,l).has(l)}i.exports=c},1511(i,p,t){var o=t(9257);function c(l,u){var d=o(this,l),h=d.size;return d.set(l,u),this.size+=d.size==h?0:1,this}i.exports=c},3426(i,p,t){var o=t(8590),c=500;function l(u){var d=o(u,function(m){return h.size===c&&h.clear(),m}),h=d.cache;return d}i.exports=l},9444(i,p,t){var o=t(5592),c=o(Object,"create");i.exports=c},9692(i,p,t){var o=t(7937),c=o(Object.keys,Object);i.exports=c},1779(i){function p(t){var o=[];if(t!=null)for(var c in Object(t))o.push(c);return o}i.exports=p},1587(i,p,t){i=t.nmd(i);var o=t(6710),c=p&&!p.nodeType&&p,l=c&&!0&&i&&!i.nodeType&&i,u=l&&l.exports===c,d=u&&o.process,h=function(){try{var m=l&&l.require&&l.require("util").types;return m||d&&d.binding&&d.binding("util")}catch{}}();i.exports=h},7748(i){var p=Object.prototype,t=p.toString;function o(c){return t.call(c)}i.exports=o},7937(i){function p(t,o){return function(c){return t(o(c))}}i.exports=p},8619(i,p,t){var o=t(6047),c=Math.max;function l(u,d,h){return d=c(d===void 0?u.length-1:d,0),function(){for(var m=arguments,v=-1,w=c(m.length-d,0),x=Array(w);++v<w;)x[v]=m[d+v];v=-1;for(var T=Array(d+1);++v<d;)T[v]=m[v];return T[d]=h(x),o(u,this,T)}}i.exports=l},907(i,p,t){var o=t(6710),c=typeof self=="object"&&self&&self.Object===Object&&self,l=o||c||Function("return this")();i.exports=l},5760(i){function p(t,o){if(!(o==="constructor"&&typeof t[o]=="function")&&o!="__proto__")return t[o]}i.exports=p},9599(i,p,t){var o=t(7680),c=t(6101),l=c(o);i.exports=l},6101(i){var p=800,t=16,o=Date.now;function c(l){var u=0,d=0;return function(){var h=o(),m=t-(h-d);if(d=h,m>0){if(++u>=p)return arguments[0]}else u=0;return l.apply(void 0,arguments)}}i.exports=c},1306(i,p,t){var o=t(7321);function c(){this.__data__=new o,this.size=0}i.exports=c},3180(i){function p(t){var o=this.__data__,c=o.delete(t);return this.size=o.size,c}i.exports=p},5247(i){function p(t){return this.__data__.get(t)}i.exports=p},2835(i){function p(t){return this.__data__.has(t)}i.exports=p},9179(i,p,t){var o=t(7321),c=t(2565),l=t(111),u=200;function d(h,m){var v=this.__data__;if(v instanceof o){var w=v.__data__;if(!c||w.length<u-1)return w.push([h,m]),this.size=++v.size,this;v=this.__data__=new l(w)}return v.set(h,m),this.size=v.size,this}i.exports=d},4352(i,p,t){var o=t(3426),c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l=/\\(\\)?/g,u=o(function(d){var h=[];return d.charCodeAt(0)===46&&h.push(""),d.replace(c,function(m,v,w,x){h.push(w?x.replace(l,"$1"):v||m)}),h});i.exports=u},5155(i,p,t){var o=t(7964),c=1/0;function l(u){if(typeof u=="string"||o(u))return u;var d=u+"";return d=="0"&&1/u==-c?"-0":d}i.exports=l},8815(i){var p=Function.prototype,t=p.toString;function o(c){if(c!=null){try{return t.call(c)}catch{}try{return c+""}catch{}}return""}i.exports=o},5082(i){var p=/\s/;function t(o){for(var c=o.length;c--&&p.test(o.charAt(c)););return c}i.exports=t},8313(i,p,t){var o=t(6057),c=1,l=4;function u(d){return o(d,c|l)}i.exports=u},6148(i){function p(t){return function(){return t}}i.exports=p},671(i,p,t){var o=t(9323),c=t(5062),l=t(9480),u="Expected a function",d=Math.max,h=Math.min;function m(v,w,x){var T,j,D,L,F,z,X=0,ce=!1,R=!1,Q=!0;if(typeof v!="function")throw new TypeError(u);w=l(w)||0,o(x)&&(ce=!!x.leading,R="maxWait"in x,D=R?d(l(x.maxWait)||0,w):D,Q="trailing"in x?!!x.trailing:Q);function A(_){var Ae=T,Ge=j;return T=j=void 0,X=_,L=v.apply(Ge,Ae),L}function le(_){return X=_,F=setTimeout(oe,w),ce?A(_):L}function ne(_){var Ae=_-z,Ge=_-X,et=w-Ae;return R?h(et,D-Ge):et}function ue(_){var Ae=_-z,Ge=_-X;return z===void 0||Ae>=w||Ae<0||R&&Ge>=D}function oe(){var _=c();if(ue(_))return me(_);F=setTimeout(oe,ne(_))}function me(_){return F=void 0,Q&&T?A(_):(T=j=void 0,L)}function pe(){F!==void 0&&clearTimeout(F),X=0,T=z=j=F=void 0}function B(){return F===void 0?L:me(c())}function ve(){var _=c(),Ae=ue(_);if(T=arguments,j=this,z=_,Ae){if(F===void 0)return le(z);if(R)return clearTimeout(F),F=setTimeout(oe,w),A(z)}return F===void 0&&(F=setTimeout(oe,w)),L}return ve.cancel=pe,ve.flush=B,ve}i.exports=m},9506(i){function p(t,o){return t===o||t!==t&&o!==o}i.exports=p},2438(i,p,t){var o=t(3208);function c(l,u,d){var h=l==null?void 0:o(l,u);return h===void 0?d:h}i.exports=c},2146(i,p,t){var o=t(2780),c=t(5728);function l(u,d){return u!=null&&c(u,d,o)}i.exports=l},4846(i){function p(t){return t}i.exports=p},1750(i,p,t){var o=t(2960),c=t(2292),l=Object.prototype,u=l.hasOwnProperty,d=l.propertyIsEnumerable,h=o(function(){return arguments}())?o:function(m){return c(m)&&u.call(m,"callee")&&!d.call(m,"callee")};i.exports=h},2619(i){var p=Array.isArray;i.exports=p},644(i,p,t){var o=t(860),c=t(5300);function l(u){return u!=null&&c(u.length)&&!o(u)}i.exports=l},1891(i,p,t){var o=t(644),c=t(2292);function l(u){return c(u)&&o(u)}i.exports=l},3446(i,p,t){i=t.nmd(i);var o=t(907),c=t(9349),l=p&&!p.nodeType&&p,u=l&&!0&&i&&!i.nodeType&&i,d=u&&u.exports===l,h=d?o.Buffer:void 0,m=h?h.isBuffer:void 0,v=m||c;i.exports=v},860(i,p,t){var o=t(1490),c=t(9323),l="[object AsyncFunction]",u="[object Function]",d="[object GeneratorFunction]",h="[object Proxy]";function m(v){if(!c(v))return!1;var w=o(v);return w==u||w==d||w==l||w==h}i.exports=m},5300(i){var p=9007199254740991;function t(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=p}i.exports=t},7884(i,p,t){var o=t(9694),c=t(1155),l=t(1587),u=l&&l.isMap,d=u?c(u):o;i.exports=d},9323(i){function p(t){var o=typeof t;return t!=null&&(o=="object"||o=="function")}i.exports=p},2292(i){function p(t){return t!=null&&typeof t=="object"}i.exports=p},1281(i,p,t){var o=t(1490),c=t(553),l=t(2292),u="[object Object]",d=Function.prototype,h=Object.prototype,m=d.toString,v=h.hasOwnProperty,w=m.call(Object);function x(T){if(!l(T)||o(T)!=u)return!1;var j=c(T);if(j===null)return!0;var D=v.call(j,"constructor")&&j.constructor;return typeof D=="function"&&D instanceof D&&m.call(D)==w}i.exports=x},5070(i,p,t){var o=t(8172),c=t(1155),l=t(1587),u=l&&l.isSet,d=u?c(u):o;i.exports=d},7964(i,p,t){var o=t(1490),c=t(2292),l="[object Symbol]";function u(d){return typeof d=="symbol"||c(d)&&o(d)==l}i.exports=u},3133(i,p,t){var o=t(5283),c=t(1155),l=t(1587),u=l&&l.isTypedArray,d=u?c(u):o;i.exports=d},2096(i,p,t){var o=t(3737),c=t(2322),l=t(644);function u(d){return l(d)?o(d):c(d)}i.exports=u},7999(i,p,t){var o=t(3737),c=t(5045),l=t(644);function u(d){return l(d)?o(d,!0):c(d)}i.exports=u},8590(i,p,t){var o=t(111),c="Expected a function";function l(u,d){if(typeof u!="function"||d!=null&&typeof d!="function")throw new TypeError(c);var h=function(){var m=arguments,v=d?d.apply(this,m):m[0],w=h.cache;if(w.has(v))return w.get(v);var x=u.apply(this,m);return h.cache=w.set(v,x)||w,x};return h.cache=new(l.Cache||o),h}l.Cache=o,i.exports=l},8970(i,p,t){var o=t(3912),c=t(2917),l=c(function(u,d,h){o(u,d,h)});i.exports=l},5062(i,p,t){var o=t(907),c=function(){return o.Date.now()};i.exports=c},2154(i,p,t){var o=t(604);function c(l,u,d){return l==null?l:o(l,u,d)}i.exports=c},5615(i){function p(){return[]}i.exports=p},9349(i){function p(){return!1}i.exports=p},6712(i,p,t){var o=t(671),c=t(9323),l="Expected a function";function u(d,h,m){var v=!0,w=!0;if(typeof d!="function")throw new TypeError(l);return c(m)&&(v="leading"in m?!!m.leading:v,w="trailing"in m?!!m.trailing:w),o(d,h,{leading:v,maxWait:h,trailing:w})}i.exports=u},9480(i,p,t){var o=t(6),c=t(9323),l=t(7964),u=NaN,d=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,m=/^0o[0-7]+$/i,v=parseInt;function w(x){if(typeof x=="number")return x;if(l(x))return u;if(c(x)){var T=typeof x.valueOf=="function"?x.valueOf():x;x=c(T)?T+"":T}if(typeof x!="string")return x===0?x:+x;x=o(x);var j=h.test(x);return j||m.test(x)?v(x.slice(2),j?2:8):d.test(x)?u:+x}i.exports=w},4514(i,p,t){var o=t(7145),c=t(7999);function l(u){return o(u,c(u))}i.exports=l},7164(i,p,t){var o=t(1978);function c(l){return l==null?"":o(l)}i.exports=c},5360(i,p){"use strict";/** @license React v16.13.1
|
|
2
|
+
* react-is.production.min.js
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/var t=typeof Symbol=="function"&&Symbol.for,o=t?Symbol.for("react.element"):60103,c=t?Symbol.for("react.portal"):60106,l=t?Symbol.for("react.fragment"):60107,u=t?Symbol.for("react.strict_mode"):60108,d=t?Symbol.for("react.profiler"):60114,h=t?Symbol.for("react.provider"):60109,m=t?Symbol.for("react.context"):60110,v=t?Symbol.for("react.async_mode"):60111,w=t?Symbol.for("react.concurrent_mode"):60111,x=t?Symbol.for("react.forward_ref"):60112,T=t?Symbol.for("react.suspense"):60113,j=t?Symbol.for("react.suspense_list"):60120,D=t?Symbol.for("react.memo"):60115,L=t?Symbol.for("react.lazy"):60116,F=t?Symbol.for("react.block"):60121,z=t?Symbol.for("react.fundamental"):60117,X=t?Symbol.for("react.responder"):60118,ce=t?Symbol.for("react.scope"):60119;function R(A){if(typeof A=="object"&&A!==null){var le=A.$$typeof;switch(le){case o:switch(A=A.type,A){case v:case w:case l:case d:case u:case T:return A;default:switch(A=A&&A.$$typeof,A){case m:case x:case L:case D:case h:return A;default:return le}}case c:return le}}}function Q(A){return R(A)===w}p.AsyncMode=v,p.ConcurrentMode=w,p.ContextConsumer=m,p.ContextProvider=h,p.Element=o,p.ForwardRef=x,p.Fragment=l,p.Lazy=L,p.Memo=D,p.Portal=c,p.Profiler=d,p.StrictMode=u,p.Suspense=T,p.isAsyncMode=function(A){return Q(A)||R(A)===v},p.isConcurrentMode=Q,p.isContextConsumer=function(A){return R(A)===m},p.isContextProvider=function(A){return R(A)===h},p.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===o},p.isForwardRef=function(A){return R(A)===x},p.isFragment=function(A){return R(A)===l},p.isLazy=function(A){return R(A)===L},p.isMemo=function(A){return R(A)===D},p.isPortal=function(A){return R(A)===c},p.isProfiler=function(A){return R(A)===d},p.isStrictMode=function(A){return R(A)===u},p.isSuspense=function(A){return R(A)===T},p.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===l||A===w||A===d||A===u||A===T||A===j||typeof A=="object"&&A!==null&&(A.$$typeof===L||A.$$typeof===D||A.$$typeof===h||A.$$typeof===m||A.$$typeof===x||A.$$typeof===z||A.$$typeof===X||A.$$typeof===ce||A.$$typeof===F)},p.typeOf=R},7020(i,p,t){"use strict";i.exports=t(5360)},162(i){i.exports=function(t,o,c,l){var u=c?c.call(l,t,o):void 0;if(u!==void 0)return!!u;if(t===o)return!0;if(typeof t!="object"||!t||typeof o!="object"||!o)return!1;var d=Object.keys(t),h=Object.keys(o);if(d.length!==h.length)return!1;for(var m=Object.prototype.hasOwnProperty.bind(o),v=0;v<d.length;v++){var w=d[v];if(!m(w))return!1;var x=t[w],T=o[w];if(u=c?c.call(l,x,T,w):void 0,u===!1||u===void 0&&x!==T)return!1}return!0}},4883(i){"use strict";i.exports=fr}};const qe={};function Y(i){const p=qe[i];if(p!==void 0)return p.exports;const t=qe[i]={id:i,loaded:!1,exports:{}};return wt[i](t,t.exports,Y),t.loaded=!0,t.exports}Y.n=i=>{const p=i&&i.__esModule?()=>i.default:()=>i;return Y.d(p,{a:p}),p},Y.d=(i,p)=>{if(Array.isArray(p))for(var t=0;t<p.length;){var o=p[t++],c=p[t++];Y.o(i,o)?c===0&&t++:c===0?Object.defineProperty(i,o,{enumerable:!0,value:p[t++]}):Object.defineProperty(i,o,{enumerable:!0,get:c})}else for(var o in p)Y.o(p,o)&&!Y.o(i,o)&&Object.defineProperty(i,o,{enumerable:!0,get:p[o]})},Y.o=(i,p)=>Object.hasOwn(i,p),Y.r=i=>{Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},Y.nmd=i=>(i.paths=[],i.children||(i.children=[]),i),(()=>{let i;globalThis.importScripts&&(i=globalThis.location+"");const p=globalThis.document;if(!i&&p&&(p.currentScript?.tagName.toUpperCase()==="SCRIPT"&&(i=p.currentScript.src),!i)){const t=p.getElementsByTagName("script");if(t.length){let o=t.length-1;for(;o>-1&&(!i||!/^http(s?):/.test(i));)i=t[o--].src}}if(!i)throw new Error("Automatic publicPath is not supported in this browser");i=i.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),Y.p=i+"../"})(),Y.nc=void 0;let zt={};return(()=>{"use strict";Y.r(zt),Y.d(zt,{CAppBridge:()=>ts,Event:()=>ne,LaunchMode:()=>Q,MicroAppManager:()=>A,ScriptLoader:()=>Ur,ScriptingObject:()=>ve,SecurityContext:()=>i,StyleLoader:()=>kr});var i=(r=>(r.USER="USER",r.PARTNER="PARTNER",r))(i||{}),p=Y(8313),t=Y.n(p),o=Y(2438),c=Y.n(o),l=Y(2154),u=Y.n(l),d=Y(2146),h=Y.n(d),m=Y(8970),v=Y.n(m);const w=JSON.parse('{"appId":"microfe","activeEnv":"localhost","googleTagManager":true,"sessionTimeoutWarnInterval":"7200000","sessionTimeoutInterval":"9000000","microFrontendApps":{"loanapp":{"name":"Loan","hostUrl":"./loan","development":{"files":["index.js"]},"production":{"files":["index.js"]}},"taskapp":{"name":"Task","hostUrl":"./task","mode":"development","development":{"files":["index.dev.js"]},"production":{"files":["index.js"]}},"travelhub":{"name":"TravelHub","hostUrl":"./travelhub","development":{"files":["app.js","landing.js","app.css","landing.css"]},"production":{"files":["app.js","landing.js","app.css","landing.css"]}},"flights":{"name":"Flights","hostUrl":"./flights","development":{"files":["app.js","app.css"]},"production":{"files":["app.js","app.css"]}},"hotels":{"name":"Hotels","hostUrl":"./hotels","development":{"files":["app.js","app.css"]},"production":{"files":["app.js","app.css"]}},"ssfapp":{"name":"SSF App","hostUrl":"./ssf-app","microappManager":"ssf"}},"serviceEndpoints":{"api":"","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"},"env":{"localhost":{"serviceEndpoints":{"api":"","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"dev":{"serviceEndpoints":{"api":"https://dev.api.puiservice.rd.elliemae.io","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"dev2":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"qa":{"serviceEndpoints":{"api":"https://dev.api.puiservice.rd.elliemae.io","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"qa2":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"qa3":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"int":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-osb1":{"serviceEndpoints":{"api":"https://encompass-peg-api.elliemae.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-osb2":{"serviceEndpoints":{"api":"https://encompass-peg2-api.elliemae.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg":{"serviceEndpoints":{"api":"https://peg2-west.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-oapi-west":{"serviceEndpoints":{"api":"https://peg2-west.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-oapi-east":{"serviceEndpoints":{"api":"https://peg2-east.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg2-oapi-east":{"serviceEndpoints":{"api":"https://peg2-east.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg3":{"serviceEndpoints":{"api":"https://pel1.api.ellielabs.com","idp":"https://peg3.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"stage":{"serviceEndpoints":{"api":"https://stg.api.elliemae.com","idp":"https://stg.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"beta":{"serviceEndpoints":{"api":"https://concept.api.elliemae.com","idp":"https://concept.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"demo":{"serviceEndpoints":{"api":"https://concept.api.elliemae.com","idp":"https://concept.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"epc":{"serviceEndpoints":{"api":"https://concept.api.elliemae.com","idp":"https://concept.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"prod":{"serviceEndpoints":{"api":"https://api.elliemae.com","idp":"https://idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}}}}'),x=r=>r.replace(/([^:]\/)\/+/g,"$1"),T=r=>{const e=document.createElement("a");return e.href=r,e.href},j=r=>r?.replace?.(/\/?$/,"/"),D=(r,e)=>`${r.replace(/\/+$/,"")}/${e.replace(/^\/+/,"")}`,L=r=>/^(\/|https?:\/\/)/.test(r),F=(r,e)=>{const n=j(e);if(L(n)){const{origin:s}=new URL(r,window.location.href);return x(new URL(n,s).href)}return x(new URL(n,j(r)).href)},z=(r,e)=>x(new URL("manifest.json",F(r,e)).href),X=()=>window.navigator.userAgent.includes("jsdom"),ce=r=>r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),R=r=>{try{if(new URL(r,window.location.href).origin===window.location.origin)return r;const n=window.location.hostname==="localhost"?"latest":window.emui?.version?.match(/^(\d+\.\d+)/)?.[1]??"latest";return`${window.location.origin}/${n}/frame.html`}catch{return r}};var Q=(r=>(r.DEVELOPMENT="development",r.PRODUCTION="production",r))(Q||{}),A=(r=>(r.SSF="ssf",r.APPSDK="appsdk",r))(A||{});class le{#e=w;#t;#r;constructor(e){this.#t=e?.version||"latest",this.#r=j(e?.baseUrl||"")}#i=e=>{const{activeEnv:n,env:s,...a}=e,f=s[n]||{};this.#e=v()({},a,f)};get=(e="",n=null)=>t()(c()(this.#e,e,n));set=(e,n)=>{u()(this.#e,e,n)};has=(e="")=>h()(this.#e,e);setPreloadedConfig=e=>{this.#e=e};#n=()=>{if(!/(?:\/)(\d+\.\d+|latest)(?:\/?)?$/.test(this.#r)){const n=this.#t.match(/^(?:\d+\.\d+)*/g);return j(`${this.#r}${n?.[0]||"latest"}`)}return this.#r};load=async e=>{const n=e??`${this.#n()}app.config.json`;let s;try{s=await fetch(n)}catch(a){if(!e&&this.#t!=="latest"){await this.load(`${this.#r}latest/app.config.json`);return}throw new Error("Failed to fetch app config",{cause:a})}if(s.ok)try{const a=await s.json();this.#i(a)}catch(a){if(!e&&this.#t!=="latest")await this.load(`${this.#r}latest/app.config.json`);else throw new Error("Failed to parse app config",{cause:a})}else{if(!e&&this.#t!=="latest"){await this.load(`${this.#r}latest/app.config.json`);return}throw new Error("Failed to load app config")}}}class ne{name;objectId;id;constructor(e){const{name:n,objectId:s}=e;if(!n)throw new Error("Event name is required");if(!s)throw new Error("Scripting object id is required");this.objectId=s,this.name=n,this.id=`${this.objectId}.${this.name}`.toLowerCase()}}class ue{static[Symbol.hasInstance](e){return typeof e=="object"&&e!==null&&"getType"in e&&typeof e.getType=="function"&&e.getType()==="ProxyEvent"}#e;objectId;name;id;getType(){return"ProxyEvent"}constructor(e){const{name:n,objectId:s,eventSrc:a}=e;if(!n)throw new Error("Event name is required");if(!s)throw new Error("Scripting object id is required");if(!a)throw new Error("Event source is required");this.objectId=s,this.name=n,this.#e=a,this.id=`${this.objectId}.${this.name}`.toLowerCase()}subscribe=e=>this.#e.subscribe({eventId:this.id,callback:e});unsubscribe=e=>{this.#e.unsubscribe({eventId:this.id,token:e})}}const oe=r=>r instanceof ne,me=(r,e)=>`${r.toLowerCase()}.${e.toLowerCase()}`,pe="function",B=(r,e)=>typeof r===pe&&!!e&&!e.startsWith("_");class ve{#e;#t="Object";constructor(e,n){this.#e=e,this.#t=n||this.#t}get id(){return this.#e}get objectType(){return this.#t}_toJSON=()=>{const e=[],n=[];return Object.keys(this).forEach(s=>{const a=this[s];oe(a)?n.push(s):B(a,s)&&e.push(s)}),{objectId:this.#e,objectType:this.#t,functions:e,events:n}};_dispose=()=>{};dispose=()=>{}}var _=Y(6712),Ae=Y.n(_);const et={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let it;const xt=new Uint8Array(16);function Bt(){if(!it&&(it=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!it))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return it(xt)}var Vt;const ye=[];for(let r=0;r<256;++r)ye.push((r+256).toString(16).slice(1));function St(r,e=0){return ye[r[e+0]]+ye[r[e+1]]+ye[r[e+2]]+ye[r[e+3]]+"-"+ye[r[e+4]]+ye[r[e+5]]+"-"+ye[r[e+6]]+ye[r[e+7]]+"-"+ye[r[e+8]]+ye[r[e+9]]+"-"+ye[r[e+10]]+ye[r[e+11]]+ye[r[e+12]]+ye[r[e+13]]+ye[r[e+14]]+ye[r[e+15]]}function hr(r,e=0){const n=St(r,e);if(!Vt(n))throw TypeError("Stringified UUID is invalid");return n}const gr=null;function Gt(r,e,n){if(et.randomUUID&&!e&&!r)return et.randomUUID();r=r||{};const s=r.random||(r.rng||Bt)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,e){n=n||0;for(let a=0;a<16;++a)e[n+a]=s[a];return e}return St(s)}const At=Gt;var tt=(r=>(r.Analytics="analytics",r.Application="application",r.Auth="auth",r.Form="form",r.Global="global",r.Http="http",r.Loan="loan",r.LoanV2="loanV2",r.MemStorage="memstorage",r.Module="module",r.Service="service",r.Session="session",r.Styling="styling",r.Transaction="transaction",r.TransactionTemplate="transactiontemplate",r.WebSocket="websocket",r))(tt||{});const Et="module";var mr=null,vr=null;class Ht{#e=e=>e.trim().toLowerCase();#t=new Map;#r=new Map;#i=e=>{const{so:n,guestId:s,onDuplicate:a="throw",securityContext:f}=e,g=this.#e(n.id),y={so:n,guestId:s,securityContext:f},S=this.#r.get(s);if(!S){this.#r.set(s,new Map([[g,y]]));return}if(S.has(g)){if(a==="ignore")return;throw new Error(`Scripting Object ${n.id} already exists for guest ${s}`)}S.set(g,y)};#n=({so:e})=>{if(e._dispose&&typeof e._dispose=="function")try{e._dispose()}catch{}};#a=({objectId:e,guestId:n})=>{if(e===Et&&!n)for(const[,a]of this.#r){const f=a.get(e);if(f)return f}const s=n?this.#r.get(n):null;return s?s.get(e)??null:null};#s=({objectId:e,guestId:n}={})=>{if(n){if(!e){const a=this.#r.get(n);a&&a.forEach(this.#n),this.#r.delete(n);return}const s=this.#r.get(n);if(s){const a=s.get(e);a&&this.#n(a),s.delete(e)}}else e&&this.#r.forEach(s=>{const a=s.get(e);a&&this.#n(a),s.delete(e)})};addScriptingObject=(e,n)=>{const{guestId:s,onDuplicate:a="throw",securityContext:f}=n||{};if(!e?.id||!e?._toJSON)throw new Error("Object is not derived from ScriptingObject");const g=this.#e(e.id);if(g===Et&&!s)throw new Error("Guest id is required to add Module scripting object");if(s){this.#i({so:e,...n,guestId:s,onDuplicate:a});return}if(this.#t.has(g)){if(a==="ignore")return;throw new Error(`Scripting Object ${e.id} already exists`)}this.#t.set(g,{so:e,guestId:s,securityContext:f})};getObject=(e,n)=>{const s=this.#e(e);let a=this.#a({objectId:s,guestId:n?.id});a=a??this.#t.get(s)??null;const{so:f}=a||{};return f||null};has=(e,n)=>this.getObject(e,n)!==null;listScriptingObjects=e=>{const n=new Set(this.#t.keys()),s=this.#r.get(e);if(s)for(const a of s.keys())n.add(a);return Array.from(n)};removeScriptingObject=(e,n)=>{const s=this.#e(e);if(n)this.#s({objectId:s,guestId:n});else{this.#s({objectId:s});const a=this.#t.get(s);a&&this.#n(a),this.#t.delete(s)}};removeAllScriptingObjects=e=>{e?this.#s({guestId:e}):(this.#t.forEach(this.#n),this.#t.clear())}}class Wt{__TYPE__="Proxy";id;objectType;constructor(e,n){this.id=e,this.objectType=n}}const Ot=r=>r?.constructor?.name==="Proxy"||r?.constructor?.name==="ScriptingObjectProxy"||r?.__TYPE__==="Proxy";class Kt{#e=new Map;#t=new WeakMap;#r;constructor(e){this.#r=e}#i=(e,n)=>{const s=new Promise(a=>{setTimeout(()=>{a()},n)});return Promise.race([e,s])};#n=(e,n)=>{const s=n?.guestId;return!s||!e.guestId?!0:e.guestId===s};#a=e=>{const{eventName:n,scriptingObject:s,eventParams:a,listeners:f,eventOptions:g}=e;f.forEach(y=>{this.#n(y,g)&&(y.criteria&&!(a&&this.#c(a,y.criteria))||Promise.resolve(y.callback({obj:s,eventName:n,eventParams:a})).catch(S=>{this.#r?.warn(`Error in event listener for "${n}": ${S.message}`)}))})};#s=async({eventId:e,eventName:n,scriptingObject:s,eventParams:a,feedbackWaitTime:f,eventOptions:g})=>{const S=(this.#e.get(e)||[]).map(C=>!this.#n(C,g)||C.criteria&&!(a?this.#c(a,C.criteria):!1)?Promise.resolve():this.#i(C.callback({obj:s,eventName:n,eventParams:a}),f));return(await Promise.all(S)).flat(1/0).filter(C=>C!==void 0)};#c(e,n){return Object.entries(n).every(([s,a])=>{const f=e[s];if("eq"in a)return f===a.eq;if("in"in a)return Array.isArray(a.in)&&a.in.includes(f);if("includes"in a)return Array.isArray(f)&&f.includes(a.includes);if("gt"in a){const g=typeof f=="number"?f:Number(f);return!Number.isNaN(g)&&g>a.gt}if("lt"in a){const g=typeof f=="number"?f:Number(f);return!Number.isNaN(g)&&g<a.lt}if("regex"in a){let g=this.#t.get(a);if(g===void 0){try{g=new RegExp(a.regex)}catch{g=null}this.#t.set(a,g)}return g!==null&&typeof f=="string"&&g.test(f)}return!1})}dispatchEvent=async(e,n)=>{const{event:{id:s,name:a},eventParams:f,eventOptions:g}=n,{timeout:y}=g??{};if(!s)throw new Error("Event Id is required");const S=this.#e.get(s)||[];return!y||y<=0?(this.#a({eventName:a,scriptingObject:e,eventParams:f,listeners:S,eventOptions:g}),Promise.resolve()):this.#s({eventId:s,eventName:a,scriptingObject:e,eventParams:f,feedbackWaitTime:y,eventOptions:g})};subscribe=e=>{const{eventId:n,callback:s,criteria:a,guestId:f}=e;if(!n)throw new Error("eventId is required");if(!s)throw new Error("Callback is required");const g=this.#e.get(n)||[],y=At();return g.push({token:y,criteria:a,guestId:f,callback:s}),this.#e.set(n,g),y};unsubscribe=e=>{const{eventId:n,token:s}=e;if(!n)throw new Error("eventId id is required");if(s){const a=this.#e.get(n)||[],f=a.findIndex(g=>g.token===s);f>-1&&(a.splice(f,1),this.#e.set(n,a))}else this.#e.delete(n)};unsubscribeAll=()=>{this.#e.clear()};unsubscribeByGuestId=e=>{e&&this.#e.forEach((n,s)=>{const a=n.filter(f=>f.guestId!==e);a.length===0?this.#e.delete(s):a.length!==n.length&&this.#e.set(s,a)})}}const se=Y.p+"assets/frame.4cbbcfa9ded96b660559.html?resource",He="pui-app-container-",q=r=>{const e=r.src??se.default??se,n=R(e);if(!r.queryParams)return n;const s=r.queryParams.replace(/[^a-zA-Z0-9&=_.~%+-]/g,"");return`${n}${n.includes("?")?"&":"?"}${s}`},We=({documentEle:r,hostUrl:e,manifestPath:n,guestId:s})=>{const a=r.getElementById(He);a&&(a.id=`${a.id}${s}`);const f=F(e,n);let g=r.getElementsByTagName("base")?.[0];if(g){g.href=f;return}g=r.createElement("base"),g.href=f,r.getElementsByTagName("head")[0].appendChild(g)},Ke=({id:r,instanceId:e,manifestPath:n,hostUrl:s,options:a})=>new Promise((f,g)=>{const{signal:y}=a;if(y?.aborted){g(new DOMException("iframe creation aborted","AbortError"));return}const S=document.createElement("div");S.setAttribute("style","display: flex;width: 100%;height: 100%;flex-direction: column;overflow: hidden;");const E=document.createElement("iframe");E.setAttribute("id",e),E.setAttribute("data-testid",r),E.setAttribute("title",a.title),E.setAttribute("allowfullscreen","true"),E.setAttribute("allowtransparency","true"),a.permissionPolicy&&E.setAttribute("allow",a.permissionPolicy),a.sandbox&&E.setAttribute("sandbox",a.sandbox),E.setAttribute("style",a.style??"flex-grow: 1;border: none;margin: 0;padding: 0;display: block;min-width: 100%;height: 100%;"),E.setAttribute("src",q(a));const C=1e4;let P=!1,W,H;const N=()=>{clearTimeout(W),y?.removeEventListener("abort",H)},K=()=>y?.aborted?(P||(P=!0,N(),S.remove(),g(new DOMException("iframe creation aborted","AbortError"))),!0):!1;if(H=()=>{K()},K())return;y?.addEventListener("abort",H),W=setTimeout(()=>{P||(P=!0,N(),S.remove(),g(new Error(`iframe for ${r} failed to load within ${C}ms`)))},C),E.addEventListener("error",()=>{P||(P=!0,N(),S.remove(),g(new Error(`iframe for ${r} failed to load`)))}),E.addEventListener("load",()=>{P||K()||E.contentDocument&&(P=!0,N(),We({documentEle:E.contentDocument,hostUrl:s,manifestPath:n,guestId:r}),f(E))}),S.appendChild(E);const{containerId:U}=a;(document.getElementById(U??"")??document.body).appendChild(S)}),Ct=r=>document.getElementById(r),Ee={create:Ke,remove:r=>{const e=Ct(r);e&&e.parentElement?.remove()},get:Ct},Oe=()=>({breakpoints:["512px","768px","1024px","350px"],spaces:["0","4px","8px","12px","16px","32px","48px","56px","64px","72px"],fontSizes:["0.8461rem","0.9230rem","1rem","1.0769rem","1.2307rem","1.3846rem","1.8461rem","2.7692rem"],fontWeights:[100,200,300,400,500,600,700,800,900],lineHeights:["1rem","1.15rem","1.25rem","1.5rem"],letterSpacings:["normal","0.1rem","-0.05rem","0.25rem"],fonts:["proxima-nova, Arial, sans-serif"],colors:{neutral:["#FFFFFF","#F6F7F9","#EBEDF0","#E0E3E8","#CBCFD7","#B0B9C8","#8C93A6","#697489","#464F5C","#353C46","#25292F"],brand:["#F6FBFF","#EBF6FF","#A3D6FF","#52A6EC","#1394E5","#1E79C2","#006AA9","#005181","#C9E7FF"],success:["#E1F4ED","#E1F4ED","#289F6B","#207E56","#185D44"],warning:["#FFEFD8","#E06C29","#B25119","#853C12"],danger:["#FBEBED","#FBEBED","#ED5A64","#C64252","#A11B2B"]},shadows:["0 1px 5px 0 rgba(0, 0, 0, 0.13), 0 2px 4px 0 rgba(0, 0, 0, 0.2)","0 6px 20px 0 rgba(0, 0, 0, 0.24), 0 8px 17px 0 rgba(0, 0, 0, 0.19)","0 12px 15px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19)","0 16px 28px 0 rgba(0, 0, 0, 0.24), 0 25px 55px 0 rgba(0, 0, 0, 0.19)","0 27px 24px 0 rgba(0, 0, 0, 0.24), 0 40px 77px 0 rgba(0, 0, 0, 0.19)"],zIndex:[1e3,2e3,3e3,500,4e3],states:[null,"@media (prefers-reduced-motion: no-preference)","@media (prefers-reduced-motion: reduce)","&:first-child","&:last-child","&:odd","&:even","&:visited","&:checked","&:focus-within","&:hover","&:focus","&:focus-visible","&:active","&:disabled, &[aria-disabled=true]","&::placeholder"]});var rt=Y(7020),Te=Y(4883),Ue=Y.n(Te),Tt=Y(162),Ye=Y.n(Tt);function Pt(r){function e($,I,M,V,b){for(var ee=0,O=0,fe=0,te=0,ie,G,we=0,Ie=0,J,Ce=J=ie=0,re=0,xe=0,yt=0,Se=0,kt=M.length,bt=kt-1,Ne,k="",ge="",pr="",dr="",_e;re<kt;){if(G=M.charCodeAt(re),re===bt&&O+te+fe+ee!==0&&(O!==0&&(G=O===47?10:47),te=fe=ee=0,kt++,bt++),O+te+fe+ee===0){if(re===bt&&(0<xe&&(k=k.replace(W,"")),0<k.trim().length)){switch(G){case 32:case 9:case 59:case 13:case 10:break;default:k+=M.charAt(re)}G=59}switch(G){case 123:for(k=k.trim(),ie=k.charCodeAt(0),J=1,Se=++re;re<kt;){switch(G=M.charCodeAt(re)){case 123:J++;break;case 125:J--;break;case 47:switch(G=M.charCodeAt(re+1)){case 42:case 47:e:{for(Ce=re+1;Ce<bt;++Ce)switch(M.charCodeAt(Ce)){case 47:if(G===42&&M.charCodeAt(Ce-1)===42&&re+2!==Ce){re=Ce+1;break e}break;case 10:if(G===47){re=Ce+1;break e}}re=Ce}}break;case 91:G++;case 40:G++;case 34:case 39:for(;re++<bt&&M.charCodeAt(re)!==G;);}if(J===0)break;re++}switch(J=M.substring(Se,re),ie===0&&(ie=(k=k.replace(P,"").trim()).charCodeAt(0)),ie){case 64:switch(0<xe&&(k=k.replace(W,"")),G=k.charCodeAt(1),G){case 100:case 109:case 115:case 45:xe=I;break;default:xe=gt}if(J=e(I,xe,J,G,b+1),Se=J.length,0<$e&&(xe=n(gt,k,yt),_e=y(3,J,xe,I,De,Me,Se,G,b,V),k=xe.join(""),_e!==void 0&&(Se=(J=_e.trim()).length)===0&&(G=0,J="")),0<Se)switch(G){case 115:k=k.replace(Je,g);case 100:case 109:case 45:J=k+"{"+J+"}";break;case 107:k=k.replace(Z,"$1 $2"),J=k+"{"+J+"}",J=Pe===1||Pe===2&&f("@"+J,3)?"@-webkit-"+J+"@"+J:"@"+J;break;default:J=k+J,V===112&&(J=(ge+=J,""))}else J="";break;default:J=e(I,n(I,k,yt),J,V,b+1)}pr+=J,J=yt=xe=Ce=ie=0,k="",G=M.charCodeAt(++re);break;case 125:case 59:if(k=(0<xe?k.replace(W,""):k).trim(),1<(Se=k.length))switch(Ce===0&&(ie=k.charCodeAt(0),ie===45||96<ie&&123>ie)&&(Se=(k=k.replace(" ",":")).length),0<$e&&(_e=y(1,k,I,$,De,Me,ge.length,V,b,V))!==void 0&&(Se=(k=_e.trim()).length)===0&&(k="\0\0"),ie=k.charCodeAt(0),G=k.charCodeAt(1),ie){case 0:break;case 64:if(G===105||G===99){dr+=k+M.charAt(re);break}default:k.charCodeAt(Se-1)!==58&&(ge+=a(k,ie,G,k.charCodeAt(2)))}yt=xe=Ce=ie=0,k="",G=M.charCodeAt(++re)}}switch(G){case 13:case 10:O===47?O=0:1+ie===0&&V!==107&&0<k.length&&(xe=1,k+="\0"),0<$e*ut&&y(0,k,I,$,De,Me,ge.length,V,b,V),Me=1,De++;break;case 59:case 125:if(O+te+fe+ee===0){Me++;break}default:switch(Me++,Ne=M.charAt(re),G){case 9:case 32:if(te+ee+O===0)switch(we){case 44:case 58:case 9:case 32:Ne="";break;default:G!==32&&(Ne=" ")}break;case 0:Ne="\\0";break;case 12:Ne="\\f";break;case 11:Ne="\\v";break;case 38:te+O+ee===0&&(xe=yt=1,Ne="\f"+Ne);break;case 108:if(te+O+ee+Be===0&&0<Ce)switch(re-Ce){case 2:we===112&&M.charCodeAt(re-3)===58&&(Be=we);case 8:Ie===111&&(Be=Ie)}break;case 58:te+O+ee===0&&(Ce=re);break;case 44:O+fe+te+ee===0&&(xe=1,Ne+="\r");break;case 34:case 39:O===0&&(te=te===G?0:te===0?G:te);break;case 91:te+O+fe===0&&ee++;break;case 93:te+O+fe===0&&ee--;break;case 41:te+O+ee===0&&fe--;break;case 40:if(te+O+ee===0){if(ie===0)switch(2*we+3*Ie){case 533:break;default:ie=1}fe++}break;case 64:O+fe+te+ee+Ce+J===0&&(J=1);break;case 42:case 47:if(!(0<te+ee+fe))switch(O){case 0:switch(2*G+3*M.charCodeAt(re+1)){case 235:O=47;break;case 220:Se=re,O=42}break;case 42:G===47&&we===42&&Se+2!==re&&(M.charCodeAt(Se+2)===33&&(ge+=M.substring(Se,re+1)),Ne="",O=0)}}O===0&&(k+=Ne)}Ie=we,we=G,re++}if(Se=ge.length,0<Se){if(xe=I,0<$e&&(_e=y(2,ge,xe,$,De,Me,Se,V,b,V),_e!==void 0&&(ge=_e).length===0))return dr+ge+pr;if(ge=xe.join(",")+"{"+ge+"}",Pe*Be!==0){switch(Pe!==2||f(ge,2)||(Be=0),Be){case 111:ge=ge.replace(de,":-moz-$1")+ge;break;case 112:ge=ge.replace(be,"::-webkit-input-$1")+ge.replace(be,"::-moz-$1")+ge.replace(be,":-ms-input-$1")+ge}Be=0}}return dr+ge+pr}function n($,I,M){var V=I.trim().split(U);I=V;var b=V.length,ee=$.length;switch(ee){case 0:case 1:var O=0;for($=ee===0?"":$[0]+" ";O<b;++O)I[O]=s($,I[O],M).trim();break;default:var fe=O=0;for(I=[];O<b;++O)for(var te=0;te<ee;++te)I[fe++]=s($[te]+" ",V[O],M).trim()}return I}function s($,I,M){var V=I.charCodeAt(0);switch(33>V&&(V=(I=I.trim()).charCodeAt(0)),V){case 38:return I.replace(ae,"$1"+$.trim());case 58:return $.trim()+I.replace(ae,"$1"+$.trim());default:if(0<1*M&&0<I.indexOf("\f"))return I.replace(ae,($.charCodeAt(0)===58?"":"$1")+$.trim())}return $+I}function a($,I,M,V){var b=$+";",ee=2*I+3*M+4*V;if(ee===944){$=b.indexOf(":",9)+1;var O=b.substring($,b.length-1).trim();return O=b.substring(0,$).trim()+O+";",Pe===1||Pe===2&&f(O,1)?"-webkit-"+O+O:O}if(Pe===0||Pe===2&&!f(b,1))return b;switch(ee){case 1015:return b.charCodeAt(10)===97?"-webkit-"+b+b:b;case 951:return b.charCodeAt(3)===116?"-webkit-"+b+b:b;case 963:return b.charCodeAt(5)===110?"-webkit-"+b+b:b;case 1009:if(b.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+b+b;case 978:return"-webkit-"+b+"-moz-"+b+b;case 1019:case 983:return"-webkit-"+b+"-moz-"+b+"-ms-"+b+b;case 883:if(b.charCodeAt(8)===45)return"-webkit-"+b+b;if(0<b.indexOf("image-set(",11))return b.replace(lt,"$1-webkit-$2")+b;break;case 932:if(b.charCodeAt(4)===45)switch(b.charCodeAt(5)){case 103:return"-webkit-box-"+b.replace("-grow","")+"-webkit-"+b+"-ms-"+b.replace("grow","positive")+b;case 115:return"-webkit-"+b+"-ms-"+b.replace("shrink","negative")+b;case 98:return"-webkit-"+b+"-ms-"+b.replace("basis","preferred-size")+b}return"-webkit-"+b+"-ms-"+b+b;case 964:return"-webkit-"+b+"-ms-flex-"+b+b;case 1023:if(b.charCodeAt(8)!==99)break;return O=b.substring(b.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+O+"-webkit-"+b+"-ms-flex-pack"+O+b;case 1005:return N.test(b)?b.replace(H,":-webkit-")+b.replace(H,":-moz-")+b:b;case 1e3:switch(O=b.substring(13).trim(),I=O.indexOf("-")+1,O.charCodeAt(0)+O.charCodeAt(I)){case 226:O=b.replace(he,"tb");break;case 232:O=b.replace(he,"tb-rl");break;case 220:O=b.replace(he,"lr");break;default:return b}return"-webkit-"+b+"-ms-"+O+b;case 1017:if(b.indexOf("sticky",9)===-1)break;case 975:switch(I=(b=$).length-10,O=(b.charCodeAt(I)===33?b.substring(0,I):b).substring($.indexOf(":",7)+1).trim(),ee=O.charCodeAt(0)+(O.charCodeAt(7)|0)){case 203:if(111>O.charCodeAt(8))break;case 115:b=b.replace(O,"-webkit-"+O)+";"+b;break;case 207:case 102:b=b.replace(O,"-webkit-"+(102<ee?"inline-":"")+"box")+";"+b.replace(O,"-webkit-"+O)+";"+b.replace(O,"-ms-"+O+"box")+";"+b}return b+";";case 938:if(b.charCodeAt(5)===45)switch(b.charCodeAt(6)){case 105:return O=b.replace("-items",""),"-webkit-"+b+"-webkit-box-"+O+"-ms-flex-"+O+b;case 115:return"-webkit-"+b+"-ms-flex-item-"+b.replace(Re,"")+b;default:return"-webkit-"+b+"-ms-flex-line-pack"+b.replace("align-content","").replace(Re,"")+b}break;case 973:case 989:if(b.charCodeAt(3)!==45||b.charCodeAt(4)===122)break;case 931:case 953:if(Qe.test($)===!0)return(O=$.substring($.indexOf(":")+1)).charCodeAt(0)===115?a($.replace("stretch","fill-available"),I,M,V).replace(":fill-available",":stretch"):b.replace(O,"-webkit-"+O)+b.replace(O,"-moz-"+O.replace("fill-",""))+b;break;case 962:if(b="-webkit-"+b+(b.charCodeAt(5)===102?"-ms-"+b:"")+b,M+V===211&&b.charCodeAt(13)===105&&0<b.indexOf("transform",10))return b.substring(0,b.indexOf(";",27)+1).replace(K,"$1-webkit-$2")+b}return b}function f($,I){var M=$.indexOf(I===1?":":"{"),V=$.substring(0,I!==3?M:10);return M=$.substring(M+1,$.length-1),mt(I!==2?V:V.replace(ze,"$1"),M,I)}function g($,I){var M=a(I,I.charCodeAt(0),I.charCodeAt(1),I.charCodeAt(2));return M!==I+";"?M.replace(ct," or ($1)").substring(4):"("+I+")"}function y($,I,M,V,b,ee,O,fe,te,ie){for(var G=0,we=I,Ie;G<$e;++G)switch(Ie=Le[G].call(C,$,we,M,V,b,ee,O,fe,te,ie)){case void 0:case!1:case!0:case null:break;default:we=Ie}if(we!==I)return we}function S($){switch($){case void 0:case null:$e=Le.length=0;break;default:if(typeof $=="function")Le[$e++]=$;else if(typeof $=="object")for(var I=0,M=$.length;I<M;++I)S($[I]);else ut=!!$|0}return S}function E($){return $=$.prefix,$!==void 0&&(mt=null,$?typeof $!="function"?Pe=1:(Pe=2,mt=$):Pe=0),E}function C($,I){var M=$;if(33>M.charCodeAt(0)&&(M=M.trim()),vt=M,M=[vt],0<$e){var V=y(-1,I,M,M,De,Me,0,0,0,0);V!==void 0&&typeof V=="string"&&(I=V)}var b=e(gt,M,I,0,0);return 0<$e&&(V=y(-2,b,M,M,De,Me,b.length,0,0,0),V!==void 0&&(b=V)),vt="",Be=0,Me=De=1,b}var P=/^\0+/g,W=/[\0\r\f]/g,H=/: */g,N=/zoo|gra/,K=/([,: ])(transform)/g,U=/,\r+?/g,ae=/([\t\r\n ])*\f?&/g,Z=/@(k\w+)\s*(\S*)\s*/,be=/::(place)/g,de=/:(read-only)/g,he=/[svh]\w+-[tblr]{2}/,Je=/\(\s*(.*)\s*\)/g,ct=/([\s\S]*?);/g,Re=/-self|flex-/g,ze=/[^]*?(:[rp][el]a[\w-]+)[^]*/,Qe=/stretch|:\s*\w+\-(?:conte|avail)/,lt=/([^-])(image-set\()/,Me=1,De=1,Be=0,Pe=1,gt=[],Le=[],$e=0,mt=null,ut=0,vt="";return C.use=S,C.set=E,r!==void 0&&E(r),C}const It=Pt;var Yt={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};const jt=Yt;function ke(r){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=r(n)),e[n]}}var Ve=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,yr=ke(function(r){return Ve.test(r)||r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)<91}),Vr=Y(4674),Gr=Y.n(Vr),Mt,Hr,Rt,Wr,Kr,Yr;function je(){return(je=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r}).apply(this,arguments)}var br=function(r,e){for(var n=[r[0]],s=0,a=e.length;s<a;s+=1)n.push(e[s],r[s+1]);return n},Xt=function(r){return r!==null&&typeof r=="object"&&(r.toString?r.toString():Object.prototype.toString.call(r))==="[object Object]"&&!(0,rt.typeOf)(r)},$t=Object.freeze([]),Xe=Object.freeze({});function ot(r){return typeof r=="function"}function Zt(r){return r.displayName||r.name||"Component"}function Jt(r){return r&&typeof r.styledComponentId=="string"}var Ze=typeof process<"u"&&!0&&("MISSING_ENV_VAR".REACT_APP_SC_ATTR||"MISSING_ENV_VAR".SC_ATTR)||"data-styled",rs="5.3.11",Qt=typeof window<"u"&&"HTMLElement"in window,Xr=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&("MISSING_ENV_VAR".REACT_APP_SC_DISABLE_SPEEDY!==void 0&&"MISSING_ENV_VAR".REACT_APP_SC_DISABLE_SPEEDY!==""?"MISSING_ENV_VAR".REACT_APP_SC_DISABLE_SPEEDY!=="false"&&"MISSING_ENV_VAR".REACT_APP_SC_DISABLE_SPEEDY:"MISSING_ENV_VAR".SC_DISABLE_SPEEDY!==void 0&&"MISSING_ENV_VAR".SC_DISABLE_SPEEDY!==""&&"MISSING_ENV_VAR".SC_DISABLE_SPEEDY!=="false"&&"MISSING_ENV_VAR".SC_DISABLE_SPEEDY)),Zr=null,ns=null;function ss(){for(var r=arguments.length<=0?void 0:arguments[0],e=[],n=1,s=arguments.length;n<s;n+=1)e.push(n<0||arguments.length<=n?void 0:arguments[n]);return e.forEach(function(a){r=r.replace(/%[a-z]/,a)}),r}function Fe(r){for(var e=arguments.length,n=new Array(e>1?e-1:0),s=1;s<e;s++)n[s-1]=arguments[s];throw new Error("An error occurred. See https://git.io/JUIaE#"+r+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var Jr=function(){function r(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var e=r.prototype;return e.indexOfGroup=function(n){for(var s=0,a=0;a<n;a++)s+=this.groupSizes[a];return s},e.insertRules=function(n,s){if(n>=this.groupSizes.length){for(var a=this.groupSizes,f=a.length,g=f;n>=g;)(g<<=1)<0&&Fe(16,""+n);this.groupSizes=new Uint32Array(g),this.groupSizes.set(a),this.length=g;for(var y=f;y<g;y++)this.groupSizes[y]=0}for(var S=this.indexOfGroup(n+1),E=0,C=s.length;E<C;E++)this.tag.insertRule(S,s[E])&&(this.groupSizes[n]++,S++)},e.clearGroup=function(n){if(n<this.length){var s=this.groupSizes[n],a=this.indexOfGroup(n),f=a+s;this.groupSizes[n]=0;for(var g=a;g<f;g++)this.tag.deleteRule(a)}},e.getGroup=function(n){var s="";if(n>=this.length||this.groupSizes[n]===0)return s;for(var a=this.groupSizes[n],f=this.indexOfGroup(n),g=f+a,y=f;y<g;y++)s+=this.tag.getRule(y)+`/*!sc*/
|
|
9
|
+
`;return s},r}(),Ft=new Map,Dt=new Map,dt=1,Lt=function(r){if(Ft.has(r))return Ft.get(r);for(;Dt.has(dt);)dt++;var e=dt++;return Ft.set(r,e),Dt.set(e,r),e},Qr=function(r){return Dt.get(r)},_r=function(r,e){e>=dt&&(dt=e+1),Ft.set(r,e),Dt.set(e,r)},qr="style["+Ze+'][data-styled-version="5.3.11"]',en=new RegExp("^"+Ze+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),tn=function(r,e,n){for(var s,a=n.split(","),f=0,g=a.length;f<g;f++)(s=a[f])&&r.registerName(e,s)},rn=function(r,e){for(var n=(e.textContent||"").split(`/*!sc*/
|
|
10
|
+
`),s=[],a=0,f=n.length;a<f;a++){var g=n[a].trim();if(g){var y=g.match(en);if(y){var S=0|parseInt(y[1],10),E=y[2];S!==0&&(_r(E,S),tn(r,E,y[3]),r.getTag().insertRules(S,s)),s.length=0}else s.push(g)}}},_t=function(){return Y.nc},wr=function(r){var e=document.head,n=r||e,s=document.createElement("style"),a=function(y){for(var S=y.childNodes,E=S.length;E>=0;E--){var C=S[E];if(C&&C.nodeType===1&&C.hasAttribute(Ze))return C}}(n),f=a!==void 0?a.nextSibling:null;s.setAttribute(Ze,"active"),s.setAttribute("data-styled-version","5.3.11");var g=_t();return g&&s.setAttribute("nonce",g),n.insertBefore(s,f),s},nn=function(){function r(n){var s=this.element=wr(n);s.appendChild(document.createTextNode("")),this.sheet=function(a){if(a.sheet)return a.sheet;for(var f=document.styleSheets,g=0,y=f.length;g<y;g++){var S=f[g];if(S.ownerNode===a)return S}Fe(17)}(s),this.length=0}var e=r.prototype;return e.insertRule=function(n,s){try{return this.sheet.insertRule(s,n),this.length++,!0}catch{return!1}},e.deleteRule=function(n){this.sheet.deleteRule(n),this.length--},e.getRule=function(n){var s=this.sheet.cssRules[n];return s!==void 0&&typeof s.cssText=="string"?s.cssText:""},r}(),sn=function(){function r(n){var s=this.element=wr(n);this.nodes=s.childNodes,this.length=0}var e=r.prototype;return e.insertRule=function(n,s){if(n<=this.length&&n>=0){var a=document.createTextNode(s),f=this.nodes[n];return this.element.insertBefore(a,f||null),this.length++,!0}return!1},e.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},e.getRule=function(n){return n<this.length?this.nodes[n].textContent:""},r}(),on=function(){function r(n){this.rules=[],this.length=0}var e=r.prototype;return e.insertRule=function(n,s){return n<=this.length&&(this.rules.splice(n,0,s),this.length++,!0)},e.deleteRule=function(n){this.rules.splice(n,1),this.length--},e.getRule=function(n){return n<this.length?this.rules[n]:""},r}(),xr=Qt,an={isServer:!Qt,useCSSOMInjection:!Xr},ft=function(){function r(n,s,a){n===void 0&&(n=Xe),s===void 0&&(s={}),this.options=je({},an,{},n),this.gs=s,this.names=new Map(a),this.server=!!n.isServer,!this.server&&Qt&&xr&&(xr=!1,function(f){for(var g=document.querySelectorAll(qr),y=0,S=g.length;y<S;y++){var E=g[y];E&&E.getAttribute(Ze)!=="active"&&(rn(f,E),E.parentNode&&E.parentNode.removeChild(E))}}(this))}r.registerId=function(n){return Lt(n)};var e=r.prototype;return e.reconstructWithOptions=function(n,s){return s===void 0&&(s=!0),new r(je({},this.options,{},n),this.gs,s&&this.names||void 0)},e.allocateGSInstance=function(n){return this.gs[n]=(this.gs[n]||0)+1},e.getTag=function(){return this.tag||(this.tag=(a=(s=this.options).isServer,f=s.useCSSOMInjection,g=s.target,n=a?new on(g):f?new nn(g):new sn(g),new Jr(n)));var n,s,a,f,g},e.hasNameForId=function(n,s){return this.names.has(n)&&this.names.get(n).has(s)},e.registerName=function(n,s){if(Lt(n),this.names.has(n))this.names.get(n).add(s);else{var a=new Set;a.add(s),this.names.set(n,a)}},e.insertRules=function(n,s,a){this.registerName(n,s),this.getTag().insertRules(Lt(n),a)},e.clearNames=function(n){this.names.has(n)&&this.names.get(n).clear()},e.clearRules=function(n){this.getTag().clearGroup(Lt(n)),this.clearNames(n)},e.clearTag=function(){this.tag=void 0},e.toString=function(){return function(n){for(var s=n.getTag(),a=s.length,f="",g=0;g<a;g++){var y=Qr(g);if(y!==void 0){var S=n.names.get(y),E=s.getGroup(g);if(S&&E&&S.size){var C=Ze+".g"+g+'[id="'+y+'"]',P="";S!==void 0&&S.forEach(function(W){W.length>0&&(P+=W+",")}),f+=""+E+C+'{content:"'+P+`"}/*!sc*/
|
|
11
|
+
`}}}return f}(this)},r}(),cn=/(a)(d)/gi,Sr=function(r){return String.fromCharCode(r+(r>25?39:97))};function qt(r){var e,n="";for(e=Math.abs(r);e>52;e=e/52|0)n=Sr(e%52)+n;return(Sr(e%52)+n).replace(cn,"$1-$2")}var at=function(r,e){for(var n=e.length;n;)r=33*r^e.charCodeAt(--n);return r},Ar=function(r){return at(5381,r)};function Er(r){for(var e=0;e<r.length;e+=1){var n=r[e];if(ot(n)&&!Jt(n))return!1}return!0}var ln=Ar("5.3.11"),un=function(){function r(e,n,s){this.rules=e,this.staticRulesId="",this.isStatic=(s===void 0||s.isStatic)&&Er(e),this.componentId=n,this.baseHash=at(ln,n),this.baseStyle=s,ft.registerId(n)}return r.prototype.generateAndInjectStyles=function(e,n,s){var a=this.componentId,f=[];if(this.baseStyle&&f.push(this.baseStyle.generateAndInjectStyles(e,n,s)),this.isStatic&&!s.hash)if(this.staticRulesId&&n.hasNameForId(a,this.staticRulesId))f.push(this.staticRulesId);else{var g=nt(this.rules,e,n,s).join(""),y=qt(at(this.baseHash,g)>>>0);if(!n.hasNameForId(a,y)){var S=s(g,"."+y,void 0,a);n.insertRules(a,y,S)}f.push(y),this.staticRulesId=y}else{for(var E=this.rules.length,C=at(this.baseHash,s.hash),P="",W=0;W<E;W++){var H=this.rules[W];if(typeof H=="string")P+=H;else if(H){var N=nt(H,e,n,s),K=Array.isArray(N)?N.join(""):N;C=at(C,K+W),P+=K}}if(P){var U=qt(C>>>0);if(!n.hasNameForId(a,U)){var ae=s(P,"."+U,void 0,a);n.insertRules(a,U,ae)}f.push(U)}}return f.join(" ")},r}(),pn=/^\s*\/\/.*$/gm,dn=[":","[",".","#"];function Or(r){var e,n,s,a,f=r===void 0?Xe:r,g=f.options,y=g===void 0?Xe:g,S=f.plugins,E=S===void 0?$t:S,C=new It(y),P=[],W=function(K){function U(ae){if(ae)try{K(ae+"}")}catch{}}return function(ae,Z,be,de,he,Je,ct,Re,ze,Qe){switch(ae){case 1:if(ze===0&&Z.charCodeAt(0)===64)return K(Z+";"),"";break;case 2:if(Re===0)return Z+"/*|*/";break;case 3:switch(Re){case 102:case 112:return K(be[0]+Z),"";default:return Z+(Qe===0?"/*|*/":"")}case-2:Z.split("/*|*/}").forEach(U)}}}(function(K){P.push(K)}),H=function(K,U,ae){return U===0&&dn.indexOf(ae[n.length])!==-1||ae.match(a)?K:"."+e};function N(K,U,ae,Z){Z===void 0&&(Z="&");var be=K.replace(pn,""),de=U&&ae?ae+" "+U+" { "+be+" }":be;return e=Z,n=U,s=new RegExp("\\"+n+"\\b","g"),a=new RegExp("(\\"+n+"\\b){2,}"),C(ae||!U?"":U,de)}return C.use([].concat(E,[function(K,U,ae){K===2&&ae.length&&ae[0].lastIndexOf(n)>0&&(ae[0]=ae[0].replace(s,H))},W,function(K){if(K===-2){var U=P;return P=[],U}}])),N.hash=E.length?E.reduce(function(K,U){return U.name||Fe(15),at(K,U.name)},5381).toString():"",N}var er=Ue().createContext(),is=er.Consumer,tr=Ue().createContext(),fn=(tr.Consumer,new ft),rr=Or();function nr(){return(0,Te.useContext)(er)||fn}function Cr(){return(0,Te.useContext)(tr)||rr}function hn(r){var e=(0,Te.useState)(r.stylisPlugins),n=e[0],s=e[1],a=nr(),f=(0,Te.useMemo)(function(){var y=a;return r.sheet?y=r.sheet:r.target&&(y=y.reconstructWithOptions({target:r.target},!1)),r.disableCSSOMInjection&&(y=y.reconstructWithOptions({useCSSOMInjection:!1})),y},[r.disableCSSOMInjection,r.sheet,r.target]),g=(0,Te.useMemo)(function(){return Or({options:{prefix:!r.disableVendorPrefixes},plugins:n})},[r.disableVendorPrefixes,n]);return(0,Te.useEffect)(function(){Ye()(n,r.stylisPlugins)||s(r.stylisPlugins)},[r.stylisPlugins]),Ue().createElement(er.Provider,{value:f},Ue().createElement(tr.Provider,{value:g},r.children))}var Tr=function(){function r(e,n){var s=this;this.inject=function(a,f){f===void 0&&(f=rr);var g=s.name+f.hash;a.hasNameForId(s.id,g)||a.insertRules(s.id,g,f(s.rules,g,"@keyframes"))},this.toString=function(){return Fe(12,String(s.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=n}return r.prototype.getName=function(e){return e===void 0&&(e=rr),this.name+e.hash},r}(),gn=/([A-Z])/,mn=/([A-Z])/g,vn=/^ms-/,yn=function(r){return"-"+r.toLowerCase()};function Pr(r){return gn.test(r)?r.replace(mn,yn).replace(vn,"-ms-"):r}var Ir=function(r){return r==null||r===!1||r===""};function nt(r,e,n,s){if(Array.isArray(r)){for(var a,f=[],g=0,y=r.length;g<y;g+=1)(a=nt(r[g],e,n,s))!==""&&(Array.isArray(a)?f.push.apply(f,a):f.push(a));return f}if(Ir(r))return"";if(Jt(r))return"."+r.styledComponentId;if(ot(r)){if(typeof(E=r)!="function"||E.prototype&&E.prototype.isReactComponent||!e)return r;var S=r(e);return nt(S,e,n,s)}var E;return r instanceof Tr?n?(r.inject(n,s),r.getName(s)):r:Xt(r)?function C(P,W){var H,N,K=[];for(var U in P)P.hasOwnProperty(U)&&!Ir(P[U])&&(Array.isArray(P[U])&&P[U].isCss||ot(P[U])?K.push(Pr(U)+":",P[U],";"):Xt(P[U])?K.push.apply(K,C(P[U],U)):K.push(Pr(U)+": "+(H=U,(N=P[U])==null||typeof N=="boolean"||N===""?"":typeof N!="number"||N===0||H in jt||H.startsWith("--")?String(N).trim():N+"px")+";"));return W?[W+" {"].concat(K,["}"]):K}(r):r.toString()}var jr=function(r){return Array.isArray(r)&&(r.isCss=!0),r};function ht(r){for(var e=arguments.length,n=new Array(e>1?e-1:0),s=1;s<e;s++)n[s-1]=arguments[s];return ot(r)||Xt(r)?jr(nt(br($t,[r].concat(n)))):n.length===0&&r.length===1&&typeof r[0]=="string"?r:jr(nt(br(r,n)))}var os=/invalid hook call/i,as=new Set,cs=function(r,e){if(0)var n,s,a},sr=function(r,e,n){return n===void 0&&(n=Xe),r.theme!==n.theme&&r.theme||e||n.theme},bn=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,wn=/(^-|-$)/g;function ir(r){return r.replace(bn,"-").replace(wn,"")}var or=function(r){return qt(Ar(r)>>>0)};function Nt(r){return typeof r=="string"&&!0}var ar=function(r){return typeof r=="function"||typeof r=="object"&&r!==null&&!Array.isArray(r)},xn=function(r){return r!=="__proto__"&&r!=="constructor"&&r!=="prototype"};function Sn(r,e,n){var s=r[n];ar(e)&&ar(s)?Mr(s,e):r[n]=e}function Mr(r){for(var e=arguments.length,n=new Array(e>1?e-1:0),s=1;s<e;s++)n[s-1]=arguments[s];for(var a=0,f=n;a<f.length;a++){var g=f[a];if(ar(g))for(var y in g)xn(y)&&Sn(r,g[y],y)}return r}var st=Ue().createContext(),ls=st.Consumer;function us(r){var e=Mt(st),n=Hr(function(){return function(s,a){if(!s)return Fe(14);if(ot(s)){var f=s(a);return f}return Array.isArray(s)||typeof s!="object"?Fe(8):a?je({},a,{},s):s}(r.theme,e)},[r.theme,e]);return r.children?Rt.createElement(st.Provider,{value:n},r.children):null}var cr={};function Rr(r,e,n){var s=Jt(r),a=!Nt(r),f=e.attrs,g=f===void 0?$t:f,y=e.componentId,S=y===void 0?function(Z,be){var de=typeof Z!="string"?"sc":ir(Z);cr[de]=(cr[de]||0)+1;var he=de+"-"+or("5.3.11"+de+cr[de]);return be?be+"-"+he:he}(e.displayName,e.parentComponentId):y,E=e.displayName,C=E===void 0?function(Z){return Nt(Z)?"styled."+Z:"Styled("+Zt(Z)+")"}(r):E,P=e.displayName&&e.componentId?ir(e.displayName)+"-"+e.componentId:e.componentId||S,W=s&&r.attrs?Array.prototype.concat(r.attrs,g).filter(Boolean):g,H=e.shouldForwardProp;s&&r.shouldForwardProp&&(H=e.shouldForwardProp?function(Z,be,de){return r.shouldForwardProp(Z,be,de)&&e.shouldForwardProp(Z,be,de)}:r.shouldForwardProp);var N,K=new un(n,P,s?r.componentStyle:void 0),U=K.isStatic&&g.length===0,ae=function(Z,be){return function(de,he,Je,ct){var Re=de.attrs,ze=de.componentStyle,Qe=de.defaultProps,lt=de.foldedComponentIds,Me=de.shouldForwardProp,De=de.styledComponentId,Be=de.target,Pe=function(V,b,ee){V===void 0&&(V=Xe);var O=je({},b,{theme:V}),fe={};return ee.forEach(function(te){var ie,G,we,Ie=te;for(ie in ot(Ie)&&(Ie=Ie(O)),Ie)O[ie]=fe[ie]=ie==="className"?(G=fe[ie],we=Ie[ie],G&&we?G+" "+we:G||we):Ie[ie]}),[O,fe]}(sr(he,(0,Te.useContext)(st),Qe)||Xe,he,Re),gt=Pe[0],Le=Pe[1],$e=function(V,b,ee,O){var fe=nr(),te=Cr(),ie=b?V.generateAndInjectStyles(Xe,fe,te):V.generateAndInjectStyles(ee,fe,te);return ie}(ze,ct,gt,void 0),mt=Je,ut=Le.$as||he.$as||Le.as||he.as||Be,vt=Nt(ut),$=Le!==he?je({},he,{},Le):he,I={};for(var M in $)M[0]!=="$"&&M!=="as"&&(M==="forwardedAs"?I.as=$[M]:(Me?Me(M,yr,ut):!vt||yr(M))&&(I[M]=$[M]));return he.style&&Le.style!==he.style&&(I.style=je({},he.style,{},Le.style)),I.className=Array.prototype.concat(lt,De,$e!==De?$e:null,he.className,Le.className).filter(Boolean).join(" "),I.ref=mt,(0,Te.createElement)(ut,I)}(N,Z,be,U)};return ae.displayName=C,(N=Ue().forwardRef(ae)).attrs=W,N.componentStyle=K,N.displayName=C,N.shouldForwardProp=H,N.foldedComponentIds=s?Array.prototype.concat(r.foldedComponentIds,r.styledComponentId):$t,N.styledComponentId=P,N.target=s?r.target:r,N.withComponent=function(Z){var be=e.componentId,de=function(Je,ct){if(Je==null)return{};var Re,ze,Qe={},lt=Object.keys(Je);for(ze=0;ze<lt.length;ze++)Re=lt[ze],ct.indexOf(Re)>=0||(Qe[Re]=Je[Re]);return Qe}(e,["componentId"]),he=be&&be+"-"+(Nt(Z)?Z:ir(Zt(Z)));return Rr(Z,je({},de,{attrs:W,componentId:he}),n)},Object.defineProperty(N,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(Z){this._foldedDefaultProps=s?Mr({},r.defaultProps,Z):Z}}),Object.defineProperty(N,"toString",{value:function(){return"."+N.styledComponentId}}),a&&Gr()(N,r,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),N}var $r=function(r){return function e(n,s,a){if(a===void 0&&(a=Xe),!(0,rt.isValidElementType)(s))return Fe(1,String(s));var f=function(){return n(s,a,ht.apply(void 0,arguments))};return f.withConfig=function(g){return e(n,s,je({},a,{},g))},f.attrs=function(g){return e(n,s,je({},a,{attrs:Array.prototype.concat(a.attrs,g).filter(Boolean)}))},f}(Rr,r)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(r){$r[r]=$r(r)});var An=function(){function r(n,s){this.rules=n,this.componentId=s,this.isStatic=Er(n),ft.registerId(this.componentId+1)}var e=r.prototype;return e.createStyles=function(n,s,a,f){var g=f(nt(this.rules,s,a,f).join(""),""),y=this.componentId+n;a.insertRules(y,y,g)},e.removeStyles=function(n,s){s.clearRules(this.componentId+n)},e.renderStyles=function(n,s,a,f){n>2&&ft.registerId(this.componentId+n),this.removeStyles(n,a),this.createStyles(n,s,a,f)},r}();function ps(r){for(var e=arguments.length,n=new Array(e>1?e-1:0),s=1;s<e;s++)n[s-1]=arguments[s];var a=ht.apply(void 0,[r].concat(n)),f="sc-global-"+or(JSON.stringify(a)),g=new An(a,f);function y(E){var C=nr(),P=Cr(),W=Mt(st),H=Wr(C.allocateGSInstance(f)).current;return C.server&&S(H,E,C,W,P),Kr(function(){if(!C.server)return S(H,E,C,W,P),function(){return g.removeStyles(H,C)}},[H,E,C,W,P]),null}function S(E,C,P,W,H){if(g.isStatic)g.renderStyles(E,Zr,P,H);else{var N=je({},C,{theme:sr(C,W,y.defaultProps)});g.renderStyles(E,N,P,H)}}return Rt.memo(y)}function ds(r){for(var e=arguments.length,n=new Array(e>1?e-1:0),s=1;s<e;s++)n[s-1]=arguments[s];var a=ht.apply(void 0,[r].concat(n)).join(""),f=or(a);return new Tr(f,a)}var fs=function(){function r(){var n=this;this._emitSheetCSS=function(){var s=n.instance.toString();if(!s)return"";var a=_t();return"<style "+[a&&'nonce="'+a+'"',Ze+'="true"','data-styled-version="5.3.11"'].filter(Boolean).join(" ")+">"+s+"</style>"},this.getStyleTags=function(){return n.sealed?Fe(2):n._emitSheetCSS()},this.getStyleElement=function(){var s;if(n.sealed)return Fe(2);var a=((s={})[Ze]="",s["data-styled-version"]="5.3.11",s.dangerouslySetInnerHTML={__html:n.instance.toString()},s),f=_t();return f&&(a.nonce=f),[Ue().createElement("style",je({},a,{key:"sc-0-0"}))]},this.seal=function(){n.sealed=!0},this.instance=new ft({isServer:!0}),this.sealed=!1}var e=r.prototype;return e.collectStyles=function(n){return this.sealed?Fe(2):Ue().createElement(hn,{sheet:this.instance},n)},e.interleaveWithNodeStream=function(n){return Fe(3)},r}(),hs=function(r){var e=Rt.forwardRef(function(n,s){var a=Mt(st),f=r.defaultProps,g=sr(n,a,f);return Rt.createElement(r,je({},n,{theme:g,ref:s}))});return Yr(e,r),e.displayName="WithTheme("+Zt(r)+")",e},gs=function(){return Mt(st)},ms=null;const vs=null,En=r=>Object.keys(r).reduce((e,n)=>(e[n]=(s,...a)=>ht`
|
|
12
|
+
@media (max-width: ${r[n]}) {
|
|
13
|
+
${ht(s,...a)};
|
|
14
|
+
}
|
|
15
|
+
`,e),{}),On=r=>({space:{...r.spaces,xxxs:r.spaces[1],xxs:r.spaces[2],xxs2:r.spaces[3],xs:r.spaces[4],s:r.spaces[5],m:r.spaces[6],l:r.spaces[7],xl:r.spaces[8],xxl:r.spaces[9]},fontSizes:{...r.fontSizes,title:{500:r.fontSizes[3],600:r.fontSizes[4],700:r.fontSizes[5],800:r.fontSizes[6],900:r.fontSizes[7]},subTitle:{300:r.fontSizes[1],400:r.fontSizes[2]},label:{200:r.fontSizes[0],300:r.fontSizes[1],400:r.fontSizes[2]},value:{300:r.fontSizes[1],400:r.fontSizes[2],500:r.fontSizes[3],600:r.fontSizes[4]},hyperlink:{200:r.fontSizes[0],300:r.fontSizes[1],400:r.fontSizes[2]},microText:{200:r.fontSizes[0]}},fontWeights:{...r.fontWeights,thin:r.fontWeights[0],light:r.fontWeights[1],regular:r.fontWeights[3],semibold:r.fontWeights[5],bold:r.fontWeights[8]},lineHeights:{...r.lineHeights,r:r.lineHeights[0],m:r.lineHeights[1],l:r.lineHeights[2],xl:r.lineHeights[3]},letterSpacings:{normal:r.letterSpacings[0],tracked:r.letterSpacings[1],tight:r.letterSpacings[2],mega:r.letterSpacings[3]},fonts:{...r.fonts,default:r.fonts[0]},colors:{neutral:{"000":r.colors.neutral[0],"050":r.colors.neutral[1],"080":r.colors.neutral[2],100:r.colors.neutral[3],200:r.colors.neutral[4],300:r.colors.neutral[5],400:r.colors.neutral[6],500:r.colors.neutral[7],600:r.colors.neutral[8],700:r.colors.neutral[9],800:r.colors.neutral[10]},brand:{100:r.colors.brand[0],200:r.colors.brand[1],250:r.colors.brand[8],300:r.colors.brand[2],400:r.colors.brand[3],500:r.colors.brand[4],600:r.colors.brand[5],700:r.colors.brand[6],800:r.colors.brand[7]},success:{300:r.colors.success[0],400:r.colors.success[1],600:r.colors.success[2],900:r.colors.success[3],950:r.colors.success[4]},warning:{400:r.colors.warning[0],500:r.colors.warning[1],600:r.colors.warning[1],900:r.colors.warning[2],950:r.colors.warning[3]},danger:{200:r.colors.danger[0],400:r.colors.danger[1],600:r.colors.danger[2],900:r.colors.danger[3],950:r.colors.danger[4]}},shadows:{xs:r.shadows[0],s:r.shadows[1],m:r.shadows[2],l:r.shadows[3],xl:r.shadows[4]},breakpoints:{...r.breakpoints,xsmall:r.breakpoints[3],small:r.breakpoints[0],medium:r.breakpoints[1],large:r.breakpoints[2]},media:En({xsmall:r.breakpoints[3],small:r.breakpoints[0],medium:r.breakpoints[1],large:r.breakpoints[2]}),zIndex:{dialog:r.zIndex[0],popper:r.zIndex[1],tooltip:r.zIndex[2],backdrop:r.zIndex[3],loader:r.zIndex[4]},states:{_:r.states[0],motionSafe:r.states[1],motionReduce:r.states[2],first:r.states[3],last:r.states[4],odd:r.states[5],even:r.states[6],visited:r.states[7],checked:r.states[8],focusWithin:r.states[9],hover:r.states[10],focus:r.states[11],focusVisible:r.states[12],active:r.states[13],disabled:r.states[14],placeholder:r.states[15]}}),Cn=((r=Oe())=>()=>On(r))(),bs=()=>{try{return window.parent.document,window.parent}catch{return window}},lr=()=>({width:Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)}),Fr=r=>Number(r.replace("px","")),Dr=()=>{const{width:r}=lr(),{breakpoints:e}=Cn();return r<=Fr(e.small)?"small":r<=Fr(e.medium)?"medium":"large"},Tn="microFrontendApps",Pn=()=>!0,In=r=>Pn()?!0:String(r).toLowerCase()===Q.PRODUCTION.toLowerCase(),jn=r=>r?new URL(r).pathname:"",Mn=r=>{const e=document.createElement("a");return e.href=r,e.href},Rn=(r,e)=>{const n=e.match(/^(?:\d+\.\d+)*/g);return r.replace(/{SYSTEM_VERSION}/,n&&n[0]||"latest")},Lr=r=>!r||!r.length?!1:r.every(e=>typeof e=="string"),$n=(r,e)=>{const{mode:n=Q.PRODUCTION}=e;if(String(n).toLowerCase()!==Q.PRODUCTION.toLowerCase()&&String(n).toLowerCase()!==Q.DEVELOPMENT.toLowerCase())throw new Error(`invalid mode '${String(n)}' for ${r}`);const{production:s,development:a,microappManager:f=A.APPSDK}=e;if(String(f).toLowerCase()===A.APPSDK.toLowerCase()){if(String(n).toLowerCase()===Q.PRODUCTION.toLowerCase()){if(!s)throw new Error(`microFrontendApps.${r} is missing production section in app.config.json`);if(!Lr(s.files))throw new Error("invalid value for production.files")}if(String(n).toLowerCase()===Q.DEVELOPMENT.toLowerCase()){if(!a)throw new Error(`microFrontendApps.${r} is missing development section in app.config.json`);if(!Lr(a.files))throw new Error("invalid value for development.files")}}},Fn=({id:r,config:e,version:n="latest"})=>{const{mode:s=Q.PRODUCTION,production:a,development:f,...g}=e,y=In(s)?a:f,S=v()({id:r},{name:r,mode:Q.PRODUCTION,manifestPath:"./{SYSTEM_VERSION}/",securityContext:i.USER,isJsModule:!0},g,{mode:s},y);return S.hostUrl=j(Mn(S.hostUrl||"")),S.homeRoute=j(S.homeRoute)||jn(S.hostUrl),S.manifestPath=j(Rn(S.manifestPath,n)),S};class Dn{#e=[];init=({version:e,appConfig:n})=>{const s=n.get(Tn);s&&(this.#e=Object.keys(s).map(a=>($n(a,s[a]),Fn({id:a,config:s[a],version:e}))))};getConfigById=e=>this.#e.find(n=>n.id===e)}const Ln=/^https?:\/\//i,Nn=(r,e)=>{if(!Ln.test(r))return!1;try{return!r.startsWith(new URL(e).href)}catch{return!0}},Un=(r,e)=>{const n=[],s=[];return r.forEach(a=>{Nn(a.href,e)?n.push(a):s.push(a)}),{external:n,local:s}},kn=r=>{if(!r)return;const e=r,n=e.emui?._ASSET_PATH;n&&(e.__webpack_public_path__=new URL("../",n).href)},zn=(r,e)=>{if(!(!r||!e))try{const n=r;n.__webpack_public_path__=new URL("./",e).href}catch{}},Nr=(r,e)=>{if(!r)return;if(r.emui?._ASSET_PATH){kn(r);return}zn(r,e)},Bn="ice-script-";class Ur{#e;constructor(e){this.#e=e}#t=({href:e,isESMModule:n=!0,documentEle:s})=>{const a=s.createElement("link");a.rel=n?"modulepreload":"preload",a.href=e,a.crossOrigin="anonymous",n||(a.as="script"),s.head.appendChild(a)};#r=({id:e,href:n,documentEle:s,isESMModule:a=!0})=>new Promise((f,g)=>{const y=s.createElement("script");y.id=e,y.src=x(n),y.crossOrigin="anonymous",y.nonce="__CSP_NONCE__",!X()&&a?y.type="module":y.async=!1,y.onload=f.bind(null,y.id),y.onerror=S=>{this.#e.error({message:`Error loading script ${y.src}`,exception:new Error(S)}),g(new Error(`Unable to load script ${y.src}`,{cause:new Error(S)}))},s.head.appendChild(y)});#i=async(e,n,s)=>{if(e.length===0)return;const a=e.map(({id:f,href:g})=>this.#r({id:f,href:g,documentEle:n,isESMModule:s}));await Promise.all(a)};#n=async({scripts:e,documentEle:n,isESMModule:s,hostUrl:a})=>{if(e.length===0)return;if(!a){await this.#i(e,n,s);return}const{external:f,local:g}=Un(e,a);await this.#i(f,n,s),Nr(n.defaultView,a),await this.#i(g,n,s)};load=async(e,n)=>{const{documentEle:s,isESMModule:a}=n,f=/^https?:\/\//i,g=e.map((y,S)=>{const E=`${Bn}${n.name.toLowerCase()}-${S}`,C=f.test(y)?y:new URL(y,n.hostUrl).href;return this.#t({href:C,documentEle:s,isESMModule:a}),{id:E,href:C}});return await this.#n({scripts:g,documentEle:s,isESMModule:a,hostUrl:n.hostUrl}),Nr(s.defaultView,n.hostUrl),g.map(y=>y.id)};remove=(e="",n=document)=>new Promise(s=>{const a=n.getElementById(e);if(!a){this.#e.warn(`script with id ${e} not found`),s();return}a.remove(),s()});removeDynamicImportedScripts=(e,n)=>{const s=new RegExp(ce(e),"i"),a=n.getElementsByTagName("script");for(let f=a.length-1;f>=0;f-=1){const g=a[f],{src:y}=g;s.test(y)&&g.remove()}};removePrefetchLinks=(e,n)=>{const s=new RegExp(ce(e),"i"),a=n.querySelectorAll('[rel="prefetch"]');for(let f=a.length-1;f>=0;f-=1){const g=a[f],{href:y}=g;s.test(y)&&g.remove()}}}const Vn="ice-style-";class kr{#e;constructor(e){this.#e=e}#t=({id:e,href:n,documentEle:s})=>new Promise((a,f)=>{const g=s.createElement("link");g.id=e,g.nonce="__CSP_NONCE__",g.rel="stylesheet",g.href=x(n),g.onload=a.bind(null,g.id),g.onerror=y=>{this.#e.error({message:`Error loading stylesheet ${g.href}`,exception:new Error(y)}),f(new Error(`Unable to load stylesheet ${g.href}`,{cause:new Error(y)}))},s.head.appendChild(g)});load=async(e,n)=>{const s=[],a=e.map((f,g)=>{const y=new URL(f,n.hostUrl),S=`${Vn}${n.name.toLowerCase()}-${g}`;return s.push(S),this.#t({id:S,href:y.href,documentEle:n.documentEle})});return await Promise.all(a),s};remove=(e="",n=document)=>new Promise(s=>{const a=n.getElementById(e);if(!a){this.#e.warn(`style with id ${e} not found`),s();return}a.remove(),s()});removeDynamicImportedStyles=(e,n)=>{const s=new RegExp(ce(e),"i"),a=n.querySelectorAll('[rel="stylesheet"]');for(let f=a.length-1;f>=0;f-=1){const g=a[f],{href:y}=g;s.test(y)&&g.remove()}}}const Gn=r=>r.replace(/\/\d+\.\d+/,"/latest"),Hn=r=>{let e;try{e=new URL(r)}catch{return!1}return e.protocol==="http:"||e.protocol==="https:"},ur=new Map,Ut={get:async({hostUrl:r,manifestPath:e})=>{const n=z(r,e),s=ur.get(n);if(s)return s;const a=async f=>{const g=await fetch(f);if(!g.ok)throw new Error(`unable to get manifest ${f}`);if(!(g.headers?.get?.("content-type")??"").includes("application/json"))throw new Error(`manifest ${f} is not a valid json`);const S=await g.json();return ur.set(f,S),S};try{return await a(n)}catch(f){const g=Gn(e);if(e!==g){const y=z(r,g);return await a(y)}throw f}},getFullFileNameofAssets:(r,e=[])=>e.reduce((n,s)=>{const a=r[s];if(a)n.push(a);else if(Hn(s))n.push(s);else throw new Error(`unable to locate ${s} in manifest`);return n},[]),clearCache:()=>ur.clear()},Wn=new Set(["module.unloading","module.unmount"]);class Kn{#e;#t;#r;#i;#n;constructor(e){this.#e=e.guest,this.#t=e.instanceId,this.#r=e?.version||"latest",this.#i=e.soManager,this.#n=e.eventManager}get version(){return this.#r}getObject=e=>{try{const n=this.#i.getObject(e,this.#e);if(!n)return Promise.resolve(null);const s=new Wt(n.id,n.objectType);return Object.keys(n).forEach(a=>{const f=n[a];f instanceof ne?Object.defineProperty(s,a,{value:new ne({name:a,objectId:n.id}),enumerable:!0}):B(f,a)&&Object.defineProperty(s,a,{value:(...g)=>{const y=s[a]?.callContext?.callChain;return Object.defineProperty(f,"callContext",{value:{guest:{...this.#e,instanceId:this.#t},...y?.length?{callChain:y}:{}},configurable:!0,enumerable:!0,writable:!0}),n[a](...g)},enumerable:!0})}),Promise.resolve(s)}catch(n){return Promise.reject(n)}};setAppWindowSize=e=>{const{size:n}=e,s=document.getElementById(this.#t);s&&(s.style.height=`${n.height}px`,s.style.width=`${n.width}px`)};subscribe=e=>this.#n.subscribe({...e,...Wn.has(e.eventId)?{guestId:this.#t}:{}});unsubscribe=e=>{this.#n.unsubscribe(e)}}class Yn{constructor(){window.emui||(window.emui={}),window.emui.registerApp=this.#e}#e=({appId:e,app:n})=>{if(!e)throw new Error("appId is required");if(e==="__proto__"||e==="constructor"||e==="prototype")throw new Error(`Invalid appId: ${e}`);if(!n?.uuid)throw new Error("application uuid is required");if(window.emui[e]=window.emui[e]||[],Array.isArray(window.emui[e])){const s=window.emui[e].findIndex(a=>a.uuid===n.uuid);s>-1?window.emui[e][s]=n:window.emui[e].push(n)}else{let s=window.emui[e];s?.uuid===n.uuid?(s={...s,...n},window.emui[e]=[s]):typeof s.init>"u"?window.emui[e]=[{...s,...n}]:window.emui[e]=[window.emui[e],n]}};get=({id:e,instanceId:n})=>{const s=window.emui?.[e];return Array.isArray(s)?s.find(f=>f.uuid===n)??null:s?.uuid===n?s:null};add=({id:e,instanceId:n,documentEle:s})=>{if(!n)throw new Error(`instanceId (uuid) is required to register application ${e}`);const a={uuid:n,init:null,mount:null,unmount:null},f=window.emui[e];f?Array.isArray(f)?f.push(a):window.emui[e]=[f,a]:window.emui[e]=[a],s.defaultView&&(s.defaultView.emui=s.defaultView.emui??{},s.defaultView.emui.uuid=n)};delete=({id:e,instanceId:n})=>{if(Array.isArray(window.emui[e])){const s=window.emui[e].findIndex(a=>a.uuid===n);s>-1&&window.emui[e].splice(s,1),window.emui[e].length===0&&delete window.emui[e]}else delete window.emui[e]}}const Xn=12e4,Zn="module.unloading",Jn="module.unmount",Qn=1e3,_n=new ve(tt.Module),qn=r=>Array.isArray(r)&&r.some(e=>e===!1),zr=["click","scroll","keypress","touchstart"],es=/\.css$/,Br=r=>es.test(r);class ts{#e;#t;#r;#i;#n;#a=new Dn;#s;#c;#o=new Map;#u=new Map;#p=new Map;#d=new Set;#l=new Yn;#f=!0;constructor(e){const{logger:n}=e;if(!n)throw new Error("logger is required");this.#e=e.logger,this.#t=e.version,this.#f=e.extendSession??!0,this.#n=new le({version:e.version,baseUrl:e.appConfigBaseUrl}),this.#r=new Ur(n),this.#i=new kr(n),this.#s=new Ht,this.#c=new Kt(this.#e)}#w(e){return typeof e=="function"}#x=e=>e instanceof ue||typeof e?.subscribe=="function";#S=(e,n)=>`Application ${e} with instance id ${n} is not found. Most probably the appId property of app.config.json is not set to ${e}`;#A=(e,n=document)=>{const{elementIds:s}=this.#o.get(e)||{};s&&s.forEach(a=>{const f=n.getElementById(a);f&&f.remove()})};#E=({id:e,instanceId:n,documentEle:s,elementIds:a,microFEHost:f,selfInitialize:g})=>{const y=this.#l.get({id:e,instanceId:n});if(!y)throw new Error(this.#S(e,n));this.#o.set(n,{id:e,instanceId:n,elementIds:a,guest:{guestWindow:s?.defaultView,...y},microFEHost:f,selfInitialize:g})};#O=async({id:e,instanceId:n,containerId:s,hostUrl:a,manifestPath:f,homeRoute:g,initialRoute:y,history:S,theme:E,microFEHost:C})=>{const P=this.#l.get({id:e,instanceId:n});if(!P)throw new Error(`Application ${e} with instance id ${n} is not found. Most probably the appId property of app.config.json is not set to ${e}`);if(!P.init||typeof P.init!="function")throw new Error(`Application ${e} with instance id ${n} doesn't expose init method`);const W=C??this.#v({id:e,instanceId:n,containerId:s});return P.init({host:W,hostUrl:a,manifestPath:f,homeRoute:g,initialRoute:y,prevState:null,history:S,theme:E,hostBreakpoint:Dr(),hostViewportSize:lr(),logger:this.#e})};#C=async e=>{try{const{id:n,instanceId:s,files:a,name:f,hostUrl:g,documentEle:y,isJsModule:S}=e;this.#e.debug(`Application ${n} with instance id ${s} is loading...`);let E=a;const C=e.manifest??await Ut.get(e);E=Ut.getFullFileNameofAssets(C,a);const P=E.filter(U=>Br(U)),W=E.filter(U=>!Br(U)),H={name:f,hostUrl:g,documentEle:y,isESMModule:S},[N,K]=await Promise.all([this.#i.load(P,H),this.#r.load(W,H)]);this.#E({id:n,instanceId:s,documentEle:y,elementIds:[...N,...K],microFEHost:e.microFEHost,selfInitialize:e.selfInitialize}),e.selfInitialize||await this.#O(e),this.#e.audit(`Application ${n} with instance id ${s} loaded`)}catch(n){const s=`Application load failed. Unable to load one or more resources for ${e.id} with instance id ${e.instanceId}. ${n.message}`;throw this.#e.error({message:s,appId:e.id,exception:n}),new Error(s)}};#g=({id:e,instanceId:n,hostUrl:s,documentEle:a})=>{this.#e.debug(`Application ${e} with instance id ${n} unloading...`),this.#l.get({id:e,instanceId:n})&&(this.#A(n,a),this.#r.removeDynamicImportedScripts(s,a),this.#r.removePrefetchLinks(s,a),this.#i.removeDynamicImportedStyles(s,a),this.#l.delete({id:e,instanceId:n}),this.#e.audit(`Application ${e} with instance id ${n} unloaded`))};#m=async({id:e,instanceId:n})=>{const s=this.#l.get({id:e,instanceId:n});if(!s?.mount||typeof s?.mount!="function")throw new Error(`Application ${e} with instance id ${n} doesn't expose mount method`);return s.mount({containerId:`${He}${e}`,hostBreakpoint:Dr(),hostViewportSize:lr()})};#T=({id:e,instanceId:n})=>{const s=this.#l.get({id:e,instanceId:n});if(!s?.unmount)return null;if(typeof s.unmount!="function")throw new Error(`Application ${e} with instance id ${n} doesn't expose unmount method`);return s.unmount({containerId:`${He}${e}`})};#P=({id:e,instanceId:n})=>{if(this.#f)try{const s=this.#s.getObject(tt.Application);if(!s){this.#e.warn({message:`Application scripting object not available for ${e} to manage session`});return}const a=this.#o.get(n);if(!a)return;a.keepAlive=Ae()(async()=>{try{await s.keepSessionAlive()}catch(g){this.#e.error(`Error keeping session alive. ${g.message}`)}},Xn);const f=Ee.get(n);zr.forEach(g=>{f?.contentDocument?.addEventListener(g,a.keepAlive)})}catch(s){this.#e.warn({message:`Application scripting object not available for ${e} to manage session`,exception:s})}};#I=(e,n)=>{const s=n?.callContext?.guest;if(s?.instanceId&&this.#o.get(s.instanceId)?.id===e)return s.instanceId;const a=s?.guestWindow,f=Array.from(this.#o.entries()).filter(([,g])=>g.id===e);if(a){const g=f.find(([,y])=>y.guest.guestWindow===a);if(g)return g[0]}return f.length===1?f[0][0]:void 0};#j=(e,n)=>{this.#p.set(n,()=>this.closeApp(n));const s=this.#s.getObject(tt.Module,{id:e}),f=s?._setUnloadHandler;typeof f=="function"&&(this.#d.has(e)||(this.#d.add(e),f.call(s,async()=>{const g=s.unload,y=this.#I(e,typeof g=="function"?g:s);if(!y){this.#e.warn(`Cannot resolve instance for module.unload of ${e}`);return}await this.#p.get(y)?.()})))};#h=(e,n)=>{this.#p.delete(e),[...this.#o.entries()].some(([a,f])=>f.id===n&&a!==e)||this.#d.delete(n)};#M=e=>this.#s.getObject(tt.Module,{id:e});#v=({id:e,instanceId:n,containerId:s})=>new Kn({guest:{id:e},instanceId:n,version:this.#t,containerId:s,logger:this.#e,soManager:this.#s,eventManager:this.#c});#y=async(e,n,s)=>{const a=this.#M(e.id)??_n;return this.#c.dispatchEvent(a,{event:{id:n,name:s},eventParams:{moduleId:e.id},eventOptions:{timeout:Qn,guestId:e.instanceId}})};#R=async e=>{try{const n=await this.#y(e,Zn,"unloading");if(qn(n))return this.#e.info(`Unload denied by guest ${e.id} via module.unloading event`),!1}catch(n){this.#e.warn({message:`Error dispatching module.unloading event for ${e.id}; proceeding with unload`,exception:n})}return!0};#b=async({id:e,instanceId:n,selfInitialize:s})=>{if(!s){await this.#T({id:e,instanceId:n});return}try{await this.#y({id:e,instanceId:n},Jn,"unmount")}catch(a){this.#e.warn({message:`Error dispatching module.unmount event for ${e}`,exception:a})}};#$=e=>{if(!this.#f||!e)return;const{keepAlive:n,instanceId:s}=e;if(n){const f=Ee.get(s)?.contentDocument;f&&zr.forEach(g=>{f.removeEventListener(g,n)}),e.keepAlive?.cancel()}};addScriptingObject=(e,n)=>{if(Ot(e)){const s=this.cloneScriptingObject(e);this.#s.addScriptingObject(s,n)}else this.#s.addScriptingObject(e,n)};cloneScriptingObject=e=>{if(!e)throw new Error("proxy is required");const n=new ve(e.id,e.objectType);let s=[];return Object.keys(e).forEach(a=>{const f=e[a];if(this.#x(f)){const g=new ne({name:f.name||a,objectId:n.id});Object.defineProperty(n,a,{value:g,enumerable:!0});const y=({eventParams:E,eventOptions:C})=>this.dispatchEvent({event:g,eventParams:E,eventOptions:C}),S=f.subscribe(y);s.push(()=>{f.unsubscribe(S)})}else if(this.#w(f)&&(Object.defineProperty(n,a,{value:async(...g)=>{const y=n[a]?.callContext;if(y?.guest){const E=y.callChain??[],C=y.guest,P=C.instanceId??C.id,W=this.#u.get(P),H={id:C.id};W&&(H.metadata=W),Object.defineProperty(f,"callContext",{value:{callChain:[...E,H]},configurable:!0,enumerable:!0,writable:!0})}const S=await f(...g);return Ot(S)?this.cloneScriptingObject(S):S},enumerable:!0}),a==="dispose")){const g=n.dispose;Object.defineProperty(n,a,{value:()=>(n._dispose(),g.apply(n)),enumerable:!0})}}),n._dispose=()=>{s.forEach(a=>{a?.()}),s=[]},n};closeAllApps=async()=>{await Promise.all([...this.#o.keys()].map(this.closeApp))};closeApp=async e=>{if(!e)throw new Error("instanceId is required");const n=this.#o.get(e);if(!n){this.#e.warn(`Application with instance id ${e} is not found`);return}const{id:s,selfInitialize:a}=n;if(!await this.#R({id:s,instanceId:e}))return;const f=this.#a.getConfigById(s);if(!f){this.#e.warn(`Configuration for application ${s} is not found`),this.removeAllScriptingObjects(e),this.#c.unsubscribeByGuestId(e),this.#o.delete(e),this.#u.delete(e),this.#h(e,s),Ee.remove(e);return}const{hostUrl:g}=f,y=Ee.get(e);try{this.#$(n),await this.#b({id:s,instanceId:e,selfInitialize:a})}finally{y?.contentDocument&&this.#g({id:s,instanceId:e,hostUrl:g,documentEle:y.contentDocument}),y&&(y.src="about:blank"),this.removeAllScriptingObjects(e),this.#c.unsubscribeByGuestId(e),this.#o.delete(e),this.#u.delete(e),this.#h(e,s),Ee.remove(e)}};dispatchEvent=async e=>{const{event:{id:n,name:s},eventOptions:a={}}=e,{guestId:f}=a;if(!n)throw new Error("Event Id is required");const g=n.split(".")?.[0],y=f?this.#s.getObject(g,{id:f}):this.#s.getObject(g);return y?this.#c.dispatchEvent(y,e):(this.#e.warn(`Attempt to dispatch event ${s} on unknown object ${g}`),Promise.resolve())};getApp=e=>this.#o.get(e)?.guest;getApps=()=>[...this.#o.values()].map(e=>e.guest);init=async e=>{e?this.#n.setPreloadedConfig(e):await this.#n.load(),this.#a.init({version:this.#t,appConfig:this.#n}),this.#F()};#F=()=>{const e=this.#n.get("microFrontendApps")??{},n=new Set;Object.keys(e).forEach(s=>{const a=this.#a.getConfigById(s);if(a?.hostUrl)try{n.add(new URL(a.hostUrl).origin)}catch{}}),n.forEach(s=>{const a=document.createElement("link");a.rel="preconnect",a.href=s,a.crossOrigin="anonymous",document.head.appendChild(a)})};mountApp=async e=>{if(!e)throw new Error("instanceId is required");const{id:n}=this.#o.get(e)||{};if(!n)throw new Error(`Application with instance id ${e} is not found`);const s=this.#a.getConfigById(n);if(!s)throw new Error(`Application with id ${n} is not found`);await this.#m({...s,instanceId:e})};#D=(e,n,s)=>{const a=this.#v(s),f=e.defaultView;f&&(f.emui=f.emui??{},f.emui.__host=a,f.emui.getHost=()=>f.emui?.__host??null);const g=e.createElement("link");return g.rel="preconnect",g.href=n.hostUrl,g.crossOrigin="anonymous",e.head.appendChild(g),a};openApp=async e=>{const{id:n,frameOptions:s,history:a,theme:f,homeRoute:g,initialRoute:y,metadata:S,selfInitialize:E}=e,C=At();S&&this.#u.set(C,S);const P=this.#a.getConfigById(n);if(!P)throw new Error(`Application ${n} is not found in app config`);const W=Ut.get(P);W.catch(()=>{});const H=await Ee.create({id:n,instanceId:C,manifestPath:P.manifestPath,hostUrl:P.hostUrl,options:{title:P.name,...s}});if(!H?.contentDocument)throw new Error("unable to create iframe for the microapp");try{this.#l.add({id:n,instanceId:C,documentEle:H.contentDocument});const N=this.#D(H.contentDocument,P,{id:n,instanceId:C,containerId:s?.containerId}),K=await W;return await this.#C({instanceId:C,history:a,theme:f,documentEle:H.contentDocument,containerId:s?.containerId,...P,homeRoute:g??P.homeRoute,initialRoute:y,microFEHost:N,selfInitialize:E,manifest:K}),E||await this.#m({instanceId:C,...P}),this.#P({id:n,instanceId:C}),this.#j(n,C),C}catch(N){throw this.#u.delete(C),this.#h(C,n),this.#g({id:n,instanceId:C,hostUrl:P.hostUrl,documentEle:H.contentDocument}),Ee.remove(C),N}};removeAllEventSubscriptions=()=>{this.#c.unsubscribeAll()};removeAllScriptingObjects=e=>{this.#s.removeAllScriptingObjects(e)};removeScriptingObject=(e,n)=>{this.#s.removeScriptingObject(e,n)};warmUp=e=>{const n=this.#a.getConfigById(e);n&&Ut.get(n).catch(()=>{})};unmountApp=async e=>{if(!e)throw new Error("instanceId is required");const n=this.#o.get(e),{id:s,selfInitialize:a}=n||{};if(!s)throw new Error(`Application with instance id ${e} is not found`);if(!this.#a.getConfigById(s))throw new Error(`Application with id ${s} is not found`);await this.#b({id:s,instanceId:e,selfInitialize:a})}}})(),zt})());
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=emuiAppBridge.6e7deac89cbaf79f390b.js.map
|
|
Binary file
|
|
Binary file
|