@descope/flow-components 2.0.546 → 2.0.548

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/fm/main.js CHANGED
@@ -1 +1 @@
1
- (()=>{var __webpack_modules__={6927:(e,t,o)=>{"use strict";var r={};function n(){return n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},n.apply(this,arguments)}function s(e,t){if(null==e)return{};var o,r,n={},s=Object.keys(e);for(r=0;r<s.length;r++)o=s[r],t.indexOf(o)>=0||(n[o]=e[o]);return n}o.r(r),o.d(r,{FederationHost:()=>dt,Module:()=>Ye,getInstance:()=>wt,getRemoteEntry:()=>ze,getRemoteInfo:()=>Xe,init:()=>_t,loadRemote:()=>yt,loadScript:()=>a.k0,loadScriptNode:()=>a.oe,loadShare:()=>gt,loadShareSync:()=>Et,preloadRemote:()=>bt,registerGlobalPlugins:()=>W,registerPlugins:()=>vt,registerRemotes:()=>St});var a=o(9615);const i="RUNTIME-001",l="RUNTIME-002",c="RUNTIME-003",u="RUNTIME-004",p="RUNTIME-005",m="RUNTIME-006",h="RUNTIME-007",d="RUNTIME-008",f="TYPE-001",_="BUILD-001",y=(e,t,o,r)=>{const n=[`${[t[e]]} #${e}`];return o&&n.push(`args: ${JSON.stringify(o)}`),n.push((e=>`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}/${e}`)(e)),r&&n.push(`Original Error Message:\n ${r}`),n.join("\n")};function g(){return g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},g.apply(this,arguments)}const E={[i]:"Failed to get remoteEntry exports.",[l]:'The remote entry interface does not contain "init"',[c]:"Failed to get manifest.",[u]:"Failed to locate remote.",[p]:"Invalid loadShareSync function call from bundler runtime",[m]:"Invalid loadShareSync function call from runtime",[h]:"Failed to get remote snapshot.",[d]:"Failed to load script resources."},b=(g({},E,{[f]:"Failed to generate type declaration. Execute the below cmd to reproduce and fix the error."},{[_]:"Failed to find expose module."}),"[ Federation Runtime ]"),S=(0,a.h)(b);function v(e,t){e||w(t)}function w(e){if(e instanceof Error)throw e.message=`${b}: ${e.message}`,e;throw new Error(`${b}: ${e}`)}function N(e){e instanceof Error?(e.message=`${b}: ${e.message}`,S.warn(e)):S.warn(e)}function k(e,t){return-1===e.findIndex((e=>e===t))&&e.push(t),e}function I(e){return"version"in e&&e.version?`${e.name}:${e.version}`:"entry"in e&&e.entry?`${e.name}:${e.entry}`:`${e.name}`}function R(e){return void 0!==e.entry}function O(e){return!e.entry.includes(".json")&&e.entry.includes(".js")}function $(e){return e&&"object"==typeof e}const T=Object.prototype.toString;function A(e){return Array.isArray(e)?e:[e]}function M(e){const t={url:"",type:"global",globalName:""};return(0,a.OL)()||(0,a.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 P="object"==typeof globalThis?globalThis:window,L=(()=>{try{return document.defaultView}catch(e){return P}})(),x=L;function D(e,t,o){Object.defineProperty(e,t,{value:o,configurable:!1,writable:!0})}function H(e,t){return Object.hasOwnProperty.call(e,t)}H(P,"__GLOBAL_LOADING_REMOTE_ENTRY__")||D(P,"__GLOBAL_LOADING_REMOTE_ENTRY__",{});const j=P.__GLOBAL_LOADING_REMOTE_ENTRY__;function F(e){var t,o,r,n,s,a;H(e,"__VMOK__")&&!H(e,"__FEDERATION__")&&D(e,"__FEDERATION__",e.__VMOK__),H(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!=(o=e.__FEDERATION__).__INSTANCES__||(o.__INSTANCES__=[]),null!=(r=e.__FEDERATION__).moduleInfo||(r.moduleInfo={}),null!=(n=e.__FEDERATION__).__SHARE__||(n.__SHARE__={}),null!=(s=e.__FEDERATION__).__MANIFEST_LOADING__||(s.__MANIFEST_LOADING__={}),null!=(a=e.__FEDERATION__).__PRELOADED_MAP__||(a.__PRELOADED_MAP__=new Map)}function C(e,t){if("string"==typeof t){if(e[t])return{value:e[t],key:t};{const o=Object.keys(e);for(const r of o){const[o,n]=r.split(":"),s=`${o}:${t}`,a=e[s];if(a)return{value:a,key:s}}return{value:void 0,key:t}}}throw new Error("key must be string")}F(P),F(L);const q=()=>L.__FEDERATION__.moduleInfo,G=e=>((e,t)=>{const o=C(t,I(e)).value;if(o&&!o.version&&"version"in e&&e.version&&(o.version=e.version),o)return o;if("version"in e&&e.version){const{version:t}=e,o=I(s(e,["version"])),r=C(L.__FEDERATION__.moduleInfo,o).value;if((null==r?void 0:r.version)===t)return r}})(e,L.__FEDERATION__.moduleInfo),U=(e,t)=>{const o=I(e);return L.__FEDERATION__.moduleInfo[o]=t,L.__FEDERATION__.moduleInfo},B=(e,t)=>{const o=t||`__FEDERATION_${e}:custom__`;return{remoteEntryKey:o,entryExports:P[o]}},W=e=>{const{__GLOBAL_PLUGIN__:t}=L.__FEDERATION__;e.forEach((e=>{-1===t.findIndex((t=>t.name===e.name))?t.push(e):N(`The plugin ${e.name} has been registered.`)}))},V=e=>P.__FEDERATION__.__PRELOADED_MAP__.set(e,!0),K="default",z="global",X="[0-9A-Za-z-]+",Y=`(?:\\+(${X}(?:\\.${X})*))`,J="0|[1-9]\\d*",Z="[0-9]+",Q="\\d*[a-zA-Z-][a-zA-Z0-9-]*",ee=`(?:${Z}|${Q})`,te=`(?:${J}|${Q})`,oe=`(?:-(${te}(?:\\.${te})*))`,re=`${J}|x|X|\\*`,ne=`[v=\\s]*(${re})(?:\\.(${re})(?:\\.(${re})(?:${oe})?${Y}?)?)?`,se=`^\\s*(${ne})\\s+-\\s+(${ne})\\s*$`,ae="((?:<|>)?=?)",ie=`(\\s*)${ae}\\s*([v=\\s]*(${Z})\\.(${Z})\\.(${Z})(?:-?(${ee}(?:\\.${ee})*))?${Y}?|${ne})`,le="(?:~>?)",ce=`(\\s*)${le}\\s+`,ue="(?:\\^)",pe=`(\\s*)${ue}\\s+`,me="(<|>)?=?\\s*\\*",he=`^${ue}${ne}$`,de=`^${le}${ne}$`,fe=`^${ae}\\s*${ne}$`,_e=`^${ae}\\s*(v?(${J})\\.(${J})\\.(${J})${oe}?${Y}?)$|^$`,ye="^\\s*>=\\s*0.0.0\\s*$";function ge(e){return new RegExp(e)}function Ee(e){return!e||"x"===e.toLowerCase()||"*"===e}function be(...e){return t=>e.reduce(((e,t)=>t(e)),t)}function Se(e){return e.match(ge(_e))}function ve(e,t,o,r){const n=`${e}.${t}.${o}`;return r?`${n}-${r}`:n}function we(e){return e.replace(ge(se),((e,t,o,r,n,s,a,i,l,c,u,p)=>`${t=Ee(o)?"":Ee(r)?`>=${o}.0.0`:Ee(n)?`>=${o}.${r}.0`:`>=${t}`} ${i=Ee(l)?"":Ee(c)?`<${Number(l)+1}.0.0-0`:Ee(u)?`<${l}.${Number(c)+1}.0-0`:p?`<=${l}.${c}.${u}-${p}`:`<=${i}`}`.trim()))}function Ne(e){return e.replace(ge(ie),"$1$2$3")}function ke(e){return e.replace(ge(ce),"$1~")}function Ie(e){return e.replace(ge(pe),"$1^")}function Re(e){return e.trim().split(/\s+/).map((e=>e.replace(ge(he),((e,t,o,r,n)=>Ee(t)?"":Ee(o)?`>=${t}.0.0 <${Number(t)+1}.0.0-0`:Ee(r)?"0"===t?`>=${t}.${o}.0 <${t}.${Number(o)+1}.0-0`:`>=${t}.${o}.0 <${Number(t)+1}.0.0-0`:n?"0"===t?"0"===o?`>=${t}.${o}.${r}-${n} <${t}.${o}.${Number(r)+1}-0`:`>=${t}.${o}.${r}-${n} <${t}.${Number(o)+1}.0-0`:`>=${t}.${o}.${r}-${n} <${Number(t)+1}.0.0-0`:"0"===t?"0"===o?`>=${t}.${o}.${r} <${t}.${o}.${Number(r)+1}-0`:`>=${t}.${o}.${r} <${t}.${Number(o)+1}.0-0`:`>=${t}.${o}.${r} <${Number(t)+1}.0.0-0`)))).join(" ")}function Oe(e){return e.trim().split(/\s+/).map((e=>e.replace(ge(de),((e,t,o,r,n)=>Ee(t)?"":Ee(o)?`>=${t}.0.0 <${Number(t)+1}.0.0-0`:Ee(r)?`>=${t}.${o}.0 <${t}.${Number(o)+1}.0-0`:n?`>=${t}.${o}.${r}-${n} <${t}.${Number(o)+1}.0-0`:`>=${t}.${o}.${r} <${t}.${Number(o)+1}.0-0`)))).join(" ")}function $e(e){return e.split(/\s+/).map((e=>e.trim().replace(ge(fe),((e,t,o,r,n,s)=>{const a=Ee(o),i=a||Ee(r),l=i||Ee(n);return"="===t&&l&&(t=""),s="",a?">"===t||"<"===t?"<0.0.0-0":"*":t&&l?(i&&(r=0),n=0,">"===t?(t=">=",i?(o=Number(o)+1,r=0,n=0):(r=Number(r)+1,n=0)):"<="===t&&(t="<",i?o=Number(o)+1:r=Number(r)+1),"<"===t&&(s="-0"),`${t+o}.${r}.${n}${s}`):i?`>=${o}.0.0${s} <${Number(o)+1}.0.0-0`:l?`>=${o}.${r}.0${s} <${o}.${Number(r)+1}.0-0`:e})))).join(" ")}function Te(e){return e.trim().replace(ge(me),"")}function Ae(e,t){return(e=Number(e)||e)>(t=Number(t)||t)?1:e===t?0:-1}function Me(e,t){return Ae(e.major,t.major)||Ae(e.minor,t.minor)||Ae(e.patch,t.patch)||function(e,t){const{preRelease:o}=e,{preRelease:r}=t;if(void 0===o&&Boolean(r))return 1;if(Boolean(o)&&void 0===r)return-1;if(void 0===o&&void 0===r)return 0;for(let e=0,t=o.length;e<=t;e++){const t=o[e],n=r[e];if(t!==n)return void 0===t&&void 0===n?0:t?n?Ae(t,n):-1:1}return 0}(e,t)}function Pe(e,t){return e.version===t.version}function Le(e,t){switch(e.operator){case"":case"=":return Pe(e,t);case">":return Me(e,t)<0;case">=":return Pe(e,t)||Me(e,t)<0;case"<":return Me(e,t)>0;case"<=":return Pe(e,t)||Me(e,t)>0;case void 0:return!0;default:return!1}}function xe(e,t){if(!e)return!1;const o=function(e){return be(we,Ne,ke,Ie)(e.trim()).split(/\s+/).join(" ")}(t),r=o.split(" ").map((e=>function(e){return be(Re,Oe,$e,Te)(e)}(e))).join(" "),n=r.split(/\s+/).map((e=>e.trim().replace(ge(ye),""))),s=Se(e);if(!s)return!1;const[,a,,i,l,c,u]=s,p={operator:a,version:ve(i,l,c,u),major:i,minor:l,patch:c,preRelease:null==u?void 0:u.split(".")};for(const e of n){const t=Se(e);if(!t)return!1;const[,o,,r,n,s,a]=t;if(!Le({operator:o,version:ve(r,n,s,a),major:r,minor:n,patch:s,preRelease:null==a?void 0:a.split(".")},p))return!1}return!0}function De(e,t){const o=t.shared||{},r=t.name,s=Object.keys(o).reduce(((e,s)=>{const a=A(o[s]);return e[s]=e[s]||[],a.forEach((o=>{e[s].push(function(e,t,o,r){let s;var a,i,l;return s="get"in e?e.get:"lib"in e?()=>Promise.resolve(e.lib):()=>Promise.resolve((()=>{throw new Error(`Can not get shared '${o}'!`)})),n({deps:[],useIn:[],from:t,loading:null},e,{shareConfig:n({requiredVersion:`^${e.version}`,singleton:!1,eager:!1,strictVersion:!1},e.shareConfig),get:s,loaded:!(!(null==e?void 0:e.loaded)&&!("lib"in e))||void 0,version:null!=(a=e.version)?a:"0",scope:Array.isArray(e.scope)?e.scope:[null!=(i=e.scope)?i:"default"],strategy:(null!=(l=e.strategy)?l:r)||"version-first"})}(o,r,s,t.shareStrategy))})),e}),{}),a=n({},e.shared);return Object.keys(s).forEach((e=>{a[e]?s[e].forEach((t=>{a[e].find((e=>e.version===t.version))||a[e].push(t)})):a[e]=s[e]})),{shared:a,shareInfos:s}}function He(e,t){const o=e=>{if(!Number.isNaN(Number(e))){const t=e.split(".");let o=e;for(let e=0;e<3-t.length;e++)o+=".0";return o}return e};return!!xe(o(e),`<=${o(t)}`)}const je=(e,t)=>{const o=t||function(e,t){return He(e,t)};return Object.keys(e).reduce(((e,t)=>e?o(e,t)||"0"===e?t:e:t),0)},Fe=e=>Boolean(e.loaded)||"function"==typeof e.lib,Ce=e=>Boolean(e.loading);function qe(e,t,o){const r=e[t][o];return je(e[t][o],(function(e,t){return!Fe(r[e])&&He(e,t)}))}function Ge(e,t,o){const r=e[t][o];return je(e[t][o],(function(e,t){const o=e=>Fe(e)||Ce(e);return o(r[t])?!o(r[e])||Boolean(He(e,t)):!o(r[e])&&He(e,t)}))}function Ue(e){return"loaded-first"===e?Ge:qe}function Be(e,t,o,r){if(!e)return;const{shareConfig:n,scope:s=K,strategy:a}=o,i=Array.isArray(s)?s:[s];for(const s of i)if(n&&e[s]&&e[s][t]){const{requiredVersion:i}=n,l=Ue(a)(e,s,t),c=()=>{if(n.singleton){if("string"==typeof i&&!xe(l,i)){const r=`Version ${l} from ${l&&e[s][t][l].from} of shared singleton module ${t} does not satisfy the requirement of ${o.from} which needs ${i})`;n.strictVersion?w(r):N(r)}return e[s][t][l]}if(!1===i||"*"===i)return e[s][t][l];if(xe(l,i))return e[s][t][l];for(const[o,r]of Object.entries(e[s][t]))if(xe(o,i))return r},u={shareScopeMap:e,scope:s,pkgName:t,version:l,GlobalFederation:x.__FEDERATION__,resolver:c};return(r.emit(u)||u).resolver()}}function We(){return x.__FEDERATION__.__SHARE__}function Ve(e){const{pkgName:t,extraOptions:o,shareInfos:r}=e;var n;const s=null!=(n=null==o?void 0:o.resolver)?n:e=>{if(!e)return;const t={};e.forEach((e=>{t[e.version]=e}));const o=je(t,(function(e,o){return!Fe(t[e])&&He(e,o)}));return t[o]};return Object.assign({},s(r[t]),null==o?void 0:o.customShareInfo)}function Ke(e){const{entry:t,name:o}=e;return(0,a.lG)(o,t)}async function ze({origin:e,remoteEntryExports:t,remoteInfo:o}){const r=Ke(o);if(t)return t;if(!j[r]){const n=e.remoteHandler.hooks.lifecycle.loadEntry,s=e.loaderHook;j[r]=n.emit({loaderHook:s,remoteInfo:o,remoteEntryExports:t}).then((e=>e||((0,a.OL)()?async function({remoteInfo:e,remoteEntryExports:t,loaderHook:o}){const{entry:r,entryGlobalName:n,name:s,type:l}=e;switch(l){case"esm":case"module":return async function({entry:e,remoteEntryExports:t}){return new Promise(((o,r)=>{try{t?o(t):"undefined"!=typeof FEDERATION_ALLOW_NEW_FUNCTION?new Function("callbacks",`import("${e}").then(callbacks[0]).catch(callbacks[1])`)([o,r]):import(e).then(o).catch(r)}catch(e){r(e)}}))}({entry:r,remoteEntryExports:t});case"system":return async function({entry:e,remoteEntryExports:t}){return new Promise(((o,r)=>{try{t?o(t):new Function("callbacks",`System.import("${e}").then(callbacks[0]).catch(callbacks[1])`)([o,r])}catch(e){r(e)}}))}({entry:r,remoteEntryExports:t});default:return async function({name:e,globalName:t,entry:o,loaderHook:r}){const{entryExports:n}=B(e,t);return n||(0,a.k0)(o,{attrs:{},createScriptHook:(e,t)=>{const o=r.lifecycle.createScript.emit({url:e,attrs:t});if(o)return o instanceof HTMLScriptElement||"script"in o||"timeout"in o?o:void 0}}).then((()=>{const{remoteEntryKey:r,entryExports:n}=B(e,t);return v(n,y(i,E,{remoteName:e,remoteEntryUrl:o,remoteEntryKey:r})),n})).catch((t=>{throw v(void 0,y(d,E,{remoteName:e,resourceUrl:o})),t}))}({entry:r,globalName:n,name:s,loaderHook:o})}}({remoteInfo:o,remoteEntryExports:t,loaderHook:s}):async function({remoteInfo:e,loaderHook:t}){const{entry:o,entryGlobalName:r,name:n,type:s}=e,{entryExports:l}=B(n,r);return l||(0,a.oe)(o,{attrs:{name:n,globalName:r,type:s},loaderHook:{createScriptHook:(e,o={})=>{const r=t.lifecycle.createScript.emit({url:e,attrs:o});if(r)return"url"in r?r:void 0}}}).then((()=>{const{remoteEntryKey:e,entryExports:t}=B(n,r);return v(t,y(i,E,{remoteName:n,remoteEntryUrl:o,remoteEntryKey:e})),t})).catch((e=>{throw e}))}({remoteInfo:o,loaderHook:s}))))}return j[r]}function Xe(e){return n({},e,{entry:"entry"in e?e.entry:"",type:e.type||z,entryGlobalName:e.entryGlobalName||e.name,shareScope:e.shareScope||K})}let Ye=class{async getEntry(){if(this.remoteEntryExports)return this.remoteEntryExports;let e;try{e=await ze({origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports})}catch(t){const o=Ke(this.remoteInfo);e=await this.host.loaderHook.lifecycle.loadEntryError.emit({getRemoteEntry:ze,origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports,globalLoading:j,uniqueKey:o})}return v(e,`remoteEntryExports is undefined \n ${(0,a.ML)(this.remoteInfo)}`),this.remoteEntryExports=e,this.remoteEntryExports}async get(e,t,o,r){const{loadFactory:s=!0}=o||{loadFactory:!0},a=await this.getEntry();if(!this.inited){const t=this.host.shareScopeMap,o=Array.isArray(this.remoteInfo.shareScope)?this.remoteInfo.shareScope:[this.remoteInfo.shareScope];o.length||o.push("default"),o.forEach((e=>{t[e]||(t[e]={})}));const s=t[o[0]],i=[],c={version:this.remoteInfo.version||"",shareScopeKeys:Array.isArray(this.remoteInfo.shareScope)?o:this.remoteInfo.shareScope||"default"};Object.defineProperty(c,"shareScopeMap",{value:t,enumerable:!1});const u=await this.host.hooks.lifecycle.beforeInitContainer.emit({shareScope:s,remoteEntryInitOptions:c,initScope:i,remoteInfo:this.remoteInfo,origin:this.host});void 0===(null==a?void 0:a.init)&&w(y(l,E,{remoteName:name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName})),await a.init(u.shareScope,u.initScope,u.remoteEntryInitOptions),await this.host.hooks.lifecycle.initContainer.emit(n({},u,{id:e,remoteSnapshot:r,remoteEntryExports:a}))}let i;this.lib=a,this.inited=!0,i=await this.host.loaderHook.lifecycle.getModuleFactory.emit({remoteEntryExports:a,expose:t,moduleInfo:this.remoteInfo}),i||(i=await a.get(t)),v(i,`${I(this.remoteInfo)} remote don't export ${t}.`);const c=((e,t)=>{let o;return o=e.endsWith("/")?e.slice(0,-1):e,t.startsWith(".")&&(t=t.slice(1)),o+=t,o})(this.remoteInfo.name,t),u=this.wraperFactory(i,c);return s?await u():u}wraperFactory(e,t){function o(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 r=await e();return o(r,t),r}:()=>{const r=e();return o(r,t),r}}constructor({remoteInfo:e,host:t}){this.inited=!1,this.lib=void 0,this.remoteInfo=e,this.host=t}};class Je{on(e){"function"==typeof e&&this.listeners.add(e)}once(e){const t=this;this.on((function o(...r){return t.remove(o),e.apply(null,r)}))}emit(...e){let t;return this.listeners.size>0&&this.listeners.forEach((o=>{t=o(...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 Ze extends Je{emit(...e){let t;const o=Array.from(this.listeners);if(o.length>0){let r=0;const n=t=>!1!==t&&(r<o.length?Promise.resolve(o[r++].apply(null,e)).then(n):t);t=n()}return Promise.resolve(t)}}function Qe(e,t){if(!$(t))return!1;if(e!==t)for(const o in e)if(!(o in t))return!1;return!0}class et extends Je{emit(e){$(e)||w(`The data for the "${this.type}" hook should be an object.`);for(const t of this.listeners)try{const o=t(e);if(!Qe(e,o)){this.onerror(`A plugin returned an unacceptable value for the "${this.type}" type.`);break}e=o}catch(e){N(e),this.onerror(e)}return e}constructor(e){super(),this.onerror=w,this.type=e}}class tt extends Je{emit(e){$(e)||w(`The response data for the "${this.type}" hook must be an object.`);const t=Array.from(this.listeners);if(t.length>0){let o=0;const r=t=>(N(t),this.onerror(t),e),n=s=>{if(Qe(e,s)){if(e=s,o<t.length)try{return Promise.resolve(t[o++](e)).then(n,r)}catch(e){return r(e)}}else this.onerror(`A plugin returned an incorrect value for the "${this.type}" type.`);return e};return Promise.resolve(n(e))}return Promise.resolve(e)}constructor(e){super(),this.onerror=w,this.type=e}}class ot{applyPlugin(e){var t;v((t=e,"[object Object]"===T.call(t)),"Plugin configuration is invalid.");const o=e.name;v(o,"A name must be provided by the plugin."),this.registerPlugins[o]||(this.registerPlugins[o]=e,Object.keys(this.lifecycle).forEach((t=>{const o=e[t];o&&this.lifecycle[t].on(o)})))}removePlugin(e){v(e,"A name is required.");const t=this.registerPlugins[e];v(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=>{v(!this.lifecycle[t],`The hook "${t}" has a conflict and cannot be inherited.`),this.lifecycle[t]=e[t]})),Object.keys(t).forEach((e=>{v(!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 rt(e){return n({resourceCategory:"sync",share:!0,depsRemote:!0,prefetchInterface:!1},e)}function nt(e,t,o,r=!0){const{cssAssets:n,jsAssetsWithoutEntry:s,entryAssets:i}=o;if(t.options.inBrowser){if(i.forEach((o=>{const{moduleInfo:r}=o,n=t.moduleCache.get(e.name);ze(n?{origin:t,remoteInfo:r,remoteEntryExports:n.remoteEntryExports}:{origin:t,remoteInfo:r,remoteEntryExports:void 0})})),r){const e={rel:"preload",as:"style"};n.forEach((o=>{const{link:r,needAttach:n}=(0,a.d)({url:o,cb:()=>{},attrs:e,createLinkHook:(e,o)=>{const r=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:o});if(r instanceof HTMLLinkElement)return r}});n&&document.head.appendChild(r)}))}else{const e={rel:"stylesheet",type:"text/css"};n.forEach((o=>{const{link:r,needAttach:n}=(0,a.d)({url:o,cb:()=>{},attrs:e,createLinkHook:(e,o)=>{const r=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:o});if(r instanceof HTMLLinkElement)return r},needDeleteLink:!1});n&&document.head.appendChild(r)}))}if(r){const e={rel:"preload",as:"script"};s.forEach((o=>{const{link:r,needAttach:n}=(0,a.d)({url:o,cb:()=>{},attrs:e,createLinkHook:(e,o)=>{const r=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:o});if(r instanceof HTMLLinkElement)return r}});n&&document.head.appendChild(r)}))}else{const o={fetchpriority:"high",type:"module"===(null==e?void 0:e.type)?"module":"text/javascript"};s.forEach((e=>{const{script:r,needAttach:n}=(0,a.so)({url:e,cb:()=>{},attrs:o,createScriptHook:(e,o)=>{const r=t.loaderHook.lifecycle.createScript.emit({url:e,attrs:o});if(r instanceof HTMLScriptElement)return r},needDeleteScript:!0});n&&document.head.appendChild(r)}))}}}function st(e,t){const o=M(t);o.url||w(`The attribute remoteEntry of ${e.name} must not be undefined.`);let r=(0,a.Al)(t,o.url);(0,a.OL)()||r.startsWith("http")||(r=`https:${r}`),e.type=o.type,e.entryGlobalName=o.globalName,e.entry=r,e.version=t.version,e.buildVersion=t.buildVersion}function at(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 it(e,t,o,r,n={},s){const i=I(t),{value:l}=C(e,i),c=s||l;if(c&&!(0,a.Tr)(c)&&(o(c,t,r),c.remotesInfo)){const t=Object.keys(c.remotesInfo);for(const r of t){if(n[r])continue;n[r]=!0;const t=at(r),s=c.remotesInfo[r];it(e,{name:t.name,version:s.matchedVersion},o,!1,n,void 0)}}}const lt=(e,t)=>document.querySelector(`${e}[${"link"===e?"href":"src"}="${t}"]`);function ct(e,t,o,r,n){const s=[],i=[],l=[],c=new Set,u=new Set,{options:p}=e,{preloadConfig:m}=t,{depsRemote:h}=m;if(it(r,o,((t,o,r)=>{let n;if(r)n=m;else if(Array.isArray(h)){const e=h.find((e=>e.nameOrAlias===o.name||e.nameOrAlias===o.alias));if(!e)return;n=rt(e)}else{if(!0!==h)return;n=m}const c=(0,a.Al)(t,M(t).url);c&&l.push({name:o.name,moduleInfo:{name:o.name,entry:c,type:"remoteEntryType"in t?t.remoteEntryType:"global",entryGlobalName:"globalName"in t?t.globalName:o.name,shareScope:"",version:"version"in t?t.version:void 0},url:c});let u="modules"in t?t.modules:[];const p=(d=n.exposes)?d.map((e=>"."===e?e:e.startsWith("./")?e.replace("./",""):e)):[];var d,f,_;function y(e){const o=e.map((e=>(0,a.Al)(t,e)));return n.filter?o.filter(n.filter):o}if(p.length&&"modules"in t&&(u=null==t||null==(f=t.modules)?void 0:f.reduce(((e,t)=>(-1!==(null==p?void 0:p.indexOf(t.moduleName))&&e.push(t),e)),[])),u){const r=u.length;for(let a=0;a<r;a++){const r=u[a],l=`${o.name}/${r.moduleName}`;e.remoteHandler.hooks.lifecycle.handlePreloadModule.emit({id:"."===r.moduleName?o.name:l,name:o.name,remoteSnapshot:t,preloadConfig:n,remote:o,origin:e}),_=l,P.__FEDERATION__.__PRELOADED_MAP__.get(_)||("all"===n.resourceCategory?(s.push(...y(r.assets.css.async)),s.push(...y(r.assets.css.sync)),i.push(...y(r.assets.js.async)),i.push(...y(r.assets.js.sync))):(n.resourceCategory="sync")&&(s.push(...y(r.assets.css.sync)),i.push(...y(r.assets.js.sync))),V(l))}}}),!0,{},n),n.shared){const t=(t,o)=>{const r=Be(e.shareScopeMap,o.sharedName,t,e.sharedHandler.hooks.lifecycle.resolveShare);r&&"function"==typeof r.lib&&(o.assets.js.sync.forEach((e=>{c.add(e)})),o.assets.css.sync.forEach((e=>{u.add(e)})))};n.shared.forEach((e=>{var o;const r=null==(o=p.shared)?void 0:o[e.sharedName];if(!r)return;const n=e.version?r.find((t=>t.version===e.version)):r;n&&A(n).forEach((o=>{t(o,e)}))}))}const d=i.filter((e=>!c.has(e)&&!lt("script",e)));return{cssAssets:s.filter((e=>!u.has(e)&&!lt("link",e))),jsAssetsWithoutEntry:d,entryAssets:l.filter((e=>!lt("script",e.url)))}}function ut(e,t){const o=G({name:t.options.name,version:t.options.version}),r=o&&"remotesInfo"in o&&o.remotesInfo&&C(o.remotesInfo,e.name).value;return r&&r.matchedVersion?{hostGlobalSnapshot:o,globalSnapshot:q(),remoteSnapshot:G({name:e.name,version:r.matchedVersion})}:{hostGlobalSnapshot:void 0,globalSnapshot:q(),remoteSnapshot:G({name:e.name,version:"version"in e?e.version:void 0})}}class pt{async loadSnapshot(e){const{options:t}=this.HostInstance,{hostGlobalSnapshot:o,remoteSnapshot:r,globalSnapshot:n}=this.getGlobalRemoteInfo(e),{remoteSnapshot:s,globalSnapshot:a}=await this.hooks.lifecycle.loadSnapshot.emit({options:t,moduleInfo:e,hostGlobalSnapshot:o,remoteSnapshot:r,globalSnapshot:n});return{remoteSnapshot:s,globalSnapshot:a}}async loadRemoteSnapshotInfo(e){const{options:t}=this.HostInstance;await this.hooks.lifecycle.beforeLoadRemoteSnapshot.emit({options:t,moduleInfo:e});let o=G({name:this.HostInstance.options.name,version:this.HostInstance.options.version});var r;o||(o={version:this.HostInstance.options.version||"",remoteEntry:"",remotesInfo:{}},r={[this.HostInstance.options.name]:o},L.__FEDERATION__.moduleInfo=n({},L.__FEDERATION__.moduleInfo,r)),o&&"remotesInfo"in o&&!C(o.remotesInfo,e.name).value&&("version"in e||"entry"in e)&&(o.remotesInfo=n({},null==o?void 0:o.remotesInfo,{[e.name]:{matchedVersion:"version"in e?e.version:e.entry}}));const{hostGlobalSnapshot:s,remoteSnapshot:i,globalSnapshot:l}=this.getGlobalRemoteInfo(e),{remoteSnapshot:c,globalSnapshot:u}=await this.hooks.lifecycle.loadSnapshot.emit({options:t,moduleInfo:e,hostGlobalSnapshot:s,remoteSnapshot:i,globalSnapshot:l});let p,m;if(c)if((0,a.Tr)(c)){const t=(0,a.OL)()?c.remoteEntry:c.ssrRemoteEntry||c.remoteEntry||"",o=await this.getManifestJson(t,e,{});p=o,m=U(n({},e,{entry:t}),o)}else{const{remoteSnapshot:t}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:c,from:"global"});p=t,m=u}else if(R(e)){const t=await this.getManifestJson(e.entry,e,{}),o=U(e,t),{remoteSnapshot:r}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:t,from:"global"});p=r,m=o}else w(y(h,E,{hostName:e.name,hostVersion:e.version,globalSnapshot:JSON.stringify(u)}));return await this.hooks.lifecycle.afterLoadSnapshot.emit({options:t,moduleInfo:e,remoteSnapshot:p}),{remoteSnapshot:p,globalSnapshot:m}}getGlobalRemoteInfo(e){return ut(e,this.HostInstance)}async getManifestJson(e,t,o){const r=async()=>{let o=this.manifestCache.get(e);if(o)return o;try{let t=await this.loaderHook.lifecycle.fetch.emit(e,{});t&&t instanceof Response||(t=await fetch(e,{})),o=await t.json()}catch(r){o=await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:r,from:"runtime",lifecycle:"afterResolve",origin:this.HostInstance}),o||(delete this.manifestLoading[e],w(y(c,E,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name},`${r}`)))}return v(o.metaData&&o.exposes&&o.shared,`${e} is not a federation manifest`),this.manifestCache.set(e,o),o};return this.manifestLoading[e]||(this.manifestLoading[e]=(async()=>{const o=await r(),n=(0,a.Jn)(o,{version:e}),{remoteSnapshot:s}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:t,manifestJson:o,remoteSnapshot:n,manifestUrl:e,from:"manifest"});return s})().then((e=>e))),this.manifestLoading[e]}constructor(e){this.loadingHostSnapshot=null,this.manifestCache=new Map,this.hooks=new ot({beforeLoadRemoteSnapshot:new Ze("beforeLoadRemoteSnapshot"),loadSnapshot:new tt("loadGlobalSnapshot"),loadRemoteSnapshot:new tt("loadRemoteSnapshot"),afterLoadSnapshot:new tt("afterLoadSnapshot")}),this.manifestLoading=x.__FEDERATION__.__MANIFEST_LOADING__,this.HostInstance=e,this.loaderHook=e.loaderHook}}class mt{registerShared(e,t){const{shareInfos:o,shared:r}=De(e,t);return Object.keys(o).forEach((e=>{o[e].forEach((o=>{!Be(this.shareScopeMap,e,o,this.hooks.lifecycle.resolveShare)&&o&&o.lib&&this.setShared({pkgName:e,lib:o.lib,get:o.get,loaded:!0,shared:o,from:t.name})}))})),{shareInfos:o,shared:r}}async loadShare(e,t){const{host:o}=this,r=Ve({pkgName:e,extraOptions:t,shareInfos:o.options.shared});(null==r?void 0:r.scope)&&await Promise.all(r.scope.map((async e=>{await Promise.all(this.initializeSharing(e,{strategy:r.strategy}))})));const n=await this.hooks.lifecycle.beforeLoadShare.emit({pkgName:e,shareInfo:r,shared:o.options.shared,origin:o}),{shareInfo:s}=n;v(s,`Cannot find ${e} Share in the ${o.options.name}. Please ensure that the ${e} Share parameters have been injected`);const a=Be(this.shareScopeMap,e,s,this.hooks.lifecycle.resolveShare),i=e=>{e.useIn||(e.useIn=[]),k(e.useIn,o.options.name)};if(a&&a.lib)return i(a),a.lib;if(a&&a.loading&&!a.loaded){const e=await a.loading;return a.loaded=!0,a.lib||(a.lib=e),i(a),e}if(a){const t=(async()=>{const t=await a.get();s.lib=t,s.loaded=!0,i(s);const o=Be(this.shareScopeMap,e,s,this.hooks.lifecycle.resolveShare);return o&&(o.lib=t,o.loaded=!0),t})();return this.setShared({pkgName:e,loaded:!1,shared:a,from:o.options.name,lib:null,loading:t}),t}{if(null==t?void 0:t.customShareInfo)return!1;const r=(async()=>{const t=await s.get();s.lib=t,s.loaded=!0,i(s);const o=Be(this.shareScopeMap,e,s,this.hooks.lifecycle.resolveShare);return o&&(o.lib=t,o.loaded=!0),t})();return this.setShared({pkgName:e,loaded:!1,shared:s,from:o.options.name,lib:null,loading:r}),r}}initializeSharing(e=K,t){const{host:o}=this,r=null==t?void 0:t.from,n=null==t?void 0:t.strategy;let s=null==t?void 0:t.initScope;const a=[];if("build"!==r){const{initTokens:t}=this;s||(s=[]);let o=t[e];if(o||(o=t[e]={from:this.host.name}),s.indexOf(o)>=0)return a;s.push(o)}const i=this.shareScopeMap,l=o.options.name;i[e]||(i[e]={});const c=i[e];return Object.keys(o.options.shared).forEach((t=>{o.options.shared[t].forEach((o=>{o.scope.includes(e)&&((e,t)=>{var o;const{version:r,eager:n}=t;c[e]=c[e]||{};const s=c[e],a=s[r],i=Boolean(a&&(a.eager||(null==(o=a.shareConfig)?void 0:o.eager)));(!a||"loaded-first"!==a.strategy&&!a.loaded&&(Boolean(!n)!==!i?n:l>a.from))&&(s[r]=t)})(t,o)}))})),"version-first"!==o.options.shareStrategy&&"version-first"!==n||o.options.remotes.forEach((t=>{t.shareScope===e&&a.push((async t=>{const{module:r}=await o.remoteHandler.getRemoteModuleAndOptions({id:t});if(r.getEntry){let a;try{a=await r.getEntry()}catch(e){a=await o.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:t,error:e,from:"runtime",lifecycle:"beforeLoadShare",origin:o})}r.inited||(await(n=a,n&&n.init&&n.init(i[e],s)),r.inited=!0)}var n})(t.name))})),a}loadShareSync(e,t){const{host:o}=this,r=Ve({pkgName:e,extraOptions:t,shareInfos:o.options.shared});(null==r?void 0:r.scope)&&r.scope.forEach((e=>{this.initializeSharing(e,{strategy:r.strategy})}));const n=Be(this.shareScopeMap,e,r,this.hooks.lifecycle.resolveShare),s=e=>{e.useIn||(e.useIn=[]),k(e.useIn,o.options.name)};if(n){if("function"==typeof n.lib)return s(n),n.loaded||(n.loaded=!0,n.from===o.options.name&&(r.loaded=!0)),n.lib;if("function"==typeof n.get){const t=n.get();if(!(t instanceof Promise))return s(n),this.setShared({pkgName:e,loaded:!0,from:o.options.name,lib:t,shared:n}),t}}if(r.lib)return r.loaded||(r.loaded=!0),r.lib;if(r.get){const n=r.get();if(n instanceof Promise){const r="build"===(null==t?void 0:t.from)?p:m;throw new Error(y(r,E,{hostName:o.options.name,sharedPkgName:e}))}return r.lib=n,this.setShared({pkgName:e,loaded:!0,from:o.options.name,lib:r.lib,shared:r}),r.lib}throw new Error(y(m,E,{hostName:o.options.name,sharedPkgName:e}))}initShareScopeMap(e,t,o={}){const{host:r}=this;this.shareScopeMap[e]=t,this.hooks.lifecycle.initContainerShareScopeMap.emit({shareScope:t,options:r.options,origin:r,scopeName:e,hostShareScopeMap:o.hostShareScopeMap})}setShared({pkgName:e,shared:t,from:o,lib:r,loading:a,loaded:i,get:l}){const{version:c,scope:u="default"}=t,p=s(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][c])return this.shareScopeMap[t][e][c]=n({version:c,scope:["default"]},p,{lib:r,loaded:i,loading:a}),void(l&&(this.shareScopeMap[t][e][c].get=l));const o=this.shareScopeMap[t][e][c];a&&!o.loading&&(o.loading=a)}))}_setGlobalShareScopeMap(e){const t=We(),o=e.id||e.name;o&&!t[o]&&(t[o]=this.shareScopeMap)}constructor(e){this.hooks=new ot({afterResolve:new tt("afterResolve"),beforeLoadShare:new tt("beforeLoadShare"),loadShare:new Ze,resolveShare:new et("resolveShare"),initContainerShareScopeMap:new et("initContainerShareScopeMap")}),this.host=e,this.shareScopeMap={},this.initTokens={},this._setGlobalShareScopeMap(e.options)}}class ht{formatAndRegisterRemote(e,t){return(t.remotes||[]).reduce(((e,t)=>(this.registerRemote(t,e,{force:!1}),e)),e.remotes)}setIdToRemoteMap(e,t){const{remote:o,expose:r}=t,{name:n,alias:s}=o;if(this.idToRemoteMap[e]={name:o.name,expose:r},s&&e.startsWith(n)){const t=e.replace(n,s);this.idToRemoteMap[t]={name:o.name,expose:r}}else if(s&&e.startsWith(s)){const t=e.replace(s,n);this.idToRemoteMap[t]={name:o.name,expose:r}}}async loadRemote(e,t){const{host:o}=this;try{const{loadFactory:r=!0}=t||{loadFactory:!0},{module:n,moduleOptions:s,remoteMatchInfo:a}=await this.getRemoteModuleAndOptions({id:e}),{pkgNameOrAlias:i,remote:l,expose:c,id:u,remoteSnapshot:p}=a,m=await n.get(u,c,t,p),h=await this.hooks.lifecycle.onLoad.emit({id:u,pkgNameOrAlias:i,expose:c,exposeModule:r?m:void 0,exposeModuleFactory:r?void 0:m,remote:l,options:s,moduleInstance:n,origin:o});return this.setIdToRemoteMap(e,a),"function"==typeof h?h:m}catch(r){const{from:n="runtime"}=t||{from:"runtime"},s=await this.hooks.lifecycle.errorLoadRemote.emit({id:e,error:r,from:n,lifecycle:"onLoad",origin:o});if(!s)throw r;return s}}async preloadRemote(e){const{host:t}=this;await this.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:e,options:t.options,origin:t});const o=(r=t.options.remotes,e.map((e=>{const t=function(e,t){for(const o of e){if(t===o.name)return o;if(o.alias&&t===o.alias)return o}}(r,e.nameOrAlias);return v(t,`Unable to preload ${e.nameOrAlias} as it is not included in ${!t&&(0,a.ML)({remoteInfo:t,remotes:r})}`),{remote:t,preloadConfig:rt(e)}})));var r;await Promise.all(o.map((async e=>{const{remote:o}=e,r=Xe(o),{globalSnapshot:n,remoteSnapshot:s}=await t.snapshotHandler.loadRemoteSnapshotInfo(o),a=await this.hooks.lifecycle.generatePreloadAssets.emit({origin:t,preloadOptions:e,remote:o,remoteInfo:r,globalSnapshot:n,remoteSnapshot:s});a&&nt(r,t,a)})))}registerRemotes(e,t){const{host:o}=this;e.forEach((e=>{this.registerRemote(e,o.options.remotes,{force:null==t?void 0:t.force})}))}async getRemoteModuleAndOptions(e){const{host:t}=this,{id:o}=e;let r;try{r=await this.hooks.lifecycle.beforeRequest.emit({id:o,options:t.options,origin:t})}catch(e){if(r=await this.hooks.lifecycle.errorLoadRemote.emit({id:o,options:t.options,origin:t,from:"runtime",error:e,lifecycle:"beforeRequest"}),!r)throw e}const{id:s}=r,a=function(e,t){for(const o of e){const e=t.startsWith(o.name);let r=t.replace(o.name,"");if(e){if(r.startsWith("/"))return r=`.${r}`,{pkgNameOrAlias:o.name,expose:r,remote:o};if(""===r)return{pkgNameOrAlias:o.name,expose:".",remote:o}}const n=o.alias&&t.startsWith(o.alias);let s=o.alias&&t.replace(o.alias,"");if(o.alias&&n){if(s&&s.startsWith("/"))return s=`.${s}`,{pkgNameOrAlias:o.alias,expose:s,remote:o};if(""===s)return{pkgNameOrAlias:o.alias,expose:".",remote:o}}}}(t.options.remotes,s);v(a,y(u,E,{hostName:t.options.name,requestId:s}));const{remote:i}=a,l=Xe(i),c=await t.sharedHandler.hooks.lifecycle.afterResolve.emit(n({id:s},a,{options:t.options,origin:t,remoteInfo:l})),{remote:p,expose:m}=c;v(p&&m,`The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ${s}.`);let h=t.moduleCache.get(p.name);const d={host:t,remoteInfo:l};return h||(h=new Ye(d),t.moduleCache.set(p.name,h)),{module:h,moduleOptions:d,remoteMatchInfo:c}}registerRemote(e,t,o){const{host:r}=this,n=()=>{if(e.alias){const o=t.find((t=>{var o;return e.alias&&(t.name.startsWith(e.alias)||(null==(o=t.alias)?void 0:o.startsWith(e.alias)))}));v(!o,`The alias ${e.alias} of remote ${e.name} is not allowed to be the prefix of ${o&&o.name} name or alias`)}"entry"in e&&(0,a.OL)()&&!e.entry.startsWith("http")&&(e.entry=new URL(e.entry,window.location.origin).href),e.shareScope||(e.shareScope=K),e.type||(e.type=z)};this.hooks.lifecycle.beforeRegisterRemote.emit({remote:e,origin:r});const s=t.find((t=>t.name===e.name));if(s){const i=[`The remote "${e.name}" is already registered.`,"Please note that overriding it may cause unexpected errors."];(null==o?void 0:o.force)&&(this.removeRemote(s),n(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:r}),(0,a.R8)(i.join(" ")))}else n(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:r})}removeRemote(e){try{const{host:o}=this,{name:r}=e,n=o.options.remotes.findIndex((e=>e.name===r));-1!==n&&o.options.remotes.splice(n,1);const s=o.moduleCache.get(e.name);if(s){const r=s.remoteInfo,n=r.entryGlobalName;var t;P[n]&&((null==(t=Object.getOwnPropertyDescriptor(P,n))?void 0:t.configurable)?delete P[n]:P[n]=void 0);const i=Ke(s.remoteInfo);j[i]&&delete j[i],o.snapshotHandler.manifestCache.delete(r.entry);let l=r.buildVersion?(0,a.lG)(r.name,r.buildVersion):r.name;const c=P.__FEDERATION__.__INSTANCES__.findIndex((e=>r.buildVersion?e.options.id===l:e.name===l));if(-1!==c){const e=P.__FEDERATION__.__INSTANCES__[c];l=e.options.id||l;const t=We();let o=!0;const n=[];Object.keys(t).forEach((e=>{const s=t[e];s&&Object.keys(s).forEach((t=>{const a=s[t];a&&Object.keys(a).forEach((s=>{const i=a[s];i&&Object.keys(i).forEach((a=>{const l=i[a];l&&"object"==typeof l&&l.from===r.name&&(l.loaded||l.loading?(l.useIn=l.useIn.filter((e=>e!==r.name)),l.useIn.length?o=!1:n.push([e,t,s,a])):n.push([e,t,s,a]))}))}))}))})),o&&(e.shareScopeMap={},delete t[l]),n.forEach((([e,o,r,n])=>{var s,a,i;null==(i=t[e])||null==(a=i[o])||null==(s=a[r])||delete s[n]})),P.__FEDERATION__.__INSTANCES__.splice(c,1)}const{hostGlobalSnapshot:u}=ut(e,o);if(u){const t=u&&"remotesInfo"in u&&u.remotesInfo&&C(u.remotesInfo,e.name).key;t&&(delete u.remotesInfo[t],Boolean(x.__FEDERATION__.__MANIFEST_LOADING__[t])&&delete x.__FEDERATION__.__MANIFEST_LOADING__[t])}o.moduleCache.delete(e.name)}}catch(e){S.log("removeRemote fail: ",e)}}constructor(e){this.hooks=new ot({beforeRegisterRemote:new et("beforeRegisterRemote"),registerRemote:new et("registerRemote"),beforeRequest:new tt("beforeRequest"),onLoad:new Ze("onLoad"),handlePreloadModule:new Je("handlePreloadModule"),errorLoadRemote:new Ze("errorLoadRemote"),beforePreloadRemote:new Ze("beforePreloadRemote"),generatePreloadAssets:new Ze("generatePreloadAssets"),afterPreloadRemote:new Ze,loadEntry:new Ze}),this.host=e,this.idToRemoteMap={}}}class dt{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=K,t){return this.sharedHandler.initializeSharing(e,t)}initRawContainer(e,t,o){const r=Xe({name:e,entry:t}),n=new Ye({host:this,remoteInfo:r});return n.remoteEntryExports=o,this.moduleCache.set(e,n),n}async loadRemote(e,t){return this.remoteHandler.loadRemote(e,t)}async preloadRemote(e){return this.remoteHandler.preloadRemote(e)}initShareScopeMap(e,t,o={}){this.sharedHandler.initShareScopeMap(e,t,o)}formatOptions(e,t){const{shared:o}=De(e,t),{userOptions:r,options:s}=this.hooks.lifecycle.beforeInit.emit({origin:this,userOptions:t,options:e,shareInfo:o}),a=this.remoteHandler.formatAndRegisterRemote(s,r),{shared:i}=this.sharedHandler.registerShared(s,r),l=[...s.plugins];r.plugins&&r.plugins.forEach((e=>{l.includes(e)||l.push(e)}));const c=n({},e,t,{plugins:l,remotes:a,shared:i});return this.hooks.lifecycle.init.emit({origin:this,options:c}),c}registerPlugins(e){const t=function(e,t){const o=L.__FEDERATION__.__GLOBAL_PLUGIN__;return o.length>0&&o.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 ot({beforeInit:new et("beforeInit"),init:new Je,beforeInitContainer:new tt("beforeInitContainer"),initContainer:new tt("initContainer")}),this.version="0.13.1",this.moduleCache=new Map,this.loaderHook=new ot({getModuleInfo:new Je,createScript:new Je,createLink:new Je,fetch:new Ze,loadEntryError:new Ze,getModuleFactory:new Ze}),this.bridgeHook=new ot({beforeBridgeRender:new Je,afterBridgeRender:new Je,beforeBridgeDestroy:new Je,afterBridgeDestroy:new Je});const t={id:"flowComponents:2.0.546",name:e.name,plugins:[{name:"snapshot-plugin",async afterResolve(e){const{remote:t,pkgNameOrAlias:o,expose:r,origin:s,remoteInfo:a}=e;if(!R(t)||!O(t)){const{remoteSnapshot:i,globalSnapshot:l}=await s.snapshotHandler.loadRemoteSnapshotInfo(t);st(a,i);const c={remote:t,preloadConfig:{nameOrAlias:o,exposes:[r],resourceCategory:"sync",share:!1,depsRemote:!1}},u=await s.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin:s,preloadOptions:c,remoteInfo:a,remote:t,remoteSnapshot:i,globalSnapshot:l});return u&&nt(a,s,u,!1),n({},e,{remoteSnapshot:i})}return e}},{name:"generate-preload-assets-plugin",async generatePreloadAssets(e){const{origin:t,preloadOptions:o,remoteInfo:r,remote:n,globalSnapshot:s,remoteSnapshot:i}=e;return(0,a.OL)()?R(n)&&O(n)?{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[{name:n.name,url:n.entry,moduleInfo:{name:r.name,entry:n.entry,type:r.type||"global",entryGlobalName:"",shareScope:""}}]}:(st(r,i),ct(t,o,r,s,i)):{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[]}}}],remotes:[],shared:{},inBrowser:(0,a.OL)()};this.name=e.name,this.options=t,this.snapshotHandler=new pt(this),this.sharedHandler=new mt(this),this.remoteHandler=new ht(this),this.shareScopeMap=this.sharedHandler.shareScopeMap,this.registerPlugins([...t.plugins,...e.plugins||[]]),this.options=this.formatOptions(t,e)}}let ft=null;function _t(e){const t=function(e,t){return P.__FEDERATION__.__INSTANCES__.find((o=>"flowComponents:2.0.546"===o.options.id||o.options.name===e&&!o.options.version&&!t||!(o.options.name!==e||!t||o.options.version!==t)))}(e.name,e.version);if(t)return t.initOptions(e),ft||(ft=t),t;{const t=P.__FEDERATION__.__DEBUG_CONSTRUCTOR__||dt;return ft=new t(e),function(e){P.__FEDERATION__.__INSTANCES__.push(e)}(ft),ft}}function yt(...e){return v(ft,"Please call init first"),ft.loadRemote.apply(ft,e)}function gt(...e){return v(ft,"Please call init first"),ft.loadShare.apply(ft,e)}function Et(...e){return v(ft,"Please call init first"),ft.loadShareSync.apply(ft,e)}function bt(...e){return v(ft,"Please call init first"),ft.preloadRemote.apply(ft,e)}function St(...e){return v(ft,"Please call init first"),ft.registerRemotes.apply(ft,e)}function vt(...e){return v(ft,"Please call init first"),ft.registerPlugins.apply(ft,e)}function wt(){return ft}!function(e,t=(0,a.Bb)()){t&&(P.__FEDERATION__.__DEBUG_CONSTRUCTOR__=e,P.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__="0.13.1")}(dt);const Nt=["script"];function kt(e){e.S&&!e.federation.hasAttachShareScopeMap&&e.federation.instance&&e.federation.instance.shareScopeMap&&(e.S=e.federation.instance.shareScopeMap,e.federation.hasAttachShareScopeMap=!0)}function It(){return It=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},It.apply(this,arguments)}const Rt={runtime:r,instance:void 0,initOptions:void 0,bundlerRuntime:{remotes:function(e){const{chunkId:t,promises:o,chunkMapping:r,idToExternalAndNameMapping:n,webpackRequire:s,idToRemoteMap:i}=e;kt(s),s.o(r,t)&&r[t].forEach((e=>{let t=s.R;t||(t=[]);const r=n[e],l=i[e];if(t.indexOf(r)>=0)return;if(t.push(r),r.p)return o.push(r.p);const c=t=>{t||(t=new Error("Container missing")),"string"==typeof t.message&&(t.message+=`\nwhile loading "${r[1]}" from ${r[2]}`),s.m[e]=()=>{throw t},r.p=0},u=(e,t,n,s,a,i)=>{try{const l=e(t,n);if(!l||!l.then)return a(l,s,i);{const e=l.then((e=>a(e,s)),c);if(!i)return e;o.push(r.p=e)}}catch(e){c(e)}};var p=(e,o,n)=>u(o.get,r[1],t,0,m,n),m=t=>{r.p=1,s.m[e]=e=>{e.exports=t()}};1===l.length&&Nt.includes(l[0].externalType)&&l[0].name?u((()=>{try{const e=(0,a.e4)(l[0].name,a.yq)+r[1].slice(1),t=s.federation.instance,o=()=>s.federation.instance.loadRemote(e,{loadFactory:!1,from:"build"});return"version-first"===t.options.shareStrategy?Promise.all(t.sharedHandler.initializeSharing(r[0])).then((()=>o())):o()}catch(e){c(e)}}),r[2],0,0,m,1):u(s,r[2],0,0,((e,t,o)=>e?u(s.I,r[0],0,e,p,o):c()),1)}))},consumes:function(e){const{chunkId:t,promises:o,chunkMapping:r,installedModules:n,moduleToHandlerMapping:s,webpackRequire:a}=e;kt(a),a.o(r,t)&&r[t].forEach((e=>{if(a.o(n,e))return o.push(n[e]);const t=t=>{n[e]=0,a.m[e]=o=>{delete a.c[e],o.exports=t()}},r=t=>{delete n[e],a.m[e]=o=>{throw delete a.c[e],t}};try{const i=a.federation.instance;if(!i)throw new Error("Federation instance not found!");const{shareKey:l,getter:c,shareInfo:u}=s[e],p=i.loadShare(l,{customShareInfo:u}).then((e=>!1===e?c():e));p.then?o.push(n[e]=p.then(t).catch(r)):t(p)}catch(e){r(e)}}))},I:function({shareScopeName:e,webpackRequire:t,initPromises:o,initTokens:r,initScope:n}){const s=Array.isArray(e)?e:[e];var a=[];return s.forEach((s=>{a.push(function(s){n||(n=[]);const a=t.federation.instance;var i=r[s];if(i||(i=r[s]={from:a.name}),n.indexOf(i)>=0)return;n.push(i);const l=o[s];if(l)return l;var c=o=>{var r=e=>{return t="Initialization of sharing external failed: "+e,"undefined"!=typeof console&&console.warn&&console.warn(t);var t};try{var a=t(o);if(!a)return;var i=o=>o&&o.init&&o.init(t.S[s],n,{shareScopeMap:t.S||{},shareScopeKeys:e});if(a.then)return u.push(a.then(i,r));var l=i(a);if(l&&"boolean"!=typeof l&&l.then)return u.push(l.catch(r))}catch(e){r(e)}};const u=a.initializeSharing(s,{strategy:a.options.shareStrategy,initScope:n,from:"build"});kt(t);const p=t.federation.bundlerRuntimeOptions.remotes;return p&&Object.keys(p.idToRemoteMap).forEach((e=>{const t=p.idToRemoteMap[e],o=p.idToExternalAndNameMapping[e][2];if(t.length>1)c(o);else if(1===t.length){const e=t[0];Nt.includes(e.externalType)||c(o)}})),u.length?o[s]=Promise.all(u).then((()=>o[s]=!0)):o[s]=!0}(s))})),Promise.all(a).then((()=>!0))},S:{},installInitialConsumes:function(e){const{moduleToHandlerMapping:t,webpackRequire:o,installedModules:r,initialConsumes:n}=e;n.forEach((e=>{o.m[e]=n=>{r[e]=0,delete o.c[e];const s=function(e){const{moduleId:t,moduleToHandlerMapping:o,webpackRequire:r}=e,n=r.federation.instance;if(!n)throw new Error("Federation instance not found!");const{shareKey:s,shareInfo:a}=o[t];try{return n.loadShareSync(s,{customShareInfo:a})}catch(e){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: "),e}}({moduleId:e,moduleToHandlerMapping:t,webpackRequire:o});if("function"!=typeof s)throw new Error(`Shared module is not available for eager consumption: ${e}`);n.exports=s()}}))},initContainerEntry:function(e){const{webpackRequire:t,shareScope:o,initScope:r,shareScopeKey:n,remoteEntryInitOptions:s}=e;if(!t.S)return;if(!t.federation||!t.federation.instance||!t.federation.initOptions)return;const a=t.federation.instance;a.initOptions(It({name:t.federation.initOptions.name,remotes:[]},s));const i=null==s?void 0:s.shareScopeKeys,l=null==s?void 0:s.shareScopeMap;if(n&&"string"!=typeof n)n.forEach((e=>{if(!i||!l)return void a.initShareScopeMap(e,o,{hostShareScopeMap:(null==s?void 0:s.shareScopeMap)||{}});l[e]||(l[e]={});const t=l[e];a.initShareScopeMap(e,t,{hostShareScopeMap:(null==s?void 0:s.shareScopeMap)||{}})}));else{const e=n||"default";Array.isArray(i)?i.forEach((e=>{l[e]||(l[e]={});const t=l[e];a.initShareScopeMap(e,t,{hostShareScopeMap:(null==s?void 0:s.shareScopeMap)||{}})})):a.initShareScopeMap(e,o,{hostShareScopeMap:(null==s?void 0:s.shareScopeMap)||{}})}return t.federation.attachShareScopeMap&&t.federation.attachShareScopeMap(t),"function"==typeof t.federation.prefetch&&t.federation.prefetch(),Array.isArray(n)?Boolean(t.federation.initOptions.shared)?t.I(n,r):Promise.all(n.map((e=>t.I(e,r)))).then((()=>!0)):t.I(n||"default",r)}},attachShareScopeMap:kt,bundlerRuntimeOptions:{}};if(!o.federation.runtime){var Ot=o.federation;for(var $t in o.federation={},Rt)o.federation[$t]=Rt[$t];for(var $t in Ot)o.federation[$t]=Ot[$t]}o.federation.instance||(o.federation.instance=o.federation.runtime.init(o.federation.initOptions),o.federation.attachShareScopeMap&&o.federation.attachShareScopeMap(o),o.federation.installInitialConsumes&&o.federation.installInitialConsumes(),!o.federation.isMFRemote&&o.federation.prefetch&&o.federation.prefetch())},3723:(e,t,o)=>{Promise.all([o.e(84),o.e(485),o.e(575)]).then(o.bind(o,3575))},9615:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Al:()=>getResourceUrl,Bb:()=>isDebugMode,Jn:()=>generateSnapshotFromManifest,ML:()=>safeToString,OL:()=>isBrowserEnv,R8:()=>warn,Tr:()=>isManifestProvider,d:()=>createLink,e4:()=>decodeName,h:()=>createLogger,k0:()=>loadScript,lG:()=>composeKeyWithSeparator,oe:()=>loadScriptNode,so:()=>createScript,tf:()=>isReactNativeEnv,yq:()=>ENCODE_NAME_PREFIX});var _polyfills_esm_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(3419);const FederationModuleManifest="federation-manifest.json",MANIFEST_EXT=".json",BROWSER_LOG_KEY="FEDERATION_DEBUG",BROWSER_LOG_VALUE="1",NameTransformSymbol={AT:"@",HYPHEN:"-",SLASH:"/"},NameTransformMap={[NameTransformSymbol.AT]:"scope_",[NameTransformSymbol.HYPHEN]:"_",[NameTransformSymbol.SLASH]:"__"},EncodedNameTransformMap={[NameTransformMap[NameTransformSymbol.AT]]:NameTransformSymbol.AT,[NameTransformMap[NameTransformSymbol.HYPHEN]]:NameTransformSymbol.HYPHEN,[NameTransformMap[NameTransformSymbol.SLASH]]:NameTransformSymbol.SLASH},SEPARATOR=":",ManifestFileName="mf-manifest.json",StatsFileName="mf-stats.json",MFModuleType={NPM:"npm",APP:"app"},MODULE_DEVTOOL_IDENTIFIER="__MF_DEVTOOLS_MODULE_INFO__",ENCODE_NAME_PREFIX="ENCODE_NAME_PREFIX",TEMP_DIR=".federation",MFPrefetchCommon={identifier:"MFDataPrefetch",globalKey:"__PREFETCH__",library:"mf-data-prefetch",exportsKey:"__PREFETCH_EXPORTS__",fileName:"bootstrap.js"};var ContainerPlugin=Object.freeze({__proto__:null}),ContainerReferencePlugin=Object.freeze({__proto__:null}),ModuleFederationPlugin=Object.freeze({__proto__:null}),SharePlugin=Object.freeze({__proto__:null});function isBrowserEnv(){return"undefined"!=typeof window&&void 0!==window.document}function isReactNativeEnv(){var e;return"undefined"!=typeof navigator&&"ReactNative"===(null==(e=navigator)?void 0:e.product)}function isBrowserDebug(){try{if(isBrowserEnv()&&window.localStorage)return localStorage.getItem(BROWSER_LOG_KEY)===BROWSER_LOG_VALUE}catch(e){return!1}return!1}function isDebugMode(){return"undefined"!=typeof process&&process.env&&process.env.FEDERATION_DEBUG?Boolean(process.env.FEDERATION_DEBUG):!("undefined"==typeof FEDERATION_DEBUG||!Boolean(FEDERATION_DEBUG))||isBrowserDebug()}const getProcessEnv=function(){return"undefined"!=typeof process&&process.env?process.env:{}},LOG_CATEGORY="[ Federation Runtime ]",parseEntry=(e,t,o=SEPARATOR)=>{const r=e.split(o),n="development"===getProcessEnv().NODE_ENV&&t,s=e=>e.startsWith("http")||e.includes(MANIFEST_EXT);if(r.length>=2){let[t,...a]=r;e.startsWith(o)&&(t=r.slice(0,2).join(o),a=[n||r.slice(2).join(o)]);let i=n||a.join(o);return s(i)?{name:t,entry:i}:{name:t,version:i||"*"}}if(1===r.length){const[e]=r;return n&&s(n)?{name:e,entry:n}:{name:e,version:n||"*"}}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="",o=!1){try{const r=o?".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])}${r}`}catch(e){throw e}},decodeName=function(e,t,o){try{let r=e;if(t){if(!r.startsWith(t))return r;r=r.replace(new RegExp(t,"g"),"")}return r=r.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]]),o&&(r=r.replace(".js","")),r}catch(e){throw e}},generateExposeFilename=(e,t)=>{if(!e)return"";let o=e;return"."===o&&(o="default_export"),o.startsWith("./")&&(o=o.replace("./","")),encodeName(o,"__federation_expose_",t)},generateShareFilename=(e,t)=>e?encodeName(e,"__federation_shared_",t):"",getResourceUrl=(e,t)=>{if("getPublicPath"in e){let o;return o=e.getPublicPath.startsWith("function")?new Function("return "+e.getPublicPath)()():new Function(e.getPublicPath)(),`${o}${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(e){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 o=(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 o?o.endsWith("/")?`${o}${t}`:`${o}/${t}`:t};function inferAutoPublicPath(e){return e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")}function generateSnapshotFromManifest(e,t={}){var o,r;const{remotes:n={},overrides:s={},version:a}=t;let i;const l=()=>"publicPath"in e.metaData?"auto"===e.metaData.publicPath&&a?inferAutoPublicPath(a):e.metaData.publicPath:e.metaData.getPublicPath,c=Object.keys(s);let u={};var p;Object.keys(n).length||(u=(null==(p=e.remotes)?void 0:p.reduce(((e,t)=>{let o;const r=t.federationContainerName;return o=c.includes(r)?s[r]:"version"in t?t.version:t.entry,e[r]={matchedVersion:o},e}),{}))||{}),Object.keys(n).forEach((e=>u[e]={matchedVersion:c.includes(e)?s[e]:n[e]}));const{remoteEntry:{path:m,name:h,type:d},types:f,buildInfo:{buildVersion:_},globalName:y,ssrRemoteEntry:g}=e.metaData,{exposes:E}=e;let b={version:a||"",buildVersion:_,globalName:y,remoteEntry:simpleJoinRemoteEntry(m,h),remoteEntryType:d,remoteTypes:simpleJoinRemoteEntry(f.path,f.name),remoteTypesZip:f.zip||"",remoteTypesAPI:f.api||"",remotesInfo:u,shared:null==e?void 0:e.shared.map((e=>({assets:e.assets,sharedName:e.name,version:e.version}))),modules:null==E?void 0:E.map((e=>({moduleName:e.name,modulePath:e.path,assets:e.assets})))};if(null==(o=e.metaData)?void 0:o.prefetchInterface){const t=e.metaData.prefetchInterface;b=(0,_polyfills_esm_js__WEBPACK_IMPORTED_MODULE_0__._)({},b,{prefetchInterface:t})}if(null==(r=e.metaData)?void 0:r.prefetchEntry){const{path:t,name:o,type:r}=e.metaData.prefetchEntry;b=(0,_polyfills_esm_js__WEBPACK_IMPORTED_MODULE_0__._)({},b,{prefetchEntry:simpleJoinRemoteEntry(t,o),prefetchEntryType:r})}if(i="publicPath"in e.metaData?(0,_polyfills_esm_js__WEBPACK_IMPORTED_MODULE_0__._)({},b,{publicPath:l(),ssrPublicPath:e.metaData.ssrPublicPath}):(0,_polyfills_esm_js__WEBPACK_IMPORTED_MODULE_0__._)({},b,{getPublicPath:l()}),g){const e=simpleJoinRemoteEntry(g.path,g.name);i.ssrRemoteEntry=e,i.ssrRemoteEntryType=g.type||"commonjs-module"}return i}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(e){return void(!t&&warn(e))}}function isStaticResourcesEqual(e,t){const o=/^(https?:)?\/\//i;return e.replace(o,"").replace(/\/$/,"")===t.replace(o,"").replace(/\/$/,"")}function createScript(e){let t,o=null,r=!0,n=2e4;const s=document.getElementsByTagName("script");for(let t=0;t<s.length;t++){const n=s[t],a=n.getAttribute("src");if(a&&isStaticResourcesEqual(a,e.url)){o=n,r=!1;break}}if(!o){const t=e.attrs;let r;o=document.createElement("script"),o.type="module"===(null==t?void 0:t.type)?"module":"text/javascript",e.createScriptHook&&(r=e.createScriptHook(e.url,e.attrs),r instanceof HTMLScriptElement?o=r:"object"==typeof r&&("script"in r&&r.script&&(o=r.script),"timeout"in r&&r.timeout&&(n=r.timeout))),o.src||(o.src=e.url),t&&!r&&Object.keys(t).forEach((e=>{o&&("async"===e||"defer"===e?o[e]=t[e]:o.getAttribute(e)||o.setAttribute(e,t[e]))}))}const a=async(r,n)=>{clearTimeout(t);const s=()=>{"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(o&&(o.onerror=null,o.onload=null,safeWrapper((()=>{const{needDeleteScript:t=!0}=e;t&&(null==o?void 0:o.parentNode)&&o.parentNode.removeChild(o)})),r&&"function"==typeof r)){const e=r(n);if(e instanceof Promise){const t=await e;return s(),t}return s(),e}s()};return o.onerror=a.bind(null,o.onerror),o.onload=a.bind(null,o.onload),t=setTimeout((()=>{a(null,new Error(`Remote script "${e.url}" time-outed.`))}),n),{script:o,needAttach:r}}function createLink(e){let t=null,o=!0;const r=document.getElementsByTagName("link");for(let n=0;n<r.length;n++){const s=r[n],a=s.getAttribute("href"),i=s.getAttribute("rel");if(a&&isStaticResourcesEqual(a,e.url)&&i===e.attrs.rel){t=s,o=!1;break}}if(!t){let o;t=document.createElement("link"),t.setAttribute("href",e.url);const r=e.attrs;e.createLinkHook&&(o=e.createLinkHook(e.url,r),o instanceof HTMLLinkElement&&(t=o)),r&&!o&&Object.keys(r).forEach((e=>{t&&!t.getAttribute(e)&&t.setAttribute(e,r[e])}))}const n=(o,r)=>{const n=()=>{"error"===(null==r?void 0:r.type)?(null==e?void 0:e.onErrorCallback)&&(null==e||e.onErrorCallback(r)):(null==e?void 0:e.cb)&&(null==e||e.cb())};if(t&&(t.onerror=null,t.onload=null,safeWrapper((()=>{const{needDeleteLink:o=!0}=e;o&&(null==t?void 0:t.parentNode)&&t.parentNode.removeChild(t)})),o)){const e=o(r);return n(),e}n()};return t.onerror=n.bind(null,t.onerror),t.onload=n.bind(null,t.onload),{link:t,needAttach:o}}function loadScript(e,t){const{attrs:o={},createScriptHook:r}=t;return new Promise(((t,n)=>{const{script:s,needAttach:a}=createScript({url:e,cb:t,onErrorCallback:n,attrs:(0,_polyfills_esm_js__WEBPACK_IMPORTED_MODULE_0__._)({fetchpriority:"high"},o),createScriptHook:r,needDeleteScript:!0});a&&document.head.appendChild(s)}))}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,o)=>{const r=await((e,t)=>o.lifecycle.fetch.emit(e,t))(e,t||{});return r&&r instanceof Response?r:("undefined"==typeof fetch?await loadNodeFetch():fetch)(e,t||{})};function createScriptNode(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,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)}))}function loadScriptNode(e,t){return new Promise(((o,r)=>{createScriptNode(e,((e,n)=>{if(e)r(e);else{var s,a;const e=(null==t||null==(s=t.attrs)?void 0:s.globalName)||`__FEDERATION_${null==t||null==(a=t.attrs)?void 0:a.name}:custom__`,r=globalThis[e]=n;o(r)}}),t.attrs,t.loaderHook)}))}async function loadModule(e,t){const{fetch:o,vm:r}=t,n=await o(e),s=await n.text(),a=new r.SourceTextModule(s,{importModuleDynamically:async(o,r)=>loadModule(new URL(o,e).href,t)});return await a.link((async o=>{const r=new URL(o,e).href;return await loadModule(r,t)})),a}function normalizeOptions(e,t,o){return function(r){if(!1===r)return!1;if(void 0===r)return!!e&&t;if(!0===r)return t;if(r&&"object"==typeof r)return(0,_polyfills_esm_js__WEBPACK_IMPORTED_MODULE_0__._)({},t,r);throw new Error(`Unexpected type for \`${o}\`, expect boolean/undefined/object, got: ${typeof r}`)}}},3419:(e,t,o)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},r.apply(this,arguments)}o.d(t,{_:()=>r})}},__webpack_module_cache__={},inProgress,dataWebpackPrefix,installedModules,moduleToHandlerMapping,chunkMapping,oldStartup,hasRun;function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var o=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}},r={id:e,module:o,factory:__webpack_modules__[e],require:__webpack_require__};return __webpack_require__.i.forEach((function(e){e(r)})),o=r.module,r.factory.call(o.exports,o,o.exports,r.require),o.loaded=!0,o.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.c=__webpack_module_cache__,__webpack_require__.i=[],__webpack_require__.x=e=>{},__webpack_require__.federation||(__webpack_require__.federation={initOptions:{name:"flowComponents",remotes:[],shareStrategy:"version-first"},chunkMatcher:function(e){return!0},rootOutputDir:"",initialConsumes:void 0,bundlerRuntimeOptions:{}}),__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var o in t)__webpack_require__.o(t,o)&&!__webpack_require__.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce(((t,o)=>(__webpack_require__.f[o](e,t),t)),[])),__webpack_require__.u=e=>e+".js",__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),inProgress={},dataWebpackPrefix="@descope/flow-components-2.0.546-1748716847972:",__webpack_require__.l=(e,t,o,r)=>{if(inProgress[e])inProgress[e].push(t);else{var n,s;if(void 0!==o)for(var a=document.getElementsByTagName("script"),i=0;i<a.length;i++){var l=a[i];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")==dataWebpackPrefix+o){n=l;break}}n||(s=!0,(n=document.createElement("script")).charset="utf-8",n.timeout=120,__webpack_require__.nc&&n.setAttribute("nonce",__webpack_require__.nc),n.setAttribute("data-webpack",dataWebpackPrefix+o),n.src=e),inProgress[e]=[t];var c=(t,o)=>{n.onerror=n.onload=null,clearTimeout(u);var r=inProgress[e];if(delete inProgress[e],n.parentNode&&n.parentNode.removeChild(n),r&&r.forEach((e=>e(o))),t)return t(o)},u=setTimeout(c.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=c.bind(null,n.onerror),n.onload=c.bind(null,n.onload),s&&document.head.appendChild(n)}},__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{__webpack_require__.S={};var e={},t={};__webpack_require__.I=(o,r)=>{r||(r=[]);var n=t[o];if(n||(n=t[o]={}),!(r.indexOf(n)>=0)){if(r.push(n),e[o])return e[o];__webpack_require__.o(__webpack_require__.S,o)||(__webpack_require__.S[o]={}),__webpack_require__.S[o];var s=[];return e[o]=s.length?Promise.all(s).then((()=>e[o]=1)):1}}})(),(()=>{__webpack_require__.federation.initOptions.shared={},__webpack_require__.S={};var e={},t={};__webpack_require__.I=(o,r)=>__webpack_require__.federation.bundlerRuntime.I({shareScopeName:o,webpackRequire:__webpack_require__,initPromises:e,initTokens:t,initScope:r})})(),(()=>{var e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var t=__webpack_require__.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");if(o.length)for(var r=o.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=o[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e})(),installedModules={},moduleToHandlerMapping={7596:{getter:()=>()=>{throw new Error("Can not get 'react'")},shareInfo:{shareConfig:{fixedDependencies:!1,requiredVersion:">= 18",strictVersion:!1,singleton:!0,eager:!1},scope:["default"]},shareKey:"react"}},chunkMapping={485:[7596]},__webpack_require__.f.consumes=(e,t)=>{__webpack_require__.federation.bundlerRuntime.consumes({chunkMapping,installedModules,chunkId:e,moduleToHandlerMapping,promises:t,webpackRequire:__webpack_require__})},oldStartup=__webpack_require__.x,hasRun=!1,__webpack_require__.x=()=>(hasRun||(hasRun=!0,__webpack_require__(6927)),oldStartup()),(()=>{var e={792:0};__webpack_require__.f.j=(t,o)=>{var r=__webpack_require__.o(e,t)?e[t]:void 0;if(0!==r)if(r)o.push(r[2]);else{var n=new Promise(((o,n)=>r=e[t]=[o,n]));o.push(r[2]=n);var s=__webpack_require__.p+__webpack_require__.u(t),a=new Error;__webpack_require__.l(s,(o=>{if(__webpack_require__.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var n=o&&("load"===o.type?"missing":o.type),s=o&&o.target&&o.target.src;a.message="Loading chunk "+t+" failed.\n("+n+": "+s+")",a.name="ChunkLoadError",a.type=n,a.request=s,r[1](a)}}),"chunk-"+t,t)}};var t=(t,o)=>{var r,n,[s,a,i]=o,l=0;if(s.some((t=>0!==e[t]))){for(r in a)__webpack_require__.o(a,r)&&(__webpack_require__.m[r]=a[r]);i&&i(__webpack_require__)}for(t&&t(o);l<s.length;l++)n=s[l],__webpack_require__.o(e,n)&&e[n]&&e[n][0](),e[n]=0},o=self.webpackChunk_descope_flow_components_2_0_546_1748716847972=self.webpackChunk_descope_flow_components_2_0_546_1748716847972||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})(),__webpack_require__.x();var __webpack_exports__=__webpack_require__(3723)})();
1
+ (()=>{var __webpack_modules__={6927:(e,t,o)=>{"use strict";var r={};function n(){return n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},n.apply(this,arguments)}function s(e,t){if(null==e)return{};var o,r,n={},s=Object.keys(e);for(r=0;r<s.length;r++)o=s[r],t.indexOf(o)>=0||(n[o]=e[o]);return n}o.r(r),o.d(r,{FederationHost:()=>dt,Module:()=>Ye,getInstance:()=>wt,getRemoteEntry:()=>ze,getRemoteInfo:()=>Xe,init:()=>_t,loadRemote:()=>yt,loadScript:()=>a.k0,loadScriptNode:()=>a.oe,loadShare:()=>gt,loadShareSync:()=>Et,preloadRemote:()=>bt,registerGlobalPlugins:()=>W,registerPlugins:()=>vt,registerRemotes:()=>St});var a=o(9615);const i="RUNTIME-001",l="RUNTIME-002",c="RUNTIME-003",u="RUNTIME-004",p="RUNTIME-005",m="RUNTIME-006",h="RUNTIME-007",d="RUNTIME-008",f="TYPE-001",_="BUILD-001",y=(e,t,o,r)=>{const n=[`${[t[e]]} #${e}`];return o&&n.push(`args: ${JSON.stringify(o)}`),n.push((e=>`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}/${e}`)(e)),r&&n.push(`Original Error Message:\n ${r}`),n.join("\n")};function g(){return g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},g.apply(this,arguments)}const E={[i]:"Failed to get remoteEntry exports.",[l]:'The remote entry interface does not contain "init"',[c]:"Failed to get manifest.",[u]:"Failed to locate remote.",[p]:"Invalid loadShareSync function call from bundler runtime",[m]:"Invalid loadShareSync function call from runtime",[h]:"Failed to get remote snapshot.",[d]:"Failed to load script resources."},b=(g({},E,{[f]:"Failed to generate type declaration. Execute the below cmd to reproduce and fix the error."},{[_]:"Failed to find expose module."}),"[ Federation Runtime ]"),S=(0,a.h)(b);function v(e,t){e||w(t)}function w(e){if(e instanceof Error)throw e.message=`${b}: ${e.message}`,e;throw new Error(`${b}: ${e}`)}function N(e){e instanceof Error?(e.message=`${b}: ${e.message}`,S.warn(e)):S.warn(e)}function k(e,t){return-1===e.findIndex((e=>e===t))&&e.push(t),e}function I(e){return"version"in e&&e.version?`${e.name}:${e.version}`:"entry"in e&&e.entry?`${e.name}:${e.entry}`:`${e.name}`}function R(e){return void 0!==e.entry}function O(e){return!e.entry.includes(".json")&&e.entry.includes(".js")}function $(e){return e&&"object"==typeof e}const T=Object.prototype.toString;function A(e){return Array.isArray(e)?e:[e]}function M(e){const t={url:"",type:"global",globalName:""};return(0,a.OL)()||(0,a.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 P="object"==typeof globalThis?globalThis:window,L=(()=>{try{return document.defaultView}catch(e){return P}})(),x=L;function D(e,t,o){Object.defineProperty(e,t,{value:o,configurable:!1,writable:!0})}function H(e,t){return Object.hasOwnProperty.call(e,t)}H(P,"__GLOBAL_LOADING_REMOTE_ENTRY__")||D(P,"__GLOBAL_LOADING_REMOTE_ENTRY__",{});const j=P.__GLOBAL_LOADING_REMOTE_ENTRY__;function F(e){var t,o,r,n,s,a;H(e,"__VMOK__")&&!H(e,"__FEDERATION__")&&D(e,"__FEDERATION__",e.__VMOK__),H(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!=(o=e.__FEDERATION__).__INSTANCES__||(o.__INSTANCES__=[]),null!=(r=e.__FEDERATION__).moduleInfo||(r.moduleInfo={}),null!=(n=e.__FEDERATION__).__SHARE__||(n.__SHARE__={}),null!=(s=e.__FEDERATION__).__MANIFEST_LOADING__||(s.__MANIFEST_LOADING__={}),null!=(a=e.__FEDERATION__).__PRELOADED_MAP__||(a.__PRELOADED_MAP__=new Map)}function C(e,t){if("string"==typeof t){if(e[t])return{value:e[t],key:t};{const o=Object.keys(e);for(const r of o){const[o,n]=r.split(":"),s=`${o}:${t}`,a=e[s];if(a)return{value:a,key:s}}return{value:void 0,key:t}}}throw new Error("key must be string")}F(P),F(L);const q=()=>L.__FEDERATION__.moduleInfo,G=e=>((e,t)=>{const o=C(t,I(e)).value;if(o&&!o.version&&"version"in e&&e.version&&(o.version=e.version),o)return o;if("version"in e&&e.version){const{version:t}=e,o=I(s(e,["version"])),r=C(L.__FEDERATION__.moduleInfo,o).value;if((null==r?void 0:r.version)===t)return r}})(e,L.__FEDERATION__.moduleInfo),U=(e,t)=>{const o=I(e);return L.__FEDERATION__.moduleInfo[o]=t,L.__FEDERATION__.moduleInfo},B=(e,t)=>{const o=t||`__FEDERATION_${e}:custom__`;return{remoteEntryKey:o,entryExports:P[o]}},W=e=>{const{__GLOBAL_PLUGIN__:t}=L.__FEDERATION__;e.forEach((e=>{-1===t.findIndex((t=>t.name===e.name))?t.push(e):N(`The plugin ${e.name} has been registered.`)}))},V=e=>P.__FEDERATION__.__PRELOADED_MAP__.set(e,!0),K="default",z="global",X="[0-9A-Za-z-]+",Y=`(?:\\+(${X}(?:\\.${X})*))`,J="0|[1-9]\\d*",Z="[0-9]+",Q="\\d*[a-zA-Z-][a-zA-Z0-9-]*",ee=`(?:${Z}|${Q})`,te=`(?:${J}|${Q})`,oe=`(?:-(${te}(?:\\.${te})*))`,re=`${J}|x|X|\\*`,ne=`[v=\\s]*(${re})(?:\\.(${re})(?:\\.(${re})(?:${oe})?${Y}?)?)?`,se=`^\\s*(${ne})\\s+-\\s+(${ne})\\s*$`,ae="((?:<|>)?=?)",ie=`(\\s*)${ae}\\s*([v=\\s]*(${Z})\\.(${Z})\\.(${Z})(?:-?(${ee}(?:\\.${ee})*))?${Y}?|${ne})`,le="(?:~>?)",ce=`(\\s*)${le}\\s+`,ue="(?:\\^)",pe=`(\\s*)${ue}\\s+`,me="(<|>)?=?\\s*\\*",he=`^${ue}${ne}$`,de=`^${le}${ne}$`,fe=`^${ae}\\s*${ne}$`,_e=`^${ae}\\s*(v?(${J})\\.(${J})\\.(${J})${oe}?${Y}?)$|^$`,ye="^\\s*>=\\s*0.0.0\\s*$";function ge(e){return new RegExp(e)}function Ee(e){return!e||"x"===e.toLowerCase()||"*"===e}function be(...e){return t=>e.reduce(((e,t)=>t(e)),t)}function Se(e){return e.match(ge(_e))}function ve(e,t,o,r){const n=`${e}.${t}.${o}`;return r?`${n}-${r}`:n}function we(e){return e.replace(ge(se),((e,t,o,r,n,s,a,i,l,c,u,p)=>`${t=Ee(o)?"":Ee(r)?`>=${o}.0.0`:Ee(n)?`>=${o}.${r}.0`:`>=${t}`} ${i=Ee(l)?"":Ee(c)?`<${Number(l)+1}.0.0-0`:Ee(u)?`<${l}.${Number(c)+1}.0-0`:p?`<=${l}.${c}.${u}-${p}`:`<=${i}`}`.trim()))}function Ne(e){return e.replace(ge(ie),"$1$2$3")}function ke(e){return e.replace(ge(ce),"$1~")}function Ie(e){return e.replace(ge(pe),"$1^")}function Re(e){return e.trim().split(/\s+/).map((e=>e.replace(ge(he),((e,t,o,r,n)=>Ee(t)?"":Ee(o)?`>=${t}.0.0 <${Number(t)+1}.0.0-0`:Ee(r)?"0"===t?`>=${t}.${o}.0 <${t}.${Number(o)+1}.0-0`:`>=${t}.${o}.0 <${Number(t)+1}.0.0-0`:n?"0"===t?"0"===o?`>=${t}.${o}.${r}-${n} <${t}.${o}.${Number(r)+1}-0`:`>=${t}.${o}.${r}-${n} <${t}.${Number(o)+1}.0-0`:`>=${t}.${o}.${r}-${n} <${Number(t)+1}.0.0-0`:"0"===t?"0"===o?`>=${t}.${o}.${r} <${t}.${o}.${Number(r)+1}-0`:`>=${t}.${o}.${r} <${t}.${Number(o)+1}.0-0`:`>=${t}.${o}.${r} <${Number(t)+1}.0.0-0`)))).join(" ")}function Oe(e){return e.trim().split(/\s+/).map((e=>e.replace(ge(de),((e,t,o,r,n)=>Ee(t)?"":Ee(o)?`>=${t}.0.0 <${Number(t)+1}.0.0-0`:Ee(r)?`>=${t}.${o}.0 <${t}.${Number(o)+1}.0-0`:n?`>=${t}.${o}.${r}-${n} <${t}.${Number(o)+1}.0-0`:`>=${t}.${o}.${r} <${t}.${Number(o)+1}.0-0`)))).join(" ")}function $e(e){return e.split(/\s+/).map((e=>e.trim().replace(ge(fe),((e,t,o,r,n,s)=>{const a=Ee(o),i=a||Ee(r),l=i||Ee(n);return"="===t&&l&&(t=""),s="",a?">"===t||"<"===t?"<0.0.0-0":"*":t&&l?(i&&(r=0),n=0,">"===t?(t=">=",i?(o=Number(o)+1,r=0,n=0):(r=Number(r)+1,n=0)):"<="===t&&(t="<",i?o=Number(o)+1:r=Number(r)+1),"<"===t&&(s="-0"),`${t+o}.${r}.${n}${s}`):i?`>=${o}.0.0${s} <${Number(o)+1}.0.0-0`:l?`>=${o}.${r}.0${s} <${o}.${Number(r)+1}.0-0`:e})))).join(" ")}function Te(e){return e.trim().replace(ge(me),"")}function Ae(e,t){return(e=Number(e)||e)>(t=Number(t)||t)?1:e===t?0:-1}function Me(e,t){return Ae(e.major,t.major)||Ae(e.minor,t.minor)||Ae(e.patch,t.patch)||function(e,t){const{preRelease:o}=e,{preRelease:r}=t;if(void 0===o&&Boolean(r))return 1;if(Boolean(o)&&void 0===r)return-1;if(void 0===o&&void 0===r)return 0;for(let e=0,t=o.length;e<=t;e++){const t=o[e],n=r[e];if(t!==n)return void 0===t&&void 0===n?0:t?n?Ae(t,n):-1:1}return 0}(e,t)}function Pe(e,t){return e.version===t.version}function Le(e,t){switch(e.operator){case"":case"=":return Pe(e,t);case">":return Me(e,t)<0;case">=":return Pe(e,t)||Me(e,t)<0;case"<":return Me(e,t)>0;case"<=":return Pe(e,t)||Me(e,t)>0;case void 0:return!0;default:return!1}}function xe(e,t){if(!e)return!1;const o=function(e){return be(we,Ne,ke,Ie)(e.trim()).split(/\s+/).join(" ")}(t),r=o.split(" ").map((e=>function(e){return be(Re,Oe,$e,Te)(e)}(e))).join(" "),n=r.split(/\s+/).map((e=>e.trim().replace(ge(ye),""))),s=Se(e);if(!s)return!1;const[,a,,i,l,c,u]=s,p={operator:a,version:ve(i,l,c,u),major:i,minor:l,patch:c,preRelease:null==u?void 0:u.split(".")};for(const e of n){const t=Se(e);if(!t)return!1;const[,o,,r,n,s,a]=t;if(!Le({operator:o,version:ve(r,n,s,a),major:r,minor:n,patch:s,preRelease:null==a?void 0:a.split(".")},p))return!1}return!0}function De(e,t){const o=t.shared||{},r=t.name,s=Object.keys(o).reduce(((e,s)=>{const a=A(o[s]);return e[s]=e[s]||[],a.forEach((o=>{e[s].push(function(e,t,o,r){let s;var a,i,l;return s="get"in e?e.get:"lib"in e?()=>Promise.resolve(e.lib):()=>Promise.resolve((()=>{throw new Error(`Can not get shared '${o}'!`)})),n({deps:[],useIn:[],from:t,loading:null},e,{shareConfig:n({requiredVersion:`^${e.version}`,singleton:!1,eager:!1,strictVersion:!1},e.shareConfig),get:s,loaded:!(!(null==e?void 0:e.loaded)&&!("lib"in e))||void 0,version:null!=(a=e.version)?a:"0",scope:Array.isArray(e.scope)?e.scope:[null!=(i=e.scope)?i:"default"],strategy:(null!=(l=e.strategy)?l:r)||"version-first"})}(o,r,s,t.shareStrategy))})),e}),{}),a=n({},e.shared);return Object.keys(s).forEach((e=>{a[e]?s[e].forEach((t=>{a[e].find((e=>e.version===t.version))||a[e].push(t)})):a[e]=s[e]})),{shared:a,shareInfos:s}}function He(e,t){const o=e=>{if(!Number.isNaN(Number(e))){const t=e.split(".");let o=e;for(let e=0;e<3-t.length;e++)o+=".0";return o}return e};return!!xe(o(e),`<=${o(t)}`)}const je=(e,t)=>{const o=t||function(e,t){return He(e,t)};return Object.keys(e).reduce(((e,t)=>e?o(e,t)||"0"===e?t:e:t),0)},Fe=e=>Boolean(e.loaded)||"function"==typeof e.lib,Ce=e=>Boolean(e.loading);function qe(e,t,o){const r=e[t][o];return je(e[t][o],(function(e,t){return!Fe(r[e])&&He(e,t)}))}function Ge(e,t,o){const r=e[t][o];return je(e[t][o],(function(e,t){const o=e=>Fe(e)||Ce(e);return o(r[t])?!o(r[e])||Boolean(He(e,t)):!o(r[e])&&He(e,t)}))}function Ue(e){return"loaded-first"===e?Ge:qe}function Be(e,t,o,r){if(!e)return;const{shareConfig:n,scope:s=K,strategy:a}=o,i=Array.isArray(s)?s:[s];for(const s of i)if(n&&e[s]&&e[s][t]){const{requiredVersion:i}=n,l=Ue(a)(e,s,t),c=()=>{if(n.singleton){if("string"==typeof i&&!xe(l,i)){const r=`Version ${l} from ${l&&e[s][t][l].from} of shared singleton module ${t} does not satisfy the requirement of ${o.from} which needs ${i})`;n.strictVersion?w(r):N(r)}return e[s][t][l]}if(!1===i||"*"===i)return e[s][t][l];if(xe(l,i))return e[s][t][l];for(const[o,r]of Object.entries(e[s][t]))if(xe(o,i))return r},u={shareScopeMap:e,scope:s,pkgName:t,version:l,GlobalFederation:x.__FEDERATION__,resolver:c};return(r.emit(u)||u).resolver()}}function We(){return x.__FEDERATION__.__SHARE__}function Ve(e){const{pkgName:t,extraOptions:o,shareInfos:r}=e;var n;const s=null!=(n=null==o?void 0:o.resolver)?n:e=>{if(!e)return;const t={};e.forEach((e=>{t[e.version]=e}));const o=je(t,(function(e,o){return!Fe(t[e])&&He(e,o)}));return t[o]};return Object.assign({},s(r[t]),null==o?void 0:o.customShareInfo)}function Ke(e){const{entry:t,name:o}=e;return(0,a.lG)(o,t)}async function ze({origin:e,remoteEntryExports:t,remoteInfo:o}){const r=Ke(o);if(t)return t;if(!j[r]){const n=e.remoteHandler.hooks.lifecycle.loadEntry,s=e.loaderHook;j[r]=n.emit({loaderHook:s,remoteInfo:o,remoteEntryExports:t}).then((e=>e||((0,a.OL)()?async function({remoteInfo:e,remoteEntryExports:t,loaderHook:o}){const{entry:r,entryGlobalName:n,name:s,type:l}=e;switch(l){case"esm":case"module":return async function({entry:e,remoteEntryExports:t}){return new Promise(((o,r)=>{try{t?o(t):"undefined"!=typeof FEDERATION_ALLOW_NEW_FUNCTION?new Function("callbacks",`import("${e}").then(callbacks[0]).catch(callbacks[1])`)([o,r]):import(e).then(o).catch(r)}catch(e){r(e)}}))}({entry:r,remoteEntryExports:t});case"system":return async function({entry:e,remoteEntryExports:t}){return new Promise(((o,r)=>{try{t?o(t):new Function("callbacks",`System.import("${e}").then(callbacks[0]).catch(callbacks[1])`)([o,r])}catch(e){r(e)}}))}({entry:r,remoteEntryExports:t});default:return async function({name:e,globalName:t,entry:o,loaderHook:r}){const{entryExports:n}=B(e,t);return n||(0,a.k0)(o,{attrs:{},createScriptHook:(e,t)=>{const o=r.lifecycle.createScript.emit({url:e,attrs:t});if(o)return o instanceof HTMLScriptElement||"script"in o||"timeout"in o?o:void 0}}).then((()=>{const{remoteEntryKey:r,entryExports:n}=B(e,t);return v(n,y(i,E,{remoteName:e,remoteEntryUrl:o,remoteEntryKey:r})),n})).catch((t=>{throw v(void 0,y(d,E,{remoteName:e,resourceUrl:o})),t}))}({entry:r,globalName:n,name:s,loaderHook:o})}}({remoteInfo:o,remoteEntryExports:t,loaderHook:s}):async function({remoteInfo:e,loaderHook:t}){const{entry:o,entryGlobalName:r,name:n,type:s}=e,{entryExports:l}=B(n,r);return l||(0,a.oe)(o,{attrs:{name:n,globalName:r,type:s},loaderHook:{createScriptHook:(e,o={})=>{const r=t.lifecycle.createScript.emit({url:e,attrs:o});if(r)return"url"in r?r:void 0}}}).then((()=>{const{remoteEntryKey:e,entryExports:t}=B(n,r);return v(t,y(i,E,{remoteName:n,remoteEntryUrl:o,remoteEntryKey:e})),t})).catch((e=>{throw e}))}({remoteInfo:o,loaderHook:s}))))}return j[r]}function Xe(e){return n({},e,{entry:"entry"in e?e.entry:"",type:e.type||z,entryGlobalName:e.entryGlobalName||e.name,shareScope:e.shareScope||K})}let Ye=class{async getEntry(){if(this.remoteEntryExports)return this.remoteEntryExports;let e;try{e=await ze({origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports})}catch(t){const o=Ke(this.remoteInfo);e=await this.host.loaderHook.lifecycle.loadEntryError.emit({getRemoteEntry:ze,origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports,globalLoading:j,uniqueKey:o})}return v(e,`remoteEntryExports is undefined \n ${(0,a.ML)(this.remoteInfo)}`),this.remoteEntryExports=e,this.remoteEntryExports}async get(e,t,o,r){const{loadFactory:s=!0}=o||{loadFactory:!0},a=await this.getEntry();if(!this.inited){const t=this.host.shareScopeMap,o=Array.isArray(this.remoteInfo.shareScope)?this.remoteInfo.shareScope:[this.remoteInfo.shareScope];o.length||o.push("default"),o.forEach((e=>{t[e]||(t[e]={})}));const s=t[o[0]],i=[],c={version:this.remoteInfo.version||"",shareScopeKeys:Array.isArray(this.remoteInfo.shareScope)?o:this.remoteInfo.shareScope||"default"};Object.defineProperty(c,"shareScopeMap",{value:t,enumerable:!1});const u=await this.host.hooks.lifecycle.beforeInitContainer.emit({shareScope:s,remoteEntryInitOptions:c,initScope:i,remoteInfo:this.remoteInfo,origin:this.host});void 0===(null==a?void 0:a.init)&&w(y(l,E,{remoteName:name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName})),await a.init(u.shareScope,u.initScope,u.remoteEntryInitOptions),await this.host.hooks.lifecycle.initContainer.emit(n({},u,{id:e,remoteSnapshot:r,remoteEntryExports:a}))}let i;this.lib=a,this.inited=!0,i=await this.host.loaderHook.lifecycle.getModuleFactory.emit({remoteEntryExports:a,expose:t,moduleInfo:this.remoteInfo}),i||(i=await a.get(t)),v(i,`${I(this.remoteInfo)} remote don't export ${t}.`);const c=((e,t)=>{let o;return o=e.endsWith("/")?e.slice(0,-1):e,t.startsWith(".")&&(t=t.slice(1)),o+=t,o})(this.remoteInfo.name,t),u=this.wraperFactory(i,c);return s?await u():u}wraperFactory(e,t){function o(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 r=await e();return o(r,t),r}:()=>{const r=e();return o(r,t),r}}constructor({remoteInfo:e,host:t}){this.inited=!1,this.lib=void 0,this.remoteInfo=e,this.host=t}};class Je{on(e){"function"==typeof e&&this.listeners.add(e)}once(e){const t=this;this.on((function o(...r){return t.remove(o),e.apply(null,r)}))}emit(...e){let t;return this.listeners.size>0&&this.listeners.forEach((o=>{t=o(...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 Ze extends Je{emit(...e){let t;const o=Array.from(this.listeners);if(o.length>0){let r=0;const n=t=>!1!==t&&(r<o.length?Promise.resolve(o[r++].apply(null,e)).then(n):t);t=n()}return Promise.resolve(t)}}function Qe(e,t){if(!$(t))return!1;if(e!==t)for(const o in e)if(!(o in t))return!1;return!0}class et extends Je{emit(e){$(e)||w(`The data for the "${this.type}" hook should be an object.`);for(const t of this.listeners)try{const o=t(e);if(!Qe(e,o)){this.onerror(`A plugin returned an unacceptable value for the "${this.type}" type.`);break}e=o}catch(e){N(e),this.onerror(e)}return e}constructor(e){super(),this.onerror=w,this.type=e}}class tt extends Je{emit(e){$(e)||w(`The response data for the "${this.type}" hook must be an object.`);const t=Array.from(this.listeners);if(t.length>0){let o=0;const r=t=>(N(t),this.onerror(t),e),n=s=>{if(Qe(e,s)){if(e=s,o<t.length)try{return Promise.resolve(t[o++](e)).then(n,r)}catch(e){return r(e)}}else this.onerror(`A plugin returned an incorrect value for the "${this.type}" type.`);return e};return Promise.resolve(n(e))}return Promise.resolve(e)}constructor(e){super(),this.onerror=w,this.type=e}}class ot{applyPlugin(e){var t;v((t=e,"[object Object]"===T.call(t)),"Plugin configuration is invalid.");const o=e.name;v(o,"A name must be provided by the plugin."),this.registerPlugins[o]||(this.registerPlugins[o]=e,Object.keys(this.lifecycle).forEach((t=>{const o=e[t];o&&this.lifecycle[t].on(o)})))}removePlugin(e){v(e,"A name is required.");const t=this.registerPlugins[e];v(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=>{v(!this.lifecycle[t],`The hook "${t}" has a conflict and cannot be inherited.`),this.lifecycle[t]=e[t]})),Object.keys(t).forEach((e=>{v(!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 rt(e){return n({resourceCategory:"sync",share:!0,depsRemote:!0,prefetchInterface:!1},e)}function nt(e,t,o,r=!0){const{cssAssets:n,jsAssetsWithoutEntry:s,entryAssets:i}=o;if(t.options.inBrowser){if(i.forEach((o=>{const{moduleInfo:r}=o,n=t.moduleCache.get(e.name);ze(n?{origin:t,remoteInfo:r,remoteEntryExports:n.remoteEntryExports}:{origin:t,remoteInfo:r,remoteEntryExports:void 0})})),r){const e={rel:"preload",as:"style"};n.forEach((o=>{const{link:r,needAttach:n}=(0,a.d)({url:o,cb:()=>{},attrs:e,createLinkHook:(e,o)=>{const r=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:o});if(r instanceof HTMLLinkElement)return r}});n&&document.head.appendChild(r)}))}else{const e={rel:"stylesheet",type:"text/css"};n.forEach((o=>{const{link:r,needAttach:n}=(0,a.d)({url:o,cb:()=>{},attrs:e,createLinkHook:(e,o)=>{const r=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:o});if(r instanceof HTMLLinkElement)return r},needDeleteLink:!1});n&&document.head.appendChild(r)}))}if(r){const e={rel:"preload",as:"script"};s.forEach((o=>{const{link:r,needAttach:n}=(0,a.d)({url:o,cb:()=>{},attrs:e,createLinkHook:(e,o)=>{const r=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:o});if(r instanceof HTMLLinkElement)return r}});n&&document.head.appendChild(r)}))}else{const o={fetchpriority:"high",type:"module"===(null==e?void 0:e.type)?"module":"text/javascript"};s.forEach((e=>{const{script:r,needAttach:n}=(0,a.so)({url:e,cb:()=>{},attrs:o,createScriptHook:(e,o)=>{const r=t.loaderHook.lifecycle.createScript.emit({url:e,attrs:o});if(r instanceof HTMLScriptElement)return r},needDeleteScript:!0});n&&document.head.appendChild(r)}))}}}function st(e,t){const o=M(t);o.url||w(`The attribute remoteEntry of ${e.name} must not be undefined.`);let r=(0,a.Al)(t,o.url);(0,a.OL)()||r.startsWith("http")||(r=`https:${r}`),e.type=o.type,e.entryGlobalName=o.globalName,e.entry=r,e.version=t.version,e.buildVersion=t.buildVersion}function at(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 it(e,t,o,r,n={},s){const i=I(t),{value:l}=C(e,i),c=s||l;if(c&&!(0,a.Tr)(c)&&(o(c,t,r),c.remotesInfo)){const t=Object.keys(c.remotesInfo);for(const r of t){if(n[r])continue;n[r]=!0;const t=at(r),s=c.remotesInfo[r];it(e,{name:t.name,version:s.matchedVersion},o,!1,n,void 0)}}}const lt=(e,t)=>document.querySelector(`${e}[${"link"===e?"href":"src"}="${t}"]`);function ct(e,t,o,r,n){const s=[],i=[],l=[],c=new Set,u=new Set,{options:p}=e,{preloadConfig:m}=t,{depsRemote:h}=m;if(it(r,o,((t,o,r)=>{let n;if(r)n=m;else if(Array.isArray(h)){const e=h.find((e=>e.nameOrAlias===o.name||e.nameOrAlias===o.alias));if(!e)return;n=rt(e)}else{if(!0!==h)return;n=m}const c=(0,a.Al)(t,M(t).url);c&&l.push({name:o.name,moduleInfo:{name:o.name,entry:c,type:"remoteEntryType"in t?t.remoteEntryType:"global",entryGlobalName:"globalName"in t?t.globalName:o.name,shareScope:"",version:"version"in t?t.version:void 0},url:c});let u="modules"in t?t.modules:[];const p=(d=n.exposes)?d.map((e=>"."===e?e:e.startsWith("./")?e.replace("./",""):e)):[];var d,f,_;function y(e){const o=e.map((e=>(0,a.Al)(t,e)));return n.filter?o.filter(n.filter):o}if(p.length&&"modules"in t&&(u=null==t||null==(f=t.modules)?void 0:f.reduce(((e,t)=>(-1!==(null==p?void 0:p.indexOf(t.moduleName))&&e.push(t),e)),[])),u){const r=u.length;for(let a=0;a<r;a++){const r=u[a],l=`${o.name}/${r.moduleName}`;e.remoteHandler.hooks.lifecycle.handlePreloadModule.emit({id:"."===r.moduleName?o.name:l,name:o.name,remoteSnapshot:t,preloadConfig:n,remote:o,origin:e}),_=l,P.__FEDERATION__.__PRELOADED_MAP__.get(_)||("all"===n.resourceCategory?(s.push(...y(r.assets.css.async)),s.push(...y(r.assets.css.sync)),i.push(...y(r.assets.js.async)),i.push(...y(r.assets.js.sync))):(n.resourceCategory="sync")&&(s.push(...y(r.assets.css.sync)),i.push(...y(r.assets.js.sync))),V(l))}}}),!0,{},n),n.shared){const t=(t,o)=>{const r=Be(e.shareScopeMap,o.sharedName,t,e.sharedHandler.hooks.lifecycle.resolveShare);r&&"function"==typeof r.lib&&(o.assets.js.sync.forEach((e=>{c.add(e)})),o.assets.css.sync.forEach((e=>{u.add(e)})))};n.shared.forEach((e=>{var o;const r=null==(o=p.shared)?void 0:o[e.sharedName];if(!r)return;const n=e.version?r.find((t=>t.version===e.version)):r;n&&A(n).forEach((o=>{t(o,e)}))}))}const d=i.filter((e=>!c.has(e)&&!lt("script",e)));return{cssAssets:s.filter((e=>!u.has(e)&&!lt("link",e))),jsAssetsWithoutEntry:d,entryAssets:l.filter((e=>!lt("script",e.url)))}}function ut(e,t){const o=G({name:t.options.name,version:t.options.version}),r=o&&"remotesInfo"in o&&o.remotesInfo&&C(o.remotesInfo,e.name).value;return r&&r.matchedVersion?{hostGlobalSnapshot:o,globalSnapshot:q(),remoteSnapshot:G({name:e.name,version:r.matchedVersion})}:{hostGlobalSnapshot:void 0,globalSnapshot:q(),remoteSnapshot:G({name:e.name,version:"version"in e?e.version:void 0})}}class pt{async loadSnapshot(e){const{options:t}=this.HostInstance,{hostGlobalSnapshot:o,remoteSnapshot:r,globalSnapshot:n}=this.getGlobalRemoteInfo(e),{remoteSnapshot:s,globalSnapshot:a}=await this.hooks.lifecycle.loadSnapshot.emit({options:t,moduleInfo:e,hostGlobalSnapshot:o,remoteSnapshot:r,globalSnapshot:n});return{remoteSnapshot:s,globalSnapshot:a}}async loadRemoteSnapshotInfo(e){const{options:t}=this.HostInstance;await this.hooks.lifecycle.beforeLoadRemoteSnapshot.emit({options:t,moduleInfo:e});let o=G({name:this.HostInstance.options.name,version:this.HostInstance.options.version});var r;o||(o={version:this.HostInstance.options.version||"",remoteEntry:"",remotesInfo:{}},r={[this.HostInstance.options.name]:o},L.__FEDERATION__.moduleInfo=n({},L.__FEDERATION__.moduleInfo,r)),o&&"remotesInfo"in o&&!C(o.remotesInfo,e.name).value&&("version"in e||"entry"in e)&&(o.remotesInfo=n({},null==o?void 0:o.remotesInfo,{[e.name]:{matchedVersion:"version"in e?e.version:e.entry}}));const{hostGlobalSnapshot:s,remoteSnapshot:i,globalSnapshot:l}=this.getGlobalRemoteInfo(e),{remoteSnapshot:c,globalSnapshot:u}=await this.hooks.lifecycle.loadSnapshot.emit({options:t,moduleInfo:e,hostGlobalSnapshot:s,remoteSnapshot:i,globalSnapshot:l});let p,m;if(c)if((0,a.Tr)(c)){const t=(0,a.OL)()?c.remoteEntry:c.ssrRemoteEntry||c.remoteEntry||"",o=await this.getManifestJson(t,e,{});p=o,m=U(n({},e,{entry:t}),o)}else{const{remoteSnapshot:t}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:c,from:"global"});p=t,m=u}else if(R(e)){const t=await this.getManifestJson(e.entry,e,{}),o=U(e,t),{remoteSnapshot:r}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:t,from:"global"});p=r,m=o}else w(y(h,E,{hostName:e.name,hostVersion:e.version,globalSnapshot:JSON.stringify(u)}));return await this.hooks.lifecycle.afterLoadSnapshot.emit({options:t,moduleInfo:e,remoteSnapshot:p}),{remoteSnapshot:p,globalSnapshot:m}}getGlobalRemoteInfo(e){return ut(e,this.HostInstance)}async getManifestJson(e,t,o){const r=async()=>{let o=this.manifestCache.get(e);if(o)return o;try{let t=await this.loaderHook.lifecycle.fetch.emit(e,{});t&&t instanceof Response||(t=await fetch(e,{})),o=await t.json()}catch(r){o=await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:r,from:"runtime",lifecycle:"afterResolve",origin:this.HostInstance}),o||(delete this.manifestLoading[e],w(y(c,E,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name},`${r}`)))}return v(o.metaData&&o.exposes&&o.shared,`${e} is not a federation manifest`),this.manifestCache.set(e,o),o};return this.manifestLoading[e]||(this.manifestLoading[e]=(async()=>{const o=await r(),n=(0,a.Jn)(o,{version:e}),{remoteSnapshot:s}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:t,manifestJson:o,remoteSnapshot:n,manifestUrl:e,from:"manifest"});return s})().then((e=>e))),this.manifestLoading[e]}constructor(e){this.loadingHostSnapshot=null,this.manifestCache=new Map,this.hooks=new ot({beforeLoadRemoteSnapshot:new Ze("beforeLoadRemoteSnapshot"),loadSnapshot:new tt("loadGlobalSnapshot"),loadRemoteSnapshot:new tt("loadRemoteSnapshot"),afterLoadSnapshot:new tt("afterLoadSnapshot")}),this.manifestLoading=x.__FEDERATION__.__MANIFEST_LOADING__,this.HostInstance=e,this.loaderHook=e.loaderHook}}class mt{registerShared(e,t){const{shareInfos:o,shared:r}=De(e,t);return Object.keys(o).forEach((e=>{o[e].forEach((o=>{!Be(this.shareScopeMap,e,o,this.hooks.lifecycle.resolveShare)&&o&&o.lib&&this.setShared({pkgName:e,lib:o.lib,get:o.get,loaded:!0,shared:o,from:t.name})}))})),{shareInfos:o,shared:r}}async loadShare(e,t){const{host:o}=this,r=Ve({pkgName:e,extraOptions:t,shareInfos:o.options.shared});(null==r?void 0:r.scope)&&await Promise.all(r.scope.map((async e=>{await Promise.all(this.initializeSharing(e,{strategy:r.strategy}))})));const n=await this.hooks.lifecycle.beforeLoadShare.emit({pkgName:e,shareInfo:r,shared:o.options.shared,origin:o}),{shareInfo:s}=n;v(s,`Cannot find ${e} Share in the ${o.options.name}. Please ensure that the ${e} Share parameters have been injected`);const a=Be(this.shareScopeMap,e,s,this.hooks.lifecycle.resolveShare),i=e=>{e.useIn||(e.useIn=[]),k(e.useIn,o.options.name)};if(a&&a.lib)return i(a),a.lib;if(a&&a.loading&&!a.loaded){const e=await a.loading;return a.loaded=!0,a.lib||(a.lib=e),i(a),e}if(a){const t=(async()=>{const t=await a.get();s.lib=t,s.loaded=!0,i(s);const o=Be(this.shareScopeMap,e,s,this.hooks.lifecycle.resolveShare);return o&&(o.lib=t,o.loaded=!0),t})();return this.setShared({pkgName:e,loaded:!1,shared:a,from:o.options.name,lib:null,loading:t}),t}{if(null==t?void 0:t.customShareInfo)return!1;const r=(async()=>{const t=await s.get();s.lib=t,s.loaded=!0,i(s);const o=Be(this.shareScopeMap,e,s,this.hooks.lifecycle.resolveShare);return o&&(o.lib=t,o.loaded=!0),t})();return this.setShared({pkgName:e,loaded:!1,shared:s,from:o.options.name,lib:null,loading:r}),r}}initializeSharing(e=K,t){const{host:o}=this,r=null==t?void 0:t.from,n=null==t?void 0:t.strategy;let s=null==t?void 0:t.initScope;const a=[];if("build"!==r){const{initTokens:t}=this;s||(s=[]);let o=t[e];if(o||(o=t[e]={from:this.host.name}),s.indexOf(o)>=0)return a;s.push(o)}const i=this.shareScopeMap,l=o.options.name;i[e]||(i[e]={});const c=i[e];return Object.keys(o.options.shared).forEach((t=>{o.options.shared[t].forEach((o=>{o.scope.includes(e)&&((e,t)=>{var o;const{version:r,eager:n}=t;c[e]=c[e]||{};const s=c[e],a=s[r],i=Boolean(a&&(a.eager||(null==(o=a.shareConfig)?void 0:o.eager)));(!a||"loaded-first"!==a.strategy&&!a.loaded&&(Boolean(!n)!==!i?n:l>a.from))&&(s[r]=t)})(t,o)}))})),"version-first"!==o.options.shareStrategy&&"version-first"!==n||o.options.remotes.forEach((t=>{t.shareScope===e&&a.push((async t=>{const{module:r}=await o.remoteHandler.getRemoteModuleAndOptions({id:t});if(r.getEntry){let a;try{a=await r.getEntry()}catch(e){a=await o.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:t,error:e,from:"runtime",lifecycle:"beforeLoadShare",origin:o})}r.inited||(await(n=a,n&&n.init&&n.init(i[e],s)),r.inited=!0)}var n})(t.name))})),a}loadShareSync(e,t){const{host:o}=this,r=Ve({pkgName:e,extraOptions:t,shareInfos:o.options.shared});(null==r?void 0:r.scope)&&r.scope.forEach((e=>{this.initializeSharing(e,{strategy:r.strategy})}));const n=Be(this.shareScopeMap,e,r,this.hooks.lifecycle.resolveShare),s=e=>{e.useIn||(e.useIn=[]),k(e.useIn,o.options.name)};if(n){if("function"==typeof n.lib)return s(n),n.loaded||(n.loaded=!0,n.from===o.options.name&&(r.loaded=!0)),n.lib;if("function"==typeof n.get){const t=n.get();if(!(t instanceof Promise))return s(n),this.setShared({pkgName:e,loaded:!0,from:o.options.name,lib:t,shared:n}),t}}if(r.lib)return r.loaded||(r.loaded=!0),r.lib;if(r.get){const n=r.get();if(n instanceof Promise){const r="build"===(null==t?void 0:t.from)?p:m;throw new Error(y(r,E,{hostName:o.options.name,sharedPkgName:e}))}return r.lib=n,this.setShared({pkgName:e,loaded:!0,from:o.options.name,lib:r.lib,shared:r}),r.lib}throw new Error(y(m,E,{hostName:o.options.name,sharedPkgName:e}))}initShareScopeMap(e,t,o={}){const{host:r}=this;this.shareScopeMap[e]=t,this.hooks.lifecycle.initContainerShareScopeMap.emit({shareScope:t,options:r.options,origin:r,scopeName:e,hostShareScopeMap:o.hostShareScopeMap})}setShared({pkgName:e,shared:t,from:o,lib:r,loading:a,loaded:i,get:l}){const{version:c,scope:u="default"}=t,p=s(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][c])return this.shareScopeMap[t][e][c]=n({version:c,scope:["default"]},p,{lib:r,loaded:i,loading:a}),void(l&&(this.shareScopeMap[t][e][c].get=l));const o=this.shareScopeMap[t][e][c];a&&!o.loading&&(o.loading=a)}))}_setGlobalShareScopeMap(e){const t=We(),o=e.id||e.name;o&&!t[o]&&(t[o]=this.shareScopeMap)}constructor(e){this.hooks=new ot({afterResolve:new tt("afterResolve"),beforeLoadShare:new tt("beforeLoadShare"),loadShare:new Ze,resolveShare:new et("resolveShare"),initContainerShareScopeMap:new et("initContainerShareScopeMap")}),this.host=e,this.shareScopeMap={},this.initTokens={},this._setGlobalShareScopeMap(e.options)}}class ht{formatAndRegisterRemote(e,t){return(t.remotes||[]).reduce(((e,t)=>(this.registerRemote(t,e,{force:!1}),e)),e.remotes)}setIdToRemoteMap(e,t){const{remote:o,expose:r}=t,{name:n,alias:s}=o;if(this.idToRemoteMap[e]={name:o.name,expose:r},s&&e.startsWith(n)){const t=e.replace(n,s);this.idToRemoteMap[t]={name:o.name,expose:r}}else if(s&&e.startsWith(s)){const t=e.replace(s,n);this.idToRemoteMap[t]={name:o.name,expose:r}}}async loadRemote(e,t){const{host:o}=this;try{const{loadFactory:r=!0}=t||{loadFactory:!0},{module:n,moduleOptions:s,remoteMatchInfo:a}=await this.getRemoteModuleAndOptions({id:e}),{pkgNameOrAlias:i,remote:l,expose:c,id:u,remoteSnapshot:p}=a,m=await n.get(u,c,t,p),h=await this.hooks.lifecycle.onLoad.emit({id:u,pkgNameOrAlias:i,expose:c,exposeModule:r?m:void 0,exposeModuleFactory:r?void 0:m,remote:l,options:s,moduleInstance:n,origin:o});return this.setIdToRemoteMap(e,a),"function"==typeof h?h:m}catch(r){const{from:n="runtime"}=t||{from:"runtime"},s=await this.hooks.lifecycle.errorLoadRemote.emit({id:e,error:r,from:n,lifecycle:"onLoad",origin:o});if(!s)throw r;return s}}async preloadRemote(e){const{host:t}=this;await this.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:e,options:t.options,origin:t});const o=(r=t.options.remotes,e.map((e=>{const t=function(e,t){for(const o of e){if(t===o.name)return o;if(o.alias&&t===o.alias)return o}}(r,e.nameOrAlias);return v(t,`Unable to preload ${e.nameOrAlias} as it is not included in ${!t&&(0,a.ML)({remoteInfo:t,remotes:r})}`),{remote:t,preloadConfig:rt(e)}})));var r;await Promise.all(o.map((async e=>{const{remote:o}=e,r=Xe(o),{globalSnapshot:n,remoteSnapshot:s}=await t.snapshotHandler.loadRemoteSnapshotInfo(o),a=await this.hooks.lifecycle.generatePreloadAssets.emit({origin:t,preloadOptions:e,remote:o,remoteInfo:r,globalSnapshot:n,remoteSnapshot:s});a&&nt(r,t,a)})))}registerRemotes(e,t){const{host:o}=this;e.forEach((e=>{this.registerRemote(e,o.options.remotes,{force:null==t?void 0:t.force})}))}async getRemoteModuleAndOptions(e){const{host:t}=this,{id:o}=e;let r;try{r=await this.hooks.lifecycle.beforeRequest.emit({id:o,options:t.options,origin:t})}catch(e){if(r=await this.hooks.lifecycle.errorLoadRemote.emit({id:o,options:t.options,origin:t,from:"runtime",error:e,lifecycle:"beforeRequest"}),!r)throw e}const{id:s}=r,a=function(e,t){for(const o of e){const e=t.startsWith(o.name);let r=t.replace(o.name,"");if(e){if(r.startsWith("/"))return r=`.${r}`,{pkgNameOrAlias:o.name,expose:r,remote:o};if(""===r)return{pkgNameOrAlias:o.name,expose:".",remote:o}}const n=o.alias&&t.startsWith(o.alias);let s=o.alias&&t.replace(o.alias,"");if(o.alias&&n){if(s&&s.startsWith("/"))return s=`.${s}`,{pkgNameOrAlias:o.alias,expose:s,remote:o};if(""===s)return{pkgNameOrAlias:o.alias,expose:".",remote:o}}}}(t.options.remotes,s);v(a,y(u,E,{hostName:t.options.name,requestId:s}));const{remote:i}=a,l=Xe(i),c=await t.sharedHandler.hooks.lifecycle.afterResolve.emit(n({id:s},a,{options:t.options,origin:t,remoteInfo:l})),{remote:p,expose:m}=c;v(p&&m,`The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ${s}.`);let h=t.moduleCache.get(p.name);const d={host:t,remoteInfo:l};return h||(h=new Ye(d),t.moduleCache.set(p.name,h)),{module:h,moduleOptions:d,remoteMatchInfo:c}}registerRemote(e,t,o){const{host:r}=this,n=()=>{if(e.alias){const o=t.find((t=>{var o;return e.alias&&(t.name.startsWith(e.alias)||(null==(o=t.alias)?void 0:o.startsWith(e.alias)))}));v(!o,`The alias ${e.alias} of remote ${e.name} is not allowed to be the prefix of ${o&&o.name} name or alias`)}"entry"in e&&(0,a.OL)()&&!e.entry.startsWith("http")&&(e.entry=new URL(e.entry,window.location.origin).href),e.shareScope||(e.shareScope=K),e.type||(e.type=z)};this.hooks.lifecycle.beforeRegisterRemote.emit({remote:e,origin:r});const s=t.find((t=>t.name===e.name));if(s){const i=[`The remote "${e.name}" is already registered.`,"Please note that overriding it may cause unexpected errors."];(null==o?void 0:o.force)&&(this.removeRemote(s),n(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:r}),(0,a.R8)(i.join(" ")))}else n(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:r})}removeRemote(e){try{const{host:o}=this,{name:r}=e,n=o.options.remotes.findIndex((e=>e.name===r));-1!==n&&o.options.remotes.splice(n,1);const s=o.moduleCache.get(e.name);if(s){const r=s.remoteInfo,n=r.entryGlobalName;var t;P[n]&&((null==(t=Object.getOwnPropertyDescriptor(P,n))?void 0:t.configurable)?delete P[n]:P[n]=void 0);const i=Ke(s.remoteInfo);j[i]&&delete j[i],o.snapshotHandler.manifestCache.delete(r.entry);let l=r.buildVersion?(0,a.lG)(r.name,r.buildVersion):r.name;const c=P.__FEDERATION__.__INSTANCES__.findIndex((e=>r.buildVersion?e.options.id===l:e.name===l));if(-1!==c){const e=P.__FEDERATION__.__INSTANCES__[c];l=e.options.id||l;const t=We();let o=!0;const n=[];Object.keys(t).forEach((e=>{const s=t[e];s&&Object.keys(s).forEach((t=>{const a=s[t];a&&Object.keys(a).forEach((s=>{const i=a[s];i&&Object.keys(i).forEach((a=>{const l=i[a];l&&"object"==typeof l&&l.from===r.name&&(l.loaded||l.loading?(l.useIn=l.useIn.filter((e=>e!==r.name)),l.useIn.length?o=!1:n.push([e,t,s,a])):n.push([e,t,s,a]))}))}))}))})),o&&(e.shareScopeMap={},delete t[l]),n.forEach((([e,o,r,n])=>{var s,a,i;null==(i=t[e])||null==(a=i[o])||null==(s=a[r])||delete s[n]})),P.__FEDERATION__.__INSTANCES__.splice(c,1)}const{hostGlobalSnapshot:u}=ut(e,o);if(u){const t=u&&"remotesInfo"in u&&u.remotesInfo&&C(u.remotesInfo,e.name).key;t&&(delete u.remotesInfo[t],Boolean(x.__FEDERATION__.__MANIFEST_LOADING__[t])&&delete x.__FEDERATION__.__MANIFEST_LOADING__[t])}o.moduleCache.delete(e.name)}}catch(e){S.log("removeRemote fail: ",e)}}constructor(e){this.hooks=new ot({beforeRegisterRemote:new et("beforeRegisterRemote"),registerRemote:new et("registerRemote"),beforeRequest:new tt("beforeRequest"),onLoad:new Ze("onLoad"),handlePreloadModule:new Je("handlePreloadModule"),errorLoadRemote:new Ze("errorLoadRemote"),beforePreloadRemote:new Ze("beforePreloadRemote"),generatePreloadAssets:new Ze("generatePreloadAssets"),afterPreloadRemote:new Ze,loadEntry:new Ze}),this.host=e,this.idToRemoteMap={}}}class dt{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=K,t){return this.sharedHandler.initializeSharing(e,t)}initRawContainer(e,t,o){const r=Xe({name:e,entry:t}),n=new Ye({host:this,remoteInfo:r});return n.remoteEntryExports=o,this.moduleCache.set(e,n),n}async loadRemote(e,t){return this.remoteHandler.loadRemote(e,t)}async preloadRemote(e){return this.remoteHandler.preloadRemote(e)}initShareScopeMap(e,t,o={}){this.sharedHandler.initShareScopeMap(e,t,o)}formatOptions(e,t){const{shared:o}=De(e,t),{userOptions:r,options:s}=this.hooks.lifecycle.beforeInit.emit({origin:this,userOptions:t,options:e,shareInfo:o}),a=this.remoteHandler.formatAndRegisterRemote(s,r),{shared:i}=this.sharedHandler.registerShared(s,r),l=[...s.plugins];r.plugins&&r.plugins.forEach((e=>{l.includes(e)||l.push(e)}));const c=n({},e,t,{plugins:l,remotes:a,shared:i});return this.hooks.lifecycle.init.emit({origin:this,options:c}),c}registerPlugins(e){const t=function(e,t){const o=L.__FEDERATION__.__GLOBAL_PLUGIN__;return o.length>0&&o.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 ot({beforeInit:new et("beforeInit"),init:new Je,beforeInitContainer:new tt("beforeInitContainer"),initContainer:new tt("initContainer")}),this.version="0.13.1",this.moduleCache=new Map,this.loaderHook=new ot({getModuleInfo:new Je,createScript:new Je,createLink:new Je,fetch:new Ze,loadEntryError:new Ze,getModuleFactory:new Ze}),this.bridgeHook=new ot({beforeBridgeRender:new Je,afterBridgeRender:new Je,beforeBridgeDestroy:new Je,afterBridgeDestroy:new Je});const t={id:"flowComponents:2.0.548",name:e.name,plugins:[{name:"snapshot-plugin",async afterResolve(e){const{remote:t,pkgNameOrAlias:o,expose:r,origin:s,remoteInfo:a}=e;if(!R(t)||!O(t)){const{remoteSnapshot:i,globalSnapshot:l}=await s.snapshotHandler.loadRemoteSnapshotInfo(t);st(a,i);const c={remote:t,preloadConfig:{nameOrAlias:o,exposes:[r],resourceCategory:"sync",share:!1,depsRemote:!1}},u=await s.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin:s,preloadOptions:c,remoteInfo:a,remote:t,remoteSnapshot:i,globalSnapshot:l});return u&&nt(a,s,u,!1),n({},e,{remoteSnapshot:i})}return e}},{name:"generate-preload-assets-plugin",async generatePreloadAssets(e){const{origin:t,preloadOptions:o,remoteInfo:r,remote:n,globalSnapshot:s,remoteSnapshot:i}=e;return(0,a.OL)()?R(n)&&O(n)?{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[{name:n.name,url:n.entry,moduleInfo:{name:r.name,entry:n.entry,type:r.type||"global",entryGlobalName:"",shareScope:""}}]}:(st(r,i),ct(t,o,r,s,i)):{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[]}}}],remotes:[],shared:{},inBrowser:(0,a.OL)()};this.name=e.name,this.options=t,this.snapshotHandler=new pt(this),this.sharedHandler=new mt(this),this.remoteHandler=new ht(this),this.shareScopeMap=this.sharedHandler.shareScopeMap,this.registerPlugins([...t.plugins,...e.plugins||[]]),this.options=this.formatOptions(t,e)}}let ft=null;function _t(e){const t=function(e,t){return P.__FEDERATION__.__INSTANCES__.find((o=>"flowComponents:2.0.548"===o.options.id||o.options.name===e&&!o.options.version&&!t||!(o.options.name!==e||!t||o.options.version!==t)))}(e.name,e.version);if(t)return t.initOptions(e),ft||(ft=t),t;{const t=P.__FEDERATION__.__DEBUG_CONSTRUCTOR__||dt;return ft=new t(e),function(e){P.__FEDERATION__.__INSTANCES__.push(e)}(ft),ft}}function yt(...e){return v(ft,"Please call init first"),ft.loadRemote.apply(ft,e)}function gt(...e){return v(ft,"Please call init first"),ft.loadShare.apply(ft,e)}function Et(...e){return v(ft,"Please call init first"),ft.loadShareSync.apply(ft,e)}function bt(...e){return v(ft,"Please call init first"),ft.preloadRemote.apply(ft,e)}function St(...e){return v(ft,"Please call init first"),ft.registerRemotes.apply(ft,e)}function vt(...e){return v(ft,"Please call init first"),ft.registerPlugins.apply(ft,e)}function wt(){return ft}!function(e,t=(0,a.Bb)()){t&&(P.__FEDERATION__.__DEBUG_CONSTRUCTOR__=e,P.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__="0.13.1")}(dt);const Nt=["script"];function kt(e){e.S&&!e.federation.hasAttachShareScopeMap&&e.federation.instance&&e.federation.instance.shareScopeMap&&(e.S=e.federation.instance.shareScopeMap,e.federation.hasAttachShareScopeMap=!0)}function It(){return It=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},It.apply(this,arguments)}const Rt={runtime:r,instance:void 0,initOptions:void 0,bundlerRuntime:{remotes:function(e){const{chunkId:t,promises:o,chunkMapping:r,idToExternalAndNameMapping:n,webpackRequire:s,idToRemoteMap:i}=e;kt(s),s.o(r,t)&&r[t].forEach((e=>{let t=s.R;t||(t=[]);const r=n[e],l=i[e];if(t.indexOf(r)>=0)return;if(t.push(r),r.p)return o.push(r.p);const c=t=>{t||(t=new Error("Container missing")),"string"==typeof t.message&&(t.message+=`\nwhile loading "${r[1]}" from ${r[2]}`),s.m[e]=()=>{throw t},r.p=0},u=(e,t,n,s,a,i)=>{try{const l=e(t,n);if(!l||!l.then)return a(l,s,i);{const e=l.then((e=>a(e,s)),c);if(!i)return e;o.push(r.p=e)}}catch(e){c(e)}};var p=(e,o,n)=>u(o.get,r[1],t,0,m,n),m=t=>{r.p=1,s.m[e]=e=>{e.exports=t()}};1===l.length&&Nt.includes(l[0].externalType)&&l[0].name?u((()=>{try{const e=(0,a.e4)(l[0].name,a.yq)+r[1].slice(1),t=s.federation.instance,o=()=>s.federation.instance.loadRemote(e,{loadFactory:!1,from:"build"});return"version-first"===t.options.shareStrategy?Promise.all(t.sharedHandler.initializeSharing(r[0])).then((()=>o())):o()}catch(e){c(e)}}),r[2],0,0,m,1):u(s,r[2],0,0,((e,t,o)=>e?u(s.I,r[0],0,e,p,o):c()),1)}))},consumes:function(e){const{chunkId:t,promises:o,chunkMapping:r,installedModules:n,moduleToHandlerMapping:s,webpackRequire:a}=e;kt(a),a.o(r,t)&&r[t].forEach((e=>{if(a.o(n,e))return o.push(n[e]);const t=t=>{n[e]=0,a.m[e]=o=>{delete a.c[e],o.exports=t()}},r=t=>{delete n[e],a.m[e]=o=>{throw delete a.c[e],t}};try{const i=a.federation.instance;if(!i)throw new Error("Federation instance not found!");const{shareKey:l,getter:c,shareInfo:u}=s[e],p=i.loadShare(l,{customShareInfo:u}).then((e=>!1===e?c():e));p.then?o.push(n[e]=p.then(t).catch(r)):t(p)}catch(e){r(e)}}))},I:function({shareScopeName:e,webpackRequire:t,initPromises:o,initTokens:r,initScope:n}){const s=Array.isArray(e)?e:[e];var a=[];return s.forEach((s=>{a.push(function(s){n||(n=[]);const a=t.federation.instance;var i=r[s];if(i||(i=r[s]={from:a.name}),n.indexOf(i)>=0)return;n.push(i);const l=o[s];if(l)return l;var c=o=>{var r=e=>{return t="Initialization of sharing external failed: "+e,"undefined"!=typeof console&&console.warn&&console.warn(t);var t};try{var a=t(o);if(!a)return;var i=o=>o&&o.init&&o.init(t.S[s],n,{shareScopeMap:t.S||{},shareScopeKeys:e});if(a.then)return u.push(a.then(i,r));var l=i(a);if(l&&"boolean"!=typeof l&&l.then)return u.push(l.catch(r))}catch(e){r(e)}};const u=a.initializeSharing(s,{strategy:a.options.shareStrategy,initScope:n,from:"build"});kt(t);const p=t.federation.bundlerRuntimeOptions.remotes;return p&&Object.keys(p.idToRemoteMap).forEach((e=>{const t=p.idToRemoteMap[e],o=p.idToExternalAndNameMapping[e][2];if(t.length>1)c(o);else if(1===t.length){const e=t[0];Nt.includes(e.externalType)||c(o)}})),u.length?o[s]=Promise.all(u).then((()=>o[s]=!0)):o[s]=!0}(s))})),Promise.all(a).then((()=>!0))},S:{},installInitialConsumes:function(e){const{moduleToHandlerMapping:t,webpackRequire:o,installedModules:r,initialConsumes:n}=e;n.forEach((e=>{o.m[e]=n=>{r[e]=0,delete o.c[e];const s=function(e){const{moduleId:t,moduleToHandlerMapping:o,webpackRequire:r}=e,n=r.federation.instance;if(!n)throw new Error("Federation instance not found!");const{shareKey:s,shareInfo:a}=o[t];try{return n.loadShareSync(s,{customShareInfo:a})}catch(e){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: "),e}}({moduleId:e,moduleToHandlerMapping:t,webpackRequire:o});if("function"!=typeof s)throw new Error(`Shared module is not available for eager consumption: ${e}`);n.exports=s()}}))},initContainerEntry:function(e){const{webpackRequire:t,shareScope:o,initScope:r,shareScopeKey:n,remoteEntryInitOptions:s}=e;if(!t.S)return;if(!t.federation||!t.federation.instance||!t.federation.initOptions)return;const a=t.federation.instance;a.initOptions(It({name:t.federation.initOptions.name,remotes:[]},s));const i=null==s?void 0:s.shareScopeKeys,l=null==s?void 0:s.shareScopeMap;if(n&&"string"!=typeof n)n.forEach((e=>{if(!i||!l)return void a.initShareScopeMap(e,o,{hostShareScopeMap:(null==s?void 0:s.shareScopeMap)||{}});l[e]||(l[e]={});const t=l[e];a.initShareScopeMap(e,t,{hostShareScopeMap:(null==s?void 0:s.shareScopeMap)||{}})}));else{const e=n||"default";Array.isArray(i)?i.forEach((e=>{l[e]||(l[e]={});const t=l[e];a.initShareScopeMap(e,t,{hostShareScopeMap:(null==s?void 0:s.shareScopeMap)||{}})})):a.initShareScopeMap(e,o,{hostShareScopeMap:(null==s?void 0:s.shareScopeMap)||{}})}return t.federation.attachShareScopeMap&&t.federation.attachShareScopeMap(t),"function"==typeof t.federation.prefetch&&t.federation.prefetch(),Array.isArray(n)?Boolean(t.federation.initOptions.shared)?t.I(n,r):Promise.all(n.map((e=>t.I(e,r)))).then((()=>!0)):t.I(n||"default",r)}},attachShareScopeMap:kt,bundlerRuntimeOptions:{}};if(!o.federation.runtime){var Ot=o.federation;for(var $t in o.federation={},Rt)o.federation[$t]=Rt[$t];for(var $t in Ot)o.federation[$t]=Ot[$t]}o.federation.instance||(o.federation.instance=o.federation.runtime.init(o.federation.initOptions),o.federation.attachShareScopeMap&&o.federation.attachShareScopeMap(o),o.federation.installInitialConsumes&&o.federation.installInitialConsumes(),!o.federation.isMFRemote&&o.federation.prefetch&&o.federation.prefetch())},3723:(e,t,o)=>{Promise.all([o.e(84),o.e(485),o.e(575)]).then(o.bind(o,3575))},9615:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Al:()=>getResourceUrl,Bb:()=>isDebugMode,Jn:()=>generateSnapshotFromManifest,ML:()=>safeToString,OL:()=>isBrowserEnv,R8:()=>warn,Tr:()=>isManifestProvider,d:()=>createLink,e4:()=>decodeName,h:()=>createLogger,k0:()=>loadScript,lG:()=>composeKeyWithSeparator,oe:()=>loadScriptNode,so:()=>createScript,tf:()=>isReactNativeEnv,yq:()=>ENCODE_NAME_PREFIX});var _polyfills_esm_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(3419);const FederationModuleManifest="federation-manifest.json",MANIFEST_EXT=".json",BROWSER_LOG_KEY="FEDERATION_DEBUG",BROWSER_LOG_VALUE="1",NameTransformSymbol={AT:"@",HYPHEN:"-",SLASH:"/"},NameTransformMap={[NameTransformSymbol.AT]:"scope_",[NameTransformSymbol.HYPHEN]:"_",[NameTransformSymbol.SLASH]:"__"},EncodedNameTransformMap={[NameTransformMap[NameTransformSymbol.AT]]:NameTransformSymbol.AT,[NameTransformMap[NameTransformSymbol.HYPHEN]]:NameTransformSymbol.HYPHEN,[NameTransformMap[NameTransformSymbol.SLASH]]:NameTransformSymbol.SLASH},SEPARATOR=":",ManifestFileName="mf-manifest.json",StatsFileName="mf-stats.json",MFModuleType={NPM:"npm",APP:"app"},MODULE_DEVTOOL_IDENTIFIER="__MF_DEVTOOLS_MODULE_INFO__",ENCODE_NAME_PREFIX="ENCODE_NAME_PREFIX",TEMP_DIR=".federation",MFPrefetchCommon={identifier:"MFDataPrefetch",globalKey:"__PREFETCH__",library:"mf-data-prefetch",exportsKey:"__PREFETCH_EXPORTS__",fileName:"bootstrap.js"};var ContainerPlugin=Object.freeze({__proto__:null}),ContainerReferencePlugin=Object.freeze({__proto__:null}),ModuleFederationPlugin=Object.freeze({__proto__:null}),SharePlugin=Object.freeze({__proto__:null});function isBrowserEnv(){return"undefined"!=typeof window&&void 0!==window.document}function isReactNativeEnv(){var e;return"undefined"!=typeof navigator&&"ReactNative"===(null==(e=navigator)?void 0:e.product)}function isBrowserDebug(){try{if(isBrowserEnv()&&window.localStorage)return localStorage.getItem(BROWSER_LOG_KEY)===BROWSER_LOG_VALUE}catch(e){return!1}return!1}function isDebugMode(){return"undefined"!=typeof process&&process.env&&process.env.FEDERATION_DEBUG?Boolean(process.env.FEDERATION_DEBUG):!("undefined"==typeof FEDERATION_DEBUG||!Boolean(FEDERATION_DEBUG))||isBrowserDebug()}const getProcessEnv=function(){return"undefined"!=typeof process&&process.env?process.env:{}},LOG_CATEGORY="[ Federation Runtime ]",parseEntry=(e,t,o=SEPARATOR)=>{const r=e.split(o),n="development"===getProcessEnv().NODE_ENV&&t,s=e=>e.startsWith("http")||e.includes(MANIFEST_EXT);if(r.length>=2){let[t,...a]=r;e.startsWith(o)&&(t=r.slice(0,2).join(o),a=[n||r.slice(2).join(o)]);let i=n||a.join(o);return s(i)?{name:t,entry:i}:{name:t,version:i||"*"}}if(1===r.length){const[e]=r;return n&&s(n)?{name:e,entry:n}:{name:e,version:n||"*"}}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="",o=!1){try{const r=o?".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])}${r}`}catch(e){throw e}},decodeName=function(e,t,o){try{let r=e;if(t){if(!r.startsWith(t))return r;r=r.replace(new RegExp(t,"g"),"")}return r=r.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]]),o&&(r=r.replace(".js","")),r}catch(e){throw e}},generateExposeFilename=(e,t)=>{if(!e)return"";let o=e;return"."===o&&(o="default_export"),o.startsWith("./")&&(o=o.replace("./","")),encodeName(o,"__federation_expose_",t)},generateShareFilename=(e,t)=>e?encodeName(e,"__federation_shared_",t):"",getResourceUrl=(e,t)=>{if("getPublicPath"in e){let o;return o=e.getPublicPath.startsWith("function")?new Function("return "+e.getPublicPath)()():new Function(e.getPublicPath)(),`${o}${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(e){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 o=(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 o?o.endsWith("/")?`${o}${t}`:`${o}/${t}`:t};function inferAutoPublicPath(e){return e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")}function generateSnapshotFromManifest(e,t={}){var o,r;const{remotes:n={},overrides:s={},version:a}=t;let i;const l=()=>"publicPath"in e.metaData?"auto"===e.metaData.publicPath&&a?inferAutoPublicPath(a):e.metaData.publicPath:e.metaData.getPublicPath,c=Object.keys(s);let u={};var p;Object.keys(n).length||(u=(null==(p=e.remotes)?void 0:p.reduce(((e,t)=>{let o;const r=t.federationContainerName;return o=c.includes(r)?s[r]:"version"in t?t.version:t.entry,e[r]={matchedVersion:o},e}),{}))||{}),Object.keys(n).forEach((e=>u[e]={matchedVersion:c.includes(e)?s[e]:n[e]}));const{remoteEntry:{path:m,name:h,type:d},types:f,buildInfo:{buildVersion:_},globalName:y,ssrRemoteEntry:g}=e.metaData,{exposes:E}=e;let b={version:a||"",buildVersion:_,globalName:y,remoteEntry:simpleJoinRemoteEntry(m,h),remoteEntryType:d,remoteTypes:simpleJoinRemoteEntry(f.path,f.name),remoteTypesZip:f.zip||"",remoteTypesAPI:f.api||"",remotesInfo:u,shared:null==e?void 0:e.shared.map((e=>({assets:e.assets,sharedName:e.name,version:e.version}))),modules:null==E?void 0:E.map((e=>({moduleName:e.name,modulePath:e.path,assets:e.assets})))};if(null==(o=e.metaData)?void 0:o.prefetchInterface){const t=e.metaData.prefetchInterface;b=(0,_polyfills_esm_js__WEBPACK_IMPORTED_MODULE_0__._)({},b,{prefetchInterface:t})}if(null==(r=e.metaData)?void 0:r.prefetchEntry){const{path:t,name:o,type:r}=e.metaData.prefetchEntry;b=(0,_polyfills_esm_js__WEBPACK_IMPORTED_MODULE_0__._)({},b,{prefetchEntry:simpleJoinRemoteEntry(t,o),prefetchEntryType:r})}if(i="publicPath"in e.metaData?(0,_polyfills_esm_js__WEBPACK_IMPORTED_MODULE_0__._)({},b,{publicPath:l(),ssrPublicPath:e.metaData.ssrPublicPath}):(0,_polyfills_esm_js__WEBPACK_IMPORTED_MODULE_0__._)({},b,{getPublicPath:l()}),g){const e=simpleJoinRemoteEntry(g.path,g.name);i.ssrRemoteEntry=e,i.ssrRemoteEntryType=g.type||"commonjs-module"}return i}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(e){return void(!t&&warn(e))}}function isStaticResourcesEqual(e,t){const o=/^(https?:)?\/\//i;return e.replace(o,"").replace(/\/$/,"")===t.replace(o,"").replace(/\/$/,"")}function createScript(e){let t,o=null,r=!0,n=2e4;const s=document.getElementsByTagName("script");for(let t=0;t<s.length;t++){const n=s[t],a=n.getAttribute("src");if(a&&isStaticResourcesEqual(a,e.url)){o=n,r=!1;break}}if(!o){const t=e.attrs;let r;o=document.createElement("script"),o.type="module"===(null==t?void 0:t.type)?"module":"text/javascript",e.createScriptHook&&(r=e.createScriptHook(e.url,e.attrs),r instanceof HTMLScriptElement?o=r:"object"==typeof r&&("script"in r&&r.script&&(o=r.script),"timeout"in r&&r.timeout&&(n=r.timeout))),o.src||(o.src=e.url),t&&!r&&Object.keys(t).forEach((e=>{o&&("async"===e||"defer"===e?o[e]=t[e]:o.getAttribute(e)||o.setAttribute(e,t[e]))}))}const a=async(r,n)=>{clearTimeout(t);const s=()=>{"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(o&&(o.onerror=null,o.onload=null,safeWrapper((()=>{const{needDeleteScript:t=!0}=e;t&&(null==o?void 0:o.parentNode)&&o.parentNode.removeChild(o)})),r&&"function"==typeof r)){const e=r(n);if(e instanceof Promise){const t=await e;return s(),t}return s(),e}s()};return o.onerror=a.bind(null,o.onerror),o.onload=a.bind(null,o.onload),t=setTimeout((()=>{a(null,new Error(`Remote script "${e.url}" time-outed.`))}),n),{script:o,needAttach:r}}function createLink(e){let t=null,o=!0;const r=document.getElementsByTagName("link");for(let n=0;n<r.length;n++){const s=r[n],a=s.getAttribute("href"),i=s.getAttribute("rel");if(a&&isStaticResourcesEqual(a,e.url)&&i===e.attrs.rel){t=s,o=!1;break}}if(!t){let o;t=document.createElement("link"),t.setAttribute("href",e.url);const r=e.attrs;e.createLinkHook&&(o=e.createLinkHook(e.url,r),o instanceof HTMLLinkElement&&(t=o)),r&&!o&&Object.keys(r).forEach((e=>{t&&!t.getAttribute(e)&&t.setAttribute(e,r[e])}))}const n=(o,r)=>{const n=()=>{"error"===(null==r?void 0:r.type)?(null==e?void 0:e.onErrorCallback)&&(null==e||e.onErrorCallback(r)):(null==e?void 0:e.cb)&&(null==e||e.cb())};if(t&&(t.onerror=null,t.onload=null,safeWrapper((()=>{const{needDeleteLink:o=!0}=e;o&&(null==t?void 0:t.parentNode)&&t.parentNode.removeChild(t)})),o)){const e=o(r);return n(),e}n()};return t.onerror=n.bind(null,t.onerror),t.onload=n.bind(null,t.onload),{link:t,needAttach:o}}function loadScript(e,t){const{attrs:o={},createScriptHook:r}=t;return new Promise(((t,n)=>{const{script:s,needAttach:a}=createScript({url:e,cb:t,onErrorCallback:n,attrs:(0,_polyfills_esm_js__WEBPACK_IMPORTED_MODULE_0__._)({fetchpriority:"high"},o),createScriptHook:r,needDeleteScript:!0});a&&document.head.appendChild(s)}))}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,o)=>{const r=await((e,t)=>o.lifecycle.fetch.emit(e,t))(e,t||{});return r&&r instanceof Response?r:("undefined"==typeof fetch?await loadNodeFetch():fetch)(e,t||{})};function createScriptNode(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,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)}))}function loadScriptNode(e,t){return new Promise(((o,r)=>{createScriptNode(e,((e,n)=>{if(e)r(e);else{var s,a;const e=(null==t||null==(s=t.attrs)?void 0:s.globalName)||`__FEDERATION_${null==t||null==(a=t.attrs)?void 0:a.name}:custom__`,r=globalThis[e]=n;o(r)}}),t.attrs,t.loaderHook)}))}async function loadModule(e,t){const{fetch:o,vm:r}=t,n=await o(e),s=await n.text(),a=new r.SourceTextModule(s,{importModuleDynamically:async(o,r)=>loadModule(new URL(o,e).href,t)});return await a.link((async o=>{const r=new URL(o,e).href;return await loadModule(r,t)})),a}function normalizeOptions(e,t,o){return function(r){if(!1===r)return!1;if(void 0===r)return!!e&&t;if(!0===r)return t;if(r&&"object"==typeof r)return(0,_polyfills_esm_js__WEBPACK_IMPORTED_MODULE_0__._)({},t,r);throw new Error(`Unexpected type for \`${o}\`, expect boolean/undefined/object, got: ${typeof r}`)}}},3419:(e,t,o)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},r.apply(this,arguments)}o.d(t,{_:()=>r})}},__webpack_module_cache__={},inProgress,dataWebpackPrefix,installedModules,moduleToHandlerMapping,chunkMapping,oldStartup,hasRun;function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var o=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}},r={id:e,module:o,factory:__webpack_modules__[e],require:__webpack_require__};return __webpack_require__.i.forEach((function(e){e(r)})),o=r.module,r.factory.call(o.exports,o,o.exports,r.require),o.loaded=!0,o.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.c=__webpack_module_cache__,__webpack_require__.i=[],__webpack_require__.x=e=>{},__webpack_require__.federation||(__webpack_require__.federation={initOptions:{name:"flowComponents",remotes:[],shareStrategy:"version-first"},chunkMatcher:function(e){return!0},rootOutputDir:"",initialConsumes:void 0,bundlerRuntimeOptions:{}}),__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var o in t)__webpack_require__.o(t,o)&&!__webpack_require__.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce(((t,o)=>(__webpack_require__.f[o](e,t),t)),[])),__webpack_require__.u=e=>e+".js",__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),inProgress={},dataWebpackPrefix="@descope/flow-components-2.0.548-1749365630536:",__webpack_require__.l=(e,t,o,r)=>{if(inProgress[e])inProgress[e].push(t);else{var n,s;if(void 0!==o)for(var a=document.getElementsByTagName("script"),i=0;i<a.length;i++){var l=a[i];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")==dataWebpackPrefix+o){n=l;break}}n||(s=!0,(n=document.createElement("script")).charset="utf-8",n.timeout=120,__webpack_require__.nc&&n.setAttribute("nonce",__webpack_require__.nc),n.setAttribute("data-webpack",dataWebpackPrefix+o),n.src=e),inProgress[e]=[t];var c=(t,o)=>{n.onerror=n.onload=null,clearTimeout(u);var r=inProgress[e];if(delete inProgress[e],n.parentNode&&n.parentNode.removeChild(n),r&&r.forEach((e=>e(o))),t)return t(o)},u=setTimeout(c.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=c.bind(null,n.onerror),n.onload=c.bind(null,n.onload),s&&document.head.appendChild(n)}},__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{__webpack_require__.S={};var e={},t={};__webpack_require__.I=(o,r)=>{r||(r=[]);var n=t[o];if(n||(n=t[o]={}),!(r.indexOf(n)>=0)){if(r.push(n),e[o])return e[o];__webpack_require__.o(__webpack_require__.S,o)||(__webpack_require__.S[o]={}),__webpack_require__.S[o];var s=[];return e[o]=s.length?Promise.all(s).then((()=>e[o]=1)):1}}})(),(()=>{__webpack_require__.federation.initOptions.shared={},__webpack_require__.S={};var e={},t={};__webpack_require__.I=(o,r)=>__webpack_require__.federation.bundlerRuntime.I({shareScopeName:o,webpackRequire:__webpack_require__,initPromises:e,initTokens:t,initScope:r})})(),(()=>{var e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var t=__webpack_require__.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");if(o.length)for(var r=o.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=o[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e})(),installedModules={},moduleToHandlerMapping={7596:{getter:()=>()=>{throw new Error("Can not get 'react'")},shareInfo:{shareConfig:{fixedDependencies:!1,requiredVersion:">= 18",strictVersion:!1,singleton:!0,eager:!1},scope:["default"]},shareKey:"react"}},chunkMapping={485:[7596]},__webpack_require__.f.consumes=(e,t)=>{__webpack_require__.federation.bundlerRuntime.consumes({chunkMapping,installedModules,chunkId:e,moduleToHandlerMapping,promises:t,webpackRequire:__webpack_require__})},oldStartup=__webpack_require__.x,hasRun=!1,__webpack_require__.x=()=>(hasRun||(hasRun=!0,__webpack_require__(6927)),oldStartup()),(()=>{var e={792:0};__webpack_require__.f.j=(t,o)=>{var r=__webpack_require__.o(e,t)?e[t]:void 0;if(0!==r)if(r)o.push(r[2]);else{var n=new Promise(((o,n)=>r=e[t]=[o,n]));o.push(r[2]=n);var s=__webpack_require__.p+__webpack_require__.u(t),a=new Error;__webpack_require__.l(s,(o=>{if(__webpack_require__.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var n=o&&("load"===o.type?"missing":o.type),s=o&&o.target&&o.target.src;a.message="Loading chunk "+t+" failed.\n("+n+": "+s+")",a.name="ChunkLoadError",a.type=n,a.request=s,r[1](a)}}),"chunk-"+t,t)}};var t=(t,o)=>{var r,n,[s,a,i]=o,l=0;if(s.some((t=>0!==e[t]))){for(r in a)__webpack_require__.o(a,r)&&(__webpack_require__.m[r]=a[r]);i&&i(__webpack_require__)}for(t&&t(o);l<s.length;l++)n=s[l],__webpack_require__.o(e,n)&&e[n]&&e[n][0](),e[n]=0},o=self.webpackChunk_descope_flow_components_2_0_548_1749365630536=self.webpackChunk_descope_flow_components_2_0_548_1749365630536||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})(),__webpack_require__.x();var __webpack_exports__=__webpack_require__(3723)})();
@@ -5,7 +5,7 @@
5
5
  "name": "flowComponents",
6
6
  "type": "app",
7
7
  "buildInfo": {
8
- "buildVersion": "2.0.546",
8
+ "buildVersion": "2.0.548",
9
9
  "buildName": "@descope/flow-components"
10
10
  },
11
11
  "remoteEntry": {
@@ -5,7 +5,7 @@
5
5
  "name": "flowComponents",
6
6
  "type": "app",
7
7
  "buildInfo": {
8
- "buildVersion": "2.0.546",
8
+ "buildVersion": "2.0.548",
9
9
  "buildName": "@descope/flow-components"
10
10
  },
11
11
  "remoteEntry": {
package/dist/index.cjs.js CHANGED
@@ -92063,9 +92063,10 @@ descope-boolean-field-internal {
92063
92063
 
92064
92064
  const isBase64Svg = (src) => src.startsWith(base64Prefix);
92065
92065
 
92066
- const createImgEle = (src) => {
92066
+ const createImgEle = (src, altText) => {
92067
92067
  const ele = document.createElement('img');
92068
92068
  ele.setAttribute('src', src);
92069
+ ele.setAttribute('alt', altText);
92069
92070
  return ele;
92070
92071
  };
92071
92072
 
@@ -92082,7 +92083,7 @@ descope-boolean-field-internal {
92082
92083
  return ele;
92083
92084
  };
92084
92085
 
92085
- const createImage = async (src) => {
92086
+ const createImage = async (src, altText) => {
92086
92087
  try {
92087
92088
  let ele;
92088
92089
  if (isBase64Svg(src)) {
@@ -92096,7 +92097,7 @@ descope-boolean-field-internal {
92096
92097
  ele = createSvgEle(text);
92097
92098
  } else {
92098
92099
  // handle binary
92099
- ele = createImgEle(src);
92100
+ ele = createImgEle(src, altText);
92100
92101
  }
92101
92102
 
92102
92103
  ele.style.setProperty('max-width', '100%');
@@ -92171,6 +92172,10 @@ descope-boolean-field-internal {
92171
92172
  }
92172
92173
  }
92173
92174
 
92175
+ get altText() {
92176
+ return this.getAttribute('alt') || '';
92177
+ }
92178
+
92174
92179
  get legacySrc() {
92175
92180
  return this.getAttribute('src');
92176
92181
  }
@@ -92201,7 +92206,7 @@ descope-boolean-field-internal {
92201
92206
  renderImage() {
92202
92207
  this.toggleVisibility(this.src);
92203
92208
 
92204
- createImage(this.src).then((res) => {
92209
+ createImage(this.src, this.altText).then((res) => {
92205
92210
  this.innerHTML = '';
92206
92211
  if (res) {
92207
92212
  this.updateFillColor(res);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/flow-components",
3
- "version": "2.0.546",
3
+ "version": "2.0.548",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -72,7 +72,7 @@
72
72
  "eslint-config-airbnb-typescript": "18.0.0",
73
73
  "eslint-config-prettier": "10.1.5",
74
74
  "eslint-config-standard": "17.1.0",
75
- "eslint-import-resolver-typescript": "4.3.4",
75
+ "eslint-import-resolver-typescript": "4.3.5",
76
76
  "eslint-plugin-import": "2.31.0",
77
77
  "eslint-plugin-jest": "28.11.0",
78
78
  "eslint-plugin-jest-dom": "5.5.0",
@@ -112,7 +112,7 @@
112
112
  "webpack-dev-server": "5.2.1"
113
113
  },
114
114
  "dependencies": {
115
- "@descope/web-components-ui": "1.87.0"
115
+ "@descope/web-components-ui": "1.88.0"
116
116
  },
117
117
  "peerDependencies": {
118
118
  "react": ">= 18"