@cccsaurora/clue-ui 1.2.2 → 1.2.3-patch.269

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/{ActionForm-DlOXqMUx.js → ActionForm-Ch0DGVGr.js} +216 -214
  2. package/{AnnotationDetails-Bk-p0F6h.js → AnnotationDetails-C8E_Xvaf.js} +1 -1
  3. package/{AnnotationPreview-jzZvkCxJ.js → AnnotationPreview-CLCms-Fm.js} +1 -1
  4. package/components/AnnotationDetailPopover.js +1 -1
  5. package/components/AnnotationDetails.js +2 -2
  6. package/components/AnnotationPreview.js +1 -1
  7. package/components/EnrichedCard.js +1 -1
  8. package/components/EnrichedChip.js +2 -2
  9. package/components/EnrichedTypography.js +2 -2
  10. package/components/RetryFailedEnrichments.js +1 -1
  11. package/components/SourcePicker.js +1 -1
  12. package/components/actions/ActionForm.js +1 -1
  13. package/components/actions/ExecutePopover.js +1 -1
  14. package/components/actions/ResultModal.js +1 -1
  15. package/components/enrichment/EnrichPopover.js +1 -1
  16. package/components/fetchers/Fetcher.js +61 -59
  17. package/components/group/GroupControl.js +1 -1
  18. package/components/stats/QueryStatus.js +1 -1
  19. package/en/translation.json +1 -0
  20. package/fr/translation.json +1 -0
  21. package/hooks/ClueActionContext.js +1 -1
  22. package/hooks/ClueGroupContext.js +1 -1
  23. package/hooks/CluePopupContext.js +2 -2
  24. package/hooks/ClueProvider.js +2 -2
  25. package/hooks/selectors.js +1 -1
  26. package/hooks/useActionResult.d.ts +1 -0
  27. package/hooks/useActionResult.js +1 -1
  28. package/hooks/useAnnotations.js +1 -1
  29. package/hooks/useClueActions.js +1 -1
  30. package/hooks/useErrors.js +1 -1
  31. package/hooks/useFetcherResult.d.ts +1 -0
  32. package/hooks/useFetcherResult.js +1 -1
  33. package/icons/Action.js +2 -2
  34. package/icons/Assessment.js +1 -1
  35. package/icons/Context.js +1 -1
  36. package/icons/Opinion.js +1 -1
  37. package/main.js +3 -3
  38. package/package.json +1 -1
  39. package/types/WithActionData.d.ts +2 -1
@@ -1,7 +1,7 @@
1
1
  import { jsx as V, jsxs as W } from "react/jsx-runtime";
2
2
  import { materialRenderers as En, materialCells as Sn } from "@jsonforms/material-renderers";
3
3
  import { JsonForms as Pn } from "@jsonforms/react";
4
- import { Modal as bs, Paper as Es, Stack as se, Typography as Pe, Divider as Zt, LinearProgress as kn, Button as st, IconButton as Nn, Box as xe, CircularProgress as Cn, Collapse as jn } from "@mui/material";
4
+ import { Modal as bs, Paper as Es, Stack as se, Typography as Pe, Divider as Dt, LinearProgress as kn, Button as st, IconButton as Nn, Box as xe, CircularProgress as Cn, Collapse as jn } from "@mui/material";
5
5
  import Ss from "./components/display/icons/Iconified.js";
6
6
  import { J as Rn } from "./index-BK-zfYhR.js";
7
7
  import { ClueComponentContext as Ct } from "./hooks/ClueComponentContext.js";
@@ -24,12 +24,12 @@ import { SNACKBAR_EVENT_ID as ht } from "./data/event.js";
24
24
  import { dayjs as Hn } from "./utils/time.js";
25
25
  import { safeDispatchEvent as pt } from "./utils/window.js";
26
26
  import Bn from "./hooks/useClue.js";
27
- import { i as Dn } from "./isNil-CjWwlQS3.js";
28
- function Qn(e, t, r) {
27
+ import { i as Qn } from "./isNil-CjWwlQS3.js";
28
+ function Xn(e, t, r) {
29
29
  var s = e.length;
30
30
  return r = r === void 0 ? s : r, !t && r >= s ? e : Mn(e, t, r);
31
31
  }
32
- var Xn = "\\ud800-\\udfff", Yn = "\\u0300-\\u036f", Zn = "\\ufe20-\\ufe2f", Wn = "\\u20d0-\\u20ff", xn = Yn + Zn + Wn, eo = "\\ufe0e\\ufe0f", to = "\\u200d", ro = RegExp("[" + to + Xn + xn + eo + "]");
32
+ var Yn = "\\ud800-\\udfff", Zn = "\\u0300-\\u036f", Dn = "\\ufe20-\\ufe2f", Wn = "\\u20d0-\\u20ff", xn = Zn + Dn + Wn, eo = "\\ufe0e\\ufe0f", to = "\\u200d", ro = RegExp("[" + to + Yn + xn + eo + "]");
33
33
  function Cs(e) {
34
34
  return ro.test(e);
35
35
  }
@@ -46,7 +46,7 @@ function vo(e) {
46
46
  function $o(e) {
47
47
  return function(t) {
48
48
  t = ks(t);
49
- var r = Cs(t) ? vo(t) : void 0, s = r ? r[0] : t.charAt(0), n = r ? Qn(r, 1).join("") : t.slice(1);
49
+ var r = Cs(t) ? vo(t) : void 0, s = r ? r[0] : t.charAt(0), n = r ? Xn(r, 1).join("") : t.slice(1);
50
50
  return s[e]() + n;
51
51
  };
52
52
  }
@@ -597,7 +597,7 @@ var rr = {};
597
597
  }
598
598
  }
599
599
  me.kind = "finally";
600
- class we {
600
+ class be {
601
601
  constructor(o, c = {}) {
602
602
  this._values = {}, this._blockStarts = [], this._constants = {}, this.opts = { ...c, _n: c.lines ? `
603
603
  ` : "" }, this._extScope = o, this._scope = new r.Scope({ parent: o }), this._nodes = [new v()];
@@ -807,7 +807,7 @@ var rr = {};
807
807
  c[c.length - 1] = o;
808
808
  }
809
809
  }
810
- e.CodeGen = we;
810
+ e.CodeGen = be;
811
811
  function ie(_, o) {
812
812
  for (const c in o)
813
813
  _[c] = (_[c] || 0) + (o[c] || 0);
@@ -839,10 +839,10 @@ var rr = {};
839
839
  }
840
840
  e.not = Fe;
841
841
  const Ke = p(e.operators.AND);
842
- function be(..._) {
842
+ function _e(..._) {
843
843
  return _.reduce(Ke);
844
844
  }
845
- e.and = be;
845
+ e.and = _e;
846
846
  const Ae = p(e.operators.OR);
847
847
  function k(..._) {
848
848
  return _.reduce(Ae);
@@ -996,34 +996,34 @@ function zs(e, t, r = e.opts.strictSchema) {
996
996
  N.checkStrictMode = zs;
997
997
  var ye = {};
998
998
  Object.defineProperty(ye, "__esModule", { value: !0 });
999
- const Z = A, To = {
999
+ const D = A, To = {
1000
1000
  // validation function arguments
1001
- data: new Z.Name("data"),
1001
+ data: new D.Name("data"),
1002
1002
  // data passed to validation function
1003
1003
  // args passed from referencing schema
1004
- valCxt: new Z.Name("valCxt"),
1004
+ valCxt: new D.Name("valCxt"),
1005
1005
  // validation/data context - should not be used directly, it is destructured to the names below
1006
- instancePath: new Z.Name("instancePath"),
1007
- parentData: new Z.Name("parentData"),
1008
- parentDataProperty: new Z.Name("parentDataProperty"),
1009
- rootData: new Z.Name("rootData"),
1006
+ instancePath: new D.Name("instancePath"),
1007
+ parentData: new D.Name("parentData"),
1008
+ parentDataProperty: new D.Name("parentDataProperty"),
1009
+ rootData: new D.Name("rootData"),
1010
1010
  // root data - same as the data passed to the first/top validation function
1011
- dynamicAnchors: new Z.Name("dynamicAnchors"),
1011
+ dynamicAnchors: new D.Name("dynamicAnchors"),
1012
1012
  // used to support recursiveRef and dynamicRef
1013
1013
  // function scoped variables
1014
- vErrors: new Z.Name("vErrors"),
1014
+ vErrors: new D.Name("vErrors"),
1015
1015
  // null or array of validation errors
1016
- errors: new Z.Name("errors"),
1016
+ errors: new D.Name("errors"),
1017
1017
  // counter of validation errors
1018
- this: new Z.Name("this"),
1018
+ this: new D.Name("this"),
1019
1019
  // "globals"
1020
- self: new Z.Name("self"),
1021
- scope: new Z.Name("scope"),
1020
+ self: new D.Name("self"),
1021
+ scope: new D.Name("scope"),
1022
1022
  // JTD serialize/parse name for JSON string and position
1023
- json: new Z.Name("json"),
1024
- jsonPos: new Z.Name("jsonPos"),
1025
- jsonLen: new Z.Name("jsonLen"),
1026
- jsonPart: new Z.Name("jsonPart")
1023
+ json: new D.Name("json"),
1024
+ jsonPos: new D.Name("jsonPos"),
1025
+ jsonLen: new D.Name("jsonLen"),
1026
+ jsonPart: new D.Name("jsonPart")
1027
1027
  };
1028
1028
  ye.default = To;
1029
1029
  (function(e) {
@@ -1095,8 +1095,8 @@ ye.default = To;
1095
1095
  return $ && (j = (0, t.str)`${j}${(0, r.getErrorPath)($, r.Type.Str)}`), [m.schemaPath, j];
1096
1096
  }
1097
1097
  function v(h, { params: f, message: $ }, P) {
1098
- const { keyword: j, data: C, schemaValue: U, it: J } = h, { opts: ne, propertyName: ae, topSchemaRef: me, schemaPath: we } = J;
1099
- P.push([m.keyword, j], [m.params, typeof f == "function" ? f(h) : f || (0, t._)`{}`]), ne.messages && P.push([m.message, typeof $ == "function" ? $(h) : $]), ne.verbose && P.push([m.schema, U], [m.parentSchema, (0, t._)`${me}${we}`], [s.default.data, C]), ae && P.push([m.propertyName, ae]);
1098
+ const { keyword: j, data: C, schemaValue: U, it: J } = h, { opts: ne, propertyName: ae, topSchemaRef: me, schemaPath: be } = J;
1099
+ P.push([m.keyword, j], [m.params, typeof f == "function" ? f(h) : f || (0, t._)`{}`]), ne.messages && P.push([m.message, typeof $ == "function" ? $(h) : $]), ne.verbose && P.push([m.schema, U], [m.parentSchema, (0, t._)`${me}${be}`], [s.default.data, C]), ae && P.push([m.propertyName, ae]);
1100
1100
  }
1101
1101
  })(ut);
1102
1102
  Object.defineProperty(Be, "__esModule", { value: !0 });
@@ -1127,7 +1127,7 @@ function Us(e, t) {
1127
1127
  };
1128
1128
  (0, Io.reportError)(n, Fo, void 0, t);
1129
1129
  }
1130
- var Q = {}, Ie = {};
1130
+ var X = {}, Ie = {};
1131
1131
  Object.defineProperty(Ie, "__esModule", { value: !0 });
1132
1132
  Ie.getRules = Ie.isJSONType = void 0;
1133
1133
  const qo = ["string", "number", "integer", "boolean", "null", "object", "array"], zo = new Set(qo);
@@ -1151,31 +1151,31 @@ function Lo() {
1151
1151
  };
1152
1152
  }
1153
1153
  Ie.getRules = Lo;
1154
- var $e = {};
1155
- Object.defineProperty($e, "__esModule", { value: !0 });
1156
- $e.shouldUseRule = $e.shouldUseGroup = $e.schemaHasRulesForType = void 0;
1154
+ var ge = {};
1155
+ Object.defineProperty(ge, "__esModule", { value: !0 });
1156
+ ge.shouldUseRule = ge.shouldUseGroup = ge.schemaHasRulesForType = void 0;
1157
1157
  function Go({ schema: e, self: t }, r) {
1158
1158
  const s = t.RULES.types[r];
1159
1159
  return s && s !== !0 && Ls(e, s);
1160
1160
  }
1161
- $e.schemaHasRulesForType = Go;
1161
+ ge.schemaHasRulesForType = Go;
1162
1162
  function Ls(e, t) {
1163
1163
  return t.rules.some((r) => Gs(e, r));
1164
1164
  }
1165
- $e.shouldUseGroup = Ls;
1165
+ ge.shouldUseGroup = Ls;
1166
1166
  function Gs(e, t) {
1167
1167
  var r;
1168
1168
  return e[t.keyword] !== void 0 || ((r = t.definition.implements) === null || r === void 0 ? void 0 : r.some((s) => e[s] !== void 0));
1169
1169
  }
1170
- $e.shouldUseRule = Gs;
1171
- Object.defineProperty(Q, "__esModule", { value: !0 });
1172
- Q.reportTypeError = Q.checkDataTypes = Q.checkDataType = Q.coerceAndCheckDataType = Q.getJSONTypes = Q.getSchemaTypes = Q.DataType = void 0;
1173
- const Jo = Ie, Ho = $e, Bo = ut, F = A, Js = N;
1170
+ ge.shouldUseRule = Gs;
1171
+ Object.defineProperty(X, "__esModule", { value: !0 });
1172
+ X.reportTypeError = X.checkDataTypes = X.checkDataType = X.coerceAndCheckDataType = X.getJSONTypes = X.getSchemaTypes = X.DataType = void 0;
1173
+ const Jo = Ie, Ho = ge, Bo = ut, F = A, Js = N;
1174
1174
  var Je;
1175
1175
  (function(e) {
1176
1176
  e[e.Correct = 0] = "Correct", e[e.Wrong = 1] = "Wrong";
1177
- })(Je || (Q.DataType = Je = {}));
1178
- function Do(e) {
1177
+ })(Je || (X.DataType = Je = {}));
1178
+ function Qo(e) {
1179
1179
  const t = Hs(e.type);
1180
1180
  if (t.includes("null")) {
1181
1181
  if (e.nullable === !1)
@@ -1187,36 +1187,36 @@ function Do(e) {
1187
1187
  }
1188
1188
  return t;
1189
1189
  }
1190
- Q.getSchemaTypes = Do;
1190
+ X.getSchemaTypes = Qo;
1191
1191
  function Hs(e) {
1192
1192
  const t = Array.isArray(e) ? e : e ? [e] : [];
1193
1193
  if (t.every(Jo.isJSONType))
1194
1194
  return t;
1195
1195
  throw new Error("type must be JSONType or JSONType[]: " + t.join(","));
1196
1196
  }
1197
- Q.getJSONTypes = Hs;
1198
- function Qo(e, t) {
1199
- const { gen: r, data: s, opts: n } = e, a = Xo(t, n.coerceTypes), i = t.length > 0 && !(a.length === 0 && t.length === 1 && (0, Ho.schemaHasRulesForType)(e, t[0]));
1197
+ X.getJSONTypes = Hs;
1198
+ function Xo(e, t) {
1199
+ const { gen: r, data: s, opts: n } = e, a = Yo(t, n.coerceTypes), i = t.length > 0 && !(a.length === 0 && t.length === 1 && (0, Ho.schemaHasRulesForType)(e, t[0]));
1200
1200
  if (i) {
1201
1201
  const d = ur(t, s, n.strictNumbers, Je.Wrong);
1202
1202
  r.if(d, () => {
1203
- a.length ? Yo(e, t, a) : fr(e);
1203
+ a.length ? Zo(e, t, a) : fr(e);
1204
1204
  });
1205
1205
  }
1206
1206
  return i;
1207
1207
  }
1208
- Q.coerceAndCheckDataType = Qo;
1208
+ X.coerceAndCheckDataType = Xo;
1209
1209
  const Bs = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean", "null"]);
1210
- function Xo(e, t) {
1210
+ function Yo(e, t) {
1211
1211
  return t ? e.filter((r) => Bs.has(r) || t === "array" && r === "array") : [];
1212
1212
  }
1213
- function Yo(e, t, r) {
1213
+ function Zo(e, t, r) {
1214
1214
  const { gen: s, data: n, opts: a } = e, i = s.let("dataType", (0, F._)`typeof ${n}`), d = s.let("coerced", (0, F._)`undefined`);
1215
1215
  a.coerceTypes === "array" && s.if((0, F._)`${i} == 'object' && Array.isArray(${n}) && ${n}.length == 1`, () => s.assign(n, (0, F._)`${n}[0]`).assign(i, (0, F._)`typeof ${n}`).if(ur(t, n, a.strictNumbers), () => s.assign(d, n))), s.if((0, F._)`${d} !== undefined`);
1216
1216
  for (const l of r)
1217
1217
  (Bs.has(l) || l === "array" && a.coerceTypes === "array") && u(l);
1218
1218
  s.else(), fr(e), s.endIf(), s.if((0, F._)`${d} !== undefined`, () => {
1219
- s.assign(n, d), Zo(e, d);
1219
+ s.assign(n, d), Do(e, d);
1220
1220
  });
1221
1221
  function u(l) {
1222
1222
  switch (l) {
@@ -1243,7 +1243,7 @@ function Yo(e, t, r) {
1243
1243
  }
1244
1244
  }
1245
1245
  }
1246
- function Zo({ gen: e, parentData: t, parentDataProperty: r }, s) {
1246
+ function Do({ gen: e, parentData: t, parentDataProperty: r }, s) {
1247
1247
  e.if((0, F._)`${t} !== undefined`, () => e.assign((0, F._)`${t}[${r}]`, s));
1248
1248
  }
1249
1249
  function nr(e, t, r, s = Je.Correct) {
@@ -1272,7 +1272,7 @@ function nr(e, t, r, s = Je.Correct) {
1272
1272
  return (0, F.and)((0, F._)`typeof ${t} == "number"`, d, r ? (0, F._)`isFinite(${t})` : F.nil);
1273
1273
  }
1274
1274
  }
1275
- Q.checkDataType = nr;
1275
+ X.checkDataType = nr;
1276
1276
  function ur(e, t, r, s) {
1277
1277
  if (e.length === 1)
1278
1278
  return nr(e[0], t, r, s);
@@ -1288,7 +1288,7 @@ function ur(e, t, r, s) {
1288
1288
  n = (0, F.and)(n, nr(i, t, r, s));
1289
1289
  return n;
1290
1290
  }
1291
- Q.checkDataTypes = ur;
1291
+ X.checkDataTypes = ur;
1292
1292
  const Wo = {
1293
1293
  message: ({ schema: e }) => `must be ${e}`,
1294
1294
  params: ({ schema: e, schemaValue: t }) => typeof e == "string" ? (0, F._)`{type: ${e}}` : (0, F._)`{type: ${t}}`
@@ -1297,7 +1297,7 @@ function fr(e) {
1297
1297
  const t = xo(e);
1298
1298
  (0, Bo.reportError)(t, Wo);
1299
1299
  }
1300
- Q.reportTypeError = fr;
1300
+ X.reportTypeError = fr;
1301
1301
  function xo(e) {
1302
1302
  const { gen: t, data: r, schema: s } = e, n = (0, Js.schemaRefOrVal)(e, s, "type");
1303
1303
  return {
@@ -1355,16 +1355,16 @@ function oa(e, t) {
1355
1355
  e.setParams({ missingProperty: t }, !0), e.error();
1356
1356
  }
1357
1357
  K.reportMissingProp = oa;
1358
- function Ds(e) {
1358
+ function Qs(e) {
1359
1359
  return e.scopeValue("func", {
1360
1360
  // eslint-disable-next-line @typescript-eslint/unbound-method
1361
1361
  ref: Object.prototype.hasOwnProperty,
1362
1362
  code: (0, G._)`Object.prototype.hasOwnProperty`
1363
1363
  });
1364
1364
  }
1365
- K.hasPropFunc = Ds;
1365
+ K.hasPropFunc = Qs;
1366
1366
  function hr(e, t, r) {
1367
- return (0, G._)`${Ds(e)}.call(${t}, ${r})`;
1367
+ return (0, G._)`${Qs(e)}.call(${t}, ${r})`;
1368
1368
  }
1369
1369
  K.isOwnProperty = hr;
1370
1370
  function aa(e, t, r, s) {
@@ -1377,12 +1377,12 @@ function pr(e, t, r, s) {
1377
1377
  return s ? (0, G.or)(n, (0, G.not)(hr(e, t, r))) : n;
1378
1378
  }
1379
1379
  K.noPropertyInData = pr;
1380
- function Qs(e) {
1380
+ function Xs(e) {
1381
1381
  return e ? Object.keys(e).filter((t) => t !== "__proto__") : [];
1382
1382
  }
1383
- K.allSchemaProperties = Qs;
1383
+ K.allSchemaProperties = Xs;
1384
1384
  function ia(e, t) {
1385
- return Qs(t).filter((r) => !(0, mr.alwaysValidSchema)(e, t[r]));
1385
+ return Xs(t).filter((r) => !(0, mr.alwaysValidSchema)(e, t[r]));
1386
1386
  }
1387
1387
  K.schemaProperties = ia;
1388
1388
  function ca({ schemaCode: e, data: t, it: { gen: r, topSchemaRef: s, schemaPath: n, errorPath: a }, it: i }, d, u, l) {
@@ -1447,7 +1447,7 @@ Object.defineProperty(pe, "__esModule", { value: !0 });
1447
1447
  pe.validateKeywordUsage = pe.validSchemaType = pe.funcKeywordCode = pe.macroKeywordCode = void 0;
1448
1448
  const ee = A, Re = ye, ma = K, ha = ut;
1449
1449
  function pa(e, t) {
1450
- const { gen: r, keyword: s, schema: n, parentSchema: a, it: i } = e, d = t.macro.call(i.self, n, a, i), u = Xs(r, s, d);
1450
+ const { gen: r, keyword: s, schema: n, parentSchema: a, it: i } = e, d = t.macro.call(i.self, n, a, i), u = Ys(r, s, d);
1451
1451
  i.opts.validateSchema !== !1 && i.self.validateSchema(d, !0);
1452
1452
  const l = r.name("valid");
1453
1453
  e.subschema({
@@ -1463,7 +1463,7 @@ function ya(e, t) {
1463
1463
  var r;
1464
1464
  const { gen: s, keyword: n, schema: a, parentSchema: i, $data: d, it: u } = e;
1465
1465
  va(u, t);
1466
- const l = !d && t.compile ? t.compile.call(u.self, a, i, u) : t.validate, m = Xs(s, n, l), y = s.let("valid");
1466
+ const l = !d && t.compile ? t.compile.call(u.self, a, i, u) : t.validate, m = Ys(s, n, l), y = s.let("valid");
1467
1467
  e.block$data(y, b), e.ok((r = t.valid) !== null && r !== void 0 ? r : y);
1468
1468
  function b() {
1469
1469
  if (t.errors === !1)
@@ -1505,7 +1505,7 @@ function va({ schemaEnv: e }, t) {
1505
1505
  if (t.async && !e.$async)
1506
1506
  throw new Error("async keyword in sync schema");
1507
1507
  }
1508
- function Xs(e, t, r) {
1508
+ function Ys(e, t, r) {
1509
1509
  if (r === void 0)
1510
1510
  throw new Error(`keyword "${t}" failed to compile`);
1511
1511
  return e.scopeValue("keyword", typeof r == "function" ? { ref: r } : { ref: r, code: (0, ee.stringify)(r) });
@@ -1532,7 +1532,7 @@ pe.validateKeywordUsage = ga;
1532
1532
  var Ne = {};
1533
1533
  Object.defineProperty(Ne, "__esModule", { value: !0 });
1534
1534
  Ne.extendSubschemaMode = Ne.extendSubschemaData = Ne.getSubschema = void 0;
1535
- const he = A, Ys = N;
1535
+ const he = A, Zs = N;
1536
1536
  function wa(e, { keyword: t, schemaProp: r, schema: s, schemaPath: n, errSchemaPath: a, topSchemaRef: i }) {
1537
1537
  if (t !== void 0 && s !== void 0)
1538
1538
  throw new Error('both "keyword" and "schema" passed, only one allowed');
@@ -1545,7 +1545,7 @@ function wa(e, { keyword: t, schemaProp: r, schema: s, schemaPath: n, errSchemaP
1545
1545
  } : {
1546
1546
  schema: d[r],
1547
1547
  schemaPath: (0, he._)`${e.schemaPath}${(0, he.getProperty)(t)}${(0, he.getProperty)(r)}`,
1548
- errSchemaPath: `${e.errSchemaPath}/${t}/${(0, Ys.escapeFragment)(r)}`
1548
+ errSchemaPath: `${e.errSchemaPath}/${t}/${(0, Zs.escapeFragment)(r)}`
1549
1549
  };
1550
1550
  }
1551
1551
  if (s !== void 0) {
@@ -1567,7 +1567,7 @@ function ba(e, t, { dataProp: r, dataPropType: s, data: n, dataTypes: a, propert
1567
1567
  const { gen: d } = t;
1568
1568
  if (r !== void 0) {
1569
1569
  const { errorPath: l, dataPathArr: m, opts: y } = t, b = d.let("data", (0, he._)`${t.data}${(0, he.getProperty)(r)}`, !0);
1570
- u(b), e.errorPath = (0, he.str)`${l}${(0, Ys.getErrorPath)(r, s, y.jsPropertySyntax)}`, e.parentDataProperty = (0, he._)`${r}`, e.dataPathArr = [...m, e.parentDataProperty];
1570
+ u(b), e.errorPath = (0, he.str)`${l}${(0, Zs.getErrorPath)(r, s, y.jsPropertySyntax)}`, e.parentDataProperty = (0, he._)`${r}`, e.dataPathArr = [...m, e.parentDataProperty];
1571
1571
  }
1572
1572
  if (n !== void 0) {
1573
1573
  const l = n instanceof he.Name ? n : d.let("data", n, !0);
@@ -1583,9 +1583,9 @@ function Ea(e, { jtdDiscriminator: t, jtdMetadata: r, compositeRule: s, createEr
1583
1583
  s !== void 0 && (e.compositeRule = s), n !== void 0 && (e.createErrors = n), a !== void 0 && (e.allErrors = a), e.jtdDiscriminator = t, e.jtdMetadata = r;
1584
1584
  }
1585
1585
  Ne.extendSubschemaMode = Ea;
1586
- var Y = {};
1587
- Object.defineProperty(Y, "__esModule", { value: !0 });
1588
- Y.getSchemaRefs = Y.resolveUrl = Y.normalizeId = Y._getFullPath = Y.getFullPath = Y.inlineRef = void 0;
1586
+ var Z = {};
1587
+ Object.defineProperty(Z, "__esModule", { value: !0 });
1588
+ Z.getSchemaRefs = Z.resolveUrl = Z.normalizeId = Z._getFullPath = Z.getFullPath = Z.inlineRef = void 0;
1589
1589
  const Sa = N, Pa = Ps, ka = Tn, Na = /* @__PURE__ */ new Set([
1590
1590
  "type",
1591
1591
  "format",
@@ -1605,9 +1605,9 @@ const Sa = N, Pa = Ps, ka = Tn, Na = /* @__PURE__ */ new Set([
1605
1605
  "const"
1606
1606
  ]);
1607
1607
  function Ca(e, t = !0) {
1608
- return typeof e == "boolean" ? !0 : t === !0 ? !or(e) : t ? Zs(e) <= t : !1;
1608
+ return typeof e == "boolean" ? !0 : t === !0 ? !or(e) : t ? Ds(e) <= t : !1;
1609
1609
  }
1610
- Y.inlineRef = Ca;
1610
+ Z.inlineRef = Ca;
1611
1611
  const ja = /* @__PURE__ */ new Set([
1612
1612
  "$ref",
1613
1613
  "$recursiveRef",
@@ -1625,12 +1625,12 @@ function or(e) {
1625
1625
  }
1626
1626
  return !1;
1627
1627
  }
1628
- function Zs(e) {
1628
+ function Ds(e) {
1629
1629
  let t = 0;
1630
1630
  for (const r in e) {
1631
1631
  if (r === "$ref")
1632
1632
  return 1 / 0;
1633
- if (t++, !Na.has(r) && (typeof e[r] == "object" && (0, Sa.eachItem)(e[r], (s) => t += Zs(s)), t === 1 / 0))
1633
+ if (t++, !Na.has(r) && (typeof e[r] == "object" && (0, Sa.eachItem)(e[r], (s) => t += Ds(s)), t === 1 / 0))
1634
1634
  return 1 / 0;
1635
1635
  }
1636
1636
  return t;
@@ -1640,20 +1640,20 @@ function Ws(e, t = "", r) {
1640
1640
  const s = e.parse(t);
1641
1641
  return xs(e, s);
1642
1642
  }
1643
- Y.getFullPath = Ws;
1643
+ Z.getFullPath = Ws;
1644
1644
  function xs(e, t) {
1645
1645
  return e.serialize(t).split("#")[0] + "#";
1646
1646
  }
1647
- Y._getFullPath = xs;
1647
+ Z._getFullPath = xs;
1648
1648
  const Ra = /#\/?$/;
1649
1649
  function He(e) {
1650
1650
  return e ? e.replace(Ra, "") : "";
1651
1651
  }
1652
- Y.normalizeId = He;
1652
+ Z.normalizeId = He;
1653
1653
  function Oa(e, t, r) {
1654
1654
  return r = He(r), e.resolve(t, r);
1655
1655
  }
1656
- Y.resolveUrl = Oa;
1656
+ Z.resolveUrl = Oa;
1657
1657
  const Ta = /^[a-z_][-a-z0-9._]*$/i;
1658
1658
  function Ia(e, t) {
1659
1659
  if (typeof e == "boolean")
@@ -1689,10 +1689,10 @@ function Ia(e, t) {
1689
1689
  return new Error(`reference "${y}" resolves to more than one schema`);
1690
1690
  }
1691
1691
  }
1692
- Y.getSchemaRefs = Ia;
1692
+ Z.getSchemaRefs = Ia;
1693
1693
  Object.defineProperty(fe, "__esModule", { value: !0 });
1694
1694
  fe.getData = fe.KeywordCxt = fe.validateFunctionCode = void 0;
1695
- const en = Be, ns = Q, yr = $e, St = Q, Ma = jt, nt = pe, Bt = Ne, T = A, M = ye, Va = Y, ge = N, et = ut;
1695
+ const en = Be, ns = X, yr = ge, St = X, Ma = jt, nt = pe, Bt = Ne, T = A, M = ye, Va = Z, we = N, et = ut;
1696
1696
  function Fa(e) {
1697
1697
  if (sn(e) && (nn(e), rn(e))) {
1698
1698
  qa(e);
@@ -1719,7 +1719,7 @@ function Aa(e, t) {
1719
1719
  function qa(e) {
1720
1720
  const { schema: t, opts: r, gen: s } = e;
1721
1721
  tn(e, () => {
1722
- r.$comment && t.$comment && an(e), Ja(e), s.let(M.default.vErrors, null), s.let(M.default.errors, 0), r.unevaluated && za(e), on(e), Da(e);
1722
+ r.$comment && t.$comment && an(e), Ja(e), s.let(M.default.vErrors, null), s.let(M.default.errors, 0), r.unevaluated && za(e), on(e), Qa(e);
1723
1723
  });
1724
1724
  }
1725
1725
  function za(e) {
@@ -1755,7 +1755,7 @@ function La(e, t) {
1755
1755
  on(e, a), s.var(t, (0, T._)`${a} === ${M.default.errors}`);
1756
1756
  }
1757
1757
  function nn(e) {
1758
- (0, ge.checkUnknownRules)(e), Ga(e);
1758
+ (0, we.checkUnknownRules)(e), Ga(e);
1759
1759
  }
1760
1760
  function on(e, t) {
1761
1761
  if (e.opts.jtd)
@@ -1765,11 +1765,11 @@ function on(e, t) {
1765
1765
  }
1766
1766
  function Ga(e) {
1767
1767
  const { schema: t, errSchemaPath: r, opts: s, self: n } = e;
1768
- t.$ref && s.ignoreKeywordsWithRef && (0, ge.schemaHasRulesButRef)(t, n.RULES) && n.logger.warn(`$ref: keywords ignored in schema at path "${r}"`);
1768
+ t.$ref && s.ignoreKeywordsWithRef && (0, we.schemaHasRulesButRef)(t, n.RULES) && n.logger.warn(`$ref: keywords ignored in schema at path "${r}"`);
1769
1769
  }
1770
1770
  function Ja(e) {
1771
1771
  const { schema: t, opts: r } = e;
1772
- t.default !== void 0 && r.useDefaults && r.strictSchema && (0, ge.checkStrictMode)(e, "default is ignored in the schema root");
1772
+ t.default !== void 0 && r.useDefaults && r.strictSchema && (0, we.checkStrictMode)(e, "default is ignored in the schema root");
1773
1773
  }
1774
1774
  function Ha(e) {
1775
1775
  const t = e.schema[e.opts.schemaId];
@@ -1788,20 +1788,20 @@ function an({ gen: e, schemaEnv: t, schema: r, errSchemaPath: s, opts: n }) {
1788
1788
  e.code((0, T._)`${M.default.self}.opts.$comment(${a}, ${i}, ${d}.schema)`);
1789
1789
  }
1790
1790
  }
1791
- function Da(e) {
1791
+ function Qa(e) {
1792
1792
  const { gen: t, schemaEnv: r, validateName: s, ValidationError: n, opts: a } = e;
1793
- r.$async ? t.if((0, T._)`${M.default.errors} === 0`, () => t.return(M.default.data), () => t.throw((0, T._)`new ${n}(${M.default.vErrors})`)) : (t.assign((0, T._)`${s}.errors`, M.default.vErrors), a.unevaluated && Qa(e), t.return((0, T._)`${M.default.errors} === 0`));
1793
+ r.$async ? t.if((0, T._)`${M.default.errors} === 0`, () => t.return(M.default.data), () => t.throw((0, T._)`new ${n}(${M.default.vErrors})`)) : (t.assign((0, T._)`${s}.errors`, M.default.vErrors), a.unevaluated && Xa(e), t.return((0, T._)`${M.default.errors} === 0`));
1794
1794
  }
1795
- function Qa({ gen: e, evaluated: t, props: r, items: s }) {
1795
+ function Xa({ gen: e, evaluated: t, props: r, items: s }) {
1796
1796
  r instanceof T.Name && e.assign((0, T._)`${t}.props`, r), s instanceof T.Name && e.assign((0, T._)`${t}.items`, s);
1797
1797
  }
1798
1798
  function as(e, t, r, s) {
1799
1799
  const { gen: n, schema: a, data: i, allErrors: d, opts: u, self: l } = e, { RULES: m } = l;
1800
- if (a.$ref && (u.ignoreKeywordsWithRef || !(0, ge.schemaHasRulesButRef)(a, m))) {
1800
+ if (a.$ref && (u.ignoreKeywordsWithRef || !(0, we.schemaHasRulesButRef)(a, m))) {
1801
1801
  n.block(() => dn(e, "$ref", m.all.$ref.definition));
1802
1802
  return;
1803
1803
  }
1804
- u.jtd || Xa(e, t), n.block(() => {
1804
+ u.jtd || Ya(e, t), n.block(() => {
1805
1805
  for (const b of m.rules)
1806
1806
  y(b);
1807
1807
  y(m.post);
@@ -1817,10 +1817,10 @@ function is(e, t) {
1817
1817
  (0, yr.shouldUseRule)(s, a) && dn(e, a.keyword, a.definition, t.type);
1818
1818
  });
1819
1819
  }
1820
- function Xa(e, t) {
1821
- e.schemaEnv.meta || !e.opts.strictTypes || (Ya(e, t), e.opts.allowUnionTypes || Za(e, t), Wa(e, e.dataTypes));
1822
- }
1823
1820
  function Ya(e, t) {
1821
+ e.schemaEnv.meta || !e.opts.strictTypes || (Za(e, t), e.opts.allowUnionTypes || Da(e, t), Wa(e, e.dataTypes));
1822
+ }
1823
+ function Za(e, t) {
1824
1824
  if (t.length) {
1825
1825
  if (!e.dataTypes.length) {
1826
1826
  e.dataTypes = t;
@@ -1831,7 +1831,7 @@ function Ya(e, t) {
1831
1831
  }), ei(e, t);
1832
1832
  }
1833
1833
  }
1834
- function Za(e, t) {
1834
+ function Da(e, t) {
1835
1835
  t.length > 1 && !(t.length === 2 && t.includes("null")) && _r(e, "use allowUnionTypes to allow union type keyword");
1836
1836
  }
1837
1837
  function Wa(e, t) {
@@ -1858,11 +1858,11 @@ function ei(e, t) {
1858
1858
  }
1859
1859
  function _r(e, t) {
1860
1860
  const r = e.schemaEnv.baseId + e.errSchemaPath;
1861
- t += ` at "${r}" (strictTypes)`, (0, ge.checkStrictMode)(e, t, e.opts.strictTypes);
1861
+ t += ` at "${r}" (strictTypes)`, (0, we.checkStrictMode)(e, t, e.opts.strictTypes);
1862
1862
  }
1863
1863
  class ln {
1864
1864
  constructor(t, r, s) {
1865
- if ((0, nt.validateKeywordUsage)(t, r, s), this.gen = t.gen, this.allErrors = t.allErrors, this.keyword = s, this.data = t.data, this.schema = t.schema[s], this.$data = r.$data && t.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, ge.schemaRefOrVal)(t, this.schema, s, this.$data), this.schemaType = r.schemaType, this.parentSchema = t.schema, this.params = {}, this.it = t, this.def = r, this.$data)
1865
+ if ((0, nt.validateKeywordUsage)(t, r, s), this.gen = t.gen, this.allErrors = t.allErrors, this.keyword = s, this.data = t.data, this.schema = t.schema[s], this.$data = r.$data && t.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, we.schemaRefOrVal)(t, this.schema, s, this.$data), this.schemaType = r.schemaType, this.parentSchema = t.schema, this.params = {}, this.it = t, this.def = r, this.$data)
1866
1866
  this.schemaCode = t.gen.const("vSchema", un(this.$data, t));
1867
1867
  else if (this.schemaCode = this.schemaValue, !(0, nt.validSchemaType)(this.schema, r.schemaType, r.allowUndefined))
1868
1868
  throw new Error(`${s} value must be ${JSON.stringify(r.schemaType)}`);
@@ -1953,7 +1953,7 @@ class ln {
1953
1953
  }
1954
1954
  mergeEvaluated(t, r) {
1955
1955
  const { it: s, gen: n } = this;
1956
- s.opts.unevaluated && (s.props !== !0 && t.props !== void 0 && (s.props = ge.mergeEvaluated.props(n, t.props, s.props, r)), s.items !== !0 && t.items !== void 0 && (s.items = ge.mergeEvaluated.items(n, t.items, s.items, r)));
1956
+ s.opts.unevaluated && (s.props !== !0 && t.props !== void 0 && (s.props = we.mergeEvaluated.props(n, t.props, s.props, r)), s.items !== !0 && t.items !== void 0 && (s.items = we.mergeEvaluated.items(n, t.items, s.items, r)));
1957
1957
  }
1958
1958
  mergeValidEvaluated(t, r) {
1959
1959
  const { it: s, gen: n } = this;
@@ -1993,7 +1993,7 @@ function un(e, { dataLevel: t, dataNames: r, dataPathArr: s }) {
1993
1993
  let i = a;
1994
1994
  const d = n.split("/");
1995
1995
  for (const l of d)
1996
- l && (a = (0, T._)`${a}${(0, T.getProperty)((0, ge.unescapeJsonPointer)(l))}`, i = (0, T._)`${i} && ${a}`);
1996
+ l && (a = (0, T._)`${a}${(0, T.getProperty)((0, we.unescapeJsonPointer)(l))}`, i = (0, T._)`${i} && ${a}`);
1997
1997
  return i;
1998
1998
  function u(l, m) {
1999
1999
  return `Cannot access ${l} ${m} levels up, current level is ${t}`;
@@ -2008,19 +2008,19 @@ class si extends Error {
2008
2008
  }
2009
2009
  }
2010
2010
  ft.default = si;
2011
- var Qe = {};
2012
- Object.defineProperty(Qe, "__esModule", { value: !0 });
2013
- const Dt = Y;
2011
+ var Xe = {};
2012
+ Object.defineProperty(Xe, "__esModule", { value: !0 });
2013
+ const Qt = Z;
2014
2014
  class ni extends Error {
2015
2015
  constructor(t, r, s, n) {
2016
- super(n || `can't resolve reference ${s} from id ${r}`), this.missingRef = (0, Dt.resolveUrl)(t, r, s), this.missingSchema = (0, Dt.normalizeId)((0, Dt.getFullPath)(t, this.missingRef));
2016
+ super(n || `can't resolve reference ${s} from id ${r}`), this.missingRef = (0, Qt.resolveUrl)(t, r, s), this.missingSchema = (0, Qt.normalizeId)((0, Qt.getFullPath)(t, this.missingRef));
2017
2017
  }
2018
2018
  }
2019
- Qe.default = ni;
2019
+ Xe.default = ni;
2020
2020
  var re = {};
2021
2021
  Object.defineProperty(re, "__esModule", { value: !0 });
2022
2022
  re.resolveSchema = re.getCompilingSchema = re.resolveRef = re.compileSchema = re.SchemaEnv = void 0;
2023
- const ce = A, oi = ft, Ce = ye, ue = Y, cs = N, ai = fe;
2023
+ const ce = A, oi = ft, Ce = ye, ue = Z, cs = N, ai = fe;
2024
2024
  class Rt {
2025
2025
  constructor(t) {
2026
2026
  var r;
@@ -2127,18 +2127,18 @@ function Ot(e, t) {
2127
2127
  const r = this.opts.uriResolver.parse(t), s = (0, ue._getFullPath)(this.opts.uriResolver, r);
2128
2128
  let n = (0, ue.getFullPath)(this.opts.uriResolver, e.baseId, void 0);
2129
2129
  if (Object.keys(e.schema).length > 0 && s === n)
2130
- return Qt.call(this, r, e);
2130
+ return Xt.call(this, r, e);
2131
2131
  const a = (0, ue.normalizeId)(s), i = this.refs[a] || this.schemas[a];
2132
2132
  if (typeof i == "string") {
2133
2133
  const d = Ot.call(this, e, i);
2134
- return typeof (d == null ? void 0 : d.schema) != "object" ? void 0 : Qt.call(this, r, d);
2134
+ return typeof (d == null ? void 0 : d.schema) != "object" ? void 0 : Xt.call(this, r, d);
2135
2135
  }
2136
2136
  if (typeof (i == null ? void 0 : i.schema) == "object") {
2137
2137
  if (i.validate || vr.call(this, i), a === (0, ue.normalizeId)(t)) {
2138
2138
  const { schema: d } = i, { schemaId: u } = this.opts, l = d[u];
2139
2139
  return l && (n = (0, ue.resolveUrl)(this.opts.uriResolver, n, l)), new Rt({ schema: d, schemaId: u, root: e, baseId: n });
2140
2140
  }
2141
- return Qt.call(this, r, i);
2141
+ return Xt.call(this, r, i);
2142
2142
  }
2143
2143
  }
2144
2144
  re.resolveSchema = Ot;
@@ -2149,7 +2149,7 @@ const ui = /* @__PURE__ */ new Set([
2149
2149
  "dependencies",
2150
2150
  "definitions"
2151
2151
  ]);
2152
- function Qt(e, { baseId: t, schema: r, root: s }) {
2152
+ function Xt(e, { baseId: t, schema: r, root: s }) {
2153
2153
  var n;
2154
2154
  if (((n = e.fragment) === null || n === void 0 ? void 0 : n[0]) !== "/")
2155
2155
  return;
@@ -2219,7 +2219,7 @@ $r.default = mn;
2219
2219
  } }), Object.defineProperty(e, "CodeGen", { enumerable: !0, get: function() {
2220
2220
  return r.CodeGen;
2221
2221
  } });
2222
- const s = ft, n = Qe, a = Ie, i = re, d = A, u = Y, l = Q, m = N, y = vi, b = $r, E = (k, p) => new RegExp(k, p);
2222
+ const s = ft, n = Xe, a = Ie, i = re, d = A, u = Z, l = X, m = N, y = vi, b = $r, E = (k, p) => new RegExp(k, p);
2223
2223
  E.code = "new RegExp";
2224
2224
  const g = ["removeAdditional", "useDefaults", "coerceTypes"], v = /* @__PURE__ */ new Set([
2225
2225
  "validate",
@@ -2257,14 +2257,14 @@ $r.default = mn;
2257
2257
  unicode: '"minLength"/"maxLength" account for unicode characters by default.'
2258
2258
  }, $ = 200;
2259
2259
  function P(k) {
2260
- var p, S, _, o, c, w, R, O, q, I, B, _e, Ze, ve, qe, Mt, Vt, Ft, Kt, At, qt, zt, Ut, Lt, Gt;
2260
+ var p, S, _, o, c, w, R, O, q, I, B, ve, De, $e, qe, Mt, Vt, Ft, Kt, At, qt, zt, Ut, Lt, Gt;
2261
2261
  const We = k.strict, Jt = (p = k.code) === null || p === void 0 ? void 0 : p.optimize, Wr = Jt === !0 || Jt === void 0 ? 1 : Jt || 0, xr = (_ = (S = k.code) === null || S === void 0 ? void 0 : S.regExp) !== null && _ !== void 0 ? _ : E, bn = (o = k.uriResolver) !== null && o !== void 0 ? o : b.default;
2262
2262
  return {
2263
2263
  strictSchema: (w = (c = k.strictSchema) !== null && c !== void 0 ? c : We) !== null && w !== void 0 ? w : !0,
2264
2264
  strictNumbers: (O = (R = k.strictNumbers) !== null && R !== void 0 ? R : We) !== null && O !== void 0 ? O : !0,
2265
2265
  strictTypes: (I = (q = k.strictTypes) !== null && q !== void 0 ? q : We) !== null && I !== void 0 ? I : "log",
2266
- strictTuples: (_e = (B = k.strictTuples) !== null && B !== void 0 ? B : We) !== null && _e !== void 0 ? _e : "log",
2267
- strictRequired: (ve = (Ze = k.strictRequired) !== null && Ze !== void 0 ? Ze : We) !== null && ve !== void 0 ? ve : !1,
2266
+ strictTuples: (ve = (B = k.strictTuples) !== null && B !== void 0 ? B : We) !== null && ve !== void 0 ? ve : "log",
2267
+ strictRequired: ($e = (De = k.strictRequired) !== null && De !== void 0 ? De : We) !== null && $e !== void 0 ? $e : !1,
2268
2268
  code: k.code ? { ...k.code, optimize: Wr, regExp: xr } : { optimize: Wr, regExp: xr },
2269
2269
  loopRequired: (qe = k.loopRequired) !== null && qe !== void 0 ? qe : $,
2270
2270
  loopEnum: (Mt = k.loopEnum) !== null && Mt !== void 0 ? Mt : $,
@@ -2321,8 +2321,8 @@ $r.default = mn;
2321
2321
  return o.call(this, p, S);
2322
2322
  async function o(I, B) {
2323
2323
  await c.call(this, I.$schema);
2324
- const _e = this._addSchema(I, B);
2325
- return _e.validate || w.call(this, _e);
2324
+ const ve = this._addSchema(I, B);
2325
+ return ve.validate || w.call(this, ve);
2326
2326
  }
2327
2327
  async function c(I) {
2328
2328
  I && !this.getSchema(I) && await o.call(this, { $ref: I }, !0);
@@ -2581,13 +2581,13 @@ $r.default = mn;
2581
2581
  delete k[p];
2582
2582
  return k;
2583
2583
  }
2584
- const we = { log() {
2584
+ const be = { log() {
2585
2585
  }, warn() {
2586
2586
  }, error() {
2587
2587
  } };
2588
2588
  function ie(k) {
2589
2589
  if (k === !1)
2590
- return we;
2590
+ return be;
2591
2591
  if (k === void 0)
2592
2592
  return console;
2593
2593
  if (k.log && k.warn && k.error)
@@ -2632,11 +2632,11 @@ $r.default = mn;
2632
2632
  let { metaSchema: p } = k;
2633
2633
  p !== void 0 && (k.$data && this.opts.$data && (p = Ae(p)), k.validateSchema = this.compile(p, !0));
2634
2634
  }
2635
- const be = {
2635
+ const _e = {
2636
2636
  $ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"
2637
2637
  };
2638
2638
  function Ae(k) {
2639
- return { anyOf: [k, be] };
2639
+ return { anyOf: [k, _e] };
2640
2640
  }
2641
2641
  })(Vs);
2642
2642
  var gr = {}, wr = {}, br = {};
@@ -2651,7 +2651,7 @@ br.default = $i;
2651
2651
  var Me = {};
2652
2652
  Object.defineProperty(Me, "__esModule", { value: !0 });
2653
2653
  Me.callRef = Me.getValidate = void 0;
2654
- const gi = Qe, ls = K, te = A, Ue = ye, ds = re, yt = N, wi = {
2654
+ const gi = Xe, ls = K, te = A, Ue = ye, ds = re, yt = N, wi = {
2655
2655
  keyword: "$ref",
2656
2656
  schemaType: "string",
2657
2657
  code(e) {
@@ -2938,10 +2938,10 @@ const yn = Ps;
2938
2938
  yn.code = 'require("ajv/dist/runtime/equal").default';
2939
2939
  mt.default = yn;
2940
2940
  Object.defineProperty(Tr, "__esModule", { value: !0 });
2941
- const Xt = Q, X = A, Ji = N, Hi = mt, Bi = {
2942
- message: ({ params: { i: e, j: t } }) => (0, X.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,
2943
- params: ({ params: { i: e, j: t } }) => (0, X._)`{i: ${e}, j: ${t}}`
2944
- }, Di = {
2941
+ const Yt = X, Y = A, Ji = N, Hi = mt, Bi = {
2942
+ message: ({ params: { i: e, j: t } }) => (0, Y.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,
2943
+ params: ({ params: { i: e, j: t } }) => (0, Y._)`{i: ${e}, j: ${t}}`
2944
+ }, Qi = {
2945
2945
  keyword: "uniqueItems",
2946
2946
  type: "array",
2947
2947
  schemaType: "boolean",
@@ -2951,47 +2951,47 @@ const Xt = Q, X = A, Ji = N, Hi = mt, Bi = {
2951
2951
  const { gen: t, data: r, $data: s, schema: n, parentSchema: a, schemaCode: i, it: d } = e;
2952
2952
  if (!s && !n)
2953
2953
  return;
2954
- const u = t.let("valid"), l = a.items ? (0, Xt.getSchemaTypes)(a.items) : [];
2955
- e.block$data(u, m, (0, X._)`${i} === false`), e.ok(u);
2954
+ const u = t.let("valid"), l = a.items ? (0, Yt.getSchemaTypes)(a.items) : [];
2955
+ e.block$data(u, m, (0, Y._)`${i} === false`), e.ok(u);
2956
2956
  function m() {
2957
- const g = t.let("i", (0, X._)`${r}.length`), v = t.let("j");
2958
- e.setParams({ i: g, j: v }), t.assign(u, !0), t.if((0, X._)`${g} > 1`, () => (y() ? b : E)(g, v));
2957
+ const g = t.let("i", (0, Y._)`${r}.length`), v = t.let("j");
2958
+ e.setParams({ i: g, j: v }), t.assign(u, !0), t.if((0, Y._)`${g} > 1`, () => (y() ? b : E)(g, v));
2959
2959
  }
2960
2960
  function y() {
2961
2961
  return l.length > 0 && !l.some((g) => g === "object" || g === "array");
2962
2962
  }
2963
2963
  function b(g, v) {
2964
- const h = t.name("item"), f = (0, Xt.checkDataTypes)(l, h, d.opts.strictNumbers, Xt.DataType.Wrong), $ = t.const("indices", (0, X._)`{}`);
2965
- t.for((0, X._)`;${g}--;`, () => {
2966
- t.let(h, (0, X._)`${r}[${g}]`), t.if(f, (0, X._)`continue`), l.length > 1 && t.if((0, X._)`typeof ${h} == "string"`, (0, X._)`${h} += "_"`), t.if((0, X._)`typeof ${$}[${h}] == "number"`, () => {
2967
- t.assign(v, (0, X._)`${$}[${h}]`), e.error(), t.assign(u, !1).break();
2968
- }).code((0, X._)`${$}[${h}] = ${g}`);
2964
+ const h = t.name("item"), f = (0, Yt.checkDataTypes)(l, h, d.opts.strictNumbers, Yt.DataType.Wrong), $ = t.const("indices", (0, Y._)`{}`);
2965
+ t.for((0, Y._)`;${g}--;`, () => {
2966
+ t.let(h, (0, Y._)`${r}[${g}]`), t.if(f, (0, Y._)`continue`), l.length > 1 && t.if((0, Y._)`typeof ${h} == "string"`, (0, Y._)`${h} += "_"`), t.if((0, Y._)`typeof ${$}[${h}] == "number"`, () => {
2967
+ t.assign(v, (0, Y._)`${$}[${h}]`), e.error(), t.assign(u, !1).break();
2968
+ }).code((0, Y._)`${$}[${h}] = ${g}`);
2969
2969
  });
2970
2970
  }
2971
2971
  function E(g, v) {
2972
2972
  const h = (0, Ji.useFunc)(t, Hi.default), f = t.name("outer");
2973
- t.label(f).for((0, X._)`;${g}--;`, () => t.for((0, X._)`${v} = ${g}; ${v}--;`, () => t.if((0, X._)`${h}(${r}[${g}], ${r}[${v}])`, () => {
2973
+ t.label(f).for((0, Y._)`;${g}--;`, () => t.for((0, Y._)`${v} = ${g}; ${v}--;`, () => t.if((0, Y._)`${h}(${r}[${g}], ${r}[${v}])`, () => {
2974
2974
  e.error(), t.assign(u, !1).break(f);
2975
2975
  })));
2976
2976
  }
2977
2977
  }
2978
2978
  };
2979
- Tr.default = Di;
2979
+ Tr.default = Qi;
2980
2980
  var Ir = {};
2981
2981
  Object.defineProperty(Ir, "__esModule", { value: !0 });
2982
- const ar = A, Qi = N, Xi = mt, Yi = {
2982
+ const ar = A, Xi = N, Yi = mt, Zi = {
2983
2983
  message: "must be equal to constant",
2984
2984
  params: ({ schemaCode: e }) => (0, ar._)`{allowedValue: ${e}}`
2985
- }, Zi = {
2985
+ }, Di = {
2986
2986
  keyword: "const",
2987
2987
  $data: !0,
2988
- error: Yi,
2988
+ error: Zi,
2989
2989
  code(e) {
2990
2990
  const { gen: t, data: r, $data: s, schemaCode: n, schema: a } = e;
2991
- s || a && typeof a == "object" ? e.fail$data((0, ar._)`!${(0, Qi.useFunc)(t, Xi.default)}(${r}, ${n})`) : e.fail((0, ar._)`${a} !== ${r}`);
2991
+ s || a && typeof a == "object" ? e.fail$data((0, ar._)`!${(0, Xi.useFunc)(t, Yi.default)}(${r}, ${n})`) : e.fail((0, ar._)`${a} !== ${r}`);
2992
2992
  }
2993
2993
  };
2994
- Ir.default = Zi;
2994
+ Ir.default = Di;
2995
2995
  var Mr = {};
2996
2996
  Object.defineProperty(Mr, "__esModule", { value: !0 });
2997
2997
  const rt = A, Wi = N, xi = mt, ec = {
@@ -3050,9 +3050,9 @@ const rc = Sr, sc = Pr, nc = kr, oc = Cr, ac = jr, ic = Rr, cc = Or, lc = Tr, dc
3050
3050
  uc.default
3051
3051
  ];
3052
3052
  Er.default = fc;
3053
- var Vr = {}, Xe = {};
3054
- Object.defineProperty(Xe, "__esModule", { value: !0 });
3055
- Xe.validateAdditionalItems = void 0;
3053
+ var Vr = {}, Ye = {};
3054
+ Object.defineProperty(Ye, "__esModule", { value: !0 });
3055
+ Ye.validateAdditionalItems = void 0;
3056
3056
  const Te = A, ir = N, mc = {
3057
3057
  message: ({ params: { len: e } }) => (0, Te.str)`must NOT have more than ${e} items`,
3058
3058
  params: ({ params: { len: e } }) => (0, Te._)`{limit: ${e}}`
@@ -3087,11 +3087,11 @@ function _n(e, t) {
3087
3087
  });
3088
3088
  }
3089
3089
  }
3090
- Xe.validateAdditionalItems = _n;
3091
- Xe.default = hc;
3092
- var Fr = {}, Ye = {};
3093
- Object.defineProperty(Ye, "__esModule", { value: !0 });
3094
- Ye.validateTuple = void 0;
3090
+ Ye.validateAdditionalItems = _n;
3091
+ Ye.default = hc;
3092
+ var Fr = {}, Ze = {};
3093
+ Object.defineProperty(Ze, "__esModule", { value: !0 });
3094
+ Ze.validateTuple = void 0;
3095
3095
  const us = A, bt = N, pc = K, yc = {
3096
3096
  keyword: "items",
3097
3097
  type: "array",
@@ -3123,10 +3123,10 @@ function vn(e, t, r = e.schema) {
3123
3123
  }
3124
3124
  }
3125
3125
  }
3126
- Ye.validateTuple = vn;
3127
- Ye.default = yc;
3126
+ Ze.validateTuple = vn;
3127
+ Ze.default = yc;
3128
3128
  Object.defineProperty(Fr, "__esModule", { value: !0 });
3129
- const _c = Ye, vc = {
3129
+ const _c = Ze, vc = {
3130
3130
  keyword: "prefixItems",
3131
3131
  type: "array",
3132
3132
  schemaType: ["array"],
@@ -3136,7 +3136,7 @@ const _c = Ye, vc = {
3136
3136
  Fr.default = vc;
3137
3137
  var Kr = {};
3138
3138
  Object.defineProperty(Kr, "__esModule", { value: !0 });
3139
- const fs = A, $c = N, gc = K, wc = Xe, bc = {
3139
+ const fs = A, $c = N, gc = K, wc = Ye, bc = {
3140
3140
  message: ({ params: { len: e } }) => (0, fs.str)`must NOT have more than ${e} items`,
3141
3141
  params: ({ params: { len: e } }) => (0, fs._)`{limit: ${e}}`
3142
3142
  }, Ec = {
@@ -3375,7 +3375,7 @@ const vt = K, le = A, jc = ye, $t = N, Rc = {
3375
3375
  Tt.default = Oc;
3376
3376
  var zr = {};
3377
3377
  Object.defineProperty(zr, "__esModule", { value: !0 });
3378
- const Tc = fe, ms = K, Yt = N, hs = Tt, Ic = {
3378
+ const Tc = fe, ms = K, Zt = N, hs = Tt, Ic = {
3379
3379
  keyword: "properties",
3380
3380
  type: "object",
3381
3381
  schemaType: "object",
@@ -3385,8 +3385,8 @@ const Tc = fe, ms = K, Yt = N, hs = Tt, Ic = {
3385
3385
  const i = (0, ms.allSchemaProperties)(r);
3386
3386
  for (const y of i)
3387
3387
  a.definedProperties.add(y);
3388
- a.opts.unevaluated && i.length && a.props !== !0 && (a.props = Yt.mergeEvaluated.props(t, (0, Yt.toHash)(i), a.props));
3389
- const d = i.filter((y) => !(0, Yt.alwaysValidSchema)(a, r[y]));
3388
+ a.opts.unevaluated && i.length && a.props !== !0 && (a.props = Zt.mergeEvaluated.props(t, (0, Zt.toHash)(i), a.props));
3389
+ const d = i.filter((y) => !(0, Zt.alwaysValidSchema)(a, r[y]));
3390
3390
  if (d.length === 0)
3391
3391
  return;
3392
3392
  const u = t.name("valid");
@@ -3572,18 +3572,18 @@ function vs(e, t) {
3572
3572
  return r !== void 0 && !(0, wn.alwaysValidSchema)(e, r);
3573
3573
  }
3574
3574
  Br.default = Hc;
3575
- var Dr = {};
3576
- Object.defineProperty(Dr, "__esModule", { value: !0 });
3577
- const Bc = N, Dc = {
3575
+ var Qr = {};
3576
+ Object.defineProperty(Qr, "__esModule", { value: !0 });
3577
+ const Bc = N, Qc = {
3578
3578
  keyword: ["then", "else"],
3579
3579
  schemaType: ["object", "boolean"],
3580
3580
  code({ keyword: e, parentSchema: t, it: r }) {
3581
3581
  t.if === void 0 && (0, Bc.checkStrictMode)(r, `"${e}" without "if" is ignored`);
3582
3582
  }
3583
3583
  };
3584
- Dr.default = Dc;
3584
+ Qr.default = Qc;
3585
3585
  Object.defineProperty(Vr, "__esModule", { value: !0 });
3586
- const Qc = Xe, Xc = Fr, Yc = Ye, Zc = Kr, Wc = Ar, xc = $n, el = qr, tl = Tt, rl = zr, sl = Ur, nl = Lr, ol = Gr, al = Jr, il = Hr, cl = Br, ll = Dr;
3586
+ const Xc = Ye, Yc = Fr, Zc = Ze, Dc = Kr, Wc = Ar, xc = $n, el = qr, tl = Tt, rl = zr, sl = Ur, nl = Lr, ol = Gr, al = Jr, il = Hr, cl = Br, ll = Qr;
3587
3587
  function dl(e = !1) {
3588
3588
  const t = [
3589
3589
  // any
@@ -3600,14 +3600,14 @@ function dl(e = !1) {
3600
3600
  rl.default,
3601
3601
  sl.default
3602
3602
  ];
3603
- return e ? t.push(Xc.default, Zc.default) : t.push(Qc.default, Yc.default), t.push(Wc.default), t;
3603
+ return e ? t.push(Yc.default, Dc.default) : t.push(Xc.default, Zc.default), t.push(Wc.default), t;
3604
3604
  }
3605
3605
  Vr.default = dl;
3606
- var Qr = {}, Xr = {};
3607
- Object.defineProperty(Xr, "__esModule", { value: !0 });
3608
- const D = A, ul = {
3609
- message: ({ schemaCode: e }) => (0, D.str)`must match format "${e}"`,
3610
- params: ({ schemaCode: e }) => (0, D._)`{format: ${e}}`
3606
+ var Xr = {}, Yr = {};
3607
+ Object.defineProperty(Yr, "__esModule", { value: !0 });
3608
+ const Q = A, ul = {
3609
+ message: ({ schemaCode: e }) => (0, Q.str)`must match format "${e}"`,
3610
+ params: ({ schemaCode: e }) => (0, Q._)`{format: ${e}}`
3611
3611
  }, fl = {
3612
3612
  keyword: "format",
3613
3613
  type: ["number", "string"],
@@ -3623,14 +3623,14 @@ const D = A, ul = {
3623
3623
  const g = r.scopeValue("formats", {
3624
3624
  ref: y.formats,
3625
3625
  code: u.code.formats
3626
- }), v = r.const("fDef", (0, D._)`${g}[${i}]`), h = r.let("fType"), f = r.let("format");
3627
- r.if((0, D._)`typeof ${v} == "object" && !(${v} instanceof RegExp)`, () => r.assign(h, (0, D._)`${v}.type || "string"`).assign(f, (0, D._)`${v}.validate`), () => r.assign(h, (0, D._)`"string"`).assign(f, v)), e.fail$data((0, D.or)($(), P()));
3626
+ }), v = r.const("fDef", (0, Q._)`${g}[${i}]`), h = r.let("fType"), f = r.let("format");
3627
+ r.if((0, Q._)`typeof ${v} == "object" && !(${v} instanceof RegExp)`, () => r.assign(h, (0, Q._)`${v}.type || "string"`).assign(f, (0, Q._)`${v}.validate`), () => r.assign(h, (0, Q._)`"string"`).assign(f, v)), e.fail$data((0, Q.or)($(), P()));
3628
3628
  function $() {
3629
- return u.strictSchema === !1 ? D.nil : (0, D._)`${i} && !${f}`;
3629
+ return u.strictSchema === !1 ? Q.nil : (0, Q._)`${i} && !${f}`;
3630
3630
  }
3631
3631
  function P() {
3632
- const j = m.$async ? (0, D._)`(${v}.async ? await ${f}(${s}) : ${f}(${s}))` : (0, D._)`${f}(${s})`, C = (0, D._)`(typeof ${f} == "function" ? ${j} : ${f}.test(${s}))`;
3633
- return (0, D._)`${f} && ${f} !== true && ${h} === ${t} && !${C}`;
3632
+ const j = m.$async ? (0, Q._)`(${v}.async ? await ${f}(${s}) : ${f}(${s}))` : (0, Q._)`${f}(${s})`, C = (0, Q._)`(typeof ${f} == "function" ? ${j} : ${f}.test(${s}))`;
3633
+ return (0, Q._)`${f} && ${f} !== true && ${h} === ${t} && !${C}`;
3634
3634
  }
3635
3635
  }
3636
3636
  function E() {
@@ -3654,28 +3654,28 @@ const D = A, ul = {
3654
3654
  }
3655
3655
  }
3656
3656
  function P(C) {
3657
- const U = C instanceof RegExp ? (0, D.regexpCode)(C) : u.code.formats ? (0, D._)`${u.code.formats}${(0, D.getProperty)(a)}` : void 0, J = r.scopeValue("formats", { key: a, ref: C, code: U });
3658
- return typeof C == "object" && !(C instanceof RegExp) ? [C.type || "string", C.validate, (0, D._)`${J}.validate`] : ["string", C, J];
3657
+ const U = C instanceof RegExp ? (0, Q.regexpCode)(C) : u.code.formats ? (0, Q._)`${u.code.formats}${(0, Q.getProperty)(a)}` : void 0, J = r.scopeValue("formats", { key: a, ref: C, code: U });
3658
+ return typeof C == "object" && !(C instanceof RegExp) ? [C.type || "string", C.validate, (0, Q._)`${J}.validate`] : ["string", C, J];
3659
3659
  }
3660
3660
  function j() {
3661
3661
  if (typeof g == "object" && !(g instanceof RegExp) && g.async) {
3662
3662
  if (!m.$async)
3663
3663
  throw new Error("async format in sync schema");
3664
- return (0, D._)`await ${f}(${s})`;
3664
+ return (0, Q._)`await ${f}(${s})`;
3665
3665
  }
3666
- return typeof h == "function" ? (0, D._)`${f}(${s})` : (0, D._)`${f}.test(${s})`;
3666
+ return typeof h == "function" ? (0, Q._)`${f}(${s})` : (0, Q._)`${f}.test(${s})`;
3667
3667
  }
3668
3668
  }
3669
3669
  }
3670
3670
  };
3671
- Xr.default = fl;
3672
- Object.defineProperty(Qr, "__esModule", { value: !0 });
3673
- const ml = Xr, hl = [ml.default];
3674
- Qr.default = hl;
3675
- var De = {};
3676
- Object.defineProperty(De, "__esModule", { value: !0 });
3677
- De.contentVocabulary = De.metadataVocabulary = void 0;
3678
- De.metadataVocabulary = [
3671
+ Yr.default = fl;
3672
+ Object.defineProperty(Xr, "__esModule", { value: !0 });
3673
+ const ml = Yr, hl = [ml.default];
3674
+ Xr.default = hl;
3675
+ var Qe = {};
3676
+ Object.defineProperty(Qe, "__esModule", { value: !0 });
3677
+ Qe.contentVocabulary = Qe.metadataVocabulary = void 0;
3678
+ Qe.metadataVocabulary = [
3679
3679
  "title",
3680
3680
  "description",
3681
3681
  "default",
@@ -3684,13 +3684,13 @@ De.metadataVocabulary = [
3684
3684
  "writeOnly",
3685
3685
  "examples"
3686
3686
  ];
3687
- De.contentVocabulary = [
3687
+ Qe.contentVocabulary = [
3688
3688
  "contentMediaType",
3689
3689
  "contentEncoding",
3690
3690
  "contentSchema"
3691
3691
  ];
3692
3692
  Object.defineProperty(gr, "__esModule", { value: !0 });
3693
- const pl = wr, yl = Er, _l = Vr, vl = Qr, $s = De, $l = [
3693
+ const pl = wr, yl = Er, _l = Vr, vl = Xr, $s = Qe, $l = [
3694
3694
  pl.default,
3695
3695
  yl.default,
3696
3696
  (0, _l.default)(),
@@ -3699,15 +3699,15 @@ const pl = wr, yl = Er, _l = Vr, vl = Qr, $s = De, $l = [
3699
3699
  $s.contentVocabulary
3700
3700
  ];
3701
3701
  gr.default = $l;
3702
- var Yr = {}, It = {};
3702
+ var Zr = {}, It = {};
3703
3703
  Object.defineProperty(It, "__esModule", { value: !0 });
3704
3704
  It.DiscrError = void 0;
3705
3705
  var gs;
3706
3706
  (function(e) {
3707
3707
  e.Tag = "tag", e.Mapping = "mapping";
3708
3708
  })(gs || (It.DiscrError = gs = {}));
3709
- Object.defineProperty(Yr, "__esModule", { value: !0 });
3710
- const Le = A, cr = It, ws = re, gl = Qe, wl = N, bl = {
3709
+ Object.defineProperty(Zr, "__esModule", { value: !0 });
3710
+ const Le = A, cr = It, ws = re, gl = Xe, wl = N, bl = {
3711
3711
  message: ({ params: { discrError: e, tagName: t } }) => e === cr.DiscrError.Tag ? `tag "${t}" must be string` : `value of tag "${t}" must be in oneOf`,
3712
3712
  params: ({ params: { discrError: e, tag: t, tagName: r } }) => (0, Le._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`
3713
3713
  }, El = {
@@ -3778,7 +3778,7 @@ const Le = A, cr = It, ws = re, gl = Qe, wl = N, bl = {
3778
3778
  }
3779
3779
  }
3780
3780
  };
3781
- Yr.default = El;
3781
+ Zr.default = El;
3782
3782
  const Sl = "http://json-schema.org/draft-07/schema#", Pl = "http://json-schema.org/draft-07/schema#", kl = "Core schema meta-schema", Nl = {
3783
3783
  schemaArray: {
3784
3784
  type: "array",
@@ -4022,7 +4022,7 @@ const Sl = "http://json-schema.org/draft-07/schema#", Pl = "http://json-schema.o
4022
4022
  };
4023
4023
  (function(e, t) {
4024
4024
  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;
4025
- const r = Vs, s = gr, n = Yr, a = Rl, i = ["/properties"], d = "http://json-schema.org/draft-07/schema";
4025
+ const r = Vs, s = gr, n = Zr, a = Rl, i = ["/properties"], d = "http://json-schema.org/draft-07/schema";
4026
4026
  class u extends r.default {
4027
4027
  _addVocabularies() {
4028
4028
  super._addVocabularies(), s.default.forEach((g) => this.addVocabulary(g)), this.opts.discriminator && this.addKeyword(n.default);
@@ -4060,24 +4060,26 @@ const Sl = "http://json-schema.org/draft-07/schema#", Pl = "http://json-schema.o
4060
4060
  Object.defineProperty(t, "ValidationError", { enumerable: !0, get: function() {
4061
4061
  return y.default;
4062
4062
  } });
4063
- var b = Qe;
4063
+ var b = Xe;
4064
4064
  Object.defineProperty(t, "MissingRefError", { enumerable: !0, get: function() {
4065
4065
  return b.default;
4066
4066
  } });
4067
4067
  })(tr, tr.exports);
4068
4068
  var Ol = tr.exports;
4069
- const Tl = /* @__PURE__ */ On(Ol), pd = (e) => Ve(Ln, e), Il = (e) => Ve(Zr, e), yd = (e) => Ve(Un, e), _d = (e) => Ve(Ct, e), Ml = (e, t = 2e3) => {
4069
+ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => Ve(Ln, e), Il = (e) => Ve(Dr, e), yd = (e) => Ve(Un, e), _d = (e) => Ve(Ct, e), Ml = (e, t = 2e3) => {
4070
4070
  const [r, s] = de(e), n = Fn(null), a = Il((u) => u.getActionStatus), i = ke(() => e == null ? void 0 : e.task_id, [e == null ? void 0 : e.task_id]), d = ke(() => e == null ? void 0 : e.actionId, [e == null ? void 0 : e.actionId]);
4071
4071
  return Wt(() => {
4072
4072
  if ((e == null ? void 0 : e.outcome) !== "pending" || !i) return;
4073
4073
  let u = !1;
4074
4074
  const l = async () => {
4075
+ var y;
4075
4076
  const m = await a(d, i);
4076
4077
  if (!m)
4077
4078
  s({ outcome: "failure", done: !0 });
4078
- else if (m.outcome === "success" || m.outcome === "failure")
4079
- s({ ...m, done: !0 });
4080
- else {
4079
+ else if (m.outcome === "success" || m.outcome === "failure") {
4080
+ const b = { ...m, done: !0 };
4081
+ s(b), (y = e == null ? void 0 : e.onComplete) == null || y.call(e, { ...e, ...b });
4082
+ } else {
4081
4083
  if (u) return;
4082
4084
  s({ ...m }), n.current = setTimeout(l, t);
4083
4085
  }
@@ -4085,7 +4087,7 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => Ve(Ln, e), Il = (e) => Ve(Zr, e),
4085
4087
  return l(), () => {
4086
4088
  u = !0, n.current && clearTimeout(n.current);
4087
4089
  };
4088
- }, [d, a, t, e == null ? void 0 : e.outcome, i]), Wt(() => {
4090
+ }, [d, a, t, e, e == null ? void 0 : e.outcome, i]), Wt(() => {
4089
4091
  s(e);
4090
4092
  }, [e]), ke(
4091
4093
  () => e || r ? { ...e, ...r } : void 0,
@@ -4106,7 +4108,7 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => Ve(Ln, e), Il = (e) => Ve(Zr, e),
4106
4108
  /* @__PURE__ */ V(Gn, { size: "small", classification: n.action.classification })
4107
4109
  ] }),
4108
4110
  /* @__PURE__ */ V(Pe, { variant: "body1", children: n.action.summary }),
4109
- /* @__PURE__ */ V(Zt, { flexItem: !0 }),
4111
+ /* @__PURE__ */ V(Dt, { flexItem: !0 }),
4110
4112
  a ? /* @__PURE__ */ V(lt, { children: /* @__PURE__ */ V(Jn, { result: n }) }) : /* @__PURE__ */ W(se, { flex: 1, sx: { pt: 2, alignItems: "center" }, spacing: 1, children: [
4111
4113
  n.summary && /* @__PURE__ */ V(Pe, { variant: "caption", children: n.summary }),
4112
4114
  /* @__PURE__ */ V(
@@ -4125,7 +4127,7 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => Ve(Ln, e), Il = (e) => Ve(Zr, e),
4125
4127
  /* @__PURE__ */ V(st, { variant: "outlined", color: "error", onClick: t, children: s("close") })
4126
4128
  ] })
4127
4129
  ] }) }) }) }) : null;
4128
- }, Fl = Ns(Vl), Kl = new Tl({ removeAdditional: !0, coerceTypes: !0, strict: !1 }), Zr = Kn(null), vd = ({
4130
+ }, Fl = Ns(Vl), Kl = new Tl({ removeAdditional: !0, coerceTypes: !0, strict: !1 }), Dr = Kn(null), vd = ({
4129
4131
  baseURL: e,
4130
4132
  children: t,
4131
4133
  classification: r,
@@ -4150,10 +4152,10 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => Ve(Ln, e), Il = (e) => Ve(Zr, e),
4150
4152
  [r]
4151
4153
  ), ne = je(
4152
4154
  async (z, H, x, Fe) => {
4153
- const { forceMenu: Ke, onComplete: be, onCancel: Ae, skipMenu: k, skipResultModal: p, timeout: S, includeContext: _, extraContext: o } = {
4155
+ const { forceMenu: Ke, onComplete: _e, onCancel: Ae, skipMenu: k, skipResultModal: p, timeout: S, includeContext: _, extraContext: o } = {
4154
4156
  forceMenu: !1,
4155
- skipMenu: !1,
4156
4157
  skipResultModal: !1,
4158
+ skipMenu: !1,
4157
4159
  onComplete: null,
4158
4160
  onCancel: null,
4159
4161
  timeout: null,
@@ -4171,7 +4173,7 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => Ve(Ln, e), Il = (e) => Ve(Zr, e),
4171
4173
  timestamp: Hn().toISOString(),
4172
4174
  url: window.location,
4173
4175
  language: (d == null ? void 0 : d.language) ?? "en"
4174
- }), Dn(o) || (q = {
4176
+ }), Qn(o) || (q = {
4175
4177
  ...q ?? {},
4176
4178
  ...o
4177
4179
  }), $(!0), !R(O) || Ke) {
@@ -4191,7 +4193,7 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => Ve(Ln, e), Il = (e) => Ve(Zr, e),
4191
4193
  params: O ?? {},
4192
4194
  skipResultModal: p,
4193
4195
  context: q,
4194
- onComplete: be,
4196
+ onComplete: _e,
4195
4197
  onCancel: Ae,
4196
4198
  timeout: S
4197
4199
  });
@@ -4206,14 +4208,14 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => Ve(Ln, e), Il = (e) => Ve(Zr, e),
4206
4208
  { timeout: S },
4207
4209
  C
4208
4210
  ), B = { ...I, actionId: z, action: w, params: O };
4209
- be == null || be(B), b((_e) => {
4210
- const Ze = H.map((ve) => J(ve.type, ve.value, ve.classification));
4211
+ I.outcome !== "pending" && (_e == null || _e(B)), b((ve) => {
4212
+ const De = H.map(($e) => J($e.type, $e.value, $e.classification));
4211
4213
  return {
4212
- ..._e,
4213
- ...Ze.reduce(
4214
- (ve, qe) => ({
4215
- ...ve,
4216
- [qe]: [..._e[qe] ?? [], B]
4214
+ ...ve,
4215
+ ...De.reduce(
4216
+ ($e, qe) => ({
4217
+ ...$e,
4218
+ [qe]: [...ve[qe] ?? [], B]
4217
4219
  }),
4218
4220
  {}
4219
4221
  )
@@ -4239,7 +4241,7 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => Ve(Ln, e), Il = (e) => Ve(Zr, e),
4239
4241
  }
4240
4242
  }
4241
4243
  })
4242
- ), I.outcome === "success" && m(null), I.outcome === "pending" && (h({ ...I, actionId: z, action: w }), p || g(!0), m(null)), I.format && (h({ ...I, actionId: z, action: w }), I.format !== "pivot" && !p ? g(!0) : window.open(I.output, "_blank", "noreferrer"));
4244
+ ), I.outcome === "success" && m(null), I.outcome === "pending" && (h({ ...I, actionId: z, action: w, onComplete: _e }), p || g(!0), m(null)), I.format && (h({ ...I, actionId: z, action: w }), I.format !== "pivot" && !p ? g(!0) : window.open(I.output, "_blank", "noreferrer"));
4243
4245
  } catch (I) {
4244
4246
  pt(
4245
4247
  new CustomEvent(ht, {
@@ -4273,7 +4275,7 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => Ve(Ln, e), Il = (e) => Ve(Zr, e),
4273
4275
  ), me = je(() => {
4274
4276
  var z;
4275
4277
  (z = l == null ? void 0 : l.onCancel) == null || z.call(l), m(null), $(!1);
4276
- }, [l == null ? void 0 : l.onCancel]), we = je(
4278
+ }, [l == null ? void 0 : l.onCancel]), be = je(
4277
4279
  (z, H, x) => y[J(z, H, x)] ?? [],
4278
4280
  [y, J]
4279
4281
  ), ie = ke(
@@ -4282,13 +4284,13 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => Ve(Ln, e), Il = (e) => Ve(Zr, e),
4282
4284
  executeAction: ne,
4283
4285
  cancelAction: me,
4284
4286
  getActionStatus: ae,
4285
- getActionResults: we,
4287
+ getActionResults: be,
4286
4288
  loading: f,
4287
4289
  refreshActions: U
4288
4290
  }),
4289
- [P, me, ne, we, ae, f, U]
4291
+ [P, me, ne, be, ae, f, U]
4290
4292
  );
4291
- return /* @__PURE__ */ W(Zr.Provider, { value: ie, children: [
4293
+ return /* @__PURE__ */ W(Dr.Provider, { value: ie, children: [
4292
4294
  t,
4293
4295
  /* @__PURE__ */ W(lt, { children: [
4294
4296
  l && /* @__PURE__ */ V(Ul, { runningActionData: l }),
@@ -4302,7 +4304,7 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => Ve(Ln, e), Il = (e) => Ve(Zr, e),
4302
4304
  )
4303
4305
  ] })
4304
4306
  ] });
4305
- }, Al = () => An(Zr), ql = En.map((e) => ({
4307
+ }, Al = () => An(Dr), ql = En.map((e) => ({
4306
4308
  ...e,
4307
4309
  renderer: ({ ...t }) => /* @__PURE__ */ V(lt, { children: /* @__PURE__ */ V(e.renderer, { ...t }) })
4308
4310
  })), zl = ({ runningActionData: e }) => {
@@ -4394,7 +4396,7 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => Ve(Ln, e), Il = (e) => Ve(Zr, e),
4394
4396
  }
4395
4397
  ) })
4396
4398
  ] }),
4397
- /* @__PURE__ */ V(Zt, { orientation: "horizontal", variant: "middle" }),
4399
+ /* @__PURE__ */ V(Dt, { orientation: "horizontal", variant: "middle" }),
4398
4400
  /* @__PURE__ */ V(xe, { pt: 1.5 }),
4399
4401
  /* @__PURE__ */ W(se, { flexGrow: 1, direction: "row", spacing: 1, children: [
4400
4402
  /* @__PURE__ */ W(se, { direction: "column", flexGrow: 1, children: [
@@ -4429,7 +4431,7 @@ const Tl = /* @__PURE__ */ On(Ol), pd = (e) => Ve(Ln, e), Il = (e) => Ve(Zr, e),
4429
4431
  ] })
4430
4432
  ] }),
4431
4433
  /* @__PURE__ */ V(jn, { orientation: "horizontal", in: m, unmountOnExit: !0, mountOnEnter: !0, children: /* @__PURE__ */ W(se, { direction: "row", height: "100%", spacing: 1, children: [
4432
- /* @__PURE__ */ V(Zt, { orientation: "vertical" }),
4434
+ /* @__PURE__ */ V(Dt, { orientation: "vertical" }),
4433
4435
  /* @__PURE__ */ W(se, { children: [
4434
4436
  /* @__PURE__ */ V(Pe, { variant: "h5", children: s("action.data") }),
4435
4437
  /* @__PURE__ */ V(xe, { width: 600, height: "100%", children: /* @__PURE__ */ V(Rn, { data: u, slotProps: { stack: { height: "100%" }, json: { name: !1 } } }) })
@@ -4455,6 +4457,6 @@ export {
4455
4457
  _d as d,
4456
4458
  wo as e,
4457
4459
  Ml as f,
4458
- Zr as g,
4460
+ Dr as g,
4459
4461
  Al as u
4460
4462
  };