1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets35968757485/localSharedImportMap-MlDq2sT9.js","assets35968757485/preload-helper-B-fPAXoJ.js"])))=>i.map(i=>d[i]); 2import{_ as or}from"./preload-helper-B-fPAXoJ.js";(function(){try{var e=typeof window<"u"?window:typeof y<"u"?y:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c12a5c32-5525-4538-a090-71cc17fa011e",e._sentryDebugIdIdentifier="sentry-dbid-c12a5c32-5525-4538-a090-71cc17fa011e")}catch{}})();var sr={},ir={},bt={},T={},C={},N={};const an="federation-manifest.json",ln=".json",cn="FEDERATION_DEBUG",W={AT:"@",HYPHEN:"-",SLASH:"/"},Ce={[W.AT]:"scope_",[W.HYPHEN]:"_",[W.SLASH]:"__"},un={[Ce[W.AT]]:W.AT,[Ce[W.HYPHEN]]:W.HYPHEN,[Ce[W.SLASH]]:W.SLASH},fn=":",dn="mf-manifest.json",_n="mf-stats.json",hn={NPM:"npm",APP:"app"},mn="__MF_DEVTOOLS_MODULE_INFO__",pn="ENCODE_NAME_PREFIX",gn=".federation",En={identifier:"MFDataPrefetch",globalKey:"__PREFETCH__",library:"mf-data-prefetch",exportsKey:"__PREFETCH_EXPORTS__",fileName:"bootstrap.js"};let yn=(function(e){return e[e.UNKNOWN=1]="UNKNOWN",e[e.CALCULATED=2]="CALCULATED",e[e.NO_USE=0]="NO_USE",e})({});N.BROWSER_LOG_KEY=cn;N.ENCODE_NAME_PREFIX=pn;N.EncodedNameTransformMap=un;N.FederationModuleManifest=an;N.MANIFEST_EXT=ln;N.MFModuleType=hn;N.MFPrefetchCommon=En;N.MODULE_DEVTOOL_IDENTIFIER=mn;N.ManifestFileName=dn;N.NameTransformMap=Ce;N.NameTransformSymbol=W;N.SEPARATOR=fn;N.StatsFileName=_n;N.TEMP_DIR=gn;N.TreeShakingStatus=yn;var ar={},te={},vt=Object.defineProperty,Sn=(e,t)=>{let r={};for(var n in e)vt(r,n,{get:e[n],enumerable:!0});return t||vt(r,Symbol.toStringTag,{value:"Module"}),r};te.__exportAll=Sn;(function(e){var r=te.__exportAll({});Object.defineProperty(e,"ContainerPlugin_exports",{enumerable:!0,get:function(){return r}})})(ar);var lr={};(function(e){var r=te.__exportAll({});Object.defineProperty(e,"ContainerReferencePlugin_exports",{enumerable:!0,get:function(){return r}})})(lr);var cr={};(function(e){var r=te.__exportAll({});Object.defineProperty(e,"ModuleFederationPlugin_exports",{enumerable:!0,get:function(){return r}})})(cr);var ur={};(function(e){var r=te.__exportAll({});Object.defineProperty(e,"SharePlugin_exports",{enumerable:!0,get:function(){return r}})})(ur);var fr={};(function(e){var r=te.__exportAll({});Object.defineProperty(e,"ConsumeSharedPlugin_exports",{enumerable:!0,get:function(){return r}})})(fr);var dr={};(function(e){var r=te.__exportAll({});Object.defineProperty(e,"ProvideSharedPlugin_exports",{enumerable:!0,get:function(){return r}})})(dr);var z={},Se={PB2_WEBSITE:"phantombuster",PB2_ENV:"prod",PB2_API_URL:"https://api.phantombuster.com",PB2_API_V_3_URL:"https://api.tealde.ai",PB2_API_V_3_URL_LEGACY:"https://pbai-api.phantombuster.com",PB2_FRONT_URL:"https://phantombuster.com",PB2_FRONT_V_3_DOMAIN:"app.tealde.ai",PB2_FRONT_V_3_DOMAIN_LEGACY:"app.phantombuster.com",PB2_GTM_CONTAINER_ID:"GTM-TLH26NP",PB2_GTM_SCRIPT:`
vendor: 335 bytes, lines 2-6
2(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 3 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 4 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 5 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); 6 })(window,document,'script','dataLayer','
6GTM-TLH26NP
vendor: 3 bytes, line 6
6');
6`,PB2_POUT_PROJECT:"proj_CKsuBNQWVJ43Ilo0YgSRfGtYuOAoefFP",PB2_DISQUS_SHORTNAME:"phantombuster",PB2_RECAPTCHA_SITE_KEY:"6LfVHL8UAAAAABmVzF_I4A_4iCfTQa-xsZq6q-FI",PB2_SPA_CONFIG_URL:"https://static.phantombuster.com/spa_config_prod.json",PB2_ANNOUNCE_KIT_WIDGET_URL:"https://announcekit.app/widgets/v2/1zKSY0",PB2_ANNOUNCE_KIT_BADGE_WIDGET_URL:"https://announcekit.app/widgets/v2/3ViYXC",PB2_ZENDESK_WIDGET_KEY:"bbf9036d-67ee-4c1a-90d1-7d5f86174ca1",PB2_SALES_BANNER_CUSTOM_PLAN_FORM_URL:"https://phantombuster.typeform.com/to/XNR9gY7r",PB2_HELP_CENTER_URL:"https://support.phantombuster.com/hc/en-us",PB2_DISCOVER_PAGE_URL:"https://discover.phantombuster.com",PB2_SENTRY_RELEASE:"de5a419e036696ea3cf370bb642282abd0d66366",PB2_SENTRY_DSN:"https://[email protected]/1737360",PB2_QUADERNO_URL:"https://thephantomcompany.quadernoapp.com",PB2_LEGAL_NOTICE_URL:"https://phantombuster.com/legal/legal-notice/",PB2_TERMS_OF_SERVICE_URL:"https://phantombuster.com/legal/terms-and-conditions/",PB2_PRIVACY_POLICY_URL:"https://phantombuster.com/legal/privacy-policy/",PB2_NEWSLETTER_URL:"https://0b31728f.sibforms.com/serve/MUIFAOY9pY4pxmU39VHzQOBK41ieaWaJfAbbLbMG9xdx8MrGq2P8vgLYHdLEvA9fm6AQUqPigEU3o-P_GjoH0kp4LTiOyXW51UFYkd4R2oGK-8TyX9jwEwQuwvRm9436rgjZkLfdPbN_TVpBw70CNX-aLlDoiNf-_eU1DlluRGEMbf929i_BdE6SXyXUVoav6b455jRDUIZK4Ug1",PB2_REFUND_POLICY_URL:"https://support.phantombuster.com/hc/en-us/articles/14947032957842",PB2_USERPILOT_APP_TOKEN:"NX-85fab136",PB2_LINKEDIN_PROFILE_VISITOR_SCRIPT_ID:"3112",PB2_LINKEDIN_PROFILE_SCRAPER_SCRIPT_ID:"5589386912058181",PB2_HUBSPOT_CONTACT_DATA_ENRICHER_SCRIPT_ID:"7401331807175971",PB2_HUBSPOT_CONTACT_SENDER_SCRIPT_ID:"1386033999114383",PB2_LINKEDIN_COMPANY_FOLLOW_INVITER_SCRIPT_ID:"1298207880720700",PB2_LINKEDIN_COMPANY_PAGE_INVITER_SCRIPT_ID:"8522029843786898",PB2_LINKEDIN_EVENT_INVITE_SENDER_SCRIPT_ID:"2814528681070599",PB2_LINKEDIN_EVENT_INVITER_SCRIPT_ID:"6130059528224195",PB2_LINKEDIN_POST_COMMENTER_AND_LIKER_SCRAPER_SCRIPT_ID:"5251160215300729",PB2_LINKEDIN_COMPANY_POST_COMMENTER_AND_LIKER_SCRAPER_SCRIPT_ID:"4003685378884650",PB2_LINKEDIN_PROFILE_POST_COMMENTER_AND_LIKER_SCRAPER_SCRIPT_ID:"1822748022045543",PB2_LINKEDIN_POST_ENGAGERS_TO_LEAD_OUTREACH_SCRIPT_ID:"811469274539266",PB2_LINKEDIN_OUTREACH_SCRIPT_ID:"4545709793535249",PB2_LINKEDIN_SEARCH_TO_LEAD_OUTREACH_SCRIPT_ID:"6276867532496207",PB2_SALES_NAVIGATOR_SEARCH_TO_LEAD_OUTREACH_SCRIPT_ID:"990186133186253",PB2_LINKEDIN_GROUP_MEMBERS_TO_OUTREACH_SCRIPT_ID:"2246643678897122",PB2_LINKEDIN_POST_COMMENTERS_EXPORT_TO_OUTREACH_SCRIPT_ID:"6793226007136137",PB2_LINKEDIN_COMPANY_FOLLOWER_COLLECTOR_TO_OUTREACH_SCRIPT_ID:"7972540039693475",PB2_LINKEDIN_PERSONAL_EMAIL_EXTRACTOR_SCRIPT_ID:"18231",PB2_ADA_HANDLE:"phantombuster-gr",PB2_LINKEDIN_SEARCH_TO_OUTREACH_SCRIPT_ID:"8154936279314174",PB2_LINKEDIN_INDUSTRIES_URL:"https://phantombuster-static.s3.eu-west-1.amazonaws.com/company/industries.json",PB2_LINKEDIN_COMPANY_LOGO_URL_FOLDER:"https://static.phantombuster.com/company/prod/logos/",PB2_NOVU_APPLICATION_ID:"A6hTQ_F6SWTT",PB2_STYTCH_PUBLIC_TOKEN:"public-token-test-951754c5-2535-4561-90b8-5e7112fb2ec2",PB2_STYTCH_TOKEN_PROFILE_ID:"trusted-token-profile-test-4a7b8a1c-fc64-48ac-be17-71632f78fa37",PB2_CUSTOMER_IO_API_KEY:"1e214306c90b4ccaf646",PB2_CUSTOMER_IO_API_KEY_TESTING:"a12ef05b743e8102b15f",PB2_CUSTOMER_IO_SITE_ID:"c38c458db6669dd1431e",PB2_BANNED_EMAIL_DOMAINS_URL:"https://phantombuster-static.s3.eu-west-1.amazonaws.com/analytics/bannedEmailDomains.json",PB2_GH_DISPOSABLE_EMAIL_DOMAINS_URL:"https://phantombuster-static.s3.eu-west-1.amazonaws.com/analytics/ghDisposableEmailDomains.json"};const Rn=N,_r=!0;function hr(){return _r}function bn(){return typeof navigator<"u"&&navigator?.product==="ReactNative"}function In(){try{if(hr()&&window.localStorage)return!!localStorage.getItem(Rn.BROWSER_LOG_KEY)}catch{return!1}return!1}function Tn(){return typeof process<"u"&&Se&&Se.FEDERATION_DEBUG?!!Se.FEDERATION_DEBUG:typeof FEDERATION_DEBUG<"u"&&FEDERATION_DEBUG?!0:In()}const Nn=function(){return typeof process<"u"&&Se?Se:{}};z.getProcessEnv=Nn;z.isBrowserEnv=hr;z.isBrowserEnvValue=_r;z.isDebugMode=Tn;z.isReactNativeEnv=bn;var k={};const S=N,ft=z,mr="[ Federation Runtime ]",Pn=(e,t,r=S.SEPARATOR)=>{const n=e.split(r),o=ft.getProcessEnv().NODE_ENV==="development"&&t,s="*",i=a=>a.startsWith("http")||a.includes(S.MANIFEST_EXT);if(n.length>=2){let[a,...c]=n;e.startsWith(r)&&(a=n.slice(0,2).join(r),c=[o||n.slice(2).join(r)]);let l=o||c.join(r);return i(l)?{name:a,entry:l}:{name:a,version:l||s}}else if(n.length===1){const[a]=n;return o&&i(o)?{name:a,entry:o}
6:{name:a,version:o||s}}else throw`Invalid entry value: ${e}`},Mn=function(...e){return e.length?e.reduce((t,r)=>r?t?`${t}${S.SEPARATOR}${r}`:r:t,""):""},It=function(e,t="",r=!1){try{const n=r?".js":"";return`${t}${e.replace(new RegExp(`${S.NameTransformSymbol.AT}`,"g"),S.NameTransformMap[S.NameTransformSymbol.AT]).replace(new RegExp(`${S.NameTransformSymbol.HYPHEN}`,"g"),S.NameTransformMap[S.NameTransformSymbol.HYPHEN]).replace(new RegExp(`${S.NameTransformSymbol.SLASH}`,"g"),S.NameTransformMap[S.NameTransformSymbol.SLASH])}${n}`}catch(n){throw n}},On=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(`${S.NameTransformMap[S.NameTransformSymbol.AT]}`,"g"),S.EncodedNameTransformMap[S.NameTransformMap[S.NameTransformSymbol.AT]]).replace(new RegExp(`${S.NameTransformMap[S.NameTransformSymbol.SLASH]}`,"g"),S.EncodedNameTransformMap[S.NameTransformMap[S.NameTransformSymbol.SLASH]]).replace(new RegExp(`${S.NameTransformMap[S.NameTransformSymbol.HYPHEN]}`,"g"),S.EncodedNameTransformMap[S.NameTransformMap[S.NameTransformSymbol.HYPHEN]]),r&&(n=n.replace(".js","")),n}catch(n){throw n}},An=(e,t)=>{if(!e)return"";let r=e;return r==="."&&(r="default_export"),r.startsWith("./")&&(r=r.replace("./","")),It(r,"__federation_expose_",t)},vn=(e,t)=>e?It(e,"__federation_shared_",t):"",Ln=(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?!ft.isBrowserEnv()&&!ft.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),"")},Dn=(e,t)=>{e||pr(t)},pr=e=>{throw new Error(`${mr}: ${e}`)},wn=e=>{console.warn(`${mr}: ${e}`)};function $n(e){try{return JSON.stringify(e,null,2)}catch{return""}}const Cn=/^([\d^=v<>~]|[*xX]$)/;function kn(e){return Cn.test(e)}k.assert=Dn;k.composeKeyWithSeparator=Mn;k.decodeName=On;k.encodeName=It;k.error=pr;k.generateExposeFilename=An;k.generateShareFilename=vn;k.getResourceUrl=Ln;k.isRequiredVersion=kn;k.parseEntry=Pn;k.safeToString=$n;k.warn=wn;var ce={};const ge=N,Z=(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 gr(e){return e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")}function Fn(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?gr(o):e.metaData.publicPath:e.metaData.getPublicPath,a=Object.keys(n);let c={};Object.keys(r).length||(c=e.remotes?.reduce((p,P)=>{let D;const A=P.federationContainerName;return a.includes(A)?D=n[A]:"version"in P?D=P.version:D=P.entry,p[A]={matchedVersion:D},p},{})||{}),Object.keys(r).forEach(p=>c[p]={matchedVersion:a.includes(p)?n[p]:r[p]});
6const{remoteEntry:{path:l,name:u,type:f},types:d={path:"",name:"",zip:"",api:""},buildInfo:{buildVersion:_},globalName:h,ssrRemoteEntry:m}=e.metaData,{exposes:E}=e;let g={version:o||"",buildVersion:_,globalName:h,remoteEntry:Z(l,u),remoteEntryType:f,remoteTypes:Z(d.path,d.name),remoteTypesZip:d.zip||"",remoteTypesAPI:d.api||"",remotesInfo:c,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:P,type:D}=e.metaData.prefetchEntry;g={...g,prefetchEntry:Z(p,P),prefetchEntryType:D}}if("publicPath"in e.metaData?(s={...g,publicPath:i()},typeof e.metaData.ssrPublicPath=="string"&&(s.ssrPublicPath=e.metaData.ssrPublicPath)):s={...g,getPublicPath:i()},m){const p=Z(m.path,m.name);s.ssrRemoteEntry=p,s.ssrRemoteEntryType=m.type||"commonjs-module"}return s}function Un(e){return!!("remoteEntry"in e&&e.remoteEntry.includes(ge.MANIFEST_EXT))}function Hn(e){if(!e)return{statsFileName:ge.StatsFileName,manifestFileName:ge.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,c)=>a.replace(n,`${c}${n}`),i=r?o(r):ge.ManifestFileName;return{statsFileName:Z(t,r?s(i,"-stats"):ge.StatsFileName),manifestFileName:Z(t,i)}}ce.generateSnapshotFromManifest=Fn;ce.getManifestFileName=Hn;ce.inferAutoPublicPath=gr;ce.isManifestProvider=Un;ce.simpleJoinRemoteEntry=Z;var ue={};const Lt=z,Er="[ Module Federation ]",me=console,Gn=["logger.ts","logger.js","captureStackTrace","Logger.emit","Logger.log","Logger.info","Logger.warn","Logger.error","Logger.debug"];function qn(){try{const e=new Error().stack;if(!e)return;const[,...t]=e.split(` 7`),r=t.filter(n=>!Gn.some(o=>n.includes(o)));return r.length?`Stack trace: 8${r.slice(0,5).join(` 9`)}`:void 0}catch{return}}var yr=class{constructor(e,t=me){this.prefix=e,this.delegate=t??me}setPrefix(e){this.prefix=e}setDelegate(e){this.delegate=e??me}emit(e,t){const r=this.delegate,n=Lt.isDebugMode()?qn():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=me[i];if(typeof a=="function"){a.call(me,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 Sr(e){return new yr(e)}function Rr(e){const t=new yr(e);return Object.defineProperty(t,"__mf_infrastructure_logger__",{value:!0,enumerable:!1,configurable:!1}),t}function Bn(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 Wn=Sr(Er),Vn=Rr(Er);ue.bindLoggerToCompiler=Bn;ue.createInfrastructureLogger=Rr;ue.createLogger=Sr;ue.infrastructureLogger=Vn;ue.logger=Wn;var fe={};const jn=k;async function Tt(e,t){try{return await e()}catch(r){!t&&jn.warn(r);return}}function Ge(e,t){const r=/^(https?:)?\/\//i;return e.replace(r,"").replace(/\/$/,"")===t.replace(r,"").replace(/\/$/,"")}function br(e){let t=null,r=!0,n=2e4,o;const s=document.getElementsByTagName("script");for(let l=0;l<s.length;l++){const u=s[l],f=u.getAttribute("src");if(f&&Ge(f,e.url)){t=u,r=!1;break}}if(!t){const l=e.attrs;t=document.createElement("script"),t.type=l?.type==="module"?"module":"text/javascript";let u;e.createScriptHook&&(u=e.createScriptHook(e.url,e.attrs),u instanceof HTMLScriptElement?t=u:typeof u=="object"&&("script"in u&&u.script&&(t=u.script),"timeout"in u&&u.timeout&&(n=u.timeout))),t.src||(t.src=e.url),l&&!u&&Object.keys(l).forEach(f=>{t&&(f==="async"||f==="defer"?t[f]=l[f]:t.getAttribute(f)||t.setAttribute(f,l[f]))})}let i=null;const a=typeof window<"u"?l=>{if(l.filename&&Ge(l.filename,e.url)){const u=new Error(`ScriptExecutionError: Script "${e.url}" loaded but threw a runtime error during execution: ${l.message} (${l.filename}:${l.lineno}:${l.colno})`);u.name="ScriptExecutionError",i=u}}:null;a&&window.addEventListener("error",a);const c=async(l,u)=>{clearTimeout(o),a&&window.removeEventListener("error",a);const f=()=>{if(u?.type==="error"){const d=new Error(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,Tt(()=>{const{needDeleteScript:d=!0}=e;d&&t?.parentNode&&t.parentNode.removeChild(t)}),l&&typeof l=="function")){const d=l(u);
9if(d instanceof Promise){const _=await d;return f(),_}return f(),d}f()};return t.onerror=c.bind(null,t.onerror),t.onload=c.bind(null,t.onload),o=setTimeout(()=>{c(null,{type:"error",isTimeout:!0})},n),{script:t,needAttach:r}}function xn(e){let t=null,r=!0;const n=document.getElementsByTagName("link");for(let s=0;s<n.length;s++){const i=n[s],a=i.getAttribute("href"),c=i.getAttribute("rel");if(a&&Ge(a,e.url)&&c===e.attrs.rel){t=i,r=!1;break}}if(!t){t=document.createElement("link"),t.setAttribute("href",e.url);let s;const i=e.attrs;e.createLinkHook&&(s=e.createLinkHook(e.url,i),s instanceof HTMLLinkElement&&(t=s)),i&&!s&&Object.keys(i).forEach(a=>{t&&!t.getAttribute(a)&&t.setAttribute(a,i[a])})}const o=(s,i)=>{const a=()=>{i?.type==="error"?e?.onErrorCallback&&e?.onErrorCallback(i):e?.cb&&e?.cb()};if(t&&(t.onerror=null,t.onload=null,Tt(()=>{const{needDeleteLink:c=!0}=e;c&&t?.parentNode&&t.parentNode.removeChild(t)}),s)){const c=s(i);return a(),c}a()};return t.onerror=o.bind(null,t.onerror),t.onload=o.bind(null,t.onload),{link:t,needAttach:r}}function Kn(e,t){const{attrs:r={},createScriptHook:n}=t;return new Promise((o,s)=>{const{script:i,needAttach:a}=br({url:e,cb:o,onErrorCallback:s,attrs:{fetchpriority:"high",...r},createScriptHook:n,needDeleteScript:!0});a&&document.head.appendChild(i)})}fe.createLink=xn;fe.createScript=br;fe.isStaticResourcesEqual=Ge;fe.loadScript=Kn;fe.safeWrapper=Tt;var Nt={};const Yn=(e,t,r,n)=>{t(new Error("createScriptNode is disabled in non-Node.js environment"))},Xn=(e,t)=>{throw new Error("loadScriptNode is disabled in non-Node.js environment")};Nt.createScriptNode=Yn;Nt.loadScriptNode=Xn;var Ir={};function zn(e,t,r){return function(n){if(n===!1)return!1;if(typeof n>"u")return e?t:!1;if(n===!0)return t;if(n&&typeof n=="object")return{...t,...n};throw new Error(`Unexpected type for \`${r}\`, expect boolean/undefined/object, got: ${typeof n}`)}}Ir.normalizeOptions=zn;var Tr={};const Jn=e=>e;Tr.createModuleFederationConfig=Jn;(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=N,r=ar,n=lr,o=cr,s=ur,i=fr,a=dr,c=z,l=k,u=ce,f=ue,d=fe,_=Nt,h=Ir,m=Tr;e.BROWSER_LOG_KEY=t.BROWSER_LOG_KEY,e.ENCODE_NAME_PREFIX=t.ENCODE_NAME_PREFIX,e.EncodedNameTransformMap=t.EncodedNameTransformMap,e.FederationModuleManifest=t.FederationModuleManifest,e.MANIFEST_EXT=t.MANIFEST_EXT,e.MFModuleType=t.MFModuleType,e.MFPrefetchCommon=t.MFPrefetchCommon,e.MODULE_DEVTOOL_IDENTIFIER=t.MODULE_DEVTOOL_IDENTIFIER,e.ManifestFileName=t.ManifestFileName,e.NameTransformMap=t.NameTransformMap,e.NameTransformSymbol=t.NameTransformSymbol,e.SEPARATOR=t.SEPARATOR,e.StatsFileName=t.StatsFileName,e.TEMP_DIR=t.TEMP_DIR,e.TreeShakingStatus=t.TreeShakingStatus,e.assert=l.assert,e.bindLoggerToCompiler=f.bindLoggerToCompiler,e.composeKeyWithSeparator=l.composeKeyWithSeparator,Object.defineProperty(e,"consumeSharedPlugin",{enumerable:!0,get:function(){return i.ConsumeSharedPlugin_exports}}),Object.defineProperty(e,"containerPlugin",{enumerable:!0,get:function(){return r.ContainerPlugin_exports}}),Object.defineProperty(e,"containerReferencePlugin",{enumerable:!0,get:function(){return n.ContainerReferencePlugin_exports}}),e.createInfrastructureLogger=f.createInfrastructureLogger,e.createLink=d.createLink,e.createLogger=f.createLogger,e.createModuleFederationConfig=m.createModuleFederationConfig,e.createScript=d.createScript,e.createScriptNode=_.createScriptNode,e.decodeName=l.decodeName,e.encodeName=l.encodeName,e.error=l.error,e.generateExposeFilename=l.generateExposeFilename,e.generateShareFilename=l.generateShareFilename,e.generateSnapshotFromManifest=u.generateSnapshotFromManifest,e.getManifestFileName=u.getManifestFileName,e.getProcessEnv=c.getProcessEnv,e.getResourceUrl=l.getResourceUrl,e.inferAutoPublicPath=u.inferAutoPublicPath,e.infrastructureLogger=f.infrastructureLogger,e.isBrowserEnv=c.isBrowserEnv,e.isBrowserEnvValue=c.isBrowserEnvValue,e.isDebugMode=c.isDebugMode,e.isManifestProvider=u.isManifestProvider,e.isReactNativeEnv=c.isReactNativeEnv,e.isRequiredVersion=l.isRequiredVersion,e.isStaticResourcesEqual=d.isStaticResourcesEqual,e.loadScript=d.loadScript,e.loadScriptNode=_.loadScriptNode,e.logger=f.logger,Object.defineProperty(e,"moduleFederationPlugin",{enumerable:!0,get:function(){return o.ModuleFederationPlugin_exports}}),e.normalizeOptions=h.normalizeOptions,e.parseEntry=l.parseEntry,Object.defineProperty(e,"provideSharedPlugin",{enumerable:!0,get:function(){return a.ProvideSharedPlugin_exports}}
9),e.safeToString=l.safeToString,e.safeWrapper=d.safeWrapper,Object.defineProperty(e,"sharePlugin",{enumerable:!0,get:function(){return s.SharePlugin_exports}}),e.simpleJoinRemoteEntry=u.simpleJoinRemoteEntry,e.warn=l.warn})(C);var Nr={},Pt={};const Zn=e=>`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`,Qn=(e,t,r,n)=>{const o=[`${[t[e]]} #${e}`];return r&&o.push(`args: ${JSON.stringify(r)}`),o.push(Zn(e)),n&&o.push(`Original Error Message: 10 ${n}`),o.join(` 11`)};Pt.getShortErrorMsg=Qn;(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Pt;function r(n,o,s,i,a,c){return i(t.getShortErrorMsg(n,o,s,a))}e.logAndReport=r})(Nr);let eo=C,to=Nr;const Q="[ Federation Runtime ]",dt=(0,eo.createLogger)(Q);function ro(e,t,r,n,o){e||(r!==void 0?_t(t,r,n,void 0,o):_t(t))}function _t(e,t,r,n,o){if(t!==void 0)return(0,to.logAndReport)(e,t,r??{},i=>{throw new Error(`${Q}: ${i}`)},n,o);const s=e;throw s instanceof Error?(s.message.startsWith(Q)||(s.message=`${Q}: ${s.message}`),s):new Error(`${Q}: ${s}`)}function no(e){e instanceof Error&&(e.message.startsWith(Q)||(e.message=`${Q}: ${e.message}`)),dt.warn(e)}T.assert=ro;T.error=_t;T.logger=dt;T.warn=no;var b={};const oo=T;let Dt=C;function so(e,t){return e.findIndex(r=>r===t)===-1&&e.push(t),e}function io(e){return"version"in e&&e.version?`${e.name}:${e.version}`:"entry"in e&&e.entry?`${e.name}:${e.entry}`:`${e.name}`}function ao(e){return typeof e.entry<"u"}function lo(e){return!e.entry.includes(".json")}async function co(e,t){try{return await e()}catch(r){!t&&oo.warn(r);return}}function uo(e){return e&&typeof e=="object"}const Pr=Object.prototype.toString;function fo(e){return Pr.call(e)==="[object Object]"}function _o(e,t){const r=/^(https?:)?\/\//i;return e.replace(r,"").replace(/\/$/,"")===t.replace(r,"").replace(/\/$/,"")}function ho(e){return Array.isArray(e)?e:[e]}function mo(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 po=(e,t)=>{let r;return e.endsWith("/")?r=e.slice(0,-1):r=e,t.startsWith(".")&&(t=t.slice(1)),r=r+t,r};b.addUniqueItem=so;b.arrayOptions=ho;b.getFMId=io;b.getRemoteEntryInfoFromSnapshot=mo;b.isObject=uo;b.isPlainObject=fo;b.isPureRemoteEntry=lo;b.isRemoteInfoWithEntry=ao;b.isStaticResourcesEqual=_o;b.objectToString=Pr;b.processModuleAlias=po;b.safeWrapper=co;var y={};const Mr=T,ht=b;let go=C;const O=typeof globalThis=="object"?globalThis:window,F=(()=>{try{return document.defaultView}catch{return O}})(),Eo=F;function ke(e,t,r){Object.defineProperty(e,t,{value:r,configurable:!1,writable:!0})}function Fe(e,t){return Object.hasOwnProperty.call(e,t)}Fe(O,"__GLOBAL_LOADING_REMOTE_ENTRY__")||ke(O,"__GLOBAL_LOADING_REMOTE_ENTRY__",{});const mt=O.__GLOBAL_LOADING_REMOTE_ENTRY__;function Or(e){Fe(e,"__VMOK__")&&!Fe(e,"__FEDERATION__")&&ke(e,"__FEDERATION__",e.__VMOK__),Fe(e,"__FEDERATION__")||(ke(e,"__FEDERATION__",{__GLOBAL_PLUGIN__:[],__INSTANCES__:[],moduleInfo:{},__SHARE__:{},__MANIFEST_LOADING__:{},__PRELOADED_MAP__:new Map}),ke(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}Or(O);Or(F);function yo(){O.__FEDERATION__.__GLOBAL_PLUGIN__=[],O.__FEDERATION__.__INSTANCES__=[],O.__FEDERATION__.moduleInfo={},O.__FEDERATION__.__SHARE__={},O.__FEDERATION__.__MANIFEST_LOADING__={},Object.keys(mt).forEach(e=>{delete mt[e]})}function So(e){O.__FEDERATION__.__INSTANCES__.push(e)}function Ro(){return O.__FEDERATION__.__DEBUG_CONSTRUCTOR__}function bo(e,t=(0,go.isDebugMode)()){t&&(O.__FEDERATION__.__DEBUG_CONSTRUCTOR__=e,O.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__="2.3.3")}function pt(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 Mr.error(`getInfoWithoutType: "key" must be a string, got ${typeof t} (${JSON.stringify(t)}).`)}const Io=()=>F.__FEDERATION__.moduleInfo,Ar=(e,t)=>{const r=pt(t,ht.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=ht.getFMId(o),i=pt(F.__FEDERATION__.moduleInfo,s).value;if(i?.version===n)return i}},To=e=>Ar(e,F.__FEDERATION__.moduleInfo),No=(e,t)=>{const r=ht.getFMId(e);return F.__FEDERATION__.moduleInfo[r]=t,F.__FEDERATION__.moduleInfo},Po=e=>(F.__FEDERATION__.moduleInfo={...F.__FEDERATION__.moduleInfo,...e},()=>{const t=Object.keys(e);for(const r of t)delete F.__FEDERATION__.moduleInfo[r]}),Mo=(e,t)=>{const r=t||`__FEDERATION_${e}:custom__`;return{remoteEntryKey:r,entryExports:O[r]}},Oo=e=>{const{__GLOBAL_PLUGIN__:t}=F.__FEDERATION__;e.forEach(r=>{t.findIndex(n=>n.name===r.name)===-1?t.push(r):Mr.warn(`The plugin ${r.name} has been registered.`)})},Ao=()=>F.__FEDERATION__.__GLOBAL_PLUGIN__,vo=e=>O.__FEDERATION__.__PRELOADED_MAP__.get(e),Lo=e=>O.__FEDERATION__.__PRELOADED_MAP__.set(e,!0);y.CurrentGlobal=O;y.Global=Eo;y.addGlobalSnapshot=Po;y.getGlobalFederationConstructor=Ro;y.getGlobalHostPlugins=Ao;y.getGlobalSnapshot=Io;y.getGlobalSnapshotInfoByModuleInfo=To;y.getInfoWithoutType=pt;y.getPreloaded=vo;y.getRemoteEntryExports=Mo;y.getTargetSnapshotInfoByModuleInfo=Ar;y.globalLoading=mt;y.nativeGlobal=F;y.registerGlobalPlugins=Oo;y.resetFederationGlobalInfo=yo;y.setGlobalFederationConstructor=bo;y.setGlobalFederationInstance=So;y.setGlobalSnapshotInfoByModuleInfo=No;y.setPreloaded=Lo;var Mt={},re={},q={};const wt="[0-9A-Za-z-]+",Ot=`(?:\\+(${wt}(?:\\.${wt})*))`,Re="0|[1-9]\\d*",Ue="[0-9]+",vr="\\d*[a-zA-Z-][a-zA-Z0-9-]*",$t=`(?:${Ue}|${vr})`,Do=`(?:-?(${$t}(?:\\.${$t})*))`,Ct=`(?:${Re}|${vr})`,Lr=`(?:-(${Ct}(?:\\.${Ct})*))`,Xe=`${Re}|x|X|\\*`,le=`[v=\\s]*(${Xe})(?:\\.(${Xe})(?:\\.(${Xe})(?:${Lr})?${Ot}?)?)?`,wo=`^\\s*(${le})\\s+-\\s+(${le})\\s*$`,$o=`[v=\\s]*${`(${Ue})\\.(${Ue})\\.(${Ue})`}${Do}?${Ot}?`,At="((?:<|>)?=?)",Co=`(\\s*)${At}\\s*(${$o}|${le})`,Dr="(?:~>?)",ko=`(\\s*)${Dr}\\s+`,wr="(?:\\^)",Fo=`(\\s*)${wr}\\s+`,Uo="(<|>)?=?\\s*\\*",Ho=`^${wr}${le}$`,Go=`v?${`(${Re})\\.(${Re})\\.(${Re})`}${Lr}?${Ot}?`,qo=`^${Dr}${le}$`,Bo=`^${At}\\s*${le}$`,Wo=`^${At}\\s*(${Go})$|^$`,Vo="^\\s*>
11=\\s*0.0.0\\s*$";q.caret=Ho;q.caretTrim=Fo;q.comparator=Wo;q.comparatorTrim=Co;q.gte0=Vo;q.hyphenRange=wo;q.star=Uo;q.tilde=qo;q.tildeTrim=ko;q.xRange=Bo;const jo=q;function $r(e){return new RegExp(e)}function xo(e){return!e||e.toLowerCase()==="x"||e==="*"}function Ko(...e){return t=>e.reduce((r,n)=>n(r),t)}function Yo(e){return e.match($r(jo.comparator))}function Xo(e,t,r,n){const o=`${e}.${t}.${r}`;return n?`${o}-${n}`:o}re.combineVersion=Xo;re.extractComparator=Yo;re.isXVersion=xo;re.parseRegex=$r;re.pipe=Ko;var V={};const K=q,R=re;function zo(e){return e.replace(R.parseRegex(K.hyphenRange),(t,r,n,o,s,i,a,c,l,u,f,d)=>(R.isXVersion(n)?r="":R.isXVersion(o)?r=`>=${n}.0.0`:R.isXVersion(s)?r=`>=${n}.${o}.0`:r=`>=${r}`,R.isXVersion(l)?c="":R.isXVersion(u)?c=`<${Number(l)+1}.0.0-0`:R.isXVersion(f)?c=`<${l}.${Number(u)+1}.0-0`:d?c=`<=${l}.${u}.${f}-${d}`:c=`<=${c}`,`${r} ${c}`.trim()))}function Jo(e){return e.replace(R.parseRegex(K.comparatorTrim),"$1$2$3")}function Zo(e){return e.replace(R.parseRegex(K.tildeTrim),"$1~")}function Qo(e){return e.replace(R.parseRegex(K.caretTrim),"$1^")}function es(e){return e.trim().split(/\s+/).map(t=>t.replace(R.parseRegex(K.caret),(r,n,o,s,i)=>R.isXVersion(n)?"":R.isXVersion(o)?`>=${n}.0.0 <${Number(n)+1}.0.0-0`:R.isXVersion(s)?n==="0"?`>=${n}.${o}.0 <${n}.${Number(o)+1}.0-0`:`>=${n}.${o}.0 <${Number(n)+1}.0.0-0`:i?n==="0"?o==="0"?`>=${n}.${o}.${s}-${i} <${n}.${o}.${Number(s)+1}-0`:`>=${n}.${o}.${s}-${i} <${n}.${Number(o)+1}.0-0`:`>=${n}.${o}.${s}-${i} <${Number(n)+1}.0.0-0`:n==="0"?o==="0"?`>=${n}.${o}.${s} <${n}.${o}.${Number(s)+1}-0`:`>=${n}.${o}.${s} <${n}.${Number(o)+1}.0-0`:`>=${n}.${o}.${s} <${Number(n)+1}.0.0-0`)).join(" ")}function ts(e){return e.trim().split(/\s+/).map(t=>t.replace(R.parseRegex(K.tilde),(r,n,o,s,i)=>R.isXVersion(n)?"":R.isXVersion(o)?`>=${n}.0.0 <${Number(n)+1}.0.0-0`:R.isXVersion(s)?`>=${n}.${o}.0 <${n}.${Number(o)+1}.0-0`:i?`>=${n}.${o}.${s}-${i} <${n}.${Number(o)+1}.0-0`:`>=${n}.${o}.${s} <${n}.${Number(o)+1}.0-0`)).join(" ")}function rs(e){return e.split(/\s+/).map(t=>t.trim().replace(R.parseRegex(K.xRange),(r,n,o,s,i,a)=>{const c=R.isXVersion(o),l=c||R.isXVersion(s),u=l||R.isXVersion(i);return n==="="&&u&&(n=""),a="",c?n===">"||n==="<"?"<0.0.0-0":"*":n&&u?(l&&(s=0),i=0,n===">"?(n=">=",l?(o=Number(o)+1,s=0,i=0):(s=Number(s)+1,i=0)):n==="<="&&(n="<",l?o=Number(o)+1:s=Number(s)+1),n==="<"&&(a="-0"),`${n+o}.${s}.${i}${a}`):l?`>=${o}.0.0${a} <${Number(o)+1}.0.0-0`:u?`>=${o}.${s}.0${a} <${o}.${Number(s)+1}.0-0`:r})).join(" ")}function ns(e){return e.trim().replace(R.parseRegex(K.star),"")}function os(e){return e.trim().replace(R.parseRegex(K.gte0),"")}V.parseCaretTrim=Qo;V.parseCarets=es;V.parseComparatorTrim=Jo;V.parseGTE0=os;V.parseHyphen=zo;V.parseStar=ns;V.parseTildeTrim=Zo;V.parseTildes=ts;V.parseXRanges=rs;var Cr={};function He(e,t){return e=Number(e)||e,t=Number(t)||t,e>t?1:e===t?0:-1}function ss(e,t){const{preRelease:r}=e,{preRelease:n}=t;if(r===void 0&&n)return 1;if(r&&n===void 0)return-1;if(r===void 0&&n===void 0)return 0;for(let o=0,s=r.length;o<=s;o++){const i=r[o],a=n[o];if(i!==a)return i===void 0&&a===void 0?0:i?a?He(i,a):-1:1}return 0}function Le(e,t){return He(e.major,t.major)||He(e.minor,t.minor)||He(e.patch,t.patch)||ss(e,t)}function ze(e,t){return e.version===t.version}function is(e,t){switch(e.operator){case"":case"=":return ze(e,t);case">":return Le(e,t)<0;case">=":return ze(e,t)||Le(e,t)<0;case"<":return Le(e,t)>0;case"<=":return ze(e,t)||Le(e,t)>0;case void 0:return!0;default:return!1}}Cr.compare=is;const ie=re,x=V,as=Cr;function ls(e){return ie.pipe(x.parseCarets,x.parseTildes,x.parseXRanges,x.parseStar)(e)}function cs(e){return ie.pipe(x.parseHyphen,x.parseComparatorTrim,x.parseTildeTrim,x.parseCaretTrim)(e.trim()).split(/\s+/).join(" ")}function us(e,t){if(!e)return!1;const r=ie.extractComparator(e);if(!r)return!1;const[,n,,o,s,i,a]=r,c={operator:n,version:ie.combineVersion(o,s,i,a),major:o,minor:s,patch:i,preRelease:a?.split(".")},l=t.split("||");for(const u of l){const f=u.trim();if(!f||f==="*"||f==="x")return!0;try{const d=cs(f);if(!d.trim())return!0;const _=d.split(" ").map(E=>ls(E)).join(" ");if(!_.trim())return!0;const h=_.split(/\s+/).map(E=>
11x.parseGTE0(E)).filter(Boolean);if(h.length===0)continue;let m=!0;for(const E of h){const g=ie.extractComparator(E);if(!g){m=!1;break}const[,p,,P,D,A,I]=g;if(!as.compare({operator:p,version:ie.combineVersion(P,D,A,I),major:P,minor:D,patch:A,preRelease:I?.split(".")},c)){m=!1;break}}if(m)return!0}catch(d){console.error(`[semver] Error processing range part "${f}":`,d);continue}}return!1}Mt.satisfy=us;var U={},ne={};const fs="default",ds="global";ne.DEFAULT_REMOTE_TYPE=ds;ne.DEFAULT_SCOPE=fs;const qe=T,kr=b,Fr=y,_s=ne,Ee=Mt;let gt=C;function hs(e,t,r,n){let o;return"get"in e?o=e.get:"lib"in e?o=()=>Promise.resolve(e.lib):o=()=>Promise.resolve(()=>{qe.error(`Cannot get shared "${r}" from "${t}": neither "get" nor "lib" is provided in the share config.`)}),e.shareConfig?.eager&&e.treeShaking?.mode&&qe.error(`Invalid shared config for "${r}" from "${t}": cannot use both "eager: true" and "treeShaking.mode" simultaneously. Choose one strategy.`),{deps:[],useIn:[],from:t,loading:null,...e,shareConfig:{requiredVersion:`^${e.version}`,singleton:!1,eager:!1,strictVersion:!1,...e.shareConfig},get:o,loaded:e?.loaded||"lib"in e?!0:void 0,version:e.version??"0",scope:Array.isArray(e.scope)?e.scope:[e.scope??"default"],strategy:(e.strategy??n)||"version-first",treeShaking:e.treeShaking?{...e.treeShaking,mode:e.treeShaking.mode??"server-calc",status:e.treeShaking.status??gt.TreeShakingStatus.UNKNOWN,useIn:[]}:void 0}}function ms(e,t){const r=t.shared||{},n=t.name,o=Object.keys(r).reduce((i,a)=>{const c=kr.arrayOptions(r[a]);return i[a]=i[a]||[],c.forEach(l=>{i[a].push(hs(l,n,a,t.shareStrategy))}),i},{}),s={...e.shared};return Object.keys(o).forEach(i=>{s[i]?o[i].forEach(a=>{s[i].find(c=>c.version===a.version)||s[i].push(a)}):s[i]=o[i]}),{allShareInfos:s,newShareInfos:o}}function be(e,t){if(!e)return!1;const{status:r,mode:n}=e;return r===gt.TreeShakingStatus.NO_USE?!1:r===gt.TreeShakingStatus.CALCULATED?!0:n==="runtime-infer"?t?gs(e,t):!0:!1}function ee(e,t){const r=n=>{if(!Number.isNaN(Number(n))){const o=n.split(".");let s=n;for(let i=0;i<3-o.length;i++)s+=".0";return s}return n};return!!Ee.satisfy(r(e),`<=${r(t)}`)}const Ie=(e,t)=>{const r=t||function(n,o){return ee(n,o)};return Object.keys(e).reduce((n,o)=>!n||r(n,o)||n==="0"?o:n,0)},Be=e=>!!e.loaded||typeof e.lib=="function",ps=e=>!!e.loading,gs=(e,t)=>{if(!e||!t)return!1;const{usedExports:r}=e;return r?!!t.every(n=>r.includes(n)):!1};function Es(e,t,r,n){const o=e[t][r];let s="",i=be(n);const a=function(c,l){return i?o[c].treeShaking?o[l].treeShaking?!Be(o[c].treeShaking)&&ee(c,l):!1:!0:!Be(o[c])&&ee(c,l)};if(i){if(s=Ie(e[t][r],a),s)return{version:s,useTreesShaking:i};i=!1}return{version:Ie(e[t][r],a),useTreesShaking:i}}const oe=e=>Be(e)||ps(e);function ys(e,t,r,n){const o=e[t][r];let s="",i=be(n);const a=function(c,l){if(i){if(!o[c].treeShaking)return!0;if(!o[l].treeShaking)return!1;if(oe(o[l].treeShaking))return oe(o[c].treeShaking)?!!ee(c,l):!0;if(oe(o[c].treeShaking))return!1}return oe(o[l])?oe(o[c])?!!ee(c,l):!0:oe(o[c])?!1:ee(c,l)};if(i){if(s=Ie(e[t][r],a),s)return{version:s,useTreesShaking:i};i=!1}return{version:Ie(e[t][r],a),useTreesShaking:i}}function Ss(e){return e==="loaded-first"?ys:Es}function Rs(e,t,r,n){if(!e)return;const{shareConfig:o,scope:s=_s.DEFAULT_SCOPE,strategy:i,treeShaking:a}=r,c=Array.isArray(s)?s:[s];for(const l of c)if(o&&e[l]&&e[l][t]){const{requiredVersion:u}=o,{version:f,useTreesShaking:d}=Ss(i)(e,l,t,a),_=()=>{const m=e[l][t][f];if(o.singleton){if(typeof u=="string"&&!Ee.satisfy(f,u)){const E=`Version ${f} from ${f&&m.from} of shared singleton module ${t} does not satisfy the requirement of ${r.from} which needs ${u})`;o.strictVersion?qe.error(E):qe.warn(E)}return{shared:m,useTreesShaking:d}}else{if(u===!1||u==="*")return{shared:m,useTreesShaking:d};if(Ee.satisfy(f,u))return{shared:m,useTreesShaking:d};const E=be(a);if(E){for(const[g,p]of Object.entries(e[l][t]))if(be(p.treeShaking,a?.usedExports)&&Ee.satisfy(g,u))return{shared:p,useTreesShaking:E}}for(const[g,p]of Object.entries(e[l][t]))if(Ee.satisfy(g,u))return{shared:p,useTreesShaking:!1}}}
11,h={shareScopeMap:e,scope:l,pkgName:t,version:f,GlobalFederation:Fr.Global.__FEDERATION__,shareInfo:r,resolver:_};return(n.emit(h)||h).resolver()}}function bs(){return Fr.Global.__FEDERATION__.__SHARE__}function Is(e){const{pkgName:t,extraOptions:r,shareInfos:n}=e,o=c=>{if(!c)return;const l={};return c.forEach(f=>{l[f.version]=f}),l[Ie(l,function(f,d){return!Be(l[f])&&ee(f,d)})]},s=r?.resolver??o,i=c=>c!==null&&typeof c=="object"&&!Array.isArray(c),a=(...c)=>{const l={};for(const u of c)if(u)for(const[f,d]of Object.entries(u)){const _=l[f];i(_)&&i(d)?l[f]=a(_,d):d!==void 0&&(l[f]=d)}return l};return a(s(n[t]),r?.customShareInfo)}const Ts=(e,t)=>{e.useIn||(e.useIn=[]),kr.addUniqueItem(e.useIn,t)};function Ns(e,t){return t&&e.treeShaking?e.treeShaking:e}U.addUseIn=Ts;U.directShare=Ns;U.formatShareConfigs=ms;U.getGlobalShareScope=bs;U.getRegisteredShare=Rs;U.getTargetSharedOptions=Is;U.shouldUseTreeShaking=be;var de={};function Ps(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 Ms(e,t){for(const r of e)if(t===r.name||r.alias&&t===r.alias)return r}de.matchRemote=Ms;de.matchRemoteWithNameAndExpose=Ps;var j={},Y={},L={};const Os="RUNTIME-001",As="RUNTIME-002",vs="RUNTIME-003",Ls="RUNTIME-004",Ds="RUNTIME-005",ws="RUNTIME-006",$s="RUNTIME-007",Cs="RUNTIME-008",ks="RUNTIME-009",Fs="RUNTIME-010",Us="RUNTIME-011",Hs="RUNTIME-012",Gs="TYPE-001",qs="BUILD-001",Bs="BUILD-002";L.BUILD_001=qs;L.BUILD_002=Bs;L.RUNTIME_001=Os;L.RUNTIME_002=As;L.RUNTIME_003=vs;L.RUNTIME_004=Ls;L.RUNTIME_005=Ds;L.RUNTIME_006=ws;L.RUNTIME_007=$s;L.RUNTIME_008=Cs;L.RUNTIME_009=ks;L.RUNTIME_010=Fs;L.RUNTIME_011=Us;L.RUNTIME_012=Hs;L.TYPE_001=Gs;var Pe={};const w=L,Ur={[w.RUNTIME_001]:"Failed to get remoteEntry exports.",[w.RUNTIME_002]:'The remote entry interface does not contain "init"',[w.RUNTIME_003]:"Failed to get manifest.",[w.RUNTIME_004]:"Failed to locate remote.",[w.RUNTIME_005]:"Invalid loadShareSync function call from bundler runtime",[w.RUNTIME_006]:"Invalid loadShareSync function call from runtime",[w.RUNTIME_007]:"Failed to get remote snapshot.",[w.RUNTIME_008]:"Failed to load script resources.",[w.RUNTIME_009]:"Please call createInstance first.",[w.RUNTIME_010]:'The name option cannot be changed after initialization. If you want to create a new instance with a different name, please use "createInstance" api.',[w.RUNTIME_011]:"The remoteEntry URL is missing from the remote snapshot.",[w.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.'},Hr={[w.TYPE_001]:"Failed to generate type declaration. Execute the below cmd to reproduce and fix the error."},Gr={[w.BUILD_001]:"Failed to find expose module.",[w.BUILD_002]:"PublicPath is required in prod mode."},Ws={...Ur,...Hr,...Gr};Pe.buildDescMap=Gr;Pe.errorDescMap=Ws;Pe.runtimeDescMap=Ur;Pe.typeDescMap=Hr;(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=L,r=Pt,n=Pe;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})(Y);const Ve=T,ae=y,kt=ne;let qr=C,Te=Y;const Br=".then(callbacks[0]).catch(callbacks[1])";async function Vs({entry:e,remoteEntryExports:t}){return new Promise((r,n)=>{try{t?r(t):typeof FEDERATION_ALLOW_NEW_FUNCTION<"u"?new Function("callbacks",`import("${e}")${Br}`)([r,n]):import(e).then(r).catch(n)}catch(o){Ve.error(`Failed to load ESM entry from "${e}". ${o instanceof Error?o.message:String(o)}`)}})}async function js({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}")${Br}`)([r,n])}catch(o){Ve.error(`Failed to load SystemJS entry from "${e}". ${o instanceof Error?o.message:String(o)}`)}})}function xs(e,t,r){const{remoteEntryKey:n,entryExports:o}=ae.getRemoteEntryExports(e,t);return o||Ve.error(Te.RUNTIME_001,Te.runtimeDescMap,{remoteName:e,remoteEntryUrl:r,remoteEntryKey:n}),o}async function Ks({name:e,globalName:t,entry:r,remoteInfo:n,loaderHook:o,getEntryUrl:s}){const{entryExports:i}=ae.getRemoteEntryExports(e,t);if(i)return i;const a=s?s(r):r;return(0,qr.loadScript)(a,{attrs:{},createScriptHook:(c,l)=>{const u=o.lifecycle.createScript.emit({url:c,attrs:l,remoteInfo:n});if(u&&(u instanceof HTMLScriptElement||"script"in u||"timeout"in u))return u}}).then(()=>xs(e,t,r),c=>{const l=c instanceof Error?c.message:String(c);Ve.error(Te.RUNTIME_008,Te.runtimeDescMap,{remoteName:e,resourceUrl:a},l)})}async function Ys({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 Vs({entry:o,remoteEntryExports:t});case"system":return js({entry:o,remoteEntryExports:t});default:return Ks({entry:o,globalName:s,name:i,remoteInfo:e,loaderHook:r,getEntryUrl:n})}}function Et(e){const{entry:t,name:r}=e;return(0,qr.composeKeyWithSeparator)(r,t)}async function Wr(e){const{origin:t,remoteEntryExports:r,remoteInfo:n,getEntryUrl:o,_inErrorHandling:s=!1}=e,i=Et(n);if(r)return r;if(!ae.globalLoading[i]){const a=t.remoteHandler.hooks.lifecycle.loadEntry,c=t.loaderHook;ae.globalLoading[i]=a.emit({loaderHook:c,remoteInfo:n,remoteEntryExports:r}).then(l=>l||Ys({remoteInfo:n,remoteEntryExports:r,loaderHook:c,getEntryUrl:o})).catch(async l=>{const u=Et(n),f=l instanceof Error&&l.message.includes("ScriptExecutionError");
11if(l instanceof Error&&l.message.includes(Te.RUNTIME_008)&&!f&&!s){const d=h=>Wr({...h,_inErrorHandling:!0}),_=await t.loaderHook.lifecycle.loadEntryError.emit({getRemoteEntry:d,origin:t,remoteInfo:n,remoteEntryExports:r,globalLoading:ae.globalLoading,uniqueKey:u});if(_)return _}throw l})}return ae.globalLoading[i]}function Xs(e){return{...e,entry:"entry"in e?e.entry:"",type:e.type||kt.DEFAULT_REMOTE_TYPE,entryGlobalName:e.entryGlobalName||e.name,shareScope:e.shareScope||kt.DEFAULT_SCOPE}}j.getRemoteEntry=Wr;j.getRemoteEntryUniqueKey=Et;j.getRemoteInfo=Xs;var Vr={};function zs(){return typeof FEDERATION_BUILD_IDENTIFIER<"u"?FEDERATION_BUILD_IDENTIFIER:""}Vr.getBuilderId=zs;var jr={};const Js=y;function Zs(e,t){const r=Js.getGlobalHostPlugins(),n=[t.hooks,t.remoteHandler.hooks,t.sharedHandler.hooks,t.snapshotHandler.hooks,t.loaderHook,t.bridgeHook];return r.length>0&&r.forEach(o=>{e?.find(s=>s.name!==o.name)&&e.push(o)}),e&&e.length>0&&e.forEach(o=>{n.forEach(s=>{s.applyPlugin(o,t)})}),e}jr.registerPlugins=Zs;var Me={};function Qs(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 ei(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(Qs)??[],shared:t}}}Me.optionsToMFContext=ei;var xr={},J={};const ti=T,ri=de,Ft=j;let ye=C;function Kr(e){return{resourceCategory:"sync",share:!0,depsRemote:!0,prefetchInterface:!1,...e}}function ni(e,t){return t.map(r=>{const n=ri.matchRemote(e,r.nameOrAlias);return ti.assert(n,`Unable to preload ${r.nameOrAlias} as it is not included in ${!n&&(0,ye.safeToString)({remoteInfo:n,remotes:e})}`),{remote:n,preloadConfig:Kr(r)}})}function oi(e){return e?e.map(t=>t==="."?t:t.startsWith("./")?t.replace("./",""):t):[]}function si(e,t,r,n=!0){const{cssAssets:o,jsAssetsWithoutEntry:s,entryAssets:i}=r;if(t.options.inBrowser){if(i.forEach(a=>{const{moduleInfo:c}=a,l=t.moduleCache.get(e.name);l?Ft.getRemoteEntry({origin:t,remoteInfo:c,remoteEntryExports:l.remoteEntryExports}):Ft.getRemoteEntry({origin:t,remoteInfo:c,remoteEntryExports:void 0})}),n){const a={rel:"preload",as:"style"};o.forEach(c=>{const{link:l,needAttach:u}=(0,ye.createLink)({url:c,cb:()=>{},attrs:a,createLinkHook:(f,d)=>{const _=t.loaderHook.lifecycle.createLink.emit({url:f,attrs:d,remoteInfo:e});if(_ instanceof HTMLLinkElement)return _}});u&&document.head.appendChild(l)})}else{const a={rel:"stylesheet",type:"text/css"};o.forEach(c=>{const{link:l,needAttach:u}=(0,ye.createLink)({url:c,cb:()=>{},attrs:a,createLinkHook:(f,d)=>{const _=t.loaderHook.lifecycle.createLink.emit({url:f,attrs:d,remoteInfo:e});if(_ instanceof HTMLLinkElement)return _},needDeleteLink:!1});u&&document.head.appendChild(l)})}if(n){const a={rel:"preload",as:"script"};s.forEach(c=>{const{link:l,needAttach:u}=(0,ye.createLink)({url:c,cb:()=>{},attrs:a,createLinkHook:(f,d)=>{const _=t.loaderHook.lifecycle.createLink.emit({url:f,attrs:d,remoteInfo:e});if(_ instanceof HTMLLinkElement)return _}});u&&document.head.appendChild(l)})}else{const a={fetchpriority:"high",type:e?.type==="module"?"module":"text/javascript"};s.forEach(c=>{const{script:l,needAttach:u}=(0,ye.createScript)({url:c,cb:()=>{},attrs:a,createScriptHook:(f,d)=>{const _=t.loaderHook.lifecycle.createScript.emit({url:f,attrs:d,remoteInfo:e});if(_ instanceof HTMLScriptElement)return _},needDeleteScript:!0});u&&document.head.appendChild(l)})}}}J.defaultPreloadArgs=Kr;J.formatPreloadArgs=ni;J.normalizePreloadExposes=oi;J.preloadAssets=si;const v=y,Ut=U,ii=de,ai=j,li=J,ci={getRegisteredShare:Ut.getRegisteredShare,getGlobalShareScope:Ut.getGlobalShareScope},ui={Global:v.Global,nativeGlobal:v.nativeGlobal,resetFederationGlobalInfo:v.resetFederationGlobalInfo,setGlobalFederationInstance:v.setGlobalFederationInstance,getGlobalFederationConstructor:v.getGlobalFederationConstructor,setGlobalFederationConstructor:v.setGlobalFederationConstructor,getInfoWithoutType:v.getInfoWithoutType,getGlobalSnapshot:v.getGlobalSnapshot,getTargetSnapshotInfoByModuleInfo:v.getTargetSnapshotInfoByModuleInfo,getGlobalSnapshotInfoByModuleInfo:v.getGlobalSnapshotInfoByModuleInfo,setGlobalSnapshotInfoByModuleInfo:v.setGlobalSnapshotInfoByModuleInfo,addGlobalSnapshot:v.addGlobalSnapshot,getRemoteEntryExports:v.getRemoteEntryExports,registerGlobalPlugins:v.registerGlobalPlugins,getGlobalHostPlugins:v.getGlobalHostPlugins,getPreloaded:v.getPreloaded,setPreloaded:v.setPreloaded};var fi={global:ui,share:ci,utils:{matchRemoteWithNameAndExpose:ii.matchRemoteWithNameAndExpose,preloadAssets:li.preloadAssets,getRemoteInfo:ai.getRemoteInfo}};xr.default=fi;var je={};const Je=T,Ht=b,di=j,_i=Me;let hi=C,Gt=Y;function mi(e,t,r){const n=t,o=Array.isArray(e.shareScope)?e.shareScope:[e.shareScope];o.length||o.push("default"),o.forEach(i=>
11{n[i]||(n[i]={})});const s={version:e.version||"",shareScopeKeys:Array.isArray(e.shareScope)?o:e.shareScope||"default"};return Object.defineProperty(s,"shareScopeMap",{value:n,enumerable:!1}),{remoteEntryInitOptions:s,shareScope:n[o[0]],initScope:r??[]}}var pi=class{constructor({remoteInfo:e,host:t}){this.inited=!1,this.initing=!1,this.lib=void 0,this.remoteInfo=e,this.host=t}async getEntry(){if(this.remoteEntryExports)return this.remoteEntryExports;const e=await di.getRemoteEntry({origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports});return Je.assert(e,`remoteEntryExports is undefined 12 ${(0,hi.safeToString)(this.remoteInfo)}`),this.remoteEntryExports=e,this.remoteEntryExports}async init(e,t,r){const n=await this.getEntry();if(this.inited)return n;if(this.initPromise)return await this.initPromise,n;this.initing=!0,this.initPromise=(async()=>{const{remoteEntryInitOptions:o,shareScope:s,initScope:i}=mi(this.remoteInfo,this.host.shareScopeMap,r),a=await this.host.hooks.lifecycle.beforeInitContainer.emit({shareScope:s,remoteEntryInitOptions:o,initScope:i,remoteInfo:this.remoteInfo,origin:this.host});typeof n?.init>"u"&&Je.error(Gt.RUNTIME_002,Gt.runtimeDescMap,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName},void 0,_i.optionsToMFContext(this.host.options)),await n.init(a.shareScope,a.initScope,a.remoteEntryInitOptions),await this.host.hooks.lifecycle.initContainer.emit({...a,id:e,remoteSnapshot:t,remoteEntryExports:n}),this.inited=!0})();try{await this.initPromise}finally{this.initing=!1,this.initPromise=void 0}return n}async get(e,t,r,n){const{loadFactory:o=!0}=r||{loadFactory:!0},s=await this.init(e,n);this.lib=s;let i;i=await this.host.loaderHook.lifecycle.getModuleFactory.emit({remoteEntryExports:s,expose:t,moduleInfo:this.remoteInfo}),i||(i=await s.get(t)),Je.assert(i,`${Ht.getFMId(this.remoteInfo)} remote don't export ${t}.`);const a=Ht.processModuleAlias(this.remoteInfo.name,t),c=this.wraperFactory(i,a);return o?await c():c}wraperFactory(e,t){function r(n,o){n&&typeof n=="object"&&Object.isExtensible(n)&&!Object.getOwnPropertyDescriptor(n,Symbol.for("mf_module_id"))&&Object.defineProperty(n,Symbol.for("mf_module_id"),{value:o,enumerable:!1})}return e instanceof Promise?async()=>{const n=await e();return r(n,t),n}:()=>{const n=e();return r(n,t),n}}};je.Module=pi;var Yr={},_e={},gi=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=gi;var Oe={};const Ei=_e;var yi=class extends Ei.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)}};Oe.AsyncHook=yi;var he={};const Ze=T,Xr=b,Si=_e;function zr(e,t){if(!Xr.isObject(t))return!1;if(e!==t){for(const r in e)if(!(r in t))return!1}return!0}var Ri=class extends Si.SyncHook{constructor(e){super(),this.onerror=Ze.error,this.type=e}emit(e){Xr.isObject(e)||Ze.error(`The data for the "${this.type}" hook should be an object.`);for(const t of this.listeners)try{const r=t(e);if(zr(e,r))e=r;else{this.onerror(`A plugin returned an unacceptable value for the "${this.type}" type.`);break}}catch(r){Ze.warn(r),this.onerror(r)}return e}};he.SyncWaterfallHook=Ri;he.checkReturnData=zr;var Ae={};const Qe=T,bi=b,Ii=_e,Ti=he;var Ni=class extends Ii.SyncHook{constructor(e){super(),this.onerror=Qe.error,this.type=e}emit(e){bi.isObject(e)||Qe.error(`The response data for the "${this.type}" hook must be an object.`);const t=Array.from(this.listeners);if(t.length>0){let r=0;const n=s=>(Qe.warn(s),this.onerror(s),e),o=s=>{if(Ti.checkReturnData(e,s)){if(e=s,r<t.length)try{return Promise.resolve(t[r++](e)).then(o,n)}catch(i){return n(i)}}
12else this.onerror(`A plugin returned an incorrect value for the "${this.type}" type.`);return e};return Promise.resolve(o(e))}return Promise.resolve(e)}};Ae.AsyncWaterfallHook=Ni;var ve={};const De=T,Pi=b;var Mi=class{constructor(e){this.registerPlugins={},this.lifecycle=e,this.lifecycleKeys=Object.keys(e)}applyPlugin(e,t){De.assert(Pi.isPlainObject(e),"Plugin configuration is invalid.");const r=e.name;De.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){De.assert(e,"A name is required.");const t=this.registerPlugins[e];De.assert(t,`The plugin "${e}" is not registered.`),Object.keys(t).forEach(r=>{r!=="name"&&this.lifecycle[r].remove(t[r])})}};ve.PluginSystem=Mi;var xe={};const Oi=T,yt=b,Ai=J;let qt=C,Bt=Y;function Jr(e,t){const r=yt.getRemoteEntryInfoFromSnapshot(t);r.url||Oi.error(Bt.RUNTIME_011,Bt.runtimeDescMap,{remoteName:e.name});let n=(0,qt.getResourceUrl)(t,r.url);!qt.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 vi(){return{name:"snapshot-plugin",async afterResolve(e){const{remote:t,pkgNameOrAlias:r,expose:n,origin:o,remoteInfo:s,id:i}=e;if(!yt.isRemoteInfoWithEntry(t)||!yt.isPureRemoteEntry(t)){const{remoteSnapshot:a,globalSnapshot:c}=await o.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:t,id:i});Jr(s,a);const l={remote:t,preloadConfig:{nameOrAlias:r,exposes:[n],resourceCategory:"sync",share:!1,depsRemote:!1}},u=await o.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin:o,preloadOptions:l,remoteInfo:s,remote:t,remoteSnapshot:a,globalSnapshot:c});return u&&Ai.preloadAssets(s,o,u,!1),{...e,remoteSnapshot:a}}return e}}}xe.assignRemoteInfo=Jr;xe.snapshotPlugin=vi;var Zr={};const Ne=b,St=y,Li=U,Wt=J,Di=xe;let We=C;function wi(e){const t=e.split(":");return t.length===1?{name:t[0],version:void 0}:t.length===2?{name:t[0],version:t[1]}:{name:t[1],version:t[2]}}function Qr(e,t,r,n,o={},s){const{value:i}=St.getInfoWithoutType(e,Ne.getFMId(t)),a=s||i;if(a&&!(0,We.isManifestProvider)(a)&&(r(a,t,n),a.remotesInfo)){const c=Object.keys(a.remotesInfo);for(const l of c){if(o[l])continue;o[l]=!0;const u=wi(l),f=a.remotesInfo[l];Qr(e,{name:u.name,version:f.matchedVersion},r,!1,o,void 0)}}}const et=(e,t)=>document.querySelector(`${e}[${e==="link"?"href":"src"}="${t}"]`);function $i(e,t,r,n,o){const s=[],i=[],a=[],c=new Set,l=new Set,{options:u}=e,{preloadConfig:f}=t,{depsRemote:d}=f;if(Qr(n,r,(h,m,E)=>{let g;if(E)g=f;else if(Array.isArray(d)){const I=d.find($=>$.nameOrAlias===m.name||$.nameOrAlias===m.alias);if(!I)return;g=Wt.defaultPreloadArgs(I)}else if(d===!0)g=f;else return;const p=(0,We.getResourceUrl)(h,Ne.getRemoteEntryInfoFromSnapshot(h).url);p&&a.push({name:m.name,moduleInfo:{name:m.name,entry:p,type:"remoteEntryType"in h?h.remoteEntryType:"global",entryGlobalName:"globalName"in h?h.globalName:m.name,shareScope:"",version:"version"in h?h.version:void 0},url:p});let P="modules"in h?h.modules:[];const D=Wt.normalizePreloadExposes(g.exposes);D.length&&"modules"in h&&(P=h?.modules?.reduce((I,$)=>(D?.indexOf($.moduleName)!==-1&&I.push($),I),[]));function A(I){const $=I.map(B=>(0,We.getResourceUrl)(h,B));return g.filter?$.filter(g.filter):$}if(P){const I=P.length;for(let $=0;$<I;$++){const B=P[$],Ye=`${m.name}/${B.moduleName}`;e.remoteHandler.hooks.lifecycle.handlePreloadModule.emit({id:B.moduleName==="."?m.name:Ye,name:m.name,remoteSnapshot:h,preloadConfig:g,remote:m,origin:e}),!St.getPreloaded(Ye)&&(g.resourceCategory==="all"?(s.push(...A(B.assets.css.async)),s.push(...A(B.assets.css.sync)),i.push(...A(B.assets.js.async)),i.push(...A(B.assets.js.sync))):g.resourceCategory==="sync"&&(s.push(...A(B.assets.css.sync)),i.push(...A(B.assets.js.sync))),St.setPreloaded(Ye))}}},!0,{},o),o.shared&&o.shared.length>0){const h=(m,E)=>{const{shared:g}=Li.getRegisteredShare(e.shareScopeMap,E.sharedName,m,e.sharedHandler.hooks.lifecycle.resolveShare)||{};g&&typeof g.lib=="function"&&(E.assets.js.sync.forEach(p=>{c.add(p)}),E.assets.css.sync.forEach(p=>{l.add(p)}))};o.shared.forEach(m=>{const E=u.shared?.[m.sharedName];if(!E)return;const g=m.version?E.find(p=>p.version===m.version):E;g&&Ne.arrayOptions(g).forEach(p=>{h(p,m)})})}const _=i.filter(h=>!c.has(h)&&!et("script",h));return{cssAssets:s.filter(h=>!l.has(h)&&!et("link",h)),jsAssetsWithoutEntry:_,entryAssets:a.filter(h=>!et("script",h.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 We.isBrowserEnvValue?Ne.isRemoteInfoWithEntry(o)&&Ne.isPureRemoteEntry(o)?{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[{name:o.name,url:o.entry,moduleInfo:{name:n.name,entry:o.entry,type:n.type||"global",entryGlobalName:"",shareScope:""}}]}:(Di.assignRemoteInfo(n,i),$i(t,r,n,s,i)):{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[]}}}};Zr.generatePreloadAssetsPlugin=Ci;var Ke={};const tt=T,ki=b,G=y,Fi=j,Vt=Me,Ui=Oe,rt=Ae,Hi=ve;let nt=C,we=Y;function en(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 Gi=class{constructor(e){this.loadingHostSnapshot=null,this.manifestCache=new Map,this.hooks=new Hi.PluginSystem({beforeLoadRemoteSnapshot:new Ui.AsyncHook("beforeLoadRemoteSnapshot"),loadSnapsh
12ot:new rt.AsyncWaterfallHook("loadGlobalSnapshot"),loadRemoteSnapshot:new rt.AsyncWaterfallHook("loadRemoteSnapshot"),afterLoadSnapshot:new rt.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:c,globalSnapshot:l}=await this.hooks.lifecycle.loadSnapshot.emit({options:n,moduleInfo:e,hostGlobalSnapshot:s,remoteSnapshot:i,globalSnapshot:a});let u,f;if(c)if((0,nt.isManifestProvider)(c)){const d=nt.isBrowserEnvValue?c.remoteEntry:c.ssrRemoteEntry||c.remoteEntry||"",_=await this.getManifestJson(d,e,{}),h=G.setGlobalSnapshotInfoByModuleInfo({...e,entry:d},_);u=_,f=h}else{const{remoteSnapshot:d}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:c,from:"global"});u=d,f=l}else if(ki.isRemoteInfoWithEntry(e)){const d=await this.getManifestJson(e.entry,e,{}),_=G.setGlobalSnapshotInfoByModuleInfo(e,d),{remoteSnapshot:h}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:d,from:"global"});u=h,f=_}else tt.error(we.RUNTIME_007,we.runtimeDescMap,{remoteName:e.name,remoteVersion:e.version,hostName:this.HostInstance.options.name,globalSnapshot:JSON.stringify(l)},void 0,Vt.optionsToMFContext(this.HostInstance.options));
12return await this.hooks.lifecycle.afterLoadSnapshot.emit({id:t,host:this.HostInstance,options:n,moduleInfo:e,remoteSnapshot:u}),{remoteSnapshot:u,globalSnapshot:f}}getGlobalRemoteInfo(e){return en(e,this.HostInstance)}async getManifestJson(e,t,r){const n=async()=>{let s=this.manifestCache.get(e);if(s)return s;try{let i=await this.loaderHook.lifecycle.fetch.emit(e,{},Fi.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],tt.error(we.RUNTIME_003,we.runtimeDescMap,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name},`${i}`,Vt.optionsToMFContext(this.HostInstance.options)))}return tt.assert(s.metaData&&s.exposes&&s.shared,`"${e}" is not a valid federation manifest for remote "${t.name}". Missing required fields: ${[!s.metaData&&"metaData",!s.exposes&&"exposes",!s.shared&&"shared"].filter(Boolean).join(", ")}.`),this.manifestCache.set(e,s),s},o=async()=>{const s=await n(),i=(0,nt.generateSnapshotFromManifest)(s,{version:e}),{remoteSnapshot:a}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:t,manifestJson:s,remoteSnapshot:i,manifestUrl:e,from:"manifest"});return a};return this.manifestLoading[e]||(this.manifestLoading[e]=o().then(s=>s)),this.manifestLoading[e]}};Ke.SnapshotHandler=Gi;Ke.getGlobalRemoteInfo=en;var tn={};const ot=T,qi=ne,M=U,jt=Me,Bi=Oe,st=he,xt=Ae,Wi=ve;let pe=Y;var Vi=class{constructor(e){this.hooks=new Wi.PluginSystem({beforeRegisterShare:new st.SyncWaterfallHook("beforeRegisterShare"),afterResolve:new xt.AsyncWaterfallHook("afterResolve"),beforeLoadShare:new xt.AsyncWaterfallHook("beforeLoadShare"),loadShare:new Bi.AsyncHook,resolveShare:new st.SyncWaterfallHook("resolveShare"),initContainerShareScopeMap:new st.SyncWaterfallHook("initContainerShareScopeMap")}),this.host=e,this.shareScopeMap={},this.initTokens={},this._setGlobalShareScopeMap(e.options)}registerShared(e,t){const{newShareInfos:r,allShareInfos:n}=M.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=M.getTargetSharedOptions({pkgName:e,extraOptions:t,shareInfos:r.options.shared});n?.scope&&await Promise.all(n.scope.map(async a=>{await Promise.all(this.initializeSharing(a,{strategy:n.strategy}))}));const{shareInfo:o}=await this.hooks.lifecycle.beforeLoadShare.emit({pkgName:e,shareInfo:n,shared:r.options.shared,origin:r});ot.assert(o,`Cannot find shared "${e}" in host "${r.options.name}". Ensure the shared config for "${e}" is declared in the federation plugin options and the host has been initialized before loading shares.`);const{shared:s,useTreesShaking:i}=M.getRegisteredShare(this.shareScopeMap,e,o,this.hooks.lifecycle.resolveShare)||{};if(s){const a=M.directShare(s,i);if(a.lib)return M.addUseIn(a,r.options.name),a.lib;if(a.loading&&!a.loaded){const c=await a.loading;return a.loaded=!0,a.lib||(a.lib=c),M.addUseIn(a,r.options.name),c}else{const l=(async()=>{const u=await a.get();return M.addUseIn(a,r.options.name),a.loaded=!0,a.lib=u,u})();return this.setShared({pkgName:e,loaded:!1,shared:s,from:r.options.name,lib:null,loading:l,treeShaking:i?a:void 0}),l}}else{if(t?.customShareInfo)return!1;const a=M.shouldUseTreeShaking(o.treeShaking),c=M.directShare(o,a),u=(async()=>{const f=await c.get();c.lib=f,c.loaded=!0,M.addUseIn(c,r.options.name);const{shared:d,useTreesShaking:_}=M.getRegisteredShare(this.shareScopeMap,e,o,this.hooks.lifecycle.resolveShare)||{};if(d){const h=M.directShare(d,_);h.lib=f,h.loaded=!0,d.from=o.from}return f})();return this.setShared({pkgName:e,loaded:!1,shared:o,from:r.options.name,lib:null,loading:u,treeShaking:a?c:void 0}),u}}initializeSharing(e=qi.DEFAULT_SCOPE,t){const{host:r}=this,n=t?.from,o=t?.strategy;let s=t?.initScope;const i=[];if(n!=="build"){const{initTokens:d}=this;s||(s=[]);let _=d[e];if(_||(_=d[e]={from:this.host.name}),s.indexOf(_)>=0)return i;s.push(_)}const a=this.shareScopeMap,c=r.options.name;a[e]||(a[e]={});const l=a[e],u=(d,_)=>{const{version:h,eager:m}=_;l[d]=l[d]||{};const E=l[d],g=E[h]&&M.directShare(E[h]),p=!!(g&&("eager"in g&&g.eager||"shareConfig"in g&&g.shareConfig?.eager));(!g||g.strategy!=="loaded-first"&&!g.loaded&&(!m!=!p?m:c>E[h].from))&&(E[h]=_)},f=async d=>{const{module:_}=await r.remoteHandler.getRemoteModuleAndOptions({id:d});let h;try{h=await _.getEntry()}catch(m){if(h=await r.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:d,error:m,from:"runtime",lifecycle:"beforeLoadShare",origin:r}),!h)return}finally{h?.init&&!_.initing&&(_.remoteEntryExports=h,await _.init(void 0,void 0,s))}};
12return Object.keys(r.options.shared).forEach(d=>{r.options.shared[d].forEach(_=>{_.scope.includes(e)&&u(d,_)})}),(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=M.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}=M.getRegisteredShare(this.shareScopeMap,e,n,this.hooks.lifecycle.resolveShare)||{};if(o){if(typeof o.lib=="function")return M.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 M.addUseIn(o,r.options.name),this.setShared({pkgName:e,loaded:!0,from:r.options.name,lib:i,shared:o}),i}}if(n.lib)return n.loaded||(n.loaded=!0),n.lib;if(n.get){const i=n.get();return i instanceof Promise&&ot.error(t?.from==="build"?pe.RUNTIME_005:pe.RUNTIME_006,pe.runtimeDescMap,{hostName:r.options.name,sharedPkgName:e},void 0,jt.optionsToMFContext(r.options)),n.lib=i,this.setShared({pkgName:e,loaded:!0,from:r.options.name,lib:n.lib,shared:n}),n.lib}ot.error(pe.RUNTIME_006,pe.runtimeDescMap,{hostName:r.options.name,sharedPkgName:e},void 0,jt.optionsToMFContext(r.options))}initShareScopeMap(e,t,r={}){const{host:n}=this;this.shareScopeMap[e]=t,this.hooks.lifecycle.initContainerShareScopeMap.emit({shareScope:t,options:n.options,origin:n,scopeName:e,hostShareScopeMap:r.hostShareScopeMap})}setShared({pkgName:e,shared:t,from:r,lib:n,loading:o,loaded:s,get:i,treeShaking:a}){const{version:c,scope:l="default",...u}=t,f=Array.isArray(l)?l:[l],d=_=>{const h=(E,g,p)=>{p&&!E[g]&&(E[g]=p)},m=a?_.treeShaking:_;h(m,"loaded",s),h(m,"loading",o),h(m,"get",i)};f.forEach(_=>{this.shareScopeMap[_]||(this.shareScopeMap[_]={}),this.shareScopeMap[_][e]||(this.shareScopeMap[_][e]={}),this.shareScopeMap[_][e][c]||(this.shareScopeMap[_][e][c]={version:c,scope:[_],...u,lib:n});const h=this.shareScopeMap[_][e][c];d(h),r&&h.from!==r&&(h.from=r)})}_setGlobalShareScopeMap(e){const t=M.getGlobalShareScope(),r=e.id||e.name;r&&!t[r]&&(t[r]=this.shareScopeMap)}};tn.SharedHandler=Vi;var rn={};const $e=T,H=y,Kt=ne,ji=U,xi=de,it=j,Ki=Me,Yt=J,Yi=je,Xi=_e,se=Oe,Xt=he,zi=Ae,Ji=ve,Zi=Ke;let at=C,zt=Y;var Qi=class{constructor(e){this.hooks=new Ji.PluginSystem({beforeRegisterRemote:new Xt.SyncWaterfallHook("beforeRegisterRemote"),registerRemote:new Xt.SyncWaterfallHook("registerRemote"),beforeRequest:new zi.AsyncWaterfallHook("beforeRequest"),onLoad:new se.AsyncHook("onLoad"),handlePreloadModule:new Xi.SyncHook("handlePreloadModule"),errorLoadRemote:new se.AsyncHook("errorLoadRemote"),beforePreloadRemote:new se.AsyncHook("beforePreloadRemote"),generatePreloadAssets:new se.AsyncHook("generatePreloadAssets"),afterPreloadRemote:new se.AsyncHook,loadEntry:new se.AsyncHook}),this.host=e,this.idToRemoteMap={}}formatAndRegisterRemote(e,t){return(t.remotes||[]).reduce((r,n)=>(this.registerRemote(n,r,{force:!1}),r),e.remotes)}setIdToRemoteMap(e,t){const{remote:r,expose:n}=t,{name:o,alias:s}=r;if(this.idToRemoteMap[e]={name:r.name,expose:n},s&&e.startsWith(o)){const i=e.replace(o,s);this.idToRemoteMap[i]={name:r.name,expose:n};return}if(s&&e.startsWith(s)){const i=e.replace(s,o);this.idToRemoteMap[i]={name:r.name,expose:n}}}async loadRemote(e,t){const{host:r}=this;try{const{loadFactory:n=!0}=t||{loadFactory:!0},{module:o,moduleOptions:s,remoteMatchInfo:i}=await this.getRemoteModuleAndOptions({id:e}),{pkgNameOrAlias:a,remote:c,expose:l,id:u,remoteSnapshot:f}=i,d=await o.get(u,l,t,f),_=await this.hooks.lifecycle.onLoad.emit({id:u,pkgNameOrAlias:a,expose:l,exposeModule:n?d:void 0,exposeModuleFactory:n?void 0:d,remote:c,options:s,moduleInstance:o,origin:r});return this.setIdToRemoteMap(e,i),typeof _=="function"?_: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=Yt.formatPreloadArgs(t.options.remotes,e);await Promise.all(r.map(async n=>{const{remote:o}=n,s=it.getRemoteInfo(o),{globalSnapshot:i,remoteSnapshot:a}=await t.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:o}),c=await this.hooks.lifecycle.generatePreloadAssets.emit({origin:t,preloadOptions:n,remote:o,remoteInfo:s,globalSnapshot:i,remoteSnapshot:a});c&&Yt.preloadAssets(s,t,c)}))}registerRemotes(e,t){const{host:r}=this;e.forEach(n=>{this.registerRemote(n,r.options.remotes,{force:t?.force})})}async getRemoteModuleAndOptions(e){const{host:t}=this,{id:r}=e;let n;try{n=await this.hooks.lifecycle.beforeRequest.emit({id:r,options:t.options,origin:t})}catch(_){if(n=await this.hooks.lifecycle.errorLoadRemote.emit({id:r,options:t.options,origin:t,from:"runtime",error:_,lifecycle:"beforeRequest"}),!n)throw _}const{id:o}=n,s=xi.matchRemoteWithNameAndExpose(t.options.remotes,o);s||$e.error(zt.RUNTIME_004,zt.runtimeDescMap,{hostName:t.options.name,requestId:o},void 0,Ki.optionsToMFContext(t.options));const{remote:i}=s,a=it.getRemoteInfo(i),c=await t.sharedHandler.hooks.lifecycle.afterResolve.emit({id:o,...s,options:t.options,origin:t,remoteInfo:a}),{remote:l,expose:u}=c;$e.assert(l&&u,`The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ${o}.`);let f=t.moduleCache.get(l.name);const d={host:t,remoteInfo:a};return f||(f=new Yi.Module(d),t.moduleCache.set(l.name,f)),{module:f,moduleOptions:d,remoteMatchInfo:c}}registerRemote(e,t,r){const{host:n}=this,o=()=>
12{if(e.alias){const i=t.find(a=>e.alias&&(a.name.startsWith(e.alias)||a.alias?.startsWith(e.alias)));$e.assert(!i,`The alias ${e.alias} of remote ${e.name} is not allowed to be the prefix of ${i&&i.name} name or alias`)}"entry"in e&&at.isBrowserEnvValue&&typeof window<"u"&&!e.entry.startsWith("http")&&(e.entry=new URL(e.entry,window.location.origin).href),e.shareScope||(e.shareScope=Kt.DEFAULT_SCOPE),e.type||(e.type=Kt.DEFAULT_REMOTE_TYPE)};this.hooks.lifecycle.beforeRegisterRemote.emit({remote:e,origin:n});const s=t.find(i=>i.name===e.name);if(!s)o(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:n});else{const i=[`The remote "${e.name}" is already registered.`,"Please note that overriding it may cause unexpected errors."];r?.force&&(this.removeRemote(s),o(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:n}),(0,at.warn)(i.join(" ")))}}removeRemote(e){try{const{host:t}=this,{name:r}=e,n=t.options.remotes.findIndex(s=>s.name===r);n!==-1&&t.options.remotes.splice(n,1);const o=t.moduleCache.get(e.name);if(o){const s=o.remoteInfo,i=s.entryGlobalName;H.CurrentGlobal[i]&&(Object.getOwnPropertyDescriptor(H.CurrentGlobal,i)?.configurable?delete H.CurrentGlobal[i]:H.CurrentGlobal[i]=void 0);const a=it.getRemoteEntryUniqueKey(o.remoteInfo);H.globalLoading[a]&&delete H.globalLoading[a],t.snapshotHandler.manifestCache.delete(s.entry);let c=s.buildVersion?(0,at.composeKeyWithSeparator)(s.name,s.buildVersion):s.name;const l=H.CurrentGlobal.__FEDERATION__.__INSTANCES__.findIndex(f=>s.buildVersion?f.options.id===c:f.name===c);if(l!==-1){const f=H.CurrentGlobal.__FEDERATION__.__INSTANCES__[l];c=f.options.id||c;const d=ji.getGlobalShareScope();let _=!0;const h=[];Object.keys(d).forEach(m=>{const E=d[m];
12E&&Object.keys(E).forEach(g=>{const p=E[g];p&&Object.keys(p).forEach(P=>{const D=p[P];D&&Object.keys(D).forEach(A=>{const I=D[A];I&&typeof I=="object"&&I.from===s.name&&(I.loaded||I.loading?(I.useIn=I.useIn.filter($=>$!==s.name),I.useIn.length?_=!1:h.push([m,g,P,A])):h.push([m,g,P,A]))})})})}),_&&(f.shareScopeMap={},delete d[c]),h.forEach(([m,E,g,p])=>{delete d[m]?.[E]?.[g]?.[p]}),H.CurrentGlobal.__FEDERATION__.__INSTANCES__.splice(l,1)}const{hostGlobalSnapshot:u}=Zi.getGlobalRemoteInfo(e,t);if(u){const f=u&&"remotesInfo"in u&&u.remotesInfo&&H.getInfoWithoutType(u.remotesInfo,e.name).key;f&&(delete u.remotesInfo[f],H.Global.__FEDERATION__.__MANIFEST_LOADING__[f]&&delete H.Global.__FEDERATION__.__MANIFEST_LOADING__[f])}t.moduleCache.delete(e.name)}}catch(t){$e.logger.error(`removeRemote failed: ${t instanceof Error?t.message:String(t)}`)}}};rn.RemoteHandler=Qi;const ea=T,ta=ne,ra=U,na=Vr,oa=jr,sa=j,ia=je,X=_e,lt=Oe,aa=he,Jt=Ae,ct=ve,la=xe,ca=Zr,ua=Ke,fa=tn,da=rn;let _a=C,ut=Y;const ha=typeof FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN=="boolean"?!FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN:!0;var ma=class{constructor(e){this.hooks=new ct.PluginSystem({beforeInit:new aa.SyncWaterfallHook("beforeInit"),init:new X.SyncHook,beforeInitContainer:new Jt.AsyncWaterfallHook("beforeInitContainer"),initContainer:new Jt.AsyncWaterfallHook("initContainer")}),this.version="2.3.3",this.moduleCache=new Map,this.loaderHook=new ct.PluginSystem({getModuleInfo:new X.SyncHook,createScript:new X.SyncHook,createLink:new X.SyncHook,fetch:new lt.AsyncHook,loadEntryError:new lt.AsyncHook,getModuleFactory:new lt.AsyncHook}),this.bridgeHook=new ct.PluginSystem({beforeBridgeRender:new X.SyncHook,afterBridgeRender:new X.SyncHook,beforeBridgeDestroy:new X.SyncHook,afterBridgeDestroy:new X.SyncHook});const t=ha?[la.snapshotPlugin(),ca.generatePreloadAssetsPlugin()]:[],r={id:na.getBuilderId(),name:e.name,plugins:t,remotes:[],shared:{},inBrowser:_a.isBrowserEnvValue};this.name=e.name,this.options=r,this.snapshotHandler=new ua.SnapshotHandler(this),this.sharedHandler=new fa.SharedHandler(this),this.remoteHandler=new da.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&&ea.error((0,ut.getShortErrorMsg)(ut.RUNTIME_010,ut.runtimeDescMap)),this.registerPlugins(e.plugins);const t=this.formatOptions(this.options,e);return this.options=t,t}async loadShare(e,t){return this.sharedHandler.loadShare(e,t)}loadShareSync(e,t){return this.sharedHandler.loadShareSync(e,t)}initializeSharing(e=ta.DEFAULT_SCOPE,t){return this.sharedHandler.initializeSharing(e,t)}initRawContainer(e,t,r){const n=sa.getRemoteInfo({name:e,entry:t}),o=new ia.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}=ra.formatShareConfigs(e,t),{userOptions:n,options:o}=this.hooks.lifecycle.beforeInit.emit({origin:this,userOptions:t,options:e,shareInfo:r}),s=this.remoteHandler.formatAndRegisterRemote(o,n),{allShareInfos:i}=this.sharedHandler.registerShared(o,n),a=[...o.plugins];n.plugins&&n.plugins.forEach(l=>{a.includes(l)||a.push(l)});const c={...e,...t,plugins:a,remotes:s,shared:i};return this.hooks.lifecycle.init.emit({origin:this,options:c}),c}registerPlugins(e){const t=oa.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})}};Yr.ModuleFederation=ma;var nn={},on={},Zt=Object.defineProperty,pa=(e,t)=>{let r={};for(var n in e)Zt(r,n,{get:e[n],enumerable:!0});return t||Zt(r,Symbol.toStringTag,{value:"Module"}),r};on.__exportAll=pa;(function(e){var r=on.__exportAll({});Object.defineProperty(e,"type_exports",{enumerable:!0,get:function(){return r}})})(nn);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=T,r=b,n=y,o=Mt,s=U,i=de,a=j,c=xr,l=je,u=Yr,f=nn;let d=C;const _=c.default;e.CurrentGlobal=n.CurrentGlobal,e.Global=n.Global,e.Module=l.Module,e.ModuleFederation=u.ModuleFederation,e.addGlobalSnapshot=n.addGlobalSnapshot,e.assert=t.assert,e.error=t.error,e.getGlobalFederationConstructor=n.getGlobalFederationConstructor,e.getGlobalSnapshot=n.getGlobalSnapshot,e.getInfoWithoutType=n.getInfoWithoutType,e.getRegisteredShare=s.getRegisteredShare,e.getRemoteEntry=a.getRemoteEntry,e.getRemoteInfo=a.getRemoteInfo,e.helpers=_,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}})})(bt);let ga=bt;function Ea(){return typeof FEDERATION_BUILD_IDENTIFIER<"u"?FEDERATION_BUILD_IDENTIFIER:""}function ya(e,t){const r=Ea();return ga.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(n=>!!(r&&n.options.id===r||n.options.name===e&&!n.options.version&&!t||n.options.name===e&&t&&n.options.version===t))}ir.getGlobalFederationInstance=ya;(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ir;let r=bt,n=Y;function o(m){const E=new((0,r.getGlobalFederationConstructor)()||r.ModuleFederation)(m);return(0,r.setGlobalFederationInstance)(E),E}let s=null;function i(m){const E=t.getGlobalFederationInstance(m.name,m.version);return E?(E.initOptions(m),s||(s=E),E):(s=o(m),s)}function a(...m){return(0,r.assert)(s,n.RUNTIME_009,n.runtimeDescMap),s.loadRemote.apply(s,m)}function c(...m){return(0,r.assert)(s,n.RUNTIME_009,n.runtimeDescMap),s.loadShare.apply(s,m)}function l(...m){return(0,r.assert)(s,n.RUNTIME_009,n.runtimeDescMap),s.loadShareSync.apply(s,m)}function u(...m){return(0,r.assert)(s,n.RUNTIME_009,n.runtimeDescMap),s.preloadRemote.apply(s,m)}function f(...m){return(0,r.assert)(s,n.RUNTIME_009,n.runtimeDescMap),s.registerRemotes.apply(s,m)}function d(...m){return(0,r.assert)(s,n.RUNTIME_009,n.runtimeDescMap),s.registerPlugins.apply(s,m)}function _(){return s}function h(...m){return(0,r.assert)(s,n.RUNTIME_009,n.runtimeDescMap),s.registerShared.apply(s,m)}(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=_,Object.defineProperty(e,"getRemoteEntry",{enumerable:!0,get:function(){return r.getRemoteEntry}}),Object.defineProperty(e,"getRemoteInfo",{enumerable:!0,get:function(){return r.getRemoteInfo}}
12),e.init=i,e.loadRemote=a,Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){return r.loadScript}}),Object.defineProperty(e,"loadScriptNode",{enumerable:!0,get:function(){return r.loadScriptNode}}),e.loadShare=c,e.loadShareSync=l,e.preloadRemote=u,Object.defineProperty(e,"registerGlobalPlugins",{enumerable:!0,get:function(){return r.registerGlobalPlugins}}),e.registerPlugins=d,e.registerRemotes=f,e.registerShared=h})(sr);const Sa={instance:null};function Ra(){return{name:"bridge-react-plugin",beforeInit(e){return Sa.instance=e.origin,e}}}function ba(){return{name:"rewrite-remote-origin",afterResolve(e){const t=e.remoteInfo;if(!t?.entry||typeof window>"u")return e;try{const r=new URL(t.entry),n=new URL(window.location.origin);r.protocol=n.protocol,r.host=n.host,t.entry=r.toString()}catch{}return e}}}typeof __VUE_HMR_RUNTIME__>"u"&&(globalThis.__VUE_HMR_RUNTIME__={createRecord(){},rerender(){},reload(){}});const sn="__mf_init____mf__virtual/__mfe_internal__buster__mf_v__runtimeInit__mf_v__.js__";let Rt=globalThis[sn];if(!Rt){let e,t;const r=new Promise((n,o)=>{e=n,t=o});Rt=globalThis[sn]={initPromise:r,initResolve:e,initReject:t},typeof window>"u"&&e({loadRemote:function(){return Promise.resolve(void 0)},loadShare:function(){return Promise.resolve(void 0)}})}const Ia=Rt.initResolve,Qt={},er="default",tr="__mfe_internal__buster";let rr,nr;async function Ta(){return rr??=or(()=>import("./localSharedImportMap-MlDq2sT9.js"),__vite__mapDeps([0,1])),rr}async function Na(){return nr??=or(()=>import("./virtualExposes-LPRSDCRG.js"),[]).then(e=>e.default??e),nr}async function Ma(e={},t=[]){const{usedShared:r,usedRemotes:n}=await Ta(),o=sr.init({name:tr,remotes:n,shared:r,plugins:[Ra(),ba()],shareStrategy:"version-first"});var s=Qt[er];if(s||(s=Qt[er]={from:tr}),!(t.indexOf(s)>=0)){t.push(s),o.initShareScopeMap("default",e),Ia(o);try{await Promise.all(await o.initializeSharing("default",{strategy:"version-first",from:"build",initScope:t}))}catch(i){console.error("[Module Federation]",i)}return o}}async function Oa(e){const t=await Na();if(!(e in t))throw new Error(`[Module Federation] Module ${e} does not exist in container.`);return t[e]().then(r=>()=>r)}export{Sa as f,Oa as g,Ma as i}; 13//# sourceMappingURL=virtual_mf-REMOTE_ENTRY_ID___mfe_internal__buster__assets35968757485_remoteEntry_js-BpKdap8h.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.