(function(){var __webpack_modules__={7951:function(e,t,r){"use strict";var n={};function o(){return o=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}r.r(n),r.d(n,{FederationHost:function(){return wt},Module:function(){return at},getInstance:function(){return $t},getRemoteEntry:function(){return nt},getRemoteInfo:function(){return ot},init:function(){return Nt},loadRemote:function(){return kt},loadScript:function(){return i.k0},loadScriptNode:function(){return i.oe},loadShare:function(){return Tt},loadShareSync:function(){return It},preloadRemote:function(){return Pt},registerGlobalPlugins:function(){return X},registerPlugins:function(){return Ot},registerRemotes:function(){return Rt}});var i=r(69615);const s="RUNTIME-001",c="RUNTIME-002",l="RUNTIME-003",u="RUNTIME-004",f="RUNTIME-005",d="RUNTIME-006",p="RUNTIME-007",_="RUNTIME-008",h="TYPE-001",m="BUILD-001",b=(e,t,r,n)=>{const o=[`${[t[e]]} #${e}`];return r&&o.push(`args: ${JSON.stringify(r)}`),o.push((e=>`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}/${e}`)(e)),n&&o.push(`Original Error Message:\n ${n}`),o.join("\n")};function E(){return E=Object.assign||function(e){for(var t=1;te===t)&&e.push(t),e}function k(e){return"version"in e&&e.version?`${e.name}:${e.version}`:"entry"in e&&e.entry?`${e.name}:${e.entry}`:`${e.name}`}function T(e){return void 0!==e.entry}function I(e){return!e.entry.includes(".json")}function P(e){return e&&"object"==typeof e}const R=Object.prototype.toString;function O(e){return Array.isArray(e)?e:[e]}function $(e){const t={url:"",type:"global",globalName:""};return(0,i.OL)()||(0,i.tf)()?"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 M="object"==typeof globalThis?globalThis:window,L=(()=>{try{return document.defaultView}catch(e){return M}})(),U=L;function D(e,t,r){Object.defineProperty(e,t,{value:r,configurable:!1,writable:!0})}function x(e,t){return Object.hasOwnProperty.call(e,t)}x(M,"__GLOBAL_LOADING_REMOTE_ENTRY__")||D(M,"__GLOBAL_LOADING_REMOTE_ENTRY__",{});const C=M.__GLOBAL_LOADING_REMOTE_ENTRY__;function F(e){var t,r,n,o,a,i;x(e,"__VMOK__")&&!x(e,"__FEDERATION__")&&D(e,"__FEDERATION__",e.__VMOK__),x(e,"__FEDERATION__")||(D(e,"__FEDERATION__",{__GLOBAL_PLUGIN__:[],__INSTANCES__:[],moduleInfo:{},__SHARE__:{},__MANIFEST_LOADING__:{},__PRELOADED_MAP__:new Map}),D(e,"__VMOK__",e.__FEDERATION__)),null!=(t=e.__FEDERATION__).__GLOBAL_PLUGIN__||(t.__GLOBAL_PLUGIN__=[]),null!=(r=e.__FEDERATION__).__INSTANCES__||(r.__INSTANCES__=[]),null!=(n=e.__FEDERATION__).moduleInfo||(n.moduleInfo={}),null!=(o=e.__FEDERATION__).__SHARE__||(o.__SHARE__={}),null!=(a=e.__FEDERATION__).__MANIFEST_LOADING__||(a.__MANIFEST_LOADING__={}),null!=(i=e.__FEDERATION__).__PRELOADED_MAP__||(i.__PRELOADED_MAP__=new Map)}function H(e){M.__FEDERATION__.__INSTANCES__.push(e)}function j(){return M.__FEDERATION__.__DEBUG_CONSTRUCTOR__}function q(e,t=(0,i.Bb)()){t&&(M.__FEDERATION__.__DEBUG_CONSTRUCTOR__=e,M.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__="0.15.0")}function V(e,t){if("string"==typeof t){if(e[t])return{value:e[t],key:t};{const r=Object.keys(e);for(const n of r){const[r,o]=n.split(":"),a=`${r}:${t}`,i=e[a];if(i)return{value:i,key:a}}return{value:void 0,key:t}}}throw new Error("key must be string")}F(M),F(L);const B=()=>L.__FEDERATION__.moduleInfo,G=(e,t)=>{const r=V(t,k(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:t}=e,r=k(a(e,["version"])),n=V(L.__FEDERATION__.moduleInfo,r).value;if((null==n?void 0:n.version)===t)return n}},W=e=>G(e,L.__FEDERATION__.moduleInfo),K=(e,t)=>{const r=k(e);return L.__FEDERATION__.moduleInfo[r]=t,L.__FEDERATION__.moduleInfo},Y=e=>(L.__FEDERATION__.moduleInfo=o({},L.__FEDERATION__.moduleInfo,e),()=>{const t=Object.keys(e);for(const e of t)delete L.__FEDERATION__.moduleInfo[e]}),z=(e,t)=>{const r=t||`__FEDERATION_${e}:custom__`;return{remoteEntryKey:r,entryExports:M[r]}},X=e=>{const{__GLOBAL_PLUGIN__:t}=L.__FEDERATION__;e.forEach(e=>{-1===t.findIndex(t=>t.name===e.name)?t.push(e):v(`The plugin ${e.name} has been registered.`)})},J=()=>L.__FEDERATION__.__GLOBAL_PLUGIN__,Z=e=>M.__FEDERATION__.__PRELOADED_MAP__.get(e),Q=e=>M.__FEDERATION__.__PRELOADED_MAP__.set(e,!0),ee="default",te="global",re="[0-9A-Za-z-]+",ne=`(?:\\+(${re}(?:\\.${re})*))`,oe="0|[1-9]\\d*",ae="[0-9]+",ie="\\d*[a-zA-Z-][a-zA-Z0-9-]*",se=`(?:${ae}|${ie})`,ce=`(?:${oe}|${ie})`,le=`(?:-(${ce}(?:\\.${ce})*))`,ue=`${oe}|x|X|\\*`,fe=`[v=\\s]*(${ue})(?:\\.(${ue})(?:\\.(${ue})(?:${le})?${ne}?)?)?`,de=`^\\s*(${fe})\\s+-\\s+(${fe})\\s*$`,pe="((?:<|>)?=?)",_e=`(\\s*)${pe}\\s*(${`[v=\\s]*${`(${ae})\\.(${ae})\\.(${ae})`}${`(?:-?(${se}(?:\\.${se})*))`}?${ne}?`}|${fe})`,he="(?:~>?)",me=`(\\s*)${he}\\s+`,be="(?:\\^)",Ee=`(\\s*)${be}\\s+`,ye=`^${be}${fe}$`,ge=`^${he}${fe}$`,Se=`^${pe}\\s*${fe}$`,Ae=`^${pe}\\s*(${`v?${`(${oe})\\.(${oe})\\.(${oe})`}${le}?${ne}?`})$|^$`;function we(e){return new RegExp(e)}function ve(e){return!e||"x"===e.toLowerCase()||"*"===e}function Ne(...e){return t=>e.reduce((e,t)=>t(e),t)}function ke(e){return e.match(we(Ae))}function Te(e,t,r,n){const o=`${e}.${t}.${r}`;return n?`${o}-${n}`:o}function Ie(e){return e.replace(we(de),(e,t,r,n,o,a,i,s,c,l,u,f)=>`${t=ve(r)?"":ve(n)?`>=${r}.0.0`:ve(o)?`>=${r}.${n}.0`:`>=${t}`} ${s=ve(c)?"":ve(l)?`<${Number(c)+1}.0.0-0`:ve(u)?`<${c}.${Number(l)+1}.0-0`:f?`<=${c}.${l}.${u}-${f}`:`<=${s}`}`.trim())}function Pe(e){return e.replace(we(_e),"$1$2$3")}function Re(e){return e.replace(we(me),"$1~")}function Oe(e){return e.replace(we(Ee),"$1^")}function $e(e){return e.trim().split(/\s+/).map(e=>e.replace(we(ye),(e,t,r,n,o)=>ve(t)?"":ve(r)?`>=${t}.0.0 <${Number(t)+1}.0.0-0`:ve(n)?"0"===t?`>=${t}.${r}.0 <${t}.${Number(r)+1}.0-0`:`>=${t}.${r}.0 <${Number(t)+1}.0.0-0`:o?"0"===t?"0"===r?`>=${t}.${r}.${n}-${o} <${t}.${r}.${Number(n)+1}-0`:`>=${t}.${r}.${n}-${o} <${t}.${Number(r)+1}.0-0`:`>=${t}.${r}.${n}-${o} <${Number(t)+1}.0.0-0`:"0"===t?"0"===r?`>=${t}.${r}.${n} <${t}.${r}.${Number(n)+1}-0`:`>=${t}.${r}.${n} <${t}.${Number(r)+1}.0-0`:`>=${t}.${r}.${n} <${Number(t)+1}.0.0-0`)).join(" ")}function Me(e){return e.trim().split(/\s+/).map(e=>e.replace(we(ge),(e,t,r,n,o)=>ve(t)?"":ve(r)?`>=${t}.0.0 <${Number(t)+1}.0.0-0`:ve(n)?`>=${t}.${r}.0 <${t}.${Number(r)+1}.0-0`:o?`>=${t}.${r}.${n}-${o} <${t}.${Number(r)+1}.0-0`:`>=${t}.${r}.${n} <${t}.${Number(r)+1}.0-0`)).join(" ")}function Le(e){return e.split(/\s+/).map(e=>e.trim().replace(we(Se),(e,t,r,n,o,a)=>{const i=ve(r),s=i||ve(n),c=s||ve(o);return"="===t&&c&&(t=""),a="",i?">"===t||"<"===t?"<0.0.0-0":"*":t&&c?(s&&(n=0),o=0,">"===t?(t=">=",s?(r=Number(r)+1,n=0,o=0):(n=Number(n)+1,o=0)):"<="===t&&(t="<",s?r=Number(r)+1:n=Number(n)+1),"<"===t&&(a="-0"),`${t+r}.${n}.${o}${a}`):s?`>=${r}.0.0${a} <${Number(r)+1}.0.0-0`:c?`>=${r}.${n}.0${a} <${r}.${Number(n)+1}.0-0`:e})).join(" ")}function Ue(e){return e.trim().replace(we("(<|>)?=?\\s*\\*"),"")}function De(e,t){return(e=Number(e)||e)>(t=Number(t)||t)?1:e===t?0:-1}function xe(e,t){return De(e.major,t.major)||De(e.minor,t.minor)||De(e.patch,t.patch)||function(e,t){const{preRelease:r}=e,{preRelease:n}=t;if(void 0===r&&Boolean(n))return 1;if(Boolean(r)&&void 0===n)return-1;if(void 0===r&&void 0===n)return 0;for(let o=0,a=r.length;o<=a;o++){const e=r[o],t=n[o];if(e!==t)return void 0===e&&void 0===t?0:e?t?De(e,t):-1:1}return 0}(e,t)}function Ce(e,t){return e.version===t.version}function Fe(e,t){switch(e.operator){case"":case"=":return Ce(e,t);case">":return xe(e,t)<0;case">=":return Ce(e,t)||xe(e,t)<0;case"<":return xe(e,t)>0;case"<=":return Ce(e,t)||xe(e,t)>0;case void 0:return!0;default:return!1}}function He(e){return Ne($e,Me,Le,Ue)(e)}function je(e){return Ne(Ie,Pe,Re,Oe)(e.trim()).split(/\s+/).join(" ")}function qe(e,t){if(!e)return!1;const r=ke(e);if(!r)return!1;const[,n,,o,a,i,s]=r,c={operator:n,version:Te(o,a,i,s),major:o,minor:a,patch:i,preRelease:null==s?void 0:s.split(".")},l=t.split("||");for(const f of l){const e=f.trim();if(!e)return!0;if("*"===e||"x"===e)return!0;try{const t=je(e);if(!t.trim())return!0;const r=t.split(" ").map(e=>He(e)).join(" ");if(!r.trim())return!0;const n=r.split(/\s+/).map(e=>e.trim().replace(we("^\\s*>=\\s*0.0.0\\s*$"),"")).filter(Boolean);if(0===n.length)continue;let o=!0;for(const e of n){const t=ke(e);if(!t){o=!1;break}const[,r,,n,a,i,s]=t;if(!Fe({operator:r,version:Te(n,a,i,s),major:n,minor:a,patch:i,preRelease:null==s?void 0:s.split(".")},c)){o=!1;break}}if(o)return!0}catch(u){console.error(`[semver] Error processing range part "${e}":`,u);continue}}return!1}function Ve(e,t){const r=t.shared||{},n=t.name,a=Object.keys(r).reduce((e,a)=>{const i=O(r[a]);return e[a]=e[a]||[],i.forEach(r=>{e[a].push(function(e,t,r,n){let a;var i,s,c;return a="get"in e?e.get:"lib"in e?()=>Promise.resolve(e.lib):()=>Promise.resolve(()=>{throw new Error(`Can not get shared '${r}'!`)}),o({deps:[],useIn:[],from:t,loading:null},e,{shareConfig:o({requiredVersion:`^${e.version}`,singleton:!1,eager:!1,strictVersion:!1},e.shareConfig),get:a,loaded:!(!(null==e?void 0:e.loaded)&&!("lib"in e))||void 0,version:null!=(i=e.version)?i:"0",scope:Array.isArray(e.scope)?e.scope:[null!=(s=e.scope)?s:"default"],strategy:(null!=(c=e.strategy)?c:n)||"version-first"})}(r,n,a,t.shareStrategy))}),e},{}),i=o({},e.shared);return Object.keys(a).forEach(e=>{i[e]?a[e].forEach(t=>{i[e].find(e=>e.version===t.version)||i[e].push(t)}):i[e]=a[e]}),{shared:i,shareInfos:a}}function Be(e,t){const r=e=>{if(!Number.isNaN(Number(e))){const t=e.split(".");let r=e;for(let e=0;e<3-t.length;e++)r+=".0";return r}return e};return!!qe(r(e),`<=${r(t)}`)}const Ge=(e,t)=>{const r=t||function(e,t){return Be(e,t)};return Object.keys(e).reduce((e,t)=>e?r(e,t)||"0"===e?t:e:t,0)},We=e=>Boolean(e.loaded)||"function"==typeof e.lib;function Ke(e,t,r){const n=e[t][r];return Ge(e[t][r],function(e,t){return!We(n[e])&&Be(e,t)})}function Ye(e,t,r){const n=e[t][r];return Ge(e[t][r],function(e,t){const r=e=>We(e)||(e=>Boolean(e.loading))(e);return r(n[t])?!r(n[e])||Boolean(Be(e,t)):!r(n[e])&&Be(e,t)})}function ze(e){return"loaded-first"===e?Ye:Ke}function Xe(e,t,r,n){if(!e)return;const{shareConfig:o,scope:a=ee,strategy:i}=r,s=Array.isArray(a)?a:[a];for(const c of s)if(o&&e[c]&&e[c][t]){const{requiredVersion:a}=o,s=ze(i)(e,c,t),l=()=>{if(o.singleton){if("string"==typeof a&&!qe(s,a)){const n=`Version ${s} from ${s&&e[c][t][s].from} of shared singleton module ${t} does not satisfy the requirement of ${r.from} which needs ${a})`;o.strictVersion?w(n):v(n)}return e[c][t][s]}if(!1===a||"*"===a)return e[c][t][s];if(qe(s,a))return e[c][t][s];for(const[r,n]of Object.entries(e[c][t]))if(qe(r,a))return n},u={shareScopeMap:e,scope:c,pkgName:t,version:s,GlobalFederation:U.__FEDERATION__,resolver:l};return(n.emit(u)||u).resolver()}}function Je(){return U.__FEDERATION__.__SHARE__}function Ze(e){const{pkgName:t,extraOptions:r,shareInfos:n}=e;var o;const a=null!=(o=null==r?void 0:r.resolver)?o:e=>{if(!e)return;const t={};e.forEach(e=>{t[e.version]=e});const r=Ge(t,function(e,r){return!We(t[e])&&Be(e,r)});return t[r]};return Object.assign({},a(n[t]),null==r?void 0:r.customShareInfo)}const Qe=".then(callbacks[0]).catch(callbacks[1])";function et(e,t,r){const{remoteEntryKey:n,entryExports:o}=z(e,t);return A(o,b(s,y,{remoteName:e,remoteEntryUrl:r,remoteEntryKey:n})),o}async function tt({remoteInfo:e,remoteEntryExports:t,loaderHook:r}){const{entry:n,entryGlobalName:o,name:a,type:s}=e;switch(s){case"esm":case"module":return async function({entry:e,remoteEntryExports:t}){return new Promise((r,n)=>{try{t?r(t):"undefined"!=typeof FEDERATION_ALLOW_NEW_FUNCTION?new Function("callbacks",`import("${e}")${Qe}`)([r,n]):import(e).then(r).catch(n)}catch(o){n(o)}})}({entry:n,remoteEntryExports:t});case"system":return async function({entry:e,remoteEntryExports:t}){return new Promise((r,n)=>{try{t?r(t):new Function("callbacks",`System.import("${e}")${Qe}`)([r,n])}catch(o){n(o)}})}({entry:n,remoteEntryExports:t});default:return async function({name:e,globalName:t,entry:r,loaderHook:n}){const{entryExports:o}=z(e,t);return o||(0,i.k0)(r,{attrs:{},createScriptHook:(e,t)=>{const r=n.lifecycle.createScript.emit({url:e,attrs:t});if(r)return r instanceof HTMLScriptElement||"script"in r||"timeout"in r?r:void 0}}).then(()=>et(e,t,r)).catch(t=>{throw A(void 0,b(_,y,{remoteName:e,resourceUrl:r})),t})}({entry:n,globalName:o,name:a,loaderHook:r})}}function rt(e){const{entry:t,name:r}=e;return(0,i.lG)(r,t)}async function nt({origin:e,remoteEntryExports:t,remoteInfo:r}){const n=rt(r);if(t)return t;if(!C[n]){const o=e.remoteHandler.hooks.lifecycle.loadEntry,a=e.loaderHook;C[n]=o.emit({loaderHook:a,remoteInfo:r,remoteEntryExports:t}).then(e=>{if(e)return e;return("undefined"!=typeof ENV_TARGET?"web"===ENV_TARGET:(0,i.OL)())?tt({remoteInfo:r,remoteEntryExports:t,loaderHook:a}):async function({remoteInfo:e,loaderHook:t}){const{entry:r,entryGlobalName:n,name:o,type:a}=e,{entryExports:s}=z(o,n);return s||(0,i.oe)(r,{attrs:{name:o,globalName:n,type:a},loaderHook:{createScriptHook:(e,r={})=>{const n=t.lifecycle.createScript.emit({url:e,attrs:r});if(n)return"url"in n?n:void 0}}}).then(()=>et(o,n,r)).catch(e=>{throw e})}({remoteInfo:r,loaderHook:a})})}return C[n]}function ot(e){return o({},e,{entry:"entry"in e?e.entry:"",type:e.type||te,entryGlobalName:e.entryGlobalName||e.name,shareScope:e.shareScope||ee})}let at=class{async getEntry(){if(this.remoteEntryExports)return this.remoteEntryExports;let e;try{e=await nt({origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports})}catch(t){const r=rt(this.remoteInfo);e=await this.host.loaderHook.lifecycle.loadEntryError.emit({getRemoteEntry:nt,origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports,globalLoading:C,uniqueKey:r})}return A(e,`remoteEntryExports is undefined \n ${(0,i.ML)(this.remoteInfo)}`),this.remoteEntryExports=e,this.remoteEntryExports}async get(e,t,r,n){const{loadFactory:a=!0}=r||{loadFactory:!0},i=await this.getEntry();if(!this.inited){const t=this.host.shareScopeMap,r=Array.isArray(this.remoteInfo.shareScope)?this.remoteInfo.shareScope:[this.remoteInfo.shareScope];r.length||r.push("default"),r.forEach(e=>{t[e]||(t[e]={})});const a=t[r[0]],s=[],l={version:this.remoteInfo.version||"",shareScopeKeys:Array.isArray(this.remoteInfo.shareScope)?r:this.remoteInfo.shareScope||"default"};Object.defineProperty(l,"shareScopeMap",{value:t,enumerable:!1});const u=await this.host.hooks.lifecycle.beforeInitContainer.emit({shareScope:a,remoteEntryInitOptions:l,initScope:s,remoteInfo:this.remoteInfo,origin:this.host});void 0===(null==i?void 0:i.init)&&w(b(c,y,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName})),await i.init(u.shareScope,u.initScope,u.remoteEntryInitOptions),await this.host.hooks.lifecycle.initContainer.emit(o({},u,{id:e,remoteSnapshot:n,remoteEntryExports:i}))}let s;this.lib=i,this.inited=!0,s=await this.host.loaderHook.lifecycle.getModuleFactory.emit({remoteEntryExports:i,expose:t,moduleInfo:this.remoteInfo}),s||(s=await i.get(t)),A(s,`${k(this.remoteInfo)} remote don't export ${t}.`);const l=((e,t)=>{let r;return r=e.endsWith("/")?e.slice(0,-1):e,t.startsWith(".")&&(t=t.slice(1)),r+=t,r})(this.remoteInfo.name,t),u=this.wraperFactory(s,l);if(!a)return u;return await u()}wraperFactory(e,t){function r(e,t){e&&"object"==typeof e&&Object.isExtensible(e)&&!Object.getOwnPropertyDescriptor(e,Symbol.for("mf_module_id"))&&Object.defineProperty(e,Symbol.for("mf_module_id"),{value:t,enumerable:!1})}return e instanceof Promise?async()=>{const n=await e();return r(n,t),n}:()=>{const n=e();return r(n,t),n}}constructor({remoteInfo:e,host:t}){this.inited=!1,this.lib=void 0,this.remoteInfo=e,this.host=t}};class it{on(e){"function"==typeof e&&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()}constructor(e){this.type="",this.listeners=new Set,e&&(this.type=e)}}class st extends it{emit(...e){let t;const r=Array.from(this.listeners);if(r.length>0){let n=0;const o=t=>!1!==t&&(n0){let r=0;const n=t=>(v(t),this.onerror(t),e),o=a=>{if(ct(e,a)){if(e=a,r{const r=e[t];r&&this.lifecycle[t].on(r)}))}removePlugin(e){A(e,"A name is required.");const t=this.registerPlugins[e];A(t,`The plugin "${e}" is not registered.`),Object.keys(t).forEach(e=>{"name"!==e&&this.lifecycle[e].remove(t[e])})}inherit({lifecycle:e,registerPlugins:t}){Object.keys(e).forEach(t=>{A(!this.lifecycle[t],`The hook "${t}" has a conflict and cannot be inherited.`),this.lifecycle[t]=e[t]}),Object.keys(t).forEach(e=>{A(!this.registerPlugins[e],`The plugin "${e}" has a conflict and cannot be inherited.`),this.applyPlugin(t[e])})}constructor(e){this.registerPlugins={},this.lifecycle=e,this.lifecycleKeys=Object.keys(e)}}function dt(e){return o({resourceCategory:"sync",share:!0,depsRemote:!0,prefetchInterface:!1},e)}function pt(e,t,r,n=!0){const{cssAssets:o,jsAssetsWithoutEntry:a,entryAssets:s}=r;if(t.options.inBrowser){if(s.forEach(r=>{const{moduleInfo:n}=r,o=t.moduleCache.get(e.name);nt(o?{origin:t,remoteInfo:n,remoteEntryExports:o.remoteEntryExports}:{origin:t,remoteInfo:n,remoteEntryExports:void 0})}),n){const e={rel:"preload",as:"style"};o.forEach(r=>{const{link:n,needAttach:o}=(0,i.d)({url:r,cb:()=>{},attrs:e,createLinkHook:(e,r)=>{const n=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:r});if(n instanceof HTMLLinkElement)return n}});o&&document.head.appendChild(n)})}else{const e={rel:"stylesheet",type:"text/css"};o.forEach(r=>{const{link:n,needAttach:o}=(0,i.d)({url:r,cb:()=>{},attrs:e,createLinkHook:(e,r)=>{const n=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:r});if(n instanceof HTMLLinkElement)return n},needDeleteLink:!1});o&&document.head.appendChild(n)})}if(n){const e={rel:"preload",as:"script"};a.forEach(r=>{const{link:n,needAttach:o}=(0,i.d)({url:r,cb:()=>{},attrs:e,createLinkHook:(e,r)=>{const n=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:r});if(n instanceof HTMLLinkElement)return n}});o&&document.head.appendChild(n)})}else{const r={fetchpriority:"high",type:"module"===(null==e?void 0:e.type)?"module":"text/javascript"};a.forEach(e=>{const{script:n,needAttach:o}=(0,i.so)({url:e,cb:()=>{},attrs:r,createScriptHook:(e,r)=>{const n=t.loaderHook.lifecycle.createScript.emit({url:e,attrs:r});if(n instanceof HTMLScriptElement)return n},needDeleteScript:!0});o&&document.head.appendChild(n)})}}}function _t(e,t){const r=$(t);r.url||w(`The attribute remoteEntry of ${e.name} must not be undefined.`);let n=(0,i.Al)(t,r.url);(0,i.OL)()||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 ht(e){const t=e.split(":");return 1===t.length?{name:t[0],version:void 0}:2===t.length?{name:t[0],version:t[1]}:{name:t[1],version:t[2]}}function mt(e,t,r,n,o={},a){const s=k(t),{value:c}=V(e,s),l=a||c;if(l&&!(0,i.Tr)(l)&&(r(l,t,n),l.remotesInfo)){const t=Object.keys(l.remotesInfo);for(const n of t){if(o[n])continue;o[n]=!0;const t=ht(n),a=l.remotesInfo[n];mt(e,{name:t.name,version:a.matchedVersion},r,!1,o,void 0)}}}const bt=(e,t)=>document.querySelector(`${e}[${"link"===e?"href":"src"}="${t}"]`);function Et(e,t,r,n,o){const a=[],s=[],c=[],l=new Set,u=new Set,{options:f}=e,{preloadConfig:d}=t,{depsRemote:p}=d;if(mt(n,r,(t,r,n)=>{let o;if(n)o=d;else if(Array.isArray(p)){const e=p.find(e=>e.nameOrAlias===r.name||e.nameOrAlias===r.alias);if(!e)return;o=dt(e)}else{if(!0!==p)return;o=d}const l=(0,i.Al)(t,$(t).url);l&&c.push({name:r.name,moduleInfo:{name:r.name,entry:l,type:"remoteEntryType"in t?t.remoteEntryType:"global",entryGlobalName:"globalName"in t?t.globalName:r.name,shareScope:"",version:"version"in t?t.version:void 0},url:l});let u="modules"in t?t.modules:[];const f=(_=o.exposes)?_.map(e=>"."===e?e:e.startsWith("./")?e.replace("./",""):e):[];var _,h;f.length&&"modules"in t&&(u=null==t||null==(h=t.modules)?void 0:h.reduce((e,t)=>(-1!==(null==f?void 0:f.indexOf(t.moduleName))&&e.push(t),e),[]));function m(e){const r=e.map(e=>(0,i.Al)(t,e));return o.filter?r.filter(o.filter):r}if(u){const n=u.length;for(let i=0;i{const n=Xe(e.shareScopeMap,r.sharedName,t,e.sharedHandler.hooks.lifecycle.resolveShare);n&&"function"==typeof n.lib&&(r.assets.js.sync.forEach(e=>{l.add(e)}),r.assets.css.sync.forEach(e=>{u.add(e)}))};o.shared.forEach(e=>{var r;const n=null==(r=f.shared)?void 0:r[e.sharedName];if(!n)return;const o=e.version?n.find(t=>t.version===e.version):n;if(!o)return;O(o).forEach(r=>{t(r,e)})})}const _=s.filter(e=>!l.has(e)&&!bt("script",e));return{cssAssets:a.filter(e=>!u.has(e)&&!bt("link",e)),jsAssetsWithoutEntry:_,entryAssets:c.filter(e=>!bt("script",e.url))}}function yt(e,t){const r=W({name:t.name,version:t.options.version}),n=r&&"remotesInfo"in r&&r.remotesInfo&&V(r.remotesInfo,e.name).value;return n&&n.matchedVersion?{hostGlobalSnapshot:r,globalSnapshot:B(),remoteSnapshot:W({name:e.name,version:n.matchedVersion})}:{hostGlobalSnapshot:void 0,globalSnapshot:B(),remoteSnapshot:W({name:e.name,version:"version"in e?e.version:void 0})}}class gt{async loadRemoteSnapshotInfo({moduleInfo:e,id:t,expose:r}){const{options:n}=this.HostInstance;await this.hooks.lifecycle.beforeLoadRemoteSnapshot.emit({options:n,moduleInfo:e});let a=W({name:this.HostInstance.options.name,version:this.HostInstance.options.version});a||(a={version:this.HostInstance.options.version||"",remoteEntry:"",remotesInfo:{}},Y({[this.HostInstance.options.name]:a})),a&&"remotesInfo"in a&&!V(a.remotesInfo,e.name).value&&("version"in e||"entry"in e)&&(a.remotesInfo=o({},null==a?void 0:a.remotesInfo,{[e.name]:{matchedVersion:"version"in e?e.version:e.entry}}));const{hostGlobalSnapshot:s,remoteSnapshot:c,globalSnapshot:l}=this.getGlobalRemoteInfo(e),{remoteSnapshot:u,globalSnapshot:f}=await this.hooks.lifecycle.loadSnapshot.emit({options:n,moduleInfo:e,hostGlobalSnapshot:s,remoteSnapshot:c,globalSnapshot:l});let d,_;if(u)if((0,i.Tr)(u)){const t=(0,i.OL)()?u.remoteEntry:u.ssrRemoteEntry||u.remoteEntry||"",r=await this.getManifestJson(t,e,{});d=r,_=K(o({},e,{entry:t}),r)}else{const{remoteSnapshot:t}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:u,from:"global"});d=t,_=f}else if(T(e)){const t=await this.getManifestJson(e.entry,e,{}),r=K(e,t),{remoteSnapshot:n}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:t,from:"global"});d=n,_=r}else w(b(p,y,{hostName:e.name,hostVersion:e.version,globalSnapshot:JSON.stringify(f)}));return await this.hooks.lifecycle.afterLoadSnapshot.emit({id:t,host:this.HostInstance,options:n,moduleInfo:e,remoteSnapshot:d}),{remoteSnapshot:d,globalSnapshot:_}}getGlobalRemoteInfo(e){return yt(e,this.HostInstance)}async getManifestJson(e,t,r){const n=async()=>{let r=this.manifestCache.get(e);if(r)return r;try{let t=await this.loaderHook.lifecycle.fetch.emit(e,{});t&&t instanceof Response||(t=await fetch(e,{})),r=await t.json()}catch(n){r=await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:n,from:"runtime",lifecycle:"afterResolve",origin:this.HostInstance}),r||(delete this.manifestLoading[e],w(b(l,y,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name},`${n}`)))}return A(r.metaData&&r.exposes&&r.shared,`${e} is not a federation manifest`),this.manifestCache.set(e,r),r},o=async()=>{const r=await n(),o=(0,i.Jn)(r,{version:e}),{remoteSnapshot:a}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:t,manifestJson:r,remoteSnapshot:o,manifestUrl:e,from:"manifest"});return a};return this.manifestLoading[e]||(this.manifestLoading[e]=o().then(e=>e)),this.manifestLoading[e]}constructor(e){this.loadingHostSnapshot=null,this.manifestCache=new Map,this.hooks=new ft({beforeLoadRemoteSnapshot:new st("beforeLoadRemoteSnapshot"),loadSnapshot:new ut("loadGlobalSnapshot"),loadRemoteSnapshot:new ut("loadRemoteSnapshot"),afterLoadSnapshot:new ut("afterLoadSnapshot")}),this.manifestLoading=U.__FEDERATION__.__MANIFEST_LOADING__,this.HostInstance=e,this.loaderHook=e.loaderHook}}class St{registerShared(e,t){const{shareInfos:r,shared:n}=Ve(e,t);return Object.keys(r).forEach(e=>{r[e].forEach(r=>{!Xe(this.shareScopeMap,e,r,this.hooks.lifecycle.resolveShare)&&r&&r.lib&&this.setShared({pkgName:e,lib:r.lib,get:r.get,loaded:!0,shared:r,from:t.name})})}),{shareInfos:r,shared:n}}async loadShare(e,t){const{host:r}=this,n=Ze({pkgName:e,extraOptions:t,shareInfos:r.options.shared});(null==n?void 0:n.scope)&&await Promise.all(n.scope.map(async e=>{await Promise.all(this.initializeSharing(e,{strategy:n.strategy}))}));const o=await this.hooks.lifecycle.beforeLoadShare.emit({pkgName:e,shareInfo:n,shared:r.options.shared,origin:r}),{shareInfo:a}=o;A(a,`Cannot find ${e} Share in the ${r.options.name}. Please ensure that the ${e} Share parameters have been injected`);const i=Xe(this.shareScopeMap,e,a,this.hooks.lifecycle.resolveShare),s=e=>{e.useIn||(e.useIn=[]),N(e.useIn,r.options.name)};if(i&&i.lib)return s(i),i.lib;if(i&&i.loading&&!i.loaded){const e=await i.loading;return i.loaded=!0,i.lib||(i.lib=e),s(i),e}if(i){const t=(async()=>{const t=await i.get();a.lib=t,a.loaded=!0,s(a);const r=Xe(this.shareScopeMap,e,a,this.hooks.lifecycle.resolveShare);return r&&(r.lib=t,r.loaded=!0),t})();return this.setShared({pkgName:e,loaded:!1,shared:i,from:r.options.name,lib:null,loading:t}),t}{if(null==t?void 0:t.customShareInfo)return!1;const n=(async()=>{const t=await a.get();a.lib=t,a.loaded=!0,s(a);const r=Xe(this.shareScopeMap,e,a,this.hooks.lifecycle.resolveShare);return r&&(r.lib=t,r.loaded=!0),t})();return this.setShared({pkgName:e,loaded:!1,shared:a,from:r.options.name,lib:null,loading:n}),n}}initializeSharing(e=ee,t){const{host:r}=this,n=null==t?void 0:t.from,o=null==t?void 0:t.strategy;let a=null==t?void 0:t.initScope;const i=[];if("build"!==n){const{initTokens:t}=this;a||(a=[]);let r=t[e];if(r||(r=t[e]={from:this.host.name}),a.indexOf(r)>=0)return i;a.push(r)}const s=this.shareScopeMap,c=r.options.name;s[e]||(s[e]={});const l=s[e],u=async t=>{const{module:n}=await r.remoteHandler.getRemoteModuleAndOptions({id:t});if(n.getEntry){let i;try{i=await n.getEntry()}catch(w){i=await r.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:t,error:w,from:"runtime",lifecycle:"beforeLoadShare",origin:r})}n.inited||(await(o=i,o&&o.init&&o.init(s[e],a)),n.inited=!0)}var o};return Object.keys(r.options.shared).forEach(t=>{r.options.shared[t].forEach(r=>{r.scope.includes(e)&&((e,t)=>{var r;const{version:n,eager:o}=t;l[e]=l[e]||{};const a=l[e],i=a[n],s=Boolean(i&&(i.eager||(null==(r=i.shareConfig)?void 0:r.eager)));(!i||"loaded-first"!==i.strategy&&!i.loaded&&(Boolean(!o)!==!s?o:c>i.from))&&(a[n]=t)})(t,r)})}),"version-first"!==r.options.shareStrategy&&"version-first"!==o||r.options.remotes.forEach(t=>{t.shareScope===e&&i.push(u(t.name))}),i}loadShareSync(e,t){const{host:r}=this,n=Ze({pkgName:e,extraOptions:t,shareInfos:r.options.shared});(null==n?void 0:n.scope)&&n.scope.forEach(e=>{this.initializeSharing(e,{strategy:n.strategy})});const o=Xe(this.shareScopeMap,e,n,this.hooks.lifecycle.resolveShare),a=e=>{e.useIn||(e.useIn=[]),N(e.useIn,r.options.name)};if(o){if("function"==typeof o.lib)return a(o),o.loaded||(o.loaded=!0,o.from===r.options.name&&(n.loaded=!0)),o.lib;if("function"==typeof o.get){const t=o.get();if(!(t instanceof Promise))return a(o),this.setShared({pkgName:e,loaded:!0,from:r.options.name,lib:t,shared:o}),t}}if(n.lib)return n.loaded||(n.loaded=!0),n.lib;if(n.get){const o=n.get();if(o instanceof Promise){const n="build"===(null==t?void 0:t.from)?f:d;throw new Error(b(n,y,{hostName:r.options.name,sharedPkgName:e}))}return n.lib=o,this.setShared({pkgName:e,loaded:!0,from:r.options.name,lib:n.lib,shared:n}),n.lib}throw new Error(b(d,y,{hostName:r.options.name,sharedPkgName:e}))}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:i,loaded:s,get:c}){const{version:l,scope:u="default"}=t,f=a(t,["version","scope"]);(Array.isArray(u)?u:[u]).forEach(t=>{if(this.shareScopeMap[t]||(this.shareScopeMap[t]={}),this.shareScopeMap[t][e]||(this.shareScopeMap[t][e]={}),!this.shareScopeMap[t][e][l])return this.shareScopeMap[t][e][l]=o({version:l,scope:["default"]},f,{lib:n,loaded:s,loading:i}),void(c&&(this.shareScopeMap[t][e][l].get=c));const r=this.shareScopeMap[t][e][l];i&&!r.loading&&(r.loading=i)})}_setGlobalShareScopeMap(e){const t=Je(),r=e.id||e.name;r&&!t[r]&&(t[r]=this.shareScopeMap)}constructor(e){this.hooks=new ft({afterResolve:new ut("afterResolve"),beforeLoadShare:new ut("beforeLoadShare"),loadShare:new st,resolveShare:new lt("resolveShare"),initContainerShareScopeMap:new lt("initContainerShareScopeMap")}),this.host=e,this.shareScopeMap={},this.initTokens={},this._setGlobalShareScopeMap(e.options)}}class At{formatAndRegisterRemote(e,t){return(t.remotes||[]).reduce((e,t)=>(this.registerRemote(t,e,{force:!1}),e),e.remotes)}setIdToRemoteMap(e,t){const{remote:r,expose:n}=t,{name:o,alias:a}=r;if(this.idToRemoteMap[e]={name:r.name,expose:n},a&&e.startsWith(o)){const t=e.replace(o,a);return void(this.idToRemoteMap[t]={name:r.name,expose:n})}if(a&&e.startsWith(a)){const t=e.replace(a,o);this.idToRemoteMap[t]={name:r.name,expose:n}}}async loadRemote(e,t){const{host:r}=this;try{const{loadFactory:n=!0}=t||{loadFactory:!0},{module:o,moduleOptions:a,remoteMatchInfo:i}=await this.getRemoteModuleAndOptions({id:e}),{pkgNameOrAlias:s,remote:c,expose:l,id:u,remoteSnapshot:f}=i,d=await o.get(u,l,t,f),p=await this.hooks.lifecycle.onLoad.emit({id:u,pkgNameOrAlias:s,expose:l,exposeModule:n?d:void 0,exposeModuleFactory:n?void 0:d,remote:c,options:a,moduleInstance:o,origin:r});return this.setIdToRemoteMap(e,i),"function"==typeof p?p:d}catch(w){const{from:o="runtime"}=t||{from:"runtime"},a=await this.hooks.lifecycle.errorLoadRemote.emit({id:e,error:w,from:o,lifecycle:"onLoad",origin:r});if(!a)throw w;return a}}async preloadRemote(e){const{host:t}=this;await this.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:e,options:t.options,origin:t});const r=function(e,t){return t.map(t=>{const r=function(e,t){for(const r of e){if(t===r.name)return r;if(r.alias&&t===r.alias)return r}}(e,t.nameOrAlias);return A(r,`Unable to preload ${t.nameOrAlias} as it is not included in ${!r&&(0,i.ML)({remoteInfo:r,remotes:e})}`),{remote:r,preloadConfig:dt(t)}})}(t.options.remotes,e);await Promise.all(r.map(async e=>{const{remote:r}=e,n=ot(r),{globalSnapshot:o,remoteSnapshot:a}=await t.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:r}),i=await this.hooks.lifecycle.generatePreloadAssets.emit({origin:t,preloadOptions:e,remote:r,remoteInfo:n,globalSnapshot:o,remoteSnapshot:a});i&&pt(n,t,i)}))}registerRemotes(e,t){const{host:r}=this;e.forEach(e=>{this.registerRemote(e,r.options.remotes,{force:null==t?void 0: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(w){if(n=await this.hooks.lifecycle.errorLoadRemote.emit({id:r,options:t.options,origin:t,from:"runtime",error:w,lifecycle:"beforeRequest"}),!n)throw w}const{id:a}=n,i=function(e,t){for(const r of e){const e=t.startsWith(r.name);let n=t.replace(r.name,"");if(e){if(n.startsWith("/"))return n=`.${n}`,{pkgNameOrAlias:r.name,expose:n,remote:r};if(""===n)return{pkgNameOrAlias:r.name,expose:".",remote:r}}const o=r.alias&&t.startsWith(r.alias);let a=r.alias&&t.replace(r.alias,"");if(r.alias&&o){if(a&&a.startsWith("/"))return a=`.${a}`,{pkgNameOrAlias:r.alias,expose:a,remote:r};if(""===a)return{pkgNameOrAlias:r.alias,expose:".",remote:r}}}}(t.options.remotes,a);A(i,b(u,y,{hostName:t.options.name,requestId:a}));const{remote:s}=i,c=ot(s),l=await t.sharedHandler.hooks.lifecycle.afterResolve.emit(o({id:a},i,{options:t.options,origin:t,remoteInfo:c})),{remote:f,expose:d}=l;A(f&&d,`The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ${a}.`);let p=t.moduleCache.get(f.name);const _={host:t,remoteInfo:c};return p||(p=new at(_),t.moduleCache.set(f.name,p)),{module:p,moduleOptions:_,remoteMatchInfo:l}}registerRemote(e,t,r){const{host:n}=this,o=()=>{if(e.alias){const r=t.find(t=>{var r;return e.alias&&(t.name.startsWith(e.alias)||(null==(r=t.alias)?void 0:r.startsWith(e.alias)))});A(!r,`The alias ${e.alias} of remote ${e.name} is not allowed to be the prefix of ${r&&r.name} name or alias`)}"entry"in e&&(0,i.OL)()&&!e.entry.startsWith("http")&&(e.entry=new URL(e.entry,window.location.origin).href),e.shareScope||(e.shareScope=ee),e.type||(e.type=te)};this.hooks.lifecycle.beforeRegisterRemote.emit({remote:e,origin:n});const a=t.find(t=>t.name===e.name);if(a){const s=[`The remote "${e.name}" is already registered.`,"Please note that overriding it may cause unexpected errors."];(null==r?void 0:r.force)&&(this.removeRemote(a),o(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:n}),(0,i.R8)(s.join(" ")))}else o(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:n})}removeRemote(e){try{const{host:r}=this,{name:n}=e,o=r.options.remotes.findIndex(e=>e.name===n);-1!==o&&r.options.remotes.splice(o,1);const a=r.moduleCache.get(e.name);if(a){const n=a.remoteInfo,o=n.entryGlobalName;var t;if(M[o])(null==(t=Object.getOwnPropertyDescriptor(M,o))?void 0:t.configurable)?delete M[o]:M[o]=void 0;const s=rt(a.remoteInfo);C[s]&&delete C[s],r.snapshotHandler.manifestCache.delete(n.entry);let c=n.buildVersion?(0,i.lG)(n.name,n.buildVersion):n.name;const l=M.__FEDERATION__.__INSTANCES__.findIndex(e=>n.buildVersion?e.options.id===c:e.name===c);if(-1!==l){const e=M.__FEDERATION__.__INSTANCES__[l];c=e.options.id||c;const t=Je();let r=!0;const o=[];Object.keys(t).forEach(e=>{const a=t[e];a&&Object.keys(a).forEach(t=>{const i=a[t];i&&Object.keys(i).forEach(a=>{const s=i[a];s&&Object.keys(s).forEach(i=>{const c=s[i];c&&"object"==typeof c&&c.from===n.name&&(c.loaded||c.loading?(c.useIn=c.useIn.filter(e=>e!==n.name),c.useIn.length?r=!1:o.push([e,t,a,i])):o.push([e,t,a,i]))})})})}),r&&(e.shareScopeMap={},delete t[c]),o.forEach(([e,r,n,o])=>{var a,i,s;null==(s=t[e])||(null==(i=s[r])||(null==(a=i[n])||delete a[o]))}),M.__FEDERATION__.__INSTANCES__.splice(l,1)}const{hostGlobalSnapshot:u}=yt(e,r);if(u){const t=u&&"remotesInfo"in u&&u.remotesInfo&&V(u.remotesInfo,e.name).key;t&&(delete u.remotesInfo[t],Boolean(U.__FEDERATION__.__MANIFEST_LOADING__[t])&&delete U.__FEDERATION__.__MANIFEST_LOADING__[t])}r.moduleCache.delete(e.name)}}catch(r){S.log("removeRemote fail: ",r)}}constructor(e){this.hooks=new ft({beforeRegisterRemote:new lt("beforeRegisterRemote"),registerRemote:new lt("registerRemote"),beforeRequest:new ut("beforeRequest"),onLoad:new st("onLoad"),handlePreloadModule:new it("handlePreloadModule"),errorLoadRemote:new st("errorLoadRemote"),beforePreloadRemote:new st("beforePreloadRemote"),generatePreloadAssets:new st("generatePreloadAssets"),afterPreloadRemote:new st,loadEntry:new st}),this.host=e,this.idToRemoteMap={}}}class wt{initOptions(e){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=ee,t){return this.sharedHandler.initializeSharing(e,t)}initRawContainer(e,t,r){const n=ot({name:e,entry:t}),o=new at({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{shared:r}=Ve(e,t),{userOptions:n,options:a}=this.hooks.lifecycle.beforeInit.emit({origin:this,userOptions:t,options:e,shareInfo:r}),i=this.remoteHandler.formatAndRegisterRemote(a,n),{shared:s}=this.sharedHandler.registerShared(a,n),c=[...a.plugins];n.plugins&&n.plugins.forEach(e=>{c.includes(e)||c.push(e)});const l=o({},e,t,{plugins:c,remotes:i,shared:s});return this.hooks.lifecycle.init.emit({origin:this,options:l}),l}registerPlugins(e){const t=function(e,t){const r=J();return r.length>0&&r.forEach(t=>{(null==e?void 0:e.find(e=>e.name!==t.name))&&e.push(t)}),e&&e.length>0&&e.forEach(e=>{t.forEach(t=>{t.applyPlugin(e)})}),e}(e,[this.hooks,this.remoteHandler.hooks,this.sharedHandler.hooks,this.snapshotHandler.hooks,this.loaderHook,this.bridgeHook]);this.options.plugins=this.options.plugins.reduce((e,t)=>t?(e&&!e.find(e=>e.name===t.name)&&e.push(t),e):e,t||[])}registerRemotes(e,t){return this.remoteHandler.registerRemotes(e,t)}constructor(e){this.hooks=new ft({beforeInit:new lt("beforeInit"),init:new it,beforeInitContainer:new ut("beforeInitContainer"),initContainer:new ut("initContainer")}),this.version="0.15.0",this.moduleCache=new Map,this.loaderHook=new ft({getModuleInfo:new it,createScript:new it,createLink:new it,fetch:new st,loadEntryError:new st,getModuleFactory:new st}),this.bridgeHook=new ft({beforeBridgeRender:new it,afterBridgeRender:new it,beforeBridgeDestroy:new it,afterBridgeDestroy:new it});const t=[{name:"snapshot-plugin",async afterResolve(e){const{remote:t,pkgNameOrAlias:r,expose:n,origin:a,remoteInfo:i,id:s}=e;if(!T(t)||!I(t)){const{remoteSnapshot:c,globalSnapshot:l}=await a.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:t,id:s});_t(i,c);const u={remote:t,preloadConfig:{nameOrAlias:r,exposes:[n],resourceCategory:"sync",share:!1,depsRemote:!1}},f=await a.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin:a,preloadOptions:u,remoteInfo:i,remote:t,remoteSnapshot:c,globalSnapshot:l});return f&&pt(i,a,f,!1),o({},e,{remoteSnapshot:c})}return e}},{name:"generate-preload-assets-plugin",async generatePreloadAssets(e){const{origin:t,preloadOptions:r,remoteInfo:n,remote:o,globalSnapshot:a,remoteSnapshot:s}=e;return(0,i.OL)()?T(o)&&I(o)?{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[{name:o.name,url:o.entry,moduleInfo:{name:n.name,entry:o.entry,type:n.type||"global",entryGlobalName:"",shareScope:""}}]}:(_t(n,s),Et(t,r,n,a,s)):{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[]}}}],r={id:"app:1.0.0",name:e.name,plugins:t,remotes:[],shared:{},inBrowser:(0,i.OL)()};this.name=e.name,this.options=r,this.snapshotHandler=new gt(this),this.sharedHandler=new St(this),this.remoteHandler=new At(this),this.shareScopeMap=this.sharedHandler.shareScopeMap,this.registerPlugins([...r.plugins,...e.plugins||[]]),this.options=this.formatOptions(r,e)}}let vt=null;function Nt(e){const t=(r=e.name,n=e.version,M.__FEDERATION__.__INSTANCES__.find(e=>"app:1.0.0"===e.options.id||e.options.name===r&&!e.options.version&&!n||!(e.options.name!==r||!n||e.options.version!==n)));var r,n;if(t)return t.initOptions(e),vt||(vt=t),t;{const t=j()||wt;return vt=new t(e),H(vt),vt}}function kt(...e){A(vt,"Please call init first");return vt.loadRemote.apply(vt,e)}function Tt(...e){A(vt,"Please call init first");return vt.loadShare.apply(vt,e)}function It(...e){A(vt,"Please call init first");return vt.loadShareSync.apply(vt,e)}function Pt(...e){return A(vt,"Please call init first"),vt.preloadRemote.apply(vt,e)}function Rt(...e){return A(vt,"Please call init first"),vt.registerRemotes.apply(vt,e)}function Ot(...e){return A(vt,"Please call init first"),vt.registerPlugins.apply(vt,e)}function $t(){return vt}q(wt);const Mt=["script"];function Lt(e){e.S&&!e.federation.hasAttachShareScopeMap&&e.federation.instance&&e.federation.instance.shareScopeMap&&(e.S=e.federation.instance.shareScopeMap,e.federation.hasAttachShareScopeMap=!0)}function Ut(){return Ut=Object.assign||function(e){for(var t=1;t{let t=a.R;t||(t=[]);const n=o[e],c=s[e];if(t.indexOf(n)>=0)return;if(t.push(n),n.p)return r.push(n.p);const l=t=>{t||(t=new Error("Container missing")),"string"==typeof t.message&&(t.message+=`\nwhile loading "${n[1]}" from ${n[2]}`),a.m[e]=()=>{throw t},n.p=0},u=(e,t,o,a,i,s)=>{try{const c=e(t,o);if(!c||!c.then)return i(c,a,s);{const e=c.then(e=>i(e,a),l);if(!s)return e;r.push(n.p=e)}}catch(w){l(w)}},f=(e,t,r)=>e?u(a.I,n[0],0,e,d,r):l();var d=(e,r,o)=>u(r.get,n[1],t,0,p,o),p=t=>{n.p=1,a.m[e]=e=>{e.exports=t()}};const _=()=>{try{const e=(0,i.e4)(c[0].name,i.yq)+n[1].slice(1),t=a.federation.instance,r=()=>a.federation.instance.loadRemote(e,{loadFactory:!1,from:"build"});return"version-first"===t.options.shareStrategy?Promise.all(t.sharedHandler.initializeSharing(n[0])).then(()=>r()):r()}catch(w){l(w)}};1===c.length&&Mt.includes(c[0].externalType)&&c[0].name?u(_,n[2],0,0,p,1):u(a,n[2],0,0,f,1)})},consumes:function(e){const{chunkId:t,promises:r,chunkMapping:n,installedModules:o,moduleToHandlerMapping:a,webpackRequire:i}=e;Lt(i),i.o(n,t)&&n[t].forEach(e=>{if(i.o(o,e))return r.push(o[e]);const t=t=>{o[e]=0,i.m[e]=r=>{delete i.c[e],r.exports=t()}},n=t=>{delete o[e],i.m[e]=r=>{throw delete i.c[e],t}};try{const s=i.federation.instance;if(!s)throw new Error("Federation instance not found!");const{shareKey:c,getter:l,shareInfo:u}=a[e],f=s.loadShare(c,{customShareInfo:u}).then(e=>!1===e?l():e);f.then?r.push(o[e]=f.then(t).catch(n)):t(f)}catch(s){n(s)}})},I:function({shareScopeName:e,webpackRequire:t,initPromises:r,initTokens:n,initScope:o}){const a=Array.isArray(e)?e:[e];var i=[],s=function(a){o||(o=[]);const i=t.federation.instance;var s=n[a];if(s||(s=n[a]={from:i.name}),o.indexOf(s)>=0)return;o.push(s);const c=r[a];if(c)return c;var l=r=>{var n=e=>{return t="Initialization of sharing external failed: "+e,"undefined"!=typeof console&&console.warn&&console.warn(t);var t};try{var i=t(r);if(!i)return;var s=r=>r&&r.init&&r.init(t.S[a],o,{shareScopeMap:t.S||{},shareScopeKeys:e});if(i.then)return u.push(i.then(s,n));var c=s(i);if(c&&"boolean"!=typeof c&&c.then)return u.push(c.catch(n))}catch(l){n(l)}};const u=i.initializeSharing(a,{strategy:i.options.shareStrategy,initScope:o,from:"build"});Lt(t);const f=t.federation.bundlerRuntimeOptions.remotes;return f&&Object.keys(f.idToRemoteMap).forEach(e=>{const t=f.idToRemoteMap[e],r=f.idToExternalAndNameMapping[e][2];if(t.length>1)l(r);else if(1===t.length){const e=t[0];Mt.includes(e.externalType)||l(r)}}),u.length?r[a]=Promise.all(u).then(()=>r[a]=!0):r[a]=!0};return a.forEach(e=>{i.push(s(e))}),Promise.all(i).then(()=>!0)},S:{},installInitialConsumes:function(e){const{moduleToHandlerMapping:t,webpackRequire:r,installedModules:n,initialConsumes:o}=e;o.forEach(e=>{r.m[e]=o=>{n[e]=0,delete r.c[e];const a=function(e){const{moduleId:t,moduleToHandlerMapping:r,webpackRequire:n}=e,o=n.federation.instance;if(!o)throw new Error("Federation instance not found!");const{shareKey:a,shareInfo:i}=r[t];try{return o.loadShareSync(a,{customShareInfo:i})}catch(s){throw console.error('loadShareSync failed! The function should not be called unless you set "eager:true". If you do not set it, and encounter this issue, you can check whether an async boundary is implemented.'),console.error("The original error message is as follows: "),s}}({moduleId:e,moduleToHandlerMapping:t,webpackRequire:r});if("function"!=typeof a)throw new Error(`Shared module is not available for eager consumption: ${e}`);o.exports=a()}})},initContainerEntry:function(e){const{webpackRequire:t,shareScope:r,initScope:n,shareScopeKey:o,remoteEntryInitOptions:a}=e;if(!t.S)return;if(!t.federation||!t.federation.instance||!t.federation.initOptions)return;const i=t.federation.instance;i.initOptions(Ut({name:t.federation.initOptions.name,remotes:[]},a));const s=null==a?void 0:a.shareScopeKeys,c=null==a?void 0:a.shareScopeMap;if(o&&"string"!=typeof o)o.forEach(e=>{if(!s||!c)return void i.initShareScopeMap(e,r,{hostShareScopeMap:(null==a?void 0:a.shareScopeMap)||{}});c[e]||(c[e]={});const t=c[e];i.initShareScopeMap(e,t,{hostShareScopeMap:(null==a?void 0:a.shareScopeMap)||{}})});else{const e=o||"default";Array.isArray(s)?s.forEach(e=>{c[e]||(c[e]={});const t=c[e];i.initShareScopeMap(e,t,{hostShareScopeMap:(null==a?void 0:a.shareScopeMap)||{}})}):i.initShareScopeMap(e,r,{hostShareScopeMap:(null==a?void 0:a.shareScopeMap)||{}})}return t.federation.attachShareScopeMap&&t.federation.attachShareScopeMap(t),"function"==typeof t.federation.prefetch&&t.federation.prefetch(),Array.isArray(o)?Boolean(t.federation.initOptions.shared)?t.I(o,n):Promise.all(o.map(e=>t.I(e,n))).then(()=>!0):t.I(o||"default",n)}},attachShareScopeMap:Lt,bundlerRuntimeOptions:{}};if(!r.federation.runtime){var xt=r.federation;for(var Ct in r.federation={},Dt)r.federation[Ct]=Dt[Ct];for(var Ct in xt)r.federation[Ct]=xt[Ct]}r.federation.instance||(r.federation.instance=r.federation.runtime.init(r.federation.initOptions),r.federation.attachShareScopeMap&&r.federation.attachShareScopeMap(r),r.federation.installInitialConsumes&&r.federation.installInitialConsumes(),!r.federation.isMFRemote&&r.federation.prefetch&&r.federation.prefetch())},65606:function(e){var t,r,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s,c=[],l=!1,u=-1;function f(){l&&s&&(l=!1,s.length?c=s.concat(c):u=-1,c.length&&d())}function d(){if(!l){var e=i(f);l=!0;for(var t=c.length;t;){for(s=c,c=[];++u1)for(var r=1;r{const n=e.split(r),o="development"===getProcessEnv().NODE_ENV&&t,a=e=>e.startsWith("http")||e.includes(MANIFEST_EXT);if(n.length>=2){let[t,...i]=n;e.startsWith(r)&&(t=n.slice(0,2).join(r),i=[o||n.slice(2).join(r)]);let s=o||i.join(r);return a(s)?{name:t,entry:s}:{name:t,version:s||"*"}}if(1===n.length){const[e]=n;return o&&a(o)?{name:e,entry:o}:{name:e,version:o||"*"}}throw`Invalid entry value: ${e}`},composeKeyWithSeparator=function(...e){return e.length?e.reduce((e,t)=>t?e?`${e}${SEPARATOR}${t}`:t:e,""):""},encodeName=function(e,t="",r=!1){try{const n=r?".js":"";return`${t}${e.replace(new RegExp(`${NameTransformSymbol.AT}`,"g"),NameTransformMap[NameTransformSymbol.AT]).replace(new RegExp(`${NameTransformSymbol.HYPHEN}`,"g"),NameTransformMap[NameTransformSymbol.HYPHEN]).replace(new RegExp(`${NameTransformSymbol.SLASH}`,"g"),NameTransformMap[NameTransformSymbol.SLASH])}${n}`}catch(n){throw n}},decodeName=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(`${NameTransformMap[NameTransformSymbol.AT]}`,"g"),EncodedNameTransformMap[NameTransformMap[NameTransformSymbol.AT]]).replace(new RegExp(`${NameTransformMap[NameTransformSymbol.SLASH]}`,"g"),EncodedNameTransformMap[NameTransformMap[NameTransformSymbol.SLASH]]).replace(new RegExp(`${NameTransformMap[NameTransformSymbol.HYPHEN]}`,"g"),EncodedNameTransformMap[NameTransformMap[NameTransformSymbol.HYPHEN]]),r&&(n=n.replace(".js","")),n}catch(n){throw n}},generateExposeFilename=(e,t)=>{if(!e)return"";let r=e;return"."===r&&(r="default_export"),r.startsWith("./")&&(r=r.replace("./","")),encodeName(r,"__federation_expose_",t)},generateShareFilename=(e,t)=>e?encodeName(e,"__federation_shared_",t):"",getResourceUrl=(e,t)=>{if("getPublicPath"in e){let r;return r=e.getPublicPath.startsWith("function")?new Function("return "+e.getPublicPath)()():new Function(e.getPublicPath)(),`${r}${t}`}return"publicPath"in e?isBrowserEnv()||isReactNativeEnv()||!("ssrPublicPath"in e)?`${e.publicPath}${t}`:`${e.ssrPublicPath}${t}`:(console.warn("Cannot get resource URL. If in debug mode, please ignore.",e,t),"")},assert=(e,t)=>{e||error(t)},error=e=>{throw new Error(`${LOG_CATEGORY}: ${e}`)},warn=e=>{console.warn(`${LOG_CATEGORY}: ${e}`)};function safeToString(e){try{return JSON.stringify(e,null,2)}catch(t){return""}}const VERSION_PATTERN_REGEXP=/^([\d^=v<>~]|[*xX]$)/;function isRequiredVersion(e){return VERSION_PATTERN_REGEXP.test(e)}const simpleJoinRemoteEntry=(e,t)=>{if(!e)return t;const r=(e=>{if("."===e)return"";if(e.startsWith("./"))return e.replace("./","");if(e.startsWith("/")){const t=e.slice(1);return t.endsWith("/")?t.slice(0,-1):t}return e})(e);return r?r.endsWith("/")?`${r}${t}`:`${r}/${t}`:t};function inferAutoPublicPath(e){return e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")}function generateSnapshotFromManifest(e,t={}){var r,n;const{remotes:o={},overrides:a={},version:i}=t;let s;const c=()=>"publicPath"in e.metaData?"auto"===e.metaData.publicPath&&i?inferAutoPublicPath(i):e.metaData.publicPath:e.metaData.getPublicPath,l=Object.keys(a);let u={};var f;Object.keys(o).length||(u=(null==(f=e.remotes)?void 0:f.reduce((e,t)=>{let r;const n=t.federationContainerName;return r=l.includes(n)?a[n]:"version"in t?t.version:t.entry,e[n]={matchedVersion:r},e},{}))||{});Object.keys(o).forEach(e=>u[e]={matchedVersion:l.includes(e)?a[e]:o[e]});const{remoteEntry:{path:d,name:p,type:_},types:h,buildInfo:{buildVersion:m},globalName:b,ssrRemoteEntry:E}=e.metaData,{exposes:y}=e;let g={version:i||"",buildVersion:m,globalName:b,remoteEntry:simpleJoinRemoteEntry(d,p),remoteEntryType:_,remoteTypes:simpleJoinRemoteEntry(h.path,h.name),remoteTypesZip:h.zip||"",remoteTypesAPI:h.api||"",remotesInfo:u,shared:null==e?void 0:e.shared.map(e=>({assets:e.assets,sharedName:e.name,version:e.version})),modules:null==y?void 0:y.map(e=>({moduleName:e.name,modulePath:e.path,assets:e.assets}))};if(null==(r=e.metaData)?void 0:r.prefetchInterface){const t=e.metaData.prefetchInterface;g=(0,_polyfills_esm_js__WEBPACK_IMPORTED_MODULE_0__._)({},g,{prefetchInterface:t})}if(null==(n=e.metaData)?void 0:n.prefetchEntry){const{path:t,name:r,type:n}=e.metaData.prefetchEntry;g=(0,_polyfills_esm_js__WEBPACK_IMPORTED_MODULE_0__._)({},g,{prefetchEntry:simpleJoinRemoteEntry(t,r),prefetchEntryType:n})}if(s="publicPath"in e.metaData?(0,_polyfills_esm_js__WEBPACK_IMPORTED_MODULE_0__._)({},g,{publicPath:c(),ssrPublicPath:e.metaData.ssrPublicPath}):(0,_polyfills_esm_js__WEBPACK_IMPORTED_MODULE_0__._)({},g,{getPublicPath:c()}),E){const e=simpleJoinRemoteEntry(E.path,E.name);s.ssrRemoteEntry=e,s.ssrRemoteEntryType=E.type||"commonjs-module"}return s}function isManifestProvider(e){return!(!("remoteEntry"in e)||!e.remoteEntry.includes(MANIFEST_EXT))}const PREFIX="[ Module Federation ]";let Logger=class{setPrefix(e){this.prefix=e}log(...e){console.log(this.prefix,...e)}warn(...e){console.log(this.prefix,...e)}error(...e){console.log(this.prefix,...e)}success(...e){console.log(this.prefix,...e)}info(...e){console.log(this.prefix,...e)}ready(...e){console.log(this.prefix,...e)}debug(...e){isDebugMode()&&console.log(this.prefix,...e)}constructor(e){this.prefix=e}};function createLogger(e){return new Logger(e)}const logger=createLogger(PREFIX);async function safeWrapper(e,t){try{return await e()}catch(r){return void(!t&&warn(r))}}function isStaticResourcesEqual(e,t){const r=/^(https?:)?\/\//i;return e.replace(r,"").replace(/\/$/,"")===t.replace(r,"").replace(/\/$/,"")}function createScript(e){let t,r=null,n=!0,o=2e4;const a=document.getElementsByTagName("script");for(let s=0;s{r&&("async"===e||"defer"===e?r[e]=t[e]:r.getAttribute(e)||r.setAttribute(e,t[e]))})}const i=async(n,o)=>{clearTimeout(t);const a=()=>{"error"===(null==o?void 0:o.type)?(null==e?void 0:e.onErrorCallback)&&(null==e||e.onErrorCallback(o)):(null==e?void 0:e.cb)&&(null==e||e.cb())};if(r&&(r.onerror=null,r.onload=null,safeWrapper(()=>{const{needDeleteScript:t=!0}=e;t&&(null==r?void 0:r.parentNode)&&r.parentNode.removeChild(r)}),n&&"function"==typeof n)){const e=n(o);if(e instanceof Promise){const t=await e;return a(),t}return a(),e}a()};return r.onerror=i.bind(null,r.onerror),r.onload=i.bind(null,r.onload),t=setTimeout(()=>{i(null,new Error(`Remote script "${e.url}" time-outed.`))},o),{script:r,needAttach:n}}function createLink(e){let t=null,r=!0;const n=document.getElementsByTagName("link");for(let a=0;a{t&&!t.getAttribute(e)&&t.setAttribute(e,n[e])})}const o=(r,n)=>{const o=()=>{"error"===(null==n?void 0:n.type)?(null==e?void 0:e.onErrorCallback)&&(null==e||e.onErrorCallback(n)):(null==e?void 0:e.cb)&&(null==e||e.cb())};if(t&&(t.onerror=null,t.onload=null,safeWrapper(()=>{const{needDeleteLink:r=!0}=e;r&&(null==t?void 0:t.parentNode)&&t.parentNode.removeChild(t)}),r)){const e=r(n);return o(),e}o()};return t.onerror=o.bind(null,t.onerror),t.onload=o.bind(null,t.onload),{link:t,needAttach:r}}function loadScript(e,t){const{attrs:r={},createScriptHook:n}=t;return new Promise((t,o)=>{const{script:a,needAttach:i}=createScript({url:e,cb:t,onErrorCallback:o,attrs:(0,_polyfills_esm_js__WEBPACK_IMPORTED_MODULE_0__._)({fetchpriority:"high"},r),createScriptHook:n,needDeleteScript:!0});i&&document.head.appendChild(a)})}function importNodeModule(e){if(!e)throw new Error("import specifier is required");return new Function("name","return import(name)")(e).then(e=>e).catch(t=>{throw console.error(`Error importing module ${e}:`,t),t})}const loadNodeFetch=async()=>{const e=await importNodeModule("node-fetch");return e.default||e},lazyLoaderHookFetch=async(e,t,r)=>{const n=await((e,t)=>r.lifecycle.fetch.emit(e,t))(e,t||{});if(!(n&&n instanceof Response)){return("undefined"==typeof fetch?await loadNodeFetch():fetch)(e,t||{})}return n},createScriptNode="undefined"==typeof ENV_TARGET||"web"!==ENV_TARGET?(url,cb,attrs,loaderHook)=>{if(null==loaderHook?void 0:loaderHook.createScriptHook){const e=loaderHook.createScriptHook(url);e&&"object"==typeof e&&"url"in e&&(url=e.url)}let urlObj;try{urlObj=new URL(url)}catch(e){return console.error("Error constructing URL:",e),void cb(new Error(`Invalid URL: ${e}`))}const getFetch=async()=>(null==loaderHook?void 0:loaderHook.fetch)?(e,t)=>lazyLoaderHookFetch(e,t,loaderHook):"undefined"==typeof fetch?loadNodeFetch():fetch,handleScriptFetch=async(f,urlObj)=>{try{var _vm_constants;const res=await f(urlObj.href),data=await res.text(),[path,vm]=await Promise.all([importNodeModule("path"),importNodeModule("vm")]),scriptContext={exports:{},module:{exports:{}}},urlDirname=urlObj.pathname.split("/").slice(0,-1).join("/"),filename=path.basename(urlObj.pathname);var _vm_constants_USE_MAIN_CONTEXT_DEFAULT_LOADER;const script=new vm.Script(`(function(exports, module, require, __dirname, __filename) {${data}\n})`,{filename:filename,importModuleDynamically:null!=(_vm_constants_USE_MAIN_CONTEXT_DEFAULT_LOADER=null==(_vm_constants=vm.constants)?void 0:_vm_constants.USE_MAIN_CONTEXT_DEFAULT_LOADER)?_vm_constants_USE_MAIN_CONTEXT_DEFAULT_LOADER:importNodeModule});script.runInThisContext()(scriptContext.exports,scriptContext.module,eval("require"),urlDirname,filename);const exportedInterface=scriptContext.module.exports||scriptContext.exports;if(attrs&&exportedInterface&&attrs.globalName){const e=exportedInterface[attrs.globalName]||exportedInterface;return void cb(void 0,e)}cb(void 0,exportedInterface)}catch(e){cb(e instanceof Error?e:new Error(`Script execution error: ${e}`))}};getFetch().then(async e=>{if("esm"===(null==attrs?void 0:attrs.type)||"module"===(null==attrs?void 0:attrs.type))return loadModule(urlObj.href,{fetch:e,vm:await importNodeModule("vm")}).then(async e=>{await e.evaluate(),cb(void 0,e.namespace)}).catch(e=>{cb(e instanceof Error?e:new Error(`Script execution error: ${e}`))});handleScriptFetch(e,urlObj)}).catch(e=>{cb(e)})}:(e,t,r,n)=>{t(new Error("createScriptNode is disabled in non-Node.js environment"))},loadScriptNode="undefined"==typeof ENV_TARGET||"web"!==ENV_TARGET?(e,t)=>new Promise((r,n)=>{createScriptNode(e,(e,o)=>{if(e)n(e);else{var a,i;const e=(null==t||null==(a=t.attrs)?void 0:a.globalName)||`__FEDERATION_${null==t||null==(i=t.attrs)?void 0:i.name}:custom__`,n=globalThis[e]=o;r(n)}},t.attrs,t.loaderHook)}):(e,t)=>{throw new Error("loadScriptNode is disabled in non-Node.js environment")};async function loadModule(e,t){const{fetch:r,vm:n}=t,o=await r(e),a=await o.text(),i=new n.SourceTextModule(a,{importModuleDynamically:async(r,n)=>loadModule(new URL(r,e).href,t)});return await i.link(async r=>{const n=new URL(r,e).href;return await loadModule(n,t)}),i}function normalizeOptions(e,t,r){return function(n){if(!1===n)return!1;if(void 0===n)return!!e&&t;if(!0===n)return t;if(n&&"object"==typeof n)return(0,_polyfills_esm_js__WEBPACK_IMPORTED_MODULE_0__._)({},t,n);throw new Error(`Unexpected type for \`${r}\`, expect boolean/undefined/object, got: ${typeof n}`)}}},83419:function(e,t,r){"use strict";function n(){return n=Object.assign||function(e){for(var t=1;t=0)){if(n.push(o),e[r])return e[r];__webpack_require__.o(__webpack_require__.S,r)||(__webpack_require__.S[r]={});var a=__webpack_require__.S[r],i="cloudportal",s=function(e,t,r,n){var o=a[e]=a[e]||{},s=o[t];(!s||!s.loaded&&(!n!=!s.eager?n:i>s.from))&&(o[t]={get:r,from:i,eager:!!n})},c=[];if("default"===r)s("@nipacloud/nc-design-system","4.1.15-beta.3",function(){return Promise.all([__webpack_require__.e(8491),__webpack_require__.e(7335)]).then(function(){return function(){return __webpack_require__(17335)}})}),s("@nipacloud/nc-sdk","1.1.7",function(){return __webpack_require__.e(5521).then(function(){return function(){return __webpack_require__(35521)}})});return c.length?e[r]=Promise.all(c).then(function(){return e[r]=1}):e[r]=1}}}(),function(){__webpack_require__.federation.initOptions.shared={"@nipacloud/nc-design-system":[{version:"4.1.15-beta.3",get:function(){return Promise.all([__webpack_require__.e(8491),__webpack_require__.e(7335)]).then(function(){return function(){return __webpack_require__(17335)}})},scope:["default"],shareConfig:{eager:!1,singleton:!0,layer:null}}],"@nipacloud/nc-sdk":[{version:"1.1.7",get:function(){return __webpack_require__.e(5521).then(function(){return function(){return __webpack_require__(35521)}})},scope:["default"],shareConfig:{eager:!1,singleton:!0,layer:null}}]},__webpack_require__.S={};var e={},t={};__webpack_require__.I=function(r,n){return __webpack_require__.federation.bundlerRuntime.I({shareScopeName:r,webpackRequire:__webpack_require__,initPromises:e,initTokens:t,initScope:n})}}(),__webpack_require__.p="/",installedModules={},moduleToHandlerMapping={85038:{getter:function(){return __webpack_require__.e(7902).then(function(){return function(){return __webpack_require__(35521)}})},shareInfo:{shareConfig:{fixedDependencies:!1,requiredVersion:"1.1.7",strictVersion:!1,singleton:!0,eager:!1},scope:["default"]},shareKey:"@nipacloud/nc-sdk"},99110:{getter:function(){return Promise.all([__webpack_require__.e(8491),__webpack_require__.e(7335)]).then(function(){return function(){return __webpack_require__(17335)}})},shareInfo:{shareConfig:{fixedDependencies:!1,requiredVersion:"4.1.15-beta.3",strictVersion:!1,singleton:!0,eager:!1},scope:["default"]},shareKey:"@nipacloud/nc-design-system"}},chunkMapping={1257:[85038,99110]},__webpack_require__.f.consumes=function(e,t){__webpack_require__.federation.bundlerRuntime.consumes({chunkMapping:chunkMapping,installedModules:installedModules,chunkId:e,moduleToHandlerMapping:moduleToHandlerMapping,promises:t,webpackRequire:__webpack_require__})},function(){if("undefined"!=typeof document){var e=function(e){return new Promise(function(t,r){var n=__webpack_require__.miniCssF(e),o=__webpack_require__.p+n;if(function(e,t){for(var r=document.getElementsByTagName("link"),n=0;n