@rimori/playwright-testing 0.3.25 → 0.3.26-next.1
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/harness/__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare___mf_0_rimori_mf_1_react_mf_2_client__loadShare__.mjs.js +42 -42
- package/dist/harness/hostInit.js +1 -1
- package/dist/harness/index.html +1 -0
- package/dist/harness/index.js +1 -1
- package/dist/harness/localSharedImportMap.js +1 -1
- package/dist/harness/remoteEntry.js +7 -1
- package/package.json +3 -3
- package/dist/harness/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__rimori-scenario-host__remoteEntry-_hash_.js +0 -7
package/dist/harness/hostInit.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as c}from"./preload-helper.js";const r="__mf_module_cache__";globalThis[r]||={share:{},remote:{}};globalThis[r].share||={};globalThis[r].remote||={};const t=globalThis[r];let e;async function m(){return e||(e=(async()=>{const
|
|
1
|
+
import{_ as c}from"./preload-helper.js";const r="__mf_module_cache__";globalThis[r]||={share:{},remote:{}};globalThis[r].share||={};globalThis[r].remote||={};const t=globalThis[r];let e;async function m(){return e||(e=(async()=>{const i=await(await c(()=>import("./remoteEntry.js"),[])).init(),s={react:{shareConfig:{singleton:!0,requiredVersion:"^19.2.5"}},"react-dom":{shareConfig:{singleton:!0,requiredVersion:"^19.2.5"}},"react/jsx-dev-runtime":{shareConfig:{singleton:!0,requiredVersion:"^19.2.5"}},"react/jsx-runtime":{shareConfig:{singleton:!0,requiredVersion:"^19.2.5"}},"@rimori/client":{shareConfig:{singleton:!0,requiredVersion:"^2.5.36-next.0"}},"@rimori/react-client":{shareConfig:{singleton:!0,requiredVersion:"^0.4.22"}},"@tanstack/react-query":{shareConfig:{singleton:!0,requiredVersion:"^5.100.5"}},zod:{shareConfig:{singleton:!0,requiredVersion:"^3.25.76"}}};for(const[n,u]of Object.entries(s))t.share[n]===void 0&&await i.loadShare(n,{customShareInfo:{shareConfig:u.shareConfig}}).then(o=>{const l=typeof o=="function"?o():o;return Promise.resolve(l).then(h=>{t.share[n]=h})});const a=[];return await Promise.all(a),i})()),e}e=m();export{e as hostInitPromise,m as initHost};
|
package/dist/harness/index.html
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>Rimori Scenario Host</title>
|
|
7
7
|
<script type="module" crossorigin src="/__rimori_harness__/mf-entry-bootstrap-0.js"></script>
|
|
8
|
+
<link rel="modulepreload" crossorigin href="/__rimori_harness__/remoteEntry.js">
|
|
8
9
|
</head>
|
|
9
10
|
<body>
|
|
10
11
|
<div id="root"></div>
|
package/dist/harness/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./virtualExposes.js";import
|
|
1
|
+
import"./virtualExposes.js";import"./remoteEntry.js";import{c}from"./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.mjs.js";import{a as m}from"./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react_mf_2_dom_mf_1_client__loadShare__.mjs.js";import{a as d}from"./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare___mf_0_rimori_mf_1_react_mf_2_client__loadShare__.mjs.js";import"./preload-helper.js";import"./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react__loadShare__.mjs_commonjs-proxy.js";import"./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react__loadShare__.mjs.js";import"./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react_mf_2_dom__loadShare__.mjs_commonjs-proxy.js";import"./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react_mf_2_dom__loadShare__.mjs.js";import"./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare___mf_0_rimori_mf_1_client__loadShare__.mjs.js";(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))i(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const s of t.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function n(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function i(e){if(e.ep)return;e.ep=!0;const t=n(e);fetch(e.href,t)}})();const a="__mfe_internal__rimori-scenario-host";async function l(){const r=Date.now();for(;Date.now()-r<5e3;){const n=(globalThis.__FEDERATION__?.__INSTANCES__??[]).find(i=>i?.name===a);if(n)return n;await new Promise(i=>setTimeout(i,30))}throw new Error(`[rimori-harness] Module Federation host '${a}' did not initialize within 5s`)}async function f(){const r=window.__RIMORI_HARNESS__;if(!r)throw new Error("[rimori-harness] Missing window.__RIMORI_HARNESS__ config.");const{pluginId:o,remoteUrl:n}=r,i=await l();i.registerRemotes([{name:o,entry:n,type:"module"}],{force:!0});const e=await i.loadRemote(`${o}/MainPanel`),t=e.default??e;m(document.getElementById("root")).render(c(d,{pluginId:o,children:c(t,{})}))}f().catch(r=>{console.error("[rimori-harness] fatal:",r);const o=document.getElementById("root");o&&(o.innerHTML=`<pre style="color:red;padding:1rem">${String(r?.message??r)}</pre>`)});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as n}from"./preload-helper.js";import"./
|
|
1
|
+
import{_ as n}from"./preload-helper.js";import"./remoteEntry.js";const o={"@rimori/client":async()=>await n(()=>import("./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare___mf_0_rimori_mf_1_client__loadShare__.mjs.js").then(r=>r.g),[]),"@rimori/react-client":async()=>await n(()=>import("./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare___mf_0_rimori_mf_1_react_mf_2_client__loadShare__.mjs.js").then(r=>r.b),[]),"@tanstack/react-query":async()=>await n(()=>import("./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.mjs.js").then(r=>r.a),[]),react:async()=>await n(()=>import("./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react__loadShare__.mjs.js").then(r=>r._),[]),"react-dom":async()=>await n(()=>import("./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react_mf_2_dom__loadShare__.mjs.js").then(r=>r._),[]),"react-dom/client":async()=>await n(()=>import("./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react_mf_2_dom_mf_1_client__loadShare__.mjs.js").then(r=>r._),[]),"react/jsx-dev-runtime":async()=>await n(()=>import("./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react_mf_1_jsx_mf_2_dev_mf_2_runtime__loadShare__.mjs.js").then(r=>r._),[]),"react/jsx-runtime":async()=>await n(()=>import("./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.mjs.js").then(r=>r._),[]),zod:async()=>await n(()=>import("./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__zod__loadShare__.mjs.js").then(r=>r.a),[])},a={"@rimori/client":{name:"@rimori/client",version:"2.5.36-next.0",scope:["default"],loaded:!1,from:"__mfe_internal__rimori-scenario-host",async get(){a["@rimori/client"].loaded=!0;const{"@rimori/client":e}=o,t={...await e()};return Object.defineProperty(t,"__esModule",{value:!0,enumerable:!1}),function(){return t}},shareConfig:{singleton:!0,requiredVersion:"^2.5.36-next.0"}},"@rimori/react-client":{name:"@rimori/react-client",version:"0.4.22",scope:["default"],loaded:!1,from:"__mfe_internal__rimori-scenario-host",async get(){a["@rimori/react-client"].loaded=!0;const{"@rimori/react-client":e}=o,t={...await e()};return Object.defineProperty(t,"__esModule",{value:!0,enumerable:!1}),function(){return t}},shareConfig:{singleton:!0,requiredVersion:"^0.4.22"}},"@tanstack/react-query":{name:"@tanstack/react-query",version:"5.100.5",scope:["default"],loaded:!1,from:"__mfe_internal__rimori-scenario-host",async get(){a["@tanstack/react-query"].loaded=!0;const{"@tanstack/react-query":e}=o,t={...await e()};return Object.defineProperty(t,"__esModule",{value:!0,enumerable:!1}),function(){return t}},shareConfig:{singleton:!0,requiredVersion:"^5.100.5"}},react:{name:"react",version:"19.2.5",scope:["default"],loaded:!1,from:"__mfe_internal__rimori-scenario-host",async get(){a.react.loaded=!0;const{react:e}=o,t={...await e()};return Object.defineProperty(t,"__esModule",{value:!0,enumerable:!1}),function(){return t}},shareConfig:{singleton:!0,requiredVersion:"^19.2.5"}},"react-dom":{name:"react-dom",version:"19.2.5",scope:["default"],loaded:!1,from:"__mfe_internal__rimori-scenario-host",async get(){a["react-dom"].loaded=!0;const{"react-dom":e}=o,t={...await e()};return Object.defineProperty(t,"__esModule",{value:!0,enumerable:!1}),function(){return t}},shareConfig:{singleton:!0,requiredVersion:"^19.2.5"}},"react-dom/client":{name:"react-dom/client",version:"19.2.5",scope:["default"],loaded:!1,from:"__mfe_internal__rimori-scenario-host",async get(){a["react-dom/client"].loaded=!0;const{"react-dom/client":e}=o,t={...await e()};return Object.defineProperty(t,"__esModule",{value:!0,enumerable:!1}),function(){return t}},shareConfig:{singleton:!0,requiredVersion:"^19.2.5"}},"react/jsx-dev-runtime":{name:"react/jsx-dev-runtime",version:"19.2.5",scope:["default"],loaded:!1,from:"__mfe_internal__rimori-scenario-host",async get(){a["react/jsx-dev-runtime"].loaded=!0;const{"react/jsx-dev-runtime":e}=o,t={...await e()};return Object.defineProperty(t,"__esModule",{value:!0,enumerable:!1}),function(){return t}},shareConfig:{singleton:!0,requiredVersion:"^19.2.5"}},"react/jsx-runtime":{name:"react/jsx-runtime",version:"19.2.5",scope:["default"],loaded:!1,from:"__mfe_internal__rimori-scenario-host",async get(){a["react/jsx-runtime"].loaded=!0;const{"react/jsx-runtime":e}=o,t={...await e()};return Object.defineProperty(t,"__esModule",{value:!0,enumerable:!1}),function(){return t}},shareConfig:{singleton:!0,requiredVersion:"^19.2.5"}},zod:{name:"zod",version:"3.25.76",scope:["default"],loaded:!1,from:"__mfe_internal__rimori-scenario-host",async get(){a.zod.loaded=!0;const{zod:e}=o,t={...await e()};return Object.defineProperty(t,"__esModule",{value:!0,enumerable:!1}),function(){return t}},shareConfig:{singleton:!0,requiredVersion:"^3.25.76"}}},c=[];export{c as usedRemotes,a as usedShared};
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
import"./preload-helper.js";
|
|
1
|
+
import{_ as B}from"./preload-helper.js";var lr={},cr={},Nt={},I={},D={},M={};const un="federation-manifest.json",fn=".json",dn="FEDERATION_DEBUG",V={AT:"@",HYPHEN:"-",SLASH:"/"},Ce={[V.AT]:"scope_",[V.HYPHEN]:"_",[V.SLASH]:"__"},hn={[Ce[V.AT]]:V.AT,[Ce[V.HYPHEN]]:V.HYPHEN,[Ce[V.SLASH]]:V.SLASH},mn=":",_n="mf-manifest.json",pn="mf-stats.json",gn={NPM:"npm",APP:"app"},En="__MF_DEVTOOLS_MODULE_INFO__",yn="ENCODE_NAME_PREFIX",Sn=".federation",bn={identifier:"MFDataPrefetch",globalKey:"__PREFETCH__",library:"mf-data-prefetch",exportsKey:"__PREFETCH_EXPORTS__",fileName:"bootstrap.js"};let Rn=function(e){return e[e.UNKNOWN=1]="UNKNOWN",e[e.CALCULATED=2]="CALCULATED",e[e.NO_USE=0]="NO_USE",e}({});M.BROWSER_LOG_KEY=dn;M.ENCODE_NAME_PREFIX=yn;M.EncodedNameTransformMap=hn;M.FederationModuleManifest=un;M.MANIFEST_EXT=fn;M.MFModuleType=gn;M.MFPrefetchCommon=bn;M.MODULE_DEVTOOL_IDENTIFIER=En;M.ManifestFileName=_n;M.NameTransformMap=Ce;M.NameTransformSymbol=V;M.SEPARATOR=mn;M.StatsFileName=pn;M.TEMP_DIR=Sn;M.TreeShakingStatus=Rn;var ur={},ne={},Ft=Object.defineProperty,Tn=(e,t)=>{let r={};for(var n in e)Ft(r,n,{get:e[n],enumerable:!0});return t||Ft(r,Symbol.toStringTag,{value:"Module"}),r};ne.__exportAll=Tn;(function(e){var r=ne.__exportAll({});Object.defineProperty(e,"ContainerPlugin_exports",{enumerable:!0,get:function(){return r}})})(ur);var fr={};(function(e){var r=ne.__exportAll({});Object.defineProperty(e,"ContainerReferencePlugin_exports",{enumerable:!0,get:function(){return r}})})(fr);var dr={};(function(e){var r=ne.__exportAll({});Object.defineProperty(e,"ModuleFederationPlugin_exports",{enumerable:!0,get:function(){return r}})})(dr);var hr={};(function(e){var r=ne.__exportAll({});Object.defineProperty(e,"SharePlugin_exports",{enumerable:!0,get:function(){return r}})})(hr);var mr={};(function(e){var r=ne.__exportAll({});Object.defineProperty(e,"ConsumeSharedPlugin_exports",{enumerable:!0,get:function(){return r}})})(mr);var _r={};(function(e){var r=ne.__exportAll({});Object.defineProperty(e,"ProvideSharedPlugin_exports",{enumerable:!0,get:function(){return r}})})(_r);var Z={},Re={};const In=M,pr=!0;function gr(){return pr}function Mn(){return typeof navigator<"u"&&navigator?.product==="ReactNative"}function Nn(){try{if(gr()&&window.localStorage)return!!localStorage.getItem(In.BROWSER_LOG_KEY)}catch{return!1}return!1}function Pn(){return typeof process<"u"&&Re&&Re.FEDERATION_DEBUG?!!Re.FEDERATION_DEBUG:typeof FEDERATION_DEBUG<"u"&&FEDERATION_DEBUG?!0:Nn()}const vn=function(){return typeof process<"u"&&Re?Re:{}};Z.getProcessEnv=vn;Z.isBrowserEnv=gr;Z.isBrowserEnvValue=pr;Z.isDebugMode=Pn;Z.isReactNativeEnv=Mn;var H={};const y=M,_t=Z,Er="[ Federation Runtime ]",On=(e,t,r=y.SEPARATOR)=>{const n=e.split(r),o=_t.getProcessEnv().NODE_ENV==="development"&&t,s="*",i=a=>a.startsWith("http")||a.includes(y.MANIFEST_EXT);if(n.length>=2){let[a,...l]=n;e.startsWith(r)&&(a=n.slice(0,2).join(r),l=[o||n.slice(2).join(r)]);let c=o||l.join(r);return i(c)?{name:a,entry:c}:{name:a,version:c||s}}else if(n.length===1){const[a]=n;return o&&i(o)?{name:a,entry:o}:{name:a,version:o||s}}else throw`Invalid entry value: ${e}`},An=function(...e){return e.length?e.reduce((t,r)=>r?t?`${t}${y.SEPARATOR}${r}`:r:t,""):""},Pt=function(e,t="",r=!1){try{const n=r?".js":"";return`${t}${e.replace(new RegExp(`${y.NameTransformSymbol.AT}`,"g"),y.NameTransformMap[y.NameTransformSymbol.AT]).replace(new RegExp(`${y.NameTransformSymbol.HYPHEN}`,"g"),y.NameTransformMap[y.NameTransformSymbol.HYPHEN]).replace(new RegExp(`${y.NameTransformSymbol.SLASH}`,"g"),y.NameTransformMap[y.NameTransformSymbol.SLASH])}${n}`}catch(n){throw n}},$n=function(e,t,r){try{let n=e;if(t){if(!n.startsWith(t))return n;n=n.replace(new RegExp(t,"g"),"")}return n=n.replace(new RegExp(`${y.NameTransformMap[y.NameTransformSymbol.AT]}`,"g"),y.EncodedNameTransformMap[y.NameTransformMap[y.NameTransformSymbol.AT]]).replace(new RegExp(`${y.NameTransformMap[y.NameTransformSymbol.SLASH]}`,"g"),y.EncodedNameTransformMap[y.NameTransformMap[y.NameTransformSymbol.SLASH]]).replace(new RegExp(`${y.NameTransformMap[y.NameTransformSymbol.HYPHEN]}`,"g"),y.EncodedNameTransformMap[y.NameTransformMap[y.NameTransformSymbol.HYPHEN]]),r&&(n=n.replace(".js","")),n}catch(n){throw n}},kn=(e,t)=>{if(!e)return"";let r=e;return r==="."&&(r="default_export"),r.startsWith("./")&&(r=r.replace("./","")),Pt(r,"__federation_expose_",t)},wn=(e,t)=>e?Pt(e,"__federation_shared_",t):"",Fn=(e,t)=>{if("getPublicPath"in e){let r;return e.getPublicPath.startsWith("function")?r=new Function("return "+e.getPublicPath)()():r=new Function(e.getPublicPath)(),`${r}${t}`}else return"publicPath"in e?!_t.isBrowserEnv()&&!_t.isReactNativeEnv()&&"ssrPublicPath"in e&&typeof e.ssrPublicPath=="string"?`${e.ssrPublicPath}${t}`:`${e.publicPath}${t}`:(console.warn("Cannot get resource URL. If in debug mode, please ignore.",e,t),"")},Ln=(e,t)=>{e||yr(t)},yr=e=>{throw new Error(`${Er}: ${e}`)},Dn=e=>{console.warn(`${Er}: ${e}`)};function Hn(e){try{return JSON.stringify(e,null,2)}catch{return""}}const Cn=/^([\d^=v<>~]|[*xX]$)/;function qn(e){return Cn.test(e)}H.assert=Ln;H.composeKeyWithSeparator=An;H.decodeName=$n;H.encodeName=Pt;H.error=yr;H.generateExposeFilename=kn;H.generateShareFilename=wn;H.getResourceUrl=Fn;H.isRequiredVersion=qn;H.parseEntry=On;H.safeToString=Hn;H.warn=Dn;var fe={};const ye=M,ee=(e,t)=>{if(!e)return t;const n=(o=>{if(o===".")return"";if(o.startsWith("./"))return o.replace("./","");if(o.startsWith("/")){const s=o.slice(1);return s.endsWith("/")?s.slice(0,-1):s}return o})(e);return n?n.endsWith("/")?`${n}${t}`:`${n}/${t}`:t};function Sr(e){return e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")}function Un(e,t={}){const{remotes:r={},overrides:n={},version:o}=t;let s;const i=()=>"publicPath"in e.metaData?(e.metaData.publicPath==="auto"||e.metaData.publicPath==="")&&o?Sr(o):e.metaData.publicPath:e.metaData.getPublicPath,a=Object.keys(n);let l={};Object.keys(r).length||(l=e.remotes?.reduce((p,N)=>{let k;const O=N.federationContainerName;return a.includes(O)?k=n[O]:"version"in N?k=N.version:k=N.entry,p[O]={matchedVersion:k},p},{})||{}),Object.keys(r).forEach(p=>l[p]={matchedVersion:a.includes(p)?n[p]:r[p]});const{remoteEntry:{path:c,name:u,type:f},types:d={path:"",name:"",zip:"",api:""},buildInfo:{buildVersion:h},globalName:m,ssrRemoteEntry:_}=e.metaData,{exposes:E}=e;let g={version:o||"",buildVersion:h,globalName:m,remoteEntry:ee(c,u),remoteEntryType:f,remoteTypes:ee(d.path,d.name),remoteTypesZip:d.zip||"",remoteTypesAPI:d.api||"",remotesInfo:l,shared:e?.shared.map(p=>({assets:p.assets,sharedName:p.name,version:p.version,usedExports:p.referenceExports||[]})),modules:E?.map(p=>({moduleName:p.name,modulePath:p.path,assets:p.assets}))};if(e.metaData?.prefetchInterface){const p=e.metaData.prefetchInterface;g={...g,prefetchInterface:p}}if(e.metaData?.prefetchEntry){const{path:p,name:N,type:k}=e.metaData.prefetchEntry;g={...g,prefetchEntry:ee(p,N),prefetchEntryType:k}}if("publicPath"in e.metaData?(s={...g,publicPath:i()},typeof e.metaData.ssrPublicPath=="string"&&(s.ssrPublicPath=e.metaData.ssrPublicPath)):s={...g,getPublicPath:i()},_){const p=ee(_.path,_.name);s.ssrRemoteEntry=p,s.ssrRemoteEntryType=_.type||"commonjs-module"}return s}function Gn(e){return!!("remoteEntry"in e&&e.remoteEntry.includes(ye.MANIFEST_EXT))}function Wn(e){if(!e)return{statsFileName:ye.StatsFileName,manifestFileName:ye.ManifestFileName};let t=typeof e=="boolean"?"":e.filePath||"",r=typeof e=="boolean"?"":e.fileName||"";const n=".json",o=a=>a.endsWith(n)?a:`${a}${n}`,s=(a,l)=>a.replace(n,`${l}${n}`),i=r?o(r):ye.ManifestFileName;return{statsFileName:ee(t,r?s(i,"-stats"):ye.StatsFileName),manifestFileName:ee(t,i)}}fe.generateSnapshotFromManifest=Un;fe.getManifestFileName=Wn;fe.inferAutoPublicPath=Sr;fe.isManifestProvider=Gn;fe.simpleJoinRemoteEntry=ee;var de={};const Lt=Z,br="[ Module Federation ]",ge=console,jn=["logger.ts","logger.js","captureStackTrace","Logger.emit","Logger.log","Logger.info","Logger.warn","Logger.error","Logger.debug"];function Bn(){try{const e=new Error().stack;if(!e)return;const[,...t]=e.split(`
|
|
2
|
+
`),r=t.filter(n=>!jn.some(o=>n.includes(o)));return r.length?`Stack trace:
|
|
3
|
+
${r.slice(0,5).join(`
|
|
4
|
+
`)}`:void 0}catch{return}}var Rr=class{constructor(e,t=ge){this.prefix=e,this.delegate=t??ge}setPrefix(e){this.prefix=e}setDelegate(e){this.delegate=e??ge}emit(e,t){const r=this.delegate,n=Lt.isDebugMode()?Bn():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=ge[i];if(typeof a=="function"){a.call(ge,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){Lt.isDebugMode()&&this.emit("debug",e)}};function Tr(e){return new Rr(e)}function Ir(e){const t=new Rr(e);return Object.defineProperty(t,"__mf_infrastructure_logger__",{value:!0,enumerable:!1,configurable:!1}),t}function Vn(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 xn=Tr(br),Xn=Ir(br);de.bindLoggerToCompiler=Vn;de.createInfrastructureLogger=Ir;de.createLogger=Tr;de.infrastructureLogger=Xn;de.logger=xn;var he={};const Kn=H;async function vt(e,t){try{return await e()}catch(r){!t&&Kn.warn(r);return}}function je(e,t){const r=/^(https?:)?\/\//i;return e.replace(r,"").replace(/\/$/,"")===t.replace(r,"").replace(/\/$/,"")}function Mr(e){let t=null,r=!0,n=2e4,o;const s=document.getElementsByTagName("script");for(let c=0;c<s.length;c++){const u=s[c],f=u.getAttribute("src");if(f&&je(f,e.url)){t=u,r=!1;break}}if(!t){const c=e.attrs;t=document.createElement("script"),t.type=c?.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),c&&!u&&Object.keys(c).forEach(f=>{t&&(f==="async"||f==="defer"?t[f]=c[f]:t.getAttribute(f)||t.setAttribute(f,c[f]))})}let i=null;const a=typeof window<"u"?c=>{if(c.filename&&je(c.filename,e.url)){const u=new Error(`ScriptExecutionError: Script "${e.url}" loaded but threw a runtime error during execution: ${c.message} (${c.filename}:${c.lineno}:${c.colno})`);u.name="ScriptExecutionError",i=u}}:null;a&&window.addEventListener("error",a);const l=async(c,u)=>{clearTimeout(o),a&&window.removeEventListener("error",a);const f=()=>{if(u?.type==="error"){const d=new Error(u?.isTimeout?`ScriptNetworkError: Script "${e.url}" timed out.`:`ScriptNetworkError: Failed to load script "${e.url}" - the script URL is unreachable or the server returned an error (network failure, 404, CORS, etc.)`);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,vt(()=>{const{needDeleteScript:d=!0}=e;d&&t?.parentNode&&t.parentNode.removeChild(t)}),c&&typeof c=="function")){const d=c(u);if(d instanceof Promise){const h=await d;return f(),h}return f(),d}f()};return t.onerror=l.bind(null,t.onerror),t.onload=l.bind(null,t.onload),o=setTimeout(()=>{l(null,{type:"error",isTimeout:!0})},n),{script:t,needAttach:r}}function Yn(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"),l=i.getAttribute("rel");if(a&&je(a,e.url)&&l===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,vt(()=>{const{needDeleteLink:l=!0}=e;l&&t?.parentNode&&t.parentNode.removeChild(t)}),s)){const l=s(i);return a(),l}a()};return t.onerror=o.bind(null,t.onerror),t.onload=o.bind(null,t.onload),{link:t,needAttach:r}}function zn(e,t){const{attrs:r={},createScriptHook:n}=t;return new Promise((o,s)=>{const{script:i,needAttach:a}=Mr({url:e,cb:o,onErrorCallback:s,attrs:{fetchpriority:"high",...r},createScriptHook:n,needDeleteScript:!0});a&&document.head.appendChild(i)})}he.createLink=Yn;he.createScript=Mr;he.isStaticResourcesEqual=je;he.loadScript=zn;he.safeWrapper=vt;var Ot={};const Jn=(e,t,r,n)=>{t(new Error("createScriptNode is disabled in non-Node.js environment"))},Zn=(e,t)=>{throw new Error("loadScriptNode is disabled in non-Node.js environment")};Ot.createScriptNode=Jn;Ot.loadScriptNode=Zn;var Nr={};function Qn(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}`)}}Nr.normalizeOptions=Qn;var Pr={};const eo=e=>e;Pr.createModuleFederationConfig=eo;(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=M,r=ur,n=fr,o=dr,s=hr,i=mr,a=_r,l=Z,c=H,u=fe,f=de,d=he,h=Ot,m=Nr,_=Pr;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=c.assert,e.bindLoggerToCompiler=f.bindLoggerToCompiler,e.composeKeyWithSeparator=c.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=_.createModuleFederationConfig,e.createScript=d.createScript,e.createScriptNode=h.createScriptNode,e.decodeName=c.decodeName,e.encodeName=c.encodeName,e.error=c.error,e.generateExposeFilename=c.generateExposeFilename,e.generateShareFilename=c.generateShareFilename,e.generateSnapshotFromManifest=u.generateSnapshotFromManifest,e.getManifestFileName=u.getManifestFileName,e.getProcessEnv=l.getProcessEnv,e.getResourceUrl=c.getResourceUrl,e.inferAutoPublicPath=u.inferAutoPublicPath,e.infrastructureLogger=f.infrastructureLogger,e.isBrowserEnv=l.isBrowserEnv,e.isBrowserEnvValue=l.isBrowserEnvValue,e.isDebugMode=l.isDebugMode,e.isManifestProvider=u.isManifestProvider,e.isReactNativeEnv=l.isReactNativeEnv,e.isRequiredVersion=c.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=c.parseEntry,Object.defineProperty(e,"provideSharedPlugin",{enumerable:!0,get:function(){return a.ProvideSharedPlugin_exports}}),e.safeToString=c.safeToString,e.safeWrapper=d.safeWrapper,Object.defineProperty(e,"sharePlugin",{enumerable:!0,get:function(){return s.SharePlugin_exports}}),e.simpleJoinRemoteEntry=u.simpleJoinRemoteEntry,e.warn=c.warn})(D);var vr={},At={};const to=e=>`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`,ro=(e,t,r,n)=>{const o=[`${[t[e]]} #${e}`];return r&&o.push(`args: ${JSON.stringify(r)}`),o.push(to(e)),n&&o.push(`Original Error Message:
|
|
5
|
+
${n}`),o.join(`
|
|
6
|
+
`)};At.getShortErrorMsg=ro;(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=At;function r(n,o,s,i,a,l){return i(t.getShortErrorMsg(n,o,s,a))}e.logAndReport=r})(vr);let no=D,oo=vr;const te="[ Federation Runtime ]",pt=(0,no.createLogger)(te);function so(e,t,r,n,o){e||(r!==void 0?gt(t,r,n,void 0,o):gt(t))}function gt(e,t,r,n,o){if(t!==void 0)return(0,oo.logAndReport)(e,t,r??{},i=>{throw new Error(`${te}: ${i}`)},n,o);const s=e;throw s instanceof Error?(s.message.startsWith(te)||(s.message=`${te}: ${s.message}`),s):new Error(`${te}: ${s}`)}function io(e){e instanceof Error&&(e.message.startsWith(te)||(e.message=`${te}: ${e.message}`)),pt.warn(e)}I.assert=so;I.error=gt;I.logger=pt;I.warn=io;var R={};const ao=I;let Dt=D;function lo(e,t){return e.findIndex(r=>r===t)===-1&&e.push(t),e}function co(e){return"version"in e&&e.version?`${e.name}:${e.version}`:"entry"in e&&e.entry?`${e.name}:${e.entry}`:`${e.name}`}function uo(e){return typeof e.entry<"u"}function fo(e){return!e.entry.includes(".json")}async function ho(e,t){try{return await e()}catch(r){!t&&ao.warn(r);return}}function mo(e){return e&&typeof e=="object"}const Or=Object.prototype.toString;function _o(e){return Or.call(e)==="[object Object]"}function po(e,t){const r=/^(https?:)?\/\//i;return e.replace(r,"").replace(/\/$/,"")===t.replace(r,"").replace(/\/$/,"")}function go(e){return Array.isArray(e)?e:[e]}function Eo(e){const t={url:"",type:"global",globalName:""};return Dt.isBrowserEnvValue||(0,Dt.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 yo=(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=lo;R.arrayOptions=go;R.getFMId=co;R.getRemoteEntryInfoFromSnapshot=Eo;R.isObject=mo;R.isPlainObject=_o;R.isPureRemoteEntry=fo;R.isRemoteInfoWithEntry=uo;R.isStaticResourcesEqual=po;R.objectToString=Or;R.processModuleAlias=yo;R.safeWrapper=ho;var S={};const Ar=I,Et=R;let So=D;const v=typeof globalThis=="object"?globalThis:window,C=(()=>{try{return document.defaultView}catch{return v}})(),bo=C;function qe(e,t,r){Object.defineProperty(e,t,{value:r,configurable:!1,writable:!0})}function Ue(e,t){return Object.hasOwnProperty.call(e,t)}Ue(v,"__GLOBAL_LOADING_REMOTE_ENTRY__")||qe(v,"__GLOBAL_LOADING_REMOTE_ENTRY__",{});const yt=v.__GLOBAL_LOADING_REMOTE_ENTRY__;function $r(e){Ue(e,"__VMOK__")&&!Ue(e,"__FEDERATION__")&&qe(e,"__FEDERATION__",e.__VMOK__),Ue(e,"__FEDERATION__")||(qe(e,"__FEDERATION__",{__GLOBAL_PLUGIN__:[],__INSTANCES__:[],moduleInfo:{},__SHARE__:{},__MANIFEST_LOADING__:{},__PRELOADED_MAP__:new Map}),qe(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}$r(v);$r(C);function Ro(){v.__FEDERATION__.__GLOBAL_PLUGIN__=[],v.__FEDERATION__.__INSTANCES__=[],v.__FEDERATION__.moduleInfo={},v.__FEDERATION__.__SHARE__={},v.__FEDERATION__.__MANIFEST_LOADING__={},Object.keys(yt).forEach(e=>{delete yt[e]})}function To(e){v.__FEDERATION__.__INSTANCES__.push(e)}function Io(){return v.__FEDERATION__.__DEBUG_CONSTRUCTOR__}function Mo(e,t=(0,So.isDebugMode)()){t&&(v.__FEDERATION__.__DEBUG_CONSTRUCTOR__=e,v.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__="2.3.3")}function St(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 Ar.error(`getInfoWithoutType: "key" must be a string, got ${typeof t} (${JSON.stringify(t)}).`)}const No=()=>C.__FEDERATION__.moduleInfo,kr=(e,t)=>{const r=St(t,Et.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=Et.getFMId(o),i=St(C.__FEDERATION__.moduleInfo,s).value;if(i?.version===n)return i}},Po=e=>kr(e,C.__FEDERATION__.moduleInfo),vo=(e,t)=>{const r=Et.getFMId(e);return C.__FEDERATION__.moduleInfo[r]=t,C.__FEDERATION__.moduleInfo},Oo=e=>(C.__FEDERATION__.moduleInfo={...C.__FEDERATION__.moduleInfo,...e},()=>{const t=Object.keys(e);for(const r of t)delete C.__FEDERATION__.moduleInfo[r]}),Ao=(e,t)=>{const r=t||`__FEDERATION_${e}:custom__`;return{remoteEntryKey:r,entryExports:v[r]}},$o=e=>{const{__GLOBAL_PLUGIN__:t}=C.__FEDERATION__;e.forEach(r=>{t.findIndex(n=>n.name===r.name)===-1?t.push(r):Ar.warn(`The plugin ${r.name} has been registered.`)})},ko=()=>C.__FEDERATION__.__GLOBAL_PLUGIN__,wo=e=>v.__FEDERATION__.__PRELOADED_MAP__.get(e),Fo=e=>v.__FEDERATION__.__PRELOADED_MAP__.set(e,!0);S.CurrentGlobal=v;S.Global=bo;S.addGlobalSnapshot=Oo;S.getGlobalFederationConstructor=Io;S.getGlobalHostPlugins=ko;S.getGlobalSnapshot=No;S.getGlobalSnapshotInfoByModuleInfo=Po;S.getInfoWithoutType=St;S.getPreloaded=wo;S.getRemoteEntryExports=Ao;S.getTargetSnapshotInfoByModuleInfo=kr;S.globalLoading=yt;S.nativeGlobal=C;S.registerGlobalPlugins=$o;S.resetFederationGlobalInfo=Ro;S.setGlobalFederationConstructor=Mo;S.setGlobalFederationInstance=To;S.setGlobalSnapshotInfoByModuleInfo=vo;S.setPreloaded=Fo;var $t={},oe={},W={};const Ht="[0-9A-Za-z-]+",kt=`(?:\\+(${Ht}(?:\\.${Ht})*))`,Te="0|[1-9]\\d*",Ge="[0-9]+",wr="\\d*[a-zA-Z-][a-zA-Z0-9-]*",Ct=`(?:${Ge}|${wr})`,Lo=`(?:-?(${Ct}(?:\\.${Ct})*))`,qt=`(?:${Te}|${wr})`,Fr=`(?:-(${qt}(?:\\.${qt})*))`,Qe=`${Te}|x|X|\\*`,ue=`[v=\\s]*(${Qe})(?:\\.(${Qe})(?:\\.(${Qe})(?:${Fr})?${kt}?)?)?`,Do=`^\\s*(${ue})\\s+-\\s+(${ue})\\s*$`,Ho=`[v=\\s]*${`(${Ge})\\.(${Ge})\\.(${Ge})`}${Lo}?${kt}?`,wt="((?:<|>)?=?)",Co=`(\\s*)${wt}\\s*(${Ho}|${ue})`,Lr="(?:~>?)",qo=`(\\s*)${Lr}\\s+`,Dr="(?:\\^)",Uo=`(\\s*)${Dr}\\s+`,Go="(<|>)?=?\\s*\\*",Wo=`^${Dr}${ue}$`,jo=`v?${`(${Te})\\.(${Te})\\.(${Te})`}${Fr}?${kt}?`,Bo=`^${Lr}${ue}$`,Vo=`^${wt}\\s*${ue}$`,xo=`^${wt}\\s*(${jo})$|^$`,Xo="^\\s*>=\\s*0.0.0\\s*$";W.caret=Wo;W.caretTrim=Uo;W.comparator=xo;W.comparatorTrim=Co;W.gte0=Xo;W.hyphenRange=Do;W.star=Go;W.tilde=Bo;W.tildeTrim=qo;W.xRange=Vo;const Ko=W;function Hr(e){return new RegExp(e)}function Yo(e){return!e||e.toLowerCase()==="x"||e==="*"}function zo(...e){return t=>e.reduce((r,n)=>n(r),t)}function Jo(e){return e.match(Hr(Ko.comparator))}function Zo(e,t,r,n){const o=`${e}.${t}.${r}`;return n?`${o}-${n}`:o}oe.combineVersion=Zo;oe.extractComparator=Jo;oe.isXVersion=Yo;oe.parseRegex=Hr;oe.pipe=zo;var x={};const Y=W,b=oe;function Qo(e){return e.replace(b.parseRegex(Y.hyphenRange),(t,r,n,o,s,i,a,l,c,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(c)?l="":b.isXVersion(u)?l=`<${Number(c)+1}.0.0-0`:b.isXVersion(f)?l=`<${c}.${Number(u)+1}.0-0`:d?l=`<=${c}.${u}.${f}-${d}`:l=`<=${l}`,`${r} ${l}`.trim()))}function es(e){return e.replace(b.parseRegex(Y.comparatorTrim),"$1$2$3")}function ts(e){return e.replace(b.parseRegex(Y.tildeTrim),"$1~")}function rs(e){return e.replace(b.parseRegex(Y.caretTrim),"$1^")}function ns(e){return e.trim().split(/\s+/).map(t=>t.replace(b.parseRegex(Y.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 os(e){return e.trim().split(/\s+/).map(t=>t.replace(b.parseRegex(Y.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 ss(e){return e.split(/\s+/).map(t=>t.trim().replace(b.parseRegex(Y.xRange),(r,n,o,s,i,a)=>{const l=b.isXVersion(o),c=l||b.isXVersion(s),u=c||b.isXVersion(i);return n==="="&&u&&(n=""),a="",l?n===">"||n==="<"?"<0.0.0-0":"*":n&&u?(c&&(s=0),i=0,n===">"?(n=">=",c?(o=Number(o)+1,s=0,i=0):(s=Number(s)+1,i=0)):n==="<="&&(n="<",c?o=Number(o)+1:s=Number(s)+1),n==="<"&&(a="-0"),`${n+o}.${s}.${i}${a}`):c?`>=${o}.0.0${a} <${Number(o)+1}.0.0-0`:u?`>=${o}.${s}.0${a} <${o}.${Number(s)+1}.0-0`:r})).join(" ")}function is(e){return e.trim().replace(b.parseRegex(Y.star),"")}function as(e){return e.trim().replace(b.parseRegex(Y.gte0),"")}x.parseCaretTrim=rs;x.parseCarets=ns;x.parseComparatorTrim=es;x.parseGTE0=as;x.parseHyphen=Qo;x.parseStar=is;x.parseTildeTrim=ts;x.parseTildes=os;x.parseXRanges=ss;var Cr={};function We(e,t){return e=Number(e)||e,t=Number(t)||t,e>t?1:e===t?0:-1}function ls(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?We(i,a):-1:1}return 0}function we(e,t){return We(e.major,t.major)||We(e.minor,t.minor)||We(e.patch,t.patch)||ls(e,t)}function et(e,t){return e.version===t.version}function cs(e,t){switch(e.operator){case"":case"=":return et(e,t);case">":return we(e,t)<0;case">=":return et(e,t)||we(e,t)<0;case"<":return we(e,t)>0;case"<=":return et(e,t)||we(e,t)>0;case void 0:return!0;default:return!1}}Cr.compare=cs;const le=oe,K=x,us=Cr;function fs(e){return le.pipe(K.parseCarets,K.parseTildes,K.parseXRanges,K.parseStar)(e)}function ds(e){return le.pipe(K.parseHyphen,K.parseComparatorTrim,K.parseTildeTrim,K.parseCaretTrim)(e.trim()).split(/\s+/).join(" ")}function hs(e,t){if(!e)return!1;const r=le.extractComparator(e);if(!r)return!1;const[,n,,o,s,i,a]=r,l={operator:n,version:le.combineVersion(o,s,i,a),major:o,minor:s,patch:i,preRelease:a?.split(".")},c=t.split("||");for(const u of c){const f=u.trim();if(!f||f==="*"||f==="x")return!0;try{const d=ds(f);if(!d.trim())return!0;const h=d.split(" ").map(E=>fs(E)).join(" ");if(!h.trim())return!0;const m=h.split(/\s+/).map(E=>K.parseGTE0(E)).filter(Boolean);if(m.length===0)continue;let _=!0;for(const E of m){const g=le.extractComparator(E);if(!g){_=!1;break}const[,p,,N,k,O,T]=g;if(!us.compare({operator:p,version:le.combineVersion(N,k,O,T),major:N,minor:k,patch:O,preRelease:T?.split(".")},l)){_=!1;break}}if(_)return!0}catch(d){console.error(`[semver] Error processing range part "${f}":`,d);continue}}return!1}$t.satisfy=hs;var q={},se={};const ms="default",_s="global";se.DEFAULT_REMOTE_TYPE=_s;se.DEFAULT_SCOPE=ms;const Be=I,qr=R,Ur=S,ps=se,Se=$t;let bt=D;function gs(e,t,r,n){let o;return"get"in e?o=e.get:"lib"in e?o=()=>Promise.resolve(e.lib):o=()=>Promise.resolve(()=>{Be.error(`Cannot get shared "${r}" from "${t}": neither "get" nor "lib" is provided in the share config.`)}),e.shareConfig?.eager&&e.treeShaking?.mode&&Be.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??bt.TreeShakingStatus.UNKNOWN,useIn:[]}:void 0}}function Es(e,t){const r=t.shared||{},n=t.name,o=Object.keys(r).reduce((i,a)=>{const l=qr.arrayOptions(r[a]);return i[a]=i[a]||[],l.forEach(c=>{i[a].push(gs(c,n,a,t.shareStrategy))}),i},{}),s={...e.shared};return Object.keys(o).forEach(i=>{s[i]?o[i].forEach(a=>{s[i].find(l=>l.version===a.version)||s[i].push(a)}):s[i]=o[i]}),{allShareInfos:s,newShareInfos:o}}function Ie(e,t){if(!e)return!1;const{status:r,mode:n}=e;return r===bt.TreeShakingStatus.NO_USE?!1:r===bt.TreeShakingStatus.CALCULATED?!0:n==="runtime-infer"?t?Ss(e,t):!0:!1}function re(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!!Se.satisfy(r(e),`<=${r(t)}`)}const Me=(e,t)=>{const r=t||function(n,o){return re(n,o)};return Object.keys(e).reduce((n,o)=>!n||r(n,o)||n==="0"?o:n,0)},Ve=e=>!!e.loaded||typeof e.lib=="function",ys=e=>!!e.loading,Ss=(e,t)=>{if(!e||!t)return!1;const{usedExports:r}=e;return r?!!t.every(n=>r.includes(n)):!1};function bs(e,t,r,n){const o=e[t][r];let s="",i=Ie(n);const a=function(l,c){return i?o[l].treeShaking?o[c].treeShaking?!Ve(o[l].treeShaking)&&re(l,c):!1:!0:!Ve(o[l])&&re(l,c)};if(i){if(s=Me(e[t][r],a),s)return{version:s,useTreesShaking:i};i=!1}return{version:Me(e[t][r],a),useTreesShaking:i}}const ie=e=>Ve(e)||ys(e);function Rs(e,t,r,n){const o=e[t][r];let s="",i=Ie(n);const a=function(l,c){if(i){if(!o[l].treeShaking)return!0;if(!o[c].treeShaking)return!1;if(ie(o[c].treeShaking))return ie(o[l].treeShaking)?!!re(l,c):!0;if(ie(o[l].treeShaking))return!1}return ie(o[c])?ie(o[l])?!!re(l,c):!0:ie(o[l])?!1:re(l,c)};if(i){if(s=Me(e[t][r],a),s)return{version:s,useTreesShaking:i};i=!1}return{version:Me(e[t][r],a),useTreesShaking:i}}function Ts(e){return e==="loaded-first"?Rs:bs}function Is(e,t,r,n){if(!e)return;const{shareConfig:o,scope:s=ps.DEFAULT_SCOPE,strategy:i,treeShaking:a}=r,l=Array.isArray(s)?s:[s];for(const c of l)if(o&&e[c]&&e[c][t]){const{requiredVersion:u}=o,{version:f,useTreesShaking:d}=Ts(i)(e,c,t,a),h=()=>{const _=e[c][t][f];if(o.singleton){if(typeof u=="string"&&!Se.satisfy(f,u)){const E=`Version ${f} from ${f&&_.from} of shared singleton module ${t} does not satisfy the requirement of ${r.from} which needs ${u})`;o.strictVersion?Be.error(E):Be.warn(E)}return{shared:_,useTreesShaking:d}}else{if(u===!1||u==="*")return{shared:_,useTreesShaking:d};if(Se.satisfy(f,u))return{shared:_,useTreesShaking:d};const E=Ie(a);if(E){for(const[g,p]of Object.entries(e[c][t]))if(Ie(p.treeShaking,a?.usedExports)&&Se.satisfy(g,u))return{shared:p,useTreesShaking:E}}for(const[g,p]of Object.entries(e[c][t]))if(Se.satisfy(g,u))return{shared:p,useTreesShaking:!1}}},m={shareScopeMap:e,scope:c,pkgName:t,version:f,GlobalFederation:Ur.Global.__FEDERATION__,shareInfo:r,resolver:h};return(n.emit(m)||m).resolver()}}function Ms(){return Ur.Global.__FEDERATION__.__SHARE__}function Ns(e){const{pkgName:t,extraOptions:r,shareInfos:n}=e,o=l=>{if(!l)return;const c={};return l.forEach(f=>{c[f.version]=f}),c[Me(c,function(f,d){return!Ve(c[f])&&re(f,d)})]},s=r?.resolver??o,i=l=>l!==null&&typeof l=="object"&&!Array.isArray(l),a=(...l)=>{const c={};for(const u of l)if(u)for(const[f,d]of Object.entries(u)){const h=c[f];i(h)&&i(d)?c[f]=a(h,d):d!==void 0&&(c[f]=d)}return c};return a(s(n[t]),r?.customShareInfo)}const Ps=(e,t)=>{e.useIn||(e.useIn=[]),qr.addUniqueItem(e.useIn,t)};function vs(e,t){return t&&e.treeShaking?e.treeShaking:e}q.addUseIn=Ps;q.directShare=vs;q.formatShareConfigs=Es;q.getGlobalShareScope=Ms;q.getRegisteredShare=Is;q.getTargetSharedOptions=Ns;q.shouldUseTreeShaking=Ie;var me={};function Os(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 As(e,t){for(const r of e)if(t===r.name||r.alias&&t===r.alias)return r}me.matchRemote=As;me.matchRemoteWithNameAndExpose=Os;var X={},z={},$={};const $s="RUNTIME-001",ks="RUNTIME-002",ws="RUNTIME-003",Fs="RUNTIME-004",Ls="RUNTIME-005",Ds="RUNTIME-006",Hs="RUNTIME-007",Cs="RUNTIME-008",qs="RUNTIME-009",Us="RUNTIME-010",Gs="RUNTIME-011",Ws="RUNTIME-012",js="TYPE-001",Bs="BUILD-001",Vs="BUILD-002";$.BUILD_001=Bs;$.BUILD_002=Vs;$.RUNTIME_001=$s;$.RUNTIME_002=ks;$.RUNTIME_003=ws;$.RUNTIME_004=Fs;$.RUNTIME_005=Ls;$.RUNTIME_006=Ds;$.RUNTIME_007=Hs;$.RUNTIME_008=Cs;$.RUNTIME_009=qs;$.RUNTIME_010=Us;$.RUNTIME_011=Gs;$.RUNTIME_012=Ws;$.TYPE_001=js;var ve={};const F=$,Gr={[F.RUNTIME_001]:"Failed to get remoteEntry exports.",[F.RUNTIME_002]:'The remote entry interface does not contain "init"',[F.RUNTIME_003]:"Failed to get manifest.",[F.RUNTIME_004]:"Failed to locate remote.",[F.RUNTIME_005]:"Invalid loadShareSync function call from bundler runtime",[F.RUNTIME_006]:"Invalid loadShareSync function call from runtime",[F.RUNTIME_007]:"Failed to get remote snapshot.",[F.RUNTIME_008]:"Failed to load script resources.",[F.RUNTIME_009]:"Please call createInstance first.",[F.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.',[F.RUNTIME_011]:"The remoteEntry URL is missing from the remote snapshot.",[F.RUNTIME_012]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.'},Wr={[F.TYPE_001]:"Failed to generate type declaration. Execute the below cmd to reproduce and fix the error."},jr={[F.BUILD_001]:"Failed to find expose module.",[F.BUILD_002]:"PublicPath is required in prod mode."},xs={...Gr,...Wr,...jr};ve.buildDescMap=jr;ve.errorDescMap=xs;ve.runtimeDescMap=Gr;ve.typeDescMap=Wr;(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=$,r=At,n=ve;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.RUNTIME_012=t.RUNTIME_012,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})(z);const Xe=I,ce=S,Ut=se;let Br=D,Ne=z;const Vr=".then(callbacks[0]).catch(callbacks[1])";async function Xs({entry:e,remoteEntryExports:t}){return new Promise((r,n)=>{try{t?r(t):typeof FEDERATION_ALLOW_NEW_FUNCTION<"u"?new Function("callbacks",`import("${e}")${Vr}`)([r,n]):import(e).then(r).catch(n)}catch(o){Xe.error(`Failed to load ESM entry from "${e}". ${o instanceof Error?o.message:String(o)}`)}})}async function Ks({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}")${Vr}`)([r,n])}catch(o){Xe.error(`Failed to load SystemJS entry from "${e}". ${o instanceof Error?o.message:String(o)}`)}})}function Ys(e,t,r){const{remoteEntryKey:n,entryExports:o}=ce.getRemoteEntryExports(e,t);return o||Xe.error(Ne.RUNTIME_001,Ne.runtimeDescMap,{remoteName:e,remoteEntryUrl:r,remoteEntryKey:n}),o}async function zs({name:e,globalName:t,entry:r,remoteInfo:n,loaderHook:o,getEntryUrl:s}){const{entryExports:i}=ce.getRemoteEntryExports(e,t);if(i)return i;const a=s?s(r):r;return(0,Br.loadScript)(a,{attrs:{},createScriptHook:(l,c)=>{const u=o.lifecycle.createScript.emit({url:l,attrs:c,remoteInfo:n});if(u&&(u instanceof HTMLScriptElement||"script"in u||"timeout"in u))return u}}).then(()=>Ys(e,t,r),l=>{const c=l instanceof Error?l.message:String(l);Xe.error(Ne.RUNTIME_008,Ne.runtimeDescMap,{remoteName:e,resourceUrl:a},c)})}async function Js({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 Xs({entry:o,remoteEntryExports:t});case"system":return Ks({entry:o,remoteEntryExports:t});default:return zs({entry:o,globalName:s,name:i,remoteInfo:e,loaderHook:r,getEntryUrl:n})}}function Rt(e){const{entry:t,name:r}=e;return(0,Br.composeKeyWithSeparator)(r,t)}async function xr(e){const{origin:t,remoteEntryExports:r,remoteInfo:n,getEntryUrl:o,_inErrorHandling:s=!1}=e,i=Rt(n);if(r)return r;if(!ce.globalLoading[i]){const a=t.remoteHandler.hooks.lifecycle.loadEntry,l=t.loaderHook;ce.globalLoading[i]=a.emit({loaderHook:l,remoteInfo:n,remoteEntryExports:r}).then(c=>c||Js({remoteInfo:n,remoteEntryExports:r,loaderHook:l,getEntryUrl:o})).catch(async c=>{const u=Rt(n),f=c instanceof Error&&c.message.includes("ScriptExecutionError");if(c instanceof Error&&c.message.includes(Ne.RUNTIME_008)&&!f&&!s){const d=m=>xr({...m,_inErrorHandling:!0}),h=await t.loaderHook.lifecycle.loadEntryError.emit({getRemoteEntry:d,origin:t,remoteInfo:n,remoteEntryExports:r,globalLoading:ce.globalLoading,uniqueKey:u});if(h)return h}throw c})}return ce.globalLoading[i]}function Zs(e){return{...e,entry:"entry"in e?e.entry:"",type:e.type||Ut.DEFAULT_REMOTE_TYPE,entryGlobalName:e.entryGlobalName||e.name,shareScope:e.shareScope||Ut.DEFAULT_SCOPE}}X.getRemoteEntry=xr;X.getRemoteEntryUniqueKey=Rt;X.getRemoteInfo=Zs;var Xr={};function Qs(){return typeof FEDERATION_BUILD_IDENTIFIER<"u"?FEDERATION_BUILD_IDENTIFIER:""}Xr.getBuilderId=Qs;var Kr={};const ei=S;function ti(e,t){const r=ei.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}Kr.registerPlugins=ti;var Oe={};function ri(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 ni(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(ri)??[],shared:t}}}Oe.optionsToMFContext=ni;var Yr={},Q={};const oi=I,si=me,Gt=X;let be=D;function zr(e){return{resourceCategory:"sync",share:!0,depsRemote:!0,prefetchInterface:!1,...e}}function ii(e,t){return t.map(r=>{const n=si.matchRemote(e,r.nameOrAlias);return oi.assert(n,`Unable to preload ${r.nameOrAlias} as it is not included in ${!n&&(0,be.safeToString)({remoteInfo:n,remotes:e})}`),{remote:n,preloadConfig:zr(r)}})}function ai(e){return e?e.map(t=>t==="."?t:t.startsWith("./")?t.replace("./",""):t):[]}function li(e,t,r,n=!0){const{cssAssets:o,jsAssetsWithoutEntry:s,entryAssets:i}=r;if(t.options.inBrowser){if(i.forEach(a=>{const{moduleInfo:l}=a,c=t.moduleCache.get(e.name);c?Gt.getRemoteEntry({origin:t,remoteInfo:l,remoteEntryExports:c.remoteEntryExports}):Gt.getRemoteEntry({origin:t,remoteInfo:l,remoteEntryExports:void 0})}),n){const a={rel:"preload",as:"style"};o.forEach(l=>{const{link:c,needAttach:u}=(0,be.createLink)({url:l,cb:()=>{},attrs:a,createLinkHook:(f,d)=>{const h=t.loaderHook.lifecycle.createLink.emit({url:f,attrs:d,remoteInfo:e});if(h instanceof HTMLLinkElement)return h}});u&&document.head.appendChild(c)})}else{const a={rel:"stylesheet",type:"text/css"};o.forEach(l=>{const{link:c,needAttach:u}=(0,be.createLink)({url:l,cb:()=>{},attrs:a,createLinkHook:(f,d)=>{const h=t.loaderHook.lifecycle.createLink.emit({url:f,attrs:d,remoteInfo:e});if(h instanceof HTMLLinkElement)return h},needDeleteLink:!1});u&&document.head.appendChild(c)})}if(n){const a={rel:"preload",as:"script"};s.forEach(l=>{const{link:c,needAttach:u}=(0,be.createLink)({url:l,cb:()=>{},attrs:a,createLinkHook:(f,d)=>{const h=t.loaderHook.lifecycle.createLink.emit({url:f,attrs:d,remoteInfo:e});if(h instanceof HTMLLinkElement)return h}});u&&document.head.appendChild(c)})}else{const a={fetchpriority:"high",type:e?.type==="module"?"module":"text/javascript"};s.forEach(l=>{const{script:c,needAttach:u}=(0,be.createScript)({url:l,cb:()=>{},attrs:a,createScriptHook:(f,d)=>{const h=t.loaderHook.lifecycle.createScript.emit({url:f,attrs:d,remoteInfo:e});if(h instanceof HTMLScriptElement)return h},needDeleteScript:!0});u&&document.head.appendChild(c)})}}}Q.defaultPreloadArgs=zr;Q.formatPreloadArgs=ii;Q.normalizePreloadExposes=ai;Q.preloadAssets=li;const A=S,Wt=q,ci=me,ui=X,fi=Q,di={getRegisteredShare:Wt.getRegisteredShare,getGlobalShareScope:Wt.getGlobalShareScope},hi={Global:A.Global,nativeGlobal:A.nativeGlobal,resetFederationGlobalInfo:A.resetFederationGlobalInfo,setGlobalFederationInstance:A.setGlobalFederationInstance,getGlobalFederationConstructor:A.getGlobalFederationConstructor,setGlobalFederationConstructor:A.setGlobalFederationConstructor,getInfoWithoutType:A.getInfoWithoutType,getGlobalSnapshot:A.getGlobalSnapshot,getTargetSnapshotInfoByModuleInfo:A.getTargetSnapshotInfoByModuleInfo,getGlobalSnapshotInfoByModuleInfo:A.getGlobalSnapshotInfoByModuleInfo,setGlobalSnapshotInfoByModuleInfo:A.setGlobalSnapshotInfoByModuleInfo,addGlobalSnapshot:A.addGlobalSnapshot,getRemoteEntryExports:A.getRemoteEntryExports,registerGlobalPlugins:A.registerGlobalPlugins,getGlobalHostPlugins:A.getGlobalHostPlugins,getPreloaded:A.getPreloaded,setPreloaded:A.setPreloaded};var mi={global:hi,share:di,utils:{matchRemoteWithNameAndExpose:ci.matchRemoteWithNameAndExpose,preloadAssets:fi.preloadAssets,getRemoteInfo:ui.getRemoteInfo}};Yr.default=mi;var Ke={};const tt=I,jt=R,_i=X,pi=Oe;let gi=D,Bt=z;function Ei(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 yi=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 _i.getRemoteEntry({origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports});return tt.assert(e,`remoteEntryExports is undefined
|
|
7
|
+
${(0,gi.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}=Ei(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"&&tt.error(Bt.RUNTIME_002,Bt.runtimeDescMap,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName},void 0,pi.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)),tt.assert(i,`${jt.getFMId(this.remoteInfo)} remote don't export ${t}.`);const a=jt.processModuleAlias(this.remoteInfo.name,t),l=this.wraperFactory(i,a);return o?await l():l}wraperFactory(e,t){function r(n,o){n&&typeof n=="object"&&Object.isExtensible(n)&&!Object.getOwnPropertyDescriptor(n,Symbol.for("mf_module_id"))&&Object.defineProperty(n,Symbol.for("mf_module_id"),{value:o,enumerable:!1})}return e instanceof Promise?async()=>{const n=await e();return r(n,t),n}:()=>{const n=e();return r(n,t),n}}};Ke.Module=yi;var Jr={},_e={},Si=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()}};_e.SyncHook=Si;var Ae={};const bi=_e;var Ri=class extends bi.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)}};Ae.AsyncHook=Ri;var pe={};const rt=I,Zr=R,Ti=_e;function Qr(e,t){if(!Zr.isObject(t))return!1;if(e!==t){for(const r in e)if(!(r in t))return!1}return!0}var Ii=class extends Ti.SyncHook{constructor(e){super(),this.onerror=rt.error,this.type=e}emit(e){Zr.isObject(e)||rt.error(`The data for the "${this.type}" hook should be an object.`);for(const t of this.listeners)try{const r=t(e);if(Qr(e,r))e=r;else{this.onerror(`A plugin returned an unacceptable value for the "${this.type}" type.`);break}}catch(r){rt.warn(r),this.onerror(r)}return e}};pe.SyncWaterfallHook=Ii;pe.checkReturnData=Qr;var $e={};const nt=I,Mi=R,Ni=_e,Pi=pe;var vi=class extends Ni.SyncHook{constructor(e){super(),this.onerror=nt.error,this.type=e}emit(e){Mi.isObject(e)||nt.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=>(nt.warn(s),this.onerror(s),e),o=s=>{if(Pi.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)}};$e.AsyncWaterfallHook=vi;var ke={};const Fe=I,Oi=R;var Ai=class{constructor(e){this.registerPlugins={},this.lifecycle=e,this.lifecycleKeys=Object.keys(e)}applyPlugin(e,t){Fe.assert(Oi.isPlainObject(e),"Plugin configuration is invalid.");const r=e.name;Fe.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){Fe.assert(e,"A name is required.");const t=this.registerPlugins[e];Fe.assert(t,`The plugin "${e}" is not registered.`),Object.keys(t).forEach(r=>{r!=="name"&&this.lifecycle[r].remove(t[r])})}};ke.PluginSystem=Ai;var Ye={};const $i=I,Tt=R,ki=Q;let Vt=D,xt=z;function en(e,t){const r=Tt.getRemoteEntryInfoFromSnapshot(t);r.url||$i.error(xt.RUNTIME_011,xt.runtimeDescMap,{remoteName:e.name});let n=(0,Vt.getResourceUrl)(t,r.url);!Vt.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 wi(){return{name:"snapshot-plugin",async afterResolve(e){const{remote:t,pkgNameOrAlias:r,expose:n,origin:o,remoteInfo:s,id:i}=e;if(!Tt.isRemoteInfoWithEntry(t)||!Tt.isPureRemoteEntry(t)){const{remoteSnapshot:a,globalSnapshot:l}=await o.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:t,id:i});en(s,a);const c={remote:t,preloadConfig:{nameOrAlias:r,exposes:[n],resourceCategory:"sync",share:!1,depsRemote:!1}},u=await o.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin:o,preloadOptions:c,remoteInfo:s,remote:t,remoteSnapshot:a,globalSnapshot:l});return u&&ki.preloadAssets(s,o,u,!1),{...e,remoteSnapshot:a}}return e}}}Ye.assignRemoteInfo=en;Ye.snapshotPlugin=wi;var tn={};const Pe=R,It=S,Fi=q,Xt=Q,Li=Ye;let xe=D;function Di(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 rn(e,t,r,n,o={},s){const{value:i}=It.getInfoWithoutType(e,Pe.getFMId(t)),a=s||i;if(a&&!(0,xe.isManifestProvider)(a)&&(r(a,t,n),a.remotesInfo)){const l=Object.keys(a.remotesInfo);for(const c of l){if(o[c])continue;o[c]=!0;const u=Di(c),f=a.remotesInfo[c];rn(e,{name:u.name,version:f.matchedVersion},r,!1,o,void 0)}}}const ot=(e,t)=>document.querySelector(`${e}[${e==="link"?"href":"src"}="${t}"]`);function Hi(e,t,r,n,o){const s=[],i=[],a=[],l=new Set,c=new Set,{options:u}=e,{preloadConfig:f}=t,{depsRemote:d}=f;if(rn(n,r,(m,_,E)=>{let g;if(E)g=f;else if(Array.isArray(d)){const T=d.find(L=>L.nameOrAlias===_.name||L.nameOrAlias===_.alias);if(!T)return;g=Xt.defaultPreloadArgs(T)}else if(d===!0)g=f;else return;const p=(0,xe.getResourceUrl)(m,Pe.getRemoteEntryInfoFromSnapshot(m).url);p&&a.push({name:_.name,moduleInfo:{name:_.name,entry:p,type:"remoteEntryType"in m?m.remoteEntryType:"global",entryGlobalName:"globalName"in m?m.globalName:_.name,shareScope:"",version:"version"in m?m.version:void 0},url:p});let N="modules"in m?m.modules:[];const k=Xt.normalizePreloadExposes(g.exposes);k.length&&"modules"in m&&(N=m?.modules?.reduce((T,L)=>(k?.indexOf(L.moduleName)!==-1&&T.push(L),T),[]));function O(T){const L=T.map(j=>(0,xe.getResourceUrl)(m,j));return g.filter?L.filter(g.filter):L}if(N){const T=N.length;for(let L=0;L<T;L++){const j=N[L],Ze=`${_.name}/${j.moduleName}`;e.remoteHandler.hooks.lifecycle.handlePreloadModule.emit({id:j.moduleName==="."?_.name:Ze,name:_.name,remoteSnapshot:m,preloadConfig:g,remote:_,origin:e}),!It.getPreloaded(Ze)&&(g.resourceCategory==="all"?(s.push(...O(j.assets.css.async)),s.push(...O(j.assets.css.sync)),i.push(...O(j.assets.js.async)),i.push(...O(j.assets.js.sync))):g.resourceCategory==="sync"&&(s.push(...O(j.assets.css.sync)),i.push(...O(j.assets.js.sync))),It.setPreloaded(Ze))}}},!0,{},o),o.shared&&o.shared.length>0){const m=(_,E)=>{const{shared:g}=Fi.getRegisteredShare(e.shareScopeMap,E.sharedName,_,e.sharedHandler.hooks.lifecycle.resolveShare)||{};g&&typeof g.lib=="function"&&(E.assets.js.sync.forEach(p=>{l.add(p)}),E.assets.css.sync.forEach(p=>{c.add(p)}))};o.shared.forEach(_=>{const E=u.shared?.[_.sharedName];if(!E)return;const g=_.version?E.find(p=>p.version===_.version):E;g&&Pe.arrayOptions(g).forEach(p=>{m(p,_)})})}const h=i.filter(m=>!l.has(m)&&!ot("script",m));return{cssAssets:s.filter(m=>!c.has(m)&&!ot("link",m)),jsAssetsWithoutEntry:h,entryAssets:a.filter(m=>!ot("script",m.url))}}const Ci=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 xe.isBrowserEnvValue?Pe.isRemoteInfoWithEntry(o)&&Pe.isPureRemoteEntry(o)?{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[{name:o.name,url:o.entry,moduleInfo:{name:n.name,entry:o.entry,type:n.type||"global",entryGlobalName:"",shareScope:""}}]}:(Li.assignRemoteInfo(n,i),Hi(t,r,n,s,i)):{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[]}}}};tn.generatePreloadAssetsPlugin=Ci;var ze={};const st=I,qi=R,G=S,Ui=X,Kt=Oe,Gi=Ae,it=$e,Wi=ke;let at=D,Le=z;function nn(e,t){const r=G.getGlobalSnapshotInfoByModuleInfo({name:t.name,version:t.options.version}),n=r&&"remotesInfo"in r&&r.remotesInfo&&G.getInfoWithoutType(r.remotesInfo,e.name).value;return n&&n.matchedVersion?{hostGlobalSnapshot:r,globalSnapshot:G.getGlobalSnapshot(),remoteSnapshot:G.getGlobalSnapshotInfoByModuleInfo({name:e.name,version:n.matchedVersion})}:{hostGlobalSnapshot:void 0,globalSnapshot:G.getGlobalSnapshot(),remoteSnapshot:G.getGlobalSnapshotInfoByModuleInfo({name:e.name,version:"version"in e?e.version:void 0})}}var ji=class{constructor(e){this.loadingHostSnapshot=null,this.manifestCache=new Map,this.hooks=new Wi.PluginSystem({beforeLoadRemoteSnapshot:new Gi.AsyncHook("beforeLoadRemoteSnapshot"),loadSnapshot:new it.AsyncWaterfallHook("loadGlobalSnapshot"),loadRemoteSnapshot:new it.AsyncWaterfallHook("loadRemoteSnapshot"),afterLoadSnapshot:new it.AsyncWaterfallHook("afterLoadSnapshot")}),this.manifestLoading=G.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=G.getGlobalSnapshotInfoByModuleInfo({name:this.HostInstance.options.name,version:this.HostInstance.options.version});o||(o={version:this.HostInstance.options.version||"",remoteEntry:"",remotesInfo:{}},G.addGlobalSnapshot({[this.HostInstance.options.name]:o})),o&&"remotesInfo"in o&&!G.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:l,globalSnapshot:c}=await this.hooks.lifecycle.loadSnapshot.emit({options:n,moduleInfo:e,hostGlobalSnapshot:s,remoteSnapshot:i,globalSnapshot:a});let u,f;if(l)if((0,at.isManifestProvider)(l)){const d=at.isBrowserEnvValue?l.remoteEntry:l.ssrRemoteEntry||l.remoteEntry||"",h=await this.getManifestJson(d,e,{}),m=G.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:l,from:"global"});u=d,f=c}else if(qi.isRemoteInfoWithEntry(e)){const d=await this.getManifestJson(e.entry,e,{}),h=G.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 st.error(Le.RUNTIME_007,Le.runtimeDescMap,{remoteName:e.name,remoteVersion:e.version,hostName:this.HostInstance.options.name,globalSnapshot:JSON.stringify(c)},void 0,Kt.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 nn(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,{},Ui.getRemoteInfo(t));(!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],st.error(Le.RUNTIME_003,Le.runtimeDescMap,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name},`${i}`,Kt.optionsToMFContext(this.HostInstance.options)))}return st.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,at.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]}};ze.SnapshotHandler=ji;ze.getGlobalRemoteInfo=nn;var on={};const lt=I,Bi=se,P=q,Yt=Oe,Vi=Ae,ct=pe,zt=$e,xi=ke;let Ee=z;var Xi=class{constructor(e){this.hooks=new xi.PluginSystem({beforeRegisterShare:new ct.SyncWaterfallHook("beforeRegisterShare"),afterResolve:new zt.AsyncWaterfallHook("afterResolve"),beforeLoadShare:new zt.AsyncWaterfallHook("beforeLoadShare"),loadShare:new Vi.AsyncHook,resolveShare:new ct.SyncWaterfallHook("resolveShare"),initContainerShareScopeMap:new ct.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});lt.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 l=await a.loading;return a.loaded=!0,a.lib||(a.lib=l),P.addUseIn(a,r.options.name),l}else{const c=(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:c,treeShaking:i?a:void 0}),c}}else{if(t?.customShareInfo)return!1;const a=P.shouldUseTreeShaking(o.treeShaking),l=P.directShare(o,a),u=(async()=>{const f=await l.get();l.lib=f,l.loaded=!0,P.addUseIn(l,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?l:void 0}),u}}initializeSharing(e=Bi.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,l=r.options.name;a[e]||(a[e]={});const c=a[e],u=(d,h)=>{const{version:m,eager:_}=h;c[d]=c[d]||{};const E=c[d],g=E[m]&&P.directShare(E[m]),p=!!(g&&("eager"in g&&g.eager||"shareConfig"in g&&g.shareConfig?.eager));(!g||g.strategy!=="loaded-first"&&!g.loaded&&(!_!=!p?_:l>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(_){if(m=await r.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:d,error:_,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&<.error(t?.from==="build"?Ee.RUNTIME_005:Ee.RUNTIME_006,Ee.runtimeDescMap,{hostName:r.options.name,sharedPkgName:e},void 0,Yt.optionsToMFContext(r.options)),n.lib=i,this.setShared({pkgName:e,loaded:!0,from:r.options.name,lib:n.lib,shared:n}),n.lib}lt.error(Ee.RUNTIME_006,Ee.runtimeDescMap,{hostName:r.options.name,sharedPkgName:e},void 0,Yt.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:l,scope:c="default",...u}=t,f=Array.isArray(c)?c:[c],d=h=>{const m=(E,g,p)=>{p&&!E[g]&&(E[g]=p)},_=a?h.treeShaking:h;m(_,"loaded",s),m(_,"loading",o),m(_,"get",i)};f.forEach(h=>{this.shareScopeMap[h]||(this.shareScopeMap[h]={}),this.shareScopeMap[h][e]||(this.shareScopeMap[h][e]={}),this.shareScopeMap[h][e][l]||(this.shareScopeMap[h][e][l]={version:l,scope:[h],...u,lib:n});const m=this.shareScopeMap[h][e][l];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)}};on.SharedHandler=Xi;var sn={};const De=I,U=S,Jt=se,Ki=q,Yi=me,ut=X,zi=Oe,Zt=Q,Ji=Ke,Zi=_e,ae=Ae,Qt=pe,Qi=$e,ea=ke,ta=ze;let ft=D,er=z;var ra=class{constructor(e){this.hooks=new ea.PluginSystem({beforeRegisterRemote:new Qt.SyncWaterfallHook("beforeRegisterRemote"),registerRemote:new Qt.SyncWaterfallHook("registerRemote"),beforeRequest:new Qi.AsyncWaterfallHook("beforeRequest"),onLoad:new ae.AsyncHook("onLoad"),handlePreloadModule:new Zi.SyncHook("handlePreloadModule"),errorLoadRemote:new ae.AsyncHook("errorLoadRemote"),beforePreloadRemote:new ae.AsyncHook("beforePreloadRemote"),generatePreloadAssets:new ae.AsyncHook("generatePreloadAssets"),afterPreloadRemote:new ae.AsyncHook,loadEntry:new ae.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:l,expose:c,id:u,remoteSnapshot:f}=i,d=await o.get(u,c,t,f),h=await this.hooks.lifecycle.onLoad.emit({id:u,pkgNameOrAlias:a,expose:c,exposeModule:n?d:void 0,exposeModuleFactory:n?void 0:d,remote:l,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=Zt.formatPreloadArgs(t.options.remotes,e);await Promise.all(r.map(async n=>{const{remote:o}=n,s=ut.getRemoteInfo(o),{globalSnapshot:i,remoteSnapshot:a}=await t.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:o}),l=await this.hooks.lifecycle.generatePreloadAssets.emit({origin:t,preloadOptions:n,remote:o,remoteInfo:s,globalSnapshot:i,remoteSnapshot:a});l&&Zt.preloadAssets(s,t,l)}))}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=Yi.matchRemoteWithNameAndExpose(t.options.remotes,o);s||De.error(er.RUNTIME_004,er.runtimeDescMap,{hostName:t.options.name,requestId:o},void 0,zi.optionsToMFContext(t.options));const{remote:i}=s,a=ut.getRemoteInfo(i),l=await t.sharedHandler.hooks.lifecycle.afterResolve.emit({id:o,...s,options:t.options,origin:t,remoteInfo:a}),{remote:c,expose:u}=l;De.assert(c&&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(c.name);const d={host:t,remoteInfo:a};return f||(f=new Ji.Module(d),t.moduleCache.set(c.name,f)),{module:f,moduleOptions:d,remoteMatchInfo:l}}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)));De.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&&ft.isBrowserEnvValue&&typeof window<"u"&&!e.entry.startsWith("http")&&(e.entry=new URL(e.entry,window.location.origin).href),e.shareScope||(e.shareScope=Jt.DEFAULT_SCOPE),e.type||(e.type=Jt.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,ft.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;U.CurrentGlobal[i]&&(Object.getOwnPropertyDescriptor(U.CurrentGlobal,i)?.configurable?delete U.CurrentGlobal[i]:U.CurrentGlobal[i]=void 0);const a=ut.getRemoteEntryUniqueKey(o.remoteInfo);U.globalLoading[a]&&delete U.globalLoading[a],t.snapshotHandler.manifestCache.delete(s.entry);let l=s.buildVersion?(0,ft.composeKeyWithSeparator)(s.name,s.buildVersion):s.name;const c=U.CurrentGlobal.__FEDERATION__.__INSTANCES__.findIndex(f=>s.buildVersion?f.options.id===l:f.name===l);if(c!==-1){const f=U.CurrentGlobal.__FEDERATION__.__INSTANCES__[c];l=f.options.id||l;const d=Ki.getGlobalShareScope();let h=!0;const m=[];Object.keys(d).forEach(_=>{const E=d[_];E&&Object.keys(E).forEach(g=>{const p=E[g];p&&Object.keys(p).forEach(N=>{const k=p[N];k&&Object.keys(k).forEach(O=>{const T=k[O];T&&typeof T=="object"&&T.from===s.name&&(T.loaded||T.loading?(T.useIn=T.useIn.filter(L=>L!==s.name),T.useIn.length?h=!1:m.push([_,g,N,O])):m.push([_,g,N,O]))})})})}),h&&(f.shareScopeMap={},delete d[l]),m.forEach(([_,E,g,p])=>{delete d[_]?.[E]?.[g]?.[p]}),U.CurrentGlobal.__FEDERATION__.__INSTANCES__.splice(c,1)}const{hostGlobalSnapshot:u}=ta.getGlobalRemoteInfo(e,t);if(u){const f=u&&"remotesInfo"in u&&u.remotesInfo&&U.getInfoWithoutType(u.remotesInfo,e.name).key;f&&(delete u.remotesInfo[f],U.Global.__FEDERATION__.__MANIFEST_LOADING__[f]&&delete U.Global.__FEDERATION__.__MANIFEST_LOADING__[f])}t.moduleCache.delete(e.name)}}catch(t){De.logger.error(`removeRemote failed: ${t instanceof Error?t.message:String(t)}`)}}};sn.RemoteHandler=ra;const na=I,oa=se,sa=q,ia=Xr,aa=Kr,la=X,ca=Ke,J=_e,dt=Ae,ua=pe,tr=$e,ht=ke,fa=Ye,da=tn,ha=ze,ma=on,_a=sn;let pa=D,mt=z;const ga=typeof FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN=="boolean"?!FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN:!0;var Ea=class{constructor(e){this.hooks=new ht.PluginSystem({beforeInit:new ua.SyncWaterfallHook("beforeInit"),init:new J.SyncHook,beforeInitContainer:new tr.AsyncWaterfallHook("beforeInitContainer"),initContainer:new tr.AsyncWaterfallHook("initContainer")}),this.version="2.3.3",this.moduleCache=new Map,this.loaderHook=new ht.PluginSystem({getModuleInfo:new J.SyncHook,createScript:new J.SyncHook,createLink:new J.SyncHook,fetch:new dt.AsyncHook,loadEntryError:new dt.AsyncHook,getModuleFactory:new dt.AsyncHook}),this.bridgeHook=new ht.PluginSystem({beforeBridgeRender:new J.SyncHook,afterBridgeRender:new J.SyncHook,beforeBridgeDestroy:new J.SyncHook,afterBridgeDestroy:new J.SyncHook});const t=ga?[fa.snapshotPlugin(),da.generatePreloadAssetsPlugin()]:[],r={id:ia.getBuilderId(),name:e.name,plugins:t,remotes:[],shared:{},inBrowser:pa.isBrowserEnvValue};this.name=e.name,this.options=r,this.snapshotHandler=new ha.SnapshotHandler(this),this.sharedHandler=new ma.SharedHandler(this),this.remoteHandler=new _a.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&&na.error((0,mt.getShortErrorMsg)(mt.RUNTIME_010,mt.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=oa.DEFAULT_SCOPE,t){return this.sharedHandler.initializeSharing(e,t)}initRawContainer(e,t,r){const n=la.getRemoteInfo({name:e,entry:t}),o=new ca.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}=sa.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(c=>{a.includes(c)||a.push(c)});const l={...e,...t,plugins:a,remotes:s,shared:i};return this.hooks.lifecycle.init.emit({origin:this,options:l}),l}registerPlugins(e){const t=aa.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})}};Jr.ModuleFederation=Ea;var an={},ln={},rr=Object.defineProperty,ya=(e,t)=>{let r={};for(var n in e)rr(r,n,{get:e[n],enumerable:!0});return t||rr(r,Symbol.toStringTag,{value:"Module"}),r};ln.__exportAll=ya;(function(e){var r=ln.__exportAll({});Object.defineProperty(e,"type_exports",{enumerable:!0,get:function(){return r}})})(an);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=I,r=R,n=S,o=$t,s=q,i=me,a=X,l=Yr,c=Ke,u=Jr,f=an;let d=D;const h=l.default;e.CurrentGlobal=n.CurrentGlobal,e.Global=n.Global,e.Module=c.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}})})(Nt);let Sa=Nt;function ba(){return typeof FEDERATION_BUILD_IDENTIFIER<"u"?FEDERATION_BUILD_IDENTIFIER:""}function Ra(e,t){const r=ba();return Sa.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))}cr.getGlobalFederationInstance=Ra;(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=cr;let r=Nt,n=z;function o(_){const E=new((0,r.getGlobalFederationConstructor)()||r.ModuleFederation)(_);return(0,r.setGlobalFederationInstance)(E),E}let s=null;function i(_){const E=t.getGlobalFederationInstance(_.name,_.version);return E?(E.initOptions(_),s||(s=E),E):(s=o(_),s)}function a(..._){return(0,r.assert)(s,n.RUNTIME_009,n.runtimeDescMap),s.loadRemote.apply(s,_)}function l(..._){return(0,r.assert)(s,n.RUNTIME_009,n.runtimeDescMap),s.loadShare.apply(s,_)}function c(..._){return(0,r.assert)(s,n.RUNTIME_009,n.runtimeDescMap),s.loadShareSync.apply(s,_)}function u(..._){return(0,r.assert)(s,n.RUNTIME_009,n.runtimeDescMap),s.preloadRemote.apply(s,_)}function f(..._){return(0,r.assert)(s,n.RUNTIME_009,n.runtimeDescMap),s.registerRemotes.apply(s,_)}function d(..._){return(0,r.assert)(s,n.RUNTIME_009,n.runtimeDescMap),s.registerPlugins.apply(s,_)}function h(){return s}function m(..._){return(0,r.assert)(s,n.RUNTIME_009,n.runtimeDescMap),s.registerShared.apply(s,_)}(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=l,e.loadShareSync=c,e.preloadRemote=u,Object.defineProperty(e,"registerGlobalPlugins",{enumerable:!0,get:function(){return r.registerGlobalPlugins}}),e.registerPlugins=d,e.registerRemotes=f,e.registerShared=m})(lr);typeof __VUE_HMR_RUNTIME__>"u"&&(globalThis.__VUE_HMR_RUNTIME__={createRecord(){},rerender(){},reload(){}});const cn="__mf_init____mf__virtual/__mfe_internal__rimori_mf_2_scenario_mf_2_host__mf_v__runtimeInit__mf_v__.js__";let Mt=globalThis[cn];if(!Mt){let e,t;const r=new Promise((n,o)=>{e=n,t=o});Mt=globalThis[cn]={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 Ta=Mt.initResolve,Je="__mf_module_cache__";globalThis[Je]||={share:{},remote:{}};globalThis[Je].share||={};globalThis[Je].remote||={};const w=globalThis[Je],nr={},or="default",sr="__mfe_internal__rimori-scenario-host";let He,ir,ar;async function Ia(){return ir??=B(()=>import("./localSharedImportMap.js"),[]),ir}async function Ma(){return ar??=B(()=>import("./virtualExposes.js"),[]).then(e=>e.default??e),ar}async function Pa(e={},t=[]){const{usedShared:r,usedRemotes:n}=await Ia();if(w.share.react===void 0){const l={...await B(()=>import("./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react__loadShare__.mjs.js").then(c=>c.a),[])};Object.defineProperty(l,"__esModule",{value:!0,enumerable:!1}),w.share.react=l}if(w.share["react-dom"]===void 0){const l={...await B(()=>import("./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react_mf_2_dom__loadShare__.mjs.js").then(c=>c.a),[])};Object.defineProperty(l,"__esModule",{value:!0,enumerable:!1}),w.share["react-dom"]=l}if(w.share["react/jsx-dev-runtime"]===void 0){const l={...await B(()=>import("./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react_mf_1_jsx_mf_2_dev_mf_2_runtime__loadShare__.mjs.js").then(c=>c.a),[])};Object.defineProperty(l,"__esModule",{value:!0,enumerable:!1}),w.share["react/jsx-dev-runtime"]=l}if(w.share["react/jsx-runtime"]===void 0){const l={...await B(()=>import("./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.mjs.js").then(c=>c.a),[])};Object.defineProperty(l,"__esModule",{value:!0,enumerable:!1}),w.share["react/jsx-runtime"]=l}if(w.share["@rimori/client"]===void 0){const l={...await B(()=>import("./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare___mf_0_rimori_mf_1_client__loadShare__.mjs.js").then(c=>c._),[])};Object.defineProperty(l,"__esModule",{value:!0,enumerable:!1}),w.share["@rimori/client"]=l}if(w.share["@rimori/react-client"]===void 0){const l={...await B(()=>import("./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare___mf_0_rimori_mf_1_react_mf_2_client__loadShare__.mjs.js").then(c=>c._),[])};Object.defineProperty(l,"__esModule",{value:!0,enumerable:!1}),w.share["@rimori/react-client"]=l}if(w.share["@tanstack/react-query"]===void 0){const l={...await B(()=>import("./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.mjs.js").then(c=>c._),[])};Object.defineProperty(l,"__esModule",{value:!0,enumerable:!1}),w.share["@tanstack/react-query"]=l}if(w.share.zod===void 0){const l={...await B(()=>import("./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__zod__loadShare__.mjs.js").then(c=>c._),[])};Object.defineProperty(l,"__esModule",{value:!0,enumerable:!1}),w.share.zod=l}const o={name:sr,remotes:n,shared:r,plugins:[],shareStrategy:"version-first"};He?He.initOptions(o):He=lr.createInstance(o);const s=He;var i=nr[or];if(i||(i=nr[or]={from:sr}),!(t.indexOf(i)>=0)){t.push(i),s.initShareScopeMap("default",e),Ta(s);try{await Promise.all(await s.initializeSharing("default",{strategy:"version-first",from:"build",initScope:t}))}catch(a){console.error("[Module Federation]",a)}return s}}async function va(e){const t=await Ma();if(!(e in t))throw new Error(`[Module Federation] Module ${e} does not exist in container.`);return t[e]().then(r=>()=>r)}export{va as get,Pa as init};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rimori/playwright-testing",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.26-next.1",
|
|
4
4
|
"description": "Playwright testing utilities for Rimori plugins and workers",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"@playwright/test": "^1.40.0",
|
|
30
|
-
"@rimori/client": "
|
|
30
|
+
"@rimori/client": "2.5.36-next.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@module-federation/enhanced": "2.3.3",
|
|
34
34
|
"@module-federation/vite": "1.15.0",
|
|
35
35
|
"@playwright/test": "^1.40.0",
|
|
36
|
-
"@rimori/client": "
|
|
36
|
+
"@rimori/client": "2.5.36-next.0",
|
|
37
37
|
"@rimori/react-client": "^0.4.19",
|
|
38
38
|
"@tanstack/react-query": "^5.56.2",
|
|
39
39
|
"@types/node": "^20.12.7",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{_ as B}from"./preload-helper.js";var lr={},cr={},Nt={},I={},D={},M={};const un="federation-manifest.json",fn=".json",dn="FEDERATION_DEBUG",V={AT:"@",HYPHEN:"-",SLASH:"/"},Ce={[V.AT]:"scope_",[V.HYPHEN]:"_",[V.SLASH]:"__"},hn={[Ce[V.AT]]:V.AT,[Ce[V.HYPHEN]]:V.HYPHEN,[Ce[V.SLASH]]:V.SLASH},mn=":",_n="mf-manifest.json",pn="mf-stats.json",gn={NPM:"npm",APP:"app"},En="__MF_DEVTOOLS_MODULE_INFO__",yn="ENCODE_NAME_PREFIX",Sn=".federation",bn={identifier:"MFDataPrefetch",globalKey:"__PREFETCH__",library:"mf-data-prefetch",exportsKey:"__PREFETCH_EXPORTS__",fileName:"bootstrap.js"};let Rn=function(e){return e[e.UNKNOWN=1]="UNKNOWN",e[e.CALCULATED=2]="CALCULATED",e[e.NO_USE=0]="NO_USE",e}({});M.BROWSER_LOG_KEY=dn;M.ENCODE_NAME_PREFIX=yn;M.EncodedNameTransformMap=hn;M.FederationModuleManifest=un;M.MANIFEST_EXT=fn;M.MFModuleType=gn;M.MFPrefetchCommon=bn;M.MODULE_DEVTOOL_IDENTIFIER=En;M.ManifestFileName=_n;M.NameTransformMap=Ce;M.NameTransformSymbol=V;M.SEPARATOR=mn;M.StatsFileName=pn;M.TEMP_DIR=Sn;M.TreeShakingStatus=Rn;var ur={},ne={},Ft=Object.defineProperty,Tn=(e,t)=>{let r={};for(var n in e)Ft(r,n,{get:e[n],enumerable:!0});return t||Ft(r,Symbol.toStringTag,{value:"Module"}),r};ne.__exportAll=Tn;(function(e){var r=ne.__exportAll({});Object.defineProperty(e,"ContainerPlugin_exports",{enumerable:!0,get:function(){return r}})})(ur);var fr={};(function(e){var r=ne.__exportAll({});Object.defineProperty(e,"ContainerReferencePlugin_exports",{enumerable:!0,get:function(){return r}})})(fr);var dr={};(function(e){var r=ne.__exportAll({});Object.defineProperty(e,"ModuleFederationPlugin_exports",{enumerable:!0,get:function(){return r}})})(dr);var hr={};(function(e){var r=ne.__exportAll({});Object.defineProperty(e,"SharePlugin_exports",{enumerable:!0,get:function(){return r}})})(hr);var mr={};(function(e){var r=ne.__exportAll({});Object.defineProperty(e,"ConsumeSharedPlugin_exports",{enumerable:!0,get:function(){return r}})})(mr);var _r={};(function(e){var r=ne.__exportAll({});Object.defineProperty(e,"ProvideSharedPlugin_exports",{enumerable:!0,get:function(){return r}})})(_r);var Z={},Re={};const In=M,pr=!0;function gr(){return pr}function Mn(){return typeof navigator<"u"&&navigator?.product==="ReactNative"}function Nn(){try{if(gr()&&window.localStorage)return!!localStorage.getItem(In.BROWSER_LOG_KEY)}catch{return!1}return!1}function Pn(){return typeof process<"u"&&Re&&Re.FEDERATION_DEBUG?!!Re.FEDERATION_DEBUG:typeof FEDERATION_DEBUG<"u"&&FEDERATION_DEBUG?!0:Nn()}const vn=function(){return typeof process<"u"&&Re?Re:{}};Z.getProcessEnv=vn;Z.isBrowserEnv=gr;Z.isBrowserEnvValue=pr;Z.isDebugMode=Pn;Z.isReactNativeEnv=Mn;var H={};const y=M,_t=Z,Er="[ Federation Runtime ]",On=(e,t,r=y.SEPARATOR)=>{const n=e.split(r),o=_t.getProcessEnv().NODE_ENV==="development"&&t,s="*",i=a=>a.startsWith("http")||a.includes(y.MANIFEST_EXT);if(n.length>=2){let[a,...l]=n;e.startsWith(r)&&(a=n.slice(0,2).join(r),l=[o||n.slice(2).join(r)]);let c=o||l.join(r);return i(c)?{name:a,entry:c}:{name:a,version:c||s}}else if(n.length===1){const[a]=n;return o&&i(o)?{name:a,entry:o}:{name:a,version:o||s}}else throw`Invalid entry value: ${e}`},An=function(...e){return e.length?e.reduce((t,r)=>r?t?`${t}${y.SEPARATOR}${r}`:r:t,""):""},Pt=function(e,t="",r=!1){try{const n=r?".js":"";return`${t}${e.replace(new RegExp(`${y.NameTransformSymbol.AT}`,"g"),y.NameTransformMap[y.NameTransformSymbol.AT]).replace(new RegExp(`${y.NameTransformSymbol.HYPHEN}`,"g"),y.NameTransformMap[y.NameTransformSymbol.HYPHEN]).replace(new RegExp(`${y.NameTransformSymbol.SLASH}`,"g"),y.NameTransformMap[y.NameTransformSymbol.SLASH])}${n}`}catch(n){throw n}},$n=function(e,t,r){try{let n=e;if(t){if(!n.startsWith(t))return n;n=n.replace(new RegExp(t,"g"),"")}return n=n.replace(new RegExp(`${y.NameTransformMap[y.NameTransformSymbol.AT]}`,"g"),y.EncodedNameTransformMap[y.NameTransformMap[y.NameTransformSymbol.AT]]).replace(new RegExp(`${y.NameTransformMap[y.NameTransformSymbol.SLASH]}`,"g"),y.EncodedNameTransformMap[y.NameTransformMap[y.NameTransformSymbol.SLASH]]).replace(new RegExp(`${y.NameTransformMap[y.NameTransformSymbol.HYPHEN]}`,"g"),y.EncodedNameTransformMap[y.NameTransformMap[y.NameTransformSymbol.HYPHEN]]),r&&(n=n.replace(".js","")),n}catch(n){throw n}},kn=(e,t)=>{if(!e)return"";let r=e;return r==="."&&(r="default_export"),r.startsWith("./")&&(r=r.replace("./","")),Pt(r,"__federation_expose_",t)},wn=(e,t)=>e?Pt(e,"__federation_shared_",t):"",Fn=(e,t)=>{if("getPublicPath"in e){let r;return e.getPublicPath.startsWith("function")?r=new Function("return "+e.getPublicPath)()():r=new Function(e.getPublicPath)(),`${r}${t}`}else return"publicPath"in e?!_t.isBrowserEnv()&&!_t.isReactNativeEnv()&&"ssrPublicPath"in e&&typeof e.ssrPublicPath=="string"?`${e.ssrPublicPath}${t}`:`${e.publicPath}${t}`:(console.warn("Cannot get resource URL. If in debug mode, please ignore.",e,t),"")},Ln=(e,t)=>{e||yr(t)},yr=e=>{throw new Error(`${Er}: ${e}`)},Dn=e=>{console.warn(`${Er}: ${e}`)};function Hn(e){try{return JSON.stringify(e,null,2)}catch{return""}}const Cn=/^([\d^=v<>~]|[*xX]$)/;function qn(e){return Cn.test(e)}H.assert=Ln;H.composeKeyWithSeparator=An;H.decodeName=$n;H.encodeName=Pt;H.error=yr;H.generateExposeFilename=kn;H.generateShareFilename=wn;H.getResourceUrl=Fn;H.isRequiredVersion=qn;H.parseEntry=On;H.safeToString=Hn;H.warn=Dn;var fe={};const ye=M,ee=(e,t)=>{if(!e)return t;const n=(o=>{if(o===".")return"";if(o.startsWith("./"))return o.replace("./","");if(o.startsWith("/")){const s=o.slice(1);return s.endsWith("/")?s.slice(0,-1):s}return o})(e);return n?n.endsWith("/")?`${n}${t}`:`${n}/${t}`:t};function Sr(e){return e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")}function Un(e,t={}){const{remotes:r={},overrides:n={},version:o}=t;let s;const i=()=>"publicPath"in e.metaData?(e.metaData.publicPath==="auto"||e.metaData.publicPath==="")&&o?Sr(o):e.metaData.publicPath:e.metaData.getPublicPath,a=Object.keys(n);let l={};Object.keys(r).length||(l=e.remotes?.reduce((p,N)=>{let k;const O=N.federationContainerName;return a.includes(O)?k=n[O]:"version"in N?k=N.version:k=N.entry,p[O]={matchedVersion:k},p},{})||{}),Object.keys(r).forEach(p=>l[p]={matchedVersion:a.includes(p)?n[p]:r[p]});const{remoteEntry:{path:c,name:u,type:f},types:d={path:"",name:"",zip:"",api:""},buildInfo:{buildVersion:h},globalName:m,ssrRemoteEntry:_}=e.metaData,{exposes:E}=e;let g={version:o||"",buildVersion:h,globalName:m,remoteEntry:ee(c,u),remoteEntryType:f,remoteTypes:ee(d.path,d.name),remoteTypesZip:d.zip||"",remoteTypesAPI:d.api||"",remotesInfo:l,shared:e?.shared.map(p=>({assets:p.assets,sharedName:p.name,version:p.version,usedExports:p.referenceExports||[]})),modules:E?.map(p=>({moduleName:p.name,modulePath:p.path,assets:p.assets}))};if(e.metaData?.prefetchInterface){const p=e.metaData.prefetchInterface;g={...g,prefetchInterface:p}}if(e.metaData?.prefetchEntry){const{path:p,name:N,type:k}=e.metaData.prefetchEntry;g={...g,prefetchEntry:ee(p,N),prefetchEntryType:k}}if("publicPath"in e.metaData?(s={...g,publicPath:i()},typeof e.metaData.ssrPublicPath=="string"&&(s.ssrPublicPath=e.metaData.ssrPublicPath)):s={...g,getPublicPath:i()},_){const p=ee(_.path,_.name);s.ssrRemoteEntry=p,s.ssrRemoteEntryType=_.type||"commonjs-module"}return s}function Gn(e){return!!("remoteEntry"in e&&e.remoteEntry.includes(ye.MANIFEST_EXT))}function Wn(e){if(!e)return{statsFileName:ye.StatsFileName,manifestFileName:ye.ManifestFileName};let t=typeof e=="boolean"?"":e.filePath||"",r=typeof e=="boolean"?"":e.fileName||"";const n=".json",o=a=>a.endsWith(n)?a:`${a}${n}`,s=(a,l)=>a.replace(n,`${l}${n}`),i=r?o(r):ye.ManifestFileName;return{statsFileName:ee(t,r?s(i,"-stats"):ye.StatsFileName),manifestFileName:ee(t,i)}}fe.generateSnapshotFromManifest=Un;fe.getManifestFileName=Wn;fe.inferAutoPublicPath=Sr;fe.isManifestProvider=Gn;fe.simpleJoinRemoteEntry=ee;var de={};const Lt=Z,br="[ Module Federation ]",ge=console,jn=["logger.ts","logger.js","captureStackTrace","Logger.emit","Logger.log","Logger.info","Logger.warn","Logger.error","Logger.debug"];function Bn(){try{const e=new Error().stack;if(!e)return;const[,...t]=e.split(`
|
|
2
|
-
`),r=t.filter(n=>!jn.some(o=>n.includes(o)));return r.length?`Stack trace:
|
|
3
|
-
${r.slice(0,5).join(`
|
|
4
|
-
`)}`:void 0}catch{return}}var Rr=class{constructor(e,t=ge){this.prefix=e,this.delegate=t??ge}setPrefix(e){this.prefix=e}setDelegate(e){this.delegate=e??ge}emit(e,t){const r=this.delegate,n=Lt.isDebugMode()?Bn():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=ge[i];if(typeof a=="function"){a.call(ge,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){Lt.isDebugMode()&&this.emit("debug",e)}};function Tr(e){return new Rr(e)}function Ir(e){const t=new Rr(e);return Object.defineProperty(t,"__mf_infrastructure_logger__",{value:!0,enumerable:!1,configurable:!1}),t}function Vn(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 xn=Tr(br),Xn=Ir(br);de.bindLoggerToCompiler=Vn;de.createInfrastructureLogger=Ir;de.createLogger=Tr;de.infrastructureLogger=Xn;de.logger=xn;var he={};const Kn=H;async function vt(e,t){try{return await e()}catch(r){!t&&Kn.warn(r);return}}function je(e,t){const r=/^(https?:)?\/\//i;return e.replace(r,"").replace(/\/$/,"")===t.replace(r,"").replace(/\/$/,"")}function Mr(e){let t=null,r=!0,n=2e4,o;const s=document.getElementsByTagName("script");for(let c=0;c<s.length;c++){const u=s[c],f=u.getAttribute("src");if(f&&je(f,e.url)){t=u,r=!1;break}}if(!t){const c=e.attrs;t=document.createElement("script"),t.type=c?.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),c&&!u&&Object.keys(c).forEach(f=>{t&&(f==="async"||f==="defer"?t[f]=c[f]:t.getAttribute(f)||t.setAttribute(f,c[f]))})}let i=null;const a=typeof window<"u"?c=>{if(c.filename&&je(c.filename,e.url)){const u=new Error(`ScriptExecutionError: Script "${e.url}" loaded but threw a runtime error during execution: ${c.message} (${c.filename}:${c.lineno}:${c.colno})`);u.name="ScriptExecutionError",i=u}}:null;a&&window.addEventListener("error",a);const l=async(c,u)=>{clearTimeout(o),a&&window.removeEventListener("error",a);const f=()=>{if(u?.type==="error"){const d=new Error(u?.isTimeout?`ScriptNetworkError: Script "${e.url}" timed out.`:`ScriptNetworkError: Failed to load script "${e.url}" - the script URL is unreachable or the server returned an error (network failure, 404, CORS, etc.)`);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,vt(()=>{const{needDeleteScript:d=!0}=e;d&&t?.parentNode&&t.parentNode.removeChild(t)}),c&&typeof c=="function")){const d=c(u);if(d instanceof Promise){const h=await d;return f(),h}return f(),d}f()};return t.onerror=l.bind(null,t.onerror),t.onload=l.bind(null,t.onload),o=setTimeout(()=>{l(null,{type:"error",isTimeout:!0})},n),{script:t,needAttach:r}}function Yn(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"),l=i.getAttribute("rel");if(a&&je(a,e.url)&&l===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,vt(()=>{const{needDeleteLink:l=!0}=e;l&&t?.parentNode&&t.parentNode.removeChild(t)}),s)){const l=s(i);return a(),l}a()};return t.onerror=o.bind(null,t.onerror),t.onload=o.bind(null,t.onload),{link:t,needAttach:r}}function zn(e,t){const{attrs:r={},createScriptHook:n}=t;return new Promise((o,s)=>{const{script:i,needAttach:a}=Mr({url:e,cb:o,onErrorCallback:s,attrs:{fetchpriority:"high",...r},createScriptHook:n,needDeleteScript:!0});a&&document.head.appendChild(i)})}he.createLink=Yn;he.createScript=Mr;he.isStaticResourcesEqual=je;he.loadScript=zn;he.safeWrapper=vt;var Ot={};const Jn=(e,t,r,n)=>{t(new Error("createScriptNode is disabled in non-Node.js environment"))},Zn=(e,t)=>{throw new Error("loadScriptNode is disabled in non-Node.js environment")};Ot.createScriptNode=Jn;Ot.loadScriptNode=Zn;var Nr={};function Qn(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}`)}}Nr.normalizeOptions=Qn;var Pr={};const eo=e=>e;Pr.createModuleFederationConfig=eo;(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=M,r=ur,n=fr,o=dr,s=hr,i=mr,a=_r,l=Z,c=H,u=fe,f=de,d=he,h=Ot,m=Nr,_=Pr;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=c.assert,e.bindLoggerToCompiler=f.bindLoggerToCompiler,e.composeKeyWithSeparator=c.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=_.createModuleFederationConfig,e.createScript=d.createScript,e.createScriptNode=h.createScriptNode,e.decodeName=c.decodeName,e.encodeName=c.encodeName,e.error=c.error,e.generateExposeFilename=c.generateExposeFilename,e.generateShareFilename=c.generateShareFilename,e.generateSnapshotFromManifest=u.generateSnapshotFromManifest,e.getManifestFileName=u.getManifestFileName,e.getProcessEnv=l.getProcessEnv,e.getResourceUrl=c.getResourceUrl,e.inferAutoPublicPath=u.inferAutoPublicPath,e.infrastructureLogger=f.infrastructureLogger,e.isBrowserEnv=l.isBrowserEnv,e.isBrowserEnvValue=l.isBrowserEnvValue,e.isDebugMode=l.isDebugMode,e.isManifestProvider=u.isManifestProvider,e.isReactNativeEnv=l.isReactNativeEnv,e.isRequiredVersion=c.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=c.parseEntry,Object.defineProperty(e,"provideSharedPlugin",{enumerable:!0,get:function(){return a.ProvideSharedPlugin_exports}}),e.safeToString=c.safeToString,e.safeWrapper=d.safeWrapper,Object.defineProperty(e,"sharePlugin",{enumerable:!0,get:function(){return s.SharePlugin_exports}}),e.simpleJoinRemoteEntry=u.simpleJoinRemoteEntry,e.warn=c.warn})(D);var vr={},At={};const to=e=>`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`,ro=(e,t,r,n)=>{const o=[`${[t[e]]} #${e}`];return r&&o.push(`args: ${JSON.stringify(r)}`),o.push(to(e)),n&&o.push(`Original Error Message:
|
|
5
|
-
${n}`),o.join(`
|
|
6
|
-
`)};At.getShortErrorMsg=ro;(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=At;function r(n,o,s,i,a,l){return i(t.getShortErrorMsg(n,o,s,a))}e.logAndReport=r})(vr);let no=D,oo=vr;const te="[ Federation Runtime ]",pt=(0,no.createLogger)(te);function so(e,t,r,n,o){e||(r!==void 0?gt(t,r,n,void 0,o):gt(t))}function gt(e,t,r,n,o){if(t!==void 0)return(0,oo.logAndReport)(e,t,r??{},i=>{throw new Error(`${te}: ${i}`)},n,o);const s=e;throw s instanceof Error?(s.message.startsWith(te)||(s.message=`${te}: ${s.message}`),s):new Error(`${te}: ${s}`)}function io(e){e instanceof Error&&(e.message.startsWith(te)||(e.message=`${te}: ${e.message}`)),pt.warn(e)}I.assert=so;I.error=gt;I.logger=pt;I.warn=io;var R={};const ao=I;let Dt=D;function lo(e,t){return e.findIndex(r=>r===t)===-1&&e.push(t),e}function co(e){return"version"in e&&e.version?`${e.name}:${e.version}`:"entry"in e&&e.entry?`${e.name}:${e.entry}`:`${e.name}`}function uo(e){return typeof e.entry<"u"}function fo(e){return!e.entry.includes(".json")}async function ho(e,t){try{return await e()}catch(r){!t&&ao.warn(r);return}}function mo(e){return e&&typeof e=="object"}const Or=Object.prototype.toString;function _o(e){return Or.call(e)==="[object Object]"}function po(e,t){const r=/^(https?:)?\/\//i;return e.replace(r,"").replace(/\/$/,"")===t.replace(r,"").replace(/\/$/,"")}function go(e){return Array.isArray(e)?e:[e]}function Eo(e){const t={url:"",type:"global",globalName:""};return Dt.isBrowserEnvValue||(0,Dt.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 yo=(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=lo;R.arrayOptions=go;R.getFMId=co;R.getRemoteEntryInfoFromSnapshot=Eo;R.isObject=mo;R.isPlainObject=_o;R.isPureRemoteEntry=fo;R.isRemoteInfoWithEntry=uo;R.isStaticResourcesEqual=po;R.objectToString=Or;R.processModuleAlias=yo;R.safeWrapper=ho;var S={};const Ar=I,Et=R;let So=D;const v=typeof globalThis=="object"?globalThis:window,C=(()=>{try{return document.defaultView}catch{return v}})(),bo=C;function qe(e,t,r){Object.defineProperty(e,t,{value:r,configurable:!1,writable:!0})}function Ue(e,t){return Object.hasOwnProperty.call(e,t)}Ue(v,"__GLOBAL_LOADING_REMOTE_ENTRY__")||qe(v,"__GLOBAL_LOADING_REMOTE_ENTRY__",{});const yt=v.__GLOBAL_LOADING_REMOTE_ENTRY__;function $r(e){Ue(e,"__VMOK__")&&!Ue(e,"__FEDERATION__")&&qe(e,"__FEDERATION__",e.__VMOK__),Ue(e,"__FEDERATION__")||(qe(e,"__FEDERATION__",{__GLOBAL_PLUGIN__:[],__INSTANCES__:[],moduleInfo:{},__SHARE__:{},__MANIFEST_LOADING__:{},__PRELOADED_MAP__:new Map}),qe(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}$r(v);$r(C);function Ro(){v.__FEDERATION__.__GLOBAL_PLUGIN__=[],v.__FEDERATION__.__INSTANCES__=[],v.__FEDERATION__.moduleInfo={},v.__FEDERATION__.__SHARE__={},v.__FEDERATION__.__MANIFEST_LOADING__={},Object.keys(yt).forEach(e=>{delete yt[e]})}function To(e){v.__FEDERATION__.__INSTANCES__.push(e)}function Io(){return v.__FEDERATION__.__DEBUG_CONSTRUCTOR__}function Mo(e,t=(0,So.isDebugMode)()){t&&(v.__FEDERATION__.__DEBUG_CONSTRUCTOR__=e,v.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__="2.3.3")}function St(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 Ar.error(`getInfoWithoutType: "key" must be a string, got ${typeof t} (${JSON.stringify(t)}).`)}const No=()=>C.__FEDERATION__.moduleInfo,kr=(e,t)=>{const r=St(t,Et.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=Et.getFMId(o),i=St(C.__FEDERATION__.moduleInfo,s).value;if(i?.version===n)return i}},Po=e=>kr(e,C.__FEDERATION__.moduleInfo),vo=(e,t)=>{const r=Et.getFMId(e);return C.__FEDERATION__.moduleInfo[r]=t,C.__FEDERATION__.moduleInfo},Oo=e=>(C.__FEDERATION__.moduleInfo={...C.__FEDERATION__.moduleInfo,...e},()=>{const t=Object.keys(e);for(const r of t)delete C.__FEDERATION__.moduleInfo[r]}),Ao=(e,t)=>{const r=t||`__FEDERATION_${e}:custom__`;return{remoteEntryKey:r,entryExports:v[r]}},$o=e=>{const{__GLOBAL_PLUGIN__:t}=C.__FEDERATION__;e.forEach(r=>{t.findIndex(n=>n.name===r.name)===-1?t.push(r):Ar.warn(`The plugin ${r.name} has been registered.`)})},ko=()=>C.__FEDERATION__.__GLOBAL_PLUGIN__,wo=e=>v.__FEDERATION__.__PRELOADED_MAP__.get(e),Fo=e=>v.__FEDERATION__.__PRELOADED_MAP__.set(e,!0);S.CurrentGlobal=v;S.Global=bo;S.addGlobalSnapshot=Oo;S.getGlobalFederationConstructor=Io;S.getGlobalHostPlugins=ko;S.getGlobalSnapshot=No;S.getGlobalSnapshotInfoByModuleInfo=Po;S.getInfoWithoutType=St;S.getPreloaded=wo;S.getRemoteEntryExports=Ao;S.getTargetSnapshotInfoByModuleInfo=kr;S.globalLoading=yt;S.nativeGlobal=C;S.registerGlobalPlugins=$o;S.resetFederationGlobalInfo=Ro;S.setGlobalFederationConstructor=Mo;S.setGlobalFederationInstance=To;S.setGlobalSnapshotInfoByModuleInfo=vo;S.setPreloaded=Fo;var $t={},oe={},W={};const Ht="[0-9A-Za-z-]+",kt=`(?:\\+(${Ht}(?:\\.${Ht})*))`,Te="0|[1-9]\\d*",Ge="[0-9]+",wr="\\d*[a-zA-Z-][a-zA-Z0-9-]*",Ct=`(?:${Ge}|${wr})`,Lo=`(?:-?(${Ct}(?:\\.${Ct})*))`,qt=`(?:${Te}|${wr})`,Fr=`(?:-(${qt}(?:\\.${qt})*))`,Qe=`${Te}|x|X|\\*`,ue=`[v=\\s]*(${Qe})(?:\\.(${Qe})(?:\\.(${Qe})(?:${Fr})?${kt}?)?)?`,Do=`^\\s*(${ue})\\s+-\\s+(${ue})\\s*$`,Ho=`[v=\\s]*${`(${Ge})\\.(${Ge})\\.(${Ge})`}${Lo}?${kt}?`,wt="((?:<|>)?=?)",Co=`(\\s*)${wt}\\s*(${Ho}|${ue})`,Lr="(?:~>?)",qo=`(\\s*)${Lr}\\s+`,Dr="(?:\\^)",Uo=`(\\s*)${Dr}\\s+`,Go="(<|>)?=?\\s*\\*",Wo=`^${Dr}${ue}$`,jo=`v?${`(${Te})\\.(${Te})\\.(${Te})`}${Fr}?${kt}?`,Bo=`^${Lr}${ue}$`,Vo=`^${wt}\\s*${ue}$`,xo=`^${wt}\\s*(${jo})$|^$`,Xo="^\\s*>=\\s*0.0.0\\s*$";W.caret=Wo;W.caretTrim=Uo;W.comparator=xo;W.comparatorTrim=Co;W.gte0=Xo;W.hyphenRange=Do;W.star=Go;W.tilde=Bo;W.tildeTrim=qo;W.xRange=Vo;const Ko=W;function Hr(e){return new RegExp(e)}function Yo(e){return!e||e.toLowerCase()==="x"||e==="*"}function zo(...e){return t=>e.reduce((r,n)=>n(r),t)}function Jo(e){return e.match(Hr(Ko.comparator))}function Zo(e,t,r,n){const o=`${e}.${t}.${r}`;return n?`${o}-${n}`:o}oe.combineVersion=Zo;oe.extractComparator=Jo;oe.isXVersion=Yo;oe.parseRegex=Hr;oe.pipe=zo;var x={};const Y=W,b=oe;function Qo(e){return e.replace(b.parseRegex(Y.hyphenRange),(t,r,n,o,s,i,a,l,c,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(c)?l="":b.isXVersion(u)?l=`<${Number(c)+1}.0.0-0`:b.isXVersion(f)?l=`<${c}.${Number(u)+1}.0-0`:d?l=`<=${c}.${u}.${f}-${d}`:l=`<=${l}`,`${r} ${l}`.trim()))}function es(e){return e.replace(b.parseRegex(Y.comparatorTrim),"$1$2$3")}function ts(e){return e.replace(b.parseRegex(Y.tildeTrim),"$1~")}function rs(e){return e.replace(b.parseRegex(Y.caretTrim),"$1^")}function ns(e){return e.trim().split(/\s+/).map(t=>t.replace(b.parseRegex(Y.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 os(e){return e.trim().split(/\s+/).map(t=>t.replace(b.parseRegex(Y.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 ss(e){return e.split(/\s+/).map(t=>t.trim().replace(b.parseRegex(Y.xRange),(r,n,o,s,i,a)=>{const l=b.isXVersion(o),c=l||b.isXVersion(s),u=c||b.isXVersion(i);return n==="="&&u&&(n=""),a="",l?n===">"||n==="<"?"<0.0.0-0":"*":n&&u?(c&&(s=0),i=0,n===">"?(n=">=",c?(o=Number(o)+1,s=0,i=0):(s=Number(s)+1,i=0)):n==="<="&&(n="<",c?o=Number(o)+1:s=Number(s)+1),n==="<"&&(a="-0"),`${n+o}.${s}.${i}${a}`):c?`>=${o}.0.0${a} <${Number(o)+1}.0.0-0`:u?`>=${o}.${s}.0${a} <${o}.${Number(s)+1}.0-0`:r})).join(" ")}function is(e){return e.trim().replace(b.parseRegex(Y.star),"")}function as(e){return e.trim().replace(b.parseRegex(Y.gte0),"")}x.parseCaretTrim=rs;x.parseCarets=ns;x.parseComparatorTrim=es;x.parseGTE0=as;x.parseHyphen=Qo;x.parseStar=is;x.parseTildeTrim=ts;x.parseTildes=os;x.parseXRanges=ss;var Cr={};function We(e,t){return e=Number(e)||e,t=Number(t)||t,e>t?1:e===t?0:-1}function ls(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?We(i,a):-1:1}return 0}function we(e,t){return We(e.major,t.major)||We(e.minor,t.minor)||We(e.patch,t.patch)||ls(e,t)}function et(e,t){return e.version===t.version}function cs(e,t){switch(e.operator){case"":case"=":return et(e,t);case">":return we(e,t)<0;case">=":return et(e,t)||we(e,t)<0;case"<":return we(e,t)>0;case"<=":return et(e,t)||we(e,t)>0;case void 0:return!0;default:return!1}}Cr.compare=cs;const le=oe,K=x,us=Cr;function fs(e){return le.pipe(K.parseCarets,K.parseTildes,K.parseXRanges,K.parseStar)(e)}function ds(e){return le.pipe(K.parseHyphen,K.parseComparatorTrim,K.parseTildeTrim,K.parseCaretTrim)(e.trim()).split(/\s+/).join(" ")}function hs(e,t){if(!e)return!1;const r=le.extractComparator(e);if(!r)return!1;const[,n,,o,s,i,a]=r,l={operator:n,version:le.combineVersion(o,s,i,a),major:o,minor:s,patch:i,preRelease:a?.split(".")},c=t.split("||");for(const u of c){const f=u.trim();if(!f||f==="*"||f==="x")return!0;try{const d=ds(f);if(!d.trim())return!0;const h=d.split(" ").map(E=>fs(E)).join(" ");if(!h.trim())return!0;const m=h.split(/\s+/).map(E=>K.parseGTE0(E)).filter(Boolean);if(m.length===0)continue;let _=!0;for(const E of m){const g=le.extractComparator(E);if(!g){_=!1;break}const[,p,,N,k,O,T]=g;if(!us.compare({operator:p,version:le.combineVersion(N,k,O,T),major:N,minor:k,patch:O,preRelease:T?.split(".")},l)){_=!1;break}}if(_)return!0}catch(d){console.error(`[semver] Error processing range part "${f}":`,d);continue}}return!1}$t.satisfy=hs;var q={},se={};const ms="default",_s="global";se.DEFAULT_REMOTE_TYPE=_s;se.DEFAULT_SCOPE=ms;const Be=I,qr=R,Ur=S,ps=se,Se=$t;let bt=D;function gs(e,t,r,n){let o;return"get"in e?o=e.get:"lib"in e?o=()=>Promise.resolve(e.lib):o=()=>Promise.resolve(()=>{Be.error(`Cannot get shared "${r}" from "${t}": neither "get" nor "lib" is provided in the share config.`)}),e.shareConfig?.eager&&e.treeShaking?.mode&&Be.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??bt.TreeShakingStatus.UNKNOWN,useIn:[]}:void 0}}function Es(e,t){const r=t.shared||{},n=t.name,o=Object.keys(r).reduce((i,a)=>{const l=qr.arrayOptions(r[a]);return i[a]=i[a]||[],l.forEach(c=>{i[a].push(gs(c,n,a,t.shareStrategy))}),i},{}),s={...e.shared};return Object.keys(o).forEach(i=>{s[i]?o[i].forEach(a=>{s[i].find(l=>l.version===a.version)||s[i].push(a)}):s[i]=o[i]}),{allShareInfos:s,newShareInfos:o}}function Ie(e,t){if(!e)return!1;const{status:r,mode:n}=e;return r===bt.TreeShakingStatus.NO_USE?!1:r===bt.TreeShakingStatus.CALCULATED?!0:n==="runtime-infer"?t?Ss(e,t):!0:!1}function re(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!!Se.satisfy(r(e),`<=${r(t)}`)}const Me=(e,t)=>{const r=t||function(n,o){return re(n,o)};return Object.keys(e).reduce((n,o)=>!n||r(n,o)||n==="0"?o:n,0)},Ve=e=>!!e.loaded||typeof e.lib=="function",ys=e=>!!e.loading,Ss=(e,t)=>{if(!e||!t)return!1;const{usedExports:r}=e;return r?!!t.every(n=>r.includes(n)):!1};function bs(e,t,r,n){const o=e[t][r];let s="",i=Ie(n);const a=function(l,c){return i?o[l].treeShaking?o[c].treeShaking?!Ve(o[l].treeShaking)&&re(l,c):!1:!0:!Ve(o[l])&&re(l,c)};if(i){if(s=Me(e[t][r],a),s)return{version:s,useTreesShaking:i};i=!1}return{version:Me(e[t][r],a),useTreesShaking:i}}const ie=e=>Ve(e)||ys(e);function Rs(e,t,r,n){const o=e[t][r];let s="",i=Ie(n);const a=function(l,c){if(i){if(!o[l].treeShaking)return!0;if(!o[c].treeShaking)return!1;if(ie(o[c].treeShaking))return ie(o[l].treeShaking)?!!re(l,c):!0;if(ie(o[l].treeShaking))return!1}return ie(o[c])?ie(o[l])?!!re(l,c):!0:ie(o[l])?!1:re(l,c)};if(i){if(s=Me(e[t][r],a),s)return{version:s,useTreesShaking:i};i=!1}return{version:Me(e[t][r],a),useTreesShaking:i}}function Ts(e){return e==="loaded-first"?Rs:bs}function Is(e,t,r,n){if(!e)return;const{shareConfig:o,scope:s=ps.DEFAULT_SCOPE,strategy:i,treeShaking:a}=r,l=Array.isArray(s)?s:[s];for(const c of l)if(o&&e[c]&&e[c][t]){const{requiredVersion:u}=o,{version:f,useTreesShaking:d}=Ts(i)(e,c,t,a),h=()=>{const _=e[c][t][f];if(o.singleton){if(typeof u=="string"&&!Se.satisfy(f,u)){const E=`Version ${f} from ${f&&_.from} of shared singleton module ${t} does not satisfy the requirement of ${r.from} which needs ${u})`;o.strictVersion?Be.error(E):Be.warn(E)}return{shared:_,useTreesShaking:d}}else{if(u===!1||u==="*")return{shared:_,useTreesShaking:d};if(Se.satisfy(f,u))return{shared:_,useTreesShaking:d};const E=Ie(a);if(E){for(const[g,p]of Object.entries(e[c][t]))if(Ie(p.treeShaking,a?.usedExports)&&Se.satisfy(g,u))return{shared:p,useTreesShaking:E}}for(const[g,p]of Object.entries(e[c][t]))if(Se.satisfy(g,u))return{shared:p,useTreesShaking:!1}}},m={shareScopeMap:e,scope:c,pkgName:t,version:f,GlobalFederation:Ur.Global.__FEDERATION__,shareInfo:r,resolver:h};return(n.emit(m)||m).resolver()}}function Ms(){return Ur.Global.__FEDERATION__.__SHARE__}function Ns(e){const{pkgName:t,extraOptions:r,shareInfos:n}=e,o=l=>{if(!l)return;const c={};return l.forEach(f=>{c[f.version]=f}),c[Me(c,function(f,d){return!Ve(c[f])&&re(f,d)})]},s=r?.resolver??o,i=l=>l!==null&&typeof l=="object"&&!Array.isArray(l),a=(...l)=>{const c={};for(const u of l)if(u)for(const[f,d]of Object.entries(u)){const h=c[f];i(h)&&i(d)?c[f]=a(h,d):d!==void 0&&(c[f]=d)}return c};return a(s(n[t]),r?.customShareInfo)}const Ps=(e,t)=>{e.useIn||(e.useIn=[]),qr.addUniqueItem(e.useIn,t)};function vs(e,t){return t&&e.treeShaking?e.treeShaking:e}q.addUseIn=Ps;q.directShare=vs;q.formatShareConfigs=Es;q.getGlobalShareScope=Ms;q.getRegisteredShare=Is;q.getTargetSharedOptions=Ns;q.shouldUseTreeShaking=Ie;var me={};function Os(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 As(e,t){for(const r of e)if(t===r.name||r.alias&&t===r.alias)return r}me.matchRemote=As;me.matchRemoteWithNameAndExpose=Os;var X={},z={},$={};const $s="RUNTIME-001",ks="RUNTIME-002",ws="RUNTIME-003",Fs="RUNTIME-004",Ls="RUNTIME-005",Ds="RUNTIME-006",Hs="RUNTIME-007",Cs="RUNTIME-008",qs="RUNTIME-009",Us="RUNTIME-010",Gs="RUNTIME-011",Ws="RUNTIME-012",js="TYPE-001",Bs="BUILD-001",Vs="BUILD-002";$.BUILD_001=Bs;$.BUILD_002=Vs;$.RUNTIME_001=$s;$.RUNTIME_002=ks;$.RUNTIME_003=ws;$.RUNTIME_004=Fs;$.RUNTIME_005=Ls;$.RUNTIME_006=Ds;$.RUNTIME_007=Hs;$.RUNTIME_008=Cs;$.RUNTIME_009=qs;$.RUNTIME_010=Us;$.RUNTIME_011=Gs;$.RUNTIME_012=Ws;$.TYPE_001=js;var ve={};const F=$,Gr={[F.RUNTIME_001]:"Failed to get remoteEntry exports.",[F.RUNTIME_002]:'The remote entry interface does not contain "init"',[F.RUNTIME_003]:"Failed to get manifest.",[F.RUNTIME_004]:"Failed to locate remote.",[F.RUNTIME_005]:"Invalid loadShareSync function call from bundler runtime",[F.RUNTIME_006]:"Invalid loadShareSync function call from runtime",[F.RUNTIME_007]:"Failed to get remote snapshot.",[F.RUNTIME_008]:"Failed to load script resources.",[F.RUNTIME_009]:"Please call createInstance first.",[F.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.',[F.RUNTIME_011]:"The remoteEntry URL is missing from the remote snapshot.",[F.RUNTIME_012]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.'},Wr={[F.TYPE_001]:"Failed to generate type declaration. Execute the below cmd to reproduce and fix the error."},jr={[F.BUILD_001]:"Failed to find expose module.",[F.BUILD_002]:"PublicPath is required in prod mode."},xs={...Gr,...Wr,...jr};ve.buildDescMap=jr;ve.errorDescMap=xs;ve.runtimeDescMap=Gr;ve.typeDescMap=Wr;(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=$,r=At,n=ve;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.RUNTIME_012=t.RUNTIME_012,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})(z);const Xe=I,ce=S,Ut=se;let Br=D,Ne=z;const Vr=".then(callbacks[0]).catch(callbacks[1])";async function Xs({entry:e,remoteEntryExports:t}){return new Promise((r,n)=>{try{t?r(t):typeof FEDERATION_ALLOW_NEW_FUNCTION<"u"?new Function("callbacks",`import("${e}")${Vr}`)([r,n]):import(e).then(r).catch(n)}catch(o){Xe.error(`Failed to load ESM entry from "${e}". ${o instanceof Error?o.message:String(o)}`)}})}async function Ks({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}")${Vr}`)([r,n])}catch(o){Xe.error(`Failed to load SystemJS entry from "${e}". ${o instanceof Error?o.message:String(o)}`)}})}function Ys(e,t,r){const{remoteEntryKey:n,entryExports:o}=ce.getRemoteEntryExports(e,t);return o||Xe.error(Ne.RUNTIME_001,Ne.runtimeDescMap,{remoteName:e,remoteEntryUrl:r,remoteEntryKey:n}),o}async function zs({name:e,globalName:t,entry:r,remoteInfo:n,loaderHook:o,getEntryUrl:s}){const{entryExports:i}=ce.getRemoteEntryExports(e,t);if(i)return i;const a=s?s(r):r;return(0,Br.loadScript)(a,{attrs:{},createScriptHook:(l,c)=>{const u=o.lifecycle.createScript.emit({url:l,attrs:c,remoteInfo:n});if(u&&(u instanceof HTMLScriptElement||"script"in u||"timeout"in u))return u}}).then(()=>Ys(e,t,r),l=>{const c=l instanceof Error?l.message:String(l);Xe.error(Ne.RUNTIME_008,Ne.runtimeDescMap,{remoteName:e,resourceUrl:a},c)})}async function Js({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 Xs({entry:o,remoteEntryExports:t});case"system":return Ks({entry:o,remoteEntryExports:t});default:return zs({entry:o,globalName:s,name:i,remoteInfo:e,loaderHook:r,getEntryUrl:n})}}function Rt(e){const{entry:t,name:r}=e;return(0,Br.composeKeyWithSeparator)(r,t)}async function xr(e){const{origin:t,remoteEntryExports:r,remoteInfo:n,getEntryUrl:o,_inErrorHandling:s=!1}=e,i=Rt(n);if(r)return r;if(!ce.globalLoading[i]){const a=t.remoteHandler.hooks.lifecycle.loadEntry,l=t.loaderHook;ce.globalLoading[i]=a.emit({loaderHook:l,remoteInfo:n,remoteEntryExports:r}).then(c=>c||Js({remoteInfo:n,remoteEntryExports:r,loaderHook:l,getEntryUrl:o})).catch(async c=>{const u=Rt(n),f=c instanceof Error&&c.message.includes("ScriptExecutionError");if(c instanceof Error&&c.message.includes(Ne.RUNTIME_008)&&!f&&!s){const d=m=>xr({...m,_inErrorHandling:!0}),h=await t.loaderHook.lifecycle.loadEntryError.emit({getRemoteEntry:d,origin:t,remoteInfo:n,remoteEntryExports:r,globalLoading:ce.globalLoading,uniqueKey:u});if(h)return h}throw c})}return ce.globalLoading[i]}function Zs(e){return{...e,entry:"entry"in e?e.entry:"",type:e.type||Ut.DEFAULT_REMOTE_TYPE,entryGlobalName:e.entryGlobalName||e.name,shareScope:e.shareScope||Ut.DEFAULT_SCOPE}}X.getRemoteEntry=xr;X.getRemoteEntryUniqueKey=Rt;X.getRemoteInfo=Zs;var Xr={};function Qs(){return typeof FEDERATION_BUILD_IDENTIFIER<"u"?FEDERATION_BUILD_IDENTIFIER:""}Xr.getBuilderId=Qs;var Kr={};const ei=S;function ti(e,t){const r=ei.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}Kr.registerPlugins=ti;var Oe={};function ri(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 ni(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(ri)??[],shared:t}}}Oe.optionsToMFContext=ni;var Yr={},Q={};const oi=I,si=me,Gt=X;let be=D;function zr(e){return{resourceCategory:"sync",share:!0,depsRemote:!0,prefetchInterface:!1,...e}}function ii(e,t){return t.map(r=>{const n=si.matchRemote(e,r.nameOrAlias);return oi.assert(n,`Unable to preload ${r.nameOrAlias} as it is not included in ${!n&&(0,be.safeToString)({remoteInfo:n,remotes:e})}`),{remote:n,preloadConfig:zr(r)}})}function ai(e){return e?e.map(t=>t==="."?t:t.startsWith("./")?t.replace("./",""):t):[]}function li(e,t,r,n=!0){const{cssAssets:o,jsAssetsWithoutEntry:s,entryAssets:i}=r;if(t.options.inBrowser){if(i.forEach(a=>{const{moduleInfo:l}=a,c=t.moduleCache.get(e.name);c?Gt.getRemoteEntry({origin:t,remoteInfo:l,remoteEntryExports:c.remoteEntryExports}):Gt.getRemoteEntry({origin:t,remoteInfo:l,remoteEntryExports:void 0})}),n){const a={rel:"preload",as:"style"};o.forEach(l=>{const{link:c,needAttach:u}=(0,be.createLink)({url:l,cb:()=>{},attrs:a,createLinkHook:(f,d)=>{const h=t.loaderHook.lifecycle.createLink.emit({url:f,attrs:d,remoteInfo:e});if(h instanceof HTMLLinkElement)return h}});u&&document.head.appendChild(c)})}else{const a={rel:"stylesheet",type:"text/css"};o.forEach(l=>{const{link:c,needAttach:u}=(0,be.createLink)({url:l,cb:()=>{},attrs:a,createLinkHook:(f,d)=>{const h=t.loaderHook.lifecycle.createLink.emit({url:f,attrs:d,remoteInfo:e});if(h instanceof HTMLLinkElement)return h},needDeleteLink:!1});u&&document.head.appendChild(c)})}if(n){const a={rel:"preload",as:"script"};s.forEach(l=>{const{link:c,needAttach:u}=(0,be.createLink)({url:l,cb:()=>{},attrs:a,createLinkHook:(f,d)=>{const h=t.loaderHook.lifecycle.createLink.emit({url:f,attrs:d,remoteInfo:e});if(h instanceof HTMLLinkElement)return h}});u&&document.head.appendChild(c)})}else{const a={fetchpriority:"high",type:e?.type==="module"?"module":"text/javascript"};s.forEach(l=>{const{script:c,needAttach:u}=(0,be.createScript)({url:l,cb:()=>{},attrs:a,createScriptHook:(f,d)=>{const h=t.loaderHook.lifecycle.createScript.emit({url:f,attrs:d,remoteInfo:e});if(h instanceof HTMLScriptElement)return h},needDeleteScript:!0});u&&document.head.appendChild(c)})}}}Q.defaultPreloadArgs=zr;Q.formatPreloadArgs=ii;Q.normalizePreloadExposes=ai;Q.preloadAssets=li;const A=S,Wt=q,ci=me,ui=X,fi=Q,di={getRegisteredShare:Wt.getRegisteredShare,getGlobalShareScope:Wt.getGlobalShareScope},hi={Global:A.Global,nativeGlobal:A.nativeGlobal,resetFederationGlobalInfo:A.resetFederationGlobalInfo,setGlobalFederationInstance:A.setGlobalFederationInstance,getGlobalFederationConstructor:A.getGlobalFederationConstructor,setGlobalFederationConstructor:A.setGlobalFederationConstructor,getInfoWithoutType:A.getInfoWithoutType,getGlobalSnapshot:A.getGlobalSnapshot,getTargetSnapshotInfoByModuleInfo:A.getTargetSnapshotInfoByModuleInfo,getGlobalSnapshotInfoByModuleInfo:A.getGlobalSnapshotInfoByModuleInfo,setGlobalSnapshotInfoByModuleInfo:A.setGlobalSnapshotInfoByModuleInfo,addGlobalSnapshot:A.addGlobalSnapshot,getRemoteEntryExports:A.getRemoteEntryExports,registerGlobalPlugins:A.registerGlobalPlugins,getGlobalHostPlugins:A.getGlobalHostPlugins,getPreloaded:A.getPreloaded,setPreloaded:A.setPreloaded};var mi={global:hi,share:di,utils:{matchRemoteWithNameAndExpose:ci.matchRemoteWithNameAndExpose,preloadAssets:fi.preloadAssets,getRemoteInfo:ui.getRemoteInfo}};Yr.default=mi;var Ke={};const tt=I,jt=R,_i=X,pi=Oe;let gi=D,Bt=z;function Ei(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 yi=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 _i.getRemoteEntry({origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports});return tt.assert(e,`remoteEntryExports is undefined
|
|
7
|
-
${(0,gi.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}=Ei(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"&&tt.error(Bt.RUNTIME_002,Bt.runtimeDescMap,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName},void 0,pi.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)),tt.assert(i,`${jt.getFMId(this.remoteInfo)} remote don't export ${t}.`);const a=jt.processModuleAlias(this.remoteInfo.name,t),l=this.wraperFactory(i,a);return o?await l():l}wraperFactory(e,t){function r(n,o){n&&typeof n=="object"&&Object.isExtensible(n)&&!Object.getOwnPropertyDescriptor(n,Symbol.for("mf_module_id"))&&Object.defineProperty(n,Symbol.for("mf_module_id"),{value:o,enumerable:!1})}return e instanceof Promise?async()=>{const n=await e();return r(n,t),n}:()=>{const n=e();return r(n,t),n}}};Ke.Module=yi;var Jr={},_e={},Si=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()}};_e.SyncHook=Si;var Ae={};const bi=_e;var Ri=class extends bi.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)}};Ae.AsyncHook=Ri;var pe={};const rt=I,Zr=R,Ti=_e;function Qr(e,t){if(!Zr.isObject(t))return!1;if(e!==t){for(const r in e)if(!(r in t))return!1}return!0}var Ii=class extends Ti.SyncHook{constructor(e){super(),this.onerror=rt.error,this.type=e}emit(e){Zr.isObject(e)||rt.error(`The data for the "${this.type}" hook should be an object.`);for(const t of this.listeners)try{const r=t(e);if(Qr(e,r))e=r;else{this.onerror(`A plugin returned an unacceptable value for the "${this.type}" type.`);break}}catch(r){rt.warn(r),this.onerror(r)}return e}};pe.SyncWaterfallHook=Ii;pe.checkReturnData=Qr;var $e={};const nt=I,Mi=R,Ni=_e,Pi=pe;var vi=class extends Ni.SyncHook{constructor(e){super(),this.onerror=nt.error,this.type=e}emit(e){Mi.isObject(e)||nt.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=>(nt.warn(s),this.onerror(s),e),o=s=>{if(Pi.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)}};$e.AsyncWaterfallHook=vi;var ke={};const Fe=I,Oi=R;var Ai=class{constructor(e){this.registerPlugins={},this.lifecycle=e,this.lifecycleKeys=Object.keys(e)}applyPlugin(e,t){Fe.assert(Oi.isPlainObject(e),"Plugin configuration is invalid.");const r=e.name;Fe.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){Fe.assert(e,"A name is required.");const t=this.registerPlugins[e];Fe.assert(t,`The plugin "${e}" is not registered.`),Object.keys(t).forEach(r=>{r!=="name"&&this.lifecycle[r].remove(t[r])})}};ke.PluginSystem=Ai;var Ye={};const $i=I,Tt=R,ki=Q;let Vt=D,xt=z;function en(e,t){const r=Tt.getRemoteEntryInfoFromSnapshot(t);r.url||$i.error(xt.RUNTIME_011,xt.runtimeDescMap,{remoteName:e.name});let n=(0,Vt.getResourceUrl)(t,r.url);!Vt.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 wi(){return{name:"snapshot-plugin",async afterResolve(e){const{remote:t,pkgNameOrAlias:r,expose:n,origin:o,remoteInfo:s,id:i}=e;if(!Tt.isRemoteInfoWithEntry(t)||!Tt.isPureRemoteEntry(t)){const{remoteSnapshot:a,globalSnapshot:l}=await o.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:t,id:i});en(s,a);const c={remote:t,preloadConfig:{nameOrAlias:r,exposes:[n],resourceCategory:"sync",share:!1,depsRemote:!1}},u=await o.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin:o,preloadOptions:c,remoteInfo:s,remote:t,remoteSnapshot:a,globalSnapshot:l});return u&&ki.preloadAssets(s,o,u,!1),{...e,remoteSnapshot:a}}return e}}}Ye.assignRemoteInfo=en;Ye.snapshotPlugin=wi;var tn={};const Pe=R,It=S,Fi=q,Xt=Q,Li=Ye;let xe=D;function Di(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 rn(e,t,r,n,o={},s){const{value:i}=It.getInfoWithoutType(e,Pe.getFMId(t)),a=s||i;if(a&&!(0,xe.isManifestProvider)(a)&&(r(a,t,n),a.remotesInfo)){const l=Object.keys(a.remotesInfo);for(const c of l){if(o[c])continue;o[c]=!0;const u=Di(c),f=a.remotesInfo[c];rn(e,{name:u.name,version:f.matchedVersion},r,!1,o,void 0)}}}const ot=(e,t)=>document.querySelector(`${e}[${e==="link"?"href":"src"}="${t}"]`);function Hi(e,t,r,n,o){const s=[],i=[],a=[],l=new Set,c=new Set,{options:u}=e,{preloadConfig:f}=t,{depsRemote:d}=f;if(rn(n,r,(m,_,E)=>{let g;if(E)g=f;else if(Array.isArray(d)){const T=d.find(L=>L.nameOrAlias===_.name||L.nameOrAlias===_.alias);if(!T)return;g=Xt.defaultPreloadArgs(T)}else if(d===!0)g=f;else return;const p=(0,xe.getResourceUrl)(m,Pe.getRemoteEntryInfoFromSnapshot(m).url);p&&a.push({name:_.name,moduleInfo:{name:_.name,entry:p,type:"remoteEntryType"in m?m.remoteEntryType:"global",entryGlobalName:"globalName"in m?m.globalName:_.name,shareScope:"",version:"version"in m?m.version:void 0},url:p});let N="modules"in m?m.modules:[];const k=Xt.normalizePreloadExposes(g.exposes);k.length&&"modules"in m&&(N=m?.modules?.reduce((T,L)=>(k?.indexOf(L.moduleName)!==-1&&T.push(L),T),[]));function O(T){const L=T.map(j=>(0,xe.getResourceUrl)(m,j));return g.filter?L.filter(g.filter):L}if(N){const T=N.length;for(let L=0;L<T;L++){const j=N[L],Ze=`${_.name}/${j.moduleName}`;e.remoteHandler.hooks.lifecycle.handlePreloadModule.emit({id:j.moduleName==="."?_.name:Ze,name:_.name,remoteSnapshot:m,preloadConfig:g,remote:_,origin:e}),!It.getPreloaded(Ze)&&(g.resourceCategory==="all"?(s.push(...O(j.assets.css.async)),s.push(...O(j.assets.css.sync)),i.push(...O(j.assets.js.async)),i.push(...O(j.assets.js.sync))):g.resourceCategory==="sync"&&(s.push(...O(j.assets.css.sync)),i.push(...O(j.assets.js.sync))),It.setPreloaded(Ze))}}},!0,{},o),o.shared&&o.shared.length>0){const m=(_,E)=>{const{shared:g}=Fi.getRegisteredShare(e.shareScopeMap,E.sharedName,_,e.sharedHandler.hooks.lifecycle.resolveShare)||{};g&&typeof g.lib=="function"&&(E.assets.js.sync.forEach(p=>{l.add(p)}),E.assets.css.sync.forEach(p=>{c.add(p)}))};o.shared.forEach(_=>{const E=u.shared?.[_.sharedName];if(!E)return;const g=_.version?E.find(p=>p.version===_.version):E;g&&Pe.arrayOptions(g).forEach(p=>{m(p,_)})})}const h=i.filter(m=>!l.has(m)&&!ot("script",m));return{cssAssets:s.filter(m=>!c.has(m)&&!ot("link",m)),jsAssetsWithoutEntry:h,entryAssets:a.filter(m=>!ot("script",m.url))}}const Ci=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 xe.isBrowserEnvValue?Pe.isRemoteInfoWithEntry(o)&&Pe.isPureRemoteEntry(o)?{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[{name:o.name,url:o.entry,moduleInfo:{name:n.name,entry:o.entry,type:n.type||"global",entryGlobalName:"",shareScope:""}}]}:(Li.assignRemoteInfo(n,i),Hi(t,r,n,s,i)):{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[]}}}};tn.generatePreloadAssetsPlugin=Ci;var ze={};const st=I,qi=R,G=S,Ui=X,Kt=Oe,Gi=Ae,it=$e,Wi=ke;let at=D,Le=z;function nn(e,t){const r=G.getGlobalSnapshotInfoByModuleInfo({name:t.name,version:t.options.version}),n=r&&"remotesInfo"in r&&r.remotesInfo&&G.getInfoWithoutType(r.remotesInfo,e.name).value;return n&&n.matchedVersion?{hostGlobalSnapshot:r,globalSnapshot:G.getGlobalSnapshot(),remoteSnapshot:G.getGlobalSnapshotInfoByModuleInfo({name:e.name,version:n.matchedVersion})}:{hostGlobalSnapshot:void 0,globalSnapshot:G.getGlobalSnapshot(),remoteSnapshot:G.getGlobalSnapshotInfoByModuleInfo({name:e.name,version:"version"in e?e.version:void 0})}}var ji=class{constructor(e){this.loadingHostSnapshot=null,this.manifestCache=new Map,this.hooks=new Wi.PluginSystem({beforeLoadRemoteSnapshot:new Gi.AsyncHook("beforeLoadRemoteSnapshot"),loadSnapshot:new it.AsyncWaterfallHook("loadGlobalSnapshot"),loadRemoteSnapshot:new it.AsyncWaterfallHook("loadRemoteSnapshot"),afterLoadSnapshot:new it.AsyncWaterfallHook("afterLoadSnapshot")}),this.manifestLoading=G.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=G.getGlobalSnapshotInfoByModuleInfo({name:this.HostInstance.options.name,version:this.HostInstance.options.version});o||(o={version:this.HostInstance.options.version||"",remoteEntry:"",remotesInfo:{}},G.addGlobalSnapshot({[this.HostInstance.options.name]:o})),o&&"remotesInfo"in o&&!G.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:l,globalSnapshot:c}=await this.hooks.lifecycle.loadSnapshot.emit({options:n,moduleInfo:e,hostGlobalSnapshot:s,remoteSnapshot:i,globalSnapshot:a});let u,f;if(l)if((0,at.isManifestProvider)(l)){const d=at.isBrowserEnvValue?l.remoteEntry:l.ssrRemoteEntry||l.remoteEntry||"",h=await this.getManifestJson(d,e,{}),m=G.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:l,from:"global"});u=d,f=c}else if(qi.isRemoteInfoWithEntry(e)){const d=await this.getManifestJson(e.entry,e,{}),h=G.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 st.error(Le.RUNTIME_007,Le.runtimeDescMap,{remoteName:e.name,remoteVersion:e.version,hostName:this.HostInstance.options.name,globalSnapshot:JSON.stringify(c)},void 0,Kt.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 nn(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,{},Ui.getRemoteInfo(t));(!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],st.error(Le.RUNTIME_003,Le.runtimeDescMap,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name},`${i}`,Kt.optionsToMFContext(this.HostInstance.options)))}return st.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,at.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]}};ze.SnapshotHandler=ji;ze.getGlobalRemoteInfo=nn;var on={};const lt=I,Bi=se,P=q,Yt=Oe,Vi=Ae,ct=pe,zt=$e,xi=ke;let Ee=z;var Xi=class{constructor(e){this.hooks=new xi.PluginSystem({beforeRegisterShare:new ct.SyncWaterfallHook("beforeRegisterShare"),afterResolve:new zt.AsyncWaterfallHook("afterResolve"),beforeLoadShare:new zt.AsyncWaterfallHook("beforeLoadShare"),loadShare:new Vi.AsyncHook,resolveShare:new ct.SyncWaterfallHook("resolveShare"),initContainerShareScopeMap:new ct.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});lt.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 l=await a.loading;return a.loaded=!0,a.lib||(a.lib=l),P.addUseIn(a,r.options.name),l}else{const c=(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:c,treeShaking:i?a:void 0}),c}}else{if(t?.customShareInfo)return!1;const a=P.shouldUseTreeShaking(o.treeShaking),l=P.directShare(o,a),u=(async()=>{const f=await l.get();l.lib=f,l.loaded=!0,P.addUseIn(l,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?l:void 0}),u}}initializeSharing(e=Bi.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,l=r.options.name;a[e]||(a[e]={});const c=a[e],u=(d,h)=>{const{version:m,eager:_}=h;c[d]=c[d]||{};const E=c[d],g=E[m]&&P.directShare(E[m]),p=!!(g&&("eager"in g&&g.eager||"shareConfig"in g&&g.shareConfig?.eager));(!g||g.strategy!=="loaded-first"&&!g.loaded&&(!_!=!p?_:l>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(_){if(m=await r.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:d,error:_,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&<.error(t?.from==="build"?Ee.RUNTIME_005:Ee.RUNTIME_006,Ee.runtimeDescMap,{hostName:r.options.name,sharedPkgName:e},void 0,Yt.optionsToMFContext(r.options)),n.lib=i,this.setShared({pkgName:e,loaded:!0,from:r.options.name,lib:n.lib,shared:n}),n.lib}lt.error(Ee.RUNTIME_006,Ee.runtimeDescMap,{hostName:r.options.name,sharedPkgName:e},void 0,Yt.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:l,scope:c="default",...u}=t,f=Array.isArray(c)?c:[c],d=h=>{const m=(E,g,p)=>{p&&!E[g]&&(E[g]=p)},_=a?h.treeShaking:h;m(_,"loaded",s),m(_,"loading",o),m(_,"get",i)};f.forEach(h=>{this.shareScopeMap[h]||(this.shareScopeMap[h]={}),this.shareScopeMap[h][e]||(this.shareScopeMap[h][e]={}),this.shareScopeMap[h][e][l]||(this.shareScopeMap[h][e][l]={version:l,scope:[h],...u,lib:n});const m=this.shareScopeMap[h][e][l];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)}};on.SharedHandler=Xi;var sn={};const De=I,U=S,Jt=se,Ki=q,Yi=me,ut=X,zi=Oe,Zt=Q,Ji=Ke,Zi=_e,ae=Ae,Qt=pe,Qi=$e,ea=ke,ta=ze;let ft=D,er=z;var ra=class{constructor(e){this.hooks=new ea.PluginSystem({beforeRegisterRemote:new Qt.SyncWaterfallHook("beforeRegisterRemote"),registerRemote:new Qt.SyncWaterfallHook("registerRemote"),beforeRequest:new Qi.AsyncWaterfallHook("beforeRequest"),onLoad:new ae.AsyncHook("onLoad"),handlePreloadModule:new Zi.SyncHook("handlePreloadModule"),errorLoadRemote:new ae.AsyncHook("errorLoadRemote"),beforePreloadRemote:new ae.AsyncHook("beforePreloadRemote"),generatePreloadAssets:new ae.AsyncHook("generatePreloadAssets"),afterPreloadRemote:new ae.AsyncHook,loadEntry:new ae.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:l,expose:c,id:u,remoteSnapshot:f}=i,d=await o.get(u,c,t,f),h=await this.hooks.lifecycle.onLoad.emit({id:u,pkgNameOrAlias:a,expose:c,exposeModule:n?d:void 0,exposeModuleFactory:n?void 0:d,remote:l,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=Zt.formatPreloadArgs(t.options.remotes,e);await Promise.all(r.map(async n=>{const{remote:o}=n,s=ut.getRemoteInfo(o),{globalSnapshot:i,remoteSnapshot:a}=await t.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:o}),l=await this.hooks.lifecycle.generatePreloadAssets.emit({origin:t,preloadOptions:n,remote:o,remoteInfo:s,globalSnapshot:i,remoteSnapshot:a});l&&Zt.preloadAssets(s,t,l)}))}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=Yi.matchRemoteWithNameAndExpose(t.options.remotes,o);s||De.error(er.RUNTIME_004,er.runtimeDescMap,{hostName:t.options.name,requestId:o},void 0,zi.optionsToMFContext(t.options));const{remote:i}=s,a=ut.getRemoteInfo(i),l=await t.sharedHandler.hooks.lifecycle.afterResolve.emit({id:o,...s,options:t.options,origin:t,remoteInfo:a}),{remote:c,expose:u}=l;De.assert(c&&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(c.name);const d={host:t,remoteInfo:a};return f||(f=new Ji.Module(d),t.moduleCache.set(c.name,f)),{module:f,moduleOptions:d,remoteMatchInfo:l}}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)));De.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&&ft.isBrowserEnvValue&&typeof window<"u"&&!e.entry.startsWith("http")&&(e.entry=new URL(e.entry,window.location.origin).href),e.shareScope||(e.shareScope=Jt.DEFAULT_SCOPE),e.type||(e.type=Jt.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,ft.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;U.CurrentGlobal[i]&&(Object.getOwnPropertyDescriptor(U.CurrentGlobal,i)?.configurable?delete U.CurrentGlobal[i]:U.CurrentGlobal[i]=void 0);const a=ut.getRemoteEntryUniqueKey(o.remoteInfo);U.globalLoading[a]&&delete U.globalLoading[a],t.snapshotHandler.manifestCache.delete(s.entry);let l=s.buildVersion?(0,ft.composeKeyWithSeparator)(s.name,s.buildVersion):s.name;const c=U.CurrentGlobal.__FEDERATION__.__INSTANCES__.findIndex(f=>s.buildVersion?f.options.id===l:f.name===l);if(c!==-1){const f=U.CurrentGlobal.__FEDERATION__.__INSTANCES__[c];l=f.options.id||l;const d=Ki.getGlobalShareScope();let h=!0;const m=[];Object.keys(d).forEach(_=>{const E=d[_];E&&Object.keys(E).forEach(g=>{const p=E[g];p&&Object.keys(p).forEach(N=>{const k=p[N];k&&Object.keys(k).forEach(O=>{const T=k[O];T&&typeof T=="object"&&T.from===s.name&&(T.loaded||T.loading?(T.useIn=T.useIn.filter(L=>L!==s.name),T.useIn.length?h=!1:m.push([_,g,N,O])):m.push([_,g,N,O]))})})})}),h&&(f.shareScopeMap={},delete d[l]),m.forEach(([_,E,g,p])=>{delete d[_]?.[E]?.[g]?.[p]}),U.CurrentGlobal.__FEDERATION__.__INSTANCES__.splice(c,1)}const{hostGlobalSnapshot:u}=ta.getGlobalRemoteInfo(e,t);if(u){const f=u&&"remotesInfo"in u&&u.remotesInfo&&U.getInfoWithoutType(u.remotesInfo,e.name).key;f&&(delete u.remotesInfo[f],U.Global.__FEDERATION__.__MANIFEST_LOADING__[f]&&delete U.Global.__FEDERATION__.__MANIFEST_LOADING__[f])}t.moduleCache.delete(e.name)}}catch(t){De.logger.error(`removeRemote failed: ${t instanceof Error?t.message:String(t)}`)}}};sn.RemoteHandler=ra;const na=I,oa=se,sa=q,ia=Xr,aa=Kr,la=X,ca=Ke,J=_e,dt=Ae,ua=pe,tr=$e,ht=ke,fa=Ye,da=tn,ha=ze,ma=on,_a=sn;let pa=D,mt=z;const ga=typeof FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN=="boolean"?!FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN:!0;var Ea=class{constructor(e){this.hooks=new ht.PluginSystem({beforeInit:new ua.SyncWaterfallHook("beforeInit"),init:new J.SyncHook,beforeInitContainer:new tr.AsyncWaterfallHook("beforeInitContainer"),initContainer:new tr.AsyncWaterfallHook("initContainer")}),this.version="2.3.3",this.moduleCache=new Map,this.loaderHook=new ht.PluginSystem({getModuleInfo:new J.SyncHook,createScript:new J.SyncHook,createLink:new J.SyncHook,fetch:new dt.AsyncHook,loadEntryError:new dt.AsyncHook,getModuleFactory:new dt.AsyncHook}),this.bridgeHook=new ht.PluginSystem({beforeBridgeRender:new J.SyncHook,afterBridgeRender:new J.SyncHook,beforeBridgeDestroy:new J.SyncHook,afterBridgeDestroy:new J.SyncHook});const t=ga?[fa.snapshotPlugin(),da.generatePreloadAssetsPlugin()]:[],r={id:ia.getBuilderId(),name:e.name,plugins:t,remotes:[],shared:{},inBrowser:pa.isBrowserEnvValue};this.name=e.name,this.options=r,this.snapshotHandler=new ha.SnapshotHandler(this),this.sharedHandler=new ma.SharedHandler(this),this.remoteHandler=new _a.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&&na.error((0,mt.getShortErrorMsg)(mt.RUNTIME_010,mt.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=oa.DEFAULT_SCOPE,t){return this.sharedHandler.initializeSharing(e,t)}initRawContainer(e,t,r){const n=la.getRemoteInfo({name:e,entry:t}),o=new ca.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}=sa.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(c=>{a.includes(c)||a.push(c)});const l={...e,...t,plugins:a,remotes:s,shared:i};return this.hooks.lifecycle.init.emit({origin:this,options:l}),l}registerPlugins(e){const t=aa.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})}};Jr.ModuleFederation=Ea;var an={},ln={},rr=Object.defineProperty,ya=(e,t)=>{let r={};for(var n in e)rr(r,n,{get:e[n],enumerable:!0});return t||rr(r,Symbol.toStringTag,{value:"Module"}),r};ln.__exportAll=ya;(function(e){var r=ln.__exportAll({});Object.defineProperty(e,"type_exports",{enumerable:!0,get:function(){return r}})})(an);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=I,r=R,n=S,o=$t,s=q,i=me,a=X,l=Yr,c=Ke,u=Jr,f=an;let d=D;const h=l.default;e.CurrentGlobal=n.CurrentGlobal,e.Global=n.Global,e.Module=c.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}})})(Nt);let Sa=Nt;function ba(){return typeof FEDERATION_BUILD_IDENTIFIER<"u"?FEDERATION_BUILD_IDENTIFIER:""}function Ra(e,t){const r=ba();return Sa.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))}cr.getGlobalFederationInstance=Ra;(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=cr;let r=Nt,n=z;function o(_){const E=new((0,r.getGlobalFederationConstructor)()||r.ModuleFederation)(_);return(0,r.setGlobalFederationInstance)(E),E}let s=null;function i(_){const E=t.getGlobalFederationInstance(_.name,_.version);return E?(E.initOptions(_),s||(s=E),E):(s=o(_),s)}function a(..._){return(0,r.assert)(s,n.RUNTIME_009,n.runtimeDescMap),s.loadRemote.apply(s,_)}function l(..._){return(0,r.assert)(s,n.RUNTIME_009,n.runtimeDescMap),s.loadShare.apply(s,_)}function c(..._){return(0,r.assert)(s,n.RUNTIME_009,n.runtimeDescMap),s.loadShareSync.apply(s,_)}function u(..._){return(0,r.assert)(s,n.RUNTIME_009,n.runtimeDescMap),s.preloadRemote.apply(s,_)}function f(..._){return(0,r.assert)(s,n.RUNTIME_009,n.runtimeDescMap),s.registerRemotes.apply(s,_)}function d(..._){return(0,r.assert)(s,n.RUNTIME_009,n.runtimeDescMap),s.registerPlugins.apply(s,_)}function h(){return s}function m(..._){return(0,r.assert)(s,n.RUNTIME_009,n.runtimeDescMap),s.registerShared.apply(s,_)}(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=l,e.loadShareSync=c,e.preloadRemote=u,Object.defineProperty(e,"registerGlobalPlugins",{enumerable:!0,get:function(){return r.registerGlobalPlugins}}),e.registerPlugins=d,e.registerRemotes=f,e.registerShared=m})(lr);typeof __VUE_HMR_RUNTIME__>"u"&&(globalThis.__VUE_HMR_RUNTIME__={createRecord(){},rerender(){},reload(){}});const cn="__mf_init____mf__virtual/__mfe_internal__rimori_mf_2_scenario_mf_2_host__mf_v__runtimeInit__mf_v__.js__";let Mt=globalThis[cn];if(!Mt){let e,t;const r=new Promise((n,o)=>{e=n,t=o});Mt=globalThis[cn]={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 Ta=Mt.initResolve,Je="__mf_module_cache__";globalThis[Je]||={share:{},remote:{}};globalThis[Je].share||={};globalThis[Je].remote||={};const w=globalThis[Je],nr={},or="default",sr="__mfe_internal__rimori-scenario-host";let He,ir,ar;async function Ia(){return ir??=B(()=>import("./localSharedImportMap.js"),[]),ir}async function Ma(){return ar??=B(()=>import("./virtualExposes.js"),[]).then(e=>e.default??e),ar}async function Pa(e={},t=[]){const{usedShared:r,usedRemotes:n}=await Ia();if(w.share.react===void 0){const l={...await B(()=>import("./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react__loadShare__.mjs.js").then(c=>c.a),[])};Object.defineProperty(l,"__esModule",{value:!0,enumerable:!1}),w.share.react=l}if(w.share["react-dom"]===void 0){const l={...await B(()=>import("./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react_mf_2_dom__loadShare__.mjs.js").then(c=>c.a),[])};Object.defineProperty(l,"__esModule",{value:!0,enumerable:!1}),w.share["react-dom"]=l}if(w.share["react/jsx-dev-runtime"]===void 0){const l={...await B(()=>import("./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react_mf_1_jsx_mf_2_dev_mf_2_runtime__loadShare__.mjs.js").then(c=>c.a),[])};Object.defineProperty(l,"__esModule",{value:!0,enumerable:!1}),w.share["react/jsx-dev-runtime"]=l}if(w.share["react/jsx-runtime"]===void 0){const l={...await B(()=>import("./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.mjs.js").then(c=>c.a),[])};Object.defineProperty(l,"__esModule",{value:!0,enumerable:!1}),w.share["react/jsx-runtime"]=l}if(w.share["@rimori/client"]===void 0){const l={...await B(()=>import("./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare___mf_0_rimori_mf_1_client__loadShare__.mjs.js").then(c=>c._),[])};Object.defineProperty(l,"__esModule",{value:!0,enumerable:!1}),w.share["@rimori/client"]=l}if(w.share["@rimori/react-client"]===void 0){const l={...await B(()=>import("./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare___mf_0_rimori_mf_1_react_mf_2_client__loadShare__.mjs.js").then(c=>c._),[])};Object.defineProperty(l,"__esModule",{value:!0,enumerable:!1}),w.share["@rimori/react-client"]=l}if(w.share["@tanstack/react-query"]===void 0){const l={...await B(()=>import("./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.mjs.js").then(c=>c._),[])};Object.defineProperty(l,"__esModule",{value:!0,enumerable:!1}),w.share["@tanstack/react-query"]=l}if(w.share.zod===void 0){const l={...await B(()=>import("./__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__zod__loadShare__.mjs.js").then(c=>c._),[])};Object.defineProperty(l,"__esModule",{value:!0,enumerable:!1}),w.share.zod=l}const o={name:sr,remotes:n,shared:r,plugins:[],shareStrategy:"version-first"};He?He.initOptions(o):He=lr.createInstance(o);const s=He;var i=nr[or];if(i||(i=nr[or]={from:sr}),!(t.indexOf(i)>=0)){t.push(i),s.initShareScopeMap("default",e),Ta(s);try{await Promise.all(await s.initializeSharing("default",{strategy:"version-first",from:"build",initScope:t}))}catch(a){console.error("[Module Federation]",a)}return s}}async function va(e){const t=await Ma();if(!(e in t))throw new Error(`[Module Federation] Module ${e} does not exist in container.`);return t[e]().then(r=>()=>r)}export{lr as d,va as g,Pa as i};
|