@pucp-gidis-hiisc/esm-fua-app 1.0.0

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 (95) hide show
  1. package/.turbo/turbo-extract-translations.log +11 -0
  2. package/.turbo/turbo-lint.log +0 -0
  3. package/.turbo/turbo-test.log +1 -0
  4. package/.turbo/turbo-typescript.log +0 -0
  5. package/README.md +9 -0
  6. package/dist/@pucp-gidis-hiisc/esm-dyaku-app.3156ff9f6a47f657.hot-update.js +11 -0
  7. package/dist/@pucp-gidis-hiisc/esm-dyaku-app.3156ff9f6a47f657.hot-update.js.map +1 -0
  8. package/dist/@pucp-gidis-hiisc/esm-dyaku-app.52df2f9ab9342568.hot-update.js +11 -0
  9. package/dist/@pucp-gidis-hiisc/esm-dyaku-app.52df2f9ab9342568.hot-update.js.map +1 -0
  10. package/dist/@pucp-gidis-hiisc/esm-dyaku-app.670ae221c7eb0597.hot-update.js +11 -0
  11. package/dist/@pucp-gidis-hiisc/esm-dyaku-app.670ae221c7eb0597.hot-update.js.map +1 -0
  12. package/dist/_pucp-gidis-hiisc_esm-dyaku-app.3156ff9f6a47f657.hot-update.json +1 -0
  13. package/dist/_pucp-gidis-hiisc_esm-dyaku-app.52df2f9ab9342568.hot-update.json +1 -0
  14. package/dist/_pucp-gidis-hiisc_esm-dyaku-app.670ae221c7eb0597.hot-update.json +1 -0
  15. package/dist/main.3156ff9f6a47f657.hot-update.js +11 -0
  16. package/dist/main.3156ff9f6a47f657.hot-update.js.map +1 -0
  17. package/dist/main.3156ff9f6a47f657.hot-update.json +1 -0
  18. package/dist/main.52df2f9ab9342568.hot-update.js +11 -0
  19. package/dist/main.52df2f9ab9342568.hot-update.js.map +1 -0
  20. package/dist/main.52df2f9ab9342568.hot-update.json +1 -0
  21. package/dist/main.670ae221c7eb0597.hot-update.js +11 -0
  22. package/dist/main.670ae221c7eb0597.hot-update.js.map +1 -0
  23. package/dist/main.670ae221c7eb0597.hot-update.json +1 -0
  24. package/dist/main.js +5012 -0
  25. package/dist/main.js.map +1 -0
  26. package/dist/node_modules_babel_runtime_helpers_esm_objectWithoutPropertiesLoose_js.js +28 -0
  27. package/dist/node_modules_babel_runtime_helpers_esm_objectWithoutPropertiesLoose_js.js.map +1 -0
  28. package/dist/node_modules_client-only_index_js-node_modules_use-sync-external-store_shim_index_js-_e121-_afc40.js +137 -0
  29. package/dist/node_modules_client-only_index_js-node_modules_use-sync-external-store_shim_index_js-_e121-_afc40.js.map +1 -0
  30. package/dist/node_modules_client-only_index_js-node_modules_use-sync-external-store_shim_index_js-_e121-_afc41.js +137 -0
  31. package/dist/node_modules_client-only_index_js-node_modules_use-sync-external-store_shim_index_js-_e121-_afc41.js.map +1 -0
  32. package/dist/node_modules_dayjs_dayjs_min_js.js +14 -0
  33. package/dist/node_modules_dayjs_dayjs_min_js.js.map +1 -0
  34. package/dist/pucp-gidis-hiisc-esm-dyaku-app.js +4902 -0
  35. package/dist/pucp-gidis-hiisc-esm-dyaku-app.js.buildmanifest.json +705 -0
  36. package/dist/pucp-gidis-hiisc-esm-dyaku-app.js.map +1 -0
  37. package/dist/routes.json +1 -0
  38. package/dist/src_dyaku-patients_dyaku-patients-link_component_tsx.js +46 -0
  39. package/dist/src_dyaku-patients_dyaku-patients-link_component_tsx.js.map +1 -0
  40. package/dist/src_dyaku-patients_dyaku_main_component_tsx.3156ff9f6a47f657.hot-update.js +309 -0
  41. package/dist/src_dyaku-patients_dyaku_main_component_tsx.3156ff9f6a47f657.hot-update.js.map +1 -0
  42. package/dist/src_dyaku-patients_dyaku_main_component_tsx.52df2f9ab9342568.hot-update.js +309 -0
  43. package/dist/src_dyaku-patients_dyaku_main_component_tsx.52df2f9ab9342568.hot-update.js.map +1 -0
  44. package/dist/src_dyaku-patients_dyaku_main_component_tsx.670ae221c7eb0597.hot-update.js +309 -0
  45. package/dist/src_dyaku-patients_dyaku_main_component_tsx.670ae221c7eb0597.hot-update.js.map +1 -0
  46. package/dist/src_dyaku-patients_dyaku_main_component_tsx.js +2520 -0
  47. package/dist/src_dyaku-patients_dyaku_main_component_tsx.js.map +1 -0
  48. package/dist/src_index_ts.js +146 -0
  49. package/dist/src_index_ts.js.map +1 -0
  50. package/dist/translations_en_json.js +14 -0
  51. package/dist/translations_es_json.js +14 -0
  52. package/dist/vendors-node_modules_carbon_react_es_index_js.js +121758 -0
  53. package/dist/vendors-node_modules_carbon_react_es_index_js.js.map +1 -0
  54. package/dist/vendors-node_modules_openmrs_esm-framework_src_internal_ts.js +4256 -0
  55. package/dist/vendors-node_modules_openmrs_esm-framework_src_internal_ts.js.map +1 -0
  56. package/dist/vendors-node_modules_openmrs_esm-patient-common-lib_src_index_ts.js +4200 -0
  57. package/dist/vendors-node_modules_openmrs_esm-patient-common-lib_src_index_ts.js.map +1 -0
  58. package/dist/vendors-node_modules_openmrs_esm-styleguide_src_internal_ts.js +119007 -0
  59. package/dist/vendors-node_modules_openmrs_esm-styleguide_src_internal_ts.js.map +1 -0
  60. package/dist/vendors-node_modules_react-dom_index_js.js +30632 -0
  61. package/dist/vendors-node_modules_react-dom_index_js.js.map +1 -0
  62. package/dist/vendors-node_modules_react-i18next_dist_es_index_js.js +1392 -0
  63. package/dist/vendors-node_modules_react-i18next_dist_es_index_js.js.map +1 -0
  64. package/dist/vendors-node_modules_react-router-dom_dist_index_js.js +8221 -0
  65. package/dist/vendors-node_modules_react-router-dom_dist_index_js.js.map +1 -0
  66. package/dist/vendors-node_modules_react_index_js.js +2772 -0
  67. package/dist/vendors-node_modules_react_index_js.js.map +1 -0
  68. package/dist/vendors-node_modules_rxjs__esm5_index_js.js +6245 -0
  69. package/dist/vendors-node_modules_rxjs__esm5_index_js.js.map +1 -0
  70. package/dist/vendors-node_modules_swr_dist__internal_index_mjs.js +732 -0
  71. package/dist/vendors-node_modules_swr_dist__internal_index_mjs.js.map +1 -0
  72. package/dist/vendors-node_modules_swr_dist_immutable_index_mjs.js +572 -0
  73. package/dist/vendors-node_modules_swr_dist_immutable_index_mjs.js.map +1 -0
  74. package/dist/vendors-node_modules_swr_dist_infinite_index_mjs.js +815 -0
  75. package/dist/vendors-node_modules_swr_dist_infinite_index_mjs.js.map +1 -0
  76. package/jest.config.js +3 -0
  77. package/package.json +68 -0
  78. package/src/config-schema.ts +61 -0
  79. package/src/constant.ts +1 -0
  80. package/src/dashboard.meta.tsx +8 -0
  81. package/src/declarations.d.ts +6 -0
  82. package/src/fua/case-management-header.tsx +37 -0
  83. package/src/fua/case-management-illustration.tsx +13 -0
  84. package/src/fua/fua-request-table.scss +173 -0
  85. package/src/fua/fuaRequestTable.tsx +147 -0
  86. package/src/fua/solicitudes/.gitkeep +0 -0
  87. package/src/hooks/useFuaRequests.ts +48 -0
  88. package/src/index.ts +27 -0
  89. package/src/left-panel-link.component.tsx +42 -0
  90. package/src/root.scss +102 -0
  91. package/src/routes.json +28 -0
  92. package/translations/en.json +0 -0
  93. package/translations/es.json +0 -0
  94. package/tsconfig.json +5 -0
  95. package/webpack.config.js +1 -0
@@ -0,0 +1,4256 @@
1
+ (globalThis["webpackChunk_pucp_gidis_hiisc_esm_dyaku_app"] = globalThis["webpackChunk_pucp_gidis_hiisc_esm_dyaku_app"] || []).push([["vendors-node_modules_openmrs_esm-framework_src_internal_ts"],{
2
+
3
+ /***/ "../../node_modules/@openmrs/esm-dynamic-loading/dist/dynamic-loading.js":
4
+ /*!*******************************************************************************!*\
5
+ !*** ../../node_modules/@openmrs/esm-dynamic-loading/dist/dynamic-loading.js ***!
6
+ \*******************************************************************************/
7
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
8
+
9
+ "use strict";
10
+ __webpack_require__.r(__webpack_exports__);
11
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12
+ /* harmony export */ getCurrentImportMap: () => (/* binding */ getCurrentImportMap),
13
+ /* harmony export */ importDynamic: () => (/* binding */ importDynamic),
14
+ /* harmony export */ preloadImport: () => (/* binding */ preloadImport),
15
+ /* harmony export */ slugify: () => (/* binding */ slugify)
16
+ /* harmony export */ });
17
+ /* harmony import */ var _openmrs_esm_globals__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @openmrs/esm-globals */ "../../node_modules/@openmrs/esm-globals/dist/index.js");
18
+ /* harmony import */ var _openmrs_esm_translations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @openmrs/esm-translations */ "../../node_modules/@openmrs/esm-translations/dist/index.js");
19
+ /** @module @category Dynamic Loading */
20
+ // hack to make the types defined in esm-globals available here
21
+
22
+
23
+ /**
24
+ * @internal
25
+ *
26
+ * Transforms an ESM module name to a valid JS identifier
27
+ *
28
+ * @param name the name of a module
29
+ * @returns An opaque, equivalent JS identifier for the module
30
+ */ function slugify(name) {
31
+ return name.replace(/[\/\-@]/g, '_');
32
+ }
33
+ /**
34
+ * Loads the named export from a named package. This might be used like:
35
+ *
36
+ * ```js
37
+ * const { someComponent } = importDynamic("@openmrs/esm-template-app")
38
+ * ```
39
+ *
40
+ * @param jsPackage The package to load the export from.
41
+ * @param share Indicates the name of the shared module; this is an advanced feature if the package you are loading
42
+ * doesn't use the default OpenMRS shared module name "./start".
43
+ * @param options Additional options to control loading this script.
44
+ * @param options.importMap The import map to use to load the script. This is useful for situations where you're
45
+ * loading multiple scripts at a time, since it allows the calling code to supply an importMap, saving multiple
46
+ * calls to `getCurrentImportMap()`.
47
+ * @param options.maxLoadingTime A positive integer representing the maximum number of milliseconds to wait for the
48
+ * script to load before the promise returned from this function will be rejected. Defaults to 600,000 milliseconds,
49
+ * i.e., 10 minutes.
50
+ */ async function importDynamic(jsPackage, share = './start', options) {
51
+ // default to 10 minutes
52
+ const maxLoadingTime = !options?.maxLoadingTime || options.maxLoadingTime <= 0 ? 600000 : options.maxLoadingTime;
53
+ let timeout = undefined;
54
+ await Promise.race([
55
+ preloadImport(jsPackage, options?.importMap),
56
+ new Promise((_, reject)=>{
57
+ timeout = setTimeout(()=>{
58
+ reject(new Error(`Could not resolve requested script, ${jsPackage}, within ${humanReadableMs(maxLoadingTime)}.`));
59
+ }, maxLoadingTime);
60
+ })
61
+ ]);
62
+ timeout && clearTimeout(timeout);
63
+ const jsPackageSlug = slugify(jsPackage);
64
+ const container = window[jsPackageSlug];
65
+ if (!isFederatedModule(container)) {
66
+ const error = `The global variable ${jsPackageSlug} does not refer to a federated module`;
67
+ console.error(error);
68
+ throw new Error(error);
69
+ }
70
+ container.init(__webpack_require__.S.default);
71
+ const factory = await container.get(share);
72
+ const module = factory();
73
+ if (!(typeof module === 'object') || module === null) {
74
+ const error = `Container for ${jsPackage} did not return an ESM module as expected`;
75
+ console.error(error);
76
+ throw new Error(error);
77
+ }
78
+ return module;
79
+ }
80
+ /**
81
+ * Utility function to convert milliseconds into human-readable strings with rather absurd
82
+ * levels of precision.
83
+ *
84
+ * @param ms Number of milliseconds
85
+ * @returns A human-readable string useful only for error logging, where we can assume English
86
+ */ function humanReadableMs(ms) {
87
+ if (ms < 1000) {
88
+ return `${ms} milliseconds`;
89
+ } else if (ms < 60000) {
90
+ return `${Math.floor(ms / 1000)} seconds`;
91
+ } else if (ms < 3600000) {
92
+ return `${Math.floor(ms / 60000)} minutes`;
93
+ } else if (ms < 86400000) {
94
+ return `${Math.floor(ms / 3600000)} hours`;
95
+ } else {
96
+ return `${Math.floor(ms / 86400000)} days`;
97
+ }
98
+ }
99
+ /**
100
+ * @internal
101
+ *
102
+ * This internal method is used to ensure that the script belonging
103
+ * to the given package is loaded and added to the head.
104
+ *
105
+ * @param jsPackage The package to load
106
+ * @param importMap The import map to use for loading this package.
107
+ * The main reason for specifying this is to avoid needing to call
108
+ * `getCurrentPageMap()` for every script when bulk loading.
109
+ */ async function preloadImport(jsPackage, importMap) {
110
+ if (typeof jsPackage !== 'string' || jsPackage.trim().length === 0) {
111
+ const error = 'Attempted to call importDynamic() without supplying a package to load';
112
+ console.error(error);
113
+ throw new Error(error);
114
+ }
115
+ const jsPackageSlug = slugify(jsPackage);
116
+ if (!window[jsPackageSlug]) {
117
+ const activeImportMap = importMap ?? await getCurrentImportMap();
118
+ if (!activeImportMap.imports.hasOwnProperty(jsPackage)) {
119
+ const error = `Could not find the package ${jsPackage} defined in the current importmap`;
120
+ console.error(error);
121
+ throw new Error(error);
122
+ }
123
+ let url = activeImportMap.imports[jsPackage];
124
+ if (url.startsWith('./')) {
125
+ url = window.spaBase + url.substring(1);
126
+ }
127
+ const isOverridden = !!window.localStorage.getItem(`import-map-override:${jsPackage}`);
128
+ try {
129
+ return await new Promise((resolve, reject)=>{
130
+ loadScript(url, resolve, reject);
131
+ });
132
+ } catch (err) {
133
+ if (isOverridden) {
134
+ (0,_openmrs_esm_globals__WEBPACK_IMPORTED_MODULE_0__.dispatchToastShown)({
135
+ kind: 'error',
136
+ title: (0,_openmrs_esm_translations__WEBPACK_IMPORTED_MODULE_1__.getCoreTranslation)('scriptLoadingFailed', 'Error: Script failed to load'),
137
+ description: (0,_openmrs_esm_translations__WEBPACK_IMPORTED_MODULE_1__.getCoreTranslation)('scriptLoadingError', 'Failed to load overridden script from {{- url}}. Please check that the bundled script is available at the expected URL. Click the button below to reset all import map overrides.', {
138
+ url
139
+ }),
140
+ actionButtonLabel: (0,_openmrs_esm_translations__WEBPACK_IMPORTED_MODULE_1__.getCoreTranslation)('resetOverrides', 'Reset overrides'),
141
+ onActionButtonClick () {
142
+ window.importMapOverrides.resetOverrides();
143
+ window.location.reload();
144
+ }
145
+ });
146
+ }
147
+ return Promise.reject(err);
148
+ }
149
+ }
150
+ return Promise.resolve();
151
+ }
152
+ /**
153
+ * @internal
154
+ *
155
+ * Used to load the current import map
156
+ *
157
+ * @returns The current page map
158
+ */ async function getCurrentImportMap() {
159
+ return window.importMapOverrides.getCurrentPageMap();
160
+ }
161
+ function isFederatedModule(a) {
162
+ return typeof a === 'object' && a !== null && 'init' in a && typeof a['init'] === 'function' && 'get' in a && typeof a['get'] === 'function';
163
+ }
164
+ // internals to track script loading
165
+ // basically, if we're already loading a script, we should wait until the script is loaded
166
+ // we use a global to track this
167
+ const OPENMRS_SCRIPT_LOADING = Symbol('__openmrs_script_loading');
168
+ /**
169
+ * Appends a `<script>` to the DOM with the given URL.
170
+ */ function loadScript(url, resolve, reject) {
171
+ const scriptElement = document.head.querySelector(`script[src="${url}"]`);
172
+ let scriptLoading = window[OPENMRS_SCRIPT_LOADING];
173
+ if (!scriptLoading) {
174
+ scriptLoading = window[OPENMRS_SCRIPT_LOADING] = new Set([]);
175
+ }
176
+ if (!scriptElement) {
177
+ scriptLoading.add(url);
178
+ const element = document.createElement('script');
179
+ element.src = url;
180
+ element.type = 'text/javascript';
181
+ element.async = true;
182
+ // loadTime() displays an error if a script takes more than 5 seconds to load
183
+ const loadTimeout = setTimeout(()=>{
184
+ console.error(`The script at ${url} did not load within 5 seconds. This may indicate an issue with the imports in the script's entry-point file or with the script's bundler configuration.`);
185
+ }, 5000); // 5 seconds; this is arbitrary
186
+ let loadFn, errFn, finishScriptLoading;
187
+ finishScriptLoading = ()=>{
188
+ clearTimeout(loadTimeout);
189
+ scriptLoading.delete(url);
190
+ loadFn && element.removeEventListener('load', loadFn);
191
+ errFn && element.removeEventListener('error', errFn);
192
+ };
193
+ loadFn = ()=>{
194
+ finishScriptLoading();
195
+ resolve(null);
196
+ };
197
+ errFn = (ev)=>{
198
+ finishScriptLoading();
199
+ const msg = `Failed to load script from ${url}`;
200
+ console.error(msg, ev);
201
+ reject(ev.message ?? msg);
202
+ };
203
+ element.addEventListener('load', loadFn);
204
+ element.addEventListener('error', errFn);
205
+ document.head.appendChild(element);
206
+ } else {
207
+ if (scriptLoading.has(url)) {
208
+ let loadFn, errFn, finishScriptLoading;
209
+ finishScriptLoading = ()=>{
210
+ loadFn && scriptElement.removeEventListener('load', loadFn);
211
+ errFn && scriptElement.removeEventListener('error', errFn);
212
+ };
213
+ loadFn = ()=>{
214
+ finishScriptLoading();
215
+ resolve(null);
216
+ };
217
+ // this errFn does not log anything
218
+ errFn = (ev)=>{
219
+ finishScriptLoading();
220
+ reject(ev.message);
221
+ };
222
+ scriptElement.addEventListener('load', loadFn);
223
+ scriptElement.addEventListener('error', errFn);
224
+ } else {
225
+ console.warn(`Script at ${url} already loaded. Not loading it again.`);
226
+ resolve(null);
227
+ }
228
+ }
229
+ }
230
+
231
+
232
+ /***/ }),
233
+
234
+ /***/ "../../node_modules/@openmrs/esm-dynamic-loading/dist/index.js":
235
+ /*!*********************************************************************!*\
236
+ !*** ../../node_modules/@openmrs/esm-dynamic-loading/dist/index.js ***!
237
+ \*********************************************************************/
238
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
239
+
240
+ "use strict";
241
+ __webpack_require__.r(__webpack_exports__);
242
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
243
+ /* harmony export */ getCurrentImportMap: () => (/* reexport safe */ _dynamic_loading_js__WEBPACK_IMPORTED_MODULE_0__.getCurrentImportMap),
244
+ /* harmony export */ importDynamic: () => (/* reexport safe */ _dynamic_loading_js__WEBPACK_IMPORTED_MODULE_0__.importDynamic),
245
+ /* harmony export */ preloadImport: () => (/* reexport safe */ _dynamic_loading_js__WEBPACK_IMPORTED_MODULE_0__.preloadImport),
246
+ /* harmony export */ slugify: () => (/* reexport safe */ _dynamic_loading_js__WEBPACK_IMPORTED_MODULE_0__.slugify)
247
+ /* harmony export */ });
248
+ /* harmony import */ var _dynamic_loading_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dynamic-loading.js */ "../../node_modules/@openmrs/esm-dynamic-loading/dist/dynamic-loading.js");
249
+
250
+
251
+
252
+ /***/ }),
253
+
254
+ /***/ "../../node_modules/@openmrs/esm-expression-evaluator/dist/extractor.js":
255
+ /*!******************************************************************************!*\
256
+ !*** ../../node_modules/@openmrs/esm-expression-evaluator/dist/extractor.js ***!
257
+ \******************************************************************************/
258
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
259
+
260
+ "use strict";
261
+ __webpack_require__.r(__webpack_exports__);
262
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
263
+ /* harmony export */ extractVariableNames: () => (/* binding */ extractVariableNames)
264
+ /* harmony export */ });
265
+ /* harmony import */ var _evaluator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./evaluator.js */ "../../node_modules/jsep/dist/jsep.js");
266
+ /* harmony import */ var _globals_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./globals.js */ "../../node_modules/@openmrs/esm-expression-evaluator/dist/globals.js");
267
+ /** @category Utility */
268
+
269
+ /**
270
+ * `extractVariableNames()` is a companion function for `evaluate()` and `evaluateAsync()` which extracts the
271
+ * names of all unbound identifiers used in the expression. The idea is to be able to extract all of the names
272
+ * of variables that will need to be supplied in order to correctly process the expression.
273
+ *
274
+ * @example
275
+ * ```ts
276
+ * // variables will be ['isEmpty', 'array']
277
+ * const variables = extractVariableNames('!isEmpty(array)')
278
+ * ```
279
+ *
280
+ * An identifier is considered "unbound" if it is not a reference to the property of an object, is not defined
281
+ * as a parameter to an inline arrow function, and is not a global value. E.g.,
282
+ *
283
+ * @example
284
+ * ```ts
285
+ * // variables will be ['obj']
286
+ * const variables = extractVariableNames('obj.prop()')
287
+ * ```
288
+ *
289
+ * @example
290
+ * ```ts
291
+ * // variables will be ['arr', 'needle']
292
+ * const variables = extractVariableNames('arr.filter(v => v === needle)')
293
+ * ```
294
+ *
295
+ @example
296
+ * ```ts
297
+ * // variables will be ['myVar']
298
+ * const variables = extractVariableNames('new String(myVar)')
299
+ * ```
300
+ *
301
+ * Note that because this expression evaluator uses a restricted definition of "global" there are some Javascript
302
+ * globals that will be reported as a unbound expression. This is expected because the evaluator will still fail
303
+ * on these expressions.
304
+ */ function extractVariableNames(expression) {
305
+ if (typeof expression !== 'string' && (typeof expression !== 'object' || !expression || !('type' in expression))) {
306
+ throw `Unknown expression type ${expression}. Expressions must either be a string or pre-compiled string.`;
307
+ }
308
+ const context = createAsynchronousContext();
309
+ visitExpression(typeof expression === 'string' ? (0,_evaluator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(expression) : expression, context);
310
+ return [
311
+ ...context.variables
312
+ ];
313
+ }
314
+ function visitExpression(expression, context) {
315
+ switch(expression.type){
316
+ case 'UnaryExpression':
317
+ return visitUnaryExpression(expression, context);
318
+ case 'BinaryExpression':
319
+ return visitBinaryExpression(expression, context);
320
+ case 'ConditionalExpression':
321
+ return visitConditionalExpression(expression, context);
322
+ case 'CallExpression':
323
+ return visitCallExpression(expression, context);
324
+ case 'ArrowFunctionExpression':
325
+ return visitArrowFunctionExpression(expression, context);
326
+ case 'MemberExpression':
327
+ return visitMemberExpression(expression, context);
328
+ case 'ArrayExpression':
329
+ return visitArrayExpression(expression, context);
330
+ case 'SequenceExpression':
331
+ return visitSequenceExpression(expression, context);
332
+ case 'NewExpression':
333
+ return visitNewExpression(expression, context);
334
+ case 'Literal':
335
+ return visitLiteral(expression, context);
336
+ case 'Identifier':
337
+ return visitIdentifier(expression, context);
338
+ case 'TemplateLiteral':
339
+ return visitTemplateLiteral(expression, context);
340
+ case 'TemplateElement':
341
+ return visitTemplateElement(expression, context);
342
+ default:
343
+ throw `Expression evaluator does not support expression of type '${expression.type}'`;
344
+ }
345
+ }
346
+ function visitUnaryExpression(expression, context) {
347
+ return visitExpression(expression.argument, context);
348
+ }
349
+ function visitBinaryExpression(expression, context) {
350
+ const left = visitExpression(expression.left, context);
351
+ const right = visitExpression(expression.right, context);
352
+ return [
353
+ left,
354
+ right
355
+ ].filter(Boolean);
356
+ }
357
+ function visitConditionalExpression(expression, context) {
358
+ const consequent = visitExpression(expression.consequent, context);
359
+ const test = visitExpression(expression.test, context);
360
+ const alternate = visitExpression(expression.alternate, context);
361
+ return [
362
+ consequent,
363
+ test,
364
+ alternate
365
+ ].filter(Boolean);
366
+ }
367
+ function visitCallExpression(expression, context) {
368
+ const fn = visitExpression(expression.callee, context);
369
+ expression.arguments?.map(handleNullableExpression(context));
370
+ return fn;
371
+ }
372
+ function visitArrowFunctionExpression(expression, context) {
373
+ const newContext = {
374
+ ...context
375
+ };
376
+ newContext.isLocalExpression = true;
377
+ const params = expression.params?.map(handleNullableExpression(newContext)) ?? [];
378
+ const bodyVariables = visitExpression(expression.body, newContext) ?? [];
379
+ if (bodyVariables && Array.isArray(bodyVariables)) {
380
+ for (const v of bodyVariables){
381
+ if (!params.includes(v)) {
382
+ context.variables.add(v);
383
+ }
384
+ }
385
+ }
386
+ }
387
+ function visitMemberExpression(expression, context) {
388
+ visitExpression(expression.object, context);
389
+ const newContext = {
390
+ ...context
391
+ };
392
+ newContext.isLocalExpression = true;
393
+ visitExpression(expression.property, newContext);
394
+ }
395
+ function visitArrayExpression(expression, context) {
396
+ expression.elements?.map(handleNullableExpression(context));
397
+ }
398
+ function visitSequenceExpression(expression, context) {
399
+ expression.expressions?.map(handleNullableExpression(context));
400
+ }
401
+ function visitNewExpression(expression, context) {
402
+ expression.arguments?.map(handleNullableExpression(context));
403
+ }
404
+ function visitTemplateLiteral(expression, context) {
405
+ expression.expressions?.map(handleNullableExpression(context));
406
+ expression.quasis?.map(handleNullableExpression(context));
407
+ }
408
+ function visitTemplateElement(expression, context) {}
409
+ function visitIdentifier(expression, context) {
410
+ if (!(expression.name in context.globals)) {
411
+ if (!context.isLocalExpression) {
412
+ context.variables.add(expression.name);
413
+ } else {
414
+ return expression.name;
415
+ }
416
+ }
417
+ }
418
+ function visitLiteral(expression, context) {}
419
+ function createAsynchronousContext() {
420
+ return createContextInternal(_globals_js__WEBPACK_IMPORTED_MODULE_1__.globalsAsync);
421
+ }
422
+ function createContextInternal(globals_) {
423
+ const context = {
424
+ globals: {
425
+ ...globals_
426
+ },
427
+ isLocalExpression: false,
428
+ variables: new Set()
429
+ };
430
+ return context;
431
+ }
432
+ function handleNullableExpression(context) {
433
+ return function handleNullableExpressionInner(expression) {
434
+ if (expression === null) {
435
+ return null;
436
+ }
437
+ return visitExpression(expression, context);
438
+ };
439
+ }
440
+
441
+
442
+ /***/ }),
443
+
444
+ /***/ "../../node_modules/@openmrs/esm-expression-evaluator/dist/index.js":
445
+ /*!**************************************************************************!*\
446
+ !*** ../../node_modules/@openmrs/esm-expression-evaluator/dist/index.js ***!
447
+ \**************************************************************************/
448
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
449
+
450
+ "use strict";
451
+ __webpack_require__.r(__webpack_exports__);
452
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
453
+ /* harmony export */ compile: () => (/* reexport safe */ _evaluator_js__WEBPACK_IMPORTED_MODULE_0__.compile),
454
+ /* harmony export */ evaluate: () => (/* reexport safe */ _evaluator_js__WEBPACK_IMPORTED_MODULE_0__.evaluate),
455
+ /* harmony export */ evaluateAsBoolean: () => (/* reexport safe */ _evaluator_js__WEBPACK_IMPORTED_MODULE_0__.evaluateAsBoolean),
456
+ /* harmony export */ evaluateAsBooleanAsync: () => (/* reexport safe */ _evaluator_js__WEBPACK_IMPORTED_MODULE_0__.evaluateAsBooleanAsync),
457
+ /* harmony export */ evaluateAsNumber: () => (/* reexport safe */ _evaluator_js__WEBPACK_IMPORTED_MODULE_0__.evaluateAsNumber),
458
+ /* harmony export */ evaluateAsNumberAsync: () => (/* reexport safe */ _evaluator_js__WEBPACK_IMPORTED_MODULE_0__.evaluateAsNumberAsync),
459
+ /* harmony export */ evaluateAsType: () => (/* reexport safe */ _evaluator_js__WEBPACK_IMPORTED_MODULE_0__.evaluateAsType),
460
+ /* harmony export */ evaluateAsTypeAsync: () => (/* reexport safe */ _evaluator_js__WEBPACK_IMPORTED_MODULE_0__.evaluateAsTypeAsync),
461
+ /* harmony export */ evaluateAsync: () => (/* reexport safe */ _evaluator_js__WEBPACK_IMPORTED_MODULE_0__.evaluateAsync),
462
+ /* harmony export */ extractVariableNames: () => (/* reexport safe */ _extractor_js__WEBPACK_IMPORTED_MODULE_1__.extractVariableNames),
463
+ /* harmony export */ jsep: () => (/* reexport safe */ _evaluator_js__WEBPACK_IMPORTED_MODULE_0__.jsep)
464
+ /* harmony export */ });
465
+ /* harmony import */ var _evaluator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./evaluator.js */ "../../node_modules/@openmrs/esm-expression-evaluator/dist/evaluator.js");
466
+ /* harmony import */ var _extractor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./extractor.js */ "../../node_modules/@openmrs/esm-expression-evaluator/dist/extractor.js");
467
+
468
+
469
+
470
+
471
+ /***/ }),
472
+
473
+ /***/ "../../node_modules/@openmrs/esm-framework/src/internal.ts":
474
+ /*!*****************************************************************!*\
475
+ !*** ../../node_modules/@openmrs/esm-framework/src/internal.ts ***!
476
+ \*****************************************************************/
477
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
478
+
479
+ "use strict";
480
+ __webpack_require__.r(__webpack_exports__);
481
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
482
+ /* harmony export */ ActionMenu: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.ActionMenu),
483
+ /* harmony export */ ActionMenuButton: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.ActionMenuButton),
484
+ /* harmony export */ ActionableNotificationComponent: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.ActionableNotificationComponent),
485
+ /* harmony export */ ActivityIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.ActivityIcon),
486
+ /* harmony export */ AddIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.AddIcon),
487
+ /* harmony export */ AllergiesIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.AllergiesIcon),
488
+ /* harmony export */ AppointmentsPictogram: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.AppointmentsPictogram),
489
+ /* harmony export */ ArrowDownIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.ArrowDownIcon),
490
+ /* harmony export */ ArrowLeftIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.ArrowLeftIcon),
491
+ /* harmony export */ ArrowRightIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.ArrowRightIcon),
492
+ /* harmony export */ ArrowUpIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.ArrowUpIcon),
493
+ /* harmony export */ AttachmentIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.AttachmentIcon),
494
+ /* harmony export */ BabyIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.BabyIcon),
495
+ /* harmony export */ Breakpoint: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.Breakpoint),
496
+ /* harmony export */ CalendarHeatMapIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.CalendarHeatMapIcon),
497
+ /* harmony export */ CalendarIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.CalendarIcon),
498
+ /* harmony export */ CaretDownIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.CaretDownIcon),
499
+ /* harmony export */ CaretLeftIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.CaretLeftIcon),
500
+ /* harmony export */ CaretRightIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.CaretRightIcon),
501
+ /* harmony export */ CaretUpIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.CaretUpIcon),
502
+ /* harmony export */ ChartAverageIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.ChartAverageIcon),
503
+ /* harmony export */ CheckmarkFilledIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.CheckmarkFilledIcon),
504
+ /* harmony export */ CheckmarkOutlineIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.CheckmarkOutlineIcon),
505
+ /* harmony export */ ChemistryIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.ChemistryIcon),
506
+ /* harmony export */ ChevronDownIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.ChevronDownIcon),
507
+ /* harmony export */ ChevronLeftIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.ChevronLeftIcon),
508
+ /* harmony export */ ChevronRightIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.ChevronRightIcon),
509
+ /* harmony export */ ChevronUpIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.ChevronUpIcon),
510
+ /* harmony export */ CloseFilledIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.CloseFilledIcon),
511
+ /* harmony export */ CloseIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.CloseIcon),
512
+ /* harmony export */ CloseOutlineIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.CloseOutlineIcon),
513
+ /* harmony export */ ComponentContext: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.ComponentContext),
514
+ /* harmony export */ ConditionsIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.ConditionsIcon),
515
+ /* harmony export */ ConfigurableLink: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.ConfigurableLink),
516
+ /* harmony export */ CustomOverflowMenu: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.CustomOverflowMenu),
517
+ /* harmony export */ DashboardExtension: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.DashboardExtension),
518
+ /* harmony export */ DiagnosisTags: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.DiagnosisTags),
519
+ /* harmony export */ DocumentAttachmentIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.DocumentAttachmentIcon),
520
+ /* harmony export */ DocumentIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.DocumentIcon),
521
+ /* harmony export */ DownloadIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.DownloadIcon),
522
+ /* harmony export */ DrugOrderIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.DrugOrderIcon),
523
+ /* harmony export */ EditIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.EditIcon),
524
+ /* harmony export */ ErrorState: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.ErrorState),
525
+ /* harmony export */ EventScheduleIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.EventScheduleIcon),
526
+ /* harmony export */ EventsIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.EventsIcon),
527
+ /* harmony export */ Extension: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.Extension),
528
+ /* harmony export */ ExtensionSlot: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.ExtensionSlot),
529
+ /* harmony export */ GenderFemaleIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.GenderFemaleIcon),
530
+ /* harmony export */ GenderMaleIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.GenderMaleIcon),
531
+ /* harmony export */ GenderOtherIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.GenderOtherIcon),
532
+ /* harmony export */ GenderUnknownIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.GenderUnknownIcon),
533
+ /* harmony export */ GenericOrderTypeIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.GenericOrderTypeIcon),
534
+ /* harmony export */ GroupAccessIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.GroupAccessIcon),
535
+ /* harmony export */ GroupIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.GroupIcon),
536
+ /* harmony export */ HomePictogram: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.HomePictogram),
537
+ /* harmony export */ HospitalBedIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.HospitalBedIcon),
538
+ /* harmony export */ Icon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.Icon),
539
+ /* harmony export */ ImageMedicalIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.ImageMedicalIcon),
540
+ /* harmony export */ InPatientPictogram: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.InPatientPictogram),
541
+ /* harmony export */ InformationFilledIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.InformationFilledIcon),
542
+ /* harmony export */ InformationIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.InformationIcon),
543
+ /* harmony export */ InformationSquareIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.InformationSquareIcon),
544
+ /* harmony export */ InventoryManagementIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.InventoryManagementIcon),
545
+ /* harmony export */ LabOrderIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.LabOrderIcon),
546
+ /* harmony export */ LaboratoryPictogram: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.LaboratoryPictogram),
547
+ /* harmony export */ LeftNavMenu: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.LeftNavMenu),
548
+ /* harmony export */ ListCheckedIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.ListCheckedIcon),
549
+ /* harmony export */ LocationIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.LocationIcon),
550
+ /* harmony export */ LocationPicker: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.LocationPicker),
551
+ /* harmony export */ MaterialOrderIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.MaterialOrderIcon),
552
+ /* harmony export */ MaximizeIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.MaximizeIcon),
553
+ /* harmony export */ MaybeIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.MaybeIcon),
554
+ /* harmony export */ MaybePictogram: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.MaybePictogram),
555
+ /* harmony export */ MedicationIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.MedicationIcon),
556
+ /* harmony export */ MessageQueueIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.MessageQueueIcon),
557
+ /* harmony export */ MicroscopeIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.MicroscopeIcon),
558
+ /* harmony export */ MoneyIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.MoneyIcon),
559
+ /* harmony export */ MotherIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.MotherIcon),
560
+ /* harmony export */ MovementIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.MovementIcon),
561
+ /* harmony export */ Notification: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.Notification),
562
+ /* harmony export */ OpenmrsAppContext: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.OpenmrsAppContext),
563
+ /* harmony export */ OpenmrsDatePicker: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.OpenmrsDatePicker),
564
+ /* harmony export */ OpenmrsFetchError: () => (/* reexport safe */ _openmrs_esm_api__WEBPACK_IMPORTED_MODULE_0__.OpenmrsFetchError),
565
+ /* harmony export */ OverflowMenuHorizontalIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.OverflowMenuHorizontalIcon),
566
+ /* harmony export */ OverflowMenuVerticalIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.OverflowMenuVerticalIcon),
567
+ /* harmony export */ PageHeader: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.PageHeader),
568
+ /* harmony export */ PageHeaderContent: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.PageHeaderContent),
569
+ /* harmony export */ PasswordIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.PasswordIcon),
570
+ /* harmony export */ PatientBannerActionsMenu: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.PatientBannerActionsMenu),
571
+ /* harmony export */ PatientBannerContactDetails: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.PatientBannerContactDetails),
572
+ /* harmony export */ PatientBannerPatientIdentifiers: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.PatientBannerPatientIdentifiers),
573
+ /* harmony export */ PatientBannerPatientInfo: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.PatientBannerPatientInfo),
574
+ /* harmony export */ PatientBannerToggleContactDetailsButton: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.PatientBannerToggleContactDetailsButton),
575
+ /* harmony export */ PatientListsPictogram: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.PatientListsPictogram),
576
+ /* harmony export */ PatientPhoto: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.PatientPhoto),
577
+ /* harmony export */ PedestrianFamilyIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.PedestrianFamilyIcon),
578
+ /* harmony export */ PenIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.PenIcon),
579
+ /* harmony export */ PharmacyPictogram: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.PharmacyPictogram),
580
+ /* harmony export */ Pictogram: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.Pictogram),
581
+ /* harmony export */ PrinterIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.PrinterIcon),
582
+ /* harmony export */ ProcedureOrderIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.ProcedureOrderIcon),
583
+ /* harmony export */ ProgramsIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.ProgramsIcon),
584
+ /* harmony export */ RadiologyIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.RadiologyIcon),
585
+ /* harmony export */ ReferralOrderIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.ReferralOrderIcon),
586
+ /* harmony export */ RegistrationPictogram: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.RegistrationPictogram),
587
+ /* harmony export */ RenderIfValueIsTruthy: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.RenderIfValueIsTruthy),
588
+ /* harmony export */ RenewIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.RenewIcon),
589
+ /* harmony export */ ReportIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.ReportIcon),
590
+ /* harmony export */ ResetIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.ResetIcon),
591
+ /* harmony export */ ResponsiveWrapper: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.ResponsiveWrapper),
592
+ /* harmony export */ SaveIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.SaveIcon),
593
+ /* harmony export */ SearchIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.SearchIcon),
594
+ /* harmony export */ ServiceQueuesPictogram: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.ServiceQueuesPictogram),
595
+ /* harmony export */ ShoppingCartAddItemIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.ShoppingCartAddItemIcon),
596
+ /* harmony export */ ShoppingCartArrowDownIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.ShoppingCartArrowDownIcon),
597
+ /* harmony export */ ShoppingCartIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.ShoppingCartIcon),
598
+ /* harmony export */ Snackbar: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.Snackbar),
599
+ /* harmony export */ StickyNoteAddIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.StickyNoteAddIcon),
600
+ /* harmony export */ StockManagementPictogram: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.StockManagementPictogram),
601
+ /* harmony export */ SwitcherIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.SwitcherIcon),
602
+ /* harmony export */ SyringeIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.SyringeIcon),
603
+ /* harmony export */ TableIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.TableIcon),
604
+ /* harmony export */ TableOfContentsIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.TableOfContentsIcon),
605
+ /* harmony export */ TimeIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.TimeIcon),
606
+ /* harmony export */ Toast: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.Toast),
607
+ /* harmony export */ ToolsIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.ToolsIcon),
608
+ /* harmony export */ TranslateIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.TranslateIcon),
609
+ /* harmony export */ TrashCanIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.TrashCanIcon),
610
+ /* harmony export */ TreeViewAltIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.TreeViewAltIcon),
611
+ /* harmony export */ Type: () => (/* reexport safe */ _openmrs_esm_config__WEBPACK_IMPORTED_MODULE_1__.Type),
612
+ /* harmony export */ UserAvatarIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.UserAvatarIcon),
613
+ /* harmony export */ UserFollowIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.UserFollowIcon),
614
+ /* harmony export */ UserHasAccess: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.UserHasAccess),
615
+ /* harmony export */ UserIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.UserIcon),
616
+ /* harmony export */ UserXrayIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.UserXrayIcon),
617
+ /* harmony export */ ViewIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.ViewIcon),
618
+ /* harmony export */ ViewOffIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.ViewOffIcon),
619
+ /* harmony export */ VisitMode: () => (/* reexport safe */ _openmrs_esm_emr_api__WEBPACK_IMPORTED_MODULE_3__.VisitMode),
620
+ /* harmony export */ VisitStatus: () => (/* reexport safe */ _openmrs_esm_emr_api__WEBPACK_IMPORTED_MODULE_3__.VisitStatus),
621
+ /* harmony export */ WarningIcon: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.WarningIcon),
622
+ /* harmony export */ WorkspaceContainer: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.WorkspaceContainer),
623
+ /* harmony export */ WorkspaceNotification: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.WorkspaceNotification),
624
+ /* harmony export */ activateOfflineCapability: () => (/* reexport safe */ _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__.activateOfflineCapability),
625
+ /* harmony export */ addRoutesOverride: () => (/* reexport safe */ _openmrs_esm_routes__WEBPACK_IMPORTED_MODULE_12__.addRoutesOverride),
626
+ /* harmony export */ age: () => (/* reexport safe */ _openmrs_esm_utils__WEBPACK_IMPORTED_MODULE_16__.age),
627
+ /* harmony export */ attach: () => (/* reexport safe */ _openmrs_esm_extensions__WEBPACK_IMPORTED_MODULE_6__.attach),
628
+ /* harmony export */ attachmentUrl: () => (/* reexport safe */ _openmrs_esm_emr_api__WEBPACK_IMPORTED_MODULE_3__.attachmentUrl),
629
+ /* harmony export */ backendDependencies: () => (/* reexport safe */ _openmrs_esm_api__WEBPACK_IMPORTED_MODULE_0__.backendDependencies),
630
+ /* harmony export */ beginEditSynchronizationItem: () => (/* reexport safe */ _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__.beginEditSynchronizationItem),
631
+ /* harmony export */ canAccessStorage: () => (/* reexport safe */ _openmrs_esm_utils__WEBPACK_IMPORTED_MODULE_16__.canAccessStorage),
632
+ /* harmony export */ canBeginEditSynchronizationItemsOfType: () => (/* reexport safe */ _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__.canBeginEditSynchronizationItemsOfType),
633
+ /* harmony export */ canCloseWorkspaceWithoutPrompting: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.canCloseWorkspaceWithoutPrompting),
634
+ /* harmony export */ cancelPrompt: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.cancelPrompt),
635
+ /* harmony export */ changeWorkspaceContext: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.changeWorkspaceContext),
636
+ /* harmony export */ checkStatus: () => (/* reexport safe */ _openmrs_esm_extensions__WEBPACK_IMPORTED_MODULE_6__.checkStatus),
637
+ /* harmony export */ checkStatusFor: () => (/* reexport safe */ _openmrs_esm_extensions__WEBPACK_IMPORTED_MODULE_6__.checkStatusFor),
638
+ /* harmony export */ cleanupObsoleteFeatureFlags: () => (/* reexport safe */ _openmrs_esm_feature_flags__WEBPACK_IMPORTED_MODULE_7__.cleanupObsoleteFeatureFlags),
639
+ /* harmony export */ clearConfigErrors: () => (/* reexport safe */ _openmrs_esm_config__WEBPACK_IMPORTED_MODULE_1__.clearConfigErrors),
640
+ /* harmony export */ clearCurrentUser: () => (/* reexport safe */ _openmrs_esm_api__WEBPACK_IMPORTED_MODULE_0__.clearCurrentUser),
641
+ /* harmony export */ clearHistory: () => (/* reexport safe */ _openmrs_esm_navigation__WEBPACK_IMPORTED_MODULE_9__.clearHistory),
642
+ /* harmony export */ closeAllWorkspaces: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.closeAllWorkspaces),
643
+ /* harmony export */ closeWorkspace: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.closeWorkspace),
644
+ /* harmony export */ compile: () => (/* reexport safe */ _openmrs_esm_expression_evaluator__WEBPACK_IMPORTED_MODULE_5__.compile),
645
+ /* harmony export */ configExtensionStore: () => (/* reexport safe */ _openmrs_esm_config__WEBPACK_IMPORTED_MODULE_1__.configExtensionStore),
646
+ /* harmony export */ configInternalStore: () => (/* reexport safe */ _openmrs_esm_config__WEBPACK_IMPORTED_MODULE_1__.configInternalStore),
647
+ /* harmony export */ convertToLocaleCalendar: () => (/* reexport safe */ _openmrs_esm_utils__WEBPACK_IMPORTED_MODULE_16__.convertToLocaleCalendar),
648
+ /* harmony export */ createAttachment: () => (/* reexport safe */ _openmrs_esm_emr_api__WEBPACK_IMPORTED_MODULE_3__.createAttachment),
649
+ /* harmony export */ createErrorHandler: () => (/* reexport safe */ _openmrs_esm_error_handling__WEBPACK_IMPORTED_MODULE_4__.createErrorHandler),
650
+ /* harmony export */ createGlobalStore: () => (/* reexport safe */ _openmrs_esm_state__WEBPACK_IMPORTED_MODULE_13__.createGlobalStore),
651
+ /* harmony export */ createUseStore: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.createUseStore),
652
+ /* harmony export */ defaultVisitCustomRepresentation: () => (/* reexport safe */ _openmrs_esm_emr_api__WEBPACK_IMPORTED_MODULE_3__.defaultVisitCustomRepresentation),
653
+ /* harmony export */ defineConfigSchema: () => (/* reexport safe */ _openmrs_esm_config__WEBPACK_IMPORTED_MODULE_1__.defineConfigSchema),
654
+ /* harmony export */ defineExtensionConfigSchema: () => (/* reexport safe */ _openmrs_esm_config__WEBPACK_IMPORTED_MODULE_1__.defineExtensionConfigSchema),
655
+ /* harmony export */ deleteAttachmentPermanently: () => (/* reexport safe */ _openmrs_esm_emr_api__WEBPACK_IMPORTED_MODULE_3__.deleteAttachmentPermanently),
656
+ /* harmony export */ deleteSynchronizationItem: () => (/* reexport safe */ _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__.deleteSynchronizationItem),
657
+ /* harmony export */ detach: () => (/* reexport safe */ _openmrs_esm_extensions__WEBPACK_IMPORTED_MODULE_6__.detach),
658
+ /* harmony export */ detachAll: () => (/* reexport safe */ _openmrs_esm_extensions__WEBPACK_IMPORTED_MODULE_6__.detachAll),
659
+ /* harmony export */ dispatchActionableNotificationShown: () => (/* reexport safe */ _openmrs_esm_globals__WEBPACK_IMPORTED_MODULE_8__.dispatchActionableNotificationShown),
660
+ /* harmony export */ dispatchConnectivityChanged: () => (/* reexport safe */ _openmrs_esm_globals__WEBPACK_IMPORTED_MODULE_8__.dispatchConnectivityChanged),
661
+ /* harmony export */ dispatchNotificationShown: () => (/* reexport safe */ _openmrs_esm_globals__WEBPACK_IMPORTED_MODULE_8__.dispatchNotificationShown),
662
+ /* harmony export */ dispatchPrecacheStaticDependencies: () => (/* reexport safe */ _openmrs_esm_globals__WEBPACK_IMPORTED_MODULE_8__.dispatchPrecacheStaticDependencies),
663
+ /* harmony export */ dispatchSnackbarShown: () => (/* reexport safe */ _openmrs_esm_globals__WEBPACK_IMPORTED_MODULE_8__.dispatchSnackbarShown),
664
+ /* harmony export */ dispatchToastShown: () => (/* reexport safe */ _openmrs_esm_globals__WEBPACK_IMPORTED_MODULE_8__.dispatchToastShown),
665
+ /* harmony export */ displayName: () => (/* reexport safe */ _openmrs_esm_utils__WEBPACK_IMPORTED_MODULE_16__.displayName),
666
+ /* harmony export */ esmStyleGuideSchema: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.esmStyleGuideSchema),
667
+ /* harmony export */ evaluate: () => (/* reexport safe */ _openmrs_esm_expression_evaluator__WEBPACK_IMPORTED_MODULE_5__.evaluate),
668
+ /* harmony export */ evaluateAsBoolean: () => (/* reexport safe */ _openmrs_esm_expression_evaluator__WEBPACK_IMPORTED_MODULE_5__.evaluateAsBoolean),
669
+ /* harmony export */ evaluateAsBooleanAsync: () => (/* reexport safe */ _openmrs_esm_expression_evaluator__WEBPACK_IMPORTED_MODULE_5__.evaluateAsBooleanAsync),
670
+ /* harmony export */ evaluateAsNumber: () => (/* reexport safe */ _openmrs_esm_expression_evaluator__WEBPACK_IMPORTED_MODULE_5__.evaluateAsNumber),
671
+ /* harmony export */ evaluateAsNumberAsync: () => (/* reexport safe */ _openmrs_esm_expression_evaluator__WEBPACK_IMPORTED_MODULE_5__.evaluateAsNumberAsync),
672
+ /* harmony export */ evaluateAsType: () => (/* reexport safe */ _openmrs_esm_expression_evaluator__WEBPACK_IMPORTED_MODULE_5__.evaluateAsType),
673
+ /* harmony export */ evaluateAsTypeAsync: () => (/* reexport safe */ _openmrs_esm_expression_evaluator__WEBPACK_IMPORTED_MODULE_5__.evaluateAsTypeAsync),
674
+ /* harmony export */ evaluateAsync: () => (/* reexport safe */ _openmrs_esm_expression_evaluator__WEBPACK_IMPORTED_MODULE_5__.evaluateAsync),
675
+ /* harmony export */ extractVariableNames: () => (/* reexport safe */ _openmrs_esm_expression_evaluator__WEBPACK_IMPORTED_MODULE_5__.extractVariableNames),
676
+ /* harmony export */ featureFlagsStore: () => (/* reexport safe */ _openmrs_esm_feature_flags__WEBPACK_IMPORTED_MODULE_7__.featureFlagsStore),
677
+ /* harmony export */ fetchCurrentPatient: () => (/* reexport safe */ _openmrs_esm_emr_api__WEBPACK_IMPORTED_MODULE_3__.fetchCurrentPatient),
678
+ /* harmony export */ fhirBaseUrl: () => (/* reexport safe */ _openmrs_esm_api__WEBPACK_IMPORTED_MODULE_0__.fhirBaseUrl),
679
+ /* harmony export */ filterBreadcrumbs: () => (/* reexport safe */ _openmrs_esm_navigation__WEBPACK_IMPORTED_MODULE_9__.filterBreadcrumbs),
680
+ /* harmony export */ finishRegisteringAllApps: () => (/* reexport safe */ _openmrs_esm_routes__WEBPACK_IMPORTED_MODULE_12__.finishRegisteringAllApps),
681
+ /* harmony export */ formatDate: () => (/* reexport safe */ _openmrs_esm_utils__WEBPACK_IMPORTED_MODULE_16__.formatDate),
682
+ /* harmony export */ formatDatetime: () => (/* reexport safe */ _openmrs_esm_utils__WEBPACK_IMPORTED_MODULE_16__.formatDatetime),
683
+ /* harmony export */ formatPartialDate: () => (/* reexport safe */ _openmrs_esm_utils__WEBPACK_IMPORTED_MODULE_16__.formatPartialDate),
684
+ /* harmony export */ formatPatientName: () => (/* reexport safe */ _openmrs_esm_utils__WEBPACK_IMPORTED_MODULE_16__.formatPatientName),
685
+ /* harmony export */ formatTime: () => (/* reexport safe */ _openmrs_esm_utils__WEBPACK_IMPORTED_MODULE_16__.formatTime),
686
+ /* harmony export */ formattedName: () => (/* reexport safe */ _openmrs_esm_utils__WEBPACK_IMPORTED_MODULE_16__.formattedName),
687
+ /* harmony export */ generateOfflineUuid: () => (/* reexport safe */ _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__.generateOfflineUuid),
688
+ /* harmony export */ getAssignedExtensions: () => (/* reexport safe */ _openmrs_esm_extensions__WEBPACK_IMPORTED_MODULE_6__.getAssignedExtensions),
689
+ /* harmony export */ getAsyncExtensionLifecycle: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.getAsyncExtensionLifecycle),
690
+ /* harmony export */ getAsyncLifecycle: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.getAsyncLifecycle),
691
+ /* harmony export */ getAttachmentByUuid: () => (/* reexport safe */ _openmrs_esm_emr_api__WEBPACK_IMPORTED_MODULE_3__.getAttachmentByUuid),
692
+ /* harmony export */ getAttachments: () => (/* reexport safe */ _openmrs_esm_emr_api__WEBPACK_IMPORTED_MODULE_3__.getAttachments),
693
+ /* harmony export */ getBreadcrumbs: () => (/* reexport safe */ _openmrs_esm_navigation__WEBPACK_IMPORTED_MODULE_9__.getBreadcrumbs),
694
+ /* harmony export */ getBreadcrumbsFor: () => (/* reexport safe */ _openmrs_esm_navigation__WEBPACK_IMPORTED_MODULE_9__.getBreadcrumbsFor),
695
+ /* harmony export */ getConfig: () => (/* reexport safe */ _openmrs_esm_config__WEBPACK_IMPORTED_MODULE_1__.getConfig),
696
+ /* harmony export */ getConfigStore: () => (/* reexport safe */ _openmrs_esm_config__WEBPACK_IMPORTED_MODULE_1__.getConfigStore),
697
+ /* harmony export */ getCoreTranslation: () => (/* reexport safe */ _openmrs_esm_translations__WEBPACK_IMPORTED_MODULE_15__.getCoreTranslation),
698
+ /* harmony export */ getCurrentImportMap: () => (/* reexport safe */ _openmrs_esm_dynamic_loading__WEBPACK_IMPORTED_MODULE_2__.getCurrentImportMap),
699
+ /* harmony export */ getCurrentOfflineMode: () => (/* reexport safe */ _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__.getCurrentOfflineMode),
700
+ /* harmony export */ getCurrentUser: () => (/* reexport safe */ _openmrs_esm_api__WEBPACK_IMPORTED_MODULE_0__.getCurrentUser),
701
+ /* harmony export */ getDefaultCalendar: () => (/* reexport safe */ _openmrs_esm_utils__WEBPACK_IMPORTED_MODULE_16__.getDefaultCalendar),
702
+ /* harmony export */ getDefaultsFromConfigSchema: () => (/* reexport safe */ _openmrs_esm_utils__WEBPACK_IMPORTED_MODULE_16__.getDefaultsFromConfigSchema),
703
+ /* harmony export */ getDynamicOfflineDataEntries: () => (/* reexport safe */ _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__.getDynamicOfflineDataEntries),
704
+ /* harmony export */ getDynamicOfflineDataEntriesFor: () => (/* reexport safe */ _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__.getDynamicOfflineDataEntriesFor),
705
+ /* harmony export */ getDynamicOfflineDataHandlers: () => (/* reexport safe */ _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__.getDynamicOfflineDataHandlers),
706
+ /* harmony export */ getExtensionConfig: () => (/* reexport safe */ _openmrs_esm_config__WEBPACK_IMPORTED_MODULE_1__.getExtensionConfig),
707
+ /* harmony export */ getExtensionConfigFromStore: () => (/* reexport safe */ _openmrs_esm_config__WEBPACK_IMPORTED_MODULE_1__.getExtensionConfigFromStore),
708
+ /* harmony export */ getExtensionInternalStore: () => (/* reexport safe */ _openmrs_esm_extensions__WEBPACK_IMPORTED_MODULE_6__.getExtensionInternalStore),
709
+ /* harmony export */ getExtensionNameFromId: () => (/* reexport safe */ _openmrs_esm_extensions__WEBPACK_IMPORTED_MODULE_6__.getExtensionNameFromId),
710
+ /* harmony export */ getExtensionRegistration: () => (/* reexport safe */ _openmrs_esm_extensions__WEBPACK_IMPORTED_MODULE_6__.getExtensionRegistration),
711
+ /* harmony export */ getExtensionRegistrationFrom: () => (/* reexport safe */ _openmrs_esm_extensions__WEBPACK_IMPORTED_MODULE_6__.getExtensionRegistrationFrom),
712
+ /* harmony export */ getExtensionSlotConfig: () => (/* reexport safe */ _openmrs_esm_config__WEBPACK_IMPORTED_MODULE_1__.getExtensionSlotConfig),
713
+ /* harmony export */ getExtensionSlotConfigFromStore: () => (/* reexport safe */ _openmrs_esm_config__WEBPACK_IMPORTED_MODULE_1__.getExtensionSlotConfigFromStore),
714
+ /* harmony export */ getExtensionSlotsConfigStore: () => (/* reexport safe */ _openmrs_esm_config__WEBPACK_IMPORTED_MODULE_1__.getExtensionSlotsConfigStore),
715
+ /* harmony export */ getExtensionStore: () => (/* reexport safe */ _openmrs_esm_extensions__WEBPACK_IMPORTED_MODULE_6__.getExtensionStore),
716
+ /* harmony export */ getExtensionsConfigStore: () => (/* reexport safe */ _openmrs_esm_config__WEBPACK_IMPORTED_MODULE_1__.getExtensionsConfigStore),
717
+ /* harmony export */ getFeatureFlag: () => (/* reexport safe */ _openmrs_esm_feature_flags__WEBPACK_IMPORTED_MODULE_7__.getFeatureFlag),
718
+ /* harmony export */ getFhirServerPaginationHandlers: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.getFhirServerPaginationHandlers),
719
+ /* harmony export */ getFullSynchronizationItems: () => (/* reexport safe */ _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__.getFullSynchronizationItems),
720
+ /* harmony export */ getFullSynchronizationItemsFor: () => (/* reexport safe */ _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__.getFullSynchronizationItemsFor),
721
+ /* harmony export */ getGlobalStore: () => (/* reexport safe */ _openmrs_esm_state__WEBPACK_IMPORTED_MODULE_13__.getGlobalStore),
722
+ /* harmony export */ getHistory: () => (/* reexport safe */ _openmrs_esm_navigation__WEBPACK_IMPORTED_MODULE_9__.getHistory),
723
+ /* harmony export */ getLifecycle: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.getLifecycle),
724
+ /* harmony export */ getLocale: () => (/* reexport safe */ _openmrs_esm_utils__WEBPACK_IMPORTED_MODULE_16__.getLocale),
725
+ /* harmony export */ getLocations: () => (/* reexport safe */ _openmrs_esm_emr_api__WEBPACK_IMPORTED_MODULE_3__.getLocations),
726
+ /* harmony export */ getLoggedInUser: () => (/* reexport safe */ _openmrs_esm_api__WEBPACK_IMPORTED_MODULE_0__.getLoggedInUser),
727
+ /* harmony export */ getModalRegistration: () => (/* reexport safe */ _openmrs_esm_extensions__WEBPACK_IMPORTED_MODULE_6__.getModalRegistration),
728
+ /* harmony export */ getOfflineDb: () => (/* reexport safe */ _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__.getOfflineDb),
729
+ /* harmony export */ getOfflinePatientDataStore: () => (/* reexport safe */ _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__.getOfflinePatientDataStore),
730
+ /* harmony export */ getOfflineSynchronizationStore: () => (/* reexport safe */ _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__.getOfflineSynchronizationStore),
731
+ /* harmony export */ getOmrsServiceWorker: () => (/* reexport safe */ _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__.getOmrsServiceWorker),
732
+ /* harmony export */ getPatientName: () => (/* reexport safe */ _openmrs_esm_utils__WEBPACK_IMPORTED_MODULE_16__.getPatientName),
733
+ /* harmony export */ getPromptBeforeClosingFcn: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.getPromptBeforeClosingFcn),
734
+ /* harmony export */ getSessionLocation: () => (/* reexport safe */ _openmrs_esm_api__WEBPACK_IMPORTED_MODULE_0__.getSessionLocation),
735
+ /* harmony export */ getSessionStore: () => (/* reexport safe */ _openmrs_esm_api__WEBPACK_IMPORTED_MODULE_0__.getSessionStore),
736
+ /* harmony export */ getStartedVisit: () => (/* reexport safe */ _openmrs_esm_emr_api__WEBPACK_IMPORTED_MODULE_3__.getStartedVisit),
737
+ /* harmony export */ getSyncLifecycle: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.getSyncLifecycle),
738
+ /* harmony export */ getSynchronizationItem: () => (/* reexport safe */ _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__.getSynchronizationItem),
739
+ /* harmony export */ getSynchronizationItems: () => (/* reexport safe */ _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__.getSynchronizationItems),
740
+ /* harmony export */ getSynchronizationItemsFor: () => (/* reexport safe */ _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__.getSynchronizationItemsFor),
741
+ /* harmony export */ getTranslationOverrides: () => (/* reexport safe */ _openmrs_esm_config__WEBPACK_IMPORTED_MODULE_1__.getTranslationOverrides),
742
+ /* harmony export */ getVisitStore: () => (/* reexport safe */ _openmrs_esm_emr_api__WEBPACK_IMPORTED_MODULE_3__.getVisitStore),
743
+ /* harmony export */ getVisitTypes: () => (/* reexport safe */ _openmrs_esm_emr_api__WEBPACK_IMPORTED_MODULE_3__.getVisitTypes),
744
+ /* harmony export */ getVisitsForPatient: () => (/* reexport safe */ _openmrs_esm_emr_api__WEBPACK_IMPORTED_MODULE_3__.getVisitsForPatient),
745
+ /* harmony export */ getWorkspaceGroupRegistration: () => (/* reexport safe */ _openmrs_esm_extensions__WEBPACK_IMPORTED_MODULE_6__.getWorkspaceGroupRegistration),
746
+ /* harmony export */ getWorkspaceGroupStore: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.getWorkspaceGroupStore),
747
+ /* harmony export */ getWorkspaceRegistration: () => (/* reexport safe */ _openmrs_esm_extensions__WEBPACK_IMPORTED_MODULE_6__.getWorkspaceRegistration),
748
+ /* harmony export */ getWorkspaceStore: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.getWorkspaceStore),
749
+ /* harmony export */ goBackInHistory: () => (/* reexport safe */ _openmrs_esm_navigation__WEBPACK_IMPORTED_MODULE_9__.goBackInHistory),
750
+ /* harmony export */ implementerToolsConfigStore: () => (/* reexport safe */ _openmrs_esm_config__WEBPACK_IMPORTED_MODULE_1__.implementerToolsConfigStore),
751
+ /* harmony export */ importDynamic: () => (/* reexport safe */ _openmrs_esm_dynamic_loading__WEBPACK_IMPORTED_MODULE_2__.importDynamic),
752
+ /* harmony export */ inRange: () => (/* reexport safe */ _openmrs_esm_config__WEBPACK_IMPORTED_MODULE_1__.inRange),
753
+ /* harmony export */ initializeApp: () => (/* reexport safe */ _openmrs_esm_routes__WEBPACK_IMPORTED_MODULE_12__.initializeApp),
754
+ /* harmony export */ integrateBreakpoints: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.integrateBreakpoints),
755
+ /* harmony export */ interpolateString: () => (/* reexport safe */ _openmrs_esm_navigation__WEBPACK_IMPORTED_MODULE_9__.interpolateString),
756
+ /* harmony export */ interpolateUrl: () => (/* reexport safe */ _openmrs_esm_navigation__WEBPACK_IMPORTED_MODULE_9__.interpolateUrl),
757
+ /* harmony export */ isDesktop: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.isDesktop),
758
+ /* harmony export */ isDevEnabled: () => (/* reexport safe */ _openmrs_esm_api__WEBPACK_IMPORTED_MODULE_0__.isDevEnabled),
759
+ /* harmony export */ isOfflineUuid: () => (/* reexport safe */ _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__.isOfflineUuid),
760
+ /* harmony export */ isOmrsDateStrict: () => (/* reexport safe */ _openmrs_esm_utils__WEBPACK_IMPORTED_MODULE_16__.isOmrsDateStrict),
761
+ /* harmony export */ isOmrsDateToday: () => (/* reexport safe */ _openmrs_esm_utils__WEBPACK_IMPORTED_MODULE_16__.isOmrsDateToday),
762
+ /* harmony export */ isOnline: () => (/* reexport safe */ _openmrs_esm_utils__WEBPACK_IMPORTED_MODULE_16__.isOnline),
763
+ /* harmony export */ isOpenmrsAppRoutes: () => (/* reexport safe */ _openmrs_esm_routes__WEBPACK_IMPORTED_MODULE_12__.isOpenmrsAppRoutes),
764
+ /* harmony export */ isOpenmrsRoutes: () => (/* reexport safe */ _openmrs_esm_routes__WEBPACK_IMPORTED_MODULE_12__.isOpenmrsRoutes),
765
+ /* harmony export */ isUrl: () => (/* reexport safe */ _openmrs_esm_config__WEBPACK_IMPORTED_MODULE_1__.isUrl),
766
+ /* harmony export */ isUrlWithTemplateParameters: () => (/* reexport safe */ _openmrs_esm_config__WEBPACK_IMPORTED_MODULE_1__.isUrlWithTemplateParameters),
767
+ /* harmony export */ isVersionSatisfied: () => (/* reexport safe */ _openmrs_esm_utils__WEBPACK_IMPORTED_MODULE_16__.isVersionSatisfied),
768
+ /* harmony export */ jsep: () => (/* reexport safe */ _openmrs_esm_expression_evaluator__WEBPACK_IMPORTED_MODULE_5__.jsep),
769
+ /* harmony export */ launchWorkspace: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.launchWorkspace),
770
+ /* harmony export */ launchWorkspaceGroup: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.launchWorkspaceGroup),
771
+ /* harmony export */ leftNavStore: () => (/* reexport safe */ _openmrs_esm_extensions__WEBPACK_IMPORTED_MODULE_6__.leftNavStore),
772
+ /* harmony export */ localStorageRoutesPrefix: () => (/* reexport safe */ _openmrs_esm_routes__WEBPACK_IMPORTED_MODULE_12__.localStorageRoutesPrefix),
773
+ /* harmony export */ makeUrl: () => (/* reexport safe */ _openmrs_esm_api__WEBPACK_IMPORTED_MODULE_0__.makeUrl),
774
+ /* harmony export */ messageOmrsServiceWorker: () => (/* reexport safe */ _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__.messageOmrsServiceWorker),
775
+ /* harmony export */ navigate: () => (/* reexport safe */ _openmrs_esm_navigation__WEBPACK_IMPORTED_MODULE_9__.navigate),
776
+ /* harmony export */ navigateAndLaunchWorkspace: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.navigateAndLaunchWorkspace),
777
+ /* harmony export */ offlineUuidPrefix: () => (/* reexport safe */ _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__.offlineUuidPrefix),
778
+ /* harmony export */ omrsOfflineCachingStrategyHttpHeaderName: () => (/* reexport safe */ _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__.omrsOfflineCachingStrategyHttpHeaderName),
779
+ /* harmony export */ omrsOfflineResponseBodyHttpHeaderName: () => (/* reexport safe */ _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__.omrsOfflineResponseBodyHttpHeaderName),
780
+ /* harmony export */ omrsOfflineResponseStatusHttpHeaderName: () => (/* reexport safe */ _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__.omrsOfflineResponseStatusHttpHeaderName),
781
+ /* harmony export */ oneOf: () => (/* reexport safe */ _openmrs_esm_config__WEBPACK_IMPORTED_MODULE_1__.oneOf),
782
+ /* harmony export */ openmrsComponentDecorator: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.openmrsComponentDecorator),
783
+ /* harmony export */ openmrsFetch: () => (/* reexport safe */ _openmrs_esm_api__WEBPACK_IMPORTED_MODULE_0__.openmrsFetch),
784
+ /* harmony export */ openmrsObservableFetch: () => (/* reexport safe */ _openmrs_esm_api__WEBPACK_IMPORTED_MODULE_0__.openmrsObservableFetch),
785
+ /* harmony export */ parseDate: () => (/* reexport safe */ _openmrs_esm_utils__WEBPACK_IMPORTED_MODULE_16__.parseDate),
786
+ /* harmony export */ preloadImport: () => (/* reexport safe */ _openmrs_esm_dynamic_loading__WEBPACK_IMPORTED_MODULE_2__.preloadImport),
787
+ /* harmony export */ processConfig: () => (/* reexport safe */ _openmrs_esm_config__WEBPACK_IMPORTED_MODULE_1__.processConfig),
788
+ /* harmony export */ promptBeforeClosing: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.promptBeforeClosing),
789
+ /* harmony export */ provide: () => (/* reexport safe */ _openmrs_esm_config__WEBPACK_IMPORTED_MODULE_1__.provide),
790
+ /* harmony export */ putDynamicOfflineData: () => (/* reexport safe */ _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__.putDynamicOfflineData),
791
+ /* harmony export */ putDynamicOfflineDataFor: () => (/* reexport safe */ _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__.putDynamicOfflineDataFor),
792
+ /* harmony export */ queueSynchronizationItem: () => (/* reexport safe */ _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__.queueSynchronizationItem),
793
+ /* harmony export */ queueSynchronizationItemFor: () => (/* reexport safe */ _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__.queueSynchronizationItemFor),
794
+ /* harmony export */ refetchCurrentUser: () => (/* reexport safe */ _openmrs_esm_api__WEBPACK_IMPORTED_MODULE_0__.refetchCurrentUser),
795
+ /* harmony export */ registerApp: () => (/* reexport safe */ _openmrs_esm_routes__WEBPACK_IMPORTED_MODULE_12__.registerApp),
796
+ /* harmony export */ registerBreadcrumb: () => (/* reexport safe */ _openmrs_esm_navigation__WEBPACK_IMPORTED_MODULE_9__.registerBreadcrumb),
797
+ /* harmony export */ registerBreadcrumbs: () => (/* reexport safe */ _openmrs_esm_navigation__WEBPACK_IMPORTED_MODULE_9__.registerBreadcrumbs),
798
+ /* harmony export */ registerDefaultCalendar: () => (/* reexport safe */ _openmrs_esm_utils__WEBPACK_IMPORTED_MODULE_16__.registerDefaultCalendar),
799
+ /* harmony export */ registerExtension: () => (/* reexport safe */ _openmrs_esm_extensions__WEBPACK_IMPORTED_MODULE_6__.registerExtension),
800
+ /* harmony export */ registerExtensionSlot: () => (/* reexport safe */ _openmrs_esm_extensions__WEBPACK_IMPORTED_MODULE_6__.registerExtensionSlot),
801
+ /* harmony export */ registerFeatureFlag: () => (/* reexport safe */ _openmrs_esm_feature_flags__WEBPACK_IMPORTED_MODULE_7__.registerFeatureFlag),
802
+ /* harmony export */ registerGlobalStore: () => (/* reexport safe */ _openmrs_esm_state__WEBPACK_IMPORTED_MODULE_13__.registerGlobalStore),
803
+ /* harmony export */ registerModal: () => (/* reexport safe */ _openmrs_esm_extensions__WEBPACK_IMPORTED_MODULE_6__.registerModal),
804
+ /* harmony export */ registerModuleLoad: () => (/* reexport safe */ _openmrs_esm_config__WEBPACK_IMPORTED_MODULE_1__.registerModuleLoad),
805
+ /* harmony export */ registerModuleWithConfigSystem: () => (/* reexport safe */ _openmrs_esm_config__WEBPACK_IMPORTED_MODULE_1__.registerModuleWithConfigSystem),
806
+ /* harmony export */ registerOfflinePatientHandler: () => (/* reexport safe */ _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__.registerOfflinePatientHandler),
807
+ /* harmony export */ registerOmrsServiceWorker: () => (/* reexport safe */ _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__.registerOmrsServiceWorker),
808
+ /* harmony export */ registerTranslationNamespace: () => (/* reexport safe */ _openmrs_esm_config__WEBPACK_IMPORTED_MODULE_1__.registerTranslationNamespace),
809
+ /* harmony export */ registerWorkspace: () => (/* reexport safe */ _openmrs_esm_extensions__WEBPACK_IMPORTED_MODULE_6__.registerWorkspace),
810
+ /* harmony export */ registerWorkspaceGroup: () => (/* reexport safe */ _openmrs_esm_extensions__WEBPACK_IMPORTED_MODULE_6__.registerWorkspaceGroup),
811
+ /* harmony export */ removeDynamicOfflineData: () => (/* reexport safe */ _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__.removeDynamicOfflineData),
812
+ /* harmony export */ removeDynamicOfflineDataFor: () => (/* reexport safe */ _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__.removeDynamicOfflineDataFor),
813
+ /* harmony export */ removeRoutesOverride: () => (/* reexport safe */ _openmrs_esm_routes__WEBPACK_IMPORTED_MODULE_12__.removeRoutesOverride),
814
+ /* harmony export */ renderActionableNotifications: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.renderActionableNotifications),
815
+ /* harmony export */ renderExtension: () => (/* reexport safe */ _openmrs_esm_extensions__WEBPACK_IMPORTED_MODULE_6__.renderExtension),
816
+ /* harmony export */ renderInlineNotifications: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.renderInlineNotifications),
817
+ /* harmony export */ renderLoadingSpinner: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.renderLoadingSpinner),
818
+ /* harmony export */ renderSnackbars: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.renderSnackbars),
819
+ /* harmony export */ renderToasts: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.renderToasts),
820
+ /* harmony export */ reportError: () => (/* reexport safe */ _openmrs_esm_error_handling__WEBPACK_IMPORTED_MODULE_4__.reportError),
821
+ /* harmony export */ reset: () => (/* reexport safe */ _openmrs_esm_extensions__WEBPACK_IMPORTED_MODULE_6__.reset),
822
+ /* harmony export */ resetAllRoutesOverrides: () => (/* reexport safe */ _openmrs_esm_routes__WEBPACK_IMPORTED_MODULE_12__.resetAllRoutesOverrides),
823
+ /* harmony export */ resetWorkspaceStore: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.resetWorkspaceStore),
824
+ /* harmony export */ restBaseUrl: () => (/* reexport safe */ _openmrs_esm_api__WEBPACK_IMPORTED_MODULE_0__.restBaseUrl),
825
+ /* harmony export */ retry: () => (/* reexport safe */ _openmrs_esm_utils__WEBPACK_IMPORTED_MODULE_16__.retry),
826
+ /* harmony export */ runSynchronization: () => (/* reexport safe */ _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__.runSynchronization),
827
+ /* harmony export */ saveVisit: () => (/* reexport safe */ _openmrs_esm_emr_api__WEBPACK_IMPORTED_MODULE_3__.saveVisit),
828
+ /* harmony export */ selectPreferredName: () => (/* reexport safe */ _openmrs_esm_utils__WEBPACK_IMPORTED_MODULE_16__.selectPreferredName),
829
+ /* harmony export */ sessionEndpoint: () => (/* reexport safe */ _openmrs_esm_api__WEBPACK_IMPORTED_MODULE_0__.sessionEndpoint),
830
+ /* harmony export */ sessionStore: () => (/* reexport safe */ _openmrs_esm_api__WEBPACK_IMPORTED_MODULE_0__.sessionStore),
831
+ /* harmony export */ setCurrentOfflineMode: () => (/* reexport safe */ _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__.setCurrentOfflineMode),
832
+ /* harmony export */ setCurrentVisit: () => (/* reexport safe */ _openmrs_esm_emr_api__WEBPACK_IMPORTED_MODULE_3__.setCurrentVisit),
833
+ /* harmony export */ setFeatureFlag: () => (/* reexport safe */ _openmrs_esm_feature_flags__WEBPACK_IMPORTED_MODULE_7__.setFeatureFlag),
834
+ /* harmony export */ setLeftNav: () => (/* reexport safe */ _openmrs_esm_extensions__WEBPACK_IMPORTED_MODULE_6__.setLeftNav),
835
+ /* harmony export */ setSessionLocation: () => (/* reexport safe */ _openmrs_esm_api__WEBPACK_IMPORTED_MODULE_0__.setSessionLocation),
836
+ /* harmony export */ setUserLanguage: () => (/* reexport safe */ _openmrs_esm_api__WEBPACK_IMPORTED_MODULE_0__.setUserLanguage),
837
+ /* harmony export */ setUserProperties: () => (/* reexport safe */ _openmrs_esm_api__WEBPACK_IMPORTED_MODULE_0__.setUserProperties),
838
+ /* harmony export */ setupApiModule: () => (/* reexport safe */ _openmrs_esm_api__WEBPACK_IMPORTED_MODULE_0__.setupApiModule),
839
+ /* harmony export */ setupDynamicOfflineDataHandler: () => (/* reexport safe */ _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__.setupDynamicOfflineDataHandler),
840
+ /* harmony export */ setupHistory: () => (/* reexport safe */ _openmrs_esm_navigation__WEBPACK_IMPORTED_MODULE_9__.setupHistory),
841
+ /* harmony export */ setupModals: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.setupModals),
842
+ /* harmony export */ setupOfflineSync: () => (/* reexport safe */ _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__.setupOfflineSync),
843
+ /* harmony export */ shallowEqual: () => (/* reexport safe */ _openmrs_esm_utils__WEBPACK_IMPORTED_MODULE_16__.shallowEqual),
844
+ /* harmony export */ showActionableNotification: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.showActionableNotification),
845
+ /* harmony export */ showModal: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.showModal),
846
+ /* harmony export */ showNotification: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.showNotification),
847
+ /* harmony export */ showSnackbar: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.showSnackbar),
848
+ /* harmony export */ showToast: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.showToast),
849
+ /* harmony export */ showWorkspacePrompts: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.showWorkspacePrompts),
850
+ /* harmony export */ slugify: () => (/* reexport safe */ _openmrs_esm_dynamic_loading__WEBPACK_IMPORTED_MODULE_2__.slugify),
851
+ /* harmony export */ subscribeActionableNotificationShown: () => (/* reexport safe */ _openmrs_esm_globals__WEBPACK_IMPORTED_MODULE_8__.subscribeActionableNotificationShown),
852
+ /* harmony export */ subscribeConnectivity: () => (/* reexport safe */ _openmrs_esm_globals__WEBPACK_IMPORTED_MODULE_8__.subscribeConnectivity),
853
+ /* harmony export */ subscribeConnectivityChanged: () => (/* reexport safe */ _openmrs_esm_globals__WEBPACK_IMPORTED_MODULE_8__.subscribeConnectivityChanged),
854
+ /* harmony export */ subscribeNotificationShown: () => (/* reexport safe */ _openmrs_esm_globals__WEBPACK_IMPORTED_MODULE_8__.subscribeNotificationShown),
855
+ /* harmony export */ subscribePrecacheStaticDependencies: () => (/* reexport safe */ _openmrs_esm_globals__WEBPACK_IMPORTED_MODULE_8__.subscribePrecacheStaticDependencies),
856
+ /* harmony export */ subscribeSnackbarShown: () => (/* reexport safe */ _openmrs_esm_globals__WEBPACK_IMPORTED_MODULE_8__.subscribeSnackbarShown),
857
+ /* harmony export */ subscribeTo: () => (/* reexport safe */ _openmrs_esm_state__WEBPACK_IMPORTED_MODULE_13__.subscribeTo),
858
+ /* harmony export */ subscribeToFeatureFlag: () => (/* reexport safe */ _openmrs_esm_feature_flags__WEBPACK_IMPORTED_MODULE_7__.subscribeToFeatureFlag),
859
+ /* harmony export */ subscribeToastShown: () => (/* reexport safe */ _openmrs_esm_globals__WEBPACK_IMPORTED_MODULE_8__.subscribeToastShown),
860
+ /* harmony export */ syncAllDynamicOfflineData: () => (/* reexport safe */ _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__.syncAllDynamicOfflineData),
861
+ /* harmony export */ syncDynamicOfflineData: () => (/* reexport safe */ _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__.syncDynamicOfflineData),
862
+ /* harmony export */ syncOfflinePatientData: () => (/* reexport safe */ _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__.syncOfflinePatientData),
863
+ /* harmony export */ temporaryConfigStore: () => (/* reexport safe */ _openmrs_esm_config__WEBPACK_IMPORTED_MODULE_1__.temporaryConfigStore),
864
+ /* harmony export */ toDateObjectStrict: () => (/* reexport safe */ _openmrs_esm_utils__WEBPACK_IMPORTED_MODULE_16__.toDateObjectStrict),
865
+ /* harmony export */ toLocationObject: () => (/* reexport safe */ _openmrs_esm_emr_api__WEBPACK_IMPORTED_MODULE_3__.toLocationObject),
866
+ /* harmony export */ toOmrsIsoString: () => (/* reexport safe */ _openmrs_esm_utils__WEBPACK_IMPORTED_MODULE_16__.toOmrsIsoString),
867
+ /* harmony export */ toVisitTypeObject: () => (/* reexport safe */ _openmrs_esm_emr_api__WEBPACK_IMPORTED_MODULE_3__.toVisitTypeObject),
868
+ /* harmony export */ translateFrom: () => (/* reexport safe */ _openmrs_esm_translations__WEBPACK_IMPORTED_MODULE_15__.translateFrom),
869
+ /* harmony export */ tryRegisterExtension: () => (/* reexport safe */ _openmrs_esm_routes__WEBPACK_IMPORTED_MODULE_12__.tryRegisterExtension),
870
+ /* harmony export */ unsetLeftNav: () => (/* reexport safe */ _openmrs_esm_extensions__WEBPACK_IMPORTED_MODULE_6__.unsetLeftNav),
871
+ /* harmony export */ updateInternalExtensionStore: () => (/* reexport safe */ _openmrs_esm_extensions__WEBPACK_IMPORTED_MODULE_6__.updateInternalExtensionStore),
872
+ /* harmony export */ updateVisit: () => (/* reexport safe */ _openmrs_esm_emr_api__WEBPACK_IMPORTED_MODULE_3__.updateVisit),
873
+ /* harmony export */ updateWorkspaceWindowState: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.updateWorkspaceWindowState),
874
+ /* harmony export */ useAbortController: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.useAbortController),
875
+ /* harmony export */ useAppContext: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.useAppContext),
876
+ /* harmony export */ useAssignedExtensionIds: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.useAssignedExtensionIds),
877
+ /* harmony export */ useAssignedExtensions: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.useAssignedExtensions),
878
+ /* harmony export */ useAttachments: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.useAttachments),
879
+ /* harmony export */ useBodyScrollLock: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.useBodyScrollLock),
880
+ /* harmony export */ useConfig: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.useConfig),
881
+ /* harmony export */ useConnectedExtensions: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.useConnectedExtensions),
882
+ /* harmony export */ useConnectivity: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.useConnectivity),
883
+ /* harmony export */ useDebounce: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.useDebounce),
884
+ /* harmony export */ useDefineAppContext: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.useDefineAppContext),
885
+ /* harmony export */ useEmrConfiguration: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.useEmrConfiguration),
886
+ /* harmony export */ useExtensionInternalStore: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.useExtensionInternalStore),
887
+ /* harmony export */ useExtensionSlot: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.useExtensionSlot),
888
+ /* harmony export */ useExtensionSlotMeta: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.useExtensionSlotMeta),
889
+ /* harmony export */ useExtensionSlotStore: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.useExtensionSlotStore),
890
+ /* harmony export */ useExtensionStore: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.useExtensionStore),
891
+ /* harmony export */ useFeatureFlag: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.useFeatureFlag),
892
+ /* harmony export */ useFhirFetchAll: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.useFhirFetchAll),
893
+ /* harmony export */ useFhirInfinite: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.useFhirInfinite),
894
+ /* harmony export */ useFhirPagination: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.useFhirPagination),
895
+ /* harmony export */ useForceUpdate: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.useForceUpdate),
896
+ /* harmony export */ useLayoutType: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.useLayoutType),
897
+ /* harmony export */ useLeftNav: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.useLeftNav),
898
+ /* harmony export */ useLeftNavStore: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.useLeftNavStore),
899
+ /* harmony export */ useLocations: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.useLocations),
900
+ /* harmony export */ useOnClickOutside: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.useOnClickOutside),
901
+ /* harmony export */ useOnVisible: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.useOnVisible),
902
+ /* harmony export */ useOpenmrsFetchAll: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.useOpenmrsFetchAll),
903
+ /* harmony export */ useOpenmrsInfinite: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.useOpenmrsInfinite),
904
+ /* harmony export */ useOpenmrsPagination: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.useOpenmrsPagination),
905
+ /* harmony export */ useOpenmrsSWR: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.useOpenmrsSWR),
906
+ /* harmony export */ usePagination: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.usePagination),
907
+ /* harmony export */ usePatient: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.usePatient),
908
+ /* harmony export */ usePatientPhoto: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.usePatientPhoto),
909
+ /* harmony export */ usePrimaryIdentifierCode: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.usePrimaryIdentifierCode),
910
+ /* harmony export */ useRenderableExtensions: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.useRenderableExtensions),
911
+ /* harmony export */ useSession: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.useSession),
912
+ /* harmony export */ useStore: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.useStore),
913
+ /* harmony export */ useStoreWithActions: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.useStoreWithActions),
914
+ /* harmony export */ useVisit: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.useVisit),
915
+ /* harmony export */ useVisitContextStore: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.useVisitContextStore),
916
+ /* harmony export */ useVisitTypes: () => (/* reexport safe */ _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__.useVisitTypes),
917
+ /* harmony export */ useWorkspaces: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.useWorkspaces),
918
+ /* harmony export */ userHasAccess: () => (/* reexport safe */ _openmrs_esm_api__WEBPACK_IMPORTED_MODULE_0__.userHasAccess),
919
+ /* harmony export */ validator: () => (/* reexport safe */ _openmrs_esm_config__WEBPACK_IMPORTED_MODULE_1__.validator),
920
+ /* harmony export */ validators: () => (/* reexport safe */ _openmrs_esm_config__WEBPACK_IMPORTED_MODULE_1__.validators),
921
+ /* harmony export */ workspaceStore: () => (/* reexport safe */ _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__.workspaceStore)
922
+ /* harmony export */ });
923
+ /* harmony import */ var _openmrs_esm_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @openmrs/esm-api */ "../../node_modules/@openmrs/esm-api/dist/index.js");
924
+ /* harmony import */ var _openmrs_esm_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @openmrs/esm-config */ "../../node_modules/@openmrs/esm-config/dist/index.js");
925
+ /* harmony import */ var _openmrs_esm_dynamic_loading__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @openmrs/esm-dynamic-loading */ "../../node_modules/@openmrs/esm-dynamic-loading/dist/index.js");
926
+ /* harmony import */ var _openmrs_esm_emr_api__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @openmrs/esm-emr-api */ "../../node_modules/@openmrs/esm-emr-api/dist/index.js");
927
+ /* harmony import */ var _openmrs_esm_error_handling__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @openmrs/esm-error-handling */ "../../node_modules/@openmrs/esm-error-handling/dist/index.js");
928
+ /* harmony import */ var _openmrs_esm_expression_evaluator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @openmrs/esm-expression-evaluator */ "../../node_modules/@openmrs/esm-expression-evaluator/dist/index.js");
929
+ /* harmony import */ var _openmrs_esm_extensions__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @openmrs/esm-extensions */ "../../node_modules/@openmrs/esm-extensions/dist/index.js");
930
+ /* harmony import */ var _openmrs_esm_feature_flags__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @openmrs/esm-feature-flags */ "../../node_modules/@openmrs/esm-feature-flags/dist/index.js");
931
+ /* harmony import */ var _openmrs_esm_globals__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @openmrs/esm-globals */ "../../node_modules/@openmrs/esm-globals/dist/index.js");
932
+ /* harmony import */ var _openmrs_esm_navigation__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @openmrs/esm-navigation */ "../../node_modules/@openmrs/esm-navigation/dist/index.js");
933
+ /* harmony import */ var _openmrs_esm_offline__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @openmrs/esm-offline */ "../../node_modules/@openmrs/esm-offline/dist/index.js");
934
+ /* harmony import */ var _openmrs_esm_react_utils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @openmrs/esm-react-utils */ "../../node_modules/@openmrs/esm-react-utils/dist/index.js");
935
+ /* harmony import */ var _openmrs_esm_routes__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @openmrs/esm-routes */ "../../node_modules/@openmrs/esm-routes/dist/index.js");
936
+ /* harmony import */ var _openmrs_esm_state__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @openmrs/esm-state */ "../../node_modules/@openmrs/esm-state/dist/index.js");
937
+ /* harmony import */ var _openmrs_esm_styleguide_src_internal__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @openmrs/esm-styleguide/src/internal */ "../../node_modules/@openmrs/esm-styleguide/src/internal.ts");
938
+ /* harmony import */ var _openmrs_esm_translations__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @openmrs/esm-translations */ "../../node_modules/@openmrs/esm-translations/dist/index.js");
939
+ /* harmony import */ var _openmrs_esm_utils__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @openmrs/esm-utils */ "../../node_modules/@openmrs/esm-utils/dist/index.js");
940
+
941
+
942
+
943
+
944
+
945
+
946
+
947
+
948
+
949
+
950
+
951
+
952
+
953
+
954
+
955
+
956
+
957
+
958
+
959
+ /***/ }),
960
+
961
+ /***/ "../../node_modules/@openmrs/esm-routes/dist/constants.js":
962
+ /*!****************************************************************!*\
963
+ !*** ../../node_modules/@openmrs/esm-routes/dist/constants.js ***!
964
+ \****************************************************************/
965
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
966
+
967
+ "use strict";
968
+ __webpack_require__.r(__webpack_exports__);
969
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
970
+ /* harmony export */ localStorageRoutesPrefix: () => (/* binding */ localStorageRoutesPrefix)
971
+ /* harmony export */ });
972
+ const localStorageRoutesPrefix = 'openmrs-routes:';
973
+
974
+
975
+ /***/ }),
976
+
977
+ /***/ "../../node_modules/@openmrs/esm-routes/dist/index.js":
978
+ /*!************************************************************!*\
979
+ !*** ../../node_modules/@openmrs/esm-routes/dist/index.js ***!
980
+ \************************************************************/
981
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
982
+
983
+ "use strict";
984
+ __webpack_require__.r(__webpack_exports__);
985
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
986
+ /* harmony export */ addRoutesOverride: () => (/* reexport safe */ _routes_js__WEBPACK_IMPORTED_MODULE_2__.addRoutesOverride),
987
+ /* harmony export */ finishRegisteringAllApps: () => (/* reexport safe */ _loaders_index_js__WEBPACK_IMPORTED_MODULE_1__.finishRegisteringAllApps),
988
+ /* harmony export */ initializeApp: () => (/* reexport safe */ _loaders_index_js__WEBPACK_IMPORTED_MODULE_1__.initializeApp),
989
+ /* harmony export */ isOpenmrsAppRoutes: () => (/* reexport safe */ _routes_js__WEBPACK_IMPORTED_MODULE_2__.isOpenmrsAppRoutes),
990
+ /* harmony export */ isOpenmrsRoutes: () => (/* reexport safe */ _routes_js__WEBPACK_IMPORTED_MODULE_2__.isOpenmrsRoutes),
991
+ /* harmony export */ localStorageRoutesPrefix: () => (/* reexport safe */ _constants_js__WEBPACK_IMPORTED_MODULE_0__.localStorageRoutesPrefix),
992
+ /* harmony export */ registerApp: () => (/* reexport safe */ _loaders_index_js__WEBPACK_IMPORTED_MODULE_1__.registerApp),
993
+ /* harmony export */ removeRoutesOverride: () => (/* reexport safe */ _routes_js__WEBPACK_IMPORTED_MODULE_2__.removeRoutesOverride),
994
+ /* harmony export */ resetAllRoutesOverrides: () => (/* reexport safe */ _routes_js__WEBPACK_IMPORTED_MODULE_2__.resetAllRoutesOverrides),
995
+ /* harmony export */ tryRegisterExtension: () => (/* reexport safe */ _loaders_index_js__WEBPACK_IMPORTED_MODULE_1__.tryRegisterExtension)
996
+ /* harmony export */ });
997
+ /* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constants.js */ "../../node_modules/@openmrs/esm-routes/dist/constants.js");
998
+ /* harmony import */ var _loaders_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./loaders/index.js */ "../../node_modules/@openmrs/esm-routes/dist/loaders/index.js");
999
+ /* harmony import */ var _routes_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./routes.js */ "../../node_modules/@openmrs/esm-routes/dist/routes.js");
1000
+
1001
+
1002
+
1003
+
1004
+
1005
+ /***/ }),
1006
+
1007
+ /***/ "../../node_modules/@openmrs/esm-routes/dist/loaders/app.js":
1008
+ /*!******************************************************************!*\
1009
+ !*** ../../node_modules/@openmrs/esm-routes/dist/loaders/app.js ***!
1010
+ \******************************************************************/
1011
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1012
+
1013
+ "use strict";
1014
+ __webpack_require__.r(__webpack_exports__);
1015
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1016
+ /* harmony export */ getLoader: () => (/* binding */ getLoader),
1017
+ /* harmony export */ initializeApp: () => (/* binding */ initializeApp)
1018
+ /* harmony export */ });
1019
+ /* harmony import */ var _openmrs_esm_dynamic_loading__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @openmrs/esm-dynamic-loading */ "../../node_modules/@openmrs/esm-dynamic-loading/dist/dynamic-loading.js");
1020
+ /* harmony import */ var _openmrs_esm_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @openmrs/esm-config */ "../../node_modules/@openmrs/esm-config/dist/index.js");
1021
+ /* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./helpers.js */ "../../node_modules/@openmrs/esm-routes/dist/loaders/helpers.js");
1022
+
1023
+
1024
+
1025
+ /**
1026
+ * @internal
1027
+ *
1028
+ * Used internally to track which apps have had their `startupApp()` initializer called
1029
+ *
1030
+ * Values are promises to support asynchronous loading of the same app multiple times
1031
+ */ const initializedApps = new Map();
1032
+ /**
1033
+ * This function creates a loader function suitable for use in either a single-spa
1034
+ * application or parcel.
1035
+ *
1036
+ * The returned function is lazy and ensures that the appropriate module is loaded,
1037
+ * that the module's `startupApp()` is called before the component is loaded. It
1038
+ * then calls the component function, which should return either a single-spa
1039
+ * {@link LifeCycles} object or a {@link Promise} that will resolve to such an object.
1040
+ *
1041
+ * React-based pages or extensions should generally use the framework's
1042
+ * `getAsyncLifecycle()` or `getSyncLifecycle()` functions.
1043
+ *
1044
+ * @param routesAppName The app name of the routes.json file defining the component to load
1045
+ *
1046
+ * @param fullComponentName The name of the component to load. Note that this can optionally
1047
+ * include the appName to load the component from (in the format `${appName}#${componentName}`),
1048
+ * or omitted to implicitly use routesAppName
1049
+ *
1050
+ */ function getLoader(routesAppName, fullComponentName) {
1051
+ return async ()=>{
1052
+ const poundIndex = fullComponentName.indexOf('#');
1053
+ const isNamespaced = poundIndex >= 0;
1054
+ const appName = isNamespaced ? fullComponentName.substring(0, poundIndex) : routesAppName;
1055
+ const componentName = isNamespaced ? fullComponentName.substring(poundIndex + 1) : fullComponentName;
1056
+ const module = await (0,_openmrs_esm_dynamic_loading__WEBPACK_IMPORTED_MODULE_1__.importDynamic)(appName);
1057
+ if (module && Object.hasOwn(module, componentName) && typeof module[componentName] === 'function') {
1058
+ return initializeApp(appName, module).then(()=>module[componentName]());
1059
+ } else {
1060
+ if (!module) {
1061
+ console.warn(`Unknown app ${appName} for ${fullComponentName} defined in ${routesAppName}'s routes.json`);
1062
+ } else if (module && Object.hasOwn(module, componentName)) {
1063
+ console.warn(`The export ${fullComponentName}, defined in ${routesAppName}'s routes.json, is not a function`);
1064
+ } else {
1065
+ console.warn(`${appName} does not define a component called "${componentName}", referenced in ${routesAppName}'s routes.json. This cannot be loaded.`);
1066
+ }
1067
+ }
1068
+ return _helpers_js__WEBPACK_IMPORTED_MODULE_2__.emptyLifecycle;
1069
+ };
1070
+ }
1071
+ /**
1072
+ * This function can be used to manually initialize an application without waiting for the
1073
+ * framework to load it. This can sometimes be helpful if the framework doesn't load code
1074
+ * at the point you think is appropriate.
1075
+ *
1076
+ * This will ensure that the module is available and that it's `startupApp()` function (if
1077
+ * any) will be called. Note that these are only guaranteed to be complete once the Promise
1078
+ * returned from the function completes.
1079
+ *
1080
+ * @param appName The name of the app to initialize
1081
+ * @param module The loaded code module, if available; if this parameter is omitted, this
1082
+ * function will load it.
1083
+ * @returns a Promise which completes once the app has been loaded and initialized
1084
+ */ async function initializeApp(appName, module) {
1085
+ if (!(appName in initializedApps)) {
1086
+ let _module = module ?? await (0,_openmrs_esm_dynamic_loading__WEBPACK_IMPORTED_MODULE_1__.importDynamic)(appName);
1087
+ await (initializedApps[appName] = new Promise((resolve, reject)=>{
1088
+ if (Object.hasOwn(_module, 'startupApp')) {
1089
+ const startup = _module['startupApp'];
1090
+ if (typeof startup === 'function') {
1091
+ return Promise.resolve(startup()).then(()=>{
1092
+ (0,_openmrs_esm_config__WEBPACK_IMPORTED_MODULE_0__.registerModuleLoad)(appName);
1093
+ resolve(null);
1094
+ }).catch(reject);
1095
+ }
1096
+ }
1097
+ (0,_openmrs_esm_config__WEBPACK_IMPORTED_MODULE_0__.registerModuleLoad)(appName);
1098
+ resolve(null);
1099
+ }));
1100
+ } else {
1101
+ await initializedApps[appName];
1102
+ }
1103
+ }
1104
+
1105
+
1106
+ /***/ }),
1107
+
1108
+ /***/ "../../node_modules/@openmrs/esm-routes/dist/loaders/components.js":
1109
+ /*!*************************************************************************!*\
1110
+ !*** ../../node_modules/@openmrs/esm-routes/dist/loaders/components.js ***!
1111
+ \*************************************************************************/
1112
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1113
+
1114
+ "use strict";
1115
+ __webpack_require__.r(__webpack_exports__);
1116
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1117
+ /* harmony export */ tryRegisterExtension: () => (/* binding */ tryRegisterExtension),
1118
+ /* harmony export */ tryRegisterFeatureFlag: () => (/* binding */ tryRegisterFeatureFlag),
1119
+ /* harmony export */ tryRegisterModal: () => (/* binding */ tryRegisterModal),
1120
+ /* harmony export */ tryRegisterWorkspace: () => (/* binding */ tryRegisterWorkspace),
1121
+ /* harmony export */ tryRegisterWorkspaceGroup: () => (/* binding */ tryRegisterWorkspaceGroup)
1122
+ /* harmony export */ });
1123
+ /* harmony import */ var _openmrs_esm_extensions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @openmrs/esm-extensions */ "../../node_modules/@openmrs/esm-extensions/dist/index.js");
1124
+ /* harmony import */ var _app_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./app.js */ "../../node_modules/@openmrs/esm-routes/dist/loaders/app.js");
1125
+ /* harmony import */ var _openmrs_esm_feature_flags__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @openmrs/esm-feature-flags */ "../../node_modules/@openmrs/esm-feature-flags/dist/index.js");
1126
+
1127
+
1128
+
1129
+ /**
1130
+ * This function registers an extension definition with the framework and will
1131
+ * attach the extension to any configured slots.
1132
+ *
1133
+ * @param appName The name of the app containing this extension
1134
+ * @param extension An object that describes the extension, derived from `routes.json`
1135
+ */ function tryRegisterExtension(appName, extension) {
1136
+ const name = extension.name;
1137
+ if (!name) {
1138
+ console.error(`An extension definition in ${appName} is missing an name and thus cannot be
1139
+ registered. To fix this, ensure that you define the "name" field inside the
1140
+ extension definition.`, extension);
1141
+ return;
1142
+ }
1143
+ if (extension.slots && extension.slot) {
1144
+ console.warn(`The extension ${name} from ${appName} declares both a 'slots' property and
1145
+ a 'slot' property. Only the 'slots' property will be honored.`);
1146
+ }
1147
+ const slots = extension.slots ? extension.slots : extension.slot ? [
1148
+ extension.slot
1149
+ ] : [];
1150
+ if (!extension.component && !extension.load) {
1151
+ console.error(`The extension ${name} from ${appName} is missing a 'component' entry and thus cannot be registered.
1152
+ To fix this, ensure that you define a 'component' field inside the extension definition.`, extension);
1153
+ return;
1154
+ }
1155
+ let loader = undefined;
1156
+ if (extension.component) {
1157
+ loader = (0,_app_js__WEBPACK_IMPORTED_MODULE_2__.getLoader)(appName, extension.component);
1158
+ } else if (extension.load) {
1159
+ if (typeof extension.load !== 'function') {
1160
+ console.error(`The extension ${name} from ${appName} declares a 'load' property that is not a function. This is not
1161
+ supported, so the extension will not be loaded.`);
1162
+ return;
1163
+ }
1164
+ loader = extension.load;
1165
+ }
1166
+ if (loader) {
1167
+ (0,_openmrs_esm_extensions__WEBPACK_IMPORTED_MODULE_0__.registerExtension)({
1168
+ name,
1169
+ load: loader,
1170
+ meta: extension.meta || {},
1171
+ order: extension.order,
1172
+ moduleName: appName,
1173
+ privileges: extension.privileges,
1174
+ online: extension.online ?? true,
1175
+ offline: extension.offline ?? false,
1176
+ featureFlag: extension.featureFlag
1177
+ });
1178
+ }
1179
+ for (const slot of slots){
1180
+ (0,_openmrs_esm_extensions__WEBPACK_IMPORTED_MODULE_0__.attach)(slot, name);
1181
+ }
1182
+ }
1183
+ /**
1184
+ * This function registers a modal definition with the framework so that it can be launched.
1185
+ *
1186
+ * @param appName The name of the app defining this modal
1187
+ * @param modal An object that describes the modal, derived from `routes.json`
1188
+ */ function tryRegisterModal(appName, modal) {
1189
+ const name = modal.name;
1190
+ if (!name) {
1191
+ console.error(`A modal definition in ${appName} is missing an name and thus cannot be
1192
+ registered. To fix this, ensure that you define the "name" field inside the
1193
+ modal definition.`, modal);
1194
+ return;
1195
+ }
1196
+ if (!modal.component && !modal.load) {
1197
+ console.error(`The modal ${name} from ${appName} is missing a 'component' entry and thus cannot be registered.
1198
+ To fix this, ensure that you define a 'component' field inside the modal definition.`, modal);
1199
+ return;
1200
+ }
1201
+ let loader = undefined;
1202
+ if (modal.component) {
1203
+ loader = (0,_app_js__WEBPACK_IMPORTED_MODULE_2__.getLoader)(appName, modal.component);
1204
+ } else if (modal.load) {
1205
+ if (typeof modal.load !== 'function') {
1206
+ console.error(`The modal ${name} from ${appName} declares a 'load' property that is not a function. This is not
1207
+ supported, so the modal will not be loaded.`);
1208
+ return;
1209
+ }
1210
+ loader = modal.load;
1211
+ }
1212
+ if (loader) {
1213
+ (0,_openmrs_esm_extensions__WEBPACK_IMPORTED_MODULE_0__.registerModal)({
1214
+ name,
1215
+ load: loader,
1216
+ moduleName: appName
1217
+ });
1218
+ }
1219
+ }
1220
+ /**
1221
+ * This function registers a workspace definition with the framework so that it can be launched.
1222
+ *
1223
+ * @param appName The name of the app defining this workspace
1224
+ * @param workspace An object that describes the workspace, derived from `routes.json`
1225
+ */ function tryRegisterWorkspace(appName, workspace) {
1226
+ const name = workspace.name;
1227
+ if (!name) {
1228
+ console.error(`A workspace definition in ${appName} is missing a name and thus cannot be registered.
1229
+ To fix this, ensure that you define the "name" field inside the workspace definition.`, workspace);
1230
+ return;
1231
+ }
1232
+ const title = workspace.title;
1233
+ if (!title) {
1234
+ console.error(`A workspace definition in ${appName} is missing a title and thus cannot be registered.
1235
+ To fix this, ensure that you define the "title" field inside the workspace definition.`, workspace);
1236
+ return;
1237
+ }
1238
+ if (!workspace.component && !workspace.load) {
1239
+ console.error(`The workspace ${name} from ${appName} is missing a 'component' entry and thus cannot be registered.
1240
+ To fix this, ensure that you define a 'component' field inside the workspace definition.`, workspace);
1241
+ return;
1242
+ }
1243
+ let loader = undefined;
1244
+ if (workspace.component) {
1245
+ loader = (0,_app_js__WEBPACK_IMPORTED_MODULE_2__.getLoader)(appName, workspace.component);
1246
+ } else if (workspace.load) {
1247
+ if (typeof workspace.load !== 'function') {
1248
+ console.error(`The workspace ${name} from ${appName} declares a 'load' property that is not a function. This is not
1249
+ supported, so the workspace will not be loaded.`);
1250
+ return;
1251
+ }
1252
+ loader = workspace.load;
1253
+ }
1254
+ if (loader) {
1255
+ (0,_openmrs_esm_extensions__WEBPACK_IMPORTED_MODULE_0__.registerWorkspace)({
1256
+ name,
1257
+ title,
1258
+ load: loader,
1259
+ moduleName: appName,
1260
+ type: workspace.type,
1261
+ canHide: workspace.canHide,
1262
+ canMaximize: workspace.canMaximize,
1263
+ width: workspace.width,
1264
+ preferredWindowSize: workspace.preferredWindowSize,
1265
+ groups: workspace.groups
1266
+ });
1267
+ }
1268
+ for (const group of workspace.groups || []){
1269
+ (0,_openmrs_esm_extensions__WEBPACK_IMPORTED_MODULE_0__.registerWorkspaceGroup)({
1270
+ name: group,
1271
+ members: [
1272
+ name
1273
+ ]
1274
+ });
1275
+ }
1276
+ }
1277
+ /**
1278
+ * This function registers a workspace group definition with the framework so that it can be launched.
1279
+ *
1280
+ * @param appName The name of the app defining this workspace
1281
+ * @param workspace An object that describes the workspace, derived from `routes.json`
1282
+ */ function tryRegisterWorkspaceGroup(appName, workspaceGroup) {
1283
+ const name = workspaceGroup.name;
1284
+ if (!name) {
1285
+ console.error(`A workspace group definition in ${appName} is missing a name and thus cannot be registered.
1286
+ To fix this, ensure that you define the "name" field inside the workspace definition.`, workspaceGroup);
1287
+ return;
1288
+ }
1289
+ (0,_openmrs_esm_extensions__WEBPACK_IMPORTED_MODULE_0__.registerWorkspaceGroup)({
1290
+ name,
1291
+ members: workspaceGroup.members ?? []
1292
+ });
1293
+ }
1294
+ /**
1295
+ * This function registers a feature flag definition with the framework.
1296
+ *
1297
+ * @param appName The name of the app defining this feature flag
1298
+ * @param featureFlag An object that describes the feature flag, derived from `routes.json`
1299
+ */ function tryRegisterFeatureFlag(appName, featureFlag) {
1300
+ const name = featureFlag.flagName;
1301
+ if (!name) {
1302
+ console.error(`A feature flag definition in ${appName} is missing a name and thus cannot be registered.
1303
+ To fix this, ensure that you define the "name" field inside the feature flag definition.`, featureFlag);
1304
+ return;
1305
+ }
1306
+ const label = featureFlag.label;
1307
+ if (!label) {
1308
+ console.error(`A feature flag definition in ${appName} is missing a description and thus cannot be registered.
1309
+ To fix this, ensure that you define the "label" field inside the feature flag definition.`, featureFlag);
1310
+ return;
1311
+ }
1312
+ const description = featureFlag.description;
1313
+ if (!description) {
1314
+ console.error(`A feature flag definition in ${appName} is missing a description and thus cannot be registered.
1315
+ To fix this, ensure that you define the "description" field inside the feature flag definition.`, featureFlag);
1316
+ return;
1317
+ }
1318
+ (0,_openmrs_esm_feature_flags__WEBPACK_IMPORTED_MODULE_1__.registerFeatureFlag)(featureFlag.flagName, featureFlag.label, featureFlag.description);
1319
+ }
1320
+
1321
+
1322
+ /***/ }),
1323
+
1324
+ /***/ "../../node_modules/@openmrs/esm-routes/dist/loaders/helpers.js":
1325
+ /*!**********************************************************************!*\
1326
+ !*** ../../node_modules/@openmrs/esm-routes/dist/loaders/helpers.js ***!
1327
+ \**********************************************************************/
1328
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1329
+
1330
+ "use strict";
1331
+ __webpack_require__.r(__webpack_exports__);
1332
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1333
+ /* harmony export */ emptyLifecycle: () => (/* binding */ emptyLifecycle),
1334
+ /* harmony export */ routeRegex: () => (/* binding */ routeRegex)
1335
+ /* harmony export */ });
1336
+ const emptyLifecycle = {
1337
+ bootstrap () {
1338
+ return Promise.resolve();
1339
+ },
1340
+ mount () {
1341
+ return Promise.resolve();
1342
+ },
1343
+ unmount () {
1344
+ return Promise.resolve();
1345
+ }
1346
+ };
1347
+ function routeRegex(regex, location) {
1348
+ const result = regex.test(location.pathname.replace(window.getOpenmrsSpaBase(), ''));
1349
+ return result;
1350
+ }
1351
+
1352
+
1353
+ /***/ }),
1354
+
1355
+ /***/ "../../node_modules/@openmrs/esm-routes/dist/loaders/index.js":
1356
+ /*!********************************************************************!*\
1357
+ !*** ../../node_modules/@openmrs/esm-routes/dist/loaders/index.js ***!
1358
+ \********************************************************************/
1359
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1360
+
1361
+ "use strict";
1362
+ __webpack_require__.r(__webpack_exports__);
1363
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1364
+ /* harmony export */ finishRegisteringAllApps: () => (/* reexport safe */ _pages_js__WEBPACK_IMPORTED_MODULE_1__.finishRegisteringAllApps),
1365
+ /* harmony export */ initializeApp: () => (/* reexport safe */ _app_js__WEBPACK_IMPORTED_MODULE_0__.initializeApp),
1366
+ /* harmony export */ registerApp: () => (/* reexport safe */ _pages_js__WEBPACK_IMPORTED_MODULE_1__.registerApp),
1367
+ /* harmony export */ tryRegisterExtension: () => (/* reexport safe */ _components_js__WEBPACK_IMPORTED_MODULE_2__.tryRegisterExtension)
1368
+ /* harmony export */ });
1369
+ /* harmony import */ var _app_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./app.js */ "../../node_modules/@openmrs/esm-routes/dist/loaders/app.js");
1370
+ /* harmony import */ var _pages_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./pages.js */ "../../node_modules/@openmrs/esm-routes/dist/loaders/pages.js");
1371
+ /* harmony import */ var _components_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components.js */ "../../node_modules/@openmrs/esm-routes/dist/loaders/components.js");
1372
+
1373
+
1374
+
1375
+
1376
+
1377
+ /***/ }),
1378
+
1379
+ /***/ "../../node_modules/@openmrs/esm-routes/dist/loaders/pages.js":
1380
+ /*!********************************************************************!*\
1381
+ !*** ../../node_modules/@openmrs/esm-routes/dist/loaders/pages.js ***!
1382
+ \********************************************************************/
1383
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1384
+
1385
+ "use strict";
1386
+ __webpack_require__.r(__webpack_exports__);
1387
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1388
+ /* harmony export */ finishRegisteringAllApps: () => (/* binding */ finishRegisteringAllApps),
1389
+ /* harmony export */ registerApp: () => (/* binding */ registerApp)
1390
+ /* harmony export */ });
1391
+ /* harmony import */ var single_spa__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! single-spa */ "../../node_modules/single-spa/lib/es2015/esm/single-spa.dev.js");
1392
+ /* harmony import */ var _openmrs_esm_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @openmrs/esm-config */ "../../node_modules/@openmrs/esm-config/dist/index.js");
1393
+ /* harmony import */ var _openmrs_esm_feature_flags__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @openmrs/esm-feature-flags */ "../../node_modules/@openmrs/esm-feature-flags/dist/index.js");
1394
+ /* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./helpers.js */ "../../node_modules/@openmrs/esm-routes/dist/loaders/helpers.js");
1395
+ /* harmony import */ var _app_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./app.js */ "../../node_modules/@openmrs/esm-routes/dist/loaders/app.js");
1396
+ /* harmony import */ var _components_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components.js */ "../../node_modules/@openmrs/esm-routes/dist/loaders/components.js");
1397
+
1398
+
1399
+
1400
+
1401
+
1402
+
1403
+ // this is the global holder of all pages registered in the app
1404
+ const pages = [];
1405
+ /**
1406
+ * This takes a page's route definitions and returns a single-spa
1407
+ * activityFn which returns true when the page matches the current
1408
+ * route and false if it does not.
1409
+ *
1410
+ * @param route A string or regexp that matches the location when the
1411
+ * page should be displayed, a boolean constant, or an array of such
1412
+ * strings, regexps, and booleans
1413
+ * @returns An activityFn suitable to use for a single-spa application
1414
+ */ function getActivityFn(route) {
1415
+ if (Array.isArray(route)) {
1416
+ const activators = route.map(getActivityFn);
1417
+ return (location)=>activators.some((activator)=>activator(location));
1418
+ } else if (typeof route === 'string') {
1419
+ return (0,single_spa__WEBPACK_IMPORTED_MODULE_0__.pathToActiveWhen)(window.getOpenmrsSpaBase() + route);
1420
+ } else if (route instanceof RegExp) {
1421
+ return (location)=>(0,_helpers_js__WEBPACK_IMPORTED_MODULE_3__.routeRegex)(route, location);
1422
+ } else {
1423
+ return ()=>route;
1424
+ }
1425
+ }
1426
+ /**
1427
+ * For pages, we also add support for rendered them based on online and offline mode as well as
1428
+ * any feature flags.
1429
+ *
1430
+ * By default, we assume that all pages should be rendered when online, but only rendered
1431
+ * offline if specifically configured to do so.
1432
+ *
1433
+ * @param activityFn A standard single-spa activityFn such as that returned by {@link getActivityFn()}
1434
+ * @param pageDefinition The RegisteredPageDefinition object for this page
1435
+ * @returns An activityFn suitable to use for a single-spa application
1436
+ */ function wrapPageActivityFn(activityFn, { online, offline, featureFlag }) {
1437
+ if (window.offlineEnabled) {
1438
+ return (location)=>{
1439
+ // basically, if the page should only work online and we're offline or if the
1440
+ // page should only work offline and we're online, defaulting to always rendering
1441
+ // the page
1442
+ if (!(navigator.onLine && (online ?? true) || !navigator.onLine && (offline ?? false))) {
1443
+ return false;
1444
+ }
1445
+ if (featureFlag) {
1446
+ if (!(0,_openmrs_esm_feature_flags__WEBPACK_IMPORTED_MODULE_2__.getFeatureFlag)(featureFlag)) {
1447
+ return false;
1448
+ }
1449
+ }
1450
+ return activityFn(location);
1451
+ };
1452
+ } else {
1453
+ return activityFn;
1454
+ }
1455
+ }
1456
+ /**
1457
+ * This is the main entry-point for registering an app with the app shell.
1458
+ * Each app has a name and should have a `routes.json` file that defines it's
1459
+ * associated routes.
1460
+ *
1461
+ * @param appName The name of the application, e.g. `@openmrs/esm-my-app`
1462
+ * @param routes A Javascript object that corresponds to the app's routes.json`
1463
+ * definition.
1464
+ */ function registerApp(appName, routes) {
1465
+ if (appName && routes && typeof routes === 'object') {
1466
+ (0,_openmrs_esm_config__WEBPACK_IMPORTED_MODULE_1__.registerModuleWithConfigSystem)(appName);
1467
+ const availableExtensions = routes.extensions ?? [];
1468
+ const availableModals = routes.modals ?? [];
1469
+ const availableWorkspaces = routes.workspaces ?? [];
1470
+ const availableWorkspaceGroups = routes.workspaceGroups ?? [];
1471
+ const availableFeatureFlags = routes.featureFlags ?? [];
1472
+ routes.pages?.forEach((p)=>{
1473
+ if (p && typeof p === 'object' && Object.hasOwn(p, 'component') && (Object.hasOwn(p, 'route') || Object.hasOwn(p, 'routeRegex') || Object.hasOwn(p, 'routes'))) {
1474
+ pages.push({
1475
+ ...p,
1476
+ order: p.order ?? Number.MAX_SAFE_INTEGER,
1477
+ appName
1478
+ });
1479
+ } else {
1480
+ console.warn(`A page for ${appName} could not be registered as it does not appear to have the required properties`, p);
1481
+ }
1482
+ });
1483
+ availableExtensions.forEach((ext)=>{
1484
+ if (ext && typeof ext === 'object' && Object.hasOwn(ext, 'name') && Object.hasOwn(ext, 'component')) {
1485
+ (0,_components_js__WEBPACK_IMPORTED_MODULE_4__.tryRegisterExtension)(appName, ext);
1486
+ } else {
1487
+ console.warn(`An extension for ${appName} could not be registered as it does not appear to have the required properties`, ext);
1488
+ }
1489
+ });
1490
+ availableModals.forEach((modal)=>{
1491
+ if (modal && typeof modal === 'object' && Object.hasOwn(modal, 'name') && Object.hasOwn(modal, 'component')) {
1492
+ (0,_components_js__WEBPACK_IMPORTED_MODULE_4__.tryRegisterModal)(appName, modal);
1493
+ } else {
1494
+ console.warn(`A modal for ${appName} could not be registered as it does not appear to have the required properties`, modal);
1495
+ }
1496
+ });
1497
+ availableWorkspaces.forEach((workspace)=>{
1498
+ if (workspace && typeof workspace === 'object' && Object.hasOwn(workspace, 'name') && Object.hasOwn(workspace, 'component')) {
1499
+ (0,_components_js__WEBPACK_IMPORTED_MODULE_4__.tryRegisterWorkspace)(appName, workspace);
1500
+ } else {
1501
+ console.warn(`A workspace for ${appName} could not be registered as it does not appear to have the required properties`, workspace);
1502
+ }
1503
+ });
1504
+ availableWorkspaceGroups.forEach((workspaceGroup)=>{
1505
+ if (workspaceGroup && typeof workspaceGroup === 'object' && Object.hasOwn(workspaceGroup, 'name')) {
1506
+ (0,_components_js__WEBPACK_IMPORTED_MODULE_4__.tryRegisterWorkspaceGroup)(appName, workspaceGroup);
1507
+ } else {
1508
+ console.warn(`A workspace group for ${appName} could not be registered as it does not appear to have the required properties`, workspaceGroup);
1509
+ }
1510
+ });
1511
+ availableFeatureFlags.forEach((featureFlag)=>{
1512
+ if (featureFlag && typeof featureFlag === 'object' && Object.hasOwn(featureFlag, 'flagName')) {
1513
+ (0,_components_js__WEBPACK_IMPORTED_MODULE_4__.tryRegisterFeatureFlag)(appName, featureFlag);
1514
+ } else {
1515
+ console.warn(`A feature flag for ${appName} could not be registered as it does not appear to have the required properties`, featureFlag);
1516
+ }
1517
+ });
1518
+ }
1519
+ }
1520
+ /**
1521
+ * This is called by the app shell once all route entries have been processed.
1522
+ * This actually registers the pages with the application. This function is
1523
+ * necessary to ensure that pages are rendered in the DOM according to their
1524
+ * order definition, especially because certain pages _must_ be first in the DOM.
1525
+ *
1526
+ * Each page is rendered into a div with an appropriate name.
1527
+ */ function finishRegisteringAllApps() {
1528
+ pages.sort((a, b)=>{
1529
+ let sort = a.order - b.order;
1530
+ if (sort != 0) {
1531
+ return sort;
1532
+ }
1533
+ return a.appName.localeCompare(b.appName, 'en');
1534
+ });
1535
+ // Create a div for each page. This ensures their DOM order.
1536
+ // If we don't do this, Single-SPA 5 will create the DOM element only once
1537
+ // the page becomes active, which makes it impossible to guarantee order.
1538
+ let appIndices = new Map();
1539
+ for (let page of pages){
1540
+ if (!appIndices.has(page.appName)) {
1541
+ appIndices.set(page.appName, 0);
1542
+ } else {
1543
+ appIndices.set(page.appName, appIndices.get(page.appName) + 1);
1544
+ }
1545
+ const index = appIndices.get(page.appName);
1546
+ const name = `${page.appName}-page-${index}`;
1547
+ const div = document.createElement('div');
1548
+ div.id = `single-spa-application:${name}`;
1549
+ document.body.appendChild(div);
1550
+ tryRegisterPage(name, page);
1551
+ }
1552
+ }
1553
+ /**
1554
+ * This function converts each page definition into a single-spa application
1555
+ * if that's possible. After this point, pages are rendered using single-spa's
1556
+ * routing logic.
1557
+ *
1558
+ * @param appName The name of the app containing this page
1559
+ * @param page An object that describes the page, derived from `routes.json`
1560
+ */ function tryRegisterPage(appName, page) {
1561
+ const route = typeof page.route !== 'undefined' ? page.route : typeof page.routeRegex !== 'undefined' ? new RegExp(page.routeRegex) : false;
1562
+ if (route === false) {
1563
+ console.warn(`A registered page definition is missing a route and thus cannot be registered.
1564
+ To fix this, ensure that you define the "route" (or alternatively the "routeRegex") field inside the extension definition.`, appName);
1565
+ return;
1566
+ }
1567
+ if (!page.component) {
1568
+ console.warn(`A registered page definition is missing a component and thus cannot be registered.
1569
+ To fix this, ensure that you define the "component" field inside the page definition.`, appName);
1570
+ return;
1571
+ }
1572
+ const activityFn = wrapPageActivityFn(getActivityFn(route), page);
1573
+ const loader = (0,_app_js__WEBPACK_IMPORTED_MODULE_5__.getLoader)(page.appName, page.component);
1574
+ (0,single_spa__WEBPACK_IMPORTED_MODULE_0__.registerApplication)(appName, loader, activityFn);
1575
+ }
1576
+
1577
+
1578
+ /***/ }),
1579
+
1580
+ /***/ "../../node_modules/@openmrs/esm-routes/dist/routes.js":
1581
+ /*!*************************************************************!*\
1582
+ !*** ../../node_modules/@openmrs/esm-routes/dist/routes.js ***!
1583
+ \*************************************************************/
1584
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1585
+
1586
+ "use strict";
1587
+ __webpack_require__.r(__webpack_exports__);
1588
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1589
+ /* harmony export */ addRoutesOverride: () => (/* binding */ addRoutesOverride),
1590
+ /* harmony export */ isOpenmrsAppRoutes: () => (/* binding */ isOpenmrsAppRoutes),
1591
+ /* harmony export */ isOpenmrsRoutes: () => (/* binding */ isOpenmrsRoutes),
1592
+ /* harmony export */ removeRoutesOverride: () => (/* binding */ removeRoutesOverride),
1593
+ /* harmony export */ resetAllRoutesOverrides: () => (/* binding */ resetAllRoutesOverrides)
1594
+ /* harmony export */ });
1595
+ /* harmony import */ var _openmrs_esm_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @openmrs/esm-utils */ "../../node_modules/@openmrs/esm-utils/dist/storage.js");
1596
+ /* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constants.js */ "../../node_modules/@openmrs/esm-routes/dist/constants.js");
1597
+ /** @module @category Routes Utilities */
1598
+
1599
+ const isEnabled = (0,_openmrs_esm_utils__WEBPACK_IMPORTED_MODULE_0__.canAccessStorage)();
1600
+ /**
1601
+ * Used to add a route override to local storage. These are read as the routes registry
1602
+ * is assembled, so the app must be reloaded for new overrides to take effect.
1603
+ *
1604
+ * @internal
1605
+ * @param moduleName The name of the module the routes are for
1606
+ * @param routes Either an {@link OpenmrsAppRoutes} object, a string that represents a JSON
1607
+ * version of an {@link OpenmrsAppRoutes} object or a string or URL that resolves to a
1608
+ * JSON document that represents an {@link OpenmrsAppRoutes} object
1609
+ */ function addRoutesOverride(moduleName, routes) {
1610
+ if (!isEnabled) {
1611
+ return;
1612
+ }
1613
+ if (typeof routes === 'string') {
1614
+ if (routes.startsWith('http')) {
1615
+ return addRouteOverrideInternal(moduleName, routes);
1616
+ } else {
1617
+ try {
1618
+ const maybeRoutes = JSON.parse(routes);
1619
+ if (isOpenmrsAppRoutes(maybeRoutes)) {
1620
+ return addRouteOverrideInternal(moduleName, maybeRoutes);
1621
+ } else {
1622
+ console.error(`The supplied routes for ${moduleName} is not a valid OpenmrsAppRoutes object`, routes);
1623
+ }
1624
+ } catch (e) {
1625
+ console.error(`Could not add routes override for ${moduleName}: `, e);
1626
+ }
1627
+ }
1628
+ } else if (routes instanceof URL) {
1629
+ return addRouteOverrideInternal(moduleName, routes.toString());
1630
+ } else if (isOpenmrsAppRoutes(routes)) {
1631
+ return addRouteOverrideInternal(moduleName, routes);
1632
+ }
1633
+ console.error(`Override for ${moduleName} is not in a valid format. Expected either a Javascript Object, a JSON string of a Javascript object, or a URL`, routes);
1634
+ }
1635
+ /**
1636
+ * Used to remove an existing routes override from local storage. These are read as the routes registry
1637
+ * is assembled, so the app must be reloaded for removed override to be removed.
1638
+ *
1639
+ * @internal
1640
+ * @param moduleName The module to remove the overrides for
1641
+ */ function removeRoutesOverride(moduleName) {
1642
+ if (!isEnabled) {
1643
+ return;
1644
+ }
1645
+ const key = _constants_js__WEBPACK_IMPORTED_MODULE_1__.localStorageRoutesPrefix + moduleName;
1646
+ localStorage.removeItem(key);
1647
+ }
1648
+ /**
1649
+ * Used to remove all existing routes overrides from local storage. These are read as the routes registry
1650
+ * is assembled, so the app must be reloaded for the removed overrides to appear to be removed.
1651
+ *
1652
+ * @internal
1653
+ */ function resetAllRoutesOverrides() {
1654
+ if (!isEnabled) {
1655
+ return;
1656
+ }
1657
+ const localStorage1 = window.localStorage;
1658
+ for(let i = 0; i < localStorage1.length; i++){
1659
+ const key = localStorage1.key(i);
1660
+ if (key?.startsWith(_constants_js__WEBPACK_IMPORTED_MODULE_1__.localStorageRoutesPrefix)) {
1661
+ localStorage1.removeItem(key);
1662
+ }
1663
+ }
1664
+ }
1665
+ function addRouteOverrideInternal(moduleName, routes) {
1666
+ const key = _constants_js__WEBPACK_IMPORTED_MODULE_1__.localStorageRoutesPrefix + moduleName;
1667
+ localStorage.setItem(key, JSON.stringify(routes));
1668
+ }
1669
+ /**
1670
+ * Simple type-predicate to ensure that the value can be treated as an OpenmrsAppRoutes
1671
+ * object.
1672
+ *
1673
+ * @internal
1674
+ * @param routes the object to check to see if it is an OpenmrsAppRoutes object
1675
+ * @returns true if the routes value is an OpenmrsAppRoutes
1676
+ */ function isOpenmrsAppRoutes(routes) {
1677
+ if (routes && typeof routes === 'object') {
1678
+ const hasOwnProperty = Object.prototype.hasOwnProperty;
1679
+ // we cast maybeRoutes as OpenmrsAppRoutes mainly so we can refer to the properties it should
1680
+ // have without repeated casts
1681
+ const maybeRoutes = routes;
1682
+ if (hasOwnProperty.call(routes, 'pages')) {
1683
+ if (!Boolean(maybeRoutes.pages) || !Array.isArray(maybeRoutes.pages)) {
1684
+ return false;
1685
+ }
1686
+ }
1687
+ if (hasOwnProperty.call(routes, 'extensions')) {
1688
+ if (!Boolean(maybeRoutes.extensions) || !Array.isArray(maybeRoutes.extensions)) {
1689
+ return false;
1690
+ }
1691
+ }
1692
+ if (hasOwnProperty.call(routes, 'workspaces')) {
1693
+ if (!Boolean(maybeRoutes.workspaces) || !Array.isArray(maybeRoutes.workspaces)) {
1694
+ return false;
1695
+ }
1696
+ }
1697
+ if (hasOwnProperty.call(routes, 'modals')) {
1698
+ if (!Boolean(maybeRoutes.modals) || !Array.isArray(maybeRoutes.modals)) {
1699
+ return false;
1700
+ }
1701
+ }
1702
+ // Notice that we're essentially testing for things that cannot be treated as an OpenmrsAppRoutes
1703
+ // object. This is because a completely empty object is a valid OpenmrsAppRoutes object.
1704
+ return true;
1705
+ }
1706
+ return false;
1707
+ }
1708
+ /**
1709
+ * Simple type-predicate to ensure that the value can be treated as an OpenmrsRoutes
1710
+ * object.
1711
+ *
1712
+ * @internal
1713
+ * @param routes the object to check to see if it is an OpenmrsRoutes object
1714
+ * @returns true if the routes value is an OpenmrsRoutes
1715
+ */ function isOpenmrsRoutes(routes) {
1716
+ if (routes && typeof routes === 'object') {
1717
+ const maybeRoutes = routes;
1718
+ return Object.entries(maybeRoutes).every(([key, value])=>typeof key === 'string' && isOpenmrsAppRoutes(value));
1719
+ }
1720
+ return false;
1721
+ }
1722
+
1723
+
1724
+ /***/ }),
1725
+
1726
+ /***/ "../../node_modules/@openmrs/esm-utils/dist/dates/index.js":
1727
+ /*!*****************************************************************!*\
1728
+ !*** ../../node_modules/@openmrs/esm-utils/dist/dates/index.js ***!
1729
+ \*****************************************************************/
1730
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1731
+
1732
+ "use strict";
1733
+ __webpack_require__.r(__webpack_exports__);
1734
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1735
+ /* harmony export */ convertToLocaleCalendar: () => (/* reexport safe */ _date_util_js__WEBPACK_IMPORTED_MODULE_0__.convertToLocaleCalendar),
1736
+ /* harmony export */ formatDate: () => (/* reexport safe */ _date_util_js__WEBPACK_IMPORTED_MODULE_0__.formatDate),
1737
+ /* harmony export */ formatDatetime: () => (/* reexport safe */ _date_util_js__WEBPACK_IMPORTED_MODULE_0__.formatDatetime),
1738
+ /* harmony export */ formatPartialDate: () => (/* reexport safe */ _date_util_js__WEBPACK_IMPORTED_MODULE_0__.formatPartialDate),
1739
+ /* harmony export */ formatTime: () => (/* reexport safe */ _date_util_js__WEBPACK_IMPORTED_MODULE_0__.formatTime),
1740
+ /* harmony export */ getDefaultCalendar: () => (/* reexport safe */ _date_util_js__WEBPACK_IMPORTED_MODULE_0__.getDefaultCalendar),
1741
+ /* harmony export */ isOmrsDateStrict: () => (/* reexport safe */ _date_util_js__WEBPACK_IMPORTED_MODULE_0__.isOmrsDateStrict),
1742
+ /* harmony export */ isOmrsDateToday: () => (/* reexport safe */ _date_util_js__WEBPACK_IMPORTED_MODULE_0__.isOmrsDateToday),
1743
+ /* harmony export */ parseDate: () => (/* reexport safe */ _date_util_js__WEBPACK_IMPORTED_MODULE_0__.parseDate),
1744
+ /* harmony export */ registerDefaultCalendar: () => (/* reexport safe */ _date_util_js__WEBPACK_IMPORTED_MODULE_0__.registerDefaultCalendar),
1745
+ /* harmony export */ toDateObjectStrict: () => (/* reexport safe */ _date_util_js__WEBPACK_IMPORTED_MODULE_0__.toDateObjectStrict),
1746
+ /* harmony export */ toOmrsIsoString: () => (/* reexport safe */ _date_util_js__WEBPACK_IMPORTED_MODULE_0__.toOmrsIsoString)
1747
+ /* harmony export */ });
1748
+ /* harmony import */ var _date_util_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./date-util.js */ "../../node_modules/@openmrs/esm-utils/dist/dates/date-util.js");
1749
+
1750
+
1751
+
1752
+ /***/ }),
1753
+
1754
+ /***/ "../../node_modules/@openmrs/esm-utils/dist/index.js":
1755
+ /*!***********************************************************!*\
1756
+ !*** ../../node_modules/@openmrs/esm-utils/dist/index.js ***!
1757
+ \***********************************************************/
1758
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1759
+
1760
+ "use strict";
1761
+ __webpack_require__.r(__webpack_exports__);
1762
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1763
+ /* harmony export */ age: () => (/* reexport safe */ _age_helpers_js__WEBPACK_IMPORTED_MODULE_0__.age),
1764
+ /* harmony export */ canAccessStorage: () => (/* reexport safe */ _storage_js__WEBPACK_IMPORTED_MODULE_6__.canAccessStorage),
1765
+ /* harmony export */ convertToLocaleCalendar: () => (/* reexport safe */ _dates_index_js__WEBPACK_IMPORTED_MODULE_1__.convertToLocaleCalendar),
1766
+ /* harmony export */ displayName: () => (/* reexport safe */ _patient_helpers_js__WEBPACK_IMPORTED_MODULE_4__.displayName),
1767
+ /* harmony export */ formatDate: () => (/* reexport safe */ _dates_index_js__WEBPACK_IMPORTED_MODULE_1__.formatDate),
1768
+ /* harmony export */ formatDatetime: () => (/* reexport safe */ _dates_index_js__WEBPACK_IMPORTED_MODULE_1__.formatDatetime),
1769
+ /* harmony export */ formatPartialDate: () => (/* reexport safe */ _dates_index_js__WEBPACK_IMPORTED_MODULE_1__.formatPartialDate),
1770
+ /* harmony export */ formatPatientName: () => (/* reexport safe */ _patient_helpers_js__WEBPACK_IMPORTED_MODULE_4__.formatPatientName),
1771
+ /* harmony export */ formatTime: () => (/* reexport safe */ _dates_index_js__WEBPACK_IMPORTED_MODULE_1__.formatTime),
1772
+ /* harmony export */ formattedName: () => (/* reexport safe */ _patient_helpers_js__WEBPACK_IMPORTED_MODULE_4__.formattedName),
1773
+ /* harmony export */ getDefaultCalendar: () => (/* reexport safe */ _dates_index_js__WEBPACK_IMPORTED_MODULE_1__.getDefaultCalendar),
1774
+ /* harmony export */ getDefaultsFromConfigSchema: () => (/* reexport safe */ _test_helpers_js__WEBPACK_IMPORTED_MODULE_7__.getDefaultsFromConfigSchema),
1775
+ /* harmony export */ getLocale: () => (/* reexport safe */ _get_locale_js__WEBPACK_IMPORTED_MODULE_2__.getLocale),
1776
+ /* harmony export */ getPatientName: () => (/* reexport safe */ _patient_helpers_js__WEBPACK_IMPORTED_MODULE_4__.getPatientName),
1777
+ /* harmony export */ isOmrsDateStrict: () => (/* reexport safe */ _dates_index_js__WEBPACK_IMPORTED_MODULE_1__.isOmrsDateStrict),
1778
+ /* harmony export */ isOmrsDateToday: () => (/* reexport safe */ _dates_index_js__WEBPACK_IMPORTED_MODULE_1__.isOmrsDateToday),
1779
+ /* harmony export */ isOnline: () => (/* reexport safe */ _is_online_js__WEBPACK_IMPORTED_MODULE_3__.isOnline),
1780
+ /* harmony export */ isVersionSatisfied: () => (/* reexport safe */ _version_js__WEBPACK_IMPORTED_MODULE_8__.isVersionSatisfied),
1781
+ /* harmony export */ parseDate: () => (/* reexport safe */ _dates_index_js__WEBPACK_IMPORTED_MODULE_1__.parseDate),
1782
+ /* harmony export */ registerDefaultCalendar: () => (/* reexport safe */ _dates_index_js__WEBPACK_IMPORTED_MODULE_1__.registerDefaultCalendar),
1783
+ /* harmony export */ retry: () => (/* reexport safe */ _retry_js__WEBPACK_IMPORTED_MODULE_9__.retry),
1784
+ /* harmony export */ selectPreferredName: () => (/* reexport safe */ _patient_helpers_js__WEBPACK_IMPORTED_MODULE_4__.selectPreferredName),
1785
+ /* harmony export */ shallowEqual: () => (/* reexport safe */ _shallowEqual_js__WEBPACK_IMPORTED_MODULE_5__.shallowEqual),
1786
+ /* harmony export */ toDateObjectStrict: () => (/* reexport safe */ _dates_index_js__WEBPACK_IMPORTED_MODULE_1__.toDateObjectStrict),
1787
+ /* harmony export */ toOmrsIsoString: () => (/* reexport safe */ _dates_index_js__WEBPACK_IMPORTED_MODULE_1__.toOmrsIsoString)
1788
+ /* harmony export */ });
1789
+ /* harmony import */ var _age_helpers_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./age-helpers.js */ "../../node_modules/@openmrs/esm-utils/dist/age-helpers.js");
1790
+ /* harmony import */ var _dates_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./dates/index.js */ "../../node_modules/@openmrs/esm-utils/dist/dates/index.js");
1791
+ /* harmony import */ var _get_locale_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./get-locale.js */ "../../node_modules/@openmrs/esm-utils/dist/get-locale.js");
1792
+ /* harmony import */ var _is_online_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./is-online.js */ "../../node_modules/@openmrs/esm-utils/dist/is-online.js");
1793
+ /* harmony import */ var _patient_helpers_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./patient-helpers.js */ "../../node_modules/@openmrs/esm-utils/dist/patient-helpers.js");
1794
+ /* harmony import */ var _shallowEqual_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./shallowEqual.js */ "../../node_modules/@openmrs/esm-utils/dist/shallowEqual.js");
1795
+ /* harmony import */ var _storage_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./storage.js */ "../../node_modules/@openmrs/esm-utils/dist/storage.js");
1796
+ /* harmony import */ var _test_helpers_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./test-helpers.js */ "../../node_modules/@openmrs/esm-utils/dist/test-helpers.js");
1797
+ /* harmony import */ var _version_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./version.js */ "../../node_modules/@openmrs/esm-utils/dist/version.js");
1798
+ /* harmony import */ var _retry_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./retry.js */ "../../node_modules/@openmrs/esm-utils/dist/retry.js");
1799
+
1800
+
1801
+
1802
+
1803
+
1804
+
1805
+
1806
+
1807
+
1808
+
1809
+
1810
+
1811
+ /***/ }),
1812
+
1813
+ /***/ "../../node_modules/@openmrs/esm-utils/dist/retry.js":
1814
+ /*!***********************************************************!*\
1815
+ !*** ../../node_modules/@openmrs/esm-utils/dist/retry.js ***!
1816
+ \***********************************************************/
1817
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1818
+
1819
+ "use strict";
1820
+ __webpack_require__.r(__webpack_exports__);
1821
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1822
+ /* harmony export */ retry: () => (/* binding */ retry)
1823
+ /* harmony export */ });
1824
+ /** @module @category Utility */ /**
1825
+ * Options for configuring the behavior of the {@link retry} function.
1826
+ */ /**
1827
+ * Executes the specified function and retries executing on failure with a custom backoff strategy
1828
+ * defined by the options.
1829
+ *
1830
+ * If not configured otherwise, this function uses the following default options:
1831
+ * * Retries 5 times beyond the initial attempt.
1832
+ * * Uses an exponential backoff starting with an initial delay of 1000ms.
1833
+ * @param fn The function to be executed and retried on failure.
1834
+ * @param options Additional options which configure the retry behavior.
1835
+ * @returns The result of successfully executing `fn`.
1836
+ * @throws Rethrows the final error of running `fn` when the function stops retrying.
1837
+ */ async function retry(fn, options = {}) {
1838
+ let { shouldRetry, getDelay, onError } = options;
1839
+ shouldRetry = shouldRetry ?? ((attempt)=>limitAttempts(attempt, 5));
1840
+ getDelay = getDelay ?? ((attempt)=>getExponentialDelay(attempt, 1000));
1841
+ let attempt = 0;
1842
+ let lastError = undefined;
1843
+ do {
1844
+ try {
1845
+ await delay(getDelay(attempt));
1846
+ return await fn();
1847
+ } catch (e) {
1848
+ onError?.(e, attempt);
1849
+ lastError = e;
1850
+ }
1851
+ }while (shouldRetry(attempt++))
1852
+ // If we reach this fn errored and shouldn't retry anymore. Simply rethrow the final error as
1853
+ // a means of ending the retry process without a result.
1854
+ throw lastError;
1855
+ }
1856
+ function limitAttempts(attempt, maxAttempts) {
1857
+ return attempt <= maxAttempts;
1858
+ }
1859
+ function getExponentialDelay(attempt, startingDelay, initialDelay = false) {
1860
+ const exponent = initialDelay ? attempt + 1 : attempt;
1861
+ return startingDelay * Math.pow(2, exponent);
1862
+ }
1863
+ async function delay(ms) {
1864
+ if (ms <= 0) {
1865
+ return;
1866
+ }
1867
+ return new Promise((res)=>setTimeout(res, ms));
1868
+ }
1869
+
1870
+
1871
+ /***/ }),
1872
+
1873
+ /***/ "../../node_modules/@openmrs/esm-utils/dist/storage.js":
1874
+ /*!*************************************************************!*\
1875
+ !*** ../../node_modules/@openmrs/esm-utils/dist/storage.js ***!
1876
+ \*************************************************************/
1877
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1878
+
1879
+ "use strict";
1880
+ __webpack_require__.r(__webpack_exports__);
1881
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1882
+ /* harmony export */ canAccessStorage: () => (/* binding */ canAccessStorage)
1883
+ /* harmony export */ });
1884
+ /** @module @category Utility */ /**
1885
+ * Simple utility function to determine if an object implementing the WebStorage API
1886
+ * is actually available. Useful for testing the availability of `localStorage` or
1887
+ * `sessionStorage`.
1888
+ *
1889
+ * @param storage The WebStorage API object to check. Defaults to `localStorage`.
1890
+ * @returns True if the WebStorage API object is able to be accessed, false otherwise
1891
+ */ function canAccessStorage(storage = window.localStorage) {
1892
+ try {
1893
+ storage.getItem('test');
1894
+ return true;
1895
+ } catch {
1896
+ return false;
1897
+ }
1898
+ }
1899
+
1900
+
1901
+ /***/ }),
1902
+
1903
+ /***/ "../../node_modules/@openmrs/esm-utils/dist/test-helpers.js":
1904
+ /*!******************************************************************!*\
1905
+ !*** ../../node_modules/@openmrs/esm-utils/dist/test-helpers.js ***!
1906
+ \******************************************************************/
1907
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1908
+
1909
+ "use strict";
1910
+ __webpack_require__.r(__webpack_exports__);
1911
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1912
+ /* harmony export */ getDefaultsFromConfigSchema: () => (/* binding */ getDefaultsFromConfigSchema)
1913
+ /* harmony export */ });
1914
+ /** @module @category Utility */ /**
1915
+ * Given a config schema, this returns an object like is returned by `useConfig`
1916
+ * with all default values.
1917
+ *
1918
+ * This should be used in tests and not in production code.
1919
+ *
1920
+ * If all you need is the default values in your tests, these are returned by
1921
+ * default from the `useConfig`/`getConfig` mock. This function is useful if you
1922
+ * need to override some of the default values.
1923
+ */ function getDefaultsFromConfigSchema(schema) {
1924
+ let tmp = {};
1925
+ for (let k of Object.keys(schema)){
1926
+ if (isOrdinaryObject(schema[k]) && schema[k].hasOwnProperty('_default')) {
1927
+ tmp[k] = schema[k]._default;
1928
+ } else if (k.startsWith('_')) {
1929
+ continue;
1930
+ } else if (isOrdinaryObject(schema[k])) {
1931
+ tmp[k] = getDefaultsFromConfigSchema(schema[k]);
1932
+ } else {
1933
+ tmp[k] = schema[k];
1934
+ }
1935
+ }
1936
+ return tmp;
1937
+ }
1938
+ function isOrdinaryObject(x) {
1939
+ return !!x && x.constructor === Object;
1940
+ }
1941
+
1942
+
1943
+ /***/ }),
1944
+
1945
+ /***/ "../../node_modules/@openmrs/esm-utils/dist/version.js":
1946
+ /*!*************************************************************!*\
1947
+ !*** ../../node_modules/@openmrs/esm-utils/dist/version.js ***!
1948
+ \*************************************************************/
1949
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1950
+
1951
+ "use strict";
1952
+ __webpack_require__.r(__webpack_exports__);
1953
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1954
+ /* harmony export */ isVersionSatisfied: () => (/* binding */ isVersionSatisfied)
1955
+ /* harmony export */ });
1956
+ /* harmony import */ var semver__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! semver */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/index.js");
1957
+ /** @module @category Utility */
1958
+ function normalizeOnlyVersion(version) {
1959
+ const [major, minor, patch] = version.split('.');
1960
+ return `${major}.${minor}.${patch}`;
1961
+ }
1962
+ function normalizeFullVersion(version) {
1963
+ const idx = version.indexOf('-');
1964
+ const prerelease = idx >= 0;
1965
+ if (prerelease) {
1966
+ const ver = normalizeOnlyVersion(version.slice(0, idx));
1967
+ const pre = version.slice(idx + 1);
1968
+ return `${ver}-${pre}`;
1969
+ }
1970
+ return normalizeOnlyVersion(version);
1971
+ }
1972
+ function isVersionSatisfied(requiredVersion, installedVersion) {
1973
+ const version = normalizeFullVersion(installedVersion);
1974
+ return semver__WEBPACK_IMPORTED_MODULE_0__.satisfies(version, requiredVersion, {
1975
+ includePrerelease: true
1976
+ });
1977
+ }
1978
+
1979
+
1980
+ /***/ }),
1981
+
1982
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/classes/comparator.js":
1983
+ /*!***************************************************************************************!*\
1984
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/classes/comparator.js ***!
1985
+ \***************************************************************************************/
1986
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1987
+
1988
+ const ANY = Symbol('SemVer ANY')
1989
+ // hoisted class for cyclic dependency
1990
+ class Comparator {
1991
+ static get ANY () {
1992
+ return ANY
1993
+ }
1994
+ constructor (comp, options) {
1995
+ if (!options || typeof options !== 'object') {
1996
+ options = {
1997
+ loose: !!options,
1998
+ includePrerelease: false
1999
+ }
2000
+ }
2001
+
2002
+ if (comp instanceof Comparator) {
2003
+ if (comp.loose === !!options.loose) {
2004
+ return comp
2005
+ } else {
2006
+ comp = comp.value
2007
+ }
2008
+ }
2009
+
2010
+ debug('comparator', comp, options)
2011
+ this.options = options
2012
+ this.loose = !!options.loose
2013
+ this.parse(comp)
2014
+
2015
+ if (this.semver === ANY) {
2016
+ this.value = ''
2017
+ } else {
2018
+ this.value = this.operator + this.semver.version
2019
+ }
2020
+
2021
+ debug('comp', this)
2022
+ }
2023
+
2024
+ parse (comp) {
2025
+ const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]
2026
+ const m = comp.match(r)
2027
+
2028
+ if (!m) {
2029
+ throw new TypeError(`Invalid comparator: ${comp}`)
2030
+ }
2031
+
2032
+ this.operator = m[1] !== undefined ? m[1] : ''
2033
+ if (this.operator === '=') {
2034
+ this.operator = ''
2035
+ }
2036
+
2037
+ // if it literally is just '>' or '' then allow anything.
2038
+ if (!m[2]) {
2039
+ this.semver = ANY
2040
+ } else {
2041
+ this.semver = new SemVer(m[2], this.options.loose)
2042
+ }
2043
+ }
2044
+
2045
+ toString () {
2046
+ return this.value
2047
+ }
2048
+
2049
+ test (version) {
2050
+ debug('Comparator.test', version, this.options.loose)
2051
+
2052
+ if (this.semver === ANY || version === ANY) {
2053
+ return true
2054
+ }
2055
+
2056
+ if (typeof version === 'string') {
2057
+ try {
2058
+ version = new SemVer(version, this.options)
2059
+ } catch (er) {
2060
+ return false
2061
+ }
2062
+ }
2063
+
2064
+ return cmp(version, this.operator, this.semver, this.options)
2065
+ }
2066
+
2067
+ intersects (comp, options) {
2068
+ if (!(comp instanceof Comparator)) {
2069
+ throw new TypeError('a Comparator is required')
2070
+ }
2071
+
2072
+ if (!options || typeof options !== 'object') {
2073
+ options = {
2074
+ loose: !!options,
2075
+ includePrerelease: false
2076
+ }
2077
+ }
2078
+
2079
+ if (this.operator === '') {
2080
+ if (this.value === '') {
2081
+ return true
2082
+ }
2083
+ return new Range(comp.value, options).test(this.value)
2084
+ } else if (comp.operator === '') {
2085
+ if (comp.value === '') {
2086
+ return true
2087
+ }
2088
+ return new Range(this.value, options).test(comp.semver)
2089
+ }
2090
+
2091
+ const sameDirectionIncreasing =
2092
+ (this.operator === '>=' || this.operator === '>') &&
2093
+ (comp.operator === '>=' || comp.operator === '>')
2094
+ const sameDirectionDecreasing =
2095
+ (this.operator === '<=' || this.operator === '<') &&
2096
+ (comp.operator === '<=' || comp.operator === '<')
2097
+ const sameSemVer = this.semver.version === comp.semver.version
2098
+ const differentDirectionsInclusive =
2099
+ (this.operator === '>=' || this.operator === '<=') &&
2100
+ (comp.operator === '>=' || comp.operator === '<=')
2101
+ const oppositeDirectionsLessThan =
2102
+ cmp(this.semver, '<', comp.semver, options) &&
2103
+ (this.operator === '>=' || this.operator === '>') &&
2104
+ (comp.operator === '<=' || comp.operator === '<')
2105
+ const oppositeDirectionsGreaterThan =
2106
+ cmp(this.semver, '>', comp.semver, options) &&
2107
+ (this.operator === '<=' || this.operator === '<') &&
2108
+ (comp.operator === '>=' || comp.operator === '>')
2109
+
2110
+ return (
2111
+ sameDirectionIncreasing ||
2112
+ sameDirectionDecreasing ||
2113
+ (sameSemVer && differentDirectionsInclusive) ||
2114
+ oppositeDirectionsLessThan ||
2115
+ oppositeDirectionsGreaterThan
2116
+ )
2117
+ }
2118
+ }
2119
+
2120
+ module.exports = Comparator
2121
+
2122
+ const {re, t} = __webpack_require__(/*! ../internal/re */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/internal/re.js")
2123
+ const cmp = __webpack_require__(/*! ../functions/cmp */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/cmp.js")
2124
+ const debug = __webpack_require__(/*! ../internal/debug */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/internal/debug.js")
2125
+ const SemVer = __webpack_require__(/*! ./semver */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/classes/semver.js")
2126
+ const Range = __webpack_require__(/*! ./range */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/classes/range.js")
2127
+
2128
+
2129
+ /***/ }),
2130
+
2131
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/classes/range.js":
2132
+ /*!**********************************************************************************!*\
2133
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/classes/range.js ***!
2134
+ \**********************************************************************************/
2135
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2136
+
2137
+ // hoisted class for cyclic dependency
2138
+ class Range {
2139
+ constructor (range, options) {
2140
+ if (!options || typeof options !== 'object') {
2141
+ options = {
2142
+ loose: !!options,
2143
+ includePrerelease: false
2144
+ }
2145
+ }
2146
+
2147
+ if (range instanceof Range) {
2148
+ if (
2149
+ range.loose === !!options.loose &&
2150
+ range.includePrerelease === !!options.includePrerelease
2151
+ ) {
2152
+ return range
2153
+ } else {
2154
+ return new Range(range.raw, options)
2155
+ }
2156
+ }
2157
+
2158
+ if (range instanceof Comparator) {
2159
+ // just put it in the set and return
2160
+ this.raw = range.value
2161
+ this.set = [[range]]
2162
+ this.format()
2163
+ return this
2164
+ }
2165
+
2166
+ this.options = options
2167
+ this.loose = !!options.loose
2168
+ this.includePrerelease = !!options.includePrerelease
2169
+
2170
+ // First, split based on boolean or ||
2171
+ this.raw = range
2172
+ this.set = range
2173
+ .split(/\s*\|\|\s*/)
2174
+ // map the range to a 2d array of comparators
2175
+ .map(range => this.parseRange(range.trim()))
2176
+ // throw out any comparator lists that are empty
2177
+ // this generally means that it was not a valid range, which is allowed
2178
+ // in loose mode, but will still throw if the WHOLE range is invalid.
2179
+ .filter(c => c.length)
2180
+
2181
+ if (!this.set.length) {
2182
+ throw new TypeError(`Invalid SemVer Range: ${range}`)
2183
+ }
2184
+
2185
+ this.format()
2186
+ }
2187
+
2188
+ format () {
2189
+ this.range = this.set
2190
+ .map((comps) => {
2191
+ return comps.join(' ').trim()
2192
+ })
2193
+ .join('||')
2194
+ .trim()
2195
+ return this.range
2196
+ }
2197
+
2198
+ toString () {
2199
+ return this.range
2200
+ }
2201
+
2202
+ parseRange (range) {
2203
+ const loose = this.options.loose
2204
+ range = range.trim()
2205
+ // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`
2206
+ const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]
2207
+ range = range.replace(hr, hyphenReplace(this.options.includePrerelease))
2208
+ debug('hyphen replace', range)
2209
+ // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`
2210
+ range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace)
2211
+ debug('comparator trim', range, re[t.COMPARATORTRIM])
2212
+
2213
+ // `~ 1.2.3` => `~1.2.3`
2214
+ range = range.replace(re[t.TILDETRIM], tildeTrimReplace)
2215
+
2216
+ // `^ 1.2.3` => `^1.2.3`
2217
+ range = range.replace(re[t.CARETTRIM], caretTrimReplace)
2218
+
2219
+ // normalize spaces
2220
+ range = range.split(/\s+/).join(' ')
2221
+
2222
+ // At this point, the range is completely trimmed and
2223
+ // ready to be split into comparators.
2224
+
2225
+ const compRe = loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]
2226
+ return range
2227
+ .split(' ')
2228
+ .map(comp => parseComparator(comp, this.options))
2229
+ .join(' ')
2230
+ .split(/\s+/)
2231
+ .map(comp => replaceGTE0(comp, this.options))
2232
+ // in loose mode, throw out any that are not valid comparators
2233
+ .filter(this.options.loose ? comp => !!comp.match(compRe) : () => true)
2234
+ .map(comp => new Comparator(comp, this.options))
2235
+ }
2236
+
2237
+ intersects (range, options) {
2238
+ if (!(range instanceof Range)) {
2239
+ throw new TypeError('a Range is required')
2240
+ }
2241
+
2242
+ return this.set.some((thisComparators) => {
2243
+ return (
2244
+ isSatisfiable(thisComparators, options) &&
2245
+ range.set.some((rangeComparators) => {
2246
+ return (
2247
+ isSatisfiable(rangeComparators, options) &&
2248
+ thisComparators.every((thisComparator) => {
2249
+ return rangeComparators.every((rangeComparator) => {
2250
+ return thisComparator.intersects(rangeComparator, options)
2251
+ })
2252
+ })
2253
+ )
2254
+ })
2255
+ )
2256
+ })
2257
+ }
2258
+
2259
+ // if ANY of the sets match ALL of its comparators, then pass
2260
+ test (version) {
2261
+ if (!version) {
2262
+ return false
2263
+ }
2264
+
2265
+ if (typeof version === 'string') {
2266
+ try {
2267
+ version = new SemVer(version, this.options)
2268
+ } catch (er) {
2269
+ return false
2270
+ }
2271
+ }
2272
+
2273
+ for (let i = 0; i < this.set.length; i++) {
2274
+ if (testSet(this.set[i], version, this.options)) {
2275
+ return true
2276
+ }
2277
+ }
2278
+ return false
2279
+ }
2280
+ }
2281
+ module.exports = Range
2282
+
2283
+ const Comparator = __webpack_require__(/*! ./comparator */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/classes/comparator.js")
2284
+ const debug = __webpack_require__(/*! ../internal/debug */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/internal/debug.js")
2285
+ const SemVer = __webpack_require__(/*! ./semver */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/classes/semver.js")
2286
+ const {
2287
+ re,
2288
+ t,
2289
+ comparatorTrimReplace,
2290
+ tildeTrimReplace,
2291
+ caretTrimReplace
2292
+ } = __webpack_require__(/*! ../internal/re */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/internal/re.js")
2293
+
2294
+ // take a set of comparators and determine whether there
2295
+ // exists a version which can satisfy it
2296
+ const isSatisfiable = (comparators, options) => {
2297
+ let result = true
2298
+ const remainingComparators = comparators.slice()
2299
+ let testComparator = remainingComparators.pop()
2300
+
2301
+ while (result && remainingComparators.length) {
2302
+ result = remainingComparators.every((otherComparator) => {
2303
+ return testComparator.intersects(otherComparator, options)
2304
+ })
2305
+
2306
+ testComparator = remainingComparators.pop()
2307
+ }
2308
+
2309
+ return result
2310
+ }
2311
+
2312
+ // comprised of xranges, tildes, stars, and gtlt's at this point.
2313
+ // already replaced the hyphen ranges
2314
+ // turn into a set of JUST comparators.
2315
+ const parseComparator = (comp, options) => {
2316
+ debug('comp', comp, options)
2317
+ comp = replaceCarets(comp, options)
2318
+ debug('caret', comp)
2319
+ comp = replaceTildes(comp, options)
2320
+ debug('tildes', comp)
2321
+ comp = replaceXRanges(comp, options)
2322
+ debug('xrange', comp)
2323
+ comp = replaceStars(comp, options)
2324
+ debug('stars', comp)
2325
+ return comp
2326
+ }
2327
+
2328
+ const isX = id => !id || id.toLowerCase() === 'x' || id === '*'
2329
+
2330
+ // ~, ~> --> * (any, kinda silly)
2331
+ // ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0
2332
+ // ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0
2333
+ // ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0
2334
+ // ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0
2335
+ // ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0
2336
+ const replaceTildes = (comp, options) =>
2337
+ comp.trim().split(/\s+/).map((comp) => {
2338
+ return replaceTilde(comp, options)
2339
+ }).join(' ')
2340
+
2341
+ const replaceTilde = (comp, options) => {
2342
+ const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]
2343
+ return comp.replace(r, (_, M, m, p, pr) => {
2344
+ debug('tilde', comp, _, M, m, p, pr)
2345
+ let ret
2346
+
2347
+ if (isX(M)) {
2348
+ ret = ''
2349
+ } else if (isX(m)) {
2350
+ ret = `>=${M}.0.0 <${+M + 1}.0.0-0`
2351
+ } else if (isX(p)) {
2352
+ // ~1.2 == >=1.2.0 <1.3.0-0
2353
+ ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`
2354
+ } else if (pr) {
2355
+ debug('replaceTilde pr', pr)
2356
+ ret = `>=${M}.${m}.${p}-${pr
2357
+ } <${M}.${+m + 1}.0-0`
2358
+ } else {
2359
+ // ~1.2.3 == >=1.2.3 <1.3.0-0
2360
+ ret = `>=${M}.${m}.${p
2361
+ } <${M}.${+m + 1}.0-0`
2362
+ }
2363
+
2364
+ debug('tilde return', ret)
2365
+ return ret
2366
+ })
2367
+ }
2368
+
2369
+ // ^ --> * (any, kinda silly)
2370
+ // ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0
2371
+ // ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0
2372
+ // ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0
2373
+ // ^1.2.3 --> >=1.2.3 <2.0.0-0
2374
+ // ^1.2.0 --> >=1.2.0 <2.0.0-0
2375
+ const replaceCarets = (comp, options) =>
2376
+ comp.trim().split(/\s+/).map((comp) => {
2377
+ return replaceCaret(comp, options)
2378
+ }).join(' ')
2379
+
2380
+ const replaceCaret = (comp, options) => {
2381
+ debug('caret', comp, options)
2382
+ const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET]
2383
+ const z = options.includePrerelease ? '-0' : ''
2384
+ return comp.replace(r, (_, M, m, p, pr) => {
2385
+ debug('caret', comp, _, M, m, p, pr)
2386
+ let ret
2387
+
2388
+ if (isX(M)) {
2389
+ ret = ''
2390
+ } else if (isX(m)) {
2391
+ ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`
2392
+ } else if (isX(p)) {
2393
+ if (M === '0') {
2394
+ ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`
2395
+ } else {
2396
+ ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`
2397
+ }
2398
+ } else if (pr) {
2399
+ debug('replaceCaret pr', pr)
2400
+ if (M === '0') {
2401
+ if (m === '0') {
2402
+ ret = `>=${M}.${m}.${p}-${pr
2403
+ } <${M}.${m}.${+p + 1}-0`
2404
+ } else {
2405
+ ret = `>=${M}.${m}.${p}-${pr
2406
+ } <${M}.${+m + 1}.0-0`
2407
+ }
2408
+ } else {
2409
+ ret = `>=${M}.${m}.${p}-${pr
2410
+ } <${+M + 1}.0.0-0`
2411
+ }
2412
+ } else {
2413
+ debug('no pr')
2414
+ if (M === '0') {
2415
+ if (m === '0') {
2416
+ ret = `>=${M}.${m}.${p
2417
+ }${z} <${M}.${m}.${+p + 1}-0`
2418
+ } else {
2419
+ ret = `>=${M}.${m}.${p
2420
+ }${z} <${M}.${+m + 1}.0-0`
2421
+ }
2422
+ } else {
2423
+ ret = `>=${M}.${m}.${p
2424
+ } <${+M + 1}.0.0-0`
2425
+ }
2426
+ }
2427
+
2428
+ debug('caret return', ret)
2429
+ return ret
2430
+ })
2431
+ }
2432
+
2433
+ const replaceXRanges = (comp, options) => {
2434
+ debug('replaceXRanges', comp, options)
2435
+ return comp.split(/\s+/).map((comp) => {
2436
+ return replaceXRange(comp, options)
2437
+ }).join(' ')
2438
+ }
2439
+
2440
+ const replaceXRange = (comp, options) => {
2441
+ comp = comp.trim()
2442
+ const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]
2443
+ return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
2444
+ debug('xRange', comp, ret, gtlt, M, m, p, pr)
2445
+ const xM = isX(M)
2446
+ const xm = xM || isX(m)
2447
+ const xp = xm || isX(p)
2448
+ const anyX = xp
2449
+
2450
+ if (gtlt === '=' && anyX) {
2451
+ gtlt = ''
2452
+ }
2453
+
2454
+ // if we're including prereleases in the match, then we need
2455
+ // to fix this to -0, the lowest possible prerelease value
2456
+ pr = options.includePrerelease ? '-0' : ''
2457
+
2458
+ if (xM) {
2459
+ if (gtlt === '>' || gtlt === '<') {
2460
+ // nothing is allowed
2461
+ ret = '<0.0.0-0'
2462
+ } else {
2463
+ // nothing is forbidden
2464
+ ret = '*'
2465
+ }
2466
+ } else if (gtlt && anyX) {
2467
+ // we know patch is an x, because we have any x at all.
2468
+ // replace X with 0
2469
+ if (xm) {
2470
+ m = 0
2471
+ }
2472
+ p = 0
2473
+
2474
+ if (gtlt === '>') {
2475
+ // >1 => >=2.0.0
2476
+ // >1.2 => >=1.3.0
2477
+ gtlt = '>='
2478
+ if (xm) {
2479
+ M = +M + 1
2480
+ m = 0
2481
+ p = 0
2482
+ } else {
2483
+ m = +m + 1
2484
+ p = 0
2485
+ }
2486
+ } else if (gtlt === '<=') {
2487
+ // <=0.7.x is actually <0.8.0, since any 0.7.x should
2488
+ // pass. Similarly, <=7.x is actually <8.0.0, etc.
2489
+ gtlt = '<'
2490
+ if (xm) {
2491
+ M = +M + 1
2492
+ } else {
2493
+ m = +m + 1
2494
+ }
2495
+ }
2496
+
2497
+ if (gtlt === '<')
2498
+ pr = '-0'
2499
+
2500
+ ret = `${gtlt + M}.${m}.${p}${pr}`
2501
+ } else if (xm) {
2502
+ ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`
2503
+ } else if (xp) {
2504
+ ret = `>=${M}.${m}.0${pr
2505
+ } <${M}.${+m + 1}.0-0`
2506
+ }
2507
+
2508
+ debug('xRange return', ret)
2509
+
2510
+ return ret
2511
+ })
2512
+ }
2513
+
2514
+ // Because * is AND-ed with everything else in the comparator,
2515
+ // and '' means "any version", just remove the *s entirely.
2516
+ const replaceStars = (comp, options) => {
2517
+ debug('replaceStars', comp, options)
2518
+ // Looseness is ignored here. star is always as loose as it gets!
2519
+ return comp.trim().replace(re[t.STAR], '')
2520
+ }
2521
+
2522
+ const replaceGTE0 = (comp, options) => {
2523
+ debug('replaceGTE0', comp, options)
2524
+ return comp.trim()
2525
+ .replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], '')
2526
+ }
2527
+
2528
+ // This function is passed to string.replace(re[t.HYPHENRANGE])
2529
+ // M, m, patch, prerelease, build
2530
+ // 1.2 - 3.4.5 => >=1.2.0 <=3.4.5
2531
+ // 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do
2532
+ // 1.2 - 3.4 => >=1.2.0 <3.5.0-0
2533
+ const hyphenReplace = incPr => ($0,
2534
+ from, fM, fm, fp, fpr, fb,
2535
+ to, tM, tm, tp, tpr, tb) => {
2536
+ if (isX(fM)) {
2537
+ from = ''
2538
+ } else if (isX(fm)) {
2539
+ from = `>=${fM}.0.0${incPr ? '-0' : ''}`
2540
+ } else if (isX(fp)) {
2541
+ from = `>=${fM}.${fm}.0${incPr ? '-0' : ''}`
2542
+ } else if (fpr) {
2543
+ from = `>=${from}`
2544
+ } else {
2545
+ from = `>=${from}${incPr ? '-0' : ''}`
2546
+ }
2547
+
2548
+ if (isX(tM)) {
2549
+ to = ''
2550
+ } else if (isX(tm)) {
2551
+ to = `<${+tM + 1}.0.0-0`
2552
+ } else if (isX(tp)) {
2553
+ to = `<${tM}.${+tm + 1}.0-0`
2554
+ } else if (tpr) {
2555
+ to = `<=${tM}.${tm}.${tp}-${tpr}`
2556
+ } else if (incPr) {
2557
+ to = `<${tM}.${tm}.${+tp + 1}-0`
2558
+ } else {
2559
+ to = `<=${to}`
2560
+ }
2561
+
2562
+ return (`${from} ${to}`).trim()
2563
+ }
2564
+
2565
+ const testSet = (set, version, options) => {
2566
+ for (let i = 0; i < set.length; i++) {
2567
+ if (!set[i].test(version)) {
2568
+ return false
2569
+ }
2570
+ }
2571
+
2572
+ if (version.prerelease.length && !options.includePrerelease) {
2573
+ // Find the set of versions that are allowed to have prereleases
2574
+ // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0
2575
+ // That should allow `1.2.3-pr.2` to pass.
2576
+ // However, `1.2.4-alpha.notready` should NOT be allowed,
2577
+ // even though it's within the range set by the comparators.
2578
+ for (let i = 0; i < set.length; i++) {
2579
+ debug(set[i].semver)
2580
+ if (set[i].semver === Comparator.ANY) {
2581
+ continue
2582
+ }
2583
+
2584
+ if (set[i].semver.prerelease.length > 0) {
2585
+ const allowed = set[i].semver
2586
+ if (allowed.major === version.major &&
2587
+ allowed.minor === version.minor &&
2588
+ allowed.patch === version.patch) {
2589
+ return true
2590
+ }
2591
+ }
2592
+ }
2593
+
2594
+ // Version has a -pre, but it's not one of the ones we like.
2595
+ return false
2596
+ }
2597
+
2598
+ return true
2599
+ }
2600
+
2601
+
2602
+ /***/ }),
2603
+
2604
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/classes/semver.js":
2605
+ /*!***********************************************************************************!*\
2606
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/classes/semver.js ***!
2607
+ \***********************************************************************************/
2608
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2609
+
2610
+ const debug = __webpack_require__(/*! ../internal/debug */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/internal/debug.js")
2611
+ const { MAX_LENGTH, MAX_SAFE_INTEGER } = __webpack_require__(/*! ../internal/constants */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/internal/constants.js")
2612
+ const { re, t } = __webpack_require__(/*! ../internal/re */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/internal/re.js")
2613
+
2614
+ const { compareIdentifiers } = __webpack_require__(/*! ../internal/identifiers */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/internal/identifiers.js")
2615
+ class SemVer {
2616
+ constructor (version, options) {
2617
+ if (!options || typeof options !== 'object') {
2618
+ options = {
2619
+ loose: !!options,
2620
+ includePrerelease: false
2621
+ }
2622
+ }
2623
+ if (version instanceof SemVer) {
2624
+ if (version.loose === !!options.loose &&
2625
+ version.includePrerelease === !!options.includePrerelease) {
2626
+ return version
2627
+ } else {
2628
+ version = version.version
2629
+ }
2630
+ } else if (typeof version !== 'string') {
2631
+ throw new TypeError(`Invalid Version: ${version}`)
2632
+ }
2633
+
2634
+ if (version.length > MAX_LENGTH) {
2635
+ throw new TypeError(
2636
+ `version is longer than ${MAX_LENGTH} characters`
2637
+ )
2638
+ }
2639
+
2640
+ debug('SemVer', version, options)
2641
+ this.options = options
2642
+ this.loose = !!options.loose
2643
+ // this isn't actually relevant for versions, but keep it so that we
2644
+ // don't run into trouble passing this.options around.
2645
+ this.includePrerelease = !!options.includePrerelease
2646
+
2647
+ const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])
2648
+
2649
+ if (!m) {
2650
+ throw new TypeError(`Invalid Version: ${version}`)
2651
+ }
2652
+
2653
+ this.raw = version
2654
+
2655
+ // these are actually numbers
2656
+ this.major = +m[1]
2657
+ this.minor = +m[2]
2658
+ this.patch = +m[3]
2659
+
2660
+ if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
2661
+ throw new TypeError('Invalid major version')
2662
+ }
2663
+
2664
+ if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
2665
+ throw new TypeError('Invalid minor version')
2666
+ }
2667
+
2668
+ if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
2669
+ throw new TypeError('Invalid patch version')
2670
+ }
2671
+
2672
+ // numberify any prerelease numeric ids
2673
+ if (!m[4]) {
2674
+ this.prerelease = []
2675
+ } else {
2676
+ this.prerelease = m[4].split('.').map((id) => {
2677
+ if (/^[0-9]+$/.test(id)) {
2678
+ const num = +id
2679
+ if (num >= 0 && num < MAX_SAFE_INTEGER) {
2680
+ return num
2681
+ }
2682
+ }
2683
+ return id
2684
+ })
2685
+ }
2686
+
2687
+ this.build = m[5] ? m[5].split('.') : []
2688
+ this.format()
2689
+ }
2690
+
2691
+ format () {
2692
+ this.version = `${this.major}.${this.minor}.${this.patch}`
2693
+ if (this.prerelease.length) {
2694
+ this.version += `-${this.prerelease.join('.')}`
2695
+ }
2696
+ return this.version
2697
+ }
2698
+
2699
+ toString () {
2700
+ return this.version
2701
+ }
2702
+
2703
+ compare (other) {
2704
+ debug('SemVer.compare', this.version, this.options, other)
2705
+ if (!(other instanceof SemVer)) {
2706
+ if (typeof other === 'string' && other === this.version) {
2707
+ return 0
2708
+ }
2709
+ other = new SemVer(other, this.options)
2710
+ }
2711
+
2712
+ if (other.version === this.version) {
2713
+ return 0
2714
+ }
2715
+
2716
+ return this.compareMain(other) || this.comparePre(other)
2717
+ }
2718
+
2719
+ compareMain (other) {
2720
+ if (!(other instanceof SemVer)) {
2721
+ other = new SemVer(other, this.options)
2722
+ }
2723
+
2724
+ return (
2725
+ compareIdentifiers(this.major, other.major) ||
2726
+ compareIdentifiers(this.minor, other.minor) ||
2727
+ compareIdentifiers(this.patch, other.patch)
2728
+ )
2729
+ }
2730
+
2731
+ comparePre (other) {
2732
+ if (!(other instanceof SemVer)) {
2733
+ other = new SemVer(other, this.options)
2734
+ }
2735
+
2736
+ // NOT having a prerelease is > having one
2737
+ if (this.prerelease.length && !other.prerelease.length) {
2738
+ return -1
2739
+ } else if (!this.prerelease.length && other.prerelease.length) {
2740
+ return 1
2741
+ } else if (!this.prerelease.length && !other.prerelease.length) {
2742
+ return 0
2743
+ }
2744
+
2745
+ let i = 0
2746
+ do {
2747
+ const a = this.prerelease[i]
2748
+ const b = other.prerelease[i]
2749
+ debug('prerelease compare', i, a, b)
2750
+ if (a === undefined && b === undefined) {
2751
+ return 0
2752
+ } else if (b === undefined) {
2753
+ return 1
2754
+ } else if (a === undefined) {
2755
+ return -1
2756
+ } else if (a === b) {
2757
+ continue
2758
+ } else {
2759
+ return compareIdentifiers(a, b)
2760
+ }
2761
+ } while (++i)
2762
+ }
2763
+
2764
+ compareBuild (other) {
2765
+ if (!(other instanceof SemVer)) {
2766
+ other = new SemVer(other, this.options)
2767
+ }
2768
+
2769
+ let i = 0
2770
+ do {
2771
+ const a = this.build[i]
2772
+ const b = other.build[i]
2773
+ debug('prerelease compare', i, a, b)
2774
+ if (a === undefined && b === undefined) {
2775
+ return 0
2776
+ } else if (b === undefined) {
2777
+ return 1
2778
+ } else if (a === undefined) {
2779
+ return -1
2780
+ } else if (a === b) {
2781
+ continue
2782
+ } else {
2783
+ return compareIdentifiers(a, b)
2784
+ }
2785
+ } while (++i)
2786
+ }
2787
+
2788
+ // preminor will bump the version up to the next minor release, and immediately
2789
+ // down to pre-release. premajor and prepatch work the same way.
2790
+ inc (release, identifier) {
2791
+ switch (release) {
2792
+ case 'premajor':
2793
+ this.prerelease.length = 0
2794
+ this.patch = 0
2795
+ this.minor = 0
2796
+ this.major++
2797
+ this.inc('pre', identifier)
2798
+ break
2799
+ case 'preminor':
2800
+ this.prerelease.length = 0
2801
+ this.patch = 0
2802
+ this.minor++
2803
+ this.inc('pre', identifier)
2804
+ break
2805
+ case 'prepatch':
2806
+ // If this is already a prerelease, it will bump to the next version
2807
+ // drop any prereleases that might already exist, since they are not
2808
+ // relevant at this point.
2809
+ this.prerelease.length = 0
2810
+ this.inc('patch', identifier)
2811
+ this.inc('pre', identifier)
2812
+ break
2813
+ // If the input is a non-prerelease version, this acts the same as
2814
+ // prepatch.
2815
+ case 'prerelease':
2816
+ if (this.prerelease.length === 0) {
2817
+ this.inc('patch', identifier)
2818
+ }
2819
+ this.inc('pre', identifier)
2820
+ break
2821
+
2822
+ case 'major':
2823
+ // If this is a pre-major version, bump up to the same major version.
2824
+ // Otherwise increment major.
2825
+ // 1.0.0-5 bumps to 1.0.0
2826
+ // 1.1.0 bumps to 2.0.0
2827
+ if (
2828
+ this.minor !== 0 ||
2829
+ this.patch !== 0 ||
2830
+ this.prerelease.length === 0
2831
+ ) {
2832
+ this.major++
2833
+ }
2834
+ this.minor = 0
2835
+ this.patch = 0
2836
+ this.prerelease = []
2837
+ break
2838
+ case 'minor':
2839
+ // If this is a pre-minor version, bump up to the same minor version.
2840
+ // Otherwise increment minor.
2841
+ // 1.2.0-5 bumps to 1.2.0
2842
+ // 1.2.1 bumps to 1.3.0
2843
+ if (this.patch !== 0 || this.prerelease.length === 0) {
2844
+ this.minor++
2845
+ }
2846
+ this.patch = 0
2847
+ this.prerelease = []
2848
+ break
2849
+ case 'patch':
2850
+ // If this is not a pre-release version, it will increment the patch.
2851
+ // If it is a pre-release it will bump up to the same patch version.
2852
+ // 1.2.0-5 patches to 1.2.0
2853
+ // 1.2.0 patches to 1.2.1
2854
+ if (this.prerelease.length === 0) {
2855
+ this.patch++
2856
+ }
2857
+ this.prerelease = []
2858
+ break
2859
+ // This probably shouldn't be used publicly.
2860
+ // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
2861
+ case 'pre':
2862
+ if (this.prerelease.length === 0) {
2863
+ this.prerelease = [0]
2864
+ } else {
2865
+ let i = this.prerelease.length
2866
+ while (--i >= 0) {
2867
+ if (typeof this.prerelease[i] === 'number') {
2868
+ this.prerelease[i]++
2869
+ i = -2
2870
+ }
2871
+ }
2872
+ if (i === -1) {
2873
+ // didn't increment anything
2874
+ this.prerelease.push(0)
2875
+ }
2876
+ }
2877
+ if (identifier) {
2878
+ // 1.2.0-beta.1 bumps to 1.2.0-beta.2,
2879
+ // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0
2880
+ if (this.prerelease[0] === identifier) {
2881
+ if (isNaN(this.prerelease[1])) {
2882
+ this.prerelease = [identifier, 0]
2883
+ }
2884
+ } else {
2885
+ this.prerelease = [identifier, 0]
2886
+ }
2887
+ }
2888
+ break
2889
+
2890
+ default:
2891
+ throw new Error(`invalid increment argument: ${release}`)
2892
+ }
2893
+ this.format()
2894
+ this.raw = this.version
2895
+ return this
2896
+ }
2897
+ }
2898
+
2899
+ module.exports = SemVer
2900
+
2901
+
2902
+ /***/ }),
2903
+
2904
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/clean.js":
2905
+ /*!************************************************************************************!*\
2906
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/clean.js ***!
2907
+ \************************************************************************************/
2908
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2909
+
2910
+ const parse = __webpack_require__(/*! ./parse */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/parse.js")
2911
+ const clean = (version, options) => {
2912
+ const s = parse(version.trim().replace(/^[=v]+/, ''), options)
2913
+ return s ? s.version : null
2914
+ }
2915
+ module.exports = clean
2916
+
2917
+
2918
+ /***/ }),
2919
+
2920
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/cmp.js":
2921
+ /*!**********************************************************************************!*\
2922
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/cmp.js ***!
2923
+ \**********************************************************************************/
2924
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2925
+
2926
+ const eq = __webpack_require__(/*! ./eq */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/eq.js")
2927
+ const neq = __webpack_require__(/*! ./neq */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/neq.js")
2928
+ const gt = __webpack_require__(/*! ./gt */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/gt.js")
2929
+ const gte = __webpack_require__(/*! ./gte */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/gte.js")
2930
+ const lt = __webpack_require__(/*! ./lt */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/lt.js")
2931
+ const lte = __webpack_require__(/*! ./lte */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/lte.js")
2932
+
2933
+ const cmp = (a, op, b, loose) => {
2934
+ switch (op) {
2935
+ case '===':
2936
+ if (typeof a === 'object')
2937
+ a = a.version
2938
+ if (typeof b === 'object')
2939
+ b = b.version
2940
+ return a === b
2941
+
2942
+ case '!==':
2943
+ if (typeof a === 'object')
2944
+ a = a.version
2945
+ if (typeof b === 'object')
2946
+ b = b.version
2947
+ return a !== b
2948
+
2949
+ case '':
2950
+ case '=':
2951
+ case '==':
2952
+ return eq(a, b, loose)
2953
+
2954
+ case '!=':
2955
+ return neq(a, b, loose)
2956
+
2957
+ case '>':
2958
+ return gt(a, b, loose)
2959
+
2960
+ case '>=':
2961
+ return gte(a, b, loose)
2962
+
2963
+ case '<':
2964
+ return lt(a, b, loose)
2965
+
2966
+ case '<=':
2967
+ return lte(a, b, loose)
2968
+
2969
+ default:
2970
+ throw new TypeError(`Invalid operator: ${op}`)
2971
+ }
2972
+ }
2973
+ module.exports = cmp
2974
+
2975
+
2976
+ /***/ }),
2977
+
2978
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/coerce.js":
2979
+ /*!*************************************************************************************!*\
2980
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/coerce.js ***!
2981
+ \*************************************************************************************/
2982
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2983
+
2984
+ const SemVer = __webpack_require__(/*! ../classes/semver */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/classes/semver.js")
2985
+ const parse = __webpack_require__(/*! ./parse */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/parse.js")
2986
+ const {re, t} = __webpack_require__(/*! ../internal/re */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/internal/re.js")
2987
+
2988
+ const coerce = (version, options) => {
2989
+ if (version instanceof SemVer) {
2990
+ return version
2991
+ }
2992
+
2993
+ if (typeof version === 'number') {
2994
+ version = String(version)
2995
+ }
2996
+
2997
+ if (typeof version !== 'string') {
2998
+ return null
2999
+ }
3000
+
3001
+ options = options || {}
3002
+
3003
+ let match = null
3004
+ if (!options.rtl) {
3005
+ match = version.match(re[t.COERCE])
3006
+ } else {
3007
+ // Find the right-most coercible string that does not share
3008
+ // a terminus with a more left-ward coercible string.
3009
+ // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'
3010
+ //
3011
+ // Walk through the string checking with a /g regexp
3012
+ // Manually set the index so as to pick up overlapping matches.
3013
+ // Stop when we get a match that ends at the string end, since no
3014
+ // coercible string can be more right-ward without the same terminus.
3015
+ let next
3016
+ while ((next = re[t.COERCERTL].exec(version)) &&
3017
+ (!match || match.index + match[0].length !== version.length)
3018
+ ) {
3019
+ if (!match ||
3020
+ next.index + next[0].length !== match.index + match[0].length) {
3021
+ match = next
3022
+ }
3023
+ re[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length
3024
+ }
3025
+ // leave it in a clean state
3026
+ re[t.COERCERTL].lastIndex = -1
3027
+ }
3028
+
3029
+ if (match === null)
3030
+ return null
3031
+
3032
+ return parse(`${match[2]}.${match[3] || '0'}.${match[4] || '0'}`, options)
3033
+ }
3034
+ module.exports = coerce
3035
+
3036
+
3037
+ /***/ }),
3038
+
3039
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/compare-build.js":
3040
+ /*!********************************************************************************************!*\
3041
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/compare-build.js ***!
3042
+ \********************************************************************************************/
3043
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3044
+
3045
+ const SemVer = __webpack_require__(/*! ../classes/semver */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/classes/semver.js")
3046
+ const compareBuild = (a, b, loose) => {
3047
+ const versionA = new SemVer(a, loose)
3048
+ const versionB = new SemVer(b, loose)
3049
+ return versionA.compare(versionB) || versionA.compareBuild(versionB)
3050
+ }
3051
+ module.exports = compareBuild
3052
+
3053
+
3054
+ /***/ }),
3055
+
3056
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/compare-loose.js":
3057
+ /*!********************************************************************************************!*\
3058
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/compare-loose.js ***!
3059
+ \********************************************************************************************/
3060
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3061
+
3062
+ const compare = __webpack_require__(/*! ./compare */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/compare.js")
3063
+ const compareLoose = (a, b) => compare(a, b, true)
3064
+ module.exports = compareLoose
3065
+
3066
+
3067
+ /***/ }),
3068
+
3069
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/compare.js":
3070
+ /*!**************************************************************************************!*\
3071
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/compare.js ***!
3072
+ \**************************************************************************************/
3073
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3074
+
3075
+ const SemVer = __webpack_require__(/*! ../classes/semver */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/classes/semver.js")
3076
+ const compare = (a, b, loose) =>
3077
+ new SemVer(a, loose).compare(new SemVer(b, loose))
3078
+
3079
+ module.exports = compare
3080
+
3081
+
3082
+ /***/ }),
3083
+
3084
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/diff.js":
3085
+ /*!***********************************************************************************!*\
3086
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/diff.js ***!
3087
+ \***********************************************************************************/
3088
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3089
+
3090
+ const parse = __webpack_require__(/*! ./parse */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/parse.js")
3091
+ const eq = __webpack_require__(/*! ./eq */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/eq.js")
3092
+
3093
+ const diff = (version1, version2) => {
3094
+ if (eq(version1, version2)) {
3095
+ return null
3096
+ } else {
3097
+ const v1 = parse(version1)
3098
+ const v2 = parse(version2)
3099
+ const hasPre = v1.prerelease.length || v2.prerelease.length
3100
+ const prefix = hasPre ? 'pre' : ''
3101
+ const defaultResult = hasPre ? 'prerelease' : ''
3102
+ for (const key in v1) {
3103
+ if (key === 'major' || key === 'minor' || key === 'patch') {
3104
+ if (v1[key] !== v2[key]) {
3105
+ return prefix + key
3106
+ }
3107
+ }
3108
+ }
3109
+ return defaultResult // may be undefined
3110
+ }
3111
+ }
3112
+ module.exports = diff
3113
+
3114
+
3115
+ /***/ }),
3116
+
3117
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/eq.js":
3118
+ /*!*********************************************************************************!*\
3119
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/eq.js ***!
3120
+ \*********************************************************************************/
3121
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3122
+
3123
+ const compare = __webpack_require__(/*! ./compare */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/compare.js")
3124
+ const eq = (a, b, loose) => compare(a, b, loose) === 0
3125
+ module.exports = eq
3126
+
3127
+
3128
+ /***/ }),
3129
+
3130
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/gt.js":
3131
+ /*!*********************************************************************************!*\
3132
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/gt.js ***!
3133
+ \*********************************************************************************/
3134
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3135
+
3136
+ const compare = __webpack_require__(/*! ./compare */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/compare.js")
3137
+ const gt = (a, b, loose) => compare(a, b, loose) > 0
3138
+ module.exports = gt
3139
+
3140
+
3141
+ /***/ }),
3142
+
3143
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/gte.js":
3144
+ /*!**********************************************************************************!*\
3145
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/gte.js ***!
3146
+ \**********************************************************************************/
3147
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3148
+
3149
+ const compare = __webpack_require__(/*! ./compare */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/compare.js")
3150
+ const gte = (a, b, loose) => compare(a, b, loose) >= 0
3151
+ module.exports = gte
3152
+
3153
+
3154
+ /***/ }),
3155
+
3156
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/inc.js":
3157
+ /*!**********************************************************************************!*\
3158
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/inc.js ***!
3159
+ \**********************************************************************************/
3160
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3161
+
3162
+ const SemVer = __webpack_require__(/*! ../classes/semver */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/classes/semver.js")
3163
+
3164
+ const inc = (version, release, options, identifier) => {
3165
+ if (typeof (options) === 'string') {
3166
+ identifier = options
3167
+ options = undefined
3168
+ }
3169
+
3170
+ try {
3171
+ return new SemVer(version, options).inc(release, identifier).version
3172
+ } catch (er) {
3173
+ return null
3174
+ }
3175
+ }
3176
+ module.exports = inc
3177
+
3178
+
3179
+ /***/ }),
3180
+
3181
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/lt.js":
3182
+ /*!*********************************************************************************!*\
3183
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/lt.js ***!
3184
+ \*********************************************************************************/
3185
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3186
+
3187
+ const compare = __webpack_require__(/*! ./compare */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/compare.js")
3188
+ const lt = (a, b, loose) => compare(a, b, loose) < 0
3189
+ module.exports = lt
3190
+
3191
+
3192
+ /***/ }),
3193
+
3194
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/lte.js":
3195
+ /*!**********************************************************************************!*\
3196
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/lte.js ***!
3197
+ \**********************************************************************************/
3198
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3199
+
3200
+ const compare = __webpack_require__(/*! ./compare */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/compare.js")
3201
+ const lte = (a, b, loose) => compare(a, b, loose) <= 0
3202
+ module.exports = lte
3203
+
3204
+
3205
+ /***/ }),
3206
+
3207
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/major.js":
3208
+ /*!************************************************************************************!*\
3209
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/major.js ***!
3210
+ \************************************************************************************/
3211
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3212
+
3213
+ const SemVer = __webpack_require__(/*! ../classes/semver */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/classes/semver.js")
3214
+ const major = (a, loose) => new SemVer(a, loose).major
3215
+ module.exports = major
3216
+
3217
+
3218
+ /***/ }),
3219
+
3220
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/minor.js":
3221
+ /*!************************************************************************************!*\
3222
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/minor.js ***!
3223
+ \************************************************************************************/
3224
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3225
+
3226
+ const SemVer = __webpack_require__(/*! ../classes/semver */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/classes/semver.js")
3227
+ const minor = (a, loose) => new SemVer(a, loose).minor
3228
+ module.exports = minor
3229
+
3230
+
3231
+ /***/ }),
3232
+
3233
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/neq.js":
3234
+ /*!**********************************************************************************!*\
3235
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/neq.js ***!
3236
+ \**********************************************************************************/
3237
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3238
+
3239
+ const compare = __webpack_require__(/*! ./compare */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/compare.js")
3240
+ const neq = (a, b, loose) => compare(a, b, loose) !== 0
3241
+ module.exports = neq
3242
+
3243
+
3244
+ /***/ }),
3245
+
3246
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/parse.js":
3247
+ /*!************************************************************************************!*\
3248
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/parse.js ***!
3249
+ \************************************************************************************/
3250
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3251
+
3252
+ const {MAX_LENGTH} = __webpack_require__(/*! ../internal/constants */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/internal/constants.js")
3253
+ const { re, t } = __webpack_require__(/*! ../internal/re */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/internal/re.js")
3254
+ const SemVer = __webpack_require__(/*! ../classes/semver */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/classes/semver.js")
3255
+
3256
+ const parse = (version, options) => {
3257
+ if (!options || typeof options !== 'object') {
3258
+ options = {
3259
+ loose: !!options,
3260
+ includePrerelease: false
3261
+ }
3262
+ }
3263
+
3264
+ if (version instanceof SemVer) {
3265
+ return version
3266
+ }
3267
+
3268
+ if (typeof version !== 'string') {
3269
+ return null
3270
+ }
3271
+
3272
+ if (version.length > MAX_LENGTH) {
3273
+ return null
3274
+ }
3275
+
3276
+ const r = options.loose ? re[t.LOOSE] : re[t.FULL]
3277
+ if (!r.test(version)) {
3278
+ return null
3279
+ }
3280
+
3281
+ try {
3282
+ return new SemVer(version, options)
3283
+ } catch (er) {
3284
+ return null
3285
+ }
3286
+ }
3287
+
3288
+ module.exports = parse
3289
+
3290
+
3291
+ /***/ }),
3292
+
3293
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/patch.js":
3294
+ /*!************************************************************************************!*\
3295
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/patch.js ***!
3296
+ \************************************************************************************/
3297
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3298
+
3299
+ const SemVer = __webpack_require__(/*! ../classes/semver */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/classes/semver.js")
3300
+ const patch = (a, loose) => new SemVer(a, loose).patch
3301
+ module.exports = patch
3302
+
3303
+
3304
+ /***/ }),
3305
+
3306
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/prerelease.js":
3307
+ /*!*****************************************************************************************!*\
3308
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/prerelease.js ***!
3309
+ \*****************************************************************************************/
3310
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3311
+
3312
+ const parse = __webpack_require__(/*! ./parse */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/parse.js")
3313
+ const prerelease = (version, options) => {
3314
+ const parsed = parse(version, options)
3315
+ return (parsed && parsed.prerelease.length) ? parsed.prerelease : null
3316
+ }
3317
+ module.exports = prerelease
3318
+
3319
+
3320
+ /***/ }),
3321
+
3322
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/rcompare.js":
3323
+ /*!***************************************************************************************!*\
3324
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/rcompare.js ***!
3325
+ \***************************************************************************************/
3326
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3327
+
3328
+ const compare = __webpack_require__(/*! ./compare */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/compare.js")
3329
+ const rcompare = (a, b, loose) => compare(b, a, loose)
3330
+ module.exports = rcompare
3331
+
3332
+
3333
+ /***/ }),
3334
+
3335
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/rsort.js":
3336
+ /*!************************************************************************************!*\
3337
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/rsort.js ***!
3338
+ \************************************************************************************/
3339
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3340
+
3341
+ const compareBuild = __webpack_require__(/*! ./compare-build */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/compare-build.js")
3342
+ const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose))
3343
+ module.exports = rsort
3344
+
3345
+
3346
+ /***/ }),
3347
+
3348
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/satisfies.js":
3349
+ /*!****************************************************************************************!*\
3350
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/satisfies.js ***!
3351
+ \****************************************************************************************/
3352
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3353
+
3354
+ const Range = __webpack_require__(/*! ../classes/range */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/classes/range.js")
3355
+ const satisfies = (version, range, options) => {
3356
+ try {
3357
+ range = new Range(range, options)
3358
+ } catch (er) {
3359
+ return false
3360
+ }
3361
+ return range.test(version)
3362
+ }
3363
+ module.exports = satisfies
3364
+
3365
+
3366
+ /***/ }),
3367
+
3368
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/sort.js":
3369
+ /*!***********************************************************************************!*\
3370
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/sort.js ***!
3371
+ \***********************************************************************************/
3372
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3373
+
3374
+ const compareBuild = __webpack_require__(/*! ./compare-build */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/compare-build.js")
3375
+ const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose))
3376
+ module.exports = sort
3377
+
3378
+
3379
+ /***/ }),
3380
+
3381
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/valid.js":
3382
+ /*!************************************************************************************!*\
3383
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/valid.js ***!
3384
+ \************************************************************************************/
3385
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3386
+
3387
+ const parse = __webpack_require__(/*! ./parse */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/parse.js")
3388
+ const valid = (version, options) => {
3389
+ const v = parse(version, options)
3390
+ return v ? v.version : null
3391
+ }
3392
+ module.exports = valid
3393
+
3394
+
3395
+ /***/ }),
3396
+
3397
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/index.js":
3398
+ /*!**************************************************************************!*\
3399
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/index.js ***!
3400
+ \**************************************************************************/
3401
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3402
+
3403
+ // just pre-load all the stuff that index.js lazily exports
3404
+ const internalRe = __webpack_require__(/*! ./internal/re */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/internal/re.js")
3405
+ module.exports = {
3406
+ re: internalRe.re,
3407
+ src: internalRe.src,
3408
+ tokens: internalRe.t,
3409
+ SEMVER_SPEC_VERSION: (__webpack_require__(/*! ./internal/constants */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/internal/constants.js").SEMVER_SPEC_VERSION),
3410
+ SemVer: __webpack_require__(/*! ./classes/semver */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/classes/semver.js"),
3411
+ compareIdentifiers: (__webpack_require__(/*! ./internal/identifiers */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/internal/identifiers.js").compareIdentifiers),
3412
+ rcompareIdentifiers: (__webpack_require__(/*! ./internal/identifiers */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/internal/identifiers.js").rcompareIdentifiers),
3413
+ parse: __webpack_require__(/*! ./functions/parse */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/parse.js"),
3414
+ valid: __webpack_require__(/*! ./functions/valid */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/valid.js"),
3415
+ clean: __webpack_require__(/*! ./functions/clean */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/clean.js"),
3416
+ inc: __webpack_require__(/*! ./functions/inc */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/inc.js"),
3417
+ diff: __webpack_require__(/*! ./functions/diff */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/diff.js"),
3418
+ major: __webpack_require__(/*! ./functions/major */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/major.js"),
3419
+ minor: __webpack_require__(/*! ./functions/minor */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/minor.js"),
3420
+ patch: __webpack_require__(/*! ./functions/patch */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/patch.js"),
3421
+ prerelease: __webpack_require__(/*! ./functions/prerelease */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/prerelease.js"),
3422
+ compare: __webpack_require__(/*! ./functions/compare */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/compare.js"),
3423
+ rcompare: __webpack_require__(/*! ./functions/rcompare */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/rcompare.js"),
3424
+ compareLoose: __webpack_require__(/*! ./functions/compare-loose */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/compare-loose.js"),
3425
+ compareBuild: __webpack_require__(/*! ./functions/compare-build */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/compare-build.js"),
3426
+ sort: __webpack_require__(/*! ./functions/sort */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/sort.js"),
3427
+ rsort: __webpack_require__(/*! ./functions/rsort */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/rsort.js"),
3428
+ gt: __webpack_require__(/*! ./functions/gt */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/gt.js"),
3429
+ lt: __webpack_require__(/*! ./functions/lt */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/lt.js"),
3430
+ eq: __webpack_require__(/*! ./functions/eq */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/eq.js"),
3431
+ neq: __webpack_require__(/*! ./functions/neq */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/neq.js"),
3432
+ gte: __webpack_require__(/*! ./functions/gte */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/gte.js"),
3433
+ lte: __webpack_require__(/*! ./functions/lte */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/lte.js"),
3434
+ cmp: __webpack_require__(/*! ./functions/cmp */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/cmp.js"),
3435
+ coerce: __webpack_require__(/*! ./functions/coerce */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/coerce.js"),
3436
+ Comparator: __webpack_require__(/*! ./classes/comparator */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/classes/comparator.js"),
3437
+ Range: __webpack_require__(/*! ./classes/range */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/classes/range.js"),
3438
+ satisfies: __webpack_require__(/*! ./functions/satisfies */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/satisfies.js"),
3439
+ toComparators: __webpack_require__(/*! ./ranges/to-comparators */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/to-comparators.js"),
3440
+ maxSatisfying: __webpack_require__(/*! ./ranges/max-satisfying */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/max-satisfying.js"),
3441
+ minSatisfying: __webpack_require__(/*! ./ranges/min-satisfying */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/min-satisfying.js"),
3442
+ minVersion: __webpack_require__(/*! ./ranges/min-version */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/min-version.js"),
3443
+ validRange: __webpack_require__(/*! ./ranges/valid */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/valid.js"),
3444
+ outside: __webpack_require__(/*! ./ranges/outside */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/outside.js"),
3445
+ gtr: __webpack_require__(/*! ./ranges/gtr */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/gtr.js"),
3446
+ ltr: __webpack_require__(/*! ./ranges/ltr */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/ltr.js"),
3447
+ intersects: __webpack_require__(/*! ./ranges/intersects */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/intersects.js"),
3448
+ simplifyRange: __webpack_require__(/*! ./ranges/simplify */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/simplify.js"),
3449
+ subset: __webpack_require__(/*! ./ranges/subset */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/subset.js"),
3450
+ }
3451
+
3452
+
3453
+ /***/ }),
3454
+
3455
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/internal/constants.js":
3456
+ /*!***************************************************************************************!*\
3457
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/internal/constants.js ***!
3458
+ \***************************************************************************************/
3459
+ /***/ ((module) => {
3460
+
3461
+ // Note: this is the semver.org version of the spec that it implements
3462
+ // Not necessarily the package version of this code.
3463
+ const SEMVER_SPEC_VERSION = '2.0.0'
3464
+
3465
+ const MAX_LENGTH = 256
3466
+ const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||
3467
+ /* istanbul ignore next */ 9007199254740991
3468
+
3469
+ // Max safe segment length for coercion.
3470
+ const MAX_SAFE_COMPONENT_LENGTH = 16
3471
+
3472
+ module.exports = {
3473
+ SEMVER_SPEC_VERSION,
3474
+ MAX_LENGTH,
3475
+ MAX_SAFE_INTEGER,
3476
+ MAX_SAFE_COMPONENT_LENGTH
3477
+ }
3478
+
3479
+
3480
+ /***/ }),
3481
+
3482
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/internal/debug.js":
3483
+ /*!***********************************************************************************!*\
3484
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/internal/debug.js ***!
3485
+ \***********************************************************************************/
3486
+ /***/ ((module) => {
3487
+
3488
+ const debug = (
3489
+ typeof process === 'object' &&
3490
+ process.env &&
3491
+ process.env.NODE_DEBUG &&
3492
+ /\bsemver\b/i.test(process.env.NODE_DEBUG)
3493
+ ) ? (...args) => console.error('SEMVER', ...args)
3494
+ : () => {}
3495
+
3496
+ module.exports = debug
3497
+
3498
+
3499
+ /***/ }),
3500
+
3501
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/internal/identifiers.js":
3502
+ /*!*****************************************************************************************!*\
3503
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/internal/identifiers.js ***!
3504
+ \*****************************************************************************************/
3505
+ /***/ ((module) => {
3506
+
3507
+ const numeric = /^[0-9]+$/
3508
+ const compareIdentifiers = (a, b) => {
3509
+ const anum = numeric.test(a)
3510
+ const bnum = numeric.test(b)
3511
+
3512
+ if (anum && bnum) {
3513
+ a = +a
3514
+ b = +b
3515
+ }
3516
+
3517
+ return a === b ? 0
3518
+ : (anum && !bnum) ? -1
3519
+ : (bnum && !anum) ? 1
3520
+ : a < b ? -1
3521
+ : 1
3522
+ }
3523
+
3524
+ const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a)
3525
+
3526
+ module.exports = {
3527
+ compareIdentifiers,
3528
+ rcompareIdentifiers
3529
+ }
3530
+
3531
+
3532
+ /***/ }),
3533
+
3534
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/internal/re.js":
3535
+ /*!********************************************************************************!*\
3536
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/internal/re.js ***!
3537
+ \********************************************************************************/
3538
+ /***/ ((module, exports, __webpack_require__) => {
3539
+
3540
+ const { MAX_SAFE_COMPONENT_LENGTH } = __webpack_require__(/*! ./constants */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/internal/constants.js")
3541
+ const debug = __webpack_require__(/*! ./debug */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/internal/debug.js")
3542
+ exports = module.exports = {}
3543
+
3544
+ // The actual regexps go on exports.re
3545
+ const re = exports.re = []
3546
+ const src = exports.src = []
3547
+ const t = exports.t = {}
3548
+ let R = 0
3549
+
3550
+ const createToken = (name, value, isGlobal) => {
3551
+ const index = R++
3552
+ debug(index, value)
3553
+ t[name] = index
3554
+ src[index] = value
3555
+ re[index] = new RegExp(value, isGlobal ? 'g' : undefined)
3556
+ }
3557
+
3558
+ // The following Regular Expressions can be used for tokenizing,
3559
+ // validating, and parsing SemVer version strings.
3560
+
3561
+ // ## Numeric Identifier
3562
+ // A single `0`, or a non-zero digit followed by zero or more digits.
3563
+
3564
+ createToken('NUMERICIDENTIFIER', '0|[1-9]\\d*')
3565
+ createToken('NUMERICIDENTIFIERLOOSE', '[0-9]+')
3566
+
3567
+ // ## Non-numeric Identifier
3568
+ // Zero or more digits, followed by a letter or hyphen, and then zero or
3569
+ // more letters, digits, or hyphens.
3570
+
3571
+ createToken('NONNUMERICIDENTIFIER', '\\d*[a-zA-Z-][a-zA-Z0-9-]*')
3572
+
3573
+ // ## Main Version
3574
+ // Three dot-separated numeric identifiers.
3575
+
3576
+ createToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\.` +
3577
+ `(${src[t.NUMERICIDENTIFIER]})\\.` +
3578
+ `(${src[t.NUMERICIDENTIFIER]})`)
3579
+
3580
+ createToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` +
3581
+ `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` +
3582
+ `(${src[t.NUMERICIDENTIFIERLOOSE]})`)
3583
+
3584
+ // ## Pre-release Version Identifier
3585
+ // A numeric identifier, or a non-numeric identifier.
3586
+
3587
+ createToken('PRERELEASEIDENTIFIER', `(?:${src[t.NUMERICIDENTIFIER]
3588
+ }|${src[t.NONNUMERICIDENTIFIER]})`)
3589
+
3590
+ createToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NUMERICIDENTIFIERLOOSE]
3591
+ }|${src[t.NONNUMERICIDENTIFIER]})`)
3592
+
3593
+ // ## Pre-release Version
3594
+ // Hyphen, followed by one or more dot-separated pre-release version
3595
+ // identifiers.
3596
+
3597
+ createToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER]
3598
+ }(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`)
3599
+
3600
+ createToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]
3601
+ }(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`)
3602
+
3603
+ // ## Build Metadata Identifier
3604
+ // Any combination of digits, letters, or hyphens.
3605
+
3606
+ createToken('BUILDIDENTIFIER', '[0-9A-Za-z-]+')
3607
+
3608
+ // ## Build Metadata
3609
+ // Plus sign, followed by one or more period-separated build metadata
3610
+ // identifiers.
3611
+
3612
+ createToken('BUILD', `(?:\\+(${src[t.BUILDIDENTIFIER]
3613
+ }(?:\\.${src[t.BUILDIDENTIFIER]})*))`)
3614
+
3615
+ // ## Full Version String
3616
+ // A main version, followed optionally by a pre-release version and
3617
+ // build metadata.
3618
+
3619
+ // Note that the only major, minor, patch, and pre-release sections of
3620
+ // the version string are capturing groups. The build metadata is not a
3621
+ // capturing group, because it should not ever be used in version
3622
+ // comparison.
3623
+
3624
+ createToken('FULLPLAIN', `v?${src[t.MAINVERSION]
3625
+ }${src[t.PRERELEASE]}?${
3626
+ src[t.BUILD]}?`)
3627
+
3628
+ createToken('FULL', `^${src[t.FULLPLAIN]}$`)
3629
+
3630
+ // like full, but allows v1.2.3 and =1.2.3, which people do sometimes.
3631
+ // also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty
3632
+ // common in the npm registry.
3633
+ createToken('LOOSEPLAIN', `[v=\\s]*${src[t.MAINVERSIONLOOSE]
3634
+ }${src[t.PRERELEASELOOSE]}?${
3635
+ src[t.BUILD]}?`)
3636
+
3637
+ createToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`)
3638
+
3639
+ createToken('GTLT', '((?:<|>)?=?)')
3640
+
3641
+ // Something like "2.*" or "1.2.x".
3642
+ // Note that "x.x" is a valid xRange identifer, meaning "any version"
3643
+ // Only the first item is strictly required.
3644
+ createToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`)
3645
+ createToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`)
3646
+
3647
+ createToken('XRANGEPLAIN', `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})` +
3648
+ `(?:\\.(${src[t.XRANGEIDENTIFIER]})` +
3649
+ `(?:\\.(${src[t.XRANGEIDENTIFIER]})` +
3650
+ `(?:${src[t.PRERELEASE]})?${
3651
+ src[t.BUILD]}?` +
3652
+ `)?)?`)
3653
+
3654
+ createToken('XRANGEPLAINLOOSE', `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` +
3655
+ `(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +
3656
+ `(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +
3657
+ `(?:${src[t.PRERELEASELOOSE]})?${
3658
+ src[t.BUILD]}?` +
3659
+ `)?)?`)
3660
+
3661
+ createToken('XRANGE', `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`)
3662
+ createToken('XRANGELOOSE', `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`)
3663
+
3664
+ // Coercion.
3665
+ // Extract anything that could conceivably be a part of a valid semver
3666
+ createToken('COERCE', `${'(^|[^\\d])' +
3667
+ '(\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` +
3668
+ `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +
3669
+ `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +
3670
+ `(?:$|[^\\d])`)
3671
+ createToken('COERCERTL', src[t.COERCE], true)
3672
+
3673
+ // Tilde ranges.
3674
+ // Meaning is "reasonably at or greater than"
3675
+ createToken('LONETILDE', '(?:~>?)')
3676
+
3677
+ createToken('TILDETRIM', `(\\s*)${src[t.LONETILDE]}\\s+`, true)
3678
+ exports.tildeTrimReplace = '$1~'
3679
+
3680
+ createToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`)
3681
+ createToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`)
3682
+
3683
+ // Caret ranges.
3684
+ // Meaning is "at least and backwards compatible with"
3685
+ createToken('LONECARET', '(?:\\^)')
3686
+
3687
+ createToken('CARETTRIM', `(\\s*)${src[t.LONECARET]}\\s+`, true)
3688
+ exports.caretTrimReplace = '$1^'
3689
+
3690
+ createToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`)
3691
+ createToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`)
3692
+
3693
+ // A simple gt/lt/eq thing, or just "" to indicate "any version"
3694
+ createToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`)
3695
+ createToken('COMPARATOR', `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`)
3696
+
3697
+ // An expression to strip any whitespace between the gtlt and the thing
3698
+ // it modifies, so that `> 1.2.3` ==> `>1.2.3`
3699
+ createToken('COMPARATORTRIM', `(\\s*)${src[t.GTLT]
3700
+ }\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true)
3701
+ exports.comparatorTrimReplace = '$1$2$3'
3702
+
3703
+ // Something like `1.2.3 - 1.2.4`
3704
+ // Note that these all use the loose form, because they'll be
3705
+ // checked against either the strict or loose comparator form
3706
+ // later.
3707
+ createToken('HYPHENRANGE', `^\\s*(${src[t.XRANGEPLAIN]})` +
3708
+ `\\s+-\\s+` +
3709
+ `(${src[t.XRANGEPLAIN]})` +
3710
+ `\\s*$`)
3711
+
3712
+ createToken('HYPHENRANGELOOSE', `^\\s*(${src[t.XRANGEPLAINLOOSE]})` +
3713
+ `\\s+-\\s+` +
3714
+ `(${src[t.XRANGEPLAINLOOSE]})` +
3715
+ `\\s*$`)
3716
+
3717
+ // Star ranges basically just allow anything at all.
3718
+ createToken('STAR', '(<|>)?=?\\s*\\*')
3719
+ // >=0.0.0 is like a star
3720
+ createToken('GTE0', '^\\s*>=\\s*0\.0\.0\\s*$')
3721
+ createToken('GTE0PRE', '^\\s*>=\\s*0\.0\.0-0\\s*$')
3722
+
3723
+
3724
+ /***/ }),
3725
+
3726
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/gtr.js":
3727
+ /*!*******************************************************************************!*\
3728
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/gtr.js ***!
3729
+ \*******************************************************************************/
3730
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3731
+
3732
+ // Determine if version is greater than all the versions possible in the range.
3733
+ const outside = __webpack_require__(/*! ./outside */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/outside.js")
3734
+ const gtr = (version, range, options) => outside(version, range, '>', options)
3735
+ module.exports = gtr
3736
+
3737
+
3738
+ /***/ }),
3739
+
3740
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/intersects.js":
3741
+ /*!**************************************************************************************!*\
3742
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/intersects.js ***!
3743
+ \**************************************************************************************/
3744
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3745
+
3746
+ const Range = __webpack_require__(/*! ../classes/range */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/classes/range.js")
3747
+ const intersects = (r1, r2, options) => {
3748
+ r1 = new Range(r1, options)
3749
+ r2 = new Range(r2, options)
3750
+ return r1.intersects(r2)
3751
+ }
3752
+ module.exports = intersects
3753
+
3754
+
3755
+ /***/ }),
3756
+
3757
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/ltr.js":
3758
+ /*!*******************************************************************************!*\
3759
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/ltr.js ***!
3760
+ \*******************************************************************************/
3761
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3762
+
3763
+ const outside = __webpack_require__(/*! ./outside */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/outside.js")
3764
+ // Determine if version is less than all the versions possible in the range
3765
+ const ltr = (version, range, options) => outside(version, range, '<', options)
3766
+ module.exports = ltr
3767
+
3768
+
3769
+ /***/ }),
3770
+
3771
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/max-satisfying.js":
3772
+ /*!******************************************************************************************!*\
3773
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/max-satisfying.js ***!
3774
+ \******************************************************************************************/
3775
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3776
+
3777
+ const SemVer = __webpack_require__(/*! ../classes/semver */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/classes/semver.js")
3778
+ const Range = __webpack_require__(/*! ../classes/range */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/classes/range.js")
3779
+
3780
+ const maxSatisfying = (versions, range, options) => {
3781
+ let max = null
3782
+ let maxSV = null
3783
+ let rangeObj = null
3784
+ try {
3785
+ rangeObj = new Range(range, options)
3786
+ } catch (er) {
3787
+ return null
3788
+ }
3789
+ versions.forEach((v) => {
3790
+ if (rangeObj.test(v)) {
3791
+ // satisfies(v, range, options)
3792
+ if (!max || maxSV.compare(v) === -1) {
3793
+ // compare(max, v, true)
3794
+ max = v
3795
+ maxSV = new SemVer(max, options)
3796
+ }
3797
+ }
3798
+ })
3799
+ return max
3800
+ }
3801
+ module.exports = maxSatisfying
3802
+
3803
+
3804
+ /***/ }),
3805
+
3806
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/min-satisfying.js":
3807
+ /*!******************************************************************************************!*\
3808
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/min-satisfying.js ***!
3809
+ \******************************************************************************************/
3810
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3811
+
3812
+ const SemVer = __webpack_require__(/*! ../classes/semver */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/classes/semver.js")
3813
+ const Range = __webpack_require__(/*! ../classes/range */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/classes/range.js")
3814
+ const minSatisfying = (versions, range, options) => {
3815
+ let min = null
3816
+ let minSV = null
3817
+ let rangeObj = null
3818
+ try {
3819
+ rangeObj = new Range(range, options)
3820
+ } catch (er) {
3821
+ return null
3822
+ }
3823
+ versions.forEach((v) => {
3824
+ if (rangeObj.test(v)) {
3825
+ // satisfies(v, range, options)
3826
+ if (!min || minSV.compare(v) === 1) {
3827
+ // compare(min, v, true)
3828
+ min = v
3829
+ minSV = new SemVer(min, options)
3830
+ }
3831
+ }
3832
+ })
3833
+ return min
3834
+ }
3835
+ module.exports = minSatisfying
3836
+
3837
+
3838
+ /***/ }),
3839
+
3840
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/min-version.js":
3841
+ /*!***************************************************************************************!*\
3842
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/min-version.js ***!
3843
+ \***************************************************************************************/
3844
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3845
+
3846
+ const SemVer = __webpack_require__(/*! ../classes/semver */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/classes/semver.js")
3847
+ const Range = __webpack_require__(/*! ../classes/range */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/classes/range.js")
3848
+ const gt = __webpack_require__(/*! ../functions/gt */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/gt.js")
3849
+
3850
+ const minVersion = (range, loose) => {
3851
+ range = new Range(range, loose)
3852
+
3853
+ let minver = new SemVer('0.0.0')
3854
+ if (range.test(minver)) {
3855
+ return minver
3856
+ }
3857
+
3858
+ minver = new SemVer('0.0.0-0')
3859
+ if (range.test(minver)) {
3860
+ return minver
3861
+ }
3862
+
3863
+ minver = null
3864
+ for (let i = 0; i < range.set.length; ++i) {
3865
+ const comparators = range.set[i]
3866
+
3867
+ comparators.forEach((comparator) => {
3868
+ // Clone to avoid manipulating the comparator's semver object.
3869
+ const compver = new SemVer(comparator.semver.version)
3870
+ switch (comparator.operator) {
3871
+ case '>':
3872
+ if (compver.prerelease.length === 0) {
3873
+ compver.patch++
3874
+ } else {
3875
+ compver.prerelease.push(0)
3876
+ }
3877
+ compver.raw = compver.format()
3878
+ /* fallthrough */
3879
+ case '':
3880
+ case '>=':
3881
+ if (!minver || gt(minver, compver)) {
3882
+ minver = compver
3883
+ }
3884
+ break
3885
+ case '<':
3886
+ case '<=':
3887
+ /* Ignore maximum versions */
3888
+ break
3889
+ /* istanbul ignore next */
3890
+ default:
3891
+ throw new Error(`Unexpected operation: ${comparator.operator}`)
3892
+ }
3893
+ })
3894
+ }
3895
+
3896
+ if (minver && range.test(minver)) {
3897
+ return minver
3898
+ }
3899
+
3900
+ return null
3901
+ }
3902
+ module.exports = minVersion
3903
+
3904
+
3905
+ /***/ }),
3906
+
3907
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/outside.js":
3908
+ /*!***********************************************************************************!*\
3909
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/outside.js ***!
3910
+ \***********************************************************************************/
3911
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3912
+
3913
+ const SemVer = __webpack_require__(/*! ../classes/semver */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/classes/semver.js")
3914
+ const Comparator = __webpack_require__(/*! ../classes/comparator */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/classes/comparator.js")
3915
+ const {ANY} = Comparator
3916
+ const Range = __webpack_require__(/*! ../classes/range */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/classes/range.js")
3917
+ const satisfies = __webpack_require__(/*! ../functions/satisfies */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/satisfies.js")
3918
+ const gt = __webpack_require__(/*! ../functions/gt */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/gt.js")
3919
+ const lt = __webpack_require__(/*! ../functions/lt */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/lt.js")
3920
+ const lte = __webpack_require__(/*! ../functions/lte */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/lte.js")
3921
+ const gte = __webpack_require__(/*! ../functions/gte */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/gte.js")
3922
+
3923
+ const outside = (version, range, hilo, options) => {
3924
+ version = new SemVer(version, options)
3925
+ range = new Range(range, options)
3926
+
3927
+ let gtfn, ltefn, ltfn, comp, ecomp
3928
+ switch (hilo) {
3929
+ case '>':
3930
+ gtfn = gt
3931
+ ltefn = lte
3932
+ ltfn = lt
3933
+ comp = '>'
3934
+ ecomp = '>='
3935
+ break
3936
+ case '<':
3937
+ gtfn = lt
3938
+ ltefn = gte
3939
+ ltfn = gt
3940
+ comp = '<'
3941
+ ecomp = '<='
3942
+ break
3943
+ default:
3944
+ throw new TypeError('Must provide a hilo val of "<" or ">"')
3945
+ }
3946
+
3947
+ // If it satisifes the range it is not outside
3948
+ if (satisfies(version, range, options)) {
3949
+ return false
3950
+ }
3951
+
3952
+ // From now on, variable terms are as if we're in "gtr" mode.
3953
+ // but note that everything is flipped for the "ltr" function.
3954
+
3955
+ for (let i = 0; i < range.set.length; ++i) {
3956
+ const comparators = range.set[i]
3957
+
3958
+ let high = null
3959
+ let low = null
3960
+
3961
+ comparators.forEach((comparator) => {
3962
+ if (comparator.semver === ANY) {
3963
+ comparator = new Comparator('>=0.0.0')
3964
+ }
3965
+ high = high || comparator
3966
+ low = low || comparator
3967
+ if (gtfn(comparator.semver, high.semver, options)) {
3968
+ high = comparator
3969
+ } else if (ltfn(comparator.semver, low.semver, options)) {
3970
+ low = comparator
3971
+ }
3972
+ })
3973
+
3974
+ // If the edge version comparator has a operator then our version
3975
+ // isn't outside it
3976
+ if (high.operator === comp || high.operator === ecomp) {
3977
+ return false
3978
+ }
3979
+
3980
+ // If the lowest version comparator has an operator and our version
3981
+ // is less than it then it isn't higher than the range
3982
+ if ((!low.operator || low.operator === comp) &&
3983
+ ltefn(version, low.semver)) {
3984
+ return false
3985
+ } else if (low.operator === ecomp && ltfn(version, low.semver)) {
3986
+ return false
3987
+ }
3988
+ }
3989
+ return true
3990
+ }
3991
+
3992
+ module.exports = outside
3993
+
3994
+
3995
+ /***/ }),
3996
+
3997
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/simplify.js":
3998
+ /*!************************************************************************************!*\
3999
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/simplify.js ***!
4000
+ \************************************************************************************/
4001
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4002
+
4003
+ // given a set of versions and a range, create a "simplified" range
4004
+ // that includes the same versions that the original range does
4005
+ // If the original range is shorter than the simplified one, return that.
4006
+ const satisfies = __webpack_require__(/*! ../functions/satisfies.js */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/satisfies.js")
4007
+ const compare = __webpack_require__(/*! ../functions/compare.js */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/compare.js")
4008
+ module.exports = (versions, range, options) => {
4009
+ const set = []
4010
+ let min = null
4011
+ let prev = null
4012
+ const v = versions.sort((a, b) => compare(a, b, options))
4013
+ for (const version of v) {
4014
+ const included = satisfies(version, range, options)
4015
+ if (included) {
4016
+ prev = version
4017
+ if (!min)
4018
+ min = version
4019
+ } else {
4020
+ if (prev) {
4021
+ set.push([min, prev])
4022
+ }
4023
+ prev = null
4024
+ min = null
4025
+ }
4026
+ }
4027
+ if (min)
4028
+ set.push([min, null])
4029
+
4030
+ const ranges = []
4031
+ for (const [min, max] of set) {
4032
+ if (min === max)
4033
+ ranges.push(min)
4034
+ else if (!max && min === v[0])
4035
+ ranges.push('*')
4036
+ else if (!max)
4037
+ ranges.push(`>=${min}`)
4038
+ else if (min === v[0])
4039
+ ranges.push(`<=${max}`)
4040
+ else
4041
+ ranges.push(`${min} - ${max}`)
4042
+ }
4043
+ const simplified = ranges.join(' || ')
4044
+ const original = typeof range.raw === 'string' ? range.raw : String(range)
4045
+ return simplified.length < original.length ? simplified : range
4046
+ }
4047
+
4048
+
4049
+ /***/ }),
4050
+
4051
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/subset.js":
4052
+ /*!**********************************************************************************!*\
4053
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/subset.js ***!
4054
+ \**********************************************************************************/
4055
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4056
+
4057
+ const Range = __webpack_require__(/*! ../classes/range.js */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/classes/range.js")
4058
+ const { ANY } = __webpack_require__(/*! ../classes/comparator.js */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/classes/comparator.js")
4059
+ const satisfies = __webpack_require__(/*! ../functions/satisfies.js */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/satisfies.js")
4060
+ const compare = __webpack_require__(/*! ../functions/compare.js */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/functions/compare.js")
4061
+
4062
+ // Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:
4063
+ // - Every simple range `r1, r2, ...` is a subset of some `R1, R2, ...`
4064
+ //
4065
+ // Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:
4066
+ // - If c is only the ANY comparator
4067
+ // - If C is only the ANY comparator, return true
4068
+ // - Else return false
4069
+ // - Let EQ be the set of = comparators in c
4070
+ // - If EQ is more than one, return true (null set)
4071
+ // - Let GT be the highest > or >= comparator in c
4072
+ // - Let LT be the lowest < or <= comparator in c
4073
+ // - If GT and LT, and GT.semver > LT.semver, return true (null set)
4074
+ // - If EQ
4075
+ // - If GT, and EQ does not satisfy GT, return true (null set)
4076
+ // - If LT, and EQ does not satisfy LT, return true (null set)
4077
+ // - If EQ satisfies every C, return true
4078
+ // - Else return false
4079
+ // - If GT
4080
+ // - If GT is lower than any > or >= comp in C, return false
4081
+ // - If GT is >=, and GT.semver does not satisfy every C, return false
4082
+ // - If LT
4083
+ // - If LT.semver is greater than that of any > comp in C, return false
4084
+ // - If LT is <=, and LT.semver does not satisfy every C, return false
4085
+ // - If any C is a = range, and GT or LT are set, return false
4086
+ // - Else return true
4087
+
4088
+ const subset = (sub, dom, options) => {
4089
+ sub = new Range(sub, options)
4090
+ dom = new Range(dom, options)
4091
+ let sawNonNull = false
4092
+
4093
+ OUTER: for (const simpleSub of sub.set) {
4094
+ for (const simpleDom of dom.set) {
4095
+ const isSub = simpleSubset(simpleSub, simpleDom, options)
4096
+ sawNonNull = sawNonNull || isSub !== null
4097
+ if (isSub)
4098
+ continue OUTER
4099
+ }
4100
+ // the null set is a subset of everything, but null simple ranges in
4101
+ // a complex range should be ignored. so if we saw a non-null range,
4102
+ // then we know this isn't a subset, but if EVERY simple range was null,
4103
+ // then it is a subset.
4104
+ if (sawNonNull)
4105
+ return false
4106
+ }
4107
+ return true
4108
+ }
4109
+
4110
+ const simpleSubset = (sub, dom, options) => {
4111
+ if (sub.length === 1 && sub[0].semver === ANY)
4112
+ return dom.length === 1 && dom[0].semver === ANY
4113
+
4114
+ const eqSet = new Set()
4115
+ let gt, lt
4116
+ for (const c of sub) {
4117
+ if (c.operator === '>' || c.operator === '>=')
4118
+ gt = higherGT(gt, c, options)
4119
+ else if (c.operator === '<' || c.operator === '<=')
4120
+ lt = lowerLT(lt, c, options)
4121
+ else
4122
+ eqSet.add(c.semver)
4123
+ }
4124
+
4125
+ if (eqSet.size > 1)
4126
+ return null
4127
+
4128
+ let gtltComp
4129
+ if (gt && lt) {
4130
+ gtltComp = compare(gt.semver, lt.semver, options)
4131
+ if (gtltComp > 0)
4132
+ return null
4133
+ else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<='))
4134
+ return null
4135
+ }
4136
+
4137
+ // will iterate one or zero times
4138
+ for (const eq of eqSet) {
4139
+ if (gt && !satisfies(eq, String(gt), options))
4140
+ return null
4141
+
4142
+ if (lt && !satisfies(eq, String(lt), options))
4143
+ return null
4144
+
4145
+ for (const c of dom) {
4146
+ if (!satisfies(eq, String(c), options))
4147
+ return false
4148
+ }
4149
+ return true
4150
+ }
4151
+
4152
+ let higher, lower
4153
+ let hasDomLT, hasDomGT
4154
+ for (const c of dom) {
4155
+ hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>='
4156
+ hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<='
4157
+ if (gt) {
4158
+ if (c.operator === '>' || c.operator === '>=') {
4159
+ higher = higherGT(gt, c, options)
4160
+ if (higher === c)
4161
+ return false
4162
+ } else if (gt.operator === '>=' && !satisfies(gt.semver, String(c), options))
4163
+ return false
4164
+ }
4165
+ if (lt) {
4166
+ if (c.operator === '<' || c.operator === '<=') {
4167
+ lower = lowerLT(lt, c, options)
4168
+ if (lower === c)
4169
+ return false
4170
+ } else if (lt.operator === '<=' && !satisfies(lt.semver, String(c), options))
4171
+ return false
4172
+ }
4173
+ if (!c.operator && (lt || gt) && gtltComp !== 0)
4174
+ return false
4175
+ }
4176
+
4177
+ // if there was a < or >, and nothing in the dom, then must be false
4178
+ // UNLESS it was limited by another range in the other direction.
4179
+ // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0
4180
+ if (gt && hasDomLT && !lt && gtltComp !== 0)
4181
+ return false
4182
+
4183
+ if (lt && hasDomGT && !gt && gtltComp !== 0)
4184
+ return false
4185
+
4186
+ return true
4187
+ }
4188
+
4189
+ // >=1.2.3 is lower than >1.2.3
4190
+ const higherGT = (a, b, options) => {
4191
+ if (!a)
4192
+ return b
4193
+ const comp = compare(a.semver, b.semver, options)
4194
+ return comp > 0 ? a
4195
+ : comp < 0 ? b
4196
+ : b.operator === '>' && a.operator === '>=' ? b
4197
+ : a
4198
+ }
4199
+
4200
+ // <=1.2.3 is higher than <1.2.3
4201
+ const lowerLT = (a, b, options) => {
4202
+ if (!a)
4203
+ return b
4204
+ const comp = compare(a.semver, b.semver, options)
4205
+ return comp < 0 ? a
4206
+ : comp > 0 ? b
4207
+ : b.operator === '<' && a.operator === '<=' ? b
4208
+ : a
4209
+ }
4210
+
4211
+ module.exports = subset
4212
+
4213
+
4214
+ /***/ }),
4215
+
4216
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/to-comparators.js":
4217
+ /*!******************************************************************************************!*\
4218
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/to-comparators.js ***!
4219
+ \******************************************************************************************/
4220
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4221
+
4222
+ const Range = __webpack_require__(/*! ../classes/range */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/classes/range.js")
4223
+
4224
+ // Mostly just for testing and legacy API reasons
4225
+ const toComparators = (range, options) =>
4226
+ new Range(range, options).set
4227
+ .map(comp => comp.map(c => c.value).join(' ').trim().split(' '))
4228
+
4229
+ module.exports = toComparators
4230
+
4231
+
4232
+ /***/ }),
4233
+
4234
+ /***/ "../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/valid.js":
4235
+ /*!*********************************************************************************!*\
4236
+ !*** ../../node_modules/@openmrs/esm-utils/node_modules/semver/ranges/valid.js ***!
4237
+ \*********************************************************************************/
4238
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4239
+
4240
+ const Range = __webpack_require__(/*! ../classes/range */ "../../node_modules/@openmrs/esm-utils/node_modules/semver/classes/range.js")
4241
+ const validRange = (range, options) => {
4242
+ try {
4243
+ // Return '*' instead of '' so that truthiness works.
4244
+ // This will throw if it's invalid anyway
4245
+ return new Range(range, options).range || '*'
4246
+ } catch (er) {
4247
+ return null
4248
+ }
4249
+ }
4250
+ module.exports = validRange
4251
+
4252
+
4253
+ /***/ })
4254
+
4255
+ }]);
4256
+ //# sourceMappingURL=vendors-node_modules_openmrs_esm-framework_src_internal_ts.js.map