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2C,EAAQ3C,EAAOM,GACrB,IAAIsC,EAEAA,EADiB,iBAAVD,EACC,CACJ1B,YAAa0B,EACb5B,KAAM,UAIF,IACD4B,EACH5B,KAAM4B,EAAM5B,MAAQ,UAG5BqB,EAAO9B,GAAOsC,CACjB,CACD,OAAOR,CACV,UACcM,iEAAf,YACI,MAAMG,EAAW,GACjB,QAASvC,KAAON,EAAQ,CACpB,MAAM4C,EAAQ5C,EAAOM,GAEjBuC,EAASC,KAAKnC,EADC,WAAfiC,EAAM7B,KACwB,CAAEA,KAAM,SAAUE,YAAa2B,EAAM3B,aAGrC,CAC1BF,KAAM,SACNE,YAAa2B,EAAM3B,YACnBJ,WAAYP,IAGvB,OACKa,QAAQ4B,IAAIF,EACrB,4CCxKD,0BACA,IACA,cACAF,SAIA,CAHA,MAAIK,GAEJ,YADAzB,IAEA,CAEA0B,OACA7B,KAEAD,4BAEA,CAEe,cACf,kBACA,WACA+B,YACA,iCACA,mBAEA,cACAC,qBACA,CAEA,cACAA,sBACA,CAEAC,SACA,EACA,CACA","names":["config","containerMap","remoteMap","isDefaultScopeInitialized","initRemote","container","key","__webpack_init_sharing__","init","__webpack_share_scopes__","default","loadRemoteEntry","remoteEntryOrOptions","remoteName","loadRemoteScriptEntry","type","options","remoteEntry","loadRemoteModuleEntry","Promise","resolve","import","then","reject","script","document","createElement","src","onerror","onload","window","body","appendChild","loadManifest","configFile","skipRemoteEntries","result","fetch","ok","Error","parseConfig","json","loadRemoteEntries","value","entry","promises","push","all","error","info","args","asyncGeneratorStep","_next"],"sourceRoot":"webpack:///","sources":["./node_modules/@angular-architects/module-federation/node_modules/@angular-architects/module-federation-runtime/fesm2020/angular-architects-module-federation-runtime.mjs","./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"],"sourcesContent":["let config = {};\r\nconst containerMap = {};\r\nconst remoteMap = {};\r\nlet isDefaultScopeInitialized = false;\r\nasync function lookupExposedModule(key, exposedModule) {\r\n const container = containerMap[key];\r\n const factory = await container.get(exposedModule);\r\n const Module = factory();\r\n return Module;\r\n}\r\nasync function initRemote(container, key) {\r\n // const container = window[key] as Container;\r\n // Do we still need to initialize the remote?\r\n if (remoteMap[key]) {\r\n return container;\r\n }\r\n // Do we still need to initialize the share scope?\r\n if (!isDefaultScopeInitialized) {\r\n await __webpack_init_sharing__('default');\r\n isDefaultScopeInitialized = true;\r\n }\r\n await container.init(__webpack_share_scopes__.default);\r\n remoteMap[key] = true;\r\n return container;\r\n}\r\nasync function loadRemoteEntry(remoteEntryOrOptions, remoteName) {\r\n if (typeof remoteEntryOrOptions === 'string') {\r\n const remoteEntry = remoteEntryOrOptions;\r\n return await loadRemoteScriptEntry(remoteEntry, remoteName);\r\n }\r\n else if (remoteEntryOrOptions.type === 'script') {\r\n const options = remoteEntryOrOptions;\r\n return await loadRemoteScriptEntry(options.remoteEntry, options.remoteName);\r\n }\r\n else if (remoteEntryOrOptions.type === 'module') {\r\n const options = remoteEntryOrOptions;\r\n await loadRemoteModuleEntry(options.remoteEntry);\r\n }\r\n}\r\nasync function loadRemoteModuleEntry(remoteEntry) {\r\n if (containerMap[remoteEntry]) {\r\n return Promise.resolve();\r\n }\r\n return await import(/* webpackIgnore:true */ remoteEntry).then((container) => {\r\n initRemote(container, remoteEntry);\r\n containerMap[remoteEntry] = container;\r\n });\r\n}\r\nasync function loadRemoteScriptEntry(remoteEntry, remoteName) {\r\n return new Promise((resolve, reject) => {\r\n // Is remoteEntry already loaded?\r\n if (containerMap[remoteName]) {\r\n resolve();\r\n return;\r\n }\r\n const script = document.createElement('script');\r\n script.src = remoteEntry;\r\n script.onerror = reject;\r\n script.onload = () => {\r\n const container = window[remoteName];\r\n initRemote(container, remoteName);\r\n containerMap[remoteName] = container;\r\n resolve();\r\n };\r\n document.body.appendChild(script);\r\n });\r\n}\r\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\r\nasync function loadRemoteModule(options) {\r\n let loadRemoteEntryOptions;\r\n let key;\r\n let remoteEntry;\r\n // To support legacy API (< ng 13)\r\n if (!options.type) {\r\n options.type = 'script';\r\n }\r\n if (options.type === 'manifest') {\r\n const manifestEntry = config[options.remoteName];\r\n if (!manifestEntry) {\r\n throw new Error('Manifest does not contain ' + options.remoteName);\r\n }\r\n options = {\r\n type: manifestEntry.type,\r\n exposedModule: options.exposedModule,\r\n remoteEntry: manifestEntry.remoteEntry,\r\n remoteName: manifestEntry.type === 'script' ? options.remoteName : undefined,\r\n };\r\n remoteEntry = manifestEntry.remoteEntry;\r\n }\r\n else {\r\n remoteEntry = options.remoteEntry;\r\n }\r\n if (options.type === 'script') {\r\n loadRemoteEntryOptions = {\r\n type: 'script',\r\n remoteEntry: options.remoteEntry,\r\n remoteName: options.remoteName,\r\n };\r\n key = options.remoteName;\r\n }\r\n else if (options.type === 'module') {\r\n loadRemoteEntryOptions = {\r\n type: 'module',\r\n remoteEntry: options.remoteEntry,\r\n };\r\n key = options.remoteEntry;\r\n }\r\n if (remoteEntry) {\r\n await loadRemoteEntry(loadRemoteEntryOptions);\r\n }\r\n return await lookupExposedModule(key, options.exposedModule);\r\n}\r\nasync function setManifest(manifest, skipRemoteEntries = false) {\r\n config = parseConfig(manifest);\r\n if (!skipRemoteEntries) {\r\n await loadRemoteEntries();\r\n }\r\n}\r\nfunction getManifest() {\r\n return config;\r\n}\r\nasync function loadManifest(configFile, skipRemoteEntries = false) {\r\n const result = await fetch(configFile);\r\n if (!result.ok) {\r\n throw Error('could not load configFile: ' + configFile);\r\n }\r\n config = parseConfig(await result.json());\r\n if (!skipRemoteEntries) {\r\n await loadRemoteEntries();\r\n }\r\n}\r\nfunction parseConfig(config) {\r\n const result = {};\r\n for (let key in config) {\r\n const value = config[key];\r\n let entry;\r\n if (typeof value === 'string') {\r\n entry = {\r\n remoteEntry: value,\r\n type: 'module',\r\n };\r\n }\r\n else {\r\n entry = {\r\n ...value,\r\n type: value.type || 'module',\r\n };\r\n }\r\n result[key] = entry;\r\n }\r\n return result;\r\n}\r\nasync function loadRemoteEntries() {\r\n const promises = [];\r\n for (let key in config) {\r\n const entry = config[key];\r\n if (entry.type === 'module') {\r\n promises.push(loadRemoteEntry({ type: 'module', remoteEntry: entry.remoteEntry }));\r\n }\r\n else {\r\n promises.push(loadRemoteEntry({\r\n type: 'script',\r\n remoteEntry: entry.remoteEntry,\r\n remoteName: key,\r\n }));\r\n }\r\n }\r\n await Promise.all(promises);\r\n}\n\n/**\r\n * Generated bundle index. Do not edit.\r\n */\n\nexport { getManifest, loadManifest, loadRemoteEntry, loadRemoteModule, setManifest };\n","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\n\nexport default function _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n\n _next(undefined);\n });\n };\n}"],"x_google_ignoreList":[0,1]}