@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/node.cjs CHANGED
@@ -30,8 +30,10 @@ var ja = {
30
30
  enum: (values) => `${values.join(" / ")} \u306E\u3069\u308C\u304B\u306B\u3059\u308B`,
31
31
  type: (type) => TYPES_JA[type] ?? `${type} \u306B\u3059\u308B`,
32
32
  minLength: (limit) => `${limit} \u5B57\u4EE5\u4E0A\u66F8\u304F`,
33
+ maxLength: (limit) => `${limit} \u5B57\u307E\u3067\u306B\u3059\u308B`,
33
34
  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",
34
35
  minItems: (limit) => `${limit} \u3064\u4EE5\u4E0A\u66F8\u304F`,
36
+ maxItems: (limit) => `${limit} \u3064\u307E\u3067\u306B\u3059\u308B`,
35
37
  minimum: (limit) => `${limit} \u4EE5\u4E0A\u306B\u3059\u308B`,
36
38
  const: (value) => `${value} \u306B\u3059\u308B`,
37
39
  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",
@@ -52,8 +54,10 @@ var en = {
52
54
  enum: (values) => `Use one of ${values.join(" / ")}`,
53
55
  type: (type) => TYPES_EN[type] ?? `Use ${type}`,
54
56
  minLength: (limit) => `Write at least ${plural(limit, "character")}`,
57
+ maxLength: (limit) => `Write at most ${plural(limit, "character")}`,
55
58
  pattern: (forbidden) => forbidden ? `Cannot contain ${forbidden.space ? "spaces or " : ""}${forbidden.chars.join(" ")}` : "Contains characters that are not allowed",
56
59
  minItems: (limit) => `Write at least ${plural(limit, "item")}`,
60
+ maxItems: (limit) => `Write at most ${plural(limit, "item")}`,
57
61
  minimum: (limit) => `Use ${limit} or greater`,
58
62
  const: (value) => `Use ${value}`,
59
63
  not: (allowed) => allowed ? `The ${allowed.field} field is allowed only when kind is ${allowed.kind}` : "This combination of fields is not allowed",
@@ -77,7 +81,7 @@ function ucs2length(str) {
77
81
  return length;
78
82
  }
79
83
  var validate_diagram_default = validate10;
80
- 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" } }};
84
+ 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" } }};
81
85
  function validate11(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
82
86
  let vErrors = null;
83
87
  let errors = 0;
@@ -182,34 +186,79 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
182
186
  }
183
187
  }
184
188
  }
189
+ const _errs14 = errors;
190
+ const _errs15 = errors;
191
+ if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
192
+ if (data2.type === void 0 && ("type")) {
193
+ const err6 = {};
194
+ if (vErrors === null) {
195
+ vErrors = [err6];
196
+ } else {
197
+ vErrors.push(err6);
198
+ }
199
+ errors++;
200
+ } else {
201
+ if (data2.type !== void 0) {
202
+ let data5 = data2.type;
203
+ if (!(data5 === "line" || data5 === "seal" || data5 === "open" || data5 === "pick" || data5 === "stamp")) {
204
+ const err7 = {};
205
+ if (vErrors === null) {
206
+ vErrors = [err7];
207
+ } else {
208
+ vErrors.push(err7);
209
+ }
210
+ errors++;
211
+ }
212
+ }
213
+ }
214
+ }
215
+ var valid13 = _errs15 === errors;
216
+ if (valid13) {
217
+ const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notLineupEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
218
+ if (vErrors === null) {
219
+ vErrors = [err8];
220
+ } else {
221
+ vErrors.push(err8);
222
+ }
223
+ errors++;
224
+ } else {
225
+ errors = _errs14;
226
+ if (vErrors !== null) {
227
+ if (_errs14) {
228
+ vErrors.length = _errs14;
229
+ } else {
230
+ vErrors = null;
231
+ }
232
+ }
233
+ }
185
234
  if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
186
235
  if (data2.type !== void 0) {
187
- let data5 = data2.type;
188
- const _errs13 = errors;
189
- const _errs14 = errors;
190
- if (!(data5 === "commit" || data5 === "branch")) {
191
- const err6 = {};
236
+ let data6 = data2.type;
237
+ const _errs18 = errors;
238
+ const _errs19 = errors;
239
+ if (!(data6 === "commit" || data6 === "branch")) {
240
+ const err9 = {};
192
241
  if (vErrors === null) {
193
- vErrors = [err6];
242
+ vErrors = [err9];
194
243
  } else {
195
- vErrors.push(err6);
244
+ vErrors.push(err9);
196
245
  }
197
246
  errors++;
198
247
  }
199
- var valid13 = _errs14 === errors;
200
- if (valid13) {
201
- const err7 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
248
+ var valid16 = _errs19 === errors;
249
+ if (valid16) {
250
+ const err10 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
202
251
  if (vErrors === null) {
203
- vErrors = [err7];
252
+ vErrors = [err10];
204
253
  } else {
205
- vErrors.push(err7);
254
+ vErrors.push(err10);
206
255
  }
207
256
  errors++;
208
257
  } else {
209
- errors = _errs13;
258
+ errors = _errs18;
210
259
  if (vErrors !== null) {
211
- if (_errs13) {
212
- vErrors.length = _errs13;
260
+ if (_errs18) {
261
+ vErrors.length = _errs18;
213
262
  } else {
214
263
  vErrors = null;
215
264
  }
@@ -217,29 +266,29 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
217
266
  }
218
267
  }
219
268
  if (data2.at !== void 0) {
220
- const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
269
+ const err11 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
221
270
  if (vErrors === null) {
222
- vErrors = [err8];
271
+ vErrors = [err11];
223
272
  } else {
224
- vErrors.push(err8);
273
+ vErrors.push(err11);
225
274
  }
226
275
  errors++;
227
276
  }
228
277
  if (data2.into !== void 0) {
229
- const err9 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
278
+ const err12 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
230
279
  if (vErrors === null) {
231
- vErrors = [err9];
280
+ vErrors = [err12];
232
281
  } else {
233
- vErrors.push(err9);
282
+ vErrors.push(err12);
234
283
  }
235
284
  errors++;
236
285
  }
237
286
  if (data2.color !== void 0) {
238
- const err10 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
287
+ const err13 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
239
288
  if (vErrors === null) {
240
- vErrors = [err10];
289
+ vErrors = [err13];
241
290
  } else {
242
- vErrors.push(err10);
291
+ vErrors.push(err13);
243
292
  }
244
293
  errors++;
245
294
  }
@@ -374,31 +423,76 @@ function validate17(data, { instancePath = "", parentData, parentDataProperty, r
374
423
  }
375
424
  }
376
425
  }
426
+ const _errs14 = errors;
427
+ const _errs15 = errors;
377
428
  if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
378
- if (data2.at !== void 0) {
379
- const err6 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
429
+ if (data2.type === void 0 && ("type")) {
430
+ const err6 = {};
380
431
  if (vErrors === null) {
381
432
  vErrors = [err6];
382
433
  } else {
383
434
  vErrors.push(err6);
384
435
  }
385
436
  errors++;
437
+ } else {
438
+ if (data2.type !== void 0) {
439
+ let data5 = data2.type;
440
+ if (!(data5 === "line" || data5 === "seal" || data5 === "open" || data5 === "pick" || data5 === "stamp")) {
441
+ const err7 = {};
442
+ if (vErrors === null) {
443
+ vErrors = [err7];
444
+ } else {
445
+ vErrors.push(err7);
446
+ }
447
+ errors++;
448
+ }
449
+ }
450
+ }
451
+ }
452
+ var valid13 = _errs15 === errors;
453
+ if (valid13) {
454
+ const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notLineupEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
455
+ if (vErrors === null) {
456
+ vErrors = [err8];
457
+ } else {
458
+ vErrors.push(err8);
459
+ }
460
+ errors++;
461
+ } else {
462
+ errors = _errs14;
463
+ if (vErrors !== null) {
464
+ if (_errs14) {
465
+ vErrors.length = _errs14;
466
+ } else {
467
+ vErrors = null;
468
+ }
469
+ }
470
+ }
471
+ if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
472
+ if (data2.at !== void 0) {
473
+ const err9 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
474
+ if (vErrors === null) {
475
+ vErrors = [err9];
476
+ } else {
477
+ vErrors.push(err9);
478
+ }
479
+ errors++;
386
480
  }
387
481
  if (data2.into !== void 0) {
388
- const err7 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
482
+ const err10 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
389
483
  if (vErrors === null) {
390
- vErrors = [err7];
484
+ vErrors = [err10];
391
485
  } else {
392
- vErrors.push(err7);
486
+ vErrors.push(err10);
393
487
  }
394
488
  errors++;
395
489
  }
396
490
  if (data2.color !== void 0) {
397
- const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
491
+ const err11 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
398
492
  if (vErrors === null) {
399
- vErrors = [err8];
493
+ vErrors = [err11];
400
494
  } else {
401
- vErrors.push(err8);
495
+ vErrors.push(err11);
402
496
  }
403
497
  errors++;
404
498
  }
@@ -471,34 +565,79 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
471
565
  }
472
566
  }
473
567
  }
568
+ const _errs10 = errors;
569
+ const _errs11 = errors;
570
+ if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
571
+ if (data2.type === void 0 && ("type")) {
572
+ const err3 = {};
573
+ if (vErrors === null) {
574
+ vErrors = [err3];
575
+ } else {
576
+ vErrors.push(err3);
577
+ }
578
+ errors++;
579
+ } else {
580
+ if (data2.type !== void 0) {
581
+ let data4 = data2.type;
582
+ if (!(data4 === "line" || data4 === "seal" || data4 === "open" || data4 === "pick" || data4 === "stamp")) {
583
+ const err4 = {};
584
+ if (vErrors === null) {
585
+ vErrors = [err4];
586
+ } else {
587
+ vErrors.push(err4);
588
+ }
589
+ errors++;
590
+ }
591
+ }
592
+ }
593
+ }
594
+ var valid10 = _errs11 === errors;
595
+ if (valid10) {
596
+ const err5 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notLineupEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
597
+ if (vErrors === null) {
598
+ vErrors = [err5];
599
+ } else {
600
+ vErrors.push(err5);
601
+ }
602
+ errors++;
603
+ } else {
604
+ errors = _errs10;
605
+ if (vErrors !== null) {
606
+ if (_errs10) {
607
+ vErrors.length = _errs10;
608
+ } else {
609
+ vErrors = null;
610
+ }
611
+ }
612
+ }
474
613
  if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
475
614
  if (data2.type !== void 0) {
476
- let data4 = data2.type;
477
- const _errs9 = errors;
478
- const _errs10 = errors;
479
- if (!(data4 === "commit" || data4 === "branch")) {
480
- const err3 = {};
615
+ let data5 = data2.type;
616
+ const _errs14 = errors;
617
+ const _errs15 = errors;
618
+ if (!(data5 === "commit" || data5 === "branch")) {
619
+ const err6 = {};
481
620
  if (vErrors === null) {
482
- vErrors = [err3];
621
+ vErrors = [err6];
483
622
  } else {
484
- vErrors.push(err3);
623
+ vErrors.push(err6);
485
624
  }
486
625
  errors++;
487
626
  }
488
- var valid10 = _errs10 === errors;
489
- if (valid10) {
490
- const err4 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
627
+ var valid13 = _errs15 === errors;
628
+ if (valid13) {
629
+ const err7 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
491
630
  if (vErrors === null) {
492
- vErrors = [err4];
631
+ vErrors = [err7];
493
632
  } else {
494
- vErrors.push(err4);
633
+ vErrors.push(err7);
495
634
  }
496
635
  errors++;
497
636
  } else {
498
- errors = _errs9;
637
+ errors = _errs14;
499
638
  if (vErrors !== null) {
500
- if (_errs9) {
501
- vErrors.length = _errs9;
639
+ if (_errs14) {
640
+ vErrors.length = _errs14;
502
641
  } else {
503
642
  vErrors = null;
504
643
  }
@@ -574,34 +713,79 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
574
713
  }
575
714
  }
576
715
  }
716
+ const _errs9 = errors;
717
+ const _errs10 = errors;
718
+ if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
719
+ if (data2.type === void 0 && ("type")) {
720
+ const err3 = {};
721
+ if (vErrors === null) {
722
+ vErrors = [err3];
723
+ } else {
724
+ vErrors.push(err3);
725
+ }
726
+ errors++;
727
+ } else {
728
+ if (data2.type !== void 0) {
729
+ let data4 = data2.type;
730
+ if (!(data4 === "line" || data4 === "seal" || data4 === "open" || data4 === "pick" || data4 === "stamp")) {
731
+ const err4 = {};
732
+ if (vErrors === null) {
733
+ vErrors = [err4];
734
+ } else {
735
+ vErrors.push(err4);
736
+ }
737
+ errors++;
738
+ }
739
+ }
740
+ }
741
+ }
742
+ var valid10 = _errs10 === errors;
743
+ if (valid10) {
744
+ const err5 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notLineupEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
745
+ if (vErrors === null) {
746
+ vErrors = [err5];
747
+ } else {
748
+ vErrors.push(err5);
749
+ }
750
+ errors++;
751
+ } else {
752
+ errors = _errs9;
753
+ if (vErrors !== null) {
754
+ if (_errs9) {
755
+ vErrors.length = _errs9;
756
+ } else {
757
+ vErrors = null;
758
+ }
759
+ }
760
+ }
577
761
  if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
578
762
  if (data2.type !== void 0) {
579
- let data4 = data2.type;
580
- const _errs8 = errors;
581
- const _errs9 = errors;
582
- if (!(data4 === "commit" || data4 === "branch")) {
583
- const err3 = {};
763
+ let data5 = data2.type;
764
+ const _errs13 = errors;
765
+ const _errs14 = errors;
766
+ if (!(data5 === "commit" || data5 === "branch")) {
767
+ const err6 = {};
584
768
  if (vErrors === null) {
585
- vErrors = [err3];
769
+ vErrors = [err6];
586
770
  } else {
587
- vErrors.push(err3);
771
+ vErrors.push(err6);
588
772
  }
589
773
  errors++;
590
774
  }
591
- var valid9 = _errs9 === errors;
592
- if (valid9) {
593
- const err4 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
775
+ var valid13 = _errs14 === errors;
776
+ if (valid13) {
777
+ const err7 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
594
778
  if (vErrors === null) {
595
- vErrors = [err4];
779
+ vErrors = [err7];
596
780
  } else {
597
- vErrors.push(err4);
781
+ vErrors.push(err7);
598
782
  }
599
783
  errors++;
600
784
  } else {
601
- errors = _errs8;
785
+ errors = _errs13;
602
786
  if (vErrors !== null) {
603
- if (_errs8) {
604
- vErrors.length = _errs8;
787
+ if (_errs13) {
788
+ vErrors.length = _errs13;
605
789
  } else {
606
790
  vErrors = null;
607
791
  }
@@ -609,29 +793,29 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
609
793
  }
610
794
  }
611
795
  if (data2.at !== void 0) {
612
- const err5 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
796
+ const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/at", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
613
797
  if (vErrors === null) {
614
- vErrors = [err5];
798
+ vErrors = [err8];
615
799
  } else {
616
- vErrors.push(err5);
800
+ vErrors.push(err8);
617
801
  }
618
802
  errors++;
619
803
  }
620
804
  if (data2.into !== void 0) {
621
- const err6 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
805
+ const err9 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/into", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
622
806
  if (vErrors === null) {
623
- vErrors = [err6];
807
+ vErrors = [err9];
624
808
  } else {
625
- vErrors.push(err6);
809
+ vErrors.push(err9);
626
810
  }
627
811
  errors++;
628
812
  }
629
813
  if (data2.color !== void 0) {
630
- const err7 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
814
+ const err10 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
631
815
  if (vErrors === null) {
632
- vErrors = [err7];
816
+ vErrors = [err10];
633
817
  } else {
634
- vErrors.push(err7);
818
+ vErrors.push(err10);
635
819
  }
636
820
  errors++;
637
821
  }
@@ -645,67 +829,269 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
645
829
  validate22.errors = vErrors;
646
830
  return errors === 0;
647
831
  }
648
- var schema57 = { "enum": ["blue", "amber", "green", "violet", "rose", "slate", "coin"] };
649
- var pattern0 = new RegExp("^[^\\s\\[\\]\u300C\u300D=:]+$", "u");
650
- var func3 = ucs2length;
651
- function validate27(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
832
+ function validate25(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
652
833
  let vErrors = null;
653
834
  let errors = 0;
654
- if (data && typeof data == "object" && !Array.isArray(data)) {
655
- if (data.id === void 0) {
656
- const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "id" }, message: "must have required property 'id'" };
657
- if (vErrors === null) {
658
- vErrors = [err0];
659
- } else {
660
- vErrors.push(err0);
661
- }
662
- errors++;
663
- }
664
- if (data.name === void 0) {
665
- const err1 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "name" }, message: "must have required property 'name'" };
666
- if (vErrors === null) {
667
- vErrors = [err1];
668
- } else {
669
- vErrors.push(err1);
670
- }
671
- errors++;
672
- }
673
- for (const key0 in data) {
674
- if (!(key0 === "id" || key0 === "name" || key0 === "note" || key0 === "color" || key0 === "icon")) {
675
- const err2 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
676
- if (vErrors === null) {
677
- vErrors = [err2];
678
- } else {
679
- vErrors.push(err2);
680
- }
681
- errors++;
682
- }
683
- }
684
- if (data.id !== void 0) {
685
- let data0 = data.id;
686
- if (typeof data0 === "string") {
687
- if (!pattern0.test(data0)) {
688
- const err3 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
689
- if (vErrors === null) {
690
- vErrors = [err3];
691
- } else {
692
- vErrors.push(err3);
693
- }
694
- errors++;
695
- }
696
- } else {
697
- const err4 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
698
- if (vErrors === null) {
699
- vErrors = [err4];
700
- } else {
701
- vErrors.push(err4);
702
- }
703
- errors++;
704
- }
705
- }
706
- if (data.name !== void 0) {
707
- let data1 = data.name;
708
- if (typeof data1 === "string") {
835
+ if (Array.isArray(data)) {
836
+ const len0 = data.length;
837
+ for (let i0 = 0; i0 < len0; i0++) {
838
+ let data0 = data[i0];
839
+ if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
840
+ if (data0.events !== void 0) {
841
+ let data1 = data0.events;
842
+ if (Array.isArray(data1)) {
843
+ const len1 = data1.length;
844
+ for (let i1 = 0; i1 < len1; i1++) {
845
+ let data2 = data1[i1];
846
+ const _errs3 = errors;
847
+ const _errs4 = errors;
848
+ if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
849
+ if (data2.type === void 0 && ("type")) {
850
+ const err0 = {};
851
+ if (vErrors === null) {
852
+ vErrors = [err0];
853
+ } else {
854
+ vErrors.push(err0);
855
+ }
856
+ errors++;
857
+ } else {
858
+ if (data2.type !== void 0) {
859
+ let data3 = data2.type;
860
+ if (!(data3 === "now" || data3 === "mark" || data3 === "span")) {
861
+ const err1 = {};
862
+ if (vErrors === null) {
863
+ vErrors = [err1];
864
+ } else {
865
+ vErrors.push(err1);
866
+ }
867
+ errors++;
868
+ }
869
+ }
870
+ }
871
+ }
872
+ var valid5 = _errs4 === errors;
873
+ if (valid5) {
874
+ const err2 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/items/properties/events/items/not", keyword: "not", params: {}, message: "must NOT be valid" };
875
+ if (vErrors === null) {
876
+ vErrors = [err2];
877
+ } else {
878
+ vErrors.push(err2);
879
+ }
880
+ errors++;
881
+ } else {
882
+ errors = _errs3;
883
+ if (vErrors !== null) {
884
+ if (_errs3) {
885
+ vErrors.length = _errs3;
886
+ } else {
887
+ vErrors = null;
888
+ }
889
+ }
890
+ }
891
+ const _errs8 = errors;
892
+ const _errs9 = errors;
893
+ if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
894
+ if (data2.type === void 0 && ("type")) {
895
+ const err3 = {};
896
+ if (vErrors === null) {
897
+ vErrors = [err3];
898
+ } else {
899
+ vErrors.push(err3);
900
+ }
901
+ errors++;
902
+ } else {
903
+ if (data2.type !== void 0) {
904
+ let data4 = data2.type;
905
+ if (!(data4 === "leaf" || data4 === "node")) {
906
+ const err4 = {};
907
+ if (vErrors === null) {
908
+ vErrors = [err4];
909
+ } else {
910
+ vErrors.push(err4);
911
+ }
912
+ errors++;
913
+ }
914
+ }
915
+ }
916
+ }
917
+ var valid9 = _errs9 === errors;
918
+ if (valid9) {
919
+ const err5 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/items/properties/events/items/allOf/0/not", keyword: "not", params: {}, message: "must NOT be valid" };
920
+ if (vErrors === null) {
921
+ vErrors = [err5];
922
+ } else {
923
+ vErrors.push(err5);
924
+ }
925
+ errors++;
926
+ } else {
927
+ errors = _errs8;
928
+ if (vErrors !== null) {
929
+ if (_errs8) {
930
+ vErrors.length = _errs8;
931
+ } else {
932
+ vErrors = null;
933
+ }
934
+ }
935
+ }
936
+ const _errs14 = errors;
937
+ const _errs15 = errors;
938
+ if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
939
+ if (data2.type === void 0 && ("type")) {
940
+ const err6 = {};
941
+ if (vErrors === null) {
942
+ vErrors = [err6];
943
+ } else {
944
+ vErrors.push(err6);
945
+ }
946
+ errors++;
947
+ } else {
948
+ if (data2.type !== void 0) {
949
+ let data5 = data2.type;
950
+ if (!(data5 === "edge" || data5 === "action")) {
951
+ const err7 = {};
952
+ if (vErrors === null) {
953
+ vErrors = [err7];
954
+ } else {
955
+ vErrors.push(err7);
956
+ }
957
+ errors++;
958
+ }
959
+ }
960
+ }
961
+ }
962
+ var valid13 = _errs15 === errors;
963
+ if (valid13) {
964
+ const err8 = { instancePath: instancePath + "/" + i0 + "/events/" + i1, schemaPath: "#/definitions/notWiredEvent/not", keyword: "not", params: {}, message: "must NOT be valid" };
965
+ if (vErrors === null) {
966
+ vErrors = [err8];
967
+ } else {
968
+ vErrors.push(err8);
969
+ }
970
+ errors++;
971
+ } else {
972
+ errors = _errs14;
973
+ if (vErrors !== null) {
974
+ if (_errs14) {
975
+ vErrors.length = _errs14;
976
+ } else {
977
+ vErrors = null;
978
+ }
979
+ }
980
+ }
981
+ if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
982
+ if (data2.type !== void 0) {
983
+ let data6 = data2.type;
984
+ const _errs18 = errors;
985
+ const _errs19 = errors;
986
+ if (!(data6 === "commit" || data6 === "branch")) {
987
+ const err9 = {};
988
+ if (vErrors === null) {
989
+ vErrors = [err9];
990
+ } else {
991
+ vErrors.push(err9);
992
+ }
993
+ errors++;
994
+ }
995
+ var valid16 = _errs19 === errors;
996
+ if (valid16) {
997
+ const err10 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/type", schemaPath: "#/items/properties/events/items/properties/type/not", keyword: "not", params: {}, message: "must NOT be valid" };
998
+ if (vErrors === null) {
999
+ vErrors = [err10];
1000
+ } else {
1001
+ vErrors.push(err10);
1002
+ }
1003
+ errors++;
1004
+ } else {
1005
+ errors = _errs18;
1006
+ if (vErrors !== null) {
1007
+ if (_errs18) {
1008
+ vErrors.length = _errs18;
1009
+ } else {
1010
+ vErrors = null;
1011
+ }
1012
+ }
1013
+ }
1014
+ }
1015
+ if (data2.color !== void 0) {
1016
+ const err11 = { instancePath: instancePath + "/" + i0 + "/events/" + i1 + "/color", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
1017
+ if (vErrors === null) {
1018
+ vErrors = [err11];
1019
+ } else {
1020
+ vErrors.push(err11);
1021
+ }
1022
+ errors++;
1023
+ }
1024
+ }
1025
+ }
1026
+ }
1027
+ }
1028
+ }
1029
+ }
1030
+ }
1031
+ validate25.errors = vErrors;
1032
+ return errors === 0;
1033
+ }
1034
+ var schema79 = { "enum": ["blue", "amber", "green", "violet", "rose", "slate", "coin"] };
1035
+ var pattern0 = new RegExp("^[^\\s\\[\\]\u300C\u300D=:]+$", "u");
1036
+ var func3 = ucs2length;
1037
+ function validate30(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
1038
+ let vErrors = null;
1039
+ let errors = 0;
1040
+ if (data && typeof data == "object" && !Array.isArray(data)) {
1041
+ if (data.id === void 0) {
1042
+ const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "id" }, message: "must have required property 'id'" };
1043
+ if (vErrors === null) {
1044
+ vErrors = [err0];
1045
+ } else {
1046
+ vErrors.push(err0);
1047
+ }
1048
+ errors++;
1049
+ }
1050
+ if (data.name === void 0) {
1051
+ const err1 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "name" }, message: "must have required property 'name'" };
1052
+ if (vErrors === null) {
1053
+ vErrors = [err1];
1054
+ } else {
1055
+ vErrors.push(err1);
1056
+ }
1057
+ errors++;
1058
+ }
1059
+ for (const key0 in data) {
1060
+ if (!(key0 === "id" || key0 === "name" || key0 === "note" || key0 === "color" || key0 === "icon")) {
1061
+ const err2 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
1062
+ if (vErrors === null) {
1063
+ vErrors = [err2];
1064
+ } else {
1065
+ vErrors.push(err2);
1066
+ }
1067
+ errors++;
1068
+ }
1069
+ }
1070
+ if (data.id !== void 0) {
1071
+ let data0 = data.id;
1072
+ if (typeof data0 === "string") {
1073
+ if (!pattern0.test(data0)) {
1074
+ const err3 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
1075
+ if (vErrors === null) {
1076
+ vErrors = [err3];
1077
+ } else {
1078
+ vErrors.push(err3);
1079
+ }
1080
+ errors++;
1081
+ }
1082
+ } else {
1083
+ const err4 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1084
+ if (vErrors === null) {
1085
+ vErrors = [err4];
1086
+ } else {
1087
+ vErrors.push(err4);
1088
+ }
1089
+ errors++;
1090
+ }
1091
+ }
1092
+ if (data.name !== void 0) {
1093
+ let data1 = data.name;
1094
+ if (typeof data1 === "string") {
709
1095
  if (func3(data1) < 1) {
710
1096
  const err5 = { instancePath: instancePath + "/name", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
711
1097
  if (vErrors === null) {
@@ -750,7 +1136,7 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
750
1136
  if (data.color !== void 0) {
751
1137
  let data3 = data.color;
752
1138
  if (!(data3 === "blue" || data3 === "amber" || data3 === "green" || data3 === "violet" || data3 === "rose" || data3 === "slate" || data3 === "coin")) {
753
- const err9 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema57.enum }, message: "must be equal to one of the allowed values" };
1139
+ 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" };
754
1140
  if (vErrors === null) {
755
1141
  vErrors = [err9];
756
1142
  } else {
@@ -790,11 +1176,11 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
790
1176
  }
791
1177
  errors++;
792
1178
  }
793
- validate27.errors = vErrors;
1179
+ validate30.errors = vErrors;
794
1180
  return errors === 0;
795
1181
  }
796
1182
  var pattern3 = new RegExp("^(/|https?://)", "u");
797
- function validate29(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
1183
+ function validate32(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
798
1184
  let vErrors = null;
799
1185
  let errors = 0;
800
1186
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -896,7 +1282,7 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
896
1282
  if (data.color !== void 0) {
897
1283
  let data3 = data.color;
898
1284
  if (!(data3 === "blue" || data3 === "amber" || data3 === "green" || data3 === "violet" || data3 === "rose" || data3 === "slate" || data3 === "coin")) {
899
- const err9 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema57.enum }, message: "must be equal to one of the allowed values" };
1285
+ 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" };
900
1286
  if (vErrors === null) {
901
1287
  vErrors = [err9];
902
1288
  } else {
@@ -980,11 +1366,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
980
1366
  }
981
1367
  errors++;
982
1368
  }
983
- validate29.errors = vErrors;
1369
+ validate32.errors = vErrors;
984
1370
  return errors === 0;
985
1371
  }
986
1372
  var pattern4 = new RegExp("^([0-9]+/[0-9]+|[0-9]+(\\.[0-9]+)?%)$", "u");
987
- function validate32(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
1373
+ function validate35(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
988
1374
  let vErrors = null;
989
1375
  let errors = 0;
990
1376
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -1070,10 +1456,10 @@ function validate32(data, { instancePath = "", parentData, parentDataProperty, r
1070
1456
  }
1071
1457
  errors++;
1072
1458
  }
1073
- validate32.errors = vErrors;
1459
+ validate35.errors = vErrors;
1074
1460
  return errors === 0;
1075
1461
  }
1076
- function validate31(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
1462
+ function validate34(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
1077
1463
  let vErrors = null;
1078
1464
  let errors = 0;
1079
1465
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -1187,8 +1573,8 @@ function validate31(data, { instancePath = "", parentData, parentDataProperty, r
1187
1573
  }
1188
1574
  const len1 = data3.length;
1189
1575
  for (let i1 = 0; i1 < len1; i1++) {
1190
- if (!validate32(data3[i1], { instancePath: instancePath + "/meters/" + i1, parentData: data3, parentDataProperty: i1, rootData })) {
1191
- vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);
1576
+ if (!validate35(data3[i1], { instancePath: instancePath + "/meters/" + i1, parentData: data3, parentDataProperty: i1, rootData })) {
1577
+ vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
1192
1578
  errors = vErrors.length;
1193
1579
  }
1194
1580
  }
@@ -1211,10 +1597,10 @@ function validate31(data, { instancePath = "", parentData, parentDataProperty, r
1211
1597
  }
1212
1598
  errors++;
1213
1599
  }
1214
- validate31.errors = vErrors;
1600
+ validate34.errors = vErrors;
1215
1601
  return errors === 0;
1216
1602
  }
1217
- function validate36(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
1603
+ function validate39(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
1218
1604
  let vErrors = null;
1219
1605
  let errors = 0;
1220
1606
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -1300,13 +1686,13 @@ function validate36(data, { instancePath = "", parentData, parentDataProperty, r
1300
1686
  }
1301
1687
  errors++;
1302
1688
  }
1303
- validate36.errors = vErrors;
1689
+ validate39.errors = vErrors;
1304
1690
  return errors === 0;
1305
1691
  }
1306
- var schema80 = { "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": "\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" } } }] };
1692
+ 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" } } }] };
1307
1693
  var pattern14 = new RegExp("^[0-9a-f]{4,40}$", "u");
1308
- var schema84 = { "properties": { "kind": { "enum": ["envelope", "tag", "coin", "none"] }}};
1309
- function validate39(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
1694
+ var schema106 = { "properties": { "kind": { "enum": ["envelope", "tag", "coin", "none"] }}};
1695
+ function validate42(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
1310
1696
  let vErrors = null;
1311
1697
  let errors = 0;
1312
1698
  const _errs1 = errors;
@@ -1432,7 +1818,7 @@ function validate39(data, { instancePath = "", parentData, parentDataProperty, r
1432
1818
  if (data.kind !== void 0) {
1433
1819
  let data1 = data.kind;
1434
1820
  if (!(data1 === "envelope" || data1 === "tag" || data1 === "coin" || data1 === "none")) {
1435
- const err8 = { instancePath: instancePath + "/kind", schemaPath: "#/properties/kind/enum", keyword: "enum", params: { allowedValues: schema84.properties.kind.enum }, message: "must be equal to one of the allowed values" };
1821
+ 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" };
1436
1822
  if (vErrors === null) {
1437
1823
  vErrors = [err8];
1438
1824
  } else {
@@ -1472,10 +1858,10 @@ function validate39(data, { instancePath = "", parentData, parentDataProperty, r
1472
1858
  }
1473
1859
  errors++;
1474
1860
  }
1475
- validate39.errors = vErrors;
1861
+ validate42.errors = vErrors;
1476
1862
  return errors === 0;
1477
1863
  }
1478
- function validate38(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
1864
+ function validate41(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
1479
1865
  let vErrors = null;
1480
1866
  let errors = 0;
1481
1867
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -1617,15 +2003,15 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
1617
2003
  }
1618
2004
  }
1619
2005
  if (data.carry !== void 0) {
1620
- if (!validate39(data.carry, { instancePath: instancePath + "/carry", parentData: data, parentDataProperty: "carry", rootData })) {
1621
- vErrors = vErrors === null ? validate39.errors : vErrors.concat(validate39.errors);
2006
+ if (!validate42(data.carry, { instancePath: instancePath + "/carry", parentData: data, parentDataProperty: "carry", rootData })) {
2007
+ vErrors = vErrors === null ? validate42.errors : vErrors.concat(validate42.errors);
1622
2008
  errors = vErrors.length;
1623
2009
  }
1624
2010
  }
1625
2011
  if (data.labelSide !== void 0) {
1626
2012
  let data5 = data.labelSide;
1627
2013
  if (!(data5 === "above" || data5 === "below" || data5 === "left" || data5 === "right")) {
1628
- const err13 = { instancePath: instancePath + "/labelSide", schemaPath: "#/oneOf/0/properties/labelSide/enum", keyword: "enum", params: { allowedValues: schema80.oneOf[0].properties.labelSide.enum }, message: "must be equal to one of the allowed values" };
2014
+ 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" };
1629
2015
  if (vErrors === null) {
1630
2016
  vErrors = [err13];
1631
2017
  } else {
@@ -1891,7 +2277,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
1891
2277
  if (data.color !== void 0) {
1892
2278
  let data14 = data.color;
1893
2279
  if (!(data14 === "blue" || data14 === "amber" || data14 === "green" || data14 === "violet" || data14 === "rose" || data14 === "slate" || data14 === "coin")) {
1894
- const err38 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema57.enum }, message: "must be equal to one of the allowed values" };
2280
+ 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" };
1895
2281
  if (vErrors === null) {
1896
2282
  vErrors = [err38];
1897
2283
  } else {
@@ -2419,7 +2805,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
2419
2805
  if (data.color !== void 0) {
2420
2806
  let data31 = data.color;
2421
2807
  if (!(data31 === "blue" || data31 === "amber" || data31 === "green" || data31 === "violet" || data31 === "rose" || data31 === "slate" || data31 === "coin")) {
2422
- const err88 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema57.enum }, message: "must be equal to one of the allowed values" };
2808
+ 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" };
2423
2809
  if (vErrors === null) {
2424
2810
  vErrors = [err88];
2425
2811
  } else {
@@ -2567,7 +2953,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
2567
2953
  }
2568
2954
  if (data.shape !== void 0) {
2569
2955
  if (!(data.shape === "box")) {
2570
- const err102 = { instancePath: instancePath + "/shape", schemaPath: "#/oneOf/7/properties/shape/enum", keyword: "enum", params: { allowedValues: schema80.oneOf[7].properties.shape.enum }, message: "must be equal to one of the allowed values" };
2956
+ 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" };
2571
2957
  if (vErrors === null) {
2572
2958
  vErrors = [err102];
2573
2959
  } else {
@@ -2579,7 +2965,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
2579
2965
  if (data.color !== void 0) {
2580
2966
  let data37 = data.color;
2581
2967
  if (!(data37 === "blue" || data37 === "amber" || data37 === "green" || data37 === "violet" || data37 === "rose" || data37 === "slate" || data37 === "coin")) {
2582
- const err103 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema57.enum }, message: "must be equal to one of the allowed values" };
2968
+ 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" };
2583
2969
  if (vErrors === null) {
2584
2970
  vErrors = [err103];
2585
2971
  } else {
@@ -2699,194 +3085,653 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
2699
3085
  if (vErrors === null) {
2700
3086
  vErrors = [err114];
2701
3087
  } else {
2702
- vErrors.push(err114);
3088
+ vErrors.push(err114);
3089
+ }
3090
+ errors++;
3091
+ }
3092
+ if (data.id === void 0) {
3093
+ const err115 = { instancePath, schemaPath: "#/oneOf/9/required", keyword: "required", params: { missingProperty: "id" }, message: "must have required property 'id'" };
3094
+ if (vErrors === null) {
3095
+ vErrors = [err115];
3096
+ } else {
3097
+ vErrors.push(err115);
3098
+ }
3099
+ errors++;
3100
+ }
3101
+ if (data.children === void 0) {
3102
+ const err116 = { instancePath, schemaPath: "#/oneOf/9/required", keyword: "required", params: { missingProperty: "children" }, message: "must have required property 'children'" };
3103
+ if (vErrors === null) {
3104
+ vErrors = [err116];
3105
+ } else {
3106
+ vErrors.push(err116);
3107
+ }
3108
+ errors++;
3109
+ }
3110
+ for (const key9 in data) {
3111
+ if (!(key9 === "type" || key9 === "id" || key9 === "children" || key9 === "hash")) {
3112
+ const err117 = { instancePath, schemaPath: "#/oneOf/9/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key9 }, message: "must NOT have additional properties" };
3113
+ if (vErrors === null) {
3114
+ vErrors = [err117];
3115
+ } else {
3116
+ vErrors.push(err117);
3117
+ }
3118
+ errors++;
3119
+ }
3120
+ }
3121
+ if (data.type !== void 0) {
3122
+ if ("node" !== data.type) {
3123
+ const err118 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/9/properties/type/const", keyword: "const", params: { allowedValue: "node" }, message: "must be equal to constant" };
3124
+ if (vErrors === null) {
3125
+ vErrors = [err118];
3126
+ } else {
3127
+ vErrors.push(err118);
3128
+ }
3129
+ errors++;
3130
+ }
3131
+ }
3132
+ if (data.id !== void 0) {
3133
+ let data42 = data.id;
3134
+ if (typeof data42 === "string") {
3135
+ if (!pattern0.test(data42)) {
3136
+ const err119 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
3137
+ if (vErrors === null) {
3138
+ vErrors = [err119];
3139
+ } else {
3140
+ vErrors.push(err119);
3141
+ }
3142
+ errors++;
3143
+ }
3144
+ } else {
3145
+ const err120 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
3146
+ if (vErrors === null) {
3147
+ vErrors = [err120];
3148
+ } else {
3149
+ vErrors.push(err120);
3150
+ }
3151
+ errors++;
3152
+ }
3153
+ }
3154
+ if (data.children !== void 0) {
3155
+ let data43 = data.children;
3156
+ if (Array.isArray(data43)) {
3157
+ if (data43.length < 1) {
3158
+ const err121 = { instancePath: instancePath + "/children", schemaPath: "#/oneOf/9/properties/children/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
3159
+ if (vErrors === null) {
3160
+ vErrors = [err121];
3161
+ } else {
3162
+ vErrors.push(err121);
3163
+ }
3164
+ errors++;
3165
+ }
3166
+ const len0 = data43.length;
3167
+ for (let i0 = 0; i0 < len0; i0++) {
3168
+ let data44 = data43[i0];
3169
+ if (typeof data44 === "string") {
3170
+ if (!pattern0.test(data44)) {
3171
+ const err122 = { instancePath: instancePath + "/children/" + i0, schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
3172
+ if (vErrors === null) {
3173
+ vErrors = [err122];
3174
+ } else {
3175
+ vErrors.push(err122);
3176
+ }
3177
+ errors++;
3178
+ }
3179
+ } else {
3180
+ const err123 = { instancePath: instancePath + "/children/" + i0, schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
3181
+ if (vErrors === null) {
3182
+ vErrors = [err123];
3183
+ } else {
3184
+ vErrors.push(err123);
3185
+ }
3186
+ errors++;
3187
+ }
3188
+ }
3189
+ } else {
3190
+ const err124 = { instancePath: instancePath + "/children", schemaPath: "#/oneOf/9/properties/children/type", keyword: "type", params: { type: "array" }, message: "must be array" };
3191
+ if (vErrors === null) {
3192
+ vErrors = [err124];
3193
+ } else {
3194
+ vErrors.push(err124);
3195
+ }
3196
+ errors++;
3197
+ }
3198
+ }
3199
+ if (data.hash !== void 0) {
3200
+ let data45 = data.hash;
3201
+ if (typeof data45 === "string") {
3202
+ if (!pattern14.test(data45)) {
3203
+ const err125 = { instancePath: instancePath + "/hash", schemaPath: "#/definitions/hash/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{4,40}$" }, message: 'must match pattern "^[0-9a-f]{4,40}$"' };
3204
+ if (vErrors === null) {
3205
+ vErrors = [err125];
3206
+ } else {
3207
+ vErrors.push(err125);
3208
+ }
3209
+ errors++;
3210
+ }
3211
+ } else {
3212
+ const err126 = { instancePath: instancePath + "/hash", schemaPath: "#/definitions/hash/type", keyword: "type", params: { type: "string" }, message: "must be string" };
3213
+ if (vErrors === null) {
3214
+ vErrors = [err126];
3215
+ } else {
3216
+ vErrors.push(err126);
3217
+ }
3218
+ errors++;
3219
+ }
3220
+ }
3221
+ } else {
3222
+ const err127 = { instancePath, schemaPath: "#/oneOf/9/type", keyword: "type", params: { type: "object" }, message: "must be object" };
3223
+ if (vErrors === null) {
3224
+ vErrors = [err127];
3225
+ } else {
3226
+ vErrors.push(err127);
3227
+ }
3228
+ errors++;
3229
+ }
3230
+ } else if (tag0 === "line") {
3231
+ if (data && typeof data == "object" && !Array.isArray(data)) {
3232
+ if (data.type === void 0) {
3233
+ const err128 = { instancePath, schemaPath: "#/oneOf/10/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
3234
+ if (vErrors === null) {
3235
+ vErrors = [err128];
3236
+ } else {
3237
+ vErrors.push(err128);
3238
+ }
3239
+ errors++;
3240
+ }
3241
+ if (data.box === void 0) {
3242
+ const err129 = { instancePath, schemaPath: "#/oneOf/10/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
3243
+ if (vErrors === null) {
3244
+ vErrors = [err129];
3245
+ } else {
3246
+ vErrors.push(err129);
3247
+ }
3248
+ errors++;
3249
+ }
3250
+ if (data.items === void 0) {
3251
+ const err130 = { instancePath, schemaPath: "#/oneOf/10/required", keyword: "required", params: { missingProperty: "items" }, message: "must have required property 'items'" };
3252
+ if (vErrors === null) {
3253
+ vErrors = [err130];
3254
+ } else {
3255
+ vErrors.push(err130);
3256
+ }
3257
+ errors++;
3258
+ }
3259
+ for (const key10 in data) {
3260
+ if (!(key10 === "type" || key10 === "box" || key10 === "items")) {
3261
+ const err131 = { instancePath, schemaPath: "#/oneOf/10/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key10 }, message: "must NOT have additional properties" };
3262
+ if (vErrors === null) {
3263
+ vErrors = [err131];
3264
+ } else {
3265
+ vErrors.push(err131);
3266
+ }
3267
+ errors++;
3268
+ }
3269
+ }
3270
+ if (data.type !== void 0) {
3271
+ if ("line" !== data.type) {
3272
+ const err132 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/10/properties/type/const", keyword: "const", params: { allowedValue: "line" }, message: "must be equal to constant" };
3273
+ if (vErrors === null) {
3274
+ vErrors = [err132];
3275
+ } else {
3276
+ vErrors.push(err132);
3277
+ }
3278
+ errors++;
3279
+ }
3280
+ }
3281
+ if (data.box !== void 0) {
3282
+ let data47 = data.box;
3283
+ if (typeof data47 === "string") {
3284
+ if (!pattern0.test(data47)) {
3285
+ const err133 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
3286
+ if (vErrors === null) {
3287
+ vErrors = [err133];
3288
+ } else {
3289
+ vErrors.push(err133);
3290
+ }
3291
+ errors++;
3292
+ }
3293
+ } else {
3294
+ const err134 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
3295
+ if (vErrors === null) {
3296
+ vErrors = [err134];
3297
+ } else {
3298
+ vErrors.push(err134);
3299
+ }
3300
+ errors++;
3301
+ }
3302
+ }
3303
+ if (data.items !== void 0) {
3304
+ let data48 = data.items;
3305
+ if (Array.isArray(data48)) {
3306
+ if (data48.length > 12) {
3307
+ const err135 = { instancePath: instancePath + "/items", schemaPath: "#/oneOf/10/properties/items/maxItems", keyword: "maxItems", params: { limit: 12 }, message: "must NOT have more than 12 items" };
3308
+ if (vErrors === null) {
3309
+ vErrors = [err135];
3310
+ } else {
3311
+ vErrors.push(err135);
3312
+ }
3313
+ errors++;
3314
+ }
3315
+ if (data48.length < 1) {
3316
+ const err136 = { instancePath: instancePath + "/items", schemaPath: "#/oneOf/10/properties/items/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
3317
+ if (vErrors === null) {
3318
+ vErrors = [err136];
3319
+ } else {
3320
+ vErrors.push(err136);
3321
+ }
3322
+ errors++;
3323
+ }
3324
+ const len1 = data48.length;
3325
+ for (let i1 = 0; i1 < len1; i1++) {
3326
+ let data49 = data48[i1];
3327
+ if (typeof data49 === "string") {
3328
+ if (!pattern0.test(data49)) {
3329
+ const err137 = { instancePath: instancePath + "/items/" + i1, schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
3330
+ if (vErrors === null) {
3331
+ vErrors = [err137];
3332
+ } else {
3333
+ vErrors.push(err137);
3334
+ }
3335
+ errors++;
3336
+ }
3337
+ } else {
3338
+ const err138 = { instancePath: instancePath + "/items/" + i1, schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
3339
+ if (vErrors === null) {
3340
+ vErrors = [err138];
3341
+ } else {
3342
+ vErrors.push(err138);
3343
+ }
3344
+ errors++;
3345
+ }
3346
+ }
3347
+ } else {
3348
+ const err139 = { instancePath: instancePath + "/items", schemaPath: "#/oneOf/10/properties/items/type", keyword: "type", params: { type: "array" }, message: "must be array" };
3349
+ if (vErrors === null) {
3350
+ vErrors = [err139];
3351
+ } else {
3352
+ vErrors.push(err139);
3353
+ }
3354
+ errors++;
3355
+ }
3356
+ }
3357
+ } else {
3358
+ const err140 = { instancePath, schemaPath: "#/oneOf/10/type", keyword: "type", params: { type: "object" }, message: "must be object" };
3359
+ if (vErrors === null) {
3360
+ vErrors = [err140];
3361
+ } else {
3362
+ vErrors.push(err140);
3363
+ }
3364
+ errors++;
3365
+ }
3366
+ } else if (tag0 === "seal") {
3367
+ if (data && typeof data == "object" && !Array.isArray(data)) {
3368
+ if (data.type === void 0) {
3369
+ const err141 = { instancePath, schemaPath: "#/oneOf/11/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
3370
+ if (vErrors === null) {
3371
+ vErrors = [err141];
3372
+ } else {
3373
+ vErrors.push(err141);
3374
+ }
3375
+ errors++;
3376
+ }
3377
+ if (data.box === void 0) {
3378
+ const err142 = { instancePath, schemaPath: "#/oneOf/11/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
3379
+ if (vErrors === null) {
3380
+ vErrors = [err142];
3381
+ } else {
3382
+ vErrors.push(err142);
3383
+ }
3384
+ errors++;
3385
+ }
3386
+ for (const key11 in data) {
3387
+ if (!(key11 === "type" || key11 === "box")) {
3388
+ const err143 = { instancePath, schemaPath: "#/oneOf/11/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key11 }, message: "must NOT have additional properties" };
3389
+ if (vErrors === null) {
3390
+ vErrors = [err143];
3391
+ } else {
3392
+ vErrors.push(err143);
3393
+ }
3394
+ errors++;
3395
+ }
3396
+ }
3397
+ if (data.type !== void 0) {
3398
+ if ("seal" !== data.type) {
3399
+ const err144 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/11/properties/type/const", keyword: "const", params: { allowedValue: "seal" }, message: "must be equal to constant" };
3400
+ if (vErrors === null) {
3401
+ vErrors = [err144];
3402
+ } else {
3403
+ vErrors.push(err144);
3404
+ }
3405
+ errors++;
3406
+ }
3407
+ }
3408
+ if (data.box !== void 0) {
3409
+ let data51 = data.box;
3410
+ if (typeof data51 === "string") {
3411
+ if (!pattern0.test(data51)) {
3412
+ const err145 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
3413
+ if (vErrors === null) {
3414
+ vErrors = [err145];
3415
+ } else {
3416
+ vErrors.push(err145);
3417
+ }
3418
+ errors++;
3419
+ }
3420
+ } else {
3421
+ const err146 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
3422
+ if (vErrors === null) {
3423
+ vErrors = [err146];
3424
+ } else {
3425
+ vErrors.push(err146);
3426
+ }
3427
+ errors++;
3428
+ }
3429
+ }
3430
+ } else {
3431
+ const err147 = { instancePath, schemaPath: "#/oneOf/11/type", keyword: "type", params: { type: "object" }, message: "must be object" };
3432
+ if (vErrors === null) {
3433
+ vErrors = [err147];
3434
+ } else {
3435
+ vErrors.push(err147);
3436
+ }
3437
+ errors++;
3438
+ }
3439
+ } else if (tag0 === "open") {
3440
+ if (data && typeof data == "object" && !Array.isArray(data)) {
3441
+ if (data.type === void 0) {
3442
+ const err148 = { instancePath, schemaPath: "#/oneOf/12/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
3443
+ if (vErrors === null) {
3444
+ vErrors = [err148];
3445
+ } else {
3446
+ vErrors.push(err148);
3447
+ }
3448
+ errors++;
3449
+ }
3450
+ if (data.box === void 0) {
3451
+ const err149 = { instancePath, schemaPath: "#/oneOf/12/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
3452
+ if (vErrors === null) {
3453
+ vErrors = [err149];
3454
+ } else {
3455
+ vErrors.push(err149);
3456
+ }
3457
+ errors++;
3458
+ }
3459
+ for (const key12 in data) {
3460
+ if (!(key12 === "type" || key12 === "box")) {
3461
+ const err150 = { instancePath, schemaPath: "#/oneOf/12/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key12 }, message: "must NOT have additional properties" };
3462
+ if (vErrors === null) {
3463
+ vErrors = [err150];
3464
+ } else {
3465
+ vErrors.push(err150);
3466
+ }
3467
+ errors++;
3468
+ }
3469
+ }
3470
+ if (data.type !== void 0) {
3471
+ if ("open" !== data.type) {
3472
+ const err151 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/12/properties/type/const", keyword: "const", params: { allowedValue: "open" }, message: "must be equal to constant" };
3473
+ if (vErrors === null) {
3474
+ vErrors = [err151];
3475
+ } else {
3476
+ vErrors.push(err151);
3477
+ }
3478
+ errors++;
3479
+ }
3480
+ }
3481
+ if (data.box !== void 0) {
3482
+ let data53 = data.box;
3483
+ if (typeof data53 === "string") {
3484
+ if (!pattern0.test(data53)) {
3485
+ const err152 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
3486
+ if (vErrors === null) {
3487
+ vErrors = [err152];
3488
+ } else {
3489
+ vErrors.push(err152);
3490
+ }
3491
+ errors++;
3492
+ }
3493
+ } else {
3494
+ const err153 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
3495
+ if (vErrors === null) {
3496
+ vErrors = [err153];
3497
+ } else {
3498
+ vErrors.push(err153);
3499
+ }
3500
+ errors++;
3501
+ }
3502
+ }
3503
+ } else {
3504
+ const err154 = { instancePath, schemaPath: "#/oneOf/12/type", keyword: "type", params: { type: "object" }, message: "must be object" };
3505
+ if (vErrors === null) {
3506
+ vErrors = [err154];
3507
+ } else {
3508
+ vErrors.push(err154);
3509
+ }
3510
+ errors++;
3511
+ }
3512
+ } else if (tag0 === "pick") {
3513
+ if (data && typeof data == "object" && !Array.isArray(data)) {
3514
+ if (data.type === void 0) {
3515
+ const err155 = { instancePath, schemaPath: "#/oneOf/13/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
3516
+ if (vErrors === null) {
3517
+ vErrors = [err155];
3518
+ } else {
3519
+ vErrors.push(err155);
3520
+ }
3521
+ errors++;
3522
+ }
3523
+ if (data.box === void 0) {
3524
+ const err156 = { instancePath, schemaPath: "#/oneOf/13/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
3525
+ if (vErrors === null) {
3526
+ vErrors = [err156];
3527
+ } else {
3528
+ vErrors.push(err156);
3529
+ }
3530
+ errors++;
3531
+ }
3532
+ for (const key13 in data) {
3533
+ if (!(key13 === "type" || key13 === "box")) {
3534
+ const err157 = { instancePath, schemaPath: "#/oneOf/13/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key13 }, message: "must NOT have additional properties" };
3535
+ if (vErrors === null) {
3536
+ vErrors = [err157];
3537
+ } else {
3538
+ vErrors.push(err157);
3539
+ }
3540
+ errors++;
3541
+ }
3542
+ }
3543
+ if (data.type !== void 0) {
3544
+ if ("pick" !== data.type) {
3545
+ const err158 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/13/properties/type/const", keyword: "const", params: { allowedValue: "pick" }, message: "must be equal to constant" };
3546
+ if (vErrors === null) {
3547
+ vErrors = [err158];
3548
+ } else {
3549
+ vErrors.push(err158);
3550
+ }
3551
+ errors++;
3552
+ }
3553
+ }
3554
+ if (data.box !== void 0) {
3555
+ let data55 = data.box;
3556
+ if (typeof data55 === "string") {
3557
+ if (!pattern0.test(data55)) {
3558
+ const err159 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
3559
+ if (vErrors === null) {
3560
+ vErrors = [err159];
3561
+ } else {
3562
+ vErrors.push(err159);
3563
+ }
3564
+ errors++;
3565
+ }
3566
+ } else {
3567
+ const err160 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
3568
+ if (vErrors === null) {
3569
+ vErrors = [err160];
3570
+ } else {
3571
+ vErrors.push(err160);
3572
+ }
3573
+ errors++;
3574
+ }
3575
+ }
3576
+ } else {
3577
+ const err161 = { instancePath, schemaPath: "#/oneOf/13/type", keyword: "type", params: { type: "object" }, message: "must be object" };
3578
+ if (vErrors === null) {
3579
+ vErrors = [err161];
3580
+ } else {
3581
+ vErrors.push(err161);
3582
+ }
3583
+ errors++;
3584
+ }
3585
+ } else if (tag0 === "stamp") {
3586
+ if (data && typeof data == "object" && !Array.isArray(data)) {
3587
+ if (data.type === void 0) {
3588
+ const err162 = { instancePath, schemaPath: "#/oneOf/14/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
3589
+ if (vErrors === null) {
3590
+ vErrors = [err162];
3591
+ } else {
3592
+ vErrors.push(err162);
2703
3593
  }
2704
3594
  errors++;
2705
3595
  }
2706
- if (data.id === void 0) {
2707
- const err115 = { instancePath, schemaPath: "#/oneOf/9/required", keyword: "required", params: { missingProperty: "id" }, message: "must have required property 'id'" };
3596
+ if (data.box === void 0) {
3597
+ const err163 = { instancePath, schemaPath: "#/oneOf/14/required", keyword: "required", params: { missingProperty: "box" }, message: "must have required property 'box'" };
2708
3598
  if (vErrors === null) {
2709
- vErrors = [err115];
3599
+ vErrors = [err163];
2710
3600
  } else {
2711
- vErrors.push(err115);
3601
+ vErrors.push(err163);
2712
3602
  }
2713
3603
  errors++;
2714
3604
  }
2715
- if (data.children === void 0) {
2716
- const err116 = { instancePath, schemaPath: "#/oneOf/9/required", keyword: "required", params: { missingProperty: "children" }, message: "must have required property 'children'" };
3605
+ if (data.text === void 0) {
3606
+ const err164 = { instancePath, schemaPath: "#/oneOf/14/required", keyword: "required", params: { missingProperty: "text" }, message: "must have required property 'text'" };
2717
3607
  if (vErrors === null) {
2718
- vErrors = [err116];
3608
+ vErrors = [err164];
2719
3609
  } else {
2720
- vErrors.push(err116);
3610
+ vErrors.push(err164);
2721
3611
  }
2722
3612
  errors++;
2723
3613
  }
2724
- for (const key9 in data) {
2725
- if (!(key9 === "type" || key9 === "id" || key9 === "children" || key9 === "hash")) {
2726
- const err117 = { instancePath, schemaPath: "#/oneOf/9/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key9 }, message: "must NOT have additional properties" };
3614
+ for (const key14 in data) {
3615
+ if (!(key14 === "type" || key14 === "box" || key14 === "text")) {
3616
+ const err165 = { instancePath, schemaPath: "#/oneOf/14/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key14 }, message: "must NOT have additional properties" };
2727
3617
  if (vErrors === null) {
2728
- vErrors = [err117];
3618
+ vErrors = [err165];
2729
3619
  } else {
2730
- vErrors.push(err117);
3620
+ vErrors.push(err165);
2731
3621
  }
2732
3622
  errors++;
2733
3623
  }
2734
3624
  }
2735
3625
  if (data.type !== void 0) {
2736
- if ("node" !== data.type) {
2737
- const err118 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/9/properties/type/const", keyword: "const", params: { allowedValue: "node" }, message: "must be equal to constant" };
2738
- if (vErrors === null) {
2739
- vErrors = [err118];
2740
- } else {
2741
- vErrors.push(err118);
2742
- }
2743
- errors++;
2744
- }
2745
- }
2746
- if (data.id !== void 0) {
2747
- let data42 = data.id;
2748
- if (typeof data42 === "string") {
2749
- if (!pattern0.test(data42)) {
2750
- const err119 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
2751
- if (vErrors === null) {
2752
- vErrors = [err119];
2753
- } else {
2754
- vErrors.push(err119);
2755
- }
2756
- errors++;
2757
- }
2758
- } else {
2759
- const err120 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
3626
+ if ("stamp" !== data.type) {
3627
+ const err166 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/14/properties/type/const", keyword: "const", params: { allowedValue: "stamp" }, message: "must be equal to constant" };
2760
3628
  if (vErrors === null) {
2761
- vErrors = [err120];
3629
+ vErrors = [err166];
2762
3630
  } else {
2763
- vErrors.push(err120);
3631
+ vErrors.push(err166);
2764
3632
  }
2765
3633
  errors++;
2766
3634
  }
2767
3635
  }
2768
- if (data.children !== void 0) {
2769
- let data43 = data.children;
2770
- if (Array.isArray(data43)) {
2771
- if (data43.length < 1) {
2772
- const err121 = { instancePath: instancePath + "/children", schemaPath: "#/oneOf/9/properties/children/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
3636
+ if (data.box !== void 0) {
3637
+ let data57 = data.box;
3638
+ if (typeof data57 === "string") {
3639
+ if (!pattern0.test(data57)) {
3640
+ const err167 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
2773
3641
  if (vErrors === null) {
2774
- vErrors = [err121];
3642
+ vErrors = [err167];
2775
3643
  } else {
2776
- vErrors.push(err121);
3644
+ vErrors.push(err167);
2777
3645
  }
2778
3646
  errors++;
2779
3647
  }
2780
- const len0 = data43.length;
2781
- for (let i0 = 0; i0 < len0; i0++) {
2782
- let data44 = data43[i0];
2783
- if (typeof data44 === "string") {
2784
- if (!pattern0.test(data44)) {
2785
- const err122 = { instancePath: instancePath + "/children/" + i0, schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
2786
- if (vErrors === null) {
2787
- vErrors = [err122];
2788
- } else {
2789
- vErrors.push(err122);
2790
- }
2791
- errors++;
2792
- }
2793
- } else {
2794
- const err123 = { instancePath: instancePath + "/children/" + i0, schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2795
- if (vErrors === null) {
2796
- vErrors = [err123];
2797
- } else {
2798
- vErrors.push(err123);
2799
- }
2800
- errors++;
2801
- }
2802
- }
2803
3648
  } else {
2804
- const err124 = { instancePath: instancePath + "/children", schemaPath: "#/oneOf/9/properties/children/type", keyword: "type", params: { type: "array" }, message: "must be array" };
3649
+ const err168 = { instancePath: instancePath + "/box", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2805
3650
  if (vErrors === null) {
2806
- vErrors = [err124];
3651
+ vErrors = [err168];
2807
3652
  } else {
2808
- vErrors.push(err124);
3653
+ vErrors.push(err168);
2809
3654
  }
2810
3655
  errors++;
2811
3656
  }
2812
3657
  }
2813
- if (data.hash !== void 0) {
2814
- let data45 = data.hash;
2815
- if (typeof data45 === "string") {
2816
- if (!pattern14.test(data45)) {
2817
- const err125 = { instancePath: instancePath + "/hash", schemaPath: "#/definitions/hash/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{4,40}$" }, message: 'must match pattern "^[0-9a-f]{4,40}$"' };
3658
+ if (data.text !== void 0) {
3659
+ let data58 = data.text;
3660
+ if (typeof data58 === "string") {
3661
+ if (func3(data58) < 1) {
3662
+ const err169 = { instancePath: instancePath + "/text", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
2818
3663
  if (vErrors === null) {
2819
- vErrors = [err125];
3664
+ vErrors = [err169];
2820
3665
  } else {
2821
- vErrors.push(err125);
3666
+ vErrors.push(err169);
2822
3667
  }
2823
3668
  errors++;
2824
3669
  }
2825
3670
  } else {
2826
- const err126 = { instancePath: instancePath + "/hash", schemaPath: "#/definitions/hash/type", keyword: "type", params: { type: "string" }, message: "must be string" };
3671
+ const err170 = { instancePath: instancePath + "/text", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2827
3672
  if (vErrors === null) {
2828
- vErrors = [err126];
3673
+ vErrors = [err170];
2829
3674
  } else {
2830
- vErrors.push(err126);
3675
+ vErrors.push(err170);
2831
3676
  }
2832
3677
  errors++;
2833
3678
  }
2834
3679
  }
2835
3680
  } else {
2836
- const err127 = { instancePath, schemaPath: "#/oneOf/9/type", keyword: "type", params: { type: "object" }, message: "must be object" };
3681
+ const err171 = { instancePath, schemaPath: "#/oneOf/14/type", keyword: "type", params: { type: "object" }, message: "must be object" };
2837
3682
  if (vErrors === null) {
2838
- vErrors = [err127];
3683
+ vErrors = [err171];
2839
3684
  } else {
2840
- vErrors.push(err127);
3685
+ vErrors.push(err171);
2841
3686
  }
2842
3687
  errors++;
2843
3688
  }
2844
3689
  } else if (tag0 === "strip") {
2845
- const _errs142 = errors;
2846
- let valid56 = false;
2847
- const _errs143 = errors;
3690
+ const _errs185 = errors;
3691
+ let valid75 = false;
3692
+ const _errs186 = errors;
2848
3693
  if (data && typeof data == "object" && !Array.isArray(data)) {
2849
3694
  if (data.value === void 0) {
2850
- const err128 = { instancePath, schemaPath: "#/oneOf/10/anyOf/0/required", keyword: "required", params: { missingProperty: "value" }, message: "must have required property 'value'" };
3695
+ const err172 = { instancePath, schemaPath: "#/oneOf/15/anyOf/0/required", keyword: "required", params: { missingProperty: "value" }, message: "must have required property 'value'" };
2851
3696
  if (vErrors === null) {
2852
- vErrors = [err128];
3697
+ vErrors = [err172];
2853
3698
  } else {
2854
- vErrors.push(err128);
3699
+ vErrors.push(err172);
2855
3700
  }
2856
3701
  errors++;
2857
3702
  }
2858
3703
  }
2859
- var _valid0 = _errs143 === errors;
2860
- valid56 = valid56 || _valid0;
2861
- if (!valid56) {
2862
- const _errs144 = errors;
3704
+ var _valid0 = _errs186 === errors;
3705
+ valid75 = valid75 || _valid0;
3706
+ if (!valid75) {
3707
+ const _errs187 = errors;
2863
3708
  if (data && typeof data == "object" && !Array.isArray(data)) {
2864
3709
  if (data.tag === void 0) {
2865
- const err129 = { instancePath, schemaPath: "#/oneOf/10/anyOf/1/required", keyword: "required", params: { missingProperty: "tag" }, message: "must have required property 'tag'" };
3710
+ const err173 = { instancePath, schemaPath: "#/oneOf/15/anyOf/1/required", keyword: "required", params: { missingProperty: "tag" }, message: "must have required property 'tag'" };
2866
3711
  if (vErrors === null) {
2867
- vErrors = [err129];
3712
+ vErrors = [err173];
2868
3713
  } else {
2869
- vErrors.push(err129);
3714
+ vErrors.push(err173);
2870
3715
  }
2871
3716
  errors++;
2872
3717
  }
2873
3718
  }
2874
- var _valid0 = _errs144 === errors;
2875
- valid56 = valid56 || _valid0;
3719
+ var _valid0 = _errs187 === errors;
3720
+ valid75 = valid75 || _valid0;
2876
3721
  }
2877
- if (!valid56) {
2878
- const err130 = { instancePath, schemaPath: "#/oneOf/10/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
3722
+ if (!valid75) {
3723
+ const err174 = { instancePath, schemaPath: "#/oneOf/15/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
2879
3724
  if (vErrors === null) {
2880
- vErrors = [err130];
3725
+ vErrors = [err174];
2881
3726
  } else {
2882
- vErrors.push(err130);
3727
+ vErrors.push(err174);
2883
3728
  }
2884
3729
  errors++;
2885
3730
  } else {
2886
- errors = _errs142;
3731
+ errors = _errs185;
2887
3732
  if (vErrors !== null) {
2888
- if (_errs142) {
2889
- vErrors.length = _errs142;
3733
+ if (_errs185) {
3734
+ vErrors.length = _errs185;
2890
3735
  } else {
2891
3736
  vErrors = null;
2892
3737
  }
@@ -2894,151 +3739,151 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
2894
3739
  }
2895
3740
  if (data && typeof data == "object" && !Array.isArray(data)) {
2896
3741
  if (data.type === void 0) {
2897
- const err131 = { instancePath, schemaPath: "#/oneOf/10/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
3742
+ const err175 = { instancePath, schemaPath: "#/oneOf/15/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
2898
3743
  if (vErrors === null) {
2899
- vErrors = [err131];
3744
+ vErrors = [err175];
2900
3745
  } else {
2901
- vErrors.push(err131);
3746
+ vErrors.push(err175);
2902
3747
  }
2903
3748
  errors++;
2904
3749
  }
2905
3750
  if (data.field === void 0) {
2906
- const err132 = { instancePath, schemaPath: "#/oneOf/10/required", keyword: "required", params: { missingProperty: "field" }, message: "must have required property 'field'" };
3751
+ const err176 = { instancePath, schemaPath: "#/oneOf/15/required", keyword: "required", params: { missingProperty: "field" }, message: "must have required property 'field'" };
2907
3752
  if (vErrors === null) {
2908
- vErrors = [err132];
3753
+ vErrors = [err176];
2909
3754
  } else {
2910
- vErrors.push(err132);
3755
+ vErrors.push(err176);
2911
3756
  }
2912
3757
  errors++;
2913
3758
  }
2914
- for (const key10 in data) {
2915
- if (!(key10 === "type" || key10 === "field" || key10 === "value" || key10 === "tag")) {
2916
- const err133 = { instancePath, schemaPath: "#/oneOf/10/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key10 }, message: "must NOT have additional properties" };
3759
+ for (const key15 in data) {
3760
+ if (!(key15 === "type" || key15 === "field" || key15 === "value" || key15 === "tag")) {
3761
+ const err177 = { instancePath, schemaPath: "#/oneOf/15/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key15 }, message: "must NOT have additional properties" };
2917
3762
  if (vErrors === null) {
2918
- vErrors = [err133];
3763
+ vErrors = [err177];
2919
3764
  } else {
2920
- vErrors.push(err133);
3765
+ vErrors.push(err177);
2921
3766
  }
2922
3767
  errors++;
2923
3768
  }
2924
3769
  }
2925
3770
  if (data.type !== void 0) {
2926
3771
  if ("strip" !== data.type) {
2927
- const err134 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/10/properties/type/const", keyword: "const", params: { allowedValue: "strip" }, message: "must be equal to constant" };
3772
+ const err178 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/15/properties/type/const", keyword: "const", params: { allowedValue: "strip" }, message: "must be equal to constant" };
2928
3773
  if (vErrors === null) {
2929
- vErrors = [err134];
3774
+ vErrors = [err178];
2930
3775
  } else {
2931
- vErrors.push(err134);
3776
+ vErrors.push(err178);
2932
3777
  }
2933
3778
  errors++;
2934
3779
  }
2935
3780
  }
2936
3781
  if (data.field !== void 0) {
2937
- let data47 = data.field;
2938
- if (typeof data47 === "string") {
2939
- if (func3(data47) < 1) {
2940
- const err135 = { instancePath: instancePath + "/field", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
3782
+ let data60 = data.field;
3783
+ if (typeof data60 === "string") {
3784
+ if (func3(data60) < 1) {
3785
+ const err179 = { instancePath: instancePath + "/field", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
2941
3786
  if (vErrors === null) {
2942
- vErrors = [err135];
3787
+ vErrors = [err179];
2943
3788
  } else {
2944
- vErrors.push(err135);
3789
+ vErrors.push(err179);
2945
3790
  }
2946
3791
  errors++;
2947
3792
  }
2948
3793
  } else {
2949
- const err136 = { instancePath: instancePath + "/field", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
3794
+ const err180 = { instancePath: instancePath + "/field", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2950
3795
  if (vErrors === null) {
2951
- vErrors = [err136];
3796
+ vErrors = [err180];
2952
3797
  } else {
2953
- vErrors.push(err136);
3798
+ vErrors.push(err180);
2954
3799
  }
2955
3800
  errors++;
2956
3801
  }
2957
3802
  }
2958
3803
  if (data.value !== void 0) {
2959
- let data48 = data.value;
2960
- if (typeof data48 === "string") {
2961
- if (func3(data48) < 1) {
2962
- const err137 = { instancePath: instancePath + "/value", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
3804
+ let data61 = data.value;
3805
+ if (typeof data61 === "string") {
3806
+ if (func3(data61) < 1) {
3807
+ const err181 = { instancePath: instancePath + "/value", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
2963
3808
  if (vErrors === null) {
2964
- vErrors = [err137];
3809
+ vErrors = [err181];
2965
3810
  } else {
2966
- vErrors.push(err137);
3811
+ vErrors.push(err181);
2967
3812
  }
2968
3813
  errors++;
2969
3814
  }
2970
3815
  } else {
2971
- const err138 = { instancePath: instancePath + "/value", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
3816
+ const err182 = { instancePath: instancePath + "/value", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2972
3817
  if (vErrors === null) {
2973
- vErrors = [err138];
3818
+ vErrors = [err182];
2974
3819
  } else {
2975
- vErrors.push(err138);
3820
+ vErrors.push(err182);
2976
3821
  }
2977
3822
  errors++;
2978
3823
  }
2979
3824
  }
2980
3825
  if (data.tag !== void 0) {
2981
- let data49 = data.tag;
2982
- if (typeof data49 === "string") {
2983
- if (func3(data49) < 1) {
2984
- const err139 = { instancePath: instancePath + "/tag", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
3826
+ let data62 = data.tag;
3827
+ if (typeof data62 === "string") {
3828
+ if (func3(data62) < 1) {
3829
+ const err183 = { instancePath: instancePath + "/tag", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
2985
3830
  if (vErrors === null) {
2986
- vErrors = [err139];
3831
+ vErrors = [err183];
2987
3832
  } else {
2988
- vErrors.push(err139);
3833
+ vErrors.push(err183);
2989
3834
  }
2990
3835
  errors++;
2991
3836
  }
2992
3837
  } else {
2993
- const err140 = { instancePath: instancePath + "/tag", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
3838
+ const err184 = { instancePath: instancePath + "/tag", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2994
3839
  if (vErrors === null) {
2995
- vErrors = [err140];
3840
+ vErrors = [err184];
2996
3841
  } else {
2997
- vErrors.push(err140);
3842
+ vErrors.push(err184);
2998
3843
  }
2999
3844
  errors++;
3000
3845
  }
3001
3846
  }
3002
3847
  } else {
3003
- const err141 = { instancePath, schemaPath: "#/oneOf/10/type", keyword: "type", params: { type: "object" }, message: "must be object" };
3848
+ const err185 = { instancePath, schemaPath: "#/oneOf/15/type", keyword: "type", params: { type: "object" }, message: "must be object" };
3004
3849
  if (vErrors === null) {
3005
- vErrors = [err141];
3850
+ vErrors = [err185];
3006
3851
  } else {
3007
- vErrors.push(err141);
3852
+ vErrors.push(err185);
3008
3853
  }
3009
3854
  errors++;
3010
3855
  }
3011
3856
  } else {
3012
- const err142 = { instancePath, schemaPath: "#/discriminator", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag0 }, message: 'value of tag "type" must be in oneOf' };
3857
+ const err186 = { instancePath, schemaPath: "#/discriminator", keyword: "discriminator", params: { error: "mapping", tag: "type", tagValue: tag0 }, message: 'value of tag "type" must be in oneOf' };
3013
3858
  if (vErrors === null) {
3014
- vErrors = [err142];
3859
+ vErrors = [err186];
3015
3860
  } else {
3016
- vErrors.push(err142);
3861
+ vErrors.push(err186);
3017
3862
  }
3018
3863
  errors++;
3019
3864
  }
3020
3865
  } else {
3021
- const err143 = { instancePath, schemaPath: "#/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag0 }, message: 'tag "type" must be string' };
3866
+ const err187 = { instancePath, schemaPath: "#/discriminator", keyword: "discriminator", params: { error: "tag", tag: "type", tagValue: tag0 }, message: 'tag "type" must be string' };
3022
3867
  if (vErrors === null) {
3023
- vErrors = [err143];
3868
+ vErrors = [err187];
3024
3869
  } else {
3025
- vErrors.push(err143);
3870
+ vErrors.push(err187);
3026
3871
  }
3027
3872
  errors++;
3028
3873
  }
3029
3874
  } else {
3030
- const err144 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
3875
+ const err188 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
3031
3876
  if (vErrors === null) {
3032
- vErrors = [err144];
3877
+ vErrors = [err188];
3033
3878
  } else {
3034
- vErrors.push(err144);
3879
+ vErrors.push(err188);
3035
3880
  }
3036
3881
  errors++;
3037
3882
  }
3038
- validate38.errors = vErrors;
3883
+ validate41.errors = vErrors;
3039
3884
  return errors === 0;
3040
3885
  }
3041
- function validate35(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3886
+ function validate38(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3042
3887
  let vErrors = null;
3043
3888
  let errors = 0;
3044
3889
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -3160,8 +4005,8 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
3160
4005
  }
3161
4006
  const len0 = data3.length;
3162
4007
  for (let i0 = 0; i0 < len0; i0++) {
3163
- if (!validate36(data3[i0], { instancePath: instancePath + "/sources/" + i0, parentData: data3, parentDataProperty: i0, rootData })) {
3164
- vErrors = vErrors === null ? validate36.errors : vErrors.concat(validate36.errors);
4008
+ if (!validate39(data3[i0], { instancePath: instancePath + "/sources/" + i0, parentData: data3, parentDataProperty: i0, rootData })) {
4009
+ vErrors = vErrors === null ? validate39.errors : vErrors.concat(validate39.errors);
3165
4010
  errors = vErrors.length;
3166
4011
  }
3167
4012
  }
@@ -3180,8 +4025,8 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
3180
4025
  if (Array.isArray(data5)) {
3181
4026
  const len1 = data5.length;
3182
4027
  for (let i1 = 0; i1 < len1; i1++) {
3183
- if (!validate38(data5[i1], { instancePath: instancePath + "/events/" + i1, parentData: data5, parentDataProperty: i1, rootData })) {
3184
- vErrors = vErrors === null ? validate38.errors : vErrors.concat(validate38.errors);
4028
+ if (!validate41(data5[i1], { instancePath: instancePath + "/events/" + i1, parentData: data5, parentDataProperty: i1, rootData })) {
4029
+ vErrors = vErrors === null ? validate41.errors : vErrors.concat(validate41.errors);
3185
4030
  errors = vErrors.length;
3186
4031
  }
3187
4032
  }
@@ -3204,10 +4049,10 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
3204
4049
  }
3205
4050
  errors++;
3206
4051
  }
3207
- validate35.errors = vErrors;
4052
+ validate38.errors = vErrors;
3208
4053
  return errors === 0;
3209
4054
  }
3210
- function validate43(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4055
+ function validate46(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3211
4056
  let vErrors = null;
3212
4057
  let errors = 0;
3213
4058
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -3285,10 +4130,10 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
3285
4130
  }
3286
4131
  errors++;
3287
4132
  }
3288
- validate43.errors = vErrors;
4133
+ validate46.errors = vErrors;
3289
4134
  return errors === 0;
3290
4135
  }
3291
- function validate46(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4136
+ function validate49(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3292
4137
  let vErrors = null;
3293
4138
  let errors = 0;
3294
4139
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -3396,10 +4241,10 @@ function validate46(data, { instancePath = "", parentData, parentDataProperty, r
3396
4241
  }
3397
4242
  errors++;
3398
4243
  }
3399
- validate46.errors = vErrors;
4244
+ validate49.errors = vErrors;
3400
4245
  return errors === 0;
3401
4246
  }
3402
- function validate45(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4247
+ function validate48(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3403
4248
  let vErrors = null;
3404
4249
  let errors = 0;
3405
4250
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -3437,8 +4282,8 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
3437
4282
  }
3438
4283
  const len0 = data0.length;
3439
4284
  for (let i0 = 0; i0 < len0; i0++) {
3440
- if (!validate46(data0[i0], { instancePath: instancePath + "/paths/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
3441
- vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
4285
+ if (!validate49(data0[i0], { instancePath: instancePath + "/paths/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
4286
+ vErrors = vErrors === null ? validate49.errors : vErrors.concat(validate49.errors);
3442
4287
  errors = vErrors.length;
3443
4288
  }
3444
4289
  }
@@ -3461,10 +4306,10 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
3461
4306
  }
3462
4307
  errors++;
3463
4308
  }
3464
- validate45.errors = vErrors;
4309
+ validate48.errors = vErrors;
3465
4310
  return errors === 0;
3466
4311
  }
3467
- function validate50(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4312
+ function validate53(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3468
4313
  let vErrors = null;
3469
4314
  let errors = 0;
3470
4315
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -3541,10 +4386,10 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
3541
4386
  }
3542
4387
  errors++;
3543
4388
  }
3544
- validate50.errors = vErrors;
4389
+ validate53.errors = vErrors;
3545
4390
  return errors === 0;
3546
4391
  }
3547
- function validate49(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4392
+ function validate52(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3548
4393
  let vErrors = null;
3549
4394
  let errors = 0;
3550
4395
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -3582,8 +4427,8 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
3582
4427
  }
3583
4428
  const len0 = data0.length;
3584
4429
  for (let i0 = 0; i0 < len0; i0++) {
3585
- if (!validate50(data0[i0], { instancePath: instancePath + "/branches/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
3586
- vErrors = vErrors === null ? validate50.errors : vErrors.concat(validate50.errors);
4430
+ if (!validate53(data0[i0], { instancePath: instancePath + "/branches/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
4431
+ vErrors = vErrors === null ? validate53.errors : vErrors.concat(validate53.errors);
3587
4432
  errors = vErrors.length;
3588
4433
  }
3589
4434
  }
@@ -3606,11 +4451,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
3606
4451
  }
3607
4452
  errors++;
3608
4453
  }
3609
- validate49.errors = vErrors;
4454
+ validate52.errors = vErrors;
3610
4455
  return errors === 0;
3611
4456
  }
3612
- var pattern27 = new RegExp("^[0-9]+(\\.[0-9]+)?(ms|s|min|h|d)$", "u");
3613
- function validate54(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4457
+ var pattern33 = new RegExp("^[0-9]+(\\.[0-9]+)?(ms|s|min|h|d)$", "u");
4458
+ function validate57(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3614
4459
  let vErrors = null;
3615
4460
  let errors = 0;
3616
4461
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -3677,7 +4522,7 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
3677
4522
  if (data.length !== void 0) {
3678
4523
  let data1 = data.length;
3679
4524
  if (typeof data1 === "string") {
3680
- if (!pattern27.test(data1)) {
4525
+ if (!pattern33.test(data1)) {
3681
4526
  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)$"' };
3682
4527
  if (vErrors === null) {
3683
4528
  vErrors = [err6];
@@ -3751,10 +4596,10 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
3751
4596
  }
3752
4597
  errors++;
3753
4598
  }
3754
- validate54.errors = vErrors;
4599
+ validate57.errors = vErrors;
3755
4600
  return errors === 0;
3756
4601
  }
3757
- function validate56(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4602
+ function validate59(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3758
4603
  let vErrors = null;
3759
4604
  let errors = 0;
3760
4605
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -3864,10 +4709,10 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
3864
4709
  }
3865
4710
  errors++;
3866
4711
  }
3867
- validate56.errors = vErrors;
4712
+ validate59.errors = vErrors;
3868
4713
  return errors === 0;
3869
4714
  }
3870
- function validate58(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4715
+ function validate61(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
3871
4716
  let vErrors = null;
3872
4717
  let errors = 0;
3873
4718
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -3947,7 +4792,7 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
3947
4792
  if (data.color !== void 0) {
3948
4793
  let data2 = data.color;
3949
4794
  if (!(data2 === "blue" || data2 === "amber" || data2 === "green" || data2 === "violet" || data2 === "rose" || data2 === "slate" || data2 === "coin")) {
3950
- const err7 = { instancePath: instancePath + "/color", schemaPath: "#/definitions/color/enum", keyword: "enum", params: { allowedValues: schema57.enum }, message: "must be equal to one of the allowed values" };
4795
+ 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" };
3951
4796
  if (vErrors === null) {
3952
4797
  vErrors = [err7];
3953
4798
  } else {
@@ -4002,10 +4847,10 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
4002
4847
  }
4003
4848
  errors++;
4004
4849
  }
4005
- validate58.errors = vErrors;
4850
+ validate61.errors = vErrors;
4006
4851
  return errors === 0;
4007
4852
  }
4008
- function validate60(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4853
+ function validate63(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4009
4854
  let vErrors = null;
4010
4855
  let errors = 0;
4011
4856
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -4092,10 +4937,10 @@ function validate60(data, { instancePath = "", parentData, parentDataProperty, r
4092
4937
  }
4093
4938
  errors++;
4094
4939
  }
4095
- validate60.errors = vErrors;
4940
+ validate63.errors = vErrors;
4096
4941
  return errors === 0;
4097
4942
  }
4098
- function validate62(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4943
+ function validate65(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4099
4944
  let vErrors = null;
4100
4945
  let errors = 0;
4101
4946
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -4183,10 +5028,10 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
4183
5028
  }
4184
5029
  errors++;
4185
5030
  }
4186
- validate62.errors = vErrors;
5031
+ validate65.errors = vErrors;
4187
5032
  return errors === 0;
4188
5033
  }
4189
- function validate53(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
5034
+ function validate56(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
4190
5035
  let vErrors = null;
4191
5036
  let errors = 0;
4192
5037
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -4220,14 +5065,14 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
4220
5065
  }
4221
5066
  }
4222
5067
  if (data.scale !== void 0) {
4223
- if (!validate54(data.scale, { instancePath: instancePath + "/scale", parentData: data, parentDataProperty: "scale", rootData })) {
4224
- vErrors = vErrors === null ? validate54.errors : vErrors.concat(validate54.errors);
5068
+ if (!validate57(data.scale, { instancePath: instancePath + "/scale", parentData: data, parentDataProperty: "scale", rootData })) {
5069
+ vErrors = vErrors === null ? validate57.errors : vErrors.concat(validate57.errors);
4225
5070
  errors = vErrors.length;
4226
5071
  }
4227
5072
  }
4228
5073
  if (data.period !== void 0) {
4229
- if (!validate56(data.period, { instancePath: instancePath + "/period", parentData: data, parentDataProperty: "period", rootData })) {
4230
- vErrors = vErrors === null ? validate56.errors : vErrors.concat(validate56.errors);
5074
+ if (!validate59(data.period, { instancePath: instancePath + "/period", parentData: data, parentDataProperty: "period", rootData })) {
5075
+ vErrors = vErrors === null ? validate59.errors : vErrors.concat(validate59.errors);
4231
5076
  errors = vErrors.length;
4232
5077
  }
4233
5078
  }
@@ -4245,57 +5090,223 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
4245
5090
  }
4246
5091
  const len0 = data2.length;
4247
5092
  for (let i0 = 0; i0 < len0; i0++) {
4248
- if (!validate58(data2[i0], { instancePath: instancePath + "/rows/" + i0, parentData: data2, parentDataProperty: i0, rootData })) {
4249
- vErrors = vErrors === null ? validate58.errors : vErrors.concat(validate58.errors);
5093
+ if (!validate61(data2[i0], { instancePath: instancePath + "/rows/" + i0, parentData: data2, parentDataProperty: i0, rootData })) {
5094
+ vErrors = vErrors === null ? validate61.errors : vErrors.concat(validate61.errors);
4250
5095
  errors = vErrors.length;
4251
5096
  }
4252
5097
  }
4253
5098
  } else {
4254
5099
  const err4 = { instancePath: instancePath + "/rows", schemaPath: "#/properties/rows/type", keyword: "type", params: { type: "array" }, message: "must be array" };
4255
5100
  if (vErrors === null) {
4256
- vErrors = [err4];
5101
+ vErrors = [err4];
5102
+ } else {
5103
+ vErrors.push(err4);
5104
+ }
5105
+ errors++;
5106
+ }
5107
+ }
5108
+ if (data.points !== void 0) {
5109
+ let data4 = data.points;
5110
+ if (Array.isArray(data4)) {
5111
+ const len1 = data4.length;
5112
+ for (let i1 = 0; i1 < len1; i1++) {
5113
+ if (!validate63(data4[i1], { instancePath: instancePath + "/points/" + i1, parentData: data4, parentDataProperty: i1, rootData })) {
5114
+ vErrors = vErrors === null ? validate63.errors : vErrors.concat(validate63.errors);
5115
+ errors = vErrors.length;
5116
+ }
5117
+ }
5118
+ } else {
5119
+ const err5 = { instancePath: instancePath + "/points", schemaPath: "#/properties/points/type", keyword: "type", params: { type: "array" }, message: "must be array" };
5120
+ if (vErrors === null) {
5121
+ vErrors = [err5];
5122
+ } else {
5123
+ vErrors.push(err5);
5124
+ }
5125
+ errors++;
5126
+ }
5127
+ }
5128
+ if (data.zoom !== void 0) {
5129
+ if (!validate65(data.zoom, { instancePath: instancePath + "/zoom", parentData: data, parentDataProperty: "zoom", rootData })) {
5130
+ vErrors = vErrors === null ? validate65.errors : vErrors.concat(validate65.errors);
5131
+ errors = vErrors.length;
5132
+ }
5133
+ }
5134
+ } else {
5135
+ const err6 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
5136
+ if (vErrors === null) {
5137
+ vErrors = [err6];
5138
+ } else {
5139
+ vErrors.push(err6);
5140
+ }
5141
+ errors++;
5142
+ }
5143
+ validate56.errors = vErrors;
5144
+ return errors === 0;
5145
+ }
5146
+ function validate69(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
5147
+ let vErrors = null;
5148
+ let errors = 0;
5149
+ if (data && typeof data == "object" && !Array.isArray(data)) {
5150
+ if (data.id === void 0) {
5151
+ const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "id" }, message: "must have required property 'id'" };
5152
+ if (vErrors === null) {
5153
+ vErrors = [err0];
5154
+ } else {
5155
+ vErrors.push(err0);
5156
+ }
5157
+ errors++;
5158
+ }
5159
+ for (const key0 in data) {
5160
+ if (!(key0 === "id" || key0 === "color" || key0 === "label")) {
5161
+ const err1 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
5162
+ if (vErrors === null) {
5163
+ vErrors = [err1];
5164
+ } else {
5165
+ vErrors.push(err1);
5166
+ }
5167
+ errors++;
5168
+ }
5169
+ }
5170
+ if (data.id !== void 0) {
5171
+ let data0 = data.id;
5172
+ if (typeof data0 === "string") {
5173
+ if (!pattern0.test(data0)) {
5174
+ const err2 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
5175
+ if (vErrors === null) {
5176
+ vErrors = [err2];
5177
+ } else {
5178
+ vErrors.push(err2);
5179
+ }
5180
+ errors++;
5181
+ }
5182
+ } else {
5183
+ const err3 = { instancePath: instancePath + "/id", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
5184
+ if (vErrors === null) {
5185
+ vErrors = [err3];
5186
+ } else {
5187
+ vErrors.push(err3);
5188
+ }
5189
+ errors++;
5190
+ }
5191
+ }
5192
+ if (data.color !== void 0) {
5193
+ let data1 = data.color;
5194
+ if (!(data1 === "blue" || data1 === "amber" || data1 === "green" || data1 === "violet" || data1 === "rose" || data1 === "slate" || data1 === "coin")) {
5195
+ 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" };
5196
+ if (vErrors === null) {
5197
+ vErrors = [err4];
5198
+ } else {
5199
+ vErrors.push(err4);
5200
+ }
5201
+ errors++;
5202
+ }
5203
+ }
5204
+ if (data.label !== void 0) {
5205
+ let data2 = data.label;
5206
+ if (typeof data2 === "string") {
5207
+ if (func3(data2) > 4) {
5208
+ const err5 = { instancePath: instancePath + "/label", schemaPath: "#/properties/label/maxLength", keyword: "maxLength", params: { limit: 4 }, message: "must NOT have more than 4 characters" };
5209
+ if (vErrors === null) {
5210
+ vErrors = [err5];
5211
+ } else {
5212
+ vErrors.push(err5);
5213
+ }
5214
+ errors++;
5215
+ }
5216
+ if (func3(data2) < 1) {
5217
+ const err6 = { instancePath: instancePath + "/label", schemaPath: "#/properties/label/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
5218
+ if (vErrors === null) {
5219
+ vErrors = [err6];
5220
+ } else {
5221
+ vErrors.push(err6);
5222
+ }
5223
+ errors++;
5224
+ }
5225
+ } else {
5226
+ const err7 = { instancePath: instancePath + "/label", schemaPath: "#/properties/label/type", keyword: "type", params: { type: "string" }, message: "must be string" };
5227
+ if (vErrors === null) {
5228
+ vErrors = [err7];
5229
+ } else {
5230
+ vErrors.push(err7);
5231
+ }
5232
+ errors++;
5233
+ }
5234
+ }
5235
+ } else {
5236
+ const err8 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
5237
+ if (vErrors === null) {
5238
+ vErrors = [err8];
5239
+ } else {
5240
+ vErrors.push(err8);
5241
+ }
5242
+ errors++;
5243
+ }
5244
+ validate69.errors = vErrors;
5245
+ return errors === 0;
5246
+ }
5247
+ function validate68(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
5248
+ let vErrors = null;
5249
+ let errors = 0;
5250
+ if (data && typeof data == "object" && !Array.isArray(data)) {
5251
+ if (data.items === void 0) {
5252
+ const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "items" }, message: "must have required property 'items'" };
5253
+ if (vErrors === null) {
5254
+ vErrors = [err0];
5255
+ } else {
5256
+ vErrors.push(err0);
5257
+ }
5258
+ errors++;
5259
+ }
5260
+ for (const key0 in data) {
5261
+ if (!(key0 === "items")) {
5262
+ const err1 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
5263
+ if (vErrors === null) {
5264
+ vErrors = [err1];
4257
5265
  } else {
4258
- vErrors.push(err4);
5266
+ vErrors.push(err1);
4259
5267
  }
4260
5268
  errors++;
4261
5269
  }
4262
5270
  }
4263
- if (data.points !== void 0) {
4264
- let data4 = data.points;
4265
- if (Array.isArray(data4)) {
4266
- const len1 = data4.length;
4267
- for (let i1 = 0; i1 < len1; i1++) {
4268
- if (!validate60(data4[i1], { instancePath: instancePath + "/points/" + i1, parentData: data4, parentDataProperty: i1, rootData })) {
4269
- vErrors = vErrors === null ? validate60.errors : vErrors.concat(validate60.errors);
5271
+ if (data.items !== void 0) {
5272
+ let data0 = data.items;
5273
+ if (Array.isArray(data0)) {
5274
+ if (data0.length < 1) {
5275
+ const err2 = { instancePath: instancePath + "/items", schemaPath: "#/properties/items/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
5276
+ if (vErrors === null) {
5277
+ vErrors = [err2];
5278
+ } else {
5279
+ vErrors.push(err2);
5280
+ }
5281
+ errors++;
5282
+ }
5283
+ const len0 = data0.length;
5284
+ for (let i0 = 0; i0 < len0; i0++) {
5285
+ if (!validate69(data0[i0], { instancePath: instancePath + "/items/" + i0, parentData: data0, parentDataProperty: i0, rootData })) {
5286
+ vErrors = vErrors === null ? validate69.errors : vErrors.concat(validate69.errors);
4270
5287
  errors = vErrors.length;
4271
5288
  }
4272
5289
  }
4273
5290
  } else {
4274
- const err5 = { instancePath: instancePath + "/points", schemaPath: "#/properties/points/type", keyword: "type", params: { type: "array" }, message: "must be array" };
5291
+ const err3 = { instancePath: instancePath + "/items", schemaPath: "#/properties/items/type", keyword: "type", params: { type: "array" }, message: "must be array" };
4275
5292
  if (vErrors === null) {
4276
- vErrors = [err5];
5293
+ vErrors = [err3];
4277
5294
  } else {
4278
- vErrors.push(err5);
5295
+ vErrors.push(err3);
4279
5296
  }
4280
5297
  errors++;
4281
5298
  }
4282
5299
  }
4283
- if (data.zoom !== void 0) {
4284
- if (!validate62(data.zoom, { instancePath: instancePath + "/zoom", parentData: data, parentDataProperty: "zoom", rootData })) {
4285
- vErrors = vErrors === null ? validate62.errors : vErrors.concat(validate62.errors);
4286
- errors = vErrors.length;
4287
- }
4288
- }
4289
5300
  } else {
4290
- const err6 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
5301
+ const err4 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
4291
5302
  if (vErrors === null) {
4292
- vErrors = [err6];
5303
+ vErrors = [err4];
4293
5304
  } else {
4294
- vErrors.push(err6);
5305
+ vErrors.push(err4);
4295
5306
  }
4296
5307
  errors++;
4297
5308
  }
4298
- validate53.errors = vErrors;
5309
+ validate68.errors = vErrors;
4299
5310
  return errors === 0;
4300
5311
  }
4301
5312
  var func2 = Object.prototype.hasOwnProperty;
@@ -4403,94 +5414,103 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
4403
5414
  }
4404
5415
  errors++;
4405
5416
  }
5417
+ if (data.lineup !== void 0) {
5418
+ const err7 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5419
+ if (vErrors === null) {
5420
+ vErrors = [err7];
5421
+ } else {
5422
+ vErrors.push(err7);
5423
+ }
5424
+ errors++;
5425
+ }
4406
5426
  }
4407
5427
  var _valid0 = _errs4 === errors;
4408
5428
  valid0 = _valid0;
4409
5429
  ifClause0 = "then";
4410
5430
  } else {
4411
- const _errs17 = errors;
4412
- const _errs18 = errors;
4413
- let valid6 = true;
4414
- const _errs19 = errors;
5431
+ const _errs20 = errors;
5432
+ const _errs21 = errors;
5433
+ let valid7 = true;
5434
+ const _errs22 = errors;
4415
5435
  if (data && typeof data == "object" && !Array.isArray(data)) {
4416
5436
  if (data.kind === void 0 && ("kind")) {
4417
- const err7 = {};
5437
+ const err8 = {};
4418
5438
  if (vErrors === null) {
4419
- vErrors = [err7];
5439
+ vErrors = [err8];
4420
5440
  } else {
4421
- vErrors.push(err7);
5441
+ vErrors.push(err8);
4422
5442
  }
4423
5443
  errors++;
4424
5444
  } else {
4425
5445
  if (data.kind !== void 0) {
4426
5446
  if ("state" !== data.kind) {
4427
- const err8 = {};
5447
+ const err9 = {};
4428
5448
  if (vErrors === null) {
4429
- vErrors = [err8];
5449
+ vErrors = [err9];
4430
5450
  } else {
4431
- vErrors.push(err8);
5451
+ vErrors.push(err9);
4432
5452
  }
4433
5453
  errors++;
4434
5454
  }
4435
5455
  }
4436
5456
  }
4437
5457
  }
4438
- var _valid1 = _errs19 === errors;
4439
- errors = _errs18;
5458
+ var _valid1 = _errs22 === errors;
5459
+ errors = _errs21;
4440
5460
  if (vErrors !== null) {
4441
- if (_errs18) {
4442
- vErrors.length = _errs18;
5461
+ if (_errs21) {
5462
+ vErrors.length = _errs21;
4443
5463
  } else {
4444
5464
  vErrors = null;
4445
5465
  }
4446
5466
  }
4447
5467
  let ifClause1;
4448
5468
  if (_valid1) {
4449
- const _errs21 = errors;
5469
+ const _errs24 = errors;
4450
5470
  if (data && typeof data == "object" && !Array.isArray(data)) {
4451
5471
  if (data.boxes !== void 0) {
4452
- let data8 = data.boxes;
4453
- if (Array.isArray(data8)) {
4454
- if (data8.length < 1) {
4455
- const err9 = { instancePath: instancePath + "/boxes", schemaPath: "#/else/then/properties/boxes/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
5472
+ let data9 = data.boxes;
5473
+ if (Array.isArray(data9)) {
5474
+ if (data9.length < 1) {
5475
+ const err10 = { instancePath: instancePath + "/boxes", schemaPath: "#/else/then/properties/boxes/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
4456
5476
  if (vErrors === null) {
4457
- vErrors = [err9];
5477
+ vErrors = [err10];
4458
5478
  } else {
4459
- vErrors.push(err9);
5479
+ vErrors.push(err10);
4460
5480
  }
4461
5481
  errors++;
4462
5482
  }
4463
- const len0 = data8.length;
5483
+ const len0 = data9.length;
4464
5484
  for (let i0 = 0; i0 < len0; i0++) {
4465
- let data9 = data8[i0];
4466
- if (data9 && typeof data9 == "object" && !Array.isArray(data9)) {
4467
- if (data9.id !== void 0) {
4468
- let data10 = data9.id;
4469
- const _errs25 = errors;
4470
- const _errs26 = errors;
4471
- if (!(data10 === "start" || data10 === "finish")) {
4472
- const err10 = {};
5485
+ let data10 = data9[i0];
5486
+ if (data10 && typeof data10 == "object" && !Array.isArray(data10)) {
5487
+ if (data10.id !== void 0) {
5488
+ let data11 = data10.id;
5489
+ const _errs28 = errors;
5490
+ const _errs29 = errors;
5491
+ if (!(data11 === "start" || data11 === "finish")) {
5492
+ const err11 = {};
4473
5493
  if (vErrors === null) {
4474
- vErrors = [err10];
5494
+ vErrors = [err11];
4475
5495
  } else {
4476
- vErrors.push(err10);
5496
+ vErrors.push(err11);
4477
5497
  }
4478
5498
  errors++;
4479
5499
  }
4480
- var valid12 = _errs26 === errors;
4481
- if (valid12) {
4482
- const err11 = { instancePath: instancePath + "/boxes/" + i0 + "/id", schemaPath: "#/else/then/properties/boxes/items/properties/id/not", keyword: "not", params: {}, message: "must NOT be valid" };
5500
+ var valid13 = _errs29 === errors;
5501
+ if (valid13) {
5502
+ const err12 = { instancePath: instancePath + "/boxes/" + i0 + "/id", schemaPath: "#/else/then/properties/boxes/items/properties/id/not", keyword: "not", params: {}, message: "must NOT be valid" };
4483
5503
  if (vErrors === null) {
4484
- vErrors = [err11];
5504
+ vErrors = [err12];
4485
5505
  } else {
4486
- vErrors.push(err11);
5506
+ vErrors.push(err12);
4487
5507
  }
4488
5508
  errors++;
4489
5509
  } else {
4490
- errors = _errs25;
5510
+ errors = _errs28;
4491
5511
  if (vErrors !== null) {
4492
- if (_errs25) {
4493
- vErrors.length = _errs25;
5512
+ if (_errs28) {
5513
+ vErrors.length = _errs28;
4494
5514
  } else {
4495
5515
  vErrors = null;
4496
5516
  }
@@ -4514,74 +5534,83 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
4514
5534
  }
4515
5535
  }
4516
5536
  if (data.git !== void 0) {
4517
- const err12 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5537
+ const err13 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4518
5538
  if (vErrors === null) {
4519
- vErrors = [err12];
5539
+ vErrors = [err13];
4520
5540
  } else {
4521
- vErrors.push(err12);
5541
+ vErrors.push(err13);
4522
5542
  }
4523
5543
  errors++;
4524
5544
  }
4525
5545
  if (data.time !== void 0) {
4526
- const err13 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5546
+ const err14 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4527
5547
  if (vErrors === null) {
4528
- vErrors = [err13];
5548
+ vErrors = [err14];
4529
5549
  } else {
4530
- vErrors.push(err13);
5550
+ vErrors.push(err14);
5551
+ }
5552
+ errors++;
5553
+ }
5554
+ if (data.lineup !== void 0) {
5555
+ const err15 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5556
+ if (vErrors === null) {
5557
+ vErrors = [err15];
5558
+ } else {
5559
+ vErrors.push(err15);
4531
5560
  }
4532
5561
  errors++;
4533
5562
  }
4534
5563
  }
4535
- var _valid1 = _errs21 === errors;
4536
- valid6 = _valid1;
5564
+ var _valid1 = _errs24 === errors;
5565
+ valid7 = _valid1;
4537
5566
  ifClause1 = "then";
4538
5567
  } else {
4539
- const _errs35 = errors;
4540
- const _errs36 = errors;
4541
- let valid15 = true;
4542
- const _errs37 = errors;
5568
+ const _errs41 = errors;
5569
+ const _errs42 = errors;
5570
+ let valid17 = true;
5571
+ const _errs43 = errors;
4543
5572
  if (data && typeof data == "object" && !Array.isArray(data)) {
4544
5573
  if (data.kind === void 0 && ("kind")) {
4545
- const err14 = {};
5574
+ const err16 = {};
4546
5575
  if (vErrors === null) {
4547
- vErrors = [err14];
5576
+ vErrors = [err16];
4548
5577
  } else {
4549
- vErrors.push(err14);
5578
+ vErrors.push(err16);
4550
5579
  }
4551
5580
  errors++;
4552
5581
  } else {
4553
5582
  if (data.kind !== void 0) {
4554
5583
  if ("git" !== data.kind) {
4555
- const err15 = {};
5584
+ const err17 = {};
4556
5585
  if (vErrors === null) {
4557
- vErrors = [err15];
5586
+ vErrors = [err17];
4558
5587
  } else {
4559
- vErrors.push(err15);
5588
+ vErrors.push(err17);
4560
5589
  }
4561
5590
  errors++;
4562
5591
  }
4563
5592
  }
4564
5593
  }
4565
5594
  }
4566
- var _valid2 = _errs37 === errors;
4567
- errors = _errs36;
5595
+ var _valid2 = _errs43 === errors;
5596
+ errors = _errs42;
4568
5597
  if (vErrors !== null) {
4569
- if (_errs36) {
4570
- vErrors.length = _errs36;
5598
+ if (_errs42) {
5599
+ vErrors.length = _errs42;
4571
5600
  } else {
4572
5601
  vErrors = null;
4573
5602
  }
4574
5603
  }
4575
5604
  let ifClause2;
4576
5605
  if (_valid2) {
4577
- const _errs39 = errors;
5606
+ const _errs45 = errors;
4578
5607
  if (data && typeof data == "object" && !Array.isArray(data)) {
4579
5608
  if (data.git === void 0) {
4580
- const err16 = { instancePath, schemaPath: "#/else/else/then/required", keyword: "required", params: { missingProperty: "git" }, message: "must have required property 'git'" };
5609
+ const err18 = { instancePath, schemaPath: "#/else/else/then/required", keyword: "required", params: { missingProperty: "git" }, message: "must have required property 'git'" };
4581
5610
  if (vErrors === null) {
4582
- vErrors = [err16];
5611
+ vErrors = [err18];
4583
5612
  } else {
4584
- vErrors.push(err16);
5613
+ vErrors.push(err18);
4585
5614
  }
4586
5615
  errors++;
4587
5616
  }
@@ -4598,83 +5627,92 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
4598
5627
  }
4599
5628
  }
4600
5629
  if (data.state !== void 0) {
4601
- const err17 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5630
+ const err19 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4602
5631
  if (vErrors === null) {
4603
- vErrors = [err17];
5632
+ vErrors = [err19];
4604
5633
  } else {
4605
- vErrors.push(err17);
5634
+ vErrors.push(err19);
4606
5635
  }
4607
5636
  errors++;
4608
5637
  }
4609
5638
  if (data.regions !== void 0) {
4610
- const err18 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5639
+ const err20 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4611
5640
  if (vErrors === null) {
4612
- vErrors = [err18];
5641
+ vErrors = [err20];
4613
5642
  } else {
4614
- vErrors.push(err18);
5643
+ vErrors.push(err20);
4615
5644
  }
4616
5645
  errors++;
4617
5646
  }
4618
5647
  if (data.time !== void 0) {
4619
- const err19 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5648
+ const err21 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4620
5649
  if (vErrors === null) {
4621
- vErrors = [err19];
5650
+ vErrors = [err21];
4622
5651
  } else {
4623
- vErrors.push(err19);
5652
+ vErrors.push(err21);
5653
+ }
5654
+ errors++;
5655
+ }
5656
+ if (data.lineup !== void 0) {
5657
+ const err22 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5658
+ if (vErrors === null) {
5659
+ vErrors = [err22];
5660
+ } else {
5661
+ vErrors.push(err22);
4624
5662
  }
4625
5663
  errors++;
4626
5664
  }
4627
5665
  }
4628
- var _valid2 = _errs39 === errors;
4629
- valid15 = _valid2;
5666
+ var _valid2 = _errs45 === errors;
5667
+ valid17 = _valid2;
4630
5668
  ifClause2 = "then";
4631
5669
  } else {
4632
- const _errs51 = errors;
4633
- const _errs52 = errors;
4634
- let valid21 = true;
4635
- const _errs53 = errors;
5670
+ const _errs60 = errors;
5671
+ const _errs61 = errors;
5672
+ let valid24 = true;
5673
+ const _errs62 = errors;
4636
5674
  if (data && typeof data == "object" && !Array.isArray(data)) {
4637
5675
  if (data.kind === void 0 && ("kind")) {
4638
- const err20 = {};
5676
+ const err23 = {};
4639
5677
  if (vErrors === null) {
4640
- vErrors = [err20];
5678
+ vErrors = [err23];
4641
5679
  } else {
4642
- vErrors.push(err20);
5680
+ vErrors.push(err23);
4643
5681
  }
4644
5682
  errors++;
4645
5683
  } else {
4646
5684
  if (data.kind !== void 0) {
4647
5685
  if ("time" !== data.kind) {
4648
- const err21 = {};
5686
+ const err24 = {};
4649
5687
  if (vErrors === null) {
4650
- vErrors = [err21];
5688
+ vErrors = [err24];
4651
5689
  } else {
4652
- vErrors.push(err21);
5690
+ vErrors.push(err24);
4653
5691
  }
4654
5692
  errors++;
4655
5693
  }
4656
5694
  }
4657
5695
  }
4658
5696
  }
4659
- var _valid3 = _errs53 === errors;
4660
- errors = _errs52;
5697
+ var _valid3 = _errs62 === errors;
5698
+ errors = _errs61;
4661
5699
  if (vErrors !== null) {
4662
- if (_errs52) {
4663
- vErrors.length = _errs52;
5700
+ if (_errs61) {
5701
+ vErrors.length = _errs61;
4664
5702
  } else {
4665
5703
  vErrors = null;
4666
5704
  }
4667
5705
  }
4668
5706
  let ifClause3;
4669
5707
  if (_valid3) {
4670
- const _errs55 = errors;
5708
+ const _errs64 = errors;
4671
5709
  if (data && typeof data == "object" && !Array.isArray(data)) {
4672
5710
  if (data.time === void 0) {
4673
- const err22 = { instancePath, schemaPath: "#/else/else/else/then/required", keyword: "required", params: { missingProperty: "time" }, message: "must have required property 'time'" };
5711
+ const err25 = { instancePath, schemaPath: "#/else/else/else/then/required", keyword: "required", params: { missingProperty: "time" }, message: "must have required property 'time'" };
4674
5712
  if (vErrors === null) {
4675
- vErrors = [err22];
5713
+ vErrors = [err25];
4676
5714
  } else {
4677
- vErrors.push(err22);
5715
+ vErrors.push(err25);
4678
5716
  }
4679
5717
  errors++;
4680
5718
  }
@@ -4685,76 +5723,85 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
4685
5723
  }
4686
5724
  }
4687
5725
  if (data.state !== void 0) {
4688
- const err23 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5726
+ const err26 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4689
5727
  if (vErrors === null) {
4690
- vErrors = [err23];
5728
+ vErrors = [err26];
4691
5729
  } else {
4692
- vErrors.push(err23);
5730
+ vErrors.push(err26);
4693
5731
  }
4694
5732
  errors++;
4695
5733
  }
4696
5734
  if (data.git !== void 0) {
4697
- const err24 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5735
+ const err27 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4698
5736
  if (vErrors === null) {
4699
- vErrors = [err24];
5737
+ vErrors = [err27];
4700
5738
  } else {
4701
- vErrors.push(err24);
5739
+ vErrors.push(err27);
4702
5740
  }
4703
5741
  errors++;
4704
5742
  }
4705
5743
  if (data.regions !== void 0) {
4706
- const err25 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5744
+ const err28 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4707
5745
  if (vErrors === null) {
4708
- vErrors = [err25];
5746
+ vErrors = [err28];
4709
5747
  } else {
4710
- vErrors.push(err25);
5748
+ vErrors.push(err28);
5749
+ }
5750
+ errors++;
5751
+ }
5752
+ if (data.lineup !== void 0) {
5753
+ const err29 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5754
+ if (vErrors === null) {
5755
+ vErrors = [err29];
5756
+ } else {
5757
+ vErrors.push(err29);
4711
5758
  }
4712
5759
  errors++;
4713
5760
  }
4714
5761
  }
4715
- var _valid3 = _errs55 === errors;
4716
- valid21 = _valid3;
5762
+ var _valid3 = _errs64 === errors;
5763
+ valid24 = _valid3;
4717
5764
  ifClause3 = "then";
4718
5765
  } else {
4719
- const _errs66 = errors;
4720
- const _errs67 = errors;
4721
- let valid27 = true;
4722
- const _errs68 = errors;
5766
+ const _errs78 = errors;
5767
+ const _errs79 = errors;
5768
+ let valid31 = true;
5769
+ const _errs80 = errors;
4723
5770
  if (data && typeof data == "object" && !Array.isArray(data)) {
4724
5771
  if (data.kind === void 0 && ("kind")) {
4725
- const err26 = {};
5772
+ const err30 = {};
4726
5773
  if (vErrors === null) {
4727
- vErrors = [err26];
5774
+ vErrors = [err30];
4728
5775
  } else {
4729
- vErrors.push(err26);
5776
+ vErrors.push(err30);
4730
5777
  }
4731
5778
  errors++;
4732
5779
  } else {
4733
5780
  if (data.kind !== void 0) {
4734
5781
  if ("tree" !== data.kind) {
4735
- const err27 = {};
5782
+ const err31 = {};
4736
5783
  if (vErrors === null) {
4737
- vErrors = [err27];
5784
+ vErrors = [err31];
4738
5785
  } else {
4739
- vErrors.push(err27);
5786
+ vErrors.push(err31);
4740
5787
  }
4741
5788
  errors++;
4742
5789
  }
4743
5790
  }
4744
5791
  }
4745
5792
  }
4746
- var _valid4 = _errs68 === errors;
4747
- errors = _errs67;
5793
+ var _valid4 = _errs80 === errors;
5794
+ errors = _errs79;
4748
5795
  if (vErrors !== null) {
4749
- if (_errs67) {
4750
- vErrors.length = _errs67;
5796
+ if (_errs79) {
5797
+ vErrors.length = _errs79;
4751
5798
  } else {
4752
5799
  vErrors = null;
4753
5800
  }
4754
5801
  }
4755
5802
  let ifClause4;
4756
5803
  if (_valid4) {
4757
- const _errs70 = errors;
5804
+ const _errs82 = errors;
4758
5805
  if (data && typeof data == "object" && !Array.isArray(data)) {
4759
5806
  if (data.steps !== void 0) {
4760
5807
  if (!validate22(data.steps, { instancePath: instancePath + "/steps", parentData: data, parentDataProperty: "steps", rootData })) {
@@ -4769,409 +5816,595 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
4769
5816
  }
4770
5817
  }
4771
5818
  if (data.state !== void 0) {
4772
- const err28 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5819
+ const err32 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4773
5820
  if (vErrors === null) {
4774
- vErrors = [err28];
5821
+ vErrors = [err32];
4775
5822
  } else {
4776
- vErrors.push(err28);
5823
+ vErrors.push(err32);
4777
5824
  }
4778
5825
  errors++;
4779
5826
  }
4780
5827
  if (data.git !== void 0) {
4781
- const err29 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5828
+ const err33 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4782
5829
  if (vErrors === null) {
4783
- vErrors = [err29];
5830
+ vErrors = [err33];
4784
5831
  } else {
4785
- vErrors.push(err29);
5832
+ vErrors.push(err33);
4786
5833
  }
4787
5834
  errors++;
4788
5835
  }
4789
5836
  if (data.time !== void 0) {
4790
- const err30 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5837
+ const err34 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4791
5838
  if (vErrors === null) {
4792
- vErrors = [err30];
5839
+ vErrors = [err34];
4793
5840
  } else {
4794
- vErrors.push(err30);
5841
+ vErrors.push(err34);
4795
5842
  }
4796
5843
  errors++;
4797
5844
  }
4798
5845
  if (data.regions !== void 0) {
4799
- const err31 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5846
+ const err35 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5847
+ if (vErrors === null) {
5848
+ vErrors = [err35];
5849
+ } else {
5850
+ vErrors.push(err35);
5851
+ }
5852
+ errors++;
5853
+ }
5854
+ if (data.lineup !== void 0) {
5855
+ const err36 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4800
5856
  if (vErrors === null) {
4801
- vErrors = [err31];
5857
+ vErrors = [err36];
4802
5858
  } else {
4803
- vErrors.push(err31);
5859
+ vErrors.push(err36);
4804
5860
  }
4805
5861
  errors++;
4806
5862
  }
4807
5863
  }
4808
- var _valid4 = _errs70 === errors;
4809
- valid27 = _valid4;
5864
+ var _valid4 = _errs82 === errors;
5865
+ valid31 = _valid4;
4810
5866
  ifClause4 = "then";
4811
5867
  } else {
4812
- const _errs85 = errors;
5868
+ const _errs100 = errors;
5869
+ const _errs101 = errors;
5870
+ let valid39 = true;
5871
+ const _errs102 = errors;
4813
5872
  if (data && typeof data == "object" && !Array.isArray(data)) {
4814
- if (data.boxes !== void 0) {
4815
- let data33 = data.boxes;
4816
- if (Array.isArray(data33)) {
4817
- if (data33.length < 1) {
4818
- const err32 = { instancePath: instancePath + "/boxes", schemaPath: "#/else/else/else/else/else/properties/boxes/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
5873
+ if (data.kind === void 0 && ("kind")) {
5874
+ const err37 = {};
5875
+ if (vErrors === null) {
5876
+ vErrors = [err37];
5877
+ } else {
5878
+ vErrors.push(err37);
5879
+ }
5880
+ errors++;
5881
+ } else {
5882
+ if (data.kind !== void 0) {
5883
+ if ("lineup" !== data.kind) {
5884
+ const err38 = {};
4819
5885
  if (vErrors === null) {
4820
- vErrors = [err32];
5886
+ vErrors = [err38];
4821
5887
  } else {
4822
- vErrors.push(err32);
5888
+ vErrors.push(err38);
4823
5889
  }
4824
5890
  errors++;
4825
5891
  }
4826
5892
  }
4827
5893
  }
4828
- if (data.steps !== void 0) {
4829
- if (!validate11(data.steps, { instancePath: instancePath + "/steps", parentData: data, parentDataProperty: "steps", rootData })) {
4830
- vErrors = vErrors === null ? validate11.errors : vErrors.concat(validate11.errors);
4831
- errors = vErrors.length;
4832
- }
5894
+ }
5895
+ var _valid5 = _errs102 === errors;
5896
+ errors = _errs101;
5897
+ if (vErrors !== null) {
5898
+ if (_errs101) {
5899
+ vErrors.length = _errs101;
5900
+ } else {
5901
+ vErrors = null;
4833
5902
  }
4834
- if (data.strip !== void 0) {
4835
- if (!validate13(data.strip, { instancePath: instancePath + "/strip", parentData: data, parentDataProperty: "strip", rootData })) {
4836
- vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);
4837
- errors = vErrors.length;
5903
+ }
5904
+ let ifClause5;
5905
+ if (_valid5) {
5906
+ const _errs104 = errors;
5907
+ if (data && typeof data == "object" && !Array.isArray(data)) {
5908
+ if (data.lineup === void 0) {
5909
+ const err39 = { instancePath, schemaPath: "#/else/else/else/else/else/then/required", keyword: "required", params: { missingProperty: "lineup" }, message: "must have required property 'lineup'" };
5910
+ if (vErrors === null) {
5911
+ vErrors = [err39];
5912
+ } else {
5913
+ vErrors.push(err39);
5914
+ }
5915
+ errors++;
4838
5916
  }
4839
- }
4840
- if (data.state !== void 0) {
4841
- const err33 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4842
- if (vErrors === null) {
4843
- vErrors = [err33];
4844
- } else {
4845
- vErrors.push(err33);
5917
+ if (data.boxes !== void 0) {
5918
+ let data39 = data.boxes;
5919
+ if (Array.isArray(data39)) {
5920
+ if (data39.length < 1) {
5921
+ 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" };
5922
+ if (vErrors === null) {
5923
+ vErrors = [err40];
5924
+ } else {
5925
+ vErrors.push(err40);
5926
+ }
5927
+ errors++;
5928
+ }
5929
+ const len1 = data39.length;
5930
+ for (let i1 = 0; i1 < len1; i1++) {
5931
+ let data40 = data39[i1];
5932
+ if (data40 && typeof data40 == "object" && !Array.isArray(data40)) {
5933
+ if (data40.icon !== void 0) {
5934
+ const err41 = { instancePath: instancePath + "/boxes/" + i1 + "/icon", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5935
+ if (vErrors === null) {
5936
+ vErrors = [err41];
5937
+ } else {
5938
+ vErrors.push(err41);
5939
+ }
5940
+ errors++;
5941
+ }
5942
+ if (data40.link !== void 0) {
5943
+ const err42 = { instancePath: instancePath + "/boxes/" + i1 + "/link", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5944
+ if (vErrors === null) {
5945
+ vErrors = [err42];
5946
+ } else {
5947
+ vErrors.push(err42);
5948
+ }
5949
+ errors++;
5950
+ }
5951
+ if (data40.region !== void 0) {
5952
+ const err43 = { instancePath: instancePath + "/boxes/" + i1 + "/region", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5953
+ if (vErrors === null) {
5954
+ vErrors = [err43];
5955
+ } else {
5956
+ vErrors.push(err43);
5957
+ }
5958
+ errors++;
5959
+ }
5960
+ }
5961
+ }
5962
+ }
4846
5963
  }
4847
- errors++;
4848
- }
4849
- if (data.git !== void 0) {
4850
- const err34 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4851
- if (vErrors === null) {
4852
- vErrors = [err34];
4853
- } else {
4854
- vErrors.push(err34);
5964
+ if (data.steps !== void 0) {
5965
+ if (!validate25(data.steps, { instancePath: instancePath + "/steps", parentData: data, parentDataProperty: "steps", rootData })) {
5966
+ vErrors = vErrors === null ? validate25.errors : vErrors.concat(validate25.errors);
5967
+ errors = vErrors.length;
5968
+ }
5969
+ }
5970
+ if (data.strip !== void 0) {
5971
+ if (!validate13(data.strip, { instancePath: instancePath + "/strip", parentData: data, parentDataProperty: "strip", rootData })) {
5972
+ vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);
5973
+ errors = vErrors.length;
5974
+ }
5975
+ }
5976
+ if (data.state !== void 0) {
5977
+ const err44 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5978
+ if (vErrors === null) {
5979
+ vErrors = [err44];
5980
+ } else {
5981
+ vErrors.push(err44);
5982
+ }
5983
+ errors++;
5984
+ }
5985
+ if (data.git !== void 0) {
5986
+ const err45 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5987
+ if (vErrors === null) {
5988
+ vErrors = [err45];
5989
+ } else {
5990
+ vErrors.push(err45);
5991
+ }
5992
+ errors++;
5993
+ }
5994
+ if (data.time !== void 0) {
5995
+ const err46 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
5996
+ if (vErrors === null) {
5997
+ vErrors = [err46];
5998
+ } else {
5999
+ vErrors.push(err46);
6000
+ }
6001
+ errors++;
6002
+ }
6003
+ if (data.regions !== void 0) {
6004
+ const err47 = { instancePath: instancePath + "/regions", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
6005
+ if (vErrors === null) {
6006
+ vErrors = [err47];
6007
+ } else {
6008
+ vErrors.push(err47);
6009
+ }
6010
+ errors++;
4855
6011
  }
4856
- errors++;
4857
6012
  }
4858
- if (data.time !== void 0) {
4859
- const err35 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4860
- if (vErrors === null) {
4861
- vErrors = [err35];
4862
- } else {
4863
- vErrors.push(err35);
6013
+ var _valid5 = _errs104 === errors;
6014
+ valid39 = _valid5;
6015
+ ifClause5 = "then";
6016
+ } else {
6017
+ const _errs130 = errors;
6018
+ if (data && typeof data == "object" && !Array.isArray(data)) {
6019
+ if (data.boxes !== void 0) {
6020
+ let data50 = data.boxes;
6021
+ if (Array.isArray(data50)) {
6022
+ if (data50.length < 1) {
6023
+ 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" };
6024
+ if (vErrors === null) {
6025
+ vErrors = [err48];
6026
+ } else {
6027
+ vErrors.push(err48);
6028
+ }
6029
+ errors++;
6030
+ }
6031
+ }
4864
6032
  }
4865
- errors++;
6033
+ if (data.steps !== void 0) {
6034
+ if (!validate11(data.steps, { instancePath: instancePath + "/steps", parentData: data, parentDataProperty: "steps", rootData })) {
6035
+ vErrors = vErrors === null ? validate11.errors : vErrors.concat(validate11.errors);
6036
+ errors = vErrors.length;
6037
+ }
6038
+ }
6039
+ if (data.strip !== void 0) {
6040
+ if (!validate13(data.strip, { instancePath: instancePath + "/strip", parentData: data, parentDataProperty: "strip", rootData })) {
6041
+ vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);
6042
+ errors = vErrors.length;
6043
+ }
6044
+ }
6045
+ if (data.state !== void 0) {
6046
+ const err49 = { instancePath: instancePath + "/state", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
6047
+ if (vErrors === null) {
6048
+ vErrors = [err49];
6049
+ } else {
6050
+ vErrors.push(err49);
6051
+ }
6052
+ errors++;
6053
+ }
6054
+ if (data.git !== void 0) {
6055
+ const err50 = { instancePath: instancePath + "/git", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
6056
+ if (vErrors === null) {
6057
+ vErrors = [err50];
6058
+ } else {
6059
+ vErrors.push(err50);
6060
+ }
6061
+ errors++;
6062
+ }
6063
+ if (data.time !== void 0) {
6064
+ const err51 = { instancePath: instancePath + "/time", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
6065
+ if (vErrors === null) {
6066
+ vErrors = [err51];
6067
+ } else {
6068
+ vErrors.push(err51);
6069
+ }
6070
+ errors++;
6071
+ }
6072
+ if (data.lineup !== void 0) {
6073
+ const err52 = { instancePath: instancePath + "/lineup", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
6074
+ if (vErrors === null) {
6075
+ vErrors = [err52];
6076
+ } else {
6077
+ vErrors.push(err52);
6078
+ }
6079
+ errors++;
6080
+ }
6081
+ }
6082
+ var _valid5 = _errs130 === errors;
6083
+ valid39 = _valid5;
6084
+ ifClause5 = "else";
6085
+ }
6086
+ if (!valid39) {
6087
+ const err53 = { instancePath, schemaPath: "#/else/else/else/else/else/if", keyword: "if", params: { failingKeyword: ifClause5 }, message: 'must match "' + ifClause5 + '" schema' };
6088
+ if (vErrors === null) {
6089
+ vErrors = [err53];
6090
+ } else {
6091
+ vErrors.push(err53);
4866
6092
  }
6093
+ errors++;
4867
6094
  }
4868
- var _valid4 = _errs85 === errors;
4869
- valid27 = _valid4;
6095
+ var _valid4 = _errs100 === errors;
6096
+ valid31 = _valid4;
4870
6097
  ifClause4 = "else";
4871
6098
  }
4872
- if (!valid27) {
4873
- const err36 = { instancePath, schemaPath: "#/else/else/else/else/if", keyword: "if", params: { failingKeyword: ifClause4 }, message: 'must match "' + ifClause4 + '" schema' };
6099
+ if (!valid31) {
6100
+ const err54 = { instancePath, schemaPath: "#/else/else/else/else/if", keyword: "if", params: { failingKeyword: ifClause4 }, message: 'must match "' + ifClause4 + '" schema' };
4874
6101
  if (vErrors === null) {
4875
- vErrors = [err36];
6102
+ vErrors = [err54];
4876
6103
  } else {
4877
- vErrors.push(err36);
6104
+ vErrors.push(err54);
4878
6105
  }
4879
6106
  errors++;
4880
6107
  }
4881
- var _valid3 = _errs66 === errors;
4882
- valid21 = _valid3;
6108
+ var _valid3 = _errs78 === errors;
6109
+ valid24 = _valid3;
4883
6110
  ifClause3 = "else";
4884
6111
  }
4885
- if (!valid21) {
4886
- const err37 = { instancePath, schemaPath: "#/else/else/else/if", keyword: "if", params: { failingKeyword: ifClause3 }, message: 'must match "' + ifClause3 + '" schema' };
6112
+ if (!valid24) {
6113
+ const err55 = { instancePath, schemaPath: "#/else/else/else/if", keyword: "if", params: { failingKeyword: ifClause3 }, message: 'must match "' + ifClause3 + '" schema' };
4887
6114
  if (vErrors === null) {
4888
- vErrors = [err37];
6115
+ vErrors = [err55];
4889
6116
  } else {
4890
- vErrors.push(err37);
6117
+ vErrors.push(err55);
4891
6118
  }
4892
6119
  errors++;
4893
6120
  }
4894
- var _valid2 = _errs51 === errors;
4895
- valid15 = _valid2;
6121
+ var _valid2 = _errs60 === errors;
6122
+ valid17 = _valid2;
4896
6123
  ifClause2 = "else";
4897
6124
  }
4898
- if (!valid15) {
4899
- const err38 = { instancePath, schemaPath: "#/else/else/if", keyword: "if", params: { failingKeyword: ifClause2 }, message: 'must match "' + ifClause2 + '" schema' };
6125
+ if (!valid17) {
6126
+ const err56 = { instancePath, schemaPath: "#/else/else/if", keyword: "if", params: { failingKeyword: ifClause2 }, message: 'must match "' + ifClause2 + '" schema' };
4900
6127
  if (vErrors === null) {
4901
- vErrors = [err38];
6128
+ vErrors = [err56];
4902
6129
  } else {
4903
- vErrors.push(err38);
6130
+ vErrors.push(err56);
4904
6131
  }
4905
6132
  errors++;
4906
6133
  }
4907
- var _valid1 = _errs35 === errors;
4908
- valid6 = _valid1;
6134
+ var _valid1 = _errs41 === errors;
6135
+ valid7 = _valid1;
4909
6136
  ifClause1 = "else";
4910
6137
  }
4911
- if (!valid6) {
4912
- const err39 = { instancePath, schemaPath: "#/else/if", keyword: "if", params: { failingKeyword: ifClause1 }, message: 'must match "' + ifClause1 + '" schema' };
6138
+ if (!valid7) {
6139
+ const err57 = { instancePath, schemaPath: "#/else/if", keyword: "if", params: { failingKeyword: ifClause1 }, message: 'must match "' + ifClause1 + '" schema' };
4913
6140
  if (vErrors === null) {
4914
- vErrors = [err39];
6141
+ vErrors = [err57];
4915
6142
  } else {
4916
- vErrors.push(err39);
6143
+ vErrors.push(err57);
4917
6144
  }
4918
6145
  errors++;
4919
6146
  }
4920
6147
  if (data && typeof data == "object" && !Array.isArray(data)) {
4921
6148
  if (data.sequence !== void 0) {
4922
- const err40 = { instancePath: instancePath + "/sequence", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
6149
+ const err58 = { instancePath: instancePath + "/sequence", schemaPath: "#/definitions/absent/not", keyword: "not", params: {}, message: "must NOT be valid" };
4923
6150
  if (vErrors === null) {
4924
- vErrors = [err40];
6151
+ vErrors = [err58];
4925
6152
  } else {
4926
- vErrors.push(err40);
6153
+ vErrors.push(err58);
4927
6154
  }
4928
6155
  errors++;
4929
6156
  }
4930
6157
  }
4931
- var _valid0 = _errs17 === errors;
6158
+ var _valid0 = _errs20 === errors;
4932
6159
  valid0 = _valid0;
4933
6160
  ifClause0 = "else";
4934
6161
  }
4935
6162
  if (!valid0) {
4936
- const err41 = { instancePath, schemaPath: "#/if", keyword: "if", params: { failingKeyword: ifClause0 }, message: 'must match "' + ifClause0 + '" schema' };
6163
+ const err59 = { instancePath, schemaPath: "#/if", keyword: "if", params: { failingKeyword: ifClause0 }, message: 'must match "' + ifClause0 + '" schema' };
4937
6164
  if (vErrors === null) {
4938
- vErrors = [err41];
6165
+ vErrors = [err59];
4939
6166
  } else {
4940
- vErrors.push(err41);
6167
+ vErrors.push(err59);
4941
6168
  }
4942
6169
  errors++;
4943
6170
  }
4944
6171
  if (data && typeof data == "object" && !Array.isArray(data)) {
4945
6172
  if (data.version === void 0) {
4946
- const err42 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "version" }, message: "must have required property 'version'" };
6173
+ const err60 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "version" }, message: "must have required property 'version'" };
4947
6174
  if (vErrors === null) {
4948
- vErrors = [err42];
6175
+ vErrors = [err60];
4949
6176
  } else {
4950
- vErrors.push(err42);
6177
+ vErrors.push(err60);
4951
6178
  }
4952
6179
  errors++;
4953
6180
  }
4954
6181
  if (data.kind === void 0) {
4955
- const err43 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "kind" }, message: "must have required property 'kind'" };
6182
+ const err61 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "kind" }, message: "must have required property 'kind'" };
4956
6183
  if (vErrors === null) {
4957
- vErrors = [err43];
6184
+ vErrors = [err61];
4958
6185
  } else {
4959
- vErrors.push(err43);
6186
+ vErrors.push(err61);
4960
6187
  }
4961
6188
  errors++;
4962
6189
  }
4963
6190
  if (data.title === void 0) {
4964
- const err44 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "title" }, message: "must have required property 'title'" };
6191
+ const err62 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "title" }, message: "must have required property 'title'" };
4965
6192
  if (vErrors === null) {
4966
- vErrors = [err44];
6193
+ vErrors = [err62];
4967
6194
  } else {
4968
- vErrors.push(err44);
6195
+ vErrors.push(err62);
4969
6196
  }
4970
6197
  errors++;
4971
6198
  }
4972
6199
  if (data.boxes === void 0) {
4973
- const err45 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "boxes" }, message: "must have required property 'boxes'" };
6200
+ const err63 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "boxes" }, message: "must have required property 'boxes'" };
4974
6201
  if (vErrors === null) {
4975
- vErrors = [err45];
6202
+ vErrors = [err63];
4976
6203
  } else {
4977
- vErrors.push(err45);
6204
+ vErrors.push(err63);
4978
6205
  }
4979
6206
  errors++;
4980
6207
  }
4981
6208
  if (data.steps === void 0) {
4982
- const err46 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "steps" }, message: "must have required property 'steps'" };
6209
+ const err64 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "steps" }, message: "must have required property 'steps'" };
4983
6210
  if (vErrors === null) {
4984
- vErrors = [err46];
6211
+ vErrors = [err64];
4985
6212
  } else {
4986
- vErrors.push(err46);
6213
+ vErrors.push(err64);
4987
6214
  }
4988
6215
  errors++;
4989
6216
  }
4990
6217
  for (const key0 in data) {
4991
6218
  if (!func2.call(schema11.properties, key0)) {
4992
- const err47 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
6219
+ const err65 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
4993
6220
  if (vErrors === null) {
4994
- vErrors = [err47];
6221
+ vErrors = [err65];
4995
6222
  } else {
4996
- vErrors.push(err47);
6223
+ vErrors.push(err65);
4997
6224
  }
4998
6225
  errors++;
4999
6226
  }
5000
6227
  }
5001
6228
  if (data.version !== void 0) {
5002
- let data40 = data.version;
5003
- if (!(typeof data40 == "number" && (!(data40 % 1) && !isNaN(data40)) && isFinite(data40))) {
5004
- const err48 = { instancePath: instancePath + "/version", schemaPath: "#/properties/version/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
6229
+ let data58 = data.version;
6230
+ if (!(typeof data58 == "number" && (!(data58 % 1) && !isNaN(data58)) && isFinite(data58))) {
6231
+ const err66 = { instancePath: instancePath + "/version", schemaPath: "#/properties/version/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
5005
6232
  if (vErrors === null) {
5006
- vErrors = [err48];
6233
+ vErrors = [err66];
5007
6234
  } else {
5008
- vErrors.push(err48);
6235
+ vErrors.push(err66);
5009
6236
  }
5010
6237
  errors++;
5011
6238
  }
5012
- if (typeof data40 == "number" && isFinite(data40)) {
5013
- if (data40 < 1 || isNaN(data40)) {
5014
- const err49 = { instancePath: instancePath + "/version", schemaPath: "#/properties/version/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" };
6239
+ if (typeof data58 == "number" && isFinite(data58)) {
6240
+ if (data58 < 1 || isNaN(data58)) {
6241
+ const err67 = { instancePath: instancePath + "/version", schemaPath: "#/properties/version/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" };
5015
6242
  if (vErrors === null) {
5016
- vErrors = [err49];
6243
+ vErrors = [err67];
5017
6244
  } else {
5018
- vErrors.push(err49);
6245
+ vErrors.push(err67);
5019
6246
  }
5020
6247
  errors++;
5021
6248
  }
5022
6249
  }
5023
6250
  }
5024
6251
  if (data.kind !== void 0) {
5025
- let data41 = data.kind;
5026
- if (!(data41 === "sequence" || data41 === "architecture" || data41 === "state" || data41 === "git" || data41 === "time" || data41 === "tree")) {
5027
- const err50 = { 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" };
6252
+ let data59 = data.kind;
6253
+ if (!(data59 === "sequence" || data59 === "architecture" || data59 === "state" || data59 === "git" || data59 === "time" || data59 === "tree" || data59 === "lineup")) {
6254
+ 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" };
5028
6255
  if (vErrors === null) {
5029
- vErrors = [err50];
6256
+ vErrors = [err68];
5030
6257
  } else {
5031
- vErrors.push(err50);
6258
+ vErrors.push(err68);
5032
6259
  }
5033
6260
  errors++;
5034
6261
  }
5035
6262
  }
5036
6263
  if (data.title !== void 0) {
5037
- let data42 = data.title;
5038
- if (typeof data42 === "string") {
5039
- if (func3(data42) < 1) {
5040
- const err51 = { instancePath: instancePath + "/title", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
6264
+ let data60 = data.title;
6265
+ if (typeof data60 === "string") {
6266
+ if (func3(data60) < 1) {
6267
+ const err69 = { instancePath: instancePath + "/title", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
5041
6268
  if (vErrors === null) {
5042
- vErrors = [err51];
6269
+ vErrors = [err69];
5043
6270
  } else {
5044
- vErrors.push(err51);
6271
+ vErrors.push(err69);
5045
6272
  }
5046
6273
  errors++;
5047
6274
  }
5048
6275
  } else {
5049
- const err52 = { instancePath: instancePath + "/title", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
6276
+ const err70 = { instancePath: instancePath + "/title", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
5050
6277
  if (vErrors === null) {
5051
- vErrors = [err52];
6278
+ vErrors = [err70];
5052
6279
  } else {
5053
- vErrors.push(err52);
6280
+ vErrors.push(err70);
5054
6281
  }
5055
6282
  errors++;
5056
6283
  }
5057
6284
  }
5058
6285
  if (data.view !== void 0) {
5059
- let data43 = data.view;
5060
- if (!(data43 === "fixed" || data43 === "follow")) {
5061
- const err53 = { 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" };
6286
+ let data61 = data.view;
6287
+ if (!(data61 === "fixed" || data61 === "follow")) {
6288
+ 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" };
5062
6289
  if (vErrors === null) {
5063
- vErrors = [err53];
6290
+ vErrors = [err71];
5064
6291
  } else {
5065
- vErrors.push(err53);
6292
+ vErrors.push(err71);
5066
6293
  }
5067
6294
  errors++;
5068
6295
  }
5069
6296
  }
5070
6297
  if (data.regions !== void 0) {
5071
- let data44 = data.regions;
5072
- if (Array.isArray(data44)) {
5073
- const len1 = data44.length;
5074
- for (let i1 = 0; i1 < len1; i1++) {
5075
- if (!validate27(data44[i1], { instancePath: instancePath + "/regions/" + i1, parentData: data44, parentDataProperty: i1, rootData })) {
5076
- vErrors = vErrors === null ? validate27.errors : vErrors.concat(validate27.errors);
6298
+ let data62 = data.regions;
6299
+ if (Array.isArray(data62)) {
6300
+ const len2 = data62.length;
6301
+ for (let i2 = 0; i2 < len2; i2++) {
6302
+ if (!validate30(data62[i2], { instancePath: instancePath + "/regions/" + i2, parentData: data62, parentDataProperty: i2, rootData })) {
6303
+ vErrors = vErrors === null ? validate30.errors : vErrors.concat(validate30.errors);
5077
6304
  errors = vErrors.length;
5078
6305
  }
5079
6306
  }
5080
6307
  } else {
5081
- const err54 = { instancePath: instancePath + "/regions", schemaPath: "#/properties/regions/type", keyword: "type", params: { type: "array" }, message: "must be array" };
6308
+ const err72 = { instancePath: instancePath + "/regions", schemaPath: "#/properties/regions/type", keyword: "type", params: { type: "array" }, message: "must be array" };
5082
6309
  if (vErrors === null) {
5083
- vErrors = [err54];
6310
+ vErrors = [err72];
5084
6311
  } else {
5085
- vErrors.push(err54);
6312
+ vErrors.push(err72);
5086
6313
  }
5087
6314
  errors++;
5088
6315
  }
5089
6316
  }
5090
6317
  if (data.boxes !== void 0) {
5091
- let data46 = data.boxes;
5092
- if (Array.isArray(data46)) {
5093
- const len2 = data46.length;
5094
- for (let i2 = 0; i2 < len2; i2++) {
5095
- if (!validate29(data46[i2], { instancePath: instancePath + "/boxes/" + i2, parentData: data46, parentDataProperty: i2, rootData })) {
5096
- vErrors = vErrors === null ? validate29.errors : vErrors.concat(validate29.errors);
6318
+ let data64 = data.boxes;
6319
+ if (Array.isArray(data64)) {
6320
+ const len3 = data64.length;
6321
+ for (let i3 = 0; i3 < len3; i3++) {
6322
+ if (!validate32(data64[i3], { instancePath: instancePath + "/boxes/" + i3, parentData: data64, parentDataProperty: i3, rootData })) {
6323
+ vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);
5097
6324
  errors = vErrors.length;
5098
6325
  }
5099
6326
  }
5100
6327
  } else {
5101
- const err55 = { instancePath: instancePath + "/boxes", schemaPath: "#/properties/boxes/type", keyword: "type", params: { type: "array" }, message: "must be array" };
6328
+ const err73 = { instancePath: instancePath + "/boxes", schemaPath: "#/properties/boxes/type", keyword: "type", params: { type: "array" }, message: "must be array" };
5102
6329
  if (vErrors === null) {
5103
- vErrors = [err55];
6330
+ vErrors = [err73];
5104
6331
  } else {
5105
- vErrors.push(err55);
6332
+ vErrors.push(err73);
5106
6333
  }
5107
6334
  errors++;
5108
6335
  }
5109
6336
  }
5110
6337
  if (data.strip !== void 0) {
5111
- if (!validate31(data.strip, { instancePath: instancePath + "/strip", parentData: data, parentDataProperty: "strip", rootData })) {
5112
- vErrors = vErrors === null ? validate31.errors : vErrors.concat(validate31.errors);
6338
+ if (!validate34(data.strip, { instancePath: instancePath + "/strip", parentData: data, parentDataProperty: "strip", rootData })) {
6339
+ vErrors = vErrors === null ? validate34.errors : vErrors.concat(validate34.errors);
5113
6340
  errors = vErrors.length;
5114
6341
  }
5115
6342
  }
5116
6343
  if (data.steps !== void 0) {
5117
- let data49 = data.steps;
5118
- if (Array.isArray(data49)) {
5119
- if (data49.length < 1) {
5120
- const err56 = { instancePath: instancePath + "/steps", schemaPath: "#/properties/steps/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
6344
+ let data67 = data.steps;
6345
+ if (Array.isArray(data67)) {
6346
+ if (data67.length < 1) {
6347
+ const err74 = { instancePath: instancePath + "/steps", schemaPath: "#/properties/steps/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
5121
6348
  if (vErrors === null) {
5122
- vErrors = [err56];
6349
+ vErrors = [err74];
5123
6350
  } else {
5124
- vErrors.push(err56);
6351
+ vErrors.push(err74);
5125
6352
  }
5126
6353
  errors++;
5127
6354
  }
5128
- const len3 = data49.length;
5129
- for (let i3 = 0; i3 < len3; i3++) {
5130
- if (!validate35(data49[i3], { instancePath: instancePath + "/steps/" + i3, parentData: data49, parentDataProperty: i3, rootData })) {
5131
- vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
6355
+ const len4 = data67.length;
6356
+ for (let i4 = 0; i4 < len4; i4++) {
6357
+ if (!validate38(data67[i4], { instancePath: instancePath + "/steps/" + i4, parentData: data67, parentDataProperty: i4, rootData })) {
6358
+ vErrors = vErrors === null ? validate38.errors : vErrors.concat(validate38.errors);
5132
6359
  errors = vErrors.length;
5133
6360
  }
5134
6361
  }
5135
6362
  } else {
5136
- const err57 = { instancePath: instancePath + "/steps", schemaPath: "#/properties/steps/type", keyword: "type", params: { type: "array" }, message: "must be array" };
6363
+ const err75 = { instancePath: instancePath + "/steps", schemaPath: "#/properties/steps/type", keyword: "type", params: { type: "array" }, message: "must be array" };
5137
6364
  if (vErrors === null) {
5138
- vErrors = [err57];
6365
+ vErrors = [err75];
5139
6366
  } else {
5140
- vErrors.push(err57);
6367
+ vErrors.push(err75);
5141
6368
  }
5142
6369
  errors++;
5143
6370
  }
5144
6371
  }
5145
6372
  if (data.sequence !== void 0) {
5146
- if (!validate43(data.sequence, { instancePath: instancePath + "/sequence", parentData: data, parentDataProperty: "sequence", rootData })) {
5147
- vErrors = vErrors === null ? validate43.errors : vErrors.concat(validate43.errors);
6373
+ if (!validate46(data.sequence, { instancePath: instancePath + "/sequence", parentData: data, parentDataProperty: "sequence", rootData })) {
6374
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
5148
6375
  errors = vErrors.length;
5149
6376
  }
5150
6377
  }
5151
6378
  if (data.state !== void 0) {
5152
- if (!validate45(data.state, { instancePath: instancePath + "/state", parentData: data, parentDataProperty: "state", rootData })) {
5153
- vErrors = vErrors === null ? validate45.errors : vErrors.concat(validate45.errors);
6379
+ if (!validate48(data.state, { instancePath: instancePath + "/state", parentData: data, parentDataProperty: "state", rootData })) {
6380
+ vErrors = vErrors === null ? validate48.errors : vErrors.concat(validate48.errors);
5154
6381
  errors = vErrors.length;
5155
6382
  }
5156
6383
  }
5157
6384
  if (data.git !== void 0) {
5158
- if (!validate49(data.git, { instancePath: instancePath + "/git", parentData: data, parentDataProperty: "git", rootData })) {
5159
- vErrors = vErrors === null ? validate49.errors : vErrors.concat(validate49.errors);
6385
+ if (!validate52(data.git, { instancePath: instancePath + "/git", parentData: data, parentDataProperty: "git", rootData })) {
6386
+ vErrors = vErrors === null ? validate52.errors : vErrors.concat(validate52.errors);
5160
6387
  errors = vErrors.length;
5161
6388
  }
5162
6389
  }
5163
6390
  if (data.time !== void 0) {
5164
- if (!validate53(data.time, { instancePath: instancePath + "/time", parentData: data, parentDataProperty: "time", rootData })) {
5165
- vErrors = vErrors === null ? validate53.errors : vErrors.concat(validate53.errors);
6391
+ if (!validate56(data.time, { instancePath: instancePath + "/time", parentData: data, parentDataProperty: "time", rootData })) {
6392
+ vErrors = vErrors === null ? validate56.errors : vErrors.concat(validate56.errors);
6393
+ errors = vErrors.length;
6394
+ }
6395
+ }
6396
+ if (data.lineup !== void 0) {
6397
+ if (!validate68(data.lineup, { instancePath: instancePath + "/lineup", parentData: data, parentDataProperty: "lineup", rootData })) {
6398
+ vErrors = vErrors === null ? validate68.errors : vErrors.concat(validate68.errors);
5166
6399
  errors = vErrors.length;
5167
6400
  }
5168
6401
  }
5169
6402
  } else {
5170
- const err58 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
6403
+ const err76 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
5171
6404
  if (vErrors === null) {
5172
- vErrors = [err58];
6405
+ vErrors = [err76];
5173
6406
  } else {
5174
- vErrors.push(err58);
6407
+ vErrors.push(err76);
5175
6408
  }
5176
6409
  errors++;
5177
6410
  }
@@ -5181,9 +6414,18 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
5181
6414
  var STATE_ENDS = ["start", "finish"];
5182
6415
 
5183
6416
  // src/schema.ts
5184
- var EVENT_TYPES = ["edge", "action", "swap", "strip", "commit", "branch", "now", "mark", "span", "leaf", "node"];
6417
+ var EVENT_TYPES = ["edge", "action", "swap", "strip", "commit", "branch", "now", "mark", "span", "leaf", "node", "line", "seal", "open", "pick", "stamp"];
5185
6418
  var ABSENT = "#/definitions/absent/not";
5186
- var ABSENT_KINDS = { regions: "sequence / architecture / state", at: "time", into: "time", color: "time", meters: "time" };
6419
+ var ABSENT_KINDS = {
6420
+ regions: "sequence / architecture / state",
6421
+ at: "time",
6422
+ into: "time",
6423
+ color: "time",
6424
+ meters: "time",
6425
+ region: "sequence / architecture / state",
6426
+ icon: "sequence / architecture / state / git / time / tree",
6427
+ link: "sequence / architecture / state / git / time / tree"
6428
+ };
5187
6429
  var NOT_ALLOWED = {
5188
6430
  carry: { field: "text", kind: "tag" }
5189
6431
  };
@@ -5194,6 +6436,10 @@ var TIME_EVENT = /\/events\/items\/not$/u;
5194
6436
  var TIME_EVENTS = ["now", "mark", "span"];
5195
6437
  var TREE_EVENT = /\/events\/items\/allOf\/0\/not$/u;
5196
6438
  var TREE_EVENTS = ["leaf", "node"];
6439
+ var LINEUP_EVENT = "#/definitions/notLineupEvent/not";
6440
+ var LINEUP_EVENTS = ["line", "seal", "open", "pick", "stamp"];
6441
+ var WIRED_EVENT = "#/definitions/notWiredEvent/not";
6442
+ var WIRED_EVENTS = ["edge", "action"];
5197
6443
  var DURATION = /^\^\[0-9\]\+\(\\\.\[0-9\]\+\)\?\(([a-z|]+)\)\$$/u;
5198
6444
  var RATIO = /%\)\$$/u;
5199
6445
  var escape = (key) => key.replaceAll("~", "~0").replaceAll("/", "~1");
@@ -5225,6 +6471,8 @@ function toFieldError(error, errors, m) {
5225
6471
  if (GIT_EVENT.test(error.schemaPath)) return { pointer: at, message: m.kindOnly(GIT_EVENTS, "git") };
5226
6472
  if (TIME_EVENT.test(error.schemaPath)) return { pointer: `${at}/type`, message: m.kindOnly(TIME_EVENTS, "time") };
5227
6473
  if (TREE_EVENT.test(error.schemaPath)) return { pointer: `${at}/type`, message: m.kindOnly(TREE_EVENTS, "tree") };
6474
+ if (error.schemaPath === LINEUP_EVENT) return { pointer: `${at}/type`, message: m.kindOnly(LINEUP_EVENTS, "lineup") };
6475
+ if (error.schemaPath === WIRED_EVENT) return { pointer: `${at}/type`, message: m.kindOnly(WIRED_EVENTS, "sequence / architecture / state / git / time / tree") };
5228
6476
  const last = at.slice(at.lastIndexOf("/") + 1);
5229
6477
  if (error.schemaPath === ABSENT) return { pointer: at, message: m.not({ field: last, kind: ABSENT_KINDS[last] ?? last }) };
5230
6478
  const allowed = NOT_ALLOWED[last];
@@ -5245,6 +6493,8 @@ function toFieldError(error, errors, m) {
5245
6493
  return { pointer: at, message: m.type(String(params.type)) };
5246
6494
  case "minLength":
5247
6495
  return { pointer: at, message: m.minLength(Number(params.limit)) };
6496
+ case "maxLength":
6497
+ return { pointer: at, message: m.maxLength(Number(params.limit)) };
5248
6498
  case "pattern": {
5249
6499
  if (error.schemaPath === URL_RULE) return { pointer: at, message: m.url };
5250
6500
  const pattern = String(params.pattern);
@@ -5257,6 +6507,8 @@ function toFieldError(error, errors, m) {
5257
6507
  }
5258
6508
  case "minItems":
5259
6509
  return { pointer: at, message: m.minItems(Number(params.limit)) };
6510
+ case "maxItems":
6511
+ return { pointer: at, message: m.maxItems(Number(params.limit)) };
5260
6512
  case "minimum":
5261
6513
  return { pointer: at, message: m.minimum(Number(params.limit)) };
5262
6514
  case "const":