@openmrs/esm-patient-tests-app 12.2.1-pre.11404 → 12.2.1

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.
@@ -13,4 +13,4 @@
13
13
  │ main.js
14
14
  
15
15
 
16
- Rspack compiled with 2 warnings in 38.72 s
16
+ Rspack compiled with 2 warnings in 39.51 s
package/dist/main.js CHANGED
@@ -13,4 +13,4 @@
13
13
  ${a.safeToString(this.remoteInfo)}`),this.remoteEntryExports=e),this.remoteEntryExports}async get(e,n,t,a){let i,{loadFactory:l=!0}=t||{loadFactory:!0},c=await this.getEntry();if(!this.inited){let n=this.host.shareScopeMap,t=Array.isArray(this.remoteInfo.shareScope)?this.remoteInfo.shareScope:[this.remoteInfo.shareScope];t.length||t.push("default"),t.forEach(e=>{n[e]||(n[e]={})});let i=n[t[0]],l=[],o={version:this.remoteInfo.version||"",shareScopeKeys:Array.isArray(this.remoteInfo.shareScope)?t:this.remoteInfo.shareScope||"default"};Object.defineProperty(o,"shareScopeMap",{value:n,enumerable:!1});let u=await this.host.hooks.lifecycle.beforeInitContainer.emit({shareScope:i,remoteEntryInitOptions:o,initScope:l,remoteInfo:this.remoteInfo,origin:this.host});void 0===c?.init&&s(r.getShortErrorMsg(r.RUNTIME_002,r.runtimeDescMap,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName})),await c.init(u.shareScope,u.initScope,u.remoteEntryInitOptions),await this.host.hooks.lifecycle.initContainer.emit({...u,id:e,remoteSnapshot:a,remoteEntryExports:c})}this.lib=c,this.inited=!0,(i=await this.host.loaderHook.lifecycle.getModuleFactory.emit({remoteEntryExports:c,expose:n,moduleInfo:this.remoteInfo}))||(i=await c.get(n)),o(i,`${p(this.remoteInfo)} remote don't export ${n}.`);let u=v(this.remoteInfo.name,n),d=this.wraperFactory(i,u);return l?await d():d}wraperFactory(e,n){function t(e,n){e&&"object"==typeof e&&Object.isExtensible(e)&&!Object.getOwnPropertyDescriptor(e,Symbol.for("mf_module_id"))&&Object.defineProperty(e,Symbol.for("mf_module_id"),{value:n,enumerable:!1})}return e instanceof Promise?async()=>{let a=await e();return t(a,n),a}:()=>{let a=e();return t(a,n),a}}}class nu{constructor(e){this.type="",this.listeners=new Set,e&&(this.type=e)}on(e){"function"==typeof e&&this.listeners.add(e)}once(e){let n=this;this.on(function t(...a){return n.remove(t),e.apply(null,a)})}emit(...e){let n;return this.listeners.size>0&&this.listeners.forEach(t=>{n=t(...e)}),n}remove(e){this.listeners.delete(e)}removeAll(){this.listeners.clear()}}class np extends nu{emit(...e){let n,t=Array.from(this.listeners);if(t.length>0){let a=0,r=n=>!1!==n&&(a<t.length?Promise.resolve(t[a++].apply(null,e)).then(r):n);n=r()}return Promise.resolve(n)}}function nd(e,n){if(!g(n))return!1;if(e!==n){for(let t in e)if(!(t in n))return!1}return!0}class nf extends nu{constructor(e){super(),this.onerror=s,this.type=e}emit(e){for(let n of(g(e)||s(`The data for the "${this.type}" hook should be an object.`),this.listeners))try{let t=n(e);if(nd(e,t))e=t;else{this.onerror(`A plugin returned an unacceptable value for the "${this.type}" type.`);break}}catch(e){c(e),this.onerror(e)}return e}}class nm extends nu{constructor(e){super(),this.onerror=s,this.type=e}emit(e){g(e)||s(`The response data for the "${this.type}" hook must be an object.`);let n=Array.from(this.listeners);if(n.length>0){let t=0,a=n=>(c(n),this.onerror(n),e),r=i=>{if(nd(e,i)){if(e=i,t<n.length)try{return Promise.resolve(n[t++](e)).then(r,a)}catch(e){return a(e)}}else this.onerror(`A plugin returned an incorrect value for the "${this.type}" type.`);return e};return Promise.resolve(r(e))}return Promise.resolve(e)}}class ng{constructor(e){this.registerPlugins={},this.lifecycle=e,this.lifecycleKeys=Object.keys(e)}applyPlugin(e,n){o(_(e),"Plugin configuration is invalid.");let t=e.name;o(t,"A name must be provided by the plugin."),this.registerPlugins[t]||(this.registerPlugins[t]=e,e.apply?.(n),Object.keys(this.lifecycle).forEach(n=>{let t=e[n];t&&this.lifecycle[n].on(t)}))}removePlugin(e){o(e,"A name is required.");let n=this.registerPlugins[e];o(n,`The plugin "${e}" is not registered.`),Object.keys(n).forEach(e=>{"name"!==e&&this.lifecycle[e].remove(n[e])})}}function nh(e,n){let t=A(n);t.url||s(`The attribute remoteEntry of ${e.name} must not be undefined.`);let r=a.getResourceUrl(n,t.url);a.isBrowserEnv()||r.startsWith("http")||(r=`https:${r}`),e.type=t.type,e.entryGlobalName=t.globalName,e.entry=r,e.version=n.version,e.buildVersion=n.buildVersion}function n_(){return{name:"snapshot-plugin",async afterResolve(e){let{remote:n,pkgNameOrAlias:t,expose:a,origin:r,remoteInfo:i,id:l}=e;if(!d(n)||!f(n)){let{remoteSnapshot:o,globalSnapshot:s}=await r.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:n,id:l});nh(i,o);let c={remote:n,preloadConfig:{nameOrAlias:t,exposes:[a],resourceCategory:"sync",share:!1,depsRemote:!1}},u=await r.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin:r,preloadOptions:c,remoteInfo:i,remote:n,remoteSnapshot:o,globalSnapshot:s});return u&&no(i,r,u,!1),{...e,remoteSnapshot:o}}return e}}}function nb(e){let n=e.split(":");return 1===n.length?{name:n[0],version:void 0}:2===n.length?{name:n[0],version:n[1]}:{name:n[1],version:n[2]}}function ny(e,n,t,r,i={},l){let{value:o}=O(e,p(n)),s=l||o;if(s&&!a.isManifestProvider(s)&&(t(s,n,r),s.remotesInfo))for(let n of Object.keys(s.remotesInfo)){if(i[n])continue;i[n]=!0;let a=nb(n),r=s.remotesInfo[n];ny(e,{name:a.name,version:r.matchedVersion},t,!1,i,void 0)}}let nA=(e,n)=>document.querySelector(`${e}[${"link"===e?"href":"src"}="${n}"]`);function nv(e,n,t,r,i){let l=[],o=[],s=[],c=new Set,u=new Set,{options:p}=e,{preloadConfig:d}=n,{depsRemote:f}=d;if(ny(r,t,(n,t,r)=>{let i;if(r)i=d;else if(Array.isArray(f)){let e=f.find(e=>e.nameOrAlias===t.name||e.nameOrAlias===t.alias);if(!e)return;i=nr(e)}else{if(!0!==f)return;i=d}let c=a.getResourceUrl(n,A(n).url);c&&s.push({name:t.name,moduleInfo:{name:t.name,entry:c,type:"remoteEntryType"in n?n.remoteEntryType:"global",entryGlobalName:"globalName"in n?n.globalName:t.name,shareScope:"",version:"version"in n?n.version:void 0},url:c});let u="modules"in n?n.modules:[],p=nl(i.exposes);function m(e){let t=e.map(e=>a.getResourceUrl(n,e));return i.filter?t.filter(i.filter):t}if(p.length&&"modules"in n&&(u=n?.modules?.reduce((e,n)=>(p?.indexOf(n.moduleName)!==-1&&e.push(n),e),[])),u){let a=u.length;for(let r=0;r<a;r++){let a=u[r],s=`${t.name}/${a.moduleName}`;e.remoteHandler.hooks.lifecycle.handlePreloadModule.emit({id:"."===a.moduleName?t.name:s,name:t.name,remoteSnapshot:n,preloadConfig:i,remote:t,origin:e}),H(s)||("all"===i.resourceCategory?(l.push(...m(a.assets.css.async)),l.push(...m(a.assets.css.sync)),o.push(...m(a.assets.js.async))):(i.resourceCategory="sync",l.push(...m(a.assets.css.sync))),o.push(...m(a.assets.js.sync)),q(s))}}},!0,{},i),i.shared&&i.shared.length>0){let n=(n,t)=>{let a=eZ(e.shareScopeMap,t.sharedName,n,e.sharedHandler.hooks.lifecycle.resolveShare);a&&"function"==typeof a.lib&&(t.assets.js.sync.forEach(e=>{c.add(e)}),t.assets.css.sync.forEach(e=>{u.add(e)}))};i.shared.forEach(e=>{let t=p.shared?.[e.sharedName];if(!t)return;let a=e.version?t.find(n=>n.version===e.version):t;a&&y(a).forEach(t=>{n(t,e)})})}let m=o.filter(e=>!c.has(e)&&!nA("script",e));return{cssAssets:l.filter(e=>!u.has(e)&&!nA("link",e)),jsAssetsWithoutEntry:m,entryAssets:s.filter(e=>!nA("script",e.url))}}let n$=function(){return{name:"generate-preload-assets-plugin",async generatePreloadAssets(e){let{origin:n,preloadOptions:t,remoteInfo:r,remote:i,globalSnapshot:l,remoteSnapshot:o}=e;return a.isBrowserEnv()?d(i)&&f(i)?{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[{name:i.name,url:i.entry,moduleInfo:{name:r.name,entry:i.entry,type:r.type||"global",entryGlobalName:"",shareScope:""}}]}:(nh(r,o),nv(n,t,r,l,o)):{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[]}}}};function nw(e,n){let t=B({name:n.name,version:n.options.version}),a=t&&"remotesInfo"in t&&t.remotesInfo&&O(t.remotesInfo,e.name).value;return a&&a.matchedVersion?{hostGlobalSnapshot:t,globalSnapshot:M(),remoteSnapshot:B({name:e.name,version:a.matchedVersion})}:{hostGlobalSnapshot:void 0,globalSnapshot:M(),remoteSnapshot:B({name:e.name,version:"version"in e?e.version:void 0})}}class nx{constructor(e){this.loadingHostSnapshot=null,this.manifestCache=new Map,this.hooks=new ng({beforeLoadRemoteSnapshot:new np("beforeLoadRemoteSnapshot"),loadSnapshot:new nm("loadGlobalSnapshot"),loadRemoteSnapshot:new nm("loadRemoteSnapshot"),afterLoadSnapshot:new nm("afterLoadSnapshot")}),this.manifestLoading=x.__FEDERATION__.__MANIFEST_LOADING__,this.HostInstance=e,this.loaderHook=e.loaderHook}async loadRemoteSnapshotInfo({moduleInfo:e,id:n,expose:t}){let i,l,{options:o}=this.HostInstance;await this.hooks.lifecycle.beforeLoadRemoteSnapshot.emit({options:o,moduleInfo:e});let c=B({name:this.HostInstance.options.name,version:this.HostInstance.options.version});c||(c={version:this.HostInstance.options.version||"",remoteEntry:"",remotesInfo:{}},L({[this.HostInstance.options.name]:c})),c&&"remotesInfo"in c&&!O(c.remotesInfo,e.name).value&&("version"in e||"entry"in e)&&(c.remotesInfo={...c?.remotesInfo,[e.name]:{matchedVersion:"version"in e?e.version:e.entry}});let{hostGlobalSnapshot:u,remoteSnapshot:p,globalSnapshot:f}=this.getGlobalRemoteInfo(e),{remoteSnapshot:m,globalSnapshot:g}=await this.hooks.lifecycle.loadSnapshot.emit({options:o,moduleInfo:e,hostGlobalSnapshot:u,remoteSnapshot:p,globalSnapshot:f});if(m)if(a.isManifestProvider(m)){let n=a.isBrowserEnv()?m.remoteEntry:m.ssrRemoteEntry||m.remoteEntry||"",t=await this.getManifestJson(n,e,{}),r=R({...e,entry:n},t);i=t,l=r}else{let{remoteSnapshot:n}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:m,from:"global"});i=n,l=g}else if(d(e)){let n=await this.getManifestJson(e.entry,e,{}),t=R(e,n),{remoteSnapshot:a}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:n,from:"global"});i=a,l=t}else s(r.getShortErrorMsg(r.RUNTIME_007,r.runtimeDescMap,{hostName:e.name,hostVersion:e.version,globalSnapshot:JSON.stringify(g)}));return await this.hooks.lifecycle.afterLoadSnapshot.emit({id:n,host:this.HostInstance,options:o,moduleInfo:e,remoteSnapshot:i}),{remoteSnapshot:i,globalSnapshot:l}}getGlobalRemoteInfo(e){return nw(e,this.HostInstance)}async getManifestJson(e,n,t){let i=async()=>{let t=this.manifestCache.get(e);if(t)return t;try{let n=await this.loaderHook.lifecycle.fetch.emit(e,{});n&&n instanceof Response||(n=await fetch(e,{})),t=await n.json()}catch(a){(t=await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:a,from:"runtime",lifecycle:"afterResolve",origin:this.HostInstance}))||(delete this.manifestLoading[e],s(r.getShortErrorMsg(r.RUNTIME_003,r.runtimeDescMap,{manifestUrl:e,moduleName:n.name,hostName:this.HostInstance.options.name},`${a}`)))}return o(t.metaData&&t.exposes&&t.shared,`${e} is not a federation manifest`),this.manifestCache.set(e,t),t},l=async()=>{let t=await i(),r=a.generateSnapshotFromManifest(t,{version:e}),{remoteSnapshot:l}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:n,manifestJson:t,remoteSnapshot:r,manifestUrl:e,from:"manifest"});return l};return this.manifestLoading[e]||(this.manifestLoading[e]=l().then(e=>e)),this.manifestLoading[e]}}class nC{constructor(e){this.hooks=new ng({afterResolve:new nm("afterResolve"),beforeLoadShare:new nm("beforeLoadShare"),loadShare:new np,resolveShare:new nf("resolveShare"),initContainerShareScopeMap:new nf("initContainerShareScopeMap")}),this.host=e,this.shareScopeMap={},this.initTokens={},this._setGlobalShareScopeMap(e.options)}registerShared(e,n){let{shareInfos:t,shared:a}=eq(e,n);return Object.keys(t).forEach(e=>{t[e].forEach(t=>{t.scope.forEach(a=>{this.shareScopeMap[a]?.[e]||this.setShared({pkgName:e,lib:t.lib,get:t.get,loaded:t.loaded||!!t.lib,shared:t,from:n.name})})})}),{shareInfos:t,shared:a}}async loadShare(e,n){let{host:t}=this,a=eX({pkgName:e,extraOptions:n,shareInfos:t.options.shared});a?.scope&&await Promise.all(a.scope.map(async e=>{await Promise.all(this.initializeSharing(e,{strategy:a.strategy}))}));let{shareInfo:r}=await this.hooks.lifecycle.beforeLoadShare.emit({pkgName:e,shareInfo:a,shared:t.options.shared,origin:t});o(r,`Cannot find ${e} Share in the ${t.options.name}. Please ensure that the ${e} Share parameters have been injected`);let i=eZ(this.shareScopeMap,e,r,this.hooks.lifecycle.resolveShare),l=e=>{e.useIn||(e.useIn=[]),u(e.useIn,t.options.name)};if(i&&i.lib)return l(i),i.lib;if(i&&i.loading&&!i.loaded){let e=await i.loading;return i.loaded=!0,i.lib||(i.lib=e),l(i),e}if(i){let n=(async()=>{let e=await i.get();return l(i),i.loaded=!0,i.lib=e,e})();return this.setShared({pkgName:e,loaded:!1,shared:i,from:t.options.name,lib:null,loading:n}),n}{if(n?.customShareInfo)return!1;let a=(async()=>{let n=await r.get();r.lib=n,r.loaded=!0,l(r);let t=eZ(this.shareScopeMap,e,r,this.hooks.lifecycle.resolveShare);return t&&(t.lib=n,t.loaded=!0,t.from=r.from),n})();return this.setShared({pkgName:e,loaded:!1,shared:r,from:t.options.name,lib:null,loading:a}),a}}initializeSharing(e=W,n){let{host:t}=this,a=n?.from,r=n?.strategy,i=n?.initScope,l=[];if("build"!==a){let{initTokens:n}=this;i||(i=[]);let t=n[e];if(t||(t=n[e]={from:this.host.name}),i.indexOf(t)>=0)return l;i.push(t)}let o=this.shareScopeMap,s=t.options.name;o[e]||(o[e]={});let c=o[e],u=(e,n)=>{let{version:t,eager:a}=n;c[e]=c[e]||{};let r=c[e],i=r[t],l=!!(i&&(i.eager||i.shareConfig?.eager));(!i||"loaded-first"!==i.strategy&&!i.loaded&&(!a!=!l?a:s>i.from))&&(r[t]=n)},p=n=>n&&n.init&&n.init(o[e],i),d=async e=>{let{module:n}=await t.remoteHandler.getRemoteModuleAndOptions({id:e});if(n.getEntry){let a;try{a=await n.getEntry()}catch(n){a=await t.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:n,from:"runtime",lifecycle:"beforeLoadShare",origin:t})}n.inited||(await p(a),n.inited=!0)}};return Object.keys(t.options.shared).forEach(n=>{t.options.shared[n].forEach(t=>{t.scope.includes(e)&&u(n,t)})}),("version-first"===t.options.shareStrategy||"version-first"===r)&&t.options.remotes.forEach(n=>{n.shareScope===e&&l.push(d(n.name))}),l}loadShareSync(e,n){let{host:t}=this,a=eX({pkgName:e,extraOptions:n,shareInfos:t.options.shared});a?.scope&&a.scope.forEach(e=>{this.initializeSharing(e,{strategy:a.strategy})});let i=eZ(this.shareScopeMap,e,a,this.hooks.lifecycle.resolveShare),l=e=>{e.useIn||(e.useIn=[]),u(e.useIn,t.options.name)};if(i){if("function"==typeof i.lib)return l(i),i.loaded||(i.loaded=!0,i.from===t.options.name&&(a.loaded=!0)),i.lib;if("function"==typeof i.get){let n=i.get();if(!(n instanceof Promise))return l(i),this.setShared({pkgName:e,loaded:!0,from:t.options.name,lib:n,shared:i}),n}}if(a.lib)return a.loaded||(a.loaded=!0),a.lib;if(a.get){let i=a.get();if(i instanceof Promise){let a=n?.from==="build"?r.RUNTIME_005:r.RUNTIME_006;throw Error(r.getShortErrorMsg(a,r.runtimeDescMap,{hostName:t.options.name,sharedPkgName:e}))}return a.lib=i,this.setShared({pkgName:e,loaded:!0,from:t.options.name,lib:a.lib,shared:a}),a.lib}throw Error(r.getShortErrorMsg(r.RUNTIME_006,r.runtimeDescMap,{hostName:t.options.name,sharedPkgName:e}))}initShareScopeMap(e,n,t={}){let{host:a}=this;this.shareScopeMap[e]=n,this.hooks.lifecycle.initContainerShareScopeMap.emit({shareScope:n,options:a.options,origin:a,scopeName:e,hostShareScopeMap:t.hostShareScopeMap})}setShared({pkgName:e,shared:n,from:t,lib:a,loading:r,loaded:i,get:l}){let{version:o,scope:s="default",...c}=n;(Array.isArray(s)?s:[s]).forEach(n=>{if(this.shareScopeMap[n]||(this.shareScopeMap[n]={}),this.shareScopeMap[n][e]||(this.shareScopeMap[n][e]={}),!this.shareScopeMap[n][e][o]){this.shareScopeMap[n][e][o]={version:o,scope:[n],...c,lib:a,loaded:i,loading:r},l&&(this.shareScopeMap[n][e][o].get=l);return}let s=this.shareScopeMap[n][e][o];r&&!s.loading&&(s.loading=r),i&&!s.loaded&&(s.loaded=i),t&&s.from!==t&&(s.from=t)})}_setGlobalShareScopeMap(e){let n=eQ(),t=e.id||e.name;t&&!n[t]&&(n[t]=this.shareScopeMap)}}class nE{constructor(e){this.hooks=new ng({beforeRegisterRemote:new nf("beforeRegisterRemote"),registerRemote:new nf("registerRemote"),beforeRequest:new nm("beforeRequest"),onLoad:new np("onLoad"),handlePreloadModule:new nu("handlePreloadModule"),errorLoadRemote:new np("errorLoadRemote"),beforePreloadRemote:new np("beforePreloadRemote"),generatePreloadAssets:new np("generatePreloadAssets"),afterPreloadRemote:new np,loadEntry:new np}),this.host=e,this.idToRemoteMap={}}formatAndRegisterRemote(e,n){return(n.remotes||[]).reduce((e,n)=>(this.registerRemote(n,e,{force:!1}),e),e.remotes)}setIdToRemoteMap(e,n){let{remote:t,expose:a}=n,{name:r,alias:i}=t;if(this.idToRemoteMap[e]={name:t.name,expose:a},i&&e.startsWith(r)){let n=e.replace(r,i);this.idToRemoteMap[n]={name:t.name,expose:a};return}if(i&&e.startsWith(i)){let n=e.replace(i,r);this.idToRemoteMap[n]={name:t.name,expose:a}}}async loadRemote(e,n){let{host:t}=this;try{let{loadFactory:a=!0}=n||{loadFactory:!0},{module:r,moduleOptions:i,remoteMatchInfo:l}=await this.getRemoteModuleAndOptions({id:e}),{pkgNameOrAlias:o,remote:s,expose:c,id:u,remoteSnapshot:p}=l,d=await r.get(u,c,n,p),f=await this.hooks.lifecycle.onLoad.emit({id:u,pkgNameOrAlias:o,expose:c,exposeModule:a?d:void 0,exposeModuleFactory:a?void 0:d,remote:s,options:i,moduleInstance:r,origin:t});if(this.setIdToRemoteMap(e,l),"function"==typeof f)return f;return d}catch(i){let{from:a="runtime"}=n||{from:"runtime"},r=await this.hooks.lifecycle.errorLoadRemote.emit({id:e,error:i,from:a,lifecycle:"onLoad",origin:t});if(!r)throw i;return r}}async preloadRemote(e){let{host:n}=this;await this.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:e,options:n.options,origin:n});let t=ni(n.options.remotes,e);await Promise.all(t.map(async e=>{let{remote:t}=e,a=na(t),{globalSnapshot:r,remoteSnapshot:i}=await n.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:t}),l=await this.hooks.lifecycle.generatePreloadAssets.emit({origin:n,preloadOptions:e,remote:t,remoteInfo:a,globalSnapshot:r,remoteSnapshot:i});l&&no(a,n,l)}))}registerRemotes(e,n){let{host:t}=this;e.forEach(e=>{this.registerRemote(e,t.options.remotes,{force:n?.force})})}async getRemoteModuleAndOptions(e){let n,{host:t}=this,{id:a}=e;try{n=await this.hooks.lifecycle.beforeRequest.emit({id:a,options:t.options,origin:t})}catch(e){if(!(n=await this.hooks.lifecycle.errorLoadRemote.emit({id:a,options:t.options,origin:t,from:"runtime",error:e,lifecycle:"beforeRequest"})))throw e}let{id:i}=n,l=e1(t.options.remotes,i);o(l,r.getShortErrorMsg(r.RUNTIME_004,r.runtimeDescMap,{hostName:t.options.name,requestId:i}));let{remote:s}=l,c=na(s),u=await t.sharedHandler.hooks.lifecycle.afterResolve.emit({id:i,...l,options:t.options,origin:t,remoteInfo:c}),{remote:p,expose:d}=u;o(p&&d,`The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ${i}.`);let f=t.moduleCache.get(p.name),m={host:t,remoteInfo:c};return f||(f=new nc(m),t.moduleCache.set(p.name,f)),{module:f,moduleOptions:m,remoteMatchInfo:u}}registerRemote(e,n,t){let{host:r}=this,i=()=>{if(e.alias){let t=n.find(n=>e.alias&&(n.name.startsWith(e.alias)||n.alias?.startsWith(e.alias)));o(!t,`The alias ${e.alias} of remote ${e.name} is not allowed to be the prefix of ${t&&t.name} name or alias`)}"entry"in e&&a.isBrowserEnv()&&!e.entry.startsWith("http")&&(e.entry=new URL(e.entry,window.location.origin).href),e.shareScope||(e.shareScope=W),e.type||(e.type=U)};this.hooks.lifecycle.beforeRegisterRemote.emit({remote:e,origin:r});let l=n.find(n=>n.name===e.name);if(l){let o=[`The remote "${e.name}" is already registered.`,"Please note that overriding it may cause unexpected errors."];t?.force&&(this.removeRemote(l),i(),n.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:r}),a.warn(o.join(" ")))}else i(),n.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:r})}removeRemote(e){try{let{host:n}=this,{name:t}=e,r=n.options.remotes.findIndex(e=>e.name===t);-1!==r&&n.options.remotes.splice(r,1);let i=n.moduleCache.get(e.name);if(i){let t=i.remoteInfo,r=t.entryGlobalName;$[r]&&(Object.getOwnPropertyDescriptor($,r)?.configurable?delete $[r]:$[r]=void 0);let l=nn(i.remoteInfo);k[l]&&delete k[l],n.snapshotHandler.manifestCache.delete(t.entry);let o=t.buildVersion?a.composeKeyWithSeparator(t.name,t.buildVersion):t.name,s=$.__FEDERATION__.__INSTANCES__.findIndex(e=>t.buildVersion?e.options.id===o:e.name===o);if(-1!==s){let e=$.__FEDERATION__.__INSTANCES__[s];o=e.options.id||o;let n=eQ(),a=!0,r=[];Object.keys(n).forEach(e=>{let i=n[e];i&&Object.keys(i).forEach(n=>{let l=i[n];l&&Object.keys(l).forEach(i=>{let o=l[i];o&&Object.keys(o).forEach(l=>{let s=o[l];s&&"object"==typeof s&&s.from===t.name&&(s.loaded||s.loading?(s.useIn=s.useIn.filter(e=>e!==t.name),s.useIn.length?a=!1:r.push([e,n,i,l])):r.push([e,n,i,l]))})})})}),a&&(e.shareScopeMap={},delete n[o]),r.forEach(([e,t,a,r])=>{delete n[e]?.[t]?.[a]?.[r]}),$.__FEDERATION__.__INSTANCES__.splice(s,1)}let{hostGlobalSnapshot:c}=nw(e,n);if(c){let n=c&&"remotesInfo"in c&&c.remotesInfo&&O(c.remotesInfo,e.name).key;n&&(delete c.remotesInfo[n],x.__FEDERATION__.__MANIFEST_LOADING__[n]&&delete x.__FEDERATION__.__MANIFEST_LOADING__[n])}n.moduleCache.delete(e.name)}}catch(e){l.log("removeRemote fail: ",e)}}}let nk="boolean"!=typeof FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN||!FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN;class nN{constructor(e){this.hooks=new ng({beforeInit:new nf("beforeInit"),init:new nu,beforeInitContainer:new nm("beforeInitContainer"),initContainer:new nm("initContainer")}),this.version="0.22.0",this.moduleCache=new Map,this.loaderHook=new ng({getModuleInfo:new nu,createScript:new nu,createLink:new nu,fetch:new np,loadEntryError:new np,getModuleFactory:new np}),this.bridgeHook=new ng({beforeBridgeRender:new nu,afterBridgeRender:new nu,beforeBridgeDestroy:new nu,afterBridgeDestroy:new nu});const n=nk?[n_(),n$()]:[],t={id:e0(),name:e.name,plugins:n,remotes:[],shared:{},inBrowser:a.isBrowserEnv()};this.name=e.name,this.options=t,this.snapshotHandler=new nx(this),this.sharedHandler=new nC(this),this.remoteHandler=new nE(this),this.shareScopeMap=this.sharedHandler.shareScopeMap,this.registerPlugins([...t.plugins,...e.plugins||[]]),this.options=this.formatOptions(t,e)}initOptions(e){this.registerPlugins(e.plugins);let n=this.formatOptions(this.options,e);return this.options=n,n}async loadShare(e,n){return this.sharedHandler.loadShare(e,n)}loadShareSync(e,n){return this.sharedHandler.loadShareSync(e,n)}initializeSharing(e=W,n){return this.sharedHandler.initializeSharing(e,n)}initRawContainer(e,n,t){let a=new nc({host:this,remoteInfo:na({name:e,entry:n})});return a.remoteEntryExports=t,this.moduleCache.set(e,a),a}async loadRemote(e,n){return this.remoteHandler.loadRemote(e,n)}async preloadRemote(e){return this.remoteHandler.preloadRemote(e)}initShareScopeMap(e,n,t={}){this.sharedHandler.initShareScopeMap(e,n,t)}formatOptions(e,n){let{shared:t}=eq(e,n),{userOptions:a,options:r}=this.hooks.lifecycle.beforeInit.emit({origin:this,userOptions:n,options:e,shareInfo:t}),i=this.remoteHandler.formatAndRegisterRemote(r,a),{shared:l}=this.sharedHandler.registerShared(r,a),o=[...r.plugins];a.plugins&&a.plugins.forEach(e=>{o.includes(e)||o.push(e)});let s={...e,...n,plugins:o,remotes:i,shared:l};return this.hooks.lifecycle.init.emit({origin:this,options:s}),s}registerPlugins(e){let n=e3(e,this);this.options.plugins=this.options.plugins.reduce((e,n)=>(n&&e&&!e.find(e=>e.name===n.name)&&e.push(n),e),n||[])}registerRemotes(e,n){return this.remoteHandler.registerRemotes(e,n)}registerShared(e){this.sharedHandler.registerShared(this.options,{...this.options,shared:e})}}var nS=Object.freeze({__proto__:null});n.loadScript=a.loadScript,n.loadScriptNode=a.loadScriptNode,n.CurrentGlobal=$,n.Global=x,n.Module=nc,n.ModuleFederation=nN,n.addGlobalSnapshot=L,n.assert=o,n.getGlobalFederationConstructor=z,n.getGlobalSnapshot=M,n.getInfoWithoutType=O,n.getRegisteredShare=eZ,n.getRemoteEntry=nt,n.getRemoteInfo=na,n.helpers=ns,n.isStaticResourcesEqual=b,n.matchRemoteWithNameAndExpose=e1,n.registerGlobalPlugins=F,n.resetFederationGlobalInfo=S,n.safeWrapper=m,n.satisfy=ej,n.setGlobalFederationConstructor=T,n.setGlobalFederationInstance=I,n.types=nS},86490(e,n,t){"use strict";var a=t(35822),r=t(63767),i=t(6197);function l(e){let n=new(a.getGlobalFederationConstructor()||a.ModuleFederation)(e);return a.setGlobalFederationInstance(n),n}let o=null;function s(e){let n=i.getGlobalFederationInstance(e.name,e.version);return n?(n.initOptions(e),o||(o=n),n):o=l(e)}function c(...e){return a.assert(o,r.getShortErrorMsg(r.RUNTIME_009,r.runtimeDescMap)),o.loadRemote.apply(o,e)}function u(...e){return a.assert(o,r.getShortErrorMsg(r.RUNTIME_009,r.runtimeDescMap)),o.loadShare.apply(o,e)}function p(...e){return a.assert(o,r.getShortErrorMsg(r.RUNTIME_009,r.runtimeDescMap)),o.loadShareSync.apply(o,e)}function d(...e){return a.assert(o,r.getShortErrorMsg(r.RUNTIME_009,r.runtimeDescMap)),o.preloadRemote.apply(o,e)}function f(...e){return a.assert(o,r.getShortErrorMsg(r.RUNTIME_009,r.runtimeDescMap)),o.registerRemotes.apply(o,e)}function m(...e){return a.assert(o,r.getShortErrorMsg(r.RUNTIME_009,r.runtimeDescMap)),o.registerPlugins.apply(o,e)}function g(){return o}function h(...e){return a.assert(o,r.getShortErrorMsg(r.RUNTIME_009,r.runtimeDescMap)),o.registerShared.apply(o,e)}a.setGlobalFederationConstructor(a.ModuleFederation),n.Module=a.Module,n.ModuleFederation=a.ModuleFederation,n.getRemoteEntry=a.getRemoteEntry,n.getRemoteInfo=a.getRemoteInfo,n.loadScript=a.loadScript,n.loadScriptNode=a.loadScriptNode,n.registerGlobalPlugins=a.registerGlobalPlugins,n.createInstance=l,n.getInstance=g,n.init=s,n.loadRemote=c,n.loadShare=u,n.loadShareSync=p,n.preloadRemote=d,n.registerPlugins=m,n.registerRemotes=f,n.registerShared=h},6197(e,n,t){"use strict";var a=t(35822);function r(){return"u">typeof FEDERATION_BUILD_IDENTIFIER?FEDERATION_BUILD_IDENTIFIER:""}n.getGlobalFederationInstance=function(e,n){let t=r();return a.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(a=>!!t&&a.options.id===t||a.options.name===e&&!a.options.version&&!n||a.options.name===e&&!!n&&a.options.version===n)}},45882(__unused_rspack_module,exports){"use strict";let FederationModuleManifest="federation-manifest.json",MANIFEST_EXT=".json",BROWSER_LOG_KEY="FEDERATION_DEBUG",NameTransformSymbol={AT:"@",HYPHEN:"-",SLASH:"/"},NameTransformMap={[NameTransformSymbol.AT]:"scope_",[NameTransformSymbol.HYPHEN]:"_",[NameTransformSymbol.SLASH]:"__"},EncodedNameTransformMap={[NameTransformMap[NameTransformSymbol.AT]]:NameTransformSymbol.AT,[NameTransformMap[NameTransformSymbol.HYPHEN]]:NameTransformSymbol.HYPHEN,[NameTransformMap[NameTransformSymbol.SLASH]]:NameTransformSymbol.SLASH},SEPARATOR=":",ManifestFileName="mf-manifest.json",StatsFileName="mf-stats.json",MFModuleType={NPM:"npm",APP:"app"},MODULE_DEVTOOL_IDENTIFIER="__MF_DEVTOOLS_MODULE_INFO__",ENCODE_NAME_PREFIX="ENCODE_NAME_PREFIX",TEMP_DIR=".federation",MFPrefetchCommon={identifier:"MFDataPrefetch",globalKey:"__PREFETCH__",library:"mf-data-prefetch",exportsKey:"__PREFETCH_EXPORTS__",fileName:"bootstrap.js"};var ContainerPlugin=Object.freeze({__proto__:null}),ContainerReferencePlugin=Object.freeze({__proto__:null}),ModuleFederationPlugin=Object.freeze({__proto__:null}),SharePlugin=Object.freeze({__proto__:null});function isBrowserEnv(){return"u">typeof window&&void 0!==window.document}function isReactNativeEnv(){return"u">typeof navigator&&navigator?.product==="ReactNative"}function isBrowserDebug(){try{if(isBrowserEnv()&&window.localStorage)return!!localStorage.getItem(BROWSER_LOG_KEY)}catch(e){}return!1}function isDebugMode(){return"u">typeof process&&process.env&&process.env.FEDERATION_DEBUG?!!process.env.FEDERATION_DEBUG:!!("u">typeof FEDERATION_DEBUG&&FEDERATION_DEBUG)||isBrowserDebug()}let getProcessEnv=function(){return"u">typeof process&&process.env?process.env:{}},LOG_CATEGORY="[ Federation Runtime ]",parseEntry=(e,n,t=SEPARATOR)=>{let a=e.split(t),r="development"===getProcessEnv().NODE_ENV&&n,i="*",l=e=>e.startsWith("http")||e.includes(MANIFEST_EXT);if(a.length>=2){let[n,...o]=a;e.startsWith(t)&&(n=a.slice(0,2).join(t),o=[r||a.slice(2).join(t)]);let s=r||o.join(t);return l(s)?{name:n,entry:s}:{name:n,version:s||i}}if(1===a.length){let[e]=a;return r&&l(r)?{name:e,entry:r}:{name:e,version:r||i}}throw`Invalid entry value: ${e}`},composeKeyWithSeparator=function(...e){return e.length?e.reduce((e,n)=>n?e?`${e}${SEPARATOR}${n}`:n:e,""):""},encodeName=function(e,n="",t=!1){try{let a=t?".js":"";return`${n}${e.replace(RegExp(`${NameTransformSymbol.AT}`,"g"),NameTransformMap[NameTransformSymbol.AT]).replace(RegExp(`${NameTransformSymbol.HYPHEN}`,"g"),NameTransformMap[NameTransformSymbol.HYPHEN]).replace(RegExp(`${NameTransformSymbol.SLASH}`,"g"),NameTransformMap[NameTransformSymbol.SLASH])}${a}`}catch(e){throw e}},decodeName=function(e,n,t){try{let a=e;if(n){if(!a.startsWith(n))return a;a=a.replace(RegExp(n,"g"),"")}return a=a.replace(RegExp(`${NameTransformMap[NameTransformSymbol.AT]}`,"g"),EncodedNameTransformMap[NameTransformMap[NameTransformSymbol.AT]]).replace(RegExp(`${NameTransformMap[NameTransformSymbol.SLASH]}`,"g"),EncodedNameTransformMap[NameTransformMap[NameTransformSymbol.SLASH]]).replace(RegExp(`${NameTransformMap[NameTransformSymbol.HYPHEN]}`,"g"),EncodedNameTransformMap[NameTransformMap[NameTransformSymbol.HYPHEN]]),t&&(a=a.replace(".js","")),a}catch(e){throw e}},generateExposeFilename=(e,n)=>{if(!e)return"";let t=e;return"."===t&&(t="default_export"),t.startsWith("./")&&(t=t.replace("./","")),encodeName(t,"__federation_expose_",n)},generateShareFilename=(e,n)=>e?encodeName(e,"__federation_shared_",n):"",getResourceUrl=(e,n)=>{if("getPublicPath"in e){let t;return t=e.getPublicPath.startsWith("function")?Function("return "+e.getPublicPath)()():Function(e.getPublicPath)(),`${t}${n}`}return"publicPath"in e?!isBrowserEnv()&&!isReactNativeEnv()&&"ssrPublicPath"in e?`${e.ssrPublicPath}${n}`:`${e.publicPath}${n}`:(console.warn("Cannot get resource URL. If in debug mode, please ignore.",e,n),"")},assert=(e,n)=>{e||error(n)},error=e=>{throw Error(`${LOG_CATEGORY}: ${e}`)},warn=e=>{console.warn(`${LOG_CATEGORY}: ${e}`)};function safeToString(e){try{return JSON.stringify(e,null,2)}catch(e){return""}}let VERSION_PATTERN_REGEXP=/^([\d^=v<>~]|[*xX]$)/;function isRequiredVersion(e){return VERSION_PATTERN_REGEXP.test(e)}let simpleJoinRemoteEntry=(e,n)=>{if(!e)return n;let t=(e=>{if("."===e)return"";if(e.startsWith("./"))return e.replace("./","");if(e.startsWith("/")){let n=e.slice(1);return n.endsWith("/")?n.slice(0,-1):n}return e})(e);return t?t.endsWith("/")?`${t}${n}`:`${t}/${n}`:n};function inferAutoPublicPath(e){return e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")}function generateSnapshotFromManifest(e,n={}){let t,{remotes:a={},overrides:r={},version:i}=n,l=()=>"publicPath"in e.metaData?"auto"===e.metaData.publicPath&&i?inferAutoPublicPath(i):e.metaData.publicPath:e.metaData.getPublicPath,o=Object.keys(r),s={};Object.keys(a).length||(s=e.remotes?.reduce((e,n)=>{let t,a=n.federationContainerName;return t=o.includes(a)?r[a]:"version"in n?n.version:n.entry,e[a]={matchedVersion:t},e},{})||{}),Object.keys(a).forEach(e=>s[e]={matchedVersion:o.includes(e)?r[e]:a[e]});let{remoteEntry:{path:c,name:u,type:p},types:d={path:"",name:"",zip:"",api:""},buildInfo:{buildVersion:f},globalName:m,ssrRemoteEntry:g}=e.metaData,{exposes:h}=e,_={version:i||"",buildVersion:f,globalName:m,remoteEntry:simpleJoinRemoteEntry(c,u),remoteEntryType:p,remoteTypes:simpleJoinRemoteEntry(d.path,d.name),remoteTypesZip:d.zip||"",remoteTypesAPI:d.api||"",remotesInfo:s,shared:e?.shared.map(e=>({assets:e.assets,sharedName:e.name,version:e.version})),modules:h?.map(e=>({moduleName:e.name,modulePath:e.path,assets:e.assets}))};if(e.metaData?.prefetchInterface){let n=e.metaData.prefetchInterface;_={..._,prefetchInterface:n}}if(e.metaData?.prefetchEntry){let{path:n,name:t,type:a}=e.metaData.prefetchEntry;_={..._,prefetchEntry:simpleJoinRemoteEntry(n,t),prefetchEntryType:a}}return t="publicPath"in e.metaData?{..._,publicPath:l(),ssrPublicPath:e.metaData.ssrPublicPath}:{..._,getPublicPath:l()},g&&(t.ssrRemoteEntry=simpleJoinRemoteEntry(g.path,g.name),t.ssrRemoteEntryType=g.type||"commonjs-module"),t}function isManifestProvider(e){return!!("remoteEntry"in e&&e.remoteEntry.includes(MANIFEST_EXT))}function getManifestFileName(e){if(!e)return{statsFileName:StatsFileName,manifestFileName:ManifestFileName};let n="boolean"==typeof e?"":e.filePath||"",t="boolean"==typeof e?"":e.fileName||"",a=".json",r=e=>e.endsWith(a)?e:`${e}${a}`,i=(e,n)=>e.replace(a,`${n}${a}`),l=t?r(t):ManifestFileName;return{statsFileName:simpleJoinRemoteEntry(n,t?i(l,"-stats"):StatsFileName),manifestFileName:simpleJoinRemoteEntry(n,l)}}let PREFIX="[ Module Federation ]",DEFAULT_DELEGATE=console,LOGGER_STACK_SKIP_TOKENS=["logger.ts","logger.js","captureStackTrace","Logger.emit","Logger.log","Logger.info","Logger.warn","Logger.error","Logger.debug"];function captureStackTrace(){try{let e=Error().stack;if(!e)return;let[,...n]=e.split("\n"),t=n.filter(e=>!LOGGER_STACK_SKIP_TOKENS.some(n=>e.includes(n)));if(!t.length)return;let a=t.slice(0,5).join("\n");return`Stack trace:
14
14
  ${a}`}catch{return}}class Logger{constructor(e,n=DEFAULT_DELEGATE){this.prefix=e,this.delegate=n??DEFAULT_DELEGATE}setPrefix(e){this.prefix=e}setDelegate(e){this.delegate=e??DEFAULT_DELEGATE}emit(e,n){let t=this.delegate,a=isDebugMode()?captureStackTrace():void 0,r=a?[...n,a]:n,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 n=t[e];if("function"==typeof n)return void n.call(t,this.prefix,...r)}for(let e of i){let n=DEFAULT_DELEGATE[e];if("function"==typeof n)return void n.call(DEFAULT_DELEGATE,this.prefix,...r)}}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){isDebugMode()&&this.emit("debug",e)}}function createLogger(e){return new Logger(e)}function createInfrastructureLogger(e){let n=new Logger(e);return Object.defineProperty(n,"__mf_infrastructure_logger__",{value:!0,enumerable:!1,configurable:!1}),n}function bindLoggerToCompiler(e,n,t){if(e.__mf_infrastructure_logger__&&n?.getInfrastructureLogger)try{let a=n.getInfrastructureLogger(t);a&&"object"==typeof a&&("function"==typeof a.log||"function"==typeof a.info||"function"==typeof a.warn||"function"==typeof a.error)&&e.setDelegate(a)}catch{e.setDelegate(void 0)}}let logger=createLogger(PREFIX),infrastructureLogger=createInfrastructureLogger(PREFIX);async function safeWrapper(e,n){try{return await e()}catch(e){n||warn(e);return}}function isStaticResourcesEqual(e,n){let t=/^(https?:)?\/\//i;return e.replace(t,"").replace(/\/$/,"")===n.replace(t,"").replace(/\/$/,"")}function createScript(e){let n,t=null,a=!0,r=2e4,i=document.getElementsByTagName("script");for(let n=0;n<i.length;n++){let r=i[n],l=r.getAttribute("src");if(l&&isStaticResourcesEqual(l,e.url)){t=r,a=!1;break}}if(!t){let n,a=e.attrs;(t=document.createElement("script")).type=a?.type==="module"?"module":"text/javascript",e.createScriptHook&&((n=e.createScriptHook(e.url,e.attrs))instanceof HTMLScriptElement?t=n:"object"==typeof n&&("script"in n&&n.script&&(t=n.script),"timeout"in n&&n.timeout&&(r=n.timeout))),t.src||(t.src=e.url),a&&!n&&Object.keys(a).forEach(e=>{t&&("async"===e||"defer"===e?t[e]=a[e]:t.getAttribute(e)||t.setAttribute(e,a[e]))})}let l=async(a,r)=>{clearTimeout(n);let i=()=>{r?.type==="error"?e?.onErrorCallback&&e?.onErrorCallback(r):e?.cb&&e?.cb()};if(t&&(t.onerror=null,t.onload=null,safeWrapper(()=>{let{needDeleteScript:n=!0}=e;n&&t?.parentNode&&t.parentNode.removeChild(t)}),a&&"function"==typeof a)){let e=a(r);if(e instanceof Promise){let n=await e;return i(),n}return i(),e}i()};return t.onerror=l.bind(null,t.onerror),t.onload=l.bind(null,t.onload),n=setTimeout(()=>{l(null,Error(`Remote script "${e.url}" time-outed.`))},r),{script:t,needAttach:a}}function createLink(e){let n=null,t=!0,a=document.getElementsByTagName("link");for(let r=0;r<a.length;r++){let i=a[r],l=i.getAttribute("href"),o=i.getAttribute("rel");if(l&&isStaticResourcesEqual(l,e.url)&&o===e.attrs.rel){n=i,t=!1;break}}if(!n){let t;(n=document.createElement("link")).setAttribute("href",e.url);let a=e.attrs;e.createLinkHook&&(t=e.createLinkHook(e.url,a))instanceof HTMLLinkElement&&(n=t),a&&!t&&Object.keys(a).forEach(e=>{n&&!n.getAttribute(e)&&n.setAttribute(e,a[e])})}let r=(t,a)=>{let r=()=>{a?.type==="error"?e?.onErrorCallback&&e?.onErrorCallback(a):e?.cb&&e?.cb()};if(n&&(n.onerror=null,n.onload=null,safeWrapper(()=>{let{needDeleteLink:t=!0}=e;t&&n?.parentNode&&n.parentNode.removeChild(n)}),t)){let e=t(a);return r(),e}r()};return n.onerror=r.bind(null,n.onerror),n.onload=r.bind(null,n.onload),{link:n,needAttach:t}}function loadScript(e,n){let{attrs:t={},createScriptHook:a}=n;return new Promise((n,r)=>{let{script:i,needAttach:l}=createScript({url:e,cb:n,onErrorCallback:r,attrs:{fetchpriority:"high",...t},createScriptHook:a,needDeleteScript:!0});l&&document.head.appendChild(i)})}let sdkImportCache=new Map;function importNodeModule(e){if(!e)throw Error("import specifier is required");if(sdkImportCache.has(e))return sdkImportCache.get(e);let n=Function("name","return import(name)")(e).then(e=>e).catch(n=>{throw console.error(`Error importing module ${e}:`,n),sdkImportCache.delete(e),n});return sdkImportCache.set(e,n),n}let loadNodeFetch=async()=>{let e=await importNodeModule("node-fetch");return e.default||e},lazyLoaderHookFetch=async(e,n,t)=>{let a=(e,n)=>t.lifecycle.fetch.emit(e,n),r=await a(e,n||{});return r&&r instanceof Response?r:("u"<typeof fetch?await loadNodeFetch():fetch)(e,n||{})},createScriptNode="u"<typeof ENV_TARGET||"web"!==ENV_TARGET?(url,cb,attrs,loaderHook)=>{let urlObj;if(loaderHook?.createScriptHook){let hookResult=loaderHook.createScriptHook(url);hookResult&&"object"==typeof hookResult&&"url"in hookResult&&(url=hookResult.url)}try{urlObj=new URL(url)}catch(e){console.error("Error constructing URL:",e),cb(Error(`Invalid URL: ${e}`));return}let getFetch=async()=>loaderHook?.fetch?(e,n)=>lazyLoaderHookFetch(e,n,loaderHook):"u"<typeof fetch?loadNodeFetch():fetch,handleScriptFetch=async(f,urlObj)=>{try{let res=await f(urlObj.href),data=await res.text(),[path,vm]=await Promise.all([importNodeModule("path"),importNodeModule("vm")]),scriptContext={exports:{},module:{exports:{}}},urlDirname=urlObj.pathname.split("/").slice(0,-1).join("/"),filename=path.basename(urlObj.pathname),script=new vm.Script(`(function(exports, module, require, __dirname, __filename) {${data}
15
15
  })`,{filename,importModuleDynamically:vm.constants?.USE_MAIN_CONTEXT_DEFAULT_LOADER??importNodeModule});script.runInThisContext()(scriptContext.exports,scriptContext.module,eval("require"),urlDirname,filename);let exportedInterface=scriptContext.module.exports||scriptContext.exports;if(attrs&&exportedInterface&&attrs.globalName){let container=exportedInterface[attrs.globalName]||exportedInterface;cb(void 0,container);return}cb(void 0,exportedInterface)}catch(e){cb(e instanceof Error?e:Error(`Script execution error: ${e}`))}};getFetch().then(async e=>{if(attrs?.type==="esm"||attrs?.type==="module")return loadModule(urlObj.href,{fetch:e,vm:await importNodeModule("vm")}).then(async e=>{await e.evaluate(),cb(void 0,e.namespace)}).catch(e=>{cb(e instanceof Error?e:Error(`Script execution error: ${e}`))});handleScriptFetch(e,urlObj)}).catch(e=>{cb(e)})}:(e,n,t,a)=>{n(Error("createScriptNode is disabled in non-Node.js environment"))},loadScriptNode="u"<typeof ENV_TARGET||"web"!==ENV_TARGET?(e,n)=>new Promise((t,a)=>{createScriptNode(e,(e,r)=>{if(e)a(e);else{let e=n?.attrs?.globalName||`__FEDERATION_${n?.attrs?.name}:custom__`;t(globalThis[e]=r)}},n.attrs,n.loaderHook)}):(e,n)=>{throw Error("loadScriptNode is disabled in non-Node.js environment")},esmModuleCache=new Map;async function loadModule(e,n){if(esmModuleCache.has(e))return esmModuleCache.get(e);let{fetch:t,vm:a}=n,r=await t(e),i=await r.text(),l=new a.SourceTextModule(i,{importModuleDynamically:async(t,a)=>loadModule(new URL(t,e).href,n)});return esmModuleCache.set(e,l),await l.link(async t=>{let a=new URL(t,e).href;return await loadModule(a,n)}),l}function normalizeOptions(e,n,t){return function(a){if(!1===a)return!1;if(void 0===a)if(e)return n;else return!1;if(!0===a)return n;if(a&&"object"==typeof a)return{...n,...a};throw Error(`Unexpected type for \`${t}\`, expect boolean/undefined/object, got: ${typeof a}`)}}let createModuleFederationConfig=e=>e;exports.BROWSER_LOG_KEY=BROWSER_LOG_KEY,exports.ENCODE_NAME_PREFIX=ENCODE_NAME_PREFIX,exports.EncodedNameTransformMap=EncodedNameTransformMap,exports.FederationModuleManifest=FederationModuleManifest,exports.MANIFEST_EXT=MANIFEST_EXT,exports.MFModuleType=MFModuleType,exports.MFPrefetchCommon=MFPrefetchCommon,exports.MODULE_DEVTOOL_IDENTIFIER=MODULE_DEVTOOL_IDENTIFIER,exports.ManifestFileName=ManifestFileName,exports.NameTransformMap=NameTransformMap,exports.NameTransformSymbol=NameTransformSymbol,exports.SEPARATOR=SEPARATOR,exports.StatsFileName=StatsFileName,exports.TEMP_DIR=TEMP_DIR,exports.assert=assert,exports.bindLoggerToCompiler=bindLoggerToCompiler,exports.composeKeyWithSeparator=composeKeyWithSeparator,exports.containerPlugin=ContainerPlugin,exports.containerReferencePlugin=ContainerReferencePlugin,exports.createInfrastructureLogger=createInfrastructureLogger,exports.createLink=createLink,exports.createLogger=createLogger,exports.createModuleFederationConfig=createModuleFederationConfig,exports.createScript=createScript,exports.createScriptNode=createScriptNode,exports.decodeName=decodeName,exports.encodeName=encodeName,exports.error=error,exports.generateExposeFilename=generateExposeFilename,exports.generateShareFilename=generateShareFilename,exports.generateSnapshotFromManifest=generateSnapshotFromManifest,exports.getManifestFileName=getManifestFileName,exports.getProcessEnv=getProcessEnv,exports.getResourceUrl=getResourceUrl,exports.inferAutoPublicPath=inferAutoPublicPath,exports.infrastructureLogger=infrastructureLogger,exports.isBrowserEnv=isBrowserEnv,exports.isDebugMode=isDebugMode,exports.isManifestProvider=isManifestProvider,exports.isReactNativeEnv=isReactNativeEnv,exports.isRequiredVersion=isRequiredVersion,exports.isStaticResourcesEqual=isStaticResourcesEqual,exports.loadScript=loadScript,exports.loadScriptNode=loadScriptNode,exports.logger=logger,exports.moduleFederationPlugin=ModuleFederationPlugin,exports.normalizeOptions=normalizeOptions,exports.parseEntry=parseEntry,exports.safeToString=safeToString,exports.safeWrapper=safeWrapper,exports.sharePlugin=SharePlugin,exports.simpleJoinRemoteEntry=simpleJoinRemoteEntry,exports.warn=warn},31629(e,n){"use strict";n.FEDERATION_SUPPORTED_TYPES=["script"]},82707(e,n,t){"use strict";var a=t(86490),r=t(31629),i=t(45882);function l(e){e.S&&!e.federation.hasAttachShareScopeMap&&e.federation.instance&&e.federation.instance.shareScopeMap&&(e.S=e.federation.instance.shareScopeMap,e.federation.hasAttachShareScopeMap=!0)}function o(e){let{webpackRequire:n,moduleToHandlerMapping:t}=e,{consumesLoadingData:a,initializeSharingData:r}=n;if(a&&!a._updated){let{moduleIdToConsumeDataMapping:n={},initialConsumes:r=[],chunkMapping:i={}}=a;if(Object.entries(n).forEach(([e,n])=>{t[e]||(t[e]={getter:n.fallback,shareInfo:{shareConfig:{requiredVersion:n.requiredVersion,strictVersion:n.strictVersion,singleton:n.singleton,eager:n.eager,layer:n.layer},scope:Array.isArray(n.shareScope)?n.shareScope:[n.shareScope||"default"]},shareKey:n.shareKey})}),"initialConsumes"in e){let{initialConsumes:n=[]}=e;r.forEach(e=>{n.includes(e)||n.push(e)})}if("chunkMapping"in e){let{chunkMapping:n={}}=e;Object.entries(i).forEach(([e,t])=>{n[e]||(n[e]=[]),t.forEach(t=>{n[e].includes(t)||n[e].push(t)})})}a._updated=1}if(r&&!r._updated){let{federation:e}=n;if(!e.instance||!r.scopeToSharingDataMapping)return;let t={};for(let[e,n]of Object.entries(r.scopeToSharingDataMapping))for(let a of n)if("object"==typeof a&&null!==a){let{name:n,version:r,factory:i,eager:l,singleton:o,requiredVersion:s,strictVersion:c}=a,u={requiredVersion:`^${r}`},p=function(e){return void 0!==e};p(o)&&(u.singleton=o),p(s)&&(u.requiredVersion=s),p(l)&&(u.eager=l),p(c)&&(u.strictVersion=c);let d={version:r,scope:[e],shareConfig:u,get:i};t[n]?t[n].push(d):t[n]=[d]}e.instance.registerShared(t),r._updated=1}}function s(e){let{webpackRequire:n,idToExternalAndNameMapping:t={},idToRemoteMap:a={},chunkMapping:r={}}=e,{remotesLoadingData:i}=n,l=n.federation?.bundlerRuntimeOptions?.remotes?.remoteInfos;if(!i||i._updated||!l)return;let{chunkMapping:o,moduleIdToRemoteDataMapping:s}=i;if(o&&s){for(let[e,n]of Object.entries(s))if(t[e]||(t[e]=[n.shareScope,n.name,n.externalModuleId]),!a[e]&&l[n.remoteName]){let t=l[n.remoteName];a[e]||=[],t.forEach(n=>{a[e].includes(n)||a[e].push(n)})}r&&Object.entries(o).forEach(([e,n])=>{r[e]||(r[e]=[]),n.forEach(n=>{r[e].includes(n)||r[e].push(n)})}),i._updated=1}}function c(e){s(e);let{chunkId:n,promises:t,webpackRequire:a,chunkMapping:o,idToExternalAndNameMapping:c,idToRemoteMap:u}=e;l(a),a.o(o,n)&&o[n].forEach(e=>{let n=a.R;n||(n=[]);let l=c[e],o=u[e]||[];if(n.indexOf(l)>=0)return;if(n.push(l),l.p)return t.push(l.p);let s=n=>{n||(n=Error("Container missing")),"string"==typeof n.message&&(n.message+=`
16
- while loading "${l[1]}" from ${l[2]}`),a.m[e]=()=>{throw n},l.p=0},p=(e,n,a,r,i,o)=>{try{let c=e(n,a);if(!c||!c.then)return i(c,r,o);{let e=c.then(e=>i(e,r),s);if(!o)return e;t.push(l.p=e)}}catch(e){s(e)}},d=(e,n,t)=>e?p(a.I,l[0],0,e,f,t):s();var f=(e,t,a)=>p(t.get,l[1],n,0,m,a),m=n=>{l.p=1,a.m[e]=e=>{e.exports=n()}};let g=()=>{try{let e=i.decodeName(o[0].name,i.ENCODE_NAME_PREFIX)+l[1].slice(1),n=a.federation.instance,t=()=>a.federation.instance.loadRemote(e,{loadFactory:!1,from:"build"});if("version-first"===n.options.shareStrategy)return Promise.all(n.sharedHandler.initializeSharing(l[0])).then(()=>t());return t()}catch(e){s(e)}};1===o.length&&r.FEDERATION_SUPPORTED_TYPES.includes(o[0].externalType)&&o[0].name?p(g,l[2],0,0,m,1):p(a,l[2],0,0,d,1)})}function u(e){o(e);let{chunkId:n,promises:t,installedModules:a,webpackRequire:r,chunkMapping:i,moduleToHandlerMapping:s}=e;l(r),r.o(i,n)&&i[n].forEach(e=>{if(r.o(a,e))return t.push(a[e]);let n=n=>{a[e]=0,r.m[e]=t=>{delete r.c[e];let a=n(),{shareInfo:i}=s[e];if(i?.shareConfig?.layer&&a&&"object"==typeof a)try{a.hasOwnProperty("layer")&&void 0!==a.layer||(a.layer=i.shareConfig.layer)}catch(e){}t.exports=a}},i=n=>{delete a[e],r.m[e]=t=>{throw delete r.c[e],n}};try{let l=r.federation.instance;if(!l)throw Error("Federation instance not found!");let{shareKey:o,getter:c,shareInfo:u}=s[e],p=l.loadShare(o,{customShareInfo:u}).then(e=>!1===e?c():e);p.then?t.push(a[e]=p.then(n).catch(i)):n(p)}catch(e){i(e)}})}function p({shareScopeName:e,webpackRequire:n,initPromises:t,initTokens:a,initScope:i}){let o=Array.isArray(e)?e:[e];var s=[],c=function(o){i||(i=[]);let s=n.federation.instance;var c=a[o];if(c||(c=a[o]={from:s.name}),i.indexOf(c)>=0)return;i.push(c);let u=t[o];if(u)return u;var p=e=>"u">typeof console&&console.warn&&console.warn(e),d=t=>{var a=e=>p("Initialization of sharing external failed: "+e);try{var r=n(t);if(!r)return;var l=t=>t&&t.init&&t.init(n.S[o],i,{shareScopeMap:n.S||{},shareScopeKeys:e});if(r.then)return f.push(r.then(l,a));var s=l(r);if(s&&"boolean"!=typeof s&&s.then)return f.push(s.catch(a))}catch(e){a(e)}};let f=s.initializeSharing(o,{strategy:s.options.shareStrategy,initScope:i,from:"build"});l(n);let m=n.federation.bundlerRuntimeOptions.remotes;return(m&&Object.keys(m.idToRemoteMap).forEach(e=>{let n=m.idToRemoteMap[e],t=m.idToExternalAndNameMapping[e][2];if(n.length>1)d(t);else if(1===n.length){let e=n[0];r.FEDERATION_SUPPORTED_TYPES.includes(e.externalType)||d(t)}}),f.length)?t[o]=Promise.all(f).then(()=>t[o]=!0):t[o]=!0};return o.forEach(e=>{s.push(c(e))}),Promise.all(s).then(()=>!0)}function d(e){let{moduleId:n,moduleToHandlerMapping:t,webpackRequire:a}=e,r=a.federation.instance;if(!r)throw Error("Federation instance not found!");let{shareKey:i,shareInfo:l}=t[n];try{return r.loadShareSync(i,{customShareInfo:l})}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}}function f(e){let{webpackRequire:n}=e;o(e);let{initialConsumes:t,moduleToHandlerMapping:a,installedModules:r}=e;t.forEach(e=>{n.m[e]=t=>{r[e]=0,delete n.c[e];let i=d({moduleId:e,moduleToHandlerMapping:a,webpackRequire:n});if("function"!=typeof i)throw Error(`Shared module is not available for eager consumption: ${e}`);let l=i(),{shareInfo:o}=a[e];if(o?.shareConfig?.layer&&l&&"object"==typeof l)try{l.hasOwnProperty("layer")&&void 0!==l.layer||(l.layer=o.shareConfig.layer)}catch(e){}t.exports=l}})}function m(e){let{webpackRequire:n,shareScope:t,initScope:a,shareScopeKey:r,remoteEntryInitOptions:i}=e;if(!n.S||!n.federation||!n.federation.instance||!n.federation.initOptions)return;let l=n.federation.instance;l.initOptions({name:n.federation.initOptions.name,remotes:[],...i});let o=i?.shareScopeKeys,s=i?.shareScopeMap;if(r&&"string"!=typeof r)r.forEach(e=>{if(!o||!s)return void l.initShareScopeMap(e,t,{hostShareScopeMap:i?.shareScopeMap||{}});s[e]||(s[e]={});let n=s[e];l.initShareScopeMap(e,n,{hostShareScopeMap:i?.shareScopeMap||{}})});else{let e=r||"default";Array.isArray(o)?o.forEach(e=>{s[e]||(s[e]={});let n=s[e];l.initShareScopeMap(e,n,{hostShareScopeMap:i?.shareScopeMap||{}})}):l.initShareScopeMap(e,t,{hostShareScopeMap:i?.shareScopeMap||{}})}return(n.federation.attachShareScopeMap&&n.federation.attachShareScopeMap(n),"function"==typeof n.federation.prefetch&&n.federation.prefetch(),Array.isArray(r))?n.federation.initOptions.shared?n.I(r,a):Promise.all(r.map(e=>n.I(e,a))).then(()=>!0):n.I(r||"default",a)}e.exports={runtime:function(e){var n=Object.create(null);if(e)for(var t in e)n[t]=e[t];return n.default=e,Object.freeze(n)}(a),instance:void 0,initOptions:void 0,bundlerRuntime:{remotes:c,consumes:u,I:p,S:{},installInitialConsumes:f,initContainerEntry:m},attachShareScopeMap:l,bundlerRuntimeOptions:{}}},53373(e){!function(){"use strict";var n={}.hasOwnProperty;function t(){for(var e="",n=0;n<arguments.length;n++){var t=arguments[n];t&&(e=r(e,a(t)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return t.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var a="";for(var i in e)n.call(e,i)&&e[i]&&(a=r(a,i));return a}function r(e,n){return n?e?e+" "+n:e+n:e}e.exports?(t.default=t,e.exports=t):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],function(){return t}):window.classNames=t}()},48042(e,n,t){"use strict";t.d(n,{A:()=>d});let a=function(){this.__data__=[],this.size=0};var r=t(26979);let i=function(e,n){for(var t=e.length;t--;)if((0,r.A)(e[t][0],n))return t;return -1};var l=Array.prototype.splice;let o=function(e){var n=this.__data__,t=i(n,e);return!(t<0)&&(t==n.length-1?n.pop():l.call(n,t,1),--this.size,!0)},s=function(e){var n=this.__data__,t=i(n,e);return t<0?void 0:n[t][1]},c=function(e){return i(this.__data__,e)>-1},u=function(e,n){var t=this.__data__,a=i(t,e);return a<0?(++this.size,t.push([e,n])):t[a][1]=n,this};function p(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n<t;){var a=e[n];this.set(a[0],a[1])}}p.prototype.clear=a,p.prototype.delete=o,p.prototype.get=s,p.prototype.has=c,p.prototype.set=u;let d=p},25436(e,n,t){"use strict";t.d(n,{A:()=>i});var a=t(61982),r=t(39600);let i=(0,a.A)(r.A,"Map")},90257(e,n,t){"use strict";t.d(n,{A:()=>C});let a=(0,t(61982).A)(Object,"create"),r=function(){this.__data__=a?a(null):{},this.size=0},i=function(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=!!n,n};var l="__lodash_hash_undefined__",o=Object.prototype.hasOwnProperty;let s=function(e){var n=this.__data__;if(a){var t=n[e];return t===l?void 0:t}return o.call(n,e)?n[e]:void 0};var c=Object.prototype.hasOwnProperty;let u=function(e){var n=this.__data__;return a?void 0!==n[e]:c.call(n,e)};var p="__lodash_hash_undefined__";let d=function(e,n){var t=this.__data__;return this.size+=+!this.has(e),t[e]=a&&void 0===n?p:n,this};function f(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n<t;){var a=e[n];this.set(a[0],a[1])}}f.prototype.clear=r,f.prototype.delete=i,f.prototype.get=s,f.prototype.has=u,f.prototype.set=d;let m=f;var g=t(48042),h=t(25436);let _=function(){this.size=0,this.__data__={hash:new m,map:new(h.A||g.A),string:new m}},b=function(e){var n=typeof e;return"string"==n||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==e:null===e},y=function(e,n){var t=e.__data__;return b(n)?t["string"==typeof n?"string":"hash"]:t.map},A=function(e){var n=y(this,e).delete(e);return this.size-=!!n,n},v=function(e){return y(this,e).get(e)},$=function(e){return y(this,e).has(e)},w=function(e,n){var t=y(this,e),a=t.size;return t.set(e,n),this.size+=+(t.size!=a),this};function x(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n<t;){var a=e[n];this.set(a[0],a[1])}}x.prototype.clear=_,x.prototype.delete=A,x.prototype.get=v,x.prototype.has=$,x.prototype.set=w;let C=x},28574(e,n,t){"use strict";t.d(n,{A:()=>i});var a=t(61982),r=t(39600);let i=(0,a.A)(r.A,"Set")},44644(e,n,t){"use strict";t.d(n,{A:()=>s});var a=t(90257),r="__lodash_hash_undefined__";let i=function(e){return this.__data__.set(e,r),this},l=function(e){return this.__data__.has(e)};function o(e){var n=-1,t=null==e?0:e.length;for(this.__data__=new a.A;++n<t;)this.add(e[n])}o.prototype.add=o.prototype.push=i,o.prototype.has=l;let s=o},83516(e,n,t){"use strict";t.d(n,{A:()=>a});let a=t(39600).A.Symbol},77361(e,n,t){"use strict";t.d(n,{A:()=>m});var a=t(83516),r=Object.prototype,i=r.hasOwnProperty,l=r.toString,o=a.A?a.A.toStringTag:void 0;let s=function(e){var n=i.call(e,o),t=e[o];try{e[o]=void 0;var a=!0}catch(e){}var r=l.call(e);return a&&(n?e[o]=t:delete e[o]),r};var c=Object.prototype.toString;let u=function(e){return c.call(e)};var p="[object Null]",d="[object Undefined]",f=a.A?a.A.toStringTag:void 0;let m=function(e){return null==e?void 0===e?d:p:f&&f in Object(e)?s(e):u(e)}},78547(e,n,t){"use strict";t.d(n,{A:()=>_});var a=t(44644);let r=function(e,n,t,a){for(var r=e.length,i=t+(a?1:-1);a?i--:++i<r;)if(n(e[i],i,e))return i;return -1},i=function(e){return e!=e},l=function(e,n,t){for(var a=t-1,r=e.length;++a<r;)if(e[a]===n)return a;return -1},o=function(e,n,t){return n==n?l(e,n,t):r(e,i,t)},s=function(e,n){return!!(null==e?0:e.length)&&o(e,n,0)>-1},c=function(e,n,t){for(var a=-1,r=null==e?0:e.length;++a<r;)if(t(n,e[a]))return!0;return!1};var u=t(62026),p=t(28574);let d=function(){};var f=t(39922),m=1/0;let g=p.A&&1/(0,f.A)(new p.A([,-0]))[1]==m?function(e){return new p.A(e)}:d;var h=200;let _=function(e,n,t){var r=-1,i=s,l=e.length,o=!0,p=[],d=p;if(t)o=!1,i=c;else if(l>=h){var m=n?null:g(e);if(m)return(0,f.A)(m);o=!1,i=u.A,d=new a.A}else d=n?[]:p;t:for(;++r<l;){var _=e[r],b=n?n(_):_;if(_=t||0!==_?_:0,o&&b==b){for(var y=d.length;y--;)if(d[y]===b)continue t;n&&d.push(b),p.push(_)}else i(d,b,t)||(d!==p&&d.push(b),p.push(_))}return p}},62026(e,n,t){"use strict";t.d(n,{A:()=>a});let a=function(e,n){return e.has(n)}},36713(e,n,t){"use strict";t.d(n,{A:()=>a});let a="object"==typeof global&&global&&global.Object===Object&&global},61982(e,n,t){"use strict";t.d(n,{A:()=>_});var a=t(50405);let r=t(39600).A["__core-js_shared__"];var i=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();let l=function(e){return!!i&&i in e};var o=t(97942),s=t(1548),c=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,p=Object.prototype,d=Function.prototype.toString,f=p.hasOwnProperty,m=RegExp("^"+d.call(f).replace(c,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let g=function(e){return!(!(0,o.A)(e)||l(e))&&((0,a.A)(e)?m:u).test((0,s.A)(e))},h=function(e,n){return null==e?void 0:e[n]},_=function(e,n){var t=h(e,n);return g(t)?t:void 0}},39600(e,n,t){"use strict";t.d(n,{A:()=>i});var a=t(36713),r="object"==typeof self&&self&&self.Object===Object&&self;let i=a.A||r||Function("return this")()},39922(e,n,t){"use strict";t.d(n,{A:()=>a});let a=function(e){var n=-1,t=Array(e.size);return e.forEach(function(e){t[++n]=e}),t}},1548(e,n,t){"use strict";t.d(n,{A:()=>r});var a=Function.prototype.toString;let r=function(e){if(null!=e){try{return a.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},26979(e,n,t){"use strict";t.d(n,{A:()=>a});let a=function(e,n){return e===n||e!=e&&n!=n}},50405(e,n,t){"use strict";t.d(n,{A:()=>c});var a=t(77361),r=t(97942),i="[object AsyncFunction]",l="[object Function]",o="[object GeneratorFunction]",s="[object Proxy]";let c=function(e){if(!(0,r.A)(e))return!1;var n=(0,a.A)(e);return n==l||n==o||n==i||n==s}},97942(e,n,t){"use strict";t.d(n,{A:()=>a});let a=function(e){var n=typeof e;return null!=e&&("object"==n||"function"==n)}},66696(e,n,t){"use strict";t.d(n,{A:()=>r});var a=t(78547);let r=function(e){return e&&e.length?(0,a.A)(e):[]}},71123(e,n,t){"use strict";t.d(n,{Ay:()=>p,BE:()=>u,iX:()=>l.useSWRConfig});var a=t(35399),r=t.n(a),i=t(58139),l=t(43432);let o=r().use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(n=>{e.status="fulfilled",e.value=n},n=>{e.status="rejected",e.reason=n}),e}),s={dedupe:!0},c=(e,n,t)=>{let{cache:r,compare:c,suspense:u,fallbackData:p,revalidateOnMount:d,revalidateIfStale:f,refreshInterval:m,refreshWhenHidden:g,refreshWhenOffline:h,keepPreviousData:_}=t,[b,y,A,v]=l.SWRGlobalState.get(r),[$,w]=(0,l.serialize)(e),x=(0,a.useRef)(!1),C=(0,a.useRef)(!1),E=(0,a.useRef)($),k=(0,a.useRef)(n),N=(0,a.useRef)(t),S=()=>N.current,I=()=>S().isVisible()&&S().isOnline(),[z,T,O,M]=(0,l.createCacheHelper)(r,$),D=(0,a.useRef)({}).current,B=(0,l.isUndefined)(p)?t.fallback[$]:p,R=(e,n)=>{for(let t in D){let a=t;if("data"===a){if(!c(e[a],n[a])&&(!(0,l.isUndefined)(e[a])||!c(G,n[a])))return!1}else if(n[a]!==e[a])return!1}return!0},L=(0,a.useMemo)(()=>{let e=!!$&&!!n&&((0,l.isUndefined)(d)?!S().isPaused()&&!u&&(!!(0,l.isUndefined)(f)||f):d),t=n=>{let t=(0,l.mergeObjects)(n);return(delete t._k,e)?{isValidating:!0,isLoading:!0,...t}:t},a=z(),r=M(),i=t(a),o=a===r?i:t(r),s=i;return[()=>{let e=t(z());return R(e,s)?(s.data=e.data,s.isLoading=e.isLoading,s.isValidating=e.isValidating,s.error=e.error,s):(s=e,e)},()=>o]},[r,$]),P=(0,i.useSyncExternalStore)((0,a.useCallback)(e=>O($,(n,t)=>{R(t,n)||e()}),[r,$]),L[0],L[1]),F=!x.current,j=b[$]&&b[$].length>0,H=P.data,q=(0,l.isUndefined)(H)?B:H,W=P.error,U=(0,a.useRef)(q),G=_?(0,l.isUndefined)(H)?U.current:H:q,V=(!j||!!(0,l.isUndefined)(W))&&(F&&!(0,l.isUndefined)(d)?d:!S().isPaused()&&(u?!(0,l.isUndefined)(q)&&f:(0,l.isUndefined)(q)||f)),K=!!($&&n&&F&&V),J=(0,l.isUndefined)(P.isValidating)?K:P.isValidating,Y=(0,l.isUndefined)(P.isLoading)?K:P.isLoading,Z=(0,a.useCallback)(async e=>{let n,a,r=k.current;if(!$||!r||C.current||S().isPaused())return!1;let i=!0,o=e||{},s=!A[$]||!o.dedupe,u=()=>l.IS_REACT_LEGACY?!C.current&&$===E.current&&x.current:$===E.current,p={isValidating:!1,isLoading:!1},d=()=>{T(p)},f=()=>{let e=A[$];e&&e[1]===a&&delete A[$]},m={isValidating:!0};(0,l.isUndefined)(z().data)&&(m.isLoading=!0);try{if(s&&(T(m),t.loadingTimeout&&(0,l.isUndefined)(z().data)&&setTimeout(()=>{i&&u()&&S().onLoadingSlow($,t)},t.loadingTimeout),A[$]=[r(w),(0,l.getTimestamp)()]),[n,a]=A[$],n=await n,s&&setTimeout(f,t.dedupingInterval),!A[$]||A[$][1]!==a)return s&&u()&&S().onDiscarded($),!1;p.error=l.UNDEFINED;let e=y[$];if(!(0,l.isUndefined)(e)&&(a<=e[0]||a<=e[1]||0===e[1]))return d(),s&&u()&&S().onDiscarded($),!1;let o=z().data;p.data=c(o,n)?o:n,s&&u()&&S().onSuccess(n,$,t)}catch(t){f();let e=S(),{shouldRetryOnError:n}=e;!e.isPaused()&&(p.error=t,s&&u()&&(e.onError(t,$,e),(!0===n||(0,l.isFunction)(n)&&n(t))&&(!S().revalidateOnFocus||!S().revalidateOnReconnect||I())&&e.onErrorRetry(t,$,e,e=>{let n=b[$];n&&n[0]&&n[0](l.revalidateEvents.ERROR_REVALIDATE_EVENT,e)},{retryCount:(o.retryCount||0)+1,dedupe:!0})))}return i=!1,d(),!0},[$,r]),Q=(0,a.useCallback)((...e)=>(0,l.internalMutate)(r,E.current,...e),[]);if((0,l.useIsomorphicLayoutEffect)(()=>{k.current=n,N.current=t,(0,l.isUndefined)(H)||(U.current=H)}),(0,l.useIsomorphicLayoutEffect)(()=>{if(!$)return;let e=Z.bind(l.UNDEFINED,s),n=0,t=(t,a={})=>{if(t==l.revalidateEvents.FOCUS_EVENT){let t=Date.now();S().revalidateOnFocus&&t>n&&I()&&(n=t+S().focusThrottleInterval,e())}else if(t==l.revalidateEvents.RECONNECT_EVENT)S().revalidateOnReconnect&&I()&&e();else if(t==l.revalidateEvents.MUTATE_EVENT)return Z();else if(t==l.revalidateEvents.ERROR_REVALIDATE_EVENT)return Z(a)},a=(0,l.subscribeCallback)($,b,t);return C.current=!1,E.current=$,x.current=!0,T({_k:w}),V&&((0,l.isUndefined)(q)||l.IS_SERVER?e():(0,l.rAF)(e)),()=>{C.current=!0,a()}},[$]),(0,l.useIsomorphicLayoutEffect)(()=>{let e;function n(){let n=(0,l.isFunction)(m)?m(z().data):m;n&&-1!==e&&(e=setTimeout(t,n))}function t(){!z().error&&(g||S().isVisible())&&(h||S().isOnline())?Z(s).then(n):n()}return n(),()=>{e&&(clearTimeout(e),e=-1)}},[m,g,h,$]),(0,a.useDebugValue)(G),u&&(0,l.isUndefined)(q)&&$){if(!l.IS_REACT_LEGACY&&l.IS_SERVER)throw Error("Fallback data is required when using suspense in SSR.");k.current=n,N.current=t,C.current=!1;let e=v[$];if((0,l.isUndefined)(e)||o(Q(e)),(0,l.isUndefined)(W)){let e=Z(s);(0,l.isUndefined)(G)||(e.status="fulfilled",e.value=!0),o(e)}else throw W}return{mutate:Q,get data(){return D.data=!0,G},get error(){return D.error=!0,W},get isValidating(){return D.isValidating=!0,J},get isLoading(){return D.isLoading=!0,Y}}},u=l.OBJECT.defineProperty(l.SWRConfig,"defaultValue",{value:l.defaultConfig}),p=(0,l.withArgs)(c)}},__webpack_module_cache__={};function __webpack_require__(e){var n=__webpack_module_cache__[e];if(void 0!==n)return n.exports;var t=__webpack_module_cache__[e]={id:e,exports:{}};return __webpack_modules__[e].call(t.exports,t,t.exports,__webpack_require__),t.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.c=__webpack_module_cache__,__webpack_require__.x=()=>__webpack_require__(49446),(()=>{__webpack_require__.federation||(__webpack_require__.federation={chunkMatcher:function(e){return!/^(1391|4006|5023|5265|8652|9837)$/.test(e)},rootOutputDir:""})})(),(()=>{__webpack_require__.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(n,{a:n}),n}})(),(()=>{__webpack_require__.d=(e,n)=>{for(var t in n)__webpack_require__.o(n,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})}})(),(()=>{__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce((n,t)=>(__webpack_require__.f[t](e,n),n),[]))})(),(()=>{__webpack_require__.u=e=>""+e+".js"})(),(()=>{__webpack_require__.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})()})(),(()=>{__webpack_require__.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n)})(),(()=>{var e={},n="@openmrs/esm-patient-tests-app:";__webpack_require__.l=function(t,a,r,i){if(e[t])return void e[t].push(a);if(void 0!==r)for(var l,o,s=document.getElementsByTagName("script"),c=0;c<s.length;c++){var u=s[c];if(u.getAttribute("src")==t||u.getAttribute("data-rspack")==n+r){l=u;break}}l||(o=!0,(l=document.createElement("script")).timeout=120,__webpack_require__.nc&&l.setAttribute("nonce",__webpack_require__.nc),l.setAttribute("data-rspack",n+r),l.src=t),e[t]=[a];var p=function(n,a){l.onerror=l.onload=null,clearTimeout(d);var r=e[t];if(delete e[t],l.parentNode&&l.parentNode.removeChild(l),r&&r.forEach(function(e){return e(a)}),n)return n(a)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=p.bind(null,l.onerror),l.onload=p.bind(null,l.onload),o&&document.head.appendChild(l)}})(),(()=>{__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{__webpack_require__.nc=void 0})(),(()=>{__webpack_require__.rv=()=>"1.7.9"})(),(()=>{__webpack_require__.S={},__webpack_require__.initializeSharingData={scopeToSharingDataMapping:{default:[{name:"@openmrs/esm-framework",version:"10.0.1-pre.4866",factory:()=>Promise.all([__webpack_require__.e("2544"),__webpack_require__.e("8939"),__webpack_require__.e("7646"),__webpack_require__.e("8652"),__webpack_require__.e("9837"),__webpack_require__.e("5265"),__webpack_require__.e("5023"),__webpack_require__.e("1391")]).then(()=>()=>__webpack_require__(52957)),eager:0,singleton:1,requiredVersion:"10.x",strictVersion:0},{name:"@openmrs/esm-patient-common-lib",version:"12.2.1-pre.11404",factory:()=>Promise.all([__webpack_require__.e("2544"),__webpack_require__.e("8939"),__webpack_require__.e("8652"),__webpack_require__.e("9837"),__webpack_require__.e("5265"),__webpack_require__.e("5023"),__webpack_require__.e("1391"),__webpack_require__.e("4289"),__webpack_require__.e("4006"),__webpack_require__.e("1984")]).then(()=>()=>__webpack_require__(95848)),eager:0,singleton:1,requiredVersion:"12.x",strictVersion:0},{name:"react-i18next",version:"16.0.0",factory:()=>Promise.all([__webpack_require__.e("1789"),__webpack_require__.e("8652")]).then(()=>()=>__webpack_require__(42348)),eager:0,singleton:1,requiredVersion:"16.x",strictVersion:0},{name:"react-router-dom",version:"6.16.0",factory:()=>Promise.all([__webpack_require__.e("9712"),__webpack_require__.e("8652")]).then(()=>()=>__webpack_require__(27059)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"react",version:"18.3.1",factory:()=>__webpack_require__.e("466").then(()=>()=>__webpack_require__(14041)),eager:0,singleton:1,requiredVersion:"18.x",strictVersion:0},{name:"rxjs",version:"6.6.7",factory:()=>__webpack_require__.e("9105").then(()=>()=>__webpack_require__(37864)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"swr/_internal",version:"2.2.5",factory:()=>Promise.all([__webpack_require__.e("3989"),__webpack_require__.e("8652")]).then(()=>()=>__webpack_require__(42372)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/immutable",version:"2.2.5",factory:()=>Promise.all([__webpack_require__.e("9061"),__webpack_require__.e("8652"),__webpack_require__.e("5265"),__webpack_require__.e("3720")]).then(()=>()=>__webpack_require__(29876)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/infinite",version:"2.2.5",factory:()=>Promise.all([__webpack_require__.e("9771"),__webpack_require__.e("8652"),__webpack_require__.e("5265"),__webpack_require__.e("1339")]).then(()=>()=>__webpack_require__(52470)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0}]},uniqueName:"@openmrs/esm-patient-tests-app"},__webpack_require__.I=__webpack_require__.I||function(){throw Error("should have __webpack_require__.I")}})(),(()=>{__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var e,n=__webpack_require__.g.document;if(!e&&n&&(n.currentScript&&"SCRIPT"===n.currentScript.tagName.toUpperCase()&&(e=n.currentScript.src),!e)){var t=n.getElementsByTagName("script");if(t.length)for(var a=t.length-1;a>-1&&(!e||!/^http(s?):/.test(e));)e=t[a--].src}if(!e)throw Error("Automatic publicPath is not supported in this browser");__webpack_require__.p=e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")})(),(()=>{__webpack_require__.consumesLoadingData={chunkMapping:{9837:["13660"],1889:["35399","13040","95571","30682","92293","43432","27807"],8652:["35399"],5023:["24354"],4006:["92293"],5265:["43432"],1391:["27807","95571","30682"]},moduleIdToConsumeDataMapping:{30682:{shareScope:"default",shareKey:"swr/infinite",import:"swr/infinite",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("9771").then(()=>()=>__webpack_require__(52470))},35399:{shareScope:"default",shareKey:"react",import:"react",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("466").then(()=>()=>__webpack_require__(14041))},92293:{shareScope:"default",shareKey:"@openmrs/esm-framework",import:"@openmrs/esm-framework",requiredVersion:"10.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([__webpack_require__.e("2544"),__webpack_require__.e("7646"),__webpack_require__.e("9837"),__webpack_require__.e("5023")]).then(()=>()=>__webpack_require__(52957))},24354:{shareScope:"default",shareKey:"rxjs",import:"rxjs",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("9105").then(()=>()=>__webpack_require__(37864))},27807:{shareScope:"default",shareKey:"react-i18next",import:"react-i18next",requiredVersion:"16.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("1789").then(()=>()=>__webpack_require__(42348))},13040:{shareScope:"default",shareKey:"@openmrs/esm-patient-common-lib",import:"@openmrs/esm-patient-common-lib",requiredVersion:"12.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([__webpack_require__.e("2544"),__webpack_require__.e("9837"),__webpack_require__.e("5023"),__webpack_require__.e("4289")]).then(()=>()=>__webpack_require__(95848))},95571:{shareScope:"default",shareKey:"react-router-dom",import:"react-router-dom",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("9712").then(()=>()=>__webpack_require__(27059))},43432:{shareScope:"default",shareKey:"swr/_internal",import:"swr/_internal",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("3989").then(()=>()=>__webpack_require__(42372))},13660:{shareScope:"default",shareKey:"swr/immutable",import:"swr/immutable",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("9061").then(()=>()=>__webpack_require__(29876))}},initialConsumes:["35399","13040","95571","30682","92293","43432","27807"]},__webpack_require__.f.consumes=__webpack_require__.f.consumes||function(){throw Error("should have __webpack_require__.f.consumes")}})(),(()=>{var e={1889:0};__webpack_require__.f.j=function(n,t){var a=__webpack_require__.o(e,n)?e[n]:void 0;if(0!==a)if(a)t.push(a[2]);else if(/^(1391|4006|5023|5265|8652|9837)$/.test(n))e[n]=0;else{var r=new Promise((t,r)=>a=e[n]=[t,r]);t.push(a[2]=r);var i=__webpack_require__.p+__webpack_require__.u(n),l=Error(),o=function(t){if(__webpack_require__.o(e,n)&&(0!==(a=e[n])&&(e[n]=void 0),a)){var r=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;l.message="Loading chunk "+n+" failed.\n("+r+": "+i+")",l.name="ChunkLoadError",l.type=r,l.request=i,a[1](l)}};__webpack_require__.l(i,o,"chunk-"+n,n)}};var n=(n,t)=>{var a,r,[i,l,o]=t,s=0;if(i.some(n=>0!==e[n])){for(a in l)__webpack_require__.o(l,a)&&(__webpack_require__.m[a]=l[a]);o&&o(__webpack_require__)}for(n&&n(t);s<i.length;s++)r=i[s],__webpack_require__.o(e,r)&&e[r]&&e[r][0](),e[r]=0},t=globalThis.webpackChunk_openmrs_esm_patient_tests_app=globalThis.webpackChunk_openmrs_esm_patient_tests_app||[];t.forEach(n.bind(null,0)),t.push=n.bind(null,t.push.bind(t))})(),(()=>{__webpack_require__.ruid="bundler=rspack@1.7.9"})(),(()=>{var e=__webpack_require__.x,n=!1;__webpack_require__.x=function(){if(n||(n=!0,__webpack_require__(94071)),"function"==typeof e)return e();console.warn("[MF] Invalid prevStartup")}})();var __webpack_exports__=__webpack_require__.x()})();
16
+ while loading "${l[1]}" from ${l[2]}`),a.m[e]=()=>{throw n},l.p=0},p=(e,n,a,r,i,o)=>{try{let c=e(n,a);if(!c||!c.then)return i(c,r,o);{let e=c.then(e=>i(e,r),s);if(!o)return e;t.push(l.p=e)}}catch(e){s(e)}},d=(e,n,t)=>e?p(a.I,l[0],0,e,f,t):s();var f=(e,t,a)=>p(t.get,l[1],n,0,m,a),m=n=>{l.p=1,a.m[e]=e=>{e.exports=n()}};let g=()=>{try{let e=i.decodeName(o[0].name,i.ENCODE_NAME_PREFIX)+l[1].slice(1),n=a.federation.instance,t=()=>a.federation.instance.loadRemote(e,{loadFactory:!1,from:"build"});if("version-first"===n.options.shareStrategy)return Promise.all(n.sharedHandler.initializeSharing(l[0])).then(()=>t());return t()}catch(e){s(e)}};1===o.length&&r.FEDERATION_SUPPORTED_TYPES.includes(o[0].externalType)&&o[0].name?p(g,l[2],0,0,m,1):p(a,l[2],0,0,d,1)})}function u(e){o(e);let{chunkId:n,promises:t,installedModules:a,webpackRequire:r,chunkMapping:i,moduleToHandlerMapping:s}=e;l(r),r.o(i,n)&&i[n].forEach(e=>{if(r.o(a,e))return t.push(a[e]);let n=n=>{a[e]=0,r.m[e]=t=>{delete r.c[e];let a=n(),{shareInfo:i}=s[e];if(i?.shareConfig?.layer&&a&&"object"==typeof a)try{a.hasOwnProperty("layer")&&void 0!==a.layer||(a.layer=i.shareConfig.layer)}catch(e){}t.exports=a}},i=n=>{delete a[e],r.m[e]=t=>{throw delete r.c[e],n}};try{let l=r.federation.instance;if(!l)throw Error("Federation instance not found!");let{shareKey:o,getter:c,shareInfo:u}=s[e],p=l.loadShare(o,{customShareInfo:u}).then(e=>!1===e?c():e);p.then?t.push(a[e]=p.then(n).catch(i)):n(p)}catch(e){i(e)}})}function p({shareScopeName:e,webpackRequire:n,initPromises:t,initTokens:a,initScope:i}){let o=Array.isArray(e)?e:[e];var s=[],c=function(o){i||(i=[]);let s=n.federation.instance;var c=a[o];if(c||(c=a[o]={from:s.name}),i.indexOf(c)>=0)return;i.push(c);let u=t[o];if(u)return u;var p=e=>"u">typeof console&&console.warn&&console.warn(e),d=t=>{var a=e=>p("Initialization of sharing external failed: "+e);try{var r=n(t);if(!r)return;var l=t=>t&&t.init&&t.init(n.S[o],i,{shareScopeMap:n.S||{},shareScopeKeys:e});if(r.then)return f.push(r.then(l,a));var s=l(r);if(s&&"boolean"!=typeof s&&s.then)return f.push(s.catch(a))}catch(e){a(e)}};let f=s.initializeSharing(o,{strategy:s.options.shareStrategy,initScope:i,from:"build"});l(n);let m=n.federation.bundlerRuntimeOptions.remotes;return(m&&Object.keys(m.idToRemoteMap).forEach(e=>{let n=m.idToRemoteMap[e],t=m.idToExternalAndNameMapping[e][2];if(n.length>1)d(t);else if(1===n.length){let e=n[0];r.FEDERATION_SUPPORTED_TYPES.includes(e.externalType)||d(t)}}),f.length)?t[o]=Promise.all(f).then(()=>t[o]=!0):t[o]=!0};return o.forEach(e=>{s.push(c(e))}),Promise.all(s).then(()=>!0)}function d(e){let{moduleId:n,moduleToHandlerMapping:t,webpackRequire:a}=e,r=a.federation.instance;if(!r)throw Error("Federation instance not found!");let{shareKey:i,shareInfo:l}=t[n];try{return r.loadShareSync(i,{customShareInfo:l})}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}}function f(e){let{webpackRequire:n}=e;o(e);let{initialConsumes:t,moduleToHandlerMapping:a,installedModules:r}=e;t.forEach(e=>{n.m[e]=t=>{r[e]=0,delete n.c[e];let i=d({moduleId:e,moduleToHandlerMapping:a,webpackRequire:n});if("function"!=typeof i)throw Error(`Shared module is not available for eager consumption: ${e}`);let l=i(),{shareInfo:o}=a[e];if(o?.shareConfig?.layer&&l&&"object"==typeof l)try{l.hasOwnProperty("layer")&&void 0!==l.layer||(l.layer=o.shareConfig.layer)}catch(e){}t.exports=l}})}function m(e){let{webpackRequire:n,shareScope:t,initScope:a,shareScopeKey:r,remoteEntryInitOptions:i}=e;if(!n.S||!n.federation||!n.federation.instance||!n.federation.initOptions)return;let l=n.federation.instance;l.initOptions({name:n.federation.initOptions.name,remotes:[],...i});let o=i?.shareScopeKeys,s=i?.shareScopeMap;if(r&&"string"!=typeof r)r.forEach(e=>{if(!o||!s)return void l.initShareScopeMap(e,t,{hostShareScopeMap:i?.shareScopeMap||{}});s[e]||(s[e]={});let n=s[e];l.initShareScopeMap(e,n,{hostShareScopeMap:i?.shareScopeMap||{}})});else{let e=r||"default";Array.isArray(o)?o.forEach(e=>{s[e]||(s[e]={});let n=s[e];l.initShareScopeMap(e,n,{hostShareScopeMap:i?.shareScopeMap||{}})}):l.initShareScopeMap(e,t,{hostShareScopeMap:i?.shareScopeMap||{}})}return(n.federation.attachShareScopeMap&&n.federation.attachShareScopeMap(n),"function"==typeof n.federation.prefetch&&n.federation.prefetch(),Array.isArray(r))?n.federation.initOptions.shared?n.I(r,a):Promise.all(r.map(e=>n.I(e,a))).then(()=>!0):n.I(r||"default",a)}e.exports={runtime:function(e){var n=Object.create(null);if(e)for(var t in e)n[t]=e[t];return n.default=e,Object.freeze(n)}(a),instance:void 0,initOptions:void 0,bundlerRuntime:{remotes:c,consumes:u,I:p,S:{},installInitialConsumes:f,initContainerEntry:m},attachShareScopeMap:l,bundlerRuntimeOptions:{}}},53373(e){!function(){"use strict";var n={}.hasOwnProperty;function t(){for(var e="",n=0;n<arguments.length;n++){var t=arguments[n];t&&(e=r(e,a(t)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return t.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var a="";for(var i in e)n.call(e,i)&&e[i]&&(a=r(a,i));return a}function r(e,n){return n?e?e+" "+n:e+n:e}e.exports?(t.default=t,e.exports=t):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],function(){return t}):window.classNames=t}()},48042(e,n,t){"use strict";t.d(n,{A:()=>d});let a=function(){this.__data__=[],this.size=0};var r=t(26979);let i=function(e,n){for(var t=e.length;t--;)if((0,r.A)(e[t][0],n))return t;return -1};var l=Array.prototype.splice;let o=function(e){var n=this.__data__,t=i(n,e);return!(t<0)&&(t==n.length-1?n.pop():l.call(n,t,1),--this.size,!0)},s=function(e){var n=this.__data__,t=i(n,e);return t<0?void 0:n[t][1]},c=function(e){return i(this.__data__,e)>-1},u=function(e,n){var t=this.__data__,a=i(t,e);return a<0?(++this.size,t.push([e,n])):t[a][1]=n,this};function p(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n<t;){var a=e[n];this.set(a[0],a[1])}}p.prototype.clear=a,p.prototype.delete=o,p.prototype.get=s,p.prototype.has=c,p.prototype.set=u;let d=p},25436(e,n,t){"use strict";t.d(n,{A:()=>i});var a=t(61982),r=t(39600);let i=(0,a.A)(r.A,"Map")},90257(e,n,t){"use strict";t.d(n,{A:()=>C});let a=(0,t(61982).A)(Object,"create"),r=function(){this.__data__=a?a(null):{},this.size=0},i=function(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=!!n,n};var l="__lodash_hash_undefined__",o=Object.prototype.hasOwnProperty;let s=function(e){var n=this.__data__;if(a){var t=n[e];return t===l?void 0:t}return o.call(n,e)?n[e]:void 0};var c=Object.prototype.hasOwnProperty;let u=function(e){var n=this.__data__;return a?void 0!==n[e]:c.call(n,e)};var p="__lodash_hash_undefined__";let d=function(e,n){var t=this.__data__;return this.size+=+!this.has(e),t[e]=a&&void 0===n?p:n,this};function f(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n<t;){var a=e[n];this.set(a[0],a[1])}}f.prototype.clear=r,f.prototype.delete=i,f.prototype.get=s,f.prototype.has=u,f.prototype.set=d;let m=f;var g=t(48042),h=t(25436);let _=function(){this.size=0,this.__data__={hash:new m,map:new(h.A||g.A),string:new m}},b=function(e){var n=typeof e;return"string"==n||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==e:null===e},y=function(e,n){var t=e.__data__;return b(n)?t["string"==typeof n?"string":"hash"]:t.map},A=function(e){var n=y(this,e).delete(e);return this.size-=!!n,n},v=function(e){return y(this,e).get(e)},$=function(e){return y(this,e).has(e)},w=function(e,n){var t=y(this,e),a=t.size;return t.set(e,n),this.size+=+(t.size!=a),this};function x(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n<t;){var a=e[n];this.set(a[0],a[1])}}x.prototype.clear=_,x.prototype.delete=A,x.prototype.get=v,x.prototype.has=$,x.prototype.set=w;let C=x},28574(e,n,t){"use strict";t.d(n,{A:()=>i});var a=t(61982),r=t(39600);let i=(0,a.A)(r.A,"Set")},44644(e,n,t){"use strict";t.d(n,{A:()=>s});var a=t(90257),r="__lodash_hash_undefined__";let i=function(e){return this.__data__.set(e,r),this},l=function(e){return this.__data__.has(e)};function o(e){var n=-1,t=null==e?0:e.length;for(this.__data__=new a.A;++n<t;)this.add(e[n])}o.prototype.add=o.prototype.push=i,o.prototype.has=l;let s=o},83516(e,n,t){"use strict";t.d(n,{A:()=>a});let a=t(39600).A.Symbol},77361(e,n,t){"use strict";t.d(n,{A:()=>m});var a=t(83516),r=Object.prototype,i=r.hasOwnProperty,l=r.toString,o=a.A?a.A.toStringTag:void 0;let s=function(e){var n=i.call(e,o),t=e[o];try{e[o]=void 0;var a=!0}catch(e){}var r=l.call(e);return a&&(n?e[o]=t:delete e[o]),r};var c=Object.prototype.toString;let u=function(e){return c.call(e)};var p="[object Null]",d="[object Undefined]",f=a.A?a.A.toStringTag:void 0;let m=function(e){return null==e?void 0===e?d:p:f&&f in Object(e)?s(e):u(e)}},78547(e,n,t){"use strict";t.d(n,{A:()=>_});var a=t(44644);let r=function(e,n,t,a){for(var r=e.length,i=t+(a?1:-1);a?i--:++i<r;)if(n(e[i],i,e))return i;return -1},i=function(e){return e!=e},l=function(e,n,t){for(var a=t-1,r=e.length;++a<r;)if(e[a]===n)return a;return -1},o=function(e,n,t){return n==n?l(e,n,t):r(e,i,t)},s=function(e,n){return!!(null==e?0:e.length)&&o(e,n,0)>-1},c=function(e,n,t){for(var a=-1,r=null==e?0:e.length;++a<r;)if(t(n,e[a]))return!0;return!1};var u=t(62026),p=t(28574);let d=function(){};var f=t(39922),m=1/0;let g=p.A&&1/(0,f.A)(new p.A([,-0]))[1]==m?function(e){return new p.A(e)}:d;var h=200;let _=function(e,n,t){var r=-1,i=s,l=e.length,o=!0,p=[],d=p;if(t)o=!1,i=c;else if(l>=h){var m=n?null:g(e);if(m)return(0,f.A)(m);o=!1,i=u.A,d=new a.A}else d=n?[]:p;t:for(;++r<l;){var _=e[r],b=n?n(_):_;if(_=t||0!==_?_:0,o&&b==b){for(var y=d.length;y--;)if(d[y]===b)continue t;n&&d.push(b),p.push(_)}else i(d,b,t)||(d!==p&&d.push(b),p.push(_))}return p}},62026(e,n,t){"use strict";t.d(n,{A:()=>a});let a=function(e,n){return e.has(n)}},36713(e,n,t){"use strict";t.d(n,{A:()=>a});let a="object"==typeof global&&global&&global.Object===Object&&global},61982(e,n,t){"use strict";t.d(n,{A:()=>_});var a=t(50405);let r=t(39600).A["__core-js_shared__"];var i=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();let l=function(e){return!!i&&i in e};var o=t(97942),s=t(1548),c=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,p=Object.prototype,d=Function.prototype.toString,f=p.hasOwnProperty,m=RegExp("^"+d.call(f).replace(c,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let g=function(e){return!(!(0,o.A)(e)||l(e))&&((0,a.A)(e)?m:u).test((0,s.A)(e))},h=function(e,n){return null==e?void 0:e[n]},_=function(e,n){var t=h(e,n);return g(t)?t:void 0}},39600(e,n,t){"use strict";t.d(n,{A:()=>i});var a=t(36713),r="object"==typeof self&&self&&self.Object===Object&&self;let i=a.A||r||Function("return this")()},39922(e,n,t){"use strict";t.d(n,{A:()=>a});let a=function(e){var n=-1,t=Array(e.size);return e.forEach(function(e){t[++n]=e}),t}},1548(e,n,t){"use strict";t.d(n,{A:()=>r});var a=Function.prototype.toString;let r=function(e){if(null!=e){try{return a.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},26979(e,n,t){"use strict";t.d(n,{A:()=>a});let a=function(e,n){return e===n||e!=e&&n!=n}},50405(e,n,t){"use strict";t.d(n,{A:()=>c});var a=t(77361),r=t(97942),i="[object AsyncFunction]",l="[object Function]",o="[object GeneratorFunction]",s="[object Proxy]";let c=function(e){if(!(0,r.A)(e))return!1;var n=(0,a.A)(e);return n==l||n==o||n==i||n==s}},97942(e,n,t){"use strict";t.d(n,{A:()=>a});let a=function(e){var n=typeof e;return null!=e&&("object"==n||"function"==n)}},66696(e,n,t){"use strict";t.d(n,{A:()=>r});var a=t(78547);let r=function(e){return e&&e.length?(0,a.A)(e):[]}},71123(e,n,t){"use strict";t.d(n,{Ay:()=>p,BE:()=>u,iX:()=>l.useSWRConfig});var a=t(35399),r=t.n(a),i=t(58139),l=t(43432);let o=r().use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(n=>{e.status="fulfilled",e.value=n},n=>{e.status="rejected",e.reason=n}),e}),s={dedupe:!0},c=(e,n,t)=>{let{cache:r,compare:c,suspense:u,fallbackData:p,revalidateOnMount:d,revalidateIfStale:f,refreshInterval:m,refreshWhenHidden:g,refreshWhenOffline:h,keepPreviousData:_}=t,[b,y,A,v]=l.SWRGlobalState.get(r),[$,w]=(0,l.serialize)(e),x=(0,a.useRef)(!1),C=(0,a.useRef)(!1),E=(0,a.useRef)($),k=(0,a.useRef)(n),N=(0,a.useRef)(t),S=()=>N.current,I=()=>S().isVisible()&&S().isOnline(),[z,T,O,M]=(0,l.createCacheHelper)(r,$),D=(0,a.useRef)({}).current,B=(0,l.isUndefined)(p)?t.fallback[$]:p,R=(e,n)=>{for(let t in D){let a=t;if("data"===a){if(!c(e[a],n[a])&&(!(0,l.isUndefined)(e[a])||!c(G,n[a])))return!1}else if(n[a]!==e[a])return!1}return!0},L=(0,a.useMemo)(()=>{let e=!!$&&!!n&&((0,l.isUndefined)(d)?!S().isPaused()&&!u&&(!!(0,l.isUndefined)(f)||f):d),t=n=>{let t=(0,l.mergeObjects)(n);return(delete t._k,e)?{isValidating:!0,isLoading:!0,...t}:t},a=z(),r=M(),i=t(a),o=a===r?i:t(r),s=i;return[()=>{let e=t(z());return R(e,s)?(s.data=e.data,s.isLoading=e.isLoading,s.isValidating=e.isValidating,s.error=e.error,s):(s=e,e)},()=>o]},[r,$]),P=(0,i.useSyncExternalStore)((0,a.useCallback)(e=>O($,(n,t)=>{R(t,n)||e()}),[r,$]),L[0],L[1]),F=!x.current,j=b[$]&&b[$].length>0,H=P.data,q=(0,l.isUndefined)(H)?B:H,W=P.error,U=(0,a.useRef)(q),G=_?(0,l.isUndefined)(H)?U.current:H:q,V=(!j||!!(0,l.isUndefined)(W))&&(F&&!(0,l.isUndefined)(d)?d:!S().isPaused()&&(u?!(0,l.isUndefined)(q)&&f:(0,l.isUndefined)(q)||f)),K=!!($&&n&&F&&V),J=(0,l.isUndefined)(P.isValidating)?K:P.isValidating,Y=(0,l.isUndefined)(P.isLoading)?K:P.isLoading,Z=(0,a.useCallback)(async e=>{let n,a,r=k.current;if(!$||!r||C.current||S().isPaused())return!1;let i=!0,o=e||{},s=!A[$]||!o.dedupe,u=()=>l.IS_REACT_LEGACY?!C.current&&$===E.current&&x.current:$===E.current,p={isValidating:!1,isLoading:!1},d=()=>{T(p)},f=()=>{let e=A[$];e&&e[1]===a&&delete A[$]},m={isValidating:!0};(0,l.isUndefined)(z().data)&&(m.isLoading=!0);try{if(s&&(T(m),t.loadingTimeout&&(0,l.isUndefined)(z().data)&&setTimeout(()=>{i&&u()&&S().onLoadingSlow($,t)},t.loadingTimeout),A[$]=[r(w),(0,l.getTimestamp)()]),[n,a]=A[$],n=await n,s&&setTimeout(f,t.dedupingInterval),!A[$]||A[$][1]!==a)return s&&u()&&S().onDiscarded($),!1;p.error=l.UNDEFINED;let e=y[$];if(!(0,l.isUndefined)(e)&&(a<=e[0]||a<=e[1]||0===e[1]))return d(),s&&u()&&S().onDiscarded($),!1;let o=z().data;p.data=c(o,n)?o:n,s&&u()&&S().onSuccess(n,$,t)}catch(t){f();let e=S(),{shouldRetryOnError:n}=e;!e.isPaused()&&(p.error=t,s&&u()&&(e.onError(t,$,e),(!0===n||(0,l.isFunction)(n)&&n(t))&&(!S().revalidateOnFocus||!S().revalidateOnReconnect||I())&&e.onErrorRetry(t,$,e,e=>{let n=b[$];n&&n[0]&&n[0](l.revalidateEvents.ERROR_REVALIDATE_EVENT,e)},{retryCount:(o.retryCount||0)+1,dedupe:!0})))}return i=!1,d(),!0},[$,r]),Q=(0,a.useCallback)((...e)=>(0,l.internalMutate)(r,E.current,...e),[]);if((0,l.useIsomorphicLayoutEffect)(()=>{k.current=n,N.current=t,(0,l.isUndefined)(H)||(U.current=H)}),(0,l.useIsomorphicLayoutEffect)(()=>{if(!$)return;let e=Z.bind(l.UNDEFINED,s),n=0,t=(t,a={})=>{if(t==l.revalidateEvents.FOCUS_EVENT){let t=Date.now();S().revalidateOnFocus&&t>n&&I()&&(n=t+S().focusThrottleInterval,e())}else if(t==l.revalidateEvents.RECONNECT_EVENT)S().revalidateOnReconnect&&I()&&e();else if(t==l.revalidateEvents.MUTATE_EVENT)return Z();else if(t==l.revalidateEvents.ERROR_REVALIDATE_EVENT)return Z(a)},a=(0,l.subscribeCallback)($,b,t);return C.current=!1,E.current=$,x.current=!0,T({_k:w}),V&&((0,l.isUndefined)(q)||l.IS_SERVER?e():(0,l.rAF)(e)),()=>{C.current=!0,a()}},[$]),(0,l.useIsomorphicLayoutEffect)(()=>{let e;function n(){let n=(0,l.isFunction)(m)?m(z().data):m;n&&-1!==e&&(e=setTimeout(t,n))}function t(){!z().error&&(g||S().isVisible())&&(h||S().isOnline())?Z(s).then(n):n()}return n(),()=>{e&&(clearTimeout(e),e=-1)}},[m,g,h,$]),(0,a.useDebugValue)(G),u&&(0,l.isUndefined)(q)&&$){if(!l.IS_REACT_LEGACY&&l.IS_SERVER)throw Error("Fallback data is required when using suspense in SSR.");k.current=n,N.current=t,C.current=!1;let e=v[$];if((0,l.isUndefined)(e)||o(Q(e)),(0,l.isUndefined)(W)){let e=Z(s);(0,l.isUndefined)(G)||(e.status="fulfilled",e.value=!0),o(e)}else throw W}return{mutate:Q,get data(){return D.data=!0,G},get error(){return D.error=!0,W},get isValidating(){return D.isValidating=!0,J},get isLoading(){return D.isLoading=!0,Y}}},u=l.OBJECT.defineProperty(l.SWRConfig,"defaultValue",{value:l.defaultConfig}),p=(0,l.withArgs)(c)}},__webpack_module_cache__={};function __webpack_require__(e){var n=__webpack_module_cache__[e];if(void 0!==n)return n.exports;var t=__webpack_module_cache__[e]={id:e,exports:{}};return __webpack_modules__[e].call(t.exports,t,t.exports,__webpack_require__),t.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.c=__webpack_module_cache__,__webpack_require__.x=()=>__webpack_require__(49446),(()=>{__webpack_require__.federation||(__webpack_require__.federation={chunkMatcher:function(e){return!/^(1391|4006|5023|5265|8652|9837)$/.test(e)},rootOutputDir:""})})(),(()=>{__webpack_require__.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(n,{a:n}),n}})(),(()=>{__webpack_require__.d=(e,n)=>{for(var t in n)__webpack_require__.o(n,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})}})(),(()=>{__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce((n,t)=>(__webpack_require__.f[t](e,n),n),[]))})(),(()=>{__webpack_require__.u=e=>""+e+".js"})(),(()=>{__webpack_require__.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})()})(),(()=>{__webpack_require__.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n)})(),(()=>{var e={},n="@openmrs/esm-patient-tests-app:";__webpack_require__.l=function(t,a,r,i){if(e[t])return void e[t].push(a);if(void 0!==r)for(var l,o,s=document.getElementsByTagName("script"),c=0;c<s.length;c++){var u=s[c];if(u.getAttribute("src")==t||u.getAttribute("data-rspack")==n+r){l=u;break}}l||(o=!0,(l=document.createElement("script")).timeout=120,__webpack_require__.nc&&l.setAttribute("nonce",__webpack_require__.nc),l.setAttribute("data-rspack",n+r),l.src=t),e[t]=[a];var p=function(n,a){l.onerror=l.onload=null,clearTimeout(d);var r=e[t];if(delete e[t],l.parentNode&&l.parentNode.removeChild(l),r&&r.forEach(function(e){return e(a)}),n)return n(a)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=p.bind(null,l.onerror),l.onload=p.bind(null,l.onload),o&&document.head.appendChild(l)}})(),(()=>{__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{__webpack_require__.nc=void 0})(),(()=>{__webpack_require__.rv=()=>"1.7.9"})(),(()=>{__webpack_require__.S={},__webpack_require__.initializeSharingData={scopeToSharingDataMapping:{default:[{name:"@openmrs/esm-framework",version:"10.0.1-pre.4866",factory:()=>Promise.all([__webpack_require__.e("2544"),__webpack_require__.e("8939"),__webpack_require__.e("7646"),__webpack_require__.e("8652"),__webpack_require__.e("9837"),__webpack_require__.e("5265"),__webpack_require__.e("5023"),__webpack_require__.e("1391")]).then(()=>()=>__webpack_require__(52957)),eager:0,singleton:1,requiredVersion:"10.x",strictVersion:0},{name:"@openmrs/esm-patient-common-lib",version:"12.2.1",factory:()=>Promise.all([__webpack_require__.e("2544"),__webpack_require__.e("8939"),__webpack_require__.e("8652"),__webpack_require__.e("9837"),__webpack_require__.e("5265"),__webpack_require__.e("5023"),__webpack_require__.e("1391"),__webpack_require__.e("4289"),__webpack_require__.e("4006"),__webpack_require__.e("1984")]).then(()=>()=>__webpack_require__(95848)),eager:0,singleton:1,requiredVersion:"12.x",strictVersion:0},{name:"react-i18next",version:"16.0.0",factory:()=>Promise.all([__webpack_require__.e("1789"),__webpack_require__.e("8652")]).then(()=>()=>__webpack_require__(42348)),eager:0,singleton:1,requiredVersion:"16.x",strictVersion:0},{name:"react-router-dom",version:"6.16.0",factory:()=>Promise.all([__webpack_require__.e("9712"),__webpack_require__.e("8652")]).then(()=>()=>__webpack_require__(27059)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"react",version:"18.3.1",factory:()=>__webpack_require__.e("466").then(()=>()=>__webpack_require__(14041)),eager:0,singleton:1,requiredVersion:"18.x",strictVersion:0},{name:"rxjs",version:"6.6.7",factory:()=>__webpack_require__.e("9105").then(()=>()=>__webpack_require__(37864)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"swr/_internal",version:"2.2.5",factory:()=>Promise.all([__webpack_require__.e("3989"),__webpack_require__.e("8652")]).then(()=>()=>__webpack_require__(42372)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/immutable",version:"2.2.5",factory:()=>Promise.all([__webpack_require__.e("9061"),__webpack_require__.e("8652"),__webpack_require__.e("5265"),__webpack_require__.e("3720")]).then(()=>()=>__webpack_require__(29876)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/infinite",version:"2.2.5",factory:()=>Promise.all([__webpack_require__.e("9771"),__webpack_require__.e("8652"),__webpack_require__.e("5265"),__webpack_require__.e("1339")]).then(()=>()=>__webpack_require__(52470)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0}]},uniqueName:"@openmrs/esm-patient-tests-app"},__webpack_require__.I=__webpack_require__.I||function(){throw Error("should have __webpack_require__.I")}})(),(()=>{__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var e,n=__webpack_require__.g.document;if(!e&&n&&(n.currentScript&&"SCRIPT"===n.currentScript.tagName.toUpperCase()&&(e=n.currentScript.src),!e)){var t=n.getElementsByTagName("script");if(t.length)for(var a=t.length-1;a>-1&&(!e||!/^http(s?):/.test(e));)e=t[a--].src}if(!e)throw Error("Automatic publicPath is not supported in this browser");__webpack_require__.p=e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")})(),(()=>{__webpack_require__.consumesLoadingData={chunkMapping:{9837:["13660"],1889:["35399","13040","95571","30682","92293","43432","27807"],8652:["35399"],5023:["24354"],4006:["92293"],5265:["43432"],1391:["27807","95571","30682"]},moduleIdToConsumeDataMapping:{30682:{shareScope:"default",shareKey:"swr/infinite",import:"swr/infinite",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("9771").then(()=>()=>__webpack_require__(52470))},35399:{shareScope:"default",shareKey:"react",import:"react",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("466").then(()=>()=>__webpack_require__(14041))},92293:{shareScope:"default",shareKey:"@openmrs/esm-framework",import:"@openmrs/esm-framework",requiredVersion:"10.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([__webpack_require__.e("2544"),__webpack_require__.e("7646"),__webpack_require__.e("9837"),__webpack_require__.e("5023")]).then(()=>()=>__webpack_require__(52957))},24354:{shareScope:"default",shareKey:"rxjs",import:"rxjs",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("9105").then(()=>()=>__webpack_require__(37864))},27807:{shareScope:"default",shareKey:"react-i18next",import:"react-i18next",requiredVersion:"16.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("1789").then(()=>()=>__webpack_require__(42348))},13040:{shareScope:"default",shareKey:"@openmrs/esm-patient-common-lib",import:"@openmrs/esm-patient-common-lib",requiredVersion:"12.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([__webpack_require__.e("2544"),__webpack_require__.e("9837"),__webpack_require__.e("5023"),__webpack_require__.e("4289")]).then(()=>()=>__webpack_require__(95848))},95571:{shareScope:"default",shareKey:"react-router-dom",import:"react-router-dom",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("9712").then(()=>()=>__webpack_require__(27059))},43432:{shareScope:"default",shareKey:"swr/_internal",import:"swr/_internal",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("3989").then(()=>()=>__webpack_require__(42372))},13660:{shareScope:"default",shareKey:"swr/immutable",import:"swr/immutable",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>__webpack_require__.e("9061").then(()=>()=>__webpack_require__(29876))}},initialConsumes:["35399","13040","95571","30682","92293","43432","27807"]},__webpack_require__.f.consumes=__webpack_require__.f.consumes||function(){throw Error("should have __webpack_require__.f.consumes")}})(),(()=>{var e={1889:0};__webpack_require__.f.j=function(n,t){var a=__webpack_require__.o(e,n)?e[n]:void 0;if(0!==a)if(a)t.push(a[2]);else if(/^(1391|4006|5023|5265|8652|9837)$/.test(n))e[n]=0;else{var r=new Promise((t,r)=>a=e[n]=[t,r]);t.push(a[2]=r);var i=__webpack_require__.p+__webpack_require__.u(n),l=Error(),o=function(t){if(__webpack_require__.o(e,n)&&(0!==(a=e[n])&&(e[n]=void 0),a)){var r=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;l.message="Loading chunk "+n+" failed.\n("+r+": "+i+")",l.name="ChunkLoadError",l.type=r,l.request=i,a[1](l)}};__webpack_require__.l(i,o,"chunk-"+n,n)}};var n=(n,t)=>{var a,r,[i,l,o]=t,s=0;if(i.some(n=>0!==e[n])){for(a in l)__webpack_require__.o(l,a)&&(__webpack_require__.m[a]=l[a]);o&&o(__webpack_require__)}for(n&&n(t);s<i.length;s++)r=i[s],__webpack_require__.o(e,r)&&e[r]&&e[r][0](),e[r]=0},t=globalThis.webpackChunk_openmrs_esm_patient_tests_app=globalThis.webpackChunk_openmrs_esm_patient_tests_app||[];t.forEach(n.bind(null,0)),t.push=n.bind(null,t.push.bind(t))})(),(()=>{__webpack_require__.ruid="bundler=rspack@1.7.9"})(),(()=>{var e=__webpack_require__.x,n=!1;__webpack_require__.x=function(){if(n||(n=!0,__webpack_require__(94071)),"function"==typeof e)return e();console.warn("[MF] Invalid prevStartup")}})();var __webpack_exports__=__webpack_require__.x()})();