@openmrs/esm-app-shell 3.4.1-pre.175 → 3.4.1-pre.189

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.
Files changed (55) hide show
  1. package/.turbo/turbo-build.log +59 -59
  2. package/dist/{484cd358d920b49eca18.js → b9f930c180baf8cac1ea.js} +1 -1
  3. package/dist/esm-devtools-app/988.js +1 -1
  4. package/dist/esm-devtools-app/openmrs-esm-devtools-app.js +1 -1
  5. package/dist/esm-devtools-app/openmrs-esm-devtools-app.js.buildmanifest.json +4 -4
  6. package/dist/esm-devtools-app/openmrs-esm-devtools-app.old +1 -1
  7. package/dist/esm-implementer-tools-app/138.js +1 -0
  8. package/dist/esm-implementer-tools-app/284.js +1 -1
  9. package/dist/esm-implementer-tools-app/574.js +1 -1
  10. package/dist/esm-implementer-tools-app/{475.js → 733.js} +1 -1
  11. package/dist/esm-implementer-tools-app/openmrs-esm-implementer-tools-app.js +1 -1
  12. package/dist/esm-implementer-tools-app/openmrs-esm-implementer-tools-app.js.buildmanifest.json +49 -49
  13. package/dist/esm-implementer-tools-app/openmrs-esm-implementer-tools-app.old +1 -1
  14. package/dist/esm-login-app/420.js +1 -1
  15. package/dist/esm-login-app/openmrs-esm-login-app.js +1 -1
  16. package/dist/esm-login-app/openmrs-esm-login-app.js.buildmanifest.json +4 -4
  17. package/dist/esm-login-app/openmrs-esm-login-app.old +1 -1
  18. package/dist/esm-offline-tools-app/895.js +1 -1
  19. package/dist/esm-offline-tools-app/openmrs-esm-offline-tools-app.js +1 -1
  20. package/dist/esm-offline-tools-app/openmrs-esm-offline-tools-app.js.buildmanifest.json +4 -4
  21. package/dist/esm-offline-tools-app/openmrs-esm-offline-tools-app.old +1 -1
  22. package/dist/esm-primary-navigation-app/789.js +1 -1
  23. package/dist/esm-primary-navigation-app/openmrs-esm-primary-navigation-app.js +1 -1
  24. package/dist/esm-primary-navigation-app/openmrs-esm-primary-navigation-app.js.buildmanifest.json +4 -4
  25. package/dist/esm-primary-navigation-app/openmrs-esm-primary-navigation-app.old +1 -1
  26. package/dist/openmrs.js +1 -1
  27. package/dist/service-worker.js +1 -1
  28. package/lib/esm-devtools-app/988.js +1 -1
  29. package/lib/esm-devtools-app/openmrs-esm-devtools-app.js +1 -1
  30. package/lib/esm-devtools-app/openmrs-esm-devtools-app.js.buildmanifest.json +4 -4
  31. package/lib/esm-devtools-app/openmrs-esm-devtools-app.old +1 -1
  32. package/lib/esm-implementer-tools-app/138.js +1 -0
  33. package/lib/esm-implementer-tools-app/284.js +1 -1
  34. package/lib/esm-implementer-tools-app/574.js +1 -1
  35. package/lib/esm-implementer-tools-app/{475.js → 733.js} +1 -1
  36. package/lib/esm-implementer-tools-app/openmrs-esm-implementer-tools-app.js +1 -1
  37. package/lib/esm-implementer-tools-app/openmrs-esm-implementer-tools-app.js.buildmanifest.json +49 -49
  38. package/lib/esm-implementer-tools-app/openmrs-esm-implementer-tools-app.old +1 -1
  39. package/lib/esm-login-app/420.js +1 -1
  40. package/lib/esm-login-app/openmrs-esm-login-app.js +1 -1
  41. package/lib/esm-login-app/openmrs-esm-login-app.js.buildmanifest.json +4 -4
  42. package/lib/esm-login-app/openmrs-esm-login-app.old +1 -1
  43. package/lib/esm-offline-tools-app/895.js +1 -1
  44. package/lib/esm-offline-tools-app/openmrs-esm-offline-tools-app.js +1 -1
  45. package/lib/esm-offline-tools-app/openmrs-esm-offline-tools-app.js.buildmanifest.json +4 -4
  46. package/lib/esm-offline-tools-app/openmrs-esm-offline-tools-app.old +1 -1
  47. package/lib/esm-primary-navigation-app/789.js +1 -1
  48. package/lib/esm-primary-navigation-app/openmrs-esm-primary-navigation-app.js +1 -1
  49. package/lib/esm-primary-navigation-app/openmrs-esm-primary-navigation-app.js.buildmanifest.json +4 -4
  50. package/lib/esm-primary-navigation-app/openmrs-esm-primary-navigation-app.old +1 -1
  51. package/lib/openmrs.js +5 -5
  52. package/lib/service-worker.js +1 -1
  53. package/package.json +8 -8
  54. package/dist/esm-implementer-tools-app/811.js +0 -1
  55. package/lib/esm-implementer-tools-app/811.js +0 -1
@@ -1 +1 @@
1
- System.register("@openmrs/esm-offline-tools-app",[],(function(e,r){return{execute:function(){e((()=>{var e,t,n,o,a,i,l,s,u,f,p,c,d,h,m,v,b,g={6585:(e,r,t)=>{(0,t(7968).s)(1)},7968:(e,r,t)=>{const n=t(1577).R;r.s=function(e){if(e||(e=1),!t.y.meta||!t.y.meta.url)throw console.error("__system_context__",t.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");t.p=n(t.y.meta.url,e)}},8331:(e,r,t)=>{t(6585)},1577:(e,r,t)=>{r.R=function(e,r){var t=document.createElement("a");t.href=e;for(var n="/"===t.pathname[0]?t.pathname:"/"+t.pathname,o=0,a=n.length;o!==r&&a>=0;)"/"===n[--a]&&o++;if(o!==r)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+r+") is greater than the number of directories ("+o+") in the URL path "+e);var i=n.slice(0,a+1);return t.protocol+"//"+t.host+i};Number.isInteger},8827:(e,r,t)=>{"use strict";var n={app:()=>Promise.all([t.e(321),t.e(983),t.e(895)]).then((()=>()=>t(8895)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},y={};function w(e){var r=y[e];if(void 0!==r)return r.exports;var t=y[e]={id:e,loaded:!1,exports:{}};return g[e].call(t.exports,t,t.exports,w),t.loaded=!0,t.exports}return w.m=g,w.c=y,w.y=r,w.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return w.d(r,{a:r}),r},w.d=(e,r)=>{for(var t in r)w.o(r,t)&&!w.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},w.f={},w.e=e=>Promise.all(Object.keys(w.f).reduce(((r,t)=>(w.f[t](e,r),r)),[])),w.u=e=>e+".js",w.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),w.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},t="@openmrs/esm-offline-tools-app:",w.l=(r,n,o,a)=>{if(e[r])e[r].push(n);else{var i,l;if(void 0!==o)for(var s=document.getElementsByTagName("script"),u=0;u<s.length;u++){var f=s[u];if(f.getAttribute("src")==r||f.getAttribute("data-webpack")==t+o){i=f;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,w.nc&&i.setAttribute("nonce",w.nc),i.setAttribute("data-webpack",t+o),i.src=r),e[r]=[n];var p=(t,n)=>{i.onerror=i.onload=null,clearTimeout(c);var o=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(n)},c=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),l&&document.head.appendChild(i)}},w.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},w.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{w.S={};var e={},r={};w.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];w.o(w.S,t)||(w.S[t]={});var a=w.S[t],i="@openmrs/esm-offline-tools-app",l=(e,r,t,n)=>{var o=a[e]=a[e]||{},l=o[r];(!l||!l.loaded&&(!n!=!l.eager?n:i>l.from))&&(o[r]={get:t,from:i,eager:!!n})},s=[];return"default"===t&&(l("@openmrs/esm-framework","3.4.1-pre.175",(()=>Promise.all([w.e(983),w.e(889)]).then((()=>()=>w(4889))))),l("carbon-components-react","7.31.0",(()=>Promise.all([w.e(322),w.e(983),w.e(69)]).then((()=>()=>w(7322))))),l("carbon-components","10.31.0",(()=>Promise.all([w.e(25),w.e(1)]).then((()=>()=>w(25))))),l("carbon-icons","7.0.7",(()=>w.e(860).then((()=>()=>w(4860))))),l("react-dom","16.14.0",(()=>Promise.all([w.e(788),w.e(983)]).then((()=>()=>w(2788))))),l("react-i18next","11.16.2",(()=>Promise.all([w.e(743),w.e(983)]).then((()=>()=>w(5743))))),l("react-router-dom","5.3.0",(()=>Promise.all([w.e(393),w.e(983),w.e(216)]).then((()=>()=>w(7393))))),l("react","16.14.0",(()=>w.e(735).then((()=>()=>w(2735)))))),e[t]=s.length?Promise.all(s).then((()=>e[t]=1)):1}}})(),w.p="",n=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},o=(e,r)=>{e=n(e),r=n(r);for(var t=0;;){if(t>=e.length)return t<r.length&&"u"!=(typeof r[t])[0];var o=e[t],a=(typeof o)[0];if(t>=r.length)return"u"==a;var i=r[t],l=(typeof i)[0];if(a!=l)return"o"==a&&"n"==l||"s"==l||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;t++}},a=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,o=1;o<e.length;o++)n--,t+="u"==(typeof(l=e[o]))[0]?"-":(n>0?".":"")+(n=2,l);return t}var i=[];for(o=1;o<e.length;o++){var l=e[o];i.push(0===l?"not("+s()+")":1===l?"("+s()+" || "+s()+")":2===l?i.pop()+" "+i.pop():a(l))}return s();function s(){return i.pop().replace(/^\((.+)\)$/,"$1")}},i=(e,r)=>{if(0 in e){r=n(r);var t=e[0],o=t<0;o&&(t=-t-1);for(var a=0,l=1,s=!0;;l++,a++){var u,f,p=l<e.length?(typeof e[l])[0]:"";if(a>=r.length||"o"==(f=(typeof(u=r[a]))[0]))return!s||("u"==p?l>t&&!o:""==p!=o);if("u"==f){if(!s||"u"!=p)return!1}else if(s)if(p==f)if(l<=t){if(u!=e[l])return!1}else{if(o?u>e[l]:u<e[l])return!1;u!=e[l]&&(s=!1)}else if("s"!=p&&"n"!=p){if(o||l<=t)return!1;s=!1,l--}else{if(l<=t||f<p!=o)return!1;s=!1}else"s"!=p&&"n"!=p&&(s=!1,l--)}}var c=[],d=c.pop.bind(c);for(a=1;a<e.length;a++){var h=e[a];c.push(1==h?d()|d():2==h?d()&d():h?i(h,r):!d())}return!!d()},l=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&o(e,r)?r:e),0)},s=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+a(n)+")",u=(e,r,t,n)=>{var o=l(e,t);return p(e[t][o])},f=(e,r,t,n)=>{var o=l(e,t);return i(n,o)||"undefined"!=typeof console&&console.warn&&console.warn(s(e,t,o,n)),p(e[t][o])},p=e=>(e.loaded=1,e.get()),d=(c=e=>function(r,t,n,o){var a=w.I(r);return a&&a.then?a.then(e.bind(e,r,w.S[r],t,n,o)):e(r,w.S[r],t,n,o)})(((e,r,t,n)=>r&&w.o(r,t)?u(r,0,t):n())),h=c(((e,r,t,n,o)=>r&&w.o(r,t)?f(r,0,t,n):o())),m={},v={6983:()=>h("default","react",[1,16],(()=>w.e(735).then((()=>()=>w(2735))))),2680:()=>h("default","react-i18next",[1,11],(()=>w.e(743).then((()=>()=>w(5743))))),7644:()=>h("default","@openmrs/esm-framework",[0,3,1,14,,"pre"],(()=>w.e(889).then((()=>()=>w(4889))))),8478:()=>d("default","@openmrs/esm-framework/src/internal",(()=>w.e(889).then((()=>()=>w(4889))))),9784:()=>h("default","carbon-components-react",[1,7],(()=>Promise.all([w.e(322),w.e(69)]).then((()=>()=>w(7322))))),5412:()=>h("default","react-dom",[1,16],(()=>w.e(788).then((()=>()=>w(2788))))),6240:()=>h("default","carbon-icons",[1,7],(()=>w.e(860).then((()=>()=>w(4860))))),7569:()=>h("default","carbon-components",[1,10],(()=>w.e(25).then((()=>()=>w(25))))),2268:()=>h("default","react-router-dom",[1,5],(()=>w.e(393).then((()=>()=>w(7393)))))},b={69:[5412,6240,7569],194:[2268],895:[2680,7644,8478,9784],983:[6983]},w.f.consumes=(e,r)=>{w.o(b,e)&&b[e].forEach((e=>{if(w.o(m,e))return r.push(m[e]);var t=r=>{m[e]=0,w.m[e]=t=>{delete w.c[e],t.exports=r()}},n=r=>{delete m[e],w.m[e]=t=>{throw delete w.c[e],r}};try{var o=v[e]();o.then?r.push(m[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},(()=>{var e={588:0};w.f.j=(r,t)=>{var n=w.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(69|983)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=w.p+w.u(r),i=new Error;w.l(a,(t=>{if(w.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,i,l]=t,s=0;if(a.some((r=>0!==e[r]))){for(n in i)w.o(i,n)&&(w.m[n]=i[n]);l&&l(w)}for(r&&r(t);s<a.length;s++)o=a[s],w.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=self.webpackChunk_openmrs_esm_offline_tools_app=self.webpackChunk_openmrs_esm_offline_tools_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),w(8331),w(8827)})())}}}));
1
+ System.register("@openmrs/esm-offline-tools-app",[],(function(e,r){return{execute:function(){e((()=>{var e,t,n,o,a,i,l,s,u,f,p,c,d,h,m,v,b,g={6585:(e,r,t)=>{(0,t(7968).s)(1)},7968:(e,r,t)=>{const n=t(1577).R;r.s=function(e){if(e||(e=1),!t.y.meta||!t.y.meta.url)throw console.error("__system_context__",t.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");t.p=n(t.y.meta.url,e)}},8331:(e,r,t)=>{t(6585)},1577:(e,r,t)=>{r.R=function(e,r){var t=document.createElement("a");t.href=e;for(var n="/"===t.pathname[0]?t.pathname:"/"+t.pathname,o=0,a=n.length;o!==r&&a>=0;)"/"===n[--a]&&o++;if(o!==r)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+r+") is greater than the number of directories ("+o+") in the URL path "+e);var i=n.slice(0,a+1);return t.protocol+"//"+t.host+i};Number.isInteger},8827:(e,r,t)=>{"use strict";var n={app:()=>Promise.all([t.e(321),t.e(983),t.e(895)]).then((()=>()=>t(8895)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},y={};function w(e){var r=y[e];if(void 0!==r)return r.exports;var t=y[e]={id:e,loaded:!1,exports:{}};return g[e].call(t.exports,t,t.exports,w),t.loaded=!0,t.exports}return w.m=g,w.c=y,w.y=r,w.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return w.d(r,{a:r}),r},w.d=(e,r)=>{for(var t in r)w.o(r,t)&&!w.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},w.f={},w.e=e=>Promise.all(Object.keys(w.f).reduce(((r,t)=>(w.f[t](e,r),r)),[])),w.u=e=>e+".js",w.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),w.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},t="@openmrs/esm-offline-tools-app:",w.l=(r,n,o,a)=>{if(e[r])e[r].push(n);else{var i,l;if(void 0!==o)for(var s=document.getElementsByTagName("script"),u=0;u<s.length;u++){var f=s[u];if(f.getAttribute("src")==r||f.getAttribute("data-webpack")==t+o){i=f;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,w.nc&&i.setAttribute("nonce",w.nc),i.setAttribute("data-webpack",t+o),i.src=r),e[r]=[n];var p=(t,n)=>{i.onerror=i.onload=null,clearTimeout(c);var o=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(n)},c=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),l&&document.head.appendChild(i)}},w.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},w.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{w.S={};var e={},r={};w.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];w.o(w.S,t)||(w.S[t]={});var a=w.S[t],i="@openmrs/esm-offline-tools-app",l=(e,r,t,n)=>{var o=a[e]=a[e]||{},l=o[r];(!l||!l.loaded&&(!n!=!l.eager?n:i>l.from))&&(o[r]={get:t,from:i,eager:!!n})},s=[];return"default"===t&&(l("@openmrs/esm-framework","3.4.1-pre.189",(()=>Promise.all([w.e(983),w.e(889)]).then((()=>()=>w(4889))))),l("carbon-components-react","7.31.0",(()=>Promise.all([w.e(322),w.e(983),w.e(69)]).then((()=>()=>w(7322))))),l("carbon-components","10.31.0",(()=>Promise.all([w.e(25),w.e(1)]).then((()=>()=>w(25))))),l("carbon-icons","7.0.7",(()=>w.e(860).then((()=>()=>w(4860))))),l("react-dom","16.14.0",(()=>Promise.all([w.e(788),w.e(983)]).then((()=>()=>w(2788))))),l("react-i18next","11.16.2",(()=>Promise.all([w.e(743),w.e(983)]).then((()=>()=>w(5743))))),l("react-router-dom","5.3.0",(()=>Promise.all([w.e(393),w.e(983),w.e(216)]).then((()=>()=>w(7393))))),l("react","16.14.0",(()=>w.e(735).then((()=>()=>w(2735)))))),e[t]=s.length?Promise.all(s).then((()=>e[t]=1)):1}}})(),w.p="",n=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},o=(e,r)=>{e=n(e),r=n(r);for(var t=0;;){if(t>=e.length)return t<r.length&&"u"!=(typeof r[t])[0];var o=e[t],a=(typeof o)[0];if(t>=r.length)return"u"==a;var i=r[t],l=(typeof i)[0];if(a!=l)return"o"==a&&"n"==l||"s"==l||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;t++}},a=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,o=1;o<e.length;o++)n--,t+="u"==(typeof(l=e[o]))[0]?"-":(n>0?".":"")+(n=2,l);return t}var i=[];for(o=1;o<e.length;o++){var l=e[o];i.push(0===l?"not("+s()+")":1===l?"("+s()+" || "+s()+")":2===l?i.pop()+" "+i.pop():a(l))}return s();function s(){return i.pop().replace(/^\((.+)\)$/,"$1")}},i=(e,r)=>{if(0 in e){r=n(r);var t=e[0],o=t<0;o&&(t=-t-1);for(var a=0,l=1,s=!0;;l++,a++){var u,f,p=l<e.length?(typeof e[l])[0]:"";if(a>=r.length||"o"==(f=(typeof(u=r[a]))[0]))return!s||("u"==p?l>t&&!o:""==p!=o);if("u"==f){if(!s||"u"!=p)return!1}else if(s)if(p==f)if(l<=t){if(u!=e[l])return!1}else{if(o?u>e[l]:u<e[l])return!1;u!=e[l]&&(s=!1)}else if("s"!=p&&"n"!=p){if(o||l<=t)return!1;s=!1,l--}else{if(l<=t||f<p!=o)return!1;s=!1}else"s"!=p&&"n"!=p&&(s=!1,l--)}}var c=[],d=c.pop.bind(c);for(a=1;a<e.length;a++){var h=e[a];c.push(1==h?d()|d():2==h?d()&d():h?i(h,r):!d())}return!!d()},l=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&o(e,r)?r:e),0)},s=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+a(n)+")",u=(e,r,t,n)=>{var o=l(e,t);return p(e[t][o])},f=(e,r,t,n)=>{var o=l(e,t);return i(n,o)||"undefined"!=typeof console&&console.warn&&console.warn(s(e,t,o,n)),p(e[t][o])},p=e=>(e.loaded=1,e.get()),d=(c=e=>function(r,t,n,o){var a=w.I(r);return a&&a.then?a.then(e.bind(e,r,w.S[r],t,n,o)):e(r,w.S[r],t,n,o)})(((e,r,t,n)=>r&&w.o(r,t)?u(r,0,t):n())),h=c(((e,r,t,n,o)=>r&&w.o(r,t)?f(r,0,t,n):o())),m={},v={6983:()=>h("default","react",[1,16],(()=>w.e(735).then((()=>()=>w(2735))))),2680:()=>h("default","react-i18next",[1,11],(()=>w.e(743).then((()=>()=>w(5743))))),7644:()=>h("default","@openmrs/esm-framework",[0,3,1,14,,"pre"],(()=>w.e(889).then((()=>()=>w(4889))))),8478:()=>d("default","@openmrs/esm-framework/src/internal",(()=>w.e(889).then((()=>()=>w(4889))))),9784:()=>h("default","carbon-components-react",[1,7],(()=>Promise.all([w.e(322),w.e(69)]).then((()=>()=>w(7322))))),5412:()=>h("default","react-dom",[1,16],(()=>w.e(788).then((()=>()=>w(2788))))),6240:()=>h("default","carbon-icons",[1,7],(()=>w.e(860).then((()=>()=>w(4860))))),7569:()=>h("default","carbon-components",[1,10],(()=>w.e(25).then((()=>()=>w(25))))),2268:()=>h("default","react-router-dom",[1,5],(()=>w.e(393).then((()=>()=>w(7393)))))},b={69:[5412,6240,7569],194:[2268],895:[2680,7644,8478,9784],983:[6983]},w.f.consumes=(e,r)=>{w.o(b,e)&&b[e].forEach((e=>{if(w.o(m,e))return r.push(m[e]);var t=r=>{m[e]=0,w.m[e]=t=>{delete w.c[e],t.exports=r()}},n=r=>{delete m[e],w.m[e]=t=>{throw delete w.c[e],r}};try{var o=v[e]();o.then?r.push(m[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},(()=>{var e={588:0};w.f.j=(r,t)=>{var n=w.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(69|983)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=w.p+w.u(r),i=new Error;w.l(a,(t=>{if(w.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,i,l]=t,s=0;if(a.some((r=>0!==e[r]))){for(n in i)w.o(i,n)&&(w.m[n]=i[n]);l&&l(w)}for(r&&r(t);s<a.length;s++)o=a[s],w.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=self.webpackChunk_openmrs_esm_offline_tools_app=self.webpackChunk_openmrs_esm_offline_tools_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),w(8331),w(8827)})())}}}));
@@ -1 +1 @@
1
- (self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[789],{1602:t=>{var n=function(t){"use strict";var n,e=Object.prototype,r=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,n,e){return Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{c({},"")}catch(t){c=function(t,n,e){return t[n]=e}}function s(t,n,e,r){var o=n&&n.prototype instanceof v?n:v,i=Object.create(o.prototype),a=new L(r||[]);return i._invoke=function(t,n,e){var r=l;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===m){if("throw"===o)throw i;return N()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var u=_(a,e);if(u){if(u===d)continue;return u}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(r===l)throw r=m,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);r=h;var c=f(t,n,e);if("normal"===c.type){if(r=e.done?m:p,c.arg===d)continue;return{value:c.arg,done:e.done}}"throw"===c.type&&(r=m,e.method="throw",e.arg=c.arg)}}}(t,e,a),i}function f(t,n,e){try{return{type:"normal",arg:t.call(n,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var l="suspendedStart",p="suspendedYield",h="executing",m="completed",d={};function v(){}function y(){}function g(){}var w={};c(w,i,(function(){return this}));var E=Object.getPrototypeOf,b=E&&E(E(x([])));b&&b!==e&&r.call(b,i)&&(w=b);var O=g.prototype=v.prototype=Object.create(w);function P(t){["next","throw","return"].forEach((function(n){c(t,n,(function(t){return this._invoke(n,t)}))}))}function T(t,n){function e(o,i,a,u){var c=f(t[o],t,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&r.call(l,"__await")?n.resolve(l.__await).then((function(t){e("next",t,a,u)}),(function(t){e("throw",t,a,u)})):n.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return e("throw",t,a,u)}))}u(c.arg)}var o;this._invoke=function(t,r){function i(){return new n((function(n,o){e(t,r,n,o)}))}return o=o?o.then(i,i):i()}}function _(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,_(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=f(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function S(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function A(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function x(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function e(){for(;++o<t.length;)if(r.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=n,e.done=!0,e};return a.next=a}}return{next:N}}function N(){return{value:n,done:!0}}return y.prototype=g,c(O,"constructor",g),c(g,"constructor",y),y.displayName=c(g,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===y||"GeneratorFunction"===(n.displayName||n.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,c(t,u,"GeneratorFunction")),t.prototype=Object.create(O),t},t.awrap=function(t){return{__await:t}},P(T.prototype),c(T.prototype,a,(function(){return this})),t.AsyncIterator=T,t.async=function(n,e,r,o,i){void 0===i&&(i=Promise);var a=new T(s(n,e,r,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},P(O),c(O,u,"Generator"),c(O,i,(function(){return this})),c(O,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var n=[];for(var e in t)n.push(e);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=x,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(A),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function o(r,o){return u.type="throw",u.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,n){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=n,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&n&&(this.next=n),d},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),A(e),d}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.tryLoc===t){var r=e.completion;if("throw"===r.type){var o=r.arg;A(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:x(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),d}},t}(t.exports);try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},6639:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>u,genericLinkConfigSchema:()=>a});var r=e(6983),o=e.n(r),i=e(7644),a={title:{_default:"New Link",_type:i.Type.String},target:{_default:"#",_type:i.Type.String,_description:"The URL to link to.",_validators:[i.validators.isUrl]}};function u(){var t=(0,i.useConfig)();return o().createElement(i.ConfigurableLink,{to:t.target},t.title)}},1217:(t,n,e)=>{"use strict";e.d(n,{O:()=>r,e:()=>o});var r="user-property-change",o="@openmrs/esm-primary-navigation-app"},789:(t,n,e)=>{"use strict";e.r(n),e.d(n,{backendDependencies:()=>fn,importTranslation:()=>sn,setupOpenMRS:()=>pn});var r=e(7644),o=e(1602),i=e.n(o),a=e(8478),u=e(1217);function c(t,n,e,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void e(t)}u.done?n(c):Promise.resolve(c).then(r,o)}function s(t){return function(){var n=this,e=arguments;return new Promise((function(r,o){var i=t.apply(n,e);function a(t){c(i,r,o,a,u,"next",t)}function u(t){c(i,r,o,a,u,"throw",t)}a(void 0)}))}}function f(t,n,e){return l.apply(this,arguments)}function l(){return(l=s(i().mark((function t(n,e,r){var o,u;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,a.getSessionLocation)();case 2:return o=t.sent,u=null==o?void 0:o.uuid,t.next=6,(0,a.openmrsFetch)("/ws/rest/v1/user/".concat(n),{method:"POST",body:{userProperties:e},headers:{"Content-Type":"application/json"},signal:r.signal});case 6:if(!u){t.next=9;break}return t.next=9,(0,a.setSessionLocation)(u,r);case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function p(t,n){return(0,a.queueSynchronizationItemFor)(t,u.O,n,{displayName:"User Language Change"})}var h={logo:{src:{_type:r.Type.String,_default:null,_description:"A path or URL to an image. Defaults to the OpenMRS SVG sprite."},alt:{_type:r.Type.String,_default:"Logo",_description:"Alt text, shown on hover"},name:{_type:r.Type.String,_default:null,_description:"The organization name displayed when image is absent"}},externalRefLinks:{_type:r.Type.Array,_elements:{title:{_type:r.Type.String,_description:"Title of the link"},redirect:{_type:r.Type.String,_description:"Link to redirect to (must be an external link)",_validators:[r.validators.isUrl]}},_default:[],_description:"The external links to be showcased in the app menu"}};function m(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function d(t,n,e,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void e(t)}u.done?n(c):Promise.resolve(c).then(r,o)}function v(t){return function(){var n=this,e=arguments;return new Promise((function(r,o){var i=t.apply(n,e);function a(t){d(i,r,o,a,u,"next",t)}function u(t){d(i,r,o,a,u,"throw",t)}a(void 0)}))}}function y(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,i=[],a=!0,u=!1;try{for(e=e.call(t);!(a=(r=e.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==e.return||e.return()}finally{if(u)throw o}}return i}}(t,n)||w(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||w(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(t,n){if(t){if("string"==typeof t)return m(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?m(t,n):void 0}}function E(t,n){return b.apply(this,arguments)}function b(){return b=v(i().mark((function t(n,e){var r,o,u,c;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==e.index){t.next=10;break}return t.next=4,(0,a.getLoggedInUser)();case 4:return o=t.sent,u=e.items.map((function(t){var n=y(t,2);return n[0],n[1]})),c=(r=Object).assign.apply(r,[{},o.userProperties].concat(g(u))),t.next=9,f(o.uuid,c,e.abort);case 9:(0,a.refetchCurrentUser)();case 10:case"end":return t.stop()}}),t)}))),b.apply(this,arguments)}var O=Object.freeze({__proto__:null,get start(){return on},get ensureJQuerySupport(){return Ut},get setBootstrapMaxTime(){return pt},get setMountMaxTime(){return ht},get setUnmountMaxTime(){return mt},get setUnloadMaxTime(){return dt},get registerApplication(){return Kt},get unregisterApplication(){return Jt},get getMountedApps(){return Wt},get getAppStatus(){return $t},get unloadApplication(){return Vt},get checkActivityFunctions(){return zt},get getAppNames(){return Ft},get pathToActiveWhen(){return Qt},get navigateToUrl(){return Pt},get triggerAppChange(){return tn},get addErrorHandler(){return x},get removeErrorHandler(){return N},get mountRootParcel(){return ut},get NOT_LOADED(){return k},get LOADING_SOURCE_CODE(){return D},get NOT_BOOTSTRAPPED(){return M},get BOOTSTRAPPING(){return I},get NOT_MOUNTED(){return R},get MOUNTING(){return C},get UPDATING(){return B},get LOAD_ERROR(){return F},get MOUNTED(){return G},get UNMOUNTING(){return W},get SKIP_BECAUSE_BROKEN(){return $}});function P(t){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function T(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var _=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e.g?e.g:"undefined"!=typeof self?self:{}).CustomEvent,S=function(){try{var t=new _("cat",{detail:{foo:"bar"}});return"cat"===t.type&&"bar"===t.detail.foo}catch(t){}return!1}()?_:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(t,n){var e=document.createEvent("CustomEvent");return n?e.initCustomEvent(t,n.bubbles,n.cancelable,n.detail):e.initCustomEvent(t,!1,!1,void 0),e}:function(t,n){var e=document.createEventObject();return e.type=t,n?(e.bubbles=Boolean(n.bubbles),e.cancelable=Boolean(n.cancelable),e.detail=n.detail):(e.bubbles=!1,e.cancelable=!1,e.detail=void 0),e},A=[];function L(t,n,e){var r=U(t,n,e);A.length?A.forEach((function(t){return t(r)})):setTimeout((function(){throw r}))}function x(t){if("function"!=typeof t)throw Error(j(28,!1));A.push(t)}function N(t){if("function"!=typeof t)throw Error(j(29,!1));var n=!1;return A=A.filter((function(e){var r=e===t;return n=n||r,!r})),n}function j(t,n){for(var e=arguments.length,r=new Array(e>2?e-2:0),o=2;o<e;o++)r[o-2]=arguments[o];return"single-spa minified message #".concat(t,": ").concat(n?n+" ":"","See https://single-spa.js.org/error/?code=").concat(t).concat(r.length?"&arg=".concat(r.join("&arg=")):"")}function U(t,n,e){var r,o="".concat(q(n)," '").concat(J(n),"' died in status ").concat(n.status,": ");if(t instanceof Error){try{t.message=o+t.message}catch(t){}r=t}else{console.warn(j(30,!1,n.status,J(n)));try{r=Error(o+JSON.stringify(t))}catch(n){r=t}}return r.appOrParcelName=J(n),n.status=e,r}var k="NOT_LOADED",D="LOADING_SOURCE_CODE",M="NOT_BOOTSTRAPPED",I="BOOTSTRAPPING",R="NOT_MOUNTED",C="MOUNTING",G="MOUNTED",B="UPDATING",W="UNMOUNTING",F="LOAD_ERROR",$="SKIP_BECAUSE_BROKEN";function K(t){return t.status===G}function z(t){try{return t.activeWhen(window.location)}catch(n){return L(n,t,$),!1}}function J(t){return t.name}function V(t){return Boolean(t.unmountThisParcel)}function q(t){return V(t)?"parcel":"application"}function H(){for(var t=arguments.length-1;t>0;t--)for(var n in arguments[t])"__proto__"!==n&&(arguments[t-1][n]=arguments[t][n]);return arguments[0]}function Q(t,n){for(var e=0;e<t.length;e++)if(n(t[e]))return t[e];return null}function Y(t){return t&&("function"==typeof t||(n=t,Array.isArray(n)&&!Q(n,(function(t){return"function"!=typeof t}))));var n}function X(t,n){var e=t[n]||[];0===(e=Array.isArray(e)?e:[e]).length&&(e=[function(){return Promise.resolve()}]);var r=q(t),o=J(t);return function(t){return e.reduce((function(e,i,a){return e.then((function(){var e=i(t);return Z(e)?e:Promise.reject(j(15,!1,r,o,n,a))}))}),Promise.resolve())}}function Z(t){return t&&"function"==typeof t.then&&"function"==typeof t.catch}function tt(t,n){return Promise.resolve().then((function(){return t.status!==M?t:(t.status=I,t.bootstrap?vt(t,"bootstrap").then(e).catch((function(e){if(n)throw U(e,t,$);return L(e,t,$),t})):Promise.resolve().then(e))}));function e(){return t.status=R,t}}function nt(t,n){return Promise.resolve().then((function(){if(t.status!==G)return t;t.status=W;var e=Object.keys(t.parcels).map((function(n){return t.parcels[n].unmountThisParcel()}));return Promise.all(e).then(r,(function(e){return r().then((function(){var r=Error(e.message);if(n)throw U(r,t,$);L(r,t,$)}))})).then((function(){return t}));function r(){return vt(t,"unmount").then((function(){t.status=R})).catch((function(e){if(n)throw U(e,t,$);L(e,t,$)}))}}))}var et=!1,rt=!1;function ot(t,n){return Promise.resolve().then((function(){return t.status!==R?t:(et||(window.dispatchEvent(new S("single-spa:before-first-mount")),et=!0),vt(t,"mount").then((function(){return t.status=G,rt||(window.dispatchEvent(new S("single-spa:first-mount")),rt=!0),t})).catch((function(e){return t.status=G,nt(t,!0).then(r,r);function r(){if(n)throw U(e,t,$);return L(e,t,$),t}})))}))}var it=0,at={parcels:{}};function ut(){return ct.apply(at,arguments)}function ct(t,n){var e=this;if(!t||"object"!==P(t)&&"function"!=typeof t)throw Error(j(2,!1));if(t.name&&"string"!=typeof t.name)throw Error(j(3,!1,P(t.name)));if("object"!==P(n))throw Error(j(4,!1,name,P(n)));if(!n.domElement)throw Error(j(5,!1,name));var r,o=it++,i="function"==typeof t,a=i?t:function(){return Promise.resolve(t)},u={id:o,parcels:{},status:i?D:M,customProps:n,parentName:J(e),unmountThisParcel:function(){return p.then((function(){if(u.status!==G)throw Error(j(6,!1,name,u.status));return nt(u,!0)})).then((function(t){return u.parentName&&delete e.parcels[u.id],t})).then((function(t){return s(t),t})).catch((function(t){throw u.status=$,f(t),t}))}};e.parcels[o]=u;var c=a();if(!c||"function"!=typeof c.then)throw Error(j(7,!1));var s,f,l=(c=c.then((function(t){if(!t)throw Error(j(8,!1));var n=t.name||"parcel-".concat(o);if(Object.prototype.hasOwnProperty.call(t,"bootstrap")&&!Y(t.bootstrap))throw Error(j(9,!1,n));if(!Y(t.mount))throw Error(j(10,!1,n));if(!Y(t.unmount))throw Error(j(11,!1,n));if(t.update&&!Y(t.update))throw Error(j(12,!1,n));var e=X(t,"bootstrap"),i=X(t,"mount"),a=X(t,"unmount");u.status=M,u.name=n,u.bootstrap=e,u.mount=i,u.unmount=a,u.timeouts=yt(t.timeouts),t.update&&(u.update=X(t,"update"),r.update=function(t){return u.customProps=t,st(function(t){return Promise.resolve().then((function(){if(t.status!==G)throw Error(j(32,!1,J(t)));return t.status=B,vt(t,"update").then((function(){return t.status=G,t})).catch((function(n){throw U(n,t,$)}))}))}(u))})}))).then((function(){return tt(u,!0)})),p=l.then((function(){return ot(u,!0)})),h=new Promise((function(t,n){s=t,f=n}));return r={mount:function(){return st(Promise.resolve().then((function(){if(u.status!==R)throw Error(j(13,!1,name,u.status));return e.parcels[o]=u,ot(u)})))},unmount:function(){return st(u.unmountThisParcel())},getStatus:function(){return u.status},loadPromise:st(c),bootstrapPromise:st(l),mountPromise:st(p),unmountPromise:st(h)}}function st(t){return t.then((function(){return null}))}function ft(t){var n=J(t),e="function"==typeof t.customProps?t.customProps(n,window.location):t.customProps;("object"!==P(e)||null===e||Array.isArray(e))&&(e={},console.warn(j(40,!1),n,e));var r=H({},e,{name:n,mountParcel:ct.bind(t),singleSpa:O});return V(t)&&(r.unmountSelf=t.unmountThisParcel),r}var lt={bootstrap:{millis:4e3,dieOnTimeout:!1,warningMillis:1e3},mount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unmount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unload:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},update:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3}};function pt(t,n,e){if("number"!=typeof t||t<=0)throw Error(j(16,!1));lt.bootstrap={millis:t,dieOnTimeout:n,warningMillis:e||1e3}}function ht(t,n,e){if("number"!=typeof t||t<=0)throw Error(j(17,!1));lt.mount={millis:t,dieOnTimeout:n,warningMillis:e||1e3}}function mt(t,n,e){if("number"!=typeof t||t<=0)throw Error(j(18,!1));lt.unmount={millis:t,dieOnTimeout:n,warningMillis:e||1e3}}function dt(t,n,e){if("number"!=typeof t||t<=0)throw Error(j(19,!1));lt.unload={millis:t,dieOnTimeout:n,warningMillis:e||1e3}}function vt(t,n){var e=t.timeouts[n],r=e.warningMillis,o=q(t);return new Promise((function(i,a){var u=!1,c=!1;t[n](ft(t)).then((function(t){u=!0,i(t)})).catch((function(t){u=!0,a(t)})),setTimeout((function(){return f(1)}),r),setTimeout((function(){return f(!0)}),e.millis);var s=j(31,!1,n,o,J(t),e.millis);function f(t){if(!u)if(!0===t)c=!0,e.dieOnTimeout?a(Error(s)):console.error(s);else if(!c){var n=t,o=n*r;console.warn(s),o+r<e.millis&&setTimeout((function(){return f(n+1)}),r)}}}))}function yt(t){var n={};for(var e in lt)n[e]=H({},lt[e],t&&t[e]||{});return n}function gt(t){return Promise.resolve().then((function(){return t.loadPromise?t.loadPromise:t.status!==k&&t.status!==F?t:(t.status=D,t.loadPromise=Promise.resolve().then((function(){var r=t.loadApp(ft(t));if(!Z(r))throw e=!0,Error(j(33,!1,J(t)));return r.then((function(e){var r;t.loadErrorTime=null,"object"!==P(n=e)&&(r=34),Object.prototype.hasOwnProperty.call(n,"bootstrap")&&!Y(n.bootstrap)&&(r=35),Y(n.mount)||(r=36),Y(n.unmount)||(r=37);var o=q(n);if(r){var i;try{i=JSON.stringify(n)}catch(t){}return console.error(j(r,!1,o,J(t),i),n),L(void 0,t,$),t}return n.devtools&&n.devtools.overlays&&(t.devtools.overlays=H({},t.devtools.overlays,n.devtools.overlays)),t.status=M,t.bootstrap=X(n,"bootstrap"),t.mount=X(n,"mount"),t.unmount=X(n,"unmount"),t.unload=X(n,"unload"),t.timeouts=yt(n.timeouts),delete t.loadPromise,t}))})).catch((function(n){var r;return delete t.loadPromise,e?r=$:(r=F,t.loadErrorTime=(new Date).getTime()),L(n,t,r),t})));var n,e}))}var wt,Et="undefined"!=typeof window,bt={hashchange:[],popstate:[]},Ot=["hashchange","popstate"];function Pt(t){var n;if("string"==typeof t)n=t;else if(this&&this.href)n=this.href;else{if(!(t&&t.currentTarget&&t.currentTarget.href&&t.preventDefault))throw Error(j(14,!1));n=t.currentTarget.href,t.preventDefault()}var e=Nt(window.location.href),r=Nt(n);0===n.indexOf("#")?window.location.hash=r.hash:e.host!==r.host&&r.host?window.location.href=n:r.pathname===e.pathname&&r.search===e.search?window.location.hash=r.hash:window.history.pushState(null,null,n)}function Tt(t){var n=this;if(t){var e=t[0].type;Ot.indexOf(e)>=0&&bt[e].forEach((function(e){try{e.apply(n,t)}catch(t){setTimeout((function(){throw t}))}}))}}function _t(){nn([],arguments)}function St(t,n){return function(){var e=window.location.href,r=t.apply(this,arguments),o=window.location.href;return wt&&e===o||(an()?window.dispatchEvent(At(window.history.state,n)):nn([])),r}}function At(t,n){var e;try{e=new PopStateEvent("popstate",{state:t})}catch(n){(e=document.createEvent("PopStateEvent")).initPopStateEvent("popstate",!1,!1,t)}return e.singleSpa=!0,e.singleSpaTrigger=n,e}if(Et){window.addEventListener("hashchange",_t),window.addEventListener("popstate",_t);var Lt=window.addEventListener,xt=window.removeEventListener;window.addEventListener=function(t,n){if(!("function"==typeof n&&Ot.indexOf(t)>=0)||Q(bt[t],(function(t){return t===n})))return Lt.apply(this,arguments);bt[t].push(n)},window.removeEventListener=function(t,n){if(!("function"==typeof n&&Ot.indexOf(t)>=0))return xt.apply(this,arguments);bt[t]=bt[t].filter((function(t){return t!==n}))},window.history.pushState=St(window.history.pushState,"pushState"),window.history.replaceState=St(window.history.replaceState,"replaceState"),window.singleSpaNavigate?console.warn(j(41,!1)):window.singleSpaNavigate=Pt}function Nt(t){var n=document.createElement("a");return n.href=t,n}var jt=!1;function Ut(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.jQuery;if(t||window.$&&window.$.fn&&window.$.fn.jquery&&(t=window.$),t&&!jt){var n=t.fn.on,e=t.fn.off;t.fn.on=function(t,e){return kt.call(this,n,window.addEventListener,t,e,arguments)},t.fn.off=function(t,n){return kt.call(this,e,window.removeEventListener,t,n,arguments)},jt=!0}}function kt(t,n,e,r,o){return"string"!=typeof e?t.apply(this,o):(e.split(/\s+/).forEach((function(t){Ot.indexOf(t)>=0&&(n(t,r),e=e.replace(t,""))})),""===e.trim()?this:t.apply(this,o))}var Dt={};function Mt(t){return Promise.resolve().then((function(){var n=Dt[J(t)];if(!n)return t;if(t.status===k)return It(t,n),t;if("UNLOADING"===t.status)return n.promise.then((function(){return t}));if(t.status!==R&&t.status!==F)return t;var e=t.status===F?Promise.resolve():vt(t,"unload");return t.status="UNLOADING",e.then((function(){return It(t,n),t})).catch((function(e){return function(t,n,e){delete Dt[J(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,L(e,t,$),n.reject(e)}(t,n,e),t}))}))}function It(t,n){delete Dt[J(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,t.status=k,n.resolve()}function Rt(t,n,e,r){Dt[J(t)]={app:t,resolve:e,reject:r},Object.defineProperty(Dt[J(t)],"promise",{get:n})}function Ct(t){return Dt[t]}var Gt=[];function Bt(){var t=[],n=[],e=[],r=[],o=(new Date).getTime();return Gt.forEach((function(i){var a=i.status!==$&&z(i);switch(i.status){case F:a&&o-i.loadErrorTime>=200&&e.push(i);break;case k:case D:a&&e.push(i);break;case M:case R:!a&&Ct(J(i))?t.push(i):a&&r.push(i);break;case G:a||n.push(i)}})),{appsToUnload:t,appsToUnmount:n,appsToLoad:e,appsToMount:r}}function Wt(){return Gt.filter(K).map(J)}function Ft(){return Gt.map(J)}function $t(t){var n=Q(Gt,(function(n){return J(n)===t}));return n?n.status:null}function Kt(t,n,e,r){var o=function(t,n,e,r){var o,i={name:null,loadApp:null,activeWhen:null,customProps:null};return"object"===P(t)?(function(t){if(Array.isArray(t)||null===t)throw Error(j(39,!1));var n=["name","app","activeWhen","customProps"],e=Object.keys(t).reduce((function(t,e){return n.indexOf(e)>=0?t:t.concat(e)}),[]);if(0!==e.length)throw Error(j(38,!1,n.join(", "),e.join(", ")));if("string"!=typeof t.name||0===t.name.length)throw Error(j(20,!1));if("object"!==P(t.app)&&"function"!=typeof t.app)throw Error(j(20,!1));var r=function(t){return"string"==typeof t||"function"==typeof t};if(!(r(t.activeWhen)||Array.isArray(t.activeWhen)&&t.activeWhen.every(r)))throw Error(j(24,!1));if(!Ht(t.customProps))throw Error(j(22,!1))}(t),i.name=t.name,i.loadApp=t.app,i.activeWhen=t.activeWhen,i.customProps=t.customProps):(function(t,n,e,r){if("string"!=typeof t||0===t.length)throw Error(j(20,!1));if(!n)throw Error(j(23,!1));if("function"!=typeof e)throw Error(j(24,!1));if(!Ht(r))throw Error(j(22,!1))}(t,n,e,r),i.name=t,i.loadApp=n,i.activeWhen=e,i.customProps=r),i.loadApp="function"!=typeof(o=i.loadApp)?function(){return Promise.resolve(o)}:o,i.customProps=function(t){return t||{}}(i.customProps),i.activeWhen=function(t){var n=Array.isArray(t)?t:[t];return n=n.map((function(t){return"function"==typeof t?t:Qt(t)})),function(t){return n.some((function(n){return n(t)}))}}(i.activeWhen),i}(t,n,e,r);if(-1!==Ft().indexOf(o.name))throw Error(j(21,!1,o.name));Gt.push(H({loadErrorTime:null,status:k,parcels:{},devtools:{overlays:{options:{},selectors:[]}}},o)),Et&&(Ut(),nn())}function zt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location;return Gt.filter((function(n){return n.activeWhen(t)})).map(J)}function Jt(t){if(0===Gt.filter((function(n){return J(n)===t})).length)throw Error(j(25,!1,t));return Vt(t).then((function(){var n=Gt.map(J).indexOf(t);Gt.splice(n,1)}))}function Vt(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{waitForUnmount:!1};if("string"!=typeof t)throw Error(j(26,!1));var e=Q(Gt,(function(n){return J(n)===t}));if(!e)throw Error(j(27,!1,t));var r,o=Ct(J(e));if(n&&n.waitForUnmount){if(o)return o.promise;var i=new Promise((function(t,n){Rt(e,(function(){return i}),t,n)}));return i}return o?(r=o.promise,qt(e,o.resolve,o.reject)):r=new Promise((function(t,n){Rt(e,(function(){return r}),t,n),qt(e,t,n)})),r}function qt(t,n,e){nt(t).then(Mt).then((function(){n(),setTimeout((function(){nn()}))})).catch(e)}function Ht(t){return!t||"function"==typeof t||"object"===P(t)&&null!==t&&!Array.isArray(t)}function Qt(t,n){var e=function(t,n){var e=0,r=!1,o="^";"/"!==t[0]&&(t="/"+t);for(var i=0;i<t.length;i++){var a=t[i];(!r&&":"===a||r&&"/"===a)&&u(i)}return u(t.length),new RegExp(o,"i");function u(i){var a=t.slice(e,i).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");if(o+=r?"[^/]+/?":a,i===t.length)if(r)n&&(o+="$");else{var u=n?"":".*";o="/"===o.charAt(o.length-1)?"".concat(o).concat(u,"$"):"".concat(o,"(/").concat(u,")?(#.*)?$")}r=!r,e=i}}(t,n);return function(t){var n=t.origin;n||(n="".concat(t.protocol,"//").concat(t.host));var r=t.href.replace(n,"").replace(t.search,"").split("?")[0];return e.test(r)}}var Yt=!1,Xt=[],Zt=Et&&window.location.href;function tn(){return nn()}function nn(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;if(Yt)return new Promise((function(t,e){Xt.push({resolve:t,reject:e,eventArguments:n})}));var e,r=Bt(),o=r.appsToUnload,i=r.appsToUnmount,a=r.appsToLoad,u=r.appsToMount,c=!1,s=Zt,f=Zt=window.location.href;return an()?(Yt=!0,e=o.concat(a,i,u),h()):(e=a,p());function l(){c=!0}function p(){return Promise.resolve().then((function(){var t=a.map(gt);return Promise.all(t).then(d).then((function(){return[]})).catch((function(t){throw d(),t}))}))}function h(){return Promise.resolve().then((function(){if(window.dispatchEvent(new S(0===e.length?"single-spa:before-no-app-change":"single-spa:before-app-change",v(!0))),window.dispatchEvent(new S("single-spa:before-routing-event",v(!0,{cancelNavigation:l}))),c)return window.dispatchEvent(new S("single-spa:before-mount-routing-event",v(!0))),m(),void Pt(s);var n=o.map(Mt),r=i.map(nt).map((function(t){return t.then(Mt)})).concat(n),f=Promise.all(r);f.then((function(){window.dispatchEvent(new S("single-spa:before-mount-routing-event",v(!0)))}));var p=a.map((function(t){return gt(t).then((function(t){return en(t,f)}))})),h=u.filter((function(t){return a.indexOf(t)<0})).map((function(t){return en(t,f)}));return f.catch((function(t){throw d(),t})).then((function(){return d(),Promise.all(p.concat(h)).catch((function(n){throw t.forEach((function(t){return t.reject(n)})),n})).then(m)}))}))}function m(){var n=Wt();t.forEach((function(t){return t.resolve(n)}));try{var r=0===e.length?"single-spa:no-app-change":"single-spa:app-change";window.dispatchEvent(new S(r,v())),window.dispatchEvent(new S("single-spa:routing-event",v()))}catch(t){setTimeout((function(){throw t}))}if(Yt=!1,Xt.length>0){var o=Xt;Xt=[],nn(o)}return n}function d(){t.forEach((function(t){Tt(t.eventArguments)})),Tt(n)}function v(){var t,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],l=arguments.length>1?arguments[1]:void 0,p={},h=(T(t={},G,[]),T(t,R,[]),T(t,k,[]),T(t,$,[]),t);r?(a.concat(u).forEach((function(t,n){d(t,G)})),o.forEach((function(t){d(t,k)})),i.forEach((function(t){d(t,R)}))):e.forEach((function(t){d(t)}));var m={detail:{newAppStatuses:p,appsByNewStatus:h,totalAppChanges:e.length,originalEvent:null==n?void 0:n[0],oldUrl:s,newUrl:f,navigationIsCanceled:c}};return l&&H(m.detail,l),m;function d(t,n){var e=J(t);n=n||$t(e),p[e]=n,(h[n]=h[n]||[]).push(e)}}}function en(t,n){return z(t)?tt(t).then((function(t){return n.then((function(){return z(t)?ot(t):t}))})):n.then((function(){return t}))}var rn=!1;function on(t){var n;rn=!0,t&&t.urlRerouteOnly&&(n=t.urlRerouteOnly,wt=n),Et&&nn()}function an(){return rn}Et&&setTimeout((function(){rn||console.warn(j(1,!1))}),5e3);var un={getRawAppData:function(){return[].concat(Gt)},reroute:nn,NOT_LOADED:k,toLoadPromise:gt,toBootstrapPromise:tt,unregisterApplication:Jt};Et&&window.__SINGLE_SPA_DEVTOOLS__&&(window.__SINGLE_SPA_DEVTOOLS__.exposedMethods=un);var cn=e(6639),sn=e(3979),fn={"webservices.rest":"^2.2.0"},ln={featureName:"primary navigation",moduleName:u.e};function pn(){return(0,r.defineConfigSchema)(u.e,h),(0,r.defineExtensionConfigSchema)("link",cn.genericLinkConfigSchema),(0,r.setupOfflineSync)(u.O,[],E),{pages:[{load:(0,r.getAsyncLifecycle)((function(){return Promise.all([e.e(513),e.e(596),e.e(784),e.e(212)]).then(e.bind(e,3212))}),ln),route:function(t){return!t.pathname.startsWith(window.getOpenmrsSpaBase()+"login")},online:!0,offline:!0,order:0},{load:{bootstrap:function(){return Promise.resolve(Pt(window.getOpenmrsSpaBase()+"home"))},mount:function(){return Promise.resolve()},unmount:function(){return Promise.resolve()}},route:function(t){return t.pathname===window.getOpenmrsSpaBase()},order:0}],extensions:[{name:"default-user-panel",slot:"user-panel-slot",order:0,load:(0,r.getAsyncLifecycle)((function(){return Promise.all([e.e(513),e.e(784),e.e(540)]).then(e.bind(e,3540))}),ln),online:!0,offline:!0},{name:"change-locale",slot:"user-panel-slot",order:1,load:(0,r.getAsyncLifecycle)((function(){return Promise.all([e.e(784),e.e(510)]).then(e.bind(e,510))}),ln),online:{postUserProperties:f},offline:{postUserProperties:p}},{name:"link",load:(0,r.getAsyncLifecycle)((function(){return Promise.resolve().then(e.bind(e,6639))}),{featureName:"Link",moduleName:u.e})}]}}},3979:(t,n,e)=>{var r={"./en.json":[3574,574]};function o(t){if(!e.o(r,t))return Promise.resolve().then((()=>{var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=r[t],o=n[0];return e.e(n[1]).then((()=>e(o)))}o.keys=()=>Object.keys(r),o.id=3979,t.exports=o}}]);
1
+ (self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[789],{1602:t=>{var n=function(t){"use strict";var n,e=Object.prototype,r=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,n,e){return Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{c({},"")}catch(t){c=function(t,n,e){return t[n]=e}}function s(t,n,e,r){var o=n&&n.prototype instanceof v?n:v,i=Object.create(o.prototype),a=new L(r||[]);return i._invoke=function(t,n,e){var r=l;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===m){if("throw"===o)throw i;return N()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var u=_(a,e);if(u){if(u===d)continue;return u}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(r===l)throw r=m,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);r=h;var c=f(t,n,e);if("normal"===c.type){if(r=e.done?m:p,c.arg===d)continue;return{value:c.arg,done:e.done}}"throw"===c.type&&(r=m,e.method="throw",e.arg=c.arg)}}}(t,e,a),i}function f(t,n,e){try{return{type:"normal",arg:t.call(n,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var l="suspendedStart",p="suspendedYield",h="executing",m="completed",d={};function v(){}function y(){}function g(){}var w={};c(w,i,(function(){return this}));var E=Object.getPrototypeOf,b=E&&E(E(x([])));b&&b!==e&&r.call(b,i)&&(w=b);var O=g.prototype=v.prototype=Object.create(w);function P(t){["next","throw","return"].forEach((function(n){c(t,n,(function(t){return this._invoke(n,t)}))}))}function T(t,n){function e(o,i,a,u){var c=f(t[o],t,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&r.call(l,"__await")?n.resolve(l.__await).then((function(t){e("next",t,a,u)}),(function(t){e("throw",t,a,u)})):n.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return e("throw",t,a,u)}))}u(c.arg)}var o;this._invoke=function(t,r){function i(){return new n((function(n,o){e(t,r,n,o)}))}return o=o?o.then(i,i):i()}}function _(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,_(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=f(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function S(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function A(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function x(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function e(){for(;++o<t.length;)if(r.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=n,e.done=!0,e};return a.next=a}}return{next:N}}function N(){return{value:n,done:!0}}return y.prototype=g,c(O,"constructor",g),c(g,"constructor",y),y.displayName=c(g,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===y||"GeneratorFunction"===(n.displayName||n.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,c(t,u,"GeneratorFunction")),t.prototype=Object.create(O),t},t.awrap=function(t){return{__await:t}},P(T.prototype),c(T.prototype,a,(function(){return this})),t.AsyncIterator=T,t.async=function(n,e,r,o,i){void 0===i&&(i=Promise);var a=new T(s(n,e,r,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},P(O),c(O,u,"Generator"),c(O,i,(function(){return this})),c(O,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var n=[];for(var e in t)n.push(e);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=x,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(A),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function o(r,o){return u.type="throw",u.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,n){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=n,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&n&&(this.next=n),d},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),A(e),d}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.tryLoc===t){var r=e.completion;if("throw"===r.type){var o=r.arg;A(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:x(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),d}},t}(t.exports);try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},6639:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>u,genericLinkConfigSchema:()=>a});var r=e(6983),o=e.n(r),i=e(7644),a={title:{_default:"New Link",_type:i.Type.String},target:{_default:"#",_type:i.Type.String,_description:"The URL to link to.",_validators:[i.validators.isUrl]}};function u(){var t=(0,i.useConfig)();return o().createElement(i.ConfigurableLink,{to:t.target},t.title)}},1217:(t,n,e)=>{"use strict";e.d(n,{O:()=>r,e:()=>o});var r="user-property-change",o="@openmrs/esm-primary-navigation-app"},789:(t,n,e)=>{"use strict";e.r(n),e.d(n,{backendDependencies:()=>ln,importTranslation:()=>fn,setupOpenMRS:()=>hn,version:()=>sn});var r=e(7644),o=e(1602),i=e.n(o),a=e(8478),u=e(1217);function c(t,n,e,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void e(t)}u.done?n(c):Promise.resolve(c).then(r,o)}function s(t){return function(){var n=this,e=arguments;return new Promise((function(r,o){var i=t.apply(n,e);function a(t){c(i,r,o,a,u,"next",t)}function u(t){c(i,r,o,a,u,"throw",t)}a(void 0)}))}}function f(t,n,e){return l.apply(this,arguments)}function l(){return(l=s(i().mark((function t(n,e,r){var o,u;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,a.getSessionLocation)();case 2:return o=t.sent,u=null==o?void 0:o.uuid,t.next=6,(0,a.openmrsFetch)("/ws/rest/v1/user/".concat(n),{method:"POST",body:{userProperties:e},headers:{"Content-Type":"application/json"},signal:r.signal});case 6:if(!u){t.next=9;break}return t.next=9,(0,a.setSessionLocation)(u,r);case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function p(t,n){return(0,a.queueSynchronizationItemFor)(t,u.O,n,{displayName:"User Language Change"})}var h={logo:{src:{_type:r.Type.String,_default:null,_description:"A path or URL to an image. Defaults to the OpenMRS SVG sprite."},alt:{_type:r.Type.String,_default:"Logo",_description:"Alt text, shown on hover"},name:{_type:r.Type.String,_default:null,_description:"The organization name displayed when image is absent"}},externalRefLinks:{_type:r.Type.Array,_elements:{title:{_type:r.Type.String,_description:"Title of the link"},redirect:{_type:r.Type.String,_description:"Link to redirect to (must be an external link)",_validators:[r.validators.isUrl]}},_default:[],_description:"The external links to be showcased in the app menu"}};function m(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function d(t,n,e,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void e(t)}u.done?n(c):Promise.resolve(c).then(r,o)}function v(t){return function(){var n=this,e=arguments;return new Promise((function(r,o){var i=t.apply(n,e);function a(t){d(i,r,o,a,u,"next",t)}function u(t){d(i,r,o,a,u,"throw",t)}a(void 0)}))}}function y(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,i=[],a=!0,u=!1;try{for(e=e.call(t);!(a=(r=e.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==e.return||e.return()}finally{if(u)throw o}}return i}}(t,n)||w(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||w(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(t,n){if(t){if("string"==typeof t)return m(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?m(t,n):void 0}}function E(t,n){return b.apply(this,arguments)}function b(){return b=v(i().mark((function t(n,e){var r,o,u,c;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==e.index){t.next=10;break}return t.next=4,(0,a.getLoggedInUser)();case 4:return o=t.sent,u=e.items.map((function(t){var n=y(t,2);return n[0],n[1]})),c=(r=Object).assign.apply(r,[{},o.userProperties].concat(g(u))),t.next=9,f(o.uuid,c,e.abort);case 9:(0,a.refetchCurrentUser)();case 10:case"end":return t.stop()}}),t)}))),b.apply(this,arguments)}var O=Object.freeze({__proto__:null,get start(){return on},get ensureJQuerySupport(){return Ut},get setBootstrapMaxTime(){return pt},get setMountMaxTime(){return ht},get setUnmountMaxTime(){return mt},get setUnloadMaxTime(){return dt},get registerApplication(){return Kt},get unregisterApplication(){return Jt},get getMountedApps(){return Wt},get getAppStatus(){return $t},get unloadApplication(){return Vt},get checkActivityFunctions(){return zt},get getAppNames(){return Ft},get pathToActiveWhen(){return Qt},get navigateToUrl(){return Pt},get triggerAppChange(){return tn},get addErrorHandler(){return x},get removeErrorHandler(){return N},get mountRootParcel(){return ut},get NOT_LOADED(){return k},get LOADING_SOURCE_CODE(){return D},get NOT_BOOTSTRAPPED(){return M},get BOOTSTRAPPING(){return I},get NOT_MOUNTED(){return R},get MOUNTING(){return C},get UPDATING(){return B},get LOAD_ERROR(){return F},get MOUNTED(){return G},get UNMOUNTING(){return W},get SKIP_BECAUSE_BROKEN(){return $}});function P(t){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function T(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var _=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e.g?e.g:"undefined"!=typeof self?self:{}).CustomEvent,S=function(){try{var t=new _("cat",{detail:{foo:"bar"}});return"cat"===t.type&&"bar"===t.detail.foo}catch(t){}return!1}()?_:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(t,n){var e=document.createEvent("CustomEvent");return n?e.initCustomEvent(t,n.bubbles,n.cancelable,n.detail):e.initCustomEvent(t,!1,!1,void 0),e}:function(t,n){var e=document.createEventObject();return e.type=t,n?(e.bubbles=Boolean(n.bubbles),e.cancelable=Boolean(n.cancelable),e.detail=n.detail):(e.bubbles=!1,e.cancelable=!1,e.detail=void 0),e},A=[];function L(t,n,e){var r=U(t,n,e);A.length?A.forEach((function(t){return t(r)})):setTimeout((function(){throw r}))}function x(t){if("function"!=typeof t)throw Error(j(28,!1));A.push(t)}function N(t){if("function"!=typeof t)throw Error(j(29,!1));var n=!1;return A=A.filter((function(e){var r=e===t;return n=n||r,!r})),n}function j(t,n){for(var e=arguments.length,r=new Array(e>2?e-2:0),o=2;o<e;o++)r[o-2]=arguments[o];return"single-spa minified message #".concat(t,": ").concat(n?n+" ":"","See https://single-spa.js.org/error/?code=").concat(t).concat(r.length?"&arg=".concat(r.join("&arg=")):"")}function U(t,n,e){var r,o="".concat(q(n)," '").concat(J(n),"' died in status ").concat(n.status,": ");if(t instanceof Error){try{t.message=o+t.message}catch(t){}r=t}else{console.warn(j(30,!1,n.status,J(n)));try{r=Error(o+JSON.stringify(t))}catch(n){r=t}}return r.appOrParcelName=J(n),n.status=e,r}var k="NOT_LOADED",D="LOADING_SOURCE_CODE",M="NOT_BOOTSTRAPPED",I="BOOTSTRAPPING",R="NOT_MOUNTED",C="MOUNTING",G="MOUNTED",B="UPDATING",W="UNMOUNTING",F="LOAD_ERROR",$="SKIP_BECAUSE_BROKEN";function K(t){return t.status===G}function z(t){try{return t.activeWhen(window.location)}catch(n){return L(n,t,$),!1}}function J(t){return t.name}function V(t){return Boolean(t.unmountThisParcel)}function q(t){return V(t)?"parcel":"application"}function H(){for(var t=arguments.length-1;t>0;t--)for(var n in arguments[t])"__proto__"!==n&&(arguments[t-1][n]=arguments[t][n]);return arguments[0]}function Q(t,n){for(var e=0;e<t.length;e++)if(n(t[e]))return t[e];return null}function Y(t){return t&&("function"==typeof t||(n=t,Array.isArray(n)&&!Q(n,(function(t){return"function"!=typeof t}))));var n}function X(t,n){var e=t[n]||[];0===(e=Array.isArray(e)?e:[e]).length&&(e=[function(){return Promise.resolve()}]);var r=q(t),o=J(t);return function(t){return e.reduce((function(e,i,a){return e.then((function(){var e=i(t);return Z(e)?e:Promise.reject(j(15,!1,r,o,n,a))}))}),Promise.resolve())}}function Z(t){return t&&"function"==typeof t.then&&"function"==typeof t.catch}function tt(t,n){return Promise.resolve().then((function(){return t.status!==M?t:(t.status=I,t.bootstrap?vt(t,"bootstrap").then(e).catch((function(e){if(n)throw U(e,t,$);return L(e,t,$),t})):Promise.resolve().then(e))}));function e(){return t.status=R,t}}function nt(t,n){return Promise.resolve().then((function(){if(t.status!==G)return t;t.status=W;var e=Object.keys(t.parcels).map((function(n){return t.parcels[n].unmountThisParcel()}));return Promise.all(e).then(r,(function(e){return r().then((function(){var r=Error(e.message);if(n)throw U(r,t,$);L(r,t,$)}))})).then((function(){return t}));function r(){return vt(t,"unmount").then((function(){t.status=R})).catch((function(e){if(n)throw U(e,t,$);L(e,t,$)}))}}))}var et=!1,rt=!1;function ot(t,n){return Promise.resolve().then((function(){return t.status!==R?t:(et||(window.dispatchEvent(new S("single-spa:before-first-mount")),et=!0),vt(t,"mount").then((function(){return t.status=G,rt||(window.dispatchEvent(new S("single-spa:first-mount")),rt=!0),t})).catch((function(e){return t.status=G,nt(t,!0).then(r,r);function r(){if(n)throw U(e,t,$);return L(e,t,$),t}})))}))}var it=0,at={parcels:{}};function ut(){return ct.apply(at,arguments)}function ct(t,n){var e=this;if(!t||"object"!==P(t)&&"function"!=typeof t)throw Error(j(2,!1));if(t.name&&"string"!=typeof t.name)throw Error(j(3,!1,P(t.name)));if("object"!==P(n))throw Error(j(4,!1,name,P(n)));if(!n.domElement)throw Error(j(5,!1,name));var r,o=it++,i="function"==typeof t,a=i?t:function(){return Promise.resolve(t)},u={id:o,parcels:{},status:i?D:M,customProps:n,parentName:J(e),unmountThisParcel:function(){return p.then((function(){if(u.status!==G)throw Error(j(6,!1,name,u.status));return nt(u,!0)})).then((function(t){return u.parentName&&delete e.parcels[u.id],t})).then((function(t){return s(t),t})).catch((function(t){throw u.status=$,f(t),t}))}};e.parcels[o]=u;var c=a();if(!c||"function"!=typeof c.then)throw Error(j(7,!1));var s,f,l=(c=c.then((function(t){if(!t)throw Error(j(8,!1));var n=t.name||"parcel-".concat(o);if(Object.prototype.hasOwnProperty.call(t,"bootstrap")&&!Y(t.bootstrap))throw Error(j(9,!1,n));if(!Y(t.mount))throw Error(j(10,!1,n));if(!Y(t.unmount))throw Error(j(11,!1,n));if(t.update&&!Y(t.update))throw Error(j(12,!1,n));var e=X(t,"bootstrap"),i=X(t,"mount"),a=X(t,"unmount");u.status=M,u.name=n,u.bootstrap=e,u.mount=i,u.unmount=a,u.timeouts=yt(t.timeouts),t.update&&(u.update=X(t,"update"),r.update=function(t){return u.customProps=t,st(function(t){return Promise.resolve().then((function(){if(t.status!==G)throw Error(j(32,!1,J(t)));return t.status=B,vt(t,"update").then((function(){return t.status=G,t})).catch((function(n){throw U(n,t,$)}))}))}(u))})}))).then((function(){return tt(u,!0)})),p=l.then((function(){return ot(u,!0)})),h=new Promise((function(t,n){s=t,f=n}));return r={mount:function(){return st(Promise.resolve().then((function(){if(u.status!==R)throw Error(j(13,!1,name,u.status));return e.parcels[o]=u,ot(u)})))},unmount:function(){return st(u.unmountThisParcel())},getStatus:function(){return u.status},loadPromise:st(c),bootstrapPromise:st(l),mountPromise:st(p),unmountPromise:st(h)}}function st(t){return t.then((function(){return null}))}function ft(t){var n=J(t),e="function"==typeof t.customProps?t.customProps(n,window.location):t.customProps;("object"!==P(e)||null===e||Array.isArray(e))&&(e={},console.warn(j(40,!1),n,e));var r=H({},e,{name:n,mountParcel:ct.bind(t),singleSpa:O});return V(t)&&(r.unmountSelf=t.unmountThisParcel),r}var lt={bootstrap:{millis:4e3,dieOnTimeout:!1,warningMillis:1e3},mount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unmount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unload:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},update:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3}};function pt(t,n,e){if("number"!=typeof t||t<=0)throw Error(j(16,!1));lt.bootstrap={millis:t,dieOnTimeout:n,warningMillis:e||1e3}}function ht(t,n,e){if("number"!=typeof t||t<=0)throw Error(j(17,!1));lt.mount={millis:t,dieOnTimeout:n,warningMillis:e||1e3}}function mt(t,n,e){if("number"!=typeof t||t<=0)throw Error(j(18,!1));lt.unmount={millis:t,dieOnTimeout:n,warningMillis:e||1e3}}function dt(t,n,e){if("number"!=typeof t||t<=0)throw Error(j(19,!1));lt.unload={millis:t,dieOnTimeout:n,warningMillis:e||1e3}}function vt(t,n){var e=t.timeouts[n],r=e.warningMillis,o=q(t);return new Promise((function(i,a){var u=!1,c=!1;t[n](ft(t)).then((function(t){u=!0,i(t)})).catch((function(t){u=!0,a(t)})),setTimeout((function(){return f(1)}),r),setTimeout((function(){return f(!0)}),e.millis);var s=j(31,!1,n,o,J(t),e.millis);function f(t){if(!u)if(!0===t)c=!0,e.dieOnTimeout?a(Error(s)):console.error(s);else if(!c){var n=t,o=n*r;console.warn(s),o+r<e.millis&&setTimeout((function(){return f(n+1)}),r)}}}))}function yt(t){var n={};for(var e in lt)n[e]=H({},lt[e],t&&t[e]||{});return n}function gt(t){return Promise.resolve().then((function(){return t.loadPromise?t.loadPromise:t.status!==k&&t.status!==F?t:(t.status=D,t.loadPromise=Promise.resolve().then((function(){var r=t.loadApp(ft(t));if(!Z(r))throw e=!0,Error(j(33,!1,J(t)));return r.then((function(e){var r;t.loadErrorTime=null,"object"!==P(n=e)&&(r=34),Object.prototype.hasOwnProperty.call(n,"bootstrap")&&!Y(n.bootstrap)&&(r=35),Y(n.mount)||(r=36),Y(n.unmount)||(r=37);var o=q(n);if(r){var i;try{i=JSON.stringify(n)}catch(t){}return console.error(j(r,!1,o,J(t),i),n),L(void 0,t,$),t}return n.devtools&&n.devtools.overlays&&(t.devtools.overlays=H({},t.devtools.overlays,n.devtools.overlays)),t.status=M,t.bootstrap=X(n,"bootstrap"),t.mount=X(n,"mount"),t.unmount=X(n,"unmount"),t.unload=X(n,"unload"),t.timeouts=yt(n.timeouts),delete t.loadPromise,t}))})).catch((function(n){var r;return delete t.loadPromise,e?r=$:(r=F,t.loadErrorTime=(new Date).getTime()),L(n,t,r),t})));var n,e}))}var wt,Et="undefined"!=typeof window,bt={hashchange:[],popstate:[]},Ot=["hashchange","popstate"];function Pt(t){var n;if("string"==typeof t)n=t;else if(this&&this.href)n=this.href;else{if(!(t&&t.currentTarget&&t.currentTarget.href&&t.preventDefault))throw Error(j(14,!1));n=t.currentTarget.href,t.preventDefault()}var e=Nt(window.location.href),r=Nt(n);0===n.indexOf("#")?window.location.hash=r.hash:e.host!==r.host&&r.host?window.location.href=n:r.pathname===e.pathname&&r.search===e.search?window.location.hash=r.hash:window.history.pushState(null,null,n)}function Tt(t){var n=this;if(t){var e=t[0].type;Ot.indexOf(e)>=0&&bt[e].forEach((function(e){try{e.apply(n,t)}catch(t){setTimeout((function(){throw t}))}}))}}function _t(){nn([],arguments)}function St(t,n){return function(){var e=window.location.href,r=t.apply(this,arguments),o=window.location.href;return wt&&e===o||(an()?window.dispatchEvent(At(window.history.state,n)):nn([])),r}}function At(t,n){var e;try{e=new PopStateEvent("popstate",{state:t})}catch(n){(e=document.createEvent("PopStateEvent")).initPopStateEvent("popstate",!1,!1,t)}return e.singleSpa=!0,e.singleSpaTrigger=n,e}if(Et){window.addEventListener("hashchange",_t),window.addEventListener("popstate",_t);var Lt=window.addEventListener,xt=window.removeEventListener;window.addEventListener=function(t,n){if(!("function"==typeof n&&Ot.indexOf(t)>=0)||Q(bt[t],(function(t){return t===n})))return Lt.apply(this,arguments);bt[t].push(n)},window.removeEventListener=function(t,n){if(!("function"==typeof n&&Ot.indexOf(t)>=0))return xt.apply(this,arguments);bt[t]=bt[t].filter((function(t){return t!==n}))},window.history.pushState=St(window.history.pushState,"pushState"),window.history.replaceState=St(window.history.replaceState,"replaceState"),window.singleSpaNavigate?console.warn(j(41,!1)):window.singleSpaNavigate=Pt}function Nt(t){var n=document.createElement("a");return n.href=t,n}var jt=!1;function Ut(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.jQuery;if(t||window.$&&window.$.fn&&window.$.fn.jquery&&(t=window.$),t&&!jt){var n=t.fn.on,e=t.fn.off;t.fn.on=function(t,e){return kt.call(this,n,window.addEventListener,t,e,arguments)},t.fn.off=function(t,n){return kt.call(this,e,window.removeEventListener,t,n,arguments)},jt=!0}}function kt(t,n,e,r,o){return"string"!=typeof e?t.apply(this,o):(e.split(/\s+/).forEach((function(t){Ot.indexOf(t)>=0&&(n(t,r),e=e.replace(t,""))})),""===e.trim()?this:t.apply(this,o))}var Dt={};function Mt(t){return Promise.resolve().then((function(){var n=Dt[J(t)];if(!n)return t;if(t.status===k)return It(t,n),t;if("UNLOADING"===t.status)return n.promise.then((function(){return t}));if(t.status!==R&&t.status!==F)return t;var e=t.status===F?Promise.resolve():vt(t,"unload");return t.status="UNLOADING",e.then((function(){return It(t,n),t})).catch((function(e){return function(t,n,e){delete Dt[J(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,L(e,t,$),n.reject(e)}(t,n,e),t}))}))}function It(t,n){delete Dt[J(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,t.status=k,n.resolve()}function Rt(t,n,e,r){Dt[J(t)]={app:t,resolve:e,reject:r},Object.defineProperty(Dt[J(t)],"promise",{get:n})}function Ct(t){return Dt[t]}var Gt=[];function Bt(){var t=[],n=[],e=[],r=[],o=(new Date).getTime();return Gt.forEach((function(i){var a=i.status!==$&&z(i);switch(i.status){case F:a&&o-i.loadErrorTime>=200&&e.push(i);break;case k:case D:a&&e.push(i);break;case M:case R:!a&&Ct(J(i))?t.push(i):a&&r.push(i);break;case G:a||n.push(i)}})),{appsToUnload:t,appsToUnmount:n,appsToLoad:e,appsToMount:r}}function Wt(){return Gt.filter(K).map(J)}function Ft(){return Gt.map(J)}function $t(t){var n=Q(Gt,(function(n){return J(n)===t}));return n?n.status:null}function Kt(t,n,e,r){var o=function(t,n,e,r){var o,i={name:null,loadApp:null,activeWhen:null,customProps:null};return"object"===P(t)?(function(t){if(Array.isArray(t)||null===t)throw Error(j(39,!1));var n=["name","app","activeWhen","customProps"],e=Object.keys(t).reduce((function(t,e){return n.indexOf(e)>=0?t:t.concat(e)}),[]);if(0!==e.length)throw Error(j(38,!1,n.join(", "),e.join(", ")));if("string"!=typeof t.name||0===t.name.length)throw Error(j(20,!1));if("object"!==P(t.app)&&"function"!=typeof t.app)throw Error(j(20,!1));var r=function(t){return"string"==typeof t||"function"==typeof t};if(!(r(t.activeWhen)||Array.isArray(t.activeWhen)&&t.activeWhen.every(r)))throw Error(j(24,!1));if(!Ht(t.customProps))throw Error(j(22,!1))}(t),i.name=t.name,i.loadApp=t.app,i.activeWhen=t.activeWhen,i.customProps=t.customProps):(function(t,n,e,r){if("string"!=typeof t||0===t.length)throw Error(j(20,!1));if(!n)throw Error(j(23,!1));if("function"!=typeof e)throw Error(j(24,!1));if(!Ht(r))throw Error(j(22,!1))}(t,n,e,r),i.name=t,i.loadApp=n,i.activeWhen=e,i.customProps=r),i.loadApp="function"!=typeof(o=i.loadApp)?function(){return Promise.resolve(o)}:o,i.customProps=function(t){return t||{}}(i.customProps),i.activeWhen=function(t){var n=Array.isArray(t)?t:[t];return n=n.map((function(t){return"function"==typeof t?t:Qt(t)})),function(t){return n.some((function(n){return n(t)}))}}(i.activeWhen),i}(t,n,e,r);if(-1!==Ft().indexOf(o.name))throw Error(j(21,!1,o.name));Gt.push(H({loadErrorTime:null,status:k,parcels:{},devtools:{overlays:{options:{},selectors:[]}}},o)),Et&&(Ut(),nn())}function zt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location;return Gt.filter((function(n){return n.activeWhen(t)})).map(J)}function Jt(t){if(0===Gt.filter((function(n){return J(n)===t})).length)throw Error(j(25,!1,t));return Vt(t).then((function(){var n=Gt.map(J).indexOf(t);Gt.splice(n,1)}))}function Vt(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{waitForUnmount:!1};if("string"!=typeof t)throw Error(j(26,!1));var e=Q(Gt,(function(n){return J(n)===t}));if(!e)throw Error(j(27,!1,t));var r,o=Ct(J(e));if(n&&n.waitForUnmount){if(o)return o.promise;var i=new Promise((function(t,n){Rt(e,(function(){return i}),t,n)}));return i}return o?(r=o.promise,qt(e,o.resolve,o.reject)):r=new Promise((function(t,n){Rt(e,(function(){return r}),t,n),qt(e,t,n)})),r}function qt(t,n,e){nt(t).then(Mt).then((function(){n(),setTimeout((function(){nn()}))})).catch(e)}function Ht(t){return!t||"function"==typeof t||"object"===P(t)&&null!==t&&!Array.isArray(t)}function Qt(t,n){var e=function(t,n){var e=0,r=!1,o="^";"/"!==t[0]&&(t="/"+t);for(var i=0;i<t.length;i++){var a=t[i];(!r&&":"===a||r&&"/"===a)&&u(i)}return u(t.length),new RegExp(o,"i");function u(i){var a=t.slice(e,i).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");if(o+=r?"[^/]+/?":a,i===t.length)if(r)n&&(o+="$");else{var u=n?"":".*";o="/"===o.charAt(o.length-1)?"".concat(o).concat(u,"$"):"".concat(o,"(/").concat(u,")?(#.*)?$")}r=!r,e=i}}(t,n);return function(t){var n=t.origin;n||(n="".concat(t.protocol,"//").concat(t.host));var r=t.href.replace(n,"").replace(t.search,"").split("?")[0];return e.test(r)}}var Yt=!1,Xt=[],Zt=Et&&window.location.href;function tn(){return nn()}function nn(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;if(Yt)return new Promise((function(t,e){Xt.push({resolve:t,reject:e,eventArguments:n})}));var e,r=Bt(),o=r.appsToUnload,i=r.appsToUnmount,a=r.appsToLoad,u=r.appsToMount,c=!1,s=Zt,f=Zt=window.location.href;return an()?(Yt=!0,e=o.concat(a,i,u),h()):(e=a,p());function l(){c=!0}function p(){return Promise.resolve().then((function(){var t=a.map(gt);return Promise.all(t).then(d).then((function(){return[]})).catch((function(t){throw d(),t}))}))}function h(){return Promise.resolve().then((function(){if(window.dispatchEvent(new S(0===e.length?"single-spa:before-no-app-change":"single-spa:before-app-change",v(!0))),window.dispatchEvent(new S("single-spa:before-routing-event",v(!0,{cancelNavigation:l}))),c)return window.dispatchEvent(new S("single-spa:before-mount-routing-event",v(!0))),m(),void Pt(s);var n=o.map(Mt),r=i.map(nt).map((function(t){return t.then(Mt)})).concat(n),f=Promise.all(r);f.then((function(){window.dispatchEvent(new S("single-spa:before-mount-routing-event",v(!0)))}));var p=a.map((function(t){return gt(t).then((function(t){return en(t,f)}))})),h=u.filter((function(t){return a.indexOf(t)<0})).map((function(t){return en(t,f)}));return f.catch((function(t){throw d(),t})).then((function(){return d(),Promise.all(p.concat(h)).catch((function(n){throw t.forEach((function(t){return t.reject(n)})),n})).then(m)}))}))}function m(){var n=Wt();t.forEach((function(t){return t.resolve(n)}));try{var r=0===e.length?"single-spa:no-app-change":"single-spa:app-change";window.dispatchEvent(new S(r,v())),window.dispatchEvent(new S("single-spa:routing-event",v()))}catch(t){setTimeout((function(){throw t}))}if(Yt=!1,Xt.length>0){var o=Xt;Xt=[],nn(o)}return n}function d(){t.forEach((function(t){Tt(t.eventArguments)})),Tt(n)}function v(){var t,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],l=arguments.length>1?arguments[1]:void 0,p={},h=(T(t={},G,[]),T(t,R,[]),T(t,k,[]),T(t,$,[]),t);r?(a.concat(u).forEach((function(t,n){d(t,G)})),o.forEach((function(t){d(t,k)})),i.forEach((function(t){d(t,R)}))):e.forEach((function(t){d(t)}));var m={detail:{newAppStatuses:p,appsByNewStatus:h,totalAppChanges:e.length,originalEvent:null==n?void 0:n[0],oldUrl:s,newUrl:f,navigationIsCanceled:c}};return l&&H(m.detail,l),m;function d(t,n){var e=J(t);n=n||$t(e),p[e]=n,(h[n]=h[n]||[]).push(e)}}}function en(t,n){return z(t)?tt(t).then((function(t){return n.then((function(){return z(t)?ot(t):t}))})):n.then((function(){return t}))}var rn=!1;function on(t){var n;rn=!0,t&&t.urlRerouteOnly&&(n=t.urlRerouteOnly,wt=n),Et&&nn()}function an(){return rn}Et&&setTimeout((function(){rn||console.warn(j(1,!1))}),5e3);var un={getRawAppData:function(){return[].concat(Gt)},reroute:nn,NOT_LOADED:k,toLoadPromise:gt,toBootstrapPromise:tt,unregisterApplication:Jt};Et&&window.__SINGLE_SPA_DEVTOOLS__&&(window.__SINGLE_SPA_DEVTOOLS__.exposedMethods=un);var cn=e(6639),sn="3.4.1-pre.189",fn=e(3979),ln={"webservices.rest":"^2.2.0"},pn={featureName:"primary navigation",moduleName:u.e};function hn(){return(0,r.defineConfigSchema)(u.e,h),(0,r.defineExtensionConfigSchema)("link",cn.genericLinkConfigSchema),(0,r.setupOfflineSync)(u.O,[],E),{pages:[{load:(0,r.getAsyncLifecycle)((function(){return Promise.all([e.e(513),e.e(596),e.e(784),e.e(212)]).then(e.bind(e,3212))}),pn),route:function(t){return!t.pathname.startsWith(window.getOpenmrsSpaBase()+"login")},online:!0,offline:!0,order:0},{load:{bootstrap:function(){return Promise.resolve(Pt(window.getOpenmrsSpaBase()+"home"))},mount:function(){return Promise.resolve()},unmount:function(){return Promise.resolve()}},route:function(t){return t.pathname===window.getOpenmrsSpaBase()},order:0}],extensions:[{name:"default-user-panel",slot:"user-panel-slot",order:0,load:(0,r.getAsyncLifecycle)((function(){return Promise.all([e.e(513),e.e(784),e.e(540)]).then(e.bind(e,3540))}),pn),online:!0,offline:!0},{name:"change-locale",slot:"user-panel-slot",order:1,load:(0,r.getAsyncLifecycle)((function(){return Promise.all([e.e(784),e.e(510)]).then(e.bind(e,510))}),pn),online:{postUserProperties:f},offline:{postUserProperties:p}},{name:"link",load:(0,r.getAsyncLifecycle)((function(){return Promise.resolve().then(e.bind(e,6639))}),{featureName:"Link",moduleName:u.e})}]}}},3979:(t,n,e)=>{var r={"./en.json":[3574,574]};function o(t){if(!e.o(r,t))return Promise.resolve().then((()=>{var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=r[t],o=n[0];return e.e(n[1]).then((()=>e(o)))}o.keys=()=>Object.keys(r),o.id=3979,t.exports=o}}]);
@@ -1 +1 @@
1
- System.register("@openmrs/esm-primary-navigation-app",[],(function(t,e){var n=void 0;return{execute:function(){t((()=>{function t(e){var n=O[e];if(void 0!==n)return n.exports;var r=O[e]={id:e,loaded:!1,exports:{}};return E[e].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var r,o,i,a,u,s,c,f,l,p,h,d,m,v,y,g,w,E={6585:(t,e,n)=>{(0,n(7968).s)(1)},7968:(t,e,n)=>{const r=n(1577).R;e.s=function(t){if(t||(t=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,t)}},8331:(t,e,n)=>{n(6585)},1577:(t,e)=>{e.R=function(t,e){var n=document.createElement("a");n.href=t;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==e&&0<=i;)"/"===r[--i]&&o++;if(o!==e)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+e+") is greater than the number of directories ("+o+") in the URL path "+t);var a=r.slice(0,i+1);return n.protocol+"//"+n.host+a},Number.isInteger},7972:(t,e,r)=>{var o={app:()=>(n||((self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[789],{1602:t=>{var e=function(t){function e(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}function n(t,e,n,i){var a=e&&e.prototype instanceof o?e:o,u=Object.create(a.prototype),s=new p(i||[]);return u._invoke=function(t,e,n){var o=b;return function(i,a){if(o===T)throw new Error("Generator is already running");if(o===P){if("throw"===i)throw a;return d()}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var s=c(u,n);if(s){if(s===S)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===b)throw o=P,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=T;var f=r(t,e,n);if("normal"===f.type){if(o=n.done?P:_,f.arg===S)continue;return{value:f.arg,done:n.done}}"throw"===f.type&&(o=P,n.method="throw",n.arg=f.arg)}}}(t,n,s),u}function r(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function o(){}function i(){}function a(){}function u(t){["next","throw","return"].forEach((function(n){e(t,n,(function(t){return this._invoke(n,t)}))}))}function s(t,e){function n(o,i,a,u){var s=r(t[o],t,i);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==typeof f&&y.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,u)}))}u(s.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function c(t,e){var n=t.iterator[e.method];if(n===m){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=m,c(t,e),"throw"===e.method))return S;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return S}var o=r(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,S;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=m),e.delegate=null,S):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,S)}function f(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function l(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function p(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(f,this),this.reset(!0)}function h(t){if(t){var e=t[w];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(y.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=m,e.done=!0,e};return r.next=r}}return{next:d}}function d(){return{value:m,done:!0}}var m,v=Object.prototype,y=v.hasOwnProperty,g="function"==typeof Symbol?Symbol:{},w=g.iterator||"@@iterator",E=g.asyncIterator||"@@asyncIterator",O=g.toStringTag||"@@toStringTag";try{e({},"")}catch(O){e=function(t,e,n){return t[e]=n}}t.wrap=n;var b="suspendedStart",_="suspendedYield",T="executing",P="completed",S={},N={};e(N,w,(function(){return this}));var A=Object.getPrototypeOf,L=A&&A(A(h([])));L&&L!==v&&y.call(L,w)&&(N=L);var D=a.prototype=o.prototype=Object.create(N);return i.prototype=a,e(D,"constructor",a),e(a,"constructor",i),i.displayName=e(a,O,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===i||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,a):(t.__proto__=a,e(t,O,"GeneratorFunction")),t.prototype=Object.create(D),t},t.awrap=function(t){return{__await:t}},u(s.prototype),e(s.prototype,E,(function(){return this})),t.AsyncIterator=s,t.async=function(e,r,o,i,a){void 0===a&&(a=Promise);var u=new s(n(e,r,o,i),a);return t.isGeneratorFunction(r)?u:u.next().then((function(t){return t.done?t.value:u.next()}))},u(D),e(D,O,"Generator"),e(D,w,(function(){return this})),e(D,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=h,p.prototype={constructor:p,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=m,this.done=!1,this.delegate=null,this.method="next",this.arg=m,this.tryEntries.forEach(l),!t)for(var e in this)"t"===e.charAt(0)&&y.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=m)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){function e(e,r){return i.type="throw",i.arg=t,n.next=e,r&&(n.method="next",n.arg=m),!!r}if(this.done)throw t;for(var n=this,r=this.tryEntries.length-1;0<=r;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var a=y.call(o,"catchLoc"),u=y.call(o,"finallyLoc");if(a&&u){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(t,e){for(var n,r=this.tryEntries.length-1;0<=r;--r)if((n=this.tryEntries[r]).tryLoc<=this.prev&&y.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,S):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),S},finish:function(t){for(var e,n=this.tryEntries.length-1;0<=n;--n)if((e=this.tryEntries[n]).finallyLoc===t)return this.complete(e.completion,e.afterLoc),l(e),S},catch:function(t){for(var e,n=this.tryEntries.length-1;0<=n;--n)if((e=this.tryEntries[n]).tryLoc===t){var r=e.completion;if("throw"===r.type){var o=r.arg;l(e)}return o}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:h(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=m),S}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},6639:(t,e,n)=>{function r(){var t=(0,a.useConfig)();return i().createElement(a.ConfigurableLink,{to:t.target},t.title)}n.r(e),n.d(e,{default:()=>r,genericLinkConfigSchema:()=>u});var o=n(6983),i=n.n(o),a=n(7644),u={title:{_default:"New Link",_type:a.Type.String},target:{_default:"#",_type:a.Type.String,_description:"The URL to link to.",_validators:[a.validators.isUrl]}}},1217:(t,e,n)=>{n.d(e,{O:()=>r,e:()=>o});var r="user-property-change",o="@openmrs/esm-primary-navigation-app"},789:(t,e,n)=>{function r(t,e,n,r,o,i,a){try{var u=t[i](a),s=u.value}catch(u){return void n(u)}u.done?e(s):Promise.resolve(s).then(r,o)}function o(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){function a(t){r(s,o,i,a,u,"next",t)}function u(t){r(s,o,i,a,u,"throw",t)}var s=t.apply(e,n);a(void 0)}))}}function i(){return a.apply(this,arguments)}function a(){return(a=o(Pt().mark((function t(e,n,r){var o,i;return Pt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,St.getSessionLocation)();case 2:return o=t.sent,i=null==o?void 0:o.uuid,t.next=6,(0,St.openmrsFetch)("/ws/rest/v1/user/".concat(e),{method:"POST",body:{userProperties:n},headers:{"Content-Type":"application/json"},signal:r.signal});case 6:if(!i){t.next=9;break}return t.next=9,(0,St.setSessionLocation)(i,r);case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function u(t,e){return(0,St.queueSynchronizationItemFor)(t,Nt.O,e,{displayName:"User Language Change"})}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e,n,r,o,i,a){try{var u=t[i](a),s=u.value}catch(u){return void n(u)}u.done?e(s):Promise.resolve(s).then(r,o)}function f(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){function i(t){c(u,r,o,i,a,"next",t)}function a(t){c(u,r,o,i,a,"throw",t)}var u=t.apply(e,n);i(void 0)}))}}function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t,e)||h(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||h(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}function d(){return m.apply(this,arguments)}function m(){return m=f(Pt().mark((function t(e,n){var r,o,a,u;return Pt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==n.index){t.next=10;break}return t.next=4,(0,St.getLoggedInUser)();case 4:return o=t.sent,a=n.items.map((function(t){var e=l(t,2);return e[0],e[1]})),u=(r=Object).assign.apply(r,[{},o.userProperties].concat(p(a))),t.next=9,i(o.uuid,u,n.abort);case 9:(0,St.refetchCurrentUser)();case 10:case"end":return t.stop()}}),t)}))),m.apply(this,arguments)}function v(t){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(t,e,n){var r=b(t,e,n);xt.length?xt.forEach((function(t){return t(r)})):setTimeout((function(){throw r}))}function w(t){if("function"!=typeof t)throw Error(O(28,!1));xt.push(t)}function E(t){if("function"!=typeof t)throw Error(O(29,!1));var e=!1;return xt=xt.filter((function(n){var r=n===t;return e=e||r,!r})),e}function O(t,e){for(var n=arguments.length,r=Array(2<n?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return"single-spa minified message #".concat(t,": ").concat(e?e+" ":"","See https://single-spa.js.org/error/?code=").concat(t).concat(r.length?"&arg=".concat(r.join("&arg=")):"")}function b(t,e,n){var r,o="".concat(N(e)," '").concat(P(e),"' died in status ").concat(e.status,": ");if(t instanceof Error){try{t.message=o+t.message}catch(t){}r=t}else{console.warn(O(30,!1,e.status,P(e)));try{r=Error(o+JSON.stringify(t))}catch(e){r=t}}return r.appOrParcelName=P(e),e.status=n,r}function _(t){return"MOUNTED"===t.status}function T(t){try{return t.activeWhen(window.location)}catch(e){return g(e,t,"SKIP_BECAUSE_BROKEN"),!1}}function P(t){return t.name}function S(t){return!!t.unmountThisParcel}function N(t){return S(t)?"parcel":"application"}function A(){for(var t=arguments.length-1;0<t;t--)for(var e in arguments[t])"__proto__"!=e&&(arguments[t-1][e]=arguments[t][e]);return arguments[0]}function L(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return t[n];return null}function D(t){return t&&("function"==typeof t||(e=t,Array.isArray(e)&&!L(e,(function(t){return"function"!=typeof t}))));var e}function U(t,e){var n=t[e]||[];0===(n=Array.isArray(n)?n:[n]).length&&(n=[function(){return Promise.resolve()}]);var r=N(t),o=P(t);return function(t){return n.reduce((function(n,i,a){return n.then((function(){var n=i(t);return x(n)?n:Promise.reject(O(15,!1,r,o,e,a))}))}),Promise.resolve())}}function x(t){return t&&"function"==typeof t.then&&"function"==typeof t.catch}function j(t,e){function n(){return t.status="NOT_MOUNTED",t}return Promise.resolve().then((function(){return"NOT_BOOTSTRAPPED"===t.status?(t.status="BOOTSTRAPPING",t.bootstrap?F(t,"bootstrap").then(n).catch((function(n){if(e)throw b(n,t,"SKIP_BECAUSE_BROKEN");return g(n,t,"SKIP_BECAUSE_BROKEN"),t})):Promise.resolve().then(n)):t}))}function R(t,e){return Promise.resolve().then((function(){function n(){return F(t,"unmount").then((function(){t.status="NOT_MOUNTED"})).catch((function(n){if(e)throw b(n,t,"SKIP_BECAUSE_BROKEN");g(n,t,"SKIP_BECAUSE_BROKEN")}))}if("MOUNTED"!==t.status)return t;t.status="UNMOUNTING";var r=Object.keys(t.parcels).map((function(e){return t.parcels[e].unmountThisParcel()}));return Promise.all(r).then(n,(function(r){return n().then((function(){var n=Error(r.message);if(e)throw b(n,t,"SKIP_BECAUSE_BROKEN");g(n,t,"SKIP_BECAUSE_BROKEN")}))})).then((function(){return t}))}))}function k(t,e){return Promise.resolve().then((function(){return"NOT_MOUNTED"===t.status?(Rt||(window.dispatchEvent(new Ut("single-spa:before-first-mount")),Rt=!0),F(t,"mount").then((function(){return t.status="MOUNTED",kt||(window.dispatchEvent(new Ut("single-spa:first-mount")),kt=!0),t})).catch((function(n){function r(){if(e)throw b(n,t,"SKIP_BECAUSE_BROKEN");return g(n,t,"SKIP_BECAUSE_BROKEN"),t}return t.status="MOUNTED",R(t,!0).then(r,r)}))):t}))}function C(){return M.apply(Mt,arguments)}function M(t,e){var n=this;if(!t||"object"!==v(t)&&"function"!=typeof t)throw Error(O(2,!1));if(t.name&&"string"!=typeof t.name)throw Error(O(3,!1,v(t.name)));if("object"!==v(e))throw Error(O(4,!1,name,v(e)));if(!e.domElement)throw Error(O(5,!1,name));var r,o=Ct++,i="function"==typeof t,a=i?t:function(){return Promise.resolve(t)},u={id:o,parcels:{},status:i?"LOADING_SOURCE_CODE":"NOT_BOOTSTRAPPED",customProps:e,parentName:P(n),unmountThisParcel:function(){return p.then((function(){if("MOUNTED"!==u.status)throw Error(O(6,!1,name,u.status));return R(u,!0)})).then((function(t){return u.parentName&&delete n.parcels[u.id],t})).then((function(t){return c(t),t})).catch((function(t){throw u.status="SKIP_BECAUSE_BROKEN",f(t),t}))}};n.parcels[o]=u;var s=a();if(!s||"function"!=typeof s.then)throw Error(O(7,!1));var c,f,l=(s=s.then((function(t){if(!t)throw Error(O(8,!1));var e=t.name||"parcel-".concat(o);if(Object.prototype.hasOwnProperty.call(t,"bootstrap")&&!D(t.bootstrap))throw Error(O(9,!1,e));if(!D(t.mount))throw Error(O(10,!1,e));if(!D(t.unmount))throw Error(O(11,!1,e));if(t.update&&!D(t.update))throw Error(O(12,!1,e));var n=U(t,"bootstrap"),i=U(t,"mount"),a=U(t,"unmount");u.status="NOT_BOOTSTRAPPED",u.name=e,u.bootstrap=n,u.mount=i,u.unmount=a,u.timeouts=z(t.timeouts),t.update&&(u.update=U(t,"update"),r.update=function(t){return u.customProps=t,B(function(t){return Promise.resolve().then((function(){if("MOUNTED"!==t.status)throw Error(O(32,!1,P(t)));return t.status="UPDATING",F(t,"update").then((function(){return t.status="MOUNTED",t})).catch((function(e){throw b(e,t,"SKIP_BECAUSE_BROKEN")}))}))}(u))})}))).then((function(){return j(u,!0)})),p=l.then((function(){return k(u,!0)})),h=new Promise((function(t,e){c=t,f=e}));return r={mount:function(){return B(Promise.resolve().then((function(){if("NOT_MOUNTED"!==u.status)throw Error(O(13,!1,name,u.status));return n.parcels[o]=u,k(u)})))},unmount:function(){return B(u.unmountThisParcel())},getStatus:function(){return u.status},loadPromise:B(s),bootstrapPromise:B(l),mountPromise:B(p),unmountPromise:B(h)}}function B(t){return t.then((function(){return null}))}function I(t){var e=P(t),n="function"==typeof t.customProps?t.customProps(e,window.location):t.customProps;("object"!==v(n)||null===n||Array.isArray(n))&&(n={},console.warn(O(40,!1),e,n));var r=A({},n,{name:e,mountParcel:M.bind(t),singleSpa:Lt});return S(t)&&(r.unmountSelf=t.unmountThisParcel),r}function K(t,e,n){if("number"!=typeof t||0>=t)throw Error(O(16,!1));Bt.bootstrap={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function G(t,e,n){if("number"!=typeof t||0>=t)throw Error(O(17,!1));Bt.mount={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function W(t,e,n){if("number"!=typeof t||0>=t)throw Error(O(18,!1));Bt.unmount={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function $(t,e,n){if("number"!=typeof t||0>=t)throw Error(O(19,!1));Bt.unload={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function F(t,e){var n=t.timeouts[e],r=n.warningMillis,o=N(t);return new Promise((function(i,a){function u(t){if(!s)if(!0===t)c=!0,n.dieOnTimeout?a(Error(f)):console.error(f);else if(!c){var e=t;console.warn(f),e*r+r<n.millis&&setTimeout((function(){return u(e+1)}),r)}}var s=!1,c=!1;t[e](I(t)).then((function(t){s=!0,i(t)})).catch((function(t){s=!0,a(t)})),setTimeout((function(){return u(1)}),r),setTimeout((function(){return u(!0)}),n.millis);var f=O(31,!1,e,o,P(t),n.millis)}))}function z(t){var e={};for(var n in Bt)e[n]=A({},Bt[n],t&&t[n]||{});return e}function q(t){return Promise.resolve().then((function(){return t.loadPromise?t.loadPromise:"NOT_LOADED"!==t.status&&"LOAD_ERROR"!==t.status?t:(t.status="LOADING_SOURCE_CODE",t.loadPromise=Promise.resolve().then((function(){var r=t.loadApp(I(t));if(!x(r))throw n=!0,Error(O(33,!1,P(t)));return r.then((function(n){var r;t.loadErrorTime=null,"object"!==v(e=n)&&(r=34),Object.prototype.hasOwnProperty.call(e,"bootstrap")&&!D(e.bootstrap)&&(r=35),D(e.mount)||(r=36),D(e.unmount)||(r=37);var o=N(e);if(r){var i;try{i=JSON.stringify(e)}catch(t){}return console.error(O(r,!1,o,P(t),i),e),g(void 0,t,"SKIP_BECAUSE_BROKEN"),t}return e.devtools&&e.devtools.overlays&&(t.devtools.overlays=A({},t.devtools.overlays,e.devtools.overlays)),t.status="NOT_BOOTSTRAPPED",t.bootstrap=U(e,"bootstrap"),t.mount=U(e,"mount"),t.unmount=U(e,"unmount"),t.unload=U(e,"unload"),t.timeouts=z(e.timeouts),delete t.loadPromise,t}))})).catch((function(e){var r;return delete t.loadPromise,n?r="SKIP_BECAUSE_BROKEN":(r="LOAD_ERROR",t.loadErrorTime=(new Date).getTime()),g(e,t,r),t})));var e,n}))}function J(t){var e;if("string"==typeof t)e=t;else if(this&&this.href)e=this.href;else{if(!(t&&t.currentTarget&&t.currentTarget.href&&t.preventDefault))throw Error(O(14,!1));e=t.currentTarget.href,t.preventDefault()}var n=X(window.location.href),r=X(e);0===e.indexOf("#")?window.location.hash=r.hash:n.host!==r.host&&r.host?window.location.href=e:r.pathname===n.pathname&&r.search===n.search?window.location.hash=r.hash:window.history.pushState(null,null,e)}function V(t){var e=this;if(t){var n=t[0].type;0<=Gt.indexOf(n)&&Kt[n].forEach((function(n){try{n.apply(e,t)}catch(t){setTimeout((function(){throw t}))}}))}}function H(){yt([],arguments)}function Q(t,e){return function(){var n=window.location.href,r=t.apply(this,arguments),o=window.location.href;return bt&&n===o||(Et()?window.dispatchEvent(Y(window.history.state,e)):yt([])),r}}function Y(t,e){var n;try{n=new PopStateEvent("popstate",{state:t})}catch(e){(n=document.createEvent("PopStateEvent")).initPopStateEvent("popstate",!1,!1,t)}return n.singleSpa=!0,n.singleSpaTrigger=e,n}function X(t){var e=document.createElement("a");return e.href=t,e}function Z(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window.jQuery;if(t||window.$&&window.$.fn&&window.$.fn.jquery&&(t=window.$),t&&!Ft){var e=t.fn.on,n=t.fn.off;t.fn.on=function(t,n){return tt.call(this,e,window.addEventListener,t,n,arguments)},t.fn.off=function(t,e){return tt.call(this,n,window.removeEventListener,t,e,arguments)},Ft=!0}}function tt(t,e,n,r,o){return"string"==typeof n?(n.split(/\s+/).forEach((function(t){0<=Gt.indexOf(t)&&(e(t,r),n=n.replace(t,""))})),""===n.trim()?this:t.apply(this,o)):t.apply(this,o)}function et(t){return Promise.resolve().then((function(){var e=zt[P(t)];if(!e)return t;if("NOT_LOADED"===t.status)return nt(t,e),t;if("UNLOADING"===t.status)return e.promise.then((function(){return t}));if("NOT_MOUNTED"!==t.status&&"LOAD_ERROR"!==t.status)return t;var n="LOAD_ERROR"===t.status?Promise.resolve():F(t,"unload");return t.status="UNLOADING",n.then((function(){return nt(t,e),t})).catch((function(n){return function(t,e,n){delete zt[P(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,g(n,t,"SKIP_BECAUSE_BROKEN"),e.reject(n)}(t,e,n),t}))}))}function nt(t,e){delete zt[P(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,t.status="NOT_LOADED",e.resolve()}function rt(t,e,n,r){zt[P(t)]={app:t,resolve:n,reject:r},Object.defineProperty(zt[P(t)],"promise",{get:e})}function ot(t){return zt[t]}function it(){var t=[],e=[],n=[],r=[],o=(new Date).getTime();return qt.forEach((function(i){var a="SKIP_BECAUSE_BROKEN"!==i.status&&T(i);switch(i.status){case"LOAD_ERROR":a&&200<=o-i.loadErrorTime&&n.push(i);break;case"NOT_LOADED":case"LOADING_SOURCE_CODE":a&&n.push(i);break;case"NOT_BOOTSTRAPPED":case"NOT_MOUNTED":!a&&ot(P(i))?t.push(i):a&&r.push(i);break;case"MOUNTED":a||e.push(i)}})),{appsToUnload:t,appsToUnmount:e,appsToLoad:n,appsToMount:r}}function at(){return qt.filter(_).map(P)}function ut(){return qt.map(P)}function st(t){var e=L(qt,(function(e){return P(e)===t}));return e?e.status:null}function ct(t,e,n,r){var o=function(t,e,n,r){var o,i={name:null,loadApp:null,activeWhen:null,customProps:null};return"object"===v(t)?(function(t){if(Array.isArray(t)||null===t)throw Error(O(39,!1));var e=["name","app","activeWhen","customProps"],n=Object.keys(t).reduce((function(t,n){return 0<=e.indexOf(n)?t:t.concat(n)}),[]);if(0!==n.length)throw Error(O(38,!1,e.join(", "),n.join(", ")));if("string"!=typeof t.name||0===t.name.length)throw Error(O(20,!1));if("object"!==v(t.app)&&"function"!=typeof t.app)throw Error(O(20,!1));var r=function(t){return"string"==typeof t||"function"==typeof t};if(!(r(t.activeWhen)||Array.isArray(t.activeWhen)&&t.activeWhen.every(r)))throw Error(O(24,!1));if(!dt(t.customProps))throw Error(O(22,!1))}(t),i.name=t.name,i.loadApp=t.app,i.activeWhen=t.activeWhen,i.customProps=t.customProps):(function(t,e,n,r){if("string"!=typeof t||0===t.length)throw Error(O(20,!1));if(!e)throw Error(O(23,!1));if("function"!=typeof n)throw Error(O(24,!1));if(!dt(r))throw Error(O(22,!1))}(t,e,n,r),i.name=t,i.loadApp=e,i.activeWhen=n,i.customProps=r),i.loadApp="function"==typeof(o=i.loadApp)?o:function(){return Promise.resolve(o)},i.customProps=function(t){return t||{}}(i.customProps),i.activeWhen=function(t){var e=Array.isArray(t)?t:[t];return e=e.map((function(t){return"function"==typeof t?t:mt(t)})),function(t){return e.some((function(e){return e(t)}))}}(i.activeWhen),i}(t,e,n,r);if(-1!==ut().indexOf(o.name))throw Error(O(21,!1,o.name));qt.push(A({loadErrorTime:null,status:"NOT_LOADED",parcels:{},devtools:{overlays:{options:{},selectors:[]}}},o)),It&&(Z(),yt())}function ft(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window.location;return qt.filter((function(e){return e.activeWhen(t)})).map(P)}function lt(t){if(0===qt.filter((function(e){return P(e)===t})).length)throw Error(O(25,!1,t));return pt(t).then((function(){var e=qt.map(P).indexOf(t);qt.splice(e,1)}))}function pt(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{waitForUnmount:!1};if("string"!=typeof t)throw Error(O(26,!1));var n=L(qt,(function(e){return P(e)===t}));if(!n)throw Error(O(27,!1,t));var r,o=ot(P(n));if(e&&e.waitForUnmount){if(o)return o.promise;var i=new Promise((function(t,e){rt(n,(function(){return i}),t,e)}));return i}return o?(r=o.promise,ht(n,o.resolve,o.reject)):r=new Promise((function(t,e){rt(n,(function(){return r}),t,e),ht(n,t,e)})),r}function ht(t,e,n){R(t).then(et).then((function(){e(),setTimeout((function(){yt()}))})).catch(n)}function dt(t){return!t||"function"==typeof t||"object"===v(t)&&null!==t&&!Array.isArray(t)}function mt(t,e){var n=function(t,e){function n(n){var a=t.slice(r,n).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");if(i+=o?"[^/]+/?":a,n===t.length)if(o)e&&(i+="$");else{var u=e?"":".*";i="/"===i.charAt(i.length-1)?"".concat(i).concat(u,"$"):"".concat(i,"(/").concat(u,")?(#.*)?$")}o=!o,r=n}var r=0,o=!1,i="^";"/"!==t[0]&&(t="/"+t);for(var a,u=0;u<t.length;u++)a=t[u],(!o&&":"===a||o&&"/"===a)&&n(u);return n(t.length),new RegExp(i,"i")}(t,e);return function(t){var e=t.origin;e||(e="".concat(t.protocol,"//").concat(t.host));var r=t.href.replace(e,"").replace(t.search,"").split("?")[0];return n.test(r)}}function vt(){return yt()}function yt(){function t(){p=!0}function e(){var t=at();o.forEach((function(e){return e.resolve(t)}));try{var e=0===a.length?"single-spa:no-app-change":"single-spa:app-change";window.dispatchEvent(new Ut(e,r())),window.dispatchEvent(new Ut("single-spa:routing-event",r()))}catch(t){setTimeout((function(){throw t}))}if(Jt=!1,0<Vt.length){var n=Vt;Vt=[],yt(n)}return t}function n(){o.forEach((function(t){V(t.eventArguments)})),V(i)}function r(){function t(t,e){var n=P(t);e=e||st(n),o[n]=e,(u[e]=u[e]||[]).push(n)}var e,n=0<arguments.length&&void 0!==arguments[0]&&arguments[0],r=1<arguments.length?arguments[1]:void 0,o={},u=(y(e={},"MOUNTED",[]),y(e,"NOT_MOUNTED",[]),y(e,"NOT_LOADED",[]),y(e,"SKIP_BECAUSE_BROKEN",[]),e);n?(f.concat(l).forEach((function(e){t(e,"MOUNTED")})),s.forEach((function(e){t(e,"NOT_LOADED")})),c.forEach((function(e){t(e,"NOT_MOUNTED")}))):a.forEach((function(e){t(e)}));var m={detail:{newAppStatuses:o,appsByNewStatus:u,totalAppChanges:a.length,originalEvent:null==i?void 0:i[0],oldUrl:h,newUrl:d,navigationIsCanceled:p}};return r&&A(m.detail,r),m}var o=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],i=1<arguments.length?arguments[1]:void 0;if(Jt)return new Promise((function(t,e){Vt.push({resolve:t,reject:e,eventArguments:i})}));var a,u=it(),s=u.appsToUnload,c=u.appsToUnmount,f=u.appsToLoad,l=u.appsToMount,p=!1,h=Ht,d=Ht=window.location.href;return Et()?(Jt=!0,a=s.concat(f,c,l),Promise.resolve().then((function(){if(window.dispatchEvent(new Ut(0===a.length?"single-spa:before-no-app-change":"single-spa:before-app-change",r(!0))),window.dispatchEvent(new Ut("single-spa:before-routing-event",r(!0,{cancelNavigation:t}))),p)return window.dispatchEvent(new Ut("single-spa:before-mount-routing-event",r(!0))),e(),void J(h);var i=s.map(et),u=c.map(R).map((function(t){return t.then(et)})).concat(i),d=Promise.all(u);d.then((function(){window.dispatchEvent(new Ut("single-spa:before-mount-routing-event",r(!0)))}));var m=f.map((function(t){return q(t).then((function(t){return gt(t,d)}))})),v=l.filter((function(t){return 0>f.indexOf(t)})).map((function(t){return gt(t,d)}));return d.catch((function(t){throw n(),t})).then((function(){return n(),Promise.all(m.concat(v)).catch((function(t){throw o.forEach((function(e){return e.reject(t)})),t})).then(e)}))}))):(a=f,Promise.resolve().then((function(){var t=f.map(q);return Promise.all(t).then(n).then((function(){return[]})).catch((function(t){throw n(),t}))})))}function gt(t,e){return T(t)?j(t).then((function(t){return e.then((function(){return T(t)?k(t):t}))})):e.then((function(){return t}))}function wt(t){var e;Qt=!0,t&&t.urlRerouteOnly&&(e=t.urlRerouteOnly,bt=e),It&&yt()}function Et(){return Qt}function Ot(){return(0,_t.defineConfigSchema)(Nt.e,At),(0,_t.defineExtensionConfigSchema)("link",Yt.genericLinkConfigSchema),(0,_t.setupOfflineSync)(Nt.O,[],d),{pages:[{load:(0,_t.getAsyncLifecycle)((function(){return Promise.all([n.e(513),n.e(596),n.e(784),n.e(212)]).then(n.bind(n,3212))}),te),route:function(t){return!t.pathname.startsWith(window.getOpenmrsSpaBase()+"login")},online:!0,offline:!0,order:0},{load:{bootstrap:function(){return Promise.resolve(J(window.getOpenmrsSpaBase()+"home"))},mount:function(){return Promise.resolve()},unmount:function(){return Promise.resolve()}},route:function(t){return t.pathname===window.getOpenmrsSpaBase()},order:0}],extensions:[{name:"default-user-panel",slot:"user-panel-slot",order:0,load:(0,_t.getAsyncLifecycle)((function(){return Promise.all([n.e(513),n.e(784),n.e(540)]).then(n.bind(n,3540))}),te),online:!0,offline:!0},{name:"change-locale",slot:"user-panel-slot",order:1,load:(0,_t.getAsyncLifecycle)((function(){return Promise.all([n.e(784),n.e(510)]).then(n.bind(n,510))}),te),online:{postUserProperties:i},offline:{postUserProperties:u}},{name:"link",load:(0,_t.getAsyncLifecycle)((function(){return Promise.resolve().then(n.bind(n,6639))}),{featureName:"Link",moduleName:Nt.e})}]}}n.r(e),n.d(e,{backendDependencies:()=>Zt,importTranslation:()=>Xt,setupOpenMRS:()=>Ot,assets:()=>["1.js","25.js","openmrs-esm-primary-navigation-app.js","212.js","216.js","322.js","393.js","510.js","513.js","540.js","574.js","596.js","735.js","743.js","788.js","860.js","889.js"]});var bt,_t=n(7644),Tt=n(1602),Pt=n.n(Tt),St=n(8478),Nt=n(1217),At={logo:{src:{_type:_t.Type.String,_default:null,_description:"A path or URL to an image. Defaults to the OpenMRS SVG sprite."},alt:{_type:_t.Type.String,_default:"Logo",_description:"Alt text, shown on hover"},name:{_type:_t.Type.String,_default:null,_description:"The organization name displayed when image is absent"}},externalRefLinks:{_type:_t.Type.Array,_elements:{title:{_type:_t.Type.String,_description:"Title of the link"},redirect:{_type:_t.Type.String,_description:"Link to redirect to (must be an external link)",_validators:[_t.validators.isUrl]}},_default:[],_description:"The external links to be showcased in the app menu"}},Lt=Object.freeze({__proto__:null,get start(){return wt},get ensureJQuerySupport(){return Z},get setBootstrapMaxTime(){return K},get setMountMaxTime(){return G},get setUnmountMaxTime(){return W},get setUnloadMaxTime(){return $},get registerApplication(){return ct},get unregisterApplication(){return lt},get getMountedApps(){return at},get getAppStatus(){return st},get unloadApplication(){return pt},get checkActivityFunctions(){return ft},get getAppNames(){return ut},get pathToActiveWhen(){return mt},get navigateToUrl(){return J},get triggerAppChange(){return vt},get addErrorHandler(){return w},get removeErrorHandler(){return E},get mountRootParcel(){return C},get NOT_LOADED(){return jt},get LOADING_SOURCE_CODE(){return"LOADING_SOURCE_CODE"},get NOT_BOOTSTRAPPED(){return"NOT_BOOTSTRAPPED"},get BOOTSTRAPPING(){return"BOOTSTRAPPING"},get NOT_MOUNTED(){return"NOT_MOUNTED"},get MOUNTING(){return"MOUNTING"},get UPDATING(){return"UPDATING"},get LOAD_ERROR(){return"LOAD_ERROR"},get MOUNTED(){return"MOUNTED"},get UNMOUNTING(){return"UNMOUNTING"},get SKIP_BECAUSE_BROKEN(){return"SKIP_BECAUSE_BROKEN"}}),Dt=("undefined"==typeof globalThis?"undefined"==typeof window?void 0===n.g?"undefined"==typeof self?{}:self:n.g:window:globalThis).CustomEvent,Ut=function(){try{var t=new Dt("cat",{detail:{foo:"bar"}});return"cat"===t.type&&"bar"===t.detail.foo}catch(t){}return!1}()?Dt:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(t,e){var n=document.createEvent("CustomEvent");return e?n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail):n.initCustomEvent(t,!1,!1,void 0),n}:function(t,e){var n=document.createEventObject();return n.type=t,e?(n.bubbles=!!e.bubbles,n.cancelable=!!e.cancelable,n.detail=e.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n},xt=[],jt="NOT_LOADED",Rt=!1,kt=!1,Ct=0,Mt={parcels:{}},Bt={bootstrap:{millis:4e3,dieOnTimeout:!1,warningMillis:1e3},mount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unmount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unload:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},update:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3}},It="undefined"!=typeof window,Kt={hashchange:[],popstate:[]},Gt=["hashchange","popstate"];if(It){window.addEventListener("hashchange",H),window.addEventListener("popstate",H);var Wt=window.addEventListener,$t=window.removeEventListener;window.addEventListener=function(t,e){return"function"==typeof e&&0<=Gt.indexOf(t)&&!L(Kt[t],(function(t){return t===e}))?void Kt[t].push(e):Wt.apply(this,arguments)},window.removeEventListener=function(t,e){return"function"==typeof e&&0<=Gt.indexOf(t)?void(Kt[t]=Kt[t].filter((function(t){return t!==e}))):$t.apply(this,arguments)},window.history.pushState=Q(window.history.pushState,"pushState"),window.history.replaceState=Q(window.history.replaceState,"replaceState"),window.singleSpaNavigate?console.warn(O(41,!1)):window.singleSpaNavigate=J}var Ft=!1,zt={},qt=[],Jt=!1,Vt=[],Ht=It&&window.location.href,Qt=!1;It&&setTimeout((function(){Qt||console.warn(O(1,!1))}),5e3),It&&window.__SINGLE_SPA_DEVTOOLS__&&(window.__SINGLE_SPA_DEVTOOLS__.exposedMethods={getRawAppData:function(){return[].concat(qt)},reroute:yt,NOT_LOADED:jt,toLoadPromise:q,toBootstrapPromise:j,unregisterApplication:lt});var Yt=n(6639),Xt=n(3979),Zt={"webservices.rest":"^2.2.0"},te={featureName:"primary navigation",moduleName:Nt.e}},3979:(t,e,n)=>{function r(t){if(!n.o(o,t))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=o[t],r=e[0];return n.e(e[1]).then((()=>n(r)))}var o={"./en.json":[3574,574]};r.keys=()=>Object.keys(o),r.id=3979,t.exports=r}}]),n=Promise.all([r.e(983),r.e(789)]).then((()=>()=>r(789)))),n)},i=(t,e)=>(r.R=e,e=r.o(o,t)?o[t]():Promise.resolve().then((()=>{throw new Error('Module "'+t+'" does not exist in container.')})),r.R=void 0,e),a=(t,e)=>{if(r.S){var n=r.S.default;if(n&&n!==t)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return r.S.default=t,r.I("default",e)}};r.d(e,{get:()=>i,init:()=>a})}},O={};return t.m=E,t.c=O,t.y=e,t.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},t.d=(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},t.f={},t.e=e=>Promise.all(Object.keys(t.f).reduce(((n,r)=>(t.f[r](e,n),n)),[])),t.u=t=>t+".js",t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r={},o="@openmrs/esm-primary-navigation-app:",t.l=(e,n,i)=>{if(r[e])r[e].push(n);else{var a,u;if(void 0!==i)for(var s,c=document.getElementsByTagName("script"),f=0;f<c.length;f++)if((s=c[f]).getAttribute("src")==e||s.getAttribute("data-webpack")==o+i){a=s;break}a||(u=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,t.nc&&a.setAttribute("nonce",t.nc),a.setAttribute("data-webpack",o+i),a.src=e),r[e]=[n];var l=(t,n)=>{a.onerror=a.onload=null,clearTimeout(p);var o=r[e];if(delete r[e],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((t=>t(n))),t)return t(n)},p=setTimeout(l.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=l.bind(null,a.onerror),a.onload=l.bind(null,a.onload),u&&document.head.appendChild(a)}},t.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},t.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{t.S={};var e={},n={};t.I=(r,o)=>{o||(o=[]);var i=n[r];if(i||(i=n[r]={}),!(0<=o.indexOf(i))){if(o.push(i),e[r])return e[r];t.o(t.S,r)||(t.S[r]={});var a=t.S[r],u=(t,e,n,r)=>{var o=a[t]=a[t]||{},i=o[e];i&&(i.loaded||(!r==!i.eager?!("@openmrs/esm-primary-navigation-app">i.from):!r))||(o[e]={get:n,from:"@openmrs/esm-primary-navigation-app",eager:!!r})},s=[];return"default"===r&&(u("@openmrs/esm-framework/src/internal","3.4.1-pre.175",(()=>Promise.all([t.e(983),t.e(889)]).then((()=>()=>t(4889))))),u("carbon-components-react","7.31.0",(()=>Promise.all([t.e(322),t.e(983),t.e(69)]).then((()=>()=>t(7322))))),u("carbon-components","10.31.0",(()=>Promise.all([t.e(25),t.e(1)]).then((()=>()=>t(25))))),u("carbon-icons","7.0.7",(()=>t.e(860).then((()=>()=>t(4860))))),u("react-dom","16.14.0",(()=>Promise.all([t.e(788),t.e(983)]).then((()=>()=>t(2788))))),u("react-i18next","11.16.2",(()=>Promise.all([t.e(743),t.e(983)]).then((()=>()=>t(5743))))),u("react-router-dom","5.3.0",(()=>Promise.all([t.e(393),t.e(983),t.e(216)]).then((()=>()=>t(7393))))),u("react","16.14.0",(()=>t.e(735).then((()=>()=>t(2735)))))),e[r]=s.length?Promise.all(s).then((()=>e[r]=1)):1}}})(),t.p="",i=t=>{var e=t=>t.split(".").map((t=>+t==t?+t:t)),n=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(t),r=n[1]?e(n[1]):[];return n[2]&&(r.length++,r.push.apply(r,e(n[2]))),n[3]&&(r.push([]),r.push.apply(r,e(n[3]))),r},a=(t,e)=>{t=i(t),e=i(e);for(var n=0;;){if(n>=t.length)return n<e.length&&"u"!=(typeof e[n])[0];var r=t[n],o=(typeof r)[0];if(n>=e.length)return"u"==o;var a=e[n],u=(typeof a)[0];if(o!=u)return"o"==o&&"n"==u||"s"==u||"u"==o;if("o"!=o&&"u"!=o&&r!=a)return r<a;n++}},u=t=>{function e(){return a.pop().replace(/^\((.+)\)$/,"$1")}var n=t[0],r="";if(1===t.length)return"*";if(n+.5){r+=0==n?">=":-1==n?"<":1==n?"^":2==n?"~":0<n?"=":"!=";for(var o=1,i=1;i<t.length;i++)o--,r+="u"==(typeof(s=t[i]))[0]?"-":(0<o?".":"")+(o=2,s);return r}var a=[];for(i=1;i<t.length;i++){var s=t[i];a.push(0===s?"not("+e()+")":1===s?"("+e()+" || "+e()+")":2===s?a.pop()+" "+a.pop():u(s))}return e()},s=(t,e)=>{if(0 in t){e=i(e);var n=t[0],r=0>n;r&&(n=-n-1);for(var o=0,a=1,u=!0;;a++,o++){var c,f,l=a<t.length?(typeof t[a])[0]:"";if(o>=e.length||"o"==(f=(typeof(c=e[o]))[0]))return!u||("u"==l?a>n&&!r:""==l!=r);if("u"==f){if(!u||"u"!=l)return!1}else if(u)if(l==f)if(a<=n){if(c!=t[a])return!1}else{if(r?c>t[a]:c<t[a])return!1;c!=t[a]&&(u=!1)}else if("s"!=l&&"n"!=l){if(r||a<=n)return!1;u=!1,a--}else{if(a<=n||f<l!=r)return!1;u=!1}else"s"!=l&&"n"!=l&&(u=!1,a--)}}var p=[],h=p.pop.bind(p);for(o=1;o<t.length;o++){var d=t[o];p.push(1==d?h()|h():2==d?h()&h():d?s(d,e):!h())}return!!h()},c=(t,e)=>{var n=t[e];return Object.keys(n).reduce(((t,e)=>!t||!n[t].loaded&&a(t,e)?e:t),0)},f=(t,e,n,r)=>"Unsatisfied version "+n+" from "+(n&&t[e][n].from)+" of shared singleton module "+e+" (required "+u(r)+")",l=(t,e,n)=>{var r=c(t,n);return h(t[n][r])},p=(t,e,n,r)=>{var o=c(t,n);return s(r,o)||"undefined"!=typeof console&&console.warn&&console.warn(f(t,n,o,r)),h(t[n][o])},h=t=>(t.loaded=1,t.get()),m=(d=e=>function(n,r,o,i){var a=t.I(n);return a&&a.then?a.then(e.bind(e,n,t.S[n],r,o,i)):e(n,t.S[n],r,o,i)})(((e,n,r,o)=>n&&t.o(n,r)?l(n,0,r):o())),v=d(((e,n,r,o,i)=>n&&t.o(n,r)?p(n,0,r,o):i())),y={},g={6983:()=>v("default","react",[1,16],(()=>t.e(735).then((()=>()=>t(2735))))),7644:()=>v("default","@openmrs/esm-framework",[0,3,1,14,,"pre"],(()=>t.e(889).then((()=>()=>t(4889))))),8478:()=>m("default","@openmrs/esm-framework/src/internal",(()=>t.e(889).then((()=>()=>t(4889))))),5412:()=>v("default","react-dom",[1,16],(()=>t.e(788).then((()=>()=>t(2788))))),6240:()=>v("default","carbon-icons",[1,7],(()=>t.e(860).then((()=>()=>t(4860))))),7569:()=>v("default","carbon-components",[1,10],(()=>t.e(25).then((()=>()=>t(25))))),9784:()=>v("default","carbon-components-react",[1,7],(()=>Promise.all([t.e(322),t.e(69)]).then((()=>()=>t(7322))))),2268:()=>v("default","react-router-dom",[1,5],(()=>t.e(393).then((()=>()=>t(7393))))),2680:()=>v("default","react-i18next",[1,11],(()=>t.e(743).then((()=>()=>t(5743)))))},w={69:[5412,6240,7569],212:[2268,2680],784:[9784],789:[7644,8478],983:[6983]},t.f.consumes=(e,n)=>{t.o(w,e)&&w[e].forEach((e=>{if(t.o(y,e))return n.push(y[e]);var r=n=>{y[e]=0,t.m[e]=r=>{delete t.c[e],r.exports=n()}},o=n=>{delete y[e],t.m[e]=()=>{throw delete t.c[e],n}};try{var i=g[e]();i.then?n.push(y[e]=i.then(r).catch(o)):r(i)}catch(e){o(e)}}))},(()=>{var e={115:0};t.f.j=(n,r)=>{var o=t.o(e,n)?e[n]:void 0;if(0!==o)if(o)r.push(o[2]);else if(/^(69|784|983)$/.test(n))e[n]=0;else{var i=new Promise(((t,r)=>o=e[n]=[t,r]));r.push(o[2]=i);var a=t.p+t.u(n),u=new Error;t.l(a,(r=>{if(t.o(e,n)&&(0!==(o=e[n])&&(e[n]=void 0),o)){var i=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;u.message="Loading chunk "+n+" failed.\n("+i+": "+a+")",u.name="ChunkLoadError",u.type=i,u.request=a,o[1](u)}}),"chunk-"+n,n)}};var n=(n,r)=>{var o,i,[a,u,s]=r,c=0;if(a.some((t=>0!==e[t]))){for(o in u)t.o(u,o)&&(t.m[o]=u[o]);s&&s(t)}for(n&&n(r);c<a.length;c++)i=a[c],t.o(e,i)&&e[i]&&e[i][0](),e[i]=0},r=self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[];r.forEach(n.bind(null,0)),r.push=n.bind(null,r.push.bind(r))})(),t(8331),t(7972)})())}}}));
1
+ System.register("@openmrs/esm-primary-navigation-app",[],(function(t,e){var n=void 0;return{execute:function(){t((()=>{function t(e){var n=O[e];if(void 0!==n)return n.exports;var r=O[e]={id:e,loaded:!1,exports:{}};return E[e].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var r,o,i,a,u,s,c,f,l,p,h,d,m,v,y,g,w,E={6585:(t,e,n)=>{(0,n(7968).s)(1)},7968:(t,e,n)=>{const r=n(1577).R;e.s=function(t){if(t||(t=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,t)}},8331:(t,e,n)=>{n(6585)},1577:(t,e)=>{e.R=function(t,e){var n=document.createElement("a");n.href=t;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==e&&0<=i;)"/"===r[--i]&&o++;if(o!==e)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+e+") is greater than the number of directories ("+o+") in the URL path "+t);var a=r.slice(0,i+1);return n.protocol+"//"+n.host+a},Number.isInteger},7972:(t,e,r)=>{var o={app:()=>(n||((self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[789],{1602:t=>{var e=function(t){function e(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}function n(t,e,n,i){var a=e&&e.prototype instanceof o?e:o,u=Object.create(a.prototype),s=new p(i||[]);return u._invoke=function(t,e,n){var o=b;return function(i,a){if(o===T)throw new Error("Generator is already running");if(o===P){if("throw"===i)throw a;return d()}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var s=c(u,n);if(s){if(s===S)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===b)throw o=P,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=T;var f=r(t,e,n);if("normal"===f.type){if(o=n.done?P:_,f.arg===S)continue;return{value:f.arg,done:n.done}}"throw"===f.type&&(o=P,n.method="throw",n.arg=f.arg)}}}(t,n,s),u}function r(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function o(){}function i(){}function a(){}function u(t){["next","throw","return"].forEach((function(n){e(t,n,(function(t){return this._invoke(n,t)}))}))}function s(t,e){function n(o,i,a,u){var s=r(t[o],t,i);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==typeof f&&y.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,u)}))}u(s.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function c(t,e){var n=t.iterator[e.method];if(n===m){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=m,c(t,e),"throw"===e.method))return S;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return S}var o=r(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,S;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=m),e.delegate=null,S):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,S)}function f(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function l(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function p(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(f,this),this.reset(!0)}function h(t){if(t){var e=t[w];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(y.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=m,e.done=!0,e};return r.next=r}}return{next:d}}function d(){return{value:m,done:!0}}var m,v=Object.prototype,y=v.hasOwnProperty,g="function"==typeof Symbol?Symbol:{},w=g.iterator||"@@iterator",E=g.asyncIterator||"@@asyncIterator",O=g.toStringTag||"@@toStringTag";try{e({},"")}catch(O){e=function(t,e,n){return t[e]=n}}t.wrap=n;var b="suspendedStart",_="suspendedYield",T="executing",P="completed",S={},N={};e(N,w,(function(){return this}));var A=Object.getPrototypeOf,L=A&&A(A(h([])));L&&L!==v&&y.call(L,w)&&(N=L);var D=a.prototype=o.prototype=Object.create(N);return i.prototype=a,e(D,"constructor",a),e(a,"constructor",i),i.displayName=e(a,O,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===i||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,a):(t.__proto__=a,e(t,O,"GeneratorFunction")),t.prototype=Object.create(D),t},t.awrap=function(t){return{__await:t}},u(s.prototype),e(s.prototype,E,(function(){return this})),t.AsyncIterator=s,t.async=function(e,r,o,i,a){void 0===a&&(a=Promise);var u=new s(n(e,r,o,i),a);return t.isGeneratorFunction(r)?u:u.next().then((function(t){return t.done?t.value:u.next()}))},u(D),e(D,O,"Generator"),e(D,w,(function(){return this})),e(D,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=h,p.prototype={constructor:p,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=m,this.done=!1,this.delegate=null,this.method="next",this.arg=m,this.tryEntries.forEach(l),!t)for(var e in this)"t"===e.charAt(0)&&y.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=m)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){function e(e,r){return i.type="throw",i.arg=t,n.next=e,r&&(n.method="next",n.arg=m),!!r}if(this.done)throw t;for(var n=this,r=this.tryEntries.length-1;0<=r;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var a=y.call(o,"catchLoc"),u=y.call(o,"finallyLoc");if(a&&u){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(t,e){for(var n,r=this.tryEntries.length-1;0<=r;--r)if((n=this.tryEntries[r]).tryLoc<=this.prev&&y.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,S):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),S},finish:function(t){for(var e,n=this.tryEntries.length-1;0<=n;--n)if((e=this.tryEntries[n]).finallyLoc===t)return this.complete(e.completion,e.afterLoc),l(e),S},catch:function(t){for(var e,n=this.tryEntries.length-1;0<=n;--n)if((e=this.tryEntries[n]).tryLoc===t){var r=e.completion;if("throw"===r.type){var o=r.arg;l(e)}return o}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:h(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=m),S}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},6639:(t,e,n)=>{function r(){var t=(0,a.useConfig)();return i().createElement(a.ConfigurableLink,{to:t.target},t.title)}n.r(e),n.d(e,{default:()=>r,genericLinkConfigSchema:()=>u});var o=n(6983),i=n.n(o),a=n(7644),u={title:{_default:"New Link",_type:a.Type.String},target:{_default:"#",_type:a.Type.String,_description:"The URL to link to.",_validators:[a.validators.isUrl]}}},1217:(t,e,n)=>{n.d(e,{O:()=>r,e:()=>o});var r="user-property-change",o="@openmrs/esm-primary-navigation-app"},789:(t,e,n)=>{function r(t,e,n,r,o,i,a){try{var u=t[i](a),s=u.value}catch(u){return void n(u)}u.done?e(s):Promise.resolve(s).then(r,o)}function o(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){function a(t){r(s,o,i,a,u,"next",t)}function u(t){r(s,o,i,a,u,"throw",t)}var s=t.apply(e,n);a(void 0)}))}}function i(){return a.apply(this,arguments)}function a(){return(a=o(Pt().mark((function t(e,n,r){var o,i;return Pt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,St.getSessionLocation)();case 2:return o=t.sent,i=null==o?void 0:o.uuid,t.next=6,(0,St.openmrsFetch)("/ws/rest/v1/user/".concat(e),{method:"POST",body:{userProperties:n},headers:{"Content-Type":"application/json"},signal:r.signal});case 6:if(!i){t.next=9;break}return t.next=9,(0,St.setSessionLocation)(i,r);case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function u(t,e){return(0,St.queueSynchronizationItemFor)(t,Nt.O,e,{displayName:"User Language Change"})}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e,n,r,o,i,a){try{var u=t[i](a),s=u.value}catch(u){return void n(u)}u.done?e(s):Promise.resolve(s).then(r,o)}function f(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){function i(t){c(u,r,o,i,a,"next",t)}function a(t){c(u,r,o,i,a,"throw",t)}var u=t.apply(e,n);i(void 0)}))}}function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t,e)||h(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||h(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}function d(){return m.apply(this,arguments)}function m(){return m=f(Pt().mark((function t(e,n){var r,o,a,u;return Pt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==n.index){t.next=10;break}return t.next=4,(0,St.getLoggedInUser)();case 4:return o=t.sent,a=n.items.map((function(t){var e=l(t,2);return e[0],e[1]})),u=(r=Object).assign.apply(r,[{},o.userProperties].concat(p(a))),t.next=9,i(o.uuid,u,n.abort);case 9:(0,St.refetchCurrentUser)();case 10:case"end":return t.stop()}}),t)}))),m.apply(this,arguments)}function v(t){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(t,e,n){var r=b(t,e,n);xt.length?xt.forEach((function(t){return t(r)})):setTimeout((function(){throw r}))}function w(t){if("function"!=typeof t)throw Error(O(28,!1));xt.push(t)}function E(t){if("function"!=typeof t)throw Error(O(29,!1));var e=!1;return xt=xt.filter((function(n){var r=n===t;return e=e||r,!r})),e}function O(t,e){for(var n=arguments.length,r=Array(2<n?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return"single-spa minified message #".concat(t,": ").concat(e?e+" ":"","See https://single-spa.js.org/error/?code=").concat(t).concat(r.length?"&arg=".concat(r.join("&arg=")):"")}function b(t,e,n){var r,o="".concat(N(e)," '").concat(P(e),"' died in status ").concat(e.status,": ");if(t instanceof Error){try{t.message=o+t.message}catch(t){}r=t}else{console.warn(O(30,!1,e.status,P(e)));try{r=Error(o+JSON.stringify(t))}catch(e){r=t}}return r.appOrParcelName=P(e),e.status=n,r}function _(t){return"MOUNTED"===t.status}function T(t){try{return t.activeWhen(window.location)}catch(e){return g(e,t,"SKIP_BECAUSE_BROKEN"),!1}}function P(t){return t.name}function S(t){return!!t.unmountThisParcel}function N(t){return S(t)?"parcel":"application"}function A(){for(var t=arguments.length-1;0<t;t--)for(var e in arguments[t])"__proto__"!=e&&(arguments[t-1][e]=arguments[t][e]);return arguments[0]}function L(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return t[n];return null}function D(t){return t&&("function"==typeof t||(e=t,Array.isArray(e)&&!L(e,(function(t){return"function"!=typeof t}))));var e}function U(t,e){var n=t[e]||[];0===(n=Array.isArray(n)?n:[n]).length&&(n=[function(){return Promise.resolve()}]);var r=N(t),o=P(t);return function(t){return n.reduce((function(n,i,a){return n.then((function(){var n=i(t);return x(n)?n:Promise.reject(O(15,!1,r,o,e,a))}))}),Promise.resolve())}}function x(t){return t&&"function"==typeof t.then&&"function"==typeof t.catch}function j(t,e){function n(){return t.status="NOT_MOUNTED",t}return Promise.resolve().then((function(){return"NOT_BOOTSTRAPPED"===t.status?(t.status="BOOTSTRAPPING",t.bootstrap?F(t,"bootstrap").then(n).catch((function(n){if(e)throw b(n,t,"SKIP_BECAUSE_BROKEN");return g(n,t,"SKIP_BECAUSE_BROKEN"),t})):Promise.resolve().then(n)):t}))}function R(t,e){return Promise.resolve().then((function(){function n(){return F(t,"unmount").then((function(){t.status="NOT_MOUNTED"})).catch((function(n){if(e)throw b(n,t,"SKIP_BECAUSE_BROKEN");g(n,t,"SKIP_BECAUSE_BROKEN")}))}if("MOUNTED"!==t.status)return t;t.status="UNMOUNTING";var r=Object.keys(t.parcels).map((function(e){return t.parcels[e].unmountThisParcel()}));return Promise.all(r).then(n,(function(r){return n().then((function(){var n=Error(r.message);if(e)throw b(n,t,"SKIP_BECAUSE_BROKEN");g(n,t,"SKIP_BECAUSE_BROKEN")}))})).then((function(){return t}))}))}function k(t,e){return Promise.resolve().then((function(){return"NOT_MOUNTED"===t.status?(Rt||(window.dispatchEvent(new Ut("single-spa:before-first-mount")),Rt=!0),F(t,"mount").then((function(){return t.status="MOUNTED",kt||(window.dispatchEvent(new Ut("single-spa:first-mount")),kt=!0),t})).catch((function(n){function r(){if(e)throw b(n,t,"SKIP_BECAUSE_BROKEN");return g(n,t,"SKIP_BECAUSE_BROKEN"),t}return t.status="MOUNTED",R(t,!0).then(r,r)}))):t}))}function C(){return M.apply(Mt,arguments)}function M(t,e){var n=this;if(!t||"object"!==v(t)&&"function"!=typeof t)throw Error(O(2,!1));if(t.name&&"string"!=typeof t.name)throw Error(O(3,!1,v(t.name)));if("object"!==v(e))throw Error(O(4,!1,name,v(e)));if(!e.domElement)throw Error(O(5,!1,name));var r,o=Ct++,i="function"==typeof t,a=i?t:function(){return Promise.resolve(t)},u={id:o,parcels:{},status:i?"LOADING_SOURCE_CODE":"NOT_BOOTSTRAPPED",customProps:e,parentName:P(n),unmountThisParcel:function(){return p.then((function(){if("MOUNTED"!==u.status)throw Error(O(6,!1,name,u.status));return R(u,!0)})).then((function(t){return u.parentName&&delete n.parcels[u.id],t})).then((function(t){return c(t),t})).catch((function(t){throw u.status="SKIP_BECAUSE_BROKEN",f(t),t}))}};n.parcels[o]=u;var s=a();if(!s||"function"!=typeof s.then)throw Error(O(7,!1));var c,f,l=(s=s.then((function(t){if(!t)throw Error(O(8,!1));var e=t.name||"parcel-".concat(o);if(Object.prototype.hasOwnProperty.call(t,"bootstrap")&&!D(t.bootstrap))throw Error(O(9,!1,e));if(!D(t.mount))throw Error(O(10,!1,e));if(!D(t.unmount))throw Error(O(11,!1,e));if(t.update&&!D(t.update))throw Error(O(12,!1,e));var n=U(t,"bootstrap"),i=U(t,"mount"),a=U(t,"unmount");u.status="NOT_BOOTSTRAPPED",u.name=e,u.bootstrap=n,u.mount=i,u.unmount=a,u.timeouts=z(t.timeouts),t.update&&(u.update=U(t,"update"),r.update=function(t){return u.customProps=t,B(function(t){return Promise.resolve().then((function(){if("MOUNTED"!==t.status)throw Error(O(32,!1,P(t)));return t.status="UPDATING",F(t,"update").then((function(){return t.status="MOUNTED",t})).catch((function(e){throw b(e,t,"SKIP_BECAUSE_BROKEN")}))}))}(u))})}))).then((function(){return j(u,!0)})),p=l.then((function(){return k(u,!0)})),h=new Promise((function(t,e){c=t,f=e}));return r={mount:function(){return B(Promise.resolve().then((function(){if("NOT_MOUNTED"!==u.status)throw Error(O(13,!1,name,u.status));return n.parcels[o]=u,k(u)})))},unmount:function(){return B(u.unmountThisParcel())},getStatus:function(){return u.status},loadPromise:B(s),bootstrapPromise:B(l),mountPromise:B(p),unmountPromise:B(h)}}function B(t){return t.then((function(){return null}))}function I(t){var e=P(t),n="function"==typeof t.customProps?t.customProps(e,window.location):t.customProps;("object"!==v(n)||null===n||Array.isArray(n))&&(n={},console.warn(O(40,!1),e,n));var r=A({},n,{name:e,mountParcel:M.bind(t),singleSpa:Lt});return S(t)&&(r.unmountSelf=t.unmountThisParcel),r}function K(t,e,n){if("number"!=typeof t||0>=t)throw Error(O(16,!1));Bt.bootstrap={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function G(t,e,n){if("number"!=typeof t||0>=t)throw Error(O(17,!1));Bt.mount={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function W(t,e,n){if("number"!=typeof t||0>=t)throw Error(O(18,!1));Bt.unmount={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function $(t,e,n){if("number"!=typeof t||0>=t)throw Error(O(19,!1));Bt.unload={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function F(t,e){var n=t.timeouts[e],r=n.warningMillis,o=N(t);return new Promise((function(i,a){function u(t){if(!s)if(!0===t)c=!0,n.dieOnTimeout?a(Error(f)):console.error(f);else if(!c){var e=t;console.warn(f),e*r+r<n.millis&&setTimeout((function(){return u(e+1)}),r)}}var s=!1,c=!1;t[e](I(t)).then((function(t){s=!0,i(t)})).catch((function(t){s=!0,a(t)})),setTimeout((function(){return u(1)}),r),setTimeout((function(){return u(!0)}),n.millis);var f=O(31,!1,e,o,P(t),n.millis)}))}function z(t){var e={};for(var n in Bt)e[n]=A({},Bt[n],t&&t[n]||{});return e}function q(t){return Promise.resolve().then((function(){return t.loadPromise?t.loadPromise:"NOT_LOADED"!==t.status&&"LOAD_ERROR"!==t.status?t:(t.status="LOADING_SOURCE_CODE",t.loadPromise=Promise.resolve().then((function(){var r=t.loadApp(I(t));if(!x(r))throw n=!0,Error(O(33,!1,P(t)));return r.then((function(n){var r;t.loadErrorTime=null,"object"!==v(e=n)&&(r=34),Object.prototype.hasOwnProperty.call(e,"bootstrap")&&!D(e.bootstrap)&&(r=35),D(e.mount)||(r=36),D(e.unmount)||(r=37);var o=N(e);if(r){var i;try{i=JSON.stringify(e)}catch(t){}return console.error(O(r,!1,o,P(t),i),e),g(void 0,t,"SKIP_BECAUSE_BROKEN"),t}return e.devtools&&e.devtools.overlays&&(t.devtools.overlays=A({},t.devtools.overlays,e.devtools.overlays)),t.status="NOT_BOOTSTRAPPED",t.bootstrap=U(e,"bootstrap"),t.mount=U(e,"mount"),t.unmount=U(e,"unmount"),t.unload=U(e,"unload"),t.timeouts=z(e.timeouts),delete t.loadPromise,t}))})).catch((function(e){var r;return delete t.loadPromise,n?r="SKIP_BECAUSE_BROKEN":(r="LOAD_ERROR",t.loadErrorTime=(new Date).getTime()),g(e,t,r),t})));var e,n}))}function J(t){var e;if("string"==typeof t)e=t;else if(this&&this.href)e=this.href;else{if(!(t&&t.currentTarget&&t.currentTarget.href&&t.preventDefault))throw Error(O(14,!1));e=t.currentTarget.href,t.preventDefault()}var n=X(window.location.href),r=X(e);0===e.indexOf("#")?window.location.hash=r.hash:n.host!==r.host&&r.host?window.location.href=e:r.pathname===n.pathname&&r.search===n.search?window.location.hash=r.hash:window.history.pushState(null,null,e)}function V(t){var e=this;if(t){var n=t[0].type;0<=Gt.indexOf(n)&&Kt[n].forEach((function(n){try{n.apply(e,t)}catch(t){setTimeout((function(){throw t}))}}))}}function H(){yt([],arguments)}function Q(t,e){return function(){var n=window.location.href,r=t.apply(this,arguments),o=window.location.href;return bt&&n===o||(Et()?window.dispatchEvent(Y(window.history.state,e)):yt([])),r}}function Y(t,e){var n;try{n=new PopStateEvent("popstate",{state:t})}catch(e){(n=document.createEvent("PopStateEvent")).initPopStateEvent("popstate",!1,!1,t)}return n.singleSpa=!0,n.singleSpaTrigger=e,n}function X(t){var e=document.createElement("a");return e.href=t,e}function Z(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window.jQuery;if(t||window.$&&window.$.fn&&window.$.fn.jquery&&(t=window.$),t&&!Ft){var e=t.fn.on,n=t.fn.off;t.fn.on=function(t,n){return tt.call(this,e,window.addEventListener,t,n,arguments)},t.fn.off=function(t,e){return tt.call(this,n,window.removeEventListener,t,e,arguments)},Ft=!0}}function tt(t,e,n,r,o){return"string"==typeof n?(n.split(/\s+/).forEach((function(t){0<=Gt.indexOf(t)&&(e(t,r),n=n.replace(t,""))})),""===n.trim()?this:t.apply(this,o)):t.apply(this,o)}function et(t){return Promise.resolve().then((function(){var e=zt[P(t)];if(!e)return t;if("NOT_LOADED"===t.status)return nt(t,e),t;if("UNLOADING"===t.status)return e.promise.then((function(){return t}));if("NOT_MOUNTED"!==t.status&&"LOAD_ERROR"!==t.status)return t;var n="LOAD_ERROR"===t.status?Promise.resolve():F(t,"unload");return t.status="UNLOADING",n.then((function(){return nt(t,e),t})).catch((function(n){return function(t,e,n){delete zt[P(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,g(n,t,"SKIP_BECAUSE_BROKEN"),e.reject(n)}(t,e,n),t}))}))}function nt(t,e){delete zt[P(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,t.status="NOT_LOADED",e.resolve()}function rt(t,e,n,r){zt[P(t)]={app:t,resolve:n,reject:r},Object.defineProperty(zt[P(t)],"promise",{get:e})}function ot(t){return zt[t]}function it(){var t=[],e=[],n=[],r=[],o=(new Date).getTime();return qt.forEach((function(i){var a="SKIP_BECAUSE_BROKEN"!==i.status&&T(i);switch(i.status){case"LOAD_ERROR":a&&200<=o-i.loadErrorTime&&n.push(i);break;case"NOT_LOADED":case"LOADING_SOURCE_CODE":a&&n.push(i);break;case"NOT_BOOTSTRAPPED":case"NOT_MOUNTED":!a&&ot(P(i))?t.push(i):a&&r.push(i);break;case"MOUNTED":a||e.push(i)}})),{appsToUnload:t,appsToUnmount:e,appsToLoad:n,appsToMount:r}}function at(){return qt.filter(_).map(P)}function ut(){return qt.map(P)}function st(t){var e=L(qt,(function(e){return P(e)===t}));return e?e.status:null}function ct(t,e,n,r){var o=function(t,e,n,r){var o,i={name:null,loadApp:null,activeWhen:null,customProps:null};return"object"===v(t)?(function(t){if(Array.isArray(t)||null===t)throw Error(O(39,!1));var e=["name","app","activeWhen","customProps"],n=Object.keys(t).reduce((function(t,n){return 0<=e.indexOf(n)?t:t.concat(n)}),[]);if(0!==n.length)throw Error(O(38,!1,e.join(", "),n.join(", ")));if("string"!=typeof t.name||0===t.name.length)throw Error(O(20,!1));if("object"!==v(t.app)&&"function"!=typeof t.app)throw Error(O(20,!1));var r=function(t){return"string"==typeof t||"function"==typeof t};if(!(r(t.activeWhen)||Array.isArray(t.activeWhen)&&t.activeWhen.every(r)))throw Error(O(24,!1));if(!dt(t.customProps))throw Error(O(22,!1))}(t),i.name=t.name,i.loadApp=t.app,i.activeWhen=t.activeWhen,i.customProps=t.customProps):(function(t,e,n,r){if("string"!=typeof t||0===t.length)throw Error(O(20,!1));if(!e)throw Error(O(23,!1));if("function"!=typeof n)throw Error(O(24,!1));if(!dt(r))throw Error(O(22,!1))}(t,e,n,r),i.name=t,i.loadApp=e,i.activeWhen=n,i.customProps=r),i.loadApp="function"==typeof(o=i.loadApp)?o:function(){return Promise.resolve(o)},i.customProps=function(t){return t||{}}(i.customProps),i.activeWhen=function(t){var e=Array.isArray(t)?t:[t];return e=e.map((function(t){return"function"==typeof t?t:mt(t)})),function(t){return e.some((function(e){return e(t)}))}}(i.activeWhen),i}(t,e,n,r);if(-1!==ut().indexOf(o.name))throw Error(O(21,!1,o.name));qt.push(A({loadErrorTime:null,status:"NOT_LOADED",parcels:{},devtools:{overlays:{options:{},selectors:[]}}},o)),It&&(Z(),yt())}function ft(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window.location;return qt.filter((function(e){return e.activeWhen(t)})).map(P)}function lt(t){if(0===qt.filter((function(e){return P(e)===t})).length)throw Error(O(25,!1,t));return pt(t).then((function(){var e=qt.map(P).indexOf(t);qt.splice(e,1)}))}function pt(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{waitForUnmount:!1};if("string"!=typeof t)throw Error(O(26,!1));var n=L(qt,(function(e){return P(e)===t}));if(!n)throw Error(O(27,!1,t));var r,o=ot(P(n));if(e&&e.waitForUnmount){if(o)return o.promise;var i=new Promise((function(t,e){rt(n,(function(){return i}),t,e)}));return i}return o?(r=o.promise,ht(n,o.resolve,o.reject)):r=new Promise((function(t,e){rt(n,(function(){return r}),t,e),ht(n,t,e)})),r}function ht(t,e,n){R(t).then(et).then((function(){e(),setTimeout((function(){yt()}))})).catch(n)}function dt(t){return!t||"function"==typeof t||"object"===v(t)&&null!==t&&!Array.isArray(t)}function mt(t,e){var n=function(t,e){function n(n){var a=t.slice(r,n).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");if(i+=o?"[^/]+/?":a,n===t.length)if(o)e&&(i+="$");else{var u=e?"":".*";i="/"===i.charAt(i.length-1)?"".concat(i).concat(u,"$"):"".concat(i,"(/").concat(u,")?(#.*)?$")}o=!o,r=n}var r=0,o=!1,i="^";"/"!==t[0]&&(t="/"+t);for(var a,u=0;u<t.length;u++)a=t[u],(!o&&":"===a||o&&"/"===a)&&n(u);return n(t.length),new RegExp(i,"i")}(t,e);return function(t){var e=t.origin;e||(e="".concat(t.protocol,"//").concat(t.host));var r=t.href.replace(e,"").replace(t.search,"").split("?")[0];return n.test(r)}}function vt(){return yt()}function yt(){function t(){p=!0}function e(){var t=at();o.forEach((function(e){return e.resolve(t)}));try{var e=0===a.length?"single-spa:no-app-change":"single-spa:app-change";window.dispatchEvent(new Ut(e,r())),window.dispatchEvent(new Ut("single-spa:routing-event",r()))}catch(t){setTimeout((function(){throw t}))}if(Jt=!1,0<Vt.length){var n=Vt;Vt=[],yt(n)}return t}function n(){o.forEach((function(t){V(t.eventArguments)})),V(i)}function r(){function t(t,e){var n=P(t);e=e||st(n),o[n]=e,(u[e]=u[e]||[]).push(n)}var e,n=0<arguments.length&&void 0!==arguments[0]&&arguments[0],r=1<arguments.length?arguments[1]:void 0,o={},u=(y(e={},"MOUNTED",[]),y(e,"NOT_MOUNTED",[]),y(e,"NOT_LOADED",[]),y(e,"SKIP_BECAUSE_BROKEN",[]),e);n?(f.concat(l).forEach((function(e){t(e,"MOUNTED")})),s.forEach((function(e){t(e,"NOT_LOADED")})),c.forEach((function(e){t(e,"NOT_MOUNTED")}))):a.forEach((function(e){t(e)}));var m={detail:{newAppStatuses:o,appsByNewStatus:u,totalAppChanges:a.length,originalEvent:null==i?void 0:i[0],oldUrl:h,newUrl:d,navigationIsCanceled:p}};return r&&A(m.detail,r),m}var o=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],i=1<arguments.length?arguments[1]:void 0;if(Jt)return new Promise((function(t,e){Vt.push({resolve:t,reject:e,eventArguments:i})}));var a,u=it(),s=u.appsToUnload,c=u.appsToUnmount,f=u.appsToLoad,l=u.appsToMount,p=!1,h=Ht,d=Ht=window.location.href;return Et()?(Jt=!0,a=s.concat(f,c,l),Promise.resolve().then((function(){if(window.dispatchEvent(new Ut(0===a.length?"single-spa:before-no-app-change":"single-spa:before-app-change",r(!0))),window.dispatchEvent(new Ut("single-spa:before-routing-event",r(!0,{cancelNavigation:t}))),p)return window.dispatchEvent(new Ut("single-spa:before-mount-routing-event",r(!0))),e(),void J(h);var i=s.map(et),u=c.map(R).map((function(t){return t.then(et)})).concat(i),d=Promise.all(u);d.then((function(){window.dispatchEvent(new Ut("single-spa:before-mount-routing-event",r(!0)))}));var m=f.map((function(t){return q(t).then((function(t){return gt(t,d)}))})),v=l.filter((function(t){return 0>f.indexOf(t)})).map((function(t){return gt(t,d)}));return d.catch((function(t){throw n(),t})).then((function(){return n(),Promise.all(m.concat(v)).catch((function(t){throw o.forEach((function(e){return e.reject(t)})),t})).then(e)}))}))):(a=f,Promise.resolve().then((function(){var t=f.map(q);return Promise.all(t).then(n).then((function(){return[]})).catch((function(t){throw n(),t}))})))}function gt(t,e){return T(t)?j(t).then((function(t){return e.then((function(){return T(t)?k(t):t}))})):e.then((function(){return t}))}function wt(t){var e;Qt=!0,t&&t.urlRerouteOnly&&(e=t.urlRerouteOnly,bt=e),It&&yt()}function Et(){return Qt}function Ot(){return(0,_t.defineConfigSchema)(Nt.e,At),(0,_t.defineExtensionConfigSchema)("link",Yt.genericLinkConfigSchema),(0,_t.setupOfflineSync)(Nt.O,[],d),{pages:[{load:(0,_t.getAsyncLifecycle)((function(){return Promise.all([n.e(513),n.e(596),n.e(784),n.e(212)]).then(n.bind(n,3212))}),ee),route:function(t){return!t.pathname.startsWith(window.getOpenmrsSpaBase()+"login")},online:!0,offline:!0,order:0},{load:{bootstrap:function(){return Promise.resolve(J(window.getOpenmrsSpaBase()+"home"))},mount:function(){return Promise.resolve()},unmount:function(){return Promise.resolve()}},route:function(t){return t.pathname===window.getOpenmrsSpaBase()},order:0}],extensions:[{name:"default-user-panel",slot:"user-panel-slot",order:0,load:(0,_t.getAsyncLifecycle)((function(){return Promise.all([n.e(513),n.e(784),n.e(540)]).then(n.bind(n,3540))}),ee),online:!0,offline:!0},{name:"change-locale",slot:"user-panel-slot",order:1,load:(0,_t.getAsyncLifecycle)((function(){return Promise.all([n.e(784),n.e(510)]).then(n.bind(n,510))}),ee),online:{postUserProperties:i},offline:{postUserProperties:u}},{name:"link",load:(0,_t.getAsyncLifecycle)((function(){return Promise.resolve().then(n.bind(n,6639))}),{featureName:"Link",moduleName:Nt.e})}]}}n.r(e),n.d(e,{backendDependencies:()=>te,importTranslation:()=>Zt,setupOpenMRS:()=>Ot,assets:()=>["1.js","25.js","openmrs-esm-primary-navigation-app.js","212.js","216.js","322.js","393.js","510.js","513.js","540.js","574.js","596.js","735.js","743.js","788.js","860.js","889.js"],version:()=>Xt});var bt,_t=n(7644),Tt=n(1602),Pt=n.n(Tt),St=n(8478),Nt=n(1217),At={logo:{src:{_type:_t.Type.String,_default:null,_description:"A path or URL to an image. Defaults to the OpenMRS SVG sprite."},alt:{_type:_t.Type.String,_default:"Logo",_description:"Alt text, shown on hover"},name:{_type:_t.Type.String,_default:null,_description:"The organization name displayed when image is absent"}},externalRefLinks:{_type:_t.Type.Array,_elements:{title:{_type:_t.Type.String,_description:"Title of the link"},redirect:{_type:_t.Type.String,_description:"Link to redirect to (must be an external link)",_validators:[_t.validators.isUrl]}},_default:[],_description:"The external links to be showcased in the app menu"}},Lt=Object.freeze({__proto__:null,get start(){return wt},get ensureJQuerySupport(){return Z},get setBootstrapMaxTime(){return K},get setMountMaxTime(){return G},get setUnmountMaxTime(){return W},get setUnloadMaxTime(){return $},get registerApplication(){return ct},get unregisterApplication(){return lt},get getMountedApps(){return at},get getAppStatus(){return st},get unloadApplication(){return pt},get checkActivityFunctions(){return ft},get getAppNames(){return ut},get pathToActiveWhen(){return mt},get navigateToUrl(){return J},get triggerAppChange(){return vt},get addErrorHandler(){return w},get removeErrorHandler(){return E},get mountRootParcel(){return C},get NOT_LOADED(){return jt},get LOADING_SOURCE_CODE(){return"LOADING_SOURCE_CODE"},get NOT_BOOTSTRAPPED(){return"NOT_BOOTSTRAPPED"},get BOOTSTRAPPING(){return"BOOTSTRAPPING"},get NOT_MOUNTED(){return"NOT_MOUNTED"},get MOUNTING(){return"MOUNTING"},get UPDATING(){return"UPDATING"},get LOAD_ERROR(){return"LOAD_ERROR"},get MOUNTED(){return"MOUNTED"},get UNMOUNTING(){return"UNMOUNTING"},get SKIP_BECAUSE_BROKEN(){return"SKIP_BECAUSE_BROKEN"}}),Dt=("undefined"==typeof globalThis?"undefined"==typeof window?void 0===n.g?"undefined"==typeof self?{}:self:n.g:window:globalThis).CustomEvent,Ut=function(){try{var t=new Dt("cat",{detail:{foo:"bar"}});return"cat"===t.type&&"bar"===t.detail.foo}catch(t){}return!1}()?Dt:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(t,e){var n=document.createEvent("CustomEvent");return e?n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail):n.initCustomEvent(t,!1,!1,void 0),n}:function(t,e){var n=document.createEventObject();return n.type=t,e?(n.bubbles=!!e.bubbles,n.cancelable=!!e.cancelable,n.detail=e.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n},xt=[],jt="NOT_LOADED",Rt=!1,kt=!1,Ct=0,Mt={parcels:{}},Bt={bootstrap:{millis:4e3,dieOnTimeout:!1,warningMillis:1e3},mount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unmount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unload:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},update:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3}},It="undefined"!=typeof window,Kt={hashchange:[],popstate:[]},Gt=["hashchange","popstate"];if(It){window.addEventListener("hashchange",H),window.addEventListener("popstate",H);var Wt=window.addEventListener,$t=window.removeEventListener;window.addEventListener=function(t,e){return"function"==typeof e&&0<=Gt.indexOf(t)&&!L(Kt[t],(function(t){return t===e}))?void Kt[t].push(e):Wt.apply(this,arguments)},window.removeEventListener=function(t,e){return"function"==typeof e&&0<=Gt.indexOf(t)?void(Kt[t]=Kt[t].filter((function(t){return t!==e}))):$t.apply(this,arguments)},window.history.pushState=Q(window.history.pushState,"pushState"),window.history.replaceState=Q(window.history.replaceState,"replaceState"),window.singleSpaNavigate?console.warn(O(41,!1)):window.singleSpaNavigate=J}var Ft=!1,zt={},qt=[],Jt=!1,Vt=[],Ht=It&&window.location.href,Qt=!1;It&&setTimeout((function(){Qt||console.warn(O(1,!1))}),5e3),It&&window.__SINGLE_SPA_DEVTOOLS__&&(window.__SINGLE_SPA_DEVTOOLS__.exposedMethods={getRawAppData:function(){return[].concat(qt)},reroute:yt,NOT_LOADED:jt,toLoadPromise:q,toBootstrapPromise:j,unregisterApplication:lt});var Yt=n(6639),Xt="3.4.1-pre.189",Zt=n(3979),te={"webservices.rest":"^2.2.0"},ee={featureName:"primary navigation",moduleName:Nt.e}},3979:(t,e,n)=>{function r(t){if(!n.o(o,t))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=o[t],r=e[0];return n.e(e[1]).then((()=>n(r)))}var o={"./en.json":[3574,574]};r.keys=()=>Object.keys(o),r.id=3979,t.exports=r}}]),n=Promise.all([r.e(983),r.e(789)]).then((()=>()=>r(789)))),n)},i=(t,e)=>(r.R=e,e=r.o(o,t)?o[t]():Promise.resolve().then((()=>{throw new Error('Module "'+t+'" does not exist in container.')})),r.R=void 0,e),a=(t,e)=>{if(r.S){var n=r.S.default;if(n&&n!==t)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return r.S.default=t,r.I("default",e)}};r.d(e,{get:()=>i,init:()=>a})}},O={};return t.m=E,t.c=O,t.y=e,t.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},t.d=(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},t.f={},t.e=e=>Promise.all(Object.keys(t.f).reduce(((n,r)=>(t.f[r](e,n),n)),[])),t.u=t=>t+".js",t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r={},o="@openmrs/esm-primary-navigation-app:",t.l=(e,n,i)=>{if(r[e])r[e].push(n);else{var a,u;if(void 0!==i)for(var s,c=document.getElementsByTagName("script"),f=0;f<c.length;f++)if((s=c[f]).getAttribute("src")==e||s.getAttribute("data-webpack")==o+i){a=s;break}a||(u=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,t.nc&&a.setAttribute("nonce",t.nc),a.setAttribute("data-webpack",o+i),a.src=e),r[e]=[n];var l=(t,n)=>{a.onerror=a.onload=null,clearTimeout(p);var o=r[e];if(delete r[e],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((t=>t(n))),t)return t(n)},p=setTimeout(l.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=l.bind(null,a.onerror),a.onload=l.bind(null,a.onload),u&&document.head.appendChild(a)}},t.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},t.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{t.S={};var e={},n={};t.I=(r,o)=>{o||(o=[]);var i=n[r];if(i||(i=n[r]={}),!(0<=o.indexOf(i))){if(o.push(i),e[r])return e[r];t.o(t.S,r)||(t.S[r]={});var a=t.S[r],u=(t,e,n,r)=>{var o=a[t]=a[t]||{},i=o[e];i&&(i.loaded||(!r==!i.eager?!("@openmrs/esm-primary-navigation-app">i.from):!r))||(o[e]={get:n,from:"@openmrs/esm-primary-navigation-app",eager:!!r})},s=[];return"default"===r&&(u("@openmrs/esm-framework/src/internal","3.4.1-pre.189",(()=>Promise.all([t.e(983),t.e(889)]).then((()=>()=>t(4889))))),u("carbon-components-react","7.31.0",(()=>Promise.all([t.e(322),t.e(983),t.e(69)]).then((()=>()=>t(7322))))),u("carbon-components","10.31.0",(()=>Promise.all([t.e(25),t.e(1)]).then((()=>()=>t(25))))),u("carbon-icons","7.0.7",(()=>t.e(860).then((()=>()=>t(4860))))),u("react-dom","16.14.0",(()=>Promise.all([t.e(788),t.e(983)]).then((()=>()=>t(2788))))),u("react-i18next","11.16.2",(()=>Promise.all([t.e(743),t.e(983)]).then((()=>()=>t(5743))))),u("react-router-dom","5.3.0",(()=>Promise.all([t.e(393),t.e(983),t.e(216)]).then((()=>()=>t(7393))))),u("react","16.14.0",(()=>t.e(735).then((()=>()=>t(2735)))))),e[r]=s.length?Promise.all(s).then((()=>e[r]=1)):1}}})(),t.p="",i=t=>{var e=t=>t.split(".").map((t=>+t==t?+t:t)),n=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(t),r=n[1]?e(n[1]):[];return n[2]&&(r.length++,r.push.apply(r,e(n[2]))),n[3]&&(r.push([]),r.push.apply(r,e(n[3]))),r},a=(t,e)=>{t=i(t),e=i(e);for(var n=0;;){if(n>=t.length)return n<e.length&&"u"!=(typeof e[n])[0];var r=t[n],o=(typeof r)[0];if(n>=e.length)return"u"==o;var a=e[n],u=(typeof a)[0];if(o!=u)return"o"==o&&"n"==u||"s"==u||"u"==o;if("o"!=o&&"u"!=o&&r!=a)return r<a;n++}},u=t=>{function e(){return a.pop().replace(/^\((.+)\)$/,"$1")}var n=t[0],r="";if(1===t.length)return"*";if(n+.5){r+=0==n?">=":-1==n?"<":1==n?"^":2==n?"~":0<n?"=":"!=";for(var o=1,i=1;i<t.length;i++)o--,r+="u"==(typeof(s=t[i]))[0]?"-":(0<o?".":"")+(o=2,s);return r}var a=[];for(i=1;i<t.length;i++){var s=t[i];a.push(0===s?"not("+e()+")":1===s?"("+e()+" || "+e()+")":2===s?a.pop()+" "+a.pop():u(s))}return e()},s=(t,e)=>{if(0 in t){e=i(e);var n=t[0],r=0>n;r&&(n=-n-1);for(var o=0,a=1,u=!0;;a++,o++){var c,f,l=a<t.length?(typeof t[a])[0]:"";if(o>=e.length||"o"==(f=(typeof(c=e[o]))[0]))return!u||("u"==l?a>n&&!r:""==l!=r);if("u"==f){if(!u||"u"!=l)return!1}else if(u)if(l==f)if(a<=n){if(c!=t[a])return!1}else{if(r?c>t[a]:c<t[a])return!1;c!=t[a]&&(u=!1)}else if("s"!=l&&"n"!=l){if(r||a<=n)return!1;u=!1,a--}else{if(a<=n||f<l!=r)return!1;u=!1}else"s"!=l&&"n"!=l&&(u=!1,a--)}}var p=[],h=p.pop.bind(p);for(o=1;o<t.length;o++){var d=t[o];p.push(1==d?h()|h():2==d?h()&h():d?s(d,e):!h())}return!!h()},c=(t,e)=>{var n=t[e];return Object.keys(n).reduce(((t,e)=>!t||!n[t].loaded&&a(t,e)?e:t),0)},f=(t,e,n,r)=>"Unsatisfied version "+n+" from "+(n&&t[e][n].from)+" of shared singleton module "+e+" (required "+u(r)+")",l=(t,e,n)=>{var r=c(t,n);return h(t[n][r])},p=(t,e,n,r)=>{var o=c(t,n);return s(r,o)||"undefined"!=typeof console&&console.warn&&console.warn(f(t,n,o,r)),h(t[n][o])},h=t=>(t.loaded=1,t.get()),m=(d=e=>function(n,r,o,i){var a=t.I(n);return a&&a.then?a.then(e.bind(e,n,t.S[n],r,o,i)):e(n,t.S[n],r,o,i)})(((e,n,r,o)=>n&&t.o(n,r)?l(n,0,r):o())),v=d(((e,n,r,o,i)=>n&&t.o(n,r)?p(n,0,r,o):i())),y={},g={6983:()=>v("default","react",[1,16],(()=>t.e(735).then((()=>()=>t(2735))))),7644:()=>v("default","@openmrs/esm-framework",[0,3,1,14,,"pre"],(()=>t.e(889).then((()=>()=>t(4889))))),8478:()=>m("default","@openmrs/esm-framework/src/internal",(()=>t.e(889).then((()=>()=>t(4889))))),5412:()=>v("default","react-dom",[1,16],(()=>t.e(788).then((()=>()=>t(2788))))),6240:()=>v("default","carbon-icons",[1,7],(()=>t.e(860).then((()=>()=>t(4860))))),7569:()=>v("default","carbon-components",[1,10],(()=>t.e(25).then((()=>()=>t(25))))),9784:()=>v("default","carbon-components-react",[1,7],(()=>Promise.all([t.e(322),t.e(69)]).then((()=>()=>t(7322))))),2268:()=>v("default","react-router-dom",[1,5],(()=>t.e(393).then((()=>()=>t(7393))))),2680:()=>v("default","react-i18next",[1,11],(()=>t.e(743).then((()=>()=>t(5743)))))},w={69:[5412,6240,7569],212:[2268,2680],784:[9784],789:[7644,8478],983:[6983]},t.f.consumes=(e,n)=>{t.o(w,e)&&w[e].forEach((e=>{if(t.o(y,e))return n.push(y[e]);var r=n=>{y[e]=0,t.m[e]=r=>{delete t.c[e],r.exports=n()}},o=n=>{delete y[e],t.m[e]=()=>{throw delete t.c[e],n}};try{var i=g[e]();i.then?n.push(y[e]=i.then(r).catch(o)):r(i)}catch(e){o(e)}}))},(()=>{var e={115:0};t.f.j=(n,r)=>{var o=t.o(e,n)?e[n]:void 0;if(0!==o)if(o)r.push(o[2]);else if(/^(69|784|983)$/.test(n))e[n]=0;else{var i=new Promise(((t,r)=>o=e[n]=[t,r]));r.push(o[2]=i);var a=t.p+t.u(n),u=new Error;t.l(a,(r=>{if(t.o(e,n)&&(0!==(o=e[n])&&(e[n]=void 0),o)){var i=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;u.message="Loading chunk "+n+" failed.\n("+i+": "+a+")",u.name="ChunkLoadError",u.type=i,u.request=a,o[1](u)}}),"chunk-"+n,n)}};var n=(n,r)=>{var o,i,[a,u,s]=r,c=0;if(a.some((t=>0!==e[t]))){for(o in u)t.o(u,o)&&(t.m[o]=u[o]);s&&s(t)}for(n&&n(r);c<a.length;c++)i=a[c],t.o(e,i)&&e[i]&&e[i][0](),e[i]=0},r=self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[];r.forEach(n.bind(null,0)),r.push=n.bind(null,r.push.bind(r))})(),t(8331),t(7972)})())}}}));
@@ -87,7 +87,7 @@
87
87
  "openmrs-esm-primary-navigation-app.js"
88
88
  ],
89
89
  "auxiliaryFiles": [],
90
- "hash": "7966897b0410dd8a6e7c",
90
+ "hash": "8f1358b2b952fc1444c4",
91
91
  "childrenByOrder": {}
92
92
  },
93
93
  {
@@ -386,9 +386,9 @@
386
386
  "initial": false,
387
387
  "entry": false,
388
388
  "recorded": false,
389
- "size": 59064,
389
+ "size": 59173,
390
390
  "sizes": {
391
- "javascript": 58980,
391
+ "javascript": 59089,
392
392
  "consume-shared": 84
393
393
  },
394
394
  "names": [],
@@ -400,7 +400,7 @@
400
400
  "789.js"
401
401
  ],
402
402
  "auxiliaryFiles": [],
403
- "hash": "11dcd6e402baf251f8d6",
403
+ "hash": "2669e79af1634a6cc81f",
404
404
  "childrenByOrder": {}
405
405
  },
406
406
  {
@@ -1 +1 @@
1
- System.register("@openmrs/esm-primary-navigation-app",[],(function(e,r){return{execute:function(){e((()=>{var e,t,n,o,a,i,s,l,u,p,f,c,d,h,m,v,g,y={6585:(e,r,t)=>{(0,t(7968).s)(1)},7968:(e,r,t)=>{const n=t(1577).R;r.s=function(e){if(e||(e=1),!t.y.meta||!t.y.meta.url)throw console.error("__system_context__",t.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");t.p=n(t.y.meta.url,e)}},8331:(e,r,t)=>{t(6585)},1577:(e,r,t)=>{r.R=function(e,r){var t=document.createElement("a");t.href=e;for(var n="/"===t.pathname[0]?t.pathname:"/"+t.pathname,o=0,a=n.length;o!==r&&a>=0;)"/"===n[--a]&&o++;if(o!==r)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+r+") is greater than the number of directories ("+o+") in the URL path "+e);var i=n.slice(0,a+1);return t.protocol+"//"+t.host+i};Number.isInteger},7972:(e,r,t)=>{"use strict";var n={app:()=>Promise.all([t.e(983),t.e(789)]).then((()=>()=>t(789)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},b={};function w(e){var r=b[e];if(void 0!==r)return r.exports;var t=b[e]={id:e,loaded:!1,exports:{}};return y[e].call(t.exports,t,t.exports,w),t.loaded=!0,t.exports}return w.m=y,w.c=b,w.y=r,w.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return w.d(r,{a:r}),r},w.d=(e,r)=>{for(var t in r)w.o(r,t)&&!w.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},w.f={},w.e=e=>Promise.all(Object.keys(w.f).reduce(((r,t)=>(w.f[t](e,r),r)),[])),w.u=e=>e+".js",w.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),w.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},t="@openmrs/esm-primary-navigation-app:",w.l=(r,n,o,a)=>{if(e[r])e[r].push(n);else{var i,s;if(void 0!==o)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var p=l[u];if(p.getAttribute("src")==r||p.getAttribute("data-webpack")==t+o){i=p;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,w.nc&&i.setAttribute("nonce",w.nc),i.setAttribute("data-webpack",t+o),i.src=r),e[r]=[n];var f=(t,n)=>{i.onerror=i.onload=null,clearTimeout(c);var o=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(n)},c=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),s&&document.head.appendChild(i)}},w.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},w.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{w.S={};var e={},r={};w.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];w.o(w.S,t)||(w.S[t]={});var a=w.S[t],i="@openmrs/esm-primary-navigation-app",s=(e,r,t,n)=>{var o=a[e]=a[e]||{},s=o[r];(!s||!s.loaded&&(!n!=!s.eager?n:i>s.from))&&(o[r]={get:t,from:i,eager:!!n})},l=[];return"default"===t&&(s("@openmrs/esm-framework/src/internal","3.4.1-pre.175",(()=>Promise.all([w.e(983),w.e(889)]).then((()=>()=>w(4889))))),s("carbon-components-react","7.31.0",(()=>Promise.all([w.e(322),w.e(983),w.e(69)]).then((()=>()=>w(7322))))),s("carbon-components","10.31.0",(()=>Promise.all([w.e(25),w.e(1)]).then((()=>()=>w(25))))),s("carbon-icons","7.0.7",(()=>w.e(860).then((()=>()=>w(4860))))),s("react-dom","16.14.0",(()=>Promise.all([w.e(788),w.e(983)]).then((()=>()=>w(2788))))),s("react-i18next","11.16.2",(()=>Promise.all([w.e(743),w.e(983)]).then((()=>()=>w(5743))))),s("react-router-dom","5.3.0",(()=>Promise.all([w.e(393),w.e(983),w.e(216)]).then((()=>()=>w(7393))))),s("react","16.14.0",(()=>w.e(735).then((()=>()=>w(2735)))))),e[t]=l.length?Promise.all(l).then((()=>e[t]=1)):1}}})(),w.p="",n=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},o=(e,r)=>{e=n(e),r=n(r);for(var t=0;;){if(t>=e.length)return t<r.length&&"u"!=(typeof r[t])[0];var o=e[t],a=(typeof o)[0];if(t>=r.length)return"u"==a;var i=r[t],s=(typeof i)[0];if(a!=s)return"o"==a&&"n"==s||"s"==s||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;t++}},a=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,o=1;o<e.length;o++)n--,t+="u"==(typeof(s=e[o]))[0]?"-":(n>0?".":"")+(n=2,s);return t}var i=[];for(o=1;o<e.length;o++){var s=e[o];i.push(0===s?"not("+l()+")":1===s?"("+l()+" || "+l()+")":2===s?i.pop()+" "+i.pop():a(s))}return l();function l(){return i.pop().replace(/^\((.+)\)$/,"$1")}},i=(e,r)=>{if(0 in e){r=n(r);var t=e[0],o=t<0;o&&(t=-t-1);for(var a=0,s=1,l=!0;;s++,a++){var u,p,f=s<e.length?(typeof e[s])[0]:"";if(a>=r.length||"o"==(p=(typeof(u=r[a]))[0]))return!l||("u"==f?s>t&&!o:""==f!=o);if("u"==p){if(!l||"u"!=f)return!1}else if(l)if(f==p)if(s<=t){if(u!=e[s])return!1}else{if(o?u>e[s]:u<e[s])return!1;u!=e[s]&&(l=!1)}else if("s"!=f&&"n"!=f){if(o||s<=t)return!1;l=!1,s--}else{if(s<=t||p<f!=o)return!1;l=!1}else"s"!=f&&"n"!=f&&(l=!1,s--)}}var c=[],d=c.pop.bind(c);for(a=1;a<e.length;a++){var h=e[a];c.push(1==h?d()|d():2==h?d()&d():h?i(h,r):!d())}return!!d()},s=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&o(e,r)?r:e),0)},l=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+a(n)+")",u=(e,r,t,n)=>{var o=s(e,t);return f(e[t][o])},p=(e,r,t,n)=>{var o=s(e,t);return i(n,o)||"undefined"!=typeof console&&console.warn&&console.warn(l(e,t,o,n)),f(e[t][o])},f=e=>(e.loaded=1,e.get()),d=(c=e=>function(r,t,n,o){var a=w.I(r);return a&&a.then?a.then(e.bind(e,r,w.S[r],t,n,o)):e(r,w.S[r],t,n,o)})(((e,r,t,n)=>r&&w.o(r,t)?u(r,0,t):n())),h=c(((e,r,t,n,o)=>r&&w.o(r,t)?p(r,0,t,n):o())),m={},v={6983:()=>h("default","react",[1,16],(()=>w.e(735).then((()=>()=>w(2735))))),7644:()=>h("default","@openmrs/esm-framework",[0,3,1,14,,"pre"],(()=>w.e(889).then((()=>()=>w(4889))))),8478:()=>d("default","@openmrs/esm-framework/src/internal",(()=>w.e(889).then((()=>()=>w(4889))))),5412:()=>h("default","react-dom",[1,16],(()=>w.e(788).then((()=>()=>w(2788))))),6240:()=>h("default","carbon-icons",[1,7],(()=>w.e(860).then((()=>()=>w(4860))))),7569:()=>h("default","carbon-components",[1,10],(()=>w.e(25).then((()=>()=>w(25))))),9784:()=>h("default","carbon-components-react",[1,7],(()=>Promise.all([w.e(322),w.e(69)]).then((()=>()=>w(7322))))),2268:()=>h("default","react-router-dom",[1,5],(()=>w.e(393).then((()=>()=>w(7393))))),2680:()=>h("default","react-i18next",[1,11],(()=>w.e(743).then((()=>()=>w(5743)))))},g={69:[5412,6240,7569],212:[2268,2680],784:[9784],789:[7644,8478],983:[6983]},w.f.consumes=(e,r)=>{w.o(g,e)&&g[e].forEach((e=>{if(w.o(m,e))return r.push(m[e]);var t=r=>{m[e]=0,w.m[e]=t=>{delete w.c[e],t.exports=r()}},n=r=>{delete m[e],w.m[e]=t=>{throw delete w.c[e],r}};try{var o=v[e]();o.then?r.push(m[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},(()=>{var e={115:0};w.f.j=(r,t)=>{var n=w.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(69|784|983)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=w.p+w.u(r),i=new Error;w.l(a,(t=>{if(w.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,i,s]=t,l=0;if(a.some((r=>0!==e[r]))){for(n in i)w.o(i,n)&&(w.m[n]=i[n]);s&&s(w)}for(r&&r(t);l<a.length;l++)o=a[l],w.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),w(8331),w(7972)})())}}}));
1
+ System.register("@openmrs/esm-primary-navigation-app",[],(function(e,r){return{execute:function(){e((()=>{var e,t,n,o,a,i,s,l,u,p,f,c,d,h,m,v,g,y={6585:(e,r,t)=>{(0,t(7968).s)(1)},7968:(e,r,t)=>{const n=t(1577).R;r.s=function(e){if(e||(e=1),!t.y.meta||!t.y.meta.url)throw console.error("__system_context__",t.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");t.p=n(t.y.meta.url,e)}},8331:(e,r,t)=>{t(6585)},1577:(e,r,t)=>{r.R=function(e,r){var t=document.createElement("a");t.href=e;for(var n="/"===t.pathname[0]?t.pathname:"/"+t.pathname,o=0,a=n.length;o!==r&&a>=0;)"/"===n[--a]&&o++;if(o!==r)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+r+") is greater than the number of directories ("+o+") in the URL path "+e);var i=n.slice(0,a+1);return t.protocol+"//"+t.host+i};Number.isInteger},7972:(e,r,t)=>{"use strict";var n={app:()=>Promise.all([t.e(983),t.e(789)]).then((()=>()=>t(789)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},b={};function w(e){var r=b[e];if(void 0!==r)return r.exports;var t=b[e]={id:e,loaded:!1,exports:{}};return y[e].call(t.exports,t,t.exports,w),t.loaded=!0,t.exports}return w.m=y,w.c=b,w.y=r,w.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return w.d(r,{a:r}),r},w.d=(e,r)=>{for(var t in r)w.o(r,t)&&!w.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},w.f={},w.e=e=>Promise.all(Object.keys(w.f).reduce(((r,t)=>(w.f[t](e,r),r)),[])),w.u=e=>e+".js",w.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),w.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},t="@openmrs/esm-primary-navigation-app:",w.l=(r,n,o,a)=>{if(e[r])e[r].push(n);else{var i,s;if(void 0!==o)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var p=l[u];if(p.getAttribute("src")==r||p.getAttribute("data-webpack")==t+o){i=p;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,w.nc&&i.setAttribute("nonce",w.nc),i.setAttribute("data-webpack",t+o),i.src=r),e[r]=[n];var f=(t,n)=>{i.onerror=i.onload=null,clearTimeout(c);var o=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(n)},c=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),s&&document.head.appendChild(i)}},w.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},w.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{w.S={};var e={},r={};w.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];w.o(w.S,t)||(w.S[t]={});var a=w.S[t],i="@openmrs/esm-primary-navigation-app",s=(e,r,t,n)=>{var o=a[e]=a[e]||{},s=o[r];(!s||!s.loaded&&(!n!=!s.eager?n:i>s.from))&&(o[r]={get:t,from:i,eager:!!n})},l=[];return"default"===t&&(s("@openmrs/esm-framework/src/internal","3.4.1-pre.189",(()=>Promise.all([w.e(983),w.e(889)]).then((()=>()=>w(4889))))),s("carbon-components-react","7.31.0",(()=>Promise.all([w.e(322),w.e(983),w.e(69)]).then((()=>()=>w(7322))))),s("carbon-components","10.31.0",(()=>Promise.all([w.e(25),w.e(1)]).then((()=>()=>w(25))))),s("carbon-icons","7.0.7",(()=>w.e(860).then((()=>()=>w(4860))))),s("react-dom","16.14.0",(()=>Promise.all([w.e(788),w.e(983)]).then((()=>()=>w(2788))))),s("react-i18next","11.16.2",(()=>Promise.all([w.e(743),w.e(983)]).then((()=>()=>w(5743))))),s("react-router-dom","5.3.0",(()=>Promise.all([w.e(393),w.e(983),w.e(216)]).then((()=>()=>w(7393))))),s("react","16.14.0",(()=>w.e(735).then((()=>()=>w(2735)))))),e[t]=l.length?Promise.all(l).then((()=>e[t]=1)):1}}})(),w.p="",n=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},o=(e,r)=>{e=n(e),r=n(r);for(var t=0;;){if(t>=e.length)return t<r.length&&"u"!=(typeof r[t])[0];var o=e[t],a=(typeof o)[0];if(t>=r.length)return"u"==a;var i=r[t],s=(typeof i)[0];if(a!=s)return"o"==a&&"n"==s||"s"==s||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;t++}},a=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,o=1;o<e.length;o++)n--,t+="u"==(typeof(s=e[o]))[0]?"-":(n>0?".":"")+(n=2,s);return t}var i=[];for(o=1;o<e.length;o++){var s=e[o];i.push(0===s?"not("+l()+")":1===s?"("+l()+" || "+l()+")":2===s?i.pop()+" "+i.pop():a(s))}return l();function l(){return i.pop().replace(/^\((.+)\)$/,"$1")}},i=(e,r)=>{if(0 in e){r=n(r);var t=e[0],o=t<0;o&&(t=-t-1);for(var a=0,s=1,l=!0;;s++,a++){var u,p,f=s<e.length?(typeof e[s])[0]:"";if(a>=r.length||"o"==(p=(typeof(u=r[a]))[0]))return!l||("u"==f?s>t&&!o:""==f!=o);if("u"==p){if(!l||"u"!=f)return!1}else if(l)if(f==p)if(s<=t){if(u!=e[s])return!1}else{if(o?u>e[s]:u<e[s])return!1;u!=e[s]&&(l=!1)}else if("s"!=f&&"n"!=f){if(o||s<=t)return!1;l=!1,s--}else{if(s<=t||p<f!=o)return!1;l=!1}else"s"!=f&&"n"!=f&&(l=!1,s--)}}var c=[],d=c.pop.bind(c);for(a=1;a<e.length;a++){var h=e[a];c.push(1==h?d()|d():2==h?d()&d():h?i(h,r):!d())}return!!d()},s=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&o(e,r)?r:e),0)},l=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+a(n)+")",u=(e,r,t,n)=>{var o=s(e,t);return f(e[t][o])},p=(e,r,t,n)=>{var o=s(e,t);return i(n,o)||"undefined"!=typeof console&&console.warn&&console.warn(l(e,t,o,n)),f(e[t][o])},f=e=>(e.loaded=1,e.get()),d=(c=e=>function(r,t,n,o){var a=w.I(r);return a&&a.then?a.then(e.bind(e,r,w.S[r],t,n,o)):e(r,w.S[r],t,n,o)})(((e,r,t,n)=>r&&w.o(r,t)?u(r,0,t):n())),h=c(((e,r,t,n,o)=>r&&w.o(r,t)?p(r,0,t,n):o())),m={},v={6983:()=>h("default","react",[1,16],(()=>w.e(735).then((()=>()=>w(2735))))),7644:()=>h("default","@openmrs/esm-framework",[0,3,1,14,,"pre"],(()=>w.e(889).then((()=>()=>w(4889))))),8478:()=>d("default","@openmrs/esm-framework/src/internal",(()=>w.e(889).then((()=>()=>w(4889))))),5412:()=>h("default","react-dom",[1,16],(()=>w.e(788).then((()=>()=>w(2788))))),6240:()=>h("default","carbon-icons",[1,7],(()=>w.e(860).then((()=>()=>w(4860))))),7569:()=>h("default","carbon-components",[1,10],(()=>w.e(25).then((()=>()=>w(25))))),9784:()=>h("default","carbon-components-react",[1,7],(()=>Promise.all([w.e(322),w.e(69)]).then((()=>()=>w(7322))))),2268:()=>h("default","react-router-dom",[1,5],(()=>w.e(393).then((()=>()=>w(7393))))),2680:()=>h("default","react-i18next",[1,11],(()=>w.e(743).then((()=>()=>w(5743)))))},g={69:[5412,6240,7569],212:[2268,2680],784:[9784],789:[7644,8478],983:[6983]},w.f.consumes=(e,r)=>{w.o(g,e)&&g[e].forEach((e=>{if(w.o(m,e))return r.push(m[e]);var t=r=>{m[e]=0,w.m[e]=t=>{delete w.c[e],t.exports=r()}},n=r=>{delete m[e],w.m[e]=t=>{throw delete w.c[e],r}};try{var o=v[e]();o.then?r.push(m[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},(()=>{var e={115:0};w.f.j=(r,t)=>{var n=w.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(69|784|983)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=w.p+w.u(r),i=new Error;w.l(a,(t=>{if(w.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,i,s]=t,l=0;if(a.some((r=>0!==e[r]))){for(n in i)w.o(i,n)&&(w.m[n]=i[n]);s&&s(w)}for(r&&r(t);l<a.length;l++)o=a[l],w.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),w(8331),w(7972)})())}}}));