@cardenelabs/dragon 0.43.0 → 0.44.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/cli.cjs +2337 -627
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +2337 -627
- package/dist/cli.js.map +1 -1
- package/dist/export.cjs +2193 -619
- package/dist/export.cjs.map +1 -1
- package/dist/export.d.cts +1 -1
- package/dist/export.d.ts +1 -1
- package/dist/export.js +2193 -619
- package/dist/export.js.map +1 -1
- package/dist/index.cjs +2377 -644
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +55 -3
- package/dist/index.d.ts +55 -3
- package/dist/index.js +2377 -644
- package/dist/index.js.map +1 -1
- package/dist/{ink-B6s_SMXG.d.cts → ink-DeDtzaTL.d.cts} +27 -3
- package/dist/{ink-B6s_SMXG.d.ts → ink-DeDtzaTL.d.ts} +27 -3
- package/dist/node.cjs +1932 -680
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +1932 -680
- package/dist/node.js.map +1 -1
- package/dist/player.global.js +3 -3
- package/package.json +1 -1
- package/src/field-messages.ts +6 -0
- package/src/index.ts +4 -0
- package/src/layout/lineup.ts +219 -0
- package/src/look/values.ts +31 -2
- package/src/messages.ts +54 -0
- package/src/parser.ts +123 -1
- package/src/printer.ts +30 -1
- package/src/render/lineup.ts +184 -0
- package/src/render/parts.ts +16 -7
- package/src/render/svg.ts +34 -6
- package/src/render/tree.ts +3 -2
- package/src/schema.ts +52 -4
- package/src/schemas/diagram.schema.json +145 -22
- package/src/schemas/validate-diagram.js +1 -1
- package/src/timeline.ts +14 -0
- package/src/words.ts +15 -2
package/dist/export.js
CHANGED
|
@@ -290,6 +290,9 @@ var TYPE = {
|
|
|
290
290
|
rootHash: text(15, 700, "mono"),
|
|
291
291
|
rootName: text(11, 700),
|
|
292
292
|
treeCard: text(11.5, 650),
|
|
293
|
+
/** 列の図 (#3239) の、チップの字と札の字 */
|
|
294
|
+
chip: text(10.5, 700, "mono"),
|
|
295
|
+
stamp: text(11, 700),
|
|
293
296
|
/**
|
|
294
297
|
* 時間軸の図 (#3165)。拡大の帯の列の上の字、印の列の名前、時刻の字、区切りの名前と目盛りの番号の範囲、
|
|
295
298
|
* 節目の名札と状態、範囲の括弧の字、空きの枠の字、物差しの線の字。和文を含む字は同じ大きさと太さの和文の字で描く
|
|
@@ -412,6 +415,26 @@ var LOOK = {
|
|
|
412
415
|
color: "violet",
|
|
413
416
|
rootColor: "green"
|
|
414
417
|
},
|
|
418
|
+
/**
|
|
419
|
+
* 列の図 (#3239)。step 2 で本人が選んだ見本の「列の図」の形で、1 列 12 枚の図の幅が携帯の幅で全体を見せられる 400 に収まる寸法にする。
|
|
420
|
+
* 列は左右の余白 `padX`、高さ `h`、角の丸み `radius`。列の名前と右上の字の基準線は列の上端から `textY`、チップの上端は列の上端から `trackY`、
|
|
421
|
+
* 名前と右上の字の間の下限は `textGap`、選ばなかった列の濃さは `faint`。
|
|
422
|
+
* `chip` はチップの幅の下限 `w`、高さ `h`、隣のチップとの間 `gap`、角の丸み `radius`、字の左右の余白 `padX`。字が幅を超える図は全てのチップの幅を広げる。
|
|
423
|
+
* `seal` は封で、チップの並びの外へ `over` 広げ、角の丸み `radius`、縞の幅 `stripe`。
|
|
424
|
+
* `stamp` は札で、高さ `h`、字の左右の余白 `padX`、角の丸み `radius`、傾き `tilt`、色 `color`
|
|
425
|
+
*/
|
|
426
|
+
lineup: {
|
|
427
|
+
padX: 12,
|
|
428
|
+
h: 61,
|
|
429
|
+
radius: 10,
|
|
430
|
+
textY: 20,
|
|
431
|
+
trackY: 33,
|
|
432
|
+
textGap: 10,
|
|
433
|
+
faint: 0.35,
|
|
434
|
+
chip: { w: 25, h: 18, gap: 4, radius: 4, padX: 3 },
|
|
435
|
+
seal: { over: 3, radius: 5, stripe: 7 },
|
|
436
|
+
stamp: { h: 22, padX: 8, radius: 5, tilt: -4, color: "green" }
|
|
437
|
+
},
|
|
415
438
|
/**
|
|
416
439
|
* 時間軸の図 (#3165)。見本帳の試作 (`scenes/finality.js`) の寸法を写す。
|
|
417
440
|
* 図の幅は `width` で、時間軸は左の `axisX` から右の余白 `right` の手前まで。印の列の名前が長い時は、名前の右に `gutterGap` を空けて軸を右へ寄せる。
|
|
@@ -515,7 +538,8 @@ var LOOK = {
|
|
|
515
538
|
timeMeter: 1.25,
|
|
516
539
|
tree: 1.5,
|
|
517
540
|
treeTrail: 2.6,
|
|
518
|
-
treeCon: 1.3
|
|
541
|
+
treeCon: 1.3,
|
|
542
|
+
stamp: 2
|
|
519
543
|
},
|
|
520
544
|
shadow: { near: 0.8, far: 4, nearY: 1, farY: 3 },
|
|
521
545
|
mini: { w: 168, pad: 8, title: 14, inset: 12, radius: 10 },
|
|
@@ -530,8 +554,8 @@ var LOOK = {
|
|
|
530
554
|
*/
|
|
531
555
|
follow: { aspect: 0.75, minH: 320, fitMinH: 160, ease: 0.6, narrow: 440, badgeRoom: 8, headRoom: 10, head: { pad: 8, h: 40, nameY: 17, subY: 31 } },
|
|
532
556
|
/** 色を混ぜる割合 (%) */
|
|
533
|
-
/** `time` から始まる値は時間軸の図 (#3165)
|
|
534
|
-
mix: { slot: 45, icon: 14, regionIcon: 16, regionIconEdge: 34, cap: 12, capEdge: 42, badgePast: 14, badgePastEdge: 70, mini: 62, miniBand: 16, miniBandEdge: 36, view: 6, side: 4, sideEdge: 36, ghostEdge: 60, path: 55, past: 72, timeShade: 3.5, timeSpan: 6, timeEmpty: 8, timeGuide: 50 },
|
|
557
|
+
/** `time` から始まる値は時間軸の図 (#3165) の、区切りの地、範囲の囲みの地、空きの枠の地、拡大の点線の濃さ。`chip` と `seal` から始まる値は列の図 (#3239) の、色を持たないチップの地と封の縞の濃さ */
|
|
558
|
+
mix: { slot: 45, icon: 14, regionIcon: 16, regionIconEdge: 34, cap: 12, capEdge: 42, badgePast: 14, badgePastEdge: 70, mini: 62, miniBand: 16, miniBandEdge: 36, view: 6, side: 4, sideEdge: 36, ghostEdge: 60, path: 55, past: 72, timeShade: 3.5, timeSpan: 6, timeEmpty: 8, timeGuide: 50, chipPlain: 34, sealDark: 60, sealLight: 34 },
|
|
535
559
|
/** 字の並びの基準線を、置きたい高さの真ん中からどれだけ下げるか */
|
|
536
560
|
baseline: { label: 3.8, badge: 3.5, carrier: 3.7, stripTitle: 4.5, tag: 3.6, action: 3.8, mark: 4 },
|
|
537
561
|
/** 浮いて出る物が下から上がる長さと、弾んで出る物の始まりの大きさ */
|
|
@@ -575,7 +599,12 @@ var MOTION = {
|
|
|
575
599
|
* 拡大した目盛りでは、その段のその列の線を引き終えてから `wait` 秒待って次の目盛りへ進む。
|
|
576
600
|
* `after` は針が止まってから次の出来事を起こすまで、`reset` は区切りが替わって物差しが 0 に戻る長さ
|
|
577
601
|
*/
|
|
578
|
-
time: { axis: 11.5, unitMin: 0.12, unitMax: 0.4, wait: 0.15, after: 0.15, reset: 0.05 }
|
|
602
|
+
time: { axis: 11.5, unitMin: 0.12, unitMax: 0.4, wait: 0.15, after: 0.15, reset: 0.05 },
|
|
603
|
+
/**
|
|
604
|
+
* 列の図 (#3239)。`slide` はチップが滑る長さ、`seal` は封が列を覆う長さ、`stagger` は同じ段の出来事を起こす間、
|
|
605
|
+
* `cut` はチップと封が一瞬で入れ替わる長さ
|
|
606
|
+
*/
|
|
607
|
+
lineup: { slide: 0.7, seal: 0.6, stagger: 0.2, cut: 0.01 }
|
|
579
608
|
};
|
|
580
609
|
var READABLE_PX = 10.5;
|
|
581
610
|
var EASE = {
|
|
@@ -968,7 +997,7 @@ function layoutStrip(diagram, x, y, width, trail) {
|
|
|
968
997
|
const fields = [];
|
|
969
998
|
let cx = start;
|
|
970
999
|
let row = 0;
|
|
971
|
-
const
|
|
1000
|
+
const place2 = (w) => {
|
|
972
1001
|
if (cx > start && cx + w > width - pad2) {
|
|
973
1002
|
cx = start;
|
|
974
1003
|
row++;
|
|
@@ -979,12 +1008,12 @@ function layoutStrip(diagram, x, y, width, trail) {
|
|
|
979
1008
|
};
|
|
980
1009
|
for (const name of diagram.strip.fields) {
|
|
981
1010
|
const w = fieldWidth(diagram, name);
|
|
982
|
-
const at2 =
|
|
1011
|
+
const at2 = place2(w);
|
|
983
1012
|
const meter = meterOf(diagram, name);
|
|
984
1013
|
const line2 = meter ? ratioOf(meter.line) : void 0;
|
|
985
1014
|
fields.push({ name, ...at2, w, ...meter && line2 !== void 0 ? { meter: { line: line2, text: meter.line, x: at2.x, w: LOOK.time.meter.w } } : {} });
|
|
986
1015
|
}
|
|
987
|
-
const laidTrail = trail ? { ...trail, ...
|
|
1016
|
+
const laidTrail = trail ? { ...trail, ...place2(trailWidth(trail)), w: trailWidth(trail) } : void 0;
|
|
988
1017
|
return { x, y, w: width, h: h + row * line, title: diagram.strip.title, fields, ...laidTrail ? { trail: laidTrail } : {} };
|
|
989
1018
|
}
|
|
990
1019
|
function shiftContent(layout, dx, dy) {
|
|
@@ -1409,6 +1438,7 @@ function grow(layout, groups, slots, rooms) {
|
|
|
1409
1438
|
return grown;
|
|
1410
1439
|
}
|
|
1411
1440
|
var STATE_ENDS = ["start", "finish"];
|
|
1441
|
+
var LANE_MOST = 12;
|
|
1412
1442
|
var HEAD = "HEAD";
|
|
1413
1443
|
|
|
1414
1444
|
// src/layout/git.ts
|
|
@@ -1897,6 +1927,138 @@ function labelsOf(diagram, layout) {
|
|
|
1897
1927
|
return labels;
|
|
1898
1928
|
}
|
|
1899
1929
|
|
|
1930
|
+
// src/layout/lineup.ts
|
|
1931
|
+
var isLineupLayout = (layout) => layout.kind === "lineup";
|
|
1932
|
+
function notesOf(diagram, id, sub) {
|
|
1933
|
+
const written = diagram.steps.flatMap((step) => step.events.flatMap((e) => e.type === "swap" && e.box === id ? [textWidth(e.text, TYPE.boxSubStrong)] : []));
|
|
1934
|
+
return sub === void 0 ? written : [textWidth(sub, TYPE.boxSub), ...written];
|
|
1935
|
+
}
|
|
1936
|
+
function layoutLineup(diagram) {
|
|
1937
|
+
const { margin, gap, lineup: N } = LOOK;
|
|
1938
|
+
const items = diagram.lineup?.items ?? [];
|
|
1939
|
+
const known = new Set(items.map((item) => item.id));
|
|
1940
|
+
const chipW = Math.max(N.chip.w, ...items.map((item) => item.label === void 0 ? 0 : textWidth(item.label, TYPE.chip) + N.chip.padX * 2));
|
|
1941
|
+
const pitch = chipW + N.chip.gap;
|
|
1942
|
+
const trackW = pitch * LANE_MOST - N.chip.gap;
|
|
1943
|
+
const titled = diagram.boxes.map((b) => textWidth(b.name, TYPE.boxName) + N.textGap + Math.max(0, ...notesOf(diagram, b.id, b.sub)));
|
|
1944
|
+
const laneW = Math.max(trackW + N.padX * 2, ...titled.map((w) => w + N.padX * 2), stripNeed(diagram));
|
|
1945
|
+
const colors = boxColors(diagram);
|
|
1946
|
+
const lanes = diagram.boxes.map((b, i) => {
|
|
1947
|
+
const y = margin + i * (N.h + gap);
|
|
1948
|
+
const baseline = y + N.textY;
|
|
1949
|
+
const noteRight = margin + laneW - N.padX;
|
|
1950
|
+
return {
|
|
1951
|
+
id: b.id,
|
|
1952
|
+
name: b.name,
|
|
1953
|
+
...b.sub !== void 0 ? { sub: b.sub } : {},
|
|
1954
|
+
color: colors.get(b.id) ?? "slate",
|
|
1955
|
+
x: margin,
|
|
1956
|
+
y,
|
|
1957
|
+
w: laneW,
|
|
1958
|
+
h: N.h,
|
|
1959
|
+
cx: margin + laneW / 2,
|
|
1960
|
+
cy: y + N.h / 2,
|
|
1961
|
+
title: { ...textBox(b.name, margin + N.padX, baseline, TYPE.boxName), text: b.name, baseline },
|
|
1962
|
+
...b.sub !== void 0 ? { note: { ...textBox(b.sub, noteRight - textWidth(b.sub, TYPE.boxSub), baseline, TYPE.boxSub), text: b.sub, baseline } } : {},
|
|
1963
|
+
noteRight,
|
|
1964
|
+
track: { x: margin + N.padX, y: y + N.trackY, w: trackW, h: N.chip.h }
|
|
1965
|
+
};
|
|
1966
|
+
});
|
|
1967
|
+
const laneOf = new Map(lanes.map((lane) => [lane.id, lane]));
|
|
1968
|
+
const chips = [];
|
|
1969
|
+
const seals = [];
|
|
1970
|
+
const stamps = [];
|
|
1971
|
+
const picks = [];
|
|
1972
|
+
const seated = /* @__PURE__ */ new Map();
|
|
1973
|
+
const open = /* @__PURE__ */ new Map();
|
|
1974
|
+
let picked;
|
|
1975
|
+
diagram.steps.forEach((step, s) => {
|
|
1976
|
+
const before = [...seated.values()].flat();
|
|
1977
|
+
step.events.forEach((e, k) => {
|
|
1978
|
+
if (e.type !== "line" && e.type !== "seal" && e.type !== "open" && e.type !== "pick" && e.type !== "stamp") return;
|
|
1979
|
+
const lane = laneOf.get(e.box);
|
|
1980
|
+
if (!lane) return;
|
|
1981
|
+
const at2 = { step: s, event: k };
|
|
1982
|
+
if (e.type === "seal" && !open.has(lane.id)) {
|
|
1983
|
+
const { over } = N.seal;
|
|
1984
|
+
const seal = { ...at2, lane: lane.id, x: lane.track.x - over, y: lane.track.y - over, w: lane.track.w + over * 2, h: lane.track.h + over * 2 };
|
|
1985
|
+
seals.push(seal);
|
|
1986
|
+
open.set(lane.id, seal);
|
|
1987
|
+
} else if (e.type === "open") {
|
|
1988
|
+
const seal = open.get(lane.id);
|
|
1989
|
+
if (seal) seal.until = at2;
|
|
1990
|
+
open.delete(lane.id);
|
|
1991
|
+
} else if (e.type === "pick" && picked !== lane.id) {
|
|
1992
|
+
picks.push({ ...at2, lane: lane.id });
|
|
1993
|
+
picked = lane.id;
|
|
1994
|
+
} else if (e.type === "stamp") {
|
|
1995
|
+
const w = textWidth(e.text, TYPE.stamp) + N.stamp.padX * 2;
|
|
1996
|
+
stamps.push({ ...at2, lane: lane.id, text: e.text, x: lane.x + lane.w - N.padX - w, y: lane.track.y + (lane.track.h - N.stamp.h) / 2, w, h: N.stamp.h });
|
|
1997
|
+
} else if (e.type === "line") {
|
|
1998
|
+
const old = seated.get(lane.id) ?? [];
|
|
1999
|
+
const order = [...new Set(e.items)].filter((id) => known.has(id)).slice(0, LANE_MOST);
|
|
2000
|
+
const placed = order.map((id, index) => {
|
|
2001
|
+
const same2 = old.find((c) => c.id === id);
|
|
2002
|
+
if (same2?.index === index) return same2;
|
|
2003
|
+
const others = before.filter((c) => c.id === id);
|
|
2004
|
+
const source = same2 ?? others.find((c) => c.lane === picked) ?? others.at(-1);
|
|
2005
|
+
const seat2 = { ...at2, id, lane: lane.id, index, x: lane.track.x + pitch * index, y: lane.track.y, w: chipW, h: N.chip.h, ...source ? { from: [source.x, source.y] } : {} };
|
|
2006
|
+
chips.push(seat2);
|
|
2007
|
+
return seat2;
|
|
2008
|
+
});
|
|
2009
|
+
for (const c of old) if (!placed.includes(c)) c.until = at2;
|
|
2010
|
+
seated.set(lane.id, placed);
|
|
2011
|
+
}
|
|
2012
|
+
});
|
|
2013
|
+
});
|
|
2014
|
+
const layout = {
|
|
2015
|
+
kind: "lineup",
|
|
2016
|
+
width: 0,
|
|
2017
|
+
height: 0,
|
|
2018
|
+
regions: [],
|
|
2019
|
+
boxes: lanes,
|
|
2020
|
+
lifelines: [],
|
|
2021
|
+
edges: [],
|
|
2022
|
+
labels: [],
|
|
2023
|
+
actions: [],
|
|
2024
|
+
badges: [],
|
|
2025
|
+
paths: [],
|
|
2026
|
+
ends: [],
|
|
2027
|
+
lanes,
|
|
2028
|
+
chips,
|
|
2029
|
+
seals,
|
|
2030
|
+
stamps,
|
|
2031
|
+
picks
|
|
2032
|
+
};
|
|
2033
|
+
const bottom = Math.max(...lanes.map((lane) => lane.y + lane.h), margin);
|
|
2034
|
+
const width = laneW + margin * 2;
|
|
2035
|
+
const strip2 = layoutStrip(diagram, margin, bottom + gap, width - margin * 2);
|
|
2036
|
+
layout.width = width;
|
|
2037
|
+
layout.height = (strip2 ? strip2.y + strip2.h : bottom) + margin;
|
|
2038
|
+
if (strip2) layout.strip = strip2;
|
|
2039
|
+
layout.badges = badgesOf2(diagram, layout);
|
|
2040
|
+
return layout;
|
|
2041
|
+
}
|
|
2042
|
+
function badgesOf2(diagram, layout) {
|
|
2043
|
+
const { inset } = LOOK.badge;
|
|
2044
|
+
const out = [];
|
|
2045
|
+
const put = (step, x, y, color) => {
|
|
2046
|
+
out.push({ step, x, y, color });
|
|
2047
|
+
};
|
|
2048
|
+
diagram.steps.forEach((step, s) => {
|
|
2049
|
+
const lane = step.events.flatMap((e) => "box" in e ? [e.box] : []).flatMap((id) => layout.lanes.filter((l) => l.id === id))[0];
|
|
2050
|
+
if (lane) {
|
|
2051
|
+
put(s, lane.x, lane.track.y + lane.track.h / 2, lane.color);
|
|
2052
|
+
return;
|
|
2053
|
+
}
|
|
2054
|
+
const before = out[out.length - 1];
|
|
2055
|
+
if (layout.strip && step.events.some((e) => e.type === "strip")) put(s, layout.strip.x + inset, layout.strip.y + inset, "slate");
|
|
2056
|
+
else if (before) out.push({ ...before, step: s });
|
|
2057
|
+
else put(s, LOOK.margin, LOOK.margin, layout.lanes[0]?.color ?? "slate");
|
|
2058
|
+
});
|
|
2059
|
+
return replaceSameSpot(out);
|
|
2060
|
+
}
|
|
2061
|
+
|
|
1900
2062
|
// src/layout/sequence.ts
|
|
1901
2063
|
function layoutSequence(diagram) {
|
|
1902
2064
|
const { box: B, sequence: Q, label: L, margin, gap } = LOOK;
|
|
@@ -2608,7 +2770,7 @@ function layoutTime(diagram, lang = "ja") {
|
|
|
2608
2770
|
} else spans.push({ ...base, x: x0, y: 0, w: x1 - x0, h: T.bracket.tick, textRect: { x: 0, y: 0, w: 0, h: 0 }, textY: 0 });
|
|
2609
2771
|
}
|
|
2610
2772
|
layout.spans = spans;
|
|
2611
|
-
layout.badges =
|
|
2773
|
+
layout.badges = badgesOf3(diagram, layout, needleSteps(diagram));
|
|
2612
2774
|
layout.labels = labelsOf2(diagram, layout);
|
|
2613
2775
|
y = Math.max(y, ...layout.labels.map((l) => l.y + l.h + LOOK.label.soft));
|
|
2614
2776
|
const lanes = [];
|
|
@@ -2677,7 +2839,7 @@ function layoutTime(diagram, lang = "ja") {
|
|
|
2677
2839
|
const strip2 = layoutStrip(diagram, margin, axisBottom + gap, width - margin * 2);
|
|
2678
2840
|
if (strip2) layout.strip = strip2;
|
|
2679
2841
|
layout.height = (strip2 ? strip2.y + strip2.h : axisBottom) + margin;
|
|
2680
|
-
layout.badges =
|
|
2842
|
+
layout.badges = badgesOf3(diagram, layout, needleSteps(diagram));
|
|
2681
2843
|
return layout;
|
|
2682
2844
|
}
|
|
2683
2845
|
function wire(event, zoom) {
|
|
@@ -2719,7 +2881,7 @@ function seat(edge2, from, to, rooms) {
|
|
|
2719
2881
|
if (arrive.settle) edge2.settle = arrive.settle;
|
|
2720
2882
|
if (leave.wait) edge2.wait = leave.wait;
|
|
2721
2883
|
}
|
|
2722
|
-
function
|
|
2884
|
+
function badgesOf3(diagram, layout, needle) {
|
|
2723
2885
|
const { r, inset } = LOOK.badge;
|
|
2724
2886
|
const { axis } = layout;
|
|
2725
2887
|
const taken = [];
|
|
@@ -3012,7 +3174,7 @@ function layoutTree(diagram) {
|
|
|
3012
3174
|
links,
|
|
3013
3175
|
runs
|
|
3014
3176
|
};
|
|
3015
|
-
layout.badges =
|
|
3177
|
+
layout.badges = badgesOf4(diagram, layout);
|
|
3016
3178
|
layout.labels = labelsOf3(diagram, layout);
|
|
3017
3179
|
const cards = nodes.flatMap((n) => n.card ? [n.card] : []);
|
|
3018
3180
|
const solids = [...nodes, ...cards, ...boxes, ...layout.labels];
|
|
@@ -3024,10 +3186,10 @@ function layoutTree(diagram) {
|
|
|
3024
3186
|
layout.width = width;
|
|
3025
3187
|
layout.height = (strip2 ? strip2.y + strip2.h : bottom) + margin;
|
|
3026
3188
|
if (strip2) layout.strip = strip2;
|
|
3027
|
-
layout.badges =
|
|
3189
|
+
layout.badges = badgesOf4(diagram, layout);
|
|
3028
3190
|
return layout;
|
|
3029
3191
|
}
|
|
3030
|
-
function
|
|
3192
|
+
function badgesOf4(diagram, layout) {
|
|
3031
3193
|
const { r, inset } = LOOK.badge;
|
|
3032
3194
|
const apart = r * 2 + inset;
|
|
3033
3195
|
const taken = [];
|
|
@@ -3143,8 +3305,10 @@ var ja = {
|
|
|
3143
3305
|
enum: (values) => `${values.join(" / ")} \u306E\u3069\u308C\u304B\u306B\u3059\u308B`,
|
|
3144
3306
|
type: (type) => TYPES_JA[type] ?? `${type} \u306B\u3059\u308B`,
|
|
3145
3307
|
minLength: (limit) => `${limit} \u5B57\u4EE5\u4E0A\u66F8\u304F`,
|
|
3308
|
+
maxLength: (limit) => `${limit} \u5B57\u307E\u3067\u306B\u3059\u308B`,
|
|
3146
3309
|
pattern: (forbidden) => forbidden ? `${forbidden.space ? "\u7A7A\u767D\u3068 " : ""}${forbidden.chars.join(" ")} \u306F\u4F7F\u3048\u306A\u3044` : "\u4F7F\u3048\u306A\u3044\u5B57\u304C\u5165\u3063\u3066\u3044\u308B",
|
|
3147
3310
|
minItems: (limit) => `${limit} \u3064\u4EE5\u4E0A\u66F8\u304F`,
|
|
3311
|
+
maxItems: (limit) => `${limit} \u3064\u307E\u3067\u306B\u3059\u308B`,
|
|
3148
3312
|
minimum: (limit) => `${limit} \u4EE5\u4E0A\u306B\u3059\u308B`,
|
|
3149
3313
|
const: (value) => `${value} \u306B\u3059\u308B`,
|
|
3150
3314
|
not: (allowed) => allowed ? `${allowed.field} \u306E\u6B04\u306F kind \u304C ${allowed.kind} \u306E\u6642\u3060\u3051\u66F8\u3051\u308B` : "\u3053\u306E\u6B04\u306E\u7D44\u307F\u5408\u308F\u305B\u306F\u66F8\u3051\u306A\u3044",
|
|
@@ -3165,8 +3329,10 @@ var en = {
|
|
|
3165
3329
|
enum: (values) => `Use one of ${values.join(" / ")}`,
|
|
3166
3330
|
type: (type) => TYPES_EN[type] ?? `Use ${type}`,
|
|
3167
3331
|
minLength: (limit) => `Write at least ${plural(limit, "character")}`,
|
|
3332
|
+
maxLength: (limit) => `Write at most ${plural(limit, "character")}`,
|
|
3168
3333
|
pattern: (forbidden) => forbidden ? `Cannot contain ${forbidden.space ? "spaces or " : ""}${forbidden.chars.join(" ")}` : "Contains characters that are not allowed",
|
|
3169
3334
|
minItems: (limit) => `Write at least ${plural(limit, "item")}`,
|
|
3335
|
+
maxItems: (limit) => `Write at most ${plural(limit, "item")}`,
|
|
3170
3336
|
minimum: (limit) => `Use ${limit} or greater`,
|
|
3171
3337
|
const: (value) => `Use ${value}`,
|
|
3172
3338
|
not: (allowed) => allowed ? `The ${allowed.field} field is allowed only when kind is ${allowed.kind}` : "This combination of fields is not allowed",
|
|
@@ -3190,7 +3356,7 @@ function ucs2length(str) {
|
|
|
3190
3356
|
return length;
|
|
3191
3357
|
}
|
|
3192
3358
|
var validate_diagram_default = validate10;
|
|
3193
|
-
var schema11 = { "properties": { "version": { "description": "\u5F62\u5F0F\u306E\u7248", "type": "integer", "minimum": 1 }, "kind": { "description": "\u56F3\u306E\u7A2E\u985E", "enum": ["sequence", "architecture", "state", "git", "time", "tree"] }, "title": { "$ref": "#/definitions/text" }, "view": { "description": "\u898B\u305B\u65B9\u3002\u66F8\u304B\u306A\u3051\u308C\u3070\u5B57\u306E\u5927\u304D\u3055\u3067\u9078\u3076\u3002fixed \u306F\u5168\u4F53\u3092\u6B62\u3081\u3066\u4E2D\u3060\u3051\u52D5\u304B\u3057\u3001follow \u306F\u5BC4\u3063\u3066\u52D5\u304B\u3057\u5168\u4F53\u56F3\u3067\u4ECA\u3069\u3053\u304B\u3092\u793A\u3059", "enum": ["fixed", "follow"] }, "regions": { "type": "array", "items": { "$ref": "#/definitions/region" } }, "boxes": { "type": "array", "items": { "$ref": "#/definitions/box" } }, "strip": { "$ref": "#/definitions/strip" }, "steps": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/step" } }, "sequence": { "$ref": "#/definitions/sequence" }, "state": { "$ref": "#/definitions/state" }, "git": { "$ref": "#/definitions/git" }, "time": { "$ref": "#/definitions/time" } }};
|
|
3359
|
+
var schema11 = { "properties": { "version": { "description": "\u5F62\u5F0F\u306E\u7248", "type": "integer", "minimum": 1 }, "kind": { "description": "\u56F3\u306E\u7A2E\u985E", "enum": ["sequence", "architecture", "state", "git", "time", "tree", "lineup"] }, "title": { "$ref": "#/definitions/text" }, "view": { "description": "\u898B\u305B\u65B9\u3002\u66F8\u304B\u306A\u3051\u308C\u3070\u5B57\u306E\u5927\u304D\u3055\u3067\u9078\u3076\u3002fixed \u306F\u5168\u4F53\u3092\u6B62\u3081\u3066\u4E2D\u3060\u3051\u52D5\u304B\u3057\u3001follow \u306F\u5BC4\u3063\u3066\u52D5\u304B\u3057\u5168\u4F53\u56F3\u3067\u4ECA\u3069\u3053\u304B\u3092\u793A\u3059", "enum": ["fixed", "follow"] }, "regions": { "type": "array", "items": { "$ref": "#/definitions/region" } }, "boxes": { "type": "array", "items": { "$ref": "#/definitions/box" } }, "strip": { "$ref": "#/definitions/strip" }, "steps": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/step" } }, "sequence": { "$ref": "#/definitions/sequence" }, "state": { "$ref": "#/definitions/state" }, "git": { "$ref": "#/definitions/git" }, "time": { "$ref": "#/definitions/time" }, "lineup": { "$ref": "#/definitions/lineup" } }};
|
|
3194
3360
|
function validate11(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
3195
3361
|
let vErrors = null;
|
|
3196
3362
|
let errors = 0;
|
|
@@ -3295,34 +3461,79 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3295
3461
|
}
|
|
3296
3462
|
}
|
|
3297
3463
|
}
|
|
3464
|
+
const _errs14 = errors;
|
|
3465
|
+
const _errs15 = errors;
|
|
3466
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
3467
|
+
if (data2.type === void 0 && ("type")) {
|
|
3468
|
+
const err6 = {};
|
|
3469
|
+
if (vErrors === null) {
|
|
3470
|
+
vErrors = [err6];
|
|
3471
|
+
} else {
|
|
3472
|
+
vErrors.push(err6);
|
|
3473
|
+
}
|
|
3474
|
+
errors++;
|
|
3475
|
+
} else {
|
|
3476
|
+
if (data2.type !== void 0) {
|
|
3477
|
+
let data5 = data2.type;
|
|
3478
|
+
if (!(data5 === "line" || data5 === "seal" || data5 === "open" || data5 === "pick" || data5 === "stamp")) {
|
|
3479
|
+
const err7 = {};
|
|
3480
|
+
if (vErrors === null) {
|
|
3481
|
+
vErrors = [err7];
|
|
3482
|
+
} else {
|
|
3483
|
+
vErrors.push(err7);
|
|
3484
|
+
}
|
|
3485
|
+
errors++;
|
|
3486
|
+
}
|
|
3487
|
+
}
|
|
3488
|
+
}
|
|
3489
|
+
}
|
|
3490
|
+
var valid13 = _errs15 === errors;
|
|
3491
|
+
if (valid13) {
|
|
3492
|
+
const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notLineupEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3493
|
+
if (vErrors === null) {
|
|
3494
|
+
vErrors = [err8];
|
|
3495
|
+
} else {
|
|
3496
|
+
vErrors.push(err8);
|
|
3497
|
+
}
|
|
3498
|
+
errors++;
|
|
3499
|
+
} else {
|
|
3500
|
+
errors = _errs14;
|
|
3501
|
+
if (vErrors !== null) {
|
|
3502
|
+
if (_errs14) {
|
|
3503
|
+
vErrors.length = _errs14;
|
|
3504
|
+
} else {
|
|
3505
|
+
vErrors = null;
|
|
3506
|
+
}
|
|
3507
|
+
}
|
|
3508
|
+
}
|
|
3298
3509
|
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
3299
3510
|
if (data2.type !== void 0) {
|
|
3300
|
-
let
|
|
3301
|
-
const
|
|
3302
|
-
const
|
|
3303
|
-
if (!(
|
|
3304
|
-
const
|
|
3511
|
+
let data6 = data2.type;
|
|
3512
|
+
const _errs18 = errors;
|
|
3513
|
+
const _errs19 = errors;
|
|
3514
|
+
if (!(data6 === "commit" || data6 === "branch")) {
|
|
3515
|
+
const err9 = {};
|
|
3305
3516
|
if (vErrors === null) {
|
|
3306
|
-
vErrors = [
|
|
3517
|
+
vErrors = [err9];
|
|
3307
3518
|
} else {
|
|
3308
|
-
vErrors.push(
|
|
3519
|
+
vErrors.push(err9);
|
|
3309
3520
|
}
|
|
3310
3521
|
errors++;
|
|
3311
3522
|
}
|
|
3312
|
-
var
|
|
3313
|
-
if (
|
|
3314
|
-
const
|
|
3523
|
+
var valid16 = _errs19 === errors;
|
|
3524
|
+
if (valid16) {
|
|
3525
|
+
const err10 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3315
3526
|
if (vErrors === null) {
|
|
3316
|
-
vErrors = [
|
|
3527
|
+
vErrors = [err10];
|
|
3317
3528
|
} else {
|
|
3318
|
-
vErrors.push(
|
|
3529
|
+
vErrors.push(err10);
|
|
3319
3530
|
}
|
|
3320
3531
|
errors++;
|
|
3321
3532
|
} else {
|
|
3322
|
-
errors =
|
|
3533
|
+
errors = _errs18;
|
|
3323
3534
|
if (vErrors !== null) {
|
|
3324
|
-
if (
|
|
3325
|
-
vErrors.length =
|
|
3535
|
+
if (_errs18) {
|
|
3536
|
+
vErrors.length = _errs18;
|
|
3326
3537
|
} else {
|
|
3327
3538
|
vErrors = null;
|
|
3328
3539
|
}
|
|
@@ -3330,29 +3541,29 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3330
3541
|
}
|
|
3331
3542
|
}
|
|
3332
3543
|
if (data2.at !== void 0) {
|
|
3333
|
-
const
|
|
3544
|
+
const err11 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3334
3545
|
if (vErrors === null) {
|
|
3335
|
-
vErrors = [
|
|
3546
|
+
vErrors = [err11];
|
|
3336
3547
|
} else {
|
|
3337
|
-
vErrors.push(
|
|
3548
|
+
vErrors.push(err11);
|
|
3338
3549
|
}
|
|
3339
3550
|
errors++;
|
|
3340
3551
|
}
|
|
3341
3552
|
if (data2.into !== void 0) {
|
|
3342
|
-
const
|
|
3553
|
+
const err12 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3343
3554
|
if (vErrors === null) {
|
|
3344
|
-
vErrors = [
|
|
3555
|
+
vErrors = [err12];
|
|
3345
3556
|
} else {
|
|
3346
|
-
vErrors.push(
|
|
3557
|
+
vErrors.push(err12);
|
|
3347
3558
|
}
|
|
3348
3559
|
errors++;
|
|
3349
3560
|
}
|
|
3350
3561
|
if (data2.color !== void 0) {
|
|
3351
|
-
const
|
|
3562
|
+
const err13 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3352
3563
|
if (vErrors === null) {
|
|
3353
|
-
vErrors = [
|
|
3564
|
+
vErrors = [err13];
|
|
3354
3565
|
} else {
|
|
3355
|
-
vErrors.push(
|
|
3566
|
+
vErrors.push(err13);
|
|
3356
3567
|
}
|
|
3357
3568
|
errors++;
|
|
3358
3569
|
}
|
|
@@ -3487,31 +3698,76 @@ function validate17(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3487
3698
|
}
|
|
3488
3699
|
}
|
|
3489
3700
|
}
|
|
3701
|
+
const _errs14 = errors;
|
|
3702
|
+
const _errs15 = errors;
|
|
3490
3703
|
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
3491
|
-
if (data2.
|
|
3492
|
-
const err6 = {
|
|
3704
|
+
if (data2.type === void 0 && ("type")) {
|
|
3705
|
+
const err6 = {};
|
|
3493
3706
|
if (vErrors === null) {
|
|
3494
3707
|
vErrors = [err6];
|
|
3495
3708
|
} else {
|
|
3496
3709
|
vErrors.push(err6);
|
|
3497
3710
|
}
|
|
3498
3711
|
errors++;
|
|
3712
|
+
} else {
|
|
3713
|
+
if (data2.type !== void 0) {
|
|
3714
|
+
let data5 = data2.type;
|
|
3715
|
+
if (!(data5 === "line" || data5 === "seal" || data5 === "open" || data5 === "pick" || data5 === "stamp")) {
|
|
3716
|
+
const err7 = {};
|
|
3717
|
+
if (vErrors === null) {
|
|
3718
|
+
vErrors = [err7];
|
|
3719
|
+
} else {
|
|
3720
|
+
vErrors.push(err7);
|
|
3721
|
+
}
|
|
3722
|
+
errors++;
|
|
3723
|
+
}
|
|
3724
|
+
}
|
|
3725
|
+
}
|
|
3726
|
+
}
|
|
3727
|
+
var valid13 = _errs15 === errors;
|
|
3728
|
+
if (valid13) {
|
|
3729
|
+
const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notLineupEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3730
|
+
if (vErrors === null) {
|
|
3731
|
+
vErrors = [err8];
|
|
3732
|
+
} else {
|
|
3733
|
+
vErrors.push(err8);
|
|
3734
|
+
}
|
|
3735
|
+
errors++;
|
|
3736
|
+
} else {
|
|
3737
|
+
errors = _errs14;
|
|
3738
|
+
if (vErrors !== null) {
|
|
3739
|
+
if (_errs14) {
|
|
3740
|
+
vErrors.length = _errs14;
|
|
3741
|
+
} else {
|
|
3742
|
+
vErrors = null;
|
|
3743
|
+
}
|
|
3744
|
+
}
|
|
3745
|
+
}
|
|
3746
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
3747
|
+
if (data2.at !== void 0) {
|
|
3748
|
+
const err9 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3749
|
+
if (vErrors === null) {
|
|
3750
|
+
vErrors = [err9];
|
|
3751
|
+
} else {
|
|
3752
|
+
vErrors.push(err9);
|
|
3753
|
+
}
|
|
3754
|
+
errors++;
|
|
3499
3755
|
}
|
|
3500
3756
|
if (data2.into !== void 0) {
|
|
3501
|
-
const
|
|
3757
|
+
const err10 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3502
3758
|
if (vErrors === null) {
|
|
3503
|
-
vErrors = [
|
|
3759
|
+
vErrors = [err10];
|
|
3504
3760
|
} else {
|
|
3505
|
-
vErrors.push(
|
|
3761
|
+
vErrors.push(err10);
|
|
3506
3762
|
}
|
|
3507
3763
|
errors++;
|
|
3508
3764
|
}
|
|
3509
3765
|
if (data2.color !== void 0) {
|
|
3510
|
-
const
|
|
3766
|
+
const err11 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3511
3767
|
if (vErrors === null) {
|
|
3512
|
-
vErrors = [
|
|
3768
|
+
vErrors = [err11];
|
|
3513
3769
|
} else {
|
|
3514
|
-
vErrors.push(
|
|
3770
|
+
vErrors.push(err11);
|
|
3515
3771
|
}
|
|
3516
3772
|
errors++;
|
|
3517
3773
|
}
|
|
@@ -3584,34 +3840,79 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3584
3840
|
}
|
|
3585
3841
|
}
|
|
3586
3842
|
}
|
|
3843
|
+
const _errs10 = errors;
|
|
3844
|
+
const _errs11 = errors;
|
|
3845
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
3846
|
+
if (data2.type === void 0 && ("type")) {
|
|
3847
|
+
const err3 = {};
|
|
3848
|
+
if (vErrors === null) {
|
|
3849
|
+
vErrors = [err3];
|
|
3850
|
+
} else {
|
|
3851
|
+
vErrors.push(err3);
|
|
3852
|
+
}
|
|
3853
|
+
errors++;
|
|
3854
|
+
} else {
|
|
3855
|
+
if (data2.type !== void 0) {
|
|
3856
|
+
let data4 = data2.type;
|
|
3857
|
+
if (!(data4 === "line" || data4 === "seal" || data4 === "open" || data4 === "pick" || data4 === "stamp")) {
|
|
3858
|
+
const err4 = {};
|
|
3859
|
+
if (vErrors === null) {
|
|
3860
|
+
vErrors = [err4];
|
|
3861
|
+
} else {
|
|
3862
|
+
vErrors.push(err4);
|
|
3863
|
+
}
|
|
3864
|
+
errors++;
|
|
3865
|
+
}
|
|
3866
|
+
}
|
|
3867
|
+
}
|
|
3868
|
+
}
|
|
3869
|
+
var valid10 = _errs11 === errors;
|
|
3870
|
+
if (valid10) {
|
|
3871
|
+
const err5 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notLineupEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3872
|
+
if (vErrors === null) {
|
|
3873
|
+
vErrors = [err5];
|
|
3874
|
+
} else {
|
|
3875
|
+
vErrors.push(err5);
|
|
3876
|
+
}
|
|
3877
|
+
errors++;
|
|
3878
|
+
} else {
|
|
3879
|
+
errors = _errs10;
|
|
3880
|
+
if (vErrors !== null) {
|
|
3881
|
+
if (_errs10) {
|
|
3882
|
+
vErrors.length = _errs10;
|
|
3883
|
+
} else {
|
|
3884
|
+
vErrors = null;
|
|
3885
|
+
}
|
|
3886
|
+
}
|
|
3887
|
+
}
|
|
3587
3888
|
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
3588
3889
|
if (data2.type !== void 0) {
|
|
3589
|
-
let
|
|
3590
|
-
const
|
|
3591
|
-
const
|
|
3592
|
-
if (!(
|
|
3593
|
-
const
|
|
3890
|
+
let data5 = data2.type;
|
|
3891
|
+
const _errs14 = errors;
|
|
3892
|
+
const _errs15 = errors;
|
|
3893
|
+
if (!(data5 === "commit" || data5 === "branch")) {
|
|
3894
|
+
const err6 = {};
|
|
3594
3895
|
if (vErrors === null) {
|
|
3595
|
-
vErrors = [
|
|
3896
|
+
vErrors = [err6];
|
|
3596
3897
|
} else {
|
|
3597
|
-
vErrors.push(
|
|
3898
|
+
vErrors.push(err6);
|
|
3598
3899
|
}
|
|
3599
3900
|
errors++;
|
|
3600
3901
|
}
|
|
3601
|
-
var
|
|
3602
|
-
if (
|
|
3603
|
-
const
|
|
3902
|
+
var valid13 = _errs15 === errors;
|
|
3903
|
+
if (valid13) {
|
|
3904
|
+
const err7 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3604
3905
|
if (vErrors === null) {
|
|
3605
|
-
vErrors = [
|
|
3906
|
+
vErrors = [err7];
|
|
3606
3907
|
} else {
|
|
3607
|
-
vErrors.push(
|
|
3908
|
+
vErrors.push(err7);
|
|
3608
3909
|
}
|
|
3609
3910
|
errors++;
|
|
3610
3911
|
} else {
|
|
3611
|
-
errors =
|
|
3912
|
+
errors = _errs14;
|
|
3612
3913
|
if (vErrors !== null) {
|
|
3613
|
-
if (
|
|
3614
|
-
vErrors.length =
|
|
3914
|
+
if (_errs14) {
|
|
3915
|
+
vErrors.length = _errs14;
|
|
3615
3916
|
} else {
|
|
3616
3917
|
vErrors = null;
|
|
3617
3918
|
}
|
|
@@ -3687,34 +3988,79 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3687
3988
|
}
|
|
3688
3989
|
}
|
|
3689
3990
|
}
|
|
3991
|
+
const _errs9 = errors;
|
|
3992
|
+
const _errs10 = errors;
|
|
3993
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
3994
|
+
if (data2.type === void 0 && ("type")) {
|
|
3995
|
+
const err3 = {};
|
|
3996
|
+
if (vErrors === null) {
|
|
3997
|
+
vErrors = [err3];
|
|
3998
|
+
} else {
|
|
3999
|
+
vErrors.push(err3);
|
|
4000
|
+
}
|
|
4001
|
+
errors++;
|
|
4002
|
+
} else {
|
|
4003
|
+
if (data2.type !== void 0) {
|
|
4004
|
+
let data4 = data2.type;
|
|
4005
|
+
if (!(data4 === "line" || data4 === "seal" || data4 === "open" || data4 === "pick" || data4 === "stamp")) {
|
|
4006
|
+
const err4 = {};
|
|
4007
|
+
if (vErrors === null) {
|
|
4008
|
+
vErrors = [err4];
|
|
4009
|
+
} else {
|
|
4010
|
+
vErrors.push(err4);
|
|
4011
|
+
}
|
|
4012
|
+
errors++;
|
|
4013
|
+
}
|
|
4014
|
+
}
|
|
4015
|
+
}
|
|
4016
|
+
}
|
|
4017
|
+
var valid10 = _errs10 === errors;
|
|
4018
|
+
if (valid10) {
|
|
4019
|
+
const err5 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notLineupEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4020
|
+
if (vErrors === null) {
|
|
4021
|
+
vErrors = [err5];
|
|
4022
|
+
} else {
|
|
4023
|
+
vErrors.push(err5);
|
|
4024
|
+
}
|
|
4025
|
+
errors++;
|
|
4026
|
+
} else {
|
|
4027
|
+
errors = _errs9;
|
|
4028
|
+
if (vErrors !== null) {
|
|
4029
|
+
if (_errs9) {
|
|
4030
|
+
vErrors.length = _errs9;
|
|
4031
|
+
} else {
|
|
4032
|
+
vErrors = null;
|
|
4033
|
+
}
|
|
4034
|
+
}
|
|
4035
|
+
}
|
|
3690
4036
|
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
3691
4037
|
if (data2.type !== void 0) {
|
|
3692
|
-
let
|
|
3693
|
-
const
|
|
3694
|
-
const
|
|
3695
|
-
if (!(
|
|
3696
|
-
const
|
|
4038
|
+
let data5 = data2.type;
|
|
4039
|
+
const _errs13 = errors;
|
|
4040
|
+
const _errs14 = errors;
|
|
4041
|
+
if (!(data5 === "commit" || data5 === "branch")) {
|
|
4042
|
+
const err6 = {};
|
|
3697
4043
|
if (vErrors === null) {
|
|
3698
|
-
vErrors = [
|
|
4044
|
+
vErrors = [err6];
|
|
3699
4045
|
} else {
|
|
3700
|
-
vErrors.push(
|
|
4046
|
+
vErrors.push(err6);
|
|
3701
4047
|
}
|
|
3702
4048
|
errors++;
|
|
3703
4049
|
}
|
|
3704
|
-
var
|
|
3705
|
-
if (
|
|
3706
|
-
const
|
|
4050
|
+
var valid13 = _errs14 === errors;
|
|
4051
|
+
if (valid13) {
|
|
4052
|
+
const err7 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3707
4053
|
if (vErrors === null) {
|
|
3708
|
-
vErrors = [
|
|
4054
|
+
vErrors = [err7];
|
|
3709
4055
|
} else {
|
|
3710
|
-
vErrors.push(
|
|
4056
|
+
vErrors.push(err7);
|
|
3711
4057
|
}
|
|
3712
4058
|
errors++;
|
|
3713
4059
|
} else {
|
|
3714
|
-
errors =
|
|
4060
|
+
errors = _errs13;
|
|
3715
4061
|
if (vErrors !== null) {
|
|
3716
|
-
if (
|
|
3717
|
-
vErrors.length =
|
|
4062
|
+
if (_errs13) {
|
|
4063
|
+
vErrors.length = _errs13;
|
|
3718
4064
|
} else {
|
|
3719
4065
|
vErrors = null;
|
|
3720
4066
|
}
|
|
@@ -3722,29 +4068,29 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3722
4068
|
}
|
|
3723
4069
|
}
|
|
3724
4070
|
if (data2.at !== void 0) {
|
|
3725
|
-
const
|
|
4071
|
+
const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3726
4072
|
if (vErrors === null) {
|
|
3727
|
-
vErrors = [
|
|
4073
|
+
vErrors = [err8];
|
|
3728
4074
|
} else {
|
|
3729
|
-
vErrors.push(
|
|
4075
|
+
vErrors.push(err8);
|
|
3730
4076
|
}
|
|
3731
4077
|
errors++;
|
|
3732
4078
|
}
|
|
3733
4079
|
if (data2.into !== void 0) {
|
|
3734
|
-
const
|
|
4080
|
+
const err9 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3735
4081
|
if (vErrors === null) {
|
|
3736
|
-
vErrors = [
|
|
4082
|
+
vErrors = [err9];
|
|
3737
4083
|
} else {
|
|
3738
|
-
vErrors.push(
|
|
4084
|
+
vErrors.push(err9);
|
|
3739
4085
|
}
|
|
3740
4086
|
errors++;
|
|
3741
4087
|
}
|
|
3742
4088
|
if (data2.color !== void 0) {
|
|
3743
|
-
const
|
|
4089
|
+
const err10 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
3744
4090
|
if (vErrors === null) {
|
|
3745
|
-
vErrors = [
|
|
4091
|
+
vErrors = [err10];
|
|
3746
4092
|
} else {
|
|
3747
|
-
vErrors.push(
|
|
4093
|
+
vErrors.push(err10);
|
|
3748
4094
|
}
|
|
3749
4095
|
errors++;
|
|
3750
4096
|
}
|
|
@@ -3758,15 +4104,217 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3758
4104
|
validate22.errors = vErrors;
|
|
3759
4105
|
return errors === 0;
|
|
3760
4106
|
}
|
|
3761
|
-
|
|
3762
|
-
var pattern0 = new RegExp("^[^\\s\\[\\]\u300C\u300D=:]+$", "u");
|
|
3763
|
-
var func3 = ucs2length;
|
|
3764
|
-
function validate27(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
4107
|
+
function validate25(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
3765
4108
|
let vErrors = null;
|
|
3766
4109
|
let errors = 0;
|
|
3767
|
-
if (
|
|
3768
|
-
|
|
3769
|
-
|
|
4110
|
+
if (Array.isArray(data)) {
|
|
4111
|
+
const len0 = data.length;
|
|
4112
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
4113
|
+
let data0 = data[i0];
|
|
4114
|
+
if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
|
|
4115
|
+
if (data0.events !== void 0) {
|
|
4116
|
+
let data1 = data0.events;
|
|
4117
|
+
if (Array.isArray(data1)) {
|
|
4118
|
+
const len1 = data1.length;
|
|
4119
|
+
for (let i1 = 0; i1 < len1; i1++) {
|
|
4120
|
+
let data2 = data1[i1];
|
|
4121
|
+
const _errs3 = errors;
|
|
4122
|
+
const _errs4 = errors;
|
|
4123
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
4124
|
+
if (data2.type === void 0 && ("type")) {
|
|
4125
|
+
const err0 = {};
|
|
4126
|
+
if (vErrors === null) {
|
|
4127
|
+
vErrors = [err0];
|
|
4128
|
+
} else {
|
|
4129
|
+
vErrors.push(err0);
|
|
4130
|
+
}
|
|
4131
|
+
errors++;
|
|
4132
|
+
} else {
|
|
4133
|
+
if (data2.type !== void 0) {
|
|
4134
|
+
let data3 = data2.type;
|
|
4135
|
+
if (!(data3 === "now" || data3 === "mark" || data3 === "span")) {
|
|
4136
|
+
const err1 = {};
|
|
4137
|
+
if (vErrors === null) {
|
|
4138
|
+
vErrors = [err1];
|
|
4139
|
+
} else {
|
|
4140
|
+
vErrors.push(err1);
|
|
4141
|
+
}
|
|
4142
|
+
errors++;
|
|
4143
|
+
}
|
|
4144
|
+
}
|
|
4145
|
+
}
|
|
4146
|
+
}
|
|
4147
|
+
var valid5 = _errs4 === errors;
|
|
4148
|
+
if (valid5) {
|
|
4149
|
+
const err2 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/items/properties/events/items/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4150
|
+
if (vErrors === null) {
|
|
4151
|
+
vErrors = [err2];
|
|
4152
|
+
} else {
|
|
4153
|
+
vErrors.push(err2);
|
|
4154
|
+
}
|
|
4155
|
+
errors++;
|
|
4156
|
+
} else {
|
|
4157
|
+
errors = _errs3;
|
|
4158
|
+
if (vErrors !== null) {
|
|
4159
|
+
if (_errs3) {
|
|
4160
|
+
vErrors.length = _errs3;
|
|
4161
|
+
} else {
|
|
4162
|
+
vErrors = null;
|
|
4163
|
+
}
|
|
4164
|
+
}
|
|
4165
|
+
}
|
|
4166
|
+
const _errs8 = errors;
|
|
4167
|
+
const _errs9 = errors;
|
|
4168
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
4169
|
+
if (data2.type === void 0 && ("type")) {
|
|
4170
|
+
const err3 = {};
|
|
4171
|
+
if (vErrors === null) {
|
|
4172
|
+
vErrors = [err3];
|
|
4173
|
+
} else {
|
|
4174
|
+
vErrors.push(err3);
|
|
4175
|
+
}
|
|
4176
|
+
errors++;
|
|
4177
|
+
} else {
|
|
4178
|
+
if (data2.type !== void 0) {
|
|
4179
|
+
let data4 = data2.type;
|
|
4180
|
+
if (!(data4 === "leaf" || data4 === "node")) {
|
|
4181
|
+
const err4 = {};
|
|
4182
|
+
if (vErrors === null) {
|
|
4183
|
+
vErrors = [err4];
|
|
4184
|
+
} else {
|
|
4185
|
+
vErrors.push(err4);
|
|
4186
|
+
}
|
|
4187
|
+
errors++;
|
|
4188
|
+
}
|
|
4189
|
+
}
|
|
4190
|
+
}
|
|
4191
|
+
}
|
|
4192
|
+
var valid9 = _errs9 === errors;
|
|
4193
|
+
if (valid9) {
|
|
4194
|
+
const err5 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/items/properties/events/items/allOf/0/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4195
|
+
if (vErrors === null) {
|
|
4196
|
+
vErrors = [err5];
|
|
4197
|
+
} else {
|
|
4198
|
+
vErrors.push(err5);
|
|
4199
|
+
}
|
|
4200
|
+
errors++;
|
|
4201
|
+
} else {
|
|
4202
|
+
errors = _errs8;
|
|
4203
|
+
if (vErrors !== null) {
|
|
4204
|
+
if (_errs8) {
|
|
4205
|
+
vErrors.length = _errs8;
|
|
4206
|
+
} else {
|
|
4207
|
+
vErrors = null;
|
|
4208
|
+
}
|
|
4209
|
+
}
|
|
4210
|
+
}
|
|
4211
|
+
const _errs14 = errors;
|
|
4212
|
+
const _errs15 = errors;
|
|
4213
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
4214
|
+
if (data2.type === void 0 && ("type")) {
|
|
4215
|
+
const err6 = {};
|
|
4216
|
+
if (vErrors === null) {
|
|
4217
|
+
vErrors = [err6];
|
|
4218
|
+
} else {
|
|
4219
|
+
vErrors.push(err6);
|
|
4220
|
+
}
|
|
4221
|
+
errors++;
|
|
4222
|
+
} else {
|
|
4223
|
+
if (data2.type !== void 0) {
|
|
4224
|
+
let data5 = data2.type;
|
|
4225
|
+
if (!(data5 === "edge" || data5 === "action")) {
|
|
4226
|
+
const err7 = {};
|
|
4227
|
+
if (vErrors === null) {
|
|
4228
|
+
vErrors = [err7];
|
|
4229
|
+
} else {
|
|
4230
|
+
vErrors.push(err7);
|
|
4231
|
+
}
|
|
4232
|
+
errors++;
|
|
4233
|
+
}
|
|
4234
|
+
}
|
|
4235
|
+
}
|
|
4236
|
+
}
|
|
4237
|
+
var valid13 = _errs15 === errors;
|
|
4238
|
+
if (valid13) {
|
|
4239
|
+
const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notWiredEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4240
|
+
if (vErrors === null) {
|
|
4241
|
+
vErrors = [err8];
|
|
4242
|
+
} else {
|
|
4243
|
+
vErrors.push(err8);
|
|
4244
|
+
}
|
|
4245
|
+
errors++;
|
|
4246
|
+
} else {
|
|
4247
|
+
errors = _errs14;
|
|
4248
|
+
if (vErrors !== null) {
|
|
4249
|
+
if (_errs14) {
|
|
4250
|
+
vErrors.length = _errs14;
|
|
4251
|
+
} else {
|
|
4252
|
+
vErrors = null;
|
|
4253
|
+
}
|
|
4254
|
+
}
|
|
4255
|
+
}
|
|
4256
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
4257
|
+
if (data2.type !== void 0) {
|
|
4258
|
+
let data6 = data2.type;
|
|
4259
|
+
const _errs18 = errors;
|
|
4260
|
+
const _errs19 = errors;
|
|
4261
|
+
if (!(data6 === "commit" || data6 === "branch")) {
|
|
4262
|
+
const err9 = {};
|
|
4263
|
+
if (vErrors === null) {
|
|
4264
|
+
vErrors = [err9];
|
|
4265
|
+
} else {
|
|
4266
|
+
vErrors.push(err9);
|
|
4267
|
+
}
|
|
4268
|
+
errors++;
|
|
4269
|
+
}
|
|
4270
|
+
var valid16 = _errs19 === errors;
|
|
4271
|
+
if (valid16) {
|
|
4272
|
+
const err10 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4273
|
+
if (vErrors === null) {
|
|
4274
|
+
vErrors = [err10];
|
|
4275
|
+
} else {
|
|
4276
|
+
vErrors.push(err10);
|
|
4277
|
+
}
|
|
4278
|
+
errors++;
|
|
4279
|
+
} else {
|
|
4280
|
+
errors = _errs18;
|
|
4281
|
+
if (vErrors !== null) {
|
|
4282
|
+
if (_errs18) {
|
|
4283
|
+
vErrors.length = _errs18;
|
|
4284
|
+
} else {
|
|
4285
|
+
vErrors = null;
|
|
4286
|
+
}
|
|
4287
|
+
}
|
|
4288
|
+
}
|
|
4289
|
+
}
|
|
4290
|
+
if (data2.color !== void 0) {
|
|
4291
|
+
const err11 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4292
|
+
if (vErrors === null) {
|
|
4293
|
+
vErrors = [err11];
|
|
4294
|
+
} else {
|
|
4295
|
+
vErrors.push(err11);
|
|
4296
|
+
}
|
|
4297
|
+
errors++;
|
|
4298
|
+
}
|
|
4299
|
+
}
|
|
4300
|
+
}
|
|
4301
|
+
}
|
|
4302
|
+
}
|
|
4303
|
+
}
|
|
4304
|
+
}
|
|
4305
|
+
}
|
|
4306
|
+
validate25.errors = vErrors;
|
|
4307
|
+
return errors === 0;
|
|
4308
|
+
}
|
|
4309
|
+
var schema79 = { "enum": ["blue", "amber", "green", "violet", "rose", "slate", "coin"] };
|
|
4310
|
+
var pattern0 = new RegExp("^[^\\s\\[\\]\u300C\u300D=:]+$", "u");
|
|
4311
|
+
var func3 = ucs2length;
|
|
4312
|
+
function validate30(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
4313
|
+
let vErrors = null;
|
|
4314
|
+
let errors = 0;
|
|
4315
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4316
|
+
if (data.id === void 0) {
|
|
4317
|
+
const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "id" }, message: "must have required property 'id'" };
|
|
3770
4318
|
if (vErrors === null) {
|
|
3771
4319
|
vErrors = [err0];
|
|
3772
4320
|
} else {
|
|
@@ -3863,7 +4411,7 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3863
4411
|
if (data.color !== void 0) {
|
|
3864
4412
|
let data3 = data.color;
|
|
3865
4413
|
if (!(data3 === "blue" || data3 === "amber" || data3 === "green" || data3 === "violet" || data3 === "rose" || data3 === "slate" || data3 === "coin")) {
|
|
3866
|
-
const err9 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues:
|
|
4414
|
+
const err9 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema79.enum }, message: "must be equal to one of the allowed values" };
|
|
3867
4415
|
if (vErrors === null) {
|
|
3868
4416
|
vErrors = [err9];
|
|
3869
4417
|
} else {
|
|
@@ -3903,11 +4451,11 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3903
4451
|
}
|
|
3904
4452
|
errors++;
|
|
3905
4453
|
}
|
|
3906
|
-
|
|
4454
|
+
validate30.errors = vErrors;
|
|
3907
4455
|
return errors === 0;
|
|
3908
4456
|
}
|
|
3909
4457
|
var pattern3 = new RegExp("^(/|https?://)", "u");
|
|
3910
|
-
function
|
|
4458
|
+
function validate32(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
3911
4459
|
let vErrors = null;
|
|
3912
4460
|
let errors = 0;
|
|
3913
4461
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -4009,7 +4557,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4009
4557
|
if (data.color !== void 0) {
|
|
4010
4558
|
let data3 = data.color;
|
|
4011
4559
|
if (!(data3 === "blue" || data3 === "amber" || data3 === "green" || data3 === "violet" || data3 === "rose" || data3 === "slate" || data3 === "coin")) {
|
|
4012
|
-
const err9 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues:
|
|
4560
|
+
const err9 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema79.enum }, message: "must be equal to one of the allowed values" };
|
|
4013
4561
|
if (vErrors === null) {
|
|
4014
4562
|
vErrors = [err9];
|
|
4015
4563
|
} else {
|
|
@@ -4093,11 +4641,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4093
4641
|
}
|
|
4094
4642
|
errors++;
|
|
4095
4643
|
}
|
|
4096
|
-
|
|
4644
|
+
validate32.errors = vErrors;
|
|
4097
4645
|
return errors === 0;
|
|
4098
4646
|
}
|
|
4099
4647
|
var pattern4 = new RegExp("^([0-9]+/[0-9]+|[0-9]+(\\.[0-9]+)?%)$", "u");
|
|
4100
|
-
function
|
|
4648
|
+
function validate35(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
4101
4649
|
let vErrors = null;
|
|
4102
4650
|
let errors = 0;
|
|
4103
4651
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -4183,10 +4731,10 @@ function validate32(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4183
4731
|
}
|
|
4184
4732
|
errors++;
|
|
4185
4733
|
}
|
|
4186
|
-
|
|
4734
|
+
validate35.errors = vErrors;
|
|
4187
4735
|
return errors === 0;
|
|
4188
4736
|
}
|
|
4189
|
-
function
|
|
4737
|
+
function validate34(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
4190
4738
|
let vErrors = null;
|
|
4191
4739
|
let errors = 0;
|
|
4192
4740
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -4300,8 +4848,8 @@ function validate31(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4300
4848
|
}
|
|
4301
4849
|
const len1 = data3.length;
|
|
4302
4850
|
for (let i1 = 0; i1 < len1; i1++) {
|
|
4303
|
-
if (!
|
|
4304
|
-
vErrors = vErrors === null ?
|
|
4851
|
+
if (!validate35(data3[i1], { instancePath: instancePath + "/meters/" + i1, parentData: data3, parentDataProperty: i1, rootData })) {
|
|
4852
|
+
vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
|
|
4305
4853
|
errors = vErrors.length;
|
|
4306
4854
|
}
|
|
4307
4855
|
}
|
|
@@ -4324,10 +4872,10 @@ function validate31(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4324
4872
|
}
|
|
4325
4873
|
errors++;
|
|
4326
4874
|
}
|
|
4327
|
-
|
|
4875
|
+
validate34.errors = vErrors;
|
|
4328
4876
|
return errors === 0;
|
|
4329
4877
|
}
|
|
4330
|
-
function
|
|
4878
|
+
function validate39(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
4331
4879
|
let vErrors = null;
|
|
4332
4880
|
let errors = 0;
|
|
4333
4881
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -4413,13 +4961,13 @@ function validate36(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4413
4961
|
}
|
|
4414
4962
|
errors++;
|
|
4415
4963
|
}
|
|
4416
|
-
|
|
4964
|
+
validate39.errors = vErrors;
|
|
4417
4965
|
return errors === 0;
|
|
4418
4966
|
}
|
|
4419
|
-
var
|
|
4967
|
+
var schema102 = { "oneOf": [{ "description": "\u7DDA\u3002\u904B\u3076\u7269\u3092\u8F09\u305B\u3066\u9001\u308B\u5074\u304B\u3089\u53D7\u3051\u308B\u5074\u3078\u8D70\u308B", "type": "object", "additionalProperties": false, "required": ["type", "from", "to", "carry"], "properties": { "type": { "const": "edge" }, "from": { "$ref": "#/definitions/id" }, "to": { "$ref": "#/definitions/id" }, "label": { "$ref": "#/definitions/text" }, "carry": { "$ref": "#/definitions/carry" }, "labelSide": { "description": "\u7DDA\u306E\u540D\u524D\u3092\u7F6E\u304F\u5074 (\u5BC4\u305B\u306E\u6307\u793A)", "enum": ["above", "below", "left", "right"] }, "at": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u62E1\u5927\u306E\u5E2F\u3067\u3001\u7DDA\u3092\u5F15\u304F\u5217\u306E\u76EE\u76DB\u308A", "$ref": "#/definitions/unit" }, "into": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u62E1\u5927\u306E\u5E2F\u3067\u3001\u53D7\u3051\u308B\u7BB1\u3092\u9078\u3076\u5217\u306E\u76EE\u76DB\u308A\u3002\u66F8\u304B\u306A\u3051\u308C\u3070 at \u306E\u5217", "$ref": "#/definitions/unit" } } }, { "description": "\u7BB1\u306E\u4E2D\u306E\u51E6\u7406", "type": "object", "additionalProperties": false, "required": ["type", "box", "label"], "properties": { "type": { "const": "action" }, "box": { "$ref": "#/definitions/id" }, "label": { "$ref": "#/definitions/text" } } }, { "description": "\u7BB1\u306E\u4E0B\u306E\u5C0F\u3055\u306A\u5B57\u306E\u66F8\u304D\u63DB\u3048", "type": "object", "additionalProperties": false, "required": ["type", "box", "text"], "properties": { "type": { "const": "swap" }, "box": { "$ref": "#/definitions/id" }, "text": { "$ref": "#/definitions/text" }, "color": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u7BC0\u76EE\u306E\u4E38\u306E\u8272", "$ref": "#/definitions/color" } } }, { "description": "commit \u3092\u7A4D\u3080\u3002\u679D\u5206\u304B\u308C\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u7A4D\u3093\u3060\u679D\u306E\u672D\u3068\u3001\u305D\u306E\u679D\u3092\u6307\u3059 HEAD \u304C\u9032\u3080\u3002\u5F53\u3066\u76F4\u3057 (copy) \u306F\u679D\u306E\u672D\u3092\u52D5\u304B\u3055\u305A\u3001merge commit (merge) \u306F\u53D6\u308A\u8FBC\u3080\u679D\u306E\u5148\u7AEF\u3082\u89AA\u306B\u6301\u3064", "type": "object", "additionalProperties": false, "required": ["type", "id", "branch"], "properties": { "type": { "const": "commit" }, "id": { "$ref": "#/definitions/id" }, "branch": { "$ref": "#/definitions/id" }, "copy": { "$ref": "#/definitions/id" }, "merge": { "$ref": "#/definitions/id" }, "hash": { "$ref": "#/definitions/hash" }, "note": { "$ref": "#/definitions/text" } } }, { "description": "\u679D\u3092\u5207\u308B\u3002\u679D\u5206\u304B\u308C\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u679D\u306E\u672D\u3092 from \u306E commit \u3078\u7F6E\u304D\u3001HEAD \u3092\u305D\u306E\u679D\u3078\u79FB\u3059", "type": "object", "additionalProperties": false, "required": ["type", "branch", "from"], "properties": { "type": { "const": "branch" }, "branch": { "$ref": "#/definitions/id" }, "from": { "$ref": "#/definitions/id" } } }, { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u4ECA\u306E\u6642\u523B\u306E\u91DD\u3092\u3001to \u306E\u76EE\u76DB\u308A\u306E\u7D42\u308F\u308A\u307E\u3067\u9032\u3081\u308B", "type": "object", "additionalProperties": false, "required": ["type", "to"], "properties": { "type": { "const": "now" }, "to": { "$ref": "#/definitions/unit" } } }, { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u5370\u306E\u5217 row \u306E\u3001from \u304B\u3089 to \u306E\u76EE\u76DB\u308A\u306E\u5370\u306E\u8272\u3092\u5909\u3048\u308B", "type": "object", "additionalProperties": false, "required": ["type", "row", "from", "to", "color"], "properties": { "type": { "const": "mark" }, "row": { "$ref": "#/definitions/id" }, "from": { "$ref": "#/definitions/unit" }, "to": { "$ref": "#/definitions/unit" }, "color": { "$ref": "#/definitions/color" } } }, { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E from \u304B\u3089 to \u306E\u76EE\u76DB\u308A\u306B\u3001\u62EC\u5F27\u3068\u5B57\u3092\u51FA\u3059\u3002shape \u304C box \u306A\u3089\u5370\u306E\u5217\u3092\u56F2\u307F\u3001\u5B57\u3092\u7E01\u306E\u672D\u306B\u3059\u308B", "type": "object", "additionalProperties": false, "required": ["type", "from", "to", "text"], "properties": { "type": { "const": "span" }, "from": { "$ref": "#/definitions/unit" }, "to": { "$ref": "#/definitions/unit" }, "text": { "$ref": "#/definitions/text" }, "shape": { "enum": ["box"] }, "color": { "$ref": "#/definitions/color" } } }, { "description": "\u8449\u3092\u51FA\u3059\u3002\u6728\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u66F8\u3044\u305F\u6BB5\u3067\u8449\u306E\u7BB1\u304C\u73FE\u308C\u308B\u3002hash \u3092\u66F8\u304F\u3068\u7BB1\u306B\u5024\u3092\u51FA\u3057\u3001\u540D\u672D\u3092\u8449\u306E\u4E0B\u306E\u672D\u306B\u51FA\u3059", "type": "object", "additionalProperties": false, "required": ["type", "id"], "properties": { "type": { "const": "leaf" }, "id": { "$ref": "#/definitions/id" }, "hash": { "$ref": "#/definitions/hash" } } }, { "description": "1 \u3064\u4EE5\u4E0A\u306E\u5B50\u304B\u3089\u89AA\u3092\u7D44\u3080\u3002\u6728\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u66F8\u3044\u305F\u6BB5\u3067\u89AA\u306E\u7BB1\u3068\u3001\u5B50\u304B\u3089\u89AA\u3078\u306E\u6728\u306E\u7DDA\u304C\u73FE\u308C\u308B", "type": "object", "additionalProperties": false, "required": ["type", "id", "children"], "properties": { "type": { "const": "node" }, "id": { "$ref": "#/definitions/id" }, "children": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/id" } }, "hash": { "$ref": "#/definitions/hash" } } }, { "description": "\u5217\u306E box \u306E\u4E26\u3073\u3092 items \u306B\u66F8\u304D\u63DB\u3048\u308B\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u30C1\u30C3\u30D7\u306F\u524D\u306B\u5C45\u305F\u5217\u304B\u3089\u6ED1\u308A\u3001\u3069\u306E\u5217\u306B\u3082\u5C45\u306A\u304B\u3063\u305F\u30C1\u30C3\u30D7\u306F\u5F3E\u3093\u3067\u73FE\u308C\u3001\u5217\u304B\u3089\u5916\u308C\u305F\u30C1\u30C3\u30D7\u306F\u6D88\u3048\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box", "items"], "properties": { "type": { "const": "line" }, "box": { "$ref": "#/definitions/id" }, "items": { "type": "array", "minItems": 1, "maxItems": 12, "items": { "$ref": "#/definitions/id" } } } }, { "description": "\u5217 box \u306B\u5C01\u3092\u3057\u3066\u3001\u30C1\u30C3\u30D7\u3092\u96A0\u3059\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box"], "properties": { "type": { "const": "seal" }, "box": { "$ref": "#/definitions/id" } } }, { "description": "\u5217 box \u306E\u5C01\u3092\u958B\u3051\u308B\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box"], "properties": { "type": { "const": "open" }, "box": { "$ref": "#/definitions/id" } } }, { "description": "\u5217 box \u3092\u9078\u3076\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u5217\u306E\u7E01\u306B\u8272\u304C\u4ED8\u304D\u3001\u307B\u304B\u306E\u5217\u304C\u8584\u304F\u306A\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box"], "properties": { "type": { "const": "pick" }, "box": { "$ref": "#/definitions/id" } } }, { "description": "\u5217 box \u306E\u53F3\u306B text \u306E\u672D\u3092\u62BC\u3059\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box", "text"], "properties": { "type": { "const": "stamp" }, "box": { "$ref": "#/definitions/id" }, "text": { "$ref": "#/definitions/text" } } }, { "description": "\u4E2D\u8EAB\u306E\u5E2F\u306E\u6B04\u306E\u5024\u3068\u672D", "type": "object", "additionalProperties": false, "required": ["type", "field"], "anyOf": [{ "required": ["value"] }, { "required": ["tag"] }], "properties": { "type": { "const": "strip" }, "field": { "$ref": "#/definitions/text" }, "value": { "$ref": "#/definitions/text" }, "tag": { "$ref": "#/definitions/text" } } }] };
|
|
4420
4968
|
var pattern14 = new RegExp("^[0-9a-f]{4,40}$", "u");
|
|
4421
|
-
var
|
|
4422
|
-
function
|
|
4969
|
+
var schema106 = { "properties": { "kind": { "enum": ["envelope", "tag", "coin", "none"] }}};
|
|
4970
|
+
function validate42(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
4423
4971
|
let vErrors = null;
|
|
4424
4972
|
let errors = 0;
|
|
4425
4973
|
const _errs1 = errors;
|
|
@@ -4545,7 +5093,7 @@ function validate39(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4545
5093
|
if (data.kind !== void 0) {
|
|
4546
5094
|
let data1 = data.kind;
|
|
4547
5095
|
if (!(data1 === "envelope" || data1 === "tag" || data1 === "coin" || data1 === "none")) {
|
|
4548
|
-
const err8 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues:
|
|
5096
|
+
const err8 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues: schema106.properties.kind.enum }, message: "must be equal to one of the allowed values" };
|
|
4549
5097
|
if (vErrors === null) {
|
|
4550
5098
|
vErrors = [err8];
|
|
4551
5099
|
} else {
|
|
@@ -4585,10 +5133,10 @@ function validate39(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4585
5133
|
}
|
|
4586
5134
|
errors++;
|
|
4587
5135
|
}
|
|
4588
|
-
|
|
5136
|
+
validate42.errors = vErrors;
|
|
4589
5137
|
return errors === 0;
|
|
4590
5138
|
}
|
|
4591
|
-
function
|
|
5139
|
+
function validate41(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
4592
5140
|
let vErrors = null;
|
|
4593
5141
|
let errors = 0;
|
|
4594
5142
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -4730,15 +5278,15 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4730
5278
|
}
|
|
4731
5279
|
}
|
|
4732
5280
|
if (data.carry !== void 0) {
|
|
4733
|
-
if (!
|
|
4734
|
-
vErrors = vErrors === null ?
|
|
5281
|
+
if (!validate42(data.carry, { instancePath: instancePath + "/carry", parentData: data, parentDataProperty: "carry", rootData })) {
|
|
5282
|
+
vErrors = vErrors === null ? validate42.errors : vErrors.concat(validate42.errors);
|
|
4735
5283
|
errors = vErrors.length;
|
|
4736
5284
|
}
|
|
4737
5285
|
}
|
|
4738
5286
|
if (data.labelSide !== void 0) {
|
|
4739
5287
|
let data5 = data.labelSide;
|
|
4740
5288
|
if (!(data5 === "above" || data5 === "below" || data5 === "left" || data5 === "right")) {
|
|
4741
|
-
const err13 = { instancePath: instancePath + "/labelSide", schemaPath: "#/oneOf/0/properties/labelSide/enum", keyword: "enum", params: { allowedValues:
|
|
5289
|
+
const err13 = { instancePath: instancePath + "/labelSide", schemaPath: "#/oneOf/0/properties/labelSide/enum", keyword: "enum", params: { allowedValues: schema102.oneOf[0].properties.labelSide.enum }, message: "must be equal to one of the allowed values" };
|
|
4742
5290
|
if (vErrors === null) {
|
|
4743
5291
|
vErrors = [err13];
|
|
4744
5292
|
} else {
|
|
@@ -5004,7 +5552,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5004
5552
|
if (data.color !== void 0) {
|
|
5005
5553
|
let data14 = data.color;
|
|
5006
5554
|
if (!(data14 === "blue" || data14 === "amber" || data14 === "green" || data14 === "violet" || data14 === "rose" || data14 === "slate" || data14 === "coin")) {
|
|
5007
|
-
const err38 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues:
|
|
5555
|
+
const err38 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema79.enum }, message: "must be equal to one of the allowed values" };
|
|
5008
5556
|
if (vErrors === null) {
|
|
5009
5557
|
vErrors = [err38];
|
|
5010
5558
|
} else {
|
|
@@ -5532,7 +6080,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5532
6080
|
if (data.color !== void 0) {
|
|
5533
6081
|
let data31 = data.color;
|
|
5534
6082
|
if (!(data31 === "blue" || data31 === "amber" || data31 === "green" || data31 === "violet" || data31 === "rose" || data31 === "slate" || data31 === "coin")) {
|
|
5535
|
-
const err88 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues:
|
|
6083
|
+
const err88 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema79.enum }, message: "must be equal to one of the allowed values" };
|
|
5536
6084
|
if (vErrors === null) {
|
|
5537
6085
|
vErrors = [err88];
|
|
5538
6086
|
} else {
|
|
@@ -5680,7 +6228,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5680
6228
|
}
|
|
5681
6229
|
if (data.shape !== void 0) {
|
|
5682
6230
|
if (!(data.shape === "box")) {
|
|
5683
|
-
const err102 = { instancePath: instancePath + "/shape", schemaPath: "#/oneOf/7/properties/shape/enum", keyword: "enum", params: { allowedValues:
|
|
6231
|
+
const err102 = { instancePath: instancePath + "/shape", schemaPath: "#/oneOf/7/properties/shape/enum", keyword: "enum", params: { allowedValues: schema102.oneOf[7].properties.shape.enum }, message: "must be equal to one of the allowed values" };
|
|
5684
6232
|
if (vErrors === null) {
|
|
5685
6233
|
vErrors = [err102];
|
|
5686
6234
|
} else {
|
|
@@ -5692,7 +6240,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5692
6240
|
if (data.color !== void 0) {
|
|
5693
6241
|
let data37 = data.color;
|
|
5694
6242
|
if (!(data37 === "blue" || data37 === "amber" || data37 === "green" || data37 === "violet" || data37 === "rose" || data37 === "slate" || data37 === "coin")) {
|
|
5695
|
-
const err103 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues:
|
|
6243
|
+
const err103 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema79.enum }, message: "must be equal to one of the allowed values" };
|
|
5696
6244
|
if (vErrors === null) {
|
|
5697
6245
|
vErrors = [err103];
|
|
5698
6246
|
} else {
|
|
@@ -5954,13 +6502,10 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5954
6502
|
}
|
|
5955
6503
|
errors++;
|
|
5956
6504
|
}
|
|
5957
|
-
} else if (tag0 === "
|
|
5958
|
-
const _errs142 = errors;
|
|
5959
|
-
let valid56 = false;
|
|
5960
|
-
const _errs143 = errors;
|
|
6505
|
+
} else if (tag0 === "line") {
|
|
5961
6506
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
5962
|
-
if (data.
|
|
5963
|
-
const err128 = { instancePath, schemaPath: "#/oneOf/10/
|
|
6507
|
+
if (data.type === void 0) {
|
|
6508
|
+
const err128 = { instancePath, schemaPath: "#/oneOf/10/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
5964
6509
|
if (vErrors === null) {
|
|
5965
6510
|
vErrors = [err128];
|
|
5966
6511
|
} else {
|
|
@@ -5968,190 +6513,652 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5968
6513
|
}
|
|
5969
6514
|
errors++;
|
|
5970
6515
|
}
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
-
valid56 = valid56 || _valid0;
|
|
5974
|
-
if (!valid56) {
|
|
5975
|
-
const _errs144 = errors;
|
|
5976
|
-
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
5977
|
-
if (data.tag === void 0) {
|
|
5978
|
-
const err129 = { instancePath, schemaPath: "#/oneOf/10/anyOf/1/required", keyword: "required", params: { missingProperty: "tag" }, message: "must have required property 'tag'" };
|
|
5979
|
-
if (vErrors === null) {
|
|
5980
|
-
vErrors = [err129];
|
|
5981
|
-
} else {
|
|
5982
|
-
vErrors.push(err129);
|
|
5983
|
-
}
|
|
5984
|
-
errors++;
|
|
5985
|
-
}
|
|
5986
|
-
}
|
|
5987
|
-
var _valid0 = _errs144 === errors;
|
|
5988
|
-
valid56 = valid56 || _valid0;
|
|
5989
|
-
}
|
|
5990
|
-
if (!valid56) {
|
|
5991
|
-
const err130 = { instancePath, schemaPath: "#/oneOf/10/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
5992
|
-
if (vErrors === null) {
|
|
5993
|
-
vErrors = [err130];
|
|
5994
|
-
} else {
|
|
5995
|
-
vErrors.push(err130);
|
|
5996
|
-
}
|
|
5997
|
-
errors++;
|
|
5998
|
-
} else {
|
|
5999
|
-
errors = _errs142;
|
|
6000
|
-
if (vErrors !== null) {
|
|
6001
|
-
if (_errs142) {
|
|
6002
|
-
vErrors.length = _errs142;
|
|
6003
|
-
} else {
|
|
6004
|
-
vErrors = null;
|
|
6005
|
-
}
|
|
6006
|
-
}
|
|
6007
|
-
}
|
|
6008
|
-
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
6009
|
-
if (data.type === void 0) {
|
|
6010
|
-
const err131 = { instancePath, schemaPath: "#/oneOf/10/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
6516
|
+
if (data.box === void 0) {
|
|
6517
|
+
const err129 = { instancePath, schemaPath: "#/oneOf/10/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
|
|
6011
6518
|
if (vErrors === null) {
|
|
6012
|
-
vErrors = [
|
|
6519
|
+
vErrors = [err129];
|
|
6013
6520
|
} else {
|
|
6014
|
-
vErrors.push(
|
|
6521
|
+
vErrors.push(err129);
|
|
6015
6522
|
}
|
|
6016
6523
|
errors++;
|
|
6017
6524
|
}
|
|
6018
|
-
if (data.
|
|
6019
|
-
const
|
|
6525
|
+
if (data.items === void 0) {
|
|
6526
|
+
const err130 = { instancePath, schemaPath: "#/oneOf/10/required", keyword: "required", params: { missingProperty: "items" }, message: "must have required property 'items'" };
|
|
6020
6527
|
if (vErrors === null) {
|
|
6021
|
-
vErrors = [
|
|
6528
|
+
vErrors = [err130];
|
|
6022
6529
|
} else {
|
|
6023
|
-
vErrors.push(
|
|
6530
|
+
vErrors.push(err130);
|
|
6024
6531
|
}
|
|
6025
6532
|
errors++;
|
|
6026
6533
|
}
|
|
6027
6534
|
for (const key10 in data) {
|
|
6028
|
-
if (!(key10 === "type" || key10 === "
|
|
6029
|
-
const
|
|
6535
|
+
if (!(key10 === "type" || key10 === "box" || key10 === "items")) {
|
|
6536
|
+
const err131 = { instancePath, schemaPath: "#/oneOf/10/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key10 }, message: "must NOT have additional properties" };
|
|
6030
6537
|
if (vErrors === null) {
|
|
6031
|
-
vErrors = [
|
|
6538
|
+
vErrors = [err131];
|
|
6032
6539
|
} else {
|
|
6033
|
-
vErrors.push(
|
|
6540
|
+
vErrors.push(err131);
|
|
6034
6541
|
}
|
|
6035
6542
|
errors++;
|
|
6036
6543
|
}
|
|
6037
6544
|
}
|
|
6038
6545
|
if (data.type !== void 0) {
|
|
6039
|
-
if ("
|
|
6040
|
-
const
|
|
6546
|
+
if ("line" !== data.type) {
|
|
6547
|
+
const err132 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/10/properties/type/const", keyword: "const", params: { allowedValue: "line" }, message: "must be equal to constant" };
|
|
6041
6548
|
if (vErrors === null) {
|
|
6042
|
-
vErrors = [
|
|
6549
|
+
vErrors = [err132];
|
|
6043
6550
|
} else {
|
|
6044
|
-
vErrors.push(
|
|
6551
|
+
vErrors.push(err132);
|
|
6045
6552
|
}
|
|
6046
6553
|
errors++;
|
|
6047
6554
|
}
|
|
6048
6555
|
}
|
|
6049
|
-
if (data.
|
|
6050
|
-
let data47 = data.
|
|
6556
|
+
if (data.box !== void 0) {
|
|
6557
|
+
let data47 = data.box;
|
|
6051
6558
|
if (typeof data47 === "string") {
|
|
6052
|
-
if (
|
|
6053
|
-
const
|
|
6559
|
+
if (!pattern0.test(data47)) {
|
|
6560
|
+
const err133 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
6054
6561
|
if (vErrors === null) {
|
|
6055
|
-
vErrors = [
|
|
6562
|
+
vErrors = [err133];
|
|
6056
6563
|
} else {
|
|
6057
|
-
vErrors.push(
|
|
6564
|
+
vErrors.push(err133);
|
|
6058
6565
|
}
|
|
6059
6566
|
errors++;
|
|
6060
6567
|
}
|
|
6061
6568
|
} else {
|
|
6062
|
-
const
|
|
6569
|
+
const err134 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
6063
6570
|
if (vErrors === null) {
|
|
6064
|
-
vErrors = [
|
|
6571
|
+
vErrors = [err134];
|
|
6065
6572
|
} else {
|
|
6066
|
-
vErrors.push(
|
|
6573
|
+
vErrors.push(err134);
|
|
6067
6574
|
}
|
|
6068
6575
|
errors++;
|
|
6069
6576
|
}
|
|
6070
6577
|
}
|
|
6071
|
-
if (data.
|
|
6072
|
-
let data48 = data.
|
|
6073
|
-
if (
|
|
6074
|
-
if (
|
|
6075
|
-
const
|
|
6578
|
+
if (data.items !== void 0) {
|
|
6579
|
+
let data48 = data.items;
|
|
6580
|
+
if (Array.isArray(data48)) {
|
|
6581
|
+
if (data48.length > 12) {
|
|
6582
|
+
const err135 = { instancePath: instancePath + "/items", schemaPath: "#/oneOf/10/properties/items/maxItems", keyword: "maxItems", params: { limit: 12 }, message: "must NOT have more than 12 items" };
|
|
6076
6583
|
if (vErrors === null) {
|
|
6077
|
-
vErrors = [
|
|
6584
|
+
vErrors = [err135];
|
|
6078
6585
|
} else {
|
|
6079
|
-
vErrors.push(
|
|
6586
|
+
vErrors.push(err135);
|
|
6080
6587
|
}
|
|
6081
6588
|
errors++;
|
|
6082
6589
|
}
|
|
6083
|
-
|
|
6084
|
-
|
|
6085
|
-
if (vErrors === null) {
|
|
6086
|
-
vErrors = [err138];
|
|
6087
|
-
} else {
|
|
6088
|
-
vErrors.push(err138);
|
|
6089
|
-
}
|
|
6090
|
-
errors++;
|
|
6091
|
-
}
|
|
6092
|
-
}
|
|
6093
|
-
if (data.tag !== void 0) {
|
|
6094
|
-
let data49 = data.tag;
|
|
6095
|
-
if (typeof data49 === "string") {
|
|
6096
|
-
if (func3(data49) < 1) {
|
|
6097
|
-
const err139 = { instancePath: instancePath + "/tag", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
6590
|
+
if (data48.length < 1) {
|
|
6591
|
+
const err136 = { instancePath: instancePath + "/items", schemaPath: "#/oneOf/10/properties/items/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
6098
6592
|
if (vErrors === null) {
|
|
6099
|
-
vErrors = [
|
|
6593
|
+
vErrors = [err136];
|
|
6100
6594
|
} else {
|
|
6101
|
-
vErrors.push(
|
|
6595
|
+
vErrors.push(err136);
|
|
6102
6596
|
}
|
|
6103
6597
|
errors++;
|
|
6104
6598
|
}
|
|
6599
|
+
const len1 = data48.length;
|
|
6600
|
+
for (let i1 = 0; i1 < len1; i1++) {
|
|
6601
|
+
let data49 = data48[i1];
|
|
6602
|
+
if (typeof data49 === "string") {
|
|
6603
|
+
if (!pattern0.test(data49)) {
|
|
6604
|
+
const err137 = { instancePath: instancePath + "/items/" + i1, schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
6605
|
+
if (vErrors === null) {
|
|
6606
|
+
vErrors = [err137];
|
|
6607
|
+
} else {
|
|
6608
|
+
vErrors.push(err137);
|
|
6609
|
+
}
|
|
6610
|
+
errors++;
|
|
6611
|
+
}
|
|
6612
|
+
} else {
|
|
6613
|
+
const err138 = { instancePath: instancePath + "/items/" + i1, schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
6614
|
+
if (vErrors === null) {
|
|
6615
|
+
vErrors = [err138];
|
|
6616
|
+
} else {
|
|
6617
|
+
vErrors.push(err138);
|
|
6618
|
+
}
|
|
6619
|
+
errors++;
|
|
6620
|
+
}
|
|
6621
|
+
}
|
|
6105
6622
|
} else {
|
|
6106
|
-
const
|
|
6623
|
+
const err139 = { instancePath: instancePath + "/items", schemaPath: "#/oneOf/10/properties/items/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
6107
6624
|
if (vErrors === null) {
|
|
6108
|
-
vErrors = [
|
|
6625
|
+
vErrors = [err139];
|
|
6109
6626
|
} else {
|
|
6110
|
-
vErrors.push(
|
|
6627
|
+
vErrors.push(err139);
|
|
6111
6628
|
}
|
|
6112
6629
|
errors++;
|
|
6113
6630
|
}
|
|
6114
6631
|
}
|
|
6115
6632
|
} else {
|
|
6116
|
-
const
|
|
6633
|
+
const err140 = { instancePath, schemaPath: "#/oneOf/10/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
6117
6634
|
if (vErrors === null) {
|
|
6118
|
-
vErrors = [
|
|
6635
|
+
vErrors = [err140];
|
|
6119
6636
|
} else {
|
|
6120
|
-
vErrors.push(
|
|
6637
|
+
vErrors.push(err140);
|
|
6121
6638
|
}
|
|
6122
6639
|
errors++;
|
|
6123
6640
|
}
|
|
6124
|
-
} else {
|
|
6125
|
-
|
|
6126
|
-
|
|
6127
|
-
|
|
6128
|
-
|
|
6129
|
-
|
|
6130
|
-
|
|
6131
|
-
|
|
6132
|
-
|
|
6133
|
-
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
|
|
6138
|
-
|
|
6139
|
-
|
|
6641
|
+
} else if (tag0 === "seal") {
|
|
6642
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
6643
|
+
if (data.type === void 0) {
|
|
6644
|
+
const err141 = { instancePath, schemaPath: "#/oneOf/11/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
6645
|
+
if (vErrors === null) {
|
|
6646
|
+
vErrors = [err141];
|
|
6647
|
+
} else {
|
|
6648
|
+
vErrors.push(err141);
|
|
6649
|
+
}
|
|
6650
|
+
errors++;
|
|
6651
|
+
}
|
|
6652
|
+
if (data.box === void 0) {
|
|
6653
|
+
const err142 = { instancePath, schemaPath: "#/oneOf/11/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
|
|
6654
|
+
if (vErrors === null) {
|
|
6655
|
+
vErrors = [err142];
|
|
6656
|
+
} else {
|
|
6657
|
+
vErrors.push(err142);
|
|
6658
|
+
}
|
|
6659
|
+
errors++;
|
|
6660
|
+
}
|
|
6661
|
+
for (const key11 in data) {
|
|
6662
|
+
if (!(key11 === "type" || key11 === "box")) {
|
|
6663
|
+
const err143 = { instancePath, schemaPath: "#/oneOf/11/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key11 }, message: "must NOT have additional properties" };
|
|
6664
|
+
if (vErrors === null) {
|
|
6665
|
+
vErrors = [err143];
|
|
6666
|
+
} else {
|
|
6667
|
+
vErrors.push(err143);
|
|
6668
|
+
}
|
|
6669
|
+
errors++;
|
|
6670
|
+
}
|
|
6671
|
+
}
|
|
6672
|
+
if (data.type !== void 0) {
|
|
6673
|
+
if ("seal" !== data.type) {
|
|
6674
|
+
const err144 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/11/properties/type/const", keyword: "const", params: { allowedValue: "seal" }, message: "must be equal to constant" };
|
|
6675
|
+
if (vErrors === null) {
|
|
6676
|
+
vErrors = [err144];
|
|
6677
|
+
} else {
|
|
6678
|
+
vErrors.push(err144);
|
|
6679
|
+
}
|
|
6680
|
+
errors++;
|
|
6681
|
+
}
|
|
6682
|
+
}
|
|
6683
|
+
if (data.box !== void 0) {
|
|
6684
|
+
let data51 = data.box;
|
|
6685
|
+
if (typeof data51 === "string") {
|
|
6686
|
+
if (!pattern0.test(data51)) {
|
|
6687
|
+
const err145 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
6688
|
+
if (vErrors === null) {
|
|
6689
|
+
vErrors = [err145];
|
|
6690
|
+
} else {
|
|
6691
|
+
vErrors.push(err145);
|
|
6692
|
+
}
|
|
6693
|
+
errors++;
|
|
6694
|
+
}
|
|
6695
|
+
} else {
|
|
6696
|
+
const err146 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
6697
|
+
if (vErrors === null) {
|
|
6698
|
+
vErrors = [err146];
|
|
6699
|
+
} else {
|
|
6700
|
+
vErrors.push(err146);
|
|
6701
|
+
}
|
|
6702
|
+
errors++;
|
|
6703
|
+
}
|
|
6704
|
+
}
|
|
6705
|
+
} else {
|
|
6706
|
+
const err147 = { instancePath, schemaPath: "#/oneOf/11/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
6707
|
+
if (vErrors === null) {
|
|
6708
|
+
vErrors = [err147];
|
|
6709
|
+
} else {
|
|
6710
|
+
vErrors.push(err147);
|
|
6711
|
+
}
|
|
6712
|
+
errors++;
|
|
6713
|
+
}
|
|
6714
|
+
} else if (tag0 === "open") {
|
|
6715
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
6716
|
+
if (data.type === void 0) {
|
|
6717
|
+
const err148 = { instancePath, schemaPath: "#/oneOf/12/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
6718
|
+
if (vErrors === null) {
|
|
6719
|
+
vErrors = [err148];
|
|
6720
|
+
} else {
|
|
6721
|
+
vErrors.push(err148);
|
|
6722
|
+
}
|
|
6723
|
+
errors++;
|
|
6724
|
+
}
|
|
6725
|
+
if (data.box === void 0) {
|
|
6726
|
+
const err149 = { instancePath, schemaPath: "#/oneOf/12/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
|
|
6727
|
+
if (vErrors === null) {
|
|
6728
|
+
vErrors = [err149];
|
|
6729
|
+
} else {
|
|
6730
|
+
vErrors.push(err149);
|
|
6731
|
+
}
|
|
6732
|
+
errors++;
|
|
6733
|
+
}
|
|
6734
|
+
for (const key12 in data) {
|
|
6735
|
+
if (!(key12 === "type" || key12 === "box")) {
|
|
6736
|
+
const err150 = { instancePath, schemaPath: "#/oneOf/12/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key12 }, message: "must NOT have additional properties" };
|
|
6737
|
+
if (vErrors === null) {
|
|
6738
|
+
vErrors = [err150];
|
|
6739
|
+
} else {
|
|
6740
|
+
vErrors.push(err150);
|
|
6741
|
+
}
|
|
6742
|
+
errors++;
|
|
6743
|
+
}
|
|
6744
|
+
}
|
|
6745
|
+
if (data.type !== void 0) {
|
|
6746
|
+
if ("open" !== data.type) {
|
|
6747
|
+
const err151 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/12/properties/type/const", keyword: "const", params: { allowedValue: "open" }, message: "must be equal to constant" };
|
|
6748
|
+
if (vErrors === null) {
|
|
6749
|
+
vErrors = [err151];
|
|
6750
|
+
} else {
|
|
6751
|
+
vErrors.push(err151);
|
|
6752
|
+
}
|
|
6753
|
+
errors++;
|
|
6754
|
+
}
|
|
6755
|
+
}
|
|
6756
|
+
if (data.box !== void 0) {
|
|
6757
|
+
let data53 = data.box;
|
|
6758
|
+
if (typeof data53 === "string") {
|
|
6759
|
+
if (!pattern0.test(data53)) {
|
|
6760
|
+
const err152 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
6761
|
+
if (vErrors === null) {
|
|
6762
|
+
vErrors = [err152];
|
|
6763
|
+
} else {
|
|
6764
|
+
vErrors.push(err152);
|
|
6765
|
+
}
|
|
6766
|
+
errors++;
|
|
6767
|
+
}
|
|
6768
|
+
} else {
|
|
6769
|
+
const err153 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
6770
|
+
if (vErrors === null) {
|
|
6771
|
+
vErrors = [err153];
|
|
6772
|
+
} else {
|
|
6773
|
+
vErrors.push(err153);
|
|
6774
|
+
}
|
|
6775
|
+
errors++;
|
|
6776
|
+
}
|
|
6777
|
+
}
|
|
6778
|
+
} else {
|
|
6779
|
+
const err154 = { instancePath, schemaPath: "#/oneOf/12/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
6780
|
+
if (vErrors === null) {
|
|
6781
|
+
vErrors = [err154];
|
|
6782
|
+
} else {
|
|
6783
|
+
vErrors.push(err154);
|
|
6784
|
+
}
|
|
6785
|
+
errors++;
|
|
6786
|
+
}
|
|
6787
|
+
} else if (tag0 === "pick") {
|
|
6788
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
6789
|
+
if (data.type === void 0) {
|
|
6790
|
+
const err155 = { instancePath, schemaPath: "#/oneOf/13/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
6791
|
+
if (vErrors === null) {
|
|
6792
|
+
vErrors = [err155];
|
|
6793
|
+
} else {
|
|
6794
|
+
vErrors.push(err155);
|
|
6795
|
+
}
|
|
6796
|
+
errors++;
|
|
6797
|
+
}
|
|
6798
|
+
if (data.box === void 0) {
|
|
6799
|
+
const err156 = { instancePath, schemaPath: "#/oneOf/13/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
|
|
6800
|
+
if (vErrors === null) {
|
|
6801
|
+
vErrors = [err156];
|
|
6802
|
+
} else {
|
|
6803
|
+
vErrors.push(err156);
|
|
6804
|
+
}
|
|
6805
|
+
errors++;
|
|
6806
|
+
}
|
|
6807
|
+
for (const key13 in data) {
|
|
6808
|
+
if (!(key13 === "type" || key13 === "box")) {
|
|
6809
|
+
const err157 = { instancePath, schemaPath: "#/oneOf/13/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key13 }, message: "must NOT have additional properties" };
|
|
6810
|
+
if (vErrors === null) {
|
|
6811
|
+
vErrors = [err157];
|
|
6812
|
+
} else {
|
|
6813
|
+
vErrors.push(err157);
|
|
6814
|
+
}
|
|
6815
|
+
errors++;
|
|
6816
|
+
}
|
|
6817
|
+
}
|
|
6818
|
+
if (data.type !== void 0) {
|
|
6819
|
+
if ("pick" !== data.type) {
|
|
6820
|
+
const err158 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/13/properties/type/const", keyword: "const", params: { allowedValue: "pick" }, message: "must be equal to constant" };
|
|
6821
|
+
if (vErrors === null) {
|
|
6822
|
+
vErrors = [err158];
|
|
6823
|
+
} else {
|
|
6824
|
+
vErrors.push(err158);
|
|
6825
|
+
}
|
|
6826
|
+
errors++;
|
|
6827
|
+
}
|
|
6828
|
+
}
|
|
6829
|
+
if (data.box !== void 0) {
|
|
6830
|
+
let data55 = data.box;
|
|
6831
|
+
if (typeof data55 === "string") {
|
|
6832
|
+
if (!pattern0.test(data55)) {
|
|
6833
|
+
const err159 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
6834
|
+
if (vErrors === null) {
|
|
6835
|
+
vErrors = [err159];
|
|
6836
|
+
} else {
|
|
6837
|
+
vErrors.push(err159);
|
|
6838
|
+
}
|
|
6839
|
+
errors++;
|
|
6840
|
+
}
|
|
6841
|
+
} else {
|
|
6842
|
+
const err160 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
6843
|
+
if (vErrors === null) {
|
|
6844
|
+
vErrors = [err160];
|
|
6845
|
+
} else {
|
|
6846
|
+
vErrors.push(err160);
|
|
6847
|
+
}
|
|
6848
|
+
errors++;
|
|
6849
|
+
}
|
|
6850
|
+
}
|
|
6851
|
+
} else {
|
|
6852
|
+
const err161 = { instancePath, schemaPath: "#/oneOf/13/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
6853
|
+
if (vErrors === null) {
|
|
6854
|
+
vErrors = [err161];
|
|
6855
|
+
} else {
|
|
6856
|
+
vErrors.push(err161);
|
|
6857
|
+
}
|
|
6858
|
+
errors++;
|
|
6859
|
+
}
|
|
6860
|
+
} else if (tag0 === "stamp") {
|
|
6861
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
6862
|
+
if (data.type === void 0) {
|
|
6863
|
+
const err162 = { instancePath, schemaPath: "#/oneOf/14/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
6864
|
+
if (vErrors === null) {
|
|
6865
|
+
vErrors = [err162];
|
|
6866
|
+
} else {
|
|
6867
|
+
vErrors.push(err162);
|
|
6868
|
+
}
|
|
6869
|
+
errors++;
|
|
6870
|
+
}
|
|
6871
|
+
if (data.box === void 0) {
|
|
6872
|
+
const err163 = { instancePath, schemaPath: "#/oneOf/14/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
|
|
6873
|
+
if (vErrors === null) {
|
|
6874
|
+
vErrors = [err163];
|
|
6875
|
+
} else {
|
|
6876
|
+
vErrors.push(err163);
|
|
6877
|
+
}
|
|
6878
|
+
errors++;
|
|
6879
|
+
}
|
|
6880
|
+
if (data.text === void 0) {
|
|
6881
|
+
const err164 = { instancePath, schemaPath: "#/oneOf/14/required", keyword: "required", params: { missingProperty: "text" }, message: "must have required property 'text'" };
|
|
6882
|
+
if (vErrors === null) {
|
|
6883
|
+
vErrors = [err164];
|
|
6884
|
+
} else {
|
|
6885
|
+
vErrors.push(err164);
|
|
6886
|
+
}
|
|
6887
|
+
errors++;
|
|
6888
|
+
}
|
|
6889
|
+
for (const key14 in data) {
|
|
6890
|
+
if (!(key14 === "type" || key14 === "box" || key14 === "text")) {
|
|
6891
|
+
const err165 = { instancePath, schemaPath: "#/oneOf/14/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key14 }, message: "must NOT have additional properties" };
|
|
6892
|
+
if (vErrors === null) {
|
|
6893
|
+
vErrors = [err165];
|
|
6894
|
+
} else {
|
|
6895
|
+
vErrors.push(err165);
|
|
6896
|
+
}
|
|
6897
|
+
errors++;
|
|
6898
|
+
}
|
|
6899
|
+
}
|
|
6900
|
+
if (data.type !== void 0) {
|
|
6901
|
+
if ("stamp" !== data.type) {
|
|
6902
|
+
const err166 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/14/properties/type/const", keyword: "const", params: { allowedValue: "stamp" }, message: "must be equal to constant" };
|
|
6903
|
+
if (vErrors === null) {
|
|
6904
|
+
vErrors = [err166];
|
|
6905
|
+
} else {
|
|
6906
|
+
vErrors.push(err166);
|
|
6907
|
+
}
|
|
6908
|
+
errors++;
|
|
6909
|
+
}
|
|
6910
|
+
}
|
|
6911
|
+
if (data.box !== void 0) {
|
|
6912
|
+
let data57 = data.box;
|
|
6913
|
+
if (typeof data57 === "string") {
|
|
6914
|
+
if (!pattern0.test(data57)) {
|
|
6915
|
+
const err167 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
6916
|
+
if (vErrors === null) {
|
|
6917
|
+
vErrors = [err167];
|
|
6918
|
+
} else {
|
|
6919
|
+
vErrors.push(err167);
|
|
6920
|
+
}
|
|
6921
|
+
errors++;
|
|
6922
|
+
}
|
|
6923
|
+
} else {
|
|
6924
|
+
const err168 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
6925
|
+
if (vErrors === null) {
|
|
6926
|
+
vErrors = [err168];
|
|
6927
|
+
} else {
|
|
6928
|
+
vErrors.push(err168);
|
|
6929
|
+
}
|
|
6930
|
+
errors++;
|
|
6931
|
+
}
|
|
6932
|
+
}
|
|
6933
|
+
if (data.text !== void 0) {
|
|
6934
|
+
let data58 = data.text;
|
|
6935
|
+
if (typeof data58 === "string") {
|
|
6936
|
+
if (func3(data58) < 1) {
|
|
6937
|
+
const err169 = { instancePath: instancePath + "/text", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
6938
|
+
if (vErrors === null) {
|
|
6939
|
+
vErrors = [err169];
|
|
6940
|
+
} else {
|
|
6941
|
+
vErrors.push(err169);
|
|
6942
|
+
}
|
|
6943
|
+
errors++;
|
|
6944
|
+
}
|
|
6945
|
+
} else {
|
|
6946
|
+
const err170 = { instancePath: instancePath + "/text", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
6947
|
+
if (vErrors === null) {
|
|
6948
|
+
vErrors = [err170];
|
|
6949
|
+
} else {
|
|
6950
|
+
vErrors.push(err170);
|
|
6951
|
+
}
|
|
6952
|
+
errors++;
|
|
6953
|
+
}
|
|
6954
|
+
}
|
|
6955
|
+
} else {
|
|
6956
|
+
const err171 = { instancePath, schemaPath: "#/oneOf/14/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
6957
|
+
if (vErrors === null) {
|
|
6958
|
+
vErrors = [err171];
|
|
6959
|
+
} else {
|
|
6960
|
+
vErrors.push(err171);
|
|
6961
|
+
}
|
|
6962
|
+
errors++;
|
|
6963
|
+
}
|
|
6964
|
+
} else if (tag0 === "strip") {
|
|
6965
|
+
const _errs185 = errors;
|
|
6966
|
+
let valid75 = false;
|
|
6967
|
+
const _errs186 = errors;
|
|
6968
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
6969
|
+
if (data.value === void 0) {
|
|
6970
|
+
const err172 = { instancePath, schemaPath: "#/oneOf/15/anyOf/0/required", keyword: "required", params: { missingProperty: "value" }, message: "must have required property 'value'" };
|
|
6971
|
+
if (vErrors === null) {
|
|
6972
|
+
vErrors = [err172];
|
|
6973
|
+
} else {
|
|
6974
|
+
vErrors.push(err172);
|
|
6975
|
+
}
|
|
6976
|
+
errors++;
|
|
6977
|
+
}
|
|
6978
|
+
}
|
|
6979
|
+
var _valid0 = _errs186 === errors;
|
|
6980
|
+
valid75 = valid75 || _valid0;
|
|
6981
|
+
if (!valid75) {
|
|
6982
|
+
const _errs187 = errors;
|
|
6983
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
6984
|
+
if (data.tag === void 0) {
|
|
6985
|
+
const err173 = { instancePath, schemaPath: "#/oneOf/15/anyOf/1/required", keyword: "required", params: { missingProperty: "tag" }, message: "must have required property 'tag'" };
|
|
6986
|
+
if (vErrors === null) {
|
|
6987
|
+
vErrors = [err173];
|
|
6988
|
+
} else {
|
|
6989
|
+
vErrors.push(err173);
|
|
6990
|
+
}
|
|
6991
|
+
errors++;
|
|
6992
|
+
}
|
|
6993
|
+
}
|
|
6994
|
+
var _valid0 = _errs187 === errors;
|
|
6995
|
+
valid75 = valid75 || _valid0;
|
|
6996
|
+
}
|
|
6997
|
+
if (!valid75) {
|
|
6998
|
+
const err174 = { instancePath, schemaPath: "#/oneOf/15/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
6999
|
+
if (vErrors === null) {
|
|
7000
|
+
vErrors = [err174];
|
|
7001
|
+
} else {
|
|
7002
|
+
vErrors.push(err174);
|
|
7003
|
+
}
|
|
7004
|
+
errors++;
|
|
7005
|
+
} else {
|
|
7006
|
+
errors = _errs185;
|
|
7007
|
+
if (vErrors !== null) {
|
|
7008
|
+
if (_errs185) {
|
|
7009
|
+
vErrors.length = _errs185;
|
|
7010
|
+
} else {
|
|
7011
|
+
vErrors = null;
|
|
7012
|
+
}
|
|
7013
|
+
}
|
|
7014
|
+
}
|
|
7015
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
7016
|
+
if (data.type === void 0) {
|
|
7017
|
+
const err175 = { instancePath, schemaPath: "#/oneOf/15/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
7018
|
+
if (vErrors === null) {
|
|
7019
|
+
vErrors = [err175];
|
|
7020
|
+
} else {
|
|
7021
|
+
vErrors.push(err175);
|
|
7022
|
+
}
|
|
7023
|
+
errors++;
|
|
7024
|
+
}
|
|
7025
|
+
if (data.field === void 0) {
|
|
7026
|
+
const err176 = { instancePath, schemaPath: "#/oneOf/15/required", keyword: "required", params: { missingProperty: "field" }, message: "must have required property 'field'" };
|
|
7027
|
+
if (vErrors === null) {
|
|
7028
|
+
vErrors = [err176];
|
|
7029
|
+
} else {
|
|
7030
|
+
vErrors.push(err176);
|
|
7031
|
+
}
|
|
7032
|
+
errors++;
|
|
7033
|
+
}
|
|
7034
|
+
for (const key15 in data) {
|
|
7035
|
+
if (!(key15 === "type" || key15 === "field" || key15 === "value" || key15 === "tag")) {
|
|
7036
|
+
const err177 = { instancePath, schemaPath: "#/oneOf/15/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key15 }, message: "must NOT have additional properties" };
|
|
7037
|
+
if (vErrors === null) {
|
|
7038
|
+
vErrors = [err177];
|
|
7039
|
+
} else {
|
|
7040
|
+
vErrors.push(err177);
|
|
7041
|
+
}
|
|
7042
|
+
errors++;
|
|
7043
|
+
}
|
|
7044
|
+
}
|
|
7045
|
+
if (data.type !== void 0) {
|
|
7046
|
+
if ("strip" !== data.type) {
|
|
7047
|
+
const err178 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/15/properties/type/const", keyword: "const", params: { allowedValue: "strip" }, message: "must be equal to constant" };
|
|
7048
|
+
if (vErrors === null) {
|
|
7049
|
+
vErrors = [err178];
|
|
7050
|
+
} else {
|
|
7051
|
+
vErrors.push(err178);
|
|
7052
|
+
}
|
|
7053
|
+
errors++;
|
|
7054
|
+
}
|
|
7055
|
+
}
|
|
7056
|
+
if (data.field !== void 0) {
|
|
7057
|
+
let data60 = data.field;
|
|
7058
|
+
if (typeof data60 === "string") {
|
|
7059
|
+
if (func3(data60) < 1) {
|
|
7060
|
+
const err179 = { instancePath: instancePath + "/field", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
7061
|
+
if (vErrors === null) {
|
|
7062
|
+
vErrors = [err179];
|
|
7063
|
+
} else {
|
|
7064
|
+
vErrors.push(err179);
|
|
7065
|
+
}
|
|
7066
|
+
errors++;
|
|
7067
|
+
}
|
|
7068
|
+
} else {
|
|
7069
|
+
const err180 = { instancePath: instancePath + "/field", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
7070
|
+
if (vErrors === null) {
|
|
7071
|
+
vErrors = [err180];
|
|
7072
|
+
} else {
|
|
7073
|
+
vErrors.push(err180);
|
|
7074
|
+
}
|
|
7075
|
+
errors++;
|
|
7076
|
+
}
|
|
7077
|
+
}
|
|
7078
|
+
if (data.value !== void 0) {
|
|
7079
|
+
let data61 = data.value;
|
|
7080
|
+
if (typeof data61 === "string") {
|
|
7081
|
+
if (func3(data61) < 1) {
|
|
7082
|
+
const err181 = { instancePath: instancePath + "/value", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
7083
|
+
if (vErrors === null) {
|
|
7084
|
+
vErrors = [err181];
|
|
7085
|
+
} else {
|
|
7086
|
+
vErrors.push(err181);
|
|
7087
|
+
}
|
|
7088
|
+
errors++;
|
|
7089
|
+
}
|
|
7090
|
+
} else {
|
|
7091
|
+
const err182 = { instancePath: instancePath + "/value", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
7092
|
+
if (vErrors === null) {
|
|
7093
|
+
vErrors = [err182];
|
|
7094
|
+
} else {
|
|
7095
|
+
vErrors.push(err182);
|
|
7096
|
+
}
|
|
7097
|
+
errors++;
|
|
7098
|
+
}
|
|
7099
|
+
}
|
|
7100
|
+
if (data.tag !== void 0) {
|
|
7101
|
+
let data62 = data.tag;
|
|
7102
|
+
if (typeof data62 === "string") {
|
|
7103
|
+
if (func3(data62) < 1) {
|
|
7104
|
+
const err183 = { instancePath: instancePath + "/tag", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
7105
|
+
if (vErrors === null) {
|
|
7106
|
+
vErrors = [err183];
|
|
7107
|
+
} else {
|
|
7108
|
+
vErrors.push(err183);
|
|
7109
|
+
}
|
|
7110
|
+
errors++;
|
|
7111
|
+
}
|
|
7112
|
+
} else {
|
|
7113
|
+
const err184 = { instancePath: instancePath + "/tag", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
7114
|
+
if (vErrors === null) {
|
|
7115
|
+
vErrors = [err184];
|
|
7116
|
+
} else {
|
|
7117
|
+
vErrors.push(err184);
|
|
7118
|
+
}
|
|
7119
|
+
errors++;
|
|
7120
|
+
}
|
|
7121
|
+
}
|
|
7122
|
+
} else {
|
|
7123
|
+
const err185 = { instancePath, schemaPath: "#/oneOf/15/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
7124
|
+
if (vErrors === null) {
|
|
7125
|
+
vErrors = [err185];
|
|
7126
|
+
} else {
|
|
7127
|
+
vErrors.push(err185);
|
|
7128
|
+
}
|
|
7129
|
+
errors++;
|
|
7130
|
+
}
|
|
7131
|
+
} else {
|
|
7132
|
+
const err186 = { instancePath, schemaPath: "#/discriminator", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag0 }, message: 'value of tag "type" must be in oneOf' };
|
|
7133
|
+
if (vErrors === null) {
|
|
7134
|
+
vErrors = [err186];
|
|
7135
|
+
} else {
|
|
7136
|
+
vErrors.push(err186);
|
|
7137
|
+
}
|
|
7138
|
+
errors++;
|
|
7139
|
+
}
|
|
7140
|
+
} else {
|
|
7141
|
+
const err187 = { instancePath, schemaPath: "#/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag0 }, message: 'tag "type" must be string' };
|
|
7142
|
+
if (vErrors === null) {
|
|
7143
|
+
vErrors = [err187];
|
|
7144
|
+
} else {
|
|
7145
|
+
vErrors.push(err187);
|
|
7146
|
+
}
|
|
6140
7147
|
errors++;
|
|
6141
7148
|
}
|
|
6142
7149
|
} else {
|
|
6143
|
-
const
|
|
7150
|
+
const err188 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
6144
7151
|
if (vErrors === null) {
|
|
6145
|
-
vErrors = [
|
|
7152
|
+
vErrors = [err188];
|
|
6146
7153
|
} else {
|
|
6147
|
-
vErrors.push(
|
|
7154
|
+
vErrors.push(err188);
|
|
6148
7155
|
}
|
|
6149
7156
|
errors++;
|
|
6150
7157
|
}
|
|
6151
|
-
|
|
7158
|
+
validate41.errors = vErrors;
|
|
6152
7159
|
return errors === 0;
|
|
6153
7160
|
}
|
|
6154
|
-
function
|
|
7161
|
+
function validate38(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
6155
7162
|
let vErrors = null;
|
|
6156
7163
|
let errors = 0;
|
|
6157
7164
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -6273,8 +7280,8 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6273
7280
|
}
|
|
6274
7281
|
const len0 = data3.length;
|
|
6275
7282
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
6276
|
-
if (!
|
|
6277
|
-
vErrors = vErrors === null ?
|
|
7283
|
+
if (!validate39(data3[i0], { instancePath: instancePath + "/sources/" + i0, parentData: data3, parentDataProperty: i0, rootData })) {
|
|
7284
|
+
vErrors = vErrors === null ? validate39.errors : vErrors.concat(validate39.errors);
|
|
6278
7285
|
errors = vErrors.length;
|
|
6279
7286
|
}
|
|
6280
7287
|
}
|
|
@@ -6293,8 +7300,8 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6293
7300
|
if (Array.isArray(data5)) {
|
|
6294
7301
|
const len1 = data5.length;
|
|
6295
7302
|
for (let i1 = 0; i1 < len1; i1++) {
|
|
6296
|
-
if (!
|
|
6297
|
-
vErrors = vErrors === null ?
|
|
7303
|
+
if (!validate41(data5[i1], { instancePath: instancePath + "/events/" + i1, parentData: data5, parentDataProperty: i1, rootData })) {
|
|
7304
|
+
vErrors = vErrors === null ? validate41.errors : vErrors.concat(validate41.errors);
|
|
6298
7305
|
errors = vErrors.length;
|
|
6299
7306
|
}
|
|
6300
7307
|
}
|
|
@@ -6317,10 +7324,10 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6317
7324
|
}
|
|
6318
7325
|
errors++;
|
|
6319
7326
|
}
|
|
6320
|
-
|
|
7327
|
+
validate38.errors = vErrors;
|
|
6321
7328
|
return errors === 0;
|
|
6322
7329
|
}
|
|
6323
|
-
function
|
|
7330
|
+
function validate46(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
6324
7331
|
let vErrors = null;
|
|
6325
7332
|
let errors = 0;
|
|
6326
7333
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -6398,10 +7405,10 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6398
7405
|
}
|
|
6399
7406
|
errors++;
|
|
6400
7407
|
}
|
|
6401
|
-
|
|
7408
|
+
validate46.errors = vErrors;
|
|
6402
7409
|
return errors === 0;
|
|
6403
7410
|
}
|
|
6404
|
-
function
|
|
7411
|
+
function validate49(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
6405
7412
|
let vErrors = null;
|
|
6406
7413
|
let errors = 0;
|
|
6407
7414
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -6509,10 +7516,10 @@ function validate46(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6509
7516
|
}
|
|
6510
7517
|
errors++;
|
|
6511
7518
|
}
|
|
6512
|
-
|
|
7519
|
+
validate49.errors = vErrors;
|
|
6513
7520
|
return errors === 0;
|
|
6514
7521
|
}
|
|
6515
|
-
function
|
|
7522
|
+
function validate48(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
6516
7523
|
let vErrors = null;
|
|
6517
7524
|
let errors = 0;
|
|
6518
7525
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -6550,8 +7557,8 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6550
7557
|
}
|
|
6551
7558
|
const len0 = data0.length;
|
|
6552
7559
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
6553
|
-
if (!
|
|
6554
|
-
vErrors = vErrors === null ?
|
|
7560
|
+
if (!validate49(data0[i0], { instancePath: instancePath + "/paths/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
|
|
7561
|
+
vErrors = vErrors === null ? validate49.errors : vErrors.concat(validate49.errors);
|
|
6555
7562
|
errors = vErrors.length;
|
|
6556
7563
|
}
|
|
6557
7564
|
}
|
|
@@ -6574,10 +7581,10 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6574
7581
|
}
|
|
6575
7582
|
errors++;
|
|
6576
7583
|
}
|
|
6577
|
-
|
|
7584
|
+
validate48.errors = vErrors;
|
|
6578
7585
|
return errors === 0;
|
|
6579
7586
|
}
|
|
6580
|
-
function
|
|
7587
|
+
function validate53(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
6581
7588
|
let vErrors = null;
|
|
6582
7589
|
let errors = 0;
|
|
6583
7590
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -6654,10 +7661,10 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6654
7661
|
}
|
|
6655
7662
|
errors++;
|
|
6656
7663
|
}
|
|
6657
|
-
|
|
7664
|
+
validate53.errors = vErrors;
|
|
6658
7665
|
return errors === 0;
|
|
6659
7666
|
}
|
|
6660
|
-
function
|
|
7667
|
+
function validate52(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
6661
7668
|
let vErrors = null;
|
|
6662
7669
|
let errors = 0;
|
|
6663
7670
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -6695,8 +7702,8 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6695
7702
|
}
|
|
6696
7703
|
const len0 = data0.length;
|
|
6697
7704
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
6698
|
-
if (!
|
|
6699
|
-
vErrors = vErrors === null ?
|
|
7705
|
+
if (!validate53(data0[i0], { instancePath: instancePath + "/branches/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
|
|
7706
|
+
vErrors = vErrors === null ? validate53.errors : vErrors.concat(validate53.errors);
|
|
6700
7707
|
errors = vErrors.length;
|
|
6701
7708
|
}
|
|
6702
7709
|
}
|
|
@@ -6719,11 +7726,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6719
7726
|
}
|
|
6720
7727
|
errors++;
|
|
6721
7728
|
}
|
|
6722
|
-
|
|
7729
|
+
validate52.errors = vErrors;
|
|
6723
7730
|
return errors === 0;
|
|
6724
7731
|
}
|
|
6725
|
-
var
|
|
6726
|
-
function
|
|
7732
|
+
var pattern33 = new RegExp("^[0-9]+(\\.[0-9]+)?(ms|s|min|h|d)$", "u");
|
|
7733
|
+
function validate57(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
6727
7734
|
let vErrors = null;
|
|
6728
7735
|
let errors = 0;
|
|
6729
7736
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -6790,7 +7797,7 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6790
7797
|
if (data.length !== void 0) {
|
|
6791
7798
|
let data1 = data.length;
|
|
6792
7799
|
if (typeof data1 === "string") {
|
|
6793
|
-
if (!
|
|
7800
|
+
if (!pattern33.test(data1)) {
|
|
6794
7801
|
const err6 = { instancePath: instancePath + "/length", schemaPath: "#/definitions/duration/pattern", keyword: "pattern", params: { pattern: "^[0-9]+(\\.[0-9]+)?(ms|s|min|h|d)$" }, message: 'must match pattern "^[0-9]+(\\.[0-9]+)?(ms|s|min|h|d)$"' };
|
|
6795
7802
|
if (vErrors === null) {
|
|
6796
7803
|
vErrors = [err6];
|
|
@@ -6864,10 +7871,10 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6864
7871
|
}
|
|
6865
7872
|
errors++;
|
|
6866
7873
|
}
|
|
6867
|
-
|
|
7874
|
+
validate57.errors = vErrors;
|
|
6868
7875
|
return errors === 0;
|
|
6869
7876
|
}
|
|
6870
|
-
function
|
|
7877
|
+
function validate59(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
6871
7878
|
let vErrors = null;
|
|
6872
7879
|
let errors = 0;
|
|
6873
7880
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -6977,10 +7984,10 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6977
7984
|
}
|
|
6978
7985
|
errors++;
|
|
6979
7986
|
}
|
|
6980
|
-
|
|
7987
|
+
validate59.errors = vErrors;
|
|
6981
7988
|
return errors === 0;
|
|
6982
7989
|
}
|
|
6983
|
-
function
|
|
7990
|
+
function validate61(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
6984
7991
|
let vErrors = null;
|
|
6985
7992
|
let errors = 0;
|
|
6986
7993
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -7060,7 +8067,7 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7060
8067
|
if (data.color !== void 0) {
|
|
7061
8068
|
let data2 = data.color;
|
|
7062
8069
|
if (!(data2 === "blue" || data2 === "amber" || data2 === "green" || data2 === "violet" || data2 === "rose" || data2 === "slate" || data2 === "coin")) {
|
|
7063
|
-
const err7 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues:
|
|
8070
|
+
const err7 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema79.enum }, message: "must be equal to one of the allowed values" };
|
|
7064
8071
|
if (vErrors === null) {
|
|
7065
8072
|
vErrors = [err7];
|
|
7066
8073
|
} else {
|
|
@@ -7115,10 +8122,10 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7115
8122
|
}
|
|
7116
8123
|
errors++;
|
|
7117
8124
|
}
|
|
7118
|
-
|
|
8125
|
+
validate61.errors = vErrors;
|
|
7119
8126
|
return errors === 0;
|
|
7120
8127
|
}
|
|
7121
|
-
function
|
|
8128
|
+
function validate63(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
7122
8129
|
let vErrors = null;
|
|
7123
8130
|
let errors = 0;
|
|
7124
8131
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -7205,10 +8212,10 @@ function validate60(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7205
8212
|
}
|
|
7206
8213
|
errors++;
|
|
7207
8214
|
}
|
|
7208
|
-
|
|
8215
|
+
validate63.errors = vErrors;
|
|
7209
8216
|
return errors === 0;
|
|
7210
8217
|
}
|
|
7211
|
-
function
|
|
8218
|
+
function validate65(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
7212
8219
|
let vErrors = null;
|
|
7213
8220
|
let errors = 0;
|
|
7214
8221
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -7296,10 +8303,10 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7296
8303
|
}
|
|
7297
8304
|
errors++;
|
|
7298
8305
|
}
|
|
7299
|
-
|
|
8306
|
+
validate65.errors = vErrors;
|
|
7300
8307
|
return errors === 0;
|
|
7301
8308
|
}
|
|
7302
|
-
function
|
|
8309
|
+
function validate56(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
7303
8310
|
let vErrors = null;
|
|
7304
8311
|
let errors = 0;
|
|
7305
8312
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -7333,14 +8340,14 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7333
8340
|
}
|
|
7334
8341
|
}
|
|
7335
8342
|
if (data.scale !== void 0) {
|
|
7336
|
-
if (!
|
|
7337
|
-
vErrors = vErrors === null ?
|
|
8343
|
+
if (!validate57(data.scale, { instancePath: instancePath + "/scale", parentData: data, parentDataProperty: "scale", rootData })) {
|
|
8344
|
+
vErrors = vErrors === null ? validate57.errors : vErrors.concat(validate57.errors);
|
|
7338
8345
|
errors = vErrors.length;
|
|
7339
8346
|
}
|
|
7340
8347
|
}
|
|
7341
8348
|
if (data.period !== void 0) {
|
|
7342
|
-
if (!
|
|
7343
|
-
vErrors = vErrors === null ?
|
|
8349
|
+
if (!validate59(data.period, { instancePath: instancePath + "/period", parentData: data, parentDataProperty: "period", rootData })) {
|
|
8350
|
+
vErrors = vErrors === null ? validate59.errors : vErrors.concat(validate59.errors);
|
|
7344
8351
|
errors = vErrors.length;
|
|
7345
8352
|
}
|
|
7346
8353
|
}
|
|
@@ -7358,8 +8365,8 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7358
8365
|
}
|
|
7359
8366
|
const len0 = data2.length;
|
|
7360
8367
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
7361
|
-
if (!
|
|
7362
|
-
vErrors = vErrors === null ?
|
|
8368
|
+
if (!validate61(data2[i0], { instancePath: instancePath + "/rows/" + i0, parentData: data2, parentDataProperty: i0, rootData })) {
|
|
8369
|
+
vErrors = vErrors === null ? validate61.errors : vErrors.concat(validate61.errors);
|
|
7363
8370
|
errors = vErrors.length;
|
|
7364
8371
|
}
|
|
7365
8372
|
}
|
|
@@ -7378,8 +8385,8 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7378
8385
|
if (Array.isArray(data4)) {
|
|
7379
8386
|
const len1 = data4.length;
|
|
7380
8387
|
for (let i1 = 0; i1 < len1; i1++) {
|
|
7381
|
-
if (!
|
|
7382
|
-
vErrors = vErrors === null ?
|
|
8388
|
+
if (!validate63(data4[i1], { instancePath: instancePath + "/points/" + i1, parentData: data4, parentDataProperty: i1, rootData })) {
|
|
8389
|
+
vErrors = vErrors === null ? validate63.errors : vErrors.concat(validate63.errors);
|
|
7383
8390
|
errors = vErrors.length;
|
|
7384
8391
|
}
|
|
7385
8392
|
}
|
|
@@ -7394,8 +8401,8 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7394
8401
|
}
|
|
7395
8402
|
}
|
|
7396
8403
|
if (data.zoom !== void 0) {
|
|
7397
|
-
if (!
|
|
7398
|
-
vErrors = vErrors === null ?
|
|
8404
|
+
if (!validate65(data.zoom, { instancePath: instancePath + "/zoom", parentData: data, parentDataProperty: "zoom", rootData })) {
|
|
8405
|
+
vErrors = vErrors === null ? validate65.errors : vErrors.concat(validate65.errors);
|
|
7399
8406
|
errors = vErrors.length;
|
|
7400
8407
|
}
|
|
7401
8408
|
}
|
|
@@ -7408,7 +8415,173 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7408
8415
|
}
|
|
7409
8416
|
errors++;
|
|
7410
8417
|
}
|
|
7411
|
-
|
|
8418
|
+
validate56.errors = vErrors;
|
|
8419
|
+
return errors === 0;
|
|
8420
|
+
}
|
|
8421
|
+
function validate69(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
8422
|
+
let vErrors = null;
|
|
8423
|
+
let errors = 0;
|
|
8424
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
8425
|
+
if (data.id === void 0) {
|
|
8426
|
+
const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "id" }, message: "must have required property 'id'" };
|
|
8427
|
+
if (vErrors === null) {
|
|
8428
|
+
vErrors = [err0];
|
|
8429
|
+
} else {
|
|
8430
|
+
vErrors.push(err0);
|
|
8431
|
+
}
|
|
8432
|
+
errors++;
|
|
8433
|
+
}
|
|
8434
|
+
for (const key0 in data) {
|
|
8435
|
+
if (!(key0 === "id" || key0 === "color" || key0 === "label")) {
|
|
8436
|
+
const err1 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
8437
|
+
if (vErrors === null) {
|
|
8438
|
+
vErrors = [err1];
|
|
8439
|
+
} else {
|
|
8440
|
+
vErrors.push(err1);
|
|
8441
|
+
}
|
|
8442
|
+
errors++;
|
|
8443
|
+
}
|
|
8444
|
+
}
|
|
8445
|
+
if (data.id !== void 0) {
|
|
8446
|
+
let data0 = data.id;
|
|
8447
|
+
if (typeof data0 === "string") {
|
|
8448
|
+
if (!pattern0.test(data0)) {
|
|
8449
|
+
const err2 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
8450
|
+
if (vErrors === null) {
|
|
8451
|
+
vErrors = [err2];
|
|
8452
|
+
} else {
|
|
8453
|
+
vErrors.push(err2);
|
|
8454
|
+
}
|
|
8455
|
+
errors++;
|
|
8456
|
+
}
|
|
8457
|
+
} else {
|
|
8458
|
+
const err3 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
8459
|
+
if (vErrors === null) {
|
|
8460
|
+
vErrors = [err3];
|
|
8461
|
+
} else {
|
|
8462
|
+
vErrors.push(err3);
|
|
8463
|
+
}
|
|
8464
|
+
errors++;
|
|
8465
|
+
}
|
|
8466
|
+
}
|
|
8467
|
+
if (data.color !== void 0) {
|
|
8468
|
+
let data1 = data.color;
|
|
8469
|
+
if (!(data1 === "blue" || data1 === "amber" || data1 === "green" || data1 === "violet" || data1 === "rose" || data1 === "slate" || data1 === "coin")) {
|
|
8470
|
+
const err4 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema79.enum }, message: "must be equal to one of the allowed values" };
|
|
8471
|
+
if (vErrors === null) {
|
|
8472
|
+
vErrors = [err4];
|
|
8473
|
+
} else {
|
|
8474
|
+
vErrors.push(err4);
|
|
8475
|
+
}
|
|
8476
|
+
errors++;
|
|
8477
|
+
}
|
|
8478
|
+
}
|
|
8479
|
+
if (data.label !== void 0) {
|
|
8480
|
+
let data2 = data.label;
|
|
8481
|
+
if (typeof data2 === "string") {
|
|
8482
|
+
if (func3(data2) > 4) {
|
|
8483
|
+
const err5 = { instancePath: instancePath + "/label", schemaPath: "#/properties/label/maxLength", keyword: "maxLength", params: { limit: 4 }, message: "must NOT have more than 4 characters" };
|
|
8484
|
+
if (vErrors === null) {
|
|
8485
|
+
vErrors = [err5];
|
|
8486
|
+
} else {
|
|
8487
|
+
vErrors.push(err5);
|
|
8488
|
+
}
|
|
8489
|
+
errors++;
|
|
8490
|
+
}
|
|
8491
|
+
if (func3(data2) < 1) {
|
|
8492
|
+
const err6 = { instancePath: instancePath + "/label", schemaPath: "#/properties/label/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
8493
|
+
if (vErrors === null) {
|
|
8494
|
+
vErrors = [err6];
|
|
8495
|
+
} else {
|
|
8496
|
+
vErrors.push(err6);
|
|
8497
|
+
}
|
|
8498
|
+
errors++;
|
|
8499
|
+
}
|
|
8500
|
+
} else {
|
|
8501
|
+
const err7 = { instancePath: instancePath + "/label", schemaPath: "#/properties/label/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
8502
|
+
if (vErrors === null) {
|
|
8503
|
+
vErrors = [err7];
|
|
8504
|
+
} else {
|
|
8505
|
+
vErrors.push(err7);
|
|
8506
|
+
}
|
|
8507
|
+
errors++;
|
|
8508
|
+
}
|
|
8509
|
+
}
|
|
8510
|
+
} else {
|
|
8511
|
+
const err8 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
8512
|
+
if (vErrors === null) {
|
|
8513
|
+
vErrors = [err8];
|
|
8514
|
+
} else {
|
|
8515
|
+
vErrors.push(err8);
|
|
8516
|
+
}
|
|
8517
|
+
errors++;
|
|
8518
|
+
}
|
|
8519
|
+
validate69.errors = vErrors;
|
|
8520
|
+
return errors === 0;
|
|
8521
|
+
}
|
|
8522
|
+
function validate68(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
8523
|
+
let vErrors = null;
|
|
8524
|
+
let errors = 0;
|
|
8525
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
8526
|
+
if (data.items === void 0) {
|
|
8527
|
+
const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "items" }, message: "must have required property 'items'" };
|
|
8528
|
+
if (vErrors === null) {
|
|
8529
|
+
vErrors = [err0];
|
|
8530
|
+
} else {
|
|
8531
|
+
vErrors.push(err0);
|
|
8532
|
+
}
|
|
8533
|
+
errors++;
|
|
8534
|
+
}
|
|
8535
|
+
for (const key0 in data) {
|
|
8536
|
+
if (!(key0 === "items")) {
|
|
8537
|
+
const err1 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
8538
|
+
if (vErrors === null) {
|
|
8539
|
+
vErrors = [err1];
|
|
8540
|
+
} else {
|
|
8541
|
+
vErrors.push(err1);
|
|
8542
|
+
}
|
|
8543
|
+
errors++;
|
|
8544
|
+
}
|
|
8545
|
+
}
|
|
8546
|
+
if (data.items !== void 0) {
|
|
8547
|
+
let data0 = data.items;
|
|
8548
|
+
if (Array.isArray(data0)) {
|
|
8549
|
+
if (data0.length < 1) {
|
|
8550
|
+
const err2 = { instancePath: instancePath + "/items", schemaPath: "#/properties/items/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
8551
|
+
if (vErrors === null) {
|
|
8552
|
+
vErrors = [err2];
|
|
8553
|
+
} else {
|
|
8554
|
+
vErrors.push(err2);
|
|
8555
|
+
}
|
|
8556
|
+
errors++;
|
|
8557
|
+
}
|
|
8558
|
+
const len0 = data0.length;
|
|
8559
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
8560
|
+
if (!validate69(data0[i0], { instancePath: instancePath + "/items/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
|
|
8561
|
+
vErrors = vErrors === null ? validate69.errors : vErrors.concat(validate69.errors);
|
|
8562
|
+
errors = vErrors.length;
|
|
8563
|
+
}
|
|
8564
|
+
}
|
|
8565
|
+
} else {
|
|
8566
|
+
const err3 = { instancePath: instancePath + "/items", schemaPath: "#/properties/items/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
8567
|
+
if (vErrors === null) {
|
|
8568
|
+
vErrors = [err3];
|
|
8569
|
+
} else {
|
|
8570
|
+
vErrors.push(err3);
|
|
8571
|
+
}
|
|
8572
|
+
errors++;
|
|
8573
|
+
}
|
|
8574
|
+
}
|
|
8575
|
+
} else {
|
|
8576
|
+
const err4 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
8577
|
+
if (vErrors === null) {
|
|
8578
|
+
vErrors = [err4];
|
|
8579
|
+
} else {
|
|
8580
|
+
vErrors.push(err4);
|
|
8581
|
+
}
|
|
8582
|
+
errors++;
|
|
8583
|
+
}
|
|
8584
|
+
validate68.errors = vErrors;
|
|
7412
8585
|
return errors === 0;
|
|
7413
8586
|
}
|
|
7414
8587
|
var func2 = Object.prototype.hasOwnProperty;
|
|
@@ -7516,94 +8689,103 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7516
8689
|
}
|
|
7517
8690
|
errors++;
|
|
7518
8691
|
}
|
|
8692
|
+
if (data.lineup !== void 0) {
|
|
8693
|
+
const err7 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
8694
|
+
if (vErrors === null) {
|
|
8695
|
+
vErrors = [err7];
|
|
8696
|
+
} else {
|
|
8697
|
+
vErrors.push(err7);
|
|
8698
|
+
}
|
|
8699
|
+
errors++;
|
|
8700
|
+
}
|
|
7519
8701
|
}
|
|
7520
8702
|
var _valid0 = _errs4 === errors;
|
|
7521
8703
|
valid0 = _valid0;
|
|
7522
8704
|
ifClause0 = "then";
|
|
7523
8705
|
} else {
|
|
7524
|
-
const
|
|
7525
|
-
const
|
|
7526
|
-
let
|
|
7527
|
-
const
|
|
8706
|
+
const _errs20 = errors;
|
|
8707
|
+
const _errs21 = errors;
|
|
8708
|
+
let valid7 = true;
|
|
8709
|
+
const _errs22 = errors;
|
|
7528
8710
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
7529
8711
|
if (data.kind === void 0 && ("kind")) {
|
|
7530
|
-
const
|
|
8712
|
+
const err8 = {};
|
|
7531
8713
|
if (vErrors === null) {
|
|
7532
|
-
vErrors = [
|
|
8714
|
+
vErrors = [err8];
|
|
7533
8715
|
} else {
|
|
7534
|
-
vErrors.push(
|
|
8716
|
+
vErrors.push(err8);
|
|
7535
8717
|
}
|
|
7536
8718
|
errors++;
|
|
7537
8719
|
} else {
|
|
7538
8720
|
if (data.kind !== void 0) {
|
|
7539
8721
|
if ("state" !== data.kind) {
|
|
7540
|
-
const
|
|
8722
|
+
const err9 = {};
|
|
7541
8723
|
if (vErrors === null) {
|
|
7542
|
-
vErrors = [
|
|
8724
|
+
vErrors = [err9];
|
|
7543
8725
|
} else {
|
|
7544
|
-
vErrors.push(
|
|
8726
|
+
vErrors.push(err9);
|
|
7545
8727
|
}
|
|
7546
8728
|
errors++;
|
|
7547
8729
|
}
|
|
7548
8730
|
}
|
|
7549
8731
|
}
|
|
7550
8732
|
}
|
|
7551
|
-
var _valid1 =
|
|
7552
|
-
errors =
|
|
8733
|
+
var _valid1 = _errs22 === errors;
|
|
8734
|
+
errors = _errs21;
|
|
7553
8735
|
if (vErrors !== null) {
|
|
7554
|
-
if (
|
|
7555
|
-
vErrors.length =
|
|
8736
|
+
if (_errs21) {
|
|
8737
|
+
vErrors.length = _errs21;
|
|
7556
8738
|
} else {
|
|
7557
8739
|
vErrors = null;
|
|
7558
8740
|
}
|
|
7559
8741
|
}
|
|
7560
8742
|
let ifClause1;
|
|
7561
8743
|
if (_valid1) {
|
|
7562
|
-
const
|
|
8744
|
+
const _errs24 = errors;
|
|
7563
8745
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
7564
8746
|
if (data.boxes !== void 0) {
|
|
7565
|
-
let
|
|
7566
|
-
if (Array.isArray(
|
|
7567
|
-
if (
|
|
7568
|
-
const
|
|
8747
|
+
let data9 = data.boxes;
|
|
8748
|
+
if (Array.isArray(data9)) {
|
|
8749
|
+
if (data9.length < 1) {
|
|
8750
|
+
const err10 = { instancePath: instancePath + "/boxes", schemaPath: "#/else/then/properties/boxes/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
7569
8751
|
if (vErrors === null) {
|
|
7570
|
-
vErrors = [
|
|
8752
|
+
vErrors = [err10];
|
|
7571
8753
|
} else {
|
|
7572
|
-
vErrors.push(
|
|
8754
|
+
vErrors.push(err10);
|
|
7573
8755
|
}
|
|
7574
8756
|
errors++;
|
|
7575
8757
|
}
|
|
7576
|
-
const len0 =
|
|
8758
|
+
const len0 = data9.length;
|
|
7577
8759
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
7578
|
-
let
|
|
7579
|
-
if (
|
|
7580
|
-
if (
|
|
7581
|
-
let
|
|
7582
|
-
const
|
|
7583
|
-
const
|
|
7584
|
-
if (!(
|
|
7585
|
-
const
|
|
8760
|
+
let data10 = data9[i0];
|
|
8761
|
+
if (data10 && typeof data10 == "object" && !Array.isArray(data10)) {
|
|
8762
|
+
if (data10.id !== void 0) {
|
|
8763
|
+
let data11 = data10.id;
|
|
8764
|
+
const _errs28 = errors;
|
|
8765
|
+
const _errs29 = errors;
|
|
8766
|
+
if (!(data11 === "start" || data11 === "finish")) {
|
|
8767
|
+
const err11 = {};
|
|
7586
8768
|
if (vErrors === null) {
|
|
7587
|
-
vErrors = [
|
|
8769
|
+
vErrors = [err11];
|
|
7588
8770
|
} else {
|
|
7589
|
-
vErrors.push(
|
|
8771
|
+
vErrors.push(err11);
|
|
7590
8772
|
}
|
|
7591
8773
|
errors++;
|
|
7592
8774
|
}
|
|
7593
|
-
var
|
|
7594
|
-
if (
|
|
7595
|
-
const
|
|
8775
|
+
var valid13 = _errs29 === errors;
|
|
8776
|
+
if (valid13) {
|
|
8777
|
+
const err12 = { instancePath: instancePath + "/boxes/" + i0 + "/id", schemaPath: "#/else/then/properties/boxes/items/properties/id/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
7596
8778
|
if (vErrors === null) {
|
|
7597
|
-
vErrors = [
|
|
8779
|
+
vErrors = [err12];
|
|
7598
8780
|
} else {
|
|
7599
|
-
vErrors.push(
|
|
8781
|
+
vErrors.push(err12);
|
|
7600
8782
|
}
|
|
7601
8783
|
errors++;
|
|
7602
8784
|
} else {
|
|
7603
|
-
errors =
|
|
8785
|
+
errors = _errs28;
|
|
7604
8786
|
if (vErrors !== null) {
|
|
7605
|
-
if (
|
|
7606
|
-
vErrors.length =
|
|
8787
|
+
if (_errs28) {
|
|
8788
|
+
vErrors.length = _errs28;
|
|
7607
8789
|
} else {
|
|
7608
8790
|
vErrors = null;
|
|
7609
8791
|
}
|
|
@@ -7627,74 +8809,83 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7627
8809
|
}
|
|
7628
8810
|
}
|
|
7629
8811
|
if (data.git !== void 0) {
|
|
7630
|
-
const
|
|
8812
|
+
const err13 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
7631
8813
|
if (vErrors === null) {
|
|
7632
|
-
vErrors = [
|
|
8814
|
+
vErrors = [err13];
|
|
7633
8815
|
} else {
|
|
7634
|
-
vErrors.push(
|
|
8816
|
+
vErrors.push(err13);
|
|
7635
8817
|
}
|
|
7636
8818
|
errors++;
|
|
7637
8819
|
}
|
|
7638
8820
|
if (data.time !== void 0) {
|
|
7639
|
-
const
|
|
8821
|
+
const err14 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
7640
8822
|
if (vErrors === null) {
|
|
7641
|
-
vErrors = [
|
|
8823
|
+
vErrors = [err14];
|
|
7642
8824
|
} else {
|
|
7643
|
-
vErrors.push(
|
|
8825
|
+
vErrors.push(err14);
|
|
8826
|
+
}
|
|
8827
|
+
errors++;
|
|
8828
|
+
}
|
|
8829
|
+
if (data.lineup !== void 0) {
|
|
8830
|
+
const err15 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
8831
|
+
if (vErrors === null) {
|
|
8832
|
+
vErrors = [err15];
|
|
8833
|
+
} else {
|
|
8834
|
+
vErrors.push(err15);
|
|
7644
8835
|
}
|
|
7645
8836
|
errors++;
|
|
7646
8837
|
}
|
|
7647
8838
|
}
|
|
7648
|
-
var _valid1 =
|
|
7649
|
-
|
|
8839
|
+
var _valid1 = _errs24 === errors;
|
|
8840
|
+
valid7 = _valid1;
|
|
7650
8841
|
ifClause1 = "then";
|
|
7651
8842
|
} else {
|
|
7652
|
-
const
|
|
7653
|
-
const
|
|
7654
|
-
let
|
|
7655
|
-
const
|
|
8843
|
+
const _errs41 = errors;
|
|
8844
|
+
const _errs42 = errors;
|
|
8845
|
+
let valid17 = true;
|
|
8846
|
+
const _errs43 = errors;
|
|
7656
8847
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
7657
8848
|
if (data.kind === void 0 && ("kind")) {
|
|
7658
|
-
const
|
|
8849
|
+
const err16 = {};
|
|
7659
8850
|
if (vErrors === null) {
|
|
7660
|
-
vErrors = [
|
|
8851
|
+
vErrors = [err16];
|
|
7661
8852
|
} else {
|
|
7662
|
-
vErrors.push(
|
|
8853
|
+
vErrors.push(err16);
|
|
7663
8854
|
}
|
|
7664
8855
|
errors++;
|
|
7665
8856
|
} else {
|
|
7666
8857
|
if (data.kind !== void 0) {
|
|
7667
8858
|
if ("git" !== data.kind) {
|
|
7668
|
-
const
|
|
8859
|
+
const err17 = {};
|
|
7669
8860
|
if (vErrors === null) {
|
|
7670
|
-
vErrors = [
|
|
8861
|
+
vErrors = [err17];
|
|
7671
8862
|
} else {
|
|
7672
|
-
vErrors.push(
|
|
8863
|
+
vErrors.push(err17);
|
|
7673
8864
|
}
|
|
7674
8865
|
errors++;
|
|
7675
8866
|
}
|
|
7676
8867
|
}
|
|
7677
8868
|
}
|
|
7678
8869
|
}
|
|
7679
|
-
var _valid2 =
|
|
7680
|
-
errors =
|
|
8870
|
+
var _valid2 = _errs43 === errors;
|
|
8871
|
+
errors = _errs42;
|
|
7681
8872
|
if (vErrors !== null) {
|
|
7682
|
-
if (
|
|
7683
|
-
vErrors.length =
|
|
8873
|
+
if (_errs42) {
|
|
8874
|
+
vErrors.length = _errs42;
|
|
7684
8875
|
} else {
|
|
7685
8876
|
vErrors = null;
|
|
7686
8877
|
}
|
|
7687
8878
|
}
|
|
7688
8879
|
let ifClause2;
|
|
7689
8880
|
if (_valid2) {
|
|
7690
|
-
const
|
|
8881
|
+
const _errs45 = errors;
|
|
7691
8882
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
7692
8883
|
if (data.git === void 0) {
|
|
7693
|
-
const
|
|
8884
|
+
const err18 = { instancePath, schemaPath: "#/else/else/then/required", keyword: "required", params: { missingProperty: "git" }, message: "must have required property 'git'" };
|
|
7694
8885
|
if (vErrors === null) {
|
|
7695
|
-
vErrors = [
|
|
8886
|
+
vErrors = [err18];
|
|
7696
8887
|
} else {
|
|
7697
|
-
vErrors.push(
|
|
8888
|
+
vErrors.push(err18);
|
|
7698
8889
|
}
|
|
7699
8890
|
errors++;
|
|
7700
8891
|
}
|
|
@@ -7711,83 +8902,92 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7711
8902
|
}
|
|
7712
8903
|
}
|
|
7713
8904
|
if (data.state !== void 0) {
|
|
7714
|
-
const
|
|
8905
|
+
const err19 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
7715
8906
|
if (vErrors === null) {
|
|
7716
|
-
vErrors = [
|
|
8907
|
+
vErrors = [err19];
|
|
7717
8908
|
} else {
|
|
7718
|
-
vErrors.push(
|
|
8909
|
+
vErrors.push(err19);
|
|
7719
8910
|
}
|
|
7720
8911
|
errors++;
|
|
7721
8912
|
}
|
|
7722
8913
|
if (data.regions !== void 0) {
|
|
7723
|
-
const
|
|
8914
|
+
const err20 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
7724
8915
|
if (vErrors === null) {
|
|
7725
|
-
vErrors = [
|
|
8916
|
+
vErrors = [err20];
|
|
7726
8917
|
} else {
|
|
7727
|
-
vErrors.push(
|
|
8918
|
+
vErrors.push(err20);
|
|
7728
8919
|
}
|
|
7729
8920
|
errors++;
|
|
7730
8921
|
}
|
|
7731
8922
|
if (data.time !== void 0) {
|
|
7732
|
-
const
|
|
8923
|
+
const err21 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
7733
8924
|
if (vErrors === null) {
|
|
7734
|
-
vErrors = [
|
|
8925
|
+
vErrors = [err21];
|
|
7735
8926
|
} else {
|
|
7736
|
-
vErrors.push(
|
|
8927
|
+
vErrors.push(err21);
|
|
8928
|
+
}
|
|
8929
|
+
errors++;
|
|
8930
|
+
}
|
|
8931
|
+
if (data.lineup !== void 0) {
|
|
8932
|
+
const err22 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
8933
|
+
if (vErrors === null) {
|
|
8934
|
+
vErrors = [err22];
|
|
8935
|
+
} else {
|
|
8936
|
+
vErrors.push(err22);
|
|
7737
8937
|
}
|
|
7738
8938
|
errors++;
|
|
7739
8939
|
}
|
|
7740
8940
|
}
|
|
7741
|
-
var _valid2 =
|
|
7742
|
-
|
|
8941
|
+
var _valid2 = _errs45 === errors;
|
|
8942
|
+
valid17 = _valid2;
|
|
7743
8943
|
ifClause2 = "then";
|
|
7744
8944
|
} else {
|
|
7745
|
-
const
|
|
7746
|
-
const
|
|
7747
|
-
let
|
|
7748
|
-
const
|
|
8945
|
+
const _errs60 = errors;
|
|
8946
|
+
const _errs61 = errors;
|
|
8947
|
+
let valid24 = true;
|
|
8948
|
+
const _errs62 = errors;
|
|
7749
8949
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
7750
8950
|
if (data.kind === void 0 && ("kind")) {
|
|
7751
|
-
const
|
|
8951
|
+
const err23 = {};
|
|
7752
8952
|
if (vErrors === null) {
|
|
7753
|
-
vErrors = [
|
|
8953
|
+
vErrors = [err23];
|
|
7754
8954
|
} else {
|
|
7755
|
-
vErrors.push(
|
|
8955
|
+
vErrors.push(err23);
|
|
7756
8956
|
}
|
|
7757
8957
|
errors++;
|
|
7758
8958
|
} else {
|
|
7759
8959
|
if (data.kind !== void 0) {
|
|
7760
8960
|
if ("time" !== data.kind) {
|
|
7761
|
-
const
|
|
8961
|
+
const err24 = {};
|
|
7762
8962
|
if (vErrors === null) {
|
|
7763
|
-
vErrors = [
|
|
8963
|
+
vErrors = [err24];
|
|
7764
8964
|
} else {
|
|
7765
|
-
vErrors.push(
|
|
8965
|
+
vErrors.push(err24);
|
|
7766
8966
|
}
|
|
7767
8967
|
errors++;
|
|
7768
8968
|
}
|
|
7769
8969
|
}
|
|
7770
8970
|
}
|
|
7771
8971
|
}
|
|
7772
|
-
var _valid3 =
|
|
7773
|
-
errors =
|
|
8972
|
+
var _valid3 = _errs62 === errors;
|
|
8973
|
+
errors = _errs61;
|
|
7774
8974
|
if (vErrors !== null) {
|
|
7775
|
-
if (
|
|
7776
|
-
vErrors.length =
|
|
8975
|
+
if (_errs61) {
|
|
8976
|
+
vErrors.length = _errs61;
|
|
7777
8977
|
} else {
|
|
7778
8978
|
vErrors = null;
|
|
7779
8979
|
}
|
|
7780
8980
|
}
|
|
7781
8981
|
let ifClause3;
|
|
7782
8982
|
if (_valid3) {
|
|
7783
|
-
const
|
|
8983
|
+
const _errs64 = errors;
|
|
7784
8984
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
7785
8985
|
if (data.time === void 0) {
|
|
7786
|
-
const
|
|
8986
|
+
const err25 = { instancePath, schemaPath: "#/else/else/else/then/required", keyword: "required", params: { missingProperty: "time" }, message: "must have required property 'time'" };
|
|
7787
8987
|
if (vErrors === null) {
|
|
7788
|
-
vErrors = [
|
|
8988
|
+
vErrors = [err25];
|
|
7789
8989
|
} else {
|
|
7790
|
-
vErrors.push(
|
|
8990
|
+
vErrors.push(err25);
|
|
7791
8991
|
}
|
|
7792
8992
|
errors++;
|
|
7793
8993
|
}
|
|
@@ -7798,76 +8998,85 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7798
8998
|
}
|
|
7799
8999
|
}
|
|
7800
9000
|
if (data.state !== void 0) {
|
|
7801
|
-
const
|
|
9001
|
+
const err26 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
7802
9002
|
if (vErrors === null) {
|
|
7803
|
-
vErrors = [
|
|
9003
|
+
vErrors = [err26];
|
|
7804
9004
|
} else {
|
|
7805
|
-
vErrors.push(
|
|
9005
|
+
vErrors.push(err26);
|
|
7806
9006
|
}
|
|
7807
9007
|
errors++;
|
|
7808
9008
|
}
|
|
7809
9009
|
if (data.git !== void 0) {
|
|
7810
|
-
const
|
|
9010
|
+
const err27 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
7811
9011
|
if (vErrors === null) {
|
|
7812
|
-
vErrors = [
|
|
9012
|
+
vErrors = [err27];
|
|
7813
9013
|
} else {
|
|
7814
|
-
vErrors.push(
|
|
9014
|
+
vErrors.push(err27);
|
|
7815
9015
|
}
|
|
7816
9016
|
errors++;
|
|
7817
9017
|
}
|
|
7818
9018
|
if (data.regions !== void 0) {
|
|
7819
|
-
const
|
|
9019
|
+
const err28 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
7820
9020
|
if (vErrors === null) {
|
|
7821
|
-
vErrors = [
|
|
9021
|
+
vErrors = [err28];
|
|
7822
9022
|
} else {
|
|
7823
|
-
vErrors.push(
|
|
9023
|
+
vErrors.push(err28);
|
|
9024
|
+
}
|
|
9025
|
+
errors++;
|
|
9026
|
+
}
|
|
9027
|
+
if (data.lineup !== void 0) {
|
|
9028
|
+
const err29 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
9029
|
+
if (vErrors === null) {
|
|
9030
|
+
vErrors = [err29];
|
|
9031
|
+
} else {
|
|
9032
|
+
vErrors.push(err29);
|
|
7824
9033
|
}
|
|
7825
9034
|
errors++;
|
|
7826
9035
|
}
|
|
7827
9036
|
}
|
|
7828
|
-
var _valid3 =
|
|
7829
|
-
|
|
9037
|
+
var _valid3 = _errs64 === errors;
|
|
9038
|
+
valid24 = _valid3;
|
|
7830
9039
|
ifClause3 = "then";
|
|
7831
9040
|
} else {
|
|
7832
|
-
const
|
|
7833
|
-
const
|
|
7834
|
-
let
|
|
7835
|
-
const
|
|
9041
|
+
const _errs78 = errors;
|
|
9042
|
+
const _errs79 = errors;
|
|
9043
|
+
let valid31 = true;
|
|
9044
|
+
const _errs80 = errors;
|
|
7836
9045
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
7837
9046
|
if (data.kind === void 0 && ("kind")) {
|
|
7838
|
-
const
|
|
9047
|
+
const err30 = {};
|
|
7839
9048
|
if (vErrors === null) {
|
|
7840
|
-
vErrors = [
|
|
9049
|
+
vErrors = [err30];
|
|
7841
9050
|
} else {
|
|
7842
|
-
vErrors.push(
|
|
9051
|
+
vErrors.push(err30);
|
|
7843
9052
|
}
|
|
7844
9053
|
errors++;
|
|
7845
9054
|
} else {
|
|
7846
9055
|
if (data.kind !== void 0) {
|
|
7847
9056
|
if ("tree" !== data.kind) {
|
|
7848
|
-
const
|
|
9057
|
+
const err31 = {};
|
|
7849
9058
|
if (vErrors === null) {
|
|
7850
|
-
vErrors = [
|
|
9059
|
+
vErrors = [err31];
|
|
7851
9060
|
} else {
|
|
7852
|
-
vErrors.push(
|
|
9061
|
+
vErrors.push(err31);
|
|
7853
9062
|
}
|
|
7854
9063
|
errors++;
|
|
7855
9064
|
}
|
|
7856
9065
|
}
|
|
7857
9066
|
}
|
|
7858
9067
|
}
|
|
7859
|
-
var _valid4 =
|
|
7860
|
-
errors =
|
|
9068
|
+
var _valid4 = _errs80 === errors;
|
|
9069
|
+
errors = _errs79;
|
|
7861
9070
|
if (vErrors !== null) {
|
|
7862
|
-
if (
|
|
7863
|
-
vErrors.length =
|
|
9071
|
+
if (_errs79) {
|
|
9072
|
+
vErrors.length = _errs79;
|
|
7864
9073
|
} else {
|
|
7865
9074
|
vErrors = null;
|
|
7866
9075
|
}
|
|
7867
9076
|
}
|
|
7868
9077
|
let ifClause4;
|
|
7869
9078
|
if (_valid4) {
|
|
7870
|
-
const
|
|
9079
|
+
const _errs82 = errors;
|
|
7871
9080
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
7872
9081
|
if (data.steps !== void 0) {
|
|
7873
9082
|
if (!validate22(data.steps, { instancePath: instancePath + "/steps", parentData: data, parentDataProperty: "steps", rootData })) {
|
|
@@ -7882,409 +9091,595 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7882
9091
|
}
|
|
7883
9092
|
}
|
|
7884
9093
|
if (data.state !== void 0) {
|
|
7885
|
-
const
|
|
9094
|
+
const err32 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
7886
9095
|
if (vErrors === null) {
|
|
7887
|
-
vErrors = [
|
|
9096
|
+
vErrors = [err32];
|
|
7888
9097
|
} else {
|
|
7889
|
-
vErrors.push(
|
|
9098
|
+
vErrors.push(err32);
|
|
7890
9099
|
}
|
|
7891
9100
|
errors++;
|
|
7892
9101
|
}
|
|
7893
9102
|
if (data.git !== void 0) {
|
|
7894
|
-
const
|
|
9103
|
+
const err33 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
7895
9104
|
if (vErrors === null) {
|
|
7896
|
-
vErrors = [
|
|
9105
|
+
vErrors = [err33];
|
|
7897
9106
|
} else {
|
|
7898
|
-
vErrors.push(
|
|
9107
|
+
vErrors.push(err33);
|
|
7899
9108
|
}
|
|
7900
9109
|
errors++;
|
|
7901
9110
|
}
|
|
7902
9111
|
if (data.time !== void 0) {
|
|
7903
|
-
const
|
|
9112
|
+
const err34 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
7904
9113
|
if (vErrors === null) {
|
|
7905
|
-
vErrors = [
|
|
9114
|
+
vErrors = [err34];
|
|
7906
9115
|
} else {
|
|
7907
|
-
vErrors.push(
|
|
9116
|
+
vErrors.push(err34);
|
|
7908
9117
|
}
|
|
7909
9118
|
errors++;
|
|
7910
9119
|
}
|
|
7911
9120
|
if (data.regions !== void 0) {
|
|
7912
|
-
const
|
|
9121
|
+
const err35 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
9122
|
+
if (vErrors === null) {
|
|
9123
|
+
vErrors = [err35];
|
|
9124
|
+
} else {
|
|
9125
|
+
vErrors.push(err35);
|
|
9126
|
+
}
|
|
9127
|
+
errors++;
|
|
9128
|
+
}
|
|
9129
|
+
if (data.lineup !== void 0) {
|
|
9130
|
+
const err36 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
7913
9131
|
if (vErrors === null) {
|
|
7914
|
-
vErrors = [
|
|
9132
|
+
vErrors = [err36];
|
|
7915
9133
|
} else {
|
|
7916
|
-
vErrors.push(
|
|
9134
|
+
vErrors.push(err36);
|
|
7917
9135
|
}
|
|
7918
9136
|
errors++;
|
|
7919
9137
|
}
|
|
7920
9138
|
}
|
|
7921
|
-
var _valid4 =
|
|
7922
|
-
|
|
9139
|
+
var _valid4 = _errs82 === errors;
|
|
9140
|
+
valid31 = _valid4;
|
|
7923
9141
|
ifClause4 = "then";
|
|
7924
9142
|
} else {
|
|
7925
|
-
const
|
|
9143
|
+
const _errs100 = errors;
|
|
9144
|
+
const _errs101 = errors;
|
|
9145
|
+
let valid39 = true;
|
|
9146
|
+
const _errs102 = errors;
|
|
7926
9147
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
7927
|
-
if (data.
|
|
7928
|
-
|
|
7929
|
-
if (
|
|
7930
|
-
|
|
7931
|
-
|
|
9148
|
+
if (data.kind === void 0 && ("kind")) {
|
|
9149
|
+
const err37 = {};
|
|
9150
|
+
if (vErrors === null) {
|
|
9151
|
+
vErrors = [err37];
|
|
9152
|
+
} else {
|
|
9153
|
+
vErrors.push(err37);
|
|
9154
|
+
}
|
|
9155
|
+
errors++;
|
|
9156
|
+
} else {
|
|
9157
|
+
if (data.kind !== void 0) {
|
|
9158
|
+
if ("lineup" !== data.kind) {
|
|
9159
|
+
const err38 = {};
|
|
7932
9160
|
if (vErrors === null) {
|
|
7933
|
-
vErrors = [
|
|
9161
|
+
vErrors = [err38];
|
|
7934
9162
|
} else {
|
|
7935
|
-
vErrors.push(
|
|
9163
|
+
vErrors.push(err38);
|
|
7936
9164
|
}
|
|
7937
9165
|
errors++;
|
|
7938
9166
|
}
|
|
7939
9167
|
}
|
|
7940
9168
|
}
|
|
7941
|
-
|
|
7942
|
-
|
|
7943
|
-
|
|
7944
|
-
|
|
7945
|
-
|
|
9169
|
+
}
|
|
9170
|
+
var _valid5 = _errs102 === errors;
|
|
9171
|
+
errors = _errs101;
|
|
9172
|
+
if (vErrors !== null) {
|
|
9173
|
+
if (_errs101) {
|
|
9174
|
+
vErrors.length = _errs101;
|
|
9175
|
+
} else {
|
|
9176
|
+
vErrors = null;
|
|
7946
9177
|
}
|
|
7947
|
-
|
|
7948
|
-
|
|
7949
|
-
|
|
7950
|
-
|
|
9178
|
+
}
|
|
9179
|
+
let ifClause5;
|
|
9180
|
+
if (_valid5) {
|
|
9181
|
+
const _errs104 = errors;
|
|
9182
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
9183
|
+
if (data.lineup === void 0) {
|
|
9184
|
+
const err39 = { instancePath, schemaPath: "#/else/else/else/else/else/then/required", keyword: "required", params: { missingProperty: "lineup" }, message: "must have required property 'lineup'" };
|
|
9185
|
+
if (vErrors === null) {
|
|
9186
|
+
vErrors = [err39];
|
|
9187
|
+
} else {
|
|
9188
|
+
vErrors.push(err39);
|
|
9189
|
+
}
|
|
9190
|
+
errors++;
|
|
7951
9191
|
}
|
|
7952
|
-
|
|
7953
|
-
|
|
7954
|
-
|
|
7955
|
-
|
|
7956
|
-
|
|
7957
|
-
|
|
7958
|
-
|
|
9192
|
+
if (data.boxes !== void 0) {
|
|
9193
|
+
let data39 = data.boxes;
|
|
9194
|
+
if (Array.isArray(data39)) {
|
|
9195
|
+
if (data39.length < 1) {
|
|
9196
|
+
const err40 = { instancePath: instancePath + "/boxes", schemaPath: "#/else/else/else/else/else/then/properties/boxes/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
9197
|
+
if (vErrors === null) {
|
|
9198
|
+
vErrors = [err40];
|
|
9199
|
+
} else {
|
|
9200
|
+
vErrors.push(err40);
|
|
9201
|
+
}
|
|
9202
|
+
errors++;
|
|
9203
|
+
}
|
|
9204
|
+
const len1 = data39.length;
|
|
9205
|
+
for (let i1 = 0; i1 < len1; i1++) {
|
|
9206
|
+
let data40 = data39[i1];
|
|
9207
|
+
if (data40 && typeof data40 == "object" && !Array.isArray(data40)) {
|
|
9208
|
+
if (data40.icon !== void 0) {
|
|
9209
|
+
const err41 = { instancePath: instancePath + "/boxes/" + i1 + "/icon", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
9210
|
+
if (vErrors === null) {
|
|
9211
|
+
vErrors = [err41];
|
|
9212
|
+
} else {
|
|
9213
|
+
vErrors.push(err41);
|
|
9214
|
+
}
|
|
9215
|
+
errors++;
|
|
9216
|
+
}
|
|
9217
|
+
if (data40.link !== void 0) {
|
|
9218
|
+
const err42 = { instancePath: instancePath + "/boxes/" + i1 + "/link", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
9219
|
+
if (vErrors === null) {
|
|
9220
|
+
vErrors = [err42];
|
|
9221
|
+
} else {
|
|
9222
|
+
vErrors.push(err42);
|
|
9223
|
+
}
|
|
9224
|
+
errors++;
|
|
9225
|
+
}
|
|
9226
|
+
if (data40.region !== void 0) {
|
|
9227
|
+
const err43 = { instancePath: instancePath + "/boxes/" + i1 + "/region", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
9228
|
+
if (vErrors === null) {
|
|
9229
|
+
vErrors = [err43];
|
|
9230
|
+
} else {
|
|
9231
|
+
vErrors.push(err43);
|
|
9232
|
+
}
|
|
9233
|
+
errors++;
|
|
9234
|
+
}
|
|
9235
|
+
}
|
|
9236
|
+
}
|
|
9237
|
+
}
|
|
7959
9238
|
}
|
|
7960
|
-
|
|
7961
|
-
|
|
7962
|
-
|
|
7963
|
-
|
|
7964
|
-
|
|
7965
|
-
|
|
7966
|
-
|
|
7967
|
-
|
|
9239
|
+
if (data.steps !== void 0) {
|
|
9240
|
+
if (!validate25(data.steps, { instancePath: instancePath + "/steps", parentData: data, parentDataProperty: "steps", rootData })) {
|
|
9241
|
+
vErrors = vErrors === null ? validate25.errors : vErrors.concat(validate25.errors);
|
|
9242
|
+
errors = vErrors.length;
|
|
9243
|
+
}
|
|
9244
|
+
}
|
|
9245
|
+
if (data.strip !== void 0) {
|
|
9246
|
+
if (!validate13(data.strip, { instancePath: instancePath + "/strip", parentData: data, parentDataProperty: "strip", rootData })) {
|
|
9247
|
+
vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);
|
|
9248
|
+
errors = vErrors.length;
|
|
9249
|
+
}
|
|
9250
|
+
}
|
|
9251
|
+
if (data.state !== void 0) {
|
|
9252
|
+
const err44 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
9253
|
+
if (vErrors === null) {
|
|
9254
|
+
vErrors = [err44];
|
|
9255
|
+
} else {
|
|
9256
|
+
vErrors.push(err44);
|
|
9257
|
+
}
|
|
9258
|
+
errors++;
|
|
9259
|
+
}
|
|
9260
|
+
if (data.git !== void 0) {
|
|
9261
|
+
const err45 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
9262
|
+
if (vErrors === null) {
|
|
9263
|
+
vErrors = [err45];
|
|
9264
|
+
} else {
|
|
9265
|
+
vErrors.push(err45);
|
|
9266
|
+
}
|
|
9267
|
+
errors++;
|
|
9268
|
+
}
|
|
9269
|
+
if (data.time !== void 0) {
|
|
9270
|
+
const err46 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
9271
|
+
if (vErrors === null) {
|
|
9272
|
+
vErrors = [err46];
|
|
9273
|
+
} else {
|
|
9274
|
+
vErrors.push(err46);
|
|
9275
|
+
}
|
|
9276
|
+
errors++;
|
|
9277
|
+
}
|
|
9278
|
+
if (data.regions !== void 0) {
|
|
9279
|
+
const err47 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
9280
|
+
if (vErrors === null) {
|
|
9281
|
+
vErrors = [err47];
|
|
9282
|
+
} else {
|
|
9283
|
+
vErrors.push(err47);
|
|
9284
|
+
}
|
|
9285
|
+
errors++;
|
|
7968
9286
|
}
|
|
7969
|
-
errors++;
|
|
7970
9287
|
}
|
|
7971
|
-
|
|
7972
|
-
|
|
7973
|
-
|
|
7974
|
-
|
|
7975
|
-
|
|
7976
|
-
|
|
9288
|
+
var _valid5 = _errs104 === errors;
|
|
9289
|
+
valid39 = _valid5;
|
|
9290
|
+
ifClause5 = "then";
|
|
9291
|
+
} else {
|
|
9292
|
+
const _errs130 = errors;
|
|
9293
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
9294
|
+
if (data.boxes !== void 0) {
|
|
9295
|
+
let data50 = data.boxes;
|
|
9296
|
+
if (Array.isArray(data50)) {
|
|
9297
|
+
if (data50.length < 1) {
|
|
9298
|
+
const err48 = { instancePath: instancePath + "/boxes", schemaPath: "#/else/else/else/else/else/else/properties/boxes/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
9299
|
+
if (vErrors === null) {
|
|
9300
|
+
vErrors = [err48];
|
|
9301
|
+
} else {
|
|
9302
|
+
vErrors.push(err48);
|
|
9303
|
+
}
|
|
9304
|
+
errors++;
|
|
9305
|
+
}
|
|
9306
|
+
}
|
|
7977
9307
|
}
|
|
7978
|
-
|
|
9308
|
+
if (data.steps !== void 0) {
|
|
9309
|
+
if (!validate11(data.steps, { instancePath: instancePath + "/steps", parentData: data, parentDataProperty: "steps", rootData })) {
|
|
9310
|
+
vErrors = vErrors === null ? validate11.errors : vErrors.concat(validate11.errors);
|
|
9311
|
+
errors = vErrors.length;
|
|
9312
|
+
}
|
|
9313
|
+
}
|
|
9314
|
+
if (data.strip !== void 0) {
|
|
9315
|
+
if (!validate13(data.strip, { instancePath: instancePath + "/strip", parentData: data, parentDataProperty: "strip", rootData })) {
|
|
9316
|
+
vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);
|
|
9317
|
+
errors = vErrors.length;
|
|
9318
|
+
}
|
|
9319
|
+
}
|
|
9320
|
+
if (data.state !== void 0) {
|
|
9321
|
+
const err49 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
9322
|
+
if (vErrors === null) {
|
|
9323
|
+
vErrors = [err49];
|
|
9324
|
+
} else {
|
|
9325
|
+
vErrors.push(err49);
|
|
9326
|
+
}
|
|
9327
|
+
errors++;
|
|
9328
|
+
}
|
|
9329
|
+
if (data.git !== void 0) {
|
|
9330
|
+
const err50 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
9331
|
+
if (vErrors === null) {
|
|
9332
|
+
vErrors = [err50];
|
|
9333
|
+
} else {
|
|
9334
|
+
vErrors.push(err50);
|
|
9335
|
+
}
|
|
9336
|
+
errors++;
|
|
9337
|
+
}
|
|
9338
|
+
if (data.time !== void 0) {
|
|
9339
|
+
const err51 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
9340
|
+
if (vErrors === null) {
|
|
9341
|
+
vErrors = [err51];
|
|
9342
|
+
} else {
|
|
9343
|
+
vErrors.push(err51);
|
|
9344
|
+
}
|
|
9345
|
+
errors++;
|
|
9346
|
+
}
|
|
9347
|
+
if (data.lineup !== void 0) {
|
|
9348
|
+
const err52 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
9349
|
+
if (vErrors === null) {
|
|
9350
|
+
vErrors = [err52];
|
|
9351
|
+
} else {
|
|
9352
|
+
vErrors.push(err52);
|
|
9353
|
+
}
|
|
9354
|
+
errors++;
|
|
9355
|
+
}
|
|
9356
|
+
}
|
|
9357
|
+
var _valid5 = _errs130 === errors;
|
|
9358
|
+
valid39 = _valid5;
|
|
9359
|
+
ifClause5 = "else";
|
|
9360
|
+
}
|
|
9361
|
+
if (!valid39) {
|
|
9362
|
+
const err53 = { instancePath, schemaPath: "#/else/else/else/else/else/if", keyword: "if", params: { failingKeyword: ifClause5 }, message: 'must match "' + ifClause5 + '" schema' };
|
|
9363
|
+
if (vErrors === null) {
|
|
9364
|
+
vErrors = [err53];
|
|
9365
|
+
} else {
|
|
9366
|
+
vErrors.push(err53);
|
|
7979
9367
|
}
|
|
9368
|
+
errors++;
|
|
7980
9369
|
}
|
|
7981
|
-
var _valid4 =
|
|
7982
|
-
|
|
9370
|
+
var _valid4 = _errs100 === errors;
|
|
9371
|
+
valid31 = _valid4;
|
|
7983
9372
|
ifClause4 = "else";
|
|
7984
9373
|
}
|
|
7985
|
-
if (!
|
|
7986
|
-
const
|
|
9374
|
+
if (!valid31) {
|
|
9375
|
+
const err54 = { instancePath, schemaPath: "#/else/else/else/else/if", keyword: "if", params: { failingKeyword: ifClause4 }, message: 'must match "' + ifClause4 + '" schema' };
|
|
7987
9376
|
if (vErrors === null) {
|
|
7988
|
-
vErrors = [
|
|
9377
|
+
vErrors = [err54];
|
|
7989
9378
|
} else {
|
|
7990
|
-
vErrors.push(
|
|
9379
|
+
vErrors.push(err54);
|
|
7991
9380
|
}
|
|
7992
9381
|
errors++;
|
|
7993
9382
|
}
|
|
7994
|
-
var _valid3 =
|
|
7995
|
-
|
|
9383
|
+
var _valid3 = _errs78 === errors;
|
|
9384
|
+
valid24 = _valid3;
|
|
7996
9385
|
ifClause3 = "else";
|
|
7997
9386
|
}
|
|
7998
|
-
if (!
|
|
7999
|
-
const
|
|
9387
|
+
if (!valid24) {
|
|
9388
|
+
const err55 = { instancePath, schemaPath: "#/else/else/else/if", keyword: "if", params: { failingKeyword: ifClause3 }, message: 'must match "' + ifClause3 + '" schema' };
|
|
8000
9389
|
if (vErrors === null) {
|
|
8001
|
-
vErrors = [
|
|
9390
|
+
vErrors = [err55];
|
|
8002
9391
|
} else {
|
|
8003
|
-
vErrors.push(
|
|
9392
|
+
vErrors.push(err55);
|
|
8004
9393
|
}
|
|
8005
9394
|
errors++;
|
|
8006
9395
|
}
|
|
8007
|
-
var _valid2 =
|
|
8008
|
-
|
|
9396
|
+
var _valid2 = _errs60 === errors;
|
|
9397
|
+
valid17 = _valid2;
|
|
8009
9398
|
ifClause2 = "else";
|
|
8010
9399
|
}
|
|
8011
|
-
if (!
|
|
8012
|
-
const
|
|
9400
|
+
if (!valid17) {
|
|
9401
|
+
const err56 = { instancePath, schemaPath: "#/else/else/if", keyword: "if", params: { failingKeyword: ifClause2 }, message: 'must match "' + ifClause2 + '" schema' };
|
|
8013
9402
|
if (vErrors === null) {
|
|
8014
|
-
vErrors = [
|
|
9403
|
+
vErrors = [err56];
|
|
8015
9404
|
} else {
|
|
8016
|
-
vErrors.push(
|
|
9405
|
+
vErrors.push(err56);
|
|
8017
9406
|
}
|
|
8018
9407
|
errors++;
|
|
8019
9408
|
}
|
|
8020
|
-
var _valid1 =
|
|
8021
|
-
|
|
9409
|
+
var _valid1 = _errs41 === errors;
|
|
9410
|
+
valid7 = _valid1;
|
|
8022
9411
|
ifClause1 = "else";
|
|
8023
9412
|
}
|
|
8024
|
-
if (!
|
|
8025
|
-
const
|
|
9413
|
+
if (!valid7) {
|
|
9414
|
+
const err57 = { instancePath, schemaPath: "#/else/if", keyword: "if", params: { failingKeyword: ifClause1 }, message: 'must match "' + ifClause1 + '" schema' };
|
|
8026
9415
|
if (vErrors === null) {
|
|
8027
|
-
vErrors = [
|
|
9416
|
+
vErrors = [err57];
|
|
8028
9417
|
} else {
|
|
8029
|
-
vErrors.push(
|
|
9418
|
+
vErrors.push(err57);
|
|
8030
9419
|
}
|
|
8031
9420
|
errors++;
|
|
8032
9421
|
}
|
|
8033
9422
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
8034
9423
|
if (data.sequence !== void 0) {
|
|
8035
|
-
const
|
|
9424
|
+
const err58 = { instancePath: instancePath + "/sequence", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
8036
9425
|
if (vErrors === null) {
|
|
8037
|
-
vErrors = [
|
|
9426
|
+
vErrors = [err58];
|
|
8038
9427
|
} else {
|
|
8039
|
-
vErrors.push(
|
|
9428
|
+
vErrors.push(err58);
|
|
8040
9429
|
}
|
|
8041
9430
|
errors++;
|
|
8042
9431
|
}
|
|
8043
9432
|
}
|
|
8044
|
-
var _valid0 =
|
|
9433
|
+
var _valid0 = _errs20 === errors;
|
|
8045
9434
|
valid0 = _valid0;
|
|
8046
9435
|
ifClause0 = "else";
|
|
8047
9436
|
}
|
|
8048
9437
|
if (!valid0) {
|
|
8049
|
-
const
|
|
9438
|
+
const err59 = { instancePath, schemaPath: "#/if", keyword: "if", params: { failingKeyword: ifClause0 }, message: 'must match "' + ifClause0 + '" schema' };
|
|
8050
9439
|
if (vErrors === null) {
|
|
8051
|
-
vErrors = [
|
|
9440
|
+
vErrors = [err59];
|
|
8052
9441
|
} else {
|
|
8053
|
-
vErrors.push(
|
|
9442
|
+
vErrors.push(err59);
|
|
8054
9443
|
}
|
|
8055
9444
|
errors++;
|
|
8056
9445
|
}
|
|
8057
9446
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
8058
9447
|
if (data.version === void 0) {
|
|
8059
|
-
const
|
|
9448
|
+
const err60 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "version" }, message: "must have required property 'version'" };
|
|
8060
9449
|
if (vErrors === null) {
|
|
8061
|
-
vErrors = [
|
|
9450
|
+
vErrors = [err60];
|
|
8062
9451
|
} else {
|
|
8063
|
-
vErrors.push(
|
|
9452
|
+
vErrors.push(err60);
|
|
8064
9453
|
}
|
|
8065
9454
|
errors++;
|
|
8066
9455
|
}
|
|
8067
9456
|
if (data.kind === void 0) {
|
|
8068
|
-
const
|
|
9457
|
+
const err61 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "kind" }, message: "must have required property 'kind'" };
|
|
8069
9458
|
if (vErrors === null) {
|
|
8070
|
-
vErrors = [
|
|
9459
|
+
vErrors = [err61];
|
|
8071
9460
|
} else {
|
|
8072
|
-
vErrors.push(
|
|
9461
|
+
vErrors.push(err61);
|
|
8073
9462
|
}
|
|
8074
9463
|
errors++;
|
|
8075
9464
|
}
|
|
8076
9465
|
if (data.title === void 0) {
|
|
8077
|
-
const
|
|
9466
|
+
const err62 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "title" }, message: "must have required property 'title'" };
|
|
8078
9467
|
if (vErrors === null) {
|
|
8079
|
-
vErrors = [
|
|
9468
|
+
vErrors = [err62];
|
|
8080
9469
|
} else {
|
|
8081
|
-
vErrors.push(
|
|
9470
|
+
vErrors.push(err62);
|
|
8082
9471
|
}
|
|
8083
9472
|
errors++;
|
|
8084
9473
|
}
|
|
8085
9474
|
if (data.boxes === void 0) {
|
|
8086
|
-
const
|
|
9475
|
+
const err63 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "boxes" }, message: "must have required property 'boxes'" };
|
|
8087
9476
|
if (vErrors === null) {
|
|
8088
|
-
vErrors = [
|
|
9477
|
+
vErrors = [err63];
|
|
8089
9478
|
} else {
|
|
8090
|
-
vErrors.push(
|
|
9479
|
+
vErrors.push(err63);
|
|
8091
9480
|
}
|
|
8092
9481
|
errors++;
|
|
8093
9482
|
}
|
|
8094
9483
|
if (data.steps === void 0) {
|
|
8095
|
-
const
|
|
9484
|
+
const err64 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "steps" }, message: "must have required property 'steps'" };
|
|
8096
9485
|
if (vErrors === null) {
|
|
8097
|
-
vErrors = [
|
|
9486
|
+
vErrors = [err64];
|
|
8098
9487
|
} else {
|
|
8099
|
-
vErrors.push(
|
|
9488
|
+
vErrors.push(err64);
|
|
8100
9489
|
}
|
|
8101
9490
|
errors++;
|
|
8102
9491
|
}
|
|
8103
9492
|
for (const key0 in data) {
|
|
8104
9493
|
if (!func2.call(schema11.properties, key0)) {
|
|
8105
|
-
const
|
|
9494
|
+
const err65 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
8106
9495
|
if (vErrors === null) {
|
|
8107
|
-
vErrors = [
|
|
9496
|
+
vErrors = [err65];
|
|
8108
9497
|
} else {
|
|
8109
|
-
vErrors.push(
|
|
9498
|
+
vErrors.push(err65);
|
|
8110
9499
|
}
|
|
8111
9500
|
errors++;
|
|
8112
9501
|
}
|
|
8113
9502
|
}
|
|
8114
9503
|
if (data.version !== void 0) {
|
|
8115
|
-
let
|
|
8116
|
-
if (!(typeof
|
|
8117
|
-
const
|
|
9504
|
+
let data58 = data.version;
|
|
9505
|
+
if (!(typeof data58 == "number" && (!(data58 % 1) && !isNaN(data58)) && isFinite(data58))) {
|
|
9506
|
+
const err66 = { instancePath: instancePath + "/version", schemaPath: "#/properties/version/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
8118
9507
|
if (vErrors === null) {
|
|
8119
|
-
vErrors = [
|
|
9508
|
+
vErrors = [err66];
|
|
8120
9509
|
} else {
|
|
8121
|
-
vErrors.push(
|
|
9510
|
+
vErrors.push(err66);
|
|
8122
9511
|
}
|
|
8123
9512
|
errors++;
|
|
8124
9513
|
}
|
|
8125
|
-
if (typeof
|
|
8126
|
-
if (
|
|
8127
|
-
const
|
|
9514
|
+
if (typeof data58 == "number" && isFinite(data58)) {
|
|
9515
|
+
if (data58 < 1 || isNaN(data58)) {
|
|
9516
|
+
const err67 = { instancePath: instancePath + "/version", schemaPath: "#/properties/version/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" };
|
|
8128
9517
|
if (vErrors === null) {
|
|
8129
|
-
vErrors = [
|
|
9518
|
+
vErrors = [err67];
|
|
8130
9519
|
} else {
|
|
8131
|
-
vErrors.push(
|
|
9520
|
+
vErrors.push(err67);
|
|
8132
9521
|
}
|
|
8133
9522
|
errors++;
|
|
8134
9523
|
}
|
|
8135
9524
|
}
|
|
8136
9525
|
}
|
|
8137
9526
|
if (data.kind !== void 0) {
|
|
8138
|
-
let
|
|
8139
|
-
if (!(
|
|
8140
|
-
const
|
|
9527
|
+
let data59 = data.kind;
|
|
9528
|
+
if (!(data59 === "sequence" || data59 === "architecture" || data59 === "state" || data59 === "git" || data59 === "time" || data59 === "tree" || data59 === "lineup")) {
|
|
9529
|
+
const err68 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues: schema11.properties.kind.enum }, message: "must be equal to one of the allowed values" };
|
|
8141
9530
|
if (vErrors === null) {
|
|
8142
|
-
vErrors = [
|
|
9531
|
+
vErrors = [err68];
|
|
8143
9532
|
} else {
|
|
8144
|
-
vErrors.push(
|
|
9533
|
+
vErrors.push(err68);
|
|
8145
9534
|
}
|
|
8146
9535
|
errors++;
|
|
8147
9536
|
}
|
|
8148
9537
|
}
|
|
8149
9538
|
if (data.title !== void 0) {
|
|
8150
|
-
let
|
|
8151
|
-
if (typeof
|
|
8152
|
-
if (func3(
|
|
8153
|
-
const
|
|
9539
|
+
let data60 = data.title;
|
|
9540
|
+
if (typeof data60 === "string") {
|
|
9541
|
+
if (func3(data60) < 1) {
|
|
9542
|
+
const err69 = { instancePath: instancePath + "/title", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
8154
9543
|
if (vErrors === null) {
|
|
8155
|
-
vErrors = [
|
|
9544
|
+
vErrors = [err69];
|
|
8156
9545
|
} else {
|
|
8157
|
-
vErrors.push(
|
|
9546
|
+
vErrors.push(err69);
|
|
8158
9547
|
}
|
|
8159
9548
|
errors++;
|
|
8160
9549
|
}
|
|
8161
9550
|
} else {
|
|
8162
|
-
const
|
|
9551
|
+
const err70 = { instancePath: instancePath + "/title", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
8163
9552
|
if (vErrors === null) {
|
|
8164
|
-
vErrors = [
|
|
9553
|
+
vErrors = [err70];
|
|
8165
9554
|
} else {
|
|
8166
|
-
vErrors.push(
|
|
9555
|
+
vErrors.push(err70);
|
|
8167
9556
|
}
|
|
8168
9557
|
errors++;
|
|
8169
9558
|
}
|
|
8170
9559
|
}
|
|
8171
9560
|
if (data.view !== void 0) {
|
|
8172
|
-
let
|
|
8173
|
-
if (!(
|
|
8174
|
-
const
|
|
9561
|
+
let data61 = data.view;
|
|
9562
|
+
if (!(data61 === "fixed" || data61 === "follow")) {
|
|
9563
|
+
const err71 = { instancePath: instancePath + "/view", schemaPath: "#/properties/view/enum", keyword: "enum", params: { allowedValues: schema11.properties.view.enum }, message: "must be equal to one of the allowed values" };
|
|
8175
9564
|
if (vErrors === null) {
|
|
8176
|
-
vErrors = [
|
|
9565
|
+
vErrors = [err71];
|
|
8177
9566
|
} else {
|
|
8178
|
-
vErrors.push(
|
|
9567
|
+
vErrors.push(err71);
|
|
8179
9568
|
}
|
|
8180
9569
|
errors++;
|
|
8181
9570
|
}
|
|
8182
9571
|
}
|
|
8183
9572
|
if (data.regions !== void 0) {
|
|
8184
|
-
let
|
|
8185
|
-
if (Array.isArray(
|
|
8186
|
-
const
|
|
8187
|
-
for (let
|
|
8188
|
-
if (!
|
|
8189
|
-
vErrors = vErrors === null ?
|
|
9573
|
+
let data62 = data.regions;
|
|
9574
|
+
if (Array.isArray(data62)) {
|
|
9575
|
+
const len2 = data62.length;
|
|
9576
|
+
for (let i2 = 0; i2 < len2; i2++) {
|
|
9577
|
+
if (!validate30(data62[i2], { instancePath: instancePath + "/regions/" + i2, parentData: data62, parentDataProperty: i2, rootData })) {
|
|
9578
|
+
vErrors = vErrors === null ? validate30.errors : vErrors.concat(validate30.errors);
|
|
8190
9579
|
errors = vErrors.length;
|
|
8191
9580
|
}
|
|
8192
9581
|
}
|
|
8193
9582
|
} else {
|
|
8194
|
-
const
|
|
9583
|
+
const err72 = { instancePath: instancePath + "/regions", schemaPath: "#/properties/regions/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
8195
9584
|
if (vErrors === null) {
|
|
8196
|
-
vErrors = [
|
|
9585
|
+
vErrors = [err72];
|
|
8197
9586
|
} else {
|
|
8198
|
-
vErrors.push(
|
|
9587
|
+
vErrors.push(err72);
|
|
8199
9588
|
}
|
|
8200
9589
|
errors++;
|
|
8201
9590
|
}
|
|
8202
9591
|
}
|
|
8203
9592
|
if (data.boxes !== void 0) {
|
|
8204
|
-
let
|
|
8205
|
-
if (Array.isArray(
|
|
8206
|
-
const
|
|
8207
|
-
for (let
|
|
8208
|
-
if (!
|
|
8209
|
-
vErrors = vErrors === null ?
|
|
9593
|
+
let data64 = data.boxes;
|
|
9594
|
+
if (Array.isArray(data64)) {
|
|
9595
|
+
const len3 = data64.length;
|
|
9596
|
+
for (let i3 = 0; i3 < len3; i3++) {
|
|
9597
|
+
if (!validate32(data64[i3], { instancePath: instancePath + "/boxes/" + i3, parentData: data64, parentDataProperty: i3, rootData })) {
|
|
9598
|
+
vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);
|
|
8210
9599
|
errors = vErrors.length;
|
|
8211
9600
|
}
|
|
8212
9601
|
}
|
|
8213
9602
|
} else {
|
|
8214
|
-
const
|
|
9603
|
+
const err73 = { instancePath: instancePath + "/boxes", schemaPath: "#/properties/boxes/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
8215
9604
|
if (vErrors === null) {
|
|
8216
|
-
vErrors = [
|
|
9605
|
+
vErrors = [err73];
|
|
8217
9606
|
} else {
|
|
8218
|
-
vErrors.push(
|
|
9607
|
+
vErrors.push(err73);
|
|
8219
9608
|
}
|
|
8220
9609
|
errors++;
|
|
8221
9610
|
}
|
|
8222
9611
|
}
|
|
8223
9612
|
if (data.strip !== void 0) {
|
|
8224
|
-
if (!
|
|
8225
|
-
vErrors = vErrors === null ?
|
|
9613
|
+
if (!validate34(data.strip, { instancePath: instancePath + "/strip", parentData: data, parentDataProperty: "strip", rootData })) {
|
|
9614
|
+
vErrors = vErrors === null ? validate34.errors : vErrors.concat(validate34.errors);
|
|
8226
9615
|
errors = vErrors.length;
|
|
8227
9616
|
}
|
|
8228
9617
|
}
|
|
8229
9618
|
if (data.steps !== void 0) {
|
|
8230
|
-
let
|
|
8231
|
-
if (Array.isArray(
|
|
8232
|
-
if (
|
|
8233
|
-
const
|
|
9619
|
+
let data67 = data.steps;
|
|
9620
|
+
if (Array.isArray(data67)) {
|
|
9621
|
+
if (data67.length < 1) {
|
|
9622
|
+
const err74 = { instancePath: instancePath + "/steps", schemaPath: "#/properties/steps/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
8234
9623
|
if (vErrors === null) {
|
|
8235
|
-
vErrors = [
|
|
9624
|
+
vErrors = [err74];
|
|
8236
9625
|
} else {
|
|
8237
|
-
vErrors.push(
|
|
9626
|
+
vErrors.push(err74);
|
|
8238
9627
|
}
|
|
8239
9628
|
errors++;
|
|
8240
9629
|
}
|
|
8241
|
-
const
|
|
8242
|
-
for (let
|
|
8243
|
-
if (!
|
|
8244
|
-
vErrors = vErrors === null ?
|
|
9630
|
+
const len4 = data67.length;
|
|
9631
|
+
for (let i4 = 0; i4 < len4; i4++) {
|
|
9632
|
+
if (!validate38(data67[i4], { instancePath: instancePath + "/steps/" + i4, parentData: data67, parentDataProperty: i4, rootData })) {
|
|
9633
|
+
vErrors = vErrors === null ? validate38.errors : vErrors.concat(validate38.errors);
|
|
8245
9634
|
errors = vErrors.length;
|
|
8246
9635
|
}
|
|
8247
9636
|
}
|
|
8248
9637
|
} else {
|
|
8249
|
-
const
|
|
9638
|
+
const err75 = { instancePath: instancePath + "/steps", schemaPath: "#/properties/steps/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
8250
9639
|
if (vErrors === null) {
|
|
8251
|
-
vErrors = [
|
|
9640
|
+
vErrors = [err75];
|
|
8252
9641
|
} else {
|
|
8253
|
-
vErrors.push(
|
|
9642
|
+
vErrors.push(err75);
|
|
8254
9643
|
}
|
|
8255
9644
|
errors++;
|
|
8256
9645
|
}
|
|
8257
9646
|
}
|
|
8258
9647
|
if (data.sequence !== void 0) {
|
|
8259
|
-
if (!
|
|
8260
|
-
vErrors = vErrors === null ?
|
|
9648
|
+
if (!validate46(data.sequence, { instancePath: instancePath + "/sequence", parentData: data, parentDataProperty: "sequence", rootData })) {
|
|
9649
|
+
vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
|
|
8261
9650
|
errors = vErrors.length;
|
|
8262
9651
|
}
|
|
8263
9652
|
}
|
|
8264
9653
|
if (data.state !== void 0) {
|
|
8265
|
-
if (!
|
|
8266
|
-
vErrors = vErrors === null ?
|
|
9654
|
+
if (!validate48(data.state, { instancePath: instancePath + "/state", parentData: data, parentDataProperty: "state", rootData })) {
|
|
9655
|
+
vErrors = vErrors === null ? validate48.errors : vErrors.concat(validate48.errors);
|
|
8267
9656
|
errors = vErrors.length;
|
|
8268
9657
|
}
|
|
8269
9658
|
}
|
|
8270
9659
|
if (data.git !== void 0) {
|
|
8271
|
-
if (!
|
|
8272
|
-
vErrors = vErrors === null ?
|
|
9660
|
+
if (!validate52(data.git, { instancePath: instancePath + "/git", parentData: data, parentDataProperty: "git", rootData })) {
|
|
9661
|
+
vErrors = vErrors === null ? validate52.errors : vErrors.concat(validate52.errors);
|
|
8273
9662
|
errors = vErrors.length;
|
|
8274
9663
|
}
|
|
8275
9664
|
}
|
|
8276
9665
|
if (data.time !== void 0) {
|
|
8277
|
-
if (!
|
|
8278
|
-
vErrors = vErrors === null ?
|
|
9666
|
+
if (!validate56(data.time, { instancePath: instancePath + "/time", parentData: data, parentDataProperty: "time", rootData })) {
|
|
9667
|
+
vErrors = vErrors === null ? validate56.errors : vErrors.concat(validate56.errors);
|
|
9668
|
+
errors = vErrors.length;
|
|
9669
|
+
}
|
|
9670
|
+
}
|
|
9671
|
+
if (data.lineup !== void 0) {
|
|
9672
|
+
if (!validate68(data.lineup, { instancePath: instancePath + "/lineup", parentData: data, parentDataProperty: "lineup", rootData })) {
|
|
9673
|
+
vErrors = vErrors === null ? validate68.errors : vErrors.concat(validate68.errors);
|
|
8279
9674
|
errors = vErrors.length;
|
|
8280
9675
|
}
|
|
8281
9676
|
}
|
|
8282
9677
|
} else {
|
|
8283
|
-
const
|
|
9678
|
+
const err76 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
8284
9679
|
if (vErrors === null) {
|
|
8285
|
-
vErrors = [
|
|
9680
|
+
vErrors = [err76];
|
|
8286
9681
|
} else {
|
|
8287
|
-
vErrors.push(
|
|
9682
|
+
vErrors.push(err76);
|
|
8288
9683
|
}
|
|
8289
9684
|
errors++;
|
|
8290
9685
|
}
|
|
@@ -8293,9 +9688,18 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8293
9688
|
}
|
|
8294
9689
|
|
|
8295
9690
|
// src/schema.ts
|
|
8296
|
-
var EVENT_TYPES = ["edge", "action", "swap", "strip", "commit", "branch", "now", "mark", "span", "leaf", "node"];
|
|
9691
|
+
var EVENT_TYPES = ["edge", "action", "swap", "strip", "commit", "branch", "now", "mark", "span", "leaf", "node", "line", "seal", "open", "pick", "stamp"];
|
|
8297
9692
|
var ABSENT = "#/definitions/absent/not";
|
|
8298
|
-
var ABSENT_KINDS = {
|
|
9693
|
+
var ABSENT_KINDS = {
|
|
9694
|
+
regions: "sequence / architecture / state",
|
|
9695
|
+
at: "time",
|
|
9696
|
+
into: "time",
|
|
9697
|
+
color: "time",
|
|
9698
|
+
meters: "time",
|
|
9699
|
+
region: "sequence / architecture / state",
|
|
9700
|
+
icon: "sequence / architecture / state / git / time / tree",
|
|
9701
|
+
link: "sequence / architecture / state / git / time / tree"
|
|
9702
|
+
};
|
|
8299
9703
|
var NOT_ALLOWED = {
|
|
8300
9704
|
carry: { field: "text", kind: "tag" }
|
|
8301
9705
|
};
|
|
@@ -8306,6 +9710,10 @@ var TIME_EVENT = /\/events\/items\/not$/u;
|
|
|
8306
9710
|
var TIME_EVENTS = ["now", "mark", "span"];
|
|
8307
9711
|
var TREE_EVENT = /\/events\/items\/allOf\/0\/not$/u;
|
|
8308
9712
|
var TREE_EVENTS = ["leaf", "node"];
|
|
9713
|
+
var LINEUP_EVENT = "#/definitions/notLineupEvent/not";
|
|
9714
|
+
var LINEUP_EVENTS = ["line", "seal", "open", "pick", "stamp"];
|
|
9715
|
+
var WIRED_EVENT = "#/definitions/notWiredEvent/not";
|
|
9716
|
+
var WIRED_EVENTS = ["edge", "action"];
|
|
8309
9717
|
var DURATION = /^\^\[0-9\]\+\(\\\.\[0-9\]\+\)\?\(([a-z|]+)\)\$$/u;
|
|
8310
9718
|
var RATIO = /%\)\$$/u;
|
|
8311
9719
|
var escape = (key) => key.replaceAll("~", "~0").replaceAll("/", "~1");
|
|
@@ -8337,6 +9745,8 @@ function toFieldError(error, errors, m) {
|
|
|
8337
9745
|
if (GIT_EVENT.test(error.schemaPath)) return { pointer: at2, message: m.kindOnly(GIT_EVENTS, "git") };
|
|
8338
9746
|
if (TIME_EVENT.test(error.schemaPath)) return { pointer: `${at2}/type`, message: m.kindOnly(TIME_EVENTS, "time") };
|
|
8339
9747
|
if (TREE_EVENT.test(error.schemaPath)) return { pointer: `${at2}/type`, message: m.kindOnly(TREE_EVENTS, "tree") };
|
|
9748
|
+
if (error.schemaPath === LINEUP_EVENT) return { pointer: `${at2}/type`, message: m.kindOnly(LINEUP_EVENTS, "lineup") };
|
|
9749
|
+
if (error.schemaPath === WIRED_EVENT) return { pointer: `${at2}/type`, message: m.kindOnly(WIRED_EVENTS, "sequence / architecture / state / git / time / tree") };
|
|
8340
9750
|
const last = at2.slice(at2.lastIndexOf("/") + 1);
|
|
8341
9751
|
if (error.schemaPath === ABSENT) return { pointer: at2, message: m.not({ field: last, kind: ABSENT_KINDS[last] ?? last }) };
|
|
8342
9752
|
const allowed = NOT_ALLOWED[last];
|
|
@@ -8357,6 +9767,8 @@ function toFieldError(error, errors, m) {
|
|
|
8357
9767
|
return { pointer: at2, message: m.type(String(params.type)) };
|
|
8358
9768
|
case "minLength":
|
|
8359
9769
|
return { pointer: at2, message: m.minLength(Number(params.limit)) };
|
|
9770
|
+
case "maxLength":
|
|
9771
|
+
return { pointer: at2, message: m.maxLength(Number(params.limit)) };
|
|
8360
9772
|
case "pattern": {
|
|
8361
9773
|
if (error.schemaPath === URL_RULE) return { pointer: at2, message: m.url };
|
|
8362
9774
|
const pattern = String(params.pattern);
|
|
@@ -8369,6 +9781,8 @@ function toFieldError(error, errors, m) {
|
|
|
8369
9781
|
}
|
|
8370
9782
|
case "minItems":
|
|
8371
9783
|
return { pointer: at2, message: m.minItems(Number(params.limit)) };
|
|
9784
|
+
case "maxItems":
|
|
9785
|
+
return { pointer: at2, message: m.maxItems(Number(params.limit)) };
|
|
8372
9786
|
case "minimum":
|
|
8373
9787
|
return { pointer: at2, message: m.minimum(Number(params.limit)) };
|
|
8374
9788
|
case "const":
|
|
@@ -8408,6 +9822,7 @@ function readDiagram(input, options = {}) {
|
|
|
8408
9822
|
}
|
|
8409
9823
|
|
|
8410
9824
|
// src/timeline.ts
|
|
9825
|
+
var LINEUP_LENGTH = { line: MOTION.lineup.slide, seal: MOTION.lineup.seal, open: MOTION.fade, pick: MOTION.fade, stamp: MOTION.popFade };
|
|
8411
9826
|
function plan(step, needle) {
|
|
8412
9827
|
const out = { edges: [], events: [], busy: 0 };
|
|
8413
9828
|
let cursor = MOTION.edgeAt;
|
|
@@ -8448,6 +9863,16 @@ function plan(step, needle) {
|
|
|
8448
9863
|
return;
|
|
8449
9864
|
}
|
|
8450
9865
|
if (event.type === "now" || needle && pulled(event)) return;
|
|
9866
|
+
if (event.type === "line" || event.type === "seal" || event.type === "open" || event.type === "pick" || event.type === "stamp") {
|
|
9867
|
+
const a = cursor;
|
|
9868
|
+
const b = a + LINEUP_LENGTH[event.type];
|
|
9869
|
+
out.edges.push({ event: e, a, b, carries: false, coin: false, named: false });
|
|
9870
|
+
cursor = a + MOTION.lineup.stagger;
|
|
9871
|
+
arrived = b;
|
|
9872
|
+
changes = 0;
|
|
9873
|
+
out.busy = Math.max(out.busy, b);
|
|
9874
|
+
return;
|
|
9875
|
+
}
|
|
8451
9876
|
if (event.type === "commit" || event.type === "branch" || event.type === "leaf" || event.type === "node") {
|
|
8452
9877
|
const a = cursor;
|
|
8453
9878
|
const b = a + MOTION.draw;
|
|
@@ -8768,14 +10193,16 @@ function band(region, ink) {
|
|
|
8768
10193
|
const mark = region.icon && ICONS[region.icon] ? `<rect class="dg-bi" x="${r1(x)}" y="${r1(y)}" width="${icon}" height="${icon}" rx="${iconRadius}"/>${glyph(region.icon, x + icon / 2, y + icon / 2, iconScale)}` : "";
|
|
8769
10194
|
return `<g style="${cs(region.color)}"><rect class="dg-band" x="${r1(region.x + 0.5)}" y="${r1(region.y + 0.5)}" width="${r1(region.w - 1)}" height="${r1(region.h - 1)}" rx="${radius}"/>${mark}${lines}${note}</g>`;
|
|
8770
10195
|
}
|
|
8771
|
-
function subLines(box, m, changes, y, ink) {
|
|
10196
|
+
function subLines(box, m, changes, y, ink, right) {
|
|
8772
10197
|
const seq = [[0, box.sub ?? "", "dg-ss"], ...changes];
|
|
8773
10198
|
return seq.map(([t, text2, cls], k) => {
|
|
8774
10199
|
const next = seq[k + 1]?.[0];
|
|
8775
10200
|
const anim = k === 0 ? next === void 0 ? "" : m.until(next - MOTION.untilFade) : next === void 0 ? m.rise(t) : m.rise(t, next - MOTION.untilFade);
|
|
8776
10201
|
if (text2 === "") return "";
|
|
8777
10202
|
const shown = [[k === 0 ? 0 : t, next === void 0 ? Number.POSITIVE_INFINITY : next - MOTION.untilFade]];
|
|
8778
|
-
|
|
10203
|
+
const style = cls === "dg-ss" ? TYPE.boxSub : TYPE.boxSubStrong;
|
|
10204
|
+
const drawn = right === void 0 ? write(ink, cls, box.cx, y, text2, style, shown, "middle") : write(ink, cls, right - textWidth(text2, style), y, text2, style, shown);
|
|
10205
|
+
return `<g${anim ? ` class="dg-a" style="${anim}"` : ""}>${drawn}</g>`;
|
|
8779
10206
|
}).join("");
|
|
8780
10207
|
}
|
|
8781
10208
|
function cardFrame(box, ctx, act, y, h) {
|
|
@@ -8843,9 +10270,9 @@ function endMark(e, color, ink) {
|
|
|
8843
10270
|
function lifeline(x, y1, y2) {
|
|
8844
10271
|
return `<line class="dg-ll" x1="${r1(x)}" y1="${r1(y1)}" x2="${r1(x)}" y2="${r1(y2)}"/>`;
|
|
8845
10272
|
}
|
|
8846
|
-
function edge(e, time, ctx, past = false) {
|
|
10273
|
+
function edge(e, time, ctx, past = false, since = 0) {
|
|
8847
10274
|
const { m } = ctx;
|
|
8848
|
-
ctx.traces.push({ from: e.from, to: e.to, points: e.points, shown: ALWAYS });
|
|
10275
|
+
ctx.traces.push({ from: e.from, to: e.to, points: e.points, shown: since > 0 ? [[since, Number.POSITIVE_INFINITY]] : ALWAYS });
|
|
8849
10276
|
const d = pathOf(e.points);
|
|
8850
10277
|
const head = arrowHead(e.points);
|
|
8851
10278
|
const { start: a, drawn: b, end } = time;
|
|
@@ -8881,8 +10308,9 @@ function edge(e, time, ctx, past = false) {
|
|
|
8881
10308
|
[m.total, { opacity: 0, "stroke-dashoffset": run }]
|
|
8882
10309
|
]);
|
|
8883
10310
|
const grey = past ? m.kf([[0, { opacity: 0 }], [end, { opacity: 0 }, EASE.inOut], [end + 0.4, { opacity: 1 }], [m.last, { opacity: 1 }, EASE.inOut], [m.total, { opacity: 0 }]]) : "";
|
|
10311
|
+
const path2 = `<path class="dg-e" d="${d}"/><path class="dg-eh" d="${head}"/>`;
|
|
8884
10312
|
return {
|
|
8885
|
-
base: `<
|
|
10313
|
+
base: `${since > 0 ? `<g class="dg-a" style="${m.vis(since)}">${path2}</g>` : path2}${past ? `<path class="dg-e-past dg-a" d="${d}" style="${grey}"/><path class="dg-eh-past dg-a" d="${head}" style="${grey}"/>` : ""}`,
|
|
8886
10314
|
lit: `<g style="${cs(e.color)}"><path class="dg-e-on dg-a" pathLength="1" d="${d}" style="${line}"/><path class="dg-eh-on dg-a" d="${head}" style="${hk}"/><path class="dg-flow dg-a" d="${d}" style="${flow}"/></g>`
|
|
8887
10315
|
};
|
|
8888
10316
|
}
|
|
@@ -9177,8 +10605,133 @@ function tagMotion(ref, list, timeOf, ctx) {
|
|
|
9177
10605
|
return `<g class="dg-a" data-ref="${esc(ref)}" style="${style}">${tagShape(ref, ctx.sh)}</g>`;
|
|
9178
10606
|
}
|
|
9179
10607
|
|
|
9180
|
-
// src/render/
|
|
10608
|
+
// src/render/lineup.ts
|
|
9181
10609
|
var r13 = (v) => Math.round(v * 100) / 100;
|
|
10610
|
+
var place = (dx, dy, scale = 1) => `translate(${r13(dx)}px,${r13(dy)}px) scale(${scale})`;
|
|
10611
|
+
var without = (span, holes) => holes.reduce((rest, [x, y]) => rest.flatMap(([a, b]) => y <= a || x >= b ? [[a, b]] : [...a < x ? [[a, x]] : [], ...y < b ? [[y, b]] : []]), [span]);
|
|
10612
|
+
function drawLineup(layout, diagram, timeline, ctx, subs) {
|
|
10613
|
+
const { m } = ctx;
|
|
10614
|
+
const N = LOOK.lineup;
|
|
10615
|
+
const cut = MOTION.lineup.cut;
|
|
10616
|
+
const timeOf = (at2) => timeline.edges.find((t) => t.step === at2.step && t.event === at2.event) ?? { start: 0, drawn: 0 };
|
|
10617
|
+
const items = new Map((diagram.lineup?.items ?? []).map((item) => [item.id, item]));
|
|
10618
|
+
const turns = new Map(layout.lanes.map((lane) => [lane.id, []]));
|
|
10619
|
+
const faint = /* @__PURE__ */ new Set();
|
|
10620
|
+
const turn = (id, at2, to) => {
|
|
10621
|
+
if (faint.has(id) === to) return;
|
|
10622
|
+
if (to) faint.add(id);
|
|
10623
|
+
else faint.delete(id);
|
|
10624
|
+
turns.get(id)?.push([at2, to]);
|
|
10625
|
+
};
|
|
10626
|
+
for (const time of [...timeline.edges].sort((a, b) => a.start - b.start)) {
|
|
10627
|
+
const e = diagram.steps[time.step]?.events[time.event];
|
|
10628
|
+
if (e?.type === "line") turn(e.box, time.start, false);
|
|
10629
|
+
if (e?.type === "pick") for (const lane of layout.lanes) turn(lane.id, time.start, lane.id !== e.box);
|
|
10630
|
+
}
|
|
10631
|
+
const fadeOf = (id) => {
|
|
10632
|
+
const list = turns.get(id) ?? [];
|
|
10633
|
+
if (list.length === 0) return void 0;
|
|
10634
|
+
const frames = [[0, { opacity: 1 }]];
|
|
10635
|
+
let now = 1;
|
|
10636
|
+
for (const [t, to] of list) {
|
|
10637
|
+
const next = to ? N.faint : 1;
|
|
10638
|
+
frames.push([t, { opacity: now }, EASE.inOut], [t + MOTION.fade, { opacity: next }]);
|
|
10639
|
+
now = next;
|
|
10640
|
+
}
|
|
10641
|
+
frames.push([m.last, { opacity: now }, EASE.inOut], [m.total, { opacity: 1 }]);
|
|
10642
|
+
return m.kf(frames);
|
|
10643
|
+
};
|
|
10644
|
+
const closedOf = (seal) => [timeOf(seal).drawn, seal.until ? timeOf(seal.until).start : Number.POSITIVE_INFINITY];
|
|
10645
|
+
const hideOf = (seals) => {
|
|
10646
|
+
if (seals.length === 0) return void 0;
|
|
10647
|
+
const frames = [[0, { opacity: 1 }]];
|
|
10648
|
+
for (const seal of seals) {
|
|
10649
|
+
const [a, b] = closedOf(seal);
|
|
10650
|
+
frames.push([a, { opacity: 1 }], [a + cut, { opacity: 0 }]);
|
|
10651
|
+
if (seal.until) frames.push([b, { opacity: 0 }], [b + cut, { opacity: 1 }]);
|
|
10652
|
+
}
|
|
10653
|
+
frames.push([m.total - cut, { opacity: seals.at(-1)?.until ? 1 : 0 }], [m.total, { opacity: 1 }]);
|
|
10654
|
+
return m.kf(frames);
|
|
10655
|
+
};
|
|
10656
|
+
const sealKf = (seal) => {
|
|
10657
|
+
const { start, drawn } = timeOf(seal);
|
|
10658
|
+
const none = { opacity: 0, transform: "scaleX(0)" };
|
|
10659
|
+
const end = seal.until ? [
|
|
10660
|
+
[timeOf(seal.until).start, { opacity: 1 }, EASE.inOut],
|
|
10661
|
+
[timeOf(seal.until).start + MOTION.fade, { opacity: 0 }],
|
|
10662
|
+
[m.total, { opacity: 0 }]
|
|
10663
|
+
] : [
|
|
10664
|
+
[m.last, { opacity: 1 }, EASE.inOut],
|
|
10665
|
+
[m.total, { opacity: 0 }]
|
|
10666
|
+
];
|
|
10667
|
+
return m.kf([[0, none], [start - cut, none], [start, { opacity: 1, transform: "scaleX(0)" }, EASE.inOut], [drawn, { transform: "scaleX(1)" }], ...end]);
|
|
10668
|
+
};
|
|
10669
|
+
const leaving = (c) => {
|
|
10670
|
+
if (!c.until) return void 0;
|
|
10671
|
+
const until = c.until;
|
|
10672
|
+
const next = layout.chips.find((n) => n !== c && n.id === c.id && n.step === until.step && n.from?.[0] === c.x && n.from?.[1] === c.y);
|
|
10673
|
+
return next ? { at: timeOf(next).start, moved: true } : { at: timeOf(until).start, moved: false };
|
|
10674
|
+
};
|
|
10675
|
+
const chipKf = (c) => {
|
|
10676
|
+
const a = timeOf(c).start;
|
|
10677
|
+
const rest = place(0, 0);
|
|
10678
|
+
const frames = [];
|
|
10679
|
+
if (c.from) {
|
|
10680
|
+
const off = place(c.from[0] - c.x, c.from[1] - c.y);
|
|
10681
|
+
frames.push([0, { opacity: 0, transform: off }], [a - cut, { opacity: 0, transform: off }], [a, { opacity: 1, transform: off }, EASE.inOut], [a + MOTION.lineup.slide, { transform: rest }]);
|
|
10682
|
+
} else {
|
|
10683
|
+
const off = place(0, 0, LOOK.popFrom);
|
|
10684
|
+
frames.push([0, { opacity: 0, transform: off }], [a, { opacity: 0, transform: off }, EASE.pop], [a + MOTION.popFade, { opacity: 1, transform: rest }]);
|
|
10685
|
+
}
|
|
10686
|
+
const leaves = leaving(c);
|
|
10687
|
+
if (leaves) {
|
|
10688
|
+
frames.push([leaves.at, { opacity: 1 }, EASE.inOut], [leaves.at + (leaves.moved ? cut : MOTION.fade), { opacity: 0 }], [m.total, { opacity: 0 }]);
|
|
10689
|
+
} else {
|
|
10690
|
+
frames.push([m.last, { opacity: 1 }, EASE.inOut], [m.total, { opacity: 0 }]);
|
|
10691
|
+
}
|
|
10692
|
+
return m.kf(frames);
|
|
10693
|
+
};
|
|
10694
|
+
const chip = (c, closed) => {
|
|
10695
|
+
const item = items.get(c.id);
|
|
10696
|
+
const color = item?.color;
|
|
10697
|
+
const rect = `<rect class="${color ? "dg-ln-chip" : "dg-ln-plain"}" x="${r13(c.x)}" y="${r13(c.y)}" width="${r13(c.w)}" height="${c.h}" rx="${N.chip.radius}"/>`;
|
|
10698
|
+
const shown = without([timeOf(c).start + MOTION.lineup.slide, leaving(c)?.at ?? Number.POSITIVE_INFINITY], closed);
|
|
10699
|
+
const text2 = item?.label === void 0 ? "" : write(ctx.ink, color ? "dg-ln-t" : "dg-ln-tp", c.x + c.w / 2, c.y + c.h / 2 + LOOK.baseline.tag, item.label, TYPE.chip, shown, "middle");
|
|
10700
|
+
return `<g class="dg-popc dg-a" data-lineup-chip="${esc(c.id)}" data-lineup-on="${esc(c.lane)}" data-lineup-seat="${c.index}" style="${color ? `${cs(color)};` : ""}${chipKf(c)}">${rect}${text2}</g>`;
|
|
10701
|
+
};
|
|
10702
|
+
const ring = (pick, next, frame) => `<g class="dg-a" data-lineup-ring="${esc(pick.lane)}" style="${m.vis(timeOf(pick).start, next ? timeOf(next).start : m.last)}">${frame}</g>`;
|
|
10703
|
+
const faded = new Map(layout.lanes.map((lane) => [lane.id, fadeOf(lane.id)]));
|
|
10704
|
+
const lanes = layout.lanes.map((lane) => {
|
|
10705
|
+
const rect = (cls, extra = "") => `<rect class="${cls}" x="${r13(lane.x)}" y="${r13(lane.y)}" width="${r13(lane.w)}" height="${lane.h}" rx="${N.radius}"${extra}/>`;
|
|
10706
|
+
const rings = layout.picks.flatMap((pick, k) => pick.lane === lane.id ? [ring(pick, layout.picks[k + 1], `${rect("dg-halo")}${rect("dg-on")}`)] : []).join("");
|
|
10707
|
+
const notes = subLines(lane, m, subs.get(lane.id) ?? [], lane.title.baseline, ctx.ink, lane.noteRight);
|
|
10708
|
+
const fade = faded.get(lane.id);
|
|
10709
|
+
return `<g${fade ? ' class="dg-a"' : ""} data-lineup-lane="${esc(lane.id)}" style="${cs(lane.color)}${fade ? `;${fade}` : ""}">${rect("dg-st", ` ${ctx.sh}`)}${rings}${write(ctx.ink, "dg-sn", lane.title.x, lane.title.baseline, lane.name, TYPE.boxName, ALWAYS)}${notes}</g>`;
|
|
10710
|
+
}).join("");
|
|
10711
|
+
const stripes = N.seal.stripe;
|
|
10712
|
+
const pattern = `<defs><pattern id="dg-seal-${ctx.id}" patternUnits="userSpaceOnUse" width="${stripes * 2}" height="${stripes * 2}" patternTransform="rotate(45)"><rect class="dg-ln-sl" width="${stripes * 2}" height="${stripes * 2}"/><rect class="dg-ln-sd" width="${stripes}" height="${stripes * 2}"/></pattern></defs>`;
|
|
10713
|
+
const chips = layout.lanes.map((lane) => {
|
|
10714
|
+
const seals = layout.seals.filter((s) => s.lane === lane.id);
|
|
10715
|
+
const closed = seals.map(closedOf);
|
|
10716
|
+
const seats = layout.chips.filter((c) => c.lane === lane.id).map((c) => chip(c, closed)).join("");
|
|
10717
|
+
const hide = hideOf(seals);
|
|
10718
|
+
const track = `<g${hide ? ' class="dg-a"' : ""} data-lineup-track="${esc(lane.id)}"${hide ? ` style="${hide}"` : ""}>${seats}</g>`;
|
|
10719
|
+
const covers = seals.map((s) => `<rect class="dg-ln-seal dg-a" data-lineup-seal="${esc(lane.id)}" x="${r13(s.x)}" y="${r13(s.y)}" width="${r13(s.w)}" height="${r13(s.h)}" rx="${N.seal.radius}" fill="url(#dg-seal-${ctx.id})" style="${sealKf(s)}"/>`).join("");
|
|
10720
|
+
const stamps = layout.stamps.filter((s) => s.lane === lane.id).map((s) => {
|
|
10721
|
+
const at2 = timeOf(s).start;
|
|
10722
|
+
const cx = s.x + s.w / 2;
|
|
10723
|
+
const cy = s.y + s.h / 2;
|
|
10724
|
+
const text2 = write(ctx.ink, "dg-ln-st", cx, cy + LOOK.baseline.tag, s.text, TYPE.stamp, [[at2, Number.POSITIVE_INFINITY]], "middle");
|
|
10725
|
+
return `<g class="dg-popc dg-a" data-lineup-stamp="${esc(lane.id)}" style="${cs(N.stamp.color)};${m.pop(at2)}"><g transform="rotate(${N.stamp.tilt} ${r13(cx)} ${r13(cy)})"><rect class="dg-ln-stamp" x="${r13(s.x)}" y="${r13(s.y)}" width="${r13(s.w)}" height="${s.h}" rx="${N.stamp.radius}"/>${text2}</g></g>`;
|
|
10726
|
+
}).join("");
|
|
10727
|
+
const fade = faded.get(lane.id);
|
|
10728
|
+
return `<g${fade ? ` class="dg-a" style="${fade}"` : ""}>${track}${covers}${stamps}</g>`;
|
|
10729
|
+
}).join("");
|
|
10730
|
+
return { lanes, chips: `${pattern}${chips}` };
|
|
10731
|
+
}
|
|
10732
|
+
|
|
10733
|
+
// src/render/time.ts
|
|
10734
|
+
var r14 = (v) => Math.round(v * 100) / 100;
|
|
9182
10735
|
var ja2 = (cls, text2) => hasWide(text2) ? `${cls} ${cls}j` : cls;
|
|
9183
10736
|
var sansOf = (t) => ({ ...t, family: "sans" });
|
|
9184
10737
|
function simplify(keys2) {
|
|
@@ -9229,18 +10782,18 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
|
|
|
9229
10782
|
const times = [passed.get(u), box ? arrivals.get(box) : void 0].filter((t) => t !== void 0);
|
|
9230
10783
|
return times.length > 0 ? Math.min(...times) : void 0;
|
|
9231
10784
|
};
|
|
9232
|
-
for (const p of layout.periods) if (p.index % 2 === 1) base.push(`<rect class="dg-tm-ep" x="${
|
|
10785
|
+
for (const p of layout.periods) if (p.index % 2 === 1) base.push(`<rect class="dg-tm-ep" x="${r14(p.x)}" y="${r14(rowsTop - T.shade)}" width="${r14(p.w)}" height="${r14(rowsBottom - rowsTop + T.shade * 2)}" rx="4"/>`);
|
|
9233
10786
|
if (layout.zoom) {
|
|
9234
10787
|
const z = layout.zoom;
|
|
9235
10788
|
z.columns.forEach((c, k) => {
|
|
9236
|
-
if (k > 0) base.push(`<line class="dg-tm-sep" x1="${
|
|
10789
|
+
if (k > 0) base.push(`<line class="dg-tm-sep" x1="${r14(c.x)}" y1="${r14(c.y + T.sep)}" x2="${r14(c.x)}" y2="${r14(c.y + c.h - T.sep)}"/>`);
|
|
9237
10790
|
base.push(write(ink, ja2("dg-tm-hd", c.head), c.x + c.w / 2, z.headY, c.head, TYPE.timeHead, ALWAYS, "middle"));
|
|
9238
10791
|
for (const box of c.boxes) node.push(columnBox(box, c.unit));
|
|
9239
10792
|
});
|
|
9240
10793
|
}
|
|
9241
10794
|
function columnBox(box, unit) {
|
|
9242
10795
|
const on = [...new Set(layout.wires.filter((w) => w.from === box || w.to === box).map((w) => w.step))].sort((a, b) => a - b);
|
|
9243
|
-
const frame = (cls) => `<rect class="${cls}" x="${
|
|
10796
|
+
const frame = (cls) => `<rect class="${cls}" x="${r14(box.x)}" y="${r14(box.y)}" width="${r14(box.w)}" height="${box.h}" rx="${LOOK.box.radius}"/>`;
|
|
9244
10797
|
if (box.empty) {
|
|
9245
10798
|
const shown2 = passed.get(unit);
|
|
9246
10799
|
const word = layout.zoom?.empty ?? "";
|
|
@@ -9256,11 +10809,11 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
|
|
|
9256
10809
|
for (const row of layout.rows) {
|
|
9257
10810
|
const parts = [];
|
|
9258
10811
|
for (const mark of layout.marks.filter((x2) => x2.row === row.id)) {
|
|
9259
|
-
const rect = (cls, extra = "") => `<rect class="${cls}" x="${
|
|
10812
|
+
const rect = (cls, extra = "") => `<rect class="${cls}" x="${r14(mark.x)}" y="${r14(mark.y)}" width="${r14(mark.w)}" height="${r14(mark.h)}" rx="${T.markRadius}"${extra}/>`;
|
|
9260
10813
|
parts.push(rect("dg-tm-slot"));
|
|
9261
10814
|
if (mark.empty) {
|
|
9262
10815
|
const shown2 = passed.get(mark.unit);
|
|
9263
|
-
if (shown2 !== void 0) parts.push(`<circle class="dg-tm-x dg-a" cx="${
|
|
10816
|
+
if (shown2 !== void 0) parts.push(`<circle class="dg-tm-x dg-a" cx="${r14(mark.x + mark.w / 2)}" cy="${r14(mark.y + mark.h / 2)}" r="${T.emptyR}" style="${m.vis(shown2, m.last, { f: 0.2 })}"/>`);
|
|
9264
10817
|
continue;
|
|
9265
10818
|
}
|
|
9266
10819
|
const shown = filled(row.id, mark.unit);
|
|
@@ -9280,13 +10833,13 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
|
|
|
9280
10833
|
const z = layout.zoom;
|
|
9281
10834
|
const hide = layout.spans.filter((s) => s.kind === "box" && s.from <= z.to && z.from <= s.to).map((s) => at2(s.step, s.event)).filter((t) => t !== void 0).sort((a, b) => a - b)[0];
|
|
9282
10835
|
const guides = z.guides.map((g) => `<path class="dg-tm-gd" d="${pathOf(g)}"/>`).join("");
|
|
9283
|
-
const lens = `<rect class="dg-tm-fr" x="${
|
|
10836
|
+
const lens = `<rect class="dg-tm-fr" x="${r14(z.frame.x)}" y="${r14(z.frame.y)}" width="${r14(z.frame.w)}" height="${r14(z.frame.h)}" rx="4"/>${guides}`;
|
|
9284
10837
|
base.push(hide === void 0 ? lens : `<g class="dg-a" style="${m.until(hide)}">${lens}</g>`);
|
|
9285
10838
|
}
|
|
9286
|
-
const x = (u) =>
|
|
9287
|
-
const majors = layout.ticks.map((t) => `M ${x(t.at)} ${
|
|
9288
|
-
const minors = layout.minor.map((u) => `M ${x(u)} ${
|
|
9289
|
-
base.push(`<path class="dg-tm-ax" d="M ${x(0)} ${
|
|
10839
|
+
const x = (u) => r14(axis.x + u * axis.unit);
|
|
10840
|
+
const majors = layout.ticks.map((t) => `M ${x(t.at)} ${r14(axis.line - T.major / 2)} V ${r14(axis.line + T.major / 2)}`);
|
|
10841
|
+
const minors = layout.minor.map((u) => `M ${x(u)} ${r14(axis.line - T.minor / 2)} V ${r14(axis.line + T.minor / 2)}`);
|
|
10842
|
+
base.push(`<path class="dg-tm-ax" d="M ${x(0)} ${r14(axis.line)} H ${x(axis.count)} ${[...majors, ...minors].join(" ")}"/>`);
|
|
9290
10843
|
for (const t of layout.ticks) base.push(write(ink, ja2("dg-tm-tk", t.text), t.left, t.y, t.text, TYPE.timeTick));
|
|
9291
10844
|
for (const p of layout.periods) {
|
|
9292
10845
|
base.push(write(ink, ja2("dg-tm-en", p.name), p.x + p.w / 2, p.nameY, p.name, TYPE.timePeriod, ALWAYS, "middle"));
|
|
@@ -9299,16 +10852,16 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
|
|
|
9299
10852
|
const shown = [[a, until ?? Number.POSITIVE_INFINITY]];
|
|
9300
10853
|
const vis = until === void 0 ? m.vis(a) : m.vis(a, until, { within: true });
|
|
9301
10854
|
if (span.kind === "bracket") {
|
|
9302
|
-
const [x0, x1, y0, y12] = [
|
|
10855
|
+
const [x0, x1, y0, y12] = [r14(span.x + 1), r14(span.x + span.w - 1), r14(span.y), r14(span.y + span.h)];
|
|
9303
10856
|
const words = write(ink, ja2("dg-tm-bt", span.text), span.textRect.x + span.textRect.w / 2, span.textY, span.text, TYPE.spanText, shown, "middle");
|
|
9304
10857
|
base.push(`<g class="dg-a" data-span="${span.step}" style="${cs(span.color)};${vis}"><path class="dg-tm-br" d="M ${x0} ${y0} L ${x0} ${y12} L ${x1} ${y12} L ${x1} ${y0}"/>${words}</g>`);
|
|
9305
10858
|
continue;
|
|
9306
10859
|
}
|
|
9307
|
-
base.push(`<g class="dg-a" data-span="${span.step}" style="${cs(span.color)};${vis}"><rect class="dg-tm-bx" x="${
|
|
10860
|
+
base.push(`<g class="dg-a" data-span="${span.step}" style="${cs(span.color)};${vis}"><rect class="dg-tm-bx" x="${r14(span.x)}" y="${r14(span.y)}" width="${r14(span.w)}" height="${r14(span.h)}" rx="6"/></g>`);
|
|
9308
10861
|
const tag = span.textRect;
|
|
9309
10862
|
ink.push({ text: span.text, rect: tag, shown, boxed: true });
|
|
9310
10863
|
top.push(
|
|
9311
|
-
`<g class="dg-tg dg-popc dg-a" style="${cs(span.color)};${until === void 0 ? m.pop(a) : m.pop(a, until)}"><rect x="${
|
|
10864
|
+
`<g class="dg-tg dg-popc dg-a" style="${cs(span.color)};${until === void 0 ? m.pop(a) : m.pop(a, until)}"><rect x="${r14(tag.x)}" y="${r14(tag.y)}" width="${r14(tag.w)}" height="${tag.h}" rx="${tag.h / 2}"/><text x="${r14(tag.x + tag.w / 2)}" y="${r14(span.textY)}" text-anchor="middle">${esc(span.text)}</text></g>`
|
|
9312
10865
|
);
|
|
9313
10866
|
}
|
|
9314
10867
|
const P = T.point;
|
|
@@ -9316,7 +10869,7 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
|
|
|
9316
10869
|
const { cx, cy, r } = point;
|
|
9317
10870
|
const times = point.changes.map((c) => at2(c.step, c.event) ?? Number.POSITIVE_INFINITY);
|
|
9318
10871
|
const first = times[0];
|
|
9319
|
-
base.push(`<path class="dg-tm-con" d="M ${
|
|
10872
|
+
base.push(`<path class="dg-tm-con" d="M ${r14(cx)} ${r14(rowsBottom + 3)} L ${r14(cx)} ${r14(cy - r - 2)}"/>`);
|
|
9320
10873
|
const tx = point.text.x;
|
|
9321
10874
|
const name = write(ink, ja2("dg-tm-pn", point.id), tx, cy + P.nameY, point.id, TYPE.pointName);
|
|
9322
10875
|
const grey = name.replace(/class="([^"]*)"/u, 'class="$1 dg-tm-pn-g"');
|
|
@@ -9332,9 +10885,9 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
|
|
|
9332
10885
|
const rings = point.changes.map((c, k) => {
|
|
9333
10886
|
const t = times[k];
|
|
9334
10887
|
if (!c.color || !Number.isFinite(t)) return "";
|
|
9335
|
-
return `<g class="dg-popc dg-a" style="${cs(c.color)};${m.pop(t)}"><circle class="dg-tm-pc" cx="${
|
|
10888
|
+
return `<g class="dg-popc dg-a" style="${cs(c.color)};${m.pop(t)}"><circle class="dg-tm-pc" cx="${r14(cx)}" cy="${r14(cy)}" r="${r + 0.5}"/>${glyph("flag", cx, cy, P.glyph, "dg-tm-pcg")}</g>`;
|
|
9336
10889
|
}).join("");
|
|
9337
|
-
node.push(`<g data-point="${esc(point.id)}"><circle class="dg-tm-pg" cx="${
|
|
10890
|
+
node.push(`<g data-point="${esc(point.id)}"><circle class="dg-tm-pg" cx="${r14(cx)}" cy="${r14(cy)}" r="${r}"/>${glyph("flag", cx, cy, P.glyph, "dg-tm-pgl")}${rings}${label2}${states}</g>`);
|
|
9338
10891
|
}
|
|
9339
10892
|
const wired = new Set(layout.wires.map((w) => `${w.step}/${w.event}`));
|
|
9340
10893
|
for (const e of layout.edges) {
|
|
@@ -9366,7 +10919,7 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
|
|
|
9366
10919
|
const { y1, y2 } = layout.needle;
|
|
9367
10920
|
const N = T.needle;
|
|
9368
10921
|
top.push(
|
|
9369
|
-
`<g class="dg-a" data-needle="" style="${m.move(path2)}"><line class="dg-tm-nd" x1="0" y1="${
|
|
10922
|
+
`<g class="dg-a" data-needle="" style="${m.move(path2)}"><line class="dg-tm-nd" x1="0" y1="${r14(y1)}" x2="0" y2="${r14(y2)}"/><path class="dg-tm-nh" d="M ${ -6 * 0.75} ${r14(y1 - N.head)} L ${N.head * 0.75} ${r14(y1 - N.head)} L 0 ${r14(y1)} Z"/><circle class="dg-tm-nh" cy="${r14(axis.line)}" r="${N.dot}"/></g>`
|
|
9370
10923
|
);
|
|
9371
10924
|
return { base: base.join(""), lit: lit.join(""), node: node.join(""), top: top.join("") };
|
|
9372
10925
|
}
|
|
@@ -9376,12 +10929,12 @@ function meterField(field, keys2, ctx) {
|
|
|
9376
10929
|
const { x, w, line, text: text2 } = field.meter;
|
|
9377
10930
|
const y = field.y + M.y;
|
|
9378
10931
|
const kf = m.kf([
|
|
9379
|
-
...simplify(keys2).map(([t, v]) => [t, { transform: `scaleX(${
|
|
9380
|
-
[m.last, { transform: `scaleX(${
|
|
10932
|
+
...simplify(keys2).map(([t, v]) => [t, { transform: `scaleX(${r14(v * 1e3) / 1e3})` }]),
|
|
10933
|
+
[m.last, { transform: `scaleX(${r14(valueAt(keys2, m.last) * 1e3) / 1e3})` }, EASE.inOut],
|
|
9381
10934
|
[m.total, { transform: "scaleX(0)" }]
|
|
9382
10935
|
]);
|
|
9383
10936
|
const lx = x + w * line;
|
|
9384
|
-
return `<rect class="dg-tm-mt" x="${
|
|
10937
|
+
return `<rect class="dg-tm-mt" x="${r14(x)}" y="${r14(y)}" width="${r14(w)}" height="${M.h}" rx="${M.h / 2}"/><rect class="dg-tm-mf dg-a" x="${r14(x)}" y="${r14(y)}" width="${r14(w)}" height="${M.h}" rx="${M.h / 2}" style="${cs(M.color)};${kf}"/><line class="dg-tm-mk" x1="${r14(lx)}" y1="${r14(y - M.mark)}" x2="${r14(lx)}" y2="${r14(y + M.h + M.mark)}"/>` + write(ctx.ink, "dg-tm-ml", lx, field.y + M.textY, text2, TYPE.meterLine, ALWAYS, "middle");
|
|
9385
10938
|
}
|
|
9386
10939
|
function timeFocus(layout, timeline, step, parts, vw, vh) {
|
|
9387
10940
|
const span = timeline.steps[step];
|
|
@@ -9403,7 +10956,7 @@ function timeFocus(layout, timeline, step, parts, vw, vh) {
|
|
|
9403
10956
|
}
|
|
9404
10957
|
|
|
9405
10958
|
// src/render/tree.ts
|
|
9406
|
-
var
|
|
10959
|
+
var r15 = (v) => Math.round(v * 100) / 100;
|
|
9407
10960
|
function drawTree(layout, diagram, timeline, ctx) {
|
|
9408
10961
|
const { m } = ctx;
|
|
9409
10962
|
const T = LOOK.tree;
|
|
@@ -9462,7 +11015,7 @@ function drawTree(layout, diagram, timeline, ctx) {
|
|
|
9462
11015
|
const ties = layout.nodes.flatMap((n) => {
|
|
9463
11016
|
if (!n.card) return [];
|
|
9464
11017
|
const at2 = drawnAt.get(n.id) ?? 0;
|
|
9465
|
-
const d = `M ${
|
|
11018
|
+
const d = `M ${r15(n.cx)} ${r15(n.y + n.h + LOOK.edge.inset)} V ${r15(n.card.y - LOOK.edge.inset)}`;
|
|
9466
11019
|
return [faded(n.id, `<path class="dg-tree-con dg-a" d="${d}" style="${m.vis(at2)}"/>`)];
|
|
9467
11020
|
}).join("");
|
|
9468
11021
|
const traced = /* @__PURE__ */ new Set();
|
|
@@ -9497,7 +11050,7 @@ function drawTree(layout, diagram, timeline, ctx) {
|
|
|
9497
11050
|
return [
|
|
9498
11051
|
faded(
|
|
9499
11052
|
n.id,
|
|
9500
|
-
`<rect class="dg-tree-card" x="${
|
|
11053
|
+
`<rect class="dg-tree-card" x="${r15(c.x)}" y="${r15(c.y)}" width="${r15(c.w)}" height="${c.h}" rx="${T.card.radius}"/>${glyph("doc", gx, cy, T.card.glyph, "dg-tree-cg")}${text2}`,
|
|
9501
11054
|
` data-tree-card="${esc(n.id)}"`
|
|
9502
11055
|
)
|
|
9503
11056
|
];
|
|
@@ -9507,10 +11060,10 @@ function drawTree(layout, diagram, timeline, ctx) {
|
|
|
9507
11060
|
const on = [...active.get(n.id) ?? []].sort((x, y) => x - y);
|
|
9508
11061
|
const act = on.length > 0 ? activeKf(ctx, on) : void 0;
|
|
9509
11062
|
const radius = n.root ? T.root.radius : T.radius;
|
|
9510
|
-
const rect = (cls, extra = "") => `<rect class="${cls}" x="${
|
|
11063
|
+
const rect = (cls, extra = "") => `<rect class="${cls}" x="${r15(n.x)}" y="${r15(n.y)}" width="${r15(n.w)}" height="${n.h}" rx="${radius}"${extra}/>`;
|
|
9511
11064
|
const frame = `${act ? `<g class="dg-a" style="${act}">${rect("dg-halo")}</g>` : ""}${rect("dg-st", ` ${ctx.sh}`)}${act ? `<g class="dg-a" style="${act}">${rect("dg-on")}</g>` : ""}`;
|
|
9512
11065
|
const ix = n.x + T.root.iconX + B.icon / 2;
|
|
9513
|
-
const mark = n.root ? `<rect class="dg-ic" x="${
|
|
11066
|
+
const mark = n.root ? `<rect class="dg-ic" x="${r15(ix - B.icon / 2)}" y="${r15(n.cy - B.icon / 2)}" width="${B.icon}" height="${B.icon}" rx="${B.iconRadius}"/>${glyph("tree", ix, n.cy, B.iconScale)}` : "";
|
|
9514
11067
|
const shown = [[at2, Number.POSITIVE_INFINITY]];
|
|
9515
11068
|
const texts = n.lines.map((line, k) => {
|
|
9516
11069
|
const style = n.styles[k] ?? TYPE.boxName;
|
|
@@ -9521,7 +11074,7 @@ function drawTree(layout, diagram, timeline, ctx) {
|
|
|
9521
11074
|
const inner = faded(n.id, `${frame}${mark}${texts}`, ` data-tree-node="${esc(n.id)}"${n.root ? ` data-tree-root="${esc(n.id)}"` : ""}`);
|
|
9522
11075
|
return `<g class="dg-popc dg-a" style="${cs(n.color)};${m.pop(at2)}">${inner}</g>`;
|
|
9523
11076
|
}).join("");
|
|
9524
|
-
return { links: links + ties, trails, nodes: cards + nodes };
|
|
11077
|
+
return { links: links + ties, trails, nodes: cards + nodes, appear: drawnAt };
|
|
9525
11078
|
}
|
|
9526
11079
|
|
|
9527
11080
|
// src/render/motion.ts
|
|
@@ -9715,6 +11268,16 @@ var PART_CSS = [
|
|
|
9715
11268
|
`.dg-tree-one{${font(TYPE.boxName)};fill:var(--ink)}`,
|
|
9716
11269
|
`.dg-tree-rh{${font(TYPE.rootHash)};fill:var(--ink)}`,
|
|
9717
11270
|
`.dg-tree-rn{${font(TYPE.rootName)};fill:var(--mute)}`,
|
|
11271
|
+
// 列の図 (#3239)。封は列の左端から右へ伸びる
|
|
11272
|
+
".dg-ln-chip{fill:var(--c)}",
|
|
11273
|
+
`.dg-ln-plain{fill:color-mix(in srgb,var(--mute) ${X.chipPlain}%,var(--surf))}`,
|
|
11274
|
+
`.dg-ln-t{${font(TYPE.chip)};fill:var(--on-c)}`,
|
|
11275
|
+
`.dg-ln-tp{${font(TYPE.chip)};fill:var(--ink)}`,
|
|
11276
|
+
".dg-ln-seal{transform-box:fill-box;transform-origin:0 50%}",
|
|
11277
|
+
`.dg-ln-sd{fill:color-mix(in srgb,var(--mute) ${X.sealDark}%,var(--surf))}`,
|
|
11278
|
+
`.dg-ln-sl{fill:color-mix(in srgb,var(--mute) ${X.sealLight}%,var(--surf))}`,
|
|
11279
|
+
`.dg-ln-stamp{fill:var(--surf);stroke:var(--c);stroke-width:${S.stamp}}`,
|
|
11280
|
+
`.dg-ln-st{${font(TYPE.stamp)};fill:var(--ct)}`,
|
|
9718
11281
|
// 時間軸の図 (#3165)。和文を含む字は、末尾に j を付けた class で同じ大きさと太さの和文の字にする
|
|
9719
11282
|
`.dg-tm-ep{fill:color-mix(in srgb,var(--ink) ${X.timeShade}%,transparent)}`,
|
|
9720
11283
|
`.dg-tm-sep{stroke:var(--hair);stroke-width:${S.hair};stroke-dasharray:2 4}`,
|
|
@@ -9853,7 +11416,7 @@ function drawSvg(diagram, layout, timeline, palette, theme, follow, ink = [], tr
|
|
|
9853
11416
|
const vars = paletteVars(palette, theme);
|
|
9854
11417
|
const id = nameOf(`${JSON.stringify(diagram)}|${vars}|${follow ? `${follow.width}|${follow.lang}` : ""}`);
|
|
9855
11418
|
const m = new Motion(`dg${id}`, timeline.total, timeline.last);
|
|
9856
|
-
const ctx = { m, t: timeline, sh: `filter="url(#dg-sh-${id})"`, end: timeline.steps[timeline.steps.length - 1].end, ink, traces };
|
|
11419
|
+
const ctx = { m, t: timeline, id, sh: `filter="url(#dg-sh-${id})"`, end: timeline.steps[timeline.steps.length - 1].end, ink, traces };
|
|
9857
11420
|
const on = involved(diagram);
|
|
9858
11421
|
const subs = subChanges(diagram, timeline, layout.kind !== "sequence");
|
|
9859
11422
|
const L = { band: [], base: [], lit: [], node: [], badge: [], top: [] };
|
|
@@ -9877,13 +11440,19 @@ function drawSvg(diagram, layout, timeline, palette, theme, follow, ink = [], tr
|
|
|
9877
11440
|
L.top.push(git.tags);
|
|
9878
11441
|
}
|
|
9879
11442
|
const treeLayout = isTreeLayout(layout) ? layout : void 0;
|
|
9880
|
-
|
|
9881
|
-
|
|
11443
|
+
const tree = treeLayout ? drawTree(treeLayout, diagram, timeline, ctx) : void 0;
|
|
11444
|
+
if (tree) {
|
|
9882
11445
|
L.base.push(tree.links);
|
|
9883
11446
|
L.lit.push(tree.trails);
|
|
9884
11447
|
L.node.push(tree.nodes);
|
|
9885
11448
|
}
|
|
9886
11449
|
const runs = new Set((treeLayout?.runs ?? []).map((r) => `${r.step}/${r.event}`));
|
|
11450
|
+
const lineupLayout = isLineupLayout(layout) ? layout : void 0;
|
|
11451
|
+
if (lineupLayout) {
|
|
11452
|
+
const lineup = drawLineup(lineupLayout, diagram, timeline, ctx, subs);
|
|
11453
|
+
L.base.push(lineup.lanes);
|
|
11454
|
+
L.node.push(lineup.chips);
|
|
11455
|
+
}
|
|
9887
11456
|
const timeLayout = isTimeLayout(layout) ? layout : void 0;
|
|
9888
11457
|
if (timeLayout) {
|
|
9889
11458
|
const drawn = drawTime(timeLayout, diagram, timeline, ctx, subs);
|
|
@@ -9896,14 +11465,15 @@ function drawSvg(diagram, layout, timeline, palette, theme, follow, ink = [], tr
|
|
|
9896
11465
|
for (const e of layout.edges) {
|
|
9897
11466
|
const time = timeline.edges.find((t) => t.step === e.step && t.event === e.event);
|
|
9898
11467
|
if (!time || timeLayout && !wired.has(`${e.step}/${e.event}`) || runs.has(`${e.step}/${e.event}`)) continue;
|
|
9899
|
-
const
|
|
11468
|
+
const since = Math.max(tree?.appear.get(e.from) ?? 0, tree?.appear.get(e.to) ?? 0);
|
|
11469
|
+
const drawn = edge(e, time, ctx, isState, since);
|
|
9900
11470
|
L.base.push(drawn.base);
|
|
9901
11471
|
L.lit.push(drawn.lit);
|
|
9902
11472
|
}
|
|
9903
11473
|
const states = new Map((timeline.states ?? []).map((s) => [s.box, s]));
|
|
9904
11474
|
const links = new Map(diagram.boxes.flatMap((b) => b.link === void 0 ? [] : [[b.id, b.link]]));
|
|
9905
11475
|
const linked = (id2, markup) => linkTo(links.get(id2), markup);
|
|
9906
|
-
for (const box of timeLayout ? [] : layout.boxes) {
|
|
11476
|
+
for (const box of timeLayout || lineupLayout ? [] : layout.boxes) {
|
|
9907
11477
|
if (box.ghost) {
|
|
9908
11478
|
L.node.push(linked(box.id, ghostCard(box, ink)));
|
|
9909
11479
|
continue;
|
|
@@ -9973,6 +11543,10 @@ function focusParts(layout, diagram, step) {
|
|
|
9973
11543
|
rects.push({ x: Math.min(...xs), y: Math.min(...ys), w: Math.max(...xs) - Math.min(...xs), h: Math.max(...ys) - Math.min(...ys) });
|
|
9974
11544
|
}
|
|
9975
11545
|
}
|
|
11546
|
+
if (isLineupLayout(layout)) {
|
|
11547
|
+
const changed = new Set((diagram.steps[step]?.events ?? []).flatMap((e) => "box" in e ? [e.box] : []));
|
|
11548
|
+
rects.push(...layout.lanes.filter((lane) => changed.has(lane.id)));
|
|
11549
|
+
}
|
|
9976
11550
|
for (const event of diagram.steps[step]?.events ?? []) {
|
|
9977
11551
|
const ids = event.type === "edge" ? [event.from, event.to] : event.type === "action" || event.type === "swap" ? [event.box] : [];
|
|
9978
11552
|
for (const id of ids) {
|
|
@@ -10072,7 +11646,7 @@ function renderDiagram(input, options = {}) {
|
|
|
10072
11646
|
const read = readDiagram(input, { lang });
|
|
10073
11647
|
if (!read.ok) throw new Error(FIGURE_TEXT[lang].cannotDraw(read.errors.map((e) => `${e.pointer} ${e.message}`).join(" / ")));
|
|
10074
11648
|
const diagram = read.diagram;
|
|
10075
|
-
const layout = diagram.kind === "sequence" ? layoutSequence(diagram) : diagram.kind === "state" ? layoutState(diagram, lang) : diagram.kind === "git" ? layoutGit(diagram) : diagram.kind === "time" ? layoutTime(diagram, lang) : diagram.kind === "tree" ? layoutTree(diagram) : layoutArchitecture(diagram);
|
|
11649
|
+
const layout = diagram.kind === "sequence" ? layoutSequence(diagram) : diagram.kind === "state" ? layoutState(diagram, lang) : diagram.kind === "git" ? layoutGit(diagram) : diagram.kind === "time" ? layoutTime(diagram, lang) : diagram.kind === "tree" ? layoutTree(diagram) : diagram.kind === "lineup" ? layoutLineup(diagram) : layoutArchitecture(diagram);
|
|
10076
11650
|
return renderLayout(diagram, layout, buildTimeline(diagram, options.still === true), options);
|
|
10077
11651
|
}
|
|
10078
11652
|
function renderLayout(diagram, layout, timeline, options = {}) {
|