@bahmni/services 0.0.1-dev.212 → 0.0.1-dev.216
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.
- package/dist/documentUploadService/constants.d.ts +3 -0
- package/dist/documentUploadService/constants.d.ts.map +1 -0
- package/dist/documentUploadService/documentUploadService.d.ts +3 -0
- package/dist/documentUploadService/documentUploadService.d.ts.map +1 -0
- package/dist/documentUploadService/index.d.ts +3 -0
- package/dist/documentUploadService/index.d.ts.map +1 -0
- package/dist/documentUploadService/models.d.ts +10 -0
- package/dist/documentUploadService/models.d.ts.map +1 -0
- package/dist/documentUploadService/utils.d.ts +3 -0
- package/dist/documentUploadService/utils.d.ts.map +1 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1076 -1033
- package/dist/radiologyInvestigationService/constants.d.ts +2 -0
- package/dist/radiologyInvestigationService/constants.d.ts.map +1 -0
- package/dist/radiologyInvestigationService/index.d.ts +1 -1
- package/dist/radiologyInvestigationService/index.d.ts.map +1 -1
- package/dist/radiologyInvestigationService/radiologyInvestigationService.d.ts +1 -0
- package/dist/radiologyInvestigationService/radiologyInvestigationService.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { initReactI18next as pi } from "react-i18next";
|
|
2
|
-
import { useTranslation as
|
|
2
|
+
import { useTranslation as Mv } from "react-i18next";
|
|
3
3
|
import { useRef as bn, useCallback as Wr, useEffect as _n } from "react";
|
|
4
4
|
function aa(e, t) {
|
|
5
5
|
return function() {
|
|
6
6
|
return e.apply(t, arguments);
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
const { toString: hi } = Object.prototype, { getPrototypeOf:
|
|
9
|
+
const { toString: hi } = Object.prototype, { getPrototypeOf: Dn } = Object, { iterator: Dr, toStringTag: ia } = Symbol, Cr = /* @__PURE__ */ ((e) => (t) => {
|
|
10
10
|
const r = hi.call(t);
|
|
11
11
|
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
|
|
12
|
-
})(/* @__PURE__ */ Object.create(null)), $e = (e) => (e = e.toLowerCase(), (t) =>
|
|
12
|
+
})(/* @__PURE__ */ Object.create(null)), $e = (e) => (e = e.toLowerCase(), (t) => Cr(t) === e), Lr = (e) => (t) => typeof t === e, { isArray: ct } = Array, ot = Lr("undefined");
|
|
13
13
|
function Rt(e) {
|
|
14
14
|
return e !== null && !ot(e) && e.constructor !== null && !ot(e.constructor) && Ee(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
15
15
|
}
|
|
@@ -19,10 +19,10 @@ function mi(e) {
|
|
|
19
19
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && ca(e.buffer), t;
|
|
20
20
|
}
|
|
21
21
|
const gi = Lr("string"), Ee = Lr("function"), ua = Lr("number"), Tt = (e) => e !== null && typeof e == "object", yi = (e) => e === !0 || e === !1, vr = (e) => {
|
|
22
|
-
if (
|
|
22
|
+
if (Cr(e) !== "object")
|
|
23
23
|
return !1;
|
|
24
|
-
const t =
|
|
25
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(ia in e) && !(
|
|
24
|
+
const t = Dn(e);
|
|
25
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(ia in e) && !(Dr in e);
|
|
26
26
|
}, vi = (e) => {
|
|
27
27
|
if (!Tt(e) || Rt(e))
|
|
28
28
|
return !1;
|
|
@@ -37,14 +37,14 @@ function Oi() {
|
|
|
37
37
|
}
|
|
38
38
|
const Xn = Oi(), Zn = typeof Xn.FormData < "u" ? Xn.FormData : void 0, Ai = (e) => {
|
|
39
39
|
let t;
|
|
40
|
-
return e && (Zn && e instanceof Zn || Ee(e.append) && ((t =
|
|
40
|
+
return e && (Zn && e instanceof Zn || Ee(e.append) && ((t = Cr(e)) === "formdata" || // detect form-data instance
|
|
41
41
|
t === "object" && Ee(e.toString) && e.toString() === "[object FormData]"));
|
|
42
|
-
}, Ni = $e("URLSearchParams"), [$i, Pi, Ii,
|
|
42
|
+
}, Ni = $e("URLSearchParams"), [$i, Pi, Ii, Di] = [
|
|
43
43
|
"ReadableStream",
|
|
44
44
|
"Request",
|
|
45
45
|
"Response",
|
|
46
46
|
"Headers"
|
|
47
|
-
].map($e),
|
|
47
|
+
].map($e), Ci = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
48
48
|
function Ot(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
49
49
|
if (e === null || typeof e > "u")
|
|
50
50
|
return;
|
|
@@ -100,7 +100,7 @@ const Li = (e, t, r, { allOwnKeys: n } = {}) => (Ot(
|
|
|
100
100
|
});
|
|
101
101
|
},
|
|
102
102
|
{ allOwnKeys: n }
|
|
103
|
-
), e), ki = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e),
|
|
103
|
+
), e), ki = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Ui = (e, t, r, n) => {
|
|
104
104
|
e.prototype = Object.create(t.prototype, n), Object.defineProperty(e.prototype, "constructor", {
|
|
105
105
|
value: e,
|
|
106
106
|
writable: !0,
|
|
@@ -109,14 +109,14 @@ const Li = (e, t, r, { allOwnKeys: n } = {}) => (Ot(
|
|
|
109
109
|
}), Object.defineProperty(e, "super", {
|
|
110
110
|
value: t.prototype
|
|
111
111
|
}), r && Object.assign(e.prototype, r);
|
|
112
|
-
},
|
|
112
|
+
}, xi = (e, t, r, n) => {
|
|
113
113
|
let s, o, a;
|
|
114
114
|
const i = {};
|
|
115
115
|
if (t = t || {}, e == null) return t;
|
|
116
116
|
do {
|
|
117
117
|
for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
|
|
118
118
|
a = s[o], (!n || n(a, e, t)) && !i[a] && (t[a] = e[a], i[a] = !0);
|
|
119
|
-
e = r !== !1 &&
|
|
119
|
+
e = r !== !1 && Dn(e);
|
|
120
120
|
} while (e && (!r || r(e, t)) && e !== Object.prototype);
|
|
121
121
|
return t;
|
|
122
122
|
}, qi = (e, t, r) => {
|
|
@@ -132,8 +132,8 @@ const Li = (e, t, r, { allOwnKeys: n } = {}) => (Ot(
|
|
|
132
132
|
for (; t-- > 0; )
|
|
133
133
|
r[t] = e[t];
|
|
134
134
|
return r;
|
|
135
|
-
},
|
|
136
|
-
const n = (e && e[
|
|
135
|
+
}, Fi = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Dn(Uint8Array)), ji = (e, t) => {
|
|
136
|
+
const n = (e && e[Dr]).call(e);
|
|
137
137
|
let s;
|
|
138
138
|
for (; (s = n.next()) && !s.done; ) {
|
|
139
139
|
const o = s.value;
|
|
@@ -178,7 +178,7 @@ const Li = (e, t, r, { allOwnKeys: n } = {}) => (Ot(
|
|
|
178
178
|
}, Yi = () => {
|
|
179
179
|
}, Wi = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
180
180
|
function Ji(e) {
|
|
181
|
-
return !!(e && Ee(e.append) && e[ia] === "FormData" && e[
|
|
181
|
+
return !!(e && Ee(e.append) && e[ia] === "FormData" && e[Dr]);
|
|
182
182
|
}
|
|
183
183
|
const Qi = (e) => {
|
|
184
184
|
const t = new Array(10), r = (n, s) => {
|
|
@@ -207,7 +207,7 @@ const Qi = (e) => {
|
|
|
207
207
|
!1
|
|
208
208
|
), (s) => {
|
|
209
209
|
n.push(s), ze.postMessage(r, "*");
|
|
210
|
-
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(typeof setImmediate == "function", Ee(ze.postMessage)), ec = typeof queueMicrotask < "u" ? queueMicrotask.bind(ze) : typeof process < "u" && process.nextTick || pa, tc = (e) => e != null && Ee(e[
|
|
210
|
+
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(typeof setImmediate == "function", Ee(ze.postMessage)), ec = typeof queueMicrotask < "u" ? queueMicrotask.bind(ze) : typeof process < "u" && process.nextTick || pa, tc = (e) => e != null && Ee(e[Dr]), I = {
|
|
211
211
|
isArray: ct,
|
|
212
212
|
isArrayBuffer: ca,
|
|
213
213
|
isBuffer: Rt,
|
|
@@ -222,7 +222,7 @@ const Qi = (e) => {
|
|
|
222
222
|
isReadableStream: $i,
|
|
223
223
|
isRequest: Pi,
|
|
224
224
|
isResponse: Ii,
|
|
225
|
-
isHeaders:
|
|
225
|
+
isHeaders: Di,
|
|
226
226
|
isUndefined: ot,
|
|
227
227
|
isDate: wi,
|
|
228
228
|
isFile: Ei,
|
|
@@ -233,20 +233,20 @@ const Qi = (e) => {
|
|
|
233
233
|
isFunction: Ee,
|
|
234
234
|
isStream: Ti,
|
|
235
235
|
isURLSearchParams: Ni,
|
|
236
|
-
isTypedArray:
|
|
236
|
+
isTypedArray: Fi,
|
|
237
237
|
isFileList: Ri,
|
|
238
238
|
forEach: Ot,
|
|
239
239
|
merge: Sn,
|
|
240
240
|
extend: Li,
|
|
241
|
-
trim:
|
|
241
|
+
trim: Ci,
|
|
242
242
|
stripBOM: ki,
|
|
243
|
-
inherits:
|
|
244
|
-
toFlatObject:
|
|
245
|
-
kindOf:
|
|
243
|
+
inherits: Ui,
|
|
244
|
+
toFlatObject: xi,
|
|
245
|
+
kindOf: Cr,
|
|
246
246
|
kindOfTest: $e,
|
|
247
247
|
endsWith: qi,
|
|
248
248
|
toArray: Mi,
|
|
249
|
-
forEachEntry:
|
|
249
|
+
forEachEntry: ji,
|
|
250
250
|
matchAll: Vi,
|
|
251
251
|
isHTMLForm: Hi,
|
|
252
252
|
hasOwnProperty: es,
|
|
@@ -421,10 +421,10 @@ function ts(e) {
|
|
|
421
421
|
return t[n];
|
|
422
422
|
});
|
|
423
423
|
}
|
|
424
|
-
function
|
|
424
|
+
function Cn(e, t) {
|
|
425
425
|
this._pairs = [], e && kr(e, this, t);
|
|
426
426
|
}
|
|
427
|
-
const ga =
|
|
427
|
+
const ga = Cn.prototype;
|
|
428
428
|
ga.append = function(t, r) {
|
|
429
429
|
this._pairs.push([t, r]);
|
|
430
430
|
};
|
|
@@ -446,7 +446,7 @@ function ya(e, t, r) {
|
|
|
446
446
|
serialize: r
|
|
447
447
|
} : r, o = s && s.serialize;
|
|
448
448
|
let a;
|
|
449
|
-
if (o ? a = o(t, s) : a = I.isURLSearchParams(t) ? t.toString() : new
|
|
449
|
+
if (o ? a = o(t, s) : a = I.isURLSearchParams(t) ? t.toString() : new Cn(t, s).toString(n), a) {
|
|
450
450
|
const i = e.indexOf("#");
|
|
451
451
|
i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + a;
|
|
452
452
|
}
|
|
@@ -512,7 +512,7 @@ const Ln = {
|
|
|
512
512
|
forcedJSONParsing: !0,
|
|
513
513
|
clarifyTimeoutError: !1,
|
|
514
514
|
legacyInterceptorReqResOrdering: !0
|
|
515
|
-
}, ac = typeof URLSearchParams < "u" ? URLSearchParams :
|
|
515
|
+
}, ac = typeof URLSearchParams < "u" ? URLSearchParams : Cn, ic = typeof FormData < "u" ? FormData : null, cc = typeof Blob < "u" ? Blob : null, uc = {
|
|
516
516
|
isBrowser: !0,
|
|
517
517
|
classes: {
|
|
518
518
|
URLSearchParams: ac,
|
|
@@ -1010,12 +1010,12 @@ const Sr = (e, t, r = 3) => {
|
|
|
1010
1010
|
function Ic(e) {
|
|
1011
1011
|
return typeof e != "string" ? !1 : /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
1012
1012
|
}
|
|
1013
|
-
function
|
|
1013
|
+
function Dc(e, t) {
|
|
1014
1014
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
1015
1015
|
}
|
|
1016
1016
|
function _a(e, t, r) {
|
|
1017
1017
|
let n = !Ic(t);
|
|
1018
|
-
return e && (n || r == !1) ?
|
|
1018
|
+
return e && (n || r == !1) ? Dc(e, t) : t;
|
|
1019
1019
|
}
|
|
1020
1020
|
const as = (e) => e instanceof be ? { ...e } : e;
|
|
1021
1021
|
function Ke(e, t) {
|
|
@@ -1110,7 +1110,7 @@ const Sa = (e) => {
|
|
|
1110
1110
|
c && a.set(s, c);
|
|
1111
1111
|
}
|
|
1112
1112
|
return t;
|
|
1113
|
-
},
|
|
1113
|
+
}, Cc = typeof XMLHttpRequest < "u", Lc = Cc && function(e) {
|
|
1114
1114
|
return new Promise(function(r, n) {
|
|
1115
1115
|
const s = Sa(e);
|
|
1116
1116
|
let o = s.data;
|
|
@@ -1205,7 +1205,7 @@ const Sa = (e) => {
|
|
|
1205
1205
|
const { signal: c } = n;
|
|
1206
1206
|
return c.unsubscribe = () => I.asap(i), c;
|
|
1207
1207
|
}
|
|
1208
|
-
},
|
|
1208
|
+
}, Uc = function* (e, t) {
|
|
1209
1209
|
let r = e.byteLength;
|
|
1210
1210
|
if (r < t) {
|
|
1211
1211
|
yield e;
|
|
@@ -1214,9 +1214,9 @@ const Sa = (e) => {
|
|
|
1214
1214
|
let n = 0, s;
|
|
1215
1215
|
for (; n < r; )
|
|
1216
1216
|
s = n + t, yield e.slice(n, s), n = s;
|
|
1217
|
-
},
|
|
1217
|
+
}, xc = async function* (e, t) {
|
|
1218
1218
|
for await (const r of qc(e))
|
|
1219
|
-
yield*
|
|
1219
|
+
yield* Uc(r, t);
|
|
1220
1220
|
}, qc = async function* (e) {
|
|
1221
1221
|
if (e[Symbol.asyncIterator]) {
|
|
1222
1222
|
yield* e;
|
|
@@ -1234,7 +1234,7 @@ const Sa = (e) => {
|
|
|
1234
1234
|
await t.cancel();
|
|
1235
1235
|
}
|
|
1236
1236
|
}, is = (e, t, r, n) => {
|
|
1237
|
-
const s =
|
|
1237
|
+
const s = xc(e, t);
|
|
1238
1238
|
let o = 0, a, i = (c) => {
|
|
1239
1239
|
a || (a = !0, n && n(c));
|
|
1240
1240
|
};
|
|
@@ -1274,7 +1274,7 @@ const Sa = (e) => {
|
|
|
1274
1274
|
} catch {
|
|
1275
1275
|
return !1;
|
|
1276
1276
|
}
|
|
1277
|
-
},
|
|
1277
|
+
}, Fc = (e) => {
|
|
1278
1278
|
e = I.merge.call(
|
|
1279
1279
|
{
|
|
1280
1280
|
skipUndefined: !0
|
|
@@ -1344,12 +1344,12 @@ const Sa = (e) => {
|
|
|
1344
1344
|
fetchOptions: M
|
|
1345
1345
|
} = Sa(y), q = t || fetch;
|
|
1346
1346
|
R = R ? (R + "").toLowerCase() : "text";
|
|
1347
|
-
let
|
|
1347
|
+
let F = kc(
|
|
1348
1348
|
[u, h && h.toAbortSignal()],
|
|
1349
1349
|
E
|
|
1350
1350
|
), H = null;
|
|
1351
|
-
const G =
|
|
1352
|
-
|
|
1351
|
+
const G = F && F.unsubscribe && (() => {
|
|
1352
|
+
F.unsubscribe();
|
|
1353
1353
|
});
|
|
1354
1354
|
let re;
|
|
1355
1355
|
try {
|
|
@@ -1358,8 +1358,8 @@ const Sa = (e) => {
|
|
|
1358
1358
|
method: "POST",
|
|
1359
1359
|
body: p,
|
|
1360
1360
|
duplex: "half"
|
|
1361
|
-
}),
|
|
1362
|
-
if (I.isFormData(p) && (
|
|
1361
|
+
}), C;
|
|
1362
|
+
if (I.isFormData(p) && (C = A.headers.get("content-type")) && N.setContentType(C), A.body) {
|
|
1363
1363
|
const [P, w] = ss(
|
|
1364
1364
|
re,
|
|
1365
1365
|
Sr(os(b))
|
|
@@ -1370,7 +1370,7 @@ const Sa = (e) => {
|
|
|
1370
1370
|
I.isString(k) || (k = k ? "include" : "omit");
|
|
1371
1371
|
const ne = o && "credentials" in r.prototype, fe = {
|
|
1372
1372
|
...M,
|
|
1373
|
-
signal:
|
|
1373
|
+
signal: F,
|
|
1374
1374
|
method: f.toUpperCase(),
|
|
1375
1375
|
headers: N.normalize().toJSON(),
|
|
1376
1376
|
body: p,
|
|
@@ -1385,8 +1385,8 @@ const Sa = (e) => {
|
|
|
1385
1385
|
["status", "statusText", "headers"].forEach((T) => {
|
|
1386
1386
|
A[T] = J[T];
|
|
1387
1387
|
});
|
|
1388
|
-
const
|
|
1389
|
-
|
|
1388
|
+
const C = I.toFiniteNumber(J.headers.get("content-length")), [P, w] = _ && ss(
|
|
1389
|
+
C,
|
|
1390
1390
|
Sr(os(_), !0)
|
|
1391
1391
|
) || [];
|
|
1392
1392
|
J = new n(
|
|
@@ -1397,13 +1397,13 @@ const Sa = (e) => {
|
|
|
1397
1397
|
);
|
|
1398
1398
|
}
|
|
1399
1399
|
R = R || "text";
|
|
1400
|
-
let
|
|
1400
|
+
let U = await m[I.findKey(m, R) || "text"](
|
|
1401
1401
|
J,
|
|
1402
1402
|
y
|
|
1403
1403
|
);
|
|
1404
|
-
return !ie && G && G(), await new Promise((A,
|
|
1405
|
-
ba(A,
|
|
1406
|
-
data:
|
|
1404
|
+
return !ie && G && G(), await new Promise((A, C) => {
|
|
1405
|
+
ba(A, C, {
|
|
1406
|
+
data: U,
|
|
1407
1407
|
headers: be.from(J.headers),
|
|
1408
1408
|
status: J.status,
|
|
1409
1409
|
statusText: J.statusText,
|
|
@@ -1426,23 +1426,23 @@ const Sa = (e) => {
|
|
|
1426
1426
|
) : K.from(ne, ne && ne.code, y, H, ne && ne.response);
|
|
1427
1427
|
}
|
|
1428
1428
|
};
|
|
1429
|
-
},
|
|
1429
|
+
}, jc = /* @__PURE__ */ new Map(), Ra = (e) => {
|
|
1430
1430
|
let t = e && e.env || {};
|
|
1431
1431
|
const { fetch: r, Request: n, Response: s } = t, o = [n, s, r];
|
|
1432
|
-
let a = o.length, i = a, c, d, l =
|
|
1432
|
+
let a = o.length, i = a, c, d, l = jc;
|
|
1433
1433
|
for (; i--; )
|
|
1434
|
-
c = o[i], d = l.get(c), d === void 0 && l.set(c, d = i ? /* @__PURE__ */ new Map() :
|
|
1434
|
+
c = o[i], d = l.get(c), d === void 0 && l.set(c, d = i ? /* @__PURE__ */ new Map() : Fc(t)), l = d;
|
|
1435
1435
|
return d;
|
|
1436
1436
|
};
|
|
1437
1437
|
Ra();
|
|
1438
|
-
const
|
|
1438
|
+
const Un = {
|
|
1439
1439
|
http: rc,
|
|
1440
1440
|
xhr: Lc,
|
|
1441
1441
|
fetch: {
|
|
1442
1442
|
get: Ra
|
|
1443
1443
|
}
|
|
1444
1444
|
};
|
|
1445
|
-
I.forEach(
|
|
1445
|
+
I.forEach(Un, (e, t) => {
|
|
1446
1446
|
if (e) {
|
|
1447
1447
|
try {
|
|
1448
1448
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -1460,7 +1460,7 @@ function Hc(e, t) {
|
|
|
1460
1460
|
for (let a = 0; a < r; a++) {
|
|
1461
1461
|
n = e[a];
|
|
1462
1462
|
let i;
|
|
1463
|
-
if (s = n, !Vc(n) && (s =
|
|
1463
|
+
if (s = n, !Vc(n) && (s = Un[(i = String(n)).toLowerCase()], s === void 0))
|
|
1464
1464
|
throw new K(`Unknown adapter '${i}'`);
|
|
1465
1465
|
if (s && (I.isFunction(s) || (s = s.get(t))))
|
|
1466
1466
|
break;
|
|
@@ -1490,7 +1490,7 @@ const Ta = {
|
|
|
1490
1490
|
* Exposes all known adapters
|
|
1491
1491
|
* @type {Object<string, Function|Object>}
|
|
1492
1492
|
*/
|
|
1493
|
-
adapters:
|
|
1493
|
+
adapters: Un
|
|
1494
1494
|
};
|
|
1495
1495
|
function Zr(e) {
|
|
1496
1496
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
@@ -1510,14 +1510,14 @@ function ps(e) {
|
|
|
1510
1510
|
}
|
|
1511
1511
|
);
|
|
1512
1512
|
}
|
|
1513
|
-
const Oa = "1.15.0",
|
|
1513
|
+
const Oa = "1.15.0", Ur = {};
|
|
1514
1514
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1515
|
-
|
|
1515
|
+
Ur[e] = function(n) {
|
|
1516
1516
|
return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1517
1517
|
};
|
|
1518
1518
|
});
|
|
1519
1519
|
const hs = {};
|
|
1520
|
-
|
|
1520
|
+
Ur.transitional = function(t, r, n) {
|
|
1521
1521
|
function s(o, a) {
|
|
1522
1522
|
return "[Axios v" + Oa + "] Transitional option '" + o + "'" + a + (n ? ". " + n : "");
|
|
1523
1523
|
}
|
|
@@ -1535,7 +1535,7 @@ xr.transitional = function(t, r, n) {
|
|
|
1535
1535
|
)), t ? t(o, a, i) : !0;
|
|
1536
1536
|
};
|
|
1537
1537
|
};
|
|
1538
|
-
|
|
1538
|
+
Ur.spelling = function(t) {
|
|
1539
1539
|
return (r, n) => (console.warn(`${n} is likely a misspelling of ${t}`), !0);
|
|
1540
1540
|
};
|
|
1541
1541
|
function Bc(e, t, r) {
|
|
@@ -1560,7 +1560,7 @@ function Bc(e, t, r) {
|
|
|
1560
1560
|
}
|
|
1561
1561
|
const Er = {
|
|
1562
1562
|
assertOptions: Bc,
|
|
1563
|
-
validators:
|
|
1563
|
+
validators: Ur
|
|
1564
1564
|
}, Re = Er.validators;
|
|
1565
1565
|
let Ge = class {
|
|
1566
1566
|
constructor(t) {
|
|
@@ -1896,22 +1896,22 @@ ue.getAdapter = Ta.getAdapter;
|
|
|
1896
1896
|
ue.HttpStatusCode = On;
|
|
1897
1897
|
ue.default = ue;
|
|
1898
1898
|
const {
|
|
1899
|
-
Axios:
|
|
1900
|
-
AxiosError:
|
|
1901
|
-
CanceledError:
|
|
1902
|
-
isCancel:
|
|
1903
|
-
CancelToken:
|
|
1904
|
-
VERSION:
|
|
1905
|
-
all:
|
|
1906
|
-
Cancel:
|
|
1907
|
-
isAxiosError:
|
|
1908
|
-
spread:
|
|
1909
|
-
toFormData:
|
|
1910
|
-
AxiosHeaders:
|
|
1911
|
-
HttpStatusCode:
|
|
1912
|
-
formToJSON:
|
|
1913
|
-
getAdapter:
|
|
1914
|
-
mergeConfig:
|
|
1899
|
+
Axios: jm,
|
|
1900
|
+
AxiosError: Vm,
|
|
1901
|
+
CanceledError: Hm,
|
|
1902
|
+
isCancel: Bm,
|
|
1903
|
+
CancelToken: zm,
|
|
1904
|
+
VERSION: Gm,
|
|
1905
|
+
all: Km,
|
|
1906
|
+
Cancel: Ym,
|
|
1907
|
+
isAxiosError: Wm,
|
|
1908
|
+
spread: Jm,
|
|
1909
|
+
toFormData: Qm,
|
|
1910
|
+
AxiosHeaders: Xm,
|
|
1911
|
+
HttpStatusCode: Zm,
|
|
1912
|
+
formToJSON: eg,
|
|
1913
|
+
getAdapter: tg,
|
|
1914
|
+
mergeConfig: rg
|
|
1915
1915
|
} = ue, Yc = (e) => typeof e == "object" && e !== null && "resourceType" in e && e.resourceType === "OperationOutcome", Wc = (e) => {
|
|
1916
1916
|
if (!e.issue || !Array.isArray(e.issue))
|
|
1917
1917
|
return null;
|
|
@@ -1973,7 +1973,7 @@ var st = function() {
|
|
|
1973
1973
|
return e;
|
|
1974
1974
|
}, st.apply(this, arguments);
|
|
1975
1975
|
}, Qc = "~", Xc = "~~";
|
|
1976
|
-
function
|
|
1976
|
+
function xn(e, t) {
|
|
1977
1977
|
for (var r = {}, n = {}, s = e.split(Xc), o = !1, a = 0; s.length > a; a++) {
|
|
1978
1978
|
for (var i = s[a].split(Qc), c = 0; c < i.length; c += 2) {
|
|
1979
1979
|
var d = i[c], l = i[c + 1], m = "&" + d + ";";
|
|
@@ -1988,9 +1988,9 @@ var en = {
|
|
|
1988
1988
|
html4: /∉|&(?:nbsp|iexcl|cent|pound|curren|yen|brvbar|sect|uml|copy|ordf|laquo|not|shy|reg|macr|deg|plusmn|sup2|sup3|acute|micro|para|middot|cedil|sup1|ordm|raquo|frac14|frac12|frac34|iquest|Agrave|Aacute|Acirc|Atilde|Auml|Aring|AElig|Ccedil|Egrave|Eacute|Ecirc|Euml|Igrave|Iacute|Icirc|Iuml|ETH|Ntilde|Ograve|Oacute|Ocirc|Otilde|Ouml|times|Oslash|Ugrave|Uacute|Ucirc|Uuml|Yacute|THORN|szlig|agrave|aacute|acirc|atilde|auml|aring|aelig|ccedil|egrave|eacute|ecirc|euml|igrave|iacute|icirc|iuml|eth|ntilde|ograve|oacute|ocirc|otilde|ouml|divide|oslash|ugrave|uacute|ucirc|uuml|yacute|thorn|yuml|quot|amp|lt|gt|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g,
|
|
1989
1989
|
html5: /·|℗|⋇|⪧|⩺|⋗|⦕|⩼|⪆|⥸|⋗|⋛|⪌|≷|≳|⪦|⩹|⋖|⋋|⋉|⥶|⩻|⦖|◃|⊴|◂|∉|⋹̸|⋵̸|∉|⋷|⋶|∌|∌|⋾|⋽|∥|⊠|⨱|⨰|&(?:AElig|AMP|Aacute|Acirc|Agrave|Aring|Atilde|Auml|COPY|Ccedil|ETH|Eacute|Ecirc|Egrave|Euml|GT|Iacute|Icirc|Igrave|Iuml|LT|Ntilde|Oacute|Ocirc|Ograve|Oslash|Otilde|Ouml|QUOT|REG|THORN|Uacute|Ucirc|Ugrave|Uuml|Yacute|aacute|acirc|acute|aelig|agrave|amp|aring|atilde|auml|brvbar|ccedil|cedil|cent|copy|curren|deg|divide|eacute|ecirc|egrave|eth|euml|frac12|frac14|frac34|gt|iacute|icirc|iexcl|igrave|iquest|iuml|laquo|lt|macr|micro|middot|nbsp|not|ntilde|oacute|ocirc|ograve|ordf|ordm|oslash|otilde|ouml|para|plusmn|pound|quot|raquo|reg|sect|shy|sup1|sup2|sup3|szlig|thorn|times|uacute|ucirc|ugrave|uml|uuml|yacute|yen|yuml|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g
|
|
1990
1990
|
}, at = {};
|
|
1991
|
-
at.xml =
|
|
1992
|
-
at.html4 =
|
|
1993
|
-
at.html5 = Un('Abreve~Ă~Acy~А~Afr~𝔄~Amacr~Ā~And~⩓~Aogon~Ą~Aopf~𝔸~ApplyFunction~~Ascr~𝒜~Assign~≔~Backslash~∖~Barv~⫧~Barwed~⌆~Bcy~Б~Because~∵~Bernoullis~ℬ~Bfr~𝔅~Bopf~𝔹~Breve~˘~Bscr~ℬ~Bumpeq~≎~CHcy~Ч~Cacute~Ć~Cap~⋒~CapitalDifferentialD~ⅅ~Cayleys~ℭ~Ccaron~Č~Ccirc~Ĉ~Cconint~∰~Cdot~Ċ~Cedilla~¸~CenterDot~·~Cfr~ℭ~CircleDot~⊙~CircleMinus~⊖~CirclePlus~⊕~CircleTimes~⊗~ClockwiseContourIntegral~∲~CloseCurlyDoubleQuote~”~CloseCurlyQuote~’~Colon~∷~Colone~⩴~Congruent~≡~Conint~∯~ContourIntegral~∮~Copf~ℂ~Coproduct~∐~CounterClockwiseContourIntegral~∳~Cross~⨯~Cscr~𝒞~Cup~⋓~CupCap~≍~DD~ⅅ~DDotrahd~⤑~DJcy~Ђ~DScy~Ѕ~DZcy~Џ~Darr~↡~Dashv~⫤~Dcaron~Ď~Dcy~Д~Del~∇~Dfr~𝔇~DiacriticalAcute~´~DiacriticalDot~˙~DiacriticalDoubleAcute~˝~DiacriticalGrave~`~DiacriticalTilde~˜~Diamond~⋄~DifferentialD~ⅆ~Dopf~𝔻~Dot~¨~DotDot~⃜~DotEqual~≐~DoubleContourIntegral~∯~DoubleDot~¨~DoubleDownArrow~⇓~DoubleLeftArrow~⇐~DoubleLeftRightArrow~⇔~DoubleLeftTee~⫤~DoubleLongLeftArrow~⟸~DoubleLongLeftRightArrow~⟺~DoubleLongRightArrow~⟹~DoubleRightArrow~⇒~DoubleRightTee~⊨~DoubleUpArrow~⇑~DoubleUpDownArrow~⇕~DoubleVerticalBar~∥~DownArrow~↓~DownArrowBar~⤓~DownArrowUpArrow~⇵~DownBreve~̑~DownLeftRightVector~⥐~DownLeftTeeVector~⥞~DownLeftVector~↽~DownLeftVectorBar~⥖~DownRightTeeVector~⥟~DownRightVector~⇁~DownRightVectorBar~⥗~DownTee~⊤~DownTeeArrow~↧~Downarrow~⇓~Dscr~𝒟~Dstrok~Đ~ENG~Ŋ~Ecaron~Ě~Ecy~Э~Edot~Ė~Efr~𝔈~Element~∈~Emacr~Ē~EmptySmallSquare~◻~EmptyVerySmallSquare~▫~Eogon~Ę~Eopf~𝔼~Equal~⩵~EqualTilde~≂~Equilibrium~⇌~Escr~ℰ~Esim~⩳~Exists~∃~ExponentialE~ⅇ~Fcy~Ф~Ffr~𝔉~FilledSmallSquare~◼~FilledVerySmallSquare~▪~Fopf~𝔽~ForAll~∀~Fouriertrf~ℱ~Fscr~ℱ~GJcy~Ѓ~Gammad~Ϝ~Gbreve~Ğ~Gcedil~Ģ~Gcirc~Ĝ~Gcy~Г~Gdot~Ġ~Gfr~𝔊~Gg~⋙~Gopf~𝔾~GreaterEqual~≥~GreaterEqualLess~⋛~GreaterFullEqual~≧~GreaterGreater~⪢~GreaterLess~≷~GreaterSlantEqual~⩾~GreaterTilde~≳~Gscr~𝒢~Gt~≫~HARDcy~Ъ~Hacek~ˇ~Hat~^~Hcirc~Ĥ~Hfr~ℌ~HilbertSpace~ℋ~Hopf~ℍ~HorizontalLine~─~Hscr~ℋ~Hstrok~Ħ~HumpDownHump~≎~HumpEqual~≏~IEcy~Е~IJlig~IJ~IOcy~Ё~Icy~И~Idot~İ~Ifr~ℑ~Im~ℑ~Imacr~Ī~ImaginaryI~ⅈ~Implies~⇒~Int~∬~Integral~∫~Intersection~⋂~InvisibleComma~~InvisibleTimes~~Iogon~Į~Iopf~𝕀~Iscr~ℐ~Itilde~Ĩ~Iukcy~І~Jcirc~Ĵ~Jcy~Й~Jfr~𝔍~Jopf~𝕁~Jscr~𝒥~Jsercy~Ј~Jukcy~Є~KHcy~Х~KJcy~Ќ~Kcedil~Ķ~Kcy~К~Kfr~𝔎~Kopf~𝕂~Kscr~𝒦~LJcy~Љ~Lacute~Ĺ~Lang~⟪~Laplacetrf~ℒ~Larr~↞~Lcaron~Ľ~Lcedil~Ļ~Lcy~Л~LeftAngleBracket~⟨~LeftArrow~←~LeftArrowBar~⇤~LeftArrowRightArrow~⇆~LeftCeiling~⌈~LeftDoubleBracket~⟦~LeftDownTeeVector~⥡~LeftDownVector~⇃~LeftDownVectorBar~⥙~LeftFloor~⌊~LeftRightArrow~↔~LeftRightVector~⥎~LeftTee~⊣~LeftTeeArrow~↤~LeftTeeVector~⥚~LeftTriangle~⊲~LeftTriangleBar~⧏~LeftTriangleEqual~⊴~LeftUpDownVector~⥑~LeftUpTeeVector~⥠~LeftUpVector~↿~LeftUpVectorBar~⥘~LeftVector~↼~LeftVectorBar~⥒~Leftarrow~⇐~Leftrightarrow~⇔~LessEqualGreater~⋚~LessFullEqual~≦~LessGreater~≶~LessLess~⪡~LessSlantEqual~⩽~LessTilde~≲~Lfr~𝔏~Ll~⋘~Lleftarrow~⇚~Lmidot~Ŀ~LongLeftArrow~⟵~LongLeftRightArrow~⟷~LongRightArrow~⟶~Longleftarrow~⟸~Longleftrightarrow~⟺~Longrightarrow~⟹~Lopf~𝕃~LowerLeftArrow~↙~LowerRightArrow~↘~Lscr~ℒ~Lsh~↰~Lstrok~Ł~Lt~≪~Map~⤅~Mcy~М~MediumSpace~ ~Mellintrf~ℳ~Mfr~𝔐~MinusPlus~∓~Mopf~𝕄~Mscr~ℳ~NJcy~Њ~Nacute~Ń~Ncaron~Ň~Ncedil~Ņ~Ncy~Н~NegativeMediumSpace~~NegativeThickSpace~~NegativeThinSpace~~NegativeVeryThinSpace~~NestedGreaterGreater~≫~NestedLessLess~≪~NewLine~\n~Nfr~𝔑~NoBreak~~NonBreakingSpace~ ~Nopf~ℕ~Not~⫬~NotCongruent~≢~NotCupCap~≭~NotDoubleVerticalBar~∦~NotElement~∉~NotEqual~≠~NotEqualTilde~≂̸~NotExists~∄~NotGreater~≯~NotGreaterEqual~≱~NotGreaterFullEqual~≧̸~NotGreaterGreater~≫̸~NotGreaterLess~≹~NotGreaterSlantEqual~⩾̸~NotGreaterTilde~≵~NotHumpDownHump~≎̸~NotHumpEqual~≏̸~NotLeftTriangle~⋪~NotLeftTriangleBar~⧏̸~NotLeftTriangleEqual~⋬~NotLess~≮~NotLessEqual~≰~NotLessGreater~≸~NotLessLess~≪̸~NotLessSlantEqual~⩽̸~NotLessTilde~≴~NotNestedGreaterGreater~⪢̸~NotNestedLessLess~⪡̸~NotPrecedes~⊀~NotPrecedesEqual~⪯̸~NotPrecedesSlantEqual~⋠~NotReverseElement~∌~NotRightTriangle~⋫~NotRightTriangleBar~⧐̸~NotRightTriangleEqual~⋭~NotSquareSubset~⊏̸~NotSquareSubsetEqual~⋢~NotSquareSuperset~⊐̸~NotSquareSupersetEqual~⋣~NotSubset~⊂⃒~NotSubsetEqual~⊈~NotSucceeds~⊁~NotSucceedsEqual~⪰̸~NotSucceedsSlantEqual~⋡~NotSucceedsTilde~≿̸~NotSuperset~⊃⃒~NotSupersetEqual~⊉~NotTilde~≁~NotTildeEqual~≄~NotTildeFullEqual~≇~NotTildeTilde~≉~NotVerticalBar~∤~Nscr~𝒩~Ocy~О~Odblac~Ő~Ofr~𝔒~Omacr~Ō~Oopf~𝕆~OpenCurlyDoubleQuote~“~OpenCurlyQuote~‘~Or~⩔~Oscr~𝒪~Otimes~⨷~OverBar~‾~OverBrace~⏞~OverBracket~⎴~OverParenthesis~⏜~PartialD~∂~Pcy~П~Pfr~𝔓~PlusMinus~±~Poincareplane~ℌ~Popf~ℙ~Pr~⪻~Precedes~≺~PrecedesEqual~⪯~PrecedesSlantEqual~≼~PrecedesTilde~≾~Product~∏~Proportion~∷~Proportional~∝~Pscr~𝒫~Qfr~𝔔~Qopf~ℚ~Qscr~𝒬~RBarr~⤐~Racute~Ŕ~Rang~⟫~Rarr~↠~Rarrtl~⤖~Rcaron~Ř~Rcedil~Ŗ~Rcy~Р~Re~ℜ~ReverseElement~∋~ReverseEquilibrium~⇋~ReverseUpEquilibrium~⥯~Rfr~ℜ~RightAngleBracket~⟩~RightArrow~→~RightArrowBar~⇥~RightArrowLeftArrow~⇄~RightCeiling~⌉~RightDoubleBracket~⟧~RightDownTeeVector~⥝~RightDownVector~⇂~RightDownVectorBar~⥕~RightFloor~⌋~RightTee~⊢~RightTeeArrow~↦~RightTeeVector~⥛~RightTriangle~⊳~RightTriangleBar~⧐~RightTriangleEqual~⊵~RightUpDownVector~⥏~RightUpTeeVector~⥜~RightUpVector~↾~RightUpVectorBar~⥔~RightVector~⇀~RightVectorBar~⥓~Rightarrow~⇒~Ropf~ℝ~RoundImplies~⥰~Rrightarrow~⇛~Rscr~ℛ~Rsh~↱~RuleDelayed~⧴~SHCHcy~Щ~SHcy~Ш~SOFTcy~Ь~Sacute~Ś~Sc~⪼~Scedil~Ş~Scirc~Ŝ~Scy~С~Sfr~𝔖~ShortDownArrow~↓~ShortLeftArrow~←~ShortRightArrow~→~ShortUpArrow~↑~SmallCircle~∘~Sopf~𝕊~Sqrt~√~Square~□~SquareIntersection~⊓~SquareSubset~⊏~SquareSubsetEqual~⊑~SquareSuperset~⊐~SquareSupersetEqual~⊒~SquareUnion~⊔~Sscr~𝒮~Star~⋆~Sub~⋐~Subset~⋐~SubsetEqual~⊆~Succeeds~≻~SucceedsEqual~⪰~SucceedsSlantEqual~≽~SucceedsTilde~≿~SuchThat~∋~Sum~∑~Sup~⋑~Superset~⊃~SupersetEqual~⊇~Supset~⋑~TRADE~™~TSHcy~Ћ~TScy~Ц~Tab~ ~Tcaron~Ť~Tcedil~Ţ~Tcy~Т~Tfr~𝔗~Therefore~∴~ThickSpace~ ~ThinSpace~ ~Tilde~∼~TildeEqual~≃~TildeFullEqual~≅~TildeTilde~≈~Topf~𝕋~TripleDot~⃛~Tscr~𝒯~Tstrok~Ŧ~Uarr~↟~Uarrocir~⥉~Ubrcy~Ў~Ubreve~Ŭ~Ucy~У~Udblac~Ű~Ufr~𝔘~Umacr~Ū~UnderBar~_~UnderBrace~⏟~UnderBracket~⎵~UnderParenthesis~⏝~Union~⋃~UnionPlus~⊎~Uogon~Ų~Uopf~𝕌~UpArrow~↑~UpArrowBar~⤒~UpArrowDownArrow~⇅~UpDownArrow~↕~UpEquilibrium~⥮~UpTee~⊥~UpTeeArrow~↥~Uparrow~⇑~Updownarrow~⇕~UpperLeftArrow~↖~UpperRightArrow~↗~Upsi~ϒ~Uring~Ů~Uscr~𝒰~Utilde~Ũ~VDash~⊫~Vbar~⫫~Vcy~В~Vdash~⊩~Vdashl~⫦~Vee~⋁~Verbar~‖~Vert~‖~VerticalBar~∣~VerticalLine~|~VerticalSeparator~❘~VerticalTilde~≀~VeryThinSpace~ ~Vfr~𝔙~Vopf~𝕍~Vscr~𝒱~Vvdash~⊪~Wcirc~Ŵ~Wedge~⋀~Wfr~𝔚~Wopf~𝕎~Wscr~𝒲~Xfr~𝔛~Xopf~𝕏~Xscr~𝒳~YAcy~Я~YIcy~Ї~YUcy~Ю~Ycirc~Ŷ~Ycy~Ы~Yfr~𝔜~Yopf~𝕐~Yscr~𝒴~ZHcy~Ж~Zacute~Ź~Zcaron~Ž~Zcy~З~Zdot~Ż~ZeroWidthSpace~~Zfr~ℨ~Zopf~ℤ~Zscr~𝒵~abreve~ă~ac~∾~acE~∾̳~acd~∿~acy~а~af~~afr~𝔞~aleph~ℵ~amacr~ā~amalg~⨿~andand~⩕~andd~⩜~andslope~⩘~andv~⩚~ange~⦤~angle~∠~angmsd~∡~angmsdaa~⦨~angmsdab~⦩~angmsdac~⦪~angmsdad~⦫~angmsdae~⦬~angmsdaf~⦭~angmsdag~⦮~angmsdah~⦯~angrt~∟~angrtvb~⊾~angrtvbd~⦝~angsph~∢~angst~Å~angzarr~⍼~aogon~ą~aopf~𝕒~ap~≈~apE~⩰~apacir~⩯~ape~≊~apid~≋~approx~≈~approxeq~≊~ascr~𝒶~ast~*~asympeq~≍~awconint~∳~awint~⨑~bNot~⫭~backcong~≌~backepsilon~϶~backprime~‵~backsim~∽~backsimeq~⋍~barvee~⊽~barwed~⌅~barwedge~⌅~bbrk~⎵~bbrktbrk~⎶~bcong~≌~bcy~б~becaus~∵~because~∵~bemptyv~⦰~bepsi~϶~bernou~ℬ~beth~ℶ~between~≬~bfr~𝔟~bigcap~⋂~bigcirc~◯~bigcup~⋃~bigodot~⨀~bigoplus~⨁~bigotimes~⨂~bigsqcup~⨆~bigstar~★~bigtriangledown~▽~bigtriangleup~△~biguplus~⨄~bigvee~⋁~bigwedge~⋀~bkarow~⤍~blacklozenge~⧫~blacksquare~▪~blacktriangle~▴~blacktriangledown~▾~blacktriangleleft~◂~blacktriangleright~▸~blank~␣~blk12~▒~blk14~░~blk34~▓~block~█~bne~=⃥~bnequiv~≡⃥~bnot~⌐~bopf~𝕓~bot~⊥~bottom~⊥~bowtie~⋈~boxDL~╗~boxDR~╔~boxDl~╖~boxDr~╓~boxH~═~boxHD~╦~boxHU~╩~boxHd~╤~boxHu~╧~boxUL~╝~boxUR~╚~boxUl~╜~boxUr~╙~boxV~║~boxVH~╬~boxVL~╣~boxVR~╠~boxVh~╫~boxVl~╢~boxVr~╟~boxbox~⧉~boxdL~╕~boxdR~╒~boxdl~┐~boxdr~┌~boxh~─~boxhD~╥~boxhU~╨~boxhd~┬~boxhu~┴~boxminus~⊟~boxplus~⊞~boxtimes~⊠~boxuL~╛~boxuR~╘~boxul~┘~boxur~└~boxv~│~boxvH~╪~boxvL~╡~boxvR~╞~boxvh~┼~boxvl~┤~boxvr~├~bprime~‵~breve~˘~bscr~𝒷~bsemi~⁏~bsim~∽~bsime~⋍~bsol~\\~bsolb~⧅~bsolhsub~⟈~bullet~•~bump~≎~bumpE~⪮~bumpe~≏~bumpeq~≏~cacute~ć~capand~⩄~capbrcup~⩉~capcap~⩋~capcup~⩇~capdot~⩀~caps~∩︀~caret~⁁~caron~ˇ~ccaps~⩍~ccaron~č~ccirc~ĉ~ccups~⩌~ccupssm~⩐~cdot~ċ~cemptyv~⦲~centerdot~·~cfr~𝔠~chcy~ч~check~✓~checkmark~✓~cir~○~cirE~⧃~circeq~≗~circlearrowleft~↺~circlearrowright~↻~circledR~®~circledS~Ⓢ~circledast~⊛~circledcirc~⊚~circleddash~⊝~cire~≗~cirfnint~⨐~cirmid~⫯~cirscir~⧂~clubsuit~♣~colon~:~colone~≔~coloneq~≔~comma~,~commat~@~comp~∁~compfn~∘~complement~∁~complexes~ℂ~congdot~⩭~conint~∮~copf~𝕔~coprod~∐~copysr~℗~cross~✗~cscr~𝒸~csub~⫏~csube~⫑~csup~⫐~csupe~⫒~ctdot~⋯~cudarrl~⤸~cudarrr~⤵~cuepr~⋞~cuesc~⋟~cularr~↶~cularrp~⤽~cupbrcap~⩈~cupcap~⩆~cupcup~⩊~cupdot~⊍~cupor~⩅~cups~∪︀~curarr~↷~curarrm~⤼~curlyeqprec~⋞~curlyeqsucc~⋟~curlyvee~⋎~curlywedge~⋏~curvearrowleft~↶~curvearrowright~↷~cuvee~⋎~cuwed~⋏~cwconint~∲~cwint~∱~cylcty~⌭~dHar~⥥~daleth~ℸ~dash~‐~dashv~⊣~dbkarow~⤏~dblac~˝~dcaron~ď~dcy~д~dd~ⅆ~ddagger~‡~ddarr~⇊~ddotseq~⩷~demptyv~⦱~dfisht~⥿~dfr~𝔡~dharl~⇃~dharr~⇂~diam~⋄~diamond~⋄~diamondsuit~♦~die~¨~digamma~ϝ~disin~⋲~div~÷~divideontimes~⋇~divonx~⋇~djcy~ђ~dlcorn~⌞~dlcrop~⌍~dollar~$~dopf~𝕕~dot~˙~doteq~≐~doteqdot~≑~dotminus~∸~dotplus~∔~dotsquare~⊡~doublebarwedge~⌆~downarrow~↓~downdownarrows~⇊~downharpoonleft~⇃~downharpoonright~⇂~drbkarow~⤐~drcorn~⌟~drcrop~⌌~dscr~𝒹~dscy~ѕ~dsol~⧶~dstrok~đ~dtdot~⋱~dtri~▿~dtrif~▾~duarr~⇵~duhar~⥯~dwangle~⦦~dzcy~џ~dzigrarr~⟿~eDDot~⩷~eDot~≑~easter~⩮~ecaron~ě~ecir~≖~ecolon~≕~ecy~э~edot~ė~ee~ⅇ~efDot~≒~efr~𝔢~eg~⪚~egs~⪖~egsdot~⪘~el~⪙~elinters~⏧~ell~ℓ~els~⪕~elsdot~⪗~emacr~ē~emptyset~∅~emptyv~∅~emsp13~ ~emsp14~ ~eng~ŋ~eogon~ę~eopf~𝕖~epar~⋕~eparsl~⧣~eplus~⩱~epsi~ε~epsiv~ϵ~eqcirc~≖~eqcolon~≕~eqsim~≂~eqslantgtr~⪖~eqslantless~⪕~equals~=~equest~≟~equivDD~⩸~eqvparsl~⧥~erDot~≓~erarr~⥱~escr~ℯ~esdot~≐~esim~≂~excl~!~expectation~ℰ~exponentiale~ⅇ~fallingdotseq~≒~fcy~ф~female~♀~ffilig~ffi~fflig~ff~ffllig~ffl~ffr~𝔣~filig~fi~fjlig~fj~flat~♭~fllig~fl~fltns~▱~fopf~𝕗~fork~⋔~forkv~⫙~fpartint~⨍~frac13~⅓~frac15~⅕~frac16~⅙~frac18~⅛~frac23~⅔~frac25~⅖~frac35~⅗~frac38~⅜~frac45~⅘~frac56~⅚~frac58~⅝~frac78~⅞~frown~⌢~fscr~𝒻~gE~≧~gEl~⪌~gacute~ǵ~gammad~ϝ~gap~⪆~gbreve~ğ~gcirc~ĝ~gcy~г~gdot~ġ~gel~⋛~geq~≥~geqq~≧~geqslant~⩾~ges~⩾~gescc~⪩~gesdot~⪀~gesdoto~⪂~gesdotol~⪄~gesl~⋛︀~gesles~⪔~gfr~𝔤~gg~≫~ggg~⋙~gimel~ℷ~gjcy~ѓ~gl~≷~glE~⪒~gla~⪥~glj~⪤~gnE~≩~gnap~⪊~gnapprox~⪊~gne~⪈~gneq~⪈~gneqq~≩~gnsim~⋧~gopf~𝕘~grave~`~gscr~ℊ~gsim~≳~gsime~⪎~gsiml~⪐~gtcc~⪧~gtcir~⩺~gtdot~⋗~gtlPar~⦕~gtquest~⩼~gtrapprox~⪆~gtrarr~⥸~gtrdot~⋗~gtreqless~⋛~gtreqqless~⪌~gtrless~≷~gtrsim~≳~gvertneqq~≩︀~gvnE~≩︀~hairsp~ ~half~½~hamilt~ℋ~hardcy~ъ~harrcir~⥈~harrw~↭~hbar~ℏ~hcirc~ĥ~heartsuit~♥~hercon~⊹~hfr~𝔥~hksearow~⤥~hkswarow~⤦~hoarr~⇿~homtht~∻~hookleftarrow~↩~hookrightarrow~↪~hopf~𝕙~horbar~―~hscr~𝒽~hslash~ℏ~hstrok~ħ~hybull~⁃~hyphen~‐~ic~~icy~и~iecy~е~iff~⇔~ifr~𝔦~ii~ⅈ~iiiint~⨌~iiint~∭~iinfin~⧜~iiota~℩~ijlig~ij~imacr~ī~imagline~ℐ~imagpart~ℑ~imath~ı~imof~⊷~imped~Ƶ~in~∈~incare~℅~infintie~⧝~inodot~ı~intcal~⊺~integers~ℤ~intercal~⊺~intlarhk~⨗~intprod~⨼~iocy~ё~iogon~į~iopf~𝕚~iprod~⨼~iscr~𝒾~isinE~⋹~isindot~⋵~isins~⋴~isinsv~⋳~isinv~∈~it~~itilde~ĩ~iukcy~і~jcirc~ĵ~jcy~й~jfr~𝔧~jmath~ȷ~jopf~𝕛~jscr~𝒿~jsercy~ј~jukcy~є~kappav~ϰ~kcedil~ķ~kcy~к~kfr~𝔨~kgreen~ĸ~khcy~х~kjcy~ќ~kopf~𝕜~kscr~𝓀~lAarr~⇚~lAtail~⤛~lBarr~⤎~lE~≦~lEg~⪋~lHar~⥢~lacute~ĺ~laemptyv~⦴~lagran~ℒ~langd~⦑~langle~⟨~lap~⪅~larrb~⇤~larrbfs~⤟~larrfs~⤝~larrhk~↩~larrlp~↫~larrpl~⤹~larrsim~⥳~larrtl~↢~lat~⪫~latail~⤙~late~⪭~lates~⪭︀~lbarr~⤌~lbbrk~❲~lbrace~{~lbrack~[~lbrke~⦋~lbrksld~⦏~lbrkslu~⦍~lcaron~ľ~lcedil~ļ~lcub~{~lcy~л~ldca~⤶~ldquor~„~ldrdhar~⥧~ldrushar~⥋~ldsh~↲~leftarrow~←~leftarrowtail~↢~leftharpoondown~↽~leftharpoonup~↼~leftleftarrows~⇇~leftrightarrow~↔~leftrightarrows~⇆~leftrightharpoons~⇋~leftrightsquigarrow~↭~leftthreetimes~⋋~leg~⋚~leq~≤~leqq~≦~leqslant~⩽~les~⩽~lescc~⪨~lesdot~⩿~lesdoto~⪁~lesdotor~⪃~lesg~⋚︀~lesges~⪓~lessapprox~⪅~lessdot~⋖~lesseqgtr~⋚~lesseqqgtr~⪋~lessgtr~≶~lesssim~≲~lfisht~⥼~lfr~𝔩~lg~≶~lgE~⪑~lhard~↽~lharu~↼~lharul~⥪~lhblk~▄~ljcy~љ~ll~≪~llarr~⇇~llcorner~⌞~llhard~⥫~lltri~◺~lmidot~ŀ~lmoust~⎰~lmoustache~⎰~lnE~≨~lnap~⪉~lnapprox~⪉~lne~⪇~lneq~⪇~lneqq~≨~lnsim~⋦~loang~⟬~loarr~⇽~lobrk~⟦~longleftarrow~⟵~longleftrightarrow~⟷~longmapsto~⟼~longrightarrow~⟶~looparrowleft~↫~looparrowright~↬~lopar~⦅~lopf~𝕝~loplus~⨭~lotimes~⨴~lowbar~_~lozenge~◊~lozf~⧫~lpar~(~lparlt~⦓~lrarr~⇆~lrcorner~⌟~lrhar~⇋~lrhard~⥭~lrtri~⊿~lscr~𝓁~lsh~↰~lsim~≲~lsime~⪍~lsimg~⪏~lsqb~[~lsquor~‚~lstrok~ł~ltcc~⪦~ltcir~⩹~ltdot~⋖~lthree~⋋~ltimes~⋉~ltlarr~⥶~ltquest~⩻~ltrPar~⦖~ltri~◃~ltrie~⊴~ltrif~◂~lurdshar~⥊~luruhar~⥦~lvertneqq~≨︀~lvnE~≨︀~mDDot~∺~male~♂~malt~✠~maltese~✠~map~↦~mapsto~↦~mapstodown~↧~mapstoleft~↤~mapstoup~↥~marker~▮~mcomma~⨩~mcy~м~measuredangle~∡~mfr~𝔪~mho~℧~mid~∣~midast~*~midcir~⫰~minusb~⊟~minusd~∸~minusdu~⨪~mlcp~⫛~mldr~…~mnplus~∓~models~⊧~mopf~𝕞~mp~∓~mscr~𝓂~mstpos~∾~multimap~⊸~mumap~⊸~nGg~⋙̸~nGt~≫⃒~nGtv~≫̸~nLeftarrow~⇍~nLeftrightarrow~⇎~nLl~⋘̸~nLt~≪⃒~nLtv~≪̸~nRightarrow~⇏~nVDash~⊯~nVdash~⊮~nacute~ń~nang~∠⃒~nap~≉~napE~⩰̸~napid~≋̸~napos~ʼn~napprox~≉~natur~♮~natural~♮~naturals~ℕ~nbump~≎̸~nbumpe~≏̸~ncap~⩃~ncaron~ň~ncedil~ņ~ncong~≇~ncongdot~⩭̸~ncup~⩂~ncy~н~neArr~⇗~nearhk~⤤~nearr~↗~nearrow~↗~nedot~≐̸~nequiv~≢~nesear~⤨~nesim~≂̸~nexist~∄~nexists~∄~nfr~𝔫~ngE~≧̸~nge~≱~ngeq~≱~ngeqq~≧̸~ngeqslant~⩾̸~nges~⩾̸~ngsim~≵~ngt~≯~ngtr~≯~nhArr~⇎~nharr~↮~nhpar~⫲~nis~⋼~nisd~⋺~niv~∋~njcy~њ~nlArr~⇍~nlE~≦̸~nlarr~↚~nldr~‥~nle~≰~nleftarrow~↚~nleftrightarrow~↮~nleq~≰~nleqq~≦̸~nleqslant~⩽̸~nles~⩽̸~nless~≮~nlsim~≴~nlt~≮~nltri~⋪~nltrie~⋬~nmid~∤~nopf~𝕟~notinE~⋹̸~notindot~⋵̸~notinva~∉~notinvb~⋷~notinvc~⋶~notni~∌~notniva~∌~notnivb~⋾~notnivc~⋽~npar~∦~nparallel~∦~nparsl~⫽⃥~npart~∂̸~npolint~⨔~npr~⊀~nprcue~⋠~npre~⪯̸~nprec~⊀~npreceq~⪯̸~nrArr~⇏~nrarr~↛~nrarrc~⤳̸~nrarrw~↝̸~nrightarrow~↛~nrtri~⋫~nrtrie~⋭~nsc~⊁~nsccue~⋡~nsce~⪰̸~nscr~𝓃~nshortmid~∤~nshortparallel~∦~nsim~≁~nsime~≄~nsimeq~≄~nsmid~∤~nspar~∦~nsqsube~⋢~nsqsupe~⋣~nsubE~⫅̸~nsube~⊈~nsubset~⊂⃒~nsubseteq~⊈~nsubseteqq~⫅̸~nsucc~⊁~nsucceq~⪰̸~nsup~⊅~nsupE~⫆̸~nsupe~⊉~nsupset~⊃⃒~nsupseteq~⊉~nsupseteqq~⫆̸~ntgl~≹~ntlg~≸~ntriangleleft~⋪~ntrianglelefteq~⋬~ntriangleright~⋫~ntrianglerighteq~⋭~num~#~numero~№~numsp~ ~nvDash~⊭~nvHarr~⤄~nvap~≍⃒~nvdash~⊬~nvge~≥⃒~nvgt~>⃒~nvinfin~⧞~nvlArr~⤂~nvle~≤⃒~nvlt~<⃒~nvltrie~⊴⃒~nvrArr~⤃~nvrtrie~⊵⃒~nvsim~∼⃒~nwArr~⇖~nwarhk~⤣~nwarr~↖~nwarrow~↖~nwnear~⤧~oS~Ⓢ~oast~⊛~ocir~⊚~ocy~о~odash~⊝~odblac~ő~odiv~⨸~odot~⊙~odsold~⦼~ofcir~⦿~ofr~𝔬~ogon~˛~ogt~⧁~ohbar~⦵~ohm~Ω~oint~∮~olarr~↺~olcir~⦾~olcross~⦻~olt~⧀~omacr~ō~omid~⦶~ominus~⊖~oopf~𝕠~opar~⦷~operp~⦹~orarr~↻~ord~⩝~order~ℴ~orderof~ℴ~origof~⊶~oror~⩖~orslope~⩗~orv~⩛~oscr~ℴ~osol~⊘~otimesas~⨶~ovbar~⌽~par~∥~parallel~∥~parsim~⫳~parsl~⫽~pcy~п~percnt~%~period~.~pertenk~‱~pfr~𝔭~phiv~ϕ~phmmat~ℳ~phone~☎~pitchfork~⋔~planck~ℏ~planckh~ℎ~plankv~ℏ~plus~+~plusacir~⨣~plusb~⊞~pluscir~⨢~plusdo~∔~plusdu~⨥~pluse~⩲~plussim~⨦~plustwo~⨧~pm~±~pointint~⨕~popf~𝕡~pr~≺~prE~⪳~prap~⪷~prcue~≼~pre~⪯~prec~≺~precapprox~⪷~preccurlyeq~≼~preceq~⪯~precnapprox~⪹~precneqq~⪵~precnsim~⋨~precsim~≾~primes~ℙ~prnE~⪵~prnap~⪹~prnsim~⋨~profalar~⌮~profline~⌒~profsurf~⌓~propto~∝~prsim~≾~prurel~⊰~pscr~𝓅~puncsp~ ~qfr~𝔮~qint~⨌~qopf~𝕢~qprime~⁗~qscr~𝓆~quaternions~ℍ~quatint~⨖~quest~?~questeq~≟~rAarr~⇛~rAtail~⤜~rBarr~⤏~rHar~⥤~race~∽̱~racute~ŕ~raemptyv~⦳~rangd~⦒~range~⦥~rangle~⟩~rarrap~⥵~rarrb~⇥~rarrbfs~⤠~rarrc~⤳~rarrfs~⤞~rarrhk~↪~rarrlp~↬~rarrpl~⥅~rarrsim~⥴~rarrtl~↣~rarrw~↝~ratail~⤚~ratio~∶~rationals~ℚ~rbarr~⤍~rbbrk~❳~rbrace~}~rbrack~]~rbrke~⦌~rbrksld~⦎~rbrkslu~⦐~rcaron~ř~rcedil~ŗ~rcub~}~rcy~р~rdca~⤷~rdldhar~⥩~rdquor~”~rdsh~↳~realine~ℛ~realpart~ℜ~reals~ℝ~rect~▭~rfisht~⥽~rfr~𝔯~rhard~⇁~rharu~⇀~rharul~⥬~rhov~ϱ~rightarrow~→~rightarrowtail~↣~rightharpoondown~⇁~rightharpoonup~⇀~rightleftarrows~⇄~rightleftharpoons~⇌~rightrightarrows~⇉~rightsquigarrow~↝~rightthreetimes~⋌~ring~˚~risingdotseq~≓~rlarr~⇄~rlhar~⇌~rmoust~⎱~rmoustache~⎱~rnmid~⫮~roang~⟭~roarr~⇾~robrk~⟧~ropar~⦆~ropf~𝕣~roplus~⨮~rotimes~⨵~rpar~)~rpargt~⦔~rppolint~⨒~rrarr~⇉~rscr~𝓇~rsh~↱~rsqb~]~rsquor~’~rthree~⋌~rtimes~⋊~rtri~▹~rtrie~⊵~rtrif~▸~rtriltri~⧎~ruluhar~⥨~rx~℞~sacute~ś~sc~≻~scE~⪴~scap~⪸~sccue~≽~sce~⪰~scedil~ş~scirc~ŝ~scnE~⪶~scnap~⪺~scnsim~⋩~scpolint~⨓~scsim~≿~scy~с~sdotb~⊡~sdote~⩦~seArr~⇘~searhk~⤥~searr~↘~searrow~↘~semi~;~seswar~⤩~setminus~∖~setmn~∖~sext~✶~sfr~𝔰~sfrown~⌢~sharp~♯~shchcy~щ~shcy~ш~shortmid~∣~shortparallel~∥~sigmav~ς~simdot~⩪~sime~≃~simeq~≃~simg~⪞~simgE~⪠~siml~⪝~simlE~⪟~simne~≆~simplus~⨤~simrarr~⥲~slarr~←~smallsetminus~∖~smashp~⨳~smeparsl~⧤~smid~∣~smile~⌣~smt~⪪~smte~⪬~smtes~⪬︀~softcy~ь~sol~/~solb~⧄~solbar~⌿~sopf~𝕤~spadesuit~♠~spar~∥~sqcap~⊓~sqcaps~⊓︀~sqcup~⊔~sqcups~⊔︀~sqsub~⊏~sqsube~⊑~sqsubset~⊏~sqsubseteq~⊑~sqsup~⊐~sqsupe~⊒~sqsupset~⊐~sqsupseteq~⊒~squ~□~square~□~squarf~▪~squf~▪~srarr~→~sscr~𝓈~ssetmn~∖~ssmile~⌣~sstarf~⋆~star~☆~starf~★~straightepsilon~ϵ~straightphi~ϕ~strns~¯~subE~⫅~subdot~⪽~subedot~⫃~submult~⫁~subnE~⫋~subne~⊊~subplus~⪿~subrarr~⥹~subset~⊂~subseteq~⊆~subseteqq~⫅~subsetneq~⊊~subsetneqq~⫋~subsim~⫇~subsub~⫕~subsup~⫓~succ~≻~succapprox~⪸~succcurlyeq~≽~succeq~⪰~succnapprox~⪺~succneqq~⪶~succnsim~⋩~succsim~≿~sung~♪~supE~⫆~supdot~⪾~supdsub~⫘~supedot~⫄~suphsol~⟉~suphsub~⫗~suplarr~⥻~supmult~⫂~supnE~⫌~supne~⊋~supplus~⫀~supset~⊃~supseteq~⊇~supseteqq~⫆~supsetneq~⊋~supsetneqq~⫌~supsim~⫈~supsub~⫔~supsup~⫖~swArr~⇙~swarhk~⤦~swarr~↙~swarrow~↙~swnwar~⤪~target~⌖~tbrk~⎴~tcaron~ť~tcedil~ţ~tcy~т~tdot~⃛~telrec~⌕~tfr~𝔱~therefore~∴~thetav~ϑ~thickapprox~≈~thicksim~∼~thkap~≈~thksim~∼~timesb~⊠~timesbar~⨱~timesd~⨰~tint~∭~toea~⤨~top~⊤~topbot~⌶~topcir~⫱~topf~𝕥~topfork~⫚~tosa~⤩~tprime~‴~triangle~▵~triangledown~▿~triangleleft~◃~trianglelefteq~⊴~triangleq~≜~triangleright~▹~trianglerighteq~⊵~tridot~◬~trie~≜~triminus~⨺~triplus~⨹~trisb~⧍~tritime~⨻~trpezium~⏢~tscr~𝓉~tscy~ц~tshcy~ћ~tstrok~ŧ~twixt~≬~twoheadleftarrow~↞~twoheadrightarrow~↠~uHar~⥣~ubrcy~ў~ubreve~ŭ~ucy~у~udarr~⇅~udblac~ű~udhar~⥮~ufisht~⥾~ufr~𝔲~uharl~↿~uharr~↾~uhblk~▀~ulcorn~⌜~ulcorner~⌜~ulcrop~⌏~ultri~◸~umacr~ū~uogon~ų~uopf~𝕦~uparrow~↑~updownarrow~↕~upharpoonleft~↿~upharpoonright~↾~uplus~⊎~upsi~υ~upuparrows~⇈~urcorn~⌝~urcorner~⌝~urcrop~⌎~uring~ů~urtri~◹~uscr~𝓊~utdot~⋰~utilde~ũ~utri~▵~utrif~▴~uuarr~⇈~uwangle~⦧~vArr~⇕~vBar~⫨~vBarv~⫩~vDash~⊨~vangrt~⦜~varepsilon~ϵ~varkappa~ϰ~varnothing~∅~varphi~ϕ~varpi~ϖ~varpropto~∝~varr~↕~varrho~ϱ~varsigma~ς~varsubsetneq~⊊︀~varsubsetneqq~⫋︀~varsupsetneq~⊋︀~varsupsetneqq~⫌︀~vartheta~ϑ~vartriangleleft~⊲~vartriangleright~⊳~vcy~в~vdash~⊢~vee~∨~veebar~⊻~veeeq~≚~vellip~⋮~verbar~|~vert~|~vfr~𝔳~vltri~⊲~vnsub~⊂⃒~vnsup~⊃⃒~vopf~𝕧~vprop~∝~vrtri~⊳~vscr~𝓋~vsubnE~⫋︀~vsubne~⊊︀~vsupnE~⫌︀~vsupne~⊋︀~vzigzag~⦚~wcirc~ŵ~wedbar~⩟~wedge~∧~wedgeq~≙~wfr~𝔴~wopf~𝕨~wp~℘~wr~≀~wreath~≀~wscr~𝓌~xcap~⋂~xcirc~◯~xcup~⋃~xdtri~▽~xfr~𝔵~xhArr~⟺~xharr~⟷~xlArr~⟸~xlarr~⟵~xmap~⟼~xnis~⋻~xodot~⨀~xopf~𝕩~xoplus~⨁~xotime~⨂~xrArr~⟹~xrarr~⟶~xscr~𝓍~xsqcup~⨆~xuplus~⨄~xutri~△~xvee~⋁~xwedge~⋀~yacy~я~ycirc~ŷ~ycy~ы~yfr~𝔶~yicy~ї~yopf~𝕪~yscr~𝓎~yucy~ю~zacute~ź~zcaron~ž~zcy~з~zdot~ż~zeetrf~ℨ~zfr~𝔷~zhcy~ж~zigrarr~⇝~zopf~𝕫~zscr~𝓏~~AMP~&~COPY~©~GT~>~LT~<~QUOT~"~REG~®', at.html4);
|
|
1991
|
+
at.xml = xn(`lt~<~gt~>~quot~"~apos~'~amp~&`);
|
|
1992
|
+
at.html4 = xn(`apos~'~OElig~Œ~oelig~œ~Scaron~Š~scaron~š~Yuml~Ÿ~circ~ˆ~tilde~˜~ensp~ ~emsp~ ~thinsp~ ~zwnj~~zwj~~lrm~~rlm~~ndash~–~mdash~—~lsquo~‘~rsquo~’~sbquo~‚~ldquo~“~rdquo~”~bdquo~„~dagger~†~Dagger~‡~permil~‰~lsaquo~‹~rsaquo~›~euro~€~fnof~ƒ~Alpha~Α~Beta~Β~Gamma~Γ~Delta~Δ~Epsilon~Ε~Zeta~Ζ~Eta~Η~Theta~Θ~Iota~Ι~Kappa~Κ~Lambda~Λ~Mu~Μ~Nu~Ν~Xi~Ξ~Omicron~Ο~Pi~Π~Rho~Ρ~Sigma~Σ~Tau~Τ~Upsilon~Υ~Phi~Φ~Chi~Χ~Psi~Ψ~Omega~Ω~alpha~α~beta~β~gamma~γ~delta~δ~epsilon~ε~zeta~ζ~eta~η~theta~θ~iota~ι~kappa~κ~lambda~λ~mu~μ~nu~ν~xi~ξ~omicron~ο~pi~π~rho~ρ~sigmaf~ς~sigma~σ~tau~τ~upsilon~υ~phi~φ~chi~χ~psi~ψ~omega~ω~thetasym~ϑ~upsih~ϒ~piv~ϖ~bull~•~hellip~…~prime~′~Prime~″~oline~‾~frasl~⁄~weierp~℘~image~ℑ~real~ℜ~trade~™~alefsym~ℵ~larr~←~uarr~↑~rarr~→~darr~↓~harr~↔~crarr~↵~lArr~⇐~uArr~⇑~rArr~⇒~dArr~⇓~hArr~⇔~forall~∀~part~∂~exist~∃~empty~∅~nabla~∇~isin~∈~notin~∉~ni~∋~prod~∏~sum~∑~minus~−~lowast~∗~radic~√~prop~∝~infin~∞~ang~∠~and~∧~or~∨~cap~∩~cup~∪~int~∫~there4~∴~sim~∼~cong~≅~asymp~≈~ne~≠~equiv~≡~le~≤~ge~≥~sub~⊂~sup~⊃~nsub~⊄~sube~⊆~supe~⊇~oplus~⊕~otimes~⊗~perp~⊥~sdot~⋅~lceil~⌈~rceil~⌉~lfloor~⌊~rfloor~⌋~lang~〈~rang~〉~loz~◊~spades~♠~clubs~♣~hearts~♥~diams~♦~~nbsp~ ~iexcl~¡~cent~¢~pound~£~curren~¤~yen~¥~brvbar~¦~sect~§~uml~¨~copy~©~ordf~ª~laquo~«~not~¬~shy~~reg~®~macr~¯~deg~°~plusmn~±~sup2~²~sup3~³~acute~´~micro~µ~para~¶~middot~·~cedil~¸~sup1~¹~ordm~º~raquo~»~frac14~¼~frac12~½~frac34~¾~iquest~¿~Agrave~À~Aacute~Á~Acirc~Â~Atilde~Ã~Auml~Ä~Aring~Å~AElig~Æ~Ccedil~Ç~Egrave~È~Eacute~É~Ecirc~Ê~Euml~Ë~Igrave~Ì~Iacute~Í~Icirc~Î~Iuml~Ï~ETH~Ð~Ntilde~Ñ~Ograve~Ò~Oacute~Ó~Ocirc~Ô~Otilde~Õ~Ouml~Ö~times~×~Oslash~Ø~Ugrave~Ù~Uacute~Ú~Ucirc~Û~Uuml~Ü~Yacute~Ý~THORN~Þ~szlig~ß~agrave~à~aacute~á~acirc~â~atilde~ã~auml~ä~aring~å~aelig~æ~ccedil~ç~egrave~è~eacute~é~ecirc~ê~euml~ë~igrave~ì~iacute~í~icirc~î~iuml~ï~eth~ð~ntilde~ñ~ograve~ò~oacute~ó~ocirc~ô~otilde~õ~ouml~ö~divide~÷~oslash~ø~ugrave~ù~uacute~ú~ucirc~û~uuml~ü~yacute~ý~thorn~þ~yuml~ÿ~quot~"~amp~&~lt~<~gt~>`);
|
|
1993
|
+
at.html5 = xn('Abreve~Ă~Acy~А~Afr~𝔄~Amacr~Ā~And~⩓~Aogon~Ą~Aopf~𝔸~ApplyFunction~~Ascr~𝒜~Assign~≔~Backslash~∖~Barv~⫧~Barwed~⌆~Bcy~Б~Because~∵~Bernoullis~ℬ~Bfr~𝔅~Bopf~𝔹~Breve~˘~Bscr~ℬ~Bumpeq~≎~CHcy~Ч~Cacute~Ć~Cap~⋒~CapitalDifferentialD~ⅅ~Cayleys~ℭ~Ccaron~Č~Ccirc~Ĉ~Cconint~∰~Cdot~Ċ~Cedilla~¸~CenterDot~·~Cfr~ℭ~CircleDot~⊙~CircleMinus~⊖~CirclePlus~⊕~CircleTimes~⊗~ClockwiseContourIntegral~∲~CloseCurlyDoubleQuote~”~CloseCurlyQuote~’~Colon~∷~Colone~⩴~Congruent~≡~Conint~∯~ContourIntegral~∮~Copf~ℂ~Coproduct~∐~CounterClockwiseContourIntegral~∳~Cross~⨯~Cscr~𝒞~Cup~⋓~CupCap~≍~DD~ⅅ~DDotrahd~⤑~DJcy~Ђ~DScy~Ѕ~DZcy~Џ~Darr~↡~Dashv~⫤~Dcaron~Ď~Dcy~Д~Del~∇~Dfr~𝔇~DiacriticalAcute~´~DiacriticalDot~˙~DiacriticalDoubleAcute~˝~DiacriticalGrave~`~DiacriticalTilde~˜~Diamond~⋄~DifferentialD~ⅆ~Dopf~𝔻~Dot~¨~DotDot~⃜~DotEqual~≐~DoubleContourIntegral~∯~DoubleDot~¨~DoubleDownArrow~⇓~DoubleLeftArrow~⇐~DoubleLeftRightArrow~⇔~DoubleLeftTee~⫤~DoubleLongLeftArrow~⟸~DoubleLongLeftRightArrow~⟺~DoubleLongRightArrow~⟹~DoubleRightArrow~⇒~DoubleRightTee~⊨~DoubleUpArrow~⇑~DoubleUpDownArrow~⇕~DoubleVerticalBar~∥~DownArrow~↓~DownArrowBar~⤓~DownArrowUpArrow~⇵~DownBreve~̑~DownLeftRightVector~⥐~DownLeftTeeVector~⥞~DownLeftVector~↽~DownLeftVectorBar~⥖~DownRightTeeVector~⥟~DownRightVector~⇁~DownRightVectorBar~⥗~DownTee~⊤~DownTeeArrow~↧~Downarrow~⇓~Dscr~𝒟~Dstrok~Đ~ENG~Ŋ~Ecaron~Ě~Ecy~Э~Edot~Ė~Efr~𝔈~Element~∈~Emacr~Ē~EmptySmallSquare~◻~EmptyVerySmallSquare~▫~Eogon~Ę~Eopf~𝔼~Equal~⩵~EqualTilde~≂~Equilibrium~⇌~Escr~ℰ~Esim~⩳~Exists~∃~ExponentialE~ⅇ~Fcy~Ф~Ffr~𝔉~FilledSmallSquare~◼~FilledVerySmallSquare~▪~Fopf~𝔽~ForAll~∀~Fouriertrf~ℱ~Fscr~ℱ~GJcy~Ѓ~Gammad~Ϝ~Gbreve~Ğ~Gcedil~Ģ~Gcirc~Ĝ~Gcy~Г~Gdot~Ġ~Gfr~𝔊~Gg~⋙~Gopf~𝔾~GreaterEqual~≥~GreaterEqualLess~⋛~GreaterFullEqual~≧~GreaterGreater~⪢~GreaterLess~≷~GreaterSlantEqual~⩾~GreaterTilde~≳~Gscr~𝒢~Gt~≫~HARDcy~Ъ~Hacek~ˇ~Hat~^~Hcirc~Ĥ~Hfr~ℌ~HilbertSpace~ℋ~Hopf~ℍ~HorizontalLine~─~Hscr~ℋ~Hstrok~Ħ~HumpDownHump~≎~HumpEqual~≏~IEcy~Е~IJlig~IJ~IOcy~Ё~Icy~И~Idot~İ~Ifr~ℑ~Im~ℑ~Imacr~Ī~ImaginaryI~ⅈ~Implies~⇒~Int~∬~Integral~∫~Intersection~⋂~InvisibleComma~~InvisibleTimes~~Iogon~Į~Iopf~𝕀~Iscr~ℐ~Itilde~Ĩ~Iukcy~І~Jcirc~Ĵ~Jcy~Й~Jfr~𝔍~Jopf~𝕁~Jscr~𝒥~Jsercy~Ј~Jukcy~Є~KHcy~Х~KJcy~Ќ~Kcedil~Ķ~Kcy~К~Kfr~𝔎~Kopf~𝕂~Kscr~𝒦~LJcy~Љ~Lacute~Ĺ~Lang~⟪~Laplacetrf~ℒ~Larr~↞~Lcaron~Ľ~Lcedil~Ļ~Lcy~Л~LeftAngleBracket~⟨~LeftArrow~←~LeftArrowBar~⇤~LeftArrowRightArrow~⇆~LeftCeiling~⌈~LeftDoubleBracket~⟦~LeftDownTeeVector~⥡~LeftDownVector~⇃~LeftDownVectorBar~⥙~LeftFloor~⌊~LeftRightArrow~↔~LeftRightVector~⥎~LeftTee~⊣~LeftTeeArrow~↤~LeftTeeVector~⥚~LeftTriangle~⊲~LeftTriangleBar~⧏~LeftTriangleEqual~⊴~LeftUpDownVector~⥑~LeftUpTeeVector~⥠~LeftUpVector~↿~LeftUpVectorBar~⥘~LeftVector~↼~LeftVectorBar~⥒~Leftarrow~⇐~Leftrightarrow~⇔~LessEqualGreater~⋚~LessFullEqual~≦~LessGreater~≶~LessLess~⪡~LessSlantEqual~⩽~LessTilde~≲~Lfr~𝔏~Ll~⋘~Lleftarrow~⇚~Lmidot~Ŀ~LongLeftArrow~⟵~LongLeftRightArrow~⟷~LongRightArrow~⟶~Longleftarrow~⟸~Longleftrightarrow~⟺~Longrightarrow~⟹~Lopf~𝕃~LowerLeftArrow~↙~LowerRightArrow~↘~Lscr~ℒ~Lsh~↰~Lstrok~Ł~Lt~≪~Map~⤅~Mcy~М~MediumSpace~ ~Mellintrf~ℳ~Mfr~𝔐~MinusPlus~∓~Mopf~𝕄~Mscr~ℳ~NJcy~Њ~Nacute~Ń~Ncaron~Ň~Ncedil~Ņ~Ncy~Н~NegativeMediumSpace~~NegativeThickSpace~~NegativeThinSpace~~NegativeVeryThinSpace~~NestedGreaterGreater~≫~NestedLessLess~≪~NewLine~\n~Nfr~𝔑~NoBreak~~NonBreakingSpace~ ~Nopf~ℕ~Not~⫬~NotCongruent~≢~NotCupCap~≭~NotDoubleVerticalBar~∦~NotElement~∉~NotEqual~≠~NotEqualTilde~≂̸~NotExists~∄~NotGreater~≯~NotGreaterEqual~≱~NotGreaterFullEqual~≧̸~NotGreaterGreater~≫̸~NotGreaterLess~≹~NotGreaterSlantEqual~⩾̸~NotGreaterTilde~≵~NotHumpDownHump~≎̸~NotHumpEqual~≏̸~NotLeftTriangle~⋪~NotLeftTriangleBar~⧏̸~NotLeftTriangleEqual~⋬~NotLess~≮~NotLessEqual~≰~NotLessGreater~≸~NotLessLess~≪̸~NotLessSlantEqual~⩽̸~NotLessTilde~≴~NotNestedGreaterGreater~⪢̸~NotNestedLessLess~⪡̸~NotPrecedes~⊀~NotPrecedesEqual~⪯̸~NotPrecedesSlantEqual~⋠~NotReverseElement~∌~NotRightTriangle~⋫~NotRightTriangleBar~⧐̸~NotRightTriangleEqual~⋭~NotSquareSubset~⊏̸~NotSquareSubsetEqual~⋢~NotSquareSuperset~⊐̸~NotSquareSupersetEqual~⋣~NotSubset~⊂⃒~NotSubsetEqual~⊈~NotSucceeds~⊁~NotSucceedsEqual~⪰̸~NotSucceedsSlantEqual~⋡~NotSucceedsTilde~≿̸~NotSuperset~⊃⃒~NotSupersetEqual~⊉~NotTilde~≁~NotTildeEqual~≄~NotTildeFullEqual~≇~NotTildeTilde~≉~NotVerticalBar~∤~Nscr~𝒩~Ocy~О~Odblac~Ő~Ofr~𝔒~Omacr~Ō~Oopf~𝕆~OpenCurlyDoubleQuote~“~OpenCurlyQuote~‘~Or~⩔~Oscr~𝒪~Otimes~⨷~OverBar~‾~OverBrace~⏞~OverBracket~⎴~OverParenthesis~⏜~PartialD~∂~Pcy~П~Pfr~𝔓~PlusMinus~±~Poincareplane~ℌ~Popf~ℙ~Pr~⪻~Precedes~≺~PrecedesEqual~⪯~PrecedesSlantEqual~≼~PrecedesTilde~≾~Product~∏~Proportion~∷~Proportional~∝~Pscr~𝒫~Qfr~𝔔~Qopf~ℚ~Qscr~𝒬~RBarr~⤐~Racute~Ŕ~Rang~⟫~Rarr~↠~Rarrtl~⤖~Rcaron~Ř~Rcedil~Ŗ~Rcy~Р~Re~ℜ~ReverseElement~∋~ReverseEquilibrium~⇋~ReverseUpEquilibrium~⥯~Rfr~ℜ~RightAngleBracket~⟩~RightArrow~→~RightArrowBar~⇥~RightArrowLeftArrow~⇄~RightCeiling~⌉~RightDoubleBracket~⟧~RightDownTeeVector~⥝~RightDownVector~⇂~RightDownVectorBar~⥕~RightFloor~⌋~RightTee~⊢~RightTeeArrow~↦~RightTeeVector~⥛~RightTriangle~⊳~RightTriangleBar~⧐~RightTriangleEqual~⊵~RightUpDownVector~⥏~RightUpTeeVector~⥜~RightUpVector~↾~RightUpVectorBar~⥔~RightVector~⇀~RightVectorBar~⥓~Rightarrow~⇒~Ropf~ℝ~RoundImplies~⥰~Rrightarrow~⇛~Rscr~ℛ~Rsh~↱~RuleDelayed~⧴~SHCHcy~Щ~SHcy~Ш~SOFTcy~Ь~Sacute~Ś~Sc~⪼~Scedil~Ş~Scirc~Ŝ~Scy~С~Sfr~𝔖~ShortDownArrow~↓~ShortLeftArrow~←~ShortRightArrow~→~ShortUpArrow~↑~SmallCircle~∘~Sopf~𝕊~Sqrt~√~Square~□~SquareIntersection~⊓~SquareSubset~⊏~SquareSubsetEqual~⊑~SquareSuperset~⊐~SquareSupersetEqual~⊒~SquareUnion~⊔~Sscr~𝒮~Star~⋆~Sub~⋐~Subset~⋐~SubsetEqual~⊆~Succeeds~≻~SucceedsEqual~⪰~SucceedsSlantEqual~≽~SucceedsTilde~≿~SuchThat~∋~Sum~∑~Sup~⋑~Superset~⊃~SupersetEqual~⊇~Supset~⋑~TRADE~™~TSHcy~Ћ~TScy~Ц~Tab~ ~Tcaron~Ť~Tcedil~Ţ~Tcy~Т~Tfr~𝔗~Therefore~∴~ThickSpace~ ~ThinSpace~ ~Tilde~∼~TildeEqual~≃~TildeFullEqual~≅~TildeTilde~≈~Topf~𝕋~TripleDot~⃛~Tscr~𝒯~Tstrok~Ŧ~Uarr~↟~Uarrocir~⥉~Ubrcy~Ў~Ubreve~Ŭ~Ucy~У~Udblac~Ű~Ufr~𝔘~Umacr~Ū~UnderBar~_~UnderBrace~⏟~UnderBracket~⎵~UnderParenthesis~⏝~Union~⋃~UnionPlus~⊎~Uogon~Ų~Uopf~𝕌~UpArrow~↑~UpArrowBar~⤒~UpArrowDownArrow~⇅~UpDownArrow~↕~UpEquilibrium~⥮~UpTee~⊥~UpTeeArrow~↥~Uparrow~⇑~Updownarrow~⇕~UpperLeftArrow~↖~UpperRightArrow~↗~Upsi~ϒ~Uring~Ů~Uscr~𝒰~Utilde~Ũ~VDash~⊫~Vbar~⫫~Vcy~В~Vdash~⊩~Vdashl~⫦~Vee~⋁~Verbar~‖~Vert~‖~VerticalBar~∣~VerticalLine~|~VerticalSeparator~❘~VerticalTilde~≀~VeryThinSpace~ ~Vfr~𝔙~Vopf~𝕍~Vscr~𝒱~Vvdash~⊪~Wcirc~Ŵ~Wedge~⋀~Wfr~𝔚~Wopf~𝕎~Wscr~𝒲~Xfr~𝔛~Xopf~𝕏~Xscr~𝒳~YAcy~Я~YIcy~Ї~YUcy~Ю~Ycirc~Ŷ~Ycy~Ы~Yfr~𝔜~Yopf~𝕐~Yscr~𝒴~ZHcy~Ж~Zacute~Ź~Zcaron~Ž~Zcy~З~Zdot~Ż~ZeroWidthSpace~~Zfr~ℨ~Zopf~ℤ~Zscr~𝒵~abreve~ă~ac~∾~acE~∾̳~acd~∿~acy~а~af~~afr~𝔞~aleph~ℵ~amacr~ā~amalg~⨿~andand~⩕~andd~⩜~andslope~⩘~andv~⩚~ange~⦤~angle~∠~angmsd~∡~angmsdaa~⦨~angmsdab~⦩~angmsdac~⦪~angmsdad~⦫~angmsdae~⦬~angmsdaf~⦭~angmsdag~⦮~angmsdah~⦯~angrt~∟~angrtvb~⊾~angrtvbd~⦝~angsph~∢~angst~Å~angzarr~⍼~aogon~ą~aopf~𝕒~ap~≈~apE~⩰~apacir~⩯~ape~≊~apid~≋~approx~≈~approxeq~≊~ascr~𝒶~ast~*~asympeq~≍~awconint~∳~awint~⨑~bNot~⫭~backcong~≌~backepsilon~϶~backprime~‵~backsim~∽~backsimeq~⋍~barvee~⊽~barwed~⌅~barwedge~⌅~bbrk~⎵~bbrktbrk~⎶~bcong~≌~bcy~б~becaus~∵~because~∵~bemptyv~⦰~bepsi~϶~bernou~ℬ~beth~ℶ~between~≬~bfr~𝔟~bigcap~⋂~bigcirc~◯~bigcup~⋃~bigodot~⨀~bigoplus~⨁~bigotimes~⨂~bigsqcup~⨆~bigstar~★~bigtriangledown~▽~bigtriangleup~△~biguplus~⨄~bigvee~⋁~bigwedge~⋀~bkarow~⤍~blacklozenge~⧫~blacksquare~▪~blacktriangle~▴~blacktriangledown~▾~blacktriangleleft~◂~blacktriangleright~▸~blank~␣~blk12~▒~blk14~░~blk34~▓~block~█~bne~=⃥~bnequiv~≡⃥~bnot~⌐~bopf~𝕓~bot~⊥~bottom~⊥~bowtie~⋈~boxDL~╗~boxDR~╔~boxDl~╖~boxDr~╓~boxH~═~boxHD~╦~boxHU~╩~boxHd~╤~boxHu~╧~boxUL~╝~boxUR~╚~boxUl~╜~boxUr~╙~boxV~║~boxVH~╬~boxVL~╣~boxVR~╠~boxVh~╫~boxVl~╢~boxVr~╟~boxbox~⧉~boxdL~╕~boxdR~╒~boxdl~┐~boxdr~┌~boxh~─~boxhD~╥~boxhU~╨~boxhd~┬~boxhu~┴~boxminus~⊟~boxplus~⊞~boxtimes~⊠~boxuL~╛~boxuR~╘~boxul~┘~boxur~└~boxv~│~boxvH~╪~boxvL~╡~boxvR~╞~boxvh~┼~boxvl~┤~boxvr~├~bprime~‵~breve~˘~bscr~𝒷~bsemi~⁏~bsim~∽~bsime~⋍~bsol~\\~bsolb~⧅~bsolhsub~⟈~bullet~•~bump~≎~bumpE~⪮~bumpe~≏~bumpeq~≏~cacute~ć~capand~⩄~capbrcup~⩉~capcap~⩋~capcup~⩇~capdot~⩀~caps~∩︀~caret~⁁~caron~ˇ~ccaps~⩍~ccaron~č~ccirc~ĉ~ccups~⩌~ccupssm~⩐~cdot~ċ~cemptyv~⦲~centerdot~·~cfr~𝔠~chcy~ч~check~✓~checkmark~✓~cir~○~cirE~⧃~circeq~≗~circlearrowleft~↺~circlearrowright~↻~circledR~®~circledS~Ⓢ~circledast~⊛~circledcirc~⊚~circleddash~⊝~cire~≗~cirfnint~⨐~cirmid~⫯~cirscir~⧂~clubsuit~♣~colon~:~colone~≔~coloneq~≔~comma~,~commat~@~comp~∁~compfn~∘~complement~∁~complexes~ℂ~congdot~⩭~conint~∮~copf~𝕔~coprod~∐~copysr~℗~cross~✗~cscr~𝒸~csub~⫏~csube~⫑~csup~⫐~csupe~⫒~ctdot~⋯~cudarrl~⤸~cudarrr~⤵~cuepr~⋞~cuesc~⋟~cularr~↶~cularrp~⤽~cupbrcap~⩈~cupcap~⩆~cupcup~⩊~cupdot~⊍~cupor~⩅~cups~∪︀~curarr~↷~curarrm~⤼~curlyeqprec~⋞~curlyeqsucc~⋟~curlyvee~⋎~curlywedge~⋏~curvearrowleft~↶~curvearrowright~↷~cuvee~⋎~cuwed~⋏~cwconint~∲~cwint~∱~cylcty~⌭~dHar~⥥~daleth~ℸ~dash~‐~dashv~⊣~dbkarow~⤏~dblac~˝~dcaron~ď~dcy~д~dd~ⅆ~ddagger~‡~ddarr~⇊~ddotseq~⩷~demptyv~⦱~dfisht~⥿~dfr~𝔡~dharl~⇃~dharr~⇂~diam~⋄~diamond~⋄~diamondsuit~♦~die~¨~digamma~ϝ~disin~⋲~div~÷~divideontimes~⋇~divonx~⋇~djcy~ђ~dlcorn~⌞~dlcrop~⌍~dollar~$~dopf~𝕕~dot~˙~doteq~≐~doteqdot~≑~dotminus~∸~dotplus~∔~dotsquare~⊡~doublebarwedge~⌆~downarrow~↓~downdownarrows~⇊~downharpoonleft~⇃~downharpoonright~⇂~drbkarow~⤐~drcorn~⌟~drcrop~⌌~dscr~𝒹~dscy~ѕ~dsol~⧶~dstrok~đ~dtdot~⋱~dtri~▿~dtrif~▾~duarr~⇵~duhar~⥯~dwangle~⦦~dzcy~џ~dzigrarr~⟿~eDDot~⩷~eDot~≑~easter~⩮~ecaron~ě~ecir~≖~ecolon~≕~ecy~э~edot~ė~ee~ⅇ~efDot~≒~efr~𝔢~eg~⪚~egs~⪖~egsdot~⪘~el~⪙~elinters~⏧~ell~ℓ~els~⪕~elsdot~⪗~emacr~ē~emptyset~∅~emptyv~∅~emsp13~ ~emsp14~ ~eng~ŋ~eogon~ę~eopf~𝕖~epar~⋕~eparsl~⧣~eplus~⩱~epsi~ε~epsiv~ϵ~eqcirc~≖~eqcolon~≕~eqsim~≂~eqslantgtr~⪖~eqslantless~⪕~equals~=~equest~≟~equivDD~⩸~eqvparsl~⧥~erDot~≓~erarr~⥱~escr~ℯ~esdot~≐~esim~≂~excl~!~expectation~ℰ~exponentiale~ⅇ~fallingdotseq~≒~fcy~ф~female~♀~ffilig~ffi~fflig~ff~ffllig~ffl~ffr~𝔣~filig~fi~fjlig~fj~flat~♭~fllig~fl~fltns~▱~fopf~𝕗~fork~⋔~forkv~⫙~fpartint~⨍~frac13~⅓~frac15~⅕~frac16~⅙~frac18~⅛~frac23~⅔~frac25~⅖~frac35~⅗~frac38~⅜~frac45~⅘~frac56~⅚~frac58~⅝~frac78~⅞~frown~⌢~fscr~𝒻~gE~≧~gEl~⪌~gacute~ǵ~gammad~ϝ~gap~⪆~gbreve~ğ~gcirc~ĝ~gcy~г~gdot~ġ~gel~⋛~geq~≥~geqq~≧~geqslant~⩾~ges~⩾~gescc~⪩~gesdot~⪀~gesdoto~⪂~gesdotol~⪄~gesl~⋛︀~gesles~⪔~gfr~𝔤~gg~≫~ggg~⋙~gimel~ℷ~gjcy~ѓ~gl~≷~glE~⪒~gla~⪥~glj~⪤~gnE~≩~gnap~⪊~gnapprox~⪊~gne~⪈~gneq~⪈~gneqq~≩~gnsim~⋧~gopf~𝕘~grave~`~gscr~ℊ~gsim~≳~gsime~⪎~gsiml~⪐~gtcc~⪧~gtcir~⩺~gtdot~⋗~gtlPar~⦕~gtquest~⩼~gtrapprox~⪆~gtrarr~⥸~gtrdot~⋗~gtreqless~⋛~gtreqqless~⪌~gtrless~≷~gtrsim~≳~gvertneqq~≩︀~gvnE~≩︀~hairsp~ ~half~½~hamilt~ℋ~hardcy~ъ~harrcir~⥈~harrw~↭~hbar~ℏ~hcirc~ĥ~heartsuit~♥~hercon~⊹~hfr~𝔥~hksearow~⤥~hkswarow~⤦~hoarr~⇿~homtht~∻~hookleftarrow~↩~hookrightarrow~↪~hopf~𝕙~horbar~―~hscr~𝒽~hslash~ℏ~hstrok~ħ~hybull~⁃~hyphen~‐~ic~~icy~и~iecy~е~iff~⇔~ifr~𝔦~ii~ⅈ~iiiint~⨌~iiint~∭~iinfin~⧜~iiota~℩~ijlig~ij~imacr~ī~imagline~ℐ~imagpart~ℑ~imath~ı~imof~⊷~imped~Ƶ~in~∈~incare~℅~infintie~⧝~inodot~ı~intcal~⊺~integers~ℤ~intercal~⊺~intlarhk~⨗~intprod~⨼~iocy~ё~iogon~į~iopf~𝕚~iprod~⨼~iscr~𝒾~isinE~⋹~isindot~⋵~isins~⋴~isinsv~⋳~isinv~∈~it~~itilde~ĩ~iukcy~і~jcirc~ĵ~jcy~й~jfr~𝔧~jmath~ȷ~jopf~𝕛~jscr~𝒿~jsercy~ј~jukcy~є~kappav~ϰ~kcedil~ķ~kcy~к~kfr~𝔨~kgreen~ĸ~khcy~х~kjcy~ќ~kopf~𝕜~kscr~𝓀~lAarr~⇚~lAtail~⤛~lBarr~⤎~lE~≦~lEg~⪋~lHar~⥢~lacute~ĺ~laemptyv~⦴~lagran~ℒ~langd~⦑~langle~⟨~lap~⪅~larrb~⇤~larrbfs~⤟~larrfs~⤝~larrhk~↩~larrlp~↫~larrpl~⤹~larrsim~⥳~larrtl~↢~lat~⪫~latail~⤙~late~⪭~lates~⪭︀~lbarr~⤌~lbbrk~❲~lbrace~{~lbrack~[~lbrke~⦋~lbrksld~⦏~lbrkslu~⦍~lcaron~ľ~lcedil~ļ~lcub~{~lcy~л~ldca~⤶~ldquor~„~ldrdhar~⥧~ldrushar~⥋~ldsh~↲~leftarrow~←~leftarrowtail~↢~leftharpoondown~↽~leftharpoonup~↼~leftleftarrows~⇇~leftrightarrow~↔~leftrightarrows~⇆~leftrightharpoons~⇋~leftrightsquigarrow~↭~leftthreetimes~⋋~leg~⋚~leq~≤~leqq~≦~leqslant~⩽~les~⩽~lescc~⪨~lesdot~⩿~lesdoto~⪁~lesdotor~⪃~lesg~⋚︀~lesges~⪓~lessapprox~⪅~lessdot~⋖~lesseqgtr~⋚~lesseqqgtr~⪋~lessgtr~≶~lesssim~≲~lfisht~⥼~lfr~𝔩~lg~≶~lgE~⪑~lhard~↽~lharu~↼~lharul~⥪~lhblk~▄~ljcy~љ~ll~≪~llarr~⇇~llcorner~⌞~llhard~⥫~lltri~◺~lmidot~ŀ~lmoust~⎰~lmoustache~⎰~lnE~≨~lnap~⪉~lnapprox~⪉~lne~⪇~lneq~⪇~lneqq~≨~lnsim~⋦~loang~⟬~loarr~⇽~lobrk~⟦~longleftarrow~⟵~longleftrightarrow~⟷~longmapsto~⟼~longrightarrow~⟶~looparrowleft~↫~looparrowright~↬~lopar~⦅~lopf~𝕝~loplus~⨭~lotimes~⨴~lowbar~_~lozenge~◊~lozf~⧫~lpar~(~lparlt~⦓~lrarr~⇆~lrcorner~⌟~lrhar~⇋~lrhard~⥭~lrtri~⊿~lscr~𝓁~lsh~↰~lsim~≲~lsime~⪍~lsimg~⪏~lsqb~[~lsquor~‚~lstrok~ł~ltcc~⪦~ltcir~⩹~ltdot~⋖~lthree~⋋~ltimes~⋉~ltlarr~⥶~ltquest~⩻~ltrPar~⦖~ltri~◃~ltrie~⊴~ltrif~◂~lurdshar~⥊~luruhar~⥦~lvertneqq~≨︀~lvnE~≨︀~mDDot~∺~male~♂~malt~✠~maltese~✠~map~↦~mapsto~↦~mapstodown~↧~mapstoleft~↤~mapstoup~↥~marker~▮~mcomma~⨩~mcy~м~measuredangle~∡~mfr~𝔪~mho~℧~mid~∣~midast~*~midcir~⫰~minusb~⊟~minusd~∸~minusdu~⨪~mlcp~⫛~mldr~…~mnplus~∓~models~⊧~mopf~𝕞~mp~∓~mscr~𝓂~mstpos~∾~multimap~⊸~mumap~⊸~nGg~⋙̸~nGt~≫⃒~nGtv~≫̸~nLeftarrow~⇍~nLeftrightarrow~⇎~nLl~⋘̸~nLt~≪⃒~nLtv~≪̸~nRightarrow~⇏~nVDash~⊯~nVdash~⊮~nacute~ń~nang~∠⃒~nap~≉~napE~⩰̸~napid~≋̸~napos~ʼn~napprox~≉~natur~♮~natural~♮~naturals~ℕ~nbump~≎̸~nbumpe~≏̸~ncap~⩃~ncaron~ň~ncedil~ņ~ncong~≇~ncongdot~⩭̸~ncup~⩂~ncy~н~neArr~⇗~nearhk~⤤~nearr~↗~nearrow~↗~nedot~≐̸~nequiv~≢~nesear~⤨~nesim~≂̸~nexist~∄~nexists~∄~nfr~𝔫~ngE~≧̸~nge~≱~ngeq~≱~ngeqq~≧̸~ngeqslant~⩾̸~nges~⩾̸~ngsim~≵~ngt~≯~ngtr~≯~nhArr~⇎~nharr~↮~nhpar~⫲~nis~⋼~nisd~⋺~niv~∋~njcy~њ~nlArr~⇍~nlE~≦̸~nlarr~↚~nldr~‥~nle~≰~nleftarrow~↚~nleftrightarrow~↮~nleq~≰~nleqq~≦̸~nleqslant~⩽̸~nles~⩽̸~nless~≮~nlsim~≴~nlt~≮~nltri~⋪~nltrie~⋬~nmid~∤~nopf~𝕟~notinE~⋹̸~notindot~⋵̸~notinva~∉~notinvb~⋷~notinvc~⋶~notni~∌~notniva~∌~notnivb~⋾~notnivc~⋽~npar~∦~nparallel~∦~nparsl~⫽⃥~npart~∂̸~npolint~⨔~npr~⊀~nprcue~⋠~npre~⪯̸~nprec~⊀~npreceq~⪯̸~nrArr~⇏~nrarr~↛~nrarrc~⤳̸~nrarrw~↝̸~nrightarrow~↛~nrtri~⋫~nrtrie~⋭~nsc~⊁~nsccue~⋡~nsce~⪰̸~nscr~𝓃~nshortmid~∤~nshortparallel~∦~nsim~≁~nsime~≄~nsimeq~≄~nsmid~∤~nspar~∦~nsqsube~⋢~nsqsupe~⋣~nsubE~⫅̸~nsube~⊈~nsubset~⊂⃒~nsubseteq~⊈~nsubseteqq~⫅̸~nsucc~⊁~nsucceq~⪰̸~nsup~⊅~nsupE~⫆̸~nsupe~⊉~nsupset~⊃⃒~nsupseteq~⊉~nsupseteqq~⫆̸~ntgl~≹~ntlg~≸~ntriangleleft~⋪~ntrianglelefteq~⋬~ntriangleright~⋫~ntrianglerighteq~⋭~num~#~numero~№~numsp~ ~nvDash~⊭~nvHarr~⤄~nvap~≍⃒~nvdash~⊬~nvge~≥⃒~nvgt~>⃒~nvinfin~⧞~nvlArr~⤂~nvle~≤⃒~nvlt~<⃒~nvltrie~⊴⃒~nvrArr~⤃~nvrtrie~⊵⃒~nvsim~∼⃒~nwArr~⇖~nwarhk~⤣~nwarr~↖~nwarrow~↖~nwnear~⤧~oS~Ⓢ~oast~⊛~ocir~⊚~ocy~о~odash~⊝~odblac~ő~odiv~⨸~odot~⊙~odsold~⦼~ofcir~⦿~ofr~𝔬~ogon~˛~ogt~⧁~ohbar~⦵~ohm~Ω~oint~∮~olarr~↺~olcir~⦾~olcross~⦻~olt~⧀~omacr~ō~omid~⦶~ominus~⊖~oopf~𝕠~opar~⦷~operp~⦹~orarr~↻~ord~⩝~order~ℴ~orderof~ℴ~origof~⊶~oror~⩖~orslope~⩗~orv~⩛~oscr~ℴ~osol~⊘~otimesas~⨶~ovbar~⌽~par~∥~parallel~∥~parsim~⫳~parsl~⫽~pcy~п~percnt~%~period~.~pertenk~‱~pfr~𝔭~phiv~ϕ~phmmat~ℳ~phone~☎~pitchfork~⋔~planck~ℏ~planckh~ℎ~plankv~ℏ~plus~+~plusacir~⨣~plusb~⊞~pluscir~⨢~plusdo~∔~plusdu~⨥~pluse~⩲~plussim~⨦~plustwo~⨧~pm~±~pointint~⨕~popf~𝕡~pr~≺~prE~⪳~prap~⪷~prcue~≼~pre~⪯~prec~≺~precapprox~⪷~preccurlyeq~≼~preceq~⪯~precnapprox~⪹~precneqq~⪵~precnsim~⋨~precsim~≾~primes~ℙ~prnE~⪵~prnap~⪹~prnsim~⋨~profalar~⌮~profline~⌒~profsurf~⌓~propto~∝~prsim~≾~prurel~⊰~pscr~𝓅~puncsp~ ~qfr~𝔮~qint~⨌~qopf~𝕢~qprime~⁗~qscr~𝓆~quaternions~ℍ~quatint~⨖~quest~?~questeq~≟~rAarr~⇛~rAtail~⤜~rBarr~⤏~rHar~⥤~race~∽̱~racute~ŕ~raemptyv~⦳~rangd~⦒~range~⦥~rangle~⟩~rarrap~⥵~rarrb~⇥~rarrbfs~⤠~rarrc~⤳~rarrfs~⤞~rarrhk~↪~rarrlp~↬~rarrpl~⥅~rarrsim~⥴~rarrtl~↣~rarrw~↝~ratail~⤚~ratio~∶~rationals~ℚ~rbarr~⤍~rbbrk~❳~rbrace~}~rbrack~]~rbrke~⦌~rbrksld~⦎~rbrkslu~⦐~rcaron~ř~rcedil~ŗ~rcub~}~rcy~р~rdca~⤷~rdldhar~⥩~rdquor~”~rdsh~↳~realine~ℛ~realpart~ℜ~reals~ℝ~rect~▭~rfisht~⥽~rfr~𝔯~rhard~⇁~rharu~⇀~rharul~⥬~rhov~ϱ~rightarrow~→~rightarrowtail~↣~rightharpoondown~⇁~rightharpoonup~⇀~rightleftarrows~⇄~rightleftharpoons~⇌~rightrightarrows~⇉~rightsquigarrow~↝~rightthreetimes~⋌~ring~˚~risingdotseq~≓~rlarr~⇄~rlhar~⇌~rmoust~⎱~rmoustache~⎱~rnmid~⫮~roang~⟭~roarr~⇾~robrk~⟧~ropar~⦆~ropf~𝕣~roplus~⨮~rotimes~⨵~rpar~)~rpargt~⦔~rppolint~⨒~rrarr~⇉~rscr~𝓇~rsh~↱~rsqb~]~rsquor~’~rthree~⋌~rtimes~⋊~rtri~▹~rtrie~⊵~rtrif~▸~rtriltri~⧎~ruluhar~⥨~rx~℞~sacute~ś~sc~≻~scE~⪴~scap~⪸~sccue~≽~sce~⪰~scedil~ş~scirc~ŝ~scnE~⪶~scnap~⪺~scnsim~⋩~scpolint~⨓~scsim~≿~scy~с~sdotb~⊡~sdote~⩦~seArr~⇘~searhk~⤥~searr~↘~searrow~↘~semi~;~seswar~⤩~setminus~∖~setmn~∖~sext~✶~sfr~𝔰~sfrown~⌢~sharp~♯~shchcy~щ~shcy~ш~shortmid~∣~shortparallel~∥~sigmav~ς~simdot~⩪~sime~≃~simeq~≃~simg~⪞~simgE~⪠~siml~⪝~simlE~⪟~simne~≆~simplus~⨤~simrarr~⥲~slarr~←~smallsetminus~∖~smashp~⨳~smeparsl~⧤~smid~∣~smile~⌣~smt~⪪~smte~⪬~smtes~⪬︀~softcy~ь~sol~/~solb~⧄~solbar~⌿~sopf~𝕤~spadesuit~♠~spar~∥~sqcap~⊓~sqcaps~⊓︀~sqcup~⊔~sqcups~⊔︀~sqsub~⊏~sqsube~⊑~sqsubset~⊏~sqsubseteq~⊑~sqsup~⊐~sqsupe~⊒~sqsupset~⊐~sqsupseteq~⊒~squ~□~square~□~squarf~▪~squf~▪~srarr~→~sscr~𝓈~ssetmn~∖~ssmile~⌣~sstarf~⋆~star~☆~starf~★~straightepsilon~ϵ~straightphi~ϕ~strns~¯~subE~⫅~subdot~⪽~subedot~⫃~submult~⫁~subnE~⫋~subne~⊊~subplus~⪿~subrarr~⥹~subset~⊂~subseteq~⊆~subseteqq~⫅~subsetneq~⊊~subsetneqq~⫋~subsim~⫇~subsub~⫕~subsup~⫓~succ~≻~succapprox~⪸~succcurlyeq~≽~succeq~⪰~succnapprox~⪺~succneqq~⪶~succnsim~⋩~succsim~≿~sung~♪~supE~⫆~supdot~⪾~supdsub~⫘~supedot~⫄~suphsol~⟉~suphsub~⫗~suplarr~⥻~supmult~⫂~supnE~⫌~supne~⊋~supplus~⫀~supset~⊃~supseteq~⊇~supseteqq~⫆~supsetneq~⊋~supsetneqq~⫌~supsim~⫈~supsub~⫔~supsup~⫖~swArr~⇙~swarhk~⤦~swarr~↙~swarrow~↙~swnwar~⤪~target~⌖~tbrk~⎴~tcaron~ť~tcedil~ţ~tcy~т~tdot~⃛~telrec~⌕~tfr~𝔱~therefore~∴~thetav~ϑ~thickapprox~≈~thicksim~∼~thkap~≈~thksim~∼~timesb~⊠~timesbar~⨱~timesd~⨰~tint~∭~toea~⤨~top~⊤~topbot~⌶~topcir~⫱~topf~𝕥~topfork~⫚~tosa~⤩~tprime~‴~triangle~▵~triangledown~▿~triangleleft~◃~trianglelefteq~⊴~triangleq~≜~triangleright~▹~trianglerighteq~⊵~tridot~◬~trie~≜~triminus~⨺~triplus~⨹~trisb~⧍~tritime~⨻~trpezium~⏢~tscr~𝓉~tscy~ц~tshcy~ћ~tstrok~ŧ~twixt~≬~twoheadleftarrow~↞~twoheadrightarrow~↠~uHar~⥣~ubrcy~ў~ubreve~ŭ~ucy~у~udarr~⇅~udblac~ű~udhar~⥮~ufisht~⥾~ufr~𝔲~uharl~↿~uharr~↾~uhblk~▀~ulcorn~⌜~ulcorner~⌜~ulcrop~⌏~ultri~◸~umacr~ū~uogon~ų~uopf~𝕦~uparrow~↑~updownarrow~↕~upharpoonleft~↿~upharpoonright~↾~uplus~⊎~upsi~υ~upuparrows~⇈~urcorn~⌝~urcorner~⌝~urcrop~⌎~uring~ů~urtri~◹~uscr~𝓊~utdot~⋰~utilde~ũ~utri~▵~utrif~▴~uuarr~⇈~uwangle~⦧~vArr~⇕~vBar~⫨~vBarv~⫩~vDash~⊨~vangrt~⦜~varepsilon~ϵ~varkappa~ϰ~varnothing~∅~varphi~ϕ~varpi~ϖ~varpropto~∝~varr~↕~varrho~ϱ~varsigma~ς~varsubsetneq~⊊︀~varsubsetneqq~⫋︀~varsupsetneq~⊋︀~varsupsetneqq~⫌︀~vartheta~ϑ~vartriangleleft~⊲~vartriangleright~⊳~vcy~в~vdash~⊢~vee~∨~veebar~⊻~veeeq~≚~vellip~⋮~verbar~|~vert~|~vfr~𝔳~vltri~⊲~vnsub~⊂⃒~vnsup~⊃⃒~vopf~𝕧~vprop~∝~vrtri~⊳~vscr~𝓋~vsubnE~⫋︀~vsubne~⊊︀~vsupnE~⫌︀~vsupne~⊋︀~vzigzag~⦚~wcirc~ŵ~wedbar~⩟~wedge~∧~wedgeq~≙~wfr~𝔴~wopf~𝕨~wp~℘~wr~≀~wreath~≀~wscr~𝓌~xcap~⋂~xcirc~◯~xcup~⋃~xdtri~▽~xfr~𝔵~xhArr~⟺~xharr~⟷~xlArr~⟸~xlarr~⟵~xmap~⟼~xnis~⋻~xodot~⨀~xopf~𝕩~xoplus~⨁~xotime~⨂~xrArr~⟹~xrarr~⟶~xscr~𝓍~xsqcup~⨆~xuplus~⨄~xutri~△~xvee~⋁~xwedge~⋀~yacy~я~ycirc~ŷ~ycy~ы~yfr~𝔶~yicy~ї~yopf~𝕪~yscr~𝓎~yucy~ю~zacute~ź~zcaron~ž~zcy~з~zdot~ż~zeetrf~ℨ~zfr~𝔷~zhcy~ж~zigrarr~⇝~zopf~𝕫~zscr~𝓏~~AMP~&~COPY~©~GT~>~LT~<~QUOT~"~REG~®', at.html4);
|
|
1994
1994
|
var Zc = {
|
|
1995
1995
|
0: 65533,
|
|
1996
1996
|
128: 8364,
|
|
@@ -2088,9 +2088,9 @@ const An = (e) => {
|
|
|
2088
2088
|
return t;
|
|
2089
2089
|
}
|
|
2090
2090
|
return e;
|
|
2091
|
-
}, iu = (e) => e.includes("/openmrs/ws"), cu = (e) => e.url ?? e.baseURL ?? "",
|
|
2092
|
-
|
|
2093
|
-
|
|
2091
|
+
}, iu = (e) => e.includes("/openmrs/ws"), cu = (e) => e.url ?? e.baseURL ?? "", Me = ue.create();
|
|
2092
|
+
Me.defaults.headers.common["Content-Type"] = "application/json";
|
|
2093
|
+
Me.interceptors.request.use(
|
|
2094
2094
|
function(e) {
|
|
2095
2095
|
return e;
|
|
2096
2096
|
},
|
|
@@ -2099,7 +2099,7 @@ qe.interceptors.request.use(
|
|
|
2099
2099
|
return Promise.reject(`${t}: ${r}`);
|
|
2100
2100
|
}
|
|
2101
2101
|
);
|
|
2102
|
-
|
|
2102
|
+
Me.interceptors.response.use(
|
|
2103
2103
|
function(e) {
|
|
2104
2104
|
try {
|
|
2105
2105
|
const t = cu(e.config);
|
|
@@ -2116,7 +2116,7 @@ qe.interceptors.response.use(
|
|
|
2116
2116
|
return r.startsWith("ERROR_") || /^[A-Z_]+$/.test(r) ? Promise.reject(new Error(r)) : Promise.reject(`${t}: ${r}`);
|
|
2117
2117
|
}
|
|
2118
2118
|
);
|
|
2119
|
-
const
|
|
2119
|
+
const j = async (e) => (await Me.get(e)).data, Ue = async (e, t) => (await Me.post(e, t)).data, ng = async (e, t) => (await Me.put(e, t)).data, sg = async (e, t) => (await Me.patch(e, t)).data, uu = async (e) => (await Me.delete(e)).data, Y = (e) => typeof e == "string", ft = () => {
|
|
2120
2120
|
let e, t;
|
|
2121
2121
|
const r = new Promise((n, s) => {
|
|
2122
2122
|
e = n, t = s;
|
|
@@ -2283,7 +2283,7 @@ class Ar {
|
|
|
2283
2283
|
}
|
|
2284
2284
|
}
|
|
2285
2285
|
var Ie = new Ar();
|
|
2286
|
-
class
|
|
2286
|
+
class xr {
|
|
2287
2287
|
constructor() {
|
|
2288
2288
|
this.observers = {};
|
|
2289
2289
|
}
|
|
@@ -2317,7 +2317,7 @@ class Ur {
|
|
|
2317
2317
|
});
|
|
2318
2318
|
}
|
|
2319
2319
|
}
|
|
2320
|
-
class Es extends
|
|
2320
|
+
class Es extends xr {
|
|
2321
2321
|
constructor(t) {
|
|
2322
2322
|
let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
2323
2323
|
ns: ["translation"],
|
|
@@ -2402,7 +2402,7 @@ var Ia = {
|
|
|
2402
2402
|
}
|
|
2403
2403
|
};
|
|
2404
2404
|
const bs = {}, _s = (e) => !Y(e) && typeof e != "boolean" && typeof e != "number";
|
|
2405
|
-
class Nr extends
|
|
2405
|
+
class Nr extends xr {
|
|
2406
2406
|
constructor(t) {
|
|
2407
2407
|
let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2408
2408
|
super(), lu(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], t, this), this.options = r, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = Ie.create("translator");
|
|
@@ -2485,30 +2485,30 @@ class Nr extends Ur {
|
|
|
2485
2485
|
return s ? (m.res = q, m.usedParams = this.getUsedParamsDetails(r), m) : q;
|
|
2486
2486
|
}
|
|
2487
2487
|
if (o) {
|
|
2488
|
-
const q = Array.isArray(N),
|
|
2488
|
+
const q = Array.isArray(N), F = q ? [] : {}, H = q ? y : S;
|
|
2489
2489
|
for (const G in N)
|
|
2490
2490
|
if (Object.prototype.hasOwnProperty.call(N, G)) {
|
|
2491
2491
|
const re = `${H}${o}${G}`;
|
|
2492
|
-
h && !v ?
|
|
2492
|
+
h && !v ? F[G] = this.translate(re, {
|
|
2493
2493
|
...r,
|
|
2494
2494
|
defaultValue: _s(R) ? R[G] : void 0,
|
|
2495
2495
|
joinArrays: !1,
|
|
2496
2496
|
ns: i
|
|
2497
|
-
}) :
|
|
2497
|
+
}) : F[G] = this.translate(re, {
|
|
2498
2498
|
...r,
|
|
2499
2499
|
joinArrays: !1,
|
|
2500
2500
|
ns: i
|
|
2501
|
-
}),
|
|
2501
|
+
}), F[G] === re && (F[G] = N[G]);
|
|
2502
2502
|
}
|
|
2503
|
-
v =
|
|
2503
|
+
v = F;
|
|
2504
2504
|
}
|
|
2505
2505
|
} else if (p && Y(f) && Array.isArray(v))
|
|
2506
2506
|
v = v.join(f), v && (v = this.extendTranslation(v, t, r, n));
|
|
2507
2507
|
else {
|
|
2508
|
-
let q = !1,
|
|
2509
|
-
!this.isValidLookup(v) && h && (q = !0, v = R), this.isValidLookup(v) || (
|
|
2510
|
-
const G = (r.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) &&
|
|
2511
|
-
if (
|
|
2508
|
+
let q = !1, F = !1;
|
|
2509
|
+
!this.isValidLookup(v) && h && (q = !0, v = R), this.isValidLookup(v) || (F = !0, v = a);
|
|
2510
|
+
const G = (r.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && F ? void 0 : v, re = h && R !== v && this.options.updateMissing;
|
|
2511
|
+
if (F || q || re) {
|
|
2512
2512
|
if (this.logger.log(re ? "updateKey" : "missingKey", d, c, a, re ? R : v), o) {
|
|
2513
2513
|
const ie = this.resolve(a, {
|
|
2514
2514
|
...r,
|
|
@@ -2522,18 +2522,18 @@ class Nr extends Ur {
|
|
|
2522
2522
|
for (let ie = 0; ie < fe.length; ie++)
|
|
2523
2523
|
ne.push(fe[ie]);
|
|
2524
2524
|
else this.options.saveMissingTo === "all" ? ne = this.languageUtils.toResolveHierarchy(r.lng || this.language) : ne.push(r.lng || this.language);
|
|
2525
|
-
const J = (ie,
|
|
2526
|
-
const
|
|
2527
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(ie, c,
|
|
2525
|
+
const J = (ie, U, A) => {
|
|
2526
|
+
const C = h && A !== v ? A : G;
|
|
2527
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(ie, c, U, C, re, r) : this.backendConnector?.saveMissing && this.backendConnector.saveMissing(ie, c, U, C, re, r), this.emit("missingKey", ie, c, U, v);
|
|
2528
2528
|
};
|
|
2529
2529
|
this.options.saveMissing && (this.options.saveMissingPlurals && u ? ne.forEach((ie) => {
|
|
2530
|
-
const
|
|
2531
|
-
b && r[`defaultValue${this.options.pluralSeparator}zero`] &&
|
|
2530
|
+
const U = this.pluralResolver.getSuffixes(ie, r);
|
|
2531
|
+
b && r[`defaultValue${this.options.pluralSeparator}zero`] && U.indexOf(`${this.options.pluralSeparator}zero`) < 0 && U.push(`${this.options.pluralSeparator}zero`), U.forEach((A) => {
|
|
2532
2532
|
J([ie], a + A, r[`defaultValue${A}`] || R);
|
|
2533
2533
|
});
|
|
2534
2534
|
}) : J(ne, a, R));
|
|
2535
2535
|
}
|
|
2536
|
-
v = this.extendTranslation(v, t, r, m, n),
|
|
2536
|
+
v = this.extendTranslation(v, t, r, m, n), F && v === a && this.options.appendNamespaceToMissingKey && (v = `${c}:${a}`), (F || q) && this.options.parseMissingKeyHandler && (v = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}:${a}` : a, q ? v : void 0));
|
|
2537
2537
|
}
|
|
2538
2538
|
return s ? (m.res = v, m.usedParams = this.getUsedParamsDetails(r), m) : v;
|
|
2539
2539
|
}
|
|
@@ -3020,7 +3020,7 @@ class Ru {
|
|
|
3020
3020
|
const Tu = (e, t) => {
|
|
3021
3021
|
e.pending[t] !== void 0 && (delete e.pending[t], e.pendingCount--);
|
|
3022
3022
|
};
|
|
3023
|
-
class Ou extends
|
|
3023
|
+
class Ou extends xr {
|
|
3024
3024
|
constructor(t, r, n) {
|
|
3025
3025
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
3026
3026
|
super(), this.backend = t, this.store = r, this.services = n, this.languageUtils = n.languageUtils, this.options = s, this.logger = Ie.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = s.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = s.maxRetries >= 0 ? s.maxRetries : 5, this.retryTimeout = s.retryTimeout >= 1 ? s.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(n, s.backend, s);
|
|
@@ -3211,13 +3211,13 @@ const As = () => ({
|
|
|
3211
3211
|
maxReplaces: 1e3,
|
|
3212
3212
|
skipOnVariables: !0
|
|
3213
3213
|
}
|
|
3214
|
-
}), Ns = (e) => (Y(e.ns) && (e.ns = [e.ns]), Y(e.fallbackLng) && (e.fallbackLng = [e.fallbackLng]), Y(e.fallbackNS) && (e.fallbackNS = [e.fallbackNS]), e.supportedLngs?.indexOf?.("cimode") < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), typeof e.initImmediate == "boolean" && (e.initAsync = e.initImmediate), e),
|
|
3214
|
+
}), Ns = (e) => (Y(e.ns) && (e.ns = [e.ns]), Y(e.fallbackLng) && (e.fallbackLng = [e.fallbackLng]), Y(e.fallbackNS) && (e.fallbackNS = [e.fallbackNS]), e.supportedLngs?.indexOf?.("cimode") < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), typeof e.initImmediate == "boolean" && (e.initAsync = e.initImmediate), e), Dt = () => {
|
|
3215
3215
|
}, Au = (e) => {
|
|
3216
3216
|
Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((r) => {
|
|
3217
3217
|
typeof e[r] == "function" && (e[r] = e[r].bind(e));
|
|
3218
3218
|
});
|
|
3219
3219
|
};
|
|
3220
|
-
class _t extends
|
|
3220
|
+
class _t extends xr {
|
|
3221
3221
|
constructor() {
|
|
3222
3222
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 ? arguments[1] : void 0;
|
|
3223
3223
|
if (super(), this.options = Ns(t), this.services = {}, this.logger = Ie, this.modules = {
|
|
@@ -3268,7 +3268,7 @@ class _t extends Ur {
|
|
|
3268
3268
|
S.init && S.init(this);
|
|
3269
3269
|
});
|
|
3270
3270
|
}
|
|
3271
|
-
if (this.format = this.options.interpolation.format, n || (n =
|
|
3271
|
+
if (this.format = this.options.interpolation.format, n || (n = Dt), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
3272
3272
|
const l = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
|
3273
3273
|
l.length > 0 && l[0] !== "dev" && (this.options.lng = l[0]);
|
|
3274
3274
|
}
|
|
@@ -3291,7 +3291,7 @@ class _t extends Ur {
|
|
|
3291
3291
|
return this.options.resources || !this.options.initAsync ? d() : setTimeout(d, 0), c;
|
|
3292
3292
|
}
|
|
3293
3293
|
loadResources(t) {
|
|
3294
|
-
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
3294
|
+
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Dt;
|
|
3295
3295
|
const s = Y(t) ? t : this.language;
|
|
3296
3296
|
if (typeof t == "function" && (n = t), !this.options.resources || this.options.partialBundledLanguages) {
|
|
3297
3297
|
if (s?.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return n();
|
|
@@ -3309,7 +3309,7 @@ class _t extends Ur {
|
|
|
3309
3309
|
}
|
|
3310
3310
|
reloadResources(t, r, n) {
|
|
3311
3311
|
const s = ft();
|
|
3312
|
-
return typeof t == "function" && (n = t, t = void 0), typeof r == "function" && (n = r, r = void 0), t || (t = this.languages), r || (r = this.options.ns), n || (n =
|
|
3312
|
+
return typeof t == "function" && (n = t, t = void 0), typeof r == "function" && (n = r, r = void 0), t || (t = this.languages), r || (r = this.options.ns), n || (n = Dt), this.services.backendConnector.reload(t, r, (o) => {
|
|
3313
3313
|
s.resolve(), n(o);
|
|
3314
3314
|
}), s;
|
|
3315
3315
|
}
|
|
@@ -3426,7 +3426,7 @@ class _t extends Ur {
|
|
|
3426
3426
|
return new _t(t, r);
|
|
3427
3427
|
}
|
|
3428
3428
|
cloneInstance() {
|
|
3429
|
-
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
3429
|
+
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Dt;
|
|
3430
3430
|
const n = t.forkResourceStore;
|
|
3431
3431
|
n && delete t.forkResourceStore;
|
|
3432
3432
|
const s = {
|
|
@@ -3496,7 +3496,7 @@ function Pu(e) {
|
|
|
3496
3496
|
function Iu(e) {
|
|
3497
3497
|
return typeof e != "string" ? !1 : [/<\s*script.*?>/i, /<\s*\/\s*script\s*>/i, /<\s*img.*?on\w+\s*=/i, /<\s*\w+\s*on\w+\s*=.*?>/i, /javascript\s*:/i, /vbscript\s*:/i, /expression\s*\(/i, /eval\s*\(/i, /alert\s*\(/i, /document\.cookie/i, /document\.write\s*\(/i, /window\.location/i, /innerHTML/i].some((r) => r.test(e));
|
|
3498
3498
|
}
|
|
3499
|
-
const $s = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,
|
|
3499
|
+
const $s = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Du = function(e, t) {
|
|
3500
3500
|
const n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
3501
3501
|
path: "/"
|
|
3502
3502
|
}, s = encodeURIComponent(t);
|
|
@@ -3545,7 +3545,7 @@ const $s = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Cu = function(e, t) {
|
|
|
3545
3545
|
path: "/",
|
|
3546
3546
|
sameSite: "strict"
|
|
3547
3547
|
};
|
|
3548
|
-
r && (s.expires = /* @__PURE__ */ new Date(), s.expires.setTime(s.expires.getTime() + r * 60 * 1e3)), n && (s.domain = n), document.cookie =
|
|
3548
|
+
r && (s.expires = /* @__PURE__ */ new Date(), s.expires.setTime(s.expires.getTime() + r * 60 * 1e3)), n && (s.domain = n), document.cookie = Du(e, t, s);
|
|
3549
3549
|
},
|
|
3550
3550
|
read(e) {
|
|
3551
3551
|
const t = `${e}=`, r = document.cookie.split(";");
|
|
@@ -3560,7 +3560,7 @@ const $s = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Cu = function(e, t) {
|
|
|
3560
3560
|
this.create(e, "", -1, t);
|
|
3561
3561
|
}
|
|
3562
3562
|
};
|
|
3563
|
-
var
|
|
3563
|
+
var Cu = {
|
|
3564
3564
|
name: "cookie",
|
|
3565
3565
|
// Deconstruct the options object and extract the lookupCookie property
|
|
3566
3566
|
lookup(e) {
|
|
@@ -3644,7 +3644,7 @@ const Is = () => {
|
|
|
3644
3644
|
}
|
|
3645
3645
|
return Qe;
|
|
3646
3646
|
};
|
|
3647
|
-
var
|
|
3647
|
+
var Uu = {
|
|
3648
3648
|
name: "localStorage",
|
|
3649
3649
|
// Deconstruct the options object and extract the lookupLocalStorage property
|
|
3650
3650
|
lookup(e) {
|
|
@@ -3663,7 +3663,7 @@ var xu = {
|
|
|
3663
3663
|
}
|
|
3664
3664
|
};
|
|
3665
3665
|
let Xe = null;
|
|
3666
|
-
const
|
|
3666
|
+
const Ds = () => {
|
|
3667
3667
|
if (Xe !== null) return Xe;
|
|
3668
3668
|
try {
|
|
3669
3669
|
if (Xe = typeof window < "u" && window.sessionStorage !== null, !Xe)
|
|
@@ -3675,20 +3675,20 @@ const Cs = () => {
|
|
|
3675
3675
|
}
|
|
3676
3676
|
return Xe;
|
|
3677
3677
|
};
|
|
3678
|
-
var
|
|
3678
|
+
var xu = {
|
|
3679
3679
|
name: "sessionStorage",
|
|
3680
3680
|
lookup(e) {
|
|
3681
3681
|
let {
|
|
3682
3682
|
lookupSessionStorage: t
|
|
3683
3683
|
} = e;
|
|
3684
|
-
if (t &&
|
|
3684
|
+
if (t && Ds())
|
|
3685
3685
|
return window.sessionStorage.getItem(t) || void 0;
|
|
3686
3686
|
},
|
|
3687
3687
|
cacheUserLanguage(e, t) {
|
|
3688
3688
|
let {
|
|
3689
3689
|
lookupSessionStorage: r
|
|
3690
3690
|
} = t;
|
|
3691
|
-
r &&
|
|
3691
|
+
r && Ds() && window.sessionStorage.setItem(r, e);
|
|
3692
3692
|
}
|
|
3693
3693
|
}, qu = {
|
|
3694
3694
|
name: "navigator",
|
|
@@ -3717,7 +3717,7 @@ var Uu = {
|
|
|
3717
3717
|
const n = t || (typeof document < "u" ? document.documentElement : null);
|
|
3718
3718
|
return n && typeof n.getAttribute == "function" && (r = n.getAttribute("lang")), r;
|
|
3719
3719
|
}
|
|
3720
|
-
},
|
|
3720
|
+
}, Fu = {
|
|
3721
3721
|
name: "path",
|
|
3722
3722
|
// Deconstruct the options object and extract the lookupFromPathIndex property
|
|
3723
3723
|
lookup(e) {
|
|
@@ -3728,7 +3728,7 @@ var Uu = {
|
|
|
3728
3728
|
const r = window.location.pathname.match(/\/([a-zA-Z-]*)/g);
|
|
3729
3729
|
return Array.isArray(r) ? r[typeof t == "number" ? t : 0]?.replace("/", "") : void 0;
|
|
3730
3730
|
}
|
|
3731
|
-
},
|
|
3731
|
+
}, ju = {
|
|
3732
3732
|
name: "subdomain",
|
|
3733
3733
|
lookup(e) {
|
|
3734
3734
|
let {
|
|
@@ -3739,15 +3739,15 @@ var Uu = {
|
|
|
3739
3739
|
return n[r];
|
|
3740
3740
|
}
|
|
3741
3741
|
};
|
|
3742
|
-
let
|
|
3742
|
+
let Da = !1;
|
|
3743
3743
|
try {
|
|
3744
|
-
document.cookie,
|
|
3744
|
+
document.cookie, Da = !0;
|
|
3745
3745
|
} catch {
|
|
3746
3746
|
}
|
|
3747
|
-
const
|
|
3748
|
-
|
|
3747
|
+
const Ca = ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"];
|
|
3748
|
+
Da || Ca.splice(1, 1);
|
|
3749
3749
|
const Vu = () => ({
|
|
3750
|
-
order:
|
|
3750
|
+
order: Ca,
|
|
3751
3751
|
lookupQuerystring: "lng",
|
|
3752
3752
|
lookupCookie: "i18next",
|
|
3753
3753
|
lookupLocalStorage: "i18nextLng",
|
|
@@ -3768,7 +3768,7 @@ class La {
|
|
|
3768
3768
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
3769
3769
|
languageUtils: {}
|
|
3770
3770
|
}, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
3771
|
-
this.services = t, this.options = Pu(r, this.options || {}, Vu()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = (s) => s.replace("-", "_")), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = n, this.addDetector(
|
|
3771
|
+
this.services = t, this.options = Pu(r, this.options || {}, Vu()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = (s) => s.replace("-", "_")), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = n, this.addDetector(Cu), this.addDetector(Lu), this.addDetector(Uu), this.addDetector(xu), this.addDetector(qu), this.addDetector(Mu), this.addDetector(Fu), this.addDetector(ju), this.addDetector(ku);
|
|
3772
3772
|
}
|
|
3773
3773
|
addDetector(t) {
|
|
3774
3774
|
return this.detectors[t.name] = t, this;
|
|
@@ -3790,18 +3790,18 @@ class La {
|
|
|
3790
3790
|
}
|
|
3791
3791
|
}
|
|
3792
3792
|
La.type = "languageDetector";
|
|
3793
|
-
const Hu = process.env.PUBLIC_URL ?? "/", ce = "/openmrs/ws/fhir2/R4",
|
|
3793
|
+
const Hu = process.env.PUBLIC_URL ?? "/", ce = "/openmrs/ws/fhir2/R4", X = "/openmrs/ws/rest/v1", Bu = "/openmrs/ws/rest/v2", zu = "bahmni.user", og = "/bahmni/home/index.html", Gu = X + "/session", Ku = "en", ka = "NG_TRANSLATE_LANG_KEY", Yu = (e, t) => Hu + `${e}/locales/locale_${t}.json`, Wu = (e, t) => `/bahmni_config/openmrs/i18n/${e}/locale_${t}.json`, qr = () => localStorage.getItem(ka) ?? Ku, Cs = async (e) => {
|
|
3794
3794
|
try {
|
|
3795
|
-
const t = await
|
|
3795
|
+
const t = await j(e);
|
|
3796
3796
|
return t || (console.error(`Invalid response from ${e}`), {});
|
|
3797
3797
|
} catch (t) {
|
|
3798
3798
|
return console.error(`Failed to load translations from ${e}:`, t), {};
|
|
3799
3799
|
}
|
|
3800
3800
|
}, Ls = async (e, t) => {
|
|
3801
3801
|
let r = {}, n = {};
|
|
3802
|
-
return r = await
|
|
3802
|
+
return r = await Cs(
|
|
3803
3803
|
Yu(e, t)
|
|
3804
|
-
), n = await
|
|
3804
|
+
), n = await Cs(
|
|
3805
3805
|
Wu(e, t)
|
|
3806
3806
|
), {
|
|
3807
3807
|
...r,
|
|
@@ -3814,7 +3814,7 @@ const Hu = process.env.PUBLIC_URL ?? "/", ce = "/openmrs/ws/fhir2/R4", Z = "/ope
|
|
|
3814
3814
|
}, e !== "en" && (r.en = {
|
|
3815
3815
|
[t]: await Ls(t, "en")
|
|
3816
3816
|
}), r;
|
|
3817
|
-
},
|
|
3817
|
+
}, ag = (e, t) => {
|
|
3818
3818
|
const r = e.toUpperCase(), n = t.toUpperCase().replace(/\s+/g, "_").replace(/[^A-Z0-9_]/g, "");
|
|
3819
3819
|
return `${r}_${n}`;
|
|
3820
3820
|
}, Qu = (e, t) => {
|
|
@@ -3831,7 +3831,7 @@ const Hu = process.env.PUBLIC_URL ?? "/", ce = "/openmrs/ws/fhir2/R4", Z = "/ope
|
|
|
3831
3831
|
labels: n.labels ?? {},
|
|
3832
3832
|
concepts: n.concepts ?? {}
|
|
3833
3833
|
};
|
|
3834
|
-
},
|
|
3834
|
+
}, ig = async (e) => {
|
|
3835
3835
|
const t = qr(), r = await Ju(t, e);
|
|
3836
3836
|
return await le.use(La).use(pi).init({
|
|
3837
3837
|
fallbackLng: "en",
|
|
@@ -3850,7 +3850,7 @@ const Hu = process.env.PUBLIC_URL ?? "/", ce = "/openmrs/ws/fhir2/R4", Z = "/ope
|
|
|
3850
3850
|
}
|
|
3851
3851
|
}), le;
|
|
3852
3852
|
};
|
|
3853
|
-
function
|
|
3853
|
+
function cg() {
|
|
3854
3854
|
const e = bn(null), t = bn(null), r = Wr(async () => {
|
|
3855
3855
|
t.current && (t.current.getTracks().forEach((a) => a.stop()), t.current = null);
|
|
3856
3856
|
const o = await navigator.mediaDevices.getUserMedia({
|
|
@@ -3873,10 +3873,10 @@ function sg() {
|
|
|
3873
3873
|
}, []);
|
|
3874
3874
|
return _n(() => () => n(), [n]), { videoRef: e, start: r, stop: n, capture: s };
|
|
3875
3875
|
}
|
|
3876
|
-
const Xu = "bahmni.enableAuditLog",
|
|
3876
|
+
const Xu = "bahmni.enableAuditLog", Ua = (e) => `${X}/bahmnicore/sql/globalproperty?property=${e}`, ug = async (e, t, r) => {
|
|
3877
3877
|
const { exact: n = !0, refetchActiveNow: s = !0 } = r ?? {};
|
|
3878
3878
|
await e.cancelQueries({ queryKey: t, exact: n }), await e.removeQueries({ queryKey: t, exact: n }), await e.invalidateQueries({ queryKey: t, exact: n }), s && await e.refetchQueries({ queryKey: t, exact: n, type: "active" });
|
|
3879
|
-
},
|
|
3879
|
+
}, lg = () => Math.random().toString(36).substring(2, 9), dg = () => {
|
|
3880
3880
|
if (typeof globalThis < "u" && globalThis.crypto?.randomUUID)
|
|
3881
3881
|
return globalThis.crypto.randomUUID();
|
|
3882
3882
|
const e = globalThis.crypto || globalThis.msCrypto;
|
|
@@ -3888,10 +3888,10 @@ const Xu = "bahmni.enableAuditLog", xa = (e) => `${Z}/bahmnicore/sql/globalprope
|
|
|
3888
3888
|
"Crypto API (crypto.randomUUID or crypto.getRandomValues) is not available. UUID generation requires cryptographically secure random number generation."
|
|
3889
3889
|
);
|
|
3890
3890
|
};
|
|
3891
|
-
function
|
|
3891
|
+
function fg(e, t = " -") {
|
|
3892
3892
|
return e ? e.toLowerCase().split(new RegExp(`[${t}]+`)).map((n) => n.charAt(0).toUpperCase() + n.slice(1)).join(" ") : "";
|
|
3893
3893
|
}
|
|
3894
|
-
function
|
|
3894
|
+
function xa(e) {
|
|
3895
3895
|
const r = document.cookie.split(";");
|
|
3896
3896
|
for (const n of r) {
|
|
3897
3897
|
const [s, o] = n.trim().split("=");
|
|
@@ -3900,7 +3900,7 @@ function Ua(e) {
|
|
|
3900
3900
|
}
|
|
3901
3901
|
return "";
|
|
3902
3902
|
}
|
|
3903
|
-
const
|
|
3903
|
+
const pg = (e) => !e || e.trim().length === 0, hg = (e, t) => {
|
|
3904
3904
|
if (!e || !t || t.length === 0)
|
|
3905
3905
|
return 999;
|
|
3906
3906
|
const r = t.findIndex(
|
|
@@ -3908,7 +3908,7 @@ const ug = (e) => !e || e.trim().length === 0, lg = (e, t) => {
|
|
|
3908
3908
|
);
|
|
3909
3909
|
return r === -1 ? 999 : r;
|
|
3910
3910
|
};
|
|
3911
|
-
function
|
|
3911
|
+
function mg(e, t) {
|
|
3912
3912
|
if (!e || e.length === 0)
|
|
3913
3913
|
return [];
|
|
3914
3914
|
const r = /* @__PURE__ */ new Map();
|
|
@@ -3920,7 +3920,7 @@ function dg(e, t) {
|
|
|
3920
3920
|
items: s
|
|
3921
3921
|
}));
|
|
3922
3922
|
}
|
|
3923
|
-
function
|
|
3923
|
+
function gg(e, t, r) {
|
|
3924
3924
|
if (!e || e.length === 0)
|
|
3925
3925
|
return [];
|
|
3926
3926
|
const n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set();
|
|
@@ -3941,7 +3941,7 @@ function Zu(e) {
|
|
|
3941
3941
|
o[n(a[1])] = n(a[2]);
|
|
3942
3942
|
return o;
|
|
3943
3943
|
}
|
|
3944
|
-
function
|
|
3944
|
+
function yg(e, t, r) {
|
|
3945
3945
|
const n = /{{([^}]*)}}/g, s = e.match(n);
|
|
3946
3946
|
let o = e;
|
|
3947
3947
|
const a = r ?? !1, i = a ? Zu() : {};
|
|
@@ -3954,7 +3954,7 @@ function pg(e, t, r) {
|
|
|
3954
3954
|
const el = (e) => new Promise((t, r) => {
|
|
3955
3955
|
const n = new FileReader();
|
|
3956
3956
|
n.onloadend = () => t(n.result), n.onerror = r, n.readAsDataURL(e);
|
|
3957
|
-
}),
|
|
3957
|
+
}), vg = (e) => {
|
|
3958
3958
|
if (typeof e == "number" && !isNaN(e))
|
|
3959
3959
|
return "number";
|
|
3960
3960
|
if (typeof e != "string")
|
|
@@ -3962,29 +3962,29 @@ const el = (e) => new Promise((t, r) => {
|
|
|
3962
3962
|
const t = e.toLowerCase();
|
|
3963
3963
|
return t.endsWith(".pdf") ? "PDF" : [".png", ".jpg", ".jpeg", ".gif", ".bmp", ".svg"].some((s) => t.endsWith(s)) ? "Image" : [".mp4", ".ogg", ".webm", ".mkv", ".flv"].some((s) => t.endsWith(s)) ? "Video" : typeof e == "string" ? "string" : "object";
|
|
3964
3964
|
};
|
|
3965
|
-
function
|
|
3965
|
+
function wg(e) {
|
|
3966
3966
|
return e.replace(/[\s-]+/g, "_").replace(/([a-z])([A-Z])/g, "$1_$2").replace(/([A-Z])([A-Z][a-z])/g, "$1_$2").toUpperCase();
|
|
3967
3967
|
}
|
|
3968
|
-
function
|
|
3968
|
+
function Eg(e) {
|
|
3969
3969
|
return e ? e.replaceAll(/[_-]/g, " ").replaceAll(/([a-z])([A-Z])/g, "$1 $2").replaceAll(/([A-Z])([A-Z][a-z])/g, "$1 $2").replaceAll(/([a-z])(\d)/gi, "$1 $2").replaceAll(/(\d)([a-z])/gi, "$1 $2").replaceAll(/\s+/g, " ").trim().toLowerCase().replace(/^./, (t) => t.toUpperCase()) : "";
|
|
3970
3970
|
}
|
|
3971
|
-
const tl = (e) =>
|
|
3972
|
-
async function
|
|
3973
|
-
const e =
|
|
3971
|
+
const tl = (e) => X + `/user?username=${e}&v=custom:(username,uuid)`, rl = "bahmni.user.location", nl = (e) => X + `/bahmni/app/setting?module=${e}`, sl = "default_dateFormat";
|
|
3972
|
+
async function bg() {
|
|
3973
|
+
const e = xa(zu);
|
|
3974
3974
|
if (!e)
|
|
3975
3975
|
return null;
|
|
3976
3976
|
try {
|
|
3977
3977
|
const t = decodeURIComponent(e).replace(
|
|
3978
3978
|
/^"(.*)"$/,
|
|
3979
3979
|
"$1"
|
|
3980
|
-
), r = await
|
|
3980
|
+
), r = await j(tl(t));
|
|
3981
3981
|
return !r.results || r.results.length === 0 ? null : r.results[0];
|
|
3982
3982
|
} catch {
|
|
3983
3983
|
throw new Error(le.t("ERROR_FETCHING_USER_DETAILS"));
|
|
3984
3984
|
}
|
|
3985
3985
|
}
|
|
3986
3986
|
const qn = () => {
|
|
3987
|
-
const e =
|
|
3987
|
+
const e = xa(rl) ?? null;
|
|
3988
3988
|
if (!e)
|
|
3989
3989
|
throw new Error(le.t("ERROR_FETCHING_USER_LOCATION_DETAILS"));
|
|
3990
3990
|
const t = JSON.parse(
|
|
@@ -3993,7 +3993,7 @@ const qn = () => {
|
|
|
3993
3993
|
if (!t.uuid)
|
|
3994
3994
|
throw new Error(le.t("ERROR_FETCHING_USER_LOCATION_DETAILS"));
|
|
3995
3995
|
return t;
|
|
3996
|
-
},
|
|
3996
|
+
}, _g = async () => (await j(nl("commons"))).find(
|
|
3997
3997
|
(r) => r.property === sl
|
|
3998
3998
|
)?.value ?? null, Mn = {
|
|
3999
3999
|
person: {
|
|
@@ -4027,7 +4027,7 @@ const qn = () => {
|
|
|
4027
4027
|
o && s.fields.forEach((a) => {
|
|
4028
4028
|
n.append(o.searchFieldParam, a), n.append(o.resultParam, a);
|
|
4029
4029
|
});
|
|
4030
|
-
}), `${
|
|
4030
|
+
}), `${X}/bahmni/search/patient/lucene?${n.toString()}`;
|
|
4031
4031
|
}, cl = (e, t, r, n, s) => {
|
|
4032
4032
|
const o = e.trim(), a = new URLSearchParams({
|
|
4033
4033
|
loginLocationUuid: s,
|
|
@@ -4037,16 +4037,16 @@ const qn = () => {
|
|
|
4037
4037
|
}), i = Mn[t];
|
|
4038
4038
|
return i && (a.set(i.searchParam, o), r.forEach((c) => {
|
|
4039
4039
|
a.append(i.searchFieldParam, c);
|
|
4040
|
-
})), ol(a, n),
|
|
4041
|
-
}, qa =
|
|
4040
|
+
})), ol(a, n), X + `/bahmni/search/patient?${a.toString()}`;
|
|
4041
|
+
}, qa = X + "/idgen/identifiertype", ul = (e) => X + `/bahmni/app/setting?module=${e}`, ll = "bahmni.primaryIdentifierType", dl = X + "/bahmnicore/patientprofile", fl = (e) => X + `/bahmnicore/patientprofile/${e}`, pl = (e) => X + `/patientprofile/${e}?v=full`, hl = (e, t, r = 20, n) => {
|
|
4042
4042
|
let s = `/openmrs/module/addresshierarchy/ajax/getPossibleAddressHierarchyEntriesWithParents.form?addressField=${e}&limit=${r}&searchString=${encodeURIComponent(t)}`;
|
|
4043
4043
|
return n && (s += `&parent=${n}`), s;
|
|
4044
|
-
}, ml = "/openmrs/module/addresshierarchy/ajax/getOrderedAddressHierarchyLevels.form", gl =
|
|
4044
|
+
}, ml = "/openmrs/module/addresshierarchy/ajax/getOrderedAddressHierarchyLevels.form", gl = X + "/relationshiptype?v=custom:(aIsToB,bIsToA,uuid)&limit=150", yl = 20, vl = 2, Sg = 120, Rg = 50, Tg = 15, wl = /^[a-f0-9-]{36}$/i, El = (e) => Bu + `/patientImage?patientUuid=${e}`, bl = X + "/personattributetype?v=custom:(uuid,name,sortWeight,description,format,concept:(uuid,display,answers:(uuid,name)))", _l = async (e) => {
|
|
4045
4045
|
if (!e || e.trim() === "")
|
|
4046
4046
|
throw new Error("Invalid patient UUID: UUID cannot be empty");
|
|
4047
4047
|
if (!wl.test(e))
|
|
4048
4048
|
throw new Error(`Invalid patient UUID format: ${e}`);
|
|
4049
|
-
return
|
|
4049
|
+
return j(al(e));
|
|
4050
4050
|
}, Sl = (e) => !e.extension || !Array.isArray(e.extension) ? [] : e.extension.flatMap((t) => t.extension && Array.isArray(t.extension) ? t.extension.filter((r) => r.valueString).map((r) => r.valueString) : []), Rl = (e) => {
|
|
4051
4051
|
if (!e.name || e.name.length === 0)
|
|
4052
4052
|
return null;
|
|
@@ -4074,22 +4074,22 @@ const qn = () => {
|
|
|
4074
4074
|
formattedContact: r,
|
|
4075
4075
|
identifiers: s
|
|
4076
4076
|
};
|
|
4077
|
-
},
|
|
4077
|
+
}, Og = async (e) => {
|
|
4078
4078
|
const t = await _l(e);
|
|
4079
4079
|
return Al(t);
|
|
4080
|
-
},
|
|
4080
|
+
}, Ag = async (e) => {
|
|
4081
4081
|
const t = await fetch(El(e));
|
|
4082
4082
|
if (!t.ok) return null;
|
|
4083
4083
|
const r = await t.blob();
|
|
4084
4084
|
return await el(r);
|
|
4085
|
-
},
|
|
4085
|
+
}, Ng = async (e, t) => {
|
|
4086
4086
|
const r = qn();
|
|
4087
|
-
return await
|
|
4087
|
+
return await j(
|
|
4088
4088
|
il(e, r.uuid, t)
|
|
4089
4089
|
);
|
|
4090
|
-
},
|
|
4090
|
+
}, $g = async (e, t, r, n, s) => {
|
|
4091
4091
|
const o = qn();
|
|
4092
|
-
return await
|
|
4092
|
+
return await j(
|
|
4093
4093
|
cl(
|
|
4094
4094
|
e,
|
|
4095
4095
|
t,
|
|
@@ -4098,11 +4098,11 @@ const qn = () => {
|
|
|
4098
4098
|
o.uuid
|
|
4099
4099
|
)
|
|
4100
4100
|
);
|
|
4101
|
-
},
|
|
4101
|
+
}, Pg = async () => j(qa), Nl = async () => (await j(ul("core"))).find(
|
|
4102
4102
|
(r) => r.property === ll
|
|
4103
|
-
)?.value ?? null,
|
|
4103
|
+
)?.value ?? null, Ig = async () => {
|
|
4104
4104
|
const [e, t] = await Promise.all([
|
|
4105
|
-
|
|
4105
|
+
j(qa),
|
|
4106
4106
|
Nl()
|
|
4107
4107
|
]), r = [], n = /* @__PURE__ */ new Map();
|
|
4108
4108
|
if (!t)
|
|
@@ -4117,14 +4117,14 @@ const qn = () => {
|
|
|
4117
4117
|
sourcesByPrefix: n,
|
|
4118
4118
|
primaryIdentifierTypeUuid: t
|
|
4119
4119
|
}) : { prefixes: r, sourcesByPrefix: n, primaryIdentifierTypeUuid: t };
|
|
4120
|
-
},
|
|
4120
|
+
}, Dg = async (e) => Ue(dl, e), Cg = async (e, t) => Ue(
|
|
4121
4121
|
fl(e),
|
|
4122
4122
|
t
|
|
4123
|
-
),
|
|
4123
|
+
), Lg = async () => j(Ua("mrs.genders")), kg = async (e, t, r = yl, n) => {
|
|
4124
4124
|
if (!t || t.length < vl)
|
|
4125
4125
|
return [];
|
|
4126
4126
|
try {
|
|
4127
|
-
return await
|
|
4127
|
+
return await j(
|
|
4128
4128
|
hl(e, t, r, n)
|
|
4129
4129
|
);
|
|
4130
4130
|
} catch (s) {
|
|
@@ -4132,9 +4132,9 @@ const qn = () => {
|
|
|
4132
4132
|
`Failed to fetch address hierarchy for field "${e}": ${s instanceof Error ? s.message : "Unknown error"}`
|
|
4133
4133
|
);
|
|
4134
4134
|
}
|
|
4135
|
-
},
|
|
4135
|
+
}, Ug = async () => j(ml), xg = async (e) => j(pl(e)), qg = async () => {
|
|
4136
4136
|
try {
|
|
4137
|
-
return (await
|
|
4137
|
+
return (await j(
|
|
4138
4138
|
gl
|
|
4139
4139
|
)).results.map((t) => ({
|
|
4140
4140
|
uuid: t.uuid,
|
|
@@ -4146,12 +4146,12 @@ const qn = () => {
|
|
|
4146
4146
|
`Failed to fetch relationship types: ${e instanceof Error ? e.message : "Unknown error"}`
|
|
4147
4147
|
);
|
|
4148
4148
|
}
|
|
4149
|
-
},
|
|
4149
|
+
}, Mg = async () => j(bl);
|
|
4150
4150
|
var $l = /* @__PURE__ */ ((e) => (e.BOOLEAN = "java.lang.Boolean", e.BOOLEAN_DATATYPE = "org.openmrs.customdatatype.datatype.BooleanDatatype", e.CONCEPT = "org.openmrs.Concept", e.CODED_CONCEPT = "org.bahmni.module.bahmnicore.customdatatype.datatype.CodedConceptDatatype", e.CONCEPT_DATATYPE = "org.openmrs.customdatatype.datatype.ConceptDatatype", e.STRING = "java.lang.String", e.FREE_TEXT = "org.openmrs.customdatatype.datatype.FreeTextDatatype", e.REGEX_VALIDATED_TEXT = "org.openmrs.customdatatype.datatype.RegexValidatedTextDatatype", e.INTEGER = "java.lang.Integer", e.FLOAT = "java.lang.Float", e.ATTRIBUTABLE_DATE = "org.openmrs.util.AttributableDate", e.DATE_DATATYPE = "org.openmrs.customdatatype.datatype.DateDatatype", e))($l || {}), Pl = /* @__PURE__ */ ((e) => (e.CHECKBOX = "checkbox", e.DROPDOWN = "dropdown", e.TEXT = "text", e.NUMBER = "number", e.DATE = "date", e))(Pl || {});
|
|
4151
|
-
const
|
|
4151
|
+
const Fg = (e) => e === "java.lang.Boolean" || e === "org.openmrs.customdatatype.datatype.BooleanDatatype" ? "checkbox" : e === "org.openmrs.Concept" || e === "org.bahmni.module.bahmnicore.customdatatype.datatype.CodedConceptDatatype" || e === "org.openmrs.customdatatype.datatype.ConceptDatatype" ? "dropdown" : e === "java.lang.Integer" || e === "java.lang.Float" ? "number" : e === "org.openmrs.util.AttributableDate" || e === "org.openmrs.customdatatype.datatype.DateDatatype" ? "date" : "text", jg = (e) => e === "java.lang.Boolean" || e === "org.openmrs.customdatatype.datatype.BooleanDatatype", Vg = (e) => e === "org.openmrs.Concept" || e === "org.bahmni.module.bahmnicore.customdatatype.datatype.CodedConceptDatatype" || e === "org.openmrs.customdatatype.datatype.ConceptDatatype", Hg = (e) => e === "java.lang.Integer" || e === "java.lang.Float", Bg = (e) => e === "org.openmrs.util.AttributableDate" || e === "org.openmrs.customdatatype.datatype.DateDatatype", zg = (e) => e === "java.lang.String" || e === "org.openmrs.customdatatype.datatype.FreeTextDatatype" || e === "org.openmrs.customdatatype.datatype.RegexValidatedTextDatatype", Il = (e) => {
|
|
4152
4152
|
const t = new CustomEvent("bahmni-audit-log", { detail: e });
|
|
4153
4153
|
window.dispatchEvent(t);
|
|
4154
|
-
},
|
|
4154
|
+
}, Dl = (e) => {
|
|
4155
4155
|
const t = (r) => {
|
|
4156
4156
|
e(r.detail);
|
|
4157
4157
|
};
|
|
@@ -4199,33 +4199,33 @@ const xg = (e) => e === "java.lang.Boolean" || e === "org.openmrs.customdatatype
|
|
|
4199
4199
|
eventType: "VIEWED_RADIOLOGY_RESULTS",
|
|
4200
4200
|
message: "VIEWED_RADIOLOGY_RESULTS_MESSAGE"
|
|
4201
4201
|
}
|
|
4202
|
-
},
|
|
4202
|
+
}, Cl = X + "/auditlog", Ll = {
|
|
4203
4203
|
UNKNOWN_EVENT_TYPE: "AUDIT_LOG_ERROR_UNKNOWN_EVENT_TYPE"
|
|
4204
|
-
}, kl = () =>
|
|
4204
|
+
}, kl = () => X + "/bahmnicore/config/bahmniencounter?callerContext=REGISTRATION_CONCEPTS", Ul = X + "/visit", xl = (e) => X + `/visit?patient=${e}&includeInactive=false&v=custom:(uuid,visitType,startDatetime,stopDatetime)`, ql = (e) => X + `/bahmnicore/visitLocation/${e}`, Gg = async () => j(kl()), Ml = async (e) => j(xl(e)), Fl = async (e) => j(ql(e)), jl = async (e) => Ue(Ul, e), Kg = async (e) => {
|
|
4205
4205
|
const t = await Ml(e);
|
|
4206
4206
|
return t?.results && t.results.length > 0;
|
|
4207
|
-
},
|
|
4208
|
-
const r = await
|
|
4207
|
+
}, Yg = async (e, t) => {
|
|
4208
|
+
const r = await Fl(
|
|
4209
4209
|
qn().uuid
|
|
4210
4210
|
), n = {
|
|
4211
4211
|
patient: e,
|
|
4212
4212
|
visitType: t.uuid,
|
|
4213
4213
|
location: r.uuid
|
|
4214
|
-
}, s = await
|
|
4214
|
+
}, s = await jl(n);
|
|
4215
4215
|
return Il({
|
|
4216
4216
|
eventType: $n.OPEN_VISIT.eventType,
|
|
4217
4217
|
patientUuid: e,
|
|
4218
4218
|
messageParams: { visitType: t.name },
|
|
4219
4219
|
module: $n.OPEN_VISIT.module
|
|
4220
4220
|
}), s;
|
|
4221
|
-
}, Ma = 6048e5, Vl = 864e5,
|
|
4221
|
+
}, Ma = 6048e5, Vl = 864e5, Fn = 6e4, Fa = 36e5, ks = /* @__PURE__ */ Symbol.for("constructDateFrom");
|
|
4222
4222
|
function Oe(e, t) {
|
|
4223
4223
|
return typeof e == "function" ? e(t) : e && typeof e == "object" && ks in e ? e[ks](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
4224
4224
|
}
|
|
4225
4225
|
function de(e, t) {
|
|
4226
4226
|
return Oe(t || e, e);
|
|
4227
4227
|
}
|
|
4228
|
-
function
|
|
4228
|
+
function ja(e, t, r) {
|
|
4229
4229
|
const n = de(e, r?.in);
|
|
4230
4230
|
return isNaN(t) ? Oe(e, NaN) : (t && n.setDate(n.getDate() + t), n);
|
|
4231
4231
|
}
|
|
@@ -4244,11 +4244,11 @@ function Mr(e, t, r) {
|
|
|
4244
4244
|
), n);
|
|
4245
4245
|
}
|
|
4246
4246
|
let Hl = {};
|
|
4247
|
-
function
|
|
4247
|
+
function Fr() {
|
|
4248
4248
|
return Hl;
|
|
4249
4249
|
}
|
|
4250
4250
|
function St(e, t) {
|
|
4251
|
-
const r =
|
|
4251
|
+
const r = Fr(), n = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, s = de(e, t?.in), o = s.getDay(), a = (o < n ? 7 : 0) + o - n;
|
|
4252
4252
|
return s.setDate(s.getDate() - a), s.setHours(0, 0, 0, 0), s;
|
|
4253
4253
|
}
|
|
4254
4254
|
function $r(e, t) {
|
|
@@ -4262,7 +4262,7 @@ function Va(e, t) {
|
|
|
4262
4262
|
const i = $r(a);
|
|
4263
4263
|
return r.getTime() >= o.getTime() ? n + 1 : r.getTime() >= i.getTime() ? n : n - 1;
|
|
4264
4264
|
}
|
|
4265
|
-
function
|
|
4265
|
+
function Us(e) {
|
|
4266
4266
|
const t = de(e), r = new Date(
|
|
4267
4267
|
Date.UTC(
|
|
4268
4268
|
t.getFullYear(),
|
|
@@ -4283,7 +4283,7 @@ function ut(e, ...t) {
|
|
|
4283
4283
|
);
|
|
4284
4284
|
return t.map(r);
|
|
4285
4285
|
}
|
|
4286
|
-
function
|
|
4286
|
+
function xs(e, t) {
|
|
4287
4287
|
const r = de(e, t?.in);
|
|
4288
4288
|
return r.setHours(0, 0, 0, 0), r;
|
|
4289
4289
|
}
|
|
@@ -4292,7 +4292,7 @@ function Ha(e, t, r) {
|
|
|
4292
4292
|
r?.in,
|
|
4293
4293
|
e,
|
|
4294
4294
|
t
|
|
4295
|
-
), o =
|
|
4295
|
+
), o = xs(n), a = xs(s), i = +o - Us(o), c = +a - Us(a);
|
|
4296
4296
|
return Math.round((i - c) / Vl);
|
|
4297
4297
|
}
|
|
4298
4298
|
function Bl(e, t) {
|
|
@@ -4301,9 +4301,9 @@ function Bl(e, t) {
|
|
|
4301
4301
|
}
|
|
4302
4302
|
function zl(e, t, r) {
|
|
4303
4303
|
const n = de(e, r?.in);
|
|
4304
|
-
return n.setTime(n.getTime() + t *
|
|
4304
|
+
return n.setTime(n.getTime() + t * Fn), n;
|
|
4305
4305
|
}
|
|
4306
|
-
function
|
|
4306
|
+
function jn(e, t, r) {
|
|
4307
4307
|
return Mr(e, t * 12, r);
|
|
4308
4308
|
}
|
|
4309
4309
|
function Et(e, t) {
|
|
@@ -4821,16 +4821,16 @@ const vd = /^(\d+)(th|st|nd|rd)?/i, wd = /\d+/i, Ed = {
|
|
|
4821
4821
|
firstWeekContainsDate: 1
|
|
4822
4822
|
}
|
|
4823
4823
|
};
|
|
4824
|
-
function
|
|
4824
|
+
function Dd(e, t) {
|
|
4825
4825
|
const r = de(e, t?.in);
|
|
4826
4826
|
return Ha(r, Xl(r)) + 1;
|
|
4827
4827
|
}
|
|
4828
|
-
function
|
|
4828
|
+
function Cd(e, t) {
|
|
4829
4829
|
const r = de(e, t?.in), n = +$r(r) - +Bl(r);
|
|
4830
4830
|
return Math.round(n / Ma) + 1;
|
|
4831
4831
|
}
|
|
4832
4832
|
function Ba(e, t) {
|
|
4833
|
-
const r = de(e, t?.in), n = r.getFullYear(), s =
|
|
4833
|
+
const r = de(e, t?.in), n = r.getFullYear(), s = Fr(), o = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? s.firstWeekContainsDate ?? s.locale?.options?.firstWeekContainsDate ?? 1, a = Oe(t?.in || e, 0);
|
|
4834
4834
|
a.setFullYear(n + 1, 0, o), a.setHours(0, 0, 0, 0);
|
|
4835
4835
|
const i = St(a, t), c = Oe(t?.in || e, 0);
|
|
4836
4836
|
c.setFullYear(n, 0, o), c.setHours(0, 0, 0, 0);
|
|
@@ -4838,7 +4838,7 @@ function Ba(e, t) {
|
|
|
4838
4838
|
return +r >= +i ? n + 1 : +r >= +d ? n : n - 1;
|
|
4839
4839
|
}
|
|
4840
4840
|
function Ld(e, t) {
|
|
4841
|
-
const r =
|
|
4841
|
+
const r = Fr(), n = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, s = Ba(e, t), o = Oe(t?.in || e, 0);
|
|
4842
4842
|
return o.setFullYear(s, 0, n), o.setHours(0, 0, 0, 0), St(o, t);
|
|
4843
4843
|
}
|
|
4844
4844
|
function kd(e, t) {
|
|
@@ -5087,7 +5087,7 @@ const xe = {
|
|
|
5087
5087
|
},
|
|
5088
5088
|
// ISO week of year
|
|
5089
5089
|
I: function(e, t, r) {
|
|
5090
|
-
const n =
|
|
5090
|
+
const n = Cd(e);
|
|
5091
5091
|
return t === "Io" ? r.ordinalNumber(n, { unit: "week" }) : ae(n, t.length);
|
|
5092
5092
|
},
|
|
5093
5093
|
// Day of the month
|
|
@@ -5096,7 +5096,7 @@ const xe = {
|
|
|
5096
5096
|
},
|
|
5097
5097
|
// Day of year
|
|
5098
5098
|
D: function(e, t, r) {
|
|
5099
|
-
const n =
|
|
5099
|
+
const n = Dd(e);
|
|
5100
5100
|
return t === "Do" ? r.ordinalNumber(n, { unit: "dayOfYear" }) : ae(n, t.length);
|
|
5101
5101
|
},
|
|
5102
5102
|
// Day of week
|
|
@@ -5363,7 +5363,7 @@ const xe = {
|
|
|
5363
5363
|
switch (t) {
|
|
5364
5364
|
// Hours and optional minutes
|
|
5365
5365
|
case "X":
|
|
5366
|
-
return
|
|
5366
|
+
return js(n);
|
|
5367
5367
|
// Hours, minutes and optional seconds without `:` delimiter
|
|
5368
5368
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
5369
5369
|
// so this token always has the same output as `XX`
|
|
@@ -5381,7 +5381,7 @@ const xe = {
|
|
|
5381
5381
|
switch (t) {
|
|
5382
5382
|
// Hours and optional minutes
|
|
5383
5383
|
case "x":
|
|
5384
|
-
return
|
|
5384
|
+
return js(n);
|
|
5385
5385
|
// Hours, minutes and optional seconds without `:` delimiter
|
|
5386
5386
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
5387
5387
|
// so this token always has the same output as `xx`
|
|
@@ -5401,7 +5401,7 @@ const xe = {
|
|
|
5401
5401
|
case "O":
|
|
5402
5402
|
case "OO":
|
|
5403
5403
|
case "OOO":
|
|
5404
|
-
return "GMT" +
|
|
5404
|
+
return "GMT" + Fs(n, ":");
|
|
5405
5405
|
default:
|
|
5406
5406
|
return "GMT" + Be(n, ":");
|
|
5407
5407
|
}
|
|
@@ -5414,7 +5414,7 @@ const xe = {
|
|
|
5414
5414
|
case "z":
|
|
5415
5415
|
case "zz":
|
|
5416
5416
|
case "zzz":
|
|
5417
|
-
return "GMT" +
|
|
5417
|
+
return "GMT" + Fs(n, ":");
|
|
5418
5418
|
default:
|
|
5419
5419
|
return "GMT" + Be(n, ":");
|
|
5420
5420
|
}
|
|
@@ -5429,11 +5429,11 @@ const xe = {
|
|
|
5429
5429
|
return ae(+e, t.length);
|
|
5430
5430
|
}
|
|
5431
5431
|
};
|
|
5432
|
-
function
|
|
5432
|
+
function Fs(e, t = "") {
|
|
5433
5433
|
const r = e > 0 ? "-" : "+", n = Math.abs(e), s = Math.trunc(n / 60), o = n % 60;
|
|
5434
5434
|
return o === 0 ? r + String(s) : r + String(s) + t + ae(o, 2);
|
|
5435
5435
|
}
|
|
5436
|
-
function
|
|
5436
|
+
function js(e, t) {
|
|
5437
5437
|
return e % 60 === 0 ? (e > 0 ? "-" : "+") + ae(Math.abs(e) / 60, 2) : Be(e, t);
|
|
5438
5438
|
}
|
|
5439
5439
|
function Be(e, t = "") {
|
|
@@ -5462,7 +5462,7 @@ const Vs = (e, t) => {
|
|
|
5462
5462
|
default:
|
|
5463
5463
|
return t.time({ width: "full" });
|
|
5464
5464
|
}
|
|
5465
|
-
},
|
|
5465
|
+
}, Ud = (e, t) => {
|
|
5466
5466
|
const r = e.match(/(P+)(p+)?/) || [], n = r[1], s = r[2];
|
|
5467
5467
|
if (!s)
|
|
5468
5468
|
return Vs(e, t);
|
|
@@ -5482,11 +5482,11 @@ const Vs = (e, t) => {
|
|
|
5482
5482
|
break;
|
|
5483
5483
|
}
|
|
5484
5484
|
return o.replace("{{date}}", Vs(n, t)).replace("{{time}}", za(s, t));
|
|
5485
|
-
},
|
|
5485
|
+
}, xd = {
|
|
5486
5486
|
p: za,
|
|
5487
|
-
P:
|
|
5488
|
-
}, qd = /^D+$/, Md = /^Y+$/,
|
|
5489
|
-
function
|
|
5487
|
+
P: Ud
|
|
5488
|
+
}, qd = /^D+$/, Md = /^Y+$/, Fd = ["D", "DD", "YY", "YYYY"];
|
|
5489
|
+
function jd(e) {
|
|
5490
5490
|
return qd.test(e);
|
|
5491
5491
|
}
|
|
5492
5492
|
function Vd(e) {
|
|
@@ -5494,7 +5494,7 @@ function Vd(e) {
|
|
|
5494
5494
|
}
|
|
5495
5495
|
function Hd(e, t, r) {
|
|
5496
5496
|
const n = Bd(e, t, r);
|
|
5497
|
-
if (console.warn(n),
|
|
5497
|
+
if (console.warn(n), Fd.includes(e)) throw new RangeError(n);
|
|
5498
5498
|
}
|
|
5499
5499
|
function Bd(e, t, r) {
|
|
5500
5500
|
const n = e[0] === "Y" ? "years" : "days of the month";
|
|
@@ -5502,13 +5502,13 @@ function Bd(e, t, r) {
|
|
|
5502
5502
|
}
|
|
5503
5503
|
const zd = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Gd = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Kd = /^'([^]*?)'?$/, Yd = /''/g, Wd = /[a-zA-Z]/;
|
|
5504
5504
|
function Jd(e, t, r) {
|
|
5505
|
-
const n =
|
|
5505
|
+
const n = Fr(), s = n.locale ?? Id, o = n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, a = n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = de(e, r?.in);
|
|
5506
5506
|
if (!$t(i))
|
|
5507
5507
|
throw new RangeError("Invalid time value");
|
|
5508
5508
|
let c = t.match(Gd).map((l) => {
|
|
5509
5509
|
const m = l[0];
|
|
5510
5510
|
if (m === "p" || m === "P") {
|
|
5511
|
-
const v =
|
|
5511
|
+
const v = xd[m];
|
|
5512
5512
|
return v(l, s.formatLong);
|
|
5513
5513
|
}
|
|
5514
5514
|
return l;
|
|
@@ -5535,7 +5535,7 @@ function Jd(e, t, r) {
|
|
|
5535
5535
|
return c.map((l) => {
|
|
5536
5536
|
if (!l.isToken) return l.value;
|
|
5537
5537
|
const m = l.value;
|
|
5538
|
-
(Vd(m) ||
|
|
5538
|
+
(Vd(m) || jd(m)) && Hd(m, t, String(e));
|
|
5539
5539
|
const v = Ms[m[0]];
|
|
5540
5540
|
return v(i, m, s.localize, d);
|
|
5541
5541
|
}).join("");
|
|
@@ -5545,7 +5545,7 @@ function Qd(e) {
|
|
|
5545
5545
|
return t ? t[1].replace(Yd, "'") : e;
|
|
5546
5546
|
}
|
|
5547
5547
|
function Xd(e, t, r) {
|
|
5548
|
-
return
|
|
5548
|
+
return ja(e, -t, r);
|
|
5549
5549
|
}
|
|
5550
5550
|
function Bn(e, t) {
|
|
5551
5551
|
const r = () => Oe(t?.in, NaN), s = rf(e);
|
|
@@ -5576,21 +5576,21 @@ function Bn(e, t) {
|
|
|
5576
5576
|
}
|
|
5577
5577
|
return de(a + i + c, t?.in);
|
|
5578
5578
|
}
|
|
5579
|
-
const
|
|
5579
|
+
const Ct = {
|
|
5580
5580
|
dateTimeDelimiter: /[T ]/,
|
|
5581
5581
|
timeZoneDelimiter: /[Z ]/i,
|
|
5582
5582
|
timezone: /([Z+-].*)$/
|
|
5583
5583
|
}, Zd = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, ef = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, tf = /^([+-])(\d{2})(?::?(\d{2}))?$/;
|
|
5584
5584
|
function rf(e) {
|
|
5585
|
-
const t = {}, r = e.split(
|
|
5585
|
+
const t = {}, r = e.split(Ct.dateTimeDelimiter);
|
|
5586
5586
|
let n;
|
|
5587
5587
|
if (r.length > 2)
|
|
5588
5588
|
return t;
|
|
5589
|
-
if (/:/.test(r[0]) ? n = r[0] : (t.date = r[0], n = r[1],
|
|
5589
|
+
if (/:/.test(r[0]) ? n = r[0] : (t.date = r[0], n = r[1], Ct.timeZoneDelimiter.test(t.date) && (t.date = e.split(Ct.timeZoneDelimiter)[0], n = e.substr(
|
|
5590
5590
|
t.date.length,
|
|
5591
5591
|
e.length
|
|
5592
5592
|
))), n) {
|
|
5593
|
-
const s =
|
|
5593
|
+
const s = Ct.timezone.exec(n);
|
|
5594
5594
|
s ? (t.time = n.replace(s[1], ""), t.timezone = s[1]) : t.time = n;
|
|
5595
5595
|
}
|
|
5596
5596
|
return t;
|
|
@@ -5625,7 +5625,7 @@ function of(e) {
|
|
|
5625
5625
|
const t = e.match(ef);
|
|
5626
5626
|
if (!t) return NaN;
|
|
5627
5627
|
const r = on(t[1]), n = on(t[2]), s = on(t[3]);
|
|
5628
|
-
return pf(r, n, s) ? r *
|
|
5628
|
+
return pf(r, n, s) ? r * Fa + n * Fn + s * 1e3 : NaN;
|
|
5629
5629
|
}
|
|
5630
5630
|
function on(e) {
|
|
5631
5631
|
return e && parseFloat(e.replace(",", ".")) || 0;
|
|
@@ -5635,7 +5635,7 @@ function af(e) {
|
|
|
5635
5635
|
const t = e.match(tf);
|
|
5636
5636
|
if (!t) return 0;
|
|
5637
5637
|
const r = t[1] === "+" ? -1 : 1, n = parseInt(t[2]), s = t[3] && parseInt(t[3]) || 0;
|
|
5638
|
-
return hf(n, s) ? r * (n *
|
|
5638
|
+
return hf(n, s) ? r * (n * Fa + s * Fn) : NaN;
|
|
5639
5639
|
}
|
|
5640
5640
|
function cf(e, t, r) {
|
|
5641
5641
|
const n = /* @__PURE__ */ new Date(0);
|
|
@@ -5669,9 +5669,9 @@ function gf(e, t, r) {
|
|
|
5669
5669
|
return zl(e, -1, r);
|
|
5670
5670
|
}
|
|
5671
5671
|
function yf(e, t, r) {
|
|
5672
|
-
return
|
|
5672
|
+
return jn(e, -t, r);
|
|
5673
5673
|
}
|
|
5674
|
-
const
|
|
5674
|
+
const Wg = {
|
|
5675
5675
|
PROPOSED: "proposed",
|
|
5676
5676
|
PENDING: "pending",
|
|
5677
5677
|
BOOKED: "booked",
|
|
@@ -5682,37 +5682,37 @@ const zg = {
|
|
|
5682
5682
|
CHECKED_IN: "checked-in",
|
|
5683
5683
|
WAITLIST: "waitlist",
|
|
5684
5684
|
ENTERED_IN_ERROR: "entered-in-error"
|
|
5685
|
-
}, vf =
|
|
5685
|
+
}, vf = X + "/appointments/search", Ka = X + "/appointments", Jg = "http://fhir.bahmni.org/code-system/appointments", wf = (e) => `${Ka}/${e}`, jr = (e, t, r, n) => {
|
|
5686
5686
|
const s = t === "upcoming", o = s ? "ge" : "le", a = s ? "date" : "-date", i = s ? (/* @__PURE__ */ new Date()).toISOString() : gf(/* @__PURE__ */ new Date()).toISOString();
|
|
5687
5687
|
let c = `${ce}/Appointment?patient=${e}&date=${o}${i}&_sort=${a}`;
|
|
5688
5688
|
return r !== void 0 && r > 0 && (c += `&_count=${r}`), n !== void 0 && n > 0 && (c += `&_getpagesoffset=${n}`), c;
|
|
5689
|
-
}, Ef = (e) =>
|
|
5690
|
-
async function
|
|
5691
|
-
return await
|
|
5689
|
+
}, Ef = (e) => jr(e, "upcoming"), bf = (e, t) => jr(e, "past", t), _f = (e) => `${Ka}/${e}/status-change`, Sf = X + "/appointmentService/all/full", Rf = (e) => `${X}/appointmentService?uuid=${e}`, Tf = (e, t = 10, r = 0) => jr(e, "upcoming", t, r), Of = (e, t = 10, r = 0) => jr(e, "past", t, r), Qg = async (e) => await Ue(vf, e);
|
|
5690
|
+
async function Xg(e) {
|
|
5691
|
+
return await j(Ef(e));
|
|
5692
5692
|
}
|
|
5693
|
-
async function
|
|
5694
|
-
return await
|
|
5693
|
+
async function Zg(e, t) {
|
|
5694
|
+
return await j(
|
|
5695
5695
|
bf(e, t)
|
|
5696
5696
|
);
|
|
5697
5697
|
}
|
|
5698
|
-
const
|
|
5698
|
+
const ey = async (e, t, r) => await Ue(_f(e), {
|
|
5699
5699
|
toStatus: t,
|
|
5700
5700
|
onDate: r
|
|
5701
5701
|
});
|
|
5702
|
-
async function
|
|
5703
|
-
return await
|
|
5702
|
+
async function ty(e) {
|
|
5703
|
+
return await j(wf(e));
|
|
5704
5704
|
}
|
|
5705
|
-
const
|
|
5705
|
+
const ry = async () => await j(Sf), ny = async (e) => {
|
|
5706
5706
|
await uu(Rf(e));
|
|
5707
5707
|
};
|
|
5708
|
-
async function
|
|
5709
|
-
const n = (r - 1) * t, s = await
|
|
5708
|
+
async function sy(e, t = 10, r = 1) {
|
|
5709
|
+
const n = (r - 1) * t, s = await j(
|
|
5710
5710
|
Tf(e, t, n)
|
|
5711
5711
|
);
|
|
5712
5712
|
return { bundle: s, total: s.total ?? s.entry?.length ?? 0 };
|
|
5713
5713
|
}
|
|
5714
|
-
async function
|
|
5715
|
-
const n = (r - 1) * t, s = await
|
|
5714
|
+
async function oy(e, t = 10, r = 1) {
|
|
5715
|
+
const n = (r - 1) * t, s = await j(
|
|
5716
5716
|
Of(e, t, n)
|
|
5717
5717
|
);
|
|
5718
5718
|
return { bundle: s, total: s.total ?? s.entry?.length ?? 0 };
|
|
@@ -5724,14 +5724,14 @@ const Af = "dd/MM/yyyy", Nf = "default_dateFormat", $f = "P", Pf = "h:mm a", Te
|
|
|
5724
5724
|
INVALID_FORMAT: "DATE_ERROR_INVALID_FORMAT",
|
|
5725
5725
|
NULL_OR_UNDEFINED: "DATE_ERROR_NULL_OR_UNDEFINED"
|
|
5726
5726
|
};
|
|
5727
|
-
function
|
|
5727
|
+
function ay(e) {
|
|
5728
5728
|
if (typeof e != "string" || !/^\d{4}-\d{2}-\d{2}$/.test(e))
|
|
5729
5729
|
return null;
|
|
5730
5730
|
const t = Bn(e);
|
|
5731
5731
|
if (!$t(t)) return null;
|
|
5732
5732
|
const r = /* @__PURE__ */ new Date();
|
|
5733
5733
|
if (t > r) return null;
|
|
5734
|
-
const n = Hn(r, t), s =
|
|
5734
|
+
const n = Hn(r, t), s = jn(t, n), o = Vn(r, s), a = Mr(s, o), i = Pn(r, a);
|
|
5735
5735
|
return { years: n, months: o, days: i };
|
|
5736
5736
|
}
|
|
5737
5737
|
function Ya(e, t) {
|
|
@@ -5780,7 +5780,7 @@ function If(e, t, r) {
|
|
|
5780
5780
|
}
|
|
5781
5781
|
} : { formattedResult: Jd(n, t) };
|
|
5782
5782
|
}
|
|
5783
|
-
function
|
|
5783
|
+
function iy(e, t, r = !1, n) {
|
|
5784
5784
|
const s = t ?? ((a) => a);
|
|
5785
5785
|
let o;
|
|
5786
5786
|
try {
|
|
@@ -5790,7 +5790,7 @@ function ny(e, t, r = !1, n) {
|
|
|
5790
5790
|
}
|
|
5791
5791
|
return r && !n && (o = `${o} ${Pf}`), If(e, o, s);
|
|
5792
5792
|
}
|
|
5793
|
-
function
|
|
5793
|
+
function cy(e, t, r) {
|
|
5794
5794
|
if (!e || !$t(e) || t === null || t === void 0 || !r || typeof t != "number")
|
|
5795
5795
|
return;
|
|
5796
5796
|
const n = new Date(e);
|
|
@@ -5805,7 +5805,7 @@ function sy(e, t, r) {
|
|
|
5805
5805
|
return;
|
|
5806
5806
|
}
|
|
5807
5807
|
}
|
|
5808
|
-
function
|
|
5808
|
+
function uy(e, t) {
|
|
5809
5809
|
if (e == null)
|
|
5810
5810
|
return {
|
|
5811
5811
|
formattedResult: "",
|
|
@@ -5857,12 +5857,12 @@ function oy(e, t) {
|
|
|
5857
5857
|
}
|
|
5858
5858
|
return { formattedResult: c };
|
|
5859
5859
|
}
|
|
5860
|
-
const
|
|
5860
|
+
const ly = () => {
|
|
5861
5861
|
const e = /* @__PURE__ */ new Date();
|
|
5862
5862
|
return e.setHours(0, 0, 0, 0), e;
|
|
5863
5863
|
};
|
|
5864
|
-
function
|
|
5865
|
-
const r = typeof e == "string" ? Bn(e) : new Date(e), n = /* @__PURE__ */ new Date(), s = Hn(n, r), o =
|
|
5864
|
+
function dy(e, t) {
|
|
5865
|
+
const r = typeof e == "string" ? Bn(e) : new Date(e), n = /* @__PURE__ */ new Date(), s = Hn(n, r), o = jn(r, s), a = Vn(n, o), i = Mr(o, a), c = Pn(n, i), d = {
|
|
5866
5866
|
years: "YEARS",
|
|
5867
5867
|
months: "MONTHS",
|
|
5868
5868
|
days: "DAYS"
|
|
@@ -5887,7 +5887,7 @@ function iy(e, t) {
|
|
|
5887
5887
|
return `${y}${p}`;
|
|
5888
5888
|
}).join(" ");
|
|
5889
5889
|
}
|
|
5890
|
-
const
|
|
5890
|
+
const Df = {
|
|
5891
5891
|
d: 1,
|
|
5892
5892
|
wk: 7,
|
|
5893
5893
|
mo: 30,
|
|
@@ -5895,14 +5895,14 @@ const Cf = {
|
|
|
5895
5895
|
h: 1 / 24,
|
|
5896
5896
|
min: 1 / 1440,
|
|
5897
5897
|
s: 1 / 86400
|
|
5898
|
-
},
|
|
5898
|
+
}, fy = (e, t, r) => {
|
|
5899
5899
|
const n = typeof e == "string" ? new Date(e) : e;
|
|
5900
5900
|
if (isNaN(n.getTime()))
|
|
5901
5901
|
throw new Error(`Invalid date: ${e}`);
|
|
5902
|
-
const s =
|
|
5903
|
-
return
|
|
5904
|
-
},
|
|
5905
|
-
function
|
|
5902
|
+
const s = Df[r] ?? 1, o = t * s;
|
|
5903
|
+
return ja(n, o);
|
|
5904
|
+
}, py = (e, t, r, n) => e <= n && r <= t;
|
|
5905
|
+
function hy(e, t, r = !1) {
|
|
5906
5906
|
return !e || !Array.isArray(e) ? [] : e.sort((n, s) => {
|
|
5907
5907
|
const o = new Date(n[t]), a = new Date(s[t]);
|
|
5908
5908
|
if (isNaN(o.getTime()) && isNaN(a.getTime())) return 0;
|
|
@@ -5912,7 +5912,7 @@ function ly(e, t, r = !1) {
|
|
|
5912
5912
|
return r ? i : -i;
|
|
5913
5913
|
});
|
|
5914
5914
|
}
|
|
5915
|
-
const
|
|
5915
|
+
const Cf = () => {
|
|
5916
5916
|
let e = null;
|
|
5917
5917
|
return {
|
|
5918
5918
|
// Method to register the callback
|
|
@@ -5941,21 +5941,21 @@ const Df = () => {
|
|
|
5941
5941
|
);
|
|
5942
5942
|
}
|
|
5943
5943
|
};
|
|
5944
|
-
},
|
|
5945
|
-
const r = qr(), n =
|
|
5946
|
-
return
|
|
5944
|
+
}, my = Cf(), Lf = (e) => ce + `/ValueSet/${e}/$expand`, kf = (e) => ce + `/ValueSet/$expand?filter=${encodeURIComponent(e)}`, Uf = (e, t, r) => X + `/bahmni/terminologies/concepts?limit=${t}&locale=${r}&term=${e}`, xf = (e) => X + `/concept/${e}`, qf = (e) => `${X}/concept?s=byFullySpecifiedName&name=${encodeURIComponent(e)}`, Mf = "SHORT", Ff = "FULLY_SPECIFIED", gy = async (e, t = 20) => {
|
|
5945
|
+
const r = qr(), n = Uf(e, t, r);
|
|
5946
|
+
return j(n);
|
|
5947
5947
|
}, br = async (e) => {
|
|
5948
5948
|
const t = Lf(e);
|
|
5949
|
-
return
|
|
5950
|
-
},
|
|
5949
|
+
return j(t);
|
|
5950
|
+
}, jf = async (e) => {
|
|
5951
5951
|
const t = `${kf(e)}`;
|
|
5952
|
-
return
|
|
5952
|
+
return j(t);
|
|
5953
5953
|
};
|
|
5954
|
-
async function
|
|
5955
|
-
return await
|
|
5954
|
+
async function yy(e) {
|
|
5955
|
+
return await j(xf(e));
|
|
5956
5956
|
}
|
|
5957
|
-
async function
|
|
5958
|
-
const t = qf(e), r = await
|
|
5957
|
+
async function vy(e) {
|
|
5958
|
+
const t = qf(e), r = await j(t);
|
|
5959
5959
|
return !r.results || r.results.length === 0 ? null : r.results[0];
|
|
5960
5960
|
}
|
|
5961
5961
|
function Vf(e) {
|
|
@@ -5964,7 +5964,7 @@ function Vf(e) {
|
|
|
5964
5964
|
for (const r of e) {
|
|
5965
5965
|
if (r.conceptNameType === Mf)
|
|
5966
5966
|
return r.name;
|
|
5967
|
-
r.conceptNameType ===
|
|
5967
|
+
r.conceptNameType === Ff && (t = r.name);
|
|
5968
5968
|
}
|
|
5969
5969
|
return t ?? e[0].name ?? null;
|
|
5970
5970
|
}
|
|
@@ -5990,7 +5990,7 @@ const Hf = (e) => ce + `/AllergyIntolerance?patient=${e}&_count=100&_sort=-_last
|
|
|
5990
5990
|
}), an = (e, t) => {
|
|
5991
5991
|
const r = e.expansion?.contains ?? [];
|
|
5992
5992
|
return zf(r).map((s) => Gf(s, t));
|
|
5993
|
-
},
|
|
5993
|
+
}, wy = async (e, t, r) => {
|
|
5994
5994
|
const n = e ?? et.MEDICATION.code, s = t ?? et.FOOD.code, o = r ?? et.ENVIRONMENT.code, [a, i, c] = await Promise.all([
|
|
5995
5995
|
br(n),
|
|
5996
5996
|
br(s),
|
|
@@ -6010,12 +6010,12 @@ const Hf = (e) => ce + `/AllergyIntolerance?patient=${e}&_count=100&_sort=-_last
|
|
|
6010
6010
|
et.ENVIRONMENT.display
|
|
6011
6011
|
)
|
|
6012
6012
|
];
|
|
6013
|
-
},
|
|
6013
|
+
}, Ey = async (e) => {
|
|
6014
6014
|
const t = e ?? Bf.code;
|
|
6015
6015
|
return (await br(t)).compose?.include[0]?.concept ?? [];
|
|
6016
6016
|
};
|
|
6017
6017
|
async function Kf(e) {
|
|
6018
|
-
return await
|
|
6018
|
+
return await j(`${Hf(e)}`);
|
|
6019
6019
|
}
|
|
6020
6020
|
async function Yf(e) {
|
|
6021
6021
|
return (await Kf(e)).entry?.map(
|
|
@@ -6044,23 +6044,23 @@ function Wf(e) {
|
|
|
6044
6044
|
};
|
|
6045
6045
|
});
|
|
6046
6046
|
}
|
|
6047
|
-
async function
|
|
6047
|
+
async function by(e) {
|
|
6048
6048
|
const t = await Yf(e);
|
|
6049
6049
|
return Wf(t);
|
|
6050
6050
|
}
|
|
6051
6051
|
var Jf = /* @__PURE__ */ ((e) => (e.Active = "Active", e.Inactive = "Inactive", e))(Jf || {}), Qf = /* @__PURE__ */ ((e) => (e.mild = "mild", e.moderate = "moderate", e.severe = "severe", e))(Qf || {});
|
|
6052
|
-
const
|
|
6052
|
+
const _y = "http://fhir.openmrs.org/code-system/encounter-type", Wa = "problem-list-item", Sy = "http://terminology.hl7.org/CodeSystem/condition-ver-status", Ja = "encounter-diagnosis", Ry = "http://terminology.hl7.org/CodeSystem/condition-clinical", Ty = "http://terminology.hl7.org/CodeSystem/condition-category", Oy = "http://fhir.bahmni.org/ext/lab-order-concept-type", Ay = "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", Ny = "http://fhir.bahmni.org/ext/observation/form-namespace-path", $y = "http://fhir.bahmni.org/ext/observation/obs-value-attachment", Py = "Numeric", Iy = "Complex", Dy = "final", Cy = "Observation", Ly = /^\d{4}-\d{2}-\d{2}/, Xf = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/, ky = {
|
|
6053
6053
|
ABNORMAL: { code: "A", display: "Abnormal" },
|
|
6054
6054
|
NORMAL: { code: "N", display: "Normal" }
|
|
6055
6055
|
}, Zf = (e) => ce + `/Condition?category=${Wa}&patient=${e}&_count=100&_sort=-_lastUpdated`, ep = (e, t = 10, r = 0) => ce + `/Condition?category=${Wa}&patient=${e}&_count=${t}&_getpagesoffset=${r}&_sort=-_lastUpdated`;
|
|
6056
6056
|
async function tp(e) {
|
|
6057
|
-
return await
|
|
6057
|
+
return await j(`${Zf(e)}`);
|
|
6058
6058
|
}
|
|
6059
|
-
async function
|
|
6059
|
+
async function Uy(e) {
|
|
6060
6060
|
return (await tp(e)).entry?.filter((n) => n.resource?.resourceType === "Condition").map((n) => n.resource) ?? [];
|
|
6061
6061
|
}
|
|
6062
|
-
async function
|
|
6063
|
-
const n = (r - 1) * t, s = await
|
|
6062
|
+
async function xy(e, t = 10, r = 1) {
|
|
6063
|
+
const n = (r - 1) * t, s = await j(
|
|
6064
6064
|
ep(e, t, n)
|
|
6065
6065
|
);
|
|
6066
6066
|
return {
|
|
@@ -6081,10 +6081,10 @@ const rp = (e) => ce + `/Condition?category=${Ja}&patient=${e}&_count=100&_sort=
|
|
|
6081
6081
|
}
|
|
6082
6082
|
], sp = "confirmed", op = "provisional";
|
|
6083
6083
|
async function ap(e) {
|
|
6084
|
-
return await
|
|
6084
|
+
return await j(rp(e));
|
|
6085
6085
|
}
|
|
6086
6086
|
async function ip(e, t, r) {
|
|
6087
|
-
return await
|
|
6087
|
+
return await j(
|
|
6088
6088
|
np(e, t, r)
|
|
6089
6089
|
);
|
|
6090
6090
|
}
|
|
@@ -6125,11 +6125,11 @@ function lp(e) {
|
|
|
6125
6125
|
}
|
|
6126
6126
|
return Array.from(t.values());
|
|
6127
6127
|
}
|
|
6128
|
-
async function
|
|
6128
|
+
async function qy(e) {
|
|
6129
6129
|
const t = await ap(e), r = Qa(t);
|
|
6130
6130
|
return lp(r);
|
|
6131
6131
|
}
|
|
6132
|
-
async function
|
|
6132
|
+
async function My(e, t = 10, r = 1) {
|
|
6133
6133
|
const n = (r - 1) * t, s = await ip(
|
|
6134
6134
|
e,
|
|
6135
6135
|
t,
|
|
@@ -6155,7 +6155,7 @@ const bt = {
|
|
|
6155
6155
|
}, fp = (e, t, r) => {
|
|
6156
6156
|
let s = `${ce + "/MedicationRequest?" + bt.SORT + "&" + bt.COUNT + "&" + bt.INCLUDE_MEDICATION}&patient=${e}`;
|
|
6157
6157
|
return t && (s += `&code=${t}`), r && (s += `&encounter=${r}`), s;
|
|
6158
|
-
}, pp =
|
|
6158
|
+
}, pp = X + "/bahmnicore/config/drugOrders", hp = (e, t) => ce + `/Medication?name=${encodeURIComponent(e)}&_count=${t}&_sort=-_lastUpdated`, mp = ce + "/Medication?code=http://hl7.org/fhir/sid/cvx|&_count=100", gp = (e) => {
|
|
6159
6159
|
switch (e.status) {
|
|
6160
6160
|
case "active":
|
|
6161
6161
|
return ke.Active;
|
|
@@ -6181,7 +6181,7 @@ async function yp(e, t, r, n = !1) {
|
|
|
6181
6181
|
let o;
|
|
6182
6182
|
t && t.length > 0 && (o = t.join(","));
|
|
6183
6183
|
const i = (n ? fp : dp)(e, o, s);
|
|
6184
|
-
return await
|
|
6184
|
+
return await j(i);
|
|
6185
6185
|
}
|
|
6186
6186
|
function vp(e) {
|
|
6187
6187
|
const t = e?.[0]?.doseAndRate?.[0]?.doseQuantity;
|
|
@@ -6303,7 +6303,7 @@ function Np(e) {
|
|
|
6303
6303
|
});
|
|
6304
6304
|
}
|
|
6305
6305
|
const Hs = (e) => e.priority === "stat" || e.dosageInstruction?.[0]?.timing?.code?.text === "Immediately" || !1;
|
|
6306
|
-
async function
|
|
6306
|
+
async function Fy(e, t, r, n = !1) {
|
|
6307
6307
|
const s = await yp(
|
|
6308
6308
|
e,
|
|
6309
6309
|
t,
|
|
@@ -6312,18 +6312,18 @@ async function xy(e, t, r, n = !1) {
|
|
|
6312
6312
|
);
|
|
6313
6313
|
return Np(s);
|
|
6314
6314
|
}
|
|
6315
|
-
async function
|
|
6316
|
-
return await
|
|
6315
|
+
async function jy() {
|
|
6316
|
+
return await j(
|
|
6317
6317
|
pp
|
|
6318
6318
|
);
|
|
6319
6319
|
}
|
|
6320
|
-
async function
|
|
6321
|
-
return await
|
|
6320
|
+
async function Vy(e, t = 20) {
|
|
6321
|
+
return await j(
|
|
6322
6322
|
hp(e, t)
|
|
6323
6323
|
);
|
|
6324
6324
|
}
|
|
6325
|
-
async function
|
|
6326
|
-
return await
|
|
6325
|
+
async function Hy() {
|
|
6326
|
+
return await j(mp);
|
|
6327
6327
|
}
|
|
6328
6328
|
const $p = 200, Pp = (e, t, r, n, s) => {
|
|
6329
6329
|
let a = `${ce + `/ServiceRequest?_count=${$p}&_sort=-_lastUpdated`}&category=${e}&patient=${t}`;
|
|
@@ -6344,7 +6344,7 @@ function Ip(e) {
|
|
|
6344
6344
|
async function Pt(e, t, r, n, s) {
|
|
6345
6345
|
let o;
|
|
6346
6346
|
r && r.length > 0 && (o = r.join(","));
|
|
6347
|
-
const a = await
|
|
6347
|
+
const a = await j(
|
|
6348
6348
|
Pp(
|
|
6349
6349
|
e,
|
|
6350
6350
|
t,
|
|
@@ -6355,7 +6355,8 @@ async function Pt(e, t, r, n, s) {
|
|
|
6355
6355
|
);
|
|
6356
6356
|
return a.entry && (a.entry = Ip(a.entry), a.total = a.entry.length), a;
|
|
6357
6357
|
}
|
|
6358
|
-
|
|
6358
|
+
const Dp = (e) => `${ce}/ImagingStudy/${e}/$fetch-quality-assessment`;
|
|
6359
|
+
async function By(e, t, r, n) {
|
|
6359
6360
|
return await Pt(
|
|
6360
6361
|
t,
|
|
6361
6362
|
e,
|
|
@@ -6363,7 +6364,7 @@ async function jy(e, t, r, n) {
|
|
|
6363
6364
|
n
|
|
6364
6365
|
);
|
|
6365
6366
|
}
|
|
6366
|
-
async function
|
|
6367
|
+
async function zy(e, t, r, n) {
|
|
6367
6368
|
return await Pt(
|
|
6368
6369
|
t,
|
|
6369
6370
|
e,
|
|
@@ -6372,7 +6373,7 @@ async function Fy(e, t, r, n) {
|
|
|
6372
6373
|
"ImagingStudy:basedon"
|
|
6373
6374
|
);
|
|
6374
6375
|
}
|
|
6375
|
-
async function
|
|
6376
|
+
async function Gy(e, t, r, n) {
|
|
6376
6377
|
return (await Pt(
|
|
6377
6378
|
t,
|
|
6378
6379
|
e,
|
|
@@ -6380,7 +6381,10 @@ async function Vy(e, t, r, n) {
|
|
|
6380
6381
|
n
|
|
6381
6382
|
)).entry?.filter((a) => a.resource?.resourceType === "ServiceRequest").map((a) => a.resource) ?? [];
|
|
6382
6383
|
}
|
|
6383
|
-
async function
|
|
6384
|
+
async function Ky(e) {
|
|
6385
|
+
return await j(Dp(e));
|
|
6386
|
+
}
|
|
6387
|
+
async function Yy(e, t, r, n) {
|
|
6384
6388
|
return await Pt(
|
|
6385
6389
|
t,
|
|
6386
6390
|
e,
|
|
@@ -6391,33 +6395,33 @@ async function Hy(e, t, r, n) {
|
|
|
6391
6395
|
const Cp = (e, t) => {
|
|
6392
6396
|
const r = `${ce}/DiagnosticReport?patient=${e}`;
|
|
6393
6397
|
return t ? `${r}&based-on=${t}` : r;
|
|
6394
|
-
},
|
|
6395
|
-
async function
|
|
6398
|
+
}, Lp = (e) => `${ce}/DiagnosticReport/${e}/$fetch-bundle`, kp = (e) => `${ce}/DiagnosticReport/${e}/$update-bundle`;
|
|
6399
|
+
async function Wy(e, t = []) {
|
|
6396
6400
|
const r = t.length > 0 ? t.join(",") : void 0, n = Cp(e, r);
|
|
6397
|
-
return await
|
|
6401
|
+
return await j(n);
|
|
6398
6402
|
}
|
|
6399
|
-
async function
|
|
6400
|
-
const t =
|
|
6401
|
-
return await
|
|
6403
|
+
async function Jy(e) {
|
|
6404
|
+
const t = Lp(e);
|
|
6405
|
+
return await j(t);
|
|
6402
6406
|
}
|
|
6403
|
-
async function
|
|
6404
|
-
const r =
|
|
6405
|
-
return await
|
|
6407
|
+
async function Qy(e, t) {
|
|
6408
|
+
const r = kp(e);
|
|
6409
|
+
return await Ue(r, t);
|
|
6406
6410
|
}
|
|
6407
|
-
const
|
|
6411
|
+
const Xy = [
|
|
6408
6412
|
"preliminary",
|
|
6409
6413
|
"final",
|
|
6410
6414
|
"amended",
|
|
6411
6415
|
"corrected",
|
|
6412
6416
|
"appended"
|
|
6413
|
-
],
|
|
6417
|
+
], Zy = [
|
|
6414
6418
|
"registered",
|
|
6415
6419
|
"unknown",
|
|
6416
6420
|
"partial"
|
|
6417
|
-
],
|
|
6421
|
+
], Up = "All Orderables", xp = "/openmrs/ws/rest/v1/ordertype?v=custom:(uuid,display,conceptClasses:(uuid,name))", qp = "LabSet", Mp = "http://fhir.bahmni.org/ext/ValueSet/concept-class", ev = ["orderTypes"], Fp = async () => await jf(Up), zn = async () => await j(xp), jp = (e) => {
|
|
6418
6422
|
let t = e.display ?? "Unknown investigation";
|
|
6419
|
-
return Xa(e) ===
|
|
6420
|
-
},
|
|
6423
|
+
return Xa(e) === qp && (t += ` (${le.t("INVESTIGATION_PANEL")})`), t;
|
|
6424
|
+
}, Vp = (e) => {
|
|
6421
6425
|
const t = /* @__PURE__ */ new Map();
|
|
6422
6426
|
return e.results.forEach((r) => {
|
|
6423
6427
|
r.conceptClasses.forEach((n) => {
|
|
@@ -6426,10 +6430,10 @@ const Ky = [
|
|
|
6426
6430
|
}), t;
|
|
6427
6431
|
}, Xa = (e) => {
|
|
6428
6432
|
const t = e.extension?.find(
|
|
6429
|
-
(r) => r.url ===
|
|
6433
|
+
(r) => r.url === Mp
|
|
6430
6434
|
);
|
|
6431
6435
|
return t ? t.valueString ?? "" : "";
|
|
6432
|
-
},
|
|
6436
|
+
}, Hp = (e, t) => {
|
|
6433
6437
|
const r = [];
|
|
6434
6438
|
return !e.expansion?.contains || e.expansion.contains.length === 0 || t.size === 0 || e.expansion.contains.forEach((n) => {
|
|
6435
6439
|
n.contains?.forEach((s) => {
|
|
@@ -6446,12 +6450,12 @@ const Ky = [
|
|
|
6446
6450
|
});
|
|
6447
6451
|
});
|
|
6448
6452
|
}), r;
|
|
6449
|
-
},
|
|
6450
|
-
const e = await
|
|
6451
|
-
return
|
|
6452
|
-
},
|
|
6453
|
+
}, tv = async () => {
|
|
6454
|
+
const e = await Fp(), t = await zn();
|
|
6455
|
+
return Hp(e, Vp(t));
|
|
6456
|
+
}, rv = async (e) => e ? (await zn()).results.find(
|
|
6453
6457
|
(n) => n.display.toLowerCase() === e.toLowerCase()
|
|
6454
|
-
)?.uuid : void 0,
|
|
6458
|
+
)?.uuid : void 0, nv = async () => (await zn()).results.map((t) => t.display), sv = async (e, t, r) => {
|
|
6455
6459
|
const n = [];
|
|
6456
6460
|
for (const s of e) {
|
|
6457
6461
|
const o = s.uuid;
|
|
@@ -6471,10 +6475,10 @@ const Ky = [
|
|
|
6471
6475
|
}
|
|
6472
6476
|
return n;
|
|
6473
6477
|
};
|
|
6474
|
-
function
|
|
6478
|
+
function Bp(e) {
|
|
6475
6479
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
6476
6480
|
}
|
|
6477
|
-
var Lt = { exports: {} }, un = {},
|
|
6481
|
+
var Lt = { exports: {} }, un = {}, De = {}, je = {}, ln = {}, dn = {}, fn = {}, Bs;
|
|
6478
6482
|
function Pr() {
|
|
6479
6483
|
return Bs || (Bs = 1, (function(e) {
|
|
6480
6484
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.regexpCode = e.getEsmExportName = e.getProperty = e.safeStringify = e.stringify = e.strConcat = e.addCodeArg = e.str = e._ = e.nil = e._Code = e.Name = e.IDENTIFIER = e._CodeOrName = void 0;
|
|
@@ -6721,7 +6725,7 @@ function Gs() {
|
|
|
6721
6725
|
})(pn)), pn;
|
|
6722
6726
|
}
|
|
6723
6727
|
var Ks;
|
|
6724
|
-
function
|
|
6728
|
+
function Z() {
|
|
6725
6729
|
return Ks || (Ks = 1, (function(e) {
|
|
6726
6730
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.or = e.and = e.not = e.CodeGen = e.operators = e.varKinds = e.ValueScopeName = e.ValueScope = e.Scope = e.Name = e.regexpCode = e.stringify = e.getProperty = e.nil = e.strConcat = e.str = e._ = void 0;
|
|
6727
6731
|
const t = Pr(), r = Gs();
|
|
@@ -6773,12 +6777,12 @@ function X() {
|
|
|
6773
6777
|
}
|
|
6774
6778
|
}
|
|
6775
6779
|
class a extends o {
|
|
6776
|
-
constructor(w, T,
|
|
6777
|
-
super(), this.varKind = w, this.name = T, this.rhs =
|
|
6780
|
+
constructor(w, T, D) {
|
|
6781
|
+
super(), this.varKind = w, this.name = T, this.rhs = D;
|
|
6778
6782
|
}
|
|
6779
6783
|
render({ es5: w, _n: T }) {
|
|
6780
|
-
const
|
|
6781
|
-
return `${
|
|
6784
|
+
const D = w ? r.varKinds.var : this.varKind, V = this.rhs === void 0 ? "" : ` = ${this.rhs}`;
|
|
6785
|
+
return `${D} ${this.name}${V};` + T;
|
|
6782
6786
|
}
|
|
6783
6787
|
optimizeNames(w, T) {
|
|
6784
6788
|
if (w[this.name.str])
|
|
@@ -6789,8 +6793,8 @@ function X() {
|
|
|
6789
6793
|
}
|
|
6790
6794
|
}
|
|
6791
6795
|
class i extends o {
|
|
6792
|
-
constructor(w, T,
|
|
6793
|
-
super(), this.lhs = w, this.rhs = T, this.sideEffects =
|
|
6796
|
+
constructor(w, T, D) {
|
|
6797
|
+
super(), this.lhs = w, this.rhs = T, this.sideEffects = D;
|
|
6794
6798
|
}
|
|
6795
6799
|
render({ _n: w }) {
|
|
6796
6800
|
return `${this.lhs} = ${this.rhs};` + w;
|
|
@@ -6805,8 +6809,8 @@ function X() {
|
|
|
6805
6809
|
}
|
|
6806
6810
|
}
|
|
6807
6811
|
class c extends i {
|
|
6808
|
-
constructor(w, T,
|
|
6809
|
-
super(w,
|
|
6812
|
+
constructor(w, T, D, V) {
|
|
6813
|
+
super(w, D, V), this.op = T;
|
|
6810
6814
|
}
|
|
6811
6815
|
render({ _n: w }) {
|
|
6812
6816
|
return `${this.lhs} ${this.op}= ${this.rhs};` + w;
|
|
@@ -6861,28 +6865,28 @@ function X() {
|
|
|
6861
6865
|
super(), this.nodes = w;
|
|
6862
6866
|
}
|
|
6863
6867
|
render(w) {
|
|
6864
|
-
return this.nodes.reduce((T,
|
|
6868
|
+
return this.nodes.reduce((T, D) => T + D.render(w), "");
|
|
6865
6869
|
}
|
|
6866
6870
|
optimizeNodes() {
|
|
6867
6871
|
const { nodes: w } = this;
|
|
6868
6872
|
let T = w.length;
|
|
6869
6873
|
for (; T--; ) {
|
|
6870
|
-
const
|
|
6871
|
-
Array.isArray(
|
|
6874
|
+
const D = w[T].optimizeNodes();
|
|
6875
|
+
Array.isArray(D) ? w.splice(T, 1, ...D) : D ? w[T] = D : w.splice(T, 1);
|
|
6872
6876
|
}
|
|
6873
6877
|
return w.length > 0 ? this : void 0;
|
|
6874
6878
|
}
|
|
6875
6879
|
optimizeNames(w, T) {
|
|
6876
|
-
const { nodes:
|
|
6877
|
-
let
|
|
6878
|
-
for (;
|
|
6879
|
-
const z =
|
|
6880
|
-
z.optimizeNames(w, T) || (re(w, z.names),
|
|
6880
|
+
const { nodes: D } = this;
|
|
6881
|
+
let V = D.length;
|
|
6882
|
+
for (; V--; ) {
|
|
6883
|
+
const z = D[V];
|
|
6884
|
+
z.optimizeNames(w, T) || (re(w, z.names), D.splice(V, 1));
|
|
6881
6885
|
}
|
|
6882
|
-
return
|
|
6886
|
+
return D.length > 0 ? this : void 0;
|
|
6883
6887
|
}
|
|
6884
6888
|
get names() {
|
|
6885
|
-
return this.nodes.reduce((w, T) =>
|
|
6889
|
+
return this.nodes.reduce((w, T) => F(w, T.names), {});
|
|
6886
6890
|
}
|
|
6887
6891
|
}
|
|
6888
6892
|
class y extends S {
|
|
@@ -6910,8 +6914,8 @@ function X() {
|
|
|
6910
6914
|
return this.nodes;
|
|
6911
6915
|
let T = this.else;
|
|
6912
6916
|
if (T) {
|
|
6913
|
-
const
|
|
6914
|
-
T = this.else = Array.isArray(
|
|
6917
|
+
const D = T.optimizeNodes();
|
|
6918
|
+
T = this.else = Array.isArray(D) ? new f(D) : D;
|
|
6915
6919
|
}
|
|
6916
6920
|
if (T)
|
|
6917
6921
|
return w === !1 ? T instanceof p ? T : T.nodes : this.nodes.length ? this : new p(ne(w), T instanceof p ? [T] : T.nodes);
|
|
@@ -6919,13 +6923,13 @@ function X() {
|
|
|
6919
6923
|
return this;
|
|
6920
6924
|
}
|
|
6921
6925
|
optimizeNames(w, T) {
|
|
6922
|
-
var
|
|
6923
|
-
if (this.else = (
|
|
6926
|
+
var D;
|
|
6927
|
+
if (this.else = (D = this.else) === null || D === void 0 ? void 0 : D.optimizeNames(w, T), !!(super.optimizeNames(w, T) || this.else))
|
|
6924
6928
|
return this.condition = G(this.condition, w, T), this;
|
|
6925
6929
|
}
|
|
6926
6930
|
get names() {
|
|
6927
6931
|
const w = super.names;
|
|
6928
|
-
return H(w, this.condition), this.else &&
|
|
6932
|
+
return H(w, this.condition), this.else && F(w, this.else.names), w;
|
|
6929
6933
|
}
|
|
6930
6934
|
}
|
|
6931
6935
|
p.kind = "if";
|
|
@@ -6944,16 +6948,16 @@ function X() {
|
|
|
6944
6948
|
return this.iteration = G(this.iteration, w, T), this;
|
|
6945
6949
|
}
|
|
6946
6950
|
get names() {
|
|
6947
|
-
return
|
|
6951
|
+
return F(super.names, this.iteration.names);
|
|
6948
6952
|
}
|
|
6949
6953
|
}
|
|
6950
6954
|
class E extends u {
|
|
6951
|
-
constructor(w, T,
|
|
6952
|
-
super(), this.varKind = w, this.name = T, this.from =
|
|
6955
|
+
constructor(w, T, D, V) {
|
|
6956
|
+
super(), this.varKind = w, this.name = T, this.from = D, this.to = V;
|
|
6953
6957
|
}
|
|
6954
6958
|
render(w) {
|
|
6955
|
-
const T = w.es5 ? r.varKinds.var : this.varKind, { name:
|
|
6956
|
-
return `for(${T} ${
|
|
6959
|
+
const T = w.es5 ? r.varKinds.var : this.varKind, { name: D, from: V, to: z } = this;
|
|
6960
|
+
return `for(${T} ${D}=${V}; ${D}<${z}; ${D}++)` + super.render(w);
|
|
6957
6961
|
}
|
|
6958
6962
|
get names() {
|
|
6959
6963
|
const w = H(super.names, this.from);
|
|
@@ -6961,8 +6965,8 @@ function X() {
|
|
|
6961
6965
|
}
|
|
6962
6966
|
}
|
|
6963
6967
|
class _ extends u {
|
|
6964
|
-
constructor(w, T,
|
|
6965
|
-
super(), this.loop = w, this.varKind = T, this.name =
|
|
6968
|
+
constructor(w, T, D, V) {
|
|
6969
|
+
super(), this.loop = w, this.varKind = T, this.name = D, this.iterable = V;
|
|
6966
6970
|
}
|
|
6967
6971
|
render(w) {
|
|
6968
6972
|
return `for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})` + super.render(w);
|
|
@@ -6972,12 +6976,12 @@ function X() {
|
|
|
6972
6976
|
return this.iterable = G(this.iterable, w, T), this;
|
|
6973
6977
|
}
|
|
6974
6978
|
get names() {
|
|
6975
|
-
return
|
|
6979
|
+
return F(super.names, this.iterable.names);
|
|
6976
6980
|
}
|
|
6977
6981
|
}
|
|
6978
6982
|
class b extends y {
|
|
6979
|
-
constructor(w, T,
|
|
6980
|
-
super(), this.name = w, this.args = T, this.async =
|
|
6983
|
+
constructor(w, T, D) {
|
|
6984
|
+
super(), this.name = w, this.args = T, this.async = D;
|
|
6981
6985
|
}
|
|
6982
6986
|
render(w) {
|
|
6983
6987
|
return `${this.async ? "async " : ""}function ${this.name}(${this.args})` + super.render(w);
|
|
@@ -7000,12 +7004,12 @@ function X() {
|
|
|
7000
7004
|
return super.optimizeNodes(), (w = this.catch) === null || w === void 0 || w.optimizeNodes(), (T = this.finally) === null || T === void 0 || T.optimizeNodes(), this;
|
|
7001
7005
|
}
|
|
7002
7006
|
optimizeNames(w, T) {
|
|
7003
|
-
var
|
|
7004
|
-
return super.optimizeNames(w, T), (
|
|
7007
|
+
var D, V;
|
|
7008
|
+
return super.optimizeNames(w, T), (D = this.catch) === null || D === void 0 || D.optimizeNames(w, T), (V = this.finally) === null || V === void 0 || V.optimizeNames(w, T), this;
|
|
7005
7009
|
}
|
|
7006
7010
|
get names() {
|
|
7007
7011
|
const w = super.names;
|
|
7008
|
-
return this.catch &&
|
|
7012
|
+
return this.catch && F(w, this.catch.names), this.finally && F(w, this.finally.names), w;
|
|
7009
7013
|
}
|
|
7010
7014
|
}
|
|
7011
7015
|
class k extends y {
|
|
@@ -7041,8 +7045,8 @@ function X() {
|
|
|
7041
7045
|
}
|
|
7042
7046
|
// reserves unique name in the external scope and assigns value to it
|
|
7043
7047
|
scopeValue(w, T) {
|
|
7044
|
-
const
|
|
7045
|
-
return (this._values[
|
|
7048
|
+
const D = this._extScope.value(w, T);
|
|
7049
|
+
return (this._values[D.prefix] || (this._values[D.prefix] = /* @__PURE__ */ new Set())).add(D), D;
|
|
7046
7050
|
}
|
|
7047
7051
|
getScopeValue(w, T) {
|
|
7048
7052
|
return this._extScope.getValue(w, T);
|
|
@@ -7055,25 +7059,25 @@ function X() {
|
|
|
7055
7059
|
scopeCode() {
|
|
7056
7060
|
return this._extScope.scopeCode(this._values);
|
|
7057
7061
|
}
|
|
7058
|
-
_def(w, T,
|
|
7062
|
+
_def(w, T, D, V) {
|
|
7059
7063
|
const z = this._scope.toName(T);
|
|
7060
|
-
return
|
|
7064
|
+
return D !== void 0 && V && (this._constants[z.str] = D), this._leafNode(new a(w, z, D)), z;
|
|
7061
7065
|
}
|
|
7062
7066
|
// `const` declaration (`var` in es5 mode)
|
|
7063
|
-
const(w, T,
|
|
7064
|
-
return this._def(r.varKinds.const, w, T,
|
|
7067
|
+
const(w, T, D) {
|
|
7068
|
+
return this._def(r.varKinds.const, w, T, D);
|
|
7065
7069
|
}
|
|
7066
7070
|
// `let` declaration with optional assignment (`var` in es5 mode)
|
|
7067
|
-
let(w, T,
|
|
7068
|
-
return this._def(r.varKinds.let, w, T,
|
|
7071
|
+
let(w, T, D) {
|
|
7072
|
+
return this._def(r.varKinds.let, w, T, D);
|
|
7069
7073
|
}
|
|
7070
7074
|
// `var` declaration with optional assignment
|
|
7071
|
-
var(w, T,
|
|
7072
|
-
return this._def(r.varKinds.var, w, T,
|
|
7075
|
+
var(w, T, D) {
|
|
7076
|
+
return this._def(r.varKinds.var, w, T, D);
|
|
7073
7077
|
}
|
|
7074
7078
|
// assignment code
|
|
7075
|
-
assign(w, T,
|
|
7076
|
-
return this._leafNode(new i(w, T,
|
|
7079
|
+
assign(w, T, D) {
|
|
7080
|
+
return this._leafNode(new i(w, T, D));
|
|
7077
7081
|
}
|
|
7078
7082
|
// `+=` code
|
|
7079
7083
|
add(w, T) {
|
|
@@ -7086,17 +7090,17 @@ function X() {
|
|
|
7086
7090
|
// returns code for object literal for the passed argument list of key-value pairs
|
|
7087
7091
|
object(...w) {
|
|
7088
7092
|
const T = ["{"];
|
|
7089
|
-
for (const [
|
|
7090
|
-
T.length > 1 && T.push(","), T.push(
|
|
7093
|
+
for (const [D, V] of w)
|
|
7094
|
+
T.length > 1 && T.push(","), T.push(D), (D !== V || this.opts.es5) && (T.push(":"), (0, t.addCodeArg)(T, V));
|
|
7091
7095
|
return T.push("}"), new t._Code(T);
|
|
7092
7096
|
}
|
|
7093
7097
|
// `if` clause (or statement if `thenBody` and, optionally, `elseBody` are passed)
|
|
7094
|
-
if(w, T,
|
|
7095
|
-
if (this._blockNode(new p(w)), T &&
|
|
7096
|
-
this.code(T).else().code(
|
|
7098
|
+
if(w, T, D) {
|
|
7099
|
+
if (this._blockNode(new p(w)), T && D)
|
|
7100
|
+
this.code(T).else().code(D).endIf();
|
|
7097
7101
|
else if (T)
|
|
7098
7102
|
this.code(T).endIf();
|
|
7099
|
-
else if (
|
|
7103
|
+
else if (D)
|
|
7100
7104
|
throw new Error('CodeGen: "else" body without "then" body');
|
|
7101
7105
|
return this;
|
|
7102
7106
|
}
|
|
@@ -7120,28 +7124,28 @@ function X() {
|
|
|
7120
7124
|
return this._for(new h(w), T);
|
|
7121
7125
|
}
|
|
7122
7126
|
// `for` statement for a range of values
|
|
7123
|
-
forRange(w, T,
|
|
7127
|
+
forRange(w, T, D, V, z = this.opts.es5 ? r.varKinds.var : r.varKinds.let) {
|
|
7124
7128
|
const se = this._scope.toName(w);
|
|
7125
|
-
return this._for(new E(z, se, T,
|
|
7129
|
+
return this._for(new E(z, se, T, D), () => V(se));
|
|
7126
7130
|
}
|
|
7127
7131
|
// `for-of` statement (in es5 mode replace with a normal for loop)
|
|
7128
|
-
forOf(w, T,
|
|
7132
|
+
forOf(w, T, D, V = r.varKinds.const) {
|
|
7129
7133
|
const z = this._scope.toName(w);
|
|
7130
7134
|
if (this.opts.es5) {
|
|
7131
7135
|
const se = T instanceof t.Name ? T : this.var("_arr", T);
|
|
7132
7136
|
return this.forRange("_i", 0, (0, t._)`${se}.length`, (ee) => {
|
|
7133
|
-
this.var(z, (0, t._)`${se}[${ee}]`),
|
|
7137
|
+
this.var(z, (0, t._)`${se}[${ee}]`), D(z);
|
|
7134
7138
|
});
|
|
7135
7139
|
}
|
|
7136
|
-
return this._for(new _("of",
|
|
7140
|
+
return this._for(new _("of", V, z, T), () => D(z));
|
|
7137
7141
|
}
|
|
7138
7142
|
// `for-in` statement.
|
|
7139
7143
|
// With option `ownProperties` replaced with a `for-of` loop for object keys
|
|
7140
|
-
forIn(w, T,
|
|
7144
|
+
forIn(w, T, D, V = this.opts.es5 ? r.varKinds.var : r.varKinds.const) {
|
|
7141
7145
|
if (this.opts.ownProperties)
|
|
7142
|
-
return this.forOf(w, (0, t._)`Object.keys(${T})`,
|
|
7146
|
+
return this.forOf(w, (0, t._)`Object.keys(${T})`, D);
|
|
7143
7147
|
const z = this._scope.toName(w);
|
|
7144
|
-
return this._for(new _("in",
|
|
7148
|
+
return this._for(new _("in", V, z, T), () => D(z));
|
|
7145
7149
|
}
|
|
7146
7150
|
// end `for` loop
|
|
7147
7151
|
endFor() {
|
|
@@ -7163,15 +7167,15 @@ function X() {
|
|
|
7163
7167
|
return this._endBlockNode(R);
|
|
7164
7168
|
}
|
|
7165
7169
|
// `try` statement
|
|
7166
|
-
try(w, T,
|
|
7167
|
-
if (!T && !
|
|
7170
|
+
try(w, T, D) {
|
|
7171
|
+
if (!T && !D)
|
|
7168
7172
|
throw new Error('CodeGen: "try" without "catch" and "finally"');
|
|
7169
|
-
const
|
|
7170
|
-
if (this._blockNode(
|
|
7173
|
+
const V = new N();
|
|
7174
|
+
if (this._blockNode(V), this.code(w), T) {
|
|
7171
7175
|
const z = this.name("e");
|
|
7172
|
-
this._currNode =
|
|
7176
|
+
this._currNode = V.catch = new k(z), T(z);
|
|
7173
7177
|
}
|
|
7174
|
-
return
|
|
7178
|
+
return D && (this._currNode = V.finally = new M(), this.code(D)), this._endBlockNode(k, M);
|
|
7175
7179
|
}
|
|
7176
7180
|
// `throw` statement
|
|
7177
7181
|
throw(w) {
|
|
@@ -7186,14 +7190,14 @@ function X() {
|
|
|
7186
7190
|
const T = this._blockStarts.pop();
|
|
7187
7191
|
if (T === void 0)
|
|
7188
7192
|
throw new Error("CodeGen: not in self-balancing block");
|
|
7189
|
-
const
|
|
7190
|
-
if (
|
|
7191
|
-
throw new Error(`CodeGen: wrong number of nodes: ${
|
|
7193
|
+
const D = this._nodes.length - T;
|
|
7194
|
+
if (D < 0 || w !== void 0 && D !== w)
|
|
7195
|
+
throw new Error(`CodeGen: wrong number of nodes: ${D} vs ${w} expected`);
|
|
7192
7196
|
return this._nodes.length = T, this;
|
|
7193
7197
|
}
|
|
7194
7198
|
// `function` heading (or definition if funcBody is passed)
|
|
7195
|
-
func(w, T = t.nil,
|
|
7196
|
-
return this._blockNode(new b(w, T,
|
|
7199
|
+
func(w, T = t.nil, D, V) {
|
|
7200
|
+
return this._blockNode(new b(w, T, D)), V && this.code(V).endFunc(), this;
|
|
7197
7201
|
}
|
|
7198
7202
|
// end function definition
|
|
7199
7203
|
endFunc() {
|
|
@@ -7210,8 +7214,8 @@ function X() {
|
|
|
7210
7214
|
this._currNode.nodes.push(w), this._nodes.push(w);
|
|
7211
7215
|
}
|
|
7212
7216
|
_endBlockNode(w, T) {
|
|
7213
|
-
const
|
|
7214
|
-
if (
|
|
7217
|
+
const D = this._currNode;
|
|
7218
|
+
if (D instanceof w || T && D instanceof T)
|
|
7215
7219
|
return this._nodes.pop(), this;
|
|
7216
7220
|
throw new Error(`CodeGen: not in block "${T ? `${w.kind}/${T.kind}` : w.kind}"`);
|
|
7217
7221
|
}
|
|
@@ -7234,25 +7238,25 @@ function X() {
|
|
|
7234
7238
|
}
|
|
7235
7239
|
}
|
|
7236
7240
|
e.CodeGen = q;
|
|
7237
|
-
function
|
|
7241
|
+
function F(P, w) {
|
|
7238
7242
|
for (const T in w)
|
|
7239
7243
|
P[T] = (P[T] || 0) + (w[T] || 0);
|
|
7240
7244
|
return P;
|
|
7241
7245
|
}
|
|
7242
7246
|
function H(P, w) {
|
|
7243
|
-
return w instanceof t._CodeOrName ?
|
|
7247
|
+
return w instanceof t._CodeOrName ? F(P, w.names) : P;
|
|
7244
7248
|
}
|
|
7245
7249
|
function G(P, w, T) {
|
|
7246
7250
|
if (P instanceof t.Name)
|
|
7247
|
-
return
|
|
7248
|
-
if (!
|
|
7251
|
+
return D(P);
|
|
7252
|
+
if (!V(P))
|
|
7249
7253
|
return P;
|
|
7250
|
-
return new t._Code(P._items.reduce((z, se) => (se instanceof t.Name && (se =
|
|
7251
|
-
function
|
|
7254
|
+
return new t._Code(P._items.reduce((z, se) => (se instanceof t.Name && (se = D(se)), se instanceof t._Code ? z.push(...se._items) : z.push(se), z), []));
|
|
7255
|
+
function D(z) {
|
|
7252
7256
|
const se = T[z.str];
|
|
7253
7257
|
return se === void 0 || w[z.str] !== 1 ? z : (delete w[z.str], se);
|
|
7254
7258
|
}
|
|
7255
|
-
function
|
|
7259
|
+
function V(z) {
|
|
7256
7260
|
return z instanceof t._Code && z._items.some((se) => se instanceof t.Name && w[se.str] === 1 && T[se.str] !== void 0);
|
|
7257
7261
|
}
|
|
7258
7262
|
}
|
|
@@ -7261,7 +7265,7 @@ function X() {
|
|
|
7261
7265
|
P[T] = (P[T] || 0) - (w[T] || 0);
|
|
7262
7266
|
}
|
|
7263
7267
|
function ne(P) {
|
|
7264
|
-
return typeof P == "boolean" || typeof P == "number" || P === null ? !P : (0, t._)`!${
|
|
7268
|
+
return typeof P == "boolean" || typeof P == "number" || P === null ? !P : (0, t._)`!${C(P)}`;
|
|
7265
7269
|
}
|
|
7266
7270
|
e.not = ne;
|
|
7267
7271
|
const fe = A(e.operators.AND);
|
|
@@ -7270,14 +7274,14 @@ function X() {
|
|
|
7270
7274
|
}
|
|
7271
7275
|
e.and = J;
|
|
7272
7276
|
const ie = A(e.operators.OR);
|
|
7273
|
-
function
|
|
7277
|
+
function U(...P) {
|
|
7274
7278
|
return P.reduce(ie);
|
|
7275
7279
|
}
|
|
7276
|
-
e.or =
|
|
7280
|
+
e.or = U;
|
|
7277
7281
|
function A(P) {
|
|
7278
|
-
return (w, T) => w === t.nil ? T : T === t.nil ? w : (0, t._)`${
|
|
7282
|
+
return (w, T) => w === t.nil ? T : T === t.nil ? w : (0, t._)`${C(w)} ${P} ${C(T)}`;
|
|
7279
7283
|
}
|
|
7280
|
-
function
|
|
7284
|
+
function C(P) {
|
|
7281
7285
|
return P instanceof t.Name ? P : (0, t._)`(${P})`;
|
|
7282
7286
|
}
|
|
7283
7287
|
})(dn)), dn;
|
|
@@ -7286,7 +7290,7 @@ var W = {}, Ys;
|
|
|
7286
7290
|
function te() {
|
|
7287
7291
|
if (Ys) return W;
|
|
7288
7292
|
Ys = 1, Object.defineProperty(W, "__esModule", { value: !0 }), W.checkStrictMode = W.getErrorPath = W.Type = W.useFunc = W.setEvaluated = W.evaluatedPropsToName = W.mergeEvaluated = W.eachItem = W.unescapeJsonPointer = W.escapeJsonPointer = W.escapeFragment = W.unescapeFragment = W.schemaRefOrVal = W.schemaHasRulesButRef = W.schemaHasRules = W.checkUnknownRules = W.alwaysValidSchema = W.toHash = void 0;
|
|
7289
|
-
const e =
|
|
7293
|
+
const e = Z(), t = Pr();
|
|
7290
7294
|
function r(_) {
|
|
7291
7295
|
const b = {};
|
|
7292
7296
|
for (const R of _)
|
|
@@ -7360,9 +7364,9 @@ function te() {
|
|
|
7360
7364
|
}
|
|
7361
7365
|
W.eachItem = v;
|
|
7362
7366
|
function S({ mergeNames: _, mergeToName: b, mergeValues: R, resultToName: N }) {
|
|
7363
|
-
return (k, M, q,
|
|
7367
|
+
return (k, M, q, F) => {
|
|
7364
7368
|
const H = q === void 0 ? M : q instanceof e.Name ? (M instanceof e.Name ? _(k, M, q) : b(k, M, q), q) : M instanceof e.Name ? (b(k, q, M), M) : R(M, q);
|
|
7365
|
-
return
|
|
7369
|
+
return F === e.Name && !(H instanceof e.Name) ? N(k, H) : H;
|
|
7366
7370
|
};
|
|
7367
7371
|
}
|
|
7368
7372
|
W.mergeEvaluated = {
|
|
@@ -7424,10 +7428,10 @@ function te() {
|
|
|
7424
7428
|
return W.checkStrictMode = E, W;
|
|
7425
7429
|
}
|
|
7426
7430
|
var kt = {}, Ws;
|
|
7427
|
-
function
|
|
7431
|
+
function Fe() {
|
|
7428
7432
|
if (Ws) return kt;
|
|
7429
7433
|
Ws = 1, Object.defineProperty(kt, "__esModule", { value: !0 });
|
|
7430
|
-
const e =
|
|
7434
|
+
const e = Z(), t = {
|
|
7431
7435
|
// validation function arguments
|
|
7432
7436
|
data: new e.Name("data"),
|
|
7433
7437
|
// data passed to validation function
|
|
@@ -7462,7 +7466,7 @@ var Js;
|
|
|
7462
7466
|
function Vr() {
|
|
7463
7467
|
return Js || (Js = 1, (function(e) {
|
|
7464
7468
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendErrors = e.resetErrorsCount = e.reportExtraError = e.reportError = e.keyword$DataError = e.keywordError = void 0;
|
|
7465
|
-
const t =
|
|
7469
|
+
const t = Z(), r = te(), n = Fe();
|
|
7466
7470
|
e.keywordError = {
|
|
7467
7471
|
message: ({ keyword: f }) => (0, t.str)`must pass "${f}" keyword validation`
|
|
7468
7472
|
}, e.keyword$DataError = {
|
|
@@ -7535,22 +7539,22 @@ function Vr() {
|
|
|
7535
7539
|
})(ln)), ln;
|
|
7536
7540
|
}
|
|
7537
7541
|
var Qs;
|
|
7538
|
-
function
|
|
7539
|
-
if (Qs) return
|
|
7540
|
-
Qs = 1, Object.defineProperty(
|
|
7541
|
-
const e = Vr(), t =
|
|
7542
|
+
function zp() {
|
|
7543
|
+
if (Qs) return je;
|
|
7544
|
+
Qs = 1, Object.defineProperty(je, "__esModule", { value: !0 }), je.boolOrEmptySchema = je.topBoolOrEmptySchema = void 0;
|
|
7545
|
+
const e = Vr(), t = Z(), r = Fe(), n = {
|
|
7542
7546
|
message: "boolean schema is false"
|
|
7543
7547
|
};
|
|
7544
7548
|
function s(i) {
|
|
7545
7549
|
const { gen: c, schema: d, validateName: l } = i;
|
|
7546
7550
|
d === !1 ? a(i, !1) : typeof d == "object" && d.$async === !0 ? c.return(r.default.data) : (c.assign((0, t._)`${l}.errors`, null), c.return(!0));
|
|
7547
7551
|
}
|
|
7548
|
-
|
|
7552
|
+
je.topBoolOrEmptySchema = s;
|
|
7549
7553
|
function o(i, c) {
|
|
7550
7554
|
const { gen: d, schema: l } = i;
|
|
7551
7555
|
l === !1 ? (d.var(c, !1), a(i)) : d.var(c, !0);
|
|
7552
7556
|
}
|
|
7553
|
-
|
|
7557
|
+
je.boolOrEmptySchema = o;
|
|
7554
7558
|
function a(i, c) {
|
|
7555
7559
|
const { gen: d, data: l } = i, m = {
|
|
7556
7560
|
gen: d,
|
|
@@ -7564,7 +7568,7 @@ function Bp() {
|
|
|
7564
7568
|
};
|
|
7565
7569
|
(0, e.reportError)(m, n, void 0, c);
|
|
7566
7570
|
}
|
|
7567
|
-
return
|
|
7571
|
+
return je;
|
|
7568
7572
|
}
|
|
7569
7573
|
var me = {}, Ve = {}, Xs;
|
|
7570
7574
|
function Za() {
|
|
@@ -7592,30 +7596,30 @@ function Za() {
|
|
|
7592
7596
|
}
|
|
7593
7597
|
return Ve.getRules = n, Ve;
|
|
7594
7598
|
}
|
|
7595
|
-
var
|
|
7599
|
+
var Ce = {}, Zs;
|
|
7596
7600
|
function ei() {
|
|
7597
|
-
if (Zs) return
|
|
7598
|
-
Zs = 1, Object.defineProperty(
|
|
7601
|
+
if (Zs) return Ce;
|
|
7602
|
+
Zs = 1, Object.defineProperty(Ce, "__esModule", { value: !0 }), Ce.shouldUseRule = Ce.shouldUseGroup = Ce.schemaHasRulesForType = void 0;
|
|
7599
7603
|
function e({ schema: n, self: s }, o) {
|
|
7600
7604
|
const a = s.RULES.types[o];
|
|
7601
7605
|
return a && a !== !0 && t(n, a);
|
|
7602
7606
|
}
|
|
7603
|
-
|
|
7607
|
+
Ce.schemaHasRulesForType = e;
|
|
7604
7608
|
function t(n, s) {
|
|
7605
7609
|
return s.rules.some((o) => r(n, o));
|
|
7606
7610
|
}
|
|
7607
|
-
|
|
7611
|
+
Ce.shouldUseGroup = t;
|
|
7608
7612
|
function r(n, s) {
|
|
7609
7613
|
var o;
|
|
7610
7614
|
return n[s.keyword] !== void 0 || ((o = s.definition.implements) === null || o === void 0 ? void 0 : o.some((a) => n[a] !== void 0));
|
|
7611
7615
|
}
|
|
7612
|
-
return
|
|
7616
|
+
return Ce.shouldUseRule = r, Ce;
|
|
7613
7617
|
}
|
|
7614
7618
|
var eo;
|
|
7615
7619
|
function Ir() {
|
|
7616
7620
|
if (eo) return me;
|
|
7617
7621
|
eo = 1, Object.defineProperty(me, "__esModule", { value: !0 }), me.reportTypeError = me.checkDataTypes = me.checkDataType = me.coerceAndCheckDataType = me.getJSONTypes = me.getSchemaTypes = me.DataType = void 0;
|
|
7618
|
-
const e = Za(), t = ei(), r = Vr(), n =
|
|
7622
|
+
const e = Za(), t = ei(), r = Vr(), n = Z(), s = te();
|
|
7619
7623
|
var o;
|
|
7620
7624
|
(function(u) {
|
|
7621
7625
|
u[u.Correct = 0] = "Correct", u[u.Wrong = 1] = "Wrong";
|
|
@@ -7760,10 +7764,10 @@ function Ir() {
|
|
|
7760
7764
|
return me;
|
|
7761
7765
|
}
|
|
7762
7766
|
var gt = {}, to;
|
|
7763
|
-
function
|
|
7767
|
+
function Gp() {
|
|
7764
7768
|
if (to) return gt;
|
|
7765
7769
|
to = 1, Object.defineProperty(gt, "__esModule", { value: !0 }), gt.assignDefaults = void 0;
|
|
7766
|
-
const e =
|
|
7770
|
+
const e = Z(), t = te();
|
|
7767
7771
|
function r(s, o) {
|
|
7768
7772
|
const { properties: a, items: i } = s.schema;
|
|
7769
7773
|
if (o === "object" && a)
|
|
@@ -7790,7 +7794,7 @@ var Ne = {}, oe = {}, ro;
|
|
|
7790
7794
|
function Pe() {
|
|
7791
7795
|
if (ro) return oe;
|
|
7792
7796
|
ro = 1, Object.defineProperty(oe, "__esModule", { value: !0 }), oe.validateUnion = oe.validateArray = oe.usePattern = oe.callValidateCode = oe.schemaProperties = oe.allSchemaProperties = oe.noPropertyInData = oe.propertyInData = oe.isOwnProperty = oe.hasPropFunc = oe.reportMissingProp = oe.checkMissingProp = oe.checkReportMissingProp = void 0;
|
|
7793
|
-
const e =
|
|
7797
|
+
const e = Z(), t = te(), r = Fe(), n = te();
|
|
7794
7798
|
function s(u, h) {
|
|
7795
7799
|
const { gen: E, data: _, it: b } = u;
|
|
7796
7800
|
E.if(l(E, _, h, b.opts.ownProperties), () => {
|
|
@@ -7837,14 +7841,14 @@ function Pe() {
|
|
|
7837
7841
|
}
|
|
7838
7842
|
oe.schemaProperties = v;
|
|
7839
7843
|
function S({ schemaCode: u, data: h, it: { gen: E, topSchemaRef: _, schemaPath: b, errorPath: R }, it: N }, k, M, q) {
|
|
7840
|
-
const
|
|
7844
|
+
const F = q ? (0, e._)`${u}, ${h}, ${_}${b}` : h, H = [
|
|
7841
7845
|
[r.default.instancePath, (0, e.strConcat)(r.default.instancePath, R)],
|
|
7842
7846
|
[r.default.parentData, N.parentData],
|
|
7843
7847
|
[r.default.parentDataProperty, N.parentDataProperty],
|
|
7844
7848
|
[r.default.rootData, r.default.rootData]
|
|
7845
7849
|
];
|
|
7846
7850
|
N.opts.dynamicRef && H.push([r.default.dynamicAnchors, r.default.dynamicAnchors]);
|
|
7847
|
-
const G = (0, e._)`${
|
|
7851
|
+
const G = (0, e._)`${F}, ${E.object(...H)}`;
|
|
7848
7852
|
return M !== e.nil ? (0, e._)`${k}.call(${M}, ${G})` : (0, e._)`${k}(${G})`;
|
|
7849
7853
|
}
|
|
7850
7854
|
oe.callValidateCode = S;
|
|
@@ -7885,21 +7889,21 @@ function Pe() {
|
|
|
7885
7889
|
return;
|
|
7886
7890
|
const N = h.let("valid", !1), k = h.name("_valid");
|
|
7887
7891
|
h.block(() => E.forEach((M, q) => {
|
|
7888
|
-
const
|
|
7892
|
+
const F = u.subschema({
|
|
7889
7893
|
keyword: _,
|
|
7890
7894
|
schemaProp: q,
|
|
7891
7895
|
compositeRule: !0
|
|
7892
7896
|
}, k);
|
|
7893
|
-
h.assign(N, (0, e._)`${N} || ${k}`), u.mergeValidEvaluated(
|
|
7897
|
+
h.assign(N, (0, e._)`${N} || ${k}`), u.mergeValidEvaluated(F, k) || h.if((0, e.not)(N));
|
|
7894
7898
|
})), u.result(N, () => u.reset(), () => u.error(!0));
|
|
7895
7899
|
}
|
|
7896
7900
|
return oe.validateUnion = p, oe;
|
|
7897
7901
|
}
|
|
7898
7902
|
var no;
|
|
7899
|
-
function
|
|
7903
|
+
function Kp() {
|
|
7900
7904
|
if (no) return Ne;
|
|
7901
7905
|
no = 1, Object.defineProperty(Ne, "__esModule", { value: !0 }), Ne.validateKeywordUsage = Ne.validSchemaType = Ne.funcKeywordCode = Ne.macroKeywordCode = void 0;
|
|
7902
|
-
const e =
|
|
7906
|
+
const e = Z(), t = Fe(), r = Pe(), n = Vr();
|
|
7903
7907
|
function s(v, S) {
|
|
7904
7908
|
const { gen: y, keyword: g, schema: f, parentSchema: p, it: u } = v, h = S.macro.call(u.self, f, p, u), E = d(y, g, h);
|
|
7905
7909
|
u.opts.validateSchema !== !1 && u.self.validateSchema(h, !0);
|
|
@@ -7921,10 +7925,10 @@ function Gp() {
|
|
|
7921
7925
|
v.block$data(R, N), v.ok((y = S.valid) !== null && y !== void 0 ? y : R);
|
|
7922
7926
|
function N() {
|
|
7923
7927
|
if (S.errors === !1)
|
|
7924
|
-
q(), S.modifying && a(v),
|
|
7928
|
+
q(), S.modifying && a(v), F(() => v.error());
|
|
7925
7929
|
else {
|
|
7926
7930
|
const H = S.async ? k() : M();
|
|
7927
|
-
S.modifying && a(v),
|
|
7931
|
+
S.modifying && a(v), F(() => i(v, H));
|
|
7928
7932
|
}
|
|
7929
7933
|
}
|
|
7930
7934
|
function k() {
|
|
@@ -7939,7 +7943,7 @@ function Gp() {
|
|
|
7939
7943
|
const G = E.opts.passContext ? t.default.this : t.default.self, re = !("compile" in S && !h || S.schema === !1);
|
|
7940
7944
|
g.assign(R, (0, e._)`${H}${(0, r.callValidateCode)(v, b, G, re)}`, S.modifying);
|
|
7941
7945
|
}
|
|
7942
|
-
function
|
|
7946
|
+
function F(H) {
|
|
7943
7947
|
var G;
|
|
7944
7948
|
g.if((0, e.not)((G = S.valid) !== null && G !== void 0 ? G : R), H);
|
|
7945
7949
|
}
|
|
@@ -7985,10 +7989,10 @@ function Gp() {
|
|
|
7985
7989
|
return Ne.validateKeywordUsage = m, Ne;
|
|
7986
7990
|
}
|
|
7987
7991
|
var Le = {}, so;
|
|
7988
|
-
function
|
|
7992
|
+
function Yp() {
|
|
7989
7993
|
if (so) return Le;
|
|
7990
7994
|
so = 1, Object.defineProperty(Le, "__esModule", { value: !0 }), Le.extendSubschemaMode = Le.extendSubschemaData = Le.getSubschema = void 0;
|
|
7991
|
-
const e =
|
|
7995
|
+
const e = Z(), t = te();
|
|
7992
7996
|
function r(o, { keyword: a, schemaProp: i, schema: c, schemaPath: d, errSchemaPath: l, topSchemaRef: m }) {
|
|
7993
7997
|
if (a !== void 0 && c !== void 0)
|
|
7994
7998
|
throw new Error('both "keyword" and "schema" passed, only one allowed');
|
|
@@ -8069,7 +8073,7 @@ function ti() {
|
|
|
8069
8073
|
}), hn;
|
|
8070
8074
|
}
|
|
8071
8075
|
var mn = { exports: {} }, ao;
|
|
8072
|
-
function
|
|
8076
|
+
function Wp() {
|
|
8073
8077
|
if (ao) return mn.exports;
|
|
8074
8078
|
ao = 1;
|
|
8075
8079
|
var e = mn.exports = function(n, s, o) {
|
|
@@ -8147,7 +8151,7 @@ var io;
|
|
|
8147
8151
|
function Hr() {
|
|
8148
8152
|
if (io) return ye;
|
|
8149
8153
|
io = 1, Object.defineProperty(ye, "__esModule", { value: !0 }), ye.getSchemaRefs = ye.resolveUrl = ye.normalizeId = ye._getFullPath = ye.getFullPath = ye.inlineRef = void 0;
|
|
8150
|
-
const e = te(), t = ti(), r =
|
|
8154
|
+
const e = te(), t = ti(), r = Wp(), n = /* @__PURE__ */ new Set([
|
|
8151
8155
|
"type",
|
|
8152
8156
|
"format",
|
|
8153
8157
|
"pattern",
|
|
@@ -8220,7 +8224,7 @@ function Hr() {
|
|
|
8220
8224
|
if (typeof g == "boolean")
|
|
8221
8225
|
return {};
|
|
8222
8226
|
const { schemaId: p, uriResolver: u } = this.opts, h = m(g[p] || f), E = { "": h }, _ = c(u, h, !1), b = {}, R = /* @__PURE__ */ new Set();
|
|
8223
|
-
return r(g, { allKeys: !0 }, (M, q,
|
|
8227
|
+
return r(g, { allKeys: !0 }, (M, q, F, H) => {
|
|
8224
8228
|
if (H === void 0)
|
|
8225
8229
|
return;
|
|
8226
8230
|
const G = _ + q;
|
|
@@ -8231,8 +8235,8 @@ function Hr() {
|
|
|
8231
8235
|
if (J = m(re ? ie(re, J) : J), R.has(J))
|
|
8232
8236
|
throw k(J);
|
|
8233
8237
|
R.add(J);
|
|
8234
|
-
let
|
|
8235
|
-
return typeof
|
|
8238
|
+
let U = this.refs[J];
|
|
8239
|
+
return typeof U == "string" && (U = this.refs[U]), typeof U == "object" ? N(M, U.schema, J) : J !== m(G) && (J[0] === "#" ? (N(M, b[J], J), b[J] = M) : this.refs[J] = G), J;
|
|
8236
8240
|
}
|
|
8237
8241
|
function fe(J) {
|
|
8238
8242
|
if (typeof J == "string") {
|
|
@@ -8242,9 +8246,9 @@ function Hr() {
|
|
|
8242
8246
|
}
|
|
8243
8247
|
}
|
|
8244
8248
|
}), b;
|
|
8245
|
-
function N(M, q,
|
|
8249
|
+
function N(M, q, F) {
|
|
8246
8250
|
if (q !== void 0 && !t(M, q))
|
|
8247
|
-
throw k(
|
|
8251
|
+
throw k(F);
|
|
8248
8252
|
}
|
|
8249
8253
|
function k(M) {
|
|
8250
8254
|
return new Error(`reference "${M}" resolves to more than one schema`);
|
|
@@ -8254,9 +8258,9 @@ function Hr() {
|
|
|
8254
8258
|
}
|
|
8255
8259
|
var co;
|
|
8256
8260
|
function Br() {
|
|
8257
|
-
if (co) return
|
|
8258
|
-
co = 1, Object.defineProperty(
|
|
8259
|
-
const e =
|
|
8261
|
+
if (co) return De;
|
|
8262
|
+
co = 1, Object.defineProperty(De, "__esModule", { value: !0 }), De.getData = De.KeywordCxt = De.validateFunctionCode = void 0;
|
|
8263
|
+
const e = zp(), t = Ir(), r = ei(), n = Ir(), s = Gp(), o = Kp(), a = Yp(), i = Z(), c = Fe(), d = Hr(), l = te(), m = Vr();
|
|
8260
8264
|
function v(O) {
|
|
8261
8265
|
if (_(O) && (R(O), E(O))) {
|
|
8262
8266
|
f(O);
|
|
@@ -8264,11 +8268,11 @@ function Br() {
|
|
|
8264
8268
|
}
|
|
8265
8269
|
S(O, () => (0, e.topBoolOrEmptySchema)(O));
|
|
8266
8270
|
}
|
|
8267
|
-
|
|
8268
|
-
function S({ gen: O, validateName: $, schema: L, schemaEnv:
|
|
8269
|
-
B.code.es5 ? O.func($, (0, i._)`${c.default.data}, ${c.default.valCxt}`,
|
|
8271
|
+
De.validateFunctionCode = v;
|
|
8272
|
+
function S({ gen: O, validateName: $, schema: L, schemaEnv: x, opts: B }, Q) {
|
|
8273
|
+
B.code.es5 ? O.func($, (0, i._)`${c.default.data}, ${c.default.valCxt}`, x.$async, () => {
|
|
8270
8274
|
O.code((0, i._)`"use strict"; ${u(L, B)}`), g(O, B), O.code(Q);
|
|
8271
|
-
}) : O.func($, (0, i._)`${c.default.data}, ${y(B)}`,
|
|
8275
|
+
}) : O.func($, (0, i._)`${c.default.data}, ${y(B)}`, x.$async, () => O.code(u(L, B)).code(Q));
|
|
8272
8276
|
}
|
|
8273
8277
|
function y(O) {
|
|
8274
8278
|
return (0, i._)`{${c.default.instancePath}="", ${c.default.parentData}, ${c.default.parentDataProperty}, ${c.default.rootData}=${c.default.data}${O.dynamicRef ? (0, i._)`, ${c.default.dynamicAnchors}={}` : i.nil}}={}`;
|
|
@@ -8281,9 +8285,9 @@ function Br() {
|
|
|
8281
8285
|
});
|
|
8282
8286
|
}
|
|
8283
8287
|
function f(O) {
|
|
8284
|
-
const { schema: $, opts: L, gen:
|
|
8288
|
+
const { schema: $, opts: L, gen: x } = O;
|
|
8285
8289
|
S(O, () => {
|
|
8286
|
-
L.$comment && $.$comment && H(O), M(O),
|
|
8290
|
+
L.$comment && $.$comment && H(O), M(O), x.let(c.default.vErrors, null), x.let(c.default.errors, 0), L.unevaluated && p(O), N(O), G(O);
|
|
8287
8291
|
});
|
|
8288
8292
|
}
|
|
8289
8293
|
function p(O) {
|
|
@@ -8313,10 +8317,10 @@ function Br() {
|
|
|
8313
8317
|
return typeof O.schema != "boolean";
|
|
8314
8318
|
}
|
|
8315
8319
|
function b(O, $) {
|
|
8316
|
-
const { schema: L, gen:
|
|
8317
|
-
B.$comment && L.$comment && H(O), q(O),
|
|
8318
|
-
const Q =
|
|
8319
|
-
N(O, Q),
|
|
8320
|
+
const { schema: L, gen: x, opts: B } = O;
|
|
8321
|
+
B.$comment && L.$comment && H(O), q(O), F(O);
|
|
8322
|
+
const Q = x.const("_errs", c.default.errors);
|
|
8323
|
+
N(O, Q), x.var($, (0, i._)`${Q} === ${c.default.errors}`);
|
|
8320
8324
|
}
|
|
8321
8325
|
function R(O) {
|
|
8322
8326
|
(0, l.checkUnknownRules)(O), k(O);
|
|
@@ -8324,12 +8328,12 @@ function Br() {
|
|
|
8324
8328
|
function N(O, $) {
|
|
8325
8329
|
if (O.opts.jtd)
|
|
8326
8330
|
return ne(O, [], !1, $);
|
|
8327
|
-
const L = (0, t.getSchemaTypes)(O.schema),
|
|
8328
|
-
ne(O, L, !
|
|
8331
|
+
const L = (0, t.getSchemaTypes)(O.schema), x = (0, t.coerceAndCheckDataType)(O, L);
|
|
8332
|
+
ne(O, L, !x, $);
|
|
8329
8333
|
}
|
|
8330
8334
|
function k(O) {
|
|
8331
|
-
const { schema: $, errSchemaPath: L, opts:
|
|
8332
|
-
$.$ref &&
|
|
8335
|
+
const { schema: $, errSchemaPath: L, opts: x, self: B } = O;
|
|
8336
|
+
$.$ref && x.ignoreKeywordsWithRef && (0, l.schemaHasRulesButRef)($, B.RULES) && B.logger.warn(`$ref: keywords ignored in schema at path "${L}"`);
|
|
8333
8337
|
}
|
|
8334
8338
|
function M(O) {
|
|
8335
8339
|
const { schema: $, opts: L } = O;
|
|
@@ -8339,30 +8343,30 @@ function Br() {
|
|
|
8339
8343
|
const $ = O.schema[O.opts.schemaId];
|
|
8340
8344
|
$ && (O.baseId = (0, d.resolveUrl)(O.opts.uriResolver, O.baseId, $));
|
|
8341
8345
|
}
|
|
8342
|
-
function
|
|
8346
|
+
function F(O) {
|
|
8343
8347
|
if (O.schema.$async && !O.schemaEnv.$async)
|
|
8344
8348
|
throw new Error("async schema in sync schema");
|
|
8345
8349
|
}
|
|
8346
|
-
function H({ gen: O, schemaEnv: $, schema: L, errSchemaPath:
|
|
8350
|
+
function H({ gen: O, schemaEnv: $, schema: L, errSchemaPath: x, opts: B }) {
|
|
8347
8351
|
const Q = L.$comment;
|
|
8348
8352
|
if (B.$comment === !0)
|
|
8349
8353
|
O.code((0, i._)`${c.default.self}.logger.log(${Q})`);
|
|
8350
8354
|
else if (typeof B.$comment == "function") {
|
|
8351
|
-
const pe = (0, i.str)`${
|
|
8355
|
+
const pe = (0, i.str)`${x}/$comment`, Ae = O.scopeValue("root", { ref: $.root });
|
|
8352
8356
|
O.code((0, i._)`${c.default.self}.opts.$comment(${Q}, ${pe}, ${Ae}.schema)`);
|
|
8353
8357
|
}
|
|
8354
8358
|
}
|
|
8355
8359
|
function G(O) {
|
|
8356
|
-
const { gen: $, schemaEnv: L, validateName:
|
|
8357
|
-
L.$async ? $.if((0, i._)`${c.default.errors} === 0`, () => $.return(c.default.data), () => $.throw((0, i._)`new ${B}(${c.default.vErrors})`)) : ($.assign((0, i._)`${
|
|
8360
|
+
const { gen: $, schemaEnv: L, validateName: x, ValidationError: B, opts: Q } = O;
|
|
8361
|
+
L.$async ? $.if((0, i._)`${c.default.errors} === 0`, () => $.return(c.default.data), () => $.throw((0, i._)`new ${B}(${c.default.vErrors})`)) : ($.assign((0, i._)`${x}.errors`, c.default.vErrors), Q.unevaluated && re(O), $.return((0, i._)`${c.default.errors} === 0`));
|
|
8358
8362
|
}
|
|
8359
|
-
function re({ gen: O, evaluated: $, props: L, items:
|
|
8360
|
-
L instanceof i.Name && O.assign((0, i._)`${$}.props`, L),
|
|
8363
|
+
function re({ gen: O, evaluated: $, props: L, items: x }) {
|
|
8364
|
+
L instanceof i.Name && O.assign((0, i._)`${$}.props`, L), x instanceof i.Name && O.assign((0, i._)`${$}.items`, x);
|
|
8361
8365
|
}
|
|
8362
|
-
function ne(O, $, L,
|
|
8366
|
+
function ne(O, $, L, x) {
|
|
8363
8367
|
const { gen: B, schema: Q, data: pe, allErrors: Ae, opts: ve, self: we } = O, { RULES: he } = we;
|
|
8364
8368
|
if (Q.$ref && (ve.ignoreKeywordsWithRef || !(0, l.schemaHasRulesButRef)(Q, he))) {
|
|
8365
|
-
B.block(() =>
|
|
8369
|
+
B.block(() => V(O, "$ref", he.all.$ref.definition));
|
|
8366
8370
|
return;
|
|
8367
8371
|
}
|
|
8368
8372
|
ve.jtd || J(O, $), B.block(() => {
|
|
@@ -8371,18 +8375,18 @@ function Br() {
|
|
|
8371
8375
|
Ye(he.post);
|
|
8372
8376
|
});
|
|
8373
8377
|
function Ye(Se) {
|
|
8374
|
-
(0, r.shouldUseGroup)(Q, Se) && (Se.type ? (B.if((0, n.checkDataType)(Se.type, pe, ve.strictNumbers)), fe(O, Se), $.length === 1 && $[0] === Se.type && L && (B.else(), (0, n.reportTypeError)(O)), B.endIf()) : fe(O, Se), Ae || B.if((0, i._)`${c.default.errors} === ${
|
|
8378
|
+
(0, r.shouldUseGroup)(Q, Se) && (Se.type ? (B.if((0, n.checkDataType)(Se.type, pe, ve.strictNumbers)), fe(O, Se), $.length === 1 && $[0] === Se.type && L && (B.else(), (0, n.reportTypeError)(O)), B.endIf()) : fe(O, Se), Ae || B.if((0, i._)`${c.default.errors} === ${x || 0}`));
|
|
8375
8379
|
}
|
|
8376
8380
|
}
|
|
8377
8381
|
function fe(O, $) {
|
|
8378
|
-
const { gen: L, schema:
|
|
8382
|
+
const { gen: L, schema: x, opts: { useDefaults: B } } = O;
|
|
8379
8383
|
B && (0, s.assignDefaults)(O, $.type), L.block(() => {
|
|
8380
8384
|
for (const Q of $.rules)
|
|
8381
|
-
(0, r.shouldUseRule)(
|
|
8385
|
+
(0, r.shouldUseRule)(x, Q) && V(O, Q.keyword, Q.definition, $.type);
|
|
8382
8386
|
});
|
|
8383
8387
|
}
|
|
8384
8388
|
function J(O, $) {
|
|
8385
|
-
O.schemaEnv.meta || !O.opts.strictTypes || (ie(O, $), O.opts.allowUnionTypes ||
|
|
8389
|
+
O.schemaEnv.meta || !O.opts.strictTypes || (ie(O, $), O.opts.allowUnionTypes || U(O, $), A(O, O.dataTypes));
|
|
8386
8390
|
}
|
|
8387
8391
|
function ie(O, $) {
|
|
8388
8392
|
if ($.length) {
|
|
@@ -8395,20 +8399,20 @@ function Br() {
|
|
|
8395
8399
|
}), w(O, $);
|
|
8396
8400
|
}
|
|
8397
8401
|
}
|
|
8398
|
-
function
|
|
8402
|
+
function U(O, $) {
|
|
8399
8403
|
$.length > 1 && !($.length === 2 && $.includes("null")) && T(O, "use allowUnionTypes to allow union type keyword");
|
|
8400
8404
|
}
|
|
8401
8405
|
function A(O, $) {
|
|
8402
8406
|
const L = O.self.RULES.all;
|
|
8403
|
-
for (const
|
|
8404
|
-
const B = L[
|
|
8407
|
+
for (const x in L) {
|
|
8408
|
+
const B = L[x];
|
|
8405
8409
|
if (typeof B == "object" && (0, r.shouldUseRule)(O.schema, B)) {
|
|
8406
8410
|
const { type: Q } = B.definition;
|
|
8407
|
-
Q.length && !Q.some((pe) =>
|
|
8411
|
+
Q.length && !Q.some((pe) => C($, pe)) && T(O, `missing type "${Q.join(",")}" for keyword "${x}"`);
|
|
8408
8412
|
}
|
|
8409
8413
|
}
|
|
8410
8414
|
}
|
|
8411
|
-
function
|
|
8415
|
+
function C(O, $) {
|
|
8412
8416
|
return O.includes($) || $ === "number" && O.includes("integer");
|
|
8413
8417
|
}
|
|
8414
8418
|
function P(O, $) {
|
|
@@ -8416,27 +8420,27 @@ function Br() {
|
|
|
8416
8420
|
}
|
|
8417
8421
|
function w(O, $) {
|
|
8418
8422
|
const L = [];
|
|
8419
|
-
for (const
|
|
8420
|
-
P($,
|
|
8423
|
+
for (const x of O.dataTypes)
|
|
8424
|
+
P($, x) ? L.push(x) : $.includes("integer") && x === "number" && L.push("integer");
|
|
8421
8425
|
O.dataTypes = L;
|
|
8422
8426
|
}
|
|
8423
8427
|
function T(O, $) {
|
|
8424
8428
|
const L = O.schemaEnv.baseId + O.errSchemaPath;
|
|
8425
8429
|
$ += ` at "${L}" (strictTypes)`, (0, l.checkStrictMode)(O, $, O.opts.strictTypes);
|
|
8426
8430
|
}
|
|
8427
|
-
class
|
|
8428
|
-
constructor($, L,
|
|
8429
|
-
if ((0, o.validateKeywordUsage)($, L,
|
|
8431
|
+
class D {
|
|
8432
|
+
constructor($, L, x) {
|
|
8433
|
+
if ((0, o.validateKeywordUsage)($, L, x), this.gen = $.gen, this.allErrors = $.allErrors, this.keyword = x, this.data = $.data, this.schema = $.schema[x], this.$data = L.$data && $.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, l.schemaRefOrVal)($, this.schema, x, this.$data), this.schemaType = L.schemaType, this.parentSchema = $.schema, this.params = {}, this.it = $, this.def = L, this.$data)
|
|
8430
8434
|
this.schemaCode = $.gen.const("vSchema", ee(this.$data, $));
|
|
8431
8435
|
else if (this.schemaCode = this.schemaValue, !(0, o.validSchemaType)(this.schema, L.schemaType, L.allowUndefined))
|
|
8432
|
-
throw new Error(`${
|
|
8436
|
+
throw new Error(`${x} value must be ${JSON.stringify(L.schemaType)}`);
|
|
8433
8437
|
("code" in L ? L.trackErrors : L.errors !== !1) && (this.errsCount = $.gen.const("_errs", c.default.errors));
|
|
8434
8438
|
}
|
|
8435
|
-
result($, L,
|
|
8436
|
-
this.failResult((0, i.not)($), L,
|
|
8439
|
+
result($, L, x) {
|
|
8440
|
+
this.failResult((0, i.not)($), L, x);
|
|
8437
8441
|
}
|
|
8438
|
-
failResult($, L,
|
|
8439
|
-
this.gen.if($),
|
|
8442
|
+
failResult($, L, x) {
|
|
8443
|
+
this.gen.if($), x ? x() : this.error(), L ? (this.gen.else(), L(), this.allErrors && this.gen.endIf()) : this.allErrors ? this.gen.endIf() : this.gen.else();
|
|
8440
8444
|
}
|
|
8441
8445
|
pass($, L) {
|
|
8442
8446
|
this.failResult((0, i.not)($), void 0, L);
|
|
@@ -8454,12 +8458,12 @@ function Br() {
|
|
|
8454
8458
|
const { schemaCode: L } = this;
|
|
8455
8459
|
this.fail((0, i._)`${L} !== undefined && (${(0, i.or)(this.invalid$data(), $)})`);
|
|
8456
8460
|
}
|
|
8457
|
-
error($, L,
|
|
8461
|
+
error($, L, x) {
|
|
8458
8462
|
if (L) {
|
|
8459
|
-
this.setParams(L), this._error($,
|
|
8463
|
+
this.setParams(L), this._error($, x), this.setParams({});
|
|
8460
8464
|
return;
|
|
8461
8465
|
}
|
|
8462
|
-
this._error($,
|
|
8466
|
+
this._error($, x);
|
|
8463
8467
|
}
|
|
8464
8468
|
_error($, L) {
|
|
8465
8469
|
($ ? m.reportExtraError : m.reportError)(this, this.def.error, L);
|
|
@@ -8478,25 +8482,25 @@ function Br() {
|
|
|
8478
8482
|
setParams($, L) {
|
|
8479
8483
|
L ? Object.assign(this.params, $) : this.params = $;
|
|
8480
8484
|
}
|
|
8481
|
-
block$data($, L,
|
|
8485
|
+
block$data($, L, x = i.nil) {
|
|
8482
8486
|
this.gen.block(() => {
|
|
8483
|
-
this.check$data($,
|
|
8487
|
+
this.check$data($, x), L();
|
|
8484
8488
|
});
|
|
8485
8489
|
}
|
|
8486
8490
|
check$data($ = i.nil, L = i.nil) {
|
|
8487
8491
|
if (!this.$data)
|
|
8488
8492
|
return;
|
|
8489
|
-
const { gen:
|
|
8490
|
-
|
|
8493
|
+
const { gen: x, schemaCode: B, schemaType: Q, def: pe } = this;
|
|
8494
|
+
x.if((0, i.or)((0, i._)`${B} === undefined`, L)), $ !== i.nil && x.assign($, !0), (Q.length || pe.validateSchema) && (x.elseIf(this.invalid$data()), this.$dataError(), $ !== i.nil && x.assign($, !1)), x.else();
|
|
8491
8495
|
}
|
|
8492
8496
|
invalid$data() {
|
|
8493
|
-
const { gen: $, schemaCode: L, schemaType:
|
|
8497
|
+
const { gen: $, schemaCode: L, schemaType: x, def: B, it: Q } = this;
|
|
8494
8498
|
return (0, i.or)(pe(), Ae());
|
|
8495
8499
|
function pe() {
|
|
8496
|
-
if (
|
|
8500
|
+
if (x.length) {
|
|
8497
8501
|
if (!(L instanceof i.Name))
|
|
8498
8502
|
throw new Error("ajv implementation error");
|
|
8499
|
-
const ve = Array.isArray(
|
|
8503
|
+
const ve = Array.isArray(x) ? x : [x];
|
|
8500
8504
|
return (0, i._)`${(0, n.checkDataTypes)(ve, L, Q.opts.strictNumbers, n.DataType.Wrong)}`;
|
|
8501
8505
|
}
|
|
8502
8506
|
return i.nil;
|
|
@@ -8510,28 +8514,28 @@ function Br() {
|
|
|
8510
8514
|
}
|
|
8511
8515
|
}
|
|
8512
8516
|
subschema($, L) {
|
|
8513
|
-
const
|
|
8514
|
-
(0, a.extendSubschemaData)(
|
|
8515
|
-
const B = { ...this.it, ...
|
|
8517
|
+
const x = (0, a.getSubschema)(this.it, $);
|
|
8518
|
+
(0, a.extendSubschemaData)(x, this.it, $), (0, a.extendSubschemaMode)(x, $);
|
|
8519
|
+
const B = { ...this.it, ...x, items: void 0, props: void 0 };
|
|
8516
8520
|
return h(B, L), B;
|
|
8517
8521
|
}
|
|
8518
8522
|
mergeEvaluated($, L) {
|
|
8519
|
-
const { it:
|
|
8520
|
-
|
|
8523
|
+
const { it: x, gen: B } = this;
|
|
8524
|
+
x.opts.unevaluated && (x.props !== !0 && $.props !== void 0 && (x.props = l.mergeEvaluated.props(B, $.props, x.props, L)), x.items !== !0 && $.items !== void 0 && (x.items = l.mergeEvaluated.items(B, $.items, x.items, L)));
|
|
8521
8525
|
}
|
|
8522
8526
|
mergeValidEvaluated($, L) {
|
|
8523
|
-
const { it:
|
|
8524
|
-
if (
|
|
8527
|
+
const { it: x, gen: B } = this;
|
|
8528
|
+
if (x.opts.unevaluated && (x.props !== !0 || x.items !== !0))
|
|
8525
8529
|
return B.if(L, () => this.mergeEvaluated($, i.Name)), !0;
|
|
8526
8530
|
}
|
|
8527
8531
|
}
|
|
8528
|
-
|
|
8529
|
-
function
|
|
8530
|
-
const B = new
|
|
8531
|
-
"code" in L ? L.code(B,
|
|
8532
|
+
De.KeywordCxt = D;
|
|
8533
|
+
function V(O, $, L, x) {
|
|
8534
|
+
const B = new D(O, L, $);
|
|
8535
|
+
"code" in L ? L.code(B, x) : B.$data && L.validate ? (0, o.funcKeywordCode)(B, L) : "macro" in L ? (0, o.macroKeywordCode)(B, L) : (L.compile || L.validate) && (0, o.funcKeywordCode)(B, L);
|
|
8532
8536
|
}
|
|
8533
8537
|
const z = /^\/(?:[^~]|~0|~1)*$/, se = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
|
|
8534
|
-
function ee(O, { dataLevel: $, dataNames: L, dataPathArr:
|
|
8538
|
+
function ee(O, { dataLevel: $, dataNames: L, dataPathArr: x }) {
|
|
8535
8539
|
let B, Q;
|
|
8536
8540
|
if (O === "")
|
|
8537
8541
|
return c.default.rootData;
|
|
@@ -8547,7 +8551,7 @@ function Br() {
|
|
|
8547
8551
|
if (B = we[2], B === "#") {
|
|
8548
8552
|
if (he >= $)
|
|
8549
8553
|
throw new Error(ve("property/index", he));
|
|
8550
|
-
return
|
|
8554
|
+
return x[$ - he];
|
|
8551
8555
|
}
|
|
8552
8556
|
if (he > $)
|
|
8553
8557
|
throw new Error(ve("data", he));
|
|
@@ -8563,36 +8567,36 @@ function Br() {
|
|
|
8563
8567
|
return `Cannot access ${we} ${he} levels up, current level is ${$}`;
|
|
8564
8568
|
}
|
|
8565
8569
|
}
|
|
8566
|
-
return
|
|
8570
|
+
return De.getData = ee, De;
|
|
8567
8571
|
}
|
|
8568
|
-
var
|
|
8572
|
+
var Ut = {}, uo;
|
|
8569
8573
|
function Gn() {
|
|
8570
|
-
if (uo) return
|
|
8571
|
-
uo = 1, Object.defineProperty(
|
|
8574
|
+
if (uo) return Ut;
|
|
8575
|
+
uo = 1, Object.defineProperty(Ut, "__esModule", { value: !0 });
|
|
8572
8576
|
class e extends Error {
|
|
8573
8577
|
constructor(r) {
|
|
8574
8578
|
super("validation failed"), this.errors = r, this.ajv = this.validation = !0;
|
|
8575
8579
|
}
|
|
8576
8580
|
}
|
|
8577
|
-
return
|
|
8581
|
+
return Ut.default = e, Ut;
|
|
8578
8582
|
}
|
|
8579
|
-
var
|
|
8583
|
+
var xt = {}, lo;
|
|
8580
8584
|
function zr() {
|
|
8581
|
-
if (lo) return
|
|
8582
|
-
lo = 1, Object.defineProperty(
|
|
8585
|
+
if (lo) return xt;
|
|
8586
|
+
lo = 1, Object.defineProperty(xt, "__esModule", { value: !0 });
|
|
8583
8587
|
const e = Hr();
|
|
8584
8588
|
class t extends Error {
|
|
8585
8589
|
constructor(n, s, o, a) {
|
|
8586
8590
|
super(a || `can't resolve reference ${o} from id ${s}`), this.missingRef = (0, e.resolveUrl)(n, s, o), this.missingSchema = (0, e.normalizeId)((0, e.getFullPath)(n, this.missingRef));
|
|
8587
8591
|
}
|
|
8588
8592
|
}
|
|
8589
|
-
return
|
|
8593
|
+
return xt.default = t, xt;
|
|
8590
8594
|
}
|
|
8591
8595
|
var _e = {}, fo;
|
|
8592
8596
|
function Kn() {
|
|
8593
8597
|
if (fo) return _e;
|
|
8594
8598
|
fo = 1, Object.defineProperty(_e, "__esModule", { value: !0 }), _e.resolveSchema = _e.getCompilingSchema = _e.resolveRef = _e.compileSchema = _e.SchemaEnv = void 0;
|
|
8595
|
-
const e =
|
|
8599
|
+
const e = Z(), t = Gn(), r = Fe(), n = Hr(), s = te(), o = Br();
|
|
8596
8600
|
class a {
|
|
8597
8601
|
constructor(p) {
|
|
8598
8602
|
var u;
|
|
@@ -8746,16 +8750,16 @@ function Kn() {
|
|
|
8746
8750
|
}
|
|
8747
8751
|
return _e;
|
|
8748
8752
|
}
|
|
8749
|
-
const
|
|
8750
|
-
$id:
|
|
8751
|
-
description:
|
|
8752
|
-
type:
|
|
8753
|
-
required:
|
|
8754
|
-
properties:
|
|
8755
|
-
additionalProperties:
|
|
8753
|
+
const Jp = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", Qp = "Meta-schema for $data reference (JSON AnySchema extension proposal)", Xp = "object", Zp = ["$data"], eh = { $data: { type: "string", anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }] } }, th = !1, rh = {
|
|
8754
|
+
$id: Jp,
|
|
8755
|
+
description: Qp,
|
|
8756
|
+
type: Xp,
|
|
8757
|
+
required: Zp,
|
|
8758
|
+
properties: eh,
|
|
8759
|
+
additionalProperties: th
|
|
8756
8760
|
};
|
|
8757
8761
|
var qt = {}, yt = { exports: {} }, gn, po;
|
|
8758
|
-
function
|
|
8762
|
+
function nh() {
|
|
8759
8763
|
return po || (po = 1, gn = {
|
|
8760
8764
|
HEX: {
|
|
8761
8765
|
0: 0,
|
|
@@ -8784,10 +8788,10 @@ function rh() {
|
|
|
8784
8788
|
}), gn;
|
|
8785
8789
|
}
|
|
8786
8790
|
var yn, ho;
|
|
8787
|
-
function
|
|
8791
|
+
function sh() {
|
|
8788
8792
|
if (ho) return yn;
|
|
8789
8793
|
ho = 1;
|
|
8790
|
-
const { HEX: e } =
|
|
8794
|
+
const { HEX: e } = nh(), t = /^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u;
|
|
8791
8795
|
function r(g) {
|
|
8792
8796
|
if (i(g, ".") < 3)
|
|
8793
8797
|
return { host: g, isIPV4: !1 };
|
|
@@ -8919,7 +8923,7 @@ function nh() {
|
|
|
8919
8923
|
}, yn;
|
|
8920
8924
|
}
|
|
8921
8925
|
var vn, mo;
|
|
8922
|
-
function
|
|
8926
|
+
function oh() {
|
|
8923
8927
|
if (mo) return vn;
|
|
8924
8928
|
mo = 1;
|
|
8925
8929
|
const e = /^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu, t = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
|
|
@@ -9011,10 +9015,10 @@ function sh() {
|
|
|
9011
9015
|
return vn = p, vn;
|
|
9012
9016
|
}
|
|
9013
9017
|
var go;
|
|
9014
|
-
function
|
|
9018
|
+
function ah() {
|
|
9015
9019
|
if (go) return yt.exports;
|
|
9016
9020
|
go = 1;
|
|
9017
|
-
const { normalizeIPv6: e, normalizeIPv4: t, removeDotSegments: r, recomposeAuthority: n, normalizeComponentEncoding: s } =
|
|
9021
|
+
const { normalizeIPv6: e, normalizeIPv4: t, removeDotSegments: r, recomposeAuthority: n, normalizeComponentEncoding: s } = sh(), o = oh();
|
|
9018
9022
|
function a(f, p) {
|
|
9019
9023
|
return typeof f == "string" ? f = l(y(f, p), p) : typeof f == "object" && (f = y(l(f, p), p)), f;
|
|
9020
9024
|
}
|
|
@@ -9110,21 +9114,21 @@ function oh() {
|
|
|
9110
9114
|
return yt.exports = g, yt.exports.default = g, yt.exports.fastUri = g, yt.exports;
|
|
9111
9115
|
}
|
|
9112
9116
|
var yo;
|
|
9113
|
-
function
|
|
9117
|
+
function ih() {
|
|
9114
9118
|
if (yo) return qt;
|
|
9115
9119
|
yo = 1, Object.defineProperty(qt, "__esModule", { value: !0 });
|
|
9116
|
-
const e =
|
|
9120
|
+
const e = ah();
|
|
9117
9121
|
return e.code = 'require("ajv/dist/runtime/uri").default', qt.default = e, qt;
|
|
9118
9122
|
}
|
|
9119
9123
|
var vo;
|
|
9120
|
-
function
|
|
9124
|
+
function ch() {
|
|
9121
9125
|
return vo || (vo = 1, (function(e) {
|
|
9122
9126
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = void 0;
|
|
9123
9127
|
var t = Br();
|
|
9124
9128
|
Object.defineProperty(e, "KeywordCxt", { enumerable: !0, get: function() {
|
|
9125
9129
|
return t.KeywordCxt;
|
|
9126
9130
|
} });
|
|
9127
|
-
var r =
|
|
9131
|
+
var r = Z();
|
|
9128
9132
|
Object.defineProperty(e, "_", { enumerable: !0, get: function() {
|
|
9129
9133
|
return r._;
|
|
9130
9134
|
} }), Object.defineProperty(e, "str", { enumerable: !0, get: function() {
|
|
@@ -9138,7 +9142,7 @@ function ih() {
|
|
|
9138
9142
|
} }), Object.defineProperty(e, "CodeGen", { enumerable: !0, get: function() {
|
|
9139
9143
|
return r.CodeGen;
|
|
9140
9144
|
} });
|
|
9141
|
-
const n = Gn(), s = zr(), o = Za(), a = Kn(), i =
|
|
9145
|
+
const n = Gn(), s = zr(), o = Za(), a = Kn(), i = Z(), c = Hr(), d = Ir(), l = te(), m = rh, v = ih(), S = (U, A) => new RegExp(U, A);
|
|
9142
9146
|
S.code = "new RegExp";
|
|
9143
9147
|
const y = ["removeAdditional", "useDefaults", "coerceTypes"], g = /* @__PURE__ */ new Set([
|
|
9144
9148
|
"validate",
|
|
@@ -9175,35 +9179,35 @@ function ih() {
|
|
|
9175
9179
|
jsPropertySyntax: "",
|
|
9176
9180
|
unicode: '"minLength"/"maxLength" account for unicode characters by default.'
|
|
9177
9181
|
}, u = 200;
|
|
9178
|
-
function h(
|
|
9179
|
-
var A,
|
|
9180
|
-
const lt =
|
|
9182
|
+
function h(U) {
|
|
9183
|
+
var A, C, P, w, T, D, V, z, se, ee, O, $, L, x, B, Q, pe, Ae, ve, we, he, Ye, Se, Gr, Kr;
|
|
9184
|
+
const lt = U.strict, Yr = (A = U.code) === null || A === void 0 ? void 0 : A.optimize, Jn = Yr === !0 || Yr === void 0 ? 1 : Yr || 0, Qn = (P = (C = U.code) === null || C === void 0 ? void 0 : C.regExp) !== null && P !== void 0 ? P : S, fi = (w = U.uriResolver) !== null && w !== void 0 ? w : v.default;
|
|
9181
9185
|
return {
|
|
9182
|
-
strictSchema: (
|
|
9183
|
-
strictNumbers: (z = (
|
|
9184
|
-
strictTypes: (ee = (se =
|
|
9185
|
-
strictTuples: ($ = (O =
|
|
9186
|
-
strictRequired: (
|
|
9187
|
-
code:
|
|
9188
|
-
loopRequired: (B =
|
|
9189
|
-
loopEnum: (Q =
|
|
9190
|
-
meta: (pe =
|
|
9191
|
-
messages: (Ae =
|
|
9192
|
-
inlineRefs: (ve =
|
|
9193
|
-
schemaId: (we =
|
|
9194
|
-
addUsedSchema: (he =
|
|
9195
|
-
validateSchema: (Ye =
|
|
9196
|
-
validateFormats: (Se =
|
|
9197
|
-
unicodeRegExp: (Gr =
|
|
9198
|
-
int32range: (Kr =
|
|
9186
|
+
strictSchema: (D = (T = U.strictSchema) !== null && T !== void 0 ? T : lt) !== null && D !== void 0 ? D : !0,
|
|
9187
|
+
strictNumbers: (z = (V = U.strictNumbers) !== null && V !== void 0 ? V : lt) !== null && z !== void 0 ? z : !0,
|
|
9188
|
+
strictTypes: (ee = (se = U.strictTypes) !== null && se !== void 0 ? se : lt) !== null && ee !== void 0 ? ee : "log",
|
|
9189
|
+
strictTuples: ($ = (O = U.strictTuples) !== null && O !== void 0 ? O : lt) !== null && $ !== void 0 ? $ : "log",
|
|
9190
|
+
strictRequired: (x = (L = U.strictRequired) !== null && L !== void 0 ? L : lt) !== null && x !== void 0 ? x : !1,
|
|
9191
|
+
code: U.code ? { ...U.code, optimize: Jn, regExp: Qn } : { optimize: Jn, regExp: Qn },
|
|
9192
|
+
loopRequired: (B = U.loopRequired) !== null && B !== void 0 ? B : u,
|
|
9193
|
+
loopEnum: (Q = U.loopEnum) !== null && Q !== void 0 ? Q : u,
|
|
9194
|
+
meta: (pe = U.meta) !== null && pe !== void 0 ? pe : !0,
|
|
9195
|
+
messages: (Ae = U.messages) !== null && Ae !== void 0 ? Ae : !0,
|
|
9196
|
+
inlineRefs: (ve = U.inlineRefs) !== null && ve !== void 0 ? ve : !0,
|
|
9197
|
+
schemaId: (we = U.schemaId) !== null && we !== void 0 ? we : "$id",
|
|
9198
|
+
addUsedSchema: (he = U.addUsedSchema) !== null && he !== void 0 ? he : !0,
|
|
9199
|
+
validateSchema: (Ye = U.validateSchema) !== null && Ye !== void 0 ? Ye : !0,
|
|
9200
|
+
validateFormats: (Se = U.validateFormats) !== null && Se !== void 0 ? Se : !0,
|
|
9201
|
+
unicodeRegExp: (Gr = U.unicodeRegExp) !== null && Gr !== void 0 ? Gr : !0,
|
|
9202
|
+
int32range: (Kr = U.int32range) !== null && Kr !== void 0 ? Kr : !0,
|
|
9199
9203
|
uriResolver: fi
|
|
9200
9204
|
};
|
|
9201
9205
|
}
|
|
9202
9206
|
class E {
|
|
9203
9207
|
constructor(A = {}) {
|
|
9204
9208
|
this.schemas = {}, this.refs = {}, this.formats = {}, this._compilations = /* @__PURE__ */ new Set(), this._loading = {}, this._cache = /* @__PURE__ */ new Map(), A = this.opts = { ...A, ...h(A) };
|
|
9205
|
-
const { es5:
|
|
9206
|
-
this.scope = new i.ValueScope({ scope: {}, prefixes: g, es5:
|
|
9209
|
+
const { es5: C, lines: P } = this.opts.code;
|
|
9210
|
+
this.scope = new i.ValueScope({ scope: {}, prefixes: g, es5: C, lines: P }), this.logger = F(A.logger);
|
|
9207
9211
|
const w = A.validateFormats;
|
|
9208
9212
|
A.validateFormats = !1, this.RULES = (0, o.getRules)(), _.call(this, f, A, "NOT SUPPORTED"), _.call(this, p, A, "DEPRECATED", "warn"), this._metaOpts = M.call(this), A.formats && N.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), A.keywords && k.call(this, A.keywords), typeof A.meta == "object" && this.addMetaSchema(A.meta), R.call(this), A.validateFormats = w;
|
|
9209
9213
|
}
|
|
@@ -9211,57 +9215,57 @@ function ih() {
|
|
|
9211
9215
|
this.addKeyword("$async");
|
|
9212
9216
|
}
|
|
9213
9217
|
_addDefaultMetaSchema() {
|
|
9214
|
-
const { $data: A, meta:
|
|
9218
|
+
const { $data: A, meta: C, schemaId: P } = this.opts;
|
|
9215
9219
|
let w = m;
|
|
9216
|
-
P === "id" && (w = { ...m }, w.id = w.$id, delete w.$id),
|
|
9220
|
+
P === "id" && (w = { ...m }, w.id = w.$id, delete w.$id), C && A && this.addMetaSchema(w, w[P], !1);
|
|
9217
9221
|
}
|
|
9218
9222
|
defaultMeta() {
|
|
9219
|
-
const { meta: A, schemaId:
|
|
9220
|
-
return this.opts.defaultMeta = typeof A == "object" ? A[
|
|
9223
|
+
const { meta: A, schemaId: C } = this.opts;
|
|
9224
|
+
return this.opts.defaultMeta = typeof A == "object" ? A[C] || A : void 0;
|
|
9221
9225
|
}
|
|
9222
|
-
validate(A,
|
|
9226
|
+
validate(A, C) {
|
|
9223
9227
|
let P;
|
|
9224
9228
|
if (typeof A == "string") {
|
|
9225
9229
|
if (P = this.getSchema(A), !P)
|
|
9226
9230
|
throw new Error(`no schema with key or ref "${A}"`);
|
|
9227
9231
|
} else
|
|
9228
9232
|
P = this.compile(A);
|
|
9229
|
-
const w = P(
|
|
9233
|
+
const w = P(C);
|
|
9230
9234
|
return "$async" in P || (this.errors = P.errors), w;
|
|
9231
9235
|
}
|
|
9232
|
-
compile(A,
|
|
9233
|
-
const P = this._addSchema(A,
|
|
9236
|
+
compile(A, C) {
|
|
9237
|
+
const P = this._addSchema(A, C);
|
|
9234
9238
|
return P.validate || this._compileSchemaEnv(P);
|
|
9235
9239
|
}
|
|
9236
|
-
compileAsync(A,
|
|
9240
|
+
compileAsync(A, C) {
|
|
9237
9241
|
if (typeof this.opts.loadSchema != "function")
|
|
9238
9242
|
throw new Error("options.loadSchema should be a function");
|
|
9239
9243
|
const { loadSchema: P } = this.opts;
|
|
9240
|
-
return w.call(this, A,
|
|
9244
|
+
return w.call(this, A, C);
|
|
9241
9245
|
async function w(ee, O) {
|
|
9242
9246
|
await T.call(this, ee.$schema);
|
|
9243
9247
|
const $ = this._addSchema(ee, O);
|
|
9244
|
-
return $.validate ||
|
|
9248
|
+
return $.validate || D.call(this, $);
|
|
9245
9249
|
}
|
|
9246
9250
|
async function T(ee) {
|
|
9247
9251
|
ee && !this.getSchema(ee) && await w.call(this, { $ref: ee }, !0);
|
|
9248
9252
|
}
|
|
9249
|
-
async function
|
|
9253
|
+
async function D(ee) {
|
|
9250
9254
|
try {
|
|
9251
9255
|
return this._compileSchemaEnv(ee);
|
|
9252
9256
|
} catch (O) {
|
|
9253
9257
|
if (!(O instanceof s.default))
|
|
9254
9258
|
throw O;
|
|
9255
|
-
return
|
|
9259
|
+
return V.call(this, O), await z.call(this, O.missingSchema), D.call(this, ee);
|
|
9256
9260
|
}
|
|
9257
9261
|
}
|
|
9258
|
-
function
|
|
9262
|
+
function V({ missingSchema: ee, missingRef: O }) {
|
|
9259
9263
|
if (this.refs[ee])
|
|
9260
9264
|
throw new Error(`AnySchema ${ee} is loaded but ${O} cannot be resolved`);
|
|
9261
9265
|
}
|
|
9262
9266
|
async function z(ee) {
|
|
9263
9267
|
const O = await se.call(this, ee);
|
|
9264
|
-
this.refs[ee] || await T.call(this, O.$schema), this.refs[ee] || this.addSchema(O, ee,
|
|
9268
|
+
this.refs[ee] || await T.call(this, O.$schema), this.refs[ee] || this.addSchema(O, ee, C);
|
|
9265
9269
|
}
|
|
9266
9270
|
async function se(ee) {
|
|
9267
9271
|
const O = this._loading[ee];
|
|
@@ -9275,27 +9279,27 @@ function ih() {
|
|
|
9275
9279
|
}
|
|
9276
9280
|
}
|
|
9277
9281
|
// Adds schema to the instance
|
|
9278
|
-
addSchema(A,
|
|
9282
|
+
addSchema(A, C, P, w = this.opts.validateSchema) {
|
|
9279
9283
|
if (Array.isArray(A)) {
|
|
9280
|
-
for (const
|
|
9281
|
-
this.addSchema(
|
|
9284
|
+
for (const D of A)
|
|
9285
|
+
this.addSchema(D, void 0, P, w);
|
|
9282
9286
|
return this;
|
|
9283
9287
|
}
|
|
9284
9288
|
let T;
|
|
9285
9289
|
if (typeof A == "object") {
|
|
9286
|
-
const { schemaId:
|
|
9287
|
-
if (T = A[
|
|
9288
|
-
throw new Error(`schema ${
|
|
9290
|
+
const { schemaId: D } = this.opts;
|
|
9291
|
+
if (T = A[D], T !== void 0 && typeof T != "string")
|
|
9292
|
+
throw new Error(`schema ${D} must be string`);
|
|
9289
9293
|
}
|
|
9290
|
-
return
|
|
9294
|
+
return C = (0, c.normalizeId)(C || T), this._checkUnique(C), this.schemas[C] = this._addSchema(A, P, C, w, !0), this;
|
|
9291
9295
|
}
|
|
9292
9296
|
// Add schema that will be used to validate other schemas
|
|
9293
9297
|
// options in META_IGNORE_OPTIONS are alway set to false
|
|
9294
|
-
addMetaSchema(A,
|
|
9295
|
-
return this.addSchema(A,
|
|
9298
|
+
addMetaSchema(A, C, P = this.opts.validateSchema) {
|
|
9299
|
+
return this.addSchema(A, C, !0, P), this;
|
|
9296
9300
|
}
|
|
9297
9301
|
// Validate schema against its meta-schema
|
|
9298
|
-
validateSchema(A,
|
|
9302
|
+
validateSchema(A, C) {
|
|
9299
9303
|
if (typeof A == "boolean")
|
|
9300
9304
|
return !0;
|
|
9301
9305
|
let P;
|
|
@@ -9304,7 +9308,7 @@ function ih() {
|
|
|
9304
9308
|
if (P = P || this.opts.defaultMeta || this.defaultMeta(), !P)
|
|
9305
9309
|
return this.logger.warn("meta-schema not available"), this.errors = null, !0;
|
|
9306
9310
|
const w = this.validate(P, A);
|
|
9307
|
-
if (!w &&
|
|
9311
|
+
if (!w && C) {
|
|
9308
9312
|
const T = "schema is invalid: " + this.errorsText();
|
|
9309
9313
|
if (this.opts.validateSchema === "log")
|
|
9310
9314
|
this.logger.error(T);
|
|
@@ -9316,16 +9320,16 @@ function ih() {
|
|
|
9316
9320
|
// Get compiled schema by `key` or `ref`.
|
|
9317
9321
|
// (`key` that was passed to `addSchema` or full schema reference - `schema.$id` or resolved id)
|
|
9318
9322
|
getSchema(A) {
|
|
9319
|
-
let
|
|
9320
|
-
for (; typeof (
|
|
9321
|
-
A =
|
|
9322
|
-
if (
|
|
9323
|
+
let C;
|
|
9324
|
+
for (; typeof (C = b.call(this, A)) == "string"; )
|
|
9325
|
+
A = C;
|
|
9326
|
+
if (C === void 0) {
|
|
9323
9327
|
const { schemaId: P } = this.opts, w = new a.SchemaEnv({ schema: {}, schemaId: P });
|
|
9324
|
-
if (
|
|
9328
|
+
if (C = a.resolveSchema.call(this, w, A), !C)
|
|
9325
9329
|
return;
|
|
9326
|
-
this.refs[A] =
|
|
9330
|
+
this.refs[A] = C;
|
|
9327
9331
|
}
|
|
9328
|
-
return
|
|
9332
|
+
return C.validate || this._compileSchemaEnv(C);
|
|
9329
9333
|
}
|
|
9330
9334
|
// Remove cached schema(s).
|
|
9331
9335
|
// If no parameter is passed all schemas but meta-schemas are removed.
|
|
@@ -9338,12 +9342,12 @@ function ih() {
|
|
|
9338
9342
|
case "undefined":
|
|
9339
9343
|
return this._removeAllSchemas(this.schemas), this._removeAllSchemas(this.refs), this._cache.clear(), this;
|
|
9340
9344
|
case "string": {
|
|
9341
|
-
const
|
|
9342
|
-
return typeof
|
|
9345
|
+
const C = b.call(this, A);
|
|
9346
|
+
return typeof C == "object" && this._cache.delete(C.schema), delete this.schemas[A], delete this.refs[A], this;
|
|
9343
9347
|
}
|
|
9344
9348
|
case "object": {
|
|
9345
|
-
const
|
|
9346
|
-
this._cache.delete(
|
|
9349
|
+
const C = A;
|
|
9350
|
+
this._cache.delete(C);
|
|
9347
9351
|
let P = A[this.opts.schemaId];
|
|
9348
9352
|
return P && (P = (0, c.normalizeId)(P), delete this.schemas[P], delete this.refs[P]), this;
|
|
9349
9353
|
}
|
|
@@ -9353,79 +9357,79 @@ function ih() {
|
|
|
9353
9357
|
}
|
|
9354
9358
|
// add "vocabulary" - a collection of keywords
|
|
9355
9359
|
addVocabulary(A) {
|
|
9356
|
-
for (const
|
|
9357
|
-
this.addKeyword(
|
|
9360
|
+
for (const C of A)
|
|
9361
|
+
this.addKeyword(C);
|
|
9358
9362
|
return this;
|
|
9359
9363
|
}
|
|
9360
|
-
addKeyword(A,
|
|
9364
|
+
addKeyword(A, C) {
|
|
9361
9365
|
let P;
|
|
9362
9366
|
if (typeof A == "string")
|
|
9363
|
-
P = A, typeof
|
|
9364
|
-
else if (typeof A == "object" &&
|
|
9365
|
-
if (
|
|
9367
|
+
P = A, typeof C == "object" && (this.logger.warn("these parameters are deprecated, see docs for addKeyword"), C.keyword = P);
|
|
9368
|
+
else if (typeof A == "object" && C === void 0) {
|
|
9369
|
+
if (C = A, P = C.keyword, Array.isArray(P) && !P.length)
|
|
9366
9370
|
throw new Error("addKeywords: keyword must be string or non-empty array");
|
|
9367
9371
|
} else
|
|
9368
9372
|
throw new Error("invalid addKeywords parameters");
|
|
9369
|
-
if (G.call(this, P,
|
|
9373
|
+
if (G.call(this, P, C), !C)
|
|
9370
9374
|
return (0, l.eachItem)(P, (T) => re.call(this, T)), this;
|
|
9371
|
-
fe.call(this,
|
|
9375
|
+
fe.call(this, C);
|
|
9372
9376
|
const w = {
|
|
9373
|
-
...
|
|
9374
|
-
type: (0, d.getJSONTypes)(
|
|
9375
|
-
schemaType: (0, d.getJSONTypes)(
|
|
9377
|
+
...C,
|
|
9378
|
+
type: (0, d.getJSONTypes)(C.type),
|
|
9379
|
+
schemaType: (0, d.getJSONTypes)(C.schemaType)
|
|
9376
9380
|
};
|
|
9377
|
-
return (0, l.eachItem)(P, w.type.length === 0 ? (T) => re.call(this, T, w) : (T) => w.type.forEach((
|
|
9381
|
+
return (0, l.eachItem)(P, w.type.length === 0 ? (T) => re.call(this, T, w) : (T) => w.type.forEach((D) => re.call(this, T, w, D))), this;
|
|
9378
9382
|
}
|
|
9379
9383
|
getKeyword(A) {
|
|
9380
|
-
const
|
|
9381
|
-
return typeof
|
|
9384
|
+
const C = this.RULES.all[A];
|
|
9385
|
+
return typeof C == "object" ? C.definition : !!C;
|
|
9382
9386
|
}
|
|
9383
9387
|
// Remove keyword
|
|
9384
9388
|
removeKeyword(A) {
|
|
9385
|
-
const { RULES:
|
|
9386
|
-
delete
|
|
9387
|
-
for (const P of
|
|
9389
|
+
const { RULES: C } = this;
|
|
9390
|
+
delete C.keywords[A], delete C.all[A];
|
|
9391
|
+
for (const P of C.rules) {
|
|
9388
9392
|
const w = P.rules.findIndex((T) => T.keyword === A);
|
|
9389
9393
|
w >= 0 && P.rules.splice(w, 1);
|
|
9390
9394
|
}
|
|
9391
9395
|
return this;
|
|
9392
9396
|
}
|
|
9393
9397
|
// Add format
|
|
9394
|
-
addFormat(A,
|
|
9395
|
-
return typeof
|
|
9398
|
+
addFormat(A, C) {
|
|
9399
|
+
return typeof C == "string" && (C = new RegExp(C)), this.formats[A] = C, this;
|
|
9396
9400
|
}
|
|
9397
|
-
errorsText(A = this.errors, { separator:
|
|
9398
|
-
return !A || A.length === 0 ? "No errors" : A.map((w) => `${P}${w.instancePath} ${w.message}`).reduce((w, T) => w +
|
|
9401
|
+
errorsText(A = this.errors, { separator: C = ", ", dataVar: P = "data" } = {}) {
|
|
9402
|
+
return !A || A.length === 0 ? "No errors" : A.map((w) => `${P}${w.instancePath} ${w.message}`).reduce((w, T) => w + C + T);
|
|
9399
9403
|
}
|
|
9400
|
-
$dataMetaSchema(A,
|
|
9404
|
+
$dataMetaSchema(A, C) {
|
|
9401
9405
|
const P = this.RULES.all;
|
|
9402
9406
|
A = JSON.parse(JSON.stringify(A));
|
|
9403
|
-
for (const w of
|
|
9407
|
+
for (const w of C) {
|
|
9404
9408
|
const T = w.split("/").slice(1);
|
|
9405
|
-
let
|
|
9406
|
-
for (const
|
|
9407
|
-
|
|
9408
|
-
for (const
|
|
9409
|
-
const z = P[
|
|
9409
|
+
let D = A;
|
|
9410
|
+
for (const V of T)
|
|
9411
|
+
D = D[V];
|
|
9412
|
+
for (const V in P) {
|
|
9413
|
+
const z = P[V];
|
|
9410
9414
|
if (typeof z != "object")
|
|
9411
9415
|
continue;
|
|
9412
|
-
const { $data: se } = z.definition, ee =
|
|
9413
|
-
se && ee && (
|
|
9416
|
+
const { $data: se } = z.definition, ee = D[V];
|
|
9417
|
+
se && ee && (D[V] = ie(ee));
|
|
9414
9418
|
}
|
|
9415
9419
|
}
|
|
9416
9420
|
return A;
|
|
9417
9421
|
}
|
|
9418
|
-
_removeAllSchemas(A,
|
|
9422
|
+
_removeAllSchemas(A, C) {
|
|
9419
9423
|
for (const P in A) {
|
|
9420
9424
|
const w = A[P];
|
|
9421
|
-
(!
|
|
9425
|
+
(!C || C.test(P)) && (typeof w == "string" ? delete A[P] : w && !w.meta && (this._cache.delete(w.schema), delete A[P]));
|
|
9422
9426
|
}
|
|
9423
9427
|
}
|
|
9424
|
-
_addSchema(A,
|
|
9425
|
-
let
|
|
9426
|
-
const { schemaId:
|
|
9428
|
+
_addSchema(A, C, P, w = this.opts.validateSchema, T = this.opts.addUsedSchema) {
|
|
9429
|
+
let D;
|
|
9430
|
+
const { schemaId: V } = this.opts;
|
|
9427
9431
|
if (typeof A == "object")
|
|
9428
|
-
|
|
9432
|
+
D = A[V];
|
|
9429
9433
|
else {
|
|
9430
9434
|
if (this.opts.jtd)
|
|
9431
9435
|
throw new Error("schema must be object");
|
|
@@ -9435,9 +9439,9 @@ function ih() {
|
|
|
9435
9439
|
let z = this._cache.get(A);
|
|
9436
9440
|
if (z !== void 0)
|
|
9437
9441
|
return z;
|
|
9438
|
-
P = (0, c.normalizeId)(
|
|
9442
|
+
P = (0, c.normalizeId)(D || P);
|
|
9439
9443
|
const se = c.getSchemaRefs.call(this, A, P);
|
|
9440
|
-
return z = new a.SchemaEnv({ schema: A, schemaId:
|
|
9444
|
+
return z = new a.SchemaEnv({ schema: A, schemaId: V, meta: C, baseId: P, localRefs: se }), this._cache.set(z.schema, z), T && !P.startsWith("#") && (P && this._checkUnique(P), this.refs[P] = z), w && this.validateSchema(A, !0), z;
|
|
9441
9445
|
}
|
|
9442
9446
|
_checkUnique(A) {
|
|
9443
9447
|
if (this.schemas[A] || this.refs[A])
|
|
@@ -9449,133 +9453,133 @@ function ih() {
|
|
|
9449
9453
|
return A.validate;
|
|
9450
9454
|
}
|
|
9451
9455
|
_compileMetaSchema(A) {
|
|
9452
|
-
const
|
|
9456
|
+
const C = this.opts;
|
|
9453
9457
|
this.opts = this._metaOpts;
|
|
9454
9458
|
try {
|
|
9455
9459
|
a.compileSchema.call(this, A);
|
|
9456
9460
|
} finally {
|
|
9457
|
-
this.opts =
|
|
9461
|
+
this.opts = C;
|
|
9458
9462
|
}
|
|
9459
9463
|
}
|
|
9460
9464
|
}
|
|
9461
9465
|
E.ValidationError = n.default, E.MissingRefError = s.default, e.default = E;
|
|
9462
|
-
function _(
|
|
9463
|
-
for (const w in
|
|
9466
|
+
function _(U, A, C, P = "error") {
|
|
9467
|
+
for (const w in U) {
|
|
9464
9468
|
const T = w;
|
|
9465
|
-
T in A && this.logger[P](`${
|
|
9469
|
+
T in A && this.logger[P](`${C}: option ${w}. ${U[T]}`);
|
|
9466
9470
|
}
|
|
9467
9471
|
}
|
|
9468
|
-
function b(
|
|
9469
|
-
return
|
|
9472
|
+
function b(U) {
|
|
9473
|
+
return U = (0, c.normalizeId)(U), this.schemas[U] || this.refs[U];
|
|
9470
9474
|
}
|
|
9471
9475
|
function R() {
|
|
9472
|
-
const
|
|
9473
|
-
if (
|
|
9474
|
-
if (Array.isArray(
|
|
9475
|
-
this.addSchema(
|
|
9476
|
+
const U = this.opts.schemas;
|
|
9477
|
+
if (U)
|
|
9478
|
+
if (Array.isArray(U))
|
|
9479
|
+
this.addSchema(U);
|
|
9476
9480
|
else
|
|
9477
|
-
for (const A in
|
|
9478
|
-
this.addSchema(
|
|
9481
|
+
for (const A in U)
|
|
9482
|
+
this.addSchema(U[A], A);
|
|
9479
9483
|
}
|
|
9480
9484
|
function N() {
|
|
9481
|
-
for (const
|
|
9482
|
-
const A = this.opts.formats[
|
|
9483
|
-
A && this.addFormat(
|
|
9485
|
+
for (const U in this.opts.formats) {
|
|
9486
|
+
const A = this.opts.formats[U];
|
|
9487
|
+
A && this.addFormat(U, A);
|
|
9484
9488
|
}
|
|
9485
9489
|
}
|
|
9486
|
-
function k(
|
|
9487
|
-
if (Array.isArray(
|
|
9488
|
-
this.addVocabulary(
|
|
9490
|
+
function k(U) {
|
|
9491
|
+
if (Array.isArray(U)) {
|
|
9492
|
+
this.addVocabulary(U);
|
|
9489
9493
|
return;
|
|
9490
9494
|
}
|
|
9491
9495
|
this.logger.warn("keywords option as map is deprecated, pass array");
|
|
9492
|
-
for (const A in
|
|
9493
|
-
const
|
|
9494
|
-
|
|
9496
|
+
for (const A in U) {
|
|
9497
|
+
const C = U[A];
|
|
9498
|
+
C.keyword || (C.keyword = A), this.addKeyword(C);
|
|
9495
9499
|
}
|
|
9496
9500
|
}
|
|
9497
9501
|
function M() {
|
|
9498
|
-
const
|
|
9502
|
+
const U = { ...this.opts };
|
|
9499
9503
|
for (const A of y)
|
|
9500
|
-
delete
|
|
9501
|
-
return
|
|
9504
|
+
delete U[A];
|
|
9505
|
+
return U;
|
|
9502
9506
|
}
|
|
9503
9507
|
const q = { log() {
|
|
9504
9508
|
}, warn() {
|
|
9505
9509
|
}, error() {
|
|
9506
9510
|
} };
|
|
9507
|
-
function
|
|
9508
|
-
if (
|
|
9511
|
+
function F(U) {
|
|
9512
|
+
if (U === !1)
|
|
9509
9513
|
return q;
|
|
9510
|
-
if (
|
|
9514
|
+
if (U === void 0)
|
|
9511
9515
|
return console;
|
|
9512
|
-
if (
|
|
9513
|
-
return
|
|
9516
|
+
if (U.log && U.warn && U.error)
|
|
9517
|
+
return U;
|
|
9514
9518
|
throw new Error("logger must implement log, warn and error methods");
|
|
9515
9519
|
}
|
|
9516
9520
|
const H = /^[a-z_$][a-z0-9_$:-]*$/i;
|
|
9517
|
-
function G(
|
|
9518
|
-
const { RULES:
|
|
9519
|
-
if ((0, l.eachItem)(
|
|
9520
|
-
if (
|
|
9521
|
+
function G(U, A) {
|
|
9522
|
+
const { RULES: C } = this;
|
|
9523
|
+
if ((0, l.eachItem)(U, (P) => {
|
|
9524
|
+
if (C.keywords[P])
|
|
9521
9525
|
throw new Error(`Keyword ${P} is already defined`);
|
|
9522
9526
|
if (!H.test(P))
|
|
9523
9527
|
throw new Error(`Keyword ${P} has invalid name`);
|
|
9524
9528
|
}), !!A && A.$data && !("code" in A || "validate" in A))
|
|
9525
9529
|
throw new Error('$data keyword must have "code" or "validate" function');
|
|
9526
9530
|
}
|
|
9527
|
-
function re(
|
|
9531
|
+
function re(U, A, C) {
|
|
9528
9532
|
var P;
|
|
9529
9533
|
const w = A?.post;
|
|
9530
|
-
if (
|
|
9534
|
+
if (C && w)
|
|
9531
9535
|
throw new Error('keyword with "post" flag cannot have "type"');
|
|
9532
9536
|
const { RULES: T } = this;
|
|
9533
|
-
let
|
|
9534
|
-
if (
|
|
9537
|
+
let D = w ? T.post : T.rules.find(({ type: z }) => z === C);
|
|
9538
|
+
if (D || (D = { type: C, rules: [] }, T.rules.push(D)), T.keywords[U] = !0, !A)
|
|
9535
9539
|
return;
|
|
9536
|
-
const
|
|
9537
|
-
keyword:
|
|
9540
|
+
const V = {
|
|
9541
|
+
keyword: U,
|
|
9538
9542
|
definition: {
|
|
9539
9543
|
...A,
|
|
9540
9544
|
type: (0, d.getJSONTypes)(A.type),
|
|
9541
9545
|
schemaType: (0, d.getJSONTypes)(A.schemaType)
|
|
9542
9546
|
}
|
|
9543
9547
|
};
|
|
9544
|
-
A.before ? ne.call(this,
|
|
9548
|
+
A.before ? ne.call(this, D, V, A.before) : D.rules.push(V), T.all[U] = V, (P = A.implements) === null || P === void 0 || P.forEach((z) => this.addKeyword(z));
|
|
9545
9549
|
}
|
|
9546
|
-
function ne(
|
|
9547
|
-
const P =
|
|
9548
|
-
P >= 0 ?
|
|
9550
|
+
function ne(U, A, C) {
|
|
9551
|
+
const P = U.rules.findIndex((w) => w.keyword === C);
|
|
9552
|
+
P >= 0 ? U.rules.splice(P, 0, A) : (U.rules.push(A), this.logger.warn(`rule ${C} is not defined`));
|
|
9549
9553
|
}
|
|
9550
|
-
function fe(
|
|
9551
|
-
let { metaSchema: A } =
|
|
9552
|
-
A !== void 0 && (
|
|
9554
|
+
function fe(U) {
|
|
9555
|
+
let { metaSchema: A } = U;
|
|
9556
|
+
A !== void 0 && (U.$data && this.opts.$data && (A = ie(A)), U.validateSchema = this.compile(A, !0));
|
|
9553
9557
|
}
|
|
9554
9558
|
const J = {
|
|
9555
9559
|
$ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"
|
|
9556
9560
|
};
|
|
9557
|
-
function ie(
|
|
9558
|
-
return { anyOf: [
|
|
9561
|
+
function ie(U) {
|
|
9562
|
+
return { anyOf: [U, J] };
|
|
9559
9563
|
}
|
|
9560
9564
|
})(un)), un;
|
|
9561
9565
|
}
|
|
9562
|
-
var Mt = {},
|
|
9563
|
-
function
|
|
9564
|
-
if (wo) return
|
|
9565
|
-
wo = 1, Object.defineProperty(
|
|
9566
|
+
var Mt = {}, Ft = {}, jt = {}, wo;
|
|
9567
|
+
function uh() {
|
|
9568
|
+
if (wo) return jt;
|
|
9569
|
+
wo = 1, Object.defineProperty(jt, "__esModule", { value: !0 });
|
|
9566
9570
|
const e = {
|
|
9567
9571
|
keyword: "id",
|
|
9568
9572
|
code() {
|
|
9569
9573
|
throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID');
|
|
9570
9574
|
}
|
|
9571
9575
|
};
|
|
9572
|
-
return
|
|
9576
|
+
return jt.default = e, jt;
|
|
9573
9577
|
}
|
|
9574
|
-
var
|
|
9575
|
-
function
|
|
9576
|
-
if (Eo) return
|
|
9577
|
-
Eo = 1, Object.defineProperty(
|
|
9578
|
-
const e = zr(), t = Pe(), r =
|
|
9578
|
+
var qe = {}, Eo;
|
|
9579
|
+
function lh() {
|
|
9580
|
+
if (Eo) return qe;
|
|
9581
|
+
Eo = 1, Object.defineProperty(qe, "__esModule", { value: !0 }), qe.callRef = qe.getValidate = void 0;
|
|
9582
|
+
const e = zr(), t = Pe(), r = Z(), n = Fe(), s = Kn(), o = te(), a = {
|
|
9579
9583
|
keyword: "$ref",
|
|
9580
9584
|
schemaType: "string",
|
|
9581
9585
|
code(d) {
|
|
@@ -9614,7 +9618,7 @@ function uh() {
|
|
|
9614
9618
|
const { gen: m } = d;
|
|
9615
9619
|
return l.validate ? m.scopeValue("validate", { ref: l.validate }) : (0, r._)`${m.scopeValue("wrapper", { ref: l })}.validate`;
|
|
9616
9620
|
}
|
|
9617
|
-
|
|
9621
|
+
qe.getValidate = i;
|
|
9618
9622
|
function c(d, l, m, v) {
|
|
9619
9623
|
const { gen: S, it: y } = d, { allErrors: g, schemaEnv: f, opts: p } = y, u = p.passContext ? n.default.this : r.nil;
|
|
9620
9624
|
v ? h() : E();
|
|
@@ -9656,13 +9660,13 @@ function uh() {
|
|
|
9656
9660
|
}
|
|
9657
9661
|
}
|
|
9658
9662
|
}
|
|
9659
|
-
return
|
|
9663
|
+
return qe.callRef = c, qe.default = a, qe;
|
|
9660
9664
|
}
|
|
9661
9665
|
var bo;
|
|
9662
|
-
function
|
|
9663
|
-
if (bo) return
|
|
9664
|
-
bo = 1, Object.defineProperty(
|
|
9665
|
-
const e =
|
|
9666
|
+
function dh() {
|
|
9667
|
+
if (bo) return Ft;
|
|
9668
|
+
bo = 1, Object.defineProperty(Ft, "__esModule", { value: !0 });
|
|
9669
|
+
const e = uh(), t = lh(), r = [
|
|
9666
9670
|
"$schema",
|
|
9667
9671
|
"$id",
|
|
9668
9672
|
"$defs",
|
|
@@ -9672,13 +9676,13 @@ function lh() {
|
|
|
9672
9676
|
e.default,
|
|
9673
9677
|
t.default
|
|
9674
9678
|
];
|
|
9675
|
-
return
|
|
9679
|
+
return Ft.default = r, Ft;
|
|
9676
9680
|
}
|
|
9677
9681
|
var Vt = {}, Ht = {}, _o;
|
|
9678
|
-
function
|
|
9682
|
+
function fh() {
|
|
9679
9683
|
if (_o) return Ht;
|
|
9680
9684
|
_o = 1, Object.defineProperty(Ht, "__esModule", { value: !0 });
|
|
9681
|
-
const e =
|
|
9685
|
+
const e = Z(), t = e.operators, r = {
|
|
9682
9686
|
maximum: { okStr: "<=", ok: t.LTE, fail: t.GT },
|
|
9683
9687
|
minimum: { okStr: ">=", ok: t.GTE, fail: t.LT },
|
|
9684
9688
|
exclusiveMaximum: { okStr: "<", ok: t.LT, fail: t.GTE },
|
|
@@ -9700,10 +9704,10 @@ function dh() {
|
|
|
9700
9704
|
return Ht.default = s, Ht;
|
|
9701
9705
|
}
|
|
9702
9706
|
var Bt = {}, So;
|
|
9703
|
-
function
|
|
9707
|
+
function ph() {
|
|
9704
9708
|
if (So) return Bt;
|
|
9705
9709
|
So = 1, Object.defineProperty(Bt, "__esModule", { value: !0 });
|
|
9706
|
-
const e =
|
|
9710
|
+
const e = Z(), r = {
|
|
9707
9711
|
keyword: "multipleOf",
|
|
9708
9712
|
type: "number",
|
|
9709
9713
|
schemaType: "number",
|
|
@@ -9720,7 +9724,7 @@ function fh() {
|
|
|
9720
9724
|
return Bt.default = r, Bt;
|
|
9721
9725
|
}
|
|
9722
9726
|
var zt = {}, Gt = {}, Ro;
|
|
9723
|
-
function
|
|
9727
|
+
function hh() {
|
|
9724
9728
|
if (Ro) return Gt;
|
|
9725
9729
|
Ro = 1, Object.defineProperty(Gt, "__esModule", { value: !0 });
|
|
9726
9730
|
function e(t) {
|
|
@@ -9733,10 +9737,10 @@ function ph() {
|
|
|
9733
9737
|
return Gt.default = e, e.code = 'require("ajv/dist/runtime/ucs2length").default', Gt;
|
|
9734
9738
|
}
|
|
9735
9739
|
var To;
|
|
9736
|
-
function
|
|
9740
|
+
function mh() {
|
|
9737
9741
|
if (To) return zt;
|
|
9738
9742
|
To = 1, Object.defineProperty(zt, "__esModule", { value: !0 });
|
|
9739
|
-
const e =
|
|
9743
|
+
const e = Z(), t = te(), r = hh(), s = {
|
|
9740
9744
|
keyword: ["maxLength", "minLength"],
|
|
9741
9745
|
type: "string",
|
|
9742
9746
|
schemaType: "number",
|
|
@@ -9756,10 +9760,10 @@ function hh() {
|
|
|
9756
9760
|
return zt.default = s, zt;
|
|
9757
9761
|
}
|
|
9758
9762
|
var Kt = {}, Oo;
|
|
9759
|
-
function
|
|
9763
|
+
function gh() {
|
|
9760
9764
|
if (Oo) return Kt;
|
|
9761
9765
|
Oo = 1, Object.defineProperty(Kt, "__esModule", { value: !0 });
|
|
9762
|
-
const e = Pe(), t =
|
|
9766
|
+
const e = Pe(), t = Z(), n = {
|
|
9763
9767
|
keyword: "pattern",
|
|
9764
9768
|
type: "string",
|
|
9765
9769
|
schemaType: "string",
|
|
@@ -9776,10 +9780,10 @@ function mh() {
|
|
|
9776
9780
|
return Kt.default = n, Kt;
|
|
9777
9781
|
}
|
|
9778
9782
|
var Yt = {}, Ao;
|
|
9779
|
-
function
|
|
9783
|
+
function yh() {
|
|
9780
9784
|
if (Ao) return Yt;
|
|
9781
9785
|
Ao = 1, Object.defineProperty(Yt, "__esModule", { value: !0 });
|
|
9782
|
-
const e =
|
|
9786
|
+
const e = Z(), r = {
|
|
9783
9787
|
keyword: ["maxProperties", "minProperties"],
|
|
9784
9788
|
type: "object",
|
|
9785
9789
|
schemaType: "number",
|
|
@@ -9799,10 +9803,10 @@ function gh() {
|
|
|
9799
9803
|
return Yt.default = r, Yt;
|
|
9800
9804
|
}
|
|
9801
9805
|
var Wt = {}, No;
|
|
9802
|
-
function
|
|
9806
|
+
function vh() {
|
|
9803
9807
|
if (No) return Wt;
|
|
9804
9808
|
No = 1, Object.defineProperty(Wt, "__esModule", { value: !0 });
|
|
9805
|
-
const e = Pe(), t =
|
|
9809
|
+
const e = Pe(), t = Z(), r = te(), s = {
|
|
9806
9810
|
keyword: "required",
|
|
9807
9811
|
type: "object",
|
|
9808
9812
|
schemaType: "array",
|
|
@@ -9856,10 +9860,10 @@ function yh() {
|
|
|
9856
9860
|
return Wt.default = s, Wt;
|
|
9857
9861
|
}
|
|
9858
9862
|
var Jt = {}, $o;
|
|
9859
|
-
function
|
|
9863
|
+
function wh() {
|
|
9860
9864
|
if ($o) return Jt;
|
|
9861
9865
|
$o = 1, Object.defineProperty(Jt, "__esModule", { value: !0 });
|
|
9862
|
-
const e =
|
|
9866
|
+
const e = Z(), r = {
|
|
9863
9867
|
keyword: ["maxItems", "minItems"],
|
|
9864
9868
|
type: "array",
|
|
9865
9869
|
schemaType: "number",
|
|
@@ -9886,10 +9890,10 @@ function Yn() {
|
|
|
9886
9890
|
return e.code = 'require("ajv/dist/runtime/equal").default', Xt.default = e, Xt;
|
|
9887
9891
|
}
|
|
9888
9892
|
var Io;
|
|
9889
|
-
function
|
|
9893
|
+
function Eh() {
|
|
9890
9894
|
if (Io) return Qt;
|
|
9891
9895
|
Io = 1, Object.defineProperty(Qt, "__esModule", { value: !0 });
|
|
9892
|
-
const e = Ir(), t =
|
|
9896
|
+
const e = Ir(), t = Z(), r = te(), n = Yn(), o = {
|
|
9893
9897
|
keyword: "uniqueItems",
|
|
9894
9898
|
type: "array",
|
|
9895
9899
|
schemaType: "boolean",
|
|
@@ -9929,11 +9933,11 @@ function wh() {
|
|
|
9929
9933
|
};
|
|
9930
9934
|
return Qt.default = o, Qt;
|
|
9931
9935
|
}
|
|
9932
|
-
var Zt = {},
|
|
9933
|
-
function
|
|
9934
|
-
if (
|
|
9935
|
-
|
|
9936
|
-
const e =
|
|
9936
|
+
var Zt = {}, Do;
|
|
9937
|
+
function bh() {
|
|
9938
|
+
if (Do) return Zt;
|
|
9939
|
+
Do = 1, Object.defineProperty(Zt, "__esModule", { value: !0 });
|
|
9940
|
+
const e = Z(), t = te(), r = Yn(), s = {
|
|
9937
9941
|
keyword: "const",
|
|
9938
9942
|
$data: !0,
|
|
9939
9943
|
error: {
|
|
@@ -9947,11 +9951,11 @@ function Eh() {
|
|
|
9947
9951
|
};
|
|
9948
9952
|
return Zt.default = s, Zt;
|
|
9949
9953
|
}
|
|
9950
|
-
var er = {},
|
|
9951
|
-
function
|
|
9952
|
-
if (
|
|
9953
|
-
|
|
9954
|
-
const e =
|
|
9954
|
+
var er = {}, Co;
|
|
9955
|
+
function _h() {
|
|
9956
|
+
if (Co) return er;
|
|
9957
|
+
Co = 1, Object.defineProperty(er, "__esModule", { value: !0 });
|
|
9958
|
+
const e = Z(), t = te(), r = Yn(), s = {
|
|
9955
9959
|
keyword: "enum",
|
|
9956
9960
|
schemaType: "array",
|
|
9957
9961
|
$data: !0,
|
|
@@ -9988,10 +9992,10 @@ function bh() {
|
|
|
9988
9992
|
return er.default = s, er;
|
|
9989
9993
|
}
|
|
9990
9994
|
var Lo;
|
|
9991
|
-
function
|
|
9995
|
+
function Sh() {
|
|
9992
9996
|
if (Lo) return Vt;
|
|
9993
9997
|
Lo = 1, Object.defineProperty(Vt, "__esModule", { value: !0 });
|
|
9994
|
-
const e =
|
|
9998
|
+
const e = fh(), t = ph(), r = mh(), n = gh(), s = yh(), o = vh(), a = wh(), i = Eh(), c = bh(), d = _h(), l = [
|
|
9995
9999
|
// number
|
|
9996
10000
|
e.default,
|
|
9997
10001
|
t.default,
|
|
@@ -10016,7 +10020,7 @@ var tr = {}, tt = {}, ko;
|
|
|
10016
10020
|
function ri() {
|
|
10017
10021
|
if (ko) return tt;
|
|
10018
10022
|
ko = 1, Object.defineProperty(tt, "__esModule", { value: !0 }), tt.validateAdditionalItems = void 0;
|
|
10019
|
-
const e =
|
|
10023
|
+
const e = Z(), t = te(), n = {
|
|
10020
10024
|
keyword: "additionalItems",
|
|
10021
10025
|
type: "array",
|
|
10022
10026
|
schemaType: ["boolean", "object"],
|
|
@@ -10052,11 +10056,11 @@ function ri() {
|
|
|
10052
10056
|
}
|
|
10053
10057
|
return tt.validateAdditionalItems = s, tt.default = n, tt;
|
|
10054
10058
|
}
|
|
10055
|
-
var rr = {}, rt = {},
|
|
10059
|
+
var rr = {}, rt = {}, Uo;
|
|
10056
10060
|
function ni() {
|
|
10057
|
-
if (
|
|
10058
|
-
|
|
10059
|
-
const e =
|
|
10061
|
+
if (Uo) return rt;
|
|
10062
|
+
Uo = 1, Object.defineProperty(rt, "__esModule", { value: !0 }), rt.validateTuple = void 0;
|
|
10063
|
+
const e = Z(), t = te(), r = Pe(), n = {
|
|
10060
10064
|
keyword: "items",
|
|
10061
10065
|
type: "array",
|
|
10062
10066
|
schemaType: ["object", "array", "boolean"],
|
|
@@ -10089,10 +10093,10 @@ function ni() {
|
|
|
10089
10093
|
}
|
|
10090
10094
|
return rt.validateTuple = s, rt.default = n, rt;
|
|
10091
10095
|
}
|
|
10092
|
-
var
|
|
10093
|
-
function
|
|
10094
|
-
if (
|
|
10095
|
-
|
|
10096
|
+
var xo;
|
|
10097
|
+
function Rh() {
|
|
10098
|
+
if (xo) return rr;
|
|
10099
|
+
xo = 1, Object.defineProperty(rr, "__esModule", { value: !0 });
|
|
10096
10100
|
const e = ni(), t = {
|
|
10097
10101
|
keyword: "prefixItems",
|
|
10098
10102
|
type: "array",
|
|
@@ -10103,10 +10107,10 @@ function Sh() {
|
|
|
10103
10107
|
return rr.default = t, rr;
|
|
10104
10108
|
}
|
|
10105
10109
|
var nr = {}, qo;
|
|
10106
|
-
function
|
|
10110
|
+
function Th() {
|
|
10107
10111
|
if (qo) return nr;
|
|
10108
10112
|
qo = 1, Object.defineProperty(nr, "__esModule", { value: !0 });
|
|
10109
|
-
const e =
|
|
10113
|
+
const e = Z(), t = te(), r = Pe(), n = ri(), o = {
|
|
10110
10114
|
keyword: "items",
|
|
10111
10115
|
type: "array",
|
|
10112
10116
|
schemaType: ["object", "boolean"],
|
|
@@ -10123,10 +10127,10 @@ function Rh() {
|
|
|
10123
10127
|
return nr.default = o, nr;
|
|
10124
10128
|
}
|
|
10125
10129
|
var sr = {}, Mo;
|
|
10126
|
-
function
|
|
10130
|
+
function Oh() {
|
|
10127
10131
|
if (Mo) return sr;
|
|
10128
10132
|
Mo = 1, Object.defineProperty(sr, "__esModule", { value: !0 });
|
|
10129
|
-
const e =
|
|
10133
|
+
const e = Z(), t = te(), n = {
|
|
10130
10134
|
keyword: "contains",
|
|
10131
10135
|
type: "array",
|
|
10132
10136
|
schemaType: ["object", "boolean"],
|
|
@@ -10179,11 +10183,11 @@ function Th() {
|
|
|
10179
10183
|
};
|
|
10180
10184
|
return sr.default = n, sr;
|
|
10181
10185
|
}
|
|
10182
|
-
var wn = {},
|
|
10183
|
-
function
|
|
10184
|
-
return
|
|
10186
|
+
var wn = {}, Fo;
|
|
10187
|
+
function Ah() {
|
|
10188
|
+
return Fo || (Fo = 1, (function(e) {
|
|
10185
10189
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
|
|
10186
|
-
const t =
|
|
10190
|
+
const t = Z(), r = te(), n = Pe();
|
|
10187
10191
|
e.error = {
|
|
10188
10192
|
message: ({ params: { property: c, depsCount: d, deps: l } }) => {
|
|
10189
10193
|
const m = d === 1 ? "property" : "properties";
|
|
@@ -10252,11 +10256,11 @@ function Oh() {
|
|
|
10252
10256
|
e.validateSchemaDeps = i, e.default = s;
|
|
10253
10257
|
})(wn)), wn;
|
|
10254
10258
|
}
|
|
10255
|
-
var or = {},
|
|
10256
|
-
function
|
|
10257
|
-
if (
|
|
10258
|
-
|
|
10259
|
-
const e =
|
|
10259
|
+
var or = {}, jo;
|
|
10260
|
+
function Nh() {
|
|
10261
|
+
if (jo) return or;
|
|
10262
|
+
jo = 1, Object.defineProperty(or, "__esModule", { value: !0 });
|
|
10263
|
+
const e = Z(), t = te(), n = {
|
|
10260
10264
|
keyword: "propertyNames",
|
|
10261
10265
|
type: "object",
|
|
10262
10266
|
schemaType: ["object", "boolean"],
|
|
@@ -10288,7 +10292,7 @@ var ar = {}, Vo;
|
|
|
10288
10292
|
function si() {
|
|
10289
10293
|
if (Vo) return ar;
|
|
10290
10294
|
Vo = 1, Object.defineProperty(ar, "__esModule", { value: !0 });
|
|
10291
|
-
const e = Pe(), t =
|
|
10295
|
+
const e = Pe(), t = Z(), r = Fe(), n = te(), o = {
|
|
10292
10296
|
keyword: "additionalProperties",
|
|
10293
10297
|
type: ["object"],
|
|
10294
10298
|
schemaType: ["boolean", "object"],
|
|
@@ -10356,7 +10360,7 @@ function si() {
|
|
|
10356
10360
|
return ar.default = o, ar;
|
|
10357
10361
|
}
|
|
10358
10362
|
var ir = {}, Ho;
|
|
10359
|
-
function
|
|
10363
|
+
function $h() {
|
|
10360
10364
|
if (Ho) return ir;
|
|
10361
10365
|
Ho = 1, Object.defineProperty(ir, "__esModule", { value: !0 });
|
|
10362
10366
|
const e = Br(), t = Pe(), r = te(), n = si(), s = {
|
|
@@ -10391,10 +10395,10 @@ function Nh() {
|
|
|
10391
10395
|
return ir.default = s, ir;
|
|
10392
10396
|
}
|
|
10393
10397
|
var cr = {}, Bo;
|
|
10394
|
-
function
|
|
10398
|
+
function Ph() {
|
|
10395
10399
|
if (Bo) return cr;
|
|
10396
10400
|
Bo = 1, Object.defineProperty(cr, "__esModule", { value: !0 });
|
|
10397
|
-
const e = Pe(), t =
|
|
10401
|
+
const e = Pe(), t = Z(), r = te(), n = te(), s = {
|
|
10398
10402
|
keyword: "patternProperties",
|
|
10399
10403
|
type: "object",
|
|
10400
10404
|
schemaType: "object",
|
|
@@ -10432,7 +10436,7 @@ function $h() {
|
|
|
10432
10436
|
return cr.default = s, cr;
|
|
10433
10437
|
}
|
|
10434
10438
|
var ur = {}, zo;
|
|
10435
|
-
function
|
|
10439
|
+
function Ih() {
|
|
10436
10440
|
if (zo) return ur;
|
|
10437
10441
|
zo = 1, Object.defineProperty(ur, "__esModule", { value: !0 });
|
|
10438
10442
|
const e = te(), t = {
|
|
@@ -10458,7 +10462,7 @@ function Ph() {
|
|
|
10458
10462
|
return ur.default = t, ur;
|
|
10459
10463
|
}
|
|
10460
10464
|
var lr = {}, Go;
|
|
10461
|
-
function
|
|
10465
|
+
function Dh() {
|
|
10462
10466
|
if (Go) return lr;
|
|
10463
10467
|
Go = 1, Object.defineProperty(lr, "__esModule", { value: !0 });
|
|
10464
10468
|
const t = {
|
|
@@ -10474,7 +10478,7 @@ var dr = {}, Ko;
|
|
|
10474
10478
|
function Ch() {
|
|
10475
10479
|
if (Ko) return dr;
|
|
10476
10480
|
Ko = 1, Object.defineProperty(dr, "__esModule", { value: !0 });
|
|
10477
|
-
const e =
|
|
10481
|
+
const e = Z(), t = te(), n = {
|
|
10478
10482
|
keyword: "oneOf",
|
|
10479
10483
|
schemaType: "array",
|
|
10480
10484
|
trackErrors: !0,
|
|
@@ -10507,7 +10511,7 @@ function Ch() {
|
|
|
10507
10511
|
return dr.default = n, dr;
|
|
10508
10512
|
}
|
|
10509
10513
|
var fr = {}, Yo;
|
|
10510
|
-
function
|
|
10514
|
+
function Lh() {
|
|
10511
10515
|
if (Yo) return fr;
|
|
10512
10516
|
Yo = 1, Object.defineProperty(fr, "__esModule", { value: !0 });
|
|
10513
10517
|
const e = te(), t = {
|
|
@@ -10529,10 +10533,10 @@ function Dh() {
|
|
|
10529
10533
|
return fr.default = t, fr;
|
|
10530
10534
|
}
|
|
10531
10535
|
var pr = {}, Wo;
|
|
10532
|
-
function
|
|
10536
|
+
function kh() {
|
|
10533
10537
|
if (Wo) return pr;
|
|
10534
10538
|
Wo = 1, Object.defineProperty(pr, "__esModule", { value: !0 });
|
|
10535
|
-
const e =
|
|
10539
|
+
const e = Z(), t = te(), n = {
|
|
10536
10540
|
keyword: "if",
|
|
10537
10541
|
schemaType: ["object", "boolean"],
|
|
10538
10542
|
trackErrors: !0,
|
|
@@ -10576,7 +10580,7 @@ function Lh() {
|
|
|
10576
10580
|
return pr.default = n, pr;
|
|
10577
10581
|
}
|
|
10578
10582
|
var hr = {}, Jo;
|
|
10579
|
-
function
|
|
10583
|
+
function Uh() {
|
|
10580
10584
|
if (Jo) return hr;
|
|
10581
10585
|
Jo = 1, Object.defineProperty(hr, "__esModule", { value: !0 });
|
|
10582
10586
|
const e = te(), t = {
|
|
@@ -10592,7 +10596,7 @@ var Qo;
|
|
|
10592
10596
|
function xh() {
|
|
10593
10597
|
if (Qo) return tr;
|
|
10594
10598
|
Qo = 1, Object.defineProperty(tr, "__esModule", { value: !0 });
|
|
10595
|
-
const e = ri(), t =
|
|
10599
|
+
const e = ri(), t = Rh(), r = ni(), n = Th(), s = Oh(), o = Ah(), a = Nh(), i = si(), c = $h(), d = Ph(), l = Ih(), m = Dh(), v = Ch(), S = Lh(), y = kh(), g = Uh();
|
|
10596
10600
|
function f(p = !1) {
|
|
10597
10601
|
const u = [
|
|
10598
10602
|
// any
|
|
@@ -10614,10 +10618,10 @@ function xh() {
|
|
|
10614
10618
|
return tr.default = f, tr;
|
|
10615
10619
|
}
|
|
10616
10620
|
var mr = {}, gr = {}, Xo;
|
|
10617
|
-
function
|
|
10621
|
+
function qh() {
|
|
10618
10622
|
if (Xo) return gr;
|
|
10619
10623
|
Xo = 1, Object.defineProperty(gr, "__esModule", { value: !0 });
|
|
10620
|
-
const e =
|
|
10624
|
+
const e = Z(), r = {
|
|
10621
10625
|
keyword: "format",
|
|
10622
10626
|
type: ["number", "string"],
|
|
10623
10627
|
schemaType: "string",
|
|
@@ -10683,14 +10687,14 @@ function Uh() {
|
|
|
10683
10687
|
return gr.default = r, gr;
|
|
10684
10688
|
}
|
|
10685
10689
|
var Zo;
|
|
10686
|
-
function
|
|
10690
|
+
function Mh() {
|
|
10687
10691
|
if (Zo) return mr;
|
|
10688
10692
|
Zo = 1, Object.defineProperty(mr, "__esModule", { value: !0 });
|
|
10689
|
-
const t = [
|
|
10693
|
+
const t = [qh().default];
|
|
10690
10694
|
return mr.default = t, mr;
|
|
10691
10695
|
}
|
|
10692
10696
|
var He = {}, ea;
|
|
10693
|
-
function
|
|
10697
|
+
function Fh() {
|
|
10694
10698
|
return ea || (ea = 1, Object.defineProperty(He, "__esModule", { value: !0 }), He.contentVocabulary = He.metadataVocabulary = void 0, He.metadataVocabulary = [
|
|
10695
10699
|
"title",
|
|
10696
10700
|
"description",
|
|
@@ -10709,7 +10713,7 @@ var ta;
|
|
|
10709
10713
|
function jh() {
|
|
10710
10714
|
if (ta) return Mt;
|
|
10711
10715
|
ta = 1, Object.defineProperty(Mt, "__esModule", { value: !0 });
|
|
10712
|
-
const e =
|
|
10716
|
+
const e = dh(), t = Sh(), r = xh(), n = Mh(), s = Fh(), o = [
|
|
10713
10717
|
e.default,
|
|
10714
10718
|
t.default,
|
|
10715
10719
|
(0, r.default)(),
|
|
@@ -10720,7 +10724,7 @@ function jh() {
|
|
|
10720
10724
|
return Mt.default = o, Mt;
|
|
10721
10725
|
}
|
|
10722
10726
|
var yr = {}, vt = {}, ra;
|
|
10723
|
-
function
|
|
10727
|
+
function Vh() {
|
|
10724
10728
|
if (ra) return vt;
|
|
10725
10729
|
ra = 1, Object.defineProperty(vt, "__esModule", { value: !0 }), vt.DiscrError = void 0;
|
|
10726
10730
|
var e;
|
|
@@ -10729,10 +10733,10 @@ function Fh() {
|
|
|
10729
10733
|
})(e || (vt.DiscrError = e = {})), vt;
|
|
10730
10734
|
}
|
|
10731
10735
|
var na;
|
|
10732
|
-
function
|
|
10736
|
+
function Hh() {
|
|
10733
10737
|
if (na) return yr;
|
|
10734
10738
|
na = 1, Object.defineProperty(yr, "__esModule", { value: !0 });
|
|
10735
|
-
const e =
|
|
10739
|
+
const e = Z(), t = Vh(), r = Kn(), n = zr(), s = te(), a = {
|
|
10736
10740
|
keyword: "discriminator",
|
|
10737
10741
|
type: "object",
|
|
10738
10742
|
schemaType: "object",
|
|
@@ -10769,16 +10773,16 @@ function Vh() {
|
|
|
10769
10773
|
const _ = {}, b = N(m);
|
|
10770
10774
|
let R = !0;
|
|
10771
10775
|
for (let q = 0; q < S.length; q++) {
|
|
10772
|
-
let
|
|
10773
|
-
if (
|
|
10774
|
-
const G =
|
|
10775
|
-
if (
|
|
10776
|
+
let F = S[q];
|
|
10777
|
+
if (F?.$ref && !(0, s.schemaHasRulesButRef)(F, v.self.RULES)) {
|
|
10778
|
+
const G = F.$ref;
|
|
10779
|
+
if (F = r.resolveRef.call(v.self, v.schemaEnv.root, v.baseId, G), F instanceof r.SchemaEnv && (F = F.schema), F === void 0)
|
|
10776
10780
|
throw new n.default(v.opts.uriResolver, v.baseId, G);
|
|
10777
10781
|
}
|
|
10778
|
-
const H = (E =
|
|
10782
|
+
const H = (E = F?.properties) === null || E === void 0 ? void 0 : E[y];
|
|
10779
10783
|
if (typeof H != "object")
|
|
10780
10784
|
throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${y}"`);
|
|
10781
|
-
R = R && (b || N(
|
|
10785
|
+
R = R && (b || N(F)), k(H, q);
|
|
10782
10786
|
}
|
|
10783
10787
|
if (!R)
|
|
10784
10788
|
throw new Error(`discriminator: "${y}" must be required`);
|
|
@@ -10786,39 +10790,39 @@ function Vh() {
|
|
|
10786
10790
|
function N({ required: q }) {
|
|
10787
10791
|
return Array.isArray(q) && q.includes(y);
|
|
10788
10792
|
}
|
|
10789
|
-
function k(q,
|
|
10793
|
+
function k(q, F) {
|
|
10790
10794
|
if (q.const)
|
|
10791
|
-
M(q.const,
|
|
10795
|
+
M(q.const, F);
|
|
10792
10796
|
else if (q.enum)
|
|
10793
10797
|
for (const H of q.enum)
|
|
10794
|
-
M(H,
|
|
10798
|
+
M(H, F);
|
|
10795
10799
|
else
|
|
10796
10800
|
throw new Error(`discriminator: "properties/${y}" must have "const" or "enum"`);
|
|
10797
10801
|
}
|
|
10798
|
-
function M(q,
|
|
10802
|
+
function M(q, F) {
|
|
10799
10803
|
if (typeof q != "string" || q in _)
|
|
10800
10804
|
throw new Error(`discriminator: "${y}" values must be unique strings`);
|
|
10801
|
-
_[q] =
|
|
10805
|
+
_[q] = F;
|
|
10802
10806
|
}
|
|
10803
10807
|
}
|
|
10804
10808
|
}
|
|
10805
10809
|
};
|
|
10806
10810
|
return yr.default = a, yr;
|
|
10807
10811
|
}
|
|
10808
|
-
const
|
|
10809
|
-
$schema:
|
|
10810
|
-
$id:
|
|
10811
|
-
title:
|
|
10812
|
-
definitions:
|
|
10813
|
-
type:
|
|
10814
|
-
properties:
|
|
10812
|
+
const Bh = "http://json-schema.org/draft-07/schema#", zh = "http://json-schema.org/draft-07/schema#", Gh = "Core schema meta-schema", Kh = { schemaArray: { type: "array", minItems: 1, items: { $ref: "#" } }, nonNegativeInteger: { type: "integer", minimum: 0 }, nonNegativeIntegerDefault0: { allOf: [{ $ref: "#/definitions/nonNegativeInteger" }, { default: 0 }] }, simpleTypes: { enum: ["array", "boolean", "integer", "null", "number", "object", "string"] }, stringArray: { type: "array", items: { type: "string" }, uniqueItems: !0, default: [] } }, Yh = ["object", "boolean"], Wh = { $id: { type: "string", format: "uri-reference" }, $schema: { type: "string", format: "uri" }, $ref: { type: "string", format: "uri-reference" }, $comment: { type: "string" }, title: { type: "string" }, description: { type: "string" }, default: !0, readOnly: { type: "boolean", default: !1 }, examples: { type: "array", items: !0 }, multipleOf: { type: "number", exclusiveMinimum: 0 }, maximum: { type: "number" }, exclusiveMaximum: { type: "number" }, minimum: { type: "number" }, exclusiveMinimum: { type: "number" }, maxLength: { $ref: "#/definitions/nonNegativeInteger" }, minLength: { $ref: "#/definitions/nonNegativeIntegerDefault0" }, pattern: { type: "string", format: "regex" }, additionalItems: { $ref: "#" }, items: { anyOf: [{ $ref: "#" }, { $ref: "#/definitions/schemaArray" }], default: !0 }, maxItems: { $ref: "#/definitions/nonNegativeInteger" }, minItems: { $ref: "#/definitions/nonNegativeIntegerDefault0" }, uniqueItems: { type: "boolean", default: !1 }, contains: { $ref: "#" }, maxProperties: { $ref: "#/definitions/nonNegativeInteger" }, minProperties: { $ref: "#/definitions/nonNegativeIntegerDefault0" }, required: { $ref: "#/definitions/stringArray" }, additionalProperties: { $ref: "#" }, definitions: { type: "object", additionalProperties: { $ref: "#" }, default: {} }, properties: { type: "object", additionalProperties: { $ref: "#" }, default: {} }, patternProperties: { type: "object", additionalProperties: { $ref: "#" }, propertyNames: { format: "regex" }, default: {} }, dependencies: { type: "object", additionalProperties: { anyOf: [{ $ref: "#" }, { $ref: "#/definitions/stringArray" }] } }, propertyNames: { $ref: "#" }, const: !0, enum: { type: "array", items: !0, minItems: 1, uniqueItems: !0 }, type: { anyOf: [{ $ref: "#/definitions/simpleTypes" }, { type: "array", items: { $ref: "#/definitions/simpleTypes" }, minItems: 1, uniqueItems: !0 }] }, format: { type: "string" }, contentMediaType: { type: "string" }, contentEncoding: { type: "string" }, if: { $ref: "#" }, then: { $ref: "#" }, else: { $ref: "#" }, allOf: { $ref: "#/definitions/schemaArray" }, anyOf: { $ref: "#/definitions/schemaArray" }, oneOf: { $ref: "#/definitions/schemaArray" }, not: { $ref: "#" } }, Jh = {
|
|
10813
|
+
$schema: Bh,
|
|
10814
|
+
$id: zh,
|
|
10815
|
+
title: Gh,
|
|
10816
|
+
definitions: Kh,
|
|
10817
|
+
type: Yh,
|
|
10818
|
+
properties: Wh,
|
|
10815
10819
|
default: !0
|
|
10816
10820
|
};
|
|
10817
10821
|
var sa;
|
|
10818
|
-
function
|
|
10822
|
+
function Qh() {
|
|
10819
10823
|
return sa || (sa = 1, (function(e, t) {
|
|
10820
10824
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.MissingRefError = t.ValidationError = t.CodeGen = t.Name = t.nil = t.stringify = t.str = t._ = t.KeywordCxt = t.Ajv = void 0;
|
|
10821
|
-
const r =
|
|
10825
|
+
const r = ch(), n = jh(), s = Hh(), o = Jh, a = ["/properties"], i = "http://json-schema.org/draft-07/schema";
|
|
10822
10826
|
class c extends r.default {
|
|
10823
10827
|
_addVocabularies() {
|
|
10824
10828
|
super._addVocabularies(), n.default.forEach((y) => this.addVocabulary(y)), this.opts.discriminator && this.addKeyword(s.default);
|
|
@@ -10838,7 +10842,7 @@ function Jh() {
|
|
|
10838
10842
|
Object.defineProperty(t, "KeywordCxt", { enumerable: !0, get: function() {
|
|
10839
10843
|
return d.KeywordCxt;
|
|
10840
10844
|
} });
|
|
10841
|
-
var l =
|
|
10845
|
+
var l = Z();
|
|
10842
10846
|
Object.defineProperty(t, "_", { enumerable: !0, get: function() {
|
|
10843
10847
|
return l._;
|
|
10844
10848
|
} }), Object.defineProperty(t, "str", { enumerable: !0, get: function() {
|
|
@@ -10862,86 +10866,86 @@ function Jh() {
|
|
|
10862
10866
|
} });
|
|
10863
10867
|
})(Lt, Lt.exports)), Lt.exports;
|
|
10864
10868
|
}
|
|
10865
|
-
var
|
|
10866
|
-
const
|
|
10869
|
+
var Xh = Qh();
|
|
10870
|
+
const Zh = /* @__PURE__ */ Bp(Xh), oa = {
|
|
10867
10871
|
CONFIG_NOT_FOUND: "CONFIG_ERROR_NOT_FOUND",
|
|
10868
10872
|
VALIDATION_FAILED: "CONFIG_ERROR_VALIDATION_FAILED"
|
|
10869
|
-
},
|
|
10870
|
-
const r = await
|
|
10873
|
+
}, ov = async (e, t) => {
|
|
10874
|
+
const r = await em(e);
|
|
10871
10875
|
if (!r)
|
|
10872
10876
|
throw new Error(oa.CONFIG_NOT_FOUND);
|
|
10873
|
-
if (!await
|
|
10877
|
+
if (!await tm(r, t))
|
|
10874
10878
|
throw new Error(oa.VALIDATION_FAILED);
|
|
10875
10879
|
return r;
|
|
10876
|
-
},
|
|
10877
|
-
const t =
|
|
10880
|
+
}, em = async (e) => await j(e), tm = async (e, t) => new Zh().compile(t)(e), rm = (e) => X + `/form/${e}?v=custom:(resources:(value))`, nm = (e) => {
|
|
10881
|
+
const t = X + "/bahmniie/form/latestPublishedForms";
|
|
10878
10882
|
return e ? t + `?episodeUuid=${e}` : t;
|
|
10879
|
-
},
|
|
10880
|
-
let s =
|
|
10883
|
+
}, av = (e) => X + `/user/${e}?v=full`, sm = (e, t, r, n) => X + `/bahmniie/form/translations?formName=${encodeURIComponent(e)}&formUuid=${t}&formVersion=${r}&locale=${n}`, _r = "Bahmni", om = (e, t, r) => {
|
|
10884
|
+
let s = X + "/bahmnicore/patient/" + e + "/forms";
|
|
10881
10885
|
return r ? s += `?patientProgramUuid=${r}` : t && (s += `?numberOfVisits=${t}`), s;
|
|
10882
|
-
},
|
|
10886
|
+
}, am = (e, t) => {
|
|
10883
10887
|
const r = t.join(",");
|
|
10884
10888
|
return `${ce}/Observation?patient=${e}&code=${r}&_include=Observation:has-member&_sort=-_lastUpdated`;
|
|
10885
|
-
},
|
|
10889
|
+
}, im = (e, t) => {
|
|
10886
10890
|
const r = t.join(",");
|
|
10887
10891
|
return `${ce}/Observation?patient=${e}&code=${r}&_include=Observation:has-member&_include=Observation:encounter&_sort=-_lastUpdated`;
|
|
10888
10892
|
};
|
|
10889
|
-
async function
|
|
10890
|
-
const r = om(e, t);
|
|
10891
|
-
return await V(r);
|
|
10892
|
-
}
|
|
10893
|
-
async function rv(e, t) {
|
|
10893
|
+
async function cm(e, t) {
|
|
10894
10894
|
const r = am(e, t);
|
|
10895
|
-
return await
|
|
10895
|
+
return await j(r);
|
|
10896
10896
|
}
|
|
10897
|
-
async function
|
|
10898
|
-
|
|
10897
|
+
async function iv(e, t) {
|
|
10898
|
+
const r = im(e, t);
|
|
10899
|
+
return await j(r);
|
|
10899
10900
|
}
|
|
10900
|
-
|
|
10901
|
-
|
|
10902
|
-
|
|
10903
|
-
|
|
10901
|
+
async function cv(e, t) {
|
|
10902
|
+
return (await cm(e, t)).entry?.filter((s) => s.resource?.resourceType === "Observation").map((s) => s.resource) ?? [];
|
|
10903
|
+
}
|
|
10904
|
+
const um = (e) => X + `/provider?user=${e}&v=custom:(uuid,display,person)`;
|
|
10905
|
+
async function uv(e) {
|
|
10906
|
+
const t = await j(
|
|
10907
|
+
um(e)
|
|
10904
10908
|
);
|
|
10905
10909
|
return !t.results || t.results.length === 0 ? null : t.results[0];
|
|
10906
10910
|
}
|
|
10907
|
-
const
|
|
10908
|
-
async function dm(e) {
|
|
10909
|
-
return await V(um(e));
|
|
10910
|
-
}
|
|
10911
|
+
const lm = (e) => ce + `/Encounter?subject:Patient=${e}&_tag=visit`, dm = (e) => `${ce}/Observation/$fetch-all?encounter=${e}`;
|
|
10911
10912
|
async function fm(e) {
|
|
10912
|
-
return
|
|
10913
|
+
return await j(lm(e));
|
|
10913
10914
|
}
|
|
10914
10915
|
async function pm(e) {
|
|
10915
|
-
return (await fm(e)).
|
|
10916
|
+
return (await fm(e)).entry?.map((r) => r.resource).filter((r) => r !== void 0) ?? [];
|
|
10916
10917
|
}
|
|
10917
|
-
async function
|
|
10918
|
-
return await
|
|
10919
|
-
|
|
10918
|
+
async function hm(e) {
|
|
10919
|
+
return (await pm(e)).find((r) => !r.period?.end) ?? null;
|
|
10920
|
+
}
|
|
10921
|
+
async function lv(e) {
|
|
10922
|
+
return await j(
|
|
10923
|
+
dm(e)
|
|
10920
10924
|
);
|
|
10921
10925
|
}
|
|
10922
|
-
const
|
|
10923
|
-
async function
|
|
10926
|
+
const dv = (e, t) => e?.length === 0 ? !1 : t?.length === 0, mm = ce + "/Encounter", gm = X + "/systemsetting/bahmni.encountersession.duration", ym = "d34fe3ab-5e07-11ef-8f7c-0242ac120002";
|
|
10927
|
+
async function vm(e) {
|
|
10924
10928
|
const t = new URLSearchParams();
|
|
10925
10929
|
Object.entries(e).forEach(([s, o]) => {
|
|
10926
10930
|
o && t.append(s, o);
|
|
10927
10931
|
});
|
|
10928
|
-
const r = `${
|
|
10929
|
-
return (await
|
|
10932
|
+
const r = `${mm}?${t.toString()}`;
|
|
10933
|
+
return (await j(r)).entry?.map((s) => s.resource).filter((s) => s !== void 0) ?? [];
|
|
10930
10934
|
}
|
|
10931
|
-
async function
|
|
10935
|
+
async function wm() {
|
|
10932
10936
|
try {
|
|
10933
|
-
const e = await
|
|
10934
|
-
|
|
10937
|
+
const e = await j(
|
|
10938
|
+
gm
|
|
10935
10939
|
), t = Number(e.value);
|
|
10936
10940
|
return !isNaN(t) && t > 0 ? t : 60;
|
|
10937
10941
|
} catch {
|
|
10938
10942
|
return 30;
|
|
10939
10943
|
}
|
|
10940
10944
|
}
|
|
10941
|
-
async function
|
|
10945
|
+
async function Em(e, t) {
|
|
10942
10946
|
if (!e.length) return null;
|
|
10943
10947
|
try {
|
|
10944
|
-
const r = await
|
|
10948
|
+
const r = await hm(t);
|
|
10945
10949
|
return r ? e.find((n) => {
|
|
10946
10950
|
const s = n.partOf?.reference?.split("/")[1];
|
|
10947
10951
|
return r.id === s;
|
|
@@ -10950,25 +10954,25 @@ async function wm(e, t) {
|
|
|
10950
10954
|
return null;
|
|
10951
10955
|
}
|
|
10952
10956
|
}
|
|
10953
|
-
async function
|
|
10957
|
+
async function fv(e, t, r) {
|
|
10954
10958
|
try {
|
|
10955
10959
|
if (!e) return null;
|
|
10956
|
-
const n = r ?? await
|
|
10960
|
+
const n = r ?? await wm(), o = `ge${new Date(Date.now() - n * 60 * 1e3).toISOString()}`, a = {
|
|
10957
10961
|
patient: e,
|
|
10958
10962
|
_tag: "encounter",
|
|
10959
10963
|
_lastUpdated: o,
|
|
10960
|
-
type:
|
|
10964
|
+
type: ym
|
|
10961
10965
|
};
|
|
10962
10966
|
t && (a.participant = t);
|
|
10963
|
-
const i = await
|
|
10964
|
-
return i.length === 0 ? null : await
|
|
10967
|
+
const i = await vm(a);
|
|
10968
|
+
return i.length === 0 ? null : await Em(i, e);
|
|
10965
10969
|
} catch {
|
|
10966
10970
|
return null;
|
|
10967
10971
|
}
|
|
10968
10972
|
}
|
|
10969
|
-
const
|
|
10970
|
-
async function
|
|
10971
|
-
const t = e.join(","), r = await
|
|
10973
|
+
const bm = (e) => ce + `/EpisodeOfCare?_revinclude=Encounter:episode-of-care&_id=${e}`;
|
|
10974
|
+
async function pv(e) {
|
|
10975
|
+
const t = e.join(","), r = await j(bm(t));
|
|
10972
10976
|
if (r.total === 0)
|
|
10973
10977
|
throw new Error(
|
|
10974
10978
|
"No episode of care found for the provided UUIDs: " + e.join(", ")
|
|
@@ -10980,13 +10984,13 @@ async function cv(e) {
|
|
|
10980
10984
|
c && s.add(c);
|
|
10981
10985
|
}), { visitUuids: Array.from(s), encounterUuids: o };
|
|
10982
10986
|
}
|
|
10983
|
-
const En = /* @__PURE__ */ new Map(),
|
|
10987
|
+
const En = /* @__PURE__ */ new Map(), _m = async (e) => {
|
|
10984
10988
|
if (En.has(e))
|
|
10985
10989
|
return En.get(e) ?? null;
|
|
10986
|
-
const t = await
|
|
10990
|
+
const t = await j(Ua(e)), r = t ? String(t) : null;
|
|
10987
10991
|
return En.set(e, r), r;
|
|
10988
|
-
},
|
|
10989
|
-
if (!await
|
|
10992
|
+
}, Sm = async () => await _m(Xu) === "true", Rm = async (e, t, r, n = nt.CLINICAL) => {
|
|
10993
|
+
if (!await Sm())
|
|
10990
10994
|
return { logged: !1 };
|
|
10991
10995
|
const o = $n[t];
|
|
10992
10996
|
if (!o)
|
|
@@ -11002,22 +11006,22 @@ const En = /* @__PURE__ */ new Map(), bm = async (e) => {
|
|
|
11002
11006
|
message: r ? `${o.message}~${JSON.stringify(r)}` : o.message,
|
|
11003
11007
|
module: n
|
|
11004
11008
|
};
|
|
11005
|
-
return await
|
|
11006
|
-
},
|
|
11007
|
-
await
|
|
11009
|
+
return await Ue(Cl, a), { logged: !0 };
|
|
11010
|
+
}, hv = () => Dl(async (t) => {
|
|
11011
|
+
await Rm(
|
|
11008
11012
|
t.patientUuid,
|
|
11009
11013
|
t.eventType,
|
|
11010
11014
|
t.messageParams,
|
|
11011
11015
|
t.module
|
|
11012
11016
|
);
|
|
11013
|
-
}),
|
|
11017
|
+
}), mv = async () => {
|
|
11014
11018
|
try {
|
|
11015
|
-
return (await
|
|
11019
|
+
return (await j(Gu)).user.privileges;
|
|
11016
11020
|
} catch (e) {
|
|
11017
11021
|
const { message: t } = Rr(e);
|
|
11018
11022
|
throw new Error(t);
|
|
11019
11023
|
}
|
|
11020
|
-
},
|
|
11024
|
+
}, gv = (e, t) => {
|
|
11021
11025
|
if (!e || e.length === 0)
|
|
11022
11026
|
return !1;
|
|
11023
11027
|
if (!t || t.length === 0)
|
|
@@ -11026,17 +11030,17 @@ const En = /* @__PURE__ */ new Map(), bm = async (e) => {
|
|
|
11026
11030
|
return e.some(
|
|
11027
11031
|
(n) => r.includes(n.name)
|
|
11028
11032
|
);
|
|
11029
|
-
},
|
|
11033
|
+
}, Tm = async (e) => {
|
|
11030
11034
|
let t;
|
|
11031
11035
|
e && e.length > 0 && (t = e.join(","));
|
|
11032
|
-
const r = await fetch(
|
|
11036
|
+
const r = await fetch(nm(t));
|
|
11033
11037
|
if (!r.ok)
|
|
11034
11038
|
throw new Error(
|
|
11035
11039
|
`HTTP error! status for latestPublishedForms: ${r.status}`
|
|
11036
11040
|
);
|
|
11037
11041
|
const n = await r.json();
|
|
11038
11042
|
return Array.isArray(n) ? n : [];
|
|
11039
|
-
},
|
|
11043
|
+
}, Om = (e, t) => {
|
|
11040
11044
|
const r = JSON.parse(e.nameTranslation);
|
|
11041
11045
|
if (Array.isArray(r) && r.length > 0) {
|
|
11042
11046
|
const n = r.find(
|
|
@@ -11046,8 +11050,8 @@ const En = /* @__PURE__ */ new Map(), bm = async (e) => {
|
|
|
11046
11050
|
return n.display;
|
|
11047
11051
|
}
|
|
11048
11052
|
return e.name;
|
|
11049
|
-
},
|
|
11050
|
-
const r =
|
|
11053
|
+
}, Am = (e, t) => {
|
|
11054
|
+
const r = Om(e, t);
|
|
11051
11055
|
return {
|
|
11052
11056
|
uuid: e.uuid,
|
|
11053
11057
|
name: r,
|
|
@@ -11057,13 +11061,13 @@ const En = /* @__PURE__ */ new Map(), bm = async (e) => {
|
|
|
11057
11061
|
editable: n.editable
|
|
11058
11062
|
}))
|
|
11059
11063
|
};
|
|
11060
|
-
},
|
|
11061
|
-
const t = await
|
|
11064
|
+
}, yv = async (e) => {
|
|
11065
|
+
const t = await Tm(e), r = qr();
|
|
11062
11066
|
return t.map(
|
|
11063
|
-
(n) =>
|
|
11067
|
+
(n) => Am(n, r)
|
|
11064
11068
|
);
|
|
11065
|
-
},
|
|
11066
|
-
const t = await fetch(
|
|
11069
|
+
}, vv = async (e) => {
|
|
11070
|
+
const t = await fetch(rm(e));
|
|
11067
11071
|
if (!t.ok)
|
|
11068
11072
|
throw new Error(
|
|
11069
11073
|
`Failed to fetch form metadata for ${e}: ${t.status}`
|
|
@@ -11074,7 +11078,7 @@ const En = /* @__PURE__ */ new Map(), bm = async (e) => {
|
|
|
11074
11078
|
const n = JSON.parse(r.resources[0].value), s = qr(), o = r.name ?? n.name, a = r.uuid ?? n.uuid, i = r.version ?? n.version ?? "1", c = r.published ?? !1;
|
|
11075
11079
|
let d = { labels: {}, concepts: {} };
|
|
11076
11080
|
if (n && typeof n == "object" && "translationsUrl" in n && typeof n.translationsUrl == "string") {
|
|
11077
|
-
const l =
|
|
11081
|
+
const l = sm(
|
|
11078
11082
|
o,
|
|
11079
11083
|
a,
|
|
11080
11084
|
i,
|
|
@@ -11096,10 +11100,10 @@ const En = /* @__PURE__ */ new Map(), bm = async (e) => {
|
|
|
11096
11100
|
schema: n,
|
|
11097
11101
|
translations: d
|
|
11098
11102
|
};
|
|
11099
|
-
},
|
|
11103
|
+
}, wv = async (e, t, r) => {
|
|
11100
11104
|
let n;
|
|
11101
11105
|
t && t.length > 0 && (n = t.join(","));
|
|
11102
|
-
const s =
|
|
11106
|
+
const s = om(e, r, n), o = await j(s);
|
|
11103
11107
|
return Array.isArray(o) ? o : [];
|
|
11104
11108
|
};
|
|
11105
11109
|
function oi(e) {
|
|
@@ -11141,7 +11145,7 @@ function ii(e, t) {
|
|
|
11141
11145
|
};
|
|
11142
11146
|
return n(r.controls);
|
|
11143
11147
|
}
|
|
11144
|
-
function
|
|
11148
|
+
function Ev(e, t) {
|
|
11145
11149
|
if (!e.controls || e.controls.length === 0)
|
|
11146
11150
|
return [];
|
|
11147
11151
|
const r = [], n = (/* @__PURE__ */ new Date()).toISOString();
|
|
@@ -11186,7 +11190,7 @@ function mv(e, t) {
|
|
|
11186
11190
|
s.interpretation && (a.interpretation = s.interpretation), s.comment && (a.comment = s.comment), r.push(a);
|
|
11187
11191
|
}), r;
|
|
11188
11192
|
}
|
|
11189
|
-
function
|
|
11193
|
+
function bv(e, t) {
|
|
11190
11194
|
if (!e || e.length === 0)
|
|
11191
11195
|
return {
|
|
11192
11196
|
controls: [],
|
|
@@ -11219,7 +11223,7 @@ function gv(e, t) {
|
|
|
11219
11223
|
metadata: { formMetadata: t }
|
|
11220
11224
|
};
|
|
11221
11225
|
}
|
|
11222
|
-
function
|
|
11226
|
+
function _v(e) {
|
|
11223
11227
|
const t = (n) => {
|
|
11224
11228
|
const s = (d) => d == null ? null : typeof d == "string" || typeof d == "number" || typeof d == "boolean" || typeof d == "object" ? d : null, o = n.concept, a = typeof o == "object" && o !== null && "uuid" in o ? o.uuid : o, i = typeof o == "object" && o !== null && "datatype" in o ? o.datatype : void 0, c = {
|
|
11225
11229
|
concept: {
|
|
@@ -11239,11 +11243,11 @@ function yv(e) {
|
|
|
11239
11243
|
};
|
|
11240
11244
|
return (e?.filter((n) => n.uuid && n.voided ? !0 : !(!n.uuid && n.voided || n.value && typeof n.value == "string" && n.value.endsWith("voided"))) ?? []).map(t);
|
|
11241
11245
|
}
|
|
11242
|
-
function
|
|
11246
|
+
function Sv(e) {
|
|
11243
11247
|
if (!(!e || typeof e != "object"))
|
|
11244
11248
|
return "toJS" in e && typeof e.toJS == "function" ? e.toJS() : e;
|
|
11245
11249
|
}
|
|
11246
|
-
function
|
|
11250
|
+
function Rv(e, t) {
|
|
11247
11251
|
!e || !Array.isArray(e.children) || e.children.forEach((r) => {
|
|
11248
11252
|
r && typeof r == "object" && ci(
|
|
11249
11253
|
r,
|
|
@@ -11273,7 +11277,7 @@ function ci(e, t) {
|
|
|
11273
11277
|
);
|
|
11274
11278
|
});
|
|
11275
11279
|
}
|
|
11276
|
-
const
|
|
11280
|
+
const Nm = X + "/bahmnicore/diseaseSummaryData?", Tv = async (e, t, r, n) => {
|
|
11277
11281
|
const s = new URLSearchParams({
|
|
11278
11282
|
groupBy: n,
|
|
11279
11283
|
latestCount: t.toString(),
|
|
@@ -11282,17 +11286,17 @@ const Am = Z + "/bahmnicore/diseaseSummaryData?", Ev = async (e, t, r, n) => {
|
|
|
11282
11286
|
r.forEach((a) => {
|
|
11283
11287
|
s.append("obsConcepts", a);
|
|
11284
11288
|
});
|
|
11285
|
-
const o =
|
|
11286
|
-
return
|
|
11287
|
-
}, Wn = "custom:(uuid,episodeUuid,patient,program,display,dateEnrolled,dateCompleted,location,voided,allowedStates,outcome,states:(uuid,startDate,endDate,voided,state:(uuid,concept:(uuid,display,name,names)),auditInfo),auditInfo,attributes)",
|
|
11288
|
-
const n = (r - 1) * t, s = await
|
|
11289
|
-
|
|
11289
|
+
const o = Nm + s.toString();
|
|
11290
|
+
return j(o);
|
|
11291
|
+
}, Wn = "custom:(uuid,episodeUuid,patient,program,display,dateEnrolled,dateCompleted,location,voided,allowedStates,outcome,states:(uuid,startDate,endDate,voided,state:(uuid,concept:(uuid,display,name,names)),auditInfo),auditInfo,attributes)", $m = (e) => `${X}/bahmniprogramenrollment?patient=${e}&v=${Wn}`, Pm = (e, t = 15, r = 0) => `${X}/bahmniprogramenrollment?patient=${e}&v=${Wn}&limit=${t}&startIndex=${r}&totalCount=true`, ui = (e) => `${X}/bahmniprogramenrollment/${e}`, Im = (e) => `${ui(e)}?v=${Wn}`, Ov = async (e) => await j($m(e)), Av = async (e, t = 15, r = 1) => {
|
|
11292
|
+
const n = (r - 1) * t, s = await j(
|
|
11293
|
+
Pm(e, t, n)
|
|
11290
11294
|
);
|
|
11291
11295
|
return {
|
|
11292
11296
|
programs: s.results,
|
|
11293
11297
|
total: s.totalCount
|
|
11294
11298
|
};
|
|
11295
|
-
},
|
|
11299
|
+
}, Nv = async (e) => await j(Im(e)), $v = async (e, t) => {
|
|
11296
11300
|
const r = {
|
|
11297
11301
|
uuid: e,
|
|
11298
11302
|
states: [
|
|
@@ -11301,12 +11305,12 @@ const Am = Z + "/bahmnicore/diseaseSummaryData?", Ev = async (e, t, r, n) => {
|
|
|
11301
11305
|
}
|
|
11302
11306
|
]
|
|
11303
11307
|
};
|
|
11304
|
-
return await
|
|
11308
|
+
return await Ue(
|
|
11305
11309
|
ui(e),
|
|
11306
11310
|
r
|
|
11307
11311
|
);
|
|
11308
11312
|
};
|
|
11309
|
-
function
|
|
11313
|
+
function Pv(e) {
|
|
11310
11314
|
if (e.states.length === 0)
|
|
11311
11315
|
return null;
|
|
11312
11316
|
let t;
|
|
@@ -11322,7 +11326,7 @@ function Tv(e) {
|
|
|
11322
11326
|
t = e.states.find((r) => r.endDate === null);
|
|
11323
11327
|
return t ? Vf(t.state.concept.names) ?? t.state.concept.display : null;
|
|
11324
11328
|
}
|
|
11325
|
-
function
|
|
11329
|
+
function Iv(e, t) {
|
|
11326
11330
|
if (t.length === 0)
|
|
11327
11331
|
return {};
|
|
11328
11332
|
const r = {};
|
|
@@ -11334,12 +11338,12 @@ function Ov(e, t) {
|
|
|
11334
11338
|
}
|
|
11335
11339
|
return r;
|
|
11336
11340
|
}
|
|
11337
|
-
const In = "consultation:saved",
|
|
11341
|
+
const In = "consultation:saved", Dv = (e) => {
|
|
11338
11342
|
const t = new CustomEvent(In, {
|
|
11339
11343
|
detail: e
|
|
11340
11344
|
});
|
|
11341
11345
|
window.dispatchEvent(t);
|
|
11342
|
-
},
|
|
11346
|
+
}, Cv = (e, t = []) => {
|
|
11343
11347
|
const r = bn(e);
|
|
11344
11348
|
_n(() => {
|
|
11345
11349
|
r.current = e;
|
|
@@ -11353,7 +11357,7 @@ const In = "consultation:saved", Av = (e) => {
|
|
|
11353
11357
|
};
|
|
11354
11358
|
}, t);
|
|
11355
11359
|
}, li = (e, t, r = 100, n = 0) => {
|
|
11356
|
-
const s = `${ce}/DocumentReference?patient=${e}&_sort=-
|
|
11360
|
+
const s = `${ce}/DocumentReference?patient=${e}&_sort=-_lastUpdated&_count=${r}&_getpagesoffset=${n}`;
|
|
11357
11361
|
return t && t.length > 0 ? `${s}&encounter=${t.join(",")}` : s;
|
|
11358
11362
|
};
|
|
11359
11363
|
function di(e) {
|
|
@@ -11371,23 +11375,23 @@ function di(e) {
|
|
|
11371
11375
|
};
|
|
11372
11376
|
});
|
|
11373
11377
|
}
|
|
11374
|
-
async function
|
|
11378
|
+
async function Dm(e, t) {
|
|
11375
11379
|
const r = li(e, t);
|
|
11376
|
-
return
|
|
11380
|
+
return j(r);
|
|
11377
11381
|
}
|
|
11378
|
-
async function
|
|
11379
|
-
const n = ((await
|
|
11382
|
+
async function Lv(e, t) {
|
|
11383
|
+
const n = ((await Dm(e, t)).entry ?? []).filter(
|
|
11380
11384
|
(s) => !!s.resource
|
|
11381
11385
|
);
|
|
11382
11386
|
return di(n);
|
|
11383
11387
|
}
|
|
11384
|
-
async function
|
|
11388
|
+
async function kv(e, t, r = 10, n = 1) {
|
|
11385
11389
|
const s = (n - 1) * r, o = li(
|
|
11386
11390
|
e,
|
|
11387
11391
|
t,
|
|
11388
11392
|
r,
|
|
11389
11393
|
s
|
|
11390
|
-
), a = await
|
|
11394
|
+
), a = await j(o), i = (a.entry ?? []).filter(
|
|
11391
11395
|
(c) => !!c.resource
|
|
11392
11396
|
);
|
|
11393
11397
|
return {
|
|
@@ -11395,184 +11399,223 @@ async function Pv(e, t, r = 10, n = 1) {
|
|
|
11395
11399
|
total: a.total ?? i.length
|
|
11396
11400
|
};
|
|
11397
11401
|
}
|
|
11402
|
+
const Cm = X + "/bahmnicore/visitDocument/uploadDocument", Lm = "application";
|
|
11403
|
+
async function km(e) {
|
|
11404
|
+
return new Promise((t, r) => {
|
|
11405
|
+
const n = new FileReader();
|
|
11406
|
+
n.onload = () => {
|
|
11407
|
+
const s = n.result.split(",")[1];
|
|
11408
|
+
if (!s) {
|
|
11409
|
+
r(new Error("File is empty or could not be read"));
|
|
11410
|
+
return;
|
|
11411
|
+
}
|
|
11412
|
+
const o = e.name;
|
|
11413
|
+
let a = o, i = "";
|
|
11414
|
+
const c = o.lastIndexOf(".");
|
|
11415
|
+
c !== -1 && (a = o.substring(0, c), i = o.substring(c + 1).toLowerCase());
|
|
11416
|
+
const d = e.type ? e.type.split("/")[0] : Lm;
|
|
11417
|
+
t({
|
|
11418
|
+
content: s,
|
|
11419
|
+
fileName: a,
|
|
11420
|
+
fileType: d,
|
|
11421
|
+
format: i
|
|
11422
|
+
});
|
|
11423
|
+
}, n.onerror = () => {
|
|
11424
|
+
r(n.error ?? new Error("Failed to read file"));
|
|
11425
|
+
}, n.readAsDataURL(e);
|
|
11426
|
+
});
|
|
11427
|
+
}
|
|
11428
|
+
async function Uv(e, t, r) {
|
|
11429
|
+
const n = await km(e), s = {
|
|
11430
|
+
content: n.content,
|
|
11431
|
+
encounterTypeName: t,
|
|
11432
|
+
fileName: n.fileName,
|
|
11433
|
+
fileType: n.fileType,
|
|
11434
|
+
format: n.format,
|
|
11435
|
+
patientUuid: r
|
|
11436
|
+
};
|
|
11437
|
+
return Ue(Cm, s);
|
|
11438
|
+
}
|
|
11398
11439
|
export {
|
|
11399
|
-
|
|
11400
|
-
|
|
11440
|
+
Jg as APPOINTMENT_IDENTIFIER_SYSTEM,
|
|
11441
|
+
Wg as APPOINTMENT_STATUSES,
|
|
11401
11442
|
$n as AUDIT_LOG_EVENT_DETAILS,
|
|
11402
11443
|
Qf as AllergySeverity,
|
|
11403
11444
|
Jf as AllergyStatus,
|
|
11404
11445
|
$l as AttributeFormat,
|
|
11405
11446
|
Pl as AttributeInputType,
|
|
11406
|
-
|
|
11407
|
-
|
|
11408
|
-
|
|
11447
|
+
og as BAHMNI_HOME_PATH,
|
|
11448
|
+
Iy as CONCEPT_DATATYPE_COMPLEX,
|
|
11449
|
+
Py as CONCEPT_DATATYPE_NUMERIC,
|
|
11409
11450
|
In as CONSULTATION_SAVED_EVENT,
|
|
11410
11451
|
Xf as DATETIME_REGEX_PATTERN,
|
|
11411
|
-
|
|
11452
|
+
Ly as DATE_REGEX_PATTERN,
|
|
11412
11453
|
Af as DEFAULT_DATE_FORMAT,
|
|
11413
11454
|
Nf as DEFAULT_DATE_FORMAT_STORAGE_KEY,
|
|
11414
11455
|
Pf as DEFAULT_TIME_FORMAT,
|
|
11415
|
-
|
|
11416
|
-
|
|
11417
|
-
|
|
11418
|
-
|
|
11419
|
-
|
|
11420
|
-
|
|
11421
|
-
|
|
11422
|
-
|
|
11423
|
-
|
|
11456
|
+
Df as DURATION_UNIT_TO_DAYS,
|
|
11457
|
+
_y as FHIR_ENCOUNTER_TYPE_CODE_SYSTEM,
|
|
11458
|
+
Oy as FHIR_LAB_ORDER_CONCEPT_TYPE_EXTENSION_URL,
|
|
11459
|
+
Ny as FHIR_OBSERVATION_FORM_NAMESPACE_PATH_URL,
|
|
11460
|
+
Ay as FHIR_OBSERVATION_INTERPRETATION_SYSTEM,
|
|
11461
|
+
Dy as FHIR_OBSERVATION_STATUS_FINAL,
|
|
11462
|
+
$y as FHIR_OBSERVATION_VALUE_ATTACHMENT_URL,
|
|
11463
|
+
Cy as FHIR_RESOURCE_TYPE_OBSERVATION,
|
|
11464
|
+
Ty as HL7_CONDITION_CATEGORY_CODE_SYSTEM,
|
|
11424
11465
|
Wa as HL7_CONDITION_CATEGORY_CONDITION_CODE,
|
|
11425
11466
|
Ja as HL7_CONDITION_CATEGORY_DIAGNOSIS_CODE,
|
|
11426
|
-
|
|
11427
|
-
|
|
11428
|
-
|
|
11429
|
-
|
|
11430
|
-
|
|
11431
|
-
|
|
11467
|
+
Ry as HL7_CONDITION_CLINICAL_STATUS_CODE_SYSTEM,
|
|
11468
|
+
Sy as HL7_CONDITION_VERIFICATION_STATUS_CODE_SYSTEM,
|
|
11469
|
+
ky as INTERPRETATION_TO_CODE,
|
|
11470
|
+
Rg as MAX_NAME_LENGTH,
|
|
11471
|
+
Sg as MAX_PATIENT_AGE_YEARS,
|
|
11472
|
+
Tg as MAX_PHONE_NUMBER_LENGTH,
|
|
11432
11473
|
ke as MedicationStatus,
|
|
11433
11474
|
ce as OPENMRS_FHIR_R4,
|
|
11434
|
-
|
|
11435
|
-
|
|
11436
|
-
|
|
11437
|
-
|
|
11438
|
-
|
|
11439
|
-
|
|
11440
|
-
|
|
11441
|
-
|
|
11442
|
-
|
|
11443
|
-
|
|
11444
|
-
|
|
11445
|
-
|
|
11446
|
-
|
|
11447
|
-
|
|
11448
|
-
|
|
11475
|
+
X as OPENMRS_REST_V1,
|
|
11476
|
+
ev as ORDER_TYPE_QUERY_KEY,
|
|
11477
|
+
Zy as PENDING_REPORT_STATUSES,
|
|
11478
|
+
Xy as PROCESSED_REPORT_STATUSES,
|
|
11479
|
+
av as USER_PINNED_PREFERENCE_URL,
|
|
11480
|
+
ay as calculateAge,
|
|
11481
|
+
fy as calculateEndDate,
|
|
11482
|
+
cy as calculateOnsetDate,
|
|
11483
|
+
wg as camelToScreamingSnakeCase,
|
|
11484
|
+
fg as capitalize,
|
|
11485
|
+
Kg as checkIfActiveVisitExists,
|
|
11486
|
+
Sv as convertImmutableToPlainObject,
|
|
11487
|
+
Eg as convertToSentenceCase,
|
|
11488
|
+
Dg as createPatient,
|
|
11489
|
+
Yg as createVisitForPatient,
|
|
11449
11490
|
uu as del,
|
|
11450
|
-
|
|
11491
|
+
ny as deleteAppointmentService,
|
|
11451
11492
|
Il as dispatchAuditEvent,
|
|
11452
|
-
|
|
11453
|
-
|
|
11454
|
-
|
|
11455
|
-
|
|
11456
|
-
|
|
11457
|
-
|
|
11458
|
-
|
|
11459
|
-
|
|
11460
|
-
|
|
11461
|
-
|
|
11462
|
-
|
|
11463
|
-
|
|
11464
|
-
|
|
11465
|
-
|
|
11466
|
-
|
|
11467
|
-
|
|
11468
|
-
|
|
11469
|
-
|
|
11493
|
+
Dv as dispatchConsultationSaved,
|
|
11494
|
+
py as doDateRangesOverlap,
|
|
11495
|
+
Iv as extractAttributes,
|
|
11496
|
+
Rv as extractNotesFromFormData,
|
|
11497
|
+
wy as fetchAndFormatAllergenConcepts,
|
|
11498
|
+
vv as fetchFormMetadata,
|
|
11499
|
+
jy as fetchMedicationOrdersMetadata,
|
|
11500
|
+
yv as fetchObservationForms,
|
|
11501
|
+
Ky as fetchQualityAssessment,
|
|
11502
|
+
Ey as fetchReactionConcepts,
|
|
11503
|
+
gg as filterReplacementEntries,
|
|
11504
|
+
fv as findActiveEncounterInSession,
|
|
11505
|
+
uy as formatDateDistance,
|
|
11506
|
+
iy as formatDateTime,
|
|
11507
|
+
yg as formatUrl,
|
|
11508
|
+
lg as generateId,
|
|
11509
|
+
dg as generateUUID,
|
|
11510
|
+
j as get,
|
|
11511
|
+
hm as getActiveVisit,
|
|
11470
11512
|
Ml as getActiveVisitByPatient,
|
|
11471
|
-
|
|
11472
|
-
|
|
11513
|
+
kg as getAddressHierarchyEntries,
|
|
11514
|
+
ry as getAllAppointmentServices,
|
|
11473
11515
|
Yf as getAllergies,
|
|
11474
|
-
|
|
11475
|
-
|
|
11476
|
-
|
|
11477
|
-
|
|
11478
|
-
|
|
11479
|
-
|
|
11480
|
-
|
|
11481
|
-
|
|
11482
|
-
|
|
11483
|
-
|
|
11484
|
-
|
|
11485
|
-
|
|
11486
|
-
|
|
11487
|
-
|
|
11488
|
-
|
|
11489
|
-
|
|
11490
|
-
|
|
11491
|
-
|
|
11492
|
-
|
|
11493
|
-
|
|
11494
|
-
|
|
11495
|
-
|
|
11496
|
-
|
|
11516
|
+
ty as getAppointmentById,
|
|
11517
|
+
rv as getCategoryUuidFromOrderTypes,
|
|
11518
|
+
yy as getConceptById,
|
|
11519
|
+
xy as getConditionPage,
|
|
11520
|
+
Uy as getConditions,
|
|
11521
|
+
ov as getConfig,
|
|
11522
|
+
xa as getCookieByName,
|
|
11523
|
+
uv as getCurrentProvider,
|
|
11524
|
+
Pv as getCurrentStateName,
|
|
11525
|
+
bg as getCurrentUser,
|
|
11526
|
+
mv as getCurrentUserPrivileges,
|
|
11527
|
+
_g as getDefaultDateFormat,
|
|
11528
|
+
My as getDiagnosesPage,
|
|
11529
|
+
Jy as getDiagnosticReportBundle,
|
|
11530
|
+
Wy as getDiagnosticReports,
|
|
11531
|
+
kv as getDocumentReferencePage,
|
|
11532
|
+
Dm as getDocumentReferences,
|
|
11533
|
+
pv as getEncountersAndVisitsForEOC,
|
|
11534
|
+
sv as getExistingServiceRequestsForAllCategories,
|
|
11535
|
+
tv as getFlattenedInvestigations,
|
|
11536
|
+
dy as getFormattedAge,
|
|
11537
|
+
by as getFormattedAllergies,
|
|
11538
|
+
Lv as getFormattedDocumentReferences,
|
|
11497
11539
|
Rr as getFormattedError,
|
|
11498
|
-
|
|
11499
|
-
|
|
11500
|
-
|
|
11501
|
-
|
|
11502
|
-
|
|
11503
|
-
|
|
11504
|
-
|
|
11505
|
-
|
|
11540
|
+
Og as getFormattedPatientById,
|
|
11541
|
+
Lg as getGenders,
|
|
11542
|
+
Ig as getIdentifierData,
|
|
11543
|
+
Pg as getIdentifierTypes,
|
|
11544
|
+
Fg as getInputTypeForFormat,
|
|
11545
|
+
Yy as getLabInvestigationsBundle,
|
|
11546
|
+
lv as getObservationsBundleByEncounterUuid,
|
|
11547
|
+
nv as getOrderTypeNames,
|
|
11506
11548
|
zn as getOrderTypes,
|
|
11507
|
-
|
|
11508
|
-
|
|
11509
|
-
|
|
11549
|
+
Ug as getOrderedAddressHierarchyLevels,
|
|
11550
|
+
Zg as getPastAppointments,
|
|
11551
|
+
oy as getPastAppointmentsPage,
|
|
11510
11552
|
_l as getPatientById,
|
|
11511
|
-
|
|
11512
|
-
|
|
11513
|
-
|
|
11553
|
+
qy as getPatientDiagnoses,
|
|
11554
|
+
wv as getPatientFormData,
|
|
11555
|
+
Ag as getPatientImageAsDataUrl,
|
|
11514
11556
|
yp as getPatientMedicationBundle,
|
|
11515
|
-
|
|
11516
|
-
|
|
11517
|
-
|
|
11518
|
-
|
|
11519
|
-
|
|
11520
|
-
|
|
11521
|
-
|
|
11522
|
-
|
|
11523
|
-
|
|
11524
|
-
|
|
11525
|
-
|
|
11557
|
+
Fy as getPatientMedications,
|
|
11558
|
+
cv as getPatientObservations,
|
|
11559
|
+
cm as getPatientObservationsBundle,
|
|
11560
|
+
iv as getPatientObservationsWithEncounterBundle,
|
|
11561
|
+
xg as getPatientProfile,
|
|
11562
|
+
Ov as getPatientPrograms,
|
|
11563
|
+
Av as getPatientProgramsPage,
|
|
11564
|
+
By as getPatientRadiologyInvestigationBundle,
|
|
11565
|
+
zy as getPatientRadiologyInvestigationBundleWithImagingStudy,
|
|
11566
|
+
Gy as getPatientRadiologyInvestigations,
|
|
11567
|
+
Mg as getPersonAttributeTypes,
|
|
11526
11568
|
Nl as getPrimaryIdentifierType,
|
|
11527
|
-
|
|
11528
|
-
|
|
11529
|
-
|
|
11569
|
+
hg as getPriorityByOrder,
|
|
11570
|
+
Nv as getProgramByUUID,
|
|
11571
|
+
qg as getRelationshipTypes,
|
|
11530
11572
|
Pt as getServiceRequests,
|
|
11531
|
-
|
|
11532
|
-
|
|
11533
|
-
|
|
11573
|
+
ly as getTodayDate,
|
|
11574
|
+
Xg as getUpcomingAppointments,
|
|
11575
|
+
sy as getUpcomingAppointmentsPage,
|
|
11534
11576
|
qn as getUserLoginLocation,
|
|
11535
11577
|
qr as getUserPreferredLocale,
|
|
11536
|
-
|
|
11537
|
-
|
|
11538
|
-
|
|
11539
|
-
|
|
11540
|
-
|
|
11541
|
-
|
|
11542
|
-
|
|
11543
|
-
|
|
11544
|
-
|
|
11545
|
-
|
|
11546
|
-
|
|
11547
|
-
|
|
11548
|
-
|
|
11549
|
-
|
|
11550
|
-
|
|
11551
|
-
|
|
11552
|
-
|
|
11578
|
+
Hy as getVaccinations,
|
|
11579
|
+
vg as getValueType,
|
|
11580
|
+
Gg as getVisitTypes,
|
|
11581
|
+
Tv as getVitalFlowSheetData,
|
|
11582
|
+
mg as groupByDate,
|
|
11583
|
+
gv as hasPrivilege,
|
|
11584
|
+
ig as initAppI18n,
|
|
11585
|
+
hv as initializeAuditListener,
|
|
11586
|
+
jg as isBooleanFormat,
|
|
11587
|
+
Vg as isConceptFormat,
|
|
11588
|
+
Bg as isDateFormat,
|
|
11589
|
+
Hg as isNumberFormat,
|
|
11590
|
+
pg as isStringEmpty,
|
|
11591
|
+
zg as isTextFormat,
|
|
11592
|
+
Rm as logAuditEvent,
|
|
11593
|
+
ag as normalizeTranslationKey,
|
|
11594
|
+
my as notificationService,
|
|
11553
11595
|
Zu as parseQueryParams,
|
|
11554
|
-
|
|
11555
|
-
|
|
11556
|
-
|
|
11557
|
-
|
|
11558
|
-
|
|
11559
|
-
|
|
11560
|
-
|
|
11596
|
+
sg as patch,
|
|
11597
|
+
Ue as post,
|
|
11598
|
+
ng as put,
|
|
11599
|
+
ug as refreshQueries,
|
|
11600
|
+
Qg as searchAppointmentsByAttribute,
|
|
11601
|
+
vy as searchConceptByName,
|
|
11602
|
+
gy as searchConcepts,
|
|
11561
11603
|
br as searchFHIRConcepts,
|
|
11562
|
-
|
|
11563
|
-
|
|
11564
|
-
|
|
11565
|
-
|
|
11566
|
-
|
|
11567
|
-
|
|
11568
|
-
|
|
11569
|
-
|
|
11570
|
-
|
|
11571
|
-
|
|
11572
|
-
|
|
11573
|
-
|
|
11574
|
-
|
|
11575
|
-
|
|
11576
|
-
|
|
11577
|
-
|
|
11604
|
+
jf as searchFHIRConceptsByName,
|
|
11605
|
+
Vy as searchMedications,
|
|
11606
|
+
$g as searchPatientByCustomAttribute,
|
|
11607
|
+
Ng as searchPatientByNameOrId,
|
|
11608
|
+
dv as shouldEnableEncounterFilter,
|
|
11609
|
+
hy as sortByDate,
|
|
11610
|
+
_v as transformContainerObservationsToForm2Observations,
|
|
11611
|
+
Ev as transformFormDataToObservations,
|
|
11612
|
+
bv as transformObservationsToFormData,
|
|
11613
|
+
ey as updateAppointmentStatus,
|
|
11614
|
+
Qy as updateDiagnosticReportBundle,
|
|
11615
|
+
Cg as updatePatient,
|
|
11616
|
+
$v as updateProgramState,
|
|
11617
|
+
Uv as uploadDocument,
|
|
11618
|
+
cg as useCamera,
|
|
11619
|
+
Cv as useSubscribeConsultationSaved,
|
|
11620
|
+
Mv as useTranslation
|
|
11578
11621
|
};
|