@blue-labs/language 1.29.0 → 1.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +8 -8
- package/dist/index.mjs +245 -234
- package/dist/lib/merge/processors/MetadataPropagator.d.ts +13 -0
- package/dist/lib/merge/processors/MetadataPropagator.d.ts.map +1 -0
- package/dist/lib/merge/processors/index.d.ts +1 -0
- package/dist/lib/merge/processors/index.d.ts.map +1 -1
- package/dist/lib/merge/utils/default.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var u = (s, e, t) =>
|
|
1
|
+
var Gt = Object.defineProperty;
|
|
2
|
+
var Jt = (s, e, t) => e in s ? Gt(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
|
|
3
|
+
var u = (s, e, t) => Jt(s, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import R from "big.js";
|
|
5
|
-
import { isNullable as I, isNonNullable as p, jsonPrimitiveSchema as
|
|
6
|
-
import { z as h, ZodOptional as ht, ZodNullable as ft, ZodReadonly as gt, ZodBranded as yt, ZodEffects as ye, ZodLazy as me, ZodString as H, ZodNumber as X, ZodBoolean as pe, ZodBigInt as he, ZodEnum as
|
|
5
|
+
import { isNullable as I, isNonNullable as p, jsonPrimitiveSchema as Wt, isReadonlyArray as ge, isJsonPrimitive as Ze, isPreciseNumberString as pt } from "@blue-labs/shared-utils";
|
|
6
|
+
import { z as h, ZodOptional as ht, ZodNullable as ft, ZodReadonly as gt, ZodBranded as yt, ZodEffects as ye, ZodLazy as me, ZodString as H, ZodNumber as X, ZodBoolean as pe, ZodBigInt as he, ZodEnum as Ht, ZodNativeEnum as Xt, ZodIntersection as qt, ZodUnion as Qt, ZodObject as er, ZodRecord as tr } from "zod";
|
|
7
7
|
import le from "bs58";
|
|
8
|
-
import { isObject as mt, isArray as ke, isString as Ye, omit as It, pascal as
|
|
9
|
-
import { sha256 as
|
|
8
|
+
import { isObject as mt, isArray as ke, isString as Ye, omit as It, pascal as rr, map as sr } from "radash";
|
|
9
|
+
import { sha256 as nr } from "js-sha256";
|
|
10
10
|
import Se from "crypto";
|
|
11
|
-
import
|
|
11
|
+
import ir from "base32.js";
|
|
12
12
|
import k from "js-yaml";
|
|
13
13
|
class E extends R {
|
|
14
14
|
constructor(e) {
|
|
@@ -20,7 +20,7 @@ class v extends R {
|
|
|
20
20
|
super(e);
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
class
|
|
23
|
+
class or {
|
|
24
24
|
static get(e, t, r, n = !0) {
|
|
25
25
|
if (I(t) || !t.startsWith("/"))
|
|
26
26
|
throw new Error(`Invalid path: ${t}`);
|
|
@@ -138,7 +138,7 @@ class ir {
|
|
|
138
138
|
return p(r) ? r : e;
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
|
-
const Q = "name", ee = "description", Ie = "type", Ke = "itemType", ze = "keyType", Ge = "valueType", Ne = "value", Je = "items", _ = "blueId", We = "blue",
|
|
141
|
+
const Q = "name", ee = "description", Ie = "type", Ke = "itemType", ze = "keyType", Ge = "valueType", Ne = "value", Je = "items", _ = "blueId", We = "blue", lr = [
|
|
142
142
|
Q,
|
|
143
143
|
ee,
|
|
144
144
|
Ie,
|
|
@@ -149,12 +149,12 @@ const Q = "name", ee = "description", Ie = "type", Ke = "itemType", ze = "keyTyp
|
|
|
149
149
|
Je,
|
|
150
150
|
_,
|
|
151
151
|
We
|
|
152
|
-
],
|
|
153
|
-
lr,
|
|
152
|
+
], cr = "Text", ar = "Double", ur = "Integer", dr = "Boolean", pr = "List", hr = "Dictionary", He = [
|
|
154
153
|
cr,
|
|
155
154
|
ar,
|
|
156
|
-
ur
|
|
157
|
-
|
|
155
|
+
ur,
|
|
156
|
+
dr
|
|
157
|
+
], Tt = [...He, pr, hr], Y = "F92yo19rCcbBoBSpUA5LRxpfDejJDAaP1PRxxbWAraVP", K = "68ryJtnmui4j5rCZWUnkZ3DChtmEb7Z9F8atn1mBSM3L", z = "DHmxTkFbXePZHCHCYmQr2dSzcNLcryFVjXVHkdQrrZr8", G = "EL6AjrbJsxTWRTPzY8WR8Y2zAMXRbydQj83PcZwuAHbo", bt = "G8wmfjEqugPEEXByMYWJXiEdbLToPRWNQEekNxrxfQWB", wt = "294NBTj2mFRL3RB4kDRUSckwGg7Kzj6T8CTAFeR1kcSA", vt = [
|
|
158
158
|
Y,
|
|
159
159
|
K,
|
|
160
160
|
z,
|
|
@@ -167,7 +167,7 @@ const Q = "name", ee = "description", Ie = "type", Ke = "itemType", ze = "keyTyp
|
|
|
167
167
|
Object.fromEntries(
|
|
168
168
|
Tt.map((s, e) => [s, ue[e]])
|
|
169
169
|
);
|
|
170
|
-
const
|
|
170
|
+
const fr = Object.fromEntries(
|
|
171
171
|
ue.map((s, e) => [s, Tt[e]])
|
|
172
172
|
), S = class S {
|
|
173
173
|
constructor(e) {
|
|
@@ -309,7 +309,7 @@ const hr = Object.fromEntries(
|
|
|
309
309
|
return !1;
|
|
310
310
|
}
|
|
311
311
|
get(e, t) {
|
|
312
|
-
return
|
|
312
|
+
return or.get(this, e, t);
|
|
313
313
|
}
|
|
314
314
|
getAsNode(e) {
|
|
315
315
|
const t = this.get(e);
|
|
@@ -362,7 +362,7 @@ class U {
|
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
364
|
u(U, "MIN_BLUE_ID_LENGTH", 41), u(U, "MAX_BLUE_ID_LENGTH", 45), u(U, "BLUE_ID_PATTERN", /^[1-9A-HJ-NP-Za-km-z]{41,45}(?:#\d+)?$/);
|
|
365
|
-
const
|
|
365
|
+
const rn = h.string().max(U.MAX_BLUE_ID_LENGTH, {
|
|
366
366
|
message: "Blue Id has a maximum length of 45 characters"
|
|
367
367
|
}).min(U.MIN_BLUE_ID_LENGTH, {
|
|
368
368
|
message: "Blue Id has a minimum length of 41 characters"
|
|
@@ -393,29 +393,29 @@ const tn = h.string().max(U.MAX_BLUE_ID_LENGTH, {
|
|
|
393
393
|
name: h.string().optional(),
|
|
394
394
|
description: h.string().optional(),
|
|
395
395
|
type: ce.optional()
|
|
396
|
-
}), rn = Ee.extend({
|
|
397
|
-
value: h.string().optional()
|
|
398
396
|
}), sn = Ee.extend({
|
|
399
|
-
value: h.
|
|
397
|
+
value: h.string().optional()
|
|
400
398
|
}), nn = Ee.extend({
|
|
401
|
-
value: h.
|
|
399
|
+
value: h.number().optional()
|
|
402
400
|
}), on = Ee.extend({
|
|
401
|
+
value: h.boolean().optional()
|
|
402
|
+
}), ln = Ee.extend({
|
|
403
403
|
items: h.array(h.string()).optional()
|
|
404
|
-
}),
|
|
404
|
+
}), cn = (s) => ce.safeParse(s).success, gr = (s) => p(s) && "blueId" in s && p(s.blueId), an = (s) => p(s) && "name" in s && p(s.name), yr = (s) => p(s) && "items" in s && p(s.items), mr = (s) => p(s) && "type" in s && p(s.type), Ir = (s) => p(s) && "value" in s && p(s.value), un = (s, e) => s.required({ type: !0 }).safeParse(e).success, D = (s) => s instanceof R, Z = (s) => D(s) && s instanceof v, Re = (s) => D(s) && s instanceof E, Tr = h.lazy(
|
|
405
405
|
() => h.record(Te)
|
|
406
|
-
),
|
|
406
|
+
), br = h.lazy(
|
|
407
407
|
() => h.union([
|
|
408
408
|
h.array(Te),
|
|
409
409
|
h.array(Te).readonly()
|
|
410
410
|
])
|
|
411
411
|
), Te = h.lazy(
|
|
412
412
|
() => h.union([
|
|
413
|
-
|
|
414
|
-
Ir,
|
|
413
|
+
Wt,
|
|
415
414
|
Tr,
|
|
415
|
+
br,
|
|
416
416
|
h.instanceof(R)
|
|
417
417
|
])
|
|
418
|
-
), Bt = (s) => mt(s) && !ke(s) && !ge(s) && !D(s), Nt = (s) => ke(s) || ge(s),
|
|
418
|
+
), Bt = (s) => mt(s) && !ke(s) && !ge(s) && !D(s), Nt = (s) => ke(s) || ge(s), dn = (s) => Nt(s) || Bt(s) || D(s) || Ze(s);
|
|
419
419
|
class f {
|
|
420
420
|
static deserialize(e) {
|
|
421
421
|
return f.handleNode(e);
|
|
@@ -516,11 +516,11 @@ class f {
|
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function wr(s) {
|
|
520
520
|
return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
|
|
521
521
|
}
|
|
522
522
|
var Ae, ot;
|
|
523
|
-
function
|
|
523
|
+
function vr() {
|
|
524
524
|
return ot || (ot = 1, Ae = function s(e) {
|
|
525
525
|
if (typeof e == "number" && isNaN(e))
|
|
526
526
|
throw new Error("NaN is not allowed");
|
|
@@ -534,11 +534,11 @@ function wr() {
|
|
|
534
534
|
}, "")}}`;
|
|
535
535
|
}), Ae;
|
|
536
536
|
}
|
|
537
|
-
var
|
|
538
|
-
const
|
|
539
|
-
class
|
|
537
|
+
var Br = vr();
|
|
538
|
+
const Nr = /* @__PURE__ */ wr(Br);
|
|
539
|
+
class Er {
|
|
540
540
|
static canonicalize(e) {
|
|
541
|
-
return
|
|
541
|
+
return Nr(e);
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
544
|
const Ce = typeof process < "u" && process.versions != null && process.versions.node != null, we = class we {
|
|
@@ -564,7 +564,7 @@ const Ce = typeof process < "u" && process.versions != null && process.versions.
|
|
|
564
564
|
};
|
|
565
565
|
u(we, "instance");
|
|
566
566
|
let $e = we;
|
|
567
|
-
class
|
|
567
|
+
class Pr {
|
|
568
568
|
constructor() {
|
|
569
569
|
u(this, "cryptoEnv", $e.getInstance());
|
|
570
570
|
}
|
|
@@ -577,7 +577,7 @@ class Er {
|
|
|
577
577
|
return le.encode(new Uint8Array(r));
|
|
578
578
|
}
|
|
579
579
|
canonicalizeInput(e) {
|
|
580
|
-
const t =
|
|
580
|
+
const t = Er.canonicalize(e);
|
|
581
581
|
if (typeof t != "string")
|
|
582
582
|
throw new Error("Canonized value must be a string");
|
|
583
583
|
return t;
|
|
@@ -591,7 +591,7 @@ class Er {
|
|
|
591
591
|
return t.createHash("sha256").update(e).digest();
|
|
592
592
|
}
|
|
593
593
|
sha256SyncBrowser(e) {
|
|
594
|
-
return
|
|
594
|
+
return nr.arrayBuffer(e);
|
|
595
595
|
}
|
|
596
596
|
async sha256Async(e) {
|
|
597
597
|
if (this.cryptoEnv.hasNodeCrypto())
|
|
@@ -647,8 +647,8 @@ class g {
|
|
|
647
647
|
const j = e.getBlue();
|
|
648
648
|
j !== void 0 && (c[We] = j);
|
|
649
649
|
const J = e.getProperties();
|
|
650
|
-
return J !== void 0 && Object.entries(J).forEach(([W,
|
|
651
|
-
c[W] = g.get(
|
|
650
|
+
return J !== void 0 && Object.entries(J).forEach(([W, zt]) => {
|
|
651
|
+
c[W] = g.get(zt, t);
|
|
652
652
|
}), c;
|
|
653
653
|
}
|
|
654
654
|
static handleValue(e) {
|
|
@@ -666,7 +666,7 @@ class g {
|
|
|
666
666
|
return typeof e == "string" ? Y : D(e) ? Z(e) ? z : K : typeof e == "boolean" ? G : null;
|
|
667
667
|
}
|
|
668
668
|
}
|
|
669
|
-
const
|
|
669
|
+
const Sr = (s) => Ze(s) && p(s), M = class M {
|
|
670
670
|
constructor(e) {
|
|
671
671
|
u(this, "hashProvider");
|
|
672
672
|
this.hashProvider = e;
|
|
@@ -701,7 +701,7 @@ const Pr = (s) => Ze(s) && p(s), M = class M {
|
|
|
701
701
|
}
|
|
702
702
|
// Internal method to calculate BlueId recursively
|
|
703
703
|
internalCalculate(e, t) {
|
|
704
|
-
return
|
|
704
|
+
return Sr(e) || D(e) ? this.applyHash(e.toString(), t) : Array.isArray(e) || ge(e) ? this.calculateList(e, t) : this.calculateMap(e, t);
|
|
705
705
|
}
|
|
706
706
|
calculateMap(e, t) {
|
|
707
707
|
if (e[_] !== void 0)
|
|
@@ -768,14 +768,14 @@ const Pr = (s) => Ze(s) && p(s), M = class M {
|
|
|
768
768
|
}
|
|
769
769
|
}
|
|
770
770
|
};
|
|
771
|
-
u(M, "INSTANCE", new M(new
|
|
771
|
+
u(M, "INSTANCE", new M(new Pr()));
|
|
772
772
|
let w = M;
|
|
773
|
-
class
|
|
773
|
+
class pn {
|
|
774
774
|
static convert(e) {
|
|
775
775
|
const t = le.decode(e), r = new Uint8Array(2 + t.length);
|
|
776
776
|
r[0] = 18, r[1] = 32, r.set(t, 2);
|
|
777
777
|
const n = new Uint8Array(2 + r.length);
|
|
778
|
-
return n[0] = 1, n[1] = 85, n.set(r, 2), "b" + new
|
|
778
|
+
return n[0] = 1, n[1] = 85, n.set(r, 2), "b" + new ir.Encoder({ type: "rfc4648", lc: !0 }).write(n).finalize().replace(/=/g, "");
|
|
779
779
|
}
|
|
780
780
|
}
|
|
781
781
|
class V {
|
|
@@ -818,12 +818,12 @@ class V {
|
|
|
818
818
|
return r;
|
|
819
819
|
}
|
|
820
820
|
}
|
|
821
|
-
const $ = (s) => !!s && typeof s == "object" && !Array.isArray(s) && !(s instanceof a), F = (s) => s instanceof v || s instanceof E,
|
|
821
|
+
const $ = (s) => !!s && typeof s == "object" && !Array.isArray(s) && !(s instanceof a), F = (s) => s instanceof v || s instanceof E, Ar = (s) => s.replace(/~1/g, "/").replace(/~0/g, "~");
|
|
822
822
|
function se(s) {
|
|
823
823
|
if (s === "/") return [];
|
|
824
824
|
if (!s.startsWith("/"))
|
|
825
825
|
throw new Error(`Path must start with '/': ${s}`);
|
|
826
|
-
return s.split("/").slice(1).map(
|
|
826
|
+
return s.split("/").slice(1).map(Ar);
|
|
827
827
|
}
|
|
828
828
|
function te(s) {
|
|
829
829
|
if (s === "-") return -1;
|
|
@@ -1039,7 +1039,7 @@ function qe(s, e, t) {
|
|
|
1039
1039
|
}
|
|
1040
1040
|
Array.isArray(s) ? s.splice(te(e), 1) : $(s) && (t === void 0 ? delete s[e] : s[e] = t);
|
|
1041
1041
|
}
|
|
1042
|
-
function
|
|
1042
|
+
function Cr(s, e, t, r) {
|
|
1043
1043
|
let n = -1;
|
|
1044
1044
|
if (e !== "-" && (n = typeof e == "number" ? e : parseInt(e, 10), isNaN(n)))
|
|
1045
1045
|
throw new Error(
|
|
@@ -1087,7 +1087,7 @@ function be(s, e, t, r) {
|
|
|
1087
1087
|
return;
|
|
1088
1088
|
}
|
|
1089
1089
|
if (s instanceof a) {
|
|
1090
|
-
e === "-" || typeof e == "number" && !isNaN(e) || typeof e == "string" && /^\d+$/.test(e) ?
|
|
1090
|
+
e === "-" || typeof e == "number" && !isNaN(e) || typeof e == "string" && /^\d+$/.test(e) ? Cr(s, e, N(t), r) : qe(s, e, t);
|
|
1091
1091
|
return;
|
|
1092
1092
|
}
|
|
1093
1093
|
if ($(s)) {
|
|
@@ -1096,7 +1096,7 @@ function be(s, e, t, r) {
|
|
|
1096
1096
|
}
|
|
1097
1097
|
throw new Error(`Cannot insert into parent of type ${typeof s}`);
|
|
1098
1098
|
}
|
|
1099
|
-
function
|
|
1099
|
+
function Vr(s, e) {
|
|
1100
1100
|
if (Array.isArray(s)) {
|
|
1101
1101
|
const t = te(e);
|
|
1102
1102
|
t === -1 && e === "-" ? s.length > 0 && s.pop() : t >= 0 && t < s.length && s.splice(t, 1);
|
|
@@ -1153,7 +1153,7 @@ function St(s, e, t) {
|
|
|
1153
1153
|
const { parent: n, key: i } = ne(s, r);
|
|
1154
1154
|
be(n, i, t, !0);
|
|
1155
1155
|
}
|
|
1156
|
-
function
|
|
1156
|
+
function Dr(s, e, t) {
|
|
1157
1157
|
const r = se(e);
|
|
1158
1158
|
if (r.length === 0 && e === "/") {
|
|
1159
1159
|
if (s.getItems() && Array.isArray(t)) {
|
|
@@ -1168,7 +1168,7 @@ function Vr(s, e, t) {
|
|
|
1168
1168
|
const { parent: n, key: i } = ne(s, r);
|
|
1169
1169
|
return be(n, i, t, !1), !0;
|
|
1170
1170
|
}
|
|
1171
|
-
function
|
|
1171
|
+
function Fr(s, e, t) {
|
|
1172
1172
|
const r = se(e);
|
|
1173
1173
|
if (r.length === 0 && e === "/") {
|
|
1174
1174
|
const l = N(t);
|
|
@@ -1195,19 +1195,19 @@ function At(s, e) {
|
|
|
1195
1195
|
if (t.length === 0 && e === "/")
|
|
1196
1196
|
return s.setValue(null), s.setItems(void 0), s.setProperties(void 0), !0;
|
|
1197
1197
|
const { parent: r, key: n } = ne(s, t);
|
|
1198
|
-
return
|
|
1198
|
+
return Vr(r, n), !0;
|
|
1199
1199
|
}
|
|
1200
|
-
function
|
|
1200
|
+
function Mr(s, e, t) {
|
|
1201
1201
|
const r = je(Pt(s, e));
|
|
1202
1202
|
return St(s, t, r), !0;
|
|
1203
1203
|
}
|
|
1204
|
-
function
|
|
1204
|
+
function Or(s, e, t) {
|
|
1205
1205
|
const r = se(e), { parent: n, key: i } = ne(s, r), o = Xe(n, i);
|
|
1206
1206
|
if (o === void 0)
|
|
1207
1207
|
throw new Error(`MOVE failed: 'from' location '${e}' does not exist.`);
|
|
1208
1208
|
return At(s, e) ? (St(s, t, o), !0) : !1;
|
|
1209
1209
|
}
|
|
1210
|
-
function
|
|
1210
|
+
function Rr(s, e, t) {
|
|
1211
1211
|
const r = Pt(s, e);
|
|
1212
1212
|
let n = t;
|
|
1213
1213
|
if (r instanceof a)
|
|
@@ -1234,28 +1234,28 @@ function Or(s, e, t) {
|
|
|
1234
1234
|
}
|
|
1235
1235
|
return !0;
|
|
1236
1236
|
}
|
|
1237
|
-
function
|
|
1237
|
+
function $r(s, e) {
|
|
1238
1238
|
switch (e.op) {
|
|
1239
1239
|
case "add":
|
|
1240
|
-
return Vr(s, e.path, e.val);
|
|
1241
|
-
case "replace":
|
|
1242
1240
|
return Dr(s, e.path, e.val);
|
|
1241
|
+
case "replace":
|
|
1242
|
+
return Fr(s, e.path, e.val);
|
|
1243
1243
|
case "remove":
|
|
1244
1244
|
return At(s, e.path);
|
|
1245
1245
|
case "copy":
|
|
1246
|
-
return Fr(s, e.from, e.path);
|
|
1247
|
-
case "move":
|
|
1248
1246
|
return Mr(s, e.from, e.path);
|
|
1247
|
+
case "move":
|
|
1248
|
+
return Or(s, e.from, e.path);
|
|
1249
1249
|
case "test":
|
|
1250
|
-
return
|
|
1250
|
+
return Rr(s, e.path, e.val);
|
|
1251
1251
|
}
|
|
1252
1252
|
}
|
|
1253
|
-
function
|
|
1253
|
+
function hn(s, e, t = !1) {
|
|
1254
1254
|
const r = t ? s : s.clone();
|
|
1255
|
-
return
|
|
1255
|
+
return $r(r, e), r;
|
|
1256
1256
|
}
|
|
1257
1257
|
const Ve = Symbol.for("zod-schema-annotations");
|
|
1258
|
-
function
|
|
1258
|
+
function xr() {
|
|
1259
1259
|
if (typeof globalThis < "u") return globalThis;
|
|
1260
1260
|
if (typeof global < "u") return global;
|
|
1261
1261
|
if (typeof window < "u") return window;
|
|
@@ -1263,56 +1263,56 @@ function $r() {
|
|
|
1263
1263
|
throw new Error("Unable to locate global object");
|
|
1264
1264
|
}
|
|
1265
1265
|
function Ct() {
|
|
1266
|
-
const s =
|
|
1266
|
+
const s = xr();
|
|
1267
1267
|
return Ve in s || (s[Ve] = /* @__PURE__ */ new WeakMap()), s[Ve];
|
|
1268
1268
|
}
|
|
1269
1269
|
function ie(s, e) {
|
|
1270
1270
|
const t = Ct(), r = t.get(s) || {};
|
|
1271
1271
|
return t.set(s, { ...r, ...e }), s;
|
|
1272
1272
|
}
|
|
1273
|
-
const A = (s) => Ct().get(s),
|
|
1273
|
+
const A = (s) => Ct().get(s), jr = (s) => (e) => {
|
|
1274
1274
|
const t = A(e);
|
|
1275
1275
|
return ie(e, {
|
|
1276
1276
|
...t,
|
|
1277
1277
|
blueDescription: s
|
|
1278
1278
|
});
|
|
1279
|
-
},
|
|
1279
|
+
}, Lr = (s) => {
|
|
1280
1280
|
const e = A(s);
|
|
1281
1281
|
return p(e) && Ye(e.blueDescription) ? e.blueDescription : null;
|
|
1282
|
-
},
|
|
1282
|
+
}, fn = (s) => jr(s)(h.string().optional()), Ur = h.union([h.string(), h.boolean()]), _r = (s) => (e) => {
|
|
1283
1283
|
const t = A(e);
|
|
1284
1284
|
return ie(e, {
|
|
1285
1285
|
...t,
|
|
1286
1286
|
blueId: s
|
|
1287
1287
|
});
|
|
1288
|
-
},
|
|
1289
|
-
const e = A(s), t =
|
|
1288
|
+
}, Zr = (s) => {
|
|
1289
|
+
const e = A(s), t = Ur.safeParse(e == null ? void 0 : e.blueId);
|
|
1290
1290
|
return t.success ? t.data : null;
|
|
1291
|
-
},
|
|
1291
|
+
}, gn = (s) => _r(s ?? !0)(h.string()), kr = (s) => (e) => {
|
|
1292
1292
|
const t = A(e);
|
|
1293
1293
|
return ie(e, {
|
|
1294
1294
|
...t,
|
|
1295
1295
|
blueName: s
|
|
1296
1296
|
});
|
|
1297
|
-
},
|
|
1297
|
+
}, Yr = (s) => {
|
|
1298
1298
|
const e = A(s);
|
|
1299
1299
|
return p(e) && Ye(e.blueName) ? e.blueName : null;
|
|
1300
|
-
},
|
|
1300
|
+
}, yn = (s) => {
|
|
1301
1301
|
const e = h.string().optional();
|
|
1302
|
-
return
|
|
1303
|
-
},
|
|
1302
|
+
return kr(s)(e);
|
|
1303
|
+
}, Kr = () => (s) => {
|
|
1304
1304
|
const e = A(s);
|
|
1305
1305
|
return ie(s, {
|
|
1306
1306
|
...e,
|
|
1307
1307
|
blueNode: !0
|
|
1308
1308
|
});
|
|
1309
|
-
},
|
|
1309
|
+
}, zr = (s) => {
|
|
1310
1310
|
const e = A(s);
|
|
1311
1311
|
return p(e) && p(e.blueNode) && e.blueNode === !0 ? e.blueNode : null;
|
|
1312
|
-
}, Vt = (s) => !!
|
|
1312
|
+
}, Vt = (s) => !!zr(s), mn = () => {
|
|
1313
1313
|
const s = h.instanceof(a);
|
|
1314
|
-
return
|
|
1315
|
-
}, Le = "extendedFrom",
|
|
1314
|
+
return Kr()(s);
|
|
1315
|
+
}, Le = "extendedFrom", Gr = ({
|
|
1316
1316
|
schema: s,
|
|
1317
1317
|
baseSchema: e
|
|
1318
1318
|
}) => {
|
|
@@ -1321,30 +1321,30 @@ const A = (s) => Ct().get(s), xr = (s) => (e) => {
|
|
|
1321
1321
|
...t,
|
|
1322
1322
|
[Le]: e
|
|
1323
1323
|
});
|
|
1324
|
-
},
|
|
1324
|
+
}, Jr = (s) => {
|
|
1325
1325
|
const e = A(s);
|
|
1326
1326
|
return p(e) && e[Le] ? e[Le] : null;
|
|
1327
1327
|
}, Dt = (s, e) => {
|
|
1328
|
-
const t =
|
|
1328
|
+
const t = Jr(s);
|
|
1329
1329
|
return I(t) ? !1 : (t == null ? void 0 : t._def) === (e == null ? void 0 : e._def) ? !0 : Dt(t, e);
|
|
1330
|
-
},
|
|
1330
|
+
}, Wr = (s) => new Proxy(s, {
|
|
1331
1331
|
get(e, t, r) {
|
|
1332
1332
|
return t === "extend" ? function(...n) {
|
|
1333
1333
|
const i = e.extend(...n);
|
|
1334
|
-
return
|
|
1334
|
+
return Gr({
|
|
1335
1335
|
schema: i,
|
|
1336
1336
|
baseSchema: e
|
|
1337
1337
|
});
|
|
1338
1338
|
} : Reflect.get(e, t, r);
|
|
1339
1339
|
}
|
|
1340
|
-
}),
|
|
1340
|
+
}), Hr = h.object({
|
|
1341
1341
|
value: h.array(h.string()).optional(),
|
|
1342
1342
|
defaultValue: h.string().optional()
|
|
1343
|
-
}),
|
|
1344
|
-
const e = A(s), t =
|
|
1343
|
+
}), Xr = (s) => {
|
|
1344
|
+
const e = A(s), t = Hr.passthrough().safeParse(e == null ? void 0 : e.typeBlueId);
|
|
1345
1345
|
return t.success ? t.data : null;
|
|
1346
|
-
},
|
|
1347
|
-
const t = A(e), r = typeof s == "string" ? { value: [s] } : s, n =
|
|
1346
|
+
}, In = (s) => (e) => {
|
|
1347
|
+
const t = A(e), r = typeof s == "string" ? { value: [s] } : s, n = Wr(e);
|
|
1348
1348
|
return ie(n, {
|
|
1349
1349
|
...t,
|
|
1350
1350
|
typeBlueId: {
|
|
@@ -1356,7 +1356,7 @@ const A = (s) => Ct().get(s), xr = (s) => (e) => {
|
|
|
1356
1356
|
class Pe {
|
|
1357
1357
|
static resolveBlueId(e) {
|
|
1358
1358
|
var i;
|
|
1359
|
-
const t =
|
|
1359
|
+
const t = Xr(e);
|
|
1360
1360
|
if (I(t))
|
|
1361
1361
|
return null;
|
|
1362
1362
|
const r = t.defaultValue;
|
|
@@ -1400,7 +1400,7 @@ class C {
|
|
|
1400
1400
|
return Vt(e) ? e : C.isWrapperType(e) ? e instanceof ye ? C.unwrapSchema(e.innerType()) : e instanceof me ? C.unwrapSchema(e.schema) : C.unwrapSchema(e.unwrap()) : e;
|
|
1401
1401
|
}
|
|
1402
1402
|
}
|
|
1403
|
-
class
|
|
1403
|
+
class qr {
|
|
1404
1404
|
constructor(e) {
|
|
1405
1405
|
u(this, "blueIdMap", /* @__PURE__ */ new Map());
|
|
1406
1406
|
this.registerSchemas(e);
|
|
@@ -1691,7 +1691,7 @@ class at {
|
|
|
1691
1691
|
return new tt(this.allowedPaths, this.maxDepth);
|
|
1692
1692
|
}
|
|
1693
1693
|
}
|
|
1694
|
-
class
|
|
1694
|
+
class Qr extends et {
|
|
1695
1695
|
/**
|
|
1696
1696
|
* Determines if a path segment should be extended - always returns true
|
|
1697
1697
|
* @returns Always true
|
|
@@ -1778,7 +1778,7 @@ class rt extends et {
|
|
|
1778
1778
|
return new rt(t);
|
|
1779
1779
|
}
|
|
1780
1780
|
}
|
|
1781
|
-
const q = new
|
|
1781
|
+
const q = new Qr();
|
|
1782
1782
|
function De(s, e) {
|
|
1783
1783
|
const t = s.getType();
|
|
1784
1784
|
if (t === void 0)
|
|
@@ -1788,7 +1788,7 @@ function De(s, e) {
|
|
|
1788
1788
|
if (ue.includes(
|
|
1789
1789
|
r
|
|
1790
1790
|
)) {
|
|
1791
|
-
const i =
|
|
1791
|
+
const i = fr[r];
|
|
1792
1792
|
return new a().setBlueId(r).setName(i);
|
|
1793
1793
|
}
|
|
1794
1794
|
const n = e.fetchByBlueId(r);
|
|
@@ -1825,41 +1825,41 @@ function P(s, e, t) {
|
|
|
1825
1825
|
}
|
|
1826
1826
|
return !1;
|
|
1827
1827
|
}
|
|
1828
|
-
function
|
|
1828
|
+
function es(s, e) {
|
|
1829
1829
|
return vt.some((t) => {
|
|
1830
1830
|
const r = new a().setBlueId(t);
|
|
1831
1831
|
return P(s, r, e);
|
|
1832
1832
|
});
|
|
1833
1833
|
}
|
|
1834
|
-
function
|
|
1834
|
+
function ts(s, e) {
|
|
1835
1835
|
const t = new a().setBlueId(Y);
|
|
1836
1836
|
return P(s, t, e);
|
|
1837
1837
|
}
|
|
1838
|
-
function
|
|
1838
|
+
function rs(s, e) {
|
|
1839
1839
|
const t = new a().setBlueId(z);
|
|
1840
1840
|
return P(s, t, e);
|
|
1841
1841
|
}
|
|
1842
|
-
function
|
|
1842
|
+
function ss(s, e) {
|
|
1843
1843
|
const t = new a().setBlueId(K);
|
|
1844
1844
|
return P(s, t, e);
|
|
1845
1845
|
}
|
|
1846
|
-
function
|
|
1846
|
+
function ns(s, e) {
|
|
1847
1847
|
const t = new a().setBlueId(G);
|
|
1848
1848
|
return P(s, t, e);
|
|
1849
1849
|
}
|
|
1850
|
-
function
|
|
1850
|
+
function is(s) {
|
|
1851
1851
|
return (s == null ? void 0 : s.getBlueId()) === bt;
|
|
1852
1852
|
}
|
|
1853
|
-
function
|
|
1853
|
+
function os(s) {
|
|
1854
1854
|
return (s == null ? void 0 : s.getBlueId()) === wt;
|
|
1855
1855
|
}
|
|
1856
|
-
function
|
|
1856
|
+
function ls(s, e) {
|
|
1857
1857
|
return He.some((t) => {
|
|
1858
1858
|
const r = new a().setName(t);
|
|
1859
1859
|
return P(s, r, e);
|
|
1860
1860
|
});
|
|
1861
1861
|
}
|
|
1862
|
-
function
|
|
1862
|
+
function cs(s, e) {
|
|
1863
1863
|
for (const t of He) {
|
|
1864
1864
|
const r = new a().setName(t);
|
|
1865
1865
|
if (P(s, r, e))
|
|
@@ -1869,12 +1869,12 @@ function ls(s, e) {
|
|
|
1869
1869
|
`Cannot determine the basic type for node of type "${s.getName() || "unknown"}".`
|
|
1870
1870
|
);
|
|
1871
1871
|
}
|
|
1872
|
-
const
|
|
1872
|
+
const as = (s) => s instanceof ht || s instanceof ft || s instanceof gt || s instanceof yt || s instanceof ye || s instanceof me, us = (s) => s instanceof H || s instanceof X || s instanceof pe || s instanceof he;
|
|
1873
1873
|
class Ft {
|
|
1874
1874
|
static convertValue(e, t) {
|
|
1875
1875
|
var i;
|
|
1876
1876
|
const r = (i = e.getType()) == null ? void 0 : i.getBlueId(), n = e.getValue();
|
|
1877
|
-
return I(n) ?
|
|
1877
|
+
return I(n) ? us(t) && Qe.isValidValueNode(e) ? this.getDefaultPrimitiveValue(t) : n : Y === r ? this.convertFromString(String(n), t) : K === r || n instanceof E ? this.convertFromBigDecimal(
|
|
1878
1878
|
new E(n == null ? void 0 : n.toString()),
|
|
1879
1879
|
t
|
|
1880
1880
|
) : z === r || n instanceof v ? this.convertFromBigInteger(
|
|
@@ -1883,7 +1883,7 @@ class Ft {
|
|
|
1883
1883
|
) : G === r || typeof n == "boolean" ? this.convertFromBoolean(!!n, t) : this.convertFromString(String(n), t);
|
|
1884
1884
|
}
|
|
1885
1885
|
static convertFromString(e, t) {
|
|
1886
|
-
if (!t || t instanceof H || t instanceof
|
|
1886
|
+
if (!t || t instanceof H || t instanceof Ht || t instanceof Xt)
|
|
1887
1887
|
return e;
|
|
1888
1888
|
if (t instanceof X)
|
|
1889
1889
|
return Number(e);
|
|
@@ -1933,12 +1933,12 @@ class Ft {
|
|
|
1933
1933
|
);
|
|
1934
1934
|
}
|
|
1935
1935
|
}
|
|
1936
|
-
class
|
|
1936
|
+
class ds {
|
|
1937
1937
|
convert(e, t) {
|
|
1938
1938
|
return Ft.convertValue(e, t);
|
|
1939
1939
|
}
|
|
1940
1940
|
}
|
|
1941
|
-
class
|
|
1941
|
+
class ps {
|
|
1942
1942
|
constructor(e) {
|
|
1943
1943
|
this.nodeToObjectConverter = e;
|
|
1944
1944
|
}
|
|
@@ -1946,25 +1946,25 @@ class ds {
|
|
|
1946
1946
|
return this.convertFields(e, t);
|
|
1947
1947
|
}
|
|
1948
1948
|
convertFields(e, t) {
|
|
1949
|
-
if (t instanceof
|
|
1949
|
+
if (t instanceof qt) {
|
|
1950
1950
|
const r = t._def.left, n = t._def.right, i = this.convert(e, r), o = this.convert(e, n);
|
|
1951
1951
|
return { ...i, ...o };
|
|
1952
1952
|
}
|
|
1953
|
-
if (t instanceof qt)
|
|
1954
|
-
throw new Error("Union not supported");
|
|
1955
1953
|
if (t instanceof Qt)
|
|
1954
|
+
throw new Error("Union not supported");
|
|
1955
|
+
if (t instanceof er)
|
|
1956
1956
|
return Object.keys(t.shape).reduce((n, i) => {
|
|
1957
|
-
const o = e.getProperties(), l = t.shape[i], c =
|
|
1957
|
+
const o = e.getProperties(), l = t.shape[i], c = Zr(l);
|
|
1958
1958
|
if (p(c)) {
|
|
1959
1959
|
const b = Ye(c) ? c : i, j = o == null ? void 0 : o[b], J = j ? w.calculateBlueIdSync(j) : void 0;
|
|
1960
1960
|
return n[i] = J, n;
|
|
1961
1961
|
}
|
|
1962
|
-
const d =
|
|
1962
|
+
const d = Yr(l);
|
|
1963
1963
|
if (p(d)) {
|
|
1964
1964
|
const b = o == null ? void 0 : o[d];
|
|
1965
1965
|
return n[i] = b == null ? void 0 : b.getName(), n;
|
|
1966
1966
|
}
|
|
1967
|
-
const T =
|
|
1967
|
+
const T = Lr(l);
|
|
1968
1968
|
if (p(T)) {
|
|
1969
1969
|
const b = o == null ? void 0 : o[T];
|
|
1970
1970
|
return n[i] = b == null ? void 0 : b.getDescription(), n;
|
|
@@ -1989,7 +1989,7 @@ class ds {
|
|
|
1989
1989
|
throw new Error("Unknown schema type, " + t._def.typeName);
|
|
1990
1990
|
}
|
|
1991
1991
|
}
|
|
1992
|
-
class
|
|
1992
|
+
class hs {
|
|
1993
1993
|
constructor(e) {
|
|
1994
1994
|
this.nodeToObjectConverter = e;
|
|
1995
1995
|
}
|
|
@@ -2003,7 +2003,7 @@ class ps {
|
|
|
2003
2003
|
);
|
|
2004
2004
|
}
|
|
2005
2005
|
}
|
|
2006
|
-
class
|
|
2006
|
+
class fs {
|
|
2007
2007
|
constructor(e) {
|
|
2008
2008
|
this.nodeToObjectConverter = e;
|
|
2009
2009
|
}
|
|
@@ -2017,7 +2017,7 @@ class hs {
|
|
|
2017
2017
|
return new Set(i);
|
|
2018
2018
|
}
|
|
2019
2019
|
}
|
|
2020
|
-
class
|
|
2020
|
+
class gs {
|
|
2021
2021
|
constructor(e) {
|
|
2022
2022
|
this.nodeToObjectConverter = e;
|
|
2023
2023
|
}
|
|
@@ -2032,20 +2032,20 @@ class fs {
|
|
|
2032
2032
|
y.setType(new a().setBlueId(Y));
|
|
2033
2033
|
const m = Ft.convertValue(y, r), b = this.nodeToObjectConverter.convert(T, n);
|
|
2034
2034
|
i.set(m, b);
|
|
2035
|
-
}), t instanceof
|
|
2035
|
+
}), t instanceof tr ? Object.fromEntries(i) : i;
|
|
2036
2036
|
}
|
|
2037
2037
|
}
|
|
2038
|
-
class
|
|
2038
|
+
class ys {
|
|
2039
2039
|
convert(e) {
|
|
2040
2040
|
return g.get(e);
|
|
2041
2041
|
}
|
|
2042
2042
|
}
|
|
2043
|
-
class
|
|
2043
|
+
class ms {
|
|
2044
2044
|
convert(e) {
|
|
2045
2045
|
return g.get(e);
|
|
2046
2046
|
}
|
|
2047
2047
|
}
|
|
2048
|
-
class
|
|
2048
|
+
class Is {
|
|
2049
2049
|
constructor(e) {
|
|
2050
2050
|
this.nodeToObjectConverter = e;
|
|
2051
2051
|
}
|
|
@@ -2059,7 +2059,7 @@ class ms {
|
|
|
2059
2059
|
);
|
|
2060
2060
|
}
|
|
2061
2061
|
}
|
|
2062
|
-
const
|
|
2062
|
+
const Ts = h.union([
|
|
2063
2063
|
h.literal("ZodString"),
|
|
2064
2064
|
h.literal("ZodNumber"),
|
|
2065
2065
|
h.literal("ZodBoolean"),
|
|
@@ -2075,37 +2075,37 @@ const Is = h.union([
|
|
|
2075
2075
|
h.literal("ZodAny"),
|
|
2076
2076
|
h.literal("ZodTuple")
|
|
2077
2077
|
]);
|
|
2078
|
-
class
|
|
2078
|
+
class bs {
|
|
2079
2079
|
constructor(e) {
|
|
2080
2080
|
u(this, "converters", /* @__PURE__ */ new Map());
|
|
2081
2081
|
u(this, "complexObjectConverter");
|
|
2082
|
-
this.nodeToObjectConverter = e, this.registerConverters(), this.complexObjectConverter = new
|
|
2082
|
+
this.nodeToObjectConverter = e, this.registerConverters(), this.complexObjectConverter = new ps(
|
|
2083
2083
|
this.nodeToObjectConverter
|
|
2084
2084
|
);
|
|
2085
2085
|
}
|
|
2086
2086
|
registerConverters() {
|
|
2087
|
-
const e = new
|
|
2088
|
-
this.converters.set("ZodString", e), this.converters.set("ZodNumber", e), this.converters.set("ZodBoolean", e), this.converters.set("ZodBigInt", e), this.converters.set("ZodEnum", e), this.converters.set("ZodNativeEnum", e), this.converters.set("ZodUnknown", new
|
|
2087
|
+
const e = new ds(), t = new hs(this.nodeToObjectConverter), r = new Is(this.nodeToObjectConverter), n = new fs(this.nodeToObjectConverter), i = new gs(this.nodeToObjectConverter);
|
|
2088
|
+
this.converters.set("ZodString", e), this.converters.set("ZodNumber", e), this.converters.set("ZodBoolean", e), this.converters.set("ZodBigInt", e), this.converters.set("ZodEnum", e), this.converters.set("ZodNativeEnum", e), this.converters.set("ZodUnknown", new ys()), this.converters.set("ZodAny", new ms()), this.converters.set("ZodArray", t), this.converters.set("ZodTuple", r), this.converters.set("ZodSet", n), this.converters.set("ZodMap", i), this.converters.set("ZodRecord", i), this.converters.set("ZodObject", this.complexObjectConverter);
|
|
2089
2089
|
}
|
|
2090
2090
|
getConverter(e) {
|
|
2091
2091
|
const t = this.getSchemaTypeName(e);
|
|
2092
2092
|
return this.converters.get(t) ?? this.complexObjectConverter;
|
|
2093
2093
|
}
|
|
2094
2094
|
getSchemaTypeName(e) {
|
|
2095
|
-
if (
|
|
2095
|
+
if (as(e))
|
|
2096
2096
|
return e instanceof ye ? this.getSchemaTypeName(e.innerType()) : e instanceof me ? this.getSchemaTypeName(e.schema) : this.getSchemaTypeName(e.unwrap());
|
|
2097
2097
|
const t = e._def.typeName;
|
|
2098
2098
|
try {
|
|
2099
|
-
return
|
|
2099
|
+
return Ts.parse(t);
|
|
2100
2100
|
} catch {
|
|
2101
2101
|
throw new Error(`Schema type name ${t} is not supported`);
|
|
2102
2102
|
}
|
|
2103
2103
|
}
|
|
2104
2104
|
}
|
|
2105
|
-
class
|
|
2105
|
+
class ws {
|
|
2106
2106
|
constructor(e) {
|
|
2107
2107
|
u(this, "converterFactory");
|
|
2108
|
-
this.typeSchemaResolver = e, this.converterFactory = new
|
|
2108
|
+
this.typeSchemaResolver = e, this.converterFactory = new bs(this);
|
|
2109
2109
|
}
|
|
2110
2110
|
convert(e, t) {
|
|
2111
2111
|
var o;
|
|
@@ -2135,14 +2135,14 @@ class de {
|
|
|
2135
2135
|
return t && t.length > 0 ? t[0] : null;
|
|
2136
2136
|
}
|
|
2137
2137
|
}
|
|
2138
|
-
function
|
|
2138
|
+
function vs(s) {
|
|
2139
2139
|
return new class extends de {
|
|
2140
2140
|
fetchByBlueId(e) {
|
|
2141
2141
|
return s(e);
|
|
2142
2142
|
}
|
|
2143
2143
|
}();
|
|
2144
2144
|
}
|
|
2145
|
-
class
|
|
2145
|
+
class Bs extends de {
|
|
2146
2146
|
constructor(t) {
|
|
2147
2147
|
super();
|
|
2148
2148
|
u(this, "nodeProviders");
|
|
@@ -2170,7 +2170,7 @@ class vs extends de {
|
|
|
2170
2170
|
return this.nodeProviders;
|
|
2171
2171
|
}
|
|
2172
2172
|
}
|
|
2173
|
-
const Fe = k.types.float.options,
|
|
2173
|
+
const Fe = k.types.float.options, Ns = {
|
|
2174
2174
|
...Fe,
|
|
2175
2175
|
construct: (s) => {
|
|
2176
2176
|
const e = s.replace(/_/g, "").toLowerCase();
|
|
@@ -2179,7 +2179,7 @@ const Fe = k.types.float.options, Bs = {
|
|
|
2179
2179
|
if (Fe.construct)
|
|
2180
2180
|
return Fe.construct(s);
|
|
2181
2181
|
}
|
|
2182
|
-
},
|
|
2182
|
+
}, Es = new k.Type("tag:yaml.org,2002:float", Ns), Me = k.types.int.options, Ps = {
|
|
2183
2183
|
...Me,
|
|
2184
2184
|
construct: (s) => {
|
|
2185
2185
|
let e = s;
|
|
@@ -2188,12 +2188,12 @@ const Fe = k.types.float.options, Bs = {
|
|
|
2188
2188
|
if (Me.construct)
|
|
2189
2189
|
return Me.construct(s);
|
|
2190
2190
|
}
|
|
2191
|
-
},
|
|
2192
|
-
implicit: [
|
|
2191
|
+
}, Ss = new k.Type("tag:yaml.org,2002:int", Ps), Mt = k.CORE_SCHEMA.extend({
|
|
2192
|
+
implicit: [Es, Ss]
|
|
2193
2193
|
}), x = (s) => {
|
|
2194
2194
|
const e = k.load(s, { schema: Mt });
|
|
2195
2195
|
return e === void 0 ? void 0 : e;
|
|
2196
|
-
},
|
|
2196
|
+
}, Tn = (s) => k.dump(s, {
|
|
2197
2197
|
schema: Mt,
|
|
2198
2198
|
replacer: (e, t) => {
|
|
2199
2199
|
if (D(t)) {
|
|
@@ -2217,20 +2217,20 @@ const Fe = k.types.float.options, Bs = {
|
|
|
2217
2217
|
Dictionary: 294NBTj2mFRL3RB4kDRUSckwGg7Kzj6T8CTAFeR1kcSA
|
|
2218
2218
|
- type:
|
|
2219
2219
|
blueId: FGYuTXwaoSKfZmpTysLTLsb8WzSqf43384rKZDkXhxD4
|
|
2220
|
-
`,
|
|
2221
|
-
description: TODO`,
|
|
2220
|
+
`, As = `name: Transformation
|
|
2221
|
+
description: TODO`, Cs = `name: Infer Basic Types For Untyped Values
|
|
2222
2222
|
type:
|
|
2223
2223
|
blueId: Ct1SGRGw1i47qjzm1ruiUdSZofeV6WevPTGuieVvbRS4
|
|
2224
|
-
description: This transformation infers type details for Text, Integer, Number and Boolean.`,
|
|
2224
|
+
description: This transformation infers type details for Text, Integer, Number and Boolean.`, Vs = `name: Replace Inline Types with BlueIds
|
|
2225
2225
|
type:
|
|
2226
2226
|
blueId: Ct1SGRGw1i47qjzm1ruiUdSZofeV6WevPTGuieVvbRS4
|
|
2227
|
-
description: This transformation replaces`,
|
|
2227
|
+
description: This transformation replaces`, Ds = [
|
|
2228
2228
|
Ot,
|
|
2229
|
-
Ss,
|
|
2230
2229
|
As,
|
|
2231
|
-
Cs
|
|
2230
|
+
Cs,
|
|
2231
|
+
Vs
|
|
2232
2232
|
];
|
|
2233
|
-
class
|
|
2233
|
+
class Fs extends de {
|
|
2234
2234
|
constructor() {
|
|
2235
2235
|
super();
|
|
2236
2236
|
u(this, "blueIdToNodesMap", /* @__PURE__ */ new Map());
|
|
@@ -2240,7 +2240,7 @@ class Ds extends de {
|
|
|
2240
2240
|
return this.blueIdToNodesMap.get(t) || [];
|
|
2241
2241
|
}
|
|
2242
2242
|
load() {
|
|
2243
|
-
for (const t of
|
|
2243
|
+
for (const t of Ds) {
|
|
2244
2244
|
const r = x(t);
|
|
2245
2245
|
if (r === void 0) {
|
|
2246
2246
|
console.error(`This content file is not valid YAML: ${t}`);
|
|
@@ -2262,7 +2262,7 @@ const ve = class ve extends de {
|
|
|
2262
2262
|
constructor() {
|
|
2263
2263
|
super();
|
|
2264
2264
|
u(this, "nodeProvider");
|
|
2265
|
-
this.nodeProvider = new
|
|
2265
|
+
this.nodeProvider = new Fs();
|
|
2266
2266
|
}
|
|
2267
2267
|
fetchByBlueId(t) {
|
|
2268
2268
|
return this.nodeProvider.fetchByBlueId(t);
|
|
@@ -2362,7 +2362,7 @@ class O {
|
|
|
2362
2362
|
}
|
|
2363
2363
|
}
|
|
2364
2364
|
u(O, "THIS_REFERENCE_PATTERN", /^this(#\d+)?$/);
|
|
2365
|
-
class
|
|
2365
|
+
class Ms extends de {
|
|
2366
2366
|
fetchByBlueId(e) {
|
|
2367
2367
|
const t = e.split("#")[0], r = this.fetchContentByBlueId(t);
|
|
2368
2368
|
if (r == null)
|
|
@@ -2394,7 +2394,7 @@ class Fs extends de {
|
|
|
2394
2394
|
}
|
|
2395
2395
|
}
|
|
2396
2396
|
}
|
|
2397
|
-
class Rt extends
|
|
2397
|
+
class Rt extends Ms {
|
|
2398
2398
|
constructor() {
|
|
2399
2399
|
super(...arguments);
|
|
2400
2400
|
u(this, "nameToBlueIdsMap", /* @__PURE__ */ new Map());
|
|
@@ -2441,17 +2441,17 @@ class Rt extends Fs {
|
|
|
2441
2441
|
]);
|
|
2442
2442
|
}
|
|
2443
2443
|
}
|
|
2444
|
-
const $t = (s) => s instanceof a || Array.isArray(s) && s.every((e) => e instanceof a) ? s : ke(s) ? s.map((e) => f.deserialize(e)) : f.deserialize(s),
|
|
2444
|
+
const $t = (s) => s instanceof a || Array.isArray(s) && s.every((e) => e instanceof a) ? s : ke(s) ? s.map((e) => f.deserialize(e)) : f.deserialize(s), Os = async (s) => {
|
|
2445
2445
|
const e = $t(s);
|
|
2446
2446
|
return w.calculateBlueId(e);
|
|
2447
|
-
},
|
|
2447
|
+
}, bn = (s) => {
|
|
2448
2448
|
const e = $t(s);
|
|
2449
2449
|
return w.calculateBlueIdSync(e);
|
|
2450
2450
|
}, ut = async (s) => {
|
|
2451
|
-
if (
|
|
2451
|
+
if (gr(s))
|
|
2452
2452
|
return s;
|
|
2453
2453
|
try {
|
|
2454
|
-
const e = Te.parse(s), t = await
|
|
2454
|
+
const e = Te.parse(s), t = await Os(e);
|
|
2455
2455
|
return {
|
|
2456
2456
|
...s,
|
|
2457
2457
|
blueId: t
|
|
@@ -2459,10 +2459,10 @@ const $t = (s) => s instanceof a || Array.isArray(s) && s.every((e) => e instanc
|
|
|
2459
2459
|
} catch (e) {
|
|
2460
2460
|
throw new Error(`Failed enriching object with Blue ID: ${e}`);
|
|
2461
2461
|
}
|
|
2462
|
-
},
|
|
2462
|
+
}, wn = (s) => s == null ? void 0 : s.items, vn = (s) => s == null ? void 0 : s.value, Bn = (s) => I(s) ? {} : It(
|
|
2463
2463
|
s,
|
|
2464
|
-
|
|
2465
|
-
),
|
|
2464
|
+
lr
|
|
2465
|
+
), Nn = (s) => mr(s) ? s.type.name ?? null : Ir(s) ? rr(typeof s.value) : yr(s) ? "List" : null, Rs = (s) => p(s) && Object.keys(It(s, ["blueId"])).length > 0, En = (s) => {
|
|
2466
2466
|
try {
|
|
2467
2467
|
const e = f.deserialize(s), t = g.get(e);
|
|
2468
2468
|
return ce.parse(t);
|
|
@@ -2477,10 +2477,10 @@ const $t = (s) => s instanceof a || Array.isArray(s) && s.every((e) => e instanc
|
|
|
2477
2477
|
signal: t = new AbortController().signal,
|
|
2478
2478
|
omitItems: r
|
|
2479
2479
|
} = s, n = s.count ?? s.items.length;
|
|
2480
|
-
let i = await
|
|
2480
|
+
let i = await sr(s.items, async (l) => await ut(l));
|
|
2481
2481
|
const o = Math.max((i == null ? void 0 : i.length) - n, 0);
|
|
2482
2482
|
for (let l = i.length - 1; l >= o; l--)
|
|
2483
|
-
if (!
|
|
2483
|
+
if (!Rs(i[l])) {
|
|
2484
2484
|
const c = await e(i[l], { signal: t });
|
|
2485
2485
|
if (Array.isArray(c))
|
|
2486
2486
|
return dt({
|
|
@@ -2513,7 +2513,7 @@ function fe(s) {
|
|
|
2513
2513
|
return !1;
|
|
2514
2514
|
}
|
|
2515
2515
|
}
|
|
2516
|
-
class
|
|
2516
|
+
class $s {
|
|
2517
2517
|
/**
|
|
2518
2518
|
* Process a document node to infer basic types for untyped values
|
|
2519
2519
|
* @param document - The document to process
|
|
@@ -2578,7 +2578,7 @@ const oe = class oe {
|
|
|
2578
2578
|
};
|
|
2579
2579
|
u(oe, "MAPPINGS", "mappings");
|
|
2580
2580
|
let _e = oe;
|
|
2581
|
-
class
|
|
2581
|
+
class xs {
|
|
2582
2582
|
/**
|
|
2583
2583
|
* Process a document node to validate all inline types have been replaced
|
|
2584
2584
|
* @param document - The document to process
|
|
@@ -2823,7 +2823,7 @@ const Be = class Be {
|
|
|
2823
2823
|
}
|
|
2824
2824
|
r.setBlue(void 0);
|
|
2825
2825
|
}
|
|
2826
|
-
r = new
|
|
2826
|
+
r = new xs().process(
|
|
2827
2827
|
r
|
|
2828
2828
|
);
|
|
2829
2829
|
}
|
|
@@ -2843,7 +2843,7 @@ const Be = class Be {
|
|
|
2843
2843
|
e
|
|
2844
2844
|
);
|
|
2845
2845
|
if (r === n)
|
|
2846
|
-
return new
|
|
2846
|
+
return new $s();
|
|
2847
2847
|
}
|
|
2848
2848
|
};
|
|
2849
2849
|
}
|
|
@@ -2877,7 +2877,7 @@ ${t}
|
|
|
2877
2877
|
};
|
|
2878
2878
|
u(Be, "DEFAULT_BLUE_BLUE_ID", "FREHAAGDZSzpnoTUoCQ86bBmxbVCULMjvx9JZM6fyqT1");
|
|
2879
2879
|
let re = Be;
|
|
2880
|
-
class
|
|
2880
|
+
class js extends Rt {
|
|
2881
2881
|
constructor(t) {
|
|
2882
2882
|
super();
|
|
2883
2883
|
u(this, "blueIdToContentMap", /* @__PURE__ */ new Map());
|
|
@@ -2954,13 +2954,13 @@ class ae {
|
|
|
2954
2954
|
static wrap(e, t) {
|
|
2955
2955
|
const r = [Ue.INSTANCE];
|
|
2956
2956
|
if (t && t.length > 0) {
|
|
2957
|
-
const n = new
|
|
2957
|
+
const n = new js(t);
|
|
2958
2958
|
r.push(n);
|
|
2959
2959
|
}
|
|
2960
|
-
return r.push(e), new
|
|
2960
|
+
return r.push(e), new Bs(r);
|
|
2961
2961
|
}
|
|
2962
2962
|
}
|
|
2963
|
-
class
|
|
2963
|
+
class Ls {
|
|
2964
2964
|
/**
|
|
2965
2965
|
* Creates a new BlueDirectivePreprocessor
|
|
2966
2966
|
*
|
|
@@ -3102,21 +3102,21 @@ ${n.message}`
|
|
|
3102
3102
|
return this.urlContentFetcher;
|
|
3103
3103
|
}
|
|
3104
3104
|
}
|
|
3105
|
-
const
|
|
3105
|
+
const Us = {
|
|
3106
3106
|
fetchUrl: async (s) => {
|
|
3107
3107
|
throw new Error(
|
|
3108
3108
|
`You must provide a custom UrlFetchStrategy to fetch content from URL: ${s}`
|
|
3109
3109
|
);
|
|
3110
3110
|
}
|
|
3111
3111
|
};
|
|
3112
|
-
class
|
|
3112
|
+
class _s {
|
|
3113
3113
|
constructor(e) {
|
|
3114
3114
|
// Cache to avoid repeated network requests for the same URL
|
|
3115
3115
|
u(this, "cache", /* @__PURE__ */ new Map());
|
|
3116
3116
|
u(this, "fetchStrategy");
|
|
3117
3117
|
u(this, "enabled", !1);
|
|
3118
3118
|
u(this, "allowedDomains", []);
|
|
3119
|
-
this.fetchStrategy = e ||
|
|
3119
|
+
this.fetchStrategy = e || Us;
|
|
3120
3120
|
}
|
|
3121
3121
|
validateUrl(e) {
|
|
3122
3122
|
if (!fe(e))
|
|
@@ -3386,7 +3386,7 @@ class nt extends a {
|
|
|
3386
3386
|
t !== void 0 && this.setValue(t);
|
|
3387
3387
|
}
|
|
3388
3388
|
}
|
|
3389
|
-
class
|
|
3389
|
+
class Zs {
|
|
3390
3390
|
/**
|
|
3391
3391
|
* Resolves a node without limits
|
|
3392
3392
|
* Default implementation that uses NO_LIMITS
|
|
@@ -3398,7 +3398,7 @@ class _s {
|
|
|
3398
3398
|
return this.resolve(e, q);
|
|
3399
3399
|
}
|
|
3400
3400
|
}
|
|
3401
|
-
class
|
|
3401
|
+
class ks extends Zs {
|
|
3402
3402
|
/**
|
|
3403
3403
|
* Creates a new Merger with the specified MergingProcessor and NodeProvider
|
|
3404
3404
|
* @param mergingProcessor - The processor to use for merge operations
|
|
@@ -3563,7 +3563,7 @@ class Ut {
|
|
|
3563
3563
|
const n = e.getValue();
|
|
3564
3564
|
if (I(n))
|
|
3565
3565
|
return e.clone().setValue(r);
|
|
3566
|
-
if (!
|
|
3566
|
+
if (!Ys(r, n))
|
|
3567
3567
|
throw new Error(
|
|
3568
3568
|
`Node values conflict. Source node value: ${r}, target node value: ${n}`
|
|
3569
3569
|
);
|
|
@@ -3571,7 +3571,7 @@ class Ut {
|
|
|
3571
3571
|
return e;
|
|
3572
3572
|
}
|
|
3573
3573
|
}
|
|
3574
|
-
const
|
|
3574
|
+
const Ys = (s, e) => Z(s) && Z(e) || Re(s) && Re(e) ? s.eq(e) : s === e;
|
|
3575
3575
|
class _t {
|
|
3576
3576
|
process(e, t, r) {
|
|
3577
3577
|
const n = e.getType(), i = t.getType();
|
|
@@ -3600,7 +3600,7 @@ class _t {
|
|
|
3600
3600
|
}
|
|
3601
3601
|
class Zt {
|
|
3602
3602
|
process(e, t, r) {
|
|
3603
|
-
if (t.getItemType() !== void 0 && !
|
|
3603
|
+
if (t.getItemType() !== void 0 && !is(t.getType()))
|
|
3604
3604
|
throw new Error("Source node with itemType must have a List type");
|
|
3605
3605
|
const n = e.getItemType(), i = t.getItemType();
|
|
3606
3606
|
let o = e;
|
|
@@ -3649,7 +3649,7 @@ class Zt {
|
|
|
3649
3649
|
}
|
|
3650
3650
|
class kt {
|
|
3651
3651
|
process(e, t, r) {
|
|
3652
|
-
if ((t.getKeyType() !== void 0 || t.getValueType() !== void 0) && !
|
|
3652
|
+
if ((t.getKeyType() !== void 0 || t.getValueType() !== void 0) && !os(t.getType()))
|
|
3653
3653
|
throw new Error(
|
|
3654
3654
|
"Source node with keyType or valueType must have a Dictionary type"
|
|
3655
3655
|
);
|
|
@@ -3709,20 +3709,20 @@ class kt {
|
|
|
3709
3709
|
return e;
|
|
3710
3710
|
}
|
|
3711
3711
|
validateBasicKeyType(e, t) {
|
|
3712
|
-
if (!
|
|
3712
|
+
if (!es(e, t))
|
|
3713
3713
|
throw new Error("Dictionary key type must be a basic type");
|
|
3714
3714
|
}
|
|
3715
3715
|
validateKeyType(e, t, r) {
|
|
3716
|
-
if (!
|
|
3717
|
-
if (
|
|
3716
|
+
if (!ts(t, r))
|
|
3717
|
+
if (rs(t, r)) {
|
|
3718
3718
|
const n = Number.parseInt(e, 10);
|
|
3719
3719
|
if (Number.isNaN(n) || n.toString() !== e)
|
|
3720
3720
|
throw new Error(`Key '${e}' is not a valid Integer.`);
|
|
3721
|
-
} else if (
|
|
3721
|
+
} else if (ss(t, r)) {
|
|
3722
3722
|
const n = Number.parseFloat(e);
|
|
3723
3723
|
if (Number.isNaN(n))
|
|
3724
3724
|
throw new Error(`Key '${e}' is not a valid Number.`);
|
|
3725
|
-
} else if (
|
|
3725
|
+
} else if (ns(t, r)) {
|
|
3726
3726
|
if (e.toLowerCase() !== "true" && e.toLowerCase() !== "false")
|
|
3727
3727
|
throw new Error(`Key '${e}' is not a valid Boolean.`);
|
|
3728
3728
|
} else
|
|
@@ -3750,10 +3750,10 @@ class Yt {
|
|
|
3750
3750
|
}
|
|
3751
3751
|
postProcess(e, t, r) {
|
|
3752
3752
|
const n = e.getType();
|
|
3753
|
-
if (n !== void 0 &&
|
|
3753
|
+
if (n !== void 0 && ls(n, r)) {
|
|
3754
3754
|
const i = e.getItems(), o = e.getProperties();
|
|
3755
3755
|
if (i !== void 0 && i.length > 0 || o !== void 0 && Object.keys(o).length > 0) {
|
|
3756
|
-
const l =
|
|
3756
|
+
const l = cs(
|
|
3757
3757
|
n,
|
|
3758
3758
|
r
|
|
3759
3759
|
), c = n.getName() || "unknown";
|
|
@@ -3765,25 +3765,36 @@ class Yt {
|
|
|
3765
3765
|
return e;
|
|
3766
3766
|
}
|
|
3767
3767
|
}
|
|
3768
|
-
|
|
3768
|
+
class Kt {
|
|
3769
|
+
process(e, t) {
|
|
3770
|
+
let r = e;
|
|
3771
|
+
const n = t.getName(), i = e.getName();
|
|
3772
|
+
n !== void 0 && i === void 0 && (r = r.clone().setName(n));
|
|
3773
|
+
const o = t.getDescription(), l = r.getDescription();
|
|
3774
|
+
return o !== void 0 && l === void 0 && (r = r.clone().setDescription(o)), r;
|
|
3775
|
+
}
|
|
3776
|
+
}
|
|
3777
|
+
const Pn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3769
3778
|
__proto__: null,
|
|
3770
3779
|
BasicTypesVerifier: Yt,
|
|
3771
3780
|
DictionaryProcessor: kt,
|
|
3772
3781
|
ListProcessor: Zt,
|
|
3782
|
+
MetadataPropagator: Kt,
|
|
3773
3783
|
SequentialMergingProcessor: Lt,
|
|
3774
3784
|
TypeAssigner: _t,
|
|
3775
3785
|
ValuePropagator: Ut
|
|
3776
3786
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3777
|
-
function
|
|
3787
|
+
function Ks() {
|
|
3778
3788
|
return new Lt([
|
|
3779
3789
|
new Ut(),
|
|
3780
3790
|
new _t(),
|
|
3781
3791
|
new Zt(),
|
|
3782
3792
|
new kt(),
|
|
3793
|
+
new Kt(),
|
|
3783
3794
|
new Yt()
|
|
3784
3795
|
]);
|
|
3785
3796
|
}
|
|
3786
|
-
class
|
|
3797
|
+
class Sn {
|
|
3787
3798
|
constructor(e = {}) {
|
|
3788
3799
|
u(this, "nodeProvider");
|
|
3789
3800
|
u(this, "typeSchemaResolver");
|
|
@@ -3810,11 +3821,11 @@ class Pn {
|
|
|
3810
3821
|
mergingProcessor: o
|
|
3811
3822
|
} = e;
|
|
3812
3823
|
this.repositories = i;
|
|
3813
|
-
const l =
|
|
3824
|
+
const l = vs(() => []);
|
|
3814
3825
|
if (this.nodeProvider = ae.wrap(
|
|
3815
3826
|
t || l,
|
|
3816
3827
|
i
|
|
3817
|
-
), this.typeSchemaResolver = r ?? new
|
|
3828
|
+
), this.typeSchemaResolver = r ?? new qr([]), this.mergingProcessor = o ?? Ks(), this.urlContentFetcher = new _s(n), this.blueDirectivePreprocessor = new Ls(
|
|
3818
3829
|
void 0,
|
|
3819
3830
|
this.urlContentFetcher
|
|
3820
3831
|
), this.blueIdsMappingGenerator = new xt(), i)
|
|
@@ -3832,11 +3843,11 @@ class Pn {
|
|
|
3832
3843
|
return g.get(e, t);
|
|
3833
3844
|
}
|
|
3834
3845
|
nodeToSchemaOutput(e, t) {
|
|
3835
|
-
return new
|
|
3846
|
+
return new ws(this.typeSchemaResolver).convert(e, t);
|
|
3836
3847
|
}
|
|
3837
3848
|
resolve(e, t = q) {
|
|
3838
3849
|
const r = this.combineWithGlobalLimits(t);
|
|
3839
|
-
return new
|
|
3850
|
+
return new ks(this.mergingProcessor, this.nodeProvider).resolve(e, r);
|
|
3840
3851
|
}
|
|
3841
3852
|
reverse(e) {
|
|
3842
3853
|
return new jt().reverse(e);
|
|
@@ -4044,7 +4055,7 @@ class Pn {
|
|
|
4044
4055
|
return this.globalLimits == q ? e : e == q ? this.globalLimits : rt.of(this.globalLimits, e);
|
|
4045
4056
|
}
|
|
4046
4057
|
}
|
|
4047
|
-
class
|
|
4058
|
+
class An extends Rt {
|
|
4048
4059
|
constructor(t = []) {
|
|
4049
4060
|
super();
|
|
4050
4061
|
u(this, "blueIdToContentMap", /* @__PURE__ */ new Map());
|
|
@@ -4171,72 +4182,72 @@ class Sn extends Rt {
|
|
|
4171
4182
|
}
|
|
4172
4183
|
}
|
|
4173
4184
|
export {
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4185
|
+
Pr as Base58Sha256Provider,
|
|
4186
|
+
An as BasicNodeProvider,
|
|
4187
|
+
Sn as Blue,
|
|
4177
4188
|
w as BlueIdCalculator,
|
|
4178
|
-
|
|
4189
|
+
pn as BlueIdToCid,
|
|
4179
4190
|
a as BlueNode,
|
|
4180
4191
|
C as BlueNodeTypeSchema,
|
|
4181
|
-
|
|
4192
|
+
Er as JsonCanonicalizer,
|
|
4182
4193
|
et as Limits,
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4194
|
+
ks as Merger,
|
|
4195
|
+
Pn as MergingProcessors,
|
|
4196
|
+
Zs as NodeResolver,
|
|
4186
4197
|
Qe as Nodes,
|
|
4187
4198
|
nt as ResolvedBlueNode,
|
|
4188
|
-
|
|
4189
|
-
|
|
4199
|
+
qr as TypeSchemaResolver,
|
|
4200
|
+
hn as applyBlueNodePatch,
|
|
4190
4201
|
Ee as baseBlueObjectSchema,
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4202
|
+
fn as blueDescriptionField,
|
|
4203
|
+
gn as blueIdField,
|
|
4204
|
+
rn as blueIdSchema,
|
|
4205
|
+
yn as blueNameField,
|
|
4206
|
+
mn as blueNodeField,
|
|
4207
|
+
on as blueObjectBooleanValueSchema,
|
|
4208
|
+
nn as blueObjectNumberValueSchema,
|
|
4198
4209
|
ce as blueObjectSchema,
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4210
|
+
ln as blueObjectStringListItemsSchema,
|
|
4211
|
+
sn as blueObjectStringValueSchema,
|
|
4212
|
+
Os as calculateBlueId,
|
|
4213
|
+
bn as calculateBlueIdSync,
|
|
4203
4214
|
ut as enrichWithBlueId,
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4215
|
+
Lr as getBlueDescriptionAnnotation,
|
|
4216
|
+
Zr as getBlueIdAnnotation,
|
|
4217
|
+
Yr as getBlueNameAnnotation,
|
|
4218
|
+
zr as getBlueNodeAnnotation,
|
|
4219
|
+
wn as getBlueObjectItems,
|
|
4220
|
+
Bn as getBlueObjectProperties,
|
|
4221
|
+
Nn as getBlueObjectTypeLabel,
|
|
4222
|
+
vn as getBlueObjectValue,
|
|
4223
|
+
Jr as getExtendedFromSchemaAnnotation,
|
|
4224
|
+
Xr as getTypeBlueIdAnnotation,
|
|
4225
|
+
gr as hasBlueObjectBlueIdDefined,
|
|
4226
|
+
yr as hasBlueObjectItemsDefined,
|
|
4227
|
+
an as hasBlueObjectNameDefined,
|
|
4228
|
+
mr as hasBlueObjectTypeDefined,
|
|
4229
|
+
Ir as hasBlueObjectValueDefined,
|
|
4219
4230
|
Re as isBigDecimalNumber,
|
|
4220
4231
|
Z as isBigIntegerNumber,
|
|
4221
4232
|
D as isBigNumber,
|
|
4222
4233
|
Vt as isBlueNodeSchema,
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4234
|
+
cn as isBlueObject,
|
|
4235
|
+
Rs as isBlueObjectResolved,
|
|
4236
|
+
un as isGivenBlueObjectTypeSchema,
|
|
4226
4237
|
Nt as isJsonBlueArray,
|
|
4227
4238
|
Bt as isJsonBlueObject,
|
|
4228
|
-
|
|
4239
|
+
dn as isJsonBlueValue,
|
|
4229
4240
|
Dt as isSchemaExtendedFrom,
|
|
4230
4241
|
fe as isUrl,
|
|
4231
4242
|
Te as jsonBlueValueSchema,
|
|
4232
|
-
|
|
4243
|
+
En as normalizeToBlueObject,
|
|
4233
4244
|
dt as resolveBlueObjectItems,
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4245
|
+
jr as withBlueDescription,
|
|
4246
|
+
_r as withBlueId,
|
|
4247
|
+
kr as withBlueName,
|
|
4248
|
+
Kr as withBlueNode,
|
|
4249
|
+
Gr as withExtendedFromSchema,
|
|
4250
|
+
In as withTypeBlueId,
|
|
4251
|
+
Tn as yamlBlueDump,
|
|
4241
4252
|
x as yamlBlueParse
|
|
4242
4253
|
};
|