@blue-labs/language 5.0.0-rc.2 → 5.0.0-rc.3

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.
@@ -8,17 +8,17 @@ import { sha256 as Ar } from "js-sha256";
8
8
  import nt from "crypto";
9
9
  import "base32.js";
10
10
  import Ee from "js-yaml";
11
- class D extends de {
11
+ class x extends de {
12
12
  constructor(e) {
13
13
  super(e);
14
14
  }
15
15
  }
16
- class V extends de {
16
+ class R extends de {
17
17
  constructor(e) {
18
18
  super(e);
19
19
  }
20
20
  }
21
- const he = "name", pe = "description", j = "type", fe = "itemType", me = "keyType", ye = "valueType", re = "value", Pe = "items", b = "blueId", Ze = "blue", bt = "constraints", St = "properties", Vr = "positional", Mr = "append-only", ge = "$previous", Xe = "$pos", Ct = "$replace", ve = "$empty", Xt = [
21
+ const he = "name", pe = "description", j = "type", fe = "itemType", me = "keyType", ye = "valueType", re = "value", Pe = "items", b = "blueId", Ze = "blue", bt = "constraints", St = "properties", Vr = "positional", Mr = "append-only", ge = "$previous", Xe = "$pos", Ct = "$replace", Ie = "$empty", Xt = [
22
22
  he,
23
23
  pe,
24
24
  j,
@@ -37,7 +37,7 @@ const he = "name", pe = "description", j = "type", fe = "itemType", me = "keyTyp
37
37
  ge,
38
38
  Xe,
39
39
  Ct,
40
- ve
40
+ Ie
41
41
  ], Jt = "Text", Qt = "Double", er = "Integer", tr = "Boolean", rr = "List", ir = "Dictionary", Je = [
42
42
  Jt,
43
43
  Qt,
@@ -107,7 +107,7 @@ const he = "name", pe = "description", j = "type", fe = "itemType", me = "keyTyp
107
107
  DOUBLE_TYPE_BLUE_ID: F,
108
108
  INTEGER_TYPE: er,
109
109
  INTEGER_TYPE_BLUE_ID: k,
110
- LIST_CONTROL_EMPTY: ve,
110
+ LIST_CONTROL_EMPTY: Ie,
111
111
  LIST_CONTROL_POS: Xe,
112
112
  LIST_CONTROL_PREVIOUS: ge,
113
113
  LIST_CONTROL_REPLACE: Ct,
@@ -314,10 +314,10 @@ class d {
314
314
  const e = this.type?.getBlueId();
315
315
  if (p(e) && p(this.value)) {
316
316
  if (e === k && typeof this.value == "string")
317
- return new V(this.value);
317
+ return new R(this.value);
318
318
  if (e === F && typeof this.value == "string") {
319
- const t = new D(this.value), r = parseFloat(t.toString());
320
- return new D(r.toString());
319
+ const t = new x(this.value), r = parseFloat(t.toString());
320
+ return new x(r.toString());
321
321
  } else if (e === q && typeof this.value == "string")
322
322
  return this.value.toLowerCase() === "true";
323
323
  }
@@ -327,7 +327,7 @@ class d {
327
327
  return this.value;
328
328
  }
329
329
  setValue(e) {
330
- return typeof e == "number" ? e % 1 === 0 ? this.value = new V(e.toString()) : this.value = new D(e.toString()) : this.value = e, this;
330
+ return typeof e == "number" ? e % 1 === 0 ? this.value = new R(e.toString()) : this.value = new x(e.toString()) : this.value = e, this;
331
331
  }
332
332
  getItems() {
333
333
  return this.items;
@@ -455,7 +455,7 @@ class d {
455
455
  }
456
456
  getAsInteger(e) {
457
457
  const t = this.get(e);
458
- if (t instanceof V || t instanceof D)
458
+ if (t instanceof R || t instanceof x)
459
459
  return t.toNumber();
460
460
  throw new Error(
461
461
  `Value at path ${e} is not a BigInteger or BigDecimal: ${t}`
@@ -554,15 +554,15 @@ const gn = m.string().max(G.MAX_BLUE_ID_LENGTH, {
554
554
  name: m.string().optional(),
555
555
  description: m.string().optional(),
556
556
  type: mt.optional()
557
- }), vn = rt.extend({
558
- value: m.string().optional()
559
557
  }), In = rt.extend({
558
+ value: m.string().optional()
559
+ }), vn = rt.extend({
560
560
  value: m.number().optional()
561
561
  }), Tn = rt.extend({
562
562
  value: m.boolean().optional()
563
563
  }), Pn = rt.extend({
564
564
  items: m.array(m.string()).optional()
565
- }), L = (n) => n instanceof de, X = (n) => L(n) && n instanceof V, yt = (n) => L(n) && n instanceof D, Dr = m.lazy(
565
+ }), D = (n) => n instanceof de, X = (n) => D(n) && n instanceof R, yt = (n) => D(n) && n instanceof x, Dr = m.lazy(
566
566
  () => m.record(gt)
567
567
  ), xr = m.lazy(
568
568
  () => m.union([
@@ -576,7 +576,7 @@ const gn = m.string().max(G.MAX_BLUE_ID_LENGTH, {
576
576
  xr,
577
577
  m.instanceof(de)
578
578
  ])
579
- ), H = (n) => Yt(n) && !Wt(n) && !Gt(n) && !L(n), or = (n) => Wt(n) || Gt(n), Bn = (n) => or(n) || H(n) || L(n) || Cr(n), Mt = [
579
+ ), H = (n) => Yt(n) && !Wt(n) && !Gt(n) && !D(n), or = (n) => Wt(n) || Gt(n), Bn = (n) => or(n) || H(n) || D(n) || Cr(n), Mt = [
580
580
  "required",
581
581
  "minLength",
582
582
  "maxLength",
@@ -641,9 +641,9 @@ class it {
641
641
  return e.setEnum(this.enumValues?.map((t) => t.clone())), e;
642
642
  }
643
643
  }
644
- const zr = new V(
644
+ const zr = new R(
645
645
  Number.MIN_SAFE_INTEGER.toString()
646
- ), qr = new V(
646
+ ), qr = new R(
647
647
  Number.MAX_SAFE_INTEGER.toString()
648
648
  );
649
649
  class y {
@@ -806,13 +806,13 @@ class y {
806
806
  return null;
807
807
  if (typeof e == "string")
808
808
  return e;
809
- if (typeof e == "number" || L(e)) {
809
+ if (typeof e == "number" || D(e)) {
810
810
  if (typeof e == "number" && Number.isInteger(e) && !Number.isSafeInteger(e))
811
811
  throw new Error(
812
812
  "Unquoted integers outside [-9007199254740991, 9007199254740991] must be quoted and explicitly typed as Integer."
813
813
  );
814
814
  if (X(e) || Number.isSafeInteger(e)) {
815
- const t = new V(e.toString());
815
+ const t = new R(e.toString());
816
816
  if (t.lt(zr) || t.gt(qr))
817
817
  throw new Error(
818
818
  "Unquoted integers outside [-9007199254740991, 9007199254740991] must be quoted and explicitly typed as Integer."
@@ -820,7 +820,7 @@ class y {
820
820
  return t;
821
821
  } else {
822
822
  const t = parseFloat(e.toString());
823
- return new D(t.toString());
823
+ return new x(t.toString());
824
824
  }
825
825
  } else if (typeof e == "boolean")
826
826
  return e;
@@ -919,7 +919,7 @@ class y {
919
919
  `schema.${e} must be numeric or an explicit numeric scalar node.`
920
920
  );
921
921
  }
922
- if (typeof t != "number" && !L(t))
922
+ if (typeof t != "number" && !D(t))
923
923
  throw new Error(
924
924
  `schema.${e} must be numeric or an explicit numeric scalar node.`
925
925
  );
@@ -927,8 +927,34 @@ class y {
927
927
  static isExplicitNumericValue(e) {
928
928
  if (!y.isExplicitSchemaScalar(e, !0))
929
929
  return !1;
930
- const t = e.getValue(), r = e.getType();
931
- return L(t) || typeof t == "number" ? r === void 0 || y.isNumericType(r) : !1;
930
+ const t = e.getRawValue(), r = e.getType();
931
+ return r === void 0 ? D(t) || typeof t == "number" : y.isIntegerType(r) ? y.isIntegerSchemaValue(t) : y.isDoubleType(r) ? y.isDoubleSchemaValue(t) : !1;
932
+ }
933
+ static isIntegerSchemaValue(e) {
934
+ if (typeof e == "number")
935
+ return Number.isInteger(e);
936
+ if (D(e))
937
+ return e.mod(1).eq(0);
938
+ if (typeof e == "string")
939
+ try {
940
+ return new R(e).mod(1).eq(0);
941
+ } catch {
942
+ return !1;
943
+ }
944
+ return !1;
945
+ }
946
+ static isDoubleSchemaValue(e) {
947
+ if (typeof e == "number")
948
+ return Number.isFinite(e);
949
+ if (D(e))
950
+ return !0;
951
+ if (typeof e == "string")
952
+ try {
953
+ return new x(e), !0;
954
+ } catch {
955
+ return !1;
956
+ }
957
+ return !1;
932
958
  }
933
959
  static isExplicitSchemaScalar(e, t) {
934
960
  const r = e.getType();
@@ -937,8 +963,11 @@ class y {
937
963
  static isScalarType(e) {
938
964
  return y.isCoreType(e, $, "Text") || y.isCoreType(e, k, "Integer") || y.isCoreType(e, F, "Double") || y.isCoreType(e, q, "Boolean");
939
965
  }
940
- static isNumericType(e) {
941
- return y.isCoreType(e, k, "Integer") || y.isCoreType(e, F, "Double");
966
+ static isIntegerType(e) {
967
+ return y.isCoreType(e, k, "Integer");
968
+ }
969
+ static isDoubleType(e) {
970
+ return y.isCoreType(e, F, "Double");
942
971
  }
943
972
  static isCoreType(e, t, r) {
944
973
  return e.getBlueId() === t || e.isInlineValue() && e.getValue() === r;
@@ -964,7 +993,7 @@ function Gr() {
964
993
  }
965
994
  var Hr = Gr();
966
995
  const Yr = /* @__PURE__ */ Kr(Hr);
967
- class vt {
996
+ class It {
968
997
  static canonicalize(e) {
969
998
  return Yr(e);
970
999
  }
@@ -1003,7 +1032,7 @@ class Wr {
1003
1032
  return Le.encode(r);
1004
1033
  }
1005
1034
  canonicalizeInput(e) {
1006
- const t = vt.canonicalize(e);
1035
+ const t = It.canonicalize(e);
1007
1036
  if (typeof t != "string")
1008
1037
  throw new Error("Canonized value must be a string");
1009
1038
  return t;
@@ -1032,10 +1061,10 @@ class Wr {
1032
1061
  }
1033
1062
  class cr {
1034
1063
  static toCanonicalDoubleValue(e) {
1035
- const t = e instanceof D || e instanceof V ? e.toNumber() : typeof e == "number" ? e : typeof e == "string" ? Number(e) : Number.NaN;
1064
+ const t = e instanceof x || e instanceof R ? e.toNumber() : typeof e == "number" ? e : typeof e == "string" ? Number(e) : Number.NaN;
1036
1065
  if (!Number.isFinite(t))
1037
1066
  throw new Error("Double value must be finite.");
1038
- return new D(t.toString());
1067
+ return new x(t.toString());
1039
1068
  }
1040
1069
  static isExactBinary64Multiple(e, t) {
1041
1070
  const r = be.fromNumber(
@@ -1046,7 +1075,7 @@ class cr {
1046
1075
  return r.dividedByIsInteger(i);
1047
1076
  }
1048
1077
  static toFiniteNumber(e) {
1049
- const t = e instanceof D || e instanceof V ? e.toNumber() : typeof e == "number" ? e : Number.NaN;
1078
+ const t = e instanceof x || e instanceof R ? e.toNumber() : typeof e == "number" ? e : Number.NaN;
1050
1079
  if (!Number.isFinite(t))
1051
1080
  throw new Error("Double value must be finite.");
1052
1081
  return t;
@@ -1088,7 +1117,7 @@ function Zr(n, e) {
1088
1117
  function Ut(n) {
1089
1118
  return n < 0n ? -n : n;
1090
1119
  }
1091
- const Xr = new V(Number.MIN_SAFE_INTEGER.toString()), Jr = new V(Number.MAX_SAFE_INTEGER.toString());
1120
+ const Xr = new R(Number.MIN_SAFE_INTEGER.toString()), Jr = new R(Number.MAX_SAFE_INTEGER.toString());
1092
1121
  class le {
1093
1122
  static get(e) {
1094
1123
  return this.getNode(e, "/", "root", -1, !1);
@@ -1123,7 +1152,7 @@ class le {
1123
1152
  }
1124
1153
  static getNode(e, t, r, i, s) {
1125
1154
  if (this.validateBlueIdInput(e, t, r, i), r === "list-element" && this.isEmptyPlaceholder(e))
1126
- return { [ve]: !0 };
1155
+ return { [Ie]: !0 };
1127
1156
  if (this.isReferenceOnly(e)) {
1128
1157
  const f = this.validateReferenceBlueId(
1129
1158
  e.getReferenceBlueId(),
@@ -1288,7 +1317,7 @@ class le {
1288
1317
  throw new Error(
1289
1318
  `Direct BlueId input must use { "$empty": true } for empty list placeholders. Path: ${t}`
1290
1319
  );
1291
- if (e.getProperties()?.[ve] !== void 0 && this.validateEmptyPlaceholder(e, t), e.getPreviousBlueId() !== void 0 && i !== 0)
1320
+ if (e.getProperties()?.[Ie] !== void 0 && this.validateEmptyPlaceholder(e, t), e.getPreviousBlueId() !== void 0 && i !== 0)
1292
1321
  throw new Error(
1293
1322
  `"$previous" must appear only as the first list item. Path: ${t}`
1294
1323
  );
@@ -1320,10 +1349,10 @@ class le {
1320
1349
  static handleValue(e, t) {
1321
1350
  if (t === F)
1322
1351
  return cr.toCanonicalDoubleValue(e).toNumber();
1323
- if (e instanceof V || X(e))
1352
+ if (e instanceof R || X(e))
1324
1353
  return e.lt(Xr) || e.gt(Jr) ? e.toString() : e.toNumber();
1325
1354
  const r = e;
1326
- if (r instanceof D || L(r))
1355
+ if (r instanceof x || D(r))
1327
1356
  return r.toNumber();
1328
1357
  if (typeof e == "string" || typeof e == "boolean")
1329
1358
  return e;
@@ -1332,9 +1361,9 @@ class le {
1332
1361
  static inferTypeBlueId(e) {
1333
1362
  if (typeof e == "string")
1334
1363
  return $;
1335
- if (e instanceof V || X(e))
1364
+ if (e instanceof R || X(e))
1336
1365
  return k;
1337
- if (e instanceof D || L(e))
1366
+ if (e instanceof x || D(e))
1338
1367
  return F;
1339
1368
  if (typeof e == "boolean")
1340
1369
  return q;
@@ -1361,7 +1390,7 @@ class le {
1361
1390
  return e.getName() === void 0 && e.getDescription() === void 0 && e.getType() === void 0 && e.getItemType() === void 0 && e.getKeyType() === void 0 && e.getValueType() === void 0 && (e.getValue() === void 0 || e.getValue() === null) && e.getItems() === void 0 && this.ordinaryPropertyKeys(e).length === 0 && e.getContractsNode() === void 0 && e.getReferenceBlueId() === void 0 && e.getSchema() === void 0 && e.getMergePolicy() === void 0 && e.getPreviousBlueId() === void 0 && e.getPosition() === void 0 && e.getBlue() === void 0;
1362
1391
  }
1363
1392
  static isEmptyPlaceholder(e) {
1364
- const t = e.getProperties(), r = t?.[ve];
1393
+ const t = e.getProperties(), r = t?.[Ie];
1365
1394
  return t !== void 0 && Object.keys(t).length === 1 && r !== void 0 && r.getValue() === !0 && r.getItems() === void 0 && Object.keys(r.getProperties() ?? {}).length === 0;
1366
1395
  }
1367
1396
  static validateEmptyPlaceholder(e, t) {
@@ -1541,7 +1570,7 @@ const N = {
1541
1570
  BLUE: "blue",
1542
1571
  ITEMS: "items"
1543
1572
  };
1544
- class A {
1573
+ class V {
1545
1574
  /**
1546
1575
  * Check if a node is empty (has no fields set)
1547
1576
  */
@@ -1579,14 +1608,14 @@ class A {
1579
1608
  * Create an integer node
1580
1609
  */
1581
1610
  static integerNode(e) {
1582
- const t = e instanceof V ? e : new V(e.toString());
1611
+ const t = e instanceof R ? e : new R(e.toString());
1583
1612
  return new d().setType(new d().setBlueId(k)).setValue(t);
1584
1613
  }
1585
1614
  /**
1586
1615
  * Create a double node
1587
1616
  */
1588
1617
  static doubleNode(e) {
1589
- const t = e instanceof D ? e : new D(e.toString());
1618
+ const t = e instanceof x ? e : new x(e.toString());
1590
1619
  return new d().setType(new d().setBlueId(F)).setValue(t);
1591
1620
  }
1592
1621
  /**
@@ -1645,7 +1674,7 @@ class A {
1645
1674
  }
1646
1675
  }
1647
1676
  }
1648
- const lt = "$previous", Me = "$pos", It = "$empty";
1677
+ const lt = "$previous", Me = "$pos", vt = "$empty";
1649
1678
  class B {
1650
1679
  static getMergePolicy(e, t) {
1651
1680
  const r = this.getMergePolicyValue(e);
@@ -1691,15 +1720,15 @@ class B {
1691
1720
  static hasEmptyProperty(e) {
1692
1721
  return Object.prototype.hasOwnProperty.call(
1693
1722
  e.getProperties() ?? {},
1694
- It
1723
+ vt
1695
1724
  );
1696
1725
  }
1697
1726
  static isEmptyItem(e) {
1698
- const t = e.getProperties(), r = t?.[It];
1699
- return t !== void 0 && Object.keys(t).length === 1 && r !== void 0 && A.hasFieldsAndMayHaveFields(
1727
+ const t = e.getProperties(), r = t?.[vt];
1728
+ return t !== void 0 && Object.keys(t).length === 1 && r !== void 0 && V.hasFieldsAndMayHaveFields(
1700
1729
  e,
1701
1730
  /* @__PURE__ */ new Set([N.PROPERTIES])
1702
- ) && A.hasFieldsAndMayHaveFields(
1731
+ ) && V.hasFieldsAndMayHaveFields(
1703
1732
  r,
1704
1733
  /* @__PURE__ */ new Set([N.VALUE]),
1705
1734
  /* @__PURE__ */ new Set([N.TYPE])
@@ -1709,10 +1738,10 @@ class B {
1709
1738
  if (e.getPreviousBlueId() !== void 0)
1710
1739
  return e.getName() === void 0 && e.getDescription() === void 0 && e.getType() === void 0 && e.getItemType() === void 0 && e.getKeyType() === void 0 && e.getValueType() === void 0 && e.getValue() === void 0 && e.getItems() === void 0 && Object.keys(e.getProperties() ?? {}).length === 0;
1711
1740
  const t = e.getProperties();
1712
- return t !== void 0 && Object.keys(t).length === 1 && A.hasFieldsAndMayHaveFields(
1741
+ return t !== void 0 && Object.keys(t).length === 1 && V.hasFieldsAndMayHaveFields(
1713
1742
  e,
1714
1743
  /* @__PURE__ */ new Set([N.PROPERTIES])
1715
- ) && A.hasBlueIdOnly(t[lt]);
1744
+ ) && V.hasBlueIdOnly(t[lt]);
1716
1745
  }
1717
1746
  static getPreviousBlueId(e) {
1718
1747
  if (e.getPreviousBlueId() !== void 0)
@@ -1729,13 +1758,13 @@ class B {
1729
1758
  const t = e.getProperties()?.[Me];
1730
1759
  if (t === void 0)
1731
1760
  return;
1732
- if (!A.hasFieldsAndMayHaveFields(
1761
+ if (!V.hasFieldsAndMayHaveFields(
1733
1762
  t,
1734
1763
  /* @__PURE__ */ new Set([N.VALUE]),
1735
1764
  /* @__PURE__ */ new Set([N.TYPE])
1736
1765
  ))
1737
1766
  throw new Error("$pos must be a non-negative integer value.");
1738
- const r = t.getValue(), i = r instanceof V ? r.toNumber() : typeof r == "number" ? r : void 0;
1767
+ const r = t.getValue(), i = r instanceof R ? r.toNumber() : typeof r == "number" ? r : void 0;
1739
1768
  if (i === void 0 || !Number.isInteger(i) || i < 0)
1740
1769
  throw new Error("$pos must be a non-negative integer value.");
1741
1770
  return i;
@@ -1750,7 +1779,7 @@ class B {
1750
1779
  return r !== void 0 && (delete r[Me], Object.keys(r).length === 0 && t.setProperties(void 0)), t;
1751
1780
  }
1752
1781
  static hasPayloadAfterRemovingPosition(e) {
1753
- return !A.isEmptyNode(this.withoutPosition(e));
1782
+ return !V.isEmptyNode(this.withoutPosition(e));
1754
1783
  }
1755
1784
  static isReplacementPayload(e) {
1756
1785
  return p(e.getValue()) || p(e.getItems()) || p(e.getBlueId());
@@ -1940,7 +1969,7 @@ class K {
1940
1969
  if (p(t))
1941
1970
  return new d().setBlueId(t);
1942
1971
  const r = new d();
1943
- return this.reverseNode(r, e, void 0, !0), A.isEmptyNode(r) ? e.clone() : r;
1972
+ return this.reverseNode(r, e, void 0, !0), V.isEmptyNode(r) ? e.clone() : r;
1944
1973
  }
1945
1974
  reverseItems(e, t, r) {
1946
1975
  const i = t.getItems();
@@ -1980,7 +2009,7 @@ class K {
1980
2009
  i[c],
1981
2010
  !1
1982
2011
  );
1983
- const h = A.isEmptyNode(u) ? r[c].clone() : u;
2012
+ const h = V.isEmptyNode(u) ? r[c].clone() : u;
1984
2013
  l.push(B.createPositionedItem(c, h));
1985
2014
  }
1986
2015
  for (let c = i.length; c < r.length; c++) {
@@ -2009,7 +2038,7 @@ class K {
2009
2038
  a,
2010
2039
  l,
2011
2040
  !1
2012
- ), A.isEmptyNode(c) || (s[o] = c);
2041
+ ), V.isEmptyNode(c) || (s[o] = c);
2013
2042
  }
2014
2043
  Object.keys(s).length > 0 && e.setProperties(s);
2015
2044
  }
@@ -2028,7 +2057,7 @@ class K {
2028
2057
  if (E(e))
2029
2058
  return;
2030
2059
  const t = e.cloneShallow().setName(void 0).setDescription(void 0).setType(void 0).setBlueId(void 0);
2031
- if (!A.isEmptyNode(t))
2060
+ if (!V.isEmptyNode(t))
2032
2061
  return t;
2033
2062
  }
2034
2063
  /**
@@ -2051,8 +2080,8 @@ class K {
2051
2080
  if (p(c)) {
2052
2081
  const h = r.getProperties() || {};
2053
2082
  for (const [f, g] of Object.entries(c)) {
2054
- const v = h[f];
2055
- h[f] = v === void 0 ? g.clone() : this.mergeNodes(v, g);
2083
+ const I = h[f];
2084
+ h[f] = I === void 0 ? g.clone() : this.mergeNodes(I, g);
2056
2085
  }
2057
2086
  r.setProperties(h);
2058
2087
  }
@@ -2145,8 +2174,8 @@ class Ne {
2145
2174
  static validateNode(e, t, r) {
2146
2175
  r.insideItems && this.validateListControlItem(e, t, r.itemIndex ?? 0);
2147
2176
  const i = e.getReferenceBlueId();
2148
- if (i !== void 0 && !A.hasBlueIdOnly(e))
2149
- if (r.insideItems && B.hasPositionProperty(e) && A.hasBlueIdOnly(B.withoutPosition(e)))
2177
+ if (i !== void 0 && !V.hasBlueIdOnly(e))
2178
+ if (r.insideItems && B.hasPositionProperty(e) && V.hasBlueIdOnly(B.withoutPosition(e)))
2150
2179
  B.readPosition(e);
2151
2180
  else {
2152
2181
  const h = this.toPointer(t);
@@ -2235,7 +2264,7 @@ class Ne {
2235
2264
  "The document-level properties key is not part of the Blue language."
2236
2265
  ), Object.fromEntries(
2237
2266
  Object.entries(i).filter(
2238
- ([s]) => !this.RESERVED_PROPERTY_KEYS.has(s) && !(r.insideItems && (s === Me || s === It))
2267
+ ([s]) => !this.RESERVED_PROPERTY_KEYS.has(s) && !(r.insideItems && (s === Me || s === vt))
2239
2268
  )
2240
2269
  );
2241
2270
  }
@@ -2302,7 +2331,7 @@ class T {
2302
2331
  const { strategy: r } = this.normalizeOptions(t), i = e.getValue(), s = this.handleValue(i);
2303
2332
  if (s !== void 0 && r === "simple")
2304
2333
  return s;
2305
- const o = e.getItems()?.map((I) => T.get(I, r));
2334
+ const o = e.getItems()?.map((v) => T.get(v, r));
2306
2335
  if (o !== void 0 && r === "simple")
2307
2336
  return o;
2308
2337
  const a = e.getName(), l = e.getDescription();
@@ -2316,8 +2345,8 @@ class T {
2316
2345
  a !== void 0 && (c[he] = a), l !== void 0 && (c[pe] = l);
2317
2346
  const u = e.getType();
2318
2347
  if (r === "official" && i !== void 0 && u === void 0) {
2319
- const I = this.inferTypeBlueId(i);
2320
- I !== null && (c[j] = { [b]: I });
2348
+ const v = this.inferTypeBlueId(i);
2349
+ v !== null && (c[j] = { [b]: v });
2321
2350
  } else u !== void 0 && (c[j] = T.get(u, r));
2322
2351
  const h = e.getItemType();
2323
2352
  h !== void 0 && (c[fe] = T.get(h, r));
@@ -2325,12 +2354,12 @@ class T {
2325
2354
  f !== void 0 && (c[me] = T.get(f, r));
2326
2355
  const g = e.getValueType();
2327
2356
  g !== void 0 && (c[ye] = T.get(g, r));
2328
- const v = e.getMergePolicy();
2329
- v !== void 0 && (c[Be] = v), s !== void 0 && (c[re] = s), o !== void 0 && (c[Pe] = o);
2357
+ const I = e.getMergePolicy();
2358
+ I !== void 0 && (c[Be] = I), s !== void 0 && (c[re] = s), o !== void 0 && (c[Pe] = o);
2330
2359
  const P = e.getBlueId();
2331
2360
  P !== void 0 && (c[b] = P);
2332
- const x = e.getBlue();
2333
- x !== void 0 && (c[Ze] = T.get(x, r));
2361
+ const L = e.getBlue();
2362
+ L !== void 0 && (c[Ze] = T.get(L, r));
2334
2363
  const z = e.getPreviousBlueId();
2335
2364
  z !== void 0 && (c[ge] = { [b]: z });
2336
2365
  const W = e.getPosition();
@@ -2338,18 +2367,18 @@ class T {
2338
2367
  const J = e.getSchema();
2339
2368
  J !== void 0 && (c[oe] = ti.get(
2340
2369
  J,
2341
- (I) => T.get(I, r),
2342
- (I) => T.handleValue(I)
2370
+ (v) => T.get(v, r),
2371
+ (v) => T.handleValue(v)
2343
2372
  ));
2344
2373
  const Ce = e.getContractsNode();
2345
2374
  Ce !== void 0 && (c[C] = T.get(Ce, r));
2346
2375
  const S = e.getProperties();
2347
- return S !== void 0 && Object.entries(S).forEach(([I, Q]) => {
2348
- c[I] = T.get(Q, r);
2376
+ return S !== void 0 && Object.entries(S).forEach(([v, Q]) => {
2377
+ c[v] = T.get(Q, r);
2349
2378
  }), c;
2350
2379
  }
2351
2380
  static handleValue(e) {
2352
- if (L(e)) {
2381
+ if (D(e)) {
2353
2382
  if (X(e)) {
2354
2383
  const t = new de(Number.MIN_SAFE_INTEGER.toString()), r = new de(Number.MAX_SAFE_INTEGER.toString());
2355
2384
  if (e.lt(t) || e.gt(r))
@@ -2360,7 +2389,7 @@ class T {
2360
2389
  return e;
2361
2390
  }
2362
2391
  static inferTypeBlueId(e) {
2363
- return typeof e == "string" ? $ : L(e) ? X(e) ? k : F : typeof e == "boolean" ? q : null;
2392
+ return typeof e == "string" ? $ : D(e) ? X(e) ? k : F : typeof e == "boolean" ? q : null;
2364
2393
  }
2365
2394
  static normalizeOptions(e) {
2366
2395
  return typeof e == "string" ? {
@@ -2395,10 +2424,10 @@ class O {
2395
2424
  const l = r.getSchema();
2396
2425
  if (l !== void 0) {
2397
2426
  const h = l.clone();
2398
- for (const [g, v] of h.entries())
2427
+ for (const [g, I] of h.entries())
2399
2428
  h.set(
2400
2429
  g,
2401
- O.transform(v, t)
2430
+ O.transform(I, t)
2402
2431
  );
2403
2432
  const f = h.getEnum();
2404
2433
  f !== void 0 && h.setEnum(
@@ -2590,7 +2619,7 @@ function _t(n, e) {
2590
2619
  }
2591
2620
  return t;
2592
2621
  }
2593
- function R(n, e, t) {
2622
+ function A(n, e, t) {
2594
2623
  const r = Ue(n), i = Ue(e), s = t[pr], o = `${r}|${i}`, a = s?.get(o);
2595
2624
  if (a !== void 0)
2596
2625
  return a;
@@ -2613,7 +2642,7 @@ function ce(n) {
2613
2642
  if (!fr(n))
2614
2643
  return n;
2615
2644
  const e = n.cloneShallow();
2616
- e.getReferenceBlueId() !== void 0 && !A.hasBlueIdOnly(e) && e.setReferenceBlueId(void 0);
2645
+ e.getReferenceBlueId() !== void 0 && !V.hasBlueIdOnly(e) && e.setReferenceBlueId(void 0);
2617
2646
  const t = e.getType();
2618
2647
  t !== void 0 && e.setType(ce(t));
2619
2648
  const r = e.getItemType();
@@ -2639,7 +2668,7 @@ function ce(n) {
2639
2668
  ), e;
2640
2669
  }
2641
2670
  function fr(n) {
2642
- return n.getReferenceBlueId() !== void 0 && !A.hasBlueIdOnly(n) ? !0 : [
2671
+ return n.getReferenceBlueId() !== void 0 && !V.hasBlueIdOnly(n) ? !0 : [
2643
2672
  n.getType(),
2644
2673
  n.getItemType(),
2645
2674
  n.getKeyType(),
@@ -2684,7 +2713,7 @@ function yi(n, e, t, r, i) {
2684
2713
  function gi(n, e) {
2685
2714
  return se.includes(
2686
2715
  e
2687
- ) || vi(n);
2716
+ ) || Ii(n);
2688
2717
  }
2689
2718
  function mr(n) {
2690
2719
  const e = n.getType();
@@ -2694,50 +2723,50 @@ function mr(n) {
2694
2723
  )
2695
2724
  );
2696
2725
  }
2697
- function vi(n) {
2726
+ function Ii(n) {
2698
2727
  const e = n.getName();
2699
2728
  return e !== void 0 && Object.prototype.hasOwnProperty.call(At, e) && n.getDescription() === void 0 && n.getType() === void 0 && n.getItemType() === void 0 && n.getKeyType() === void 0 && n.getValueType() === void 0 && n.getValue() === void 0 && n.getItems() === void 0 && n.getProperties() === void 0 && n.getContractsNode() === void 0 && n.getReferenceBlueId() === void 0 && n.getSchema() === void 0 && n.getMergePolicy() === void 0 && n.getPreviousBlueId() === void 0 && n.getPosition() === void 0 && n.getBlue() === void 0;
2700
2729
  }
2701
- function Ii(n, e) {
2730
+ function vi(n, e) {
2702
2731
  return Rt.some((t) => {
2703
2732
  const r = new d().setBlueId(t);
2704
- return R(n, r, e);
2733
+ return A(n, r, e);
2705
2734
  });
2706
2735
  }
2707
2736
  function Ti(n, e) {
2708
2737
  const t = new d().setBlueId($);
2709
- return R(n, t, e);
2738
+ return A(n, t, e);
2710
2739
  }
2711
2740
  function Pi(n, e) {
2712
2741
  const t = new d().setBlueId(k);
2713
- return R(n, t, e);
2742
+ return A(n, t, e);
2714
2743
  }
2715
2744
  function Bi(n, e) {
2716
2745
  const t = new d().setBlueId(F);
2717
- return R(n, t, e);
2746
+ return A(n, t, e);
2718
2747
  }
2719
2748
  function Ei(n, e) {
2720
2749
  const t = new d().setBlueId(q);
2721
- return R(n, t, e);
2750
+ return A(n, t, e);
2722
2751
  }
2723
2752
  function qe(n, e) {
2724
2753
  const t = new d().setBlueId(Qe);
2725
- return R(n, t, e);
2754
+ return A(n, t, e);
2726
2755
  }
2727
2756
  function Ke(n, e) {
2728
2757
  const t = new d().setBlueId(et);
2729
- return R(n, t, e);
2758
+ return A(n, t, e);
2730
2759
  }
2731
2760
  function wi(n, e) {
2732
2761
  return Je.some((t) => {
2733
2762
  const r = new d().setName(t);
2734
- return R(n, r, e);
2763
+ return A(n, r, e);
2735
2764
  });
2736
2765
  }
2737
2766
  function bi(n, e) {
2738
2767
  for (const t of Je) {
2739
2768
  const r = new d().setName(t);
2740
- if (R(n, r, e))
2769
+ if (A(n, r, e))
2741
2770
  return t;
2742
2771
  }
2743
2772
  throw new Error(
@@ -2780,7 +2809,7 @@ class Si {
2780
2809
  if (p(this.nodeProvider))
2781
2810
  try {
2782
2811
  const s = new d().setBlueId(r), o = new d().setBlueId(i);
2783
- if (R(s, o, this.nodeProvider))
2812
+ if (A(s, o, this.nodeProvider))
2784
2813
  return !0;
2785
2814
  } catch {
2786
2815
  }
@@ -2857,7 +2886,7 @@ const ut = Ee.types.float.options, Ci = {
2857
2886
  construct: (n) => {
2858
2887
  const e = n.replace(/_/g, "").toLowerCase();
2859
2888
  if (!Ht(e))
2860
- return new D(e);
2889
+ return new x(e);
2861
2890
  if (ut.construct)
2862
2891
  return ut.construct(n);
2863
2892
  }
@@ -2866,19 +2895,19 @@ const ut = Ee.types.float.options, Ci = {
2866
2895
  construct: (n) => {
2867
2896
  let e = n;
2868
2897
  if (e.indexOf("_") !== -1 && (e = e.replace(/_/g, "")), !Ht(e))
2869
- return new V(e);
2898
+ return new R(e);
2870
2899
  if (dt.construct)
2871
2900
  return dt.construct(n);
2872
2901
  }
2873
2902
  }, Ai = new Ee.Type("tag:yaml.org,2002:int", Ri), gr = Ee.CORE_SCHEMA.extend({
2874
2903
  implicit: [Ni, Ai]
2875
- }), Ie = (n) => {
2904
+ }), ve = (n) => {
2876
2905
  const e = Ee.load(n, { schema: gr });
2877
2906
  return e === void 0 ? void 0 : e;
2878
2907
  }, Vi = (n) => Ee.dump(n, {
2879
2908
  schema: gr,
2880
2909
  replacer: (e, t) => {
2881
- if (L(t)) {
2910
+ if (D(t)) {
2882
2911
  if (X(t)) {
2883
2912
  const r = new de(Number.MIN_SAFE_INTEGER.toString()), i = new de(Number.MAX_SAFE_INTEGER.toString());
2884
2913
  if (t.lt(r) || t.gt(i))
@@ -2888,7 +2917,7 @@ const ut = Ee.types.float.options, Ci = {
2888
2917
  }
2889
2918
  return t;
2890
2919
  }
2891
- }), vr = `- type:
2920
+ }), Ir = `- type:
2892
2921
  blueId: 27B7fuxQCS1VAptiCPc2RMkKoutP5qxkh3uDxZ7dr6Eo
2893
2922
  mappings:
2894
2923
  Text: GX7CFUmSDrE2MzptunLCCdZwnuwwrenRQqEnHL4x3uoC
@@ -2927,7 +2956,7 @@ description: This transformation infers type details for Text, Integer, Number a
2927
2956
  type:
2928
2957
  blueId: Ct1SGRGw1i47qjzm1ruiUdSZofeV6WevPTGuieVvbRS4
2929
2958
  description: This transformation replaces`, xi = [
2930
- vr,
2959
+ Ir,
2931
2960
  Mi,
2932
2961
  Oi,
2933
2962
  Di
@@ -2942,7 +2971,7 @@ class Li extends ae {
2942
2971
  }
2943
2972
  load() {
2944
2973
  for (const e of xi) {
2945
- const t = Ie(e);
2974
+ const t = ve(e);
2946
2975
  if (t === void 0) {
2947
2976
  console.error(`This content file is not valid YAML: ${e}`);
2948
2977
  continue;
@@ -3052,7 +3081,7 @@ class jt extends ae {
3052
3081
  ].filter((t) => t !== void 0);
3053
3082
  }
3054
3083
  }
3055
- const Ir = Symbol.for(
3084
+ const vr = Symbol.for(
3056
3085
  "blue.repositoryBasedNodeProvider"
3057
3086
  );
3058
3087
  class ue {
@@ -3079,7 +3108,7 @@ class ue {
3079
3108
  return new ht(e);
3080
3109
  }
3081
3110
  static isUnverified(e) {
3082
- return e instanceof ht || e[Ir] === !0 ? !0 : e instanceof Ae && e.getNodeProviders().some((t) => this.isUnverified(t));
3111
+ return e instanceof ht || e[vr] === !0 ? !0 : e instanceof Ae && e.getNodeProviders().some((t) => this.isUnverified(t));
3083
3112
  }
3084
3113
  static isAlreadyWrapped(e) {
3085
3114
  return e instanceof Ae ? e.getNodeProviders().some(
@@ -3566,7 +3595,7 @@ class Fi {
3566
3595
  if (l && !c) {
3567
3596
  const S = e.getType();
3568
3597
  if (S) {
3569
- if (!R(
3598
+ if (!A(
3570
3599
  S,
3571
3600
  l,
3572
3601
  this.blue.getNodeProvider()
@@ -3584,12 +3613,12 @@ class Fi {
3584
3613
  } else if (!this.matchesBareBlueIdIdentity(e, u))
3585
3614
  return !1;
3586
3615
  } else {
3587
- const S = e.getBlueId(), I = e.getType();
3588
- if (I === void 0 && S !== void 0 && S !== u || I && !R(
3589
- I,
3616
+ const S = e.getBlueId(), v = e.getType();
3617
+ if (v === void 0 && S !== void 0 && S !== u || v && !A(
3618
+ v,
3590
3619
  t,
3591
3620
  this.blue.getNodeProvider()
3592
- ) && !this.matchesExactTypeReference(I, t))
3621
+ ) && !this.matchesExactTypeReference(v, t))
3593
3622
  return !1;
3594
3623
  }
3595
3624
  const h = e.getBlueId();
@@ -3600,48 +3629,48 @@ class Fi {
3600
3629
  const S = e.getValue();
3601
3630
  if (S === void 0)
3602
3631
  return !1;
3603
- if (L(S) && L(f)) {
3632
+ if (D(S) && D(f)) {
3604
3633
  if (!S.eq(f))
3605
3634
  return !1;
3606
3635
  } else if (S !== f)
3607
3636
  return !1;
3608
3637
  }
3609
- const g = t.getItems(), v = r.getItems();
3638
+ const g = t.getItems(), I = r.getItems();
3610
3639
  if (g !== void 0) {
3611
3640
  const S = e.getItems() ?? [];
3612
- for (let I = 0; I < g.length; I++)
3613
- if (I < S.length) {
3641
+ for (let v = 0; v < g.length; v++)
3642
+ if (v < S.length) {
3614
3643
  if (!this.recursiveValueComparison(
3615
- S[I],
3616
- g[I],
3617
- v?.[I] ?? g[I],
3644
+ S[v],
3645
+ g[v],
3646
+ I?.[v] ?? g[v],
3618
3647
  i,
3619
3648
  {},
3620
- this.childMatcherPointer(o, String(I)),
3649
+ this.childMatcherPointer(o, String(v)),
3621
3650
  a
3622
3651
  ))
3623
3652
  return !1;
3624
- } else if (this.requiresSemanticPresence(g[I]) || this.hasValueInNestedStructure(g[I]))
3653
+ } else if (this.requiresSemanticPresence(g[v]) || this.hasValueInNestedStructure(g[v]))
3625
3654
  return !1;
3626
3655
  }
3627
- const P = t.getItemType(), x = r.getItemType();
3656
+ const P = t.getItemType(), L = r.getItemType();
3628
3657
  if (P !== void 0) {
3629
3658
  const S = e.getItems() ?? [];
3630
- for (let I = 0; I < S.length; I++) {
3631
- const Q = S[I];
3659
+ for (let v = 0; v < S.length; v++) {
3660
+ const Q = S[v];
3632
3661
  if (!this.recursiveValueComparison(
3633
3662
  this.resolveUntypedNodeAgainstMatcherType(
3634
3663
  Q,
3635
3664
  P,
3636
- x ?? P,
3665
+ L ?? P,
3637
3666
  i,
3638
3667
  "type-reference"
3639
3668
  ),
3640
3669
  P,
3641
- x ?? P,
3670
+ L ?? P,
3642
3671
  i,
3643
3672
  { bareBlueIdMatcherMode: "type-reference" },
3644
- this.childMatcherPointer(o, String(I)),
3673
+ this.childMatcherPointer(o, String(v)),
3645
3674
  a
3646
3675
  ))
3647
3676
  return !1;
@@ -3650,15 +3679,15 @@ class Fi {
3650
3679
  const z = t.getProperties(), W = r.getProperties();
3651
3680
  if (z !== void 0) {
3652
3681
  const S = e.getProperties() ?? {};
3653
- for (const [I, Q] of Object.entries(z))
3654
- if (I in S) {
3682
+ for (const [v, Q] of Object.entries(z))
3683
+ if (v in S) {
3655
3684
  if (!this.recursiveValueComparison(
3656
- S[I],
3685
+ S[v],
3657
3686
  Q,
3658
- W?.[I] ?? Q,
3687
+ W?.[v] ?? Q,
3659
3688
  i,
3660
3689
  {},
3661
- this.childMatcherPointer(o, I),
3690
+ this.childMatcherPointer(o, v),
3662
3691
  a
3663
3692
  ))
3664
3693
  return !1;
@@ -3668,7 +3697,7 @@ class Fi {
3668
3697
  const J = t.getValueType(), Ce = r.getValueType();
3669
3698
  if (J !== void 0) {
3670
3699
  const S = Object.entries(e.getProperties() ?? {});
3671
- for (const [I, Q] of S)
3700
+ for (const [v, Q] of S)
3672
3701
  if (!this.recursiveValueComparison(
3673
3702
  this.resolveUntypedNodeAgainstMatcherType(
3674
3703
  Q,
@@ -3681,7 +3710,7 @@ class Fi {
3681
3710
  Ce ?? J,
3682
3711
  i,
3683
3712
  { bareBlueIdMatcherMode: "type-reference" },
3684
- this.childMatcherPointer(o, I),
3713
+ this.childMatcherPointer(o, v),
3685
3714
  a
3686
3715
  ))
3687
3716
  return !1;
@@ -3788,7 +3817,7 @@ class Fi {
3788
3817
  case k:
3789
3818
  return typeof r == "number" && Number.isInteger(r) && Number.isSafeInteger(r) || X(r);
3790
3819
  case F:
3791
- return typeof r == "number" || L(r);
3820
+ return typeof r == "number" || D(r);
3792
3821
  case q:
3793
3822
  return typeof r == "boolean";
3794
3823
  default:
@@ -3827,7 +3856,7 @@ class Fi {
3827
3856
  }
3828
3857
  matchesBareBlueIdTypeReference(e, t, r) {
3829
3858
  const i = e.getType();
3830
- return i ? R(
3859
+ return i ? A(
3831
3860
  i,
3832
3861
  t,
3833
3862
  this.blue.getNodeProvider()
@@ -4151,7 +4180,7 @@ class xt {
4151
4180
  }
4152
4181
  try {
4153
4182
  const s = e.getBlueId();
4154
- if (s && A.hasBlueIdOnly(e) && !se.includes(
4183
+ if (s && V.hasBlueIdOnly(e) && !se.includes(
4155
4184
  s
4156
4185
  )) {
4157
4186
  const f = this.fetchNode(e);
@@ -4161,10 +4190,10 @@ class xt {
4161
4190
  i
4162
4191
  );
4163
4192
  if (f.length === 1) {
4164
- const v = f[0];
4165
- this.mergeNodes(e, v, g);
4193
+ const I = f[0];
4194
+ this.mergeNodes(e, I, g);
4166
4195
  } else {
4167
- const v = f.map((x) => x.clone()), P = new d().setItems(v);
4196
+ const I = f.map((L) => L.clone()), P = new d().setItems(I);
4168
4197
  this.mergeNodes(e, P, g);
4169
4198
  }
4170
4199
  }
@@ -4396,12 +4425,12 @@ class Te extends Ui {
4396
4425
  }
4397
4426
  const f = u && o.length === 0 && !(r.limits instanceof ee), g = /* @__PURE__ */ new Set();
4398
4427
  for (; c < i.length; c++) {
4399
- const v = i[c];
4400
- if (B.hasPreviousProperty(v))
4428
+ const I = i[c];
4429
+ if (B.hasPreviousProperty(I))
4401
4430
  throw new Error(
4402
4431
  "$previous list control is allowed only as the first item."
4403
4432
  );
4404
- const P = B.readPosition(v);
4433
+ const P = B.readPosition(I);
4405
4434
  if (P !== void 0) {
4406
4435
  if (a === "append-only")
4407
4436
  throw new Error("$pos is not allowed in append-only lists.");
@@ -4410,8 +4439,8 @@ class Te extends Ui {
4410
4439
  throw new Error(
4411
4440
  "$pos is out of range for a list without inherited items."
4412
4441
  );
4413
- const W = B.withoutPosition(v);
4414
- if (!B.hasPayloadAfterRemovingPosition(v))
4442
+ const W = B.withoutPosition(I);
4443
+ if (!B.hasPayloadAfterRemovingPosition(I))
4415
4444
  throw new Error("$pos list control must include an item payload.");
4416
4445
  this.enterPathSegment(r, String(P), W);
4417
4446
  try {
@@ -4434,8 +4463,8 @@ class Te extends Ui {
4434
4463
  if (g.has(P))
4435
4464
  throw new Error(`Duplicate $pos list overlay for index ${P}.`);
4436
4465
  g.add(P);
4437
- const z = B.withoutPosition(v);
4438
- if (!B.hasPayloadAfterRemovingPosition(v))
4466
+ const z = B.withoutPosition(I);
4467
+ if (!B.hasPayloadAfterRemovingPosition(I))
4439
4468
  throw new Error("$pos list control must include an item payload.");
4440
4469
  if (!r.limits.shouldMergePathSegment(String(P), z))
4441
4470
  continue;
@@ -4452,21 +4481,21 @@ class Te extends Ui {
4452
4481
  }
4453
4482
  continue;
4454
4483
  }
4455
- const x = l.length;
4456
- if (!(!f && !r.limits.shouldMergePathSegment(String(x), v))) {
4484
+ const L = l.length;
4485
+ if (!(!f && !r.limits.shouldMergePathSegment(String(L), I))) {
4457
4486
  if (f) {
4458
4487
  l.push(
4459
4488
  this.materializeWithoutLimits(
4460
- this.applyItemType(v, e.getItemType()),
4489
+ this.applyItemType(I, e.getItemType()),
4461
4490
  r
4462
4491
  )
4463
4492
  );
4464
4493
  continue;
4465
4494
  }
4466
- this.enterPathSegment(r, String(x), v);
4495
+ this.enterPathSegment(r, String(L), I);
4467
4496
  try {
4468
4497
  const z = this.materializeForCurrentContextWithItemType(
4469
- v,
4498
+ I,
4470
4499
  r,
4471
4500
  e.getItemType()
4472
4501
  );
@@ -4505,21 +4534,21 @@ class Te extends Ui {
4505
4534
  l,
4506
4535
  c,
4507
4536
  i
4508
- ), f = h ?? u, v = this.shouldMergePropertyWithoutPreResolve(
4537
+ ), f = h ?? u, I = this.shouldMergePropertyWithoutPreResolve(
4509
4538
  f,
4510
4539
  c,
4511
4540
  i
4512
4541
  ) ? this.mergeExistingProperty(f, c, i) : (() => {
4513
- const x = this.materializeForCurrentContext(
4542
+ const L = this.materializeForCurrentContext(
4514
4543
  c,
4515
4544
  i
4516
4545
  );
4517
- return f === void 0 ? x : this.mergeObject(
4546
+ return f === void 0 ? L : this.mergeObject(
4518
4547
  f,
4519
- x,
4548
+ L,
4520
4549
  i
4521
4550
  );
4522
- })(), P = h === void 0 ? v : this.projectListNodeToCurrentLimits(v, i);
4551
+ })(), P = h === void 0 ? I : this.projectListNodeToCurrentLimits(I, i);
4523
4552
  P !== u && (a || (o = { ...s }, a = !0), o[l] = P);
4524
4553
  } finally {
4525
4554
  this.exitPathSegment(i);
@@ -4771,7 +4800,7 @@ class zi {
4771
4800
  }
4772
4801
  o = e.cloneShallow().setType(s);
4773
4802
  } else if (s !== void 0) {
4774
- if (!R(
4803
+ if (!A(
4775
4804
  s,
4776
4805
  i,
4777
4806
  r
@@ -4800,7 +4829,7 @@ class qi {
4800
4829
  if (a === void 0)
4801
4830
  s !== void 0 && (i = i.cloneShallow().setItemType(s));
4802
4831
  else if (s !== void 0) {
4803
- if (!R(
4832
+ if (!A(
4804
4833
  s,
4805
4834
  a,
4806
4835
  r
@@ -4820,7 +4849,7 @@ class qi {
4820
4849
  if (l !== void 0 && c !== void 0)
4821
4850
  for (const u of c) {
4822
4851
  const h = u.getType();
4823
- if (h !== void 0 && !R(
4852
+ if (h !== void 0 && !A(
4824
4853
  h,
4825
4854
  l,
4826
4855
  r
@@ -4876,7 +4905,7 @@ class Ki {
4876
4905
  if (s !== void 0)
4877
4906
  return this.validateBasicKeyType(s, r), e.cloneShallow().setKeyType(s);
4878
4907
  } else if (s !== void 0) {
4879
- if (this.validateBasicKeyType(s, r), !R(
4908
+ if (this.validateBasicKeyType(s, r), !A(
4880
4909
  s,
4881
4910
  i,
4882
4911
  r
@@ -4900,7 +4929,7 @@ class Ki {
4900
4929
  if (s !== void 0)
4901
4930
  return e.cloneShallow().setValueType(s);
4902
4931
  } else if (s !== void 0) {
4903
- if (!R(
4932
+ if (!A(
4904
4933
  s,
4905
4934
  i,
4906
4935
  r
@@ -4919,7 +4948,7 @@ class Ki {
4919
4948
  return e;
4920
4949
  }
4921
4950
  validateBasicKeyType(e, t) {
4922
- if (!Ii(e, t))
4951
+ if (!vi(e, t))
4923
4952
  throw new Error(
4924
4953
  `Dictionary key type must be a basic type: ${JSON.stringify(
4925
4954
  T.get(e)
@@ -4946,7 +4975,7 @@ class Ki {
4946
4975
  }
4947
4976
  validateValueType(e, t, r) {
4948
4977
  const i = e.getType();
4949
- if (i !== void 0 && !R(i, t, r)) {
4978
+ if (i !== void 0 && !A(i, t, r)) {
4950
4979
  const s = T.get(i), o = T.get(t);
4951
4980
  throw new Error(
4952
4981
  `Value of type '${JSON.stringify(
@@ -5216,7 +5245,7 @@ class pt {
5216
5245
  "Cannot minimize a path-limited resolved node without a source semantic BlueId."
5217
5246
  );
5218
5247
  }
5219
- return A.hasBlueIdOnly(e) ? e.clone() : e.isResolved() ? this.minimizeResolved(e) : this.minimizeAuthoring(e);
5248
+ return V.hasBlueIdOnly(e) ? e.clone() : e.isResolved() ? this.minimizeResolved(e) : this.minimizeAuthoring(e);
5220
5249
  }
5221
5250
  minimizeResolved(e) {
5222
5251
  if (e instanceof ie && e.getCompleteness() === "path-limited")
@@ -5310,7 +5339,7 @@ class pt {
5310
5339
  getTopLevelSetItems(e) {
5311
5340
  if (Array.isArray(e))
5312
5341
  return e;
5313
- if (A.hasItemsOnly(e))
5342
+ if (V.hasItemsOnly(e))
5314
5343
  return e.getItems() ?? [];
5315
5344
  }
5316
5345
  toMinimalListIdentityInput(e) {
@@ -5323,11 +5352,11 @@ class pt {
5323
5352
  class Pr {
5324
5353
  static convertValue(e, t) {
5325
5354
  const r = e.getType()?.getBlueId(), i = e.getValue();
5326
- return E(i) ? fi(t) && A.isValidValueNode(e) ? this.getDefaultPrimitiveValue(t) : i : $ === r ? this.convertFromString(String(i), t) : F === r || i instanceof D ? this.convertFromBigDecimal(
5327
- new D(i?.toString()),
5355
+ return E(i) ? fi(t) && V.isValidValueNode(e) ? this.getDefaultPrimitiveValue(t) : i : $ === r ? this.convertFromString(String(i), t) : F === r || i instanceof x ? this.convertFromBigDecimal(
5356
+ new x(i?.toString()),
5328
5357
  t
5329
- ) : k === r || i instanceof V ? this.convertFromBigInteger(
5330
- new V(i?.toString()),
5358
+ ) : k === r || i instanceof R ? this.convertFromBigInteger(
5359
+ new R(i?.toString()),
5331
5360
  t
5332
5361
  ) : q === r || typeof i == "boolean" ? this.convertFromBoolean(!!i, t) : this.convertFromString(String(i), t);
5333
5362
  }
@@ -5417,26 +5446,26 @@ class rs {
5417
5446
  (s, o) => {
5418
5447
  const a = e.getProperties(), l = r.shape[o], c = ai(l);
5419
5448
  if (p(c)) {
5420
- const v = Et(c) ? c : o, P = a?.[v], x = P ? this.calculateBlueId(P) : void 0;
5421
- return s[o] = x, s;
5449
+ const I = Et(c) ? c : o, P = a?.[I], L = P ? this.calculateBlueId(P) : void 0;
5450
+ return s[o] = L, s;
5422
5451
  }
5423
5452
  const u = ci(l);
5424
5453
  if (p(u)) {
5425
- const v = a?.[u];
5426
- return s[o] = v?.getName(), s;
5454
+ const I = a?.[u];
5455
+ return s[o] = I?.getName(), s;
5427
5456
  }
5428
5457
  const h = si(l);
5429
5458
  if (p(h)) {
5430
- const v = a?.[h];
5431
- return s[o] = v?.getDescription(), s;
5459
+ const I = a?.[h];
5460
+ return s[o] = I?.getDescription(), s;
5432
5461
  }
5433
5462
  if (o === "name") {
5434
- const v = e.getName();
5435
- return s[o] = v, s;
5463
+ const I = e.getName();
5464
+ return s[o] = I, s;
5436
5465
  }
5437
5466
  if (o === "description") {
5438
- const v = e.getDescription();
5439
- return s[o] = v, s;
5467
+ const I = e.getDescription();
5468
+ return s[o] = I, s;
5440
5469
  }
5441
5470
  const f = a?.[o];
5442
5471
  if (E(f))
@@ -5900,8 +5929,8 @@ class Ye {
5900
5929
  const h = r.getProperties();
5901
5930
  if (h !== void 0) {
5902
5931
  const f = Object.fromEntries(
5903
- Object.entries(h).flatMap(([g, v]) => {
5904
- const P = this.normalizeListPlaceholders(v, !1);
5932
+ Object.entries(h).flatMap(([g, I]) => {
5933
+ const P = this.normalizeListPlaceholders(I, !1);
5905
5934
  return this.isEmptyNode(P) || this.isNullNode(P) ? [] : [[g, P]];
5906
5935
  })
5907
5936
  );
@@ -5913,13 +5942,13 @@ class Ye {
5913
5942
  }
5914
5943
  emptyPlaceholder() {
5915
5944
  return new d().addProperty(
5916
- ve,
5945
+ Ie,
5917
5946
  new d().setValue(!0)
5918
5947
  );
5919
5948
  }
5920
5949
  isEmptyPlaceholder(e) {
5921
5950
  const t = e.getProperties();
5922
- return t !== void 0 && Object.keys(t).length === 1 && t[ve]?.getValue() === !0;
5951
+ return t !== void 0 && Object.keys(t).length === 1 && t[Ie]?.getValue() === !0;
5923
5952
  }
5924
5953
  isNullNode(e) {
5925
5954
  return e.getValue() === null && e.getName() === void 0 && e.getDescription() === void 0 && e.getType() === void 0 && e.getItems() === void 0 && e.getProperties() === void 0;
@@ -5970,7 +5999,7 @@ ${t}
5970
5999
  */
5971
6000
  loadDefaultSimpleBlue() {
5972
6001
  try {
5973
- const e = this.enrichDefaultBlue(vr), t = Ie(e);
6002
+ const e = this.enrichDefaultBlue(Ir), t = ve(e);
5974
6003
  if (t)
5975
6004
  this.defaultSimpleBlue = y.deserialize(t);
5976
6005
  else
@@ -6178,7 +6207,7 @@ class gs {
6178
6207
  const { data: r, contentType: i } = t;
6179
6208
  let s;
6180
6209
  if (i.includes("application/json") || i.includes("text/yaml") || i.includes("application/yaml") || i.includes("text/plain"))
6181
- s = Ie(r);
6210
+ s = ve(r);
6182
6211
  else
6183
6212
  throw new Error(`Unsupported content type from URL: ${i}`);
6184
6213
  if (s === void 0)
@@ -6268,7 +6297,7 @@ class Er {
6268
6297
  static parseAndCalculateBlueId(e, t, r) {
6269
6298
  let i;
6270
6299
  try {
6271
- const l = Ie(e);
6300
+ const l = ve(e);
6272
6301
  if (l === void 0)
6273
6302
  throw new Error();
6274
6303
  i = l;
@@ -6365,7 +6394,7 @@ class Er {
6365
6394
  }
6366
6395
  }
6367
6396
  }
6368
- class vs extends ae {
6397
+ class Is extends ae {
6369
6398
  fetchByBlueId(e) {
6370
6399
  const t = e.split("#")[0], r = this.fetchContentByBlueId(t);
6371
6400
  if (r == null)
@@ -6388,7 +6417,7 @@ class vs extends ae {
6388
6417
  return Array.isArray(s) ? s.map((o) => y.deserialize(o)) : [y.deserialize(s)];
6389
6418
  }
6390
6419
  }
6391
- class Is extends vs {
6420
+ class vs extends Is {
6392
6421
  nameToBlueIdsMap = /* @__PURE__ */ new Map();
6393
6422
  /**
6394
6423
  * Find a node by name. Throws an error if multiple nodes are found with the same name.
@@ -6593,8 +6622,8 @@ function Ms(n) {
6593
6622
  i
6594
6623
  ) ? { [b]: i } : n;
6595
6624
  }
6596
- class xe extends Is {
6597
- [Ir] = !0;
6625
+ class xe extends vs {
6626
+ [vr] = !0;
6598
6627
  blueIdToContentMap = /* @__PURE__ */ new Map();
6599
6628
  blueIdToMultipleDocumentsMap = /* @__PURE__ */ new Map();
6600
6629
  aliasBlueIdMap = /* @__PURE__ */ new Map();
@@ -7012,7 +7041,7 @@ function Gs(n, e, t) {
7012
7041
  function Hs(n, e) {
7013
7042
  if (n === e) return !0;
7014
7043
  if (n === null || e === null || typeof n != "object" || typeof e != "object") return !1;
7015
- const t = vt.canonicalize(n), r = vt.canonicalize(e);
7044
+ const t = It.canonicalize(n), r = It.canonicalize(e);
7016
7045
  return t !== void 0 && t === r;
7017
7046
  }
7018
7047
  const Lt = {
@@ -7930,19 +7959,19 @@ class nn {
7930
7959
  );
7931
7960
  }
7932
7961
  yamlToNode(e) {
7933
- const t = Ie(e);
7962
+ const t = ve(e);
7934
7963
  if (!t)
7935
7964
  throw new Error("Failed to parse YAML to JSON");
7936
7965
  return this.jsonValueToNode(t);
7937
7966
  }
7938
7967
  yamlToNodeUnchecked(e) {
7939
- const t = Ie(e);
7968
+ const t = ve(e);
7940
7969
  if (!t)
7941
7970
  throw new Error("Failed to parse YAML to JSON");
7942
7971
  return this.jsonValueToNodeUnchecked(t);
7943
7972
  }
7944
7973
  async yamlToNodeAsync(e) {
7945
- const t = Ie(e);
7974
+ const t = ve(e);
7946
7975
  if (!t)
7947
7976
  throw new Error("Failed to parse YAML to JSON");
7948
7977
  return this.jsonValueToNodeAsync(t);
@@ -8008,7 +8037,7 @@ class nn {
8008
8037
  ), this.typeSchemaResolver?.setNodeProvider(this.nodeProvider), this;
8009
8038
  }
8010
8039
  getExactReferenceBlueId(e) {
8011
- if (!A.hasBlueIdOnly(e))
8040
+ if (!V.hasBlueIdOnly(e))
8012
8041
  return;
8013
8042
  const t = e.getReferenceBlueId();
8014
8043
  return t !== void 0 && G.isPotentialBlueId(t) ? t : void 0;
@@ -8159,7 +8188,7 @@ class nn {
8159
8188
  if (!i)
8160
8189
  return !1;
8161
8190
  const s = new d().setReferenceBlueId(r);
8162
- return R(i, s, this.nodeProvider);
8191
+ return A(i, s, this.nodeProvider);
8163
8192
  }
8164
8193
  /**
8165
8194
  * Checks if a BlueNode matches a BlueNode type.
@@ -8222,7 +8251,7 @@ const An = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8222
8251
  export {
8223
8252
  H as $,
8224
8253
  ds as A,
8225
- V as B,
8254
+ R as B,
8226
8255
  U as C,
8227
8256
  Ki as D,
8228
8257
  ue as E,
@@ -8230,13 +8259,13 @@ export {
8230
8259
  Mt as G,
8231
8260
  kt as H,
8232
8261
  Ui as I,
8233
- vt as J,
8262
+ It as J,
8234
8263
  Te as K,
8235
8264
  qi as L,
8236
8265
  es as M,
8237
8266
  y as N,
8238
8267
  Xt as O,
8239
- Is as P,
8268
+ vs as P,
8240
8269
  yn as Q,
8241
8270
  ie as R,
8242
8271
  Wi as S,
@@ -8244,11 +8273,11 @@ export {
8244
8273
  gn as U,
8245
8274
  ji as V,
8246
8275
  rt as W,
8247
- vn as X,
8248
- In as Y,
8276
+ In as X,
8277
+ vn as Y,
8249
8278
  Tn as Z,
8250
8279
  Pn as _,
8251
- D as a,
8280
+ x as a,
8252
8281
  or as a0,
8253
8282
  Bn as a1,
8254
8283
  ii as a2,
@@ -8268,7 +8297,7 @@ export {
8268
8297
  Nn as ag,
8269
8298
  Vi as ah,
8270
8299
  Ge as ai,
8271
- L as aj,
8300
+ D as aj,
8272
8301
  X as ak,
8273
8302
  yt as al,
8274
8303
  le as am,
@@ -8294,7 +8323,7 @@ export {
8294
8323
  gt as k,
8295
8324
  T as l,
8296
8325
  Ye as m,
8297
- A as n,
8326
+ V as n,
8298
8327
  Er as o,
8299
8328
  w as p,
8300
8329
  Wr as q,
@@ -8305,6 +8334,6 @@ export {
8305
8334
  st as v,
8306
8335
  Pt as w,
8307
8336
  Lt as x,
8308
- Ie as y,
8337
+ ve as y,
8309
8338
  Rn as z
8310
8339
  };