table 6.0.3 → 6.0.7

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.
Files changed (40) hide show
  1. package/README.md +3 -3
  2. package/dist/alignString.js.map +1 -1
  3. package/dist/alignTableData.js.map +1 -1
  4. package/dist/calculateCellHeight.js.map +1 -1
  5. package/dist/calculateCellWidthIndex.js.map +1 -1
  6. package/dist/calculateMaximumColumnWidthIndex.js.map +1 -1
  7. package/dist/calculateRowHeightIndex.js.map +1 -1
  8. package/dist/createStream.js +4 -9
  9. package/dist/createStream.js.flow +3 -4
  10. package/dist/createStream.js.map +1 -1
  11. package/dist/drawBorder.js.map +1 -1
  12. package/dist/drawRow.js.map +1 -1
  13. package/dist/drawTable.js.map +1 -1
  14. package/dist/getBorderCharacters.js.map +1 -1
  15. package/dist/index.js +3 -3
  16. package/dist/makeConfig.js +1 -1
  17. package/dist/makeConfig.js.flow +1 -1
  18. package/dist/makeConfig.js.map +1 -1
  19. package/dist/makeStreamConfig.js +1 -1
  20. package/dist/makeStreamConfig.js.flow +1 -1
  21. package/dist/makeStreamConfig.js.map +1 -1
  22. package/dist/mapDataUsingRowHeightIndex.js.map +1 -1
  23. package/dist/padTableData.js.map +1 -1
  24. package/dist/schemas/config.json +7 -98
  25. package/dist/schemas/shared.json +98 -0
  26. package/dist/schemas/streamConfig.json +4 -98
  27. package/dist/stringifyTableData.js.map +1 -1
  28. package/dist/table.js.map +1 -1
  29. package/dist/truncateTableData.js.map +1 -1
  30. package/dist/validateConfig.js +40 -751
  31. package/dist/validateConfig.js.flow +4 -10
  32. package/dist/validateConfig.js.map +1 -1
  33. package/dist/validateTableData.js +11 -39
  34. package/dist/validateTableData.js.map +1 -1
  35. package/dist/validators.js +1492 -0
  36. package/dist/wrapCell.js.map +1 -1
  37. package/dist/wrapString.js.map +1 -1
  38. package/dist/wrapWord.js.map +1 -1
  39. package/package.json +20 -19
  40. package/dist/validateStreamConfig.js +0 -741
@@ -0,0 +1,1492 @@
1
+ "use strict";
2
+ exports["config.json"] = validate43;
3
+ const schema13 = {
4
+ "$id": "config.json",
5
+ "$schema": "http://json-schema.org/draft-07/schema#",
6
+ "type": "object",
7
+ "properties": {
8
+ "border": {
9
+ "$ref": "shared.json#/definitions/borders"
10
+ },
11
+ "columns": {
12
+ "$ref": "shared.json#/definitions/columns"
13
+ },
14
+ "columnDefault": {
15
+ "$ref": "shared.json#/definitions/column"
16
+ },
17
+ "drawHorizontalLine": {
18
+ "typeof": "function"
19
+ },
20
+ "singleLine": {
21
+ "typeof": "boolean"
22
+ }
23
+ },
24
+ "additionalProperties": false
25
+ };
26
+ const schema15 = {
27
+ "type": "object",
28
+ "properties": {
29
+ "topBody": {
30
+ "$ref": "#/definitions/border"
31
+ },
32
+ "topJoin": {
33
+ "$ref": "#/definitions/border"
34
+ },
35
+ "topLeft": {
36
+ "$ref": "#/definitions/border"
37
+ },
38
+ "topRight": {
39
+ "$ref": "#/definitions/border"
40
+ },
41
+ "bottomBody": {
42
+ "$ref": "#/definitions/border"
43
+ },
44
+ "bottomJoin": {
45
+ "$ref": "#/definitions/border"
46
+ },
47
+ "bottomLeft": {
48
+ "$ref": "#/definitions/border"
49
+ },
50
+ "bottomRight": {
51
+ "$ref": "#/definitions/border"
52
+ },
53
+ "bodyLeft": {
54
+ "$ref": "#/definitions/border"
55
+ },
56
+ "bodyRight": {
57
+ "$ref": "#/definitions/border"
58
+ },
59
+ "bodyJoin": {
60
+ "$ref": "#/definitions/border"
61
+ },
62
+ "joinBody": {
63
+ "$ref": "#/definitions/border"
64
+ },
65
+ "joinLeft": {
66
+ "$ref": "#/definitions/border"
67
+ },
68
+ "joinRight": {
69
+ "$ref": "#/definitions/border"
70
+ },
71
+ "joinJoin": {
72
+ "$ref": "#/definitions/border"
73
+ }
74
+ },
75
+ "additionalProperties": false
76
+ };
77
+ const schema16 = {
78
+ "type": "string"
79
+ };
80
+
81
+ function validate46(data, {
82
+ dataPath = "",
83
+ parentData,
84
+ parentDataProperty,
85
+ rootData = data
86
+ } = {}) {
87
+ let vErrors = null;
88
+ let errors = 0;
89
+ if (typeof data !== "string") {
90
+ const err0 = {
91
+ keyword: "type",
92
+ dataPath,
93
+ schemaPath: "#/type",
94
+ params: {
95
+ type: "string"
96
+ },
97
+ message: "should be string"
98
+ };
99
+ if (vErrors === null) {
100
+ vErrors = [err0];
101
+ } else {
102
+ vErrors.push(err0);
103
+ }
104
+ errors++;
105
+ }
106
+ validate46.errors = vErrors;
107
+ return errors === 0;
108
+ }
109
+
110
+ function validate45(data, {
111
+ dataPath = "",
112
+ parentData,
113
+ parentDataProperty,
114
+ rootData = data
115
+ } = {}) {
116
+ let vErrors = null;
117
+ let errors = 0;
118
+ if (data && typeof data == "object" && !Array.isArray(data)) {
119
+ for (const key0 in data) {
120
+ if (!(schema15.properties.hasOwnProperty(key0))) {
121
+ const err0 = {
122
+ keyword: "additionalProperties",
123
+ dataPath,
124
+ schemaPath: "#/additionalProperties",
125
+ params: {
126
+ additionalProperty: key0
127
+ },
128
+ message: "should NOT have additional properties"
129
+ };
130
+ if (vErrors === null) {
131
+ vErrors = [err0];
132
+ } else {
133
+ vErrors.push(err0);
134
+ }
135
+ errors++;
136
+ }
137
+ }
138
+ if (data.topBody !== undefined) {
139
+ if (!(validate46(data.topBody, {
140
+ dataPath: dataPath + "/topBody",
141
+ parentData: data,
142
+ parentDataProperty: "topBody",
143
+ rootData
144
+ }))) {
145
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
146
+ errors = vErrors.length;
147
+ }
148
+ }
149
+ if (data.topJoin !== undefined) {
150
+ if (!(validate46(data.topJoin, {
151
+ dataPath: dataPath + "/topJoin",
152
+ parentData: data,
153
+ parentDataProperty: "topJoin",
154
+ rootData
155
+ }))) {
156
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
157
+ errors = vErrors.length;
158
+ }
159
+ }
160
+ if (data.topLeft !== undefined) {
161
+ if (!(validate46(data.topLeft, {
162
+ dataPath: dataPath + "/topLeft",
163
+ parentData: data,
164
+ parentDataProperty: "topLeft",
165
+ rootData
166
+ }))) {
167
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
168
+ errors = vErrors.length;
169
+ }
170
+ }
171
+ if (data.topRight !== undefined) {
172
+ if (!(validate46(data.topRight, {
173
+ dataPath: dataPath + "/topRight",
174
+ parentData: data,
175
+ parentDataProperty: "topRight",
176
+ rootData
177
+ }))) {
178
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
179
+ errors = vErrors.length;
180
+ }
181
+ }
182
+ if (data.bottomBody !== undefined) {
183
+ if (!(validate46(data.bottomBody, {
184
+ dataPath: dataPath + "/bottomBody",
185
+ parentData: data,
186
+ parentDataProperty: "bottomBody",
187
+ rootData
188
+ }))) {
189
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
190
+ errors = vErrors.length;
191
+ }
192
+ }
193
+ if (data.bottomJoin !== undefined) {
194
+ if (!(validate46(data.bottomJoin, {
195
+ dataPath: dataPath + "/bottomJoin",
196
+ parentData: data,
197
+ parentDataProperty: "bottomJoin",
198
+ rootData
199
+ }))) {
200
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
201
+ errors = vErrors.length;
202
+ }
203
+ }
204
+ if (data.bottomLeft !== undefined) {
205
+ if (!(validate46(data.bottomLeft, {
206
+ dataPath: dataPath + "/bottomLeft",
207
+ parentData: data,
208
+ parentDataProperty: "bottomLeft",
209
+ rootData
210
+ }))) {
211
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
212
+ errors = vErrors.length;
213
+ }
214
+ }
215
+ if (data.bottomRight !== undefined) {
216
+ if (!(validate46(data.bottomRight, {
217
+ dataPath: dataPath + "/bottomRight",
218
+ parentData: data,
219
+ parentDataProperty: "bottomRight",
220
+ rootData
221
+ }))) {
222
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
223
+ errors = vErrors.length;
224
+ }
225
+ }
226
+ if (data.bodyLeft !== undefined) {
227
+ if (!(validate46(data.bodyLeft, {
228
+ dataPath: dataPath + "/bodyLeft",
229
+ parentData: data,
230
+ parentDataProperty: "bodyLeft",
231
+ rootData
232
+ }))) {
233
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
234
+ errors = vErrors.length;
235
+ }
236
+ }
237
+ if (data.bodyRight !== undefined) {
238
+ if (!(validate46(data.bodyRight, {
239
+ dataPath: dataPath + "/bodyRight",
240
+ parentData: data,
241
+ parentDataProperty: "bodyRight",
242
+ rootData
243
+ }))) {
244
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
245
+ errors = vErrors.length;
246
+ }
247
+ }
248
+ if (data.bodyJoin !== undefined) {
249
+ if (!(validate46(data.bodyJoin, {
250
+ dataPath: dataPath + "/bodyJoin",
251
+ parentData: data,
252
+ parentDataProperty: "bodyJoin",
253
+ rootData
254
+ }))) {
255
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
256
+ errors = vErrors.length;
257
+ }
258
+ }
259
+ if (data.joinBody !== undefined) {
260
+ if (!(validate46(data.joinBody, {
261
+ dataPath: dataPath + "/joinBody",
262
+ parentData: data,
263
+ parentDataProperty: "joinBody",
264
+ rootData
265
+ }))) {
266
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
267
+ errors = vErrors.length;
268
+ }
269
+ }
270
+ if (data.joinLeft !== undefined) {
271
+ if (!(validate46(data.joinLeft, {
272
+ dataPath: dataPath + "/joinLeft",
273
+ parentData: data,
274
+ parentDataProperty: "joinLeft",
275
+ rootData
276
+ }))) {
277
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
278
+ errors = vErrors.length;
279
+ }
280
+ }
281
+ if (data.joinRight !== undefined) {
282
+ if (!(validate46(data.joinRight, {
283
+ dataPath: dataPath + "/joinRight",
284
+ parentData: data,
285
+ parentDataProperty: "joinRight",
286
+ rootData
287
+ }))) {
288
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
289
+ errors = vErrors.length;
290
+ }
291
+ }
292
+ if (data.joinJoin !== undefined) {
293
+ if (!(validate46(data.joinJoin, {
294
+ dataPath: dataPath + "/joinJoin",
295
+ parentData: data,
296
+ parentDataProperty: "joinJoin",
297
+ rootData
298
+ }))) {
299
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
300
+ errors = vErrors.length;
301
+ }
302
+ }
303
+ } else {
304
+ const err1 = {
305
+ keyword: "type",
306
+ dataPath,
307
+ schemaPath: "#/type",
308
+ params: {
309
+ type: "object"
310
+ },
311
+ message: "should be object"
312
+ };
313
+ if (vErrors === null) {
314
+ vErrors = [err1];
315
+ } else {
316
+ vErrors.push(err1);
317
+ }
318
+ errors++;
319
+ }
320
+ validate45.errors = vErrors;
321
+ return errors === 0;
322
+ }
323
+ const schema17 = {
324
+ "type": "object",
325
+ "patternProperties": {
326
+ "^[0-9]+$": {
327
+ "$ref": "#/definitions/column"
328
+ }
329
+ },
330
+ "additionalProperties": false
331
+ };
332
+ const pattern0 = new RegExp("^[0-9]+$", "u");
333
+ const schema18 = {
334
+ "type": "object",
335
+ "properties": {
336
+ "alignment": {
337
+ "type": "string",
338
+ "enum": ["left", "right", "center"]
339
+ },
340
+ "width": {
341
+ "type": "number"
342
+ },
343
+ "wrapWord": {
344
+ "type": "boolean"
345
+ },
346
+ "truncate": {
347
+ "type": "number"
348
+ },
349
+ "paddingLeft": {
350
+ "type": "number"
351
+ },
352
+ "paddingRight": {
353
+ "type": "number"
354
+ }
355
+ },
356
+ "additionalProperties": false
357
+ };
358
+ const func0 = require("ajv/dist/compile/equal");
359
+
360
+ function validate64(data, {
361
+ dataPath = "",
362
+ parentData,
363
+ parentDataProperty,
364
+ rootData = data
365
+ } = {}) {
366
+ let vErrors = null;
367
+ let errors = 0;
368
+ if (data && typeof data == "object" && !Array.isArray(data)) {
369
+ for (const key0 in data) {
370
+ if (!((((((key0 === "alignment") || (key0 === "width")) || (key0 === "wrapWord")) || (key0 === "truncate")) || (key0 === "paddingLeft")) || (key0 === "paddingRight"))) {
371
+ const err0 = {
372
+ keyword: "additionalProperties",
373
+ dataPath,
374
+ schemaPath: "#/additionalProperties",
375
+ params: {
376
+ additionalProperty: key0
377
+ },
378
+ message: "should NOT have additional properties"
379
+ };
380
+ if (vErrors === null) {
381
+ vErrors = [err0];
382
+ } else {
383
+ vErrors.push(err0);
384
+ }
385
+ errors++;
386
+ }
387
+ }
388
+ if (data.alignment !== undefined) {
389
+ let data0 = data.alignment;
390
+ if (typeof data0 !== "string") {
391
+ const err1 = {
392
+ keyword: "type",
393
+ dataPath: dataPath + "/alignment",
394
+ schemaPath: "#/properties/alignment/type",
395
+ params: {
396
+ type: "string"
397
+ },
398
+ message: "should be string"
399
+ };
400
+ if (vErrors === null) {
401
+ vErrors = [err1];
402
+ } else {
403
+ vErrors.push(err1);
404
+ }
405
+ errors++;
406
+ }
407
+ if (!(((data0 === "left") || (data0 === "right")) || (data0 === "center"))) {
408
+ const err2 = {
409
+ keyword: "enum",
410
+ dataPath: dataPath + "/alignment",
411
+ schemaPath: "#/properties/alignment/enum",
412
+ params: {
413
+ allowedValues: schema18.properties.alignment.enum
414
+ },
415
+ message: "should be equal to one of the allowed values"
416
+ };
417
+ if (vErrors === null) {
418
+ vErrors = [err2];
419
+ } else {
420
+ vErrors.push(err2);
421
+ }
422
+ errors++;
423
+ }
424
+ }
425
+ if (data.width !== undefined) {
426
+ let data1 = data.width;
427
+ if (!((typeof data1 == "number") && (isFinite(data1)))) {
428
+ const err3 = {
429
+ keyword: "type",
430
+ dataPath: dataPath + "/width",
431
+ schemaPath: "#/properties/width/type",
432
+ params: {
433
+ type: "number"
434
+ },
435
+ message: "should be number"
436
+ };
437
+ if (vErrors === null) {
438
+ vErrors = [err3];
439
+ } else {
440
+ vErrors.push(err3);
441
+ }
442
+ errors++;
443
+ }
444
+ }
445
+ if (data.wrapWord !== undefined) {
446
+ if (typeof data.wrapWord !== "boolean") {
447
+ const err4 = {
448
+ keyword: "type",
449
+ dataPath: dataPath + "/wrapWord",
450
+ schemaPath: "#/properties/wrapWord/type",
451
+ params: {
452
+ type: "boolean"
453
+ },
454
+ message: "should be boolean"
455
+ };
456
+ if (vErrors === null) {
457
+ vErrors = [err4];
458
+ } else {
459
+ vErrors.push(err4);
460
+ }
461
+ errors++;
462
+ }
463
+ }
464
+ if (data.truncate !== undefined) {
465
+ let data3 = data.truncate;
466
+ if (!((typeof data3 == "number") && (isFinite(data3)))) {
467
+ const err5 = {
468
+ keyword: "type",
469
+ dataPath: dataPath + "/truncate",
470
+ schemaPath: "#/properties/truncate/type",
471
+ params: {
472
+ type: "number"
473
+ },
474
+ message: "should be number"
475
+ };
476
+ if (vErrors === null) {
477
+ vErrors = [err5];
478
+ } else {
479
+ vErrors.push(err5);
480
+ }
481
+ errors++;
482
+ }
483
+ }
484
+ if (data.paddingLeft !== undefined) {
485
+ let data4 = data.paddingLeft;
486
+ if (!((typeof data4 == "number") && (isFinite(data4)))) {
487
+ const err6 = {
488
+ keyword: "type",
489
+ dataPath: dataPath + "/paddingLeft",
490
+ schemaPath: "#/properties/paddingLeft/type",
491
+ params: {
492
+ type: "number"
493
+ },
494
+ message: "should be number"
495
+ };
496
+ if (vErrors === null) {
497
+ vErrors = [err6];
498
+ } else {
499
+ vErrors.push(err6);
500
+ }
501
+ errors++;
502
+ }
503
+ }
504
+ if (data.paddingRight !== undefined) {
505
+ let data5 = data.paddingRight;
506
+ if (!((typeof data5 == "number") && (isFinite(data5)))) {
507
+ const err7 = {
508
+ keyword: "type",
509
+ dataPath: dataPath + "/paddingRight",
510
+ schemaPath: "#/properties/paddingRight/type",
511
+ params: {
512
+ type: "number"
513
+ },
514
+ message: "should be number"
515
+ };
516
+ if (vErrors === null) {
517
+ vErrors = [err7];
518
+ } else {
519
+ vErrors.push(err7);
520
+ }
521
+ errors++;
522
+ }
523
+ }
524
+ } else {
525
+ const err8 = {
526
+ keyword: "type",
527
+ dataPath,
528
+ schemaPath: "#/type",
529
+ params: {
530
+ type: "object"
531
+ },
532
+ message: "should be object"
533
+ };
534
+ if (vErrors === null) {
535
+ vErrors = [err8];
536
+ } else {
537
+ vErrors.push(err8);
538
+ }
539
+ errors++;
540
+ }
541
+ validate64.errors = vErrors;
542
+ return errors === 0;
543
+ }
544
+
545
+ function validate63(data, {
546
+ dataPath = "",
547
+ parentData,
548
+ parentDataProperty,
549
+ rootData = data
550
+ } = {}) {
551
+ let vErrors = null;
552
+ let errors = 0;
553
+ if (data && typeof data == "object" && !Array.isArray(data)) {
554
+ for (const key0 in data) {
555
+ if (!(pattern0.test(key0))) {
556
+ const err0 = {
557
+ keyword: "additionalProperties",
558
+ dataPath,
559
+ schemaPath: "#/additionalProperties",
560
+ params: {
561
+ additionalProperty: key0
562
+ },
563
+ message: "should NOT have additional properties"
564
+ };
565
+ if (vErrors === null) {
566
+ vErrors = [err0];
567
+ } else {
568
+ vErrors.push(err0);
569
+ }
570
+ errors++;
571
+ }
572
+ }
573
+ for (const key1 in data) {
574
+ if (pattern0.test(key1)) {
575
+ if (!(validate64(data[key1], {
576
+ dataPath: dataPath + "/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),
577
+ parentData: data,
578
+ parentDataProperty: key1,
579
+ rootData
580
+ }))) {
581
+ vErrors = vErrors === null ? validate64.errors : vErrors.concat(validate64.errors);
582
+ errors = vErrors.length;
583
+ }
584
+ }
585
+ }
586
+ } else {
587
+ const err1 = {
588
+ keyword: "type",
589
+ dataPath,
590
+ schemaPath: "#/type",
591
+ params: {
592
+ type: "object"
593
+ },
594
+ message: "should be object"
595
+ };
596
+ if (vErrors === null) {
597
+ vErrors = [err1];
598
+ } else {
599
+ vErrors.push(err1);
600
+ }
601
+ errors++;
602
+ }
603
+ validate63.errors = vErrors;
604
+ return errors === 0;
605
+ }
606
+
607
+ function validate67(data, {
608
+ dataPath = "",
609
+ parentData,
610
+ parentDataProperty,
611
+ rootData = data
612
+ } = {}) {
613
+ let vErrors = null;
614
+ let errors = 0;
615
+ if (data && typeof data == "object" && !Array.isArray(data)) {
616
+ for (const key0 in data) {
617
+ if (!((((((key0 === "alignment") || (key0 === "width")) || (key0 === "wrapWord")) || (key0 === "truncate")) || (key0 === "paddingLeft")) || (key0 === "paddingRight"))) {
618
+ const err0 = {
619
+ keyword: "additionalProperties",
620
+ dataPath,
621
+ schemaPath: "#/additionalProperties",
622
+ params: {
623
+ additionalProperty: key0
624
+ },
625
+ message: "should NOT have additional properties"
626
+ };
627
+ if (vErrors === null) {
628
+ vErrors = [err0];
629
+ } else {
630
+ vErrors.push(err0);
631
+ }
632
+ errors++;
633
+ }
634
+ }
635
+ if (data.alignment !== undefined) {
636
+ let data0 = data.alignment;
637
+ if (typeof data0 !== "string") {
638
+ const err1 = {
639
+ keyword: "type",
640
+ dataPath: dataPath + "/alignment",
641
+ schemaPath: "#/properties/alignment/type",
642
+ params: {
643
+ type: "string"
644
+ },
645
+ message: "should be string"
646
+ };
647
+ if (vErrors === null) {
648
+ vErrors = [err1];
649
+ } else {
650
+ vErrors.push(err1);
651
+ }
652
+ errors++;
653
+ }
654
+ if (!(((data0 === "left") || (data0 === "right")) || (data0 === "center"))) {
655
+ const err2 = {
656
+ keyword: "enum",
657
+ dataPath: dataPath + "/alignment",
658
+ schemaPath: "#/properties/alignment/enum",
659
+ params: {
660
+ allowedValues: schema18.properties.alignment.enum
661
+ },
662
+ message: "should be equal to one of the allowed values"
663
+ };
664
+ if (vErrors === null) {
665
+ vErrors = [err2];
666
+ } else {
667
+ vErrors.push(err2);
668
+ }
669
+ errors++;
670
+ }
671
+ }
672
+ if (data.width !== undefined) {
673
+ let data1 = data.width;
674
+ if (!((typeof data1 == "number") && (isFinite(data1)))) {
675
+ const err3 = {
676
+ keyword: "type",
677
+ dataPath: dataPath + "/width",
678
+ schemaPath: "#/properties/width/type",
679
+ params: {
680
+ type: "number"
681
+ },
682
+ message: "should be number"
683
+ };
684
+ if (vErrors === null) {
685
+ vErrors = [err3];
686
+ } else {
687
+ vErrors.push(err3);
688
+ }
689
+ errors++;
690
+ }
691
+ }
692
+ if (data.wrapWord !== undefined) {
693
+ if (typeof data.wrapWord !== "boolean") {
694
+ const err4 = {
695
+ keyword: "type",
696
+ dataPath: dataPath + "/wrapWord",
697
+ schemaPath: "#/properties/wrapWord/type",
698
+ params: {
699
+ type: "boolean"
700
+ },
701
+ message: "should be boolean"
702
+ };
703
+ if (vErrors === null) {
704
+ vErrors = [err4];
705
+ } else {
706
+ vErrors.push(err4);
707
+ }
708
+ errors++;
709
+ }
710
+ }
711
+ if (data.truncate !== undefined) {
712
+ let data3 = data.truncate;
713
+ if (!((typeof data3 == "number") && (isFinite(data3)))) {
714
+ const err5 = {
715
+ keyword: "type",
716
+ dataPath: dataPath + "/truncate",
717
+ schemaPath: "#/properties/truncate/type",
718
+ params: {
719
+ type: "number"
720
+ },
721
+ message: "should be number"
722
+ };
723
+ if (vErrors === null) {
724
+ vErrors = [err5];
725
+ } else {
726
+ vErrors.push(err5);
727
+ }
728
+ errors++;
729
+ }
730
+ }
731
+ if (data.paddingLeft !== undefined) {
732
+ let data4 = data.paddingLeft;
733
+ if (!((typeof data4 == "number") && (isFinite(data4)))) {
734
+ const err6 = {
735
+ keyword: "type",
736
+ dataPath: dataPath + "/paddingLeft",
737
+ schemaPath: "#/properties/paddingLeft/type",
738
+ params: {
739
+ type: "number"
740
+ },
741
+ message: "should be number"
742
+ };
743
+ if (vErrors === null) {
744
+ vErrors = [err6];
745
+ } else {
746
+ vErrors.push(err6);
747
+ }
748
+ errors++;
749
+ }
750
+ }
751
+ if (data.paddingRight !== undefined) {
752
+ let data5 = data.paddingRight;
753
+ if (!((typeof data5 == "number") && (isFinite(data5)))) {
754
+ const err7 = {
755
+ keyword: "type",
756
+ dataPath: dataPath + "/paddingRight",
757
+ schemaPath: "#/properties/paddingRight/type",
758
+ params: {
759
+ type: "number"
760
+ },
761
+ message: "should be number"
762
+ };
763
+ if (vErrors === null) {
764
+ vErrors = [err7];
765
+ } else {
766
+ vErrors.push(err7);
767
+ }
768
+ errors++;
769
+ }
770
+ }
771
+ } else {
772
+ const err8 = {
773
+ keyword: "type",
774
+ dataPath,
775
+ schemaPath: "#/type",
776
+ params: {
777
+ type: "object"
778
+ },
779
+ message: "should be object"
780
+ };
781
+ if (vErrors === null) {
782
+ vErrors = [err8];
783
+ } else {
784
+ vErrors.push(err8);
785
+ }
786
+ errors++;
787
+ }
788
+ validate67.errors = vErrors;
789
+ return errors === 0;
790
+ }
791
+
792
+ function validate43(data, {
793
+ dataPath = "",
794
+ parentData,
795
+ parentDataProperty,
796
+ rootData = data
797
+ } = {}) {
798
+ /*# sourceURL="config.json" */ ;
799
+ let vErrors = null;
800
+ let errors = 0;
801
+ if (data && typeof data == "object" && !Array.isArray(data)) {
802
+ for (const key0 in data) {
803
+ if (!(((((key0 === "border") || (key0 === "columns")) || (key0 === "columnDefault")) || (key0 === "drawHorizontalLine")) || (key0 === "singleLine"))) {
804
+ const err0 = {
805
+ keyword: "additionalProperties",
806
+ dataPath,
807
+ schemaPath: "#/additionalProperties",
808
+ params: {
809
+ additionalProperty: key0
810
+ },
811
+ message: "should NOT have additional properties"
812
+ };
813
+ if (vErrors === null) {
814
+ vErrors = [err0];
815
+ } else {
816
+ vErrors.push(err0);
817
+ }
818
+ errors++;
819
+ }
820
+ }
821
+ if (data.border !== undefined) {
822
+ if (!(validate45(data.border, {
823
+ dataPath: dataPath + "/border",
824
+ parentData: data,
825
+ parentDataProperty: "border",
826
+ rootData
827
+ }))) {
828
+ vErrors = vErrors === null ? validate45.errors : vErrors.concat(validate45.errors);
829
+ errors = vErrors.length;
830
+ }
831
+ }
832
+ if (data.columns !== undefined) {
833
+ if (!(validate63(data.columns, {
834
+ dataPath: dataPath + "/columns",
835
+ parentData: data,
836
+ parentDataProperty: "columns",
837
+ rootData
838
+ }))) {
839
+ vErrors = vErrors === null ? validate63.errors : vErrors.concat(validate63.errors);
840
+ errors = vErrors.length;
841
+ }
842
+ }
843
+ if (data.columnDefault !== undefined) {
844
+ if (!(validate67(data.columnDefault, {
845
+ dataPath: dataPath + "/columnDefault",
846
+ parentData: data,
847
+ parentDataProperty: "columnDefault",
848
+ rootData
849
+ }))) {
850
+ vErrors = vErrors === null ? validate67.errors : vErrors.concat(validate67.errors);
851
+ errors = vErrors.length;
852
+ }
853
+ }
854
+ if (data.drawHorizontalLine !== undefined) {
855
+ if (typeof data.drawHorizontalLine != "function") {
856
+ const err1 = {
857
+ keyword: "typeof",
858
+ dataPath: dataPath + "/drawHorizontalLine",
859
+ schemaPath: "#/properties/drawHorizontalLine/typeof",
860
+ params: {},
861
+ message: "should pass \"typeof\" keyword validation"
862
+ };
863
+ if (vErrors === null) {
864
+ vErrors = [err1];
865
+ } else {
866
+ vErrors.push(err1);
867
+ }
868
+ errors++;
869
+ }
870
+ }
871
+ if (data.singleLine !== undefined) {
872
+ if (typeof data.singleLine != "boolean") {
873
+ const err2 = {
874
+ keyword: "typeof",
875
+ dataPath: dataPath + "/singleLine",
876
+ schemaPath: "#/properties/singleLine/typeof",
877
+ params: {},
878
+ message: "should pass \"typeof\" keyword validation"
879
+ };
880
+ if (vErrors === null) {
881
+ vErrors = [err2];
882
+ } else {
883
+ vErrors.push(err2);
884
+ }
885
+ errors++;
886
+ }
887
+ }
888
+ } else {
889
+ const err3 = {
890
+ keyword: "type",
891
+ dataPath,
892
+ schemaPath: "#/type",
893
+ params: {
894
+ type: "object"
895
+ },
896
+ message: "should be object"
897
+ };
898
+ if (vErrors === null) {
899
+ vErrors = [err3];
900
+ } else {
901
+ vErrors.push(err3);
902
+ }
903
+ errors++;
904
+ }
905
+ validate43.errors = vErrors;
906
+ return errors === 0;
907
+ }
908
+ exports["streamConfig.json"] = validate69;
909
+ const schema20 = {
910
+ "$id": "streamConfig.json",
911
+ "$schema": "http://json-schema.org/draft-07/schema#",
912
+ "type": "object",
913
+ "properties": {
914
+ "border": {
915
+ "$ref": "shared.json#/definitions/borders"
916
+ },
917
+ "columns": {
918
+ "$ref": "shared.json#/definitions/columns"
919
+ },
920
+ "columnDefault": {
921
+ "$ref": "shared.json#/definitions/column"
922
+ },
923
+ "columnCount": {
924
+ "type": "number"
925
+ }
926
+ },
927
+ "additionalProperties": false
928
+ };
929
+
930
+ function validate70(data, {
931
+ dataPath = "",
932
+ parentData,
933
+ parentDataProperty,
934
+ rootData = data
935
+ } = {}) {
936
+ let vErrors = null;
937
+ let errors = 0;
938
+ if (data && typeof data == "object" && !Array.isArray(data)) {
939
+ for (const key0 in data) {
940
+ if (!(schema15.properties.hasOwnProperty(key0))) {
941
+ const err0 = {
942
+ keyword: "additionalProperties",
943
+ dataPath,
944
+ schemaPath: "#/additionalProperties",
945
+ params: {
946
+ additionalProperty: key0
947
+ },
948
+ message: "should NOT have additional properties"
949
+ };
950
+ if (vErrors === null) {
951
+ vErrors = [err0];
952
+ } else {
953
+ vErrors.push(err0);
954
+ }
955
+ errors++;
956
+ }
957
+ }
958
+ if (data.topBody !== undefined) {
959
+ if (!(validate46(data.topBody, {
960
+ dataPath: dataPath + "/topBody",
961
+ parentData: data,
962
+ parentDataProperty: "topBody",
963
+ rootData
964
+ }))) {
965
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
966
+ errors = vErrors.length;
967
+ }
968
+ }
969
+ if (data.topJoin !== undefined) {
970
+ if (!(validate46(data.topJoin, {
971
+ dataPath: dataPath + "/topJoin",
972
+ parentData: data,
973
+ parentDataProperty: "topJoin",
974
+ rootData
975
+ }))) {
976
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
977
+ errors = vErrors.length;
978
+ }
979
+ }
980
+ if (data.topLeft !== undefined) {
981
+ if (!(validate46(data.topLeft, {
982
+ dataPath: dataPath + "/topLeft",
983
+ parentData: data,
984
+ parentDataProperty: "topLeft",
985
+ rootData
986
+ }))) {
987
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
988
+ errors = vErrors.length;
989
+ }
990
+ }
991
+ if (data.topRight !== undefined) {
992
+ if (!(validate46(data.topRight, {
993
+ dataPath: dataPath + "/topRight",
994
+ parentData: data,
995
+ parentDataProperty: "topRight",
996
+ rootData
997
+ }))) {
998
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
999
+ errors = vErrors.length;
1000
+ }
1001
+ }
1002
+ if (data.bottomBody !== undefined) {
1003
+ if (!(validate46(data.bottomBody, {
1004
+ dataPath: dataPath + "/bottomBody",
1005
+ parentData: data,
1006
+ parentDataProperty: "bottomBody",
1007
+ rootData
1008
+ }))) {
1009
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
1010
+ errors = vErrors.length;
1011
+ }
1012
+ }
1013
+ if (data.bottomJoin !== undefined) {
1014
+ if (!(validate46(data.bottomJoin, {
1015
+ dataPath: dataPath + "/bottomJoin",
1016
+ parentData: data,
1017
+ parentDataProperty: "bottomJoin",
1018
+ rootData
1019
+ }))) {
1020
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
1021
+ errors = vErrors.length;
1022
+ }
1023
+ }
1024
+ if (data.bottomLeft !== undefined) {
1025
+ if (!(validate46(data.bottomLeft, {
1026
+ dataPath: dataPath + "/bottomLeft",
1027
+ parentData: data,
1028
+ parentDataProperty: "bottomLeft",
1029
+ rootData
1030
+ }))) {
1031
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
1032
+ errors = vErrors.length;
1033
+ }
1034
+ }
1035
+ if (data.bottomRight !== undefined) {
1036
+ if (!(validate46(data.bottomRight, {
1037
+ dataPath: dataPath + "/bottomRight",
1038
+ parentData: data,
1039
+ parentDataProperty: "bottomRight",
1040
+ rootData
1041
+ }))) {
1042
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
1043
+ errors = vErrors.length;
1044
+ }
1045
+ }
1046
+ if (data.bodyLeft !== undefined) {
1047
+ if (!(validate46(data.bodyLeft, {
1048
+ dataPath: dataPath + "/bodyLeft",
1049
+ parentData: data,
1050
+ parentDataProperty: "bodyLeft",
1051
+ rootData
1052
+ }))) {
1053
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
1054
+ errors = vErrors.length;
1055
+ }
1056
+ }
1057
+ if (data.bodyRight !== undefined) {
1058
+ if (!(validate46(data.bodyRight, {
1059
+ dataPath: dataPath + "/bodyRight",
1060
+ parentData: data,
1061
+ parentDataProperty: "bodyRight",
1062
+ rootData
1063
+ }))) {
1064
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
1065
+ errors = vErrors.length;
1066
+ }
1067
+ }
1068
+ if (data.bodyJoin !== undefined) {
1069
+ if (!(validate46(data.bodyJoin, {
1070
+ dataPath: dataPath + "/bodyJoin",
1071
+ parentData: data,
1072
+ parentDataProperty: "bodyJoin",
1073
+ rootData
1074
+ }))) {
1075
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
1076
+ errors = vErrors.length;
1077
+ }
1078
+ }
1079
+ if (data.joinBody !== undefined) {
1080
+ if (!(validate46(data.joinBody, {
1081
+ dataPath: dataPath + "/joinBody",
1082
+ parentData: data,
1083
+ parentDataProperty: "joinBody",
1084
+ rootData
1085
+ }))) {
1086
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
1087
+ errors = vErrors.length;
1088
+ }
1089
+ }
1090
+ if (data.joinLeft !== undefined) {
1091
+ if (!(validate46(data.joinLeft, {
1092
+ dataPath: dataPath + "/joinLeft",
1093
+ parentData: data,
1094
+ parentDataProperty: "joinLeft",
1095
+ rootData
1096
+ }))) {
1097
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
1098
+ errors = vErrors.length;
1099
+ }
1100
+ }
1101
+ if (data.joinRight !== undefined) {
1102
+ if (!(validate46(data.joinRight, {
1103
+ dataPath: dataPath + "/joinRight",
1104
+ parentData: data,
1105
+ parentDataProperty: "joinRight",
1106
+ rootData
1107
+ }))) {
1108
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
1109
+ errors = vErrors.length;
1110
+ }
1111
+ }
1112
+ if (data.joinJoin !== undefined) {
1113
+ if (!(validate46(data.joinJoin, {
1114
+ dataPath: dataPath + "/joinJoin",
1115
+ parentData: data,
1116
+ parentDataProperty: "joinJoin",
1117
+ rootData
1118
+ }))) {
1119
+ vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
1120
+ errors = vErrors.length;
1121
+ }
1122
+ }
1123
+ } else {
1124
+ const err1 = {
1125
+ keyword: "type",
1126
+ dataPath,
1127
+ schemaPath: "#/type",
1128
+ params: {
1129
+ type: "object"
1130
+ },
1131
+ message: "should be object"
1132
+ };
1133
+ if (vErrors === null) {
1134
+ vErrors = [err1];
1135
+ } else {
1136
+ vErrors.push(err1);
1137
+ }
1138
+ errors++;
1139
+ }
1140
+ validate70.errors = vErrors;
1141
+ return errors === 0;
1142
+ }
1143
+
1144
+ function validate87(data, {
1145
+ dataPath = "",
1146
+ parentData,
1147
+ parentDataProperty,
1148
+ rootData = data
1149
+ } = {}) {
1150
+ let vErrors = null;
1151
+ let errors = 0;
1152
+ if (data && typeof data == "object" && !Array.isArray(data)) {
1153
+ for (const key0 in data) {
1154
+ if (!(pattern0.test(key0))) {
1155
+ const err0 = {
1156
+ keyword: "additionalProperties",
1157
+ dataPath,
1158
+ schemaPath: "#/additionalProperties",
1159
+ params: {
1160
+ additionalProperty: key0
1161
+ },
1162
+ message: "should NOT have additional properties"
1163
+ };
1164
+ if (vErrors === null) {
1165
+ vErrors = [err0];
1166
+ } else {
1167
+ vErrors.push(err0);
1168
+ }
1169
+ errors++;
1170
+ }
1171
+ }
1172
+ for (const key1 in data) {
1173
+ if (pattern0.test(key1)) {
1174
+ if (!(validate64(data[key1], {
1175
+ dataPath: dataPath + "/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),
1176
+ parentData: data,
1177
+ parentDataProperty: key1,
1178
+ rootData
1179
+ }))) {
1180
+ vErrors = vErrors === null ? validate64.errors : vErrors.concat(validate64.errors);
1181
+ errors = vErrors.length;
1182
+ }
1183
+ }
1184
+ }
1185
+ } else {
1186
+ const err1 = {
1187
+ keyword: "type",
1188
+ dataPath,
1189
+ schemaPath: "#/type",
1190
+ params: {
1191
+ type: "object"
1192
+ },
1193
+ message: "should be object"
1194
+ };
1195
+ if (vErrors === null) {
1196
+ vErrors = [err1];
1197
+ } else {
1198
+ vErrors.push(err1);
1199
+ }
1200
+ errors++;
1201
+ }
1202
+ validate87.errors = vErrors;
1203
+ return errors === 0;
1204
+ }
1205
+
1206
+ function validate90(data, {
1207
+ dataPath = "",
1208
+ parentData,
1209
+ parentDataProperty,
1210
+ rootData = data
1211
+ } = {}) {
1212
+ let vErrors = null;
1213
+ let errors = 0;
1214
+ if (data && typeof data == "object" && !Array.isArray(data)) {
1215
+ for (const key0 in data) {
1216
+ if (!((((((key0 === "alignment") || (key0 === "width")) || (key0 === "wrapWord")) || (key0 === "truncate")) || (key0 === "paddingLeft")) || (key0 === "paddingRight"))) {
1217
+ const err0 = {
1218
+ keyword: "additionalProperties",
1219
+ dataPath,
1220
+ schemaPath: "#/additionalProperties",
1221
+ params: {
1222
+ additionalProperty: key0
1223
+ },
1224
+ message: "should NOT have additional properties"
1225
+ };
1226
+ if (vErrors === null) {
1227
+ vErrors = [err0];
1228
+ } else {
1229
+ vErrors.push(err0);
1230
+ }
1231
+ errors++;
1232
+ }
1233
+ }
1234
+ if (data.alignment !== undefined) {
1235
+ let data0 = data.alignment;
1236
+ if (typeof data0 !== "string") {
1237
+ const err1 = {
1238
+ keyword: "type",
1239
+ dataPath: dataPath + "/alignment",
1240
+ schemaPath: "#/properties/alignment/type",
1241
+ params: {
1242
+ type: "string"
1243
+ },
1244
+ message: "should be string"
1245
+ };
1246
+ if (vErrors === null) {
1247
+ vErrors = [err1];
1248
+ } else {
1249
+ vErrors.push(err1);
1250
+ }
1251
+ errors++;
1252
+ }
1253
+ if (!(((data0 === "left") || (data0 === "right")) || (data0 === "center"))) {
1254
+ const err2 = {
1255
+ keyword: "enum",
1256
+ dataPath: dataPath + "/alignment",
1257
+ schemaPath: "#/properties/alignment/enum",
1258
+ params: {
1259
+ allowedValues: schema18.properties.alignment.enum
1260
+ },
1261
+ message: "should be equal to one of the allowed values"
1262
+ };
1263
+ if (vErrors === null) {
1264
+ vErrors = [err2];
1265
+ } else {
1266
+ vErrors.push(err2);
1267
+ }
1268
+ errors++;
1269
+ }
1270
+ }
1271
+ if (data.width !== undefined) {
1272
+ let data1 = data.width;
1273
+ if (!((typeof data1 == "number") && (isFinite(data1)))) {
1274
+ const err3 = {
1275
+ keyword: "type",
1276
+ dataPath: dataPath + "/width",
1277
+ schemaPath: "#/properties/width/type",
1278
+ params: {
1279
+ type: "number"
1280
+ },
1281
+ message: "should be number"
1282
+ };
1283
+ if (vErrors === null) {
1284
+ vErrors = [err3];
1285
+ } else {
1286
+ vErrors.push(err3);
1287
+ }
1288
+ errors++;
1289
+ }
1290
+ }
1291
+ if (data.wrapWord !== undefined) {
1292
+ if (typeof data.wrapWord !== "boolean") {
1293
+ const err4 = {
1294
+ keyword: "type",
1295
+ dataPath: dataPath + "/wrapWord",
1296
+ schemaPath: "#/properties/wrapWord/type",
1297
+ params: {
1298
+ type: "boolean"
1299
+ },
1300
+ message: "should be boolean"
1301
+ };
1302
+ if (vErrors === null) {
1303
+ vErrors = [err4];
1304
+ } else {
1305
+ vErrors.push(err4);
1306
+ }
1307
+ errors++;
1308
+ }
1309
+ }
1310
+ if (data.truncate !== undefined) {
1311
+ let data3 = data.truncate;
1312
+ if (!((typeof data3 == "number") && (isFinite(data3)))) {
1313
+ const err5 = {
1314
+ keyword: "type",
1315
+ dataPath: dataPath + "/truncate",
1316
+ schemaPath: "#/properties/truncate/type",
1317
+ params: {
1318
+ type: "number"
1319
+ },
1320
+ message: "should be number"
1321
+ };
1322
+ if (vErrors === null) {
1323
+ vErrors = [err5];
1324
+ } else {
1325
+ vErrors.push(err5);
1326
+ }
1327
+ errors++;
1328
+ }
1329
+ }
1330
+ if (data.paddingLeft !== undefined) {
1331
+ let data4 = data.paddingLeft;
1332
+ if (!((typeof data4 == "number") && (isFinite(data4)))) {
1333
+ const err6 = {
1334
+ keyword: "type",
1335
+ dataPath: dataPath + "/paddingLeft",
1336
+ schemaPath: "#/properties/paddingLeft/type",
1337
+ params: {
1338
+ type: "number"
1339
+ },
1340
+ message: "should be number"
1341
+ };
1342
+ if (vErrors === null) {
1343
+ vErrors = [err6];
1344
+ } else {
1345
+ vErrors.push(err6);
1346
+ }
1347
+ errors++;
1348
+ }
1349
+ }
1350
+ if (data.paddingRight !== undefined) {
1351
+ let data5 = data.paddingRight;
1352
+ if (!((typeof data5 == "number") && (isFinite(data5)))) {
1353
+ const err7 = {
1354
+ keyword: "type",
1355
+ dataPath: dataPath + "/paddingRight",
1356
+ schemaPath: "#/properties/paddingRight/type",
1357
+ params: {
1358
+ type: "number"
1359
+ },
1360
+ message: "should be number"
1361
+ };
1362
+ if (vErrors === null) {
1363
+ vErrors = [err7];
1364
+ } else {
1365
+ vErrors.push(err7);
1366
+ }
1367
+ errors++;
1368
+ }
1369
+ }
1370
+ } else {
1371
+ const err8 = {
1372
+ keyword: "type",
1373
+ dataPath,
1374
+ schemaPath: "#/type",
1375
+ params: {
1376
+ type: "object"
1377
+ },
1378
+ message: "should be object"
1379
+ };
1380
+ if (vErrors === null) {
1381
+ vErrors = [err8];
1382
+ } else {
1383
+ vErrors.push(err8);
1384
+ }
1385
+ errors++;
1386
+ }
1387
+ validate90.errors = vErrors;
1388
+ return errors === 0;
1389
+ }
1390
+
1391
+ function validate69(data, {
1392
+ dataPath = "",
1393
+ parentData,
1394
+ parentDataProperty,
1395
+ rootData = data
1396
+ } = {}) {
1397
+ /*# sourceURL="streamConfig.json" */ ;
1398
+ let vErrors = null;
1399
+ let errors = 0;
1400
+ if (data && typeof data == "object" && !Array.isArray(data)) {
1401
+ for (const key0 in data) {
1402
+ if (!((((key0 === "border") || (key0 === "columns")) || (key0 === "columnDefault")) || (key0 === "columnCount"))) {
1403
+ const err0 = {
1404
+ keyword: "additionalProperties",
1405
+ dataPath,
1406
+ schemaPath: "#/additionalProperties",
1407
+ params: {
1408
+ additionalProperty: key0
1409
+ },
1410
+ message: "should NOT have additional properties"
1411
+ };
1412
+ if (vErrors === null) {
1413
+ vErrors = [err0];
1414
+ } else {
1415
+ vErrors.push(err0);
1416
+ }
1417
+ errors++;
1418
+ }
1419
+ }
1420
+ if (data.border !== undefined) {
1421
+ if (!(validate70(data.border, {
1422
+ dataPath: dataPath + "/border",
1423
+ parentData: data,
1424
+ parentDataProperty: "border",
1425
+ rootData
1426
+ }))) {
1427
+ vErrors = vErrors === null ? validate70.errors : vErrors.concat(validate70.errors);
1428
+ errors = vErrors.length;
1429
+ }
1430
+ }
1431
+ if (data.columns !== undefined) {
1432
+ if (!(validate87(data.columns, {
1433
+ dataPath: dataPath + "/columns",
1434
+ parentData: data,
1435
+ parentDataProperty: "columns",
1436
+ rootData
1437
+ }))) {
1438
+ vErrors = vErrors === null ? validate87.errors : vErrors.concat(validate87.errors);
1439
+ errors = vErrors.length;
1440
+ }
1441
+ }
1442
+ if (data.columnDefault !== undefined) {
1443
+ if (!(validate90(data.columnDefault, {
1444
+ dataPath: dataPath + "/columnDefault",
1445
+ parentData: data,
1446
+ parentDataProperty: "columnDefault",
1447
+ rootData
1448
+ }))) {
1449
+ vErrors = vErrors === null ? validate90.errors : vErrors.concat(validate90.errors);
1450
+ errors = vErrors.length;
1451
+ }
1452
+ }
1453
+ if (data.columnCount !== undefined) {
1454
+ let data3 = data.columnCount;
1455
+ if (!((typeof data3 == "number") && (isFinite(data3)))) {
1456
+ const err1 = {
1457
+ keyword: "type",
1458
+ dataPath: dataPath + "/columnCount",
1459
+ schemaPath: "#/properties/columnCount/type",
1460
+ params: {
1461
+ type: "number"
1462
+ },
1463
+ message: "should be number"
1464
+ };
1465
+ if (vErrors === null) {
1466
+ vErrors = [err1];
1467
+ } else {
1468
+ vErrors.push(err1);
1469
+ }
1470
+ errors++;
1471
+ }
1472
+ }
1473
+ } else {
1474
+ const err2 = {
1475
+ keyword: "type",
1476
+ dataPath,
1477
+ schemaPath: "#/type",
1478
+ params: {
1479
+ type: "object"
1480
+ },
1481
+ message: "should be object"
1482
+ };
1483
+ if (vErrors === null) {
1484
+ vErrors = [err2];
1485
+ } else {
1486
+ vErrors.push(err2);
1487
+ }
1488
+ errors++;
1489
+ }
1490
+ validate69.errors = vErrors;
1491
+ return errors === 0;
1492
+ }