@dicebear/core 10.3.0 → 10.3.1

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.
@@ -2,15 +2,16 @@ import { OptionsValidationError } from '../Error/OptionsValidationError.js';
2
2
  function ucs2length(str) { let n = 0; for (const _ of str)
3
3
  n++; return n; }
4
4
  "use strict";
5
- const schema11 = { "$id": "https://cdn.hopjs.net/npm/@dicebear/schema@1.1.0/dist/options.min.json", "$schema": "http://json-schema.org/draft-07/schema#", "title": "DiceBear options schema", "type": "object", "definitions": { "flip": { "type": "string", "enum": ["none", "horizontal", "vertical", "both"] }, "rotate": { "type": "number", "minimum": -360, "maximum": 360 }, "scale": { "type": "number", "minimum": 0, "maximum": 10 }, "translate": { "type": "number", "minimum": -1000, "maximum": 1000 }, "borderRadius": { "type": "number", "minimum": 0, "maximum": 50 }, "color": { "type": "string", "pattern": "^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$" }, "colorFill": { "type": "string", "enum": ["solid", "linear", "radial"] }, "colorFillStops": { "type": "integer", "minimum": 2 }, "fontFamilyName": { "type": "string", "pattern": "^[a-zA-Z0-9_\\-]+( [a-zA-Z0-9_\\-]+)*(, ?[a-zA-Z0-9_\\-]+( [a-zA-Z0-9_\\-]+)*)*$", "maxLength": 256 }, "fontWeight": { "type": "integer", "minimum": 1, "maximum": 1000 }, "variantName": { "type": "string", "pattern": "^[a-z][a-zA-Z0-9]*$", "maxLength": 64 }, "rotateOption": { "anyOf": [{ "$ref": "#/definitions/rotate" }, { "type": "array", "items": { "$ref": "#/definitions/rotate" }, "minItems": 0, "maxItems": 2 }] }, "translateOption": { "anyOf": [{ "$ref": "#/definitions/translate" }, { "type": "array", "items": { "$ref": "#/definitions/translate" }, "minItems": 0, "maxItems": 2 }] }, "scaleOption": { "anyOf": [{ "$ref": "#/definitions/scale" }, { "type": "array", "items": { "$ref": "#/definitions/scale" }, "minItems": 0, "maxItems": 2 }] } }, "properties": { "seed": { "type": "string", "description": "The starting value for the pseudorandom number generator (PRNG) used in the avatar generation process. This option is essential for creating unique and consistent avatars. By setting a specific seed, you ensure that the same sequence of random characteristics is applied, allowing identical avatars to be reproduced. This is especially valuable for maintaining consistency across sessions and allowing users to share or recreate their personalized avatars.", "maxLength": 1024 }, "size": { "type": "integer", "description": "Specifies the dimensions of the avatar in pixels. If no size is specified, the avatar defaults to a responsive design or scales to 100% of its container. This flexibility allows the avatar to seamlessly adapt to different screen sizes and layouts, ensuring optimal display across devices and environments.", "minimum": 1, "maximum": 4096 }, "idRandomization": { "type": "boolean", "description": "Generates random values for all IDs present in the SVG. This process ensures that while the avatar appears visually identical, the underlying code remains unique. This is particularly useful for embedding the same avatar multiple times in a document without running into duplicate ID conflicts that can interfere with styles and scripts." }, "title": { "type": "string", "description": "Specifies an accessible title for the avatar. When set, the SVG will include a <title> element and an aria-label attribute, allowing screen readers and other assistive technologies to describe the avatar to users.", "maxLength": 256 }, "flip": { "description": "Specifies how the avatar will be flipped. Options include `none` for no flip, `horizontal` for a left-to-right flip, `vertical` for an upside-down flip, and `both` for a complete flip. If specified as an array, the PRNG will choose from the available options.", "anyOf": [{ "$ref": "#/definitions/flip" }, { "type": "array", "items": { "$ref": "#/definitions/flip" }, "minItems": 0, "maxItems": 4 }] }, "fontFamily": { "description": "Specifies the font family used for text rendering. If specified as an array, the PRNG will choose from the available options.", "anyOf": [{ "$ref": "#/definitions/fontFamilyName" }, { "type": "array", "items": { "$ref": "#/definitions/fontFamilyName" }, "minItems": 0, "maxItems": 128 }] }, "fontWeight": { "description": "Specifies the font weight used for text rendering. The value must be an integer between 1 and 1000. If specified as an array, the PRNG will choose from the available options.", "anyOf": [{ "$ref": "#/definitions/fontWeight" }, { "type": "array", "items": { "$ref": "#/definitions/fontWeight" }, "minItems": 0, "maxItems": 128 }] }, "scale": { "description": "Sets the scaling of the avatar. A value of `1` corresponds to the original size of the avatar. This setting affects the size of the avatar itself, but not the size of the avatar container; any excess content will be clipped. If specified as an array, the PRNG will select a value within the specified range, including the values themselves.", "allOf": [{ "$ref": "#/definitions/scaleOption" }] }, "borderRadius": { "description": "This is the radius of the corners of the avatar. This value can be a float or an integer. A value of 0 means that the avatar has sharp corners, while larger values result in more rounded corners. The maximum value is 50, which turns the avatar into a complete circle. If specified as an array, the PRNG will select a value within the specified range, including the values themselves.", "anyOf": [{ "$ref": "#/definitions/borderRadius" }, { "type": "array", "items": { "$ref": "#/definitions/borderRadius" }, "minItems": 0, "maxItems": 2 }] } }, "patternProperties": { "^[a-z][a-zA-Z0-9]*Probability$": { "type": "number", "description": "Represents the probability that a component of the avatar will be displayed. The value can be either a float or an integer, but is interpreted as a percentage. For example, a value of 0 means the part will never be displayed, while a value of 100 means it will always be displayed.", "minimum": 0, "maximum": 100 }, "^[a-z][a-zA-Z0-9]*Variant$": { "description": "Specifies which variants of the avatar part can be selected by the PRNG and their relative weights. A string or array of strings filters which variants the PRNG can choose from. An object maps variant names to non-negative weights, simultaneously filtering and weighting selection. Variant names must be camelCase identifiers.", "anyOf": [{ "$ref": "#/definitions/variantName" }, { "type": "array", "items": { "$ref": "#/definitions/variantName" }, "minItems": 0, "maxItems": 128 }, { "type": "object", "propertyNames": { "$ref": "#/definitions/variantName" }, "additionalProperties": { "type": "number", "minimum": 0 }, "minProperties": 1, "maxProperties": 512 }] }, "^[a-z][a-zA-Z0-9]*Color$": { "description": "Specifies which colors for the avatar component can be selected by the PRNG. If specified as a string or array with only one value, the value is fixed. However, if specified as an array with multiple values, the PRNG will choose from the available options. The color must be specified as a hex value.", "anyOf": [{ "$ref": "#/definitions/color" }, { "type": "array", "items": { "$ref": "#/definitions/color" }, "minItems": 0, "maxItems": 128 }] }, "^[a-z][a-zA-Z0-9]*ColorFill$": { "description": "Specifies the color fill method for the avatar component. Options include `solid` for a flat color, `linear` for a linear gradient, and `radial` for a radial gradient. If specified as a string or array with only one value, the value is fixed. However, if specified as an array with multiple values, the PRNG will choose from the available options.", "anyOf": [{ "$ref": "#/definitions/colorFill" }, { "type": "array", "items": { "$ref": "#/definitions/colorFill" }, "minItems": 0, "maxItems": 128 }] }, "^[a-z][a-zA-Z0-9]*ColorFillStops$": { "description": "Specifies the number of color stops for gradient fills. This value is only relevant when the color fill method is set to `linear` or `radial`. The minimum value is 2. If specified as an array, the PRNG will select a value within the specified range, including the values themselves.", "anyOf": [{ "$ref": "#/definitions/colorFillStops" }, { "type": "array", "items": { "$ref": "#/definitions/colorFillStops" }, "minItems": 0, "maxItems": 2 }] }, "^[a-z][a-zA-Z0-9]*ColorAngle$": { "description": "Specifies the angle for the color gradient. This value can be an integer or a float. A value of 0 results in no rotation, while values between -360 and 360 define the degree of rotation. If specified as an array, the PRNG will select a value within the specified range, including the values themselves.", "allOf": [{ "$ref": "#/definitions/rotateOption" }] }, "^rotate$": { "description": "This is the rotation angle for the entire avatar. This value can be an integer or a float. A value of 0 results in no rotation, while values between -360 and 360 define the degree of rotation in both directions. If specified as an array, the PRNG will select a value within the specified range, including the values themselves.", "allOf": [{ "$ref": "#/definitions/rotateOption" }] }, "^translateY$": { "description": "This is the vertical translation of the entire avatar. This value can be an integer or a float. A value of 0 results in no translation, while positive values move the avatar down and negative values move it up. If specified as an array, the PRNG will select a value within the specified range, including the values themselves.", "allOf": [{ "$ref": "#/definitions/translateOption" }] }, "^translateX$": { "description": "This is the horizontal translation of the entire avatar. This value can be an integer or a float. A value of 0 results in no translation, while positive values move the avatar to the right and negative values move it to the left. If specified as an array, the PRNG will select a value within the specified range, including the values themselves.", "allOf": [{ "$ref": "#/definitions/translateOption" }] } }, "propertyNames": { "maxLength": 128 }, "additionalProperties": false, "maxProperties": 512 };
5
+ const schema11 = { "$id": "https://cdn.hopjs.net/npm/@dicebear/schema@1.3.0/dist/options.min.json", "$schema": "http://json-schema.org/draft-07/schema#", "title": "DiceBear options schema", "type": "object", "definitions": { "flip": { "type": "string", "enum": ["none", "horizontal", "vertical", "both"] }, "rotate": { "type": "number", "minimum": -360, "maximum": 360 }, "scale": { "type": "number", "minimum": 0, "maximum": 10 }, "translate": { "type": "number", "minimum": -1000, "maximum": 1000 }, "borderRadius": { "type": "number", "minimum": 0, "maximum": 50 }, "color": { "type": "string", "pattern": "^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$" }, "colorFill": { "type": "string", "enum": ["solid", "linear", "radial"] }, "colorFillStops": { "type": "integer", "minimum": 2 }, "fontFamilyName": { "type": "string", "pattern": "^[a-zA-Z0-9_\\-]+( [a-zA-Z0-9_\\-]+)*(, ?[a-zA-Z0-9_\\-]+( [a-zA-Z0-9_\\-]+)*)*$", "maxLength": 256 }, "fontWeight": { "type": "integer", "minimum": 1, "maximum": 1000 }, "variantName": { "type": "string", "pattern": "^[a-z][a-zA-Z0-9]*$", "maxLength": 64 }, "tagFilter": { "type": "string", "pattern": "^!?[a-z][a-zA-Z0-9]*(:[a-z][a-zA-Z0-9]*)?$", "maxLength": 130 }, "rotateOption": { "anyOf": [{ "$ref": "#/definitions/rotate" }, { "type": "array", "items": { "$ref": "#/definitions/rotate" }, "minItems": 0, "maxItems": 2 }] }, "translateOption": { "anyOf": [{ "$ref": "#/definitions/translate" }, { "type": "array", "items": { "$ref": "#/definitions/translate" }, "minItems": 0, "maxItems": 2 }] }, "scaleOption": { "anyOf": [{ "$ref": "#/definitions/scale" }, { "type": "array", "items": { "$ref": "#/definitions/scale" }, "minItems": 0, "maxItems": 2 }] } }, "properties": { "seed": { "type": "string", "description": "The starting value for the pseudorandom number generator (PRNG) used in the avatar generation process. This option is essential for creating unique and consistent avatars. By setting a specific seed, you ensure that the same sequence of random characteristics is applied, allowing identical avatars to be reproduced. This is especially valuable for maintaining consistency across sessions and allowing users to share or recreate their personalized avatars.", "maxLength": 1024 }, "size": { "type": "integer", "description": "Specifies the dimensions of the avatar in pixels. If no size is specified, the avatar defaults to a responsive design or scales to 100% of its container. This flexibility allows the avatar to seamlessly adapt to different screen sizes and layouts, ensuring optimal display across devices and environments.", "minimum": 1, "maximum": 4096 }, "idRandomization": { "type": "boolean", "description": "Generates random values for all IDs present in the SVG. This process ensures that while the avatar appears visually identical, the underlying code remains unique. This is particularly useful for embedding the same avatar multiple times in a document without running into duplicate ID conflicts that can interfere with styles and scripts." }, "title": { "type": "string", "description": "Specifies an accessible title for the avatar. When set, the SVG will include a <title> element and an aria-label attribute, allowing screen readers and other assistive technologies to describe the avatar to users.", "maxLength": 256 }, "flip": { "description": "Specifies how the avatar will be flipped. Options include `none` for no flip, `horizontal` for a left-to-right flip, `vertical` for an upside-down flip, and `both` for a complete flip. If specified as an array, the PRNG will choose from the available options.", "anyOf": [{ "$ref": "#/definitions/flip" }, { "type": "array", "items": { "$ref": "#/definitions/flip" }, "minItems": 0, "maxItems": 4 }] }, "fontFamily": { "description": "Specifies the font family used for text rendering. If specified as an array, the PRNG will choose from the available options.", "anyOf": [{ "$ref": "#/definitions/fontFamilyName" }, { "type": "array", "items": { "$ref": "#/definitions/fontFamilyName" }, "minItems": 0, "maxItems": 128 }] }, "fontWeight": { "description": "Specifies the font weight used for text rendering. The value must be an integer between 1 and 1000. If specified as an array, the PRNG will choose from the available options.", "anyOf": [{ "$ref": "#/definitions/fontWeight" }, { "type": "array", "items": { "$ref": "#/definitions/fontWeight" }, "minItems": 0, "maxItems": 128 }] }, "scale": { "description": "Sets the scaling of the avatar. A value of `1` corresponds to the original size of the avatar. This setting affects the size of the avatar itself, but not the size of the avatar container; any excess content will be clipped. If specified as an array, the PRNG will select a value within the specified range, including the values themselves.", "allOf": [{ "$ref": "#/definitions/scaleOption" }] }, "borderRadius": { "description": "This is the radius of the corners of the avatar. This value can be a float or an integer. A value of 0 means that the avatar has sharp corners, while larger values result in more rounded corners. The maximum value is 50, which turns the avatar into a complete circle. If specified as an array, the PRNG will select a value within the specified range, including the values themselves.", "anyOf": [{ "$ref": "#/definitions/borderRadius" }, { "type": "array", "items": { "$ref": "#/definitions/borderRadius" }, "minItems": 0, "maxItems": 2 }] }, "tags": { "description": "Uses tags to filter which variants of the avatar's components the PRNG may select. Each token is `category` or `category:value` (e.g. `hairLength:long`), optionally prefixed with `!` to exclude. An include affects only its own category: it drops variants that carry a different value in that category and keeps variants that carry no tag there. An exclude removes variants carrying the named tag. Unknown tags are ignored. A `*Variant` option for the same component takes precedence: when set, it determines that component's variants and the tag filter does not apply to it. Can be a single string or an array of strings.", "anyOf": [{ "$ref": "#/definitions/tagFilter" }, { "type": "array", "items": { "$ref": "#/definitions/tagFilter" }, "minItems": 0, "maxItems": 128 }] } }, "patternProperties": { "^[a-z][a-zA-Z0-9]*Probability$": { "type": "number", "description": "Represents the probability that a component of the avatar will be displayed. The value can be either a float or an integer, but is interpreted as a percentage. For example, a value of 0 means the part will never be displayed, while a value of 100 means it will always be displayed.", "minimum": 0, "maximum": 100 }, "^[a-z][a-zA-Z0-9]*Variant$": { "description": "Specifies which variants of the avatar part can be selected by the PRNG and their relative weights. A string or array of strings filters which variants the PRNG can choose from. An object maps variant names to non-negative weights, simultaneously filtering and weighting selection. Variant names must be camelCase identifiers.", "anyOf": [{ "$ref": "#/definitions/variantName" }, { "type": "array", "items": { "$ref": "#/definitions/variantName" }, "minItems": 0, "maxItems": 128 }, { "type": "object", "propertyNames": { "$ref": "#/definitions/variantName" }, "additionalProperties": { "type": "number", "minimum": 0 }, "minProperties": 1, "maxProperties": 512 }] }, "^[a-z][a-zA-Z0-9]*Color$": { "description": "Specifies which colors for the avatar component can be selected by the PRNG. If specified as a string or array with only one value, the value is fixed. However, if specified as an array with multiple values, the PRNG will choose from the available options. The color must be specified as a hex value.", "anyOf": [{ "$ref": "#/definitions/color" }, { "type": "array", "items": { "$ref": "#/definitions/color" }, "minItems": 0, "maxItems": 128 }] }, "^[a-z][a-zA-Z0-9]*ColorFill$": { "description": "Specifies the color fill method for the avatar component. Options include `solid` for a flat color, `linear` for a linear gradient, and `radial` for a radial gradient. If specified as a string or array with only one value, the value is fixed. However, if specified as an array with multiple values, the PRNG will choose from the available options.", "anyOf": [{ "$ref": "#/definitions/colorFill" }, { "type": "array", "items": { "$ref": "#/definitions/colorFill" }, "minItems": 0, "maxItems": 128 }] }, "^[a-z][a-zA-Z0-9]*ColorFillStops$": { "description": "Specifies the number of color stops for gradient fills. This value is only relevant when the color fill method is set to `linear` or `radial`. The minimum value is 2. If specified as an array, the PRNG will select a value within the specified range, including the values themselves.", "anyOf": [{ "$ref": "#/definitions/colorFillStops" }, { "type": "array", "items": { "$ref": "#/definitions/colorFillStops" }, "minItems": 0, "maxItems": 2 }] }, "^[a-z][a-zA-Z0-9]*ColorAngle$": { "description": "Specifies the angle for the color gradient. This value can be an integer or a float. A value of 0 results in no rotation, while values between -360 and 360 define the degree of rotation. If specified as an array, the PRNG will select a value within the specified range, including the values themselves.", "allOf": [{ "$ref": "#/definitions/rotateOption" }] }, "^rotate$": { "description": "This is the rotation angle for the entire avatar. This value can be an integer or a float. A value of 0 results in no rotation, while values between -360 and 360 define the degree of rotation in both directions. If specified as an array, the PRNG will select a value within the specified range, including the values themselves.", "allOf": [{ "$ref": "#/definitions/rotateOption" }] }, "^translateY$": { "description": "This is the vertical translation of the entire avatar. This value can be an integer or a float. A value of 0 results in no translation, while positive values move the avatar down and negative values move it up. If specified as an array, the PRNG will select a value within the specified range, including the values themselves.", "allOf": [{ "$ref": "#/definitions/translateOption" }] }, "^translateX$": { "description": "This is the horizontal translation of the entire avatar. This value can be an integer or a float. A value of 0 results in no translation, while positive values move the avatar to the right and negative values move it to the left. If specified as an array, the PRNG will select a value within the specified range, including the values themselves.", "allOf": [{ "$ref": "#/definitions/translateOption" }] } }, "propertyNames": { "maxLength": 128 }, "additionalProperties": false, "maxProperties": 512 };
6
6
  const schema12 = { "type": "string", "enum": ["none", "horizontal", "vertical", "both"] };
7
7
  const schema14 = { "type": "string", "pattern": "^[a-zA-Z0-9_\\-]+( [a-zA-Z0-9_\\-]+)*(, ?[a-zA-Z0-9_\\-]+( [a-zA-Z0-9_\\-]+)*)*$", "maxLength": 256 };
8
8
  const schema16 = { "type": "integer", "minimum": 1, "maximum": 1000 };
9
9
  const schema21 = { "type": "number", "minimum": 0, "maximum": 50 };
10
- const schema23 = { "type": "string", "pattern": "^[a-z][a-zA-Z0-9]*$", "maxLength": 64 };
11
- const schema26 = { "type": "string", "pattern": "^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$" };
12
- const schema28 = { "type": "string", "enum": ["solid", "linear", "radial"] };
13
- const schema30 = { "type": "integer", "minimum": 2 };
10
+ const schema23 = { "type": "string", "pattern": "^!?[a-z][a-zA-Z0-9]*(:[a-z][a-zA-Z0-9]*)?$", "maxLength": 130 };
11
+ const schema25 = { "type": "string", "pattern": "^[a-z][a-zA-Z0-9]*$", "maxLength": 64 };
12
+ const schema28 = { "type": "string", "pattern": "^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$" };
13
+ const schema30 = { "type": "string", "enum": ["solid", "linear", "radial"] };
14
+ const schema32 = { "type": "integer", "minimum": 2 };
14
15
  const func2 = ucs2length;
15
16
  const func3 = Object.prototype.hasOwnProperty;
16
17
  const pattern0 = new RegExp("^[a-z][a-zA-Z0-9]*Probability$", "u");
@@ -23,8 +24,9 @@ const pattern6 = new RegExp("^rotate$", "u");
23
24
  const pattern7 = new RegExp("^translateY$", "u");
24
25
  const pattern8 = new RegExp("^translateX$", "u");
25
26
  const pattern9 = new RegExp("^[a-zA-Z0-9_\\-]+( [a-zA-Z0-9_\\-]+)*(, ?[a-zA-Z0-9_\\-]+( [a-zA-Z0-9_\\-]+)*)*$", "u");
26
- const pattern13 = new RegExp("^[a-z][a-zA-Z0-9]*$", "u");
27
- const pattern17 = new RegExp("^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$", "u");
27
+ const pattern11 = new RegExp("^!?[a-z][a-zA-Z0-9]*(:[a-z][a-zA-Z0-9]*)?$", "u");
28
+ const pattern15 = new RegExp("^[a-z][a-zA-Z0-9]*$", "u");
29
+ const pattern19 = new RegExp("^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$", "u");
28
30
  const schema18 = { "anyOf": [{ "$ref": "#/definitions/scale" }, { "type": "array", "items": { "$ref": "#/definitions/scale" }, "minItems": 0, "maxItems": 2 }] };
29
31
  const schema19 = { "type": "number", "minimum": 0, "maximum": 10 };
30
32
  function validate11(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; const _errs2 = errors; if (errors === _errs2) {
@@ -174,8 +176,8 @@ else {
174
176
  }
175
177
  }
176
178
  } validate11.errors = vErrors; return errors === 0; }
177
- const schema32 = { "anyOf": [{ "$ref": "#/definitions/rotate" }, { "type": "array", "items": { "$ref": "#/definitions/rotate" }, "minItems": 0, "maxItems": 2 }] };
178
- const schema33 = { "type": "number", "minimum": -360, "maximum": 360 };
179
+ const schema34 = { "anyOf": [{ "$ref": "#/definitions/rotate" }, { "type": "array", "items": { "$ref": "#/definitions/rotate" }, "minItems": 0, "maxItems": 2 }] };
180
+ const schema35 = { "type": "number", "minimum": -360, "maximum": 360 };
179
181
  function validate13(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; const _errs2 = errors; if (errors === _errs2) {
180
182
  if ((typeof data == "number") && (isFinite(data))) {
181
183
  if (data > 360 || isNaN(data)) {
@@ -323,8 +325,8 @@ else {
323
325
  }
324
326
  }
325
327
  } validate13.errors = vErrors; return errors === 0; }
326
- const schema35 = { "anyOf": [{ "$ref": "#/definitions/translate" }, { "type": "array", "items": { "$ref": "#/definitions/translate" }, "minItems": 0, "maxItems": 2 }] };
327
- const schema36 = { "type": "number", "minimum": -1000, "maximum": 1000 };
328
+ const schema37 = { "anyOf": [{ "$ref": "#/definitions/translate" }, { "type": "array", "items": { "$ref": "#/definitions/translate" }, "minItems": 0, "maxItems": 2 }] };
329
+ const schema38 = { "type": "number", "minimum": -1000, "maximum": 1000 };
328
330
  function validate16(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; const _errs2 = errors; if (errors === _errs2) {
329
331
  if ((typeof data == "number") && (isFinite(data))) {
330
332
  if (data > 1000 || isNaN(data)) {
@@ -472,7 +474,7 @@ else {
472
474
  }
473
475
  }
474
476
  } validate16.errors = vErrors; return errors === 0; }
475
- function validate10(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { /*# sourceURL="https://cdn.hopjs.net/npm/@dicebear/schema@1.1.0/dist/options.min.json" */ ; let vErrors = null; let errors = 0; if (errors === 0) {
477
+ function validate10(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { /*# sourceURL="https://cdn.hopjs.net/npm/@dicebear/schema@1.3.0/dist/options.min.json" */ ; let vErrors = null; let errors = 0; if (errors === 0) {
476
478
  if (data && typeof data == "object" && !Array.isArray(data)) {
477
479
  if (Object.keys(data).length > 512) {
478
480
  validate10.errors = [{ instancePath, schemaPath: "#/maxProperties", keyword: "maxProperties", params: { limit: 512 }, message: "must NOT have more than 512 properties" }];
@@ -1233,403 +1235,392 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
1233
1235
  var valid1 = true;
1234
1236
  }
1235
1237
  if (valid1) {
1236
- var valid19 = true;
1237
- for (const key2 in data) {
1238
- if (pattern0.test(key2)) {
1239
- let data13 = data[key2];
1240
- const _errs53 = errors;
1241
- if (errors === _errs53) {
1242
- if ((typeof data13 == "number") && (isFinite(data13))) {
1243
- if (data13 > 100 || isNaN(data13)) {
1244
- validate10.errors = [{ instancePath: instancePath + "/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Probability%24/maximum", keyword: "maximum", params: { comparison: "<=", limit: 100 }, message: "must be <= 100" }];
1245
- return false;
1238
+ if (data.tags !== undefined) {
1239
+ let data13 = data.tags;
1240
+ const _errs53 = errors;
1241
+ const _errs54 = errors;
1242
+ let valid19 = false;
1243
+ const _errs55 = errors;
1244
+ const _errs56 = errors;
1245
+ if (errors === _errs56) {
1246
+ if (typeof data13 === "string") {
1247
+ if (func2(data13) > 130) {
1248
+ const err40 = { instancePath: instancePath + "/tags", schemaPath: "#/definitions/tagFilter/maxLength", keyword: "maxLength", params: { limit: 130 }, message: "must NOT have more than 130 characters" };
1249
+ if (vErrors === null) {
1250
+ vErrors = [err40];
1246
1251
  }
1247
1252
  else {
1248
- if (data13 < 0 || isNaN(data13)) {
1249
- validate10.errors = [{ instancePath: instancePath + "/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Probability%24/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
1250
- return false;
1251
- }
1253
+ vErrors.push(err40);
1252
1254
  }
1255
+ errors++;
1253
1256
  }
1254
1257
  else {
1255
- validate10.errors = [{ instancePath: instancePath + "/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Probability%24/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
1256
- return false;
1258
+ if (!pattern11.test(data13)) {
1259
+ const err41 = { instancePath: instancePath + "/tags", schemaPath: "#/definitions/tagFilter/pattern", keyword: "pattern", params: { pattern: "^!?[a-z][a-zA-Z0-9]*(:[a-z][a-zA-Z0-9]*)?$" }, message: "must match pattern \"" + "^!?[a-z][a-zA-Z0-9]*(:[a-z][a-zA-Z0-9]*)?$" + "\"" };
1260
+ if (vErrors === null) {
1261
+ vErrors = [err41];
1262
+ }
1263
+ else {
1264
+ vErrors.push(err41);
1265
+ }
1266
+ errors++;
1267
+ }
1257
1268
  }
1258
1269
  }
1259
- var valid19 = _errs53 === errors;
1260
- if (!valid19) {
1261
- break;
1270
+ else {
1271
+ const err42 = { instancePath: instancePath + "/tags", schemaPath: "#/definitions/tagFilter/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1272
+ if (vErrors === null) {
1273
+ vErrors = [err42];
1274
+ }
1275
+ else {
1276
+ vErrors.push(err42);
1277
+ }
1278
+ errors++;
1262
1279
  }
1263
1280
  }
1264
- }
1265
- if (valid19) {
1266
- var valid19 = true;
1267
- for (const key3 in data) {
1268
- if (pattern1.test(key3)) {
1269
- let data14 = data[key3];
1270
- const _errs55 = errors;
1271
- const _errs56 = errors;
1272
- let valid20 = false;
1273
- const _errs57 = errors;
1274
- const _errs58 = errors;
1275
- if (errors === _errs58) {
1276
- if (typeof data14 === "string") {
1277
- if (func2(data14) > 64) {
1278
- const err40 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/variantName/maxLength", keyword: "maxLength", params: { limit: 64 }, message: "must NOT have more than 64 characters" };
1281
+ var _valid4 = _errs55 === errors;
1282
+ valid19 = valid19 || _valid4;
1283
+ if (!valid19) {
1284
+ const _errs58 = errors;
1285
+ if (errors === _errs58) {
1286
+ if (Array.isArray(data13)) {
1287
+ if (data13.length > 128) {
1288
+ const err43 = { instancePath: instancePath + "/tags", schemaPath: "#/properties/tags/anyOf/1/maxItems", keyword: "maxItems", params: { limit: 128 }, message: "must NOT have more than 128 items" };
1289
+ if (vErrors === null) {
1290
+ vErrors = [err43];
1291
+ }
1292
+ else {
1293
+ vErrors.push(err43);
1294
+ }
1295
+ errors++;
1296
+ }
1297
+ else {
1298
+ if (data13.length < 0) {
1299
+ const err44 = { instancePath: instancePath + "/tags", schemaPath: "#/properties/tags/anyOf/1/minItems", keyword: "minItems", params: { limit: 0 }, message: "must NOT have fewer than 0 items" };
1279
1300
  if (vErrors === null) {
1280
- vErrors = [err40];
1301
+ vErrors = [err44];
1281
1302
  }
1282
1303
  else {
1283
- vErrors.push(err40);
1304
+ vErrors.push(err44);
1284
1305
  }
1285
1306
  errors++;
1286
1307
  }
1287
1308
  else {
1288
- if (!pattern13.test(data14)) {
1289
- const err41 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/variantName/pattern", keyword: "pattern", params: { pattern: "^[a-z][a-zA-Z0-9]*$" }, message: "must match pattern \"" + "^[a-z][a-zA-Z0-9]*$" + "\"" };
1290
- if (vErrors === null) {
1291
- vErrors = [err41];
1309
+ var valid21 = true;
1310
+ const len4 = data13.length;
1311
+ for (let i4 = 0; i4 < len4; i4++) {
1312
+ let data14 = data13[i4];
1313
+ const _errs60 = errors;
1314
+ const _errs61 = errors;
1315
+ if (errors === _errs61) {
1316
+ if (typeof data14 === "string") {
1317
+ if (func2(data14) > 130) {
1318
+ const err45 = { instancePath: instancePath + "/tags/" + i4, schemaPath: "#/definitions/tagFilter/maxLength", keyword: "maxLength", params: { limit: 130 }, message: "must NOT have more than 130 characters" };
1319
+ if (vErrors === null) {
1320
+ vErrors = [err45];
1321
+ }
1322
+ else {
1323
+ vErrors.push(err45);
1324
+ }
1325
+ errors++;
1326
+ }
1327
+ else {
1328
+ if (!pattern11.test(data14)) {
1329
+ const err46 = { instancePath: instancePath + "/tags/" + i4, schemaPath: "#/definitions/tagFilter/pattern", keyword: "pattern", params: { pattern: "^!?[a-z][a-zA-Z0-9]*(:[a-z][a-zA-Z0-9]*)?$" }, message: "must match pattern \"" + "^!?[a-z][a-zA-Z0-9]*(:[a-z][a-zA-Z0-9]*)?$" + "\"" };
1330
+ if (vErrors === null) {
1331
+ vErrors = [err46];
1332
+ }
1333
+ else {
1334
+ vErrors.push(err46);
1335
+ }
1336
+ errors++;
1337
+ }
1338
+ }
1339
+ }
1340
+ else {
1341
+ const err47 = { instancePath: instancePath + "/tags/" + i4, schemaPath: "#/definitions/tagFilter/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1342
+ if (vErrors === null) {
1343
+ vErrors = [err47];
1344
+ }
1345
+ else {
1346
+ vErrors.push(err47);
1347
+ }
1348
+ errors++;
1349
+ }
1292
1350
  }
1293
- else {
1294
- vErrors.push(err41);
1351
+ var valid21 = _errs60 === errors;
1352
+ if (!valid21) {
1353
+ break;
1295
1354
  }
1296
- errors++;
1297
1355
  }
1298
1356
  }
1299
1357
  }
1358
+ }
1359
+ else {
1360
+ const err48 = { instancePath: instancePath + "/tags", schemaPath: "#/properties/tags/anyOf/1/type", keyword: "type", params: { type: "array" }, message: "must be array" };
1361
+ if (vErrors === null) {
1362
+ vErrors = [err48];
1363
+ }
1300
1364
  else {
1301
- const err42 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/variantName/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1302
- if (vErrors === null) {
1303
- vErrors = [err42];
1365
+ vErrors.push(err48);
1366
+ }
1367
+ errors++;
1368
+ }
1369
+ }
1370
+ var _valid4 = _errs58 === errors;
1371
+ valid19 = valid19 || _valid4;
1372
+ }
1373
+ if (!valid19) {
1374
+ const err49 = { instancePath: instancePath + "/tags", schemaPath: "#/properties/tags/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
1375
+ if (vErrors === null) {
1376
+ vErrors = [err49];
1377
+ }
1378
+ else {
1379
+ vErrors.push(err49);
1380
+ }
1381
+ errors++;
1382
+ validate10.errors = vErrors;
1383
+ return false;
1384
+ }
1385
+ else {
1386
+ errors = _errs54;
1387
+ if (vErrors !== null) {
1388
+ if (_errs54) {
1389
+ vErrors.length = _errs54;
1390
+ }
1391
+ else {
1392
+ vErrors = null;
1393
+ }
1394
+ }
1395
+ }
1396
+ var valid1 = _errs53 === errors;
1397
+ }
1398
+ else {
1399
+ var valid1 = true;
1400
+ }
1401
+ if (valid1) {
1402
+ var valid23 = true;
1403
+ for (const key2 in data) {
1404
+ if (pattern0.test(key2)) {
1405
+ let data15 = data[key2];
1406
+ const _errs63 = errors;
1407
+ if (errors === _errs63) {
1408
+ if ((typeof data15 == "number") && (isFinite(data15))) {
1409
+ if (data15 > 100 || isNaN(data15)) {
1410
+ validate10.errors = [{ instancePath: instancePath + "/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Probability%24/maximum", keyword: "maximum", params: { comparison: "<=", limit: 100 }, message: "must be <= 100" }];
1411
+ return false;
1304
1412
  }
1305
1413
  else {
1306
- vErrors.push(err42);
1414
+ if (data15 < 0 || isNaN(data15)) {
1415
+ validate10.errors = [{ instancePath: instancePath + "/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Probability%24/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
1416
+ return false;
1417
+ }
1307
1418
  }
1308
- errors++;
1309
1419
  }
1420
+ else {
1421
+ validate10.errors = [{ instancePath: instancePath + "/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Probability%24/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
1422
+ return false;
1423
+ }
1424
+ }
1425
+ var valid23 = _errs63 === errors;
1426
+ if (!valid23) {
1427
+ break;
1310
1428
  }
1311
- var _valid4 = _errs57 === errors;
1312
- valid20 = valid20 || _valid4;
1313
- if (!valid20) {
1314
- const _errs60 = errors;
1315
- if (errors === _errs60) {
1316
- if (Array.isArray(data14)) {
1317
- if (data14.length > 128) {
1318
- const err43 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Variant%24/anyOf/1/maxItems", keyword: "maxItems", params: { limit: 128 }, message: "must NOT have more than 128 items" };
1429
+ }
1430
+ }
1431
+ if (valid23) {
1432
+ var valid23 = true;
1433
+ for (const key3 in data) {
1434
+ if (pattern1.test(key3)) {
1435
+ let data16 = data[key3];
1436
+ const _errs65 = errors;
1437
+ const _errs66 = errors;
1438
+ let valid24 = false;
1439
+ const _errs67 = errors;
1440
+ const _errs68 = errors;
1441
+ if (errors === _errs68) {
1442
+ if (typeof data16 === "string") {
1443
+ if (func2(data16) > 64) {
1444
+ const err50 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/variantName/maxLength", keyword: "maxLength", params: { limit: 64 }, message: "must NOT have more than 64 characters" };
1319
1445
  if (vErrors === null) {
1320
- vErrors = [err43];
1446
+ vErrors = [err50];
1321
1447
  }
1322
1448
  else {
1323
- vErrors.push(err43);
1449
+ vErrors.push(err50);
1324
1450
  }
1325
1451
  errors++;
1326
1452
  }
1327
1453
  else {
1328
- if (data14.length < 0) {
1329
- const err44 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Variant%24/anyOf/1/minItems", keyword: "minItems", params: { limit: 0 }, message: "must NOT have fewer than 0 items" };
1454
+ if (!pattern15.test(data16)) {
1455
+ const err51 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/variantName/pattern", keyword: "pattern", params: { pattern: "^[a-z][a-zA-Z0-9]*$" }, message: "must match pattern \"" + "^[a-z][a-zA-Z0-9]*$" + "\"" };
1330
1456
  if (vErrors === null) {
1331
- vErrors = [err44];
1457
+ vErrors = [err51];
1332
1458
  }
1333
1459
  else {
1334
- vErrors.push(err44);
1460
+ vErrors.push(err51);
1335
1461
  }
1336
1462
  errors++;
1337
1463
  }
1338
- else {
1339
- var valid22 = true;
1340
- const len4 = data14.length;
1341
- for (let i4 = 0; i4 < len4; i4++) {
1342
- let data15 = data14[i4];
1343
- const _errs62 = errors;
1344
- const _errs63 = errors;
1345
- if (errors === _errs63) {
1346
- if (typeof data15 === "string") {
1347
- if (func2(data15) > 64) {
1348
- const err45 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i4, schemaPath: "#/definitions/variantName/maxLength", keyword: "maxLength", params: { limit: 64 }, message: "must NOT have more than 64 characters" };
1349
- if (vErrors === null) {
1350
- vErrors = [err45];
1351
- }
1352
- else {
1353
- vErrors.push(err45);
1354
- }
1355
- errors++;
1356
- }
1357
- else {
1358
- if (!pattern13.test(data15)) {
1359
- const err46 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i4, schemaPath: "#/definitions/variantName/pattern", keyword: "pattern", params: { pattern: "^[a-z][a-zA-Z0-9]*$" }, message: "must match pattern \"" + "^[a-z][a-zA-Z0-9]*$" + "\"" };
1360
- if (vErrors === null) {
1361
- vErrors = [err46];
1362
- }
1363
- else {
1364
- vErrors.push(err46);
1365
- }
1366
- errors++;
1367
- }
1368
- }
1369
- }
1370
- else {
1371
- const err47 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i4, schemaPath: "#/definitions/variantName/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1372
- if (vErrors === null) {
1373
- vErrors = [err47];
1374
- }
1375
- else {
1376
- vErrors.push(err47);
1377
- }
1378
- errors++;
1379
- }
1380
- }
1381
- var valid22 = _errs62 === errors;
1382
- if (!valid22) {
1383
- break;
1384
- }
1385
- }
1386
- }
1387
1464
  }
1388
1465
  }
1389
1466
  else {
1390
- const err48 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Variant%24/anyOf/1/type", keyword: "type", params: { type: "array" }, message: "must be array" };
1467
+ const err52 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/variantName/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1391
1468
  if (vErrors === null) {
1392
- vErrors = [err48];
1469
+ vErrors = [err52];
1393
1470
  }
1394
1471
  else {
1395
- vErrors.push(err48);
1472
+ vErrors.push(err52);
1396
1473
  }
1397
1474
  errors++;
1398
1475
  }
1399
1476
  }
1400
- var _valid4 = _errs60 === errors;
1401
- valid20 = valid20 || _valid4;
1402
- if (!valid20) {
1403
- const _errs65 = errors;
1404
- if (errors === _errs65) {
1405
- if (data14 && typeof data14 == "object" && !Array.isArray(data14)) {
1406
- if (Object.keys(data14).length > 512) {
1407
- const err49 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Variant%24/anyOf/2/maxProperties", keyword: "maxProperties", params: { limit: 512 }, message: "must NOT have more than 512 properties" };
1477
+ var _valid5 = _errs67 === errors;
1478
+ valid24 = valid24 || _valid5;
1479
+ if (!valid24) {
1480
+ const _errs70 = errors;
1481
+ if (errors === _errs70) {
1482
+ if (Array.isArray(data16)) {
1483
+ if (data16.length > 128) {
1484
+ const err53 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Variant%24/anyOf/1/maxItems", keyword: "maxItems", params: { limit: 128 }, message: "must NOT have more than 128 items" };
1408
1485
  if (vErrors === null) {
1409
- vErrors = [err49];
1486
+ vErrors = [err53];
1410
1487
  }
1411
1488
  else {
1412
- vErrors.push(err49);
1489
+ vErrors.push(err53);
1413
1490
  }
1414
1491
  errors++;
1415
1492
  }
1416
1493
  else {
1417
- if (Object.keys(data14).length < 1) {
1418
- const err50 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Variant%24/anyOf/2/minProperties", keyword: "minProperties", params: { limit: 1 }, message: "must NOT have fewer than 1 properties" };
1494
+ if (data16.length < 0) {
1495
+ const err54 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Variant%24/anyOf/1/minItems", keyword: "minItems", params: { limit: 0 }, message: "must NOT have fewer than 0 items" };
1419
1496
  if (vErrors === null) {
1420
- vErrors = [err50];
1497
+ vErrors = [err54];
1421
1498
  }
1422
1499
  else {
1423
- vErrors.push(err50);
1500
+ vErrors.push(err54);
1424
1501
  }
1425
1502
  errors++;
1426
1503
  }
1427
1504
  else {
1428
- for (const key4 in data14) {
1429
- const _errs67 = errors;
1430
- const _errs68 = errors;
1431
- if (errors === _errs68) {
1432
- if (typeof key4 === "string") {
1433
- if (func2(key4) > 64) {
1434
- const err51 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/variantName/maxLength", keyword: "maxLength", params: { limit: 64 }, message: "must NOT have more than 64 characters", propertyName: key4 };
1505
+ var valid26 = true;
1506
+ const len5 = data16.length;
1507
+ for (let i5 = 0; i5 < len5; i5++) {
1508
+ let data17 = data16[i5];
1509
+ const _errs72 = errors;
1510
+ const _errs73 = errors;
1511
+ if (errors === _errs73) {
1512
+ if (typeof data17 === "string") {
1513
+ if (func2(data17) > 64) {
1514
+ const err55 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i5, schemaPath: "#/definitions/variantName/maxLength", keyword: "maxLength", params: { limit: 64 }, message: "must NOT have more than 64 characters" };
1435
1515
  if (vErrors === null) {
1436
- vErrors = [err51];
1516
+ vErrors = [err55];
1437
1517
  }
1438
1518
  else {
1439
- vErrors.push(err51);
1519
+ vErrors.push(err55);
1440
1520
  }
1441
1521
  errors++;
1442
1522
  }
1443
1523
  else {
1444
- if (!pattern13.test(key4)) {
1445
- const err52 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/variantName/pattern", keyword: "pattern", params: { pattern: "^[a-z][a-zA-Z0-9]*$" }, message: "must match pattern \"" + "^[a-z][a-zA-Z0-9]*$" + "\"", propertyName: key4 };
1524
+ if (!pattern15.test(data17)) {
1525
+ const err56 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i5, schemaPath: "#/definitions/variantName/pattern", keyword: "pattern", params: { pattern: "^[a-z][a-zA-Z0-9]*$" }, message: "must match pattern \"" + "^[a-z][a-zA-Z0-9]*$" + "\"" };
1446
1526
  if (vErrors === null) {
1447
- vErrors = [err52];
1527
+ vErrors = [err56];
1448
1528
  }
1449
1529
  else {
1450
- vErrors.push(err52);
1530
+ vErrors.push(err56);
1451
1531
  }
1452
1532
  errors++;
1453
1533
  }
1454
1534
  }
1455
1535
  }
1456
1536
  else {
1457
- const err53 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/variantName/type", keyword: "type", params: { type: "string" }, message: "must be string", propertyName: key4 };
1537
+ const err57 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i5, schemaPath: "#/definitions/variantName/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1458
1538
  if (vErrors === null) {
1459
- vErrors = [err53];
1539
+ vErrors = [err57];
1460
1540
  }
1461
1541
  else {
1462
- vErrors.push(err53);
1542
+ vErrors.push(err57);
1463
1543
  }
1464
1544
  errors++;
1465
1545
  }
1466
1546
  }
1467
- var valid24 = _errs67 === errors;
1468
- if (!valid24) {
1469
- const err54 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Variant%24/anyOf/2/propertyNames", keyword: "propertyNames", params: { propertyName: key4 }, message: "property name must be valid" };
1470
- if (vErrors === null) {
1471
- vErrors = [err54];
1472
- }
1473
- else {
1474
- vErrors.push(err54);
1475
- }
1476
- errors++;
1547
+ var valid26 = _errs72 === errors;
1548
+ if (!valid26) {
1477
1549
  break;
1478
1550
  }
1479
1551
  }
1480
- if (valid24) {
1481
- for (const key5 in data14) {
1482
- let data16 = data14[key5];
1483
- const _errs71 = errors;
1484
- if (errors === _errs71) {
1485
- if ((typeof data16 == "number") && (isFinite(data16))) {
1486
- if (data16 < 0 || isNaN(data16)) {
1487
- const err55 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + key5.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Variant%24/anyOf/2/additionalProperties/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
1488
- if (vErrors === null) {
1489
- vErrors = [err55];
1490
- }
1491
- else {
1492
- vErrors.push(err55);
1493
- }
1494
- errors++;
1495
- }
1496
- }
1497
- else {
1498
- const err56 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + key5.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Variant%24/anyOf/2/additionalProperties/type", keyword: "type", params: { type: "number" }, message: "must be number" };
1499
- if (vErrors === null) {
1500
- vErrors = [err56];
1501
- }
1502
- else {
1503
- vErrors.push(err56);
1504
- }
1505
- errors++;
1506
- }
1507
- }
1508
- var valid26 = _errs71 === errors;
1509
- if (!valid26) {
1510
- break;
1511
- }
1512
- }
1513
- }
1514
1552
  }
1515
1553
  }
1516
1554
  }
1517
1555
  else {
1518
- const err57 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Variant%24/anyOf/2/type", keyword: "type", params: { type: "object" }, message: "must be object" };
1556
+ const err58 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Variant%24/anyOf/1/type", keyword: "type", params: { type: "array" }, message: "must be array" };
1519
1557
  if (vErrors === null) {
1520
- vErrors = [err57];
1558
+ vErrors = [err58];
1521
1559
  }
1522
1560
  else {
1523
- vErrors.push(err57);
1561
+ vErrors.push(err58);
1524
1562
  }
1525
1563
  errors++;
1526
1564
  }
1527
1565
  }
1528
- var _valid4 = _errs65 === errors;
1529
- valid20 = valid20 || _valid4;
1530
- }
1531
- }
1532
- if (!valid20) {
1533
- const err58 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Variant%24/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
1534
- if (vErrors === null) {
1535
- vErrors = [err58];
1536
- }
1537
- else {
1538
- vErrors.push(err58);
1539
- }
1540
- errors++;
1541
- validate10.errors = vErrors;
1542
- return false;
1543
- }
1544
- else {
1545
- errors = _errs56;
1546
- if (vErrors !== null) {
1547
- if (_errs56) {
1548
- vErrors.length = _errs56;
1549
- }
1550
- else {
1551
- vErrors = null;
1552
- }
1553
- }
1554
- }
1555
- var valid19 = _errs55 === errors;
1556
- if (!valid19) {
1557
- break;
1558
- }
1559
- }
1560
- }
1561
- if (valid19) {
1562
- var valid19 = true;
1563
- for (const key6 in data) {
1564
- if (pattern2.test(key6)) {
1565
- let data17 = data[key6];
1566
- const _errs73 = errors;
1567
- const _errs74 = errors;
1568
- let valid27 = false;
1569
- const _errs75 = errors;
1570
- const _errs76 = errors;
1571
- if (errors === _errs76) {
1572
- if (typeof data17 === "string") {
1573
- if (!pattern17.test(data17)) {
1574
- const err59 = { instancePath: instancePath + "/" + key6.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/color/pattern", keyword: "pattern", params: { pattern: "^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$" }, message: "must match pattern \"" + "^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$" + "\"" };
1575
- if (vErrors === null) {
1576
- vErrors = [err59];
1577
- }
1578
- else {
1579
- vErrors.push(err59);
1580
- }
1581
- errors++;
1582
- }
1583
- }
1584
- else {
1585
- const err60 = { instancePath: instancePath + "/" + key6.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/color/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1586
- if (vErrors === null) {
1587
- vErrors = [err60];
1588
- }
1589
- else {
1590
- vErrors.push(err60);
1591
- }
1592
- errors++;
1593
- }
1594
- }
1595
- var _valid5 = _errs75 === errors;
1596
- valid27 = valid27 || _valid5;
1597
- if (!valid27) {
1598
- const _errs78 = errors;
1599
- if (errors === _errs78) {
1600
- if (Array.isArray(data17)) {
1601
- if (data17.length > 128) {
1602
- const err61 = { instancePath: instancePath + "/" + key6.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Color%24/anyOf/1/maxItems", keyword: "maxItems", params: { limit: 128 }, message: "must NOT have more than 128 items" };
1603
- if (vErrors === null) {
1604
- vErrors = [err61];
1605
- }
1606
- else {
1607
- vErrors.push(err61);
1608
- }
1609
- errors++;
1610
- }
1611
- else {
1612
- if (data17.length < 0) {
1613
- const err62 = { instancePath: instancePath + "/" + key6.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Color%24/anyOf/1/minItems", keyword: "minItems", params: { limit: 0 }, message: "must NOT have fewer than 0 items" };
1566
+ var _valid5 = _errs70 === errors;
1567
+ valid24 = valid24 || _valid5;
1568
+ if (!valid24) {
1569
+ const _errs75 = errors;
1570
+ if (errors === _errs75) {
1571
+ if (data16 && typeof data16 == "object" && !Array.isArray(data16)) {
1572
+ if (Object.keys(data16).length > 512) {
1573
+ const err59 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Variant%24/anyOf/2/maxProperties", keyword: "maxProperties", params: { limit: 512 }, message: "must NOT have more than 512 properties" };
1614
1574
  if (vErrors === null) {
1615
- vErrors = [err62];
1575
+ vErrors = [err59];
1616
1576
  }
1617
1577
  else {
1618
- vErrors.push(err62);
1578
+ vErrors.push(err59);
1619
1579
  }
1620
1580
  errors++;
1621
1581
  }
1622
1582
  else {
1623
- var valid29 = true;
1624
- const len5 = data17.length;
1625
- for (let i5 = 0; i5 < len5; i5++) {
1626
- let data18 = data17[i5];
1627
- const _errs80 = errors;
1628
- const _errs81 = errors;
1629
- if (errors === _errs81) {
1630
- if (typeof data18 === "string") {
1631
- if (!pattern17.test(data18)) {
1632
- const err63 = { instancePath: instancePath + "/" + key6.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i5, schemaPath: "#/definitions/color/pattern", keyword: "pattern", params: { pattern: "^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$" }, message: "must match pattern \"" + "^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$" + "\"" };
1583
+ if (Object.keys(data16).length < 1) {
1584
+ const err60 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Variant%24/anyOf/2/minProperties", keyword: "minProperties", params: { limit: 1 }, message: "must NOT have fewer than 1 properties" };
1585
+ if (vErrors === null) {
1586
+ vErrors = [err60];
1587
+ }
1588
+ else {
1589
+ vErrors.push(err60);
1590
+ }
1591
+ errors++;
1592
+ }
1593
+ else {
1594
+ for (const key4 in data16) {
1595
+ const _errs77 = errors;
1596
+ const _errs78 = errors;
1597
+ if (errors === _errs78) {
1598
+ if (typeof key4 === "string") {
1599
+ if (func2(key4) > 64) {
1600
+ const err61 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/variantName/maxLength", keyword: "maxLength", params: { limit: 64 }, message: "must NOT have more than 64 characters", propertyName: key4 };
1601
+ if (vErrors === null) {
1602
+ vErrors = [err61];
1603
+ }
1604
+ else {
1605
+ vErrors.push(err61);
1606
+ }
1607
+ errors++;
1608
+ }
1609
+ else {
1610
+ if (!pattern15.test(key4)) {
1611
+ const err62 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/variantName/pattern", keyword: "pattern", params: { pattern: "^[a-z][a-zA-Z0-9]*$" }, message: "must match pattern \"" + "^[a-z][a-zA-Z0-9]*$" + "\"", propertyName: key4 };
1612
+ if (vErrors === null) {
1613
+ vErrors = [err62];
1614
+ }
1615
+ else {
1616
+ vErrors.push(err62);
1617
+ }
1618
+ errors++;
1619
+ }
1620
+ }
1621
+ }
1622
+ else {
1623
+ const err63 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/variantName/type", keyword: "type", params: { type: "string" }, message: "must be string", propertyName: key4 };
1633
1624
  if (vErrors === null) {
1634
1625
  vErrors = [err63];
1635
1626
  }
@@ -1639,8 +1630,9 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
1639
1630
  errors++;
1640
1631
  }
1641
1632
  }
1642
- else {
1643
- const err64 = { instancePath: instancePath + "/" + key6.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i5, schemaPath: "#/definitions/color/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1633
+ var valid28 = _errs77 === errors;
1634
+ if (!valid28) {
1635
+ const err64 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Variant%24/anyOf/2/propertyNames", keyword: "propertyNames", params: { propertyName: key4 }, message: "property name must be valid" };
1644
1636
  if (vErrors === null) {
1645
1637
  vErrors = [err64];
1646
1638
  }
@@ -1648,87 +1640,123 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
1648
1640
  vErrors.push(err64);
1649
1641
  }
1650
1642
  errors++;
1643
+ break;
1651
1644
  }
1652
1645
  }
1653
- var valid29 = _errs80 === errors;
1654
- if (!valid29) {
1655
- break;
1646
+ if (valid28) {
1647
+ for (const key5 in data16) {
1648
+ let data18 = data16[key5];
1649
+ const _errs81 = errors;
1650
+ if (errors === _errs81) {
1651
+ if ((typeof data18 == "number") && (isFinite(data18))) {
1652
+ if (data18 < 0 || isNaN(data18)) {
1653
+ const err65 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + key5.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Variant%24/anyOf/2/additionalProperties/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
1654
+ if (vErrors === null) {
1655
+ vErrors = [err65];
1656
+ }
1657
+ else {
1658
+ vErrors.push(err65);
1659
+ }
1660
+ errors++;
1661
+ }
1662
+ }
1663
+ else {
1664
+ const err66 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + key5.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Variant%24/anyOf/2/additionalProperties/type", keyword: "type", params: { type: "number" }, message: "must be number" };
1665
+ if (vErrors === null) {
1666
+ vErrors = [err66];
1667
+ }
1668
+ else {
1669
+ vErrors.push(err66);
1670
+ }
1671
+ errors++;
1672
+ }
1673
+ }
1674
+ var valid30 = _errs81 === errors;
1675
+ if (!valid30) {
1676
+ break;
1677
+ }
1678
+ }
1656
1679
  }
1657
1680
  }
1658
1681
  }
1659
1682
  }
1660
- }
1661
- else {
1662
- const err65 = { instancePath: instancePath + "/" + key6.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Color%24/anyOf/1/type", keyword: "type", params: { type: "array" }, message: "must be array" };
1663
- if (vErrors === null) {
1664
- vErrors = [err65];
1665
- }
1666
1683
  else {
1667
- vErrors.push(err65);
1684
+ const err67 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Variant%24/anyOf/2/type", keyword: "type", params: { type: "object" }, message: "must be object" };
1685
+ if (vErrors === null) {
1686
+ vErrors = [err67];
1687
+ }
1688
+ else {
1689
+ vErrors.push(err67);
1690
+ }
1691
+ errors++;
1668
1692
  }
1669
- errors++;
1670
1693
  }
1694
+ var _valid5 = _errs75 === errors;
1695
+ valid24 = valid24 || _valid5;
1671
1696
  }
1672
- var _valid5 = _errs78 === errors;
1673
- valid27 = valid27 || _valid5;
1674
1697
  }
1675
- if (!valid27) {
1676
- const err66 = { instancePath: instancePath + "/" + key6.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Color%24/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
1698
+ if (!valid24) {
1699
+ const err68 = { instancePath: instancePath + "/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Variant%24/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
1677
1700
  if (vErrors === null) {
1678
- vErrors = [err66];
1701
+ vErrors = [err68];
1679
1702
  }
1680
1703
  else {
1681
- vErrors.push(err66);
1704
+ vErrors.push(err68);
1682
1705
  }
1683
1706
  errors++;
1684
1707
  validate10.errors = vErrors;
1685
1708
  return false;
1686
1709
  }
1687
1710
  else {
1688
- errors = _errs74;
1711
+ errors = _errs66;
1689
1712
  if (vErrors !== null) {
1690
- if (_errs74) {
1691
- vErrors.length = _errs74;
1713
+ if (_errs66) {
1714
+ vErrors.length = _errs66;
1692
1715
  }
1693
1716
  else {
1694
1717
  vErrors = null;
1695
1718
  }
1696
1719
  }
1697
1720
  }
1698
- var valid19 = _errs73 === errors;
1699
- if (!valid19) {
1721
+ var valid23 = _errs65 === errors;
1722
+ if (!valid23) {
1700
1723
  break;
1701
1724
  }
1702
1725
  }
1703
1726
  }
1704
- if (valid19) {
1705
- var valid19 = true;
1706
- for (const key7 in data) {
1707
- if (pattern3.test(key7)) {
1708
- let data19 = data[key7];
1727
+ if (valid23) {
1728
+ var valid23 = true;
1729
+ for (const key6 in data) {
1730
+ if (pattern2.test(key6)) {
1731
+ let data19 = data[key6];
1709
1732
  const _errs83 = errors;
1710
1733
  const _errs84 = errors;
1711
1734
  let valid31 = false;
1712
1735
  const _errs85 = errors;
1713
- if (typeof data19 !== "string") {
1714
- const err67 = { instancePath: instancePath + "/" + key7.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/colorFill/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1715
- if (vErrors === null) {
1716
- vErrors = [err67];
1717
- }
1718
- else {
1719
- vErrors.push(err67);
1720
- }
1721
- errors++;
1722
- }
1723
- if (!(((data19 === "solid") || (data19 === "linear")) || (data19 === "radial"))) {
1724
- const err68 = { instancePath: instancePath + "/" + key7.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/colorFill/enum", keyword: "enum", params: { allowedValues: schema28.enum }, message: "must be equal to one of the allowed values" };
1725
- if (vErrors === null) {
1726
- vErrors = [err68];
1736
+ const _errs86 = errors;
1737
+ if (errors === _errs86) {
1738
+ if (typeof data19 === "string") {
1739
+ if (!pattern19.test(data19)) {
1740
+ const err69 = { instancePath: instancePath + "/" + key6.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/color/pattern", keyword: "pattern", params: { pattern: "^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$" }, message: "must match pattern \"" + "^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$" + "\"" };
1741
+ if (vErrors === null) {
1742
+ vErrors = [err69];
1743
+ }
1744
+ else {
1745
+ vErrors.push(err69);
1746
+ }
1747
+ errors++;
1748
+ }
1727
1749
  }
1728
1750
  else {
1729
- vErrors.push(err68);
1751
+ const err70 = { instancePath: instancePath + "/" + key6.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/color/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1752
+ if (vErrors === null) {
1753
+ vErrors = [err70];
1754
+ }
1755
+ else {
1756
+ vErrors.push(err70);
1757
+ }
1758
+ errors++;
1730
1759
  }
1731
- errors++;
1732
1760
  }
1733
1761
  var _valid6 = _errs85 === errors;
1734
1762
  valid31 = valid31 || _valid6;
@@ -1737,23 +1765,23 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
1737
1765
  if (errors === _errs88) {
1738
1766
  if (Array.isArray(data19)) {
1739
1767
  if (data19.length > 128) {
1740
- const err69 = { instancePath: instancePath + "/" + key7.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*ColorFill%24/anyOf/1/maxItems", keyword: "maxItems", params: { limit: 128 }, message: "must NOT have more than 128 items" };
1768
+ const err71 = { instancePath: instancePath + "/" + key6.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Color%24/anyOf/1/maxItems", keyword: "maxItems", params: { limit: 128 }, message: "must NOT have more than 128 items" };
1741
1769
  if (vErrors === null) {
1742
- vErrors = [err69];
1770
+ vErrors = [err71];
1743
1771
  }
1744
1772
  else {
1745
- vErrors.push(err69);
1773
+ vErrors.push(err71);
1746
1774
  }
1747
1775
  errors++;
1748
1776
  }
1749
1777
  else {
1750
1778
  if (data19.length < 0) {
1751
- const err70 = { instancePath: instancePath + "/" + key7.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*ColorFill%24/anyOf/1/minItems", keyword: "minItems", params: { limit: 0 }, message: "must NOT have fewer than 0 items" };
1779
+ const err72 = { instancePath: instancePath + "/" + key6.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Color%24/anyOf/1/minItems", keyword: "minItems", params: { limit: 0 }, message: "must NOT have fewer than 0 items" };
1752
1780
  if (vErrors === null) {
1753
- vErrors = [err70];
1781
+ vErrors = [err72];
1754
1782
  }
1755
1783
  else {
1756
- vErrors.push(err70);
1784
+ vErrors.push(err72);
1757
1785
  }
1758
1786
  errors++;
1759
1787
  }
@@ -1763,25 +1791,30 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
1763
1791
  for (let i6 = 0; i6 < len6; i6++) {
1764
1792
  let data20 = data19[i6];
1765
1793
  const _errs90 = errors;
1766
- if (typeof data20 !== "string") {
1767
- const err71 = { instancePath: instancePath + "/" + key7.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i6, schemaPath: "#/definitions/colorFill/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1768
- if (vErrors === null) {
1769
- vErrors = [err71];
1770
- }
1771
- else {
1772
- vErrors.push(err71);
1773
- }
1774
- errors++;
1775
- }
1776
- if (!(((data20 === "solid") || (data20 === "linear")) || (data20 === "radial"))) {
1777
- const err72 = { instancePath: instancePath + "/" + key7.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i6, schemaPath: "#/definitions/colorFill/enum", keyword: "enum", params: { allowedValues: schema28.enum }, message: "must be equal to one of the allowed values" };
1778
- if (vErrors === null) {
1779
- vErrors = [err72];
1794
+ const _errs91 = errors;
1795
+ if (errors === _errs91) {
1796
+ if (typeof data20 === "string") {
1797
+ if (!pattern19.test(data20)) {
1798
+ const err73 = { instancePath: instancePath + "/" + key6.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i6, schemaPath: "#/definitions/color/pattern", keyword: "pattern", params: { pattern: "^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$" }, message: "must match pattern \"" + "^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$" + "\"" };
1799
+ if (vErrors === null) {
1800
+ vErrors = [err73];
1801
+ }
1802
+ else {
1803
+ vErrors.push(err73);
1804
+ }
1805
+ errors++;
1806
+ }
1780
1807
  }
1781
1808
  else {
1782
- vErrors.push(err72);
1809
+ const err74 = { instancePath: instancePath + "/" + key6.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i6, schemaPath: "#/definitions/color/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1810
+ if (vErrors === null) {
1811
+ vErrors = [err74];
1812
+ }
1813
+ else {
1814
+ vErrors.push(err74);
1815
+ }
1816
+ errors++;
1783
1817
  }
1784
- errors++;
1785
1818
  }
1786
1819
  var valid33 = _errs90 === errors;
1787
1820
  if (!valid33) {
@@ -1792,12 +1825,12 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
1792
1825
  }
1793
1826
  }
1794
1827
  else {
1795
- const err73 = { instancePath: instancePath + "/" + key7.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*ColorFill%24/anyOf/1/type", keyword: "type", params: { type: "array" }, message: "must be array" };
1828
+ const err75 = { instancePath: instancePath + "/" + key6.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Color%24/anyOf/1/type", keyword: "type", params: { type: "array" }, message: "must be array" };
1796
1829
  if (vErrors === null) {
1797
- vErrors = [err73];
1830
+ vErrors = [err75];
1798
1831
  }
1799
1832
  else {
1800
- vErrors.push(err73);
1833
+ vErrors.push(err75);
1801
1834
  }
1802
1835
  errors++;
1803
1836
  }
@@ -1806,12 +1839,12 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
1806
1839
  valid31 = valid31 || _valid6;
1807
1840
  }
1808
1841
  if (!valid31) {
1809
- const err74 = { instancePath: instancePath + "/" + key7.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*ColorFill%24/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
1842
+ const err76 = { instancePath: instancePath + "/" + key6.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*Color%24/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
1810
1843
  if (vErrors === null) {
1811
- vErrors = [err74];
1844
+ vErrors = [err76];
1812
1845
  }
1813
1846
  else {
1814
- vErrors.push(err74);
1847
+ vErrors.push(err76);
1815
1848
  }
1816
1849
  errors++;
1817
1850
  validate10.errors = vErrors;
@@ -1828,45 +1861,40 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
1828
1861
  }
1829
1862
  }
1830
1863
  }
1831
- var valid19 = _errs83 === errors;
1832
- if (!valid19) {
1864
+ var valid23 = _errs83 === errors;
1865
+ if (!valid23) {
1833
1866
  break;
1834
1867
  }
1835
1868
  }
1836
1869
  }
1837
- if (valid19) {
1838
- var valid19 = true;
1839
- for (const key8 in data) {
1840
- if (pattern4.test(key8)) {
1841
- let data21 = data[key8];
1870
+ if (valid23) {
1871
+ var valid23 = true;
1872
+ for (const key7 in data) {
1873
+ if (pattern3.test(key7)) {
1874
+ let data21 = data[key7];
1842
1875
  const _errs93 = errors;
1843
1876
  const _errs94 = errors;
1844
1877
  let valid35 = false;
1845
1878
  const _errs95 = errors;
1846
- const _errs96 = errors;
1847
- if (!(((typeof data21 == "number") && (!(data21 % 1) && !isNaN(data21))) && (isFinite(data21)))) {
1848
- const err75 = { instancePath: instancePath + "/" + key8.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/colorFillStops/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
1879
+ if (typeof data21 !== "string") {
1880
+ const err77 = { instancePath: instancePath + "/" + key7.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/colorFill/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1849
1881
  if (vErrors === null) {
1850
- vErrors = [err75];
1882
+ vErrors = [err77];
1851
1883
  }
1852
1884
  else {
1853
- vErrors.push(err75);
1885
+ vErrors.push(err77);
1854
1886
  }
1855
1887
  errors++;
1856
1888
  }
1857
- if (errors === _errs96) {
1858
- if ((typeof data21 == "number") && (isFinite(data21))) {
1859
- if (data21 < 2 || isNaN(data21)) {
1860
- const err76 = { instancePath: instancePath + "/" + key8.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/colorFillStops/minimum", keyword: "minimum", params: { comparison: ">=", limit: 2 }, message: "must be >= 2" };
1861
- if (vErrors === null) {
1862
- vErrors = [err76];
1863
- }
1864
- else {
1865
- vErrors.push(err76);
1866
- }
1867
- errors++;
1868
- }
1889
+ if (!(((data21 === "solid") || (data21 === "linear")) || (data21 === "radial"))) {
1890
+ const err78 = { instancePath: instancePath + "/" + key7.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/colorFill/enum", keyword: "enum", params: { allowedValues: schema30.enum }, message: "must be equal to one of the allowed values" };
1891
+ if (vErrors === null) {
1892
+ vErrors = [err78];
1869
1893
  }
1894
+ else {
1895
+ vErrors.push(err78);
1896
+ }
1897
+ errors++;
1870
1898
  }
1871
1899
  var _valid7 = _errs95 === errors;
1872
1900
  valid35 = valid35 || _valid7;
@@ -1874,24 +1902,24 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
1874
1902
  const _errs98 = errors;
1875
1903
  if (errors === _errs98) {
1876
1904
  if (Array.isArray(data21)) {
1877
- if (data21.length > 2) {
1878
- const err77 = { instancePath: instancePath + "/" + key8.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*ColorFillStops%24/anyOf/1/maxItems", keyword: "maxItems", params: { limit: 2 }, message: "must NOT have more than 2 items" };
1905
+ if (data21.length > 128) {
1906
+ const err79 = { instancePath: instancePath + "/" + key7.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*ColorFill%24/anyOf/1/maxItems", keyword: "maxItems", params: { limit: 128 }, message: "must NOT have more than 128 items" };
1879
1907
  if (vErrors === null) {
1880
- vErrors = [err77];
1908
+ vErrors = [err79];
1881
1909
  }
1882
1910
  else {
1883
- vErrors.push(err77);
1911
+ vErrors.push(err79);
1884
1912
  }
1885
1913
  errors++;
1886
1914
  }
1887
1915
  else {
1888
1916
  if (data21.length < 0) {
1889
- const err78 = { instancePath: instancePath + "/" + key8.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*ColorFillStops%24/anyOf/1/minItems", keyword: "minItems", params: { limit: 0 }, message: "must NOT have fewer than 0 items" };
1917
+ const err80 = { instancePath: instancePath + "/" + key7.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*ColorFill%24/anyOf/1/minItems", keyword: "minItems", params: { limit: 0 }, message: "must NOT have fewer than 0 items" };
1890
1918
  if (vErrors === null) {
1891
- vErrors = [err78];
1919
+ vErrors = [err80];
1892
1920
  }
1893
1921
  else {
1894
- vErrors.push(err78);
1922
+ vErrors.push(err80);
1895
1923
  }
1896
1924
  errors++;
1897
1925
  }
@@ -1901,30 +1929,25 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
1901
1929
  for (let i7 = 0; i7 < len7; i7++) {
1902
1930
  let data22 = data21[i7];
1903
1931
  const _errs100 = errors;
1904
- const _errs101 = errors;
1905
- if (!(((typeof data22 == "number") && (!(data22 % 1) && !isNaN(data22))) && (isFinite(data22)))) {
1906
- const err79 = { instancePath: instancePath + "/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i7, schemaPath: "#/definitions/colorFillStops/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
1932
+ if (typeof data22 !== "string") {
1933
+ const err81 = { instancePath: instancePath + "/" + key7.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i7, schemaPath: "#/definitions/colorFill/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1907
1934
  if (vErrors === null) {
1908
- vErrors = [err79];
1935
+ vErrors = [err81];
1909
1936
  }
1910
1937
  else {
1911
- vErrors.push(err79);
1938
+ vErrors.push(err81);
1912
1939
  }
1913
1940
  errors++;
1914
1941
  }
1915
- if (errors === _errs101) {
1916
- if ((typeof data22 == "number") && (isFinite(data22))) {
1917
- if (data22 < 2 || isNaN(data22)) {
1918
- const err80 = { instancePath: instancePath + "/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i7, schemaPath: "#/definitions/colorFillStops/minimum", keyword: "minimum", params: { comparison: ">=", limit: 2 }, message: "must be >= 2" };
1919
- if (vErrors === null) {
1920
- vErrors = [err80];
1921
- }
1922
- else {
1923
- vErrors.push(err80);
1924
- }
1925
- errors++;
1926
- }
1942
+ if (!(((data22 === "solid") || (data22 === "linear")) || (data22 === "radial"))) {
1943
+ const err82 = { instancePath: instancePath + "/" + key7.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i7, schemaPath: "#/definitions/colorFill/enum", keyword: "enum", params: { allowedValues: schema30.enum }, message: "must be equal to one of the allowed values" };
1944
+ if (vErrors === null) {
1945
+ vErrors = [err82];
1946
+ }
1947
+ else {
1948
+ vErrors.push(err82);
1927
1949
  }
1950
+ errors++;
1928
1951
  }
1929
1952
  var valid37 = _errs100 === errors;
1930
1953
  if (!valid37) {
@@ -1935,12 +1958,12 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
1935
1958
  }
1936
1959
  }
1937
1960
  else {
1938
- const err81 = { instancePath: instancePath + "/" + key8.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*ColorFillStops%24/anyOf/1/type", keyword: "type", params: { type: "array" }, message: "must be array" };
1961
+ const err83 = { instancePath: instancePath + "/" + key7.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*ColorFill%24/anyOf/1/type", keyword: "type", params: { type: "array" }, message: "must be array" };
1939
1962
  if (vErrors === null) {
1940
- vErrors = [err81];
1963
+ vErrors = [err83];
1941
1964
  }
1942
1965
  else {
1943
- vErrors.push(err81);
1966
+ vErrors.push(err83);
1944
1967
  }
1945
1968
  errors++;
1946
1969
  }
@@ -1949,12 +1972,12 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
1949
1972
  valid35 = valid35 || _valid7;
1950
1973
  }
1951
1974
  if (!valid35) {
1952
- const err82 = { instancePath: instancePath + "/" + key8.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*ColorFillStops%24/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
1975
+ const err84 = { instancePath: instancePath + "/" + key7.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*ColorFill%24/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
1953
1976
  if (vErrors === null) {
1954
- vErrors = [err82];
1977
+ vErrors = [err84];
1955
1978
  }
1956
1979
  else {
1957
- vErrors.push(err82);
1980
+ vErrors.push(err84);
1958
1981
  }
1959
1982
  errors++;
1960
1983
  validate10.errors = vErrors;
@@ -1971,72 +1994,216 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
1971
1994
  }
1972
1995
  }
1973
1996
  }
1974
- var valid19 = _errs93 === errors;
1975
- if (!valid19) {
1997
+ var valid23 = _errs93 === errors;
1998
+ if (!valid23) {
1976
1999
  break;
1977
2000
  }
1978
2001
  }
1979
2002
  }
1980
- if (valid19) {
1981
- var valid19 = true;
1982
- for (const key9 in data) {
1983
- if (pattern5.test(key9)) {
2003
+ if (valid23) {
2004
+ var valid23 = true;
2005
+ for (const key8 in data) {
2006
+ if (pattern4.test(key8)) {
2007
+ let data23 = data[key8];
1984
2008
  const _errs103 = errors;
1985
- if (!(validate13(data[key9], { instancePath: instancePath + "/" + key9.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data, parentDataProperty: key9, rootData }))) {
1986
- vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);
1987
- errors = vErrors.length;
2009
+ const _errs104 = errors;
2010
+ let valid39 = false;
2011
+ const _errs105 = errors;
2012
+ const _errs106 = errors;
2013
+ if (!(((typeof data23 == "number") && (!(data23 % 1) && !isNaN(data23))) && (isFinite(data23)))) {
2014
+ const err85 = { instancePath: instancePath + "/" + key8.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/colorFillStops/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
2015
+ if (vErrors === null) {
2016
+ vErrors = [err85];
2017
+ }
2018
+ else {
2019
+ vErrors.push(err85);
2020
+ }
2021
+ errors++;
2022
+ }
2023
+ if (errors === _errs106) {
2024
+ if ((typeof data23 == "number") && (isFinite(data23))) {
2025
+ if (data23 < 2 || isNaN(data23)) {
2026
+ const err86 = { instancePath: instancePath + "/" + key8.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/colorFillStops/minimum", keyword: "minimum", params: { comparison: ">=", limit: 2 }, message: "must be >= 2" };
2027
+ if (vErrors === null) {
2028
+ vErrors = [err86];
2029
+ }
2030
+ else {
2031
+ vErrors.push(err86);
2032
+ }
2033
+ errors++;
2034
+ }
2035
+ }
2036
+ }
2037
+ var _valid8 = _errs105 === errors;
2038
+ valid39 = valid39 || _valid8;
2039
+ if (!valid39) {
2040
+ const _errs108 = errors;
2041
+ if (errors === _errs108) {
2042
+ if (Array.isArray(data23)) {
2043
+ if (data23.length > 2) {
2044
+ const err87 = { instancePath: instancePath + "/" + key8.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*ColorFillStops%24/anyOf/1/maxItems", keyword: "maxItems", params: { limit: 2 }, message: "must NOT have more than 2 items" };
2045
+ if (vErrors === null) {
2046
+ vErrors = [err87];
2047
+ }
2048
+ else {
2049
+ vErrors.push(err87);
2050
+ }
2051
+ errors++;
2052
+ }
2053
+ else {
2054
+ if (data23.length < 0) {
2055
+ const err88 = { instancePath: instancePath + "/" + key8.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*ColorFillStops%24/anyOf/1/minItems", keyword: "minItems", params: { limit: 0 }, message: "must NOT have fewer than 0 items" };
2056
+ if (vErrors === null) {
2057
+ vErrors = [err88];
2058
+ }
2059
+ else {
2060
+ vErrors.push(err88);
2061
+ }
2062
+ errors++;
2063
+ }
2064
+ else {
2065
+ var valid41 = true;
2066
+ const len8 = data23.length;
2067
+ for (let i8 = 0; i8 < len8; i8++) {
2068
+ let data24 = data23[i8];
2069
+ const _errs110 = errors;
2070
+ const _errs111 = errors;
2071
+ if (!(((typeof data24 == "number") && (!(data24 % 1) && !isNaN(data24))) && (isFinite(data24)))) {
2072
+ const err89 = { instancePath: instancePath + "/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i8, schemaPath: "#/definitions/colorFillStops/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
2073
+ if (vErrors === null) {
2074
+ vErrors = [err89];
2075
+ }
2076
+ else {
2077
+ vErrors.push(err89);
2078
+ }
2079
+ errors++;
2080
+ }
2081
+ if (errors === _errs111) {
2082
+ if ((typeof data24 == "number") && (isFinite(data24))) {
2083
+ if (data24 < 2 || isNaN(data24)) {
2084
+ const err90 = { instancePath: instancePath + "/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i8, schemaPath: "#/definitions/colorFillStops/minimum", keyword: "minimum", params: { comparison: ">=", limit: 2 }, message: "must be >= 2" };
2085
+ if (vErrors === null) {
2086
+ vErrors = [err90];
2087
+ }
2088
+ else {
2089
+ vErrors.push(err90);
2090
+ }
2091
+ errors++;
2092
+ }
2093
+ }
2094
+ }
2095
+ var valid41 = _errs110 === errors;
2096
+ if (!valid41) {
2097
+ break;
2098
+ }
2099
+ }
2100
+ }
2101
+ }
2102
+ }
2103
+ else {
2104
+ const err91 = { instancePath: instancePath + "/" + key8.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*ColorFillStops%24/anyOf/1/type", keyword: "type", params: { type: "array" }, message: "must be array" };
2105
+ if (vErrors === null) {
2106
+ vErrors = [err91];
2107
+ }
2108
+ else {
2109
+ vErrors.push(err91);
2110
+ }
2111
+ errors++;
2112
+ }
2113
+ }
2114
+ var _valid8 = _errs108 === errors;
2115
+ valid39 = valid39 || _valid8;
2116
+ }
2117
+ if (!valid39) {
2118
+ const err92 = { instancePath: instancePath + "/" + key8.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/patternProperties/%5E%5Ba-z%5D%5Ba-zA-Z0-9%5D*ColorFillStops%24/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
2119
+ if (vErrors === null) {
2120
+ vErrors = [err92];
2121
+ }
2122
+ else {
2123
+ vErrors.push(err92);
2124
+ }
2125
+ errors++;
2126
+ validate10.errors = vErrors;
2127
+ return false;
2128
+ }
2129
+ else {
2130
+ errors = _errs104;
2131
+ if (vErrors !== null) {
2132
+ if (_errs104) {
2133
+ vErrors.length = _errs104;
2134
+ }
2135
+ else {
2136
+ vErrors = null;
2137
+ }
2138
+ }
1988
2139
  }
1989
- var valid19 = _errs103 === errors;
1990
- if (!valid19) {
2140
+ var valid23 = _errs103 === errors;
2141
+ if (!valid23) {
1991
2142
  break;
1992
2143
  }
1993
2144
  }
1994
2145
  }
1995
- if (valid19) {
1996
- var valid19 = true;
1997
- for (const key10 in data) {
1998
- if (pattern6.test(key10)) {
1999
- const _errs105 = errors;
2000
- if (!(validate13(data[key10], { instancePath: instancePath + "/" + key10.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data, parentDataProperty: key10, rootData }))) {
2146
+ if (valid23) {
2147
+ var valid23 = true;
2148
+ for (const key9 in data) {
2149
+ if (pattern5.test(key9)) {
2150
+ const _errs113 = errors;
2151
+ if (!(validate13(data[key9], { instancePath: instancePath + "/" + key9.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data, parentDataProperty: key9, rootData }))) {
2001
2152
  vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);
2002
2153
  errors = vErrors.length;
2003
2154
  }
2004
- var valid19 = _errs105 === errors;
2005
- if (!valid19) {
2155
+ var valid23 = _errs113 === errors;
2156
+ if (!valid23) {
2006
2157
  break;
2007
2158
  }
2008
2159
  }
2009
2160
  }
2010
- if (valid19) {
2011
- var valid19 = true;
2012
- for (const key11 in data) {
2013
- if (pattern7.test(key11)) {
2014
- const _errs107 = errors;
2015
- if (!(validate16(data[key11], { instancePath: instancePath + "/" + key11.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data, parentDataProperty: key11, rootData }))) {
2016
- vErrors = vErrors === null ? validate16.errors : vErrors.concat(validate16.errors);
2161
+ if (valid23) {
2162
+ var valid23 = true;
2163
+ for (const key10 in data) {
2164
+ if (pattern6.test(key10)) {
2165
+ const _errs115 = errors;
2166
+ if (!(validate13(data[key10], { instancePath: instancePath + "/" + key10.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data, parentDataProperty: key10, rootData }))) {
2167
+ vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);
2017
2168
  errors = vErrors.length;
2018
2169
  }
2019
- var valid19 = _errs107 === errors;
2020
- if (!valid19) {
2170
+ var valid23 = _errs115 === errors;
2171
+ if (!valid23) {
2021
2172
  break;
2022
2173
  }
2023
2174
  }
2024
2175
  }
2025
- if (valid19) {
2026
- var valid19 = true;
2027
- for (const key12 in data) {
2028
- if (pattern8.test(key12)) {
2029
- const _errs109 = errors;
2030
- if (!(validate16(data[key12], { instancePath: instancePath + "/" + key12.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data, parentDataProperty: key12, rootData }))) {
2176
+ if (valid23) {
2177
+ var valid23 = true;
2178
+ for (const key11 in data) {
2179
+ if (pattern7.test(key11)) {
2180
+ const _errs117 = errors;
2181
+ if (!(validate16(data[key11], { instancePath: instancePath + "/" + key11.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data, parentDataProperty: key11, rootData }))) {
2031
2182
  vErrors = vErrors === null ? validate16.errors : vErrors.concat(validate16.errors);
2032
2183
  errors = vErrors.length;
2033
2184
  }
2034
- var valid19 = _errs109 === errors;
2035
- if (!valid19) {
2185
+ var valid23 = _errs117 === errors;
2186
+ if (!valid23) {
2036
2187
  break;
2037
2188
  }
2038
2189
  }
2039
2190
  }
2191
+ if (valid23) {
2192
+ var valid23 = true;
2193
+ for (const key12 in data) {
2194
+ if (pattern8.test(key12)) {
2195
+ const _errs119 = errors;
2196
+ if (!(validate16(data[key12], { instancePath: instancePath + "/" + key12.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data, parentDataProperty: key12, rootData }))) {
2197
+ vErrors = vErrors === null ? validate16.errors : vErrors.concat(validate16.errors);
2198
+ errors = vErrors.length;
2199
+ }
2200
+ var valid23 = _errs119 === errors;
2201
+ if (!valid23) {
2202
+ break;
2203
+ }
2204
+ }
2205
+ }
2206
+ }
2040
2207
  }
2041
2208
  }
2042
2209
  }