@openmrs/esm-app-shell 10.0.1-pre.5522 → 10.0.1-pre.5539
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,8 +1,8 @@
|
|
|
1
1
|
(()=>{var e,t,r,o,n,i,a,s,l,c={97737(e,t,r){"use strict";var o,n={};r.r(n),r.d(n,{BUILD_001:()=>R,BUILD_002:()=>I,RUNTIME_001:()=>a,RUNTIME_002:()=>s,RUNTIME_003:()=>l,RUNTIME_004:()=>c,RUNTIME_005:()=>u,RUNTIME_006:()=>f,RUNTIME_007:()=>d,RUNTIME_008:()=>h,RUNTIME_009:()=>p,RUNTIME_010:()=>m,RUNTIME_011:()=>g,RUNTIME_012:()=>y,RUNTIME_013:()=>E,RUNTIME_014:()=>b,RUNTIME_015:()=>S,TYPE_001:()=>_,buildDescMap:()=>v,errorDescMap:()=>w,getShortErrorMsg:()=>N,runtimeDescMap:()=>T,typeDescMap:()=>M});var i={};r.r(i),r.d(i,{BROWSER_LOG_KEY:()=>P,ENCODE_NAME_PREFIX:()=>j,EncodedNameTransformMap:()=>$,FederationModuleManifest:()=>O,MANIFEST_EXT:()=>".json",MFModuleType:()=>D,MODULE_DEVTOOL_IDENTIFIER:()=>L,ManifestFileName:()=>F,NameTransformMap:()=>A,NameTransformSymbol:()=>k,SEPARATOR:()=>":",StatsFileName:()=>x,TEMP_DIR:()=>U,TreeShakingStatus:()=>C,assert:()=>el,bindLoggerToCompiler:()=>eT,composeKeyWithSeparator:()=>er,consumeSharedPlugin:()=>K,containerPlugin:()=>V,containerReferencePlugin:()=>W,createInfrastructureLogger:()=>eN,createLink:()=>ek,createLogger:()=>eI,createModuleFederationConfig:()=>eD,createScript:()=>eP,createScriptNode:()=>e$,decodeName:()=>en,encodeName:()=>eo,error:()=>ec,generateExposeFilename:()=>ei,generateShareFilename:()=>ea,generateSnapshotFromManifest:()=>eg,getManifestFileName:()=>eE,getProcessEnv:()=>Q,getResourceUrl:()=>es,inferAutoPublicPath:()=>em,infrastructureLogger:()=>ev,isBrowserEnv:()=>X,isBrowserEnvValue:()=>Y,isDebugMode:()=>Z,isManifestProvider:()=>ey,isReactNativeEnv:()=>J,isRequiredVersion:()=>eh,isStaticResourcesEqual:()=>eO,loadScript:()=>eA,loadScriptNode:()=>eF,logger:()=>eM,moduleFederationPlugin:()=>B,normalizeOptions:()=>ex,parseEntry:()=>et,provideSharedPlugin:()=>z,safeToString:()=>ef,safeWrapper:()=>ew,sharePlugin:()=>q,simpleJoinRemoteEntry:()=>ep,warn:()=>eu});let a="RUNTIME-001",s="RUNTIME-002",l="RUNTIME-003",c="RUNTIME-004",u="RUNTIME-005",f="RUNTIME-006",d="RUNTIME-007",h="RUNTIME-008",p="RUNTIME-009",m="RUNTIME-010",g="RUNTIME-011",y="RUNTIME-012",E="RUNTIME-013",b="RUNTIME-014",S="RUNTIME-015",_="TYPE-001",R="BUILD-001",I="BUILD-002",N=(e,t,r,o)=>{let n=[`${[t[e]]} #${e}`];return r&&n.push(`args: ${JSON.stringify(r)}`),n.push(`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`),o&&n.push(`Original Error Message:
|
|
2
2
|
${o}`),n.join("\n")},T={[a]:"Failed to get remoteEntry exports.",[s]:'The remote entry interface does not contain "init"',[l]:"Failed to get manifest.",[c]:"Failed to locate remote.",[u]:"Invalid loadShareSync function call from bundler runtime",[f]:"Invalid loadShareSync function call from runtime",[d]:"Failed to get remote snapshot.",[h]:"Failed to load script resources.",[p]:"Please call createInstance first.",[m]:'The name option cannot be changed after initialization. If you want to create a new instance with a different name, please use "createInstance" api.',[g]:"The remoteEntry URL is missing from the remote snapshot.",[y]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.',[E]:"The manifest is not a valid Module Federation manifest.",[b]:"The remote does not expose the requested module.",[S]:"Remote container initialization failed."},M={[_]:"Failed to generate type declaration. Execute the below cmd to reproduce and fix the error."},v={[R]:"Failed to find expose module.",[I]:"PublicPath is required in prod mode."},w={...T,...M,...v},O="federation-manifest.json",P="FEDERATION_DEBUG",k={AT:"@",HYPHEN:"-",SLASH:"/"},A={[k.AT]:"scope_",[k.HYPHEN]:"_",[k.SLASH]:"__"},$={[A[k.AT]]:k.AT,[A[k.HYPHEN]]:k.HYPHEN,[A[k.SLASH]]:k.SLASH},F="mf-manifest.json",x="mf-stats.json",D={NPM:"npm",APP:"app"},L="__MF_DEVTOOLS_MODULE_INFO__",j="ENCODE_NAME_PREFIX",U=".federation",C=((o={})[o.UNKNOWN=1]="UNKNOWN",o[o.CALCULATED=2]="CALCULATED",o[o.NO_USE=0]="NO_USE",o);var H=Object.defineProperty,G=(e,t)=>{let r={};for(var o in e)H(r,o,{get:e[o],enumerable:!0});return t||H(r,Symbol.toStringTag,{value:"Module"}),r},V=G({}),W=G({}),B=G({}),q=G({}),K=G({}),z=G({});let Y=!0;function X(){return Y}function J(){return"u">typeof navigator&&navigator?.product==="ReactNative"}function Z(){if("u">typeof process&&process.env&&process.env.FEDERATION_DEBUG)return!!process.env.FEDERATION_DEBUG;if("u">typeof FEDERATION_DEBUG&&FEDERATION_DEBUG)return!0;try{if(Y&&window.localStorage)return!!localStorage.getItem(P)}catch(e){}return!1}let Q=function(){return"u">typeof process&&process.env?process.env:{}},ee="[ Federation Runtime ]",et=(e,t,r=":")=>{let o=e.split(r),n="development"===Q().NODE_ENV&&t,i=e=>e.startsWith("http")||e.includes(".json");if(o.length>=2){let[t,...a]=o;e.startsWith(r)&&(t=o.slice(0,2).join(r),a=[n||o.slice(2).join(r)]);let s=n||a.join(r);return i(s)?{name:t,entry:s}:{name:t,version:s||"*"}}if(1===o.length){let[e]=o;return n&&i(n)?{name:e,entry:n}:{name:e,version:n||"*"}}throw`Invalid entry value: ${e}`},er=function(...e){return e.length?e.reduce((e,t)=>t?e?`${e}:${t}`:t:e,""):""},eo=function(e,t="",r=!1){try{return`${t}${e.replace(RegExp(`${k.AT}`,"g"),A[k.AT]).replace(RegExp(`${k.HYPHEN}`,"g"),A[k.HYPHEN]).replace(RegExp(`${k.SLASH}`,"g"),A[k.SLASH])}${r?".js":""}`}catch(e){throw e}},en=function(e,t,r){try{let o=e;if(t){if(!o.startsWith(t))return o;o=o.replace(RegExp(t,"g"),"")}return o=o.replace(RegExp(`${A[k.AT]}`,"g"),$[A[k.AT]]).replace(RegExp(`${A[k.SLASH]}`,"g"),$[A[k.SLASH]]).replace(RegExp(`${A[k.HYPHEN]}`,"g"),$[A[k.HYPHEN]]),r&&(o=o.replace(".js","")),o}catch(e){throw e}},ei=(e,t)=>{if(!e)return"";let r=e;return"."===r&&(r="default_export"),r.startsWith("./")&&(r=r.replace("./","")),eo(r,"__federation_expose_",t)},ea=(e,t)=>e?eo(e,"__federation_shared_",t):"";function es(e,t){if("getPublicPath"in e){let r;return r=e.getPublicPath.startsWith("function")?Function("return "+e.getPublicPath)()():Function(e.getPublicPath)(),`${r}${t}`}return"publicPath"in e?!Y&&!J()&&"ssrPublicPath"in e&&"string"==typeof e.ssrPublicPath?`${e.ssrPublicPath}${t}`:`${e.publicPath}${t}`:(console.warn("Cannot get resource URL. If in debug mode, please ignore.",e,t),"")}let el=(e,t)=>{e||ec(t)},ec=e=>{throw Error(`${ee}: ${e}`)},eu=e=>{console.warn(`${ee}: ${e}`)};function ef(e){try{return JSON.stringify(e,null,2)}catch(e){return""}}let ed=/^([\d^=v<>~]|[*xX]$)/;function eh(e){return ed.test(e)}let ep=(e,t)=>{if(!e)return t;let r=(e=>{if("."===e)return"";if(e.startsWith("./"))return e.replace("./","");if(e.startsWith("/")){let t=e.slice(1);return t.endsWith("/")?t.slice(0,-1):t}return e})(e);return r?r.endsWith("/")?`${r}${t}`:`${r}/${t}`:t};function em(e){return e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")}function eg(e,t={}){let r,{remotes:o={},overrides:n={},version:i}=t,a=()=>"publicPath"in e.metaData?("auto"===e.metaData.publicPath||""===e.metaData.publicPath)&&i?em(i):e.metaData.publicPath:e.metaData.getPublicPath,s=Object.keys(n),l={};Object.keys(o).length||(l=e.remotes?.reduce((e,t)=>{let r,o=t.federationContainerName;return r=s.includes(o)?n[o]:"version"in t?t.version:t.entry,e[o]={matchedVersion:r},e},{})||{}),Object.keys(o).forEach(e=>l[e]={matchedVersion:s.includes(e)?n[e]:o[e]});let{remoteEntry:{path:c,name:u,type:f},types:d={path:"",name:"",zip:"",api:""},buildInfo:{buildVersion:h},globalName:p,ssrRemoteEntry:m}=e.metaData,{exposes:g}=e,y={version:i||"",buildVersion:h,globalName:p,remoteEntry:ep(c,u),remoteEntryType:f,remoteTypes:ep(d.path,d.name),remoteTypesZip:d.zip||"",remoteTypesAPI:d.api||"",remotesInfo:l,shared:e?.shared.map(e=>({assets:e.assets,sharedName:e.name,version:e.version,usedExports:e.referenceExports||[]})),modules:g?.map(e=>({moduleName:e.name,modulePath:e.path,assets:e.assets}))};if("publicPath"in e.metaData?(r={...y,publicPath:a()},"string"==typeof e.metaData.ssrPublicPath&&(r.ssrPublicPath=e.metaData.ssrPublicPath)):r={...y,getPublicPath:a()},m){let e=ep(m.path,m.name);r.ssrRemoteEntry=e,r.ssrRemoteEntryType=m.type||"commonjs-module"}return r}function ey(e){return!!("remoteEntry"in e&&e.remoteEntry.includes(".json"))}function eE(e){if(!e)return{statsFileName:x,manifestFileName:F};let t="boolean"==typeof e?"":e.filePath||"",r="boolean"==typeof e?"":e.fileName||"",o=".json",n=r?r.endsWith(o)?r:`${r}${o}`:F;return{statsFileName:ep(t,r?n.replace(o,`-stats${o}`):x),manifestFileName:ep(t,n)}}let eb="[ Module Federation ]",eS=console,e_=["logger.ts","logger.js","captureStackTrace","Logger.emit","Logger.log","Logger.info","Logger.warn","Logger.error","Logger.debug"];var eR=class{constructor(e,t=eS){this.prefix=e,this.delegate=t??eS}setPrefix(e){this.prefix=e}setDelegate(e){this.delegate=e??eS}emit(e,t){let r=this.delegate,o=Z()?function(){try{let e=Error().stack;if(!e)return;let[,...t]=e.split("\n"),r=t.filter(e=>!e_.some(t=>e.includes(t)));if(!r.length)return;return`Stack trace:
|
|
3
|
-
${r.slice(0,5).join("\n")}`}catch{return}}():void 0,n=o?[...t,o]:t,i=(()=>{switch(e){case"log":return["log","info"];case"info":return["info","log"];case"warn":return["warn","info","log"];case"error":return["error","warn","log"];default:return["debug","log"]}})();for(let e of i){let t=r[e];if("function"==typeof t)return void t.call(r,this.prefix,...n)}for(let e of i){let t=eS[e];if("function"==typeof t)return void t.call(eS,this.prefix,...n)}}log(...e){this.emit("log",e)}warn(...e){this.emit("warn",e)}error(...e){this.emit("error",e)}success(...e){this.emit("info",e)}info(...e){this.emit("info",e)}ready(...e){this.emit("info",e)}debug(...e){Z()&&this.emit("debug",e)}};function eI(e){return new eR(e)}function eN(e){let t=new eR(e);return Object.defineProperty(t,"__mf_infrastructure_logger__",{value:!0,enumerable:!1,configurable:!1}),t}function eT(e,t,r){if(e.__mf_infrastructure_logger__&&t?.getInfrastructureLogger)try{let o=t.getInfrastructureLogger(r);o&&"object"==typeof o&&("function"==typeof o.log||"function"==typeof o.info||"function"==typeof o.warn||"function"==typeof o.error)&&e.setDelegate(o)}catch{e.setDelegate(void 0)}}let eM=eI(eb),ev=eN(eb);async function ew(e,t){try{return await e()}catch(e){t||eu(e);return}}function eO(e,t){let r=/^(https?:)?\/\//i;return e.replace(r,"").replace(/\/$/,"")===t.replace(r,"").replace(/\/$/,"")}function eP(e){let t,r=null,o=!0,n=2e4,i=document.getElementsByTagName("script");for(let t=0;t<i.length;t++){let n=i[t],a=n.getAttribute("src");if(a&&eO(a,e.url)){r=n,o=!1;break}}if(!r){let t,o=e.attrs;(r=document.createElement("script")).type=o?.type==="module"?"module":"text/javascript",e.createScriptHook&&((t=e.createScriptHook(e.url,e.attrs))instanceof HTMLScriptElement?r=t:"object"==typeof t&&("script"in t&&t.script&&(r=t.script),"timeout"in t&&t.timeout&&(n=t.timeout))),r.src||(r.src=e.url),o&&!t&&Object.keys(o).forEach(e=>{r&&("async"===e||"defer"===e?r[e]=o[e]:r.getAttribute(e)||r.setAttribute(e,o[e]))})}let a=null,s="u">typeof window?t=>{if(t.filename&&eO(t.filename,e.url)){let r=Error(`ScriptExecutionError: Script "${e.url}" loaded but threw a runtime error during execution: ${t.message} (${t.filename}:${t.lineno}:${t.colno})`);r.name="ScriptExecutionError",a=r}}:null;s&&window.addEventListener("error",s);let l=async(o,n)=>{clearTimeout(t),s&&window.removeEventListener("error",s);let i=()=>{if(n?.type==="error"){let t=Error(n?.isTimeout?`ScriptNetworkError: Script "${e.url}" timed out.`:`ScriptNetworkError: Failed to load script "${e.url}" - the script URL is unreachable or the server returned an error (network failure, 404, CORS, etc.)`);t.name="ScriptNetworkError",e?.onErrorCallback&&e?.onErrorCallback(t)}else a?e?.onErrorCallback&&e?.onErrorCallback(a):e?.cb&&e?.cb()};if(r&&(r.onerror=null,r.onload=null,ew(()=>{let{needDeleteScript:t=!0}=e;t&&r?.parentNode&&r.parentNode.removeChild(r)}),o&&"function"==typeof o)){let e=o(n);if(e instanceof Promise){let t=await e;return i(),t}return i(),e}i()};return r.onerror=l.bind(null,r.onerror),r.onload=l.bind(null,r.onload),t=setTimeout(()=>{l(null,{type:"error",isTimeout:!0})},n),{script:r,needAttach:o}}function ek(e){let t,r=null,o=!0,n=2e4,i=document.getElementsByTagName("link");for(let t=0;t<i.length;t++){let n=i[t],a=n.getAttribute("href"),s=n.getAttribute("rel");if(a&&eO(a,e.url)&&s===e.attrs.rel){r=n,o=!1;break}}if(!r){let t;(r=document.createElement("link")).setAttribute("href",e.url);let o=!0,i=e.attrs;e.createLinkHook&&((t=e.createLinkHook(e.url,i))instanceof HTMLLinkElement?(r=t,o=!1):"object"==typeof t&&("link"in t&&t.link&&(r=t.link,o=!1),"timeout"in t&&t.timeout&&(n=t.timeout))),i&&o&&Object.keys(i).forEach(e=>{r&&!r.getAttribute(e)&&r.setAttribute(e,i[e])})}if(!o)return Promise.resolve().then(()=>{e?.cb&&e?.cb()}),{link:r,needAttach:o};let a=(o,n)=>{t&&clearTimeout(t);let i=()=>{if(n?.type==="error"){let t=Error(n?.isTimeout?`LinkNetworkError: Link "${e.url}" timed out.`:`LinkNetworkError: Failed to load link "${e.url}" - the URL is unreachable or the server returned an error.`);t.name="LinkNetworkError",e?.onErrorCallback&&e?.onErrorCallback(t)}else e?.cb&&e?.cb()};if(r&&(r.onerror=null,r.onload=null,ew(()=>{let{needDeleteLink:t=!0}=e;t&&r?.parentNode&&r.parentNode.removeChild(r)}),o)){let e=o(n);return i(),e}i()};return r.onerror=a.bind(null,r.onerror),r.onload=a.bind(null,r.onload),t=setTimeout(()=>{a(null,{type:"error",isTimeout:!0})},n),{link:r,needAttach:o}}function eA(e,t){let{attrs:r={},createScriptHook:o}=t;return new Promise((t,n)=>{let{script:i,needAttach:a}=eP({url:e,cb:t,onErrorCallback:n,attrs:{fetchpriority:"high",...r},createScriptHook:o,needDeleteScript:!0});a&&document.head.appendChild(i)})}let e$=(e,t,r,o)=>{t(Error("createScriptNode is disabled in non-Node.js environment"))},eF=(e,t)=>{throw Error("loadScriptNode is disabled in non-Node.js environment")};function ex(e,t,r){return function(o){if(!1===o)return!1;if(void 0===o)if(e)return t;else return!1;if(!0===o)return t;if(o&&"object"==typeof o)return{...t,...o};throw Error(`Unexpected type for \`${r}\`, expect boolean/undefined/object, got: ${typeof o}`)}}let eD=e=>e;function eL(){return"u"<typeof __FEDERATION__?void 0:__FEDERATION__}function ej(e){return!!(e.loaded||"function"==typeof e.lib)}let eU=new Set(["@openmrs/esm-framework","@openmrs/esm-framework/src/internal"]);globalThis._OPENMRS_FEDERATION_ERROR_CODES=n,globalThis._OPENMRS_FEDERATION_SDK=i,void 0===globalThis._FEDERATION_RUNTIME_CORE&&console.error("The app shell did not publish the Module Federation runtime, so no frontend module will be able to start. This is a bug in the app shell build (see `experiments.provideExternalRuntime`).");let eC=null;Object.defineProperty(window,"initializeSpa",{value:function(e){let t,o;if(eC)return eC;Object.defineProperty(window,"copyText",{value:e=>{let t=window.getSelection();if(t){let r=document.createRange();r.selectNode(e),t.removeAllRanges(),t.addRange(r),document.execCommand("copy"),t.removeAllRanges()}},writable:!1,configurable:!1});let n=!1;if(e.apiUrl||(console.error("initializeSpa() was called without supplying an apiUrl. This means that the application cannot communicate with the backend."),n=!0),e.spaPath||(console.error("initializeSpa() was called without supplying a spaPath. This means that the application cannot properly generate urls."),n=!0),n)throw Error("One or more required properties in the basic configuration of the application was missing and the application cannot be rendered. Please see the browser console for details.");Object.defineProperty(window,"openmrsBase",{value:e.apiUrl,writable:!1,configurable:!1}),Object.defineProperty(window,"spaBase",{value:e.spaPath,writable:!1,configurable:!1}),Object.defineProperty(window,"spaEnv",{value:e.env||"production",writable:!1,configurable:!1}),Object.defineProperty(window,"spaVersion",{value:"10.0.1-pre.5522-20260927",writable:!1,configurable:!1});let i=window.spaBase.endsWith("/")?window.spaBase:window.spaBase+"/";return Object.defineProperty(window,"getOpenmrsSpaBase",{value:()=>i,writable:!1,configurable:!1}),t=document.createElement("base"),t.href=o=window.getOpenmrsSpaBase(),document.head.appendChild(t),r.p=o,eC=Promise.resolve(r.I("default")).then(async()=>{let t=r.S.default;t["@openmrs/esm-framework/src/internal"]&&!t["@openmrs/esm-framework"]&&(t["@openmrs/esm-framework"]=t["@openmrs/esm-framework/src/internal"]),function(e){var t;let r,o;if(!eL())return;let n=Object.values(e["@openmrs/esm-framework/src/internal"]??{}).filter(e=>!!e);if(0===n.length)return console.error("The app shell has not registered @openmrs/esm-framework as a shared module, so frontend modules may each load their own copy of the framework. This is a bug in the app shell build.");t={name:"openmrs-pin-framework-to-app-shell",resolveShare:e=>(eU.has(e.pkgName)&&(e.resolver=()=>{var e;return Object.getOwnPropertyDescriptor(e=n.find(ej)??n[0],"useTreesShaking")||Object.defineProperties(e,{shared:{get:()=>e,configurable:!0},useTreesShaking:{value:!1,configurable:!0}}),e}),e)},r=eL(),!(o=r?.__GLOBAL_PLUGIN__)||o.some(e=>e.name===t.name)||(o.push(t),r?.__INSTANCES__?.forEach(e=>e.registerPlugins([t])))}(t);let{configUrls:o=[],offline:n=!1}=e;Object.defineProperty(window,"offlineEnabled",{value:n,writable:!1,configurable:!1});let{run:i}=await Promise.all([r.e("2366"),r.e("4234"),r.e("5354"),r.e("316"),r.e("6561"),r.e("5848")]).then(r.bind(r,55387));return i(o)})},writable:!1,configurable:!1})},72868(e,t,r){"use strict";var o,n,i,a,s,l,c,u,f,d,h,p,m=r(88516),g=r.n(m),y=r(90839);let E=[{plugin:r.n(y)(),params:void 0}].filter(({plugin:e})=>e).map(({plugin:e,params:t})=>e(t)),b={};if((r.initializeSharingData||r.initializeExposesData)&&r.federation){let e=(e,t,r)=>{e&&e[t]&&(e[t]=r)},t=(e,t,r)=>{let o=r();Array.isArray(o)?(null!=e[t]||(e[t]=[]),e[t].push(...o)):"object"==typeof o&&null!==o&&(null!=e[t]||(e[t]={}),Object.assign(e[t],o))},m=(e,t,r)=>{null!=e[t]||(e[t]=r())},y=null!=(o=null==(l=r.remotesLoadingData)?void 0:l.chunkMapping)?o:{},S=null!=(n=null==(c=r.remotesLoadingData)?void 0:c.moduleIdToRemoteDataMapping)?n:{},_=null!=(i=null==(u=r.initializeSharingData)?void 0:u.scopeToSharingDataMapping)?i:{},R=null!=(a=null==(f=r.consumesLoadingData)?void 0:f.chunkMapping)?a:{},I=null!=(s=null==(d=r.consumesLoadingData)?void 0:d.moduleIdToConsumeDataMapping)?s:{},N={},T=[],M={},v=null==(h=r.initializeExposesData)?void 0:h.shareScope;for(let e in g())r.federation[e]=g()[e];m(r.federation,"consumesLoadingModuleToHandlerMapping",()=>{let e={};for(let[t,r]of Object.entries(I))e[t]={getter:r.fallback,shareInfo:{shareConfig:{fixedDependencies:!1,requiredVersion:r.requiredVersion,strictVersion:r.strictVersion,singleton:r.singleton,eager:r.eager},scope:[r.shareScope]},shareKey:r.shareKey};return e}),m(r.federation,"initOptions",()=>({})),m(r.federation.initOptions,"name",()=>"@openmrs/esm-app-shell"),m(r.federation.initOptions,"shareStrategy",()=>"version-first"),m(r.federation.initOptions,"shared",()=>{let e={};for(let[t,r]of Object.entries(_))for(let o of r)if("object"==typeof o&&null!==o){let{name:r,version:n,factory:i,eager:a,singleton:s,requiredVersion:l,strictVersion:c}=o,u={},f=function(e){return void 0!==e};f(s)&&(u.singleton=s),f(l)&&(u.requiredVersion=l),f(a)&&(u.eager=a),f(c)&&(u.strictVersion=c);let d={version:n,scope:[t],shareConfig:u,get:i};e[r]?e[r].push(d):e[r]=[d]}return e}),t(r.federation.initOptions,"remotes",()=>Object.values(b).flat().filter(e=>"script"===e.externalType)),t(r.federation.initOptions,"plugins",()=>E),m(r.federation,"bundlerRuntimeOptions",()=>({})),m(r.federation.bundlerRuntimeOptions,"remotes",()=>({})),m(r.federation.bundlerRuntimeOptions.remotes,"chunkMapping",()=>y),m(r.federation.bundlerRuntimeOptions.remotes,"remoteInfos",()=>b),m(r.federation.bundlerRuntimeOptions.remotes,"idToExternalAndNameMapping",()=>{let e={};for(let[t,r]of Object.entries(S))e[t]=[r.shareScope,r.name,r.externalModuleId,r.remoteName];return e}),m(r.federation.bundlerRuntimeOptions.remotes,"webpackRequire",()=>r),t(r.federation.bundlerRuntimeOptions.remotes,"idToRemoteMap",()=>{let e={};for(let[t,r]of Object.entries(S)){let o=b[r.remoteName];o&&(e[t]=o)}return e}),e(r,"S",r.federation.bundlerRuntime.S),r.federation.attachShareScopeMap&&r.federation.attachShareScopeMap(r),e(r.f,"remotes",(e,t)=>r.federation.bundlerRuntime.remotes({chunkId:e,promises:t,chunkMapping:y,idToExternalAndNameMapping:r.federation.bundlerRuntimeOptions.remotes.idToExternalAndNameMapping,idToRemoteMap:r.federation.bundlerRuntimeOptions.remotes.idToRemoteMap,webpackRequire:r})),e(r.f,"consumes",(e,t)=>r.federation.bundlerRuntime.consumes({chunkId:e,promises:t,chunkMapping:R,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping,installedModules:N,webpackRequire:r})),e(r,"I",(e,t)=>r.federation.bundlerRuntime.I({shareScopeName:e,initScope:t,initPromises:T,initTokens:M,webpackRequire:r})),e(r,"initContainer",(e,t,o)=>r.federation.bundlerRuntime.initContainerEntry({shareScope:e,initScope:t,remoteEntryInitOptions:o,shareScopeKey:v,webpackRequire:r})),e(r,"getContainer",(e,t)=>{var o=r.initializeExposesData.moduleMap;return r.R=t,t=Object.prototype.hasOwnProperty.call(o,e)?o[e]():Promise.resolve().then(()=>{throw Error('Module "'+e+'" does not exist in container.')}),r.R=void 0,t}),r.federation.instance=r.federation.runtime.init(r.federation.initOptions),(null==(p=r.consumesLoadingData)?void 0:p.initialConsumes)&&r.federation.bundlerRuntime.installInitialConsumes({webpackRequire:r,installedModules:N,initialConsumes:r.consumesLoadingData.initialConsumes,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping})}},52900(e,t,r){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let o=r(2847);t.logAndReport=function(e,t,r,n,i,a){return n(o.getShortErrorMsg(e,t,r,i))}},4359(e,t,r){let o=r(53375),n={[o.RUNTIME_001]:"Failed to get remoteEntry exports.",[o.RUNTIME_002]:'The remote entry interface does not contain "init"',[o.RUNTIME_003]:"Failed to get manifest.",[o.RUNTIME_004]:"Failed to locate remote.",[o.RUNTIME_005]:"Invalid loadShareSync function call from bundler runtime",[o.RUNTIME_006]:"Invalid loadShareSync function call from runtime",[o.RUNTIME_007]:"Failed to get remote snapshot.",[o.RUNTIME_008]:"Failed to load script resources.",[o.RUNTIME_009]:"Please call createInstance first.",[o.RUNTIME_010]:'The name option cannot be changed after initialization. If you want to create a new instance with a different name, please use "createInstance" api.',[o.RUNTIME_011]:"The remoteEntry URL is missing from the remote snapshot.",[o.RUNTIME_012]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.',[o.RUNTIME_013]:"The manifest is not a valid Module Federation manifest.",[o.RUNTIME_014]:"The remote does not expose the requested module.",[o.RUNTIME_015]:"Remote container initialization failed."},i={[o.TYPE_001]:"Failed to generate type declaration. Execute the below cmd to reproduce and fix the error."},a={[o.BUILD_001]:"Failed to find expose module.",[o.BUILD_002]:"PublicPath is required in prod mode."},s={...n,...i,...a};t.buildDescMap=a,t.errorDescMap=s,t.runtimeDescMap=n,t.typeDescMap=i},53375(e,t){t.BUILD_001="BUILD-001",t.BUILD_002="BUILD-002",t.RUNTIME_001="RUNTIME-001",t.RUNTIME_002="RUNTIME-002",t.RUNTIME_003="RUNTIME-003",t.RUNTIME_004="RUNTIME-004",t.RUNTIME_005="RUNTIME-005",t.RUNTIME_006="RUNTIME-006",t.RUNTIME_007="RUNTIME-007",t.RUNTIME_008="RUNTIME-008",t.RUNTIME_009="RUNTIME-009",t.RUNTIME_010="RUNTIME-010",t.RUNTIME_011="RUNTIME-011",t.RUNTIME_012="RUNTIME-012",t.RUNTIME_013="RUNTIME-013",t.RUNTIME_014="RUNTIME-014",t.RUNTIME_015="RUNTIME-015",t.TYPE_001="TYPE-001"},2847(e,t){t.getShortErrorMsg=(e,t,r,o)=>{let n=[`${[t[e]]} #${e}`];return r&&n.push(`args: ${JSON.stringify(r)}`),n.push(`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`),o&&n.push(`Original Error Message:
|
|
3
|
+
${r.slice(0,5).join("\n")}`}catch{return}}():void 0,n=o?[...t,o]:t,i=(()=>{switch(e){case"log":return["log","info"];case"info":return["info","log"];case"warn":return["warn","info","log"];case"error":return["error","warn","log"];default:return["debug","log"]}})();for(let e of i){let t=r[e];if("function"==typeof t)return void t.call(r,this.prefix,...n)}for(let e of i){let t=eS[e];if("function"==typeof t)return void t.call(eS,this.prefix,...n)}}log(...e){this.emit("log",e)}warn(...e){this.emit("warn",e)}error(...e){this.emit("error",e)}success(...e){this.emit("info",e)}info(...e){this.emit("info",e)}ready(...e){this.emit("info",e)}debug(...e){Z()&&this.emit("debug",e)}};function eI(e){return new eR(e)}function eN(e){let t=new eR(e);return Object.defineProperty(t,"__mf_infrastructure_logger__",{value:!0,enumerable:!1,configurable:!1}),t}function eT(e,t,r){if(e.__mf_infrastructure_logger__&&t?.getInfrastructureLogger)try{let o=t.getInfrastructureLogger(r);o&&"object"==typeof o&&("function"==typeof o.log||"function"==typeof o.info||"function"==typeof o.warn||"function"==typeof o.error)&&e.setDelegate(o)}catch{e.setDelegate(void 0)}}let eM=eI(eb),ev=eN(eb);async function ew(e,t){try{return await e()}catch(e){t||eu(e);return}}function eO(e,t){let r=/^(https?:)?\/\//i;return e.replace(r,"").replace(/\/$/,"")===t.replace(r,"").replace(/\/$/,"")}function eP(e){let t,r=null,o=!0,n=2e4,i=document.getElementsByTagName("script");for(let t=0;t<i.length;t++){let n=i[t],a=n.getAttribute("src");if(a&&eO(a,e.url)){r=n,o=!1;break}}if(!r){let t,o=e.attrs;(r=document.createElement("script")).type=o?.type==="module"?"module":"text/javascript",e.createScriptHook&&((t=e.createScriptHook(e.url,e.attrs))instanceof HTMLScriptElement?r=t:"object"==typeof t&&("script"in t&&t.script&&(r=t.script),"timeout"in t&&t.timeout&&(n=t.timeout))),r.src||(r.src=e.url),o&&!t&&Object.keys(o).forEach(e=>{r&&("async"===e||"defer"===e?r[e]=o[e]:r.getAttribute(e)||r.setAttribute(e,o[e]))})}let a=null,s="u">typeof window?t=>{if(t.filename&&eO(t.filename,e.url)){let r=Error(`ScriptExecutionError: Script "${e.url}" loaded but threw a runtime error during execution: ${t.message} (${t.filename}:${t.lineno}:${t.colno})`);r.name="ScriptExecutionError",a=r}}:null;s&&window.addEventListener("error",s);let l=async(o,n)=>{clearTimeout(t),s&&window.removeEventListener("error",s);let i=()=>{if(n?.type==="error"){let t=Error(n?.isTimeout?`ScriptNetworkError: Script "${e.url}" timed out.`:`ScriptNetworkError: Failed to load script "${e.url}" - the script URL is unreachable or the server returned an error (network failure, 404, CORS, etc.)`);t.name="ScriptNetworkError",e?.onErrorCallback&&e?.onErrorCallback(t)}else a?e?.onErrorCallback&&e?.onErrorCallback(a):e?.cb&&e?.cb()};if(r&&(r.onerror=null,r.onload=null,ew(()=>{let{needDeleteScript:t=!0}=e;t&&r?.parentNode&&r.parentNode.removeChild(r)}),o&&"function"==typeof o)){let e=o(n);if(e instanceof Promise){let t=await e;return i(),t}return i(),e}i()};return r.onerror=l.bind(null,r.onerror),r.onload=l.bind(null,r.onload),t=setTimeout(()=>{l(null,{type:"error",isTimeout:!0})},n),{script:r,needAttach:o}}function ek(e){let t,r=null,o=!0,n=2e4,i=document.getElementsByTagName("link");for(let t=0;t<i.length;t++){let n=i[t],a=n.getAttribute("href"),s=n.getAttribute("rel");if(a&&eO(a,e.url)&&s===e.attrs.rel){r=n,o=!1;break}}if(!r){let t;(r=document.createElement("link")).setAttribute("href",e.url);let o=!0,i=e.attrs;e.createLinkHook&&((t=e.createLinkHook(e.url,i))instanceof HTMLLinkElement?(r=t,o=!1):"object"==typeof t&&("link"in t&&t.link&&(r=t.link,o=!1),"timeout"in t&&t.timeout&&(n=t.timeout))),i&&o&&Object.keys(i).forEach(e=>{r&&!r.getAttribute(e)&&r.setAttribute(e,i[e])})}if(!o)return Promise.resolve().then(()=>{e?.cb&&e?.cb()}),{link:r,needAttach:o};let a=(o,n)=>{t&&clearTimeout(t);let i=()=>{if(n?.type==="error"){let t=Error(n?.isTimeout?`LinkNetworkError: Link "${e.url}" timed out.`:`LinkNetworkError: Failed to load link "${e.url}" - the URL is unreachable or the server returned an error.`);t.name="LinkNetworkError",e?.onErrorCallback&&e?.onErrorCallback(t)}else e?.cb&&e?.cb()};if(r&&(r.onerror=null,r.onload=null,ew(()=>{let{needDeleteLink:t=!0}=e;t&&r?.parentNode&&r.parentNode.removeChild(r)}),o)){let e=o(n);return i(),e}i()};return r.onerror=a.bind(null,r.onerror),r.onload=a.bind(null,r.onload),t=setTimeout(()=>{a(null,{type:"error",isTimeout:!0})},n),{link:r,needAttach:o}}function eA(e,t){let{attrs:r={},createScriptHook:o}=t;return new Promise((t,n)=>{let{script:i,needAttach:a}=eP({url:e,cb:t,onErrorCallback:n,attrs:{fetchpriority:"high",...r},createScriptHook:o,needDeleteScript:!0});a&&document.head.appendChild(i)})}let e$=(e,t,r,o)=>{t(Error("createScriptNode is disabled in non-Node.js environment"))},eF=(e,t)=>{throw Error("loadScriptNode is disabled in non-Node.js environment")};function ex(e,t,r){return function(o){if(!1===o)return!1;if(void 0===o)if(e)return t;else return!1;if(!0===o)return t;if(o&&"object"==typeof o)return{...t,...o};throw Error(`Unexpected type for \`${r}\`, expect boolean/undefined/object, got: ${typeof o}`)}}let eD=e=>e;function eL(){return"u"<typeof __FEDERATION__?void 0:__FEDERATION__}function ej(e){return!!(e.loaded||"function"==typeof e.lib)}let eU=new Set(["@openmrs/esm-framework","@openmrs/esm-framework/src/internal"]);globalThis._OPENMRS_FEDERATION_ERROR_CODES=n,globalThis._OPENMRS_FEDERATION_SDK=i,void 0===globalThis._FEDERATION_RUNTIME_CORE&&console.error("The app shell did not publish the Module Federation runtime, so no frontend module will be able to start. This is a bug in the app shell build (see `experiments.provideExternalRuntime`).");let eC=null;Object.defineProperty(window,"initializeSpa",{value:function(e){let t,o;if(eC)return eC;Object.defineProperty(window,"copyText",{value:e=>{let t=window.getSelection();if(t){let r=document.createRange();r.selectNode(e),t.removeAllRanges(),t.addRange(r),document.execCommand("copy"),t.removeAllRanges()}},writable:!1,configurable:!1});let n=!1;if(e.apiUrl||(console.error("initializeSpa() was called without supplying an apiUrl. This means that the application cannot communicate with the backend."),n=!0),e.spaPath||(console.error("initializeSpa() was called without supplying a spaPath. This means that the application cannot properly generate urls."),n=!0),n)throw Error("One or more required properties in the basic configuration of the application was missing and the application cannot be rendered. Please see the browser console for details.");Object.defineProperty(window,"openmrsBase",{value:e.apiUrl,writable:!1,configurable:!1}),Object.defineProperty(window,"spaBase",{value:e.spaPath,writable:!1,configurable:!1}),Object.defineProperty(window,"spaEnv",{value:e.env||"production",writable:!1,configurable:!1}),Object.defineProperty(window,"spaVersion",{value:"10.0.1-pre.5539-20260928",writable:!1,configurable:!1});let i=window.spaBase.endsWith("/")?window.spaBase:window.spaBase+"/";return Object.defineProperty(window,"getOpenmrsSpaBase",{value:()=>i,writable:!1,configurable:!1}),t=document.createElement("base"),t.href=o=window.getOpenmrsSpaBase(),document.head.appendChild(t),r.p=o,eC=Promise.resolve(r.I("default")).then(async()=>{let t=r.S.default;t["@openmrs/esm-framework/src/internal"]&&!t["@openmrs/esm-framework"]&&(t["@openmrs/esm-framework"]=t["@openmrs/esm-framework/src/internal"]),function(e){var t;let r,o;if(!eL())return;let n=Object.values(e["@openmrs/esm-framework/src/internal"]??{}).filter(e=>!!e);if(0===n.length)return console.error("The app shell has not registered @openmrs/esm-framework as a shared module, so frontend modules may each load their own copy of the framework. This is a bug in the app shell build.");t={name:"openmrs-pin-framework-to-app-shell",resolveShare:e=>(eU.has(e.pkgName)&&(e.resolver=()=>{var e;return Object.getOwnPropertyDescriptor(e=n.find(ej)??n[0],"useTreesShaking")||Object.defineProperties(e,{shared:{get:()=>e,configurable:!0},useTreesShaking:{value:!1,configurable:!0}}),e}),e)},r=eL(),!(o=r?.__GLOBAL_PLUGIN__)||o.some(e=>e.name===t.name)||(o.push(t),r?.__INSTANCES__?.forEach(e=>e.registerPlugins([t])))}(t);let{configUrls:o=[],offline:n=!1}=e;Object.defineProperty(window,"offlineEnabled",{value:n,writable:!1,configurable:!1});let{run:i}=await Promise.all([r.e("2366"),r.e("4234"),r.e("5354"),r.e("316"),r.e("6561"),r.e("5848")]).then(r.bind(r,55387));return i(o)})},writable:!1,configurable:!1})},72868(e,t,r){"use strict";var o,n,i,a,s,l,c,u,f,d,h,p,m=r(88516),g=r.n(m),y=r(90839);let E=[{plugin:r.n(y)(),params:void 0}].filter(({plugin:e})=>e).map(({plugin:e,params:t})=>e(t)),b={};if((r.initializeSharingData||r.initializeExposesData)&&r.federation){let e=(e,t,r)=>{e&&e[t]&&(e[t]=r)},t=(e,t,r)=>{let o=r();Array.isArray(o)?(null!=e[t]||(e[t]=[]),e[t].push(...o)):"object"==typeof o&&null!==o&&(null!=e[t]||(e[t]={}),Object.assign(e[t],o))},m=(e,t,r)=>{null!=e[t]||(e[t]=r())},y=null!=(o=null==(l=r.remotesLoadingData)?void 0:l.chunkMapping)?o:{},S=null!=(n=null==(c=r.remotesLoadingData)?void 0:c.moduleIdToRemoteDataMapping)?n:{},_=null!=(i=null==(u=r.initializeSharingData)?void 0:u.scopeToSharingDataMapping)?i:{},R=null!=(a=null==(f=r.consumesLoadingData)?void 0:f.chunkMapping)?a:{},I=null!=(s=null==(d=r.consumesLoadingData)?void 0:d.moduleIdToConsumeDataMapping)?s:{},N={},T=[],M={},v=null==(h=r.initializeExposesData)?void 0:h.shareScope;for(let e in g())r.federation[e]=g()[e];m(r.federation,"consumesLoadingModuleToHandlerMapping",()=>{let e={};for(let[t,r]of Object.entries(I))e[t]={getter:r.fallback,shareInfo:{shareConfig:{fixedDependencies:!1,requiredVersion:r.requiredVersion,strictVersion:r.strictVersion,singleton:r.singleton,eager:r.eager},scope:[r.shareScope]},shareKey:r.shareKey};return e}),m(r.federation,"initOptions",()=>({})),m(r.federation.initOptions,"name",()=>"@openmrs/esm-app-shell"),m(r.federation.initOptions,"shareStrategy",()=>"version-first"),m(r.federation.initOptions,"shared",()=>{let e={};for(let[t,r]of Object.entries(_))for(let o of r)if("object"==typeof o&&null!==o){let{name:r,version:n,factory:i,eager:a,singleton:s,requiredVersion:l,strictVersion:c}=o,u={},f=function(e){return void 0!==e};f(s)&&(u.singleton=s),f(l)&&(u.requiredVersion=l),f(a)&&(u.eager=a),f(c)&&(u.strictVersion=c);let d={version:n,scope:[t],shareConfig:u,get:i};e[r]?e[r].push(d):e[r]=[d]}return e}),t(r.federation.initOptions,"remotes",()=>Object.values(b).flat().filter(e=>"script"===e.externalType)),t(r.federation.initOptions,"plugins",()=>E),m(r.federation,"bundlerRuntimeOptions",()=>({})),m(r.federation.bundlerRuntimeOptions,"remotes",()=>({})),m(r.federation.bundlerRuntimeOptions.remotes,"chunkMapping",()=>y),m(r.federation.bundlerRuntimeOptions.remotes,"remoteInfos",()=>b),m(r.federation.bundlerRuntimeOptions.remotes,"idToExternalAndNameMapping",()=>{let e={};for(let[t,r]of Object.entries(S))e[t]=[r.shareScope,r.name,r.externalModuleId,r.remoteName];return e}),m(r.federation.bundlerRuntimeOptions.remotes,"webpackRequire",()=>r),t(r.federation.bundlerRuntimeOptions.remotes,"idToRemoteMap",()=>{let e={};for(let[t,r]of Object.entries(S)){let o=b[r.remoteName];o&&(e[t]=o)}return e}),e(r,"S",r.federation.bundlerRuntime.S),r.federation.attachShareScopeMap&&r.federation.attachShareScopeMap(r),e(r.f,"remotes",(e,t)=>r.federation.bundlerRuntime.remotes({chunkId:e,promises:t,chunkMapping:y,idToExternalAndNameMapping:r.federation.bundlerRuntimeOptions.remotes.idToExternalAndNameMapping,idToRemoteMap:r.federation.bundlerRuntimeOptions.remotes.idToRemoteMap,webpackRequire:r})),e(r.f,"consumes",(e,t)=>r.federation.bundlerRuntime.consumes({chunkId:e,promises:t,chunkMapping:R,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping,installedModules:N,webpackRequire:r})),e(r,"I",(e,t)=>r.federation.bundlerRuntime.I({shareScopeName:e,initScope:t,initPromises:T,initTokens:M,webpackRequire:r})),e(r,"initContainer",(e,t,o)=>r.federation.bundlerRuntime.initContainerEntry({shareScope:e,initScope:t,remoteEntryInitOptions:o,shareScopeKey:v,webpackRequire:r})),e(r,"getContainer",(e,t)=>{var o=r.initializeExposesData.moduleMap;return r.R=t,t=Object.prototype.hasOwnProperty.call(o,e)?o[e]():Promise.resolve().then(()=>{throw Error('Module "'+e+'" does not exist in container.')}),r.R=void 0,t}),r.federation.instance=r.federation.runtime.init(r.federation.initOptions),(null==(p=r.consumesLoadingData)?void 0:p.initialConsumes)&&r.federation.bundlerRuntime.installInitialConsumes({webpackRequire:r,installedModules:N,initialConsumes:r.consumesLoadingData.initialConsumes,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping})}},52900(e,t,r){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let o=r(2847);t.logAndReport=function(e,t,r,n,i,a){return n(o.getShortErrorMsg(e,t,r,i))}},4359(e,t,r){let o=r(53375),n={[o.RUNTIME_001]:"Failed to get remoteEntry exports.",[o.RUNTIME_002]:'The remote entry interface does not contain "init"',[o.RUNTIME_003]:"Failed to get manifest.",[o.RUNTIME_004]:"Failed to locate remote.",[o.RUNTIME_005]:"Invalid loadShareSync function call from bundler runtime",[o.RUNTIME_006]:"Invalid loadShareSync function call from runtime",[o.RUNTIME_007]:"Failed to get remote snapshot.",[o.RUNTIME_008]:"Failed to load script resources.",[o.RUNTIME_009]:"Please call createInstance first.",[o.RUNTIME_010]:'The name option cannot be changed after initialization. If you want to create a new instance with a different name, please use "createInstance" api.',[o.RUNTIME_011]:"The remoteEntry URL is missing from the remote snapshot.",[o.RUNTIME_012]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.',[o.RUNTIME_013]:"The manifest is not a valid Module Federation manifest.",[o.RUNTIME_014]:"The remote does not expose the requested module.",[o.RUNTIME_015]:"Remote container initialization failed."},i={[o.TYPE_001]:"Failed to generate type declaration. Execute the below cmd to reproduce and fix the error."},a={[o.BUILD_001]:"Failed to find expose module.",[o.BUILD_002]:"PublicPath is required in prod mode."},s={...n,...i,...a};t.buildDescMap=a,t.errorDescMap=s,t.runtimeDescMap=n,t.typeDescMap=i},53375(e,t){t.BUILD_001="BUILD-001",t.BUILD_002="BUILD-002",t.RUNTIME_001="RUNTIME-001",t.RUNTIME_002="RUNTIME-002",t.RUNTIME_003="RUNTIME-003",t.RUNTIME_004="RUNTIME-004",t.RUNTIME_005="RUNTIME-005",t.RUNTIME_006="RUNTIME-006",t.RUNTIME_007="RUNTIME-007",t.RUNTIME_008="RUNTIME-008",t.RUNTIME_009="RUNTIME-009",t.RUNTIME_010="RUNTIME-010",t.RUNTIME_011="RUNTIME-011",t.RUNTIME_012="RUNTIME-012",t.RUNTIME_013="RUNTIME-013",t.RUNTIME_014="RUNTIME-014",t.RUNTIME_015="RUNTIME-015",t.TYPE_001="TYPE-001"},2847(e,t){t.getShortErrorMsg=(e,t,r,o)=>{let n=[`${[t[e]]} #${e}`];return r&&n.push(`args: ${JSON.stringify(r)}`),n.push(`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`),o&&n.push(`Original Error Message:
|
|
4
4
|
${o}`),n.join("\n")}},69512(e,t,r){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let o=r(53375),n=r(2847),i=r(4359);t.BUILD_001=o.BUILD_001,t.BUILD_002=o.BUILD_002,t.RUNTIME_001=o.RUNTIME_001,t.RUNTIME_002=o.RUNTIME_002,t.RUNTIME_003=o.RUNTIME_003,t.RUNTIME_004=o.RUNTIME_004,t.RUNTIME_005=o.RUNTIME_005,t.RUNTIME_006=o.RUNTIME_006,t.RUNTIME_007=o.RUNTIME_007,t.RUNTIME_008=o.RUNTIME_008,t.RUNTIME_009=o.RUNTIME_009,t.RUNTIME_010=o.RUNTIME_010,t.RUNTIME_011=o.RUNTIME_011,t.RUNTIME_012=o.RUNTIME_012,t.RUNTIME_013=o.RUNTIME_013,t.RUNTIME_014=o.RUNTIME_014,t.RUNTIME_015=o.RUNTIME_015,t.TYPE_001=o.TYPE_001,t.buildDescMap=i.buildDescMap,t.errorDescMap=i.errorDescMap,t.getShortErrorMsg=n.getShortErrorMsg,t.runtimeDescMap=i.runtimeDescMap,t.typeDescMap=i.typeDescMap},45147(e,t){var r=Object.create,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(a(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var a,l=i(t),c=0,u=l.length;c<u;c++)a=l[c],s.call(e,a)||void 0===a||o(e,a,{get:(e=>t[e]).bind(null,a),enumerable:!(r=n(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?l:o(l,"default",{value:e,enumerable:!0}),e))},90839(e,t,r){let o=r(45147),n=r(27705);n=o.__toESM(n),e.exports=function(){return{name:"inject-external-runtime-core-plugin",version:"2.8.1",beforeInit(e){let t=n.Global;if(!t||"object"!=typeof t)return e;let r=e.options.name,o="2.8.1";return t._FEDERATION_RUNTIME_CORE&&t._FEDERATION_RUNTIME_CORE_FROM&&(t._FEDERATION_RUNTIME_CORE_FROM.name!==r||t._FEDERATION_RUNTIME_CORE_FROM.version!==o)?console.warn(`Detect multiple module federation runtime! Injected runtime from ${t._FEDERATION_RUNTIME_CORE_FROM.name}@${t._FEDERATION_RUNTIME_CORE_FROM.version} and current is ${r}@${o}, pleasure ensure there is only one consumer to provider runtime!`):(t._FEDERATION_RUNTIME_CORE=n,t._FEDERATION_RUNTIME_CORE_FROM={version:o,name:r}),e}}}},2219(e,t){var r=Object.defineProperty;t.__exportAll=(e,t)=>{let o={};for(var n in e)r(o,n,{get:e[n],enumerable:!0});return t||r(o,Symbol.toStringTag,{value:"Module"}),o}},73897(e,t){t.DEFAULT_REMOTE_TYPE="global",t.DEFAULT_SCOPE="default"},54588(e,t,r){let o=r(34647),n=r(73897),i=r(54928),a=r(75612),s=r(23038);r(98073);let l=r(23504),c=r(99101),u=r(14636),f=r(36434),d=r(82098);r(16128),r(35746);let h=r(16751),p=r(21647),m=r(72651);r(88981);let g=r(90211);r(36937);let y=r(91422),E=r(36757),b=r(69512);t.ModuleFederation=class{constructor(e){this.hooks=new d.PluginSystem({beforeInit:new u.SyncWaterfallHook("beforeInit"),init:new l.SyncHook,beforeInitContainer:new f.AsyncWaterfallHook("beforeInitContainer"),initContainer:new f.AsyncWaterfallHook("initContainer")}),this.version="2.8.1",this.moduleCache=new Map,this.loaderHook=new d.PluginSystem({getModuleInfo:new l.SyncHook,createScript:new l.SyncHook,createLink:new l.SyncHook,fetch:new c.AsyncHook,loadEntryError:new c.AsyncHook,afterLoadEntry:new c.AsyncHook("afterLoadEntry"),beforeInitRemote:new c.AsyncHook("beforeInitRemote"),afterInitRemote:new c.AsyncHook("afterInitRemote"),beforeGetExpose:new c.AsyncHook("beforeGetExpose"),afterGetExpose:new c.AsyncHook("afterGetExpose"),beforeExecuteFactory:new c.AsyncHook("beforeExecuteFactory"),afterExecuteFactory:new c.AsyncHook("afterExecuteFactory"),getModuleFactory:new c.AsyncHook}),this.bridgeHook=new d.PluginSystem({beforeBridgeRender:new l.SyncHook,afterBridgeRender:new l.SyncHook,beforeBridgeDestroy:new l.SyncHook,afterBridgeDestroy:new l.SyncHook});const t=[h.snapshotPlugin(),p.generatePreloadAssetsPlugin()],r={id:a.getBuilderId(),name:e.name,plugins:t,remotes:[],shared:{},inBrowser:E.isBrowserEnvValue};this.name=e.name,this.options=r,this.snapshotHandler=new m.SnapshotHandler(this),this.sharedHandler=new g.SharedHandler(this),this.remoteHandler=new y.RemoteHandler(this),this.shareScopeMap=this.sharedHandler.shareScopeMap,this.registerPlugins([...r.plugins,...e.plugins||[]]),this.options=this.formatOptions(r,e)}initOptions(e){e.name&&e.name!==this.options.name&&o.error((0,b.getShortErrorMsg)(b.RUNTIME_010,b.runtimeDescMap)),this.registerPlugins(e.plugins);let t=this.formatOptions(this.options,e);return this.options=t,t}async loadShare(e,t){return this.sharedHandler.loadShare(e,t)}loadShareSync(e,t){return this.sharedHandler.loadShareSync(e,t)}initializeSharing(e=n.DEFAULT_SCOPE,t){return this.sharedHandler.initializeSharing(e,t)}initRawContainer(e,t,r){return this.remoteHandler.initRawContainer(e,t,r)}async loadRemote(e,t){return this.remoteHandler.loadRemote(e,t)}async preloadRemote(e){return this.remoteHandler.preloadRemote(e)}initShareScopeMap(e,t,r={}){this.sharedHandler.initShareScopeMap(e,t,r)}formatOptions(e,t){let r=i.formatShareConfigs(e,t).allShareInfos,{userOptions:o,options:n}=this.hooks.lifecycle.beforeInit.emit({origin:this,userOptions:t,options:e,shareInfo:r}),a=this.remoteHandler.formatAndRegisterRemote(n,o),{allShareInfos:s}=this.sharedHandler.registerShared(n,o),l=[...n.plugins];o.plugins&&o.plugins.forEach(e=>{l.includes(e)||l.push(e)});let c={...e,...t,plugins:l,remotes:a,shared:s,id:o.id||e.id};return this.hooks.lifecycle.init.emit({origin:this,options:c}),c}registerPlugins(e){let t=s.registerPlugins(e,this);this.options.plugins=this.options.plugins.reduce((e,t)=>(t&&e&&!e.find(e=>e.name===t.name)&&e.push(t),e),t||[])}registerRemotes(e,t){return this.remoteHandler.registerRemotes(e,t)}registerShared(e){this.sharedHandler.registerShared(this.options,{...this.options,shared:e})}}},11772(e,t,r){let o=r(34647),n=r(91557),i=r(36757),a="object"==typeof globalThis?globalThis:window,s=(()=>{try{return document.defaultView}catch{return a}})();function l(e,t,r){Object.defineProperty(e,t,{value:r,configurable:!1,writable:!0})}function c(e,t){return Object.hasOwnProperty.call(e,t)}c(a,"__GLOBAL_LOADING_REMOTE_ENTRY__")||l(a,"__GLOBAL_LOADING_REMOTE_ENTRY__",{});let u=a.__GLOBAL_LOADING_REMOTE_ENTRY__;function f(e){c(e,"__VMOK__")&&!c(e,"__FEDERATION__")&&l(e,"__FEDERATION__",e.__VMOK__),c(e,"__FEDERATION__")||(l(e,"__FEDERATION__",{__GLOBAL_PLUGIN__:[],__INSTANCES__:[],moduleInfo:{},__SHARE__:{},__MANIFEST_LOADING__:{},__PRELOADED_MAP__:new Map}),l(e,"__VMOK__",e.__FEDERATION__)),e.__FEDERATION__.__GLOBAL_PLUGIN__??=[],e.__FEDERATION__.__INSTANCES__??=[],e.__FEDERATION__.moduleInfo??={},e.__FEDERATION__.__SHARE__??={},e.__FEDERATION__.__MANIFEST_LOADING__??={},e.__FEDERATION__.__PRELOADED_MAP__??=new Map}function d(e,t){if("string"==typeof t)if(e[t])return{value:e[t],key:t};else{for(let r of Object.keys(e)){let[o,n]=r.split(":"),i=`${o}:${t}`,a=e[i];if(a)return{value:a,key:i}}return{value:void 0,key:t}}o.error(`getInfoWithoutType: "key" must be a string, got ${typeof t} (${JSON.stringify(t)}).`)}f(a),f(s);let h=(e,t)=>{let r=d(t,n.getFMId(e)).value;if(r&&!r.version&&"version"in e&&e.version&&(r.version=e.version),r)return r;if("version"in e&&e.version){let{version:t,...r}=e,o=n.getFMId(r),i=d(s.__FEDERATION__.moduleInfo,o).value;if(i?.version===t)return i}};t.CurrentGlobal=a,t.Global=s,t.addGlobalSnapshot=e=>(s.__FEDERATION__.moduleInfo={...s.__FEDERATION__.moduleInfo,...e},()=>{for(let t of Object.keys(e))delete s.__FEDERATION__.moduleInfo[t]}),t.getGlobalFederationConstructor=function(){return a.__FEDERATION__.__DEBUG_CONSTRUCTOR__},t.getGlobalHostPlugins=()=>s.__FEDERATION__.__GLOBAL_PLUGIN__,t.getGlobalSnapshot=()=>s.__FEDERATION__.moduleInfo,t.getGlobalSnapshotInfoByModuleInfo=e=>h(e,s.__FEDERATION__.moduleInfo),t.getInfoWithoutType=d,t.getPreloaded=e=>a.__FEDERATION__.__PRELOADED_MAP__.get(e),t.getRemoteEntryExports=(e,t)=>{let r=t||`__FEDERATION_${e}:custom__`;return{remoteEntryKey:r,entryExports:a[r]}},t.getTargetSnapshotInfoByModuleInfo=h,t.globalLoading=u,t.nativeGlobal=s,t.registerGlobalPlugins=e=>{let{__GLOBAL_PLUGIN__:t}=s.__FEDERATION__;e.forEach(e=>{-1===t.findIndex(t=>t.name===e.name)?t.push(e):o.warn(`The plugin ${e.name} has been registered.`)})},t.resetFederationGlobalInfo=function(){a.__FEDERATION__.__GLOBAL_PLUGIN__=[],a.__FEDERATION__.__INSTANCES__=[],a.__FEDERATION__.moduleInfo={},a.__FEDERATION__.__SHARE__={},a.__FEDERATION__.__MANIFEST_LOADING__={},Object.keys(u).forEach(e=>{delete u[e]})},t.setGlobalFederationConstructor=function(e,t=(0,i.isDebugMode)()){t&&(a.__FEDERATION__.__DEBUG_CONSTRUCTOR__=e,a.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__="2.8.1")},t.setGlobalFederationInstance=function(e){a.__FEDERATION__.__INSTANCES__.push(e)},t.setGlobalSnapshotInfoByModuleInfo=(e,t)=>{let r=n.getFMId(e);return s.__FEDERATION__.moduleInfo[r]=t,s.__FEDERATION__.moduleInfo},t.setPreloaded=e=>a.__FEDERATION__.__PRELOADED_MAP__.set(e,!0)},8608(e,t,r){let o=r(11772),n=r(54928),i=r(48316),a=r(77179);r(98073);let s=r(6474),l={getRegisteredShare:n.getRegisteredShare,getGlobalShareScope:n.getGlobalShareScope};t.default={global:{Global:o.Global,nativeGlobal:o.nativeGlobal,resetFederationGlobalInfo:o.resetFederationGlobalInfo,setGlobalFederationInstance:o.setGlobalFederationInstance,getGlobalFederationConstructor:o.getGlobalFederationConstructor,setGlobalFederationConstructor:o.setGlobalFederationConstructor,getInfoWithoutType:o.getInfoWithoutType,getGlobalSnapshot:o.getGlobalSnapshot,getTargetSnapshotInfoByModuleInfo:o.getTargetSnapshotInfoByModuleInfo,getGlobalSnapshotInfoByModuleInfo:o.getGlobalSnapshotInfoByModuleInfo,setGlobalSnapshotInfoByModuleInfo:o.setGlobalSnapshotInfoByModuleInfo,addGlobalSnapshot:o.addGlobalSnapshot,getRemoteEntryExports:o.getRemoteEntryExports,registerGlobalPlugins:o.registerGlobalPlugins,getGlobalHostPlugins:o.getGlobalHostPlugins,getPreloaded:o.getPreloaded,setPreloaded:o.setPreloaded},share:l,utils:{matchRemoteWithNameAndExpose:i.matchRemoteWithNameAndExpose,preloadAssets:s.preloadAssets,getRemoteInfo:a.getRemoteInfo}}},25063(e,t,r){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let o=r(34647),n=r(91557),i=r(11772),a=r(15422),s=r(54928),l=r(48316),c=r(77179);r(98073);let u=r(8608),f=r(65904);r(35746);let d=r(54588),h=r(2924),p=r(36757),m=u.default,g=f.Module;t.CurrentGlobal=i.CurrentGlobal,t.Global=i.Global,t.Module=g,t.ModuleFederation=d.ModuleFederation,t.addGlobalSnapshot=i.addGlobalSnapshot,t.assert=o.assert,t.error=o.error,t.getGlobalFederationConstructor=i.getGlobalFederationConstructor,t.getGlobalSnapshot=i.getGlobalSnapshot,t.getInfoWithoutType=i.getInfoWithoutType,t.getRegisteredShare=s.getRegisteredShare,t.getRemoteEntry=c.getRemoteEntry,t.getRemoteInfo=c.getRemoteInfo,t.helpers=m,t.isStaticResourcesEqual=n.isStaticResourcesEqual,Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return p.loadScript}}),Object.defineProperty(t,"loadScriptNode",{enumerable:!0,get:function(){return p.loadScriptNode}}),t.matchRemoteWithNameAndExpose=l.matchRemoteWithNameAndExpose,t.registerGlobalPlugins=i.registerGlobalPlugins,t.resetFederationGlobalInfo=i.resetFederationGlobalInfo,t.safeWrapper=n.safeWrapper,t.satisfy=a.satisfy,t.setGlobalFederationConstructor=i.setGlobalFederationConstructor,t.setGlobalFederationInstance=i.setGlobalFederationInstance,Object.defineProperty(t,"types",{enumerable:!0,get:function(){return h.type_exports}})},65904(e,t,r){let o=r(34647),n=r(91557),i=r(48316),a=r(77179),s=r(40660);r(98073);let l=r(36757),c=r(69512);t.Module=class{constructor({remoteInfo:e,host:t}){this.inited=!1,this.initing=!1,this.lib=void 0,this.remoteInfo=e,this.host=t}async getEntry(e){if(this.remoteEntryExports)return this.remoteEntryExports;let t=await a.getRemoteEntry({origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports,resourceContext:{initiator:"loadRemote",id:i.composeRemoteRequestId(this.remoteInfo.name,e),resourceType:"remoteEntry"}});return o.assert(t,`remoteEntryExports is undefined
|
|
5
|
-
${(0,l.safeToString)(this.remoteInfo)}`),this.remoteEntryExports=t,this.remoteEntryExports}async init(e,t,r,n){let i=await this.getEntry(n);if(this.inited)return await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:i,cached:!0,origin:this.host}),i;if(this.initPromise){try{await this.initPromise,await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:i,cached:!0,origin:this.host})}catch(r){throw await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:i,error:r,cached:!0,origin:this.host}),r}return i}this.initing=!0,this.initPromise=(async()=>{var n,a;let l,u;await this.host.loaderHook.lifecycle.beforeInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,origin:this.host});let{remoteEntryInitOptions:f,shareScope:d,initScope:h}=(n=this.remoteInfo,a=this.host.shareScopeMap,(l=Array.isArray(n.shareScope)?n.shareScope:[n.shareScope]).length||l.push("default"),l.forEach(e=>{a[e]||(a[e]={})}),Object.defineProperty(u={version:n.version||"",shareScopeKeys:Array.isArray(n.shareScope)?l:n.shareScope||"default"},"shareScopeMap",{value:a,enumerable:!1}),{remoteEntryInitOptions:u,shareScope:a[l[0]],initScope:r??[]}),p=await this.host.hooks.lifecycle.beforeInitContainer.emit({shareScope:d,remoteEntryInitOptions:f,initScope:h,remoteInfo:this.remoteInfo,origin:this.host});void 0===i?.init&&o.error(c.RUNTIME_002,c.runtimeDescMap,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName},void 0,s.optionsToMFContext(this.host.options));try{await i.init(p.shareScope,p.initScope,p.remoteEntryInitOptions)}catch(e){o.error(c.RUNTIME_015,c.runtimeDescMap,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName,shareScope:this.remoteInfo.shareScope},`${e}`,s.optionsToMFContext(this.host.options))}await this.host.hooks.lifecycle.initContainer.emit({...p,id:e,remoteSnapshot:t,remoteEntryExports:i}),this.inited=!0})();try{await this.initPromise,await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:i,origin:this.host})}catch(r){throw await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:i,error:r,origin:this.host}),r}finally{this.initing=!1,this.initPromise=void 0}return i}async get(e,t,r,i){let a,{loadFactory:l=!0}=r||{loadFactory:!0},u=await this.init(e,i,void 0,t);this.lib=u,await this.host.loaderHook.lifecycle.beforeGetExpose.emit({id:e,expose:t,moduleInfo:this.remoteInfo,remoteEntryExports:u,origin:this.host});try{let r=await this.host.loaderHook.lifecycle.getModuleFactory.emit({remoteEntryExports:u,expose:t,moduleInfo:this.remoteInfo});(a="function"==typeof r?r:void 0)||(a=await u.get(t)),a||o.error(c.RUNTIME_014,c.runtimeDescMap,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,expose:t,requestId:e,availableExposes:function(e){if(!e||!("modules"in e)||!Array.isArray(e.modules))return;let t=e.modules.map(e=>e.moduleName).filter(Boolean);return t.length?t.join(","):void 0}(i)},void 0,s.optionsToMFContext(this.host.options)),await this.host.loaderHook.lifecycle.afterGetExpose.emit({id:e,expose:t,moduleInfo:this.remoteInfo,remoteEntryExports:u,moduleFactory:a,origin:this.host})}catch(r){throw await this.host.loaderHook.lifecycle.afterGetExpose.emit({id:e,expose:t,moduleInfo:this.remoteInfo,remoteEntryExports:u,error:r,origin:this.host}),r}let f=n.processModuleAlias(this.remoteInfo.name,t),d=this.wraperFactory(a,f);if(!l)return d;await this.host.loaderHook.lifecycle.beforeExecuteFactory.emit({id:e,expose:t,moduleInfo:this.remoteInfo,loadFactory:l,origin:this.host});try{let r=await d();return await this.host.loaderHook.lifecycle.afterExecuteFactory.emit({id:e,expose:t,moduleInfo:this.remoteInfo,loadFactory:l,exposeModule:r,origin:this.host}),r}catch(r){throw await this.host.loaderHook.lifecycle.afterExecuteFactory.emit({id:e,expose:t,moduleInfo:this.remoteInfo,loadFactory:l,error:r,origin:this.host}),r}}wraperFactory(e,t){function r(e,t){e&&"object"==typeof e&&Object.isExtensible(e)&&!Object.getOwnPropertyDescriptor(e,Symbol.for("mf_module_id"))&&Object.defineProperty(e,Symbol.for("mf_module_id"),{value:t,enumerable:!1})}return()=>{let o=e();return o instanceof Promise?o.then(e=>(r(e,t),e)):(r(o,t),o)}}}},21647(e,t,r){let o=r(91557),n=r(11772),i=r(54928);r(98073);let a=r(6474),s=r(16751),l=r(36757),c=(e,t)=>document.querySelector(`${e}[${"link"===e?"href":"src"}="${t}"]`);t.generatePreloadAssetsPlugin=function(){return{name:"generate-preload-assets-plugin",async generatePreloadAssets(e){let{origin:t,preloadOptions:r,remoteInfo:u,remote:f,globalSnapshot:d,remoteSnapshot:h}=e;return l.isBrowserEnvValue?o.isRemoteInfoWithEntry(f)&&o.isPureRemoteEntry(f)?{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[{name:f.name,url:f.entry,moduleInfo:{name:u.name,entry:f.entry,type:u.type||"global",entryGlobalName:"",shareScope:""}}]}:(s.assignRemoteInfo(u,h),function(e,t,r,s,u){let f=[],d=[],h=[],p=new Set,m=new Set,{options:g}=e,{preloadConfig:y}=t,{depsRemote:E}=y;!function e(t,r,i,a,s={},c){let{value:u}=n.getInfoWithoutType(t,o.getFMId(r)),f=c||u;if(f&&!(0,l.isManifestProvider)(f)&&(i(f,r,a),f.remotesInfo))for(let r of Object.keys(f.remotesInfo)){if(s[r])continue;s[r]=!0;let o=function(e){let t=e.split(":");return 1===t.length?{name:t[0],version:void 0}:2===t.length?{name:t[0],version:t[1]}:{name:t[1],version:t[2]}}(r),n=f.remotesInfo[r];e(t,{name:o.name,version:n.matchedVersion},i,!1,s,void 0)}}(s,r,(t,r,i)=>{let s;if(i)s=y;else if(Array.isArray(E)){let e=E.find(e=>e.nameOrAlias===r.name||e.nameOrAlias===r.alias);if(!e)return;s=a.defaultPreloadArgs(e)}else{if(!0!==E)return;s=y}let c=(0,l.getResourceUrl)(t,o.getRemoteEntryInfoFromSnapshot(t).url);c&&h.push({name:r.name,moduleInfo:{name:r.name,entry:c,type:"remoteEntryType"in t?t.remoteEntryType:"global",entryGlobalName:"globalName"in t?t.globalName:r.name,shareScope:"",version:"version"in t?t.version:void 0},url:c});let u="modules"in t?t.modules:[],p=a.normalizePreloadExposes(s.exposes);function m(e){let r=e.map(e=>(0,l.getResourceUrl)(t,e));return s.filter?r.filter(s.filter):r}if(p.length&&"modules"in t&&(u=t?.modules?.reduce((e,t)=>(p?.indexOf(t.moduleName)!==-1&&e.push(t),e),[])),u){let o=u.length;for(let i=0;i<o;i++){let o=u[i],a=`${r.name}/${o.moduleName}`;e.remoteHandler.hooks.lifecycle.handlePreloadModule.emit({id:"."===o.moduleName?r.name:a,name:r.name,remoteSnapshot:t,preloadConfig:s,remote:r,origin:e}),n.getPreloaded(a)||("all"===s.resourceCategory?(f.push(...m(o.assets.css.async)),f.push(...m(o.assets.css.sync)),d.push(...m(o.assets.js.async)),d.push(...m(o.assets.js.sync))):"sync"===s.resourceCategory&&(f.push(...m(o.assets.css.sync)),d.push(...m(o.assets.js.sync))),n.setPreloaded(a))}}},!0,{},u),u.shared&&u.shared.length>0&&u.shared.forEach(t=>{let r=g.shared?.[t.sharedName];if(!r)return;let n=t.version?r.find(e=>e.version===t.version):r;n&&o.arrayOptions(n).forEach(r=>{((t,r)=>{let{shared:o}=i.getRegisteredShare(e.shareScopeMap,r.sharedName,t,e.sharedHandler.hooks.lifecycle.resolveShare)||{};o&&"function"==typeof o.lib&&(r.assets.js.sync.forEach(e=>{p.add(e)}),r.assets.css.sync.forEach(e=>{m.add(e)}))})(r,t)})});let b=d.filter(e=>!p.has(e)&&!c("script",e));return{cssAssets:f.filter(e=>!m.has(e)&&!c("link",e)),jsAssetsWithoutEntry:b,entryAssets:h.filter(e=>!c("script",e.url))}}(t,r,u,d,h)):{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[]}}}}},72651(e,t,r){let o=r(34647),n=r(91557),i=r(11772),a=r(77179),s=r(40660);r(98073);let l=r(99101),c=r(36434),u=r(82098);r(16128);let f=r(36757),d=r(69512);function h(e,t){let r=i.getGlobalSnapshotInfoByModuleInfo({name:t.name,version:t.options.version}),o=r&&"remotesInfo"in r&&r.remotesInfo&&i.getInfoWithoutType(r.remotesInfo,e.name).value;return o&&o.matchedVersion?{hostGlobalSnapshot:r,globalSnapshot:i.getGlobalSnapshot(),remoteSnapshot:i.getGlobalSnapshotInfoByModuleInfo({name:e.name,version:o.matchedVersion})}:{hostGlobalSnapshot:void 0,globalSnapshot:i.getGlobalSnapshot(),remoteSnapshot:i.getGlobalSnapshotInfoByModuleInfo({name:e.name,version:"version"in e?e.version:void 0})}}t.SnapshotHandler=class{constructor(e){this.loadingHostSnapshot=null,this.manifestCache=new Map,this.hooks=new u.PluginSystem({beforeLoadRemoteSnapshot:new l.AsyncHook("beforeLoadRemoteSnapshot"),loadSnapshot:new c.AsyncWaterfallHook("loadGlobalSnapshot"),loadRemoteSnapshot:new c.AsyncWaterfallHook("loadRemoteSnapshot"),afterLoadSnapshot:new c.AsyncWaterfallHook("afterLoadSnapshot")}),this.manifestLoading=i.Global.__FEDERATION__.__MANIFEST_LOADING__,this.HostInstance=e,this.loaderHook=e.loaderHook}async loadRemoteSnapshotInfo({moduleInfo:e,id:t,initiator:r="loadRemote"}){let a,l,{options:c}=this.HostInstance;await this.hooks.lifecycle.beforeLoadRemoteSnapshot.emit({options:c,moduleInfo:e,origin:this.HostInstance});let u=i.getGlobalSnapshotInfoByModuleInfo({name:this.HostInstance.options.name,version:this.HostInstance.options.version});u||(u={version:this.HostInstance.options.version||"",remoteEntry:"",remotesInfo:{}},i.addGlobalSnapshot({[this.HostInstance.options.name]:u})),u&&"remotesInfo"in u&&!i.getInfoWithoutType(u.remotesInfo,e.name).value&&("version"in e||"entry"in e)&&(u.remotesInfo={...u?.remotesInfo,[e.name]:{matchedVersion:"version"in e?e.version:e.entry}});let{hostGlobalSnapshot:h,remoteSnapshot:p,globalSnapshot:m}=this.getGlobalRemoteInfo(e),{remoteSnapshot:g,globalSnapshot:y}=await this.hooks.lifecycle.loadSnapshot.emit({options:c,moduleInfo:e,hostGlobalSnapshot:h,remoteSnapshot:p,globalSnapshot:m});if(g)if((0,f.isManifestProvider)(g)){let o=f.isBrowserEnvValue?g.remoteEntry:g.ssrRemoteEntry||g.remoteEntry||"",n=await this.loadManifestSnapshot(o,e,{},{initiator:r,id:t||e.name}),s=i.setGlobalSnapshotInfoByModuleInfo({...e,entry:o},n);a=n,l=s}else{let{remoteSnapshot:t}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:g,from:"global"});a=t,l=y}else if(n.isRemoteInfoWithEntry(e)){let o=await this.loadManifestSnapshot(e.entry,e,{},{initiator:r,id:t||e.name}),n=i.setGlobalSnapshotInfoByModuleInfo(e,o);a=o,l=n}else o.error(d.RUNTIME_007,d.runtimeDescMap,{remoteName:e.name,remoteVersion:e.version,hostName:this.HostInstance.options.name,globalSnapshot:JSON.stringify(y)},void 0,s.optionsToMFContext(this.HostInstance.options));return await this.hooks.lifecycle.afterLoadSnapshot.emit({id:t,host:this.HostInstance,options:c,moduleInfo:e,remoteSnapshot:a}),{remoteSnapshot:a,globalSnapshot:l}}getGlobalRemoteInfo(e){return h(e,this.HostInstance)}async getManifestJson(e,t,r,n){return(async()=>{let r=a.getRemoteInfo(t),i=this.manifestCache.get(e);if(i)return i;try{let t=await this.loaderHook.lifecycle.fetch.emit(e,{},r,n?{...n,url:e,resourceType:"manifest"}:void 0);t&&t instanceof Response||(t=await fetch(e,{})),i=await t.json()}catch(n){(i=await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:n,from:"runtime",lifecycle:"afterResolve",remote:r,origin:this.HostInstance}))||(delete this.manifestLoading[e],o.error(d.RUNTIME_003,d.runtimeDescMap,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name},`${n}`,s.optionsToMFContext(this.HostInstance.options)))}let l=[!i.metaData&&"metaData",!i.exposes&&"exposes",!i.shared&&"shared"].filter(Boolean);return l.length>0&&await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:Error(`"${e}" is not a valid federation manifest for remote "${t.name}". Missing required fields: ${l.join(", ")}.`),from:"runtime",lifecycle:"afterResolve",remote:r,origin:this.HostInstance}),l.length>0&&o.error(d.RUNTIME_013,d.runtimeDescMap,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name,missingFields:l.join(",")},void 0,s.optionsToMFContext(this.HostInstance.options)),this.manifestCache.set(e,i),i})()}async loadManifestSnapshot(e,t,r,o){let n=async()=>{let n=await this.getManifestJson(e,t,r,o),i=(0,f.generateSnapshotFromManifest)(n,{version:e}),{remoteSnapshot:a}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:t,manifestJson:n,remoteSnapshot:i,manifestUrl:e,from:"manifest"});return a};return this.manifestLoading[e]||(this.manifestLoading[e]=n().then(e=>e)),this.manifestLoading[e]}},t.getGlobalRemoteInfo=h},88981(e,t,r){let o=r(82098);r(16128),t.DisabledSnapshotHandler=class{constructor(){this.hooks=new o.PluginSystem({})}}},16751(e,t,r){let o=r(34647),n=r(91557),i=r(48316);r(98073);let a=r(6474),s=r(36757),l=r(69512);function c(e,t){let r=n.getRemoteEntryInfoFromSnapshot(t);r.url||o.error(l.RUNTIME_011,l.runtimeDescMap,{remoteName:e.name});let i=(0,s.getResourceUrl)(t,r.url);s.isBrowserEnvValue||i.startsWith("http")||(i=`https:${i}`),e.type=r.type,e.entryGlobalName=r.globalName,e.entry=i,e.version=t.version,e.buildVersion=t.buildVersion}t.assignRemoteInfo=c,t.snapshotPlugin=function(){return{name:"snapshot-plugin",async afterResolve(e){let{remote:t,pkgNameOrAlias:r,expose:o,origin:s,remoteInfo:l,id:u}=e;if(!n.isRemoteInfoWithEntry(t)||!n.isPureRemoteEntry(t)){let{remoteSnapshot:n,globalSnapshot:f}=await s.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:t,id:i.composeRemoteRequestId(t.name,o)});c(l,n);let d=await s.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin:s,preloadOptions:{remote:t,preloadConfig:{nameOrAlias:r,exposes:[o],resourceCategory:"sync",share:!1,depsRemote:!1}},remoteInfo:l,remote:t,remoteSnapshot:n,globalSnapshot:f});return d&&a.preloadAssets(l,s,d,!1,{initiator:"loadRemote",id:u}).catch(()=>void 0),{...e,remoteSnapshot:n}}return e}}}},35746(e,t,r){let o=r(82098);r(16128);let n="Remote loading is disabled by experiments.optimization.disableRemote.";t.DisabledRemoteHandler=class{constructor(){this.hooks=new o.PluginSystem({})}formatAndRegisterRemote(){return[]}loadRemote(){throw Error(n)}preloadRemote(){throw Error(n)}registerRemotes(){throw Error(n)}getRemoteModuleAndOptions(){throw Error(n)}initRawContainer(){throw Error(n)}},t.UnavailableRemoteModule=class{constructor(){throw Error(n)}}},91422(e,t,r){let o=r(34647),n=r(91557),i=r(11772),a=r(73897),s=r(54928),l=r(48316),c=r(77179),u=r(40660);r(98073);let f=r(6474),d=r(65904),h=r(23504),p=r(99101),m=r(14636),g=r(36434),y=r(82098);r(16128);let E=r(72651),b=r(36757),S=r(69512);t.RemoteHandler=class{constructor(e){this.hooks=new y.PluginSystem({beforeRegisterRemote:new m.SyncWaterfallHook("beforeRegisterRemote"),registerRemote:new m.SyncWaterfallHook("registerRemote"),beforeRequest:new g.AsyncWaterfallHook("beforeRequest"),afterMatchRemote:new p.AsyncHook("afterMatchRemote"),onLoad:new p.AsyncHook("onLoad"),afterLoadRemote:new p.AsyncHook("afterLoadRemote"),handlePreloadModule:new h.SyncHook("handlePreloadModule"),errorLoadRemote:new p.AsyncHook("errorLoadRemote"),beforePreloadRemote:new p.AsyncHook("beforePreloadRemote"),generatePreloadAssets:new p.AsyncHook("generatePreloadAssets"),afterPreloadRemote:new p.AsyncHook("afterPreloadRemote"),loadEntry:new p.AsyncHook}),this.host=e,this.idToRemoteMap={}}formatAndRegisterRemote(e,t){return(t.remotes||[]).reduce((e,t)=>(this.registerRemote(t,e,{force:!1}),e),e.remotes)}setIdToRemoteMap(e,t){let{remote:r,expose:o}=t,{name:n,alias:i}=r;if(this.idToRemoteMap[e]={name:r.name,expose:o},i&&e.startsWith(n)){let t=e.replace(n,i);this.idToRemoteMap[t]={name:r.name,expose:o};return}if(i&&e.startsWith(i)){let t=e.replace(i,n);this.idToRemoteMap[t]={name:r.name,expose:o}}}async loadRemote(e,t){let r,{host:o}=this,n=l.matchRemoteWithNameAndExpose(o.options.remotes,e),i=e,a=n?.expose,s=n?c.getRemoteInfo(n.remote):void 0;try{let{loadFactory:n=!0}=t||{loadFactory:!0},{module:l,moduleOptions:u,remoteMatchInfo:f}=await this.getRemoteModuleAndOptions({id:e}),{pkgNameOrAlias:d,remote:h,expose:p,id:m,remoteSnapshot:g}=f;i=m,a=p,s=c.getRemoteInfo(h);let y=await l.get(m,p,t,g),E=await this.hooks.lifecycle.onLoad.emit({id:m,pkgNameOrAlias:d,expose:p,exposeModule:n?y:void 0,exposeModuleFactory:n?void 0:y,remote:h,options:u,moduleInstance:l,origin:o});if(this.setIdToRemoteMap(e,f),r={id:i,expose:a,remote:s,options:t,origin:o},"function"==typeof E)return E;return y}catch(c){let n,{from:l="runtime"}=t||{from:"runtime"};try{n=await this.hooks.lifecycle.errorLoadRemote.emit({id:e,error:c,from:l,lifecycle:"onLoad",expose:a,remote:s,origin:o})}catch(e){throw r={id:i,expose:a,remote:s,options:t,error:e,origin:o},e}if(!n)throw r={id:i,expose:a,remote:s,options:t,error:c,origin:o},c;return r={id:i,expose:a,remote:s,options:t,error:c,origin:o,recovered:!0},n}finally{r&&await this.hooks.lifecycle.afterLoadRemote.emit(r)}}async preloadRemote(e){let t,{host:r}=this,o=[];await this.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:e,options:r.options,origin:r});let n=f.formatPreloadArgs(r.options.remotes,e);await Promise.all(n.flatMap(e=>{let{preloadConfig:t,remote:r}=e,o=t.exposes||[];return o.length?o.map(o=>({ops:{...e,preloadConfig:{...t,exposes:[o]}},id:l.composeRemoteRequestId(r.name,o)})):[{ops:e,id:`${r.name}/*`}]}).map(async e=>{let{ops:t,id:n}=e,{remote:i,preloadConfig:a}=t,s=c.getRemoteInfo(i);try{let{globalSnapshot:e,remoteSnapshot:l}=await r.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:i,id:n,initiator:"preloadRemote"}),c=await this.hooks.lifecycle.generatePreloadAssets.emit({origin:r,preloadOptions:t,remote:i,remoteInfo:s,globalSnapshot:e,remoteSnapshot:l});if(!c)return;let u=await f.preloadAssets(s,r,c,!0,{initiator:"preloadRemote",id:n});o.push({remote:i,remoteInfo:s,preloadConfig:a,id:n,results:u})}catch(e){o.push({remote:i,remoteInfo:s,preloadConfig:a,id:n,results:[{url:s.entry,status:"error",resourceType:/\.json(?:$|[?#])/i.test(s.entry)?"manifest":"remoteEntry",initiator:"preloadRemote",id:n,error:e}]})}}));let i=o.flatMap(e=>e.results.filter(e=>"error"===e.status||"timeout"===e.status));if(i.length>0&&Object.assign(t=Error(`preloadRemote failed to load ${i.length} resource(s).`),{results:o,failedResults:i}),await this.hooks.lifecycle.afterPreloadRemote.emit({preloadOps:e,options:r.options,origin:r,results:o,error:t}),t)throw t}registerRemotes(e,t){let{host:r}=this;e.forEach(e=>{this.registerRemote(e,r.options.remotes,{force:t?.force})})}initRawContainer(e,t,r){let{host:o}=this,n=new d.Module({host:o,remoteInfo:c.getRemoteInfo({name:e,entry:t})});return n.remoteEntryExports=r,o.moduleCache.set(e,n),n}async getRemoteModuleAndOptions(e){let t,{host:r}=this,{id:n}=e;try{t=await this.hooks.lifecycle.beforeRequest.emit({id:n,options:r.options,origin:r})}catch(e){if(!(t=await this.hooks.lifecycle.errorLoadRemote.emit({id:n,options:r.options,origin:r,from:"runtime",error:e,lifecycle:"beforeRequest"})))throw e}let{id:i}=t,a=l.matchRemoteWithNameAndExpose(r.options.remotes,i);if(!a)try{o.error(S.RUNTIME_004,S.runtimeDescMap,{hostName:r.options.name,requestId:i},void 0,u.optionsToMFContext(r.options))}catch(e){throw await this.hooks.lifecycle.afterMatchRemote.emit({id:i,options:r.options,error:e,origin:r}),e}let{remote:s}=a,f=c.getRemoteInfo(s);await this.hooks.lifecycle.afterMatchRemote.emit({id:i,...a,options:r.options,remoteInfo:f,origin:r});let h=await r.sharedHandler.hooks.lifecycle.afterResolve.emit({id:i,...a,options:r.options,origin:r,remoteInfo:f}),{remote:p,expose:m}=h;o.assert(p&&m,`The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ${i}.`);let g=r.moduleCache.get(p.name),y={host:r,remoteInfo:f};return g||(g=new d.Module(y),r.moduleCache.set(p.name,g)),{module:g,moduleOptions:y,remoteMatchInfo:h}}registerRemote(e,t,r){let{host:n}=this,i=()=>{if(e.alias){let r=t.find(t=>e.alias&&(t.name.startsWith(e.alias)||t.alias?.startsWith(e.alias)));o.assert(!r,`The alias ${e.alias} of remote ${e.name} is not allowed to be the prefix of ${r&&r.name} name or alias`)}"entry"in e&&b.isBrowserEnvValue&&"u">typeof window&&!e.entry.startsWith("http")&&(e.entry=new URL(e.entry,window.location.origin).href),e.shareScope||(e.shareScope=a.DEFAULT_SCOPE),e.type||(e.type=a.DEFAULT_REMOTE_TYPE)};this.hooks.lifecycle.beforeRegisterRemote.emit({remote:e,origin:n});let s=t.find(t=>t.name===e.name);if(s){let o=[`The remote "${e.name}" is already registered.`,"Please note that overriding it may cause unexpected errors."];r?.force&&(this.removeRemote(s),i(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:n}),(0,b.warn)(o.join(" ")))}else i(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:n})}removeRemote(e){try{let{host:t}=this,{name:r}=e,o=t.options.remotes.findIndex(e=>e.name===r);-1!==o&&t.options.remotes.splice(o,1);let a=i.getInfoWithoutType(i.CurrentGlobal.__FEDERATION__.moduleInfo,n.getFMId(e)).key;delete i.CurrentGlobal.__FEDERATION__.moduleInfo[a],"entry"in e&&(t.snapshotHandler.manifestCache.delete(e.entry),delete i.Global.__FEDERATION__.__MANIFEST_LOADING__[e.entry]);let{hostGlobalSnapshot:l}=E.getGlobalRemoteInfo(e,t);if(l){let t=l&&"remotesInfo"in l&&l.remotesInfo&&i.getInfoWithoutType(l.remotesInfo,e.name).key;t&&delete l.remotesInfo[t]}let u=t.moduleCache.get(e.name);if(u){let r=u.remoteInfo,o=r.entryGlobalName;i.CurrentGlobal[o]&&(Object.getOwnPropertyDescriptor(i.CurrentGlobal,o)?.configurable?delete i.CurrentGlobal[o]:i.CurrentGlobal[o]=void 0);let n=c.getRemoteEntryUniqueKey(u.remoteInfo);i.globalLoading[n]&&delete i.globalLoading[n];let a=r.buildVersion?(0,b.composeKeyWithSeparator)(r.name,r.buildVersion):r.name,l=i.CurrentGlobal.__FEDERATION__.__INSTANCES__.findIndex(e=>r.buildVersion?e.options.id===a:e.name===a);if(-1!==l){let e=i.CurrentGlobal.__FEDERATION__.__INSTANCES__[l];a=e.options.id||a;let t=s.getGlobalShareScope(),o=!0,n=[];Object.keys(t).forEach(e=>{let i=t[e];i&&Object.keys(i).forEach(t=>{let a=i[t];a&&Object.keys(a).forEach(i=>{let s=a[i];s&&Object.keys(s).forEach(a=>{let l=s[a];l&&"object"==typeof l&&l.from===r.name&&(l.loaded||l.loading?(l.useIn=l.useIn.filter(e=>e!==r.name),l.useIn.length?o=!1:n.push([e,t,i,a])):n.push([e,t,i,a]))})})})}),o&&(e.shareScopeMap={},delete t[a]),n.forEach(([e,r,o,n])=>{delete t[e]?.[r]?.[o]?.[n]}),i.CurrentGlobal.__FEDERATION__.__INSTANCES__.splice(l,1)}t.moduleCache.delete(e.name)}}catch(e){o.logger.error(`removeRemote failed: ${e instanceof Error?e.message:String(e)}`)}}}},36937(e,t,r){let o=r(36434),n=r(82098);r(16128),t.DisabledSharedHandler=class{constructor(){this.shareScopeMap={},this.hooks=new n.PluginSystem({afterResolve:new o.AsyncWaterfallHook("afterResolve")})}registerShared(){return{newShareInfos:{},allShareInfos:{}}}loadShare(){throw Error("Shared dependency loading is disabled by experiments.optimization.disableShared.")}loadShareSync(){throw Error("Shared dependency loading is disabled by experiments.optimization.disableShared.")}initializeSharing(){return[]}initShareScopeMap(e,t){this.shareScopeMap[e]=t}}},90211(e,t,r){let o=r(34647),n=r(73897),i=r(54928),a=r(40660);r(98073);let s=r(23504),l=r(99101),c=r(14636),u=r(36434),f=r(82098);r(16128);let d=r(69512);t.SharedHandler=class{constructor(e){this.hooks=new f.PluginSystem({beforeRegisterShare:new c.SyncWaterfallHook("beforeRegisterShare"),afterResolve:new u.AsyncWaterfallHook("afterResolve"),beforeLoadShare:new u.AsyncWaterfallHook("beforeLoadShare"),loadShare:new l.AsyncHook,afterLoadShare:new s.SyncHook("afterLoadShare"),errorLoadShare:new s.SyncHook("errorLoadShare"),resolveShare:new c.SyncWaterfallHook("resolveShare"),initContainerShareScopeMap:new c.SyncWaterfallHook("initContainerShareScopeMap")}),this.host=e,this.shareScopeMap={},this.initTokens={},this._setGlobalShareScopeMap(e.options)}emitAfterLoadShare({lifecycle:e,pkgName:t,shareInfo:r,selectedShared:n}){try{this.hooks.lifecycle.afterLoadShare.emit({pkgName:t,shareInfo:r,selectedShared:n,shared:this.host.options.shared,shareScopeMap:this.shareScopeMap,lifecycle:e,origin:this.host})}catch(e){o.warn(e)}}emitErrorLoadShare({lifecycle:e,pkgName:t,shareInfo:r,error:n,recovered:i}){try{this.hooks.lifecycle.errorLoadShare.emit({pkgName:t,shareInfo:r,shared:this.host.options.shared,shareScopeMap:this.shareScopeMap,lifecycle:e,origin:this.host,error:n,recovered:i})}catch(e){o.warn(e)}}registerShared(e,t){let{newShareInfos:r,allShareInfos:o}=i.formatShareConfigs(e,t);return Object.keys(r).forEach(e=>{r[e].forEach(r=>{r.scope.forEach(o=>{this.hooks.lifecycle.beforeRegisterShare.emit({origin:this.host,pkgName:e,shared:r}),this.shareScopeMap[o]?.[e]||this.setShared({pkgName:e,lib:r.lib,get:r.get,loaded:r.loaded||!!r.lib,shared:r,from:t.name})})})}),{newShareInfos:r,allShareInfos:o}}async loadShare(e,t){let{host:r}=this,n=i.getTargetSharedOptions({pkgName:e,extraOptions:t,shareInfos:r.options.shared}),a=n;try{n?.scope&&await Promise.all(n.scope.map(async e=>{await Promise.all(this.initializeSharing(e,{strategy:n.strategy}))})),a=(await this.hooks.lifecycle.beforeLoadShare.emit({pkgName:e,shareInfo:n,shared:r.options.shared,origin:r})).shareInfo,o.assert(a,`Cannot find shared "${e}" in host "${r.options.name}". Ensure the shared config for "${e}" is declared in the federation plugin options and the host has been initialized before loading shares.`);let s=a,{shared:l,useTreesShaking:c}=i.getRegisteredShare(this.shareScopeMap,e,a,this.hooks.lifecycle.resolveShare)||{};if(l){let t=i.directShare(l,c);if(t.lib)return i.addUseIn(t,r.options.name),this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:s,selectedShared:l}),t.lib;if(t.loading&&!t.loaded){let o=await t.loading;return t.loaded=!0,t.lib||(t.lib=o),i.addUseIn(t,r.options.name),this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:s,selectedShared:l}),o}{let o=(async()=>{let e=await t.get();return i.addUseIn(t,r.options.name),t.loaded=!0,t.lib=e,e})();this.setShared({pkgName:e,loaded:!1,shared:l,from:r.options.name,lib:null,loading:o,treeShaking:c?t:void 0});let n=await o;return this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:s,selectedShared:l}),n}}{if(t?.customShareInfo)return this.emitErrorLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:s,recovered:!0}),!1;let o=i.shouldUseTreeShaking(s.treeShaking),n=i.directShare(s,o),a=(async()=>{let t=await n.get();n.lib=t,n.loaded=!0,i.addUseIn(n,r.options.name);let{shared:o,useTreesShaking:a}=i.getRegisteredShare(this.shareScopeMap,e,s,this.hooks.lifecycle.resolveShare)||{};if(o){let e=i.directShare(o,a);e.lib=t,e.loaded=!0,o.from=s.from}return t})();this.setShared({pkgName:e,loaded:!1,shared:s,from:r.options.name,lib:null,loading:a,treeShaking:o?n:void 0});let l=await a;return this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:s,selectedShared:s}),l}}catch(t){throw this.emitErrorLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:a,error:t}),t}}initializeSharing(e=n.DEFAULT_SCOPE,t){let{host:r}=this,o=t?.from,a=t?.strategy,s=t?.initScope,l=[];if("build"!==o){let{initTokens:t}=this;s||(s=[]);let r=t[e];if(r||(r=t[e]={from:this.host.name}),s.indexOf(r)>=0)return l;s.push(r)}let c=this.shareScopeMap,u=r.options.name;c[e]||(c[e]={});let f=c[e],d=async e=>{let t,{module:o}=await r.remoteHandler.getRemoteModuleAndOptions({id:e});try{t=await o.getEntry()}catch(n){if(!(t=await r.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:n,from:"runtime",lifecycle:"beforeLoadShare",remote:o.remoteInfo,origin:r})))return}finally{t?.init&&!o.initing&&(o.remoteEntryExports=t,await o.init(void 0,void 0,s))}};return Object.keys(r.options.shared).forEach(t=>{r.options.shared[t].forEach(r=>{r.scope.includes(e)&&((e,t)=>{let{version:r,eager:o}=t;f[e]=f[e]||{};let n=f[e],a=n[r]&&i.directShare(n[r]),s=!!(a&&("eager"in a&&a.eager||"shareConfig"in a&&a.shareConfig?.eager));(!a||"loaded-first"!==a.strategy&&!a.loaded&&(!o!=!s?o:u>n[r].from))&&(n[r]=t)})(t,r)})}),("version-first"===r.options.shareStrategy||"version-first"===a)&&r.options.remotes.forEach(t=>{t.shareScope===e&&l.push(d(t.name))}),l}loadShareSync(e,t){let{host:r}=this,n=i.getTargetSharedOptions({pkgName:e,extraOptions:t,shareInfos:r.options.shared});try{n?.scope&&n.scope.forEach(e=>{this.initializeSharing(e,{strategy:n.strategy})});let{shared:s}=i.getRegisteredShare(this.shareScopeMap,e,n,this.hooks.lifecycle.resolveShare)||{};if(s){if("function"==typeof s.lib)return i.addUseIn(s,r.options.name),s.loaded||(s.loaded=!0,s.from===r.options.name&&(n.loaded=!0)),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:n,selectedShared:s}),s.lib;if("function"==typeof s.get){let t=s.get();if(!(t instanceof Promise))return i.addUseIn(s,r.options.name),this.setShared({pkgName:e,loaded:!0,from:r.options.name,lib:t,shared:s}),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:n,selectedShared:s}),t}}if(n.lib)return n.loaded||(n.loaded=!0),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:n,selectedShared:n}),n.lib;if(n.get){let i=n.get();return i instanceof Promise&&o.error(t?.from==="build"?d.RUNTIME_005:d.RUNTIME_006,d.runtimeDescMap,{hostName:r.options.name,sharedPkgName:e},void 0,a.optionsToMFContext(r.options)),n.lib=i,this.setShared({pkgName:e,loaded:!0,from:r.options.name,lib:n.lib,shared:n}),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:n,selectedShared:n}),n.lib}o.error(d.RUNTIME_006,d.runtimeDescMap,{hostName:r.options.name,sharedPkgName:e},void 0,a.optionsToMFContext(r.options))}catch(t){throw this.emitErrorLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:n,error:t}),t}}initShareScopeMap(e,t,r={}){let{host:o}=this;this.shareScopeMap[e]=t,this.hooks.lifecycle.initContainerShareScopeMap.emit({shareScope:t,options:o.options,origin:o,scopeName:e,hostShareScopeMap:r.hostShareScopeMap})}setShared({pkgName:e,shared:t,from:r,lib:o,loading:n,loaded:i,get:a,treeShaking:s}){let{version:l,scope:c="default",...u}=t;(Array.isArray(c)?c:[c]).forEach(t=>{let c,f;this.shareScopeMap[t]||(this.shareScopeMap[t]={}),this.shareScopeMap[t][e]||(this.shareScopeMap[t][e]={}),this.shareScopeMap[t][e][l]||(this.shareScopeMap[t][e][l]={version:l,scope:[t],...u,lib:o});let d=this.shareScopeMap[t][e][l];(c=(e,t,r)=>{r&&!e[t]&&(e[t]=r)})(f=s?d.treeShaking:d,"loaded",i),c(f,"loading",n),c(f,"get",a),r&&d.from!==r&&(d.from=r)})}_setGlobalShareScopeMap(e){let t=i.getGlobalShareScope(),r=e.id||e.name;r&&!t[r]&&(t[r]=this.shareScopeMap)}}},2924(e,t,r){var o=r(2219).__exportAll({});Object.defineProperty(t,"type_exports",{enumerable:!0,get:function(){return o}})},40660(e,t){function r(e){return{name:e.name,alias:e.alias,entry:"entry"in e?e.entry:void 0,version:"version"in e?e.version:void 0,type:e.type,entryGlobalName:e.entryGlobalName,shareScope:e.shareScope}}t.optionsToMFContext=function(e){let t={};for(let[r,o]of Object.entries(e.shared)){let e=o[0];e&&(t[r]={version:e.version,singleton:e.shareConfig?.singleton,requiredVersion:e.shareConfig?.requiredVersion!==!1&&e.shareConfig?.requiredVersion,eager:e.eager,strictVersion:e.shareConfig?.strictVersion})}return{project:{name:e.name,mfRole:e.remotes?.length>0?"host":"unknown"},mfConfig:{name:e.name,remotes:e.remotes?.map(r)??[],shared:t}}}},75612(e,t,r){r(36757),t.getBuilderId=function(){return"@openmrs/esm-app-shell:10.0.1-pre.5522"}},99101(e,t,r){let o=r(23504);t.AsyncHook=class extends o.SyncHook{emit(...e){let t,r=Array.from(this.listeners);if(r.length>0){let o=0,n=t=>!1!==t&&(o<r.length?Promise.resolve(r[o++].apply(null,e)).then(r=>void 0===r||1===e.length&&r===e[0]?n(t):n(r)):t);t=n()}return Promise.resolve(t)}}},36434(e,t,r){let o=r(34647),n=r(91557),i=r(23504),a=r(14636);t.AsyncWaterfallHook=class extends i.SyncHook{constructor(e){super(),this.onerror=o.error,this.type=e}emit(e){n.isObject(e)||o.error(`The response data for the "${this.type}" hook must be an object.`);let t=Array.from(this.listeners);if(t.length>0){let r=0,n=t=>(o.warn(t),this.onerror(t),e),i=o=>{if(void 0!==o&&a.checkReturnData(e,o))e=o;else if(void 0!==o)return this.onerror(`A plugin returned an incorrect value for the "${this.type}" type.`),e;if(r<t.length)try{return Promise.resolve(t[r++](e)).then(i,n)}catch(e){return n(e)}return e};return Promise.resolve(i(e))}return Promise.resolve(e)}}},16128(e,t,r){r(23504),r(99101),r(14636),r(36434),r(82098)},82098(e,t,r){let o=r(34647),n=r(91557);r(98073),t.PluginSystem=class{constructor(e){this.registerPlugins={},this.lifecycle=e,this.lifecycleKeys=Object.keys(e)}applyPlugin(e,t){o.assert(n.isPlainObject(e),"Plugin configuration is invalid.");let r=e.name;o.assert(r,"A name must be provided by the plugin."),this.registerPlugins[r]||(this.registerPlugins[r]=e,e.apply?.(t),Object.keys(this.lifecycle).forEach(t=>{let r=e[t];r&&this.lifecycle[t].on(r)}))}removePlugin(e){o.assert(e,"A name is required.");let t=this.registerPlugins[e];o.assert(t,`The plugin "${e}" is not registered.`),Object.keys(t).forEach(e=>{"name"!==e&&this.lifecycle[e].remove(t[e])})}}},23504(e,t){t.SyncHook=class{constructor(e){this.type="",this.listeners=new Set,e&&(this.type=e)}on(e){"function"==typeof e&&this.listeners.add(e)}once(e){let t=this;this.on(function r(...o){return t.remove(r),e.apply(null,o)})}emit(...e){let t;return this.listeners.size>0&&this.listeners.forEach(r=>{let o=r(...e);void 0!==o&&(t=o)}),t}remove(e){this.listeners.delete(e)}removeAll(){this.listeners.clear()}}},14636(e,t,r){let o=r(34647),n=r(91557),i=r(23504);function a(e,t){if(!n.isObject(t))return!1;if(e!==t){for(let r in e)if(!(r in t))return!1}return!0}t.SyncWaterfallHook=class extends i.SyncHook{constructor(e){super(),this.onerror=o.error,this.type=e}emit(e){for(let t of(n.isObject(e)||o.error(`The data for the "${this.type}" hook should be an object.`),this.listeners))try{let r=t(e);if(void 0===r)continue;if(a(e,r))e=r;else{this.onerror(`A plugin returned an unacceptable value for the "${this.type}" type.`);break}}catch(e){o.warn(e),this.onerror(e)}return e}},t.checkReturnData=a},98073(e,t,r){r(34647),r(91557),r(75612),r(48316),r(23038),r(77179),r(40660),r(36757)},77179(e,t,r){let o=r(34647),n=r(11772),i=r(73897),a=r(36757),s=r(69512),l=".then(callbacks[0]).catch(callbacks[1])";function c(e){return"esm"===e||"module"===e}async function u({entry:e,remoteEntryExports:t}){return new Promise((r,n)=>{try{t?r(t):"u">typeof FEDERATION_ALLOW_NEW_FUNCTION?Function("callbacks",`import("${e}")${l}`)([r,n]):import(e).then(r).catch(n)}catch(t){o.error(`Failed to load ESM entry from "${e}". ${t instanceof Error?t.message:String(t)}`)}})}async function f({entry:e,remoteEntryExports:t}){return new Promise((r,n)=>{try{t?r(t):Function("callbacks",`System.import("${e}")${l}`)([r,n])}catch(t){o.error(`Failed to load SystemJS entry from "${e}". ${t instanceof Error?t.message:String(t)}`)}})}async function d({name:e,globalName:t,entry:r,remoteInfo:i,loaderHook:l,getEntryUrl:c,resourceContext:u}){let{entryExports:f}=n.getRemoteEntryExports(e,t);if(f)return f;let h=c?c(r):r;return(0,a.loadScript)(h,{attrs:{},createScriptHook:(e,t)=>{let r=l.lifecycle.createScript.emit({url:e,attrs:t,remoteInfo:i,resourceContext:u?{...u,url:e}:void 0});if(r&&(r instanceof HTMLScriptElement||"script"in r||"timeout"in r))return r}}).then(()=>(function(e,t,r){let{remoteEntryKey:i,entryExports:a}=n.getRemoteEntryExports(e,t);return a||o.error(s.RUNTIME_001,s.runtimeDescMap,{remoteName:e,remoteEntryUrl:r,remoteEntryKey:i}),a})(e,t,r),t=>{let r=t instanceof Error?t.message:String(t);o.error(s.RUNTIME_008,s.runtimeDescMap,{remoteName:e,resourceUrl:h},r)})}async function h({remoteInfo:e,remoteEntryExports:t,loaderHook:r,getEntryUrl:o,resourceContext:n}){let{entry:i,entryGlobalName:a,name:s,type:l}=e;return c(l)?u({entry:i,remoteEntryExports:t}):"system"===l?f({entry:i,remoteEntryExports:t}):d({entry:i,globalName:a,name:s,remoteInfo:e,loaderHook:r,getEntryUrl:o,resourceContext:n})}function p(e){let{entry:t,name:r}=e;return(0,a.composeKeyWithSeparator)(r,t)}async function m(e){let{origin:t,remoteEntryExports:r,remoteInfo:o,getEntryUrl:i,resourceContext:a,_inErrorHandling:l=!1}=e,c=p(o);if(r)return r;if(!n.globalLoading[c]){let e=t.remoteHandler.hooks.lifecycle.loadEntry,u=t.loaderHook;n.globalLoading[c]=e.emit({origin:t,loaderHook:u,remoteInfo:o,remoteEntryExports:r}).then(e=>e||h({remoteInfo:o,remoteEntryExports:r,loaderHook:u,getEntryUrl:i,resourceContext:a})).then(async e=>(await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:o,remoteEntryExports:e}),e)).catch(async e=>{let i=p(o),a=e instanceof Error&&e.message.includes("ScriptExecutionError");if(e instanceof Error&&e.message.includes(s.RUNTIME_008)&&!a&&!l){let e=await t.loaderHook.lifecycle.loadEntryError.emit({getRemoteEntry:e=>m({...e,_inErrorHandling:!0}),origin:t,remoteInfo:o,remoteEntryExports:r,globalLoading:n.globalLoading,uniqueKey:i});if(e)return await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:o,remoteEntryExports:e,recovered:!0}),e}throw await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:o,error:e}),e})}return n.globalLoading[c]}t.getRemoteEntry=m,t.getRemoteEntryUniqueKey=p,t.getRemoteInfo=function(e){return{...e,entry:"entry"in e?e.entry:"",type:e.type||i.DEFAULT_REMOTE_TYPE,entryGlobalName:e.entryGlobalName||e.name,shareScope:e.shareScope||i.DEFAULT_SCOPE}},t.isEsmRemoteType=c},34647(e,t,r){let o=r(36757),n=r(52900),i="[ Federation Runtime ]",a=(0,o.createLogger)(i);function s(e,t,r,o,a){if(void 0!==t)return(0,n.logAndReport)(e,t,r??{},e=>{throw Error(`${i}: ${e}`)},o,a);if(e instanceof Error)throw e.message.startsWith(i)||(e.message=`${i}: ${e.message}`),e;throw Error(`${i}: ${e}`)}t.assert=function(e,t,r,o,n){e||(void 0!==r?s(t,r,o,void 0,n):s(t))},t.error=s,t.logger=a,t.warn=function(e){e instanceof Error&&(e.message.startsWith(i)||(e.message=`${i}: ${e.message}`)),a.warn(e)}},48316(e,t){t.composeRemoteRequestId=function(e,t){return t&&"."!==t?`${e}/${t.replace(/^\.\//,"")}`:e},t.matchRemote=function(e,t){for(let r of e)if(t===r.name||r.alias&&t===r.alias)return r},t.matchRemoteWithNameAndExpose=function(e,t){for(let r of e){let e=t.startsWith(r.name),o=t.replace(r.name,"");if(e){if(o.startsWith("/"))return{pkgNameOrAlias:r.name,expose:o=`.${o}`,remote:r};else if(""===o)return{pkgNameOrAlias:r.name,expose:".",remote:r}}let n=r.alias&&t.startsWith(r.alias),i=r.alias&&t.replace(r.alias,"");if(r.alias&&n){if(i&&i.startsWith("/"))return{pkgNameOrAlias:r.alias,expose:i=`.${i}`,remote:r};else if(""===i)return{pkgNameOrAlias:r.alias,expose:".",remote:r}}}}},23038(e,t,r){let o=r(11772);t.registerPlugins=function(e,t){let r=o.getGlobalHostPlugins(),n=[t.hooks,t.remoteHandler.hooks,t.sharedHandler.hooks,t.snapshotHandler.hooks,t.loaderHook,t.bridgeHook];return r.length>0&&r.forEach(t=>{e?.find(e=>e.name!==t.name)&&e.push(t)}),e&&e.length>0&&e.forEach(e=>{n.forEach(r=>{r.applyPlugin(e,t)})}),e}},6474(e,t,r){let o=r(34647),n=r(48316),i=r(77179),a=r(36757);function s(e){return{resourceCategory:"sync",share:!0,depsRemote:!0,...e}}function l(e){return e instanceof Error&&(e.message.includes("timed out")||e.name.includes("Timeout"))}function c(e,t,r,o){return{url:t,status:r,resourceType:e.resourceType,initiator:e.initiator,id:e.id,error:o}}async function u(e,t,r,o){let n=e.moduleCache.get(r.name),a=r.entry;if(n?.remoteEntryExports)return c(o,a,"cached");try{if(!await i.getRemoteEntry({origin:e,remoteInfo:r,remoteEntryExports:n?.remoteEntryExports,resourceContext:{...o,url:a}}))throw Error(`Failed to load remoteEntry "${a}".`);return c(o,a,"success")}catch(e){return c(o,a,l(e)?"timeout":"error",e)}}function f({host:e,remoteInfo:t,url:r,attrs:o,context:n,needDeleteLink:i}){return new Promise(s=>{let{link:u,needAttach:f}=(0,a.createLink)({url:r,cb:()=>{s(c(n,r,f?"success":"cached"))},onErrorCallback:e=>{s(c(n,r,l(e)?"timeout":"error",e))},attrs:o,createLinkHook:(r,o)=>{let i=e.loaderHook.lifecycle.createLink.emit({url:r,attrs:o,remoteInfo:t,resourceContext:{...n,url:r}});return i instanceof HTMLLinkElement,i},needDeleteLink:i});f&&document.head.appendChild(u)})}function d({host:e,remoteInfo:t,url:r,attrs:o,context:n}){return new Promise(i=>{let{script:s,needAttach:u}=(0,a.createScript)({url:r,cb:()=>{i(c(n,r,u?"success":"cached"))},onErrorCallback:e=>{i(c(n,r,l(e)?"timeout":"error",e))},attrs:o,createScriptHook:(r,o)=>{let i=e.loaderHook.lifecycle.createScript.emit({url:r,attrs:o,remoteInfo:t,resourceContext:{...n,url:r}});return i instanceof HTMLScriptElement,i},needDeleteScript:!0});u&&document.head.appendChild(s)})}function h(e,t){return{...e,resourceType:t}}t.defaultPreloadArgs=s,t.formatPreloadArgs=function(e,t){return t.map(t=>{let r=n.matchRemote(e,t.nameOrAlias);return o.assert(r,`Unable to preload ${t.nameOrAlias} as it is not included in ${!r&&(0,a.safeToString)({remoteInfo:r,remotes:e})}`),{remote:r,preloadConfig:s(t)}})},t.normalizePreloadExposes=function(e){return e?e.map(e=>"."===e?e:e.startsWith("./")?e.replace("./",""):e):[]},t.preloadAssets=function(e,t,r,o=!0,n={initiator:"preloadRemote",id:e.name}){let{cssAssets:a,jsAssetsWithoutEntry:s,entryAssets:l}=r,c=[];if(t.options.inBrowser){if(l.forEach(r=>{let{moduleInfo:o}=r;c.push(u(t,e,o,h(n,"remoteEntry")))}),o){let r={rel:"preload",as:"style"};a.forEach(o=>{c.push(f({host:t,remoteInfo:e,url:o,attrs:r,context:h(n,"css")}))})}else{let r={rel:"stylesheet",type:"text/css"};a.forEach(o=>{c.push(f({host:t,remoteInfo:e,url:o,attrs:r,needDeleteLink:!1,context:h(n,"css")}))})}let r=d,p={fetchpriority:"high",type:"text/javascript"};o?(r=f,p={rel:"preload",as:"script"}):i.isEsmRemoteType(e.type)&&(r=f,p={rel:"modulepreload",fetchpriority:"high"}),s.forEach(o=>{c.push(r({host:t,remoteInfo:e,url:o,attrs:p,context:h(n,"js")}))})}return Promise.all(c)}},35679(e,t){function r(e,t){return(e=Number(e)||e)>(t=Number(t)||t)?1:e===t?0:-1}function o(e,t){return r(e.major,t.major)||r(e.minor,t.minor)||r(e.patch,t.patch)||function(e,t){let{preRelease:o}=e,{preRelease:n}=t;if(void 0===o&&n)return 1;if(o&&void 0===n)return -1;if(void 0===o&&void 0===n)return 0;for(let e=0,t=o.length;e<=t;e++){let t=o[e],i=n[e];if(t!==i){if(void 0===t&&void 0===i)return 0;if(!t)return 1;if(!i)return -1;return r(t,i)}}return 0}(e,t)}function n(e,t){return e.version===t.version}t.compare=function(e,t){switch(e.operator){case"":case"=":return n(e,t);case">":return 0>o(e,t);case">=":return n(e,t)||0>o(e,t);case"<":return o(e,t)>0;case"<=":return n(e,t)||o(e,t)>0;case void 0:return!0;default:return!1}}},1541(e,t){let r="[0-9A-Za-z-]+",o=`(?:\\+(${r}(?:\\.${r})*))`,n="0|[1-9]\\d*",i="[0-9]+",a="\\d*[a-zA-Z-][a-zA-Z0-9-]*",s=`(?:${i}|${a})`,l=`(?:-?(${s}(?:\\.${s})*))`,c=`(?:${n}|${a})`,u=`(?:-(${c}(?:\\.${c})*))`,f=`${n}|x|X|\\*`,d=`[v=\\s]*(${f})(?:\\.(${f})(?:\\.(${f})(?:${u})?${o}?)?)?`,h=`^\\s*(${d})\\s+-\\s+(${d})\\s*$`,p=`[v=\\s]*${`(${i})\\.(${i})\\.(${i})`}${l}?${o}?`,m="((?:<|>)?=?)",g=`(\\s*)${m}\\s*(${p}|${d})`,y="(?:~>?)",E=`(\\s*)${y}\\s+`,b="(?:\\^)",S=`(\\s*)${b}\\s+`,_=`^${b}${d}$`,R=`v?${`(${n})\\.(${n})\\.(${n})`}${u}?${o}?`,I=`^${y}${d}$`,N=`^${m}\\s*${d}$`,T=`^${m}\\s*(${R})$|^$`;t.caret=_,t.caretTrim=S,t.comparator=T,t.comparatorTrim=g,t.gte0="^\\s*>=\\s*0.0.0\\s*$",t.hyphenRange=h,t.star="(<|>)?=?\\s*\\*",t.tilde=I,t.tildeTrim=E,t.xRange=N},15422(e,t,r){let o=r(6913),n=r(75699),i=r(35679);t.satisfy=function(e,t){if(!e)return!1;let r=o.extractComparator(e);if(!r)return!1;let[,a,,s,l,c,u]=r,f={operator:a,version:o.combineVersion(s,l,c,u),major:s,minor:l,patch:c,preRelease:u?.split(".")};for(let e of t.split("||")){let t=e.trim();if(!t||"*"===t||"x"===t)return!0;try{let e=o.pipe(n.parseHyphen,n.parseComparatorTrim,n.parseTildeTrim,n.parseCaretTrim)(t.trim()).split(/\s+/).join(" ");if(!e.trim())return!0;let r=e.split(" ").map(e=>o.pipe(n.parseCarets,n.parseTildes,n.parseXRanges,n.parseStar)(e)).join(" ");if(!r.trim())return!0;let a=r.split(/\s+/).map(e=>n.parseGTE0(e)).filter(Boolean);if(0===a.length)continue;let s=!0;for(let e of a){let t=o.extractComparator(e);if(!t){s=!1;break}let[,r,,n,a,l,c]=t;if(!i.compare({operator:r,version:o.combineVersion(n,a,l,c),major:n,minor:a,patch:l,preRelease:c?.split(".")},f)){s=!1;break}}if(s)return!0}catch(e){console.error(`[semver] Error processing range part "${t}":`,e);continue}}return!1}},75699(e,t,r){let o=r(1541),n=r(6913);t.parseCaretTrim=function(e){return e.replace(n.parseRegex(o.caretTrim),"$1^")},t.parseCarets=function(e){return e.trim().split(/\s+/).map(e=>e.replace(n.parseRegex(o.caret),(e,t,r,o,i)=>{if(n.isXVersion(t))return"";if(n.isXVersion(r))return`>=${t}.0.0 <${Number(t)+1}.0.0-0`;if(n.isXVersion(o))if("0"===t)return`>=${t}.${r}.0 <${t}.${Number(r)+1}.0-0`;else return`>=${t}.${r}.0 <${Number(t)+1}.0.0-0`;if(i)if("0"!==t)return`>=${t}.${r}.${o}-${i} <${Number(t)+1}.0.0-0`;else if("0"===r)return`>=${t}.${r}.${o}-${i} <${t}.${r}.${Number(o)+1}-0`;else return`>=${t}.${r}.${o}-${i} <${t}.${Number(r)+1}.0-0`;if("0"===t)if("0"===r)return`>=${t}.${r}.${o} <${t}.${r}.${Number(o)+1}-0`;else return`>=${t}.${r}.${o} <${t}.${Number(r)+1}.0-0`;return`>=${t}.${r}.${o} <${Number(t)+1}.0.0-0`})).join(" ")},t.parseComparatorTrim=function(e){return e.replace(n.parseRegex(o.comparatorTrim),"$1$2$3")},t.parseGTE0=function(e){return e.trim().replace(n.parseRegex(o.gte0),"")},t.parseHyphen=function(e){return e.replace(n.parseRegex(o.hyphenRange),(e,t,r,o,i,a,s,l,c,u,f,d)=>(t=n.isXVersion(r)?"":n.isXVersion(o)?`>=${r}.0.0`:n.isXVersion(i)?`>=${r}.${o}.0`:`>=${t}`,l=n.isXVersion(c)?"":n.isXVersion(u)?`<${Number(c)+1}.0.0-0`:n.isXVersion(f)?`<${c}.${Number(u)+1}.0-0`:d?`<=${c}.${u}.${f}-${d}`:`<=${l}`,`${t} ${l}`.trim()))},t.parseStar=function(e){return e.trim().replace(n.parseRegex(o.star),"")},t.parseTildeTrim=function(e){return e.replace(n.parseRegex(o.tildeTrim),"$1~")},t.parseTildes=function(e){return e.trim().split(/\s+/).map(e=>e.replace(n.parseRegex(o.tilde),(e,t,r,o,i)=>n.isXVersion(t)?"":n.isXVersion(r)?`>=${t}.0.0 <${Number(t)+1}.0.0-0`:n.isXVersion(o)?`>=${t}.${r}.0 <${t}.${Number(r)+1}.0-0`:i?`>=${t}.${r}.${o}-${i} <${t}.${Number(r)+1}.0-0`:`>=${t}.${r}.${o} <${t}.${Number(r)+1}.0-0`)).join(" ")},t.parseXRanges=function(e){return e.split(/\s+/).map(e=>e.trim().replace(n.parseRegex(o.xRange),(e,t,r,o,i,a)=>{let s=n.isXVersion(r),l=s||n.isXVersion(o),c=l||n.isXVersion(i);if("="===t&&c&&(t=""),a="",s)if(">"===t||"<"===t)return"<0.0.0-0";else return"*";return t&&c?(l&&(o=0),i=0,">"===t?(t=">=",l?(r=Number(r)+1,o=0):o=Number(o)+1,i=0):"<="===t&&(t="<",l?r=Number(r)+1:o=Number(o)+1),"<"===t&&(a="-0"),`${t+r}.${o}.${i}${a}`):l?`>=${r}.0.0${a} <${Number(r)+1}.0.0-0`:c?`>=${r}.${o}.0${a} <${r}.${Number(o)+1}.0-0`:e})).join(" ")}},6913(e,t,r){let o=r(1541);function n(e){return new RegExp(e)}t.combineVersion=function(e,t,r,o){let n=`${e}.${t}.${r}`;return o?`${n}-${o}`:n},t.extractComparator=function(e){return e.match(n(o.comparator))},t.isXVersion=function(e){return!e||"x"===e.toLowerCase()||"*"===e},t.parseRegex=n,t.pipe=function(...e){return t=>e.reduce((e,t)=>t(e),t)}},54928(e,t,r){let o=r(34647),n=r(91557),i=r(11772),a=r(73897),s=r(15422),l=r(36757);function c(e,t){if(!e)return!1;let{status:r,mode:o}=e;return r!==l.TreeShakingStatus.NO_USE&&(r===l.TreeShakingStatus.CALCULATED||"runtime-infer"===o&&(!t||h(e,t)))}function u(e,t){let r=e=>{if(!Number.isNaN(Number(e))){let t=e.split("."),r=e;for(let e=0;e<3-t.length;e++)r+=".0";return r}return e};return!!s.satisfy(r(e),`<=${r(t)}`)}let f=(e,t)=>{let r=t||function(e,t){return u(e,t)};return Object.keys(e).reduce((e,t)=>!e||r(e,t)||"0"===e?t:e,0)},d=e=>!!e.loaded||"function"==typeof e.lib,h=(e,t)=>{if(!e||!t)return!1;let{usedExports:r}=e;return!!r&&!!t.every(e=>r.includes(e))},p=e=>d(e)||!!e.loading;t.addUseIn=(e,t)=>{e.useIn||(e.useIn=[]),n.addUniqueItem(e.useIn,t)},t.directShare=function(e,t){return t&&e.treeShaking?e.treeShaking:e},t.formatShareConfigs=function(e,t){let r=t.shared||{},i=t.name,a=Object.keys(r).reduce((e,a)=>{let s=n.arrayOptions(r[a]);return e[a]=e[a]||[],s.forEach(r=>{var n;let s;e[a].push((n=t.shareStrategy,s="get"in r?r.get:"lib"in r?()=>Promise.resolve(r.lib):()=>Promise.resolve(()=>{o.error(`Cannot get shared "${a}" from "${i}": neither "get" nor "lib" is provided in the share config.`)}),r.shareConfig?.eager&&r.treeShaking?.mode&&o.error(`Invalid shared config for "${a}" from "${i}": cannot use both "eager: true" and "treeShaking.mode" simultaneously. Choose one strategy.`),{deps:[],useIn:[],from:i,loading:null,...r,shareConfig:{requiredVersion:`^${r.version}`,singleton:!1,eager:!1,strictVersion:!1,...r.shareConfig},get:s,loaded:!!r?.loaded||"lib"in r||void 0,version:r.version??"0",scope:Array.isArray(r.scope)?r.scope:[r.scope??"default"],strategy:(r.strategy??n)||"version-first",treeShaking:r.treeShaking?{...r.treeShaking,mode:r.treeShaking.mode??"server-calc",status:r.treeShaking.status??l.TreeShakingStatus.UNKNOWN,useIn:[]}:void 0}))}),e},{}),s={...e.shared};return Object.keys(a).forEach(e=>{s[e]?a[e].forEach(t=>{s[e].find(e=>e.version===t.version)||s[e].push(t)}):s[e]=a[e]}),{allShareInfos:s,newShareInfos:a}},t.getGlobalShareScope=function(){return i.Global.__FEDERATION__.__SHARE__},t.getRegisteredShare=function(e,t,r,n){if(!e)return;let{shareConfig:l,scope:h=a.DEFAULT_SCOPE,strategy:m,treeShaking:g}=r;for(let a of Array.isArray(h)?h:[h])if(l&&e[a]&&e[a][t]){let{requiredVersion:h}=l,{version:y,useTreesShaking:E}=("loaded-first"===m?function(e,t,r,o){let n=e[t][r],i="",a=c(o),s=function(e,t){if(a){if(!n[e].treeShaking)return!0;if(!n[t].treeShaking)return!1;if(p(n[t].treeShaking))if(p(n[e].treeShaking))return!!u(e,t);else return!0;if(p(n[e].treeShaking))return!1}if(p(n[t]))if(p(n[e]))return!!u(e,t);else return!0;return!p(n[e])&&u(e,t)};if(a){if(i=f(e[t][r],s))return{version:i,useTreesShaking:a};a=!1}return{version:f(e[t][r],s),useTreesShaking:a}}:function(e,t,r,o){let n=e[t][r],i="",a=c(o),s=function(e,t){return a?!n[e].treeShaking||!!n[t].treeShaking&&!d(n[e].treeShaking)&&u(e,t):!d(n[e])&&u(e,t)};if(a){if(i=f(e[t][r],s))return{version:i,useTreesShaking:a};a=!1}return{version:f(e[t][r],s),useTreesShaking:a}})(e,a,t,g),b=()=>{let n=e[a][t][y];if(l.singleton){if("string"==typeof h&&!s.satisfy(y,h)){let e=`Version ${y} from ${y&&n.from} of shared singleton module ${t} does not satisfy the requirement of ${r.from} which needs ${h})`;l.strictVersion?o.error(e):o.warn(e)}return{shared:n,useTreesShaking:E}}{if(!1===h||"*"===h||s.satisfy(y,h))return{shared:n,useTreesShaking:E};let r=c(g);if(r){for(let[o,n]of Object.entries(e[a][t]))if(c(n.treeShaking,g?.usedExports)&&s.satisfy(o,h))return{shared:n,useTreesShaking:r}}for(let[r,o]of Object.entries(e[a][t]))if(s.satisfy(r,h))return{shared:o,useTreesShaking:!1}}},S={shareScopeMap:e,scope:a,pkgName:t,version:y,GlobalFederation:i.Global.__FEDERATION__,shareInfo:r,resolver:b};return(n.emit(S)||S).resolver()}},t.getTargetSharedOptions=function(e){let{pkgName:t,extraOptions:r,shareInfos:o}=e,n=r?.resolver??(e=>{if(!e)return;let t={};return e.forEach(e=>{t[e.version]=e}),t[f(t,function(e,r){return!d(t[e])&&u(e,r)})]}),i=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),a=(...e)=>{let t={};for(let r of e)if(r)for(let[e,o]of Object.entries(r)){let r=t[e];i(r)&&i(o)?t[e]=a(r,o):void 0!==o&&(t[e]=o)}return t};return a(n(o[t]),r?.customShareInfo)},t.shouldUseTreeShaking=c},91557(e,t,r){let o=r(34647),n=r(36757);async function i(e,t){try{return await e()}catch(e){t||o.warn(e);return}}let a=Object.prototype.toString;t.addUniqueItem=function(e,t){return -1===e.findIndex(e=>e===t)&&e.push(t),e},t.arrayOptions=function(e){return Array.isArray(e)?e:[e]},t.getFMId=function(e){return"version"in e&&e.version?`${e.name}:${e.version}`:"entry"in e&&e.entry?`${e.name}:${e.entry}`:`${e.name}`},t.getRemoteEntryInfoFromSnapshot=function(e){let t={url:"",type:"global",globalName:""};return n.isBrowserEnvValue||(0,n.isReactNativeEnv)()||!("ssrRemoteEntry"in e)?"remoteEntry"in e?{url:e.remoteEntry,type:e.remoteEntryType,globalName:e.globalName}:t:"ssrRemoteEntry"in e?{url:e.ssrRemoteEntry||t.url,type:e.ssrRemoteEntryType||t.type,globalName:e.globalName}:t},t.isObject=function(e){return e&&"object"==typeof e},t.isPlainObject=function(e){return"[object Object]"===a.call(e)},t.isPureRemoteEntry=function(e){return!e.entry.includes(".json")},t.isRemoteInfoWithEntry=function(e){return void 0!==e.entry},t.isStaticResourcesEqual=function(e,t){let r=/^(https?:)?\/\//i;return e.replace(r,"").replace(/\/$/,"")===t.replace(r,"").replace(/\/$/,"")},t.objectToString=a,t.processModuleAlias=(e,t)=>{let r;return r=e.endsWith("/")?e.slice(0,-1):e,t.startsWith(".")&&(t=t.slice(1)),r+=t},t.safeWrapper=i},27705(e,t,r){var o=r(97011);Object.keys(o).forEach(function(e){"default"===e||Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})})},17416(e,t){var r=Object.create,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(a(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var a,l=i(t),c=0,u=l.length;c<u;c++)a=l[c],s.call(e,a)||void 0===a||o(e,a,{get:(e=>t[e]).bind(null,a),enumerable:!(r=n(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?l:o(l,"default",{value:e,enumerable:!0}),e))},97011(e,t,r){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});let o=r(17416),n=r(25063);t.default=n=o.__toESM(n),Object.keys(n).forEach(function(e){"default"===e||Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}})})},45734(e,t,r){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),r(17416);let o=r(91001),n=r(25063),i=r(69512);function a(e){let t=new((0,n.getGlobalFederationConstructor)()||n.ModuleFederation)({id:`${e.name}@${e.version||Date.now()}`,...e});return(0,n.setGlobalFederationInstance)(t),t}let s=null;(0,n.setGlobalFederationConstructor)(n.ModuleFederation),Object.defineProperty(t,"Module",{enumerable:!0,get:function(){return n.Module}}),t.ModuleFederation=n.ModuleFederation,t.createInstance=a,t.getInstance=function(e){return e?n.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(e)||null:s},Object.defineProperty(t,"getRemoteEntry",{enumerable:!0,get:function(){return n.getRemoteEntry}}),Object.defineProperty(t,"getRemoteInfo",{enumerable:!0,get:function(){return n.getRemoteInfo}}),t.init=function(e){let t=o.getGlobalFederationInstance(e.name,e.version),r={...e,id:e.id||""};return t?(t.initOptions(r),s||(s=t),t):s=a(r)},t.loadRemote=function(...e){return(0,n.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadRemote.apply(s,e)},Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return n.loadScript}}),Object.defineProperty(t,"loadScriptNode",{enumerable:!0,get:function(){return n.loadScriptNode}}),t.loadShare=function(...e){return(0,n.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadShare.apply(s,e)},t.loadShareSync=function(...e){return(0,n.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadShareSync.apply(s,e)},t.preloadRemote=function(...e){return(0,n.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.preloadRemote.apply(s,e)},Object.defineProperty(t,"registerGlobalPlugins",{enumerable:!0,get:function(){return n.registerGlobalPlugins}}),t.registerPlugins=function(...e){return(0,n.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerPlugins.apply(s,e)},t.registerRemotes=function(...e){return(0,n.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerRemotes.apply(s,e)},t.registerShared=function(...e){return(0,n.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerShared.apply(s,e)}},91001(e,t,r){r(17416);let o=r(25063);t.getGlobalFederationInstance=function(e,t){let r="@openmrs/esm-app-shell:10.0.1-pre.5522";return o.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(o=>!!r&&o.options.id===r||o.options.name===e&&!o.options.version&&!t||o.options.name===e&&!!t&&o.options.version===t)}},80541(e,t){var r=Object.defineProperty;t.__exportAll=(e,t)=>{let o={};for(var n in e)r(o,n,{get:e[n],enumerable:!0});return t||r(o,Symbol.toStringTag,{value:"Module"}),o}},45515(e,t){var r;let o={AT:"@",HYPHEN:"-",SLASH:"/"},n={[o.AT]:"scope_",[o.HYPHEN]:"_",[o.SLASH]:"__"},i={[n[o.AT]]:o.AT,[n[o.HYPHEN]]:o.HYPHEN,[n[o.SLASH]]:o.SLASH},a=((r={})[r.UNKNOWN=1]="UNKNOWN",r[r.CALCULATED=2]="CALCULATED",r[r.NO_USE=0]="NO_USE",r);t.BROWSER_LOG_KEY="FEDERATION_DEBUG",t.ENCODE_NAME_PREFIX="ENCODE_NAME_PREFIX",t.EncodedNameTransformMap=i,t.FederationModuleManifest="federation-manifest.json",t.MANIFEST_EXT=".json",t.MFModuleType={NPM:"npm",APP:"app"},t.MODULE_DEVTOOL_IDENTIFIER="__MF_DEVTOOLS_MODULE_INFO__",t.ManifestFileName="mf-manifest.json",t.NameTransformMap=n,t.NameTransformSymbol=o,t.SEPARATOR=":",t.StatsFileName="mf-stats.json",t.TEMP_DIR=".federation",t.TreeShakingStatus=a},84730(e,t){t.createModuleFederationConfig=e=>e},3765(e,t,r){let o=r(41726);async function n(e,t){try{return await e()}catch(e){t||o.warn(e);return}}function i(e,t){let r=/^(https?:)?\/\//i;return e.replace(r,"").replace(/\/$/,"")===t.replace(r,"").replace(/\/$/,"")}function a(e){let t,r=null,o=!0,a=2e4,s=document.getElementsByTagName("script");for(let t=0;t<s.length;t++){let n=s[t],a=n.getAttribute("src");if(a&&i(a,e.url)){r=n,o=!1;break}}if(!r){let t,o=e.attrs;(r=document.createElement("script")).type=o?.type==="module"?"module":"text/javascript",e.createScriptHook&&((t=e.createScriptHook(e.url,e.attrs))instanceof HTMLScriptElement?r=t:"object"==typeof t&&("script"in t&&t.script&&(r=t.script),"timeout"in t&&t.timeout&&(a=t.timeout))),r.src||(r.src=e.url),o&&!t&&Object.keys(o).forEach(e=>{r&&("async"===e||"defer"===e?r[e]=o[e]:r.getAttribute(e)||r.setAttribute(e,o[e]))})}let l=null,c="u">typeof window?t=>{if(t.filename&&i(t.filename,e.url)){let r=Error(`ScriptExecutionError: Script "${e.url}" loaded but threw a runtime error during execution: ${t.message} (${t.filename}:${t.lineno}:${t.colno})`);r.name="ScriptExecutionError",l=r}}:null;c&&window.addEventListener("error",c);let u=async(o,i)=>{clearTimeout(t),c&&window.removeEventListener("error",c);let a=()=>{if(i?.type==="error"){let t=Error(i?.isTimeout?`ScriptNetworkError: Script "${e.url}" timed out.`:`ScriptNetworkError: Failed to load script "${e.url}" - the script URL is unreachable or the server returned an error (network failure, 404, CORS, etc.)`);t.name="ScriptNetworkError",e?.onErrorCallback&&e?.onErrorCallback(t)}else l?e?.onErrorCallback&&e?.onErrorCallback(l):e?.cb&&e?.cb()};if(r&&(r.onerror=null,r.onload=null,n(()=>{let{needDeleteScript:t=!0}=e;t&&r?.parentNode&&r.parentNode.removeChild(r)}),o&&"function"==typeof o)){let e=o(i);if(e instanceof Promise){let t=await e;return a(),t}return a(),e}a()};return r.onerror=u.bind(null,r.onerror),r.onload=u.bind(null,r.onload),t=setTimeout(()=>{u(null,{type:"error",isTimeout:!0})},a),{script:r,needAttach:o}}t.createLink=function(e){let t,r=null,o=!0,a=2e4,s=document.getElementsByTagName("link");for(let t=0;t<s.length;t++){let n=s[t],a=n.getAttribute("href"),l=n.getAttribute("rel");if(a&&i(a,e.url)&&l===e.attrs.rel){r=n,o=!1;break}}if(!r){let t;(r=document.createElement("link")).setAttribute("href",e.url);let o=!0,n=e.attrs;e.createLinkHook&&((t=e.createLinkHook(e.url,n))instanceof HTMLLinkElement?(r=t,o=!1):"object"==typeof t&&("link"in t&&t.link&&(r=t.link,o=!1),"timeout"in t&&t.timeout&&(a=t.timeout))),n&&o&&Object.keys(n).forEach(e=>{r&&!r.getAttribute(e)&&r.setAttribute(e,n[e])})}if(!o)return Promise.resolve().then(()=>{e?.cb&&e?.cb()}),{link:r,needAttach:o};let l=(o,i)=>{t&&clearTimeout(t);let a=()=>{if(i?.type==="error"){let t=Error(i?.isTimeout?`LinkNetworkError: Link "${e.url}" timed out.`:`LinkNetworkError: Failed to load link "${e.url}" - the URL is unreachable or the server returned an error.`);t.name="LinkNetworkError",e?.onErrorCallback&&e?.onErrorCallback(t)}else e?.cb&&e?.cb()};if(r&&(r.onerror=null,r.onload=null,n(()=>{let{needDeleteLink:t=!0}=e;t&&r?.parentNode&&r.parentNode.removeChild(r)}),o)){let e=o(i);return a(),e}a()};return r.onerror=l.bind(null,r.onerror),r.onload=l.bind(null,r.onload),t=setTimeout(()=>{l(null,{type:"error",isTimeout:!0})},a),{link:r,needAttach:o}},t.createScript=a,t.isStaticResourcesEqual=i,t.loadScript=function(e,t){let{attrs:r={},createScriptHook:o}=t;return new Promise((t,n)=>{let{script:i,needAttach:s}=a({url:e,cb:t,onErrorCallback:n,attrs:{fetchpriority:"high",...r},createScriptHook:o,needDeleteScript:!0});s&&document.head.appendChild(i)})},t.safeWrapper=n},4776(e,t,r){let o=r(45515);t.getProcessEnv=function(){return"u">typeof process&&process.env?process.env:{}},t.isBrowserEnv=function(){return!0},t.isBrowserEnvValue=!0,t.isDebugMode=function(){if("u">typeof process&&process.env&&process.env.FEDERATION_DEBUG)return!!process.env.FEDERATION_DEBUG;if("u">typeof FEDERATION_DEBUG&&FEDERATION_DEBUG)return!0;try{if(window.localStorage)return!!localStorage.getItem(o.BROWSER_LOG_KEY)}catch(e){}return!1},t.isReactNativeEnv=function(){return"u">typeof navigator&&navigator?.product==="ReactNative"}},82989(e,t,r){let o=r(45515),n=(e,t)=>{if(!e)return t;let r=(e=>{if("."===e)return"";if(e.startsWith("./"))return e.replace("./","");if(e.startsWith("/")){let t=e.slice(1);return t.endsWith("/")?t.slice(0,-1):t}return e})(e);return r?r.endsWith("/")?`${r}${t}`:`${r}/${t}`:t};function i(e){return e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")}t.generateSnapshotFromManifest=function(e,t={}){let r,{remotes:o={},overrides:a={},version:s}=t,l=()=>"publicPath"in e.metaData?("auto"===e.metaData.publicPath||""===e.metaData.publicPath)&&s?i(s):e.metaData.publicPath:e.metaData.getPublicPath,c=Object.keys(a),u={};Object.keys(o).length||(u=e.remotes?.reduce((e,t)=>{let r,o=t.federationContainerName;return r=c.includes(o)?a[o]:"version"in t?t.version:t.entry,e[o]={matchedVersion:r},e},{})||{}),Object.keys(o).forEach(e=>u[e]={matchedVersion:c.includes(e)?a[e]:o[e]});let{remoteEntry:{path:f,name:d,type:h},types:p={path:"",name:"",zip:"",api:""},buildInfo:{buildVersion:m},globalName:g,ssrRemoteEntry:y}=e.metaData,{exposes:E}=e,b={version:s||"",buildVersion:m,globalName:g,remoteEntry:n(f,d),remoteEntryType:h,remoteTypes:n(p.path,p.name),remoteTypesZip:p.zip||"",remoteTypesAPI:p.api||"",remotesInfo:u,shared:e?.shared.map(e=>({assets:e.assets,sharedName:e.name,version:e.version,usedExports:e.referenceExports||[]})),modules:E?.map(e=>({moduleName:e.name,modulePath:e.path,assets:e.assets}))};if("publicPath"in e.metaData?(r={...b,publicPath:l()},"string"==typeof e.metaData.ssrPublicPath&&(r.ssrPublicPath=e.metaData.ssrPublicPath)):r={...b,getPublicPath:l()},y){let e=n(y.path,y.name);r.ssrRemoteEntry=e,r.ssrRemoteEntryType=y.type||"commonjs-module"}return r},t.getManifestFileName=function(e){if(!e)return{statsFileName:o.StatsFileName,manifestFileName:o.ManifestFileName};let t="boolean"==typeof e?"":e.filePath||"",r="boolean"==typeof e?"":e.fileName||"",i=".json",a=r?r.endsWith(i)?r:`${r}${i}`:o.ManifestFileName;return{statsFileName:n(t,r?a.replace(i,`-stats${i}`):o.StatsFileName),manifestFileName:n(t,a)}},t.inferAutoPublicPath=i,t.isManifestProvider=function(e){return!!("remoteEntry"in e&&e.remoteEntry.includes(o.MANIFEST_EXT))},t.simpleJoinRemoteEntry=n},36757(e,t,r){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let o=r(45515),n=r(53426),i=r(86739),a=r(59144),s=r(39466),l=r(8202),c=r(42387),u=r(4776),f=r(41726),d=r(82989),h=r(67099),p=r(3765),m=r(95307),g=r(88042),y=r(84730);t.BROWSER_LOG_KEY=o.BROWSER_LOG_KEY,t.ENCODE_NAME_PREFIX=o.ENCODE_NAME_PREFIX,t.EncodedNameTransformMap=o.EncodedNameTransformMap,t.FederationModuleManifest=o.FederationModuleManifest,t.MANIFEST_EXT=o.MANIFEST_EXT,t.MFModuleType=o.MFModuleType,t.MODULE_DEVTOOL_IDENTIFIER=o.MODULE_DEVTOOL_IDENTIFIER,t.ManifestFileName=o.ManifestFileName,t.NameTransformMap=o.NameTransformMap,t.NameTransformSymbol=o.NameTransformSymbol,t.SEPARATOR=o.SEPARATOR,t.StatsFileName=o.StatsFileName,t.TEMP_DIR=o.TEMP_DIR,t.TreeShakingStatus=o.TreeShakingStatus,t.assert=f.assert,t.bindLoggerToCompiler=h.bindLoggerToCompiler,t.composeKeyWithSeparator=f.composeKeyWithSeparator,Object.defineProperty(t,"consumeSharedPlugin",{enumerable:!0,get:function(){return l.ConsumeSharedPlugin_exports}}),Object.defineProperty(t,"containerPlugin",{enumerable:!0,get:function(){return n.ContainerPlugin_exports}}),Object.defineProperty(t,"containerReferencePlugin",{enumerable:!0,get:function(){return i.ContainerReferencePlugin_exports}}),t.createInfrastructureLogger=h.createInfrastructureLogger,t.createLink=p.createLink,t.createLogger=h.createLogger,t.createModuleFederationConfig=y.createModuleFederationConfig,t.createScript=p.createScript,t.createScriptNode=m.createScriptNode,t.decodeName=f.decodeName,t.encodeName=f.encodeName,t.error=f.error,t.generateExposeFilename=f.generateExposeFilename,t.generateShareFilename=f.generateShareFilename,t.generateSnapshotFromManifest=d.generateSnapshotFromManifest,t.getManifestFileName=d.getManifestFileName,t.getProcessEnv=u.getProcessEnv,t.getResourceUrl=f.getResourceUrl,t.inferAutoPublicPath=d.inferAutoPublicPath,t.infrastructureLogger=h.infrastructureLogger,t.isBrowserEnv=u.isBrowserEnv,t.isBrowserEnvValue=u.isBrowserEnvValue,t.isDebugMode=u.isDebugMode,t.isManifestProvider=d.isManifestProvider,t.isReactNativeEnv=u.isReactNativeEnv,t.isRequiredVersion=f.isRequiredVersion,t.isStaticResourcesEqual=p.isStaticResourcesEqual,t.loadScript=p.loadScript,t.loadScriptNode=m.loadScriptNode,t.logger=h.logger,Object.defineProperty(t,"moduleFederationPlugin",{enumerable:!0,get:function(){return a.ModuleFederationPlugin_exports}}),t.normalizeOptions=g.normalizeOptions,t.parseEntry=f.parseEntry,Object.defineProperty(t,"provideSharedPlugin",{enumerable:!0,get:function(){return c.ProvideSharedPlugin_exports}}),t.safeToString=f.safeToString,t.safeWrapper=p.safeWrapper,Object.defineProperty(t,"sharePlugin",{enumerable:!0,get:function(){return s.SharePlugin_exports}}),t.simpleJoinRemoteEntry=d.simpleJoinRemoteEntry,t.warn=f.warn},67099(e,t,r){let o=r(4776),n="[ Module Federation ]",i=console,a=["logger.ts","logger.js","captureStackTrace","Logger.emit","Logger.log","Logger.info","Logger.warn","Logger.error","Logger.debug"];var s=class{constructor(e,t=i){this.prefix=e,this.delegate=t??i}setPrefix(e){this.prefix=e}setDelegate(e){this.delegate=e??i}emit(e,t){let r=this.delegate,n=o.isDebugMode()?function(){try{let e=Error().stack;if(!e)return;let[,...t]=e.split("\n"),r=t.filter(e=>!a.some(t=>e.includes(t)));if(!r.length)return;return`Stack trace:
|
|
5
|
+
${(0,l.safeToString)(this.remoteInfo)}`),this.remoteEntryExports=t,this.remoteEntryExports}async init(e,t,r,n){let i=await this.getEntry(n);if(this.inited)return await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:i,cached:!0,origin:this.host}),i;if(this.initPromise){try{await this.initPromise,await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:i,cached:!0,origin:this.host})}catch(r){throw await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:i,error:r,cached:!0,origin:this.host}),r}return i}this.initing=!0,this.initPromise=(async()=>{var n,a;let l,u;await this.host.loaderHook.lifecycle.beforeInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,origin:this.host});let{remoteEntryInitOptions:f,shareScope:d,initScope:h}=(n=this.remoteInfo,a=this.host.shareScopeMap,(l=Array.isArray(n.shareScope)?n.shareScope:[n.shareScope]).length||l.push("default"),l.forEach(e=>{a[e]||(a[e]={})}),Object.defineProperty(u={version:n.version||"",shareScopeKeys:Array.isArray(n.shareScope)?l:n.shareScope||"default"},"shareScopeMap",{value:a,enumerable:!1}),{remoteEntryInitOptions:u,shareScope:a[l[0]],initScope:r??[]}),p=await this.host.hooks.lifecycle.beforeInitContainer.emit({shareScope:d,remoteEntryInitOptions:f,initScope:h,remoteInfo:this.remoteInfo,origin:this.host});void 0===i?.init&&o.error(c.RUNTIME_002,c.runtimeDescMap,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName},void 0,s.optionsToMFContext(this.host.options));try{await i.init(p.shareScope,p.initScope,p.remoteEntryInitOptions)}catch(e){o.error(c.RUNTIME_015,c.runtimeDescMap,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName,shareScope:this.remoteInfo.shareScope},`${e}`,s.optionsToMFContext(this.host.options))}await this.host.hooks.lifecycle.initContainer.emit({...p,id:e,remoteSnapshot:t,remoteEntryExports:i}),this.inited=!0})();try{await this.initPromise,await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:i,origin:this.host})}catch(r){throw await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:i,error:r,origin:this.host}),r}finally{this.initing=!1,this.initPromise=void 0}return i}async get(e,t,r,i){let a,{loadFactory:l=!0}=r||{loadFactory:!0},u=await this.init(e,i,void 0,t);this.lib=u,await this.host.loaderHook.lifecycle.beforeGetExpose.emit({id:e,expose:t,moduleInfo:this.remoteInfo,remoteEntryExports:u,origin:this.host});try{let r=await this.host.loaderHook.lifecycle.getModuleFactory.emit({remoteEntryExports:u,expose:t,moduleInfo:this.remoteInfo});(a="function"==typeof r?r:void 0)||(a=await u.get(t)),a||o.error(c.RUNTIME_014,c.runtimeDescMap,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,expose:t,requestId:e,availableExposes:function(e){if(!e||!("modules"in e)||!Array.isArray(e.modules))return;let t=e.modules.map(e=>e.moduleName).filter(Boolean);return t.length?t.join(","):void 0}(i)},void 0,s.optionsToMFContext(this.host.options)),await this.host.loaderHook.lifecycle.afterGetExpose.emit({id:e,expose:t,moduleInfo:this.remoteInfo,remoteEntryExports:u,moduleFactory:a,origin:this.host})}catch(r){throw await this.host.loaderHook.lifecycle.afterGetExpose.emit({id:e,expose:t,moduleInfo:this.remoteInfo,remoteEntryExports:u,error:r,origin:this.host}),r}let f=n.processModuleAlias(this.remoteInfo.name,t),d=this.wraperFactory(a,f);if(!l)return d;await this.host.loaderHook.lifecycle.beforeExecuteFactory.emit({id:e,expose:t,moduleInfo:this.remoteInfo,loadFactory:l,origin:this.host});try{let r=await d();return await this.host.loaderHook.lifecycle.afterExecuteFactory.emit({id:e,expose:t,moduleInfo:this.remoteInfo,loadFactory:l,exposeModule:r,origin:this.host}),r}catch(r){throw await this.host.loaderHook.lifecycle.afterExecuteFactory.emit({id:e,expose:t,moduleInfo:this.remoteInfo,loadFactory:l,error:r,origin:this.host}),r}}wraperFactory(e,t){function r(e,t){e&&"object"==typeof e&&Object.isExtensible(e)&&!Object.getOwnPropertyDescriptor(e,Symbol.for("mf_module_id"))&&Object.defineProperty(e,Symbol.for("mf_module_id"),{value:t,enumerable:!1})}return()=>{let o=e();return o instanceof Promise?o.then(e=>(r(e,t),e)):(r(o,t),o)}}}},21647(e,t,r){let o=r(91557),n=r(11772),i=r(54928);r(98073);let a=r(6474),s=r(16751),l=r(36757),c=(e,t)=>document.querySelector(`${e}[${"link"===e?"href":"src"}="${t}"]`);t.generatePreloadAssetsPlugin=function(){return{name:"generate-preload-assets-plugin",async generatePreloadAssets(e){let{origin:t,preloadOptions:r,remoteInfo:u,remote:f,globalSnapshot:d,remoteSnapshot:h}=e;return l.isBrowserEnvValue?o.isRemoteInfoWithEntry(f)&&o.isPureRemoteEntry(f)?{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[{name:f.name,url:f.entry,moduleInfo:{name:u.name,entry:f.entry,type:u.type||"global",entryGlobalName:"",shareScope:""}}]}:(s.assignRemoteInfo(u,h),function(e,t,r,s,u){let f=[],d=[],h=[],p=new Set,m=new Set,{options:g}=e,{preloadConfig:y}=t,{depsRemote:E}=y;!function e(t,r,i,a,s={},c){let{value:u}=n.getInfoWithoutType(t,o.getFMId(r)),f=c||u;if(f&&!(0,l.isManifestProvider)(f)&&(i(f,r,a),f.remotesInfo))for(let r of Object.keys(f.remotesInfo)){if(s[r])continue;s[r]=!0;let o=function(e){let t=e.split(":");return 1===t.length?{name:t[0],version:void 0}:2===t.length?{name:t[0],version:t[1]}:{name:t[1],version:t[2]}}(r),n=f.remotesInfo[r];e(t,{name:o.name,version:n.matchedVersion},i,!1,s,void 0)}}(s,r,(t,r,i)=>{let s;if(i)s=y;else if(Array.isArray(E)){let e=E.find(e=>e.nameOrAlias===r.name||e.nameOrAlias===r.alias);if(!e)return;s=a.defaultPreloadArgs(e)}else{if(!0!==E)return;s=y}let c=(0,l.getResourceUrl)(t,o.getRemoteEntryInfoFromSnapshot(t).url);c&&h.push({name:r.name,moduleInfo:{name:r.name,entry:c,type:"remoteEntryType"in t?t.remoteEntryType:"global",entryGlobalName:"globalName"in t?t.globalName:r.name,shareScope:"",version:"version"in t?t.version:void 0},url:c});let u="modules"in t?t.modules:[],p=a.normalizePreloadExposes(s.exposes);function m(e){let r=e.map(e=>(0,l.getResourceUrl)(t,e));return s.filter?r.filter(s.filter):r}if(p.length&&"modules"in t&&(u=t?.modules?.reduce((e,t)=>(p?.indexOf(t.moduleName)!==-1&&e.push(t),e),[])),u){let o=u.length;for(let i=0;i<o;i++){let o=u[i],a=`${r.name}/${o.moduleName}`;e.remoteHandler.hooks.lifecycle.handlePreloadModule.emit({id:"."===o.moduleName?r.name:a,name:r.name,remoteSnapshot:t,preloadConfig:s,remote:r,origin:e}),n.getPreloaded(a)||("all"===s.resourceCategory?(f.push(...m(o.assets.css.async)),f.push(...m(o.assets.css.sync)),d.push(...m(o.assets.js.async)),d.push(...m(o.assets.js.sync))):"sync"===s.resourceCategory&&(f.push(...m(o.assets.css.sync)),d.push(...m(o.assets.js.sync))),n.setPreloaded(a))}}},!0,{},u),u.shared&&u.shared.length>0&&u.shared.forEach(t=>{let r=g.shared?.[t.sharedName];if(!r)return;let n=t.version?r.find(e=>e.version===t.version):r;n&&o.arrayOptions(n).forEach(r=>{((t,r)=>{let{shared:o}=i.getRegisteredShare(e.shareScopeMap,r.sharedName,t,e.sharedHandler.hooks.lifecycle.resolveShare)||{};o&&"function"==typeof o.lib&&(r.assets.js.sync.forEach(e=>{p.add(e)}),r.assets.css.sync.forEach(e=>{m.add(e)}))})(r,t)})});let b=d.filter(e=>!p.has(e)&&!c("script",e));return{cssAssets:f.filter(e=>!m.has(e)&&!c("link",e)),jsAssetsWithoutEntry:b,entryAssets:h.filter(e=>!c("script",e.url))}}(t,r,u,d,h)):{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[]}}}}},72651(e,t,r){let o=r(34647),n=r(91557),i=r(11772),a=r(77179),s=r(40660);r(98073);let l=r(99101),c=r(36434),u=r(82098);r(16128);let f=r(36757),d=r(69512);function h(e,t){let r=i.getGlobalSnapshotInfoByModuleInfo({name:t.name,version:t.options.version}),o=r&&"remotesInfo"in r&&r.remotesInfo&&i.getInfoWithoutType(r.remotesInfo,e.name).value;return o&&o.matchedVersion?{hostGlobalSnapshot:r,globalSnapshot:i.getGlobalSnapshot(),remoteSnapshot:i.getGlobalSnapshotInfoByModuleInfo({name:e.name,version:o.matchedVersion})}:{hostGlobalSnapshot:void 0,globalSnapshot:i.getGlobalSnapshot(),remoteSnapshot:i.getGlobalSnapshotInfoByModuleInfo({name:e.name,version:"version"in e?e.version:void 0})}}t.SnapshotHandler=class{constructor(e){this.loadingHostSnapshot=null,this.manifestCache=new Map,this.hooks=new u.PluginSystem({beforeLoadRemoteSnapshot:new l.AsyncHook("beforeLoadRemoteSnapshot"),loadSnapshot:new c.AsyncWaterfallHook("loadGlobalSnapshot"),loadRemoteSnapshot:new c.AsyncWaterfallHook("loadRemoteSnapshot"),afterLoadSnapshot:new c.AsyncWaterfallHook("afterLoadSnapshot")}),this.manifestLoading=i.Global.__FEDERATION__.__MANIFEST_LOADING__,this.HostInstance=e,this.loaderHook=e.loaderHook}async loadRemoteSnapshotInfo({moduleInfo:e,id:t,initiator:r="loadRemote"}){let a,l,{options:c}=this.HostInstance;await this.hooks.lifecycle.beforeLoadRemoteSnapshot.emit({options:c,moduleInfo:e,origin:this.HostInstance});let u=i.getGlobalSnapshotInfoByModuleInfo({name:this.HostInstance.options.name,version:this.HostInstance.options.version});u||(u={version:this.HostInstance.options.version||"",remoteEntry:"",remotesInfo:{}},i.addGlobalSnapshot({[this.HostInstance.options.name]:u})),u&&"remotesInfo"in u&&!i.getInfoWithoutType(u.remotesInfo,e.name).value&&("version"in e||"entry"in e)&&(u.remotesInfo={...u?.remotesInfo,[e.name]:{matchedVersion:"version"in e?e.version:e.entry}});let{hostGlobalSnapshot:h,remoteSnapshot:p,globalSnapshot:m}=this.getGlobalRemoteInfo(e),{remoteSnapshot:g,globalSnapshot:y}=await this.hooks.lifecycle.loadSnapshot.emit({options:c,moduleInfo:e,hostGlobalSnapshot:h,remoteSnapshot:p,globalSnapshot:m});if(g)if((0,f.isManifestProvider)(g)){let o=f.isBrowserEnvValue?g.remoteEntry:g.ssrRemoteEntry||g.remoteEntry||"",n=await this.loadManifestSnapshot(o,e,{},{initiator:r,id:t||e.name}),s=i.setGlobalSnapshotInfoByModuleInfo({...e,entry:o},n);a=n,l=s}else{let{remoteSnapshot:t}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:g,from:"global"});a=t,l=y}else if(n.isRemoteInfoWithEntry(e)){let o=await this.loadManifestSnapshot(e.entry,e,{},{initiator:r,id:t||e.name}),n=i.setGlobalSnapshotInfoByModuleInfo(e,o);a=o,l=n}else o.error(d.RUNTIME_007,d.runtimeDescMap,{remoteName:e.name,remoteVersion:e.version,hostName:this.HostInstance.options.name,globalSnapshot:JSON.stringify(y)},void 0,s.optionsToMFContext(this.HostInstance.options));return await this.hooks.lifecycle.afterLoadSnapshot.emit({id:t,host:this.HostInstance,options:c,moduleInfo:e,remoteSnapshot:a}),{remoteSnapshot:a,globalSnapshot:l}}getGlobalRemoteInfo(e){return h(e,this.HostInstance)}async getManifestJson(e,t,r,n){return(async()=>{let r=a.getRemoteInfo(t),i=this.manifestCache.get(e);if(i)return i;try{let t=await this.loaderHook.lifecycle.fetch.emit(e,{},r,n?{...n,url:e,resourceType:"manifest"}:void 0);t&&t instanceof Response||(t=await fetch(e,{})),i=await t.json()}catch(n){(i=await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:n,from:"runtime",lifecycle:"afterResolve",remote:r,origin:this.HostInstance}))||(delete this.manifestLoading[e],o.error(d.RUNTIME_003,d.runtimeDescMap,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name},`${n}`,s.optionsToMFContext(this.HostInstance.options)))}let l=[!i.metaData&&"metaData",!i.exposes&&"exposes",!i.shared&&"shared"].filter(Boolean);return l.length>0&&await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:Error(`"${e}" is not a valid federation manifest for remote "${t.name}". Missing required fields: ${l.join(", ")}.`),from:"runtime",lifecycle:"afterResolve",remote:r,origin:this.HostInstance}),l.length>0&&o.error(d.RUNTIME_013,d.runtimeDescMap,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name,missingFields:l.join(",")},void 0,s.optionsToMFContext(this.HostInstance.options)),this.manifestCache.set(e,i),i})()}async loadManifestSnapshot(e,t,r,o){let n=async()=>{let n=await this.getManifestJson(e,t,r,o),i=(0,f.generateSnapshotFromManifest)(n,{version:e}),{remoteSnapshot:a}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:t,manifestJson:n,remoteSnapshot:i,manifestUrl:e,from:"manifest"});return a};return this.manifestLoading[e]||(this.manifestLoading[e]=n().then(e=>e)),this.manifestLoading[e]}},t.getGlobalRemoteInfo=h},88981(e,t,r){let o=r(82098);r(16128),t.DisabledSnapshotHandler=class{constructor(){this.hooks=new o.PluginSystem({})}}},16751(e,t,r){let o=r(34647),n=r(91557),i=r(48316);r(98073);let a=r(6474),s=r(36757),l=r(69512);function c(e,t){let r=n.getRemoteEntryInfoFromSnapshot(t);r.url||o.error(l.RUNTIME_011,l.runtimeDescMap,{remoteName:e.name});let i=(0,s.getResourceUrl)(t,r.url);s.isBrowserEnvValue||i.startsWith("http")||(i=`https:${i}`),e.type=r.type,e.entryGlobalName=r.globalName,e.entry=i,e.version=t.version,e.buildVersion=t.buildVersion}t.assignRemoteInfo=c,t.snapshotPlugin=function(){return{name:"snapshot-plugin",async afterResolve(e){let{remote:t,pkgNameOrAlias:r,expose:o,origin:s,remoteInfo:l,id:u}=e;if(!n.isRemoteInfoWithEntry(t)||!n.isPureRemoteEntry(t)){let{remoteSnapshot:n,globalSnapshot:f}=await s.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:t,id:i.composeRemoteRequestId(t.name,o)});c(l,n);let d=await s.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin:s,preloadOptions:{remote:t,preloadConfig:{nameOrAlias:r,exposes:[o],resourceCategory:"sync",share:!1,depsRemote:!1}},remoteInfo:l,remote:t,remoteSnapshot:n,globalSnapshot:f});return d&&a.preloadAssets(l,s,d,!1,{initiator:"loadRemote",id:u}).catch(()=>void 0),{...e,remoteSnapshot:n}}return e}}}},35746(e,t,r){let o=r(82098);r(16128);let n="Remote loading is disabled by experiments.optimization.disableRemote.";t.DisabledRemoteHandler=class{constructor(){this.hooks=new o.PluginSystem({})}formatAndRegisterRemote(){return[]}loadRemote(){throw Error(n)}preloadRemote(){throw Error(n)}registerRemotes(){throw Error(n)}getRemoteModuleAndOptions(){throw Error(n)}initRawContainer(){throw Error(n)}},t.UnavailableRemoteModule=class{constructor(){throw Error(n)}}},91422(e,t,r){let o=r(34647),n=r(91557),i=r(11772),a=r(73897),s=r(54928),l=r(48316),c=r(77179),u=r(40660);r(98073);let f=r(6474),d=r(65904),h=r(23504),p=r(99101),m=r(14636),g=r(36434),y=r(82098);r(16128);let E=r(72651),b=r(36757),S=r(69512);t.RemoteHandler=class{constructor(e){this.hooks=new y.PluginSystem({beforeRegisterRemote:new m.SyncWaterfallHook("beforeRegisterRemote"),registerRemote:new m.SyncWaterfallHook("registerRemote"),beforeRequest:new g.AsyncWaterfallHook("beforeRequest"),afterMatchRemote:new p.AsyncHook("afterMatchRemote"),onLoad:new p.AsyncHook("onLoad"),afterLoadRemote:new p.AsyncHook("afterLoadRemote"),handlePreloadModule:new h.SyncHook("handlePreloadModule"),errorLoadRemote:new p.AsyncHook("errorLoadRemote"),beforePreloadRemote:new p.AsyncHook("beforePreloadRemote"),generatePreloadAssets:new p.AsyncHook("generatePreloadAssets"),afterPreloadRemote:new p.AsyncHook("afterPreloadRemote"),loadEntry:new p.AsyncHook}),this.host=e,this.idToRemoteMap={}}formatAndRegisterRemote(e,t){return(t.remotes||[]).reduce((e,t)=>(this.registerRemote(t,e,{force:!1}),e),e.remotes)}setIdToRemoteMap(e,t){let{remote:r,expose:o}=t,{name:n,alias:i}=r;if(this.idToRemoteMap[e]={name:r.name,expose:o},i&&e.startsWith(n)){let t=e.replace(n,i);this.idToRemoteMap[t]={name:r.name,expose:o};return}if(i&&e.startsWith(i)){let t=e.replace(i,n);this.idToRemoteMap[t]={name:r.name,expose:o}}}async loadRemote(e,t){let r,{host:o}=this,n=l.matchRemoteWithNameAndExpose(o.options.remotes,e),i=e,a=n?.expose,s=n?c.getRemoteInfo(n.remote):void 0;try{let{loadFactory:n=!0}=t||{loadFactory:!0},{module:l,moduleOptions:u,remoteMatchInfo:f}=await this.getRemoteModuleAndOptions({id:e}),{pkgNameOrAlias:d,remote:h,expose:p,id:m,remoteSnapshot:g}=f;i=m,a=p,s=c.getRemoteInfo(h);let y=await l.get(m,p,t,g),E=await this.hooks.lifecycle.onLoad.emit({id:m,pkgNameOrAlias:d,expose:p,exposeModule:n?y:void 0,exposeModuleFactory:n?void 0:y,remote:h,options:u,moduleInstance:l,origin:o});if(this.setIdToRemoteMap(e,f),r={id:i,expose:a,remote:s,options:t,origin:o},"function"==typeof E)return E;return y}catch(c){let n,{from:l="runtime"}=t||{from:"runtime"};try{n=await this.hooks.lifecycle.errorLoadRemote.emit({id:e,error:c,from:l,lifecycle:"onLoad",expose:a,remote:s,origin:o})}catch(e){throw r={id:i,expose:a,remote:s,options:t,error:e,origin:o},e}if(!n)throw r={id:i,expose:a,remote:s,options:t,error:c,origin:o},c;return r={id:i,expose:a,remote:s,options:t,error:c,origin:o,recovered:!0},n}finally{r&&await this.hooks.lifecycle.afterLoadRemote.emit(r)}}async preloadRemote(e){let t,{host:r}=this,o=[];await this.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:e,options:r.options,origin:r});let n=f.formatPreloadArgs(r.options.remotes,e);await Promise.all(n.flatMap(e=>{let{preloadConfig:t,remote:r}=e,o=t.exposes||[];return o.length?o.map(o=>({ops:{...e,preloadConfig:{...t,exposes:[o]}},id:l.composeRemoteRequestId(r.name,o)})):[{ops:e,id:`${r.name}/*`}]}).map(async e=>{let{ops:t,id:n}=e,{remote:i,preloadConfig:a}=t,s=c.getRemoteInfo(i);try{let{globalSnapshot:e,remoteSnapshot:l}=await r.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:i,id:n,initiator:"preloadRemote"}),c=await this.hooks.lifecycle.generatePreloadAssets.emit({origin:r,preloadOptions:t,remote:i,remoteInfo:s,globalSnapshot:e,remoteSnapshot:l});if(!c)return;let u=await f.preloadAssets(s,r,c,!0,{initiator:"preloadRemote",id:n});o.push({remote:i,remoteInfo:s,preloadConfig:a,id:n,results:u})}catch(e){o.push({remote:i,remoteInfo:s,preloadConfig:a,id:n,results:[{url:s.entry,status:"error",resourceType:/\.json(?:$|[?#])/i.test(s.entry)?"manifest":"remoteEntry",initiator:"preloadRemote",id:n,error:e}]})}}));let i=o.flatMap(e=>e.results.filter(e=>"error"===e.status||"timeout"===e.status));if(i.length>0&&Object.assign(t=Error(`preloadRemote failed to load ${i.length} resource(s).`),{results:o,failedResults:i}),await this.hooks.lifecycle.afterPreloadRemote.emit({preloadOps:e,options:r.options,origin:r,results:o,error:t}),t)throw t}registerRemotes(e,t){let{host:r}=this;e.forEach(e=>{this.registerRemote(e,r.options.remotes,{force:t?.force})})}initRawContainer(e,t,r){let{host:o}=this,n=new d.Module({host:o,remoteInfo:c.getRemoteInfo({name:e,entry:t})});return n.remoteEntryExports=r,o.moduleCache.set(e,n),n}async getRemoteModuleAndOptions(e){let t,{host:r}=this,{id:n}=e;try{t=await this.hooks.lifecycle.beforeRequest.emit({id:n,options:r.options,origin:r})}catch(e){if(!(t=await this.hooks.lifecycle.errorLoadRemote.emit({id:n,options:r.options,origin:r,from:"runtime",error:e,lifecycle:"beforeRequest"})))throw e}let{id:i}=t,a=l.matchRemoteWithNameAndExpose(r.options.remotes,i);if(!a)try{o.error(S.RUNTIME_004,S.runtimeDescMap,{hostName:r.options.name,requestId:i},void 0,u.optionsToMFContext(r.options))}catch(e){throw await this.hooks.lifecycle.afterMatchRemote.emit({id:i,options:r.options,error:e,origin:r}),e}let{remote:s}=a,f=c.getRemoteInfo(s);await this.hooks.lifecycle.afterMatchRemote.emit({id:i,...a,options:r.options,remoteInfo:f,origin:r});let h=await r.sharedHandler.hooks.lifecycle.afterResolve.emit({id:i,...a,options:r.options,origin:r,remoteInfo:f}),{remote:p,expose:m}=h;o.assert(p&&m,`The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ${i}.`);let g=r.moduleCache.get(p.name),y={host:r,remoteInfo:f};return g||(g=new d.Module(y),r.moduleCache.set(p.name,g)),{module:g,moduleOptions:y,remoteMatchInfo:h}}registerRemote(e,t,r){let{host:n}=this,i=()=>{if(e.alias){let r=t.find(t=>e.alias&&(t.name.startsWith(e.alias)||t.alias?.startsWith(e.alias)));o.assert(!r,`The alias ${e.alias} of remote ${e.name} is not allowed to be the prefix of ${r&&r.name} name or alias`)}"entry"in e&&b.isBrowserEnvValue&&"u">typeof window&&!e.entry.startsWith("http")&&(e.entry=new URL(e.entry,window.location.origin).href),e.shareScope||(e.shareScope=a.DEFAULT_SCOPE),e.type||(e.type=a.DEFAULT_REMOTE_TYPE)};this.hooks.lifecycle.beforeRegisterRemote.emit({remote:e,origin:n});let s=t.find(t=>t.name===e.name);if(s){let o=[`The remote "${e.name}" is already registered.`,"Please note that overriding it may cause unexpected errors."];r?.force&&(this.removeRemote(s),i(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:n}),(0,b.warn)(o.join(" ")))}else i(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:n})}removeRemote(e){try{let{host:t}=this,{name:r}=e,o=t.options.remotes.findIndex(e=>e.name===r);-1!==o&&t.options.remotes.splice(o,1);let a=i.getInfoWithoutType(i.CurrentGlobal.__FEDERATION__.moduleInfo,n.getFMId(e)).key;delete i.CurrentGlobal.__FEDERATION__.moduleInfo[a],"entry"in e&&(t.snapshotHandler.manifestCache.delete(e.entry),delete i.Global.__FEDERATION__.__MANIFEST_LOADING__[e.entry]);let{hostGlobalSnapshot:l}=E.getGlobalRemoteInfo(e,t);if(l){let t=l&&"remotesInfo"in l&&l.remotesInfo&&i.getInfoWithoutType(l.remotesInfo,e.name).key;t&&delete l.remotesInfo[t]}let u=t.moduleCache.get(e.name);if(u){let r=u.remoteInfo,o=r.entryGlobalName;i.CurrentGlobal[o]&&(Object.getOwnPropertyDescriptor(i.CurrentGlobal,o)?.configurable?delete i.CurrentGlobal[o]:i.CurrentGlobal[o]=void 0);let n=c.getRemoteEntryUniqueKey(u.remoteInfo);i.globalLoading[n]&&delete i.globalLoading[n];let a=r.buildVersion?(0,b.composeKeyWithSeparator)(r.name,r.buildVersion):r.name,l=i.CurrentGlobal.__FEDERATION__.__INSTANCES__.findIndex(e=>r.buildVersion?e.options.id===a:e.name===a);if(-1!==l){let e=i.CurrentGlobal.__FEDERATION__.__INSTANCES__[l];a=e.options.id||a;let t=s.getGlobalShareScope(),o=!0,n=[];Object.keys(t).forEach(e=>{let i=t[e];i&&Object.keys(i).forEach(t=>{let a=i[t];a&&Object.keys(a).forEach(i=>{let s=a[i];s&&Object.keys(s).forEach(a=>{let l=s[a];l&&"object"==typeof l&&l.from===r.name&&(l.loaded||l.loading?(l.useIn=l.useIn.filter(e=>e!==r.name),l.useIn.length?o=!1:n.push([e,t,i,a])):n.push([e,t,i,a]))})})})}),o&&(e.shareScopeMap={},delete t[a]),n.forEach(([e,r,o,n])=>{delete t[e]?.[r]?.[o]?.[n]}),i.CurrentGlobal.__FEDERATION__.__INSTANCES__.splice(l,1)}t.moduleCache.delete(e.name)}}catch(e){o.logger.error(`removeRemote failed: ${e instanceof Error?e.message:String(e)}`)}}}},36937(e,t,r){let o=r(36434),n=r(82098);r(16128),t.DisabledSharedHandler=class{constructor(){this.shareScopeMap={},this.hooks=new n.PluginSystem({afterResolve:new o.AsyncWaterfallHook("afterResolve")})}registerShared(){return{newShareInfos:{},allShareInfos:{}}}loadShare(){throw Error("Shared dependency loading is disabled by experiments.optimization.disableShared.")}loadShareSync(){throw Error("Shared dependency loading is disabled by experiments.optimization.disableShared.")}initializeSharing(){return[]}initShareScopeMap(e,t){this.shareScopeMap[e]=t}}},90211(e,t,r){let o=r(34647),n=r(73897),i=r(54928),a=r(40660);r(98073);let s=r(23504),l=r(99101),c=r(14636),u=r(36434),f=r(82098);r(16128);let d=r(69512);t.SharedHandler=class{constructor(e){this.hooks=new f.PluginSystem({beforeRegisterShare:new c.SyncWaterfallHook("beforeRegisterShare"),afterResolve:new u.AsyncWaterfallHook("afterResolve"),beforeLoadShare:new u.AsyncWaterfallHook("beforeLoadShare"),loadShare:new l.AsyncHook,afterLoadShare:new s.SyncHook("afterLoadShare"),errorLoadShare:new s.SyncHook("errorLoadShare"),resolveShare:new c.SyncWaterfallHook("resolveShare"),initContainerShareScopeMap:new c.SyncWaterfallHook("initContainerShareScopeMap")}),this.host=e,this.shareScopeMap={},this.initTokens={},this._setGlobalShareScopeMap(e.options)}emitAfterLoadShare({lifecycle:e,pkgName:t,shareInfo:r,selectedShared:n}){try{this.hooks.lifecycle.afterLoadShare.emit({pkgName:t,shareInfo:r,selectedShared:n,shared:this.host.options.shared,shareScopeMap:this.shareScopeMap,lifecycle:e,origin:this.host})}catch(e){o.warn(e)}}emitErrorLoadShare({lifecycle:e,pkgName:t,shareInfo:r,error:n,recovered:i}){try{this.hooks.lifecycle.errorLoadShare.emit({pkgName:t,shareInfo:r,shared:this.host.options.shared,shareScopeMap:this.shareScopeMap,lifecycle:e,origin:this.host,error:n,recovered:i})}catch(e){o.warn(e)}}registerShared(e,t){let{newShareInfos:r,allShareInfos:o}=i.formatShareConfigs(e,t);return Object.keys(r).forEach(e=>{r[e].forEach(r=>{r.scope.forEach(o=>{this.hooks.lifecycle.beforeRegisterShare.emit({origin:this.host,pkgName:e,shared:r}),this.shareScopeMap[o]?.[e]||this.setShared({pkgName:e,lib:r.lib,get:r.get,loaded:r.loaded||!!r.lib,shared:r,from:t.name})})})}),{newShareInfos:r,allShareInfos:o}}async loadShare(e,t){let{host:r}=this,n=i.getTargetSharedOptions({pkgName:e,extraOptions:t,shareInfos:r.options.shared}),a=n;try{n?.scope&&await Promise.all(n.scope.map(async e=>{await Promise.all(this.initializeSharing(e,{strategy:n.strategy}))})),a=(await this.hooks.lifecycle.beforeLoadShare.emit({pkgName:e,shareInfo:n,shared:r.options.shared,origin:r})).shareInfo,o.assert(a,`Cannot find shared "${e}" in host "${r.options.name}". Ensure the shared config for "${e}" is declared in the federation plugin options and the host has been initialized before loading shares.`);let s=a,{shared:l,useTreesShaking:c}=i.getRegisteredShare(this.shareScopeMap,e,a,this.hooks.lifecycle.resolveShare)||{};if(l){let t=i.directShare(l,c);if(t.lib)return i.addUseIn(t,r.options.name),this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:s,selectedShared:l}),t.lib;if(t.loading&&!t.loaded){let o=await t.loading;return t.loaded=!0,t.lib||(t.lib=o),i.addUseIn(t,r.options.name),this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:s,selectedShared:l}),o}{let o=(async()=>{let e=await t.get();return i.addUseIn(t,r.options.name),t.loaded=!0,t.lib=e,e})();this.setShared({pkgName:e,loaded:!1,shared:l,from:r.options.name,lib:null,loading:o,treeShaking:c?t:void 0});let n=await o;return this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:s,selectedShared:l}),n}}{if(t?.customShareInfo)return this.emitErrorLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:s,recovered:!0}),!1;let o=i.shouldUseTreeShaking(s.treeShaking),n=i.directShare(s,o),a=(async()=>{let t=await n.get();n.lib=t,n.loaded=!0,i.addUseIn(n,r.options.name);let{shared:o,useTreesShaking:a}=i.getRegisteredShare(this.shareScopeMap,e,s,this.hooks.lifecycle.resolveShare)||{};if(o){let e=i.directShare(o,a);e.lib=t,e.loaded=!0,o.from=s.from}return t})();this.setShared({pkgName:e,loaded:!1,shared:s,from:r.options.name,lib:null,loading:a,treeShaking:o?n:void 0});let l=await a;return this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:s,selectedShared:s}),l}}catch(t){throw this.emitErrorLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:a,error:t}),t}}initializeSharing(e=n.DEFAULT_SCOPE,t){let{host:r}=this,o=t?.from,a=t?.strategy,s=t?.initScope,l=[];if("build"!==o){let{initTokens:t}=this;s||(s=[]);let r=t[e];if(r||(r=t[e]={from:this.host.name}),s.indexOf(r)>=0)return l;s.push(r)}let c=this.shareScopeMap,u=r.options.name;c[e]||(c[e]={});let f=c[e],d=async e=>{let t,{module:o}=await r.remoteHandler.getRemoteModuleAndOptions({id:e});try{t=await o.getEntry()}catch(n){if(!(t=await r.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:n,from:"runtime",lifecycle:"beforeLoadShare",remote:o.remoteInfo,origin:r})))return}finally{t?.init&&!o.initing&&(o.remoteEntryExports=t,await o.init(void 0,void 0,s))}};return Object.keys(r.options.shared).forEach(t=>{r.options.shared[t].forEach(r=>{r.scope.includes(e)&&((e,t)=>{let{version:r,eager:o}=t;f[e]=f[e]||{};let n=f[e],a=n[r]&&i.directShare(n[r]),s=!!(a&&("eager"in a&&a.eager||"shareConfig"in a&&a.shareConfig?.eager));(!a||"loaded-first"!==a.strategy&&!a.loaded&&(!o!=!s?o:u>n[r].from))&&(n[r]=t)})(t,r)})}),("version-first"===r.options.shareStrategy||"version-first"===a)&&r.options.remotes.forEach(t=>{t.shareScope===e&&l.push(d(t.name))}),l}loadShareSync(e,t){let{host:r}=this,n=i.getTargetSharedOptions({pkgName:e,extraOptions:t,shareInfos:r.options.shared});try{n?.scope&&n.scope.forEach(e=>{this.initializeSharing(e,{strategy:n.strategy})});let{shared:s}=i.getRegisteredShare(this.shareScopeMap,e,n,this.hooks.lifecycle.resolveShare)||{};if(s){if("function"==typeof s.lib)return i.addUseIn(s,r.options.name),s.loaded||(s.loaded=!0,s.from===r.options.name&&(n.loaded=!0)),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:n,selectedShared:s}),s.lib;if("function"==typeof s.get){let t=s.get();if(!(t instanceof Promise))return i.addUseIn(s,r.options.name),this.setShared({pkgName:e,loaded:!0,from:r.options.name,lib:t,shared:s}),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:n,selectedShared:s}),t}}if(n.lib)return n.loaded||(n.loaded=!0),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:n,selectedShared:n}),n.lib;if(n.get){let i=n.get();return i instanceof Promise&&o.error(t?.from==="build"?d.RUNTIME_005:d.RUNTIME_006,d.runtimeDescMap,{hostName:r.options.name,sharedPkgName:e},void 0,a.optionsToMFContext(r.options)),n.lib=i,this.setShared({pkgName:e,loaded:!0,from:r.options.name,lib:n.lib,shared:n}),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:n,selectedShared:n}),n.lib}o.error(d.RUNTIME_006,d.runtimeDescMap,{hostName:r.options.name,sharedPkgName:e},void 0,a.optionsToMFContext(r.options))}catch(t){throw this.emitErrorLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:n,error:t}),t}}initShareScopeMap(e,t,r={}){let{host:o}=this;this.shareScopeMap[e]=t,this.hooks.lifecycle.initContainerShareScopeMap.emit({shareScope:t,options:o.options,origin:o,scopeName:e,hostShareScopeMap:r.hostShareScopeMap})}setShared({pkgName:e,shared:t,from:r,lib:o,loading:n,loaded:i,get:a,treeShaking:s}){let{version:l,scope:c="default",...u}=t;(Array.isArray(c)?c:[c]).forEach(t=>{let c,f;this.shareScopeMap[t]||(this.shareScopeMap[t]={}),this.shareScopeMap[t][e]||(this.shareScopeMap[t][e]={}),this.shareScopeMap[t][e][l]||(this.shareScopeMap[t][e][l]={version:l,scope:[t],...u,lib:o});let d=this.shareScopeMap[t][e][l];(c=(e,t,r)=>{r&&!e[t]&&(e[t]=r)})(f=s?d.treeShaking:d,"loaded",i),c(f,"loading",n),c(f,"get",a),r&&d.from!==r&&(d.from=r)})}_setGlobalShareScopeMap(e){let t=i.getGlobalShareScope(),r=e.id||e.name;r&&!t[r]&&(t[r]=this.shareScopeMap)}}},2924(e,t,r){var o=r(2219).__exportAll({});Object.defineProperty(t,"type_exports",{enumerable:!0,get:function(){return o}})},40660(e,t){function r(e){return{name:e.name,alias:e.alias,entry:"entry"in e?e.entry:void 0,version:"version"in e?e.version:void 0,type:e.type,entryGlobalName:e.entryGlobalName,shareScope:e.shareScope}}t.optionsToMFContext=function(e){let t={};for(let[r,o]of Object.entries(e.shared)){let e=o[0];e&&(t[r]={version:e.version,singleton:e.shareConfig?.singleton,requiredVersion:e.shareConfig?.requiredVersion!==!1&&e.shareConfig?.requiredVersion,eager:e.eager,strictVersion:e.shareConfig?.strictVersion})}return{project:{name:e.name,mfRole:e.remotes?.length>0?"host":"unknown"},mfConfig:{name:e.name,remotes:e.remotes?.map(r)??[],shared:t}}}},75612(e,t,r){r(36757),t.getBuilderId=function(){return"@openmrs/esm-app-shell:10.0.1-pre.5539"}},99101(e,t,r){let o=r(23504);t.AsyncHook=class extends o.SyncHook{emit(...e){let t,r=Array.from(this.listeners);if(r.length>0){let o=0,n=t=>!1!==t&&(o<r.length?Promise.resolve(r[o++].apply(null,e)).then(r=>void 0===r||1===e.length&&r===e[0]?n(t):n(r)):t);t=n()}return Promise.resolve(t)}}},36434(e,t,r){let o=r(34647),n=r(91557),i=r(23504),a=r(14636);t.AsyncWaterfallHook=class extends i.SyncHook{constructor(e){super(),this.onerror=o.error,this.type=e}emit(e){n.isObject(e)||o.error(`The response data for the "${this.type}" hook must be an object.`);let t=Array.from(this.listeners);if(t.length>0){let r=0,n=t=>(o.warn(t),this.onerror(t),e),i=o=>{if(void 0!==o&&a.checkReturnData(e,o))e=o;else if(void 0!==o)return this.onerror(`A plugin returned an incorrect value for the "${this.type}" type.`),e;if(r<t.length)try{return Promise.resolve(t[r++](e)).then(i,n)}catch(e){return n(e)}return e};return Promise.resolve(i(e))}return Promise.resolve(e)}}},16128(e,t,r){r(23504),r(99101),r(14636),r(36434),r(82098)},82098(e,t,r){let o=r(34647),n=r(91557);r(98073),t.PluginSystem=class{constructor(e){this.registerPlugins={},this.lifecycle=e,this.lifecycleKeys=Object.keys(e)}applyPlugin(e,t){o.assert(n.isPlainObject(e),"Plugin configuration is invalid.");let r=e.name;o.assert(r,"A name must be provided by the plugin."),this.registerPlugins[r]||(this.registerPlugins[r]=e,e.apply?.(t),Object.keys(this.lifecycle).forEach(t=>{let r=e[t];r&&this.lifecycle[t].on(r)}))}removePlugin(e){o.assert(e,"A name is required.");let t=this.registerPlugins[e];o.assert(t,`The plugin "${e}" is not registered.`),Object.keys(t).forEach(e=>{"name"!==e&&this.lifecycle[e].remove(t[e])})}}},23504(e,t){t.SyncHook=class{constructor(e){this.type="",this.listeners=new Set,e&&(this.type=e)}on(e){"function"==typeof e&&this.listeners.add(e)}once(e){let t=this;this.on(function r(...o){return t.remove(r),e.apply(null,o)})}emit(...e){let t;return this.listeners.size>0&&this.listeners.forEach(r=>{let o=r(...e);void 0!==o&&(t=o)}),t}remove(e){this.listeners.delete(e)}removeAll(){this.listeners.clear()}}},14636(e,t,r){let o=r(34647),n=r(91557),i=r(23504);function a(e,t){if(!n.isObject(t))return!1;if(e!==t){for(let r in e)if(!(r in t))return!1}return!0}t.SyncWaterfallHook=class extends i.SyncHook{constructor(e){super(),this.onerror=o.error,this.type=e}emit(e){for(let t of(n.isObject(e)||o.error(`The data for the "${this.type}" hook should be an object.`),this.listeners))try{let r=t(e);if(void 0===r)continue;if(a(e,r))e=r;else{this.onerror(`A plugin returned an unacceptable value for the "${this.type}" type.`);break}}catch(e){o.warn(e),this.onerror(e)}return e}},t.checkReturnData=a},98073(e,t,r){r(34647),r(91557),r(75612),r(48316),r(23038),r(77179),r(40660),r(36757)},77179(e,t,r){let o=r(34647),n=r(11772),i=r(73897),a=r(36757),s=r(69512),l=".then(callbacks[0]).catch(callbacks[1])";function c(e){return"esm"===e||"module"===e}async function u({entry:e,remoteEntryExports:t}){return new Promise((r,n)=>{try{t?r(t):"u">typeof FEDERATION_ALLOW_NEW_FUNCTION?Function("callbacks",`import("${e}")${l}`)([r,n]):import(e).then(r).catch(n)}catch(t){o.error(`Failed to load ESM entry from "${e}". ${t instanceof Error?t.message:String(t)}`)}})}async function f({entry:e,remoteEntryExports:t}){return new Promise((r,n)=>{try{t?r(t):Function("callbacks",`System.import("${e}")${l}`)([r,n])}catch(t){o.error(`Failed to load SystemJS entry from "${e}". ${t instanceof Error?t.message:String(t)}`)}})}async function d({name:e,globalName:t,entry:r,remoteInfo:i,loaderHook:l,getEntryUrl:c,resourceContext:u}){let{entryExports:f}=n.getRemoteEntryExports(e,t);if(f)return f;let h=c?c(r):r;return(0,a.loadScript)(h,{attrs:{},createScriptHook:(e,t)=>{let r=l.lifecycle.createScript.emit({url:e,attrs:t,remoteInfo:i,resourceContext:u?{...u,url:e}:void 0});if(r&&(r instanceof HTMLScriptElement||"script"in r||"timeout"in r))return r}}).then(()=>(function(e,t,r){let{remoteEntryKey:i,entryExports:a}=n.getRemoteEntryExports(e,t);return a||o.error(s.RUNTIME_001,s.runtimeDescMap,{remoteName:e,remoteEntryUrl:r,remoteEntryKey:i}),a})(e,t,r),t=>{let r=t instanceof Error?t.message:String(t);o.error(s.RUNTIME_008,s.runtimeDescMap,{remoteName:e,resourceUrl:h},r)})}async function h({remoteInfo:e,remoteEntryExports:t,loaderHook:r,getEntryUrl:o,resourceContext:n}){let{entry:i,entryGlobalName:a,name:s,type:l}=e;return c(l)?u({entry:i,remoteEntryExports:t}):"system"===l?f({entry:i,remoteEntryExports:t}):d({entry:i,globalName:a,name:s,remoteInfo:e,loaderHook:r,getEntryUrl:o,resourceContext:n})}function p(e){let{entry:t,name:r}=e;return(0,a.composeKeyWithSeparator)(r,t)}async function m(e){let{origin:t,remoteEntryExports:r,remoteInfo:o,getEntryUrl:i,resourceContext:a,_inErrorHandling:l=!1}=e,c=p(o);if(r)return r;if(!n.globalLoading[c]){let e=t.remoteHandler.hooks.lifecycle.loadEntry,u=t.loaderHook;n.globalLoading[c]=e.emit({origin:t,loaderHook:u,remoteInfo:o,remoteEntryExports:r}).then(e=>e||h({remoteInfo:o,remoteEntryExports:r,loaderHook:u,getEntryUrl:i,resourceContext:a})).then(async e=>(await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:o,remoteEntryExports:e}),e)).catch(async e=>{let i=p(o),a=e instanceof Error&&e.message.includes("ScriptExecutionError");if(e instanceof Error&&e.message.includes(s.RUNTIME_008)&&!a&&!l){let e=await t.loaderHook.lifecycle.loadEntryError.emit({getRemoteEntry:e=>m({...e,_inErrorHandling:!0}),origin:t,remoteInfo:o,remoteEntryExports:r,globalLoading:n.globalLoading,uniqueKey:i});if(e)return await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:o,remoteEntryExports:e,recovered:!0}),e}throw await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:o,error:e}),e})}return n.globalLoading[c]}t.getRemoteEntry=m,t.getRemoteEntryUniqueKey=p,t.getRemoteInfo=function(e){return{...e,entry:"entry"in e?e.entry:"",type:e.type||i.DEFAULT_REMOTE_TYPE,entryGlobalName:e.entryGlobalName||e.name,shareScope:e.shareScope||i.DEFAULT_SCOPE}},t.isEsmRemoteType=c},34647(e,t,r){let o=r(36757),n=r(52900),i="[ Federation Runtime ]",a=(0,o.createLogger)(i);function s(e,t,r,o,a){if(void 0!==t)return(0,n.logAndReport)(e,t,r??{},e=>{throw Error(`${i}: ${e}`)},o,a);if(e instanceof Error)throw e.message.startsWith(i)||(e.message=`${i}: ${e.message}`),e;throw Error(`${i}: ${e}`)}t.assert=function(e,t,r,o,n){e||(void 0!==r?s(t,r,o,void 0,n):s(t))},t.error=s,t.logger=a,t.warn=function(e){e instanceof Error&&(e.message.startsWith(i)||(e.message=`${i}: ${e.message}`)),a.warn(e)}},48316(e,t){t.composeRemoteRequestId=function(e,t){return t&&"."!==t?`${e}/${t.replace(/^\.\//,"")}`:e},t.matchRemote=function(e,t){for(let r of e)if(t===r.name||r.alias&&t===r.alias)return r},t.matchRemoteWithNameAndExpose=function(e,t){for(let r of e){let e=t.startsWith(r.name),o=t.replace(r.name,"");if(e){if(o.startsWith("/"))return{pkgNameOrAlias:r.name,expose:o=`.${o}`,remote:r};else if(""===o)return{pkgNameOrAlias:r.name,expose:".",remote:r}}let n=r.alias&&t.startsWith(r.alias),i=r.alias&&t.replace(r.alias,"");if(r.alias&&n){if(i&&i.startsWith("/"))return{pkgNameOrAlias:r.alias,expose:i=`.${i}`,remote:r};else if(""===i)return{pkgNameOrAlias:r.alias,expose:".",remote:r}}}}},23038(e,t,r){let o=r(11772);t.registerPlugins=function(e,t){let r=o.getGlobalHostPlugins(),n=[t.hooks,t.remoteHandler.hooks,t.sharedHandler.hooks,t.snapshotHandler.hooks,t.loaderHook,t.bridgeHook];return r.length>0&&r.forEach(t=>{e?.find(e=>e.name!==t.name)&&e.push(t)}),e&&e.length>0&&e.forEach(e=>{n.forEach(r=>{r.applyPlugin(e,t)})}),e}},6474(e,t,r){let o=r(34647),n=r(48316),i=r(77179),a=r(36757);function s(e){return{resourceCategory:"sync",share:!0,depsRemote:!0,...e}}function l(e){return e instanceof Error&&(e.message.includes("timed out")||e.name.includes("Timeout"))}function c(e,t,r,o){return{url:t,status:r,resourceType:e.resourceType,initiator:e.initiator,id:e.id,error:o}}async function u(e,t,r,o){let n=e.moduleCache.get(r.name),a=r.entry;if(n?.remoteEntryExports)return c(o,a,"cached");try{if(!await i.getRemoteEntry({origin:e,remoteInfo:r,remoteEntryExports:n?.remoteEntryExports,resourceContext:{...o,url:a}}))throw Error(`Failed to load remoteEntry "${a}".`);return c(o,a,"success")}catch(e){return c(o,a,l(e)?"timeout":"error",e)}}function f({host:e,remoteInfo:t,url:r,attrs:o,context:n,needDeleteLink:i}){return new Promise(s=>{let{link:u,needAttach:f}=(0,a.createLink)({url:r,cb:()=>{s(c(n,r,f?"success":"cached"))},onErrorCallback:e=>{s(c(n,r,l(e)?"timeout":"error",e))},attrs:o,createLinkHook:(r,o)=>{let i=e.loaderHook.lifecycle.createLink.emit({url:r,attrs:o,remoteInfo:t,resourceContext:{...n,url:r}});return i instanceof HTMLLinkElement,i},needDeleteLink:i});f&&document.head.appendChild(u)})}function d({host:e,remoteInfo:t,url:r,attrs:o,context:n}){return new Promise(i=>{let{script:s,needAttach:u}=(0,a.createScript)({url:r,cb:()=>{i(c(n,r,u?"success":"cached"))},onErrorCallback:e=>{i(c(n,r,l(e)?"timeout":"error",e))},attrs:o,createScriptHook:(r,o)=>{let i=e.loaderHook.lifecycle.createScript.emit({url:r,attrs:o,remoteInfo:t,resourceContext:{...n,url:r}});return i instanceof HTMLScriptElement,i},needDeleteScript:!0});u&&document.head.appendChild(s)})}function h(e,t){return{...e,resourceType:t}}t.defaultPreloadArgs=s,t.formatPreloadArgs=function(e,t){return t.map(t=>{let r=n.matchRemote(e,t.nameOrAlias);return o.assert(r,`Unable to preload ${t.nameOrAlias} as it is not included in ${!r&&(0,a.safeToString)({remoteInfo:r,remotes:e})}`),{remote:r,preloadConfig:s(t)}})},t.normalizePreloadExposes=function(e){return e?e.map(e=>"."===e?e:e.startsWith("./")?e.replace("./",""):e):[]},t.preloadAssets=function(e,t,r,o=!0,n={initiator:"preloadRemote",id:e.name}){let{cssAssets:a,jsAssetsWithoutEntry:s,entryAssets:l}=r,c=[];if(t.options.inBrowser){if(l.forEach(r=>{let{moduleInfo:o}=r;c.push(u(t,e,o,h(n,"remoteEntry")))}),o){let r={rel:"preload",as:"style"};a.forEach(o=>{c.push(f({host:t,remoteInfo:e,url:o,attrs:r,context:h(n,"css")}))})}else{let r={rel:"stylesheet",type:"text/css"};a.forEach(o=>{c.push(f({host:t,remoteInfo:e,url:o,attrs:r,needDeleteLink:!1,context:h(n,"css")}))})}let r=d,p={fetchpriority:"high",type:"text/javascript"};o?(r=f,p={rel:"preload",as:"script"}):i.isEsmRemoteType(e.type)&&(r=f,p={rel:"modulepreload",fetchpriority:"high"}),s.forEach(o=>{c.push(r({host:t,remoteInfo:e,url:o,attrs:p,context:h(n,"js")}))})}return Promise.all(c)}},35679(e,t){function r(e,t){return(e=Number(e)||e)>(t=Number(t)||t)?1:e===t?0:-1}function o(e,t){return r(e.major,t.major)||r(e.minor,t.minor)||r(e.patch,t.patch)||function(e,t){let{preRelease:o}=e,{preRelease:n}=t;if(void 0===o&&n)return 1;if(o&&void 0===n)return -1;if(void 0===o&&void 0===n)return 0;for(let e=0,t=o.length;e<=t;e++){let t=o[e],i=n[e];if(t!==i){if(void 0===t&&void 0===i)return 0;if(!t)return 1;if(!i)return -1;return r(t,i)}}return 0}(e,t)}function n(e,t){return e.version===t.version}t.compare=function(e,t){switch(e.operator){case"":case"=":return n(e,t);case">":return 0>o(e,t);case">=":return n(e,t)||0>o(e,t);case"<":return o(e,t)>0;case"<=":return n(e,t)||o(e,t)>0;case void 0:return!0;default:return!1}}},1541(e,t){let r="[0-9A-Za-z-]+",o=`(?:\\+(${r}(?:\\.${r})*))`,n="0|[1-9]\\d*",i="[0-9]+",a="\\d*[a-zA-Z-][a-zA-Z0-9-]*",s=`(?:${i}|${a})`,l=`(?:-?(${s}(?:\\.${s})*))`,c=`(?:${n}|${a})`,u=`(?:-(${c}(?:\\.${c})*))`,f=`${n}|x|X|\\*`,d=`[v=\\s]*(${f})(?:\\.(${f})(?:\\.(${f})(?:${u})?${o}?)?)?`,h=`^\\s*(${d})\\s+-\\s+(${d})\\s*$`,p=`[v=\\s]*${`(${i})\\.(${i})\\.(${i})`}${l}?${o}?`,m="((?:<|>)?=?)",g=`(\\s*)${m}\\s*(${p}|${d})`,y="(?:~>?)",E=`(\\s*)${y}\\s+`,b="(?:\\^)",S=`(\\s*)${b}\\s+`,_=`^${b}${d}$`,R=`v?${`(${n})\\.(${n})\\.(${n})`}${u}?${o}?`,I=`^${y}${d}$`,N=`^${m}\\s*${d}$`,T=`^${m}\\s*(${R})$|^$`;t.caret=_,t.caretTrim=S,t.comparator=T,t.comparatorTrim=g,t.gte0="^\\s*>=\\s*0.0.0\\s*$",t.hyphenRange=h,t.star="(<|>)?=?\\s*\\*",t.tilde=I,t.tildeTrim=E,t.xRange=N},15422(e,t,r){let o=r(6913),n=r(75699),i=r(35679);t.satisfy=function(e,t){if(!e)return!1;let r=o.extractComparator(e);if(!r)return!1;let[,a,,s,l,c,u]=r,f={operator:a,version:o.combineVersion(s,l,c,u),major:s,minor:l,patch:c,preRelease:u?.split(".")};for(let e of t.split("||")){let t=e.trim();if(!t||"*"===t||"x"===t)return!0;try{let e=o.pipe(n.parseHyphen,n.parseComparatorTrim,n.parseTildeTrim,n.parseCaretTrim)(t.trim()).split(/\s+/).join(" ");if(!e.trim())return!0;let r=e.split(" ").map(e=>o.pipe(n.parseCarets,n.parseTildes,n.parseXRanges,n.parseStar)(e)).join(" ");if(!r.trim())return!0;let a=r.split(/\s+/).map(e=>n.parseGTE0(e)).filter(Boolean);if(0===a.length)continue;let s=!0;for(let e of a){let t=o.extractComparator(e);if(!t){s=!1;break}let[,r,,n,a,l,c]=t;if(!i.compare({operator:r,version:o.combineVersion(n,a,l,c),major:n,minor:a,patch:l,preRelease:c?.split(".")},f)){s=!1;break}}if(s)return!0}catch(e){console.error(`[semver] Error processing range part "${t}":`,e);continue}}return!1}},75699(e,t,r){let o=r(1541),n=r(6913);t.parseCaretTrim=function(e){return e.replace(n.parseRegex(o.caretTrim),"$1^")},t.parseCarets=function(e){return e.trim().split(/\s+/).map(e=>e.replace(n.parseRegex(o.caret),(e,t,r,o,i)=>{if(n.isXVersion(t))return"";if(n.isXVersion(r))return`>=${t}.0.0 <${Number(t)+1}.0.0-0`;if(n.isXVersion(o))if("0"===t)return`>=${t}.${r}.0 <${t}.${Number(r)+1}.0-0`;else return`>=${t}.${r}.0 <${Number(t)+1}.0.0-0`;if(i)if("0"!==t)return`>=${t}.${r}.${o}-${i} <${Number(t)+1}.0.0-0`;else if("0"===r)return`>=${t}.${r}.${o}-${i} <${t}.${r}.${Number(o)+1}-0`;else return`>=${t}.${r}.${o}-${i} <${t}.${Number(r)+1}.0-0`;if("0"===t)if("0"===r)return`>=${t}.${r}.${o} <${t}.${r}.${Number(o)+1}-0`;else return`>=${t}.${r}.${o} <${t}.${Number(r)+1}.0-0`;return`>=${t}.${r}.${o} <${Number(t)+1}.0.0-0`})).join(" ")},t.parseComparatorTrim=function(e){return e.replace(n.parseRegex(o.comparatorTrim),"$1$2$3")},t.parseGTE0=function(e){return e.trim().replace(n.parseRegex(o.gte0),"")},t.parseHyphen=function(e){return e.replace(n.parseRegex(o.hyphenRange),(e,t,r,o,i,a,s,l,c,u,f,d)=>(t=n.isXVersion(r)?"":n.isXVersion(o)?`>=${r}.0.0`:n.isXVersion(i)?`>=${r}.${o}.0`:`>=${t}`,l=n.isXVersion(c)?"":n.isXVersion(u)?`<${Number(c)+1}.0.0-0`:n.isXVersion(f)?`<${c}.${Number(u)+1}.0-0`:d?`<=${c}.${u}.${f}-${d}`:`<=${l}`,`${t} ${l}`.trim()))},t.parseStar=function(e){return e.trim().replace(n.parseRegex(o.star),"")},t.parseTildeTrim=function(e){return e.replace(n.parseRegex(o.tildeTrim),"$1~")},t.parseTildes=function(e){return e.trim().split(/\s+/).map(e=>e.replace(n.parseRegex(o.tilde),(e,t,r,o,i)=>n.isXVersion(t)?"":n.isXVersion(r)?`>=${t}.0.0 <${Number(t)+1}.0.0-0`:n.isXVersion(o)?`>=${t}.${r}.0 <${t}.${Number(r)+1}.0-0`:i?`>=${t}.${r}.${o}-${i} <${t}.${Number(r)+1}.0-0`:`>=${t}.${r}.${o} <${t}.${Number(r)+1}.0-0`)).join(" ")},t.parseXRanges=function(e){return e.split(/\s+/).map(e=>e.trim().replace(n.parseRegex(o.xRange),(e,t,r,o,i,a)=>{let s=n.isXVersion(r),l=s||n.isXVersion(o),c=l||n.isXVersion(i);if("="===t&&c&&(t=""),a="",s)if(">"===t||"<"===t)return"<0.0.0-0";else return"*";return t&&c?(l&&(o=0),i=0,">"===t?(t=">=",l?(r=Number(r)+1,o=0):o=Number(o)+1,i=0):"<="===t&&(t="<",l?r=Number(r)+1:o=Number(o)+1),"<"===t&&(a="-0"),`${t+r}.${o}.${i}${a}`):l?`>=${r}.0.0${a} <${Number(r)+1}.0.0-0`:c?`>=${r}.${o}.0${a} <${r}.${Number(o)+1}.0-0`:e})).join(" ")}},6913(e,t,r){let o=r(1541);function n(e){return new RegExp(e)}t.combineVersion=function(e,t,r,o){let n=`${e}.${t}.${r}`;return o?`${n}-${o}`:n},t.extractComparator=function(e){return e.match(n(o.comparator))},t.isXVersion=function(e){return!e||"x"===e.toLowerCase()||"*"===e},t.parseRegex=n,t.pipe=function(...e){return t=>e.reduce((e,t)=>t(e),t)}},54928(e,t,r){let o=r(34647),n=r(91557),i=r(11772),a=r(73897),s=r(15422),l=r(36757);function c(e,t){if(!e)return!1;let{status:r,mode:o}=e;return r!==l.TreeShakingStatus.NO_USE&&(r===l.TreeShakingStatus.CALCULATED||"runtime-infer"===o&&(!t||h(e,t)))}function u(e,t){let r=e=>{if(!Number.isNaN(Number(e))){let t=e.split("."),r=e;for(let e=0;e<3-t.length;e++)r+=".0";return r}return e};return!!s.satisfy(r(e),`<=${r(t)}`)}let f=(e,t)=>{let r=t||function(e,t){return u(e,t)};return Object.keys(e).reduce((e,t)=>!e||r(e,t)||"0"===e?t:e,0)},d=e=>!!e.loaded||"function"==typeof e.lib,h=(e,t)=>{if(!e||!t)return!1;let{usedExports:r}=e;return!!r&&!!t.every(e=>r.includes(e))},p=e=>d(e)||!!e.loading;t.addUseIn=(e,t)=>{e.useIn||(e.useIn=[]),n.addUniqueItem(e.useIn,t)},t.directShare=function(e,t){return t&&e.treeShaking?e.treeShaking:e},t.formatShareConfigs=function(e,t){let r=t.shared||{},i=t.name,a=Object.keys(r).reduce((e,a)=>{let s=n.arrayOptions(r[a]);return e[a]=e[a]||[],s.forEach(r=>{var n;let s;e[a].push((n=t.shareStrategy,s="get"in r?r.get:"lib"in r?()=>Promise.resolve(r.lib):()=>Promise.resolve(()=>{o.error(`Cannot get shared "${a}" from "${i}": neither "get" nor "lib" is provided in the share config.`)}),r.shareConfig?.eager&&r.treeShaking?.mode&&o.error(`Invalid shared config for "${a}" from "${i}": cannot use both "eager: true" and "treeShaking.mode" simultaneously. Choose one strategy.`),{deps:[],useIn:[],from:i,loading:null,...r,shareConfig:{requiredVersion:`^${r.version}`,singleton:!1,eager:!1,strictVersion:!1,...r.shareConfig},get:s,loaded:!!r?.loaded||"lib"in r||void 0,version:r.version??"0",scope:Array.isArray(r.scope)?r.scope:[r.scope??"default"],strategy:(r.strategy??n)||"version-first",treeShaking:r.treeShaking?{...r.treeShaking,mode:r.treeShaking.mode??"server-calc",status:r.treeShaking.status??l.TreeShakingStatus.UNKNOWN,useIn:[]}:void 0}))}),e},{}),s={...e.shared};return Object.keys(a).forEach(e=>{s[e]?a[e].forEach(t=>{s[e].find(e=>e.version===t.version)||s[e].push(t)}):s[e]=a[e]}),{allShareInfos:s,newShareInfos:a}},t.getGlobalShareScope=function(){return i.Global.__FEDERATION__.__SHARE__},t.getRegisteredShare=function(e,t,r,n){if(!e)return;let{shareConfig:l,scope:h=a.DEFAULT_SCOPE,strategy:m,treeShaking:g}=r;for(let a of Array.isArray(h)?h:[h])if(l&&e[a]&&e[a][t]){let{requiredVersion:h}=l,{version:y,useTreesShaking:E}=("loaded-first"===m?function(e,t,r,o){let n=e[t][r],i="",a=c(o),s=function(e,t){if(a){if(!n[e].treeShaking)return!0;if(!n[t].treeShaking)return!1;if(p(n[t].treeShaking))if(p(n[e].treeShaking))return!!u(e,t);else return!0;if(p(n[e].treeShaking))return!1}if(p(n[t]))if(p(n[e]))return!!u(e,t);else return!0;return!p(n[e])&&u(e,t)};if(a){if(i=f(e[t][r],s))return{version:i,useTreesShaking:a};a=!1}return{version:f(e[t][r],s),useTreesShaking:a}}:function(e,t,r,o){let n=e[t][r],i="",a=c(o),s=function(e,t){return a?!n[e].treeShaking||!!n[t].treeShaking&&!d(n[e].treeShaking)&&u(e,t):!d(n[e])&&u(e,t)};if(a){if(i=f(e[t][r],s))return{version:i,useTreesShaking:a};a=!1}return{version:f(e[t][r],s),useTreesShaking:a}})(e,a,t,g),b=()=>{let n=e[a][t][y];if(l.singleton){if("string"==typeof h&&!s.satisfy(y,h)){let e=`Version ${y} from ${y&&n.from} of shared singleton module ${t} does not satisfy the requirement of ${r.from} which needs ${h})`;l.strictVersion?o.error(e):o.warn(e)}return{shared:n,useTreesShaking:E}}{if(!1===h||"*"===h||s.satisfy(y,h))return{shared:n,useTreesShaking:E};let r=c(g);if(r){for(let[o,n]of Object.entries(e[a][t]))if(c(n.treeShaking,g?.usedExports)&&s.satisfy(o,h))return{shared:n,useTreesShaking:r}}for(let[r,o]of Object.entries(e[a][t]))if(s.satisfy(r,h))return{shared:o,useTreesShaking:!1}}},S={shareScopeMap:e,scope:a,pkgName:t,version:y,GlobalFederation:i.Global.__FEDERATION__,shareInfo:r,resolver:b};return(n.emit(S)||S).resolver()}},t.getTargetSharedOptions=function(e){let{pkgName:t,extraOptions:r,shareInfos:o}=e,n=r?.resolver??(e=>{if(!e)return;let t={};return e.forEach(e=>{t[e.version]=e}),t[f(t,function(e,r){return!d(t[e])&&u(e,r)})]}),i=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),a=(...e)=>{let t={};for(let r of e)if(r)for(let[e,o]of Object.entries(r)){let r=t[e];i(r)&&i(o)?t[e]=a(r,o):void 0!==o&&(t[e]=o)}return t};return a(n(o[t]),r?.customShareInfo)},t.shouldUseTreeShaking=c},91557(e,t,r){let o=r(34647),n=r(36757);async function i(e,t){try{return await e()}catch(e){t||o.warn(e);return}}let a=Object.prototype.toString;t.addUniqueItem=function(e,t){return -1===e.findIndex(e=>e===t)&&e.push(t),e},t.arrayOptions=function(e){return Array.isArray(e)?e:[e]},t.getFMId=function(e){return"version"in e&&e.version?`${e.name}:${e.version}`:"entry"in e&&e.entry?`${e.name}:${e.entry}`:`${e.name}`},t.getRemoteEntryInfoFromSnapshot=function(e){let t={url:"",type:"global",globalName:""};return n.isBrowserEnvValue||(0,n.isReactNativeEnv)()||!("ssrRemoteEntry"in e)?"remoteEntry"in e?{url:e.remoteEntry,type:e.remoteEntryType,globalName:e.globalName}:t:"ssrRemoteEntry"in e?{url:e.ssrRemoteEntry||t.url,type:e.ssrRemoteEntryType||t.type,globalName:e.globalName}:t},t.isObject=function(e){return e&&"object"==typeof e},t.isPlainObject=function(e){return"[object Object]"===a.call(e)},t.isPureRemoteEntry=function(e){return!e.entry.includes(".json")},t.isRemoteInfoWithEntry=function(e){return void 0!==e.entry},t.isStaticResourcesEqual=function(e,t){let r=/^(https?:)?\/\//i;return e.replace(r,"").replace(/\/$/,"")===t.replace(r,"").replace(/\/$/,"")},t.objectToString=a,t.processModuleAlias=(e,t)=>{let r;return r=e.endsWith("/")?e.slice(0,-1):e,t.startsWith(".")&&(t=t.slice(1)),r+=t},t.safeWrapper=i},27705(e,t,r){var o=r(97011);Object.keys(o).forEach(function(e){"default"===e||Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})})},17416(e,t){var r=Object.create,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(a(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var a,l=i(t),c=0,u=l.length;c<u;c++)a=l[c],s.call(e,a)||void 0===a||o(e,a,{get:(e=>t[e]).bind(null,a),enumerable:!(r=n(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?l:o(l,"default",{value:e,enumerable:!0}),e))},97011(e,t,r){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});let o=r(17416),n=r(25063);t.default=n=o.__toESM(n),Object.keys(n).forEach(function(e){"default"===e||Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}})})},45734(e,t,r){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),r(17416);let o=r(91001),n=r(25063),i=r(69512);function a(e){let t=new((0,n.getGlobalFederationConstructor)()||n.ModuleFederation)({id:`${e.name}@${e.version||Date.now()}`,...e});return(0,n.setGlobalFederationInstance)(t),t}let s=null;(0,n.setGlobalFederationConstructor)(n.ModuleFederation),Object.defineProperty(t,"Module",{enumerable:!0,get:function(){return n.Module}}),t.ModuleFederation=n.ModuleFederation,t.createInstance=a,t.getInstance=function(e){return e?n.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(e)||null:s},Object.defineProperty(t,"getRemoteEntry",{enumerable:!0,get:function(){return n.getRemoteEntry}}),Object.defineProperty(t,"getRemoteInfo",{enumerable:!0,get:function(){return n.getRemoteInfo}}),t.init=function(e){let t=o.getGlobalFederationInstance(e.name,e.version),r={...e,id:e.id||""};return t?(t.initOptions(r),s||(s=t),t):s=a(r)},t.loadRemote=function(...e){return(0,n.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadRemote.apply(s,e)},Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return n.loadScript}}),Object.defineProperty(t,"loadScriptNode",{enumerable:!0,get:function(){return n.loadScriptNode}}),t.loadShare=function(...e){return(0,n.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadShare.apply(s,e)},t.loadShareSync=function(...e){return(0,n.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadShareSync.apply(s,e)},t.preloadRemote=function(...e){return(0,n.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.preloadRemote.apply(s,e)},Object.defineProperty(t,"registerGlobalPlugins",{enumerable:!0,get:function(){return n.registerGlobalPlugins}}),t.registerPlugins=function(...e){return(0,n.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerPlugins.apply(s,e)},t.registerRemotes=function(...e){return(0,n.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerRemotes.apply(s,e)},t.registerShared=function(...e){return(0,n.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerShared.apply(s,e)}},91001(e,t,r){r(17416);let o=r(25063);t.getGlobalFederationInstance=function(e,t){let r="@openmrs/esm-app-shell:10.0.1-pre.5539";return o.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(o=>!!r&&o.options.id===r||o.options.name===e&&!o.options.version&&!t||o.options.name===e&&!!t&&o.options.version===t)}},80541(e,t){var r=Object.defineProperty;t.__exportAll=(e,t)=>{let o={};for(var n in e)r(o,n,{get:e[n],enumerable:!0});return t||r(o,Symbol.toStringTag,{value:"Module"}),o}},45515(e,t){var r;let o={AT:"@",HYPHEN:"-",SLASH:"/"},n={[o.AT]:"scope_",[o.HYPHEN]:"_",[o.SLASH]:"__"},i={[n[o.AT]]:o.AT,[n[o.HYPHEN]]:o.HYPHEN,[n[o.SLASH]]:o.SLASH},a=((r={})[r.UNKNOWN=1]="UNKNOWN",r[r.CALCULATED=2]="CALCULATED",r[r.NO_USE=0]="NO_USE",r);t.BROWSER_LOG_KEY="FEDERATION_DEBUG",t.ENCODE_NAME_PREFIX="ENCODE_NAME_PREFIX",t.EncodedNameTransformMap=i,t.FederationModuleManifest="federation-manifest.json",t.MANIFEST_EXT=".json",t.MFModuleType={NPM:"npm",APP:"app"},t.MODULE_DEVTOOL_IDENTIFIER="__MF_DEVTOOLS_MODULE_INFO__",t.ManifestFileName="mf-manifest.json",t.NameTransformMap=n,t.NameTransformSymbol=o,t.SEPARATOR=":",t.StatsFileName="mf-stats.json",t.TEMP_DIR=".federation",t.TreeShakingStatus=a},84730(e,t){t.createModuleFederationConfig=e=>e},3765(e,t,r){let o=r(41726);async function n(e,t){try{return await e()}catch(e){t||o.warn(e);return}}function i(e,t){let r=/^(https?:)?\/\//i;return e.replace(r,"").replace(/\/$/,"")===t.replace(r,"").replace(/\/$/,"")}function a(e){let t,r=null,o=!0,a=2e4,s=document.getElementsByTagName("script");for(let t=0;t<s.length;t++){let n=s[t],a=n.getAttribute("src");if(a&&i(a,e.url)){r=n,o=!1;break}}if(!r){let t,o=e.attrs;(r=document.createElement("script")).type=o?.type==="module"?"module":"text/javascript",e.createScriptHook&&((t=e.createScriptHook(e.url,e.attrs))instanceof HTMLScriptElement?r=t:"object"==typeof t&&("script"in t&&t.script&&(r=t.script),"timeout"in t&&t.timeout&&(a=t.timeout))),r.src||(r.src=e.url),o&&!t&&Object.keys(o).forEach(e=>{r&&("async"===e||"defer"===e?r[e]=o[e]:r.getAttribute(e)||r.setAttribute(e,o[e]))})}let l=null,c="u">typeof window?t=>{if(t.filename&&i(t.filename,e.url)){let r=Error(`ScriptExecutionError: Script "${e.url}" loaded but threw a runtime error during execution: ${t.message} (${t.filename}:${t.lineno}:${t.colno})`);r.name="ScriptExecutionError",l=r}}:null;c&&window.addEventListener("error",c);let u=async(o,i)=>{clearTimeout(t),c&&window.removeEventListener("error",c);let a=()=>{if(i?.type==="error"){let t=Error(i?.isTimeout?`ScriptNetworkError: Script "${e.url}" timed out.`:`ScriptNetworkError: Failed to load script "${e.url}" - the script URL is unreachable or the server returned an error (network failure, 404, CORS, etc.)`);t.name="ScriptNetworkError",e?.onErrorCallback&&e?.onErrorCallback(t)}else l?e?.onErrorCallback&&e?.onErrorCallback(l):e?.cb&&e?.cb()};if(r&&(r.onerror=null,r.onload=null,n(()=>{let{needDeleteScript:t=!0}=e;t&&r?.parentNode&&r.parentNode.removeChild(r)}),o&&"function"==typeof o)){let e=o(i);if(e instanceof Promise){let t=await e;return a(),t}return a(),e}a()};return r.onerror=u.bind(null,r.onerror),r.onload=u.bind(null,r.onload),t=setTimeout(()=>{u(null,{type:"error",isTimeout:!0})},a),{script:r,needAttach:o}}t.createLink=function(e){let t,r=null,o=!0,a=2e4,s=document.getElementsByTagName("link");for(let t=0;t<s.length;t++){let n=s[t],a=n.getAttribute("href"),l=n.getAttribute("rel");if(a&&i(a,e.url)&&l===e.attrs.rel){r=n,o=!1;break}}if(!r){let t;(r=document.createElement("link")).setAttribute("href",e.url);let o=!0,n=e.attrs;e.createLinkHook&&((t=e.createLinkHook(e.url,n))instanceof HTMLLinkElement?(r=t,o=!1):"object"==typeof t&&("link"in t&&t.link&&(r=t.link,o=!1),"timeout"in t&&t.timeout&&(a=t.timeout))),n&&o&&Object.keys(n).forEach(e=>{r&&!r.getAttribute(e)&&r.setAttribute(e,n[e])})}if(!o)return Promise.resolve().then(()=>{e?.cb&&e?.cb()}),{link:r,needAttach:o};let l=(o,i)=>{t&&clearTimeout(t);let a=()=>{if(i?.type==="error"){let t=Error(i?.isTimeout?`LinkNetworkError: Link "${e.url}" timed out.`:`LinkNetworkError: Failed to load link "${e.url}" - the URL is unreachable or the server returned an error.`);t.name="LinkNetworkError",e?.onErrorCallback&&e?.onErrorCallback(t)}else e?.cb&&e?.cb()};if(r&&(r.onerror=null,r.onload=null,n(()=>{let{needDeleteLink:t=!0}=e;t&&r?.parentNode&&r.parentNode.removeChild(r)}),o)){let e=o(i);return a(),e}a()};return r.onerror=l.bind(null,r.onerror),r.onload=l.bind(null,r.onload),t=setTimeout(()=>{l(null,{type:"error",isTimeout:!0})},a),{link:r,needAttach:o}},t.createScript=a,t.isStaticResourcesEqual=i,t.loadScript=function(e,t){let{attrs:r={},createScriptHook:o}=t;return new Promise((t,n)=>{let{script:i,needAttach:s}=a({url:e,cb:t,onErrorCallback:n,attrs:{fetchpriority:"high",...r},createScriptHook:o,needDeleteScript:!0});s&&document.head.appendChild(i)})},t.safeWrapper=n},4776(e,t,r){let o=r(45515);t.getProcessEnv=function(){return"u">typeof process&&process.env?process.env:{}},t.isBrowserEnv=function(){return!0},t.isBrowserEnvValue=!0,t.isDebugMode=function(){if("u">typeof process&&process.env&&process.env.FEDERATION_DEBUG)return!!process.env.FEDERATION_DEBUG;if("u">typeof FEDERATION_DEBUG&&FEDERATION_DEBUG)return!0;try{if(window.localStorage)return!!localStorage.getItem(o.BROWSER_LOG_KEY)}catch(e){}return!1},t.isReactNativeEnv=function(){return"u">typeof navigator&&navigator?.product==="ReactNative"}},82989(e,t,r){let o=r(45515),n=(e,t)=>{if(!e)return t;let r=(e=>{if("."===e)return"";if(e.startsWith("./"))return e.replace("./","");if(e.startsWith("/")){let t=e.slice(1);return t.endsWith("/")?t.slice(0,-1):t}return e})(e);return r?r.endsWith("/")?`${r}${t}`:`${r}/${t}`:t};function i(e){return e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")}t.generateSnapshotFromManifest=function(e,t={}){let r,{remotes:o={},overrides:a={},version:s}=t,l=()=>"publicPath"in e.metaData?("auto"===e.metaData.publicPath||""===e.metaData.publicPath)&&s?i(s):e.metaData.publicPath:e.metaData.getPublicPath,c=Object.keys(a),u={};Object.keys(o).length||(u=e.remotes?.reduce((e,t)=>{let r,o=t.federationContainerName;return r=c.includes(o)?a[o]:"version"in t?t.version:t.entry,e[o]={matchedVersion:r},e},{})||{}),Object.keys(o).forEach(e=>u[e]={matchedVersion:c.includes(e)?a[e]:o[e]});let{remoteEntry:{path:f,name:d,type:h},types:p={path:"",name:"",zip:"",api:""},buildInfo:{buildVersion:m},globalName:g,ssrRemoteEntry:y}=e.metaData,{exposes:E}=e,b={version:s||"",buildVersion:m,globalName:g,remoteEntry:n(f,d),remoteEntryType:h,remoteTypes:n(p.path,p.name),remoteTypesZip:p.zip||"",remoteTypesAPI:p.api||"",remotesInfo:u,shared:e?.shared.map(e=>({assets:e.assets,sharedName:e.name,version:e.version,usedExports:e.referenceExports||[]})),modules:E?.map(e=>({moduleName:e.name,modulePath:e.path,assets:e.assets}))};if("publicPath"in e.metaData?(r={...b,publicPath:l()},"string"==typeof e.metaData.ssrPublicPath&&(r.ssrPublicPath=e.metaData.ssrPublicPath)):r={...b,getPublicPath:l()},y){let e=n(y.path,y.name);r.ssrRemoteEntry=e,r.ssrRemoteEntryType=y.type||"commonjs-module"}return r},t.getManifestFileName=function(e){if(!e)return{statsFileName:o.StatsFileName,manifestFileName:o.ManifestFileName};let t="boolean"==typeof e?"":e.filePath||"",r="boolean"==typeof e?"":e.fileName||"",i=".json",a=r?r.endsWith(i)?r:`${r}${i}`:o.ManifestFileName;return{statsFileName:n(t,r?a.replace(i,`-stats${i}`):o.StatsFileName),manifestFileName:n(t,a)}},t.inferAutoPublicPath=i,t.isManifestProvider=function(e){return!!("remoteEntry"in e&&e.remoteEntry.includes(o.MANIFEST_EXT))},t.simpleJoinRemoteEntry=n},36757(e,t,r){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let o=r(45515),n=r(53426),i=r(86739),a=r(59144),s=r(39466),l=r(8202),c=r(42387),u=r(4776),f=r(41726),d=r(82989),h=r(67099),p=r(3765),m=r(95307),g=r(88042),y=r(84730);t.BROWSER_LOG_KEY=o.BROWSER_LOG_KEY,t.ENCODE_NAME_PREFIX=o.ENCODE_NAME_PREFIX,t.EncodedNameTransformMap=o.EncodedNameTransformMap,t.FederationModuleManifest=o.FederationModuleManifest,t.MANIFEST_EXT=o.MANIFEST_EXT,t.MFModuleType=o.MFModuleType,t.MODULE_DEVTOOL_IDENTIFIER=o.MODULE_DEVTOOL_IDENTIFIER,t.ManifestFileName=o.ManifestFileName,t.NameTransformMap=o.NameTransformMap,t.NameTransformSymbol=o.NameTransformSymbol,t.SEPARATOR=o.SEPARATOR,t.StatsFileName=o.StatsFileName,t.TEMP_DIR=o.TEMP_DIR,t.TreeShakingStatus=o.TreeShakingStatus,t.assert=f.assert,t.bindLoggerToCompiler=h.bindLoggerToCompiler,t.composeKeyWithSeparator=f.composeKeyWithSeparator,Object.defineProperty(t,"consumeSharedPlugin",{enumerable:!0,get:function(){return l.ConsumeSharedPlugin_exports}}),Object.defineProperty(t,"containerPlugin",{enumerable:!0,get:function(){return n.ContainerPlugin_exports}}),Object.defineProperty(t,"containerReferencePlugin",{enumerable:!0,get:function(){return i.ContainerReferencePlugin_exports}}),t.createInfrastructureLogger=h.createInfrastructureLogger,t.createLink=p.createLink,t.createLogger=h.createLogger,t.createModuleFederationConfig=y.createModuleFederationConfig,t.createScript=p.createScript,t.createScriptNode=m.createScriptNode,t.decodeName=f.decodeName,t.encodeName=f.encodeName,t.error=f.error,t.generateExposeFilename=f.generateExposeFilename,t.generateShareFilename=f.generateShareFilename,t.generateSnapshotFromManifest=d.generateSnapshotFromManifest,t.getManifestFileName=d.getManifestFileName,t.getProcessEnv=u.getProcessEnv,t.getResourceUrl=f.getResourceUrl,t.inferAutoPublicPath=d.inferAutoPublicPath,t.infrastructureLogger=h.infrastructureLogger,t.isBrowserEnv=u.isBrowserEnv,t.isBrowserEnvValue=u.isBrowserEnvValue,t.isDebugMode=u.isDebugMode,t.isManifestProvider=d.isManifestProvider,t.isReactNativeEnv=u.isReactNativeEnv,t.isRequiredVersion=f.isRequiredVersion,t.isStaticResourcesEqual=p.isStaticResourcesEqual,t.loadScript=p.loadScript,t.loadScriptNode=m.loadScriptNode,t.logger=h.logger,Object.defineProperty(t,"moduleFederationPlugin",{enumerable:!0,get:function(){return a.ModuleFederationPlugin_exports}}),t.normalizeOptions=g.normalizeOptions,t.parseEntry=f.parseEntry,Object.defineProperty(t,"provideSharedPlugin",{enumerable:!0,get:function(){return c.ProvideSharedPlugin_exports}}),t.safeToString=f.safeToString,t.safeWrapper=p.safeWrapper,Object.defineProperty(t,"sharePlugin",{enumerable:!0,get:function(){return s.SharePlugin_exports}}),t.simpleJoinRemoteEntry=d.simpleJoinRemoteEntry,t.warn=f.warn},67099(e,t,r){let o=r(4776),n="[ Module Federation ]",i=console,a=["logger.ts","logger.js","captureStackTrace","Logger.emit","Logger.log","Logger.info","Logger.warn","Logger.error","Logger.debug"];var s=class{constructor(e,t=i){this.prefix=e,this.delegate=t??i}setPrefix(e){this.prefix=e}setDelegate(e){this.delegate=e??i}emit(e,t){let r=this.delegate,n=o.isDebugMode()?function(){try{let e=Error().stack;if(!e)return;let[,...t]=e.split("\n"),r=t.filter(e=>!a.some(t=>e.includes(t)));if(!r.length)return;return`Stack trace:
|
|
6
6
|
${r.slice(0,5).join("\n")}`}catch{return}}():void 0,s=n?[...t,n]:t,l=(()=>{switch(e){case"log":return["log","info"];case"info":return["info","log"];case"warn":return["warn","info","log"];case"error":return["error","warn","log"];default:return["debug","log"]}})();for(let e of l){let t=r[e];if("function"==typeof t)return void t.call(r,this.prefix,...s)}for(let e of l){let t=i[e];if("function"==typeof t)return void t.call(i,this.prefix,...s)}}log(...e){this.emit("log",e)}warn(...e){this.emit("warn",e)}error(...e){this.emit("error",e)}success(...e){this.emit("info",e)}info(...e){this.emit("info",e)}ready(...e){this.emit("info",e)}debug(...e){o.isDebugMode()&&this.emit("debug",e)}};function l(e){return new s(e)}function c(e){let t=new s(e);return Object.defineProperty(t,"__mf_infrastructure_logger__",{value:!0,enumerable:!1,configurable:!1}),t}let u=l(n),f=c(n);t.bindLoggerToCompiler=function(e,t,r){if(e.__mf_infrastructure_logger__&&t?.getInfrastructureLogger)try{let o=t.getInfrastructureLogger(r);o&&"object"==typeof o&&("function"==typeof o.log||"function"==typeof o.info||"function"==typeof o.warn||"function"==typeof o.error)&&e.setDelegate(o)}catch{e.setDelegate(void 0)}},t.createInfrastructureLogger=c,t.createLogger=l,t.infrastructureLogger=f,t.logger=u},95307(e,t){t.createScriptNode=(e,t,r,o)=>{t(Error("createScriptNode is disabled in non-Node.js environment"))},t.loadScriptNode=(e,t)=>{throw Error("loadScriptNode is disabled in non-Node.js environment")}},88042(e,t){t.normalizeOptions=function(e,t,r){return function(o){if(!1===o)return!1;if(void 0===o)if(e)return t;else return!1;if(!0===o)return t;if(o&&"object"==typeof o)return{...t,...o};throw Error(`Unexpected type for \`${r}\`, expect boolean/undefined/object, got: ${typeof o}`)}}},8202(e,t,r){var o=r(80541).__exportAll({});Object.defineProperty(t,"ConsumeSharedPlugin_exports",{enumerable:!0,get:function(){return o}})},53426(e,t,r){var o=r(80541).__exportAll({});Object.defineProperty(t,"ContainerPlugin_exports",{enumerable:!0,get:function(){return o}})},86739(e,t,r){var o=r(80541).__exportAll({});Object.defineProperty(t,"ContainerReferencePlugin_exports",{enumerable:!0,get:function(){return o}})},59144(e,t,r){var o=r(80541).__exportAll({});Object.defineProperty(t,"ModuleFederationPlugin_exports",{enumerable:!0,get:function(){return o}})},42387(e,t,r){var o=r(80541).__exportAll({});Object.defineProperty(t,"ProvideSharedPlugin_exports",{enumerable:!0,get:function(){return o}})},39466(e,t,r){var o=r(80541).__exportAll({});Object.defineProperty(t,"SharePlugin_exports",{enumerable:!0,get:function(){return o}})},41726(e,t,r){let o=r(45515),n=r(4776),i="[ Federation Runtime ]",a=function(e,t="",r=!1){try{return`${t}${e.replace(RegExp(`${o.NameTransformSymbol.AT}`,"g"),o.NameTransformMap[o.NameTransformSymbol.AT]).replace(RegExp(`${o.NameTransformSymbol.HYPHEN}`,"g"),o.NameTransformMap[o.NameTransformSymbol.HYPHEN]).replace(RegExp(`${o.NameTransformSymbol.SLASH}`,"g"),o.NameTransformMap[o.NameTransformSymbol.SLASH])}${r?".js":""}`}catch(e){throw e}},s=e=>{throw Error(`${i}: ${e}`)},l=/^([\d^=v<>~]|[*xX]$)/;t.assert=(e,t)=>{e||s(t)},t.composeKeyWithSeparator=function(...e){return e.length?e.reduce((e,t)=>t?e?`${e}${o.SEPARATOR}${t}`:t:e,""):""},t.decodeName=function(e,t,r){try{let n=e;if(t){if(!n.startsWith(t))return n;n=n.replace(RegExp(t,"g"),"")}return n=n.replace(RegExp(`${o.NameTransformMap[o.NameTransformSymbol.AT]}`,"g"),o.EncodedNameTransformMap[o.NameTransformMap[o.NameTransformSymbol.AT]]).replace(RegExp(`${o.NameTransformMap[o.NameTransformSymbol.SLASH]}`,"g"),o.EncodedNameTransformMap[o.NameTransformMap[o.NameTransformSymbol.SLASH]]).replace(RegExp(`${o.NameTransformMap[o.NameTransformSymbol.HYPHEN]}`,"g"),o.EncodedNameTransformMap[o.NameTransformMap[o.NameTransformSymbol.HYPHEN]]),r&&(n=n.replace(".js","")),n}catch(e){throw e}},t.encodeName=a,t.error=s,t.generateExposeFilename=(e,t)=>{if(!e)return"";let r=e;return"."===r&&(r="default_export"),r.startsWith("./")&&(r=r.replace("./","")),a(r,"__federation_expose_",t)},t.generateShareFilename=(e,t)=>e?a(e,"__federation_shared_",t):"",t.getResourceUrl=function(e,t){if("getPublicPath"in e){let r;return r=e.getPublicPath.startsWith("function")?Function("return "+e.getPublicPath)()():Function(e.getPublicPath)(),`${r}${t}`}return"publicPath"in e?!n.isBrowserEnv()&&!n.isReactNativeEnv()&&"ssrPublicPath"in e&&"string"==typeof e.ssrPublicPath?`${e.ssrPublicPath}${t}`:`${e.publicPath}${t}`:(console.warn("Cannot get resource URL. If in debug mode, please ignore.",e,t),"")},t.isRequiredVersion=function(e){return l.test(e)},t.parseEntry=(e,t,r=o.SEPARATOR)=>{let i=e.split(r),a="development"===n.getProcessEnv().NODE_ENV&&t,s=e=>e.startsWith("http")||e.includes(o.MANIFEST_EXT);if(i.length>=2){let[t,...o]=i;e.startsWith(r)&&(t=i.slice(0,2).join(r),o=[a||i.slice(2).join(r)]);let n=a||o.join(r);return s(n)?{name:t,entry:n}:{name:t,version:n||"*"}}if(1===i.length){let[e]=i;return a&&s(a)?{name:e,entry:a}:{name:e,version:a||"*"}}throw`Invalid entry value: ${e}`},t.safeToString=function(e){try{return JSON.stringify(e,null,2)}catch(e){return""}},t.warn=e=>{console.warn(`${i}: ${e}`)}},73162(e,t){var r=Object.create,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(a(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var a,l=i(t),c=0,u=l.length;c<u;c++)a=l[c],s.call(e,a)||void 0===a||o(e,a,{get:(e=>t[e]).bind(null,a),enumerable:!(r=n(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?l:o(l,"default",{value:e,enumerable:!0}),e))},58262(e,t){t.attachShareScopeMap=function(e){e.S&&!e.federation.hasAttachShareScopeMap&&e.federation.instance&&e.federation.instance.shareScopeMap&&(e.S=e.federation.instance.shareScopeMap,e.federation.hasAttachShareScopeMap=!0)}},81148(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.FEDERATION_SUPPORTED_TYPES=["script"]},91229(e,t,r){let o=r(58262),n=r(21163),i=r(24476),a=r(1532),s=r(53602);t.consumes=function(e){n.updateConsumeOptions(e);let{chunkId:t,promises:r,installedModules:l,webpackRequire:c,chunkMapping:u,moduleToHandlerMapping:f}=e;o.attachShareScopeMap(c),c.o(u,t)&&u[t].forEach(e=>{if(c.o(l,e))return r.push(l[e]);let t=t=>{l[e]=0,c.m[e]=r=>{delete c.c[e];let o=t(),{shareInfo:n}=f[e];if(n?.shareConfig?.layer&&o&&"object"==typeof o)try{o.hasOwnProperty("layer")&&void 0!==o.layer||(o.layer=n.shareConfig.layer)}catch(e){}r.exports=o}},o=t=>{delete l[e],c.m[e]=r=>{throw delete c.c[e],t}};try{let n=c.federation.instance;if(!n)throw Error("Federation instance not found!");let{shareKey:u,getter:d,shareInfo:h,treeShakingGetter:p}=f[e],m=i.getUsedExports(c,u),g={...h};Array.isArray(g.scope)&&Array.isArray(g.scope[0])&&(g.scope=g.scope[0]),m&&(g.treeShaking={usedExports:m,useIn:[n.options.name]});let y=n.loadShare(u,{customShareInfo:g}).then(e=>{if(!1===e){if("function"!=typeof d)throw Error(s.getShortErrorMsg(a.RUNTIME_012,{[a.RUNTIME_012]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.'},{shareKey:u}));return p?.()||d()}return e});y.then?r.push(l[e]=y.then(t).catch(o)):t(y)}catch(e){o(e)}})}},1532(e,t){t.RUNTIME_012="RUNTIME-012"},53602(e,t){t.getShortErrorMsg=(e,t,r,o)=>{let n=[`${[t[e]]} #${e}`];return r&&n.push(`args: ${JSON.stringify(r)}`),n.push(`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`),o&&n.push(`Original Error Message:
|
|
7
7
|
${o}`),n.join("\n")}},252(e,t){t.getSharedFallbackGetter=({shareKey:e,factory:t,version:r,webpackRequire:o,libraryType:n="global"})=>{let{runtime:i,instance:a,bundlerRuntime:s,sharedFallback:l}=o.federation;if(!l)return t;let c=l[e];if(!c)return t;let u=r?c.find(e=>e[1]===r):c[0];if(!u)throw Error(`No fallback item found for shareKey: ${e} and version: ${r}`);return()=>i.getRemoteEntry({origin:o.federation.instance,remoteInfo:{name:u[2],entry:`${o.p}${u[0]}`,type:n,entryGlobalName:u[2],shareScope:"default"}}).then(t=>{if(!t)throw Error(`Failed to load fallback entry for shareKey: ${e} and version: ${r}`);return t.init(o.federation.instance,s).then(()=>t.get())})}},24476(e,t){t.getUsedExports=function(e,t){let r=e.federation.usedExports;if(r)return r[t]}},88516(e,t,r){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});let o=r(73162),n=r(58262),i=r(57245),a=r(91229),s=r(87706),l=r(29982);r(66605);let c=r(16582),u=r(252),f=r(45734);f=o.__toESM(f);let d={remotes:i.remotes,consumes:a.consumes,I:s.initializeSharing,S:{},installInitialConsumes:l.installInitialConsumes,initContainerEntry:void 0,init:c.init,getSharedFallbackGetter:u.getSharedFallbackGetter},h={runtime:f,instance:void 0,initOptions:void 0,bundlerRuntime:d,attachShareScopeMap:n.attachShareScopeMap,bundlerRuntimeOptions:{}},p=h.instance,m=h.initOptions,g=h.bundlerRuntimeOptions;t.attachShareScopeMap=n.attachShareScopeMap,t.bundlerRuntime=d,t.bundlerRuntimeOptions=g,t.default=h,t.initOptions=m,t.instance=p,Object.defineProperty(t,"runtime",{enumerable:!0,get:function(){return f}})},16582(e,t,r){let o=r(73162),n=r(45734),i=r(23926);i=o.__toESM(i),t.init=function({webpackRequire:e}){let{initOptions:t,runtime:o,sharedFallback:a,bundlerRuntime:s,libraryType:l}=e.federation;if(!t)throw Error("initOptions is required!");return t.plugins||=[],t.plugins.push({name:"tree-shake-plugin",beforeInit(t){let{userOptions:o,origin:c,options:u}=t,f=o.version||u.version;if(!a)return t;let d=o.shared||{},h=[];Object.keys(d).forEach(t=>{(Array.isArray(d[t])?d[t]:[d[t]]).forEach(r=>{h.push([t,r]),"get"in r&&(r.treeShaking||={},r.treeShaking.get=r.get,r.get=s.getSharedFallbackGetter({shareKey:t,factory:r.get,webpackRequire:e,libraryType:l,version:r.version}))})});let p=i.default.global.getGlobalSnapshotInfoByModuleInfo({name:c.name,version:f});return p&&"shared"in p&&(Object.keys(u.shared||{}).forEach(e=>{u.shared[e].forEach(t=>{h.push([e,t])})}),h.forEach(([e,t])=>{((e,t)=>{let o=p.shared.find(t=>t.sharedName===e);if(!o)return;let{treeShaking:i}=t;if(!i)return;let{secondarySharedTreeShakingName:a,secondarySharedTreeShakingEntry:s,treeShakingStatus:u}=o;i.status!==u&&(i.status=u,s&&l&&a&&(i.get=async()=>{let e=await (0,n.getRemoteEntry)({origin:c,remoteInfo:{name:a,entry:s,type:l,entryGlobalName:a,shareScope:"default"}});return await e.init(c,r.federation.bundlerRuntime),e.get()}))})(e,t)})),t}}),o.init(t)}},66605(e,t){t.initContainerEntry=function(e){let{webpackRequire:t,shareScope:r,initScope:o,shareScopeKey:n,remoteEntryInitOptions:i}=e;if(!t.S||!t.federation||!t.federation.instance||!t.federation.initOptions)return;let a=t.federation.instance;a.initOptions({name:t.federation.initOptions.name,remotes:[],...i});let s=i?.shareScopeKeys,l=i?.shareScopeMap;if(n&&"string"!=typeof n)n.forEach(e=>{if(!s||!l)return void a.initShareScopeMap(e,r,{hostShareScopeMap:i?.shareScopeMap||{}});l[e]||(l[e]={});let t=l[e];a.initShareScopeMap(e,t,{hostShareScopeMap:i?.shareScopeMap||{}})});else{let e=n||"default";Array.isArray(s)?s.forEach(e=>{l[e]||(l[e]={});let t=l[e];a.initShareScopeMap(e,t,{hostShareScopeMap:i?.shareScopeMap||{}})}):a.initShareScopeMap(e,r,{hostShareScopeMap:i?.shareScopeMap||{}})}return(t.federation.attachShareScopeMap&&t.federation.attachShareScopeMap(t),Array.isArray(n))?t.federation.initOptions.shared?t.I(n,o):Promise.all(n.map(e=>t.I(e,o))).then(()=>!0):t.I(n||"default",o)}},87706(e,t,r){let o=r(58262),n=r(81148);t.initializeSharing=function({shareScopeName:e,webpackRequire:t,initPromises:r,initTokens:i,initScope:a}){let s=Array.isArray(e)?e:[e];var l=[],c=function(s){a||(a=[]);let l=t.federation.instance;var c=i[s];if(c||(c=i[s]={from:l.name}),a.indexOf(c)>=0)return;a.push(c);let u=r[s];if(u)return u;var f=r=>{var o=e=>{let t;return t="Initialization of sharing external failed: "+e,"u">typeof console&&console.warn&&console.warn(t)};try{var n=t(r);if(!n)return;var i=r=>r&&r.init&&r.init(t.S[s],a,{shareScopeMap:t.S||{},shareScopeKeys:e});if(n.then)return d.push(n.then(i,o));var l=i(n);if(l&&"boolean"!=typeof l&&l.then)return d.push(l.catch(o))}catch(e){o(e)}};let d=l.initializeSharing(s,{strategy:l.options.shareStrategy,initScope:a,from:"build"});o.attachShareScopeMap(t);let h=t.federation.bundlerRuntimeOptions.remotes;return(h&&Object.keys(h.idToRemoteMap).forEach(e=>{let t=h.idToRemoteMap[e],r=h.idToExternalAndNameMapping[e][2];if(t.length>1)f(r);else if(1===t.length){let e=t[0];n.FEDERATION_SUPPORTED_TYPES.includes(e.externalType)||f(r)}}),d.length)?r[s]=Promise.all(d).then(()=>r[s]=!0):r[s]=!0};return s.forEach(e=>{l.push(c(e))}),Promise.all(l).then(()=>!0)}},29982(e,t,r){let o=r(21163),n=r(24476);t.installInitialConsumes=function(e){o.updateConsumeOptions(e);let{moduleToHandlerMapping:t,webpackRequire:r,installedModules:i,initialConsumes:a,asyncLoad:s}=e,l=[];a.forEach(e=>{l.push([e,()=>(function(e){let{moduleId:t,moduleToHandlerMapping:r,webpackRequire:o,asyncLoad:i}=e,a=o.federation.instance;if(!a)throw Error("Federation instance not found!");let{shareKey:s,shareInfo:l}=r[t];try{let e=n.getUsedExports(o,s),t={...l};if(e&&(t.treeShaking={usedExports:e,useIn:[a.options.name]}),i)return a.loadShare(s,{customShareInfo:t});return a.loadShareSync(s,{customShareInfo:t})}catch(e){throw console.error('loadShareSync failed! The function should not be called unless you set "eager:true". If you do not set it, and encounter this issue, you can check whether an async boundary is implemented.'),console.error("The original error message is as follows: "),e}})({moduleId:e,moduleToHandlerMapping:t,webpackRequire:r,asyncLoad:s})])});let c=(e,o)=>{r.m[e]=n=>{i[e]=0,delete r.c[e];let a=o();if("function"!=typeof a)throw Error(`Shared module is not available for eager consumption: ${e}`);let s=a(),{shareInfo:l}=t[e];if(l?.shareConfig?.layer&&s&&"object"==typeof s)try{s.hasOwnProperty("layer")&&void 0!==s.layer||(s.layer=l.shareConfig.layer)}catch(e){}n.exports=s}};if(s)return Promise.all(l.map(async([e,t])=>{let r=await t();c(e,()=>r)}));l.forEach(([e,t])=>{c(e,t)})}},57245(e,t,r){r(73162);let o=r(58262),n=r(81148),i=r(21163),a=r(36757);t.remotes=function(e){i.updateRemoteOptions(e);let{chunkId:t,promises:r,webpackRequire:s,chunkMapping:l,idToExternalAndNameMapping:c,idToRemoteMap:u}=e;o.attachShareScopeMap(s),s.o(l,t)&&l[t].forEach(e=>{let t=s.R;t||(t=[]);let o=c[e],i=u[e]||[];if(t.indexOf(o)>=0)return;if(t.push(o),o.p)return r.push(o.p);let l=t=>{t||(t=Error("Container missing")),"string"==typeof t.message&&(t.message+=`
|
|
8
|
-
while loading "${o[1]}" from ${o[2]}`),s.m[e]=()=>{throw t},o.p=0},f=(e,t,n,i,a,s)=>{try{let c=e(t,n);if(!c||!c.then)return a(c,i,s);{let e=c.then(e=>a(e,i),l);if(!s)return e;r.push(o.p=e)}}catch(e){l(e)}};var d=(e,r,n)=>f(r.get,o[1],t,0,h,n),h=t=>{o.p=1,s.m[e]=e=>{e.exports=t()}};1===i.length&&n.FEDERATION_SUPPORTED_TYPES.includes(i[0].externalType)&&i[0].name?f(()=>{try{let e=(0,a.decodeName)(i[0].name,a.ENCODE_NAME_PREFIX)+o[1].slice(1),t=s.federation.instance,r=()=>s.federation.instance.loadRemote(e,{loadFactory:!1,from:"build"});if("version-first"===t.options.shareStrategy){let e=Array.isArray(o[0])?o[0]:[o[0]];return Promise.all(e.map(e=>t.sharedHandler.initializeSharing(e))).then(()=>r())}return r()}catch(e){l(e)}},o[2],0,0,h,1):f(s,o[2],0,0,(e,t,r)=>e?f(s.I,o[0],0,e,d,r):l(),1)})}},21163(e,t){t.updateConsumeOptions=function(e){let{webpackRequire:t,moduleToHandlerMapping:r}=e,{consumesLoadingData:o,initializeSharingData:n}=t,{sharedFallback:i,bundlerRuntime:a,libraryType:s}=t.federation;if(o&&!o._updated){let{moduleIdToConsumeDataMapping:n={},initialConsumes:l=[],chunkMapping:c={}}=o;if(Object.entries(n).forEach(([e,o])=>{r[e]||(r[e]={getter:i?a?.getSharedFallbackGetter({shareKey:o.shareKey,factory:o.fallback,webpackRequire:t,libraryType:s}):o.fallback,treeShakingGetter:i?o.fallback:void 0,shareInfo:{shareConfig:{requiredVersion:o.requiredVersion,strictVersion:o.strictVersion,singleton:o.singleton,eager:o.eager,layer:o.layer},scope:Array.isArray(o.shareScope)?o.shareScope:[o.shareScope||"default"],treeShaking:i?{get:o.fallback,mode:o.treeShakingMode}:void 0},shareKey:o.shareKey})}),"initialConsumes"in e){let{initialConsumes:t=[]}=e;l.forEach(e=>{t.includes(e)||t.push(e)})}if("chunkMapping"in e){let{chunkMapping:t={}}=e;Object.entries(c).forEach(([e,r])=>{t[e]||(t[e]=[]),r.forEach(r=>{t[e].includes(r)||t[e].push(r)})})}o._updated=1}if(n&&!n._updated){let{federation:e}=t;if(!e.instance||!n.scopeToSharingDataMapping)return;let r={};for(let[e,t]of Object.entries(n.scopeToSharingDataMapping))for(let o of t)if("object"==typeof o&&null!==o){let{name:t,version:n,factory:i,eager:a,singleton:s,requiredVersion:l,strictVersion:c}=o,u={requiredVersion:`^${n}`},f=function(e){return void 0!==e};f(s)&&(u.singleton=s),f(l)&&(u.requiredVersion=l),f(a)&&(u.eager=a),f(c)&&(u.strictVersion=c);let d={version:n,scope:[e],shareConfig:u,get:i};r[t]?r[t].push(d):r[t]=[d]}e.instance.registerShared(r),n._updated=1}},t.updateRemoteOptions=function(e){let{webpackRequire:t,idToExternalAndNameMapping:r={},idToRemoteMap:o={},chunkMapping:n={}}=e,{remotesLoadingData:i}=t,a=t.federation?.bundlerRuntimeOptions?.remotes?.remoteInfos;if(!i||i._updated||!a)return;let{chunkMapping:s,moduleIdToRemoteDataMapping:l}=i;if(s&&l){for(let[e,t]of Object.entries(l))if(r[e]||(r[e]=[t.shareScope,t.name,t.externalModuleId]),!o[e]&&a[t.remoteName]){let r=a[t.remoteName];o[e]||=[],r.forEach(t=>{o[e].includes(t)||o[e].push(t)})}n&&Object.entries(s).forEach(([e,t])=>{n[e]||(n[e]=[]),t.forEach(t=>{n[e].includes(t)||n[e].push(t)})}),i._updated=1}}},27913(e,t){var r=Object.create,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(a(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var a,l=i(t),c=0,u=l.length;c<u;c++)a=l[c],s.call(e,a)||void 0===a||o(e,a,{get:(e=>t[e]).bind(null,a),enumerable:!(r=n(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?l:o(l,"default",{value:e,enumerable:!0}),e))},23926(e,t,r){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),r(27913);let o=r(41050),n=r(25063),i={...n.helpers.global,getGlobalFederationInstance:o.getGlobalFederationInstance},a=n.helpers.share,s=n.helpers.utils;t.default={global:i,share:a,utils:s},t.global=i,t.share=a,t.utils=s},41050(e,t,r){r(27913);let o=r(25063);t.getGlobalFederationInstance=function(e,t){let r="@openmrs/esm-app-shell:10.0.1-pre.5522";return o.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(o=>!!r&&o.options.id===r||o.options.name===e&&!o.options.version&&!t||o.options.name===e&&!!t&&o.options.version===t)}}},u={};function f(e){var t=u[e];if(void 0!==t)return t.exports;var r=u[e]={exports:{}};return c[e].call(r.exports,r,r.exports,f),r.exports}if(f.m=c,f.c=u,f.x=()=>f(97737),f.federation||(f.federation={chunkMatcher:function(e){return!/^(2366|2874|4234)$/.test(e)},rootOutputDir:""}),f.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return f.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,f.t=function(r,o){if(1&o&&(r=this(r)),8&o||"object"==typeof r&&r&&(4&o&&r.__esModule||16&o&&"function"==typeof r.then))return r;var n=Object.create(null);f.r(n);var i={};e=e||[null,t({}),t([]),t(t)];for(var a=2&o&&r;("object"==typeof a||"function"==typeof a)&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach(e=>{i[e]=()=>r[e]});return i.default=()=>r,f.d(n,i),n},f.d=(e,t)=>{for(var r in t)f.o(t,r)&&!f.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},f.f={},f.e=e=>Promise.all(Object.keys(f.f).reduce((t,r)=>(f.f[r](e,t),t),[])),f.u=e=>""+({1155:"2d877853666ffde5",1285:"485385b17a8973ac",149:"4f25fabfbd242652",1522:"f3f7ba7a281d137f",1554:"27bbc85bbabee1a5",1582:"58b422bb3e2b709e",1689:"6cd82326717c86ed",2021:"557ef6dd5c99796c",2086:"895f33fe88ab78c6",2172:"d20e6ba912862835",2380:"b3536c459d989096",2520:"9b71fd53d6597470",2895:"eb9b3b579b6cf027",2988:"57d3240a2dc16b0d",2998:"d72f9e6e3a770cf5",316:"820d3a7f53689510",330:"c7ee0af570bf55cb",3461:"8f913fa8d380ebae",3734:"03aa011e42235226",3831:"b1a08d9f518cb48c",3899:"87fe0aee69d5a4ad",3942:"616b2aedcab751be",4070:"61b616c98ab0405a",4302:"7bc873dea9adb0c9",4879:"4d8f12edc7efe373",4886:"4487667604ad6f7b",4927:"48dcf82a03f07687",5354:"404d8a9d76a18add",5395:"f14e2dd65bac6caf",5537:"59811cc6672f3c5e",5670:"78d0228dbe6555c1",5778:"c6f3e7b121439a5d",5843:"698e7aab19095311",5848:"205f194d86e5ac67",5855:"c0b0b589e927e230",5874:"cf39cc1e9ef3d2cd",5875:"38500563dff47fc6",5885:"3eecc04b32da713c",5917:"98fa549e4698bac2",6019:"b80022326e66d4dd",6220:"724db602f85d13fd",6259:"79985e1be7b11090",6471:"17af628ac569a1f2",6526:"f4e99831687680e7",6561:"a71261b407223792",6590:"3c26a553b5db1c11",6621:"e33d524c1897be67",6625:"28b2d84b9ba8a17b",6631:"51ba0af155be92c9",6653:"d0374d830553d3ad",7143:"5df0e0969c582637",7707:"ca024710e6f87fbc",7749:"1c79b5f63ceb5f34",7872:"5120f4771ea4fb54",7918:"3626ab9863946c7b",8140:"03ea69ae15e97cd9",8574:"60b81b0c3de3dbcc",8579:"2193b26fed11886c",8728:"9ca23c5ecfdf0b6a",8903:"6787ee9c921c765c",913:"0c3ec589b00659cd",9141:"00781fd40b42efd3",9201:"a59e93981b163fef",9524:"a3a573a33ba2d559",9589:"14cab659fd85b863",9665:"013da7b545f9b832",9705:"47bd06b70fa65c4f",9732:"5c5d30b9ce092a45",9927:"32623ec20d67b16e"})[e]+".js",f.miniCssF=e=>""+({2874:"9764c8732a589cdd",316:"de422601d09003b0"})[e]+".css",f.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),f.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},o="@openmrs/esm-app-shell:",f.l=function(e,t,n,i){if(r[e])return void r[e].push(t);if(void 0!==n)for(var a,s,l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var u=l[c];if(u.getAttribute("src")==e||u.getAttribute("data-rspack")==o+n){a=u;break}}a||(s=!0,(a=document.createElement("script")).timeout=120,f.nc&&a.setAttribute("nonce",f.nc),a.setAttribute("data-rspack",o+n),a.src=e),r[e]=[t];var d=function(t,o){a.onerror=a.onload=null,clearTimeout(h);var n=r[e];if(delete r[e],a.parentNode&&a.parentNode.removeChild(a),n&&n.forEach(function(e){return e(o)}),t)return t(o)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),s&&document.head.appendChild(a)},f.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.p="",f.rv=()=>"1.7.9",f.S={},f.initializeSharingData={scopeToSharingDataMapping:{default:[{name:"@carbon/react",version:"1.92.1",factory:()=>Promise.all([f.e("2366"),f.e("4234"),f.e("5354"),f.e("2988")]).then(()=>()=>f(95015)),eager:0,singleton:1,requiredVersion:"1.x",strictVersion:0},{name:"@openmrs/esm-framework/src/internal",version:"10.0.1-pre.5522",factory:()=>Promise.all([f.e("2366"),f.e("4234"),f.e("5354"),f.e("316")]).then(()=>()=>f(26391)),eager:0,singleton:1,requiredVersion:"*",strictVersion:0},{name:"dayjs",version:"1.11.13",factory:()=>f.e("6621").then(()=>()=>f(56380)),eager:0,singleton:1,requiredVersion:"1.x",strictVersion:0},{name:"i18next",version:"25.5.3",factory:()=>f.e("6625").then(()=>()=>f(46520)),eager:0,singleton:1,requiredVersion:"25.x",strictVersion:0},{name:"react-dom",version:"18.3.1",factory:()=>Promise.all([f.e("2366"),f.e("5917")]).then(()=>()=>f(25724)),eager:0,singleton:1,requiredVersion:"18.x",strictVersion:0},{name:"react-i18next",version:"16.0.0",factory:()=>Promise.all([f.e("2366"),f.e("330")]).then(()=>()=>f(57121)),eager:0,singleton:1,requiredVersion:"16.x",strictVersion:0},{name:"react-router-dom",version:"6.30.3",factory:()=>Promise.all([f.e("2366"),f.e("4234"),f.e("9732")]).then(()=>()=>f(7199)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"react",version:"18.3.1",factory:()=>f.e("4302").then(()=>()=>f(33805)),eager:0,singleton:1,requiredVersion:"18.x",strictVersion:0},{name:"rxjs",version:"6.6.7",factory:()=>Promise.all([f.e("6561"),f.e("5885")]).then(()=>()=>f(13084)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"single-spa",version:"6.0.3",factory:()=>f.e("1285").then(()=>()=>f(3700)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"swr/_internal",version:"2.5.1",factory:()=>Promise.all([f.e("8574"),f.e("2366")]).then(()=>()=>f(51405)),eager:0,singleton:1,requiredVersion:"2.5.1",strictVersion:0},{name:"swr/immutable",version:"2.5.1",factory:()=>Promise.all([f.e("8574"),f.e("2366"),f.e("149"),f.e("7918")]).then(()=>()=>f(96269)),eager:0,singleton:1,requiredVersion:"2.5.1",strictVersion:0},{name:"swr/infinite",version:"2.5.1",factory:()=>Promise.all([f.e("8574"),f.e("2366"),f.e("149"),f.e("1582")]).then(()=>()=>f(13709)),eager:0,singleton:1,requiredVersion:"2.5.1",strictVersion:0},{name:"swr/mutation",version:"2.5.1",factory:()=>Promise.all([f.e("8574"),f.e("2366"),f.e("149"),f.e("9141")]).then(()=>()=>f(87844)),eager:0,singleton:1,requiredVersion:"2.5.1",strictVersion:0},{name:"swr/subscription",version:"2.5.1",factory:()=>Promise.all([f.e("8574"),f.e("2366"),f.e("149"),f.e("7143")]).then(()=>()=>f(43818)),eager:0,singleton:1,requiredVersion:"2.5.1",strictVersion:0},{name:"swr",version:"2.5.1",factory:()=>Promise.all([f.e("8574"),f.e("2366"),f.e("149"),f.e("4070")]).then(()=>()=>f(31237)),eager:0,singleton:1,requiredVersion:"2.5.1",strictVersion:0}]},uniqueName:"@openmrs/esm-app-shell"},f.I=f.I||function(){throw Error("should have __webpack_require__.I")},f.consumesLoadingData={chunkMapping:{5848:["75404","3658","56312"],316:["72924","15931","67436","26543","480","99970","83360","18326","11712","47665","99737"],2366:["46925"],4234:["22065"]},moduleIdToConsumeDataMapping:{46925:{shareScope:"default",shareKey:"react",import:"react",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>f.e("4302").then(()=>()=>f(33805))},47665:{shareScope:"default",shareKey:"react-router-dom",import:"react-router-dom",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>f.e("9732").then(()=>()=>f(7199))},83360:{shareScope:"default",shareKey:"swr/immutable",import:"swr/immutable",requiredVersion:"2.5.1",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([f.e("8574"),f.e("149"),f.e("5537")]).then(()=>()=>f(96269))},18326:{shareScope:"default",shareKey:"@carbon/react",import:"@carbon/react",requiredVersion:"1.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>f.e("2988").then(()=>()=>f(95015))},22065:{shareScope:"default",shareKey:"react-dom",import:"react-dom",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>f.e("5917").then(()=>()=>f(25724))},480:{shareScope:"default",shareKey:"single-spa",import:"single-spa",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>f.e("1285").then(()=>()=>f(3700))},75404:{shareScope:"default",shareKey:"swr/mutation",import:"swr/mutation",requiredVersion:"2.5.1",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([f.e("8574"),f.e("149"),f.e("1522")]).then(()=>()=>f(87844))},15931:{shareScope:"default",shareKey:"swr",import:"swr",requiredVersion:"2.5.1",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([f.e("8574"),f.e("149"),f.e("1689")]).then(()=>()=>f(31237))},72924:{shareScope:"default",shareKey:"swr/_internal",import:"swr/_internal",requiredVersion:"2.5.1",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>f.e("8574").then(()=>()=>f(51405))},3658:{shareScope:"default",shareKey:"@openmrs/esm-framework/src/internal",import:"@openmrs/esm-framework/src/internal",requiredVersion:"*",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>()=>f(26391)},99970:{shareScope:"default",shareKey:"swr/infinite",import:"swr/infinite",requiredVersion:"2.5.1",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([f.e("8574"),f.e("149"),f.e("9201")]).then(()=>()=>f(13709))},99737:{shareScope:"default",shareKey:"react-i18next",import:"react-i18next",requiredVersion:"16.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>f.e("330").then(()=>()=>f(57121))},67436:{shareScope:"default",shareKey:"rxjs",import:"rxjs",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([f.e("6561"),f.e("5885")]).then(()=>()=>f(13084))},11712:{shareScope:"default",shareKey:"dayjs",import:"dayjs",requiredVersion:"1.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>f.e("6621").then(()=>()=>f(56380))},26543:{shareScope:"default",shareKey:"i18next",import:"i18next",requiredVersion:"25.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>f.e("6625").then(()=>()=>f(46520))},56312:{shareScope:"default",shareKey:"swr/subscription",import:"swr/subscription",requiredVersion:"2.5.1",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([f.e("8574"),f.e("149"),f.e("9524")]).then(()=>()=>f(43818))}},initialConsumes:[]},f.f.consumes=f.f.consumes||function(){throw Error("should have __webpack_require__.f.consumes")},"u">typeof document){var d=function(e,t,r,o,n){var i=document.createElement("link");return i.rel="stylesheet",i.type="text/css",f.nc&&(i.nonce=f.nc),i.href=t,i.onerror=i.onload=function(r){if(i.onerror=i.onload=null,"load"===r.type)o();else{var a=r&&("load"===r.type?"missing":r.type),s=r&&r.target&&r.target.href||t,l=Error("Loading CSS chunk "+e+" failed.\\n("+s+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=a,l.request=s,i.parentNode&&i.parentNode.removeChild(i),n(l)}},r?r.parentNode.insertBefore(i,r.nextSibling):document.head.appendChild(i),i},h=function(e,t){for(var r=document.getElementsByTagName("link"),o=0;o<r.length;o++){var n=r[o],i=n.getAttribute("data-href")||n.getAttribute("href");if(i&&(i=i.split("?")[0]),"stylesheet"===n.rel&&(i===e||i===t))return n}for(var a=document.getElementsByTagName("style"),o=0;o<a.length;o++){var n=a[o],i=n.getAttribute("data-href");if(i===e||i===t)return n}},p={1889:0};f.f.miniCss=function(e,t){if(p[e])t.push(p[e]);else 0!==p[e]&&({2874:1,316:1})[e]&&t.push(p[e]=new Promise(function(t,r){var o=f.miniCssF(e),n=f.p+o;if(h(o,n))return t();d(e,n,null,t,r)}).then(function(){p[e]=0},function(t){throw delete p[e],t}))}}n={1889:0},f.f.j=function(e,t){var r=f.o(n,e)?n[e]:void 0;if(0!==r)if(r)t.push(r[2]);else if(/^(2366|2874|4234)$/.test(e))n[e]=0;else{var o=new Promise((t,o)=>r=n[e]=[t,o]);t.push(r[2]=o);var i=f.p+f.u(e),a=Error();f.l(i,function(t){if(f.o(n,e)&&(0!==(r=n[e])&&(n[e]=void 0),r)){var o=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;a.message="Loading chunk "+e+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}},"chunk-"+e,e)}},i=(e,t)=>{var r,o,[i,a,s]=t,l=0;if(i.some(e=>0!==n[e])){for(r in a)f.o(a,r)&&(f.m[r]=a[r]);s&&s(f)}for(e&&e(t);l<i.length;l++)o=i[l],f.o(n,o)&&n[o]&&n[o][0](),n[o]=0},(a=globalThis.webpackChunk_openmrs_esm_app_shell=globalThis.webpackChunk_openmrs_esm_app_shell||[]).forEach(i.bind(null,0)),a.push=i.bind(null,a.push.bind(a)),f.ruid="bundler=rspack@1.7.9",s=f.x,l=!1,f.x=function(){if(l||(l=!0,f(72868)),"function"==typeof s)return s();console.warn("[MF] Invalid prevStartup")},f.x()})();
|
|
8
|
+
while loading "${o[1]}" from ${o[2]}`),s.m[e]=()=>{throw t},o.p=0},f=(e,t,n,i,a,s)=>{try{let c=e(t,n);if(!c||!c.then)return a(c,i,s);{let e=c.then(e=>a(e,i),l);if(!s)return e;r.push(o.p=e)}}catch(e){l(e)}};var d=(e,r,n)=>f(r.get,o[1],t,0,h,n),h=t=>{o.p=1,s.m[e]=e=>{e.exports=t()}};1===i.length&&n.FEDERATION_SUPPORTED_TYPES.includes(i[0].externalType)&&i[0].name?f(()=>{try{let e=(0,a.decodeName)(i[0].name,a.ENCODE_NAME_PREFIX)+o[1].slice(1),t=s.federation.instance,r=()=>s.federation.instance.loadRemote(e,{loadFactory:!1,from:"build"});if("version-first"===t.options.shareStrategy){let e=Array.isArray(o[0])?o[0]:[o[0]];return Promise.all(e.map(e=>t.sharedHandler.initializeSharing(e))).then(()=>r())}return r()}catch(e){l(e)}},o[2],0,0,h,1):f(s,o[2],0,0,(e,t,r)=>e?f(s.I,o[0],0,e,d,r):l(),1)})}},21163(e,t){t.updateConsumeOptions=function(e){let{webpackRequire:t,moduleToHandlerMapping:r}=e,{consumesLoadingData:o,initializeSharingData:n}=t,{sharedFallback:i,bundlerRuntime:a,libraryType:s}=t.federation;if(o&&!o._updated){let{moduleIdToConsumeDataMapping:n={},initialConsumes:l=[],chunkMapping:c={}}=o;if(Object.entries(n).forEach(([e,o])=>{r[e]||(r[e]={getter:i?a?.getSharedFallbackGetter({shareKey:o.shareKey,factory:o.fallback,webpackRequire:t,libraryType:s}):o.fallback,treeShakingGetter:i?o.fallback:void 0,shareInfo:{shareConfig:{requiredVersion:o.requiredVersion,strictVersion:o.strictVersion,singleton:o.singleton,eager:o.eager,layer:o.layer},scope:Array.isArray(o.shareScope)?o.shareScope:[o.shareScope||"default"],treeShaking:i?{get:o.fallback,mode:o.treeShakingMode}:void 0},shareKey:o.shareKey})}),"initialConsumes"in e){let{initialConsumes:t=[]}=e;l.forEach(e=>{t.includes(e)||t.push(e)})}if("chunkMapping"in e){let{chunkMapping:t={}}=e;Object.entries(c).forEach(([e,r])=>{t[e]||(t[e]=[]),r.forEach(r=>{t[e].includes(r)||t[e].push(r)})})}o._updated=1}if(n&&!n._updated){let{federation:e}=t;if(!e.instance||!n.scopeToSharingDataMapping)return;let r={};for(let[e,t]of Object.entries(n.scopeToSharingDataMapping))for(let o of t)if("object"==typeof o&&null!==o){let{name:t,version:n,factory:i,eager:a,singleton:s,requiredVersion:l,strictVersion:c}=o,u={requiredVersion:`^${n}`},f=function(e){return void 0!==e};f(s)&&(u.singleton=s),f(l)&&(u.requiredVersion=l),f(a)&&(u.eager=a),f(c)&&(u.strictVersion=c);let d={version:n,scope:[e],shareConfig:u,get:i};r[t]?r[t].push(d):r[t]=[d]}e.instance.registerShared(r),n._updated=1}},t.updateRemoteOptions=function(e){let{webpackRequire:t,idToExternalAndNameMapping:r={},idToRemoteMap:o={},chunkMapping:n={}}=e,{remotesLoadingData:i}=t,a=t.federation?.bundlerRuntimeOptions?.remotes?.remoteInfos;if(!i||i._updated||!a)return;let{chunkMapping:s,moduleIdToRemoteDataMapping:l}=i;if(s&&l){for(let[e,t]of Object.entries(l))if(r[e]||(r[e]=[t.shareScope,t.name,t.externalModuleId]),!o[e]&&a[t.remoteName]){let r=a[t.remoteName];o[e]||=[],r.forEach(t=>{o[e].includes(t)||o[e].push(t)})}n&&Object.entries(s).forEach(([e,t])=>{n[e]||(n[e]=[]),t.forEach(t=>{n[e].includes(t)||n[e].push(t)})}),i._updated=1}}},27913(e,t){var r=Object.create,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(a(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var a,l=i(t),c=0,u=l.length;c<u;c++)a=l[c],s.call(e,a)||void 0===a||o(e,a,{get:(e=>t[e]).bind(null,a),enumerable:!(r=n(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?l:o(l,"default",{value:e,enumerable:!0}),e))},23926(e,t,r){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),r(27913);let o=r(41050),n=r(25063),i={...n.helpers.global,getGlobalFederationInstance:o.getGlobalFederationInstance},a=n.helpers.share,s=n.helpers.utils;t.default={global:i,share:a,utils:s},t.global=i,t.share=a,t.utils=s},41050(e,t,r){r(27913);let o=r(25063);t.getGlobalFederationInstance=function(e,t){let r="@openmrs/esm-app-shell:10.0.1-pre.5539";return o.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(o=>!!r&&o.options.id===r||o.options.name===e&&!o.options.version&&!t||o.options.name===e&&!!t&&o.options.version===t)}}},u={};function f(e){var t=u[e];if(void 0!==t)return t.exports;var r=u[e]={exports:{}};return c[e].call(r.exports,r,r.exports,f),r.exports}if(f.m=c,f.c=u,f.x=()=>f(97737),f.federation||(f.federation={chunkMatcher:function(e){return!/^(2366|2874|4234)$/.test(e)},rootOutputDir:""}),f.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return f.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,f.t=function(r,o){if(1&o&&(r=this(r)),8&o||"object"==typeof r&&r&&(4&o&&r.__esModule||16&o&&"function"==typeof r.then))return r;var n=Object.create(null);f.r(n);var i={};e=e||[null,t({}),t([]),t(t)];for(var a=2&o&&r;("object"==typeof a||"function"==typeof a)&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach(e=>{i[e]=()=>r[e]});return i.default=()=>r,f.d(n,i),n},f.d=(e,t)=>{for(var r in t)f.o(t,r)&&!f.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},f.f={},f.e=e=>Promise.all(Object.keys(f.f).reduce((t,r)=>(f.f[r](e,t),t),[])),f.u=e=>""+({1155:"2d877853666ffde5",1285:"485385b17a8973ac",149:"4f25fabfbd242652",1522:"f3f7ba7a281d137f",1554:"27bbc85bbabee1a5",1582:"58b422bb3e2b709e",1689:"6cd82326717c86ed",2021:"557ef6dd5c99796c",2086:"895f33fe88ab78c6",2172:"d20e6ba912862835",2380:"b3536c459d989096",2520:"9b71fd53d6597470",2895:"eb9b3b579b6cf027",2988:"57d3240a2dc16b0d",2998:"d72f9e6e3a770cf5",316:"820d3a7f53689510",330:"c7ee0af570bf55cb",3461:"8f913fa8d380ebae",3734:"03aa011e42235226",3831:"b1a08d9f518cb48c",3899:"87fe0aee69d5a4ad",3942:"616b2aedcab751be",4070:"61b616c98ab0405a",4302:"7bc873dea9adb0c9",4879:"4d8f12edc7efe373",4886:"4487667604ad6f7b",4927:"48dcf82a03f07687",5354:"404d8a9d76a18add",5395:"f14e2dd65bac6caf",5537:"59811cc6672f3c5e",5670:"78d0228dbe6555c1",5778:"c6f3e7b121439a5d",5843:"698e7aab19095311",5848:"205f194d86e5ac67",5855:"c0b0b589e927e230",5874:"cf39cc1e9ef3d2cd",5875:"38500563dff47fc6",5885:"3eecc04b32da713c",5917:"98fa549e4698bac2",6019:"b80022326e66d4dd",6220:"724db602f85d13fd",6259:"79985e1be7b11090",6471:"17af628ac569a1f2",6526:"f4e99831687680e7",6561:"a71261b407223792",6590:"3c26a553b5db1c11",6621:"e33d524c1897be67",6625:"28b2d84b9ba8a17b",6631:"51ba0af155be92c9",6653:"d0374d830553d3ad",7143:"5df0e0969c582637",7707:"ca024710e6f87fbc",7749:"1c79b5f63ceb5f34",7872:"5120f4771ea4fb54",7918:"3626ab9863946c7b",8140:"03ea69ae15e97cd9",8574:"60b81b0c3de3dbcc",8579:"2193b26fed11886c",8728:"9ca23c5ecfdf0b6a",8903:"6787ee9c921c765c",913:"0c3ec589b00659cd",9141:"00781fd40b42efd3",9201:"a59e93981b163fef",9524:"a3a573a33ba2d559",9589:"14cab659fd85b863",9665:"013da7b545f9b832",9705:"47bd06b70fa65c4f",9732:"5c5d30b9ce092a45",9927:"32623ec20d67b16e"})[e]+".js",f.miniCssF=e=>""+({2874:"9764c8732a589cdd",316:"de422601d09003b0"})[e]+".css",f.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),f.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},o="@openmrs/esm-app-shell:",f.l=function(e,t,n,i){if(r[e])return void r[e].push(t);if(void 0!==n)for(var a,s,l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var u=l[c];if(u.getAttribute("src")==e||u.getAttribute("data-rspack")==o+n){a=u;break}}a||(s=!0,(a=document.createElement("script")).timeout=120,f.nc&&a.setAttribute("nonce",f.nc),a.setAttribute("data-rspack",o+n),a.src=e),r[e]=[t];var d=function(t,o){a.onerror=a.onload=null,clearTimeout(h);var n=r[e];if(delete r[e],a.parentNode&&a.parentNode.removeChild(a),n&&n.forEach(function(e){return e(o)}),t)return t(o)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),s&&document.head.appendChild(a)},f.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.p="",f.rv=()=>"1.7.9",f.S={},f.initializeSharingData={scopeToSharingDataMapping:{default:[{name:"@carbon/react",version:"1.92.1",factory:()=>Promise.all([f.e("2366"),f.e("4234"),f.e("5354"),f.e("2988")]).then(()=>()=>f(95015)),eager:0,singleton:1,requiredVersion:"1.x",strictVersion:0},{name:"@openmrs/esm-framework/src/internal",version:"10.0.1-pre.5539",factory:()=>Promise.all([f.e("2366"),f.e("4234"),f.e("5354"),f.e("316")]).then(()=>()=>f(26391)),eager:0,singleton:1,requiredVersion:"*",strictVersion:0},{name:"dayjs",version:"1.11.13",factory:()=>f.e("6621").then(()=>()=>f(56380)),eager:0,singleton:1,requiredVersion:"1.x",strictVersion:0},{name:"i18next",version:"25.5.3",factory:()=>f.e("6625").then(()=>()=>f(46520)),eager:0,singleton:1,requiredVersion:"25.x",strictVersion:0},{name:"react-dom",version:"18.3.1",factory:()=>Promise.all([f.e("2366"),f.e("5917")]).then(()=>()=>f(25724)),eager:0,singleton:1,requiredVersion:"18.x",strictVersion:0},{name:"react-i18next",version:"16.0.0",factory:()=>Promise.all([f.e("2366"),f.e("330")]).then(()=>()=>f(57121)),eager:0,singleton:1,requiredVersion:"16.x",strictVersion:0},{name:"react-router-dom",version:"6.30.3",factory:()=>Promise.all([f.e("2366"),f.e("4234"),f.e("9732")]).then(()=>()=>f(7199)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"react",version:"18.3.1",factory:()=>f.e("4302").then(()=>()=>f(33805)),eager:0,singleton:1,requiredVersion:"18.x",strictVersion:0},{name:"rxjs",version:"6.6.7",factory:()=>Promise.all([f.e("6561"),f.e("5885")]).then(()=>()=>f(13084)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"single-spa",version:"6.0.3",factory:()=>f.e("1285").then(()=>()=>f(3700)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"swr/_internal",version:"2.5.1",factory:()=>Promise.all([f.e("8574"),f.e("2366")]).then(()=>()=>f(51405)),eager:0,singleton:1,requiredVersion:"2.5.1",strictVersion:0},{name:"swr/immutable",version:"2.5.1",factory:()=>Promise.all([f.e("8574"),f.e("2366"),f.e("149"),f.e("7918")]).then(()=>()=>f(96269)),eager:0,singleton:1,requiredVersion:"2.5.1",strictVersion:0},{name:"swr/infinite",version:"2.5.1",factory:()=>Promise.all([f.e("8574"),f.e("2366"),f.e("149"),f.e("1582")]).then(()=>()=>f(13709)),eager:0,singleton:1,requiredVersion:"2.5.1",strictVersion:0},{name:"swr/mutation",version:"2.5.1",factory:()=>Promise.all([f.e("8574"),f.e("2366"),f.e("149"),f.e("9141")]).then(()=>()=>f(87844)),eager:0,singleton:1,requiredVersion:"2.5.1",strictVersion:0},{name:"swr/subscription",version:"2.5.1",factory:()=>Promise.all([f.e("8574"),f.e("2366"),f.e("149"),f.e("7143")]).then(()=>()=>f(43818)),eager:0,singleton:1,requiredVersion:"2.5.1",strictVersion:0},{name:"swr",version:"2.5.1",factory:()=>Promise.all([f.e("8574"),f.e("2366"),f.e("149"),f.e("4070")]).then(()=>()=>f(31237)),eager:0,singleton:1,requiredVersion:"2.5.1",strictVersion:0}]},uniqueName:"@openmrs/esm-app-shell"},f.I=f.I||function(){throw Error("should have __webpack_require__.I")},f.consumesLoadingData={chunkMapping:{5848:["75404","3658","56312"],316:["72924","15931","67436","26543","480","99970","83360","18326","11712","47665","99737"],2366:["46925"],4234:["22065"]},moduleIdToConsumeDataMapping:{46925:{shareScope:"default",shareKey:"react",import:"react",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>f.e("4302").then(()=>()=>f(33805))},47665:{shareScope:"default",shareKey:"react-router-dom",import:"react-router-dom",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>f.e("9732").then(()=>()=>f(7199))},83360:{shareScope:"default",shareKey:"swr/immutable",import:"swr/immutable",requiredVersion:"2.5.1",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([f.e("8574"),f.e("149"),f.e("5537")]).then(()=>()=>f(96269))},18326:{shareScope:"default",shareKey:"@carbon/react",import:"@carbon/react",requiredVersion:"1.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>f.e("2988").then(()=>()=>f(95015))},22065:{shareScope:"default",shareKey:"react-dom",import:"react-dom",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>f.e("5917").then(()=>()=>f(25724))},480:{shareScope:"default",shareKey:"single-spa",import:"single-spa",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>f.e("1285").then(()=>()=>f(3700))},75404:{shareScope:"default",shareKey:"swr/mutation",import:"swr/mutation",requiredVersion:"2.5.1",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([f.e("8574"),f.e("149"),f.e("1522")]).then(()=>()=>f(87844))},15931:{shareScope:"default",shareKey:"swr",import:"swr",requiredVersion:"2.5.1",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([f.e("8574"),f.e("149"),f.e("1689")]).then(()=>()=>f(31237))},72924:{shareScope:"default",shareKey:"swr/_internal",import:"swr/_internal",requiredVersion:"2.5.1",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>f.e("8574").then(()=>()=>f(51405))},3658:{shareScope:"default",shareKey:"@openmrs/esm-framework/src/internal",import:"@openmrs/esm-framework/src/internal",requiredVersion:"*",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>()=>f(26391)},99970:{shareScope:"default",shareKey:"swr/infinite",import:"swr/infinite",requiredVersion:"2.5.1",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([f.e("8574"),f.e("149"),f.e("9201")]).then(()=>()=>f(13709))},99737:{shareScope:"default",shareKey:"react-i18next",import:"react-i18next",requiredVersion:"16.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>f.e("330").then(()=>()=>f(57121))},67436:{shareScope:"default",shareKey:"rxjs",import:"rxjs",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([f.e("6561"),f.e("5885")]).then(()=>()=>f(13084))},11712:{shareScope:"default",shareKey:"dayjs",import:"dayjs",requiredVersion:"1.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>f.e("6621").then(()=>()=>f(56380))},26543:{shareScope:"default",shareKey:"i18next",import:"i18next",requiredVersion:"25.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>f.e("6625").then(()=>()=>f(46520))},56312:{shareScope:"default",shareKey:"swr/subscription",import:"swr/subscription",requiredVersion:"2.5.1",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([f.e("8574"),f.e("149"),f.e("9524")]).then(()=>()=>f(43818))}},initialConsumes:[]},f.f.consumes=f.f.consumes||function(){throw Error("should have __webpack_require__.f.consumes")},"u">typeof document){var d=function(e,t,r,o,n){var i=document.createElement("link");return i.rel="stylesheet",i.type="text/css",f.nc&&(i.nonce=f.nc),i.href=t,i.onerror=i.onload=function(r){if(i.onerror=i.onload=null,"load"===r.type)o();else{var a=r&&("load"===r.type?"missing":r.type),s=r&&r.target&&r.target.href||t,l=Error("Loading CSS chunk "+e+" failed.\\n("+s+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=a,l.request=s,i.parentNode&&i.parentNode.removeChild(i),n(l)}},r?r.parentNode.insertBefore(i,r.nextSibling):document.head.appendChild(i),i},h=function(e,t){for(var r=document.getElementsByTagName("link"),o=0;o<r.length;o++){var n=r[o],i=n.getAttribute("data-href")||n.getAttribute("href");if(i&&(i=i.split("?")[0]),"stylesheet"===n.rel&&(i===e||i===t))return n}for(var a=document.getElementsByTagName("style"),o=0;o<a.length;o++){var n=a[o],i=n.getAttribute("data-href");if(i===e||i===t)return n}},p={1889:0};f.f.miniCss=function(e,t){if(p[e])t.push(p[e]);else 0!==p[e]&&({2874:1,316:1})[e]&&t.push(p[e]=new Promise(function(t,r){var o=f.miniCssF(e),n=f.p+o;if(h(o,n))return t();d(e,n,null,t,r)}).then(function(){p[e]=0},function(t){throw delete p[e],t}))}}n={1889:0},f.f.j=function(e,t){var r=f.o(n,e)?n[e]:void 0;if(0!==r)if(r)t.push(r[2]);else if(/^(2366|2874|4234)$/.test(e))n[e]=0;else{var o=new Promise((t,o)=>r=n[e]=[t,o]);t.push(r[2]=o);var i=f.p+f.u(e),a=Error();f.l(i,function(t){if(f.o(n,e)&&(0!==(r=n[e])&&(n[e]=void 0),r)){var o=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;a.message="Loading chunk "+e+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}},"chunk-"+e,e)}},i=(e,t)=>{var r,o,[i,a,s]=t,l=0;if(i.some(e=>0!==n[e])){for(r in a)f.o(a,r)&&(f.m[r]=a[r]);s&&s(f)}for(e&&e(t);l<i.length;l++)o=i[l],f.o(n,o)&&n[o]&&n[o][0](),n[o]=0},(a=globalThis.webpackChunk_openmrs_esm_app_shell=globalThis.webpackChunk_openmrs_esm_app_shell||[]).forEach(i.bind(null,0)),a.push=i.bind(null,a.push.bind(a)),f.ruid="bundler=rspack@1.7.9",s=f.x,l=!1,f.x=function(){if(l||(l=!0,f(72868)),"function"==typeof s)return s();console.warn("[MF] Invalid prevStartup")},f.x()})();
|