@elliemae/pui-app-bridge 2.24.0 → 2.25.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/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.87b9f6d6c712609094fd.js +17 -0
- package/dist/public/js/emuiAppBridge.87b9f6d6c712609094fd.js.br +0 -0
- package/dist/public/js/emuiAppBridge.87b9f6d6c712609094fd.js.gz +0 -0
- package/dist/public/js/emuiAppBridge.87b9f6d6c712609094fd.js.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/dist/umd/index.js +7 -15
- 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 +6 -6
- package/dist/public/js/emuiAppBridge.5a6bc2ea1f03ee954a75.js +0 -25
- package/dist/public/js/emuiAppBridge.5a6bc2ea1f03ee954a75.js.br +0 -0
- package/dist/public/js/emuiAppBridge.5a6bc2ea1f03ee954a75.js.gz +0 -0
- package/dist/public/js/emuiAppBridge.5a6bc2ea1f03ee954a75.js.map +0 -1
|
@@ -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.87b9f6d6c712609094fd.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.87b9f6d6c712609094fd.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><script nonce="__CSP_NONCE__">!function(e,t,n,a,c,o,s){e.GoogleAnalyticsObject=c,e[c]=e[c]||function(){(e[c].q=e[c].q||[]).push(arguments)},e[c].l=1*new Date,o=t.createElement(n),s=t.getElementsByTagName(n)[0],o.async=1,o.src="https://www.google-analytics.com/analytics.js",s.parentNode.insertBefore(o,s)}(window,document,"script",0,"ga")</script><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><script nonce="__CSP_NONCE__">!function(e,t,n,a,c,o,s){e.GoogleAnalyticsObject=c,e[c]=e[c]||function(){(e[c].q=e[c].q||[]).push(arguments)},e[c].l=1*new Date,o=t.createElement(n),s=t.getElementsByTagName(n)[0],o.async=1,o.src="https://www.google-analytics.com/analytics.js",s.parentNode.insertBefore(o,s)}(window,document,"script",0,"ga")</script><style nonce="__CSP_NONCE__">.full-width{width:100%}.full-height{height:100%}</style><script defer="defer" src="js/emuiAppBridge.87b9f6d6c712609094fd.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.87b9f6d6c712609094fd.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,_e){typeof exports=="object"&&typeof module=="object"?module.exports=_e(require("React")):typeof define=="function"&&define.amd?define(["React"],_e):typeof exports=="object"?exports.ice=_e(require("React")):wt.ice=_e(wt.React)})(globalThis,fr=>(()=>{var wt={4674(o,p,e){"use strict";var i=e(7020),a={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},f={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},d={};d[i.ForwardRef]=u,d[i.Memo]=f;function g(D){return i.isMemo(D)?f:d[D.$$typeof]||a}var v=Object.defineProperty,x=Object.getOwnPropertyNames,w=Object.getOwnPropertySymbols,T=Object.getOwnPropertyDescriptor,M=Object.getPrototypeOf,$=Object.prototype;function N(D,z,U){if(typeof z!="string"){if($){var ie=M(z);ie&&ie!==$&&N(D,ie,U)}var j=x(z);w&&(j=j.concat(w(z)));for(var ae=g(D),E=g(z),ce=0;ce<j.length;++ce){var le=j[ce];if(!l[le]&&!(U&&U[le])&&!(E&&E[le])&&!(ae&&ae[le])){var ue=T(z,le);try{v(D,le,ue)}catch{}}}}return D}o.exports=N},6869(o,p,e){var i=e(5201),a=e(1736),l=i(a,"DataView");o.exports=l},5748(o,p,e){var i=e(4319),a=e(5931),l=e(1914),u=e(8670),f=e(6646);function d(g){var v=-1,x=g==null?0:g.length;for(this.clear();++v<x;){var w=g[v];this.set(w[0],w[1])}}d.prototype.clear=i,d.prototype.delete=a,d.prototype.get=l,d.prototype.has=u,d.prototype.set=f,o.exports=d},4296(o,p,e){var i=e(651),a=e(3919),l=e(830),u=e(794),f=e(4642);function d(g){var v=-1,x=g==null?0:g.length;for(this.clear();++v<x;){var w=g[v];this.set(w[0],w[1])}}d.prototype.clear=i,d.prototype.delete=a,d.prototype.get=l,d.prototype.has=u,d.prototype.set=f,o.exports=d},4292(o,p,e){var i=e(5201),a=e(1736),l=i(a,"Map");o.exports=l},8464(o,p,e){var i=e(6771),a=e(295),l=e(7462),u=e(9029),f=e(842);function d(g){var v=-1,x=g==null?0:g.length;for(this.clear();++v<x;){var w=g[v];this.set(w[0],w[1])}}d.prototype.clear=i,d.prototype.delete=a,d.prototype.get=l,d.prototype.has=u,d.prototype.set=f,o.exports=d},2715(o,p,e){var i=e(5201),a=e(1736),l=i(a,"Promise");o.exports=l},4265(o,p,e){var i=e(5201),a=e(1736),l=i(a,"Set");o.exports=l},1410(o,p,e){var i=e(4296),a=e(6897),l=e(2345),u=e(3760),f=e(6228),d=e(468);function g(v){var x=this.__data__=new i(v);this.size=x.size}g.prototype.clear=a,g.prototype.delete=l,g.prototype.get=u,g.prototype.has=f,g.prototype.set=d,o.exports=g},5572(o,p,e){var i=e(1736),a=i.Symbol;o.exports=a},2769(o,p,e){var i=e(1736),a=i.Uint8Array;o.exports=a},6696(o,p,e){var i=e(5201),a=e(1736),l=i(a,"WeakMap");o.exports=l},1442(o){function p(e,i,a){switch(a.length){case 0:return e.call(i);case 1:return e.call(i,a[0]);case 2:return e.call(i,a[0],a[1]);case 3:return e.call(i,a[0],a[1],a[2])}return e.apply(i,a)}o.exports=p},9542(o){function p(e,i){for(var a=-1,l=e==null?0:e.length;++a<l&&i(e[a],a,e)!==!1;);return e}o.exports=p},3001(o){function p(e,i){for(var a=-1,l=e==null?0:e.length,u=0,f=[];++a<l;){var d=e[a];i(d,a,e)&&(f[u++]=d)}return f}o.exports=p},1684(o,p,e){var i=e(7967),a=e(4201),l=e(6628),u=e(7103),f=e(1258),d=e(8276),g=Object.prototype,v=g.hasOwnProperty;function x(w,T){var M=l(w),$=!M&&a(w),N=!M&&!$&&u(w),D=!M&&!$&&!N&&d(w),z=M||$||N||D,U=z?i(w.length,String):[],ie=U.length;for(var j in w)(T||v.call(w,j))&&!(z&&(j=="length"||N&&(j=="offset"||j=="parent")||D&&(j=="buffer"||j=="byteLength"||j=="byteOffset")||f(j,ie)))&&U.push(j);return U}o.exports=x},9221(o){function p(e,i){for(var a=-1,l=e==null?0:e.length,u=Array(l);++a<l;)u[a]=i(e[a],a,e);return u}o.exports=p},8255(o){function p(e,i){for(var a=-1,l=i.length,u=e.length;++a<l;)e[u+a]=i[a];return e}o.exports=p},4220(o,p,e){var i=e(9935),a=e(8763);function l(u,f,d){(d!==void 0&&!a(u[f],d)||d===void 0&&!(f in u))&&i(u,f,d)}o.exports=l},484(o,p,e){var i=e(9935),a=e(8763),l=Object.prototype,u=l.hasOwnProperty;function f(d,g,v){var x=d[g];(!(u.call(d,g)&&a(x,v))||v===void 0&&!(g in d))&&i(d,g,v)}o.exports=f},5996(o,p,e){var i=e(8763);function a(l,u){for(var f=l.length;f--;)if(i(l[f][0],u))return f;return-1}o.exports=a},5264(o,p,e){var i=e(4534),a=e(6353);function l(u,f){return u&&i(f,a(f),u)}o.exports=l},7903(o,p,e){var i=e(4534),a=e(3562);function l(u,f){return u&&i(f,a(f),u)}o.exports=l},9935(o,p,e){var i=e(2582);function a(l,u,f){u=="__proto__"&&i?i(l,u,{configurable:!0,enumerable:!0,value:f,writable:!0}):l[u]=f}o.exports=a},444(o,p,e){var i=e(1410),a=e(9542),l=e(484),u=e(5264),f=e(7903),d=e(481),g=e(380),v=e(9116),x=e(7939),w=e(979),T=e(7856),M=e(3423),$=e(5292),N=e(8262),D=e(3798),z=e(6628),U=e(7103),ie=e(5487),j=e(7230),ae=e(9601),E=e(6353),ce=e(3562),le=1,ue=2,re=4,de="[object Arguments]",pe="[object Array]",H="[object Boolean]",xe="[object Date]",Z="[object Error]",ye="[object Function]",He="[object GeneratorFunction]",rt="[object Map]",kt="[object Number]",ve="[object Object]",St="[object RegExp]",dr="[object Set]",hr="[object String]",Ut="[object Symbol]",At="[object WeakMap]",Et="[object ArrayBuffer]",Ct="[object DataView]",zt="[object Float32Array]",Bt="[object Float64Array]",Vt="[object Int8Array]",Tt="[object Int16Array]",Gt="[object Int32Array]",Ot="[object Uint8Array]",ft="[object Uint8ClampedArray]",Ht="[object Uint16Array]",Pt="[object Uint32Array]",oe={};oe[de]=oe[pe]=oe[Et]=oe[Ct]=oe[H]=oe[xe]=oe[zt]=oe[Bt]=oe[Vt]=oe[Tt]=oe[Gt]=oe[rt]=oe[kt]=oe[ve]=oe[St]=oe[dr]=oe[hr]=oe[Ut]=oe[Ot]=oe[ft]=oe[Ht]=oe[Pt]=!0,oe[Z]=oe[ye]=oe[At]=!1;function Re(Q,We,Ee,Ue,nt,ze){var Ce,st=We&le,ot=We&ue,Wt=We&re;if(Ee&&(Ce=nt?Ee(Q,Ue,nt,ze):Ee(Q)),Ce!==void 0)return Ce;if(!j(Q))return Q;var It=z(Q);if(It){if(Ce=$(Q),!st)return g(Q,Ce)}else{var Ke=M(Q),dt=Ke==ye||Ke==He;if(U(Q))return d(Q,st);if(Ke==ve||Ke==de||dt&&!nt){if(Ce=ot||dt?{}:D(Q),!st)return ot?x(Q,f(Ce,Q)):v(Q,u(Ce,Q))}else{if(!oe[Ke])return nt?Q:{};Ce=N(Q,Ke,st)}}ze||(ze=new i);var jt=ze.get(Q);if(jt)return jt;ze.set(Q,Ce),ae(Q)?Q.forEach(function(Be){Ce.add(Re(Be,We,Ee,Be,Q,ze))}):ie(Q)&&Q.forEach(function(Be,Me){Ce.set(Me,Re(Be,We,Ee,Me,Q,ze))});var Kt=Wt?ot?T:w:ot?ce:E,qe=It?void 0:Kt(Q);return a(qe||Q,function(Be,Me){qe&&(Me=Be,Be=Q[Me]),l(Ce,Me,Re(Be,We,Ee,Me,Q,ze))}),Ce}o.exports=Re},1481(o,p,e){var i=e(7230),a=Object.create,l=function(){function u(){}return function(f){if(!i(f))return{};if(a)return a(f);u.prototype=f;var d=new u;return u.prototype=void 0,d}}();o.exports=l},9810(o,p,e){var i=e(34),a=i();o.exports=a},5049(o,p,e){var i=e(6476),a=e(18);function l(u,f){f=i(f,u);for(var d=0,g=f.length;u!=null&&d<g;)u=u[a(f[d++])];return d&&d==g?u:void 0}o.exports=l},8614(o,p,e){var i=e(8255),a=e(6628);function l(u,f,d){var g=f(u);return a(u)?g:i(g,d(u))}o.exports=l},8561(o,p,e){var i=e(5572),a=e(8504),l=e(1567),u="[object Null]",f="[object Undefined]",d=i?i.toStringTag:void 0;function g(v){return v==null?v===void 0?f:u:d&&d in Object(v)?a(v):l(v)}o.exports=g},1157(o){var p=Object.prototype,e=p.hasOwnProperty;function i(a,l){return a!=null&&e.call(a,l)}o.exports=i},3465(o,p,e){var i=e(8561),a=e(8089),l="[object Arguments]";function u(f){return a(f)&&i(f)==l}o.exports=u},9839(o,p,e){var i=e(3423),a=e(8089),l="[object Map]";function u(f){return a(f)&&i(f)==l}o.exports=u},986(o,p,e){var i=e(5085),a=e(9617),l=e(7230),u=e(9716),f=/[\\^$.*+?()[\]{}|]/g,d=/^\[object .+?Constructor\]$/,g=Function.prototype,v=Object.prototype,x=g.toString,w=v.hasOwnProperty,T=RegExp("^"+x.call(w).replace(f,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function M($){if(!l($)||a($))return!1;var N=i($)?T:d;return N.test(u($))}o.exports=M},7217(o,p,e){var i=e(3423),a=e(8089),l="[object Set]";function u(f){return a(f)&&i(f)==l}o.exports=u},3924(o,p,e){var i=e(8561),a=e(3341),l=e(8089),u="[object Arguments]",f="[object Array]",d="[object Boolean]",g="[object Date]",v="[object Error]",x="[object Function]",w="[object Map]",T="[object Number]",M="[object Object]",$="[object RegExp]",N="[object Set]",D="[object String]",z="[object WeakMap]",U="[object ArrayBuffer]",ie="[object DataView]",j="[object Float32Array]",ae="[object Float64Array]",E="[object Int8Array]",ce="[object Int16Array]",le="[object Int32Array]",ue="[object Uint8Array]",re="[object Uint8ClampedArray]",de="[object Uint16Array]",pe="[object Uint32Array]",H={};H[j]=H[ae]=H[E]=H[ce]=H[le]=H[ue]=H[re]=H[de]=H[pe]=!0,H[u]=H[f]=H[U]=H[d]=H[ie]=H[g]=H[v]=H[x]=H[w]=H[T]=H[M]=H[$]=H[N]=H[D]=H[z]=!1;function xe(Z){return l(Z)&&a(Z.length)&&!!H[i(Z)]}o.exports=xe},1009(o,p,e){var i=e(5804),a=e(4407),l=Object.prototype,u=l.hasOwnProperty;function f(d){if(!i(d))return a(d);var g=[];for(var v in Object(d))u.call(d,v)&&v!="constructor"&&g.push(v);return g}o.exports=f},8458(o,p,e){var i=e(7230),a=e(5804),l=e(8716),u=Object.prototype,f=u.hasOwnProperty;function d(g){if(!i(g))return l(g);var v=a(g),x=[];for(var w in g)w=="constructor"&&(v||!f.call(g,w))||x.push(w);return x}o.exports=d},2725(o,p,e){var i=e(1410),a=e(4220),l=e(9810),u=e(2887),f=e(7230),d=e(3562),g=e(2169);function v(x,w,T,M,$){x!==w&&l(w,function(N,D){if($||($=new i),f(N))u(x,w,D,T,v,M,$);else{var z=M?M(g(x,D),N,D+"",x,w,$):void 0;z===void 0&&(z=N),a(x,D,z)}},d)}o.exports=v},2887(o,p,e){var i=e(4220),a=e(481),l=e(8534),u=e(380),f=e(3798),d=e(4201),g=e(6628),v=e(1856),x=e(7103),w=e(5085),T=e(7230),M=e(3506),$=e(8276),N=e(2169),D=e(470);function z(U,ie,j,ae,E,ce,le){var ue=N(U,j),re=N(ie,j),de=le.get(re);if(de){i(U,j,de);return}var pe=ce?ce(ue,re,j+"",U,ie,le):void 0,H=pe===void 0;if(H){var xe=g(re),Z=!xe&&x(re),ye=!xe&&!Z&&$(re);pe=re,xe||Z||ye?g(ue)?pe=ue:v(ue)?pe=u(ue):Z?(H=!1,pe=a(re,!0)):ye?(H=!1,pe=l(re,!0)):pe=[]:M(re)||d(re)?(pe=ue,d(ue)?pe=D(ue):(!T(ue)||w(ue))&&(pe=f(re))):H=!1}H&&(le.set(re,pe),E(pe,re,ae,ce,le),le.delete(re)),i(U,j,pe)}o.exports=z},4959(o,p,e){var i=e(1007),a=e(2036),l=e(5806);function u(f,d){return l(a(f,d,i),f+"")}o.exports=u},5421(o,p,e){var i=e(484),a=e(6476),l=e(1258),u=e(7230),f=e(18);function d(g,v,x,w){if(!u(g))return g;v=a(v,g);for(var T=-1,M=v.length,$=M-1,N=g;N!=null&&++T<M;){var D=f(v[T]),z=x;if(D==="__proto__"||D==="constructor"||D==="prototype")return g;if(T!=$){var U=N[D];z=w?w(U,D,N):void 0,z===void 0&&(z=u(U)?U:l(v[T+1])?[]:{})}i(N,D,z),N=N[D]}return g}o.exports=d},3317(o,p,e){var i=e(7965),a=e(2582),l=e(1007),u=a?function(f,d){return a(f,"toString",{configurable:!0,enumerable:!1,value:i(d),writable:!0})}:l;o.exports=u},7967(o){function p(e,i){for(var a=-1,l=Array(e);++a<e;)l[a]=i(a);return l}o.exports=p},5293(o,p,e){var i=e(5572),a=e(9221),l=e(6628),u=e(3089),f=1/0,d=i?i.prototype:void 0,g=d?d.toString:void 0;function v(x){if(typeof x=="string")return x;if(l(x))return a(x,v)+"";if(u(x))return g?g.call(x):"";var w=x+"";return w=="0"&&1/x==-f?"-0":w}o.exports=v},9605(o,p,e){var i=e(9327),a=/^\s+/;function l(u){return u&&u.slice(0,i(u)+1).replace(a,"")}o.exports=l},6390(o){function p(e){return function(i){return e(i)}}o.exports=p},6476(o,p,e){var i=e(6628),a=e(5749),l=e(1951),u=e(5805);function f(d,g){return i(d)?d:a(d,g)?[d]:l(u(d))}o.exports=f},4428(o,p,e){var i=e(2769);function a(l){var u=new l.constructor(l.byteLength);return new i(u).set(new i(l)),u}o.exports=a},481(o,p,e){o=e.nmd(o);var i=e(1736),a=p&&!p.nodeType&&p,l=a&&!0&&o&&!o.nodeType&&o,u=l&&l.exports===a,f=u?i.Buffer:void 0,d=f?f.allocUnsafe:void 0;function g(v,x){if(x)return v.slice();var w=v.length,T=d?d(w):new v.constructor(w);return v.copy(T),T}o.exports=g},8454(o,p,e){var i=e(4428);function a(l,u){var f=u?i(l.buffer):l.buffer;return new l.constructor(f,l.byteOffset,l.byteLength)}o.exports=a},7202(o){var p=/\w*$/;function e(i){var a=new i.constructor(i.source,p.exec(i));return a.lastIndex=i.lastIndex,a}o.exports=e},8687(o,p,e){var i=e(5572),a=i?i.prototype:void 0,l=a?a.valueOf:void 0;function u(f){return l?Object(l.call(f)):{}}o.exports=u},8534(o,p,e){var i=e(4428);function a(l,u){var f=u?i(l.buffer):l.buffer;return new l.constructor(f,l.byteOffset,l.length)}o.exports=a},380(o){function p(e,i){var a=-1,l=e.length;for(i||(i=Array(l));++a<l;)i[a]=e[a];return i}o.exports=p},4534(o,p,e){var i=e(484),a=e(9935);function l(u,f,d,g){var v=!d;d||(d={});for(var x=-1,w=f.length;++x<w;){var T=f[x],M=g?g(d[T],u[T],T,d,u):void 0;M===void 0&&(M=u[T]),v?a(d,T,M):i(d,T,M)}return d}o.exports=l},9116(o,p,e){var i=e(4534),a=e(7781);function l(u,f){return i(u,a(u),f)}o.exports=l},7939(o,p,e){var i=e(4534),a=e(6438);function l(u,f){return i(u,a(u),f)}o.exports=l},80(o,p,e){var i=e(1736),a=i["__core-js_shared__"];o.exports=a},5834(o,p,e){var i=e(4959),a=e(3025);function l(u){return i(function(f,d){var g=-1,v=d.length,x=v>1?d[v-1]:void 0,w=v>2?d[2]:void 0;for(x=u.length>3&&typeof x=="function"?(v--,x):void 0,w&&a(d[0],d[1],w)&&(x=v<3?void 0:x,v=1),f=Object(f);++g<v;){var T=d[g];T&&u(f,T,g,x)}return f})}o.exports=l},34(o){function p(e){return function(i,a,l){for(var u=-1,f=Object(i),d=l(i),g=d.length;g--;){var v=d[e?g:++u];if(a(f[v],v,f)===!1)break}return i}}o.exports=p},2582(o,p,e){var i=e(5201),a=function(){try{var l=i(Object,"defineProperty");return l({},"",{}),l}catch{}}();o.exports=a},8433(o){var p=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis;o.exports=p},979(o,p,e){var i=e(8614),a=e(7781),l=e(6353);function u(f){return i(f,l,a)}o.exports=u},7856(o,p,e){var i=e(8614),a=e(6438),l=e(3562);function u(f){return i(f,l,a)}o.exports=u},6289(o,p,e){var i=e(9169);function a(l,u){var f=l.__data__;return i(u)?f[typeof u=="string"?"string":"hash"]:f.map}o.exports=a},5201(o,p,e){var i=e(986),a=e(1793);function l(u,f){var d=a(u,f);return i(d)?d:void 0}o.exports=l},2566(o,p,e){var i=e(5300),a=i(Object.getPrototypeOf,Object);o.exports=a},8504(o,p,e){var i=e(5572),a=Object.prototype,l=a.hasOwnProperty,u=a.toString,f=i?i.toStringTag:void 0;function d(g){var v=l.call(g,f),x=g[f];try{g[f]=void 0;var w=!0}catch{}var T=u.call(g);return w&&(v?g[f]=x:delete g[f]),T}o.exports=d},7781(o,p,e){var i=e(3001),a=e(2148),l=Object.prototype,u=l.propertyIsEnumerable,f=Object.getOwnPropertySymbols,d=f?function(g){return g==null?[]:(g=Object(g),i(f(g),function(v){return u.call(g,v)}))}:a;o.exports=d},6438(o,p,e){var i=e(8255),a=e(2566),l=e(7781),u=e(2148),f=Object.getOwnPropertySymbols,d=f?function(g){for(var v=[];g;)i(v,l(g)),g=a(g);return v}:u;o.exports=d},3423(o,p,e){var i=e(6869),a=e(4292),l=e(2715),u=e(4265),f=e(6696),d=e(8561),g=e(9716),v="[object Map]",x="[object Object]",w="[object Promise]",T="[object Set]",M="[object WeakMap]",$="[object DataView]",N=g(i),D=g(a),z=g(l),U=g(u),ie=g(f),j=d;(i&&j(new i(new ArrayBuffer(1)))!=$||a&&j(new a)!=v||l&&j(l.resolve())!=w||u&&j(new u)!=T||f&&j(new f)!=M)&&(j=function(ae){var E=d(ae),ce=E==x?ae.constructor:void 0,le=ce?g(ce):"";if(le)switch(le){case N:return $;case D:return v;case z:return w;case U:return T;case ie:return M}return E}),o.exports=j},1793(o){function p(e,i){return e?.[i]}o.exports=p},6913(o,p,e){var i=e(6476),a=e(4201),l=e(6628),u=e(1258),f=e(3341),d=e(18);function g(v,x,w){x=i(x,v);for(var T=-1,M=x.length,$=!1;++T<M;){var N=d(x[T]);if(!($=v!=null&&w(v,N)))break;v=v[N]}return $||++T!=M?$:(M=v==null?0:v.length,!!M&&f(M)&&u(N,M)&&(l(v)||a(v)))}o.exports=g},4319(o,p,e){var i=e(2919);function a(){this.__data__=i?i(null):{},this.size=0}o.exports=a},5931(o){function p(e){var i=this.has(e)&&delete this.__data__[e];return this.size-=i?1:0,i}o.exports=p},1914(o,p,e){var i=e(2919),a="__lodash_hash_undefined__",l=Object.prototype,u=l.hasOwnProperty;function f(d){var g=this.__data__;if(i){var v=g[d];return v===a?void 0:v}return u.call(g,d)?g[d]:void 0}o.exports=f},8670(o,p,e){var i=e(2919),a=Object.prototype,l=a.hasOwnProperty;function u(f){var d=this.__data__;return i?d[f]!==void 0:l.call(d,f)}o.exports=u},6646(o,p,e){var i=e(2919),a="__lodash_hash_undefined__";function l(u,f){var d=this.__data__;return this.size+=this.has(u)?0:1,d[u]=i&&f===void 0?a:f,this}o.exports=l},5292(o){var p=Object.prototype,e=p.hasOwnProperty;function i(a){var l=a.length,u=new a.constructor(l);return l&&typeof a[0]=="string"&&e.call(a,"index")&&(u.index=a.index,u.input=a.input),u}o.exports=i},8262(o,p,e){var i=e(4428),a=e(8454),l=e(7202),u=e(8687),f=e(8534),d="[object Boolean]",g="[object Date]",v="[object Map]",x="[object Number]",w="[object RegExp]",T="[object Set]",M="[object String]",$="[object Symbol]",N="[object ArrayBuffer]",D="[object DataView]",z="[object Float32Array]",U="[object Float64Array]",ie="[object Int8Array]",j="[object Int16Array]",ae="[object Int32Array]",E="[object Uint8Array]",ce="[object Uint8ClampedArray]",le="[object Uint16Array]",ue="[object Uint32Array]";function re(de,pe,H){var xe=de.constructor;switch(pe){case N:return i(de);case d:case g:return new xe(+de);case D:return a(de,H);case z:case U:case ie:case j:case ae:case E:case ce:case le:case ue:return f(de,H);case v:return new xe;case x:case M:return new xe(de);case w:return l(de);case T:return new xe;case $:return u(de)}}o.exports=re},3798(o,p,e){var i=e(1481),a=e(2566),l=e(5804);function u(f){return typeof f.constructor=="function"&&!l(f)?i(a(f)):{}}o.exports=u},1258(o){var p=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function i(a,l){var u=typeof a;return l=l??p,!!l&&(u=="number"||u!="symbol"&&e.test(a))&&a>-1&&a%1==0&&a<l}o.exports=i},3025(o,p,e){var i=e(8763),a=e(2059),l=e(1258),u=e(7230);function f(d,g,v){if(!u(v))return!1;var x=typeof g;return(x=="number"?a(v)&&l(g,v.length):x=="string"&&g in v)?i(v[g],d):!1}o.exports=f},5749(o,p,e){var i=e(6628),a=e(3089),l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;function f(d,g){if(i(d))return!1;var v=typeof d;return v=="number"||v=="symbol"||v=="boolean"||d==null||a(d)?!0:u.test(d)||!l.test(d)||g!=null&&d in Object(g)}o.exports=f},9169(o){function p(e){var i=typeof e;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?e!=="__proto__":e===null}o.exports=p},9617(o,p,e){var i=e(80),a=function(){var u=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""}();function l(u){return!!a&&a in u}o.exports=l},5804(o){var p=Object.prototype;function e(i){var a=i&&i.constructor,l=typeof a=="function"&&a.prototype||p;return i===l}o.exports=e},651(o){function p(){this.__data__=[],this.size=0}o.exports=p},3919(o,p,e){var i=e(5996),a=Array.prototype,l=a.splice;function u(f){var d=this.__data__,g=i(d,f);if(g<0)return!1;var v=d.length-1;return g==v?d.pop():l.call(d,g,1),--this.size,!0}o.exports=u},830(o,p,e){var i=e(5996);function a(l){var u=this.__data__,f=i(u,l);return f<0?void 0:u[f][1]}o.exports=a},794(o,p,e){var i=e(5996);function a(l){return i(this.__data__,l)>-1}o.exports=a},4642(o,p,e){var i=e(5996);function a(l,u){var f=this.__data__,d=i(f,l);return d<0?(++this.size,f.push([l,u])):f[d][1]=u,this}o.exports=a},6771(o,p,e){var i=e(5748),a=e(4296),l=e(4292);function u(){this.size=0,this.__data__={hash:new i,map:new(l||a),string:new i}}o.exports=u},295(o,p,e){var i=e(6289);function a(l){var u=i(this,l).delete(l);return this.size-=u?1:0,u}o.exports=a},7462(o,p,e){var i=e(6289);function a(l){return i(this,l).get(l)}o.exports=a},9029(o,p,e){var i=e(6289);function a(l){return i(this,l).has(l)}o.exports=a},842(o,p,e){var i=e(6289);function a(l,u){var f=i(this,l),d=f.size;return f.set(l,u),this.size+=f.size==d?0:1,this}o.exports=a},8563(o,p,e){var i=e(4101),a=500;function l(u){var f=i(u,function(g){return d.size===a&&d.clear(),g}),d=f.cache;return f}o.exports=l},2919(o,p,e){var i=e(5201),a=i(Object,"create");o.exports=a},4407(o,p,e){var i=e(5300),a=i(Object.keys,Object);o.exports=a},8716(o){function p(e){var i=[];if(e!=null)for(var a in Object(e))i.push(a);return i}o.exports=p},7728(o,p,e){o=e.nmd(o);var i=e(8433),a=p&&!p.nodeType&&p,l=a&&!0&&o&&!o.nodeType&&o,u=l&&l.exports===a,f=u&&i.process,d=function(){try{var g=l&&l.require&&l.require("util").types;return g||f&&f.binding&&f.binding("util")}catch{}}();o.exports=d},1567(o){var p=Object.prototype,e=p.toString;function i(a){return e.call(a)}o.exports=i},5300(o){function p(e,i){return function(a){return e(i(a))}}o.exports=p},2036(o,p,e){var i=e(1442),a=Math.max;function l(u,f,d){return f=a(f===void 0?u.length-1:f,0),function(){for(var g=arguments,v=-1,x=a(g.length-f,0),w=Array(x);++v<x;)w[v]=g[f+v];v=-1;for(var T=Array(f+1);++v<f;)T[v]=g[v];return T[f]=d(w),i(u,this,T)}}o.exports=l},1736(o,p,e){var i=e(8433),a=typeof self=="object"&&self&&self.Object===Object&&self,l=i||a||Function("return this")();o.exports=l},2169(o){function p(e,i){if(!(i==="constructor"&&typeof e[i]=="function")&&i!="__proto__")return e[i]}o.exports=p},5806(o,p,e){var i=e(3317),a=e(5586),l=a(i);o.exports=l},5586(o){var p=800,e=16,i=Date.now;function a(l){var u=0,f=0;return function(){var d=i(),g=e-(d-f);if(f=d,g>0){if(++u>=p)return arguments[0]}else u=0;return l.apply(void 0,arguments)}}o.exports=a},6897(o,p,e){var i=e(4296);function a(){this.__data__=new i,this.size=0}o.exports=a},2345(o){function p(e){var i=this.__data__,a=i.delete(e);return this.size=i.size,a}o.exports=p},3760(o){function p(e){return this.__data__.get(e)}o.exports=p},6228(o){function p(e){return this.__data__.has(e)}o.exports=p},468(o,p,e){var i=e(4296),a=e(4292),l=e(8464),u=200;function f(d,g){var v=this.__data__;if(v instanceof i){var x=v.__data__;if(!a||x.length<u-1)return x.push([d,g]),this.size=++v.size,this;v=this.__data__=new l(x)}return v.set(d,g),this.size=v.size,this}o.exports=f},1951(o,p,e){var i=e(8563),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l=/\\(\\)?/g,u=i(function(f){var d=[];return f.charCodeAt(0)===46&&d.push(""),f.replace(a,function(g,v,x,w){d.push(x?w.replace(l,"$1"):v||g)}),d});o.exports=u},18(o,p,e){var i=e(3089),a=1/0;function l(u){if(typeof u=="string"||i(u))return u;var f=u+"";return f=="0"&&1/u==-a?"-0":f}o.exports=l},9716(o){var p=Function.prototype,e=p.toString;function i(a){if(a!=null){try{return e.call(a)}catch{}try{return a+""}catch{}}return""}o.exports=i},9327(o){var p=/\s/;function e(i){for(var a=i.length;a--&&p.test(i.charAt(a)););return a}o.exports=e},114(o,p,e){var i=e(444),a=1,l=4;function u(f){return i(f,a|l)}o.exports=u},7965(o){function p(e){return function(){return e}}o.exports=p},2702(o,p,e){var i=e(7230),a=e(1381),l=e(3569),u="Expected a function",f=Math.max,d=Math.min;function g(v,x,w){var T,M,$,N,D,z,U=0,ie=!1,j=!1,ae=!0;if(typeof v!="function")throw new TypeError(u);x=l(x)||0,i(w)&&(ie=!!w.leading,j="maxWait"in w,$=j?f(l(w.maxWait)||0,x):$,ae="trailing"in w?!!w.trailing:ae);function E(Z){var ye=T,He=M;return T=M=void 0,U=Z,N=v.apply(He,ye),N}function ce(Z){return U=Z,D=setTimeout(re,x),ie?E(Z):N}function le(Z){var ye=Z-z,He=Z-U,rt=x-ye;return j?d(rt,$-He):rt}function ue(Z){var ye=Z-z,He=Z-U;return z===void 0||ye>=x||ye<0||j&&He>=$}function re(){var Z=a();if(ue(Z))return de(Z);D=setTimeout(re,le(Z))}function de(Z){return D=void 0,ae&&T?E(Z):(T=M=void 0,N)}function pe(){D!==void 0&&clearTimeout(D),U=0,T=z=M=D=void 0}function H(){return D===void 0?N:de(a())}function xe(){var Z=a(),ye=ue(Z);if(T=arguments,M=this,z=Z,ye){if(D===void 0)return ce(z);if(j)return clearTimeout(D),D=setTimeout(re,x),E(z)}return D===void 0&&(D=setTimeout(re,x)),N}return xe.cancel=pe,xe.flush=H,xe}o.exports=g},8763(o){function p(e,i){return e===i||e!==e&&i!==i}o.exports=p},2249(o,p,e){var i=e(5049);function a(l,u,f){var d=l==null?void 0:i(l,u);return d===void 0?f:d}o.exports=a},7605(o,p,e){var i=e(1157),a=e(6913);function l(u,f){return u!=null&&a(u,f,i)}o.exports=l},1007(o){function p(e){return e}o.exports=p},4201(o,p,e){var i=e(3465),a=e(8089),l=Object.prototype,u=l.hasOwnProperty,f=l.propertyIsEnumerable,d=i(function(){return arguments}())?i:function(g){return a(g)&&u.call(g,"callee")&&!f.call(g,"callee")};o.exports=d},6628(o){var p=Array.isArray;o.exports=p},2059(o,p,e){var i=e(5085),a=e(3341);function l(u){return u!=null&&a(u.length)&&!i(u)}o.exports=l},1856(o,p,e){var i=e(2059),a=e(8089);function l(u){return a(u)&&i(u)}o.exports=l},7103(o,p,e){o=e.nmd(o);var i=e(1736),a=e(4078),l=p&&!p.nodeType&&p,u=l&&!0&&o&&!o.nodeType&&o,f=u&&u.exports===l,d=f?i.Buffer:void 0,g=d?d.isBuffer:void 0,v=g||a;o.exports=v},5085(o,p,e){var i=e(8561),a=e(7230),l="[object AsyncFunction]",u="[object Function]",f="[object GeneratorFunction]",d="[object Proxy]";function g(v){if(!a(v))return!1;var x=i(v);return x==u||x==f||x==l||x==d}o.exports=g},3341(o){var p=9007199254740991;function e(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=p}o.exports=e},5487(o,p,e){var i=e(9839),a=e(6390),l=e(7728),u=l&&l.isMap,f=u?a(u):i;o.exports=f},7230(o){function p(e){var i=typeof e;return e!=null&&(i=="object"||i=="function")}o.exports=p},8089(o){function p(e){return e!=null&&typeof e=="object"}o.exports=p},3506(o,p,e){var i=e(8561),a=e(2566),l=e(8089),u="[object Object]",f=Function.prototype,d=Object.prototype,g=f.toString,v=d.hasOwnProperty,x=g.call(Object);function w(T){if(!l(T)||i(T)!=u)return!1;var M=a(T);if(M===null)return!0;var $=v.call(M,"constructor")&&M.constructor;return typeof $=="function"&&$ instanceof $&&g.call($)==x}o.exports=w},9601(o,p,e){var i=e(7217),a=e(6390),l=e(7728),u=l&&l.isSet,f=u?a(u):i;o.exports=f},3089(o,p,e){var i=e(8561),a=e(8089),l="[object Symbol]";function u(f){return typeof f=="symbol"||a(f)&&i(f)==l}o.exports=u},8276(o,p,e){var i=e(3924),a=e(6390),l=e(7728),u=l&&l.isTypedArray,f=u?a(u):i;o.exports=f},6353(o,p,e){var i=e(1684),a=e(1009),l=e(2059);function u(f){return l(f)?i(f):a(f)}o.exports=u},3562(o,p,e){var i=e(1684),a=e(8458),l=e(2059);function u(f){return l(f)?i(f,!0):a(f)}o.exports=u},4101(o,p,e){var i=e(8464),a="Expected a function";function l(u,f){if(typeof u!="function"||f!=null&&typeof f!="function")throw new TypeError(a);var d=function(){var g=arguments,v=f?f.apply(this,g):g[0],x=d.cache;if(x.has(v))return x.get(v);var w=u.apply(this,g);return d.cache=x.set(v,w)||x,w};return d.cache=new(l.Cache||i),d}l.Cache=i,o.exports=l},277(o,p,e){var i=e(2725),a=e(5834),l=a(function(u,f,d){i(u,f,d)});o.exports=l},1381(o,p,e){var i=e(1736),a=function(){return i.Date.now()};o.exports=a},7181(o,p,e){var i=e(5421);function a(l,u,f){return l==null?l:i(l,u,f)}o.exports=a},2148(o){function p(){return[]}o.exports=p},4078(o){function p(){return!1}o.exports=p},5345(o,p,e){var i=e(2702),a=e(7230),l="Expected a function";function u(f,d,g){var v=!0,x=!0;if(typeof f!="function")throw new TypeError(l);return a(g)&&(v="leading"in g?!!g.leading:v,x="trailing"in g?!!g.trailing:x),i(f,d,{leading:v,maxWait:d,trailing:x})}o.exports=u},3569(o,p,e){var i=e(9605),a=e(7230),l=e(3089),u=NaN,f=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,g=/^0o[0-7]+$/i,v=parseInt;function x(w){if(typeof w=="number")return w;if(l(w))return u;if(a(w)){var T=typeof w.valueOf=="function"?w.valueOf():w;w=a(T)?T+"":T}if(typeof w!="string")return w===0?w:+w;w=i(w);var M=d.test(w);return M||g.test(w)?v(w.slice(2),M?2:8):f.test(w)?u:+w}o.exports=x},470(o,p,e){var i=e(4534),a=e(3562);function l(u){return i(u,a(u))}o.exports=l},5805(o,p,e){var i=e(5293);function a(l){return l==null?"":i(l)}o.exports=a},5360(o,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 e=typeof Symbol=="function"&&Symbol.for,i=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,l=e?Symbol.for("react.fragment"):60107,u=e?Symbol.for("react.strict_mode"):60108,f=e?Symbol.for("react.profiler"):60114,d=e?Symbol.for("react.provider"):60109,g=e?Symbol.for("react.context"):60110,v=e?Symbol.for("react.async_mode"):60111,x=e?Symbol.for("react.concurrent_mode"):60111,w=e?Symbol.for("react.forward_ref"):60112,T=e?Symbol.for("react.suspense"):60113,M=e?Symbol.for("react.suspense_list"):60120,$=e?Symbol.for("react.memo"):60115,N=e?Symbol.for("react.lazy"):60116,D=e?Symbol.for("react.block"):60121,z=e?Symbol.for("react.fundamental"):60117,U=e?Symbol.for("react.responder"):60118,ie=e?Symbol.for("react.scope"):60119;function j(E){if(typeof E=="object"&&E!==null){var ce=E.$$typeof;switch(ce){case i:switch(E=E.type,E){case v:case x:case l:case f:case u:case T:return E;default:switch(E=E&&E.$$typeof,E){case g:case w:case N:case $:case d:return E;default:return ce}}case a:return ce}}}function ae(E){return j(E)===x}p.AsyncMode=v,p.ConcurrentMode=x,p.ContextConsumer=g,p.ContextProvider=d,p.Element=i,p.ForwardRef=w,p.Fragment=l,p.Lazy=N,p.Memo=$,p.Portal=a,p.Profiler=f,p.StrictMode=u,p.Suspense=T,p.isAsyncMode=function(E){return ae(E)||j(E)===v},p.isConcurrentMode=ae,p.isContextConsumer=function(E){return j(E)===g},p.isContextProvider=function(E){return j(E)===d},p.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===i},p.isForwardRef=function(E){return j(E)===w},p.isFragment=function(E){return j(E)===l},p.isLazy=function(E){return j(E)===N},p.isMemo=function(E){return j(E)===$},p.isPortal=function(E){return j(E)===a},p.isProfiler=function(E){return j(E)===f},p.isStrictMode=function(E){return j(E)===u},p.isSuspense=function(E){return j(E)===T},p.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===l||E===x||E===f||E===u||E===T||E===M||typeof E=="object"&&E!==null&&(E.$$typeof===N||E.$$typeof===$||E.$$typeof===d||E.$$typeof===g||E.$$typeof===w||E.$$typeof===z||E.$$typeof===U||E.$$typeof===ie||E.$$typeof===D)},p.typeOf=j},7020(o,p,e){"use strict";o.exports=e(5360)},162(o){o.exports=function(e,i,a,l){var u=a?a.call(l,e,i):void 0;if(u!==void 0)return!!u;if(e===i)return!0;if(typeof e!="object"||!e||typeof i!="object"||!i)return!1;var f=Object.keys(e),d=Object.keys(i);if(f.length!==d.length)return!1;for(var g=Object.prototype.hasOwnProperty.bind(i),v=0;v<f.length;v++){var x=f[v];if(!g(x))return!1;var w=e[x],T=i[x];if(u=a?a.call(l,w,T,x):void 0,u===!1||u===void 0&&w!==T)return!1}return!0}},4883(o){"use strict";o.exports=fr}},_e={};function Y(o){var p=_e[o];if(p!==void 0)return p.exports;var e=_e[o]={id:o,loaded:!1,exports:{}};return wt[o](e,e.exports,Y),e.loaded=!0,e.exports}Y.n=o=>{var p=o&&o.__esModule?()=>o.default:()=>o;return Y.d(p,{a:p}),p},Y.d=(o,p)=>{for(var e in p)Y.o(p,e)&&!Y.o(o,e)&&Object.defineProperty(o,e,{enumerable:!0,get:p[e]})},Y.o=(o,p)=>Object.prototype.hasOwnProperty.call(o,p),Y.r=o=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},Y.nmd=o=>(o.paths=[],o.children||(o.children=[]),o),(()=>{var o;globalThis.importScripts&&(o=globalThis.location+"");var p=globalThis.document;if(!o&&p&&(p.currentScript&&p.currentScript.tagName.toUpperCase()==="SCRIPT"&&(o=p.currentScript.src),!o)){var e=p.getElementsByTagName("script");if(e.length)for(var i=e.length-1;i>-1&&(!o||!/^http(s?):/.test(o));)o=e[i--].src}if(!o)throw new Error("Automatic publicPath is not supported in this browser");o=o.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),Y.p=o+"../"})(),Y.nc=void 0;var Nt={};return(()=>{"use strict";Y.r(Nt),Y.d(Nt,{CAppBridge:()=>Nn,Event:()=>ae,LaunchMode:()=>U,MicroAppManager:()=>ie,ScriptLoader:()=>Fr,ScriptingObject:()=>de,SecurityContext:()=>o,StyleLoader:()=>Dr});var o=(r=>(r.USER="USER",r.PARTNER="PARTNER",r))(o||{}),p=Y(114),e=Y.n(p),i=Y(2249),a=Y.n(i),l=Y(7181),u=Y.n(l),f=Y(7605),d=Y.n(f),g=Y(277),v=Y.n(g);const x=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"}}}}'),w="latest",T=r=>r.replace(/([^:]\/)\/+/g,"$1"),M=r=>{const t=document.createElement("a");return t.href=r,t.href},$=r=>r?.replace?.(/\/?$/,"/"),N=(r,t)=>`${r.replace(/\/+$/,"")}/${t.replace(/^\/+/,"")}`,D=()=>window.navigator.userAgent.includes("jsdom"),z=r=>r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");var U=(r=>(r.DEVELOPMENT="development",r.PRODUCTION="production",r))(U||{}),ie=(r=>(r.SSF="ssf",r.APPSDK="appsdk",r))(ie||{});class j{#e=x;#t;#r;constructor(t){this.#t=t?.version||w,this.#r=$(t?.baseUrl||"")}#o=t=>{const{activeEnv:n,env:s,...c}=t,h=s[n]||{};this.#e=v()({},c,h)};get=(t="",n=null)=>e()(a()(this.#e,t,n));set=(t,n)=>{u()(this.#e,t,n)};has=(t="")=>d()(this.#e,t);#n=()=>{if(!/(?:\/)(\d+\.\d+|latest)(?:\/?)?$/.test(this.#r)){const n=this.#t.match(/^(?:\d+\.\d+)*/g);return $(`${this.#r}${n?.[0]||w}`)}return this.#r};load=async t=>{const n=t??`${this.#n()}app.config.json`;let s;try{s=await fetch(n)}catch(c){if(!t&&this.#t!==w){await this.load(`${this.#r}latest/app.config.json`);return}throw new Error("Failed to fetch app config",{cause:c})}if(s.ok)try{const c=await s.json();this.#o(c)}catch(c){if(!t&&this.#t!==w)await this.load(`${this.#r}latest/app.config.json`);else throw new Error("Failed to parse app config",{cause:c})}else{if(!t&&this.#t!==w){await this.load(`${this.#r}latest/app.config.json`);return}throw new Error("Failed to load app config")}}}class ae{name;objectId;id;constructor(t){const{name:n,objectId:s}=t;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 E{static[Symbol.hasInstance](t){return typeof t=="object"&&t!==null&&"getType"in t&&typeof t.getType=="function"&&t.getType()==="ProxyEvent"}#e;objectId;name;id;getType(){return"ProxyEvent"}constructor(t){const{name:n,objectId:s,eventSrc:c}=t;if(!n)throw new Error("Event name is required");if(!s)throw new Error("Scripting object id is required");if(!c)throw new Error("Event source is required");this.objectId=s,this.name=n,this.#e=c,this.id=`${this.objectId}.${this.name}`.toLowerCase()}subscribe=t=>this.#e.subscribe({eventId:this.id,callback:t});unsubscribe=t=>{this.#e.unsubscribe({eventId:this.id,token:t})}}const ce=r=>r instanceof ae,le=(r,t)=>`${r.toLowerCase()}.${t.toLowerCase()}`,ue="function",re=(r,t)=>typeof r===ue&&!!t&&!t.startsWith("_");class de{#e;#t="Object";constructor(t,n){this.#e=t,this.#t=n||this.#t}get id(){return this.#e}get objectType(){return this.#t}_toJSON=()=>{const t=[],n=[];return Object.keys(this).forEach(s=>{const c=this[s];ce(c)?n.push(s):re(c,s)&&t.push(s)}),{objectId:this.#e,objectType:this.#t,functions:t,events:n}};_dispose=()=>{};dispose=()=>{}}var pe=Y(5345),H=Y.n(pe);const Z={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let ye;const He=new Uint8Array(16);function rt(){if(!ye&&(ye=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ye))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ye(He)}var kt;const ve=[];for(let r=0;r<256;++r)ve.push((r+256).toString(16).slice(1));function St(r,t=0){return ve[r[t+0]]+ve[r[t+1]]+ve[r[t+2]]+ve[r[t+3]]+"-"+ve[r[t+4]]+ve[r[t+5]]+"-"+ve[r[t+6]]+ve[r[t+7]]+"-"+ve[r[t+8]]+ve[r[t+9]]+"-"+ve[r[t+10]]+ve[r[t+11]]+ve[r[t+12]]+ve[r[t+13]]+ve[r[t+14]]+ve[r[t+15]]}function dr(r,t=0){const n=St(r,t);if(!kt(n))throw TypeError("Stringified UUID is invalid");return n}const hr=null;function Ut(r,t,n){if(Z.randomUUID&&!t&&!r)return Z.randomUUID();r=r||{};const s=r.random||(r.rng||rt)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,t){n=n||0;for(let c=0;c<16;++c)t[n+c]=s[c];return t}return St(s)}const At=Ut;var Et=(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))(Et||{});const Ct="module";var zt=(r=>(r.USER="USER",r.PARTNER="PARTNER",r))(zt||{});class Bt{#e=t=>t.trim().toLowerCase();#t=new Map;#r=new Map;#o=t=>{const{so:n,guestId:s}=t,c=this.#e(n.id),h=this.#r.get(s);if(!h)this.#r.set(s,new Map([[c,t]]));else{if(h.has(c))throw new Error(`Scripting Object ${n.id} already exists for guest ${s}`);h.set(c,t)}};#n=({so:t})=>{if(t._dispose&&typeof t._dispose=="function")try{t._dispose()}catch{}};#a=({objectId:t,guestId:n})=>{if(t===Ct&&!n)for(const[,c]of this.#r){const h=c.get(t);if(h)return h}const s=n?this.#r.get(n):null;return s?s.get(t)??null:null};#s=({objectId:t,guestId:n}={})=>{if(n){if(!t){const c=this.#r.get(n);c&&c.forEach(this.#n),this.#r.delete(n);return}const s=this.#r.get(n);if(s){const c=s.get(t);c&&this.#n(c),s.delete(t)}}else t&&this.#r.forEach(s=>{const c=s.get(t);c&&this.#n(c),s.delete(t)})};addScriptingObject=(t,n)=>{const{guestId:s}=n||{};if(!t?.id||!t?._toJSON)throw new Error("Object is not derived from ScriptingObject");const c=this.#e(t.id);if(c===Ct&&!s)throw new Error("Guest id is required to add Module scripting object");if(s){this.#o({so:t,...n,guestId:s});return}if(this.#t.has(c))throw new Error(`Scripting Object ${t.id} already exists`);this.#t.set(c,{so:t,...n})};getObject=(t,n)=>{const s=this.#e(t);let c=this.#a({objectId:s,guestId:n?.id});c=c??this.#t.get(s)??null;const{so:h}=c||{};return h||null};has=(t,n)=>this.getObject(t,n)!==null;listScriptingObjects=t=>{const n=new Set(this.#t.keys()),s=this.#r.get(t);if(s)for(const c of s.keys())n.add(c);return Array.from(n)};removeScriptingObject=(t,n)=>{const s=this.#e(t);if(n)this.#s({objectId:s,guestId:n});else{this.#s({objectId:s});const c=this.#t.get(s);c&&this.#n(c),this.#t.delete(s)}};removeAllScriptingObjects=t=>{t?this.#s({guestId:t}):(this.#t.forEach(this.#n),this.#t.clear())}}class Vt{__TYPE__="Proxy";id;objectType;constructor(t,n){this.id=t,this.objectType=n}}const Tt=r=>r?.constructor?.name==="Proxy"||r?.constructor?.name==="ScriptingObjectProxy"||r?.__TYPE__==="Proxy";class Gt{#e=new Map;#t=new WeakMap;#r;constructor(t){this.#r=t}#o=(t,n)=>{const s=new Promise(c=>{setTimeout(()=>{c()},n)});return Promise.race([t,s])};#n=t=>{const{eventName:n,scriptingObject:s,eventParams:c,listeners:h}=t;h.forEach(m=>{m.criteria&&!(c&&this.#s(c,m.criteria))||Promise.resolve(m.callback({obj:s,eventName:n,eventParams:c})).catch(b=>{this.#r?.warn(`Error in event listener for "${n}": ${b.message}`)})})};#a=async({eventId:t,eventName:n,scriptingObject:s,eventParams:c,feedbackWaitTime:h})=>{const b=(this.#e.get(t)||[]).map(A=>A.criteria&&!(c?this.#s(c,A.criteria):!1)?Promise.resolve():this.#o(A.callback({obj:s,eventName:n,eventParams:c}),h));return(await Promise.all(b)).flat(1/0).filter(A=>A!==void 0)};#s(t,n){return Object.entries(n).every(([s,c])=>{const h=t[s];if("eq"in c)return h===c.eq;if("in"in c)return Array.isArray(c.in)&&c.in.includes(h);if("includes"in c)return Array.isArray(h)&&h.includes(c.includes);if("gt"in c){const m=typeof h=="number"?h:Number(h);return!Number.isNaN(m)&&m>c.gt}if("lt"in c){const m=typeof h=="number"?h:Number(h);return!Number.isNaN(m)&&m<c.lt}if("regex"in c){let m=this.#t.get(c);if(m===void 0){try{m=new RegExp(c.regex)}catch{m=null}this.#t.set(c,m)}return m!==null&&typeof h=="string"&&m.test(h)}return!1})}dispatchEvent=async(t,n)=>{const{event:{id:s,name:c},eventParams:h,eventOptions:m}=n,{timeout:b}=m??{};if(!s)throw new Error("Event Id is required");const S=this.#e.get(s)||[];return!b||b<=0?(this.#n({eventName:c,scriptingObject:t,eventParams:h,listeners:S}),Promise.resolve()):this.#a({eventId:s,eventName:c,scriptingObject:t,eventParams:h,feedbackWaitTime:b})};subscribe=t=>{const{eventId:n,callback:s,criteria:c}=t;if(!n)throw new Error("eventId is required");if(!s)throw new Error("Callback is required");const h=this.#e.get(n)||[],m=At();return h.push({token:m,criteria:c,callback:s}),this.#e.set(n,h),m};unsubscribe=t=>{const{eventId:n,token:s}=t;if(!n)throw new Error("eventId id is required");if(s){const c=this.#e.get(n)||[],h=c.findIndex(m=>m.token===s);h>-1&&(c.splice(h,1),this.#e.set(n,c))}else this.#e.delete(n)};unsubscribeAll=()=>{this.#e.clear()}}const Ot=Y.p+"assets/frame.671d9de68be598da64ca.html?resource",ft="pui-app-container-",Ht=({id:r,instanceId:t,manifestPath:n,hostUrl:s,options:c})=>new Promise((h,m)=>{const b=document.createElement("div");b.setAttribute("style","display: flex;width: 100%;height: 100%;flex-direction: column;overflow: hidden;");const S=document.createElement("iframe");S.setAttribute("id",t),S.setAttribute("data-testid",r),S.setAttribute("title",c.title),S.setAttribute("allowfullscreen","true"),S.setAttribute("allowtransparency","true"),c.permissionPolicy&&S.setAttribute("allow",c.permissionPolicy),c.sandbox&&S.setAttribute("sandbox",c.sandbox),S.setAttribute("style",c.style??"flex-grow: 1;border: none;margin: 0;padding: 0;display: block;min-width: 100%;height: 100%;");const A=c.src??Ot.default??Ot;let O=A;if(c.queryParams){const L=c.queryParams.replace(/[^a-zA-Z0-9&=_.~%+-]/g,"");O=`${A}${A.includes("?")?"&":"?"}${L}`}S.setAttribute("src",O);const F=1e4;let B=!1;const _=setTimeout(()=>{B||(B=!0,m(new Error(`iframe for ${r} failed to load within ${F}ms`)))},F);S.addEventListener("error",()=>{B||(B=!0,clearTimeout(_),m(new Error(`iframe for ${r} failed to load`)))}),S.addEventListener("load",()=>{if(B||!S.contentDocument)return;B=!0,clearTimeout(_);const L=S.contentDocument,ne=L.getElementById(ft);ne&&(ne.id=`${ne.id}${r}`);let W=L.getElementsByTagName("base")?.[0];W?W.href=new URL(n,s).href:(W=L.createElement("base"),W.href=new URL(n,s).href,L.getElementsByTagName("head")[0].appendChild(W)),h(S)}),b.appendChild(S);const{containerId:K}=c;(document.getElementById(K??"")??document.body).appendChild(b)}),Pt=r=>document.getElementById(r),Re={create:Ht,remove:r=>{const t=Pt(r);t&&t.parentElement?.remove()},get:Pt},Q=()=>({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 We=Y(7020),Ee=Y(4883),Ue=Y.n(Ee),nt=Y(162),ze=Y.n(nt);function Ce(r){function t(R,P,I,V,y){for(var q=0,C=0,he=0,ee=0,se,G,we=0,Pe=0,J,Te=J=se=0,te=0,Se=0,bt=0,Ae=0,Lt=I.length,xt=Lt-1,ke,k="",me="",ur="",pr="",Qe;te<Lt;){if(G=I.charCodeAt(te),te===xt&&C+ee+he+q!==0&&(C!==0&&(G=C===47?10:47),ee=he=q=0,Lt++,xt++),C+ee+he+q===0){if(te===xt&&(0<Se&&(k=k.replace(B,"")),0<k.trim().length)){switch(G){case 32:case 9:case 59:case 13:case 10:break;default:k+=I.charAt(te)}G=59}switch(G){case 123:for(k=k.trim(),se=k.charCodeAt(0),J=1,Ae=++te;te<Lt;){switch(G=I.charCodeAt(te)){case 123:J++;break;case 125:J--;break;case 47:switch(G=I.charCodeAt(te+1)){case 42:case 47:e:{for(Te=te+1;Te<xt;++Te)switch(I.charCodeAt(Te)){case 47:if(G===42&&I.charCodeAt(Te-1)===42&&te+2!==Te){te=Te+1;break e}break;case 10:if(G===47){te=Te+1;break e}}te=Te}}break;case 91:G++;case 40:G++;case 34:case 39:for(;te++<xt&&I.charCodeAt(te)!==G;);}if(J===0)break;te++}switch(J=I.substring(Ae,te),se===0&&(se=(k=k.replace(F,"").trim()).charCodeAt(0)),se){case 64:switch(0<Se&&(k=k.replace(B,"")),G=k.charCodeAt(1),G){case 100:case 109:case 115:case 45:Se=P;break;default:Se=mt}if(J=t(P,Se,J,G,y+1),Ae=J.length,0<Fe&&(Se=n(mt,k,bt),Qe=b(3,J,Se,P,Le,je,Ae,G,y,V),k=Se.join(""),Qe!==void 0&&(Ae=(J=Qe.trim()).length)===0&&(G=0,J="")),0<Ae)switch(G){case 115:k=k.replace(Ze,m);case 100:case 109:case 45:J=k+"{"+J+"}";break;case 107:k=k.replace(W,"$1 $2"),J=k+"{"+J+"}",J=Oe===1||Oe===2&&h("@"+J,3)?"@-webkit-"+J+"@"+J:"@"+J;break;default:J=k+J,V===112&&(J=(me+=J,""))}else J="";break;default:J=t(P,n(P,k,bt),J,V,y+1)}ur+=J,J=bt=Se=Te=se=0,k="",G=I.charCodeAt(++te);break;case 125:case 59:if(k=(0<Se?k.replace(B,""):k).trim(),1<(Ae=k.length))switch(Te===0&&(se=k.charCodeAt(0),se===45||96<se&&123>se)&&(Ae=(k=k.replace(" ",":")).length),0<Fe&&(Qe=b(1,k,P,R,Le,je,me.length,V,y,V))!==void 0&&(Ae=(k=Qe.trim()).length)===0&&(k="\0\0"),se=k.charCodeAt(0),G=k.charCodeAt(1),se){case 0:break;case 64:if(G===105||G===99){pr+=k+I.charAt(te);break}default:k.charCodeAt(Ae-1)!==58&&(me+=c(k,se,G,k.charCodeAt(2)))}bt=Se=Te=se=0,k="",G=I.charCodeAt(++te)}}switch(G){case 13:case 10:C===47?C=0:1+se===0&&V!==107&&0<k.length&&(Se=1,k+="\0"),0<Fe*pt&&b(0,k,P,R,Le,je,me.length,V,y,V),je=1,Le++;break;case 59:case 125:if(C+ee+he+q===0){je++;break}default:switch(je++,ke=I.charAt(te),G){case 9:case 32:if(ee+q+C===0)switch(we){case 44:case 58:case 9:case 32:ke="";break;default:G!==32&&(ke=" ")}break;case 0:ke="\\0";break;case 12:ke="\\f";break;case 11:ke="\\v";break;case 38:ee+C+q===0&&(Se=bt=1,ke="\f"+ke);break;case 108:if(ee+C+q+Ge===0&&0<Te)switch(te-Te){case 2:we===112&&I.charCodeAt(te-3)===58&&(Ge=we);case 8:Pe===111&&(Ge=Pe)}break;case 58:ee+C+q===0&&(Te=te);break;case 44:C+he+ee+q===0&&(Se=1,ke+="\r");break;case 34:case 39:C===0&&(ee=ee===G?0:ee===0?G:ee);break;case 91:ee+C+he===0&&q++;break;case 93:ee+C+he===0&&q--;break;case 41:ee+C+q===0&&he--;break;case 40:if(ee+C+q===0){if(se===0)switch(2*we+3*Pe){case 533:break;default:se=1}he++}break;case 64:C+he+ee+q+Te+J===0&&(J=1);break;case 42:case 47:if(!(0<ee+q+he))switch(C){case 0:switch(2*G+3*I.charCodeAt(te+1)){case 235:C=47;break;case 220:Ae=te,C=42}break;case 42:G===47&&we===42&&Ae+2!==te&&(I.charCodeAt(Ae+2)===33&&(me+=I.substring(Ae,te+1)),ke="",C=0)}}C===0&&(k+=ke)}Pe=we,we=G,te++}if(Ae=me.length,0<Ae){if(Se=P,0<Fe&&(Qe=b(2,me,Se,R,Le,je,Ae,V,y,V),Qe!==void 0&&(me=Qe).length===0))return pr+me+ur;if(me=Se.join(",")+"{"+me+"}",Oe*Ge!==0){switch(Oe!==2||h(me,2)||(Ge=0),Ge){case 111:me=me.replace(fe,":-moz-$1")+me;break;case 112:me=me.replace(be,"::-webkit-input-$1")+me.replace(be,"::-moz-$1")+me.replace(be,":-ms-input-$1")+me}Ge=0}}return pr+me+ur}function n(R,P,I){var V=P.trim().split(L);P=V;var y=V.length,q=R.length;switch(q){case 0:case 1:var C=0;for(R=q===0?"":R[0]+" ";C<y;++C)P[C]=s(R,P[C],I).trim();break;default:var he=C=0;for(P=[];C<y;++C)for(var ee=0;ee<q;++ee)P[he++]=s(R[ee]+" ",V[C],I).trim()}return P}function s(R,P,I){var V=P.charCodeAt(0);switch(33>V&&(V=(P=P.trim()).charCodeAt(0)),V){case 38:return P.replace(ne,"$1"+R.trim());case 58:return R.trim()+P.replace(ne,"$1"+R.trim());default:if(0<1*I&&0<P.indexOf("\f"))return P.replace(ne,(R.charCodeAt(0)===58?"":"$1")+R.trim())}return R+P}function c(R,P,I,V){var y=R+";",q=2*P+3*I+4*V;if(q===944){R=y.indexOf(":",9)+1;var C=y.substring(R,y.length-1).trim();return C=y.substring(0,R).trim()+C+";",Oe===1||Oe===2&&h(C,1)?"-webkit-"+C+C:C}if(Oe===0||Oe===2&&!h(y,1))return y;switch(q){case 1015:return y.charCodeAt(10)===97?"-webkit-"+y+y:y;case 951:return y.charCodeAt(3)===116?"-webkit-"+y+y:y;case 963:return y.charCodeAt(5)===110?"-webkit-"+y+y:y;case 1009:if(y.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+y+y;case 978:return"-webkit-"+y+"-moz-"+y+y;case 1019:case 983:return"-webkit-"+y+"-moz-"+y+"-ms-"+y+y;case 883:if(y.charCodeAt(8)===45)return"-webkit-"+y+y;if(0<y.indexOf("image-set(",11))return y.replace(ut,"$1-webkit-$2")+y;break;case 932:if(y.charCodeAt(4)===45)switch(y.charCodeAt(5)){case 103:return"-webkit-box-"+y.replace("-grow","")+"-webkit-"+y+"-ms-"+y.replace("grow","positive")+y;case 115:return"-webkit-"+y+"-ms-"+y.replace("shrink","negative")+y;case 98:return"-webkit-"+y+"-ms-"+y.replace("basis","preferred-size")+y}return"-webkit-"+y+"-ms-"+y+y;case 964:return"-webkit-"+y+"-ms-flex-"+y+y;case 1023:if(y.charCodeAt(8)!==99)break;return C=y.substring(y.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+C+"-webkit-"+y+"-ms-flex-pack"+C+y;case 1005:return K.test(y)?y.replace(_,":-webkit-")+y.replace(_,":-moz-")+y:y;case 1e3:switch(C=y.substring(13).trim(),P=C.indexOf("-")+1,C.charCodeAt(0)+C.charCodeAt(P)){case 226:C=y.replace(ge,"tb");break;case 232:C=y.replace(ge,"tb-rl");break;case 220:C=y.replace(ge,"lr");break;default:return y}return"-webkit-"+y+"-ms-"+C+y;case 1017:if(y.indexOf("sticky",9)===-1)break;case 975:switch(P=(y=R).length-10,C=(y.charCodeAt(P)===33?y.substring(0,P):y).substring(R.indexOf(":",7)+1).trim(),q=C.charCodeAt(0)+(C.charCodeAt(7)|0)){case 203:if(111>C.charCodeAt(8))break;case 115:y=y.replace(C,"-webkit-"+C)+";"+y;break;case 207:case 102:y=y.replace(C,"-webkit-"+(102<q?"inline-":"")+"box")+";"+y.replace(C,"-webkit-"+C)+";"+y.replace(C,"-ms-"+C+"box")+";"+y}return y+";";case 938:if(y.charCodeAt(5)===45)switch(y.charCodeAt(6)){case 105:return C=y.replace("-items",""),"-webkit-"+y+"-webkit-box-"+C+"-ms-flex-"+C+y;case 115:return"-webkit-"+y+"-ms-flex-item-"+y.replace($e,"")+y;default:return"-webkit-"+y+"-ms-flex-line-pack"+y.replace("align-content","").replace($e,"")+y}break;case 973:case 989:if(y.charCodeAt(3)!==45||y.charCodeAt(4)===122)break;case 931:case 953:if(Je.test(R)===!0)return(C=R.substring(R.indexOf(":")+1)).charCodeAt(0)===115?c(R.replace("stretch","fill-available"),P,I,V).replace(":fill-available",":stretch"):y.replace(C,"-webkit-"+C)+y.replace(C,"-moz-"+C.replace("fill-",""))+y;break;case 962:if(y="-webkit-"+y+(y.charCodeAt(5)===102?"-ms-"+y:"")+y,I+V===211&&y.charCodeAt(13)===105&&0<y.indexOf("transform",10))return y.substring(0,y.indexOf(";",27)+1).replace(X,"$1-webkit-$2")+y}return y}function h(R,P){var I=R.indexOf(P===1?":":"{"),V=R.substring(0,P!==3?I:10);return I=R.substring(I+1,R.length-1),vt(P!==2?V:V.replace(Ve,"$1"),I,P)}function m(R,P){var I=c(P,P.charCodeAt(0),P.charCodeAt(1),P.charCodeAt(2));return I!==P+";"?I.replace(lt," or ($1)").substring(4):"("+P+")"}function b(R,P,I,V,y,q,C,he,ee,se){for(var G=0,we=P,Pe;G<Fe;++G)switch(Pe=Ne[G].call(O,R,we,I,V,y,q,C,he,ee,se)){case void 0:case!1:case!0:case null:break;default:we=Pe}if(we!==P)return we}function S(R){switch(R){case void 0:case null:Fe=Ne.length=0;break;default:if(typeof R=="function")Ne[Fe++]=R;else if(typeof R=="object")for(var P=0,I=R.length;P<I;++P)S(R[P]);else pt=!!R|0}return S}function A(R){return R=R.prefix,R!==void 0&&(vt=null,R?typeof R!="function"?Oe=1:(Oe=2,vt=R):Oe=0),A}function O(R,P){var I=R;if(33>I.charCodeAt(0)&&(I=I.trim()),yt=I,I=[yt],0<Fe){var V=b(-1,P,I,I,Le,je,0,0,0,0);V!==void 0&&typeof V=="string"&&(P=V)}var y=t(mt,I,P,0,0);return 0<Fe&&(V=b(-2,y,I,I,Le,je,y.length,0,0,0),V!==void 0&&(y=V)),yt="",Ge=0,je=Le=1,y}var F=/^\0+/g,B=/[\0\r\f]/g,_=/: */g,K=/zoo|gra/,X=/([,: ])(transform)/g,L=/,\r+?/g,ne=/([\t\r\n ])*\f?&/g,W=/@(k\w+)\s*(\S*)\s*/,be=/::(place)/g,fe=/:(read-only)/g,ge=/[svh]\w+-[tblr]{2}/,Ze=/\(\s*(.*)\s*\)/g,lt=/([\s\S]*?);/g,$e=/-self|flex-/g,Ve=/[^]*?(:[rp][el]a[\w-]+)[^]*/,Je=/stretch|:\s*\w+\-(?:conte|avail)/,ut=/([^-])(image-set\()/,je=1,Le=1,Ge=0,Oe=1,mt=[],Ne=[],Fe=0,vt=null,pt=0,yt="";return O.use=S,O.set=A,r!==void 0&&A(r),O}const st=Ce;var ot={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 Wt=ot;function It(r){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=r(n)),t[n]}}var Ke=/^((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)-.*))$/,dt=It(function(r){return Ke.test(r)||r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)<91}),jt=Y(4674),Kt=Y.n(jt),qe,Be,Me,Ur,zr,Br;function Ie(){return(Ie=Object.assign||function(r){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r}).apply(this,arguments)}var gr=function(r,t){for(var n=[r[0]],s=0,c=t.length;s<c;s+=1)n.push(t[s],r[s+1]);return n},Yt=function(r){return r!==null&&typeof r=="object"&&(r.toString?r.toString():Object.prototype.toString.call(r))==="[object Object]"&&!(0,We.typeOf)(r)},Rt=Object.freeze([]),Ye=Object.freeze({});function it(r){return typeof r=="function"}function Xt(r){return r.displayName||r.name||"Component"}function Zt(r){return r&&typeof r.styledComponentId=="string"}var Xe=typeof process<"u"&&!0&&("MISSING_ENV_VAR".REACT_APP_SC_ATTR||"MISSING_ENV_VAR".SC_ATTR)||"data-styled",kn="5.3.11",Jt=typeof window<"u"&&"HTMLElement"in window,Vr=!!(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)),Gr={},Un={};function zn(){for(var r=arguments.length<=0?void 0:arguments[0],t=[],n=1,s=arguments.length;n<s;n+=1)t.push(n<0||arguments.length<=n?void 0:arguments[n]);return t.forEach(function(c){r=r.replace(/%[a-z]/,c)}),r}function De(r){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;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 Hr=function(){function r(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var t=r.prototype;return t.indexOfGroup=function(n){for(var s=0,c=0;c<n;c++)s+=this.groupSizes[c];return s},t.insertRules=function(n,s){if(n>=this.groupSizes.length){for(var c=this.groupSizes,h=c.length,m=h;n>=m;)(m<<=1)<0&&De(16,""+n);this.groupSizes=new Uint32Array(m),this.groupSizes.set(c),this.length=m;for(var b=h;b<m;b++)this.groupSizes[b]=0}for(var S=this.indexOfGroup(n+1),A=0,O=s.length;A<O;A++)this.tag.insertRule(S,s[A])&&(this.groupSizes[n]++,S++)},t.clearGroup=function(n){if(n<this.length){var s=this.groupSizes[n],c=this.indexOfGroup(n),h=c+s;this.groupSizes[n]=0;for(var m=c;m<h;m++)this.tag.deleteRule(c)}},t.getGroup=function(n){var s="";if(n>=this.length||this.groupSizes[n]===0)return s;for(var c=this.groupSizes[n],h=this.indexOfGroup(n),m=h+c,b=h;b<m;b++)s+=this.tag.getRule(b)+`/*!sc*/
|
|
9
|
+
`;return s},r}(),Mt=new Map,$t=new Map,ht=1,Ft=function(r){if(Mt.has(r))return Mt.get(r);for(;$t.has(ht);)ht++;var t=ht++;return Mt.set(r,t),$t.set(t,r),t},Wr=function(r){return $t.get(r)},Kr=function(r,t){t>=ht&&(ht=t+1),Mt.set(r,t),$t.set(t,r)},Yr="style["+Xe+'][data-styled-version="5.3.11"]',Xr=new RegExp("^"+Xe+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Zr=function(r,t,n){for(var s,c=n.split(","),h=0,m=c.length;h<m;h++)(s=c[h])&&r.registerName(t,s)},Jr=function(r,t){for(var n=(t.textContent||"").split(`/*!sc*/
|
|
10
|
+
`),s=[],c=0,h=n.length;c<h;c++){var m=n[c].trim();if(m){var b=m.match(Xr);if(b){var S=0|parseInt(b[1],10),A=b[2];S!==0&&(Kr(A,S),Zr(r,A,b[3]),r.getTag().insertRules(S,s)),s.length=0}else s.push(m)}}},Qt=function(){return Y.nc},mr=function(r){var t=document.head,n=r||t,s=document.createElement("style"),c=function(b){for(var S=b.childNodes,A=S.length;A>=0;A--){var O=S[A];if(O&&O.nodeType===1&&O.hasAttribute(Xe))return O}}(n),h=c!==void 0?c.nextSibling:null;s.setAttribute(Xe,"active"),s.setAttribute("data-styled-version","5.3.11");var m=Qt();return m&&s.setAttribute("nonce",m),n.insertBefore(s,h),s},Qr=function(){function r(n){var s=this.element=mr(n);s.appendChild(document.createTextNode("")),this.sheet=function(c){if(c.sheet)return c.sheet;for(var h=document.styleSheets,m=0,b=h.length;m<b;m++){var S=h[m];if(S.ownerNode===c)return S}De(17)}(s),this.length=0}var t=r.prototype;return t.insertRule=function(n,s){try{return this.sheet.insertRule(s,n),this.length++,!0}catch{return!1}},t.deleteRule=function(n){this.sheet.deleteRule(n),this.length--},t.getRule=function(n){var s=this.sheet.cssRules[n];return s!==void 0&&typeof s.cssText=="string"?s.cssText:""},r}(),_r=function(){function r(n){var s=this.element=mr(n);this.nodes=s.childNodes,this.length=0}var t=r.prototype;return t.insertRule=function(n,s){if(n<=this.length&&n>=0){var c=document.createTextNode(s),h=this.nodes[n];return this.element.insertBefore(c,h||null),this.length++,!0}return!1},t.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},t.getRule=function(n){return n<this.length?this.nodes[n].textContent:""},r}(),qr=function(){function r(n){this.rules=[],this.length=0}var t=r.prototype;return t.insertRule=function(n,s){return n<=this.length&&(this.rules.splice(n,0,s),this.length++,!0)},t.deleteRule=function(n){this.rules.splice(n,1),this.length--},t.getRule=function(n){return n<this.length?this.rules[n]:""},r}(),vr=Jt,en={isServer:!Jt,useCSSOMInjection:!Vr},at=function(){function r(n,s,c){n===void 0&&(n=Ye),s===void 0&&(s={}),this.options=Ie({},en,{},n),this.gs=s,this.names=new Map(c),this.server=!!n.isServer,!this.server&&Jt&&vr&&(vr=!1,function(h){for(var m=document.querySelectorAll(Yr),b=0,S=m.length;b<S;b++){var A=m[b];A&&A.getAttribute(Xe)!=="active"&&(Jr(h,A),A.parentNode&&A.parentNode.removeChild(A))}}(this))}r.registerId=function(n){return Ft(n)};var t=r.prototype;return t.reconstructWithOptions=function(n,s){return s===void 0&&(s=!0),new r(Ie({},this.options,{},n),this.gs,s&&this.names||void 0)},t.allocateGSInstance=function(n){return this.gs[n]=(this.gs[n]||0)+1},t.getTag=function(){return this.tag||(this.tag=(c=(s=this.options).isServer,h=s.useCSSOMInjection,m=s.target,n=c?new qr(m):h?new Qr(m):new _r(m),new Hr(n)));var n,s,c,h,m},t.hasNameForId=function(n,s){return this.names.has(n)&&this.names.get(n).has(s)},t.registerName=function(n,s){if(Ft(n),this.names.has(n))this.names.get(n).add(s);else{var c=new Set;c.add(s),this.names.set(n,c)}},t.insertRules=function(n,s,c){this.registerName(n,s),this.getTag().insertRules(Ft(n),c)},t.clearNames=function(n){this.names.has(n)&&this.names.get(n).clear()},t.clearRules=function(n){this.getTag().clearGroup(Ft(n)),this.clearNames(n)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(n){for(var s=n.getTag(),c=s.length,h="",m=0;m<c;m++){var b=Wr(m);if(b!==void 0){var S=n.names.get(b),A=s.getGroup(m);if(S&&A&&S.size){var O=Xe+".g"+m+'[id="'+b+'"]',F="";S!==void 0&&S.forEach(function(B){B.length>0&&(F+=B+",")}),h+=""+A+O+'{content:"'+F+`"}/*!sc*/
|
|
11
|
+
`}}}return h}(this)},r}(),tn=/(a)(d)/gi,yr=function(r){return String.fromCharCode(r+(r>25?39:97))};function _t(r){var t,n="";for(t=Math.abs(r);t>52;t=t/52|0)n=yr(t%52)+n;return(yr(t%52)+n).replace(tn,"$1-$2")}var ct=function(r,t){for(var n=t.length;n;)r=33*r^t.charCodeAt(--n);return r},br=function(r){return ct(5381,r)};function xr(r){for(var t=0;t<r.length;t+=1){var n=r[t];if(it(n)&&!Zt(n))return!1}return!0}var rn=br("5.3.11"),nn=function(){function r(t,n,s){this.rules=t,this.staticRulesId="",this.isStatic=(s===void 0||s.isStatic)&&xr(t),this.componentId=n,this.baseHash=ct(rn,n),this.baseStyle=s,at.registerId(n)}return r.prototype.generateAndInjectStyles=function(t,n,s){var c=this.componentId,h=[];if(this.baseStyle&&h.push(this.baseStyle.generateAndInjectStyles(t,n,s)),this.isStatic&&!s.hash)if(this.staticRulesId&&n.hasNameForId(c,this.staticRulesId))h.push(this.staticRulesId);else{var m=et(this.rules,t,n,s).join(""),b=_t(ct(this.baseHash,m)>>>0);if(!n.hasNameForId(c,b)){var S=s(m,"."+b,void 0,c);n.insertRules(c,b,S)}h.push(b),this.staticRulesId=b}else{for(var A=this.rules.length,O=ct(this.baseHash,s.hash),F="",B=0;B<A;B++){var _=this.rules[B];if(typeof _=="string")F+=_;else if(_){var K=et(_,t,n,s),X=Array.isArray(K)?K.join(""):K;O=ct(O,X+B),F+=X}}if(F){var L=_t(O>>>0);if(!n.hasNameForId(c,L)){var ne=s(F,"."+L,void 0,c);n.insertRules(c,L,ne)}h.push(L)}}return h.join(" ")},r}(),sn=/^\s*\/\/.*$/gm,on=[":","[",".","#"];function wr(r){var t,n,s,c,h=r===void 0?Ye:r,m=h.options,b=m===void 0?Ye:m,S=h.plugins,A=S===void 0?Rt:S,O=new st(b),F=[],B=function(X){function L(ne){if(ne)try{X(ne+"}")}catch{}}return function(ne,W,be,fe,ge,Ze,lt,$e,Ve,Je){switch(ne){case 1:if(Ve===0&&W.charCodeAt(0)===64)return X(W+";"),"";break;case 2:if($e===0)return W+"/*|*/";break;case 3:switch($e){case 102:case 112:return X(be[0]+W),"";default:return W+(Je===0?"/*|*/":"")}case-2:W.split("/*|*/}").forEach(L)}}}(function(X){F.push(X)}),_=function(X,L,ne){return L===0&&on.indexOf(ne[n.length])!==-1||ne.match(c)?X:"."+t};function K(X,L,ne,W){W===void 0&&(W="&");var be=X.replace(sn,""),fe=L&&ne?ne+" "+L+" { "+be+" }":be;return t=W,n=L,s=new RegExp("\\"+n+"\\b","g"),c=new RegExp("(\\"+n+"\\b){2,}"),O(ne||!L?"":L,fe)}return O.use([].concat(A,[function(X,L,ne){X===2&&ne.length&&ne[0].lastIndexOf(n)>0&&(ne[0]=ne[0].replace(s,_))},B,function(X){if(X===-2){var L=F;return F=[],L}}])),K.hash=A.length?A.reduce(function(X,L){return L.name||De(15),ct(X,L.name)},5381).toString():"",K}var qt=Ue().createContext(),Bn=qt.Consumer,er=Ue().createContext(),Sr=(er.Consumer,new at),tr=wr();function rr(){return(0,Ee.useContext)(qt)||Sr}function Ar(){return(0,Ee.useContext)(er)||tr}function an(r){var t=(0,Ee.useState)(r.stylisPlugins),n=t[0],s=t[1],c=rr(),h=(0,Ee.useMemo)(function(){var b=c;return r.sheet?b=r.sheet:r.target&&(b=b.reconstructWithOptions({target:r.target},!1)),r.disableCSSOMInjection&&(b=b.reconstructWithOptions({useCSSOMInjection:!1})),b},[r.disableCSSOMInjection,r.sheet,r.target]),m=(0,Ee.useMemo)(function(){return wr({options:{prefix:!r.disableVendorPrefixes},plugins:n})},[r.disableVendorPrefixes,n]);return(0,Ee.useEffect)(function(){ze()(n,r.stylisPlugins)||s(r.stylisPlugins)},[r.stylisPlugins]),Ue().createElement(qt.Provider,{value:h},Ue().createElement(er.Provider,{value:m},r.children))}var Er=function(){function r(t,n){var s=this;this.inject=function(c,h){h===void 0&&(h=tr);var m=s.name+h.hash;c.hasNameForId(s.id,m)||c.insertRules(s.id,m,h(s.rules,m,"@keyframes"))},this.toString=function(){return De(12,String(s.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=n}return r.prototype.getName=function(t){return t===void 0&&(t=tr),this.name+t.hash},r}(),cn=/([A-Z])/,ln=/([A-Z])/g,un=/^ms-/,pn=function(r){return"-"+r.toLowerCase()};function Cr(r){return cn.test(r)?r.replace(ln,pn).replace(un,"-ms-"):r}var Tr=function(r){return r==null||r===!1||r===""};function et(r,t,n,s){if(Array.isArray(r)){for(var c,h=[],m=0,b=r.length;m<b;m+=1)(c=et(r[m],t,n,s))!==""&&(Array.isArray(c)?h.push.apply(h,c):h.push(c));return h}if(Tr(r))return"";if(Zt(r))return"."+r.styledComponentId;if(it(r)){if(typeof(A=r)!="function"||A.prototype&&A.prototype.isReactComponent||!t)return r;var S=r(t);return et(S,t,n,s)}var A;return r instanceof Er?n?(r.inject(n,s),r.getName(s)):r:Yt(r)?function O(F,B){var _,K,X=[];for(var L in F)F.hasOwnProperty(L)&&!Tr(F[L])&&(Array.isArray(F[L])&&F[L].isCss||it(F[L])?X.push(Cr(L)+":",F[L],";"):Yt(F[L])?X.push.apply(X,O(F[L],L)):X.push(Cr(L)+": "+(_=L,(K=F[L])==null||typeof K=="boolean"||K===""?"":typeof K!="number"||K===0||_ in Wt||_.startsWith("--")?String(K).trim():K+"px")+";"));return B?[B+" {"].concat(X,["}"]):X}(r):r.toString()}var Or=function(r){return Array.isArray(r)&&(r.isCss=!0),r};function gt(r){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];return it(r)||Yt(r)?Or(et(gr(Rt,[r].concat(n)))):n.length===0&&r.length===1&&typeof r[0]=="string"?r:Or(et(gr(r,n)))}var Vn=/invalid hook call/i,Gn=new Set,Hn=function(r,t){if(0)var n,s,c},nr=function(r,t,n){return n===void 0&&(n=Ye),r.theme!==n.theme&&r.theme||t||n.theme},fn=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,dn=/(^-|-$)/g;function sr(r){return r.replace(fn,"-").replace(dn,"")}var or=function(r){return _t(br(r)>>>0)};function Dt(r){return typeof r=="string"&&!0}var ir=function(r){return typeof r=="function"||typeof r=="object"&&r!==null&&!Array.isArray(r)},hn=function(r){return r!=="__proto__"&&r!=="constructor"&&r!=="prototype"};function gn(r,t,n){var s=r[n];ir(t)&&ir(s)?Pr(s,t):r[n]=t}function Pr(r){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];for(var c=0,h=n;c<h.length;c++){var m=h[c];if(ir(m))for(var b in m)hn(b)&&gn(r,m[b],b)}return r}var tt=Ue().createContext(),Wn=tt.Consumer;function Kn(r){var t=qe(tt),n=Be(function(){return function(s,c){if(!s)return De(14);if(it(s)){var h=s(c);return h}return Array.isArray(s)||typeof s!="object"?De(8):c?Ie({},c,{},s):s}(r.theme,t)},[r.theme,t]);return r.children?Me.createElement(tt.Provider,{value:n},r.children):null}var ar={};function Ir(r,t,n){var s=Zt(r),c=!Dt(r),h=t.attrs,m=h===void 0?Rt:h,b=t.componentId,S=b===void 0?function(W,be){var fe=typeof W!="string"?"sc":sr(W);ar[fe]=(ar[fe]||0)+1;var ge=fe+"-"+or("5.3.11"+fe+ar[fe]);return be?be+"-"+ge:ge}(t.displayName,t.parentComponentId):b,A=t.displayName,O=A===void 0?function(W){return Dt(W)?"styled."+W:"Styled("+Xt(W)+")"}(r):A,F=t.displayName&&t.componentId?sr(t.displayName)+"-"+t.componentId:t.componentId||S,B=s&&r.attrs?Array.prototype.concat(r.attrs,m).filter(Boolean):m,_=t.shouldForwardProp;s&&r.shouldForwardProp&&(_=t.shouldForwardProp?function(W,be,fe){return r.shouldForwardProp(W,be,fe)&&t.shouldForwardProp(W,be,fe)}:r.shouldForwardProp);var K,X=new nn(n,F,s?r.componentStyle:void 0),L=X.isStatic&&m.length===0,ne=function(W,be){return function(fe,ge,Ze,lt){var $e=fe.attrs,Ve=fe.componentStyle,Je=fe.defaultProps,ut=fe.foldedComponentIds,je=fe.shouldForwardProp,Le=fe.styledComponentId,Ge=fe.target,Oe=function(V,y,q){V===void 0&&(V=Ye);var C=Ie({},y,{theme:V}),he={};return q.forEach(function(ee){var se,G,we,Pe=ee;for(se in it(Pe)&&(Pe=Pe(C)),Pe)C[se]=he[se]=se==="className"?(G=he[se],we=Pe[se],G&&we?G+" "+we:G||we):Pe[se]}),[C,he]}(nr(ge,(0,Ee.useContext)(tt),Je)||Ye,ge,$e),mt=Oe[0],Ne=Oe[1],Fe=function(V,y,q,C){var he=rr(),ee=Ar(),se=y?V.generateAndInjectStyles(Ye,he,ee):V.generateAndInjectStyles(q,he,ee);return se}(Ve,lt,mt,void 0),vt=Ze,pt=Ne.$as||ge.$as||Ne.as||ge.as||Ge,yt=Dt(pt),R=Ne!==ge?Ie({},ge,{},Ne):ge,P={};for(var I in R)I[0]!=="$"&&I!=="as"&&(I==="forwardedAs"?P.as=R[I]:(je?je(I,dt,pt):!yt||dt(I))&&(P[I]=R[I]));return ge.style&&Ne.style!==ge.style&&(P.style=Ie({},ge.style,{},Ne.style)),P.className=Array.prototype.concat(ut,Le,Fe!==Le?Fe:null,ge.className,Ne.className).filter(Boolean).join(" "),P.ref=vt,(0,Ee.createElement)(pt,P)}(K,W,be,L)};return ne.displayName=O,(K=Ue().forwardRef(ne)).attrs=B,K.componentStyle=X,K.displayName=O,K.shouldForwardProp=_,K.foldedComponentIds=s?Array.prototype.concat(r.foldedComponentIds,r.styledComponentId):Rt,K.styledComponentId=F,K.target=s?r.target:r,K.withComponent=function(W){var be=t.componentId,fe=function(Ze,lt){if(Ze==null)return{};var $e,Ve,Je={},ut=Object.keys(Ze);for(Ve=0;Ve<ut.length;Ve++)$e=ut[Ve],lt.indexOf($e)>=0||(Je[$e]=Ze[$e]);return Je}(t,["componentId"]),ge=be&&be+"-"+(Dt(W)?W:sr(Xt(W)));return Ir(W,Ie({},fe,{attrs:B,componentId:ge}),n)},Object.defineProperty(K,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(W){this._foldedDefaultProps=s?Pr({},r.defaultProps,W):W}}),Object.defineProperty(K,"toString",{value:function(){return"."+K.styledComponentId}}),c&&Kt()(K,r,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),K}var jr=function(r){return function t(n,s,c){if(c===void 0&&(c=Ye),!(0,We.isValidElementType)(s))return De(1,String(s));var h=function(){return n(s,c,gt.apply(void 0,arguments))};return h.withConfig=function(m){return t(n,s,Ie({},c,{},m))},h.attrs=function(m){return t(n,s,Ie({},c,{attrs:Array.prototype.concat(c.attrs,m).filter(Boolean)}))},h}(Ir,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){jr[r]=jr(r)});var mn=function(){function r(n,s){this.rules=n,this.componentId=s,this.isStatic=xr(n),at.registerId(this.componentId+1)}var t=r.prototype;return t.createStyles=function(n,s,c,h){var m=h(et(this.rules,s,c,h).join(""),""),b=this.componentId+n;c.insertRules(b,b,m)},t.removeStyles=function(n,s){s.clearRules(this.componentId+n)},t.renderStyles=function(n,s,c,h){n>2&&at.registerId(this.componentId+n),this.removeStyles(n,c),this.createStyles(n,s,c,h)},r}();function Yn(r){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];var c=gt.apply(void 0,[r].concat(n)),h="sc-global-"+or(JSON.stringify(c)),m=new mn(c,h);function b(A){var O=rr(),F=Ar(),B=qe(tt),_=Ur(O.allocateGSInstance(h)).current;return O.server&&S(_,A,O,B,F),zr(function(){if(!O.server)return S(_,A,O,B,F),function(){return m.removeStyles(_,O)}},[_,A,O,B,F]),null}function S(A,O,F,B,_){if(m.isStatic)m.renderStyles(A,Gr,F,_);else{var K=Ie({},O,{theme:nr(O,B,b.defaultProps)});m.renderStyles(A,K,F,_)}}return Me.memo(b)}function Xn(r){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];var c=gt.apply(void 0,[r].concat(n)).join(""),h=or(c);return new Er(h,c)}var Zn=function(){function r(){var n=this;this._emitSheetCSS=function(){var s=n.instance.toString();if(!s)return"";var c=Qt();return"<style "+[c&&'nonce="'+c+'"',Xe+'="true"','data-styled-version="5.3.11"'].filter(Boolean).join(" ")+">"+s+"</style>"},this.getStyleTags=function(){return n.sealed?De(2):n._emitSheetCSS()},this.getStyleElement=function(){var s;if(n.sealed)return De(2);var c=((s={})[Xe]="",s["data-styled-version"]="5.3.11",s.dangerouslySetInnerHTML={__html:n.instance.toString()},s),h=Qt();return h&&(c.nonce=h),[Ue().createElement("style",Ie({},c,{key:"sc-0-0"}))]},this.seal=function(){n.sealed=!0},this.instance=new at({isServer:!0}),this.sealed=!1}var t=r.prototype;return t.collectStyles=function(n){return this.sealed?De(2):Ue().createElement(an,{sheet:this.instance},n)},t.interleaveWithNodeStream=function(n){return De(3)},r}(),Jn=function(r){var t=Me.forwardRef(function(n,s){var c=qe(tt),h=r.defaultProps,m=nr(n,c,h);return Me.createElement(r,Ie({},n,{theme:m,ref:s}))});return Br(t,r),t.displayName="WithTheme("+Xt(r)+")",t},Qn=function(){return qe(tt)},_n={StyleSheet:at,masterSheet:Sr};const qn=null,vn=r=>Object.keys(r).reduce((t,n)=>(t[n]=(s,...c)=>gt`
|
|
12
|
+
@media (max-width: ${r[n]}) {
|
|
13
|
+
${gt(s,...c)};
|
|
14
|
+
}
|
|
15
|
+
`,t),{}),yn=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:vn({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]}}),bn=((r=Q())=>()=>yn(r))(),ts=()=>{try{return window.parent.document,window.parent}catch{return window}},cr=()=>({width:Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)}),Rr=r=>Number(r.replace("px","")),Mr=()=>{const{width:r}=cr(),{breakpoints:t}=bn();return r<=Rr(t.small)?"small":r<=Rr(t.medium)?"medium":"large"},xn="microFrontendApps",wn=()=>!0,Sn=r=>wn()?!0:String(r).toLowerCase()===U.PRODUCTION.toLowerCase(),An=r=>r?new URL(r).pathname:"",En=r=>{const t=document.createElement("a");return t.href=r,t.href},Cn=(r,t)=>{const n=t.match(/^(?:\d+\.\d+)*/g);return r.replace(/{SYSTEM_VERSION}/,n&&n[0]||w)},$r=r=>!r||!r.length?!1:r.every(t=>typeof t=="string"),Tn=(r,t)=>{const{mode:n=U.PRODUCTION}=t;if(String(n).toLowerCase()!==U.PRODUCTION.toLowerCase()&&String(n).toLowerCase()!==U.DEVELOPMENT.toLowerCase())throw new Error(`invalid mode '${String(n)}' for ${r}`);const{production:s,development:c,microappManager:h=ie.APPSDK}=t;if(String(h).toLowerCase()===ie.APPSDK.toLowerCase()){if(String(n).toLowerCase()===U.PRODUCTION.toLowerCase()){if(!s)throw new Error(`microFrontendApps.${r} is missing production section in app.config.json`);if(!$r(s.files))throw new Error("invalid value for production.files")}if(String(n).toLowerCase()===U.DEVELOPMENT.toLowerCase()){if(!c)throw new Error(`microFrontendApps.${r} is missing development section in app.config.json`);if(!$r(c.files))throw new Error("invalid value for development.files")}}},On=({id:r,config:t,version:n="latest"})=>{const{mode:s=U.PRODUCTION,production:c,development:h,...m}=t,b=Sn(s)?c:h,S=v()({id:r},{name:r,mode:U.PRODUCTION,manifestPath:"./{SYSTEM_VERSION}/",securityContext:o.USER,isJsModule:!0},m,{mode:s},b);return S.hostUrl=$(En(S.hostUrl||"")),S.homeRoute=$(S.homeRoute)||An(S.hostUrl),S.manifestPath=$(Cn(S.manifestPath,n)),S};class Pn{#e=[];init=({version:t,appConfig:n})=>{const s=n.get(xn);s&&(this.#e=Object.keys(s).map(c=>(Tn(c,s[c]),On({id:c,config:s[c],version:t}))))};getConfigById=t=>this.#e.find(n=>n.id===t)}const In="ice-script-";class Fr{#e;constructor(t){this.#e=t}#t=({href:t,isESMModule:n=!0,documentEle:s})=>{const c=s.createElement("link");c.rel=n?"modulepreload":"preload",c.href=t,c.crossOrigin="anonymous",n||(c.as="script"),s.head.appendChild(c)};#r=({id:t,href:n,documentEle:s,isESMModule:c=!0})=>new Promise((h,m)=>{const b=s.createElement("script");b.id=t,b.src=T(n),b.crossOrigin="anonymous",b.nonce="__CSP_NONCE__",!D()&&c?b.type="module":b.async=!1,b.onload=h.bind(null,b.id),b.onerror=S=>{this.#e.error({message:`Error loading script ${b.src}`,exception:new Error(S)}),m(new Error(`Unable to load script ${b.src}`,{cause:new Error(S)}))},s.head.appendChild(b)});load=async(t,n)=>{const{documentEle:s,isESMModule:c}=n,h=/^https?:\/\//i,{cdnAssets:m,nonCdnAssets:b}=t.reduce((S,A,O)=>{const F=`${In}${n.name.toLowerCase()}-${O}`;if(h.test(A))S.cdnAssets.push({id:F,href:A}),this.#t({href:A,documentEle:s,isESMModule:c});else{const B=new URL(A,n.hostUrl);S.nonCdnAssets.push({id:F,href:B.href}),this.#t({href:B.href,documentEle:s,isESMModule:c})}return S},{cdnAssets:[],nonCdnAssets:[]});for(const{href:S,id:A}of[...m,...b])await this.#r({id:A,href:S,documentEle:s,isESMModule:c});return[...m,...b].map(S=>S.id)};remove=(t="",n=document)=>new Promise(s=>{const c=n.getElementById(t);if(!c){this.#e.warn(`script with id ${t} not found`),s();return}c.remove(),s()});removeDynamicImportedScripts=(t,n)=>{const s=new RegExp(z(t),"i"),c=n.getElementsByTagName("script");for(let h=c.length-1;h>=0;h-=1){const m=c[h],{src:b}=m;s.test(b)&&m.remove()}};removePrefetchLinks=(t,n)=>{const s=new RegExp(z(t),"i"),c=n.querySelectorAll('[rel="prefetch"]');for(let h=c.length-1;h>=0;h-=1){const m=c[h],{href:b}=m;s.test(b)&&m.remove()}}}const jn="ice-style-";class Dr{#e;constructor(t){this.#e=t}#t=({id:t,href:n,documentEle:s})=>new Promise((c,h)=>{const m=s.createElement("link");m.id=t,m.nonce="__CSP_NONCE__",m.rel="stylesheet",m.href=T(n),m.onload=c.bind(null,m.id),m.onerror=b=>{this.#e.error({message:`Error loading stylesheet ${m.href}`,exception:new Error(b)}),h(new Error(`Unable to load stylesheet ${m.href}`,{cause:new Error(b)}))},s.head.appendChild(m)});load=async(t,n)=>{const s=[],c=t.map((h,m)=>{const b=new URL(h,n.hostUrl),S=`${jn}${n.name.toLowerCase()}-${m}`;return s.push(S),this.#t({id:S,href:b.href,documentEle:n.documentEle})});return await Promise.all(c),s};remove=(t="",n=document)=>new Promise(s=>{const c=n.getElementById(t);if(!c){this.#e.warn(`style with id ${t} not found`),s();return}c.remove(),s()});removeDynamicImportedStyles=(t,n)=>{const s=new RegExp(z(t),"i"),c=n.querySelectorAll('[rel="stylesheet"]');for(let h=c.length-1;h>=0;h-=1){const m=c[h],{href:b}=m;s.test(b)&&m.remove()}}}const Rn=r=>r.replace(/\/\d+\.\d+/,"/latest"),Mn=r=>{let t;try{t=new URL(r)}catch{return!1}return t.protocol==="http:"||t.protocol==="https:"},lr=new Map,Lr={get:async({hostUrl:r,manifestPath:t})=>{const n=new URL(`${t}manifest.json`,r),s=T(n.href),c=lr.get(s);if(c)return c;const h=async m=>{const b=await fetch(m);if(!b.ok)throw new Error(`unable to get manifest ${m}`);if(!(b.headers?.get?.("content-type")??"").includes("application/json"))throw new Error(`manifest ${m} is not a valid json`);const A=await b.json();return lr.set(m,A),A};try{return await h(s)}catch(m){const b=Rn(t);if(t!==b){const S=T(new URL(`${b}manifest.json`,r).href);return await h(S)}throw m}},getFullFileNameofAssets:(r,t=[])=>t.reduce((n,s)=>{const c=r[s];if(c)n.push(c);else if(Mn(s))n.push(s);else throw new Error(`unable to locate ${s} in manifest`);return n},[]),clearCache:()=>lr.clear()};class $n{#e;#t;#r;#o;#n;constructor(t){this.#t=t.guest,this.#e=t.containerId,this.#r=t?.version||w,this.#o=t.soManager,this.#n=t.eventManager}get version(){return this.#r}getObject=t=>{try{const n=this.#o.getObject(t,this.#t);if(!n)return Promise.resolve(null);const s=new Vt(n.id,n.objectType);return Object.keys(n).forEach(c=>{const h=n[c];h instanceof ae?Object.defineProperty(s,c,{value:new ae({name:c,objectId:n.id}),enumerable:!0}):re(h,c)&&Object.defineProperty(s,c,{value:(...m)=>{const b=s[c]?.callContext?.callChain;return Object.defineProperty(h,"callContext",{value:{guest:this.#t,...b?.length?{callChain:b}:{}},configurable:!0,enumerable:!0,writable:!0}),n[c](...m)},enumerable:!0})}),Promise.resolve(s)}catch(n){return Promise.reject(n)}};setAppWindowSize=t=>{if(!this.#e)return;const{size:n}=t,s=document.getElementById(this.#e);s&&(s.style.height=`${n.height}px`,s.style.width=`${n.width}px`)};subscribe=t=>this.#n.subscribe(t);unsubscribe=t=>{this.#n.unsubscribe(t)}}class Fn{constructor(){window.emui||(window.emui={}),window.emui.registerApp=this.#e}#e=({appId:t,app:n})=>{if(!t)throw new Error("appId is required");if(t==="__proto__"||t==="constructor"||t==="prototype")throw new Error(`Invalid appId: ${t}`);if(!n?.uuid)throw new Error("application uuid is required");if(window.emui[t]=window.emui[t]||[],Array.isArray(window.emui[t])){const s=window.emui[t].findIndex(c=>c.uuid===n.uuid);s>-1?window.emui[t][s]=n:window.emui[t].push(n)}else{let s=window.emui[t];s?.uuid===n.uuid?(s={...s,...n},window.emui[t]=[s]):typeof s.init>"u"?window.emui[t]=[{...s,...n}]:window.emui[t]=[window.emui[t],n]}};get=({id:t,instanceId:n})=>{const s=window.emui?.[t];return Array.isArray(s)?s.find(h=>h.uuid===n)??null:s?.uuid===n?s:null};add=({id:t,instanceId:n,documentEle:s})=>{if(!n)throw new Error(`instanceId (uuid) is required to register application ${t}`);const c={uuid:n,init:null,mount:null,unmount:null},h=window.emui[t];h?Array.isArray(h)?h.push(c):window.emui[t]=[h,c]:window.emui[t]=[c],s.defaultView&&(s.defaultView.emui=s.defaultView.emui??{},s.defaultView.emui.uuid=n)};delete=({id:t,instanceId:n})=>{if(Array.isArray(window.emui[t])){const s=window.emui[t].findIndex(c=>c.uuid===n);s>-1&&window.emui[t].splice(s,1),window.emui[t].length===0&&delete window.emui[t]}else delete window.emui[t]}}const Dn=12e4,Nr=["click","scroll","keypress","touchstart"],Ln=/\.css$/,kr=r=>Ln.test(r);class Nn{#e;#t;#r;#o;#n;#a=new Pn;#s;#l;#i=new Map;#u=new Map;#c=new Fn;#p=!0;constructor(t){const{logger:n}=t;if(!n)throw new Error("logger is required");this.#e=t.logger,this.#t=t.version,this.#p=t.extendSession??!0,this.#n=new j({version:t.version,baseUrl:t.appConfigBaseUrl}),this.#r=new Fr(n),this.#o=new Dr(n),this.#s=new Bt,this.#l=new Gt(this.#e)}#g(t){return typeof t=="function"}#m=t=>t instanceof E||typeof t?.subscribe=="function";#v=(t,n)=>`Application ${t} with instance id ${n} is not found. Most probably the appId property of app.config.json is not set to ${t}`;#y=(t,n=document)=>{const{elementIds:s}=this.#i.get(t)||{};s&&s.forEach(c=>{const h=n.getElementById(c);h&&h.remove()})};#b=({id:t,instanceId:n,documentEle:s,elementIds:c})=>{const h=this.#c.get({id:t,instanceId:n});if(!h)throw new Error(this.#v(t,n));this.#i.set(n,{id:t,instanceId:n,elementIds:c,guest:{guestWindow:s?.defaultView,...h}})};#x=async({id:t,instanceId:n,containerId:s,hostUrl:c,manifestPath:h,homeRoute:m,initialRoute:b,history:S,theme:A})=>{const O=this.#c.get({id:t,instanceId:n});if(!O)throw new Error(`Application ${t} with instance id ${n} is not found. Most probably the appId property of app.config.json is not set to ${t}`);if(!O.init||typeof O.init!="function")throw new Error(`Application ${t} with instance id ${n} doesn't expose init method`);const F=new $n({guest:{id:t},version:this.#t,containerId:s,logger:this.#e,soManager:this.#s,eventManager:this.#l});return O.init({host:F,hostUrl:c,manifestPath:h,homeRoute:m,initialRoute:b,prevState:null,history:S,theme:A,hostBreakpoint:Mr(),hostViewportSize:cr(),logger:this.#e})};#w=async t=>{try{const{id:n,instanceId:s,files:c,name:h,hostUrl:m,documentEle:b,isJsModule:S}=t;this.#e.debug(`Application ${n} with instance id ${s} is loading...`);let A=c;const O=await Lr.get(t);A=Lr.getFullFileNameofAssets(O,c);const F=A.filter(L=>kr(L)),B=A.filter(L=>!kr(L)),_={name:h,hostUrl:m,documentEle:b,isESMModule:S},[K,X]=await Promise.all([this.#o.load(F,_),this.#r.load(B,_)]);this.#b({id:n,instanceId:s,documentEle:b,elementIds:[...K,...X]}),await this.#x(t),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 ${t.id} with instance id ${t.instanceId}. ${n.message}`;throw this.#e.error({message:s,appId:t.id,exception:n}),new Error(s)}};#f=({id:t,instanceId:n,hostUrl:s,documentEle:c})=>{this.#e.debug(`Application ${t} with instance id ${n} unloading...`),this.#c.get({id:t,instanceId:n})&&(this.#y(n,c),this.#r.removeDynamicImportedScripts(s,c),this.#r.removePrefetchLinks(s,c),this.#o.removeDynamicImportedStyles(s,c),this.#c.delete({id:t,instanceId:n}),this.#e.audit(`Application ${t} with instance id ${n} unloaded`))};#d=async({id:t,instanceId:n})=>{const s=this.#c.get({id:t,instanceId:n});if(!s?.mount||typeof s?.mount!="function")throw new Error(`Application ${t} with instance id ${n} doesn't expose mount method`);return s.mount({containerId:`${ft}${t}`,hostBreakpoint:Mr(),hostViewportSize:cr()})};#h=({id:t,instanceId:n})=>{const s=this.#c.get({id:t,instanceId:n});if(!s?.unmount)return null;if(typeof s.unmount!="function")throw new Error(`Application ${t} with instance id ${n} doesn't expose unmount method`);return s.unmount({containerId:`${ft}${t}`})};#S=({id:t,instanceId:n})=>{if(this.#p)try{const s=this.#s.getObject(Et.Application);if(!s){this.#e.warn({message:`Application scripting object not available for ${t} to manage session`});return}const c=this.#i.get(n);if(!c)return;c.keepAlive=H()(async()=>{try{await s.keepSessionAlive()}catch(m){this.#e.error(`Error keeping session alive. ${m.message}`)}},Dn);const h=Re.get(n);Nr.forEach(m=>{h?.contentDocument?.addEventListener(m,c.keepAlive)})}catch(s){this.#e.warn({message:`Application scripting object not available for ${t} to manage session`,exception:s})}};#A=t=>{if(!this.#p||!t)return;const{keepAlive:n,instanceId:s}=t;if(n){const h=Re.get(s)?.contentDocument;h&&Nr.forEach(m=>{h.removeEventListener(m,n)}),t.keepAlive?.cancel()}};addScriptingObject=(t,n)=>{if(Tt(t)){const s=this.cloneScriptingObject(t);this.#s.addScriptingObject(s,n)}else this.#s.addScriptingObject(t,n)};cloneScriptingObject=t=>{if(!t)throw new Error("proxy is required");const n=new de(t.id,t.objectType);let s=[];return Object.keys(t).forEach(c=>{const h=t[c];if(this.#m(h)){const m=new ae({name:h.name||c,objectId:n.id});Object.defineProperty(n,c,{value:m,enumerable:!0});const b=({eventParams:A,eventOptions:O})=>this.dispatchEvent({event:m,eventParams:A,eventOptions:O}),S=h.subscribe(b);s.push(()=>{h.unsubscribe(S)})}else if(this.#g(h)&&(Object.defineProperty(n,c,{value:async(...m)=>{const b=n[c]?.callContext;if(b?.guest){const A=b.callChain??[],O=b.guest.id,F=this.#u.get(O),B={id:O};F&&(B.metadata=F),Object.defineProperty(h,"callContext",{value:{callChain:[...A,B]},configurable:!0,enumerable:!0,writable:!0})}const S=await h(...m);return Tt(S)?this.cloneScriptingObject(S):S},enumerable:!0}),c==="dispose")){const m=n.dispose;Object.defineProperty(n,c,{value:()=>(n._dispose(),m.apply(n)),enumerable:!0})}}),n._dispose=()=>{s.forEach(c=>{c?.()}),s=[]},n};closeAllApps=async()=>{await Promise.all([...this.#i.keys()].map(this.closeApp))};closeApp=async t=>{if(!t)throw new Error("instanceId is required");const n=this.#i.get(t);if(!n){this.#e.warn(`Application with instance id ${t} is not found`);return}const{id:s}=n,c=this.#a.getConfigById(s);if(!c){this.#e.warn(`Configuration for application ${s} is not found`),this.#i.delete(t),Re.remove(t);return}const{hostUrl:h}=c;try{this.#A(n),await this.#h({id:s,instanceId:t})}finally{const m=Re.get(t);m?.contentDocument&&this.#f({id:s,instanceId:t,hostUrl:h,documentEle:m.contentDocument}),this.#i.delete(t),this.#u.delete(s),Re.remove(t)}};dispatchEvent=async t=>{const{event:{id:n,name:s},eventOptions:c={}}=t,{guestId:h}=c;if(!n)throw new Error("Event Id is required");const m=n.split(".")?.[0],b=h?this.#s.getObject(m,{id:h}):this.#s.getObject(m);return b?this.#l.dispatchEvent(b,t):(this.#e.warn(`Attempt to dispatch event ${s} on unknown object ${m}`),Promise.resolve())};getApp=t=>this.#i.get(t)?.guest;getApps=()=>[...this.#i.values()].map(t=>t.guest);init=async()=>{await this.#n.load(),this.#a.init({version:this.#t,appConfig:this.#n})};mountApp=async t=>{if(!t)throw new Error("instanceId is required");const{id:n}=this.#i.get(t)||{};if(!n)throw new Error(`Application with instance id ${t} is not found`);const s=this.#a.getConfigById(n);if(!s)throw new Error(`Application with id ${n} is not found`);await this.#d({...s,instanceId:t})};openApp=async t=>{const{id:n,frameOptions:s,history:c,theme:h,homeRoute:m,initialRoute:b,metadata:S}=t,A=At();S&&this.#u.set(n,S);const O=this.#a.getConfigById(n);if(!O)throw new Error(`Application ${n} is not found in app config`);const F=await Re.create({id:n,instanceId:A,manifestPath:O.manifestPath,hostUrl:O.hostUrl,options:{title:O.name,...s}});if(!F?.contentDocument)throw new Error("unable to create iframe for the microapp");try{return this.#c.add({id:n,instanceId:A,documentEle:F.contentDocument}),await this.#w({instanceId:A,history:c,theme:h,documentEle:F.contentDocument,containerId:s?.containerId,...O,homeRoute:m??O.homeRoute,initialRoute:b}),await this.#d({instanceId:A,...O}),this.#S({id:n,instanceId:A}),A}catch(B){throw this.#f({id:n,instanceId:A,hostUrl:O.hostUrl,documentEle:F.contentDocument}),Re.remove(A),B}};removeAllEventSubscriptions=()=>{this.#l.unsubscribeAll()};removeAllScriptingObjects=t=>{this.#s.removeAllScriptingObjects(t)};removeScriptingObject=(t,n)=>{this.#s.removeScriptingObject(t,n)};unmountApp=async t=>{if(!t)throw new Error("instanceId is required");const{id:n}=this.#i.get(t)||{};if(!n)throw new Error(`Application with instance id ${t} is not found`);const s=this.#a.getConfigById(n);if(!s)throw new Error(`Application with id ${n} is not found`);await this.#h({...s,instanceId:t})}}})(),Nt})());
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=emuiAppBridge.87b9f6d6c712609094fd.js.map
|
|
Binary file
|
|
Binary file
|