@airporting/integrations-app 0.4.82 → 0.4.84

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.
@@ -1,5 +1,5 @@
1
1
  var integrations_app;(()=>{"use strict";var __webpack_modules__={4657:function(__unused_webpack_module,exports){const RUNTIME_001="RUNTIME-001";const RUNTIME_002="RUNTIME-002";const RUNTIME_003="RUNTIME-003";const RUNTIME_004="RUNTIME-004";const RUNTIME_005="RUNTIME-005";const RUNTIME_006="RUNTIME-006";const RUNTIME_007="RUNTIME-007";const RUNTIME_008="RUNTIME-008";const RUNTIME_009="RUNTIME-009";const TYPE_001="TYPE-001";const BUILD_001="BUILD-001";const BUILD_002="BUILD-002";const getDocsUrl=errorCode=>{const type=errorCode.split("-")[0].toLowerCase();return`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${type}/${errorCode}`};const getShortErrorMsg=(errorCode,errorDescMap,args,originalErrorMsg)=>{const msg=[`${[errorDescMap[errorCode]]} #${errorCode}`];args&&msg.push(`args: ${JSON.stringify(args)}`);msg.push(getDocsUrl(errorCode));originalErrorMsg&&msg.push(`Original Error Message:
2
- ${originalErrorMsg}`);return msg.join("\n")};function _extends(){_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)if(Object.prototype.hasOwnProperty.call(source,key))target[key]=source[key]}return target};return _extends.apply(this,arguments)}const runtimeDescMap={[RUNTIME_001]:"Failed to get remoteEntry exports.",[RUNTIME_002]:'The remote entry interface does not contain "init"',[RUNTIME_003]:"Failed to get manifest.",[RUNTIME_004]:"Failed to locate remote.",[RUNTIME_005]:"Invalid loadShareSync function call from bundler runtime",[RUNTIME_006]:"Invalid loadShareSync function call from runtime",[RUNTIME_007]:"Failed to get remote snapshot.",[RUNTIME_008]:"Failed to load script resources.",[RUNTIME_009]:"Please call createInstance first."};const typeDescMap={[TYPE_001]:"Failed to generate type declaration. Execute the below cmd to reproduce and fix the error."};const buildDescMap={[BUILD_001]:"Failed to find expose module.",[BUILD_002]:"PublicPath is required in prod mode."};const errorDescMap=_extends({},runtimeDescMap,typeDescMap,buildDescMap);exports.BUILD_001=BUILD_001;exports.BUILD_002=BUILD_002;exports.RUNTIME_001=RUNTIME_001;exports.RUNTIME_002=RUNTIME_002;exports.RUNTIME_003=RUNTIME_003;exports.RUNTIME_004=RUNTIME_004;exports.RUNTIME_005=RUNTIME_005;exports.RUNTIME_006=RUNTIME_006;exports.RUNTIME_007=RUNTIME_007;exports.RUNTIME_008=RUNTIME_008;exports.RUNTIME_009=RUNTIME_009;exports.TYPE_001=TYPE_001;exports.buildDescMap=buildDescMap;exports.errorDescMap=errorDescMap;exports.getShortErrorMsg=getShortErrorMsg;exports.runtimeDescMap=runtimeDescMap;exports.typeDescMap=typeDescMap},4204:function(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__){var _home_runner_work_integrations_app_v2_integrations_app_v2_node_modules_module_federation_webpack_bundler_runtime_dist_index_cjs_cjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7161);var _home_runner_work_integrations_app_v2_integrations_app_v2_node_modules_module_federation_webpack_bundler_runtime_dist_index_cjs_cjs__WEBPACK_IMPORTED_MODULE_0___default=/*#__PURE__*/__webpack_require__.n(_home_runner_work_integrations_app_v2_integrations_app_v2_node_modules_module_federation_webpack_bundler_runtime_dist_index_cjs_cjs__WEBPACK_IMPORTED_MODULE_0__);const __module_federation_runtime_plugins__=[];const __module_federation_remote_infos__={};const __module_federation_container_name__="integrations_app";const __module_federation_share_strategy__="version-first";if((__webpack_require__.initializeSharingData||__webpack_require__.initializeExposesData)&&__webpack_require__.federation){var __webpack_require___remotesLoadingData,__webpack_require___remotesLoadingData1,__webpack_require___initializeSharingData,__webpack_require___consumesLoadingData,__webpack_require___consumesLoadingData1,__webpack_require___initializeExposesData,__webpack_require___consumesLoadingData2;const override=(obj,key,value)=>{if(!obj)return;if(obj[key])obj[key]=value};const merge=(obj,key,fn)=>{const value=fn();if(Array.isArray(value)){var _obj,_key;var _;null!=(_=(_obj=obj)[_key=key])||(_obj[_key]=[]);obj[key].push(...value)}else if("object"==typeof value&&null!==value){var _obj1,_key1;var _1;null!=(_1=(_obj1=obj)[_key1=key])||(_obj1[_key1]={});Object.assign(obj[key],value)}};const early=(obj,key,initial)=>{var _obj,_key;var _;null!=(_=(_obj=obj)[_key=key])||(_obj[_key]=initial())};var __webpack_require___remotesLoadingData_chunkMapping;const remotesLoadingChunkMapping=null!=(__webpack_require___remotesLoadingData_chunkMapping=null==(__webpack_require___remotesLoadingData=__webpack_require__.remotesLoadingData)?void 0:__webpack_require___remotesLoadingData.chunkMapping)?__webpack_require___remotesLoadingData_chunkMapping:{};var __webpack_require___remotesLoadingData_moduleIdToRemoteDataMapping;const remotesLoadingModuleIdToRemoteDataMapping=null!=(__webpack_require___remotesLoadingData_moduleIdToRemoteDataMapping=null==(__webpack_require___remotesLoadingData1=__webpack_require__.remotesLoadingData)?void 0:__webpack_require___remotesLoadingData1.moduleIdToRemoteDataMapping)?__webpack_require___remotesLoadingData_moduleIdToRemoteDataMapping:{};var __webpack_require___initializeSharingData_scopeToSharingDataMapping;const initializeSharingScopeToInitDataMapping=null!=(__webpack_require___initializeSharingData_scopeToSharingDataMapping=null==(__webpack_require___initializeSharingData=__webpack_require__.initializeSharingData)?void 0:__webpack_require___initializeSharingData.scopeToSharingDataMapping)?__webpack_require___initializeSharingData_scopeToSharingDataMapping:{};var __webpack_require___consumesLoadingData_chunkMapping;const consumesLoadingChunkMapping=null!=(__webpack_require___consumesLoadingData_chunkMapping=null==(__webpack_require___consumesLoadingData=__webpack_require__.consumesLoadingData)?void 0:__webpack_require___consumesLoadingData.chunkMapping)?__webpack_require___consumesLoadingData_chunkMapping:{};var __webpack_require___consumesLoadingData_moduleIdToConsumeDataMapping;const consumesLoadingModuleToConsumeDataMapping=null!=(__webpack_require___consumesLoadingData_moduleIdToConsumeDataMapping=null==(__webpack_require___consumesLoadingData1=__webpack_require__.consumesLoadingData)?void 0:__webpack_require___consumesLoadingData1.moduleIdToConsumeDataMapping)?__webpack_require___consumesLoadingData_moduleIdToConsumeDataMapping:{};const consumesLoadinginstalledModules={};const initializeSharingInitPromises=[];const initializeSharingInitTokens={};const containerShareScope=null==(__webpack_require___initializeExposesData=__webpack_require__.initializeExposesData)?void 0:__webpack_require___initializeExposesData.shareScope;for(const key in _home_runner_work_integrations_app_v2_integrations_app_v2_node_modules_module_federation_webpack_bundler_runtime_dist_index_cjs_cjs__WEBPACK_IMPORTED_MODULE_0___default())__webpack_require__.federation[key]=_home_runner_work_integrations_app_v2_integrations_app_v2_node_modules_module_federation_webpack_bundler_runtime_dist_index_cjs_cjs__WEBPACK_IMPORTED_MODULE_0___default()[key];early(__webpack_require__.federation,"consumesLoadingModuleToHandlerMapping",()=>{const consumesLoadingModuleToHandlerMapping={};for(let[moduleId,data]of Object.entries(consumesLoadingModuleToConsumeDataMapping))consumesLoadingModuleToHandlerMapping[moduleId]={getter:data.fallback,shareInfo:{shareConfig:{fixedDependencies:false,requiredVersion:data.requiredVersion,strictVersion:data.strictVersion,singleton:data.singleton,eager:data.eager},scope:[data.shareScope]},shareKey:data.shareKey};return consumesLoadingModuleToHandlerMapping});early(__webpack_require__.federation,"initOptions",()=>({}));early(__webpack_require__.federation.initOptions,"name",()=>__module_federation_container_name__);early(__webpack_require__.federation.initOptions,"shareStrategy",()=>__module_federation_share_strategy__);early(__webpack_require__.federation.initOptions,"shared",()=>{const shared={};for(let[scope,stages]of Object.entries(initializeSharingScopeToInitDataMapping))for(let stage of stages)if("object"==typeof stage&&null!==stage){const{name,version,factory,eager,singleton,requiredVersion,strictVersion}=stage;const shareConfig={};const isValidValue=function(val){return void 0!==val};if(isValidValue(singleton))shareConfig.singleton=singleton;if(isValidValue(requiredVersion))shareConfig.requiredVersion=requiredVersion;if(isValidValue(eager))shareConfig.eager=eager;if(isValidValue(strictVersion))shareConfig.strictVersion=strictVersion;const options={version,scope:[scope],shareConfig,get:factory};if(shared[name])shared[name].push(options);else shared[name]=[options]}return shared});merge(__webpack_require__.federation.initOptions,"remotes",()=>Object.values(__module_federation_remote_infos__).flat().filter(remote=>"script"===remote.externalType));merge(__webpack_require__.federation.initOptions,"plugins",()=>__module_federation_runtime_plugins__);early(__webpack_require__.federation,"bundlerRuntimeOptions",()=>({}));early(__webpack_require__.federation.bundlerRuntimeOptions,"remotes",()=>({}));early(__webpack_require__.federation.bundlerRuntimeOptions.remotes,"chunkMapping",()=>remotesLoadingChunkMapping);early(__webpack_require__.federation.bundlerRuntimeOptions.remotes,"remoteInfos",()=>__module_federation_remote_infos__);early(__webpack_require__.federation.bundlerRuntimeOptions.remotes,"idToExternalAndNameMapping",()=>{const remotesLoadingIdToExternalAndNameMappingMapping={};for(let[moduleId,data]of Object.entries(remotesLoadingModuleIdToRemoteDataMapping))remotesLoadingIdToExternalAndNameMappingMapping[moduleId]=[data.shareScope,data.name,data.externalModuleId,data.remoteName];return remotesLoadingIdToExternalAndNameMappingMapping});early(__webpack_require__.federation.bundlerRuntimeOptions.remotes,"webpackRequire",()=>__webpack_require__);merge(__webpack_require__.federation.bundlerRuntimeOptions.remotes,"idToRemoteMap",()=>{const idToRemoteMap={};for(let[id,remoteData]of Object.entries(remotesLoadingModuleIdToRemoteDataMapping)){const info=__module_federation_remote_infos__[remoteData.remoteName];if(info)idToRemoteMap[id]=info}return idToRemoteMap});override(__webpack_require__,"S",__webpack_require__.federation.bundlerRuntime.S);if(__webpack_require__.federation.attachShareScopeMap)__webpack_require__.federation.attachShareScopeMap(__webpack_require__);override(__webpack_require__.f,"remotes",(chunkId,promises)=>__webpack_require__.federation.bundlerRuntime.remotes({chunkId,promises,chunkMapping:remotesLoadingChunkMapping,idToExternalAndNameMapping:__webpack_require__.federation.bundlerRuntimeOptions.remotes.idToExternalAndNameMapping,idToRemoteMap:__webpack_require__.federation.bundlerRuntimeOptions.remotes.idToRemoteMap,webpackRequire:__webpack_require__}));override(__webpack_require__.f,"consumes",(chunkId,promises)=>__webpack_require__.federation.bundlerRuntime.consumes({chunkId,promises,chunkMapping:consumesLoadingChunkMapping,moduleToHandlerMapping:__webpack_require__.federation.consumesLoadingModuleToHandlerMapping,installedModules:consumesLoadinginstalledModules,webpackRequire:__webpack_require__}));override(__webpack_require__,"I",(name,initScope)=>__webpack_require__.federation.bundlerRuntime.I({shareScopeName:name,initScope,initPromises:initializeSharingInitPromises,initTokens:initializeSharingInitTokens,webpackRequire:__webpack_require__}));override(__webpack_require__,"initContainer",(shareScope,initScope,remoteEntryInitOptions)=>__webpack_require__.federation.bundlerRuntime.initContainerEntry({shareScope,initScope,remoteEntryInitOptions,shareScopeKey:containerShareScope,webpackRequire:__webpack_require__}));override(__webpack_require__,"getContainer",(module1,getScope)=>{var moduleMap=__webpack_require__.initializeExposesData.moduleMap;__webpack_require__.R=getScope;getScope=Object.prototype.hasOwnProperty.call(moduleMap,module1)?moduleMap[module1]():Promise.resolve().then(()=>{throw new Error('Module "'+module1+'" does not exist in container.')});__webpack_require__.R=void 0;return getScope});__webpack_require__.federation.instance=__webpack_require__.federation.runtime.init(__webpack_require__.federation.initOptions);if(null==(__webpack_require___consumesLoadingData2=__webpack_require__.consumesLoadingData)?void 0:__webpack_require___consumesLoadingData2.initialConsumes)__webpack_require__.federation.bundlerRuntime.installInitialConsumes({webpackRequire:__webpack_require__,installedModules:consumesLoadinginstalledModules,initialConsumes:__webpack_require__.consumesLoadingData.initialConsumes,moduleToHandlerMapping:__webpack_require__.federation.consumesLoadingModuleToHandlerMapping})}},2339:function(__unused_webpack_module,exports,__webpack_require__){__webpack_require__.d(exports,{get:()=>__webpack_require__.getContainer,init:()=>__webpack_require__.initContainer})},3912:function(__unused_webpack_module,exports,__webpack_require__){var polyfills=__webpack_require__(9284);var sdk=__webpack_require__(6492);var errorCodes=__webpack_require__(4657);const LOG_CATEGORY="[ Federation Runtime ]";const logger=sdk.createLogger(LOG_CATEGORY);function assert(condition,msg){if(!condition)error(msg)}function error(msg){if(msg instanceof Error){if(!msg.message.startsWith(LOG_CATEGORY))msg.message=`${LOG_CATEGORY}: ${msg.message}`;throw msg}throw new Error(`${LOG_CATEGORY}: ${msg}`)}function warn(msg){if(msg instanceof Error){if(!msg.message.startsWith(LOG_CATEGORY))msg.message=`${LOG_CATEGORY}: ${msg.message}`;logger.warn(msg)}else logger.warn(msg)}function addUniqueItem(arr,item){if(-1===arr.findIndex(name=>name===item))arr.push(item);return arr}function getFMId(remoteInfo){if("version"in remoteInfo&&remoteInfo.version)return`${remoteInfo.name}:${remoteInfo.version}`;if("entry"in remoteInfo&&remoteInfo.entry)return`${remoteInfo.name}:${remoteInfo.entry}`;return`${remoteInfo.name}`}function isRemoteInfoWithEntry(remote){return void 0!==remote.entry}function isPureRemoteEntry(remote){return!remote.entry.includes(".json")}async function safeWrapper(callback,disableWarn){try{const res=await callback();return res}catch(e){disableWarn||warn(e);return}}function isObject(val){return val&&"object"==typeof val}const objectToString=Object.prototype.toString;function isPlainObject(val){return"[object Object]"===objectToString.call(val)}function isStaticResourcesEqual(url1,url2){const REG_EXP=/^(https?:)?\/\//i;const relativeUrl1=url1.replace(REG_EXP,"").replace(/\/$/,"");const relativeUrl2=url2.replace(REG_EXP,"").replace(/\/$/,"");return relativeUrl1===relativeUrl2}function arrayOptions(options){return Array.isArray(options)?options:[options]}function getRemoteEntryInfoFromSnapshot(snapshot){const defaultRemoteEntryInfo={url:"",type:"global",globalName:""};if(sdk.isBrowserEnv()||sdk.isReactNativeEnv())return"remoteEntry"in snapshot?{url:snapshot.remoteEntry,type:snapshot.remoteEntryType,globalName:snapshot.globalName}:defaultRemoteEntryInfo;if("ssrRemoteEntry"in snapshot)return{url:snapshot.ssrRemoteEntry||defaultRemoteEntryInfo.url,type:snapshot.ssrRemoteEntryType||defaultRemoteEntryInfo.type,globalName:snapshot.globalName};return defaultRemoteEntryInfo}const processModuleAlias=(name,subPath)=>{let moduleName;moduleName=name.endsWith("/")?name.slice(0,-1):name;if(subPath.startsWith("."))subPath=subPath.slice(1);moduleName+=subPath;return moduleName};const CurrentGlobal="object"==typeof globalThis?globalThis:window;const nativeGlobal=(()=>{try{return document.defaultView}catch(e){return CurrentGlobal}})();const Global=nativeGlobal;function definePropertyGlobalVal(target,key,val){Object.defineProperty(target,key,{value:val,configurable:false,writable:true})}function includeOwnProperty(target,key){return Object.hasOwnProperty.call(target,key)}if(!includeOwnProperty(CurrentGlobal,"__GLOBAL_LOADING_REMOTE_ENTRY__"))definePropertyGlobalVal(CurrentGlobal,"__GLOBAL_LOADING_REMOTE_ENTRY__",{});const globalLoading=CurrentGlobal.__GLOBAL_LOADING_REMOTE_ENTRY__;function setGlobalDefaultVal(target){var _target___FEDERATION__,_target___FEDERATION__1,_target___FEDERATION__2,_target___FEDERATION__3,_target___FEDERATION__4,_target___FEDERATION__5;if(includeOwnProperty(target,"__VMOK__")&&!includeOwnProperty(target,"__FEDERATION__"))definePropertyGlobalVal(target,"__FEDERATION__",target.__VMOK__);if(!includeOwnProperty(target,"__FEDERATION__")){definePropertyGlobalVal(target,"__FEDERATION__",{__GLOBAL_PLUGIN__:[],__INSTANCES__:[],moduleInfo:{},__SHARE__:{},__MANIFEST_LOADING__:{},__PRELOADED_MAP__:new Map});definePropertyGlobalVal(target,"__VMOK__",target.__FEDERATION__)}var ___GLOBAL_PLUGIN__;null!=(___GLOBAL_PLUGIN__=(_target___FEDERATION__=target.__FEDERATION__).__GLOBAL_PLUGIN__)||(_target___FEDERATION__.__GLOBAL_PLUGIN__=[]);var ___INSTANCES__;null!=(___INSTANCES__=(_target___FEDERATION__1=target.__FEDERATION__).__INSTANCES__)||(_target___FEDERATION__1.__INSTANCES__=[]);var _moduleInfo;null!=(_moduleInfo=(_target___FEDERATION__2=target.__FEDERATION__).moduleInfo)||(_target___FEDERATION__2.moduleInfo={});var ___SHARE__;null!=(___SHARE__=(_target___FEDERATION__3=target.__FEDERATION__).__SHARE__)||(_target___FEDERATION__3.__SHARE__={});var ___MANIFEST_LOADING__;null!=(___MANIFEST_LOADING__=(_target___FEDERATION__4=target.__FEDERATION__).__MANIFEST_LOADING__)||(_target___FEDERATION__4.__MANIFEST_LOADING__={});var ___PRELOADED_MAP__;null!=(___PRELOADED_MAP__=(_target___FEDERATION__5=target.__FEDERATION__).__PRELOADED_MAP__)||(_target___FEDERATION__5.__PRELOADED_MAP__=new Map)}setGlobalDefaultVal(CurrentGlobal);setGlobalDefaultVal(nativeGlobal);function resetFederationGlobalInfo(){CurrentGlobal.__FEDERATION__.__GLOBAL_PLUGIN__=[];CurrentGlobal.__FEDERATION__.__INSTANCES__=[];CurrentGlobal.__FEDERATION__.moduleInfo={};CurrentGlobal.__FEDERATION__.__SHARE__={};CurrentGlobal.__FEDERATION__.__MANIFEST_LOADING__={};Object.keys(globalLoading).forEach(key=>{delete globalLoading[key]})}function setGlobalFederationInstance(FederationInstance){CurrentGlobal.__FEDERATION__.__INSTANCES__.push(FederationInstance)}function getGlobalFederationConstructor(){return CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR__}function setGlobalFederationConstructor(FederationConstructor,isDebug=sdk.isDebugMode()){if(isDebug){CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR__=FederationConstructor;CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__="0.17.1"}}function getInfoWithoutType(target,key){if("string"==typeof key){const keyRes=target[key];if(keyRes)return{value:target[key],key:key};{const targetKeys=Object.keys(target);for(const targetKey of targetKeys){const[targetTypeOrName,_]=targetKey.split(":");const nKey=`${targetTypeOrName}:${key}`;const typeWithKeyRes=target[nKey];if(typeWithKeyRes)return{value:typeWithKeyRes,key:nKey}}return{value:void 0,key:key}}}throw new Error("key must be string")}const getGlobalSnapshot=()=>nativeGlobal.__FEDERATION__.moduleInfo;const getTargetSnapshotInfoByModuleInfo=(moduleInfo,snapshot)=>{const moduleKey=getFMId(moduleInfo);const getModuleInfo=getInfoWithoutType(snapshot,moduleKey).value;if(getModuleInfo&&!getModuleInfo.version&&"version"in moduleInfo&&moduleInfo["version"])getModuleInfo.version=moduleInfo["version"];if(getModuleInfo)return getModuleInfo;if("version"in moduleInfo&&moduleInfo["version"]){const{version}=moduleInfo,resModuleInfo=polyfills._object_without_properties_loose(moduleInfo,["version"]);const moduleKeyWithoutVersion=getFMId(resModuleInfo);const getModuleInfoWithoutVersion=getInfoWithoutType(nativeGlobal.__FEDERATION__.moduleInfo,moduleKeyWithoutVersion).value;if((null==getModuleInfoWithoutVersion?void 0:getModuleInfoWithoutVersion.version)===version)return getModuleInfoWithoutVersion}};const getGlobalSnapshotInfoByModuleInfo=moduleInfo=>getTargetSnapshotInfoByModuleInfo(moduleInfo,nativeGlobal.__FEDERATION__.moduleInfo);const setGlobalSnapshotInfoByModuleInfo=(remoteInfo,moduleDetailInfo)=>{const moduleKey=getFMId(remoteInfo);nativeGlobal.__FEDERATION__.moduleInfo[moduleKey]=moduleDetailInfo;return nativeGlobal.__FEDERATION__.moduleInfo};const addGlobalSnapshot=moduleInfos=>{nativeGlobal.__FEDERATION__.moduleInfo=polyfills._extends({},nativeGlobal.__FEDERATION__.moduleInfo,moduleInfos);return()=>{const keys=Object.keys(moduleInfos);for(const key of keys)delete nativeGlobal.__FEDERATION__.moduleInfo[key]}};const getRemoteEntryExports=(name,globalName)=>{const remoteEntryKey=globalName||`__FEDERATION_${name}:custom__`;const entryExports=CurrentGlobal[remoteEntryKey];return{remoteEntryKey,entryExports}};const registerGlobalPlugins=plugins=>{const{__GLOBAL_PLUGIN__}=nativeGlobal.__FEDERATION__;plugins.forEach(plugin=>{if(-1===__GLOBAL_PLUGIN__.findIndex(p=>p.name===plugin.name))__GLOBAL_PLUGIN__.push(plugin);else warn(`The plugin ${plugin.name} has been registered.`)})};const getGlobalHostPlugins=()=>nativeGlobal.__FEDERATION__.__GLOBAL_PLUGIN__;const getPreloaded=id=>CurrentGlobal.__FEDERATION__.__PRELOADED_MAP__.get(id);const setPreloaded=id=>CurrentGlobal.__FEDERATION__.__PRELOADED_MAP__.set(id,true);const DEFAULT_SCOPE="default";const DEFAULT_REMOTE_TYPE="global";const buildIdentifier="[0-9A-Za-z-]+";const build=`(?:\\+(${buildIdentifier}(?:\\.${buildIdentifier})*))`;const numericIdentifier="0|[1-9]\\d*";const numericIdentifierLoose="[0-9]+";const nonNumericIdentifier="\\d*[a-zA-Z-][a-zA-Z0-9-]*";const preReleaseIdentifierLoose=`(?:${numericIdentifierLoose}|${nonNumericIdentifier})`;const preReleaseLoose=`(?:-?(${preReleaseIdentifierLoose}(?:\\.${preReleaseIdentifierLoose})*))`;const preReleaseIdentifier=`(?:${numericIdentifier}|${nonNumericIdentifier})`;const preRelease=`(?:-(${preReleaseIdentifier}(?:\\.${preReleaseIdentifier})*))`;const xRangeIdentifier=`${numericIdentifier}|x|X|\\*`;const xRangePlain=`[v=\\s]*(${xRangeIdentifier})(?:\\.(${xRangeIdentifier})(?:\\.(${xRangeIdentifier})(?:${preRelease})?${build}?)?)?`;const hyphenRange=`^\\s*(${xRangePlain})\\s+-\\s+(${xRangePlain})\\s*$`;const mainVersionLoose=`(${numericIdentifierLoose})\\.(${numericIdentifierLoose})\\.(${numericIdentifierLoose})`;const loosePlain=`[v=\\s]*${mainVersionLoose}${preReleaseLoose}?${build}?`;const gtlt="((?:<|>)?=?)";const comparatorTrim=`(\\s*)${gtlt}\\s*(${loosePlain}|${xRangePlain})`;const loneTilde="(?:~>?)";const tildeTrim=`(\\s*)${loneTilde}\\s+`;const loneCaret="(?:\\^)";const caretTrim=`(\\s*)${loneCaret}\\s+`;const star="(<|>)?=?\\s*\\*";const caret=`^${loneCaret}${xRangePlain}$`;const mainVersion=`(${numericIdentifier})\\.(${numericIdentifier})\\.(${numericIdentifier})`;const fullPlain=`v?${mainVersion}${preRelease}?${build}?`;const tilde=`^${loneTilde}${xRangePlain}$`;const xRange=`^${gtlt}\\s*${xRangePlain}$`;const comparator=`^${gtlt}\\s*(${fullPlain})$|^$`;const gte0="^\\s*>=\\s*0.0.0\\s*$";function parseRegex(source){return new RegExp(source)}function isXVersion(version){return!version||"x"===version.toLowerCase()||"*"===version}function pipe(...fns){return x=>fns.reduce((v,f)=>f(v),x)}function extractComparator(comparatorString){return comparatorString.match(parseRegex(comparator))}function combineVersion(major,minor,patch,preRelease){const mainVersion=`${major}.${minor}.${patch}`;if(preRelease)return`${mainVersion}-${preRelease}`;return mainVersion}function parseHyphen(range){return range.replace(parseRegex(hyphenRange),(_range,from,fromMajor,fromMinor,fromPatch,_fromPreRelease,_fromBuild,to,toMajor,toMinor,toPatch,toPreRelease)=>{from=isXVersion(fromMajor)?"":isXVersion(fromMinor)?`>=${fromMajor}.0.0`:isXVersion(fromPatch)?`>=${fromMajor}.${fromMinor}.0`:`>=${from}`;to=isXVersion(toMajor)?"":isXVersion(toMinor)?`<${Number(toMajor)+1}.0.0-0`:isXVersion(toPatch)?`<${toMajor}.${Number(toMinor)+1}.0-0`:toPreRelease?`<=${toMajor}.${toMinor}.${toPatch}-${toPreRelease}`:`<=${to}`;return`${from} ${to}`.trim()})}function parseComparatorTrim(range){return range.replace(parseRegex(comparatorTrim),"$1$2$3")}function parseTildeTrim(range){return range.replace(parseRegex(tildeTrim),"$1~")}function parseCaretTrim(range){return range.replace(parseRegex(caretTrim),"$1^")}function parseCarets(range){return range.trim().split(/\s+/).map(rangeVersion=>rangeVersion.replace(parseRegex(caret),(_,major,minor,patch,preRelease)=>{if(isXVersion(major))return"";if(isXVersion(minor))return`>=${major}.0.0 <${Number(major)+1}.0.0-0`;if(isXVersion(patch))if("0"===major)return`>=${major}.${minor}.0 <${major}.${Number(minor)+1}.0-0`;else return`>=${major}.${minor}.0 <${Number(major)+1}.0.0-0`;if(preRelease)if("0"!==major)return`>=${major}.${minor}.${patch}-${preRelease} <${Number(major)+1}.0.0-0`;else if("0"===minor)return`>=${major}.${minor}.${patch}-${preRelease} <${major}.${minor}.${Number(patch)+1}-0`;else return`>=${major}.${minor}.${patch}-${preRelease} <${major}.${Number(minor)+1}.0-0`;if("0"===major)if("0"===minor)return`>=${major}.${minor}.${patch} <${major}.${minor}.${Number(patch)+1}-0`;else return`>=${major}.${minor}.${patch} <${major}.${Number(minor)+1}.0-0`;return`>=${major}.${minor}.${patch} <${Number(major)+1}.0.0-0`})).join(" ")}function parseTildes(range){return range.trim().split(/\s+/).map(rangeVersion=>rangeVersion.replace(parseRegex(tilde),(_,major,minor,patch,preRelease)=>{if(isXVersion(major))return"";if(isXVersion(minor))return`>=${major}.0.0 <${Number(major)+1}.0.0-0`;if(isXVersion(patch))return`>=${major}.${minor}.0 <${major}.${Number(minor)+1}.0-0`;if(preRelease)return`>=${major}.${minor}.${patch}-${preRelease} <${major}.${Number(minor)+1}.0-0`;return`>=${major}.${minor}.${patch} <${major}.${Number(minor)+1}.0-0`})).join(" ")}function parseXRanges(range){return range.split(/\s+/).map(rangeVersion=>rangeVersion.trim().replace(parseRegex(xRange),(ret,gtlt,major,minor,patch,preRelease)=>{const isXMajor=isXVersion(major);const isXMinor=isXMajor||isXVersion(minor);const isXPatch=isXMinor||isXVersion(patch);if("="===gtlt&&isXPatch)gtlt="";preRelease="";if(isXMajor)if(">"===gtlt||"<"===gtlt)return"<0.0.0-0";else return"*";if(gtlt&&isXPatch){if(isXMinor)minor=0;patch=0;if(">"===gtlt){gtlt=">=";if(isXMinor){major=Number(major)+1;minor=0;patch=0}else{minor=Number(minor)+1;patch=0}}else if("<="===gtlt){gtlt="<";if(isXMinor)major=Number(major)+1;else minor=Number(minor)+1}if("<"===gtlt)preRelease="-0";return`${gtlt+major}.${minor}.${patch}${preRelease}`}if(isXMinor)return`>=${major}.0.0${preRelease} <${Number(major)+1}.0.0-0`;if(isXPatch)return`>=${major}.${minor}.0${preRelease} <${major}.${Number(minor)+1}.0-0`;return ret})).join(" ")}function parseStar(range){return range.trim().replace(parseRegex(star),"")}function parseGTE0(comparatorString){return comparatorString.trim().replace(parseRegex(gte0),"")}function compareAtom(rangeAtom,versionAtom){rangeAtom=Number(rangeAtom)||rangeAtom;versionAtom=Number(versionAtom)||versionAtom;if(rangeAtom>versionAtom)return 1;if(rangeAtom===versionAtom)return 0;return -1}function comparePreRelease(rangeAtom,versionAtom){const{preRelease:rangePreRelease}=rangeAtom;const{preRelease:versionPreRelease}=versionAtom;if(void 0===rangePreRelease&&Boolean(versionPreRelease))return 1;if(Boolean(rangePreRelease)&&void 0===versionPreRelease)return -1;if(void 0===rangePreRelease&&void 0===versionPreRelease)return 0;for(let i=0,n=rangePreRelease.length;i<=n;i++){const rangeElement=rangePreRelease[i];const versionElement=versionPreRelease[i];if(rangeElement!==versionElement){if(void 0===rangeElement&&void 0===versionElement)return 0;if(!rangeElement)return 1;if(!versionElement)return -1;return compareAtom(rangeElement,versionElement)}}return 0}function compareVersion(rangeAtom,versionAtom){return compareAtom(rangeAtom.major,versionAtom.major)||compareAtom(rangeAtom.minor,versionAtom.minor)||compareAtom(rangeAtom.patch,versionAtom.patch)||comparePreRelease(rangeAtom,versionAtom)}function eq(rangeAtom,versionAtom){return rangeAtom.version===versionAtom.version}function compare(rangeAtom,versionAtom){switch(rangeAtom.operator){case"":case"=":return eq(rangeAtom,versionAtom);case">":return compareVersion(rangeAtom,versionAtom)<0;case">=":return eq(rangeAtom,versionAtom)||compareVersion(rangeAtom,versionAtom)<0;case"<":return compareVersion(rangeAtom,versionAtom)>0;case"<=":return eq(rangeAtom,versionAtom)||compareVersion(rangeAtom,versionAtom)>0;case void 0:return true;default:return false}}function parseComparatorString(range){return pipe(parseCarets,parseTildes,parseXRanges,parseStar)(range)}function parseRange(range){return pipe(parseHyphen,parseComparatorTrim,parseTildeTrim,parseCaretTrim)(range.trim()).split(/\s+/).join(" ")}function satisfy(version,range){if(!version)return false;const extractedVersion=extractComparator(version);if(!extractedVersion)return false;const[,versionOperator,,versionMajor,versionMinor,versionPatch,versionPreRelease]=extractedVersion;const versionAtom={operator:versionOperator,version:combineVersion(versionMajor,versionMinor,versionPatch,versionPreRelease),major:versionMajor,minor:versionMinor,patch:versionPatch,preRelease:null==versionPreRelease?void 0:versionPreRelease.split(".")};const orRanges=range.split("||");for(const orRange of orRanges){const trimmedOrRange=orRange.trim();if(!trimmedOrRange)return true;if("*"===trimmedOrRange||"x"===trimmedOrRange)return true;try{const parsedSubRange=parseRange(trimmedOrRange);if(!parsedSubRange.trim())return true;const parsedComparatorString=parsedSubRange.split(" ").map(rangeVersion=>parseComparatorString(rangeVersion)).join(" ");if(!parsedComparatorString.trim())return true;const comparators=parsedComparatorString.split(/\s+/).map(comparator=>parseGTE0(comparator)).filter(Boolean);if(0===comparators.length)continue;let subRangeSatisfied=true;for(const comparator of comparators){const extractedComparator=extractComparator(comparator);if(!extractedComparator){subRangeSatisfied=false;break}const[,rangeOperator,,rangeMajor,rangeMinor,rangePatch,rangePreRelease]=extractedComparator;const rangeAtom={operator:rangeOperator,version:combineVersion(rangeMajor,rangeMinor,rangePatch,rangePreRelease),major:rangeMajor,minor:rangeMinor,patch:rangePatch,preRelease:null==rangePreRelease?void 0:rangePreRelease.split(".")};if(!compare(rangeAtom,versionAtom)){subRangeSatisfied=false;break}}if(subRangeSatisfied)return true}catch(e){console.error(`[semver] Error processing range part "${trimmedOrRange}":`,e);continue}}return false}function formatShare(shareArgs,from,name,shareStrategy){let get;get="get"in shareArgs?shareArgs.get:"lib"in shareArgs?()=>Promise.resolve(shareArgs.lib):()=>Promise.resolve(()=>{throw new Error(`Can not get shared '${name}'!`)});var _shareArgs_version,_shareArgs_scope,_shareArgs_strategy;return polyfills._extends({deps:[],useIn:[],from,loading:null},shareArgs,{shareConfig:polyfills._extends({requiredVersion:`^${shareArgs.version}`,singleton:false,eager:false,strictVersion:false},shareArgs.shareConfig),get,loaded:(null==shareArgs?void 0:shareArgs.loaded)||"lib"in shareArgs?true:void 0,version:null!=(_shareArgs_version=shareArgs.version)?_shareArgs_version:"0",scope:Array.isArray(shareArgs.scope)?shareArgs.scope:[null!=(_shareArgs_scope=shareArgs.scope)?_shareArgs_scope:"default"],strategy:(null!=(_shareArgs_strategy=shareArgs.strategy)?_shareArgs_strategy:shareStrategy)||"version-first"})}function formatShareConfigs(globalOptions,userOptions){const shareArgs=userOptions.shared||{};const from=userOptions.name;const shareInfos=Object.keys(shareArgs).reduce((res,pkgName)=>{const arrayShareArgs=arrayOptions(shareArgs[pkgName]);res[pkgName]=res[pkgName]||[];arrayShareArgs.forEach(shareConfig=>{res[pkgName].push(formatShare(shareConfig,from,pkgName,userOptions.shareStrategy))});return res},{});const shared=polyfills._extends({},globalOptions.shared);Object.keys(shareInfos).forEach(shareKey=>{if(shared[shareKey])shareInfos[shareKey].forEach(newUserSharedOptions=>{const isSameVersion=shared[shareKey].find(sharedVal=>sharedVal.version===newUserSharedOptions.version);if(!isSameVersion)shared[shareKey].push(newUserSharedOptions)});else shared[shareKey]=shareInfos[shareKey]});return{shared,shareInfos}}function versionLt(a,b){const transformInvalidVersion=version=>{const isNumberVersion=!Number.isNaN(Number(version));if(isNumberVersion){const splitArr=version.split(".");let validVersion=version;for(let i=0;i<3-splitArr.length;i++)validVersion+=".0";return validVersion}return version};if(satisfy(transformInvalidVersion(a),`<=${transformInvalidVersion(b)}`))return true;return false}const findVersion=(shareVersionMap,cb)=>{const callback=cb||function(prev,cur){return versionLt(prev,cur)};return Object.keys(shareVersionMap).reduce((prev,cur)=>{if(!prev)return cur;if(callback(prev,cur))return cur;if("0"===prev)return cur;return prev},0)};const isLoaded=shared=>Boolean(shared.loaded)||"function"==typeof shared.lib;const isLoading=shared=>Boolean(shared.loading);function findSingletonVersionOrderByVersion(shareScopeMap,scope,pkgName){const versions=shareScopeMap[scope][pkgName];const callback=function(prev,cur){return!isLoaded(versions[prev])&&versionLt(prev,cur)};return findVersion(shareScopeMap[scope][pkgName],callback)}function findSingletonVersionOrderByLoaded(shareScopeMap,scope,pkgName){const versions=shareScopeMap[scope][pkgName];const callback=function(prev,cur){const isLoadingOrLoaded=shared=>isLoaded(shared)||isLoading(shared);if(isLoadingOrLoaded(versions[cur]))if(isLoadingOrLoaded(versions[prev]))return Boolean(versionLt(prev,cur));else return true;if(isLoadingOrLoaded(versions[prev]))return false;return versionLt(prev,cur)};return findVersion(shareScopeMap[scope][pkgName],callback)}function getFindShareFunction(strategy){if("loaded-first"===strategy)return findSingletonVersionOrderByLoaded;return findSingletonVersionOrderByVersion}function getRegisteredShare(localShareScopeMap,pkgName,shareInfo,resolveShare){if(!localShareScopeMap)return;const{shareConfig,scope=DEFAULT_SCOPE,strategy}=shareInfo;const scopes=Array.isArray(scope)?scope:[scope];for(const sc of scopes)if(shareConfig&&localShareScopeMap[sc]&&localShareScopeMap[sc][pkgName]){const{requiredVersion}=shareConfig;const findShareFunction=getFindShareFunction(strategy);const maxOrSingletonVersion=findShareFunction(localShareScopeMap,sc,pkgName);const defaultResolver=()=>{if(shareConfig.singleton){if("string"==typeof requiredVersion&&!satisfy(maxOrSingletonVersion,requiredVersion)){const msg=`Version ${maxOrSingletonVersion} from ${maxOrSingletonVersion&&localShareScopeMap[sc][pkgName][maxOrSingletonVersion].from} of shared singleton module ${pkgName} does not satisfy the requirement of ${shareInfo.from} which needs ${requiredVersion})`;if(shareConfig.strictVersion)error(msg);else warn(msg)}return localShareScopeMap[sc][pkgName][maxOrSingletonVersion]}if(false===requiredVersion||"*"===requiredVersion)return localShareScopeMap[sc][pkgName][maxOrSingletonVersion];if(satisfy(maxOrSingletonVersion,requiredVersion))return localShareScopeMap[sc][pkgName][maxOrSingletonVersion];for(const[versionKey,versionValue]of Object.entries(localShareScopeMap[sc][pkgName]))if(satisfy(versionKey,requiredVersion))return versionValue};const params={shareScopeMap:localShareScopeMap,scope:sc,pkgName,version:maxOrSingletonVersion,GlobalFederation:Global.__FEDERATION__,resolver:defaultResolver};const resolveShared=resolveShare.emit(params)||params;return resolveShared.resolver()}}function getGlobalShareScope(){return Global.__FEDERATION__.__SHARE__}function getTargetSharedOptions(options){const{pkgName,extraOptions,shareInfos}=options;const defaultResolver=sharedOptions=>{if(!sharedOptions)return;const shareVersionMap={};sharedOptions.forEach(shared=>{shareVersionMap[shared.version]=shared});const callback=function(prev,cur){return!isLoaded(shareVersionMap[prev])&&versionLt(prev,cur)};const maxVersion=findVersion(shareVersionMap,callback);return shareVersionMap[maxVersion]};var _extraOptions_resolver;const resolver=null!=(_extraOptions_resolver=null==extraOptions?void 0:extraOptions.resolver)?_extraOptions_resolver:defaultResolver;return Object.assign({},resolver(shareInfos[pkgName]),null==extraOptions?void 0:extraOptions.customShareInfo)}function getBuilderId(){return"integrations_app:0.4.82"}function matchRemoteWithNameAndExpose(remotes,id){for(const remote of remotes){const isNameMatched=id.startsWith(remote.name);let expose=id.replace(remote.name,"");if(isNameMatched){if(expose.startsWith("/")){const pkgNameOrAlias=remote.name;expose=`.${expose}`;return{pkgNameOrAlias,expose,remote}}else if(""===expose)return{pkgNameOrAlias:remote.name,expose:".",remote}}const isAliasMatched=remote.alias&&id.startsWith(remote.alias);let exposeWithAlias=remote.alias&&id.replace(remote.alias,"");if(remote.alias&&isAliasMatched){if(exposeWithAlias&&exposeWithAlias.startsWith("/")){const pkgNameOrAlias=remote.alias;exposeWithAlias=`.${exposeWithAlias}`;return{pkgNameOrAlias,expose:exposeWithAlias,remote}}else if(""===exposeWithAlias)return{pkgNameOrAlias:remote.alias,expose:".",remote}}}}function matchRemote(remotes,nameOrAlias){for(const remote of remotes){const isNameMatched=nameOrAlias===remote.name;if(isNameMatched)return remote;const isAliasMatched=remote.alias&&nameOrAlias===remote.alias;if(isAliasMatched)return remote}}function registerPlugins(plugins,instance){const globalPlugins=getGlobalHostPlugins();const hookInstances=[instance.hooks,instance.remoteHandler.hooks,instance.sharedHandler.hooks,instance.snapshotHandler.hooks,instance.loaderHook,instance.bridgeHook];if(globalPlugins.length>0)globalPlugins.forEach(plugin=>{if(null==plugins?void 0:plugins.find(item=>item.name!==plugin.name))plugins.push(plugin)});if(plugins&&plugins.length>0)plugins.forEach(plugin=>{hookInstances.forEach(hookInstance=>{hookInstance.applyPlugin(plugin,instance)})});return plugins}const importCallback=".then(callbacks[0]).catch(callbacks[1])";async function loadEsmEntry({entry,remoteEntryExports}){return new Promise((resolve,reject)=>{try{if(remoteEntryExports)resolve(remoteEntryExports);else if("undefined"!=typeof FEDERATION_ALLOW_NEW_FUNCTION)new Function("callbacks",`import("${entry}")${importCallback}`)([resolve,reject]);else import(/* @vite-ignore */entry).then(resolve).catch(reject)}catch(e){reject(e)}})}async function loadSystemJsEntry({entry,remoteEntryExports}){return new Promise((resolve,reject)=>{try{if(remoteEntryExports)resolve(remoteEntryExports);else new Function("callbacks",`System.import("${entry}")${importCallback}`)([resolve,reject])}catch(e){reject(e)}})}function handleRemoteEntryLoaded(name,globalName,entry){const{remoteEntryKey,entryExports}=getRemoteEntryExports(name,globalName);assert(entryExports,errorCodes.getShortErrorMsg(errorCodes.RUNTIME_001,errorCodes.runtimeDescMap,{remoteName:name,remoteEntryUrl:entry,remoteEntryKey}));return entryExports}async function loadEntryScript({name,globalName,entry,loaderHook}){const{entryExports:remoteEntryExports}=getRemoteEntryExports(name,globalName);if(remoteEntryExports)return remoteEntryExports;return sdk.loadScript(entry,{attrs:{},createScriptHook:(url,attrs)=>{const res=loaderHook.lifecycle.createScript.emit({url,attrs});if(!res)return;if(res instanceof HTMLScriptElement)return res;if("script"in res||"timeout"in res)return res}}).then(()=>handleRemoteEntryLoaded(name,globalName,entry)).catch(e=>{assert(void 0,errorCodes.getShortErrorMsg(errorCodes.RUNTIME_008,errorCodes.runtimeDescMap,{remoteName:name,resourceUrl:entry}));throw e})}async function loadEntryDom({remoteInfo,remoteEntryExports,loaderHook}){const{entry,entryGlobalName:globalName,name,type}=remoteInfo;switch(type){case"esm":case"module":return loadEsmEntry({entry,remoteEntryExports});case"system":return loadSystemJsEntry({entry,remoteEntryExports});default:return loadEntryScript({entry,globalName,name,loaderHook})}}async function loadEntryNode({remoteInfo,loaderHook}){const{entry,entryGlobalName:globalName,name,type}=remoteInfo;const{entryExports:remoteEntryExports}=getRemoteEntryExports(name,globalName);if(remoteEntryExports)return remoteEntryExports;return sdk.loadScriptNode(entry,{attrs:{name,globalName,type},loaderHook:{createScriptHook:(url,attrs={})=>{const res=loaderHook.lifecycle.createScript.emit({url,attrs});if(!res)return;if("url"in res)return res}}}).then(()=>handleRemoteEntryLoaded(name,globalName,entry)).catch(e=>{throw e})}function getRemoteEntryUniqueKey(remoteInfo){const{entry,name}=remoteInfo;return sdk.composeKeyWithSeparator(name,entry)}async function getRemoteEntry({origin,remoteEntryExports,remoteInfo}){const uniqueKey=getRemoteEntryUniqueKey(remoteInfo);if(remoteEntryExports)return remoteEntryExports;if(!globalLoading[uniqueKey]){const loadEntryHook=origin.remoteHandler.hooks.lifecycle.loadEntry;const loaderHook=origin.loaderHook;globalLoading[uniqueKey]=loadEntryHook.emit({loaderHook,remoteInfo,remoteEntryExports}).then(res=>{if(res)return res;const isWebEnvironment="undefined"!=typeof ENV_TARGET?"web"===ENV_TARGET:sdk.isBrowserEnv();return isWebEnvironment?loadEntryDom({remoteInfo,remoteEntryExports,loaderHook}):loadEntryNode({remoteInfo,loaderHook})})}return globalLoading[uniqueKey]}function getRemoteInfo(remote){return polyfills._extends({},remote,{entry:"entry"in remote?remote.entry:"",type:remote.type||DEFAULT_REMOTE_TYPE,entryGlobalName:remote.entryGlobalName||remote.name,shareScope:remote.shareScope||DEFAULT_SCOPE})}function defaultPreloadArgs(preloadConfig){return polyfills._extends({resourceCategory:"sync",share:true,depsRemote:true,prefetchInterface:false},preloadConfig)}function formatPreloadArgs(remotes,preloadArgs){return preloadArgs.map(args=>{const remoteInfo=matchRemote(remotes,args.nameOrAlias);assert(remoteInfo,`Unable to preload ${args.nameOrAlias} as it is not included in ${!remoteInfo&&sdk.safeToString({remoteInfo,remotes})}`);return{remote:remoteInfo,preloadConfig:defaultPreloadArgs(args)}})}function normalizePreloadExposes(exposes){if(!exposes)return[];return exposes.map(expose=>{if("."===expose)return expose;if(expose.startsWith("./"))return expose.replace("./","");return expose})}function preloadAssets(remoteInfo,host,assets,useLinkPreload=true){const{cssAssets,jsAssetsWithoutEntry,entryAssets}=assets;if(host.options.inBrowser){entryAssets.forEach(asset=>{const{moduleInfo}=asset;const module=host.moduleCache.get(remoteInfo.name);module?getRemoteEntry({origin:host,remoteInfo:moduleInfo,remoteEntryExports:module.remoteEntryExports}):getRemoteEntry({origin:host,remoteInfo:moduleInfo,remoteEntryExports:void 0})});if(useLinkPreload){const defaultAttrs={rel:"preload",as:"style"};cssAssets.forEach(cssUrl=>{const{link:cssEl,needAttach}=sdk.createLink({url:cssUrl,cb:()=>{},attrs:defaultAttrs,createLinkHook:(url,attrs)=>{const res=host.loaderHook.lifecycle.createLink.emit({url,attrs});if(res instanceof HTMLLinkElement)return res}});needAttach&&document.head.appendChild(cssEl)})}else{const defaultAttrs={rel:"stylesheet",type:"text/css"};cssAssets.forEach(cssUrl=>{const{link:cssEl,needAttach}=sdk.createLink({url:cssUrl,cb:()=>{},attrs:defaultAttrs,createLinkHook:(url,attrs)=>{const res=host.loaderHook.lifecycle.createLink.emit({url,attrs});if(res instanceof HTMLLinkElement)return res},needDeleteLink:false});needAttach&&document.head.appendChild(cssEl)})}if(useLinkPreload){const defaultAttrs={rel:"preload",as:"script"};jsAssetsWithoutEntry.forEach(jsUrl=>{const{link:linkEl,needAttach}=sdk.createLink({url:jsUrl,cb:()=>{},attrs:defaultAttrs,createLinkHook:(url,attrs)=>{const res=host.loaderHook.lifecycle.createLink.emit({url,attrs});if(res instanceof HTMLLinkElement)return res}});needAttach&&document.head.appendChild(linkEl)})}else{const defaultAttrs={fetchpriority:"high",type:(null==remoteInfo?void 0:remoteInfo.type)==="module"?"module":"text/javascript"};jsAssetsWithoutEntry.forEach(jsUrl=>{const{script:scriptEl,needAttach}=sdk.createScript({url:jsUrl,cb:()=>{},attrs:defaultAttrs,createScriptHook:(url,attrs)=>{const res=host.loaderHook.lifecycle.createScript.emit({url,attrs});if(res instanceof HTMLScriptElement)return res},needDeleteScript:true});needAttach&&document.head.appendChild(scriptEl)})}}}const ShareUtils={getRegisteredShare,getGlobalShareScope};const GlobalUtils={Global,nativeGlobal,resetFederationGlobalInfo,setGlobalFederationInstance,getGlobalFederationConstructor,setGlobalFederationConstructor,getInfoWithoutType,getGlobalSnapshot,getTargetSnapshotInfoByModuleInfo,getGlobalSnapshotInfoByModuleInfo,setGlobalSnapshotInfoByModuleInfo,addGlobalSnapshot,getRemoteEntryExports,registerGlobalPlugins,getGlobalHostPlugins,getPreloaded,setPreloaded};var helpers={global:GlobalUtils,share:ShareUtils,utils:{matchRemoteWithNameAndExpose,preloadAssets,getRemoteInfo}};let Module=class{async getEntry(){if(this.remoteEntryExports)return this.remoteEntryExports;let remoteEntryExports;try{remoteEntryExports=await getRemoteEntry({origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports})}catch(err){const uniqueKey=getRemoteEntryUniqueKey(this.remoteInfo);remoteEntryExports=await this.host.loaderHook.lifecycle.loadEntryError.emit({getRemoteEntry,origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports,globalLoading,uniqueKey})}assert(remoteEntryExports,`remoteEntryExports is undefined
3
- ${sdk.safeToString(this.remoteInfo)}`);this.remoteEntryExports=remoteEntryExports;return this.remoteEntryExports}async get(id,expose,options,remoteSnapshot){const{loadFactory=true}=options||{loadFactory:true};const remoteEntryExports=await this.getEntry();if(!this.inited){const localShareScopeMap=this.host.shareScopeMap;const shareScopeKeys=Array.isArray(this.remoteInfo.shareScope)?this.remoteInfo.shareScope:[this.remoteInfo.shareScope];if(!shareScopeKeys.length)shareScopeKeys.push("default");shareScopeKeys.forEach(shareScopeKey=>{if(!localShareScopeMap[shareScopeKey])localShareScopeMap[shareScopeKey]={}});const shareScope=localShareScopeMap[shareScopeKeys[0]];const initScope=[];const remoteEntryInitOptions={version:this.remoteInfo.version||"",shareScopeKeys:Array.isArray(this.remoteInfo.shareScope)?shareScopeKeys:this.remoteInfo.shareScope||"default"};Object.defineProperty(remoteEntryInitOptions,"shareScopeMap",{value:localShareScopeMap,enumerable:false});const initContainerOptions=await this.host.hooks.lifecycle.beforeInitContainer.emit({shareScope,remoteEntryInitOptions,initScope,remoteInfo:this.remoteInfo,origin:this.host});if(void 0===(null==remoteEntryExports?void 0:remoteEntryExports.init))error(errorCodes.getShortErrorMsg(errorCodes.RUNTIME_002,errorCodes.runtimeDescMap,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName}));await remoteEntryExports.init(initContainerOptions.shareScope,initContainerOptions.initScope,initContainerOptions.remoteEntryInitOptions);await this.host.hooks.lifecycle.initContainer.emit(polyfills._extends({},initContainerOptions,{id,remoteSnapshot,remoteEntryExports}))}this.lib=remoteEntryExports;this.inited=true;let moduleFactory;moduleFactory=await this.host.loaderHook.lifecycle.getModuleFactory.emit({remoteEntryExports,expose,moduleInfo:this.remoteInfo});if(!moduleFactory)moduleFactory=await remoteEntryExports.get(expose);assert(moduleFactory,`${getFMId(this.remoteInfo)} remote don't export ${expose}.`);const symbolName=processModuleAlias(this.remoteInfo.name,expose);const wrapModuleFactory=this.wraperFactory(moduleFactory,symbolName);if(!loadFactory)return wrapModuleFactory;const exposeContent=await wrapModuleFactory();return exposeContent}wraperFactory(moduleFactory,id){function defineModuleId(res,id){if(res&&"object"==typeof res&&Object.isExtensible(res)&&!Object.getOwnPropertyDescriptor(res,Symbol.for("mf_module_id")))Object.defineProperty(res,Symbol.for("mf_module_id"),{value:id,enumerable:false})}if(moduleFactory instanceof Promise)return async()=>{const res=await moduleFactory();defineModuleId(res,id);return res};return()=>{const res=moduleFactory();defineModuleId(res,id);return res}}constructor({remoteInfo,host}){this.inited=false;this.lib=void 0;this.remoteInfo=remoteInfo;this.host=host}};class SyncHook{on(fn){if("function"==typeof fn)this.listeners.add(fn)}once(fn){const self=this;this.on(function wrapper(...args){self.remove(wrapper);return fn.apply(null,args)})}emit(...data){let result;if(this.listeners.size>0)this.listeners.forEach(fn=>{result=fn(...data)});return result}remove(fn){this.listeners.delete(fn)}removeAll(){this.listeners.clear()}constructor(type){this.type="";this.listeners=new Set;if(type)this.type=type}}class AsyncHook extends SyncHook{emit(...data){let result;const ls=Array.from(this.listeners);if(ls.length>0){let i=0;const call=prev=>{if(false===prev)return false;if(i<ls.length)return Promise.resolve(ls[i++].apply(null,data)).then(call);return prev};result=call()}return Promise.resolve(result)}}function checkReturnData(originalData,returnedData){if(!isObject(returnedData))return false;if(originalData!==returnedData){for(const key in originalData)if(!(key in returnedData))return false}return true}class SyncWaterfallHook extends SyncHook{emit(data){if(!isObject(data))error(`The data for the "${this.type}" hook should be an object.`);for(const fn of this.listeners)try{const tempData=fn(data);if(checkReturnData(data,tempData))data=tempData;else{this.onerror(`A plugin returned an unacceptable value for the "${this.type}" type.`);break}}catch(e){warn(e);this.onerror(e)}return data}constructor(type){super();this.onerror=error;this.type=type}}class AsyncWaterfallHook extends SyncHook{emit(data){if(!isObject(data))error(`The response data for the "${this.type}" hook must be an object.`);const ls=Array.from(this.listeners);if(ls.length>0){let i=0;const processError=e=>{warn(e);this.onerror(e);return data};const call=prevData=>{if(checkReturnData(data,prevData)){data=prevData;if(i<ls.length)try{return Promise.resolve(ls[i++](data)).then(call,processError)}catch(e){return processError(e)}}else this.onerror(`A plugin returned an incorrect value for the "${this.type}" type.`);return data};return Promise.resolve(call(data))}return Promise.resolve(data)}constructor(type){super();this.onerror=error;this.type=type}}class PluginSystem{applyPlugin(plugin,instance){assert(isPlainObject(plugin),"Plugin configuration is invalid.");const pluginName=plugin.name;assert(pluginName,"A name must be provided by the plugin.");if(!this.registerPlugins[pluginName]){this.registerPlugins[pluginName]=plugin;null==plugin.apply||plugin.apply.call(plugin,instance);Object.keys(this.lifecycle).forEach(key=>{const pluginLife=plugin[key];if(pluginLife)this.lifecycle[key].on(pluginLife)})}}removePlugin(pluginName){assert(pluginName,"A name is required.");const plugin=this.registerPlugins[pluginName];assert(plugin,`The plugin "${pluginName}" is not registered.`);Object.keys(plugin).forEach(key=>{if("name"!==key)this.lifecycle[key].remove(plugin[key])})}constructor(lifecycle){this.registerPlugins={};this.lifecycle=lifecycle;this.lifecycleKeys=Object.keys(lifecycle)}}function assignRemoteInfo(remoteInfo,remoteSnapshot){const remoteEntryInfo=getRemoteEntryInfoFromSnapshot(remoteSnapshot);if(!remoteEntryInfo.url)error(`The attribute remoteEntry of ${remoteInfo.name} must not be undefined.`);let entryUrl=sdk.getResourceUrl(remoteSnapshot,remoteEntryInfo.url);if(!sdk.isBrowserEnv()&&!entryUrl.startsWith("http"))entryUrl=`https:${entryUrl}`;remoteInfo.type=remoteEntryInfo.type;remoteInfo.entryGlobalName=remoteEntryInfo.globalName;remoteInfo.entry=entryUrl;remoteInfo.version=remoteSnapshot.version;remoteInfo.buildVersion=remoteSnapshot.buildVersion}function snapshotPlugin(){return{name:"snapshot-plugin",async afterResolve(args){const{remote,pkgNameOrAlias,expose,origin,remoteInfo,id}=args;if(!isRemoteInfoWithEntry(remote)||!isPureRemoteEntry(remote)){const{remoteSnapshot,globalSnapshot}=await origin.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:remote,id});assignRemoteInfo(remoteInfo,remoteSnapshot);const preloadOptions={remote,preloadConfig:{nameOrAlias:pkgNameOrAlias,exposes:[expose],resourceCategory:"sync",share:false,depsRemote:false}};const assets=await origin.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin,preloadOptions,remoteInfo,remote,remoteSnapshot,globalSnapshot});if(assets)preloadAssets(remoteInfo,origin,assets,false);return polyfills._extends({},args,{remoteSnapshot})}return args}}}function splitId(id){const splitInfo=id.split(":");if(1===splitInfo.length)return{name:splitInfo[0],version:void 0};if(2===splitInfo.length)return{name:splitInfo[0],version:splitInfo[1]};return{name:splitInfo[1],version:splitInfo[2]}}function traverseModuleInfo(globalSnapshot,remoteInfo,traverse,isRoot,memo={},remoteSnapshot){const id=getFMId(remoteInfo);const{value:snapshotValue}=getInfoWithoutType(globalSnapshot,id);const effectiveRemoteSnapshot=remoteSnapshot||snapshotValue;if(effectiveRemoteSnapshot&&!sdk.isManifestProvider(effectiveRemoteSnapshot)){traverse(effectiveRemoteSnapshot,remoteInfo,isRoot);if(effectiveRemoteSnapshot.remotesInfo){const remoteKeys=Object.keys(effectiveRemoteSnapshot.remotesInfo);for(const key of remoteKeys){if(memo[key])continue;memo[key]=true;const subRemoteInfo=splitId(key);const remoteValue=effectiveRemoteSnapshot.remotesInfo[key];traverseModuleInfo(globalSnapshot,{name:subRemoteInfo.name,version:remoteValue.matchedVersion},traverse,false,memo,void 0)}}}}const isExisted=(type,url)=>document.querySelector(`${type}[${"link"===type?"href":"src"}="${url}"]`);function generatePreloadAssets(origin,preloadOptions,remote,globalSnapshot,remoteSnapshot){const cssAssets=[];const jsAssets=[];const entryAssets=[];const loadedSharedJsAssets=new Set;const loadedSharedCssAssets=new Set;const{options}=origin;const{preloadConfig:rootPreloadConfig}=preloadOptions;const{depsRemote}=rootPreloadConfig;const memo={};traverseModuleInfo(globalSnapshot,remote,(moduleInfoSnapshot,remoteInfo,isRoot)=>{let preloadConfig;if(isRoot)preloadConfig=rootPreloadConfig;else if(Array.isArray(depsRemote)){const findPreloadConfig=depsRemote.find(remoteConfig=>{if(remoteConfig.nameOrAlias===remoteInfo.name||remoteConfig.nameOrAlias===remoteInfo.alias)return true;return false});if(!findPreloadConfig)return;preloadConfig=defaultPreloadArgs(findPreloadConfig)}else{if(true!==depsRemote)return;preloadConfig=rootPreloadConfig}const remoteEntryUrl=sdk.getResourceUrl(moduleInfoSnapshot,getRemoteEntryInfoFromSnapshot(moduleInfoSnapshot).url);if(remoteEntryUrl)entryAssets.push({name:remoteInfo.name,moduleInfo:{name:remoteInfo.name,entry:remoteEntryUrl,type:"remoteEntryType"in moduleInfoSnapshot?moduleInfoSnapshot.remoteEntryType:"global",entryGlobalName:"globalName"in moduleInfoSnapshot?moduleInfoSnapshot.globalName:remoteInfo.name,shareScope:"",version:"version"in moduleInfoSnapshot?moduleInfoSnapshot.version:void 0},url:remoteEntryUrl});let moduleAssetsInfo="modules"in moduleInfoSnapshot?moduleInfoSnapshot.modules:[];const normalizedPreloadExposes=normalizePreloadExposes(preloadConfig.exposes);if(normalizedPreloadExposes.length&&"modules"in moduleInfoSnapshot){var _moduleInfoSnapshot_modules;moduleAssetsInfo=null==moduleInfoSnapshot?void 0:null==(_moduleInfoSnapshot_modules=moduleInfoSnapshot.modules)?void 0:_moduleInfoSnapshot_modules.reduce((assets,moduleAssetInfo)=>{if((null==normalizedPreloadExposes?void 0:normalizedPreloadExposes.indexOf(moduleAssetInfo.moduleName))!==-1)assets.push(moduleAssetInfo);return assets},[])}function handleAssets(assets){const assetsRes=assets.map(asset=>sdk.getResourceUrl(moduleInfoSnapshot,asset));if(preloadConfig.filter)return assetsRes.filter(preloadConfig.filter);return assetsRes}if(moduleAssetsInfo){const assetsLength=moduleAssetsInfo.length;for(let index=0;index<assetsLength;index++){const assetsInfo=moduleAssetsInfo[index];const exposeFullPath=`${remoteInfo.name}/${assetsInfo.moduleName}`;origin.remoteHandler.hooks.lifecycle.handlePreloadModule.emit({id:"."===assetsInfo.moduleName?remoteInfo.name:exposeFullPath,name:remoteInfo.name,remoteSnapshot:moduleInfoSnapshot,preloadConfig,remote:remoteInfo,origin});const preloaded=getPreloaded(exposeFullPath);if(!preloaded){if("all"===preloadConfig.resourceCategory){cssAssets.push(...handleAssets(assetsInfo.assets.css.async));cssAssets.push(...handleAssets(assetsInfo.assets.css.sync));jsAssets.push(...handleAssets(assetsInfo.assets.js.async));jsAssets.push(...handleAssets(assetsInfo.assets.js.sync))}else if(preloadConfig.resourceCategory="sync"){cssAssets.push(...handleAssets(assetsInfo.assets.css.sync));jsAssets.push(...handleAssets(assetsInfo.assets.js.sync))}setPreloaded(exposeFullPath)}}}},true,memo,remoteSnapshot);if(remoteSnapshot.shared&&remoteSnapshot.shared.length>0){const collectSharedAssets=(shareInfo,snapshotShared)=>{const registeredShared=getRegisteredShare(origin.shareScopeMap,snapshotShared.sharedName,shareInfo,origin.sharedHandler.hooks.lifecycle.resolveShare);if(registeredShared&&"function"==typeof registeredShared.lib){snapshotShared.assets.js.sync.forEach(asset=>{loadedSharedJsAssets.add(asset)});snapshotShared.assets.css.sync.forEach(asset=>{loadedSharedCssAssets.add(asset)})}};remoteSnapshot.shared.forEach(shared=>{var _options_shared;const shareInfos=null==(_options_shared=options.shared)?void 0:_options_shared[shared.sharedName];if(!shareInfos)return;const sharedOptions=shared.version?shareInfos.find(s=>s.version===shared.version):shareInfos;if(!sharedOptions)return;const arrayShareInfo=arrayOptions(sharedOptions);arrayShareInfo.forEach(s=>{collectSharedAssets(s,shared)})})}const needPreloadJsAssets=jsAssets.filter(asset=>!loadedSharedJsAssets.has(asset)&&!isExisted("script",asset));const needPreloadCssAssets=cssAssets.filter(asset=>!loadedSharedCssAssets.has(asset)&&!isExisted("link",asset));return{cssAssets:needPreloadCssAssets,jsAssetsWithoutEntry:needPreloadJsAssets,entryAssets:entryAssets.filter(entry=>!isExisted("script",entry.url))}}const generatePreloadAssetsPlugin=function(){return{name:"generate-preload-assets-plugin",async generatePreloadAssets(args){const{origin,preloadOptions,remoteInfo,remote,globalSnapshot,remoteSnapshot}=args;if(!sdk.isBrowserEnv())return{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[]};if(isRemoteInfoWithEntry(remote)&&isPureRemoteEntry(remote))return{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[{name:remote.name,url:remote.entry,moduleInfo:{name:remoteInfo.name,entry:remote.entry,type:remoteInfo.type||"global",entryGlobalName:"",shareScope:""}}]};assignRemoteInfo(remoteInfo,remoteSnapshot);const assets=generatePreloadAssets(origin,preloadOptions,remoteInfo,globalSnapshot,remoteSnapshot);return assets}}};function getGlobalRemoteInfo(moduleInfo,origin){const hostGlobalSnapshot=getGlobalSnapshotInfoByModuleInfo({name:origin.name,version:origin.options.version});const globalRemoteInfo=hostGlobalSnapshot&&"remotesInfo"in hostGlobalSnapshot&&hostGlobalSnapshot.remotesInfo&&getInfoWithoutType(hostGlobalSnapshot.remotesInfo,moduleInfo.name).value;if(globalRemoteInfo&&globalRemoteInfo.matchedVersion)return{hostGlobalSnapshot,globalSnapshot:getGlobalSnapshot(),remoteSnapshot:getGlobalSnapshotInfoByModuleInfo({name:moduleInfo.name,version:globalRemoteInfo.matchedVersion})};return{hostGlobalSnapshot:void 0,globalSnapshot:getGlobalSnapshot(),remoteSnapshot:getGlobalSnapshotInfoByModuleInfo({name:moduleInfo.name,version:"version"in moduleInfo?moduleInfo.version:void 0})}}class SnapshotHandler{async loadRemoteSnapshotInfo({moduleInfo,id,expose}){const{options}=this.HostInstance;await this.hooks.lifecycle.beforeLoadRemoteSnapshot.emit({options,moduleInfo});let hostSnapshot=getGlobalSnapshotInfoByModuleInfo({name:this.HostInstance.options.name,version:this.HostInstance.options.version});if(!hostSnapshot){hostSnapshot={version:this.HostInstance.options.version||"",remoteEntry:"",remotesInfo:{}};addGlobalSnapshot({[this.HostInstance.options.name]:hostSnapshot})}if(hostSnapshot&&"remotesInfo"in hostSnapshot&&!getInfoWithoutType(hostSnapshot.remotesInfo,moduleInfo.name).value){if("version"in moduleInfo||"entry"in moduleInfo)hostSnapshot.remotesInfo=polyfills._extends({},null==hostSnapshot?void 0:hostSnapshot.remotesInfo,{[moduleInfo.name]:{matchedVersion:"version"in moduleInfo?moduleInfo.version:moduleInfo.entry}})}const{hostGlobalSnapshot,remoteSnapshot,globalSnapshot}=this.getGlobalRemoteInfo(moduleInfo);const{remoteSnapshot:globalRemoteSnapshot,globalSnapshot:globalSnapshotRes}=await this.hooks.lifecycle.loadSnapshot.emit({options,moduleInfo,hostGlobalSnapshot,remoteSnapshot,globalSnapshot});let mSnapshot;let gSnapshot;if(globalRemoteSnapshot)if(sdk.isManifestProvider(globalRemoteSnapshot)){const remoteEntry=sdk.isBrowserEnv()?globalRemoteSnapshot.remoteEntry:globalRemoteSnapshot.ssrRemoteEntry||globalRemoteSnapshot.remoteEntry||"";const moduleSnapshot=await this.getManifestJson(remoteEntry,moduleInfo,{});const globalSnapshotRes=setGlobalSnapshotInfoByModuleInfo(polyfills._extends({},moduleInfo,{entry:remoteEntry}),moduleSnapshot);mSnapshot=moduleSnapshot;gSnapshot=globalSnapshotRes}else{const{remoteSnapshot:remoteSnapshotRes}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo,remoteSnapshot:globalRemoteSnapshot,from:"global"});mSnapshot=remoteSnapshotRes;gSnapshot=globalSnapshotRes}else if(isRemoteInfoWithEntry(moduleInfo)){const moduleSnapshot=await this.getManifestJson(moduleInfo.entry,moduleInfo,{});const globalSnapshotRes=setGlobalSnapshotInfoByModuleInfo(moduleInfo,moduleSnapshot);const{remoteSnapshot:remoteSnapshotRes}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo,remoteSnapshot:moduleSnapshot,from:"global"});mSnapshot=remoteSnapshotRes;gSnapshot=globalSnapshotRes}else error(errorCodes.getShortErrorMsg(errorCodes.RUNTIME_007,errorCodes.runtimeDescMap,{hostName:moduleInfo.name,hostVersion:moduleInfo.version,globalSnapshot:JSON.stringify(globalSnapshotRes)}));await this.hooks.lifecycle.afterLoadSnapshot.emit({id,host:this.HostInstance,options,moduleInfo,remoteSnapshot:mSnapshot});return{remoteSnapshot:mSnapshot,globalSnapshot:gSnapshot}}getGlobalRemoteInfo(moduleInfo){return getGlobalRemoteInfo(moduleInfo,this.HostInstance)}async getManifestJson(manifestUrl,moduleInfo,extraOptions){const getManifest=async()=>{let manifestJson=this.manifestCache.get(manifestUrl);if(manifestJson)return manifestJson;try{let res=await this.loaderHook.lifecycle.fetch.emit(manifestUrl,{});if(!res||!(res instanceof Response))res=await fetch(manifestUrl,{});manifestJson=await res.json()}catch(err){manifestJson=await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:manifestUrl,error:err,from:"runtime",lifecycle:"afterResolve",origin:this.HostInstance});if(!manifestJson){delete this.manifestLoading[manifestUrl];error(errorCodes.getShortErrorMsg(errorCodes.RUNTIME_003,errorCodes.runtimeDescMap,{manifestUrl,moduleName:moduleInfo.name,hostName:this.HostInstance.options.name},`${err}`))}}assert(manifestJson.metaData&&manifestJson.exposes&&manifestJson.shared,`${manifestUrl} is not a federation manifest`);this.manifestCache.set(manifestUrl,manifestJson);return manifestJson};const asyncLoadProcess=async()=>{const manifestJson=await getManifest();const remoteSnapshot=sdk.generateSnapshotFromManifest(manifestJson,{version:manifestUrl});const{remoteSnapshot:remoteSnapshotRes}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo,manifestJson,remoteSnapshot,manifestUrl,from:"manifest"});return remoteSnapshotRes};if(!this.manifestLoading[manifestUrl])this.manifestLoading[manifestUrl]=asyncLoadProcess().then(res=>res);return this.manifestLoading[manifestUrl]}constructor(HostInstance){this.loadingHostSnapshot=null;this.manifestCache=new Map;this.hooks=new PluginSystem({beforeLoadRemoteSnapshot:new AsyncHook("beforeLoadRemoteSnapshot"),loadSnapshot:new AsyncWaterfallHook("loadGlobalSnapshot"),loadRemoteSnapshot:new AsyncWaterfallHook("loadRemoteSnapshot"),afterLoadSnapshot:new AsyncWaterfallHook("afterLoadSnapshot")});this.manifestLoading=Global.__FEDERATION__.__MANIFEST_LOADING__;this.HostInstance=HostInstance;this.loaderHook=HostInstance.loaderHook}}class SharedHandler{registerShared(globalOptions,userOptions){const{shareInfos,shared}=formatShareConfigs(globalOptions,userOptions);const sharedKeys=Object.keys(shareInfos);sharedKeys.forEach(sharedKey=>{const sharedVals=shareInfos[sharedKey];sharedVals.forEach(sharedVal=>{const registeredShared=getRegisteredShare(this.shareScopeMap,sharedKey,sharedVal,this.hooks.lifecycle.resolveShare);if(!registeredShared&&sharedVal&&sharedVal.lib)this.setShared({pkgName:sharedKey,lib:sharedVal.lib,get:sharedVal.get,loaded:true,shared:sharedVal,from:userOptions.name})})});return{shareInfos,shared}}async loadShare(pkgName,extraOptions){const{host}=this;const shareInfo=getTargetSharedOptions({pkgName,extraOptions,shareInfos:host.options.shared});if(null==shareInfo?void 0:shareInfo.scope)await Promise.all(shareInfo.scope.map(async shareScope=>{await Promise.all(this.initializeSharing(shareScope,{strategy:shareInfo.strategy}))}));const loadShareRes=await this.hooks.lifecycle.beforeLoadShare.emit({pkgName,shareInfo,shared:host.options.shared,origin:host});const{shareInfo:shareInfoRes}=loadShareRes;assert(shareInfoRes,`Cannot find ${pkgName} Share in the ${host.options.name}. Please ensure that the ${pkgName} Share parameters have been injected`);const registeredShared=getRegisteredShare(this.shareScopeMap,pkgName,shareInfoRes,this.hooks.lifecycle.resolveShare);const addUseIn=shared=>{if(!shared.useIn)shared.useIn=[];addUniqueItem(shared.useIn,host.options.name)};if(registeredShared&&registeredShared.lib){addUseIn(registeredShared);return registeredShared.lib}if(registeredShared&&registeredShared.loading&&!registeredShared.loaded){const factory=await registeredShared.loading;registeredShared.loaded=true;if(!registeredShared.lib)registeredShared.lib=factory;addUseIn(registeredShared);return factory}if(registeredShared){const asyncLoadProcess=async()=>{const factory=await registeredShared.get();shareInfoRes.lib=factory;shareInfoRes.loaded=true;addUseIn(shareInfoRes);const gShared=getRegisteredShare(this.shareScopeMap,pkgName,shareInfoRes,this.hooks.lifecycle.resolveShare);if(gShared){gShared.lib=factory;gShared.loaded=true;addUseIn(gShared)}return factory};const loading=asyncLoadProcess();this.setShared({pkgName,loaded:false,shared:registeredShared,from:host.options.name,lib:null,loading});return loading}{if(null==extraOptions?void 0:extraOptions.customShareInfo)return false;const asyncLoadProcess=async()=>{const factory=await shareInfoRes.get();shareInfoRes.lib=factory;shareInfoRes.loaded=true;addUseIn(shareInfoRes);const gShared=getRegisteredShare(this.shareScopeMap,pkgName,shareInfoRes,this.hooks.lifecycle.resolveShare);if(gShared){gShared.lib=factory;gShared.loaded=true}return factory};const loading=asyncLoadProcess();this.setShared({pkgName,loaded:false,shared:shareInfoRes,from:host.options.name,lib:null,loading});return loading}}initializeSharing(shareScopeName=DEFAULT_SCOPE,extraOptions){const{host}=this;const from=null==extraOptions?void 0:extraOptions.from;const strategy=null==extraOptions?void 0:extraOptions.strategy;let initScope=null==extraOptions?void 0:extraOptions.initScope;const promises=[];if("build"!==from){const{initTokens}=this;if(!initScope)initScope=[];let initToken=initTokens[shareScopeName];if(!initToken)initToken=initTokens[shareScopeName]={from:this.host.name};if(initScope.indexOf(initToken)>=0)return promises;initScope.push(initToken)}const shareScope=this.shareScopeMap;const hostName=host.options.name;if(!shareScope[shareScopeName])shareScope[shareScopeName]={};const scope=shareScope[shareScopeName];const register=(name,shared)=>{var _activeVersion_shareConfig;const{version,eager}=shared;scope[name]=scope[name]||{};const versions=scope[name];const activeVersion=versions[version];const activeVersionEager=Boolean(activeVersion&&(activeVersion.eager||(null==(_activeVersion_shareConfig=activeVersion.shareConfig)?void 0:_activeVersion_shareConfig.eager)));if(!activeVersion||"loaded-first"!==activeVersion.strategy&&!activeVersion.loaded&&(Boolean(!eager)!==!activeVersionEager?eager:hostName>activeVersion.from))versions[version]=shared};const initFn=mod=>mod&&mod.init&&mod.init(shareScope[shareScopeName],initScope);const initRemoteModule=async key=>{const{module}=await host.remoteHandler.getRemoteModuleAndOptions({id:key});if(module.getEntry){let remoteEntryExports;try{remoteEntryExports=await module.getEntry()}catch(error){remoteEntryExports=await host.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:key,error,from:"runtime",lifecycle:"beforeLoadShare",origin:host})}if(!module.inited){await initFn(remoteEntryExports);module.inited=true}}};Object.keys(host.options.shared).forEach(shareName=>{const sharedArr=host.options.shared[shareName];sharedArr.forEach(shared=>{if(shared.scope.includes(shareScopeName))register(shareName,shared)})});if("version-first"===host.options.shareStrategy||"version-first"===strategy)host.options.remotes.forEach(remote=>{if(remote.shareScope===shareScopeName)promises.push(initRemoteModule(remote.name))});return promises}loadShareSync(pkgName,extraOptions){const{host}=this;const shareInfo=getTargetSharedOptions({pkgName,extraOptions,shareInfos:host.options.shared});if(null==shareInfo?void 0:shareInfo.scope)shareInfo.scope.forEach(shareScope=>{this.initializeSharing(shareScope,{strategy:shareInfo.strategy})});const registeredShared=getRegisteredShare(this.shareScopeMap,pkgName,shareInfo,this.hooks.lifecycle.resolveShare);const addUseIn=shared=>{if(!shared.useIn)shared.useIn=[];addUniqueItem(shared.useIn,host.options.name)};if(registeredShared){if("function"==typeof registeredShared.lib){addUseIn(registeredShared);if(!registeredShared.loaded){registeredShared.loaded=true;if(registeredShared.from===host.options.name)shareInfo.loaded=true}return registeredShared.lib}if("function"==typeof registeredShared.get){const module=registeredShared.get();if(!(module instanceof Promise)){addUseIn(registeredShared);this.setShared({pkgName,loaded:true,from:host.options.name,lib:module,shared:registeredShared});return module}}}if(shareInfo.lib){if(!shareInfo.loaded)shareInfo.loaded=true;return shareInfo.lib}if(shareInfo.get){const module=shareInfo.get();if(module instanceof Promise){const errorCode=(null==extraOptions?void 0:extraOptions.from)==="build"?errorCodes.RUNTIME_005:errorCodes.RUNTIME_006;throw new Error(errorCodes.getShortErrorMsg(errorCode,errorCodes.runtimeDescMap,{hostName:host.options.name,sharedPkgName:pkgName}))}shareInfo.lib=module;this.setShared({pkgName,loaded:true,from:host.options.name,lib:shareInfo.lib,shared:shareInfo});return shareInfo.lib}throw new Error(errorCodes.getShortErrorMsg(errorCodes.RUNTIME_006,errorCodes.runtimeDescMap,{hostName:host.options.name,sharedPkgName:pkgName}))}initShareScopeMap(scopeName,shareScope,extraOptions={}){const{host}=this;this.shareScopeMap[scopeName]=shareScope;this.hooks.lifecycle.initContainerShareScopeMap.emit({shareScope,options:host.options,origin:host,scopeName,hostShareScopeMap:extraOptions.hostShareScopeMap})}setShared({pkgName,shared,from,lib,loading,loaded,get}){const{version,scope="default"}=shared,shareInfo=polyfills._object_without_properties_loose(shared,["version","scope"]);const scopes=Array.isArray(scope)?scope:[scope];scopes.forEach(sc=>{if(!this.shareScopeMap[sc])this.shareScopeMap[sc]={};if(!this.shareScopeMap[sc][pkgName])this.shareScopeMap[sc][pkgName]={};if(!this.shareScopeMap[sc][pkgName][version]){this.shareScopeMap[sc][pkgName][version]=polyfills._extends({version,scope:["default"]},shareInfo,{lib,loaded,loading});if(get)this.shareScopeMap[sc][pkgName][version].get=get;return}const registeredShared=this.shareScopeMap[sc][pkgName][version];if(loading&&!registeredShared.loading)registeredShared.loading=loading})}_setGlobalShareScopeMap(hostOptions){const globalShareScopeMap=getGlobalShareScope();const identifier=hostOptions.id||hostOptions.name;if(identifier&&!globalShareScopeMap[identifier])globalShareScopeMap[identifier]=this.shareScopeMap}constructor(host){this.hooks=new PluginSystem({afterResolve:new AsyncWaterfallHook("afterResolve"),beforeLoadShare:new AsyncWaterfallHook("beforeLoadShare"),loadShare:new AsyncHook,resolveShare:new SyncWaterfallHook("resolveShare"),initContainerShareScopeMap:new SyncWaterfallHook("initContainerShareScopeMap")});this.host=host;this.shareScopeMap={};this.initTokens={};this._setGlobalShareScopeMap(host.options)}}class RemoteHandler{formatAndRegisterRemote(globalOptions,userOptions){const userRemotes=userOptions.remotes||[];return userRemotes.reduce((res,remote)=>{this.registerRemote(remote,res,{force:false});return res},globalOptions.remotes)}setIdToRemoteMap(id,remoteMatchInfo){const{remote,expose}=remoteMatchInfo;const{name,alias}=remote;this.idToRemoteMap[id]={name:remote.name,expose};if(alias&&id.startsWith(name)){const idWithAlias=id.replace(name,alias);this.idToRemoteMap[idWithAlias]={name:remote.name,expose};return}if(alias&&id.startsWith(alias)){const idWithName=id.replace(alias,name);this.idToRemoteMap[idWithName]={name:remote.name,expose}}}async loadRemote(id,options){const{host}=this;try{const{loadFactory=true}=options||{loadFactory:true};const{module,moduleOptions,remoteMatchInfo}=await this.getRemoteModuleAndOptions({id});const{pkgNameOrAlias,remote,expose,id:idRes,remoteSnapshot}=remoteMatchInfo;const moduleOrFactory=await module.get(idRes,expose,options,remoteSnapshot);const moduleWrapper=await this.hooks.lifecycle.onLoad.emit({id:idRes,pkgNameOrAlias,expose,exposeModule:loadFactory?moduleOrFactory:void 0,exposeModuleFactory:loadFactory?void 0:moduleOrFactory,remote,options:moduleOptions,moduleInstance:module,origin:host});this.setIdToRemoteMap(id,remoteMatchInfo);if("function"==typeof moduleWrapper)return moduleWrapper;return moduleOrFactory}catch(error){const{from="runtime"}=options||{from:"runtime"};const failOver=await this.hooks.lifecycle.errorLoadRemote.emit({id,error,from,lifecycle:"onLoad",origin:host});if(!failOver)throw error;return failOver}}async preloadRemote(preloadOptions){const{host}=this;await this.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:preloadOptions,options:host.options,origin:host});const preloadOps=formatPreloadArgs(host.options.remotes,preloadOptions);await Promise.all(preloadOps.map(async ops=>{const{remote}=ops;const remoteInfo=getRemoteInfo(remote);const{globalSnapshot,remoteSnapshot}=await host.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:remote});const assets=await this.hooks.lifecycle.generatePreloadAssets.emit({origin:host,preloadOptions:ops,remote,remoteInfo,globalSnapshot,remoteSnapshot});if(!assets)return;preloadAssets(remoteInfo,host,assets)}))}registerRemotes(remotes,options){const{host}=this;remotes.forEach(remote=>{this.registerRemote(remote,host.options.remotes,{force:null==options?void 0:options.force})})}async getRemoteModuleAndOptions(options){const{host}=this;const{id}=options;let loadRemoteArgs;try{loadRemoteArgs=await this.hooks.lifecycle.beforeRequest.emit({id,options:host.options,origin:host})}catch(error){loadRemoteArgs=await this.hooks.lifecycle.errorLoadRemote.emit({id,options:host.options,origin:host,from:"runtime",error,lifecycle:"beforeRequest"});if(!loadRemoteArgs)throw error}const{id:idRes}=loadRemoteArgs;const remoteSplitInfo=matchRemoteWithNameAndExpose(host.options.remotes,idRes);assert(remoteSplitInfo,errorCodes.getShortErrorMsg(errorCodes.RUNTIME_004,errorCodes.runtimeDescMap,{hostName:host.options.name,requestId:idRes}));const{remote:rawRemote}=remoteSplitInfo;const remoteInfo=getRemoteInfo(rawRemote);const matchInfo=await host.sharedHandler.hooks.lifecycle.afterResolve.emit(polyfills._extends({id:idRes},remoteSplitInfo,{options:host.options,origin:host,remoteInfo}));const{remote,expose}=matchInfo;assert(remote&&expose,`The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ${idRes}.`);let module=host.moduleCache.get(remote.name);const moduleOptions={host:host,remoteInfo};if(!module){module=new Module(moduleOptions);host.moduleCache.set(remote.name,module)}return{module,moduleOptions,remoteMatchInfo:matchInfo}}registerRemote(remote,targetRemotes,options){const{host}=this;const normalizeRemote=()=>{if(remote.alias){const findEqual=targetRemotes.find(item=>{var _item_alias;return remote.alias&&(item.name.startsWith(remote.alias)||(null==(_item_alias=item.alias)?void 0:_item_alias.startsWith(remote.alias)))});assert(!findEqual,`The alias ${remote.alias} of remote ${remote.name} is not allowed to be the prefix of ${findEqual&&findEqual.name} name or alias`)}if("entry"in remote){if(sdk.isBrowserEnv()&&!remote.entry.startsWith("http"))remote.entry=new URL(remote.entry,window.location.origin).href}if(!remote.shareScope)remote.shareScope=DEFAULT_SCOPE;if(!remote.type)remote.type=DEFAULT_REMOTE_TYPE};this.hooks.lifecycle.beforeRegisterRemote.emit({remote,origin:host});const registeredRemote=targetRemotes.find(item=>item.name===remote.name);if(registeredRemote){const messages=[`The remote "${remote.name}" is already registered.`,"Please note that overriding it may cause unexpected errors."];if(null==options?void 0:options.force){this.removeRemote(registeredRemote);normalizeRemote();targetRemotes.push(remote);this.hooks.lifecycle.registerRemote.emit({remote,origin:host});sdk.warn(messages.join(" "))}}else{normalizeRemote();targetRemotes.push(remote);this.hooks.lifecycle.registerRemote.emit({remote,origin:host})}}removeRemote(remote){try{const{host}=this;const{name}=remote;const remoteIndex=host.options.remotes.findIndex(item=>item.name===name);if(-1!==remoteIndex)host.options.remotes.splice(remoteIndex,1);const loadedModule=host.moduleCache.get(remote.name);if(loadedModule){const remoteInfo=loadedModule.remoteInfo;const key=remoteInfo.entryGlobalName;if(CurrentGlobal[key]){var _Object_getOwnPropertyDescriptor;if(null==(_Object_getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor(CurrentGlobal,key))?void 0:_Object_getOwnPropertyDescriptor.configurable)delete CurrentGlobal[key];else CurrentGlobal[key]=void 0}const remoteEntryUniqueKey=getRemoteEntryUniqueKey(loadedModule.remoteInfo);if(globalLoading[remoteEntryUniqueKey])delete globalLoading[remoteEntryUniqueKey];host.snapshotHandler.manifestCache.delete(remoteInfo.entry);let remoteInsId=remoteInfo.buildVersion?sdk.composeKeyWithSeparator(remoteInfo.name,remoteInfo.buildVersion):remoteInfo.name;const remoteInsIndex=CurrentGlobal.__FEDERATION__.__INSTANCES__.findIndex(ins=>{if(remoteInfo.buildVersion)return ins.options.id===remoteInsId;return ins.name===remoteInsId});if(-1!==remoteInsIndex){const remoteIns=CurrentGlobal.__FEDERATION__.__INSTANCES__[remoteInsIndex];remoteInsId=remoteIns.options.id||remoteInsId;const globalShareScopeMap=getGlobalShareScope();let isAllSharedNotUsed=true;const needDeleteKeys=[];Object.keys(globalShareScopeMap).forEach(instId=>{const shareScopeMap=globalShareScopeMap[instId];shareScopeMap&&Object.keys(shareScopeMap).forEach(shareScope=>{const shareScopeVal=shareScopeMap[shareScope];shareScopeVal&&Object.keys(shareScopeVal).forEach(shareName=>{const sharedPkgs=shareScopeVal[shareName];sharedPkgs&&Object.keys(sharedPkgs).forEach(shareVersion=>{const shared=sharedPkgs[shareVersion];if(shared&&"object"==typeof shared&&shared.from===remoteInfo.name)if(shared.loaded||shared.loading){shared.useIn=shared.useIn.filter(usedHostName=>usedHostName!==remoteInfo.name);if(shared.useIn.length)isAllSharedNotUsed=false;else needDeleteKeys.push([instId,shareScope,shareName,shareVersion])}else needDeleteKeys.push([instId,shareScope,shareName,shareVersion])})})})});if(isAllSharedNotUsed){remoteIns.shareScopeMap={};delete globalShareScopeMap[remoteInsId]}needDeleteKeys.forEach(([insId,shareScope,shareName,shareVersion])=>{var _globalShareScopeMap_insId_shareScope_shareName,_globalShareScopeMap_insId_shareScope,_globalShareScopeMap_insId;null==(_globalShareScopeMap_insId=globalShareScopeMap[insId])||null==(_globalShareScopeMap_insId_shareScope=_globalShareScopeMap_insId[shareScope])||null==(_globalShareScopeMap_insId_shareScope_shareName=_globalShareScopeMap_insId_shareScope[shareName])||delete _globalShareScopeMap_insId_shareScope_shareName[shareVersion]});CurrentGlobal.__FEDERATION__.__INSTANCES__.splice(remoteInsIndex,1)}const{hostGlobalSnapshot}=getGlobalRemoteInfo(remote,host);if(hostGlobalSnapshot){const remoteKey=hostGlobalSnapshot&&"remotesInfo"in hostGlobalSnapshot&&hostGlobalSnapshot.remotesInfo&&getInfoWithoutType(hostGlobalSnapshot.remotesInfo,remote.name).key;if(remoteKey){delete hostGlobalSnapshot.remotesInfo[remoteKey];if(Boolean(Global.__FEDERATION__.__MANIFEST_LOADING__[remoteKey]))delete Global.__FEDERATION__.__MANIFEST_LOADING__[remoteKey]}}host.moduleCache.delete(remote.name)}}catch(err){logger.log("removeRemote fail: ",err)}}constructor(host){this.hooks=new PluginSystem({beforeRegisterRemote:new SyncWaterfallHook("beforeRegisterRemote"),registerRemote:new SyncWaterfallHook("registerRemote"),beforeRequest:new AsyncWaterfallHook("beforeRequest"),onLoad:new AsyncHook("onLoad"),handlePreloadModule:new SyncHook("handlePreloadModule"),errorLoadRemote:new AsyncHook("errorLoadRemote"),beforePreloadRemote:new AsyncHook("beforePreloadRemote"),generatePreloadAssets:new AsyncHook("generatePreloadAssets"),afterPreloadRemote:new AsyncHook,loadEntry:new AsyncHook});this.host=host;this.idToRemoteMap={}}}class ModuleFederation{initOptions(userOptions){this.registerPlugins(userOptions.plugins);const options=this.formatOptions(this.options,userOptions);this.options=options;return options}async loadShare(pkgName,extraOptions){return this.sharedHandler.loadShare(pkgName,extraOptions)}loadShareSync(pkgName,extraOptions){return this.sharedHandler.loadShareSync(pkgName,extraOptions)}initializeSharing(shareScopeName=DEFAULT_SCOPE,extraOptions){return this.sharedHandler.initializeSharing(shareScopeName,extraOptions)}initRawContainer(name,url,container){const remoteInfo=getRemoteInfo({name,entry:url});const module=new Module({host:this,remoteInfo});module.remoteEntryExports=container;this.moduleCache.set(name,module);return module}async loadRemote(id,options){return this.remoteHandler.loadRemote(id,options)}async preloadRemote(preloadOptions){return this.remoteHandler.preloadRemote(preloadOptions)}initShareScopeMap(scopeName,shareScope,extraOptions={}){this.sharedHandler.initShareScopeMap(scopeName,shareScope,extraOptions)}formatOptions(globalOptions,userOptions){const{shared}=formatShareConfigs(globalOptions,userOptions);const{userOptions:userOptionsRes,options:globalOptionsRes}=this.hooks.lifecycle.beforeInit.emit({origin:this,userOptions,options:globalOptions,shareInfo:shared});const remotes=this.remoteHandler.formatAndRegisterRemote(globalOptionsRes,userOptionsRes);const{shared:handledShared}=this.sharedHandler.registerShared(globalOptionsRes,userOptionsRes);const plugins=[...globalOptionsRes.plugins];if(userOptionsRes.plugins)userOptionsRes.plugins.forEach(plugin=>{if(!plugins.includes(plugin))plugins.push(plugin)});const optionsRes=polyfills._extends({},globalOptions,userOptions,{plugins,remotes,shared:handledShared});this.hooks.lifecycle.init.emit({origin:this,options:optionsRes});return optionsRes}registerPlugins(plugins){const pluginRes=registerPlugins(plugins,this);this.options.plugins=this.options.plugins.reduce((res,plugin)=>{if(!plugin)return res;if(res&&!res.find(item=>item.name===plugin.name))res.push(plugin);return res},pluginRes||[])}registerRemotes(remotes,options){return this.remoteHandler.registerRemotes(remotes,options)}registerShared(shared){this.sharedHandler.registerShared(this.options,polyfills._extends({},this.options,{shared}))}constructor(userOptions){this.hooks=new PluginSystem({beforeInit:new SyncWaterfallHook("beforeInit"),init:new SyncHook,beforeInitContainer:new AsyncWaterfallHook("beforeInitContainer"),initContainer:new AsyncWaterfallHook("initContainer")});this.version="0.17.1";this.moduleCache=new Map;this.loaderHook=new PluginSystem({getModuleInfo:new SyncHook,createScript:new SyncHook,createLink:new SyncHook,fetch:new AsyncHook,loadEntryError:new AsyncHook,getModuleFactory:new AsyncHook});this.bridgeHook=new PluginSystem({beforeBridgeRender:new SyncHook,afterBridgeRender:new SyncHook,beforeBridgeDestroy:new SyncHook,afterBridgeDestroy:new SyncHook});const plugins=[snapshotPlugin(),generatePreloadAssetsPlugin()];const defaultOptions={id:getBuilderId(),name:userOptions.name,plugins,remotes:[],shared:{},inBrowser:sdk.isBrowserEnv()};this.name=userOptions.name;this.options=defaultOptions;this.snapshotHandler=new SnapshotHandler(this);this.sharedHandler=new SharedHandler(this);this.remoteHandler=new RemoteHandler(this);this.shareScopeMap=this.sharedHandler.shareScopeMap;this.registerPlugins([...defaultOptions.plugins,...userOptions.plugins||[]]);this.options=this.formatOptions(defaultOptions,userOptions)}}var index=/*#__PURE__*/Object.freeze({__proto__:null});exports.loadScript=sdk.loadScript;exports.loadScriptNode=sdk.loadScriptNode;exports.CurrentGlobal=CurrentGlobal;exports.Global=Global;exports.Module=Module;exports.ModuleFederation=ModuleFederation;exports.addGlobalSnapshot=addGlobalSnapshot;exports.assert=assert;exports.getGlobalFederationConstructor=getGlobalFederationConstructor;exports.getGlobalSnapshot=getGlobalSnapshot;exports.getInfoWithoutType=getInfoWithoutType;exports.getRegisteredShare=getRegisteredShare;exports.getRemoteEntry=getRemoteEntry;exports.getRemoteInfo=getRemoteInfo;exports.helpers=helpers;exports.isStaticResourcesEqual=isStaticResourcesEqual;exports.matchRemoteWithNameAndExpose=matchRemoteWithNameAndExpose;exports.registerGlobalPlugins=registerGlobalPlugins;exports.resetFederationGlobalInfo=resetFederationGlobalInfo;exports.safeWrapper=safeWrapper;exports.satisfy=satisfy;exports.setGlobalFederationConstructor=setGlobalFederationConstructor;exports.setGlobalFederationInstance=setGlobalFederationInstance;exports.types=index},9284:function(__unused_webpack_module,exports){function _extends(){_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)if(Object.prototype.hasOwnProperty.call(source,key))target[key]=source[key]}return target};return _extends.apply(this,arguments)}function _object_without_properties_loose(source,excluded){if(null==source)return{};var target={};var sourceKeys=Object.keys(source);var key,i;for(i=0;i<sourceKeys.length;i++){key=sourceKeys[i];if(!(excluded.indexOf(key)>=0))target[key]=source[key]}return target}exports._extends=_extends;exports._object_without_properties_loose=_object_without_properties_loose},6124:function(__unused_webpack_module,exports,__webpack_require__){var runtimeCore=__webpack_require__(3912);var errorCodes=__webpack_require__(4657);var utils=__webpack_require__(2847);function createInstance(options){const ModuleFederationConstructor=runtimeCore.getGlobalFederationConstructor()||runtimeCore.ModuleFederation;return new ModuleFederationConstructor(options)}let FederationInstance=null;function init(options){const instance=utils.getGlobalFederationInstance(options.name,options.version);if(instance){instance.initOptions(options);if(!FederationInstance)FederationInstance=instance;return instance}FederationInstance=createInstance(options);runtimeCore.setGlobalFederationInstance(FederationInstance);return FederationInstance}function loadRemote(...args){runtimeCore.assert(FederationInstance,errorCodes.getShortErrorMsg(errorCodes.RUNTIME_009,errorCodes.runtimeDescMap));const loadRemote1=FederationInstance.loadRemote;return loadRemote1.apply(FederationInstance,args)}function loadShare(...args){runtimeCore.assert(FederationInstance,errorCodes.getShortErrorMsg(errorCodes.RUNTIME_009,errorCodes.runtimeDescMap));const loadShare1=FederationInstance.loadShare;return loadShare1.apply(FederationInstance,args)}function loadShareSync(...args){runtimeCore.assert(FederationInstance,errorCodes.getShortErrorMsg(errorCodes.RUNTIME_009,errorCodes.runtimeDescMap));const loadShareSync1=FederationInstance.loadShareSync;return loadShareSync1.apply(FederationInstance,args)}function preloadRemote(...args){runtimeCore.assert(FederationInstance,errorCodes.getShortErrorMsg(errorCodes.RUNTIME_009,errorCodes.runtimeDescMap));return FederationInstance.preloadRemote.apply(FederationInstance,args)}function registerRemotes(...args){runtimeCore.assert(FederationInstance,errorCodes.getShortErrorMsg(errorCodes.RUNTIME_009,errorCodes.runtimeDescMap));return FederationInstance.registerRemotes.apply(FederationInstance,args)}function registerPlugins(...args){runtimeCore.assert(FederationInstance,errorCodes.getShortErrorMsg(errorCodes.RUNTIME_009,errorCodes.runtimeDescMap));return FederationInstance.registerPlugins.apply(FederationInstance,args)}function getInstance(){return FederationInstance}function registerShared(...args){runtimeCore.assert(FederationInstance,errorCodes.getShortErrorMsg(errorCodes.RUNTIME_009,errorCodes.runtimeDescMap));return FederationInstance.registerShared.apply(FederationInstance,args)}runtimeCore.setGlobalFederationConstructor(runtimeCore.ModuleFederation);exports.Module=runtimeCore.Module;exports.ModuleFederation=runtimeCore.ModuleFederation;exports.getRemoteEntry=runtimeCore.getRemoteEntry;exports.getRemoteInfo=runtimeCore.getRemoteInfo;exports.loadScript=runtimeCore.loadScript;exports.loadScriptNode=runtimeCore.loadScriptNode;exports.registerGlobalPlugins=runtimeCore.registerGlobalPlugins;exports.createInstance=createInstance;exports.getInstance=getInstance;exports.init=init;exports.loadRemote=loadRemote;exports.loadShare=loadShare;exports.loadShareSync=loadShareSync;exports.preloadRemote=preloadRemote;exports.registerPlugins=registerPlugins;exports.registerRemotes=registerRemotes;exports.registerShared=registerShared},2847:function(__unused_webpack_module,exports,__webpack_require__){var runtimeCore=__webpack_require__(3912);function getBuilderId(){return"integrations_app:0.4.82"}function getGlobalFederationInstance(name,version){const buildId=getBuilderId();return runtimeCore.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(GMInstance=>{if(buildId&&GMInstance.options.id===buildId)return true;if(GMInstance.options.name===name&&!GMInstance.options.version&&!version)return true;if(GMInstance.options.name===name&&version&&GMInstance.options.version===version)return true;return false})}exports.getGlobalFederationInstance=getGlobalFederationInstance},6492:function(__unused_webpack_module,exports,__webpack_require__){var polyfills=__webpack_require__(6232);const FederationModuleManifest="federation-manifest.json";const MANIFEST_EXT=".json";const BROWSER_LOG_KEY="FEDERATION_DEBUG";const NameTransformSymbol={AT:"@",HYPHEN:"-",SLASH:"/"};const NameTransformMap={[NameTransformSymbol.AT]:"scope_",[NameTransformSymbol.HYPHEN]:"_",[NameTransformSymbol.SLASH]:"__"};const EncodedNameTransformMap={[NameTransformMap[NameTransformSymbol.AT]]:NameTransformSymbol.AT,[NameTransformMap[NameTransformSymbol.HYPHEN]]:NameTransformSymbol.HYPHEN,[NameTransformMap[NameTransformSymbol.SLASH]]:NameTransformSymbol.SLASH};const SEPARATOR=":";const ManifestFileName="mf-manifest.json";const StatsFileName="mf-stats.json";const MFModuleType={NPM:"npm",APP:"app"};const MODULE_DEVTOOL_IDENTIFIER="__MF_DEVTOOLS_MODULE_INFO__";const ENCODE_NAME_PREFIX="ENCODE_NAME_PREFIX";const TEMP_DIR=".federation";const MFPrefetchCommon={identifier:"MFDataPrefetch",globalKey:"__PREFETCH__",library:"mf-data-prefetch",exportsKey:"__PREFETCH_EXPORTS__",fileName:"bootstrap.js"};var ContainerPlugin=/*#__PURE__*/Object.freeze({__proto__:null});var ContainerReferencePlugin=/*#__PURE__*/Object.freeze({__proto__:null});var ModuleFederationPlugin=/*#__PURE__*/Object.freeze({__proto__:null});var SharePlugin=/*#__PURE__*/Object.freeze({__proto__:null});function isBrowserEnv(){return"undefined"!=typeof window&&void 0!==window.document}function isReactNativeEnv(){var _navigator;return"undefined"!=typeof navigator&&(null==(_navigator=navigator)?void 0:_navigator.product)==="ReactNative"}function isBrowserDebug(){try{if(isBrowserEnv()&&window.localStorage)return Boolean(localStorage.getItem(BROWSER_LOG_KEY))}catch(error1){}return false}function isDebugMode(){if("undefined"!=typeof process&&process.env&&process.env["FEDERATION_DEBUG"])return Boolean(process.env["FEDERATION_DEBUG"]);if("undefined"!=typeof FEDERATION_DEBUG&&Boolean(FEDERATION_DEBUG))return true;return isBrowserDebug()}const getProcessEnv=function(){return"undefined"!=typeof process&&process.env?process.env:{}};const LOG_CATEGORY="[ Federation Runtime ]";const parseEntry=(str,devVerOrUrl,separator=SEPARATOR)=>{const strSplit=str.split(separator);const devVersionOrUrl="development"===getProcessEnv()["NODE_ENV"]&&devVerOrUrl;const defaultVersion="*";const isEntry=s=>s.startsWith("http")||s.includes(MANIFEST_EXT);if(strSplit.length>=2){let[name,...versionOrEntryArr]=strSplit;if(str.startsWith(separator)){name=strSplit.slice(0,2).join(separator);versionOrEntryArr=[devVersionOrUrl||strSplit.slice(2).join(separator)]}let versionOrEntry=devVersionOrUrl||versionOrEntryArr.join(separator);if(isEntry(versionOrEntry))return{name,entry:versionOrEntry};return{name,version:versionOrEntry||defaultVersion}}if(1===strSplit.length){const[name]=strSplit;if(devVersionOrUrl&&isEntry(devVersionOrUrl))return{name,entry:devVersionOrUrl};return{name,version:devVersionOrUrl||defaultVersion}}throw`Invalid entry value: ${str}`};const composeKeyWithSeparator=function(...args){if(!args.length)return"";return args.reduce((sum,cur)=>{if(!cur)return sum;if(!sum)return cur;return`${sum}${SEPARATOR}${cur}`},"")};const encodeName=function(name,prefix="",withExt=false){try{const ext=withExt?".js":"";return`${prefix}${name.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])}${ext}`}catch(err){throw err}};const decodeName=function(name,prefix,withExt){try{let decodedName=name;if(prefix){if(!decodedName.startsWith(prefix))return decodedName;decodedName=decodedName.replace(new RegExp(prefix,"g"),"")}decodedName=decodedName.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]]);if(withExt)decodedName=decodedName.replace(".js","");return decodedName}catch(err){throw err}};const generateExposeFilename=(exposeName,withExt)=>{if(!exposeName)return"";let expose=exposeName;if("."===expose)expose="default_export";if(expose.startsWith("./"))expose=expose.replace("./","");return encodeName(expose,"__federation_expose_",withExt)};const generateShareFilename=(pkgName,withExt)=>{if(!pkgName)return"";return encodeName(pkgName,"__federation_shared_",withExt)};const getResourceUrl=(module,sourceUrl)=>{if("getPublicPath"in module){let publicPath;publicPath=module.getPublicPath.startsWith("function")?new Function("return "+module.getPublicPath)()():new Function(module.getPublicPath)();return`${publicPath}${sourceUrl}`}if("publicPath"in module){if(!isBrowserEnv()&&!isReactNativeEnv()&&"ssrPublicPath"in module)return`${module.ssrPublicPath}${sourceUrl}`;return`${module.publicPath}${sourceUrl}`}console.warn("Cannot get resource URL. If in debug mode, please ignore.",module,sourceUrl);return""};const assert=(condition,msg)=>{if(!condition)error(msg)};const error=msg=>{throw new Error(`${LOG_CATEGORY}: ${msg}`)};const warn=msg=>{console.warn(`${LOG_CATEGORY}: ${msg}`)};function safeToString(info){try{return JSON.stringify(info,null,2)}catch(e){return""}}const VERSION_PATTERN_REGEXP=/^([\d^=v<>~]|[*xX]$)/;function isRequiredVersion(str){return VERSION_PATTERN_REGEXP.test(str)}const simpleJoinRemoteEntry=(rPath,rName)=>{if(!rPath)return rName;const transformPath=str=>{if("."===str)return"";if(str.startsWith("./"))return str.replace("./","");if(str.startsWith("/")){const strWithoutSlash=str.slice(1);if(strWithoutSlash.endsWith("/"))return strWithoutSlash.slice(0,-1);return strWithoutSlash}return str};const transformedPath=transformPath(rPath);if(!transformedPath)return rName;if(transformedPath.endsWith("/"))return`${transformedPath}${rName}`;return`${transformedPath}/${rName}`};function inferAutoPublicPath(url){return url.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")}function generateSnapshotFromManifest(manifest,options={}){var _manifest_metaData,_manifest_metaData1;const{remotes={},overrides={},version}=options;let remoteSnapshot;const getPublicPath=()=>{if(!("publicPath"in manifest.metaData))return manifest.metaData.getPublicPath;if("auto"===manifest.metaData.publicPath&&version)return inferAutoPublicPath(version);return manifest.metaData.publicPath};const overridesKeys=Object.keys(overrides);let remotesInfo={};if(!Object.keys(remotes).length){var _manifest_remotes;remotesInfo=(null==(_manifest_remotes=manifest.remotes)?void 0:_manifest_remotes.reduce((res,next)=>{let matchedVersion;const name=next.federationContainerName;matchedVersion=overridesKeys.includes(name)?overrides[name]:"version"in next?next.version:next.entry;res[name]={matchedVersion};return res},{}))||{}}Object.keys(remotes).forEach(key=>remotesInfo[key]={matchedVersion:overridesKeys.includes(key)?overrides[key]:remotes[key]});const{remoteEntry:{path:remoteEntryPath,name:remoteEntryName,type:remoteEntryType},types:remoteTypes,buildInfo:{buildVersion},globalName,ssrRemoteEntry}=manifest.metaData;const{exposes}=manifest;let basicRemoteSnapshot={version:version?version:"",buildVersion,globalName,remoteEntry:simpleJoinRemoteEntry(remoteEntryPath,remoteEntryName),remoteEntryType,remoteTypes:simpleJoinRemoteEntry(remoteTypes.path,remoteTypes.name),remoteTypesZip:remoteTypes.zip||"",remoteTypesAPI:remoteTypes.api||"",remotesInfo,shared:null==manifest?void 0:manifest.shared.map(item=>({assets:item.assets,sharedName:item.name,version:item.version})),modules:null==exposes?void 0:exposes.map(expose=>({moduleName:expose.name,modulePath:expose.path,assets:expose.assets}))};if(null==(_manifest_metaData=manifest.metaData)?void 0:_manifest_metaData.prefetchInterface){const prefetchInterface=manifest.metaData.prefetchInterface;basicRemoteSnapshot=polyfills._({},basicRemoteSnapshot,{prefetchInterface})}if(null==(_manifest_metaData1=manifest.metaData)?void 0:_manifest_metaData1.prefetchEntry){const{path,name,type}=manifest.metaData.prefetchEntry;basicRemoteSnapshot=polyfills._({},basicRemoteSnapshot,{prefetchEntry:simpleJoinRemoteEntry(path,name),prefetchEntryType:type})}remoteSnapshot="publicPath"in manifest.metaData?polyfills._({},basicRemoteSnapshot,{publicPath:getPublicPath(),ssrPublicPath:manifest.metaData.ssrPublicPath}):polyfills._({},basicRemoteSnapshot,{getPublicPath:getPublicPath()});if(ssrRemoteEntry){const fullSSRRemoteEntry=simpleJoinRemoteEntry(ssrRemoteEntry.path,ssrRemoteEntry.name);remoteSnapshot.ssrRemoteEntry=fullSSRRemoteEntry;remoteSnapshot.ssrRemoteEntryType=ssrRemoteEntry.type||"commonjs-module"}return remoteSnapshot}function isManifestProvider(moduleInfo){if("remoteEntry"in moduleInfo&&moduleInfo.remoteEntry.includes(MANIFEST_EXT))return true;return false}const PREFIX="[ Module Federation ]";let Logger=class{setPrefix(prefix){this.prefix=prefix}log(...args){console.log(this.prefix,...args)}warn(...args){console.log(this.prefix,...args)}error(...args){console.log(this.prefix,...args)}success(...args){console.log(this.prefix,...args)}info(...args){console.log(this.prefix,...args)}ready(...args){console.log(this.prefix,...args)}debug(...args){if(isDebugMode())console.log(this.prefix,...args)}constructor(prefix){this.prefix=prefix}};function createLogger(prefix){return new Logger(prefix)}const logger=createLogger(PREFIX);async function safeWrapper(callback,disableWarn){try{const res=await callback();return res}catch(e){disableWarn||warn(e);return}}function isStaticResourcesEqual(url1,url2){const REG_EXP=/^(https?:)?\/\//i;const relativeUrl1=url1.replace(REG_EXP,"").replace(/\/$/,"");const relativeUrl2=url2.replace(REG_EXP,"").replace(/\/$/,"");return relativeUrl1===relativeUrl2}function createScript(info){let script=null;let needAttach=true;let timeout=2e4;let timeoutId;const scripts=document.getElementsByTagName("script");for(let i=0;i<scripts.length;i++){const s=scripts[i];const scriptSrc=s.getAttribute("src");if(scriptSrc&&isStaticResourcesEqual(scriptSrc,info.url)){script=s;needAttach=false;break}}if(!script){const attrs=info.attrs;script=document.createElement("script");script.type=(null==attrs?void 0:attrs["type"])==="module"?"module":"text/javascript";let createScriptRes;if(info.createScriptHook){createScriptRes=info.createScriptHook(info.url,info.attrs);if(createScriptRes instanceof HTMLScriptElement)script=createScriptRes;else if("object"==typeof createScriptRes){if("script"in createScriptRes&&createScriptRes.script)script=createScriptRes.script;if("timeout"in createScriptRes&&createScriptRes.timeout)timeout=createScriptRes.timeout}}if(!script.src)script.src=info.url;if(attrs&&!createScriptRes)Object.keys(attrs).forEach(name=>{if(script){if("async"===name||"defer"===name)script[name]=attrs[name];else if(!script.getAttribute(name))script.setAttribute(name,attrs[name])}})}const onScriptComplete=async(prev,event)=>{clearTimeout(timeoutId);const onScriptCompleteCallback=()=>{if((null==event?void 0:event.type)==="error")(null==info?void 0:info.onErrorCallback)&&(null==info||info.onErrorCallback(event));else(null==info?void 0:info.cb)&&(null==info||info.cb())};if(script){script.onerror=null;script.onload=null;safeWrapper(()=>{const{needDeleteScript=true}=info;if(needDeleteScript)(null==script?void 0:script.parentNode)&&script.parentNode.removeChild(script)});if(prev&&"function"==typeof prev){const result=prev(event);if(result instanceof Promise){const res=await result;onScriptCompleteCallback();return res}onScriptCompleteCallback();return result}}onScriptCompleteCallback()};script.onerror=onScriptComplete.bind(null,script.onerror);script.onload=onScriptComplete.bind(null,script.onload);timeoutId=setTimeout(()=>{onScriptComplete(null,new Error(`Remote script "${info.url}" time-outed.`))},timeout);return{script,needAttach}}function createLink(info){let link=null;let needAttach=true;const links=document.getElementsByTagName("link");for(let i=0;i<links.length;i++){const l=links[i];const linkHref=l.getAttribute("href");const linkRel=l.getAttribute("rel");if(linkHref&&isStaticResourcesEqual(linkHref,info.url)&&linkRel===info.attrs["rel"]){link=l;needAttach=false;break}}if(!link){link=document.createElement("link");link.setAttribute("href",info.url);let createLinkRes;const attrs=info.attrs;if(info.createLinkHook){createLinkRes=info.createLinkHook(info.url,attrs);if(createLinkRes instanceof HTMLLinkElement)link=createLinkRes}if(attrs&&!createLinkRes)Object.keys(attrs).forEach(name=>{if(link&&!link.getAttribute(name))link.setAttribute(name,attrs[name])})}const onLinkComplete=(prev,event)=>{const onLinkCompleteCallback=()=>{if((null==event?void 0:event.type)==="error")(null==info?void 0:info.onErrorCallback)&&(null==info||info.onErrorCallback(event));else(null==info?void 0:info.cb)&&(null==info||info.cb())};if(link){link.onerror=null;link.onload=null;safeWrapper(()=>{const{needDeleteLink=true}=info;if(needDeleteLink)(null==link?void 0:link.parentNode)&&link.parentNode.removeChild(link)});if(prev){const res=prev(event);onLinkCompleteCallback();return res}}onLinkCompleteCallback()};link.onerror=onLinkComplete.bind(null,link.onerror);link.onload=onLinkComplete.bind(null,link.onload);return{link,needAttach}}function loadScript(url,info){const{attrs={},createScriptHook}=info;return new Promise((resolve,reject)=>{const{script,needAttach}=createScript({url,cb:resolve,onErrorCallback:reject,attrs:polyfills._({fetchpriority:"high"},attrs),createScriptHook,needDeleteScript:true});needAttach&&document.head.appendChild(script)})}function importNodeModule(name){if(!name)throw new Error("import specifier is required");const importModule=new Function("name","return import(name)");return importModule(name).then(res=>res).catch(error1=>{console.error(`Error importing module ${name}:`,error1);throw error1})}const loadNodeFetch=async()=>{const fetchModule=await importNodeModule("node-fetch");return fetchModule.default||fetchModule};const lazyLoaderHookFetch=async(input,init,loaderHook)=>{const hook=(url,init)=>loaderHook.lifecycle.fetch.emit(url,init);const res=await hook(input,init||{});if(!res||!(res instanceof Response)){const fetchFunction="undefined"==typeof fetch?await loadNodeFetch():fetch;return fetchFunction(input,init||{})}return res};const createScriptNode="undefined"==typeof ENV_TARGET||"web"!==ENV_TARGET?(url,cb,attrs,loaderHook)=>{if(null==loaderHook?void 0:loaderHook.createScriptHook){const hookResult=loaderHook.createScriptHook(url);if(hookResult&&"object"==typeof hookResult&&"url"in hookResult)url=hookResult.url}let urlObj;try{urlObj=new URL(url)}catch(e){console.error("Error constructing URL:",e);cb(new Error(`Invalid URL: ${e}`));return}const getFetch=async()=>{if(null==loaderHook?void 0:loaderHook.fetch)return(input,init)=>lazyLoaderHookFetch(input,init,loaderHook);return"undefined"==typeof fetch?loadNodeFetch():fetch};const handleScriptFetch=async(f,urlObj)=>{try{var _vm_constants;const res=await f(urlObj.href);const data=await res.text();const[path,vm]=await Promise.all([importNodeModule("path"),importNodeModule("vm")]);const scriptContext={exports:{},module:{exports:{}}};const urlDirname=urlObj.pathname.split("/").slice(0,-1).join("/");const 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}
2
+ ${originalErrorMsg}`);return msg.join("\n")};function _extends(){_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)if(Object.prototype.hasOwnProperty.call(source,key))target[key]=source[key]}return target};return _extends.apply(this,arguments)}const runtimeDescMap={[RUNTIME_001]:"Failed to get remoteEntry exports.",[RUNTIME_002]:'The remote entry interface does not contain "init"',[RUNTIME_003]:"Failed to get manifest.",[RUNTIME_004]:"Failed to locate remote.",[RUNTIME_005]:"Invalid loadShareSync function call from bundler runtime",[RUNTIME_006]:"Invalid loadShareSync function call from runtime",[RUNTIME_007]:"Failed to get remote snapshot.",[RUNTIME_008]:"Failed to load script resources.",[RUNTIME_009]:"Please call createInstance first."};const typeDescMap={[TYPE_001]:"Failed to generate type declaration. Execute the below cmd to reproduce and fix the error."};const buildDescMap={[BUILD_001]:"Failed to find expose module.",[BUILD_002]:"PublicPath is required in prod mode."};const errorDescMap=_extends({},runtimeDescMap,typeDescMap,buildDescMap);exports.BUILD_001=BUILD_001;exports.BUILD_002=BUILD_002;exports.RUNTIME_001=RUNTIME_001;exports.RUNTIME_002=RUNTIME_002;exports.RUNTIME_003=RUNTIME_003;exports.RUNTIME_004=RUNTIME_004;exports.RUNTIME_005=RUNTIME_005;exports.RUNTIME_006=RUNTIME_006;exports.RUNTIME_007=RUNTIME_007;exports.RUNTIME_008=RUNTIME_008;exports.RUNTIME_009=RUNTIME_009;exports.TYPE_001=TYPE_001;exports.buildDescMap=buildDescMap;exports.errorDescMap=errorDescMap;exports.getShortErrorMsg=getShortErrorMsg;exports.runtimeDescMap=runtimeDescMap;exports.typeDescMap=typeDescMap},4204:function(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__){var _home_runner_work_integrations_app_v2_integrations_app_v2_node_modules_module_federation_webpack_bundler_runtime_dist_index_cjs_cjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7161);var _home_runner_work_integrations_app_v2_integrations_app_v2_node_modules_module_federation_webpack_bundler_runtime_dist_index_cjs_cjs__WEBPACK_IMPORTED_MODULE_0___default=/*#__PURE__*/__webpack_require__.n(_home_runner_work_integrations_app_v2_integrations_app_v2_node_modules_module_federation_webpack_bundler_runtime_dist_index_cjs_cjs__WEBPACK_IMPORTED_MODULE_0__);const __module_federation_runtime_plugins__=[];const __module_federation_remote_infos__={};const __module_federation_container_name__="integrations_app";const __module_federation_share_strategy__="version-first";if((__webpack_require__.initializeSharingData||__webpack_require__.initializeExposesData)&&__webpack_require__.federation){var __webpack_require___remotesLoadingData,__webpack_require___remotesLoadingData1,__webpack_require___initializeSharingData,__webpack_require___consumesLoadingData,__webpack_require___consumesLoadingData1,__webpack_require___initializeExposesData,__webpack_require___consumesLoadingData2;const override=(obj,key,value)=>{if(!obj)return;if(obj[key])obj[key]=value};const merge=(obj,key,fn)=>{const value=fn();if(Array.isArray(value)){var _obj,_key;var _;null!=(_=(_obj=obj)[_key=key])||(_obj[_key]=[]);obj[key].push(...value)}else if("object"==typeof value&&null!==value){var _obj1,_key1;var _1;null!=(_1=(_obj1=obj)[_key1=key])||(_obj1[_key1]={});Object.assign(obj[key],value)}};const early=(obj,key,initial)=>{var _obj,_key;var _;null!=(_=(_obj=obj)[_key=key])||(_obj[_key]=initial())};var __webpack_require___remotesLoadingData_chunkMapping;const remotesLoadingChunkMapping=null!=(__webpack_require___remotesLoadingData_chunkMapping=null==(__webpack_require___remotesLoadingData=__webpack_require__.remotesLoadingData)?void 0:__webpack_require___remotesLoadingData.chunkMapping)?__webpack_require___remotesLoadingData_chunkMapping:{};var __webpack_require___remotesLoadingData_moduleIdToRemoteDataMapping;const remotesLoadingModuleIdToRemoteDataMapping=null!=(__webpack_require___remotesLoadingData_moduleIdToRemoteDataMapping=null==(__webpack_require___remotesLoadingData1=__webpack_require__.remotesLoadingData)?void 0:__webpack_require___remotesLoadingData1.moduleIdToRemoteDataMapping)?__webpack_require___remotesLoadingData_moduleIdToRemoteDataMapping:{};var __webpack_require___initializeSharingData_scopeToSharingDataMapping;const initializeSharingScopeToInitDataMapping=null!=(__webpack_require___initializeSharingData_scopeToSharingDataMapping=null==(__webpack_require___initializeSharingData=__webpack_require__.initializeSharingData)?void 0:__webpack_require___initializeSharingData.scopeToSharingDataMapping)?__webpack_require___initializeSharingData_scopeToSharingDataMapping:{};var __webpack_require___consumesLoadingData_chunkMapping;const consumesLoadingChunkMapping=null!=(__webpack_require___consumesLoadingData_chunkMapping=null==(__webpack_require___consumesLoadingData=__webpack_require__.consumesLoadingData)?void 0:__webpack_require___consumesLoadingData.chunkMapping)?__webpack_require___consumesLoadingData_chunkMapping:{};var __webpack_require___consumesLoadingData_moduleIdToConsumeDataMapping;const consumesLoadingModuleToConsumeDataMapping=null!=(__webpack_require___consumesLoadingData_moduleIdToConsumeDataMapping=null==(__webpack_require___consumesLoadingData1=__webpack_require__.consumesLoadingData)?void 0:__webpack_require___consumesLoadingData1.moduleIdToConsumeDataMapping)?__webpack_require___consumesLoadingData_moduleIdToConsumeDataMapping:{};const consumesLoadinginstalledModules={};const initializeSharingInitPromises=[];const initializeSharingInitTokens={};const containerShareScope=null==(__webpack_require___initializeExposesData=__webpack_require__.initializeExposesData)?void 0:__webpack_require___initializeExposesData.shareScope;for(const key in _home_runner_work_integrations_app_v2_integrations_app_v2_node_modules_module_federation_webpack_bundler_runtime_dist_index_cjs_cjs__WEBPACK_IMPORTED_MODULE_0___default())__webpack_require__.federation[key]=_home_runner_work_integrations_app_v2_integrations_app_v2_node_modules_module_federation_webpack_bundler_runtime_dist_index_cjs_cjs__WEBPACK_IMPORTED_MODULE_0___default()[key];early(__webpack_require__.federation,"consumesLoadingModuleToHandlerMapping",()=>{const consumesLoadingModuleToHandlerMapping={};for(let[moduleId,data]of Object.entries(consumesLoadingModuleToConsumeDataMapping))consumesLoadingModuleToHandlerMapping[moduleId]={getter:data.fallback,shareInfo:{shareConfig:{fixedDependencies:false,requiredVersion:data.requiredVersion,strictVersion:data.strictVersion,singleton:data.singleton,eager:data.eager},scope:[data.shareScope]},shareKey:data.shareKey};return consumesLoadingModuleToHandlerMapping});early(__webpack_require__.federation,"initOptions",()=>({}));early(__webpack_require__.federation.initOptions,"name",()=>__module_federation_container_name__);early(__webpack_require__.federation.initOptions,"shareStrategy",()=>__module_federation_share_strategy__);early(__webpack_require__.federation.initOptions,"shared",()=>{const shared={};for(let[scope,stages]of Object.entries(initializeSharingScopeToInitDataMapping))for(let stage of stages)if("object"==typeof stage&&null!==stage){const{name,version,factory,eager,singleton,requiredVersion,strictVersion}=stage;const shareConfig={};const isValidValue=function(val){return void 0!==val};if(isValidValue(singleton))shareConfig.singleton=singleton;if(isValidValue(requiredVersion))shareConfig.requiredVersion=requiredVersion;if(isValidValue(eager))shareConfig.eager=eager;if(isValidValue(strictVersion))shareConfig.strictVersion=strictVersion;const options={version,scope:[scope],shareConfig,get:factory};if(shared[name])shared[name].push(options);else shared[name]=[options]}return shared});merge(__webpack_require__.federation.initOptions,"remotes",()=>Object.values(__module_federation_remote_infos__).flat().filter(remote=>"script"===remote.externalType));merge(__webpack_require__.federation.initOptions,"plugins",()=>__module_federation_runtime_plugins__);early(__webpack_require__.federation,"bundlerRuntimeOptions",()=>({}));early(__webpack_require__.federation.bundlerRuntimeOptions,"remotes",()=>({}));early(__webpack_require__.federation.bundlerRuntimeOptions.remotes,"chunkMapping",()=>remotesLoadingChunkMapping);early(__webpack_require__.federation.bundlerRuntimeOptions.remotes,"remoteInfos",()=>__module_federation_remote_infos__);early(__webpack_require__.federation.bundlerRuntimeOptions.remotes,"idToExternalAndNameMapping",()=>{const remotesLoadingIdToExternalAndNameMappingMapping={};for(let[moduleId,data]of Object.entries(remotesLoadingModuleIdToRemoteDataMapping))remotesLoadingIdToExternalAndNameMappingMapping[moduleId]=[data.shareScope,data.name,data.externalModuleId,data.remoteName];return remotesLoadingIdToExternalAndNameMappingMapping});early(__webpack_require__.federation.bundlerRuntimeOptions.remotes,"webpackRequire",()=>__webpack_require__);merge(__webpack_require__.federation.bundlerRuntimeOptions.remotes,"idToRemoteMap",()=>{const idToRemoteMap={};for(let[id,remoteData]of Object.entries(remotesLoadingModuleIdToRemoteDataMapping)){const info=__module_federation_remote_infos__[remoteData.remoteName];if(info)idToRemoteMap[id]=info}return idToRemoteMap});override(__webpack_require__,"S",__webpack_require__.federation.bundlerRuntime.S);if(__webpack_require__.federation.attachShareScopeMap)__webpack_require__.federation.attachShareScopeMap(__webpack_require__);override(__webpack_require__.f,"remotes",(chunkId,promises)=>__webpack_require__.federation.bundlerRuntime.remotes({chunkId,promises,chunkMapping:remotesLoadingChunkMapping,idToExternalAndNameMapping:__webpack_require__.federation.bundlerRuntimeOptions.remotes.idToExternalAndNameMapping,idToRemoteMap:__webpack_require__.federation.bundlerRuntimeOptions.remotes.idToRemoteMap,webpackRequire:__webpack_require__}));override(__webpack_require__.f,"consumes",(chunkId,promises)=>__webpack_require__.federation.bundlerRuntime.consumes({chunkId,promises,chunkMapping:consumesLoadingChunkMapping,moduleToHandlerMapping:__webpack_require__.federation.consumesLoadingModuleToHandlerMapping,installedModules:consumesLoadinginstalledModules,webpackRequire:__webpack_require__}));override(__webpack_require__,"I",(name,initScope)=>__webpack_require__.federation.bundlerRuntime.I({shareScopeName:name,initScope,initPromises:initializeSharingInitPromises,initTokens:initializeSharingInitTokens,webpackRequire:__webpack_require__}));override(__webpack_require__,"initContainer",(shareScope,initScope,remoteEntryInitOptions)=>__webpack_require__.federation.bundlerRuntime.initContainerEntry({shareScope,initScope,remoteEntryInitOptions,shareScopeKey:containerShareScope,webpackRequire:__webpack_require__}));override(__webpack_require__,"getContainer",(module1,getScope)=>{var moduleMap=__webpack_require__.initializeExposesData.moduleMap;__webpack_require__.R=getScope;getScope=Object.prototype.hasOwnProperty.call(moduleMap,module1)?moduleMap[module1]():Promise.resolve().then(()=>{throw new Error('Module "'+module1+'" does not exist in container.')});__webpack_require__.R=void 0;return getScope});__webpack_require__.federation.instance=__webpack_require__.federation.runtime.init(__webpack_require__.federation.initOptions);if(null==(__webpack_require___consumesLoadingData2=__webpack_require__.consumesLoadingData)?void 0:__webpack_require___consumesLoadingData2.initialConsumes)__webpack_require__.federation.bundlerRuntime.installInitialConsumes({webpackRequire:__webpack_require__,installedModules:consumesLoadinginstalledModules,initialConsumes:__webpack_require__.consumesLoadingData.initialConsumes,moduleToHandlerMapping:__webpack_require__.federation.consumesLoadingModuleToHandlerMapping})}},2339:function(__unused_webpack_module,exports,__webpack_require__){__webpack_require__.d(exports,{get:()=>__webpack_require__.getContainer,init:()=>__webpack_require__.initContainer})},3912:function(__unused_webpack_module,exports,__webpack_require__){var polyfills=__webpack_require__(9284);var sdk=__webpack_require__(6492);var errorCodes=__webpack_require__(4657);const LOG_CATEGORY="[ Federation Runtime ]";const logger=sdk.createLogger(LOG_CATEGORY);function assert(condition,msg){if(!condition)error(msg)}function error(msg){if(msg instanceof Error){if(!msg.message.startsWith(LOG_CATEGORY))msg.message=`${LOG_CATEGORY}: ${msg.message}`;throw msg}throw new Error(`${LOG_CATEGORY}: ${msg}`)}function warn(msg){if(msg instanceof Error){if(!msg.message.startsWith(LOG_CATEGORY))msg.message=`${LOG_CATEGORY}: ${msg.message}`;logger.warn(msg)}else logger.warn(msg)}function addUniqueItem(arr,item){if(-1===arr.findIndex(name=>name===item))arr.push(item);return arr}function getFMId(remoteInfo){if("version"in remoteInfo&&remoteInfo.version)return`${remoteInfo.name}:${remoteInfo.version}`;if("entry"in remoteInfo&&remoteInfo.entry)return`${remoteInfo.name}:${remoteInfo.entry}`;return`${remoteInfo.name}`}function isRemoteInfoWithEntry(remote){return void 0!==remote.entry}function isPureRemoteEntry(remote){return!remote.entry.includes(".json")}async function safeWrapper(callback,disableWarn){try{const res=await callback();return res}catch(e){disableWarn||warn(e);return}}function isObject(val){return val&&"object"==typeof val}const objectToString=Object.prototype.toString;function isPlainObject(val){return"[object Object]"===objectToString.call(val)}function isStaticResourcesEqual(url1,url2){const REG_EXP=/^(https?:)?\/\//i;const relativeUrl1=url1.replace(REG_EXP,"").replace(/\/$/,"");const relativeUrl2=url2.replace(REG_EXP,"").replace(/\/$/,"");return relativeUrl1===relativeUrl2}function arrayOptions(options){return Array.isArray(options)?options:[options]}function getRemoteEntryInfoFromSnapshot(snapshot){const defaultRemoteEntryInfo={url:"",type:"global",globalName:""};if(sdk.isBrowserEnv()||sdk.isReactNativeEnv())return"remoteEntry"in snapshot?{url:snapshot.remoteEntry,type:snapshot.remoteEntryType,globalName:snapshot.globalName}:defaultRemoteEntryInfo;if("ssrRemoteEntry"in snapshot)return{url:snapshot.ssrRemoteEntry||defaultRemoteEntryInfo.url,type:snapshot.ssrRemoteEntryType||defaultRemoteEntryInfo.type,globalName:snapshot.globalName};return defaultRemoteEntryInfo}const processModuleAlias=(name,subPath)=>{let moduleName;moduleName=name.endsWith("/")?name.slice(0,-1):name;if(subPath.startsWith("."))subPath=subPath.slice(1);moduleName+=subPath;return moduleName};const CurrentGlobal="object"==typeof globalThis?globalThis:window;const nativeGlobal=(()=>{try{return document.defaultView}catch(e){return CurrentGlobal}})();const Global=nativeGlobal;function definePropertyGlobalVal(target,key,val){Object.defineProperty(target,key,{value:val,configurable:false,writable:true})}function includeOwnProperty(target,key){return Object.hasOwnProperty.call(target,key)}if(!includeOwnProperty(CurrentGlobal,"__GLOBAL_LOADING_REMOTE_ENTRY__"))definePropertyGlobalVal(CurrentGlobal,"__GLOBAL_LOADING_REMOTE_ENTRY__",{});const globalLoading=CurrentGlobal.__GLOBAL_LOADING_REMOTE_ENTRY__;function setGlobalDefaultVal(target){var _target___FEDERATION__,_target___FEDERATION__1,_target___FEDERATION__2,_target___FEDERATION__3,_target___FEDERATION__4,_target___FEDERATION__5;if(includeOwnProperty(target,"__VMOK__")&&!includeOwnProperty(target,"__FEDERATION__"))definePropertyGlobalVal(target,"__FEDERATION__",target.__VMOK__);if(!includeOwnProperty(target,"__FEDERATION__")){definePropertyGlobalVal(target,"__FEDERATION__",{__GLOBAL_PLUGIN__:[],__INSTANCES__:[],moduleInfo:{},__SHARE__:{},__MANIFEST_LOADING__:{},__PRELOADED_MAP__:new Map});definePropertyGlobalVal(target,"__VMOK__",target.__FEDERATION__)}var ___GLOBAL_PLUGIN__;null!=(___GLOBAL_PLUGIN__=(_target___FEDERATION__=target.__FEDERATION__).__GLOBAL_PLUGIN__)||(_target___FEDERATION__.__GLOBAL_PLUGIN__=[]);var ___INSTANCES__;null!=(___INSTANCES__=(_target___FEDERATION__1=target.__FEDERATION__).__INSTANCES__)||(_target___FEDERATION__1.__INSTANCES__=[]);var _moduleInfo;null!=(_moduleInfo=(_target___FEDERATION__2=target.__FEDERATION__).moduleInfo)||(_target___FEDERATION__2.moduleInfo={});var ___SHARE__;null!=(___SHARE__=(_target___FEDERATION__3=target.__FEDERATION__).__SHARE__)||(_target___FEDERATION__3.__SHARE__={});var ___MANIFEST_LOADING__;null!=(___MANIFEST_LOADING__=(_target___FEDERATION__4=target.__FEDERATION__).__MANIFEST_LOADING__)||(_target___FEDERATION__4.__MANIFEST_LOADING__={});var ___PRELOADED_MAP__;null!=(___PRELOADED_MAP__=(_target___FEDERATION__5=target.__FEDERATION__).__PRELOADED_MAP__)||(_target___FEDERATION__5.__PRELOADED_MAP__=new Map)}setGlobalDefaultVal(CurrentGlobal);setGlobalDefaultVal(nativeGlobal);function resetFederationGlobalInfo(){CurrentGlobal.__FEDERATION__.__GLOBAL_PLUGIN__=[];CurrentGlobal.__FEDERATION__.__INSTANCES__=[];CurrentGlobal.__FEDERATION__.moduleInfo={};CurrentGlobal.__FEDERATION__.__SHARE__={};CurrentGlobal.__FEDERATION__.__MANIFEST_LOADING__={};Object.keys(globalLoading).forEach(key=>{delete globalLoading[key]})}function setGlobalFederationInstance(FederationInstance){CurrentGlobal.__FEDERATION__.__INSTANCES__.push(FederationInstance)}function getGlobalFederationConstructor(){return CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR__}function setGlobalFederationConstructor(FederationConstructor,isDebug=sdk.isDebugMode()){if(isDebug){CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR__=FederationConstructor;CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__="0.17.1"}}function getInfoWithoutType(target,key){if("string"==typeof key){const keyRes=target[key];if(keyRes)return{value:target[key],key:key};{const targetKeys=Object.keys(target);for(const targetKey of targetKeys){const[targetTypeOrName,_]=targetKey.split(":");const nKey=`${targetTypeOrName}:${key}`;const typeWithKeyRes=target[nKey];if(typeWithKeyRes)return{value:typeWithKeyRes,key:nKey}}return{value:void 0,key:key}}}throw new Error("key must be string")}const getGlobalSnapshot=()=>nativeGlobal.__FEDERATION__.moduleInfo;const getTargetSnapshotInfoByModuleInfo=(moduleInfo,snapshot)=>{const moduleKey=getFMId(moduleInfo);const getModuleInfo=getInfoWithoutType(snapshot,moduleKey).value;if(getModuleInfo&&!getModuleInfo.version&&"version"in moduleInfo&&moduleInfo["version"])getModuleInfo.version=moduleInfo["version"];if(getModuleInfo)return getModuleInfo;if("version"in moduleInfo&&moduleInfo["version"]){const{version}=moduleInfo,resModuleInfo=polyfills._object_without_properties_loose(moduleInfo,["version"]);const moduleKeyWithoutVersion=getFMId(resModuleInfo);const getModuleInfoWithoutVersion=getInfoWithoutType(nativeGlobal.__FEDERATION__.moduleInfo,moduleKeyWithoutVersion).value;if((null==getModuleInfoWithoutVersion?void 0:getModuleInfoWithoutVersion.version)===version)return getModuleInfoWithoutVersion}};const getGlobalSnapshotInfoByModuleInfo=moduleInfo=>getTargetSnapshotInfoByModuleInfo(moduleInfo,nativeGlobal.__FEDERATION__.moduleInfo);const setGlobalSnapshotInfoByModuleInfo=(remoteInfo,moduleDetailInfo)=>{const moduleKey=getFMId(remoteInfo);nativeGlobal.__FEDERATION__.moduleInfo[moduleKey]=moduleDetailInfo;return nativeGlobal.__FEDERATION__.moduleInfo};const addGlobalSnapshot=moduleInfos=>{nativeGlobal.__FEDERATION__.moduleInfo=polyfills._extends({},nativeGlobal.__FEDERATION__.moduleInfo,moduleInfos);return()=>{const keys=Object.keys(moduleInfos);for(const key of keys)delete nativeGlobal.__FEDERATION__.moduleInfo[key]}};const getRemoteEntryExports=(name,globalName)=>{const remoteEntryKey=globalName||`__FEDERATION_${name}:custom__`;const entryExports=CurrentGlobal[remoteEntryKey];return{remoteEntryKey,entryExports}};const registerGlobalPlugins=plugins=>{const{__GLOBAL_PLUGIN__}=nativeGlobal.__FEDERATION__;plugins.forEach(plugin=>{if(-1===__GLOBAL_PLUGIN__.findIndex(p=>p.name===plugin.name))__GLOBAL_PLUGIN__.push(plugin);else warn(`The plugin ${plugin.name} has been registered.`)})};const getGlobalHostPlugins=()=>nativeGlobal.__FEDERATION__.__GLOBAL_PLUGIN__;const getPreloaded=id=>CurrentGlobal.__FEDERATION__.__PRELOADED_MAP__.get(id);const setPreloaded=id=>CurrentGlobal.__FEDERATION__.__PRELOADED_MAP__.set(id,true);const DEFAULT_SCOPE="default";const DEFAULT_REMOTE_TYPE="global";const buildIdentifier="[0-9A-Za-z-]+";const build=`(?:\\+(${buildIdentifier}(?:\\.${buildIdentifier})*))`;const numericIdentifier="0|[1-9]\\d*";const numericIdentifierLoose="[0-9]+";const nonNumericIdentifier="\\d*[a-zA-Z-][a-zA-Z0-9-]*";const preReleaseIdentifierLoose=`(?:${numericIdentifierLoose}|${nonNumericIdentifier})`;const preReleaseLoose=`(?:-?(${preReleaseIdentifierLoose}(?:\\.${preReleaseIdentifierLoose})*))`;const preReleaseIdentifier=`(?:${numericIdentifier}|${nonNumericIdentifier})`;const preRelease=`(?:-(${preReleaseIdentifier}(?:\\.${preReleaseIdentifier})*))`;const xRangeIdentifier=`${numericIdentifier}|x|X|\\*`;const xRangePlain=`[v=\\s]*(${xRangeIdentifier})(?:\\.(${xRangeIdentifier})(?:\\.(${xRangeIdentifier})(?:${preRelease})?${build}?)?)?`;const hyphenRange=`^\\s*(${xRangePlain})\\s+-\\s+(${xRangePlain})\\s*$`;const mainVersionLoose=`(${numericIdentifierLoose})\\.(${numericIdentifierLoose})\\.(${numericIdentifierLoose})`;const loosePlain=`[v=\\s]*${mainVersionLoose}${preReleaseLoose}?${build}?`;const gtlt="((?:<|>)?=?)";const comparatorTrim=`(\\s*)${gtlt}\\s*(${loosePlain}|${xRangePlain})`;const loneTilde="(?:~>?)";const tildeTrim=`(\\s*)${loneTilde}\\s+`;const loneCaret="(?:\\^)";const caretTrim=`(\\s*)${loneCaret}\\s+`;const star="(<|>)?=?\\s*\\*";const caret=`^${loneCaret}${xRangePlain}$`;const mainVersion=`(${numericIdentifier})\\.(${numericIdentifier})\\.(${numericIdentifier})`;const fullPlain=`v?${mainVersion}${preRelease}?${build}?`;const tilde=`^${loneTilde}${xRangePlain}$`;const xRange=`^${gtlt}\\s*${xRangePlain}$`;const comparator=`^${gtlt}\\s*(${fullPlain})$|^$`;const gte0="^\\s*>=\\s*0.0.0\\s*$";function parseRegex(source){return new RegExp(source)}function isXVersion(version){return!version||"x"===version.toLowerCase()||"*"===version}function pipe(...fns){return x=>fns.reduce((v,f)=>f(v),x)}function extractComparator(comparatorString){return comparatorString.match(parseRegex(comparator))}function combineVersion(major,minor,patch,preRelease){const mainVersion=`${major}.${minor}.${patch}`;if(preRelease)return`${mainVersion}-${preRelease}`;return mainVersion}function parseHyphen(range){return range.replace(parseRegex(hyphenRange),(_range,from,fromMajor,fromMinor,fromPatch,_fromPreRelease,_fromBuild,to,toMajor,toMinor,toPatch,toPreRelease)=>{from=isXVersion(fromMajor)?"":isXVersion(fromMinor)?`>=${fromMajor}.0.0`:isXVersion(fromPatch)?`>=${fromMajor}.${fromMinor}.0`:`>=${from}`;to=isXVersion(toMajor)?"":isXVersion(toMinor)?`<${Number(toMajor)+1}.0.0-0`:isXVersion(toPatch)?`<${toMajor}.${Number(toMinor)+1}.0-0`:toPreRelease?`<=${toMajor}.${toMinor}.${toPatch}-${toPreRelease}`:`<=${to}`;return`${from} ${to}`.trim()})}function parseComparatorTrim(range){return range.replace(parseRegex(comparatorTrim),"$1$2$3")}function parseTildeTrim(range){return range.replace(parseRegex(tildeTrim),"$1~")}function parseCaretTrim(range){return range.replace(parseRegex(caretTrim),"$1^")}function parseCarets(range){return range.trim().split(/\s+/).map(rangeVersion=>rangeVersion.replace(parseRegex(caret),(_,major,minor,patch,preRelease)=>{if(isXVersion(major))return"";if(isXVersion(minor))return`>=${major}.0.0 <${Number(major)+1}.0.0-0`;if(isXVersion(patch))if("0"===major)return`>=${major}.${minor}.0 <${major}.${Number(minor)+1}.0-0`;else return`>=${major}.${minor}.0 <${Number(major)+1}.0.0-0`;if(preRelease)if("0"!==major)return`>=${major}.${minor}.${patch}-${preRelease} <${Number(major)+1}.0.0-0`;else if("0"===minor)return`>=${major}.${minor}.${patch}-${preRelease} <${major}.${minor}.${Number(patch)+1}-0`;else return`>=${major}.${minor}.${patch}-${preRelease} <${major}.${Number(minor)+1}.0-0`;if("0"===major)if("0"===minor)return`>=${major}.${minor}.${patch} <${major}.${minor}.${Number(patch)+1}-0`;else return`>=${major}.${minor}.${patch} <${major}.${Number(minor)+1}.0-0`;return`>=${major}.${minor}.${patch} <${Number(major)+1}.0.0-0`})).join(" ")}function parseTildes(range){return range.trim().split(/\s+/).map(rangeVersion=>rangeVersion.replace(parseRegex(tilde),(_,major,minor,patch,preRelease)=>{if(isXVersion(major))return"";if(isXVersion(minor))return`>=${major}.0.0 <${Number(major)+1}.0.0-0`;if(isXVersion(patch))return`>=${major}.${minor}.0 <${major}.${Number(minor)+1}.0-0`;if(preRelease)return`>=${major}.${minor}.${patch}-${preRelease} <${major}.${Number(minor)+1}.0-0`;return`>=${major}.${minor}.${patch} <${major}.${Number(minor)+1}.0-0`})).join(" ")}function parseXRanges(range){return range.split(/\s+/).map(rangeVersion=>rangeVersion.trim().replace(parseRegex(xRange),(ret,gtlt,major,minor,patch,preRelease)=>{const isXMajor=isXVersion(major);const isXMinor=isXMajor||isXVersion(minor);const isXPatch=isXMinor||isXVersion(patch);if("="===gtlt&&isXPatch)gtlt="";preRelease="";if(isXMajor)if(">"===gtlt||"<"===gtlt)return"<0.0.0-0";else return"*";if(gtlt&&isXPatch){if(isXMinor)minor=0;patch=0;if(">"===gtlt){gtlt=">=";if(isXMinor){major=Number(major)+1;minor=0;patch=0}else{minor=Number(minor)+1;patch=0}}else if("<="===gtlt){gtlt="<";if(isXMinor)major=Number(major)+1;else minor=Number(minor)+1}if("<"===gtlt)preRelease="-0";return`${gtlt+major}.${minor}.${patch}${preRelease}`}if(isXMinor)return`>=${major}.0.0${preRelease} <${Number(major)+1}.0.0-0`;if(isXPatch)return`>=${major}.${minor}.0${preRelease} <${major}.${Number(minor)+1}.0-0`;return ret})).join(" ")}function parseStar(range){return range.trim().replace(parseRegex(star),"")}function parseGTE0(comparatorString){return comparatorString.trim().replace(parseRegex(gte0),"")}function compareAtom(rangeAtom,versionAtom){rangeAtom=Number(rangeAtom)||rangeAtom;versionAtom=Number(versionAtom)||versionAtom;if(rangeAtom>versionAtom)return 1;if(rangeAtom===versionAtom)return 0;return -1}function comparePreRelease(rangeAtom,versionAtom){const{preRelease:rangePreRelease}=rangeAtom;const{preRelease:versionPreRelease}=versionAtom;if(void 0===rangePreRelease&&Boolean(versionPreRelease))return 1;if(Boolean(rangePreRelease)&&void 0===versionPreRelease)return -1;if(void 0===rangePreRelease&&void 0===versionPreRelease)return 0;for(let i=0,n=rangePreRelease.length;i<=n;i++){const rangeElement=rangePreRelease[i];const versionElement=versionPreRelease[i];if(rangeElement!==versionElement){if(void 0===rangeElement&&void 0===versionElement)return 0;if(!rangeElement)return 1;if(!versionElement)return -1;return compareAtom(rangeElement,versionElement)}}return 0}function compareVersion(rangeAtom,versionAtom){return compareAtom(rangeAtom.major,versionAtom.major)||compareAtom(rangeAtom.minor,versionAtom.minor)||compareAtom(rangeAtom.patch,versionAtom.patch)||comparePreRelease(rangeAtom,versionAtom)}function eq(rangeAtom,versionAtom){return rangeAtom.version===versionAtom.version}function compare(rangeAtom,versionAtom){switch(rangeAtom.operator){case"":case"=":return eq(rangeAtom,versionAtom);case">":return compareVersion(rangeAtom,versionAtom)<0;case">=":return eq(rangeAtom,versionAtom)||compareVersion(rangeAtom,versionAtom)<0;case"<":return compareVersion(rangeAtom,versionAtom)>0;case"<=":return eq(rangeAtom,versionAtom)||compareVersion(rangeAtom,versionAtom)>0;case void 0:return true;default:return false}}function parseComparatorString(range){return pipe(parseCarets,parseTildes,parseXRanges,parseStar)(range)}function parseRange(range){return pipe(parseHyphen,parseComparatorTrim,parseTildeTrim,parseCaretTrim)(range.trim()).split(/\s+/).join(" ")}function satisfy(version,range){if(!version)return false;const extractedVersion=extractComparator(version);if(!extractedVersion)return false;const[,versionOperator,,versionMajor,versionMinor,versionPatch,versionPreRelease]=extractedVersion;const versionAtom={operator:versionOperator,version:combineVersion(versionMajor,versionMinor,versionPatch,versionPreRelease),major:versionMajor,minor:versionMinor,patch:versionPatch,preRelease:null==versionPreRelease?void 0:versionPreRelease.split(".")};const orRanges=range.split("||");for(const orRange of orRanges){const trimmedOrRange=orRange.trim();if(!trimmedOrRange)return true;if("*"===trimmedOrRange||"x"===trimmedOrRange)return true;try{const parsedSubRange=parseRange(trimmedOrRange);if(!parsedSubRange.trim())return true;const parsedComparatorString=parsedSubRange.split(" ").map(rangeVersion=>parseComparatorString(rangeVersion)).join(" ");if(!parsedComparatorString.trim())return true;const comparators=parsedComparatorString.split(/\s+/).map(comparator=>parseGTE0(comparator)).filter(Boolean);if(0===comparators.length)continue;let subRangeSatisfied=true;for(const comparator of comparators){const extractedComparator=extractComparator(comparator);if(!extractedComparator){subRangeSatisfied=false;break}const[,rangeOperator,,rangeMajor,rangeMinor,rangePatch,rangePreRelease]=extractedComparator;const rangeAtom={operator:rangeOperator,version:combineVersion(rangeMajor,rangeMinor,rangePatch,rangePreRelease),major:rangeMajor,minor:rangeMinor,patch:rangePatch,preRelease:null==rangePreRelease?void 0:rangePreRelease.split(".")};if(!compare(rangeAtom,versionAtom)){subRangeSatisfied=false;break}}if(subRangeSatisfied)return true}catch(e){console.error(`[semver] Error processing range part "${trimmedOrRange}":`,e);continue}}return false}function formatShare(shareArgs,from,name,shareStrategy){let get;get="get"in shareArgs?shareArgs.get:"lib"in shareArgs?()=>Promise.resolve(shareArgs.lib):()=>Promise.resolve(()=>{throw new Error(`Can not get shared '${name}'!`)});var _shareArgs_version,_shareArgs_scope,_shareArgs_strategy;return polyfills._extends({deps:[],useIn:[],from,loading:null},shareArgs,{shareConfig:polyfills._extends({requiredVersion:`^${shareArgs.version}`,singleton:false,eager:false,strictVersion:false},shareArgs.shareConfig),get,loaded:(null==shareArgs?void 0:shareArgs.loaded)||"lib"in shareArgs?true:void 0,version:null!=(_shareArgs_version=shareArgs.version)?_shareArgs_version:"0",scope:Array.isArray(shareArgs.scope)?shareArgs.scope:[null!=(_shareArgs_scope=shareArgs.scope)?_shareArgs_scope:"default"],strategy:(null!=(_shareArgs_strategy=shareArgs.strategy)?_shareArgs_strategy:shareStrategy)||"version-first"})}function formatShareConfigs(globalOptions,userOptions){const shareArgs=userOptions.shared||{};const from=userOptions.name;const shareInfos=Object.keys(shareArgs).reduce((res,pkgName)=>{const arrayShareArgs=arrayOptions(shareArgs[pkgName]);res[pkgName]=res[pkgName]||[];arrayShareArgs.forEach(shareConfig=>{res[pkgName].push(formatShare(shareConfig,from,pkgName,userOptions.shareStrategy))});return res},{});const shared=polyfills._extends({},globalOptions.shared);Object.keys(shareInfos).forEach(shareKey=>{if(shared[shareKey])shareInfos[shareKey].forEach(newUserSharedOptions=>{const isSameVersion=shared[shareKey].find(sharedVal=>sharedVal.version===newUserSharedOptions.version);if(!isSameVersion)shared[shareKey].push(newUserSharedOptions)});else shared[shareKey]=shareInfos[shareKey]});return{shared,shareInfos}}function versionLt(a,b){const transformInvalidVersion=version=>{const isNumberVersion=!Number.isNaN(Number(version));if(isNumberVersion){const splitArr=version.split(".");let validVersion=version;for(let i=0;i<3-splitArr.length;i++)validVersion+=".0";return validVersion}return version};if(satisfy(transformInvalidVersion(a),`<=${transformInvalidVersion(b)}`))return true;return false}const findVersion=(shareVersionMap,cb)=>{const callback=cb||function(prev,cur){return versionLt(prev,cur)};return Object.keys(shareVersionMap).reduce((prev,cur)=>{if(!prev)return cur;if(callback(prev,cur))return cur;if("0"===prev)return cur;return prev},0)};const isLoaded=shared=>Boolean(shared.loaded)||"function"==typeof shared.lib;const isLoading=shared=>Boolean(shared.loading);function findSingletonVersionOrderByVersion(shareScopeMap,scope,pkgName){const versions=shareScopeMap[scope][pkgName];const callback=function(prev,cur){return!isLoaded(versions[prev])&&versionLt(prev,cur)};return findVersion(shareScopeMap[scope][pkgName],callback)}function findSingletonVersionOrderByLoaded(shareScopeMap,scope,pkgName){const versions=shareScopeMap[scope][pkgName];const callback=function(prev,cur){const isLoadingOrLoaded=shared=>isLoaded(shared)||isLoading(shared);if(isLoadingOrLoaded(versions[cur]))if(isLoadingOrLoaded(versions[prev]))return Boolean(versionLt(prev,cur));else return true;if(isLoadingOrLoaded(versions[prev]))return false;return versionLt(prev,cur)};return findVersion(shareScopeMap[scope][pkgName],callback)}function getFindShareFunction(strategy){if("loaded-first"===strategy)return findSingletonVersionOrderByLoaded;return findSingletonVersionOrderByVersion}function getRegisteredShare(localShareScopeMap,pkgName,shareInfo,resolveShare){if(!localShareScopeMap)return;const{shareConfig,scope=DEFAULT_SCOPE,strategy}=shareInfo;const scopes=Array.isArray(scope)?scope:[scope];for(const sc of scopes)if(shareConfig&&localShareScopeMap[sc]&&localShareScopeMap[sc][pkgName]){const{requiredVersion}=shareConfig;const findShareFunction=getFindShareFunction(strategy);const maxOrSingletonVersion=findShareFunction(localShareScopeMap,sc,pkgName);const defaultResolver=()=>{if(shareConfig.singleton){if("string"==typeof requiredVersion&&!satisfy(maxOrSingletonVersion,requiredVersion)){const msg=`Version ${maxOrSingletonVersion} from ${maxOrSingletonVersion&&localShareScopeMap[sc][pkgName][maxOrSingletonVersion].from} of shared singleton module ${pkgName} does not satisfy the requirement of ${shareInfo.from} which needs ${requiredVersion})`;if(shareConfig.strictVersion)error(msg);else warn(msg)}return localShareScopeMap[sc][pkgName][maxOrSingletonVersion]}if(false===requiredVersion||"*"===requiredVersion)return localShareScopeMap[sc][pkgName][maxOrSingletonVersion];if(satisfy(maxOrSingletonVersion,requiredVersion))return localShareScopeMap[sc][pkgName][maxOrSingletonVersion];for(const[versionKey,versionValue]of Object.entries(localShareScopeMap[sc][pkgName]))if(satisfy(versionKey,requiredVersion))return versionValue};const params={shareScopeMap:localShareScopeMap,scope:sc,pkgName,version:maxOrSingletonVersion,GlobalFederation:Global.__FEDERATION__,resolver:defaultResolver};const resolveShared=resolveShare.emit(params)||params;return resolveShared.resolver()}}function getGlobalShareScope(){return Global.__FEDERATION__.__SHARE__}function getTargetSharedOptions(options){const{pkgName,extraOptions,shareInfos}=options;const defaultResolver=sharedOptions=>{if(!sharedOptions)return;const shareVersionMap={};sharedOptions.forEach(shared=>{shareVersionMap[shared.version]=shared});const callback=function(prev,cur){return!isLoaded(shareVersionMap[prev])&&versionLt(prev,cur)};const maxVersion=findVersion(shareVersionMap,callback);return shareVersionMap[maxVersion]};var _extraOptions_resolver;const resolver=null!=(_extraOptions_resolver=null==extraOptions?void 0:extraOptions.resolver)?_extraOptions_resolver:defaultResolver;return Object.assign({},resolver(shareInfos[pkgName]),null==extraOptions?void 0:extraOptions.customShareInfo)}function getBuilderId(){return"integrations_app:0.4.84"}function matchRemoteWithNameAndExpose(remotes,id){for(const remote of remotes){const isNameMatched=id.startsWith(remote.name);let expose=id.replace(remote.name,"");if(isNameMatched){if(expose.startsWith("/")){const pkgNameOrAlias=remote.name;expose=`.${expose}`;return{pkgNameOrAlias,expose,remote}}else if(""===expose)return{pkgNameOrAlias:remote.name,expose:".",remote}}const isAliasMatched=remote.alias&&id.startsWith(remote.alias);let exposeWithAlias=remote.alias&&id.replace(remote.alias,"");if(remote.alias&&isAliasMatched){if(exposeWithAlias&&exposeWithAlias.startsWith("/")){const pkgNameOrAlias=remote.alias;exposeWithAlias=`.${exposeWithAlias}`;return{pkgNameOrAlias,expose:exposeWithAlias,remote}}else if(""===exposeWithAlias)return{pkgNameOrAlias:remote.alias,expose:".",remote}}}}function matchRemote(remotes,nameOrAlias){for(const remote of remotes){const isNameMatched=nameOrAlias===remote.name;if(isNameMatched)return remote;const isAliasMatched=remote.alias&&nameOrAlias===remote.alias;if(isAliasMatched)return remote}}function registerPlugins(plugins,instance){const globalPlugins=getGlobalHostPlugins();const hookInstances=[instance.hooks,instance.remoteHandler.hooks,instance.sharedHandler.hooks,instance.snapshotHandler.hooks,instance.loaderHook,instance.bridgeHook];if(globalPlugins.length>0)globalPlugins.forEach(plugin=>{if(null==plugins?void 0:plugins.find(item=>item.name!==plugin.name))plugins.push(plugin)});if(plugins&&plugins.length>0)plugins.forEach(plugin=>{hookInstances.forEach(hookInstance=>{hookInstance.applyPlugin(plugin,instance)})});return plugins}const importCallback=".then(callbacks[0]).catch(callbacks[1])";async function loadEsmEntry({entry,remoteEntryExports}){return new Promise((resolve,reject)=>{try{if(remoteEntryExports)resolve(remoteEntryExports);else if("undefined"!=typeof FEDERATION_ALLOW_NEW_FUNCTION)new Function("callbacks",`import("${entry}")${importCallback}`)([resolve,reject]);else import(/* @vite-ignore */entry).then(resolve).catch(reject)}catch(e){reject(e)}})}async function loadSystemJsEntry({entry,remoteEntryExports}){return new Promise((resolve,reject)=>{try{if(remoteEntryExports)resolve(remoteEntryExports);else new Function("callbacks",`System.import("${entry}")${importCallback}`)([resolve,reject])}catch(e){reject(e)}})}function handleRemoteEntryLoaded(name,globalName,entry){const{remoteEntryKey,entryExports}=getRemoteEntryExports(name,globalName);assert(entryExports,errorCodes.getShortErrorMsg(errorCodes.RUNTIME_001,errorCodes.runtimeDescMap,{remoteName:name,remoteEntryUrl:entry,remoteEntryKey}));return entryExports}async function loadEntryScript({name,globalName,entry,loaderHook}){const{entryExports:remoteEntryExports}=getRemoteEntryExports(name,globalName);if(remoteEntryExports)return remoteEntryExports;return sdk.loadScript(entry,{attrs:{},createScriptHook:(url,attrs)=>{const res=loaderHook.lifecycle.createScript.emit({url,attrs});if(!res)return;if(res instanceof HTMLScriptElement)return res;if("script"in res||"timeout"in res)return res}}).then(()=>handleRemoteEntryLoaded(name,globalName,entry)).catch(e=>{assert(void 0,errorCodes.getShortErrorMsg(errorCodes.RUNTIME_008,errorCodes.runtimeDescMap,{remoteName:name,resourceUrl:entry}));throw e})}async function loadEntryDom({remoteInfo,remoteEntryExports,loaderHook}){const{entry,entryGlobalName:globalName,name,type}=remoteInfo;switch(type){case"esm":case"module":return loadEsmEntry({entry,remoteEntryExports});case"system":return loadSystemJsEntry({entry,remoteEntryExports});default:return loadEntryScript({entry,globalName,name,loaderHook})}}async function loadEntryNode({remoteInfo,loaderHook}){const{entry,entryGlobalName:globalName,name,type}=remoteInfo;const{entryExports:remoteEntryExports}=getRemoteEntryExports(name,globalName);if(remoteEntryExports)return remoteEntryExports;return sdk.loadScriptNode(entry,{attrs:{name,globalName,type},loaderHook:{createScriptHook:(url,attrs={})=>{const res=loaderHook.lifecycle.createScript.emit({url,attrs});if(!res)return;if("url"in res)return res}}}).then(()=>handleRemoteEntryLoaded(name,globalName,entry)).catch(e=>{throw e})}function getRemoteEntryUniqueKey(remoteInfo){const{entry,name}=remoteInfo;return sdk.composeKeyWithSeparator(name,entry)}async function getRemoteEntry({origin,remoteEntryExports,remoteInfo}){const uniqueKey=getRemoteEntryUniqueKey(remoteInfo);if(remoteEntryExports)return remoteEntryExports;if(!globalLoading[uniqueKey]){const loadEntryHook=origin.remoteHandler.hooks.lifecycle.loadEntry;const loaderHook=origin.loaderHook;globalLoading[uniqueKey]=loadEntryHook.emit({loaderHook,remoteInfo,remoteEntryExports}).then(res=>{if(res)return res;const isWebEnvironment="undefined"!=typeof ENV_TARGET?"web"===ENV_TARGET:sdk.isBrowserEnv();return isWebEnvironment?loadEntryDom({remoteInfo,remoteEntryExports,loaderHook}):loadEntryNode({remoteInfo,loaderHook})})}return globalLoading[uniqueKey]}function getRemoteInfo(remote){return polyfills._extends({},remote,{entry:"entry"in remote?remote.entry:"",type:remote.type||DEFAULT_REMOTE_TYPE,entryGlobalName:remote.entryGlobalName||remote.name,shareScope:remote.shareScope||DEFAULT_SCOPE})}function defaultPreloadArgs(preloadConfig){return polyfills._extends({resourceCategory:"sync",share:true,depsRemote:true,prefetchInterface:false},preloadConfig)}function formatPreloadArgs(remotes,preloadArgs){return preloadArgs.map(args=>{const remoteInfo=matchRemote(remotes,args.nameOrAlias);assert(remoteInfo,`Unable to preload ${args.nameOrAlias} as it is not included in ${!remoteInfo&&sdk.safeToString({remoteInfo,remotes})}`);return{remote:remoteInfo,preloadConfig:defaultPreloadArgs(args)}})}function normalizePreloadExposes(exposes){if(!exposes)return[];return exposes.map(expose=>{if("."===expose)return expose;if(expose.startsWith("./"))return expose.replace("./","");return expose})}function preloadAssets(remoteInfo,host,assets,useLinkPreload=true){const{cssAssets,jsAssetsWithoutEntry,entryAssets}=assets;if(host.options.inBrowser){entryAssets.forEach(asset=>{const{moduleInfo}=asset;const module=host.moduleCache.get(remoteInfo.name);module?getRemoteEntry({origin:host,remoteInfo:moduleInfo,remoteEntryExports:module.remoteEntryExports}):getRemoteEntry({origin:host,remoteInfo:moduleInfo,remoteEntryExports:void 0})});if(useLinkPreload){const defaultAttrs={rel:"preload",as:"style"};cssAssets.forEach(cssUrl=>{const{link:cssEl,needAttach}=sdk.createLink({url:cssUrl,cb:()=>{},attrs:defaultAttrs,createLinkHook:(url,attrs)=>{const res=host.loaderHook.lifecycle.createLink.emit({url,attrs});if(res instanceof HTMLLinkElement)return res}});needAttach&&document.head.appendChild(cssEl)})}else{const defaultAttrs={rel:"stylesheet",type:"text/css"};cssAssets.forEach(cssUrl=>{const{link:cssEl,needAttach}=sdk.createLink({url:cssUrl,cb:()=>{},attrs:defaultAttrs,createLinkHook:(url,attrs)=>{const res=host.loaderHook.lifecycle.createLink.emit({url,attrs});if(res instanceof HTMLLinkElement)return res},needDeleteLink:false});needAttach&&document.head.appendChild(cssEl)})}if(useLinkPreload){const defaultAttrs={rel:"preload",as:"script"};jsAssetsWithoutEntry.forEach(jsUrl=>{const{link:linkEl,needAttach}=sdk.createLink({url:jsUrl,cb:()=>{},attrs:defaultAttrs,createLinkHook:(url,attrs)=>{const res=host.loaderHook.lifecycle.createLink.emit({url,attrs});if(res instanceof HTMLLinkElement)return res}});needAttach&&document.head.appendChild(linkEl)})}else{const defaultAttrs={fetchpriority:"high",type:(null==remoteInfo?void 0:remoteInfo.type)==="module"?"module":"text/javascript"};jsAssetsWithoutEntry.forEach(jsUrl=>{const{script:scriptEl,needAttach}=sdk.createScript({url:jsUrl,cb:()=>{},attrs:defaultAttrs,createScriptHook:(url,attrs)=>{const res=host.loaderHook.lifecycle.createScript.emit({url,attrs});if(res instanceof HTMLScriptElement)return res},needDeleteScript:true});needAttach&&document.head.appendChild(scriptEl)})}}}const ShareUtils={getRegisteredShare,getGlobalShareScope};const GlobalUtils={Global,nativeGlobal,resetFederationGlobalInfo,setGlobalFederationInstance,getGlobalFederationConstructor,setGlobalFederationConstructor,getInfoWithoutType,getGlobalSnapshot,getTargetSnapshotInfoByModuleInfo,getGlobalSnapshotInfoByModuleInfo,setGlobalSnapshotInfoByModuleInfo,addGlobalSnapshot,getRemoteEntryExports,registerGlobalPlugins,getGlobalHostPlugins,getPreloaded,setPreloaded};var helpers={global:GlobalUtils,share:ShareUtils,utils:{matchRemoteWithNameAndExpose,preloadAssets,getRemoteInfo}};let Module=class{async getEntry(){if(this.remoteEntryExports)return this.remoteEntryExports;let remoteEntryExports;try{remoteEntryExports=await getRemoteEntry({origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports})}catch(err){const uniqueKey=getRemoteEntryUniqueKey(this.remoteInfo);remoteEntryExports=await this.host.loaderHook.lifecycle.loadEntryError.emit({getRemoteEntry,origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports,globalLoading,uniqueKey})}assert(remoteEntryExports,`remoteEntryExports is undefined
3
+ ${sdk.safeToString(this.remoteInfo)}`);this.remoteEntryExports=remoteEntryExports;return this.remoteEntryExports}async get(id,expose,options,remoteSnapshot){const{loadFactory=true}=options||{loadFactory:true};const remoteEntryExports=await this.getEntry();if(!this.inited){const localShareScopeMap=this.host.shareScopeMap;const shareScopeKeys=Array.isArray(this.remoteInfo.shareScope)?this.remoteInfo.shareScope:[this.remoteInfo.shareScope];if(!shareScopeKeys.length)shareScopeKeys.push("default");shareScopeKeys.forEach(shareScopeKey=>{if(!localShareScopeMap[shareScopeKey])localShareScopeMap[shareScopeKey]={}});const shareScope=localShareScopeMap[shareScopeKeys[0]];const initScope=[];const remoteEntryInitOptions={version:this.remoteInfo.version||"",shareScopeKeys:Array.isArray(this.remoteInfo.shareScope)?shareScopeKeys:this.remoteInfo.shareScope||"default"};Object.defineProperty(remoteEntryInitOptions,"shareScopeMap",{value:localShareScopeMap,enumerable:false});const initContainerOptions=await this.host.hooks.lifecycle.beforeInitContainer.emit({shareScope,remoteEntryInitOptions,initScope,remoteInfo:this.remoteInfo,origin:this.host});if(void 0===(null==remoteEntryExports?void 0:remoteEntryExports.init))error(errorCodes.getShortErrorMsg(errorCodes.RUNTIME_002,errorCodes.runtimeDescMap,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName}));await remoteEntryExports.init(initContainerOptions.shareScope,initContainerOptions.initScope,initContainerOptions.remoteEntryInitOptions);await this.host.hooks.lifecycle.initContainer.emit(polyfills._extends({},initContainerOptions,{id,remoteSnapshot,remoteEntryExports}))}this.lib=remoteEntryExports;this.inited=true;let moduleFactory;moduleFactory=await this.host.loaderHook.lifecycle.getModuleFactory.emit({remoteEntryExports,expose,moduleInfo:this.remoteInfo});if(!moduleFactory)moduleFactory=await remoteEntryExports.get(expose);assert(moduleFactory,`${getFMId(this.remoteInfo)} remote don't export ${expose}.`);const symbolName=processModuleAlias(this.remoteInfo.name,expose);const wrapModuleFactory=this.wraperFactory(moduleFactory,symbolName);if(!loadFactory)return wrapModuleFactory;const exposeContent=await wrapModuleFactory();return exposeContent}wraperFactory(moduleFactory,id){function defineModuleId(res,id){if(res&&"object"==typeof res&&Object.isExtensible(res)&&!Object.getOwnPropertyDescriptor(res,Symbol.for("mf_module_id")))Object.defineProperty(res,Symbol.for("mf_module_id"),{value:id,enumerable:false})}if(moduleFactory instanceof Promise)return async()=>{const res=await moduleFactory();defineModuleId(res,id);return res};return()=>{const res=moduleFactory();defineModuleId(res,id);return res}}constructor({remoteInfo,host}){this.inited=false;this.lib=void 0;this.remoteInfo=remoteInfo;this.host=host}};class SyncHook{on(fn){if("function"==typeof fn)this.listeners.add(fn)}once(fn){const self=this;this.on(function wrapper(...args){self.remove(wrapper);return fn.apply(null,args)})}emit(...data){let result;if(this.listeners.size>0)this.listeners.forEach(fn=>{result=fn(...data)});return result}remove(fn){this.listeners.delete(fn)}removeAll(){this.listeners.clear()}constructor(type){this.type="";this.listeners=new Set;if(type)this.type=type}}class AsyncHook extends SyncHook{emit(...data){let result;const ls=Array.from(this.listeners);if(ls.length>0){let i=0;const call=prev=>{if(false===prev)return false;if(i<ls.length)return Promise.resolve(ls[i++].apply(null,data)).then(call);return prev};result=call()}return Promise.resolve(result)}}function checkReturnData(originalData,returnedData){if(!isObject(returnedData))return false;if(originalData!==returnedData){for(const key in originalData)if(!(key in returnedData))return false}return true}class SyncWaterfallHook extends SyncHook{emit(data){if(!isObject(data))error(`The data for the "${this.type}" hook should be an object.`);for(const fn of this.listeners)try{const tempData=fn(data);if(checkReturnData(data,tempData))data=tempData;else{this.onerror(`A plugin returned an unacceptable value for the "${this.type}" type.`);break}}catch(e){warn(e);this.onerror(e)}return data}constructor(type){super();this.onerror=error;this.type=type}}class AsyncWaterfallHook extends SyncHook{emit(data){if(!isObject(data))error(`The response data for the "${this.type}" hook must be an object.`);const ls=Array.from(this.listeners);if(ls.length>0){let i=0;const processError=e=>{warn(e);this.onerror(e);return data};const call=prevData=>{if(checkReturnData(data,prevData)){data=prevData;if(i<ls.length)try{return Promise.resolve(ls[i++](data)).then(call,processError)}catch(e){return processError(e)}}else this.onerror(`A plugin returned an incorrect value for the "${this.type}" type.`);return data};return Promise.resolve(call(data))}return Promise.resolve(data)}constructor(type){super();this.onerror=error;this.type=type}}class PluginSystem{applyPlugin(plugin,instance){assert(isPlainObject(plugin),"Plugin configuration is invalid.");const pluginName=plugin.name;assert(pluginName,"A name must be provided by the plugin.");if(!this.registerPlugins[pluginName]){this.registerPlugins[pluginName]=plugin;null==plugin.apply||plugin.apply.call(plugin,instance);Object.keys(this.lifecycle).forEach(key=>{const pluginLife=plugin[key];if(pluginLife)this.lifecycle[key].on(pluginLife)})}}removePlugin(pluginName){assert(pluginName,"A name is required.");const plugin=this.registerPlugins[pluginName];assert(plugin,`The plugin "${pluginName}" is not registered.`);Object.keys(plugin).forEach(key=>{if("name"!==key)this.lifecycle[key].remove(plugin[key])})}constructor(lifecycle){this.registerPlugins={};this.lifecycle=lifecycle;this.lifecycleKeys=Object.keys(lifecycle)}}function assignRemoteInfo(remoteInfo,remoteSnapshot){const remoteEntryInfo=getRemoteEntryInfoFromSnapshot(remoteSnapshot);if(!remoteEntryInfo.url)error(`The attribute remoteEntry of ${remoteInfo.name} must not be undefined.`);let entryUrl=sdk.getResourceUrl(remoteSnapshot,remoteEntryInfo.url);if(!sdk.isBrowserEnv()&&!entryUrl.startsWith("http"))entryUrl=`https:${entryUrl}`;remoteInfo.type=remoteEntryInfo.type;remoteInfo.entryGlobalName=remoteEntryInfo.globalName;remoteInfo.entry=entryUrl;remoteInfo.version=remoteSnapshot.version;remoteInfo.buildVersion=remoteSnapshot.buildVersion}function snapshotPlugin(){return{name:"snapshot-plugin",async afterResolve(args){const{remote,pkgNameOrAlias,expose,origin,remoteInfo,id}=args;if(!isRemoteInfoWithEntry(remote)||!isPureRemoteEntry(remote)){const{remoteSnapshot,globalSnapshot}=await origin.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:remote,id});assignRemoteInfo(remoteInfo,remoteSnapshot);const preloadOptions={remote,preloadConfig:{nameOrAlias:pkgNameOrAlias,exposes:[expose],resourceCategory:"sync",share:false,depsRemote:false}};const assets=await origin.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin,preloadOptions,remoteInfo,remote,remoteSnapshot,globalSnapshot});if(assets)preloadAssets(remoteInfo,origin,assets,false);return polyfills._extends({},args,{remoteSnapshot})}return args}}}function splitId(id){const splitInfo=id.split(":");if(1===splitInfo.length)return{name:splitInfo[0],version:void 0};if(2===splitInfo.length)return{name:splitInfo[0],version:splitInfo[1]};return{name:splitInfo[1],version:splitInfo[2]}}function traverseModuleInfo(globalSnapshot,remoteInfo,traverse,isRoot,memo={},remoteSnapshot){const id=getFMId(remoteInfo);const{value:snapshotValue}=getInfoWithoutType(globalSnapshot,id);const effectiveRemoteSnapshot=remoteSnapshot||snapshotValue;if(effectiveRemoteSnapshot&&!sdk.isManifestProvider(effectiveRemoteSnapshot)){traverse(effectiveRemoteSnapshot,remoteInfo,isRoot);if(effectiveRemoteSnapshot.remotesInfo){const remoteKeys=Object.keys(effectiveRemoteSnapshot.remotesInfo);for(const key of remoteKeys){if(memo[key])continue;memo[key]=true;const subRemoteInfo=splitId(key);const remoteValue=effectiveRemoteSnapshot.remotesInfo[key];traverseModuleInfo(globalSnapshot,{name:subRemoteInfo.name,version:remoteValue.matchedVersion},traverse,false,memo,void 0)}}}}const isExisted=(type,url)=>document.querySelector(`${type}[${"link"===type?"href":"src"}="${url}"]`);function generatePreloadAssets(origin,preloadOptions,remote,globalSnapshot,remoteSnapshot){const cssAssets=[];const jsAssets=[];const entryAssets=[];const loadedSharedJsAssets=new Set;const loadedSharedCssAssets=new Set;const{options}=origin;const{preloadConfig:rootPreloadConfig}=preloadOptions;const{depsRemote}=rootPreloadConfig;const memo={};traverseModuleInfo(globalSnapshot,remote,(moduleInfoSnapshot,remoteInfo,isRoot)=>{let preloadConfig;if(isRoot)preloadConfig=rootPreloadConfig;else if(Array.isArray(depsRemote)){const findPreloadConfig=depsRemote.find(remoteConfig=>{if(remoteConfig.nameOrAlias===remoteInfo.name||remoteConfig.nameOrAlias===remoteInfo.alias)return true;return false});if(!findPreloadConfig)return;preloadConfig=defaultPreloadArgs(findPreloadConfig)}else{if(true!==depsRemote)return;preloadConfig=rootPreloadConfig}const remoteEntryUrl=sdk.getResourceUrl(moduleInfoSnapshot,getRemoteEntryInfoFromSnapshot(moduleInfoSnapshot).url);if(remoteEntryUrl)entryAssets.push({name:remoteInfo.name,moduleInfo:{name:remoteInfo.name,entry:remoteEntryUrl,type:"remoteEntryType"in moduleInfoSnapshot?moduleInfoSnapshot.remoteEntryType:"global",entryGlobalName:"globalName"in moduleInfoSnapshot?moduleInfoSnapshot.globalName:remoteInfo.name,shareScope:"",version:"version"in moduleInfoSnapshot?moduleInfoSnapshot.version:void 0},url:remoteEntryUrl});let moduleAssetsInfo="modules"in moduleInfoSnapshot?moduleInfoSnapshot.modules:[];const normalizedPreloadExposes=normalizePreloadExposes(preloadConfig.exposes);if(normalizedPreloadExposes.length&&"modules"in moduleInfoSnapshot){var _moduleInfoSnapshot_modules;moduleAssetsInfo=null==moduleInfoSnapshot?void 0:null==(_moduleInfoSnapshot_modules=moduleInfoSnapshot.modules)?void 0:_moduleInfoSnapshot_modules.reduce((assets,moduleAssetInfo)=>{if((null==normalizedPreloadExposes?void 0:normalizedPreloadExposes.indexOf(moduleAssetInfo.moduleName))!==-1)assets.push(moduleAssetInfo);return assets},[])}function handleAssets(assets){const assetsRes=assets.map(asset=>sdk.getResourceUrl(moduleInfoSnapshot,asset));if(preloadConfig.filter)return assetsRes.filter(preloadConfig.filter);return assetsRes}if(moduleAssetsInfo){const assetsLength=moduleAssetsInfo.length;for(let index=0;index<assetsLength;index++){const assetsInfo=moduleAssetsInfo[index];const exposeFullPath=`${remoteInfo.name}/${assetsInfo.moduleName}`;origin.remoteHandler.hooks.lifecycle.handlePreloadModule.emit({id:"."===assetsInfo.moduleName?remoteInfo.name:exposeFullPath,name:remoteInfo.name,remoteSnapshot:moduleInfoSnapshot,preloadConfig,remote:remoteInfo,origin});const preloaded=getPreloaded(exposeFullPath);if(!preloaded){if("all"===preloadConfig.resourceCategory){cssAssets.push(...handleAssets(assetsInfo.assets.css.async));cssAssets.push(...handleAssets(assetsInfo.assets.css.sync));jsAssets.push(...handleAssets(assetsInfo.assets.js.async));jsAssets.push(...handleAssets(assetsInfo.assets.js.sync))}else if(preloadConfig.resourceCategory="sync"){cssAssets.push(...handleAssets(assetsInfo.assets.css.sync));jsAssets.push(...handleAssets(assetsInfo.assets.js.sync))}setPreloaded(exposeFullPath)}}}},true,memo,remoteSnapshot);if(remoteSnapshot.shared&&remoteSnapshot.shared.length>0){const collectSharedAssets=(shareInfo,snapshotShared)=>{const registeredShared=getRegisteredShare(origin.shareScopeMap,snapshotShared.sharedName,shareInfo,origin.sharedHandler.hooks.lifecycle.resolveShare);if(registeredShared&&"function"==typeof registeredShared.lib){snapshotShared.assets.js.sync.forEach(asset=>{loadedSharedJsAssets.add(asset)});snapshotShared.assets.css.sync.forEach(asset=>{loadedSharedCssAssets.add(asset)})}};remoteSnapshot.shared.forEach(shared=>{var _options_shared;const shareInfos=null==(_options_shared=options.shared)?void 0:_options_shared[shared.sharedName];if(!shareInfos)return;const sharedOptions=shared.version?shareInfos.find(s=>s.version===shared.version):shareInfos;if(!sharedOptions)return;const arrayShareInfo=arrayOptions(sharedOptions);arrayShareInfo.forEach(s=>{collectSharedAssets(s,shared)})})}const needPreloadJsAssets=jsAssets.filter(asset=>!loadedSharedJsAssets.has(asset)&&!isExisted("script",asset));const needPreloadCssAssets=cssAssets.filter(asset=>!loadedSharedCssAssets.has(asset)&&!isExisted("link",asset));return{cssAssets:needPreloadCssAssets,jsAssetsWithoutEntry:needPreloadJsAssets,entryAssets:entryAssets.filter(entry=>!isExisted("script",entry.url))}}const generatePreloadAssetsPlugin=function(){return{name:"generate-preload-assets-plugin",async generatePreloadAssets(args){const{origin,preloadOptions,remoteInfo,remote,globalSnapshot,remoteSnapshot}=args;if(!sdk.isBrowserEnv())return{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[]};if(isRemoteInfoWithEntry(remote)&&isPureRemoteEntry(remote))return{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[{name:remote.name,url:remote.entry,moduleInfo:{name:remoteInfo.name,entry:remote.entry,type:remoteInfo.type||"global",entryGlobalName:"",shareScope:""}}]};assignRemoteInfo(remoteInfo,remoteSnapshot);const assets=generatePreloadAssets(origin,preloadOptions,remoteInfo,globalSnapshot,remoteSnapshot);return assets}}};function getGlobalRemoteInfo(moduleInfo,origin){const hostGlobalSnapshot=getGlobalSnapshotInfoByModuleInfo({name:origin.name,version:origin.options.version});const globalRemoteInfo=hostGlobalSnapshot&&"remotesInfo"in hostGlobalSnapshot&&hostGlobalSnapshot.remotesInfo&&getInfoWithoutType(hostGlobalSnapshot.remotesInfo,moduleInfo.name).value;if(globalRemoteInfo&&globalRemoteInfo.matchedVersion)return{hostGlobalSnapshot,globalSnapshot:getGlobalSnapshot(),remoteSnapshot:getGlobalSnapshotInfoByModuleInfo({name:moduleInfo.name,version:globalRemoteInfo.matchedVersion})};return{hostGlobalSnapshot:void 0,globalSnapshot:getGlobalSnapshot(),remoteSnapshot:getGlobalSnapshotInfoByModuleInfo({name:moduleInfo.name,version:"version"in moduleInfo?moduleInfo.version:void 0})}}class SnapshotHandler{async loadRemoteSnapshotInfo({moduleInfo,id,expose}){const{options}=this.HostInstance;await this.hooks.lifecycle.beforeLoadRemoteSnapshot.emit({options,moduleInfo});let hostSnapshot=getGlobalSnapshotInfoByModuleInfo({name:this.HostInstance.options.name,version:this.HostInstance.options.version});if(!hostSnapshot){hostSnapshot={version:this.HostInstance.options.version||"",remoteEntry:"",remotesInfo:{}};addGlobalSnapshot({[this.HostInstance.options.name]:hostSnapshot})}if(hostSnapshot&&"remotesInfo"in hostSnapshot&&!getInfoWithoutType(hostSnapshot.remotesInfo,moduleInfo.name).value){if("version"in moduleInfo||"entry"in moduleInfo)hostSnapshot.remotesInfo=polyfills._extends({},null==hostSnapshot?void 0:hostSnapshot.remotesInfo,{[moduleInfo.name]:{matchedVersion:"version"in moduleInfo?moduleInfo.version:moduleInfo.entry}})}const{hostGlobalSnapshot,remoteSnapshot,globalSnapshot}=this.getGlobalRemoteInfo(moduleInfo);const{remoteSnapshot:globalRemoteSnapshot,globalSnapshot:globalSnapshotRes}=await this.hooks.lifecycle.loadSnapshot.emit({options,moduleInfo,hostGlobalSnapshot,remoteSnapshot,globalSnapshot});let mSnapshot;let gSnapshot;if(globalRemoteSnapshot)if(sdk.isManifestProvider(globalRemoteSnapshot)){const remoteEntry=sdk.isBrowserEnv()?globalRemoteSnapshot.remoteEntry:globalRemoteSnapshot.ssrRemoteEntry||globalRemoteSnapshot.remoteEntry||"";const moduleSnapshot=await this.getManifestJson(remoteEntry,moduleInfo,{});const globalSnapshotRes=setGlobalSnapshotInfoByModuleInfo(polyfills._extends({},moduleInfo,{entry:remoteEntry}),moduleSnapshot);mSnapshot=moduleSnapshot;gSnapshot=globalSnapshotRes}else{const{remoteSnapshot:remoteSnapshotRes}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo,remoteSnapshot:globalRemoteSnapshot,from:"global"});mSnapshot=remoteSnapshotRes;gSnapshot=globalSnapshotRes}else if(isRemoteInfoWithEntry(moduleInfo)){const moduleSnapshot=await this.getManifestJson(moduleInfo.entry,moduleInfo,{});const globalSnapshotRes=setGlobalSnapshotInfoByModuleInfo(moduleInfo,moduleSnapshot);const{remoteSnapshot:remoteSnapshotRes}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo,remoteSnapshot:moduleSnapshot,from:"global"});mSnapshot=remoteSnapshotRes;gSnapshot=globalSnapshotRes}else error(errorCodes.getShortErrorMsg(errorCodes.RUNTIME_007,errorCodes.runtimeDescMap,{hostName:moduleInfo.name,hostVersion:moduleInfo.version,globalSnapshot:JSON.stringify(globalSnapshotRes)}));await this.hooks.lifecycle.afterLoadSnapshot.emit({id,host:this.HostInstance,options,moduleInfo,remoteSnapshot:mSnapshot});return{remoteSnapshot:mSnapshot,globalSnapshot:gSnapshot}}getGlobalRemoteInfo(moduleInfo){return getGlobalRemoteInfo(moduleInfo,this.HostInstance)}async getManifestJson(manifestUrl,moduleInfo,extraOptions){const getManifest=async()=>{let manifestJson=this.manifestCache.get(manifestUrl);if(manifestJson)return manifestJson;try{let res=await this.loaderHook.lifecycle.fetch.emit(manifestUrl,{});if(!res||!(res instanceof Response))res=await fetch(manifestUrl,{});manifestJson=await res.json()}catch(err){manifestJson=await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:manifestUrl,error:err,from:"runtime",lifecycle:"afterResolve",origin:this.HostInstance});if(!manifestJson){delete this.manifestLoading[manifestUrl];error(errorCodes.getShortErrorMsg(errorCodes.RUNTIME_003,errorCodes.runtimeDescMap,{manifestUrl,moduleName:moduleInfo.name,hostName:this.HostInstance.options.name},`${err}`))}}assert(manifestJson.metaData&&manifestJson.exposes&&manifestJson.shared,`${manifestUrl} is not a federation manifest`);this.manifestCache.set(manifestUrl,manifestJson);return manifestJson};const asyncLoadProcess=async()=>{const manifestJson=await getManifest();const remoteSnapshot=sdk.generateSnapshotFromManifest(manifestJson,{version:manifestUrl});const{remoteSnapshot:remoteSnapshotRes}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo,manifestJson,remoteSnapshot,manifestUrl,from:"manifest"});return remoteSnapshotRes};if(!this.manifestLoading[manifestUrl])this.manifestLoading[manifestUrl]=asyncLoadProcess().then(res=>res);return this.manifestLoading[manifestUrl]}constructor(HostInstance){this.loadingHostSnapshot=null;this.manifestCache=new Map;this.hooks=new PluginSystem({beforeLoadRemoteSnapshot:new AsyncHook("beforeLoadRemoteSnapshot"),loadSnapshot:new AsyncWaterfallHook("loadGlobalSnapshot"),loadRemoteSnapshot:new AsyncWaterfallHook("loadRemoteSnapshot"),afterLoadSnapshot:new AsyncWaterfallHook("afterLoadSnapshot")});this.manifestLoading=Global.__FEDERATION__.__MANIFEST_LOADING__;this.HostInstance=HostInstance;this.loaderHook=HostInstance.loaderHook}}class SharedHandler{registerShared(globalOptions,userOptions){const{shareInfos,shared}=formatShareConfigs(globalOptions,userOptions);const sharedKeys=Object.keys(shareInfos);sharedKeys.forEach(sharedKey=>{const sharedVals=shareInfos[sharedKey];sharedVals.forEach(sharedVal=>{const registeredShared=getRegisteredShare(this.shareScopeMap,sharedKey,sharedVal,this.hooks.lifecycle.resolveShare);if(!registeredShared&&sharedVal&&sharedVal.lib)this.setShared({pkgName:sharedKey,lib:sharedVal.lib,get:sharedVal.get,loaded:true,shared:sharedVal,from:userOptions.name})})});return{shareInfos,shared}}async loadShare(pkgName,extraOptions){const{host}=this;const shareInfo=getTargetSharedOptions({pkgName,extraOptions,shareInfos:host.options.shared});if(null==shareInfo?void 0:shareInfo.scope)await Promise.all(shareInfo.scope.map(async shareScope=>{await Promise.all(this.initializeSharing(shareScope,{strategy:shareInfo.strategy}))}));const loadShareRes=await this.hooks.lifecycle.beforeLoadShare.emit({pkgName,shareInfo,shared:host.options.shared,origin:host});const{shareInfo:shareInfoRes}=loadShareRes;assert(shareInfoRes,`Cannot find ${pkgName} Share in the ${host.options.name}. Please ensure that the ${pkgName} Share parameters have been injected`);const registeredShared=getRegisteredShare(this.shareScopeMap,pkgName,shareInfoRes,this.hooks.lifecycle.resolveShare);const addUseIn=shared=>{if(!shared.useIn)shared.useIn=[];addUniqueItem(shared.useIn,host.options.name)};if(registeredShared&&registeredShared.lib){addUseIn(registeredShared);return registeredShared.lib}if(registeredShared&&registeredShared.loading&&!registeredShared.loaded){const factory=await registeredShared.loading;registeredShared.loaded=true;if(!registeredShared.lib)registeredShared.lib=factory;addUseIn(registeredShared);return factory}if(registeredShared){const asyncLoadProcess=async()=>{const factory=await registeredShared.get();shareInfoRes.lib=factory;shareInfoRes.loaded=true;addUseIn(shareInfoRes);const gShared=getRegisteredShare(this.shareScopeMap,pkgName,shareInfoRes,this.hooks.lifecycle.resolveShare);if(gShared){gShared.lib=factory;gShared.loaded=true;addUseIn(gShared)}return factory};const loading=asyncLoadProcess();this.setShared({pkgName,loaded:false,shared:registeredShared,from:host.options.name,lib:null,loading});return loading}{if(null==extraOptions?void 0:extraOptions.customShareInfo)return false;const asyncLoadProcess=async()=>{const factory=await shareInfoRes.get();shareInfoRes.lib=factory;shareInfoRes.loaded=true;addUseIn(shareInfoRes);const gShared=getRegisteredShare(this.shareScopeMap,pkgName,shareInfoRes,this.hooks.lifecycle.resolveShare);if(gShared){gShared.lib=factory;gShared.loaded=true}return factory};const loading=asyncLoadProcess();this.setShared({pkgName,loaded:false,shared:shareInfoRes,from:host.options.name,lib:null,loading});return loading}}initializeSharing(shareScopeName=DEFAULT_SCOPE,extraOptions){const{host}=this;const from=null==extraOptions?void 0:extraOptions.from;const strategy=null==extraOptions?void 0:extraOptions.strategy;let initScope=null==extraOptions?void 0:extraOptions.initScope;const promises=[];if("build"!==from){const{initTokens}=this;if(!initScope)initScope=[];let initToken=initTokens[shareScopeName];if(!initToken)initToken=initTokens[shareScopeName]={from:this.host.name};if(initScope.indexOf(initToken)>=0)return promises;initScope.push(initToken)}const shareScope=this.shareScopeMap;const hostName=host.options.name;if(!shareScope[shareScopeName])shareScope[shareScopeName]={};const scope=shareScope[shareScopeName];const register=(name,shared)=>{var _activeVersion_shareConfig;const{version,eager}=shared;scope[name]=scope[name]||{};const versions=scope[name];const activeVersion=versions[version];const activeVersionEager=Boolean(activeVersion&&(activeVersion.eager||(null==(_activeVersion_shareConfig=activeVersion.shareConfig)?void 0:_activeVersion_shareConfig.eager)));if(!activeVersion||"loaded-first"!==activeVersion.strategy&&!activeVersion.loaded&&(Boolean(!eager)!==!activeVersionEager?eager:hostName>activeVersion.from))versions[version]=shared};const initFn=mod=>mod&&mod.init&&mod.init(shareScope[shareScopeName],initScope);const initRemoteModule=async key=>{const{module}=await host.remoteHandler.getRemoteModuleAndOptions({id:key});if(module.getEntry){let remoteEntryExports;try{remoteEntryExports=await module.getEntry()}catch(error){remoteEntryExports=await host.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:key,error,from:"runtime",lifecycle:"beforeLoadShare",origin:host})}if(!module.inited){await initFn(remoteEntryExports);module.inited=true}}};Object.keys(host.options.shared).forEach(shareName=>{const sharedArr=host.options.shared[shareName];sharedArr.forEach(shared=>{if(shared.scope.includes(shareScopeName))register(shareName,shared)})});if("version-first"===host.options.shareStrategy||"version-first"===strategy)host.options.remotes.forEach(remote=>{if(remote.shareScope===shareScopeName)promises.push(initRemoteModule(remote.name))});return promises}loadShareSync(pkgName,extraOptions){const{host}=this;const shareInfo=getTargetSharedOptions({pkgName,extraOptions,shareInfos:host.options.shared});if(null==shareInfo?void 0:shareInfo.scope)shareInfo.scope.forEach(shareScope=>{this.initializeSharing(shareScope,{strategy:shareInfo.strategy})});const registeredShared=getRegisteredShare(this.shareScopeMap,pkgName,shareInfo,this.hooks.lifecycle.resolveShare);const addUseIn=shared=>{if(!shared.useIn)shared.useIn=[];addUniqueItem(shared.useIn,host.options.name)};if(registeredShared){if("function"==typeof registeredShared.lib){addUseIn(registeredShared);if(!registeredShared.loaded){registeredShared.loaded=true;if(registeredShared.from===host.options.name)shareInfo.loaded=true}return registeredShared.lib}if("function"==typeof registeredShared.get){const module=registeredShared.get();if(!(module instanceof Promise)){addUseIn(registeredShared);this.setShared({pkgName,loaded:true,from:host.options.name,lib:module,shared:registeredShared});return module}}}if(shareInfo.lib){if(!shareInfo.loaded)shareInfo.loaded=true;return shareInfo.lib}if(shareInfo.get){const module=shareInfo.get();if(module instanceof Promise){const errorCode=(null==extraOptions?void 0:extraOptions.from)==="build"?errorCodes.RUNTIME_005:errorCodes.RUNTIME_006;throw new Error(errorCodes.getShortErrorMsg(errorCode,errorCodes.runtimeDescMap,{hostName:host.options.name,sharedPkgName:pkgName}))}shareInfo.lib=module;this.setShared({pkgName,loaded:true,from:host.options.name,lib:shareInfo.lib,shared:shareInfo});return shareInfo.lib}throw new Error(errorCodes.getShortErrorMsg(errorCodes.RUNTIME_006,errorCodes.runtimeDescMap,{hostName:host.options.name,sharedPkgName:pkgName}))}initShareScopeMap(scopeName,shareScope,extraOptions={}){const{host}=this;this.shareScopeMap[scopeName]=shareScope;this.hooks.lifecycle.initContainerShareScopeMap.emit({shareScope,options:host.options,origin:host,scopeName,hostShareScopeMap:extraOptions.hostShareScopeMap})}setShared({pkgName,shared,from,lib,loading,loaded,get}){const{version,scope="default"}=shared,shareInfo=polyfills._object_without_properties_loose(shared,["version","scope"]);const scopes=Array.isArray(scope)?scope:[scope];scopes.forEach(sc=>{if(!this.shareScopeMap[sc])this.shareScopeMap[sc]={};if(!this.shareScopeMap[sc][pkgName])this.shareScopeMap[sc][pkgName]={};if(!this.shareScopeMap[sc][pkgName][version]){this.shareScopeMap[sc][pkgName][version]=polyfills._extends({version,scope:["default"]},shareInfo,{lib,loaded,loading});if(get)this.shareScopeMap[sc][pkgName][version].get=get;return}const registeredShared=this.shareScopeMap[sc][pkgName][version];if(loading&&!registeredShared.loading)registeredShared.loading=loading})}_setGlobalShareScopeMap(hostOptions){const globalShareScopeMap=getGlobalShareScope();const identifier=hostOptions.id||hostOptions.name;if(identifier&&!globalShareScopeMap[identifier])globalShareScopeMap[identifier]=this.shareScopeMap}constructor(host){this.hooks=new PluginSystem({afterResolve:new AsyncWaterfallHook("afterResolve"),beforeLoadShare:new AsyncWaterfallHook("beforeLoadShare"),loadShare:new AsyncHook,resolveShare:new SyncWaterfallHook("resolveShare"),initContainerShareScopeMap:new SyncWaterfallHook("initContainerShareScopeMap")});this.host=host;this.shareScopeMap={};this.initTokens={};this._setGlobalShareScopeMap(host.options)}}class RemoteHandler{formatAndRegisterRemote(globalOptions,userOptions){const userRemotes=userOptions.remotes||[];return userRemotes.reduce((res,remote)=>{this.registerRemote(remote,res,{force:false});return res},globalOptions.remotes)}setIdToRemoteMap(id,remoteMatchInfo){const{remote,expose}=remoteMatchInfo;const{name,alias}=remote;this.idToRemoteMap[id]={name:remote.name,expose};if(alias&&id.startsWith(name)){const idWithAlias=id.replace(name,alias);this.idToRemoteMap[idWithAlias]={name:remote.name,expose};return}if(alias&&id.startsWith(alias)){const idWithName=id.replace(alias,name);this.idToRemoteMap[idWithName]={name:remote.name,expose}}}async loadRemote(id,options){const{host}=this;try{const{loadFactory=true}=options||{loadFactory:true};const{module,moduleOptions,remoteMatchInfo}=await this.getRemoteModuleAndOptions({id});const{pkgNameOrAlias,remote,expose,id:idRes,remoteSnapshot}=remoteMatchInfo;const moduleOrFactory=await module.get(idRes,expose,options,remoteSnapshot);const moduleWrapper=await this.hooks.lifecycle.onLoad.emit({id:idRes,pkgNameOrAlias,expose,exposeModule:loadFactory?moduleOrFactory:void 0,exposeModuleFactory:loadFactory?void 0:moduleOrFactory,remote,options:moduleOptions,moduleInstance:module,origin:host});this.setIdToRemoteMap(id,remoteMatchInfo);if("function"==typeof moduleWrapper)return moduleWrapper;return moduleOrFactory}catch(error){const{from="runtime"}=options||{from:"runtime"};const failOver=await this.hooks.lifecycle.errorLoadRemote.emit({id,error,from,lifecycle:"onLoad",origin:host});if(!failOver)throw error;return failOver}}async preloadRemote(preloadOptions){const{host}=this;await this.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:preloadOptions,options:host.options,origin:host});const preloadOps=formatPreloadArgs(host.options.remotes,preloadOptions);await Promise.all(preloadOps.map(async ops=>{const{remote}=ops;const remoteInfo=getRemoteInfo(remote);const{globalSnapshot,remoteSnapshot}=await host.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:remote});const assets=await this.hooks.lifecycle.generatePreloadAssets.emit({origin:host,preloadOptions:ops,remote,remoteInfo,globalSnapshot,remoteSnapshot});if(!assets)return;preloadAssets(remoteInfo,host,assets)}))}registerRemotes(remotes,options){const{host}=this;remotes.forEach(remote=>{this.registerRemote(remote,host.options.remotes,{force:null==options?void 0:options.force})})}async getRemoteModuleAndOptions(options){const{host}=this;const{id}=options;let loadRemoteArgs;try{loadRemoteArgs=await this.hooks.lifecycle.beforeRequest.emit({id,options:host.options,origin:host})}catch(error){loadRemoteArgs=await this.hooks.lifecycle.errorLoadRemote.emit({id,options:host.options,origin:host,from:"runtime",error,lifecycle:"beforeRequest"});if(!loadRemoteArgs)throw error}const{id:idRes}=loadRemoteArgs;const remoteSplitInfo=matchRemoteWithNameAndExpose(host.options.remotes,idRes);assert(remoteSplitInfo,errorCodes.getShortErrorMsg(errorCodes.RUNTIME_004,errorCodes.runtimeDescMap,{hostName:host.options.name,requestId:idRes}));const{remote:rawRemote}=remoteSplitInfo;const remoteInfo=getRemoteInfo(rawRemote);const matchInfo=await host.sharedHandler.hooks.lifecycle.afterResolve.emit(polyfills._extends({id:idRes},remoteSplitInfo,{options:host.options,origin:host,remoteInfo}));const{remote,expose}=matchInfo;assert(remote&&expose,`The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ${idRes}.`);let module=host.moduleCache.get(remote.name);const moduleOptions={host:host,remoteInfo};if(!module){module=new Module(moduleOptions);host.moduleCache.set(remote.name,module)}return{module,moduleOptions,remoteMatchInfo:matchInfo}}registerRemote(remote,targetRemotes,options){const{host}=this;const normalizeRemote=()=>{if(remote.alias){const findEqual=targetRemotes.find(item=>{var _item_alias;return remote.alias&&(item.name.startsWith(remote.alias)||(null==(_item_alias=item.alias)?void 0:_item_alias.startsWith(remote.alias)))});assert(!findEqual,`The alias ${remote.alias} of remote ${remote.name} is not allowed to be the prefix of ${findEqual&&findEqual.name} name or alias`)}if("entry"in remote){if(sdk.isBrowserEnv()&&!remote.entry.startsWith("http"))remote.entry=new URL(remote.entry,window.location.origin).href}if(!remote.shareScope)remote.shareScope=DEFAULT_SCOPE;if(!remote.type)remote.type=DEFAULT_REMOTE_TYPE};this.hooks.lifecycle.beforeRegisterRemote.emit({remote,origin:host});const registeredRemote=targetRemotes.find(item=>item.name===remote.name);if(registeredRemote){const messages=[`The remote "${remote.name}" is already registered.`,"Please note that overriding it may cause unexpected errors."];if(null==options?void 0:options.force){this.removeRemote(registeredRemote);normalizeRemote();targetRemotes.push(remote);this.hooks.lifecycle.registerRemote.emit({remote,origin:host});sdk.warn(messages.join(" "))}}else{normalizeRemote();targetRemotes.push(remote);this.hooks.lifecycle.registerRemote.emit({remote,origin:host})}}removeRemote(remote){try{const{host}=this;const{name}=remote;const remoteIndex=host.options.remotes.findIndex(item=>item.name===name);if(-1!==remoteIndex)host.options.remotes.splice(remoteIndex,1);const loadedModule=host.moduleCache.get(remote.name);if(loadedModule){const remoteInfo=loadedModule.remoteInfo;const key=remoteInfo.entryGlobalName;if(CurrentGlobal[key]){var _Object_getOwnPropertyDescriptor;if(null==(_Object_getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor(CurrentGlobal,key))?void 0:_Object_getOwnPropertyDescriptor.configurable)delete CurrentGlobal[key];else CurrentGlobal[key]=void 0}const remoteEntryUniqueKey=getRemoteEntryUniqueKey(loadedModule.remoteInfo);if(globalLoading[remoteEntryUniqueKey])delete globalLoading[remoteEntryUniqueKey];host.snapshotHandler.manifestCache.delete(remoteInfo.entry);let remoteInsId=remoteInfo.buildVersion?sdk.composeKeyWithSeparator(remoteInfo.name,remoteInfo.buildVersion):remoteInfo.name;const remoteInsIndex=CurrentGlobal.__FEDERATION__.__INSTANCES__.findIndex(ins=>{if(remoteInfo.buildVersion)return ins.options.id===remoteInsId;return ins.name===remoteInsId});if(-1!==remoteInsIndex){const remoteIns=CurrentGlobal.__FEDERATION__.__INSTANCES__[remoteInsIndex];remoteInsId=remoteIns.options.id||remoteInsId;const globalShareScopeMap=getGlobalShareScope();let isAllSharedNotUsed=true;const needDeleteKeys=[];Object.keys(globalShareScopeMap).forEach(instId=>{const shareScopeMap=globalShareScopeMap[instId];shareScopeMap&&Object.keys(shareScopeMap).forEach(shareScope=>{const shareScopeVal=shareScopeMap[shareScope];shareScopeVal&&Object.keys(shareScopeVal).forEach(shareName=>{const sharedPkgs=shareScopeVal[shareName];sharedPkgs&&Object.keys(sharedPkgs).forEach(shareVersion=>{const shared=sharedPkgs[shareVersion];if(shared&&"object"==typeof shared&&shared.from===remoteInfo.name)if(shared.loaded||shared.loading){shared.useIn=shared.useIn.filter(usedHostName=>usedHostName!==remoteInfo.name);if(shared.useIn.length)isAllSharedNotUsed=false;else needDeleteKeys.push([instId,shareScope,shareName,shareVersion])}else needDeleteKeys.push([instId,shareScope,shareName,shareVersion])})})})});if(isAllSharedNotUsed){remoteIns.shareScopeMap={};delete globalShareScopeMap[remoteInsId]}needDeleteKeys.forEach(([insId,shareScope,shareName,shareVersion])=>{var _globalShareScopeMap_insId_shareScope_shareName,_globalShareScopeMap_insId_shareScope,_globalShareScopeMap_insId;null==(_globalShareScopeMap_insId=globalShareScopeMap[insId])||null==(_globalShareScopeMap_insId_shareScope=_globalShareScopeMap_insId[shareScope])||null==(_globalShareScopeMap_insId_shareScope_shareName=_globalShareScopeMap_insId_shareScope[shareName])||delete _globalShareScopeMap_insId_shareScope_shareName[shareVersion]});CurrentGlobal.__FEDERATION__.__INSTANCES__.splice(remoteInsIndex,1)}const{hostGlobalSnapshot}=getGlobalRemoteInfo(remote,host);if(hostGlobalSnapshot){const remoteKey=hostGlobalSnapshot&&"remotesInfo"in hostGlobalSnapshot&&hostGlobalSnapshot.remotesInfo&&getInfoWithoutType(hostGlobalSnapshot.remotesInfo,remote.name).key;if(remoteKey){delete hostGlobalSnapshot.remotesInfo[remoteKey];if(Boolean(Global.__FEDERATION__.__MANIFEST_LOADING__[remoteKey]))delete Global.__FEDERATION__.__MANIFEST_LOADING__[remoteKey]}}host.moduleCache.delete(remote.name)}}catch(err){logger.log("removeRemote fail: ",err)}}constructor(host){this.hooks=new PluginSystem({beforeRegisterRemote:new SyncWaterfallHook("beforeRegisterRemote"),registerRemote:new SyncWaterfallHook("registerRemote"),beforeRequest:new AsyncWaterfallHook("beforeRequest"),onLoad:new AsyncHook("onLoad"),handlePreloadModule:new SyncHook("handlePreloadModule"),errorLoadRemote:new AsyncHook("errorLoadRemote"),beforePreloadRemote:new AsyncHook("beforePreloadRemote"),generatePreloadAssets:new AsyncHook("generatePreloadAssets"),afterPreloadRemote:new AsyncHook,loadEntry:new AsyncHook});this.host=host;this.idToRemoteMap={}}}class ModuleFederation{initOptions(userOptions){this.registerPlugins(userOptions.plugins);const options=this.formatOptions(this.options,userOptions);this.options=options;return options}async loadShare(pkgName,extraOptions){return this.sharedHandler.loadShare(pkgName,extraOptions)}loadShareSync(pkgName,extraOptions){return this.sharedHandler.loadShareSync(pkgName,extraOptions)}initializeSharing(shareScopeName=DEFAULT_SCOPE,extraOptions){return this.sharedHandler.initializeSharing(shareScopeName,extraOptions)}initRawContainer(name,url,container){const remoteInfo=getRemoteInfo({name,entry:url});const module=new Module({host:this,remoteInfo});module.remoteEntryExports=container;this.moduleCache.set(name,module);return module}async loadRemote(id,options){return this.remoteHandler.loadRemote(id,options)}async preloadRemote(preloadOptions){return this.remoteHandler.preloadRemote(preloadOptions)}initShareScopeMap(scopeName,shareScope,extraOptions={}){this.sharedHandler.initShareScopeMap(scopeName,shareScope,extraOptions)}formatOptions(globalOptions,userOptions){const{shared}=formatShareConfigs(globalOptions,userOptions);const{userOptions:userOptionsRes,options:globalOptionsRes}=this.hooks.lifecycle.beforeInit.emit({origin:this,userOptions,options:globalOptions,shareInfo:shared});const remotes=this.remoteHandler.formatAndRegisterRemote(globalOptionsRes,userOptionsRes);const{shared:handledShared}=this.sharedHandler.registerShared(globalOptionsRes,userOptionsRes);const plugins=[...globalOptionsRes.plugins];if(userOptionsRes.plugins)userOptionsRes.plugins.forEach(plugin=>{if(!plugins.includes(plugin))plugins.push(plugin)});const optionsRes=polyfills._extends({},globalOptions,userOptions,{plugins,remotes,shared:handledShared});this.hooks.lifecycle.init.emit({origin:this,options:optionsRes});return optionsRes}registerPlugins(plugins){const pluginRes=registerPlugins(plugins,this);this.options.plugins=this.options.plugins.reduce((res,plugin)=>{if(!plugin)return res;if(res&&!res.find(item=>item.name===plugin.name))res.push(plugin);return res},pluginRes||[])}registerRemotes(remotes,options){return this.remoteHandler.registerRemotes(remotes,options)}registerShared(shared){this.sharedHandler.registerShared(this.options,polyfills._extends({},this.options,{shared}))}constructor(userOptions){this.hooks=new PluginSystem({beforeInit:new SyncWaterfallHook("beforeInit"),init:new SyncHook,beforeInitContainer:new AsyncWaterfallHook("beforeInitContainer"),initContainer:new AsyncWaterfallHook("initContainer")});this.version="0.17.1";this.moduleCache=new Map;this.loaderHook=new PluginSystem({getModuleInfo:new SyncHook,createScript:new SyncHook,createLink:new SyncHook,fetch:new AsyncHook,loadEntryError:new AsyncHook,getModuleFactory:new AsyncHook});this.bridgeHook=new PluginSystem({beforeBridgeRender:new SyncHook,afterBridgeRender:new SyncHook,beforeBridgeDestroy:new SyncHook,afterBridgeDestroy:new SyncHook});const plugins=[snapshotPlugin(),generatePreloadAssetsPlugin()];const defaultOptions={id:getBuilderId(),name:userOptions.name,plugins,remotes:[],shared:{},inBrowser:sdk.isBrowserEnv()};this.name=userOptions.name;this.options=defaultOptions;this.snapshotHandler=new SnapshotHandler(this);this.sharedHandler=new SharedHandler(this);this.remoteHandler=new RemoteHandler(this);this.shareScopeMap=this.sharedHandler.shareScopeMap;this.registerPlugins([...defaultOptions.plugins,...userOptions.plugins||[]]);this.options=this.formatOptions(defaultOptions,userOptions)}}var index=/*#__PURE__*/Object.freeze({__proto__:null});exports.loadScript=sdk.loadScript;exports.loadScriptNode=sdk.loadScriptNode;exports.CurrentGlobal=CurrentGlobal;exports.Global=Global;exports.Module=Module;exports.ModuleFederation=ModuleFederation;exports.addGlobalSnapshot=addGlobalSnapshot;exports.assert=assert;exports.getGlobalFederationConstructor=getGlobalFederationConstructor;exports.getGlobalSnapshot=getGlobalSnapshot;exports.getInfoWithoutType=getInfoWithoutType;exports.getRegisteredShare=getRegisteredShare;exports.getRemoteEntry=getRemoteEntry;exports.getRemoteInfo=getRemoteInfo;exports.helpers=helpers;exports.isStaticResourcesEqual=isStaticResourcesEqual;exports.matchRemoteWithNameAndExpose=matchRemoteWithNameAndExpose;exports.registerGlobalPlugins=registerGlobalPlugins;exports.resetFederationGlobalInfo=resetFederationGlobalInfo;exports.safeWrapper=safeWrapper;exports.satisfy=satisfy;exports.setGlobalFederationConstructor=setGlobalFederationConstructor;exports.setGlobalFederationInstance=setGlobalFederationInstance;exports.types=index},9284:function(__unused_webpack_module,exports){function _extends(){_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)if(Object.prototype.hasOwnProperty.call(source,key))target[key]=source[key]}return target};return _extends.apply(this,arguments)}function _object_without_properties_loose(source,excluded){if(null==source)return{};var target={};var sourceKeys=Object.keys(source);var key,i;for(i=0;i<sourceKeys.length;i++){key=sourceKeys[i];if(!(excluded.indexOf(key)>=0))target[key]=source[key]}return target}exports._extends=_extends;exports._object_without_properties_loose=_object_without_properties_loose},6124:function(__unused_webpack_module,exports,__webpack_require__){var runtimeCore=__webpack_require__(3912);var errorCodes=__webpack_require__(4657);var utils=__webpack_require__(2847);function createInstance(options){const ModuleFederationConstructor=runtimeCore.getGlobalFederationConstructor()||runtimeCore.ModuleFederation;return new ModuleFederationConstructor(options)}let FederationInstance=null;function init(options){const instance=utils.getGlobalFederationInstance(options.name,options.version);if(instance){instance.initOptions(options);if(!FederationInstance)FederationInstance=instance;return instance}FederationInstance=createInstance(options);runtimeCore.setGlobalFederationInstance(FederationInstance);return FederationInstance}function loadRemote(...args){runtimeCore.assert(FederationInstance,errorCodes.getShortErrorMsg(errorCodes.RUNTIME_009,errorCodes.runtimeDescMap));const loadRemote1=FederationInstance.loadRemote;return loadRemote1.apply(FederationInstance,args)}function loadShare(...args){runtimeCore.assert(FederationInstance,errorCodes.getShortErrorMsg(errorCodes.RUNTIME_009,errorCodes.runtimeDescMap));const loadShare1=FederationInstance.loadShare;return loadShare1.apply(FederationInstance,args)}function loadShareSync(...args){runtimeCore.assert(FederationInstance,errorCodes.getShortErrorMsg(errorCodes.RUNTIME_009,errorCodes.runtimeDescMap));const loadShareSync1=FederationInstance.loadShareSync;return loadShareSync1.apply(FederationInstance,args)}function preloadRemote(...args){runtimeCore.assert(FederationInstance,errorCodes.getShortErrorMsg(errorCodes.RUNTIME_009,errorCodes.runtimeDescMap));return FederationInstance.preloadRemote.apply(FederationInstance,args)}function registerRemotes(...args){runtimeCore.assert(FederationInstance,errorCodes.getShortErrorMsg(errorCodes.RUNTIME_009,errorCodes.runtimeDescMap));return FederationInstance.registerRemotes.apply(FederationInstance,args)}function registerPlugins(...args){runtimeCore.assert(FederationInstance,errorCodes.getShortErrorMsg(errorCodes.RUNTIME_009,errorCodes.runtimeDescMap));return FederationInstance.registerPlugins.apply(FederationInstance,args)}function getInstance(){return FederationInstance}function registerShared(...args){runtimeCore.assert(FederationInstance,errorCodes.getShortErrorMsg(errorCodes.RUNTIME_009,errorCodes.runtimeDescMap));return FederationInstance.registerShared.apply(FederationInstance,args)}runtimeCore.setGlobalFederationConstructor(runtimeCore.ModuleFederation);exports.Module=runtimeCore.Module;exports.ModuleFederation=runtimeCore.ModuleFederation;exports.getRemoteEntry=runtimeCore.getRemoteEntry;exports.getRemoteInfo=runtimeCore.getRemoteInfo;exports.loadScript=runtimeCore.loadScript;exports.loadScriptNode=runtimeCore.loadScriptNode;exports.registerGlobalPlugins=runtimeCore.registerGlobalPlugins;exports.createInstance=createInstance;exports.getInstance=getInstance;exports.init=init;exports.loadRemote=loadRemote;exports.loadShare=loadShare;exports.loadShareSync=loadShareSync;exports.preloadRemote=preloadRemote;exports.registerPlugins=registerPlugins;exports.registerRemotes=registerRemotes;exports.registerShared=registerShared},2847:function(__unused_webpack_module,exports,__webpack_require__){var runtimeCore=__webpack_require__(3912);function getBuilderId(){return"integrations_app:0.4.84"}function getGlobalFederationInstance(name,version){const buildId=getBuilderId();return runtimeCore.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(GMInstance=>{if(buildId&&GMInstance.options.id===buildId)return true;if(GMInstance.options.name===name&&!GMInstance.options.version&&!version)return true;if(GMInstance.options.name===name&&version&&GMInstance.options.version===version)return true;return false})}exports.getGlobalFederationInstance=getGlobalFederationInstance},6492:function(__unused_webpack_module,exports,__webpack_require__){var polyfills=__webpack_require__(6232);const FederationModuleManifest="federation-manifest.json";const MANIFEST_EXT=".json";const BROWSER_LOG_KEY="FEDERATION_DEBUG";const NameTransformSymbol={AT:"@",HYPHEN:"-",SLASH:"/"};const NameTransformMap={[NameTransformSymbol.AT]:"scope_",[NameTransformSymbol.HYPHEN]:"_",[NameTransformSymbol.SLASH]:"__"};const EncodedNameTransformMap={[NameTransformMap[NameTransformSymbol.AT]]:NameTransformSymbol.AT,[NameTransformMap[NameTransformSymbol.HYPHEN]]:NameTransformSymbol.HYPHEN,[NameTransformMap[NameTransformSymbol.SLASH]]:NameTransformSymbol.SLASH};const SEPARATOR=":";const ManifestFileName="mf-manifest.json";const StatsFileName="mf-stats.json";const MFModuleType={NPM:"npm",APP:"app"};const MODULE_DEVTOOL_IDENTIFIER="__MF_DEVTOOLS_MODULE_INFO__";const ENCODE_NAME_PREFIX="ENCODE_NAME_PREFIX";const TEMP_DIR=".federation";const MFPrefetchCommon={identifier:"MFDataPrefetch",globalKey:"__PREFETCH__",library:"mf-data-prefetch",exportsKey:"__PREFETCH_EXPORTS__",fileName:"bootstrap.js"};var ContainerPlugin=/*#__PURE__*/Object.freeze({__proto__:null});var ContainerReferencePlugin=/*#__PURE__*/Object.freeze({__proto__:null});var ModuleFederationPlugin=/*#__PURE__*/Object.freeze({__proto__:null});var SharePlugin=/*#__PURE__*/Object.freeze({__proto__:null});function isBrowserEnv(){return"undefined"!=typeof window&&void 0!==window.document}function isReactNativeEnv(){var _navigator;return"undefined"!=typeof navigator&&(null==(_navigator=navigator)?void 0:_navigator.product)==="ReactNative"}function isBrowserDebug(){try{if(isBrowserEnv()&&window.localStorage)return Boolean(localStorage.getItem(BROWSER_LOG_KEY))}catch(error1){}return false}function isDebugMode(){if("undefined"!=typeof process&&process.env&&process.env["FEDERATION_DEBUG"])return Boolean(process.env["FEDERATION_DEBUG"]);if("undefined"!=typeof FEDERATION_DEBUG&&Boolean(FEDERATION_DEBUG))return true;return isBrowserDebug()}const getProcessEnv=function(){return"undefined"!=typeof process&&process.env?process.env:{}};const LOG_CATEGORY="[ Federation Runtime ]";const parseEntry=(str,devVerOrUrl,separator=SEPARATOR)=>{const strSplit=str.split(separator);const devVersionOrUrl="development"===getProcessEnv()["NODE_ENV"]&&devVerOrUrl;const defaultVersion="*";const isEntry=s=>s.startsWith("http")||s.includes(MANIFEST_EXT);if(strSplit.length>=2){let[name,...versionOrEntryArr]=strSplit;if(str.startsWith(separator)){name=strSplit.slice(0,2).join(separator);versionOrEntryArr=[devVersionOrUrl||strSplit.slice(2).join(separator)]}let versionOrEntry=devVersionOrUrl||versionOrEntryArr.join(separator);if(isEntry(versionOrEntry))return{name,entry:versionOrEntry};return{name,version:versionOrEntry||defaultVersion}}if(1===strSplit.length){const[name]=strSplit;if(devVersionOrUrl&&isEntry(devVersionOrUrl))return{name,entry:devVersionOrUrl};return{name,version:devVersionOrUrl||defaultVersion}}throw`Invalid entry value: ${str}`};const composeKeyWithSeparator=function(...args){if(!args.length)return"";return args.reduce((sum,cur)=>{if(!cur)return sum;if(!sum)return cur;return`${sum}${SEPARATOR}${cur}`},"")};const encodeName=function(name,prefix="",withExt=false){try{const ext=withExt?".js":"";return`${prefix}${name.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])}${ext}`}catch(err){throw err}};const decodeName=function(name,prefix,withExt){try{let decodedName=name;if(prefix){if(!decodedName.startsWith(prefix))return decodedName;decodedName=decodedName.replace(new RegExp(prefix,"g"),"")}decodedName=decodedName.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]]);if(withExt)decodedName=decodedName.replace(".js","");return decodedName}catch(err){throw err}};const generateExposeFilename=(exposeName,withExt)=>{if(!exposeName)return"";let expose=exposeName;if("."===expose)expose="default_export";if(expose.startsWith("./"))expose=expose.replace("./","");return encodeName(expose,"__federation_expose_",withExt)};const generateShareFilename=(pkgName,withExt)=>{if(!pkgName)return"";return encodeName(pkgName,"__federation_shared_",withExt)};const getResourceUrl=(module,sourceUrl)=>{if("getPublicPath"in module){let publicPath;publicPath=module.getPublicPath.startsWith("function")?new Function("return "+module.getPublicPath)()():new Function(module.getPublicPath)();return`${publicPath}${sourceUrl}`}if("publicPath"in module){if(!isBrowserEnv()&&!isReactNativeEnv()&&"ssrPublicPath"in module)return`${module.ssrPublicPath}${sourceUrl}`;return`${module.publicPath}${sourceUrl}`}console.warn("Cannot get resource URL. If in debug mode, please ignore.",module,sourceUrl);return""};const assert=(condition,msg)=>{if(!condition)error(msg)};const error=msg=>{throw new Error(`${LOG_CATEGORY}: ${msg}`)};const warn=msg=>{console.warn(`${LOG_CATEGORY}: ${msg}`)};function safeToString(info){try{return JSON.stringify(info,null,2)}catch(e){return""}}const VERSION_PATTERN_REGEXP=/^([\d^=v<>~]|[*xX]$)/;function isRequiredVersion(str){return VERSION_PATTERN_REGEXP.test(str)}const simpleJoinRemoteEntry=(rPath,rName)=>{if(!rPath)return rName;const transformPath=str=>{if("."===str)return"";if(str.startsWith("./"))return str.replace("./","");if(str.startsWith("/")){const strWithoutSlash=str.slice(1);if(strWithoutSlash.endsWith("/"))return strWithoutSlash.slice(0,-1);return strWithoutSlash}return str};const transformedPath=transformPath(rPath);if(!transformedPath)return rName;if(transformedPath.endsWith("/"))return`${transformedPath}${rName}`;return`${transformedPath}/${rName}`};function inferAutoPublicPath(url){return url.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")}function generateSnapshotFromManifest(manifest,options={}){var _manifest_metaData,_manifest_metaData1;const{remotes={},overrides={},version}=options;let remoteSnapshot;const getPublicPath=()=>{if(!("publicPath"in manifest.metaData))return manifest.metaData.getPublicPath;if("auto"===manifest.metaData.publicPath&&version)return inferAutoPublicPath(version);return manifest.metaData.publicPath};const overridesKeys=Object.keys(overrides);let remotesInfo={};if(!Object.keys(remotes).length){var _manifest_remotes;remotesInfo=(null==(_manifest_remotes=manifest.remotes)?void 0:_manifest_remotes.reduce((res,next)=>{let matchedVersion;const name=next.federationContainerName;matchedVersion=overridesKeys.includes(name)?overrides[name]:"version"in next?next.version:next.entry;res[name]={matchedVersion};return res},{}))||{}}Object.keys(remotes).forEach(key=>remotesInfo[key]={matchedVersion:overridesKeys.includes(key)?overrides[key]:remotes[key]});const{remoteEntry:{path:remoteEntryPath,name:remoteEntryName,type:remoteEntryType},types:remoteTypes,buildInfo:{buildVersion},globalName,ssrRemoteEntry}=manifest.metaData;const{exposes}=manifest;let basicRemoteSnapshot={version:version?version:"",buildVersion,globalName,remoteEntry:simpleJoinRemoteEntry(remoteEntryPath,remoteEntryName),remoteEntryType,remoteTypes:simpleJoinRemoteEntry(remoteTypes.path,remoteTypes.name),remoteTypesZip:remoteTypes.zip||"",remoteTypesAPI:remoteTypes.api||"",remotesInfo,shared:null==manifest?void 0:manifest.shared.map(item=>({assets:item.assets,sharedName:item.name,version:item.version})),modules:null==exposes?void 0:exposes.map(expose=>({moduleName:expose.name,modulePath:expose.path,assets:expose.assets}))};if(null==(_manifest_metaData=manifest.metaData)?void 0:_manifest_metaData.prefetchInterface){const prefetchInterface=manifest.metaData.prefetchInterface;basicRemoteSnapshot=polyfills._({},basicRemoteSnapshot,{prefetchInterface})}if(null==(_manifest_metaData1=manifest.metaData)?void 0:_manifest_metaData1.prefetchEntry){const{path,name,type}=manifest.metaData.prefetchEntry;basicRemoteSnapshot=polyfills._({},basicRemoteSnapshot,{prefetchEntry:simpleJoinRemoteEntry(path,name),prefetchEntryType:type})}remoteSnapshot="publicPath"in manifest.metaData?polyfills._({},basicRemoteSnapshot,{publicPath:getPublicPath(),ssrPublicPath:manifest.metaData.ssrPublicPath}):polyfills._({},basicRemoteSnapshot,{getPublicPath:getPublicPath()});if(ssrRemoteEntry){const fullSSRRemoteEntry=simpleJoinRemoteEntry(ssrRemoteEntry.path,ssrRemoteEntry.name);remoteSnapshot.ssrRemoteEntry=fullSSRRemoteEntry;remoteSnapshot.ssrRemoteEntryType=ssrRemoteEntry.type||"commonjs-module"}return remoteSnapshot}function isManifestProvider(moduleInfo){if("remoteEntry"in moduleInfo&&moduleInfo.remoteEntry.includes(MANIFEST_EXT))return true;return false}const PREFIX="[ Module Federation ]";let Logger=class{setPrefix(prefix){this.prefix=prefix}log(...args){console.log(this.prefix,...args)}warn(...args){console.log(this.prefix,...args)}error(...args){console.log(this.prefix,...args)}success(...args){console.log(this.prefix,...args)}info(...args){console.log(this.prefix,...args)}ready(...args){console.log(this.prefix,...args)}debug(...args){if(isDebugMode())console.log(this.prefix,...args)}constructor(prefix){this.prefix=prefix}};function createLogger(prefix){return new Logger(prefix)}const logger=createLogger(PREFIX);async function safeWrapper(callback,disableWarn){try{const res=await callback();return res}catch(e){disableWarn||warn(e);return}}function isStaticResourcesEqual(url1,url2){const REG_EXP=/^(https?:)?\/\//i;const relativeUrl1=url1.replace(REG_EXP,"").replace(/\/$/,"");const relativeUrl2=url2.replace(REG_EXP,"").replace(/\/$/,"");return relativeUrl1===relativeUrl2}function createScript(info){let script=null;let needAttach=true;let timeout=2e4;let timeoutId;const scripts=document.getElementsByTagName("script");for(let i=0;i<scripts.length;i++){const s=scripts[i];const scriptSrc=s.getAttribute("src");if(scriptSrc&&isStaticResourcesEqual(scriptSrc,info.url)){script=s;needAttach=false;break}}if(!script){const attrs=info.attrs;script=document.createElement("script");script.type=(null==attrs?void 0:attrs["type"])==="module"?"module":"text/javascript";let createScriptRes;if(info.createScriptHook){createScriptRes=info.createScriptHook(info.url,info.attrs);if(createScriptRes instanceof HTMLScriptElement)script=createScriptRes;else if("object"==typeof createScriptRes){if("script"in createScriptRes&&createScriptRes.script)script=createScriptRes.script;if("timeout"in createScriptRes&&createScriptRes.timeout)timeout=createScriptRes.timeout}}if(!script.src)script.src=info.url;if(attrs&&!createScriptRes)Object.keys(attrs).forEach(name=>{if(script){if("async"===name||"defer"===name)script[name]=attrs[name];else if(!script.getAttribute(name))script.setAttribute(name,attrs[name])}})}const onScriptComplete=async(prev,event)=>{clearTimeout(timeoutId);const onScriptCompleteCallback=()=>{if((null==event?void 0:event.type)==="error")(null==info?void 0:info.onErrorCallback)&&(null==info||info.onErrorCallback(event));else(null==info?void 0:info.cb)&&(null==info||info.cb())};if(script){script.onerror=null;script.onload=null;safeWrapper(()=>{const{needDeleteScript=true}=info;if(needDeleteScript)(null==script?void 0:script.parentNode)&&script.parentNode.removeChild(script)});if(prev&&"function"==typeof prev){const result=prev(event);if(result instanceof Promise){const res=await result;onScriptCompleteCallback();return res}onScriptCompleteCallback();return result}}onScriptCompleteCallback()};script.onerror=onScriptComplete.bind(null,script.onerror);script.onload=onScriptComplete.bind(null,script.onload);timeoutId=setTimeout(()=>{onScriptComplete(null,new Error(`Remote script "${info.url}" time-outed.`))},timeout);return{script,needAttach}}function createLink(info){let link=null;let needAttach=true;const links=document.getElementsByTagName("link");for(let i=0;i<links.length;i++){const l=links[i];const linkHref=l.getAttribute("href");const linkRel=l.getAttribute("rel");if(linkHref&&isStaticResourcesEqual(linkHref,info.url)&&linkRel===info.attrs["rel"]){link=l;needAttach=false;break}}if(!link){link=document.createElement("link");link.setAttribute("href",info.url);let createLinkRes;const attrs=info.attrs;if(info.createLinkHook){createLinkRes=info.createLinkHook(info.url,attrs);if(createLinkRes instanceof HTMLLinkElement)link=createLinkRes}if(attrs&&!createLinkRes)Object.keys(attrs).forEach(name=>{if(link&&!link.getAttribute(name))link.setAttribute(name,attrs[name])})}const onLinkComplete=(prev,event)=>{const onLinkCompleteCallback=()=>{if((null==event?void 0:event.type)==="error")(null==info?void 0:info.onErrorCallback)&&(null==info||info.onErrorCallback(event));else(null==info?void 0:info.cb)&&(null==info||info.cb())};if(link){link.onerror=null;link.onload=null;safeWrapper(()=>{const{needDeleteLink=true}=info;if(needDeleteLink)(null==link?void 0:link.parentNode)&&link.parentNode.removeChild(link)});if(prev){const res=prev(event);onLinkCompleteCallback();return res}}onLinkCompleteCallback()};link.onerror=onLinkComplete.bind(null,link.onerror);link.onload=onLinkComplete.bind(null,link.onload);return{link,needAttach}}function loadScript(url,info){const{attrs={},createScriptHook}=info;return new Promise((resolve,reject)=>{const{script,needAttach}=createScript({url,cb:resolve,onErrorCallback:reject,attrs:polyfills._({fetchpriority:"high"},attrs),createScriptHook,needDeleteScript:true});needAttach&&document.head.appendChild(script)})}function importNodeModule(name){if(!name)throw new Error("import specifier is required");const importModule=new Function("name","return import(name)");return importModule(name).then(res=>res).catch(error1=>{console.error(`Error importing module ${name}:`,error1);throw error1})}const loadNodeFetch=async()=>{const fetchModule=await importNodeModule("node-fetch");return fetchModule.default||fetchModule};const lazyLoaderHookFetch=async(input,init,loaderHook)=>{const hook=(url,init)=>loaderHook.lifecycle.fetch.emit(url,init);const res=await hook(input,init||{});if(!res||!(res instanceof Response)){const fetchFunction="undefined"==typeof fetch?await loadNodeFetch():fetch;return fetchFunction(input,init||{})}return res};const createScriptNode="undefined"==typeof ENV_TARGET||"web"!==ENV_TARGET?(url,cb,attrs,loaderHook)=>{if(null==loaderHook?void 0:loaderHook.createScriptHook){const hookResult=loaderHook.createScriptHook(url);if(hookResult&&"object"==typeof hookResult&&"url"in hookResult)url=hookResult.url}let urlObj;try{urlObj=new URL(url)}catch(e){console.error("Error constructing URL:",e);cb(new Error(`Invalid URL: ${e}`));return}const getFetch=async()=>{if(null==loaderHook?void 0:loaderHook.fetch)return(input,init)=>lazyLoaderHookFetch(input,init,loaderHook);return"undefined"==typeof fetch?loadNodeFetch():fetch};const handleScriptFetch=async(f,urlObj)=>{try{var _vm_constants;const res=await f(urlObj.href);const data=await res.text();const[path,vm]=await Promise.all([importNodeModule("path"),importNodeModule("vm")]);const scriptContext={exports:{},module:{exports:{}}};const urlDirname=urlObj.pathname.split("/").slice(0,-1).join("/");const 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}
4
4
  })`,{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 container=exportedInterface[attrs["globalName"]]||exportedInterface;cb(void 0,container);return}cb(void 0,exportedInterface)}catch(e){cb(e instanceof Error?e:new Error(`Script execution error: ${e}`))}};getFetch().then(async f=>{if((null==attrs?void 0:attrs["type"])==="esm"||(null==attrs?void 0:attrs["type"])==="module")return loadModule(urlObj.href,{fetch:f,vm:await importNodeModule("vm")}).then(async module=>{await module.evaluate();cb(void 0,module.namespace)}).catch(e=>{cb(e instanceof Error?e:new Error(`Script execution error: ${e}`))});handleScriptFetch(f,urlObj)}).catch(err=>{cb(err)})}:(url,cb,attrs,loaderHook)=>{cb(new Error("createScriptNode is disabled in non-Node.js environment"))};const loadScriptNode="undefined"==typeof ENV_TARGET||"web"!==ENV_TARGET?(url,info)=>new Promise((resolve,reject)=>{createScriptNode(url,(error1,scriptContext)=>{if(error1)reject(error1);else{var _info_attrs,_info_attrs1;const remoteEntryKey=(null==info?void 0:null==(_info_attrs=info.attrs)?void 0:_info_attrs["globalName"])||`__FEDERATION_${null==info?void 0:null==(_info_attrs1=info.attrs)?void 0:_info_attrs1["name"]}:custom__`;const entryExports=globalThis[remoteEntryKey]=scriptContext;resolve(entryExports)}},info.attrs,info.loaderHook)}):(url,info)=>{throw new Error("loadScriptNode is disabled in non-Node.js environment")};async function loadModule(url,options){const{fetch:fetch1,vm}=options;const response=await fetch1(url);const code=await response.text();const module=new vm.SourceTextModule(code,{importModuleDynamically:async(specifier,script)=>{const resolvedUrl=new URL(specifier,url).href;return loadModule(resolvedUrl,options)}});await module.link(async specifier=>{const resolvedUrl=new URL(specifier,url).href;const module=await loadModule(resolvedUrl,options);return module});return module}function normalizeOptions(enableDefault,defaultOptions,key){return function(options){if(false===options)return false;if(void 0===options)if(enableDefault)return defaultOptions;else return false;if(true===options)return defaultOptions;if(options&&"object"==typeof options)return polyfills._({},defaultOptions,options);throw new Error(`Unexpected type for \`${key}\`, expect boolean/undefined/object, got: ${typeof options}`)}}const createModuleFederationConfig=options=>options;exports.BROWSER_LOG_KEY=BROWSER_LOG_KEY;exports.ENCODE_NAME_PREFIX=ENCODE_NAME_PREFIX;exports.EncodedNameTransformMap=EncodedNameTransformMap;exports.FederationModuleManifest=FederationModuleManifest;exports.MANIFEST_EXT=MANIFEST_EXT;exports.MFModuleType=MFModuleType;exports.MFPrefetchCommon=MFPrefetchCommon;exports.MODULE_DEVTOOL_IDENTIFIER=MODULE_DEVTOOL_IDENTIFIER;exports.ManifestFileName=ManifestFileName;exports.NameTransformMap=NameTransformMap;exports.NameTransformSymbol=NameTransformSymbol;exports.SEPARATOR=SEPARATOR;exports.StatsFileName=StatsFileName;exports.TEMP_DIR=TEMP_DIR;exports.assert=assert;exports.composeKeyWithSeparator=composeKeyWithSeparator;exports.containerPlugin=ContainerPlugin;exports.containerReferencePlugin=ContainerReferencePlugin;exports.createLink=createLink;exports.createLogger=createLogger;exports.createModuleFederationConfig=createModuleFederationConfig;exports.createScript=createScript;exports.createScriptNode=createScriptNode;exports.decodeName=decodeName;exports.encodeName=encodeName;exports.error=error;exports.generateExposeFilename=generateExposeFilename;exports.generateShareFilename=generateShareFilename;exports.generateSnapshotFromManifest=generateSnapshotFromManifest;exports.getProcessEnv=getProcessEnv;exports.getResourceUrl=getResourceUrl;exports.inferAutoPublicPath=inferAutoPublicPath;exports.isBrowserEnv=isBrowserEnv;exports.isDebugMode=isDebugMode;exports.isManifestProvider=isManifestProvider;exports.isReactNativeEnv=isReactNativeEnv;exports.isRequiredVersion=isRequiredVersion;exports.isStaticResourcesEqual=isStaticResourcesEqual;exports.loadScript=loadScript;exports.loadScriptNode=loadScriptNode;exports.logger=logger;exports.moduleFederationPlugin=ModuleFederationPlugin;exports.normalizeOptions=normalizeOptions;exports.parseEntry=parseEntry;exports.safeToString=safeToString;exports.safeWrapper=safeWrapper;exports.sharePlugin=SharePlugin;exports.simpleJoinRemoteEntry=simpleJoinRemoteEntry;exports.warn=warn},6232:function(__unused_webpack_module,exports){function _extends(){_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)if(Object.prototype.hasOwnProperty.call(source,key))target[key]=source[key]}return target};return _extends.apply(this,arguments)}exports._=_extends},6295:function(__unused_webpack_module,exports){const FEDERATION_SUPPORTED_TYPES=["script"];exports.FEDERATION_SUPPORTED_TYPES=FEDERATION_SUPPORTED_TYPES},7161:function(module,__unused_webpack_exports,__webpack_require__){var runtime=__webpack_require__(6124);var constant=__webpack_require__(6295);var sdk=__webpack_require__(6492);function _interopNamespaceDefault(e){var n=Object.create(null);if(e)for(var k in e)n[k]=e[k];n.default=e;return Object.freeze(n)}var runtime__namespace=/*#__PURE__*/_interopNamespaceDefault(runtime);function attachShareScopeMap(webpackRequire){if(!webpackRequire.S||webpackRequire.federation.hasAttachShareScopeMap||!webpackRequire.federation.instance||!webpackRequire.federation.instance.shareScopeMap)return;webpackRequire.S=webpackRequire.federation.instance.shareScopeMap;webpackRequire.federation.hasAttachShareScopeMap=true}function remotes(options){const{chunkId,promises,chunkMapping,idToExternalAndNameMapping,webpackRequire,idToRemoteMap}=options;attachShareScopeMap(webpackRequire);if(webpackRequire.o(chunkMapping,chunkId))chunkMapping[chunkId].forEach(id=>{let getScope=webpackRequire.R;if(!getScope)getScope=[];const data=idToExternalAndNameMapping[id];const remoteInfos=idToRemoteMap[id];if(getScope.indexOf(data)>=0)return;getScope.push(data);if(data.p)return promises.push(data.p);const onError=error=>{if(!error)error=new Error("Container missing");if("string"==typeof error.message)error.message+=`
5
5
  while loading "${data[1]}" from ${data[2]}`;webpackRequire.m[id]=()=>{throw error};data.p=0};const handleFunction=(fn,arg1,arg2,d,next,first)=>{try{const promise=fn(arg1,arg2);if(!promise||!promise.then)return next(promise,d,first);{const p=promise.then(result=>next(result,d),onError);if(!first)return p;promises.push(data.p=p)}}catch(error){onError(error)}};const onExternal=(external,_,first)=>external?handleFunction(webpackRequire.I,data[0],0,external,onInitialized,first):onError();var onInitialized=(_,external,first)=>handleFunction(external.get,data[1],getScope,0,onFactory,first);var onFactory=factory=>{data.p=1;webpackRequire.m[id]=module1=>{module1.exports=factory()}};const onRemoteLoaded=()=>{try{const remoteName=sdk.decodeName(remoteInfos[0].name,sdk.ENCODE_NAME_PREFIX);const remoteModuleName=remoteName+data[1].slice(1);const instance=webpackRequire.federation.instance;const loadRemote=()=>webpackRequire.federation.instance.loadRemote(remoteModuleName,{loadFactory:false,from:"build"});if("version-first"===instance.options.shareStrategy)return Promise.all(instance.sharedHandler.initializeSharing(data[0])).then(()=>loadRemote());return loadRemote()}catch(error){onError(error)}};const useRuntimeLoad=1===remoteInfos.length&&constant.FEDERATION_SUPPORTED_TYPES.includes(remoteInfos[0].externalType)&&remoteInfos[0].name;useRuntimeLoad?handleFunction(onRemoteLoaded,data[2],0,0,onFactory,1):handleFunction(webpackRequire,data[2],0,0,onExternal,1)})}function consumes(options){const{chunkId,promises,chunkMapping,installedModules,moduleToHandlerMapping,webpackRequire}=options;attachShareScopeMap(webpackRequire);if(webpackRequire.o(chunkMapping,chunkId))chunkMapping[chunkId].forEach(id=>{if(webpackRequire.o(installedModules,id))return promises.push(installedModules[id]);const onFactory=factory=>{installedModules[id]=0;webpackRequire.m[id]=module1=>{delete webpackRequire.c[id];module1.exports=factory()}};const onError=error=>{delete installedModules[id];webpackRequire.m[id]=module1=>{delete webpackRequire.c[id];throw error}};try{const federationInstance=webpackRequire.federation.instance;if(!federationInstance)throw new Error("Federation instance not found!");const{shareKey,getter,shareInfo}=moduleToHandlerMapping[id];const promise=federationInstance.loadShare(shareKey,{customShareInfo:shareInfo}).then(factory=>{if(false===factory)return getter();return factory});if(promise.then)promises.push(installedModules[id]=promise.then(onFactory).catch(onError));else onFactory(promise)}catch(e){onError(e)}})}function initializeSharing({shareScopeName,webpackRequire,initPromises,initTokens,initScope}){const shareScopeKeys=Array.isArray(shareScopeName)?shareScopeName:[shareScopeName];var initializeSharingPromises=[];var _initializeSharing=function(shareScopeKey){if(!initScope)initScope=[];const mfInstance=webpackRequire.federation.instance;var initToken=initTokens[shareScopeKey];if(!initToken)initToken=initTokens[shareScopeKey]={from:mfInstance.name};if(initScope.indexOf(initToken)>=0)return;initScope.push(initToken);const promise=initPromises[shareScopeKey];if(promise)return promise;var warn=msg=>"undefined"!=typeof console&&console.warn&&console.warn(msg);var initExternal=id=>{var handleError=err=>warn("Initialization of sharing external failed: "+err);try{var module1=webpackRequire(id);if(!module1)return;var initFn=module1=>module1&&module1.init&&module1.init(webpackRequire.S[shareScopeKey],initScope,{shareScopeMap:webpackRequire.S||{},shareScopeKeys:shareScopeName});if(module1.then)return promises.push(module1.then(initFn,handleError));var initResult=initFn(module1);if(initResult&&"boolean"!=typeof initResult&&initResult.then)return promises.push(initResult["catch"](handleError))}catch(err){handleError(err)}};const promises=mfInstance.initializeSharing(shareScopeKey,{strategy:mfInstance.options.shareStrategy,initScope,from:"build"});attachShareScopeMap(webpackRequire);const bundlerRuntimeRemotesOptions=webpackRequire.federation.bundlerRuntimeOptions.remotes;if(bundlerRuntimeRemotesOptions)Object.keys(bundlerRuntimeRemotesOptions.idToRemoteMap).forEach(moduleId=>{const info=bundlerRuntimeRemotesOptions.idToRemoteMap[moduleId];const externalModuleId=bundlerRuntimeRemotesOptions.idToExternalAndNameMapping[moduleId][2];if(info.length>1)initExternal(externalModuleId);else if(1===info.length){const remoteInfo=info[0];if(!constant.FEDERATION_SUPPORTED_TYPES.includes(remoteInfo.externalType))initExternal(externalModuleId)}});if(!promises.length)return initPromises[shareScopeKey]=true;return initPromises[shareScopeKey]=Promise.all(promises).then(()=>initPromises[shareScopeKey]=true)};shareScopeKeys.forEach(key=>{initializeSharingPromises.push(_initializeSharing(key))});return Promise.all(initializeSharingPromises).then(()=>true)}function handleInitialConsumes(options){const{moduleId,moduleToHandlerMapping,webpackRequire}=options;const federationInstance=webpackRequire.federation.instance;if(!federationInstance)throw new Error("Federation instance not found!");const{shareKey,shareInfo}=moduleToHandlerMapping[moduleId];try{return federationInstance.loadShareSync(shareKey,{customShareInfo:shareInfo})}catch(err){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: ");throw err}}function installInitialConsumes(options){const{moduleToHandlerMapping,webpackRequire,installedModules,initialConsumes}=options;initialConsumes.forEach(id=>{webpackRequire.m[id]=module1=>{installedModules[id]=0;delete webpackRequire.c[id];const factory=handleInitialConsumes({moduleId:id,moduleToHandlerMapping,webpackRequire});if("function"!=typeof factory)throw new Error(`Shared module is not available for eager consumption: ${id}`);module1.exports=factory()}})}function _extends(){_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)if(Object.prototype.hasOwnProperty.call(source,key))target[key]=source[key]}return target};return _extends.apply(this,arguments)}function initContainerEntry(options){const{webpackRequire,shareScope,initScope,shareScopeKey,remoteEntryInitOptions}=options;if(!webpackRequire.S)return;if(!webpackRequire.federation||!webpackRequire.federation.instance||!webpackRequire.federation.initOptions)return;const federationInstance=webpackRequire.federation.instance;federationInstance.initOptions(_extends({name:webpackRequire.federation.initOptions.name,remotes:[]},remoteEntryInitOptions));const hostShareScopeKeys=null==remoteEntryInitOptions?void 0:remoteEntryInitOptions.shareScopeKeys;const hostShareScopeMap=null==remoteEntryInitOptions?void 0:remoteEntryInitOptions.shareScopeMap;if(shareScopeKey&&"string"!=typeof shareScopeKey)shareScopeKey.forEach(key=>{if(!hostShareScopeKeys||!hostShareScopeMap)return void federationInstance.initShareScopeMap(key,shareScope,{hostShareScopeMap:(null==remoteEntryInitOptions?void 0:remoteEntryInitOptions.shareScopeMap)||{}});if(!hostShareScopeMap[key])hostShareScopeMap[key]={};const sc=hostShareScopeMap[key];federationInstance.initShareScopeMap(key,sc,{hostShareScopeMap:(null==remoteEntryInitOptions?void 0:remoteEntryInitOptions.shareScopeMap)||{}})});else{const key=shareScopeKey||"default";if(Array.isArray(hostShareScopeKeys))hostShareScopeKeys.forEach(hostKey=>{if(!hostShareScopeMap[hostKey])hostShareScopeMap[hostKey]={};const sc=hostShareScopeMap[hostKey];federationInstance.initShareScopeMap(hostKey,sc,{hostShareScopeMap:(null==remoteEntryInitOptions?void 0:remoteEntryInitOptions.shareScopeMap)||{}})});else federationInstance.initShareScopeMap(key,shareScope,{hostShareScopeMap:(null==remoteEntryInitOptions?void 0:remoteEntryInitOptions.shareScopeMap)||{}})}if(webpackRequire.federation.attachShareScopeMap)webpackRequire.federation.attachShareScopeMap(webpackRequire);if("function"==typeof webpackRequire.federation.prefetch)webpackRequire.federation.prefetch();if(!Array.isArray(shareScopeKey))return webpackRequire.I(shareScopeKey||"default",initScope);var proxyInitializeSharing=Boolean(webpackRequire.federation.initOptions.shared);if(proxyInitializeSharing)return webpackRequire.I(shareScopeKey,initScope);return Promise.all(shareScopeKey.map(key=>webpackRequire.I(key,initScope))).then(()=>true)}const federation={runtime:runtime__namespace,instance:void 0,initOptions:void 0,bundlerRuntime:{remotes,consumes,I:initializeSharing,S:{},installInitialConsumes,initContainerEntry},attachShareScopeMap,bundlerRuntimeOptions:{}};module.exports=federation}};var __webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(void 0!==cachedModule)return cachedModule.exports;var module=__webpack_module_cache__[moduleId]={exports:{}};__webpack_modules__[moduleId].call(module.exports,module,module.exports,__webpack_require__);return module.exports}__webpack_require__.m=__webpack_modules__;__webpack_require__.c=__webpack_module_cache__;__webpack_require__.x=()=>{var __webpack_exports__=__webpack_require__(2339);return __webpack_exports__};(()=>{if(!__webpack_require__.federation)__webpack_require__.federation={chunkMatcher:function(chunkId){return!/^(7(112|17|862)|(249|375|52)8|1437|5442|6870|826|9484|9552)$/.test(chunkId)},rootOutputDir:""}})();(()=>{__webpack_require__.n=module=>{var getter=module&&module.__esModule?()=>module["default"]:()=>module;__webpack_require__.d(getter,{a:getter});return getter}})();(()=>{var getProto=Object.getPrototypeOf?obj=>Object.getPrototypeOf(obj):obj=>obj.__proto__;var leafPrototypes;__webpack_require__.t=function(value,mode){if(1&mode)value=this(value);if(8&mode)return value;if("object"==typeof value&&value){if(4&mode&&value.__esModule)return value;if(16&mode&&"function"==typeof value.then)return value}var ns=Object.create(null);__webpack_require__.r(ns);var def={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var current=2&mode&&value;("object"==typeof current||"function"==typeof current)&&!~leafPrototypes.indexOf(current);current=getProto(current))Object.getOwnPropertyNames(current).forEach(key=>{def[key]=()=>value[key]});def["default"]=()=>value;__webpack_require__.d(ns,def);return ns}})();(()=>{__webpack_require__.d=(exports,definition)=>{for(var key in definition)if(__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key))Object.defineProperty(exports,key,{enumerable:true,get:definition[key]})}})();(()=>{var prevStartup=__webpack_require__.x;var hasRun=false;__webpack_require__.x=function(){if(!hasRun){hasRun=true;__webpack_require__(4204)}if("function"==typeof prevStartup)return prevStartup();console.warn("[MF] Invalid prevStartup")}})();(()=>{__webpack_require__.f={};__webpack_require__.e=chunkId=>Promise.all(Object.keys(__webpack_require__.f).reduce((promises,key)=>{__webpack_require__.f[key](chunkId,promises);return promises},[]))})();(()=>{__webpack_require__.u=chunkId=>""+(({1153:"__federation_expose_connectors",4821:"__federation_expose_single_connector",6544:"__federation_expose_synchronisation"})[chunkId]||chunkId)+".js"})();(()=>{__webpack_require__.miniCssF=chunkId=>""+chunkId+".css"})();(()=>{__webpack_require__.o=(obj,prop)=>Object.prototype.hasOwnProperty.call(obj,prop)})();(()=>{var inProgress={};var dataWebpackPrefix="@airporting/integrations-app:";__webpack_require__.l=function(url,done,key,chunkId){if(inProgress[url])return void inProgress[url].push(done);var script,needAttach;if(void 0!==key){var scripts=document.getElementsByTagName("script");for(var i=0;i<scripts.length;i++){var s=scripts[i];if(s.getAttribute("src")==url||s.getAttribute("data-webpack")==dataWebpackPrefix+key){script=s;break}}}if(!script){needAttach=true;script=document.createElement("script");script.timeout=120;if(__webpack_require__.nc)script.setAttribute("nonce",__webpack_require__.nc);script.setAttribute("data-webpack",dataWebpackPrefix+key);script.src=url}inProgress[url]=[done];var onScriptComplete=function(prev,event){script.onerror=script.onload=null;clearTimeout(timeout);var doneFns=inProgress[url];delete inProgress[url];script.parentNode&&script.parentNode.removeChild(script);doneFns&&doneFns.forEach(function(fn){return fn(event)});if(prev)return prev(event)};var timeout=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:script}),12e4);script.onerror=onScriptComplete.bind(null,script.onerror);script.onload=onScriptComplete.bind(null,script.onload);needAttach&&document.head.appendChild(script)}})();(()=>{__webpack_require__.r=exports=>{if("undefined"!=typeof Symbol&&Symbol.toStringTag)Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});Object.defineProperty(exports,"__esModule",{value:true})}})();(()=>{__webpack_require__.nc=void 0})();(()=>{__webpack_require__.p="https://unpkg.com/@airporting/integrations-app@latest/dist/mf/"})();(()=>{__webpack_require__.S={};__webpack_require__.initializeSharingData={scopeToSharingDataMapping:{default:[{name:"@airporting/app-front",version:"1.2.21",factory:()=>Promise.all([__webpack_require__.e("5741"),__webpack_require__.e("1437"),__webpack_require__.e("7112"),__webpack_require__.e("6870"),__webpack_require__.e("7862"),__webpack_require__.e("5442"),__webpack_require__.e("9552"),__webpack_require__.e("8473")]).then(()=>()=>__webpack_require__(2348)),eager:0,singleton:1,requiredVersion:"1.2.21",strictVersion:0},{name:"@mantine/charts",version:"8.3.5",factory:()=>Promise.all([__webpack_require__.e("6702"),__webpack_require__.e("1437"),__webpack_require__.e("7112"),__webpack_require__.e("6870"),__webpack_require__.e("3758"),__webpack_require__.e("854")]).then(()=>()=>__webpack_require__(8861)),eager:0,singleton:1,requiredVersion:"8.3.5",strictVersion:0},{name:"@mantine/core",version:"8.3.5",factory:()=>Promise.all([__webpack_require__.e("9430"),__webpack_require__.e("1437"),__webpack_require__.e("7112"),__webpack_require__.e("717"),__webpack_require__.e("3235")]).then(()=>()=>__webpack_require__(325)),eager:0,singleton:1,requiredVersion:"8.3.5",strictVersion:0},{name:"@mantine/dates",version:"8.3.5",factory:()=>Promise.all([__webpack_require__.e("9110"),__webpack_require__.e("1437"),__webpack_require__.e("7112"),__webpack_require__.e("6870"),__webpack_require__.e("9484"),__webpack_require__.e("5616")]).then(()=>()=>__webpack_require__(8293)),eager:0,singleton:1,requiredVersion:"8.3.5",strictVersion:0},{name:"@mantine/form",version:"8.3.5",factory:()=>Promise.all([__webpack_require__.e("1857"),__webpack_require__.e("1437"),__webpack_require__.e("8949")]).then(()=>()=>__webpack_require__(1112)),eager:0,singleton:1,requiredVersion:"8.3.5",strictVersion:0},{name:"@mantine/hooks",version:"8.3.5",factory:()=>Promise.all([__webpack_require__.e("5625"),__webpack_require__.e("1437")]).then(()=>()=>__webpack_require__(7216)),eager:0,singleton:1,requiredVersion:"8.3.5",strictVersion:0},{name:"@mantine/modals",version:"8.3.5",factory:()=>Promise.all([__webpack_require__.e("1437"),__webpack_require__.e("7112"),__webpack_require__.e("6870"),__webpack_require__.e("9666")]).then(()=>()=>__webpack_require__(2004)),eager:0,singleton:1,requiredVersion:"8.3.5",strictVersion:0},{name:"@mantine/notifications",version:"8.3.5",factory:()=>Promise.all([__webpack_require__.e("6124"),__webpack_require__.e("1437"),__webpack_require__.e("7112"),__webpack_require__.e("717"),__webpack_require__.e("6870"),__webpack_require__.e("1330")]).then(()=>()=>__webpack_require__(391)),eager:0,singleton:1,requiredVersion:"8.3.5",strictVersion:0},{name:"@tabler/icons-react",version:"3.35.0",factory:()=>Promise.all([__webpack_require__.e("3134"),__webpack_require__.e("1437")]).then(()=>()=>__webpack_require__(5645)),eager:0,singleton:1,requiredVersion:"3.35.0",strictVersion:0},{name:"@tanstack/react-query",version:"5.90.5",factory:()=>Promise.all([__webpack_require__.e("5475"),__webpack_require__.e("1437"),__webpack_require__.e("3711")]).then(()=>()=>__webpack_require__(5166)),eager:0,singleton:1,requiredVersion:"5.90.5",strictVersion:0},{name:"@tanstack/react-router",version:"1.133.27",factory:()=>Promise.all([__webpack_require__.e("4756"),__webpack_require__.e("1437"),__webpack_require__.e("717"),__webpack_require__.e("6092")]).then(()=>()=>__webpack_require__(15)),eager:0,singleton:1,requiredVersion:"1.133.27",strictVersion:0},{name:"date-fns",version:"4.1.0",factory:()=>__webpack_require__.e("7476").then(()=>()=>__webpack_require__(9887)),eager:0,singleton:1,requiredVersion:"4.1.0",strictVersion:0},{name:"dayjs",version:"1.11.18",factory:()=>__webpack_require__.e("4810").then(()=>()=>__webpack_require__(9937)),eager:0,singleton:1,requiredVersion:"1.11.18",strictVersion:0},{name:"i18next",version:"25.6.0",factory:()=>__webpack_require__.e("1600").then(()=>()=>__webpack_require__(7059)),eager:0,singleton:1,requiredVersion:"25.6.0",strictVersion:0},{name:"lodash-es",version:"4.17.21",factory:()=>__webpack_require__.e("8170").then(()=>()=>__webpack_require__(2513)),eager:0,singleton:1,requiredVersion:"4.17.21",strictVersion:0},{name:"radash",version:"12.1.1",factory:()=>__webpack_require__.e("4447").then(()=>()=>__webpack_require__(610)),eager:0,singleton:1,requiredVersion:"12.1.1",strictVersion:0},{name:"react-dom",version:"19.2.4",factory:()=>Promise.all([__webpack_require__.e("1437"),__webpack_require__.e("8637")]).then(()=>()=>__webpack_require__(6545)),eager:0,singleton:1,requiredVersion:"19.2.4",strictVersion:0},{name:"react-i18next",version:"16.2.0",factory:()=>Promise.all([__webpack_require__.e("7286"),__webpack_require__.e("1437"),__webpack_require__.e("826")]).then(()=>()=>__webpack_require__(8917)),eager:0,singleton:1,requiredVersion:"16.2.0",strictVersion:0},{name:"react-use",version:"17.6.0",factory:()=>Promise.all([__webpack_require__.e("7493"),__webpack_require__.e("1437")]).then(()=>()=>__webpack_require__(7972)),eager:0,singleton:1,requiredVersion:"17.6.0",strictVersion:0},{name:"react",version:"19.2.4",factory:()=>__webpack_require__.e("9037").then(()=>()=>__webpack_require__(572)),eager:0,singleton:1,requiredVersion:"19.2.4",strictVersion:0},{name:"recharts",version:"3.3.0",factory:()=>Promise.all([__webpack_require__.e("8978"),__webpack_require__.e("1437"),__webpack_require__.e("717")]).then(()=>()=>__webpack_require__(6473)),eager:0,singleton:1,requiredVersion:"3.3.0",strictVersion:0}]},uniqueName:"@airporting/integrations-app"};__webpack_require__.I=__webpack_require__.I||function(){throw new Error("should have __webpack_require__.I")}})();(()=>{__webpack_require__.consumesLoadingData={chunkMapping:{1437:["8556"],7112:["2667"],9552:["9448","2764","4190","5821","6155","9048","1543"],7862:["5200","4449","7714"],2498:["4931","4259"],528:["4403"],826:["7601"],9484:["6551"],6870:["2773"],717:["1772"],5442:["4491","5899"],3758:["973"]},moduleIdToConsumeDataMapping:{4259:{shareScope:"default",shareKey:"@airporting/app-front",import:"@airporting/app-front",requiredVersion:"1.2.21",strictVersion:false,singleton:true,eager:false,fallback:()=>Promise.all([__webpack_require__.e("5741"),__webpack_require__.e("7112"),__webpack_require__.e("5442"),__webpack_require__.e("9552")]).then(()=>()=>__webpack_require__(2348))},2764:{shareScope:"default",shareKey:"@tanstack/react-router",import:"@tanstack/react-router",requiredVersion:"1.133.27",strictVersion:false,singleton:true,eager:false,fallback:()=>Promise.all([__webpack_require__.e("4756"),__webpack_require__.e("717")]).then(()=>()=>__webpack_require__(15))},9048:{shareScope:"default",shareKey:"lodash-es",import:"lodash-es",requiredVersion:"4.17.21",strictVersion:false,singleton:true,eager:false,fallback:()=>__webpack_require__.e("8170").then(()=>()=>__webpack_require__(2513))},2667:{shareScope:"default",shareKey:"@mantine/hooks",import:"@mantine/hooks",requiredVersion:"8.3.5",strictVersion:false,singleton:true,eager:false,fallback:()=>__webpack_require__.e("5625").then(()=>()=>__webpack_require__(7216))},2773:{shareScope:"default",shareKey:"@mantine/core",import:"@mantine/core",requiredVersion:"8.3.5",strictVersion:false,singleton:true,eager:false,fallback:()=>Promise.all([__webpack_require__.e("9430"),__webpack_require__.e("7112"),__webpack_require__.e("717")]).then(()=>()=>__webpack_require__(325))},4190:{shareScope:"default",shareKey:"react-use",import:"react-use",requiredVersion:"17.6.0",strictVersion:false,singleton:true,eager:false,fallback:()=>__webpack_require__.e("7493").then(()=>()=>__webpack_require__(7972))},7601:{shareScope:"default",shareKey:"i18next",import:"i18next",requiredVersion:"25.6.0",strictVersion:false,singleton:true,eager:false,fallback:()=>__webpack_require__.e("1600").then(()=>()=>__webpack_require__(7059))},9448:{shareScope:"default",shareKey:"totp-generator",import:"totp-generator",requiredVersion:"2.0.0",strictVersion:false,singleton:true,eager:false,fallback:()=>__webpack_require__.e("6082").then(()=>()=>__webpack_require__(3385))},5821:{shareScope:"default",shareKey:"@mantine/charts",import:"@mantine/charts",requiredVersion:"8.3.5",strictVersion:false,singleton:true,eager:false,fallback:()=>Promise.all([__webpack_require__.e("6702"),__webpack_require__.e("3758")]).then(()=>()=>__webpack_require__(8861))},4449:{shareScope:"default",shareKey:"radash",import:"radash",requiredVersion:"12.1.1",strictVersion:false,singleton:true,eager:false,fallback:()=>__webpack_require__.e("4447").then(()=>()=>__webpack_require__(610))},7714:{shareScope:"default",shareKey:"@tanstack/react-query",import:"@tanstack/react-query",requiredVersion:"5.90.5",strictVersion:false,singleton:true,eager:false,fallback:()=>__webpack_require__.e("5475").then(()=>()=>__webpack_require__(5166))},8556:{shareScope:"default",shareKey:"react",import:"react",requiredVersion:"19.2.4",strictVersion:false,singleton:true,eager:false,fallback:()=>__webpack_require__.e("9037").then(()=>()=>__webpack_require__(572))},4491:{shareScope:"default",shareKey:"@mantine/form",import:"@mantine/form",requiredVersion:"8.3.5",strictVersion:false,singleton:true,eager:false,fallback:()=>__webpack_require__.e("1857").then(()=>()=>__webpack_require__(1112))},1772:{shareScope:"default",shareKey:"react-dom",import:"react-dom",requiredVersion:"19.2.4",strictVersion:false,singleton:true,eager:false,fallback:()=>__webpack_require__.e("1018").then(()=>()=>__webpack_require__(6545))},5200:{shareScope:"default",shareKey:"@tabler/icons-react",import:"@tabler/icons-react",requiredVersion:"3.35.0",strictVersion:false,singleton:true,eager:false,fallback:()=>__webpack_require__.e("3134").then(()=>()=>__webpack_require__(5645))},4403:{shareScope:"default",shareKey:"@mantine/modals",import:"@mantine/modals",requiredVersion:"8.3.5",strictVersion:false,singleton:true,eager:false,fallback:()=>Promise.all([__webpack_require__.e("7112"),__webpack_require__.e("7285")]).then(()=>()=>__webpack_require__(2004))},6155:{shareScope:"default",shareKey:"react-i18next",import:"react-i18next",requiredVersion:"16.2.0",strictVersion:false,singleton:true,eager:false,fallback:()=>Promise.all([__webpack_require__.e("7286"),__webpack_require__.e("826")]).then(()=>()=>__webpack_require__(8917))},5899:{shareScope:"default",shareKey:"@mantine/dates",import:"@mantine/dates",requiredVersion:"8.3.5",strictVersion:false,singleton:true,eager:false,fallback:()=>Promise.all([__webpack_require__.e("9110"),__webpack_require__.e("9484")]).then(()=>()=>__webpack_require__(8293))},1543:{shareScope:"default",shareKey:"date-fns",import:"date-fns",requiredVersion:"4.1.0",strictVersion:false,singleton:true,eager:false,fallback:()=>__webpack_require__.e("7476").then(()=>()=>__webpack_require__(9887))},4931:{shareScope:"default",shareKey:"@mantine/notifications",import:"@mantine/notifications",requiredVersion:"8.3.5",strictVersion:false,singleton:true,eager:false,fallback:()=>Promise.all([__webpack_require__.e("6124"),__webpack_require__.e("7112"),__webpack_require__.e("717")]).then(()=>()=>__webpack_require__(391))},973:{shareScope:"default",shareKey:"recharts",import:"recharts",requiredVersion:"3.3.0",strictVersion:false,singleton:true,eager:false,fallback:()=>Promise.all([__webpack_require__.e("8978"),__webpack_require__.e("717")]).then(()=>()=>__webpack_require__(6473))},6551:{shareScope:"default",shareKey:"dayjs",import:"dayjs",requiredVersion:"1.11.18",strictVersion:false,singleton:true,eager:false,fallback:()=>__webpack_require__.e("4810").then(()=>()=>__webpack_require__(9937))}},initialConsumes:[]};__webpack_require__.f.consumes=__webpack_require__.f.consumes||function(){throw new Error("should have __webpack_require__.f.consumes")}})();(()=>{__webpack_require__.initializeExposesData={moduleMap:{"./connectors":()=>Promise.all([__webpack_require__.e("1437"),__webpack_require__.e("6870"),__webpack_require__.e("7862"),__webpack_require__.e("2498"),__webpack_require__.e("528"),__webpack_require__.e("1153")]).then(()=>()=>__webpack_require__(9429)),"./single-connector":()=>Promise.all([__webpack_require__.e("1437"),__webpack_require__.e("6870"),__webpack_require__.e("7862"),__webpack_require__.e("2498"),__webpack_require__.e("5483"),__webpack_require__.e("4821")]).then(()=>()=>__webpack_require__(466)),"./synchronisation":()=>Promise.all([__webpack_require__.e("1437"),__webpack_require__.e("7112"),__webpack_require__.e("6870"),__webpack_require__.e("7862"),__webpack_require__.e("2498"),__webpack_require__.e("5442"),__webpack_require__.e("528"),__webpack_require__.e("6544")]).then(()=>()=>__webpack_require__(7588))},shareScope:"default"};__webpack_require__.getContainer=__webpack_require__.getContainer||function(){throw new Error("should have __webpack_require__.getContainer")};__webpack_require__.initContainer=__webpack_require__.initContainer||function(){throw new Error("should have __webpack_require__.initContainer")}})();(()=>{var installedChunks={1123:0};__webpack_require__.f.j=function(chunkId,promises){var installedChunkData=__webpack_require__.o(installedChunks,chunkId)?installedChunks[chunkId]:void 0;if(0!==installedChunkData)if(installedChunkData)promises.push(installedChunkData[2]);else if(/^(7(112|17|862)|(249|375|52)8|1437|5442|6870|826|9484|9552)$/.test(chunkId))installedChunks[chunkId]=0;else{var promise=new Promise((resolve,reject)=>installedChunkData=installedChunks[chunkId]=[resolve,reject]);promises.push(installedChunkData[2]=promise);var url=__webpack_require__.p+__webpack_require__.u(chunkId);var error=new Error;var loadingEnded=function(event){if(__webpack_require__.o(installedChunks,chunkId)){installedChunkData=installedChunks[chunkId];if(0!==installedChunkData)installedChunks[chunkId]=void 0;if(installedChunkData){var errorType=event&&("load"===event.type?"missing":event.type);var realSrc=event&&event.target&&event.target.src;error.message="Loading chunk "+chunkId+" failed.\n("+errorType+": "+realSrc+")";error.name="ChunkLoadError";error.type=errorType;error.request=realSrc;installedChunkData[1](error)}}};__webpack_require__.l(url,loadingEnded,"chunk-"+chunkId,chunkId)}};var webpackJsonpCallback=(parentChunkLoadingFunction,data)=>{var[chunkIds,moreModules,runtime]=data;var moduleId,chunkId,i=0;if(chunkIds.some(id=>0!==installedChunks[id])){for(moduleId in moreModules)if(__webpack_require__.o(moreModules,moduleId))__webpack_require__.m[moduleId]=moreModules[moduleId];if(runtime)runtime(__webpack_require__)}if(parentChunkLoadingFunction)parentChunkLoadingFunction(data);for(;i<chunkIds.length;i++){chunkId=chunkIds[i];if(__webpack_require__.o(installedChunks,chunkId)&&installedChunks[chunkId])installedChunks[chunkId][0]();installedChunks[chunkId]=0}};var chunkLoadingGlobal=globalThis["chunk_integrations_app"]=globalThis["chunk_integrations_app"]||[];chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null,0));chunkLoadingGlobal.push=webpackJsonpCallback.bind(null,chunkLoadingGlobal.push.bind(chunkLoadingGlobal))})();var __webpack_exports__=__webpack_require__.x();integrations_app=__webpack_exports__})();