@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/index.js
CHANGED
|
@@ -48,8 +48,10 @@ var ja = {
|
|
|
48
48
|
enum: (values) => `${values.join(" / ")} \u306E\u3069\u308C\u304B\u306B\u3059\u308B`,
|
|
49
49
|
type: (type) => TYPES_JA[type] ?? `${type} \u306B\u3059\u308B`,
|
|
50
50
|
minLength: (limit) => `${limit} \u5B57\u4EE5\u4E0A\u66F8\u304F`,
|
|
51
|
+
maxLength: (limit) => `${limit} \u5B57\u307E\u3067\u306B\u3059\u308B`,
|
|
51
52
|
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",
|
|
52
53
|
minItems: (limit) => `${limit} \u3064\u4EE5\u4E0A\u66F8\u304F`,
|
|
54
|
+
maxItems: (limit) => `${limit} \u3064\u307E\u3067\u306B\u3059\u308B`,
|
|
53
55
|
minimum: (limit) => `${limit} \u4EE5\u4E0A\u306B\u3059\u308B`,
|
|
54
56
|
const: (value2) => `${value2} \u306B\u3059\u308B`,
|
|
55
57
|
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",
|
|
@@ -70,8 +72,10 @@ var en = {
|
|
|
70
72
|
enum: (values) => `Use one of ${values.join(" / ")}`,
|
|
71
73
|
type: (type) => TYPES_EN[type] ?? `Use ${type}`,
|
|
72
74
|
minLength: (limit) => `Write at least ${plural(limit, "character")}`,
|
|
75
|
+
maxLength: (limit) => `Write at most ${plural(limit, "character")}`,
|
|
73
76
|
pattern: (forbidden) => forbidden ? `Cannot contain ${forbidden.space ? "spaces or " : ""}${forbidden.chars.join(" ")}` : "Contains characters that are not allowed",
|
|
74
77
|
minItems: (limit) => `Write at least ${plural(limit, "item")}`,
|
|
78
|
+
maxItems: (limit) => `Write at most ${plural(limit, "item")}`,
|
|
75
79
|
minimum: (limit) => `Use ${limit} or greater`,
|
|
76
80
|
const: (value2) => `Use ${value2}`,
|
|
77
81
|
not: (allowed) => allowed ? `The ${allowed.field} field is allowed only when kind is ${allowed.kind}` : "This combination of fields is not allowed",
|
|
@@ -95,7 +99,7 @@ function ucs2length(str) {
|
|
|
95
99
|
return length;
|
|
96
100
|
}
|
|
97
101
|
var validate_diagram_default = validate10;
|
|
98
|
-
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" } }};
|
|
102
|
+
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" } }};
|
|
99
103
|
function validate11(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
100
104
|
let vErrors = null;
|
|
101
105
|
let errors = 0;
|
|
@@ -200,34 +204,79 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
200
204
|
}
|
|
201
205
|
}
|
|
202
206
|
}
|
|
207
|
+
const _errs14 = errors;
|
|
208
|
+
const _errs15 = errors;
|
|
209
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
210
|
+
if (data2.type === void 0 && ("type")) {
|
|
211
|
+
const err6 = {};
|
|
212
|
+
if (vErrors === null) {
|
|
213
|
+
vErrors = [err6];
|
|
214
|
+
} else {
|
|
215
|
+
vErrors.push(err6);
|
|
216
|
+
}
|
|
217
|
+
errors++;
|
|
218
|
+
} else {
|
|
219
|
+
if (data2.type !== void 0) {
|
|
220
|
+
let data5 = data2.type;
|
|
221
|
+
if (!(data5 === "line" || data5 === "seal" || data5 === "open" || data5 === "pick" || data5 === "stamp")) {
|
|
222
|
+
const err7 = {};
|
|
223
|
+
if (vErrors === null) {
|
|
224
|
+
vErrors = [err7];
|
|
225
|
+
} else {
|
|
226
|
+
vErrors.push(err7);
|
|
227
|
+
}
|
|
228
|
+
errors++;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
var valid13 = _errs15 === errors;
|
|
234
|
+
if (valid13) {
|
|
235
|
+
const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notLineupEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
236
|
+
if (vErrors === null) {
|
|
237
|
+
vErrors = [err8];
|
|
238
|
+
} else {
|
|
239
|
+
vErrors.push(err8);
|
|
240
|
+
}
|
|
241
|
+
errors++;
|
|
242
|
+
} else {
|
|
243
|
+
errors = _errs14;
|
|
244
|
+
if (vErrors !== null) {
|
|
245
|
+
if (_errs14) {
|
|
246
|
+
vErrors.length = _errs14;
|
|
247
|
+
} else {
|
|
248
|
+
vErrors = null;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
203
252
|
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
204
253
|
if (data2.type !== void 0) {
|
|
205
|
-
let
|
|
206
|
-
const
|
|
207
|
-
const
|
|
208
|
-
if (!(
|
|
209
|
-
const
|
|
254
|
+
let data6 = data2.type;
|
|
255
|
+
const _errs18 = errors;
|
|
256
|
+
const _errs19 = errors;
|
|
257
|
+
if (!(data6 === "commit" || data6 === "branch")) {
|
|
258
|
+
const err9 = {};
|
|
210
259
|
if (vErrors === null) {
|
|
211
|
-
vErrors = [
|
|
260
|
+
vErrors = [err9];
|
|
212
261
|
} else {
|
|
213
|
-
vErrors.push(
|
|
262
|
+
vErrors.push(err9);
|
|
214
263
|
}
|
|
215
264
|
errors++;
|
|
216
265
|
}
|
|
217
|
-
var
|
|
218
|
-
if (
|
|
219
|
-
const
|
|
266
|
+
var valid16 = _errs19 === errors;
|
|
267
|
+
if (valid16) {
|
|
268
|
+
const err10 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
220
269
|
if (vErrors === null) {
|
|
221
|
-
vErrors = [
|
|
270
|
+
vErrors = [err10];
|
|
222
271
|
} else {
|
|
223
|
-
vErrors.push(
|
|
272
|
+
vErrors.push(err10);
|
|
224
273
|
}
|
|
225
274
|
errors++;
|
|
226
275
|
} else {
|
|
227
|
-
errors =
|
|
276
|
+
errors = _errs18;
|
|
228
277
|
if (vErrors !== null) {
|
|
229
|
-
if (
|
|
230
|
-
vErrors.length =
|
|
278
|
+
if (_errs18) {
|
|
279
|
+
vErrors.length = _errs18;
|
|
231
280
|
} else {
|
|
232
281
|
vErrors = null;
|
|
233
282
|
}
|
|
@@ -235,29 +284,29 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
235
284
|
}
|
|
236
285
|
}
|
|
237
286
|
if (data2.at !== void 0) {
|
|
238
|
-
const
|
|
287
|
+
const err11 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
239
288
|
if (vErrors === null) {
|
|
240
|
-
vErrors = [
|
|
289
|
+
vErrors = [err11];
|
|
241
290
|
} else {
|
|
242
|
-
vErrors.push(
|
|
291
|
+
vErrors.push(err11);
|
|
243
292
|
}
|
|
244
293
|
errors++;
|
|
245
294
|
}
|
|
246
295
|
if (data2.into !== void 0) {
|
|
247
|
-
const
|
|
296
|
+
const err12 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
248
297
|
if (vErrors === null) {
|
|
249
|
-
vErrors = [
|
|
298
|
+
vErrors = [err12];
|
|
250
299
|
} else {
|
|
251
|
-
vErrors.push(
|
|
300
|
+
vErrors.push(err12);
|
|
252
301
|
}
|
|
253
302
|
errors++;
|
|
254
303
|
}
|
|
255
304
|
if (data2.color !== void 0) {
|
|
256
|
-
const
|
|
305
|
+
const err13 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
257
306
|
if (vErrors === null) {
|
|
258
|
-
vErrors = [
|
|
307
|
+
vErrors = [err13];
|
|
259
308
|
} else {
|
|
260
|
-
vErrors.push(
|
|
309
|
+
vErrors.push(err13);
|
|
261
310
|
}
|
|
262
311
|
errors++;
|
|
263
312
|
}
|
|
@@ -392,31 +441,76 @@ function validate17(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
392
441
|
}
|
|
393
442
|
}
|
|
394
443
|
}
|
|
444
|
+
const _errs14 = errors;
|
|
445
|
+
const _errs15 = errors;
|
|
395
446
|
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
396
|
-
if (data2.
|
|
397
|
-
const err6 = {
|
|
447
|
+
if (data2.type === void 0 && ("type")) {
|
|
448
|
+
const err6 = {};
|
|
398
449
|
if (vErrors === null) {
|
|
399
450
|
vErrors = [err6];
|
|
400
451
|
} else {
|
|
401
452
|
vErrors.push(err6);
|
|
402
453
|
}
|
|
403
454
|
errors++;
|
|
455
|
+
} else {
|
|
456
|
+
if (data2.type !== void 0) {
|
|
457
|
+
let data5 = data2.type;
|
|
458
|
+
if (!(data5 === "line" || data5 === "seal" || data5 === "open" || data5 === "pick" || data5 === "stamp")) {
|
|
459
|
+
const err7 = {};
|
|
460
|
+
if (vErrors === null) {
|
|
461
|
+
vErrors = [err7];
|
|
462
|
+
} else {
|
|
463
|
+
vErrors.push(err7);
|
|
464
|
+
}
|
|
465
|
+
errors++;
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
var valid13 = _errs15 === errors;
|
|
471
|
+
if (valid13) {
|
|
472
|
+
const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notLineupEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
473
|
+
if (vErrors === null) {
|
|
474
|
+
vErrors = [err8];
|
|
475
|
+
} else {
|
|
476
|
+
vErrors.push(err8);
|
|
477
|
+
}
|
|
478
|
+
errors++;
|
|
479
|
+
} else {
|
|
480
|
+
errors = _errs14;
|
|
481
|
+
if (vErrors !== null) {
|
|
482
|
+
if (_errs14) {
|
|
483
|
+
vErrors.length = _errs14;
|
|
484
|
+
} else {
|
|
485
|
+
vErrors = null;
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
490
|
+
if (data2.at !== void 0) {
|
|
491
|
+
const err9 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
492
|
+
if (vErrors === null) {
|
|
493
|
+
vErrors = [err9];
|
|
494
|
+
} else {
|
|
495
|
+
vErrors.push(err9);
|
|
496
|
+
}
|
|
497
|
+
errors++;
|
|
404
498
|
}
|
|
405
499
|
if (data2.into !== void 0) {
|
|
406
|
-
const
|
|
500
|
+
const err10 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
407
501
|
if (vErrors === null) {
|
|
408
|
-
vErrors = [
|
|
502
|
+
vErrors = [err10];
|
|
409
503
|
} else {
|
|
410
|
-
vErrors.push(
|
|
504
|
+
vErrors.push(err10);
|
|
411
505
|
}
|
|
412
506
|
errors++;
|
|
413
507
|
}
|
|
414
508
|
if (data2.color !== void 0) {
|
|
415
|
-
const
|
|
509
|
+
const err11 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
416
510
|
if (vErrors === null) {
|
|
417
|
-
vErrors = [
|
|
511
|
+
vErrors = [err11];
|
|
418
512
|
} else {
|
|
419
|
-
vErrors.push(
|
|
513
|
+
vErrors.push(err11);
|
|
420
514
|
}
|
|
421
515
|
errors++;
|
|
422
516
|
}
|
|
@@ -489,34 +583,79 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
489
583
|
}
|
|
490
584
|
}
|
|
491
585
|
}
|
|
586
|
+
const _errs10 = errors;
|
|
587
|
+
const _errs11 = errors;
|
|
588
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
589
|
+
if (data2.type === void 0 && ("type")) {
|
|
590
|
+
const err3 = {};
|
|
591
|
+
if (vErrors === null) {
|
|
592
|
+
vErrors = [err3];
|
|
593
|
+
} else {
|
|
594
|
+
vErrors.push(err3);
|
|
595
|
+
}
|
|
596
|
+
errors++;
|
|
597
|
+
} else {
|
|
598
|
+
if (data2.type !== void 0) {
|
|
599
|
+
let data4 = data2.type;
|
|
600
|
+
if (!(data4 === "line" || data4 === "seal" || data4 === "open" || data4 === "pick" || data4 === "stamp")) {
|
|
601
|
+
const err4 = {};
|
|
602
|
+
if (vErrors === null) {
|
|
603
|
+
vErrors = [err4];
|
|
604
|
+
} else {
|
|
605
|
+
vErrors.push(err4);
|
|
606
|
+
}
|
|
607
|
+
errors++;
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
var valid10 = _errs11 === errors;
|
|
613
|
+
if (valid10) {
|
|
614
|
+
const err5 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notLineupEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
615
|
+
if (vErrors === null) {
|
|
616
|
+
vErrors = [err5];
|
|
617
|
+
} else {
|
|
618
|
+
vErrors.push(err5);
|
|
619
|
+
}
|
|
620
|
+
errors++;
|
|
621
|
+
} else {
|
|
622
|
+
errors = _errs10;
|
|
623
|
+
if (vErrors !== null) {
|
|
624
|
+
if (_errs10) {
|
|
625
|
+
vErrors.length = _errs10;
|
|
626
|
+
} else {
|
|
627
|
+
vErrors = null;
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
}
|
|
492
631
|
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
493
632
|
if (data2.type !== void 0) {
|
|
494
|
-
let
|
|
495
|
-
const
|
|
496
|
-
const
|
|
497
|
-
if (!(
|
|
498
|
-
const
|
|
633
|
+
let data5 = data2.type;
|
|
634
|
+
const _errs14 = errors;
|
|
635
|
+
const _errs15 = errors;
|
|
636
|
+
if (!(data5 === "commit" || data5 === "branch")) {
|
|
637
|
+
const err6 = {};
|
|
499
638
|
if (vErrors === null) {
|
|
500
|
-
vErrors = [
|
|
639
|
+
vErrors = [err6];
|
|
501
640
|
} else {
|
|
502
|
-
vErrors.push(
|
|
641
|
+
vErrors.push(err6);
|
|
503
642
|
}
|
|
504
643
|
errors++;
|
|
505
644
|
}
|
|
506
|
-
var
|
|
507
|
-
if (
|
|
508
|
-
const
|
|
645
|
+
var valid13 = _errs15 === errors;
|
|
646
|
+
if (valid13) {
|
|
647
|
+
const err7 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
509
648
|
if (vErrors === null) {
|
|
510
|
-
vErrors = [
|
|
649
|
+
vErrors = [err7];
|
|
511
650
|
} else {
|
|
512
|
-
vErrors.push(
|
|
651
|
+
vErrors.push(err7);
|
|
513
652
|
}
|
|
514
653
|
errors++;
|
|
515
654
|
} else {
|
|
516
|
-
errors =
|
|
655
|
+
errors = _errs14;
|
|
517
656
|
if (vErrors !== null) {
|
|
518
|
-
if (
|
|
519
|
-
vErrors.length =
|
|
657
|
+
if (_errs14) {
|
|
658
|
+
vErrors.length = _errs14;
|
|
520
659
|
} else {
|
|
521
660
|
vErrors = null;
|
|
522
661
|
}
|
|
@@ -592,34 +731,79 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
592
731
|
}
|
|
593
732
|
}
|
|
594
733
|
}
|
|
734
|
+
const _errs9 = errors;
|
|
735
|
+
const _errs10 = errors;
|
|
736
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
737
|
+
if (data2.type === void 0 && ("type")) {
|
|
738
|
+
const err3 = {};
|
|
739
|
+
if (vErrors === null) {
|
|
740
|
+
vErrors = [err3];
|
|
741
|
+
} else {
|
|
742
|
+
vErrors.push(err3);
|
|
743
|
+
}
|
|
744
|
+
errors++;
|
|
745
|
+
} else {
|
|
746
|
+
if (data2.type !== void 0) {
|
|
747
|
+
let data4 = data2.type;
|
|
748
|
+
if (!(data4 === "line" || data4 === "seal" || data4 === "open" || data4 === "pick" || data4 === "stamp")) {
|
|
749
|
+
const err4 = {};
|
|
750
|
+
if (vErrors === null) {
|
|
751
|
+
vErrors = [err4];
|
|
752
|
+
} else {
|
|
753
|
+
vErrors.push(err4);
|
|
754
|
+
}
|
|
755
|
+
errors++;
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
var valid10 = _errs10 === errors;
|
|
761
|
+
if (valid10) {
|
|
762
|
+
const err5 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notLineupEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
763
|
+
if (vErrors === null) {
|
|
764
|
+
vErrors = [err5];
|
|
765
|
+
} else {
|
|
766
|
+
vErrors.push(err5);
|
|
767
|
+
}
|
|
768
|
+
errors++;
|
|
769
|
+
} else {
|
|
770
|
+
errors = _errs9;
|
|
771
|
+
if (vErrors !== null) {
|
|
772
|
+
if (_errs9) {
|
|
773
|
+
vErrors.length = _errs9;
|
|
774
|
+
} else {
|
|
775
|
+
vErrors = null;
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
}
|
|
595
779
|
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
596
780
|
if (data2.type !== void 0) {
|
|
597
|
-
let
|
|
598
|
-
const
|
|
599
|
-
const
|
|
600
|
-
if (!(
|
|
601
|
-
const
|
|
781
|
+
let data5 = data2.type;
|
|
782
|
+
const _errs13 = errors;
|
|
783
|
+
const _errs14 = errors;
|
|
784
|
+
if (!(data5 === "commit" || data5 === "branch")) {
|
|
785
|
+
const err6 = {};
|
|
602
786
|
if (vErrors === null) {
|
|
603
|
-
vErrors = [
|
|
787
|
+
vErrors = [err6];
|
|
604
788
|
} else {
|
|
605
|
-
vErrors.push(
|
|
789
|
+
vErrors.push(err6);
|
|
606
790
|
}
|
|
607
791
|
errors++;
|
|
608
792
|
}
|
|
609
|
-
var
|
|
610
|
-
if (
|
|
611
|
-
const
|
|
793
|
+
var valid13 = _errs14 === errors;
|
|
794
|
+
if (valid13) {
|
|
795
|
+
const err7 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
612
796
|
if (vErrors === null) {
|
|
613
|
-
vErrors = [
|
|
797
|
+
vErrors = [err7];
|
|
614
798
|
} else {
|
|
615
|
-
vErrors.push(
|
|
799
|
+
vErrors.push(err7);
|
|
616
800
|
}
|
|
617
801
|
errors++;
|
|
618
802
|
} else {
|
|
619
|
-
errors =
|
|
803
|
+
errors = _errs13;
|
|
620
804
|
if (vErrors !== null) {
|
|
621
|
-
if (
|
|
622
|
-
vErrors.length =
|
|
805
|
+
if (_errs13) {
|
|
806
|
+
vErrors.length = _errs13;
|
|
623
807
|
} else {
|
|
624
808
|
vErrors = null;
|
|
625
809
|
}
|
|
@@ -627,29 +811,29 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
627
811
|
}
|
|
628
812
|
}
|
|
629
813
|
if (data2.at !== void 0) {
|
|
630
|
-
const
|
|
814
|
+
const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
631
815
|
if (vErrors === null) {
|
|
632
|
-
vErrors = [
|
|
816
|
+
vErrors = [err8];
|
|
633
817
|
} else {
|
|
634
|
-
vErrors.push(
|
|
818
|
+
vErrors.push(err8);
|
|
635
819
|
}
|
|
636
820
|
errors++;
|
|
637
821
|
}
|
|
638
822
|
if (data2.into !== void 0) {
|
|
639
|
-
const
|
|
823
|
+
const err9 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
640
824
|
if (vErrors === null) {
|
|
641
|
-
vErrors = [
|
|
825
|
+
vErrors = [err9];
|
|
642
826
|
} else {
|
|
643
|
-
vErrors.push(
|
|
827
|
+
vErrors.push(err9);
|
|
644
828
|
}
|
|
645
829
|
errors++;
|
|
646
830
|
}
|
|
647
831
|
if (data2.color !== void 0) {
|
|
648
|
-
const
|
|
832
|
+
const err10 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
649
833
|
if (vErrors === null) {
|
|
650
|
-
vErrors = [
|
|
834
|
+
vErrors = [err10];
|
|
651
835
|
} else {
|
|
652
|
-
vErrors.push(
|
|
836
|
+
vErrors.push(err10);
|
|
653
837
|
}
|
|
654
838
|
errors++;
|
|
655
839
|
}
|
|
@@ -663,67 +847,269 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
663
847
|
validate22.errors = vErrors;
|
|
664
848
|
return errors === 0;
|
|
665
849
|
}
|
|
666
|
-
|
|
667
|
-
var pattern0 = new RegExp("^[^\\s\\[\\]\u300C\u300D=:]+$", "u");
|
|
668
|
-
var func3 = ucs2length;
|
|
669
|
-
function validate27(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
850
|
+
function validate25(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
670
851
|
let vErrors = null;
|
|
671
852
|
let errors = 0;
|
|
672
|
-
if (
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
853
|
+
if (Array.isArray(data)) {
|
|
854
|
+
const len0 = data.length;
|
|
855
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
856
|
+
let data0 = data[i0];
|
|
857
|
+
if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
|
|
858
|
+
if (data0.events !== void 0) {
|
|
859
|
+
let data1 = data0.events;
|
|
860
|
+
if (Array.isArray(data1)) {
|
|
861
|
+
const len1 = data1.length;
|
|
862
|
+
for (let i1 = 0; i1 < len1; i1++) {
|
|
863
|
+
let data2 = data1[i1];
|
|
864
|
+
const _errs3 = errors;
|
|
865
|
+
const _errs4 = errors;
|
|
866
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
867
|
+
if (data2.type === void 0 && ("type")) {
|
|
868
|
+
const err0 = {};
|
|
869
|
+
if (vErrors === null) {
|
|
870
|
+
vErrors = [err0];
|
|
871
|
+
} else {
|
|
872
|
+
vErrors.push(err0);
|
|
873
|
+
}
|
|
874
|
+
errors++;
|
|
875
|
+
} else {
|
|
876
|
+
if (data2.type !== void 0) {
|
|
877
|
+
let data3 = data2.type;
|
|
878
|
+
if (!(data3 === "now" || data3 === "mark" || data3 === "span")) {
|
|
879
|
+
const err1 = {};
|
|
880
|
+
if (vErrors === null) {
|
|
881
|
+
vErrors = [err1];
|
|
882
|
+
} else {
|
|
883
|
+
vErrors.push(err1);
|
|
884
|
+
}
|
|
885
|
+
errors++;
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
var valid5 = _errs4 === errors;
|
|
891
|
+
if (valid5) {
|
|
892
|
+
const err2 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/items/properties/events/items/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
893
|
+
if (vErrors === null) {
|
|
894
|
+
vErrors = [err2];
|
|
895
|
+
} else {
|
|
896
|
+
vErrors.push(err2);
|
|
897
|
+
}
|
|
898
|
+
errors++;
|
|
899
|
+
} else {
|
|
900
|
+
errors = _errs3;
|
|
901
|
+
if (vErrors !== null) {
|
|
902
|
+
if (_errs3) {
|
|
903
|
+
vErrors.length = _errs3;
|
|
904
|
+
} else {
|
|
905
|
+
vErrors = null;
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
const _errs8 = errors;
|
|
910
|
+
const _errs9 = errors;
|
|
911
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
912
|
+
if (data2.type === void 0 && ("type")) {
|
|
913
|
+
const err3 = {};
|
|
914
|
+
if (vErrors === null) {
|
|
915
|
+
vErrors = [err3];
|
|
916
|
+
} else {
|
|
917
|
+
vErrors.push(err3);
|
|
918
|
+
}
|
|
919
|
+
errors++;
|
|
920
|
+
} else {
|
|
921
|
+
if (data2.type !== void 0) {
|
|
922
|
+
let data4 = data2.type;
|
|
923
|
+
if (!(data4 === "leaf" || data4 === "node")) {
|
|
924
|
+
const err4 = {};
|
|
925
|
+
if (vErrors === null) {
|
|
926
|
+
vErrors = [err4];
|
|
927
|
+
} else {
|
|
928
|
+
vErrors.push(err4);
|
|
929
|
+
}
|
|
930
|
+
errors++;
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
var valid9 = _errs9 === errors;
|
|
936
|
+
if (valid9) {
|
|
937
|
+
const err5 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/items/properties/events/items/allOf/0/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
938
|
+
if (vErrors === null) {
|
|
939
|
+
vErrors = [err5];
|
|
940
|
+
} else {
|
|
941
|
+
vErrors.push(err5);
|
|
942
|
+
}
|
|
943
|
+
errors++;
|
|
944
|
+
} else {
|
|
945
|
+
errors = _errs8;
|
|
946
|
+
if (vErrors !== null) {
|
|
947
|
+
if (_errs8) {
|
|
948
|
+
vErrors.length = _errs8;
|
|
949
|
+
} else {
|
|
950
|
+
vErrors = null;
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
const _errs14 = errors;
|
|
955
|
+
const _errs15 = errors;
|
|
956
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
957
|
+
if (data2.type === void 0 && ("type")) {
|
|
958
|
+
const err6 = {};
|
|
959
|
+
if (vErrors === null) {
|
|
960
|
+
vErrors = [err6];
|
|
961
|
+
} else {
|
|
962
|
+
vErrors.push(err6);
|
|
963
|
+
}
|
|
964
|
+
errors++;
|
|
965
|
+
} else {
|
|
966
|
+
if (data2.type !== void 0) {
|
|
967
|
+
let data5 = data2.type;
|
|
968
|
+
if (!(data5 === "edge" || data5 === "action")) {
|
|
969
|
+
const err7 = {};
|
|
970
|
+
if (vErrors === null) {
|
|
971
|
+
vErrors = [err7];
|
|
972
|
+
} else {
|
|
973
|
+
vErrors.push(err7);
|
|
974
|
+
}
|
|
975
|
+
errors++;
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
var valid13 = _errs15 === errors;
|
|
981
|
+
if (valid13) {
|
|
982
|
+
const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notWiredEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
983
|
+
if (vErrors === null) {
|
|
984
|
+
vErrors = [err8];
|
|
985
|
+
} else {
|
|
986
|
+
vErrors.push(err8);
|
|
987
|
+
}
|
|
988
|
+
errors++;
|
|
989
|
+
} else {
|
|
990
|
+
errors = _errs14;
|
|
991
|
+
if (vErrors !== null) {
|
|
992
|
+
if (_errs14) {
|
|
993
|
+
vErrors.length = _errs14;
|
|
994
|
+
} else {
|
|
995
|
+
vErrors = null;
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
1000
|
+
if (data2.type !== void 0) {
|
|
1001
|
+
let data6 = data2.type;
|
|
1002
|
+
const _errs18 = errors;
|
|
1003
|
+
const _errs19 = errors;
|
|
1004
|
+
if (!(data6 === "commit" || data6 === "branch")) {
|
|
1005
|
+
const err9 = {};
|
|
1006
|
+
if (vErrors === null) {
|
|
1007
|
+
vErrors = [err9];
|
|
1008
|
+
} else {
|
|
1009
|
+
vErrors.push(err9);
|
|
1010
|
+
}
|
|
1011
|
+
errors++;
|
|
1012
|
+
}
|
|
1013
|
+
var valid16 = _errs19 === errors;
|
|
1014
|
+
if (valid16) {
|
|
1015
|
+
const err10 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
1016
|
+
if (vErrors === null) {
|
|
1017
|
+
vErrors = [err10];
|
|
1018
|
+
} else {
|
|
1019
|
+
vErrors.push(err10);
|
|
1020
|
+
}
|
|
1021
|
+
errors++;
|
|
1022
|
+
} else {
|
|
1023
|
+
errors = _errs18;
|
|
1024
|
+
if (vErrors !== null) {
|
|
1025
|
+
if (_errs18) {
|
|
1026
|
+
vErrors.length = _errs18;
|
|
1027
|
+
} else {
|
|
1028
|
+
vErrors = null;
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
if (data2.color !== void 0) {
|
|
1034
|
+
const err11 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
1035
|
+
if (vErrors === null) {
|
|
1036
|
+
vErrors = [err11];
|
|
1037
|
+
} else {
|
|
1038
|
+
vErrors.push(err11);
|
|
1039
|
+
}
|
|
1040
|
+
errors++;
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
validate25.errors = vErrors;
|
|
1050
|
+
return errors === 0;
|
|
1051
|
+
}
|
|
1052
|
+
var schema79 = { "enum": ["blue", "amber", "green", "violet", "rose", "slate", "coin"] };
|
|
1053
|
+
var pattern0 = new RegExp("^[^\\s\\[\\]\u300C\u300D=:]+$", "u");
|
|
1054
|
+
var func3 = ucs2length;
|
|
1055
|
+
function validate30(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1056
|
+
let vErrors = null;
|
|
1057
|
+
let errors = 0;
|
|
1058
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
1059
|
+
if (data.id === void 0) {
|
|
1060
|
+
const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "id" }, message: "must have required property 'id'" };
|
|
1061
|
+
if (vErrors === null) {
|
|
1062
|
+
vErrors = [err0];
|
|
1063
|
+
} else {
|
|
1064
|
+
vErrors.push(err0);
|
|
1065
|
+
}
|
|
1066
|
+
errors++;
|
|
1067
|
+
}
|
|
1068
|
+
if (data.name === void 0) {
|
|
1069
|
+
const err1 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "name" }, message: "must have required property 'name'" };
|
|
1070
|
+
if (vErrors === null) {
|
|
1071
|
+
vErrors = [err1];
|
|
1072
|
+
} else {
|
|
1073
|
+
vErrors.push(err1);
|
|
1074
|
+
}
|
|
1075
|
+
errors++;
|
|
1076
|
+
}
|
|
1077
|
+
for (const key0 in data) {
|
|
1078
|
+
if (!(key0 === "id" || key0 === "name" || key0 === "note" || key0 === "color" || key0 === "icon")) {
|
|
1079
|
+
const err2 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
1080
|
+
if (vErrors === null) {
|
|
1081
|
+
vErrors = [err2];
|
|
1082
|
+
} else {
|
|
1083
|
+
vErrors.push(err2);
|
|
1084
|
+
}
|
|
1085
|
+
errors++;
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
if (data.id !== void 0) {
|
|
1089
|
+
let data0 = data.id;
|
|
1090
|
+
if (typeof data0 === "string") {
|
|
1091
|
+
if (!pattern0.test(data0)) {
|
|
1092
|
+
const err3 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
1093
|
+
if (vErrors === null) {
|
|
1094
|
+
vErrors = [err3];
|
|
1095
|
+
} else {
|
|
1096
|
+
vErrors.push(err3);
|
|
1097
|
+
}
|
|
1098
|
+
errors++;
|
|
1099
|
+
}
|
|
1100
|
+
} else {
|
|
1101
|
+
const err4 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1102
|
+
if (vErrors === null) {
|
|
1103
|
+
vErrors = [err4];
|
|
1104
|
+
} else {
|
|
1105
|
+
vErrors.push(err4);
|
|
1106
|
+
}
|
|
1107
|
+
errors++;
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
if (data.name !== void 0) {
|
|
1111
|
+
let data1 = data.name;
|
|
1112
|
+
if (typeof data1 === "string") {
|
|
727
1113
|
if (func3(data1) < 1) {
|
|
728
1114
|
const err5 = { instancePath: instancePath + "/name", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
729
1115
|
if (vErrors === null) {
|
|
@@ -768,7 +1154,7 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
768
1154
|
if (data.color !== void 0) {
|
|
769
1155
|
let data3 = data.color;
|
|
770
1156
|
if (!(data3 === "blue" || data3 === "amber" || data3 === "green" || data3 === "violet" || data3 === "rose" || data3 === "slate" || data3 === "coin")) {
|
|
771
|
-
const err9 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues:
|
|
1157
|
+
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" };
|
|
772
1158
|
if (vErrors === null) {
|
|
773
1159
|
vErrors = [err9];
|
|
774
1160
|
} else {
|
|
@@ -808,11 +1194,11 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
808
1194
|
}
|
|
809
1195
|
errors++;
|
|
810
1196
|
}
|
|
811
|
-
|
|
1197
|
+
validate30.errors = vErrors;
|
|
812
1198
|
return errors === 0;
|
|
813
1199
|
}
|
|
814
1200
|
var pattern3 = new RegExp("^(/|https?://)", "u");
|
|
815
|
-
function
|
|
1201
|
+
function validate32(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
816
1202
|
let vErrors = null;
|
|
817
1203
|
let errors = 0;
|
|
818
1204
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -914,7 +1300,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
914
1300
|
if (data.color !== void 0) {
|
|
915
1301
|
let data3 = data.color;
|
|
916
1302
|
if (!(data3 === "blue" || data3 === "amber" || data3 === "green" || data3 === "violet" || data3 === "rose" || data3 === "slate" || data3 === "coin")) {
|
|
917
|
-
const err9 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues:
|
|
1303
|
+
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" };
|
|
918
1304
|
if (vErrors === null) {
|
|
919
1305
|
vErrors = [err9];
|
|
920
1306
|
} else {
|
|
@@ -998,11 +1384,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
998
1384
|
}
|
|
999
1385
|
errors++;
|
|
1000
1386
|
}
|
|
1001
|
-
|
|
1387
|
+
validate32.errors = vErrors;
|
|
1002
1388
|
return errors === 0;
|
|
1003
1389
|
}
|
|
1004
1390
|
var pattern4 = new RegExp("^([0-9]+/[0-9]+|[0-9]+(\\.[0-9]+)?%)$", "u");
|
|
1005
|
-
function
|
|
1391
|
+
function validate35(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1006
1392
|
let vErrors = null;
|
|
1007
1393
|
let errors = 0;
|
|
1008
1394
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -1088,10 +1474,10 @@ function validate32(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1088
1474
|
}
|
|
1089
1475
|
errors++;
|
|
1090
1476
|
}
|
|
1091
|
-
|
|
1477
|
+
validate35.errors = vErrors;
|
|
1092
1478
|
return errors === 0;
|
|
1093
1479
|
}
|
|
1094
|
-
function
|
|
1480
|
+
function validate34(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1095
1481
|
let vErrors = null;
|
|
1096
1482
|
let errors = 0;
|
|
1097
1483
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -1205,8 +1591,8 @@ function validate31(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1205
1591
|
}
|
|
1206
1592
|
const len1 = data3.length;
|
|
1207
1593
|
for (let i1 = 0; i1 < len1; i1++) {
|
|
1208
|
-
if (!
|
|
1209
|
-
vErrors = vErrors === null ?
|
|
1594
|
+
if (!validate35(data3[i1], { instancePath: instancePath + "/meters/" + i1, parentData: data3, parentDataProperty: i1, rootData })) {
|
|
1595
|
+
vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
|
|
1210
1596
|
errors = vErrors.length;
|
|
1211
1597
|
}
|
|
1212
1598
|
}
|
|
@@ -1229,10 +1615,10 @@ function validate31(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1229
1615
|
}
|
|
1230
1616
|
errors++;
|
|
1231
1617
|
}
|
|
1232
|
-
|
|
1618
|
+
validate34.errors = vErrors;
|
|
1233
1619
|
return errors === 0;
|
|
1234
1620
|
}
|
|
1235
|
-
function
|
|
1621
|
+
function validate39(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1236
1622
|
let vErrors = null;
|
|
1237
1623
|
let errors = 0;
|
|
1238
1624
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -1318,13 +1704,13 @@ function validate36(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1318
1704
|
}
|
|
1319
1705
|
errors++;
|
|
1320
1706
|
}
|
|
1321
|
-
|
|
1707
|
+
validate39.errors = vErrors;
|
|
1322
1708
|
return errors === 0;
|
|
1323
1709
|
}
|
|
1324
|
-
var
|
|
1710
|
+
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" } } }] };
|
|
1325
1711
|
var pattern14 = new RegExp("^[0-9a-f]{4,40}$", "u");
|
|
1326
|
-
var
|
|
1327
|
-
function
|
|
1712
|
+
var schema106 = { "properties": { "kind": { "enum": ["envelope", "tag", "coin", "none"] }}};
|
|
1713
|
+
function validate42(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1328
1714
|
let vErrors = null;
|
|
1329
1715
|
let errors = 0;
|
|
1330
1716
|
const _errs1 = errors;
|
|
@@ -1450,7 +1836,7 @@ function validate39(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1450
1836
|
if (data.kind !== void 0) {
|
|
1451
1837
|
let data1 = data.kind;
|
|
1452
1838
|
if (!(data1 === "envelope" || data1 === "tag" || data1 === "coin" || data1 === "none")) {
|
|
1453
|
-
const err8 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues:
|
|
1839
|
+
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" };
|
|
1454
1840
|
if (vErrors === null) {
|
|
1455
1841
|
vErrors = [err8];
|
|
1456
1842
|
} else {
|
|
@@ -1490,10 +1876,10 @@ function validate39(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1490
1876
|
}
|
|
1491
1877
|
errors++;
|
|
1492
1878
|
}
|
|
1493
|
-
|
|
1879
|
+
validate42.errors = vErrors;
|
|
1494
1880
|
return errors === 0;
|
|
1495
1881
|
}
|
|
1496
|
-
function
|
|
1882
|
+
function validate41(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
1497
1883
|
let vErrors = null;
|
|
1498
1884
|
let errors = 0;
|
|
1499
1885
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -1635,15 +2021,15 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1635
2021
|
}
|
|
1636
2022
|
}
|
|
1637
2023
|
if (data.carry !== void 0) {
|
|
1638
|
-
if (!
|
|
1639
|
-
vErrors = vErrors === null ?
|
|
2024
|
+
if (!validate42(data.carry, { instancePath: instancePath + "/carry", parentData: data, parentDataProperty: "carry", rootData })) {
|
|
2025
|
+
vErrors = vErrors === null ? validate42.errors : vErrors.concat(validate42.errors);
|
|
1640
2026
|
errors = vErrors.length;
|
|
1641
2027
|
}
|
|
1642
2028
|
}
|
|
1643
2029
|
if (data.labelSide !== void 0) {
|
|
1644
2030
|
let data5 = data.labelSide;
|
|
1645
2031
|
if (!(data5 === "above" || data5 === "below" || data5 === "left" || data5 === "right")) {
|
|
1646
|
-
const err13 = { instancePath: instancePath + "/labelSide", schemaPath: "#/oneOf/0/properties/labelSide/enum", keyword: "enum", params: { allowedValues:
|
|
2032
|
+
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" };
|
|
1647
2033
|
if (vErrors === null) {
|
|
1648
2034
|
vErrors = [err13];
|
|
1649
2035
|
} else {
|
|
@@ -1909,7 +2295,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1909
2295
|
if (data.color !== void 0) {
|
|
1910
2296
|
let data14 = data.color;
|
|
1911
2297
|
if (!(data14 === "blue" || data14 === "amber" || data14 === "green" || data14 === "violet" || data14 === "rose" || data14 === "slate" || data14 === "coin")) {
|
|
1912
|
-
const err38 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues:
|
|
2298
|
+
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" };
|
|
1913
2299
|
if (vErrors === null) {
|
|
1914
2300
|
vErrors = [err38];
|
|
1915
2301
|
} else {
|
|
@@ -2437,7 +2823,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2437
2823
|
if (data.color !== void 0) {
|
|
2438
2824
|
let data31 = data.color;
|
|
2439
2825
|
if (!(data31 === "blue" || data31 === "amber" || data31 === "green" || data31 === "violet" || data31 === "rose" || data31 === "slate" || data31 === "coin")) {
|
|
2440
|
-
const err88 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues:
|
|
2826
|
+
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" };
|
|
2441
2827
|
if (vErrors === null) {
|
|
2442
2828
|
vErrors = [err88];
|
|
2443
2829
|
} else {
|
|
@@ -2585,7 +2971,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2585
2971
|
}
|
|
2586
2972
|
if (data.shape !== void 0) {
|
|
2587
2973
|
if (!(data.shape === "box")) {
|
|
2588
|
-
const err102 = { instancePath: instancePath + "/shape", schemaPath: "#/oneOf/7/properties/shape/enum", keyword: "enum", params: { allowedValues:
|
|
2974
|
+
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" };
|
|
2589
2975
|
if (vErrors === null) {
|
|
2590
2976
|
vErrors = [err102];
|
|
2591
2977
|
} else {
|
|
@@ -2597,7 +2983,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2597
2983
|
if (data.color !== void 0) {
|
|
2598
2984
|
let data37 = data.color;
|
|
2599
2985
|
if (!(data37 === "blue" || data37 === "amber" || data37 === "green" || data37 === "violet" || data37 === "rose" || data37 === "slate" || data37 === "coin")) {
|
|
2600
|
-
const err103 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues:
|
|
2986
|
+
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" };
|
|
2601
2987
|
if (vErrors === null) {
|
|
2602
2988
|
vErrors = [err103];
|
|
2603
2989
|
} else {
|
|
@@ -2859,13 +3245,10 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2859
3245
|
}
|
|
2860
3246
|
errors++;
|
|
2861
3247
|
}
|
|
2862
|
-
} else if (tag0 === "
|
|
2863
|
-
const _errs142 = errors;
|
|
2864
|
-
let valid56 = false;
|
|
2865
|
-
const _errs143 = errors;
|
|
3248
|
+
} else if (tag0 === "line") {
|
|
2866
3249
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
2867
|
-
if (data.
|
|
2868
|
-
const err128 = { instancePath, schemaPath: "#/oneOf/10/
|
|
3250
|
+
if (data.type === void 0) {
|
|
3251
|
+
const err128 = { instancePath, schemaPath: "#/oneOf/10/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
2869
3252
|
if (vErrors === null) {
|
|
2870
3253
|
vErrors = [err128];
|
|
2871
3254
|
} else {
|
|
@@ -2873,38 +3256,500 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2873
3256
|
}
|
|
2874
3257
|
errors++;
|
|
2875
3258
|
}
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
3259
|
+
if (data.box === void 0) {
|
|
3260
|
+
const err129 = { instancePath, schemaPath: "#/oneOf/10/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
|
|
3261
|
+
if (vErrors === null) {
|
|
3262
|
+
vErrors = [err129];
|
|
3263
|
+
} else {
|
|
3264
|
+
vErrors.push(err129);
|
|
3265
|
+
}
|
|
3266
|
+
errors++;
|
|
3267
|
+
}
|
|
3268
|
+
if (data.items === void 0) {
|
|
3269
|
+
const err130 = { instancePath, schemaPath: "#/oneOf/10/required", keyword: "required", params: { missingProperty: "items" }, message: "must have required property 'items'" };
|
|
3270
|
+
if (vErrors === null) {
|
|
3271
|
+
vErrors = [err130];
|
|
3272
|
+
} else {
|
|
3273
|
+
vErrors.push(err130);
|
|
3274
|
+
}
|
|
3275
|
+
errors++;
|
|
3276
|
+
}
|
|
3277
|
+
for (const key10 in data) {
|
|
3278
|
+
if (!(key10 === "type" || key10 === "box" || key10 === "items")) {
|
|
3279
|
+
const err131 = { instancePath, schemaPath: "#/oneOf/10/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key10 }, message: "must NOT have additional properties" };
|
|
2884
3280
|
if (vErrors === null) {
|
|
2885
|
-
vErrors = [
|
|
3281
|
+
vErrors = [err131];
|
|
2886
3282
|
} else {
|
|
2887
|
-
vErrors.push(
|
|
3283
|
+
vErrors.push(err131);
|
|
2888
3284
|
}
|
|
2889
3285
|
errors++;
|
|
2890
3286
|
}
|
|
2891
3287
|
}
|
|
2892
|
-
|
|
2893
|
-
|
|
3288
|
+
if (data.type !== void 0) {
|
|
3289
|
+
if ("line" !== data.type) {
|
|
3290
|
+
const err132 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/10/properties/type/const", keyword: "const", params: { allowedValue: "line" }, message: "must be equal to constant" };
|
|
3291
|
+
if (vErrors === null) {
|
|
3292
|
+
vErrors = [err132];
|
|
3293
|
+
} else {
|
|
3294
|
+
vErrors.push(err132);
|
|
3295
|
+
}
|
|
3296
|
+
errors++;
|
|
3297
|
+
}
|
|
3298
|
+
}
|
|
3299
|
+
if (data.box !== void 0) {
|
|
3300
|
+
let data47 = data.box;
|
|
3301
|
+
if (typeof data47 === "string") {
|
|
3302
|
+
if (!pattern0.test(data47)) {
|
|
3303
|
+
const err133 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
3304
|
+
if (vErrors === null) {
|
|
3305
|
+
vErrors = [err133];
|
|
3306
|
+
} else {
|
|
3307
|
+
vErrors.push(err133);
|
|
3308
|
+
}
|
|
3309
|
+
errors++;
|
|
3310
|
+
}
|
|
3311
|
+
} else {
|
|
3312
|
+
const err134 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3313
|
+
if (vErrors === null) {
|
|
3314
|
+
vErrors = [err134];
|
|
3315
|
+
} else {
|
|
3316
|
+
vErrors.push(err134);
|
|
3317
|
+
}
|
|
3318
|
+
errors++;
|
|
3319
|
+
}
|
|
3320
|
+
}
|
|
3321
|
+
if (data.items !== void 0) {
|
|
3322
|
+
let data48 = data.items;
|
|
3323
|
+
if (Array.isArray(data48)) {
|
|
3324
|
+
if (data48.length > 12) {
|
|
3325
|
+
const err135 = { instancePath: instancePath + "/items", schemaPath: "#/oneOf/10/properties/items/maxItems", keyword: "maxItems", params: { limit: 12 }, message: "must NOT have more than 12 items" };
|
|
3326
|
+
if (vErrors === null) {
|
|
3327
|
+
vErrors = [err135];
|
|
3328
|
+
} else {
|
|
3329
|
+
vErrors.push(err135);
|
|
3330
|
+
}
|
|
3331
|
+
errors++;
|
|
3332
|
+
}
|
|
3333
|
+
if (data48.length < 1) {
|
|
3334
|
+
const err136 = { instancePath: instancePath + "/items", schemaPath: "#/oneOf/10/properties/items/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
3335
|
+
if (vErrors === null) {
|
|
3336
|
+
vErrors = [err136];
|
|
3337
|
+
} else {
|
|
3338
|
+
vErrors.push(err136);
|
|
3339
|
+
}
|
|
3340
|
+
errors++;
|
|
3341
|
+
}
|
|
3342
|
+
const len1 = data48.length;
|
|
3343
|
+
for (let i1 = 0; i1 < len1; i1++) {
|
|
3344
|
+
let data49 = data48[i1];
|
|
3345
|
+
if (typeof data49 === "string") {
|
|
3346
|
+
if (!pattern0.test(data49)) {
|
|
3347
|
+
const err137 = { instancePath: instancePath + "/items/" + i1, schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
3348
|
+
if (vErrors === null) {
|
|
3349
|
+
vErrors = [err137];
|
|
3350
|
+
} else {
|
|
3351
|
+
vErrors.push(err137);
|
|
3352
|
+
}
|
|
3353
|
+
errors++;
|
|
3354
|
+
}
|
|
3355
|
+
} else {
|
|
3356
|
+
const err138 = { instancePath: instancePath + "/items/" + i1, schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3357
|
+
if (vErrors === null) {
|
|
3358
|
+
vErrors = [err138];
|
|
3359
|
+
} else {
|
|
3360
|
+
vErrors.push(err138);
|
|
3361
|
+
}
|
|
3362
|
+
errors++;
|
|
3363
|
+
}
|
|
3364
|
+
}
|
|
3365
|
+
} else {
|
|
3366
|
+
const err139 = { instancePath: instancePath + "/items", schemaPath: "#/oneOf/10/properties/items/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
3367
|
+
if (vErrors === null) {
|
|
3368
|
+
vErrors = [err139];
|
|
3369
|
+
} else {
|
|
3370
|
+
vErrors.push(err139);
|
|
3371
|
+
}
|
|
3372
|
+
errors++;
|
|
3373
|
+
}
|
|
3374
|
+
}
|
|
3375
|
+
} else {
|
|
3376
|
+
const err140 = { instancePath, schemaPath: "#/oneOf/10/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
3377
|
+
if (vErrors === null) {
|
|
3378
|
+
vErrors = [err140];
|
|
3379
|
+
} else {
|
|
3380
|
+
vErrors.push(err140);
|
|
3381
|
+
}
|
|
3382
|
+
errors++;
|
|
2894
3383
|
}
|
|
2895
|
-
|
|
2896
|
-
|
|
3384
|
+
} else if (tag0 === "seal") {
|
|
3385
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3386
|
+
if (data.type === void 0) {
|
|
3387
|
+
const err141 = { instancePath, schemaPath: "#/oneOf/11/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
3388
|
+
if (vErrors === null) {
|
|
3389
|
+
vErrors = [err141];
|
|
3390
|
+
} else {
|
|
3391
|
+
vErrors.push(err141);
|
|
3392
|
+
}
|
|
3393
|
+
errors++;
|
|
3394
|
+
}
|
|
3395
|
+
if (data.box === void 0) {
|
|
3396
|
+
const err142 = { instancePath, schemaPath: "#/oneOf/11/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
|
|
3397
|
+
if (vErrors === null) {
|
|
3398
|
+
vErrors = [err142];
|
|
3399
|
+
} else {
|
|
3400
|
+
vErrors.push(err142);
|
|
3401
|
+
}
|
|
3402
|
+
errors++;
|
|
3403
|
+
}
|
|
3404
|
+
for (const key11 in data) {
|
|
3405
|
+
if (!(key11 === "type" || key11 === "box")) {
|
|
3406
|
+
const err143 = { instancePath, schemaPath: "#/oneOf/11/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key11 }, message: "must NOT have additional properties" };
|
|
3407
|
+
if (vErrors === null) {
|
|
3408
|
+
vErrors = [err143];
|
|
3409
|
+
} else {
|
|
3410
|
+
vErrors.push(err143);
|
|
3411
|
+
}
|
|
3412
|
+
errors++;
|
|
3413
|
+
}
|
|
3414
|
+
}
|
|
3415
|
+
if (data.type !== void 0) {
|
|
3416
|
+
if ("seal" !== data.type) {
|
|
3417
|
+
const err144 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/11/properties/type/const", keyword: "const", params: { allowedValue: "seal" }, message: "must be equal to constant" };
|
|
3418
|
+
if (vErrors === null) {
|
|
3419
|
+
vErrors = [err144];
|
|
3420
|
+
} else {
|
|
3421
|
+
vErrors.push(err144);
|
|
3422
|
+
}
|
|
3423
|
+
errors++;
|
|
3424
|
+
}
|
|
3425
|
+
}
|
|
3426
|
+
if (data.box !== void 0) {
|
|
3427
|
+
let data51 = data.box;
|
|
3428
|
+
if (typeof data51 === "string") {
|
|
3429
|
+
if (!pattern0.test(data51)) {
|
|
3430
|
+
const err145 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
3431
|
+
if (vErrors === null) {
|
|
3432
|
+
vErrors = [err145];
|
|
3433
|
+
} else {
|
|
3434
|
+
vErrors.push(err145);
|
|
3435
|
+
}
|
|
3436
|
+
errors++;
|
|
3437
|
+
}
|
|
3438
|
+
} else {
|
|
3439
|
+
const err146 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3440
|
+
if (vErrors === null) {
|
|
3441
|
+
vErrors = [err146];
|
|
3442
|
+
} else {
|
|
3443
|
+
vErrors.push(err146);
|
|
3444
|
+
}
|
|
3445
|
+
errors++;
|
|
3446
|
+
}
|
|
3447
|
+
}
|
|
3448
|
+
} else {
|
|
3449
|
+
const err147 = { instancePath, schemaPath: "#/oneOf/11/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
2897
3450
|
if (vErrors === null) {
|
|
2898
|
-
vErrors = [
|
|
3451
|
+
vErrors = [err147];
|
|
2899
3452
|
} else {
|
|
2900
|
-
vErrors.push(
|
|
3453
|
+
vErrors.push(err147);
|
|
2901
3454
|
}
|
|
2902
3455
|
errors++;
|
|
3456
|
+
}
|
|
3457
|
+
} else if (tag0 === "open") {
|
|
3458
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3459
|
+
if (data.type === void 0) {
|
|
3460
|
+
const err148 = { instancePath, schemaPath: "#/oneOf/12/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
3461
|
+
if (vErrors === null) {
|
|
3462
|
+
vErrors = [err148];
|
|
3463
|
+
} else {
|
|
3464
|
+
vErrors.push(err148);
|
|
3465
|
+
}
|
|
3466
|
+
errors++;
|
|
3467
|
+
}
|
|
3468
|
+
if (data.box === void 0) {
|
|
3469
|
+
const err149 = { instancePath, schemaPath: "#/oneOf/12/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
|
|
3470
|
+
if (vErrors === null) {
|
|
3471
|
+
vErrors = [err149];
|
|
3472
|
+
} else {
|
|
3473
|
+
vErrors.push(err149);
|
|
3474
|
+
}
|
|
3475
|
+
errors++;
|
|
3476
|
+
}
|
|
3477
|
+
for (const key12 in data) {
|
|
3478
|
+
if (!(key12 === "type" || key12 === "box")) {
|
|
3479
|
+
const err150 = { instancePath, schemaPath: "#/oneOf/12/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key12 }, message: "must NOT have additional properties" };
|
|
3480
|
+
if (vErrors === null) {
|
|
3481
|
+
vErrors = [err150];
|
|
3482
|
+
} else {
|
|
3483
|
+
vErrors.push(err150);
|
|
3484
|
+
}
|
|
3485
|
+
errors++;
|
|
3486
|
+
}
|
|
3487
|
+
}
|
|
3488
|
+
if (data.type !== void 0) {
|
|
3489
|
+
if ("open" !== data.type) {
|
|
3490
|
+
const err151 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/12/properties/type/const", keyword: "const", params: { allowedValue: "open" }, message: "must be equal to constant" };
|
|
3491
|
+
if (vErrors === null) {
|
|
3492
|
+
vErrors = [err151];
|
|
3493
|
+
} else {
|
|
3494
|
+
vErrors.push(err151);
|
|
3495
|
+
}
|
|
3496
|
+
errors++;
|
|
3497
|
+
}
|
|
3498
|
+
}
|
|
3499
|
+
if (data.box !== void 0) {
|
|
3500
|
+
let data53 = data.box;
|
|
3501
|
+
if (typeof data53 === "string") {
|
|
3502
|
+
if (!pattern0.test(data53)) {
|
|
3503
|
+
const err152 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
3504
|
+
if (vErrors === null) {
|
|
3505
|
+
vErrors = [err152];
|
|
3506
|
+
} else {
|
|
3507
|
+
vErrors.push(err152);
|
|
3508
|
+
}
|
|
3509
|
+
errors++;
|
|
3510
|
+
}
|
|
3511
|
+
} else {
|
|
3512
|
+
const err153 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3513
|
+
if (vErrors === null) {
|
|
3514
|
+
vErrors = [err153];
|
|
3515
|
+
} else {
|
|
3516
|
+
vErrors.push(err153);
|
|
3517
|
+
}
|
|
3518
|
+
errors++;
|
|
3519
|
+
}
|
|
3520
|
+
}
|
|
2903
3521
|
} else {
|
|
2904
|
-
|
|
3522
|
+
const err154 = { instancePath, schemaPath: "#/oneOf/12/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
3523
|
+
if (vErrors === null) {
|
|
3524
|
+
vErrors = [err154];
|
|
3525
|
+
} else {
|
|
3526
|
+
vErrors.push(err154);
|
|
3527
|
+
}
|
|
3528
|
+
errors++;
|
|
3529
|
+
}
|
|
3530
|
+
} else if (tag0 === "pick") {
|
|
3531
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3532
|
+
if (data.type === void 0) {
|
|
3533
|
+
const err155 = { instancePath, schemaPath: "#/oneOf/13/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
3534
|
+
if (vErrors === null) {
|
|
3535
|
+
vErrors = [err155];
|
|
3536
|
+
} else {
|
|
3537
|
+
vErrors.push(err155);
|
|
3538
|
+
}
|
|
3539
|
+
errors++;
|
|
3540
|
+
}
|
|
3541
|
+
if (data.box === void 0) {
|
|
3542
|
+
const err156 = { instancePath, schemaPath: "#/oneOf/13/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
|
|
3543
|
+
if (vErrors === null) {
|
|
3544
|
+
vErrors = [err156];
|
|
3545
|
+
} else {
|
|
3546
|
+
vErrors.push(err156);
|
|
3547
|
+
}
|
|
3548
|
+
errors++;
|
|
3549
|
+
}
|
|
3550
|
+
for (const key13 in data) {
|
|
3551
|
+
if (!(key13 === "type" || key13 === "box")) {
|
|
3552
|
+
const err157 = { instancePath, schemaPath: "#/oneOf/13/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key13 }, message: "must NOT have additional properties" };
|
|
3553
|
+
if (vErrors === null) {
|
|
3554
|
+
vErrors = [err157];
|
|
3555
|
+
} else {
|
|
3556
|
+
vErrors.push(err157);
|
|
3557
|
+
}
|
|
3558
|
+
errors++;
|
|
3559
|
+
}
|
|
3560
|
+
}
|
|
3561
|
+
if (data.type !== void 0) {
|
|
3562
|
+
if ("pick" !== data.type) {
|
|
3563
|
+
const err158 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/13/properties/type/const", keyword: "const", params: { allowedValue: "pick" }, message: "must be equal to constant" };
|
|
3564
|
+
if (vErrors === null) {
|
|
3565
|
+
vErrors = [err158];
|
|
3566
|
+
} else {
|
|
3567
|
+
vErrors.push(err158);
|
|
3568
|
+
}
|
|
3569
|
+
errors++;
|
|
3570
|
+
}
|
|
3571
|
+
}
|
|
3572
|
+
if (data.box !== void 0) {
|
|
3573
|
+
let data55 = data.box;
|
|
3574
|
+
if (typeof data55 === "string") {
|
|
3575
|
+
if (!pattern0.test(data55)) {
|
|
3576
|
+
const err159 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
3577
|
+
if (vErrors === null) {
|
|
3578
|
+
vErrors = [err159];
|
|
3579
|
+
} else {
|
|
3580
|
+
vErrors.push(err159);
|
|
3581
|
+
}
|
|
3582
|
+
errors++;
|
|
3583
|
+
}
|
|
3584
|
+
} else {
|
|
3585
|
+
const err160 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3586
|
+
if (vErrors === null) {
|
|
3587
|
+
vErrors = [err160];
|
|
3588
|
+
} else {
|
|
3589
|
+
vErrors.push(err160);
|
|
3590
|
+
}
|
|
3591
|
+
errors++;
|
|
3592
|
+
}
|
|
3593
|
+
}
|
|
3594
|
+
} else {
|
|
3595
|
+
const err161 = { instancePath, schemaPath: "#/oneOf/13/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
3596
|
+
if (vErrors === null) {
|
|
3597
|
+
vErrors = [err161];
|
|
3598
|
+
} else {
|
|
3599
|
+
vErrors.push(err161);
|
|
3600
|
+
}
|
|
3601
|
+
errors++;
|
|
3602
|
+
}
|
|
3603
|
+
} else if (tag0 === "stamp") {
|
|
3604
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3605
|
+
if (data.type === void 0) {
|
|
3606
|
+
const err162 = { instancePath, schemaPath: "#/oneOf/14/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
3607
|
+
if (vErrors === null) {
|
|
3608
|
+
vErrors = [err162];
|
|
3609
|
+
} else {
|
|
3610
|
+
vErrors.push(err162);
|
|
3611
|
+
}
|
|
3612
|
+
errors++;
|
|
3613
|
+
}
|
|
3614
|
+
if (data.box === void 0) {
|
|
3615
|
+
const err163 = { instancePath, schemaPath: "#/oneOf/14/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
|
|
3616
|
+
if (vErrors === null) {
|
|
3617
|
+
vErrors = [err163];
|
|
3618
|
+
} else {
|
|
3619
|
+
vErrors.push(err163);
|
|
3620
|
+
}
|
|
3621
|
+
errors++;
|
|
3622
|
+
}
|
|
3623
|
+
if (data.text === void 0) {
|
|
3624
|
+
const err164 = { instancePath, schemaPath: "#/oneOf/14/required", keyword: "required", params: { missingProperty: "text" }, message: "must have required property 'text'" };
|
|
3625
|
+
if (vErrors === null) {
|
|
3626
|
+
vErrors = [err164];
|
|
3627
|
+
} else {
|
|
3628
|
+
vErrors.push(err164);
|
|
3629
|
+
}
|
|
3630
|
+
errors++;
|
|
3631
|
+
}
|
|
3632
|
+
for (const key14 in data) {
|
|
3633
|
+
if (!(key14 === "type" || key14 === "box" || key14 === "text")) {
|
|
3634
|
+
const err165 = { instancePath, schemaPath: "#/oneOf/14/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key14 }, message: "must NOT have additional properties" };
|
|
3635
|
+
if (vErrors === null) {
|
|
3636
|
+
vErrors = [err165];
|
|
3637
|
+
} else {
|
|
3638
|
+
vErrors.push(err165);
|
|
3639
|
+
}
|
|
3640
|
+
errors++;
|
|
3641
|
+
}
|
|
3642
|
+
}
|
|
3643
|
+
if (data.type !== void 0) {
|
|
3644
|
+
if ("stamp" !== data.type) {
|
|
3645
|
+
const err166 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/14/properties/type/const", keyword: "const", params: { allowedValue: "stamp" }, message: "must be equal to constant" };
|
|
3646
|
+
if (vErrors === null) {
|
|
3647
|
+
vErrors = [err166];
|
|
3648
|
+
} else {
|
|
3649
|
+
vErrors.push(err166);
|
|
3650
|
+
}
|
|
3651
|
+
errors++;
|
|
3652
|
+
}
|
|
3653
|
+
}
|
|
3654
|
+
if (data.box !== void 0) {
|
|
3655
|
+
let data57 = data.box;
|
|
3656
|
+
if (typeof data57 === "string") {
|
|
3657
|
+
if (!pattern0.test(data57)) {
|
|
3658
|
+
const err167 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
3659
|
+
if (vErrors === null) {
|
|
3660
|
+
vErrors = [err167];
|
|
3661
|
+
} else {
|
|
3662
|
+
vErrors.push(err167);
|
|
3663
|
+
}
|
|
3664
|
+
errors++;
|
|
3665
|
+
}
|
|
3666
|
+
} else {
|
|
3667
|
+
const err168 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3668
|
+
if (vErrors === null) {
|
|
3669
|
+
vErrors = [err168];
|
|
3670
|
+
} else {
|
|
3671
|
+
vErrors.push(err168);
|
|
3672
|
+
}
|
|
3673
|
+
errors++;
|
|
3674
|
+
}
|
|
3675
|
+
}
|
|
3676
|
+
if (data.text !== void 0) {
|
|
3677
|
+
let data58 = data.text;
|
|
3678
|
+
if (typeof data58 === "string") {
|
|
3679
|
+
if (func3(data58) < 1) {
|
|
3680
|
+
const err169 = { instancePath: instancePath + "/text", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
3681
|
+
if (vErrors === null) {
|
|
3682
|
+
vErrors = [err169];
|
|
3683
|
+
} else {
|
|
3684
|
+
vErrors.push(err169);
|
|
3685
|
+
}
|
|
3686
|
+
errors++;
|
|
3687
|
+
}
|
|
3688
|
+
} else {
|
|
3689
|
+
const err170 = { instancePath: instancePath + "/text", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3690
|
+
if (vErrors === null) {
|
|
3691
|
+
vErrors = [err170];
|
|
3692
|
+
} else {
|
|
3693
|
+
vErrors.push(err170);
|
|
3694
|
+
}
|
|
3695
|
+
errors++;
|
|
3696
|
+
}
|
|
3697
|
+
}
|
|
3698
|
+
} else {
|
|
3699
|
+
const err171 = { instancePath, schemaPath: "#/oneOf/14/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
3700
|
+
if (vErrors === null) {
|
|
3701
|
+
vErrors = [err171];
|
|
3702
|
+
} else {
|
|
3703
|
+
vErrors.push(err171);
|
|
3704
|
+
}
|
|
3705
|
+
errors++;
|
|
3706
|
+
}
|
|
3707
|
+
} else if (tag0 === "strip") {
|
|
3708
|
+
const _errs185 = errors;
|
|
3709
|
+
let valid75 = false;
|
|
3710
|
+
const _errs186 = errors;
|
|
3711
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3712
|
+
if (data.value === void 0) {
|
|
3713
|
+
const err172 = { instancePath, schemaPath: "#/oneOf/15/anyOf/0/required", keyword: "required", params: { missingProperty: "value" }, message: "must have required property 'value'" };
|
|
3714
|
+
if (vErrors === null) {
|
|
3715
|
+
vErrors = [err172];
|
|
3716
|
+
} else {
|
|
3717
|
+
vErrors.push(err172);
|
|
3718
|
+
}
|
|
3719
|
+
errors++;
|
|
3720
|
+
}
|
|
3721
|
+
}
|
|
3722
|
+
var _valid0 = _errs186 === errors;
|
|
3723
|
+
valid75 = valid75 || _valid0;
|
|
3724
|
+
if (!valid75) {
|
|
3725
|
+
const _errs187 = errors;
|
|
3726
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3727
|
+
if (data.tag === void 0) {
|
|
3728
|
+
const err173 = { instancePath, schemaPath: "#/oneOf/15/anyOf/1/required", keyword: "required", params: { missingProperty: "tag" }, message: "must have required property 'tag'" };
|
|
3729
|
+
if (vErrors === null) {
|
|
3730
|
+
vErrors = [err173];
|
|
3731
|
+
} else {
|
|
3732
|
+
vErrors.push(err173);
|
|
3733
|
+
}
|
|
3734
|
+
errors++;
|
|
3735
|
+
}
|
|
3736
|
+
}
|
|
3737
|
+
var _valid0 = _errs187 === errors;
|
|
3738
|
+
valid75 = valid75 || _valid0;
|
|
3739
|
+
}
|
|
3740
|
+
if (!valid75) {
|
|
3741
|
+
const err174 = { instancePath, schemaPath: "#/oneOf/15/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
3742
|
+
if (vErrors === null) {
|
|
3743
|
+
vErrors = [err174];
|
|
3744
|
+
} else {
|
|
3745
|
+
vErrors.push(err174);
|
|
3746
|
+
}
|
|
3747
|
+
errors++;
|
|
3748
|
+
} else {
|
|
3749
|
+
errors = _errs185;
|
|
2905
3750
|
if (vErrors !== null) {
|
|
2906
|
-
if (
|
|
2907
|
-
vErrors.length =
|
|
3751
|
+
if (_errs185) {
|
|
3752
|
+
vErrors.length = _errs185;
|
|
2908
3753
|
} else {
|
|
2909
3754
|
vErrors = null;
|
|
2910
3755
|
}
|
|
@@ -2912,151 +3757,151 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2912
3757
|
}
|
|
2913
3758
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
2914
3759
|
if (data.type === void 0) {
|
|
2915
|
-
const
|
|
3760
|
+
const err175 = { instancePath, schemaPath: "#/oneOf/15/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
|
|
2916
3761
|
if (vErrors === null) {
|
|
2917
|
-
vErrors = [
|
|
3762
|
+
vErrors = [err175];
|
|
2918
3763
|
} else {
|
|
2919
|
-
vErrors.push(
|
|
3764
|
+
vErrors.push(err175);
|
|
2920
3765
|
}
|
|
2921
3766
|
errors++;
|
|
2922
3767
|
}
|
|
2923
3768
|
if (data.field === void 0) {
|
|
2924
|
-
const
|
|
3769
|
+
const err176 = { instancePath, schemaPath: "#/oneOf/15/required", keyword: "required", params: { missingProperty: "field" }, message: "must have required property 'field'" };
|
|
2925
3770
|
if (vErrors === null) {
|
|
2926
|
-
vErrors = [
|
|
3771
|
+
vErrors = [err176];
|
|
2927
3772
|
} else {
|
|
2928
|
-
vErrors.push(
|
|
3773
|
+
vErrors.push(err176);
|
|
2929
3774
|
}
|
|
2930
3775
|
errors++;
|
|
2931
3776
|
}
|
|
2932
|
-
for (const
|
|
2933
|
-
if (!(
|
|
2934
|
-
const
|
|
3777
|
+
for (const key15 in data) {
|
|
3778
|
+
if (!(key15 === "type" || key15 === "field" || key15 === "value" || key15 === "tag")) {
|
|
3779
|
+
const err177 = { instancePath, schemaPath: "#/oneOf/15/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key15 }, message: "must NOT have additional properties" };
|
|
2935
3780
|
if (vErrors === null) {
|
|
2936
|
-
vErrors = [
|
|
3781
|
+
vErrors = [err177];
|
|
2937
3782
|
} else {
|
|
2938
|
-
vErrors.push(
|
|
3783
|
+
vErrors.push(err177);
|
|
2939
3784
|
}
|
|
2940
3785
|
errors++;
|
|
2941
3786
|
}
|
|
2942
3787
|
}
|
|
2943
3788
|
if (data.type !== void 0) {
|
|
2944
3789
|
if ("strip" !== data.type) {
|
|
2945
|
-
const
|
|
3790
|
+
const err178 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/15/properties/type/const", keyword: "const", params: { allowedValue: "strip" }, message: "must be equal to constant" };
|
|
2946
3791
|
if (vErrors === null) {
|
|
2947
|
-
vErrors = [
|
|
3792
|
+
vErrors = [err178];
|
|
2948
3793
|
} else {
|
|
2949
|
-
vErrors.push(
|
|
3794
|
+
vErrors.push(err178);
|
|
2950
3795
|
}
|
|
2951
3796
|
errors++;
|
|
2952
3797
|
}
|
|
2953
3798
|
}
|
|
2954
3799
|
if (data.field !== void 0) {
|
|
2955
|
-
let
|
|
2956
|
-
if (typeof
|
|
2957
|
-
if (func3(
|
|
2958
|
-
const
|
|
3800
|
+
let data60 = data.field;
|
|
3801
|
+
if (typeof data60 === "string") {
|
|
3802
|
+
if (func3(data60) < 1) {
|
|
3803
|
+
const err179 = { instancePath: instancePath + "/field", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
2959
3804
|
if (vErrors === null) {
|
|
2960
|
-
vErrors = [
|
|
3805
|
+
vErrors = [err179];
|
|
2961
3806
|
} else {
|
|
2962
|
-
vErrors.push(
|
|
3807
|
+
vErrors.push(err179);
|
|
2963
3808
|
}
|
|
2964
3809
|
errors++;
|
|
2965
3810
|
}
|
|
2966
3811
|
} else {
|
|
2967
|
-
const
|
|
3812
|
+
const err180 = { instancePath: instancePath + "/field", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2968
3813
|
if (vErrors === null) {
|
|
2969
|
-
vErrors = [
|
|
3814
|
+
vErrors = [err180];
|
|
2970
3815
|
} else {
|
|
2971
|
-
vErrors.push(
|
|
3816
|
+
vErrors.push(err180);
|
|
2972
3817
|
}
|
|
2973
3818
|
errors++;
|
|
2974
3819
|
}
|
|
2975
3820
|
}
|
|
2976
3821
|
if (data.value !== void 0) {
|
|
2977
|
-
let
|
|
2978
|
-
if (typeof
|
|
2979
|
-
if (func3(
|
|
2980
|
-
const
|
|
3822
|
+
let data61 = data.value;
|
|
3823
|
+
if (typeof data61 === "string") {
|
|
3824
|
+
if (func3(data61) < 1) {
|
|
3825
|
+
const err181 = { instancePath: instancePath + "/value", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
2981
3826
|
if (vErrors === null) {
|
|
2982
|
-
vErrors = [
|
|
3827
|
+
vErrors = [err181];
|
|
2983
3828
|
} else {
|
|
2984
|
-
vErrors.push(
|
|
3829
|
+
vErrors.push(err181);
|
|
2985
3830
|
}
|
|
2986
3831
|
errors++;
|
|
2987
3832
|
}
|
|
2988
3833
|
} else {
|
|
2989
|
-
const
|
|
3834
|
+
const err182 = { instancePath: instancePath + "/value", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2990
3835
|
if (vErrors === null) {
|
|
2991
|
-
vErrors = [
|
|
3836
|
+
vErrors = [err182];
|
|
2992
3837
|
} else {
|
|
2993
|
-
vErrors.push(
|
|
3838
|
+
vErrors.push(err182);
|
|
2994
3839
|
}
|
|
2995
3840
|
errors++;
|
|
2996
3841
|
}
|
|
2997
3842
|
}
|
|
2998
3843
|
if (data.tag !== void 0) {
|
|
2999
|
-
let
|
|
3000
|
-
if (typeof
|
|
3001
|
-
if (func3(
|
|
3002
|
-
const
|
|
3844
|
+
let data62 = data.tag;
|
|
3845
|
+
if (typeof data62 === "string") {
|
|
3846
|
+
if (func3(data62) < 1) {
|
|
3847
|
+
const err183 = { instancePath: instancePath + "/tag", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
3003
3848
|
if (vErrors === null) {
|
|
3004
|
-
vErrors = [
|
|
3849
|
+
vErrors = [err183];
|
|
3005
3850
|
} else {
|
|
3006
|
-
vErrors.push(
|
|
3851
|
+
vErrors.push(err183);
|
|
3007
3852
|
}
|
|
3008
3853
|
errors++;
|
|
3009
3854
|
}
|
|
3010
3855
|
} else {
|
|
3011
|
-
const
|
|
3856
|
+
const err184 = { instancePath: instancePath + "/tag", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3012
3857
|
if (vErrors === null) {
|
|
3013
|
-
vErrors = [
|
|
3858
|
+
vErrors = [err184];
|
|
3014
3859
|
} else {
|
|
3015
|
-
vErrors.push(
|
|
3860
|
+
vErrors.push(err184);
|
|
3016
3861
|
}
|
|
3017
3862
|
errors++;
|
|
3018
3863
|
}
|
|
3019
3864
|
}
|
|
3020
3865
|
} else {
|
|
3021
|
-
const
|
|
3866
|
+
const err185 = { instancePath, schemaPath: "#/oneOf/15/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
3022
3867
|
if (vErrors === null) {
|
|
3023
|
-
vErrors = [
|
|
3868
|
+
vErrors = [err185];
|
|
3024
3869
|
} else {
|
|
3025
|
-
vErrors.push(
|
|
3870
|
+
vErrors.push(err185);
|
|
3026
3871
|
}
|
|
3027
3872
|
errors++;
|
|
3028
3873
|
}
|
|
3029
3874
|
} else {
|
|
3030
|
-
const
|
|
3875
|
+
const err186 = { instancePath, schemaPath: "#/discriminator", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag0 }, message: 'value of tag "type" must be in oneOf' };
|
|
3031
3876
|
if (vErrors === null) {
|
|
3032
|
-
vErrors = [
|
|
3877
|
+
vErrors = [err186];
|
|
3033
3878
|
} else {
|
|
3034
|
-
vErrors.push(
|
|
3879
|
+
vErrors.push(err186);
|
|
3035
3880
|
}
|
|
3036
3881
|
errors++;
|
|
3037
3882
|
}
|
|
3038
3883
|
} else {
|
|
3039
|
-
const
|
|
3884
|
+
const err187 = { instancePath, schemaPath: "#/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag0 }, message: 'tag "type" must be string' };
|
|
3040
3885
|
if (vErrors === null) {
|
|
3041
|
-
vErrors = [
|
|
3886
|
+
vErrors = [err187];
|
|
3042
3887
|
} else {
|
|
3043
|
-
vErrors.push(
|
|
3888
|
+
vErrors.push(err187);
|
|
3044
3889
|
}
|
|
3045
3890
|
errors++;
|
|
3046
3891
|
}
|
|
3047
3892
|
} else {
|
|
3048
|
-
const
|
|
3893
|
+
const err188 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
3049
3894
|
if (vErrors === null) {
|
|
3050
|
-
vErrors = [
|
|
3895
|
+
vErrors = [err188];
|
|
3051
3896
|
} else {
|
|
3052
|
-
vErrors.push(
|
|
3897
|
+
vErrors.push(err188);
|
|
3053
3898
|
}
|
|
3054
3899
|
errors++;
|
|
3055
3900
|
}
|
|
3056
|
-
|
|
3901
|
+
validate41.errors = vErrors;
|
|
3057
3902
|
return errors === 0;
|
|
3058
3903
|
}
|
|
3059
|
-
function
|
|
3904
|
+
function validate38(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
3060
3905
|
let vErrors = null;
|
|
3061
3906
|
let errors = 0;
|
|
3062
3907
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -3178,8 +4023,8 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3178
4023
|
}
|
|
3179
4024
|
const len0 = data3.length;
|
|
3180
4025
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
3181
|
-
if (!
|
|
3182
|
-
vErrors = vErrors === null ?
|
|
4026
|
+
if (!validate39(data3[i0], { instancePath: instancePath + "/sources/" + i0, parentData: data3, parentDataProperty: i0, rootData })) {
|
|
4027
|
+
vErrors = vErrors === null ? validate39.errors : vErrors.concat(validate39.errors);
|
|
3183
4028
|
errors = vErrors.length;
|
|
3184
4029
|
}
|
|
3185
4030
|
}
|
|
@@ -3198,8 +4043,8 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3198
4043
|
if (Array.isArray(data5)) {
|
|
3199
4044
|
const len1 = data5.length;
|
|
3200
4045
|
for (let i1 = 0; i1 < len1; i1++) {
|
|
3201
|
-
if (!
|
|
3202
|
-
vErrors = vErrors === null ?
|
|
4046
|
+
if (!validate41(data5[i1], { instancePath: instancePath + "/events/" + i1, parentData: data5, parentDataProperty: i1, rootData })) {
|
|
4047
|
+
vErrors = vErrors === null ? validate41.errors : vErrors.concat(validate41.errors);
|
|
3203
4048
|
errors = vErrors.length;
|
|
3204
4049
|
}
|
|
3205
4050
|
}
|
|
@@ -3222,10 +4067,10 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3222
4067
|
}
|
|
3223
4068
|
errors++;
|
|
3224
4069
|
}
|
|
3225
|
-
|
|
4070
|
+
validate38.errors = vErrors;
|
|
3226
4071
|
return errors === 0;
|
|
3227
4072
|
}
|
|
3228
|
-
function
|
|
4073
|
+
function validate46(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
3229
4074
|
let vErrors = null;
|
|
3230
4075
|
let errors = 0;
|
|
3231
4076
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -3303,10 +4148,10 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3303
4148
|
}
|
|
3304
4149
|
errors++;
|
|
3305
4150
|
}
|
|
3306
|
-
|
|
4151
|
+
validate46.errors = vErrors;
|
|
3307
4152
|
return errors === 0;
|
|
3308
4153
|
}
|
|
3309
|
-
function
|
|
4154
|
+
function validate49(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
3310
4155
|
let vErrors = null;
|
|
3311
4156
|
let errors = 0;
|
|
3312
4157
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -3414,10 +4259,10 @@ function validate46(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3414
4259
|
}
|
|
3415
4260
|
errors++;
|
|
3416
4261
|
}
|
|
3417
|
-
|
|
4262
|
+
validate49.errors = vErrors;
|
|
3418
4263
|
return errors === 0;
|
|
3419
4264
|
}
|
|
3420
|
-
function
|
|
4265
|
+
function validate48(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
3421
4266
|
let vErrors = null;
|
|
3422
4267
|
let errors = 0;
|
|
3423
4268
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -3455,8 +4300,8 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3455
4300
|
}
|
|
3456
4301
|
const len0 = data0.length;
|
|
3457
4302
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
3458
|
-
if (!
|
|
3459
|
-
vErrors = vErrors === null ?
|
|
4303
|
+
if (!validate49(data0[i0], { instancePath: instancePath + "/paths/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
|
|
4304
|
+
vErrors = vErrors === null ? validate49.errors : vErrors.concat(validate49.errors);
|
|
3460
4305
|
errors = vErrors.length;
|
|
3461
4306
|
}
|
|
3462
4307
|
}
|
|
@@ -3479,10 +4324,10 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3479
4324
|
}
|
|
3480
4325
|
errors++;
|
|
3481
4326
|
}
|
|
3482
|
-
|
|
4327
|
+
validate48.errors = vErrors;
|
|
3483
4328
|
return errors === 0;
|
|
3484
4329
|
}
|
|
3485
|
-
function
|
|
4330
|
+
function validate53(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
3486
4331
|
let vErrors = null;
|
|
3487
4332
|
let errors = 0;
|
|
3488
4333
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -3559,10 +4404,10 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3559
4404
|
}
|
|
3560
4405
|
errors++;
|
|
3561
4406
|
}
|
|
3562
|
-
|
|
4407
|
+
validate53.errors = vErrors;
|
|
3563
4408
|
return errors === 0;
|
|
3564
4409
|
}
|
|
3565
|
-
function
|
|
4410
|
+
function validate52(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
3566
4411
|
let vErrors = null;
|
|
3567
4412
|
let errors = 0;
|
|
3568
4413
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -3600,8 +4445,8 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3600
4445
|
}
|
|
3601
4446
|
const len0 = data0.length;
|
|
3602
4447
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
3603
|
-
if (!
|
|
3604
|
-
vErrors = vErrors === null ?
|
|
4448
|
+
if (!validate53(data0[i0], { instancePath: instancePath + "/branches/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
|
|
4449
|
+
vErrors = vErrors === null ? validate53.errors : vErrors.concat(validate53.errors);
|
|
3605
4450
|
errors = vErrors.length;
|
|
3606
4451
|
}
|
|
3607
4452
|
}
|
|
@@ -3624,11 +4469,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3624
4469
|
}
|
|
3625
4470
|
errors++;
|
|
3626
4471
|
}
|
|
3627
|
-
|
|
4472
|
+
validate52.errors = vErrors;
|
|
3628
4473
|
return errors === 0;
|
|
3629
4474
|
}
|
|
3630
|
-
var
|
|
3631
|
-
function
|
|
4475
|
+
var pattern33 = new RegExp("^[0-9]+(\\.[0-9]+)?(ms|s|min|h|d)$", "u");
|
|
4476
|
+
function validate57(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
3632
4477
|
let vErrors = null;
|
|
3633
4478
|
let errors = 0;
|
|
3634
4479
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -3695,7 +4540,7 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3695
4540
|
if (data.length !== void 0) {
|
|
3696
4541
|
let data1 = data.length;
|
|
3697
4542
|
if (typeof data1 === "string") {
|
|
3698
|
-
if (!
|
|
4543
|
+
if (!pattern33.test(data1)) {
|
|
3699
4544
|
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)$"' };
|
|
3700
4545
|
if (vErrors === null) {
|
|
3701
4546
|
vErrors = [err6];
|
|
@@ -3769,10 +4614,10 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3769
4614
|
}
|
|
3770
4615
|
errors++;
|
|
3771
4616
|
}
|
|
3772
|
-
|
|
4617
|
+
validate57.errors = vErrors;
|
|
3773
4618
|
return errors === 0;
|
|
3774
4619
|
}
|
|
3775
|
-
function
|
|
4620
|
+
function validate59(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
3776
4621
|
let vErrors = null;
|
|
3777
4622
|
let errors = 0;
|
|
3778
4623
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -3882,10 +4727,10 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3882
4727
|
}
|
|
3883
4728
|
errors++;
|
|
3884
4729
|
}
|
|
3885
|
-
|
|
4730
|
+
validate59.errors = vErrors;
|
|
3886
4731
|
return errors === 0;
|
|
3887
4732
|
}
|
|
3888
|
-
function
|
|
4733
|
+
function validate61(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
3889
4734
|
let vErrors = null;
|
|
3890
4735
|
let errors = 0;
|
|
3891
4736
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -3965,7 +4810,7 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3965
4810
|
if (data.color !== void 0) {
|
|
3966
4811
|
let data2 = data.color;
|
|
3967
4812
|
if (!(data2 === "blue" || data2 === "amber" || data2 === "green" || data2 === "violet" || data2 === "rose" || data2 === "slate" || data2 === "coin")) {
|
|
3968
|
-
const err7 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues:
|
|
4813
|
+
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" };
|
|
3969
4814
|
if (vErrors === null) {
|
|
3970
4815
|
vErrors = [err7];
|
|
3971
4816
|
} else {
|
|
@@ -4020,10 +4865,10 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4020
4865
|
}
|
|
4021
4866
|
errors++;
|
|
4022
4867
|
}
|
|
4023
|
-
|
|
4868
|
+
validate61.errors = vErrors;
|
|
4024
4869
|
return errors === 0;
|
|
4025
4870
|
}
|
|
4026
|
-
function
|
|
4871
|
+
function validate63(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
4027
4872
|
let vErrors = null;
|
|
4028
4873
|
let errors = 0;
|
|
4029
4874
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -4110,10 +4955,10 @@ function validate60(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4110
4955
|
}
|
|
4111
4956
|
errors++;
|
|
4112
4957
|
}
|
|
4113
|
-
|
|
4958
|
+
validate63.errors = vErrors;
|
|
4114
4959
|
return errors === 0;
|
|
4115
4960
|
}
|
|
4116
|
-
function
|
|
4961
|
+
function validate65(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
4117
4962
|
let vErrors = null;
|
|
4118
4963
|
let errors = 0;
|
|
4119
4964
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -4201,10 +5046,10 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4201
5046
|
}
|
|
4202
5047
|
errors++;
|
|
4203
5048
|
}
|
|
4204
|
-
|
|
5049
|
+
validate65.errors = vErrors;
|
|
4205
5050
|
return errors === 0;
|
|
4206
5051
|
}
|
|
4207
|
-
function
|
|
5052
|
+
function validate56(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
4208
5053
|
let vErrors = null;
|
|
4209
5054
|
let errors = 0;
|
|
4210
5055
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -4238,14 +5083,14 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4238
5083
|
}
|
|
4239
5084
|
}
|
|
4240
5085
|
if (data.scale !== void 0) {
|
|
4241
|
-
if (!
|
|
4242
|
-
vErrors = vErrors === null ?
|
|
5086
|
+
if (!validate57(data.scale, { instancePath: instancePath + "/scale", parentData: data, parentDataProperty: "scale", rootData })) {
|
|
5087
|
+
vErrors = vErrors === null ? validate57.errors : vErrors.concat(validate57.errors);
|
|
4243
5088
|
errors = vErrors.length;
|
|
4244
5089
|
}
|
|
4245
5090
|
}
|
|
4246
5091
|
if (data.period !== void 0) {
|
|
4247
|
-
if (!
|
|
4248
|
-
vErrors = vErrors === null ?
|
|
5092
|
+
if (!validate59(data.period, { instancePath: instancePath + "/period", parentData: data, parentDataProperty: "period", rootData })) {
|
|
5093
|
+
vErrors = vErrors === null ? validate59.errors : vErrors.concat(validate59.errors);
|
|
4249
5094
|
errors = vErrors.length;
|
|
4250
5095
|
}
|
|
4251
5096
|
}
|
|
@@ -4263,8 +5108,8 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4263
5108
|
}
|
|
4264
5109
|
const len0 = data2.length;
|
|
4265
5110
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
4266
|
-
if (!
|
|
4267
|
-
vErrors = vErrors === null ?
|
|
5111
|
+
if (!validate61(data2[i0], { instancePath: instancePath + "/rows/" + i0, parentData: data2, parentDataProperty: i0, rootData })) {
|
|
5112
|
+
vErrors = vErrors === null ? validate61.errors : vErrors.concat(validate61.errors);
|
|
4268
5113
|
errors = vErrors.length;
|
|
4269
5114
|
}
|
|
4270
5115
|
}
|
|
@@ -4283,8 +5128,8 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4283
5128
|
if (Array.isArray(data4)) {
|
|
4284
5129
|
const len1 = data4.length;
|
|
4285
5130
|
for (let i1 = 0; i1 < len1; i1++) {
|
|
4286
|
-
if (!
|
|
4287
|
-
vErrors = vErrors === null ?
|
|
5131
|
+
if (!validate63(data4[i1], { instancePath: instancePath + "/points/" + i1, parentData: data4, parentDataProperty: i1, rootData })) {
|
|
5132
|
+
vErrors = vErrors === null ? validate63.errors : vErrors.concat(validate63.errors);
|
|
4288
5133
|
errors = vErrors.length;
|
|
4289
5134
|
}
|
|
4290
5135
|
}
|
|
@@ -4299,8 +5144,8 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4299
5144
|
}
|
|
4300
5145
|
}
|
|
4301
5146
|
if (data.zoom !== void 0) {
|
|
4302
|
-
if (!
|
|
4303
|
-
vErrors = vErrors === null ?
|
|
5147
|
+
if (!validate65(data.zoom, { instancePath: instancePath + "/zoom", parentData: data, parentDataProperty: "zoom", rootData })) {
|
|
5148
|
+
vErrors = vErrors === null ? validate65.errors : vErrors.concat(validate65.errors);
|
|
4304
5149
|
errors = vErrors.length;
|
|
4305
5150
|
}
|
|
4306
5151
|
}
|
|
@@ -4313,7 +5158,173 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4313
5158
|
}
|
|
4314
5159
|
errors++;
|
|
4315
5160
|
}
|
|
4316
|
-
|
|
5161
|
+
validate56.errors = vErrors;
|
|
5162
|
+
return errors === 0;
|
|
5163
|
+
}
|
|
5164
|
+
function validate69(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
5165
|
+
let vErrors = null;
|
|
5166
|
+
let errors = 0;
|
|
5167
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
5168
|
+
if (data.id === void 0) {
|
|
5169
|
+
const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "id" }, message: "must have required property 'id'" };
|
|
5170
|
+
if (vErrors === null) {
|
|
5171
|
+
vErrors = [err0];
|
|
5172
|
+
} else {
|
|
5173
|
+
vErrors.push(err0);
|
|
5174
|
+
}
|
|
5175
|
+
errors++;
|
|
5176
|
+
}
|
|
5177
|
+
for (const key0 in data) {
|
|
5178
|
+
if (!(key0 === "id" || key0 === "color" || key0 === "label")) {
|
|
5179
|
+
const err1 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
5180
|
+
if (vErrors === null) {
|
|
5181
|
+
vErrors = [err1];
|
|
5182
|
+
} else {
|
|
5183
|
+
vErrors.push(err1);
|
|
5184
|
+
}
|
|
5185
|
+
errors++;
|
|
5186
|
+
}
|
|
5187
|
+
}
|
|
5188
|
+
if (data.id !== void 0) {
|
|
5189
|
+
let data0 = data.id;
|
|
5190
|
+
if (typeof data0 === "string") {
|
|
5191
|
+
if (!pattern0.test(data0)) {
|
|
5192
|
+
const err2 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
|
|
5193
|
+
if (vErrors === null) {
|
|
5194
|
+
vErrors = [err2];
|
|
5195
|
+
} else {
|
|
5196
|
+
vErrors.push(err2);
|
|
5197
|
+
}
|
|
5198
|
+
errors++;
|
|
5199
|
+
}
|
|
5200
|
+
} else {
|
|
5201
|
+
const err3 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
5202
|
+
if (vErrors === null) {
|
|
5203
|
+
vErrors = [err3];
|
|
5204
|
+
} else {
|
|
5205
|
+
vErrors.push(err3);
|
|
5206
|
+
}
|
|
5207
|
+
errors++;
|
|
5208
|
+
}
|
|
5209
|
+
}
|
|
5210
|
+
if (data.color !== void 0) {
|
|
5211
|
+
let data1 = data.color;
|
|
5212
|
+
if (!(data1 === "blue" || data1 === "amber" || data1 === "green" || data1 === "violet" || data1 === "rose" || data1 === "slate" || data1 === "coin")) {
|
|
5213
|
+
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" };
|
|
5214
|
+
if (vErrors === null) {
|
|
5215
|
+
vErrors = [err4];
|
|
5216
|
+
} else {
|
|
5217
|
+
vErrors.push(err4);
|
|
5218
|
+
}
|
|
5219
|
+
errors++;
|
|
5220
|
+
}
|
|
5221
|
+
}
|
|
5222
|
+
if (data.label !== void 0) {
|
|
5223
|
+
let data2 = data.label;
|
|
5224
|
+
if (typeof data2 === "string") {
|
|
5225
|
+
if (func3(data2) > 4) {
|
|
5226
|
+
const err5 = { instancePath: instancePath + "/label", schemaPath: "#/properties/label/maxLength", keyword: "maxLength", params: { limit: 4 }, message: "must NOT have more than 4 characters" };
|
|
5227
|
+
if (vErrors === null) {
|
|
5228
|
+
vErrors = [err5];
|
|
5229
|
+
} else {
|
|
5230
|
+
vErrors.push(err5);
|
|
5231
|
+
}
|
|
5232
|
+
errors++;
|
|
5233
|
+
}
|
|
5234
|
+
if (func3(data2) < 1) {
|
|
5235
|
+
const err6 = { instancePath: instancePath + "/label", schemaPath: "#/properties/label/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
5236
|
+
if (vErrors === null) {
|
|
5237
|
+
vErrors = [err6];
|
|
5238
|
+
} else {
|
|
5239
|
+
vErrors.push(err6);
|
|
5240
|
+
}
|
|
5241
|
+
errors++;
|
|
5242
|
+
}
|
|
5243
|
+
} else {
|
|
5244
|
+
const err7 = { instancePath: instancePath + "/label", schemaPath: "#/properties/label/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
5245
|
+
if (vErrors === null) {
|
|
5246
|
+
vErrors = [err7];
|
|
5247
|
+
} else {
|
|
5248
|
+
vErrors.push(err7);
|
|
5249
|
+
}
|
|
5250
|
+
errors++;
|
|
5251
|
+
}
|
|
5252
|
+
}
|
|
5253
|
+
} else {
|
|
5254
|
+
const err8 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
5255
|
+
if (vErrors === null) {
|
|
5256
|
+
vErrors = [err8];
|
|
5257
|
+
} else {
|
|
5258
|
+
vErrors.push(err8);
|
|
5259
|
+
}
|
|
5260
|
+
errors++;
|
|
5261
|
+
}
|
|
5262
|
+
validate69.errors = vErrors;
|
|
5263
|
+
return errors === 0;
|
|
5264
|
+
}
|
|
5265
|
+
function validate68(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
5266
|
+
let vErrors = null;
|
|
5267
|
+
let errors = 0;
|
|
5268
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
5269
|
+
if (data.items === void 0) {
|
|
5270
|
+
const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "items" }, message: "must have required property 'items'" };
|
|
5271
|
+
if (vErrors === null) {
|
|
5272
|
+
vErrors = [err0];
|
|
5273
|
+
} else {
|
|
5274
|
+
vErrors.push(err0);
|
|
5275
|
+
}
|
|
5276
|
+
errors++;
|
|
5277
|
+
}
|
|
5278
|
+
for (const key0 in data) {
|
|
5279
|
+
if (!(key0 === "items")) {
|
|
5280
|
+
const err1 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
5281
|
+
if (vErrors === null) {
|
|
5282
|
+
vErrors = [err1];
|
|
5283
|
+
} else {
|
|
5284
|
+
vErrors.push(err1);
|
|
5285
|
+
}
|
|
5286
|
+
errors++;
|
|
5287
|
+
}
|
|
5288
|
+
}
|
|
5289
|
+
if (data.items !== void 0) {
|
|
5290
|
+
let data0 = data.items;
|
|
5291
|
+
if (Array.isArray(data0)) {
|
|
5292
|
+
if (data0.length < 1) {
|
|
5293
|
+
const err2 = { instancePath: instancePath + "/items", schemaPath: "#/properties/items/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
5294
|
+
if (vErrors === null) {
|
|
5295
|
+
vErrors = [err2];
|
|
5296
|
+
} else {
|
|
5297
|
+
vErrors.push(err2);
|
|
5298
|
+
}
|
|
5299
|
+
errors++;
|
|
5300
|
+
}
|
|
5301
|
+
const len0 = data0.length;
|
|
5302
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
5303
|
+
if (!validate69(data0[i0], { instancePath: instancePath + "/items/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
|
|
5304
|
+
vErrors = vErrors === null ? validate69.errors : vErrors.concat(validate69.errors);
|
|
5305
|
+
errors = vErrors.length;
|
|
5306
|
+
}
|
|
5307
|
+
}
|
|
5308
|
+
} else {
|
|
5309
|
+
const err3 = { instancePath: instancePath + "/items", schemaPath: "#/properties/items/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
5310
|
+
if (vErrors === null) {
|
|
5311
|
+
vErrors = [err3];
|
|
5312
|
+
} else {
|
|
5313
|
+
vErrors.push(err3);
|
|
5314
|
+
}
|
|
5315
|
+
errors++;
|
|
5316
|
+
}
|
|
5317
|
+
}
|
|
5318
|
+
} else {
|
|
5319
|
+
const err4 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
5320
|
+
if (vErrors === null) {
|
|
5321
|
+
vErrors = [err4];
|
|
5322
|
+
} else {
|
|
5323
|
+
vErrors.push(err4);
|
|
5324
|
+
}
|
|
5325
|
+
errors++;
|
|
5326
|
+
}
|
|
5327
|
+
validate68.errors = vErrors;
|
|
4317
5328
|
return errors === 0;
|
|
4318
5329
|
}
|
|
4319
5330
|
var func2 = Object.prototype.hasOwnProperty;
|
|
@@ -4421,94 +5432,103 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4421
5432
|
}
|
|
4422
5433
|
errors++;
|
|
4423
5434
|
}
|
|
5435
|
+
if (data.lineup !== void 0) {
|
|
5436
|
+
const err7 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
5437
|
+
if (vErrors === null) {
|
|
5438
|
+
vErrors = [err7];
|
|
5439
|
+
} else {
|
|
5440
|
+
vErrors.push(err7);
|
|
5441
|
+
}
|
|
5442
|
+
errors++;
|
|
5443
|
+
}
|
|
4424
5444
|
}
|
|
4425
5445
|
var _valid0 = _errs4 === errors;
|
|
4426
5446
|
valid0 = _valid0;
|
|
4427
5447
|
ifClause0 = "then";
|
|
4428
5448
|
} else {
|
|
4429
|
-
const
|
|
4430
|
-
const
|
|
4431
|
-
let
|
|
4432
|
-
const
|
|
5449
|
+
const _errs20 = errors;
|
|
5450
|
+
const _errs21 = errors;
|
|
5451
|
+
let valid7 = true;
|
|
5452
|
+
const _errs22 = errors;
|
|
4433
5453
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4434
5454
|
if (data.kind === void 0 && ("kind")) {
|
|
4435
|
-
const
|
|
5455
|
+
const err8 = {};
|
|
4436
5456
|
if (vErrors === null) {
|
|
4437
|
-
vErrors = [
|
|
5457
|
+
vErrors = [err8];
|
|
4438
5458
|
} else {
|
|
4439
|
-
vErrors.push(
|
|
5459
|
+
vErrors.push(err8);
|
|
4440
5460
|
}
|
|
4441
5461
|
errors++;
|
|
4442
5462
|
} else {
|
|
4443
5463
|
if (data.kind !== void 0) {
|
|
4444
5464
|
if ("state" !== data.kind) {
|
|
4445
|
-
const
|
|
5465
|
+
const err9 = {};
|
|
4446
5466
|
if (vErrors === null) {
|
|
4447
|
-
vErrors = [
|
|
5467
|
+
vErrors = [err9];
|
|
4448
5468
|
} else {
|
|
4449
|
-
vErrors.push(
|
|
5469
|
+
vErrors.push(err9);
|
|
4450
5470
|
}
|
|
4451
5471
|
errors++;
|
|
4452
5472
|
}
|
|
4453
5473
|
}
|
|
4454
5474
|
}
|
|
4455
5475
|
}
|
|
4456
|
-
var _valid1 =
|
|
4457
|
-
errors =
|
|
5476
|
+
var _valid1 = _errs22 === errors;
|
|
5477
|
+
errors = _errs21;
|
|
4458
5478
|
if (vErrors !== null) {
|
|
4459
|
-
if (
|
|
4460
|
-
vErrors.length =
|
|
5479
|
+
if (_errs21) {
|
|
5480
|
+
vErrors.length = _errs21;
|
|
4461
5481
|
} else {
|
|
4462
5482
|
vErrors = null;
|
|
4463
5483
|
}
|
|
4464
5484
|
}
|
|
4465
5485
|
let ifClause1;
|
|
4466
5486
|
if (_valid1) {
|
|
4467
|
-
const
|
|
5487
|
+
const _errs24 = errors;
|
|
4468
5488
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4469
5489
|
if (data.boxes !== void 0) {
|
|
4470
|
-
let
|
|
4471
|
-
if (Array.isArray(
|
|
4472
|
-
if (
|
|
4473
|
-
const
|
|
5490
|
+
let data9 = data.boxes;
|
|
5491
|
+
if (Array.isArray(data9)) {
|
|
5492
|
+
if (data9.length < 1) {
|
|
5493
|
+
const err10 = { instancePath: instancePath + "/boxes", schemaPath: "#/else/then/properties/boxes/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
4474
5494
|
if (vErrors === null) {
|
|
4475
|
-
vErrors = [
|
|
5495
|
+
vErrors = [err10];
|
|
4476
5496
|
} else {
|
|
4477
|
-
vErrors.push(
|
|
5497
|
+
vErrors.push(err10);
|
|
4478
5498
|
}
|
|
4479
5499
|
errors++;
|
|
4480
5500
|
}
|
|
4481
|
-
const len0 =
|
|
5501
|
+
const len0 = data9.length;
|
|
4482
5502
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
4483
|
-
let
|
|
4484
|
-
if (
|
|
4485
|
-
if (
|
|
4486
|
-
let
|
|
4487
|
-
const
|
|
4488
|
-
const
|
|
4489
|
-
if (!(
|
|
4490
|
-
const
|
|
5503
|
+
let data10 = data9[i0];
|
|
5504
|
+
if (data10 && typeof data10 == "object" && !Array.isArray(data10)) {
|
|
5505
|
+
if (data10.id !== void 0) {
|
|
5506
|
+
let data11 = data10.id;
|
|
5507
|
+
const _errs28 = errors;
|
|
5508
|
+
const _errs29 = errors;
|
|
5509
|
+
if (!(data11 === "start" || data11 === "finish")) {
|
|
5510
|
+
const err11 = {};
|
|
4491
5511
|
if (vErrors === null) {
|
|
4492
|
-
vErrors = [
|
|
5512
|
+
vErrors = [err11];
|
|
4493
5513
|
} else {
|
|
4494
|
-
vErrors.push(
|
|
5514
|
+
vErrors.push(err11);
|
|
4495
5515
|
}
|
|
4496
5516
|
errors++;
|
|
4497
5517
|
}
|
|
4498
|
-
var
|
|
4499
|
-
if (
|
|
4500
|
-
const
|
|
5518
|
+
var valid13 = _errs29 === errors;
|
|
5519
|
+
if (valid13) {
|
|
5520
|
+
const err12 = { instancePath: instancePath + "/boxes/" + i0 + "/id", schemaPath: "#/else/then/properties/boxes/items/properties/id/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4501
5521
|
if (vErrors === null) {
|
|
4502
|
-
vErrors = [
|
|
5522
|
+
vErrors = [err12];
|
|
4503
5523
|
} else {
|
|
4504
|
-
vErrors.push(
|
|
5524
|
+
vErrors.push(err12);
|
|
4505
5525
|
}
|
|
4506
5526
|
errors++;
|
|
4507
5527
|
} else {
|
|
4508
|
-
errors =
|
|
5528
|
+
errors = _errs28;
|
|
4509
5529
|
if (vErrors !== null) {
|
|
4510
|
-
if (
|
|
4511
|
-
vErrors.length =
|
|
5530
|
+
if (_errs28) {
|
|
5531
|
+
vErrors.length = _errs28;
|
|
4512
5532
|
} else {
|
|
4513
5533
|
vErrors = null;
|
|
4514
5534
|
}
|
|
@@ -4532,74 +5552,83 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4532
5552
|
}
|
|
4533
5553
|
}
|
|
4534
5554
|
if (data.git !== void 0) {
|
|
4535
|
-
const
|
|
5555
|
+
const err13 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4536
5556
|
if (vErrors === null) {
|
|
4537
|
-
vErrors = [
|
|
5557
|
+
vErrors = [err13];
|
|
4538
5558
|
} else {
|
|
4539
|
-
vErrors.push(
|
|
5559
|
+
vErrors.push(err13);
|
|
4540
5560
|
}
|
|
4541
5561
|
errors++;
|
|
4542
5562
|
}
|
|
4543
5563
|
if (data.time !== void 0) {
|
|
4544
|
-
const
|
|
5564
|
+
const err14 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4545
5565
|
if (vErrors === null) {
|
|
4546
|
-
vErrors = [
|
|
5566
|
+
vErrors = [err14];
|
|
4547
5567
|
} else {
|
|
4548
|
-
vErrors.push(
|
|
5568
|
+
vErrors.push(err14);
|
|
5569
|
+
}
|
|
5570
|
+
errors++;
|
|
5571
|
+
}
|
|
5572
|
+
if (data.lineup !== void 0) {
|
|
5573
|
+
const err15 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
5574
|
+
if (vErrors === null) {
|
|
5575
|
+
vErrors = [err15];
|
|
5576
|
+
} else {
|
|
5577
|
+
vErrors.push(err15);
|
|
4549
5578
|
}
|
|
4550
5579
|
errors++;
|
|
4551
5580
|
}
|
|
4552
5581
|
}
|
|
4553
|
-
var _valid1 =
|
|
4554
|
-
|
|
5582
|
+
var _valid1 = _errs24 === errors;
|
|
5583
|
+
valid7 = _valid1;
|
|
4555
5584
|
ifClause1 = "then";
|
|
4556
5585
|
} else {
|
|
4557
|
-
const
|
|
4558
|
-
const
|
|
4559
|
-
let
|
|
4560
|
-
const
|
|
5586
|
+
const _errs41 = errors;
|
|
5587
|
+
const _errs42 = errors;
|
|
5588
|
+
let valid17 = true;
|
|
5589
|
+
const _errs43 = errors;
|
|
4561
5590
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4562
5591
|
if (data.kind === void 0 && ("kind")) {
|
|
4563
|
-
const
|
|
5592
|
+
const err16 = {};
|
|
4564
5593
|
if (vErrors === null) {
|
|
4565
|
-
vErrors = [
|
|
5594
|
+
vErrors = [err16];
|
|
4566
5595
|
} else {
|
|
4567
|
-
vErrors.push(
|
|
5596
|
+
vErrors.push(err16);
|
|
4568
5597
|
}
|
|
4569
5598
|
errors++;
|
|
4570
5599
|
} else {
|
|
4571
5600
|
if (data.kind !== void 0) {
|
|
4572
5601
|
if ("git" !== data.kind) {
|
|
4573
|
-
const
|
|
5602
|
+
const err17 = {};
|
|
4574
5603
|
if (vErrors === null) {
|
|
4575
|
-
vErrors = [
|
|
5604
|
+
vErrors = [err17];
|
|
4576
5605
|
} else {
|
|
4577
|
-
vErrors.push(
|
|
5606
|
+
vErrors.push(err17);
|
|
4578
5607
|
}
|
|
4579
5608
|
errors++;
|
|
4580
5609
|
}
|
|
4581
5610
|
}
|
|
4582
5611
|
}
|
|
4583
5612
|
}
|
|
4584
|
-
var _valid2 =
|
|
4585
|
-
errors =
|
|
5613
|
+
var _valid2 = _errs43 === errors;
|
|
5614
|
+
errors = _errs42;
|
|
4586
5615
|
if (vErrors !== null) {
|
|
4587
|
-
if (
|
|
4588
|
-
vErrors.length =
|
|
5616
|
+
if (_errs42) {
|
|
5617
|
+
vErrors.length = _errs42;
|
|
4589
5618
|
} else {
|
|
4590
5619
|
vErrors = null;
|
|
4591
5620
|
}
|
|
4592
5621
|
}
|
|
4593
5622
|
let ifClause2;
|
|
4594
5623
|
if (_valid2) {
|
|
4595
|
-
const
|
|
5624
|
+
const _errs45 = errors;
|
|
4596
5625
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4597
5626
|
if (data.git === void 0) {
|
|
4598
|
-
const
|
|
5627
|
+
const err18 = { instancePath, schemaPath: "#/else/else/then/required", keyword: "required", params: { missingProperty: "git" }, message: "must have required property 'git'" };
|
|
4599
5628
|
if (vErrors === null) {
|
|
4600
|
-
vErrors = [
|
|
5629
|
+
vErrors = [err18];
|
|
4601
5630
|
} else {
|
|
4602
|
-
vErrors.push(
|
|
5631
|
+
vErrors.push(err18);
|
|
4603
5632
|
}
|
|
4604
5633
|
errors++;
|
|
4605
5634
|
}
|
|
@@ -4616,83 +5645,92 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4616
5645
|
}
|
|
4617
5646
|
}
|
|
4618
5647
|
if (data.state !== void 0) {
|
|
4619
|
-
const
|
|
5648
|
+
const err19 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4620
5649
|
if (vErrors === null) {
|
|
4621
|
-
vErrors = [
|
|
5650
|
+
vErrors = [err19];
|
|
4622
5651
|
} else {
|
|
4623
|
-
vErrors.push(
|
|
5652
|
+
vErrors.push(err19);
|
|
4624
5653
|
}
|
|
4625
5654
|
errors++;
|
|
4626
5655
|
}
|
|
4627
5656
|
if (data.regions !== void 0) {
|
|
4628
|
-
const
|
|
5657
|
+
const err20 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4629
5658
|
if (vErrors === null) {
|
|
4630
|
-
vErrors = [
|
|
5659
|
+
vErrors = [err20];
|
|
4631
5660
|
} else {
|
|
4632
|
-
vErrors.push(
|
|
5661
|
+
vErrors.push(err20);
|
|
4633
5662
|
}
|
|
4634
5663
|
errors++;
|
|
4635
5664
|
}
|
|
4636
5665
|
if (data.time !== void 0) {
|
|
4637
|
-
const
|
|
5666
|
+
const err21 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4638
5667
|
if (vErrors === null) {
|
|
4639
|
-
vErrors = [
|
|
5668
|
+
vErrors = [err21];
|
|
4640
5669
|
} else {
|
|
4641
|
-
vErrors.push(
|
|
5670
|
+
vErrors.push(err21);
|
|
5671
|
+
}
|
|
5672
|
+
errors++;
|
|
5673
|
+
}
|
|
5674
|
+
if (data.lineup !== void 0) {
|
|
5675
|
+
const err22 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
5676
|
+
if (vErrors === null) {
|
|
5677
|
+
vErrors = [err22];
|
|
5678
|
+
} else {
|
|
5679
|
+
vErrors.push(err22);
|
|
4642
5680
|
}
|
|
4643
5681
|
errors++;
|
|
4644
5682
|
}
|
|
4645
5683
|
}
|
|
4646
|
-
var _valid2 =
|
|
4647
|
-
|
|
5684
|
+
var _valid2 = _errs45 === errors;
|
|
5685
|
+
valid17 = _valid2;
|
|
4648
5686
|
ifClause2 = "then";
|
|
4649
5687
|
} else {
|
|
4650
|
-
const
|
|
4651
|
-
const
|
|
4652
|
-
let
|
|
4653
|
-
const
|
|
5688
|
+
const _errs60 = errors;
|
|
5689
|
+
const _errs61 = errors;
|
|
5690
|
+
let valid24 = true;
|
|
5691
|
+
const _errs62 = errors;
|
|
4654
5692
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4655
5693
|
if (data.kind === void 0 && ("kind")) {
|
|
4656
|
-
const
|
|
5694
|
+
const err23 = {};
|
|
4657
5695
|
if (vErrors === null) {
|
|
4658
|
-
vErrors = [
|
|
5696
|
+
vErrors = [err23];
|
|
4659
5697
|
} else {
|
|
4660
|
-
vErrors.push(
|
|
5698
|
+
vErrors.push(err23);
|
|
4661
5699
|
}
|
|
4662
5700
|
errors++;
|
|
4663
5701
|
} else {
|
|
4664
5702
|
if (data.kind !== void 0) {
|
|
4665
5703
|
if ("time" !== data.kind) {
|
|
4666
|
-
const
|
|
5704
|
+
const err24 = {};
|
|
4667
5705
|
if (vErrors === null) {
|
|
4668
|
-
vErrors = [
|
|
5706
|
+
vErrors = [err24];
|
|
4669
5707
|
} else {
|
|
4670
|
-
vErrors.push(
|
|
5708
|
+
vErrors.push(err24);
|
|
4671
5709
|
}
|
|
4672
5710
|
errors++;
|
|
4673
5711
|
}
|
|
4674
5712
|
}
|
|
4675
5713
|
}
|
|
4676
5714
|
}
|
|
4677
|
-
var _valid3 =
|
|
4678
|
-
errors =
|
|
5715
|
+
var _valid3 = _errs62 === errors;
|
|
5716
|
+
errors = _errs61;
|
|
4679
5717
|
if (vErrors !== null) {
|
|
4680
|
-
if (
|
|
4681
|
-
vErrors.length =
|
|
5718
|
+
if (_errs61) {
|
|
5719
|
+
vErrors.length = _errs61;
|
|
4682
5720
|
} else {
|
|
4683
5721
|
vErrors = null;
|
|
4684
5722
|
}
|
|
4685
5723
|
}
|
|
4686
5724
|
let ifClause3;
|
|
4687
5725
|
if (_valid3) {
|
|
4688
|
-
const
|
|
5726
|
+
const _errs64 = errors;
|
|
4689
5727
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4690
5728
|
if (data.time === void 0) {
|
|
4691
|
-
const
|
|
5729
|
+
const err25 = { instancePath, schemaPath: "#/else/else/else/then/required", keyword: "required", params: { missingProperty: "time" }, message: "must have required property 'time'" };
|
|
4692
5730
|
if (vErrors === null) {
|
|
4693
|
-
vErrors = [
|
|
5731
|
+
vErrors = [err25];
|
|
4694
5732
|
} else {
|
|
4695
|
-
vErrors.push(
|
|
5733
|
+
vErrors.push(err25);
|
|
4696
5734
|
}
|
|
4697
5735
|
errors++;
|
|
4698
5736
|
}
|
|
@@ -4703,76 +5741,85 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4703
5741
|
}
|
|
4704
5742
|
}
|
|
4705
5743
|
if (data.state !== void 0) {
|
|
4706
|
-
const
|
|
5744
|
+
const err26 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4707
5745
|
if (vErrors === null) {
|
|
4708
|
-
vErrors = [
|
|
5746
|
+
vErrors = [err26];
|
|
4709
5747
|
} else {
|
|
4710
|
-
vErrors.push(
|
|
5748
|
+
vErrors.push(err26);
|
|
4711
5749
|
}
|
|
4712
5750
|
errors++;
|
|
4713
5751
|
}
|
|
4714
5752
|
if (data.git !== void 0) {
|
|
4715
|
-
const
|
|
5753
|
+
const err27 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4716
5754
|
if (vErrors === null) {
|
|
4717
|
-
vErrors = [
|
|
5755
|
+
vErrors = [err27];
|
|
4718
5756
|
} else {
|
|
4719
|
-
vErrors.push(
|
|
5757
|
+
vErrors.push(err27);
|
|
4720
5758
|
}
|
|
4721
5759
|
errors++;
|
|
4722
5760
|
}
|
|
4723
5761
|
if (data.regions !== void 0) {
|
|
4724
|
-
const
|
|
5762
|
+
const err28 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4725
5763
|
if (vErrors === null) {
|
|
4726
|
-
vErrors = [
|
|
5764
|
+
vErrors = [err28];
|
|
4727
5765
|
} else {
|
|
4728
|
-
vErrors.push(
|
|
5766
|
+
vErrors.push(err28);
|
|
5767
|
+
}
|
|
5768
|
+
errors++;
|
|
5769
|
+
}
|
|
5770
|
+
if (data.lineup !== void 0) {
|
|
5771
|
+
const err29 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
5772
|
+
if (vErrors === null) {
|
|
5773
|
+
vErrors = [err29];
|
|
5774
|
+
} else {
|
|
5775
|
+
vErrors.push(err29);
|
|
4729
5776
|
}
|
|
4730
5777
|
errors++;
|
|
4731
5778
|
}
|
|
4732
5779
|
}
|
|
4733
|
-
var _valid3 =
|
|
4734
|
-
|
|
5780
|
+
var _valid3 = _errs64 === errors;
|
|
5781
|
+
valid24 = _valid3;
|
|
4735
5782
|
ifClause3 = "then";
|
|
4736
5783
|
} else {
|
|
4737
|
-
const
|
|
4738
|
-
const
|
|
4739
|
-
let
|
|
4740
|
-
const
|
|
5784
|
+
const _errs78 = errors;
|
|
5785
|
+
const _errs79 = errors;
|
|
5786
|
+
let valid31 = true;
|
|
5787
|
+
const _errs80 = errors;
|
|
4741
5788
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4742
5789
|
if (data.kind === void 0 && ("kind")) {
|
|
4743
|
-
const
|
|
5790
|
+
const err30 = {};
|
|
4744
5791
|
if (vErrors === null) {
|
|
4745
|
-
vErrors = [
|
|
5792
|
+
vErrors = [err30];
|
|
4746
5793
|
} else {
|
|
4747
|
-
vErrors.push(
|
|
5794
|
+
vErrors.push(err30);
|
|
4748
5795
|
}
|
|
4749
5796
|
errors++;
|
|
4750
5797
|
} else {
|
|
4751
5798
|
if (data.kind !== void 0) {
|
|
4752
5799
|
if ("tree" !== data.kind) {
|
|
4753
|
-
const
|
|
5800
|
+
const err31 = {};
|
|
4754
5801
|
if (vErrors === null) {
|
|
4755
|
-
vErrors = [
|
|
5802
|
+
vErrors = [err31];
|
|
4756
5803
|
} else {
|
|
4757
|
-
vErrors.push(
|
|
5804
|
+
vErrors.push(err31);
|
|
4758
5805
|
}
|
|
4759
5806
|
errors++;
|
|
4760
5807
|
}
|
|
4761
5808
|
}
|
|
4762
5809
|
}
|
|
4763
5810
|
}
|
|
4764
|
-
var _valid4 =
|
|
4765
|
-
errors =
|
|
5811
|
+
var _valid4 = _errs80 === errors;
|
|
5812
|
+
errors = _errs79;
|
|
4766
5813
|
if (vErrors !== null) {
|
|
4767
|
-
if (
|
|
4768
|
-
vErrors.length =
|
|
5814
|
+
if (_errs79) {
|
|
5815
|
+
vErrors.length = _errs79;
|
|
4769
5816
|
} else {
|
|
4770
5817
|
vErrors = null;
|
|
4771
5818
|
}
|
|
4772
5819
|
}
|
|
4773
5820
|
let ifClause4;
|
|
4774
5821
|
if (_valid4) {
|
|
4775
|
-
const
|
|
5822
|
+
const _errs82 = errors;
|
|
4776
5823
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4777
5824
|
if (data.steps !== void 0) {
|
|
4778
5825
|
if (!validate22(data.steps, { instancePath: instancePath + "/steps", parentData: data, parentDataProperty: "steps", rootData })) {
|
|
@@ -4787,409 +5834,595 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4787
5834
|
}
|
|
4788
5835
|
}
|
|
4789
5836
|
if (data.state !== void 0) {
|
|
4790
|
-
const
|
|
5837
|
+
const err32 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4791
5838
|
if (vErrors === null) {
|
|
4792
|
-
vErrors = [
|
|
5839
|
+
vErrors = [err32];
|
|
4793
5840
|
} else {
|
|
4794
|
-
vErrors.push(
|
|
5841
|
+
vErrors.push(err32);
|
|
4795
5842
|
}
|
|
4796
5843
|
errors++;
|
|
4797
5844
|
}
|
|
4798
5845
|
if (data.git !== void 0) {
|
|
4799
|
-
const
|
|
5846
|
+
const err33 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
5847
|
+
if (vErrors === null) {
|
|
5848
|
+
vErrors = [err33];
|
|
5849
|
+
} else {
|
|
5850
|
+
vErrors.push(err33);
|
|
5851
|
+
}
|
|
5852
|
+
errors++;
|
|
5853
|
+
}
|
|
5854
|
+
if (data.time !== void 0) {
|
|
5855
|
+
const err34 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4800
5856
|
if (vErrors === null) {
|
|
4801
|
-
vErrors = [
|
|
5857
|
+
vErrors = [err34];
|
|
4802
5858
|
} else {
|
|
4803
|
-
vErrors.push(
|
|
5859
|
+
vErrors.push(err34);
|
|
4804
5860
|
}
|
|
4805
5861
|
errors++;
|
|
4806
5862
|
}
|
|
4807
|
-
if (data.
|
|
4808
|
-
const
|
|
5863
|
+
if (data.regions !== void 0) {
|
|
5864
|
+
const err35 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4809
5865
|
if (vErrors === null) {
|
|
4810
|
-
vErrors = [
|
|
5866
|
+
vErrors = [err35];
|
|
4811
5867
|
} else {
|
|
4812
|
-
vErrors.push(
|
|
5868
|
+
vErrors.push(err35);
|
|
4813
5869
|
}
|
|
4814
5870
|
errors++;
|
|
4815
5871
|
}
|
|
4816
|
-
if (data.
|
|
4817
|
-
const
|
|
5872
|
+
if (data.lineup !== void 0) {
|
|
5873
|
+
const err36 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4818
5874
|
if (vErrors === null) {
|
|
4819
|
-
vErrors = [
|
|
5875
|
+
vErrors = [err36];
|
|
4820
5876
|
} else {
|
|
4821
|
-
vErrors.push(
|
|
5877
|
+
vErrors.push(err36);
|
|
4822
5878
|
}
|
|
4823
5879
|
errors++;
|
|
4824
5880
|
}
|
|
4825
5881
|
}
|
|
4826
|
-
var _valid4 =
|
|
4827
|
-
|
|
5882
|
+
var _valid4 = _errs82 === errors;
|
|
5883
|
+
valid31 = _valid4;
|
|
4828
5884
|
ifClause4 = "then";
|
|
4829
5885
|
} else {
|
|
4830
|
-
const
|
|
5886
|
+
const _errs100 = errors;
|
|
5887
|
+
const _errs101 = errors;
|
|
5888
|
+
let valid39 = true;
|
|
5889
|
+
const _errs102 = errors;
|
|
4831
5890
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4832
|
-
if (data.
|
|
4833
|
-
|
|
4834
|
-
if (
|
|
4835
|
-
|
|
4836
|
-
|
|
5891
|
+
if (data.kind === void 0 && ("kind")) {
|
|
5892
|
+
const err37 = {};
|
|
5893
|
+
if (vErrors === null) {
|
|
5894
|
+
vErrors = [err37];
|
|
5895
|
+
} else {
|
|
5896
|
+
vErrors.push(err37);
|
|
5897
|
+
}
|
|
5898
|
+
errors++;
|
|
5899
|
+
} else {
|
|
5900
|
+
if (data.kind !== void 0) {
|
|
5901
|
+
if ("lineup" !== data.kind) {
|
|
5902
|
+
const err38 = {};
|
|
4837
5903
|
if (vErrors === null) {
|
|
4838
|
-
vErrors = [
|
|
5904
|
+
vErrors = [err38];
|
|
4839
5905
|
} else {
|
|
4840
|
-
vErrors.push(
|
|
5906
|
+
vErrors.push(err38);
|
|
4841
5907
|
}
|
|
4842
5908
|
errors++;
|
|
4843
5909
|
}
|
|
4844
5910
|
}
|
|
4845
5911
|
}
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
5912
|
+
}
|
|
5913
|
+
var _valid5 = _errs102 === errors;
|
|
5914
|
+
errors = _errs101;
|
|
5915
|
+
if (vErrors !== null) {
|
|
5916
|
+
if (_errs101) {
|
|
5917
|
+
vErrors.length = _errs101;
|
|
5918
|
+
} else {
|
|
5919
|
+
vErrors = null;
|
|
4851
5920
|
}
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
5921
|
+
}
|
|
5922
|
+
let ifClause5;
|
|
5923
|
+
if (_valid5) {
|
|
5924
|
+
const _errs104 = errors;
|
|
5925
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
5926
|
+
if (data.lineup === void 0) {
|
|
5927
|
+
const err39 = { instancePath, schemaPath: "#/else/else/else/else/else/then/required", keyword: "required", params: { missingProperty: "lineup" }, message: "must have required property 'lineup'" };
|
|
5928
|
+
if (vErrors === null) {
|
|
5929
|
+
vErrors = [err39];
|
|
5930
|
+
} else {
|
|
5931
|
+
vErrors.push(err39);
|
|
5932
|
+
}
|
|
5933
|
+
errors++;
|
|
4856
5934
|
}
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
5935
|
+
if (data.boxes !== void 0) {
|
|
5936
|
+
let data39 = data.boxes;
|
|
5937
|
+
if (Array.isArray(data39)) {
|
|
5938
|
+
if (data39.length < 1) {
|
|
5939
|
+
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" };
|
|
5940
|
+
if (vErrors === null) {
|
|
5941
|
+
vErrors = [err40];
|
|
5942
|
+
} else {
|
|
5943
|
+
vErrors.push(err40);
|
|
5944
|
+
}
|
|
5945
|
+
errors++;
|
|
5946
|
+
}
|
|
5947
|
+
const len1 = data39.length;
|
|
5948
|
+
for (let i1 = 0; i1 < len1; i1++) {
|
|
5949
|
+
let data40 = data39[i1];
|
|
5950
|
+
if (data40 && typeof data40 == "object" && !Array.isArray(data40)) {
|
|
5951
|
+
if (data40.icon !== void 0) {
|
|
5952
|
+
const err41 = { instancePath: instancePath + "/boxes/" + i1 + "/icon", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
5953
|
+
if (vErrors === null) {
|
|
5954
|
+
vErrors = [err41];
|
|
5955
|
+
} else {
|
|
5956
|
+
vErrors.push(err41);
|
|
5957
|
+
}
|
|
5958
|
+
errors++;
|
|
5959
|
+
}
|
|
5960
|
+
if (data40.link !== void 0) {
|
|
5961
|
+
const err42 = { instancePath: instancePath + "/boxes/" + i1 + "/link", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
5962
|
+
if (vErrors === null) {
|
|
5963
|
+
vErrors = [err42];
|
|
5964
|
+
} else {
|
|
5965
|
+
vErrors.push(err42);
|
|
5966
|
+
}
|
|
5967
|
+
errors++;
|
|
5968
|
+
}
|
|
5969
|
+
if (data40.region !== void 0) {
|
|
5970
|
+
const err43 = { instancePath: instancePath + "/boxes/" + i1 + "/region", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
5971
|
+
if (vErrors === null) {
|
|
5972
|
+
vErrors = [err43];
|
|
5973
|
+
} else {
|
|
5974
|
+
vErrors.push(err43);
|
|
5975
|
+
}
|
|
5976
|
+
errors++;
|
|
5977
|
+
}
|
|
5978
|
+
}
|
|
5979
|
+
}
|
|
5980
|
+
}
|
|
4864
5981
|
}
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
5982
|
+
if (data.steps !== void 0) {
|
|
5983
|
+
if (!validate25(data.steps, { instancePath: instancePath + "/steps", parentData: data, parentDataProperty: "steps", rootData })) {
|
|
5984
|
+
vErrors = vErrors === null ? validate25.errors : vErrors.concat(validate25.errors);
|
|
5985
|
+
errors = vErrors.length;
|
|
5986
|
+
}
|
|
5987
|
+
}
|
|
5988
|
+
if (data.strip !== void 0) {
|
|
5989
|
+
if (!validate13(data.strip, { instancePath: instancePath + "/strip", parentData: data, parentDataProperty: "strip", rootData })) {
|
|
5990
|
+
vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);
|
|
5991
|
+
errors = vErrors.length;
|
|
5992
|
+
}
|
|
5993
|
+
}
|
|
5994
|
+
if (data.state !== void 0) {
|
|
5995
|
+
const err44 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
5996
|
+
if (vErrors === null) {
|
|
5997
|
+
vErrors = [err44];
|
|
5998
|
+
} else {
|
|
5999
|
+
vErrors.push(err44);
|
|
6000
|
+
}
|
|
6001
|
+
errors++;
|
|
6002
|
+
}
|
|
6003
|
+
if (data.git !== void 0) {
|
|
6004
|
+
const err45 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
6005
|
+
if (vErrors === null) {
|
|
6006
|
+
vErrors = [err45];
|
|
6007
|
+
} else {
|
|
6008
|
+
vErrors.push(err45);
|
|
6009
|
+
}
|
|
6010
|
+
errors++;
|
|
6011
|
+
}
|
|
6012
|
+
if (data.time !== void 0) {
|
|
6013
|
+
const err46 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
6014
|
+
if (vErrors === null) {
|
|
6015
|
+
vErrors = [err46];
|
|
6016
|
+
} else {
|
|
6017
|
+
vErrors.push(err46);
|
|
6018
|
+
}
|
|
6019
|
+
errors++;
|
|
6020
|
+
}
|
|
6021
|
+
if (data.regions !== void 0) {
|
|
6022
|
+
const err47 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
6023
|
+
if (vErrors === null) {
|
|
6024
|
+
vErrors = [err47];
|
|
6025
|
+
} else {
|
|
6026
|
+
vErrors.push(err47);
|
|
6027
|
+
}
|
|
6028
|
+
errors++;
|
|
4873
6029
|
}
|
|
4874
|
-
errors++;
|
|
4875
6030
|
}
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
6031
|
+
var _valid5 = _errs104 === errors;
|
|
6032
|
+
valid39 = _valid5;
|
|
6033
|
+
ifClause5 = "then";
|
|
6034
|
+
} else {
|
|
6035
|
+
const _errs130 = errors;
|
|
6036
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
6037
|
+
if (data.boxes !== void 0) {
|
|
6038
|
+
let data50 = data.boxes;
|
|
6039
|
+
if (Array.isArray(data50)) {
|
|
6040
|
+
if (data50.length < 1) {
|
|
6041
|
+
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" };
|
|
6042
|
+
if (vErrors === null) {
|
|
6043
|
+
vErrors = [err48];
|
|
6044
|
+
} else {
|
|
6045
|
+
vErrors.push(err48);
|
|
6046
|
+
}
|
|
6047
|
+
errors++;
|
|
6048
|
+
}
|
|
6049
|
+
}
|
|
4882
6050
|
}
|
|
4883
|
-
|
|
6051
|
+
if (data.steps !== void 0) {
|
|
6052
|
+
if (!validate11(data.steps, { instancePath: instancePath + "/steps", parentData: data, parentDataProperty: "steps", rootData })) {
|
|
6053
|
+
vErrors = vErrors === null ? validate11.errors : vErrors.concat(validate11.errors);
|
|
6054
|
+
errors = vErrors.length;
|
|
6055
|
+
}
|
|
6056
|
+
}
|
|
6057
|
+
if (data.strip !== void 0) {
|
|
6058
|
+
if (!validate13(data.strip, { instancePath: instancePath + "/strip", parentData: data, parentDataProperty: "strip", rootData })) {
|
|
6059
|
+
vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);
|
|
6060
|
+
errors = vErrors.length;
|
|
6061
|
+
}
|
|
6062
|
+
}
|
|
6063
|
+
if (data.state !== void 0) {
|
|
6064
|
+
const err49 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
6065
|
+
if (vErrors === null) {
|
|
6066
|
+
vErrors = [err49];
|
|
6067
|
+
} else {
|
|
6068
|
+
vErrors.push(err49);
|
|
6069
|
+
}
|
|
6070
|
+
errors++;
|
|
6071
|
+
}
|
|
6072
|
+
if (data.git !== void 0) {
|
|
6073
|
+
const err50 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
6074
|
+
if (vErrors === null) {
|
|
6075
|
+
vErrors = [err50];
|
|
6076
|
+
} else {
|
|
6077
|
+
vErrors.push(err50);
|
|
6078
|
+
}
|
|
6079
|
+
errors++;
|
|
6080
|
+
}
|
|
6081
|
+
if (data.time !== void 0) {
|
|
6082
|
+
const err51 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
6083
|
+
if (vErrors === null) {
|
|
6084
|
+
vErrors = [err51];
|
|
6085
|
+
} else {
|
|
6086
|
+
vErrors.push(err51);
|
|
6087
|
+
}
|
|
6088
|
+
errors++;
|
|
6089
|
+
}
|
|
6090
|
+
if (data.lineup !== void 0) {
|
|
6091
|
+
const err52 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
6092
|
+
if (vErrors === null) {
|
|
6093
|
+
vErrors = [err52];
|
|
6094
|
+
} else {
|
|
6095
|
+
vErrors.push(err52);
|
|
6096
|
+
}
|
|
6097
|
+
errors++;
|
|
6098
|
+
}
|
|
6099
|
+
}
|
|
6100
|
+
var _valid5 = _errs130 === errors;
|
|
6101
|
+
valid39 = _valid5;
|
|
6102
|
+
ifClause5 = "else";
|
|
6103
|
+
}
|
|
6104
|
+
if (!valid39) {
|
|
6105
|
+
const err53 = { instancePath, schemaPath: "#/else/else/else/else/else/if", keyword: "if", params: { failingKeyword: ifClause5 }, message: 'must match "' + ifClause5 + '" schema' };
|
|
6106
|
+
if (vErrors === null) {
|
|
6107
|
+
vErrors = [err53];
|
|
6108
|
+
} else {
|
|
6109
|
+
vErrors.push(err53);
|
|
4884
6110
|
}
|
|
6111
|
+
errors++;
|
|
4885
6112
|
}
|
|
4886
|
-
var _valid4 =
|
|
4887
|
-
|
|
6113
|
+
var _valid4 = _errs100 === errors;
|
|
6114
|
+
valid31 = _valid4;
|
|
4888
6115
|
ifClause4 = "else";
|
|
4889
6116
|
}
|
|
4890
|
-
if (!
|
|
4891
|
-
const
|
|
6117
|
+
if (!valid31) {
|
|
6118
|
+
const err54 = { instancePath, schemaPath: "#/else/else/else/else/if", keyword: "if", params: { failingKeyword: ifClause4 }, message: 'must match "' + ifClause4 + '" schema' };
|
|
4892
6119
|
if (vErrors === null) {
|
|
4893
|
-
vErrors = [
|
|
6120
|
+
vErrors = [err54];
|
|
4894
6121
|
} else {
|
|
4895
|
-
vErrors.push(
|
|
6122
|
+
vErrors.push(err54);
|
|
4896
6123
|
}
|
|
4897
6124
|
errors++;
|
|
4898
6125
|
}
|
|
4899
|
-
var _valid3 =
|
|
4900
|
-
|
|
6126
|
+
var _valid3 = _errs78 === errors;
|
|
6127
|
+
valid24 = _valid3;
|
|
4901
6128
|
ifClause3 = "else";
|
|
4902
6129
|
}
|
|
4903
|
-
if (!
|
|
4904
|
-
const
|
|
6130
|
+
if (!valid24) {
|
|
6131
|
+
const err55 = { instancePath, schemaPath: "#/else/else/else/if", keyword: "if", params: { failingKeyword: ifClause3 }, message: 'must match "' + ifClause3 + '" schema' };
|
|
4905
6132
|
if (vErrors === null) {
|
|
4906
|
-
vErrors = [
|
|
6133
|
+
vErrors = [err55];
|
|
4907
6134
|
} else {
|
|
4908
|
-
vErrors.push(
|
|
6135
|
+
vErrors.push(err55);
|
|
4909
6136
|
}
|
|
4910
6137
|
errors++;
|
|
4911
6138
|
}
|
|
4912
|
-
var _valid2 =
|
|
4913
|
-
|
|
6139
|
+
var _valid2 = _errs60 === errors;
|
|
6140
|
+
valid17 = _valid2;
|
|
4914
6141
|
ifClause2 = "else";
|
|
4915
6142
|
}
|
|
4916
|
-
if (!
|
|
4917
|
-
const
|
|
6143
|
+
if (!valid17) {
|
|
6144
|
+
const err56 = { instancePath, schemaPath: "#/else/else/if", keyword: "if", params: { failingKeyword: ifClause2 }, message: 'must match "' + ifClause2 + '" schema' };
|
|
4918
6145
|
if (vErrors === null) {
|
|
4919
|
-
vErrors = [
|
|
6146
|
+
vErrors = [err56];
|
|
4920
6147
|
} else {
|
|
4921
|
-
vErrors.push(
|
|
6148
|
+
vErrors.push(err56);
|
|
4922
6149
|
}
|
|
4923
6150
|
errors++;
|
|
4924
6151
|
}
|
|
4925
|
-
var _valid1 =
|
|
4926
|
-
|
|
6152
|
+
var _valid1 = _errs41 === errors;
|
|
6153
|
+
valid7 = _valid1;
|
|
4927
6154
|
ifClause1 = "else";
|
|
4928
6155
|
}
|
|
4929
|
-
if (!
|
|
4930
|
-
const
|
|
6156
|
+
if (!valid7) {
|
|
6157
|
+
const err57 = { instancePath, schemaPath: "#/else/if", keyword: "if", params: { failingKeyword: ifClause1 }, message: 'must match "' + ifClause1 + '" schema' };
|
|
4931
6158
|
if (vErrors === null) {
|
|
4932
|
-
vErrors = [
|
|
6159
|
+
vErrors = [err57];
|
|
4933
6160
|
} else {
|
|
4934
|
-
vErrors.push(
|
|
6161
|
+
vErrors.push(err57);
|
|
4935
6162
|
}
|
|
4936
6163
|
errors++;
|
|
4937
6164
|
}
|
|
4938
6165
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4939
6166
|
if (data.sequence !== void 0) {
|
|
4940
|
-
const
|
|
6167
|
+
const err58 = { instancePath: instancePath + "/sequence", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
4941
6168
|
if (vErrors === null) {
|
|
4942
|
-
vErrors = [
|
|
6169
|
+
vErrors = [err58];
|
|
4943
6170
|
} else {
|
|
4944
|
-
vErrors.push(
|
|
6171
|
+
vErrors.push(err58);
|
|
4945
6172
|
}
|
|
4946
6173
|
errors++;
|
|
4947
6174
|
}
|
|
4948
6175
|
}
|
|
4949
|
-
var _valid0 =
|
|
6176
|
+
var _valid0 = _errs20 === errors;
|
|
4950
6177
|
valid0 = _valid0;
|
|
4951
6178
|
ifClause0 = "else";
|
|
4952
6179
|
}
|
|
4953
6180
|
if (!valid0) {
|
|
4954
|
-
const
|
|
6181
|
+
const err59 = { instancePath, schemaPath: "#/if", keyword: "if", params: { failingKeyword: ifClause0 }, message: 'must match "' + ifClause0 + '" schema' };
|
|
4955
6182
|
if (vErrors === null) {
|
|
4956
|
-
vErrors = [
|
|
6183
|
+
vErrors = [err59];
|
|
4957
6184
|
} else {
|
|
4958
|
-
vErrors.push(
|
|
6185
|
+
vErrors.push(err59);
|
|
4959
6186
|
}
|
|
4960
6187
|
errors++;
|
|
4961
6188
|
}
|
|
4962
6189
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4963
6190
|
if (data.version === void 0) {
|
|
4964
|
-
const
|
|
6191
|
+
const err60 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "version" }, message: "must have required property 'version'" };
|
|
4965
6192
|
if (vErrors === null) {
|
|
4966
|
-
vErrors = [
|
|
6193
|
+
vErrors = [err60];
|
|
4967
6194
|
} else {
|
|
4968
|
-
vErrors.push(
|
|
6195
|
+
vErrors.push(err60);
|
|
4969
6196
|
}
|
|
4970
6197
|
errors++;
|
|
4971
6198
|
}
|
|
4972
6199
|
if (data.kind === void 0) {
|
|
4973
|
-
const
|
|
6200
|
+
const err61 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "kind" }, message: "must have required property 'kind'" };
|
|
4974
6201
|
if (vErrors === null) {
|
|
4975
|
-
vErrors = [
|
|
6202
|
+
vErrors = [err61];
|
|
4976
6203
|
} else {
|
|
4977
|
-
vErrors.push(
|
|
6204
|
+
vErrors.push(err61);
|
|
4978
6205
|
}
|
|
4979
6206
|
errors++;
|
|
4980
6207
|
}
|
|
4981
6208
|
if (data.title === void 0) {
|
|
4982
|
-
const
|
|
6209
|
+
const err62 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "title" }, message: "must have required property 'title'" };
|
|
4983
6210
|
if (vErrors === null) {
|
|
4984
|
-
vErrors = [
|
|
6211
|
+
vErrors = [err62];
|
|
4985
6212
|
} else {
|
|
4986
|
-
vErrors.push(
|
|
6213
|
+
vErrors.push(err62);
|
|
4987
6214
|
}
|
|
4988
6215
|
errors++;
|
|
4989
6216
|
}
|
|
4990
6217
|
if (data.boxes === void 0) {
|
|
4991
|
-
const
|
|
6218
|
+
const err63 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "boxes" }, message: "must have required property 'boxes'" };
|
|
4992
6219
|
if (vErrors === null) {
|
|
4993
|
-
vErrors = [
|
|
6220
|
+
vErrors = [err63];
|
|
4994
6221
|
} else {
|
|
4995
|
-
vErrors.push(
|
|
6222
|
+
vErrors.push(err63);
|
|
4996
6223
|
}
|
|
4997
6224
|
errors++;
|
|
4998
6225
|
}
|
|
4999
6226
|
if (data.steps === void 0) {
|
|
5000
|
-
const
|
|
6227
|
+
const err64 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "steps" }, message: "must have required property 'steps'" };
|
|
5001
6228
|
if (vErrors === null) {
|
|
5002
|
-
vErrors = [
|
|
6229
|
+
vErrors = [err64];
|
|
5003
6230
|
} else {
|
|
5004
|
-
vErrors.push(
|
|
6231
|
+
vErrors.push(err64);
|
|
5005
6232
|
}
|
|
5006
6233
|
errors++;
|
|
5007
6234
|
}
|
|
5008
6235
|
for (const key0 in data) {
|
|
5009
6236
|
if (!func2.call(schema11.properties, key0)) {
|
|
5010
|
-
const
|
|
6237
|
+
const err65 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
5011
6238
|
if (vErrors === null) {
|
|
5012
|
-
vErrors = [
|
|
6239
|
+
vErrors = [err65];
|
|
5013
6240
|
} else {
|
|
5014
|
-
vErrors.push(
|
|
6241
|
+
vErrors.push(err65);
|
|
5015
6242
|
}
|
|
5016
6243
|
errors++;
|
|
5017
6244
|
}
|
|
5018
6245
|
}
|
|
5019
6246
|
if (data.version !== void 0) {
|
|
5020
|
-
let
|
|
5021
|
-
if (!(typeof
|
|
5022
|
-
const
|
|
6247
|
+
let data58 = data.version;
|
|
6248
|
+
if (!(typeof data58 == "number" && (!(data58 % 1) && !isNaN(data58)) && isFinite(data58))) {
|
|
6249
|
+
const err66 = { instancePath: instancePath + "/version", schemaPath: "#/properties/version/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
5023
6250
|
if (vErrors === null) {
|
|
5024
|
-
vErrors = [
|
|
6251
|
+
vErrors = [err66];
|
|
5025
6252
|
} else {
|
|
5026
|
-
vErrors.push(
|
|
6253
|
+
vErrors.push(err66);
|
|
5027
6254
|
}
|
|
5028
6255
|
errors++;
|
|
5029
6256
|
}
|
|
5030
|
-
if (typeof
|
|
5031
|
-
if (
|
|
5032
|
-
const
|
|
6257
|
+
if (typeof data58 == "number" && isFinite(data58)) {
|
|
6258
|
+
if (data58 < 1 || isNaN(data58)) {
|
|
6259
|
+
const err67 = { instancePath: instancePath + "/version", schemaPath: "#/properties/version/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" };
|
|
5033
6260
|
if (vErrors === null) {
|
|
5034
|
-
vErrors = [
|
|
6261
|
+
vErrors = [err67];
|
|
5035
6262
|
} else {
|
|
5036
|
-
vErrors.push(
|
|
6263
|
+
vErrors.push(err67);
|
|
5037
6264
|
}
|
|
5038
6265
|
errors++;
|
|
5039
6266
|
}
|
|
5040
6267
|
}
|
|
5041
6268
|
}
|
|
5042
6269
|
if (data.kind !== void 0) {
|
|
5043
|
-
let
|
|
5044
|
-
if (!(
|
|
5045
|
-
const
|
|
6270
|
+
let data59 = data.kind;
|
|
6271
|
+
if (!(data59 === "sequence" || data59 === "architecture" || data59 === "state" || data59 === "git" || data59 === "time" || data59 === "tree" || data59 === "lineup")) {
|
|
6272
|
+
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" };
|
|
5046
6273
|
if (vErrors === null) {
|
|
5047
|
-
vErrors = [
|
|
6274
|
+
vErrors = [err68];
|
|
5048
6275
|
} else {
|
|
5049
|
-
vErrors.push(
|
|
6276
|
+
vErrors.push(err68);
|
|
5050
6277
|
}
|
|
5051
6278
|
errors++;
|
|
5052
6279
|
}
|
|
5053
6280
|
}
|
|
5054
6281
|
if (data.title !== void 0) {
|
|
5055
|
-
let
|
|
5056
|
-
if (typeof
|
|
5057
|
-
if (func3(
|
|
5058
|
-
const
|
|
6282
|
+
let data60 = data.title;
|
|
6283
|
+
if (typeof data60 === "string") {
|
|
6284
|
+
if (func3(data60) < 1) {
|
|
6285
|
+
const err69 = { instancePath: instancePath + "/title", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
5059
6286
|
if (vErrors === null) {
|
|
5060
|
-
vErrors = [
|
|
6287
|
+
vErrors = [err69];
|
|
5061
6288
|
} else {
|
|
5062
|
-
vErrors.push(
|
|
6289
|
+
vErrors.push(err69);
|
|
5063
6290
|
}
|
|
5064
6291
|
errors++;
|
|
5065
6292
|
}
|
|
5066
6293
|
} else {
|
|
5067
|
-
const
|
|
6294
|
+
const err70 = { instancePath: instancePath + "/title", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
5068
6295
|
if (vErrors === null) {
|
|
5069
|
-
vErrors = [
|
|
6296
|
+
vErrors = [err70];
|
|
5070
6297
|
} else {
|
|
5071
|
-
vErrors.push(
|
|
6298
|
+
vErrors.push(err70);
|
|
5072
6299
|
}
|
|
5073
6300
|
errors++;
|
|
5074
6301
|
}
|
|
5075
6302
|
}
|
|
5076
6303
|
if (data.view !== void 0) {
|
|
5077
|
-
let
|
|
5078
|
-
if (!(
|
|
5079
|
-
const
|
|
6304
|
+
let data61 = data.view;
|
|
6305
|
+
if (!(data61 === "fixed" || data61 === "follow")) {
|
|
6306
|
+
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" };
|
|
5080
6307
|
if (vErrors === null) {
|
|
5081
|
-
vErrors = [
|
|
6308
|
+
vErrors = [err71];
|
|
5082
6309
|
} else {
|
|
5083
|
-
vErrors.push(
|
|
6310
|
+
vErrors.push(err71);
|
|
5084
6311
|
}
|
|
5085
6312
|
errors++;
|
|
5086
6313
|
}
|
|
5087
6314
|
}
|
|
5088
6315
|
if (data.regions !== void 0) {
|
|
5089
|
-
let
|
|
5090
|
-
if (Array.isArray(
|
|
5091
|
-
const
|
|
5092
|
-
for (let
|
|
5093
|
-
if (!
|
|
5094
|
-
vErrors = vErrors === null ?
|
|
6316
|
+
let data62 = data.regions;
|
|
6317
|
+
if (Array.isArray(data62)) {
|
|
6318
|
+
const len2 = data62.length;
|
|
6319
|
+
for (let i2 = 0; i2 < len2; i2++) {
|
|
6320
|
+
if (!validate30(data62[i2], { instancePath: instancePath + "/regions/" + i2, parentData: data62, parentDataProperty: i2, rootData })) {
|
|
6321
|
+
vErrors = vErrors === null ? validate30.errors : vErrors.concat(validate30.errors);
|
|
5095
6322
|
errors = vErrors.length;
|
|
5096
6323
|
}
|
|
5097
6324
|
}
|
|
5098
6325
|
} else {
|
|
5099
|
-
const
|
|
6326
|
+
const err72 = { instancePath: instancePath + "/regions", schemaPath: "#/properties/regions/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
5100
6327
|
if (vErrors === null) {
|
|
5101
|
-
vErrors = [
|
|
6328
|
+
vErrors = [err72];
|
|
5102
6329
|
} else {
|
|
5103
|
-
vErrors.push(
|
|
6330
|
+
vErrors.push(err72);
|
|
5104
6331
|
}
|
|
5105
6332
|
errors++;
|
|
5106
6333
|
}
|
|
5107
6334
|
}
|
|
5108
6335
|
if (data.boxes !== void 0) {
|
|
5109
|
-
let
|
|
5110
|
-
if (Array.isArray(
|
|
5111
|
-
const
|
|
5112
|
-
for (let
|
|
5113
|
-
if (!
|
|
5114
|
-
vErrors = vErrors === null ?
|
|
6336
|
+
let data64 = data.boxes;
|
|
6337
|
+
if (Array.isArray(data64)) {
|
|
6338
|
+
const len3 = data64.length;
|
|
6339
|
+
for (let i3 = 0; i3 < len3; i3++) {
|
|
6340
|
+
if (!validate32(data64[i3], { instancePath: instancePath + "/boxes/" + i3, parentData: data64, parentDataProperty: i3, rootData })) {
|
|
6341
|
+
vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);
|
|
5115
6342
|
errors = vErrors.length;
|
|
5116
6343
|
}
|
|
5117
6344
|
}
|
|
5118
6345
|
} else {
|
|
5119
|
-
const
|
|
6346
|
+
const err73 = { instancePath: instancePath + "/boxes", schemaPath: "#/properties/boxes/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
5120
6347
|
if (vErrors === null) {
|
|
5121
|
-
vErrors = [
|
|
6348
|
+
vErrors = [err73];
|
|
5122
6349
|
} else {
|
|
5123
|
-
vErrors.push(
|
|
6350
|
+
vErrors.push(err73);
|
|
5124
6351
|
}
|
|
5125
6352
|
errors++;
|
|
5126
6353
|
}
|
|
5127
6354
|
}
|
|
5128
6355
|
if (data.strip !== void 0) {
|
|
5129
|
-
if (!
|
|
5130
|
-
vErrors = vErrors === null ?
|
|
6356
|
+
if (!validate34(data.strip, { instancePath: instancePath + "/strip", parentData: data, parentDataProperty: "strip", rootData })) {
|
|
6357
|
+
vErrors = vErrors === null ? validate34.errors : vErrors.concat(validate34.errors);
|
|
5131
6358
|
errors = vErrors.length;
|
|
5132
6359
|
}
|
|
5133
6360
|
}
|
|
5134
6361
|
if (data.steps !== void 0) {
|
|
5135
|
-
let
|
|
5136
|
-
if (Array.isArray(
|
|
5137
|
-
if (
|
|
5138
|
-
const
|
|
6362
|
+
let data67 = data.steps;
|
|
6363
|
+
if (Array.isArray(data67)) {
|
|
6364
|
+
if (data67.length < 1) {
|
|
6365
|
+
const err74 = { instancePath: instancePath + "/steps", schemaPath: "#/properties/steps/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
5139
6366
|
if (vErrors === null) {
|
|
5140
|
-
vErrors = [
|
|
6367
|
+
vErrors = [err74];
|
|
5141
6368
|
} else {
|
|
5142
|
-
vErrors.push(
|
|
6369
|
+
vErrors.push(err74);
|
|
5143
6370
|
}
|
|
5144
6371
|
errors++;
|
|
5145
6372
|
}
|
|
5146
|
-
const
|
|
5147
|
-
for (let
|
|
5148
|
-
if (!
|
|
5149
|
-
vErrors = vErrors === null ?
|
|
6373
|
+
const len4 = data67.length;
|
|
6374
|
+
for (let i4 = 0; i4 < len4; i4++) {
|
|
6375
|
+
if (!validate38(data67[i4], { instancePath: instancePath + "/steps/" + i4, parentData: data67, parentDataProperty: i4, rootData })) {
|
|
6376
|
+
vErrors = vErrors === null ? validate38.errors : vErrors.concat(validate38.errors);
|
|
5150
6377
|
errors = vErrors.length;
|
|
5151
6378
|
}
|
|
5152
6379
|
}
|
|
5153
6380
|
} else {
|
|
5154
|
-
const
|
|
6381
|
+
const err75 = { instancePath: instancePath + "/steps", schemaPath: "#/properties/steps/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
5155
6382
|
if (vErrors === null) {
|
|
5156
|
-
vErrors = [
|
|
6383
|
+
vErrors = [err75];
|
|
5157
6384
|
} else {
|
|
5158
|
-
vErrors.push(
|
|
6385
|
+
vErrors.push(err75);
|
|
5159
6386
|
}
|
|
5160
6387
|
errors++;
|
|
5161
6388
|
}
|
|
5162
6389
|
}
|
|
5163
6390
|
if (data.sequence !== void 0) {
|
|
5164
|
-
if (!
|
|
5165
|
-
vErrors = vErrors === null ?
|
|
6391
|
+
if (!validate46(data.sequence, { instancePath: instancePath + "/sequence", parentData: data, parentDataProperty: "sequence", rootData })) {
|
|
6392
|
+
vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
|
|
5166
6393
|
errors = vErrors.length;
|
|
5167
6394
|
}
|
|
5168
6395
|
}
|
|
5169
6396
|
if (data.state !== void 0) {
|
|
5170
|
-
if (!
|
|
5171
|
-
vErrors = vErrors === null ?
|
|
6397
|
+
if (!validate48(data.state, { instancePath: instancePath + "/state", parentData: data, parentDataProperty: "state", rootData })) {
|
|
6398
|
+
vErrors = vErrors === null ? validate48.errors : vErrors.concat(validate48.errors);
|
|
5172
6399
|
errors = vErrors.length;
|
|
5173
6400
|
}
|
|
5174
6401
|
}
|
|
5175
6402
|
if (data.git !== void 0) {
|
|
5176
|
-
if (!
|
|
5177
|
-
vErrors = vErrors === null ?
|
|
6403
|
+
if (!validate52(data.git, { instancePath: instancePath + "/git", parentData: data, parentDataProperty: "git", rootData })) {
|
|
6404
|
+
vErrors = vErrors === null ? validate52.errors : vErrors.concat(validate52.errors);
|
|
5178
6405
|
errors = vErrors.length;
|
|
5179
6406
|
}
|
|
5180
6407
|
}
|
|
5181
6408
|
if (data.time !== void 0) {
|
|
5182
|
-
if (!
|
|
5183
|
-
vErrors = vErrors === null ?
|
|
6409
|
+
if (!validate56(data.time, { instancePath: instancePath + "/time", parentData: data, parentDataProperty: "time", rootData })) {
|
|
6410
|
+
vErrors = vErrors === null ? validate56.errors : vErrors.concat(validate56.errors);
|
|
6411
|
+
errors = vErrors.length;
|
|
6412
|
+
}
|
|
6413
|
+
}
|
|
6414
|
+
if (data.lineup !== void 0) {
|
|
6415
|
+
if (!validate68(data.lineup, { instancePath: instancePath + "/lineup", parentData: data, parentDataProperty: "lineup", rootData })) {
|
|
6416
|
+
vErrors = vErrors === null ? validate68.errors : vErrors.concat(validate68.errors);
|
|
5184
6417
|
errors = vErrors.length;
|
|
5185
6418
|
}
|
|
5186
6419
|
}
|
|
5187
6420
|
} else {
|
|
5188
|
-
const
|
|
6421
|
+
const err76 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
5189
6422
|
if (vErrors === null) {
|
|
5190
|
-
vErrors = [
|
|
6423
|
+
vErrors = [err76];
|
|
5191
6424
|
} else {
|
|
5192
|
-
vErrors.push(
|
|
6425
|
+
vErrors.push(err76);
|
|
5193
6426
|
}
|
|
5194
6427
|
errors++;
|
|
5195
6428
|
}
|
|
@@ -5199,12 +6432,16 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5199
6432
|
|
|
5200
6433
|
// src/words.ts
|
|
5201
6434
|
var keys = (table) => Object.keys(table);
|
|
5202
|
-
var KINDS = keys({ sequence: true, architecture: true, state: true, git: true, time: true, tree: true });
|
|
6435
|
+
var KINDS = keys({ sequence: true, architecture: true, state: true, git: true, time: true, tree: true, lineup: true });
|
|
5203
6436
|
var STATE_ENDS = ["start", "finish"];
|
|
5204
6437
|
var TIME_HEADS = ["scale", "period", "row", "point", "zoom", "mark", "span"];
|
|
5205
6438
|
var NOW = "now";
|
|
5206
6439
|
var TREE_HEADS = ["leaf", "node"];
|
|
5207
|
-
var
|
|
6440
|
+
var LINEUP_HEADS = ["item", "line", "seal", "open", "pick", "stamp"];
|
|
6441
|
+
var LANE_MOST = 12;
|
|
6442
|
+
var LABEL_MOST = 4;
|
|
6443
|
+
var LANE_ATTRS = ["note", "color"];
|
|
6444
|
+
var HEADS = ["group", "end", "box", "strip", "step", "say", "code", "source", "act", "note", "set", "branch", "commit", ...TIME_HEADS, ...TREE_HEADS, ...LINEUP_HEADS];
|
|
5208
6445
|
var AS = "as";
|
|
5209
6446
|
var ON = "on";
|
|
5210
6447
|
var COPY = "copy";
|
|
@@ -5226,6 +6463,7 @@ var ATTRS = {
|
|
|
5226
6463
|
commit: ["hash", "note"],
|
|
5227
6464
|
leaf: ["hash"],
|
|
5228
6465
|
node: ["hash"],
|
|
6466
|
+
item: ["color", "label"],
|
|
5229
6467
|
scale: ["from"],
|
|
5230
6468
|
period: ["from"],
|
|
5231
6469
|
row: ["color", "empty"],
|
|
@@ -5249,9 +6487,18 @@ var OLD_HEADS = {
|
|
|
5249
6487
|
|
|
5250
6488
|
// src/schema.ts
|
|
5251
6489
|
var COLORS = ["blue", "amber", "green", "violet", "rose", "slate", "coin"];
|
|
5252
|
-
var EVENT_TYPES = ["edge", "action", "swap", "strip", "commit", "branch", "now", "mark", "span", "leaf", "node"];
|
|
6490
|
+
var EVENT_TYPES = ["edge", "action", "swap", "strip", "commit", "branch", "now", "mark", "span", "leaf", "node", "line", "seal", "open", "pick", "stamp"];
|
|
5253
6491
|
var ABSENT = "#/definitions/absent/not";
|
|
5254
|
-
var ABSENT_KINDS = {
|
|
6492
|
+
var ABSENT_KINDS = {
|
|
6493
|
+
regions: "sequence / architecture / state",
|
|
6494
|
+
at: "time",
|
|
6495
|
+
into: "time",
|
|
6496
|
+
color: "time",
|
|
6497
|
+
meters: "time",
|
|
6498
|
+
region: "sequence / architecture / state",
|
|
6499
|
+
icon: "sequence / architecture / state / git / time / tree",
|
|
6500
|
+
link: "sequence / architecture / state / git / time / tree"
|
|
6501
|
+
};
|
|
5255
6502
|
var NOT_ALLOWED = {
|
|
5256
6503
|
carry: { field: "text", kind: "tag" }
|
|
5257
6504
|
};
|
|
@@ -5262,6 +6509,10 @@ var TIME_EVENT = /\/events\/items\/not$/u;
|
|
|
5262
6509
|
var TIME_EVENTS = ["now", "mark", "span"];
|
|
5263
6510
|
var TREE_EVENT = /\/events\/items\/allOf\/0\/not$/u;
|
|
5264
6511
|
var TREE_EVENTS = ["leaf", "node"];
|
|
6512
|
+
var LINEUP_EVENT = "#/definitions/notLineupEvent/not";
|
|
6513
|
+
var LINEUP_EVENTS = ["line", "seal", "open", "pick", "stamp"];
|
|
6514
|
+
var WIRED_EVENT = "#/definitions/notWiredEvent/not";
|
|
6515
|
+
var WIRED_EVENTS = ["edge", "action"];
|
|
5265
6516
|
var DURATION = /^\^\[0-9\]\+\(\\\.\[0-9\]\+\)\?\(([a-z|]+)\)\$$/u;
|
|
5266
6517
|
var RATIO = /%\)\$$/u;
|
|
5267
6518
|
var escape = (key2) => key2.replaceAll("~", "~0").replaceAll("/", "~1");
|
|
@@ -5293,6 +6544,8 @@ function toFieldError(error, errors, m) {
|
|
|
5293
6544
|
if (GIT_EVENT.test(error.schemaPath)) return { pointer: at, message: m.kindOnly(GIT_EVENTS, "git") };
|
|
5294
6545
|
if (TIME_EVENT.test(error.schemaPath)) return { pointer: `${at}/type`, message: m.kindOnly(TIME_EVENTS, "time") };
|
|
5295
6546
|
if (TREE_EVENT.test(error.schemaPath)) return { pointer: `${at}/type`, message: m.kindOnly(TREE_EVENTS, "tree") };
|
|
6547
|
+
if (error.schemaPath === LINEUP_EVENT) return { pointer: `${at}/type`, message: m.kindOnly(LINEUP_EVENTS, "lineup") };
|
|
6548
|
+
if (error.schemaPath === WIRED_EVENT) return { pointer: `${at}/type`, message: m.kindOnly(WIRED_EVENTS, "sequence / architecture / state / git / time / tree") };
|
|
5296
6549
|
const last = at.slice(at.lastIndexOf("/") + 1);
|
|
5297
6550
|
if (error.schemaPath === ABSENT) return { pointer: at, message: m.not({ field: last, kind: ABSENT_KINDS[last] ?? last }) };
|
|
5298
6551
|
const allowed = NOT_ALLOWED[last];
|
|
@@ -5313,6 +6566,8 @@ function toFieldError(error, errors, m) {
|
|
|
5313
6566
|
return { pointer: at, message: m.type(String(params.type)) };
|
|
5314
6567
|
case "minLength":
|
|
5315
6568
|
return { pointer: at, message: m.minLength(Number(params.limit)) };
|
|
6569
|
+
case "maxLength":
|
|
6570
|
+
return { pointer: at, message: m.maxLength(Number(params.limit)) };
|
|
5316
6571
|
case "pattern": {
|
|
5317
6572
|
if (error.schemaPath === URL_RULE) return { pointer: at, message: m.url };
|
|
5318
6573
|
const pattern = String(params.pattern);
|
|
@@ -5325,6 +6580,8 @@ function toFieldError(error, errors, m) {
|
|
|
5325
6580
|
}
|
|
5326
6581
|
case "minItems":
|
|
5327
6582
|
return { pointer: at, message: m.minItems(Number(params.limit)) };
|
|
6583
|
+
case "maxItems":
|
|
6584
|
+
return { pointer: at, message: m.maxItems(Number(params.limit)) };
|
|
5328
6585
|
case "minimum":
|
|
5329
6586
|
return { pointer: at, message: m.minimum(Number(params.limit)) };
|
|
5330
6587
|
case "const":
|
|
@@ -5438,6 +6695,22 @@ var ja2 = () => {
|
|
|
5438
6695
|
notTreeBox: (id) => `${id} \u306F box \u306E\u884C\u3067\u7F6E\u3044\u305F\u7BB1\u3067\u3001\u6728\u306E\u7BB1\u3067\u306A\u3044\u3002\u5B50\u306F leaf \u304B node \u3067\u66F8\u3044\u305F\u540D\u672D\u306B\u3059\u308B`,
|
|
5439
6696
|
twoParents: (id) => `${id} \u306F\u3082\u3046\u5225\u306E\u89AA\u306E\u5B50\u306B\u306A\u3063\u3066\u3044\u308B\u3002\u6728\u306E\u7BB1\u306E\u89AA\u306F 1 \u3064\u3060\u3051`,
|
|
5440
6697
|
manyRoots: (id, root) => `${id} \u304C\u89AA\u3092\u6301\u305F\u306A\u3044\u307E\u307E\u6B8B\u308B\u3002\u6728\u306E\u6839\u306F 1 \u3064\u3060\u3051\u3067\u3001${id} \u3082 ${root} \u3082\u6700\u5F8C\u306B 1 \u3064\u306E\u6839\u3078\u7D44\u3080`,
|
|
6698
|
+
lineupOnly: (word) => `${word} \u306E\u884C\u306F lineup (\u5217\u306E\u56F3) \u3067\u3060\u3051\u66F8\u3051\u308B`,
|
|
6699
|
+
lineupNoGroup: "lineup (\u5217\u306E\u56F3) \u306B\u306F group \u3092\u66F8\u3051\u306A\u3044\u3002\u5217\u306F box \u306E\u884C\u3067\u5BA3\u8A00\u3059\u308B",
|
|
6700
|
+
lineupNoEdge: "lineup (\u5217\u306E\u56F3) \u306B\u306F\u7DDA\u306E\u884C\u3092\u66F8\u3051\u306A\u3044\u3002\u30C1\u30C3\u30D7\u306F line \u306E\u884C\u3067\u5217\u306E\u4E26\u3073\u3092\u66F8\u304F\u3068\u52D5\u304F",
|
|
6701
|
+
lineupNoAct: "lineup (\u5217\u306E\u56F3) \u306B\u306F act \u306E\u884C\u3092\u66F8\u3051\u306A\u3044\u3002\u5217\u306E\u53F3\u4E0A\u306E\u5B57\u306F note \u306E\u884C\u3067\u66F8\u304D\u63DB\u3048\u308B",
|
|
6702
|
+
noItems: "item \u306E\u884C\u3067\u30C1\u30C3\u30D7\u3092 1 \u3064\u4EE5\u4E0A\u5BA3\u8A00\u3059\u308B",
|
|
6703
|
+
itemShape: "item \u306F item <\u540D\u672D>, <\u540D\u672D> [color: <\u8272>, label: <\u5B57>] \u306E\u5F62\u3067\u66F8\u304F",
|
|
6704
|
+
lineShape: "line \u306F line <\u5217>: <\u30C1\u30C3\u30D7>, <\u30C1\u30C3\u30D7> \u306E\u5F62\u3067\u66F8\u304F",
|
|
6705
|
+
laneShape: (word) => `${word} \u306F ${word} <\u5217> \u306E\u5F62\u3067\u66F8\u304F`,
|
|
6706
|
+
stampShape: "stamp \u306F stamp <\u5217>: <\u5B57> \u306E\u5F62\u3067\u66F8\u304F",
|
|
6707
|
+
labelTooLong: (limit) => `label \u306F ${limit} \u5B57\u307E\u3067\u306B\u3059\u308B`,
|
|
6708
|
+
noSuchItem: (id) => `${id} \u3068\u3044\u3046\u30C1\u30C3\u30D7\u306F\u5BA3\u8A00\u3057\u3066\u3044\u306A\u3044`,
|
|
6709
|
+
itemTwice: (id) => `${id} \u306F\u3053\u306E\u884C\u306B 2 \u5EA6\u66F8\u3044\u3066\u3044\u308B\u3002\u540C\u3058\u5217\u306B\u540C\u3058\u30C1\u30C3\u30D7\u306F 1 \u679A\u3060\u3051`,
|
|
6710
|
+
laneFull: (lane, limit) => `${lane} \u306E\u5217\u306B\u4E26\u3079\u3089\u308C\u308B\u30C1\u30C3\u30D7\u306F ${limit} \u679A\u307E\u3067`,
|
|
6711
|
+
lineOnSealed: (lane) => `${lane} \u306E\u5217\u306F\u5C01\u3092\u3057\u3066\u3044\u308B\u306E\u3067\u4E26\u3073\u3092\u66F8\u3051\u306A\u3044\u3002\u5148\u306B open \u3067\u958B\u3051\u308B`,
|
|
6712
|
+
sealTwice: (lane) => `${lane} \u306E\u5217\u306B\u306F\u3082\u3046\u5C01\u3092\u3057\u3066\u3044\u308B`,
|
|
6713
|
+
openUnsealed: (lane) => `${lane} \u306E\u5217\u306B\u306F\u5C01\u3092\u3057\u3066\u3044\u306A\u3044`,
|
|
5441
6714
|
timeTwice: (word) => `${word} \u306F 1 \u3064\u3060\u3051\u5BA3\u8A00\u3059\u308B`,
|
|
5442
6715
|
noScale: "scale \u306E\u884C\u3067\u76EE\u76DB\u308A\u3092\u5BA3\u8A00\u3059\u308B",
|
|
5443
6716
|
noRows: "row \u306E\u884C\u3067\u5370\u306E\u5217\u3092 1 \u3064\u4EE5\u4E0A\u5BA3\u8A00\u3059\u308B",
|
|
@@ -5560,6 +6833,22 @@ var en2 = () => {
|
|
|
5560
6833
|
notTreeBox: (id) => `${id} is a box from a box line, not a tree box. A child must be an id written with leaf or node`,
|
|
5561
6834
|
twoParents: (id) => `${id} is already a child of another node. A tree box has only one parent`,
|
|
5562
6835
|
manyRoots: (id, root) => `${id} is left without a parent. A tree has one root, so join ${id} and ${root} under one root by the end`,
|
|
6836
|
+
lineupOnly: (word) => `${word} lines can be written only in lineup diagrams`,
|
|
6837
|
+
lineupNoGroup: "A lineup diagram takes no group. Declare the lanes with box lines",
|
|
6838
|
+
lineupNoEdge: "A lineup diagram takes no edge lines. Chips move when a line line rewrites a lane",
|
|
6839
|
+
lineupNoAct: "A lineup diagram takes no act lines. Rewrite the text at the top right of a lane with a note line",
|
|
6840
|
+
noItems: "Declare at least one chip with an item line",
|
|
6841
|
+
itemShape: "Write an item as item <id>, <id> [color: <color>, label: <text>]",
|
|
6842
|
+
lineShape: "Write a line as line <lane>: <chip>, <chip>",
|
|
6843
|
+
laneShape: (word) => `Write ${word} as ${word} <lane>`,
|
|
6844
|
+
stampShape: "Write a stamp as stamp <lane>: <text>",
|
|
6845
|
+
labelTooLong: (limit) => `A label is at most ${limit} characters`,
|
|
6846
|
+
noSuchItem: (id) => `The chip ${id} is not declared`,
|
|
6847
|
+
itemTwice: (id) => `${id} is written twice on this line. A lane holds one of each chip`,
|
|
6848
|
+
laneFull: (lane, limit) => `The lane ${lane} holds at most ${limit} chips`,
|
|
6849
|
+
lineOnSealed: (lane) => `The lane ${lane} is sealed, so its order cannot be written. Open it first`,
|
|
6850
|
+
sealTwice: (lane) => `The lane ${lane} is already sealed`,
|
|
6851
|
+
openUnsealed: (lane) => `The lane ${lane} is not sealed`,
|
|
5563
6852
|
timeTwice: (word) => `Declare only one ${word}`,
|
|
5564
6853
|
noScale: "Declare the scale with a scale line",
|
|
5565
6854
|
noRows: "Declare at least one row with a row line",
|
|
@@ -5641,6 +6930,9 @@ var COMMIT = new RegExp(`^commit\\s+([^\\s[]+)(?:\\s+${ON}\\s+([^\\s[]+))?(?:\\s
|
|
|
5641
6930
|
var CUT = new RegExp(`^([^\\s[]+)\\s+${FROM}(?:\\s+([^\\s[]+))?\\s*$`, "du");
|
|
5642
6931
|
var LEAF = /^leaf\s+([^\s[]+)/du;
|
|
5643
6932
|
var NODE = new RegExp(`^node\\s+([^\\s[]+)\\s+${OF}\\s+`, "du");
|
|
6933
|
+
var ORDER = /^line\s+([^\s:[]+)\s*:/du;
|
|
6934
|
+
var STAMP = /^stamp\s+([^\s:[]+)\s*:/du;
|
|
6935
|
+
var ON_LANE = /^(?:seal|open|pick)\s+(\S+)\s*$/du;
|
|
5644
6936
|
var HASH = /^[0-9a-f]{4,40}$/u;
|
|
5645
6937
|
var URL_FORM = /^(\/|https?:\/\/)/u;
|
|
5646
6938
|
var SCALE = /^scale\s+(\S+)\s+(\S+)\s+([^\s[]+)/du;
|
|
@@ -5807,6 +7099,9 @@ function parseLines(lines, m) {
|
|
|
5807
7099
|
const isGit = kind === "git";
|
|
5808
7100
|
const isTime = kind === "time";
|
|
5809
7101
|
const isTree = kind === "tree";
|
|
7102
|
+
const isLineup = kind === "lineup";
|
|
7103
|
+
const items = [];
|
|
7104
|
+
const sealed = /* @__PURE__ */ new Set();
|
|
5810
7105
|
const trees = /* @__PURE__ */ new Map();
|
|
5811
7106
|
const parents = /* @__PURE__ */ new Map();
|
|
5812
7107
|
let scale;
|
|
@@ -5895,6 +7190,7 @@ function parseLines(lines, m) {
|
|
|
5895
7190
|
}
|
|
5896
7191
|
const edge2 = EDGE.exec(text2);
|
|
5897
7192
|
if (edge2) {
|
|
7193
|
+
if (isLineup) throw fail(source, 0, m.lineupNoEdge);
|
|
5898
7194
|
if (isState && !building) paths.push(readPath(source, edge2));
|
|
5899
7195
|
else inStep(source).events.push(readEdge(source, edge2));
|
|
5900
7196
|
continue;
|
|
@@ -5908,6 +7204,7 @@ function parseLines(lines, m) {
|
|
|
5908
7204
|
if (!isGit && (word === "branch" || word === "commit")) throw fail(source, 0, m.gitOnly(word));
|
|
5909
7205
|
if (!isTime && isOneOf(TIME_HEADS, word)) throw fail(source, 0, m.timeOnly(word));
|
|
5910
7206
|
if (!isTree && isOneOf(TREE_HEADS, word)) throw fail(source, 0, m.treeOnly(word));
|
|
7207
|
+
if (!isLineup && isOneOf(LINEUP_HEADS, word)) throw fail(source, 0, m.lineupOnly(word));
|
|
5911
7208
|
if (!isOneOf(HEADS, word)) {
|
|
5912
7209
|
const old = oldForm(text2, building !== void 0);
|
|
5913
7210
|
throw fail(source, 0, old ? m.oldForm(old.word, old.shape) : m.unknownHead(word));
|
|
@@ -5951,6 +7248,7 @@ function parseLines(lines, m) {
|
|
|
5951
7248
|
inStep(source).sources.push(readSource(source));
|
|
5952
7249
|
break;
|
|
5953
7250
|
case "act": {
|
|
7251
|
+
if (isLineup) throw fail(source, 0, m.lineupNoAct);
|
|
5954
7252
|
const step = inStep(source);
|
|
5955
7253
|
const on = readOnBox(source, word, m.actShape);
|
|
5956
7254
|
step.events.push({ type: "action", box: on.box, label: on.text });
|
|
@@ -6008,6 +7306,26 @@ function parseLines(lines, m) {
|
|
|
6008
7306
|
step.events.push(readNode(source));
|
|
6009
7307
|
break;
|
|
6010
7308
|
}
|
|
7309
|
+
case "item":
|
|
7310
|
+
readItem(source);
|
|
7311
|
+
break;
|
|
7312
|
+
case "line": {
|
|
7313
|
+
const step = inStep(source);
|
|
7314
|
+
step.events.push(readOrder(source));
|
|
7315
|
+
break;
|
|
7316
|
+
}
|
|
7317
|
+
case "seal":
|
|
7318
|
+
case "open":
|
|
7319
|
+
case "pick": {
|
|
7320
|
+
const step = inStep(source);
|
|
7321
|
+
step.events.push(readOnLane(source, word));
|
|
7322
|
+
break;
|
|
7323
|
+
}
|
|
7324
|
+
case "stamp": {
|
|
7325
|
+
const step = inStep(source);
|
|
7326
|
+
step.events.push(readStamp(source));
|
|
7327
|
+
break;
|
|
7328
|
+
}
|
|
6011
7329
|
}
|
|
6012
7330
|
}
|
|
6013
7331
|
if (group) throw fail(group.source, 0, m.unclosedGroup(group.id));
|
|
@@ -6015,6 +7333,7 @@ function parseLines(lines, m) {
|
|
|
6015
7333
|
finish();
|
|
6016
7334
|
if (isGit && branches.length === 0) throw fail(head, 0, m.noBranches);
|
|
6017
7335
|
if (isTree && trees.size === 0) throw fail(head, 0, m.noLeaves);
|
|
7336
|
+
if (isLineup && items.length === 0) throw fail(head, 0, m.noItems);
|
|
6018
7337
|
if (boxes.length === 0 && !isGit && !isTime && !isTree) throw fail(head, 0, m.noBoxes);
|
|
6019
7338
|
if (steps.length === 0) throw fail(head, 0, m.noSteps);
|
|
6020
7339
|
const roots = [...trees.keys()].filter((id) => !parents.has(id));
|
|
@@ -6033,6 +7352,7 @@ function parseLines(lines, m) {
|
|
|
6033
7352
|
...kind === "sequence" ? { sequence: { lifelines: boxes.map((box) => box.id) } } : {},
|
|
6034
7353
|
...paths.length > 0 ? { state: { paths } } : {},
|
|
6035
7354
|
...isGit ? { git: { branches } } : {},
|
|
7355
|
+
...isLineup ? { lineup: { items } } : {},
|
|
6036
7356
|
...isTime && scale ? {
|
|
6037
7357
|
time: {
|
|
6038
7358
|
scale,
|
|
@@ -6202,6 +7522,7 @@ function parseLines(lines, m) {
|
|
|
6202
7522
|
beforeSteps(source);
|
|
6203
7523
|
if (isGit) throw fail(source, 0, m.gitNoGroup);
|
|
6204
7524
|
if (isTree) throw fail(source, 0, m.treeNoGroup);
|
|
7525
|
+
if (isLineup) throw fail(source, 0, m.lineupNoGroup);
|
|
6205
7526
|
if (group) throw fail(source, 0, m.nestedGroup);
|
|
6206
7527
|
const declared = readDeclared(source, "group", ATTRS.group, m);
|
|
6207
7528
|
if (regions.some((region) => region.id === declared.id)) {
|
|
@@ -6215,7 +7536,7 @@ function parseLines(lines, m) {
|
|
|
6215
7536
|
}
|
|
6216
7537
|
function readBox(source) {
|
|
6217
7538
|
beforeSteps(source);
|
|
6218
|
-
const declared = readDeclared(source, "box", ATTRS.box, m);
|
|
7539
|
+
const declared = readDeclared(source, "box", isLineup ? LANE_ATTRS : ATTRS.box, m);
|
|
6219
7540
|
notReserved(source, declared.id, declared.idAt);
|
|
6220
7541
|
declare(source, declared.id, declared.idAt);
|
|
6221
7542
|
firstBox ??= source;
|
|
@@ -6343,6 +7664,74 @@ function parseLines(lines, m) {
|
|
|
6343
7664
|
if (hash && !HASH.test(hash.value)) throw fail(source, hash.at, m.badHash);
|
|
6344
7665
|
return hash?.value;
|
|
6345
7666
|
}
|
|
7667
|
+
function namesAt(source, from, to, shape) {
|
|
7668
|
+
const text2 = source.text;
|
|
7669
|
+
const names = [];
|
|
7670
|
+
for (let i = from; ; ) {
|
|
7671
|
+
const start = skipSpaces(text2, i);
|
|
7672
|
+
const comma = text2.indexOf(",", start);
|
|
7673
|
+
const end = comma < 0 || comma > to ? to : comma;
|
|
7674
|
+
const value2 = text2.slice(start, end).trim();
|
|
7675
|
+
if (value2 === "") throw fail(source, start, shape);
|
|
7676
|
+
if (!ID.test(value2)) throw fail(source, start, m.badId(value2));
|
|
7677
|
+
names.push({ value: value2, at: start });
|
|
7678
|
+
if (end >= to) return names;
|
|
7679
|
+
i = end + 1;
|
|
7680
|
+
}
|
|
7681
|
+
}
|
|
7682
|
+
function readItem(source) {
|
|
7683
|
+
beforeSteps(source);
|
|
7684
|
+
const open = source.text.indexOf("[");
|
|
7685
|
+
const end = open < 0 ? source.text.length : open;
|
|
7686
|
+
const attrs2 = open < 0 ? /* @__PURE__ */ new Map() : readAttrs(source, open, ATTRS.item, m);
|
|
7687
|
+
const color = attrs2.get("color");
|
|
7688
|
+
if (color && !isOneOf(COLORS, color.value)) throw fail(source, color.at, m.badColor);
|
|
7689
|
+
const label2 = attrs2.get("label");
|
|
7690
|
+
if (label2 && [...label2.value].length > LABEL_MOST) throw fail(source, label2.at, m.labelTooLong(LABEL_MOST));
|
|
7691
|
+
for (const { value: value2, at } of namesAt(source, "item".length, end, m.itemShape)) {
|
|
7692
|
+
declare(source, value2, at);
|
|
7693
|
+
items.push({ id: value2, ...color ? { color: color.value } : {}, ...label2 ? { label: label2.value } : {} });
|
|
7694
|
+
}
|
|
7695
|
+
}
|
|
7696
|
+
function readOrder(source) {
|
|
7697
|
+
const found = ORDER.exec(source.text);
|
|
7698
|
+
const lane = found?.[1];
|
|
7699
|
+
if (!found || lane === void 0) throw fail(source, 0, m.lineShape);
|
|
7700
|
+
const at = found.indices?.[1]?.[0] ?? 0;
|
|
7701
|
+
const box = boxAt(source, lane, at);
|
|
7702
|
+
if (sealed.has(box)) throw fail(source, at, m.lineOnSealed(box));
|
|
7703
|
+
const chips = namesAt(source, found[0].length, source.text.length, m.lineShape);
|
|
7704
|
+
const seen = /* @__PURE__ */ new Set();
|
|
7705
|
+
chips.forEach(({ value: value2, at: chipAt }, k) => {
|
|
7706
|
+
if (!items.some((item) => item.id === value2)) throw fail(source, chipAt, m.noSuchItem(value2));
|
|
7707
|
+
if (seen.has(value2)) throw fail(source, chipAt, m.itemTwice(value2));
|
|
7708
|
+
if (k >= LANE_MOST) throw fail(source, chipAt, m.laneFull(box, LANE_MOST));
|
|
7709
|
+
seen.add(value2);
|
|
7710
|
+
});
|
|
7711
|
+
return { type: "line", box, items: chips.map((chip) => chip.value) };
|
|
7712
|
+
}
|
|
7713
|
+
function readOnLane(source, word) {
|
|
7714
|
+
const found = ON_LANE.exec(source.text);
|
|
7715
|
+
const lane = found?.[1];
|
|
7716
|
+
if (!found || lane === void 0) throw fail(source, 0, m.laneShape(word));
|
|
7717
|
+
const at = found.indices?.[1]?.[0] ?? 0;
|
|
7718
|
+
const box = boxAt(source, lane, at);
|
|
7719
|
+
if (word === "seal") {
|
|
7720
|
+
if (sealed.has(box)) throw fail(source, at, m.sealTwice(box));
|
|
7721
|
+
sealed.add(box);
|
|
7722
|
+
}
|
|
7723
|
+
if (word === "open" && !sealed.delete(box)) throw fail(source, at, m.openUnsealed(box));
|
|
7724
|
+
return { type: word, box };
|
|
7725
|
+
}
|
|
7726
|
+
function readStamp(source) {
|
|
7727
|
+
const found = STAMP.exec(source.text);
|
|
7728
|
+
const lane = found?.[1];
|
|
7729
|
+
if (!found || lane === void 0) throw fail(source, 0, m.stampShape);
|
|
7730
|
+
const box = boxAt(source, lane, found.indices?.[1]?.[0] ?? 0);
|
|
7731
|
+
const named = readName(source, found[0].length, m);
|
|
7732
|
+
if (named.value === "" || named.rest < source.text.length) throw fail(source, 0, m.stampShape);
|
|
7733
|
+
return { type: "stamp", box, text: named.value };
|
|
7734
|
+
}
|
|
6346
7735
|
function readStrip(source) {
|
|
6347
7736
|
beforeSteps(source);
|
|
6348
7737
|
if (strip2) throw fail(source, 0, m.stripTwice);
|
|
@@ -6370,7 +7759,7 @@ function parseLines(lines, m) {
|
|
|
6370
7759
|
}
|
|
6371
7760
|
function readFields(source, at) {
|
|
6372
7761
|
const text2 = source.text;
|
|
6373
|
-
const
|
|
7762
|
+
const items2 = [];
|
|
6374
7763
|
for (let i = at; ; ) {
|
|
6375
7764
|
const start = skipSpaces(text2, i);
|
|
6376
7765
|
let value2;
|
|
@@ -6398,8 +7787,8 @@ function parseLines(lines, m) {
|
|
|
6398
7787
|
end = skipSpaces(text2, close + 1);
|
|
6399
7788
|
}
|
|
6400
7789
|
if (end < text2.length && text2[end] !== ",") throw fail(source, end, m.afterQuote);
|
|
6401
|
-
|
|
6402
|
-
if (end >= text2.length) return
|
|
7790
|
+
items2.push(value2);
|
|
7791
|
+
if (end >= text2.length) return items2;
|
|
6403
7792
|
i = end + 1;
|
|
6404
7793
|
}
|
|
6405
7794
|
}
|
|
@@ -6603,8 +7992,30 @@ function event(e, kind) {
|
|
|
6603
7992
|
return `leaf ${e.id}${attrs([["hash", e.hash]])}`;
|
|
6604
7993
|
case "node":
|
|
6605
7994
|
return `node ${e.id} ${OF} ${e.children.join(", ")}${attrs([["hash", e.hash]])}`;
|
|
7995
|
+
case "line":
|
|
7996
|
+
return `line ${e.box}: ${e.items.join(", ")}`;
|
|
7997
|
+
case "seal":
|
|
7998
|
+
case "open":
|
|
7999
|
+
case "pick":
|
|
8000
|
+
return `${e.type} ${e.box}`;
|
|
8001
|
+
case "stamp":
|
|
8002
|
+
return `stamp ${e.box}: ${name(e.text)}`;
|
|
6606
8003
|
}
|
|
6607
8004
|
}
|
|
8005
|
+
function itemLines(items) {
|
|
8006
|
+
const rows = [];
|
|
8007
|
+
for (const item of items) {
|
|
8008
|
+
const row = rows.at(-1);
|
|
8009
|
+
if (row && item.label === void 0 && row[0]?.label === void 0 && row[0]?.color === item.color) row.push(item);
|
|
8010
|
+
else rows.push([item]);
|
|
8011
|
+
}
|
|
8012
|
+
return rows.map(
|
|
8013
|
+
(row) => `item ${row.map((item) => item.id).join(", ")}${attrs([
|
|
8014
|
+
["color", row[0]?.color],
|
|
8015
|
+
["label", row[0]?.label]
|
|
8016
|
+
])}`
|
|
8017
|
+
).join("\n");
|
|
8018
|
+
}
|
|
6608
8019
|
function timeBlocks(time) {
|
|
6609
8020
|
const head = [
|
|
6610
8021
|
`scale ${time.scale.unit} ${time.scale.length} ${time.scale.count}${attrs([["from", num(time.scale.from)]])}`,
|
|
@@ -6658,7 +8069,8 @@ function printNotation(diagram) {
|
|
|
6658
8069
|
`${diagram.kind} ${name(diagram.title)}${attrs([["view", diagram.view]])}`,
|
|
6659
8070
|
...branches.length > 0 ? [branches.join("\n")] : [],
|
|
6660
8071
|
...diagram.time ? timeBlocks(diagram.time) : [],
|
|
6661
|
-
...declarations(diagram)
|
|
8072
|
+
...declarations(diagram),
|
|
8073
|
+
...diagram.lineup && diagram.lineup.items.length > 0 ? [itemLines(diagram.lineup.items)] : []
|
|
6662
8074
|
];
|
|
6663
8075
|
if (diagram.strip) {
|
|
6664
8076
|
const meters = new Map((diagram.strip.meters ?? []).map((m) => [m.field, m.line]));
|
|
@@ -6968,6 +8380,9 @@ var TYPE = {
|
|
|
6968
8380
|
rootHash: text(15, 700, "mono"),
|
|
6969
8381
|
rootName: text(11, 700),
|
|
6970
8382
|
treeCard: text(11.5, 650),
|
|
8383
|
+
/** 列の図 (#3239) の、チップの字と札の字 */
|
|
8384
|
+
chip: text(10.5, 700, "mono"),
|
|
8385
|
+
stamp: text(11, 700),
|
|
6971
8386
|
/**
|
|
6972
8387
|
* 時間軸の図 (#3165)。拡大の帯の列の上の字、印の列の名前、時刻の字、区切りの名前と目盛りの番号の範囲、
|
|
6973
8388
|
* 節目の名札と状態、範囲の括弧の字、空きの枠の字、物差しの線の字。和文を含む字は同じ大きさと太さの和文の字で描く
|
|
@@ -7090,6 +8505,26 @@ var LOOK = {
|
|
|
7090
8505
|
color: "violet",
|
|
7091
8506
|
rootColor: "green"
|
|
7092
8507
|
},
|
|
8508
|
+
/**
|
|
8509
|
+
* 列の図 (#3239)。step 2 で本人が選んだ見本の「列の図」の形で、1 列 12 枚の図の幅が携帯の幅で全体を見せられる 400 に収まる寸法にする。
|
|
8510
|
+
* 列は左右の余白 `padX`、高さ `h`、角の丸み `radius`。列の名前と右上の字の基準線は列の上端から `textY`、チップの上端は列の上端から `trackY`、
|
|
8511
|
+
* 名前と右上の字の間の下限は `textGap`、選ばなかった列の濃さは `faint`。
|
|
8512
|
+
* `chip` はチップの幅の下限 `w`、高さ `h`、隣のチップとの間 `gap`、角の丸み `radius`、字の左右の余白 `padX`。字が幅を超える図は全てのチップの幅を広げる。
|
|
8513
|
+
* `seal` は封で、チップの並びの外へ `over` 広げ、角の丸み `radius`、縞の幅 `stripe`。
|
|
8514
|
+
* `stamp` は札で、高さ `h`、字の左右の余白 `padX`、角の丸み `radius`、傾き `tilt`、色 `color`
|
|
8515
|
+
*/
|
|
8516
|
+
lineup: {
|
|
8517
|
+
padX: 12,
|
|
8518
|
+
h: 61,
|
|
8519
|
+
radius: 10,
|
|
8520
|
+
textY: 20,
|
|
8521
|
+
trackY: 33,
|
|
8522
|
+
textGap: 10,
|
|
8523
|
+
faint: 0.35,
|
|
8524
|
+
chip: { w: 25, h: 18, gap: 4, radius: 4, padX: 3 },
|
|
8525
|
+
seal: { over: 3, radius: 5, stripe: 7 },
|
|
8526
|
+
stamp: { h: 22, padX: 8, radius: 5, tilt: -4, color: "green" }
|
|
8527
|
+
},
|
|
7093
8528
|
/**
|
|
7094
8529
|
* 時間軸の図 (#3165)。見本帳の試作 (`scenes/finality.js`) の寸法を写す。
|
|
7095
8530
|
* 図の幅は `width` で、時間軸は左の `axisX` から右の余白 `right` の手前まで。印の列の名前が長い時は、名前の右に `gutterGap` を空けて軸を右へ寄せる。
|
|
@@ -7196,7 +8631,8 @@ var LOOK = {
|
|
|
7196
8631
|
timeMeter: 1.25,
|
|
7197
8632
|
tree: 1.5,
|
|
7198
8633
|
treeTrail: 2.6,
|
|
7199
|
-
treeCon: 1.3
|
|
8634
|
+
treeCon: 1.3,
|
|
8635
|
+
stamp: 2
|
|
7200
8636
|
},
|
|
7201
8637
|
shadow: { near: 0.8, far: 4, nearY: 1, farY: 3 },
|
|
7202
8638
|
mini: { w: 168, pad: 8, title: 14, inset: 12, radius: 10 },
|
|
@@ -7211,8 +8647,8 @@ var LOOK = {
|
|
|
7211
8647
|
*/
|
|
7212
8648
|
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 } },
|
|
7213
8649
|
/** 色を混ぜる割合 (%) */
|
|
7214
|
-
/** `time` から始まる値は時間軸の図 (#3165)
|
|
7215
|
-
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 },
|
|
8650
|
+
/** `time` から始まる値は時間軸の図 (#3165) の、区切りの地、範囲の囲みの地、空きの枠の地、拡大の点線の濃さ。`chip` と `seal` から始まる値は列の図 (#3239) の、色を持たないチップの地と封の縞の濃さ */
|
|
8651
|
+
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 },
|
|
7216
8652
|
/** 字の並びの基準線を、置きたい高さの真ん中からどれだけ下げるか */
|
|
7217
8653
|
baseline: { label: 3.8, badge: 3.5, carrier: 3.7, stripTitle: 4.5, tag: 3.6, action: 3.8, mark: 4 },
|
|
7218
8654
|
/** 浮いて出る物が下から上がる長さと、弾んで出る物の始まりの大きさ */
|
|
@@ -7263,7 +8699,12 @@ var MOTION = {
|
|
|
7263
8699
|
* 拡大した目盛りでは、その段のその列の線を引き終えてから `wait` 秒待って次の目盛りへ進む。
|
|
7264
8700
|
* `after` は針が止まってから次の出来事を起こすまで、`reset` は区切りが替わって物差しが 0 に戻る長さ
|
|
7265
8701
|
*/
|
|
7266
|
-
time: { axis: 11.5, unitMin: 0.12, unitMax: 0.4, wait: 0.15, after: 0.15, reset: 0.05 }
|
|
8702
|
+
time: { axis: 11.5, unitMin: 0.12, unitMax: 0.4, wait: 0.15, after: 0.15, reset: 0.05 },
|
|
8703
|
+
/**
|
|
8704
|
+
* 列の図 (#3239)。`slide` はチップが滑る長さ、`seal` は封が列を覆う長さ、`stagger` は同じ段の出来事を起こす間、
|
|
8705
|
+
* `cut` はチップと封が一瞬で入れ替わる長さ
|
|
8706
|
+
*/
|
|
8707
|
+
lineup: { slide: 0.7, seal: 0.6, stagger: 0.2, cut: 0.01 }
|
|
7267
8708
|
};
|
|
7268
8709
|
var READABLE_PX = 10.5;
|
|
7269
8710
|
var EASE = {
|
|
@@ -7656,7 +9097,7 @@ function layoutStrip(diagram, x, y, width, trail) {
|
|
|
7656
9097
|
const fields = [];
|
|
7657
9098
|
let cx = start;
|
|
7658
9099
|
let row = 0;
|
|
7659
|
-
const
|
|
9100
|
+
const place2 = (w) => {
|
|
7660
9101
|
if (cx > start && cx + w > width - pad2) {
|
|
7661
9102
|
cx = start;
|
|
7662
9103
|
row++;
|
|
@@ -7667,12 +9108,12 @@ function layoutStrip(diagram, x, y, width, trail) {
|
|
|
7667
9108
|
};
|
|
7668
9109
|
for (const name2 of diagram.strip.fields) {
|
|
7669
9110
|
const w = fieldWidth(diagram, name2);
|
|
7670
|
-
const at =
|
|
9111
|
+
const at = place2(w);
|
|
7671
9112
|
const meter = meterOf(diagram, name2);
|
|
7672
9113
|
const line3 = meter ? ratioOf(meter.line) : void 0;
|
|
7673
9114
|
fields.push({ name: name2, ...at, w, ...meter && line3 !== void 0 ? { meter: { line: line3, text: meter.line, x: at.x, w: LOOK.time.meter.w } } : {} });
|
|
7674
9115
|
}
|
|
7675
|
-
const laidTrail = trail ? { ...trail, ...
|
|
9116
|
+
const laidTrail = trail ? { ...trail, ...place2(trailWidth(trail)), w: trailWidth(trail) } : void 0;
|
|
7676
9117
|
return { x, y, w: width, h: h + row * line2, title: diagram.strip.title, fields, ...laidTrail ? { trail: laidTrail } : {} };
|
|
7677
9118
|
}
|
|
7678
9119
|
function shiftContent(layout, dx, dy) {
|
|
@@ -8583,6 +10024,138 @@ function labelsOf(diagram, layout) {
|
|
|
8583
10024
|
return labels;
|
|
8584
10025
|
}
|
|
8585
10026
|
|
|
10027
|
+
// src/layout/lineup.ts
|
|
10028
|
+
var isLineupLayout = (layout) => layout.kind === "lineup";
|
|
10029
|
+
function notesOf(diagram, id, sub) {
|
|
10030
|
+
const written = diagram.steps.flatMap((step) => step.events.flatMap((e) => e.type === "swap" && e.box === id ? [textWidth(e.text, TYPE.boxSubStrong)] : []));
|
|
10031
|
+
return sub === void 0 ? written : [textWidth(sub, TYPE.boxSub), ...written];
|
|
10032
|
+
}
|
|
10033
|
+
function layoutLineup(diagram) {
|
|
10034
|
+
const { margin, gap, lineup: N } = LOOK;
|
|
10035
|
+
const items = diagram.lineup?.items ?? [];
|
|
10036
|
+
const known = new Set(items.map((item) => item.id));
|
|
10037
|
+
const chipW = Math.max(N.chip.w, ...items.map((item) => item.label === void 0 ? 0 : textWidth(item.label, TYPE.chip) + N.chip.padX * 2));
|
|
10038
|
+
const pitch = chipW + N.chip.gap;
|
|
10039
|
+
const trackW = pitch * LANE_MOST - N.chip.gap;
|
|
10040
|
+
const titled = diagram.boxes.map((b) => textWidth(b.name, TYPE.boxName) + N.textGap + Math.max(0, ...notesOf(diagram, b.id, b.sub)));
|
|
10041
|
+
const laneW = Math.max(trackW + N.padX * 2, ...titled.map((w) => w + N.padX * 2), stripNeed(diagram));
|
|
10042
|
+
const colors = boxColors(diagram);
|
|
10043
|
+
const lanes = diagram.boxes.map((b, i) => {
|
|
10044
|
+
const y = margin + i * (N.h + gap);
|
|
10045
|
+
const baseline = y + N.textY;
|
|
10046
|
+
const noteRight = margin + laneW - N.padX;
|
|
10047
|
+
return {
|
|
10048
|
+
id: b.id,
|
|
10049
|
+
name: b.name,
|
|
10050
|
+
...b.sub !== void 0 ? { sub: b.sub } : {},
|
|
10051
|
+
color: colors.get(b.id) ?? "slate",
|
|
10052
|
+
x: margin,
|
|
10053
|
+
y,
|
|
10054
|
+
w: laneW,
|
|
10055
|
+
h: N.h,
|
|
10056
|
+
cx: margin + laneW / 2,
|
|
10057
|
+
cy: y + N.h / 2,
|
|
10058
|
+
title: { ...textBox(b.name, margin + N.padX, baseline, TYPE.boxName), text: b.name, baseline },
|
|
10059
|
+
...b.sub !== void 0 ? { note: { ...textBox(b.sub, noteRight - textWidth(b.sub, TYPE.boxSub), baseline, TYPE.boxSub), text: b.sub, baseline } } : {},
|
|
10060
|
+
noteRight,
|
|
10061
|
+
track: { x: margin + N.padX, y: y + N.trackY, w: trackW, h: N.chip.h }
|
|
10062
|
+
};
|
|
10063
|
+
});
|
|
10064
|
+
const laneOf = new Map(lanes.map((lane) => [lane.id, lane]));
|
|
10065
|
+
const chips = [];
|
|
10066
|
+
const seals = [];
|
|
10067
|
+
const stamps = [];
|
|
10068
|
+
const picks = [];
|
|
10069
|
+
const seated = /* @__PURE__ */ new Map();
|
|
10070
|
+
const open = /* @__PURE__ */ new Map();
|
|
10071
|
+
let picked;
|
|
10072
|
+
diagram.steps.forEach((step, s) => {
|
|
10073
|
+
const before = [...seated.values()].flat();
|
|
10074
|
+
step.events.forEach((e, k) => {
|
|
10075
|
+
if (e.type !== "line" && e.type !== "seal" && e.type !== "open" && e.type !== "pick" && e.type !== "stamp") return;
|
|
10076
|
+
const lane = laneOf.get(e.box);
|
|
10077
|
+
if (!lane) return;
|
|
10078
|
+
const at = { step: s, event: k };
|
|
10079
|
+
if (e.type === "seal" && !open.has(lane.id)) {
|
|
10080
|
+
const { over } = N.seal;
|
|
10081
|
+
const seal = { ...at, 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 };
|
|
10082
|
+
seals.push(seal);
|
|
10083
|
+
open.set(lane.id, seal);
|
|
10084
|
+
} else if (e.type === "open") {
|
|
10085
|
+
const seal = open.get(lane.id);
|
|
10086
|
+
if (seal) seal.until = at;
|
|
10087
|
+
open.delete(lane.id);
|
|
10088
|
+
} else if (e.type === "pick" && picked !== lane.id) {
|
|
10089
|
+
picks.push({ ...at, lane: lane.id });
|
|
10090
|
+
picked = lane.id;
|
|
10091
|
+
} else if (e.type === "stamp") {
|
|
10092
|
+
const w = textWidth(e.text, TYPE.stamp) + N.stamp.padX * 2;
|
|
10093
|
+
stamps.push({ ...at, 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 });
|
|
10094
|
+
} else if (e.type === "line") {
|
|
10095
|
+
const old = seated.get(lane.id) ?? [];
|
|
10096
|
+
const order = [...new Set(e.items)].filter((id) => known.has(id)).slice(0, LANE_MOST);
|
|
10097
|
+
const placed = order.map((id, index) => {
|
|
10098
|
+
const same2 = old.find((c) => c.id === id);
|
|
10099
|
+
if (same2?.index === index) return same2;
|
|
10100
|
+
const others = before.filter((c) => c.id === id);
|
|
10101
|
+
const source = same2 ?? others.find((c) => c.lane === picked) ?? others.at(-1);
|
|
10102
|
+
const seat2 = { ...at, 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] } : {} };
|
|
10103
|
+
chips.push(seat2);
|
|
10104
|
+
return seat2;
|
|
10105
|
+
});
|
|
10106
|
+
for (const c of old) if (!placed.includes(c)) c.until = at;
|
|
10107
|
+
seated.set(lane.id, placed);
|
|
10108
|
+
}
|
|
10109
|
+
});
|
|
10110
|
+
});
|
|
10111
|
+
const layout = {
|
|
10112
|
+
kind: "lineup",
|
|
10113
|
+
width: 0,
|
|
10114
|
+
height: 0,
|
|
10115
|
+
regions: [],
|
|
10116
|
+
boxes: lanes,
|
|
10117
|
+
lifelines: [],
|
|
10118
|
+
edges: [],
|
|
10119
|
+
labels: [],
|
|
10120
|
+
actions: [],
|
|
10121
|
+
badges: [],
|
|
10122
|
+
paths: [],
|
|
10123
|
+
ends: [],
|
|
10124
|
+
lanes,
|
|
10125
|
+
chips,
|
|
10126
|
+
seals,
|
|
10127
|
+
stamps,
|
|
10128
|
+
picks
|
|
10129
|
+
};
|
|
10130
|
+
const bottom = Math.max(...lanes.map((lane) => lane.y + lane.h), margin);
|
|
10131
|
+
const width = laneW + margin * 2;
|
|
10132
|
+
const strip2 = layoutStrip(diagram, margin, bottom + gap, width - margin * 2);
|
|
10133
|
+
layout.width = width;
|
|
10134
|
+
layout.height = (strip2 ? strip2.y + strip2.h : bottom) + margin;
|
|
10135
|
+
if (strip2) layout.strip = strip2;
|
|
10136
|
+
layout.badges = badgesOf2(diagram, layout);
|
|
10137
|
+
return layout;
|
|
10138
|
+
}
|
|
10139
|
+
function badgesOf2(diagram, layout) {
|
|
10140
|
+
const { inset } = LOOK.badge;
|
|
10141
|
+
const out = [];
|
|
10142
|
+
const put = (step, x, y, color) => {
|
|
10143
|
+
out.push({ step, x, y, color });
|
|
10144
|
+
};
|
|
10145
|
+
diagram.steps.forEach((step, s) => {
|
|
10146
|
+
const lane = step.events.flatMap((e) => "box" in e ? [e.box] : []).flatMap((id) => layout.lanes.filter((l) => l.id === id))[0];
|
|
10147
|
+
if (lane) {
|
|
10148
|
+
put(s, lane.x, lane.track.y + lane.track.h / 2, lane.color);
|
|
10149
|
+
return;
|
|
10150
|
+
}
|
|
10151
|
+
const before = out[out.length - 1];
|
|
10152
|
+
if (layout.strip && step.events.some((e) => e.type === "strip")) put(s, layout.strip.x + inset, layout.strip.y + inset, "slate");
|
|
10153
|
+
else if (before) out.push({ ...before, step: s });
|
|
10154
|
+
else put(s, LOOK.margin, LOOK.margin, layout.lanes[0]?.color ?? "slate");
|
|
10155
|
+
});
|
|
10156
|
+
return replaceSameSpot(out);
|
|
10157
|
+
}
|
|
10158
|
+
|
|
8586
10159
|
// src/layout/sequence.ts
|
|
8587
10160
|
function layoutSequence(diagram) {
|
|
8588
10161
|
const { box: B, sequence: Q, label: L, margin, gap } = LOOK;
|
|
@@ -9294,7 +10867,7 @@ function layoutTime(diagram, lang = "ja") {
|
|
|
9294
10867
|
} 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 });
|
|
9295
10868
|
}
|
|
9296
10869
|
layout.spans = spans;
|
|
9297
|
-
layout.badges =
|
|
10870
|
+
layout.badges = badgesOf3(diagram, layout, needleSteps(diagram));
|
|
9298
10871
|
layout.labels = labelsOf2(diagram, layout);
|
|
9299
10872
|
y = Math.max(y, ...layout.labels.map((l) => l.y + l.h + LOOK.label.soft));
|
|
9300
10873
|
const lanes = [];
|
|
@@ -9363,7 +10936,7 @@ function layoutTime(diagram, lang = "ja") {
|
|
|
9363
10936
|
const strip2 = layoutStrip(diagram, margin, axisBottom + gap, width - margin * 2);
|
|
9364
10937
|
if (strip2) layout.strip = strip2;
|
|
9365
10938
|
layout.height = (strip2 ? strip2.y + strip2.h : axisBottom) + margin;
|
|
9366
|
-
layout.badges =
|
|
10939
|
+
layout.badges = badgesOf3(diagram, layout, needleSteps(diagram));
|
|
9367
10940
|
return layout;
|
|
9368
10941
|
}
|
|
9369
10942
|
function wire(event2, zoom) {
|
|
@@ -9405,7 +10978,7 @@ function seat(edge2, from, to, rooms) {
|
|
|
9405
10978
|
if (arrive.settle) edge2.settle = arrive.settle;
|
|
9406
10979
|
if (leave.wait) edge2.wait = leave.wait;
|
|
9407
10980
|
}
|
|
9408
|
-
function
|
|
10981
|
+
function badgesOf3(diagram, layout, needle) {
|
|
9409
10982
|
const { r, inset } = LOOK.badge;
|
|
9410
10983
|
const { axis } = layout;
|
|
9411
10984
|
const taken = [];
|
|
@@ -9698,7 +11271,7 @@ function layoutTree(diagram) {
|
|
|
9698
11271
|
links,
|
|
9699
11272
|
runs
|
|
9700
11273
|
};
|
|
9701
|
-
layout.badges =
|
|
11274
|
+
layout.badges = badgesOf4(diagram, layout);
|
|
9702
11275
|
layout.labels = labelsOf3(diagram, layout);
|
|
9703
11276
|
const cards = nodes.flatMap((n) => n.card ? [n.card] : []);
|
|
9704
11277
|
const solids = [...nodes, ...cards, ...boxes, ...layout.labels];
|
|
@@ -9710,10 +11283,10 @@ function layoutTree(diagram) {
|
|
|
9710
11283
|
layout.width = width;
|
|
9711
11284
|
layout.height = (strip2 ? strip2.y + strip2.h : bottom) + margin;
|
|
9712
11285
|
if (strip2) layout.strip = strip2;
|
|
9713
|
-
layout.badges =
|
|
11286
|
+
layout.badges = badgesOf4(diagram, layout);
|
|
9714
11287
|
return layout;
|
|
9715
11288
|
}
|
|
9716
|
-
function
|
|
11289
|
+
function badgesOf4(diagram, layout) {
|
|
9717
11290
|
const { r, inset } = LOOK.badge;
|
|
9718
11291
|
const apart = r * 2 + inset;
|
|
9719
11292
|
const taken = [];
|
|
@@ -9804,6 +11377,7 @@ function labelsOf3(diagram, layout) {
|
|
|
9804
11377
|
}
|
|
9805
11378
|
|
|
9806
11379
|
// src/timeline.ts
|
|
11380
|
+
var LINEUP_LENGTH = { line: MOTION.lineup.slide, seal: MOTION.lineup.seal, open: MOTION.fade, pick: MOTION.fade, stamp: MOTION.popFade };
|
|
9807
11381
|
function plan(step, needle) {
|
|
9808
11382
|
const out = { edges: [], events: [], busy: 0 };
|
|
9809
11383
|
let cursor = MOTION.edgeAt;
|
|
@@ -9844,6 +11418,16 @@ function plan(step, needle) {
|
|
|
9844
11418
|
return;
|
|
9845
11419
|
}
|
|
9846
11420
|
if (event2.type === "now" || needle && pulled(event2)) return;
|
|
11421
|
+
if (event2.type === "line" || event2.type === "seal" || event2.type === "open" || event2.type === "pick" || event2.type === "stamp") {
|
|
11422
|
+
const a = cursor;
|
|
11423
|
+
const b = a + LINEUP_LENGTH[event2.type];
|
|
11424
|
+
out.edges.push({ event: e, a, b, carries: false, coin: false, named: false });
|
|
11425
|
+
cursor = a + MOTION.lineup.stagger;
|
|
11426
|
+
arrived = b;
|
|
11427
|
+
changes = 0;
|
|
11428
|
+
out.busy = Math.max(out.busy, b);
|
|
11429
|
+
return;
|
|
11430
|
+
}
|
|
9847
11431
|
if (event2.type === "commit" || event2.type === "branch" || event2.type === "leaf" || event2.type === "node") {
|
|
9848
11432
|
const a = cursor;
|
|
9849
11433
|
const b = a + MOTION.draw;
|
|
@@ -10176,14 +11760,16 @@ function band(region, ink) {
|
|
|
10176
11760
|
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)}` : "";
|
|
10177
11761
|
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>`;
|
|
10178
11762
|
}
|
|
10179
|
-
function subLines(box, m, changes, y, ink) {
|
|
11763
|
+
function subLines(box, m, changes, y, ink, right) {
|
|
10180
11764
|
const seq = [[0, box.sub ?? "", "dg-ss"], ...changes];
|
|
10181
11765
|
return seq.map(([t, text2, cls], k) => {
|
|
10182
11766
|
const next = seq[k + 1]?.[0];
|
|
10183
11767
|
const anim = k === 0 ? next === void 0 ? "" : m.until(next - MOTION.untilFade) : next === void 0 ? m.rise(t) : m.rise(t, next - MOTION.untilFade);
|
|
10184
11768
|
if (text2 === "") return "";
|
|
10185
11769
|
const shown2 = [[k === 0 ? 0 : t, next === void 0 ? Number.POSITIVE_INFINITY : next - MOTION.untilFade]];
|
|
10186
|
-
|
|
11770
|
+
const style = cls === "dg-ss" ? TYPE.boxSub : TYPE.boxSubStrong;
|
|
11771
|
+
const drawn = right === void 0 ? write(ink, cls, box.cx, y, text2, style, shown2, "middle") : write(ink, cls, right - textWidth(text2, style), y, text2, style, shown2);
|
|
11772
|
+
return `<g${anim ? ` class="dg-a" style="${anim}"` : ""}>${drawn}</g>`;
|
|
10187
11773
|
}).join("");
|
|
10188
11774
|
}
|
|
10189
11775
|
function cardFrame(box, ctx, act, y, h) {
|
|
@@ -10251,9 +11837,9 @@ function endMark(e, color, ink) {
|
|
|
10251
11837
|
function lifeline(x, y1, y2) {
|
|
10252
11838
|
return `<line class="dg-ll" x1="${r1(x)}" y1="${r1(y1)}" x2="${r1(x)}" y2="${r1(y2)}"/>`;
|
|
10253
11839
|
}
|
|
10254
|
-
function edge(e, time, ctx, past = false) {
|
|
11840
|
+
function edge(e, time, ctx, past = false, since = 0) {
|
|
10255
11841
|
const { m } = ctx;
|
|
10256
|
-
ctx.traces.push({ from: e.from, to: e.to, points: e.points, shown: ALWAYS });
|
|
11842
|
+
ctx.traces.push({ from: e.from, to: e.to, points: e.points, shown: since > 0 ? [[since, Number.POSITIVE_INFINITY]] : ALWAYS });
|
|
10257
11843
|
const d = pathOf(e.points);
|
|
10258
11844
|
const head = arrowHead(e.points);
|
|
10259
11845
|
const { start: a, drawn: b, end } = time;
|
|
@@ -10289,8 +11875,9 @@ function edge(e, time, ctx, past = false) {
|
|
|
10289
11875
|
[m.total, { opacity: 0, "stroke-dashoffset": run }]
|
|
10290
11876
|
]);
|
|
10291
11877
|
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 }]]) : "";
|
|
11878
|
+
const path2 = `<path class="dg-e" d="${d}"/><path class="dg-eh" d="${head}"/>`;
|
|
10292
11879
|
return {
|
|
10293
|
-
base: `<
|
|
11880
|
+
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}"/>` : ""}`,
|
|
10294
11881
|
lit: `<g style="${cs(e.color)}"><path class="dg-e-on dg-a" pathLength="1" d="${d}" style="${line2}"/><path class="dg-eh-on dg-a" d="${head}" style="${hk}"/><path class="dg-flow dg-a" d="${d}" style="${flow}"/></g>`
|
|
10295
11882
|
};
|
|
10296
11883
|
}
|
|
@@ -10585,8 +12172,133 @@ function tagMotion(ref, list2, timeOf, ctx) {
|
|
|
10585
12172
|
return `<g class="dg-a" data-ref="${esc(ref)}" style="${style}">${tagShape(ref, ctx.sh)}</g>`;
|
|
10586
12173
|
}
|
|
10587
12174
|
|
|
10588
|
-
// src/render/
|
|
12175
|
+
// src/render/lineup.ts
|
|
10589
12176
|
var r13 = (v) => Math.round(v * 100) / 100;
|
|
12177
|
+
var place = (dx, dy, scale = 1) => `translate(${r13(dx)}px,${r13(dy)}px) scale(${scale})`;
|
|
12178
|
+
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]);
|
|
12179
|
+
function drawLineup(layout, diagram, timeline, ctx, subs) {
|
|
12180
|
+
const { m } = ctx;
|
|
12181
|
+
const N = LOOK.lineup;
|
|
12182
|
+
const cut = MOTION.lineup.cut;
|
|
12183
|
+
const timeOf = (at) => timeline.edges.find((t) => t.step === at.step && t.event === at.event) ?? { start: 0, drawn: 0 };
|
|
12184
|
+
const items = new Map((diagram.lineup?.items ?? []).map((item) => [item.id, item]));
|
|
12185
|
+
const turns = new Map(layout.lanes.map((lane) => [lane.id, []]));
|
|
12186
|
+
const faint = /* @__PURE__ */ new Set();
|
|
12187
|
+
const turn = (id, at, to) => {
|
|
12188
|
+
if (faint.has(id) === to) return;
|
|
12189
|
+
if (to) faint.add(id);
|
|
12190
|
+
else faint.delete(id);
|
|
12191
|
+
turns.get(id)?.push([at, to]);
|
|
12192
|
+
};
|
|
12193
|
+
for (const time of [...timeline.edges].sort((a, b) => a.start - b.start)) {
|
|
12194
|
+
const e = diagram.steps[time.step]?.events[time.event];
|
|
12195
|
+
if (e?.type === "line") turn(e.box, time.start, false);
|
|
12196
|
+
if (e?.type === "pick") for (const lane of layout.lanes) turn(lane.id, time.start, lane.id !== e.box);
|
|
12197
|
+
}
|
|
12198
|
+
const fadeOf = (id) => {
|
|
12199
|
+
const list2 = turns.get(id) ?? [];
|
|
12200
|
+
if (list2.length === 0) return void 0;
|
|
12201
|
+
const frames = [[0, { opacity: 1 }]];
|
|
12202
|
+
let now = 1;
|
|
12203
|
+
for (const [t, to] of list2) {
|
|
12204
|
+
const next = to ? N.faint : 1;
|
|
12205
|
+
frames.push([t, { opacity: now }, EASE.inOut], [t + MOTION.fade, { opacity: next }]);
|
|
12206
|
+
now = next;
|
|
12207
|
+
}
|
|
12208
|
+
frames.push([m.last, { opacity: now }, EASE.inOut], [m.total, { opacity: 1 }]);
|
|
12209
|
+
return m.kf(frames);
|
|
12210
|
+
};
|
|
12211
|
+
const closedOf = (seal) => [timeOf(seal).drawn, seal.until ? timeOf(seal.until).start : Number.POSITIVE_INFINITY];
|
|
12212
|
+
const hideOf = (seals) => {
|
|
12213
|
+
if (seals.length === 0) return void 0;
|
|
12214
|
+
const frames = [[0, { opacity: 1 }]];
|
|
12215
|
+
for (const seal of seals) {
|
|
12216
|
+
const [a, b] = closedOf(seal);
|
|
12217
|
+
frames.push([a, { opacity: 1 }], [a + cut, { opacity: 0 }]);
|
|
12218
|
+
if (seal.until) frames.push([b, { opacity: 0 }], [b + cut, { opacity: 1 }]);
|
|
12219
|
+
}
|
|
12220
|
+
frames.push([m.total - cut, { opacity: seals.at(-1)?.until ? 1 : 0 }], [m.total, { opacity: 1 }]);
|
|
12221
|
+
return m.kf(frames);
|
|
12222
|
+
};
|
|
12223
|
+
const sealKf = (seal) => {
|
|
12224
|
+
const { start, drawn } = timeOf(seal);
|
|
12225
|
+
const none = { opacity: 0, transform: "scaleX(0)" };
|
|
12226
|
+
const end = seal.until ? [
|
|
12227
|
+
[timeOf(seal.until).start, { opacity: 1 }, EASE.inOut],
|
|
12228
|
+
[timeOf(seal.until).start + MOTION.fade, { opacity: 0 }],
|
|
12229
|
+
[m.total, { opacity: 0 }]
|
|
12230
|
+
] : [
|
|
12231
|
+
[m.last, { opacity: 1 }, EASE.inOut],
|
|
12232
|
+
[m.total, { opacity: 0 }]
|
|
12233
|
+
];
|
|
12234
|
+
return m.kf([[0, none], [start - cut, none], [start, { opacity: 1, transform: "scaleX(0)" }, EASE.inOut], [drawn, { transform: "scaleX(1)" }], ...end]);
|
|
12235
|
+
};
|
|
12236
|
+
const leaving = (c) => {
|
|
12237
|
+
if (!c.until) return void 0;
|
|
12238
|
+
const until = c.until;
|
|
12239
|
+
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);
|
|
12240
|
+
return next ? { at: timeOf(next).start, moved: true } : { at: timeOf(until).start, moved: false };
|
|
12241
|
+
};
|
|
12242
|
+
const chipKf = (c) => {
|
|
12243
|
+
const a = timeOf(c).start;
|
|
12244
|
+
const rest = place(0, 0);
|
|
12245
|
+
const frames = [];
|
|
12246
|
+
if (c.from) {
|
|
12247
|
+
const off = place(c.from[0] - c.x, c.from[1] - c.y);
|
|
12248
|
+
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 }]);
|
|
12249
|
+
} else {
|
|
12250
|
+
const off = place(0, 0, LOOK.popFrom);
|
|
12251
|
+
frames.push([0, { opacity: 0, transform: off }], [a, { opacity: 0, transform: off }, EASE.pop], [a + MOTION.popFade, { opacity: 1, transform: rest }]);
|
|
12252
|
+
}
|
|
12253
|
+
const leaves = leaving(c);
|
|
12254
|
+
if (leaves) {
|
|
12255
|
+
frames.push([leaves.at, { opacity: 1 }, EASE.inOut], [leaves.at + (leaves.moved ? cut : MOTION.fade), { opacity: 0 }], [m.total, { opacity: 0 }]);
|
|
12256
|
+
} else {
|
|
12257
|
+
frames.push([m.last, { opacity: 1 }, EASE.inOut], [m.total, { opacity: 0 }]);
|
|
12258
|
+
}
|
|
12259
|
+
return m.kf(frames);
|
|
12260
|
+
};
|
|
12261
|
+
const chip = (c, closed) => {
|
|
12262
|
+
const item = items.get(c.id);
|
|
12263
|
+
const color = item?.color;
|
|
12264
|
+
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}"/>`;
|
|
12265
|
+
const shown2 = without([timeOf(c).start + MOTION.lineup.slide, leaving(c)?.at ?? Number.POSITIVE_INFINITY], closed);
|
|
12266
|
+
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, shown2, "middle");
|
|
12267
|
+
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>`;
|
|
12268
|
+
};
|
|
12269
|
+
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>`;
|
|
12270
|
+
const faded = new Map(layout.lanes.map((lane) => [lane.id, fadeOf(lane.id)]));
|
|
12271
|
+
const lanes = layout.lanes.map((lane) => {
|
|
12272
|
+
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}/>`;
|
|
12273
|
+
const rings = layout.picks.flatMap((pick, k) => pick.lane === lane.id ? [ring(pick, layout.picks[k + 1], `${rect("dg-halo")}${rect("dg-on")}`)] : []).join("");
|
|
12274
|
+
const notes = subLines(lane, m, subs.get(lane.id) ?? [], lane.title.baseline, ctx.ink, lane.noteRight);
|
|
12275
|
+
const fade = faded.get(lane.id);
|
|
12276
|
+
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>`;
|
|
12277
|
+
}).join("");
|
|
12278
|
+
const stripes = N.seal.stripe;
|
|
12279
|
+
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>`;
|
|
12280
|
+
const chips = layout.lanes.map((lane) => {
|
|
12281
|
+
const seals = layout.seals.filter((s) => s.lane === lane.id);
|
|
12282
|
+
const closed = seals.map(closedOf);
|
|
12283
|
+
const seats = layout.chips.filter((c) => c.lane === lane.id).map((c) => chip(c, closed)).join("");
|
|
12284
|
+
const hide = hideOf(seals);
|
|
12285
|
+
const track = `<g${hide ? ' class="dg-a"' : ""} data-lineup-track="${esc(lane.id)}"${hide ? ` style="${hide}"` : ""}>${seats}</g>`;
|
|
12286
|
+
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("");
|
|
12287
|
+
const stamps = layout.stamps.filter((s) => s.lane === lane.id).map((s) => {
|
|
12288
|
+
const at = timeOf(s).start;
|
|
12289
|
+
const cx = s.x + s.w / 2;
|
|
12290
|
+
const cy = s.y + s.h / 2;
|
|
12291
|
+
const text2 = write(ctx.ink, "dg-ln-st", cx, cy + LOOK.baseline.tag, s.text, TYPE.stamp, [[at, Number.POSITIVE_INFINITY]], "middle");
|
|
12292
|
+
return `<g class="dg-popc dg-a" data-lineup-stamp="${esc(lane.id)}" style="${cs(N.stamp.color)};${m.pop(at)}"><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>`;
|
|
12293
|
+
}).join("");
|
|
12294
|
+
const fade = faded.get(lane.id);
|
|
12295
|
+
return `<g${fade ? ` class="dg-a" style="${fade}"` : ""}>${track}${covers}${stamps}</g>`;
|
|
12296
|
+
}).join("");
|
|
12297
|
+
return { lanes, chips: `${pattern}${chips}` };
|
|
12298
|
+
}
|
|
12299
|
+
|
|
12300
|
+
// src/render/time.ts
|
|
12301
|
+
var r14 = (v) => Math.round(v * 100) / 100;
|
|
10590
12302
|
var ja3 = (cls, text2) => hasWide(text2) ? `${cls} ${cls}j` : cls;
|
|
10591
12303
|
var sansOf = (t) => ({ ...t, family: "sans" });
|
|
10592
12304
|
function simplify(keys2) {
|
|
@@ -10637,18 +12349,18 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
|
|
|
10637
12349
|
const times = [passed.get(u), box ? arrivals.get(box) : void 0].filter((t) => t !== void 0);
|
|
10638
12350
|
return times.length > 0 ? Math.min(...times) : void 0;
|
|
10639
12351
|
};
|
|
10640
|
-
for (const p of layout.periods) if (p.index % 2 === 1) base.push(`<rect class="dg-tm-ep" x="${
|
|
12352
|
+
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"/>`);
|
|
10641
12353
|
if (layout.zoom) {
|
|
10642
12354
|
const z = layout.zoom;
|
|
10643
12355
|
z.columns.forEach((c, k) => {
|
|
10644
|
-
if (k > 0) base.push(`<line class="dg-tm-sep" x1="${
|
|
12356
|
+
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)}"/>`);
|
|
10645
12357
|
base.push(write(ink, ja3("dg-tm-hd", c.head), c.x + c.w / 2, z.headY, c.head, TYPE.timeHead, ALWAYS, "middle"));
|
|
10646
12358
|
for (const box of c.boxes) node.push(columnBox(box, c.unit));
|
|
10647
12359
|
});
|
|
10648
12360
|
}
|
|
10649
12361
|
function columnBox(box, unit) {
|
|
10650
12362
|
const on = [...new Set(layout.wires.filter((w) => w.from === box || w.to === box).map((w) => w.step))].sort((a, b) => a - b);
|
|
10651
|
-
const frame = (cls) => `<rect class="${cls}" x="${
|
|
12363
|
+
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}"/>`;
|
|
10652
12364
|
if (box.empty) {
|
|
10653
12365
|
const shown3 = passed.get(unit);
|
|
10654
12366
|
const word = layout.zoom?.empty ?? "";
|
|
@@ -10664,11 +12376,11 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
|
|
|
10664
12376
|
for (const row of layout.rows) {
|
|
10665
12377
|
const parts = [];
|
|
10666
12378
|
for (const mark of layout.marks.filter((x2) => x2.row === row.id)) {
|
|
10667
|
-
const rect = (cls, extra = "") => `<rect class="${cls}" x="${
|
|
12379
|
+
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}/>`;
|
|
10668
12380
|
parts.push(rect("dg-tm-slot"));
|
|
10669
12381
|
if (mark.empty) {
|
|
10670
12382
|
const shown3 = passed.get(mark.unit);
|
|
10671
|
-
if (shown3 !== void 0) parts.push(`<circle class="dg-tm-x dg-a" cx="${
|
|
12383
|
+
if (shown3 !== 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(shown3, m.last, { f: 0.2 })}"/>`);
|
|
10672
12384
|
continue;
|
|
10673
12385
|
}
|
|
10674
12386
|
const shown2 = filled(row.id, mark.unit);
|
|
@@ -10688,13 +12400,13 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
|
|
|
10688
12400
|
const z = layout.zoom;
|
|
10689
12401
|
const hide = layout.spans.filter((s) => s.kind === "box" && s.from <= z.to && z.from <= s.to).map((s) => at(s.step, s.event)).filter((t) => t !== void 0).sort((a, b) => a - b)[0];
|
|
10690
12402
|
const guides = z.guides.map((g) => `<path class="dg-tm-gd" d="${pathOf(g)}"/>`).join("");
|
|
10691
|
-
const lens = `<rect class="dg-tm-fr" x="${
|
|
12403
|
+
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}`;
|
|
10692
12404
|
base.push(hide === void 0 ? lens : `<g class="dg-a" style="${m.until(hide)}">${lens}</g>`);
|
|
10693
12405
|
}
|
|
10694
|
-
const x = (u) =>
|
|
10695
|
-
const majors = layout.ticks.map((t) => `M ${x(t.at)} ${
|
|
10696
|
-
const minors = layout.minor.map((u) => `M ${x(u)} ${
|
|
10697
|
-
base.push(`<path class="dg-tm-ax" d="M ${x(0)} ${
|
|
12406
|
+
const x = (u) => r14(axis.x + u * axis.unit);
|
|
12407
|
+
const majors = layout.ticks.map((t) => `M ${x(t.at)} ${r14(axis.line - T.major / 2)} V ${r14(axis.line + T.major / 2)}`);
|
|
12408
|
+
const minors = layout.minor.map((u) => `M ${x(u)} ${r14(axis.line - T.minor / 2)} V ${r14(axis.line + T.minor / 2)}`);
|
|
12409
|
+
base.push(`<path class="dg-tm-ax" d="M ${x(0)} ${r14(axis.line)} H ${x(axis.count)} ${[...majors, ...minors].join(" ")}"/>`);
|
|
10698
12410
|
for (const t of layout.ticks) base.push(write(ink, ja3("dg-tm-tk", t.text), t.left, t.y, t.text, TYPE.timeTick));
|
|
10699
12411
|
for (const p of layout.periods) {
|
|
10700
12412
|
base.push(write(ink, ja3("dg-tm-en", p.name), p.x + p.w / 2, p.nameY, p.name, TYPE.timePeriod, ALWAYS, "middle"));
|
|
@@ -10707,16 +12419,16 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
|
|
|
10707
12419
|
const shown2 = [[a, until ?? Number.POSITIVE_INFINITY]];
|
|
10708
12420
|
const vis = until === void 0 ? m.vis(a) : m.vis(a, until, { within: true });
|
|
10709
12421
|
if (span.kind === "bracket") {
|
|
10710
|
-
const [x0, x1, y0, y12] = [
|
|
12422
|
+
const [x0, x1, y0, y12] = [r14(span.x + 1), r14(span.x + span.w - 1), r14(span.y), r14(span.y + span.h)];
|
|
10711
12423
|
const words = write(ink, ja3("dg-tm-bt", span.text), span.textRect.x + span.textRect.w / 2, span.textY, span.text, TYPE.spanText, shown2, "middle");
|
|
10712
12424
|
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>`);
|
|
10713
12425
|
continue;
|
|
10714
12426
|
}
|
|
10715
|
-
base.push(`<g class="dg-a" data-span="${span.step}" style="${cs(span.color)};${vis}"><rect class="dg-tm-bx" x="${
|
|
12427
|
+
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>`);
|
|
10716
12428
|
const tag = span.textRect;
|
|
10717
12429
|
ink.push({ text: span.text, rect: tag, shown: shown2, boxed: true });
|
|
10718
12430
|
top.push(
|
|
10719
|
-
`<g class="dg-tg dg-popc dg-a" style="${cs(span.color)};${until === void 0 ? m.pop(a) : m.pop(a, until)}"><rect x="${
|
|
12431
|
+
`<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>`
|
|
10720
12432
|
);
|
|
10721
12433
|
}
|
|
10722
12434
|
const P = T.point;
|
|
@@ -10724,7 +12436,7 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
|
|
|
10724
12436
|
const { cx, cy, r } = point;
|
|
10725
12437
|
const times = point.changes.map((c) => at(c.step, c.event) ?? Number.POSITIVE_INFINITY);
|
|
10726
12438
|
const first = times[0];
|
|
10727
|
-
base.push(`<path class="dg-tm-con" d="M ${
|
|
12439
|
+
base.push(`<path class="dg-tm-con" d="M ${r14(cx)} ${r14(rowsBottom + 3)} L ${r14(cx)} ${r14(cy - r - 2)}"/>`);
|
|
10728
12440
|
const tx = point.text.x;
|
|
10729
12441
|
const name2 = write(ink, ja3("dg-tm-pn", point.id), tx, cy + P.nameY, point.id, TYPE.pointName);
|
|
10730
12442
|
const grey = name2.replace(/class="([^"]*)"/u, 'class="$1 dg-tm-pn-g"');
|
|
@@ -10740,9 +12452,9 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
|
|
|
10740
12452
|
const rings = point.changes.map((c, k) => {
|
|
10741
12453
|
const t = times[k];
|
|
10742
12454
|
if (!c.color || !Number.isFinite(t)) return "";
|
|
10743
|
-
return `<g class="dg-popc dg-a" style="${cs(c.color)};${m.pop(t)}"><circle class="dg-tm-pc" cx="${
|
|
12455
|
+
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>`;
|
|
10744
12456
|
}).join("");
|
|
10745
|
-
node.push(`<g data-point="${esc(point.id)}"><circle class="dg-tm-pg" cx="${
|
|
12457
|
+
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>`);
|
|
10746
12458
|
}
|
|
10747
12459
|
const wired = new Set(layout.wires.map((w) => `${w.step}/${w.event}`));
|
|
10748
12460
|
for (const e of layout.edges) {
|
|
@@ -10774,7 +12486,7 @@ function drawTime(layout, diagram, timeline, ctx, subs) {
|
|
|
10774
12486
|
const { y1, y2 } = layout.needle;
|
|
10775
12487
|
const N = T.needle;
|
|
10776
12488
|
top.push(
|
|
10777
|
-
`<g class="dg-a" data-needle="" style="${m.move(path2)}"><line class="dg-tm-nd" x1="0" y1="${
|
|
12489
|
+
`<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>`
|
|
10778
12490
|
);
|
|
10779
12491
|
return { base: base.join(""), lit: lit.join(""), node: node.join(""), top: top.join("") };
|
|
10780
12492
|
}
|
|
@@ -10784,12 +12496,12 @@ function meterField(field2, keys2, ctx) {
|
|
|
10784
12496
|
const { x, w, line: line2, text: text2 } = field2.meter;
|
|
10785
12497
|
const y = field2.y + M.y;
|
|
10786
12498
|
const kf = m.kf([
|
|
10787
|
-
...simplify(keys2).map(([t, v]) => [t, { transform: `scaleX(${
|
|
10788
|
-
[m.last, { transform: `scaleX(${
|
|
12499
|
+
...simplify(keys2).map(([t, v]) => [t, { transform: `scaleX(${r14(v * 1e3) / 1e3})` }]),
|
|
12500
|
+
[m.last, { transform: `scaleX(${r14(valueAt(keys2, m.last) * 1e3) / 1e3})` }, EASE.inOut],
|
|
10789
12501
|
[m.total, { transform: "scaleX(0)" }]
|
|
10790
12502
|
]);
|
|
10791
12503
|
const lx = x + w * line2;
|
|
10792
|
-
return `<rect class="dg-tm-mt" x="${
|
|
12504
|
+
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, field2.y + M.textY, text2, TYPE.meterLine, ALWAYS, "middle");
|
|
10793
12505
|
}
|
|
10794
12506
|
function timeFocus(layout, timeline, step, parts, vw, vh) {
|
|
10795
12507
|
const span = timeline.steps[step];
|
|
@@ -10811,7 +12523,7 @@ function timeFocus(layout, timeline, step, parts, vw, vh) {
|
|
|
10811
12523
|
}
|
|
10812
12524
|
|
|
10813
12525
|
// src/render/tree.ts
|
|
10814
|
-
var
|
|
12526
|
+
var r15 = (v) => Math.round(v * 100) / 100;
|
|
10815
12527
|
function drawTree(layout, diagram, timeline, ctx) {
|
|
10816
12528
|
const { m } = ctx;
|
|
10817
12529
|
const T = LOOK.tree;
|
|
@@ -10870,7 +12582,7 @@ function drawTree(layout, diagram, timeline, ctx) {
|
|
|
10870
12582
|
const ties = layout.nodes.flatMap((n) => {
|
|
10871
12583
|
if (!n.card) return [];
|
|
10872
12584
|
const at = drawnAt.get(n.id) ?? 0;
|
|
10873
|
-
const d = `M ${
|
|
12585
|
+
const d = `M ${r15(n.cx)} ${r15(n.y + n.h + LOOK.edge.inset)} V ${r15(n.card.y - LOOK.edge.inset)}`;
|
|
10874
12586
|
return [faded(n.id, `<path class="dg-tree-con dg-a" d="${d}" style="${m.vis(at)}"/>`)];
|
|
10875
12587
|
}).join("");
|
|
10876
12588
|
const traced = /* @__PURE__ */ new Set();
|
|
@@ -10905,7 +12617,7 @@ function drawTree(layout, diagram, timeline, ctx) {
|
|
|
10905
12617
|
return [
|
|
10906
12618
|
faded(
|
|
10907
12619
|
n.id,
|
|
10908
|
-
`<rect class="dg-tree-card" x="${
|
|
12620
|
+
`<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}`,
|
|
10909
12621
|
` data-tree-card="${esc(n.id)}"`
|
|
10910
12622
|
)
|
|
10911
12623
|
];
|
|
@@ -10915,10 +12627,10 @@ function drawTree(layout, diagram, timeline, ctx) {
|
|
|
10915
12627
|
const on = [...active.get(n.id) ?? []].sort((x, y) => x - y);
|
|
10916
12628
|
const act = on.length > 0 ? activeKf(ctx, on) : void 0;
|
|
10917
12629
|
const radius = n.root ? T.root.radius : T.radius;
|
|
10918
|
-
const rect = (cls, extra = "") => `<rect class="${cls}" x="${
|
|
12630
|
+
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}/>`;
|
|
10919
12631
|
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>` : ""}`;
|
|
10920
12632
|
const ix = n.x + T.root.iconX + B.icon / 2;
|
|
10921
|
-
const mark = n.root ? `<rect class="dg-ic" x="${
|
|
12633
|
+
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)}` : "";
|
|
10922
12634
|
const shown2 = [[at, Number.POSITIVE_INFINITY]];
|
|
10923
12635
|
const texts = n.lines.map((line2, k) => {
|
|
10924
12636
|
const style = n.styles[k] ?? TYPE.boxName;
|
|
@@ -10929,7 +12641,7 @@ function drawTree(layout, diagram, timeline, ctx) {
|
|
|
10929
12641
|
const inner = faded(n.id, `${frame}${mark}${texts}`, ` data-tree-node="${esc(n.id)}"${n.root ? ` data-tree-root="${esc(n.id)}"` : ""}`);
|
|
10930
12642
|
return `<g class="dg-popc dg-a" style="${cs(n.color)};${m.pop(at)}">${inner}</g>`;
|
|
10931
12643
|
}).join("");
|
|
10932
|
-
return { links: links + ties, trails, nodes: cards + nodes };
|
|
12644
|
+
return { links: links + ties, trails, nodes: cards + nodes, appear: drawnAt };
|
|
10933
12645
|
}
|
|
10934
12646
|
|
|
10935
12647
|
// src/render/motion.ts
|
|
@@ -11123,6 +12835,16 @@ var PART_CSS = [
|
|
|
11123
12835
|
`.dg-tree-one{${font(TYPE.boxName)};fill:var(--ink)}`,
|
|
11124
12836
|
`.dg-tree-rh{${font(TYPE.rootHash)};fill:var(--ink)}`,
|
|
11125
12837
|
`.dg-tree-rn{${font(TYPE.rootName)};fill:var(--mute)}`,
|
|
12838
|
+
// 列の図 (#3239)。封は列の左端から右へ伸びる
|
|
12839
|
+
".dg-ln-chip{fill:var(--c)}",
|
|
12840
|
+
`.dg-ln-plain{fill:color-mix(in srgb,var(--mute) ${X.chipPlain}%,var(--surf))}`,
|
|
12841
|
+
`.dg-ln-t{${font(TYPE.chip)};fill:var(--on-c)}`,
|
|
12842
|
+
`.dg-ln-tp{${font(TYPE.chip)};fill:var(--ink)}`,
|
|
12843
|
+
".dg-ln-seal{transform-box:fill-box;transform-origin:0 50%}",
|
|
12844
|
+
`.dg-ln-sd{fill:color-mix(in srgb,var(--mute) ${X.sealDark}%,var(--surf))}`,
|
|
12845
|
+
`.dg-ln-sl{fill:color-mix(in srgb,var(--mute) ${X.sealLight}%,var(--surf))}`,
|
|
12846
|
+
`.dg-ln-stamp{fill:var(--surf);stroke:var(--c);stroke-width:${S.stamp}}`,
|
|
12847
|
+
`.dg-ln-st{${font(TYPE.stamp)};fill:var(--ct)}`,
|
|
11126
12848
|
// 時間軸の図 (#3165)。和文を含む字は、末尾に j を付けた class で同じ大きさと太さの和文の字にする
|
|
11127
12849
|
`.dg-tm-ep{fill:color-mix(in srgb,var(--ink) ${X.timeShade}%,transparent)}`,
|
|
11128
12850
|
`.dg-tm-sep{stroke:var(--hair);stroke-width:${S.hair};stroke-dasharray:2 4}`,
|
|
@@ -11261,7 +12983,7 @@ function drawSvg(diagram, layout, timeline, palette, theme, follow, ink = [], tr
|
|
|
11261
12983
|
const vars = paletteVars(palette, theme);
|
|
11262
12984
|
const id = nameOf(`${JSON.stringify(diagram)}|${vars}|${follow ? `${follow.width}|${follow.lang}` : ""}`);
|
|
11263
12985
|
const m = new Motion(`dg${id}`, timeline.total, timeline.last);
|
|
11264
|
-
const ctx = { m, t: timeline, sh: `filter="url(#dg-sh-${id})"`, end: timeline.steps[timeline.steps.length - 1].end, ink, traces };
|
|
12986
|
+
const ctx = { m, t: timeline, id, sh: `filter="url(#dg-sh-${id})"`, end: timeline.steps[timeline.steps.length - 1].end, ink, traces };
|
|
11265
12987
|
const on = involved(diagram);
|
|
11266
12988
|
const subs = subChanges(diagram, timeline, layout.kind !== "sequence");
|
|
11267
12989
|
const L = { band: [], base: [], lit: [], node: [], badge: [], top: [] };
|
|
@@ -11285,13 +13007,19 @@ function drawSvg(diagram, layout, timeline, palette, theme, follow, ink = [], tr
|
|
|
11285
13007
|
L.top.push(git.tags);
|
|
11286
13008
|
}
|
|
11287
13009
|
const treeLayout = isTreeLayout(layout) ? layout : void 0;
|
|
11288
|
-
|
|
11289
|
-
|
|
13010
|
+
const tree = treeLayout ? drawTree(treeLayout, diagram, timeline, ctx) : void 0;
|
|
13011
|
+
if (tree) {
|
|
11290
13012
|
L.base.push(tree.links);
|
|
11291
13013
|
L.lit.push(tree.trails);
|
|
11292
13014
|
L.node.push(tree.nodes);
|
|
11293
13015
|
}
|
|
11294
13016
|
const runs = new Set((treeLayout?.runs ?? []).map((r) => `${r.step}/${r.event}`));
|
|
13017
|
+
const lineupLayout = isLineupLayout(layout) ? layout : void 0;
|
|
13018
|
+
if (lineupLayout) {
|
|
13019
|
+
const lineup = drawLineup(lineupLayout, diagram, timeline, ctx, subs);
|
|
13020
|
+
L.base.push(lineup.lanes);
|
|
13021
|
+
L.node.push(lineup.chips);
|
|
13022
|
+
}
|
|
11295
13023
|
const timeLayout = isTimeLayout(layout) ? layout : void 0;
|
|
11296
13024
|
if (timeLayout) {
|
|
11297
13025
|
const drawn = drawTime(timeLayout, diagram, timeline, ctx, subs);
|
|
@@ -11304,14 +13032,15 @@ function drawSvg(diagram, layout, timeline, palette, theme, follow, ink = [], tr
|
|
|
11304
13032
|
for (const e of layout.edges) {
|
|
11305
13033
|
const time = timeline.edges.find((t) => t.step === e.step && t.event === e.event);
|
|
11306
13034
|
if (!time || timeLayout && !wired.has(`${e.step}/${e.event}`) || runs.has(`${e.step}/${e.event}`)) continue;
|
|
11307
|
-
const
|
|
13035
|
+
const since = Math.max(tree?.appear.get(e.from) ?? 0, tree?.appear.get(e.to) ?? 0);
|
|
13036
|
+
const drawn = edge(e, time, ctx, isState, since);
|
|
11308
13037
|
L.base.push(drawn.base);
|
|
11309
13038
|
L.lit.push(drawn.lit);
|
|
11310
13039
|
}
|
|
11311
13040
|
const states = new Map((timeline.states ?? []).map((s) => [s.box, s]));
|
|
11312
13041
|
const links = new Map(diagram.boxes.flatMap((b) => b.link === void 0 ? [] : [[b.id, b.link]]));
|
|
11313
13042
|
const linked = (id2, markup) => linkTo(links.get(id2), markup);
|
|
11314
|
-
for (const box of timeLayout ? [] : layout.boxes) {
|
|
13043
|
+
for (const box of timeLayout || lineupLayout ? [] : layout.boxes) {
|
|
11315
13044
|
if (box.ghost) {
|
|
11316
13045
|
L.node.push(linked(box.id, ghostCard(box, ink)));
|
|
11317
13046
|
continue;
|
|
@@ -11381,6 +13110,10 @@ function focusParts(layout, diagram, step) {
|
|
|
11381
13110
|
rects.push({ x: Math.min(...xs), y: Math.min(...ys), w: Math.max(...xs) - Math.min(...xs), h: Math.max(...ys) - Math.min(...ys) });
|
|
11382
13111
|
}
|
|
11383
13112
|
}
|
|
13113
|
+
if (isLineupLayout(layout)) {
|
|
13114
|
+
const changed = new Set((diagram.steps[step]?.events ?? []).flatMap((e) => "box" in e ? [e.box] : []));
|
|
13115
|
+
rects.push(...layout.lanes.filter((lane) => changed.has(lane.id)));
|
|
13116
|
+
}
|
|
11384
13117
|
for (const event2 of diagram.steps[step]?.events ?? []) {
|
|
11385
13118
|
const ids = event2.type === "edge" ? [event2.from, event2.to] : event2.type === "action" || event2.type === "swap" ? [event2.box] : [];
|
|
11386
13119
|
for (const id of ids) {
|
|
@@ -11480,7 +13213,7 @@ function renderDiagram(input, options = {}) {
|
|
|
11480
13213
|
const read = readDiagram(input, { lang });
|
|
11481
13214
|
if (!read.ok) throw new Error(FIGURE_TEXT[lang].cannotDraw(read.errors.map((e) => `${e.pointer} ${e.message}`).join(" / ")));
|
|
11482
13215
|
const diagram = read.diagram;
|
|
11483
|
-
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);
|
|
13216
|
+
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);
|
|
11484
13217
|
return renderLayout(diagram, layout, buildTimeline(diagram, options.still === true), options);
|
|
11485
13218
|
}
|
|
11486
13219
|
function renderLayout(diagram, layout, timeline, options = {}) {
|
|
@@ -11695,7 +13428,7 @@ function mountDiagram(host, diagram, options = {}) {
|
|
|
11695
13428
|
}
|
|
11696
13429
|
(svg.querySelector('g[clip-path^="url(#dg-vp-"] > g.dg-a') ?? svg).append(group);
|
|
11697
13430
|
};
|
|
11698
|
-
const
|
|
13431
|
+
const place2 = (markup2) => {
|
|
11699
13432
|
let next;
|
|
11700
13433
|
if (markup2 !== void 0) {
|
|
11701
13434
|
const holder = doc.createElement("div");
|
|
@@ -11738,7 +13471,7 @@ function mountDiagram(host, diagram, options = {}) {
|
|
|
11738
13471
|
const restart = (t, play) => {
|
|
11739
13472
|
at = t;
|
|
11740
13473
|
playing = play;
|
|
11741
|
-
|
|
13474
|
+
place2();
|
|
11742
13475
|
show();
|
|
11743
13476
|
};
|
|
11744
13477
|
const go = (target) => {
|
|
@@ -11753,7 +13486,7 @@ function mountDiagram(host, diagram, options = {}) {
|
|
|
11753
13486
|
}
|
|
11754
13487
|
restart(at, true);
|
|
11755
13488
|
};
|
|
11756
|
-
|
|
13489
|
+
place2(markup());
|
|
11757
13490
|
show();
|
|
11758
13491
|
const timer = win?.setInterval(() => {
|
|
11759
13492
|
if (!playing) return;
|
|
@@ -11791,7 +13524,7 @@ function mountDiagram(host, diagram, options = {}) {
|
|
|
11791
13524
|
width = w;
|
|
11792
13525
|
height = h;
|
|
11793
13526
|
at = t;
|
|
11794
|
-
|
|
13527
|
+
place2(markup());
|
|
11795
13528
|
}) : void 0;
|
|
11796
13529
|
observer?.observe(frame);
|
|
11797
13530
|
return {
|