table 6.3.1 → 6.4.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.
Files changed (58) hide show
  1. package/dist/{src/alignString.d.ts → alignString.d.ts} +2 -1
  2. package/dist/{src/alignString.js → alignString.js} +1 -18
  3. package/dist/{src/alignTableData.d.ts → alignTableData.d.ts} +0 -0
  4. package/dist/{src/alignTableData.js → alignTableData.js} +0 -1
  5. package/dist/{src/calculateCellHeight.d.ts → calculateCellHeight.d.ts} +0 -0
  6. package/dist/{src/calculateCellHeight.js → calculateCellHeight.js} +1 -6
  7. package/dist/{src/calculateCellWidthIndex.d.ts → calculateCellWidthIndex.d.ts} +0 -0
  8. package/dist/{src/calculateCellWidthIndex.js → calculateCellWidthIndex.js} +0 -1
  9. package/dist/{src/calculateMaximumColumnWidthIndex.d.ts → calculateMaximumColumnWidthIndex.d.ts} +0 -0
  10. package/dist/{src/calculateMaximumColumnWidthIndex.js → calculateMaximumColumnWidthIndex.js} +0 -1
  11. package/dist/{src/calculateRowHeightIndex.d.ts → calculateRowHeightIndex.d.ts} +0 -0
  12. package/dist/{src/calculateRowHeightIndex.js → calculateRowHeightIndex.js} +0 -9
  13. package/dist/{src/createStream.d.ts → createStream.d.ts} +0 -0
  14. package/dist/{src/createStream.js → createStream.js} +0 -1
  15. package/dist/{src/drawBorder.d.ts → drawBorder.d.ts} +0 -0
  16. package/dist/{src/drawBorder.js → drawBorder.js} +0 -1
  17. package/dist/{src/drawHorizontalContent.d.ts → drawHorizontalContent.d.ts} +0 -0
  18. package/dist/{src/drawHorizontalContent.js → drawHorizontalContent.js} +0 -1
  19. package/dist/{src/drawRow.d.ts → drawRow.d.ts} +0 -0
  20. package/dist/{src/drawRow.js → drawRow.js} +0 -1
  21. package/dist/{src/drawTable.d.ts → drawTable.d.ts} +0 -0
  22. package/dist/{src/drawTable.js → drawTable.js} +0 -1
  23. package/dist/generated/validators.d.ts +13 -0
  24. package/dist/{src → generated}/validators.js +685 -398
  25. package/dist/{src/getBorderCharacters.d.ts → getBorderCharacters.d.ts} +0 -0
  26. package/dist/{src/getBorderCharacters.js → getBorderCharacters.js} +0 -1
  27. package/dist/{src/index.d.ts → index.d.ts} +0 -0
  28. package/dist/{src/index.js → index.js} +0 -1
  29. package/dist/{src/makeConfig.d.ts → makeConfig.d.ts} +0 -0
  30. package/dist/{src/makeConfig.js → makeConfig.js} +0 -1
  31. package/dist/{src/makeStreamConfig.d.ts → makeStreamConfig.d.ts} +0 -0
  32. package/dist/{src/makeStreamConfig.js → makeStreamConfig.js} +0 -1
  33. package/dist/{src/mapDataUsingRowHeightIndex.d.ts → mapDataUsingRowHeightIndex.d.ts} +0 -0
  34. package/dist/{src/mapDataUsingRowHeightIndex.js → mapDataUsingRowHeightIndex.js} +0 -1
  35. package/dist/{src/padTableData.d.ts → padTableData.d.ts} +0 -0
  36. package/dist/{src/padTableData.js → padTableData.js} +0 -1
  37. package/dist/{src/stringifyTableData.d.ts → stringifyTableData.d.ts} +0 -0
  38. package/dist/{src/stringifyTableData.js → stringifyTableData.js} +0 -1
  39. package/dist/{src/table.d.ts → table.d.ts} +0 -0
  40. package/dist/{src/table.js → table.js} +0 -1
  41. package/dist/{src/truncateTableData.d.ts → truncateTableData.d.ts} +0 -0
  42. package/dist/{src/truncateTableData.js → truncateTableData.js} +0 -1
  43. package/dist/{src/types → types}/api.d.ts +0 -0
  44. package/dist/{src/types → types}/api.js +0 -1
  45. package/dist/{src/types → types}/internal.d.ts +0 -0
  46. package/dist/{src/types → types}/internal.js +0 -1
  47. package/dist/validateConfig.d.ts +3 -0
  48. package/dist/{src/validateConfig.js → validateConfig.js} +2 -6
  49. package/dist/{src/validateTableData.d.ts → validateTableData.d.ts} +0 -0
  50. package/dist/{src/validateTableData.js → validateTableData.js} +0 -1
  51. package/dist/{src/wrapCell.d.ts → wrapCell.d.ts} +0 -0
  52. package/dist/{src/wrapCell.js → wrapCell.js} +0 -1
  53. package/dist/{src/wrapString.d.ts → wrapString.d.ts} +0 -0
  54. package/dist/{src/wrapString.js → wrapString.js} +0 -1
  55. package/dist/{src/wrapWord.d.ts → wrapWord.d.ts} +0 -0
  56. package/dist/{src/wrapWord.js → wrapWord.js} +0 -1
  57. package/package.json +10 -14
  58. package/dist/src/validateConfig.d.ts +0 -3
@@ -81,13 +81,7 @@ const func8 = Object.prototype.hasOwnProperty;
81
81
  const schema16 = {
82
82
  "type": "string"
83
83
  };
84
-
85
- function validate46(data, {
86
- instancePath = "",
87
- parentData,
88
- parentDataProperty,
89
- rootData = data
90
- } = {}) {
84
+ function validate46(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
91
85
  let vErrors = null;
92
86
  let errors = 0;
93
87
  if (typeof data !== "string") {
@@ -102,7 +96,8 @@ function validate46(data, {
102
96
  };
103
97
  if (vErrors === null) {
104
98
  vErrors = [err0];
105
- } else {
99
+ }
100
+ else {
106
101
  vErrors.push(err0);
107
102
  }
108
103
  errors++;
@@ -110,13 +105,7 @@ function validate46(data, {
110
105
  validate46.errors = vErrors;
111
106
  return errors === 0;
112
107
  }
113
-
114
- function validate45(data, {
115
- instancePath = "",
116
- parentData,
117
- parentDataProperty,
118
- rootData = data
119
- } = {}) {
108
+ function validate45(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
120
109
  let vErrors = null;
121
110
  let errors = 0;
122
111
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -133,7 +122,8 @@ function validate45(data, {
133
122
  };
134
123
  if (vErrors === null) {
135
124
  vErrors = [err0];
136
- } else {
125
+ }
126
+ else {
137
127
  vErrors.push(err0);
138
128
  }
139
129
  errors++;
@@ -141,170 +131,171 @@ function validate45(data, {
141
131
  }
142
132
  if (data.topBody !== undefined) {
143
133
  if (!(validate46(data.topBody, {
144
- instancePath: instancePath + "/topBody",
145
- parentData: data,
146
- parentDataProperty: "topBody",
147
- rootData
148
- }))) {
134
+ instancePath: instancePath + "/topBody",
135
+ parentData: data,
136
+ parentDataProperty: "topBody",
137
+ rootData
138
+ }))) {
149
139
  vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
150
140
  errors = vErrors.length;
151
141
  }
152
142
  }
153
143
  if (data.topJoin !== undefined) {
154
144
  if (!(validate46(data.topJoin, {
155
- instancePath: instancePath + "/topJoin",
156
- parentData: data,
157
- parentDataProperty: "topJoin",
158
- rootData
159
- }))) {
145
+ instancePath: instancePath + "/topJoin",
146
+ parentData: data,
147
+ parentDataProperty: "topJoin",
148
+ rootData
149
+ }))) {
160
150
  vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
161
151
  errors = vErrors.length;
162
152
  }
163
153
  }
164
154
  if (data.topLeft !== undefined) {
165
155
  if (!(validate46(data.topLeft, {
166
- instancePath: instancePath + "/topLeft",
167
- parentData: data,
168
- parentDataProperty: "topLeft",
169
- rootData
170
- }))) {
156
+ instancePath: instancePath + "/topLeft",
157
+ parentData: data,
158
+ parentDataProperty: "topLeft",
159
+ rootData
160
+ }))) {
171
161
  vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
172
162
  errors = vErrors.length;
173
163
  }
174
164
  }
175
165
  if (data.topRight !== undefined) {
176
166
  if (!(validate46(data.topRight, {
177
- instancePath: instancePath + "/topRight",
178
- parentData: data,
179
- parentDataProperty: "topRight",
180
- rootData
181
- }))) {
167
+ instancePath: instancePath + "/topRight",
168
+ parentData: data,
169
+ parentDataProperty: "topRight",
170
+ rootData
171
+ }))) {
182
172
  vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
183
173
  errors = vErrors.length;
184
174
  }
185
175
  }
186
176
  if (data.bottomBody !== undefined) {
187
177
  if (!(validate46(data.bottomBody, {
188
- instancePath: instancePath + "/bottomBody",
189
- parentData: data,
190
- parentDataProperty: "bottomBody",
191
- rootData
192
- }))) {
178
+ instancePath: instancePath + "/bottomBody",
179
+ parentData: data,
180
+ parentDataProperty: "bottomBody",
181
+ rootData
182
+ }))) {
193
183
  vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
194
184
  errors = vErrors.length;
195
185
  }
196
186
  }
197
187
  if (data.bottomJoin !== undefined) {
198
188
  if (!(validate46(data.bottomJoin, {
199
- instancePath: instancePath + "/bottomJoin",
200
- parentData: data,
201
- parentDataProperty: "bottomJoin",
202
- rootData
203
- }))) {
189
+ instancePath: instancePath + "/bottomJoin",
190
+ parentData: data,
191
+ parentDataProperty: "bottomJoin",
192
+ rootData
193
+ }))) {
204
194
  vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
205
195
  errors = vErrors.length;
206
196
  }
207
197
  }
208
198
  if (data.bottomLeft !== undefined) {
209
199
  if (!(validate46(data.bottomLeft, {
210
- instancePath: instancePath + "/bottomLeft",
211
- parentData: data,
212
- parentDataProperty: "bottomLeft",
213
- rootData
214
- }))) {
200
+ instancePath: instancePath + "/bottomLeft",
201
+ parentData: data,
202
+ parentDataProperty: "bottomLeft",
203
+ rootData
204
+ }))) {
215
205
  vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
216
206
  errors = vErrors.length;
217
207
  }
218
208
  }
219
209
  if (data.bottomRight !== undefined) {
220
210
  if (!(validate46(data.bottomRight, {
221
- instancePath: instancePath + "/bottomRight",
222
- parentData: data,
223
- parentDataProperty: "bottomRight",
224
- rootData
225
- }))) {
211
+ instancePath: instancePath + "/bottomRight",
212
+ parentData: data,
213
+ parentDataProperty: "bottomRight",
214
+ rootData
215
+ }))) {
226
216
  vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
227
217
  errors = vErrors.length;
228
218
  }
229
219
  }
230
220
  if (data.bodyLeft !== undefined) {
231
221
  if (!(validate46(data.bodyLeft, {
232
- instancePath: instancePath + "/bodyLeft",
233
- parentData: data,
234
- parentDataProperty: "bodyLeft",
235
- rootData
236
- }))) {
222
+ instancePath: instancePath + "/bodyLeft",
223
+ parentData: data,
224
+ parentDataProperty: "bodyLeft",
225
+ rootData
226
+ }))) {
237
227
  vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
238
228
  errors = vErrors.length;
239
229
  }
240
230
  }
241
231
  if (data.bodyRight !== undefined) {
242
232
  if (!(validate46(data.bodyRight, {
243
- instancePath: instancePath + "/bodyRight",
244
- parentData: data,
245
- parentDataProperty: "bodyRight",
246
- rootData
247
- }))) {
233
+ instancePath: instancePath + "/bodyRight",
234
+ parentData: data,
235
+ parentDataProperty: "bodyRight",
236
+ rootData
237
+ }))) {
248
238
  vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
249
239
  errors = vErrors.length;
250
240
  }
251
241
  }
252
242
  if (data.bodyJoin !== undefined) {
253
243
  if (!(validate46(data.bodyJoin, {
254
- instancePath: instancePath + "/bodyJoin",
255
- parentData: data,
256
- parentDataProperty: "bodyJoin",
257
- rootData
258
- }))) {
244
+ instancePath: instancePath + "/bodyJoin",
245
+ parentData: data,
246
+ parentDataProperty: "bodyJoin",
247
+ rootData
248
+ }))) {
259
249
  vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
260
250
  errors = vErrors.length;
261
251
  }
262
252
  }
263
253
  if (data.joinBody !== undefined) {
264
254
  if (!(validate46(data.joinBody, {
265
- instancePath: instancePath + "/joinBody",
266
- parentData: data,
267
- parentDataProperty: "joinBody",
268
- rootData
269
- }))) {
255
+ instancePath: instancePath + "/joinBody",
256
+ parentData: data,
257
+ parentDataProperty: "joinBody",
258
+ rootData
259
+ }))) {
270
260
  vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
271
261
  errors = vErrors.length;
272
262
  }
273
263
  }
274
264
  if (data.joinLeft !== undefined) {
275
265
  if (!(validate46(data.joinLeft, {
276
- instancePath: instancePath + "/joinLeft",
277
- parentData: data,
278
- parentDataProperty: "joinLeft",
279
- rootData
280
- }))) {
266
+ instancePath: instancePath + "/joinLeft",
267
+ parentData: data,
268
+ parentDataProperty: "joinLeft",
269
+ rootData
270
+ }))) {
281
271
  vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
282
272
  errors = vErrors.length;
283
273
  }
284
274
  }
285
275
  if (data.joinRight !== undefined) {
286
276
  if (!(validate46(data.joinRight, {
287
- instancePath: instancePath + "/joinRight",
288
- parentData: data,
289
- parentDataProperty: "joinRight",
290
- rootData
291
- }))) {
277
+ instancePath: instancePath + "/joinRight",
278
+ parentData: data,
279
+ parentDataProperty: "joinRight",
280
+ rootData
281
+ }))) {
292
282
  vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
293
283
  errors = vErrors.length;
294
284
  }
295
285
  }
296
286
  if (data.joinJoin !== undefined) {
297
287
  if (!(validate46(data.joinJoin, {
298
- instancePath: instancePath + "/joinJoin",
299
- parentData: data,
300
- parentDataProperty: "joinJoin",
301
- rootData
302
- }))) {
288
+ instancePath: instancePath + "/joinJoin",
289
+ parentData: data,
290
+ parentDataProperty: "joinJoin",
291
+ rootData
292
+ }))) {
303
293
  vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
304
294
  errors = vErrors.length;
305
295
  }
306
296
  }
307
- } else {
297
+ }
298
+ else {
308
299
  const err1 = {
309
300
  instancePath,
310
301
  schemaPath: "#/type",
@@ -316,7 +307,8 @@ function validate45(data, {
316
307
  };
317
308
  if (vErrors === null) {
318
309
  vErrors = [err1];
319
- } else {
310
+ }
311
+ else {
320
312
  vErrors.push(err1);
321
313
  }
322
314
  errors++;
@@ -325,13 +317,20 @@ function validate45(data, {
325
317
  return errors === 0;
326
318
  }
327
319
  const schema17 = {
328
- "type": "object",
329
- "patternProperties": {
330
- "^[0-9]+$": {
331
- "$ref": "#/definitions/column"
332
- }
333
- },
334
- "additionalProperties": false
320
+ "oneOf": [{
321
+ "type": "object",
322
+ "patternProperties": {
323
+ "^[0-9]+$": {
324
+ "$ref": "#/definitions/column"
325
+ }
326
+ },
327
+ "additionalProperties": false
328
+ }, {
329
+ "type": "array",
330
+ "items": {
331
+ "$ref": "#/definitions/column"
332
+ }
333
+ }]
335
334
  };
336
335
  const pattern0 = new RegExp("^[0-9]+$", "u");
337
336
  const schema18 = {
@@ -342,7 +341,9 @@ const schema18 = {
342
341
  "enum": ["left", "right", "center"]
343
342
  },
344
343
  "width": {
345
- "type": "number"
344
+ "type": "number",
345
+ "minimum": 1,
346
+ "multipleOf": 1
346
347
  },
347
348
  "wrapWord": {
348
349
  "type": "boolean"
@@ -360,13 +361,7 @@ const schema18 = {
360
361
  "additionalProperties": false
361
362
  };
362
363
  const func0 = require("ajv/dist/runtime/equal").default;
363
-
364
- function validate64(data, {
365
- instancePath = "",
366
- parentData,
367
- parentDataProperty,
368
- rootData = data
369
- } = {}) {
364
+ function validate64(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
370
365
  let vErrors = null;
371
366
  let errors = 0;
372
367
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -383,7 +378,8 @@ function validate64(data, {
383
378
  };
384
379
  if (vErrors === null) {
385
380
  vErrors = [err0];
386
- } else {
381
+ }
382
+ else {
387
383
  vErrors.push(err0);
388
384
  }
389
385
  errors++;
@@ -403,7 +399,8 @@ function validate64(data, {
403
399
  };
404
400
  if (vErrors === null) {
405
401
  vErrors = [err1];
406
- } else {
402
+ }
403
+ else {
407
404
  vErrors.push(err1);
408
405
  }
409
406
  errors++;
@@ -420,7 +417,8 @@ function validate64(data, {
420
417
  };
421
418
  if (vErrors === null) {
422
419
  vErrors = [err2];
423
- } else {
420
+ }
421
+ else {
424
422
  vErrors.push(err2);
425
423
  }
426
424
  errors++;
@@ -428,8 +426,48 @@ function validate64(data, {
428
426
  }
429
427
  if (data.width !== undefined) {
430
428
  let data1 = data.width;
431
- if (!((typeof data1 == "number") && (isFinite(data1)))) {
432
- const err3 = {
429
+ if ((typeof data1 == "number") && (isFinite(data1))) {
430
+ if (data1 < 1 || isNaN(data1)) {
431
+ const err3 = {
432
+ instancePath: instancePath + "/width",
433
+ schemaPath: "#/properties/width/minimum",
434
+ keyword: "minimum",
435
+ params: {
436
+ comparison: ">=",
437
+ limit: 1
438
+ },
439
+ message: "must be >= 1"
440
+ };
441
+ if (vErrors === null) {
442
+ vErrors = [err3];
443
+ }
444
+ else {
445
+ vErrors.push(err3);
446
+ }
447
+ errors++;
448
+ }
449
+ let res0;
450
+ if ((1 === 0 || (res0 = data1 / 1, res0 !== parseInt(res0)))) {
451
+ const err4 = {
452
+ instancePath: instancePath + "/width",
453
+ schemaPath: "#/properties/width/multipleOf",
454
+ keyword: "multipleOf",
455
+ params: {
456
+ multipleOf: 1
457
+ },
458
+ message: "must be multiple of 1"
459
+ };
460
+ if (vErrors === null) {
461
+ vErrors = [err4];
462
+ }
463
+ else {
464
+ vErrors.push(err4);
465
+ }
466
+ errors++;
467
+ }
468
+ }
469
+ else {
470
+ const err5 = {
433
471
  instancePath: instancePath + "/width",
434
472
  schemaPath: "#/properties/width/type",
435
473
  keyword: "type",
@@ -439,16 +477,17 @@ function validate64(data, {
439
477
  message: "must be number"
440
478
  };
441
479
  if (vErrors === null) {
442
- vErrors = [err3];
443
- } else {
444
- vErrors.push(err3);
480
+ vErrors = [err5];
481
+ }
482
+ else {
483
+ vErrors.push(err5);
445
484
  }
446
485
  errors++;
447
486
  }
448
487
  }
449
488
  if (data.wrapWord !== undefined) {
450
489
  if (typeof data.wrapWord !== "boolean") {
451
- const err4 = {
490
+ const err6 = {
452
491
  instancePath: instancePath + "/wrapWord",
453
492
  schemaPath: "#/properties/wrapWord/type",
454
493
  keyword: "type",
@@ -458,9 +497,10 @@ function validate64(data, {
458
497
  message: "must be boolean"
459
498
  };
460
499
  if (vErrors === null) {
461
- vErrors = [err4];
462
- } else {
463
- vErrors.push(err4);
500
+ vErrors = [err6];
501
+ }
502
+ else {
503
+ vErrors.push(err6);
464
504
  }
465
505
  errors++;
466
506
  }
@@ -468,7 +508,7 @@ function validate64(data, {
468
508
  if (data.truncate !== undefined) {
469
509
  let data3 = data.truncate;
470
510
  if (!((typeof data3 == "number") && (isFinite(data3)))) {
471
- const err5 = {
511
+ const err7 = {
472
512
  instancePath: instancePath + "/truncate",
473
513
  schemaPath: "#/properties/truncate/type",
474
514
  keyword: "type",
@@ -478,9 +518,10 @@ function validate64(data, {
478
518
  message: "must be number"
479
519
  };
480
520
  if (vErrors === null) {
481
- vErrors = [err5];
482
- } else {
483
- vErrors.push(err5);
521
+ vErrors = [err7];
522
+ }
523
+ else {
524
+ vErrors.push(err7);
484
525
  }
485
526
  errors++;
486
527
  }
@@ -488,7 +529,7 @@ function validate64(data, {
488
529
  if (data.paddingLeft !== undefined) {
489
530
  let data4 = data.paddingLeft;
490
531
  if (!((typeof data4 == "number") && (isFinite(data4)))) {
491
- const err6 = {
532
+ const err8 = {
492
533
  instancePath: instancePath + "/paddingLeft",
493
534
  schemaPath: "#/properties/paddingLeft/type",
494
535
  keyword: "type",
@@ -498,9 +539,10 @@ function validate64(data, {
498
539
  message: "must be number"
499
540
  };
500
541
  if (vErrors === null) {
501
- vErrors = [err6];
502
- } else {
503
- vErrors.push(err6);
542
+ vErrors = [err8];
543
+ }
544
+ else {
545
+ vErrors.push(err8);
504
546
  }
505
547
  errors++;
506
548
  }
@@ -508,7 +550,7 @@ function validate64(data, {
508
550
  if (data.paddingRight !== undefined) {
509
551
  let data5 = data.paddingRight;
510
552
  if (!((typeof data5 == "number") && (isFinite(data5)))) {
511
- const err7 = {
553
+ const err9 = {
512
554
  instancePath: instancePath + "/paddingRight",
513
555
  schemaPath: "#/properties/paddingRight/type",
514
556
  keyword: "type",
@@ -518,15 +560,17 @@ function validate64(data, {
518
560
  message: "must be number"
519
561
  };
520
562
  if (vErrors === null) {
521
- vErrors = [err7];
522
- } else {
523
- vErrors.push(err7);
563
+ vErrors = [err9];
564
+ }
565
+ else {
566
+ vErrors.push(err9);
524
567
  }
525
568
  errors++;
526
569
  }
527
570
  }
528
- } else {
529
- const err8 = {
571
+ }
572
+ else {
573
+ const err10 = {
530
574
  instancePath,
531
575
  schemaPath: "#/type",
532
576
  keyword: "type",
@@ -536,30 +580,29 @@ function validate64(data, {
536
580
  message: "must be object"
537
581
  };
538
582
  if (vErrors === null) {
539
- vErrors = [err8];
540
- } else {
541
- vErrors.push(err8);
583
+ vErrors = [err10];
584
+ }
585
+ else {
586
+ vErrors.push(err10);
542
587
  }
543
588
  errors++;
544
589
  }
545
590
  validate64.errors = vErrors;
546
591
  return errors === 0;
547
592
  }
548
-
549
- function validate63(data, {
550
- instancePath = "",
551
- parentData,
552
- parentDataProperty,
553
- rootData = data
554
- } = {}) {
593
+ function validate63(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
555
594
  let vErrors = null;
556
595
  let errors = 0;
596
+ const _errs0 = errors;
597
+ let valid0 = false;
598
+ let passing0 = null;
599
+ const _errs1 = errors;
557
600
  if (data && typeof data == "object" && !Array.isArray(data)) {
558
601
  for (const key0 in data) {
559
602
  if (!(pattern0.test(key0))) {
560
603
  const err0 = {
561
604
  instancePath,
562
- schemaPath: "#/additionalProperties",
605
+ schemaPath: "#/oneOf/0/additionalProperties",
563
606
  keyword: "additionalProperties",
564
607
  params: {
565
608
  additionalProperty: key0
@@ -568,7 +611,8 @@ function validate63(data, {
568
611
  };
569
612
  if (vErrors === null) {
570
613
  vErrors = [err0];
571
- } else {
614
+ }
615
+ else {
572
616
  vErrors.push(err0);
573
617
  }
574
618
  errors++;
@@ -577,20 +621,21 @@ function validate63(data, {
577
621
  for (const key1 in data) {
578
622
  if (pattern0.test(key1)) {
579
623
  if (!(validate64(data[key1], {
580
- instancePath: instancePath + "/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),
581
- parentData: data,
582
- parentDataProperty: key1,
583
- rootData
584
- }))) {
624
+ instancePath: instancePath + "/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),
625
+ parentData: data,
626
+ parentDataProperty: key1,
627
+ rootData
628
+ }))) {
585
629
  vErrors = vErrors === null ? validate64.errors : vErrors.concat(validate64.errors);
586
630
  errors = vErrors.length;
587
631
  }
588
632
  }
589
633
  }
590
- } else {
634
+ }
635
+ else {
591
636
  const err1 = {
592
637
  instancePath,
593
- schemaPath: "#/type",
638
+ schemaPath: "#/oneOf/0/type",
594
639
  keyword: "type",
595
640
  params: {
596
641
  type: "object"
@@ -599,21 +644,94 @@ function validate63(data, {
599
644
  };
600
645
  if (vErrors === null) {
601
646
  vErrors = [err1];
602
- } else {
647
+ }
648
+ else {
603
649
  vErrors.push(err1);
604
650
  }
605
651
  errors++;
606
652
  }
653
+ var _valid0 = _errs1 === errors;
654
+ if (_valid0) {
655
+ valid0 = true;
656
+ passing0 = 0;
657
+ }
658
+ const _errs5 = errors;
659
+ if (Array.isArray(data)) {
660
+ const len0 = data.length;
661
+ for (let i0 = 0; i0 < len0; i0++) {
662
+ if (!(validate64(data[i0], {
663
+ instancePath: instancePath + "/" + i0,
664
+ parentData: data,
665
+ parentDataProperty: i0,
666
+ rootData
667
+ }))) {
668
+ vErrors = vErrors === null ? validate64.errors : vErrors.concat(validate64.errors);
669
+ errors = vErrors.length;
670
+ }
671
+ }
672
+ }
673
+ else {
674
+ const err2 = {
675
+ instancePath,
676
+ schemaPath: "#/oneOf/1/type",
677
+ keyword: "type",
678
+ params: {
679
+ type: "array"
680
+ },
681
+ message: "must be array"
682
+ };
683
+ if (vErrors === null) {
684
+ vErrors = [err2];
685
+ }
686
+ else {
687
+ vErrors.push(err2);
688
+ }
689
+ errors++;
690
+ }
691
+ var _valid0 = _errs5 === errors;
692
+ if (_valid0 && valid0) {
693
+ valid0 = false;
694
+ passing0 = [passing0, 1];
695
+ }
696
+ else {
697
+ if (_valid0) {
698
+ valid0 = true;
699
+ passing0 = 1;
700
+ }
701
+ }
702
+ if (!valid0) {
703
+ const err3 = {
704
+ instancePath,
705
+ schemaPath: "#/oneOf",
706
+ keyword: "oneOf",
707
+ params: {
708
+ passingSchemas: passing0
709
+ },
710
+ message: "must match exactly one schema in oneOf"
711
+ };
712
+ if (vErrors === null) {
713
+ vErrors = [err3];
714
+ }
715
+ else {
716
+ vErrors.push(err3);
717
+ }
718
+ errors++;
719
+ }
720
+ else {
721
+ errors = _errs0;
722
+ if (vErrors !== null) {
723
+ if (_errs0) {
724
+ vErrors.length = _errs0;
725
+ }
726
+ else {
727
+ vErrors = null;
728
+ }
729
+ }
730
+ }
607
731
  validate63.errors = vErrors;
608
732
  return errors === 0;
609
733
  }
610
-
611
- function validate67(data, {
612
- instancePath = "",
613
- parentData,
614
- parentDataProperty,
615
- rootData = data
616
- } = {}) {
734
+ function validate68(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
617
735
  let vErrors = null;
618
736
  let errors = 0;
619
737
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -630,7 +748,8 @@ function validate67(data, {
630
748
  };
631
749
  if (vErrors === null) {
632
750
  vErrors = [err0];
633
- } else {
751
+ }
752
+ else {
634
753
  vErrors.push(err0);
635
754
  }
636
755
  errors++;
@@ -650,7 +769,8 @@ function validate67(data, {
650
769
  };
651
770
  if (vErrors === null) {
652
771
  vErrors = [err1];
653
- } else {
772
+ }
773
+ else {
654
774
  vErrors.push(err1);
655
775
  }
656
776
  errors++;
@@ -667,7 +787,8 @@ function validate67(data, {
667
787
  };
668
788
  if (vErrors === null) {
669
789
  vErrors = [err2];
670
- } else {
790
+ }
791
+ else {
671
792
  vErrors.push(err2);
672
793
  }
673
794
  errors++;
@@ -675,8 +796,48 @@ function validate67(data, {
675
796
  }
676
797
  if (data.width !== undefined) {
677
798
  let data1 = data.width;
678
- if (!((typeof data1 == "number") && (isFinite(data1)))) {
679
- const err3 = {
799
+ if ((typeof data1 == "number") && (isFinite(data1))) {
800
+ if (data1 < 1 || isNaN(data1)) {
801
+ const err3 = {
802
+ instancePath: instancePath + "/width",
803
+ schemaPath: "#/properties/width/minimum",
804
+ keyword: "minimum",
805
+ params: {
806
+ comparison: ">=",
807
+ limit: 1
808
+ },
809
+ message: "must be >= 1"
810
+ };
811
+ if (vErrors === null) {
812
+ vErrors = [err3];
813
+ }
814
+ else {
815
+ vErrors.push(err3);
816
+ }
817
+ errors++;
818
+ }
819
+ let res0;
820
+ if ((1 === 0 || (res0 = data1 / 1, res0 !== parseInt(res0)))) {
821
+ const err4 = {
822
+ instancePath: instancePath + "/width",
823
+ schemaPath: "#/properties/width/multipleOf",
824
+ keyword: "multipleOf",
825
+ params: {
826
+ multipleOf: 1
827
+ },
828
+ message: "must be multiple of 1"
829
+ };
830
+ if (vErrors === null) {
831
+ vErrors = [err4];
832
+ }
833
+ else {
834
+ vErrors.push(err4);
835
+ }
836
+ errors++;
837
+ }
838
+ }
839
+ else {
840
+ const err5 = {
680
841
  instancePath: instancePath + "/width",
681
842
  schemaPath: "#/properties/width/type",
682
843
  keyword: "type",
@@ -686,16 +847,17 @@ function validate67(data, {
686
847
  message: "must be number"
687
848
  };
688
849
  if (vErrors === null) {
689
- vErrors = [err3];
690
- } else {
691
- vErrors.push(err3);
850
+ vErrors = [err5];
851
+ }
852
+ else {
853
+ vErrors.push(err5);
692
854
  }
693
855
  errors++;
694
856
  }
695
857
  }
696
858
  if (data.wrapWord !== undefined) {
697
859
  if (typeof data.wrapWord !== "boolean") {
698
- const err4 = {
860
+ const err6 = {
699
861
  instancePath: instancePath + "/wrapWord",
700
862
  schemaPath: "#/properties/wrapWord/type",
701
863
  keyword: "type",
@@ -705,9 +867,10 @@ function validate67(data, {
705
867
  message: "must be boolean"
706
868
  };
707
869
  if (vErrors === null) {
708
- vErrors = [err4];
709
- } else {
710
- vErrors.push(err4);
870
+ vErrors = [err6];
871
+ }
872
+ else {
873
+ vErrors.push(err6);
711
874
  }
712
875
  errors++;
713
876
  }
@@ -715,7 +878,7 @@ function validate67(data, {
715
878
  if (data.truncate !== undefined) {
716
879
  let data3 = data.truncate;
717
880
  if (!((typeof data3 == "number") && (isFinite(data3)))) {
718
- const err5 = {
881
+ const err7 = {
719
882
  instancePath: instancePath + "/truncate",
720
883
  schemaPath: "#/properties/truncate/type",
721
884
  keyword: "type",
@@ -725,9 +888,10 @@ function validate67(data, {
725
888
  message: "must be number"
726
889
  };
727
890
  if (vErrors === null) {
728
- vErrors = [err5];
729
- } else {
730
- vErrors.push(err5);
891
+ vErrors = [err7];
892
+ }
893
+ else {
894
+ vErrors.push(err7);
731
895
  }
732
896
  errors++;
733
897
  }
@@ -735,7 +899,7 @@ function validate67(data, {
735
899
  if (data.paddingLeft !== undefined) {
736
900
  let data4 = data.paddingLeft;
737
901
  if (!((typeof data4 == "number") && (isFinite(data4)))) {
738
- const err6 = {
902
+ const err8 = {
739
903
  instancePath: instancePath + "/paddingLeft",
740
904
  schemaPath: "#/properties/paddingLeft/type",
741
905
  keyword: "type",
@@ -745,9 +909,10 @@ function validate67(data, {
745
909
  message: "must be number"
746
910
  };
747
911
  if (vErrors === null) {
748
- vErrors = [err6];
749
- } else {
750
- vErrors.push(err6);
912
+ vErrors = [err8];
913
+ }
914
+ else {
915
+ vErrors.push(err8);
751
916
  }
752
917
  errors++;
753
918
  }
@@ -755,7 +920,7 @@ function validate67(data, {
755
920
  if (data.paddingRight !== undefined) {
756
921
  let data5 = data.paddingRight;
757
922
  if (!((typeof data5 == "number") && (isFinite(data5)))) {
758
- const err7 = {
923
+ const err9 = {
759
924
  instancePath: instancePath + "/paddingRight",
760
925
  schemaPath: "#/properties/paddingRight/type",
761
926
  keyword: "type",
@@ -765,15 +930,17 @@ function validate67(data, {
765
930
  message: "must be number"
766
931
  };
767
932
  if (vErrors === null) {
768
- vErrors = [err7];
769
- } else {
770
- vErrors.push(err7);
933
+ vErrors = [err9];
934
+ }
935
+ else {
936
+ vErrors.push(err9);
771
937
  }
772
938
  errors++;
773
939
  }
774
940
  }
775
- } else {
776
- const err8 = {
941
+ }
942
+ else {
943
+ const err10 = {
777
944
  instancePath,
778
945
  schemaPath: "#/type",
779
946
  keyword: "type",
@@ -783,22 +950,17 @@ function validate67(data, {
783
950
  message: "must be object"
784
951
  };
785
952
  if (vErrors === null) {
786
- vErrors = [err8];
787
- } else {
788
- vErrors.push(err8);
953
+ vErrors = [err10];
954
+ }
955
+ else {
956
+ vErrors.push(err10);
789
957
  }
790
958
  errors++;
791
959
  }
792
- validate67.errors = vErrors;
960
+ validate68.errors = vErrors;
793
961
  return errors === 0;
794
962
  }
795
-
796
- function validate43(data, {
797
- instancePath = "",
798
- parentData,
799
- parentDataProperty,
800
- rootData = data
801
- } = {}) {
963
+ function validate43(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
802
964
  /*# sourceURL="config.json" */ ;
803
965
  let vErrors = null;
804
966
  let errors = 0;
@@ -816,7 +978,8 @@ function validate43(data, {
816
978
  };
817
979
  if (vErrors === null) {
818
980
  vErrors = [err0];
819
- } else {
981
+ }
982
+ else {
820
983
  vErrors.push(err0);
821
984
  }
822
985
  errors++;
@@ -824,34 +987,34 @@ function validate43(data, {
824
987
  }
825
988
  if (data.border !== undefined) {
826
989
  if (!(validate45(data.border, {
827
- instancePath: instancePath + "/border",
828
- parentData: data,
829
- parentDataProperty: "border",
830
- rootData
831
- }))) {
990
+ instancePath: instancePath + "/border",
991
+ parentData: data,
992
+ parentDataProperty: "border",
993
+ rootData
994
+ }))) {
832
995
  vErrors = vErrors === null ? validate45.errors : vErrors.concat(validate45.errors);
833
996
  errors = vErrors.length;
834
997
  }
835
998
  }
836
999
  if (data.columns !== undefined) {
837
1000
  if (!(validate63(data.columns, {
838
- instancePath: instancePath + "/columns",
839
- parentData: data,
840
- parentDataProperty: "columns",
841
- rootData
842
- }))) {
1001
+ instancePath: instancePath + "/columns",
1002
+ parentData: data,
1003
+ parentDataProperty: "columns",
1004
+ rootData
1005
+ }))) {
843
1006
  vErrors = vErrors === null ? validate63.errors : vErrors.concat(validate63.errors);
844
1007
  errors = vErrors.length;
845
1008
  }
846
1009
  }
847
1010
  if (data.columnDefault !== undefined) {
848
- if (!(validate67(data.columnDefault, {
849
- instancePath: instancePath + "/columnDefault",
850
- parentData: data,
851
- parentDataProperty: "columnDefault",
852
- rootData
853
- }))) {
854
- vErrors = vErrors === null ? validate67.errors : vErrors.concat(validate67.errors);
1011
+ if (!(validate68(data.columnDefault, {
1012
+ instancePath: instancePath + "/columnDefault",
1013
+ parentData: data,
1014
+ parentDataProperty: "columnDefault",
1015
+ rootData
1016
+ }))) {
1017
+ vErrors = vErrors === null ? validate68.errors : vErrors.concat(validate68.errors);
855
1018
  errors = vErrors.length;
856
1019
  }
857
1020
  }
@@ -866,7 +1029,8 @@ function validate43(data, {
866
1029
  };
867
1030
  if (vErrors === null) {
868
1031
  vErrors = [err1];
869
- } else {
1032
+ }
1033
+ else {
870
1034
  vErrors.push(err1);
871
1035
  }
872
1036
  errors++;
@@ -883,7 +1047,8 @@ function validate43(data, {
883
1047
  };
884
1048
  if (vErrors === null) {
885
1049
  vErrors = [err2];
886
- } else {
1050
+ }
1051
+ else {
887
1052
  vErrors.push(err2);
888
1053
  }
889
1054
  errors++;
@@ -900,13 +1065,15 @@ function validate43(data, {
900
1065
  };
901
1066
  if (vErrors === null) {
902
1067
  vErrors = [err3];
903
- } else {
1068
+ }
1069
+ else {
904
1070
  vErrors.push(err3);
905
1071
  }
906
1072
  errors++;
907
1073
  }
908
1074
  }
909
- } else {
1075
+ }
1076
+ else {
910
1077
  const err4 = {
911
1078
  instancePath,
912
1079
  schemaPath: "#/type",
@@ -918,7 +1085,8 @@ function validate43(data, {
918
1085
  };
919
1086
  if (vErrors === null) {
920
1087
  vErrors = [err4];
921
- } else {
1088
+ }
1089
+ else {
922
1090
  vErrors.push(err4);
923
1091
  }
924
1092
  errors++;
@@ -926,7 +1094,7 @@ function validate43(data, {
926
1094
  validate43.errors = vErrors;
927
1095
  return errors === 0;
928
1096
  }
929
- exports["streamConfig.json"] = validate69;
1097
+ exports["streamConfig.json"] = validate70;
930
1098
  const schema20 = {
931
1099
  "$id": "streamConfig.json",
932
1100
  "$schema": "http://json-schema.org/draft-07/schema#",
@@ -950,13 +1118,7 @@ const schema20 = {
950
1118
  },
951
1119
  "additionalProperties": false
952
1120
  };
953
-
954
- function validate70(data, {
955
- instancePath = "",
956
- parentData,
957
- parentDataProperty,
958
- rootData = data
959
- } = {}) {
1121
+ function validate71(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
960
1122
  let vErrors = null;
961
1123
  let errors = 0;
962
1124
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -973,7 +1135,8 @@ function validate70(data, {
973
1135
  };
974
1136
  if (vErrors === null) {
975
1137
  vErrors = [err0];
976
- } else {
1138
+ }
1139
+ else {
977
1140
  vErrors.push(err0);
978
1141
  }
979
1142
  errors++;
@@ -981,170 +1144,171 @@ function validate70(data, {
981
1144
  }
982
1145
  if (data.topBody !== undefined) {
983
1146
  if (!(validate46(data.topBody, {
984
- instancePath: instancePath + "/topBody",
985
- parentData: data,
986
- parentDataProperty: "topBody",
987
- rootData
988
- }))) {
1147
+ instancePath: instancePath + "/topBody",
1148
+ parentData: data,
1149
+ parentDataProperty: "topBody",
1150
+ rootData
1151
+ }))) {
989
1152
  vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
990
1153
  errors = vErrors.length;
991
1154
  }
992
1155
  }
993
1156
  if (data.topJoin !== undefined) {
994
1157
  if (!(validate46(data.topJoin, {
995
- instancePath: instancePath + "/topJoin",
996
- parentData: data,
997
- parentDataProperty: "topJoin",
998
- rootData
999
- }))) {
1158
+ instancePath: instancePath + "/topJoin",
1159
+ parentData: data,
1160
+ parentDataProperty: "topJoin",
1161
+ rootData
1162
+ }))) {
1000
1163
  vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
1001
1164
  errors = vErrors.length;
1002
1165
  }
1003
1166
  }
1004
1167
  if (data.topLeft !== undefined) {
1005
1168
  if (!(validate46(data.topLeft, {
1006
- instancePath: instancePath + "/topLeft",
1007
- parentData: data,
1008
- parentDataProperty: "topLeft",
1009
- rootData
1010
- }))) {
1169
+ instancePath: instancePath + "/topLeft",
1170
+ parentData: data,
1171
+ parentDataProperty: "topLeft",
1172
+ rootData
1173
+ }))) {
1011
1174
  vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
1012
1175
  errors = vErrors.length;
1013
1176
  }
1014
1177
  }
1015
1178
  if (data.topRight !== undefined) {
1016
1179
  if (!(validate46(data.topRight, {
1017
- instancePath: instancePath + "/topRight",
1018
- parentData: data,
1019
- parentDataProperty: "topRight",
1020
- rootData
1021
- }))) {
1180
+ instancePath: instancePath + "/topRight",
1181
+ parentData: data,
1182
+ parentDataProperty: "topRight",
1183
+ rootData
1184
+ }))) {
1022
1185
  vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
1023
1186
  errors = vErrors.length;
1024
1187
  }
1025
1188
  }
1026
1189
  if (data.bottomBody !== undefined) {
1027
1190
  if (!(validate46(data.bottomBody, {
1028
- instancePath: instancePath + "/bottomBody",
1029
- parentData: data,
1030
- parentDataProperty: "bottomBody",
1031
- rootData
1032
- }))) {
1191
+ instancePath: instancePath + "/bottomBody",
1192
+ parentData: data,
1193
+ parentDataProperty: "bottomBody",
1194
+ rootData
1195
+ }))) {
1033
1196
  vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
1034
1197
  errors = vErrors.length;
1035
1198
  }
1036
1199
  }
1037
1200
  if (data.bottomJoin !== undefined) {
1038
1201
  if (!(validate46(data.bottomJoin, {
1039
- instancePath: instancePath + "/bottomJoin",
1040
- parentData: data,
1041
- parentDataProperty: "bottomJoin",
1042
- rootData
1043
- }))) {
1202
+ instancePath: instancePath + "/bottomJoin",
1203
+ parentData: data,
1204
+ parentDataProperty: "bottomJoin",
1205
+ rootData
1206
+ }))) {
1044
1207
  vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
1045
1208
  errors = vErrors.length;
1046
1209
  }
1047
1210
  }
1048
1211
  if (data.bottomLeft !== undefined) {
1049
1212
  if (!(validate46(data.bottomLeft, {
1050
- instancePath: instancePath + "/bottomLeft",
1051
- parentData: data,
1052
- parentDataProperty: "bottomLeft",
1053
- rootData
1054
- }))) {
1213
+ instancePath: instancePath + "/bottomLeft",
1214
+ parentData: data,
1215
+ parentDataProperty: "bottomLeft",
1216
+ rootData
1217
+ }))) {
1055
1218
  vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
1056
1219
  errors = vErrors.length;
1057
1220
  }
1058
1221
  }
1059
1222
  if (data.bottomRight !== undefined) {
1060
1223
  if (!(validate46(data.bottomRight, {
1061
- instancePath: instancePath + "/bottomRight",
1062
- parentData: data,
1063
- parentDataProperty: "bottomRight",
1064
- rootData
1065
- }))) {
1224
+ instancePath: instancePath + "/bottomRight",
1225
+ parentData: data,
1226
+ parentDataProperty: "bottomRight",
1227
+ rootData
1228
+ }))) {
1066
1229
  vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
1067
1230
  errors = vErrors.length;
1068
1231
  }
1069
1232
  }
1070
1233
  if (data.bodyLeft !== undefined) {
1071
1234
  if (!(validate46(data.bodyLeft, {
1072
- instancePath: instancePath + "/bodyLeft",
1073
- parentData: data,
1074
- parentDataProperty: "bodyLeft",
1075
- rootData
1076
- }))) {
1235
+ instancePath: instancePath + "/bodyLeft",
1236
+ parentData: data,
1237
+ parentDataProperty: "bodyLeft",
1238
+ rootData
1239
+ }))) {
1077
1240
  vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
1078
1241
  errors = vErrors.length;
1079
1242
  }
1080
1243
  }
1081
1244
  if (data.bodyRight !== undefined) {
1082
1245
  if (!(validate46(data.bodyRight, {
1083
- instancePath: instancePath + "/bodyRight",
1084
- parentData: data,
1085
- parentDataProperty: "bodyRight",
1086
- rootData
1087
- }))) {
1246
+ instancePath: instancePath + "/bodyRight",
1247
+ parentData: data,
1248
+ parentDataProperty: "bodyRight",
1249
+ rootData
1250
+ }))) {
1088
1251
  vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
1089
1252
  errors = vErrors.length;
1090
1253
  }
1091
1254
  }
1092
1255
  if (data.bodyJoin !== undefined) {
1093
1256
  if (!(validate46(data.bodyJoin, {
1094
- instancePath: instancePath + "/bodyJoin",
1095
- parentData: data,
1096
- parentDataProperty: "bodyJoin",
1097
- rootData
1098
- }))) {
1257
+ instancePath: instancePath + "/bodyJoin",
1258
+ parentData: data,
1259
+ parentDataProperty: "bodyJoin",
1260
+ rootData
1261
+ }))) {
1099
1262
  vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
1100
1263
  errors = vErrors.length;
1101
1264
  }
1102
1265
  }
1103
1266
  if (data.joinBody !== undefined) {
1104
1267
  if (!(validate46(data.joinBody, {
1105
- instancePath: instancePath + "/joinBody",
1106
- parentData: data,
1107
- parentDataProperty: "joinBody",
1108
- rootData
1109
- }))) {
1268
+ instancePath: instancePath + "/joinBody",
1269
+ parentData: data,
1270
+ parentDataProperty: "joinBody",
1271
+ rootData
1272
+ }))) {
1110
1273
  vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
1111
1274
  errors = vErrors.length;
1112
1275
  }
1113
1276
  }
1114
1277
  if (data.joinLeft !== undefined) {
1115
1278
  if (!(validate46(data.joinLeft, {
1116
- instancePath: instancePath + "/joinLeft",
1117
- parentData: data,
1118
- parentDataProperty: "joinLeft",
1119
- rootData
1120
- }))) {
1279
+ instancePath: instancePath + "/joinLeft",
1280
+ parentData: data,
1281
+ parentDataProperty: "joinLeft",
1282
+ rootData
1283
+ }))) {
1121
1284
  vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
1122
1285
  errors = vErrors.length;
1123
1286
  }
1124
1287
  }
1125
1288
  if (data.joinRight !== undefined) {
1126
1289
  if (!(validate46(data.joinRight, {
1127
- instancePath: instancePath + "/joinRight",
1128
- parentData: data,
1129
- parentDataProperty: "joinRight",
1130
- rootData
1131
- }))) {
1290
+ instancePath: instancePath + "/joinRight",
1291
+ parentData: data,
1292
+ parentDataProperty: "joinRight",
1293
+ rootData
1294
+ }))) {
1132
1295
  vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
1133
1296
  errors = vErrors.length;
1134
1297
  }
1135
1298
  }
1136
1299
  if (data.joinJoin !== undefined) {
1137
1300
  if (!(validate46(data.joinJoin, {
1138
- instancePath: instancePath + "/joinJoin",
1139
- parentData: data,
1140
- parentDataProperty: "joinJoin",
1141
- rootData
1142
- }))) {
1301
+ instancePath: instancePath + "/joinJoin",
1302
+ parentData: data,
1303
+ parentDataProperty: "joinJoin",
1304
+ rootData
1305
+ }))) {
1143
1306
  vErrors = vErrors === null ? validate46.errors : vErrors.concat(validate46.errors);
1144
1307
  errors = vErrors.length;
1145
1308
  }
1146
1309
  }
1147
- } else {
1310
+ }
1311
+ else {
1148
1312
  const err1 = {
1149
1313
  instancePath,
1150
1314
  schemaPath: "#/type",
@@ -1156,29 +1320,28 @@ function validate70(data, {
1156
1320
  };
1157
1321
  if (vErrors === null) {
1158
1322
  vErrors = [err1];
1159
- } else {
1323
+ }
1324
+ else {
1160
1325
  vErrors.push(err1);
1161
1326
  }
1162
1327
  errors++;
1163
1328
  }
1164
- validate70.errors = vErrors;
1329
+ validate71.errors = vErrors;
1165
1330
  return errors === 0;
1166
1331
  }
1167
-
1168
- function validate87(data, {
1169
- instancePath = "",
1170
- parentData,
1171
- parentDataProperty,
1172
- rootData = data
1173
- } = {}) {
1332
+ function validate88(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
1174
1333
  let vErrors = null;
1175
1334
  let errors = 0;
1335
+ const _errs0 = errors;
1336
+ let valid0 = false;
1337
+ let passing0 = null;
1338
+ const _errs1 = errors;
1176
1339
  if (data && typeof data == "object" && !Array.isArray(data)) {
1177
1340
  for (const key0 in data) {
1178
1341
  if (!(pattern0.test(key0))) {
1179
1342
  const err0 = {
1180
1343
  instancePath,
1181
- schemaPath: "#/additionalProperties",
1344
+ schemaPath: "#/oneOf/0/additionalProperties",
1182
1345
  keyword: "additionalProperties",
1183
1346
  params: {
1184
1347
  additionalProperty: key0
@@ -1187,7 +1350,8 @@ function validate87(data, {
1187
1350
  };
1188
1351
  if (vErrors === null) {
1189
1352
  vErrors = [err0];
1190
- } else {
1353
+ }
1354
+ else {
1191
1355
  vErrors.push(err0);
1192
1356
  }
1193
1357
  errors++;
@@ -1196,20 +1360,21 @@ function validate87(data, {
1196
1360
  for (const key1 in data) {
1197
1361
  if (pattern0.test(key1)) {
1198
1362
  if (!(validate64(data[key1], {
1199
- instancePath: instancePath + "/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),
1200
- parentData: data,
1201
- parentDataProperty: key1,
1202
- rootData
1203
- }))) {
1363
+ instancePath: instancePath + "/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),
1364
+ parentData: data,
1365
+ parentDataProperty: key1,
1366
+ rootData
1367
+ }))) {
1204
1368
  vErrors = vErrors === null ? validate64.errors : vErrors.concat(validate64.errors);
1205
1369
  errors = vErrors.length;
1206
1370
  }
1207
1371
  }
1208
1372
  }
1209
- } else {
1373
+ }
1374
+ else {
1210
1375
  const err1 = {
1211
1376
  instancePath,
1212
- schemaPath: "#/type",
1377
+ schemaPath: "#/oneOf/0/type",
1213
1378
  keyword: "type",
1214
1379
  params: {
1215
1380
  type: "object"
@@ -1218,21 +1383,94 @@ function validate87(data, {
1218
1383
  };
1219
1384
  if (vErrors === null) {
1220
1385
  vErrors = [err1];
1221
- } else {
1386
+ }
1387
+ else {
1222
1388
  vErrors.push(err1);
1223
1389
  }
1224
1390
  errors++;
1225
1391
  }
1226
- validate87.errors = vErrors;
1392
+ var _valid0 = _errs1 === errors;
1393
+ if (_valid0) {
1394
+ valid0 = true;
1395
+ passing0 = 0;
1396
+ }
1397
+ const _errs5 = errors;
1398
+ if (Array.isArray(data)) {
1399
+ const len0 = data.length;
1400
+ for (let i0 = 0; i0 < len0; i0++) {
1401
+ if (!(validate64(data[i0], {
1402
+ instancePath: instancePath + "/" + i0,
1403
+ parentData: data,
1404
+ parentDataProperty: i0,
1405
+ rootData
1406
+ }))) {
1407
+ vErrors = vErrors === null ? validate64.errors : vErrors.concat(validate64.errors);
1408
+ errors = vErrors.length;
1409
+ }
1410
+ }
1411
+ }
1412
+ else {
1413
+ const err2 = {
1414
+ instancePath,
1415
+ schemaPath: "#/oneOf/1/type",
1416
+ keyword: "type",
1417
+ params: {
1418
+ type: "array"
1419
+ },
1420
+ message: "must be array"
1421
+ };
1422
+ if (vErrors === null) {
1423
+ vErrors = [err2];
1424
+ }
1425
+ else {
1426
+ vErrors.push(err2);
1427
+ }
1428
+ errors++;
1429
+ }
1430
+ var _valid0 = _errs5 === errors;
1431
+ if (_valid0 && valid0) {
1432
+ valid0 = false;
1433
+ passing0 = [passing0, 1];
1434
+ }
1435
+ else {
1436
+ if (_valid0) {
1437
+ valid0 = true;
1438
+ passing0 = 1;
1439
+ }
1440
+ }
1441
+ if (!valid0) {
1442
+ const err3 = {
1443
+ instancePath,
1444
+ schemaPath: "#/oneOf",
1445
+ keyword: "oneOf",
1446
+ params: {
1447
+ passingSchemas: passing0
1448
+ },
1449
+ message: "must match exactly one schema in oneOf"
1450
+ };
1451
+ if (vErrors === null) {
1452
+ vErrors = [err3];
1453
+ }
1454
+ else {
1455
+ vErrors.push(err3);
1456
+ }
1457
+ errors++;
1458
+ }
1459
+ else {
1460
+ errors = _errs0;
1461
+ if (vErrors !== null) {
1462
+ if (_errs0) {
1463
+ vErrors.length = _errs0;
1464
+ }
1465
+ else {
1466
+ vErrors = null;
1467
+ }
1468
+ }
1469
+ }
1470
+ validate88.errors = vErrors;
1227
1471
  return errors === 0;
1228
1472
  }
1229
-
1230
- function validate90(data, {
1231
- instancePath = "",
1232
- parentData,
1233
- parentDataProperty,
1234
- rootData = data
1235
- } = {}) {
1473
+ function validate92(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
1236
1474
  let vErrors = null;
1237
1475
  let errors = 0;
1238
1476
  if (data && typeof data == "object" && !Array.isArray(data)) {
@@ -1249,7 +1487,8 @@ function validate90(data, {
1249
1487
  };
1250
1488
  if (vErrors === null) {
1251
1489
  vErrors = [err0];
1252
- } else {
1490
+ }
1491
+ else {
1253
1492
  vErrors.push(err0);
1254
1493
  }
1255
1494
  errors++;
@@ -1269,7 +1508,8 @@ function validate90(data, {
1269
1508
  };
1270
1509
  if (vErrors === null) {
1271
1510
  vErrors = [err1];
1272
- } else {
1511
+ }
1512
+ else {
1273
1513
  vErrors.push(err1);
1274
1514
  }
1275
1515
  errors++;
@@ -1286,7 +1526,8 @@ function validate90(data, {
1286
1526
  };
1287
1527
  if (vErrors === null) {
1288
1528
  vErrors = [err2];
1289
- } else {
1529
+ }
1530
+ else {
1290
1531
  vErrors.push(err2);
1291
1532
  }
1292
1533
  errors++;
@@ -1294,8 +1535,48 @@ function validate90(data, {
1294
1535
  }
1295
1536
  if (data.width !== undefined) {
1296
1537
  let data1 = data.width;
1297
- if (!((typeof data1 == "number") && (isFinite(data1)))) {
1298
- const err3 = {
1538
+ if ((typeof data1 == "number") && (isFinite(data1))) {
1539
+ if (data1 < 1 || isNaN(data1)) {
1540
+ const err3 = {
1541
+ instancePath: instancePath + "/width",
1542
+ schemaPath: "#/properties/width/minimum",
1543
+ keyword: "minimum",
1544
+ params: {
1545
+ comparison: ">=",
1546
+ limit: 1
1547
+ },
1548
+ message: "must be >= 1"
1549
+ };
1550
+ if (vErrors === null) {
1551
+ vErrors = [err3];
1552
+ }
1553
+ else {
1554
+ vErrors.push(err3);
1555
+ }
1556
+ errors++;
1557
+ }
1558
+ let res0;
1559
+ if ((1 === 0 || (res0 = data1 / 1, res0 !== parseInt(res0)))) {
1560
+ const err4 = {
1561
+ instancePath: instancePath + "/width",
1562
+ schemaPath: "#/properties/width/multipleOf",
1563
+ keyword: "multipleOf",
1564
+ params: {
1565
+ multipleOf: 1
1566
+ },
1567
+ message: "must be multiple of 1"
1568
+ };
1569
+ if (vErrors === null) {
1570
+ vErrors = [err4];
1571
+ }
1572
+ else {
1573
+ vErrors.push(err4);
1574
+ }
1575
+ errors++;
1576
+ }
1577
+ }
1578
+ else {
1579
+ const err5 = {
1299
1580
  instancePath: instancePath + "/width",
1300
1581
  schemaPath: "#/properties/width/type",
1301
1582
  keyword: "type",
@@ -1305,16 +1586,17 @@ function validate90(data, {
1305
1586
  message: "must be number"
1306
1587
  };
1307
1588
  if (vErrors === null) {
1308
- vErrors = [err3];
1309
- } else {
1310
- vErrors.push(err3);
1589
+ vErrors = [err5];
1590
+ }
1591
+ else {
1592
+ vErrors.push(err5);
1311
1593
  }
1312
1594
  errors++;
1313
1595
  }
1314
1596
  }
1315
1597
  if (data.wrapWord !== undefined) {
1316
1598
  if (typeof data.wrapWord !== "boolean") {
1317
- const err4 = {
1599
+ const err6 = {
1318
1600
  instancePath: instancePath + "/wrapWord",
1319
1601
  schemaPath: "#/properties/wrapWord/type",
1320
1602
  keyword: "type",
@@ -1324,9 +1606,10 @@ function validate90(data, {
1324
1606
  message: "must be boolean"
1325
1607
  };
1326
1608
  if (vErrors === null) {
1327
- vErrors = [err4];
1328
- } else {
1329
- vErrors.push(err4);
1609
+ vErrors = [err6];
1610
+ }
1611
+ else {
1612
+ vErrors.push(err6);
1330
1613
  }
1331
1614
  errors++;
1332
1615
  }
@@ -1334,7 +1617,7 @@ function validate90(data, {
1334
1617
  if (data.truncate !== undefined) {
1335
1618
  let data3 = data.truncate;
1336
1619
  if (!((typeof data3 == "number") && (isFinite(data3)))) {
1337
- const err5 = {
1620
+ const err7 = {
1338
1621
  instancePath: instancePath + "/truncate",
1339
1622
  schemaPath: "#/properties/truncate/type",
1340
1623
  keyword: "type",
@@ -1344,9 +1627,10 @@ function validate90(data, {
1344
1627
  message: "must be number"
1345
1628
  };
1346
1629
  if (vErrors === null) {
1347
- vErrors = [err5];
1348
- } else {
1349
- vErrors.push(err5);
1630
+ vErrors = [err7];
1631
+ }
1632
+ else {
1633
+ vErrors.push(err7);
1350
1634
  }
1351
1635
  errors++;
1352
1636
  }
@@ -1354,7 +1638,7 @@ function validate90(data, {
1354
1638
  if (data.paddingLeft !== undefined) {
1355
1639
  let data4 = data.paddingLeft;
1356
1640
  if (!((typeof data4 == "number") && (isFinite(data4)))) {
1357
- const err6 = {
1641
+ const err8 = {
1358
1642
  instancePath: instancePath + "/paddingLeft",
1359
1643
  schemaPath: "#/properties/paddingLeft/type",
1360
1644
  keyword: "type",
@@ -1364,9 +1648,10 @@ function validate90(data, {
1364
1648
  message: "must be number"
1365
1649
  };
1366
1650
  if (vErrors === null) {
1367
- vErrors = [err6];
1368
- } else {
1369
- vErrors.push(err6);
1651
+ vErrors = [err8];
1652
+ }
1653
+ else {
1654
+ vErrors.push(err8);
1370
1655
  }
1371
1656
  errors++;
1372
1657
  }
@@ -1374,7 +1659,7 @@ function validate90(data, {
1374
1659
  if (data.paddingRight !== undefined) {
1375
1660
  let data5 = data.paddingRight;
1376
1661
  if (!((typeof data5 == "number") && (isFinite(data5)))) {
1377
- const err7 = {
1662
+ const err9 = {
1378
1663
  instancePath: instancePath + "/paddingRight",
1379
1664
  schemaPath: "#/properties/paddingRight/type",
1380
1665
  keyword: "type",
@@ -1384,15 +1669,17 @@ function validate90(data, {
1384
1669
  message: "must be number"
1385
1670
  };
1386
1671
  if (vErrors === null) {
1387
- vErrors = [err7];
1388
- } else {
1389
- vErrors.push(err7);
1672
+ vErrors = [err9];
1673
+ }
1674
+ else {
1675
+ vErrors.push(err9);
1390
1676
  }
1391
1677
  errors++;
1392
1678
  }
1393
1679
  }
1394
- } else {
1395
- const err8 = {
1680
+ }
1681
+ else {
1682
+ const err10 = {
1396
1683
  instancePath,
1397
1684
  schemaPath: "#/type",
1398
1685
  keyword: "type",
@@ -1402,22 +1689,17 @@ function validate90(data, {
1402
1689
  message: "must be object"
1403
1690
  };
1404
1691
  if (vErrors === null) {
1405
- vErrors = [err8];
1406
- } else {
1407
- vErrors.push(err8);
1692
+ vErrors = [err10];
1693
+ }
1694
+ else {
1695
+ vErrors.push(err10);
1408
1696
  }
1409
1697
  errors++;
1410
1698
  }
1411
- validate90.errors = vErrors;
1699
+ validate92.errors = vErrors;
1412
1700
  return errors === 0;
1413
1701
  }
1414
-
1415
- function validate69(data, {
1416
- instancePath = "",
1417
- parentData,
1418
- parentDataProperty,
1419
- rootData = data
1420
- } = {}) {
1702
+ function validate70(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
1421
1703
  /*# sourceURL="streamConfig.json" */ ;
1422
1704
  let vErrors = null;
1423
1705
  let errors = 0;
@@ -1435,42 +1717,43 @@ function validate69(data, {
1435
1717
  };
1436
1718
  if (vErrors === null) {
1437
1719
  vErrors = [err0];
1438
- } else {
1720
+ }
1721
+ else {
1439
1722
  vErrors.push(err0);
1440
1723
  }
1441
1724
  errors++;
1442
1725
  }
1443
1726
  }
1444
1727
  if (data.border !== undefined) {
1445
- if (!(validate70(data.border, {
1446
- instancePath: instancePath + "/border",
1447
- parentData: data,
1448
- parentDataProperty: "border",
1449
- rootData
1450
- }))) {
1451
- vErrors = vErrors === null ? validate70.errors : vErrors.concat(validate70.errors);
1728
+ if (!(validate71(data.border, {
1729
+ instancePath: instancePath + "/border",
1730
+ parentData: data,
1731
+ parentDataProperty: "border",
1732
+ rootData
1733
+ }))) {
1734
+ vErrors = vErrors === null ? validate71.errors : vErrors.concat(validate71.errors);
1452
1735
  errors = vErrors.length;
1453
1736
  }
1454
1737
  }
1455
1738
  if (data.columns !== undefined) {
1456
- if (!(validate87(data.columns, {
1457
- instancePath: instancePath + "/columns",
1458
- parentData: data,
1459
- parentDataProperty: "columns",
1460
- rootData
1461
- }))) {
1462
- vErrors = vErrors === null ? validate87.errors : vErrors.concat(validate87.errors);
1739
+ if (!(validate88(data.columns, {
1740
+ instancePath: instancePath + "/columns",
1741
+ parentData: data,
1742
+ parentDataProperty: "columns",
1743
+ rootData
1744
+ }))) {
1745
+ vErrors = vErrors === null ? validate88.errors : vErrors.concat(validate88.errors);
1463
1746
  errors = vErrors.length;
1464
1747
  }
1465
1748
  }
1466
1749
  if (data.columnDefault !== undefined) {
1467
- if (!(validate90(data.columnDefault, {
1468
- instancePath: instancePath + "/columnDefault",
1469
- parentData: data,
1470
- parentDataProperty: "columnDefault",
1471
- rootData
1472
- }))) {
1473
- vErrors = vErrors === null ? validate90.errors : vErrors.concat(validate90.errors);
1750
+ if (!(validate92(data.columnDefault, {
1751
+ instancePath: instancePath + "/columnDefault",
1752
+ parentData: data,
1753
+ parentDataProperty: "columnDefault",
1754
+ rootData
1755
+ }))) {
1756
+ vErrors = vErrors === null ? validate92.errors : vErrors.concat(validate92.errors);
1474
1757
  errors = vErrors.length;
1475
1758
  }
1476
1759
  }
@@ -1488,7 +1771,8 @@ function validate69(data, {
1488
1771
  };
1489
1772
  if (vErrors === null) {
1490
1773
  vErrors = [err1];
1491
- } else {
1774
+ }
1775
+ else {
1492
1776
  vErrors.push(err1);
1493
1777
  }
1494
1778
  errors++;
@@ -1505,13 +1789,15 @@ function validate69(data, {
1505
1789
  };
1506
1790
  if (vErrors === null) {
1507
1791
  vErrors = [err2];
1508
- } else {
1792
+ }
1793
+ else {
1509
1794
  vErrors.push(err2);
1510
1795
  }
1511
1796
  errors++;
1512
1797
  }
1513
1798
  }
1514
- } else {
1799
+ }
1800
+ else {
1515
1801
  const err3 = {
1516
1802
  instancePath,
1517
1803
  schemaPath: "#/type",
@@ -1523,11 +1809,12 @@ function validate69(data, {
1523
1809
  };
1524
1810
  if (vErrors === null) {
1525
1811
  vErrors = [err3];
1526
- } else {
1812
+ }
1813
+ else {
1527
1814
  vErrors.push(err3);
1528
1815
  }
1529
1816
  errors++;
1530
1817
  }
1531
- validate69.errors = vErrors;
1818
+ validate70.errors = vErrors;
1532
1819
  return errors === 0;
1533
- }
1820
+ }