@signalk/server-admin-ui 2.24.1 → 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/package.json +9 -8
- package/public/assets/__mfe_internal__adminUI__loadShare__react__loadShare__.mjs-D7IyCcP9.js +2 -0
- package/public/assets/__mfe_internal__adminUI__loadShare__react_mf_2_dom__loadShare__.mjs-BgkCe2kW.js +2 -0
- package/public/assets/bootstrap-BD7TZB1S.js +696 -0
- package/public/assets/dist-C3AHhjoY.js +5 -0
- package/public/assets/hostInit-BOrvlrtn.js +2 -0
- package/public/assets/index-DbcCYLtL.js +3 -0
- package/public/assets/localSharedImportMap-CiMdQql_.js +2 -0
- package/public/assets/preload-helper-I1wKxk_B.js +1 -0
- package/public/assets/react-BCcsldiz.js +2 -0
- package/public/assets/react-dom-CUQW5SeI.js +2 -0
- package/public/assets/rolldown-runtime-COnpUsM8.js +1 -0
- package/public/assets/style-DKgi9hUa.css +2 -0
- package/public/assets/virtualExposes-CpM-5GqL.js +1 -0
- package/public/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__adminUI__remoteEntry_js-DnpHXGIN.js +3 -0
- package/public/assets/virtual_mf-exposes___mfe_internal__adminUI__remoteEntry_js-DtDVRqax.js +2 -0
- package/public/index.html +7 -5
- package/public/remoteEntry.js +1 -8
- package/vite.config.ts +179 -0
- package/public/assets/adminUI__loadShare__react__loadShare__.js-D12K3nc7.js +0 -2
- package/public/assets/adminUI__loadShare__react__loadShare__.js_commonjs-proxy-Ddgktan4.js +0 -2
- package/public/assets/adminUI__loadShare__react_mf_2_dom__loadShare__.js-BWXpsqcx.js +0 -2
- package/public/assets/adminUI__loadShare__react_mf_2_dom__loadShare__.js_commonjs-proxy-07sf8i5D.js +0 -2
- package/public/assets/bootstrap-COZNugCb.js +0 -832
- package/public/assets/hostInit-D-eMgRM5.js +0 -2
- package/public/assets/index-BMKrAHPu.js +0 -3
- package/public/assets/index-CUFVw20s.js +0 -10
- package/public/assets/index-CUVAwP88.js +0 -10
- package/public/assets/localSharedImportMap-BXzukc9m.js +0 -2
- package/public/assets/preload-helper-Ct5FWWRu.js +0 -2
- package/public/assets/signal-k-logo-image-Bi031Asz.svg +0 -77
- package/public/assets/signal-k-logo-image-text-CyD4QRZT.svg +0 -150
- package/public/assets/style-CLVMbhfE.css +0 -11
- package/public/assets/virtualExposes-FmFgRqLi.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./virtual_mf-exposes___mfe_internal__adminUI__remoteEntry_js-DtDVRqax.js";export{e as default};
|
package/public/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__adminUI__remoteEntry_js-DnpHXGIN.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./localSharedImportMap-CiMdQql_.js","./rolldown-runtime-COnpUsM8.js","./preload-helper-I1wKxk_B.js","./dist-C3AHhjoY.js","./virtualExposes-CpM-5GqL.js","./virtual_mf-exposes___mfe_internal__adminUI__remoteEntry_js-DtDVRqax.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{t as e}from"./dist-C3AHhjoY.js";import{t}from"./preload-helper-I1wKxk_B.js";typeof __VUE_HMR_RUNTIME__>`u`&&(globalThis.__VUE_HMR_RUNTIME__={createRecord(){},rerender(){},reload(){}});var n=`__mf_init____mf__virtual/__mfe_internal__adminUI__mf_v__runtimeInit__mf_v__.js__`,r=globalThis[n];if(!r){let e,t,i=new Promise((n,r)=>{e=n,t=r});r=globalThis[n]={initPromise:i,initResolve:e,initReject:t},typeof window>`u`&&e({loadRemote:function(){return Promise.resolve(void 0)},loadShare:function(){return Promise.resolve(void 0)}})}var i=r.initResolve,a={},o=`default`,s=`__mfe_internal__adminUI`,c,l;async function u(){return c??=t(()=>import(`./localSharedImportMap-CiMdQql_.js`),__vite__mapDeps([0,1,2,3]),import.meta.url),c}async function d(){return l??=t(()=>import(`./virtualExposes-CpM-5GqL.js`).then(e=>e.default??e),__vite__mapDeps([4,5]),import.meta.url),l}async function f(t={},n=[]){let{usedShared:r,usedRemotes:c}=await u(),l=e({name:s,remotes:c,shared:r,plugins:[],shareStrategy:`version-first`});var d=a[o];if(d||=a[o]={from:s},!(n.indexOf(d)>=0)){n.push(d),l.initShareScopeMap(`default`,t),i(l);try{await Promise.all(await l.initializeSharing(`default`,{strategy:`version-first`,from:`build`,initScope:n}))}catch(e){console.error(`[Module Federation]`,e)}return l}}async function p(e){let t=await d();if(!(e in t))throw Error(`[Module Federation] Module ${e} does not exist in container.`);return t[e]().then(e=>()=>e)}export{f as n,p as t};
|
|
3
|
+
//# sourceMappingURL=virtual_mf-REMOTE_ENTRY_ID___mfe_internal__adminUI__remoteEntry_js-DnpHXGIN.js.map
|
package/public/index.html
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!doctype html>
|
|
2
2
|
<html lang="en">
|
|
3
3
|
<head>
|
|
4
|
-
<script type="module" src="./assets/hostInit-
|
|
4
|
+
<script type="module" src="./assets/hostInit-BOrvlrtn.js"></script>
|
|
5
5
|
|
|
6
6
|
<meta charset="utf-8" />
|
|
7
7
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
@@ -15,10 +15,12 @@
|
|
|
15
15
|
|
|
16
16
|
<link rel="shortcut icon" href="img/favicon.ico" />
|
|
17
17
|
<title>Signal K Server</title>
|
|
18
|
-
<script type="module" crossorigin src="./assets/index-
|
|
19
|
-
<link rel="modulepreload" crossorigin href="./assets/preload-helper-
|
|
20
|
-
<link rel="modulepreload" crossorigin href="./
|
|
21
|
-
<link rel="
|
|
18
|
+
<script type="module" crossorigin src="./assets/index-DbcCYLtL.js"></script>
|
|
19
|
+
<link rel="modulepreload" crossorigin href="./assets/preload-helper-I1wKxk_B.js">
|
|
20
|
+
<link rel="modulepreload" crossorigin href="./assets/dist-C3AHhjoY.js">
|
|
21
|
+
<link rel="modulepreload" crossorigin href="./assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__adminUI__remoteEntry_js-DnpHXGIN.js">
|
|
22
|
+
<link rel="modulepreload" crossorigin href="./assets/virtual_mf-exposes___mfe_internal__adminUI__remoteEntry_js-DtDVRqax.js">
|
|
23
|
+
<link rel="stylesheet" crossorigin href="./assets/style-DKgi9hUa.css">
|
|
22
24
|
</head>
|
|
23
25
|
<body
|
|
24
26
|
class="app header-fixed sidebar-fixed aside-menu-fixed aside-menu-hidden"
|
package/public/remoteEntry.js
CHANGED
|
@@ -1,8 +1 @@
|
|
|
1
|
-
|
|
2
|
-
`),r=t.filter(n=>!Un.some(o=>n.includes(o)));return r.length?`Stack trace:
|
|
3
|
-
${r.slice(0,5).join(`
|
|
4
|
-
`)}`:void 0}catch{return}}var yr=class{constructor(e,t=pe){this.prefix=e,this.delegate=t??pe}setPrefix(e){this.prefix=e}setDelegate(e){this.delegate=e??pe}emit(e,t){const r=this.delegate,n=$t.isDebugMode()?Gn():void 0,o=n?[...t,n]:t,s=(()=>{switch(e){case"log":return["log","info"];case"info":return["info","log"];case"warn":return["warn","info","log"];case"error":return["error","warn","log"];default:return["debug","log"]}})();for(const i of s){const a=r[i];if(typeof a=="function"){a.call(r,this.prefix,...o);return}}for(const i of s){const a=pe[i];if(typeof a=="function"){a.call(pe,this.prefix,...o);return}}}log(...e){this.emit("log",e)}warn(...e){this.emit("warn",e)}error(...e){this.emit("error",e)}success(...e){this.emit("info",e)}info(...e){this.emit("info",e)}ready(...e){this.emit("info",e)}debug(...e){$t.isDebugMode()&&this.emit("debug",e)}};function Sr(e){return new yr(e)}function br(e){const t=new yr(e);return Object.defineProperty(t,"__mf_infrastructure_logger__",{value:!0,enumerable:!1,configurable:!1}),t}function Wn(e,t,r){if(e.__mf_infrastructure_logger__&&t?.getInfrastructureLogger)try{const n=t.getInfrastructureLogger(r);n&&typeof n=="object"&&(typeof n.log=="function"||typeof n.info=="function"||typeof n.warn=="function"||typeof n.error=="function")&&e.setDelegate(n)}catch{e.setDelegate(void 0)}}const Bn=Sr(Er),Vn=br(Er);ue.bindLoggerToCompiler=Wn;ue.createInfrastructureLogger=br;ue.createLogger=Sr;ue.infrastructureLogger=Vn;ue.logger=Bn;var fe={};const jn=D;async function Tt(e,t){try{return await e()}catch(r){!t&&jn.warn(r);return}}function Ue(e,t){const r=/^(https?:)?\/\//i;return e.replace(r,"").replace(/\/$/,"")===t.replace(r,"").replace(/\/$/,"")}function Rr(e){let t=null,r=!0,n=2e4,o;const s=document.getElementsByTagName("script");for(let l=0;l<s.length;l++){const u=s[l],f=u.getAttribute("src");if(f&&Ue(f,e.url)){t=u,r=!1;break}}if(!t){const l=e.attrs;t=document.createElement("script"),t.type=l?.type==="module"?"module":"text/javascript";let u;e.createScriptHook&&(u=e.createScriptHook(e.url,e.attrs),u instanceof HTMLScriptElement?t=u:typeof u=="object"&&("script"in u&&u.script&&(t=u.script),"timeout"in u&&u.timeout&&(n=u.timeout))),t.src||(t.src=e.url),l&&!u&&Object.keys(l).forEach(f=>{t&&(f==="async"||f==="defer"?t[f]=l[f]:t.getAttribute(f)||t.setAttribute(f,l[f]))})}let i=null;const a=typeof window<"u"?l=>{if(l.filename&&Ue(l.filename,e.url)){const u=new Error(`ScriptExecutionError: Script "${e.url}" loaded but threw a runtime error during execution: ${l.message} (${l.filename}:${l.lineno}:${l.colno})`);u.name="ScriptExecutionError",i=u}}:null;a&&window.addEventListener("error",a);const c=async(l,u)=>{clearTimeout(o),a&&window.removeEventListener("error",a);const f=()=>{if(u?.type==="error"){const d=new Error(`ScriptNetworkError: Failed to load script "${e.url}" - the script URL is unreachable or the server returned an error (network failure, 404, CORS, etc.)`);d.name="ScriptNetworkError",e?.onErrorCallback&&e?.onErrorCallback(d)}else i?e?.onErrorCallback&&e?.onErrorCallback(i):e?.cb&&e?.cb()};if(t&&(t.onerror=null,t.onload=null,Tt(()=>{const{needDeleteScript:d=!0}=e;d&&t?.parentNode&&t.parentNode.removeChild(t)}),l&&typeof l=="function")){const d=l(u);if(d instanceof Promise){const h=await d;return f(),h}return f(),d}f()};return t.onerror=c.bind(null,t.onerror),t.onload=c.bind(null,t.onload),o=setTimeout(()=>{c(null,new Error(`Remote script "${e.url}" time-outed.`))},n),{script:t,needAttach:r}}function xn(e){let t=null,r=!0;const n=document.getElementsByTagName("link");for(let s=0;s<n.length;s++){const i=n[s],a=i.getAttribute("href"),c=i.getAttribute("rel");if(a&&Ue(a,e.url)&&c===e.attrs.rel){t=i,r=!1;break}}if(!t){t=document.createElement("link"),t.setAttribute("href",e.url);let s;const i=e.attrs;e.createLinkHook&&(s=e.createLinkHook(e.url,i),s instanceof HTMLLinkElement&&(t=s)),i&&!s&&Object.keys(i).forEach(a=>{t&&!t.getAttribute(a)&&t.setAttribute(a,i[a])})}const o=(s,i)=>{const a=()=>{i?.type==="error"?e?.onErrorCallback&&e?.onErrorCallback(i):e?.cb&&e?.cb()};if(t&&(t.onerror=null,t.onload=null,Tt(()=>{const{needDeleteLink:c=!0}=e;c&&t?.parentNode&&t.parentNode.removeChild(t)}),s)){const c=s(i);return a(),c}a()};return t.onerror=o.bind(null,t.onerror),t.onload=o.bind(null,t.onload),{link:t,needAttach:r}}function Xn(e,t){const{attrs:r={},createScriptHook:n}=t;return new Promise((o,s)=>{const{script:i,needAttach:a}=Rr({url:e,cb:o,onErrorCallback:s,attrs:{fetchpriority:"high",...r},createScriptHook:n,needDeleteScript:!0});a&&document.head.appendChild(i)})}fe.createLink=xn;fe.createScript=Rr;fe.isStaticResourcesEqual=Ue;fe.loadScript=Xn;fe.safeWrapper=Tt;var Nt={};const Kn=(e,t,r,n)=>{t(new Error("createScriptNode is disabled in non-Node.js environment"))},Yn=(e,t)=>{throw new Error("loadScriptNode is disabled in non-Node.js environment")};Nt.createScriptNode=Kn;Nt.loadScriptNode=Yn;var Ir={};function zn(e,t,r){return function(n){if(n===!1)return!1;if(typeof n>"u")return e?t:!1;if(n===!0)return t;if(n&&typeof n=="object")return{...t,...n};throw new Error(`Unexpected type for \`${r}\`, expect boolean/undefined/object, got: ${typeof n}`)}}Ir.normalizeOptions=zn;var Tr={};const Jn=e=>e;Tr.createModuleFederationConfig=Jn;(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=N,r=ar,n=lr,o=cr,s=ur,i=fr,a=dr,c=z,l=D,u=ce,f=ue,d=fe,h=Nt,m=Ir,p=Tr;e.BROWSER_LOG_KEY=t.BROWSER_LOG_KEY,e.ENCODE_NAME_PREFIX=t.ENCODE_NAME_PREFIX,e.EncodedNameTransformMap=t.EncodedNameTransformMap,e.FederationModuleManifest=t.FederationModuleManifest,e.MANIFEST_EXT=t.MANIFEST_EXT,e.MFModuleType=t.MFModuleType,e.MFPrefetchCommon=t.MFPrefetchCommon,e.MODULE_DEVTOOL_IDENTIFIER=t.MODULE_DEVTOOL_IDENTIFIER,e.ManifestFileName=t.ManifestFileName,e.NameTransformMap=t.NameTransformMap,e.NameTransformSymbol=t.NameTransformSymbol,e.SEPARATOR=t.SEPARATOR,e.StatsFileName=t.StatsFileName,e.TEMP_DIR=t.TEMP_DIR,e.TreeShakingStatus=t.TreeShakingStatus,e.assert=l.assert,e.bindLoggerToCompiler=f.bindLoggerToCompiler,e.composeKeyWithSeparator=l.composeKeyWithSeparator,Object.defineProperty(e,"consumeSharedPlugin",{enumerable:!0,get:function(){return i.ConsumeSharedPlugin_exports}}),Object.defineProperty(e,"containerPlugin",{enumerable:!0,get:function(){return r.ContainerPlugin_exports}}),Object.defineProperty(e,"containerReferencePlugin",{enumerable:!0,get:function(){return n.ContainerReferencePlugin_exports}}),e.createInfrastructureLogger=f.createInfrastructureLogger,e.createLink=d.createLink,e.createLogger=f.createLogger,e.createModuleFederationConfig=p.createModuleFederationConfig,e.createScript=d.createScript,e.createScriptNode=h.createScriptNode,e.decodeName=l.decodeName,e.encodeName=l.encodeName,e.error=l.error,e.generateExposeFilename=l.generateExposeFilename,e.generateShareFilename=l.generateShareFilename,e.generateSnapshotFromManifest=u.generateSnapshotFromManifest,e.getManifestFileName=u.getManifestFileName,e.getProcessEnv=c.getProcessEnv,e.getResourceUrl=l.getResourceUrl,e.inferAutoPublicPath=u.inferAutoPublicPath,e.infrastructureLogger=f.infrastructureLogger,e.isBrowserEnv=c.isBrowserEnv,e.isBrowserEnvValue=c.isBrowserEnvValue,e.isDebugMode=c.isDebugMode,e.isManifestProvider=u.isManifestProvider,e.isReactNativeEnv=c.isReactNativeEnv,e.isRequiredVersion=l.isRequiredVersion,e.isStaticResourcesEqual=d.isStaticResourcesEqual,e.loadScript=d.loadScript,e.loadScriptNode=h.loadScriptNode,e.logger=f.logger,Object.defineProperty(e,"moduleFederationPlugin",{enumerable:!0,get:function(){return o.ModuleFederationPlugin_exports}}),e.normalizeOptions=m.normalizeOptions,e.parseEntry=l.parseEntry,Object.defineProperty(e,"provideSharedPlugin",{enumerable:!0,get:function(){return a.ProvideSharedPlugin_exports}}),e.safeToString=l.safeToString,e.safeWrapper=d.safeWrapper,Object.defineProperty(e,"sharePlugin",{enumerable:!0,get:function(){return s.SharePlugin_exports}}),e.simpleJoinRemoteEntry=u.simpleJoinRemoteEntry,e.warn=l.warn})(L);var Nr={},Mt={};const Zn=e=>`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`,Qn=(e,t,r,n)=>{const o=[`${[t[e]]} #${e}`];return r&&o.push(`args: ${JSON.stringify(r)}`),o.push(Zn(e)),n&&o.push(`Original Error Message:
|
|
5
|
-
${n}`),o.join(`
|
|
6
|
-
`)};Mt.getShortErrorMsg=Qn;(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Mt;function r(n,o,s,i,a,c){return i(t.getShortErrorMsg(n,o,s,a))}e.logAndReport=r})(Nr);let eo=L,to=Nr;const Q="[ Federation Runtime ]",dt=(0,eo.createLogger)(Q);function ro(e,t,r,n,o){e||(r!==void 0?ht(t,r,n,void 0,o):ht(t))}function ht(e,t,r,n,o){if(t!==void 0)return(0,to.logAndReport)(e,t,r??{},i=>{throw new Error(`${Q}: ${i}`)},n,o);const s=e;throw s instanceof Error?(s.message.startsWith(Q)||(s.message=`${Q}: ${s.message}`),s):new Error(`${Q}: ${s}`)}function no(e){e instanceof Error&&(e.message.startsWith(Q)||(e.message=`${Q}: ${e.message}`)),dt.warn(e)}T.assert=ro;T.error=ht;T.logger=dt;T.warn=no;var R={};const oo=T;let kt=L;function so(e,t){return e.findIndex(r=>r===t)===-1&&e.push(t),e}function io(e){return"version"in e&&e.version?`${e.name}:${e.version}`:"entry"in e&&e.entry?`${e.name}:${e.entry}`:`${e.name}`}function ao(e){return typeof e.entry<"u"}function lo(e){return!e.entry.includes(".json")}async function co(e,t){try{return await e()}catch(r){!t&&oo.warn(r);return}}function uo(e){return e&&typeof e=="object"}const Mr=Object.prototype.toString;function fo(e){return Mr.call(e)==="[object Object]"}function ho(e,t){const r=/^(https?:)?\/\//i;return e.replace(r,"").replace(/\/$/,"")===t.replace(r,"").replace(/\/$/,"")}function mo(e){return Array.isArray(e)?e:[e]}function po(e){const t={url:"",type:"global",globalName:""};return kt.isBrowserEnvValue||(0,kt.isReactNativeEnv)()||!("ssrRemoteEntry"in e)?"remoteEntry"in e?{url:e.remoteEntry,type:e.remoteEntryType,globalName:e.globalName}:t:"ssrRemoteEntry"in e?{url:e.ssrRemoteEntry||t.url,type:e.ssrRemoteEntryType||t.type,globalName:e.globalName}:t}const _o=(e,t)=>{let r;return e.endsWith("/")?r=e.slice(0,-1):r=e,t.startsWith(".")&&(t=t.slice(1)),r=r+t,r};R.addUniqueItem=so;R.arrayOptions=mo;R.getFMId=io;R.getRemoteEntryInfoFromSnapshot=po;R.isObject=uo;R.isPlainObject=fo;R.isPureRemoteEntry=lo;R.isRemoteInfoWithEntry=ao;R.isStaticResourcesEqual=ho;R.objectToString=Mr;R.processModuleAlias=_o;R.safeWrapper=co;var S={};const Pr=T,mt=R;let go=L;const v=typeof globalThis=="object"?globalThis:window,H=(()=>{try{return document.defaultView}catch{return v}})(),Eo=H;function De(e,t,r){Object.defineProperty(e,t,{value:r,configurable:!1,writable:!0})}function He(e,t){return Object.hasOwnProperty.call(e,t)}He(v,"__GLOBAL_LOADING_REMOTE_ENTRY__")||De(v,"__GLOBAL_LOADING_REMOTE_ENTRY__",{});const pt=v.__GLOBAL_LOADING_REMOTE_ENTRY__;function vr(e){He(e,"__VMOK__")&&!He(e,"__FEDERATION__")&&De(e,"__FEDERATION__",e.__VMOK__),He(e,"__FEDERATION__")||(De(e,"__FEDERATION__",{__GLOBAL_PLUGIN__:[],__INSTANCES__:[],moduleInfo:{},__SHARE__:{},__MANIFEST_LOADING__:{},__PRELOADED_MAP__:new Map}),De(e,"__VMOK__",e.__FEDERATION__)),e.__FEDERATION__.__GLOBAL_PLUGIN__??=[],e.__FEDERATION__.__INSTANCES__??=[],e.__FEDERATION__.moduleInfo??={},e.__FEDERATION__.__SHARE__??={},e.__FEDERATION__.__MANIFEST_LOADING__??={},e.__FEDERATION__.__PRELOADED_MAP__??=new Map}vr(v);vr(H);function yo(){v.__FEDERATION__.__GLOBAL_PLUGIN__=[],v.__FEDERATION__.__INSTANCES__=[],v.__FEDERATION__.moduleInfo={},v.__FEDERATION__.__SHARE__={},v.__FEDERATION__.__MANIFEST_LOADING__={},Object.keys(pt).forEach(e=>{delete pt[e]})}function So(e){v.__FEDERATION__.__INSTANCES__.push(e)}function bo(){return v.__FEDERATION__.__DEBUG_CONSTRUCTOR__}function Ro(e,t=(0,go.isDebugMode)()){t&&(v.__FEDERATION__.__DEBUG_CONSTRUCTOR__=e,v.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__="2.2.3")}function _t(e,t){if(typeof t=="string"){if(e[t])return{value:e[t],key:t};{const r=Object.keys(e);for(const n of r){const[o,s]=n.split(":"),i=`${o}:${t}`,a=e[i];if(a)return{value:a,key:i}}return{value:void 0,key:t}}}else Pr.error(`getInfoWithoutType: "key" must be a string, got ${typeof t} (${JSON.stringify(t)}).`)}const Io=()=>H.__FEDERATION__.moduleInfo,Ar=(e,t)=>{const r=_t(t,mt.getFMId(e)).value;if(r&&!r.version&&"version"in e&&e.version&&(r.version=e.version),r)return r;if("version"in e&&e.version){const{version:n,...o}=e,s=mt.getFMId(o),i=_t(H.__FEDERATION__.moduleInfo,s).value;if(i?.version===n)return i}},To=e=>Ar(e,H.__FEDERATION__.moduleInfo),No=(e,t)=>{const r=mt.getFMId(e);return H.__FEDERATION__.moduleInfo[r]=t,H.__FEDERATION__.moduleInfo},Mo=e=>(H.__FEDERATION__.moduleInfo={...H.__FEDERATION__.moduleInfo,...e},()=>{const t=Object.keys(e);for(const r of t)delete H.__FEDERATION__.moduleInfo[r]}),Po=(e,t)=>{const r=t||`__FEDERATION_${e}:custom__`;return{remoteEntryKey:r,entryExports:v[r]}},vo=e=>{const{__GLOBAL_PLUGIN__:t}=H.__FEDERATION__;e.forEach(r=>{t.findIndex(n=>n.name===r.name)===-1?t.push(r):Pr.warn(`The plugin ${r.name} has been registered.`)})},Ao=()=>H.__FEDERATION__.__GLOBAL_PLUGIN__,Oo=e=>v.__FEDERATION__.__PRELOADED_MAP__.get(e),$o=e=>v.__FEDERATION__.__PRELOADED_MAP__.set(e,!0);S.CurrentGlobal=v;S.Global=Eo;S.addGlobalSnapshot=Mo;S.getGlobalFederationConstructor=bo;S.getGlobalHostPlugins=Ao;S.getGlobalSnapshot=Io;S.getGlobalSnapshotInfoByModuleInfo=To;S.getInfoWithoutType=_t;S.getPreloaded=Oo;S.getRemoteEntryExports=Po;S.getTargetSnapshotInfoByModuleInfo=Ar;S.globalLoading=pt;S.nativeGlobal=H;S.registerGlobalPlugins=vo;S.resetFederationGlobalInfo=yo;S.setGlobalFederationConstructor=Ro;S.setGlobalFederationInstance=So;S.setGlobalSnapshotInfoByModuleInfo=No;S.setPreloaded=$o;var Pt={},re={},G={};const Ft="[0-9A-Za-z-]+",vt=`(?:\\+(${Ft}(?:\\.${Ft})*))`,be="0|[1-9]\\d*",Ce="[0-9]+",Or="\\d*[a-zA-Z-][a-zA-Z0-9-]*",wt=`(?:${Ce}|${Or})`,ko=`(?:-?(${wt}(?:\\.${wt})*))`,Lt=`(?:${be}|${Or})`,$r=`(?:-(${Lt}(?:\\.${Lt})*))`,Ye=`${be}|x|X|\\*`,le=`[v=\\s]*(${Ye})(?:\\.(${Ye})(?:\\.(${Ye})(?:${$r})?${vt}?)?)?`,Fo=`^\\s*(${le})\\s+-\\s+(${le})\\s*$`,wo=`[v=\\s]*${`(${Ce})\\.(${Ce})\\.(${Ce})`}${ko}?${vt}?`,At="((?:<|>)?=?)",Lo=`(\\s*)${At}\\s*(${wo}|${le})`,kr="(?:~>?)",Do=`(\\s*)${kr}\\s+`,Fr="(?:\\^)",Ho=`(\\s*)${Fr}\\s+`,Co="(<|>)?=?\\s*\\*",qo=`^${Fr}${le}$`,Uo=`v?${`(${be})\\.(${be})\\.(${be})`}${$r}?${vt}?`,Go=`^${kr}${le}$`,Wo=`^${At}\\s*${le}$`,Bo=`^${At}\\s*(${Uo})$|^$`,Vo="^\\s*>=\\s*0.0.0\\s*$";G.caret=qo;G.caretTrim=Ho;G.comparator=Bo;G.comparatorTrim=Lo;G.gte0=Vo;G.hyphenRange=Fo;G.star=Co;G.tilde=Go;G.tildeTrim=Do;G.xRange=Wo;const jo=G;function wr(e){return new RegExp(e)}function xo(e){return!e||e.toLowerCase()==="x"||e==="*"}function Xo(...e){return t=>e.reduce((r,n)=>n(r),t)}function Ko(e){return e.match(wr(jo.comparator))}function Yo(e,t,r,n){const o=`${e}.${t}.${r}`;return n?`${o}-${n}`:o}re.combineVersion=Yo;re.extractComparator=Ko;re.isXVersion=xo;re.parseRegex=wr;re.pipe=Xo;var V={};const x=G,b=re;function zo(e){return e.replace(b.parseRegex(x.hyphenRange),(t,r,n,o,s,i,a,c,l,u,f,d)=>(b.isXVersion(n)?r="":b.isXVersion(o)?r=`>=${n}.0.0`:b.isXVersion(s)?r=`>=${n}.${o}.0`:r=`>=${r}`,b.isXVersion(l)?c="":b.isXVersion(u)?c=`<${Number(l)+1}.0.0-0`:b.isXVersion(f)?c=`<${l}.${Number(u)+1}.0-0`:d?c=`<=${l}.${u}.${f}-${d}`:c=`<=${c}`,`${r} ${c}`.trim()))}function Jo(e){return e.replace(b.parseRegex(x.comparatorTrim),"$1$2$3")}function Zo(e){return e.replace(b.parseRegex(x.tildeTrim),"$1~")}function Qo(e){return e.replace(b.parseRegex(x.caretTrim),"$1^")}function es(e){return e.trim().split(/\s+/).map(t=>t.replace(b.parseRegex(x.caret),(r,n,o,s,i)=>b.isXVersion(n)?"":b.isXVersion(o)?`>=${n}.0.0 <${Number(n)+1}.0.0-0`:b.isXVersion(s)?n==="0"?`>=${n}.${o}.0 <${n}.${Number(o)+1}.0-0`:`>=${n}.${o}.0 <${Number(n)+1}.0.0-0`:i?n==="0"?o==="0"?`>=${n}.${o}.${s}-${i} <${n}.${o}.${Number(s)+1}-0`:`>=${n}.${o}.${s}-${i} <${n}.${Number(o)+1}.0-0`:`>=${n}.${o}.${s}-${i} <${Number(n)+1}.0.0-0`:n==="0"?o==="0"?`>=${n}.${o}.${s} <${n}.${o}.${Number(s)+1}-0`:`>=${n}.${o}.${s} <${n}.${Number(o)+1}.0-0`:`>=${n}.${o}.${s} <${Number(n)+1}.0.0-0`)).join(" ")}function ts(e){return e.trim().split(/\s+/).map(t=>t.replace(b.parseRegex(x.tilde),(r,n,o,s,i)=>b.isXVersion(n)?"":b.isXVersion(o)?`>=${n}.0.0 <${Number(n)+1}.0.0-0`:b.isXVersion(s)?`>=${n}.${o}.0 <${n}.${Number(o)+1}.0-0`:i?`>=${n}.${o}.${s}-${i} <${n}.${Number(o)+1}.0-0`:`>=${n}.${o}.${s} <${n}.${Number(o)+1}.0-0`)).join(" ")}function rs(e){return e.split(/\s+/).map(t=>t.trim().replace(b.parseRegex(x.xRange),(r,n,o,s,i,a)=>{const c=b.isXVersion(o),l=c||b.isXVersion(s),u=l||b.isXVersion(i);return n==="="&&u&&(n=""),a="",c?n===">"||n==="<"?"<0.0.0-0":"*":n&&u?(l&&(s=0),i=0,n===">"?(n=">=",l?(o=Number(o)+1,s=0,i=0):(s=Number(s)+1,i=0)):n==="<="&&(n="<",l?o=Number(o)+1:s=Number(s)+1),n==="<"&&(a="-0"),`${n+o}.${s}.${i}${a}`):l?`>=${o}.0.0${a} <${Number(o)+1}.0.0-0`:u?`>=${o}.${s}.0${a} <${o}.${Number(s)+1}.0-0`:r})).join(" ")}function ns(e){return e.trim().replace(b.parseRegex(x.star),"")}function os(e){return e.trim().replace(b.parseRegex(x.gte0),"")}V.parseCaretTrim=Qo;V.parseCarets=es;V.parseComparatorTrim=Jo;V.parseGTE0=os;V.parseHyphen=zo;V.parseStar=ns;V.parseTildeTrim=Zo;V.parseTildes=ts;V.parseXRanges=rs;var Lr={};function qe(e,t){return e=Number(e)||e,t=Number(t)||t,e>t?1:e===t?0:-1}function ss(e,t){const{preRelease:r}=e,{preRelease:n}=t;if(r===void 0&&n)return 1;if(r&&n===void 0)return-1;if(r===void 0&&n===void 0)return 0;for(let o=0,s=r.length;o<=s;o++){const i=r[o],a=n[o];if(i!==a)return i===void 0&&a===void 0?0:i?a?qe(i,a):-1:1}return 0}function $e(e,t){return qe(e.major,t.major)||qe(e.minor,t.minor)||qe(e.patch,t.patch)||ss(e,t)}function ze(e,t){return e.version===t.version}function is(e,t){switch(e.operator){case"":case"=":return ze(e,t);case">":return $e(e,t)<0;case">=":return ze(e,t)||$e(e,t)<0;case"<":return $e(e,t)>0;case"<=":return ze(e,t)||$e(e,t)>0;case void 0:return!0;default:return!1}}Lr.compare=is;const ie=re,j=V,as=Lr;function ls(e){return ie.pipe(j.parseCarets,j.parseTildes,j.parseXRanges,j.parseStar)(e)}function cs(e){return ie.pipe(j.parseHyphen,j.parseComparatorTrim,j.parseTildeTrim,j.parseCaretTrim)(e.trim()).split(/\s+/).join(" ")}function us(e,t){if(!e)return!1;const r=ie.extractComparator(e);if(!r)return!1;const[,n,,o,s,i,a]=r,c={operator:n,version:ie.combineVersion(o,s,i,a),major:o,minor:s,patch:i,preRelease:a?.split(".")},l=t.split("||");for(const u of l){const f=u.trim();if(!f||f==="*"||f==="x")return!0;try{const d=cs(f);if(!d.trim())return!0;const h=d.split(" ").map(E=>ls(E)).join(" ");if(!h.trim())return!0;const m=h.split(/\s+/).map(E=>j.parseGTE0(E)).filter(Boolean);if(m.length===0)continue;let p=!0;for(const E of m){const g=ie.extractComparator(E);if(!g){p=!1;break}const[,_,,M,$,A,I]=g;if(!as.compare({operator:_,version:ie.combineVersion(M,$,A,I),major:M,minor:$,patch:A,preRelease:I?.split(".")},c)){p=!1;break}}if(p)return!0}catch(d){console.error(`[semver] Error processing range part "${f}":`,d);continue}}return!1}Pt.satisfy=us;var C={},ne={};const fs="default",ds="global";ne.DEFAULT_REMOTE_TYPE=ds;ne.DEFAULT_SCOPE=fs;const Ge=T,Dr=R,Hr=S,hs=ne,Ee=Pt;let gt=L;function ms(e,t,r,n){let o;return"get"in e?o=e.get:"lib"in e?o=()=>Promise.resolve(e.lib):o=()=>Promise.resolve(()=>{Ge.error(`Cannot get shared "${r}" from "${t}": neither "get" nor "lib" is provided in the share config.`)}),e.shareConfig?.eager&&e.treeShaking?.mode&&Ge.error(`Invalid shared config for "${r}" from "${t}": cannot use both "eager: true" and "treeShaking.mode" simultaneously. Choose one strategy.`),{deps:[],useIn:[],from:t,loading:null,...e,shareConfig:{requiredVersion:`^${e.version}`,singleton:!1,eager:!1,strictVersion:!1,...e.shareConfig},get:o,loaded:e?.loaded||"lib"in e?!0:void 0,version:e.version??"0",scope:Array.isArray(e.scope)?e.scope:[e.scope??"default"],strategy:(e.strategy??n)||"version-first",treeShaking:e.treeShaking?{...e.treeShaking,mode:e.treeShaking.mode??"server-calc",status:e.treeShaking.status??gt.TreeShakingStatus.UNKNOWN,useIn:[]}:void 0}}function ps(e,t){const r=t.shared||{},n=t.name,o=Object.keys(r).reduce((i,a)=>{const c=Dr.arrayOptions(r[a]);return i[a]=i[a]||[],c.forEach(l=>{i[a].push(ms(l,n,a,t.shareStrategy))}),i},{}),s={...e.shared};return Object.keys(o).forEach(i=>{s[i]?o[i].forEach(a=>{s[i].find(c=>c.version===a.version)||s[i].push(a)}):s[i]=o[i]}),{allShareInfos:s,newShareInfos:o}}function Re(e,t){if(!e)return!1;const{status:r,mode:n}=e;return r===gt.TreeShakingStatus.NO_USE?!1:r===gt.TreeShakingStatus.CALCULATED?!0:n==="runtime-infer"?t?gs(e,t):!0:!1}function ee(e,t){const r=n=>{if(!Number.isNaN(Number(n))){const o=n.split(".");let s=n;for(let i=0;i<3-o.length;i++)s+=".0";return s}return n};return!!Ee.satisfy(r(e),`<=${r(t)}`)}const Ie=(e,t)=>{const r=t||function(n,o){return ee(n,o)};return Object.keys(e).reduce((n,o)=>!n||r(n,o)||n==="0"?o:n,0)},We=e=>!!e.loaded||typeof e.lib=="function",_s=e=>!!e.loading,gs=(e,t)=>{if(!e||!t)return!1;const{usedExports:r}=e;return r?!!t.every(n=>r.includes(n)):!1};function Es(e,t,r,n){const o=e[t][r];let s="",i=Re(n);const a=function(c,l){return i?o[c].treeShaking?o[l].treeShaking?!We(o[c].treeShaking)&&ee(c,l):!1:!0:!We(o[c])&&ee(c,l)};if(i){if(s=Ie(e[t][r],a),s)return{version:s,useTreesShaking:i};i=!1}return{version:Ie(e[t][r],a),useTreesShaking:i}}const oe=e=>We(e)||_s(e);function ys(e,t,r,n){const o=e[t][r];let s="",i=Re(n);const a=function(c,l){if(i){if(!o[c].treeShaking)return!0;if(!o[l].treeShaking)return!1;if(oe(o[l].treeShaking))return oe(o[c].treeShaking)?!!ee(c,l):!0;if(oe(o[c].treeShaking))return!1}return oe(o[l])?oe(o[c])?!!ee(c,l):!0:oe(o[c])?!1:ee(c,l)};if(i){if(s=Ie(e[t][r],a),s)return{version:s,useTreesShaking:i};i=!1}return{version:Ie(e[t][r],a),useTreesShaking:i}}function Ss(e){return e==="loaded-first"?ys:Es}function bs(e,t,r,n){if(!e)return;const{shareConfig:o,scope:s=hs.DEFAULT_SCOPE,strategy:i,treeShaking:a}=r,c=Array.isArray(s)?s:[s];for(const l of c)if(o&&e[l]&&e[l][t]){const{requiredVersion:u}=o,{version:f,useTreesShaking:d}=Ss(i)(e,l,t,a),h=()=>{const p=e[l][t][f];if(o.singleton){if(typeof u=="string"&&!Ee.satisfy(f,u)){const E=`Version ${f} from ${f&&p.from} of shared singleton module ${t} does not satisfy the requirement of ${r.from} which needs ${u})`;o.strictVersion?Ge.error(E):Ge.warn(E)}return{shared:p,useTreesShaking:d}}else{if(u===!1||u==="*")return{shared:p,useTreesShaking:d};if(Ee.satisfy(f,u))return{shared:p,useTreesShaking:d};const E=Re(a);if(E){for(const[g,_]of Object.entries(e[l][t]))if(Re(_.treeShaking,a?.usedExports)&&Ee.satisfy(g,u))return{shared:_,useTreesShaking:E}}for(const[g,_]of Object.entries(e[l][t]))if(Ee.satisfy(g,u))return{shared:_,useTreesShaking:!1}}},m={shareScopeMap:e,scope:l,pkgName:t,version:f,GlobalFederation:Hr.Global.__FEDERATION__,shareInfo:r,resolver:h};return(n.emit(m)||m).resolver()}}function Rs(){return Hr.Global.__FEDERATION__.__SHARE__}function Is(e){const{pkgName:t,extraOptions:r,shareInfos:n}=e,o=c=>{if(!c)return;const l={};return c.forEach(f=>{l[f.version]=f}),l[Ie(l,function(f,d){return!We(l[f])&&ee(f,d)})]},s=r?.resolver??o,i=c=>c!==null&&typeof c=="object"&&!Array.isArray(c),a=(...c)=>{const l={};for(const u of c)if(u)for(const[f,d]of Object.entries(u)){const h=l[f];i(h)&&i(d)?l[f]=a(h,d):d!==void 0&&(l[f]=d)}return l};return a(s(n[t]),r?.customShareInfo)}const Ts=(e,t)=>{e.useIn||(e.useIn=[]),Dr.addUniqueItem(e.useIn,t)};function Ns(e,t){return t&&e.treeShaking?e.treeShaking:e}C.addUseIn=Ts;C.directShare=Ns;C.formatShareConfigs=ps;C.getGlobalShareScope=Rs;C.getRegisteredShare=bs;C.getTargetSharedOptions=Is;C.shouldUseTreeShaking=Re;var de={};function Ms(e,t){for(const r of e){const n=t.startsWith(r.name);let o=t.replace(r.name,"");if(n){if(o.startsWith("/")){const a=r.name;return o=`.${o}`,{pkgNameOrAlias:a,expose:o,remote:r}}else if(o==="")return{pkgNameOrAlias:r.name,expose:".",remote:r}}const s=r.alias&&t.startsWith(r.alias);let i=r.alias&&t.replace(r.alias,"");if(r.alias&&s){if(i&&i.startsWith("/")){const a=r.alias;return i=`.${i}`,{pkgNameOrAlias:a,expose:i,remote:r}}else if(i==="")return{pkgNameOrAlias:r.alias,expose:".",remote:r}}}}function Ps(e,t){for(const r of e)if(t===r.name||r.alias&&t===r.alias)return r}de.matchRemote=Ps;de.matchRemoteWithNameAndExpose=Ms;var X={},K={},k={};const vs="RUNTIME-001",As="RUNTIME-002",Os="RUNTIME-003",$s="RUNTIME-004",ks="RUNTIME-005",Fs="RUNTIME-006",ws="RUNTIME-007",Ls="RUNTIME-008",Ds="RUNTIME-009",Hs="RUNTIME-010",Cs="RUNTIME-011",qs="TYPE-001",Us="BUILD-001",Gs="BUILD-002";k.BUILD_001=Us;k.BUILD_002=Gs;k.RUNTIME_001=vs;k.RUNTIME_002=As;k.RUNTIME_003=Os;k.RUNTIME_004=$s;k.RUNTIME_005=ks;k.RUNTIME_006=Fs;k.RUNTIME_007=ws;k.RUNTIME_008=Ls;k.RUNTIME_009=Ds;k.RUNTIME_010=Hs;k.RUNTIME_011=Cs;k.TYPE_001=qs;var Me={};const w=k,Cr={[w.RUNTIME_001]:"Failed to get remoteEntry exports.",[w.RUNTIME_002]:'The remote entry interface does not contain "init"',[w.RUNTIME_003]:"Failed to get manifest.",[w.RUNTIME_004]:"Failed to locate remote.",[w.RUNTIME_005]:"Invalid loadShareSync function call from bundler runtime",[w.RUNTIME_006]:"Invalid loadShareSync function call from runtime",[w.RUNTIME_007]:"Failed to get remote snapshot.",[w.RUNTIME_008]:"Failed to load script resources.",[w.RUNTIME_009]:"Please call createInstance first.",[w.RUNTIME_010]:'The name option cannot be changed after initialization. If you want to create a new instance with a different name, please use "createInstance" api.',[w.RUNTIME_011]:"The remoteEntry URL is missing from the remote snapshot."},qr={[w.TYPE_001]:"Failed to generate type declaration. Execute the below cmd to reproduce and fix the error."},Ur={[w.BUILD_001]:"Failed to find expose module.",[w.BUILD_002]:"PublicPath is required in prod mode."},Ws={...Cr,...qr,...Ur};Me.buildDescMap=Ur;Me.errorDescMap=Ws;Me.runtimeDescMap=Cr;Me.typeDescMap=qr;(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=k,r=Mt,n=Me;e.BUILD_001=t.BUILD_001,e.BUILD_002=t.BUILD_002,e.RUNTIME_001=t.RUNTIME_001,e.RUNTIME_002=t.RUNTIME_002,e.RUNTIME_003=t.RUNTIME_003,e.RUNTIME_004=t.RUNTIME_004,e.RUNTIME_005=t.RUNTIME_005,e.RUNTIME_006=t.RUNTIME_006,e.RUNTIME_007=t.RUNTIME_007,e.RUNTIME_008=t.RUNTIME_008,e.RUNTIME_009=t.RUNTIME_009,e.RUNTIME_010=t.RUNTIME_010,e.RUNTIME_011=t.RUNTIME_011,e.TYPE_001=t.TYPE_001,e.buildDescMap=n.buildDescMap,e.errorDescMap=n.errorDescMap,e.getShortErrorMsg=r.getShortErrorMsg,e.runtimeDescMap=n.runtimeDescMap,e.typeDescMap=n.typeDescMap})(K);const Ve=T,ae=S,Dt=ne;let Gr=L,Te=K;const Wr=".then(callbacks[0]).catch(callbacks[1])";async function Bs({entry:e,remoteEntryExports:t}){return new Promise((r,n)=>{try{t?r(t):typeof FEDERATION_ALLOW_NEW_FUNCTION<"u"?new Function("callbacks",`import("${e}")${Wr}`)([r,n]):import(e).then(r).catch(n)}catch(o){Ve.error(`Failed to load ESM entry from "${e}". ${o instanceof Error?o.message:String(o)}`)}})}async function Vs({entry:e,remoteEntryExports:t}){return new Promise((r,n)=>{try{t?r(t):typeof __system_context__>"u"?System.import(e).then(r).catch(n):new Function("callbacks",`System.import("${e}")${Wr}`)([r,n])}catch(o){Ve.error(`Failed to load SystemJS entry from "${e}". ${o instanceof Error?o.message:String(o)}`)}})}function js(e,t,r){const{remoteEntryKey:n,entryExports:o}=ae.getRemoteEntryExports(e,t);return o||Ve.error(Te.RUNTIME_001,Te.runtimeDescMap,{remoteName:e,remoteEntryUrl:r,remoteEntryKey:n}),o}async function xs({name:e,globalName:t,entry:r,loaderHook:n,getEntryUrl:o}){const{entryExports:s}=ae.getRemoteEntryExports(e,t);if(s)return s;const i=o?o(r):r;return(0,Gr.loadScript)(i,{attrs:{},createScriptHook:(a,c)=>{const l=n.lifecycle.createScript.emit({url:a,attrs:c});if(l&&(l instanceof HTMLScriptElement||"script"in l||"timeout"in l))return l}}).then(()=>js(e,t,r),a=>{const c=a instanceof Error?a.message:String(a);Ve.error(Te.RUNTIME_008,Te.runtimeDescMap,{remoteName:e,resourceUrl:i},c)})}async function Xs({remoteInfo:e,remoteEntryExports:t,loaderHook:r,getEntryUrl:n}){const{entry:o,entryGlobalName:s,name:i,type:a}=e;switch(a){case"esm":case"module":return Bs({entry:o,remoteEntryExports:t});case"system":return Vs({entry:o,remoteEntryExports:t});default:return xs({entry:o,globalName:s,name:i,loaderHook:r,getEntryUrl:n})}}function Et(e){const{entry:t,name:r}=e;return(0,Gr.composeKeyWithSeparator)(r,t)}async function Br(e){const{origin:t,remoteEntryExports:r,remoteInfo:n,getEntryUrl:o,_inErrorHandling:s=!1}=e,i=Et(n);if(r)return r;if(!ae.globalLoading[i]){const a=t.remoteHandler.hooks.lifecycle.loadEntry,c=t.loaderHook;ae.globalLoading[i]=a.emit({loaderHook:c,remoteInfo:n,remoteEntryExports:r}).then(l=>l||Xs({remoteInfo:n,remoteEntryExports:r,loaderHook:c,getEntryUrl:o})).catch(async l=>{const u=Et(n),f=l instanceof Error&&l.message.includes("ScriptExecutionError");if(l instanceof Error&&l.message.includes(Te.RUNTIME_008)&&!f&&!s){const d=m=>Br({...m,_inErrorHandling:!0}),h=await t.loaderHook.lifecycle.loadEntryError.emit({getRemoteEntry:d,origin:t,remoteInfo:n,remoteEntryExports:r,globalLoading:ae.globalLoading,uniqueKey:u});if(h)return h}throw l})}return ae.globalLoading[i]}function Ks(e){return{...e,entry:"entry"in e?e.entry:"",type:e.type||Dt.DEFAULT_REMOTE_TYPE,entryGlobalName:e.entryGlobalName||e.name,shareScope:e.shareScope||Dt.DEFAULT_SCOPE}}X.getRemoteEntry=Br;X.getRemoteEntryUniqueKey=Et;X.getRemoteInfo=Ks;var Vr={};function Ys(){return typeof FEDERATION_BUILD_IDENTIFIER<"u"?FEDERATION_BUILD_IDENTIFIER:""}Vr.getBuilderId=Ys;var jr={};const zs=S;function Js(e,t){const r=zs.getGlobalHostPlugins(),n=[t.hooks,t.remoteHandler.hooks,t.sharedHandler.hooks,t.snapshotHandler.hooks,t.loaderHook,t.bridgeHook];return r.length>0&&r.forEach(o=>{e?.find(s=>s.name!==o.name)&&e.push(o)}),e&&e.length>0&&e.forEach(o=>{n.forEach(s=>{s.applyPlugin(o,t)})}),e}jr.registerPlugins=Js;var Pe={};function Zs(e){return{name:e.name,alias:e.alias,entry:"entry"in e?e.entry:void 0,version:"version"in e?e.version:void 0,type:e.type,entryGlobalName:e.entryGlobalName,shareScope:e.shareScope}}function Qs(e){const t={};for(const[r,n]of Object.entries(e.shared)){const o=n[0];o&&(t[r]={version:o.version,singleton:o.shareConfig?.singleton,requiredVersion:o.shareConfig?.requiredVersion===!1?!1:o.shareConfig?.requiredVersion,eager:o.eager,strictVersion:o.shareConfig?.strictVersion})}return{project:{name:e.name,mfRole:e.remotes?.length>0?"host":"unknown"},mfConfig:{name:e.name,remotes:e.remotes?.map(Zs)??[],shared:t}}}Pe.optionsToMFContext=Qs;var xr={},J={};const ei=T,ti=de,Ht=X;let ye=L;function Xr(e){return{resourceCategory:"sync",share:!0,depsRemote:!0,prefetchInterface:!1,...e}}function ri(e,t){return t.map(r=>{const n=ti.matchRemote(e,r.nameOrAlias);return ei.assert(n,`Unable to preload ${r.nameOrAlias} as it is not included in ${!n&&(0,ye.safeToString)({remoteInfo:n,remotes:e})}`),{remote:n,preloadConfig:Xr(r)}})}function ni(e){return e?e.map(t=>t==="."?t:t.startsWith("./")?t.replace("./",""):t):[]}function oi(e,t,r,n=!0){const{cssAssets:o,jsAssetsWithoutEntry:s,entryAssets:i}=r;if(t.options.inBrowser){if(i.forEach(a=>{const{moduleInfo:c}=a,l=t.moduleCache.get(e.name);l?Ht.getRemoteEntry({origin:t,remoteInfo:c,remoteEntryExports:l.remoteEntryExports}):Ht.getRemoteEntry({origin:t,remoteInfo:c,remoteEntryExports:void 0})}),n){const a={rel:"preload",as:"style"};o.forEach(c=>{const{link:l,needAttach:u}=(0,ye.createLink)({url:c,cb:()=>{},attrs:a,createLinkHook:(f,d)=>{const h=t.loaderHook.lifecycle.createLink.emit({url:f,attrs:d});if(h instanceof HTMLLinkElement)return h}});u&&document.head.appendChild(l)})}else{const a={rel:"stylesheet",type:"text/css"};o.forEach(c=>{const{link:l,needAttach:u}=(0,ye.createLink)({url:c,cb:()=>{},attrs:a,createLinkHook:(f,d)=>{const h=t.loaderHook.lifecycle.createLink.emit({url:f,attrs:d});if(h instanceof HTMLLinkElement)return h},needDeleteLink:!1});u&&document.head.appendChild(l)})}if(n){const a={rel:"preload",as:"script"};s.forEach(c=>{const{link:l,needAttach:u}=(0,ye.createLink)({url:c,cb:()=>{},attrs:a,createLinkHook:(f,d)=>{const h=t.loaderHook.lifecycle.createLink.emit({url:f,attrs:d});if(h instanceof HTMLLinkElement)return h}});u&&document.head.appendChild(l)})}else{const a={fetchpriority:"high",type:e?.type==="module"?"module":"text/javascript"};s.forEach(c=>{const{script:l,needAttach:u}=(0,ye.createScript)({url:c,cb:()=>{},attrs:a,createScriptHook:(f,d)=>{const h=t.loaderHook.lifecycle.createScript.emit({url:f,attrs:d});if(h instanceof HTMLScriptElement)return h},needDeleteScript:!0});u&&document.head.appendChild(l)})}}}J.defaultPreloadArgs=Xr;J.formatPreloadArgs=ri;J.normalizePreloadExposes=ni;J.preloadAssets=oi;const O=S,Ct=C,si=de,ii=X,ai=J,li={getRegisteredShare:Ct.getRegisteredShare,getGlobalShareScope:Ct.getGlobalShareScope},ci={Global:O.Global,nativeGlobal:O.nativeGlobal,resetFederationGlobalInfo:O.resetFederationGlobalInfo,setGlobalFederationInstance:O.setGlobalFederationInstance,getGlobalFederationConstructor:O.getGlobalFederationConstructor,setGlobalFederationConstructor:O.setGlobalFederationConstructor,getInfoWithoutType:O.getInfoWithoutType,getGlobalSnapshot:O.getGlobalSnapshot,getTargetSnapshotInfoByModuleInfo:O.getTargetSnapshotInfoByModuleInfo,getGlobalSnapshotInfoByModuleInfo:O.getGlobalSnapshotInfoByModuleInfo,setGlobalSnapshotInfoByModuleInfo:O.setGlobalSnapshotInfoByModuleInfo,addGlobalSnapshot:O.addGlobalSnapshot,getRemoteEntryExports:O.getRemoteEntryExports,registerGlobalPlugins:O.registerGlobalPlugins,getGlobalHostPlugins:O.getGlobalHostPlugins,getPreloaded:O.getPreloaded,setPreloaded:O.setPreloaded};var ui={global:ci,share:li,utils:{matchRemoteWithNameAndExpose:si.matchRemoteWithNameAndExpose,preloadAssets:ai.preloadAssets,getRemoteInfo:ii.getRemoteInfo}};xr.default=ui;var je={};const Je=T,qt=R,fi=X,di=Pe;let hi=L,Ut=K;function mi(e,t,r){const n=t,o=Array.isArray(e.shareScope)?e.shareScope:[e.shareScope];o.length||o.push("default"),o.forEach(i=>{n[i]||(n[i]={})});const s={version:e.version||"",shareScopeKeys:Array.isArray(e.shareScope)?o:e.shareScope||"default"};return Object.defineProperty(s,"shareScopeMap",{value:n,enumerable:!1}),{remoteEntryInitOptions:s,shareScope:n[o[0]],initScope:r??[]}}var pi=class{constructor({remoteInfo:e,host:t}){this.inited=!1,this.initing=!1,this.lib=void 0,this.remoteInfo=e,this.host=t}async getEntry(){if(this.remoteEntryExports)return this.remoteEntryExports;const e=await fi.getRemoteEntry({origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports});return Je.assert(e,`remoteEntryExports is undefined
|
|
7
|
-
${(0,hi.safeToString)(this.remoteInfo)}`),this.remoteEntryExports=e,this.remoteEntryExports}async init(e,t,r){const n=await this.getEntry();if(this.inited)return n;if(this.initPromise)return await this.initPromise,n;this.initing=!0,this.initPromise=(async()=>{const{remoteEntryInitOptions:o,shareScope:s,initScope:i}=mi(this.remoteInfo,this.host.shareScopeMap,r),a=await this.host.hooks.lifecycle.beforeInitContainer.emit({shareScope:s,remoteEntryInitOptions:o,initScope:i,remoteInfo:this.remoteInfo,origin:this.host});typeof n?.init>"u"&&Je.error(Ut.RUNTIME_002,Ut.runtimeDescMap,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName},void 0,di.optionsToMFContext(this.host.options)),await n.init(a.shareScope,a.initScope,a.remoteEntryInitOptions),await this.host.hooks.lifecycle.initContainer.emit({...a,id:e,remoteSnapshot:t,remoteEntryExports:n}),this.inited=!0})();try{await this.initPromise}finally{this.initing=!1,this.initPromise=void 0}return n}async get(e,t,r,n){const{loadFactory:o=!0}=r||{loadFactory:!0},s=await this.init(e,n);this.lib=s;let i;i=await this.host.loaderHook.lifecycle.getModuleFactory.emit({remoteEntryExports:s,expose:t,moduleInfo:this.remoteInfo}),i||(i=await s.get(t)),Je.assert(i,`${qt.getFMId(this.remoteInfo)} remote don't export ${t}.`);const a=qt.processModuleAlias(this.remoteInfo.name,t),c=this.wraperFactory(i,a);return o?await c():c}wraperFactory(e,t){function r(n,o){n&&typeof n=="object"&&Object.isExtensible(n)&&!Object.getOwnPropertyDescriptor(n,Symbol.for("mf_module_id"))&&Object.defineProperty(n,Symbol.for("mf_module_id"),{value:o,enumerable:!1})}return e instanceof Promise?async()=>{const n=await e();return r(n,t),n}:()=>{const n=e();return r(n,t),n}}};je.Module=pi;var Kr={},he={},_i=class{constructor(e){this.type="",this.listeners=new Set,e&&(this.type=e)}on(e){typeof e=="function"&&this.listeners.add(e)}once(e){const t=this;this.on(function r(...n){return t.remove(r),e.apply(null,n)})}emit(...e){let t;return this.listeners.size>0&&this.listeners.forEach(r=>{t=r(...e)}),t}remove(e){this.listeners.delete(e)}removeAll(){this.listeners.clear()}};he.SyncHook=_i;var ve={};const gi=he;var Ei=class extends gi.SyncHook{emit(...e){let t;const r=Array.from(this.listeners);if(r.length>0){let n=0;const o=s=>s===!1?!1:n<r.length?Promise.resolve(r[n++].apply(null,e)).then(o):s;t=o()}return Promise.resolve(t)}};ve.AsyncHook=Ei;var me={};const Ze=T,Yr=R,yi=he;function zr(e,t){if(!Yr.isObject(t))return!1;if(e!==t){for(const r in e)if(!(r in t))return!1}return!0}var Si=class extends yi.SyncHook{constructor(e){super(),this.onerror=Ze.error,this.type=e}emit(e){Yr.isObject(e)||Ze.error(`The data for the "${this.type}" hook should be an object.`);for(const t of this.listeners)try{const r=t(e);if(zr(e,r))e=r;else{this.onerror(`A plugin returned an unacceptable value for the "${this.type}" type.`);break}}catch(r){Ze.warn(r),this.onerror(r)}return e}};me.SyncWaterfallHook=Si;me.checkReturnData=zr;var Ae={};const Qe=T,bi=R,Ri=he,Ii=me;var Ti=class extends Ri.SyncHook{constructor(e){super(),this.onerror=Qe.error,this.type=e}emit(e){bi.isObject(e)||Qe.error(`The response data for the "${this.type}" hook must be an object.`);const t=Array.from(this.listeners);if(t.length>0){let r=0;const n=s=>(Qe.warn(s),this.onerror(s),e),o=s=>{if(Ii.checkReturnData(e,s)){if(e=s,r<t.length)try{return Promise.resolve(t[r++](e)).then(o,n)}catch(i){return n(i)}}else this.onerror(`A plugin returned an incorrect value for the "${this.type}" type.`);return e};return Promise.resolve(o(e))}return Promise.resolve(e)}};Ae.AsyncWaterfallHook=Ti;var Oe={};const ke=T,Ni=R;var Mi=class{constructor(e){this.registerPlugins={},this.lifecycle=e,this.lifecycleKeys=Object.keys(e)}applyPlugin(e,t){ke.assert(Ni.isPlainObject(e),"Plugin configuration is invalid.");const r=e.name;ke.assert(r,"A name must be provided by the plugin."),this.registerPlugins[r]||(this.registerPlugins[r]=e,e.apply?.(t),Object.keys(this.lifecycle).forEach(n=>{const o=e[n];o&&this.lifecycle[n].on(o)}))}removePlugin(e){ke.assert(e,"A name is required.");const t=this.registerPlugins[e];ke.assert(t,`The plugin "${e}" is not registered.`),Object.keys(t).forEach(r=>{r!=="name"&&this.lifecycle[r].remove(t[r])})}};Oe.PluginSystem=Mi;var xe={};const Pi=T,yt=R,vi=J;let Gt=L,Wt=K;function Jr(e,t){const r=yt.getRemoteEntryInfoFromSnapshot(t);r.url||Pi.error(Wt.RUNTIME_011,Wt.runtimeDescMap,{remoteName:e.name});let n=(0,Gt.getResourceUrl)(t,r.url);!Gt.isBrowserEnvValue&&!n.startsWith("http")&&(n=`https:${n}`),e.type=r.type,e.entryGlobalName=r.globalName,e.entry=n,e.version=t.version,e.buildVersion=t.buildVersion}function Ai(){return{name:"snapshot-plugin",async afterResolve(e){const{remote:t,pkgNameOrAlias:r,expose:n,origin:o,remoteInfo:s,id:i}=e;if(!yt.isRemoteInfoWithEntry(t)||!yt.isPureRemoteEntry(t)){const{remoteSnapshot:a,globalSnapshot:c}=await o.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:t,id:i});Jr(s,a);const l={remote:t,preloadConfig:{nameOrAlias:r,exposes:[n],resourceCategory:"sync",share:!1,depsRemote:!1}},u=await o.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin:o,preloadOptions:l,remoteInfo:s,remote:t,remoteSnapshot:a,globalSnapshot:c});return u&&vi.preloadAssets(s,o,u,!1),{...e,remoteSnapshot:a}}return e}}}xe.assignRemoteInfo=Jr;xe.snapshotPlugin=Ai;var Zr={};const Ne=R,St=S,Oi=C,Bt=J,$i=xe;let Be=L;function ki(e){const t=e.split(":");return t.length===1?{name:t[0],version:void 0}:t.length===2?{name:t[0],version:t[1]}:{name:t[1],version:t[2]}}function Qr(e,t,r,n,o={},s){const{value:i}=St.getInfoWithoutType(e,Ne.getFMId(t)),a=s||i;if(a&&!(0,Be.isManifestProvider)(a)&&(r(a,t,n),a.remotesInfo)){const c=Object.keys(a.remotesInfo);for(const l of c){if(o[l])continue;o[l]=!0;const u=ki(l),f=a.remotesInfo[l];Qr(e,{name:u.name,version:f.matchedVersion},r,!1,o,void 0)}}}const et=(e,t)=>document.querySelector(`${e}[${e==="link"?"href":"src"}="${t}"]`);function Fi(e,t,r,n,o){const s=[],i=[],a=[],c=new Set,l=new Set,{options:u}=e,{preloadConfig:f}=t,{depsRemote:d}=f;if(Qr(n,r,(m,p,E)=>{let g;if(E)g=f;else if(Array.isArray(d)){const I=d.find(F=>F.nameOrAlias===p.name||F.nameOrAlias===p.alias);if(!I)return;g=Bt.defaultPreloadArgs(I)}else if(d===!0)g=f;else return;const _=(0,Be.getResourceUrl)(m,Ne.getRemoteEntryInfoFromSnapshot(m).url);_&&a.push({name:p.name,moduleInfo:{name:p.name,entry:_,type:"remoteEntryType"in m?m.remoteEntryType:"global",entryGlobalName:"globalName"in m?m.globalName:p.name,shareScope:"",version:"version"in m?m.version:void 0},url:_});let M="modules"in m?m.modules:[];const $=Bt.normalizePreloadExposes(g.exposes);$.length&&"modules"in m&&(M=m?.modules?.reduce((I,F)=>($?.indexOf(F.moduleName)!==-1&&I.push(F),I),[]));function A(I){const F=I.map(W=>(0,Be.getResourceUrl)(m,W));return g.filter?F.filter(g.filter):F}if(M){const I=M.length;for(let F=0;F<I;F++){const W=M[F],Ke=`${p.name}/${W.moduleName}`;e.remoteHandler.hooks.lifecycle.handlePreloadModule.emit({id:W.moduleName==="."?p.name:Ke,name:p.name,remoteSnapshot:m,preloadConfig:g,remote:p,origin:e}),!St.getPreloaded(Ke)&&(g.resourceCategory==="all"?(s.push(...A(W.assets.css.async)),s.push(...A(W.assets.css.sync)),i.push(...A(W.assets.js.async)),i.push(...A(W.assets.js.sync))):g.resourceCategory==="sync"&&(s.push(...A(W.assets.css.sync)),i.push(...A(W.assets.js.sync))),St.setPreloaded(Ke))}}},!0,{},o),o.shared&&o.shared.length>0){const m=(p,E)=>{const{shared:g}=Oi.getRegisteredShare(e.shareScopeMap,E.sharedName,p,e.sharedHandler.hooks.lifecycle.resolveShare)||{};g&&typeof g.lib=="function"&&(E.assets.js.sync.forEach(_=>{c.add(_)}),E.assets.css.sync.forEach(_=>{l.add(_)}))};o.shared.forEach(p=>{const E=u.shared?.[p.sharedName];if(!E)return;const g=p.version?E.find(_=>_.version===p.version):E;g&&Ne.arrayOptions(g).forEach(_=>{m(_,p)})})}const h=i.filter(m=>!c.has(m)&&!et("script",m));return{cssAssets:s.filter(m=>!l.has(m)&&!et("link",m)),jsAssetsWithoutEntry:h,entryAssets:a.filter(m=>!et("script",m.url))}}const wi=function(){return{name:"generate-preload-assets-plugin",async generatePreloadAssets(e){const{origin:t,preloadOptions:r,remoteInfo:n,remote:o,globalSnapshot:s,remoteSnapshot:i}=e;return Be.isBrowserEnvValue?Ne.isRemoteInfoWithEntry(o)&&Ne.isPureRemoteEntry(o)?{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[{name:o.name,url:o.entry,moduleInfo:{name:n.name,entry:o.entry,type:n.type||"global",entryGlobalName:"",shareScope:""}}]}:($i.assignRemoteInfo(n,i),Fi(t,r,n,s,i)):{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[]}}}};Zr.generatePreloadAssetsPlugin=wi;var Xe={};const tt=T,Li=R,U=S,Vt=Pe,Di=ve,rt=Ae,Hi=Oe;let nt=L,Fe=K;function en(e,t){const r=U.getGlobalSnapshotInfoByModuleInfo({name:t.name,version:t.options.version}),n=r&&"remotesInfo"in r&&r.remotesInfo&&U.getInfoWithoutType(r.remotesInfo,e.name).value;return n&&n.matchedVersion?{hostGlobalSnapshot:r,globalSnapshot:U.getGlobalSnapshot(),remoteSnapshot:U.getGlobalSnapshotInfoByModuleInfo({name:e.name,version:n.matchedVersion})}:{hostGlobalSnapshot:void 0,globalSnapshot:U.getGlobalSnapshot(),remoteSnapshot:U.getGlobalSnapshotInfoByModuleInfo({name:e.name,version:"version"in e?e.version:void 0})}}var Ci=class{constructor(e){this.loadingHostSnapshot=null,this.manifestCache=new Map,this.hooks=new Hi.PluginSystem({beforeLoadRemoteSnapshot:new Di.AsyncHook("beforeLoadRemoteSnapshot"),loadSnapshot:new rt.AsyncWaterfallHook("loadGlobalSnapshot"),loadRemoteSnapshot:new rt.AsyncWaterfallHook("loadRemoteSnapshot"),afterLoadSnapshot:new rt.AsyncWaterfallHook("afterLoadSnapshot")}),this.manifestLoading=U.Global.__FEDERATION__.__MANIFEST_LOADING__,this.HostInstance=e,this.loaderHook=e.loaderHook}async loadRemoteSnapshotInfo({moduleInfo:e,id:t,expose:r}){const{options:n}=this.HostInstance;await this.hooks.lifecycle.beforeLoadRemoteSnapshot.emit({options:n,moduleInfo:e});let o=U.getGlobalSnapshotInfoByModuleInfo({name:this.HostInstance.options.name,version:this.HostInstance.options.version});o||(o={version:this.HostInstance.options.version||"",remoteEntry:"",remotesInfo:{}},U.addGlobalSnapshot({[this.HostInstance.options.name]:o})),o&&"remotesInfo"in o&&!U.getInfoWithoutType(o.remotesInfo,e.name).value&&("version"in e||"entry"in e)&&(o.remotesInfo={...o?.remotesInfo,[e.name]:{matchedVersion:"version"in e?e.version:e.entry}});const{hostGlobalSnapshot:s,remoteSnapshot:i,globalSnapshot:a}=this.getGlobalRemoteInfo(e),{remoteSnapshot:c,globalSnapshot:l}=await this.hooks.lifecycle.loadSnapshot.emit({options:n,moduleInfo:e,hostGlobalSnapshot:s,remoteSnapshot:i,globalSnapshot:a});let u,f;if(c)if((0,nt.isManifestProvider)(c)){const d=nt.isBrowserEnvValue?c.remoteEntry:c.ssrRemoteEntry||c.remoteEntry||"",h=await this.getManifestJson(d,e,{}),m=U.setGlobalSnapshotInfoByModuleInfo({...e,entry:d},h);u=h,f=m}else{const{remoteSnapshot:d}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:c,from:"global"});u=d,f=l}else if(Li.isRemoteInfoWithEntry(e)){const d=await this.getManifestJson(e.entry,e,{}),h=U.setGlobalSnapshotInfoByModuleInfo(e,d),{remoteSnapshot:m}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:d,from:"global"});u=m,f=h}else tt.error(Fe.RUNTIME_007,Fe.runtimeDescMap,{remoteName:e.name,remoteVersion:e.version,hostName:this.HostInstance.options.name,globalSnapshot:JSON.stringify(l)},void 0,Vt.optionsToMFContext(this.HostInstance.options));return await this.hooks.lifecycle.afterLoadSnapshot.emit({id:t,host:this.HostInstance,options:n,moduleInfo:e,remoteSnapshot:u}),{remoteSnapshot:u,globalSnapshot:f}}getGlobalRemoteInfo(e){return en(e,this.HostInstance)}async getManifestJson(e,t,r){const n=async()=>{let s=this.manifestCache.get(e);if(s)return s;try{let i=await this.loaderHook.lifecycle.fetch.emit(e,{});(!i||!(i instanceof Response))&&(i=await fetch(e,{})),s=await i.json()}catch(i){s=await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:i,from:"runtime",lifecycle:"afterResolve",origin:this.HostInstance}),s||(delete this.manifestLoading[e],tt.error(Fe.RUNTIME_003,Fe.runtimeDescMap,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name},`${i}`,Vt.optionsToMFContext(this.HostInstance.options)))}return tt.assert(s.metaData&&s.exposes&&s.shared,`"${e}" is not a valid federation manifest for remote "${t.name}". Missing required fields: ${[!s.metaData&&"metaData",!s.exposes&&"exposes",!s.shared&&"shared"].filter(Boolean).join(", ")}.`),this.manifestCache.set(e,s),s},o=async()=>{const s=await n(),i=(0,nt.generateSnapshotFromManifest)(s,{version:e}),{remoteSnapshot:a}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:t,manifestJson:s,remoteSnapshot:i,manifestUrl:e,from:"manifest"});return a};return this.manifestLoading[e]||(this.manifestLoading[e]=o().then(s=>s)),this.manifestLoading[e]}};Xe.SnapshotHandler=Ci;Xe.getGlobalRemoteInfo=en;var tn={};const ot=T,qi=ne,P=C,jt=Pe,Ui=ve,st=me,xt=Ae,Gi=Oe;let _e=K;var Wi=class{constructor(e){this.hooks=new Gi.PluginSystem({beforeRegisterShare:new st.SyncWaterfallHook("beforeRegisterShare"),afterResolve:new xt.AsyncWaterfallHook("afterResolve"),beforeLoadShare:new xt.AsyncWaterfallHook("beforeLoadShare"),loadShare:new Ui.AsyncHook,resolveShare:new st.SyncWaterfallHook("resolveShare"),initContainerShareScopeMap:new st.SyncWaterfallHook("initContainerShareScopeMap")}),this.host=e,this.shareScopeMap={},this.initTokens={},this._setGlobalShareScopeMap(e.options)}registerShared(e,t){const{newShareInfos:r,allShareInfos:n}=P.formatShareConfigs(e,t);return Object.keys(r).forEach(o=>{r[o].forEach(s=>{s.scope.forEach(i=>{this.hooks.lifecycle.beforeRegisterShare.emit({origin:this.host,pkgName:o,shared:s}),this.shareScopeMap[i]?.[o]||this.setShared({pkgName:o,lib:s.lib,get:s.get,loaded:s.loaded||!!s.lib,shared:s,from:t.name})})})}),{newShareInfos:r,allShareInfos:n}}async loadShare(e,t){const{host:r}=this,n=P.getTargetSharedOptions({pkgName:e,extraOptions:t,shareInfos:r.options.shared});n?.scope&&await Promise.all(n.scope.map(async a=>{await Promise.all(this.initializeSharing(a,{strategy:n.strategy}))}));const{shareInfo:o}=await this.hooks.lifecycle.beforeLoadShare.emit({pkgName:e,shareInfo:n,shared:r.options.shared,origin:r});ot.assert(o,`Cannot find shared "${e}" in host "${r.options.name}". Ensure the shared config for "${e}" is declared in the federation plugin options and the host has been initialized before loading shares.`);const{shared:s,useTreesShaking:i}=P.getRegisteredShare(this.shareScopeMap,e,o,this.hooks.lifecycle.resolveShare)||{};if(s){const a=P.directShare(s,i);if(a.lib)return P.addUseIn(a,r.options.name),a.lib;if(a.loading&&!a.loaded){const c=await a.loading;return a.loaded=!0,a.lib||(a.lib=c),P.addUseIn(a,r.options.name),c}else{const l=(async()=>{const u=await a.get();return P.addUseIn(a,r.options.name),a.loaded=!0,a.lib=u,u})();return this.setShared({pkgName:e,loaded:!1,shared:s,from:r.options.name,lib:null,loading:l,treeShaking:i?a:void 0}),l}}else{if(t?.customShareInfo)return!1;const a=P.shouldUseTreeShaking(o.treeShaking),c=P.directShare(o,a),u=(async()=>{const f=await c.get();c.lib=f,c.loaded=!0,P.addUseIn(c,r.options.name);const{shared:d,useTreesShaking:h}=P.getRegisteredShare(this.shareScopeMap,e,o,this.hooks.lifecycle.resolveShare)||{};if(d){const m=P.directShare(d,h);m.lib=f,m.loaded=!0,d.from=o.from}return f})();return this.setShared({pkgName:e,loaded:!1,shared:o,from:r.options.name,lib:null,loading:u,treeShaking:a?c:void 0}),u}}initializeSharing(e=qi.DEFAULT_SCOPE,t){const{host:r}=this,n=t?.from,o=t?.strategy;let s=t?.initScope;const i=[];if(n!=="build"){const{initTokens:d}=this;s||(s=[]);let h=d[e];if(h||(h=d[e]={from:this.host.name}),s.indexOf(h)>=0)return i;s.push(h)}const a=this.shareScopeMap,c=r.options.name;a[e]||(a[e]={});const l=a[e],u=(d,h)=>{const{version:m,eager:p}=h;l[d]=l[d]||{};const E=l[d],g=E[m]&&P.directShare(E[m]),_=!!(g&&("eager"in g&&g.eager||"shareConfig"in g&&g.shareConfig?.eager));(!g||g.strategy!=="loaded-first"&&!g.loaded&&(!p!=!_?p:c>E[m].from))&&(E[m]=h)},f=async d=>{const{module:h}=await r.remoteHandler.getRemoteModuleAndOptions({id:d});let m;try{m=await h.getEntry()}catch(p){if(m=await r.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:d,error:p,from:"runtime",lifecycle:"beforeLoadShare",origin:r}),!m)return}finally{m?.init&&!h.initing&&(h.remoteEntryExports=m,await h.init(void 0,void 0,s))}};return Object.keys(r.options.shared).forEach(d=>{r.options.shared[d].forEach(h=>{h.scope.includes(e)&&u(d,h)})}),(r.options.shareStrategy==="version-first"||o==="version-first")&&r.options.remotes.forEach(d=>{d.shareScope===e&&i.push(f(d.name))}),i}loadShareSync(e,t){const{host:r}=this,n=P.getTargetSharedOptions({pkgName:e,extraOptions:t,shareInfos:r.options.shared});n?.scope&&n.scope.forEach(i=>{this.initializeSharing(i,{strategy:n.strategy})});const{shared:o,useTreesShaking:s}=P.getRegisteredShare(this.shareScopeMap,e,n,this.hooks.lifecycle.resolveShare)||{};if(o){if(typeof o.lib=="function")return P.addUseIn(o,r.options.name),o.loaded||(o.loaded=!0,o.from===r.options.name&&(n.loaded=!0)),o.lib;if(typeof o.get=="function"){const i=o.get();if(!(i instanceof Promise))return P.addUseIn(o,r.options.name),this.setShared({pkgName:e,loaded:!0,from:r.options.name,lib:i,shared:o}),i}}if(n.lib)return n.loaded||(n.loaded=!0),n.lib;if(n.get){const i=n.get();return i instanceof Promise&&ot.error(t?.from==="build"?_e.RUNTIME_005:_e.RUNTIME_006,_e.runtimeDescMap,{hostName:r.options.name,sharedPkgName:e},void 0,jt.optionsToMFContext(r.options)),n.lib=i,this.setShared({pkgName:e,loaded:!0,from:r.options.name,lib:n.lib,shared:n}),n.lib}ot.error(_e.RUNTIME_006,_e.runtimeDescMap,{hostName:r.options.name,sharedPkgName:e},void 0,jt.optionsToMFContext(r.options))}initShareScopeMap(e,t,r={}){const{host:n}=this;this.shareScopeMap[e]=t,this.hooks.lifecycle.initContainerShareScopeMap.emit({shareScope:t,options:n.options,origin:n,scopeName:e,hostShareScopeMap:r.hostShareScopeMap})}setShared({pkgName:e,shared:t,from:r,lib:n,loading:o,loaded:s,get:i,treeShaking:a}){const{version:c,scope:l="default",...u}=t,f=Array.isArray(l)?l:[l],d=h=>{const m=(E,g,_)=>{_&&!E[g]&&(E[g]=_)},p=a?h.treeShaking:h;m(p,"loaded",s),m(p,"loading",o),m(p,"get",i)};f.forEach(h=>{this.shareScopeMap[h]||(this.shareScopeMap[h]={}),this.shareScopeMap[h][e]||(this.shareScopeMap[h][e]={}),this.shareScopeMap[h][e][c]||(this.shareScopeMap[h][e][c]={version:c,scope:[h],...u,lib:n});const m=this.shareScopeMap[h][e][c];d(m),r&&m.from!==r&&(m.from=r)})}_setGlobalShareScopeMap(e){const t=P.getGlobalShareScope(),r=e.id||e.name;r&&!t[r]&&(t[r]=this.shareScopeMap)}};tn.SharedHandler=Wi;var rn={};const we=T,q=S,Xt=ne,Bi=C,Vi=de,it=X,ji=Pe,Kt=J,xi=je,Xi=he,se=ve,Yt=me,Ki=Ae,Yi=Oe,zi=Xe;let at=L,zt=K;var Ji=class{constructor(e){this.hooks=new Yi.PluginSystem({beforeRegisterRemote:new Yt.SyncWaterfallHook("beforeRegisterRemote"),registerRemote:new Yt.SyncWaterfallHook("registerRemote"),beforeRequest:new Ki.AsyncWaterfallHook("beforeRequest"),onLoad:new se.AsyncHook("onLoad"),handlePreloadModule:new Xi.SyncHook("handlePreloadModule"),errorLoadRemote:new se.AsyncHook("errorLoadRemote"),beforePreloadRemote:new se.AsyncHook("beforePreloadRemote"),generatePreloadAssets:new se.AsyncHook("generatePreloadAssets"),afterPreloadRemote:new se.AsyncHook,loadEntry:new se.AsyncHook}),this.host=e,this.idToRemoteMap={}}formatAndRegisterRemote(e,t){return(t.remotes||[]).reduce((r,n)=>(this.registerRemote(n,r,{force:!1}),r),e.remotes)}setIdToRemoteMap(e,t){const{remote:r,expose:n}=t,{name:o,alias:s}=r;if(this.idToRemoteMap[e]={name:r.name,expose:n},s&&e.startsWith(o)){const i=e.replace(o,s);this.idToRemoteMap[i]={name:r.name,expose:n};return}if(s&&e.startsWith(s)){const i=e.replace(s,o);this.idToRemoteMap[i]={name:r.name,expose:n}}}async loadRemote(e,t){const{host:r}=this;try{const{loadFactory:n=!0}=t||{loadFactory:!0},{module:o,moduleOptions:s,remoteMatchInfo:i}=await this.getRemoteModuleAndOptions({id:e}),{pkgNameOrAlias:a,remote:c,expose:l,id:u,remoteSnapshot:f}=i,d=await o.get(u,l,t,f),h=await this.hooks.lifecycle.onLoad.emit({id:u,pkgNameOrAlias:a,expose:l,exposeModule:n?d:void 0,exposeModuleFactory:n?void 0:d,remote:c,options:s,moduleInstance:o,origin:r});return this.setIdToRemoteMap(e,i),typeof h=="function"?h:d}catch(n){const{from:o="runtime"}=t||{from:"runtime"},s=await this.hooks.lifecycle.errorLoadRemote.emit({id:e,error:n,from:o,lifecycle:"onLoad",origin:r});if(!s)throw n;return s}}async preloadRemote(e){const{host:t}=this;await this.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:e,options:t.options,origin:t});const r=Kt.formatPreloadArgs(t.options.remotes,e);await Promise.all(r.map(async n=>{const{remote:o}=n,s=it.getRemoteInfo(o),{globalSnapshot:i,remoteSnapshot:a}=await t.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:o}),c=await this.hooks.lifecycle.generatePreloadAssets.emit({origin:t,preloadOptions:n,remote:o,remoteInfo:s,globalSnapshot:i,remoteSnapshot:a});c&&Kt.preloadAssets(s,t,c)}))}registerRemotes(e,t){const{host:r}=this;e.forEach(n=>{this.registerRemote(n,r.options.remotes,{force:t?.force})})}async getRemoteModuleAndOptions(e){const{host:t}=this,{id:r}=e;let n;try{n=await this.hooks.lifecycle.beforeRequest.emit({id:r,options:t.options,origin:t})}catch(h){if(n=await this.hooks.lifecycle.errorLoadRemote.emit({id:r,options:t.options,origin:t,from:"runtime",error:h,lifecycle:"beforeRequest"}),!n)throw h}const{id:o}=n,s=Vi.matchRemoteWithNameAndExpose(t.options.remotes,o);s||we.error(zt.RUNTIME_004,zt.runtimeDescMap,{hostName:t.options.name,requestId:o},void 0,ji.optionsToMFContext(t.options));const{remote:i}=s,a=it.getRemoteInfo(i),c=await t.sharedHandler.hooks.lifecycle.afterResolve.emit({id:o,...s,options:t.options,origin:t,remoteInfo:a}),{remote:l,expose:u}=c;we.assert(l&&u,`The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ${o}.`);let f=t.moduleCache.get(l.name);const d={host:t,remoteInfo:a};return f||(f=new xi.Module(d),t.moduleCache.set(l.name,f)),{module:f,moduleOptions:d,remoteMatchInfo:c}}registerRemote(e,t,r){const{host:n}=this,o=()=>{if(e.alias){const i=t.find(a=>e.alias&&(a.name.startsWith(e.alias)||a.alias?.startsWith(e.alias)));we.assert(!i,`The alias ${e.alias} of remote ${e.name} is not allowed to be the prefix of ${i&&i.name} name or alias`)}"entry"in e&&at.isBrowserEnvValue&&typeof window<"u"&&!e.entry.startsWith("http")&&(e.entry=new URL(e.entry,window.location.origin).href),e.shareScope||(e.shareScope=Xt.DEFAULT_SCOPE),e.type||(e.type=Xt.DEFAULT_REMOTE_TYPE)};this.hooks.lifecycle.beforeRegisterRemote.emit({remote:e,origin:n});const s=t.find(i=>i.name===e.name);if(!s)o(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:n});else{const i=[`The remote "${e.name}" is already registered.`,"Please note that overriding it may cause unexpected errors."];r?.force&&(this.removeRemote(s),o(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:n}),(0,at.warn)(i.join(" ")))}}removeRemote(e){try{const{host:t}=this,{name:r}=e,n=t.options.remotes.findIndex(s=>s.name===r);n!==-1&&t.options.remotes.splice(n,1);const o=t.moduleCache.get(e.name);if(o){const s=o.remoteInfo,i=s.entryGlobalName;q.CurrentGlobal[i]&&(Object.getOwnPropertyDescriptor(q.CurrentGlobal,i)?.configurable?delete q.CurrentGlobal[i]:q.CurrentGlobal[i]=void 0);const a=it.getRemoteEntryUniqueKey(o.remoteInfo);q.globalLoading[a]&&delete q.globalLoading[a],t.snapshotHandler.manifestCache.delete(s.entry);let c=s.buildVersion?(0,at.composeKeyWithSeparator)(s.name,s.buildVersion):s.name;const l=q.CurrentGlobal.__FEDERATION__.__INSTANCES__.findIndex(f=>s.buildVersion?f.options.id===c:f.name===c);if(l!==-1){const f=q.CurrentGlobal.__FEDERATION__.__INSTANCES__[l];c=f.options.id||c;const d=Bi.getGlobalShareScope();let h=!0;const m=[];Object.keys(d).forEach(p=>{const E=d[p];E&&Object.keys(E).forEach(g=>{const _=E[g];_&&Object.keys(_).forEach(M=>{const $=_[M];$&&Object.keys($).forEach(A=>{const I=$[A];I&&typeof I=="object"&&I.from===s.name&&(I.loaded||I.loading?(I.useIn=I.useIn.filter(F=>F!==s.name),I.useIn.length?h=!1:m.push([p,g,M,A])):m.push([p,g,M,A]))})})})}),h&&(f.shareScopeMap={},delete d[c]),m.forEach(([p,E,g,_])=>{delete d[p]?.[E]?.[g]?.[_]}),q.CurrentGlobal.__FEDERATION__.__INSTANCES__.splice(l,1)}const{hostGlobalSnapshot:u}=zi.getGlobalRemoteInfo(e,t);if(u){const f=u&&"remotesInfo"in u&&u.remotesInfo&&q.getInfoWithoutType(u.remotesInfo,e.name).key;f&&(delete u.remotesInfo[f],q.Global.__FEDERATION__.__MANIFEST_LOADING__[f]&&delete q.Global.__FEDERATION__.__MANIFEST_LOADING__[f])}t.moduleCache.delete(e.name)}}catch(t){we.logger.error(`removeRemote failed: ${t instanceof Error?t.message:String(t)}`)}}};rn.RemoteHandler=Ji;const Zi=T,Qi=ne,ea=C,ta=Vr,ra=jr,na=X,oa=je,Y=he,lt=ve,sa=me,Jt=Ae,ct=Oe,ia=xe,aa=Zr,la=Xe,ca=tn,ua=rn;let fa=L,ut=K;const da=typeof FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN=="boolean"?!FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN:!0;var ha=class{constructor(e){this.hooks=new ct.PluginSystem({beforeInit:new sa.SyncWaterfallHook("beforeInit"),init:new Y.SyncHook,beforeInitContainer:new Jt.AsyncWaterfallHook("beforeInitContainer"),initContainer:new Jt.AsyncWaterfallHook("initContainer")}),this.version="2.2.3",this.moduleCache=new Map,this.loaderHook=new ct.PluginSystem({getModuleInfo:new Y.SyncHook,createScript:new Y.SyncHook,createLink:new Y.SyncHook,fetch:new lt.AsyncHook,loadEntryError:new lt.AsyncHook,getModuleFactory:new lt.AsyncHook}),this.bridgeHook=new ct.PluginSystem({beforeBridgeRender:new Y.SyncHook,afterBridgeRender:new Y.SyncHook,beforeBridgeDestroy:new Y.SyncHook,afterBridgeDestroy:new Y.SyncHook});const t=da?[ia.snapshotPlugin(),aa.generatePreloadAssetsPlugin()]:[],r={id:ta.getBuilderId(),name:e.name,plugins:t,remotes:[],shared:{},inBrowser:fa.isBrowserEnvValue};this.name=e.name,this.options=r,this.snapshotHandler=new la.SnapshotHandler(this),this.sharedHandler=new ca.SharedHandler(this),this.remoteHandler=new ua.RemoteHandler(this),this.shareScopeMap=this.sharedHandler.shareScopeMap,this.registerPlugins([...r.plugins,...e.plugins||[]]),this.options=this.formatOptions(r,e)}initOptions(e){e.name&&e.name!==this.options.name&&Zi.error((0,ut.getShortErrorMsg)(ut.RUNTIME_010,ut.runtimeDescMap)),this.registerPlugins(e.plugins);const t=this.formatOptions(this.options,e);return this.options=t,t}async loadShare(e,t){return this.sharedHandler.loadShare(e,t)}loadShareSync(e,t){return this.sharedHandler.loadShareSync(e,t)}initializeSharing(e=Qi.DEFAULT_SCOPE,t){return this.sharedHandler.initializeSharing(e,t)}initRawContainer(e,t,r){const n=na.getRemoteInfo({name:e,entry:t}),o=new oa.Module({host:this,remoteInfo:n});return o.remoteEntryExports=r,this.moduleCache.set(e,o),o}async loadRemote(e,t){return this.remoteHandler.loadRemote(e,t)}async preloadRemote(e){return this.remoteHandler.preloadRemote(e)}initShareScopeMap(e,t,r={}){this.sharedHandler.initShareScopeMap(e,t,r)}formatOptions(e,t){const{allShareInfos:r}=ea.formatShareConfigs(e,t),{userOptions:n,options:o}=this.hooks.lifecycle.beforeInit.emit({origin:this,userOptions:t,options:e,shareInfo:r}),s=this.remoteHandler.formatAndRegisterRemote(o,n),{allShareInfos:i}=this.sharedHandler.registerShared(o,n),a=[...o.plugins];n.plugins&&n.plugins.forEach(l=>{a.includes(l)||a.push(l)});const c={...e,...t,plugins:a,remotes:s,shared:i};return this.hooks.lifecycle.init.emit({origin:this,options:c}),c}registerPlugins(e){const t=ra.registerPlugins(e,this);this.options.plugins=this.options.plugins.reduce((r,n)=>(n&&r&&!r.find(o=>o.name===n.name)&&r.push(n),r),t||[])}registerRemotes(e,t){return this.remoteHandler.registerRemotes(e,t)}registerShared(e){this.sharedHandler.registerShared(this.options,{...this.options,shared:e})}};Kr.ModuleFederation=ha;var nn={},on={},Zt=Object.defineProperty,ma=(e,t)=>{let r={};for(var n in e)Zt(r,n,{get:e[n],enumerable:!0});return t||Zt(r,Symbol.toStringTag,{value:"Module"}),r};on.__exportAll=ma;(function(e){var r=on.__exportAll({});Object.defineProperty(e,"type_exports",{enumerable:!0,get:function(){return r}})})(nn);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=T,r=R,n=S,o=Pt,s=C,i=de,a=X,c=xr,l=je,u=Kr,f=nn;let d=L;const h=c.default;e.CurrentGlobal=n.CurrentGlobal,e.Global=n.Global,e.Module=l.Module,e.ModuleFederation=u.ModuleFederation,e.addGlobalSnapshot=n.addGlobalSnapshot,e.assert=t.assert,e.error=t.error,e.getGlobalFederationConstructor=n.getGlobalFederationConstructor,e.getGlobalSnapshot=n.getGlobalSnapshot,e.getInfoWithoutType=n.getInfoWithoutType,e.getRegisteredShare=s.getRegisteredShare,e.getRemoteEntry=a.getRemoteEntry,e.getRemoteInfo=a.getRemoteInfo,e.helpers=h,e.isStaticResourcesEqual=r.isStaticResourcesEqual,Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){return d.loadScript}}),Object.defineProperty(e,"loadScriptNode",{enumerable:!0,get:function(){return d.loadScriptNode}}),e.matchRemoteWithNameAndExpose=i.matchRemoteWithNameAndExpose,e.registerGlobalPlugins=n.registerGlobalPlugins,e.resetFederationGlobalInfo=n.resetFederationGlobalInfo,e.safeWrapper=r.safeWrapper,e.satisfy=o.satisfy,e.setGlobalFederationConstructor=n.setGlobalFederationConstructor,e.setGlobalFederationInstance=n.setGlobalFederationInstance,Object.defineProperty(e,"types",{enumerable:!0,get:function(){return f.type_exports}})})(Rt);let pa=Rt;function _a(){return typeof FEDERATION_BUILD_IDENTIFIER<"u"?FEDERATION_BUILD_IDENTIFIER:""}function ga(e,t){const r=_a();return pa.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(n=>!!(r&&n.options.id===r||n.options.name===e&&!n.options.version&&!t||n.options.name===e&&t&&n.options.version===t))}ir.getGlobalFederationInstance=ga;(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ir;let r=Rt,n=K;function o(p){const E=new((0,r.getGlobalFederationConstructor)()||r.ModuleFederation)(p);return(0,r.setGlobalFederationInstance)(E),E}let s=null;function i(p){const E=t.getGlobalFederationInstance(p.name,p.version);return E?(E.initOptions(p),s||(s=E),E):(s=o(p),s)}function a(...p){return(0,r.assert)(s,n.RUNTIME_009,n.runtimeDescMap),s.loadRemote.apply(s,p)}function c(...p){return(0,r.assert)(s,n.RUNTIME_009,n.runtimeDescMap),s.loadShare.apply(s,p)}function l(...p){return(0,r.assert)(s,n.RUNTIME_009,n.runtimeDescMap),s.loadShareSync.apply(s,p)}function u(...p){return(0,r.assert)(s,n.RUNTIME_009,n.runtimeDescMap),s.preloadRemote.apply(s,p)}function f(...p){return(0,r.assert)(s,n.RUNTIME_009,n.runtimeDescMap),s.registerRemotes.apply(s,p)}function d(...p){return(0,r.assert)(s,n.RUNTIME_009,n.runtimeDescMap),s.registerPlugins.apply(s,p)}function h(){return s}function m(...p){return(0,r.assert)(s,n.RUNTIME_009,n.runtimeDescMap),s.registerShared.apply(s,p)}(0,r.setGlobalFederationConstructor)(r.ModuleFederation),Object.defineProperty(e,"Module",{enumerable:!0,get:function(){return r.Module}}),e.ModuleFederation=r.ModuleFederation,e.createInstance=o,e.getInstance=h,Object.defineProperty(e,"getRemoteEntry",{enumerable:!0,get:function(){return r.getRemoteEntry}}),Object.defineProperty(e,"getRemoteInfo",{enumerable:!0,get:function(){return r.getRemoteInfo}}),e.init=i,e.loadRemote=a,Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){return r.loadScript}}),Object.defineProperty(e,"loadScriptNode",{enumerable:!0,get:function(){return r.loadScriptNode}}),e.loadShare=c,e.loadShareSync=l,e.preloadRemote=u,Object.defineProperty(e,"registerGlobalPlugins",{enumerable:!0,get:function(){return r.registerGlobalPlugins}}),e.registerPlugins=d,e.registerRemotes=f,e.registerShared=m})(sr);typeof __VUE_HMR_RUNTIME__>"u"&&(globalThis.__VUE_HMR_RUNTIME__={createRecord(){},rerender(){},reload(){}});const sn="__mf_init____mf__virtual/adminUI__mf_v__runtimeInit__mf_v__.js__";let bt=globalThis[sn];if(!bt){let e,t;const r=new Promise((n,o)=>{e=n,t=o});bt=globalThis[sn]={initPromise:r,initResolve:e,initReject:t},typeof window>"u"&&e({loadRemote:function(){return Promise.resolve(void 0)},loadShare:function(){return Promise.resolve(void 0)}})}const Ea=bt.initResolve,Qt={},er="default",tr="adminUI";let rr,nr;async function ya(){return rr??=import("./assets/localSharedImportMap-BXzukc9m.js"),rr}async function Sa(){return nr??=import("./assets/virtualExposes-FmFgRqLi.js").then(e=>e.default??e),nr}async function Ra(e={},t=[]){const{usedShared:r,usedRemotes:n}=await ya(),o=sr.init({name:tr,remotes:n,shared:r,plugins:[],shareStrategy:"version-first"});var s=Qt[er];if(s||(s=Qt[er]={from:tr}),!(t.indexOf(s)>=0)){t.push(s),o.initShareScopeMap("default",e),Ea(o);try{await Promise.all(await o.initializeSharing("default",{strategy:"version-first",from:"build",initScope:t}))}catch(i){console.error("[Module Federation]",i)}return o}}async function Ia(e){const t=await Sa();if(!(e in t))throw new Error(`[Module Federation] Module ${e} does not exist in container.`);return t[e]().then(r=>()=>r)}export{Ia as get,Ra as init};
|
|
8
|
-
//# sourceMappingURL=remoteEntry.js.map
|
|
1
|
+
import{n as e,t}from"./assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__adminUI__remoteEntry_js-DnpHXGIN.js";export{t as get,e as init};
|
package/vite.config.ts
ADDED
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
/// <reference types="vitest" />
|
|
2
|
+
import { defineConfig } from 'vite'
|
|
3
|
+
import react, { reactCompilerPreset } from '@vitejs/plugin-react'
|
|
4
|
+
import babel from '@rolldown/plugin-babel'
|
|
5
|
+
import { federation } from '@module-federation/vite'
|
|
6
|
+
|
|
7
|
+
import '@signalk/server-admin-ui-dependencies'
|
|
8
|
+
|
|
9
|
+
// %ADDONSCRIPTS% is replaced server-side at request time with actual addon script tags.
|
|
10
|
+
function replaceAddonScripts() {
|
|
11
|
+
return {
|
|
12
|
+
name: 'replace-addon-scripts',
|
|
13
|
+
transformIndexHtml: {
|
|
14
|
+
order: 'pre',
|
|
15
|
+
handler(html) {
|
|
16
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
17
|
+
return html.replace(
|
|
18
|
+
'%ADDONSCRIPTS%',
|
|
19
|
+
'<!-- addon scripts not available in dev mode -->'
|
|
20
|
+
)
|
|
21
|
+
}
|
|
22
|
+
return html
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// Strip obsolete SVG font references from @font-face declarations (~2.5MB savings)
|
|
29
|
+
function stripSvgFonts() {
|
|
30
|
+
return {
|
|
31
|
+
name: 'strip-svg-fonts',
|
|
32
|
+
enforce: 'post',
|
|
33
|
+
transform(code, id) {
|
|
34
|
+
if (!id.includes('.css') && !id.includes('.scss')) {
|
|
35
|
+
return null
|
|
36
|
+
}
|
|
37
|
+
const svgFontRegex =
|
|
38
|
+
/,?\s*url\(['"]?[^'"()]+\.svg[^'"()]*['"]?\)\s*format\(['"]svg['"]\)/gi
|
|
39
|
+
if (svgFontRegex.test(code)) {
|
|
40
|
+
return {
|
|
41
|
+
code: code.replace(svgFontRegex, ''),
|
|
42
|
+
map: null
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return null
|
|
46
|
+
},
|
|
47
|
+
generateBundle(options, bundle) {
|
|
48
|
+
for (const fileName of Object.keys(bundle)) {
|
|
49
|
+
const chunk = bundle[fileName]
|
|
50
|
+
if (chunk.type === 'asset' && fileName.endsWith('.css')) {
|
|
51
|
+
const svgFontRegex =
|
|
52
|
+
/,?\s*url\(['"]?[^'"()]+\.svg[^'"()]*['"]?\)\s*format\(['"]svg['"]\)/gi
|
|
53
|
+
if (
|
|
54
|
+
typeof chunk.source === 'string' &&
|
|
55
|
+
svgFontRegex.test(chunk.source)
|
|
56
|
+
) {
|
|
57
|
+
chunk.source = chunk.source.replace(svgFontRegex, '')
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
if (
|
|
61
|
+
chunk.type === 'asset' &&
|
|
62
|
+
fileName.endsWith('.svg') &&
|
|
63
|
+
(fileName.includes('fontawesome') ||
|
|
64
|
+
fileName.includes('fa-') ||
|
|
65
|
+
fileName.includes('Simple-Line-Icons'))
|
|
66
|
+
) {
|
|
67
|
+
delete bundle[fileName]
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
const isTest = process.env.VITEST === 'true'
|
|
75
|
+
|
|
76
|
+
export default defineConfig({
|
|
77
|
+
base: './',
|
|
78
|
+
publicDir: 'public_src',
|
|
79
|
+
plugins: [
|
|
80
|
+
replaceAddonScripts(),
|
|
81
|
+
stripSvgFonts(),
|
|
82
|
+
react(),
|
|
83
|
+
babel({
|
|
84
|
+
presets: [reactCompilerPreset()]
|
|
85
|
+
}),
|
|
86
|
+
// Module Federation runtime injects http: imports incompatible with
|
|
87
|
+
// Node.js ESM loader, so skip it during vitest runs.
|
|
88
|
+
...(!isTest
|
|
89
|
+
? [
|
|
90
|
+
federation({
|
|
91
|
+
name: 'adminUI',
|
|
92
|
+
filename: 'remoteEntry.js',
|
|
93
|
+
remotes: {},
|
|
94
|
+
dts: false,
|
|
95
|
+
shared: {
|
|
96
|
+
react: {
|
|
97
|
+
singleton: true,
|
|
98
|
+
requiredVersion: '^19.0.0'
|
|
99
|
+
},
|
|
100
|
+
'react-dom': {
|
|
101
|
+
singleton: true,
|
|
102
|
+
requiredVersion: '^19.0.0'
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
})
|
|
106
|
+
]
|
|
107
|
+
: [])
|
|
108
|
+
],
|
|
109
|
+
css: {
|
|
110
|
+
preprocessorOptions: {
|
|
111
|
+
scss: {
|
|
112
|
+
quietDeps: true,
|
|
113
|
+
// Bootstrap 5 still uses @import internally
|
|
114
|
+
silenceDeprecations: ['import']
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
server: {
|
|
119
|
+
port: 5173,
|
|
120
|
+
host: 'localhost',
|
|
121
|
+
proxy: {
|
|
122
|
+
'/signalk': {
|
|
123
|
+
target: 'http://localhost:3000',
|
|
124
|
+
changeOrigin: true,
|
|
125
|
+
ws: true
|
|
126
|
+
},
|
|
127
|
+
'/skServer': {
|
|
128
|
+
target: 'http://localhost:3000',
|
|
129
|
+
changeOrigin: true,
|
|
130
|
+
ws: true
|
|
131
|
+
},
|
|
132
|
+
'/plugins': {
|
|
133
|
+
target: 'http://localhost:3000',
|
|
134
|
+
changeOrigin: true
|
|
135
|
+
},
|
|
136
|
+
// Proxy scoped webapp packages (@signalk/*, etc.) but not Vite internals
|
|
137
|
+
'/@': {
|
|
138
|
+
target: 'http://localhost:3000',
|
|
139
|
+
changeOrigin: true,
|
|
140
|
+
bypass: (req) => {
|
|
141
|
+
if (
|
|
142
|
+
req.url.startsWith('/@vite') ||
|
|
143
|
+
req.url.startsWith('/@react-refresh') ||
|
|
144
|
+
req.url.startsWith('/@fs') ||
|
|
145
|
+
req.url.startsWith('/@id')
|
|
146
|
+
) {
|
|
147
|
+
return req.url
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
build: {
|
|
154
|
+
outDir: 'public',
|
|
155
|
+
sourcemap: true,
|
|
156
|
+
target: 'es2023',
|
|
157
|
+
assetsInlineLimit: 0, // Prevent inlining assets to allow server-side logo override
|
|
158
|
+
cssCodeSplit: false // Generate single CSS file to ensure it's always loaded
|
|
159
|
+
},
|
|
160
|
+
resolve: {
|
|
161
|
+
alias: {
|
|
162
|
+
path: false,
|
|
163
|
+
events: 'events',
|
|
164
|
+
buffer: 'buffer'
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
test: {
|
|
168
|
+
globals: true,
|
|
169
|
+
environment: 'jsdom',
|
|
170
|
+
setupFiles: ['./src/test/setup.ts'],
|
|
171
|
+
include: ['src/**/*.{test,spec}.{ts,tsx}'],
|
|
172
|
+
coverage: {
|
|
173
|
+
provider: 'v8',
|
|
174
|
+
reporter: ['text', 'json', 'html'],
|
|
175
|
+
include: ['src/**/*.{ts,tsx}'],
|
|
176
|
+
exclude: ['src/test/**', 'src/**/*.d.ts']
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
})
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
function i(e,n){for(var a=0;a<n.length;a++){const _=n[a];if(typeof _!="string"&&!Array.isArray(_)){for(const t in _)if(t!=="default"&&!(t in e)){const f=Object.getOwnPropertyDescriptor(_,t);f&&Object.defineProperty(e,t,f.get?f:{enumerable:!0,get:()=>_[t]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const o="__mf_init____mf__virtual/adminUI__mf_v__runtimeInit__mf_v__.js__";let r=globalThis[o];if(!r){let e,n;const a=new Promise((_,t)=>{e=_,n=t});r=globalThis[o]={initPromise:a,initResolve:e,initReject:n},typeof window>"u"&&e({loadRemote:function(){return Promise.resolve(void 0)},loadShare:function(){return Promise.resolve(void 0)}})}const m=r.initPromise,u=m.then(e=>e.loadShare("react",{customShareInfo:{shareConfig:{singleton:!0,strictVersion:!1,requiredVersion:"^19.0.0"}}})),s=await u.then(e=>typeof e=="function"?e():e),c=s,l=s.__esModule?s.default:s.default??s,{Activity:d,Children:E,Component:R,Fragment:S,Profiler:p,PureComponent:C,StrictMode:h,Suspense:g,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:P,__COMPILER_RUNTIME:T,cache:v,cacheSignal:y,cloneElement:I,createContext:N,createElement:O,createRef:b,forwardRef:A,isValidElement:M,lazy:x,memo:D,startTransition:U,unstable_useCacheRefresh:w,use:L,useActionState:V,useCallback:j,useContext:k,useDebugValue:z,useDeferredValue:H,useEffect:G,useEffectEvent:q,useId:F,useImperativeHandle:W,useInsertionEffect:Y,useLayoutEffect:K,useMemo:$,useOptimistic:B,useReducer:J,useRef:Q,useState:X,useSyncExternalStore:Z,useTransition:ee,version:_e}=s,te=i({__proto__:null,Activity:d,Children:E,Component:R,Fragment:S,Profiler:p,PureComponent:C,StrictMode:h,Suspense:g,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:P,__COMPILER_RUNTIME:T,cache:v,cacheSignal:y,cloneElement:I,createContext:N,createElement:O,createRef:b,default:l,forwardRef:A,isValidElement:M,lazy:x,memo:D,startTransition:U,unstable_useCacheRefresh:w,use:L,useActionState:V,useCallback:j,useContext:k,useDebugValue:z,useDeferredValue:H,useEffect:G,useEffectEvent:q,useId:F,useImperativeHandle:W,useInsertionEffect:Y,useLayoutEffect:K,useMemo:$,useOptimistic:B,useReducer:J,useRef:Q,useState:X,useSyncExternalStore:Z,useTransition:ee,version:_e},[c]);export{B as A,te as R,k as _,$ as a,O as b,E as c,M as d,S as e,G as f,N as g,Q as h,j as i,K as j,R as k,X as l,A as m,l as n,_e as o,I as p,J as q,W as r,F as s,V as t,g as u,Z as v,D as w,H as x,ee as y,b as z};
|
|
2
|
-
//# sourceMappingURL=adminUI__loadShare__react__loadShare__.js-D12K3nc7.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{R as u}from"./adminUI__loadShare__react__loadShare__.js-D12K3nc7.js";var s=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function f(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var o=e.default;if(typeof o=="function"){var t=function r(){return this instanceof r?Reflect.construct(o,arguments,this.constructor):o.apply(this,arguments)};t.prototype=o.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}),t}const c=f(u);export{l as a,s as c,f as g,c as r};
|
|
2
|
-
//# sourceMappingURL=adminUI__loadShare__react__loadShare__.js_commonjs-proxy-Ddgktan4.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
function f(e,r){for(var n=0;n<r.length;n++){const _=r[n];if(typeof _!="string"&&!Array.isArray(_)){for(const t in _)if(t!=="default"&&!(t in e)){const i=Object.getOwnPropertyDescriptor(_,t);i&&Object.defineProperty(e,t,i.get?i:{enumerable:!0,get:()=>_[t]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const a="__mf_init____mf__virtual/adminUI__mf_v__runtimeInit__mf_v__.js__";let s=globalThis[a];if(!s){let e,r;const n=new Promise((_,t)=>{e=_,r=t});s=globalThis[a]={initPromise:n,initResolve:e,initReject:r},typeof window>"u"&&e({loadRemote:function(){return Promise.resolve(void 0)},loadShare:function(){return Promise.resolve(void 0)}})}const l=s.initPromise,m=l.then(e=>e.loadShare("react-dom",{customShareInfo:{shareConfig:{singleton:!0,strictVersion:!1,requiredVersion:"^19.0.0"}}})),o=await m.then(e=>typeof e=="function"?e():e),u=o,c=o.__esModule?o.default:o.default??o,{__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:d,createPortal:p,flushSync:S,preconnect:R,prefetchDNS:O,preinit:h,preinitModule:N,preload:P,preloadModule:b,requestFormReset:g,unstable_batchedUpdates:D,useFormState:E,useFormStatus:M,version:T}=o,v=f({__proto__:null,__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:d,createPortal:p,default:c,flushSync:S,preconnect:R,prefetchDNS:O,preinit:h,preinitModule:N,preload:P,preloadModule:b,requestFormReset:g,unstable_batchedUpdates:D,useFormState:E,useFormStatus:M,version:T},[u]);export{v as R,p as _,c as a};
|
|
2
|
-
//# sourceMappingURL=adminUI__loadShare__react_mf_2_dom__loadShare__.js-BWXpsqcx.js.map
|
package/public/assets/adminUI__loadShare__react_mf_2_dom__loadShare__.js_commonjs-proxy-07sf8i5D.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{g as e}from"./adminUI__loadShare__react__loadShare__.js_commonjs-proxy-Ddgktan4.js";import{R as r}from"./adminUI__loadShare__react_mf_2_dom__loadShare__.js-BWXpsqcx.js";const m=e(r);export{m as r};
|
|
2
|
-
//# sourceMappingURL=adminUI__loadShare__react_mf_2_dom__loadShare__.js_commonjs-proxy-07sf8i5D.js.map
|